material-react-table 2.0.0-beta.9 → 2.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +36 -27
- package/dist/index.d.ts +54 -5
- package/dist/{esm/material-react-table.esm.js → index.esm.js} +57 -61
- package/dist/index.esm.js.map +1 -0
- package/dist/{cjs/index.js → index.js} +299 -209
- package/dist/index.js.map +1 -0
- 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 +127 -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/index.d.ts +4 -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 +18 -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/{locales → dist/types/locales}/ar.d.ts +0 -1
- package/{locales → dist/types/locales}/az.d.ts +0 -1
- package/{locales → dist/types/locales}/bg.d.ts +0 -1
- package/{locales → dist/types/locales}/cs.d.ts +0 -1
- package/{locales → dist/types/locales}/da.d.ts +0 -1
- package/{locales → dist/types/locales}/de.d.ts +0 -1
- package/{locales → dist/types/locales}/en.d.ts +0 -1
- package/{locales → dist/types/locales}/es.d.ts +0 -1
- package/{locales → dist/types/locales}/et.d.ts +0 -1
- package/{locales → dist/types/locales}/fa.d.ts +0 -1
- package/{locales → dist/types/locales}/fi.d.ts +0 -1
- package/{locales → dist/types/locales}/fr.d.ts +0 -1
- package/{locales → dist/types/locales}/hu.d.ts +0 -1
- package/{locales → dist/types/locales}/hy.d.ts +0 -1
- package/{locales → dist/types/locales}/id.d.ts +0 -1
- package/{locales → dist/types/locales}/it.d.ts +0 -1
- package/{locales → dist/types/locales}/ja.d.ts +0 -1
- package/{locales → dist/types/locales}/ko.d.ts +0 -1
- package/{locales → dist/types/locales}/nl.d.ts +0 -1
- package/{locales → dist/types/locales}/no.d.ts +0 -1
- package/{locales → dist/types/locales}/np.d.ts +0 -1
- package/{locales → dist/types/locales}/pl.d.ts +0 -1
- package/{locales → dist/types/locales}/pt-BR.d.ts +0 -1
- package/{locales → dist/types/locales}/pt.d.ts +0 -1
- package/{locales → dist/types/locales}/ro.d.ts +0 -1
- package/{locales → dist/types/locales}/ru.d.ts +0 -1
- package/{locales → dist/types/locales}/sk.d.ts +0 -1
- package/{locales → dist/types/locales}/sr-Cyrl-RS.d.ts +0 -1
- package/{locales → dist/types/locales}/sr-Latn-RS.d.ts +0 -1
- package/{locales → dist/types/locales}/sv.d.ts +0 -1
- package/{locales → dist/types/locales}/tr.d.ts +0 -1
- package/{locales → dist/types/locales}/uk.d.ts +0 -1
- package/{locales → dist/types/locales}/vi.d.ts +0 -1
- package/{locales → dist/types/locales}/zh-Hans.d.ts +0 -1
- package/{locales → dist/types/locales}/zh-Hant.d.ts +0 -1
- 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 +844 -0
- package/dist/types/useMaterialReactTable.d.ts +2 -0
- package/locales/ar/index.d.ts +3 -0
- package/locales/ar/index.esm.d.ts +3 -0
- package/locales/{ar.js → ar/index.js} +2 -0
- package/locales/ar/package.json +6 -0
- package/locales/az/index.d.ts +3 -0
- package/locales/az/index.esm.d.ts +3 -0
- package/locales/{az.js → az/index.js} +2 -0
- package/locales/az/package.json +6 -0
- package/locales/bg/index.d.ts +3 -0
- package/locales/bg/index.esm.d.ts +3 -0
- package/locales/{bg.js → bg/index.js} +2 -0
- package/locales/bg/package.json +6 -0
- package/locales/cs/index.d.ts +3 -0
- package/locales/cs/index.esm.d.ts +3 -0
- package/locales/{cs.js → cs/index.js} +2 -0
- package/locales/cs/package.json +6 -0
- package/locales/da/index.d.ts +3 -0
- package/locales/da/index.esm.d.ts +3 -0
- package/locales/{da.js → da/index.js} +2 -0
- package/locales/da/package.json +6 -0
- package/locales/de/index.d.ts +3 -0
- package/locales/de/index.esm.d.ts +3 -0
- package/locales/{de.js → de/index.js} +2 -0
- package/locales/de/package.json +6 -0
- package/locales/en/index.d.ts +3 -0
- package/locales/en/index.esm.d.ts +3 -0
- package/locales/{en.js → en/index.js} +2 -0
- package/locales/en/package.json +6 -0
- package/locales/es/index.d.ts +3 -0
- package/locales/es/index.esm.d.ts +3 -0
- package/locales/{es.js → es/index.js} +2 -0
- package/locales/es/package.json +6 -0
- package/locales/et/index.d.ts +3 -0
- package/locales/et/index.esm.d.ts +3 -0
- package/locales/{et.js → et/index.js} +2 -0
- package/locales/et/package.json +6 -0
- package/locales/fa/index.d.ts +3 -0
- package/locales/fa/index.esm.d.ts +3 -0
- package/locales/{fa.js → fa/index.js} +2 -0
- package/locales/fa/package.json +6 -0
- package/locales/fi/index.d.ts +3 -0
- package/locales/fi/index.esm.d.ts +3 -0
- package/locales/{fi.js → fi/index.js} +2 -0
- package/locales/fi/package.json +6 -0
- package/locales/fr/index.d.ts +3 -0
- package/locales/fr/index.esm.d.ts +3 -0
- package/locales/{fr.js → fr/index.js} +2 -0
- package/locales/fr/package.json +6 -0
- package/locales/hu/index.d.ts +3 -0
- package/locales/hu/index.esm.d.ts +3 -0
- package/locales/{hu.js → hu/index.js} +2 -0
- package/locales/hu/package.json +6 -0
- package/locales/hy/index.d.ts +3 -0
- package/locales/hy/index.esm.d.ts +3 -0
- package/locales/{hy.js → hy/index.js} +2 -0
- package/locales/hy/package.json +6 -0
- package/locales/id/index.d.ts +3 -0
- package/locales/id/index.esm.d.ts +3 -0
- package/locales/{id.js → id/index.js} +2 -0
- package/locales/id/package.json +6 -0
- package/locales/it/index.d.ts +3 -0
- package/locales/it/index.esm.d.ts +3 -0
- package/locales/{it.js → it/index.js} +2 -0
- package/locales/it/package.json +6 -0
- package/locales/ja/index.d.ts +3 -0
- package/locales/ja/index.esm.d.ts +3 -0
- package/locales/{ja.js → ja/index.js} +2 -0
- package/locales/ja/package.json +6 -0
- package/locales/ko/index.d.ts +3 -0
- package/locales/ko/index.esm.d.ts +3 -0
- package/locales/{ko.js → ko/index.js} +2 -0
- package/locales/ko/package.json +6 -0
- package/locales/nl/index.d.ts +3 -0
- package/locales/nl/index.esm.d.ts +3 -0
- package/locales/{nl.js → nl/index.js} +2 -0
- package/locales/nl/package.json +6 -0
- package/locales/no/index.d.ts +3 -0
- package/locales/no/index.esm.d.ts +3 -0
- package/locales/{no.js → no/index.js} +2 -0
- package/locales/no/package.json +6 -0
- package/locales/np/index.d.ts +3 -0
- package/locales/np/index.esm.d.ts +3 -0
- package/locales/{np.js → np/index.js} +2 -0
- package/locales/np/package.json +6 -0
- package/locales/pl/index.d.ts +3 -0
- package/locales/pl/index.esm.d.ts +3 -0
- package/locales/{pl.js → pl/index.js} +2 -0
- package/locales/pl/package.json +6 -0
- package/locales/pt/index.d.ts +3 -0
- package/locales/pt/index.esm.d.ts +3 -0
- package/locales/{pt.js → pt/index.js} +2 -0
- package/locales/pt/package.json +6 -0
- package/locales/pt-BR/index.d.ts +3 -0
- package/locales/pt-BR/index.esm.d.ts +3 -0
- package/locales/{pt-BR.js → pt-BR/index.js} +2 -0
- package/locales/pt-BR/package.json +6 -0
- package/locales/ro/index.d.ts +3 -0
- package/locales/ro/index.esm.d.ts +3 -0
- package/locales/{ro.js → ro/index.js} +2 -0
- package/locales/ro/package.json +6 -0
- package/locales/ru/index.d.ts +3 -0
- package/locales/ru/index.esm.d.ts +3 -0
- package/locales/{ru.js → ru/index.js} +2 -0
- package/locales/ru/package.json +6 -0
- package/locales/sk/index.d.ts +3 -0
- package/locales/sk/index.esm.d.ts +3 -0
- package/locales/{sk.js → sk/index.js} +2 -0
- package/locales/sk/package.json +6 -0
- package/locales/sr-Cyrl-RS/index.d.ts +3 -0
- package/locales/sr-Cyrl-RS/index.esm.d.ts +3 -0
- package/locales/{sr-Cyrl-RS.js → sr-Cyrl-RS/index.js} +2 -0
- package/locales/sr-Cyrl-RS/package.json +6 -0
- package/locales/sr-Latn-RS/index.d.ts +3 -0
- package/locales/sr-Latn-RS/index.esm.d.ts +3 -0
- package/locales/{sr-Latn-RS.js → sr-Latn-RS/index.js} +2 -0
- package/locales/sr-Latn-RS/package.json +6 -0
- package/locales/sv/index.d.ts +3 -0
- package/locales/sv/index.esm.d.ts +3 -0
- package/locales/{sv.js → sv/index.js} +2 -0
- package/locales/sv/package.json +6 -0
- package/locales/tr/index.d.ts +3 -0
- package/locales/tr/index.esm.d.ts +3 -0
- package/locales/{tr.js → tr/index.js} +2 -0
- package/locales/tr/package.json +6 -0
- package/locales/uk/index.d.ts +3 -0
- package/locales/uk/index.esm.d.ts +3 -0
- package/locales/{uk.js → uk/index.js} +2 -0
- package/locales/uk/package.json +6 -0
- package/locales/vi/index.d.ts +3 -0
- package/locales/vi/index.esm.d.ts +3 -0
- package/locales/{vi.js → vi/index.js} +2 -0
- package/locales/vi/package.json +6 -0
- package/locales/zh-Hans/index.d.ts +3 -0
- package/locales/zh-Hans/index.esm.d.ts +3 -0
- package/locales/{zh-Hans.mjs → zh-Hans/index.esm.js} +3 -3
- package/locales/{zh-Hans.js → zh-Hans/index.js} +5 -3
- package/locales/zh-Hans/package.json +6 -0
- package/locales/zh-Hant/index.d.ts +3 -0
- package/locales/zh-Hant/index.esm.d.ts +3 -0
- package/locales/{zh-Hant.js → zh-Hant/index.js} +2 -0
- package/locales/zh-Hant/package.json +6 -0
- package/package.json +25 -210
- package/src/body/MRT_TableBodyCell.tsx +2 -2
- package/src/body/MRT_TableBodyCellValue.tsx +1 -1
- package/src/column.utils.ts +17 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useMRT_TableOptions.ts +2 -2
- package/src/index.ts +1 -0
- package/src/inputs/MRT_EditCellTextField.tsx +20 -30
- package/src/inputs/MRT_FilterTextField.tsx +39 -51
- package/src/locales/zh-Hans.ts +3 -3
- package/src/table/MRT_TablePaper.tsx +6 -6
- package/src/types.ts +23 -4
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/material-react-table.esm.js.map +0 -1
- /package/locales/{ar.mjs → ar/index.esm.js} +0 -0
- /package/locales/{az.mjs → az/index.esm.js} +0 -0
- /package/locales/{bg.mjs → bg/index.esm.js} +0 -0
- /package/locales/{cs.mjs → cs/index.esm.js} +0 -0
- /package/locales/{da.mjs → da/index.esm.js} +0 -0
- /package/locales/{de.mjs → de/index.esm.js} +0 -0
- /package/locales/{en.mjs → en/index.esm.js} +0 -0
- /package/locales/{es.mjs → es/index.esm.js} +0 -0
- /package/locales/{et.mjs → et/index.esm.js} +0 -0
- /package/locales/{fa.mjs → fa/index.esm.js} +0 -0
- /package/locales/{fi.mjs → fi/index.esm.js} +0 -0
- /package/locales/{fr.mjs → fr/index.esm.js} +0 -0
- /package/locales/{hu.mjs → hu/index.esm.js} +0 -0
- /package/locales/{hy.mjs → hy/index.esm.js} +0 -0
- /package/locales/{id.mjs → id/index.esm.js} +0 -0
- /package/locales/{it.mjs → it/index.esm.js} +0 -0
- /package/locales/{ja.mjs → ja/index.esm.js} +0 -0
- /package/locales/{ko.mjs → ko/index.esm.js} +0 -0
- /package/locales/{nl.mjs → nl/index.esm.js} +0 -0
- /package/locales/{no.mjs → no/index.esm.js} +0 -0
- /package/locales/{np.mjs → np/index.esm.js} +0 -0
- /package/locales/{pl.mjs → pl/index.esm.js} +0 -0
- /package/locales/{pt.mjs → pt/index.esm.js} +0 -0
- /package/locales/{pt-BR.mjs → pt-BR/index.esm.js} +0 -0
- /package/locales/{ro.mjs → ro/index.esm.js} +0 -0
- /package/locales/{ru.mjs → ru/index.esm.js} +0 -0
- /package/locales/{sk.mjs → sk/index.esm.js} +0 -0
- /package/locales/{sr-Cyrl-RS.mjs → sr-Cyrl-RS/index.esm.js} +0 -0
- /package/locales/{sr-Latn-RS.mjs → sr-Latn-RS/index.esm.js} +0 -0
- /package/locales/{sv.mjs → sv/index.esm.js} +0 -0
- /package/locales/{tr.mjs → tr/index.esm.js} +0 -0
- /package/locales/{uk.mjs → uk/index.esm.js} +0 -0
- /package/locales/{vi.mjs → vi/index.esm.js} +0 -0
- /package/locales/{zh-Hant.mjs → zh-Hant/index.esm.js} +0 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare const MRT_AggregationFns: {
|
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
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { type VirtualItem, type Virtualizer } from '@tanstack/react-virtual';
|
2
|
+
import { type TableBodyProps } from '@mui/material/TableBody';
|
3
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends TableBodyProps {
|
5
|
+
columnVirtualizer?: Virtualizer<HTMLDivElement, HTMLTableCellElement>;
|
6
|
+
table: MRT_TableInstance<TData>;
|
7
|
+
virtualColumns?: VirtualItem[];
|
8
|
+
virtualPaddingLeft?: number;
|
9
|
+
virtualPaddingRight?: number;
|
10
|
+
}
|
11
|
+
export declare const MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
export declare const Memo_MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { type RefObject } from 'react';
|
2
|
+
import { type TableCellProps } from '@mui/material/TableCell';
|
3
|
+
import { type MRT_Cell, type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends TableCellProps {
|
5
|
+
cell: MRT_Cell<TData>;
|
6
|
+
measureElement?: (element: HTMLTableCellElement) => void;
|
7
|
+
numRows?: number;
|
8
|
+
rowIndex: number;
|
9
|
+
rowRef: RefObject<HTMLTableRowElement>;
|
10
|
+
table: MRT_TableInstance<TData>;
|
11
|
+
virtualIndex?: number;
|
12
|
+
}
|
13
|
+
export declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, measureElement, numRows, rowIndex, rowRef, table, virtualIndex, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
export declare const Memo_MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, measureElement, numRows, rowIndex, rowRef, table, virtualIndex, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type ReactNode } from 'react';
|
2
|
+
import { type MRT_Cell, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> {
|
4
|
+
cell: MRT_Cell<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableBodyCellValue: <TData extends MRT_RowData>({ cell, table, }: Props<TData>) => ReactNode;
|
8
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { type VirtualItem, type Virtualizer } from '@tanstack/react-virtual';
|
2
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> {
|
4
|
+
columnVirtualizer?: Virtualizer<HTMLDivElement, HTMLTableCellElement>;
|
5
|
+
measureElement?: (element: HTMLTableRowElement) => void;
|
6
|
+
numRows?: number;
|
7
|
+
pinnedRowIds?: string[];
|
8
|
+
row: MRT_Row<TData>;
|
9
|
+
rowIndex: number;
|
10
|
+
table: MRT_TableInstance<TData>;
|
11
|
+
virtualColumns?: VirtualItem[];
|
12
|
+
virtualPaddingLeft?: number;
|
13
|
+
virtualPaddingRight?: number;
|
14
|
+
virtualRow?: VirtualItem;
|
15
|
+
}
|
16
|
+
export declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, measureElement, numRows, pinnedRowIds, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
17
|
+
export declare const Memo_MRT_TableBodyRow: <TData extends MRT_RowData>({ columnVirtualizer, measureElement, numRows, pinnedRowIds, row, rowIndex, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, virtualRow, }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
18
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { type RefObject } from 'react';
|
2
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
3
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
5
|
+
row: MRT_Row<TData>;
|
6
|
+
rowRef: RefObject<HTMLTableRowElement>;
|
7
|
+
table: MRT_TableInstance<TData>;
|
8
|
+
}
|
9
|
+
export declare const MRT_TableBodyRowGrabHandle: <TData extends MRT_RowData>({ row, rowRef, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
row: MRT_Row<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableBodyRowPinButton: <TData extends MRT_RowData>({ row, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element | null;
|
8
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { type RefObject } from 'react';
|
2
|
+
import { type VirtualItem } from '@tanstack/react-virtual';
|
3
|
+
import { type TableCellProps } from '@mui/material/TableCell';
|
4
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
5
|
+
interface Props<TData extends MRT_RowData> extends TableCellProps {
|
6
|
+
parentRowRef: RefObject<HTMLTableRowElement>;
|
7
|
+
row: MRT_Row<TData>;
|
8
|
+
rowIndex: number;
|
9
|
+
table: MRT_TableInstance<TData>;
|
10
|
+
virtualRow?: VirtualItem;
|
11
|
+
}
|
12
|
+
export declare const MRT_TableDetailPanel: <TData extends MRT_RowData>({ parentRowRef, row, rowIndex, table, virtualRow, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export * from './MRT_TableBody';
|
2
|
+
export * from './MRT_TableBodyCell';
|
3
|
+
export * from './MRT_TableBodyCellValue';
|
4
|
+
export * from './MRT_TableBodyRow';
|
5
|
+
export * from './MRT_TableBodyRowGrabHandle';
|
6
|
+
export * from './MRT_TableBodyRowPinButton';
|
7
|
+
export * from './MRT_TableDetailPanel';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type BoxProps } from '@mui/material/Box';
|
2
|
+
import { type MRT_Column, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends BoxProps {
|
4
|
+
column: MRT_Column<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_ColumnPinningButtons: <TData extends MRT_RowData>({ column, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type ButtonProps } from '@mui/material/Button';
|
2
|
+
import { type MRT_Cell, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends ButtonProps {
|
4
|
+
cell: MRT_Cell<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_CopyButton: <TData extends MRT_RowData>({ cell, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type BoxProps } from '@mui/material/Box';
|
2
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends BoxProps {
|
4
|
+
row: MRT_Row<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
variant?: 'icon' | 'text';
|
7
|
+
}
|
8
|
+
export declare const MRT_EditActionButtons: <TData extends MRT_RowData>({ row, table, variant, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_ExpandAllButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
row: MRT_Row<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_ExpandButton: <TData extends MRT_RowData>({ row, table, }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { type DragEventHandler } from 'react';
|
2
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
3
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
5
|
+
iconButtonProps?: IconButtonProps;
|
6
|
+
location?: 'column' | 'row';
|
7
|
+
onDragEnd: DragEventHandler<HTMLButtonElement>;
|
8
|
+
onDragStart: DragEventHandler<HTMLButtonElement>;
|
9
|
+
table: MRT_TableInstance<TData>;
|
10
|
+
}
|
11
|
+
export declare const MRT_GrabHandleButton: <TData extends MRT_RowData>({ iconButtonProps, location, onDragEnd, onDragStart, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { type RowPinningPosition } from '@tanstack/react-table';
|
2
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
3
|
+
import { type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
5
|
+
pinningPosition: RowPinningPosition;
|
6
|
+
row: MRT_Row<TData>;
|
7
|
+
table: MRT_TableInstance<TData>;
|
8
|
+
}
|
9
|
+
export declare const MRT_RowPinButton: <TData extends MRT_RowData>({ pinningPosition, row, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_ShowHideColumnsButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_ToggleDensePaddingButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_ToggleFiltersButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_ToggleFullScreenButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
table: MRT_TableInstance<TData>;
|
5
|
+
}
|
6
|
+
export declare const MRT_ToggleGlobalFilterButton: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_Cell, type MRT_Row, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
cell: MRT_Cell<TData>;
|
5
|
+
row: MRT_Row<TData>;
|
6
|
+
table: MRT_TableInstance<TData>;
|
7
|
+
}
|
8
|
+
export declare const MRT_ToggleRowActionMenuButton: <TData extends MRT_RowData>({ cell, row, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export * from './MRT_ColumnPinningButtons';
|
2
|
+
export * from './MRT_CopyButton';
|
3
|
+
export * from './MRT_EditActionButtons';
|
4
|
+
export * from './MRT_ExpandAllButton';
|
5
|
+
export * from './MRT_ExpandButton';
|
6
|
+
export * from './MRT_GrabHandleButton';
|
7
|
+
export * from './MRT_RowPinButton';
|
8
|
+
export * from './MRT_ShowHideColumnsButton';
|
9
|
+
export * from './MRT_ToggleDensePaddingButton';
|
10
|
+
export * from './MRT_ToggleFiltersButton';
|
11
|
+
export * from './MRT_ToggleFullScreenButton';
|
12
|
+
export * from './MRT_ToggleGlobalFilterButton';
|
13
|
+
export * from './MRT_ToggleRowActionMenuButton';
|
@@ -0,0 +1,127 @@
|
|
1
|
+
import { type ReactNode } from 'react';
|
2
|
+
import { type Renderable, type Row } from '@tanstack/react-table';
|
3
|
+
import { type Range } from '@tanstack/react-virtual';
|
4
|
+
import { type MRT_AggregationFns } from './aggregationFns';
|
5
|
+
import { type MRT_FilterFns } from './filterFns';
|
6
|
+
import { type MRT_SortingFns } from './sortingFns';
|
7
|
+
import { type MRT_Column, type MRT_ColumnDef, type MRT_ColumnHelper, type MRT_ColumnOrderState, type MRT_DefinedColumnDef, type MRT_DisplayColumnIds, type MRT_FilterOption, type MRT_GroupingState, type MRT_Row, type MRT_RowData, type MRT_TableInstance, type MRT_TableOptions } from './types';
|
8
|
+
export declare const getColumnId: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => string;
|
9
|
+
export declare const getAllLeafColumnDefs: <TData extends MRT_RowData>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|
10
|
+
export declare const prepareColumns: <TData extends MRT_RowData>({ aggregationFns, columnDefs, columnFilterFns, defaultDisplayColumn, filterFns, sortingFns, }: {
|
11
|
+
aggregationFns: {
|
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
|
+
columnDefs: MRT_ColumnDef<TData>[];
|
23
|
+
columnFilterFns: {
|
24
|
+
[key: string]: MRT_FilterOption;
|
25
|
+
};
|
26
|
+
defaultDisplayColumn: Partial<MRT_ColumnDef<TData>>;
|
27
|
+
filterFns: {
|
28
|
+
between: {
|
29
|
+
<TData_1 extends MRT_RowData>(row: Row<TData_1>, id: string, filterValues: [string | number, string | number]): boolean;
|
30
|
+
autoRemove(val: any): boolean;
|
31
|
+
};
|
32
|
+
betweenInclusive: {
|
33
|
+
<TData_2 extends MRT_RowData>(row: Row<TData_2>, id: string, filterValues: [string | number, string | number]): boolean;
|
34
|
+
autoRemove(val: any): boolean;
|
35
|
+
};
|
36
|
+
contains: {
|
37
|
+
<TData_3 extends MRT_RowData>(row: Row<TData_3>, id: string, filterValue: string | number): boolean;
|
38
|
+
autoRemove(val: any): boolean;
|
39
|
+
};
|
40
|
+
empty: {
|
41
|
+
<TData_4 extends MRT_RowData>(row: Row<TData_4>, id: string, _filterValue: string | number): boolean;
|
42
|
+
autoRemove(val: any): boolean;
|
43
|
+
};
|
44
|
+
endsWith: {
|
45
|
+
<TData_5 extends MRT_RowData>(row: Row<TData_5>, id: string, filterValue: string | number): boolean;
|
46
|
+
autoRemove(val: any): boolean;
|
47
|
+
};
|
48
|
+
equals: {
|
49
|
+
<TData_6 extends MRT_RowData>(row: Row<TData_6>, id: string, filterValue: string | number): boolean;
|
50
|
+
autoRemove(val: any): boolean;
|
51
|
+
};
|
52
|
+
fuzzy: {
|
53
|
+
<TData_7 extends MRT_RowData>(row: Row<TData_7>, columnId: string, filterValue: string | number, addMeta: (item: import("@tanstack/match-sorter-utils").RankingInfo) => void): boolean;
|
54
|
+
autoRemove(val: any): boolean;
|
55
|
+
};
|
56
|
+
greaterThan: {
|
57
|
+
<TData_8 extends MRT_RowData>(row: Row<TData_8>, id: string, filterValue: string | number): boolean;
|
58
|
+
autoRemove(val: any): boolean;
|
59
|
+
};
|
60
|
+
greaterThanOrEqualTo: {
|
61
|
+
<TData_9 extends MRT_RowData>(row: Row<TData_9>, id: string, filterValue: string | number): boolean;
|
62
|
+
autoRemove(val: any): boolean;
|
63
|
+
};
|
64
|
+
lessThan: {
|
65
|
+
<TData_10 extends MRT_RowData>(row: Row<TData_10>, id: string, filterValue: string | number): boolean;
|
66
|
+
autoRemove(val: any): boolean;
|
67
|
+
};
|
68
|
+
lessThanOrEqualTo: {
|
69
|
+
<TData_11 extends MRT_RowData>(row: Row<TData_11>, id: string, filterValue: string | number): boolean;
|
70
|
+
autoRemove(val: any): boolean;
|
71
|
+
};
|
72
|
+
notEmpty: {
|
73
|
+
<TData_12 extends MRT_RowData>(row: Row<TData_12>, id: string, _filterValue: string | number): boolean;
|
74
|
+
autoRemove(val: any): boolean;
|
75
|
+
};
|
76
|
+
notEquals: {
|
77
|
+
<TData_13 extends MRT_RowData>(row: Row<TData_13>, id: string, filterValue: string | number): boolean;
|
78
|
+
autoRemove(val: any): boolean;
|
79
|
+
};
|
80
|
+
startsWith: {
|
81
|
+
<TData_14 extends MRT_RowData>(row: Row<TData_14>, id: string, filterValue: string | number): boolean;
|
82
|
+
autoRemove(val: any): boolean;
|
83
|
+
};
|
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
|
+
sortingFns: {
|
94
|
+
fuzzy: <TData_15 extends MRT_RowData>(rowA: Row<TData_15>, rowB: Row<TData_15>, columnId: string) => number;
|
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
|
+
}) => MRT_DefinedColumnDef<TData>[];
|
103
|
+
export declare const reorderColumn: <TData extends MRT_RowData>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: MRT_ColumnOrderState) => MRT_ColumnOrderState;
|
104
|
+
export declare const showExpandColumn: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>, grouping?: MRT_GroupingState) => boolean;
|
105
|
+
export declare const getLeadingDisplayColumnIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => MRT_DisplayColumnIds[];
|
106
|
+
export declare const getTrailingDisplayColumnIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => MRT_DisplayColumnIds[];
|
107
|
+
export declare const getDefaultColumnOrderIds: <TData extends MRT_RowData>(props: MRT_TableOptions<TData>) => string[];
|
108
|
+
export declare const getDefaultColumnFilterFn: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => MRT_FilterOption;
|
109
|
+
export declare const getIsFirstColumn: <TData extends MRT_RowData>(column: MRT_Column<TData>, table: MRT_TableInstance<TData>) => boolean;
|
110
|
+
export declare const getIsLastColumn: <TData extends MRT_RowData>(column: MRT_Column<TData>, table: MRT_TableInstance<TData>) => boolean;
|
111
|
+
export declare const getIsLastLeftPinnedColumn: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, column: MRT_Column<TData>) => boolean;
|
112
|
+
export declare const getIsFirstRightPinnedColumn: <TData extends MRT_RowData>(column: MRT_Column<TData>) => boolean;
|
113
|
+
export declare const getTotalRight: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, column: MRT_Column<TData>) => number;
|
114
|
+
export declare const getCanRankRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => boolean | undefined;
|
115
|
+
export declare const parseFromValuesOrFunc: <T, U>(fn: T | ((arg: U) => T) | undefined, arg: U) => T | undefined;
|
116
|
+
export declare const flexRender: (Comp: Renderable<any>, props: any) => JSX.Element | ReactNode;
|
117
|
+
export declare const createRow: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, originalRow?: TData | undefined) => MRT_Row<TData>;
|
118
|
+
export declare const extraIndexRangeExtractor: (range: Range, draggingIndex: number) => number[];
|
119
|
+
export declare function createMRTColumnHelper<TData extends MRT_RowData>(): MRT_ColumnHelper<TData>;
|
120
|
+
export declare const getValueAndLabel: (option: {
|
121
|
+
label?: string;
|
122
|
+
text?: string;
|
123
|
+
value: string;
|
124
|
+
} | string) => {
|
125
|
+
label: string;
|
126
|
+
value: string;
|
127
|
+
};
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { type RankingInfo } from '@tanstack/match-sorter-utils';
|
2
|
+
import { type Row } from '@tanstack/react-table';
|
3
|
+
import { type MRT_RowData } from './types';
|
4
|
+
export declare const MRT_FilterFns: {
|
5
|
+
between: {
|
6
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
|
7
|
+
autoRemove(val: any): boolean;
|
8
|
+
};
|
9
|
+
betweenInclusive: {
|
10
|
+
<TData_1 extends MRT_RowData>(row: Row<TData_1>, id: string, filterValues: [number | string, number | string]): boolean;
|
11
|
+
autoRemove(val: any): boolean;
|
12
|
+
};
|
13
|
+
contains: {
|
14
|
+
<TData_2 extends MRT_RowData>(row: Row<TData_2>, id: string, filterValue: number | string): boolean;
|
15
|
+
autoRemove(val: any): boolean;
|
16
|
+
};
|
17
|
+
empty: {
|
18
|
+
<TData_3 extends MRT_RowData>(row: Row<TData_3>, id: string, _filterValue: number | string): boolean;
|
19
|
+
autoRemove(val: any): boolean;
|
20
|
+
};
|
21
|
+
endsWith: {
|
22
|
+
<TData_4 extends MRT_RowData>(row: Row<TData_4>, id: string, filterValue: number | string): boolean;
|
23
|
+
autoRemove(val: any): boolean;
|
24
|
+
};
|
25
|
+
equals: {
|
26
|
+
<TData_5 extends MRT_RowData>(row: Row<TData_5>, id: string, filterValue: number | string): boolean;
|
27
|
+
autoRemove(val: any): boolean;
|
28
|
+
};
|
29
|
+
fuzzy: {
|
30
|
+
<TData_6 extends MRT_RowData>(row: Row<TData_6>, columnId: string, filterValue: number | string, addMeta: (item: RankingInfo) => void): boolean;
|
31
|
+
autoRemove(val: any): boolean;
|
32
|
+
};
|
33
|
+
greaterThan: {
|
34
|
+
<TData_7 extends MRT_RowData>(row: Row<TData_7>, id: string, filterValue: number | string): boolean;
|
35
|
+
autoRemove(val: any): boolean;
|
36
|
+
};
|
37
|
+
greaterThanOrEqualTo: {
|
38
|
+
<TData_8 extends MRT_RowData>(row: Row<TData_8>, id: string, filterValue: number | string): boolean;
|
39
|
+
autoRemove(val: any): boolean;
|
40
|
+
};
|
41
|
+
lessThan: {
|
42
|
+
<TData_9 extends MRT_RowData>(row: Row<TData_9>, id: string, filterValue: number | string): boolean;
|
43
|
+
autoRemove(val: any): boolean;
|
44
|
+
};
|
45
|
+
lessThanOrEqualTo: {
|
46
|
+
<TData_10 extends MRT_RowData>(row: Row<TData_10>, id: string, filterValue: number | string): boolean;
|
47
|
+
autoRemove(val: any): boolean;
|
48
|
+
};
|
49
|
+
notEmpty: {
|
50
|
+
<TData_11 extends MRT_RowData>(row: Row<TData_11>, id: string, _filterValue: number | string): boolean;
|
51
|
+
autoRemove(val: any): boolean;
|
52
|
+
};
|
53
|
+
notEquals: {
|
54
|
+
<TData_12 extends MRT_RowData>(row: Row<TData_12>, id: string, filterValue: number | string): boolean;
|
55
|
+
autoRemove(val: any): boolean;
|
56
|
+
};
|
57
|
+
startsWith: {
|
58
|
+
<TData_13 extends MRT_RowData>(row: Row<TData_13>, id: string, filterValue: number | string): boolean;
|
59
|
+
autoRemove(val: any): boolean;
|
60
|
+
};
|
61
|
+
includesString: import("@tanstack/react-table").FilterFn<any>;
|
62
|
+
includesStringSensitive: import("@tanstack/react-table").FilterFn<any>;
|
63
|
+
equalsString: import("@tanstack/react-table").FilterFn<any>;
|
64
|
+
arrIncludes: import("@tanstack/react-table").FilterFn<any>;
|
65
|
+
arrIncludesAll: import("@tanstack/react-table").FilterFn<any>;
|
66
|
+
arrIncludesSome: import("@tanstack/react-table").FilterFn<any>;
|
67
|
+
weakEquals: import("@tanstack/react-table").FilterFn<any>;
|
68
|
+
inNumberRange: import("@tanstack/react-table").FilterFn<any>;
|
69
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { type VirtualItem } from '@tanstack/react-virtual';
|
2
|
+
import { type TableFooterProps } from '@mui/material/TableFooter';
|
3
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends TableFooterProps {
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
virtualColumns?: VirtualItem[];
|
7
|
+
virtualPaddingLeft?: number;
|
8
|
+
virtualPaddingRight?: number;
|
9
|
+
}
|
10
|
+
export declare const MRT_TableFooter: <TData extends MRT_RowData>({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type TableCellProps } from '@mui/material/TableCell';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends TableCellProps {
|
4
|
+
footer: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableFooterCell: <TData extends MRT_RowData>({ footer, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { type VirtualItem } from '@tanstack/react-virtual';
|
2
|
+
import { type TableRowProps } from '@mui/material/TableRow';
|
3
|
+
import { type MRT_HeaderGroup, type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends TableRowProps {
|
5
|
+
footerGroup: MRT_HeaderGroup<TData>;
|
6
|
+
table: MRT_TableInstance<TData>;
|
7
|
+
virtualColumns?: VirtualItem[];
|
8
|
+
virtualPaddingLeft?: number;
|
9
|
+
virtualPaddingRight?: number;
|
10
|
+
}
|
11
|
+
export declare const MRT_TableFooterRow: <TData extends MRT_RowData>({ footerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element | null;
|
12
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { type VirtualItem } from '@tanstack/react-virtual';
|
2
|
+
import { type TableHeadProps } from '@mui/material/TableHead';
|
3
|
+
import { type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends TableHeadProps {
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
virtualColumns?: VirtualItem[];
|
7
|
+
virtualPaddingLeft?: number;
|
8
|
+
virtualPaddingRight?: number;
|
9
|
+
}
|
10
|
+
export declare const MRT_TableHead: <TData extends MRT_RowData>({ table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
11
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type TableCellProps } from '@mui/material/TableCell';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends TableCellProps {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableHeadCell: <TData extends MRT_RowData>({ header, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableHeadCellColumnActionsButton: <TData extends MRT_RowData>({ header, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type CollapseProps } from '@mui/material/Collapse';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends CollapseProps {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableHeadCellFilterContainer: <TData extends MRT_RowData>({ header, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableHeadCellFilterLabel: <TData extends MRT_RowData = {}>({ header, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { type RefObject } from 'react';
|
2
|
+
import { type IconButtonProps } from '@mui/material/IconButton';
|
3
|
+
import { type MRT_Column, type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends IconButtonProps {
|
5
|
+
column: MRT_Column<TData>;
|
6
|
+
table: MRT_TableInstance<TData>;
|
7
|
+
tableHeadCellRef: RefObject<HTMLTableCellElement>;
|
8
|
+
}
|
9
|
+
export declare const MRT_TableHeadCellGrabHandle: <TData extends MRT_RowData>({ column, table, tableHeadCellRef, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type DividerProps } from '@mui/material/Divider';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends DividerProps {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableHeadCellResizeHandle: <TData extends MRT_RowData>({ header, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type TableSortLabelProps } from '@mui/material/TableSortLabel';
|
2
|
+
import { type MRT_Header, type MRT_RowData, type MRT_TableInstance } from '../types';
|
3
|
+
interface Props<TData extends MRT_RowData> extends TableSortLabelProps {
|
4
|
+
header: MRT_Header<TData>;
|
5
|
+
table: MRT_TableInstance<TData>;
|
6
|
+
}
|
7
|
+
export declare const MRT_TableHeadCellSortLabel: <TData extends MRT_RowData>({ header, table, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { type VirtualItem } from '@tanstack/react-virtual';
|
2
|
+
import { type TableRowProps } from '@mui/material/TableRow';
|
3
|
+
import { type MRT_HeaderGroup, type MRT_RowData, type MRT_TableInstance } from '../types';
|
4
|
+
interface Props<TData extends MRT_RowData> extends TableRowProps {
|
5
|
+
headerGroup: MRT_HeaderGroup<TData>;
|
6
|
+
table: MRT_TableInstance<TData>;
|
7
|
+
virtualColumns?: VirtualItem[];
|
8
|
+
virtualPaddingLeft?: number;
|
9
|
+
virtualPaddingRight?: number;
|
10
|
+
}
|
11
|
+
export declare const MRT_TableHeadRow: <TData extends MRT_RowData>({ headerGroup, table, virtualColumns, virtualPaddingLeft, virtualPaddingRight, ...rest }: Props<TData>) => import("react/jsx-runtime").JSX.Element;
|
12
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export * from './MRT_TableHead';
|
2
|
+
export * from './MRT_TableHeadCell';
|
3
|
+
export * from './MRT_TableHeadCellColumnActionsButton';
|
4
|
+
export * from './MRT_TableHeadCellFilterContainer';
|
5
|
+
export * from './MRT_TableHeadCellFilterLabel';
|
6
|
+
export * from './MRT_TableHeadCellGrabHandle';
|
7
|
+
export * from './MRT_TableHeadCellResizeHandle';
|
8
|
+
export * from './MRT_TableHeadCellSortLabel';
|
9
|
+
export * from './MRT_TableHeadRow';
|