material-react-table 1.2.3 → 1.2.5
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/MaterialReactTable.d.ts +22 -3
- package/dist/cjs/body/MRT_EditRowModal.d.ts +1 -0
- package/dist/cjs/buttons/MRT_ColumnPinningButtons.d.ts +1 -0
- package/dist/cjs/buttons/MRT_EditActionButtons.d.ts +1 -0
- package/dist/cjs/buttons/MRT_FullScreenToggleButton.d.ts +2 -1
- package/dist/cjs/buttons/MRT_GrabHandleButton.d.ts +1 -1
- package/dist/cjs/buttons/MRT_ShowHideColumnsButton.d.ts +2 -1
- package/dist/cjs/buttons/MRT_ToggleDensePaddingButton.d.ts +2 -1
- package/dist/cjs/buttons/MRT_ToggleFiltersButton.d.ts +2 -1
- package/dist/cjs/buttons/MRT_ToggleGlobalFilterButton.d.ts +2 -1
- package/dist/cjs/column.utils.d.ts +3 -2
- package/dist/cjs/head/MRT_TableHeadCellSortLabel.d.ts +1 -1
- package/dist/cjs/index.js +288 -209
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/inputs/MRT_EditCellTextField.d.ts +1 -0
- package/dist/cjs/inputs/MRT_GlobalFilterTextField.d.ts +1 -0
- package/dist/cjs/menus/MRT_FilterOptionMenu.d.ts +1 -0
- package/dist/cjs/menus/MRT_ShowHideColumnsMenu.d.ts +1 -0
- package/dist/cjs/table/MRT_TableRoot.d.ts +3 -2
- package/dist/cjs/toolbar/MRT_TablePagination.d.ts +1 -0
- package/dist/cjs/toolbar/MRT_ToolbarInternalButtons.d.ts +1 -0
- package/dist/cjs/toolbar/MRT_TopToolbar.d.ts +1 -1
- package/dist/esm/MaterialReactTable.d.ts +22 -3
- package/dist/esm/body/MRT_EditRowModal.d.ts +1 -0
- package/dist/esm/buttons/MRT_ColumnPinningButtons.d.ts +1 -0
- package/dist/esm/buttons/MRT_EditActionButtons.d.ts +1 -0
- package/dist/esm/buttons/MRT_FullScreenToggleButton.d.ts +2 -1
- package/dist/esm/buttons/MRT_GrabHandleButton.d.ts +1 -1
- package/dist/esm/buttons/MRT_ShowHideColumnsButton.d.ts +2 -1
- package/dist/esm/buttons/MRT_ToggleDensePaddingButton.d.ts +2 -1
- package/dist/esm/buttons/MRT_ToggleFiltersButton.d.ts +2 -1
- package/dist/esm/buttons/MRT_ToggleGlobalFilterButton.d.ts +2 -1
- package/dist/esm/column.utils.d.ts +3 -2
- package/dist/esm/head/MRT_TableHeadCellSortLabel.d.ts +1 -1
- package/dist/esm/inputs/MRT_EditCellTextField.d.ts +1 -0
- package/dist/esm/inputs/MRT_GlobalFilterTextField.d.ts +1 -0
- package/dist/esm/material-react-table.esm.js +49 -11
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/dist/esm/menus/MRT_FilterOptionMenu.d.ts +1 -0
- package/dist/esm/menus/MRT_ShowHideColumnsMenu.d.ts +1 -0
- package/dist/esm/table/MRT_TableRoot.d.ts +3 -2
- package/dist/esm/toolbar/MRT_TablePagination.d.ts +1 -0
- package/dist/esm/toolbar/MRT_ToolbarInternalButtons.d.ts +1 -0
- package/dist/esm/toolbar/MRT_TopToolbar.d.ts +1 -1
- package/dist/index.d.ts +23 -3
- package/locales/cs.esm.js.map +1 -1
- package/locales/cs.js.map +1 -1
- package/package.json +10 -8
- package/src/MaterialReactTable.tsx +22 -22
- package/src/_locales/cs.ts +4 -2
- package/src/body/MRT_EditRowModal.tsx +6 -8
- package/src/body/MRT_TableBody.tsx +4 -3
- package/src/body/MRT_TableBodyCell.tsx +3 -1
- package/src/body/MRT_TableBodyRow.tsx +2 -1
- package/src/body/MRT_TableDetailPanel.tsx +3 -1
- package/src/buttons/MRT_ColumnPinningButtons.tsx +3 -1
- package/src/buttons/MRT_CopyButton.tsx +2 -1
- package/src/buttons/MRT_EditActionButtons.tsx +4 -1
- package/src/buttons/MRT_ExpandAllButton.tsx +2 -1
- package/src/buttons/MRT_ExpandButton.tsx +2 -1
- package/src/buttons/MRT_FullScreenToggleButton.tsx +3 -1
- package/src/buttons/MRT_GrabHandleButton.tsx +3 -1
- package/src/buttons/MRT_ShowHideColumnsButton.tsx +3 -1
- package/src/buttons/MRT_ToggleDensePaddingButton.tsx +3 -1
- package/src/buttons/MRT_ToggleFiltersButton.tsx +3 -1
- package/src/buttons/MRT_ToggleGlobalFilterButton.tsx +3 -1
- package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +2 -1
- package/src/column.utils.ts +5 -3
- package/src/footer/MRT_TableFooter.tsx +2 -1
- package/src/footer/MRT_TableFooterCell.tsx +1 -1
- package/src/footer/MRT_TableFooterRow.tsx +1 -1
- package/src/head/MRT_TableHead.tsx +1 -1
- package/src/head/MRT_TableHeadCell.tsx +4 -1
- package/src/head/MRT_TableHeadCellColumnActionsButton.tsx +2 -1
- package/src/head/MRT_TableHeadCellFilterContainer.tsx +1 -1
- package/src/head/MRT_TableHeadCellFilterLabel.tsx +4 -1
- package/src/head/MRT_TableHeadCellResizeHandle.tsx +2 -1
- package/src/head/MRT_TableHeadCellSortLabel.tsx +4 -2
- package/src/head/MRT_TableHeadRow.tsx +2 -1
- package/src/inputs/MRT_EditCellTextField.tsx +2 -1
- package/src/inputs/MRT_FilterCheckbox.tsx +4 -6
- package/src/inputs/MRT_FilterRangeFields.tsx +1 -1
- package/src/inputs/MRT_FilterTextField.tsx +11 -13
- package/src/inputs/MRT_GlobalFilterTextField.tsx +6 -8
- package/src/inputs/MRT_SelectCheckbox.tsx +4 -1
- package/src/menus/MRT_ColumnActionMenu.tsx +6 -2
- package/src/menus/MRT_FilterOptionMenu.tsx +3 -1
- package/src/menus/MRT_RowActionMenu.tsx +5 -2
- package/src/menus/MRT_ShowHideColumnsMenu.tsx +5 -2
- package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +6 -8
- package/src/sortingFns.ts +2 -2
- package/src/table/MRT_Table.tsx +1 -1
- package/src/table/MRT_TableContainer.tsx +1 -1
- package/src/table/MRT_TablePaper.tsx +1 -1
- package/src/table/MRT_TableRoot.tsx +6 -8
- package/src/toolbar/MRT_BottomToolbar.tsx +4 -1
- package/src/toolbar/MRT_LinearProgressBar.tsx +2 -1
- package/src/toolbar/MRT_TablePagination.tsx +1 -1
- package/src/toolbar/MRT_ToolbarAlertBanner.tsx +5 -1
- package/src/toolbar/MRT_ToolbarDropZone.tsx +4 -1
- package/src/toolbar/MRT_ToolbarInternalButtons.tsx +1 -1
- package/src/toolbar/MRT_TopToolbar.tsx +5 -1
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
|
2
|
-
import type { AlertProps
|
|
2
|
+
import type { AlertProps } from '@mui/material/Alert';
|
|
3
|
+
import type { ButtonProps } from '@mui/material/Button';
|
|
4
|
+
import type { CheckboxProps } from '@mui/material/Checkbox';
|
|
5
|
+
import type { ChipProps } from '@mui/material/Chip';
|
|
6
|
+
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
7
|
+
import type { LinearProgressProps } from '@mui/material/LinearProgress';
|
|
8
|
+
import type { PaperProps } from '@mui/material/Paper';
|
|
9
|
+
import type { RadioProps } from '@mui/material/Radio';
|
|
10
|
+
import type { SkeletonProps } from '@mui/material/Skeleton';
|
|
11
|
+
import type { TableBodyProps } from '@mui/material/TableBody';
|
|
12
|
+
import type { TableCellProps } from '@mui/material/TableCell';
|
|
13
|
+
import type { TableContainerProps } from '@mui/material/TableContainer';
|
|
14
|
+
import type { TableFooterProps } from '@mui/material/TableFooter';
|
|
15
|
+
import type { TableHeadProps } from '@mui/material/TableHead';
|
|
16
|
+
import type { TablePaginationProps } from '@mui/material/TablePagination';
|
|
17
|
+
import type { TableProps } from '@mui/material/Table';
|
|
18
|
+
import type { TableRowProps } from '@mui/material/TableRow';
|
|
19
|
+
import type { TextFieldProps } from '@mui/material/TextField';
|
|
20
|
+
import type { ToolbarProps } from '@mui/material/Toolbar';
|
|
3
21
|
import type { Cell, Column, ColumnDef, DeepKeys, FilterFn, Header, HeaderGroup, OnChangeFn, Row, SortingFn, Table, TableOptions, TableState } from '@tanstack/react-table';
|
|
4
22
|
import type { Options as VirtualizerOptions, VirtualItem } from 'react-virtual';
|
|
5
23
|
import { MRT_FilterFns } from './filterFns';
|
|
@@ -380,7 +398,7 @@ export declare type MRT_DisplayColumnIds = 'mrt-row-actions' | 'mrt-row-drag' |
|
|
|
380
398
|
* See the full props list on the official docs site:
|
|
381
399
|
* @link https://www.material-react-table.com/docs/api/props
|
|
382
400
|
*/
|
|
383
|
-
export declare type MaterialReactTableProps<TData extends Record<string, any> = {}> = Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'initialState' | 'onStateChange' | 'state'> & {
|
|
401
|
+
export declare type MaterialReactTableProps<TData extends Record<string, any> = {}> = Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'> & {
|
|
384
402
|
columnFilterModeOptions?: (MRT_FilterOption | string)[] | null;
|
|
385
403
|
/**
|
|
386
404
|
* The columns to display in the table. `accessorKey`s or `accessorFn`s must match keys in the `data` prop.
|
|
@@ -438,8 +456,9 @@ export declare type MaterialReactTableProps<TData extends Record<string, any> =
|
|
|
438
456
|
enableTableHead?: boolean;
|
|
439
457
|
enableToolbarInternalActions?: boolean;
|
|
440
458
|
enableTopToolbar?: boolean;
|
|
441
|
-
globalFilterModeOptions?: (MRT_FilterOption | string)[] | null;
|
|
442
459
|
expandRowsFn?: (dataRow: TData) => TData[];
|
|
460
|
+
globalFilterFn?: MRT_FilterOption;
|
|
461
|
+
globalFilterModeOptions?: MRT_FilterOption[] | null;
|
|
443
462
|
icons?: Partial<MRT_Icons>;
|
|
444
463
|
initialState?: Partial<MRT_TableState<TData>>;
|
|
445
464
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
2
3
|
import { MRT_TableInstance } from '..';
|
|
3
4
|
interface Props<TData extends Record<string, any> = {}> extends IconButtonProps {
|
|
4
5
|
table: MRT_TableInstance<TData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IconButtonProps } from '@mui/material';
|
|
2
1
|
import { DragEventHandler } from 'react';
|
|
2
|
+
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
3
3
|
import { MRT_TableInstance } from '..';
|
|
4
4
|
interface Props<TData extends Record<string, any> = {}> {
|
|
5
5
|
iconButtonProps?: IconButtonProps;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
2
3
|
import { MRT_TableInstance } from '..';
|
|
3
4
|
interface Props<TData extends Record<string, any> = {}> extends IconButtonProps {
|
|
4
5
|
table: MRT_TableInstance<TData>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
2
3
|
import { MRT_TableInstance } from '..';
|
|
3
4
|
interface Props<TData extends Record<string, any> = {}> extends IconButtonProps {
|
|
4
5
|
table: MRT_TableInstance<TData>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
2
3
|
import { MRT_TableInstance } from '..';
|
|
3
4
|
interface Props<TData extends Record<string, any> = {}> extends IconButtonProps {
|
|
4
5
|
table: MRT_TableInstance<TData>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
2
3
|
import { MRT_TableInstance } from '..';
|
|
3
4
|
interface Props<TData extends Record<string, any> = {}> extends IconButtonProps {
|
|
4
5
|
table: MRT_TableInstance<TData>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ColumnOrderState, GroupingState } from '@tanstack/react-table';
|
|
2
|
-
import { TableCellProps, Theme } from '@mui/material';
|
|
1
|
+
import type { ColumnOrderState, GroupingState } from '@tanstack/react-table';
|
|
3
2
|
import { MRT_FilterFns } from './filterFns';
|
|
4
3
|
import { MRT_SortingFns } from './sortingFns';
|
|
4
|
+
import type { TableCellProps } from '@mui/material/TableCell';
|
|
5
|
+
import type { Theme } from '@mui/material/styles';
|
|
5
6
|
import type { MaterialReactTableProps, MRT_Column, MRT_ColumnDef, MRT_DefinedColumnDef, MRT_DisplayColumnIds, MRT_FilterOption, MRT_Header, MRT_TableInstance } from '.';
|
|
6
7
|
export declare const getColumnId: <TData extends Record<string, any> = {}>(columnDef: MRT_ColumnDef<TData>) => string;
|
|
7
8
|
export declare const getAllLeafColumnDefs: <TData extends Record<string, any> = {}>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|