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