material-react-table 1.14.0 → 1.15.1

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.
@@ -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
- rowSpan: number;
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: <TData extends Record<string, any> = {}>(rowA: {
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`.
@@ -427,7 +427,7 @@ export type MRT_CreateTableFeature<TData extends Record<string, any> = {}, TFeat
427
427
  * See the full props list on the official docs site:
428
428
  * @link https://www.material-react-table.com/docs/api/props
429
429
  */
430
- export type MaterialReactTableProps<TData extends Record<string, any> = {}> = Prettify<Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> & {
430
+ export type MaterialReactTableProps<TData extends Record<string, any> = {}> = Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> & {
431
431
  columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
432
432
  /**
433
433
  * The columns to display in the table. `accessorKey`s or `accessorFn`s must match keys in the `data` prop.
@@ -745,7 +745,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> = Pr
745
745
  * @deprecated Use `rowVirtualizerProps` instead
746
746
  */
747
747
  virtualizerProps?: any;
748
- }> & {
748
+ } & {
749
749
  columnVirtualizerInstanceRef?: MutableRefObject<Virtualizer<HTMLDivElement, HTMLTableCellElement> | null>;
750
750
  columnVirtualizerProps?: Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>> | ((props: {
751
751
  table: MRT_TableInstance<TData>;
package/dist/index.d.ts CHANGED
@@ -106,6 +106,16 @@ declare const MRT_FilterFns: {
106
106
  inNumberRange: _tanstack_react_table.FilterFn<any>;
107
107
  };
108
108
 
109
+ declare const MRT_SortingFns: {
110
+ fuzzy: <TData extends Record<string, any> = {}>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
111
+ alphanumeric: _tanstack_react_table.SortingFn<any>;
112
+ alphanumericCaseSensitive: _tanstack_react_table.SortingFn<any>;
113
+ text: _tanstack_react_table.SortingFn<any>;
114
+ textCaseSensitive: _tanstack_react_table.SortingFn<any>;
115
+ datetime: _tanstack_react_table.SortingFn<any>;
116
+ basic: _tanstack_react_table.SortingFn<any>;
117
+ };
118
+
109
119
  interface MRT_Icons {
110
120
  ArrowDownwardIcon: any;
111
121
  ArrowRightIcon: any;
@@ -377,7 +387,7 @@ type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<ColumnDef<TDat
377
387
  * @example accessorKey: 'username' //simple
378
388
  * @example accessorKey: 'name.firstName' //deep key dot notation
379
389
  */
380
- accessorKey?: DeepKeys<TData>;
390
+ accessorKey?: (string & {}) | DeepKeys<TData>;
381
391
  aggregationFn?: MRT_AggregationFn<TData> | Array<MRT_AggregationFn<TData>>;
382
392
  /**
383
393
  * Specify what type of column this is. Either `data`, `display`, or `group`. Defaults to `data`.
@@ -538,7 +548,7 @@ type MRT_CreateTableFeature<TData extends Record<string, any> = {}, TFeature = a
538
548
  * See the full props list on the official docs site:
539
549
  * @link https://www.material-react-table.com/docs/api/props
540
550
  */
541
- type MaterialReactTableProps<TData extends Record<string, any> = {}> = Prettify<Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> & {
551
+ type MaterialReactTableProps<TData extends Record<string, any> = {}> = Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> & {
542
552
  columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
543
553
  /**
544
554
  * The columns to display in the table. `accessorKey`s or `accessorFn`s must match keys in the `data` prop.
@@ -856,7 +866,7 @@ type MaterialReactTableProps<TData extends Record<string, any> = {}> = Prettify<
856
866
  * @deprecated Use `rowVirtualizerProps` instead
857
867
  */
858
868
  virtualizerProps?: any;
859
- }> & {
869
+ } & {
860
870
  columnVirtualizerInstanceRef?: MutableRefObject<Virtualizer<HTMLDivElement, HTMLTableCellElement> | null>;
861
871
  columnVirtualizerProps?: Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>> | ((props: {
862
872
  table: MRT_TableInstance<TData>;
@@ -867,16 +877,6 @@ type MaterialReactTableProps<TData extends Record<string, any> = {}> = Prettify<
867
877
  }) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>);
868
878
  };
869
879
 
870
- declare const MRT_SortingFns: {
871
- fuzzy: <TData extends Record<string, any> = {}>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
872
- alphanumeric: _tanstack_react_table.SortingFn<any>;
873
- alphanumericCaseSensitive: _tanstack_react_table.SortingFn<any>;
874
- text: _tanstack_react_table.SortingFn<any>;
875
- textCaseSensitive: _tanstack_react_table.SortingFn<any>;
876
- datetime: _tanstack_react_table.SortingFn<any>;
877
- basic: _tanstack_react_table.SortingFn<any>;
878
- };
879
-
880
880
  declare const MaterialReactTable: <TData extends Record<string, any> = {}>({ aggregationFns, autoResetExpanded, columnResizeMode, defaultColumn, defaultDisplayColumn, editingMode, enableBottomToolbar, enableColumnActions, enableColumnFilters, enableColumnOrdering, enableColumnResizing, enableDensityToggle, enableExpandAll, enableExpanding, enableFilterMatchHighlighting, enableFilters, enableFullScreenToggle, enableGlobalFilter, enableGlobalFilterRankedResults, enableGrouping, enableHiding, enableMultiRowSelection, enableMultiSort, enablePagination, enablePinning, enableRowSelection, enableSelectAll, enableSorting, enableStickyHeader, enableTableFooter, enableTableHead, enableToolbarInternalActions, enableTopToolbar, filterFns, icons, layoutMode, localization, manualFiltering, manualGrouping, manualPagination, manualSorting, positionActionsColumn, positionExpandColumn, positionGlobalFilter, positionPagination, positionToolbarAlertBanner, positionToolbarDropZone, rowNumberMode, selectAllMode, sortingFns, ...rest }: MaterialReactTableProps<TData>) => react_jsx_runtime.JSX.Element;
881
881
 
882
882
  interface Props$i<TData extends Record<string, any> = {}> {
@@ -992,4 +992,4 @@ interface Props<TData extends Record<string, any> = {}> {
992
992
  }
993
993
  declare const MRT_TopToolbar: <TData extends Record<string, any> = {}>({ table, }: Props<TData>) => react_jsx_runtime.JSX.Element;
994
994
 
995
- export { MRT_AggregationFn, MRT_AggregationFns, MRT_AggregationOption, MRT_BottomToolbar, MRT_Cell, MRT_Column, MRT_ColumnDef, MRT_CopyButton, MRT_CreateTableFeature, MRT_DefinedColumnDef, MRT_DensityState, MRT_DisplayColumnIds, MRT_EditActionButtons, MRT_ExpandButton, MRT_FilterFn, MRT_FilterFns, MRT_FilterFnsState, MRT_FilterOption, MRT_FilterOptionMenu, MRT_FullScreenToggleButton, MRT_GlobalFilterTextField, MRT_GrabHandleButton, MRT_Header, MRT_HeaderGroup, MRT_Icons, MRT_InternalFilterOption, MRT_Localization, MRT_Row, MRT_RowModel, MRT_ShowHideColumnsButton, MRT_SortingFn, MRT_SortingFns, MRT_SortingOption, MRT_TableHeadCellFilterContainer, MRT_TableInstance, MRT_TablePagination, MRT_TableState, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, MaterialReactTable, MaterialReactTableProps, MaterialReactTable as default };
995
+ export { type MRT_AggregationFn, MRT_AggregationFns, type MRT_AggregationOption, MRT_BottomToolbar, type MRT_Cell, type MRT_Column, type MRT_ColumnDef, MRT_CopyButton, type MRT_CreateTableFeature, type MRT_DefinedColumnDef, type MRT_DensityState, type MRT_DisplayColumnIds, MRT_EditActionButtons, MRT_ExpandButton, type MRT_FilterFn, MRT_FilterFns, type MRT_FilterFnsState, type MRT_FilterOption, MRT_FilterOptionMenu, MRT_FullScreenToggleButton, MRT_GlobalFilterTextField, MRT_GrabHandleButton, type MRT_Header, type MRT_HeaderGroup, type MRT_Icons, type MRT_InternalFilterOption, type MRT_Localization, type MRT_Row, type MRT_RowModel, MRT_ShowHideColumnsButton, type MRT_SortingFn, MRT_SortingFns, type MRT_SortingOption, MRT_TableHeadCellFilterContainer, type MRT_TableInstance, MRT_TablePagination, type MRT_TableState, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, MaterialReactTable, type MaterialReactTableProps, MaterialReactTable as default };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.14.0",
2
+ "version": "1.15.1",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
@@ -60,48 +60,48 @@
60
60
  "storybook:dev": "storybook dev -p 6006"
61
61
  },
62
62
  "devDependencies": {
63
- "@babel/core": "^7.22.5",
64
- "@babel/preset-react": "^7.22.5",
63
+ "@babel/core": "^7.23.2",
64
+ "@babel/preset-react": "^7.22.15",
65
65
  "@emotion/react": "^11.11.1",
66
66
  "@emotion/styled": "^11.11.0",
67
- "@faker-js/faker": "^8.0.2",
68
- "@mui/icons-material": "^5.11.16",
69
- "@mui/material": "^5.13.4",
70
- "@rollup/plugin-babel": "^6.0.3",
71
- "@rollup/plugin-node-resolve": "^15.1.0",
72
- "@rollup/plugin-typescript": "^11.1.1",
73
- "@size-limit/preset-small-lib": "^8.2.4",
74
- "@storybook/addon-a11y": "^7.0.20",
75
- "@storybook/addon-essentials": "^7.0.20",
76
- "@storybook/addon-interactions": "^7.0.20",
77
- "@storybook/addon-links": "^7.0.20",
78
- "@storybook/addon-storysource": "^7.0.20",
79
- "@storybook/blocks": "^7.0.20",
80
- "@storybook/react": "^7.0.20",
81
- "@storybook/react-vite": "^7.0.20",
82
- "@storybook/testing-library": "^0.1.0",
83
- "@types/node": "^20.3.0",
84
- "@types/react": "^18.2.11",
85
- "@types/react-dom": "^18.2.4",
86
- "@typescript-eslint/eslint-plugin": "^5.59.9",
87
- "@typescript-eslint/parser": "^5.59.9",
88
- "@vitejs/plugin-react": "^4.0.0",
89
- "eslint": "^8.42.0",
67
+ "@faker-js/faker": "^8.1.0",
68
+ "@mui/icons-material": "^5.14.13",
69
+ "@mui/material": "^5.14.13",
70
+ "@rollup/plugin-babel": "^6.0.4",
71
+ "@rollup/plugin-node-resolve": "^15.2.3",
72
+ "@rollup/plugin-typescript": "^11.1.5",
73
+ "@size-limit/preset-small-lib": "^9.0.0",
74
+ "@storybook/addon-a11y": "^7.4.6",
75
+ "@storybook/addon-essentials": "^7.4.6",
76
+ "@storybook/addon-interactions": "^7.4.6",
77
+ "@storybook/addon-links": "^7.4.6",
78
+ "@storybook/addon-storysource": "^7.4.6",
79
+ "@storybook/blocks": "^7.4.6",
80
+ "@storybook/react": "^7.4.6",
81
+ "@storybook/react-vite": "^7.4.6",
82
+ "@storybook/testing-library": "^0.2.2",
83
+ "@types/node": "^20.8.6",
84
+ "@types/react": "^18.2.28",
85
+ "@types/react-dom": "^18.2.13",
86
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
87
+ "@typescript-eslint/parser": "^6.7.5",
88
+ "@vitejs/plugin-react": "^4.1.0",
89
+ "eslint": "^8.51.0",
90
90
  "eslint-plugin-mui-path-imports": "^0.0.15",
91
91
  "prop-types": "^15.8.1",
92
92
  "react": "^18.2.0",
93
93
  "react-dom": "^18.2.0",
94
94
  "react-is": "^18.2.0",
95
95
  "rollup": "^2.79.1",
96
- "rollup-plugin-copy": "^3.4.0",
97
- "rollup-plugin-dts": "^5.3.0",
96
+ "rollup-plugin-copy": "^3.5.0",
97
+ "rollup-plugin-dts": "^6.1.0",
98
98
  "rollup-plugin-peer-deps-external": "^2.2.4",
99
- "size-limit": "^8.2.4",
100
- "storybook": "^7.0.20",
101
- "storybook-dark-mode": "^3.0.0",
102
- "tslib": "^2.5.3",
103
- "typescript": "^5.1.3",
104
- "vite": "^4.3.9"
99
+ "size-limit": "^9.0.0",
100
+ "storybook": "^7.4.6",
101
+ "storybook-dark-mode": "^3.0.1",
102
+ "tslib": "^2.6.2",
103
+ "typescript": "^5.2.2",
104
+ "vite": "^4.4.11"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@emotion/react": ">=11",
@@ -113,8 +113,8 @@
113
113
  },
114
114
  "dependencies": {
115
115
  "@tanstack/match-sorter-utils": "8.8.4",
116
- "@tanstack/react-table": "8.9.2",
117
- "@tanstack/react-virtual": "3.0.0-beta.54",
116
+ "@tanstack/react-table": "8.10.7",
117
+ "@tanstack/react-virtual": "3.0.0-beta.65",
118
118
  "highlight-words": "1.2.2"
119
119
  }
120
120
  }