material-react-table 2.0.0-beta.10 → 2.0.0-beta.11
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/index.esm.js +0 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +241 -156
- package/dist/index.js.map +1 -1
- package/dist/types/MaterialReactTable.d.ts +7 -0
- package/dist/types/aggregationFns.d.ts +11 -0
- package/dist/types/body/MRT_TableBody.d.ts +13 -0
- package/dist/types/body/MRT_TableBodyCell.d.ts +15 -0
- package/dist/types/body/MRT_TableBodyCellValue.d.ts +8 -0
- package/dist/types/body/MRT_TableBodyRow.d.ts +18 -0
- package/dist/types/body/MRT_TableBodyRowGrabHandle.d.ts +10 -0
- package/dist/types/body/MRT_TableBodyRowPinButton.d.ts +8 -0
- package/dist/types/body/MRT_TableDetailPanel.d.ts +13 -0
- package/dist/types/body/index.d.ts +7 -0
- package/dist/types/buttons/MRT_ColumnPinningButtons.d.ts +8 -0
- package/dist/types/buttons/MRT_CopyButton.d.ts +8 -0
- package/dist/types/buttons/MRT_EditActionButtons.d.ts +9 -0
- package/dist/types/buttons/MRT_ExpandAllButton.d.ts +7 -0
- package/dist/types/buttons/MRT_ExpandButton.d.ts +8 -0
- package/dist/types/buttons/MRT_GrabHandleButton.d.ts +12 -0
- package/dist/types/buttons/MRT_RowPinButton.d.ts +10 -0
- package/dist/types/buttons/MRT_ShowHideColumnsButton.d.ts +7 -0
- package/dist/types/buttons/MRT_ToggleDensePaddingButton.d.ts +7 -0
- package/dist/types/buttons/MRT_ToggleFiltersButton.d.ts +7 -0
- package/dist/types/buttons/MRT_ToggleFullScreenButton.d.ts +7 -0
- package/dist/types/buttons/MRT_ToggleGlobalFilterButton.d.ts +7 -0
- package/dist/types/buttons/MRT_ToggleRowActionMenuButton.d.ts +9 -0
- package/dist/types/buttons/index.d.ts +13 -0
- package/dist/types/column.utils.d.ts +119 -0
- package/dist/types/filterFns.d.ts +69 -0
- package/dist/types/footer/MRT_TableFooter.d.ts +11 -0
- package/dist/types/footer/MRT_TableFooterCell.d.ts +8 -0
- package/dist/types/footer/MRT_TableFooterRow.d.ts +12 -0
- package/dist/types/footer/index.d.ts +3 -0
- package/dist/types/head/MRT_TableHead.d.ts +11 -0
- package/dist/types/head/MRT_TableHeadCell.d.ts +8 -0
- package/dist/types/head/MRT_TableHeadCellColumnActionsButton.d.ts +8 -0
- package/dist/types/head/MRT_TableHeadCellFilterContainer.d.ts +8 -0
- package/dist/types/head/MRT_TableHeadCellFilterLabel.d.ts +8 -0
- package/dist/types/head/MRT_TableHeadCellGrabHandle.d.ts +10 -0
- package/dist/types/head/MRT_TableHeadCellResizeHandle.d.ts +8 -0
- package/dist/types/head/MRT_TableHeadCellSortLabel.d.ts +8 -0
- package/dist/types/head/MRT_TableHeadRow.d.ts +12 -0
- package/dist/types/head/index.d.ts +9 -0
- package/dist/types/hooks/useMRT_DisplayColumns.d.ts +9 -0
- package/dist/types/hooks/useMRT_Effects.d.ts +2 -0
- package/dist/types/hooks/useMRT_TableInstance.d.ts +2 -0
- package/dist/types/hooks/useMRT_TableOptions.d.ts +22 -0
- package/dist/types/icons.d.ts +36 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/inputs/MRT_EditCellTextField.d.ts +8 -0
- package/dist/types/inputs/MRT_FilterCheckbox.d.ts +8 -0
- package/dist/types/inputs/MRT_FilterRangeFields.d.ts +8 -0
- package/dist/types/inputs/MRT_FilterRangeSlider.d.ts +8 -0
- package/dist/types/inputs/MRT_FilterTextField.d.ts +9 -0
- package/dist/types/inputs/MRT_GlobalFilterTextField.d.ts +7 -0
- package/dist/types/inputs/MRT_SelectCheckbox.d.ts +9 -0
- package/dist/types/inputs/index.d.ts +7 -0
- package/dist/types/locales/ar.d.ts +2 -0
- package/dist/types/locales/az.d.ts +2 -0
- package/dist/types/locales/bg.d.ts +2 -0
- package/dist/types/locales/cs.d.ts +2 -0
- package/dist/types/locales/da.d.ts +2 -0
- package/dist/types/locales/de.d.ts +2 -0
- package/dist/types/locales/en.d.ts +2 -0
- package/dist/types/locales/es.d.ts +2 -0
- package/dist/types/locales/et.d.ts +2 -0
- package/dist/types/locales/fa.d.ts +2 -0
- package/dist/types/locales/fi.d.ts +2 -0
- package/dist/types/locales/fr.d.ts +2 -0
- package/dist/types/locales/hu.d.ts +2 -0
- package/dist/types/locales/hy.d.ts +2 -0
- package/dist/types/locales/id.d.ts +2 -0
- package/dist/types/locales/it.d.ts +2 -0
- package/dist/types/locales/ja.d.ts +2 -0
- package/dist/types/locales/ko.d.ts +2 -0
- package/dist/types/locales/nl.d.ts +2 -0
- package/dist/types/locales/no.d.ts +2 -0
- package/dist/types/locales/np.d.ts +2 -0
- package/dist/types/locales/pl.d.ts +2 -0
- package/dist/types/locales/pt-BR.d.ts +2 -0
- package/dist/types/locales/pt.d.ts +2 -0
- package/dist/types/locales/ro.d.ts +2 -0
- package/dist/types/locales/ru.d.ts +2 -0
- package/dist/types/locales/sk.d.ts +2 -0
- package/dist/types/locales/sr-Cyrl-RS.d.ts +2 -0
- package/dist/types/locales/sr-Latn-RS.d.ts +2 -0
- package/dist/types/locales/sv.d.ts +2 -0
- package/dist/types/locales/tr.d.ts +2 -0
- package/dist/types/locales/uk.d.ts +2 -0
- package/dist/types/locales/vi.d.ts +2 -0
- package/dist/types/locales/zh-Hans.d.ts +2 -0
- package/dist/types/locales/zh-Hant.d.ts +2 -0
- package/dist/types/menus/MRT_ColumnActionMenu.d.ts +20 -0
- package/dist/types/menus/MRT_FilterOptionMenu.d.ts +13 -0
- package/dist/types/menus/MRT_RowActionMenu.d.ts +12 -0
- package/dist/types/menus/MRT_ShowHideColumnsMenu.d.ts +10 -0
- package/dist/types/menus/MRT_ShowHideColumnsMenuItems.d.ts +12 -0
- package/dist/types/menus/index.d.ts +5 -0
- package/dist/types/modals/MRT_EditRowModal.d.ts +8 -0
- package/dist/types/modals/index.d.ts +1 -0
- package/dist/types/sortingFns.d.ts +12 -0
- package/dist/types/style.utils.d.ts +32 -0
- package/dist/types/table/MRT_Table.d.ts +7 -0
- package/dist/types/table/MRT_TableContainer.d.ts +7 -0
- package/dist/types/table/MRT_TableLoadingOverlay.d.ts +7 -0
- package/dist/types/table/MRT_TablePaper.d.ts +7 -0
- package/dist/types/table/index.d.ts +5 -0
- package/dist/types/toolbar/MRT_BottomToolbar.d.ts +7 -0
- package/dist/types/toolbar/MRT_LinearProgressBar.d.ts +8 -0
- package/dist/types/toolbar/MRT_TablePagination.d.ts +11 -0
- package/dist/types/toolbar/MRT_ToolbarAlertBanner.d.ts +8 -0
- package/dist/types/toolbar/MRT_ToolbarDropZone.d.ts +7 -0
- package/dist/types/toolbar/MRT_ToolbarInternalButtons.d.ts +7 -0
- package/dist/types/toolbar/MRT_TopToolbar.d.ts +6 -0
- package/dist/types/toolbar/index.d.ts +7 -0
- package/dist/types/types.d.ts +837 -0
- package/dist/types/useMaterialReactTable.d.ts +2 -0
- package/locales/ar.js +2 -0
- package/locales/az.js +2 -0
- package/locales/bg.js +2 -0
- package/locales/cs.js +2 -0
- package/locales/da.js +2 -0
- package/locales/de.js +2 -0
- package/locales/en.js +2 -0
- package/locales/es.js +2 -0
- package/locales/et.js +2 -0
- package/locales/fa.js +2 -0
- package/locales/fi.js +2 -0
- package/locales/fr.js +2 -0
- package/locales/hu.js +2 -0
- package/locales/hy.js +2 -0
- package/locales/id.js +2 -0
- package/locales/it.js +2 -0
- package/locales/ja.js +2 -0
- package/locales/ko.js +2 -0
- package/locales/nl.js +2 -0
- package/locales/no.js +2 -0
- package/locales/np.js +2 -0
- package/locales/pl.js +2 -0
- package/locales/pt-BR.js +2 -0
- package/locales/pt.js +2 -0
- package/locales/ro.js +2 -0
- package/locales/ru.js +2 -0
- package/locales/sk.js +2 -0
- package/locales/sr-Cyrl-RS.js +2 -0
- package/locales/sr-Latn-RS.js +2 -0
- package/locales/sv.js +2 -0
- package/locales/tr.js +2 -0
- package/locales/uk.js +2 -0
- package/locales/vi.js +2 -0
- package/locales/zh-Hans.js +2 -0
- package/locales/zh-Hant.js +2 -0
- package/package.json +3 -2
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type MRT_ColumnDef, type MRT_ColumnOrderState, type MRT_DefinedTableOptions, type MRT_GroupingState, type MRT_Row, type MRT_RowData } from '../types';
|
2
|
+
interface Params<TData extends MRT_RowData> {
|
3
|
+
columnOrder: MRT_ColumnOrderState;
|
4
|
+
creatingRow: MRT_Row<TData> | null;
|
5
|
+
grouping: MRT_GroupingState;
|
6
|
+
tableOptions: MRT_DefinedTableOptions<TData>;
|
7
|
+
}
|
8
|
+
export declare const useMRT_DisplayColumns: <TData extends MRT_RowData>({ columnOrder, creatingRow, grouping, tableOptions, }: Params<TData>) => MRT_ColumnDef<TData>[];
|
9
|
+
export {};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { type MRT_DefinedTableOptions, type MRT_RowData, type MRT_TableOptions } from '../types';
|
2
|
+
export declare const MRT_DefaultColumn: {
|
3
|
+
readonly filterVariant: "text";
|
4
|
+
readonly maxSize: 1000;
|
5
|
+
readonly minSize: 40;
|
6
|
+
readonly size: 180;
|
7
|
+
};
|
8
|
+
export declare const MRT_DefaultDisplayColumn: {
|
9
|
+
readonly columnDefType: "display";
|
10
|
+
readonly enableClickToCopy: false;
|
11
|
+
readonly enableColumnActions: false;
|
12
|
+
readonly enableColumnDragging: false;
|
13
|
+
readonly enableColumnFilter: false;
|
14
|
+
readonly enableColumnOrdering: false;
|
15
|
+
readonly enableEditing: false;
|
16
|
+
readonly enableGlobalFilter: false;
|
17
|
+
readonly enableGrouping: false;
|
18
|
+
readonly enableHiding: false;
|
19
|
+
readonly enableResizing: false;
|
20
|
+
readonly enableSorting: false;
|
21
|
+
};
|
22
|
+
export declare const useMRT_TableOptions: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_DefinedTableOptions<TData>;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
export interface MRT_Icons {
|
2
|
+
ArrowDownwardIcon: any;
|
3
|
+
ArrowRightIcon: any;
|
4
|
+
CancelIcon: any;
|
5
|
+
ChevronLeftIcon: any;
|
6
|
+
ChevronRightIcon: any;
|
7
|
+
ClearAllIcon: any;
|
8
|
+
CloseIcon: any;
|
9
|
+
DensityLargeIcon: any;
|
10
|
+
DensityMediumIcon: any;
|
11
|
+
DensitySmallIcon: any;
|
12
|
+
DragHandleIcon: any;
|
13
|
+
DynamicFeedIcon: any;
|
14
|
+
EditIcon: any;
|
15
|
+
ExpandMoreIcon: any;
|
16
|
+
FilterAltIcon: any;
|
17
|
+
FilterListIcon: any;
|
18
|
+
FilterListOffIcon: any;
|
19
|
+
FirstPageIcon?: any;
|
20
|
+
FullscreenExitIcon: any;
|
21
|
+
FullscreenIcon: any;
|
22
|
+
KeyboardDoubleArrowDownIcon: any;
|
23
|
+
LastPageIcon?: any;
|
24
|
+
MoreHorizIcon: any;
|
25
|
+
MoreVertIcon: any;
|
26
|
+
PushPinIcon: any;
|
27
|
+
RestartAltIcon: any;
|
28
|
+
SaveIcon: any;
|
29
|
+
SearchIcon: any;
|
30
|
+
SearchOffIcon: any;
|
31
|
+
SortIcon: any;
|
32
|
+
SyncAltIcon?: any;
|
33
|
+
ViewColumnIcon: any;
|
34
|
+
VisibilityOffIcon: any;
|
35
|
+
}
|
36
|
+
export declare const MRT_Default_Icons: MRT_Icons;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export * from './MaterialReactTable';
|
2
|
+
export * from './aggregationFns';
|
3
|
+
export * from './body';
|
4
|
+
export * from './buttons';
|
5
|
+
export * from './column.utils';
|
6
|
+
export * from './filterFns';
|
7
|
+
export * from './footer';
|
8
|
+
export * from './head';
|
9
|
+
export * from './inputs';
|
10
|
+
export * from './menus';
|
11
|
+
export * from './modals';
|
12
|
+
export * from './sortingFns';
|
13
|
+
export * from './style.utils';
|
14
|
+
export * from './table';
|
15
|
+
export * from './toolbar';
|
16
|
+
export * from './types';
|
17
|
+
export * from './useMaterialReactTable';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type TextFieldProps } from '@mui/material/TextField';
|
2
|
+
import { type MRT_Cell, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends TextFieldProps<'standard'> {
|
4
|
+
cell: MRT_Cell<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_EditCellTextField: <TData extends MRT_RowData>({ cell, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type CheckboxProps } from '@mui/material/Checkbox';
|
2
|
+
import { type MRT_Column, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends CheckboxProps {
|
4
|
+
column: MRT_Column<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_FilterCheckbox: <TData extends MRT_RowData>({ column, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type BoxProps } from '@mui/material/Box';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends BoxProps {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_FilterRangeFields: <TData extends MRT_RowData>({ header, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type SliderProps } from '@mui/material/Slider';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends SliderProps {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_FilterRangeSlider: <TData extends MRT_RowData>({ header, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type TextFieldProps } from '@mui/material/TextField';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends TextFieldProps<'standard'> {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
rangeFilterIndex?: number;
|
6
|
+
table: MRT_TableInstance<TData>;
|
7
|
+
}
|
8
|
+
export declare const MRT_FilterTextField: <TData extends MRT_RowData>({ header, rangeFilterIndex, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type TextFieldProps } from '@mui/material/TextField';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends TextFieldProps<'standard'> {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_GlobalFilterTextField: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type CheckboxProps } from '@mui/material/Checkbox';
|
2
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends CheckboxProps {
|
4
|
+
row?: MRT_Row<TData>;
|
5
|
+
selectAll?: boolean;
|
6
|
+
table: MRT_TableInstance<TData>;
|
7
|
+
}
|
8
|
+
export declare const MRT_SelectCheckbox: <TData extends MRT_RowData>({ row, selectAll, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export * from './MRT_EditCellTextField';
|
2
|
+
export * from './MRT_FilterCheckbox';
|
3
|
+
export * from './MRT_FilterRangeFields';
|
4
|
+
export * from './MRT_FilterRangeSlider';
|
5
|
+
export * from './MRT_FilterTextField';
|
6
|
+
export * from './MRT_GlobalFilterTextField';
|
7
|
+
export * from './MRT_SelectCheckbox';
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { type MenuProps } from '@mui/material/Menu';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
export declare const commonMenuItemStyles: {
|
4
|
+
alignItems: string;
|
5
|
+
justifyContent: string;
|
6
|
+
my: number;
|
7
|
+
py: string;
|
8
|
+
};
|
9
|
+
export declare const commonListItemStyles: {
|
10
|
+
alignItems: string;
|
11
|
+
display: string;
|
12
|
+
};
|
13
|
+
interface Props<TData extends MRT_RowData> extends Partial<MenuProps> {
|
14
|
+
anchorEl: HTMLElement | null;
|
15
|
+
header: MRT_Header<TData>;
|
16
|
+
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
17
|
+
table: MRT_TableInstance<TData>;
|
18
|
+
}
|
19
|
+
export declare const MRT_ColumnActionMenu: <TData extends MRT_RowData>({ anchorEl, header, setAnchorEl, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
20
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { type MenuProps } from '@mui/material/Menu';
|
2
|
+
import { type MRT_Header, type MRT_InternalFilterOption, type MRT_Localization, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
export declare const mrtFilterOptions: (localization: MRT_Localization) => MRT_InternalFilterOption[];
|
4
|
+
interface Props<TData extends MRT_RowData> extends Partial<MenuProps> {
|
5
|
+
anchorEl: HTMLElement | null;
|
6
|
+
header?: MRT_Header<TData>;
|
7
|
+
onSelect?: () => void;
|
8
|
+
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
9
|
+
setFilterValue?: (filterValue: any) => void;
|
10
|
+
table: MRT_TableInstance<TData>;
|
11
|
+
}
|
12
|
+
export declare const MRT_FilterOptionMenu: <TData extends MRT_RowData>({ anchorEl, header, onSelect, setAnchorEl, setFilterValue, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { type MouseEvent } from 'react';
|
2
|
+
import { type MenuProps } from '@mui/material/Menu';
|
3
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends Partial<MenuProps> {
|
5
|
+
anchorEl: HTMLElement | null;
|
6
|
+
handleEdit: (event: MouseEvent) => void;
|
7
|
+
row: MRT_Row<TData>;
|
8
|
+
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
9
|
+
table: MRT_TableInstance<TData>;
|
10
|
+
}
|
11
|
+
export declare const MRT_RowActionMenu: <TData extends MRT_RowData>({ anchorEl, handleEdit, row, setAnchorEl, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { type MenuProps } from '@mui/material/Menu';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends Partial<MenuProps> {
|
4
|
+
anchorEl: HTMLElement | null;
|
5
|
+
isSubMenu?: boolean;
|
6
|
+
setAnchorEl: (anchorEl: HTMLElement | null) => void;
|
7
|
+
table: MRT_TableInstance<TData>;
|
8
|
+
}
|
9
|
+
export declare const MRT_ShowHideColumnsMenu: <TData extends MRT_RowData>({ anchorEl, setAnchorEl, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { type Dispatch, type SetStateAction } from 'react';
|
2
|
+
import { type MenuItemProps } from '@mui/material/MenuItem';
|
3
|
+
import { type MRT_Column, type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends MenuItemProps {
|
5
|
+
allColumns: MRT_Column<TData>[];
|
6
|
+
column: MRT_Column<TData>;
|
7
|
+
hoveredColumn: MRT_Column<TData> | null;
|
8
|
+
setHoveredColumn: Dispatch<SetStateAction<MRT_Column<TData> | null>>;
|
9
|
+
table: MRT_TableInstance<TData>;
|
10
|
+
}
|
11
|
+
export declare const MRT_ShowHideColumnsMenuItems: <TData extends MRT_RowData>({ allColumns, column, hoveredColumn, setHoveredColumn, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element | null;
|
12
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type DialogProps } from '@mui/material/Dialog';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends Partial<DialogProps> {
|
4
|
+
open: boolean;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_EditRowModal: <TData extends MRT_RowData>({ open, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './MRT_EditRowModal';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { type Row } from '@tanstack/react-table';
|
2
|
+
import { type MRT_Row, type MRT_RowData } from './types';
|
3
|
+
export declare const MRT_SortingFns: {
|
4
|
+
fuzzy: <TData extends MRT_RowData>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
|
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
|
+
};
|
12
|
+
export declare const rankGlobalFuzzy: <TData extends MRT_RowData>(rowA: MRT_Row<TData>, rowB: MRT_Row<TData>) => number;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { type TableCellProps } from '@mui/material/TableCell';
|
2
|
+
import { type Theme } from '@mui/material/styles';
|
3
|
+
import { type MRT_Column, type MRT_Header, type MRT_RowData, type MRT_TableInstance } from './types';
|
4
|
+
export declare const parseCSSVarId: (id: string) => string;
|
5
|
+
export declare const getMRTTheme: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, theme: Theme) => {
|
6
|
+
baseBackgroundColor: string;
|
7
|
+
draggingBorderColor: string;
|
8
|
+
matchHighlightColor: string;
|
9
|
+
pinnedRowBackgroundColor: string;
|
10
|
+
selectedRowBackgroundColor: string;
|
11
|
+
};
|
12
|
+
export declare const getCommonMRTCellStyles: <TData extends MRT_RowData>({ column, header, table, tableCellProps, theme, }: {
|
13
|
+
column: MRT_Column<TData>;
|
14
|
+
header?: MRT_Header<TData> | undefined;
|
15
|
+
table: MRT_TableInstance<TData>;
|
16
|
+
tableCellProps: TableCellProps;
|
17
|
+
theme: Theme;
|
18
|
+
}) => any;
|
19
|
+
export declare const getCommonToolbarStyles: <TData extends MRT_RowData>({ table, theme, }: {
|
20
|
+
table: MRT_TableInstance<TData>;
|
21
|
+
theme: Theme;
|
22
|
+
}) => {
|
23
|
+
alignItems: string;
|
24
|
+
backgroundColor: string;
|
25
|
+
display: string;
|
26
|
+
flexWrap: string;
|
27
|
+
minHeight: string;
|
28
|
+
overflow: string;
|
29
|
+
position: string;
|
30
|
+
transition: string;
|
31
|
+
zIndex: number;
|
32
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type TableProps } from '@mui/material/Table';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends TableProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_Table: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type TableContainerProps } from '@mui/material/TableContainer';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends TableContainerProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_TableContainer: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type CircularProgressProps } from '@mui/material/CircularProgress';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends CircularProgressProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_TableLoadingOverlay: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type PaperProps } from '@mui/material/Paper';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends PaperProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_TablePaper: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type BoxProps } from '@mui/material/Box';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends BoxProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_BottomToolbar: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type LinearProgressProps } from '@mui/material/LinearProgress';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends LinearProgressProps {
|
4
|
+
isTopToolbar: boolean;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_LinearProgressBar: <TData extends MRT_RowData>({ isTopToolbar, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { type PaginationProps } from '@mui/material/Pagination';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends Partial<PaginationProps & {
|
4
|
+
rowsPerPageOptions?: number[];
|
5
|
+
showRowsPerPage?: boolean;
|
6
|
+
}> {
|
7
|
+
position?: 'bottom' | 'top';
|
8
|
+
table: MRT_TableInstance<TData>;
|
9
|
+
}
|
10
|
+
export declare const MRT_TablePagination: <TData extends MRT_RowData>({ position, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type AlertProps } from '@mui/material/Alert';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends AlertProps {
|
4
|
+
stackAlertBanner?: boolean;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_ToolbarAlertBanner: <TData extends MRT_RowData>({ stackAlertBanner, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type BoxProps } from '@mui/material/Box';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends BoxProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_ToolbarDropZone: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type BoxProps } from '@mui/material/Box';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends BoxProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_ToolbarInternalButtons: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
2
|
+
interface Props<TData extends MRT_RowData> {
|
3
|
+
table: MRT_TableInstance<TData>;
|
4
|
+
}
|
5
|
+
export declare const MRT_TopToolbar: <TData extends MRT_RowData>({ table, }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
6
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export * from './MRT_BottomToolbar';
|
2
|
+
export * from './MRT_LinearProgressBar';
|
3
|
+
export * from './MRT_TablePagination';
|
4
|
+
export * from './MRT_ToolbarAlertBanner';
|
5
|
+
export * from './MRT_ToolbarDropZone';
|
6
|
+
export * from './MRT_ToolbarInternalButtons';
|
7
|
+
export * from './MRT_TopToolbar';
|