N°7355 - Upgrade datatables.net to 1.13.11 (and plugins)

This commit is contained in:
Molkobain
2024-03-26 11:02:46 +01:00
parent bcfbacc625
commit 12b30c1531
42 changed files with 28058 additions and 5541 deletions

40
node_modules/.package-lock.json generated vendored
View File

@@ -93,46 +93,46 @@
"integrity": "sha512-IUqa8/ntsWQiI1TnPTnzWcwh3bJ6Orurp2LVQne9UJdiDjxeFynUuIwjJjbqsBEu3wrhcVnZblIdd9pvdM5HEQ=="
},
"node_modules/datatables.net": {
"version": "1.11.3",
"resolved": "https://registry.npmjs.org/datatables.net/-/datatables.net-1.11.3.tgz",
"integrity": "sha512-VMj5qEaTebpNurySkM6jy6sGpl+s6onPK8xJhYr296R/vUBnz1+id16NVqNf9z5aR076OGcpGHCuiTuy4E05oQ==",
"version": "1.13.11",
"resolved": "https://registry.npmjs.org/datatables.net/-/datatables.net-1.13.11.tgz",
"integrity": "sha512-AE6RkMXziRaqzPcu/pl3SJXeRa6fmXQG/fVjuRESujvkzqDCYEeKTTpPMuVJSGYJpPi32WGSphVNNY1G4nSN/g==",
"dependencies": {
"jquery": ">=1.7"
"jquery": "1.8 - 4"
}
},
"node_modules/datatables.net-fixedheader": {
"version": "3.1.8",
"resolved": "https://registry.npmjs.org/datatables.net-fixedheader/-/datatables.net-fixedheader-3.1.8.tgz",
"integrity": "sha512-MLZgzkU6sGNSqlKuuJC/5/ps4xcmJQZILHqr5bOK/2kBEzCZzH+ZVOjudVRshnxkFn7IOTAOecMQHI6HPHFhag==",
"version": "3.4.1",
"resolved": "https://registry.npmjs.org/datatables.net-fixedheader/-/datatables.net-fixedheader-3.4.1.tgz",
"integrity": "sha512-c9FJAShG5r8RJDIszWQvMFe6Ie+njfbHB9GhzOPjEF7zhbsMUQEkoYq1qW3ppOxY5psadDrT+D3f4iGM589u6w==",
"dependencies": {
"datatables.net": "^1.10.15",
"datatables.net": "^1.13.0",
"jquery": ">=1.7"
}
},
"node_modules/datatables.net-responsive": {
"version": "2.2.7",
"resolved": "https://registry.npmjs.org/datatables.net-responsive/-/datatables.net-responsive-2.2.7.tgz",
"integrity": "sha512-pjZcR+AHa0GE++giRhMBSxFLKrfjP+X7etj7oZMMfMTi1gcdYdM8YP3gmpEyfLjDEg6uPJb9PRH4mQHcc8OYyA==",
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/datatables.net-responsive/-/datatables.net-responsive-2.5.1.tgz",
"integrity": "sha512-hyJb2faIzEWUX5Yn4HOSq/6NNB9SXDVbI4OU9ny+XU/2ghZEz4676spOgzpDHTdWvCfM+t1mbUsT70fDiTTr9w==",
"dependencies": {
"datatables.net": "^1.10.15",
"datatables.net": "^1.13.0",
"jquery": ">=1.7"
}
},
"node_modules/datatables.net-scroller": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/datatables.net-scroller/-/datatables.net-scroller-1.5.1.tgz",
"integrity": "sha512-aMUarBCREmrSLE0n0NBmOMI55Re+EV4KMpR1rMc2l8jhoE+UQWF1Xe0AYuR4342ybesb1WW8U3RVlLdS6gQCmg==",
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/datatables.net-scroller/-/datatables.net-scroller-2.4.1.tgz",
"integrity": "sha512-zLtAUJUrqrLvBPADjmropapUqwIEtZcFABKgffxx50L4bcJr9yFDG4UctI4bFQJjnoRTU5iSAlyGBCxpxeqHfw==",
"dependencies": {
"datatables.net": "^1.10.15",
"datatables.net": "1.11 - 2",
"jquery": ">=1.7"
}
},
"node_modules/datatables.net-select": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/datatables.net-select/-/datatables.net-select-1.3.3.tgz",
"integrity": "sha512-M4e9Qx790IPt+tc+CLgk7gPram3i+M2OmhIkhIpp7RcZ2Ay4App4ouQZcEx3j1MTRIWxtOz47xjpWrwVfJ23YQ==",
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/datatables.net-select/-/datatables.net-select-1.7.1.tgz",
"integrity": "sha512-yC+GoBDVsnbaFTYKmZ2v5Bftc66zSZCYHbPYZb/ccdvxytEEudjc9R3wn6fgkOrVx3C2X/8keQc4a7EJvdOErg==",
"dependencies": {
"datatables.net": "^1.10.15",
"datatables.net": "^1.13.0",
"jquery": ">=1.7"
}
},

View File

@@ -1,3 +1,5 @@
The MIT License (MIT)
Copyright SpryMedia Limited and other contributors
http://datatables.net
@@ -17,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.

View File

@@ -17,11 +17,17 @@ For inclusion of this library using a standard `<script>` tag, rather than using
npm install datatables.net-fixedheader
```
ES3 Syntax
```
var $ = require( 'jquery' );
require( 'datatables.net-fixedheader' )( window, $ );
```
ES6 Syntax
```
import 'datatables.net-fixedheader'
```
### bower
```
@@ -32,8 +38,7 @@ bower install --save datatables.net-fixedheader
## Documentation
Full documentation of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
Full documentation and examples for FixedHeader can be found [on the website](https://datatables.net/extensions/fixedheader).
## Bug / Support

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,36 +1,48 @@
{
"name": "datatables.net-fixedheader",
"version": "3.1.8",
"description": "FixedHeader for DataTables ",
"files": [
"js/**/*.js"
],
"description": "FixedHeader for DataTables",
"main": "js/dataTables.fixedHeader.js",
"type": "types.d.ts",
"module": "js/dataTables.fixedHeader.mjs",
"types": "./types/types.d.ts",
"version": "3.4.1",
"files": [
"js/**/*.js",
"js/**/*.mjs",
"types/**/*.d.ts"
],
"keywords": [
"fixed headers",
"sticky",
"DataTables",
"FixedHeader",
"Fixed Headers",
"Sticky",
"Datatables",
"jQuery",
"table",
"DataTables"
"filter",
"sort"
],
"dependencies": {
"datatables.net": "^1.13.0",
"jquery": ">=1.7"
},
"moduleType": [
"globals",
"amd",
"node"
],
"ignore": [
"composer.json",
"datatables.json",
"package.json"
],
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"author": {
"name": "SpryMedia Ltd",
"url": "http://datatables.net"
},
"dependencies": {
"jquery": ">=1.7",
"datatables.net": "^1.10.15"
},
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/DataTables/Dist-DataTables-FixedHeader.git"
},
"devDependencies": {
"@types/jquery": "^3.5.1"
}
}

View File

@@ -0,0 +1,148 @@
// Type definitions for DataTables FixedHeader
//
// Project: https://datatables.net/extensions/fixedheader/, https://datatables.net
// Definitions by:
// SpryMedia
// Jared Szechy <https://github.com/szechyjs>
// Kiarash Ghiaseddin <https://github.com/Silver-Connection>
/// <reference types="jquery" />
import DataTables, {Api} from 'datatables.net';
export default DataTables;
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* DataTables' types integration
*/
declare module 'datatables.net' {
interface Config {
/*
* FixedHeader extension options
*/
fixedHeader?: boolean | ConfigFixedHeader;
}
interface Api<T> {
/**
* FixedHeader methods container
*
* @returns Api for chaining with the additional FixedHeader methods
*/
fixedHeader: ApiFixedHeaderMethods<T>;
}
interface ApiStatic {
/**
* FixedHeader class
*/
FixedHeader: {
/**
* Create a new FixedHeader instance for the target DataTable
*/
new (dt: Api<any>, settings: boolean | ConfigFixedHeader);
/**
* FixedHeader version
*/
version: string;
/**
* Default configuration values
*/
defaults: ConfigFixedHeader;
}
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Options
*/
interface ConfigFixedHeader {
/*
* Enable / disable fixed footer
*/
footer?: boolean;
/*
* Offset the table's fixed footer
*/
footerOffset?: number;
/*
* Enable / disable fixed header
*/
header?: boolean;
/*
* Offset the table's fixed header
*/
headerOffset?: number;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* API
*/
interface ApiFixedHeaderMethods<T> extends Api<T> {
/**
* Recalculate the position of the DataTable on the page and adjust the fixed element as appropriate.
*
* @returns The DataTables API for chaining
*/
adjust(): Api<T>;
/**
* Disable the fixed elements
*
* @returns The DataTables API for chaining
*/
disable(): Api<T>;
/**
* Enable / disable the fixed elements
*
* @param enable Flag to indicate if the FixedHeader elements should be enabled or disabled, default true.
* @returns The DataTables API for chaining
*/
enable(enable?: boolean): Api<T>;
/**
* Simply gets the status of FixedHeader for this table.
*
* @returns true if FixedHeader is enabled on this table. false otherwise.
*/
enabled(): boolean;
/**
* Get the fixed footer's offset.
*
* @returns The current footer offset
*/
footerOffset(): number;
/**
* Set the fixed footer's offset
*
* @param offset The offset to be set
* @returns DataTables Api for chaining
*/
footerOffset(offset: number): Api<T>;
/**
* Get the fixed header's offset.
*
* @returns The current header offset
*/
headerOffset(): number;
/**
* Set the fixed header's offset
*
* @param offset The offset to be set
* @returns The DataTables API for chaining
*/
headerOffset(offset: number): Api<T>;
}

View File

@@ -1,3 +1,5 @@
The MIT License (MIT)
Copyright SpryMedia Limited and other contributors
http://datatables.net
@@ -17,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.

View File

@@ -17,11 +17,17 @@ For inclusion of this library using a standard `<script>` tag, rather than using
npm install datatables.net-responsive
```
ES3 Syntax
```
var $ = require( 'jquery' );
require( 'datatables.net-responsive' )( window, $ );
```
ES6 Syntax
```
import 'datatables.net-responsive'
```
### bower
```
@@ -32,8 +38,7 @@ bower install --save datatables.net-responsive
## Documentation
Full documentation of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
Full documentation and examples for Responsive can be found [on the website](https://datatables.net/extensions/responsive).
## Bug / Support

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,29 +1,44 @@
{
"name": "datatables.net-responsive",
"version": "2.2.7",
"description": "Responsive for DataTables ",
"files": [
"js/**/*.js"
],
"description": "Responsive for DataTables",
"main": "js/dataTables.responsive.js",
"module": "js/dataTables.responsive.mjs",
"types": "./types/types.d.ts",
"version": "2.5.1",
"files": [
"js/**/*.js",
"js/**/*.mjs",
"types/**/*.d.ts"
],
"keywords": [
"responsive",
"DataTables",
"Responsive",
"Datatables",
"jQuery",
"table",
"DataTables"
"filter",
"sort"
],
"dependencies": {
"datatables.net": "^1.13.0",
"jquery": ">=1.7"
},
"moduleType": [
"globals",
"amd",
"node"
],
"ignore": [
"composer.json",
"datatables.json",
"package.json"
],
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"author": {
"name": "SpryMedia Ltd",
"url": "http://datatables.net"
},
"dependencies": {
"jquery": ">=1.7",
"datatables.net": "^1.10.15"
},
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/DataTables/Dist-DataTables-Responsive.git"

229
node_modules/datatables.net-responsive/types/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,229 @@
// Type definitions for DataTables Responsive
//
// Project: https://datatables.net/extensions/responsive/, https://datatables.net
// Definitions by:
// SpryMedia
/// <reference types="jquery" />
import DataTables, {Api} from 'datatables.net';
export default DataTables;
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* DataTables' types integration
*/
declare module 'datatables.net' {
interface Config {
/**
* Responsive extension options
*/
responsive?: boolean | ConfigResponsive;
}
interface ConfigColumns {
/**
* Set column's visibility priority
*/
responsivePriority?: number;
}
interface Api<T> {
/**
* Responsive methods container
*
* @returns Api for chaining with the additional Responsive methods
*/
responsive: ApiResponsiveMethods<T>;
}
interface ApiColumnMethods {
/**
* Get the responsive visibility state of a column in the table
*/
responsiveHidden(): boolean;
}
interface ApiColumnsMethods {
/**
* Get the responsive visibility state of columns in the table
*/
responsiveHidden(): Api<boolean>;
}
interface ApiStatic {
/**
* Responsive class
*/
Responsive: {
/**
* Create a new Responsive instance for the target DataTable
*/
new (dt: Api<any>, settings: boolean | ConfigResponsive);
/**
* Default configuration values
*/
defaults: ConfigResponsive;
/**
* List of default breakpoints
*/
breakpoints: ResponsiveBreakpoint[];
display: {
childRow: ResponsiveDisplay,
childRowImmediate: ResponsiveDisplay,
modal: ResponsiveDisplay,
};
/**
* Namespace to hold Responsive renderers
*/
renderer: {
listHiddenNodes(): ResponsiveRenderer,
listHidden(): ResponsiveRenderer,
tableAll(options?: {tableClass?: string}): ResponsiveRenderer,
};
/**
* Responsive version
*/
version: string;
}
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Options
*/
interface ConfigResponsive {
/**
* Set the breakpoints for a responsive instance
*/
breakpoints?: Array<Object>;
/**
* Enable and configure the child rows shown by Responsive for collapsed tables.
*/
details?: boolean | ConfigResponsiveDetails;
/**
* The data type to request when obtaining data from the DataTable for a specific cell. See the columns.render and cell().render() documentation for full details.
*/
orthogonal?: string;
}
interface ApiResponsiveMethods<T> extends Api<T> {
/**
* Determine if Responsive has hidden any columns in the table
*
* @returns true if columns have been hidden, false if not
*/
hasHidden(): boolean
/**
* DEPRECATED
* Calculate the cell index from a li details element
*
* @param li The li node (or a jQuery collection containing the node) to get the cell index for.
* @returns Cell object that contains the properties row and column. This object can be used as a DataTables cell-selector.
*/
index(li): object;
/**
* Recalculate the column breakpoints based on the class information of the column header cells
*
* @returns DataTables API instance
*/
rebuild(): Api<T>;
/**
* Recalculate the widths used by responsive after a change in the display.
*
* @returns DataTables Api instance
*/
recalc(): Api<T>;
}
interface ConfigResponsiveDetails {
/**
* Define how the hidden information should be displayed to the end user.
*
* @param row DataTables API instance for the table in question which is pre-populated with the row that is being acted upon - i.e. the result from row().
* @param update This parameter is used to inform the function what has triggered the function call:
* @param render The data to be shown - this is given as a function so it will be executed only when required (i.e. there is no point in gather data to display if the display function is simply going to hide it). The string returned by this function is that given by the responsive.details.renderer function. It accepts no input parameters.
* @returns boolean true if the display function has shown the hidden data, false
*/
display?(row, update, render): boolean;
/**
* Define the renderer used to display the child rows.
*
* @param api DataTables API instance for the table in question
* @param rowIdx Row index for the row that the renderer is being asked to render. Use the row() and / or cells() methods to get information from the API about the row so the information can be rendered.
* @param columns Since 2.0.0: An array of objects containing information about each column in the DataTable. The array length is exactly equal to the number of columns in the DataTable, with each column represented by a DataTable in index order. Additionally, the structure of each object in the array is:
* @returns boolean | string `false` - Do not display a child row. Or a string - The information to be shown in the details display, including any required HTML.
*/
renderer?(api, rowIdx, columns): Node | false;
/**
* As a number it is a column index to the show / hide control should be attached. This can be >=0 to count columns from the left, or <0 to count from the right.
*
* As a string, this option is used as a jQuery selector to determine what element(s) will activate the show / hide control for the details child rows. This provides the ability to use any element in a table - for example you can use the whole row, or a single img element in the row.
*/
target?: number | string;
/**
* The child row display type to use. This can be one of: `inline`, `column` or `none`
*/
type?: string;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Support
*/
interface ResponsiveBreakpoint {
/**
* Breakpoint name
*/
name: string;
/**
* Breakpoint width
*/
width: number;
}
interface ResponsiveRenderer {
/**
* Rendering functions for Responsive
*/
(api: Api<any>, rowIdx: number, columns: ResponsiveColumn[]): Node | false;
}
interface ResponsiveDisplay {
/**
* Display function for Responsive.
*
* @param row DataTables API row() for the row in question
* @param update Indicates if this is a redraw (true) or a fresh draw (false)
* @param render Rendering function to be executed to get the data to show for the row
*/
(row: Api<any>, update: boolean, render: () => Node): boolean;
}
interface ResponsiveColumn {
className: string;
columnIndex: number;
data: any;
hidden: boolean;
rowIndex: number;
title: string;
}

View File

@@ -1,3 +1,5 @@
The MIT License (MIT)
Copyright SpryMedia Limited and other contributors
http://datatables.net
@@ -17,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.

View File

@@ -17,11 +17,17 @@ For inclusion of this library using a standard `<script>` tag, rather than using
npm install datatables.net-scroller
```
ES3 Syntax
```
var $ = require( 'jquery' );
require( 'datatables.net-scroller' )( window, $ );
```
ES6 Syntax
```
import 'datatables.net-scroller'
```
### bower
```
@@ -32,8 +38,7 @@ bower install --save datatables.net-scroller
## Documentation
Full documentation of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
Full documentation and examples for Scroller can be found [on the website](https://datatables.net/extensions/scroller).
## Bug / Support

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,29 +1,45 @@
{
"name": "datatables.net-scroller",
"version": "1.5.1",
"description": "Scroller for DataTables ",
"files": [
"js/**/*.js"
],
"description": "Scroller for DataTables",
"main": "js/dataTables.scroller.js",
"module": "js/dataTables.scroller.mjs",
"types": "./types/types.d.ts",
"version": "2.4.1",
"files": [
"js/**/*.js",
"js/**/*.mjs",
"types/**/*.d.ts"
],
"keywords": [
"virtual scrolling",
"DataTables",
"Scroller",
"Virtual Scrolling",
"Datatables",
"jQuery",
"table",
"DataTables"
"filter",
"sort"
],
"dependencies": {
"datatables.net": "1.11 - 2",
"jquery": ">=1.7"
},
"moduleType": [
"globals",
"amd",
"node"
],
"ignore": [
"composer.json",
"datatables.json",
"package.json"
],
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"author": {
"name": "SpryMedia Ltd",
"url": "http://datatables.net"
},
"dependencies": {
"jquery": ">=1.7",
"datatables.net": "^1.10.15"
},
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/DataTables/Dist-DataTables-Scroller.git"

143
node_modules/datatables.net-scroller/types/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,143 @@
// Type definitions for DataTables Scroller
//
// Project: https://datatables.net/extensions/scroller/, https://datatables.net
// Definitions by:
// SpryMedia
// Konstantin Rohde <https://github.com/RohdeK>
import DataTables, {Api} from 'datatables.net';
export default DataTables;
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* DataTables' types integration
*/
declare module 'datatables.net' {
interface Config {
/**
* Scroller extension options
*/
scroller?: boolean | ConfigScroller;
}
interface Api<T> {
/**
* Scroller methods container
*
* @returns Api for chaining with the additional Scroller methods
*/
scroller: ApiScrollerMethods<T>;
}
interface ApiRowMethods<T> {
/**
* Scroll to a row
*/
scrollTo(animate?: boolean): Api<T>;
}
interface DataTablesStatic {
/**
* Scroller class
*/
Scroller: {
/**
* Create a new Scroller instance for the target DataTable
*/
new (dt: Api<any>, settings: boolean | ConfigScroller): DataTablesStatic['Scroller'];
/**
* Scroller version
*/
version: string;
/**
* Default configuration values
*/
defaults: ConfigScroller;
}
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Options
*/
interface ConfigScroller {
/**
* Scroller uses the boundary scaling factor to decide when to redraw the table - which it
* typically does before you reach the end of the currently loaded data set (in order to
* allow the data to look continuous to a user scrolling through the data).
*/
boundaryScale?: number;
/**
* The display buffer is what Scroller uses to calculate how many rows it should pre-fetch
* for scrolling.
*/
displayBuffer?: number;
/**
* Show (or not) the loading element in the background of the table. Note that you should
* include the dataTables.scroller.css file for this to be displayed correctly.
*/
loadingIndicator?: boolean;
/**
* Scroller will attempt to automatically calculate the height of rows for it's internal
* calculations. However the height that is used can be overridden using this parameter.
*/
rowHeight?: number | string;
/**
* When using server-side processing, Scroller will wait a small amount of time to allow
* the scrolling to finish before requesting more data from the server.
*/
serverWait?: number;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* API
*/
interface ApiScrollerMethods<T> {
/**
* Calculate and store information about how many rows are to be displayed
* in the scrolling viewport, based on current dimensions in the browser's
* rendering.
*
* @param redraw Flag to indicate if the table should immediately redraw or not. true will redraw the table, false will not.
* @returns DataTables Api instance for chaining
*/
measure(redraw?: boolean): Api<T>;
/**
* Get information about current displayed record range.
*
* @returnsAn object with the parameters start and end, defining the start and end, 0 based, display indexes of the rows that are visible in the table's scrolling viewport.
*/
page(): PageInfo;
/**
* Move the display to show the row at the index given.
*
* @param index Display index to jump to.
* @param animate Animate the scroll (true) or not (false).
*/
toPosition(index: number, animate?: boolean): Api<T>;
}
interface PageInfo {
/**
* The 0-indexed record at the top of the viewport
*/
start: number;
/**
* The 0-indexed record at the bottom of the viewport
*/
end: number;
}

View File

@@ -1,3 +1,5 @@
The MIT License (MIT)
Copyright SpryMedia Limited and other contributors
http://datatables.net
@@ -17,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.

View File

@@ -17,11 +17,17 @@ For inclusion of this library using a standard `<script>` tag, rather than using
npm install datatables.net-select
```
ES3 Syntax
```
var $ = require( 'jquery' );
require( 'datatables.net-select' )( window, $ );
```
ES6 Syntax
```
import 'datatables.net-select'
```
### bower
```
@@ -32,8 +38,7 @@ bower install --save datatables.net-select
## Documentation
Full documentation of the DataTables options, API and plug-in interface are available on the DOCS_LINK. The site also contains information on the wide variety of plug-ins that are available for DataTables, which can be used to enhance and customise your table even further.
Full documentation and examples for Select can be found [on the website](https://datatables.net/extensions/select).
## Bug / Support

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,36 +1,47 @@
{
"name": "datatables.net-select",
"version": "1.3.3",
"description": "Select for DataTables ",
"files": [
"js/**/*.js"
],
"description": "Select for DataTables",
"main": "js/dataTables.select.js",
"type": "types.d.ts",
"module": "js/dataTables.select.mjs",
"types": "./types/types.d.ts",
"version": "1.7.1",
"files": [
"js/**/*.js",
"js/**/*.mjs",
"types/**/*.d.ts"
],
"keywords": [
"select",
"selection",
"DataTables",
"Datatables",
"jQuery",
"table",
"DataTables"
"filter",
"sort"
],
"dependencies": {
"datatables.net": "^1.13.0",
"jquery": ">=1.7"
},
"moduleType": [
"globals",
"amd",
"node"
],
"ignore": [
"composer.json",
"datatables.json",
"package.json"
],
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"author": {
"name": "SpryMedia Ltd",
"url": "http://datatables.net"
},
"dependencies": {
"jquery": ">=1.7",
"datatables.net": "^1.10.15"
},
"homepage": "https://datatables.net",
"bugs": "https://datatables.net/forums",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/DataTables/Dist-DataTables-Select.git"
},
"devDependencies": {
"@types/jquery": "^3.5.1"
}
}

231
node_modules/datatables.net-select/types/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,231 @@
// Type definitions for DataTables Select
//
// Project: https://datatables.net/extensions/select/, https://datatables.net
// Definitions by:
// SpryMedia
// Jared Szechy <https://github.com/szechyjs>
/// <reference types="jquery" />
import DataTables from 'datatables.net';
export default DataTables;
type StyleType = 'api' | 'single' | 'multi' | 'os' | 'multi+shift';
declare module 'datatables.net' {
interface Config {
/*
* Select extension options
*/
select?: boolean | string | ConfigSelect;
}
interface Api<T> {
select: ApiSelect<Api<T>>
}
interface ApiSelectorModifier {
/**
* Pick rows / columns / cells which are selected
*/
selected?: boolean | undefined;
}
interface ApiRowMethods<T> {
/**
* Select a row
*/
select(): Api<T>;
/**
* Deselect a row
*/
deselect(): Api<T>;
}
interface ApiRowsMethods<T> {
/**
* Select multiple rows
*/
select(): Api<T>;
/**
* Deselect a row
*/
deselect(): Api<T>;
}
interface ApiCellMethods<T> {
/**
* Select cell
*/
select(): Api<T>;
/**
* Deselect a cell
*/
deselect(): Api<T>;
}
interface ApiCellsMethods<T> {
/**
* Select multiple cells
*/
select(): Api<T>;
/**
* Deselect cells
*/
deselect(): Api<T>;
}
interface ApiStatic {
/**
* Select static methods
*/
select: {
/**
* Initialise Select (for use on tables which were not in the document
* when they were initialised).
*/
init: <T=any>(api: Api<T>) => void;
/**
* Select version
*/
version: string;
}
}
}
interface ConfigSelect {
/**
* Indicate if the selected items will be removed when clicking outside of the table
*/
blurable?: boolean;
/**
* Set the class name that will be applied to selected items
*/
className?: string;
/**
* Enable / disable the display for item selection information in the table summary
*/
info?: boolean;
/**
* Set which table items to select (rows, columns or cells)
*/
items?: string;
/**
* Set the element selector used for mouse event capture to select items
*/
selector?: string;
/**
* Set the selection style for end user interaction with the table
*/
style?: StyleType;
}
interface ApiSelect<Api> {
/**
* Initialise Select for a DataTable after the DataTable has been constructed.
*
* @returns DataTables Api instance
*/
(): Api;
/**
* Get the blurable state for the table.
*
* @returns Current state - true if blurable, false otherwise. Note that if multiple tables are defined in the API's context, only the blurable state of the first table will be returned.
*/
blurable(): boolean;
/**
* Set the blurable state for the table's selection options.
*
* @param flag Value to set for the blurable option - true to enable, false to disable.
* @returns DataTables Api instance for chaining
*/
blurable(flag): Api;
/**
* Get the summary information display state for the table.
*
* @returns Current state - true if information summary shown, false otherwise. Note that if multiple tables are defined in the API's context, only the information state of the first table will be returned.
*/
info(): boolean;
/**
* Set the information summary display state for the table's selection options.
*
* @param flag Value to set for the information summary display state - true to enable, false to disable.
* @returns DataTables API instance for chaining.
*/
info(flag): Api;
/**
* Get the items that will be selected by user interaction (i.e. a click on the table).
*
* @returns The current item that will be selected when the user interacts with Select's event listeners - this will be the value row, column or cell.
*/
items(): string;
/**
* Set the item type that will be selected by user interaction.
*
* @param set Items to select - this must be one of row, column or cells.
* @returns DataTables API instance for chaining.
*/
items(set: string): Api;
/**
* Get the current item selector string applied to the table.
*
* @returns the item selector string being used for the table.
*/
selector(): string;
/**
* Set the table's item selector string. Note that any old selectors will be automatically removed if this is used as a selector to ensure that there are no memory leaks in unattached event listeners.
*
* @param set jQuery selector that will select the cells that can trigger item selection.
*/
selector(set: string): Api;
/**
* Get the current selection style applied to the table
*
* @returns The current selection style, this will be one of "api", "single", "multi" or "os".
*/
style(): string;
/**
* Set the table's selection style
*
* @param s Selection style to set - this must be one of "api", "single", "multi" or "os".
* @returns DataTables API instance for chaining.
*/
style(s: StyleType): Api;
/**
* Get the toggle state of Select for the given DataTable.
*
* @returns true if the item can be deselected when clicked on, false if it cannot be.
*/
toggleable(): boolean;
/**
* Set the toggle state of Select for the DataTable.
*
* @param set true to allow item deselection, false to disallow.
* @returns DataTables API instance for chaining.
*/
toggleable(set): Api;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

15675
node_modules/datatables.net/js/jquery.dataTables.mjs generated vendored Normal file

File diff suppressed because it is too large Load Diff

5
node_modules/datatables.net/js/jquery.js generated vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -2,10 +2,12 @@
"name": "datatables.net",
"description": "jQuery DataTables",
"main": "js/jquery.dataTables.js",
"module": "js/jquery.dataTables.mjs",
"types": "./types/types.d.ts",
"version": "1.11.3",
"version": "1.13.11",
"files": [
"js/**/*.js",
"js/**/*.mjs",
"types/**/*.d.ts"
],
"keywords": [
@@ -16,7 +18,7 @@
"sort"
],
"dependencies": {
"jquery": ">=1.7"
"jquery": "1.8 - 4"
},
"moduleType": [
"globals",
@@ -39,4 +41,4 @@
"type": "git",
"url": "https://github.com/DataTables/Dist-DataTables.git"
}
}
}

File diff suppressed because it is too large Load Diff