@tanstack/table-core 9.0.0-beta.14 → 9.0.0-beta.16
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/dist/core/cells/constructCell.d.cts +2 -2
- package/dist/core/cells/constructCell.d.ts +2 -2
- package/dist/core/cells/coreCellsFeature.types.d.cts +2 -2
- package/dist/core/cells/coreCellsFeature.types.d.ts +2 -2
- package/dist/core/cells/coreCellsFeature.utils.d.cts +2 -2
- package/dist/core/cells/coreCellsFeature.utils.d.ts +2 -2
- package/dist/core/columns/constructColumn.d.cts +2 -2
- package/dist/core/columns/constructColumn.d.ts +2 -2
- package/dist/core/columns/coreColumnsFeature.types.d.cts +2 -2
- package/dist/core/columns/coreColumnsFeature.types.d.ts +2 -2
- package/dist/core/columns/coreColumnsFeature.utils.d.cts +8 -8
- package/dist/core/columns/coreColumnsFeature.utils.d.ts +8 -8
- package/dist/core/headers/buildHeaderGroups.d.cts +2 -2
- package/dist/core/headers/buildHeaderGroups.d.ts +2 -2
- package/dist/core/headers/constructHeader.d.cts +2 -2
- package/dist/core/headers/constructHeader.d.ts +2 -2
- package/dist/core/headers/coreHeadersFeature.utils.d.cts +6 -6
- package/dist/core/headers/coreHeadersFeature.utils.d.ts +6 -6
- package/dist/core/row-models/coreRowModelsFeature.utils.d.cts +13 -13
- package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +13 -13
- package/dist/core/row-models/createCoreRowModel.d.cts +2 -2
- package/dist/core/row-models/createCoreRowModel.d.ts +2 -2
- package/dist/core/rows/constructRow.d.cts +2 -2
- package/dist/core/rows/constructRow.d.ts +2 -2
- package/dist/core/rows/coreRowsFeature.types.d.cts +2 -2
- package/dist/core/rows/coreRowsFeature.types.d.ts +2 -2
- package/dist/core/rows/coreRowsFeature.utils.d.cts +3 -3
- package/dist/core/rows/coreRowsFeature.utils.d.ts +3 -3
- package/dist/core/table/coreTablesFeature.types.d.cts +1 -1
- package/dist/core/table/coreTablesFeature.types.d.ts +1 -1
- package/dist/core/table/coreTablesFeature.utils.d.cts +5 -5
- package/dist/core/table/coreTablesFeature.utils.d.ts +5 -5
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +8 -8
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +8 -8
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +12 -12
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +12 -12
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +11 -11
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +11 -11
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +9 -9
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +9 -9
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +29 -29
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +29 -29
- package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +6 -6
- package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +6 -6
- package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +12 -12
- package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +12 -12
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +14 -14
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +14 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +6 -6
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +6 -6
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.cts +10 -10
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +10 -10
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.cts +17 -17
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +17 -17
- package/dist/features/row-pinning/rowPinningFeature.utils.d.cts +7 -7
- package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +7 -7
- package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +15 -15
- package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +15 -15
- package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +16 -16
- package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +16 -16
- package/dist/fns/filterFns.cjs +2 -2
- package/dist/fns/filterFns.cjs.map +1 -1
- package/dist/fns/filterFns.js +2 -2
- package/dist/fns/filterFns.js.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/types/Column.d.cts +2 -4
- package/dist/types/Column.d.ts +2 -4
- package/dist/types/Table.d.cts +3 -16
- package/dist/types/Table.d.ts +3 -16
- package/dist/types/TableFeatures.d.cts +7 -7
- package/dist/types/TableFeatures.d.ts +7 -7
- package/dist/utils.d.cts +4 -4
- package/dist/utils.d.ts +4 -4
- package/package.json +2 -2
- package/src/core/headers/coreHeadersFeature.types.ts +2 -2
- package/src/fns/filterFns.ts +8 -2
- package/src/types/Column.ts +3 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.js";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
4
4
|
import { RowModel } from "./coreRowModelsFeature.types.js";
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@ import { RowModel } from "./coreRowModelsFeature.types.js";
|
|
|
15
15
|
* const coreRows = table_getCoreRowModel(table)
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
declare function table_getCoreRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
18
|
+
declare function table_getCoreRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
19
19
|
/**
|
|
20
20
|
* Reads the row model immediately before column/global filtering.
|
|
21
21
|
*
|
|
@@ -27,7 +27,7 @@ declare function table_getCoreRowModel<TFeatures extends TableFeatures, TData ex
|
|
|
27
27
|
* const rowsBeforeFiltering = table_getPreFilteredRowModel(table)
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
declare function table_getPreFilteredRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
30
|
+
declare function table_getPreFilteredRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
31
31
|
/**
|
|
32
32
|
* Resolves the row model after column and global filtering.
|
|
33
33
|
*
|
|
@@ -40,7 +40,7 @@ declare function table_getPreFilteredRowModel<TFeatures extends TableFeatures, T
|
|
|
40
40
|
* const filteredRows = table_getFilteredRowModel(table)
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
declare function table_getFilteredRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
43
|
+
declare function table_getFilteredRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
44
44
|
/**
|
|
45
45
|
* Reads the row model immediately before grouping.
|
|
46
46
|
*
|
|
@@ -51,7 +51,7 @@ declare function table_getFilteredRowModel<TFeatures extends TableFeatures, TDat
|
|
|
51
51
|
* const rowsBeforeGrouping = table_getPreGroupedRowModel(table)
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
declare function table_getPreGroupedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
54
|
+
declare function table_getPreGroupedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
55
55
|
/**
|
|
56
56
|
* Resolves the row model after grouping has produced grouped and aggregated rows.
|
|
57
57
|
*
|
|
@@ -63,7 +63,7 @@ declare function table_getPreGroupedRowModel<TFeatures extends TableFeatures, TD
|
|
|
63
63
|
* const groupedRows = table_getGroupedRowModel(table)
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
|
-
declare function table_getGroupedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
66
|
+
declare function table_getGroupedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
67
67
|
/**
|
|
68
68
|
* Reads the row model immediately before sorting.
|
|
69
69
|
*
|
|
@@ -74,7 +74,7 @@ declare function table_getGroupedRowModel<TFeatures extends TableFeatures, TData
|
|
|
74
74
|
* const rowsBeforeSorting = table_getPreSortedRowModel(table)
|
|
75
75
|
* ```
|
|
76
76
|
*/
|
|
77
|
-
declare function table_getPreSortedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
77
|
+
declare function table_getPreSortedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
78
78
|
/**
|
|
79
79
|
* Resolves the row model after sorting has been applied.
|
|
80
80
|
*
|
|
@@ -87,7 +87,7 @@ declare function table_getPreSortedRowModel<TFeatures extends TableFeatures, TDa
|
|
|
87
87
|
* const sortedRows = table_getSortedRowModel(table)
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
|
-
declare function table_getSortedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
90
|
+
declare function table_getSortedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
91
91
|
/**
|
|
92
92
|
* Reads the row model immediately before row expansion.
|
|
93
93
|
*
|
|
@@ -98,7 +98,7 @@ declare function table_getSortedRowModel<TFeatures extends TableFeatures, TData
|
|
|
98
98
|
* const rowsBeforeExpansion = table_getPreExpandedRowModel(table)
|
|
99
99
|
* ```
|
|
100
100
|
*/
|
|
101
|
-
declare function table_getPreExpandedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
101
|
+
declare function table_getPreExpandedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
102
102
|
/**
|
|
103
103
|
* Resolves the row model after expanded rows have been flattened into view.
|
|
104
104
|
*
|
|
@@ -110,7 +110,7 @@ declare function table_getPreExpandedRowModel<TFeatures extends TableFeatures, T
|
|
|
110
110
|
* const expandedRows = table_getExpandedRowModel(table)
|
|
111
111
|
* ```
|
|
112
112
|
*/
|
|
113
|
-
declare function table_getExpandedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
113
|
+
declare function table_getExpandedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
114
114
|
/**
|
|
115
115
|
* Reads the row model immediately before pagination.
|
|
116
116
|
*
|
|
@@ -122,7 +122,7 @@ declare function table_getExpandedRowModel<TFeatures extends TableFeatures, TDat
|
|
|
122
122
|
* const rowsBeforePagination = table_getPrePaginatedRowModel(table)
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
|
-
declare function table_getPrePaginatedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
125
|
+
declare function table_getPrePaginatedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
126
126
|
/**
|
|
127
127
|
* Resolves the row model after pagination has sliced rows for the current page.
|
|
128
128
|
*
|
|
@@ -135,7 +135,7 @@ declare function table_getPrePaginatedRowModel<TFeatures extends TableFeatures,
|
|
|
135
135
|
* const pageRows = table_getPaginatedRowModel(table)
|
|
136
136
|
* ```
|
|
137
137
|
*/
|
|
138
|
-
declare function table_getPaginatedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
138
|
+
declare function table_getPaginatedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
139
139
|
/**
|
|
140
140
|
* Resolves the final row model consumed by renderers.
|
|
141
141
|
*
|
|
@@ -147,7 +147,7 @@ declare function table_getPaginatedRowModel<TFeatures extends TableFeatures, TDa
|
|
|
147
147
|
* const visibleRows = table_getRowModel(table)
|
|
148
148
|
* ```
|
|
149
149
|
*/
|
|
150
|
-
declare function table_getRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
150
|
+
declare function table_getRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
151
151
|
//#endregion
|
|
152
152
|
export { table_getCoreRowModel, table_getExpandedRowModel, table_getFilteredRowModel, table_getGroupedRowModel, table_getPaginatedRowModel, table_getPreExpandedRowModel, table_getPreFilteredRowModel, table_getPreGroupedRowModel, table_getPrePaginatedRowModel, table_getPreSortedRowModel, table_getRowModel, table_getSortedRowModel };
|
|
153
153
|
//# sourceMappingURL=coreRowModelsFeature.utils.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.cjs";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
4
4
|
import { RowModel } from "./coreRowModelsFeature.types.cjs";
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ import { RowModel } from "./coreRowModelsFeature.types.cjs";
|
|
|
9
9
|
*
|
|
10
10
|
* The factory reads the relevant table state atoms and options, then returns a row model function used by the table row-model pipeline.
|
|
11
11
|
*/
|
|
12
|
-
declare function createCoreRowModel<TFeatures extends TableFeatures, TData extends RowData>(): (table:
|
|
12
|
+
declare function createCoreRowModel<TFeatures extends TableFeatures, TData extends RowData>(): (table: Table<TFeatures, TData>) => () => RowModel<TFeatures, TData>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { createCoreRowModel };
|
|
15
15
|
//# sourceMappingURL=createCoreRowModel.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.js";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
4
4
|
import { RowModel } from "./coreRowModelsFeature.types.js";
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ import { RowModel } from "./coreRowModelsFeature.types.js";
|
|
|
9
9
|
*
|
|
10
10
|
* The factory reads the relevant table state atoms and options, then returns a row model function used by the table row-model pipeline.
|
|
11
11
|
*/
|
|
12
|
-
declare function createCoreRowModel<TFeatures extends TableFeatures, TData extends RowData>(): (table:
|
|
12
|
+
declare function createCoreRowModel<TFeatures extends TableFeatures, TData extends RowData>(): (table: Table<TFeatures, TData>) => () => RowModel<TFeatures, TData>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { createCoreRowModel };
|
|
15
15
|
//# sourceMappingURL=createCoreRowModel.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.cjs";
|
|
2
2
|
import { Row } from "../../types/Row.cjs";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/core/rows/constructRow.d.ts
|
|
@@ -9,7 +9,7 @@ import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
|
9
9
|
*
|
|
10
10
|
* This wires core properties, feature prototype APIs, and instance data used by table rendering and row-model operations.
|
|
11
11
|
*/
|
|
12
|
-
declare const constructRow: <TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
12
|
+
declare const constructRow: <TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, id: string, original: TData, rowIndex: number, depth: number, subRows?: Array<Row<TFeatures, TData>>, parentId?: string) => Row<TFeatures, TData>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { constructRow };
|
|
15
15
|
//# sourceMappingURL=constructRow.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.js";
|
|
2
2
|
import { Row } from "../../types/Row.js";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
5
5
|
|
|
6
6
|
//#region src/core/rows/constructRow.d.ts
|
|
@@ -9,7 +9,7 @@ import { TableFeatures } from "../../types/TableFeatures.js";
|
|
|
9
9
|
*
|
|
10
10
|
* This wires core properties, feature prototype APIs, and instance data used by table rendering and row-model operations.
|
|
11
11
|
*/
|
|
12
|
-
declare const constructRow: <TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
12
|
+
declare const constructRow: <TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, id: string, original: TData, rowIndex: number, depth: number, subRows?: Array<Row<TFeatures, TData>>, parentId?: string) => Row<TFeatures, TData>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { constructRow };
|
|
15
15
|
//# sourceMappingURL=constructRow.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.cjs";
|
|
2
2
|
import { Row } from "../../types/Row.cjs";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
5
5
|
import { Cell } from "../../types/Cell.cjs";
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ interface Row_CoreProperties<in out TFeatures extends TableFeatures, in out TDat
|
|
|
39
39
|
/**
|
|
40
40
|
* Reference to the parent table instance.
|
|
41
41
|
*/
|
|
42
|
-
table:
|
|
42
|
+
table: Table<TFeatures, TData>;
|
|
43
43
|
}
|
|
44
44
|
interface Row_Row<in out TFeatures extends TableFeatures, in out TData extends RowData> extends Row_CoreProperties<TFeatures, TData> {
|
|
45
45
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.js";
|
|
2
2
|
import { Row } from "../../types/Row.js";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
5
5
|
import { Cell } from "../../types/Cell.js";
|
|
6
6
|
|
|
@@ -39,7 +39,7 @@ interface Row_CoreProperties<in out TFeatures extends TableFeatures, in out TDat
|
|
|
39
39
|
/**
|
|
40
40
|
* Reference to the parent table instance.
|
|
41
41
|
*/
|
|
42
|
-
table:
|
|
42
|
+
table: Table<TFeatures, TData>;
|
|
43
43
|
}
|
|
44
44
|
interface Row_Row<in out TFeatures extends TableFeatures, in out TData extends RowData> extends Row_CoreProperties<TFeatures, TData> {
|
|
45
45
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.cjs";
|
|
2
2
|
import { Row } from "../../types/Row.cjs";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
5
5
|
import { Cell } from "../../types/Cell.cjs";
|
|
6
6
|
|
|
@@ -109,7 +109,7 @@ declare function row_getAllCellsByColumnId<TFeatures extends TableFeatures, TDat
|
|
|
109
109
|
* const id = table_getRowId(originalRow, table, index, parentRow)
|
|
110
110
|
* ```
|
|
111
111
|
*/
|
|
112
|
-
declare function table_getRowId<TFeatures extends TableFeatures, TData extends RowData>(originalRow: TData, table:
|
|
112
|
+
declare function table_getRowId<TFeatures extends TableFeatures, TData extends RowData>(originalRow: TData, table: Table<TFeatures, TData>, index: number, parent?: Row<TFeatures, TData>): string;
|
|
113
113
|
/**
|
|
114
114
|
* Looks up a row by id from the current or full row model.
|
|
115
115
|
*
|
|
@@ -121,7 +121,7 @@ declare function table_getRowId<TFeatures extends TableFeatures, TData extends R
|
|
|
121
121
|
* const row = table_getRow(table, rowId, true)
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
|
-
declare function table_getRow<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
124
|
+
declare function table_getRow<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, rowId: string, searchAll?: boolean): Row<TFeatures, TData>;
|
|
125
125
|
//#endregion
|
|
126
126
|
export { row_getAllCells, row_getAllCellsByColumnId, row_getLeafRows, row_getParentRow, row_getParentRows, row_getUniqueValues, row_getValue, row_renderValue, table_getRow, table_getRowId };
|
|
127
127
|
//# sourceMappingURL=coreRowsFeature.utils.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowData } from "../../types/type-utils.js";
|
|
2
2
|
import { Row } from "../../types/Row.js";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
5
5
|
import { Cell } from "../../types/Cell.js";
|
|
6
6
|
|
|
@@ -109,7 +109,7 @@ declare function row_getAllCellsByColumnId<TFeatures extends TableFeatures, TDat
|
|
|
109
109
|
* const id = table_getRowId(originalRow, table, index, parentRow)
|
|
110
110
|
* ```
|
|
111
111
|
*/
|
|
112
|
-
declare function table_getRowId<TFeatures extends TableFeatures, TData extends RowData>(originalRow: TData, table:
|
|
112
|
+
declare function table_getRowId<TFeatures extends TableFeatures, TData extends RowData>(originalRow: TData, table: Table<TFeatures, TData>, index: number, parent?: Row<TFeatures, TData>): string;
|
|
113
113
|
/**
|
|
114
114
|
* Looks up a row by id from the current or full row model.
|
|
115
115
|
*
|
|
@@ -121,7 +121,7 @@ declare function table_getRowId<TFeatures extends TableFeatures, TData extends R
|
|
|
121
121
|
* const row = table_getRow(table, rowId, true)
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
|
-
declare function table_getRow<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
124
|
+
declare function table_getRow<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, rowId: string, searchAll?: boolean): Row<TFeatures, TData>;
|
|
125
125
|
//#endregion
|
|
126
126
|
export { row_getAllCells, row_getAllCellsByColumnId, row_getLeafRows, row_getParentRow, row_getParentRows, row_getUniqueValues, row_getValue, row_renderValue, table_getRow, table_getRowId };
|
|
127
127
|
//# sourceMappingURL=coreRowsFeature.utils.d.ts.map
|
|
@@ -41,7 +41,7 @@ type Atoms<TFeatures extends TableFeatures> = { [K in keyof TableState<TFeatures
|
|
|
41
41
|
*/
|
|
42
42
|
type ExternalAtoms<TFeatures extends TableFeatures> = Partial<{ [K in keyof TableState<TFeatures>]: Atom<TableState<TFeatures>[K]> }>;
|
|
43
43
|
/**
|
|
44
|
-
* Internal "all features" flat variants of the atom types. `
|
|
44
|
+
* Internal "all features" flat variants of the atom types. `Table`
|
|
45
45
|
* uses these so feature code (written generically over `TFeatures`) can access
|
|
46
46
|
* any slice atom (e.g. `table.atoms.columnPinning`) without TypeScript
|
|
47
47
|
* narrowing away slices that aren't in the current `TFeatures` union.
|
|
@@ -41,7 +41,7 @@ type Atoms<TFeatures extends TableFeatures> = { [K in keyof TableState<TFeatures
|
|
|
41
41
|
*/
|
|
42
42
|
type ExternalAtoms<TFeatures extends TableFeatures> = Partial<{ [K in keyof TableState<TFeatures>]: Atom<TableState<TFeatures>[K]> }>;
|
|
43
43
|
/**
|
|
44
|
-
* Internal "all features" flat variants of the atom types. `
|
|
44
|
+
* Internal "all features" flat variants of the atom types. `Table`
|
|
45
45
|
* uses these so feature code (written generically over `TFeatures`) can access
|
|
46
46
|
* any slice atom (e.g. `table.atoms.columnPinning`) without TypeScript
|
|
47
47
|
* narrowing away slices that aren't in the current `TFeatures` union.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowData, Updater } from "../../types/type-utils.cjs";
|
|
2
2
|
import { TableOptions } from "../../types/TableOptions.cjs";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/core/table/coreTablesFeature.utils.d.ts
|
|
@@ -15,7 +15,7 @@ import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
|
15
15
|
* table_syncExternalStateToBaseAtoms(table)
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
declare function table_syncExternalStateToBaseAtoms<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
18
|
+
declare function table_syncExternalStateToBaseAtoms<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): void;
|
|
19
19
|
/**
|
|
20
20
|
* Resets all internal table base atoms to `table.initialState`.
|
|
21
21
|
*
|
|
@@ -27,7 +27,7 @@ declare function table_syncExternalStateToBaseAtoms<TFeatures extends TableFeatu
|
|
|
27
27
|
* table_reset(table)
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
declare function table_reset<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
30
|
+
declare function table_reset<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): void;
|
|
31
31
|
/**
|
|
32
32
|
* Merges new table options with the current resolved options.
|
|
33
33
|
*
|
|
@@ -41,7 +41,7 @@ declare function table_reset<TFeatures extends TableFeatures, TData extends RowD
|
|
|
41
41
|
* const options = table_mergeOptions(table, nextOptions)
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
declare function table_mergeOptions<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
44
|
+
declare function table_mergeOptions<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, newOptions: TableOptions<TFeatures, TData>): TableOptions<TFeatures, TData>;
|
|
45
45
|
/**
|
|
46
46
|
* Updates the table options object.
|
|
47
47
|
*
|
|
@@ -53,7 +53,7 @@ declare function table_mergeOptions<TFeatures extends TableFeatures, TData exten
|
|
|
53
53
|
* table_setOptions(table, (old) => old)
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
declare function table_setOptions<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
56
|
+
declare function table_setOptions<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<TableOptions<TFeatures, TData>>): void;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { table_mergeOptions, table_reset, table_setOptions, table_syncExternalStateToBaseAtoms };
|
|
59
59
|
//# sourceMappingURL=coreTablesFeature.utils.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RowData, Updater } from "../../types/type-utils.js";
|
|
2
2
|
import { TableOptions } from "../../types/TableOptions.js";
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
5
5
|
|
|
6
6
|
//#region src/core/table/coreTablesFeature.utils.d.ts
|
|
@@ -15,7 +15,7 @@ import { TableFeatures } from "../../types/TableFeatures.js";
|
|
|
15
15
|
* table_syncExternalStateToBaseAtoms(table)
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
declare function table_syncExternalStateToBaseAtoms<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
18
|
+
declare function table_syncExternalStateToBaseAtoms<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): void;
|
|
19
19
|
/**
|
|
20
20
|
* Resets all internal table base atoms to `table.initialState`.
|
|
21
21
|
*
|
|
@@ -27,7 +27,7 @@ declare function table_syncExternalStateToBaseAtoms<TFeatures extends TableFeatu
|
|
|
27
27
|
* table_reset(table)
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
declare function table_reset<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
30
|
+
declare function table_reset<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): void;
|
|
31
31
|
/**
|
|
32
32
|
* Merges new table options with the current resolved options.
|
|
33
33
|
*
|
|
@@ -41,7 +41,7 @@ declare function table_reset<TFeatures extends TableFeatures, TData extends RowD
|
|
|
41
41
|
* const options = table_mergeOptions(table, nextOptions)
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
declare function table_mergeOptions<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
44
|
+
declare function table_mergeOptions<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, newOptions: TableOptions<TFeatures, TData>): TableOptions<TFeatures, TData>;
|
|
45
45
|
/**
|
|
46
46
|
* Updates the table options object.
|
|
47
47
|
*
|
|
@@ -53,7 +53,7 @@ declare function table_mergeOptions<TFeatures extends TableFeatures, TData exten
|
|
|
53
53
|
* table_setOptions(table, (old) => old)
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
declare function table_setOptions<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
56
|
+
declare function table_setOptions<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<TableOptions<TFeatures, TData>>): void;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { table_mergeOptions, table_reset, table_setOptions, table_syncExternalStateToBaseAtoms };
|
|
59
59
|
//# sourceMappingURL=coreTablesFeature.utils.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CellData, RowData } from "../../types/type-utils.cjs";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
5
5
|
import { RowModel } from "../../core/row-models/coreRowModelsFeature.types.cjs";
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ import { RowModel } from "../../core/row-models/coreRowModelsFeature.types.cjs";
|
|
|
16
16
|
* const range = column_getFacetedMinMaxValues(column, table)
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare function column_getFacetedMinMaxValues<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
19
|
+
declare function column_getFacetedMinMaxValues<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, table: Table<TFeatures, TData>): [number, number] | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* Computes the row model used to derive one column's facet values.
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ declare function column_getFacetedMinMaxValues<TFeatures extends TableFeatures,
|
|
|
29
29
|
* const rows = column_getFacetedRowModel(column, table)
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare function column_getFacetedRowModel<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
32
|
+
declare function column_getFacetedRowModel<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue> | undefined, table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
33
33
|
/**
|
|
34
34
|
* Computes unique facet values and their occurrence counts for one column.
|
|
35
35
|
*
|
|
@@ -41,7 +41,7 @@ declare function column_getFacetedRowModel<TFeatures extends TableFeatures, TDat
|
|
|
41
41
|
* const values = column_getFacetedUniqueValues(column, table)
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
declare function column_getFacetedUniqueValues<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
44
|
+
declare function column_getFacetedUniqueValues<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, table: Table<TFeatures, TData>): Map<any, number>;
|
|
45
45
|
/**
|
|
46
46
|
* Computes min and max numeric facet values for the global filter context.
|
|
47
47
|
*
|
|
@@ -53,7 +53,7 @@ declare function column_getFacetedUniqueValues<TFeatures extends TableFeatures,
|
|
|
53
53
|
* const range = table_getGlobalFacetedMinMaxValues(table)
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
declare function table_getGlobalFacetedMinMaxValues<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
56
|
+
declare function table_getGlobalFacetedMinMaxValues<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): undefined | [number, number];
|
|
57
57
|
/**
|
|
58
58
|
* Computes the row model used to derive global facet values.
|
|
59
59
|
*
|
|
@@ -66,7 +66,7 @@ declare function table_getGlobalFacetedMinMaxValues<TFeatures extends TableFeatu
|
|
|
66
66
|
* const rows = table_getGlobalFacetedRowModel(table)
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
|
-
declare function table_getGlobalFacetedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
69
|
+
declare function table_getGlobalFacetedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
70
70
|
/**
|
|
71
71
|
* Computes unique values and occurrence counts for the global filter context.
|
|
72
72
|
*
|
|
@@ -78,7 +78,7 @@ declare function table_getGlobalFacetedRowModel<TFeatures extends TableFeatures,
|
|
|
78
78
|
* const values = table_getGlobalFacetedUniqueValues(table)
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
|
-
declare function table_getGlobalFacetedUniqueValues<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
81
|
+
declare function table_getGlobalFacetedUniqueValues<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): Map<any, number>;
|
|
82
82
|
//#endregion
|
|
83
83
|
export { column_getFacetedMinMaxValues, column_getFacetedRowModel, column_getFacetedUniqueValues, table_getGlobalFacetedMinMaxValues, table_getGlobalFacetedRowModel, table_getGlobalFacetedUniqueValues };
|
|
84
84
|
//# sourceMappingURL=columnFacetingFeature.utils.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CellData, RowData } from "../../types/type-utils.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
|
|
4
4
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
5
5
|
import { RowModel } from "../../core/row-models/coreRowModelsFeature.types.js";
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ import { RowModel } from "../../core/row-models/coreRowModelsFeature.types.js";
|
|
|
16
16
|
* const range = column_getFacetedMinMaxValues(column, table)
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare function column_getFacetedMinMaxValues<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
19
|
+
declare function column_getFacetedMinMaxValues<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, table: Table<TFeatures, TData>): [number, number] | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* Computes the row model used to derive one column's facet values.
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ declare function column_getFacetedMinMaxValues<TFeatures extends TableFeatures,
|
|
|
29
29
|
* const rows = column_getFacetedRowModel(column, table)
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare function column_getFacetedRowModel<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
32
|
+
declare function column_getFacetedRowModel<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue> | undefined, table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
33
33
|
/**
|
|
34
34
|
* Computes unique facet values and their occurrence counts for one column.
|
|
35
35
|
*
|
|
@@ -41,7 +41,7 @@ declare function column_getFacetedRowModel<TFeatures extends TableFeatures, TDat
|
|
|
41
41
|
* const values = column_getFacetedUniqueValues(column, table)
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
declare function column_getFacetedUniqueValues<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
44
|
+
declare function column_getFacetedUniqueValues<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, table: Table<TFeatures, TData>): Map<any, number>;
|
|
45
45
|
/**
|
|
46
46
|
* Computes min and max numeric facet values for the global filter context.
|
|
47
47
|
*
|
|
@@ -53,7 +53,7 @@ declare function column_getFacetedUniqueValues<TFeatures extends TableFeatures,
|
|
|
53
53
|
* const range = table_getGlobalFacetedMinMaxValues(table)
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
declare function table_getGlobalFacetedMinMaxValues<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
56
|
+
declare function table_getGlobalFacetedMinMaxValues<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): undefined | [number, number];
|
|
57
57
|
/**
|
|
58
58
|
* Computes the row model used to derive global facet values.
|
|
59
59
|
*
|
|
@@ -66,7 +66,7 @@ declare function table_getGlobalFacetedMinMaxValues<TFeatures extends TableFeatu
|
|
|
66
66
|
* const rows = table_getGlobalFacetedRowModel(table)
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
|
-
declare function table_getGlobalFacetedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
69
|
+
declare function table_getGlobalFacetedRowModel<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): RowModel<TFeatures, TData>;
|
|
70
70
|
/**
|
|
71
71
|
* Computes unique values and occurrence counts for the global filter context.
|
|
72
72
|
*
|
|
@@ -78,7 +78,7 @@ declare function table_getGlobalFacetedRowModel<TFeatures extends TableFeatures,
|
|
|
78
78
|
* const values = table_getGlobalFacetedUniqueValues(table)
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
|
-
declare function table_getGlobalFacetedUniqueValues<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
81
|
+
declare function table_getGlobalFacetedUniqueValues<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): Map<any, number>;
|
|
82
82
|
//#endregion
|
|
83
83
|
export { column_getFacetedMinMaxValues, column_getFacetedRowModel, column_getFacetedUniqueValues, table_getGlobalFacetedMinMaxValues, table_getGlobalFacetedRowModel, table_getGlobalFacetedUniqueValues };
|
|
84
84
|
//# sourceMappingURL=columnFacetingFeature.utils.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CellData, RowData, Updater } from "../../types/type-utils.cjs";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { ColumnFiltersState, FilterFn } from "./columnFilteringFeature.types.cjs";
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/features/column-filtering/columnFilteringFeature.utils.d.ts
|
|
@@ -29,7 +29,7 @@ declare function getDefaultColumnFiltersState(): ColumnFiltersState;
|
|
|
29
29
|
* const filterFn = column_getAutoFilterFn(column)
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare function column_getAutoFilterFn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
32
|
+
declare function column_getAutoFilterFn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): FilterFn<TFeatures, TData> | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* Resolves the filter function configured for a column.
|
|
35
35
|
*
|
|
@@ -42,7 +42,7 @@ declare function column_getAutoFilterFn<TFeatures extends TableFeatures, TData e
|
|
|
42
42
|
* const filterFn = column_getFilterFn(column)
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
declare function column_getFilterFn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
45
|
+
declare function column_getFilterFn<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): FilterFn<TFeatures, TData> | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Checks whether column filtering is enabled for this accessor column.
|
|
48
48
|
*
|
|
@@ -54,7 +54,7 @@ declare function column_getFilterFn<TFeatures extends TableFeatures, TData exten
|
|
|
54
54
|
* const canFilter = column_getCanFilter(column)
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
declare function column_getCanFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
57
|
+
declare function column_getCanFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
58
58
|
/**
|
|
59
59
|
* Checks whether this column currently has an entry in `state.columnFilters`.
|
|
60
60
|
*
|
|
@@ -66,7 +66,7 @@ declare function column_getCanFilter<TFeatures extends TableFeatures, TData exte
|
|
|
66
66
|
* const isFiltered = column_getIsFiltered(column)
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
|
-
declare function column_getIsFiltered<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
69
|
+
declare function column_getIsFiltered<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
70
70
|
/**
|
|
71
71
|
* Reads this column's current filter value from `state.columnFilters`.
|
|
72
72
|
*
|
|
@@ -77,7 +77,7 @@ declare function column_getIsFiltered<TFeatures extends TableFeatures, TData ext
|
|
|
77
77
|
* const value = column_getFilterValue(column)
|
|
78
78
|
* ```
|
|
79
79
|
*/
|
|
80
|
-
declare function column_getFilterValue<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
80
|
+
declare function column_getFilterValue<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): unknown;
|
|
81
81
|
/**
|
|
82
82
|
* Finds this column's position in the ordered `state.columnFilters` array.
|
|
83
83
|
*
|
|
@@ -88,7 +88,7 @@ declare function column_getFilterValue<TFeatures extends TableFeatures, TData ex
|
|
|
88
88
|
* const index = column_getFilterIndex(column)
|
|
89
89
|
* ```
|
|
90
90
|
*/
|
|
91
|
-
declare function column_getFilterIndex<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
91
|
+
declare function column_getFilterIndex<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): number;
|
|
92
92
|
/**
|
|
93
93
|
* Adds, updates, or removes this column's filter value.
|
|
94
94
|
*
|
|
@@ -100,7 +100,7 @@ declare function column_getFilterIndex<TFeatures extends TableFeatures, TData ex
|
|
|
100
100
|
* column_setFilterValue(column, (old) => String(old ?? '').trim())
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
declare function column_setFilterValue<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
103
|
+
declare function column_setFilterValue<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, value: any): void;
|
|
104
104
|
/**
|
|
105
105
|
* Routes a column filter updater through the table's filter change handler.
|
|
106
106
|
*
|
|
@@ -113,7 +113,7 @@ declare function column_setFilterValue<TFeatures extends TableFeatures, TData ex
|
|
|
113
113
|
* table_setColumnFilters(table, (old) => old.filter((filter) => filter.id !== 'age'))
|
|
114
114
|
* ```
|
|
115
115
|
*/
|
|
116
|
-
declare function table_setColumnFilters<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
116
|
+
declare function table_setColumnFilters<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<ColumnFiltersState>): void;
|
|
117
117
|
/**
|
|
118
118
|
* Resets `columnFilters` to the configured initial state or feature default.
|
|
119
119
|
*
|
|
@@ -126,7 +126,7 @@ declare function table_setColumnFilters<TFeatures extends TableFeatures, TData e
|
|
|
126
126
|
* table_resetColumnFilters(table, true)
|
|
127
127
|
* ```
|
|
128
128
|
*/
|
|
129
|
-
declare function table_resetColumnFilters<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
129
|
+
declare function table_resetColumnFilters<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
130
130
|
/**
|
|
131
131
|
* Returns whether a filter value should be removed from filter state.
|
|
132
132
|
*
|
|
@@ -137,7 +137,7 @@ declare function table_resetColumnFilters<TFeatures extends TableFeatures, TData
|
|
|
137
137
|
* const removeFilter = shouldAutoRemoveFilter(filterFn, value, column)
|
|
138
138
|
* ```
|
|
139
139
|
*/
|
|
140
|
-
declare function shouldAutoRemoveFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(filterFn?: FilterFn<TFeatures, TData>, value?: any, column?:
|
|
140
|
+
declare function shouldAutoRemoveFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(filterFn?: FilterFn<TFeatures, TData>, value?: any, column?: Column<TFeatures, TData, TValue>): boolean;
|
|
141
141
|
//#endregion
|
|
142
142
|
export { column_getAutoFilterFn, column_getCanFilter, column_getFilterFn, column_getFilterIndex, column_getFilterValue, column_getIsFiltered, column_setFilterValue, getDefaultColumnFiltersState, shouldAutoRemoveFilter, table_resetColumnFilters, table_setColumnFilters };
|
|
143
143
|
//# sourceMappingURL=columnFilteringFeature.utils.d.cts.map
|