material-react-table 1.12.0 → 1.13.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/cjs/index.js +264 -161
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/MaterialReactTable.d.ts +1 -1
- package/dist/cjs/types/inputs/MRT_FilterRangeSlider.d.ts +7 -0
- package/dist/cjs/types/types.d.ts +12 -2
- package/dist/esm/material-react-table.esm.js +268 -167
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/dist/esm/types/MaterialReactTable.d.ts +1 -1
- package/dist/esm/types/inputs/MRT_FilterRangeSlider.d.ts +7 -0
- package/dist/esm/types/types.d.ts +12 -2
- package/dist/index.d.ts +14 -10
- package/locales/cs.esm.js +89 -91
- package/locales/cs.js +89 -91
- package/locales/da.esm.js +89 -90
- package/locales/da.js +89 -90
- package/locales/de.esm.js +89 -90
- package/locales/de.js +89 -90
- package/locales/en.esm.js +89 -90
- package/locales/en.js +89 -90
- package/locales/es.esm.js +89 -90
- package/locales/es.js +89 -90
- package/locales/fa.esm.js +89 -90
- package/locales/fa.js +89 -90
- package/locales/fi.esm.js +89 -91
- package/locales/fi.js +89 -91
- package/locales/fr.esm.js +89 -90
- package/locales/fr.js +89 -90
- package/locales/hu.esm.js +89 -90
- package/locales/hu.js +89 -90
- package/locales/id.esm.js +89 -91
- package/locales/id.js +89 -91
- package/locales/it.esm.js +89 -90
- package/locales/it.js +89 -90
- package/locales/ja.esm.js +89 -90
- package/locales/ja.js +89 -90
- package/locales/nl.esm.js +89 -90
- package/locales/nl.js +89 -90
- package/locales/pl.esm.js +89 -90
- package/locales/pl.js +89 -90
- package/locales/pt-BR.esm.js +89 -90
- package/locales/pt-BR.js +89 -90
- package/locales/pt.esm.js +89 -90
- package/locales/pt.js +89 -90
- package/locales/ro.esm.js +89 -90
- package/locales/ro.js +89 -90
- package/locales/ru.esm.js +89 -90
- package/locales/ru.js +89 -90
- package/locales/sk.esm.js +89 -91
- package/locales/sk.js +89 -91
- package/locales/sr-Cyrl-RS.esm.js +89 -90
- package/locales/sr-Cyrl-RS.js +89 -90
- package/locales/sr-Latn-RS.esm.js +89 -90
- package/locales/sr-Latn-RS.js +89 -90
- package/locales/sv.esm.js +89 -90
- package/locales/sv.js +89 -90
- package/locales/tr.esm.js +89 -90
- package/locales/tr.js +89 -90
- package/locales/uk.esm.js +89 -90
- package/locales/uk.js +89 -90
- package/locales/vi.esm.js +89 -90
- package/locales/vi.js +89 -90
- package/locales/zh-Hans.esm.js +89 -89
- package/locales/zh-Hans.js +89 -89
- package/locales/zh-Hant.esm.js +89 -89
- package/locales/zh-Hant.js +89 -89
- package/package.json +23 -23
- package/src/MaterialReactTable.tsx +2 -0
- package/src/body/MRT_TableBody.tsx +2 -3
- package/src/body/MRT_TableBodyRow.tsx +2 -3
- package/src/column.utils.ts +5 -1
- package/src/head/MRT_TableHeadCellFilterContainer.tsx +4 -1
- package/src/inputs/MRT_FilterRangeFields.tsx +1 -1
- package/src/inputs/MRT_FilterRangeSlider.tsx +134 -0
- package/src/inputs/MRT_FilterTextField.tsx +24 -3
- package/src/menus/MRT_FilterOptionMenu.tsx +8 -1
- package/src/table/MRT_TableRoot.tsx +28 -6
- package/src/types.ts +22 -2
package/src/types.ts
CHANGED
@@ -13,13 +13,14 @@ import { type LinearProgressProps } from '@mui/material/LinearProgress';
|
|
13
13
|
import { type PaperProps } from '@mui/material/Paper';
|
14
14
|
import { type RadioProps } from '@mui/material/Radio';
|
15
15
|
import { type SkeletonProps } from '@mui/material/Skeleton';
|
16
|
-
import { type
|
16
|
+
import { type SliderProps } from '@mui/material';
|
17
17
|
import { type TableBodyProps } from '@mui/material/TableBody';
|
18
18
|
import { type TableCellProps } from '@mui/material/TableCell';
|
19
19
|
import { type TableContainerProps } from '@mui/material/TableContainer';
|
20
20
|
import { type TableFooterProps } from '@mui/material/TableFooter';
|
21
21
|
import { type TableHeadProps } from '@mui/material/TableHead';
|
22
22
|
import { type TablePaginationProps } from '@mui/material/TablePagination';
|
23
|
+
import { type TableProps } from '@mui/material/Table';
|
23
24
|
import { type TableRowProps } from '@mui/material/TableRow';
|
24
25
|
import { type TextFieldProps } from '@mui/material/TextField';
|
25
26
|
import { type ToolbarProps } from '@mui/material/Toolbar';
|
@@ -389,7 +390,13 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> =
|
|
389
390
|
enableFilterMatchHighlighting?: boolean;
|
390
391
|
filterFn?: MRT_FilterFn<TData>;
|
391
392
|
filterSelectOptions?: (string | { text: string; value: any })[];
|
392
|
-
filterVariant?:
|
393
|
+
filterVariant?:
|
394
|
+
| 'checkbox'
|
395
|
+
| 'multi-select'
|
396
|
+
| 'range'
|
397
|
+
| 'range-slider'
|
398
|
+
| 'select'
|
399
|
+
| 'text';
|
393
400
|
/**
|
394
401
|
* footer must be a string. If you want custom JSX to render the footer, you can also specify a `Footer` option. (Capital F)
|
395
402
|
*/
|
@@ -463,6 +470,12 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> =
|
|
463
470
|
column: MRT_Column<TData>;
|
464
471
|
rangeFilterIndex?: number;
|
465
472
|
}) => TextFieldProps);
|
473
|
+
muiTableHeadCellFilterSliderProps?:
|
474
|
+
| SliderProps
|
475
|
+
| ((props: {
|
476
|
+
table: MRT_TableInstance<TData>;
|
477
|
+
column: MRT_Column<TData>;
|
478
|
+
}) => TextFieldProps);
|
466
479
|
muiTableHeadCellProps?:
|
467
480
|
| TableCellProps
|
468
481
|
| ((props: {
|
@@ -646,6 +659,7 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
|
|
646
659
|
enableDensityToggle?: boolean;
|
647
660
|
enableEditing?: boolean | ((row: MRT_Row<TData>) => boolean);
|
648
661
|
enableExpandAll?: boolean;
|
662
|
+
enableFacetedValues?: boolean;
|
649
663
|
enableFilterMatchHighlighting?: boolean;
|
650
664
|
enableFullScreenToggle?: boolean;
|
651
665
|
enableGlobalFilterModes?: boolean;
|
@@ -820,6 +834,12 @@ export type MaterialReactTableProps<TData extends Record<string, any> = {}> =
|
|
820
834
|
column: MRT_Column<TData>;
|
821
835
|
rangeFilterIndex?: number;
|
822
836
|
}) => TextFieldProps);
|
837
|
+
muiTableHeadCellFilterSliderProps?:
|
838
|
+
| SliderProps
|
839
|
+
| ((props: {
|
840
|
+
table: MRT_TableInstance<TData>;
|
841
|
+
column: MRT_Column<TData>;
|
842
|
+
}) => TextFieldProps);
|
823
843
|
muiTableHeadCellProps?:
|
824
844
|
| TableCellProps
|
825
845
|
| ((props: {
|