@tanstack/table-core 9.0.0-beta.10 → 9.0.0-beta.12
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/coreCellsFeature.types.d.cts +3 -3
- package/dist/core/cells/coreCellsFeature.types.d.ts +3 -3
- package/dist/core/columns/coreColumnsFeature.types.d.cts +4 -4
- package/dist/core/columns/coreColumnsFeature.types.d.ts +4 -4
- package/dist/core/columns/coreColumnsFeature.utils.cjs.map +1 -1
- package/dist/core/columns/coreColumnsFeature.utils.js.map +1 -1
- package/dist/core/headers/buildHeaderGroups.cjs.map +1 -1
- package/dist/core/headers/buildHeaderGroups.js.map +1 -1
- package/dist/core/headers/coreHeadersFeature.types.d.cts +5 -5
- package/dist/core/headers/coreHeadersFeature.types.d.ts +5 -5
- package/dist/core/row-models/coreRowModelsFeature.types.d.cts +3 -3
- package/dist/core/row-models/coreRowModelsFeature.types.d.ts +3 -3
- package/dist/core/row-models/createCoreRowModel.cjs +1 -2
- package/dist/core/row-models/createCoreRowModel.cjs.map +1 -1
- package/dist/core/row-models/createCoreRowModel.d.cts +2 -2
- package/dist/core/row-models/createCoreRowModel.d.ts +2 -2
- package/dist/core/row-models/createCoreRowModel.js +1 -2
- package/dist/core/row-models/createCoreRowModel.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/table/constructTable.cjs.map +1 -1
- package/dist/core/table/constructTable.js.map +1 -1
- package/dist/core/table/coreTablesFeature.types.d.cts +4 -4
- package/dist/core/table/coreTablesFeature.types.d.ts +4 -4
- package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -1
- package/dist/core/table/coreTablesFeature.utils.js.map +1 -1
- package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +4 -4
- package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +4 -4
- package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +9 -9
- package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +9 -9
- package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +1 -1
- package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +6 -6
- package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +6 -6
- package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +1 -1
- package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +1 -1
- package/dist/features/column-pinning/columnPinningFeature.types.d.cts +2 -2
- package/dist/features/column-pinning/columnPinningFeature.types.d.ts +2 -2
- package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +1 -1
- package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +3 -2
- package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +3 -2
- package/dist/features/column-pinning/columnPinningFeature.utils.js.map +1 -1
- package/dist/features/column-resizing/columnResizingFeature.types.d.cts +1 -4
- package/dist/features/column-resizing/columnResizingFeature.types.d.ts +1 -4
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +2 -2
- package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +2 -2
- package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +2 -2
- package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +2 -2
- package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +1 -1
- package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +1 -1
- package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +4 -4
- package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +4 -4
- package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +3 -3
- package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +3 -3
- package/dist/features/row-pinning/rowPinningFeature.types.d.cts +2 -2
- package/dist/features/row-pinning/rowPinningFeature.types.d.ts +2 -2
- package/dist/features/row-selection/rowSelectionFeature.types.d.cts +2 -2
- package/dist/features/row-selection/rowSelectionFeature.types.d.ts +2 -2
- package/dist/features/row-sorting/rowSortingFeature.types.d.cts +7 -7
- package/dist/features/row-sorting/rowSortingFeature.types.d.ts +7 -7
- package/dist/helpers/columnHelper.cjs.map +1 -1
- package/dist/helpers/columnHelper.d.cts +2 -2
- package/dist/helpers/columnHelper.d.ts +2 -2
- package/dist/helpers/columnHelper.js.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/types/Cell.d.cts +1 -1
- package/dist/types/Cell.d.ts +1 -1
- package/dist/types/Column.d.cts +4 -4
- package/dist/types/Column.d.ts +4 -4
- package/dist/types/ColumnDef.d.cts +3 -3
- package/dist/types/ColumnDef.d.ts +3 -3
- package/dist/types/Header.d.cts +1 -1
- package/dist/types/Header.d.ts +1 -1
- package/dist/types/HeaderGroup.d.cts +2 -2
- package/dist/types/HeaderGroup.d.ts +2 -2
- package/dist/types/Row.d.cts +2 -2
- package/dist/types/Row.d.ts +2 -2
- package/dist/types/RowModel.d.cts +2 -2
- package/dist/types/RowModel.d.ts +2 -2
- package/dist/types/RowModelFns.d.cts +2 -2
- package/dist/types/RowModelFns.d.ts +2 -2
- package/dist/types/Table.d.cts +21 -12
- package/dist/types/Table.d.ts +21 -12
- package/dist/types/TableOptions.d.cts +11 -5
- package/dist/types/TableOptions.d.ts +11 -5
- package/dist/types/TableState.d.cts +1 -1
- package/dist/types/TableState.d.ts +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +7 -2
- package/dist/utils.d.ts +7 -2
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/core/cells/coreCellsFeature.types.ts +6 -6
- package/src/core/columns/coreColumnsFeature.types.ts +8 -8
- package/src/core/columns/coreColumnsFeature.utils.ts +1 -1
- package/src/core/headers/buildHeaderGroups.ts +3 -1
- package/src/core/headers/coreHeadersFeature.types.ts +10 -10
- package/src/core/row-models/coreRowModelsFeature.types.ts +6 -6
- package/src/core/row-models/createCoreRowModel.ts +5 -4
- package/src/core/rows/coreRowsFeature.types.ts +8 -8
- package/src/core/table/constructTable.ts +1 -1
- package/src/core/table/coreTablesFeature.types.ts +8 -8
- package/src/core/table/coreTablesFeature.utils.ts +8 -2
- package/src/features/column-faceting/columnFacetingFeature.types.ts +8 -8
- package/src/features/column-filtering/columnFilteringFeature.types.ts +18 -18
- package/src/features/column-filtering/columnFilteringFeature.utils.ts +1 -1
- package/src/features/column-grouping/columnGroupingFeature.types.ts +12 -12
- package/src/features/column-ordering/columnOrderingFeature.types.ts +2 -2
- package/src/features/column-pinning/columnPinningFeature.types.ts +4 -4
- package/src/features/column-pinning/columnPinningFeature.utils.ts +6 -14
- package/src/features/column-resizing/columnResizingFeature.types.ts +1 -4
- package/src/features/column-visibility/columnVisibilityFeature.types.ts +4 -4
- package/src/features/global-filtering/globalFilteringFeature.types.ts +4 -4
- package/src/features/global-filtering/globalFilteringFeature.utils.ts +1 -1
- package/src/features/row-expanding/rowExpandingFeature.types.ts +8 -8
- package/src/features/row-pagination/rowPaginationFeature.types.ts +6 -6
- package/src/features/row-pinning/rowPinningFeature.types.ts +4 -4
- package/src/features/row-selection/rowSelectionFeature.types.ts +4 -4
- package/src/features/row-sorting/rowSortingFeature.types.ts +14 -14
- package/src/helpers/columnHelper.ts +4 -4
- package/src/types/Cell.ts +2 -2
- package/src/types/Column.ts +8 -8
- package/src/types/ColumnDef.ts +6 -6
- package/src/types/Header.ts +2 -2
- package/src/types/HeaderGroup.ts +6 -6
- package/src/types/Row.ts +4 -4
- package/src/types/RowModel.ts +7 -7
- package/src/types/RowModelFns.ts +7 -7
- package/src/types/Table.ts +51 -25
- package/src/types/TableOptions.ts +54 -12
- package/src/types/TableState.ts +15 -1
- package/src/utils.ts +11 -2
|
@@ -44,8 +44,8 @@ export interface ColumnOrderDefaultOptions {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export interface Table_ColumnOrdering<
|
|
47
|
-
TFeatures extends TableFeatures,
|
|
48
|
-
TData extends RowData,
|
|
47
|
+
in out TFeatures extends TableFeatures,
|
|
48
|
+
in out TData extends RowData,
|
|
49
49
|
> {
|
|
50
50
|
/**
|
|
51
51
|
* Resets `columnOrder` to `initialState.columnOrder`.
|
|
@@ -67,8 +67,8 @@ export interface Column_ColumnPinning {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export interface Row_ColumnPinning<
|
|
70
|
-
TFeatures extends TableFeatures,
|
|
71
|
-
TData extends RowData,
|
|
70
|
+
in out TFeatures extends TableFeatures,
|
|
71
|
+
in out TData extends RowData,
|
|
72
72
|
> {
|
|
73
73
|
/**
|
|
74
74
|
* Gets visible row cells whose columns are not pinned left or right.
|
|
@@ -85,8 +85,8 @@ export interface Row_ColumnPinning<
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
export interface Table_ColumnPinning<
|
|
88
|
-
TFeatures extends TableFeatures,
|
|
89
|
-
TData extends RowData,
|
|
88
|
+
in out TFeatures extends TableFeatures,
|
|
89
|
+
in out TData extends RowData,
|
|
90
90
|
> {
|
|
91
91
|
/**
|
|
92
92
|
* Builds flat center-region headers for columns that are not pinned,
|
|
@@ -13,7 +13,7 @@ import type { Row } from '../../types/Row'
|
|
|
13
13
|
import type { CellData, RowData, Updater } from '../../types/type-utils'
|
|
14
14
|
import type { TableFeatures } from '../../types/TableFeatures'
|
|
15
15
|
import type { Table_Internal } from '../../types/Table'
|
|
16
|
-
import type { Column_Internal } from '../../types/Column'
|
|
16
|
+
import type { Column, Column_Internal } from '../../types/Column'
|
|
17
17
|
import type {
|
|
18
18
|
ColumnPinningPosition,
|
|
19
19
|
ColumnPinningState,
|
|
@@ -364,15 +364,11 @@ export function table_getLeftHeaderGroups<
|
|
|
364
364
|
TData extends RowData,
|
|
365
365
|
>(table: Table_Internal<TFeatures, TData>) {
|
|
366
366
|
const allColumns = table.getAllColumns()
|
|
367
|
-
const leafColumnsById = table.getAllLeafColumnsById()
|
|
368
|
-
string,
|
|
369
|
-
Column_Internal<TFeatures, TData, unknown>
|
|
370
|
-
>
|
|
367
|
+
const leafColumnsById = table.getAllLeafColumnsById()
|
|
371
368
|
const { left } =
|
|
372
369
|
table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
373
370
|
|
|
374
|
-
const orderedLeafColumns: Array<
|
|
375
|
-
[]
|
|
371
|
+
const orderedLeafColumns: Array<Column<TFeatures, TData, unknown>> = []
|
|
376
372
|
for (let i = 0; i < left.length; i++) {
|
|
377
373
|
const column = leafColumnsById[left[i]!]
|
|
378
374
|
if (
|
|
@@ -402,15 +398,11 @@ export function table_getRightHeaderGroups<
|
|
|
402
398
|
TData extends RowData,
|
|
403
399
|
>(table: Table_Internal<TFeatures, TData>) {
|
|
404
400
|
const allColumns = table.getAllColumns()
|
|
405
|
-
const leafColumnsById = table.getAllLeafColumnsById()
|
|
406
|
-
string,
|
|
407
|
-
Column_Internal<TFeatures, TData, unknown>
|
|
408
|
-
>
|
|
401
|
+
const leafColumnsById = table.getAllLeafColumnsById()
|
|
409
402
|
const { right } =
|
|
410
403
|
table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
411
404
|
|
|
412
|
-
const orderedLeafColumns: Array<
|
|
413
|
-
[]
|
|
405
|
+
const orderedLeafColumns: Array<Column<TFeatures, TData, unknown>> = []
|
|
414
406
|
for (let i = 0; i < right.length; i++) {
|
|
415
407
|
const column = leafColumnsById[right[i]!]
|
|
416
408
|
if (
|
|
@@ -446,7 +438,7 @@ export function table_getCenterHeaderGroups<
|
|
|
446
438
|
table,
|
|
447
439
|
'getVisibleLeafColumns',
|
|
448
440
|
table_getVisibleLeafColumns,
|
|
449
|
-
)
|
|
441
|
+
)
|
|
450
442
|
const { left, right } =
|
|
451
443
|
table.atoms.columnPinning?.get() ?? getDefaultColumnPinningState()
|
|
452
444
|
const leftAndRight: Array<string> = [...left, ...right]
|
|
@@ -54,11 +54,8 @@ export interface Table_ColumnResizing {
|
|
|
54
54
|
resetHeaderSizeInfo: (defaultState?: boolean) => void
|
|
55
55
|
/**
|
|
56
56
|
* Updates transient resize interaction state with a next state or updater function.
|
|
57
|
-
*
|
|
58
|
-
* The lowercase `c` in this API name matches the current generated v9 table
|
|
59
|
-
* API for the `columnResizing` state slice.
|
|
60
57
|
*/
|
|
61
|
-
|
|
58
|
+
setColumnResizing: (updater: Updater<columnResizingState>) => void
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
export interface ColumnDef_ColumnResizing {
|
|
@@ -28,8 +28,8 @@ export type VisibilityDefaultOptions = Pick<
|
|
|
28
28
|
>
|
|
29
29
|
|
|
30
30
|
export interface Table_ColumnVisibility<
|
|
31
|
-
TFeatures extends TableFeatures,
|
|
32
|
-
TData extends RowData,
|
|
31
|
+
in out TFeatures extends TableFeatures,
|
|
32
|
+
in out TData extends RowData,
|
|
33
33
|
> {
|
|
34
34
|
/**
|
|
35
35
|
* Checks whether every leaf column is currently visible.
|
|
@@ -76,8 +76,8 @@ export interface ColumnDef_ColumnVisibility {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export interface Row_ColumnVisibility<
|
|
79
|
-
TFeatures extends TableFeatures,
|
|
80
|
-
TData extends RowData,
|
|
79
|
+
in out TFeatures extends TableFeatures,
|
|
80
|
+
in out TData extends RowData,
|
|
81
81
|
> {
|
|
82
82
|
/**
|
|
83
83
|
* Gets this row's cells for currently visible columns.
|
|
@@ -33,8 +33,8 @@ export interface Column_GlobalFiltering {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface TableOptions_GlobalFiltering<
|
|
36
|
-
TFeatures extends TableFeatures,
|
|
37
|
-
TData extends RowData,
|
|
36
|
+
in out TFeatures extends TableFeatures,
|
|
37
|
+
in out TData extends RowData,
|
|
38
38
|
> {
|
|
39
39
|
/**
|
|
40
40
|
* Enables global filtering across columns that allow it.
|
|
@@ -67,8 +67,8 @@ export interface TableOptions_GlobalFiltering<
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export interface Table_GlobalFiltering<
|
|
70
|
-
TFeatures extends TableFeatures,
|
|
71
|
-
TData extends RowData,
|
|
70
|
+
in out TFeatures extends TableFeatures,
|
|
71
|
+
in out TData extends RowData,
|
|
72
72
|
> {
|
|
73
73
|
/**
|
|
74
74
|
* Currently, this function returns the built-in `includesString` filter function. In future releases, it may return more dynamic filter functions based on the nature of the data provided.
|
|
@@ -26,7 +26,7 @@ export function column_getCanGlobalFilter<
|
|
|
26
26
|
(column.columnDef.enableGlobalFilter ?? true) &&
|
|
27
27
|
(column.table.options.enableGlobalFilter ?? true) &&
|
|
28
28
|
(column.table.options.enableFilters ?? true) &&
|
|
29
|
-
(column.table.options.getColumnCanGlobalFilter?.(column) ?? true) &&
|
|
29
|
+
(column.table.options.getColumnCanGlobalFilter?.(column as any) ?? true) &&
|
|
30
30
|
!!column.accessorFn
|
|
31
31
|
)
|
|
32
32
|
}
|
|
@@ -35,8 +35,8 @@ export interface Row_RowExpanding {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export interface TableOptions_RowExpanding<
|
|
38
|
-
TFeatures extends TableFeatures,
|
|
39
|
-
TData extends RowData,
|
|
38
|
+
in out TFeatures extends TableFeatures,
|
|
39
|
+
in out TData extends RowData,
|
|
40
40
|
> {
|
|
41
41
|
/**
|
|
42
42
|
* Enables automatic expanded-state resets when page-altering table state changes.
|
|
@@ -71,8 +71,8 @@ export interface TableOptions_RowExpanding<
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export interface Table_RowExpanding<
|
|
74
|
-
TFeatures extends TableFeatures,
|
|
75
|
-
TData extends RowData,
|
|
74
|
+
in out TFeatures extends TableFeatures,
|
|
75
|
+
in out TData extends RowData,
|
|
76
76
|
> {
|
|
77
77
|
autoResetExpanded: () => void
|
|
78
78
|
/**
|
|
@@ -112,8 +112,8 @@ export interface Table_RowExpanding<
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
export interface Table_RowModels_Expanded<
|
|
115
|
-
TFeatures extends TableFeatures,
|
|
116
|
-
TData extends RowData,
|
|
115
|
+
in out TFeatures extends TableFeatures,
|
|
116
|
+
in out TData extends RowData,
|
|
117
117
|
> {
|
|
118
118
|
/**
|
|
119
119
|
* Resolves the row model after expanded rows have been flattened into view.
|
|
@@ -126,8 +126,8 @@ export interface Table_RowModels_Expanded<
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
export interface CachedRowModel_Expanded<
|
|
129
|
-
TFeatures extends TableFeatures,
|
|
130
|
-
TData extends RowData,
|
|
129
|
+
in out TFeatures extends TableFeatures,
|
|
130
|
+
in out TData extends RowData,
|
|
131
131
|
> {
|
|
132
132
|
expandedRowModel: () => RowModel<TFeatures, TData>
|
|
133
133
|
}
|
|
@@ -42,8 +42,8 @@ export interface PaginationDefaultOptions {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export interface Table_RowPagination<
|
|
45
|
-
TFeatures extends TableFeatures,
|
|
46
|
-
TData extends RowData,
|
|
45
|
+
in out TFeatures extends TableFeatures,
|
|
46
|
+
in out TData extends RowData,
|
|
47
47
|
> {
|
|
48
48
|
_autoResetPageIndex: () => void
|
|
49
49
|
/**
|
|
@@ -117,8 +117,8 @@ export interface Table_RowPagination<
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
export interface Table_RowModels_Paginated<
|
|
120
|
-
TFeatures extends TableFeatures,
|
|
121
|
-
TData extends RowData,
|
|
120
|
+
in out TFeatures extends TableFeatures,
|
|
121
|
+
in out TData extends RowData,
|
|
122
122
|
> {
|
|
123
123
|
/**
|
|
124
124
|
* Resolves the row model after pagination has sliced the current page.
|
|
@@ -131,8 +131,8 @@ export interface Table_RowModels_Paginated<
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export interface CachedRowModel_Paginated<
|
|
134
|
-
TFeatures extends TableFeatures,
|
|
135
|
-
TData extends RowData,
|
|
134
|
+
in out TFeatures extends TableFeatures,
|
|
135
|
+
in out TData extends RowData,
|
|
136
136
|
> {
|
|
137
137
|
paginatedRowModel: () => RowModel<TFeatures, TData>
|
|
138
138
|
}
|
|
@@ -14,8 +14,8 @@ export interface TableState_RowPinning {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface TableOptions_RowPinning<
|
|
17
|
-
TFeatures extends TableFeatures,
|
|
18
|
-
TData extends RowData,
|
|
17
|
+
in out TFeatures extends TableFeatures,
|
|
18
|
+
in out TData extends RowData,
|
|
19
19
|
> {
|
|
20
20
|
/**
|
|
21
21
|
* Allows rows to be pinned to top or bottom regions.
|
|
@@ -63,8 +63,8 @@ export interface Row_RowPinning {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export interface Table_RowPinning<
|
|
66
|
-
TFeatures extends TableFeatures,
|
|
67
|
-
TData extends RowData,
|
|
66
|
+
in out TFeatures extends TableFeatures,
|
|
67
|
+
in out TData extends RowData,
|
|
68
68
|
> {
|
|
69
69
|
/**
|
|
70
70
|
* Gets rows pinned to the bottom region.
|
|
@@ -10,8 +10,8 @@ export interface TableState_RowSelection {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export interface TableOptions_RowSelection<
|
|
13
|
-
TFeatures extends TableFeatures,
|
|
14
|
-
TData extends RowData,
|
|
13
|
+
in out TFeatures extends TableFeatures,
|
|
14
|
+
in out TData extends RowData,
|
|
15
15
|
> {
|
|
16
16
|
/**
|
|
17
17
|
* Allows rows to be selected alongside other rows.
|
|
@@ -87,8 +87,8 @@ export interface Row_RowSelection {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
export interface Table_RowSelection<
|
|
90
|
-
TFeatures extends TableFeatures,
|
|
91
|
-
TData extends RowData,
|
|
90
|
+
in out TFeatures extends TableFeatures,
|
|
91
|
+
in out TData extends RowData,
|
|
92
92
|
> {
|
|
93
93
|
/**
|
|
94
94
|
* Builds a selected-row model from rows after filtering.
|
|
@@ -18,8 +18,8 @@ export interface TableState_RowSorting {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface RowModelFns_RowSorting<
|
|
21
|
-
TFeatures extends TableFeatures,
|
|
22
|
-
TData extends RowData,
|
|
21
|
+
in out TFeatures extends TableFeatures,
|
|
22
|
+
in out TData extends RowData,
|
|
23
23
|
> {
|
|
24
24
|
sortFns: Record<string, SortFn<TFeatures, TData>>
|
|
25
25
|
}
|
|
@@ -27,8 +27,8 @@ export interface RowModelFns_RowSorting<
|
|
|
27
27
|
export interface SortFns {}
|
|
28
28
|
|
|
29
29
|
export interface SortFn<
|
|
30
|
-
TFeatures extends TableFeatures,
|
|
31
|
-
TData extends RowData,
|
|
30
|
+
in out TFeatures extends TableFeatures,
|
|
31
|
+
in out TData extends RowData,
|
|
32
32
|
> {
|
|
33
33
|
(
|
|
34
34
|
rowA: Row<TFeatures, TData>,
|
|
@@ -64,8 +64,8 @@ export type SortFnOption<
|
|
|
64
64
|
> = 'auto' | ExtractSortFnKeys<TFeatures> | SortFn<TFeatures, TData>
|
|
65
65
|
|
|
66
66
|
export interface ColumnDef_RowSorting<
|
|
67
|
-
TFeatures extends TableFeatures,
|
|
68
|
-
TData extends RowData,
|
|
67
|
+
in out TFeatures extends TableFeatures,
|
|
68
|
+
in out TData extends RowData,
|
|
69
69
|
> {
|
|
70
70
|
/**
|
|
71
71
|
* Enables/Disables multi-sorting for this column.
|
|
@@ -102,8 +102,8 @@ export interface ColumnDef_RowSorting<
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export interface Column_RowSorting<
|
|
105
|
-
TFeatures extends TableFeatures,
|
|
106
|
-
TData extends RowData,
|
|
105
|
+
in out TFeatures extends TableFeatures,
|
|
106
|
+
in out TData extends RowData,
|
|
107
107
|
> {
|
|
108
108
|
/**
|
|
109
109
|
* Removes this column from the table's sorting state
|
|
@@ -199,8 +199,8 @@ export interface TableOptions_RowSorting {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
export interface Table_RowSorting<
|
|
202
|
-
TFeatures extends TableFeatures,
|
|
203
|
-
TData extends RowData,
|
|
202
|
+
in out TFeatures extends TableFeatures,
|
|
203
|
+
in out TData extends RowData,
|
|
204
204
|
> {
|
|
205
205
|
/**
|
|
206
206
|
* Resets `sorting` to `initialState.sorting`.
|
|
@@ -215,8 +215,8 @@ export interface Table_RowSorting<
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
export interface Table_RowModels_Sorted<
|
|
218
|
-
TFeatures extends TableFeatures,
|
|
219
|
-
TData extends RowData,
|
|
218
|
+
in out TFeatures extends TableFeatures,
|
|
219
|
+
in out TData extends RowData,
|
|
220
220
|
> {
|
|
221
221
|
/**
|
|
222
222
|
* Reads the row model immediately before sorting.
|
|
@@ -229,8 +229,8 @@ export interface Table_RowModels_Sorted<
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
export interface CachedRowModel_Sorted<
|
|
232
|
-
TFeatures extends TableFeatures,
|
|
233
|
-
TData extends RowData,
|
|
232
|
+
in out TFeatures extends TableFeatures,
|
|
233
|
+
in out TData extends RowData,
|
|
234
234
|
> {
|
|
235
235
|
sortedRowModel: () => RowModel<TFeatures, TData>
|
|
236
236
|
}
|
|
@@ -10,10 +10,10 @@ import type {
|
|
|
10
10
|
IdentifiedColumnDef,
|
|
11
11
|
} from '../types/ColumnDef'
|
|
12
12
|
|
|
13
|
-
export
|
|
14
|
-
TFeatures extends TableFeatures,
|
|
15
|
-
TData extends RowData,
|
|
16
|
-
>
|
|
13
|
+
export interface ColumnHelper<
|
|
14
|
+
in out TFeatures extends TableFeatures,
|
|
15
|
+
in out TData extends RowData,
|
|
16
|
+
> {
|
|
17
17
|
/**
|
|
18
18
|
* Creates a data column definition with an accessor key or function to extract the cell value.
|
|
19
19
|
* @example
|
package/src/types/Cell.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type { ExtractFeatureMapTypes, TableFeatures } from './TableFeatures'
|
|
|
4
4
|
import type { Cell_Cell } from '../core/cells/coreCellsFeature.types'
|
|
5
5
|
|
|
6
6
|
export interface Cell_Core<
|
|
7
|
-
TFeatures extends TableFeatures,
|
|
8
|
-
TData extends RowData,
|
|
7
|
+
in out TFeatures extends TableFeatures,
|
|
8
|
+
in out TData extends RowData,
|
|
9
9
|
TValue extends CellData = CellData,
|
|
10
10
|
> extends Cell_Cell<TFeatures, TData, TValue> {}
|
|
11
11
|
|
package/src/types/Column.ts
CHANGED
|
@@ -14,14 +14,14 @@ import type { ExtractFeatureMapTypes, TableFeatures } from './TableFeatures'
|
|
|
14
14
|
import type { Column_Column } from '../core/columns/coreColumnsFeature.types'
|
|
15
15
|
|
|
16
16
|
export interface Column_Core<
|
|
17
|
-
TFeatures extends TableFeatures,
|
|
18
|
-
TData extends RowData,
|
|
17
|
+
in out TFeatures extends TableFeatures,
|
|
18
|
+
in out TData extends RowData,
|
|
19
19
|
TValue = unknown,
|
|
20
20
|
> extends Column_Column<TFeatures, TData, TValue> {}
|
|
21
21
|
|
|
22
22
|
export interface Column_FeatureMap<
|
|
23
|
-
TFeatures extends TableFeatures,
|
|
24
|
-
TData extends RowData,
|
|
23
|
+
in out TFeatures extends TableFeatures,
|
|
24
|
+
in out TData extends RowData,
|
|
25
25
|
> {
|
|
26
26
|
columnFacetingFeature: Column_ColumnFaceting<TFeatures, TData>
|
|
27
27
|
columnFilteringFeature: Column_ColumnFiltering<TFeatures, TData>
|
|
@@ -42,10 +42,10 @@ export type Column<
|
|
|
42
42
|
> = Column_Core<TFeatures, TData, TValue> &
|
|
43
43
|
ExtractFeatureMapTypes<TFeatures, Column_FeatureMap<TFeatures, TData>>
|
|
44
44
|
|
|
45
|
-
export
|
|
46
|
-
TFeatures extends TableFeatures,
|
|
47
|
-
TData extends RowData,
|
|
45
|
+
export interface Column_Internal<
|
|
46
|
+
in out TFeatures extends TableFeatures,
|
|
47
|
+
in out TData extends RowData,
|
|
48
48
|
TValue = unknown,
|
|
49
|
-
>
|
|
49
|
+
> extends Omit<Column_Core<TFeatures, TData, TValue>, 'columnDef'> {
|
|
50
50
|
columnDef: ColumnDefBase_All<TFeatures, TData, TValue>
|
|
51
51
|
}
|
package/src/types/ColumnDef.ts
CHANGED
|
@@ -16,8 +16,8 @@ import type { ColumnDef_GlobalFiltering } from '../features/global-filtering/glo
|
|
|
16
16
|
import type { ColumnDef_RowSorting } from '../features/row-sorting/rowSortingFeature.types'
|
|
17
17
|
|
|
18
18
|
export interface ColumnMeta<
|
|
19
|
-
TFeatures extends TableFeatures,
|
|
20
|
-
TData extends RowData,
|
|
19
|
+
in out TFeatures extends TableFeatures,
|
|
20
|
+
in out TData extends RowData,
|
|
21
21
|
TValue extends CellData = CellData,
|
|
22
22
|
> {}
|
|
23
23
|
|
|
@@ -79,8 +79,8 @@ export interface StringHeaderIdentifier {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export interface IdIdentifier<
|
|
82
|
-
TFeatures extends TableFeatures,
|
|
83
|
-
TData extends RowData,
|
|
82
|
+
in out TFeatures extends TableFeatures,
|
|
83
|
+
in out TData extends RowData,
|
|
84
84
|
TValue extends CellData = CellData,
|
|
85
85
|
> {
|
|
86
86
|
/**
|
|
@@ -127,8 +127,8 @@ interface ColumnDefBase_Core<
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
export interface ColumnDef_FeatureMap<
|
|
130
|
-
TFeatures extends TableFeatures,
|
|
131
|
-
TData extends RowData,
|
|
130
|
+
in out TFeatures extends TableFeatures,
|
|
131
|
+
in out TData extends RowData,
|
|
132
132
|
TValue extends CellData,
|
|
133
133
|
> {
|
|
134
134
|
columnVisibilityFeature: ColumnDef_ColumnVisibility
|
package/src/types/Header.ts
CHANGED
|
@@ -5,8 +5,8 @@ import type { Header_Header } from '../core/headers/coreHeadersFeature.types'
|
|
|
5
5
|
import type { Header_ColumnResizing } from '../features/column-resizing/columnResizingFeature.types'
|
|
6
6
|
|
|
7
7
|
export interface Header_Core<
|
|
8
|
-
TFeatures extends TableFeatures,
|
|
9
|
-
TData extends RowData,
|
|
8
|
+
in out TFeatures extends TableFeatures,
|
|
9
|
+
in out TData extends RowData,
|
|
10
10
|
TValue extends CellData = CellData,
|
|
11
11
|
> extends Header_Header<TFeatures, TData, TValue> {}
|
|
12
12
|
|
package/src/types/HeaderGroup.ts
CHANGED
|
@@ -3,11 +3,11 @@ import type { TableFeatures } from './TableFeatures'
|
|
|
3
3
|
import type { RowData } from './type-utils'
|
|
4
4
|
|
|
5
5
|
export interface HeaderGroup_Core<
|
|
6
|
-
TFeatures extends TableFeatures,
|
|
7
|
-
TData extends RowData,
|
|
6
|
+
in out TFeatures extends TableFeatures,
|
|
7
|
+
in out TData extends RowData,
|
|
8
8
|
> extends HeaderGroup_Header<TFeatures, TData> {}
|
|
9
9
|
|
|
10
|
-
export
|
|
11
|
-
TFeatures extends TableFeatures,
|
|
12
|
-
TData extends RowData,
|
|
13
|
-
>
|
|
10
|
+
export interface HeaderGroup<
|
|
11
|
+
in out TFeatures extends TableFeatures,
|
|
12
|
+
in out TData extends RowData,
|
|
13
|
+
> extends HeaderGroup_Core<TFeatures, TData> {}
|
package/src/types/Row.ts
CHANGED
|
@@ -10,13 +10,13 @@ import type { ExtractFeatureMapTypes, TableFeatures } from './TableFeatures'
|
|
|
10
10
|
import type { Row_Row } from '../core/rows/coreRowsFeature.types'
|
|
11
11
|
|
|
12
12
|
export interface Row_Core<
|
|
13
|
-
TFeatures extends TableFeatures,
|
|
14
|
-
TData extends RowData,
|
|
13
|
+
in out TFeatures extends TableFeatures,
|
|
14
|
+
in out TData extends RowData,
|
|
15
15
|
> extends Row_Row<TFeatures, TData> {}
|
|
16
16
|
|
|
17
17
|
export interface Row_FeatureMap<
|
|
18
|
-
TFeatures extends TableFeatures,
|
|
19
|
-
TData extends RowData,
|
|
18
|
+
in out TFeatures extends TableFeatures,
|
|
19
|
+
in out TData extends RowData,
|
|
20
20
|
> {
|
|
21
21
|
columnFilteringFeature: Row_ColumnFiltering<TFeatures, TData>
|
|
22
22
|
columnGroupingFeature: Row_ColumnGrouping
|
package/src/types/RowModel.ts
CHANGED
|
@@ -12,8 +12,8 @@ import type { RowData } from './type-utils'
|
|
|
12
12
|
import type { ExtractFeatureMapTypes, TableFeatures } from './TableFeatures'
|
|
13
13
|
|
|
14
14
|
export interface CachedRowModels_FeatureMap<
|
|
15
|
-
TFeatures extends TableFeatures,
|
|
16
|
-
TData extends RowData,
|
|
15
|
+
in out TFeatures extends TableFeatures,
|
|
16
|
+
in out TData extends RowData,
|
|
17
17
|
> {
|
|
18
18
|
columnFacetingFeature: CachedRowModel_Faceted<TFeatures, TData>
|
|
19
19
|
columnFilteringFeature: CachedRowModel_Filtered<TFeatures, TData>
|
|
@@ -33,10 +33,10 @@ export type CachedRowModels<
|
|
|
33
33
|
CachedRowModels_FeatureMap<TFeatures, TData>
|
|
34
34
|
>
|
|
35
35
|
|
|
36
|
-
export
|
|
37
|
-
TFeatures extends TableFeatures,
|
|
38
|
-
TData extends RowData = any,
|
|
39
|
-
>
|
|
36
|
+
export interface CachedRowModel_All<
|
|
37
|
+
in out TFeatures extends TableFeatures,
|
|
38
|
+
in out TData extends RowData = any,
|
|
39
|
+
> extends Partial<
|
|
40
40
|
CachedRowModel_Core<TFeatures, TData> &
|
|
41
41
|
CachedRowModel_Expanded<TFeatures, TData> &
|
|
42
42
|
CachedRowModel_Faceted<TFeatures, TData> &
|
|
@@ -44,4 +44,4 @@ export type CachedRowModel_All<
|
|
|
44
44
|
CachedRowModel_Grouped<TFeatures, TData> &
|
|
45
45
|
CachedRowModel_Paginated<TFeatures, TData> &
|
|
46
46
|
CachedRowModel_Sorted<TFeatures, TData>
|
|
47
|
-
>
|
|
47
|
+
> {}
|
package/src/types/RowModelFns.ts
CHANGED
|
@@ -7,8 +7,8 @@ import type { ExtractFeatureMapTypes, TableFeatures } from './TableFeatures'
|
|
|
7
7
|
export interface RowModelFns_Core {}
|
|
8
8
|
|
|
9
9
|
export interface RowModelFns_FeatureMap<
|
|
10
|
-
TFeatures extends TableFeatures,
|
|
11
|
-
TData extends RowData,
|
|
10
|
+
in out TFeatures extends TableFeatures,
|
|
11
|
+
in out TData extends RowData,
|
|
12
12
|
> {
|
|
13
13
|
columnFilteringFeature: RowModelFns_ColumnFiltering<TFeatures, TData>
|
|
14
14
|
columnGroupingFeature: RowModelFns_ColumnGrouping<TFeatures, TData>
|
|
@@ -22,11 +22,11 @@ export type RowModelFns<
|
|
|
22
22
|
ExtractFeatureMapTypes<TFeatures, RowModelFns_FeatureMap<TFeatures, TData>>
|
|
23
23
|
>
|
|
24
24
|
|
|
25
|
-
export
|
|
26
|
-
TFeatures extends TableFeatures,
|
|
27
|
-
TData extends RowData,
|
|
28
|
-
>
|
|
25
|
+
export interface RowModelFns_All<
|
|
26
|
+
in out TFeatures extends TableFeatures,
|
|
27
|
+
in out TData extends RowData,
|
|
28
|
+
> extends Partial<
|
|
29
29
|
RowModelFns_ColumnFiltering<TFeatures, TData> &
|
|
30
30
|
RowModelFns_ColumnGrouping<TFeatures, TData> &
|
|
31
31
|
RowModelFns_RowSorting<TFeatures, TData>
|
|
32
|
-
>
|
|
32
|
+
> {}
|