@tanstack/table-core 9.0.0-beta.37 → 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-ordering/columnOrderingFeature.types.d.cts +5 -5
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +5 -5
- 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/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/package.json +1 -1
- package/src/core/headers/buildHeaderGroups.ts +1 -1
- package/src/core/headers/coreHeadersFeature.utils.ts +7 -7
- package/src/features/column-ordering/columnOrderingFeature.types.ts +5 -5
- 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
|
@@ -12,36 +12,41 @@ import {
|
|
|
12
12
|
column_pin,
|
|
13
13
|
getDefaultColumnPinningState,
|
|
14
14
|
row_getCenterVisibleCells,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
row_getEndVisibleCells,
|
|
16
|
+
row_getStartVisibleCells,
|
|
17
17
|
table_getCenterFlatHeaders,
|
|
18
18
|
table_getCenterFooterGroups,
|
|
19
19
|
table_getCenterHeaderGroups,
|
|
20
20
|
table_getCenterLeafColumns,
|
|
21
21
|
table_getCenterLeafHeaders,
|
|
22
22
|
table_getCenterVisibleLeafColumns,
|
|
23
|
+
table_getEndFlatHeaders,
|
|
24
|
+
table_getEndFooterGroups,
|
|
25
|
+
table_getEndHeaderGroups,
|
|
26
|
+
table_getEndLeafColumns,
|
|
27
|
+
table_getEndLeafHeaders,
|
|
28
|
+
table_getEndVisibleLeafColumns,
|
|
23
29
|
table_getIsSomeColumnsPinned,
|
|
24
|
-
table_getLeftFlatHeaders,
|
|
25
|
-
table_getLeftFooterGroups,
|
|
26
|
-
table_getLeftHeaderGroups,
|
|
27
|
-
table_getLeftLeafColumns,
|
|
28
|
-
table_getLeftLeafHeaders,
|
|
29
|
-
table_getLeftVisibleLeafColumns,
|
|
30
30
|
table_getPinnedLeafColumns,
|
|
31
31
|
table_getPinnedVisibleLeafColumns,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
table_getStartFlatHeaders,
|
|
33
|
+
table_getStartFooterGroups,
|
|
34
|
+
table_getStartHeaderGroups,
|
|
35
|
+
table_getStartLeafColumns,
|
|
36
|
+
table_getStartLeafHeaders,
|
|
37
|
+
table_getStartVisibleLeafColumns,
|
|
38
38
|
table_resetColumnPinning,
|
|
39
39
|
table_setColumnPinning,
|
|
40
40
|
} from './columnPinningFeature.utils'
|
|
41
41
|
import type { TableFeature } from '../../types/TableFeatures'
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* Feature that adds column pinning state and APIs for
|
|
44
|
+
* Feature that adds column pinning state and APIs for logical start, center,
|
|
45
|
+
* and end regions.
|
|
46
|
+
*
|
|
47
|
+
* In LTR languages/layouts, start usually corresponds to left and end to
|
|
48
|
+
* right. In RTL languages/layouts, start usually corresponds to right and end
|
|
49
|
+
* to left.
|
|
45
50
|
*/
|
|
46
51
|
export const columnPinningFeature: TableFeature = {
|
|
47
52
|
getInitialState: (initialState) => {
|
|
@@ -87,19 +92,19 @@ export const columnPinningFeature: TableFeature = {
|
|
|
87
92
|
row.table.atoms.columnVisibility?.get(),
|
|
88
93
|
],
|
|
89
94
|
},
|
|
90
|
-
|
|
91
|
-
fn: (row) =>
|
|
95
|
+
row_getStartVisibleCells: {
|
|
96
|
+
fn: (row) => row_getStartVisibleCells(row),
|
|
92
97
|
memoDeps: (row) => [
|
|
93
98
|
row.getAllCells(),
|
|
94
|
-
row.table.atoms.columnPinning?.get()?.
|
|
99
|
+
row.table.atoms.columnPinning?.get()?.start,
|
|
95
100
|
row.table.atoms.columnVisibility?.get(),
|
|
96
101
|
],
|
|
97
102
|
},
|
|
98
|
-
|
|
99
|
-
fn: (row) =>
|
|
103
|
+
row_getEndVisibleCells: {
|
|
104
|
+
fn: (row) => row_getEndVisibleCells(row),
|
|
100
105
|
memoDeps: (row) => [
|
|
101
106
|
row.getAllCells(),
|
|
102
|
-
row.table.atoms.columnPinning?.get()?.
|
|
107
|
+
row.table.atoms.columnPinning?.get()?.end,
|
|
103
108
|
row.table.atoms.columnVisibility?.get(),
|
|
104
109
|
],
|
|
105
110
|
},
|
|
@@ -118,8 +123,8 @@ export const columnPinningFeature: TableFeature = {
|
|
|
118
123
|
fn: (position) => table_getIsSomeColumnsPinned(table, position),
|
|
119
124
|
},
|
|
120
125
|
// header groups
|
|
121
|
-
|
|
122
|
-
fn: () =>
|
|
126
|
+
table_getStartHeaderGroups: {
|
|
127
|
+
fn: () => table_getStartHeaderGroups(table),
|
|
123
128
|
memoDeps: () => [
|
|
124
129
|
table.getAllColumns(),
|
|
125
130
|
callMemoOrStaticFn(
|
|
@@ -127,7 +132,7 @@ export const columnPinningFeature: TableFeature = {
|
|
|
127
132
|
'getVisibleLeafColumns',
|
|
128
133
|
table_getVisibleLeafColumns,
|
|
129
134
|
),
|
|
130
|
-
table.atoms.columnPinning?.get()?.
|
|
135
|
+
table.atoms.columnPinning?.get()?.start,
|
|
131
136
|
table.atoms.columnOrder?.get(),
|
|
132
137
|
],
|
|
133
138
|
},
|
|
@@ -144,8 +149,8 @@ export const columnPinningFeature: TableFeature = {
|
|
|
144
149
|
table.atoms.columnOrder?.get(),
|
|
145
150
|
],
|
|
146
151
|
},
|
|
147
|
-
|
|
148
|
-
fn: () =>
|
|
152
|
+
table_getEndHeaderGroups: {
|
|
153
|
+
fn: () => table_getEndHeaderGroups(table),
|
|
149
154
|
memoDeps: () => [
|
|
150
155
|
table.getAllColumns(),
|
|
151
156
|
callMemoOrStaticFn(
|
|
@@ -153,18 +158,18 @@ export const columnPinningFeature: TableFeature = {
|
|
|
153
158
|
'getVisibleLeafColumns',
|
|
154
159
|
table_getVisibleLeafColumns,
|
|
155
160
|
),
|
|
156
|
-
table.atoms.columnPinning?.get()?.
|
|
161
|
+
table.atoms.columnPinning?.get()?.end,
|
|
157
162
|
table.atoms.columnOrder?.get(),
|
|
158
163
|
],
|
|
159
164
|
},
|
|
160
165
|
// footer groups
|
|
161
|
-
|
|
162
|
-
fn: () =>
|
|
166
|
+
table_getStartFooterGroups: {
|
|
167
|
+
fn: () => table_getStartFooterGroups(table),
|
|
163
168
|
memoDeps: () => [
|
|
164
169
|
callMemoOrStaticFn(
|
|
165
170
|
table,
|
|
166
|
-
'
|
|
167
|
-
|
|
171
|
+
'getStartHeaderGroups',
|
|
172
|
+
table_getStartHeaderGroups,
|
|
168
173
|
),
|
|
169
174
|
],
|
|
170
175
|
},
|
|
@@ -178,34 +183,34 @@ export const columnPinningFeature: TableFeature = {
|
|
|
178
183
|
),
|
|
179
184
|
],
|
|
180
185
|
},
|
|
181
|
-
|
|
182
|
-
fn: () =>
|
|
186
|
+
table_getEndFooterGroups: {
|
|
187
|
+
fn: () => table_getEndFooterGroups(table),
|
|
183
188
|
memoDeps: () => [
|
|
184
189
|
callMemoOrStaticFn(
|
|
185
190
|
table,
|
|
186
|
-
'
|
|
187
|
-
|
|
191
|
+
'getEndHeaderGroups',
|
|
192
|
+
table_getEndHeaderGroups,
|
|
188
193
|
),
|
|
189
194
|
],
|
|
190
195
|
},
|
|
191
196
|
// flat headers
|
|
192
|
-
|
|
193
|
-
fn: () =>
|
|
197
|
+
table_getStartFlatHeaders: {
|
|
198
|
+
fn: () => table_getStartFlatHeaders(table),
|
|
194
199
|
memoDeps: () => [
|
|
195
200
|
callMemoOrStaticFn(
|
|
196
201
|
table,
|
|
197
|
-
'
|
|
198
|
-
|
|
202
|
+
'getStartHeaderGroups',
|
|
203
|
+
table_getStartHeaderGroups,
|
|
199
204
|
),
|
|
200
205
|
],
|
|
201
206
|
},
|
|
202
|
-
|
|
203
|
-
fn: () =>
|
|
207
|
+
table_getEndFlatHeaders: {
|
|
208
|
+
fn: () => table_getEndFlatHeaders(table),
|
|
204
209
|
memoDeps: () => [
|
|
205
210
|
callMemoOrStaticFn(
|
|
206
211
|
table,
|
|
207
|
-
'
|
|
208
|
-
|
|
212
|
+
'getEndHeaderGroups',
|
|
213
|
+
table_getEndHeaderGroups,
|
|
209
214
|
),
|
|
210
215
|
],
|
|
211
216
|
},
|
|
@@ -220,23 +225,23 @@ export const columnPinningFeature: TableFeature = {
|
|
|
220
225
|
],
|
|
221
226
|
},
|
|
222
227
|
// leaf headers
|
|
223
|
-
|
|
224
|
-
fn: () =>
|
|
228
|
+
table_getStartLeafHeaders: {
|
|
229
|
+
fn: () => table_getStartLeafHeaders(table),
|
|
225
230
|
memoDeps: () => [
|
|
226
231
|
callMemoOrStaticFn(
|
|
227
232
|
table,
|
|
228
|
-
'
|
|
229
|
-
|
|
233
|
+
'getStartHeaderGroups',
|
|
234
|
+
table_getStartHeaderGroups,
|
|
230
235
|
),
|
|
231
236
|
],
|
|
232
237
|
},
|
|
233
|
-
|
|
234
|
-
fn: () =>
|
|
238
|
+
table_getEndLeafHeaders: {
|
|
239
|
+
fn: () => table_getEndLeafHeaders(table),
|
|
235
240
|
memoDeps: () => [
|
|
236
241
|
callMemoOrStaticFn(
|
|
237
242
|
table,
|
|
238
|
-
'
|
|
239
|
-
|
|
243
|
+
'getEndHeaderGroups',
|
|
244
|
+
table_getEndHeaderGroups,
|
|
240
245
|
),
|
|
241
246
|
],
|
|
242
247
|
},
|
|
@@ -251,8 +256,8 @@ export const columnPinningFeature: TableFeature = {
|
|
|
251
256
|
],
|
|
252
257
|
},
|
|
253
258
|
// leaf columns
|
|
254
|
-
|
|
255
|
-
fn: () =>
|
|
259
|
+
table_getStartLeafColumns: {
|
|
260
|
+
fn: () => table_getStartLeafColumns(table),
|
|
256
261
|
memoDeps: () => [
|
|
257
262
|
table.options.columns,
|
|
258
263
|
table.atoms.columnPinning?.get(),
|
|
@@ -261,8 +266,8 @@ export const columnPinningFeature: TableFeature = {
|
|
|
261
266
|
table.options.groupedColumnMode,
|
|
262
267
|
],
|
|
263
268
|
},
|
|
264
|
-
|
|
265
|
-
fn: () =>
|
|
269
|
+
table_getEndLeafColumns: {
|
|
270
|
+
fn: () => table_getEndLeafColumns(table),
|
|
266
271
|
memoDeps: () => [
|
|
267
272
|
table.options.columns,
|
|
268
273
|
table.atoms.columnPinning?.get(),
|
|
@@ -286,8 +291,8 @@ export const columnPinningFeature: TableFeature = {
|
|
|
286
291
|
// must not memo here as it's just a shortcut function
|
|
287
292
|
},
|
|
288
293
|
// visible leaf columns
|
|
289
|
-
|
|
290
|
-
fn: () =>
|
|
294
|
+
table_getStartVisibleLeafColumns: {
|
|
295
|
+
fn: () => table_getStartVisibleLeafColumns(table),
|
|
291
296
|
memoDeps: () => [
|
|
292
297
|
table.options.columns,
|
|
293
298
|
table.atoms.columnPinning?.get(),
|
|
@@ -308,8 +313,8 @@ export const columnPinningFeature: TableFeature = {
|
|
|
308
313
|
table.options.groupedColumnMode,
|
|
309
314
|
],
|
|
310
315
|
},
|
|
311
|
-
|
|
312
|
-
fn: () =>
|
|
316
|
+
table_getEndVisibleLeafColumns: {
|
|
317
|
+
fn: () => table_getEndVisibleLeafColumns(table),
|
|
313
318
|
memoDeps: () => [
|
|
314
319
|
table.options.columns,
|
|
315
320
|
table.atoms.columnPinning?.get(),
|
|
@@ -5,11 +5,18 @@ import type { Header } from '../../types/Header'
|
|
|
5
5
|
import type { HeaderGroup } from '../../types/HeaderGroup'
|
|
6
6
|
import type { Column } from '../../types/Column'
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Logical column pinning region.
|
|
10
|
+
*
|
|
11
|
+
* In LTR languages/layouts, `start` usually corresponds to left and `end`
|
|
12
|
+
* usually corresponds to right. In RTL languages/layouts, `start` usually
|
|
13
|
+
* corresponds to right and `end` usually corresponds to left.
|
|
14
|
+
*/
|
|
15
|
+
export type ColumnPinningPosition = false | 'start' | 'end'
|
|
9
16
|
|
|
10
17
|
export interface ColumnPinningState {
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
start: Array<string>
|
|
19
|
+
end: Array<string>
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
export interface TableState_ColumnPinning {
|
|
@@ -18,7 +25,11 @@ export interface TableState_ColumnPinning {
|
|
|
18
25
|
|
|
19
26
|
export interface TableOptions_ColumnPinning {
|
|
20
27
|
/**
|
|
21
|
-
* Allows columns to be pinned into
|
|
28
|
+
* Allows columns to be pinned into logical start and end regions.
|
|
29
|
+
*
|
|
30
|
+
* In LTR languages/layouts, start usually corresponds to left and end to
|
|
31
|
+
* right. In RTL languages/layouts, start usually corresponds to right and end
|
|
32
|
+
* to left.
|
|
22
33
|
*
|
|
23
34
|
* Defaults to `true`; column-level `enablePinning` can still opt individual
|
|
24
35
|
* columns out.
|
|
@@ -52,7 +63,7 @@ export interface Column_ColumnPinning {
|
|
|
52
63
|
*/
|
|
53
64
|
getCanPin: () => boolean
|
|
54
65
|
/**
|
|
55
|
-
* Reads the column's pinned position: `'
|
|
66
|
+
* Reads the column's logical pinned position: `'start'`, `'end'`, or `false`.
|
|
56
67
|
*/
|
|
57
68
|
getIsPinned: () => ColumnPinningPosition
|
|
58
69
|
/**
|
|
@@ -60,8 +71,8 @@ export interface Column_ColumnPinning {
|
|
|
60
71
|
*/
|
|
61
72
|
getPinnedIndex: () => number
|
|
62
73
|
/**
|
|
63
|
-
* Pins this column's leaf columns
|
|
64
|
-
* is passed.
|
|
74
|
+
* Pins this column's leaf columns to logical start or end, or unpins them
|
|
75
|
+
* when `false` is passed.
|
|
65
76
|
*/
|
|
66
77
|
pin: (position: ColumnPinningPosition) => void
|
|
67
78
|
}
|
|
@@ -71,17 +82,17 @@ export interface Row_ColumnPinning<
|
|
|
71
82
|
in out TData extends RowData,
|
|
72
83
|
> {
|
|
73
84
|
/**
|
|
74
|
-
* Gets visible row cells whose columns are not pinned
|
|
85
|
+
* Gets visible row cells whose columns are not pinned start or end.
|
|
75
86
|
*/
|
|
76
87
|
getCenterVisibleCells: () => Array<Cell<TFeatures, TData, unknown>>
|
|
77
88
|
/**
|
|
78
|
-
* Gets visible row cells whose columns are pinned
|
|
89
|
+
* Gets visible row cells whose columns are pinned to logical start.
|
|
79
90
|
*/
|
|
80
|
-
|
|
91
|
+
getStartVisibleCells: () => Array<Cell<TFeatures, TData, unknown>>
|
|
81
92
|
/**
|
|
82
|
-
* Gets visible row cells whose columns are pinned
|
|
93
|
+
* Gets visible row cells whose columns are pinned to logical end.
|
|
83
94
|
*/
|
|
84
|
-
|
|
95
|
+
getEndVisibleCells: () => Array<Cell<TFeatures, TData, unknown>>
|
|
85
96
|
}
|
|
86
97
|
|
|
87
98
|
export interface Table_ColumnPinning<
|
|
@@ -102,7 +113,7 @@ export interface Table_ColumnPinning<
|
|
|
102
113
|
*/
|
|
103
114
|
getCenterHeaderGroups: () => Array<HeaderGroup<TFeatures, TData>>
|
|
104
115
|
/**
|
|
105
|
-
* Gets leaf columns that are not pinned
|
|
116
|
+
* Gets leaf columns that are not pinned start or end.
|
|
106
117
|
*/
|
|
107
118
|
getCenterLeafColumns: () => Array<Column<TFeatures, TData, unknown>>
|
|
108
119
|
/**
|
|
@@ -118,59 +129,59 @@ export interface Table_ColumnPinning<
|
|
|
118
129
|
*/
|
|
119
130
|
getIsSomeColumnsPinned: (position?: ColumnPinningPosition) => boolean
|
|
120
131
|
/**
|
|
121
|
-
* Builds flat
|
|
132
|
+
* Builds flat logical start-region headers for pinned columns, including parent
|
|
122
133
|
* headers.
|
|
123
134
|
*/
|
|
124
|
-
|
|
135
|
+
getStartFlatHeaders: () => Array<Header<TFeatures, TData, unknown>>
|
|
125
136
|
/**
|
|
126
|
-
* Builds footer groups for
|
|
137
|
+
* Builds footer groups for logical start-pinned columns.
|
|
127
138
|
*/
|
|
128
|
-
|
|
139
|
+
getStartFooterGroups: () => Array<HeaderGroup<TFeatures, TData>>
|
|
129
140
|
/**
|
|
130
|
-
* Builds header groups for
|
|
141
|
+
* Builds header groups for logical start-pinned columns.
|
|
131
142
|
*/
|
|
132
|
-
|
|
143
|
+
getStartHeaderGroups: () => Array<HeaderGroup<TFeatures, TData>>
|
|
133
144
|
/**
|
|
134
|
-
* Gets leaf columns pinned to the
|
|
145
|
+
* Gets leaf columns pinned to the logical start region in pinning-state order.
|
|
135
146
|
*/
|
|
136
|
-
|
|
147
|
+
getStartLeafColumns: () => Array<Column<TFeatures, TData, unknown>>
|
|
137
148
|
/**
|
|
138
|
-
* Builds leaf headers for
|
|
149
|
+
* Builds leaf headers for logical start-pinned columns.
|
|
139
150
|
*/
|
|
140
|
-
|
|
151
|
+
getStartLeafHeaders: () => Array<Header<TFeatures, TData, unknown>>
|
|
141
152
|
/**
|
|
142
|
-
* Lists visible leaf columns in the
|
|
153
|
+
* Lists visible leaf columns in the logical start pinned region.
|
|
143
154
|
*/
|
|
144
|
-
|
|
155
|
+
getStartVisibleLeafColumns: () => Array<Column<TFeatures, TData, unknown>>
|
|
145
156
|
/**
|
|
146
|
-
* Builds flat
|
|
157
|
+
* Builds flat logical end-region headers for pinned columns, including parent
|
|
147
158
|
* headers.
|
|
148
159
|
*/
|
|
149
|
-
|
|
160
|
+
getEndFlatHeaders: () => Array<Header<TFeatures, TData, unknown>>
|
|
150
161
|
/**
|
|
151
|
-
* Builds footer groups for
|
|
162
|
+
* Builds footer groups for logical end-pinned columns.
|
|
152
163
|
*/
|
|
153
|
-
|
|
164
|
+
getEndFooterGroups: () => Array<HeaderGroup<TFeatures, TData>>
|
|
154
165
|
/**
|
|
155
|
-
* Builds header groups for
|
|
166
|
+
* Builds header groups for logical end-pinned columns.
|
|
156
167
|
*/
|
|
157
|
-
|
|
168
|
+
getEndHeaderGroups: () => Array<HeaderGroup<TFeatures, TData>>
|
|
158
169
|
/**
|
|
159
|
-
* Gets leaf columns pinned to the
|
|
170
|
+
* Gets leaf columns pinned to the logical end region in pinning-state order.
|
|
160
171
|
*/
|
|
161
|
-
|
|
172
|
+
getEndLeafColumns: () => Array<Column<TFeatures, TData, unknown>>
|
|
162
173
|
/**
|
|
163
|
-
* Builds leaf headers for
|
|
174
|
+
* Builds leaf headers for logical end-pinned columns.
|
|
164
175
|
*/
|
|
165
|
-
|
|
176
|
+
getEndLeafHeaders: () => Array<Header<TFeatures, TData, unknown>>
|
|
166
177
|
/**
|
|
167
|
-
* Lists visible leaf columns in the
|
|
178
|
+
* Lists visible leaf columns in the logical end pinned region.
|
|
168
179
|
*/
|
|
169
|
-
|
|
180
|
+
getEndVisibleLeafColumns: () => Array<Column<TFeatures, TData, unknown>>
|
|
170
181
|
/**
|
|
171
182
|
* Resets `columnPinning` to `initialState.columnPinning`.
|
|
172
183
|
*
|
|
173
|
-
* Pass `true` to ignore initial state and reset to empty
|
|
184
|
+
* Pass `true` to ignore initial state and reset to empty start/end arrays.
|
|
174
185
|
*/
|
|
175
186
|
resetColumnPinning: (defaultState?: boolean) => void
|
|
176
187
|
/**
|