material-react-table 1.3.11 → 1.3.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/aggregationFns.d.ts +9 -9
- package/dist/cjs/column.utils.d.ts +26 -26
- package/dist/cjs/filterFns.d.ts +8 -8
- package/dist/cjs/sortingFns.d.ts +6 -6
- package/dist/cjs/table/MRT_TableRoot.d.ts +15 -15
- package/dist/esm/aggregationFns.d.ts +9 -9
- package/dist/esm/column.utils.d.ts +26 -26
- package/dist/esm/filterFns.d.ts +8 -8
- package/dist/esm/sortingFns.d.ts +6 -6
- package/dist/esm/table/MRT_TableRoot.d.ts +15 -15
- package/dist/index.d.ts +24 -24
- package/package.json +7 -7
@@ -1,11 +1,11 @@
|
|
1
1
|
export declare const MRT_AggregationFns: {
|
2
|
-
sum: import("@tanstack/table
|
3
|
-
min: import("@tanstack/table
|
4
|
-
max: import("@tanstack/table
|
5
|
-
extent: import("@tanstack/table
|
6
|
-
mean: import("@tanstack/table
|
7
|
-
median: import("@tanstack/table
|
8
|
-
unique: import("@tanstack/table
|
9
|
-
uniqueCount: import("@tanstack/table
|
10
|
-
count: import("@tanstack/table
|
2
|
+
sum: import("@tanstack/react-table").AggregationFn<any>;
|
3
|
+
min: import("@tanstack/react-table").AggregationFn<any>;
|
4
|
+
max: import("@tanstack/react-table").AggregationFn<any>;
|
5
|
+
extent: import("@tanstack/react-table").AggregationFn<any>;
|
6
|
+
mean: import("@tanstack/react-table").AggregationFn<any>;
|
7
|
+
median: import("@tanstack/react-table").AggregationFn<any>;
|
8
|
+
unique: import("@tanstack/react-table").AggregationFn<any>;
|
9
|
+
uniqueCount: import("@tanstack/react-table").AggregationFn<any>;
|
10
|
+
count: import("@tanstack/react-table").AggregationFn<any>;
|
11
11
|
};
|
@@ -9,16 +9,16 @@ export declare const getColumnId: <TData extends Record<string, any> = {}>(colum
|
|
9
9
|
export declare const getAllLeafColumnDefs: <TData extends Record<string, any> = {}>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|
10
10
|
export declare const prepareColumns: <TData extends Record<string, any> = {}>({ aggregationFns, columnDefs, columnFilterFns, defaultDisplayColumn, filterFns, sortingFns, }: {
|
11
11
|
aggregationFns: {
|
12
|
-
sum: import("@tanstack/table
|
13
|
-
min: import("@tanstack/table
|
14
|
-
max: import("@tanstack/table
|
15
|
-
extent: import("@tanstack/table
|
16
|
-
mean: import("@tanstack/table
|
17
|
-
median: import("@tanstack/table
|
18
|
-
unique: import("@tanstack/table
|
19
|
-
uniqueCount: import("@tanstack/table
|
20
|
-
count: import("@tanstack/table
|
21
|
-
} & Record<string, import("@tanstack/table
|
12
|
+
sum: import("@tanstack/react-table").AggregationFn<any>;
|
13
|
+
min: import("@tanstack/react-table").AggregationFn<any>;
|
14
|
+
max: import("@tanstack/react-table").AggregationFn<any>;
|
15
|
+
extent: import("@tanstack/react-table").AggregationFn<any>;
|
16
|
+
mean: import("@tanstack/react-table").AggregationFn<any>;
|
17
|
+
median: import("@tanstack/react-table").AggregationFn<any>;
|
18
|
+
unique: import("@tanstack/react-table").AggregationFn<any>;
|
19
|
+
uniqueCount: import("@tanstack/react-table").AggregationFn<any>;
|
20
|
+
count: import("@tanstack/react-table").AggregationFn<any>;
|
21
|
+
} & Record<string, import("@tanstack/react-table").AggregationFn<any>>;
|
22
22
|
columnDefs: MRT_ColumnDef<TData>[];
|
23
23
|
columnFilterFns: {
|
24
24
|
[key: string]: MRT_FilterOption;
|
@@ -81,24 +81,24 @@ export declare const prepareColumns: <TData extends Record<string, any> = {}>({
|
|
81
81
|
<TData_14 extends Record<string, any> = {}>(row: Row<TData_14>, id: string, filterValue: string | number): boolean;
|
82
82
|
autoRemove(val: any): boolean;
|
83
83
|
};
|
84
|
-
includesString: import("@tanstack/table
|
85
|
-
includesStringSensitive: import("@tanstack/table
|
86
|
-
equalsString: import("@tanstack/table
|
87
|
-
arrIncludes: import("@tanstack/table
|
88
|
-
arrIncludesAll: import("@tanstack/table
|
89
|
-
arrIncludesSome: import("@tanstack/table
|
90
|
-
weakEquals: import("@tanstack/table
|
91
|
-
inNumberRange: import("@tanstack/table
|
92
|
-
} & Record<string, import("@tanstack/table
|
84
|
+
includesString: import("@tanstack/react-table").FilterFn<any>;
|
85
|
+
includesStringSensitive: import("@tanstack/react-table").FilterFn<any>;
|
86
|
+
equalsString: import("@tanstack/react-table").FilterFn<any>;
|
87
|
+
arrIncludes: import("@tanstack/react-table").FilterFn<any>;
|
88
|
+
arrIncludesAll: import("@tanstack/react-table").FilterFn<any>;
|
89
|
+
arrIncludesSome: import("@tanstack/react-table").FilterFn<any>;
|
90
|
+
weakEquals: import("@tanstack/react-table").FilterFn<any>;
|
91
|
+
inNumberRange: import("@tanstack/react-table").FilterFn<any>;
|
92
|
+
} & Record<string, import("@tanstack/react-table").FilterFn<any>>;
|
93
93
|
sortingFns: {
|
94
94
|
fuzzy: <TData_15 extends Record<string, any> = {}>(rowA: Row<TData_15>, rowB: Row<TData_15>, columnId: string) => number;
|
95
|
-
alphanumeric: import("@tanstack/table
|
96
|
-
alphanumericCaseSensitive: import("@tanstack/table
|
97
|
-
text: import("@tanstack/table
|
98
|
-
textCaseSensitive: import("@tanstack/table
|
99
|
-
datetime: import("@tanstack/table
|
100
|
-
basic: import("@tanstack/table
|
101
|
-
} & Record<string, import("@tanstack/table
|
95
|
+
alphanumeric: import("@tanstack/react-table").SortingFn<any>;
|
96
|
+
alphanumericCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
97
|
+
text: import("@tanstack/react-table").SortingFn<any>;
|
98
|
+
textCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
99
|
+
datetime: import("@tanstack/react-table").SortingFn<any>;
|
100
|
+
basic: import("@tanstack/react-table").SortingFn<any>;
|
101
|
+
} & Record<string, import("@tanstack/react-table").SortingFn<any>>;
|
102
102
|
}) => MRT_DefinedColumnDef<TData>[];
|
103
103
|
export declare const reorderColumn: <TData extends Record<string, any> = {}>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: ColumnOrderState) => ColumnOrderState;
|
104
104
|
export declare const showExpandColumn: <TData extends Record<string, any> = {}>(props: MaterialReactTableProps<TData>, grouping?: GroupingState) => boolean;
|
package/dist/cjs/filterFns.d.ts
CHANGED
@@ -57,12 +57,12 @@ export declare const MRT_FilterFns: {
|
|
57
57
|
<TData_13 extends Record<string, any> = {}>(row: Row<TData_13>, id: string, filterValue: string | number): boolean;
|
58
58
|
autoRemove(val: any): boolean;
|
59
59
|
};
|
60
|
-
includesString: import("@tanstack/table
|
61
|
-
includesStringSensitive: import("@tanstack/table
|
62
|
-
equalsString: import("@tanstack/table
|
63
|
-
arrIncludes: import("@tanstack/table
|
64
|
-
arrIncludesAll: import("@tanstack/table
|
65
|
-
arrIncludesSome: import("@tanstack/table
|
66
|
-
weakEquals: import("@tanstack/table
|
67
|
-
inNumberRange: import("@tanstack/table
|
60
|
+
includesString: import("@tanstack/react-table").FilterFn<any>;
|
61
|
+
includesStringSensitive: import("@tanstack/react-table").FilterFn<any>;
|
62
|
+
equalsString: import("@tanstack/react-table").FilterFn<any>;
|
63
|
+
arrIncludes: import("@tanstack/react-table").FilterFn<any>;
|
64
|
+
arrIncludesAll: import("@tanstack/react-table").FilterFn<any>;
|
65
|
+
arrIncludesSome: import("@tanstack/react-table").FilterFn<any>;
|
66
|
+
weakEquals: import("@tanstack/react-table").FilterFn<any>;
|
67
|
+
inNumberRange: import("@tanstack/react-table").FilterFn<any>;
|
68
68
|
};
|
package/dist/cjs/sortingFns.d.ts
CHANGED
@@ -2,11 +2,11 @@ import { Row } from '@tanstack/react-table';
|
|
2
2
|
import { MRT_Row } from '.';
|
3
3
|
export declare const MRT_SortingFns: {
|
4
4
|
fuzzy: <TData extends Record<string, any> = {}>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
|
5
|
-
alphanumeric: import("@tanstack/table
|
6
|
-
alphanumericCaseSensitive: import("@tanstack/table
|
7
|
-
text: import("@tanstack/table
|
8
|
-
textCaseSensitive: import("@tanstack/table
|
9
|
-
datetime: import("@tanstack/table
|
10
|
-
basic: import("@tanstack/table
|
5
|
+
alphanumeric: import("@tanstack/react-table").SortingFn<any>;
|
6
|
+
alphanumericCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
7
|
+
text: import("@tanstack/react-table").SortingFn<any>;
|
8
|
+
textCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
9
|
+
datetime: import("@tanstack/react-table").SortingFn<any>;
|
10
|
+
basic: import("@tanstack/react-table").SortingFn<any>;
|
11
11
|
};
|
12
12
|
export declare const rankGlobalFuzzy: <TData extends Record<string, any> = {}>(rowA: MRT_Row<TData>, rowB: MRT_Row<TData>) => number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { MRT_Cell, MRT_Column, MRT_ColumnDef, MRT_FilterOption, MRT_Row, MRT_TableInstance, MRT_TableState, MaterialReactTableProps, MRT_Localization } from '..';
|
3
|
-
export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(props: Omit<Partial<import("@tanstack/table
|
3
|
+
export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(props: Omit<Partial<import("@tanstack/react-table").TableOptions<TData>>, "state" | "data" | "onStateChange" | "initialState" | "getRowId" | "columns" | "defaultColumn" | "globalFilterFn" | "enableRowSelection" | "expandRowsFn"> & {
|
4
4
|
columnFilterModeOptions?: (string | (string & Record<never, never>))[] | null | undefined;
|
5
5
|
columns: MRT_ColumnDef<TData>[];
|
6
6
|
data: TData[];
|
@@ -171,27 +171,27 @@ export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(pro
|
|
171
171
|
muiTopToolbarProps?: import("@mui/material").ToolbarProps<"div", {}> | (({ table }: {
|
172
172
|
table: MRT_TableInstance<TData>;
|
173
173
|
}) => import("@mui/material").ToolbarProps<"div", {}>) | undefined;
|
174
|
-
onDensityChange?: import("@tanstack/table
|
175
|
-
onDraggingColumnChange?: import("@tanstack/table
|
176
|
-
onDraggingRowChange?: import("@tanstack/table
|
177
|
-
onEditingCellChange?: import("@tanstack/table
|
174
|
+
onDensityChange?: import("@tanstack/react-table").OnChangeFn<import("..").DensityState> | undefined;
|
175
|
+
onDraggingColumnChange?: import("@tanstack/react-table").OnChangeFn<MRT_Column<TData> | null> | undefined;
|
176
|
+
onDraggingRowChange?: import("@tanstack/react-table").OnChangeFn<MRT_Row<TData> | null> | undefined;
|
177
|
+
onEditingCellChange?: import("@tanstack/react-table").OnChangeFn<MRT_Cell<TData> | null> | undefined;
|
178
178
|
onEditingRowSave?: (({ exitEditingMode, row, table, values, }: {
|
179
179
|
exitEditingMode: () => void;
|
180
180
|
row: MRT_Row<TData>;
|
181
181
|
table: MRT_TableInstance<TData>;
|
182
|
-
values: Record<(string & Record<never, never>) | (string & import("@tanstack/table
|
182
|
+
values: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
183
183
|
}) => void | Promise<void>) | undefined;
|
184
|
-
onEditingRowChange?: import("@tanstack/table
|
185
|
-
onColumnFilterFnsChange?: import("@tanstack/table
|
184
|
+
onEditingRowChange?: import("@tanstack/react-table").OnChangeFn<MRT_Row<TData> | null> | undefined;
|
185
|
+
onColumnFilterFnsChange?: import("@tanstack/react-table").OnChangeFn<{
|
186
186
|
[key: string]: MRT_FilterOption;
|
187
187
|
}> | undefined;
|
188
|
-
onGlobalFilterFnChange?: import("@tanstack/table
|
189
|
-
onHoveredColumnChange?: import("@tanstack/table
|
190
|
-
onHoveredRowChange?: import("@tanstack/table
|
191
|
-
onIsFullScreenChange?: import("@tanstack/table
|
192
|
-
onShowAlertBannerChange?: import("@tanstack/table
|
193
|
-
onShowFiltersChange?: import("@tanstack/table
|
194
|
-
onShowGlobalFilterChange?: import("@tanstack/table
|
188
|
+
onGlobalFilterFnChange?: import("@tanstack/react-table").OnChangeFn<MRT_FilterOption> | undefined;
|
189
|
+
onHoveredColumnChange?: import("@tanstack/react-table").OnChangeFn<MRT_Column<TData> | null> | undefined;
|
190
|
+
onHoveredRowChange?: import("@tanstack/react-table").OnChangeFn<MRT_Row<TData> | null> | undefined;
|
191
|
+
onIsFullScreenChange?: import("@tanstack/react-table").OnChangeFn<boolean> | undefined;
|
192
|
+
onShowAlertBannerChange?: import("@tanstack/react-table").OnChangeFn<boolean> | undefined;
|
193
|
+
onShowFiltersChange?: import("@tanstack/react-table").OnChangeFn<boolean> | undefined;
|
194
|
+
onShowGlobalFilterChange?: import("@tanstack/react-table").OnChangeFn<boolean> | undefined;
|
195
195
|
positionActionsColumn?: "first" | "last" | undefined;
|
196
196
|
positionExpandColumn?: "first" | "last" | undefined;
|
197
197
|
positionGlobalFilter?: "left" | "right" | undefined;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
export declare const MRT_AggregationFns: {
|
2
|
-
sum: import("@tanstack/table
|
3
|
-
min: import("@tanstack/table
|
4
|
-
max: import("@tanstack/table
|
5
|
-
extent: import("@tanstack/table
|
6
|
-
mean: import("@tanstack/table
|
7
|
-
median: import("@tanstack/table
|
8
|
-
unique: import("@tanstack/table
|
9
|
-
uniqueCount: import("@tanstack/table
|
10
|
-
count: import("@tanstack/table
|
2
|
+
sum: import("@tanstack/react-table").AggregationFn<any>;
|
3
|
+
min: import("@tanstack/react-table").AggregationFn<any>;
|
4
|
+
max: import("@tanstack/react-table").AggregationFn<any>;
|
5
|
+
extent: import("@tanstack/react-table").AggregationFn<any>;
|
6
|
+
mean: import("@tanstack/react-table").AggregationFn<any>;
|
7
|
+
median: import("@tanstack/react-table").AggregationFn<any>;
|
8
|
+
unique: import("@tanstack/react-table").AggregationFn<any>;
|
9
|
+
uniqueCount: import("@tanstack/react-table").AggregationFn<any>;
|
10
|
+
count: import("@tanstack/react-table").AggregationFn<any>;
|
11
11
|
};
|
@@ -9,16 +9,16 @@ export declare const getColumnId: <TData extends Record<string, any> = {}>(colum
|
|
9
9
|
export declare const getAllLeafColumnDefs: <TData extends Record<string, any> = {}>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|
10
10
|
export declare const prepareColumns: <TData extends Record<string, any> = {}>({ aggregationFns, columnDefs, columnFilterFns, defaultDisplayColumn, filterFns, sortingFns, }: {
|
11
11
|
aggregationFns: {
|
12
|
-
sum: import("@tanstack/table
|
13
|
-
min: import("@tanstack/table
|
14
|
-
max: import("@tanstack/table
|
15
|
-
extent: import("@tanstack/table
|
16
|
-
mean: import("@tanstack/table
|
17
|
-
median: import("@tanstack/table
|
18
|
-
unique: import("@tanstack/table
|
19
|
-
uniqueCount: import("@tanstack/table
|
20
|
-
count: import("@tanstack/table
|
21
|
-
} & Record<string, import("@tanstack/table
|
12
|
+
sum: import("@tanstack/react-table").AggregationFn<any>;
|
13
|
+
min: import("@tanstack/react-table").AggregationFn<any>;
|
14
|
+
max: import("@tanstack/react-table").AggregationFn<any>;
|
15
|
+
extent: import("@tanstack/react-table").AggregationFn<any>;
|
16
|
+
mean: import("@tanstack/react-table").AggregationFn<any>;
|
17
|
+
median: import("@tanstack/react-table").AggregationFn<any>;
|
18
|
+
unique: import("@tanstack/react-table").AggregationFn<any>;
|
19
|
+
uniqueCount: import("@tanstack/react-table").AggregationFn<any>;
|
20
|
+
count: import("@tanstack/react-table").AggregationFn<any>;
|
21
|
+
} & Record<string, import("@tanstack/react-table").AggregationFn<any>>;
|
22
22
|
columnDefs: MRT_ColumnDef<TData>[];
|
23
23
|
columnFilterFns: {
|
24
24
|
[key: string]: MRT_FilterOption;
|
@@ -81,24 +81,24 @@ export declare const prepareColumns: <TData extends Record<string, any> = {}>({
|
|
81
81
|
<TData_14 extends Record<string, any> = {}>(row: Row<TData_14>, id: string, filterValue: string | number): boolean;
|
82
82
|
autoRemove(val: any): boolean;
|
83
83
|
};
|
84
|
-
includesString: import("@tanstack/table
|
85
|
-
includesStringSensitive: import("@tanstack/table
|
86
|
-
equalsString: import("@tanstack/table
|
87
|
-
arrIncludes: import("@tanstack/table
|
88
|
-
arrIncludesAll: import("@tanstack/table
|
89
|
-
arrIncludesSome: import("@tanstack/table
|
90
|
-
weakEquals: import("@tanstack/table
|
91
|
-
inNumberRange: import("@tanstack/table
|
92
|
-
} & Record<string, import("@tanstack/table
|
84
|
+
includesString: import("@tanstack/react-table").FilterFn<any>;
|
85
|
+
includesStringSensitive: import("@tanstack/react-table").FilterFn<any>;
|
86
|
+
equalsString: import("@tanstack/react-table").FilterFn<any>;
|
87
|
+
arrIncludes: import("@tanstack/react-table").FilterFn<any>;
|
88
|
+
arrIncludesAll: import("@tanstack/react-table").FilterFn<any>;
|
89
|
+
arrIncludesSome: import("@tanstack/react-table").FilterFn<any>;
|
90
|
+
weakEquals: import("@tanstack/react-table").FilterFn<any>;
|
91
|
+
inNumberRange: import("@tanstack/react-table").FilterFn<any>;
|
92
|
+
} & Record<string, import("@tanstack/react-table").FilterFn<any>>;
|
93
93
|
sortingFns: {
|
94
94
|
fuzzy: <TData_15 extends Record<string, any> = {}>(rowA: Row<TData_15>, rowB: Row<TData_15>, columnId: string) => number;
|
95
|
-
alphanumeric: import("@tanstack/table
|
96
|
-
alphanumericCaseSensitive: import("@tanstack/table
|
97
|
-
text: import("@tanstack/table
|
98
|
-
textCaseSensitive: import("@tanstack/table
|
99
|
-
datetime: import("@tanstack/table
|
100
|
-
basic: import("@tanstack/table
|
101
|
-
} & Record<string, import("@tanstack/table
|
95
|
+
alphanumeric: import("@tanstack/react-table").SortingFn<any>;
|
96
|
+
alphanumericCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
97
|
+
text: import("@tanstack/react-table").SortingFn<any>;
|
98
|
+
textCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
99
|
+
datetime: import("@tanstack/react-table").SortingFn<any>;
|
100
|
+
basic: import("@tanstack/react-table").SortingFn<any>;
|
101
|
+
} & Record<string, import("@tanstack/react-table").SortingFn<any>>;
|
102
102
|
}) => MRT_DefinedColumnDef<TData>[];
|
103
103
|
export declare const reorderColumn: <TData extends Record<string, any> = {}>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: ColumnOrderState) => ColumnOrderState;
|
104
104
|
export declare const showExpandColumn: <TData extends Record<string, any> = {}>(props: MaterialReactTableProps<TData>, grouping?: GroupingState) => boolean;
|
package/dist/esm/filterFns.d.ts
CHANGED
@@ -57,12 +57,12 @@ export declare const MRT_FilterFns: {
|
|
57
57
|
<TData_13 extends Record<string, any> = {}>(row: Row<TData_13>, id: string, filterValue: string | number): boolean;
|
58
58
|
autoRemove(val: any): boolean;
|
59
59
|
};
|
60
|
-
includesString: import("@tanstack/table
|
61
|
-
includesStringSensitive: import("@tanstack/table
|
62
|
-
equalsString: import("@tanstack/table
|
63
|
-
arrIncludes: import("@tanstack/table
|
64
|
-
arrIncludesAll: import("@tanstack/table
|
65
|
-
arrIncludesSome: import("@tanstack/table
|
66
|
-
weakEquals: import("@tanstack/table
|
67
|
-
inNumberRange: import("@tanstack/table
|
60
|
+
includesString: import("@tanstack/react-table").FilterFn<any>;
|
61
|
+
includesStringSensitive: import("@tanstack/react-table").FilterFn<any>;
|
62
|
+
equalsString: import("@tanstack/react-table").FilterFn<any>;
|
63
|
+
arrIncludes: import("@tanstack/react-table").FilterFn<any>;
|
64
|
+
arrIncludesAll: import("@tanstack/react-table").FilterFn<any>;
|
65
|
+
arrIncludesSome: import("@tanstack/react-table").FilterFn<any>;
|
66
|
+
weakEquals: import("@tanstack/react-table").FilterFn<any>;
|
67
|
+
inNumberRange: import("@tanstack/react-table").FilterFn<any>;
|
68
68
|
};
|
package/dist/esm/sortingFns.d.ts
CHANGED
@@ -2,11 +2,11 @@ import { Row } from '@tanstack/react-table';
|
|
2
2
|
import { MRT_Row } from '.';
|
3
3
|
export declare const MRT_SortingFns: {
|
4
4
|
fuzzy: <TData extends Record<string, any> = {}>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
|
5
|
-
alphanumeric: import("@tanstack/table
|
6
|
-
alphanumericCaseSensitive: import("@tanstack/table
|
7
|
-
text: import("@tanstack/table
|
8
|
-
textCaseSensitive: import("@tanstack/table
|
9
|
-
datetime: import("@tanstack/table
|
10
|
-
basic: import("@tanstack/table
|
5
|
+
alphanumeric: import("@tanstack/react-table").SortingFn<any>;
|
6
|
+
alphanumericCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
7
|
+
text: import("@tanstack/react-table").SortingFn<any>;
|
8
|
+
textCaseSensitive: import("@tanstack/react-table").SortingFn<any>;
|
9
|
+
datetime: import("@tanstack/react-table").SortingFn<any>;
|
10
|
+
basic: import("@tanstack/react-table").SortingFn<any>;
|
11
11
|
};
|
12
12
|
export declare const rankGlobalFuzzy: <TData extends Record<string, any> = {}>(rowA: MRT_Row<TData>, rowB: MRT_Row<TData>) => number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { MRT_Cell, MRT_Column, MRT_ColumnDef, MRT_FilterOption, MRT_Row, MRT_TableInstance, MRT_TableState, MaterialReactTableProps, MRT_Localization } from '..';
|
3
|
-
export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(props: Omit<Partial<import("@tanstack/table
|
3
|
+
export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(props: Omit<Partial<import("@tanstack/react-table").TableOptions<TData>>, "state" | "data" | "onStateChange" | "initialState" | "getRowId" | "columns" | "defaultColumn" | "globalFilterFn" | "enableRowSelection" | "expandRowsFn"> & {
|
4
4
|
columnFilterModeOptions?: (string | (string & Record<never, never>))[] | null | undefined;
|
5
5
|
columns: MRT_ColumnDef<TData>[];
|
6
6
|
data: TData[];
|
@@ -171,27 +171,27 @@ export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(pro
|
|
171
171
|
muiTopToolbarProps?: import("@mui/material").ToolbarProps<"div", {}> | (({ table }: {
|
172
172
|
table: MRT_TableInstance<TData>;
|
173
173
|
}) => import("@mui/material").ToolbarProps<"div", {}>) | undefined;
|
174
|
-
onDensityChange?: import("@tanstack/table
|
175
|
-
onDraggingColumnChange?: import("@tanstack/table
|
176
|
-
onDraggingRowChange?: import("@tanstack/table
|
177
|
-
onEditingCellChange?: import("@tanstack/table
|
174
|
+
onDensityChange?: import("@tanstack/react-table").OnChangeFn<import("..").DensityState> | undefined;
|
175
|
+
onDraggingColumnChange?: import("@tanstack/react-table").OnChangeFn<MRT_Column<TData> | null> | undefined;
|
176
|
+
onDraggingRowChange?: import("@tanstack/react-table").OnChangeFn<MRT_Row<TData> | null> | undefined;
|
177
|
+
onEditingCellChange?: import("@tanstack/react-table").OnChangeFn<MRT_Cell<TData> | null> | undefined;
|
178
178
|
onEditingRowSave?: (({ exitEditingMode, row, table, values, }: {
|
179
179
|
exitEditingMode: () => void;
|
180
180
|
row: MRT_Row<TData>;
|
181
181
|
table: MRT_TableInstance<TData>;
|
182
|
-
values: Record<(string & Record<never, never>) | (string & import("@tanstack/table
|
182
|
+
values: Record<(string & Record<never, never>) | (string & import("@tanstack/react-table").DeepKeys<TData>), any>;
|
183
183
|
}) => void | Promise<void>) | undefined;
|
184
|
-
onEditingRowChange?: import("@tanstack/table
|
185
|
-
onColumnFilterFnsChange?: import("@tanstack/table
|
184
|
+
onEditingRowChange?: import("@tanstack/react-table").OnChangeFn<MRT_Row<TData> | null> | undefined;
|
185
|
+
onColumnFilterFnsChange?: import("@tanstack/react-table").OnChangeFn<{
|
186
186
|
[key: string]: MRT_FilterOption;
|
187
187
|
}> | undefined;
|
188
|
-
onGlobalFilterFnChange?: import("@tanstack/table
|
189
|
-
onHoveredColumnChange?: import("@tanstack/table
|
190
|
-
onHoveredRowChange?: import("@tanstack/table
|
191
|
-
onIsFullScreenChange?: import("@tanstack/table
|
192
|
-
onShowAlertBannerChange?: import("@tanstack/table
|
193
|
-
onShowFiltersChange?: import("@tanstack/table
|
194
|
-
onShowGlobalFilterChange?: import("@tanstack/table
|
188
|
+
onGlobalFilterFnChange?: import("@tanstack/react-table").OnChangeFn<MRT_FilterOption> | undefined;
|
189
|
+
onHoveredColumnChange?: import("@tanstack/react-table").OnChangeFn<MRT_Column<TData> | null> | undefined;
|
190
|
+
onHoveredRowChange?: import("@tanstack/react-table").OnChangeFn<MRT_Row<TData> | null> | undefined;
|
191
|
+
onIsFullScreenChange?: import("@tanstack/react-table").OnChangeFn<boolean> | undefined;
|
192
|
+
onShowAlertBannerChange?: import("@tanstack/react-table").OnChangeFn<boolean> | undefined;
|
193
|
+
onShowFiltersChange?: import("@tanstack/react-table").OnChangeFn<boolean> | undefined;
|
194
|
+
onShowGlobalFilterChange?: import("@tanstack/react-table").OnChangeFn<boolean> | undefined;
|
195
195
|
positionActionsColumn?: "first" | "last" | undefined;
|
196
196
|
positionExpandColumn?: "first" | "last" | undefined;
|
197
197
|
positionGlobalFilter?: "left" | "right" | undefined;
|
package/dist/index.d.ts
CHANGED
@@ -19,21 +19,21 @@ import { TablePaginationProps } from '@mui/material/TablePagination';
|
|
19
19
|
import { TableRowProps } from '@mui/material/TableRow';
|
20
20
|
import { TextFieldProps } from '@mui/material/TextField';
|
21
21
|
import { ToolbarProps } from '@mui/material/Toolbar';
|
22
|
+
import * as _tanstack_react_table from '@tanstack/react-table';
|
22
23
|
import { Row, Table, TableState, ColumnDef, DeepKeys, Column, Header, HeaderGroup, Cell, AggregationFn, SortingFn, FilterFn, TableOptions, OnChangeFn } from '@tanstack/react-table';
|
23
24
|
import { Options, VirtualItem } from 'react-virtual';
|
24
|
-
import * as _tanstack_table_core from '@tanstack/table-core';
|
25
25
|
import { RankingInfo } from '@tanstack/match-sorter-utils';
|
26
26
|
|
27
27
|
declare const MRT_AggregationFns: {
|
28
|
-
sum:
|
29
|
-
min:
|
30
|
-
max:
|
31
|
-
extent:
|
32
|
-
mean:
|
33
|
-
median:
|
34
|
-
unique:
|
35
|
-
uniqueCount:
|
36
|
-
count:
|
28
|
+
sum: _tanstack_react_table.AggregationFn<any>;
|
29
|
+
min: _tanstack_react_table.AggregationFn<any>;
|
30
|
+
max: _tanstack_react_table.AggregationFn<any>;
|
31
|
+
extent: _tanstack_react_table.AggregationFn<any>;
|
32
|
+
mean: _tanstack_react_table.AggregationFn<any>;
|
33
|
+
median: _tanstack_react_table.AggregationFn<any>;
|
34
|
+
unique: _tanstack_react_table.AggregationFn<any>;
|
35
|
+
uniqueCount: _tanstack_react_table.AggregationFn<any>;
|
36
|
+
count: _tanstack_react_table.AggregationFn<any>;
|
37
37
|
};
|
38
38
|
|
39
39
|
declare const MRT_FilterFns: {
|
@@ -93,14 +93,14 @@ declare const MRT_FilterFns: {
|
|
93
93
|
<TData_13 extends Record<string, any> = {}>(row: Row<TData_13>, id: string, filterValue: string | number): boolean;
|
94
94
|
autoRemove(val: any): boolean;
|
95
95
|
};
|
96
|
-
includesString:
|
97
|
-
includesStringSensitive:
|
98
|
-
equalsString:
|
99
|
-
arrIncludes:
|
100
|
-
arrIncludesAll:
|
101
|
-
arrIncludesSome:
|
102
|
-
weakEquals:
|
103
|
-
inNumberRange:
|
96
|
+
includesString: _tanstack_react_table.FilterFn<any>;
|
97
|
+
includesStringSensitive: _tanstack_react_table.FilterFn<any>;
|
98
|
+
equalsString: _tanstack_react_table.FilterFn<any>;
|
99
|
+
arrIncludes: _tanstack_react_table.FilterFn<any>;
|
100
|
+
arrIncludesAll: _tanstack_react_table.FilterFn<any>;
|
101
|
+
arrIncludesSome: _tanstack_react_table.FilterFn<any>;
|
102
|
+
weakEquals: _tanstack_react_table.FilterFn<any>;
|
103
|
+
inNumberRange: _tanstack_react_table.FilterFn<any>;
|
104
104
|
};
|
105
105
|
|
106
106
|
interface MRT_Icons {
|
@@ -139,12 +139,12 @@ interface MRT_Icons {
|
|
139
139
|
|
140
140
|
declare const MRT_SortingFns: {
|
141
141
|
fuzzy: <TData extends Record<string, any> = {}>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
|
142
|
-
alphanumeric:
|
143
|
-
alphanumericCaseSensitive:
|
144
|
-
text:
|
145
|
-
textCaseSensitive:
|
146
|
-
datetime:
|
147
|
-
basic:
|
142
|
+
alphanumeric: _tanstack_react_table.SortingFn<any>;
|
143
|
+
alphanumericCaseSensitive: _tanstack_react_table.SortingFn<any>;
|
144
|
+
text: _tanstack_react_table.SortingFn<any>;
|
145
|
+
textCaseSensitive: _tanstack_react_table.SortingFn<any>;
|
146
|
+
datetime: _tanstack_react_table.SortingFn<any>;
|
147
|
+
basic: _tanstack_react_table.SortingFn<any>;
|
148
148
|
};
|
149
149
|
|
150
150
|
/**
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.3.
|
2
|
+
"version": "1.3.12",
|
3
3
|
"license": "MIT",
|
4
4
|
"name": "material-react-table",
|
5
5
|
"description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
|
@@ -15,9 +15,6 @@
|
|
15
15
|
"type": "git",
|
16
16
|
"url": "https://github.com/KevinVandy/material-react-table"
|
17
17
|
},
|
18
|
-
"publishConfig": {
|
19
|
-
"registry": "https://registry.npmjs.org/"
|
20
|
-
},
|
21
18
|
"funding": {
|
22
19
|
"type": "github",
|
23
20
|
"url": "https://github.com/sponsors/kevinvandy"
|
@@ -86,8 +83,8 @@
|
|
86
83
|
"@typescript-eslint/parser": "^5.44.0",
|
87
84
|
"babel-loader": "^9.1.0",
|
88
85
|
"eslint": "^8.28.0",
|
89
|
-
"eslint-plugin-mui-path-imports": "^0.0.
|
90
|
-
"prettier": "^2.
|
86
|
+
"eslint-plugin-mui-path-imports": "^0.0.5",
|
87
|
+
"prettier": "^2.8.0",
|
91
88
|
"react": "^18.2.0",
|
92
89
|
"react-dom": "^18.2.0",
|
93
90
|
"react-is": "^18.2.0",
|
@@ -111,7 +108,10 @@
|
|
111
108
|
},
|
112
109
|
"dependencies": {
|
113
110
|
"@tanstack/match-sorter-utils": "8.5.14",
|
114
|
-
"@tanstack/react-table": "8.
|
111
|
+
"@tanstack/react-table": "8.7.0",
|
115
112
|
"react-virtual": "^2.10.4"
|
113
|
+
},
|
114
|
+
"resolutions": {
|
115
|
+
"enhanced-resolve": "5.10.0"
|
116
116
|
}
|
117
117
|
}
|