material-react-table 0.17.1 → 0.19.0-alpha.1
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/MaterialReactTable.d.ts +170 -230
- package/dist/body/MRT_TableBody.d.ts +1 -1
- package/dist/body/MRT_TableBodyCell.d.ts +1 -1
- package/dist/body/MRT_TableBodyRow.d.ts +1 -1
- package/dist/body/MRT_TableDetailPanel.d.ts +1 -1
- package/dist/buttons/MRT_ColumnPinningButtons.d.ts +1 -1
- package/dist/buttons/MRT_CopyButton.d.ts +1 -1
- package/dist/buttons/MRT_EditActionButtons.d.ts +1 -1
- package/dist/buttons/MRT_ExpandAllButton.d.ts +1 -1
- package/dist/buttons/MRT_ExpandButton.d.ts +1 -1
- package/dist/buttons/MRT_FullScreenToggleButton.d.ts +1 -1
- package/dist/buttons/MRT_GrabHandleButton.d.ts +1 -1
- package/dist/buttons/MRT_ShowHideColumnsButton.d.ts +1 -1
- package/dist/buttons/MRT_ToggleDensePaddingButton.d.ts +1 -1
- package/dist/buttons/MRT_ToggleFiltersButton.d.ts +1 -1
- package/dist/buttons/MRT_ToggleGlobalFilterButton.d.ts +1 -1
- package/dist/buttons/MRT_ToggleRowActionMenuButton.d.ts +1 -1
- package/dist/filtersFns.d.ts +31 -23
- package/dist/footer/MRT_TableFooter.d.ts +1 -1
- package/dist/footer/MRT_TableFooterCell.d.ts +1 -1
- package/dist/footer/MRT_TableFooterRow.d.ts +1 -1
- package/dist/head/MRT_DraggableTableHeadCell.d.ts +1 -1
- package/dist/head/MRT_TableHead.d.ts +1 -1
- package/dist/head/MRT_TableHeadCell.d.ts +1 -1
- package/dist/head/MRT_TableHeadCellColumnActionsButton.d.ts +1 -1
- package/dist/head/MRT_TableHeadCellFilterContainer.d.ts +1 -1
- package/dist/head/MRT_TableHeadCellFilterLabel.d.ts +1 -1
- package/dist/head/MRT_TableHeadCellResizeHandle.d.ts +1 -1
- package/dist/head/MRT_TableHeadCellSortLabel.d.ts +1 -1
- package/dist/head/MRT_TableHeadRow.d.ts +1 -1
- package/dist/inputs/MRT_EditCellTextField.d.ts +1 -1
- package/dist/inputs/MRT_FilterRangeFields.d.ts +1 -1
- package/dist/inputs/MRT_FilterTextField.d.ts +1 -1
- package/dist/inputs/MRT_GlobalFilterTextField.d.ts +1 -1
- package/dist/inputs/MRT_SelectCheckbox.d.ts +1 -1
- package/dist/material-react-table.cjs.development.js +791 -915
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +793 -917
- package/dist/material-react-table.esm.js.map +1 -1
- package/dist/menus/MRT_ColumnActionMenu.d.ts +1 -1
- package/dist/menus/MRT_FilterOptionMenu.d.ts +1 -1
- package/dist/menus/MRT_RowActionMenu.d.ts +1 -1
- package/dist/menus/MRT_ShowHideColumnsMenu.d.ts +1 -1
- package/dist/menus/MRT_ShowHideColumnsMenuItems.d.ts +1 -1
- package/dist/sortingFns.d.ts +10 -3
- package/dist/table/MRT_Table.d.ts +1 -1
- package/dist/table/MRT_TableContainer.d.ts +1 -1
- package/dist/table/MRT_TablePaper.d.ts +1 -1
- package/dist/toolbar/MRT_LinearProgressBar.d.ts +1 -1
- package/dist/toolbar/MRT_TablePagination.d.ts +1 -1
- package/dist/toolbar/MRT_ToolbarAlertBanner.d.ts +1 -1
- package/dist/toolbar/MRT_ToolbarBottom.d.ts +1 -1
- package/dist/toolbar/MRT_ToolbarInternalButtons.d.ts +1 -1
- package/dist/toolbar/MRT_ToolbarTop.d.ts +1 -1
- package/dist/utils.d.ts +10 -16
- package/package.json +4 -4
- package/src/MaterialReactTable.tsx +168 -334
- package/src/body/MRT_TableBody.tsx +5 -6
- package/src/body/MRT_TableBodyCell.tsx +19 -36
- package/src/body/MRT_TableBodyRow.tsx +9 -12
- package/src/body/MRT_TableDetailPanel.tsx +8 -12
- package/src/buttons/MRT_ColumnPinningButtons.tsx +3 -3
- package/src/buttons/MRT_CopyButton.tsx +5 -7
- package/src/buttons/MRT_EditActionButtons.tsx +4 -5
- package/src/buttons/MRT_ExpandAllButton.tsx +4 -5
- package/src/buttons/MRT_ExpandButton.tsx +6 -9
- package/src/buttons/MRT_FullScreenToggleButton.tsx +5 -15
- package/src/buttons/MRT_GrabHandleButton.tsx +39 -41
- package/src/buttons/MRT_ShowHideColumnsButton.tsx +4 -4
- package/src/buttons/MRT_ToggleDensePaddingButton.tsx +5 -15
- package/src/buttons/MRT_ToggleFiltersButton.tsx +5 -12
- package/src/buttons/MRT_ToggleGlobalFilterButton.tsx +6 -16
- package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +6 -6
- package/src/filtersFns.ts +24 -23
- package/src/footer/MRT_TableFooter.tsx +5 -6
- package/src/footer/MRT_TableFooterCell.tsx +8 -11
- package/src/footer/MRT_TableFooterRow.tsx +5 -9
- package/src/head/MRT_DraggableTableHeadCell.tsx +4 -6
- package/src/head/MRT_TableHead.tsx +5 -5
- package/src/head/MRT_TableHeadCell.tsx +18 -29
- package/src/head/MRT_TableHeadCellColumnActionsButton.tsx +6 -8
- package/src/head/MRT_TableHeadCellFilterContainer.tsx +5 -7
- package/src/head/MRT_TableHeadCellFilterLabel.tsx +13 -19
- package/src/head/MRT_TableHeadCellResizeHandle.tsx +12 -11
- package/src/head/MRT_TableHeadCellSortLabel.tsx +3 -5
- package/src/head/MRT_TableHeadRow.tsx +6 -6
- package/src/inputs/MRT_EditCellTextField.tsx +13 -15
- package/src/inputs/MRT_FilterRangeFields.tsx +4 -4
- package/src/inputs/MRT_FilterTextField.tsx +27 -64
- package/src/inputs/MRT_GlobalFilterTextField.tsx +5 -10
- package/src/inputs/MRT_SelectCheckbox.tsx +9 -36
- package/src/menus/MRT_ColumnActionMenu.tsx +5 -9
- package/src/menus/MRT_FilterOptionMenu.tsx +16 -48
- package/src/menus/MRT_RowActionMenu.tsx +4 -5
- package/src/menus/MRT_ShowHideColumnsMenu.tsx +8 -9
- package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +11 -10
- package/src/sortingFns.ts +11 -3
- package/src/table/MRT_Table.tsx +7 -11
- package/src/table/MRT_TableContainer.tsx +5 -6
- package/src/table/MRT_TablePaper.tsx +7 -8
- package/src/table/MRT_TableRoot.tsx +123 -156
- package/src/toolbar/MRT_LinearProgressBar.tsx +4 -5
- package/src/toolbar/MRT_TablePagination.tsx +7 -9
- package/src/toolbar/MRT_ToolbarAlertBanner.tsx +15 -11
- package/src/toolbar/MRT_ToolbarBottom.tsx +8 -9
- package/src/toolbar/MRT_ToolbarInternalButtons.tsx +10 -10
- package/src/toolbar/MRT_ToolbarTop.tsx +11 -11
- package/src/utils.ts +56 -50
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { IconButtonProps } from '@mui/material';
|
|
3
3
|
import { MRT_TableInstance } from '..';
|
|
4
4
|
interface Props extends IconButtonProps {
|
|
5
|
-
|
|
5
|
+
table: MRT_TableInstance;
|
|
6
6
|
}
|
|
7
7
|
export declare const MRT_FullScreenToggleButton: FC<Props>;
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { IconButtonProps } from '@mui/material';
|
|
3
3
|
import { MRT_TableInstance } from '..';
|
|
4
4
|
interface Props extends IconButtonProps {
|
|
5
|
-
|
|
5
|
+
table: MRT_TableInstance;
|
|
6
6
|
}
|
|
7
7
|
export declare const MRT_ShowHideColumnsButton: FC<Props>;
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { IconButtonProps } from '@mui/material';
|
|
3
3
|
import { MRT_TableInstance } from '..';
|
|
4
4
|
interface Props extends IconButtonProps {
|
|
5
|
-
|
|
5
|
+
table: MRT_TableInstance;
|
|
6
6
|
}
|
|
7
7
|
export declare const MRT_ToggleDensePaddingButton: FC<Props>;
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { IconButtonProps } from '@mui/material';
|
|
3
3
|
import { MRT_TableInstance } from '..';
|
|
4
4
|
interface Props extends IconButtonProps {
|
|
5
|
-
|
|
5
|
+
table: MRT_TableInstance;
|
|
6
6
|
}
|
|
7
7
|
export declare const MRT_ToggleFiltersButton: FC<Props>;
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { IconButtonProps } from '@mui/material';
|
|
3
3
|
import { MRT_TableInstance } from '..';
|
|
4
4
|
interface Props extends IconButtonProps {
|
|
5
|
-
|
|
5
|
+
table: MRT_TableInstance;
|
|
6
6
|
}
|
|
7
7
|
export declare const MRT_ToggleGlobalFilterButton: FC<Props>;
|
|
8
8
|
export {};
|
package/dist/filtersFns.d.ts
CHANGED
|
@@ -1,92 +1,100 @@
|
|
|
1
1
|
import { RankingInfo } from '@tanstack/match-sorter-utils';
|
|
2
|
-
import {
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
3
|
export declare const fuzzy: {
|
|
4
|
-
(row:
|
|
4
|
+
<D extends Record<string, any> = {}>(row: Row<D>, columnId: string, filterValue: string, addMeta: (item: RankingInfo) => void): boolean;
|
|
5
5
|
autoRemove(val: any): boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const contains: {
|
|
8
|
-
(row:
|
|
8
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValue: string | number): any;
|
|
9
9
|
autoRemove(val: any): boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const startsWith: {
|
|
12
|
-
(row:
|
|
12
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValue: string | number): any;
|
|
13
13
|
autoRemove(val: any): boolean;
|
|
14
14
|
};
|
|
15
15
|
export declare const endsWith: {
|
|
16
|
-
(row:
|
|
16
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValue: string | number): any;
|
|
17
17
|
autoRemove(val: any): boolean;
|
|
18
18
|
};
|
|
19
19
|
export declare const equals: {
|
|
20
|
-
(row:
|
|
20
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValue: string | number): boolean;
|
|
21
21
|
autoRemove(val: any): boolean;
|
|
22
22
|
};
|
|
23
23
|
export declare const notEquals: {
|
|
24
|
-
(row:
|
|
24
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValue: string | number): boolean;
|
|
25
25
|
autoRemove(val: any): boolean;
|
|
26
26
|
};
|
|
27
27
|
export declare const greaterThan: {
|
|
28
|
-
(row:
|
|
28
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValue: string | number): boolean;
|
|
29
29
|
autoRemove(val: any): boolean;
|
|
30
30
|
};
|
|
31
31
|
export declare const lessThan: {
|
|
32
|
-
(row:
|
|
32
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValue: string | number): boolean;
|
|
33
33
|
autoRemove(val: any): boolean;
|
|
34
34
|
};
|
|
35
35
|
export declare const between: {
|
|
36
|
-
(row:
|
|
36
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValues: [string | number, string | number]): boolean;
|
|
37
37
|
autoRemove(val: any): boolean;
|
|
38
38
|
};
|
|
39
39
|
export declare const empty: {
|
|
40
|
-
(row:
|
|
40
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, _filterValue: string | number): boolean;
|
|
41
41
|
autoRemove(val: any): boolean;
|
|
42
42
|
};
|
|
43
43
|
export declare const notEmpty: {
|
|
44
|
-
(row:
|
|
44
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, _filterValue: string | number): boolean;
|
|
45
45
|
autoRemove(val: any): boolean;
|
|
46
46
|
};
|
|
47
47
|
export declare const MRT_FilterFns: {
|
|
48
48
|
between: {
|
|
49
|
-
(row:
|
|
49
|
+
<D extends Record<string, any> = {}>(row: Row<D>, id: string, filterValues: [string | number, string | number]): boolean;
|
|
50
50
|
autoRemove(val: any): boolean;
|
|
51
51
|
};
|
|
52
52
|
contains: {
|
|
53
|
-
(row:
|
|
53
|
+
<D_1 extends Record<string, any> = {}>(row: Row<D_1>, id: string, filterValue: string | number): any;
|
|
54
54
|
autoRemove(val: any): boolean;
|
|
55
55
|
};
|
|
56
56
|
empty: {
|
|
57
|
-
(row:
|
|
57
|
+
<D_2 extends Record<string, any> = {}>(row: Row<D_2>, id: string, _filterValue: string | number): boolean;
|
|
58
58
|
autoRemove(val: any): boolean;
|
|
59
59
|
};
|
|
60
60
|
endsWith: {
|
|
61
|
-
(row:
|
|
61
|
+
<D_3 extends Record<string, any> = {}>(row: Row<D_3>, id: string, filterValue: string | number): any;
|
|
62
62
|
autoRemove(val: any): boolean;
|
|
63
63
|
};
|
|
64
64
|
equals: {
|
|
65
|
-
(row:
|
|
65
|
+
<D_4 extends Record<string, any> = {}>(row: Row<D_4>, id: string, filterValue: string | number): boolean;
|
|
66
66
|
autoRemove(val: any): boolean;
|
|
67
67
|
};
|
|
68
68
|
fuzzy: {
|
|
69
|
-
(row:
|
|
69
|
+
<D_5 extends Record<string, any> = {}>(row: Row<D_5>, columnId: string, filterValue: string, addMeta: (item: RankingInfo) => void): boolean;
|
|
70
70
|
autoRemove(val: any): boolean;
|
|
71
71
|
};
|
|
72
72
|
greaterThan: {
|
|
73
|
-
(row:
|
|
73
|
+
<D_6 extends Record<string, any> = {}>(row: Row<D_6>, id: string, filterValue: string | number): boolean;
|
|
74
74
|
autoRemove(val: any): boolean;
|
|
75
75
|
};
|
|
76
76
|
lessThan: {
|
|
77
|
-
(row:
|
|
77
|
+
<D_7 extends Record<string, any> = {}>(row: Row<D_7>, id: string, filterValue: string | number): boolean;
|
|
78
78
|
autoRemove(val: any): boolean;
|
|
79
79
|
};
|
|
80
80
|
notEmpty: {
|
|
81
|
-
(row:
|
|
81
|
+
<D_8 extends Record<string, any> = {}>(row: Row<D_8>, id: string, _filterValue: string | number): boolean;
|
|
82
82
|
autoRemove(val: any): boolean;
|
|
83
83
|
};
|
|
84
84
|
notEquals: {
|
|
85
|
-
(row:
|
|
85
|
+
<D_9 extends Record<string, any> = {}>(row: Row<D_9>, id: string, filterValue: string | number): boolean;
|
|
86
86
|
autoRemove(val: any): boolean;
|
|
87
87
|
};
|
|
88
88
|
startsWith: {
|
|
89
|
-
(row:
|
|
89
|
+
<D_10 extends Record<string, any> = {}>(row: Row<D_10>, id: string, filterValue: string | number): any;
|
|
90
90
|
autoRemove(val: any): boolean;
|
|
91
91
|
};
|
|
92
|
+
includesString: import("@tanstack/table-core").FilterFn<any>;
|
|
93
|
+
includesStringSensitive: import("@tanstack/table-core").FilterFn<any>;
|
|
94
|
+
equalsString: import("@tanstack/table-core").FilterFn<any>;
|
|
95
|
+
arrIncludes: import("@tanstack/table-core").FilterFn<any>;
|
|
96
|
+
arrIncludesAll: import("@tanstack/table-core").FilterFn<any>;
|
|
97
|
+
arrIncludesSome: import("@tanstack/table-core").FilterFn<any>;
|
|
98
|
+
weakEquals: import("@tanstack/table-core").FilterFn<any>;
|
|
99
|
+
inNumberRange: import("@tanstack/table-core").FilterFn<any>;
|
|
92
100
|
};
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import type { MRT_HeaderGroup, MRT_TableInstance } from '..';
|
|
3
3
|
interface Props {
|
|
4
4
|
footerGroup: MRT_HeaderGroup;
|
|
5
|
-
|
|
5
|
+
table: MRT_TableInstance;
|
|
6
6
|
}
|
|
7
7
|
export declare const MRT_TableFooterRow: FC<Props>;
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import type { MRT_Header, MRT_TableInstance } from '..';
|
|
3
3
|
interface Props {
|
|
4
4
|
header: MRT_Header;
|
|
5
|
-
|
|
5
|
+
table: MRT_TableInstance;
|
|
6
6
|
}
|
|
7
7
|
export declare const MRT_TableHeadCellColumnActionsButton: FC<Props>;
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import type { MRT_HeaderGroup, MRT_TableInstance } from '..';
|
|
3
3
|
interface Props {
|
|
4
4
|
headerGroup: MRT_HeaderGroup;
|
|
5
|
-
|
|
5
|
+
table: MRT_TableInstance;
|
|
6
6
|
}
|
|
7
7
|
export declare const MRT_TableHeadRow: FC<Props>;
|
|
8
8
|
export {};
|