datatables.net 2.1.8 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/dataTables.js +312 -102
- package/js/dataTables.min.js +2 -2
- package/js/dataTables.min.mjs +2 -2
- package/js/dataTables.mjs +312 -84
- package/package.json +1 -1
- package/types/types.d.ts +27 -24
package/package.json
CHANGED
package/types/types.d.ts
CHANGED
|
@@ -615,13 +615,15 @@ export interface ConfigLanguage {
|
|
|
615
615
|
previous?: string;
|
|
616
616
|
};
|
|
617
617
|
aria?: {
|
|
618
|
-
|
|
619
|
-
|
|
618
|
+
orderable?: string;
|
|
619
|
+
orderableReverse?: string;
|
|
620
|
+
orderableRemove?: string;
|
|
620
621
|
paginate?: {
|
|
621
622
|
first?: string;
|
|
622
623
|
last?: string;
|
|
623
624
|
next?: string;
|
|
624
625
|
previous?: string;
|
|
626
|
+
number?: string;
|
|
625
627
|
};
|
|
626
628
|
};
|
|
627
629
|
url?: string;
|
|
@@ -1399,6 +1401,7 @@ export interface State {
|
|
|
1399
1401
|
order: Array<Array<(string | number)>>;
|
|
1400
1402
|
search: ConfigSearch;
|
|
1401
1403
|
columns: Array<{
|
|
1404
|
+
name: string;
|
|
1402
1405
|
search: ConfigSearch;
|
|
1403
1406
|
visible: boolean;
|
|
1404
1407
|
}>;
|
|
@@ -1691,7 +1694,7 @@ export interface ApiCellMethods<T> extends Omit<Api<T>, 'render' | 'select'> {
|
|
|
1691
1694
|
*
|
|
1692
1695
|
* @returns The TD / TH cell the selector resolved to
|
|
1693
1696
|
*/
|
|
1694
|
-
node():
|
|
1697
|
+
node(): HTMLTableCellElement;
|
|
1695
1698
|
|
|
1696
1699
|
/**
|
|
1697
1700
|
* Get data for the selected cell
|
|
@@ -1770,7 +1773,7 @@ export interface ApiCellsMethods<T> extends Omit<Api<T>, 'data' | 'render' | 'se
|
|
|
1770
1773
|
/**
|
|
1771
1774
|
* Get the DOM elements for the selected cells
|
|
1772
1775
|
*/
|
|
1773
|
-
nodes(): Api<
|
|
1776
|
+
nodes(): Api<HTMLTableCellElement>;
|
|
1774
1777
|
|
|
1775
1778
|
/**
|
|
1776
1779
|
* Get data for the selected cell
|
|
@@ -1898,7 +1901,7 @@ export interface ApiColumnMethods<T> extends Omit<Api<T>, 'init' | 'data' | 'ord
|
|
|
1898
1901
|
*
|
|
1899
1902
|
* @returns DataTables API instance with each cell's node from the selected columns in the result set. This is a 1D array with each entry being the node for the cells from the selected column.
|
|
1900
1903
|
*/
|
|
1901
|
-
nodes(): Api<Array<
|
|
1904
|
+
nodes(): Api<Array<HTMLTableCellElement>>;
|
|
1902
1905
|
|
|
1903
1906
|
/**
|
|
1904
1907
|
* Order the table, in the direction specified, by the column selected by the column() selector.
|
|
@@ -2131,7 +2134,7 @@ export interface ApiColumnsMethods<T> extends Omit<Api<T>, 'init' | 'data' | 'or
|
|
|
2131
2134
|
*
|
|
2132
2135
|
* @returns DataTables API instance with each cell's node from the selected columns in the result set. This is a 2D array with the top level array entries for each column matched by the columns() selector.
|
|
2133
2136
|
*/
|
|
2134
|
-
nodes(): Api<Array<Array<
|
|
2137
|
+
nodes(): Api<Array<Array<HTMLTableCellElement>>>;
|
|
2135
2138
|
|
|
2136
2139
|
/**
|
|
2137
2140
|
* Order the table, in the direction specified, by the columns selected by the column() selector.
|
|
@@ -2423,14 +2426,14 @@ export interface ApiRowMethods<T> extends Omit<Api<T>, 'data' | 'select'> {
|
|
|
2423
2426
|
*
|
|
2424
2427
|
* @returns tr element of the selected row or null if the element is not yet available
|
|
2425
2428
|
*/
|
|
2426
|
-
node():
|
|
2429
|
+
node(): HTMLTableRowElement;
|
|
2427
2430
|
|
|
2428
2431
|
/**
|
|
2429
2432
|
* Delete the selected row from the DataTable.
|
|
2430
2433
|
*
|
|
2431
2434
|
* @returns DataTables API instance with removed row reference in the result set
|
|
2432
2435
|
*/
|
|
2433
|
-
remove(): Api<
|
|
2436
|
+
remove(): Api<T>;
|
|
2434
2437
|
}
|
|
2435
2438
|
|
|
2436
2439
|
export interface ApiRows<T> {
|
|
@@ -2512,7 +2515,7 @@ export interface ApiRowsMethods<T> extends Omit<Api<T>, 'select'> {
|
|
|
2512
2515
|
*
|
|
2513
2516
|
* @returns DataTables API instance with each row's node from the selected rows in the result set.
|
|
2514
2517
|
*/
|
|
2515
|
-
nodes(): Api<Array<
|
|
2518
|
+
nodes(): Api<Array<HTMLTableRowElement>>;
|
|
2516
2519
|
|
|
2517
2520
|
/**
|
|
2518
2521
|
* Delete the selected rows from the DataTable.
|
|
@@ -2530,7 +2533,7 @@ export interface ApiTableMethods<T> extends Api<T> {
|
|
|
2530
2533
|
*
|
|
2531
2534
|
* @returns HTML tbody node.
|
|
2532
2535
|
*/
|
|
2533
|
-
():
|
|
2536
|
+
(): HTMLTableSectionElement;
|
|
2534
2537
|
|
|
2535
2538
|
/**
|
|
2536
2539
|
* Get an array that represents the structure of the footer
|
|
@@ -2546,7 +2549,7 @@ export interface ApiTableMethods<T> extends Api<T> {
|
|
|
2546
2549
|
*
|
|
2547
2550
|
* @returns HTML thead node.
|
|
2548
2551
|
*/
|
|
2549
|
-
():
|
|
2552
|
+
(): HTMLTableSectionElement;
|
|
2550
2553
|
|
|
2551
2554
|
/**
|
|
2552
2555
|
* Get an array that represents the structure of the header
|
|
@@ -2561,21 +2564,21 @@ export interface ApiTableMethods<T> extends Api<T> {
|
|
|
2561
2564
|
*
|
|
2562
2565
|
* @returns HTML tfoot node.
|
|
2563
2566
|
*/
|
|
2564
|
-
body():
|
|
2567
|
+
body(): HTMLTableSectionElement;
|
|
2565
2568
|
|
|
2566
2569
|
/**
|
|
2567
2570
|
* Get the div container node for the table in the API's context
|
|
2568
2571
|
*
|
|
2569
2572
|
* @returns HTML div node.
|
|
2570
2573
|
*/
|
|
2571
|
-
container():
|
|
2574
|
+
container(): HTMLDivElement;
|
|
2572
2575
|
|
|
2573
2576
|
/**
|
|
2574
2577
|
* Get the table node for the table in the API's context
|
|
2575
2578
|
*
|
|
2576
2579
|
* @returns HTML table node for the selected table.
|
|
2577
2580
|
*/
|
|
2578
|
-
node():
|
|
2581
|
+
node(): HTMLTableElement;
|
|
2579
2582
|
}
|
|
2580
2583
|
|
|
2581
2584
|
export interface ApiTablesMethods<T> extends Api<T> {
|
|
@@ -2584,28 +2587,28 @@ export interface ApiTablesMethods<T> extends Api<T> {
|
|
|
2584
2587
|
*
|
|
2585
2588
|
* @returns Array of HTML tfoot nodes for all table in the API's context
|
|
2586
2589
|
*/
|
|
2587
|
-
footer(): Api<Array<
|
|
2590
|
+
footer(): Api<Array<HTMLTableSectionElement>>;
|
|
2588
2591
|
|
|
2589
2592
|
/**
|
|
2590
2593
|
* Get the thead nodes for the tables in the API's context
|
|
2591
2594
|
*
|
|
2592
2595
|
* @returns Array of HTML thead nodes for all table in the API's context
|
|
2593
2596
|
*/
|
|
2594
|
-
header(): Api<Array<
|
|
2597
|
+
header(): Api<Array<HTMLTableSectionElement>>;
|
|
2595
2598
|
|
|
2596
2599
|
/**
|
|
2597
2600
|
* Get the tbody nodes for the tables in the API's context
|
|
2598
2601
|
*
|
|
2599
2602
|
* @returns Array of HTML tbody nodes for all table in the API's context
|
|
2600
2603
|
*/
|
|
2601
|
-
body(): Api<Array<
|
|
2604
|
+
body(): Api<Array<HTMLTableSectionElement>>;
|
|
2602
2605
|
|
|
2603
2606
|
/**
|
|
2604
2607
|
* Get the div container nodes for the tables in the API's context
|
|
2605
2608
|
*
|
|
2606
2609
|
* @returns Array of HTML div nodes for all table in the API's context
|
|
2607
2610
|
*/
|
|
2608
|
-
containers(): Api<Array<
|
|
2611
|
+
containers(): Api<Array<HTMLDivElement>>;
|
|
2609
2612
|
|
|
2610
2613
|
/**
|
|
2611
2614
|
* Iterate over each selected table, with the function context set to be the table in question. Since: DataTables 1.10.6
|
|
@@ -2620,7 +2623,7 @@ export interface ApiTablesMethods<T> extends Api<T> {
|
|
|
2620
2623
|
*
|
|
2621
2624
|
* @returns Array of HTML table nodes for all table in the API's context
|
|
2622
2625
|
*/
|
|
2623
|
-
nodes(): Api<Array<
|
|
2626
|
+
nodes(): Api<Array<HTMLTableElement>>;
|
|
2624
2627
|
}
|
|
2625
2628
|
|
|
2626
2629
|
|
|
@@ -3320,17 +3323,17 @@ type FunctionAjaxData = (data: AjaxData, settings: InternalSettings) => string |
|
|
|
3320
3323
|
|
|
3321
3324
|
type FunctionColumnRender = (data: any, type: any, row: any, meta: CellMetaSettings) => any;
|
|
3322
3325
|
|
|
3323
|
-
type FunctionColumnCreatedCell = (cell:
|
|
3326
|
+
type FunctionColumnCreatedCell = (cell: HTMLTableCellElement, cellData: any, rowData: any, row: number, col: number) => void;
|
|
3324
3327
|
|
|
3325
|
-
type FunctionCreateRow = (row:
|
|
3328
|
+
type FunctionCreateRow = (row: HTMLTableRowElement, data: any[] | object, dataIndex: number, cells: HTMLTableCellElement[]) => void;
|
|
3326
3329
|
|
|
3327
3330
|
type FunctionDrawCallback = (settings: InternalSettings) => void;
|
|
3328
3331
|
|
|
3329
|
-
type FunctionFooterCallback = (
|
|
3332
|
+
type FunctionFooterCallback = (tr: HTMLTableRowElement, data: any[], start: number, end: number, display: any[]) => void;
|
|
3330
3333
|
|
|
3331
3334
|
type FunctionFormatNumber = (formatNumber: number) => void;
|
|
3332
3335
|
|
|
3333
|
-
type FunctionHeaderCallback = (
|
|
3336
|
+
type FunctionHeaderCallback = (tr: HTMLTableRowElement, data: any[], start: number, end: number, display: any[]) => void;
|
|
3334
3337
|
|
|
3335
3338
|
type FunctionInfoCallback = (settings: InternalSettings, start: number, end: number, mnax: number, total: number, pre: string) => void;
|
|
3336
3339
|
|
|
@@ -3338,7 +3341,7 @@ type FunctionInitComplete = (settings: InternalSettings, json: object) => void;
|
|
|
3338
3341
|
|
|
3339
3342
|
type FunctionPreDrawCallback = (settings: InternalSettings) => void;
|
|
3340
3343
|
|
|
3341
|
-
type FunctionRowCallback = (row:
|
|
3344
|
+
type FunctionRowCallback = (row: HTMLTableRowElement, data: any[] | object, index: number) => void;
|
|
3342
3345
|
|
|
3343
3346
|
type FunctionStateLoadCallback = (settings: InternalSettings) => void;
|
|
3344
3347
|
|