mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 23:18:43 +02:00
N°7355 - Upgrade datatables.net to 1.13.11 (and plugins)
This commit is contained in:
4
node_modules/datatables.net-responsive/License.txt
generated
vendored
4
node_modules/datatables.net-responsive/License.txt
generated
vendored
@@ -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.
|
||||
|
||||
9
node_modules/datatables.net-responsive/Readme.md
generated
vendored
9
node_modules/datatables.net-responsive/Readme.md
generated
vendored
@@ -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
|
||||
|
||||
|
||||
1295
node_modules/datatables.net-responsive/js/dataTables.responsive.js
generated
vendored
1295
node_modules/datatables.net-responsive/js/dataTables.responsive.js
generated
vendored
File diff suppressed because it is too large
Load Diff
36
node_modules/datatables.net-responsive/js/dataTables.responsive.min.js
generated
vendored
36
node_modules/datatables.net-responsive/js/dataTables.responsive.min.js
generated
vendored
File diff suppressed because one or more lines are too long
4
node_modules/datatables.net-responsive/js/dataTables.responsive.min.mjs
generated
vendored
Normal file
4
node_modules/datatables.net-responsive/js/dataTables.responsive.min.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1528
node_modules/datatables.net-responsive/js/dataTables.responsive.mjs
generated
vendored
Normal file
1528
node_modules/datatables.net-responsive/js/dataTables.responsive.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
45
node_modules/datatables.net-responsive/package.json
generated
vendored
45
node_modules/datatables.net-responsive/package.json
generated
vendored
@@ -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
229
node_modules/datatables.net-responsive/types/types.d.ts
generated
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user