material-react-table 1.13.1 → 1.15.0
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 +2 -1
- package/dist/cjs/index.js +96 -66
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/_locales/no.d.ts +2 -0
- package/dist/cjs/types/column.utils.d.ts +4 -4
- package/dist/cjs/types/sortingFns.d.ts +1 -418
- package/dist/cjs/types/types.d.ts +5 -3
- package/dist/esm/material-react-table.esm.js +93 -65
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/dist/esm/types/_locales/no.d.ts +2 -0
- package/dist/esm/types/column.utils.d.ts +4 -4
- package/dist/esm/types/sortingFns.d.ts +1 -418
- package/dist/esm/types/types.d.ts +5 -3
- package/dist/index.d.ts +16 -14
- package/locales/no.d.ts +2 -0
- package/locales/no.esm.d.ts +2 -0
- package/locales/no.esm.js +94 -0
- package/locales/no.esm.js.map +1 -0
- package/locales/no.js +98 -0
- package/locales/no.js.map +1 -0
- package/locales/sv.esm.js +2 -2
- package/locales/sv.esm.js.map +1 -1
- package/locales/sv.js +2 -2
- package/locales/sv.js.map +1 -1
- package/package.json +35 -35
- package/src/_locales/no.ts +94 -0
- package/src/_locales/sv.ts +2 -2
- package/src/body/MRT_TableBodyCell.tsx +1 -1
- package/src/head/MRT_TableHeadCellFilterLabel.tsx +1 -1
- package/src/inputs/MRT_FilterRangeSlider.tsx +21 -20
- package/src/inputs/MRT_FilterTextField.tsx +1 -0
- package/src/menus/MRT_ColumnActionMenu.tsx +139 -125
- package/src/sortingFns.ts +1 -5
- package/src/types.ts +376 -376
|
@@ -116,17 +116,17 @@ export declare const getCommonCellStyles: ({ column, header, table, tableCellPro
|
|
|
116
116
|
header?: {
|
|
117
117
|
id: string;
|
|
118
118
|
getContext: () => import("@tanstack/react-table").HeaderContext<{}, unknown>;
|
|
119
|
-
index: number;
|
|
120
119
|
depth: number;
|
|
120
|
+
index: number;
|
|
121
121
|
getLeafHeaders: () => import("@tanstack/react-table").Header<{}, unknown>[];
|
|
122
122
|
getSize: () => number;
|
|
123
123
|
getStart: (position?: import("@tanstack/react-table").ColumnPinningPosition | undefined) => number;
|
|
124
|
-
headerGroup: import("@tanstack/react-table").HeaderGroup<{}>;
|
|
125
|
-
subHeaders: import("@tanstack/react-table").Header<{}, unknown>[];
|
|
126
124
|
colSpan: number;
|
|
127
|
-
|
|
125
|
+
headerGroup: import("@tanstack/react-table").HeaderGroup<{}>;
|
|
128
126
|
isPlaceholder: boolean;
|
|
129
127
|
placeholderId?: string | undefined;
|
|
128
|
+
rowSpan: number;
|
|
129
|
+
subHeaders: import("@tanstack/react-table").Header<{}, unknown>[];
|
|
130
130
|
getResizeHandler: () => (event: unknown) => void;
|
|
131
131
|
column: MRT_Column<{}>;
|
|
132
132
|
} | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type Row } from '@tanstack/react-table';
|
|
2
|
-
import { type MRT_Row } from './types';
|
|
3
2
|
export declare const MRT_SortingFns: {
|
|
4
3
|
fuzzy: <TData extends Record<string, any> = {}>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
|
|
5
4
|
alphanumeric: import("@tanstack/react-table").SortingFn<any>;
|
|
@@ -9,420 +8,4 @@ export declare const MRT_SortingFns: {
|
|
|
9
8
|
datetime: import("@tanstack/react-table").SortingFn<any>;
|
|
10
9
|
basic: import("@tanstack/react-table").SortingFn<any>;
|
|
11
10
|
};
|
|
12
|
-
export declare const rankGlobalFuzzy:
|
|
13
|
-
getValue: <TValue>(columnId: string) => TValue;
|
|
14
|
-
renderValue: <TValue_1>(columnId: string) => TValue_1;
|
|
15
|
-
id: string;
|
|
16
|
-
index: number;
|
|
17
|
-
original: TData;
|
|
18
|
-
depth: number;
|
|
19
|
-
parentId?: string | undefined;
|
|
20
|
-
_uniqueValuesCache: Record<string, unknown>;
|
|
21
|
-
getUniqueValues: <TValue_2>(columnId: string) => TValue_2[];
|
|
22
|
-
getLeafRows: () => Row<TData>[];
|
|
23
|
-
originalSubRows?: TData[] | undefined;
|
|
24
|
-
_getAllCellsByColumnId: () => Record<string, import("@tanstack/react-table").Cell<TData, unknown>>;
|
|
25
|
-
getParentRow: () => Row<TData> | undefined;
|
|
26
|
-
getParentRows: () => Row<TData>[];
|
|
27
|
-
_getAllVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
28
|
-
getLeftVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
29
|
-
getCenterVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
30
|
-
getRightVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
31
|
-
columnFilters: Record<string, boolean>;
|
|
32
|
-
columnFiltersMeta: Record<string, import("@tanstack/react-table").FilterMeta>;
|
|
33
|
-
groupingColumnId?: string | undefined;
|
|
34
|
-
groupingValue?: unknown;
|
|
35
|
-
getIsGrouped: () => boolean;
|
|
36
|
-
getGroupingValue: (columnId: string) => unknown;
|
|
37
|
-
_groupingValuesCache: Record<string, any>;
|
|
38
|
-
getIsSelected: () => boolean;
|
|
39
|
-
getIsSomeSelected: () => boolean;
|
|
40
|
-
getIsAllSubRowsSelected: () => boolean;
|
|
41
|
-
getCanSelect: () => boolean;
|
|
42
|
-
getCanMultiSelect: () => boolean;
|
|
43
|
-
getCanSelectSubRows: () => boolean;
|
|
44
|
-
toggleSelected: (value?: boolean | undefined) => void;
|
|
45
|
-
getToggleSelectedHandler: () => (event: unknown) => void;
|
|
46
|
-
toggleExpanded: (expanded?: boolean | undefined) => void;
|
|
47
|
-
getIsExpanded: () => boolean;
|
|
48
|
-
getCanExpand: () => boolean;
|
|
49
|
-
getToggleExpandedHandler: () => () => void;
|
|
50
|
-
getAllCells: () => {
|
|
51
|
-
getValue: import("@tanstack/react-table").Getter<unknown>;
|
|
52
|
-
renderValue: import("@tanstack/react-table").Getter<unknown>;
|
|
53
|
-
id: string;
|
|
54
|
-
getContext: () => import("@tanstack/react-table").CellContext<TData, unknown>;
|
|
55
|
-
getIsGrouped: () => boolean;
|
|
56
|
-
getIsPlaceholder: () => boolean;
|
|
57
|
-
getIsAggregated: () => boolean;
|
|
58
|
-
column: import("./types").MRT_Column<TData>;
|
|
59
|
-
row: {
|
|
60
|
-
getValue: <TValue>(columnId: string) => TValue;
|
|
61
|
-
renderValue: <TValue_1>(columnId: string) => TValue_1;
|
|
62
|
-
id: string;
|
|
63
|
-
index: number;
|
|
64
|
-
original: TData;
|
|
65
|
-
depth: number;
|
|
66
|
-
parentId?: string | undefined;
|
|
67
|
-
_uniqueValuesCache: Record<string, unknown>;
|
|
68
|
-
getUniqueValues: <TValue_2>(columnId: string) => TValue_2[];
|
|
69
|
-
getLeafRows: () => Row<TData>[];
|
|
70
|
-
originalSubRows?: TData[] | undefined;
|
|
71
|
-
_getAllCellsByColumnId: () => Record<string, import("@tanstack/react-table").Cell<TData, unknown>>;
|
|
72
|
-
getParentRow: () => Row<TData> | undefined;
|
|
73
|
-
getParentRows: () => Row<TData>[];
|
|
74
|
-
_getAllVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
75
|
-
getLeftVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
76
|
-
getCenterVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
77
|
-
getRightVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
78
|
-
columnFilters: Record<string, boolean>;
|
|
79
|
-
columnFiltersMeta: Record<string, import("@tanstack/react-table").FilterMeta>;
|
|
80
|
-
groupingColumnId?: string | undefined;
|
|
81
|
-
groupingValue?: unknown;
|
|
82
|
-
getIsGrouped: () => boolean;
|
|
83
|
-
getGroupingValue: (columnId: string) => unknown;
|
|
84
|
-
_groupingValuesCache: Record<string, any>;
|
|
85
|
-
getIsSelected: () => boolean;
|
|
86
|
-
getIsSomeSelected: () => boolean;
|
|
87
|
-
getIsAllSubRowsSelected: () => boolean;
|
|
88
|
-
getCanSelect: () => boolean;
|
|
89
|
-
getCanMultiSelect: () => boolean;
|
|
90
|
-
getCanSelectSubRows: () => boolean;
|
|
91
|
-
toggleSelected: (value?: boolean | undefined) => void;
|
|
92
|
-
getToggleSelectedHandler: () => (event: unknown) => void;
|
|
93
|
-
toggleExpanded: (expanded?: boolean | undefined) => void;
|
|
94
|
-
getIsExpanded: () => boolean;
|
|
95
|
-
getCanExpand: () => boolean;
|
|
96
|
-
getToggleExpandedHandler: () => () => void;
|
|
97
|
-
getAllCells: any;
|
|
98
|
-
getVisibleCells: () => any[];
|
|
99
|
-
subRows?: any[] | undefined;
|
|
100
|
-
_valuesCache: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
|
101
|
-
};
|
|
102
|
-
}[];
|
|
103
|
-
getVisibleCells: () => {
|
|
104
|
-
getValue: import("@tanstack/react-table").Getter<unknown>;
|
|
105
|
-
renderValue: import("@tanstack/react-table").Getter<unknown>;
|
|
106
|
-
id: string;
|
|
107
|
-
getContext: () => import("@tanstack/react-table").CellContext<TData, unknown>;
|
|
108
|
-
getIsGrouped: () => boolean;
|
|
109
|
-
getIsPlaceholder: () => boolean;
|
|
110
|
-
getIsAggregated: () => boolean;
|
|
111
|
-
column: import("./types").MRT_Column<TData>;
|
|
112
|
-
row: {
|
|
113
|
-
getValue: <TValue>(columnId: string) => TValue;
|
|
114
|
-
renderValue: <TValue_1>(columnId: string) => TValue_1;
|
|
115
|
-
id: string;
|
|
116
|
-
index: number;
|
|
117
|
-
original: TData;
|
|
118
|
-
depth: number;
|
|
119
|
-
parentId?: string | undefined;
|
|
120
|
-
_uniqueValuesCache: Record<string, unknown>;
|
|
121
|
-
getUniqueValues: <TValue_2>(columnId: string) => TValue_2[];
|
|
122
|
-
getLeafRows: () => Row<TData>[];
|
|
123
|
-
originalSubRows?: TData[] | undefined;
|
|
124
|
-
_getAllCellsByColumnId: () => Record<string, import("@tanstack/react-table").Cell<TData, unknown>>;
|
|
125
|
-
getParentRow: () => Row<TData> | undefined;
|
|
126
|
-
getParentRows: () => Row<TData>[];
|
|
127
|
-
_getAllVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
128
|
-
getLeftVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
129
|
-
getCenterVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
130
|
-
getRightVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
131
|
-
columnFilters: Record<string, boolean>;
|
|
132
|
-
columnFiltersMeta: Record<string, import("@tanstack/react-table").FilterMeta>;
|
|
133
|
-
groupingColumnId?: string | undefined;
|
|
134
|
-
groupingValue?: unknown;
|
|
135
|
-
getIsGrouped: () => boolean;
|
|
136
|
-
getGroupingValue: (columnId: string) => unknown;
|
|
137
|
-
_groupingValuesCache: Record<string, any>;
|
|
138
|
-
getIsSelected: () => boolean;
|
|
139
|
-
getIsSomeSelected: () => boolean;
|
|
140
|
-
getIsAllSubRowsSelected: () => boolean;
|
|
141
|
-
getCanSelect: () => boolean;
|
|
142
|
-
getCanMultiSelect: () => boolean;
|
|
143
|
-
getCanSelectSubRows: () => boolean;
|
|
144
|
-
toggleSelected: (value?: boolean | undefined) => void;
|
|
145
|
-
getToggleSelectedHandler: () => (event: unknown) => void;
|
|
146
|
-
toggleExpanded: (expanded?: boolean | undefined) => void;
|
|
147
|
-
getIsExpanded: () => boolean;
|
|
148
|
-
getCanExpand: () => boolean;
|
|
149
|
-
getToggleExpandedHandler: () => () => void;
|
|
150
|
-
getAllCells: () => any[];
|
|
151
|
-
getVisibleCells: any;
|
|
152
|
-
subRows?: any[] | undefined;
|
|
153
|
-
_valuesCache: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
|
154
|
-
};
|
|
155
|
-
}[];
|
|
156
|
-
subRows?: {
|
|
157
|
-
getValue: <TValue>(columnId: string) => TValue;
|
|
158
|
-
renderValue: <TValue_1>(columnId: string) => TValue_1;
|
|
159
|
-
id: string;
|
|
160
|
-
index: number;
|
|
161
|
-
original: TData;
|
|
162
|
-
depth: number;
|
|
163
|
-
parentId?: string | undefined;
|
|
164
|
-
_uniqueValuesCache: Record<string, unknown>;
|
|
165
|
-
getUniqueValues: <TValue_2>(columnId: string) => TValue_2[];
|
|
166
|
-
getLeafRows: () => Row<TData>[];
|
|
167
|
-
originalSubRows?: TData[] | undefined;
|
|
168
|
-
_getAllCellsByColumnId: () => Record<string, import("@tanstack/react-table").Cell<TData, unknown>>;
|
|
169
|
-
getParentRow: () => Row<TData> | undefined;
|
|
170
|
-
getParentRows: () => Row<TData>[];
|
|
171
|
-
_getAllVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
172
|
-
getLeftVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
173
|
-
getCenterVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
174
|
-
getRightVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
175
|
-
columnFilters: Record<string, boolean>;
|
|
176
|
-
columnFiltersMeta: Record<string, import("@tanstack/react-table").FilterMeta>;
|
|
177
|
-
groupingColumnId?: string | undefined;
|
|
178
|
-
groupingValue?: unknown;
|
|
179
|
-
getIsGrouped: () => boolean;
|
|
180
|
-
getGroupingValue: (columnId: string) => unknown;
|
|
181
|
-
_groupingValuesCache: Record<string, any>;
|
|
182
|
-
getIsSelected: () => boolean;
|
|
183
|
-
getIsSomeSelected: () => boolean;
|
|
184
|
-
getIsAllSubRowsSelected: () => boolean;
|
|
185
|
-
getCanSelect: () => boolean;
|
|
186
|
-
getCanMultiSelect: () => boolean;
|
|
187
|
-
getCanSelectSubRows: () => boolean;
|
|
188
|
-
toggleSelected: (value?: boolean | undefined) => void;
|
|
189
|
-
getToggleSelectedHandler: () => (event: unknown) => void;
|
|
190
|
-
toggleExpanded: (expanded?: boolean | undefined) => void;
|
|
191
|
-
getIsExpanded: () => boolean;
|
|
192
|
-
getCanExpand: () => boolean;
|
|
193
|
-
getToggleExpandedHandler: () => () => void;
|
|
194
|
-
getAllCells: () => {
|
|
195
|
-
getValue: import("@tanstack/react-table").Getter<unknown>;
|
|
196
|
-
renderValue: import("@tanstack/react-table").Getter<unknown>;
|
|
197
|
-
id: string;
|
|
198
|
-
getContext: () => import("@tanstack/react-table").CellContext<TData, unknown>;
|
|
199
|
-
getIsGrouped: () => boolean;
|
|
200
|
-
getIsPlaceholder: () => boolean;
|
|
201
|
-
getIsAggregated: () => boolean;
|
|
202
|
-
column: import("./types").MRT_Column<TData>;
|
|
203
|
-
row: any;
|
|
204
|
-
}[];
|
|
205
|
-
getVisibleCells: () => {
|
|
206
|
-
getValue: import("@tanstack/react-table").Getter<unknown>;
|
|
207
|
-
renderValue: import("@tanstack/react-table").Getter<unknown>;
|
|
208
|
-
id: string;
|
|
209
|
-
getContext: () => import("@tanstack/react-table").CellContext<TData, unknown>;
|
|
210
|
-
getIsGrouped: () => boolean;
|
|
211
|
-
getIsPlaceholder: () => boolean;
|
|
212
|
-
getIsAggregated: () => boolean;
|
|
213
|
-
column: import("./types").MRT_Column<TData>;
|
|
214
|
-
row: any;
|
|
215
|
-
}[];
|
|
216
|
-
subRows?: any[] | undefined;
|
|
217
|
-
_valuesCache: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
|
218
|
-
}[] | undefined;
|
|
219
|
-
_valuesCache: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
|
220
|
-
}, rowB: {
|
|
221
|
-
getValue: <TValue>(columnId: string) => TValue;
|
|
222
|
-
renderValue: <TValue_1>(columnId: string) => TValue_1;
|
|
223
|
-
id: string;
|
|
224
|
-
index: number;
|
|
225
|
-
original: TData;
|
|
226
|
-
depth: number;
|
|
227
|
-
parentId?: string | undefined;
|
|
228
|
-
_uniqueValuesCache: Record<string, unknown>;
|
|
229
|
-
getUniqueValues: <TValue_2>(columnId: string) => TValue_2[];
|
|
230
|
-
getLeafRows: () => Row<TData>[];
|
|
231
|
-
originalSubRows?: TData[] | undefined;
|
|
232
|
-
_getAllCellsByColumnId: () => Record<string, import("@tanstack/react-table").Cell<TData, unknown>>;
|
|
233
|
-
getParentRow: () => Row<TData> | undefined;
|
|
234
|
-
getParentRows: () => Row<TData>[];
|
|
235
|
-
_getAllVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
236
|
-
getLeftVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
237
|
-
getCenterVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
238
|
-
getRightVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
239
|
-
columnFilters: Record<string, boolean>;
|
|
240
|
-
columnFiltersMeta: Record<string, import("@tanstack/react-table").FilterMeta>;
|
|
241
|
-
groupingColumnId?: string | undefined;
|
|
242
|
-
groupingValue?: unknown;
|
|
243
|
-
getIsGrouped: () => boolean;
|
|
244
|
-
getGroupingValue: (columnId: string) => unknown;
|
|
245
|
-
_groupingValuesCache: Record<string, any>;
|
|
246
|
-
getIsSelected: () => boolean;
|
|
247
|
-
getIsSomeSelected: () => boolean;
|
|
248
|
-
getIsAllSubRowsSelected: () => boolean;
|
|
249
|
-
getCanSelect: () => boolean;
|
|
250
|
-
getCanMultiSelect: () => boolean;
|
|
251
|
-
getCanSelectSubRows: () => boolean;
|
|
252
|
-
toggleSelected: (value?: boolean | undefined) => void;
|
|
253
|
-
getToggleSelectedHandler: () => (event: unknown) => void;
|
|
254
|
-
toggleExpanded: (expanded?: boolean | undefined) => void;
|
|
255
|
-
getIsExpanded: () => boolean;
|
|
256
|
-
getCanExpand: () => boolean;
|
|
257
|
-
getToggleExpandedHandler: () => () => void;
|
|
258
|
-
getAllCells: () => {
|
|
259
|
-
getValue: import("@tanstack/react-table").Getter<unknown>;
|
|
260
|
-
renderValue: import("@tanstack/react-table").Getter<unknown>;
|
|
261
|
-
id: string;
|
|
262
|
-
getContext: () => import("@tanstack/react-table").CellContext<TData, unknown>;
|
|
263
|
-
getIsGrouped: () => boolean;
|
|
264
|
-
getIsPlaceholder: () => boolean;
|
|
265
|
-
getIsAggregated: () => boolean;
|
|
266
|
-
column: import("./types").MRT_Column<TData>;
|
|
267
|
-
row: {
|
|
268
|
-
getValue: <TValue>(columnId: string) => TValue;
|
|
269
|
-
renderValue: <TValue_1>(columnId: string) => TValue_1;
|
|
270
|
-
id: string;
|
|
271
|
-
index: number;
|
|
272
|
-
original: TData;
|
|
273
|
-
depth: number;
|
|
274
|
-
parentId?: string | undefined;
|
|
275
|
-
_uniqueValuesCache: Record<string, unknown>;
|
|
276
|
-
getUniqueValues: <TValue_2>(columnId: string) => TValue_2[];
|
|
277
|
-
getLeafRows: () => Row<TData>[];
|
|
278
|
-
originalSubRows?: TData[] | undefined;
|
|
279
|
-
_getAllCellsByColumnId: () => Record<string, import("@tanstack/react-table").Cell<TData, unknown>>;
|
|
280
|
-
getParentRow: () => Row<TData> | undefined;
|
|
281
|
-
getParentRows: () => Row<TData>[];
|
|
282
|
-
_getAllVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
283
|
-
getLeftVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
284
|
-
getCenterVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
285
|
-
getRightVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
286
|
-
columnFilters: Record<string, boolean>;
|
|
287
|
-
columnFiltersMeta: Record<string, import("@tanstack/react-table").FilterMeta>;
|
|
288
|
-
groupingColumnId?: string | undefined;
|
|
289
|
-
groupingValue?: unknown;
|
|
290
|
-
getIsGrouped: () => boolean;
|
|
291
|
-
getGroupingValue: (columnId: string) => unknown;
|
|
292
|
-
_groupingValuesCache: Record<string, any>;
|
|
293
|
-
getIsSelected: () => boolean;
|
|
294
|
-
getIsSomeSelected: () => boolean;
|
|
295
|
-
getIsAllSubRowsSelected: () => boolean;
|
|
296
|
-
getCanSelect: () => boolean;
|
|
297
|
-
getCanMultiSelect: () => boolean;
|
|
298
|
-
getCanSelectSubRows: () => boolean;
|
|
299
|
-
toggleSelected: (value?: boolean | undefined) => void;
|
|
300
|
-
getToggleSelectedHandler: () => (event: unknown) => void;
|
|
301
|
-
toggleExpanded: (expanded?: boolean | undefined) => void;
|
|
302
|
-
getIsExpanded: () => boolean;
|
|
303
|
-
getCanExpand: () => boolean;
|
|
304
|
-
getToggleExpandedHandler: () => () => void;
|
|
305
|
-
getAllCells: any;
|
|
306
|
-
getVisibleCells: () => any[];
|
|
307
|
-
subRows?: any[] | undefined;
|
|
308
|
-
_valuesCache: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
|
309
|
-
};
|
|
310
|
-
}[];
|
|
311
|
-
getVisibleCells: () => {
|
|
312
|
-
getValue: import("@tanstack/react-table").Getter<unknown>;
|
|
313
|
-
renderValue: import("@tanstack/react-table").Getter<unknown>;
|
|
314
|
-
id: string;
|
|
315
|
-
getContext: () => import("@tanstack/react-table").CellContext<TData, unknown>;
|
|
316
|
-
getIsGrouped: () => boolean;
|
|
317
|
-
getIsPlaceholder: () => boolean;
|
|
318
|
-
getIsAggregated: () => boolean;
|
|
319
|
-
column: import("./types").MRT_Column<TData>;
|
|
320
|
-
row: {
|
|
321
|
-
getValue: <TValue>(columnId: string) => TValue;
|
|
322
|
-
renderValue: <TValue_1>(columnId: string) => TValue_1;
|
|
323
|
-
id: string;
|
|
324
|
-
index: number;
|
|
325
|
-
original: TData;
|
|
326
|
-
depth: number;
|
|
327
|
-
parentId?: string | undefined;
|
|
328
|
-
_uniqueValuesCache: Record<string, unknown>;
|
|
329
|
-
getUniqueValues: <TValue_2>(columnId: string) => TValue_2[];
|
|
330
|
-
getLeafRows: () => Row<TData>[];
|
|
331
|
-
originalSubRows?: TData[] | undefined;
|
|
332
|
-
_getAllCellsByColumnId: () => Record<string, import("@tanstack/react-table").Cell<TData, unknown>>;
|
|
333
|
-
getParentRow: () => Row<TData> | undefined;
|
|
334
|
-
getParentRows: () => Row<TData>[];
|
|
335
|
-
_getAllVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
336
|
-
getLeftVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
337
|
-
getCenterVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
338
|
-
getRightVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
339
|
-
columnFilters: Record<string, boolean>;
|
|
340
|
-
columnFiltersMeta: Record<string, import("@tanstack/react-table").FilterMeta>;
|
|
341
|
-
groupingColumnId?: string | undefined;
|
|
342
|
-
groupingValue?: unknown;
|
|
343
|
-
getIsGrouped: () => boolean;
|
|
344
|
-
getGroupingValue: (columnId: string) => unknown;
|
|
345
|
-
_groupingValuesCache: Record<string, any>;
|
|
346
|
-
getIsSelected: () => boolean;
|
|
347
|
-
getIsSomeSelected: () => boolean;
|
|
348
|
-
getIsAllSubRowsSelected: () => boolean;
|
|
349
|
-
getCanSelect: () => boolean;
|
|
350
|
-
getCanMultiSelect: () => boolean;
|
|
351
|
-
getCanSelectSubRows: () => boolean;
|
|
352
|
-
toggleSelected: (value?: boolean | undefined) => void;
|
|
353
|
-
getToggleSelectedHandler: () => (event: unknown) => void;
|
|
354
|
-
toggleExpanded: (expanded?: boolean | undefined) => void;
|
|
355
|
-
getIsExpanded: () => boolean;
|
|
356
|
-
getCanExpand: () => boolean;
|
|
357
|
-
getToggleExpandedHandler: () => () => void;
|
|
358
|
-
getAllCells: () => any[];
|
|
359
|
-
getVisibleCells: any;
|
|
360
|
-
subRows?: any[] | undefined;
|
|
361
|
-
_valuesCache: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
|
362
|
-
};
|
|
363
|
-
}[];
|
|
364
|
-
subRows?: {
|
|
365
|
-
getValue: <TValue>(columnId: string) => TValue;
|
|
366
|
-
renderValue: <TValue_1>(columnId: string) => TValue_1;
|
|
367
|
-
id: string;
|
|
368
|
-
index: number;
|
|
369
|
-
original: TData;
|
|
370
|
-
depth: number;
|
|
371
|
-
parentId?: string | undefined;
|
|
372
|
-
_uniqueValuesCache: Record<string, unknown>;
|
|
373
|
-
getUniqueValues: <TValue_2>(columnId: string) => TValue_2[];
|
|
374
|
-
getLeafRows: () => Row<TData>[];
|
|
375
|
-
originalSubRows?: TData[] | undefined;
|
|
376
|
-
_getAllCellsByColumnId: () => Record<string, import("@tanstack/react-table").Cell<TData, unknown>>;
|
|
377
|
-
getParentRow: () => Row<TData> | undefined;
|
|
378
|
-
getParentRows: () => Row<TData>[];
|
|
379
|
-
_getAllVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
380
|
-
getLeftVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
381
|
-
getCenterVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
382
|
-
getRightVisibleCells: () => import("@tanstack/react-table").Cell<TData, unknown>[];
|
|
383
|
-
columnFilters: Record<string, boolean>;
|
|
384
|
-
columnFiltersMeta: Record<string, import("@tanstack/react-table").FilterMeta>;
|
|
385
|
-
groupingColumnId?: string | undefined;
|
|
386
|
-
groupingValue?: unknown;
|
|
387
|
-
getIsGrouped: () => boolean;
|
|
388
|
-
getGroupingValue: (columnId: string) => unknown;
|
|
389
|
-
_groupingValuesCache: Record<string, any>;
|
|
390
|
-
getIsSelected: () => boolean;
|
|
391
|
-
getIsSomeSelected: () => boolean;
|
|
392
|
-
getIsAllSubRowsSelected: () => boolean;
|
|
393
|
-
getCanSelect: () => boolean;
|
|
394
|
-
getCanMultiSelect: () => boolean;
|
|
395
|
-
getCanSelectSubRows: () => boolean;
|
|
396
|
-
toggleSelected: (value?: boolean | undefined) => void;
|
|
397
|
-
getToggleSelectedHandler: () => (event: unknown) => void;
|
|
398
|
-
toggleExpanded: (expanded?: boolean | undefined) => void;
|
|
399
|
-
getIsExpanded: () => boolean;
|
|
400
|
-
getCanExpand: () => boolean;
|
|
401
|
-
getToggleExpandedHandler: () => () => void;
|
|
402
|
-
getAllCells: () => {
|
|
403
|
-
getValue: import("@tanstack/react-table").Getter<unknown>;
|
|
404
|
-
renderValue: import("@tanstack/react-table").Getter<unknown>;
|
|
405
|
-
id: string;
|
|
406
|
-
getContext: () => import("@tanstack/react-table").CellContext<TData, unknown>;
|
|
407
|
-
getIsGrouped: () => boolean;
|
|
408
|
-
getIsPlaceholder: () => boolean;
|
|
409
|
-
getIsAggregated: () => boolean;
|
|
410
|
-
column: import("./types").MRT_Column<TData>;
|
|
411
|
-
row: any;
|
|
412
|
-
}[];
|
|
413
|
-
getVisibleCells: () => {
|
|
414
|
-
getValue: import("@tanstack/react-table").Getter<unknown>;
|
|
415
|
-
renderValue: import("@tanstack/react-table").Getter<unknown>;
|
|
416
|
-
id: string;
|
|
417
|
-
getContext: () => import("@tanstack/react-table").CellContext<TData, unknown>;
|
|
418
|
-
getIsGrouped: () => boolean;
|
|
419
|
-
getIsPlaceholder: () => boolean;
|
|
420
|
-
getIsAggregated: () => boolean;
|
|
421
|
-
column: import("./types").MRT_Column<TData>;
|
|
422
|
-
row: any;
|
|
423
|
-
}[];
|
|
424
|
-
subRows?: any[] | undefined;
|
|
425
|
-
_valuesCache: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
|
426
|
-
}[] | undefined;
|
|
427
|
-
_valuesCache: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
|
428
|
-
}) => number;
|
|
11
|
+
export declare const rankGlobalFuzzy: any;
|
|
@@ -266,7 +266,7 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<ColumnD
|
|
|
266
266
|
* @example accessorKey: 'username' //simple
|
|
267
267
|
* @example accessorKey: 'name.firstName' //deep key dot notation
|
|
268
268
|
*/
|
|
269
|
-
accessorKey?: DeepKeys<TData>;
|
|
269
|
+
accessorKey?: (string & {}) | DeepKeys<TData>;
|
|
270
270
|
aggregationFn?: MRT_AggregationFn<TData> | Array<MRT_AggregationFn<TData>>;
|
|
271
271
|
/**
|
|
272
272
|
* Specify what type of column this is. Either `data`, `display`, or `group`. Defaults to `data`.
|
|
@@ -365,6 +365,7 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<ColumnD
|
|
|
365
365
|
renderColumnActionsMenuItems?: (props: {
|
|
366
366
|
closeMenu: () => void;
|
|
367
367
|
column: MRT_Column<TData>;
|
|
368
|
+
internalColumnMenuItems: ReactNode[];
|
|
368
369
|
table: MRT_TableInstance<TData>;
|
|
369
370
|
}) => ReactNode[];
|
|
370
371
|
renderColumnFilterModeMenuItems?: (props: {
|
|
@@ -426,7 +427,7 @@ export type MRT_CreateTableFeature<TData extends Record<string, any> = {}, TFeat
|
|
|
426
427
|
* See the full props list on the official docs site:
|
|
427
428
|
* @link https://www.material-react-table.com/docs/api/props
|
|
428
429
|
*/
|
|
429
|
-
export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
|
|
430
|
+
export type MaterialReactTableProps<TData extends Record<string, any> = {}> = Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> & {
|
|
430
431
|
columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
|
|
431
432
|
/**
|
|
432
433
|
* The columns to display in the table. `accessorKey`s or `accessorFn`s must match keys in the `data` prop.
|
|
@@ -681,6 +682,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> = Pr
|
|
|
681
682
|
renderColumnActionsMenuItems?: (props: {
|
|
682
683
|
column: MRT_Column<TData>;
|
|
683
684
|
closeMenu: () => void;
|
|
685
|
+
internalColumnMenuItems: ReactNode[];
|
|
684
686
|
table: MRT_TableInstance<TData>;
|
|
685
687
|
}) => ReactNode[];
|
|
686
688
|
renderColumnFilterModeMenuItems?: (props: {
|
|
@@ -743,7 +745,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> = Pr
|
|
|
743
745
|
* @deprecated Use `rowVirtualizerProps` instead
|
|
744
746
|
*/
|
|
745
747
|
virtualizerProps?: any;
|
|
746
|
-
}
|
|
748
|
+
} & {
|
|
747
749
|
columnVirtualizerInstanceRef?: MutableRefObject<Virtualizer<HTMLDivElement, HTMLTableCellElement> | null>;
|
|
748
750
|
columnVirtualizerProps?: Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>> | ((props: {
|
|
749
751
|
table: MRT_TableInstance<TData>;
|