@dooherceg/material-react-table 3.2.19 → 4.0.0-beta.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/LICENSE +20 -20
- package/README.md +215 -215
- package/dist/index.d.ts +158 -426
- package/dist/index.esm.js +21336 -8182
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +21332 -8199
- package/dist/index.js.map +1 -1
- package/locales/de/index.esm.js +0 -1
- package/locales/de/index.js +0 -1
- package/locales/en/index.esm.js +0 -1
- package/locales/en/index.js +0 -1
- package/locales/fr/index.esm.js +0 -1
- package/locales/fr/index.js +0 -1
- package/locales/hr/index.esm.js +0 -1
- package/locales/hr/index.js +0 -1
- package/locales/nl/index.esm.js +0 -1
- package/locales/nl/index.js +0 -1
- package/package.json +24 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Row, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowSelectionState, SortingState, Updater, VisibilityState, AccessorFn, DeepKeys, DeepValue, Table, TableState, Column, Header, HeaderGroup, Cell, AggregationFn, SortingFn, FilterFn, TableOptions, OnChangeFn, ColumnDef, RowData, Renderable, RowPinningPosition } from '@tanstack/react-table';
|
|
1
|
+
import { ColumnOrderState, ColumnPinningState, columnResizingState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowSelectionState, SortingState, Updater, ColumnVisibilityState, AccessorFn, DeepKeys, DeepValue, Table, TableState, Column, Header, HeaderGroup, Row, Cell, AggregationFnDef, SortFn, TableOptions, OnChangeFn, ColumnDef, TableFeatures, RowData, Renderable, RowPinningPosition } from '@tanstack/react-table';
|
|
3
2
|
import * as react from 'react';
|
|
4
3
|
import react__default, { ReactNode, RefObject, Dispatch, SetStateAction, ChangeEvent, MouseEvent, JSX, Ref, ReactElement, DragEventHandler, HTMLAttributes, FormEventHandler } from 'react';
|
|
5
4
|
import { RegisterOptions, UseFormReturn } from 'react-hook-form';
|
|
6
5
|
import { VirtualItem, VirtualizerOptions, Virtualizer } from '@tanstack/react-virtual';
|
|
6
|
+
import { ReadonlyStore } from '@tanstack/store';
|
|
7
7
|
import { AlertProps } from '@mui/material/Alert';
|
|
8
8
|
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
9
9
|
import { BoxProps } from '@mui/material/Box';
|
|
@@ -11,7 +11,6 @@ import { ButtonProps } from '@mui/material/Button';
|
|
|
11
11
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
12
12
|
import { ChipProps } from '@mui/material/Chip';
|
|
13
13
|
import { CircularProgressProps } from '@mui/material/CircularProgress';
|
|
14
|
-
import { DialogProps } from '@mui/material/Dialog';
|
|
15
14
|
import { IconButtonProps } from '@mui/material/IconButton';
|
|
16
15
|
import { LinearProgressProps } from '@mui/material/LinearProgress';
|
|
17
16
|
import { ModalProps } from '@mui/material/Modal';
|
|
@@ -32,7 +31,7 @@ import { TableHeadProps } from '@mui/material/TableHead';
|
|
|
32
31
|
import { TableRowProps } from '@mui/material/TableRow';
|
|
33
32
|
import { TextFieldProps } from '@mui/material/TextField';
|
|
34
33
|
import { DatePickerProps, DateTimePickerProps, TimePickerProps } from '@mui/x-date-pickers';
|
|
35
|
-
import
|
|
34
|
+
import * as _tanstack_table_core from '@tanstack/table-core';
|
|
36
35
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
37
36
|
import * as _mui_material from '@mui/material';
|
|
38
37
|
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
@@ -42,94 +41,27 @@ import { MenuItemProps } from '@mui/material/MenuItem';
|
|
|
42
41
|
import { MenuProps } from '@mui/material/Menu';
|
|
43
42
|
|
|
44
43
|
declare const MRT_AggregationFns: {
|
|
45
|
-
sum:
|
|
46
|
-
min:
|
|
47
|
-
max:
|
|
48
|
-
extent:
|
|
49
|
-
mean:
|
|
50
|
-
median:
|
|
51
|
-
unique:
|
|
52
|
-
uniqueCount:
|
|
53
|
-
count:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
declare const MRT_FilterFns: {
|
|
57
|
-
between: {
|
|
58
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
|
|
59
|
-
autoRemove(val: unknown): boolean;
|
|
60
|
-
};
|
|
61
|
-
betweenInclusive: {
|
|
62
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
|
|
63
|
-
autoRemove(val: unknown): boolean;
|
|
64
|
-
};
|
|
65
|
-
contains: {
|
|
66
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
67
|
-
autoRemove(val: unknown): boolean;
|
|
68
|
-
};
|
|
69
|
-
empty: {
|
|
70
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, _filterValue: number | string): boolean;
|
|
71
|
-
autoRemove(val: unknown): boolean;
|
|
72
|
-
};
|
|
73
|
-
endsWith: {
|
|
74
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
75
|
-
autoRemove(val: unknown): boolean;
|
|
76
|
-
};
|
|
77
|
-
equals: {
|
|
78
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
79
|
-
autoRemove(val: unknown): boolean;
|
|
80
|
-
};
|
|
81
|
-
fuzzy: {
|
|
82
|
-
<TData extends MRT_RowData>(row: Row<TData>, columnId: string, filterValue: number | string, addMeta: (item: RankingInfo) => void): boolean;
|
|
83
|
-
autoRemove(val: unknown): boolean;
|
|
84
|
-
};
|
|
85
|
-
greaterThan: {
|
|
86
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
87
|
-
autoRemove(val: unknown): boolean;
|
|
88
|
-
};
|
|
89
|
-
greaterThanOrEqualTo: {
|
|
90
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
91
|
-
autoRemove(val: unknown): boolean;
|
|
92
|
-
};
|
|
93
|
-
lessThan: {
|
|
94
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
95
|
-
autoRemove(val: unknown): boolean;
|
|
96
|
-
};
|
|
97
|
-
lessThanOrEqualTo: {
|
|
98
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
99
|
-
autoRemove(val: unknown): boolean;
|
|
100
|
-
};
|
|
101
|
-
notEmpty: {
|
|
102
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, _filterValue: number | string): boolean;
|
|
103
|
-
autoRemove(val: unknown): boolean;
|
|
104
|
-
};
|
|
105
|
-
notEquals: {
|
|
106
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
107
|
-
autoRemove(val: unknown): boolean;
|
|
108
|
-
};
|
|
109
|
-
startsWith: {
|
|
110
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
111
|
-
autoRemove(val: unknown): boolean;
|
|
112
|
-
};
|
|
113
|
-
includesString: _tanstack_react_table.FilterFn<any>;
|
|
114
|
-
includesStringSensitive: _tanstack_react_table.FilterFn<any>;
|
|
115
|
-
equalsString: _tanstack_react_table.FilterFn<any>;
|
|
116
|
-
arrIncludes: _tanstack_react_table.FilterFn<any>;
|
|
117
|
-
arrIncludesAll: _tanstack_react_table.FilterFn<any>;
|
|
118
|
-
arrIncludesSome: _tanstack_react_table.FilterFn<any>;
|
|
119
|
-
weakEquals: _tanstack_react_table.FilterFn<any>;
|
|
120
|
-
inNumberRange: _tanstack_react_table.FilterFn<any>;
|
|
44
|
+
sum: _tanstack_table_core.AggregationFnDef<any, any, unknown, number>;
|
|
45
|
+
min: _tanstack_table_core.AggregationFnDef<any, any, unknown, (number | Date) | undefined>;
|
|
46
|
+
max: _tanstack_table_core.AggregationFnDef<any, any, unknown, (number | Date) | undefined>;
|
|
47
|
+
extent: _tanstack_table_core.AggregationFnDef<any, any, unknown, [(number | Date) | undefined, (number | Date) | undefined]>;
|
|
48
|
+
mean: _tanstack_table_core.AggregationFnDef<any, any, unknown, number | undefined>;
|
|
49
|
+
median: _tanstack_table_core.AggregationFnDef<any, any, unknown, number | undefined>;
|
|
50
|
+
unique: _tanstack_table_core.AggregationFnDef<any, any, unknown, unknown[]>;
|
|
51
|
+
uniqueCount: _tanstack_table_core.AggregationFnDef<any, any, unknown, number>;
|
|
52
|
+
count: _tanstack_table_core.AggregationFnDef<any, any, unknown, number>;
|
|
53
|
+
first: _tanstack_table_core.AggregationFnDef<any, any, unknown, unknown>;
|
|
54
|
+
last: _tanstack_table_core.AggregationFnDef<any, any, unknown, unknown>;
|
|
121
55
|
};
|
|
122
56
|
|
|
123
57
|
declare const MRT_SortingFns: {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
basic: _tanstack_react_table.SortingFn<any>;
|
|
58
|
+
alphanumeric: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
59
|
+
alphanumericCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
60
|
+
basic: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
61
|
+
datetime: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
62
|
+
text: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
63
|
+
textCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
131
64
|
};
|
|
132
|
-
declare const rankGlobalFuzzy: <TData extends MRT_RowData>(rowA: MRT_Row<TData>, rowB: MRT_Row<TData>) => number;
|
|
133
65
|
|
|
134
66
|
declare const MRT_Default_Icons: {
|
|
135
67
|
readonly AddIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
|
@@ -240,6 +172,65 @@ declare const MRT_Default_Icons: {
|
|
|
240
172
|
};
|
|
241
173
|
type MRT_Icons = Record<keyof typeof MRT_Default_Icons, react__default.ComponentType<SvgIconProps>>;
|
|
242
174
|
|
|
175
|
+
/**
|
|
176
|
+
* MRT always ships the same fixed set of TanStack Table v9 features — every
|
|
177
|
+
* MRT_* type in types.ts bakes this in as TFeatures so the public API keeps a
|
|
178
|
+
* single TData generic instead of threading TFeatures through ~100 files.
|
|
179
|
+
*
|
|
180
|
+
* `globalFilteringFeature`, `columnFacetingFeature`, and `columnFilteringFeature`
|
|
181
|
+
* are deliberately not registered: global filter is unused, faceted values are
|
|
182
|
+
* unused (dropdown filter options are always supplied explicitly), and
|
|
183
|
+
* per-column filtering is unused — filtering goes through pinned/quick and
|
|
184
|
+
* advanced filters instead (the per-column filter input never had a working
|
|
185
|
+
* render path in this fork). See TABLE_FEATURES_INVENTORY.md for the full list
|
|
186
|
+
* of removed features and TANSTACK_TABLE_V9_MIGRATION_PLAN.md Faza 1 for the
|
|
187
|
+
* reasoning. The row-model pipeline (core -> grouping -> sorting -> expanding
|
|
188
|
+
* -> pagination) gracefully skips the missing filtering stage on its own —
|
|
189
|
+
* table_getFilteredRowModel falls back to getPreFilteredRowModel (the core
|
|
190
|
+
* row model) whenever no filteredRowModel factory is registered.
|
|
191
|
+
*/
|
|
192
|
+
declare const MRT_tableFeatures: {
|
|
193
|
+
rowSortingFeature: _tanstack_table_core.TableFeature;
|
|
194
|
+
columnGroupingFeature: _tanstack_table_core.TableFeature;
|
|
195
|
+
rowAggregationFeature: _tanstack_table_core.TableFeature;
|
|
196
|
+
rowExpandingFeature: _tanstack_table_core.TableFeature;
|
|
197
|
+
rowPaginationFeature: _tanstack_table_core.TableFeature;
|
|
198
|
+
rowSelectionFeature: _tanstack_table_core.TableFeature;
|
|
199
|
+
rowPinningFeature: _tanstack_table_core.TableFeature;
|
|
200
|
+
columnPinningFeature: _tanstack_table_core.TableFeature;
|
|
201
|
+
columnVisibilityFeature: _tanstack_table_core.TableFeature;
|
|
202
|
+
columnOrderingFeature: _tanstack_table_core.TableFeature;
|
|
203
|
+
columnSizingFeature: _tanstack_table_core.TableFeature;
|
|
204
|
+
columnResizingFeature: _tanstack_table_core.TableFeature;
|
|
205
|
+
mrtUiFeature: _tanstack_table_core.TableFeature;
|
|
206
|
+
sortedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
|
|
207
|
+
paginatedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
|
|
208
|
+
expandedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
|
|
209
|
+
groupedRowModel: (table: _tanstack_table_core.Table<any, any>) => () => _tanstack_table_core.RowModel<any, any>;
|
|
210
|
+
sortFns: {
|
|
211
|
+
alphanumeric: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
212
|
+
alphanumericCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
213
|
+
basic: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
214
|
+
datetime: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
215
|
+
text: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
216
|
+
textCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
217
|
+
};
|
|
218
|
+
aggregationFns: {
|
|
219
|
+
sum: _tanstack_table_core.AggregationFnDef<any, any, unknown, number>;
|
|
220
|
+
min: _tanstack_table_core.AggregationFnDef<any, any, unknown, (number | Date) | undefined>;
|
|
221
|
+
max: _tanstack_table_core.AggregationFnDef<any, any, unknown, (number | Date) | undefined>;
|
|
222
|
+
extent: _tanstack_table_core.AggregationFnDef<any, any, unknown, [(number | Date) | undefined, (number | Date) | undefined]>;
|
|
223
|
+
mean: _tanstack_table_core.AggregationFnDef<any, any, unknown, number | undefined>;
|
|
224
|
+
median: _tanstack_table_core.AggregationFnDef<any, any, unknown, number | undefined>;
|
|
225
|
+
unique: _tanstack_table_core.AggregationFnDef<any, any, unknown, unknown[]>;
|
|
226
|
+
uniqueCount: _tanstack_table_core.AggregationFnDef<any, any, unknown, number>;
|
|
227
|
+
count: _tanstack_table_core.AggregationFnDef<any, any, unknown, number>;
|
|
228
|
+
first: _tanstack_table_core.AggregationFnDef<any, any, unknown, unknown>;
|
|
229
|
+
last: _tanstack_table_core.AggregationFnDef<any, any, unknown, unknown>;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
type MRT_TableFeatures = typeof MRT_tableFeatures;
|
|
233
|
+
|
|
243
234
|
interface ActionToolbarRenderContext<TData extends MRT_RowData> {
|
|
244
235
|
table: MRT_TableInstance<TData>;
|
|
245
236
|
}
|
|
@@ -322,12 +313,6 @@ interface CreateEditActionOptions<TData extends MRT_RowData> extends Partial<Omi
|
|
|
322
313
|
renderRow?: (context: EditActionRowRenderContext<TData>) => ReactNode;
|
|
323
314
|
}
|
|
324
315
|
|
|
325
|
-
interface MRT_SliceStore<T> {
|
|
326
|
-
get: () => T;
|
|
327
|
-
set: (next: T | ((prev: T) => T)) => void;
|
|
328
|
-
subscribe: (listener: () => void) => () => void;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
316
|
type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);
|
|
332
317
|
type Prettify<T> = {
|
|
333
318
|
[K in keyof T]: T[K];
|
|
@@ -343,13 +328,11 @@ type DropdownOption = {
|
|
|
343
328
|
value: unknown;
|
|
344
329
|
} | string;
|
|
345
330
|
type MRT_DensityState = 'comfortable' | 'compact' | 'spacious';
|
|
346
|
-
type MRT_ColumnFilterFnsState = Record<string, MRT_FilterOption>;
|
|
347
331
|
type MRT_FiltersLogicOperator = 'and' | 'or';
|
|
348
332
|
type MRT_RowData = Record<string, unknown>;
|
|
349
|
-
type MRT_ColumnFiltersState = ColumnFiltersState;
|
|
350
333
|
type MRT_ColumnOrderState = ColumnOrderState;
|
|
351
334
|
type MRT_ColumnPinningState = ColumnPinningState;
|
|
352
|
-
type
|
|
335
|
+
type MRT_ColumnResizingState = columnResizingState;
|
|
353
336
|
type MRT_ColumnSizingState = ColumnSizingState;
|
|
354
337
|
type MRT_ExpandedState = ExpandedState;
|
|
355
338
|
type MRT_GroupingState = GroupingState;
|
|
@@ -358,7 +341,7 @@ type MRT_RowSelectionState = RowSelectionState;
|
|
|
358
341
|
type MRT_SortingState = SortingState;
|
|
359
342
|
type MRT_Updater<T> = Updater<T>;
|
|
360
343
|
type MRT_VirtualItem = VirtualItem;
|
|
361
|
-
type MRT_VisibilityState =
|
|
344
|
+
type MRT_VisibilityState = ColumnVisibilityState;
|
|
362
345
|
type MRT_VirtualizerOptions<TScrollElement extends Element | Window = Element | Window, TItemElement extends Element = Element> = VirtualizerOptions<TScrollElement, TItemElement>;
|
|
363
346
|
type MRT_ColumnVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement> = Virtualizer<TScrollElement, TItemElement> & {
|
|
364
347
|
virtualColumns: MRT_VirtualItem[];
|
|
@@ -413,7 +396,6 @@ interface MRT_Localization {
|
|
|
413
396
|
filterEqualsString: string;
|
|
414
397
|
filterIs: string;
|
|
415
398
|
filterNot: string;
|
|
416
|
-
filterFuzzy: string;
|
|
417
399
|
filterBefore: string;
|
|
418
400
|
filterAfter: string;
|
|
419
401
|
filterRange: string;
|
|
@@ -560,30 +542,8 @@ interface MRT_RowModel<TData extends MRT_RowData> {
|
|
|
560
542
|
};
|
|
561
543
|
}
|
|
562
544
|
type MRT_RowManipulationInput<TData extends MRT_RowData> = TData | TData[];
|
|
563
|
-
type MRT_TableInstance<TData extends MRT_RowData> = Omit<Table<TData>, 'getAllColumns' | 'getAllFlatColumns' | 'getAllLeafColumns' | 'getBottomRows' | 'getCenterLeafColumns' | 'getCenterRows' | 'getColumn' | 'getExpandedRowModel' | 'getFlatHeaders' | 'getFooterGroups' | 'getHeaderGroups' | 'getLeafHeaders' | '
|
|
564
|
-
|
|
565
|
-
draggingColumn: MRT_Column<TData> | null;
|
|
566
|
-
draggingRow: MRT_Row<TData> | null;
|
|
567
|
-
}>;
|
|
568
|
-
_hoverStore: MRT_SliceStore<{
|
|
569
|
-
hoveredColumn: Partial<MRT_Column<TData>> | null;
|
|
570
|
-
hoveredRow: Partial<MRT_Row<TData>> | null;
|
|
571
|
-
}>;
|
|
572
|
-
_uiStore: MRT_SliceStore<{
|
|
573
|
-
actionCell: MRT_Cell<TData> | null;
|
|
574
|
-
columnSizingInfo: MRT_ColumnSizingInfoState;
|
|
575
|
-
density: MRT_DensityState;
|
|
576
|
-
editingCell: MRT_Cell<TData> | null;
|
|
577
|
-
editingRow: MRT_Row<TData> | null;
|
|
578
|
-
newEntryModal: MRT_NewEntryModalState;
|
|
579
|
-
rowReorderingSelection: MRT_RowReorderingSelectionState;
|
|
580
|
-
savedFilters: MRT_SavedFilters;
|
|
581
|
-
showAlertBanner: boolean;
|
|
582
|
-
showColumnFilters: boolean;
|
|
583
|
-
showGlobalFilter: boolean;
|
|
584
|
-
showProgressBars: boolean;
|
|
585
|
-
showToolbarDropZone: boolean;
|
|
586
|
-
}>;
|
|
545
|
+
type MRT_TableInstance<TData extends MRT_RowData> = Omit<Table<MRT_TableFeatures, TData>, 'getAllColumns' | 'getAllFlatColumns' | 'getAllLeafColumns' | 'getBottomRows' | 'getCenterLeafColumns' | 'getCenterRows' | 'getColumn' | 'getExpandedRowModel' | 'getFlatHeaders' | 'getFooterGroups' | 'getHeaderGroups' | 'getLeafHeaders' | 'getStartLeafColumns' | 'getPaginatedRowModel' | 'getPreFilteredRowModel' | 'getPrePaginatedRowModel' | 'getEndLeafColumns' | 'getRowModel' | 'getSelectedRowModel' | 'getState' | 'getTopRows' | 'options' | 'store'> & {
|
|
546
|
+
store: ReadonlyStore<MRT_TableState<TData>>;
|
|
587
547
|
getAllColumns: () => MRT_Column<TData>[];
|
|
588
548
|
getAllFlatColumns: () => MRT_Column<TData>[];
|
|
589
549
|
getAllLeafColumns: () => MRT_Column<TData>[];
|
|
@@ -596,11 +556,11 @@ type MRT_TableInstance<TData extends MRT_RowData> = Omit<Table<TData>, 'getAllCo
|
|
|
596
556
|
getFooterGroups: () => MRT_HeaderGroup<TData>[];
|
|
597
557
|
getHeaderGroups: () => MRT_HeaderGroup<TData>[];
|
|
598
558
|
getLeafHeaders: () => MRT_Header<TData>[];
|
|
599
|
-
|
|
600
|
-
|
|
559
|
+
getStartLeafColumns: () => MRT_Column<TData>[];
|
|
560
|
+
getPaginatedRowModel: () => MRT_RowModel<TData>;
|
|
601
561
|
getPreFilteredRowModel: () => MRT_RowModel<TData>;
|
|
602
|
-
|
|
603
|
-
|
|
562
|
+
getPrePaginatedRowModel: () => MRT_RowModel<TData>;
|
|
563
|
+
getEndLeafColumns: () => MRT_Column<TData>[];
|
|
604
564
|
getRowModel: () => MRT_RowModel<TData>;
|
|
605
565
|
getSelectedRowModel: () => MRT_RowModel<TData>;
|
|
606
566
|
getState: () => MRT_TableState<TData>;
|
|
@@ -610,7 +570,6 @@ type MRT_TableInstance<TData extends MRT_RowData> = Omit<Table<TData>, 'getAllCo
|
|
|
610
570
|
actionCellRef: RefObject<HTMLTableCellElement | null>;
|
|
611
571
|
bottomToolbarRef: RefObject<HTMLDivElement | null>;
|
|
612
572
|
editInputRefs: RefObject<Record<string, HTMLInputElement> | null>;
|
|
613
|
-
filterInputRefs: RefObject<Record<string, HTMLInputElement> | null>;
|
|
614
573
|
allSelectableRowIdsRef: RefObject<string[]>;
|
|
615
574
|
isResizingRef: RefObject<false | string>;
|
|
616
575
|
lastSelectedRowId: RefObject<null | string>;
|
|
@@ -625,21 +584,14 @@ type MRT_TableInstance<TData extends MRT_RowData> = Omit<Table<TData>, 'getAllCo
|
|
|
625
584
|
topToolbarRef: RefObject<HTMLDivElement | null>;
|
|
626
585
|
};
|
|
627
586
|
setActionCell: Dispatch<SetStateAction<MRT_Cell<TData> | null>>;
|
|
628
|
-
setColumnFilterFns: Dispatch<SetStateAction<MRT_ColumnFilterFnsState>>;
|
|
629
|
-
setCreatingRow: Dispatch<SetStateAction<MRT_Row<TData> | null | true>>;
|
|
630
587
|
setDensity: Dispatch<SetStateAction<MRT_DensityState>>;
|
|
631
588
|
setDraggingColumn: Dispatch<SetStateAction<MRT_Column<TData> | null>>;
|
|
632
589
|
setDraggingRow: Dispatch<SetStateAction<MRT_Row<TData> | null>>;
|
|
633
|
-
setEditingCell: Dispatch<SetStateAction<MRT_Cell<TData> | null>>;
|
|
634
|
-
setEditingRow: Dispatch<SetStateAction<MRT_Row<TData> | null>>;
|
|
635
590
|
setFilters: Dispatch<SetStateAction<MRT_FiltersState>>;
|
|
636
|
-
setGlobalFilterFn: Dispatch<SetStateAction<MRT_FilterOption>>;
|
|
637
591
|
setHoveredColumn: Dispatch<SetStateAction<Partial<MRT_Column<TData>> | null>>;
|
|
638
592
|
setHoveredRow: Dispatch<SetStateAction<Partial<MRT_Row<TData>> | null>>;
|
|
639
593
|
setSavedFilters: Dispatch<SetStateAction<MRT_SavedFilters>>;
|
|
640
594
|
setShowAlertBanner: Dispatch<SetStateAction<boolean>>;
|
|
641
|
-
setShowColumnFilters: Dispatch<SetStateAction<boolean>>;
|
|
642
|
-
setShowGlobalFilter: Dispatch<SetStateAction<boolean>>;
|
|
643
595
|
setShowProgressBars: Dispatch<SetStateAction<boolean>>;
|
|
644
596
|
setShowToolbarDropZone: Dispatch<SetStateAction<boolean>>;
|
|
645
597
|
setShowAdvancedFilters: Dispatch<SetStateAction<boolean>>;
|
|
@@ -647,9 +599,13 @@ type MRT_TableInstance<TData extends MRT_RowData> = Omit<Table<TData>, 'getAllCo
|
|
|
647
599
|
setNewEntryModal: Dispatch<SetStateAction<MRT_NewEntryModalState>>;
|
|
648
600
|
setRowReorderingSelection: Dispatch<SetStateAction<MRT_RowReorderingSelectionState>>;
|
|
649
601
|
addRow: (rows: MRT_RowManipulationInput<TData>) => void;
|
|
650
|
-
updateRow: (rows: MRT_RowManipulationInput<TData>
|
|
602
|
+
updateRow: (rows: MRT_RowManipulationInput<Partial<TData> & {
|
|
603
|
+
id: string;
|
|
604
|
+
}>) => void;
|
|
651
605
|
setRows: (rows: MRT_RowManipulationInput<TData>) => void;
|
|
652
|
-
upsertRow: (rows: MRT_RowManipulationInput<TData>
|
|
606
|
+
upsertRow: (rows: MRT_RowManipulationInput<Partial<TData> & {
|
|
607
|
+
id: string;
|
|
608
|
+
}>) => void;
|
|
653
609
|
removeRow: (rows: string | string[]) => void;
|
|
654
610
|
refetch?: () => void;
|
|
655
611
|
};
|
|
@@ -659,27 +615,20 @@ type MRT_DefinedTableOptions<TData extends MRT_RowData> = Omit<MRT_TableOptions<
|
|
|
659
615
|
mrtTheme: Required<MRT_Theme>;
|
|
660
616
|
};
|
|
661
617
|
type MRT_StatefulTableOptions<TData extends MRT_RowData> = MRT_DefinedTableOptions<TData> & {
|
|
662
|
-
state: Pick<MRT_TableState<TData>, '
|
|
618
|
+
state: Pick<MRT_TableState<TData>, 'columnOrder' | 'columnResizing' | 'density' | 'draggingColumn' | 'draggingRow' | 'filters' | 'grouping' | 'hoveredColumn' | 'hoveredRow' | 'pagination' | 'showAlertBanner' | 'showAdvancedFilters' | 'showToolbarDropZone' | 'newEntryModal' | 'rowReorderingSelection'>;
|
|
663
619
|
};
|
|
664
|
-
interface MRT_TableState<TData extends MRT_RowData> extends TableState {
|
|
620
|
+
interface MRT_TableState<TData extends MRT_RowData> extends TableState<MRT_TableFeatures> {
|
|
665
621
|
actionCell?: MRT_Cell<TData> | null;
|
|
666
|
-
columnFilterFns: MRT_ColumnFilterFnsState;
|
|
667
|
-
creatingRow: MRT_Row<TData> | null;
|
|
668
622
|
density: MRT_DensityState;
|
|
669
623
|
draggingColumn: MRT_Column<TData> | null;
|
|
670
624
|
draggingRow: MRT_Row<TData> | null;
|
|
671
|
-
editingCell: MRT_Cell<TData> | null;
|
|
672
|
-
editingRow: MRT_Row<TData> | null;
|
|
673
625
|
filters: MRT_FiltersState;
|
|
674
|
-
globalFilterFn: MRT_FilterOption;
|
|
675
626
|
hoveredColumn: Partial<MRT_Column<TData>> | null;
|
|
676
627
|
hoveredRow: Partial<MRT_Row<TData>> | null;
|
|
677
628
|
isLoading: boolean;
|
|
678
629
|
isSaving: boolean;
|
|
679
630
|
savedFilters: MRT_SavedFilters;
|
|
680
631
|
showAlertBanner: boolean;
|
|
681
|
-
showColumnFilters: boolean;
|
|
682
|
-
showGlobalFilter: boolean;
|
|
683
632
|
showAdvancedFilters: boolean;
|
|
684
633
|
showLoadingOverlay: boolean;
|
|
685
634
|
showProgressBars: boolean;
|
|
@@ -689,7 +638,7 @@ interface MRT_TableState<TData extends MRT_RowData> extends TableState {
|
|
|
689
638
|
newEntryModal: MRT_NewEntryModalState;
|
|
690
639
|
rowReorderingSelection: MRT_RowReorderingSelectionState;
|
|
691
640
|
}
|
|
692
|
-
interface MRT_ColumnDefBase<TData extends MRT_RowData, TValue = unknown> extends Omit<ColumnDef<TData, TValue>, 'accessorKey' | 'aggregatedCell' | 'aggregationFn' | 'cell' | 'columns' | '
|
|
641
|
+
interface MRT_ColumnDefBase<TData extends MRT_RowData, TValue = unknown> extends Omit<ColumnDef<MRT_TableFeatures, TData, TValue>, 'accessorKey' | 'aggregatedCell' | 'aggregationFn' | 'cell' | 'columns' | 'footer' | 'header' | 'id' | 'sortFn'> {
|
|
693
642
|
/**
|
|
694
643
|
* Either an `accessorKey` or a combination of an `accessorFn` and `id` are required for a data column definition.
|
|
695
644
|
* Specify which key in the row this column should use to access the correct data.
|
|
@@ -727,37 +676,17 @@ interface MRT_ColumnDefBase<TData extends MRT_RowData, TValue = unknown> extends
|
|
|
727
676
|
* @example columnDefType: 'display'
|
|
728
677
|
*/
|
|
729
678
|
columnDefType?: 'data' | 'display' | 'group';
|
|
730
|
-
columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
|
|
731
679
|
columns?: MRT_ColumnDef<TData, TValue>[];
|
|
732
|
-
Edit?: (props: {
|
|
733
|
-
cell: MRT_Cell<TData, TValue>;
|
|
734
|
-
column: MRT_Column<TData, TValue>;
|
|
735
|
-
row: MRT_Row<TData>;
|
|
736
|
-
table: MRT_TableInstance<TData>;
|
|
737
|
-
}) => ReactNode;
|
|
738
|
-
editSelectOptions?: ((props: {
|
|
739
|
-
cell: MRT_Cell<TData, TValue>;
|
|
740
|
-
column: MRT_Column<TData>;
|
|
741
|
-
row: MRT_Row<TData>;
|
|
742
|
-
table: MRT_TableInstance<TData>;
|
|
743
|
-
}) => DropdownOption[]) | DropdownOption[];
|
|
744
|
-
editVariant?: 'select' | 'text';
|
|
745
|
-
enableClickToCopy?: 'context-menu' | ((cell: MRT_Cell<TData>) => 'context-menu' | boolean) | boolean;
|
|
746
680
|
enableColumnActions?: boolean;
|
|
747
681
|
enableColumnDragging?: boolean;
|
|
748
|
-
|
|
682
|
+
/**
|
|
683
|
+
* Whether this column is eligible to be added as an advanced filter rule.
|
|
684
|
+
* Defaults to `true`. Set to `false` to exclude a column from the advanced
|
|
685
|
+
* filters rule builder (getFilterableColumns).
|
|
686
|
+
*/
|
|
687
|
+
enableColumnFilter?: boolean;
|
|
749
688
|
enableColumnOrdering?: boolean;
|
|
750
689
|
enableEditing?: ((row: MRT_Row<TData>) => boolean) | boolean;
|
|
751
|
-
enableFilterMatchHighlighting?: boolean;
|
|
752
|
-
Filter?: (props: {
|
|
753
|
-
column: MRT_Column<TData, TValue>;
|
|
754
|
-
header: MRT_Header<TData>;
|
|
755
|
-
rangeFilterIndex?: number;
|
|
756
|
-
table: MRT_TableInstance<TData>;
|
|
757
|
-
}) => ReactNode;
|
|
758
|
-
filterFn?: MRT_FilterFn<TData>;
|
|
759
|
-
filterSelectOptions?: DropdownOption[];
|
|
760
|
-
filterVariant?: 'autocomplete' | 'checkbox' | 'date' | 'date-range' | 'datetime' | 'datetime-range' | 'multi-select' | 'range' | 'range-slider' | 'select' | 'text' | 'time' | 'time-range';
|
|
761
690
|
/**
|
|
762
691
|
* footer must be a string. If you want custom JSX to render the footer, you can also specify a `Footer` option. (Capital F)
|
|
763
692
|
*/
|
|
@@ -806,18 +735,6 @@ interface MRT_ColumnDefBase<TData extends MRT_RowData, TValue = unknown> extends
|
|
|
806
735
|
column: MRT_Column<TData>;
|
|
807
736
|
table: MRT_TableInstance<TData>;
|
|
808
737
|
}) => IconButtonProps) | IconButtonProps;
|
|
809
|
-
muiCopyButtonProps?: ((props: {
|
|
810
|
-
cell: MRT_Cell<TData, TValue>;
|
|
811
|
-
column: MRT_Column<TData>;
|
|
812
|
-
row: MRT_Row<TData>;
|
|
813
|
-
table: MRT_TableInstance<TData>;
|
|
814
|
-
}) => ButtonProps) | ButtonProps;
|
|
815
|
-
muiEditTextFieldProps?: ((props: {
|
|
816
|
-
cell: MRT_Cell<TData, TValue>;
|
|
817
|
-
column: MRT_Column<TData>;
|
|
818
|
-
row: MRT_Row<TData>;
|
|
819
|
-
table: MRT_TableInstance<TData>;
|
|
820
|
-
}) => TextFieldProps) | TextFieldProps;
|
|
821
738
|
muiFilterAutocompleteProps?: ((props: {
|
|
822
739
|
column: MRT_Column<TData>;
|
|
823
740
|
table: MRT_TableInstance<TData>;
|
|
@@ -887,13 +804,7 @@ interface MRT_ColumnDefBase<TData extends MRT_RowData, TValue = unknown> extends
|
|
|
887
804
|
internalColumnMenuItems: ReactNode[];
|
|
888
805
|
table: MRT_TableInstance<TData>;
|
|
889
806
|
}) => ReactNode[];
|
|
890
|
-
|
|
891
|
-
column: MRT_Column<TData>;
|
|
892
|
-
internalFilterOptions: MRT_InternalFilterOption[];
|
|
893
|
-
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
|
894
|
-
table: MRT_TableInstance<TData>;
|
|
895
|
-
}) => ReactNode[];
|
|
896
|
-
sortingFn?: MRT_SortingFn<TData>;
|
|
807
|
+
sortFn?: MRT_SortFn<TData>;
|
|
897
808
|
visibleInShowHideMenu?: boolean;
|
|
898
809
|
}
|
|
899
810
|
type MRT_IconTypeColumnClickArgs<TData extends MRT_RowData> = {
|
|
@@ -921,24 +832,22 @@ type MRT_GroupColumnDef<TData extends MRT_RowData> = MRT_DisplayColumnDef<TData,
|
|
|
921
832
|
columns: MRT_ColumnDef<TData>[];
|
|
922
833
|
};
|
|
923
834
|
type MRT_DefinedColumnDef<TData extends MRT_RowData, TValue = unknown> = DistributiveOmit<MRT_ColumnDef<TData, TValue>, 'defaultDisplayColumn' | 'id'> & {
|
|
924
|
-
_filterFn: MRT_FilterOption;
|
|
925
835
|
defaultDisplayColumn: Partial<MRT_ColumnDef<TData, TValue>>;
|
|
926
836
|
id: string;
|
|
927
837
|
};
|
|
928
|
-
type MRT_Column<TData extends MRT_RowData, TValue = unknown> = Omit<Column<TData, TValue>, 'columnDef' | 'columns' | '
|
|
838
|
+
type MRT_Column<TData extends MRT_RowData, TValue = unknown> = Omit<Column<MRT_TableFeatures, TData, TValue>, 'columnDef' | 'columns' | 'footer' | 'header'> & {
|
|
929
839
|
columnDef: MRT_DefinedColumnDef<TData, TValue>;
|
|
930
840
|
columns?: MRT_Column<TData, TValue>[];
|
|
931
|
-
filterFn?: MRT_FilterFn<TData>;
|
|
932
841
|
footer: string;
|
|
933
842
|
header: string;
|
|
934
843
|
};
|
|
935
|
-
type MRT_Header<TData extends MRT_RowData> = Omit<Header<TData, unknown>, 'column'> & {
|
|
844
|
+
type MRT_Header<TData extends MRT_RowData> = Omit<Header<MRT_TableFeatures, TData, unknown>, 'column'> & {
|
|
936
845
|
column: MRT_Column<TData>;
|
|
937
846
|
};
|
|
938
|
-
type MRT_HeaderGroup<TData extends MRT_RowData> = Omit<HeaderGroup<TData>, 'headers'> & {
|
|
847
|
+
type MRT_HeaderGroup<TData extends MRT_RowData> = Omit<HeaderGroup<MRT_TableFeatures, TData>, 'headers'> & {
|
|
939
848
|
headers: MRT_Header<TData>[];
|
|
940
849
|
};
|
|
941
|
-
type MRT_Row<TData extends MRT_RowData> = Omit<Row<TData>, '_valuesCache' | 'getAllCells' | 'getParentRow' | 'getParentRows' | 'getRow' | 'getVisibleCells' | 'subRows'> & {
|
|
850
|
+
type MRT_Row<TData extends MRT_RowData> = Omit<Row<MRT_TableFeatures, TData>, '_valuesCache' | 'getAllCells' | 'getParentRow' | 'getParentRows' | 'getRow' | 'getVisibleCells' | 'subRows'> & {
|
|
942
851
|
_valuesCache: Record<LiteralUnion<string & DeepKeys<TData>>, unknown>;
|
|
943
852
|
getAllCells: () => MRT_Cell<TData>[];
|
|
944
853
|
getParentRow: () => MRT_Row<TData> | null;
|
|
@@ -947,22 +856,14 @@ type MRT_Row<TData extends MRT_RowData> = Omit<Row<TData>, '_valuesCache' | 'get
|
|
|
947
856
|
getVisibleCells: () => MRT_Cell<TData>[];
|
|
948
857
|
subRows?: MRT_Row<TData>[];
|
|
949
858
|
};
|
|
950
|
-
type MRT_Cell<TData extends MRT_RowData, TValue = unknown> = Omit<Cell<TData, TValue>, 'column' | 'row'> & {
|
|
859
|
+
type MRT_Cell<TData extends MRT_RowData, TValue = unknown> = Omit<Cell<MRT_TableFeatures, TData, TValue>, 'column' | 'row'> & {
|
|
951
860
|
column: MRT_Column<TData, TValue>;
|
|
952
861
|
row: MRT_Row<TData>;
|
|
953
862
|
};
|
|
954
863
|
type MRT_AggregationOption = string & keyof typeof MRT_AggregationFns;
|
|
955
|
-
type MRT_AggregationFn<TData extends MRT_RowData> =
|
|
864
|
+
type MRT_AggregationFn<TData extends MRT_RowData> = AggregationFnDef<MRT_TableFeatures, TData> | MRT_AggregationOption;
|
|
956
865
|
type MRT_SortingOption = LiteralUnion<string & keyof typeof MRT_SortingFns>;
|
|
957
|
-
type
|
|
958
|
-
type MRT_FilterOption = LiteralUnion<string & keyof typeof MRT_FilterFns>;
|
|
959
|
-
type MRT_FilterFn<TData extends MRT_RowData> = FilterFn<TData> | MRT_FilterOption;
|
|
960
|
-
type MRT_InternalFilterOption = {
|
|
961
|
-
divider: boolean;
|
|
962
|
-
label: string;
|
|
963
|
-
option: string;
|
|
964
|
-
symbol: string;
|
|
965
|
-
};
|
|
866
|
+
type MRT_SortFn<TData extends MRT_RowData> = MRT_SortingOption | SortFn<MRT_TableFeatures, TData>;
|
|
966
867
|
type MRT_RowReorderingSelectionState = Record<string, boolean>;
|
|
967
868
|
type MRT_TreeRowReorderEvent<TData extends MRT_RowData> = {
|
|
968
869
|
selectedRowIds: string[];
|
|
@@ -970,7 +871,7 @@ type MRT_TreeRowReorderEvent<TData extends MRT_RowData> = {
|
|
|
970
871
|
table: MRT_TableInstance<TData>;
|
|
971
872
|
targetRow: MRT_Row<TData> | null;
|
|
972
873
|
};
|
|
973
|
-
type MRT_DisplayColumnIds = 'mrt-row-actions' | 'mrt-row-
|
|
874
|
+
type MRT_DisplayColumnIds = 'mrt-row-actions' | 'mrt-row-expand' | 'mrt-row-numbers' | 'mrt-row-pin' | '__check__' | 'mrt-row-spacer';
|
|
974
875
|
type MRT_GetRowId<TData extends MRT_RowData> = (originalRow: TData, index: number, parentRow?: MRT_Row<TData>) => string;
|
|
975
876
|
/**
|
|
976
877
|
* `columns` and `data` props are the only required props, but there are over 170 other optional props.
|
|
@@ -981,7 +882,7 @@ type MRT_GetRowId<TData extends MRT_RowData> = (originalRow: TData, index: numbe
|
|
|
981
882
|
* See the full props list on the official docs site:
|
|
982
883
|
* @link https://www.material-react-table.com/docs/api/props
|
|
983
884
|
*/
|
|
984
|
-
interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | '
|
|
885
|
+
interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<TableOptions<MRT_TableFeatures, TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'initialState' | 'state'> {
|
|
985
886
|
/**
|
|
986
887
|
* Table-wide map of iconCode -> Iconify glyph + colour, used by every 'icon'
|
|
987
888
|
* type column. The backend only ever sends colour/description metadata
|
|
@@ -991,8 +892,6 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
991
892
|
* when a code isn't in the map, or when this option isn't supplied at all).
|
|
992
893
|
*/
|
|
993
894
|
iconsList?: Record<string, MRT_IconsListEntry>;
|
|
994
|
-
columnFilterDisplayMode?: 'custom' | 'popover' | 'subheader';
|
|
995
|
-
columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
|
|
996
895
|
/**
|
|
997
896
|
* The columns to display in the table. `accessorKey`s or `accessorFn`s must match keys in the `data` table option.
|
|
998
897
|
*
|
|
@@ -1008,7 +907,6 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
1008
907
|
columnVirtualizerOptions?: ((props: {
|
|
1009
908
|
table: MRT_TableInstance<TData>;
|
|
1010
909
|
}) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>) | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>;
|
|
1011
|
-
createDisplayMode?: 'custom' | 'modal' | 'row';
|
|
1012
910
|
/**
|
|
1013
911
|
* Pass your data as an array of objects. Objects can theoretically be any shape, but it's best to keep them consistent.
|
|
1014
912
|
*
|
|
@@ -1027,14 +925,11 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
1027
925
|
displayColumnDefOptions?: Partial<{
|
|
1028
926
|
[key in MRT_DisplayColumnIds]: Partial<MRT_DisplayColumnDef<TData>>;
|
|
1029
927
|
}>;
|
|
1030
|
-
editDisplayMode?: 'cell' | 'custom' | 'modal' | 'row' | 'table';
|
|
1031
928
|
enableBatchRowSelection?: boolean;
|
|
1032
929
|
enableBottomToolbar?: boolean;
|
|
1033
930
|
enableCellActions?: ((cell: MRT_Cell<TData>) => boolean) | boolean;
|
|
1034
|
-
enableClickToCopy?: 'context-menu' | ((cell: MRT_Cell<TData>) => 'context-menu' | boolean) | boolean;
|
|
1035
931
|
enableColumnActions?: boolean;
|
|
1036
932
|
enableColumnDragging?: boolean;
|
|
1037
|
-
enableColumnFilterModes?: boolean;
|
|
1038
933
|
enableColumnOrdering?: boolean;
|
|
1039
934
|
enableColumnVirtualization?: boolean;
|
|
1040
935
|
enableDensityToggle?: boolean;
|
|
@@ -1043,17 +938,24 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
1043
938
|
enableExpandAll?: boolean;
|
|
1044
939
|
maxDepth?: number;
|
|
1045
940
|
enableRowReordering?: boolean;
|
|
1046
|
-
enableFacetedValues?: boolean;
|
|
1047
941
|
enableAdvancedFilters?: boolean;
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
942
|
+
/**
|
|
943
|
+
* Previously a passthrough to TanStack's per-column filtering feature
|
|
944
|
+
* (removed along with columnFilters). Kept as an MRT-own option — its only
|
|
945
|
+
* remaining effect is computing the `manualFiltering` default when that
|
|
946
|
+
* option isn't explicitly set.
|
|
947
|
+
*/
|
|
948
|
+
enableFilters?: boolean;
|
|
949
|
+
/**
|
|
950
|
+
* Previously provided by TanStack's per-column filtering feature (removed
|
|
951
|
+
* along with columnFilters). Kept as an MRT-own option: gates whether the
|
|
952
|
+
* advanced filters panel/button render (see MRT_AdvancedFilters.tsx /
|
|
953
|
+
* MRT_ToggleAdvancedFiltersButton.tsx).
|
|
954
|
+
*/
|
|
955
|
+
manualFiltering?: boolean;
|
|
1052
956
|
enablePagination?: boolean;
|
|
1053
957
|
enableRowActions?: boolean;
|
|
1054
|
-
enableRowDragging?: boolean;
|
|
1055
958
|
enableRowNumbers?: boolean;
|
|
1056
|
-
enableRowOrdering?: boolean;
|
|
1057
959
|
enableRowSelection?: ((row: MRT_Row<TData>) => boolean) | boolean;
|
|
1058
960
|
enableRowVirtualization?: boolean;
|
|
1059
961
|
/**
|
|
@@ -1097,8 +999,6 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
1097
999
|
enableTopToolbar?: boolean;
|
|
1098
1000
|
expandRowsFn?: (dataRow: TData) => TData[];
|
|
1099
1001
|
getRowId?: MRT_GetRowId<TData>;
|
|
1100
|
-
globalFilterFn?: MRT_FilterOption;
|
|
1101
|
-
globalFilterModeOptions?: MRT_FilterOption[] | null;
|
|
1102
1002
|
icons?: Partial<MRT_Icons>;
|
|
1103
1003
|
id?: string;
|
|
1104
1004
|
initialState?: Partial<MRT_TableState<TData>>;
|
|
@@ -1139,30 +1039,10 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
1139
1039
|
column: MRT_Column<TData>;
|
|
1140
1040
|
table: MRT_TableInstance<TData>;
|
|
1141
1041
|
}) => IconButtonProps) | IconButtonProps;
|
|
1142
|
-
muiCopyButtonProps?: ((props: {
|
|
1143
|
-
cell: MRT_Cell<TData>;
|
|
1144
|
-
column: MRT_Column<TData>;
|
|
1145
|
-
row: MRT_Row<TData>;
|
|
1146
|
-
table: MRT_TableInstance<TData>;
|
|
1147
|
-
}) => ButtonProps) | ButtonProps;
|
|
1148
|
-
muiCreateRowModalProps?: ((props: {
|
|
1149
|
-
row: MRT_Row<TData>;
|
|
1150
|
-
table: MRT_TableInstance<TData>;
|
|
1151
|
-
}) => DialogProps) | DialogProps;
|
|
1152
1042
|
muiDetailPanelProps?: ((props: {
|
|
1153
1043
|
row: MRT_Row<TData>;
|
|
1154
1044
|
table: MRT_TableInstance<TData>;
|
|
1155
1045
|
}) => TableCellProps) | TableCellProps;
|
|
1156
|
-
muiEditRowDialogProps?: ((props: {
|
|
1157
|
-
row: MRT_Row<TData>;
|
|
1158
|
-
table: MRT_TableInstance<TData>;
|
|
1159
|
-
}) => DialogProps) | DialogProps;
|
|
1160
|
-
muiEditTextFieldProps?: ((props: {
|
|
1161
|
-
cell: MRT_Cell<TData>;
|
|
1162
|
-
column: MRT_Column<TData>;
|
|
1163
|
-
row: MRT_Row<TData>;
|
|
1164
|
-
table: MRT_TableInstance<TData>;
|
|
1165
|
-
}) => TextFieldProps) | TextFieldProps;
|
|
1166
1046
|
muiExpandAllButtonProps?: ((props: {
|
|
1167
1047
|
table: MRT_TableInstance<TData>;
|
|
1168
1048
|
}) => IconButtonProps) | IconButtonProps;
|
|
@@ -1226,13 +1106,6 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
1226
1106
|
}[] | number[];
|
|
1227
1107
|
showRowsPerPage?: boolean;
|
|
1228
1108
|
}>;
|
|
1229
|
-
muiRowDragHandleProps?: ((props: {
|
|
1230
|
-
row: MRT_Row<TData>;
|
|
1231
|
-
table: MRT_TableInstance<TData>;
|
|
1232
|
-
}) => IconButtonProps) | IconButtonProps;
|
|
1233
|
-
muiSearchTextFieldProps?: ((props: {
|
|
1234
|
-
table: MRT_TableInstance<TData>;
|
|
1235
|
-
}) => TextFieldProps) | TextFieldProps;
|
|
1236
1109
|
muiSelectAllCheckboxProps?: ((props: {
|
|
1237
1110
|
table: MRT_TableInstance<TData>;
|
|
1238
1111
|
}) => CheckboxProps) | CheckboxProps;
|
|
@@ -1308,54 +1181,26 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
1308
1181
|
}) => ButtonProps) | ButtonProps;
|
|
1309
1182
|
formConfig?: MRT_FormConfig<TData>;
|
|
1310
1183
|
onActionCellChange?: OnChangeFn<MRT_Cell<TData> | null>;
|
|
1311
|
-
onColumnFilterFnsChange?: OnChangeFn<{
|
|
1312
|
-
[key: string]: MRT_FilterOption;
|
|
1313
|
-
}>;
|
|
1314
|
-
onCreatingRowCancel?: (props: {
|
|
1315
|
-
row: MRT_Row<TData>;
|
|
1316
|
-
table: MRT_TableInstance<TData>;
|
|
1317
|
-
}) => void;
|
|
1318
|
-
onCreatingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
|
1319
|
-
onCreatingRowSave?: (props: {
|
|
1320
|
-
exitCreatingMode: () => void;
|
|
1321
|
-
row: MRT_Row<TData>;
|
|
1322
|
-
table: MRT_TableInstance<TData>;
|
|
1323
|
-
values: Record<LiteralUnion<string & DeepKeys<TData>>, unknown>;
|
|
1324
|
-
}) => Promise<void> | void;
|
|
1325
1184
|
onDensityChange?: OnChangeFn<MRT_DensityState>;
|
|
1326
1185
|
onDraggingColumnChange?: OnChangeFn<MRT_Column<TData> | null>;
|
|
1327
1186
|
onDraggingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
|
1328
|
-
onEditingCellChange?: OnChangeFn<MRT_Cell<TData> | null>;
|
|
1329
|
-
onEditingRowCancel?: (props: {
|
|
1330
|
-
row: MRT_Row<TData>;
|
|
1331
|
-
table: MRT_TableInstance<TData>;
|
|
1332
|
-
}) => void;
|
|
1333
|
-
onEditingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
|
1334
|
-
onEditingRowSave?: (props: {
|
|
1335
|
-
exitEditingMode: () => void;
|
|
1336
|
-
row: MRT_Row<TData>;
|
|
1337
|
-
table: MRT_TableInstance<TData>;
|
|
1338
|
-
values: Record<LiteralUnion<string & DeepKeys<TData>>, unknown>;
|
|
1339
|
-
}) => Promise<void> | void;
|
|
1340
1187
|
onFiltersChange?: OnChangeFn<MRT_FiltersState>;
|
|
1341
|
-
onGlobalFilterFnChange?: OnChangeFn<MRT_FilterOption>;
|
|
1342
1188
|
onSaveFilters?: (savedFilter: MRT_SavedFilter) => Promise<void>;
|
|
1343
1189
|
onDeleteSavedFilter?: (filterName: string) => Promise<void>;
|
|
1344
1190
|
initialSavedFilters?: MRT_SavedFilters;
|
|
1345
1191
|
onHoveredColumnChange?: OnChangeFn<Partial<MRT_Column<TData>> | null>;
|
|
1346
1192
|
onHoveredRowChange?: OnChangeFn<Partial<MRT_Row<TData>> | null>;
|
|
1193
|
+
onNewEntryModalChange?: OnChangeFn<MRT_NewEntryModalState>;
|
|
1194
|
+
onSavedFiltersChange?: OnChangeFn<MRT_SavedFilters>;
|
|
1347
1195
|
onShowAlertBannerChange?: OnChangeFn<boolean>;
|
|
1348
1196
|
onShowAdvancedFiltersChange?: OnChangeFn<boolean>;
|
|
1349
|
-
|
|
1350
|
-
onShowGlobalFilterChange?: OnChangeFn<boolean>;
|
|
1197
|
+
onShowProgressBarsChange?: OnChangeFn<boolean>;
|
|
1351
1198
|
onShowToolbarDropZoneChange?: OnChangeFn<boolean>;
|
|
1352
1199
|
onRowReorderingSelectionChange?: OnChangeFn<MRT_RowReorderingSelectionState>;
|
|
1353
1200
|
onTreeRowReorder?: (event: MRT_TreeRowReorderEvent<TData>) => void;
|
|
1354
1201
|
paginationDisplayMode?: 'custom' | 'default' | 'pages';
|
|
1355
1202
|
positionActionsColumn?: 'first' | 'last';
|
|
1356
|
-
positionCreatingRow?: 'bottom' | 'top' | number;
|
|
1357
1203
|
positionExpandColumn?: 'first' | 'last';
|
|
1358
|
-
positionGlobalFilter?: 'left' | 'none' | 'right';
|
|
1359
1204
|
positionPagination?: 'both' | 'bottom' | 'none' | 'top';
|
|
1360
1205
|
positionToolbarAlertBanner?: 'bottom' | 'head-overlay' | 'none' | 'top';
|
|
1361
1206
|
positionToolbarDropZone?: 'both' | 'bottom' | 'none' | 'top';
|
|
@@ -1384,34 +1229,13 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
|
|
|
1384
1229
|
internalColumnMenuItems: ReactNode[];
|
|
1385
1230
|
table: MRT_TableInstance<TData>;
|
|
1386
1231
|
}) => ReactNode[];
|
|
1387
|
-
renderColumnFilterModeMenuItems?: (props: {
|
|
1388
|
-
column: MRT_Column<TData>;
|
|
1389
|
-
internalFilterOptions: MRT_InternalFilterOption[];
|
|
1390
|
-
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
|
1391
|
-
table: MRT_TableInstance<TData>;
|
|
1392
|
-
}) => ReactNode[];
|
|
1393
|
-
renderCreateRowDialogContent?: (props: {
|
|
1394
|
-
internalEditComponents: ReactNode[];
|
|
1395
|
-
row: MRT_Row<TData>;
|
|
1396
|
-
table: MRT_TableInstance<TData>;
|
|
1397
|
-
}) => ReactNode;
|
|
1398
1232
|
renderDetailPanel?: (props: {
|
|
1399
1233
|
row: MRT_Row<TData>;
|
|
1400
1234
|
table: MRT_TableInstance<TData>;
|
|
1401
1235
|
}) => ReactNode;
|
|
1402
|
-
renderEditRowDialogContent?: (props: {
|
|
1403
|
-
internalEditComponents: ReactNode[];
|
|
1404
|
-
row: MRT_Row<TData>;
|
|
1405
|
-
table: MRT_TableInstance<TData>;
|
|
1406
|
-
}) => ReactNode;
|
|
1407
1236
|
renderEmptyRowsFallback?: (props: {
|
|
1408
1237
|
table: MRT_TableInstance<TData>;
|
|
1409
1238
|
}) => ReactNode;
|
|
1410
|
-
renderGlobalFilterModeMenuItems?: (props: {
|
|
1411
|
-
internalFilterOptions: MRT_InternalFilterOption[];
|
|
1412
|
-
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
|
1413
|
-
table: MRT_TableInstance<TData>;
|
|
1414
|
-
}) => ReactNode[];
|
|
1415
1239
|
renderRowActionMenuItems?: (props: {
|
|
1416
1240
|
closeMenu: () => void;
|
|
1417
1241
|
row: MRT_Row<TData>;
|
|
@@ -1538,7 +1362,7 @@ type UseServerTableStateReturn = {
|
|
|
1538
1362
|
refetch: () => void;
|
|
1539
1363
|
};
|
|
1540
1364
|
type ColumnType = 'string' | 'number' | 'date' | 'dateTime' | 'enum' | 'icon' | 'dimension' | 'boolean' | 'actions' | 'object';
|
|
1541
|
-
type MRT_FilterOperator = '!=' | '<' | '<=' | '=' | '>' | '>=' | 'after' | 'before' | 'contains' | 'current-month' | 'current-week' | 'doesNotContain' | 'doesNotEqual' | 'endsWith' | 'equals' | 'from-today' | '
|
|
1365
|
+
type MRT_FilterOperator = '!=' | '<' | '<=' | '=' | '>' | '>=' | 'after' | 'before' | 'contains' | 'current-month' | 'current-week' | 'doesNotContain' | 'doesNotEqual' | 'endsWith' | 'equals' | 'from-today' | 'is' | 'isAnyOf' | 'isEmpty' | 'isNotEmpty' | 'last-7-days' | 'last-month' | 'last-week' | 'not' | 'range' | 'startsWith' | 'to-today';
|
|
1542
1366
|
interface MRT_SavedFilter {
|
|
1543
1367
|
name: string;
|
|
1544
1368
|
logicOperator: MRT_FiltersLogicOperator;
|
|
@@ -1689,7 +1513,7 @@ interface MRT_DimensionsDef {
|
|
|
1689
1513
|
}
|
|
1690
1514
|
type ExtraFieldFilterOption<TData extends RowData> = Pick<MRT_ColumnDef<TData & MRT_RowData>, 'type' | 'accessorKey' | 'header' | 'meta'>;
|
|
1691
1515
|
declare module '@tanstack/react-table' {
|
|
1692
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
1516
|
+
interface ColumnMeta<TFeatures extends TableFeatures, TData extends RowData, TValue> {
|
|
1693
1517
|
enumValues?: Array<{
|
|
1694
1518
|
value: string;
|
|
1695
1519
|
label: string;
|
|
@@ -1700,25 +1524,6 @@ declare module '@tanstack/react-table' {
|
|
|
1700
1524
|
}
|
|
1701
1525
|
}
|
|
1702
1526
|
|
|
1703
|
-
declare const isCellEditable: <TData extends MRT_RowData>({ cell, table, }: {
|
|
1704
|
-
cell: MRT_Cell<TData>;
|
|
1705
|
-
table: MRT_TableInstance<TData>;
|
|
1706
|
-
}) => boolean | undefined;
|
|
1707
|
-
declare const openEditingCell: <TData extends MRT_RowData>({ cell, table, }: {
|
|
1708
|
-
cell: MRT_Cell<TData>;
|
|
1709
|
-
table: MRT_TableInstance<TData>;
|
|
1710
|
-
}) => void;
|
|
1711
|
-
declare const cellKeyboardShortcuts: <TData extends MRT_RowData = MRT_RowData>({ cell, cellElements, cellValue, containerElement, event, header, parentElement, table, }: {
|
|
1712
|
-
cell?: MRT_Cell<TData>;
|
|
1713
|
-
header?: MRT_Header<TData>;
|
|
1714
|
-
cellElements?: Array<HTMLTableCellElement>;
|
|
1715
|
-
cellValue?: string;
|
|
1716
|
-
containerElement?: HTMLTableElement;
|
|
1717
|
-
event: react__default.KeyboardEvent<HTMLTableCellElement>;
|
|
1718
|
-
parentElement?: HTMLTableRowElement;
|
|
1719
|
-
table: MRT_TableInstance<TData>;
|
|
1720
|
-
}) => void;
|
|
1721
|
-
|
|
1722
1527
|
declare const getColumnId: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => string;
|
|
1723
1528
|
declare const getAllLeafColumnDefs: <TData extends MRT_RowData>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|
|
1724
1529
|
declare const prepareColumns: <TData extends MRT_RowData>({ columnDefs, tableOptions, }: {
|
|
@@ -1726,25 +1531,6 @@ declare const prepareColumns: <TData extends MRT_RowData>({ columnDefs, tableOpt
|
|
|
1726
1531
|
tableOptions: MRT_DefinedTableOptions<TData>;
|
|
1727
1532
|
}) => MRT_DefinedColumnDef<TData>[];
|
|
1728
1533
|
declare const reorderColumn: <TData extends MRT_RowData>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: MRT_ColumnOrderState) => MRT_ColumnOrderState;
|
|
1729
|
-
declare const getDefaultColumnFilterFn: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => MRT_FilterOption;
|
|
1730
|
-
declare const getColumnFilterInfo: <TData extends MRT_RowData>({ header, table, }: {
|
|
1731
|
-
header: MRT_Header<TData>;
|
|
1732
|
-
table: MRT_TableInstance<TData>;
|
|
1733
|
-
}) => {
|
|
1734
|
-
readonly allowedColumnFilterOptions: LiteralUnion<string & MRT_FilterOption, string>[] | null | undefined;
|
|
1735
|
-
readonly currentFilterOption: MRT_FilterOption;
|
|
1736
|
-
readonly facetedUniqueValues: Map<any, number>;
|
|
1737
|
-
readonly isAutocompleteFilter: boolean;
|
|
1738
|
-
readonly isDateFilter: boolean;
|
|
1739
|
-
readonly isMultiSelectFilter: boolean;
|
|
1740
|
-
readonly isRangeFilter: boolean;
|
|
1741
|
-
readonly isSelectFilter: boolean;
|
|
1742
|
-
readonly isTextboxFilter: boolean;
|
|
1743
|
-
};
|
|
1744
|
-
declare const useDropdownOptions: <TData extends MRT_RowData>({ header, table, }: {
|
|
1745
|
-
header: MRT_Header<TData>;
|
|
1746
|
-
table: MRT_TableInstance<TData>;
|
|
1747
|
-
}) => DropdownOption[] | undefined;
|
|
1748
1534
|
|
|
1749
1535
|
declare function defaultDisplayColumnProps<TData extends MRT_RowData>({ header, id, size, tableOptions, }: {
|
|
1750
1536
|
header?: keyof MRT_Localization;
|
|
@@ -1753,7 +1539,6 @@ declare function defaultDisplayColumnProps<TData extends MRT_RowData>({ header,
|
|
|
1753
1539
|
tableOptions: MRT_DefinedTableOptions<TData>;
|
|
1754
1540
|
}): MRT_DisplayColumnDef<TData>;
|
|
1755
1541
|
declare const showRowPinningColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1756
|
-
declare const showRowDragColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1757
1542
|
declare const showRowExpandColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1758
1543
|
declare const showRowActionsColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1759
1544
|
declare const showRowSelectionColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
@@ -1765,24 +1550,22 @@ declare const getTrailingDisplayColumnIds: <TData extends MRT_RowData>(tableOpti
|
|
|
1765
1550
|
declare const CHECKBOX_DISPLAY_COLUMN_ID = "__check__";
|
|
1766
1551
|
/**
|
|
1767
1552
|
* Builds the default columnPinning state so that the checkbox column
|
|
1768
|
-
* is always the first
|
|
1553
|
+
* is always the first start-pinned column when row selection is enabled.
|
|
1769
1554
|
* The checkbox is pinned for sticky positioning only — its visual styles are
|
|
1770
1555
|
* intentionally overridden in style.utils.ts to match center column appearance.
|
|
1771
|
-
* Any user-supplied
|
|
1772
|
-
* checkbox so they never appear
|
|
1556
|
+
* Any user-supplied start-pinned column IDs are kept, but appended after the
|
|
1557
|
+
* checkbox so they never appear before it.
|
|
1773
1558
|
*/
|
|
1774
1559
|
declare const getDefaultColumnPinningState: <TData extends MRT_RowData>(tableOptions: MRT_DefinedTableOptions<TData>, existingColumnPinning?: {
|
|
1775
|
-
|
|
1776
|
-
|
|
1560
|
+
start?: string[];
|
|
1561
|
+
end?: string[];
|
|
1777
1562
|
}) => {
|
|
1778
|
-
|
|
1779
|
-
|
|
1563
|
+
start: string[];
|
|
1564
|
+
end: string[];
|
|
1780
1565
|
};
|
|
1781
1566
|
declare const getDefaultColumnOrderIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>, reset?: boolean) => string[];
|
|
1782
1567
|
|
|
1783
1568
|
declare const getMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, all?: boolean) => MRT_Row<TData>[];
|
|
1784
|
-
declare const getCanRankRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => boolean | undefined;
|
|
1785
|
-
declare const getIsRankingRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => any;
|
|
1786
1569
|
declare const getIsRowSelected: <TData extends MRT_RowData>({ row, table, }: {
|
|
1787
1570
|
row: MRT_Row<TData>;
|
|
1788
1571
|
table: MRT_TableInstance<TData>;
|
|
@@ -1814,34 +1597,29 @@ declare const useMaterialReactTable: <TData extends MRT_RowData>(tableOptions: M
|
|
|
1814
1597
|
|
|
1815
1598
|
declare const useMRT_ColumnVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement>(table: MRT_TableInstance<TData>) => MRT_ColumnVirtualizer | undefined;
|
|
1816
1599
|
|
|
1817
|
-
declare const useMRT_Effects: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => void;
|
|
1818
|
-
|
|
1819
1600
|
declare const useMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => MRT_Row<TData>[];
|
|
1820
1601
|
|
|
1821
1602
|
declare const useMRT_RowVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement>(table: MRT_TableInstance<TData>, rows?: MRT_Row<TData>[]) => MRT_RowVirtualizer<TScrollElement, TItemElement> | undefined;
|
|
1822
1603
|
|
|
1823
1604
|
/**
|
|
1824
|
-
* The MRT hook that wraps the TanStack
|
|
1605
|
+
* The MRT hook that wraps the TanStack useTable hook and adds additional functionality
|
|
1825
1606
|
* @param definedTableOptions - table options with proper defaults set
|
|
1826
1607
|
* @returns the MRT table instance
|
|
1827
1608
|
*/
|
|
1828
1609
|
declare const useMRT_TableInstance: <TData extends MRT_RowData>(definedTableOptions: MRT_DefinedTableOptions<TData>) => MRT_TableInstance<TData>;
|
|
1829
1610
|
|
|
1830
1611
|
declare const MRT_DefaultColumn: {
|
|
1831
|
-
readonly filterVariant: "text";
|
|
1832
1612
|
readonly maxSize: 1000;
|
|
1833
1613
|
readonly minSize: 40;
|
|
1834
1614
|
readonly size: 180;
|
|
1835
1615
|
};
|
|
1836
1616
|
declare const MRT_DefaultDisplayColumn: {
|
|
1837
1617
|
readonly columnDefType: "display";
|
|
1838
|
-
readonly enableClickToCopy: false;
|
|
1839
1618
|
readonly enableColumnActions: false;
|
|
1840
1619
|
readonly enableColumnDragging: false;
|
|
1841
1620
|
readonly enableColumnFilter: false;
|
|
1842
1621
|
readonly enableColumnOrdering: false;
|
|
1843
1622
|
readonly enableEditing: false;
|
|
1844
|
-
readonly enableGlobalFilter: false;
|
|
1845
1623
|
readonly enableGrouping: false;
|
|
1846
1624
|
readonly enableHiding: false;
|
|
1847
1625
|
readonly enableResizing: false;
|
|
@@ -1915,7 +1693,7 @@ interface MRT_TableBodyCellProps<TData extends MRT_RowData> extends TableCellPro
|
|
|
1915
1693
|
table: MRT_TableInstance<TData>;
|
|
1916
1694
|
theme: Theme;
|
|
1917
1695
|
}
|
|
1918
|
-
declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, numRows, rowRef, staticColumnIndex, staticRowIndex, table, theme, ...rest }: MRT_TableBodyCellProps<TData>) =>
|
|
1696
|
+
declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, numRows, rowRef, staticColumnIndex, staticRowIndex, table, theme, ...rest }: MRT_TableBodyCellProps<TData>) => react.JSX.Element;
|
|
1919
1697
|
declare const Memo_MRT_TableBodyCell: typeof MRT_TableBodyCell;
|
|
1920
1698
|
|
|
1921
1699
|
interface MRT_TableBodyCellValueProps<TData extends MRT_RowData> {
|
|
@@ -1941,13 +1719,6 @@ interface MRT_TableBodyRowProps<TData extends MRT_RowData> extends TableRowProps
|
|
|
1941
1719
|
declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, numRows, pinnedRowIds, row, rowVirtualizer, staticRowIndex, table, theme, virtualRow, ...rest }: MRT_TableBodyRowProps<TData>) => react.JSX.Element;
|
|
1942
1720
|
declare const Memo_MRT_TableBodyRow: typeof MRT_TableBodyRow;
|
|
1943
1721
|
|
|
1944
|
-
interface MRT_TableBodyRowGrabHandleProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
1945
|
-
row: MRT_Row<TData>;
|
|
1946
|
-
rowRef: RefObject<HTMLTableRowElement | null>;
|
|
1947
|
-
table: MRT_TableInstance<TData>;
|
|
1948
|
-
}
|
|
1949
|
-
declare const MRT_TableBodyRowGrabHandle: <TData extends MRT_RowData>({ row, rowRef, table, ...rest }: MRT_TableBodyRowGrabHandleProps<TData>) => react.JSX.Element;
|
|
1950
|
-
|
|
1951
1722
|
interface MRT_TableBodyRowPinButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
1952
1723
|
row: MRT_Row<TData>;
|
|
1953
1724
|
table: MRT_TableInstance<TData>;
|
|
@@ -1970,19 +1741,6 @@ interface MRT_ColumnPinningButtonsProps<TData extends MRT_RowData> extends BoxPr
|
|
|
1970
1741
|
}
|
|
1971
1742
|
declare const MRT_ColumnPinningButtons: <TData extends MRT_RowData>({ column, table, ...rest }: MRT_ColumnPinningButtonsProps<TData>) => react.JSX.Element;
|
|
1972
1743
|
|
|
1973
|
-
interface MRT_CopyButtonProps<TData extends MRT_RowData> extends ButtonProps {
|
|
1974
|
-
cell: MRT_Cell<TData>;
|
|
1975
|
-
table: MRT_TableInstance<TData>;
|
|
1976
|
-
}
|
|
1977
|
-
declare const MRT_CopyButton: <TData extends MRT_RowData>({ cell, table, ...rest }: MRT_CopyButtonProps<TData>) => react.JSX.Element;
|
|
1978
|
-
|
|
1979
|
-
interface MRT_EditActionButtonsProps<TData extends MRT_RowData> extends BoxProps {
|
|
1980
|
-
row: MRT_Row<TData>;
|
|
1981
|
-
table: MRT_TableInstance<TData>;
|
|
1982
|
-
variant?: 'icon' | 'text';
|
|
1983
|
-
}
|
|
1984
|
-
declare const MRT_EditActionButtons: <TData extends MRT_RowData>({ row, table, variant, ...rest }: MRT_EditActionButtonsProps<TData>) => react.JSX.Element;
|
|
1985
|
-
|
|
1986
1744
|
interface MRT_ExpandAllButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
1987
1745
|
table: MRT_TableInstance<TData>;
|
|
1988
1746
|
}
|
|
@@ -2021,16 +1779,6 @@ interface MRT_ToggleDensePaddingButtonProps<TData extends MRT_RowData> extends O
|
|
|
2021
1779
|
}
|
|
2022
1780
|
declare const MRT_ToggleDensePaddingButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToggleDensePaddingButtonProps<TData>) => react.JSX.Element;
|
|
2023
1781
|
|
|
2024
|
-
interface MRT_ToggleFiltersButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
2025
|
-
table: MRT_TableInstance<TData>;
|
|
2026
|
-
}
|
|
2027
|
-
declare const MRT_ToggleFiltersButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToggleFiltersButtonProps<TData>) => react.JSX.Element;
|
|
2028
|
-
|
|
2029
|
-
interface MRT_ToggleGlobalFilterButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
2030
|
-
table: MRT_TableInstance<TData>;
|
|
2031
|
-
}
|
|
2032
|
-
declare const MRT_ToggleGlobalFilterButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToggleGlobalFilterButtonProps<TData>) => react.JSX.Element;
|
|
2033
|
-
|
|
2034
1782
|
interface MRT_ToggleRowActionMenuButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
2035
1783
|
cell: MRT_Cell<TData>;
|
|
2036
1784
|
row: MRT_Row<TData>;
|
|
@@ -2039,6 +1787,20 @@ interface MRT_ToggleRowActionMenuButtonProps<TData extends MRT_RowData> extends
|
|
|
2039
1787
|
}
|
|
2040
1788
|
declare const MRT_ToggleRowActionMenuButton: <TData extends MRT_RowData>({ cell, row, staticRowIndex, table, ...rest }: MRT_ToggleRowActionMenuButtonProps<TData>) => react.JSX.Element;
|
|
2041
1789
|
|
|
1790
|
+
interface MRT_PaginationBoundsEffectProps<TData extends MRT_RowData> {
|
|
1791
|
+
table: MRT_TableInstance<TData>;
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Headless (renders nothing) — owns its own reactive subscription so this
|
|
1795
|
+
* correction runs independently of whatever the root `useTable()` selector
|
|
1796
|
+
* excludes. Subscribes to exactly the row-model pipeline stages that feed
|
|
1797
|
+
* `getPrePaginatedRowModel()` (sorting/grouping/expanded/rowPinning) plus
|
|
1798
|
+
* pagination itself: when the total row count shrinks (e.g. a group
|
|
1799
|
+
* collapses) and the current page index is no longer valid, snaps back to
|
|
1800
|
+
* the last valid page.
|
|
1801
|
+
*/
|
|
1802
|
+
declare const MRT_PaginationBoundsEffect: <TData extends MRT_RowData>({ table, }: MRT_PaginationBoundsEffectProps<TData>) => null;
|
|
1803
|
+
|
|
2042
1804
|
interface MRT_TableFooterProps<TData extends MRT_RowData> extends TableFooterProps {
|
|
2043
1805
|
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
2044
1806
|
table: MRT_TableInstance<TData>;
|
|
@@ -2050,7 +1812,7 @@ interface MRT_TableFooterCellProps<TData extends MRT_RowData> extends TableCellP
|
|
|
2050
1812
|
staticColumnIndex?: number;
|
|
2051
1813
|
table: MRT_TableInstance<TData>;
|
|
2052
1814
|
}
|
|
2053
|
-
declare const MRT_TableFooterCell: <TData extends MRT_RowData>({ footer, staticColumnIndex, table, ...rest }: MRT_TableFooterCellProps<TData>) =>
|
|
1815
|
+
declare const MRT_TableFooterCell: <TData extends MRT_RowData>({ footer, staticColumnIndex, table, ...rest }: MRT_TableFooterCellProps<TData>) => react.JSX.Element;
|
|
2054
1816
|
|
|
2055
1817
|
interface MRT_TableFooterRowProps<TData extends MRT_RowData> extends TableRowProps {
|
|
2056
1818
|
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
@@ -2071,7 +1833,7 @@ interface MRT_TableHeadCellProps<TData extends MRT_RowData> extends TableCellPro
|
|
|
2071
1833
|
staticColumnIndex?: number;
|
|
2072
1834
|
table: MRT_TableInstance<TData>;
|
|
2073
1835
|
}
|
|
2074
|
-
declare const MRT_TableHeadCell: <TData extends MRT_RowData>({ columnVirtualizer, header, staticColumnIndex, table, ...rest }: MRT_TableHeadCellProps<TData>) =>
|
|
1836
|
+
declare const MRT_TableHeadCell: <TData extends MRT_RowData>({ columnVirtualizer, header, staticColumnIndex, table, ...rest }: MRT_TableHeadCellProps<TData>) => react.JSX.Element;
|
|
2075
1837
|
|
|
2076
1838
|
interface MRT_TableHeadCellColumnActionsButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
2077
1839
|
header: MRT_Header<TData>;
|
|
@@ -2079,12 +1841,6 @@ interface MRT_TableHeadCellColumnActionsButtonProps<TData extends MRT_RowData> e
|
|
|
2079
1841
|
}
|
|
2080
1842
|
declare const MRT_TableHeadCellColumnActionsButton: <TData extends MRT_RowData>({ header, table, ...rest }: MRT_TableHeadCellColumnActionsButtonProps<TData>) => react.JSX.Element;
|
|
2081
1843
|
|
|
2082
|
-
interface MRT_TableHeadCellFilterLabelProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
2083
|
-
header: MRT_Header<TData>;
|
|
2084
|
-
table: MRT_TableInstance<TData>;
|
|
2085
|
-
}
|
|
2086
|
-
declare const MRT_TableHeadCellFilterLabel: <TData extends MRT_RowData = {}>({ header, table, ...rest }: MRT_TableHeadCellFilterLabelProps<TData>) => react.JSX.Element;
|
|
2087
|
-
|
|
2088
1844
|
interface MRT_TableHeadCellGrabHandleProps<TData extends MRT_RowData> extends IconButtonProps {
|
|
2089
1845
|
column: MRT_Column<TData>;
|
|
2090
1846
|
table: MRT_TableInstance<TData>;
|
|
@@ -2111,12 +1867,6 @@ interface MRT_TableHeadRowProps<TData extends MRT_RowData> extends TableRowProps
|
|
|
2111
1867
|
}
|
|
2112
1868
|
declare const MRT_TableHeadRow: <TData extends MRT_RowData>({ columnVirtualizer, headerGroup, table, ...rest }: MRT_TableHeadRowProps<TData>) => react.JSX.Element;
|
|
2113
1869
|
|
|
2114
|
-
interface MRT_EditCellTextFieldProps<TData extends MRT_RowData> extends TextFieldProps<'standard'> {
|
|
2115
|
-
cell: MRT_Cell<TData>;
|
|
2116
|
-
table: MRT_TableInstance<TData>;
|
|
2117
|
-
}
|
|
2118
|
-
declare const MRT_EditCellTextField: <TData extends MRT_RowData>({ cell, table, ...rest }: MRT_EditCellTextFieldProps<TData>) => react.JSX.Element;
|
|
2119
|
-
|
|
2120
1870
|
interface MRT_SelectAllMenuProps<TData extends MRT_RowData> {
|
|
2121
1871
|
table: MRT_TableInstance<TData>;
|
|
2122
1872
|
}
|
|
@@ -2145,26 +1895,14 @@ interface MRT_ColumnActionMenuProps<TData extends MRT_RowData> extends Partial<M
|
|
|
2145
1895
|
}
|
|
2146
1896
|
declare const MRT_ColumnActionMenu: <TData extends MRT_RowData>({ anchorEl, header, setAnchorEl, table, ...rest }: MRT_ColumnActionMenuProps<TData>) => react.JSX.Element;
|
|
2147
1897
|
|
|
2148
|
-
declare const mrtFilterOptions: (localization: MRT_Localization) => MRT_InternalFilterOption[];
|
|
2149
|
-
interface MRT_FilterOptionMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
|
2150
|
-
anchorEl: HTMLElement | null;
|
|
2151
|
-
header?: MRT_Header<TData>;
|
|
2152
|
-
onSelect?: () => void;
|
|
2153
|
-
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
|
2154
|
-
setFilterValue?: (filterValue: unknown) => void;
|
|
2155
|
-
table: MRT_TableInstance<TData>;
|
|
2156
|
-
}
|
|
2157
|
-
declare const MRT_FilterOptionMenu: <TData extends MRT_RowData>({ anchorEl, header, onSelect, setAnchorEl, setFilterValue, table, ...rest }: MRT_FilterOptionMenuProps<TData>) => react.JSX.Element;
|
|
2158
|
-
|
|
2159
1898
|
interface MRT_RowActionMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
|
2160
1899
|
anchorEl: HTMLElement | null;
|
|
2161
|
-
handleEdit: (event: MouseEvent) => void;
|
|
2162
1900
|
row: MRT_Row<TData>;
|
|
2163
1901
|
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
|
2164
1902
|
staticRowIndex?: number;
|
|
2165
1903
|
table: MRT_TableInstance<TData>;
|
|
2166
1904
|
}
|
|
2167
|
-
declare const MRT_RowActionMenu: <TData extends MRT_RowData>({ anchorEl,
|
|
1905
|
+
declare const MRT_RowActionMenu: <TData extends MRT_RowData>({ anchorEl, row, setAnchorEl, staticRowIndex, table, ...rest }: MRT_RowActionMenuProps<TData>) => react.JSX.Element | null;
|
|
2168
1906
|
|
|
2169
1907
|
interface MRT_ShowHideColumnsMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
|
2170
1908
|
anchorEl: HTMLElement | null;
|
|
@@ -2184,12 +1922,6 @@ interface MRT_ShowHideColumnsMenuItemsProps<TData extends MRT_RowData> extends M
|
|
|
2184
1922
|
}
|
|
2185
1923
|
declare const MRT_ShowHideColumnsMenuItems: <TData extends MRT_RowData>({ allColumns, column, hoveredColumn, isNestedColumns, setHoveredColumn, table, ...rest }: MRT_ShowHideColumnsMenuItemsProps<TData>) => react.JSX.Element | null;
|
|
2186
1924
|
|
|
2187
|
-
interface MRT_EditRowModalProps<TData extends MRT_RowData> extends Partial<DialogProps> {
|
|
2188
|
-
open: boolean;
|
|
2189
|
-
table: MRT_TableInstance<TData>;
|
|
2190
|
-
}
|
|
2191
|
-
declare const MRT_EditRowModal: <TData extends MRT_RowData>({ open, table, ...rest }: MRT_EditRowModalProps<TData>) => react.JSX.Element;
|
|
2192
|
-
|
|
2193
1925
|
interface MRT_NewEntryFormProps<TData extends MRT_RowData> {
|
|
2194
1926
|
table: MRT_TableInstance<TData>;
|
|
2195
1927
|
}
|
|
@@ -2340,4 +2072,4 @@ interface MRT_TopToolbarProps<TData extends MRT_RowData> {
|
|
|
2340
2072
|
}
|
|
2341
2073
|
declare const MRT_TopToolbar: <TData extends MRT_RowData>({ table, }: MRT_TopToolbarProps<TData>) => react.JSX.Element;
|
|
2342
2074
|
|
|
2343
|
-
export { type Action, type ActionRowRenderContext, type ActionToolbarRenderContext, CHECKBOX_DISPLAY_COLUMN_ID, type ColumnType, type ColumnTypeResolver, type CreateDeleteActionOptions, type CreateEditActionOptions, type CreateExportActionOptions, type CustomOnDeleteActionContext, type CustomOnEditActionContext, type CustomOnExportActionContext, type DeleteActionRowRenderContext, type DeleteActionToolbarRenderContext, type DeleteConfirmationConfig, type DistributiveOmit, type DropdownOption, type ExportActionRowRenderContext, type ExportActionToolbarRenderContext, type LiteralUnion, MRT_ActionMenuItem, type MRT_ActionMenuItemProps, type MRT_ActiveExportsState, MRT_AdvancedFilters, type MRT_AdvancedFiltersProps, type MRT_AggregationFn, MRT_AggregationFns, type MRT_AggregationOption, MRT_BottomToolbar, type MRT_BottomToolbarProps, type MRT_Cell, type MRT_Column, MRT_ColumnActionMenu, type MRT_ColumnActionMenuProps, type MRT_ColumnDef, type
|
|
2075
|
+
export { type Action, type ActionRowRenderContext, type ActionToolbarRenderContext, CHECKBOX_DISPLAY_COLUMN_ID, type ColumnType, type ColumnTypeResolver, type CreateDeleteActionOptions, type CreateEditActionOptions, type CreateExportActionOptions, type CustomOnDeleteActionContext, type CustomOnEditActionContext, type CustomOnExportActionContext, type DeleteActionRowRenderContext, type DeleteActionToolbarRenderContext, type DeleteConfirmationConfig, type DistributiveOmit, type DropdownOption, type ExportActionRowRenderContext, type ExportActionToolbarRenderContext, type LiteralUnion, MRT_ActionMenuItem, type MRT_ActionMenuItemProps, type MRT_ActiveExportsState, MRT_AdvancedFilters, type MRT_AdvancedFiltersProps, type MRT_AggregationFn, MRT_AggregationFns, type MRT_AggregationOption, MRT_BottomToolbar, type MRT_BottomToolbarProps, type MRT_Cell, type MRT_Column, MRT_ColumnActionMenu, type MRT_ColumnActionMenuProps, type MRT_ColumnDef, type MRT_ColumnHelper, type MRT_ColumnOrderState, MRT_ColumnPinningButtons, type MRT_ColumnPinningButtonsProps, type MRT_ColumnPinningState, type MRT_ColumnResizingState, type MRT_ColumnSizingState, type MRT_ColumnVirtualizer, MRT_DefaultColumn, MRT_DefaultDisplayColumn, type MRT_DefinedColumnDef, type MRT_DefinedTableOptions, type MRT_DensityState, type MRT_DisplayColumnDef, type MRT_DisplayColumnIds, MRT_ExpandAllButton, type MRT_ExpandAllButtonProps, MRT_ExpandButton, type MRT_ExpandButtonProps, type MRT_ExpandedState, type MRT_ExportDefinition, type MRT_ExportFileResponse, type MRT_ExportParams, MRT_ExportsToolbar, type MRT_ExportsToolbarProps, type MRT_FilterOperator, type MRT_FilterOperatorDefinition, type MRT_FilterOperatorEditComponentProps, type MRT_FilterOperatorValueShape, type MRT_FilterRule, type MRT_FiltersLogicOperator, type MRT_FiltersState, type MRT_FormActionButtonRenderProps, type MRT_FormAdditionalField, type MRT_FormAdditionalFieldRenderProps, type MRT_FormCallbackProps, type MRT_FormConfig, type MRT_FormCustomAction, type MRT_FormFieldConfig, type MRT_FormFieldEntry, type MRT_FormFieldRenderProps, type MRT_FormRenderEntry, type MRT_FormSectionConfig, type MRT_GetRowId, MRT_GrabHandleButton, type MRT_GrabHandleButtonProps, type MRT_GroupColumnDef, type MRT_GroupingState, type MRT_Header, type MRT_HeaderGroup, type MRT_IconColumnDef, type MRT_Icons, type MRT_IconsListEntry, MRT_LinearProgressBar, type MRT_LinearProgressBarProps, type MRT_Localization, type MRT_ModalPosition, MRT_NewEntryForm, MRT_NewEntryFormActions, MRT_NewEntryFormActionsContext, type MRT_NewEntryFormActionsContextValue, type MRT_NewEntryFormActionsProps, type MRT_NewEntryFormProps, MRT_NewEntryFormProvider, type MRT_NewEntryFormProviderProps, MRT_NewEntryModal, type MRT_NewEntryModalOverrides, type MRT_NewEntryModalProps, type MRT_NewEntryModalState, type MRT_NonIconColumnDef, MRT_PaginationBoundsEffect, type MRT_PaginationBoundsEffectProps, type MRT_PaginationState, type MRT_Row, MRT_RowActionMenu, type MRT_RowActionMenuProps, type MRT_RowData, type MRT_RowManipulationInput, type MRT_RowModel, MRT_RowPinButton, type MRT_RowPinButtonProps, type MRT_RowReorderingSelectionState, type MRT_RowSelectionState, type MRT_RowVirtualizer, type MRT_SavedFilter, type MRT_SavedFilters, MRT_SelectAllMenu, type MRT_SelectAllMenuProps, MRT_SelectCheckbox, type MRT_SelectCheckboxProps, MRT_SelectionCountBadge, type MRT_SelectionCountBadgeProps, MRT_ShowHideColumnsButton, type MRT_ShowHideColumnsButtonProps, MRT_ShowHideColumnsMenu, MRT_ShowHideColumnsMenuItems, type MRT_ShowHideColumnsMenuItemsProps, type MRT_ShowHideColumnsMenuProps, type MRT_SortFn, MRT_SortingFns, type MRT_SortingOption, type MRT_SortingState, type MRT_StatefulTableOptions, MRT_Table, MRT_TableBody, MRT_TableBodyCell, type MRT_TableBodyCellProps, MRT_TableBodyCellValue, type MRT_TableBodyCellValueProps, type MRT_TableBodyProps, MRT_TableBodyRow, MRT_TableBodyRowPinButton, type MRT_TableBodyRowPinButtonProps, type MRT_TableBodyRowProps, type MRT_TableConfig, MRT_TableContainer, type MRT_TableContainerProps, type MRT_TableData, MRT_TableDetailPanel, type MRT_TableDetailPanelProps, MRT_TableFooter, MRT_TableFooterCell, type MRT_TableFooterCellProps, type MRT_TableFooterProps, MRT_TableFooterRow, type MRT_TableFooterRowProps, MRT_TableHead, MRT_TableHeadCell, MRT_TableHeadCellColumnActionsButton, type MRT_TableHeadCellColumnActionsButtonProps, MRT_TableHeadCellGrabHandle, type MRT_TableHeadCellGrabHandleProps, type MRT_TableHeadCellProps, MRT_TableHeadCellResizeHandle, type MRT_TableHeadCellResizeHandleProps, MRT_TableHeadCellSortLabel, type MRT_TableHeadCellSortLabelProps, type MRT_TableHeadProps, MRT_TableHeadRow, type MRT_TableHeadRowProps, type MRT_TableInstance, MRT_TableLoadingOverlay, type MRT_TableLoadingOverlayProps, type MRT_TableOptions, MRT_TablePagination, type MRT_TablePaginationProps, MRT_TablePaper, type MRT_TablePaperProps, type MRT_TableProps, type MRT_TableState, type MRT_Theme, MRT_ToggleDensePaddingButton, type MRT_ToggleDensePaddingButtonProps, MRT_ToggleRowActionMenuButton, type MRT_ToggleRowActionMenuButtonProps, MRT_ToolbarAlertBanner, type MRT_ToolbarAlertBannerProps, MRT_ToolbarDropZone, type MRT_ToolbarDropZoneProps, MRT_ToolbarInternalButtons, type MRT_ToolbarInternalButtonsProps, MRT_TopToolbar, type MRT_TopToolbarProps, type MRT_TreeRowReorderEvent, type MRT_Updater, type MRT_VirtualItem, type MRT_VirtualizerOptions, type MRT_VisibilityState, MaterialReactServerTable, type MaterialReactServerTableProps, MaterialReactTable, type MaterialReactTableProps, Memo_MRT_TableBody, Memo_MRT_TableBodyCell, Memo_MRT_TableBodyRow, type OnDeleteActionContext, type OnEditActionContext, type OnExportActionContext, type Prettify, RHF_FormProvider, type RHF_FormProviderProps, type UseServerTableStateOptions, type UseServerTableStateReturn, type Xor, buildDefaultValues, createDeleteAction, createEditAction, createExportAction, createMRTColumnHelper, createRow, defaultDisplayColumnProps, flexRender, getAllLeafColumnDefs, getColumnId, getDefaultColumnOrderIds, getDefaultColumnPinningState, getIsAllPagesSelectionActive, getIsRowSelected, getLeadingDisplayColumnIds, getMRT_RowSelectionHandler, getMRT_Rows, getMRT_SelectAllHandler, getTrailingDisplayColumnIds, groupFieldsBySection, prepareColumns, reorderColumn, resolveFormFields, showRowActionsColumn, showRowExpandColumn, showRowNumbersColumn, showRowPinningColumn, showRowSelectionColumn, showRowSpacerColumn, sortByOrder, toAdditionalRenderEntries, toColumnRenderEntries, useMRT_ColumnVirtualizer, useMRT_NewEntryFormActions, useMRT_RowVirtualizer, useMRT_Rows, useMRT_TableInstance, useMRT_TableOptions, useMaterialReactTable };
|