@cutting/material-react-table 4.0.4 → 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 -1649
- 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 +58 -39
- 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.mts
ADDED
|
@@ -0,0 +1,1925 @@
|
|
|
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 { ChangeEvent, Dispatch, DragEventHandler, JSX, MouseEvent, ReactNode, RefObject, SetStateAction } from "react";
|
|
3
|
+
import { RankingInfo } from "@tanstack/match-sorter-utils";
|
|
4
|
+
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 as Table$1, TableOptions, TableState, Updater, VisibilityState } from "@tanstack/react-table";
|
|
5
|
+
import { VirtualItem, Virtualizer, VirtualizerOptions } from "@tanstack/react-virtual";
|
|
6
|
+
import { Theme } from "@mui/material/styles";
|
|
7
|
+
import { AlertProps as AlertProps$1 } from "@mui/material/Alert";
|
|
8
|
+
import { AutocompleteProps } from "@mui/material/Autocomplete";
|
|
9
|
+
import { BoxProps as BoxProps$1 } from "@mui/material/Box";
|
|
10
|
+
import { ButtonProps as ButtonProps$1 } from "@mui/material/Button";
|
|
11
|
+
import { CheckboxProps as CheckboxProps$1 } from "@mui/material/Checkbox";
|
|
12
|
+
import { ChipProps } from "@mui/material/Chip";
|
|
13
|
+
import { CircularProgressProps as CircularProgressProps$1 } from "@mui/material/CircularProgress";
|
|
14
|
+
import { DialogProps as DialogProps$1 } from "@mui/material/Dialog";
|
|
15
|
+
import { IconButtonProps as IconButtonProps$1 } from "@mui/material/IconButton";
|
|
16
|
+
import { LinearProgressProps as LinearProgressProps$1 } from "@mui/material/LinearProgress";
|
|
17
|
+
import { PaginationProps as PaginationProps$1 } from "@mui/material/Pagination";
|
|
18
|
+
import { PaperProps as PaperProps$1 } from "@mui/material/Paper";
|
|
19
|
+
import { RadioProps } from "@mui/material/Radio";
|
|
20
|
+
import { SelectProps as SelectProps$1 } from "@mui/material/Select";
|
|
21
|
+
import { SkeletonProps } from "@mui/material/Skeleton";
|
|
22
|
+
import { SliderProps as SliderProps$1 } from "@mui/material/Slider";
|
|
23
|
+
import { TableProps as TableProps$1 } from "@mui/material/Table";
|
|
24
|
+
import { TableBodyProps as TableBodyProps$1 } from "@mui/material/TableBody";
|
|
25
|
+
import { TableCellProps as TableCellProps$1 } from "@mui/material/TableCell";
|
|
26
|
+
import { TableContainerProps as TableContainerProps$1 } from "@mui/material/TableContainer";
|
|
27
|
+
import { TableFooterProps as TableFooterProps$1 } from "@mui/material/TableFooter";
|
|
28
|
+
import { TableHeadProps as TableHeadProps$1 } from "@mui/material/TableHead";
|
|
29
|
+
import { TableRowProps as TableRowProps$1 } from "@mui/material/TableRow";
|
|
30
|
+
import { TextFieldProps as TextFieldProps$1 } from "@mui/material/TextField";
|
|
31
|
+
import { DatePickerProps, DateTimePickerProps, TimePickerProps } from "@mui/x-date-pickers";
|
|
32
|
+
//#region src/fns/aggregationFns.d.ts
|
|
33
|
+
declare const MRT_AggregationFns: {
|
|
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>;
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/fns/filterFns.d.ts
|
|
46
|
+
declare const MRT_FilterFns: {
|
|
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>;
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/fns/sortingFns.d.ts
|
|
114
|
+
declare const MRT_SortingFns: {
|
|
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>;
|
|
122
|
+
};
|
|
123
|
+
declare const rankGlobalFuzzy: <TData extends MRT_RowData>(rowA: MRT_Row<TData>, rowB: MRT_Row<TData>) => number;
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/icons.d.ts
|
|
126
|
+
declare const MRT_Default_Icons: {
|
|
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
|
+
};
|
|
229
|
+
};
|
|
230
|
+
type MRT_Icons = Record<keyof typeof MRT_Default_Icons, any>;
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/types.d.ts
|
|
233
|
+
type DropdownOption = string | {
|
|
234
|
+
label?: string;
|
|
235
|
+
value: any;
|
|
236
|
+
};
|
|
237
|
+
type LiteralUnion<T extends U, U = string> = (Record<never, never> & U) | T;
|
|
238
|
+
type MRT_AggregationFn<TData extends MRT_RowData> = AggregationFn<TData> | MRT_AggregationOption;
|
|
239
|
+
type MRT_AggregationOption = keyof typeof MRT_AggregationFns & string;
|
|
240
|
+
type MRT_Cell<TData extends MRT_RowData, TValue = unknown> = Omit<Cell<TData, TValue>, 'column' | 'row'> & {
|
|
241
|
+
column: MRT_Column<TData, TValue>;
|
|
242
|
+
row: MRT_Row<TData>;
|
|
243
|
+
};
|
|
244
|
+
type MRT_Column<TData extends MRT_RowData, TValue = unknown> = Omit<Column<TData, TValue>, 'columnDef' | 'columns' | 'filterFn' | 'footer' | 'header'> & {
|
|
245
|
+
columnDef: MRT_DefinedColumnDef<TData, TValue>;
|
|
246
|
+
columns?: MRT_Column<TData, TValue>[];
|
|
247
|
+
filterFn?: MRT_FilterFn<TData>;
|
|
248
|
+
footer: string;
|
|
249
|
+
header: string;
|
|
250
|
+
};
|
|
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'> {
|
|
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;
|
|
463
|
+
}
|
|
464
|
+
type MRT_ColumnFilterFnsState = Record<string, MRT_FilterOption>;
|
|
465
|
+
type MRT_ColumnFiltersState = ColumnFiltersState;
|
|
466
|
+
type MRT_ColumnHelper<TData extends MRT_RowData> = {
|
|
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>;
|
|
470
|
+
};
|
|
471
|
+
type MRT_ColumnOrderState = ColumnOrderState;
|
|
472
|
+
type MRT_ColumnPinningState = ColumnPinningState;
|
|
473
|
+
type MRT_ColumnSizingInfoState = ColumnSizingInfoState;
|
|
474
|
+
type MRT_ColumnSizingState = ColumnSizingState;
|
|
475
|
+
type MRT_ColumnVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement> = Virtualizer<TScrollElement, TItemElement> & {
|
|
476
|
+
virtualColumns: MRT_VirtualItem[];
|
|
477
|
+
virtualPaddingLeft?: number;
|
|
478
|
+
virtualPaddingRight?: number;
|
|
479
|
+
};
|
|
480
|
+
type MRT_DefinedColumnDef<TData extends MRT_RowData, TValue = unknown> = Omit<MRT_ColumnDef<TData, TValue>, 'defaultDisplayColumn' | 'id'> & {
|
|
481
|
+
_filterFn: MRT_FilterOption;
|
|
482
|
+
defaultDisplayColumn: Partial<MRT_ColumnDef<TData, TValue>>;
|
|
483
|
+
id: string;
|
|
484
|
+
};
|
|
485
|
+
type MRT_DefinedTableOptions<TData extends MRT_RowData> = Omit<MRT_TableOptions<TData>, 'icons' | 'localization' | 'mrtTheme'> & {
|
|
486
|
+
icons: MRT_Icons;
|
|
487
|
+
localization: MRT_Localization;
|
|
488
|
+
mrtTheme: Required<MRT_Theme>;
|
|
489
|
+
};
|
|
490
|
+
type MRT_DensityState = 'comfortable' | 'compact' | 'spacious';
|
|
491
|
+
type MRT_DisplayColumnDef<TData extends MRT_RowData, TValue = unknown> = Omit<MRT_ColumnDef<TData, TValue>, 'accessorFn' | 'accessorKey'>;
|
|
492
|
+
type MRT_DisplayColumnIds = 'mrt-row-actions' | 'mrt-row-drag' | 'mrt-row-expand' | 'mrt-row-numbers' | 'mrt-row-pin' | 'mrt-row-select' | 'mrt-row-spacer';
|
|
493
|
+
type MRT_ExpandedState = ExpandedState;
|
|
494
|
+
type MRT_FilterFn<TData extends MRT_RowData> = FilterFn<TData> | MRT_FilterOption;
|
|
495
|
+
type MRT_FilterOption = LiteralUnion<keyof typeof MRT_FilterFns & string>;
|
|
496
|
+
type MRT_GroupColumnDef<TData extends MRT_RowData> = MRT_DisplayColumnDef<TData, any> & {
|
|
497
|
+
columns: MRT_ColumnDef<TData>[];
|
|
498
|
+
};
|
|
499
|
+
type MRT_GroupingState = GroupingState;
|
|
500
|
+
type MRT_Header<TData extends MRT_RowData> = Omit<Header<TData, unknown>, 'column'> & {
|
|
501
|
+
column: MRT_Column<TData>;
|
|
502
|
+
};
|
|
503
|
+
type MRT_HeaderGroup<TData extends MRT_RowData> = Omit<HeaderGroup<TData>, 'headers'> & {
|
|
504
|
+
headers: MRT_Header<TData>[];
|
|
505
|
+
};
|
|
506
|
+
type MRT_InternalFilterOption = {
|
|
507
|
+
divider: boolean;
|
|
508
|
+
label: string;
|
|
509
|
+
option: string;
|
|
510
|
+
symbol: string;
|
|
511
|
+
};
|
|
512
|
+
interface MRT_Localization {
|
|
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;
|
|
605
|
+
}
|
|
606
|
+
type MRT_PaginationState = PaginationState;
|
|
607
|
+
type MRT_Row<TData extends MRT_RowData> = Omit<Row<TData>, '_valuesCache' | 'getAllCells' | 'getParentRow' | 'getParentRows' | 'getRow' | 'getVisibleCells' | 'subRows'> & {
|
|
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>[];
|
|
615
|
+
};
|
|
616
|
+
type MRT_RowData = Record<string, any>;
|
|
617
|
+
interface MRT_RowModel<TData extends MRT_RowData> {
|
|
618
|
+
flatRows: MRT_Row<TData>[];
|
|
619
|
+
rows: MRT_Row<TData>[];
|
|
620
|
+
rowsById: {
|
|
621
|
+
[key: string]: MRT_Row<TData>;
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
type MRT_RowSelectionState = RowSelectionState;
|
|
625
|
+
type MRT_RowVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement> = Virtualizer<TScrollElement, TItemElement> & {
|
|
626
|
+
virtualRows: MRT_VirtualItem[];
|
|
627
|
+
};
|
|
628
|
+
type MRT_SortingFn<TData extends MRT_RowData> = MRT_SortingOption | SortingFn<TData>;
|
|
629
|
+
type MRT_SortingOption = LiteralUnion<keyof typeof MRT_SortingFns & string>;
|
|
630
|
+
type MRT_SortingState = SortingState;
|
|
631
|
+
type MRT_StatefulTableOptions<TData extends MRT_RowData> = MRT_DefinedTableOptions<TData> & {
|
|
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'>;
|
|
633
|
+
};
|
|
634
|
+
type MRT_TableInstance<TData extends MRT_RowData> = Omit<Table$1<TData>, 'getAllColumns' | 'getAllFlatColumns' | 'getAllLeafColumns' | 'getBottomRows' | 'getCenterLeafColumns' | 'getCenterRows' | 'getColumn' | 'getExpandedRowModel' | 'getFlatHeaders' | 'getFooterGroups' | 'getHeaderGroups' | 'getLeafHeaders' | 'getLeftLeafColumns' | 'getPaginationRowModel' | 'getPreFilteredRowModel' | 'getPrePaginationRowModel' | 'getRightLeafColumns' | 'getRowModel' | 'getSelectedRowModel' | 'getState' | 'getTopRows' | 'options'> & {
|
|
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>>;
|
|
687
|
+
};
|
|
688
|
+
/**
|
|
689
|
+
* `columns` and `data` props are the only required props, but there are over 170 other optional props.
|
|
690
|
+
*
|
|
691
|
+
* See more info on creating columns and data on the official docs site:
|
|
692
|
+
* @link https://www.material-react-table.com/docs/getting-started/usage
|
|
693
|
+
*
|
|
694
|
+
* See the full props list on the official docs site:
|
|
695
|
+
* @link https://www.material-react-table.com/docs/api/props
|
|
696
|
+
*/
|
|
697
|
+
interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> {
|
|
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>;
|
|
803
|
+
table: MRT_TableInstance<TData>;
|
|
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: {
|
|
810
|
+
cell: MRT_Cell<TData>;
|
|
811
|
+
column: MRT_Column<TData>;
|
|
812
|
+
row: MRT_Row<TData>;
|
|
813
|
+
table: MRT_TableInstance<TData>;
|
|
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: {
|
|
828
|
+
cell: MRT_Cell<TData>;
|
|
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>;
|
|
838
|
+
staticRowIndex?: number;
|
|
839
|
+
table: MRT_TableInstance<TData>;
|
|
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: {
|
|
897
|
+
row: MRT_Row<TData>;
|
|
898
|
+
table: MRT_TableInstance<TData>;
|
|
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: {
|
|
907
|
+
row: MRT_Row<TData>;
|
|
908
|
+
staticRowIndex?: number;
|
|
909
|
+
table: MRT_TableInstance<TData>;
|
|
910
|
+
}) => CheckboxProps$1 | RadioProps) | (CheckboxProps$1 | RadioProps);
|
|
911
|
+
muiSkeletonProps?: ((props: {
|
|
912
|
+
cell: MRT_Cell<TData>;
|
|
913
|
+
column: MRT_Column<TData>;
|
|
914
|
+
row: MRT_Row<TData>;
|
|
915
|
+
table: MRT_TableInstance<TData>;
|
|
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;
|
|
928
|
+
row: MRT_Row<TData>;
|
|
929
|
+
staticRowIndex: number;
|
|
930
|
+
table: MRT_TableInstance<TData>;
|
|
931
|
+
}) => TableRowProps$1) | TableRowProps$1;
|
|
932
|
+
muiTableContainerProps?: ((props: {
|
|
933
|
+
table: MRT_TableInstance<TData>;
|
|
934
|
+
}) => TableContainerProps$1) | TableContainerProps$1;
|
|
935
|
+
muiTableFooterCellProps?: ((props: {
|
|
936
|
+
column: MRT_Column<TData>;
|
|
937
|
+
table: MRT_TableInstance<TData>;
|
|
938
|
+
}) => TableCellProps$1) | TableCellProps$1;
|
|
939
|
+
muiTableFooterProps?: ((props: {
|
|
940
|
+
table: MRT_TableInstance<TData>;
|
|
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: {
|
|
977
|
+
row: MRT_Row<TData>;
|
|
978
|
+
table: MRT_TableInstance<TData>;
|
|
979
|
+
}) => void;
|
|
980
|
+
onCreatingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
|
981
|
+
onCreatingRowSave?: (props: {
|
|
982
|
+
exitCreatingMode: () => void;
|
|
983
|
+
row: MRT_Row<TData>;
|
|
984
|
+
table: MRT_TableInstance<TData>;
|
|
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: {
|
|
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;
|
|
1034
|
+
staticRowIndex?: number;
|
|
1035
|
+
table: MRT_TableInstance<TData>;
|
|
1036
|
+
}) => ReactNode[];
|
|
1037
|
+
renderColumnActionsMenuItems?: (props: {
|
|
1038
|
+
closeMenu: () => void;
|
|
1039
|
+
column: MRT_Column<TData>;
|
|
1040
|
+
internalColumnMenuItems: ReactNode[];
|
|
1041
|
+
table: MRT_TableInstance<TData>;
|
|
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[];
|
|
1051
|
+
row: MRT_Row<TData>;
|
|
1052
|
+
table: MRT_TableInstance<TData>;
|
|
1053
|
+
}) => ReactNode;
|
|
1054
|
+
renderDetailPanel?: (props: {
|
|
1055
|
+
row: MRT_Row<TData>;
|
|
1056
|
+
table: MRT_TableInstance<TData>;
|
|
1057
|
+
}) => ReactNode;
|
|
1058
|
+
renderEditRowDialogContent?: (props: {
|
|
1059
|
+
internalEditComponents: ReactNode[];
|
|
1060
|
+
row: MRT_Row<TData>;
|
|
1061
|
+
table: MRT_TableInstance<TData>;
|
|
1062
|
+
}) => ReactNode;
|
|
1063
|
+
renderEmptyRowsFallback?: (props: {
|
|
1064
|
+
table: MRT_TableInstance<TData>;
|
|
1065
|
+
}) => ReactNode;
|
|
1066
|
+
renderGlobalFilterModeMenuItems?: (props: {
|
|
1067
|
+
internalFilterOptions: MRT_InternalFilterOption[];
|
|
1068
|
+
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
|
1069
|
+
table: MRT_TableInstance<TData>;
|
|
1070
|
+
}) => ReactNode[];
|
|
1071
|
+
renderRowActionMenuItems?: (props: {
|
|
1072
|
+
closeMenu: () => void;
|
|
1073
|
+
row: MRT_Row<TData>;
|
|
1074
|
+
staticRowIndex?: number;
|
|
1075
|
+
table: MRT_TableInstance<TData>;
|
|
1076
|
+
}) => ReactNode[] | undefined;
|
|
1077
|
+
renderRowActions?: (props: {
|
|
1078
|
+
cell: MRT_Cell<TData>;
|
|
1079
|
+
row: MRT_Row<TData>;
|
|
1080
|
+
staticRowIndex?: number;
|
|
1081
|
+
table: MRT_TableInstance<TData>;
|
|
1082
|
+
}) => ReactNode;
|
|
1083
|
+
renderToolbarAlertBannerContent?: (props: {
|
|
1084
|
+
groupedAlert: null | ReactNode;
|
|
1085
|
+
selectedAlert: null | ReactNode;
|
|
1086
|
+
table: MRT_TableInstance<TData>;
|
|
1087
|
+
}) => ReactNode;
|
|
1088
|
+
renderToolbarInternalActions?: (props: {
|
|
1089
|
+
table: MRT_TableInstance<TData>;
|
|
1090
|
+
}) => ReactNode;
|
|
1091
|
+
renderTopToolbar?: ((props: {
|
|
1092
|
+
table: MRT_TableInstance<TData>;
|
|
1093
|
+
}) => ReactNode) | ReactNode;
|
|
1094
|
+
renderTopToolbarCustomActions?: (props: {
|
|
1095
|
+
table: MRT_TableInstance<TData>;
|
|
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: {
|
|
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>>;
|
|
1108
|
+
}
|
|
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>;
|
|
1197
|
+
}
|
|
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
|
|
1358
|
+
interface MRT_TableHeadCellFilterContainerProps<TData extends MRT_RowData> extends CollapseProps {
|
|
1359
|
+
header: MRT_Header<TData>;
|
|
1360
|
+
table: MRT_TableInstance<TData>;
|
|
1361
|
+
}
|
|
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>;
|
|
1368
|
+
}
|
|
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>;
|
|
1376
|
+
}
|
|
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
|
|
1380
|
+
interface MRT_TableHeadCellResizeHandleProps<TData extends MRT_RowData> extends DividerProps {
|
|
1381
|
+
header: MRT_Header<TData>;
|
|
1382
|
+
table: MRT_TableInstance<TData>;
|
|
1383
|
+
}
|
|
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
|
|
1387
|
+
interface MRT_TableHeadCellSortLabelProps<TData extends MRT_RowData> extends TableSortLabelProps {
|
|
1388
|
+
header: MRT_Header<TData>;
|
|
1389
|
+
table: MRT_TableInstance<TData>;
|
|
1390
|
+
}
|
|
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>;
|
|
1398
|
+
}
|
|
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>;
|
|
1405
|
+
}
|
|
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>;
|
|
1412
|
+
}
|
|
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>;
|
|
1419
|
+
}
|
|
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>;
|
|
1426
|
+
}
|
|
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>;
|
|
1434
|
+
}
|
|
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>;
|
|
1440
|
+
}
|
|
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>;
|
|
1448
|
+
}
|
|
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
|
|
1452
|
+
type MaterialReactTableProps<TData extends MRT_RowData> = Xor<TableInstanceProp<TData>, MRT_TableOptions<TData>>;
|
|
1453
|
+
type TableInstanceProp<TData extends MRT_RowData> = {
|
|
1454
|
+
table: MRT_TableInstance<TData>;
|
|
1455
|
+
};
|
|
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
|
|
1459
|
+
interface MRT_ActionMenuItemProps<TData extends MRT_RowData> extends MenuItemProps {
|
|
1460
|
+
icon: ReactNode;
|
|
1461
|
+
label: string;
|
|
1462
|
+
onOpenSubMenu?: MenuItemProps['onClick'] | MenuItemProps['onMouseEnter'];
|
|
1463
|
+
table: MRT_TableInstance<TData>;
|
|
1464
|
+
}
|
|
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
|
|
1468
|
+
interface MRT_ColumnActionMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
|
1469
|
+
anchorEl: HTMLElement | null;
|
|
1470
|
+
header: MRT_Header<TData>;
|
|
1471
|
+
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
|
1472
|
+
table: MRT_TableInstance<TData>;
|
|
1473
|
+
}
|
|
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
|
|
1477
|
+
declare const mrtFilterOptions: (localization: MRT_Localization) => MRT_InternalFilterOption[];
|
|
1478
|
+
interface MRT_FilterOptionMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
|
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>;
|
|
1485
|
+
}
|
|
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
|
|
1489
|
+
interface MRT_RowActionMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
|
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>;
|
|
1496
|
+
}
|
|
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
|
|
1500
|
+
interface MRT_ShowHideColumnsMenuProps<TData extends MRT_RowData> extends Partial<MenuProps> {
|
|
1501
|
+
anchorEl: HTMLElement | null;
|
|
1502
|
+
isSubMenu?: boolean;
|
|
1503
|
+
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
|
1504
|
+
table: MRT_TableInstance<TData>;
|
|
1505
|
+
}
|
|
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
|
|
1509
|
+
interface MRT_ShowHideColumnsMenuItemsProps<TData extends MRT_RowData> extends MenuItemProps {
|
|
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>;
|
|
1516
|
+
}
|
|
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>;
|
|
1523
|
+
}
|
|
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>;
|
|
1529
|
+
}
|
|
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>;
|
|
1535
|
+
}
|
|
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>;
|
|
1541
|
+
}
|
|
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>;
|
|
1547
|
+
}
|
|
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>;
|
|
1553
|
+
}
|
|
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>;
|
|
1560
|
+
}
|
|
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;
|
|
1572
|
+
}> {
|
|
1573
|
+
position?: 'bottom' | 'top';
|
|
1574
|
+
table: MRT_TableInstance<TData>;
|
|
1575
|
+
}
|
|
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>;
|
|
1582
|
+
}
|
|
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>;
|
|
1588
|
+
}
|
|
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>;
|
|
1594
|
+
}
|
|
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
|
|
1598
|
+
interface MRT_TopToolbarProps<TData extends MRT_RowData> {
|
|
1599
|
+
table: MRT_TableInstance<TData>;
|
|
1600
|
+
}
|
|
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
|
|
1604
|
+
declare const useMaterialReactTable: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_TableInstance<TData>;
|
|
1605
|
+
//#endregion
|
|
1606
|
+
//#region src/hooks/useMRT_ColumnVirtualizer.d.ts
|
|
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;
|
|
1608
|
+
//#endregion
|
|
1609
|
+
//#region src/hooks/useMRT_Effects.d.ts
|
|
1610
|
+
declare const useMRT_Effects: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => void;
|
|
1611
|
+
//#endregion
|
|
1612
|
+
//#region src/hooks/useMRT_Rows.d.ts
|
|
1613
|
+
declare const useMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => MRT_Row<TData>[];
|
|
1614
|
+
//#endregion
|
|
1615
|
+
//#region src/hooks/useMRT_RowVirtualizer.d.ts
|
|
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;
|
|
1617
|
+
//#endregion
|
|
1618
|
+
//#region src/hooks/useMRT_TableInstance.d.ts
|
|
1619
|
+
/**
|
|
1620
|
+
* The MRT hook that wraps the TanStack useReactTable hook and adds additional functionality
|
|
1621
|
+
* @param definedTableOptions - table options with proper defaults set
|
|
1622
|
+
* @returns the MRT table instance
|
|
1623
|
+
*/
|
|
1624
|
+
declare const useMRT_TableInstance: <TData extends MRT_RowData>(definedTableOptions: MRT_DefinedTableOptions<TData>) => MRT_TableInstance<TData>;
|
|
1625
|
+
//#endregion
|
|
1626
|
+
//#region src/hooks/useMRT_TableOptions.d.ts
|
|
1627
|
+
declare const MRT_DefaultColumn: {
|
|
1628
|
+
readonly filterVariant: "text";
|
|
1629
|
+
readonly maxSize: 1000;
|
|
1630
|
+
readonly minSize: 40;
|
|
1631
|
+
readonly size: 180;
|
|
1632
|
+
};
|
|
1633
|
+
declare const MRT_DefaultDisplayColumn: {
|
|
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;
|
|
1646
|
+
};
|
|
1647
|
+
declare const useMRT_TableOptions: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_DefinedTableOptions<TData>;
|
|
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>;
|
|
1653
|
+
}) => boolean | undefined;
|
|
1654
|
+
declare const openEditingCell: <TData extends MRT_RowData>({ cell, table }: {
|
|
1655
|
+
cell: MRT_Cell<TData>;
|
|
1656
|
+
table: MRT_TableInstance<TData>;
|
|
1657
|
+
}) => void;
|
|
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>;
|
|
1667
|
+
}) => void;
|
|
1668
|
+
//#endregion
|
|
1669
|
+
//#region src/utils/column.utils.d.ts
|
|
1670
|
+
declare const getColumnId: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => string;
|
|
1671
|
+
declare const getAllLeafColumnDefs: <TData extends MRT_RowData>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|
|
1672
|
+
declare const prepareColumns: <TData extends MRT_RowData>({ columnDefs, tableOptions }: {
|
|
1673
|
+
columnDefs: MRT_ColumnDef<TData>[];
|
|
1674
|
+
tableOptions: MRT_DefinedTableOptions<TData>;
|
|
1675
|
+
}) => MRT_DefinedColumnDef<TData>[];
|
|
1676
|
+
declare const reorderColumn: <TData extends MRT_RowData>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: MRT_ColumnOrderState) => MRT_ColumnOrderState;
|
|
1677
|
+
declare const getDefaultColumnFilterFn: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => MRT_FilterOption;
|
|
1678
|
+
declare const getColumnFilterInfo: <TData extends MRT_RowData>({ header, table }: {
|
|
1679
|
+
header: MRT_Header<TData>;
|
|
1680
|
+
table: MRT_TableInstance<TData>;
|
|
1681
|
+
}) => {
|
|
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;
|
|
1691
|
+
};
|
|
1692
|
+
declare const useDropdownOptions: <TData extends MRT_RowData>({ header, table }: {
|
|
1693
|
+
header: MRT_Header<TData>;
|
|
1694
|
+
table: MRT_TableInstance<TData>;
|
|
1695
|
+
}) => DropdownOption[] | undefined;
|
|
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>;
|
|
1703
|
+
}): {
|
|
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;
|
|
1890
|
+
};
|
|
1891
|
+
declare const showRowPinningColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1892
|
+
declare const showRowDragColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1893
|
+
declare const showRowExpandColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1894
|
+
declare const showRowActionsColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1895
|
+
declare const showRowSelectionColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1896
|
+
declare const showRowNumbersColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1897
|
+
declare const showRowSpacerColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1898
|
+
declare const getLeadingDisplayColumnIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => MRT_DisplayColumnIds[];
|
|
1899
|
+
declare const getTrailingDisplayColumnIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => MRT_DisplayColumnIds[];
|
|
1900
|
+
declare const getDefaultColumnOrderIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>, reset?: boolean) => string[];
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region src/utils/row.utils.d.ts
|
|
1903
|
+
declare const getMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, all?: boolean) => MRT_Row<TData>[];
|
|
1904
|
+
declare const getCanRankRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => boolean | undefined;
|
|
1905
|
+
declare const getIsRankingRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => any;
|
|
1906
|
+
declare const getIsRowSelected: <TData extends MRT_RowData>({ row, table }: {
|
|
1907
|
+
row: MRT_Row<TData>;
|
|
1908
|
+
table: MRT_TableInstance<TData>;
|
|
1909
|
+
}) => boolean | undefined;
|
|
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>;
|
|
1914
|
+
}) => (event: ChangeEvent<HTMLInputElement> | MouseEvent<HTMLTableRowElement>, value?: boolean) => void;
|
|
1915
|
+
declare const getMRT_SelectAllHandler: <TData extends MRT_RowData>({ table }: {
|
|
1916
|
+
table: MRT_TableInstance<TData>;
|
|
1917
|
+
}) => (event: ChangeEvent<HTMLInputElement> | MouseEvent<HTMLButtonElement>, value?: boolean, forceAll?: boolean) => void;
|
|
1918
|
+
//#endregion
|
|
1919
|
+
//#region src/utils/tanstack.helpers.d.ts
|
|
1920
|
+
declare const flexRender: (Comp: Renderable<any>, props: any) => JSX.Element | ReactNode;
|
|
1921
|
+
declare function createMRTColumnHelper<TData extends MRT_RowData>(): MRT_ColumnHelper<TData>;
|
|
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>;
|
|
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.mts.map
|