@tanstack/table-core 9.0.0-alpha.47 → 9.0.0-alpha.48
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/README.md +10 -0
- package/dist/core/cells/coreCellsFeature.utils.cjs +11 -8
- package/dist/core/cells/coreCellsFeature.utils.cjs.map +1 -1
- package/dist/core/cells/coreCellsFeature.utils.d.cts +11 -8
- package/dist/core/cells/coreCellsFeature.utils.d.ts +11 -8
- package/dist/core/cells/coreCellsFeature.utils.js +11 -8
- package/dist/core/cells/coreCellsFeature.utils.js.map +1 -1
- package/dist/core/columns/coreColumnsFeature.types.d.cts +7 -6
- package/dist/core/columns/coreColumnsFeature.types.d.ts +7 -6
- package/dist/core/columns/coreColumnsFeature.utils.cjs +37 -27
- package/dist/core/columns/coreColumnsFeature.utils.cjs.map +1 -1
- package/dist/core/columns/coreColumnsFeature.utils.d.cts +37 -27
- package/dist/core/columns/coreColumnsFeature.utils.d.ts +37 -27
- package/dist/core/columns/coreColumnsFeature.utils.js +37 -27
- package/dist/core/columns/coreColumnsFeature.utils.js.map +1 -1
- package/dist/core/headers/coreHeadersFeature.types.d.cts +6 -4
- package/dist/core/headers/coreHeadersFeature.types.d.ts +6 -4
- package/dist/core/headers/coreHeadersFeature.utils.cjs +23 -18
- package/dist/core/headers/coreHeadersFeature.utils.cjs.map +1 -1
- package/dist/core/headers/coreHeadersFeature.utils.d.cts +23 -18
- package/dist/core/headers/coreHeadersFeature.utils.d.ts +23 -18
- package/dist/core/headers/coreHeadersFeature.utils.js +23 -18
- package/dist/core/headers/coreHeadersFeature.utils.js.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs +48 -36
- package/dist/core/row-models/coreRowModelsFeature.utils.cjs.map +1 -1
- package/dist/core/row-models/coreRowModelsFeature.utils.d.cts +48 -36
- package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +48 -36
- package/dist/core/row-models/coreRowModelsFeature.utils.js +48 -36
- package/dist/core/row-models/coreRowModelsFeature.utils.js.map +1 -1
- package/dist/core/rows/coreRowsFeature.types.d.cts +4 -4
- package/dist/core/rows/coreRowsFeature.types.d.ts +4 -4
- package/dist/core/rows/coreRowsFeature.utils.cjs +34 -28
- package/dist/core/rows/coreRowsFeature.utils.cjs.map +1 -1
- package/dist/core/rows/coreRowsFeature.utils.d.cts +34 -28
- package/dist/core/rows/coreRowsFeature.utils.d.ts +34 -28
- package/dist/core/rows/coreRowsFeature.utils.js +34 -28
- package/dist/core/rows/coreRowsFeature.utils.js.map +1 -1
- package/dist/core/table/coreTablesFeature.types.d.cts +6 -2
- package/dist/core/table/coreTablesFeature.types.d.ts +6 -2
- package/dist/core/table/coreTablesFeature.utils.cjs +2 -2
- package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -1
- package/dist/core/table/coreTablesFeature.utils.d.cts +2 -2
- package/dist/core/table/coreTablesFeature.utils.d.ts +2 -2
- package/dist/core/table/coreTablesFeature.utils.js +2 -2
- package/dist/core/table/coreTablesFeature.utils.js.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +16 -10
- package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +16 -10
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs +26 -18
- package/dist/features/column-faceting/columnFacetingFeature.utils.cjs.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +26 -18
- package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +26 -18
- package/dist/features/column-faceting/columnFacetingFeature.utils.js +26 -18
- package/dist/features/column-faceting/columnFacetingFeature.utils.js.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +21 -11
- package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +21 -11
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs +39 -28
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +39 -28
- package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +39 -28
- package/dist/features/column-filtering/columnFilteringFeature.utils.js +39 -28
- package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +18 -14
- package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +18 -14
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs +55 -43
- package/dist/features/column-grouping/columnGroupingFeature.utils.cjs.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +55 -43
- package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +55 -43
- package/dist/features/column-grouping/columnGroupingFeature.utils.js +55 -43
- package/dist/features/column-grouping/columnGroupingFeature.utils.js.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +14 -5
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +14 -5
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs +30 -23
- package/dist/features/column-ordering/columnOrderingFeature.utils.cjs.map +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +30 -23
- package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +30 -23
- package/dist/features/column-ordering/columnOrderingFeature.utils.js +30 -23
- package/dist/features/column-ordering/columnOrderingFeature.utils.js.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.types.d.cts +43 -31
- package/dist/features/column-pinning/columnPinningFeature.types.d.ts +43 -31
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs +111 -91
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +111 -91
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +111 -91
- package/dist/features/column-pinning/columnPinningFeature.utils.js +111 -91
- package/dist/features/column-pinning/columnPinningFeature.utils.js.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.types.d.cts +9 -9
- package/dist/features/column-resizing/columnResizingFeature.types.d.ts +9 -9
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs +28 -19
- package/dist/features/column-resizing/columnResizingFeature.utils.cjs.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +28 -19
- package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +28 -19
- package/dist/features/column-resizing/columnResizingFeature.utils.js +28 -19
- package/dist/features/column-resizing/columnResizingFeature.utils.js.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.types.d.cts +19 -12
- package/dist/features/column-sizing/columnSizingFeature.types.d.ts +19 -12
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs +52 -41
- package/dist/features/column-sizing/columnSizingFeature.utils.cjs.map +1 -1
- package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +52 -41
- package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +52 -41
- package/dist/features/column-sizing/columnSizingFeature.utils.js +52 -41
- package/dist/features/column-sizing/columnSizingFeature.utils.js.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +16 -13
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +16 -13
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs +54 -42
- package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs.map +1 -1
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +54 -42
- package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +54 -42
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js +54 -42
- package/dist/features/column-visibility/columnVisibilityFeature.utils.js.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +10 -5
- package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +10 -5
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs +20 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +20 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +20 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.js +20 -14
- package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +16 -15
- package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +16 -15
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs +56 -41
- package/dist/features/row-expanding/rowExpandingFeature.utils.cjs.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.cts +56 -41
- package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +56 -41
- package/dist/features/row-expanding/rowExpandingFeature.utils.js +56 -41
- package/dist/features/row-expanding/rowExpandingFeature.utils.js.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +19 -12
- package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +19 -12
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs +49 -32
- package/dist/features/row-pagination/rowPaginationFeature.utils.cjs.map +1 -1
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.cts +49 -32
- package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +49 -32
- package/dist/features/row-pagination/rowPaginationFeature.utils.js +49 -32
- package/dist/features/row-pagination/rowPaginationFeature.utils.js.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.types.d.cts +12 -8
- package/dist/features/row-pinning/rowPinningFeature.types.d.ts +12 -8
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs +39 -29
- package/dist/features/row-pinning/rowPinningFeature.utils.cjs.map +1 -1
- package/dist/features/row-pinning/rowPinningFeature.utils.d.cts +39 -29
- package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +39 -29
- package/dist/features/row-pinning/rowPinningFeature.utils.js +39 -29
- package/dist/features/row-pinning/rowPinningFeature.utils.js.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.types.d.cts +30 -24
- package/dist/features/row-selection/rowSelectionFeature.types.d.ts +30 -24
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs +89 -69
- package/dist/features/row-selection/rowSelectionFeature.utils.cjs.map +1 -1
- package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +89 -69
- package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +89 -69
- package/dist/features/row-selection/rowSelectionFeature.utils.js +89 -69
- package/dist/features/row-selection/rowSelectionFeature.utils.js.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.types.d.cts +10 -8
- package/dist/features/row-sorting/rowSortingFeature.types.d.ts +10 -8
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs +61 -44
- package/dist/features/row-sorting/rowSortingFeature.utils.cjs.map +1 -1
- package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +61 -44
- package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +61 -44
- package/dist/features/row-sorting/rowSortingFeature.utils.js +61 -44
- package/dist/features/row-sorting/rowSortingFeature.utils.js.map +1 -1
- package/dist/fns/aggregationFns.cjs +33 -9
- package/dist/fns/aggregationFns.cjs.map +1 -1
- package/dist/fns/aggregationFns.d.cts +33 -9
- package/dist/fns/aggregationFns.d.ts +33 -9
- package/dist/fns/aggregationFns.js +33 -9
- package/dist/fns/aggregationFns.js.map +1 -1
- package/dist/fns/filterFns.cjs +48 -17
- package/dist/fns/filterFns.cjs.map +1 -1
- package/dist/fns/filterFns.d.cts +42 -15
- package/dist/fns/filterFns.d.ts +42 -15
- package/dist/fns/filterFns.js +48 -17
- package/dist/fns/filterFns.js.map +1 -1
- package/dist/helpers/columnHelper.cjs +9 -4
- package/dist/helpers/columnHelper.cjs.map +1 -1
- package/dist/helpers/columnHelper.d.cts +9 -4
- package/dist/helpers/columnHelper.d.ts +9 -4
- package/dist/helpers/columnHelper.js +9 -4
- package/dist/helpers/columnHelper.js.map +1 -1
- package/dist/helpers/tableOptions.cjs.map +1 -1
- package/dist/helpers/tableOptions.d.cts +12 -9
- package/dist/helpers/tableOptions.d.ts +12 -9
- package/dist/helpers/tableOptions.js.map +1 -1
- package/dist/types/ColumnDef.d.cts +38 -0
- package/dist/types/ColumnDef.d.ts +38 -0
- package/dist/types/TableOptions.d.cts +15 -0
- package/dist/types/TableOptions.d.ts +15 -0
- package/dist/types/TableState.d.cts +12 -0
- package/dist/types/TableState.d.ts +12 -0
- package/package.json +5 -3
- package/skills/column-definitions/SKILL.md +333 -0
- package/skills/column-layout/SKILL.md +328 -0
- package/skills/column-layout/references/subsystems.md +220 -0
- package/skills/customizing-feature-behavior/SKILL.md +416 -0
- package/skills/filtering/SKILL.md +357 -0
- package/skills/filtering/references/faceting-and-fuzzy.md +191 -0
- package/skills/grouping/SKILL.md +448 -0
- package/skills/migrate-v8-to-v9/SKILL.md +495 -0
- package/skills/pagination/SKILL.md +385 -0
- package/skills/row-expanding/SKILL.md +348 -0
- package/skills/row-pinning/SKILL.md +269 -0
- package/skills/row-selection/SKILL.md +391 -0
- package/skills/setup/SKILL.md +400 -0
- package/skills/sorting/SKILL.md +344 -0
- package/skills/state-management/SKILL.md +388 -0
- package/src/core/cells/coreCellsFeature.utils.ts +11 -8
- package/src/core/columns/coreColumnsFeature.types.ts +7 -6
- package/src/core/columns/coreColumnsFeature.utils.ts +37 -27
- package/src/core/headers/coreHeadersFeature.types.ts +6 -4
- package/src/core/headers/coreHeadersFeature.utils.ts +23 -18
- package/src/core/row-models/coreRowModelsFeature.utils.ts +48 -36
- package/src/core/rows/coreRowsFeature.types.ts +4 -4
- package/src/core/rows/coreRowsFeature.utils.ts +34 -28
- package/src/core/table/coreTablesFeature.types.ts +6 -2
- package/src/core/table/coreTablesFeature.utils.ts +2 -2
- package/src/features/column-faceting/columnFacetingFeature.types.ts +16 -10
- package/src/features/column-faceting/columnFacetingFeature.utils.ts +26 -18
- package/src/features/column-filtering/columnFilteringFeature.types.ts +21 -11
- package/src/features/column-filtering/columnFilteringFeature.utils.ts +39 -28
- package/src/features/column-grouping/columnGroupingFeature.types.ts +18 -14
- package/src/features/column-grouping/columnGroupingFeature.utils.ts +55 -43
- package/src/features/column-ordering/columnOrderingFeature.types.ts +14 -5
- package/src/features/column-ordering/columnOrderingFeature.utils.ts +30 -23
- package/src/features/column-pinning/columnPinningFeature.types.ts +43 -31
- package/src/features/column-pinning/columnPinningFeature.utils.ts +111 -91
- package/src/features/column-resizing/columnResizingFeature.types.ts +9 -9
- package/src/features/column-resizing/columnResizingFeature.utils.ts +28 -19
- package/src/features/column-sizing/columnSizingFeature.types.ts +19 -12
- package/src/features/column-sizing/columnSizingFeature.utils.ts +52 -41
- package/src/features/column-visibility/columnVisibilityFeature.types.ts +16 -13
- package/src/features/column-visibility/columnVisibilityFeature.utils.ts +54 -42
- package/src/features/global-filtering/globalFilteringFeature.types.ts +10 -5
- package/src/features/global-filtering/globalFilteringFeature.utils.ts +20 -14
- package/src/features/row-expanding/rowExpandingFeature.types.ts +16 -15
- package/src/features/row-expanding/rowExpandingFeature.utils.ts +56 -41
- package/src/features/row-pagination/rowPaginationFeature.types.ts +19 -12
- package/src/features/row-pagination/rowPaginationFeature.utils.ts +49 -32
- package/src/features/row-pinning/rowPinningFeature.types.ts +12 -8
- package/src/features/row-pinning/rowPinningFeature.utils.ts +39 -29
- package/src/features/row-selection/rowSelectionFeature.types.ts +30 -24
- package/src/features/row-selection/rowSelectionFeature.utils.ts +89 -69
- package/src/features/row-sorting/rowSortingFeature.types.ts +10 -8
- package/src/features/row-sorting/rowSortingFeature.utils.ts +61 -44
- package/src/fns/aggregationFns.ts +33 -9
- package/src/fns/filterFns.ts +48 -17
- package/src/helpers/columnHelper.ts +9 -4
- package/src/helpers/tableOptions.ts +12 -9
- package/src/types/ColumnDef.ts +38 -0
- package/src/types/TableOptions.ts +15 -0
- package/src/types/TableState.ts +12 -0
|
@@ -9,20 +9,23 @@ import { Table_Internal } from "../../types/Table.js";
|
|
|
9
9
|
import { Cell } from "../../types/Cell.js";
|
|
10
10
|
//#region src/features/column-pinning/columnPinningFeature.utils.d.ts
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Creates the default column pinning state.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Both pinning regions start empty. Reset APIs use this value when
|
|
15
|
+
* `defaultState` is `true`.
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* ```ts
|
|
18
|
-
* const
|
|
19
|
+
* const pinning = getDefaultColumnPinningState()
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
22
|
declare function getDefaultColumnPinningState(): ColumnPinningState;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* Moves this column's leaf column ids into a pinning region.
|
|
24
25
|
*
|
|
25
|
-
*
|
|
26
|
+
* Pinning a group column pins all of its leaves. The leaf ids are first removed
|
|
27
|
+
* from both regions, then appended to the requested `'left'` or `'right'`
|
|
28
|
+
* region. Passing `false` unpins them back to the center.
|
|
26
29
|
*
|
|
27
30
|
* @example
|
|
28
31
|
* ```ts
|
|
@@ -31,86 +34,94 @@ declare function getDefaultColumnPinningState(): ColumnPinningState;
|
|
|
31
34
|
*/
|
|
32
35
|
declare function column_pin<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>, position: ColumnPinningPosition): void;
|
|
33
36
|
/**
|
|
34
|
-
*
|
|
37
|
+
* Checks whether this column or any of its leaf columns can be pinned.
|
|
35
38
|
*
|
|
36
|
-
*
|
|
39
|
+
* Column-level `enablePinning` and table `enableColumnPinning` both default to
|
|
40
|
+
* `true`; at least one leaf column must allow pinning.
|
|
37
41
|
*
|
|
38
42
|
* @example
|
|
39
43
|
* ```ts
|
|
40
|
-
* const
|
|
44
|
+
* const canPin = column_getCanPin(column)
|
|
41
45
|
* ```
|
|
42
46
|
*/
|
|
43
47
|
declare function column_getCanPin<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): boolean;
|
|
44
48
|
/**
|
|
45
|
-
*
|
|
49
|
+
* Reads this column's current pinning region.
|
|
46
50
|
*
|
|
47
|
-
*
|
|
51
|
+
* Group columns report `'left'` or `'right'` when any leaf column is pinned in
|
|
52
|
+
* that region. Unpinned columns return `false`.
|
|
48
53
|
*
|
|
49
54
|
* @example
|
|
50
55
|
* ```ts
|
|
51
|
-
* const
|
|
56
|
+
* const position = column_getIsPinned(column)
|
|
52
57
|
* ```
|
|
53
58
|
*/
|
|
54
59
|
declare function column_getIsPinned<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): ColumnPinningPosition | false;
|
|
55
60
|
/**
|
|
56
|
-
*
|
|
61
|
+
* Finds this column's index within its pinned region.
|
|
57
62
|
*
|
|
58
|
-
*
|
|
63
|
+
* Unpinned columns return `0`; pinned columns return their position in
|
|
64
|
+
* `state.columnPinning.left` or `state.columnPinning.right`.
|
|
59
65
|
*
|
|
60
66
|
* @example
|
|
61
67
|
* ```ts
|
|
62
|
-
* const
|
|
68
|
+
* const index = column_getPinnedIndex(column)
|
|
63
69
|
* ```
|
|
64
70
|
*/
|
|
65
71
|
declare function column_getPinnedIndex<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): number;
|
|
66
72
|
/**
|
|
67
|
-
*
|
|
73
|
+
* Collects visible cells whose columns are not pinned left or right.
|
|
68
74
|
*
|
|
69
|
-
*
|
|
75
|
+
* The result preserves the row's visible-cell order for center columns.
|
|
70
76
|
*
|
|
71
77
|
* @example
|
|
72
78
|
* ```ts
|
|
73
|
-
* const
|
|
79
|
+
* const centerCells = row_getCenterVisibleCells(row)
|
|
74
80
|
* ```
|
|
75
81
|
*/
|
|
76
82
|
declare function row_getCenterVisibleCells<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData>): any[];
|
|
77
83
|
/**
|
|
78
|
-
*
|
|
84
|
+
* Collects visible cells for columns pinned to the left region.
|
|
79
85
|
*
|
|
80
|
-
*
|
|
86
|
+
* Cells are returned in `state.columnPinning.left` order and are marked with
|
|
87
|
+
* `cell.position = 'left'`.
|
|
81
88
|
*
|
|
82
89
|
* @example
|
|
83
90
|
* ```ts
|
|
84
|
-
* const
|
|
91
|
+
* const leftCells = row_getLeftVisibleCells(row)
|
|
85
92
|
* ```
|
|
86
93
|
*/
|
|
87
94
|
declare function row_getLeftVisibleCells<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData>): Array<Cell<TFeatures, TData, unknown>>;
|
|
88
95
|
/**
|
|
89
|
-
*
|
|
96
|
+
* Collects visible cells for columns pinned to the right region.
|
|
90
97
|
*
|
|
91
|
-
*
|
|
98
|
+
* Cells are returned in `state.columnPinning.right` order and are marked with
|
|
99
|
+
* `cell.position = 'right'`.
|
|
92
100
|
*
|
|
93
101
|
* @example
|
|
94
102
|
* ```ts
|
|
95
|
-
* const
|
|
103
|
+
* const rightCells = row_getRightVisibleCells(row)
|
|
96
104
|
* ```
|
|
97
105
|
*/
|
|
98
106
|
declare function row_getRightVisibleCells<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData>): Cell<TFeatures, TData, unknown>[];
|
|
99
107
|
/**
|
|
100
|
-
*
|
|
108
|
+
* Routes a column pinning updater through the table's pinning change handler.
|
|
101
109
|
*
|
|
102
|
-
* The updater
|
|
110
|
+
* The updater may be a next `{ left, right }` state or a function of the
|
|
111
|
+
* previous state, matching the instance `table.setColumnPinning` behavior.
|
|
103
112
|
*
|
|
104
113
|
* @example
|
|
105
114
|
* ```ts
|
|
106
|
-
* table_setColumnPinning(table, (old) => old)
|
|
115
|
+
* table_setColumnPinning(table, (old) => ({ ...old, left: ['select'] }))
|
|
107
116
|
* ```
|
|
108
117
|
*/
|
|
109
118
|
declare function table_setColumnPinning<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, updater: Updater<ColumnPinningState>): void;
|
|
110
119
|
/**
|
|
111
|
-
* Resets the
|
|
120
|
+
* Resets `columnPinning` to the configured initial state or feature default.
|
|
112
121
|
*
|
|
113
|
-
*
|
|
122
|
+
* With no argument, the reset clones `table.initialState.columnPinning` when it
|
|
123
|
+
* exists. Passing `true` ignores initial state and resets to empty left/right
|
|
124
|
+
* arrays.
|
|
114
125
|
*
|
|
115
126
|
* @example
|
|
116
127
|
* ```ts
|
|
@@ -120,233 +131,242 @@ declare function table_setColumnPinning<TFeatures extends TableFeatures, TData e
|
|
|
120
131
|
*/
|
|
121
132
|
declare function table_resetColumnPinning<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void;
|
|
122
133
|
/**
|
|
123
|
-
*
|
|
134
|
+
* Checks whether any columns are pinned.
|
|
124
135
|
*
|
|
125
|
-
*
|
|
136
|
+
* Omit `position` to check both sides, or pass `'left'`/`'right'` to inspect a
|
|
137
|
+
* single pinning region.
|
|
126
138
|
*
|
|
127
139
|
* @example
|
|
128
140
|
* ```ts
|
|
129
|
-
* const
|
|
141
|
+
* const hasPinnedColumns = table_getIsSomeColumnsPinned(table)
|
|
130
142
|
* ```
|
|
131
143
|
*/
|
|
132
144
|
declare function table_getIsSomeColumnsPinned<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, position?: ColumnPinningPosition): boolean;
|
|
133
145
|
/**
|
|
134
|
-
*
|
|
146
|
+
* Builds header groups for visible columns pinned to the left region.
|
|
135
147
|
*
|
|
136
|
-
*
|
|
148
|
+
* The leaf columns are read in `state.columnPinning.left` order and then passed
|
|
149
|
+
* through the same header-group builder as the unpinned table.
|
|
137
150
|
*
|
|
138
151
|
* @example
|
|
139
152
|
* ```ts
|
|
140
|
-
* const
|
|
153
|
+
* const headerGroups = table_getLeftHeaderGroups(table)
|
|
141
154
|
* ```
|
|
142
155
|
*/
|
|
143
156
|
declare function table_getLeftHeaderGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): HeaderGroup<TFeatures, TData>[];
|
|
144
157
|
/**
|
|
145
|
-
*
|
|
158
|
+
* Builds header groups for visible columns pinned to the right region.
|
|
146
159
|
*
|
|
147
|
-
*
|
|
160
|
+
* The leaf columns are read in `state.columnPinning.right` order and then
|
|
161
|
+
* passed through the same header-group builder as the unpinned table.
|
|
148
162
|
*
|
|
149
163
|
* @example
|
|
150
164
|
* ```ts
|
|
151
|
-
* const
|
|
165
|
+
* const headerGroups = table_getRightHeaderGroups(table)
|
|
152
166
|
* ```
|
|
153
167
|
*/
|
|
154
168
|
declare function table_getRightHeaderGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): HeaderGroup<TFeatures, TData>[];
|
|
155
169
|
/**
|
|
156
|
-
*
|
|
170
|
+
* Builds header groups for visible columns that are not pinned.
|
|
157
171
|
*
|
|
158
|
-
*
|
|
172
|
+
* Left- and right-pinned column ids are removed from the visible leaf column
|
|
173
|
+
* list before header groups are built for the center region.
|
|
159
174
|
*
|
|
160
175
|
* @example
|
|
161
176
|
* ```ts
|
|
162
|
-
* const
|
|
177
|
+
* const headerGroups = table_getCenterHeaderGroups(table)
|
|
163
178
|
* ```
|
|
164
179
|
*/
|
|
165
180
|
declare function table_getCenterHeaderGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Array<HeaderGroup<TFeatures, TData>>;
|
|
166
181
|
/**
|
|
167
|
-
*
|
|
182
|
+
* Builds footer groups for the left pinned region.
|
|
168
183
|
*
|
|
169
|
-
*
|
|
184
|
+
* Footer groups reuse the left header groups in reverse order.
|
|
170
185
|
*
|
|
171
186
|
* @example
|
|
172
187
|
* ```ts
|
|
173
|
-
* const
|
|
188
|
+
* const footerGroups = table_getLeftFooterGroups(table)
|
|
174
189
|
* ```
|
|
175
190
|
*/
|
|
176
191
|
declare function table_getLeftFooterGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
177
192
|
/**
|
|
178
|
-
*
|
|
193
|
+
* Builds footer groups for the right pinned region.
|
|
179
194
|
*
|
|
180
|
-
*
|
|
195
|
+
* Footer groups reuse the right header groups in reverse order.
|
|
181
196
|
*
|
|
182
197
|
* @example
|
|
183
198
|
* ```ts
|
|
184
|
-
* const
|
|
199
|
+
* const footerGroups = table_getRightFooterGroups(table)
|
|
185
200
|
* ```
|
|
186
201
|
*/
|
|
187
202
|
declare function table_getRightFooterGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
188
203
|
/**
|
|
189
|
-
*
|
|
204
|
+
* Builds footer groups for the center, unpinned region.
|
|
190
205
|
*
|
|
191
|
-
*
|
|
206
|
+
* Footer groups reuse the center header groups in reverse order.
|
|
192
207
|
*
|
|
193
208
|
* @example
|
|
194
209
|
* ```ts
|
|
195
|
-
* const
|
|
210
|
+
* const footerGroups = table_getCenterFooterGroups(table)
|
|
196
211
|
* ```
|
|
197
212
|
*/
|
|
198
213
|
declare function table_getCenterFooterGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
199
214
|
/**
|
|
200
|
-
*
|
|
215
|
+
* Flattens every header from the left pinned header groups.
|
|
201
216
|
*
|
|
202
|
-
*
|
|
217
|
+
* Parent headers and placeholder headers are included.
|
|
203
218
|
*
|
|
204
219
|
* @example
|
|
205
220
|
* ```ts
|
|
206
|
-
* const
|
|
221
|
+
* const headers = table_getLeftFlatHeaders(table)
|
|
207
222
|
* ```
|
|
208
223
|
*/
|
|
209
224
|
declare function table_getLeftFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Header<TFeatures, TData, unknown>[];
|
|
210
225
|
/**
|
|
211
|
-
*
|
|
226
|
+
* Flattens every header from the right pinned header groups.
|
|
212
227
|
*
|
|
213
|
-
*
|
|
228
|
+
* Parent headers and placeholder headers are included.
|
|
214
229
|
*
|
|
215
230
|
* @example
|
|
216
231
|
* ```ts
|
|
217
|
-
* const
|
|
232
|
+
* const headers = table_getRightFlatHeaders(table)
|
|
218
233
|
* ```
|
|
219
234
|
*/
|
|
220
235
|
declare function table_getRightFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Header<TFeatures, TData, unknown>[];
|
|
221
236
|
/**
|
|
222
|
-
*
|
|
237
|
+
* Flattens every header from the center header groups.
|
|
223
238
|
*
|
|
224
|
-
*
|
|
239
|
+
* Parent headers and placeholder headers are included.
|
|
225
240
|
*
|
|
226
241
|
* @example
|
|
227
242
|
* ```ts
|
|
228
|
-
* const
|
|
243
|
+
* const headers = table_getCenterFlatHeaders(table)
|
|
229
244
|
* ```
|
|
230
245
|
*/
|
|
231
246
|
declare function table_getCenterFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Header<TFeatures, TData, unknown>[];
|
|
232
247
|
/**
|
|
233
|
-
*
|
|
248
|
+
* Collects leaf headers for the left pinned region.
|
|
234
249
|
*
|
|
235
|
-
*
|
|
250
|
+
* Parent headers are filtered out from the left flat header list.
|
|
236
251
|
*
|
|
237
252
|
* @example
|
|
238
253
|
* ```ts
|
|
239
|
-
* const
|
|
254
|
+
* const headers = table_getLeftLeafHeaders(table)
|
|
240
255
|
* ```
|
|
241
256
|
*/
|
|
242
257
|
declare function table_getLeftLeafHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
243
258
|
/**
|
|
244
|
-
*
|
|
259
|
+
* Collects leaf headers for the right pinned region.
|
|
245
260
|
*
|
|
246
|
-
*
|
|
261
|
+
* Parent headers are filtered out from the right flat header list.
|
|
247
262
|
*
|
|
248
263
|
* @example
|
|
249
264
|
* ```ts
|
|
250
|
-
* const
|
|
265
|
+
* const headers = table_getRightLeafHeaders(table)
|
|
251
266
|
* ```
|
|
252
267
|
*/
|
|
253
268
|
declare function table_getRightLeafHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
254
269
|
/**
|
|
255
|
-
*
|
|
270
|
+
* Collects leaf headers for the center, unpinned region.
|
|
256
271
|
*
|
|
257
|
-
*
|
|
272
|
+
* Parent headers are filtered out from the center flat header list.
|
|
258
273
|
*
|
|
259
274
|
* @example
|
|
260
275
|
* ```ts
|
|
261
|
-
* const
|
|
276
|
+
* const headers = table_getCenterLeafHeaders(table)
|
|
262
277
|
* ```
|
|
263
278
|
*/
|
|
264
279
|
declare function table_getCenterLeafHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
265
280
|
/**
|
|
266
|
-
*
|
|
281
|
+
* Resolves leaf columns pinned to the left region.
|
|
267
282
|
*
|
|
268
|
-
*
|
|
283
|
+
* The result follows `state.columnPinning.left` order and skips stale ids that
|
|
284
|
+
* no longer correspond to a leaf column.
|
|
269
285
|
*
|
|
270
286
|
* @example
|
|
271
287
|
* ```ts
|
|
272
|
-
* const
|
|
288
|
+
* const columns = table_getLeftLeafColumns(table)
|
|
273
289
|
* ```
|
|
274
290
|
*/
|
|
275
291
|
declare function table_getLeftLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Column_Internal<TFeatures, TData, unknown>[];
|
|
276
292
|
/**
|
|
277
|
-
*
|
|
293
|
+
* Resolves leaf columns pinned to the right region.
|
|
278
294
|
*
|
|
279
|
-
*
|
|
295
|
+
* The result follows `state.columnPinning.right` order and skips stale ids that
|
|
296
|
+
* no longer correspond to a leaf column.
|
|
280
297
|
*
|
|
281
298
|
* @example
|
|
282
299
|
* ```ts
|
|
283
|
-
* const
|
|
300
|
+
* const columns = table_getRightLeafColumns(table)
|
|
284
301
|
* ```
|
|
285
302
|
*/
|
|
286
303
|
declare function table_getRightLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Column_Internal<TFeatures, TData, unknown>[];
|
|
287
304
|
/**
|
|
288
|
-
*
|
|
305
|
+
* Resolves leaf columns that are not pinned to either side.
|
|
289
306
|
*
|
|
290
|
-
*
|
|
307
|
+
* Left- and right-pinned ids are removed from `table.getAllLeafColumns()`.
|
|
291
308
|
*
|
|
292
309
|
* @example
|
|
293
310
|
* ```ts
|
|
294
|
-
* const
|
|
311
|
+
* const columns = table_getCenterLeafColumns(table)
|
|
295
312
|
* ```
|
|
296
313
|
*/
|
|
297
314
|
declare function table_getCenterLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Column<TFeatures, TData, unknown>[];
|
|
298
315
|
/**
|
|
299
|
-
*
|
|
316
|
+
* Resolves leaf columns for a requested pinning region.
|
|
300
317
|
*
|
|
301
|
-
*
|
|
318
|
+
* Pass `'left'`, `'center'`, or `'right'` for a partition, or pass `false` to
|
|
319
|
+
* read all leaf columns without partitioning.
|
|
302
320
|
*
|
|
303
321
|
* @example
|
|
304
322
|
* ```ts
|
|
305
|
-
* const
|
|
323
|
+
* const columns = table_getPinnedLeafColumns(table, 'center')
|
|
306
324
|
* ```
|
|
307
325
|
*/
|
|
308
326
|
declare function table_getPinnedLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, position: ColumnPinningPosition | 'center'): any[];
|
|
309
327
|
/**
|
|
310
|
-
*
|
|
328
|
+
* Resolves visible leaf columns pinned to the left region.
|
|
311
329
|
*
|
|
312
|
-
*
|
|
330
|
+
* Hidden pinned columns are filtered out after the left pin order is applied.
|
|
313
331
|
*
|
|
314
332
|
* @example
|
|
315
333
|
* ```ts
|
|
316
|
-
* const
|
|
334
|
+
* const columns = table_getLeftVisibleLeafColumns(table)
|
|
317
335
|
* ```
|
|
318
336
|
*/
|
|
319
337
|
declare function table_getLeftVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
320
338
|
/**
|
|
321
|
-
*
|
|
339
|
+
* Resolves visible leaf columns pinned to the right region.
|
|
322
340
|
*
|
|
323
|
-
*
|
|
341
|
+
* Hidden pinned columns are filtered out after the right pin order is applied.
|
|
324
342
|
*
|
|
325
343
|
* @example
|
|
326
344
|
* ```ts
|
|
327
|
-
* const
|
|
345
|
+
* const columns = table_getRightVisibleLeafColumns(table)
|
|
328
346
|
* ```
|
|
329
347
|
*/
|
|
330
348
|
declare function table_getRightVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
331
349
|
/**
|
|
332
|
-
*
|
|
350
|
+
* Resolves visible leaf columns that are not pinned.
|
|
333
351
|
*
|
|
334
|
-
* This
|
|
352
|
+
* This is the center partition used by layouts that render pinned columns
|
|
353
|
+
* separately from the scrollable middle region.
|
|
335
354
|
*
|
|
336
355
|
* @example
|
|
337
356
|
* ```ts
|
|
338
|
-
* const
|
|
357
|
+
* const columns = table_getCenterVisibleLeafColumns(table)
|
|
339
358
|
* ```
|
|
340
359
|
*/
|
|
341
360
|
declare function table_getCenterVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
|
|
342
361
|
/**
|
|
343
|
-
*
|
|
362
|
+
* Resolves visible leaf columns for a requested pinning region.
|
|
344
363
|
*
|
|
345
|
-
*
|
|
364
|
+
* Omit `position` to get all visible leaf columns, or pass `'left'`, `'center'`,
|
|
365
|
+
* or `'right'` to get one partition.
|
|
346
366
|
*
|
|
347
367
|
* @example
|
|
348
368
|
* ```ts
|
|
349
|
-
* const
|
|
369
|
+
* const columns = table_getPinnedVisibleLeafColumns(table, 'left')
|
|
350
370
|
* ```
|
|
351
371
|
*/
|
|
352
372
|
declare function table_getPinnedVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, position?: ColumnPinningPosition | 'center'): any[];
|