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