@tanstack/table-core 9.0.0-beta.15 → 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/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/types/Column.ts +3 -1
|
@@ -2,8 +2,8 @@ import { CellData, RowData, Updater } from "../../types/type-utils.cjs";
|
|
|
2
2
|
import { ColumnSizingState } from "./columnSizingFeature.types.cjs";
|
|
3
3
|
import { Header } from "../../types/Header.cjs";
|
|
4
4
|
import { ColumnPinningPosition } from "../column-pinning/columnPinningFeature.types.cjs";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
|
|
7
7
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
8
8
|
|
|
9
9
|
//#region src/features/column-sizing/columnSizingFeature.utils.d.ts
|
|
@@ -47,7 +47,7 @@ declare function getDefaultColumnSizingColumnDef(): {
|
|
|
47
47
|
* const width = column_getSize(column)
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
declare function column_getSize<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
50
|
+
declare function column_getSize<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): number;
|
|
51
51
|
/**
|
|
52
52
|
* Computes the offset from the start edge of a pinning region to this column.
|
|
53
53
|
*
|
|
@@ -59,7 +59,7 @@ declare function column_getSize<TFeatures extends TableFeatures, TData extends R
|
|
|
59
59
|
* const leftOffset = column_getStart(column, 'left')
|
|
60
60
|
* ```
|
|
61
61
|
*/
|
|
62
|
-
declare function column_getStart<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
62
|
+
declare function column_getStart<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, position: ColumnPinningPosition | 'center'): number;
|
|
63
63
|
/**
|
|
64
64
|
* Computes the offset from the end edge of a pinning region after this column.
|
|
65
65
|
*
|
|
@@ -71,7 +71,7 @@ declare function column_getStart<TFeatures extends TableFeatures, TData extends
|
|
|
71
71
|
* const rightOffset = column_getAfter(column, 'right')
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
|
-
declare function column_getAfter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
74
|
+
declare function column_getAfter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, position: ColumnPinningPosition | 'center'): number;
|
|
75
75
|
/**
|
|
76
76
|
* Removes this column's committed size override.
|
|
77
77
|
*
|
|
@@ -83,7 +83,7 @@ declare function column_getAfter<TFeatures extends TableFeatures, TData extends
|
|
|
83
83
|
* column_resetSize(column)
|
|
84
84
|
* ```
|
|
85
85
|
*/
|
|
86
|
-
declare function column_resetSize<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
86
|
+
declare function column_resetSize<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): void;
|
|
87
87
|
/**
|
|
88
88
|
* Computes a header's rendered size from its leaf headers.
|
|
89
89
|
*
|
|
@@ -119,7 +119,7 @@ declare function header_getStart<TFeatures extends TableFeatures, TData extends
|
|
|
119
119
|
* table_setColumnSizing(table, (old) => ({ ...old, age: 96 }))
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
|
-
declare function table_setColumnSizing<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
122
|
+
declare function table_setColumnSizing<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<ColumnSizingState>): void;
|
|
123
123
|
/**
|
|
124
124
|
* Resets `columnSizing` to the configured initial state or feature default.
|
|
125
125
|
*
|
|
@@ -132,7 +132,7 @@ declare function table_setColumnSizing<TFeatures extends TableFeatures, TData ex
|
|
|
132
132
|
* table_resetColumnSizing(table, true)
|
|
133
133
|
* ```
|
|
134
134
|
*/
|
|
135
|
-
declare function table_resetColumnSizing<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
135
|
+
declare function table_resetColumnSizing<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
136
136
|
/**
|
|
137
137
|
* Sums the rendered size of the full table header row.
|
|
138
138
|
*
|
|
@@ -143,7 +143,7 @@ declare function table_resetColumnSizing<TFeatures extends TableFeatures, TData
|
|
|
143
143
|
* const width = table_getTotalSize(table)
|
|
144
144
|
* ```
|
|
145
145
|
*/
|
|
146
|
-
declare function table_getTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
146
|
+
declare function table_getTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
147
147
|
/**
|
|
148
148
|
* Sums the rendered size of the left pinned header region.
|
|
149
149
|
*
|
|
@@ -154,7 +154,7 @@ declare function table_getTotalSize<TFeatures extends TableFeatures, TData exten
|
|
|
154
154
|
* const width = table_getLeftTotalSize(table)
|
|
155
155
|
* ```
|
|
156
156
|
*/
|
|
157
|
-
declare function table_getLeftTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
157
|
+
declare function table_getLeftTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
158
158
|
/**
|
|
159
159
|
* Sums the rendered size of the center, unpinned header region.
|
|
160
160
|
*
|
|
@@ -165,7 +165,7 @@ declare function table_getLeftTotalSize<TFeatures extends TableFeatures, TData e
|
|
|
165
165
|
* const width = table_getCenterTotalSize(table)
|
|
166
166
|
* ```
|
|
167
167
|
*/
|
|
168
|
-
declare function table_getCenterTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
168
|
+
declare function table_getCenterTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
169
169
|
/**
|
|
170
170
|
* Sums the rendered size of the right pinned header region.
|
|
171
171
|
*
|
|
@@ -176,7 +176,7 @@ declare function table_getCenterTotalSize<TFeatures extends TableFeatures, TData
|
|
|
176
176
|
* const width = table_getRightTotalSize(table)
|
|
177
177
|
* ```
|
|
178
178
|
*/
|
|
179
|
-
declare function table_getRightTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
179
|
+
declare function table_getRightTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
180
180
|
//#endregion
|
|
181
181
|
export { column_getAfter, column_getSize, column_getStart, column_resetSize, getDefaultColumnSizingColumnDef, getDefaultColumnSizingState, header_getSize, header_getStart, table_getCenterTotalSize, table_getLeftTotalSize, table_getRightTotalSize, table_getTotalSize, table_resetColumnSizing, table_setColumnSizing };
|
|
182
182
|
//# sourceMappingURL=columnSizingFeature.utils.d.cts.map
|
|
@@ -2,8 +2,8 @@ import { CellData, RowData, Updater } from "../../types/type-utils.js";
|
|
|
2
2
|
import { ColumnSizingState } from "./columnSizingFeature.types.js";
|
|
3
3
|
import { Header } from "../../types/Header.js";
|
|
4
4
|
import { ColumnPinningPosition } from "../column-pinning/columnPinningFeature.types.js";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
|
|
6
|
+
|
|
7
7
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
8
8
|
|
|
9
9
|
//#region src/features/column-sizing/columnSizingFeature.utils.d.ts
|
|
@@ -47,7 +47,7 @@ declare function getDefaultColumnSizingColumnDef(): {
|
|
|
47
47
|
* const width = column_getSize(column)
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
declare function column_getSize<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
50
|
+
declare function column_getSize<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): number;
|
|
51
51
|
/**
|
|
52
52
|
* Computes the offset from the start edge of a pinning region to this column.
|
|
53
53
|
*
|
|
@@ -59,7 +59,7 @@ declare function column_getSize<TFeatures extends TableFeatures, TData extends R
|
|
|
59
59
|
* const leftOffset = column_getStart(column, 'left')
|
|
60
60
|
* ```
|
|
61
61
|
*/
|
|
62
|
-
declare function column_getStart<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
62
|
+
declare function column_getStart<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, position: ColumnPinningPosition | 'center'): number;
|
|
63
63
|
/**
|
|
64
64
|
* Computes the offset from the end edge of a pinning region after this column.
|
|
65
65
|
*
|
|
@@ -71,7 +71,7 @@ declare function column_getStart<TFeatures extends TableFeatures, TData extends
|
|
|
71
71
|
* const rightOffset = column_getAfter(column, 'right')
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
|
-
declare function column_getAfter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
74
|
+
declare function column_getAfter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, position: ColumnPinningPosition | 'center'): number;
|
|
75
75
|
/**
|
|
76
76
|
* Removes this column's committed size override.
|
|
77
77
|
*
|
|
@@ -83,7 +83,7 @@ declare function column_getAfter<TFeatures extends TableFeatures, TData extends
|
|
|
83
83
|
* column_resetSize(column)
|
|
84
84
|
* ```
|
|
85
85
|
*/
|
|
86
|
-
declare function column_resetSize<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
86
|
+
declare function column_resetSize<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): void;
|
|
87
87
|
/**
|
|
88
88
|
* Computes a header's rendered size from its leaf headers.
|
|
89
89
|
*
|
|
@@ -119,7 +119,7 @@ declare function header_getStart<TFeatures extends TableFeatures, TData extends
|
|
|
119
119
|
* table_setColumnSizing(table, (old) => ({ ...old, age: 96 }))
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
|
-
declare function table_setColumnSizing<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
122
|
+
declare function table_setColumnSizing<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<ColumnSizingState>): void;
|
|
123
123
|
/**
|
|
124
124
|
* Resets `columnSizing` to the configured initial state or feature default.
|
|
125
125
|
*
|
|
@@ -132,7 +132,7 @@ declare function table_setColumnSizing<TFeatures extends TableFeatures, TData ex
|
|
|
132
132
|
* table_resetColumnSizing(table, true)
|
|
133
133
|
* ```
|
|
134
134
|
*/
|
|
135
|
-
declare function table_resetColumnSizing<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
135
|
+
declare function table_resetColumnSizing<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
136
136
|
/**
|
|
137
137
|
* Sums the rendered size of the full table header row.
|
|
138
138
|
*
|
|
@@ -143,7 +143,7 @@ declare function table_resetColumnSizing<TFeatures extends TableFeatures, TData
|
|
|
143
143
|
* const width = table_getTotalSize(table)
|
|
144
144
|
* ```
|
|
145
145
|
*/
|
|
146
|
-
declare function table_getTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
146
|
+
declare function table_getTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
147
147
|
/**
|
|
148
148
|
* Sums the rendered size of the left pinned header region.
|
|
149
149
|
*
|
|
@@ -154,7 +154,7 @@ declare function table_getTotalSize<TFeatures extends TableFeatures, TData exten
|
|
|
154
154
|
* const width = table_getLeftTotalSize(table)
|
|
155
155
|
* ```
|
|
156
156
|
*/
|
|
157
|
-
declare function table_getLeftTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
157
|
+
declare function table_getLeftTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
158
158
|
/**
|
|
159
159
|
* Sums the rendered size of the center, unpinned header region.
|
|
160
160
|
*
|
|
@@ -165,7 +165,7 @@ declare function table_getLeftTotalSize<TFeatures extends TableFeatures, TData e
|
|
|
165
165
|
* const width = table_getCenterTotalSize(table)
|
|
166
166
|
* ```
|
|
167
167
|
*/
|
|
168
|
-
declare function table_getCenterTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
168
|
+
declare function table_getCenterTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
169
169
|
/**
|
|
170
170
|
* Sums the rendered size of the right pinned header region.
|
|
171
171
|
*
|
|
@@ -176,7 +176,7 @@ declare function table_getCenterTotalSize<TFeatures extends TableFeatures, TData
|
|
|
176
176
|
* const width = table_getRightTotalSize(table)
|
|
177
177
|
* ```
|
|
178
178
|
*/
|
|
179
|
-
declare function table_getRightTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
179
|
+
declare function table_getRightTotalSize<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
180
180
|
//#endregion
|
|
181
181
|
export { column_getAfter, column_getSize, column_getStart, column_resetSize, getDefaultColumnSizingColumnDef, getDefaultColumnSizingState, header_getSize, header_getStart, table_getCenterTotalSize, table_getLeftTotalSize, table_getRightTotalSize, table_getTotalSize, table_resetColumnSizing, table_setColumnSizing };
|
|
182
182
|
//# sourceMappingURL=columnSizingFeature.utils.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CellData, RowData, Updater } from "../../types/type-utils.cjs";
|
|
2
|
-
import { Column
|
|
2
|
+
import { Column } from "../../types/Column.cjs";
|
|
3
3
|
import { ColumnVisibilityState } from "./columnVisibilityFeature.types.cjs";
|
|
4
4
|
import { Row } from "../../types/Row.cjs";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
7
7
|
import { Cell } from "../../types/Cell.cjs";
|
|
8
8
|
//#region src/features/column-visibility/columnVisibilityFeature.utils.d.ts
|
|
@@ -29,7 +29,7 @@ declare function getDefaultColumnVisibilityState(): ColumnVisibilityState;
|
|
|
29
29
|
* column_toggleVisibility(column)
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare function column_toggleVisibility<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
32
|
+
declare function column_toggleVisibility<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, visible?: boolean): void;
|
|
33
33
|
/**
|
|
34
34
|
* Checks whether this column is visible.
|
|
35
35
|
*
|
|
@@ -42,7 +42,7 @@ declare function column_toggleVisibility<TFeatures extends TableFeatures, TData
|
|
|
42
42
|
* const visible = column_getIsVisible(column)
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
declare function column_getIsVisible<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
45
|
+
declare function column_getIsVisible<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
46
46
|
/**
|
|
47
47
|
* Checks whether this column is allowed to be hidden.
|
|
48
48
|
*
|
|
@@ -53,7 +53,7 @@ declare function column_getIsVisible<TFeatures extends TableFeatures, TData exte
|
|
|
53
53
|
* const canHide = column_getCanHide(column)
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
declare function column_getCanHide<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
56
|
+
declare function column_getCanHide<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
57
57
|
/**
|
|
58
58
|
* Creates a checkbox-style handler that writes this column's visibility.
|
|
59
59
|
*
|
|
@@ -65,7 +65,7 @@ declare function column_getCanHide<TFeatures extends TableFeatures, TData extend
|
|
|
65
65
|
* const onChange = column_getToggleVisibilityHandler(column)
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
declare function column_getToggleVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
68
|
+
declare function column_getToggleVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): (e: unknown) => void;
|
|
69
69
|
/**
|
|
70
70
|
* Collects the cells from this row whose columns are visible.
|
|
71
71
|
*
|
|
@@ -100,7 +100,7 @@ declare function row_getVisibleCellsByColumnId<TFeatures extends TableFeatures,
|
|
|
100
100
|
* const columns = table_getVisibleFlatColumns(table)
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
103
|
+
declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): Column<TFeatures, TData, unknown>[];
|
|
104
104
|
/**
|
|
105
105
|
* Filters leaf columns down to those currently visible.
|
|
106
106
|
*
|
|
@@ -112,7 +112,7 @@ declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TD
|
|
|
112
112
|
* const columns = table_getVisibleLeafColumns(table)
|
|
113
113
|
* ```
|
|
114
114
|
*/
|
|
115
|
-
declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
115
|
+
declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): Column<TFeatures, TData, unknown>[];
|
|
116
116
|
/**
|
|
117
117
|
* Routes a column visibility updater through the table's visibility change handler.
|
|
118
118
|
*
|
|
@@ -124,7 +124,7 @@ declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TD
|
|
|
124
124
|
* table_setColumnVisibility(table, (old) => ({ ...old, age: false }))
|
|
125
125
|
* ```
|
|
126
126
|
*/
|
|
127
|
-
declare function table_setColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
127
|
+
declare function table_setColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<ColumnVisibilityState>): void;
|
|
128
128
|
/**
|
|
129
129
|
* Resets `columnVisibility` to the configured initial state or feature default.
|
|
130
130
|
*
|
|
@@ -137,7 +137,7 @@ declare function table_setColumnVisibility<TFeatures extends TableFeatures, TDat
|
|
|
137
137
|
* table_resetColumnVisibility(table, true)
|
|
138
138
|
* ```
|
|
139
139
|
*/
|
|
140
|
-
declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
140
|
+
declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
141
141
|
/**
|
|
142
142
|
* Shows or hides every hideable leaf column.
|
|
143
143
|
*
|
|
@@ -148,7 +148,7 @@ declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TD
|
|
|
148
148
|
* table_toggleAllColumnsVisible(table)
|
|
149
149
|
* ```
|
|
150
150
|
*/
|
|
151
|
-
declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
151
|
+
declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, value?: boolean): void;
|
|
152
152
|
/**
|
|
153
153
|
* Checks whether every leaf column is currently visible.
|
|
154
154
|
*
|
|
@@ -160,7 +160,7 @@ declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures,
|
|
|
160
160
|
* const allVisible = table_getIsAllColumnsVisible(table)
|
|
161
161
|
* ```
|
|
162
162
|
*/
|
|
163
|
-
declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
163
|
+
declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
164
164
|
/**
|
|
165
165
|
* Checks whether at least one leaf column is currently visible.
|
|
166
166
|
*
|
|
@@ -171,7 +171,7 @@ declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, T
|
|
|
171
171
|
* const someVisible = table_getIsSomeColumnsVisible(table)
|
|
172
172
|
* ```
|
|
173
173
|
*/
|
|
174
|
-
declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
174
|
+
declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
175
175
|
/**
|
|
176
176
|
* Creates a checkbox-style handler that shows or hides all columns.
|
|
177
177
|
*
|
|
@@ -183,7 +183,7 @@ declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures,
|
|
|
183
183
|
* const onChange = table_getToggleAllColumnsVisibilityHandler(table)
|
|
184
184
|
* ```
|
|
185
185
|
*/
|
|
186
|
-
declare function table_getToggleAllColumnsVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
186
|
+
declare function table_getToggleAllColumnsVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): (e: unknown) => void;
|
|
187
187
|
//#endregion
|
|
188
188
|
export { column_getCanHide, column_getIsVisible, column_getToggleVisibilityHandler, column_toggleVisibility, getDefaultColumnVisibilityState, row_getVisibleCells, row_getVisibleCellsByColumnId, table_getIsAllColumnsVisible, table_getIsSomeColumnsVisible, table_getToggleAllColumnsVisibilityHandler, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_resetColumnVisibility, table_setColumnVisibility, table_toggleAllColumnsVisible };
|
|
189
189
|
//# sourceMappingURL=columnVisibilityFeature.utils.d.cts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CellData, RowData, Updater } from "../../types/type-utils.js";
|
|
2
|
-
import { Column
|
|
2
|
+
import { Column } from "../../types/Column.js";
|
|
3
3
|
import { ColumnVisibilityState } from "./columnVisibilityFeature.types.js";
|
|
4
4
|
import { Row } from "../../types/Row.js";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
7
7
|
import { Cell } from "../../types/Cell.js";
|
|
8
8
|
//#region src/features/column-visibility/columnVisibilityFeature.utils.d.ts
|
|
@@ -29,7 +29,7 @@ declare function getDefaultColumnVisibilityState(): ColumnVisibilityState;
|
|
|
29
29
|
* column_toggleVisibility(column)
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare function column_toggleVisibility<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
32
|
+
declare function column_toggleVisibility<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>, visible?: boolean): void;
|
|
33
33
|
/**
|
|
34
34
|
* Checks whether this column is visible.
|
|
35
35
|
*
|
|
@@ -42,7 +42,7 @@ declare function column_toggleVisibility<TFeatures extends TableFeatures, TData
|
|
|
42
42
|
* const visible = column_getIsVisible(column)
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
declare function column_getIsVisible<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
45
|
+
declare function column_getIsVisible<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
46
46
|
/**
|
|
47
47
|
* Checks whether this column is allowed to be hidden.
|
|
48
48
|
*
|
|
@@ -53,7 +53,7 @@ declare function column_getIsVisible<TFeatures extends TableFeatures, TData exte
|
|
|
53
53
|
* const canHide = column_getCanHide(column)
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
declare function column_getCanHide<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
56
|
+
declare function column_getCanHide<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
57
57
|
/**
|
|
58
58
|
* Creates a checkbox-style handler that writes this column's visibility.
|
|
59
59
|
*
|
|
@@ -65,7 +65,7 @@ declare function column_getCanHide<TFeatures extends TableFeatures, TData extend
|
|
|
65
65
|
* const onChange = column_getToggleVisibilityHandler(column)
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
declare function column_getToggleVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
68
|
+
declare function column_getToggleVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): (e: unknown) => void;
|
|
69
69
|
/**
|
|
70
70
|
* Collects the cells from this row whose columns are visible.
|
|
71
71
|
*
|
|
@@ -100,7 +100,7 @@ declare function row_getVisibleCellsByColumnId<TFeatures extends TableFeatures,
|
|
|
100
100
|
* const columns = table_getVisibleFlatColumns(table)
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
103
|
+
declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): Column<TFeatures, TData, unknown>[];
|
|
104
104
|
/**
|
|
105
105
|
* Filters leaf columns down to those currently visible.
|
|
106
106
|
*
|
|
@@ -112,7 +112,7 @@ declare function table_getVisibleFlatColumns<TFeatures extends TableFeatures, TD
|
|
|
112
112
|
* const columns = table_getVisibleLeafColumns(table)
|
|
113
113
|
* ```
|
|
114
114
|
*/
|
|
115
|
-
declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
115
|
+
declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): Column<TFeatures, TData, unknown>[];
|
|
116
116
|
/**
|
|
117
117
|
* Routes a column visibility updater through the table's visibility change handler.
|
|
118
118
|
*
|
|
@@ -124,7 +124,7 @@ declare function table_getVisibleLeafColumns<TFeatures extends TableFeatures, TD
|
|
|
124
124
|
* table_setColumnVisibility(table, (old) => ({ ...old, age: false }))
|
|
125
125
|
* ```
|
|
126
126
|
*/
|
|
127
|
-
declare function table_setColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
127
|
+
declare function table_setColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<ColumnVisibilityState>): void;
|
|
128
128
|
/**
|
|
129
129
|
* Resets `columnVisibility` to the configured initial state or feature default.
|
|
130
130
|
*
|
|
@@ -137,7 +137,7 @@ declare function table_setColumnVisibility<TFeatures extends TableFeatures, TDat
|
|
|
137
137
|
* table_resetColumnVisibility(table, true)
|
|
138
138
|
* ```
|
|
139
139
|
*/
|
|
140
|
-
declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
140
|
+
declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
141
141
|
/**
|
|
142
142
|
* Shows or hides every hideable leaf column.
|
|
143
143
|
*
|
|
@@ -148,7 +148,7 @@ declare function table_resetColumnVisibility<TFeatures extends TableFeatures, TD
|
|
|
148
148
|
* table_toggleAllColumnsVisible(table)
|
|
149
149
|
* ```
|
|
150
150
|
*/
|
|
151
|
-
declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
151
|
+
declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, value?: boolean): void;
|
|
152
152
|
/**
|
|
153
153
|
* Checks whether every leaf column is currently visible.
|
|
154
154
|
*
|
|
@@ -160,7 +160,7 @@ declare function table_toggleAllColumnsVisible<TFeatures extends TableFeatures,
|
|
|
160
160
|
* const allVisible = table_getIsAllColumnsVisible(table)
|
|
161
161
|
* ```
|
|
162
162
|
*/
|
|
163
|
-
declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
163
|
+
declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
164
164
|
/**
|
|
165
165
|
* Checks whether at least one leaf column is currently visible.
|
|
166
166
|
*
|
|
@@ -171,7 +171,7 @@ declare function table_getIsAllColumnsVisible<TFeatures extends TableFeatures, T
|
|
|
171
171
|
* const someVisible = table_getIsSomeColumnsVisible(table)
|
|
172
172
|
* ```
|
|
173
173
|
*/
|
|
174
|
-
declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
174
|
+
declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
175
175
|
/**
|
|
176
176
|
* Creates a checkbox-style handler that shows or hides all columns.
|
|
177
177
|
*
|
|
@@ -183,7 +183,7 @@ declare function table_getIsSomeColumnsVisible<TFeatures extends TableFeatures,
|
|
|
183
183
|
* const onChange = table_getToggleAllColumnsVisibilityHandler(table)
|
|
184
184
|
* ```
|
|
185
185
|
*/
|
|
186
|
-
declare function table_getToggleAllColumnsVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
186
|
+
declare function table_getToggleAllColumnsVisibilityHandler<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): (e: unknown) => void;
|
|
187
187
|
//#endregion
|
|
188
188
|
export { column_getCanHide, column_getIsVisible, column_getToggleVisibilityHandler, column_toggleVisibility, getDefaultColumnVisibilityState, row_getVisibleCells, row_getVisibleCellsByColumnId, table_getIsAllColumnsVisible, table_getIsSomeColumnsVisible, table_getToggleAllColumnsVisibilityHandler, table_getVisibleFlatColumns, table_getVisibleLeafColumns, table_resetColumnVisibility, table_setColumnVisibility, table_toggleAllColumnsVisible };
|
|
189
189
|
//# sourceMappingURL=columnVisibilityFeature.utils.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CellData, RowData } from "../../types/type-utils.cjs";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { Row } from "../../types/Row.cjs";
|
|
4
4
|
import { FilterFn } from "../column-filtering/columnFilteringFeature.types.cjs";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
7
7
|
//#region src/features/global-filtering/globalFilteringFeature.utils.d.ts
|
|
8
8
|
/**
|
|
@@ -16,7 +16,7 @@ import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
|
16
16
|
* const canGlobalFilter = column_getCanGlobalFilter(column)
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare function column_getCanGlobalFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
19
|
+
declare function column_getCanGlobalFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Provides the built-in automatic global filter function.
|
|
22
22
|
*
|
|
@@ -43,7 +43,7 @@ declare function table_getGlobalAutoFilterFn(): (<TFeatures extends TableFeature
|
|
|
43
43
|
* const filterFn = table_getGlobalFilterFn(table)
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
46
|
+
declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): FilterFn<TFeatures, TData> | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* Routes a global filter updater through the table's global filter handler.
|
|
49
49
|
*
|
|
@@ -55,7 +55,7 @@ declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData
|
|
|
55
55
|
* table_setGlobalFilter(table, 'search text')
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
58
|
+
declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: any): void;
|
|
59
59
|
/**
|
|
60
60
|
* Resets `globalFilter` to the configured initial state or feature default.
|
|
61
61
|
*
|
|
@@ -68,7 +68,7 @@ declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData ex
|
|
|
68
68
|
* table_resetGlobalFilter(table, true)
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
declare function table_resetGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
71
|
+
declare function table_resetGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
72
72
|
//#endregion
|
|
73
73
|
export { column_getCanGlobalFilter, table_getGlobalAutoFilterFn, table_getGlobalFilterFn, table_resetGlobalFilter, table_setGlobalFilter };
|
|
74
74
|
//# sourceMappingURL=globalFilteringFeature.utils.d.cts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CellData, RowData } from "../../types/type-utils.js";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { Row } from "../../types/Row.js";
|
|
4
4
|
import { FilterFn } from "../column-filtering/columnFilteringFeature.types.js";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
import { TableFeatures } from "../../types/TableFeatures.js";
|
|
7
7
|
//#region src/features/global-filtering/globalFilteringFeature.utils.d.ts
|
|
8
8
|
/**
|
|
@@ -16,7 +16,7 @@ import { TableFeatures } from "../../types/TableFeatures.js";
|
|
|
16
16
|
* const canGlobalFilter = column_getCanGlobalFilter(column)
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare function column_getCanGlobalFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column:
|
|
19
|
+
declare function column_getCanGlobalFilter<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column<TFeatures, TData, TValue>): boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Provides the built-in automatic global filter function.
|
|
22
22
|
*
|
|
@@ -43,7 +43,7 @@ declare function table_getGlobalAutoFilterFn(): (<TFeatures extends TableFeature
|
|
|
43
43
|
* const filterFn = table_getGlobalFilterFn(table)
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
46
|
+
declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): FilterFn<TFeatures, TData> | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* Routes a global filter updater through the table's global filter handler.
|
|
49
49
|
*
|
|
@@ -55,7 +55,7 @@ declare function table_getGlobalFilterFn<TFeatures extends TableFeatures, TData
|
|
|
55
55
|
* table_setGlobalFilter(table, 'search text')
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
58
|
+
declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: any): void;
|
|
59
59
|
/**
|
|
60
60
|
* Resets `globalFilter` to the configured initial state or feature default.
|
|
61
61
|
*
|
|
@@ -68,7 +68,7 @@ declare function table_setGlobalFilter<TFeatures extends TableFeatures, TData ex
|
|
|
68
68
|
* table_resetGlobalFilter(table, true)
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
declare function table_resetGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
71
|
+
declare function table_resetGlobalFilter<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
72
72
|
//#endregion
|
|
73
73
|
export { column_getCanGlobalFilter, table_getGlobalAutoFilterFn, table_getGlobalFilterFn, table_resetGlobalFilter, table_setGlobalFilter };
|
|
74
74
|
//# sourceMappingURL=globalFilteringFeature.utils.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RowData, Updater } from "../../types/type-utils.cjs";
|
|
2
2
|
import { ExpandedState } from "./rowExpandingFeature.types.cjs";
|
|
3
3
|
import { Row } from "../../types/Row.cjs";
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import { TableFeatures } from "../../types/TableFeatures.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/features/row-expanding/rowExpandingFeature.utils.d.ts
|
|
@@ -29,7 +29,7 @@ declare function getDefaultExpandedState(): ExpandedState;
|
|
|
29
29
|
* table_autoResetExpanded(table)
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare function table_autoResetExpanded<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
32
|
+
declare function table_autoResetExpanded<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): void;
|
|
33
33
|
/**
|
|
34
34
|
* Routes an expanded-state updater through the table's expanded change handler.
|
|
35
35
|
*
|
|
@@ -41,7 +41,7 @@ declare function table_autoResetExpanded<TFeatures extends TableFeatures, TData
|
|
|
41
41
|
* table_setExpanded(table, (old) => ({ ...old, [rowId]: true }))
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
declare function table_setExpanded<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
44
|
+
declare function table_setExpanded<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, updater: Updater<ExpandedState>): void;
|
|
45
45
|
/**
|
|
46
46
|
* Expands or collapses every row.
|
|
47
47
|
*
|
|
@@ -54,7 +54,7 @@ declare function table_setExpanded<TFeatures extends TableFeatures, TData extend
|
|
|
54
54
|
* table_toggleAllRowsExpanded(table)
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
declare function table_toggleAllRowsExpanded<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
57
|
+
declare function table_toggleAllRowsExpanded<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, expanded?: boolean): void;
|
|
58
58
|
/**
|
|
59
59
|
* Resets `expanded` to the configured initial state or feature default.
|
|
60
60
|
*
|
|
@@ -67,7 +67,7 @@ declare function table_toggleAllRowsExpanded<TFeatures extends TableFeatures, TD
|
|
|
67
67
|
* table_resetExpanded(table, true)
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
|
-
declare function table_resetExpanded<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
70
|
+
declare function table_resetExpanded<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>, defaultState?: boolean): void;
|
|
71
71
|
/**
|
|
72
72
|
* Checks whether at least one pre-paginated row can expand.
|
|
73
73
|
*
|
|
@@ -79,7 +79,7 @@ declare function table_resetExpanded<TFeatures extends TableFeatures, TData exte
|
|
|
79
79
|
* const canExpand = table_getCanSomeRowsExpand(table)
|
|
80
80
|
* ```
|
|
81
81
|
*/
|
|
82
|
-
declare function table_getCanSomeRowsExpand<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
82
|
+
declare function table_getCanSomeRowsExpand<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
83
83
|
/**
|
|
84
84
|
* Creates an event handler that toggles all rows expanded.
|
|
85
85
|
*
|
|
@@ -91,7 +91,7 @@ declare function table_getCanSomeRowsExpand<TFeatures extends TableFeatures, TDa
|
|
|
91
91
|
* const onClick = table_getToggleAllRowsExpandedHandler(table)
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
|
-
declare function table_getToggleAllRowsExpandedHandler<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
94
|
+
declare function table_getToggleAllRowsExpandedHandler<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): (e: unknown) => void;
|
|
95
95
|
/**
|
|
96
96
|
* Checks whether any row is expanded.
|
|
97
97
|
*
|
|
@@ -102,7 +102,7 @@ declare function table_getToggleAllRowsExpandedHandler<TFeatures extends TableFe
|
|
|
102
102
|
* const someExpanded = table_getIsSomeRowsExpanded(table)
|
|
103
103
|
* ```
|
|
104
104
|
*/
|
|
105
|
-
declare function table_getIsSomeRowsExpanded<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
105
|
+
declare function table_getIsSomeRowsExpanded<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
106
106
|
/**
|
|
107
107
|
* Checks whether every row in the current row model is expanded.
|
|
108
108
|
*
|
|
@@ -114,7 +114,7 @@ declare function table_getIsSomeRowsExpanded<TFeatures extends TableFeatures, TD
|
|
|
114
114
|
* const allExpanded = table_getIsAllRowsExpanded(table)
|
|
115
115
|
* ```
|
|
116
116
|
*/
|
|
117
|
-
declare function table_getIsAllRowsExpanded<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
117
|
+
declare function table_getIsAllRowsExpanded<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): boolean;
|
|
118
118
|
/**
|
|
119
119
|
* Computes the deepest expanded row id depth.
|
|
120
120
|
*
|
|
@@ -126,7 +126,7 @@ declare function table_getIsAllRowsExpanded<TFeatures extends TableFeatures, TDa
|
|
|
126
126
|
* const depth = table_getExpandedDepth(table)
|
|
127
127
|
* ```
|
|
128
128
|
*/
|
|
129
|
-
declare function table_getExpandedDepth<TFeatures extends TableFeatures, TData extends RowData>(table:
|
|
129
|
+
declare function table_getExpandedDepth<TFeatures extends TableFeatures, TData extends RowData>(table: Table<TFeatures, TData>): number;
|
|
130
130
|
/**
|
|
131
131
|
* Expands or collapses this row.
|
|
132
132
|
*
|