material-react-table-narender 3.0.3 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +17 -17
- package/dist/index.d.ts +0 -1918
- package/dist/index.esm.js +0 -4363
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -4557
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
DELETED
@@ -1,1918 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { RefObject, Dispatch, SetStateAction, ReactNode, JSX, ChangeEvent, MouseEvent, DragEventHandler } from 'react';
|
3
|
-
import * as _tanstack_react_table from '@tanstack/react-table';
|
4
|
-
import { Row, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowSelectionState, SortingState, Updater, VisibilityState, AccessorFn, DeepKeys, DeepValue, Table, TableState, ColumnDef, Column, Header, HeaderGroup, Cell, AggregationFn, SortingFn, FilterFn, TableOptions, OnChangeFn, Renderable, RowPinningPosition } from '@tanstack/react-table';
|
5
|
-
import { VirtualItem, VirtualizerOptions, Virtualizer } from '@tanstack/react-virtual';
|
6
|
-
import { AlertProps } from '@mui/material/Alert';
|
7
|
-
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
8
|
-
import { BoxProps } from '@mui/material/Box';
|
9
|
-
import { ButtonProps } from '@mui/material/Button';
|
10
|
-
import { CheckboxProps } from '@mui/material/Checkbox';
|
11
|
-
import { ChipProps } from '@mui/material/Chip';
|
12
|
-
import { CircularProgressProps } from '@mui/material/CircularProgress';
|
13
|
-
import { DialogProps } from '@mui/material/Dialog';
|
14
|
-
import { IconButtonProps } from '@mui/material/IconButton';
|
15
|
-
import { LinearProgressProps } from '@mui/material/LinearProgress';
|
16
|
-
import { PaginationProps } from '@mui/material/Pagination';
|
17
|
-
import { PaperProps } from '@mui/material/Paper';
|
18
|
-
import { RadioProps } from '@mui/material/Radio';
|
19
|
-
import { SelectProps } from '@mui/material/Select';
|
20
|
-
import { SkeletonProps } from '@mui/material/Skeleton';
|
21
|
-
import { SliderProps } from '@mui/material/Slider';
|
22
|
-
import { TableProps } from '@mui/material/Table';
|
23
|
-
import { TableBodyProps } from '@mui/material/TableBody';
|
24
|
-
import { TableCellProps } from '@mui/material/TableCell';
|
25
|
-
import { TableContainerProps } from '@mui/material/TableContainer';
|
26
|
-
import { TableFooterProps } from '@mui/material/TableFooter';
|
27
|
-
import { TableHeadProps } from '@mui/material/TableHead';
|
28
|
-
import { TableRowProps } from '@mui/material/TableRow';
|
29
|
-
import { TextFieldProps } from '@mui/material/TextField';
|
30
|
-
import { Theme } from '@mui/material/styles';
|
31
|
-
import * as _mui_x_date_pickers from '@mui/x-date-pickers';
|
32
|
-
import { DatePickerProps, DateTimePickerProps, TimePickerProps } from '@mui/x-date-pickers';
|
33
|
-
import { RankingInfo } from '@tanstack/match-sorter-utils';
|
34
|
-
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
35
|
-
import * as _mui_material from '@mui/material';
|
36
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
37
|
-
import { CollapseProps } from '@mui/material/Collapse';
|
38
|
-
import { DividerProps } from '@mui/material/Divider';
|
39
|
-
import { TableSortLabelProps } from '@mui/material/TableSortLabel';
|
40
|
-
import { MenuItemProps } from '@mui/material/MenuItem';
|
41
|
-
import { MenuProps } from '@mui/material/Menu';
|
42
|
-
|
43
|
-
declare const MRT_AggregationFns: {
|
44
|
-
sum: _tanstack_react_table.AggregationFn<any>;
|
45
|
-
min: _tanstack_react_table.AggregationFn<any>;
|
46
|
-
max: _tanstack_react_table.AggregationFn<any>;
|
47
|
-
extent: _tanstack_react_table.AggregationFn<any>;
|
48
|
-
mean: _tanstack_react_table.AggregationFn<any>;
|
49
|
-
median: _tanstack_react_table.AggregationFn<any>;
|
50
|
-
unique: _tanstack_react_table.AggregationFn<any>;
|
51
|
-
uniqueCount: _tanstack_react_table.AggregationFn<any>;
|
52
|
-
count: _tanstack_react_table.AggregationFn<any>;
|
53
|
-
};
|
54
|
-
|
55
|
-
declare const MRT_FilterFns: {
|
56
|
-
between: {
|
57
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
|
58
|
-
autoRemove(val: any): boolean;
|
59
|
-
};
|
60
|
-
betweenInclusive: {
|
61
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
|
62
|
-
autoRemove(val: any): boolean;
|
63
|
-
};
|
64
|
-
contains: {
|
65
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
66
|
-
autoRemove(val: any): boolean;
|
67
|
-
};
|
68
|
-
empty: {
|
69
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, _filterValue: number | string): boolean;
|
70
|
-
autoRemove(val: any): boolean;
|
71
|
-
};
|
72
|
-
endsWith: {
|
73
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
74
|
-
autoRemove(val: any): boolean;
|
75
|
-
};
|
76
|
-
equals: {
|
77
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
78
|
-
autoRemove(val: any): boolean;
|
79
|
-
};
|
80
|
-
fuzzy: {
|
81
|
-
<TData extends MRT_RowData>(row: Row<TData>, columnId: string, filterValue: number | string, addMeta: (item: RankingInfo) => void): boolean;
|
82
|
-
autoRemove(val: any): boolean;
|
83
|
-
};
|
84
|
-
greaterThan: {
|
85
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
86
|
-
autoRemove(val: any): boolean;
|
87
|
-
};
|
88
|
-
greaterThanOrEqualTo: {
|
89
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
90
|
-
autoRemove(val: any): boolean;
|
91
|
-
};
|
92
|
-
lessThan: {
|
93
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
94
|
-
autoRemove(val: any): boolean;
|
95
|
-
};
|
96
|
-
lessThanOrEqualTo: {
|
97
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
98
|
-
autoRemove(val: any): boolean;
|
99
|
-
};
|
100
|
-
notEmpty: {
|
101
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, _filterValue: number | string): boolean;
|
102
|
-
autoRemove(val: any): boolean;
|
103
|
-
};
|
104
|
-
notEquals: {
|
105
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
106
|
-
autoRemove(val: any): boolean;
|
107
|
-
};
|
108
|
-
startsWith: {
|
109
|
-
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
110
|
-
autoRemove(val: any): boolean;
|
111
|
-
};
|
112
|
-
includesString: _tanstack_react_table.FilterFn<any>;
|
113
|
-
includesStringSensitive: _tanstack_react_table.FilterFn<any>;
|
114
|
-
equalsString: _tanstack_react_table.FilterFn<any>;
|
115
|
-
arrIncludes: _tanstack_react_table.FilterFn<any>;
|
116
|
-
arrIncludesAll: _tanstack_react_table.FilterFn<any>;
|
117
|
-
arrIncludesSome: _tanstack_react_table.FilterFn<any>;
|
118
|
-
weakEquals: _tanstack_react_table.FilterFn<any>;
|
119
|
-
inNumberRange: _tanstack_react_table.FilterFn<any>;
|
120
|
-
};
|
121
|
-
|
122
|
-
declare const MRT_SortingFns: {
|
123
|
-
fuzzy: <TData extends MRT_RowData>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
|
124
|
-
alphanumeric: _tanstack_react_table.SortingFn<any>;
|
125
|
-
alphanumericCaseSensitive: _tanstack_react_table.SortingFn<any>;
|
126
|
-
text: _tanstack_react_table.SortingFn<any>;
|
127
|
-
textCaseSensitive: _tanstack_react_table.SortingFn<any>;
|
128
|
-
datetime: _tanstack_react_table.SortingFn<any>;
|
129
|
-
basic: _tanstack_react_table.SortingFn<any>;
|
130
|
-
};
|
131
|
-
declare const rankGlobalFuzzy: <TData extends MRT_RowData>(rowA: MRT_Row<TData>, rowB: MRT_Row<TData>) => number;
|
132
|
-
|
133
|
-
declare const MRT_Default_Icons: {
|
134
|
-
readonly ArrowDownwardIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
135
|
-
muiName: string;
|
136
|
-
};
|
137
|
-
readonly ArrowRightIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
138
|
-
muiName: string;
|
139
|
-
};
|
140
|
-
readonly CancelIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
141
|
-
muiName: string;
|
142
|
-
};
|
143
|
-
readonly ChevronLeftIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
144
|
-
muiName: string;
|
145
|
-
};
|
146
|
-
readonly ChevronRightIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
147
|
-
muiName: string;
|
148
|
-
};
|
149
|
-
readonly ClearAllIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
150
|
-
muiName: string;
|
151
|
-
};
|
152
|
-
readonly CloseIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
153
|
-
muiName: string;
|
154
|
-
};
|
155
|
-
readonly ContentCopy: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
156
|
-
muiName: string;
|
157
|
-
};
|
158
|
-
readonly DensityLargeIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
159
|
-
muiName: string;
|
160
|
-
};
|
161
|
-
readonly DensityMediumIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
162
|
-
muiName: string;
|
163
|
-
};
|
164
|
-
readonly DensitySmallIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
165
|
-
muiName: string;
|
166
|
-
};
|
167
|
-
readonly DragHandleIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
168
|
-
muiName: string;
|
169
|
-
};
|
170
|
-
readonly DynamicFeedIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
171
|
-
muiName: string;
|
172
|
-
};
|
173
|
-
readonly EditIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
174
|
-
muiName: string;
|
175
|
-
};
|
176
|
-
readonly ExpandMoreIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
177
|
-
muiName: string;
|
178
|
-
};
|
179
|
-
readonly FilterAltIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
180
|
-
muiName: string;
|
181
|
-
};
|
182
|
-
readonly FilterListIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
183
|
-
muiName: string;
|
184
|
-
};
|
185
|
-
readonly FilterListOffIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
186
|
-
muiName: string;
|
187
|
-
};
|
188
|
-
readonly FirstPageIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
189
|
-
muiName: string;
|
190
|
-
};
|
191
|
-
readonly FullscreenExitIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
192
|
-
muiName: string;
|
193
|
-
};
|
194
|
-
readonly FullscreenIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
195
|
-
muiName: string;
|
196
|
-
};
|
197
|
-
readonly KeyboardDoubleArrowDownIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
198
|
-
muiName: string;
|
199
|
-
};
|
200
|
-
readonly LastPageIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
201
|
-
muiName: string;
|
202
|
-
};
|
203
|
-
readonly MoreHorizIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
204
|
-
muiName: string;
|
205
|
-
};
|
206
|
-
readonly MoreVertIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
207
|
-
muiName: string;
|
208
|
-
};
|
209
|
-
readonly PushPinIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
210
|
-
muiName: string;
|
211
|
-
};
|
212
|
-
readonly RestartAltIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
213
|
-
muiName: string;
|
214
|
-
};
|
215
|
-
readonly SaveIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
216
|
-
muiName: string;
|
217
|
-
};
|
218
|
-
readonly SearchIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
219
|
-
muiName: string;
|
220
|
-
};
|
221
|
-
readonly SearchOffIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
222
|
-
muiName: string;
|
223
|
-
};
|
224
|
-
readonly SortIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
225
|
-
muiName: string;
|
226
|
-
};
|
227
|
-
readonly SyncAltIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
228
|
-
muiName: string;
|
229
|
-
};
|
230
|
-
readonly ViewColumnIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
231
|
-
muiName: string;
|
232
|
-
};
|
233
|
-
readonly VisibilityOffIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
234
|
-
muiName: string;
|
235
|
-
};
|
236
|
-
};
|
237
|
-
type MRT_Icons = Record<keyof typeof MRT_Default_Icons, any>;
|
238
|
-
|
239
|
-
type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);
|
240
|
-
type Prettify<T> = {
|
241
|
-
[K in keyof T]: T[K];
|
242
|
-
} & unknown;
|
243
|
-
type Xor<A, B> = Prettify<A & {
|
244
|
-
[k in keyof B]?: never;
|
245
|
-
}> | Prettify<B & {
|
246
|
-
[k in keyof A]?: never;
|
247
|
-
}>;
|
248
|
-
type DropdownOption = {
|
249
|
-
label?: string;
|
250
|
-
value: any;
|
251
|
-
} | string;
|
252
|
-
type MRT_DensityState = 'comfortable' | 'compact' | 'spacious';
|
253
|
-
type MRT_ColumnFilterFnsState = Record<string, MRT_FilterOption>;
|
254
|
-
type MRT_RowData = Record<string, any>;
|
255
|
-
type MRT_ColumnFiltersState = ColumnFiltersState;
|
256
|
-
type MRT_ColumnOrderState = ColumnOrderState;
|
257
|
-
type MRT_ColumnPinningState = ColumnPinningState;
|
258
|
-
type MRT_ColumnSizingInfoState = ColumnSizingInfoState;
|
259
|
-
type MRT_ColumnSizingState = ColumnSizingState;
|
260
|
-
type MRT_ExpandedState = ExpandedState;
|
261
|
-
type MRT_GroupingState = GroupingState;
|
262
|
-
type MRT_PaginationState = PaginationState;
|
263
|
-
type MRT_RowSelectionState = RowSelectionState;
|
264
|
-
type MRT_SortingState = SortingState;
|
265
|
-
type MRT_Updater<T> = Updater<T>;
|
266
|
-
type MRT_VirtualItem = VirtualItem;
|
267
|
-
type MRT_VisibilityState = VisibilityState;
|
268
|
-
type MRT_VirtualizerOptions<TScrollElement extends Element | Window = Element | Window, TItemElement extends Element = Element> = VirtualizerOptions<TScrollElement, TItemElement>;
|
269
|
-
type MRT_ColumnVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement> = Virtualizer<TScrollElement, TItemElement> & {
|
270
|
-
virtualColumns: MRT_VirtualItem[];
|
271
|
-
virtualPaddingLeft?: number;
|
272
|
-
virtualPaddingRight?: number;
|
273
|
-
};
|
274
|
-
type MRT_RowVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement> = Virtualizer<TScrollElement, TItemElement> & {
|
275
|
-
virtualRows: MRT_VirtualItem[];
|
276
|
-
};
|
277
|
-
type MRT_ColumnHelper<TData extends MRT_RowData> = {
|
278
|
-
accessor: <TAccessor extends AccessorFn<TData> | DeepKeys<TData>, TValue extends TAccessor extends AccessorFn<TData, infer TReturn> ? TReturn : TAccessor extends DeepKeys<TData> ? DeepValue<TData, TAccessor> : never>(accessor: TAccessor, column: MRT_DisplayColumnDef<TData, TValue>) => MRT_ColumnDef<TData, TValue>;
|
279
|
-
display: (column: MRT_DisplayColumnDef<TData>) => MRT_ColumnDef<TData>;
|
280
|
-
group: (column: MRT_GroupColumnDef<TData>) => MRT_ColumnDef<TData>;
|
281
|
-
};
|
282
|
-
interface MRT_Localization {
|
283
|
-
actions: string;
|
284
|
-
and: string;
|
285
|
-
cancel: string;
|
286
|
-
changeFilterMode: string;
|
287
|
-
changeSearchMode: string;
|
288
|
-
clearFilter: string;
|
289
|
-
clearSearch: string;
|
290
|
-
clearSelection: string;
|
291
|
-
clearSort: string;
|
292
|
-
clickToCopy: string;
|
293
|
-
collapse: string;
|
294
|
-
collapseAll: string;
|
295
|
-
columnActions: string;
|
296
|
-
copiedToClipboard: string;
|
297
|
-
copy: string;
|
298
|
-
dropToGroupBy: string;
|
299
|
-
edit: string;
|
300
|
-
expand: string;
|
301
|
-
expandAll: string;
|
302
|
-
filterArrIncludes: string;
|
303
|
-
filterArrIncludesAll: string;
|
304
|
-
filterArrIncludesSome: string;
|
305
|
-
filterBetween: string;
|
306
|
-
filterBetweenInclusive: string;
|
307
|
-
filterByColumn: string;
|
308
|
-
filterContains: string;
|
309
|
-
filterEmpty: string;
|
310
|
-
filterEndsWith: string;
|
311
|
-
filterEquals: string;
|
312
|
-
filterEqualsString: string;
|
313
|
-
filterFuzzy: string;
|
314
|
-
filterGreaterThan: string;
|
315
|
-
filterGreaterThanOrEqualTo: string;
|
316
|
-
filterIncludesString: string;
|
317
|
-
filterIncludesStringSensitive: string;
|
318
|
-
filteringByColumn: string;
|
319
|
-
filterInNumberRange: string;
|
320
|
-
filterLessThan: string;
|
321
|
-
filterLessThanOrEqualTo: string;
|
322
|
-
filterMode: string;
|
323
|
-
filterNotEmpty: string;
|
324
|
-
filterNotEquals: string;
|
325
|
-
filterStartsWith: string;
|
326
|
-
filterWeakEquals: string;
|
327
|
-
goToFirstPage: string;
|
328
|
-
goToLastPage: string;
|
329
|
-
goToNextPage: string;
|
330
|
-
goToPreviousPage: string;
|
331
|
-
grab: string;
|
332
|
-
groupByColumn: string;
|
333
|
-
groupedBy: string;
|
334
|
-
hideAll: string;
|
335
|
-
hideColumn: string;
|
336
|
-
max: string;
|
337
|
-
min: string;
|
338
|
-
move: string;
|
339
|
-
noRecordsToDisplay: string;
|
340
|
-
noResultsFound: string;
|
341
|
-
of: string;
|
342
|
-
or: string;
|
343
|
-
pin: string;
|
344
|
-
pinToLeft: string;
|
345
|
-
pinToRight: string;
|
346
|
-
resetColumnSize: string;
|
347
|
-
resetOrder: string;
|
348
|
-
rowActions: string;
|
349
|
-
rowNumber: string;
|
350
|
-
rowNumbers: string;
|
351
|
-
rowsPerPage: string;
|
352
|
-
save: string;
|
353
|
-
search: string;
|
354
|
-
select: string;
|
355
|
-
selectedCountOfRowCountRowsSelected: string;
|
356
|
-
showAll: string;
|
357
|
-
showAllColumns: string;
|
358
|
-
showHideColumns: string;
|
359
|
-
showHideFilters: string;
|
360
|
-
showHideSearch: string;
|
361
|
-
sortByColumnAsc: string;
|
362
|
-
sortByColumnDesc: string;
|
363
|
-
sortedByColumnAsc: string;
|
364
|
-
sortedByColumnDesc: string;
|
365
|
-
thenBy: string;
|
366
|
-
toggleDensity: string;
|
367
|
-
toggleFullScreen: string;
|
368
|
-
toggleSelectAll: string;
|
369
|
-
toggleSelectRow: string;
|
370
|
-
toggleVisibility: string;
|
371
|
-
ungroupByColumn: string;
|
372
|
-
unpin: string;
|
373
|
-
unpinAll: string;
|
374
|
-
}
|
375
|
-
interface MRT_Theme {
|
376
|
-
baseBackgroundColor: string;
|
377
|
-
cellNavigationOutlineColor: string;
|
378
|
-
draggingBorderColor: string;
|
379
|
-
matchHighlightColor: string;
|
380
|
-
menuBackgroundColor: string;
|
381
|
-
pinnedRowBackgroundColor: string;
|
382
|
-
selectedRowBackgroundColor: string;
|
383
|
-
}
|
384
|
-
interface MRT_RowModel<TData extends MRT_RowData> {
|
385
|
-
flatRows: MRT_Row<TData>[];
|
386
|
-
rows: MRT_Row<TData>[];
|
387
|
-
rowsById: {
|
388
|
-
[key: string]: MRT_Row<TData>;
|
389
|
-
};
|
390
|
-
}
|
391
|
-
type MRT_TableInstance<TData extends MRT_RowData> = Omit<Table<TData>, 'getAllColumns' | 'getAllFlatColumns' | 'getAllLeafColumns' | 'getBottomRows' | 'getCenterLeafColumns' | 'getCenterRows' | 'getColumn' | 'getExpandedRowModel' | 'getFlatHeaders' | 'getFooterGroups' | 'getHeaderGroups' | 'getLeafHeaders' | 'getLeftLeafColumns' | 'getPaginationRowModel' | 'getPreFilteredRowModel' | 'getPrePaginationRowModel' | 'getRightLeafColumns' | 'getRowModel' | 'getSelectedRowModel' | 'getState' | 'getTopRows' | 'options'> & {
|
392
|
-
getAllColumns: () => MRT_Column<TData>[];
|
393
|
-
getAllFlatColumns: () => MRT_Column<TData>[];
|
394
|
-
getAllLeafColumns: () => MRT_Column<TData>[];
|
395
|
-
getBottomRows: () => MRT_Row<TData>[];
|
396
|
-
getCenterLeafColumns: () => MRT_Column<TData>[];
|
397
|
-
getCenterRows: () => MRT_Row<TData>[];
|
398
|
-
getColumn: (columnId: string) => MRT_Column<TData>;
|
399
|
-
getExpandedRowModel: () => MRT_RowModel<TData>;
|
400
|
-
getFlatHeaders: () => MRT_Header<TData>[];
|
401
|
-
getFooterGroups: () => MRT_HeaderGroup<TData>[];
|
402
|
-
getHeaderGroups: () => MRT_HeaderGroup<TData>[];
|
403
|
-
getLeafHeaders: () => MRT_Header<TData>[];
|
404
|
-
getLeftLeafColumns: () => MRT_Column<TData>[];
|
405
|
-
getPaginationRowModel: () => MRT_RowModel<TData>;
|
406
|
-
getPreFilteredRowModel: () => MRT_RowModel<TData>;
|
407
|
-
getPrePaginationRowModel: () => MRT_RowModel<TData>;
|
408
|
-
getRightLeafColumns: () => MRT_Column<TData>[];
|
409
|
-
getRowModel: () => MRT_RowModel<TData>;
|
410
|
-
getSelectedRowModel: () => MRT_RowModel<TData>;
|
411
|
-
getState: () => MRT_TableState<TData>;
|
412
|
-
getTopRows: () => MRT_Row<TData>[];
|
413
|
-
options: MRT_StatefulTableOptions<TData>;
|
414
|
-
refs: {
|
415
|
-
actionCellRef: RefObject<HTMLTableCellElement | null>;
|
416
|
-
bottomToolbarRef: RefObject<HTMLDivElement | null>;
|
417
|
-
editInputRefs: RefObject<Record<string, HTMLInputElement> | null>;
|
418
|
-
filterInputRefs: RefObject<Record<string, HTMLInputElement> | null>;
|
419
|
-
lastSelectedRowId: RefObject<null | string>;
|
420
|
-
searchInputRef: RefObject<HTMLInputElement | null>;
|
421
|
-
tableContainerRef: RefObject<HTMLDivElement | null>;
|
422
|
-
tableFooterRef: RefObject<HTMLTableSectionElement | null>;
|
423
|
-
tableHeadCellRefs: RefObject<Record<string, HTMLTableCellElement> | null>;
|
424
|
-
tableHeadRef: RefObject<HTMLTableSectionElement | null>;
|
425
|
-
tablePaperRef: RefObject<HTMLDivElement | null>;
|
426
|
-
topToolbarRef: RefObject<HTMLDivElement | null>;
|
427
|
-
};
|
428
|
-
setActionCell: Dispatch<SetStateAction<MRT_Cell<TData> | null>>;
|
429
|
-
setColumnFilterFns: Dispatch<SetStateAction<MRT_ColumnFilterFnsState>>;
|
430
|
-
setCreatingRow: Dispatch<SetStateAction<MRT_Row<TData> | null | true>>;
|
431
|
-
setDensity: Dispatch<SetStateAction<MRT_DensityState>>;
|
432
|
-
setDraggingColumn: Dispatch<SetStateAction<MRT_Column<TData> | null>>;
|
433
|
-
setDraggingRow: Dispatch<SetStateAction<MRT_Row<TData> | null>>;
|
434
|
-
setEditingCell: Dispatch<SetStateAction<MRT_Cell<TData> | null>>;
|
435
|
-
setEditingRow: Dispatch<SetStateAction<MRT_Row<TData> | null>>;
|
436
|
-
setGlobalFilterFn: Dispatch<SetStateAction<MRT_FilterOption>>;
|
437
|
-
setHoveredColumn: Dispatch<SetStateAction<Partial<MRT_Column<TData>> | null>>;
|
438
|
-
setHoveredRow: Dispatch<SetStateAction<Partial<MRT_Row<TData>> | null>>;
|
439
|
-
setIsFullScreen: Dispatch<SetStateAction<boolean>>;
|
440
|
-
setShowAlertBanner: Dispatch<SetStateAction<boolean>>;
|
441
|
-
setShowColumnFilters: Dispatch<SetStateAction<boolean>>;
|
442
|
-
setShowGlobalFilter: Dispatch<SetStateAction<boolean>>;
|
443
|
-
setShowToolbarDropZone: Dispatch<SetStateAction<boolean>>;
|
444
|
-
};
|
445
|
-
type MRT_DefinedTableOptions<TData extends MRT_RowData> = Omit<MRT_TableOptions<TData>, 'icons' | 'localization' | 'mrtTheme'> & {
|
446
|
-
icons: MRT_Icons;
|
447
|
-
localization: MRT_Localization;
|
448
|
-
mrtTheme: Required<MRT_Theme>;
|
449
|
-
};
|
450
|
-
type MRT_StatefulTableOptions<TData extends MRT_RowData> = MRT_DefinedTableOptions<TData> & {
|
451
|
-
state: Pick<MRT_TableState<TData>, 'columnFilterFns' | 'columnOrder' | 'columnSizingInfo' | 'creatingRow' | 'density' | 'draggingColumn' | 'draggingRow' | 'editingCell' | 'editingRow' | 'globalFilterFn' | 'grouping' | 'hoveredColumn' | 'hoveredRow' | 'isFullScreen' | 'pagination' | 'showAlertBanner' | 'showColumnFilters' | 'showGlobalFilter' | 'showToolbarDropZone'>;
|
452
|
-
};
|
453
|
-
interface MRT_TableState<TData extends MRT_RowData> extends TableState {
|
454
|
-
actionCell?: MRT_Cell<TData> | null;
|
455
|
-
columnFilterFns: MRT_ColumnFilterFnsState;
|
456
|
-
creatingRow: MRT_Row<TData> | null;
|
457
|
-
density: MRT_DensityState;
|
458
|
-
draggingColumn: MRT_Column<TData> | null;
|
459
|
-
draggingRow: MRT_Row<TData> | null;
|
460
|
-
editingCell: MRT_Cell<TData> | null;
|
461
|
-
editingRow: MRT_Row<TData> | null;
|
462
|
-
globalFilterFn: MRT_FilterOption;
|
463
|
-
hoveredColumn: Partial<MRT_Column<TData>> | null;
|
464
|
-
hoveredRow: Partial<MRT_Row<TData>> | null;
|
465
|
-
isFullScreen: boolean;
|
466
|
-
isLoading: boolean;
|
467
|
-
isSaving: boolean;
|
468
|
-
showAlertBanner: boolean;
|
469
|
-
showColumnFilters: boolean;
|
470
|
-
showGlobalFilter: boolean;
|
471
|
-
showLoadingOverlay: boolean;
|
472
|
-
showProgressBars: boolean;
|
473
|
-
showSkeletons: boolean;
|
474
|
-
showToolbarDropZone: boolean;
|
475
|
-
}
|
476
|
-
interface MRT_ColumnDef<TData extends MRT_RowData, TValue = unknown> extends Omit<ColumnDef<TData, TValue>, 'accessorKey' | 'aggregatedCell' | 'aggregationFn' | 'cell' | 'columns' | 'filterFn' | 'footer' | 'header' | 'id' | 'sortingFn'> {
|
477
|
-
/**
|
478
|
-
* Either an `accessorKey` or a combination of an `accessorFn` and `id` are required for a data column definition.
|
479
|
-
* Specify a function here to point to the correct property in the data object.
|
480
|
-
*
|
481
|
-
* @example accessorFn: (row) => row.username
|
482
|
-
*/
|
483
|
-
accessorFn?: (originalRow: TData) => TValue;
|
484
|
-
/**
|
485
|
-
* Either an `accessorKey` or a combination of an `accessorFn` and `id` are required for a data column definition.
|
486
|
-
* Specify which key in the row this column should use to access the correct data.
|
487
|
-
* Also supports Deep Key Dot Notation.
|
488
|
-
*
|
489
|
-
* @example accessorKey: 'username' //simple
|
490
|
-
* @example accessorKey: 'name.firstName' //deep key dot notation
|
491
|
-
*/
|
492
|
-
accessorKey?: DeepKeys<TData> | (string & {});
|
493
|
-
AggregatedCell?: (props: {
|
494
|
-
cell: MRT_Cell<TData, TValue>;
|
495
|
-
column: MRT_Column<TData, TValue>;
|
496
|
-
row: MRT_Row<TData>;
|
497
|
-
table: MRT_TableInstance<TData>;
|
498
|
-
staticColumnIndex?: number;
|
499
|
-
staticRowIndex?: number;
|
500
|
-
}) => ReactNode;
|
501
|
-
aggregationFn?: Array<MRT_AggregationFn<TData>> | MRT_AggregationFn<TData>;
|
502
|
-
Cell?: (props: {
|
503
|
-
cell: MRT_Cell<TData, TValue>;
|
504
|
-
column: MRT_Column<TData, TValue>;
|
505
|
-
renderedCellValue: ReactNode;
|
506
|
-
row: MRT_Row<TData>;
|
507
|
-
rowRef?: RefObject<HTMLTableRowElement | null>;
|
508
|
-
staticColumnIndex?: number;
|
509
|
-
staticRowIndex?: number;
|
510
|
-
table: MRT_TableInstance<TData>;
|
511
|
-
}) => ReactNode;
|
512
|
-
/**
|
513
|
-
* Specify what type of column this is. Either `data`, `display`, or `group`. Defaults to `data`.
|
514
|
-
* Leave this blank if you are just creating a normal data column.
|
515
|
-
*
|
516
|
-
* @default 'data'
|
517
|
-
*
|
518
|
-
* @example columnDefType: 'display'
|
519
|
-
*/
|
520
|
-
columnDefType?: 'data' | 'display' | 'group';
|
521
|
-
columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
|
522
|
-
columns?: MRT_ColumnDef<TData, TValue>[];
|
523
|
-
Edit?: (props: {
|
524
|
-
cell: MRT_Cell<TData, TValue>;
|
525
|
-
column: MRT_Column<TData, TValue>;
|
526
|
-
row: MRT_Row<TData>;
|
527
|
-
table: MRT_TableInstance<TData>;
|
528
|
-
}) => ReactNode;
|
529
|
-
editSelectOptions?: ((props: {
|
530
|
-
cell: MRT_Cell<TData, TValue>;
|
531
|
-
column: MRT_Column<TData>;
|
532
|
-
row: MRT_Row<TData>;
|
533
|
-
table: MRT_TableInstance<TData>;
|
534
|
-
}) => DropdownOption[]) | DropdownOption[];
|
535
|
-
editVariant?: 'select' | 'text';
|
536
|
-
enableClickToCopy?: 'context-menu' | ((cell: MRT_Cell<TData>) => 'context-menu' | boolean) | boolean;
|
537
|
-
enableColumnActions?: boolean;
|
538
|
-
enableColumnDragging?: boolean;
|
539
|
-
enableColumnFilterModes?: boolean;
|
540
|
-
enableColumnOrdering?: boolean;
|
541
|
-
enableEditing?: ((row: MRT_Row<TData>) => boolean) | boolean;
|
542
|
-
enableFilterMatchHighlighting?: boolean;
|
543
|
-
Filter?: (props: {
|
544
|
-
column: MRT_Column<TData, TValue>;
|
545
|
-
header: MRT_Header<TData>;
|
546
|
-
rangeFilterIndex?: number;
|
547
|
-
table: MRT_TableInstance<TData>;
|
548
|
-
}) => ReactNode;
|
549
|
-
filterFn?: MRT_FilterFn<TData>;
|
550
|
-
filterSelectOptions?: DropdownOption[];
|
551
|
-
filterVariant?: 'autocomplete' | 'checkbox' | 'date' | 'date-range' | 'datetime' | 'datetime-range' | 'multi-select' | 'range' | 'range-slider' | 'select' | 'text' | 'time' | 'time-range';
|
552
|
-
/**
|
553
|
-
* footer must be a string. If you want custom JSX to render the footer, you can also specify a `Footer` option. (Capital F)
|
554
|
-
*/
|
555
|
-
footer?: string;
|
556
|
-
Footer?: ((props: {
|
557
|
-
column: MRT_Column<TData, TValue>;
|
558
|
-
footer: MRT_Header<TData>;
|
559
|
-
table: MRT_TableInstance<TData>;
|
560
|
-
}) => ReactNode) | ReactNode;
|
561
|
-
GroupedCell?: (props: {
|
562
|
-
cell: MRT_Cell<TData, TValue>;
|
563
|
-
column: MRT_Column<TData, TValue>;
|
564
|
-
row: MRT_Row<TData>;
|
565
|
-
table: MRT_TableInstance<TData>;
|
566
|
-
staticColumnIndex?: number;
|
567
|
-
staticRowIndex?: number;
|
568
|
-
}) => ReactNode;
|
569
|
-
/**
|
570
|
-
* If `layoutMode` is `'grid'` or `'grid-no-grow'`, you can specify the flex grow value for individual columns to still grow and take up remaining space, or set to `false`/0 to not grow.
|
571
|
-
*/
|
572
|
-
grow?: boolean | number;
|
573
|
-
/**
|
574
|
-
* header must be a string. If you want custom JSX to render the header, you can also specify a `Header` option. (Capital H)
|
575
|
-
*/
|
576
|
-
header: string;
|
577
|
-
Header?: ((props: {
|
578
|
-
column: MRT_Column<TData, TValue>;
|
579
|
-
header: MRT_Header<TData>;
|
580
|
-
table: MRT_TableInstance<TData>;
|
581
|
-
}) => ReactNode) | ReactNode;
|
582
|
-
/**
|
583
|
-
* Either an `accessorKey` or a combination of an `accessorFn` and `id` are required for a data column definition.
|
584
|
-
*
|
585
|
-
* If you have also specified an `accessorFn`, MRT still needs to have a valid `id` to be able to identify the column uniquely.
|
586
|
-
*
|
587
|
-
* `id` defaults to the `accessorKey` or `header` if not specified.
|
588
|
-
*
|
589
|
-
* @default gets set to the same value as `accessorKey` by default
|
590
|
-
*/
|
591
|
-
id?: LiteralUnion<string & keyof TData>;
|
592
|
-
muiColumnActionsButtonProps?: ((props: {
|
593
|
-
column: MRT_Column<TData>;
|
594
|
-
table: MRT_TableInstance<TData>;
|
595
|
-
}) => IconButtonProps) | IconButtonProps;
|
596
|
-
muiColumnDragHandleProps?: ((props: {
|
597
|
-
column: MRT_Column<TData>;
|
598
|
-
table: MRT_TableInstance<TData>;
|
599
|
-
}) => IconButtonProps) | IconButtonProps;
|
600
|
-
muiCopyButtonProps?: ((props: {
|
601
|
-
cell: MRT_Cell<TData, TValue>;
|
602
|
-
column: MRT_Column<TData>;
|
603
|
-
row: MRT_Row<TData>;
|
604
|
-
table: MRT_TableInstance<TData>;
|
605
|
-
}) => ButtonProps) | ButtonProps;
|
606
|
-
muiEditTextFieldProps?: ((props: {
|
607
|
-
cell: MRT_Cell<TData, TValue>;
|
608
|
-
column: MRT_Column<TData>;
|
609
|
-
row: MRT_Row<TData>;
|
610
|
-
table: MRT_TableInstance<TData>;
|
611
|
-
}) => TextFieldProps) | TextFieldProps;
|
612
|
-
muiFilterAutocompleteProps?: ((props: {
|
613
|
-
column: MRT_Column<TData>;
|
614
|
-
table: MRT_TableInstance<TData>;
|
615
|
-
}) => AutocompleteProps<any, any, any, any>) | AutocompleteProps<any, any, any, any>;
|
616
|
-
muiFilterCheckboxProps?: ((props: {
|
617
|
-
column: MRT_Column<TData>;
|
618
|
-
table: MRT_TableInstance<TData>;
|
619
|
-
}) => CheckboxProps) | CheckboxProps;
|
620
|
-
muiFilterDatePickerProps?: ((props: {
|
621
|
-
column: MRT_Column<TData>;
|
622
|
-
rangeFilterIndex?: number;
|
623
|
-
table: MRT_TableInstance<TData>;
|
624
|
-
}) => DatePickerProps<never>) | DatePickerProps<never>;
|
625
|
-
muiFilterDateTimePickerProps?: ((props: {
|
626
|
-
column: MRT_Column<TData>;
|
627
|
-
rangeFilterIndex?: number;
|
628
|
-
table: MRT_TableInstance<TData>;
|
629
|
-
}) => DateTimePickerProps<never>) | DateTimePickerProps<never>;
|
630
|
-
muiFilterSliderProps?: ((props: {
|
631
|
-
column: MRT_Column<TData>;
|
632
|
-
table: MRT_TableInstance<TData>;
|
633
|
-
}) => SliderProps) | SliderProps;
|
634
|
-
muiFilterTextFieldProps?: ((props: {
|
635
|
-
column: MRT_Column<TData>;
|
636
|
-
rangeFilterIndex?: number;
|
637
|
-
table: MRT_TableInstance<TData>;
|
638
|
-
}) => TextFieldProps) | TextFieldProps;
|
639
|
-
muiFilterTimePickerProps?: ((props: {
|
640
|
-
column: MRT_Column<TData>;
|
641
|
-
rangeFilterIndex?: number;
|
642
|
-
table: MRT_TableInstance<TData>;
|
643
|
-
}) => TimePickerProps<never>) | TimePickerProps<never>;
|
644
|
-
muiTableBodyCellProps?: ((props: {
|
645
|
-
cell: MRT_Cell<TData, TValue>;
|
646
|
-
column: MRT_Column<TData>;
|
647
|
-
row: MRT_Row<TData>;
|
648
|
-
table: MRT_TableInstance<TData>;
|
649
|
-
}) => TableCellProps) | TableCellProps;
|
650
|
-
muiTableFooterCellProps?: ((props: {
|
651
|
-
column: MRT_Column<TData>;
|
652
|
-
table: MRT_TableInstance<TData>;
|
653
|
-
}) => TableCellProps) | TableCellProps;
|
654
|
-
muiTableHeadCellProps?: ((props: {
|
655
|
-
column: MRT_Column<TData>;
|
656
|
-
table: MRT_TableInstance<TData>;
|
657
|
-
}) => TableCellProps) | TableCellProps;
|
658
|
-
PlaceholderCell?: (props: {
|
659
|
-
cell: MRT_Cell<TData, TValue>;
|
660
|
-
column: MRT_Column<TData, TValue>;
|
661
|
-
row: MRT_Row<TData>;
|
662
|
-
table: MRT_TableInstance<TData>;
|
663
|
-
}) => ReactNode;
|
664
|
-
renderCellActionMenuItems?: (props: {
|
665
|
-
cell: MRT_Cell<TData>;
|
666
|
-
closeMenu: () => void;
|
667
|
-
column: MRT_Column<TData>;
|
668
|
-
internalMenuItems: ReactNode[];
|
669
|
-
row: MRT_Row<TData>;
|
670
|
-
staticColumnIndex?: number;
|
671
|
-
staticRowIndex?: number;
|
672
|
-
table: MRT_TableInstance<TData>;
|
673
|
-
}) => ReactNode[];
|
674
|
-
renderColumnActionsMenuItems?: (props: {
|
675
|
-
closeMenu: () => void;
|
676
|
-
column: MRT_Column<TData>;
|
677
|
-
internalColumnMenuItems: ReactNode[];
|
678
|
-
table: MRT_TableInstance<TData>;
|
679
|
-
}) => ReactNode[];
|
680
|
-
renderColumnFilterModeMenuItems?: (props: {
|
681
|
-
column: MRT_Column<TData>;
|
682
|
-
internalFilterOptions: MRT_InternalFilterOption[];
|
683
|
-
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
684
|
-
table: MRT_TableInstance<TData>;
|
685
|
-
}) => ReactNode[];
|
686
|
-
sortingFn?: MRT_SortingFn<TData>;
|
687
|
-
visibleInShowHideMenu?: boolean;
|
688
|
-
}
|
689
|
-
type MRT_DisplayColumnDef<TData extends MRT_RowData, TValue = unknown> = Omit<MRT_ColumnDef<TData, TValue>, 'accessorFn' | 'accessorKey'>;
|
690
|
-
type MRT_GroupColumnDef<TData extends MRT_RowData> = MRT_DisplayColumnDef<TData, any> & {
|
691
|
-
columns: MRT_ColumnDef<TData>[];
|
692
|
-
};
|
693
|
-
type MRT_DefinedColumnDef<TData extends MRT_RowData, TValue = unknown> = Omit<MRT_ColumnDef<TData, TValue>, 'defaultDisplayColumn' | 'id'> & {
|
694
|
-
_filterFn: MRT_FilterOption;
|
695
|
-
defaultDisplayColumn: Partial<MRT_ColumnDef<TData, TValue>>;
|
696
|
-
id: string;
|
697
|
-
};
|
698
|
-
type MRT_Column<TData extends MRT_RowData, TValue = unknown> = Omit<Column<TData, TValue>, 'columnDef' | 'columns' | 'filterFn' | 'footer' | 'header'> & {
|
699
|
-
columnDef: MRT_DefinedColumnDef<TData, TValue>;
|
700
|
-
columns?: MRT_Column<TData, TValue>[];
|
701
|
-
filterFn?: MRT_FilterFn<TData>;
|
702
|
-
footer: string;
|
703
|
-
header: string;
|
704
|
-
};
|
705
|
-
type MRT_Header<TData extends MRT_RowData> = Omit<Header<TData, unknown>, 'column'> & {
|
706
|
-
column: MRT_Column<TData>;
|
707
|
-
};
|
708
|
-
type MRT_HeaderGroup<TData extends MRT_RowData> = Omit<HeaderGroup<TData>, 'headers'> & {
|
709
|
-
headers: MRT_Header<TData>[];
|
710
|
-
};
|
711
|
-
type MRT_Row<TData extends MRT_RowData> = Omit<Row<TData>, '_valuesCache' | 'getAllCells' | 'getParentRow' | 'getParentRows' | 'getRow' | 'getVisibleCells' | 'subRows'> & {
|
712
|
-
_valuesCache: Record<LiteralUnion<string & DeepKeys<TData>>, any>;
|
713
|
-
getAllCells: () => MRT_Cell<TData>[];
|
714
|
-
getParentRow: () => MRT_Row<TData> | null;
|
715
|
-
getParentRows: () => MRT_Row<TData>[];
|
716
|
-
getRow: () => MRT_Row<TData>;
|
717
|
-
getVisibleCells: () => MRT_Cell<TData>[];
|
718
|
-
subRows?: MRT_Row<TData>[];
|
719
|
-
};
|
720
|
-
type MRT_Cell<TData extends MRT_RowData, TValue = unknown> = Omit<Cell<TData, TValue>, 'column' | 'row'> & {
|
721
|
-
column: MRT_Column<TData, TValue>;
|
722
|
-
row: MRT_Row<TData>;
|
723
|
-
};
|
724
|
-
type MRT_AggregationOption = string & keyof typeof MRT_AggregationFns;
|
725
|
-
type MRT_AggregationFn<TData extends MRT_RowData> = AggregationFn<TData> | MRT_AggregationOption;
|
726
|
-
type MRT_SortingOption = LiteralUnion<string & keyof typeof MRT_SortingFns>;
|
727
|
-
type MRT_SortingFn<TData extends MRT_RowData> = MRT_SortingOption | SortingFn<TData>;
|
728
|
-
type MRT_FilterOption = LiteralUnion<string & keyof typeof MRT_FilterFns>;
|
729
|
-
type MRT_FilterFn<TData extends MRT_RowData> = FilterFn<TData> | MRT_FilterOption;
|
730
|
-
type MRT_InternalFilterOption = {
|
731
|
-
divider: boolean;
|
732
|
-
label: string;
|
733
|
-
option: string;
|
734
|
-
symbol: string;
|
735
|
-
};
|
736
|
-
type MRT_DisplayColumnIds = 'mrt-row-actions' | 'mrt-row-drag' | 'mrt-row-expand' | 'mrt-row-numbers' | 'mrt-row-pin' | 'mrt-row-select' | 'mrt-row-spacer';
|
737
|
-
/**
|
738
|
-
* `columns` and `data` props are the only required props, but there are over 170 other optional props.
|
739
|
-
*
|
740
|
-
* See more info on creating columns and data on the official docs site:
|
741
|
-
* @link https://www.material-react-table.com/docs/getting-started/usage
|
742
|
-
*
|
743
|
-
* See the full props list on the official docs site:
|
744
|
-
* @link https://www.material-react-table.com/docs/api/props
|
745
|
-
*/
|
746
|
-
interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> {
|
747
|
-
columnFilterDisplayMode?: 'custom' | 'popover' | 'subheader';
|
748
|
-
columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
|
749
|
-
/**
|
750
|
-
* The columns to display in the table. `accessorKey`s or `accessorFn`s must match keys in the `data` table option.
|
751
|
-
*
|
752
|
-
* See more info on creating columns on the official docs site:
|
753
|
-
* @link https://www.material-react-table.com/docs/guides/data-columns
|
754
|
-
* @link https://www.material-react-table.com/docs/guides/display-columns
|
755
|
-
*
|
756
|
-
* See all Columns Options on the official docs site:
|
757
|
-
* @link https://www.material-react-table.com/docs/api/column-options
|
758
|
-
*/
|
759
|
-
columns: MRT_ColumnDef<TData, any>[];
|
760
|
-
columnVirtualizerInstanceRef?: RefObject<MRT_ColumnVirtualizer | null>;
|
761
|
-
columnVirtualizerOptions?: ((props: {
|
762
|
-
table: MRT_TableInstance<TData>;
|
763
|
-
}) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>) | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>;
|
764
|
-
createDisplayMode?: 'custom' | 'modal' | 'row';
|
765
|
-
/**
|
766
|
-
* Pass your data as an array of objects. Objects can theoretically be any shape, but it's best to keep them consistent.
|
767
|
-
*
|
768
|
-
* See the usage guide for more info on creating columns and data:
|
769
|
-
* @link https://www.material-react-table.com/docs/getting-started/usage
|
770
|
-
*/
|
771
|
-
data: TData[];
|
772
|
-
/**
|
773
|
-
* Instead of specifying a bunch of the same options for each column, you can just change an option in the `defaultColumn` table option to change a default option for all columns.
|
774
|
-
*/
|
775
|
-
defaultColumn?: Partial<MRT_ColumnDef<TData>>;
|
776
|
-
/**
|
777
|
-
* Change the default options for display columns.
|
778
|
-
*/
|
779
|
-
defaultDisplayColumn?: Partial<MRT_DisplayColumnDef<TData>>;
|
780
|
-
displayColumnDefOptions?: Partial<{
|
781
|
-
[key in MRT_DisplayColumnIds]: Partial<MRT_DisplayColumnDef<TData>>;
|
782
|
-
}>;
|
783
|
-
editDisplayMode?: 'cell' | 'custom' | 'modal' | 'row' | 'table';
|
784
|
-
enableBatchRowSelection?: boolean;
|
785
|
-
enableBottomToolbar?: boolean;
|
786
|
-
enableCellActions?: ((cell: MRT_Cell<TData>) => boolean) | boolean;
|
787
|
-
enableClickToCopy?: 'context-menu' | ((cell: MRT_Cell<TData>) => 'context-menu' | boolean) | boolean;
|
788
|
-
enableColumnActions?: boolean;
|
789
|
-
enableColumnDragging?: boolean;
|
790
|
-
enableColumnFilterModes?: boolean;
|
791
|
-
enableColumnOrdering?: boolean;
|
792
|
-
enableColumnVirtualization?: boolean;
|
793
|
-
enableDensityToggle?: boolean;
|
794
|
-
enableEditing?: ((row: MRT_Row<TData>) => boolean) | boolean;
|
795
|
-
enableExpandAll?: boolean;
|
796
|
-
enableFacetedValues?: boolean;
|
797
|
-
enableFilterMatchHighlighting?: boolean;
|
798
|
-
enableFullScreenToggle?: boolean;
|
799
|
-
enableGlobalFilterModes?: boolean;
|
800
|
-
enableGlobalFilterRankedResults?: boolean;
|
801
|
-
enableKeyboardShortcuts?: boolean;
|
802
|
-
enablePagination?: boolean;
|
803
|
-
enableRowActions?: boolean;
|
804
|
-
enableRowDragging?: boolean;
|
805
|
-
enableRowNumbers?: boolean;
|
806
|
-
enableRowOrdering?: boolean;
|
807
|
-
enableRowSelection?: ((row: MRT_Row<TData>) => boolean) | boolean;
|
808
|
-
enableRowVirtualization?: boolean;
|
809
|
-
enableSelectAll?: boolean;
|
810
|
-
enableStickyFooter?: boolean;
|
811
|
-
enableStickyHeader?: boolean;
|
812
|
-
enableTableFooter?: boolean;
|
813
|
-
enableTableHead?: boolean;
|
814
|
-
enableToolbarInternalActions?: boolean;
|
815
|
-
enableTopToolbar?: boolean;
|
816
|
-
expandRowsFn?: (dataRow: TData) => TData[];
|
817
|
-
getRowId?: (originalRow: TData, index: number, parentRow: MRT_Row<TData>) => string;
|
818
|
-
globalFilterFn?: MRT_FilterOption;
|
819
|
-
globalFilterModeOptions?: MRT_FilterOption[] | null;
|
820
|
-
icons?: Partial<MRT_Icons>;
|
821
|
-
id?: string;
|
822
|
-
initialState?: Partial<MRT_TableState<TData>>;
|
823
|
-
/**
|
824
|
-
* Changes which kind of CSS layout is used to render the table. `semantic` uses default semantic HTML elements, while `grid` adds CSS grid and flexbox styles
|
825
|
-
*/
|
826
|
-
layoutMode?: 'grid' | 'grid-no-grow' | 'semantic';
|
827
|
-
/**
|
828
|
-
* Pass in either a locale imported from `material-react-table/locales/*` or a custom locale object.
|
829
|
-
*
|
830
|
-
* See the localization (i18n) guide for more info:
|
831
|
-
* @link https://www.material-react-table.com/docs/guides/localization
|
832
|
-
*/
|
833
|
-
localization?: Partial<MRT_Localization>;
|
834
|
-
/**
|
835
|
-
* Memoize cells, rows, or the entire table body to potentially improve render performance.
|
836
|
-
*
|
837
|
-
* @warning This will break some dynamic rendering features. See the memoization guide for more info:
|
838
|
-
* @link https://www.material-react-table.com/docs/guides/memoize-components
|
839
|
-
*/
|
840
|
-
memoMode?: 'cells' | 'rows' | 'table-body';
|
841
|
-
mrtTheme?: ((theme: Theme) => Partial<MRT_Theme>) | Partial<MRT_Theme>;
|
842
|
-
muiBottomToolbarProps?: ((props: {
|
843
|
-
table: MRT_TableInstance<TData>;
|
844
|
-
}) => BoxProps) | BoxProps;
|
845
|
-
muiCircularProgressProps?: ((props: {
|
846
|
-
table: MRT_TableInstance<TData>;
|
847
|
-
}) => CircularProgressProps & {
|
848
|
-
Component?: ReactNode;
|
849
|
-
}) | (CircularProgressProps & {
|
850
|
-
Component?: ReactNode;
|
851
|
-
});
|
852
|
-
/**
|
853
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
854
|
-
*/
|
855
|
-
muiColumnActionsButtonProps?: ((props: {
|
856
|
-
column: MRT_Column<TData>;
|
857
|
-
table: MRT_TableInstance<TData>;
|
858
|
-
}) => IconButtonProps) | IconButtonProps;
|
859
|
-
/**
|
860
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
861
|
-
*/
|
862
|
-
muiColumnDragHandleProps?: ((props: {
|
863
|
-
column: MRT_Column<TData>;
|
864
|
-
table: MRT_TableInstance<TData>;
|
865
|
-
}) => IconButtonProps) | IconButtonProps;
|
866
|
-
/**
|
867
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
868
|
-
*/
|
869
|
-
muiCopyButtonProps?: ((props: {
|
870
|
-
cell: MRT_Cell<TData>;
|
871
|
-
column: MRT_Column<TData>;
|
872
|
-
row: MRT_Row<TData>;
|
873
|
-
table: MRT_TableInstance<TData>;
|
874
|
-
}) => ButtonProps) | ButtonProps;
|
875
|
-
muiCreateRowModalProps?: ((props: {
|
876
|
-
row: MRT_Row<TData>;
|
877
|
-
table: MRT_TableInstance<TData>;
|
878
|
-
}) => DialogProps) | DialogProps;
|
879
|
-
muiDetailPanelProps?: ((props: {
|
880
|
-
row: MRT_Row<TData>;
|
881
|
-
table: MRT_TableInstance<TData>;
|
882
|
-
}) => TableCellProps) | TableCellProps;
|
883
|
-
muiEditRowDialogProps?: ((props: {
|
884
|
-
row: MRT_Row<TData>;
|
885
|
-
table: MRT_TableInstance<TData>;
|
886
|
-
}) => DialogProps) | DialogProps;
|
887
|
-
/**
|
888
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
889
|
-
*/
|
890
|
-
muiEditTextFieldProps?: ((props: {
|
891
|
-
cell: MRT_Cell<TData>;
|
892
|
-
column: MRT_Column<TData>;
|
893
|
-
row: MRT_Row<TData>;
|
894
|
-
table: MRT_TableInstance<TData>;
|
895
|
-
}) => TextFieldProps) | TextFieldProps;
|
896
|
-
muiExpandAllButtonProps?: ((props: {
|
897
|
-
table: MRT_TableInstance<TData>;
|
898
|
-
}) => IconButtonProps) | IconButtonProps;
|
899
|
-
muiExpandButtonProps?: ((props: {
|
900
|
-
row: MRT_Row<TData>;
|
901
|
-
staticRowIndex?: number;
|
902
|
-
table: MRT_TableInstance<TData>;
|
903
|
-
}) => IconButtonProps) | IconButtonProps;
|
904
|
-
/**
|
905
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
906
|
-
*/
|
907
|
-
muiFilterAutocompleteProps?: ((props: {
|
908
|
-
column: MRT_Column<TData>;
|
909
|
-
table: MRT_TableInstance<TData>;
|
910
|
-
}) => AutocompleteProps<any, any, any, any>) | AutocompleteProps<any, any, any, any>;
|
911
|
-
/**
|
912
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
913
|
-
*/
|
914
|
-
muiFilterCheckboxProps?: ((props: {
|
915
|
-
column: MRT_Column<TData>;
|
916
|
-
table: MRT_TableInstance<TData>;
|
917
|
-
}) => CheckboxProps) | CheckboxProps;
|
918
|
-
/**
|
919
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
920
|
-
*/
|
921
|
-
muiFilterDatePickerProps?: ((props: {
|
922
|
-
column: MRT_Column<TData>;
|
923
|
-
rangeFilterIndex?: number;
|
924
|
-
table: MRT_TableInstance<TData>;
|
925
|
-
}) => DatePickerProps<never>) | DatePickerProps<never>;
|
926
|
-
/**
|
927
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
928
|
-
*/
|
929
|
-
muiFilterDateTimePickerProps?: ((props: {
|
930
|
-
column: MRT_Column<TData>;
|
931
|
-
rangeFilterIndex?: number;
|
932
|
-
table: MRT_TableInstance<TData>;
|
933
|
-
}) => DateTimePickerProps<never>) | DateTimePickerProps<never>;
|
934
|
-
/**
|
935
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
936
|
-
*/
|
937
|
-
muiFilterSliderProps?: ((props: {
|
938
|
-
column: MRT_Column<TData>;
|
939
|
-
table: MRT_TableInstance<TData>;
|
940
|
-
}) => SliderProps) | SliderProps;
|
941
|
-
/**
|
942
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
943
|
-
*/
|
944
|
-
muiFilterTextFieldProps?: ((props: {
|
945
|
-
column: MRT_Column<TData>;
|
946
|
-
rangeFilterIndex?: number;
|
947
|
-
table: MRT_TableInstance<TData>;
|
948
|
-
}) => TextFieldProps) | TextFieldProps;
|
949
|
-
/**
|
950
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
951
|
-
*/
|
952
|
-
muiFilterTimePickerProps?: ((props: {
|
953
|
-
column: MRT_Column<TData>;
|
954
|
-
rangeFilterIndex?: number;
|
955
|
-
table: MRT_TableInstance<TData>;
|
956
|
-
}) => TimePickerProps<never>) | TimePickerProps<never>;
|
957
|
-
muiLinearProgressProps?: ((props: {
|
958
|
-
isTopToolbar: boolean;
|
959
|
-
table: MRT_TableInstance<TData>;
|
960
|
-
}) => LinearProgressProps) | LinearProgressProps;
|
961
|
-
muiPaginationProps?: ((props: {
|
962
|
-
table: MRT_TableInstance<TData>;
|
963
|
-
}) => Partial<PaginationProps & {
|
964
|
-
SelectProps?: Partial<SelectProps>;
|
965
|
-
disabled?: boolean;
|
966
|
-
rowsPerPageOptions?: {
|
967
|
-
label: string;
|
968
|
-
value: number;
|
969
|
-
}[] | number[];
|
970
|
-
showRowsPerPage?: boolean;
|
971
|
-
}>) | Partial<PaginationProps & {
|
972
|
-
SelectProps?: Partial<SelectProps>;
|
973
|
-
disabled?: boolean;
|
974
|
-
rowsPerPageOptions?: {
|
975
|
-
label: string;
|
976
|
-
value: number;
|
977
|
-
}[] | number[];
|
978
|
-
showRowsPerPage?: boolean;
|
979
|
-
}>;
|
980
|
-
muiRowDragHandleProps?: ((props: {
|
981
|
-
row: MRT_Row<TData>;
|
982
|
-
table: MRT_TableInstance<TData>;
|
983
|
-
}) => IconButtonProps) | IconButtonProps;
|
984
|
-
muiSearchTextFieldProps?: ((props: {
|
985
|
-
table: MRT_TableInstance<TData>;
|
986
|
-
}) => TextFieldProps) | TextFieldProps;
|
987
|
-
muiSelectAllCheckboxProps?: ((props: {
|
988
|
-
table: MRT_TableInstance<TData>;
|
989
|
-
}) => CheckboxProps) | CheckboxProps;
|
990
|
-
muiSelectCheckboxProps?: ((props: {
|
991
|
-
row: MRT_Row<TData>;
|
992
|
-
staticRowIndex?: number;
|
993
|
-
table: MRT_TableInstance<TData>;
|
994
|
-
}) => CheckboxProps | RadioProps) | (CheckboxProps | RadioProps);
|
995
|
-
muiSkeletonProps?: ((props: {
|
996
|
-
cell: MRT_Cell<TData>;
|
997
|
-
column: MRT_Column<TData>;
|
998
|
-
row: MRT_Row<TData>;
|
999
|
-
table: MRT_TableInstance<TData>;
|
1000
|
-
}) => SkeletonProps) | SkeletonProps;
|
1001
|
-
/**
|
1002
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
1003
|
-
*/
|
1004
|
-
muiTableBodyCellProps?: ((props: {
|
1005
|
-
cell: MRT_Cell<TData>;
|
1006
|
-
column: MRT_Column<TData>;
|
1007
|
-
row: MRT_Row<TData>;
|
1008
|
-
table: MRT_TableInstance<TData>;
|
1009
|
-
}) => TableCellProps) | TableCellProps;
|
1010
|
-
muiTableBodyProps?: ((props: {
|
1011
|
-
table: MRT_TableInstance<TData>;
|
1012
|
-
}) => TableBodyProps) | TableBodyProps;
|
1013
|
-
muiTableBodyRowProps?: ((props: {
|
1014
|
-
isDetailPanel?: boolean;
|
1015
|
-
row: MRT_Row<TData>;
|
1016
|
-
staticRowIndex: number;
|
1017
|
-
table: MRT_TableInstance<TData>;
|
1018
|
-
}) => TableRowProps) | TableRowProps;
|
1019
|
-
muiTableContainerProps?: ((props: {
|
1020
|
-
table: MRT_TableInstance<TData>;
|
1021
|
-
}) => TableContainerProps) | TableContainerProps;
|
1022
|
-
/**
|
1023
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
1024
|
-
*/
|
1025
|
-
muiTableFooterCellProps?: ((props: {
|
1026
|
-
column: MRT_Column<TData>;
|
1027
|
-
table: MRT_TableInstance<TData>;
|
1028
|
-
}) => TableCellProps) | TableCellProps;
|
1029
|
-
muiTableFooterProps?: ((props: {
|
1030
|
-
table: MRT_TableInstance<TData>;
|
1031
|
-
}) => TableFooterProps) | TableFooterProps;
|
1032
|
-
muiTableFooterRowProps?: ((props: {
|
1033
|
-
footerGroup: MRT_HeaderGroup<TData>;
|
1034
|
-
table: MRT_TableInstance<TData>;
|
1035
|
-
}) => TableRowProps) | TableRowProps;
|
1036
|
-
/**
|
1037
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
1038
|
-
*/
|
1039
|
-
muiTableHeadCellProps?: ((props: {
|
1040
|
-
column: MRT_Column<TData>;
|
1041
|
-
table: MRT_TableInstance<TData>;
|
1042
|
-
}) => TableCellProps) | TableCellProps;
|
1043
|
-
muiTableHeadProps?: ((props: {
|
1044
|
-
table: MRT_TableInstance<TData>;
|
1045
|
-
}) => TableHeadProps) | TableHeadProps;
|
1046
|
-
muiTableHeadRowProps?: ((props: {
|
1047
|
-
headerGroup: MRT_HeaderGroup<TData>;
|
1048
|
-
table: MRT_TableInstance<TData>;
|
1049
|
-
}) => TableRowProps) | TableRowProps;
|
1050
|
-
muiTablePaperProps?: ((props: {
|
1051
|
-
table: MRT_TableInstance<TData>;
|
1052
|
-
}) => PaperProps) | PaperProps;
|
1053
|
-
muiTableProps?: ((props: {
|
1054
|
-
table: MRT_TableInstance<TData>;
|
1055
|
-
}) => TableProps) | TableProps;
|
1056
|
-
muiToolbarAlertBannerChipProps?: ((props: {
|
1057
|
-
table: MRT_TableInstance<TData>;
|
1058
|
-
}) => ChipProps) | ChipProps;
|
1059
|
-
muiToolbarAlertBannerProps?: ((props: {
|
1060
|
-
table: MRT_TableInstance<TData>;
|
1061
|
-
}) => AlertProps) | AlertProps;
|
1062
|
-
muiTopToolbarProps?: ((props: {
|
1063
|
-
table: MRT_TableInstance<TData>;
|
1064
|
-
}) => BoxProps) | BoxProps;
|
1065
|
-
onActionCellChange?: OnChangeFn<MRT_Cell<TData> | null>;
|
1066
|
-
onColumnFilterFnsChange?: OnChangeFn<{
|
1067
|
-
[key: string]: MRT_FilterOption;
|
1068
|
-
}>;
|
1069
|
-
onCreatingRowCancel?: (props: {
|
1070
|
-
row: MRT_Row<TData>;
|
1071
|
-
table: MRT_TableInstance<TData>;
|
1072
|
-
}) => void;
|
1073
|
-
onCreatingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
1074
|
-
onCreatingRowSave?: (props: {
|
1075
|
-
exitCreatingMode: () => void;
|
1076
|
-
row: MRT_Row<TData>;
|
1077
|
-
table: MRT_TableInstance<TData>;
|
1078
|
-
values: Record<LiteralUnion<string & DeepKeys<TData>>, any>;
|
1079
|
-
}) => Promise<void> | void;
|
1080
|
-
onDensityChange?: OnChangeFn<MRT_DensityState>;
|
1081
|
-
onDraggingColumnChange?: OnChangeFn<MRT_Column<TData> | null>;
|
1082
|
-
onDraggingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
1083
|
-
onEditingCellChange?: OnChangeFn<MRT_Cell<TData> | null>;
|
1084
|
-
onEditingRowCancel?: (props: {
|
1085
|
-
row: MRT_Row<TData>;
|
1086
|
-
table: MRT_TableInstance<TData>;
|
1087
|
-
}) => void;
|
1088
|
-
onEditingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
1089
|
-
onEditingRowSave?: (props: {
|
1090
|
-
exitEditingMode: () => void;
|
1091
|
-
row: MRT_Row<TData>;
|
1092
|
-
table: MRT_TableInstance<TData>;
|
1093
|
-
values: Record<LiteralUnion<string & DeepKeys<TData>>, any>;
|
1094
|
-
}) => Promise<void> | void;
|
1095
|
-
onGlobalFilterFnChange?: OnChangeFn<MRT_FilterOption>;
|
1096
|
-
onHoveredColumnChange?: OnChangeFn<Partial<MRT_Column<TData>> | null>;
|
1097
|
-
onHoveredRowChange?: OnChangeFn<Partial<MRT_Row<TData>> | null>;
|
1098
|
-
onIsFullScreenChange?: OnChangeFn<boolean>;
|
1099
|
-
onShowAlertBannerChange?: OnChangeFn<boolean>;
|
1100
|
-
onShowColumnFiltersChange?: OnChangeFn<boolean>;
|
1101
|
-
onShowGlobalFilterChange?: OnChangeFn<boolean>;
|
1102
|
-
onShowToolbarDropZoneChange?: OnChangeFn<boolean>;
|
1103
|
-
paginationDisplayMode?: 'custom' | 'default' | 'pages';
|
1104
|
-
positionActionsColumn?: 'first' | 'last';
|
1105
|
-
positionCreatingRow?: 'bottom' | 'top' | number;
|
1106
|
-
positionExpandColumn?: 'first' | 'last';
|
1107
|
-
positionGlobalFilter?: 'left' | 'none' | 'right';
|
1108
|
-
positionPagination?: 'both' | 'bottom' | 'none' | 'top';
|
1109
|
-
positionToolbarAlertBanner?: 'bottom' | 'head-overlay' | 'none' | 'top';
|
1110
|
-
positionToolbarDropZone?: 'both' | 'bottom' | 'none' | 'top';
|
1111
|
-
renderBottomToolbar?: ((props: {
|
1112
|
-
table: MRT_TableInstance<TData>;
|
1113
|
-
}) => ReactNode) | ReactNode;
|
1114
|
-
renderBottomToolbarCustomActions?: (props: {
|
1115
|
-
table: MRT_TableInstance<TData>;
|
1116
|
-
}) => ReactNode;
|
1117
|
-
renderCaption?: ((props: {
|
1118
|
-
table: MRT_TableInstance<TData>;
|
1119
|
-
}) => ReactNode) | ReactNode;
|
1120
|
-
/**
|
1121
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
1122
|
-
*/
|
1123
|
-
renderCellActionMenuItems?: (props: {
|
1124
|
-
cell: MRT_Cell<TData>;
|
1125
|
-
closeMenu: () => void;
|
1126
|
-
column: MRT_Column<TData>;
|
1127
|
-
internalMenuItems: ReactNode[];
|
1128
|
-
row: MRT_Row<TData>;
|
1129
|
-
staticColumnIndex?: number;
|
1130
|
-
staticRowIndex?: number;
|
1131
|
-
table: MRT_TableInstance<TData>;
|
1132
|
-
}) => ReactNode[];
|
1133
|
-
/**
|
1134
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
1135
|
-
*/
|
1136
|
-
renderColumnActionsMenuItems?: (props: {
|
1137
|
-
closeMenu: () => void;
|
1138
|
-
column: MRT_Column<TData>;
|
1139
|
-
internalColumnMenuItems: ReactNode[];
|
1140
|
-
table: MRT_TableInstance<TData>;
|
1141
|
-
}) => ReactNode[];
|
1142
|
-
/**
|
1143
|
-
* @deprecated Specify this in the `defaultColumn` table option instead if you want to apply to all columns.
|
1144
|
-
*/
|
1145
|
-
renderColumnFilterModeMenuItems?: (props: {
|
1146
|
-
column: MRT_Column<TData>;
|
1147
|
-
internalFilterOptions: MRT_InternalFilterOption[];
|
1148
|
-
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
1149
|
-
table: MRT_TableInstance<TData>;
|
1150
|
-
}) => ReactNode[];
|
1151
|
-
renderCreateRowDialogContent?: (props: {
|
1152
|
-
internalEditComponents: ReactNode[];
|
1153
|
-
row: MRT_Row<TData>;
|
1154
|
-
table: MRT_TableInstance<TData>;
|
1155
|
-
}) => ReactNode;
|
1156
|
-
renderDetailPanel?: (props: {
|
1157
|
-
row: MRT_Row<TData>;
|
1158
|
-
table: MRT_TableInstance<TData>;
|
1159
|
-
}) => ReactNode;
|
1160
|
-
renderEditRowDialogContent?: (props: {
|
1161
|
-
internalEditComponents: ReactNode[];
|
1162
|
-
row: MRT_Row<TData>;
|
1163
|
-
table: MRT_TableInstance<TData>;
|
1164
|
-
}) => ReactNode;
|
1165
|
-
renderEmptyRowsFallback?: (props: {
|
1166
|
-
table: MRT_TableInstance<TData>;
|
1167
|
-
}) => ReactNode;
|
1168
|
-
renderGlobalFilterModeMenuItems?: (props: {
|
1169
|
-
internalFilterOptions: MRT_InternalFilterOption[];
|
1170
|
-
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
1171
|
-
table: MRT_TableInstance<TData>;
|
1172
|
-
}) => ReactNode[];
|
1173
|
-
renderRowActionMenuItems?: (props: {
|
1174
|
-
closeMenu: () => void;
|
1175
|
-
row: MRT_Row<TData>;
|
1176
|
-
staticRowIndex?: number;
|
1177
|
-
table: MRT_TableInstance<TData>;
|
1178
|
-
}) => ReactNode[] | undefined;
|
1179
|
-
renderRowActions?: (props: {
|
1180
|
-
cell: MRT_Cell<TData>;
|
1181
|
-
row: MRT_Row<TData>;
|
1182
|
-
staticRowIndex?: number;
|
1183
|
-
table: MRT_TableInstance<TData>;
|
1184
|
-
}) => ReactNode;
|
1185
|
-
renderToolbarAlertBannerContent?: (props: {
|
1186
|
-
groupedAlert: ReactNode | null;
|
1187
|
-
selectedAlert: ReactNode | null;
|
1188
|
-
table: MRT_TableInstance<TData>;
|
1189
|
-
}) => ReactNode;
|
1190
|
-
renderToolbarInternalActions?: (props: {
|
1191
|
-
table: MRT_TableInstance<TData>;
|
1192
|
-
}) => ReactNode;
|
1193
|
-
renderTopToolbar?: ((props: {
|
1194
|
-
table: MRT_TableInstance<TData>;
|
1195
|
-
}) => ReactNode) | ReactNode;
|
1196
|
-
renderTopToolbarCustomActions?: (props: {
|
1197
|
-
table: MRT_TableInstance<TData>;
|
1198
|
-
}) => ReactNode;
|
1199
|
-
rowNumberDisplayMode?: 'original' | 'static';
|
1200
|
-
rowPinningDisplayMode?: 'bottom' | 'select-bottom' | 'select-sticky' | 'select-top' | 'sticky' | 'top' | 'top-and-bottom';
|
1201
|
-
rowVirtualizerInstanceRef?: RefObject<MRT_RowVirtualizer | null>;
|
1202
|
-
rowVirtualizerOptions?: ((props: {
|
1203
|
-
table: MRT_TableInstance<TData>;
|
1204
|
-
}) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>) | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>;
|
1205
|
-
selectAllMode?: 'all' | 'page';
|
1206
|
-
/**
|
1207
|
-
* Manage state externally any way you want, then pass it back into MRT.
|
1208
|
-
*/
|
1209
|
-
state?: Partial<MRT_TableState<TData>>;
|
1210
|
-
}
|
1211
|
-
|
1212
|
-
declare const flexRender: (Comp: Renderable<any>, props: any) => JSX.Element | ReactNode;
|
1213
|
-
declare function createMRTColumnHelper<TData extends MRT_RowData>(): MRT_ColumnHelper<TData>;
|
1214
|
-
declare const createRow: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, originalRow?: TData, rowIndex?: number, depth?: number, subRows?: MRT_Row<TData>[], parentId?: string) => MRT_Row<TData>;
|
1215
|
-
|
1216
|
-
declare const isCellEditable: <TData extends MRT_RowData>({ cell, table, }: {
|
1217
|
-
cell: MRT_Cell<TData>;
|
1218
|
-
table: MRT_TableInstance<TData>;
|
1219
|
-
}) => boolean | undefined;
|
1220
|
-
declare const openEditingCell: <TData extends MRT_RowData>({ cell, table, }: {
|
1221
|
-
cell: MRT_Cell<TData>;
|
1222
|
-
table: MRT_TableInstance<TData>;
|
1223
|
-
}) => void;
|
1224
|
-
declare const cellKeyboardShortcuts: <TData extends MRT_RowData = MRT_RowData>({ cell, cellElements, cellValue, containerElement, event, header, parentElement, table, }: {
|
1225
|
-
cell?: MRT_Cell<TData>;
|
1226
|
-
header?: MRT_Header<TData>;
|
1227
|
-
cellElements?: Array<HTMLTableCellElement>;
|
1228
|
-
cellValue?: string;
|
1229
|
-
containerElement?: HTMLTableElement;
|
1230
|
-
event: React.KeyboardEvent<HTMLTableCellElement>;
|
1231
|
-
parentElement?: HTMLTableRowElement;
|
1232
|
-
table: MRT_TableInstance<TData>;
|
1233
|
-
}) => void;
|
1234
|
-
|
1235
|
-
declare const getColumnId: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => string;
|
1236
|
-
declare const getAllLeafColumnDefs: <TData extends MRT_RowData>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|
1237
|
-
declare const prepareColumns: <TData extends MRT_RowData>({ columnDefs, tableOptions, }: {
|
1238
|
-
columnDefs: MRT_ColumnDef<TData>[];
|
1239
|
-
tableOptions: MRT_DefinedTableOptions<TData>;
|
1240
|
-
}) => MRT_DefinedColumnDef<TData>[];
|
1241
|
-
declare const reorderColumn: <TData extends MRT_RowData>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: MRT_ColumnOrderState) => MRT_ColumnOrderState;
|
1242
|
-
declare const getDefaultColumnFilterFn: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => MRT_FilterOption;
|
1243
|
-
declare const getColumnFilterInfo: <TData extends MRT_RowData>({ header, table, }: {
|
1244
|
-
header: MRT_Header<TData>;
|
1245
|
-
table: MRT_TableInstance<TData>;
|
1246
|
-
}) => {
|
1247
|
-
readonly allowedColumnFilterOptions: LiteralUnion<string & MRT_FilterOption, string>[] | null | undefined;
|
1248
|
-
readonly currentFilterOption: MRT_FilterOption;
|
1249
|
-
readonly facetedUniqueValues: Map<any, number>;
|
1250
|
-
readonly isAutocompleteFilter: boolean;
|
1251
|
-
readonly isDateFilter: boolean;
|
1252
|
-
readonly isMultiSelectFilter: boolean;
|
1253
|
-
readonly isRangeFilter: boolean;
|
1254
|
-
readonly isSelectFilter: boolean;
|
1255
|
-
readonly isTextboxFilter: boolean;
|
1256
|
-
};
|
1257
|
-
declare const useDropdownOptions: <TData extends MRT_RowData>({ header, table, }: {
|
1258
|
-
header: MRT_Header<TData>;
|
1259
|
-
table: MRT_TableInstance<TData>;
|
1260
|
-
}) => DropdownOption[] | undefined;
|
1261
|
-
|
1262
|
-
declare function defaultDisplayColumnProps<TData extends MRT_RowData>({ header, id, size, tableOptions, }: {
|
1263
|
-
header?: keyof MRT_Localization;
|
1264
|
-
id: MRT_DisplayColumnIds;
|
1265
|
-
size: number;
|
1266
|
-
tableOptions: MRT_DefinedTableOptions<TData>;
|
1267
|
-
}): {
|
1268
|
-
readonly id: MRT_DisplayColumnIds;
|
1269
|
-
readonly header: string;
|
1270
|
-
readonly getUniqueValues?: _tanstack_react_table.AccessorFn<TData, unknown[]> | undefined;
|
1271
|
-
readonly getGroupingValue?: ((row: TData) => any) | undefined;
|
1272
|
-
readonly aggregationFn?: MRT_AggregationFn<TData> | MRT_AggregationFn<TData>[] | undefined;
|
1273
|
-
readonly columns?: MRT_ColumnDef<TData, unknown>[] | undefined;
|
1274
|
-
readonly filterFn?: MRT_FilterFn<TData> | undefined;
|
1275
|
-
readonly footer?: string;
|
1276
|
-
readonly sortingFn?: MRT_SortingFn<TData> | undefined;
|
1277
|
-
readonly meta?: _tanstack_react_table.ColumnMeta<TData, unknown> | undefined;
|
1278
|
-
readonly enableHiding?: boolean;
|
1279
|
-
readonly enablePinning?: boolean;
|
1280
|
-
readonly enableColumnFilter?: boolean;
|
1281
|
-
readonly enableGlobalFilter?: boolean;
|
1282
|
-
readonly enableMultiSort?: boolean;
|
1283
|
-
readonly enableSorting?: boolean;
|
1284
|
-
readonly invertSorting?: boolean;
|
1285
|
-
readonly sortDescFirst?: boolean;
|
1286
|
-
readonly sortUndefined?: false | -1 | 1 | "first" | "last";
|
1287
|
-
readonly enableGrouping?: boolean;
|
1288
|
-
readonly enableResizing?: boolean;
|
1289
|
-
readonly maxSize?: number;
|
1290
|
-
readonly minSize?: number;
|
1291
|
-
readonly size: number;
|
1292
|
-
readonly AggregatedCell?: ((props: {
|
1293
|
-
cell: MRT_Cell<TData, unknown>;
|
1294
|
-
column: MRT_Column<TData, unknown>;
|
1295
|
-
row: MRT_Row<TData>;
|
1296
|
-
table: MRT_TableInstance<TData>;
|
1297
|
-
staticColumnIndex?: number;
|
1298
|
-
staticRowIndex?: number;
|
1299
|
-
}) => react.ReactNode) | undefined;
|
1300
|
-
readonly Cell?: ((props: {
|
1301
|
-
cell: MRT_Cell<TData, unknown>;
|
1302
|
-
column: MRT_Column<TData, unknown>;
|
1303
|
-
renderedCellValue: react.ReactNode;
|
1304
|
-
row: MRT_Row<TData>;
|
1305
|
-
rowRef?: react.RefObject<HTMLTableRowElement | null>;
|
1306
|
-
staticColumnIndex?: number;
|
1307
|
-
staticRowIndex?: number;
|
1308
|
-
table: MRT_TableInstance<TData>;
|
1309
|
-
}) => react.ReactNode) | undefined;
|
1310
|
-
readonly columnDefType?: "data" | "display" | "group";
|
1311
|
-
readonly columnFilterModeOptions?: Array<LiteralUnion<string & MRT_FilterOption>> | null;
|
1312
|
-
readonly Edit?: ((props: {
|
1313
|
-
cell: MRT_Cell<TData, unknown>;
|
1314
|
-
column: MRT_Column<TData, unknown>;
|
1315
|
-
row: MRT_Row<TData>;
|
1316
|
-
table: MRT_TableInstance<TData>;
|
1317
|
-
}) => react.ReactNode) | undefined;
|
1318
|
-
readonly editSelectOptions?: DropdownOption[] | ((props: {
|
1319
|
-
cell: MRT_Cell<TData, unknown>;
|
1320
|
-
column: MRT_Column<TData, unknown>;
|
1321
|
-
row: MRT_Row<TData>;
|
1322
|
-
table: MRT_TableInstance<TData>;
|
1323
|
-
}) => DropdownOption[]) | undefined;
|
1324
|
-
readonly editVariant?: "select" | "text";
|
1325
|
-
readonly enableClickToCopy?: boolean | "context-menu" | ((cell: MRT_Cell<TData, unknown>) => "context-menu" | boolean) | undefined;
|
1326
|
-
readonly enableColumnActions?: boolean;
|
1327
|
-
readonly enableColumnDragging?: boolean;
|
1328
|
-
readonly enableColumnFilterModes?: boolean;
|
1329
|
-
readonly enableColumnOrdering?: boolean;
|
1330
|
-
readonly enableEditing?: boolean | ((row: MRT_Row<TData>) => boolean) | undefined;
|
1331
|
-
readonly enableFilterMatchHighlighting?: boolean;
|
1332
|
-
readonly Filter?: ((props: {
|
1333
|
-
column: MRT_Column<TData, unknown>;
|
1334
|
-
header: MRT_Header<TData>;
|
1335
|
-
rangeFilterIndex?: number;
|
1336
|
-
table: MRT_TableInstance<TData>;
|
1337
|
-
}) => react.ReactNode) | undefined;
|
1338
|
-
readonly filterSelectOptions?: DropdownOption[];
|
1339
|
-
readonly filterVariant?: "autocomplete" | "checkbox" | "date" | "date-range" | "datetime" | "datetime-range" | "multi-select" | "range" | "range-slider" | "select" | "text" | "time" | "time-range";
|
1340
|
-
readonly Footer?: react.ReactNode | ((props: {
|
1341
|
-
column: MRT_Column<TData, unknown>;
|
1342
|
-
footer: MRT_Header<TData>;
|
1343
|
-
table: MRT_TableInstance<TData>;
|
1344
|
-
}) => react.ReactNode);
|
1345
|
-
readonly GroupedCell?: ((props: {
|
1346
|
-
cell: MRT_Cell<TData, unknown>;
|
1347
|
-
column: MRT_Column<TData, unknown>;
|
1348
|
-
row: MRT_Row<TData>;
|
1349
|
-
table: MRT_TableInstance<TData>;
|
1350
|
-
staticColumnIndex?: number;
|
1351
|
-
staticRowIndex?: number;
|
1352
|
-
}) => react.ReactNode) | undefined;
|
1353
|
-
readonly grow?: boolean | number;
|
1354
|
-
readonly Header?: react.ReactNode | ((props: {
|
1355
|
-
column: MRT_Column<TData, unknown>;
|
1356
|
-
header: MRT_Header<TData>;
|
1357
|
-
table: MRT_TableInstance<TData>;
|
1358
|
-
}) => react.ReactNode);
|
1359
|
-
readonly muiColumnActionsButtonProps?: _mui_material.IconButtonProps | ((props: {
|
1360
|
-
column: MRT_Column<TData, unknown>;
|
1361
|
-
table: MRT_TableInstance<TData>;
|
1362
|
-
}) => _mui_material.IconButtonProps) | undefined;
|
1363
|
-
readonly muiColumnDragHandleProps?: _mui_material.IconButtonProps | ((props: {
|
1364
|
-
column: MRT_Column<TData, unknown>;
|
1365
|
-
table: MRT_TableInstance<TData>;
|
1366
|
-
}) => _mui_material.IconButtonProps) | undefined;
|
1367
|
-
readonly muiCopyButtonProps?: _mui_material.ButtonProps | ((props: {
|
1368
|
-
cell: MRT_Cell<TData, unknown>;
|
1369
|
-
column: MRT_Column<TData, unknown>;
|
1370
|
-
row: MRT_Row<TData>;
|
1371
|
-
table: MRT_TableInstance<TData>;
|
1372
|
-
}) => _mui_material.ButtonProps) | undefined;
|
1373
|
-
readonly muiEditTextFieldProps?: _mui_material.TextFieldProps | ((props: {
|
1374
|
-
cell: MRT_Cell<TData, unknown>;
|
1375
|
-
column: MRT_Column<TData, unknown>;
|
1376
|
-
row: MRT_Row<TData>;
|
1377
|
-
table: MRT_TableInstance<TData>;
|
1378
|
-
}) => _mui_material.TextFieldProps) | undefined;
|
1379
|
-
readonly muiFilterAutocompleteProps?: _mui_material.AutocompleteProps<any, any, any, any, "div"> | ((props: {
|
1380
|
-
column: MRT_Column<TData, unknown>;
|
1381
|
-
table: MRT_TableInstance<TData>;
|
1382
|
-
}) => _mui_material.AutocompleteProps<any, any, any, any>) | undefined;
|
1383
|
-
readonly muiFilterCheckboxProps?: _mui_material.CheckboxProps | ((props: {
|
1384
|
-
column: MRT_Column<TData, unknown>;
|
1385
|
-
table: MRT_TableInstance<TData>;
|
1386
|
-
}) => _mui_material.CheckboxProps) | undefined;
|
1387
|
-
readonly muiFilterDatePickerProps?: _mui_x_date_pickers.DatePickerProps<never, false> | ((props: {
|
1388
|
-
column: MRT_Column<TData, unknown>;
|
1389
|
-
rangeFilterIndex?: number;
|
1390
|
-
table: MRT_TableInstance<TData>;
|
1391
|
-
}) => _mui_x_date_pickers.DatePickerProps<never>) | undefined;
|
1392
|
-
readonly muiFilterDateTimePickerProps?: _mui_x_date_pickers.DateTimePickerProps<never, false> | ((props: {
|
1393
|
-
column: MRT_Column<TData, unknown>;
|
1394
|
-
rangeFilterIndex?: number;
|
1395
|
-
table: MRT_TableInstance<TData>;
|
1396
|
-
}) => _mui_x_date_pickers.DateTimePickerProps<never>) | undefined;
|
1397
|
-
readonly muiFilterSliderProps?: _mui_material.SliderProps | ((props: {
|
1398
|
-
column: MRT_Column<TData, unknown>;
|
1399
|
-
table: MRT_TableInstance<TData>;
|
1400
|
-
}) => _mui_material.SliderProps) | undefined;
|
1401
|
-
readonly muiFilterTextFieldProps?: _mui_material.TextFieldProps | ((props: {
|
1402
|
-
column: MRT_Column<TData, unknown>;
|
1403
|
-
rangeFilterIndex?: number;
|
1404
|
-
table: MRT_TableInstance<TData>;
|
1405
|
-
}) => _mui_material.TextFieldProps) | undefined;
|
1406
|
-
readonly muiFilterTimePickerProps?: _mui_x_date_pickers.TimePickerProps<never, false> | ((props: {
|
1407
|
-
column: MRT_Column<TData, unknown>;
|
1408
|
-
rangeFilterIndex?: number;
|
1409
|
-
table: MRT_TableInstance<TData>;
|
1410
|
-
}) => _mui_x_date_pickers.TimePickerProps<never>) | undefined;
|
1411
|
-
readonly muiTableBodyCellProps?: _mui_material.TableCellProps | ((props: {
|
1412
|
-
cell: MRT_Cell<TData, unknown>;
|
1413
|
-
column: MRT_Column<TData, unknown>;
|
1414
|
-
row: MRT_Row<TData>;
|
1415
|
-
table: MRT_TableInstance<TData>;
|
1416
|
-
}) => _mui_material.TableCellProps) | undefined;
|
1417
|
-
readonly muiTableFooterCellProps?: _mui_material.TableCellProps | ((props: {
|
1418
|
-
column: MRT_Column<TData, unknown>;
|
1419
|
-
table: MRT_TableInstance<TData>;
|
1420
|
-
}) => _mui_material.TableCellProps) | undefined;
|
1421
|
-
readonly muiTableHeadCellProps?: _mui_material.TableCellProps | ((props: {
|
1422
|
-
column: MRT_Column<TData, unknown>;
|
1423
|
-
table: MRT_TableInstance<TData>;
|
1424
|
-
}) => _mui_material.TableCellProps) | undefined;
|
1425
|
-
readonly PlaceholderCell?: ((props: {
|
1426
|
-
cell: MRT_Cell<TData, unknown>;
|
1427
|
-
column: MRT_Column<TData, unknown>;
|
1428
|
-
row: MRT_Row<TData>;
|
1429
|
-
table: MRT_TableInstance<TData>;
|
1430
|
-
}) => react.ReactNode) | undefined;
|
1431
|
-
readonly renderCellActionMenuItems?: ((props: {
|
1432
|
-
cell: MRT_Cell<TData, unknown>;
|
1433
|
-
closeMenu: () => void;
|
1434
|
-
column: MRT_Column<TData, unknown>;
|
1435
|
-
internalMenuItems: react.ReactNode[];
|
1436
|
-
row: MRT_Row<TData>;
|
1437
|
-
staticColumnIndex?: number;
|
1438
|
-
staticRowIndex?: number;
|
1439
|
-
table: MRT_TableInstance<TData>;
|
1440
|
-
}) => react.ReactNode[]) | undefined;
|
1441
|
-
readonly renderColumnActionsMenuItems?: ((props: {
|
1442
|
-
closeMenu: () => void;
|
1443
|
-
column: MRT_Column<TData, unknown>;
|
1444
|
-
internalColumnMenuItems: react.ReactNode[];
|
1445
|
-
table: MRT_TableInstance<TData>;
|
1446
|
-
}) => react.ReactNode[]) | undefined;
|
1447
|
-
readonly renderColumnFilterModeMenuItems?: ((props: {
|
1448
|
-
column: MRT_Column<TData, unknown>;
|
1449
|
-
internalFilterOptions: MRT_InternalFilterOption[];
|
1450
|
-
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
1451
|
-
table: MRT_TableInstance<TData>;
|
1452
|
-
}) => react.ReactNode[]) | undefined;
|
1453
|
-
readonly visibleInShowHideMenu?: boolean;
|
1454
|
-
};
|
1455
|
-
declare const showRowPinningColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
1456
|
-
declare const showRowDragColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
1457
|
-
declare const showRowExpandColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
1458
|
-
declare const showRowActionsColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
1459
|
-
declare const showRowSelectionColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
1460
|
-
declare const showRowNumbersColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
1461
|
-
declare const showRowSpacerColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
1462
|
-
declare const getLeadingDisplayColumnIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => MRT_DisplayColumnIds[];
|
1463
|
-
declare const getTrailingDisplayColumnIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => MRT_DisplayColumnIds[];
|
1464
|
-
declare const getDefaultColumnOrderIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>, reset?: boolean) => string[];
|
1465
|
-
|
1466
|
-
declare const getMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, all?: boolean) => MRT_Row<TData>[];
|
1467
|
-
declare const getCanRankRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => boolean | undefined;
|
1468
|
-
declare const getIsRankingRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => any;
|
1469
|
-
declare const getIsRowSelected: <TData extends MRT_RowData>({ row, table, }: {
|
1470
|
-
row: MRT_Row<TData>;
|
1471
|
-
table: MRT_TableInstance<TData>;
|
1472
|
-
}) => boolean | undefined;
|
1473
|
-
declare const getMRT_RowSelectionHandler: <TData extends MRT_RowData>({ row, staticRowIndex, table, }: {
|
1474
|
-
row: MRT_Row<TData>;
|
1475
|
-
staticRowIndex?: number;
|
1476
|
-
table: MRT_TableInstance<TData>;
|
1477
|
-
}) => (event: ChangeEvent<HTMLInputElement> | MouseEvent<HTMLTableRowElement>, value?: boolean) => void;
|
1478
|
-
declare const getMRT_SelectAllHandler: <TData extends MRT_RowData>({ table }: {
|
1479
|
-
table: MRT_TableInstance<TData>;
|
1480
|
-
}) => (event: ChangeEvent<HTMLInputElement> | MouseEvent<HTMLButtonElement>, value?: boolean, forceAll?: boolean) => void;
|
1481
|
-
|
1482
|
-
declare const useMaterialReactTable: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_TableInstance<TData>;
|
1483
|
-
|
1484
|
-
declare const useMRT_ColumnVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement>(table: MRT_TableInstance<TData>) => MRT_ColumnVirtualizer | undefined;
|
1485
|
-
|
1486
|
-
declare const useMRT_Effects: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => void;
|
1487
|
-
|
1488
|
-
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;
|
1489
|
-
|
1490
|
-
declare const useMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => MRT_Row<TData>[];
|
1491
|
-
|
1492
|
-
/**
|
1493
|
-
* The MRT hook that wraps the TanStack useReactTable hook and adds additional functionality
|
1494
|
-
* @param definedTableOptions - table options with proper defaults set
|
1495
|
-
* @returns the MRT table instance
|
1496
|
-
*/
|
1497
|
-
declare const useMRT_TableInstance: <TData extends MRT_RowData>(definedTableOptions: MRT_DefinedTableOptions<TData>) => MRT_TableInstance<TData>;
|
1498
|
-
|
1499
|
-
declare const MRT_DefaultColumn: {
|
1500
|
-
readonly filterVariant: "text";
|
1501
|
-
readonly maxSize: 1000;
|
1502
|
-
readonly minSize: 40;
|
1503
|
-
readonly size: 180;
|
1504
|
-
};
|
1505
|
-
declare const MRT_DefaultDisplayColumn: {
|
1506
|
-
readonly columnDefType: "display";
|
1507
|
-
readonly enableClickToCopy: false;
|
1508
|
-
readonly enableColumnActions: false;
|
1509
|
-
readonly enableColumnDragging: false;
|
1510
|
-
readonly enableColumnFilter: false;
|
1511
|
-
readonly enableColumnOrdering: false;
|
1512
|
-
readonly enableEditing: false;
|
1513
|
-
readonly enableGlobalFilter: false;
|
1514
|
-
readonly enableGrouping: false;
|
1515
|
-
readonly enableHiding: false;
|
1516
|
-
readonly enableResizing: false;
|
1517
|
-
readonly enableSorting: false;
|
1518
|
-
};
|
1519
|
-
declare const useMRT_TableOptions: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_DefinedTableOptions<TData>;
|
1520
|
-
|
1521
|
-
type TableInstanceProp<TData extends MRT_RowData> = {
|
1522
|
-
table: MRT_TableInstance<TData>;
|
1523
|
-
};
|
1524
|
-
type MaterialReactTableProps<TData extends MRT_RowData> = Xor<TableInstanceProp<TData>, MRT_TableOptions<TData>>;
|
1525
|
-
declare const MaterialReactTable: <TData extends MRT_RowData>(props: MaterialReactTableProps<TData>) => react_jsx_runtime.JSX.Element;
|
1526
|
-
|
1527
|
-
interface MRT_TableBodyProps<TData extends MRT_RowData> extends TableBodyProps {
|
1528
|
-
columnVirtualizer?: MRT_ColumnVirtualizer;
|
1529
|
-
table: MRT_TableInstance<TData>;
|
1530
|
-
}
|
1531
|
-
declare const MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: MRT_TableBodyProps<TData>) => react_jsx_runtime.JSX.Element;
|
1532
|
-
declare const Memo_MRT_TableBody: typeof MRT_TableBody;
|
1533
|
-
|
1534
|
-
interface MRT_TableBodyCellProps<TData extends MRT_RowData> extends TableCellProps {
|
1535
|
-
cell: MRT_Cell<TData>;
|
1536
|
-
numRows?: number;
|
1537
|
-
rowRef: RefObject<HTMLTableRowElement | null>;
|
1538
|
-
staticColumnIndex?: number;
|
1539
|
-
staticRowIndex: number;
|
1540
|
-
table: MRT_TableInstance<TData>;
|
1541
|
-
}
|
1542
|
-
declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, numRows, rowRef, staticColumnIndex, staticRowIndex, table, ...rest }: MRT_TableBodyCellProps<TData>) => react_jsx_runtime.JSX.Element;
|
1543
|
-
declare const Memo_MRT_TableBodyCell: typeof MRT_TableBodyCell;
|
1544
|
-
|
1545
|
-
interface MRT_TableBodyCellValueProps<TData extends MRT_RowData> {
|
1546
|
-
cell: MRT_Cell<TData>;
|
1547
|
-
rowRef?: RefObject<HTMLTableRowElement | null>;
|
1548
|
-
staticColumnIndex?: number;
|
1549
|
-
staticRowIndex?: number;
|
1550
|
-
table: MRT_TableInstance<TData>;
|
1551
|
-
}
|
1552
|
-
declare const MRT_TableBodyCellValue: <TData extends MRT_RowData>({ cell, rowRef, staticColumnIndex, staticRowIndex, table, }: MRT_TableBodyCellValueProps<TData>) => ReactNode;
|
1553
|
-
|
1554
|
-
interface MRT_TableBodyRowProps<TData extends MRT_RowData> extends TableRowProps {
|
1555
|
-
columnVirtualizer?: MRT_ColumnVirtualizer;
|
1556
|
-
numRows?: number;
|
1557
|
-
pinnedRowIds?: string[];
|
1558
|
-
row: MRT_Row<TData>;
|
1559
|
-
rowVirtualizer?: MRT_RowVirtualizer;
|
1560
|
-
staticRowIndex: number;
|
1561
|
-
table: MRT_TableInstance<TData>;
|
1562
|
-
virtualRow?: VirtualItem;
|
1563
|
-
}
|
1564
|
-
declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, numRows, pinnedRowIds, row, rowVirtualizer, staticRowIndex, table, virtualRow, ...rest }: MRT_TableBodyRowProps<TData>) => react_jsx_runtime.JSX.Element;
|
1565
|
-
declare const Memo_MRT_TableBodyRow: typeof MRT_TableBodyRow;
|
1566
|
-
|
1567
|
-
interface MRT_TableBodyRowGrabHandleProps<TData extends MRT_RowData> extends IconButtonProps {
|
1568
|
-
row: MRT_Row<TData>;
|
1569
|
-
rowRef: RefObject<HTMLTableRowElement | null>;
|
1570
|
-
table: MRT_TableInstance<TData>;
|
1571
|
-
}
|
1572
|
-
declare const MRT_TableBodyRowGrabHandle: <TData extends MRT_RowData>({ row, rowRef, table, ...rest }: MRT_TableBodyRowGrabHandleProps<TData>) => react_jsx_runtime.JSX.Element;
|
1573
|
-
|
1574
|
-
interface MRT_TableBodyRowPinButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1575
|
-
row: MRT_Row<TData>;
|
1576
|
-
table: MRT_TableInstance<TData>;
|
1577
|
-
}
|
1578
|
-
declare const MRT_TableBodyRowPinButton: <TData extends MRT_RowData>({ row, table, ...rest }: MRT_TableBodyRowPinButtonProps<TData>) => react_jsx_runtime.JSX.Element | null;
|
1579
|
-
|
1580
|
-
interface MRT_TableDetailPanelProps<TData extends MRT_RowData> extends TableCellProps {
|
1581
|
-
parentRowRef: RefObject<HTMLTableRowElement | null>;
|
1582
|
-
row: MRT_Row<TData>;
|
1583
|
-
rowVirtualizer?: MRT_RowVirtualizer;
|
1584
|
-
staticRowIndex: number;
|
1585
|
-
table: MRT_TableInstance<TData>;
|
1586
|
-
virtualRow?: MRT_VirtualItem;
|
1587
|
-
}
|
1588
|
-
declare const MRT_TableDetailPanel: <TData extends MRT_RowData>({ parentRowRef, row, rowVirtualizer, staticRowIndex, table, virtualRow, ...rest }: MRT_TableDetailPanelProps<TData>) => react_jsx_runtime.JSX.Element;
|
1589
|
-
|
1590
|
-
interface MRT_ColumnPinningButtonsProps<TData extends MRT_RowData> extends BoxProps {
|
1591
|
-
column: MRT_Column<TData>;
|
1592
|
-
table: MRT_TableInstance<TData>;
|
1593
|
-
}
|
1594
|
-
declare const MRT_ColumnPinningButtons: <TData extends MRT_RowData>({ column, table, ...rest }: MRT_ColumnPinningButtonsProps<TData>) => react_jsx_runtime.JSX.Element;
|
1595
|
-
|
1596
|
-
interface MRT_CopyButtonProps<TData extends MRT_RowData> extends ButtonProps {
|
1597
|
-
cell: MRT_Cell<TData>;
|
1598
|
-
table: MRT_TableInstance<TData>;
|
1599
|
-
}
|
1600
|
-
declare const MRT_CopyButton: <TData extends MRT_RowData>({ cell, table, ...rest }: MRT_CopyButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1601
|
-
|
1602
|
-
interface MRT_EditActionButtonsProps<TData extends MRT_RowData> extends BoxProps {
|
1603
|
-
row: MRT_Row<TData>;
|
1604
|
-
table: MRT_TableInstance<TData>;
|
1605
|
-
variant?: 'icon' | 'text';
|
1606
|
-
}
|
1607
|
-
declare const MRT_EditActionButtons: <TData extends MRT_RowData>({ row, table, variant, ...rest }: MRT_EditActionButtonsProps<TData>) => react_jsx_runtime.JSX.Element;
|
1608
|
-
|
1609
|
-
interface MRT_ExpandAllButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1610
|
-
table: MRT_TableInstance<TData>;
|
1611
|
-
}
|
1612
|
-
declare const MRT_ExpandAllButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ExpandAllButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1613
|
-
|
1614
|
-
interface MRT_ExpandButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1615
|
-
row: MRT_Row<TData>;
|
1616
|
-
staticRowIndex?: number;
|
1617
|
-
table: MRT_TableInstance<TData>;
|
1618
|
-
}
|
1619
|
-
declare const MRT_ExpandButton: <TData extends MRT_RowData>({ row, staticRowIndex, table, }: MRT_ExpandButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1620
|
-
|
1621
|
-
interface MRT_GrabHandleButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1622
|
-
iconButtonProps?: IconButtonProps;
|
1623
|
-
location?: 'column' | 'row';
|
1624
|
-
onDragEnd: DragEventHandler<HTMLButtonElement>;
|
1625
|
-
onDragStart: DragEventHandler<HTMLButtonElement>;
|
1626
|
-
table: MRT_TableInstance<TData>;
|
1627
|
-
}
|
1628
|
-
declare const MRT_GrabHandleButton: <TData extends MRT_RowData>({ location, table, ...rest }: MRT_GrabHandleButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1629
|
-
|
1630
|
-
interface MRT_RowPinButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1631
|
-
pinningPosition: RowPinningPosition;
|
1632
|
-
row: MRT_Row<TData>;
|
1633
|
-
table: MRT_TableInstance<TData>;
|
1634
|
-
}
|
1635
|
-
declare const MRT_RowPinButton: <TData extends MRT_RowData>({ pinningPosition, row, table, ...rest }: MRT_RowPinButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1636
|
-
|
1637
|
-
interface MRT_ShowHideColumnsButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1638
|
-
table: MRT_TableInstance<TData>;
|
1639
|
-
}
|
1640
|
-
declare const MRT_ShowHideColumnsButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ShowHideColumnsButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1641
|
-
|
1642
|
-
interface MRT_ToggleDensePaddingButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1643
|
-
table: MRT_TableInstance<TData>;
|
1644
|
-
}
|
1645
|
-
declare const MRT_ToggleDensePaddingButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToggleDensePaddingButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1646
|
-
|
1647
|
-
interface MRT_ToggleFiltersButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1648
|
-
table: MRT_TableInstance<TData>;
|
1649
|
-
}
|
1650
|
-
declare const MRT_ToggleFiltersButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToggleFiltersButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1651
|
-
|
1652
|
-
interface MRT_ToggleFullScreenButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1653
|
-
table: MRT_TableInstance<TData>;
|
1654
|
-
}
|
1655
|
-
declare const MRT_ToggleFullScreenButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToggleFullScreenButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1656
|
-
|
1657
|
-
interface MRT_ToggleGlobalFilterButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1658
|
-
table: MRT_TableInstance<TData>;
|
1659
|
-
}
|
1660
|
-
declare const MRT_ToggleGlobalFilterButton: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToggleGlobalFilterButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1661
|
-
|
1662
|
-
interface MRT_ToggleRowActionMenuButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1663
|
-
cell: MRT_Cell<TData>;
|
1664
|
-
row: MRT_Row<TData>;
|
1665
|
-
staticRowIndex?: number;
|
1666
|
-
table: MRT_TableInstance<TData>;
|
1667
|
-
}
|
1668
|
-
declare const MRT_ToggleRowActionMenuButton: <TData extends MRT_RowData>({ cell, row, staticRowIndex, table, ...rest }: MRT_ToggleRowActionMenuButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1669
|
-
|
1670
|
-
interface MRT_TableFooterProps<TData extends MRT_RowData> extends TableFooterProps {
|
1671
|
-
columnVirtualizer?: MRT_ColumnVirtualizer;
|
1672
|
-
table: MRT_TableInstance<TData>;
|
1673
|
-
}
|
1674
|
-
declare const MRT_TableFooter: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: MRT_TableFooterProps<TData>) => react_jsx_runtime.JSX.Element | null;
|
1675
|
-
|
1676
|
-
interface MRT_TableFooterCellProps<TData extends MRT_RowData> extends TableCellProps {
|
1677
|
-
footer: MRT_Header<TData>;
|
1678
|
-
staticColumnIndex?: number;
|
1679
|
-
table: MRT_TableInstance<TData>;
|
1680
|
-
}
|
1681
|
-
declare const MRT_TableFooterCell: <TData extends MRT_RowData>({ footer, staticColumnIndex, table, ...rest }: MRT_TableFooterCellProps<TData>) => react_jsx_runtime.JSX.Element;
|
1682
|
-
|
1683
|
-
interface MRT_TableFooterRowProps<TData extends MRT_RowData> extends TableRowProps {
|
1684
|
-
columnVirtualizer?: MRT_ColumnVirtualizer;
|
1685
|
-
footerGroup: MRT_HeaderGroup<TData>;
|
1686
|
-
table: MRT_TableInstance<TData>;
|
1687
|
-
}
|
1688
|
-
declare const MRT_TableFooterRow: <TData extends MRT_RowData>({ columnVirtualizer, footerGroup, table, ...rest }: MRT_TableFooterRowProps<TData>) => react_jsx_runtime.JSX.Element | null;
|
1689
|
-
|
1690
|
-
interface MRT_TableHeadProps<TData extends MRT_RowData> extends TableHeadProps {
|
1691
|
-
columnVirtualizer?: MRT_ColumnVirtualizer;
|
1692
|
-
table: MRT_TableInstance<TData>;
|
1693
|
-
}
|
1694
|
-
declare const MRT_TableHead: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: MRT_TableHeadProps<TData>) => react_jsx_runtime.JSX.Element;
|
1695
|
-
|
1696
|
-
interface MRT_TableHeadCellProps<TData extends MRT_RowData> extends TableCellProps {
|
1697
|
-
columnVirtualizer?: MRT_ColumnVirtualizer;
|
1698
|
-
header: MRT_Header<TData>;
|
1699
|
-
staticColumnIndex?: number;
|
1700
|
-
table: MRT_TableInstance<TData>;
|
1701
|
-
}
|
1702
|
-
declare const MRT_TableHeadCell: <TData extends MRT_RowData>({ columnVirtualizer, header, staticColumnIndex, table, ...rest }: MRT_TableHeadCellProps<TData>) => react_jsx_runtime.JSX.Element;
|
1703
|
-
|
1704
|
-
interface MRT_TableHeadCellColumnActionsButtonProps<TData extends MRT_RowData> extends IconButtonProps {
|
1705
|
-
header: MRT_Header<TData>;
|
1706
|
-
table: MRT_TableInstance<TData>;
|
1707
|
-
}
|
1708
|
-
declare const MRT_TableHeadCellColumnActionsButton: <TData extends MRT_RowData>({ header, table, ...rest }: MRT_TableHeadCellColumnActionsButtonProps<TData>) => react_jsx_runtime.JSX.Element;
|
1709
|
-
|
1710
|
-
interface MRT_TableHeadCellFilterContainerProps<TData extends MRT_RowData> extends CollapseProps {
|
1711
|
-
header: MRT_Header<TData>;
|
1712
|
-
table: MRT_TableInstance<TData>;
|
1713
|
-
}
|
1714
|
-
declare const MRT_TableHeadCellFilterContainer: <TData extends MRT_RowData>({ header, table, ...rest }: MRT_TableHeadCellFilterContainerProps<TData>) => react_jsx_runtime.JSX.Element;
|
1715
|
-
|
1716
|
-
interface MRT_TableHeadCellFilterLabelProps<TData extends MRT_RowData> extends IconButtonProps {
|
1717
|
-
header: MRT_Header<TData>;
|
1718
|
-
table: MRT_TableInstance<TData>;
|
1719
|
-
}
|
1720
|
-
declare const MRT_TableHeadCellFilterLabel: <TData extends MRT_RowData = {}>({ header, table, ...rest }: MRT_TableHeadCellFilterLabelProps<TData>) => react_jsx_runtime.JSX.Element;
|
1721
|
-
|
1722
|
-
interface MRT_TableHeadCellGrabHandleProps<TData extends MRT_RowData> extends IconButtonProps {
|
1723
|
-
column: MRT_Column<TData>;
|
1724
|
-
table: MRT_TableInstance<TData>;
|
1725
|
-
tableHeadCellRef: RefObject<HTMLTableCellElement | null>;
|
1726
|
-
}
|
1727
|
-
declare const MRT_TableHeadCellGrabHandle: <TData extends MRT_RowData>({ column, table, tableHeadCellRef, ...rest }: MRT_TableHeadCellGrabHandleProps<TData>) => react_jsx_runtime.JSX.Element;
|
1728
|
-
|
1729
|
-
interface MRT_TableHeadCellResizeHandleProps<TData extends MRT_RowData> extends DividerProps {
|
1730
|
-
header: MRT_Header<TData>;
|
1731
|
-
table: MRT_TableInstance<TData>;
|
1732
|
-
}
|
1733
|
-
declare const MRT_TableHeadCellResizeHandle: <TData extends MRT_RowData>({ header, table, ...rest }: MRT_TableHeadCellResizeHandleProps<TData>) => react_jsx_runtime.JSX.Element;
|
1734
|
-
|
1735
|
-
interface MRT_TableHeadCellSortLabelProps<TData extends MRT_RowData> extends TableSortLabelProps {
|
1736
|
-
header: MRT_Header<TData>;
|
1737
|
-
table: MRT_TableInstance<TData>;
|
1738
|
-
}
|
1739
|
-
declare const MRT_TableHeadCellSortLabel: <TData extends MRT_RowData>({ header, table, ...rest }: MRT_TableHeadCellSortLabelProps<TData>) => react_jsx_runtime.JSX.Element;
|
1740
|
-
|
1741
|
-
interface MRT_TableHeadRowProps<TData extends MRT_RowData> extends TableRowProps {
|
1742
|
-
columnVirtualizer?: MRT_ColumnVirtualizer;
|
1743
|
-
headerGroup: MRT_HeaderGroup<TData>;
|
1744
|
-
table: MRT_TableInstance<TData>;
|
1745
|
-
}
|
1746
|
-
declare const MRT_TableHeadRow: <TData extends MRT_RowData>({ columnVirtualizer, headerGroup, table, ...rest }: MRT_TableHeadRowProps<TData>) => react_jsx_runtime.JSX.Element;
|
1747
|
-
|
1748
|
-
interface MRT_EditCellTextFieldProps<TData extends MRT_RowData> extends TextFieldProps<'standard'> {
|
1749
|
-
cell: MRT_Cell<TData>;
|
1750
|
-
table: MRT_TableInstance<TData>;
|
1751
|
-
}
|
1752
|
-
declare const MRT_EditCellTextField: <TData extends MRT_RowData>({ cell, table, ...rest }: MRT_EditCellTextFieldProps<TData>) => react_jsx_runtime.JSX.Element;
|
1753
|
-
|
1754
|
-
interface MRT_FilterCheckboxProps<TData extends MRT_RowData> extends CheckboxProps {
|
1755
|
-
column: MRT_Column<TData>;
|
1756
|
-
table: MRT_TableInstance<TData>;
|
1757
|
-
}
|
1758
|
-
declare const MRT_FilterCheckbox: <TData extends MRT_RowData>({ column, table, ...rest }: MRT_FilterCheckboxProps<TData>) => react_jsx_runtime.JSX.Element;
|
1759
|
-
|
1760
|
-
interface MRT_FilterRangeFieldsProps<TData extends MRT_RowData> extends BoxProps {
|
1761
|
-
header: MRT_Header<TData>;
|
1762
|
-
table: MRT_TableInstance<TData>;
|
1763
|
-
}
|
1764
|
-
declare const MRT_FilterRangeFields: <TData extends MRT_RowData>({ header, table, ...rest }: MRT_FilterRangeFieldsProps<TData>) => react_jsx_runtime.JSX.Element;
|
1765
|
-
|
1766
|
-
interface MRT_FilterRangeSliderProps<TData extends MRT_RowData> extends SliderProps {
|
1767
|
-
header: MRT_Header<TData>;
|
1768
|
-
table: MRT_TableInstance<TData>;
|
1769
|
-
}
|
1770
|
-
declare const MRT_FilterRangeSlider: <TData extends MRT_RowData>({ header, table, ...rest }: MRT_FilterRangeSliderProps<TData>) => react_jsx_runtime.JSX.Element;
|
1771
|
-
|
1772
|
-
interface MRT_FilterTextFieldProps<TData extends MRT_RowData> extends TextFieldProps<'standard'> {
|
1773
|
-
header: MRT_Header<TData>;
|
1774
|
-
rangeFilterIndex?: number;
|
1775
|
-
table: MRT_TableInstance<TData>;
|
1776
|
-
}
|
1777
|
-
declare const MRT_FilterTextField: <TData extends MRT_RowData>({ header, rangeFilterIndex, table, ...rest }: MRT_FilterTextFieldProps<TData>) => react_jsx_runtime.JSX.Element;
|
1778
|
-
|
1779
|
-
interface MRT_GlobalFilterTextFieldProps<TData extends MRT_RowData> extends TextFieldProps<'standard'> {
|
1780
|
-
table: MRT_TableInstance<TData>;
|
1781
|
-
}
|
1782
|
-
declare const MRT_GlobalFilterTextField: <TData extends MRT_RowData>({ table, ...rest }: MRT_GlobalFilterTextFieldProps<TData>) => react_jsx_runtime.JSX.Element;
|
1783
|
-
|
1784
|
-
interface MRT_SelectCheckboxProps<TData extends MRT_RowData> extends CheckboxProps {
|
1785
|
-
row?: MRT_Row<TData>;
|
1786
|
-
staticRowIndex?: number;
|
1787
|
-
table: MRT_TableInstance<TData>;
|
1788
|
-
}
|
1789
|
-
declare const MRT_SelectCheckbox: <TData extends MRT_RowData>({ row, staticRowIndex, table, ...rest }: MRT_SelectCheckboxProps<TData>) => react_jsx_runtime.JSX.Element;
|
1790
|
-
|
1791
|
-
interface MRT_ActionMenuItemProps<TData extends MRT_RowData> extends MenuItemProps {
|
1792
|
-
icon: ReactNode;
|
1793
|
-
label: string;
|
1794
|
-
onOpenSubMenu?: MenuItemProps['onClick'] | MenuItemProps['onMouseEnter'];
|
1795
|
-
table: MRT_TableInstance<TData>;
|
1796
|
-
}
|
1797
|
-
declare const MRT_ActionMenuItem: <TData extends MRT_RowData>({ icon, label, onOpenSubMenu, table, ...rest }: MRT_ActionMenuItemProps<TData>) => react_jsx_runtime.JSX.Element;
|
1798
|
-
|
1799
|
-
interface MRT_ColumnActionMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
1800
|
-
anchorEl: HTMLElement | null;
|
1801
|
-
header: MRT_Header<TData>;
|
1802
|
-
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
1803
|
-
table: MRT_TableInstance<TData>;
|
1804
|
-
}
|
1805
|
-
declare const MRT_ColumnActionMenu: <TData extends MRT_RowData>({ anchorEl, header, setAnchorEl, table, ...rest }: MRT_ColumnActionMenuProps<TData>) => react_jsx_runtime.JSX.Element;
|
1806
|
-
|
1807
|
-
declare const mrtFilterOptions: (localization: MRT_Localization) => MRT_InternalFilterOption[];
|
1808
|
-
interface MRT_FilterOptionMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
1809
|
-
anchorEl: HTMLElement | null;
|
1810
|
-
header?: MRT_Header<TData>;
|
1811
|
-
onSelect?: () => void;
|
1812
|
-
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
1813
|
-
setFilterValue?: (filterValue: any) => void;
|
1814
|
-
table: MRT_TableInstance<TData>;
|
1815
|
-
}
|
1816
|
-
declare const MRT_FilterOptionMenu: <TData extends MRT_RowData>({ anchorEl, header, onSelect, setAnchorEl, setFilterValue, table, ...rest }: MRT_FilterOptionMenuProps<TData>) => react_jsx_runtime.JSX.Element;
|
1817
|
-
|
1818
|
-
interface MRT_RowActionMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
1819
|
-
anchorEl: HTMLElement | null;
|
1820
|
-
handleEdit: (event: MouseEvent) => void;
|
1821
|
-
row: MRT_Row<TData>;
|
1822
|
-
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
1823
|
-
staticRowIndex?: number;
|
1824
|
-
table: MRT_TableInstance<TData>;
|
1825
|
-
}
|
1826
|
-
declare const MRT_RowActionMenu: <TData extends MRT_RowData>({ anchorEl, handleEdit, row, setAnchorEl, staticRowIndex, table, ...rest }: MRT_RowActionMenuProps<TData>) => react_jsx_runtime.JSX.Element | null;
|
1827
|
-
|
1828
|
-
interface MRT_ShowHideColumnsMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
1829
|
-
anchorEl: HTMLElement | null;
|
1830
|
-
isSubMenu?: boolean;
|
1831
|
-
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
1832
|
-
table: MRT_TableInstance<TData>;
|
1833
|
-
}
|
1834
|
-
declare const MRT_ShowHideColumnsMenu: <TData extends MRT_RowData>({ anchorEl, setAnchorEl, table, ...rest }: MRT_ShowHideColumnsMenuProps<TData>) => react_jsx_runtime.JSX.Element;
|
1835
|
-
|
1836
|
-
interface MRT_ShowHideColumnsMenuItemsProps<TData extends MRT_RowData> extends MenuItemProps {
|
1837
|
-
allColumns: MRT_Column<TData>[];
|
1838
|
-
column: MRT_Column<TData>;
|
1839
|
-
hoveredColumn: MRT_Column<TData> | null;
|
1840
|
-
isNestedColumns: boolean;
|
1841
|
-
setHoveredColumn: Dispatch<SetStateAction<MRT_Column<TData> | null>>;
|
1842
|
-
table: MRT_TableInstance<TData>;
|
1843
|
-
}
|
1844
|
-
declare const MRT_ShowHideColumnsMenuItems: <TData extends MRT_RowData>({ allColumns, column, hoveredColumn, isNestedColumns, setHoveredColumn, table, ...rest }: MRT_ShowHideColumnsMenuItemsProps<TData>) => react_jsx_runtime.JSX.Element | null;
|
1845
|
-
|
1846
|
-
interface MRT_EditRowModalProps<TData extends MRT_RowData> extends Partial<DialogProps> {
|
1847
|
-
open: boolean;
|
1848
|
-
table: MRT_TableInstance<TData>;
|
1849
|
-
}
|
1850
|
-
declare const MRT_EditRowModal: <TData extends MRT_RowData>({ open, table, ...rest }: MRT_EditRowModalProps<TData>) => react_jsx_runtime.JSX.Element;
|
1851
|
-
|
1852
|
-
interface MRT_TableProps<TData extends MRT_RowData> extends TableProps {
|
1853
|
-
table: MRT_TableInstance<TData>;
|
1854
|
-
}
|
1855
|
-
declare const MRT_Table: <TData extends MRT_RowData>({ table, ...rest }: MRT_TableProps<TData>) => react_jsx_runtime.JSX.Element;
|
1856
|
-
|
1857
|
-
interface MRT_TableContainerProps<TData extends MRT_RowData> extends TableContainerProps {
|
1858
|
-
table: MRT_TableInstance<TData>;
|
1859
|
-
}
|
1860
|
-
declare const MRT_TableContainer: <TData extends MRT_RowData>({ table, ...rest }: MRT_TableContainerProps<TData>) => react_jsx_runtime.JSX.Element;
|
1861
|
-
|
1862
|
-
interface MRT_TableLoadingOverlayProps<TData extends MRT_RowData> extends CircularProgressProps {
|
1863
|
-
table: MRT_TableInstance<TData>;
|
1864
|
-
}
|
1865
|
-
declare const MRT_TableLoadingOverlay: <TData extends MRT_RowData>({ table, ...rest }: MRT_TableLoadingOverlayProps<TData>) => react_jsx_runtime.JSX.Element;
|
1866
|
-
|
1867
|
-
interface MRT_TablePaperProps<TData extends MRT_RowData> extends PaperProps {
|
1868
|
-
table: MRT_TableInstance<TData>;
|
1869
|
-
}
|
1870
|
-
declare const MRT_TablePaper: <TData extends MRT_RowData>({ table, ...rest }: MRT_TablePaperProps<TData>) => react_jsx_runtime.JSX.Element;
|
1871
|
-
|
1872
|
-
interface MRT_BottomToolbarProps<TData extends MRT_RowData> extends BoxProps {
|
1873
|
-
table: MRT_TableInstance<TData>;
|
1874
|
-
}
|
1875
|
-
declare const MRT_BottomToolbar: <TData extends MRT_RowData>({ table, ...rest }: MRT_BottomToolbarProps<TData>) => react_jsx_runtime.JSX.Element;
|
1876
|
-
|
1877
|
-
interface MRT_LinearProgressBarProps<TData extends MRT_RowData> extends LinearProgressProps {
|
1878
|
-
isTopToolbar: boolean;
|
1879
|
-
table: MRT_TableInstance<TData>;
|
1880
|
-
}
|
1881
|
-
declare const MRT_LinearProgressBar: <TData extends MRT_RowData>({ isTopToolbar, table, ...rest }: MRT_LinearProgressBarProps<TData>) => react_jsx_runtime.JSX.Element;
|
1882
|
-
|
1883
|
-
interface MRT_TablePaginationProps<TData extends MRT_RowData> extends Partial<PaginationProps & {
|
1884
|
-
SelectProps?: Partial<SelectProps>;
|
1885
|
-
disabled?: boolean;
|
1886
|
-
rowsPerPageOptions?: {
|
1887
|
-
label: string;
|
1888
|
-
value: number;
|
1889
|
-
}[] | number[];
|
1890
|
-
showRowsPerPage?: boolean;
|
1891
|
-
}> {
|
1892
|
-
position?: 'bottom' | 'top';
|
1893
|
-
table: MRT_TableInstance<TData>;
|
1894
|
-
}
|
1895
|
-
declare const MRT_TablePagination: <TData extends MRT_RowData>({ position, table, ...rest }: MRT_TablePaginationProps<TData>) => react_jsx_runtime.JSX.Element;
|
1896
|
-
|
1897
|
-
interface MRT_ToolbarAlertBannerProps<TData extends MRT_RowData> extends AlertProps {
|
1898
|
-
stackAlertBanner?: boolean;
|
1899
|
-
table: MRT_TableInstance<TData>;
|
1900
|
-
}
|
1901
|
-
declare const MRT_ToolbarAlertBanner: <TData extends MRT_RowData>({ stackAlertBanner, table, ...rest }: MRT_ToolbarAlertBannerProps<TData>) => react_jsx_runtime.JSX.Element;
|
1902
|
-
|
1903
|
-
interface MRT_ToolbarDropZoneProps<TData extends MRT_RowData> extends BoxProps {
|
1904
|
-
table: MRT_TableInstance<TData>;
|
1905
|
-
}
|
1906
|
-
declare const MRT_ToolbarDropZone: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToolbarDropZoneProps<TData>) => react_jsx_runtime.JSX.Element;
|
1907
|
-
|
1908
|
-
interface MRT_ToolbarInternalButtonsProps<TData extends MRT_RowData> extends BoxProps {
|
1909
|
-
table: MRT_TableInstance<TData>;
|
1910
|
-
}
|
1911
|
-
declare const MRT_ToolbarInternalButtons: <TData extends MRT_RowData>({ table, ...rest }: MRT_ToolbarInternalButtonsProps<TData>) => react_jsx_runtime.JSX.Element;
|
1912
|
-
|
1913
|
-
interface MRT_TopToolbarProps<TData extends MRT_RowData> {
|
1914
|
-
table: MRT_TableInstance<TData>;
|
1915
|
-
}
|
1916
|
-
declare const MRT_TopToolbar: <TData extends MRT_RowData>({ table, }: MRT_TopToolbarProps<TData>) => react_jsx_runtime.JSX.Element;
|
1917
|
-
|
1918
|
-
export { type DropdownOption, type LiteralUnion, MRT_ActionMenuItem, type MRT_ActionMenuItemProps, 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_ColumnFilterFnsState, type MRT_ColumnFiltersState, type MRT_ColumnHelper, type MRT_ColumnOrderState, MRT_ColumnPinningButtons, type MRT_ColumnPinningButtonsProps, type MRT_ColumnPinningState, type MRT_ColumnSizingInfoState, type MRT_ColumnSizingState, type MRT_ColumnVirtualizer, MRT_CopyButton, type MRT_CopyButtonProps, MRT_DefaultColumn, MRT_DefaultDisplayColumn, type MRT_DefinedColumnDef, type MRT_DefinedTableOptions, type MRT_DensityState, type MRT_DisplayColumnDef, type MRT_DisplayColumnIds, MRT_EditActionButtons, type MRT_EditActionButtonsProps, MRT_EditCellTextField, type MRT_EditCellTextFieldProps, MRT_EditRowModal, type MRT_EditRowModalProps, MRT_ExpandAllButton, type MRT_ExpandAllButtonProps, MRT_ExpandButton, type MRT_ExpandButtonProps, type MRT_ExpandedState, MRT_FilterCheckbox, type MRT_FilterCheckboxProps, type MRT_FilterFn, MRT_FilterFns, type MRT_FilterOption, MRT_FilterOptionMenu, type MRT_FilterOptionMenuProps, MRT_FilterRangeFields, type MRT_FilterRangeFieldsProps, MRT_FilterRangeSlider, type MRT_FilterRangeSliderProps, MRT_FilterTextField, type MRT_FilterTextFieldProps, MRT_GlobalFilterTextField, type MRT_GlobalFilterTextFieldProps, MRT_GrabHandleButton, type MRT_GrabHandleButtonProps, type MRT_GroupColumnDef, type MRT_GroupingState, type MRT_Header, type MRT_HeaderGroup, type MRT_Icons, type MRT_InternalFilterOption, MRT_LinearProgressBar, type MRT_LinearProgressBarProps, type MRT_Localization, type MRT_PaginationState, type MRT_Row, MRT_RowActionMenu, type MRT_RowActionMenuProps, type MRT_RowData, type MRT_RowModel, MRT_RowPinButton, type MRT_RowPinButtonProps, type MRT_RowSelectionState, type MRT_RowVirtualizer, MRT_SelectCheckbox, type MRT_SelectCheckboxProps, MRT_ShowHideColumnsButton, type MRT_ShowHideColumnsButtonProps, MRT_ShowHideColumnsMenu, MRT_ShowHideColumnsMenuItems, type MRT_ShowHideColumnsMenuItemsProps, type MRT_ShowHideColumnsMenuProps, type MRT_SortingFn, 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_TableBodyRowGrabHandle, type MRT_TableBodyRowGrabHandleProps, MRT_TableBodyRowPinButton, type MRT_TableBodyRowPinButtonProps, type MRT_TableBodyRowProps, MRT_TableContainer, type MRT_TableContainerProps, 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_TableHeadCellFilterContainer, type MRT_TableHeadCellFilterContainerProps, MRT_TableHeadCellFilterLabel, type MRT_TableHeadCellFilterLabelProps, 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_ToggleFiltersButton, type MRT_ToggleFiltersButtonProps, MRT_ToggleFullScreenButton, type MRT_ToggleFullScreenButtonProps, MRT_ToggleGlobalFilterButton, type MRT_ToggleGlobalFilterButtonProps, 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_Updater, type MRT_VirtualItem, type MRT_VirtualizerOptions, type MRT_VisibilityState, MaterialReactTable, type MaterialReactTableProps, Memo_MRT_TableBody, Memo_MRT_TableBodyCell, Memo_MRT_TableBodyRow, type Prettify, type Xor, cellKeyboardShortcuts, createMRTColumnHelper, createRow, defaultDisplayColumnProps, flexRender, getAllLeafColumnDefs, getCanRankRows, getColumnFilterInfo, getColumnId, getDefaultColumnFilterFn, getDefaultColumnOrderIds, getIsRankingRows, getIsRowSelected, getLeadingDisplayColumnIds, getMRT_RowSelectionHandler, getMRT_Rows, getMRT_SelectAllHandler, getTrailingDisplayColumnIds, isCellEditable, mrtFilterOptions, openEditingCell, prepareColumns, rankGlobalFuzzy, reorderColumn, showRowActionsColumn, showRowDragColumn, showRowExpandColumn, showRowNumbersColumn, showRowPinningColumn, showRowSelectionColumn, showRowSpacerColumn, useDropdownOptions, useMRT_ColumnVirtualizer, useMRT_Effects, useMRT_RowVirtualizer, useMRT_Rows, useMRT_TableInstance, useMRT_TableOptions, useMaterialReactTable };
|