material-react-table 1.3.10 → 1.3.12
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/README.md +2 -2
- package/dist/cjs/_locales/cs.d.ts +1 -1
- package/dist/cjs/_locales/de.d.ts +1 -1
- package/dist/cjs/_locales/en.d.ts +1 -1
- package/dist/cjs/_locales/es.d.ts +1 -1
- package/dist/cjs/_locales/fa.d.ts +1 -1
- package/dist/cjs/_locales/fr.d.ts +1 -1
- package/dist/cjs/_locales/it.d.ts +1 -1
- package/dist/cjs/_locales/ja.d.ts +1 -1
- package/dist/cjs/_locales/pl.d.ts +1 -1
- package/dist/cjs/_locales/pt-BR.d.ts +1 -1
- package/dist/cjs/_locales/pt.d.ts +1 -1
- package/dist/cjs/_locales/ru.d.ts +1 -1
- package/dist/cjs/_locales/tr.d.ts +1 -1
- package/dist/cjs/_locales/vi.d.ts +2 -0
- 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/_locales/cs.d.ts +1 -1
- package/dist/esm/_locales/de.d.ts +1 -1
- package/dist/esm/_locales/en.d.ts +1 -1
- package/dist/esm/_locales/es.d.ts +1 -1
- package/dist/esm/_locales/fa.d.ts +1 -1
- package/dist/esm/_locales/fr.d.ts +1 -1
- package/dist/esm/_locales/it.d.ts +1 -1
- package/dist/esm/_locales/ja.d.ts +1 -1
- package/dist/esm/_locales/pl.d.ts +1 -1
- package/dist/esm/_locales/pt-BR.d.ts +1 -1
- package/dist/esm/_locales/pt.d.ts +1 -1
- package/dist/esm/_locales/ru.d.ts +1 -1
- package/dist/esm/_locales/tr.d.ts +1 -1
- package/dist/esm/_locales/vi.d.ts +2 -0
- 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/locales/cs.d.ts +1 -1
- package/locales/cs.esm.d.ts +1 -1
- package/locales/de.d.ts +1 -1
- package/locales/de.esm.d.ts +1 -1
- package/locales/en.d.ts +1 -1
- package/locales/en.esm.d.ts +1 -1
- package/locales/es.d.ts +1 -1
- package/locales/es.esm.d.ts +1 -1
- package/locales/fa.d.ts +1 -1
- package/locales/fa.esm.d.ts +1 -1
- package/locales/fr.d.ts +1 -1
- package/locales/fr.esm.d.ts +1 -1
- package/locales/it.d.ts +1 -1
- package/locales/it.esm.d.ts +1 -1
- package/locales/ja.d.ts +1 -1
- package/locales/ja.esm.d.ts +1 -1
- package/locales/pl.d.ts +1 -1
- package/locales/pl.esm.d.ts +1 -1
- package/locales/pt-BR.d.ts +1 -1
- package/locales/pt-BR.esm.d.ts +1 -1
- package/locales/pt.d.ts +1 -1
- package/locales/pt.esm.d.ts +1 -1
- package/locales/ru.d.ts +1 -1
- package/locales/ru.esm.d.ts +1 -1
- package/locales/tr.d.ts +1 -1
- package/locales/tr.esm.d.ts +1 -1
- package/locales/tr.esm.js +86 -86
- package/locales/tr.js +86 -86
- package/locales/vi.d.ts +2 -0
- package/locales/vi.esm.d.ts +2 -0
- package/locales/vi.esm.js +92 -0
- package/locales/vi.esm.js.map +1 -0
- package/locales/vi.js +96 -0
- package/locales/vi.js.map +1 -0
- package/package.json +11 -11
- package/src/_locales/cs.ts +1 -1
- package/src/_locales/de.ts +1 -1
- package/src/_locales/en.ts +1 -1
- package/src/_locales/es.ts +1 -1
- package/src/_locales/fa.ts +1 -1
- package/src/_locales/fr.ts +1 -1
- package/src/_locales/it.ts +1 -1
- package/src/_locales/ja.ts +1 -1
- package/src/_locales/pl.ts +1 -1
- package/src/_locales/pt-BR.ts +1 -1
- package/src/_locales/pt.ts +1 -1
- package/src/_locales/ru.ts +1 -1
- package/src/_locales/tr.ts +87 -87
- package/src/_locales/vi.ts +92 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
A good table library should offer you powerful features, with an easy way to customize them, or even opt out and turn them off. It should also offer a bunch of advanced features to take your tables to the next level, but without sacrificing too bundle size bloat. MRT attempts to find that happy balance.
|
|
29
29
|
|
|
30
|
-
MRT is built on top of [TanStack Table's](https://tanstack.com/table/v8)
|
|
30
|
+
MRT is built on top of [TanStack Table's](https://tanstack.com/table/v8) react hooks to build upon it's high performance and flexibility.
|
|
31
31
|
|
|
32
32
|
## Learn More
|
|
33
33
|
|
|
@@ -109,7 +109,7 @@ npm install @mui/material @mui/icons-material @emotion/react @emotion/styled
|
|
|
109
109
|
npm install material-react-table
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
> _`@tanstack/react-table`, `@tanstack/react-virtual`, and `@tanstack/match-sorter-utils`_ are internal dependencies, so you
|
|
112
|
+
> _`@tanstack/react-table`, `@tanstack/react-virtual`, and `@tanstack/match-sorter-utils`_ are internal dependencies, so you do NOT need to install them yourself.
|
|
113
113
|
|
|
114
114
|
### Usage
|
|
115
115
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_CS: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_DE: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_EN: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '..';
|
|
1
|
+
import type { MRT_Localization } from '..';
|
|
2
2
|
export declare const MRT_Localization_ES: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_FA: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_FR: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_IT: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_JA: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_PL: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_PT_BR: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_PT: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_RU: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_TR: MRT_Localization;
|
|
@@ -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,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_CS: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_DE: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_EN: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '..';
|
|
1
|
+
import type { MRT_Localization } from '..';
|
|
2
2
|
export declare const MRT_Localization_ES: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_FA: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_FR: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_IT: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_JA: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_PL: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_PT_BR: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_PT: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from '../MaterialReactTable';
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_RU: MRT_Localization;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MRT_Localization } from
|
|
1
|
+
import type { MRT_Localization } from '../MaterialReactTable';
|
|
2
2
|
export declare const MRT_Localization_TR: MRT_Localization;
|
|
@@ -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;
|