@kissesses/mantine-react-table-open 9.0.3
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/LICENSE +21 -0
- package/README.md +196 -0
- package/dist/index.cjs +3769 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1488 -0
- package/dist/index.esm.d.mts +1488 -0
- package/dist/index.esm.mjs +3664 -0
- package/dist/index.esm.mjs.map +1 -0
- package/locales/ar/index.cjs +97 -0
- package/locales/ar/index.d.cts +3 -0
- package/locales/ar/index.esm.d.mts +3 -0
- package/locales/ar/index.esm.mjs +95 -0
- package/locales/ar/package.json +19 -0
- package/locales/az/index.cjs +97 -0
- package/locales/az/index.d.cts +3 -0
- package/locales/az/index.esm.d.mts +3 -0
- package/locales/az/index.esm.mjs +95 -0
- package/locales/az/package.json +19 -0
- package/locales/bg/index.cjs +97 -0
- package/locales/bg/index.d.cts +3 -0
- package/locales/bg/index.esm.d.mts +3 -0
- package/locales/bg/index.esm.mjs +95 -0
- package/locales/bg/package.json +19 -0
- package/locales/cs/index.cjs +97 -0
- package/locales/cs/index.d.cts +3 -0
- package/locales/cs/index.esm.d.mts +3 -0
- package/locales/cs/index.esm.mjs +95 -0
- package/locales/cs/package.json +19 -0
- package/locales/da/index.cjs +97 -0
- package/locales/da/index.d.cts +3 -0
- package/locales/da/index.esm.d.mts +3 -0
- package/locales/da/index.esm.mjs +95 -0
- package/locales/da/package.json +19 -0
- package/locales/de/index.cjs +97 -0
- package/locales/de/index.d.cts +3 -0
- package/locales/de/index.esm.d.mts +3 -0
- package/locales/de/index.esm.mjs +95 -0
- package/locales/de/package.json +19 -0
- package/locales/el/index.cjs +97 -0
- package/locales/el/index.d.cts +3 -0
- package/locales/el/index.esm.d.mts +3 -0
- package/locales/el/index.esm.mjs +95 -0
- package/locales/el/package.json +19 -0
- package/locales/en/index.cjs +97 -0
- package/locales/en/index.d.cts +3 -0
- package/locales/en/index.esm.d.mts +3 -0
- package/locales/en/index.esm.mjs +95 -0
- package/locales/en/package.json +19 -0
- package/locales/es/index.cjs +97 -0
- package/locales/es/index.d.cts +3 -0
- package/locales/es/index.esm.d.mts +3 -0
- package/locales/es/index.esm.mjs +95 -0
- package/locales/es/package.json +19 -0
- package/locales/et/index.cjs +97 -0
- package/locales/et/index.d.cts +3 -0
- package/locales/et/index.esm.d.mts +3 -0
- package/locales/et/index.esm.mjs +95 -0
- package/locales/et/package.json +19 -0
- package/locales/fa/index.cjs +97 -0
- package/locales/fa/index.d.cts +3 -0
- package/locales/fa/index.esm.d.mts +3 -0
- package/locales/fa/index.esm.mjs +95 -0
- package/locales/fa/package.json +19 -0
- package/locales/fi/index.cjs +97 -0
- package/locales/fi/index.d.cts +3 -0
- package/locales/fi/index.esm.d.mts +3 -0
- package/locales/fi/index.esm.mjs +95 -0
- package/locales/fi/package.json +19 -0
- package/locales/fr/index.cjs +97 -0
- package/locales/fr/index.d.cts +3 -0
- package/locales/fr/index.esm.d.mts +3 -0
- package/locales/fr/index.esm.mjs +95 -0
- package/locales/fr/package.json +19 -0
- package/locales/he/index.cjs +97 -0
- package/locales/he/index.d.cts +3 -0
- package/locales/he/index.esm.d.mts +3 -0
- package/locales/he/index.esm.mjs +95 -0
- package/locales/he/package.json +19 -0
- package/locales/hr/index.cjs +97 -0
- package/locales/hr/index.d.cts +3 -0
- package/locales/hr/index.esm.d.mts +3 -0
- package/locales/hr/index.esm.mjs +95 -0
- package/locales/hr/package.json +19 -0
- package/locales/hu/index.cjs +97 -0
- package/locales/hu/index.d.cts +3 -0
- package/locales/hu/index.esm.d.mts +3 -0
- package/locales/hu/index.esm.mjs +95 -0
- package/locales/hu/package.json +19 -0
- package/locales/hy/index.cjs +97 -0
- package/locales/hy/index.d.cts +3 -0
- package/locales/hy/index.esm.d.mts +3 -0
- package/locales/hy/index.esm.mjs +95 -0
- package/locales/hy/package.json +19 -0
- package/locales/id/index.cjs +97 -0
- package/locales/id/index.d.cts +3 -0
- package/locales/id/index.esm.d.mts +3 -0
- package/locales/id/index.esm.mjs +95 -0
- package/locales/id/package.json +19 -0
- package/locales/it/index.cjs +97 -0
- package/locales/it/index.d.cts +3 -0
- package/locales/it/index.esm.d.mts +3 -0
- package/locales/it/index.esm.mjs +95 -0
- package/locales/it/package.json +19 -0
- package/locales/ja/index.cjs +97 -0
- package/locales/ja/index.d.cts +3 -0
- package/locales/ja/index.esm.d.mts +3 -0
- package/locales/ja/index.esm.mjs +95 -0
- package/locales/ja/package.json +19 -0
- package/locales/ko/index.cjs +97 -0
- package/locales/ko/index.d.cts +3 -0
- package/locales/ko/index.esm.d.mts +3 -0
- package/locales/ko/index.esm.mjs +95 -0
- package/locales/ko/package.json +19 -0
- package/locales/nl/index.cjs +97 -0
- package/locales/nl/index.d.cts +3 -0
- package/locales/nl/index.esm.d.mts +3 -0
- package/locales/nl/index.esm.mjs +95 -0
- package/locales/nl/package.json +19 -0
- package/locales/no/index.cjs +97 -0
- package/locales/no/index.d.cts +3 -0
- package/locales/no/index.esm.d.mts +3 -0
- package/locales/no/index.esm.mjs +95 -0
- package/locales/no/package.json +19 -0
- package/locales/np/index.cjs +97 -0
- package/locales/np/index.d.cts +3 -0
- package/locales/np/index.esm.d.mts +3 -0
- package/locales/np/index.esm.mjs +95 -0
- package/locales/np/package.json +19 -0
- package/locales/pl/index.cjs +97 -0
- package/locales/pl/index.d.cts +3 -0
- package/locales/pl/index.esm.d.mts +3 -0
- package/locales/pl/index.esm.mjs +95 -0
- package/locales/pl/package.json +19 -0
- package/locales/pt/index.cjs +97 -0
- package/locales/pt/index.d.cts +3 -0
- package/locales/pt/index.esm.d.mts +3 -0
- package/locales/pt/index.esm.mjs +95 -0
- package/locales/pt/package.json +19 -0
- package/locales/pt-BR/index.cjs +97 -0
- package/locales/pt-BR/index.d.cts +3 -0
- package/locales/pt-BR/index.esm.d.mts +3 -0
- package/locales/pt-BR/index.esm.mjs +95 -0
- package/locales/pt-BR/package.json +19 -0
- package/locales/ro/index.cjs +97 -0
- package/locales/ro/index.d.cts +3 -0
- package/locales/ro/index.esm.d.mts +3 -0
- package/locales/ro/index.esm.mjs +95 -0
- package/locales/ro/package.json +19 -0
- package/locales/ru/index.cjs +97 -0
- package/locales/ru/index.d.cts +3 -0
- package/locales/ru/index.esm.d.mts +3 -0
- package/locales/ru/index.esm.mjs +95 -0
- package/locales/ru/package.json +19 -0
- package/locales/sk/index.cjs +97 -0
- package/locales/sk/index.d.cts +3 -0
- package/locales/sk/index.esm.d.mts +3 -0
- package/locales/sk/index.esm.mjs +95 -0
- package/locales/sk/package.json +19 -0
- package/locales/sr-Cyrl-RS/index.cjs +97 -0
- package/locales/sr-Cyrl-RS/index.d.cts +3 -0
- package/locales/sr-Cyrl-RS/index.esm.d.mts +3 -0
- package/locales/sr-Cyrl-RS/index.esm.mjs +95 -0
- package/locales/sr-Cyrl-RS/package.json +19 -0
- package/locales/sr-Latn-RS/index.cjs +97 -0
- package/locales/sr-Latn-RS/index.d.cts +3 -0
- package/locales/sr-Latn-RS/index.esm.d.mts +3 -0
- package/locales/sr-Latn-RS/index.esm.mjs +95 -0
- package/locales/sr-Latn-RS/package.json +19 -0
- package/locales/sv/index.cjs +97 -0
- package/locales/sv/index.d.cts +3 -0
- package/locales/sv/index.esm.d.mts +3 -0
- package/locales/sv/index.esm.mjs +95 -0
- package/locales/sv/package.json +19 -0
- package/locales/tr/index.cjs +97 -0
- package/locales/tr/index.d.cts +3 -0
- package/locales/tr/index.esm.d.mts +3 -0
- package/locales/tr/index.esm.mjs +95 -0
- package/locales/tr/package.json +19 -0
- package/locales/uk/index.cjs +97 -0
- package/locales/uk/index.d.cts +3 -0
- package/locales/uk/index.esm.d.mts +3 -0
- package/locales/uk/index.esm.mjs +95 -0
- package/locales/uk/package.json +19 -0
- package/locales/vi/index.cjs +97 -0
- package/locales/vi/index.d.cts +3 -0
- package/locales/vi/index.esm.d.mts +3 -0
- package/locales/vi/index.esm.mjs +95 -0
- package/locales/vi/package.json +19 -0
- package/locales/zh-Hans/index.cjs +97 -0
- package/locales/zh-Hans/index.d.cts +3 -0
- package/locales/zh-Hans/index.esm.d.mts +3 -0
- package/locales/zh-Hans/index.esm.mjs +95 -0
- package/locales/zh-Hans/package.json +19 -0
- package/locales/zh-Hant/index.cjs +97 -0
- package/locales/zh-Hant/index.d.cts +3 -0
- package/locales/zh-Hant/index.esm.d.mts +3 -0
- package/locales/zh-Hant/index.esm.mjs +95 -0
- package/locales/zh-Hant/package.json +19 -0
- package/package.json +154 -0
- package/src/components/MantineReactTable.tsx +37 -0
- package/src/components/body/MRT_TableBody.module.css +42 -0
- package/src/components/body/MRT_TableBody.tsx +215 -0
- package/src/components/body/MRT_TableBodyCell.module.css +107 -0
- package/src/components/body/MRT_TableBodyCell.tsx +351 -0
- package/src/components/body/MRT_TableBodyCellValue.tsx +113 -0
- package/src/components/body/MRT_TableBodyEmptyRow.tsx +110 -0
- package/src/components/body/MRT_TableBodyRow.module.css +252 -0
- package/src/components/body/MRT_TableBodyRow.tsx +263 -0
- package/src/components/body/MRT_TableBodyRowGrabHandle.tsx +58 -0
- package/src/components/body/MRT_TableBodyRowPinButton.tsx +58 -0
- package/src/components/body/MRT_TableDetailPanel.module.css +35 -0
- package/src/components/body/MRT_TableDetailPanel.tsx +131 -0
- package/src/components/buttons/MRT_ColumnPinningButtons.module.css +11 -0
- package/src/components/buttons/MRT_ColumnPinningButtons.tsx +68 -0
- package/src/components/buttons/MRT_CopyButton.module.css +27 -0
- package/src/components/buttons/MRT_CopyButton.tsx +83 -0
- package/src/components/buttons/MRT_EditActionButtons.module.css +4 -0
- package/src/components/buttons/MRT_EditActionButtons.tsx +128 -0
- package/src/components/buttons/MRT_ExpandAllButton.module.css +26 -0
- package/src/components/buttons/MRT_ExpandAllButton.tsx +83 -0
- package/src/components/buttons/MRT_ExpandButton.module.css +37 -0
- package/src/components/buttons/MRT_ExpandButton.tsx +120 -0
- package/src/components/buttons/MRT_GrabHandleButton.module.css +6 -0
- package/src/components/buttons/MRT_GrabHandleButton.tsx +64 -0
- package/src/components/buttons/MRT_RowPinButton.tsx +83 -0
- package/src/components/buttons/MRT_ShowHideColumnsButton.tsx +45 -0
- package/src/components/buttons/MRT_ToggleDensePaddingButton.tsx +65 -0
- package/src/components/buttons/MRT_ToggleFiltersButton.tsx +44 -0
- package/src/components/buttons/MRT_ToggleFullScreenButton.tsx +58 -0
- package/src/components/buttons/MRT_ToggleGlobalFilterButton.tsx +51 -0
- package/src/components/buttons/MRT_ToggleRowActionMenuButton.tsx +86 -0
- package/src/components/footer/MRT_TableFooter.module.css +17 -0
- package/src/components/footer/MRT_TableFooter.tsx +72 -0
- package/src/components/footer/MRT_TableFooterCell.module.css +50 -0
- package/src/components/footer/MRT_TableFooterCell.tsx +122 -0
- package/src/components/footer/MRT_TableFooterRow.module.css +10 -0
- package/src/components/footer/MRT_TableFooterRow.tsx +94 -0
- package/src/components/head/MRT_TableHead.module.css +32 -0
- package/src/components/head/MRT_TableHead.tsx +108 -0
- package/src/components/head/MRT_TableHeadCell.module.css +163 -0
- package/src/components/head/MRT_TableHeadCell.tsx +322 -0
- package/src/components/head/MRT_TableHeadCellFilterContainer.module.css +5 -0
- package/src/components/head/MRT_TableHeadCellFilterContainer.tsx +147 -0
- package/src/components/head/MRT_TableHeadCellFilterLabel.module.css +14 -0
- package/src/components/head/MRT_TableHeadCellFilterLabel.tsx +171 -0
- package/src/components/head/MRT_TableHeadCellGrabHandle.tsx +81 -0
- package/src/components/head/MRT_TableHeadCellResizeHandle.module.css +44 -0
- package/src/components/head/MRT_TableHeadCellResizeHandle.tsx +67 -0
- package/src/components/head/MRT_TableHeadCellSortLabel.module.css +22 -0
- package/src/components/head/MRT_TableHeadCellSortLabel.tsx +89 -0
- package/src/components/head/MRT_TableHeadRow.module.css +12 -0
- package/src/components/head/MRT_TableHeadRow.tsx +87 -0
- package/src/components/inputs/MRT_EditCellTextInput.tsx +218 -0
- package/src/components/inputs/MRT_FilterCheckBox.module.css +4 -0
- package/src/components/inputs/MRT_FilterCheckbox.tsx +79 -0
- package/src/components/inputs/MRT_FilterRangeFields.module.css +5 -0
- package/src/components/inputs/MRT_FilterRangeFields.tsx +35 -0
- package/src/components/inputs/MRT_FilterRangeSlider.module.css +6 -0
- package/src/components/inputs/MRT_FilterRangeSlider.tsx +106 -0
- package/src/components/inputs/MRT_FilterTextInput.module.css +27 -0
- package/src/components/inputs/MRT_FilterTextInput.tsx +417 -0
- package/src/components/inputs/MRT_GlobalFilterTextInput.module.css +11 -0
- package/src/components/inputs/MRT_GlobalFilterTextInput.tsx +141 -0
- package/src/components/inputs/MRT_SelectCheckbox.tsx +137 -0
- package/src/components/menus/MRT_ColumnActionMenu.module.css +7 -0
- package/src/components/menus/MRT_ColumnActionMenu.tsx +287 -0
- package/src/components/menus/MRT_FilterOptionMenu.module.css +6 -0
- package/src/components/menus/MRT_FilterOptionMenu.tsx +274 -0
- package/src/components/menus/MRT_RowActionMenu.tsx +74 -0
- package/src/components/menus/MRT_ShowHideColumnsMenu.module.css +10 -0
- package/src/components/menus/MRT_ShowHideColumnsMenu.tsx +135 -0
- package/src/components/menus/MRT_ShowHideColumnsMenuItems.module.css +35 -0
- package/src/components/menus/MRT_ShowHideColumnsMenuItems.tsx +170 -0
- package/src/components/modals/MRT_EditRowModal.tsx +97 -0
- package/src/components/table/MRT_Table.module.css +7 -0
- package/src/components/table/MRT_Table.tsx +110 -0
- package/src/components/table/MRT_TableContainer.module.css +20 -0
- package/src/components/table/MRT_TableContainer.tsx +109 -0
- package/src/components/table/MRT_TablePaper.module.css +88 -0
- package/src/components/table/MRT_TablePaper.tsx +92 -0
- package/src/components/toolbar/MRT_BottomToolbar.module.css +40 -0
- package/src/components/toolbar/MRT_BottomToolbar.tsx +100 -0
- package/src/components/toolbar/MRT_ProgressBar.module.css +10 -0
- package/src/components/toolbar/MRT_ProgressBar.tsx +53 -0
- package/src/components/toolbar/MRT_TablePagination.module.css +20 -0
- package/src/components/toolbar/MRT_TablePagination.tsx +166 -0
- package/src/components/toolbar/MRT_ToolbarAlertBanner.module.css +37 -0
- package/src/components/toolbar/MRT_ToolbarAlertBanner.tsx +168 -0
- package/src/components/toolbar/MRT_ToolbarDropZone.module.css +23 -0
- package/src/components/toolbar/MRT_ToolbarDropZone.tsx +67 -0
- package/src/components/toolbar/MRT_ToolbarInternalButtons.module.css +6 -0
- package/src/components/toolbar/MRT_ToolbarInternalButtons.tsx +73 -0
- package/src/components/toolbar/MRT_TopToolbar.module.css +24 -0
- package/src/components/toolbar/MRT_TopToolbar.tsx +128 -0
- package/src/components/toolbar/common.styles.module.css +10 -0
- package/src/fns/aggregationFns.ts +3 -0
- package/src/fns/filterFns.ts +272 -0
- package/src/fns/sortingFns.ts +34 -0
- package/src/hooks/display-columns/getMRT_RowActionsColumnDef.tsx +23 -0
- package/src/hooks/display-columns/getMRT_RowDragColumnDef.tsx +30 -0
- package/src/hooks/display-columns/getMRT_RowExpandColumnDef.tsx +92 -0
- package/src/hooks/display-columns/getMRT_RowNumbersColumnDef.tsx +30 -0
- package/src/hooks/display-columns/getMRT_RowPinningColumnDef.tsx +24 -0
- package/src/hooks/display-columns/getMRT_RowSelectColumnDef.tsx +34 -0
- package/src/hooks/display-columns/getMRT_RowSpacerColumnDef.tsx +34 -0
- package/src/hooks/useMRT_ColumnVirtualizer.ts +129 -0
- package/src/hooks/useMRT_Effects.ts +105 -0
- package/src/hooks/useMRT_RowVirtualizer.ts +95 -0
- package/src/hooks/useMRT_Rows.ts +46 -0
- package/src/hooks/useMRT_TableInstance.ts +314 -0
- package/src/hooks/useMRT_TableOptions.ts +264 -0
- package/src/hooks/useMantineReactTable.ts +14 -0
- package/src/icons.ts +73 -0
- package/src/index.ts +90 -0
- package/src/locales/ar.ts +96 -0
- package/src/locales/az.ts +96 -0
- package/src/locales/bg.ts +96 -0
- package/src/locales/cs.ts +97 -0
- package/src/locales/da.ts +96 -0
- package/src/locales/de.ts +96 -0
- package/src/locales/el.ts +96 -0
- package/src/locales/en.ts +96 -0
- package/src/locales/es.ts +96 -0
- package/src/locales/et.ts +97 -0
- package/src/locales/fa.ts +96 -0
- package/src/locales/fi.ts +97 -0
- package/src/locales/fr.ts +96 -0
- package/src/locales/he.ts +96 -0
- package/src/locales/hr.ts +96 -0
- package/src/locales/hu.ts +96 -0
- package/src/locales/hy.ts +96 -0
- package/src/locales/id.ts +97 -0
- package/src/locales/it.ts +96 -0
- package/src/locales/ja.ts +96 -0
- package/src/locales/ko.ts +96 -0
- package/src/locales/nl.ts +96 -0
- package/src/locales/no.ts +97 -0
- package/src/locales/np.ts +97 -0
- package/src/locales/pl.ts +96 -0
- package/src/locales/pt-BR.ts +96 -0
- package/src/locales/pt.ts +96 -0
- package/src/locales/ro.ts +96 -0
- package/src/locales/ru.ts +96 -0
- package/src/locales/sk.ts +97 -0
- package/src/locales/sr-Cyrl-RS.ts +96 -0
- package/src/locales/sr-Latn-RS.ts +96 -0
- package/src/locales/sv.ts +96 -0
- package/src/locales/tr.ts +96 -0
- package/src/locales/uk.ts +96 -0
- package/src/locales/vi.ts +96 -0
- package/src/locales/zh-Hans.ts +95 -0
- package/src/locales/zh-Hant.ts +95 -0
- package/src/types.ts +1276 -0
- package/src/typings.d.ts +1 -0
- package/src/utils/column.utils.ts +124 -0
- package/src/utils/displayColumn.utils.ts +153 -0
- package/src/utils/row.utils.ts +263 -0
- package/src/utils/style.utils.ts +32 -0
- package/src/utils/tanstack.helpers.ts +66 -0
- package/src/utils/utils.ts +4 -0
- package/src/utils/virtualization.utils.ts +19 -0
- package/styles.css +1320 -0
|
@@ -0,0 +1,1488 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { PaginationProps, ActionIconProps, UnstyledButtonProps, SelectProps, TextInputProps, AutocompleteProps, CheckboxProps, MultiSelectProps, RangeSliderProps, TableTdProps, TableThProps, BoxProps, ModalProps, HighlightProps, LoadingOverlayProps, PaperProps, ProgressProps, RadioProps, SwitchProps, SkeletonProps, TableTbodyProps, TableTrProps, TableTfootProps, TableTheadProps, TableProps, BadgeProps, AlertProps, FlexProps, MenuProps, MantineTheme } from '@mantine/core';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { MutableRefObject, HTMLProps, RefObject, Dispatch, SetStateAction, ReactNode, DragEventHandler, MouseEvent, ChangeEvent, JSX } from 'react';
|
|
5
|
+
import * as _tanstack_react_table from '@tanstack/react-table';
|
|
6
|
+
import { Row, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowSelectionState, SortingState, Updater, VisibilityState, AccessorFn, DeepKeys, DeepValue, Table, TableState, ColumnDef, Column, Header, HeaderGroup, Cell, AggregationFn, SortingFn, FilterFn, OnChangeFn, TableOptions, RowPinningPosition, Renderable } from '@tanstack/react-table';
|
|
7
|
+
import { VirtualItem, VirtualizerOptions, Virtualizer } from '@tanstack/react-virtual';
|
|
8
|
+
import { DateInputProps } from '@mantine/dates';
|
|
9
|
+
import { RankingInfo } from '@tanstack/match-sorter-utils';
|
|
10
|
+
import * as _tabler_icons_react from '@tabler/icons-react';
|
|
11
|
+
|
|
12
|
+
declare const MRT_AggregationFns: {
|
|
13
|
+
sum: _tanstack_react_table.AggregationFn<any>;
|
|
14
|
+
min: _tanstack_react_table.AggregationFn<any>;
|
|
15
|
+
max: _tanstack_react_table.AggregationFn<any>;
|
|
16
|
+
extent: _tanstack_react_table.AggregationFn<any>;
|
|
17
|
+
mean: _tanstack_react_table.AggregationFn<any>;
|
|
18
|
+
median: _tanstack_react_table.AggregationFn<any>;
|
|
19
|
+
unique: _tanstack_react_table.AggregationFn<any>;
|
|
20
|
+
uniqueCount: _tanstack_react_table.AggregationFn<any>;
|
|
21
|
+
count: _tanstack_react_table.AggregationFn<any>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
declare const MRT_FilterFns: {
|
|
25
|
+
between: {
|
|
26
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
|
|
27
|
+
autoRemove(val: any): boolean;
|
|
28
|
+
};
|
|
29
|
+
betweenInclusive: {
|
|
30
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValues: [number | string, number | string]): boolean;
|
|
31
|
+
autoRemove(val: any): boolean;
|
|
32
|
+
};
|
|
33
|
+
contains: {
|
|
34
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
35
|
+
autoRemove(val: any): boolean;
|
|
36
|
+
};
|
|
37
|
+
empty: {
|
|
38
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, _filterValue: number | string): boolean;
|
|
39
|
+
autoRemove(val: any): boolean;
|
|
40
|
+
};
|
|
41
|
+
endsWith: {
|
|
42
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
43
|
+
autoRemove(val: any): boolean;
|
|
44
|
+
};
|
|
45
|
+
equals: {
|
|
46
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
47
|
+
autoRemove(val: any): boolean;
|
|
48
|
+
};
|
|
49
|
+
fuzzy: {
|
|
50
|
+
<TData extends MRT_RowData>(row: Row<TData>, columnId: string, filterValue: number | string, addMeta: (item: RankingInfo) => void): boolean;
|
|
51
|
+
autoRemove(val: any): boolean;
|
|
52
|
+
};
|
|
53
|
+
greaterThan: {
|
|
54
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
55
|
+
autoRemove(val: any): boolean;
|
|
56
|
+
};
|
|
57
|
+
greaterThanOrEqualTo: {
|
|
58
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
59
|
+
autoRemove(val: any): boolean;
|
|
60
|
+
};
|
|
61
|
+
lessThan: {
|
|
62
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
63
|
+
autoRemove(val: any): boolean;
|
|
64
|
+
};
|
|
65
|
+
lessThanOrEqualTo: {
|
|
66
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
67
|
+
autoRemove(val: any): boolean;
|
|
68
|
+
};
|
|
69
|
+
notEmpty: {
|
|
70
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, _filterValue: number | string): boolean;
|
|
71
|
+
autoRemove(val: any): boolean;
|
|
72
|
+
};
|
|
73
|
+
notEquals: {
|
|
74
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
75
|
+
autoRemove(val: any): boolean;
|
|
76
|
+
};
|
|
77
|
+
startsWith: {
|
|
78
|
+
<TData extends MRT_RowData>(row: Row<TData>, id: string, filterValue: number | string): boolean;
|
|
79
|
+
autoRemove(val: any): boolean;
|
|
80
|
+
};
|
|
81
|
+
includesString: _tanstack_react_table.FilterFn<any>;
|
|
82
|
+
includesStringSensitive: _tanstack_react_table.FilterFn<any>;
|
|
83
|
+
equalsString: _tanstack_react_table.FilterFn<any>;
|
|
84
|
+
arrIncludes: _tanstack_react_table.FilterFn<any>;
|
|
85
|
+
arrIncludesAll: _tanstack_react_table.FilterFn<any>;
|
|
86
|
+
arrIncludesSome: _tanstack_react_table.FilterFn<any>;
|
|
87
|
+
weakEquals: _tanstack_react_table.FilterFn<any>;
|
|
88
|
+
inNumberRange: _tanstack_react_table.FilterFn<any>;
|
|
89
|
+
};
|
|
90
|
+
declare function localizedFilterOption(localization: MRT_Localization, option: MRT_FilterOption): string;
|
|
91
|
+
|
|
92
|
+
declare const MRT_SortingFns: {
|
|
93
|
+
fuzzy: <TData extends MRT_RowData>(rowA: Row<TData>, rowB: Row<TData>, columnId: string) => number;
|
|
94
|
+
alphanumeric: _tanstack_react_table.SortingFn<any>;
|
|
95
|
+
alphanumericCaseSensitive: _tanstack_react_table.SortingFn<any>;
|
|
96
|
+
text: _tanstack_react_table.SortingFn<any>;
|
|
97
|
+
textCaseSensitive: _tanstack_react_table.SortingFn<any>;
|
|
98
|
+
datetime: _tanstack_react_table.SortingFn<any>;
|
|
99
|
+
basic: _tanstack_react_table.SortingFn<any>;
|
|
100
|
+
};
|
|
101
|
+
declare const rankGlobalFuzzy: <TData extends MRT_RowData>(rowA: MRT_Row<TData>, rowB: MRT_Row<TData>) => number;
|
|
102
|
+
|
|
103
|
+
declare const MRT_Default_Icons: {
|
|
104
|
+
readonly IconArrowAutofitContent: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
105
|
+
readonly IconArrowsSort: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
106
|
+
readonly IconBaselineDensityLarge: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
107
|
+
readonly IconBaselineDensityMedium: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
108
|
+
readonly IconBaselineDensitySmall: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
109
|
+
readonly IconBoxMultiple: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
110
|
+
readonly IconChevronDown: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
111
|
+
readonly IconChevronLeft: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
112
|
+
readonly IconChevronLeftPipe: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
113
|
+
readonly IconChevronRight: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
114
|
+
readonly IconChevronRightPipe: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
115
|
+
readonly IconChevronsDown: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
116
|
+
readonly IconCircleX: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
117
|
+
readonly IconClearAll: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
118
|
+
readonly IconColumns: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
119
|
+
readonly IconDeviceFloppy: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
120
|
+
readonly IconDots: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
121
|
+
readonly IconDotsVertical: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
122
|
+
readonly IconEdit: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
123
|
+
readonly IconEyeOff: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
124
|
+
readonly IconFilter: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
125
|
+
readonly IconFilterCog: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
126
|
+
readonly IconFilterOff: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
127
|
+
readonly IconGripHorizontal: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
128
|
+
readonly IconMaximize: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
129
|
+
readonly IconMinimize: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
130
|
+
readonly IconPinned: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
131
|
+
readonly IconPinnedOff: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
132
|
+
readonly IconSearch: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
133
|
+
readonly IconSearchOff: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
134
|
+
readonly IconSortAscending: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
135
|
+
readonly IconSortDescending: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
136
|
+
readonly IconX: react.ForwardRefExoticComponent<_tabler_icons_react.IconProps & react.RefAttributes<_tabler_icons_react.Icon>>;
|
|
137
|
+
};
|
|
138
|
+
type MRT_Icons = Record<keyof typeof MRT_Default_Icons, any>;
|
|
139
|
+
|
|
140
|
+
type LiteralUnion<T extends U, U = string> = (Record<never, never> & U) | T;
|
|
141
|
+
type Prettify<T> = {
|
|
142
|
+
[K in keyof T]: T[K];
|
|
143
|
+
} & unknown;
|
|
144
|
+
type Xor<A, B> = Prettify<{
|
|
145
|
+
[k in keyof A]?: never;
|
|
146
|
+
} & B> | Prettify<{
|
|
147
|
+
[k in keyof B]?: never;
|
|
148
|
+
} & A>;
|
|
149
|
+
type HTMLPropsRef<T extends HTMLElement> = {
|
|
150
|
+
ref?: MutableRefObject<null | T> | null;
|
|
151
|
+
} & Omit<HTMLProps<T>, 'color' | 'data' | 'label' | 'ref' | 'size' | 'style' | 'type'>;
|
|
152
|
+
type MantineShade = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
153
|
+
type MRT_PaginationProps = {
|
|
154
|
+
rowsPerPageOptions?: string[];
|
|
155
|
+
showRowsPerPage?: boolean;
|
|
156
|
+
} & Partial<PaginationProps>;
|
|
157
|
+
type MRT_DensityState = 'lg' | 'md' | 'sm' | 'xl' | 'xs';
|
|
158
|
+
type MRT_ColumnFilterFnsState = Record<string, MRT_FilterOption>;
|
|
159
|
+
type MRT_RowData = Record<string, any>;
|
|
160
|
+
type MRT_CellValue = unknown;
|
|
161
|
+
type MRT_ColumnFiltersState = ColumnFiltersState;
|
|
162
|
+
type MRT_ColumnOrderState = ColumnOrderState;
|
|
163
|
+
type MRT_ColumnPinningState = ColumnPinningState;
|
|
164
|
+
type MRT_ColumnSizingInfoState = ColumnSizingInfoState;
|
|
165
|
+
type MRT_ColumnSizingState = ColumnSizingState;
|
|
166
|
+
type MRT_ExpandedState = ExpandedState;
|
|
167
|
+
type MRT_GroupingState = GroupingState;
|
|
168
|
+
type MRT_PaginationState = PaginationState;
|
|
169
|
+
type MRT_RowSelectionState = RowSelectionState;
|
|
170
|
+
type MRT_SortingState = SortingState;
|
|
171
|
+
type MRT_Updater<T> = Updater<T>;
|
|
172
|
+
type MRT_VirtualItem = VirtualItem;
|
|
173
|
+
type MRT_VisibilityState = VisibilityState;
|
|
174
|
+
type MRT_VirtualizerOptions<TScrollElement extends Element | Window = Element | Window, TItemElement extends Element = Element> = VirtualizerOptions<TScrollElement, TItemElement>;
|
|
175
|
+
type MRT_ColumnVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement> = {
|
|
176
|
+
virtualColumns: MRT_VirtualItem[];
|
|
177
|
+
virtualPaddingLeft?: number;
|
|
178
|
+
virtualPaddingRight?: number;
|
|
179
|
+
} & Virtualizer<TScrollElement, TItemElement>;
|
|
180
|
+
type MRT_RowVirtualizer<TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement> = {
|
|
181
|
+
virtualRows: MRT_VirtualItem[];
|
|
182
|
+
} & Virtualizer<TScrollElement, TItemElement>;
|
|
183
|
+
type MRT_ColumnHelper<TData extends MRT_RowData> = {
|
|
184
|
+
accessor: <TAccessor extends AccessorFn<TData> | DeepKeys<TData>, TValue extends TAccessor extends AccessorFn<TData, infer TReturn> ? TReturn : TAccessor extends DeepKeys<TData> ? DeepValue<TData, TAccessor> : never>(accessor: TAccessor, column: MRT_DisplayColumnDef<TData, TValue>) => MRT_ColumnDef<TData, TValue>;
|
|
185
|
+
display: (column: MRT_DisplayColumnDef<TData>) => MRT_ColumnDef<TData>;
|
|
186
|
+
group: (column: MRT_GroupColumnDef<TData>) => MRT_ColumnDef<TData>;
|
|
187
|
+
};
|
|
188
|
+
interface MRT_Localization {
|
|
189
|
+
actions: string;
|
|
190
|
+
and: string;
|
|
191
|
+
cancel: string;
|
|
192
|
+
changeFilterMode: string;
|
|
193
|
+
changeSearchMode: string;
|
|
194
|
+
clearFilter: string;
|
|
195
|
+
clearSearch: string;
|
|
196
|
+
clearSelection: string;
|
|
197
|
+
clearSort: string;
|
|
198
|
+
clickToCopy: string;
|
|
199
|
+
collapse: string;
|
|
200
|
+
collapseAll: string;
|
|
201
|
+
columnActions: string;
|
|
202
|
+
copiedToClipboard: string;
|
|
203
|
+
copy: string;
|
|
204
|
+
dropToGroupBy: string;
|
|
205
|
+
edit: string;
|
|
206
|
+
expand: string;
|
|
207
|
+
expandAll: string;
|
|
208
|
+
filterArrIncludes: string;
|
|
209
|
+
filterArrIncludesAll: string;
|
|
210
|
+
filterArrIncludesSome: string;
|
|
211
|
+
filterBetween: string;
|
|
212
|
+
filterBetweenInclusive: string;
|
|
213
|
+
filterByColumn: string;
|
|
214
|
+
filterContains: string;
|
|
215
|
+
filterEmpty: string;
|
|
216
|
+
filterEndsWith: string;
|
|
217
|
+
filterEquals: string;
|
|
218
|
+
filterEqualsString: string;
|
|
219
|
+
filterFuzzy: string;
|
|
220
|
+
filterGreaterThan: string;
|
|
221
|
+
filterGreaterThanOrEqualTo: string;
|
|
222
|
+
filterIncludesString: string;
|
|
223
|
+
filterIncludesStringSensitive: string;
|
|
224
|
+
filteringByColumn: string;
|
|
225
|
+
filterInNumberRange: string;
|
|
226
|
+
filterLessThan: string;
|
|
227
|
+
filterLessThanOrEqualTo: string;
|
|
228
|
+
filterMode: string;
|
|
229
|
+
filterNotEmpty: string;
|
|
230
|
+
filterNotEquals: string;
|
|
231
|
+
filterStartsWith: string;
|
|
232
|
+
filterWeakEquals: string;
|
|
233
|
+
goToFirstPage: string;
|
|
234
|
+
goToLastPage: string;
|
|
235
|
+
goToNextPage: string;
|
|
236
|
+
goToPreviousPage: string;
|
|
237
|
+
grab: string;
|
|
238
|
+
groupByColumn: string;
|
|
239
|
+
groupedBy: string;
|
|
240
|
+
hideAll: string;
|
|
241
|
+
hideColumn: string;
|
|
242
|
+
max: string;
|
|
243
|
+
min: string;
|
|
244
|
+
move: string;
|
|
245
|
+
noRecordsToDisplay: string;
|
|
246
|
+
noResultsFound: string;
|
|
247
|
+
of: string;
|
|
248
|
+
or: string;
|
|
249
|
+
pin: string;
|
|
250
|
+
pinToLeft: string;
|
|
251
|
+
pinToRight: string;
|
|
252
|
+
resetColumnSize: string;
|
|
253
|
+
resetOrder: string;
|
|
254
|
+
rowActions: string;
|
|
255
|
+
rowNumber: string;
|
|
256
|
+
rowNumbers: string;
|
|
257
|
+
rowsPerPage: string;
|
|
258
|
+
save: string;
|
|
259
|
+
search: string;
|
|
260
|
+
select: string;
|
|
261
|
+
selectedCountOfRowCountRowsSelected: string;
|
|
262
|
+
showAll: string;
|
|
263
|
+
showAllColumns: string;
|
|
264
|
+
showHideColumns: string;
|
|
265
|
+
showHideFilters: string;
|
|
266
|
+
showHideSearch: string;
|
|
267
|
+
sortByColumnAsc: string;
|
|
268
|
+
sortByColumnDesc: string;
|
|
269
|
+
sortedByColumnAsc: string;
|
|
270
|
+
sortedByColumnDesc: string;
|
|
271
|
+
thenBy: string;
|
|
272
|
+
toggleDensity: string;
|
|
273
|
+
toggleFullScreen: string;
|
|
274
|
+
toggleSelectAll: string;
|
|
275
|
+
toggleSelectRow: string;
|
|
276
|
+
toggleVisibility: string;
|
|
277
|
+
ungroupByColumn: string;
|
|
278
|
+
unpin: string;
|
|
279
|
+
unpinAll: string;
|
|
280
|
+
}
|
|
281
|
+
interface MRT_RowModel<TData extends MRT_RowData> {
|
|
282
|
+
flatRows: MRT_Row<TData>[];
|
|
283
|
+
rows: MRT_Row<TData>[];
|
|
284
|
+
rowsById: {
|
|
285
|
+
[key: string]: MRT_Row<TData>;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
type MRT_TableInstance<TData extends MRT_RowData> = {
|
|
289
|
+
getAllColumns: () => MRT_Column<TData>[];
|
|
290
|
+
getAllFlatColumns: () => MRT_Column<TData>[];
|
|
291
|
+
getAllLeafColumns: () => MRT_Column<TData>[];
|
|
292
|
+
getBottomRows: () => MRT_Row<TData>[];
|
|
293
|
+
getCenterLeafColumns: () => MRT_Column<TData>[];
|
|
294
|
+
getCenterRows: () => MRT_Row<TData>[];
|
|
295
|
+
getColumn: (columnId: string) => MRT_Column<TData>;
|
|
296
|
+
getExpandedRowModel: () => MRT_RowModel<TData>;
|
|
297
|
+
getFilteredSelectedRowModel: () => MRT_RowModel<TData>;
|
|
298
|
+
getFlatHeaders: () => MRT_Header<TData>[];
|
|
299
|
+
getHeaderGroups: () => MRT_HeaderGroup<TData>[];
|
|
300
|
+
getLeftLeafColumns: () => MRT_Column<TData>[];
|
|
301
|
+
getPaginationRowModel: () => MRT_RowModel<TData>;
|
|
302
|
+
getPreFilteredRowModel: () => MRT_RowModel<TData>;
|
|
303
|
+
getPrePaginationRowModel: () => MRT_RowModel<TData>;
|
|
304
|
+
getRightLeafColumns: () => MRT_Column<TData>[];
|
|
305
|
+
getRowModel: () => MRT_RowModel<TData>;
|
|
306
|
+
getSelectedRowModel: () => MRT_RowModel<TData>;
|
|
307
|
+
getState: () => MRT_TableState<TData>;
|
|
308
|
+
getTopRows: () => MRT_Row<TData>[];
|
|
309
|
+
options: MRT_StatefulTableOptions<TData>;
|
|
310
|
+
refs: {
|
|
311
|
+
bottomToolbarRef: RefObject<HTMLDivElement | null>;
|
|
312
|
+
editInputRefs: RefObject<Record<string, HTMLInputElement>>;
|
|
313
|
+
filterInputRefs: RefObject<Record<string, HTMLInputElement>>;
|
|
314
|
+
lastSelectedRowId: RefObject<null | string>;
|
|
315
|
+
searchInputRef: RefObject<HTMLInputElement | null>;
|
|
316
|
+
tableContainerRef: RefObject<HTMLDivElement | null>;
|
|
317
|
+
tableFooterRef: RefObject<HTMLTableSectionElement | null>;
|
|
318
|
+
tableHeadCellRefs: RefObject<Record<string, HTMLTableCellElement>>;
|
|
319
|
+
tableHeadRef: RefObject<HTMLTableSectionElement | null>;
|
|
320
|
+
tablePaperRef: RefObject<HTMLDivElement | null>;
|
|
321
|
+
topToolbarRef: RefObject<HTMLDivElement | null>;
|
|
322
|
+
};
|
|
323
|
+
setColumnFilterFns: Dispatch<SetStateAction<MRT_ColumnFilterFnsState>>;
|
|
324
|
+
setCreatingRow: Dispatch<SetStateAction<MRT_Row<TData> | null | true>>;
|
|
325
|
+
setDensity: Dispatch<SetStateAction<MRT_DensityState>>;
|
|
326
|
+
setDraggingColumn: Dispatch<SetStateAction<MRT_Column<TData> | null>>;
|
|
327
|
+
setDraggingRow: Dispatch<SetStateAction<MRT_Row<TData> | null>>;
|
|
328
|
+
setEditingCell: Dispatch<SetStateAction<MRT_Cell<TData> | null>>;
|
|
329
|
+
setEditingRow: Dispatch<SetStateAction<MRT_Row<TData> | null>>;
|
|
330
|
+
setGlobalFilterFn: Dispatch<SetStateAction<MRT_FilterOption>>;
|
|
331
|
+
setHoveredColumn: Dispatch<SetStateAction<null | Partial<MRT_Column<TData>>>>;
|
|
332
|
+
setHoveredRow: Dispatch<SetStateAction<null | Partial<MRT_Row<TData>>>>;
|
|
333
|
+
setIsFullScreen: Dispatch<SetStateAction<boolean>>;
|
|
334
|
+
setShowAlertBanner: Dispatch<SetStateAction<boolean>>;
|
|
335
|
+
setShowColumnFilters: Dispatch<SetStateAction<boolean>>;
|
|
336
|
+
setShowGlobalFilter: Dispatch<SetStateAction<boolean>>;
|
|
337
|
+
setShowToolbarDropZone: Dispatch<SetStateAction<boolean>>;
|
|
338
|
+
} & Omit<Table<TData>, 'getAllColumns' | 'getAllFlatColumns' | 'getAllLeafColumns' | 'getBottomRows' | 'getCenterLeafColumns' | 'getCenterRows' | 'getColumn' | 'getExpandedRowModel' | 'getFlatHeaders' | 'getHeaderGroups' | 'getLeftLeafColumns' | 'getPaginationRowModel' | 'getPreFilteredRowModel' | 'getPrePaginationRowModel' | 'getRightLeafColumns' | 'getRowModel' | 'getSelectedRowModel' | 'getState' | 'getTopRows' | 'options'>;
|
|
339
|
+
type MRT_DefinedTableOptions<TData extends MRT_RowData> = {
|
|
340
|
+
icons: MRT_Icons;
|
|
341
|
+
localization: MRT_Localization;
|
|
342
|
+
} & Omit<MRT_TableOptions<TData>, 'icons' | 'localization'>;
|
|
343
|
+
type MRT_StatefulTableOptions<TData extends MRT_RowData> = {
|
|
344
|
+
state: Pick<MRT_TableState<TData>, 'columnFilterFns' | 'columnOrder' | 'columnSizingInfo' | 'creatingRow' | 'density' | 'draggingColumn' | 'draggingRow' | 'editingCell' | 'editingRow' | 'globalFilterFn' | 'grouping' | 'hoveredColumn' | 'hoveredRow' | 'isFullScreen' | 'pagination' | 'showAlertBanner' | 'showColumnFilters' | 'showGlobalFilter' | 'showToolbarDropZone'>;
|
|
345
|
+
} & MRT_DefinedTableOptions<TData>;
|
|
346
|
+
type MRT_TableState<TData extends MRT_RowData> = Prettify<{
|
|
347
|
+
columnFilterFns: MRT_ColumnFilterFnsState;
|
|
348
|
+
creatingRow: MRT_Row<TData> | null;
|
|
349
|
+
density: MRT_DensityState;
|
|
350
|
+
draggingColumn: MRT_Column<TData> | null;
|
|
351
|
+
draggingRow: MRT_Row<TData> | null;
|
|
352
|
+
editingCell: MRT_Cell<TData> | null;
|
|
353
|
+
editingRow: MRT_Row<TData> | null;
|
|
354
|
+
globalFilterFn: MRT_FilterOption;
|
|
355
|
+
hoveredColumn: null | Partial<MRT_Column<TData>>;
|
|
356
|
+
hoveredRow: null | Partial<MRT_Row<TData>>;
|
|
357
|
+
isFullScreen: boolean;
|
|
358
|
+
isLoading: boolean;
|
|
359
|
+
isSaving: boolean;
|
|
360
|
+
showAlertBanner: boolean;
|
|
361
|
+
showColumnFilters: boolean;
|
|
362
|
+
showGlobalFilter: boolean;
|
|
363
|
+
showLoadingOverlay: boolean;
|
|
364
|
+
showProgressBars: boolean;
|
|
365
|
+
showSkeletons: boolean;
|
|
366
|
+
showToolbarDropZone: boolean;
|
|
367
|
+
} & TableState>;
|
|
368
|
+
type MRT_ColumnDef<TData extends MRT_RowData, TValue = unknown> = {
|
|
369
|
+
/**
|
|
370
|
+
* Either an `accessorKey` or a combination of an `accessorFn` and `id` are required for a data column definition.
|
|
371
|
+
* Specify a function here to point to the correct property in the data object.
|
|
372
|
+
*
|
|
373
|
+
* @example accessorFn: (row) => row.username
|
|
374
|
+
*/
|
|
375
|
+
accessorFn?: (originalRow: TData) => any;
|
|
376
|
+
/**
|
|
377
|
+
* Either an `accessorKey` or a combination of an `accessorFn` and `id` are required for a data column definition.
|
|
378
|
+
* Specify which key in the row this column should use to access the correct data.
|
|
379
|
+
* Also supports Deep Key Dot Notation.
|
|
380
|
+
*
|
|
381
|
+
* @example accessorKey: 'username' //simple
|
|
382
|
+
* @example accessorKey: 'name.firstName' //deep key dot notation
|
|
383
|
+
*/
|
|
384
|
+
accessorKey?: ({} & string) | DeepKeys<TData>;
|
|
385
|
+
AggregatedCell?: (props: {
|
|
386
|
+
cell: MRT_Cell<TData, TValue>;
|
|
387
|
+
column: MRT_Column<TData, TValue>;
|
|
388
|
+
row: MRT_Row<TData>;
|
|
389
|
+
table: MRT_TableInstance<TData>;
|
|
390
|
+
}) => ReactNode;
|
|
391
|
+
aggregationFn?: Array<MRT_AggregationFn<TData>> | MRT_AggregationFn<TData>;
|
|
392
|
+
Cell?: (props: {
|
|
393
|
+
cell: MRT_Cell<TData, TValue>;
|
|
394
|
+
column: MRT_Column<TData, TValue>;
|
|
395
|
+
renderedCellValue: number | ReactNode | string;
|
|
396
|
+
renderedColumnIndex?: number;
|
|
397
|
+
renderedRowIndex?: number;
|
|
398
|
+
row: MRT_Row<TData>;
|
|
399
|
+
rowRef?: RefObject<HTMLTableRowElement | null>;
|
|
400
|
+
table: MRT_TableInstance<TData>;
|
|
401
|
+
}) => ReactNode;
|
|
402
|
+
/**
|
|
403
|
+
* Specify what type of column this is. Either `data`, `display`, or `group`. Defaults to `data`.
|
|
404
|
+
* Leave this blank if you are just creating a normal data column.
|
|
405
|
+
*
|
|
406
|
+
* @default 'data'
|
|
407
|
+
*
|
|
408
|
+
* @example columnDefType: 'display'
|
|
409
|
+
*/
|
|
410
|
+
columnDefType?: 'data' | 'display' | 'group';
|
|
411
|
+
columnFilterModeOptions?: Array<LiteralUnion<MRT_FilterOption & string>> | null;
|
|
412
|
+
columns?: MRT_ColumnDef<TData>[];
|
|
413
|
+
Edit?: (props: {
|
|
414
|
+
cell: MRT_Cell<TData, TValue>;
|
|
415
|
+
column: MRT_Column<TData, TValue>;
|
|
416
|
+
row: MRT_Row<TData>;
|
|
417
|
+
table: MRT_TableInstance<TData>;
|
|
418
|
+
}) => ReactNode;
|
|
419
|
+
editVariant?: 'multi-select' | 'select' | 'text';
|
|
420
|
+
enableCellHoverReveal?: boolean;
|
|
421
|
+
enableClickToCopy?: ((cell: MRT_Cell<TData>) => boolean) | boolean;
|
|
422
|
+
enableColumnActions?: boolean;
|
|
423
|
+
enableColumnDragging?: boolean;
|
|
424
|
+
enableColumnFilterModes?: boolean;
|
|
425
|
+
enableColumnOrdering?: boolean;
|
|
426
|
+
enableEditing?: ((row: MRT_Row<TData>) => boolean) | boolean;
|
|
427
|
+
enableFilterMatchHighlighting?: boolean;
|
|
428
|
+
Filter?: (props: {
|
|
429
|
+
column: MRT_Column<TData, TValue>;
|
|
430
|
+
header: MRT_Header<TData>;
|
|
431
|
+
rangeFilterIndex?: number;
|
|
432
|
+
table: MRT_TableInstance<TData>;
|
|
433
|
+
}) => ReactNode;
|
|
434
|
+
filterFn?: MRT_FilterFn<TData>;
|
|
435
|
+
filterTooltipValueFn?: MRT_FilterTooltipValueFn;
|
|
436
|
+
filterVariant?: 'autocomplete' | 'checkbox' | 'date' | 'date-range' | 'multi-select' | 'range' | 'range-slider' | 'select' | 'text';
|
|
437
|
+
Footer?: ((props: {
|
|
438
|
+
column: MRT_Column<TData, TValue>;
|
|
439
|
+
footer: MRT_Header<TData>;
|
|
440
|
+
table: MRT_TableInstance<TData>;
|
|
441
|
+
}) => ReactNode) | ReactNode;
|
|
442
|
+
/**
|
|
443
|
+
* footer must be a string. If you want custom JSX to render the footer, you can also specify a `Footer` option. (Capital F)
|
|
444
|
+
*/
|
|
445
|
+
footer?: string;
|
|
446
|
+
GroupedCell?: (props: {
|
|
447
|
+
cell: MRT_Cell<TData, TValue>;
|
|
448
|
+
column: MRT_Column<TData, TValue>;
|
|
449
|
+
row: MRT_Row<TData>;
|
|
450
|
+
table: MRT_TableInstance<TData>;
|
|
451
|
+
}) => ReactNode;
|
|
452
|
+
/**
|
|
453
|
+
* If `layoutMode` is `'grid'` or `'grid-no-grow'`, you can specify the flex grow value for individual columns to still grow and take up remaining space, or set to `false`/0 to not grow.
|
|
454
|
+
*/
|
|
455
|
+
grow?: boolean | number;
|
|
456
|
+
Header?: ((props: {
|
|
457
|
+
column: MRT_Column<TData, TValue>;
|
|
458
|
+
header: MRT_Header<TData>;
|
|
459
|
+
table: MRT_TableInstance<TData>;
|
|
460
|
+
}) => ReactNode) | ReactNode;
|
|
461
|
+
/**
|
|
462
|
+
* header must be a string. If you want custom JSX to render the header, you can also specify a `Header` option. (Capital H)
|
|
463
|
+
*/
|
|
464
|
+
header: string;
|
|
465
|
+
/**
|
|
466
|
+
* Either an `accessorKey` or a combination of an `accessorFn` and `id` are required for a data column definition.
|
|
467
|
+
*
|
|
468
|
+
* If you have also specified an `accessorFn`, MRT still needs to have a valid `id` to be able to identify the column uniquely.
|
|
469
|
+
*
|
|
470
|
+
* `id` defaults to the `accessorKey` or `header` if not specified.
|
|
471
|
+
*
|
|
472
|
+
* @default gets set to the same value as `accessorKey` by default
|
|
473
|
+
*/
|
|
474
|
+
id?: LiteralUnion<keyof TData & string>;
|
|
475
|
+
mantineColumnActionsButtonProps?: ((props: {
|
|
476
|
+
column: MRT_Column<TData, TValue>;
|
|
477
|
+
table: MRT_TableInstance<TData>;
|
|
478
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>);
|
|
479
|
+
mantineColumnDragHandleProps?: ((props: {
|
|
480
|
+
column: MRT_Column<TData, TValue>;
|
|
481
|
+
table: MRT_TableInstance<TData>;
|
|
482
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>);
|
|
483
|
+
mantineCopyButtonProps?: ((props: {
|
|
484
|
+
cell: MRT_Cell<TData, TValue>;
|
|
485
|
+
column: MRT_Column<TData, TValue>;
|
|
486
|
+
row: MRT_Row<TData>;
|
|
487
|
+
table: MRT_TableInstance<TData>;
|
|
488
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<UnstyledButtonProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<UnstyledButtonProps>);
|
|
489
|
+
mantineEditSelectProps?: ((props: {
|
|
490
|
+
cell: MRT_Cell<TData, TValue>;
|
|
491
|
+
column: MRT_Column<TData, TValue>;
|
|
492
|
+
row: MRT_Row<TData>;
|
|
493
|
+
table: MRT_TableInstance<TData>;
|
|
494
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<SelectProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<SelectProps>);
|
|
495
|
+
mantineEditTextInputProps?: ((props: {
|
|
496
|
+
cell: MRT_Cell<TData, TValue>;
|
|
497
|
+
column: MRT_Column<TData, TValue>;
|
|
498
|
+
row: MRT_Row<TData>;
|
|
499
|
+
table: MRT_TableInstance<TData>;
|
|
500
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>);
|
|
501
|
+
mantineFilterAutocompleteProps?: ((props: {
|
|
502
|
+
column: MRT_Column<TData, TValue>;
|
|
503
|
+
rangeFilterIndex?: number;
|
|
504
|
+
table: MRT_TableInstance<TData>;
|
|
505
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<AutocompleteProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<AutocompleteProps>);
|
|
506
|
+
mantineFilterCheckboxProps?: ((props: {
|
|
507
|
+
column: MRT_Column<TData, TValue>;
|
|
508
|
+
table: MRT_TableInstance<TData>;
|
|
509
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<CheckboxProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<CheckboxProps>);
|
|
510
|
+
mantineFilterDateInputProps?: ((props: {
|
|
511
|
+
column: MRT_Column<TData, TValue>;
|
|
512
|
+
rangeFilterIndex?: number;
|
|
513
|
+
table: MRT_TableInstance<TData>;
|
|
514
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<DateInputProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<DateInputProps>);
|
|
515
|
+
mantineFilterMultiSelectProps?: ((props: {
|
|
516
|
+
column: MRT_Column<TData, TValue>;
|
|
517
|
+
rangeFilterIndex?: number;
|
|
518
|
+
table: MRT_TableInstance<TData>;
|
|
519
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<MultiSelectProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<MultiSelectProps>);
|
|
520
|
+
mantineFilterRangeSliderProps?: ((props: {
|
|
521
|
+
column: MRT_Column<TData, TValue>;
|
|
522
|
+
rangeFilterIndex?: number;
|
|
523
|
+
table: MRT_TableInstance<TData>;
|
|
524
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<RangeSliderProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<RangeSliderProps>);
|
|
525
|
+
mantineFilterSelectProps?: ((props: {
|
|
526
|
+
column: MRT_Column<TData, TValue>;
|
|
527
|
+
rangeFilterIndex?: number;
|
|
528
|
+
table: MRT_TableInstance<TData>;
|
|
529
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<SelectProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<SelectProps>);
|
|
530
|
+
mantineFilterTextInputProps?: ((props: {
|
|
531
|
+
column: MRT_Column<TData, TValue>;
|
|
532
|
+
rangeFilterIndex?: number;
|
|
533
|
+
table: MRT_TableInstance<TData>;
|
|
534
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>);
|
|
535
|
+
mantineTableBodyCellProps?: ((props: {
|
|
536
|
+
cell: MRT_Cell<TData, TValue>;
|
|
537
|
+
column: MRT_Column<TData, TValue>;
|
|
538
|
+
renderedRowIndex?: number;
|
|
539
|
+
row: MRT_Row<TData>;
|
|
540
|
+
table: MRT_TableInstance<TData>;
|
|
541
|
+
}) => HTMLPropsRef<HTMLTableCellElement> & TableTdProps) | (HTMLPropsRef<HTMLTableCellElement> & TableTdProps);
|
|
542
|
+
mantineTableFooterCellProps?: ((props: {
|
|
543
|
+
column: MRT_Column<TData, TValue>;
|
|
544
|
+
table: MRT_TableInstance<TData>;
|
|
545
|
+
}) => HTMLPropsRef<HTMLTableCellElement> & TableThProps) | (HTMLPropsRef<HTMLTableCellElement> & TableThProps);
|
|
546
|
+
mantineTableHeadCellProps?: ((props: {
|
|
547
|
+
column: MRT_Column<TData, TValue>;
|
|
548
|
+
table: MRT_TableInstance<TData>;
|
|
549
|
+
}) => HTMLPropsRef<HTMLTableCellElement> & TableThProps) | (HTMLPropsRef<HTMLTableCellElement> & TableThProps);
|
|
550
|
+
PlaceholderCell?: (props: {
|
|
551
|
+
cell: MRT_Cell<TData, TValue>;
|
|
552
|
+
column: MRT_Column<TData, TValue>;
|
|
553
|
+
row: MRT_Row<TData>;
|
|
554
|
+
table: MRT_TableInstance<TData>;
|
|
555
|
+
}) => ReactNode;
|
|
556
|
+
renderColumnActionsMenuItems?: (props: {
|
|
557
|
+
column: MRT_Column<TData, TValue>;
|
|
558
|
+
internalColumnMenuItems: ReactNode;
|
|
559
|
+
table: MRT_TableInstance<TData>;
|
|
560
|
+
}) => ReactNode;
|
|
561
|
+
renderColumnFilterModeMenuItems?: (props: {
|
|
562
|
+
column: MRT_Column<TData, TValue>;
|
|
563
|
+
internalFilterOptions: MRT_InternalFilterOption[];
|
|
564
|
+
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
|
565
|
+
table: MRT_TableInstance<TData>;
|
|
566
|
+
}) => ReactNode;
|
|
567
|
+
sortingFn?: MRT_SortingFn<TData>;
|
|
568
|
+
visibleInShowHideMenu?: boolean;
|
|
569
|
+
} & Omit<ColumnDef<TData, TValue>, 'accessorKey' | 'aggregatedCell' | 'aggregationFn' | 'cell' | 'columns' | 'filterFn' | 'footer' | 'header' | 'id' | 'sortingFn'>;
|
|
570
|
+
type MRT_DisplayColumnDef<TData extends MRT_RowData, TValue = unknown> = Omit<MRT_ColumnDef<TData, TValue>, 'accessorFn' | 'accessorKey'>;
|
|
571
|
+
type MRT_GroupColumnDef<TData extends MRT_RowData> = {
|
|
572
|
+
columns: MRT_ColumnDef<TData>[];
|
|
573
|
+
} & MRT_DisplayColumnDef<TData, any>;
|
|
574
|
+
type MRT_DefinedColumnDef<TData extends MRT_RowData, TValue = unknown> = {
|
|
575
|
+
_filterFn: MRT_FilterOption;
|
|
576
|
+
defaultDisplayColumn: Partial<MRT_ColumnDef<TData, TValue>>;
|
|
577
|
+
id: string;
|
|
578
|
+
} & Omit<MRT_ColumnDef<TData, TValue>, 'defaultDisplayColumn' | 'id'>;
|
|
579
|
+
type MRT_Column<TData extends MRT_RowData, TValue = unknown> = {
|
|
580
|
+
columnDef: MRT_DefinedColumnDef<TData, TValue>;
|
|
581
|
+
columns?: MRT_Column<TData>[];
|
|
582
|
+
filterFn?: MRT_FilterFn<TData>;
|
|
583
|
+
footer: string;
|
|
584
|
+
header: string;
|
|
585
|
+
} & Omit<Column<TData, MRT_CellValue>, 'columnDef' | 'columns' | 'filterFn' | 'footer' | 'header'>;
|
|
586
|
+
type MRT_Header<TData extends MRT_RowData, TValue = unknown> = {
|
|
587
|
+
column: MRT_Column<TData, TValue>;
|
|
588
|
+
} & Omit<Header<TData, MRT_CellValue>, 'column'>;
|
|
589
|
+
type MRT_HeaderGroup<TData extends MRT_RowData> = {
|
|
590
|
+
headers: MRT_Header<TData>[];
|
|
591
|
+
} & Omit<HeaderGroup<TData>, 'headers'>;
|
|
592
|
+
type MRT_Row<TData extends MRT_RowData> = {
|
|
593
|
+
_valuesCache: Record<LiteralUnion<DeepKeys<TData> & string>, any>;
|
|
594
|
+
getAllCells: () => MRT_Cell<TData>[];
|
|
595
|
+
getVisibleCells: () => MRT_Cell<TData>[];
|
|
596
|
+
subRows?: MRT_Row<TData>[];
|
|
597
|
+
} & Omit<Row<TData>, '_valuesCache' | 'getAllCells' | 'getVisibleCells' | 'subRows'>;
|
|
598
|
+
type MRT_Cell<TData extends MRT_RowData, TValue = unknown> = {
|
|
599
|
+
column: MRT_Column<TData, TValue>;
|
|
600
|
+
row: MRT_Row<TData>;
|
|
601
|
+
} & Omit<Cell<TData, TValue>, 'column' | 'row'>;
|
|
602
|
+
type MRT_AggregationOption = keyof typeof MRT_AggregationFns & string;
|
|
603
|
+
type MRT_AggregationFn<TData extends MRT_RowData> = AggregationFn<TData> | MRT_AggregationOption;
|
|
604
|
+
type MRT_SortingOption = LiteralUnion<keyof typeof MRT_SortingFns & string>;
|
|
605
|
+
type MRT_SortingFn<TData extends MRT_RowData> = MRT_SortingOption | SortingFn<TData>;
|
|
606
|
+
type MRT_FilterOption = LiteralUnion<keyof typeof MRT_FilterFns & string>;
|
|
607
|
+
type MRT_FilterFn<TData extends MRT_RowData> = FilterFn<TData> | MRT_FilterOption;
|
|
608
|
+
type MRT_FilterTooltipValueFn<TValue = any> = (value: TValue) => string;
|
|
609
|
+
type MRT_InternalFilterOption = {
|
|
610
|
+
divider: boolean;
|
|
611
|
+
label: string;
|
|
612
|
+
option: string;
|
|
613
|
+
symbol: string;
|
|
614
|
+
};
|
|
615
|
+
type MRT_DisplayColumnIds = 'mrt-row-actions' | 'mrt-row-drag' | 'mrt-row-expand' | 'mrt-row-numbers' | 'mrt-row-pin' | 'mrt-row-select' | 'mrt-row-spacer';
|
|
616
|
+
type MRT_CreateTableFeature<TData extends MRT_RowData, TFeature = any> = (table: MRT_TableInstance<TData>) => TFeature;
|
|
617
|
+
/**
|
|
618
|
+
* `columns` and `data` props are the only required props, but there are over 150 other optional props.
|
|
619
|
+
*
|
|
620
|
+
* See more info on creating columns and data on the official docs site:
|
|
621
|
+
* @link https://www.mantine-react-table.com/docs/getting-started/usage
|
|
622
|
+
*
|
|
623
|
+
* See the full props list on the official docs site:
|
|
624
|
+
* @link https://www.mantine-react-table.com/docs/api/table-options
|
|
625
|
+
*/
|
|
626
|
+
type MRT_TableOptions<TData extends MRT_RowData> = {
|
|
627
|
+
columnFilterDisplayMode?: 'custom' | 'popover' | 'subheader';
|
|
628
|
+
columnFilterModeOptions?: Array<LiteralUnion<MRT_FilterOption & string>> | null;
|
|
629
|
+
/**
|
|
630
|
+
* The columns to display in the table. `accessorKey`s or `accessorFn`s must match keys in the `data` prop.
|
|
631
|
+
*
|
|
632
|
+
* See more info on creating columns on the official docs site:
|
|
633
|
+
* @link https://www.mantine-react-table.com/docs/guides/data-columns
|
|
634
|
+
* @link https://www.mantine-react-table.com/docs/guides/display-columns
|
|
635
|
+
*
|
|
636
|
+
* See all Columns Options on the official docs site:
|
|
637
|
+
* @link https://www.mantine-react-table.com/docs/api/column-options
|
|
638
|
+
*/
|
|
639
|
+
columns: MRT_ColumnDef<TData>[];
|
|
640
|
+
columnVirtualizerInstanceRef?: MutableRefObject<null | Virtualizer<HTMLDivElement, HTMLTableCellElement>>;
|
|
641
|
+
columnVirtualizerOptions?: ((props: {
|
|
642
|
+
table: MRT_TableInstance<TData>;
|
|
643
|
+
}) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>) | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableCellElement>>;
|
|
644
|
+
createDisplayMode?: 'custom' | 'modal' | 'row';
|
|
645
|
+
/**
|
|
646
|
+
* Pass your data as an array of objects. Objects can theoretically be any shape, but it's best to keep them consistent.
|
|
647
|
+
*
|
|
648
|
+
* See the usage guide for more info on creating columns and data:
|
|
649
|
+
* @link https://www.mantine-react-table.com/docs/getting-started/usage
|
|
650
|
+
*/
|
|
651
|
+
data: TData[];
|
|
652
|
+
/**
|
|
653
|
+
* Instead of specifying a bunch of the same options for each column, you can just change an option in the `defaultColumn` prop to change a default option for all columns.
|
|
654
|
+
*/
|
|
655
|
+
defaultColumn?: Partial<MRT_ColumnDef<TData>>;
|
|
656
|
+
/**
|
|
657
|
+
* Change the default options for display columns.
|
|
658
|
+
*/
|
|
659
|
+
defaultDisplayColumn?: Partial<MRT_DisplayColumnDef<TData>>;
|
|
660
|
+
displayColumnDefOptions?: Partial<{
|
|
661
|
+
[key in MRT_DisplayColumnIds]: Partial<MRT_DisplayColumnDef<TData>>;
|
|
662
|
+
}>;
|
|
663
|
+
editDisplayMode?: 'cell' | 'custom' | 'modal' | 'row' | 'table';
|
|
664
|
+
enableBatchRowSelection?: boolean;
|
|
665
|
+
enableBottomToolbar?: boolean;
|
|
666
|
+
enableClickToCopy?: ((cell: MRT_Cell<TData>) => boolean) | boolean;
|
|
667
|
+
enableColumnActions?: boolean;
|
|
668
|
+
enableColumnDragging?: boolean;
|
|
669
|
+
enableColumnFilterModes?: boolean;
|
|
670
|
+
enableColumnOrdering?: boolean;
|
|
671
|
+
enableColumnVirtualization?: boolean;
|
|
672
|
+
enableDensityToggle?: boolean;
|
|
673
|
+
enableEditing?: ((row: MRT_Row<TData>) => boolean) | boolean;
|
|
674
|
+
enableExpandAll?: boolean;
|
|
675
|
+
enableFacetedValues?: boolean;
|
|
676
|
+
enableFilterMatchHighlighting?: boolean;
|
|
677
|
+
enableFullScreenToggle?: boolean;
|
|
678
|
+
enableGlobalFilterModes?: boolean;
|
|
679
|
+
enableGlobalFilterRankedResults?: boolean;
|
|
680
|
+
enableHeaderActionsHoverReveal?: boolean;
|
|
681
|
+
enablePagination?: boolean;
|
|
682
|
+
enableRowActions?: boolean;
|
|
683
|
+
enableRowDragging?: boolean;
|
|
684
|
+
enableRowNumbers?: boolean;
|
|
685
|
+
enableRowOrdering?: boolean;
|
|
686
|
+
enableRowSelection?: ((row: MRT_Row<TData>) => boolean) | boolean;
|
|
687
|
+
enableRowVirtualization?: boolean;
|
|
688
|
+
enableSelectAll?: boolean;
|
|
689
|
+
enableStickyFooter?: boolean;
|
|
690
|
+
enableStickyHeader?: boolean;
|
|
691
|
+
enableTableFooter?: boolean;
|
|
692
|
+
enableTableHead?: boolean;
|
|
693
|
+
enableToolbarInternalActions?: boolean;
|
|
694
|
+
enableTopToolbar?: boolean;
|
|
695
|
+
expandRowsFn?: (dataRow: TData) => TData[];
|
|
696
|
+
getRowId?: (originalRow: TData, index: number, parentRow: MRT_Row<TData>) => string | undefined;
|
|
697
|
+
globalFilterFn?: MRT_FilterOption;
|
|
698
|
+
globalFilterModeOptions?: MRT_FilterOption[] | null;
|
|
699
|
+
icons?: Partial<MRT_Icons>;
|
|
700
|
+
initialState?: Partial<MRT_TableState<TData>>;
|
|
701
|
+
/**
|
|
702
|
+
* Changes which kind of CSS layout is used to render the table. `semantic` uses default semantic HTML elements, while `grid` adds CSS grid and flexbox styles
|
|
703
|
+
*/
|
|
704
|
+
layoutMode?: 'grid' | 'grid-no-grow' | 'semantic';
|
|
705
|
+
/**
|
|
706
|
+
* Pass in either a locale imported from `mantine-react-table/locales/*` or a custom locale object.
|
|
707
|
+
*
|
|
708
|
+
* See the localization (i18n) guide for more info:
|
|
709
|
+
* @link https://www.mantine-react-table.com/docs/guides/localization
|
|
710
|
+
*/
|
|
711
|
+
localization?: Partial<MRT_Localization>;
|
|
712
|
+
mantineBottomToolbarProps?: ((props: {
|
|
713
|
+
table: MRT_TableInstance<TData>;
|
|
714
|
+
}) => BoxProps & HTMLPropsRef<HTMLDivElement>) | (BoxProps & HTMLPropsRef<HTMLDivElement>);
|
|
715
|
+
mantineColumnActionsButtonProps?: ((props: {
|
|
716
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
717
|
+
table: MRT_TableInstance<TData>;
|
|
718
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>);
|
|
719
|
+
mantineColumnDragHandleProps?: ((props: {
|
|
720
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
721
|
+
table: MRT_TableInstance<TData>;
|
|
722
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>);
|
|
723
|
+
mantineCopyButtonProps?: ((props: {
|
|
724
|
+
cell: MRT_Cell<TData, MRT_CellValue>;
|
|
725
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
726
|
+
row: MRT_Row<TData>;
|
|
727
|
+
table: MRT_TableInstance<TData>;
|
|
728
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<UnstyledButtonProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<UnstyledButtonProps>);
|
|
729
|
+
mantineCreateRowModalProps?: ((props: {
|
|
730
|
+
row: MRT_Row<TData>;
|
|
731
|
+
table: MRT_TableInstance<TData>;
|
|
732
|
+
}) => HTMLPropsRef<HTMLDivElement> & Partial<ModalProps>) | (HTMLPropsRef<HTMLDivElement> & Partial<ModalProps>);
|
|
733
|
+
mantineDetailPanelProps?: ((props: {
|
|
734
|
+
row: MRT_Row<TData>;
|
|
735
|
+
table: MRT_TableInstance<TData>;
|
|
736
|
+
}) => BoxProps & HTMLPropsRef<HTMLTableCellElement>) | (BoxProps & HTMLPropsRef<HTMLTableCellElement>);
|
|
737
|
+
mantineEditRowModalProps?: ((props: {
|
|
738
|
+
row: MRT_Row<TData>;
|
|
739
|
+
table: MRT_TableInstance<TData>;
|
|
740
|
+
}) => HTMLPropsRef<HTMLDivElement> & Partial<ModalProps>) | (HTMLPropsRef<HTMLDivElement> & Partial<ModalProps>);
|
|
741
|
+
mantineEditSelectProps?: ((props: {
|
|
742
|
+
cell: MRT_Cell<TData, MRT_CellValue>;
|
|
743
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
744
|
+
row: MRT_Row<TData>;
|
|
745
|
+
table: MRT_TableInstance<TData>;
|
|
746
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<SelectProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<SelectProps>);
|
|
747
|
+
mantineEditTextInputProps?: ((props: {
|
|
748
|
+
cell: MRT_Cell<TData, MRT_CellValue>;
|
|
749
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
750
|
+
row: MRT_Row<TData>;
|
|
751
|
+
table: MRT_TableInstance<TData>;
|
|
752
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>);
|
|
753
|
+
mantineExpandAllButtonProps?: ((props: {
|
|
754
|
+
table: MRT_TableInstance<TData>;
|
|
755
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>);
|
|
756
|
+
mantineExpandButtonProps?: ((props: {
|
|
757
|
+
renderedRowIndex?: number;
|
|
758
|
+
row: MRT_Row<TData>;
|
|
759
|
+
table: MRT_TableInstance<TData>;
|
|
760
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>);
|
|
761
|
+
mantineFilterAutocompleteProps?: ((props: {
|
|
762
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
763
|
+
rangeFilterIndex?: number;
|
|
764
|
+
table: MRT_TableInstance<TData>;
|
|
765
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<AutocompleteProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<AutocompleteProps>);
|
|
766
|
+
mantineFilterCheckboxProps?: ((props: {
|
|
767
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
768
|
+
table: MRT_TableInstance<TData>;
|
|
769
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<CheckboxProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<CheckboxProps>);
|
|
770
|
+
mantineFilterDateInputProps?: ((props: {
|
|
771
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
772
|
+
rangeFilterIndex?: number;
|
|
773
|
+
table: MRT_TableInstance<TData>;
|
|
774
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<DateInputProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<DateInputProps>);
|
|
775
|
+
mantineFilterMultiSelectProps?: ((props: {
|
|
776
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
777
|
+
rangeFilterIndex?: number;
|
|
778
|
+
table: MRT_TableInstance<TData>;
|
|
779
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<MultiSelectProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<MultiSelectProps>);
|
|
780
|
+
mantineFilterRangeSliderProps?: ((props: {
|
|
781
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
782
|
+
rangeFilterIndex?: number;
|
|
783
|
+
table: MRT_TableInstance<TData>;
|
|
784
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<RangeSliderProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<RangeSliderProps>);
|
|
785
|
+
mantineFilterSelectProps?: ((props: {
|
|
786
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
787
|
+
rangeFilterIndex?: number;
|
|
788
|
+
table: MRT_TableInstance<TData>;
|
|
789
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<SelectProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<SelectProps>);
|
|
790
|
+
mantineFilterTextInputProps?: ((props: {
|
|
791
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
792
|
+
rangeFilterIndex?: number;
|
|
793
|
+
table: MRT_TableInstance<TData>;
|
|
794
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>);
|
|
795
|
+
mantineHighlightProps?: ((props: {
|
|
796
|
+
cell: MRT_Cell<TData, MRT_CellValue>;
|
|
797
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
798
|
+
row: MRT_Row<TData>;
|
|
799
|
+
table: MRT_TableInstance<TData>;
|
|
800
|
+
}) => HTMLPropsRef<HTMLSpanElement> & Partial<HighlightProps>) | (HTMLPropsRef<HTMLSpanElement> & Partial<HighlightProps>);
|
|
801
|
+
mantineLoadingOverlayProps?: ((props: {
|
|
802
|
+
table: MRT_TableInstance<TData>;
|
|
803
|
+
}) => HTMLPropsRef<HTMLDivElement> & Partial<LoadingOverlayProps>) | (HTMLPropsRef<HTMLDivElement> & Partial<LoadingOverlayProps>);
|
|
804
|
+
mantinePaginationProps?: ((props: {
|
|
805
|
+
table: MRT_TableInstance<TData>;
|
|
806
|
+
}) => Partial<HTMLPropsRef<HTMLDivElement> & MRT_PaginationProps>) | Partial<HTMLPropsRef<HTMLDivElement> & MRT_PaginationProps>;
|
|
807
|
+
mantinePaperProps?: ((props: {
|
|
808
|
+
table: MRT_TableInstance<TData>;
|
|
809
|
+
}) => HTMLPropsRef<HTMLDivElement> & PaperProps) | (HTMLPropsRef<HTMLDivElement> & PaperProps);
|
|
810
|
+
mantineProgressProps?: ((props: {
|
|
811
|
+
isTopToolbar: boolean;
|
|
812
|
+
table: MRT_TableInstance<TData>;
|
|
813
|
+
}) => HTMLPropsRef<HTMLDivElement> & ProgressProps) | (HTMLPropsRef<HTMLDivElement> & ProgressProps);
|
|
814
|
+
mantineRowDragHandleProps?: ((props: {
|
|
815
|
+
row: MRT_Row<TData>;
|
|
816
|
+
table: MRT_TableInstance<TData>;
|
|
817
|
+
}) => HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>) | (HTMLPropsRef<HTMLButtonElement> & Partial<ActionIconProps>);
|
|
818
|
+
mantineSearchTextInputProps?: ((props: {
|
|
819
|
+
table: MRT_TableInstance<TData>;
|
|
820
|
+
}) => HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>) | (HTMLPropsRef<HTMLInputElement> & Partial<TextInputProps>);
|
|
821
|
+
mantineSelectAllCheckboxProps?: ((CheckboxProps | RadioProps | SwitchProps) & HTMLPropsRef<HTMLInputElement>) | ((props: {
|
|
822
|
+
table: MRT_TableInstance<TData>;
|
|
823
|
+
}) => (CheckboxProps | RadioProps | SwitchProps) & HTMLPropsRef<HTMLInputElement>);
|
|
824
|
+
mantineSelectCheckboxProps?: ((CheckboxProps | RadioProps | SwitchProps) & HTMLPropsRef<HTMLInputElement>) | ((props: {
|
|
825
|
+
renderedRowIndex?: number;
|
|
826
|
+
row: MRT_Row<TData>;
|
|
827
|
+
table: MRT_TableInstance<TData>;
|
|
828
|
+
}) => (CheckboxProps | RadioProps | SwitchProps) & HTMLPropsRef<HTMLInputElement>);
|
|
829
|
+
mantineSkeletonProps?: ((props: {
|
|
830
|
+
cell: MRT_Cell<TData, MRT_CellValue>;
|
|
831
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
832
|
+
row: MRT_Row<TData>;
|
|
833
|
+
table: MRT_TableInstance<TData>;
|
|
834
|
+
}) => HTMLPropsRef<HTMLDivElement> & SkeletonProps) | (HTMLPropsRef<HTMLDivElement> & SkeletonProps);
|
|
835
|
+
mantineTableBodyCellProps?: ((props: {
|
|
836
|
+
cell: MRT_Cell<TData, MRT_CellValue>;
|
|
837
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
838
|
+
renderedColumnIndex?: number;
|
|
839
|
+
renderedRowIndex?: number;
|
|
840
|
+
row: MRT_Row<TData>;
|
|
841
|
+
table: MRT_TableInstance<TData>;
|
|
842
|
+
}) => HTMLPropsRef<HTMLTableCellElement> & TableTdProps) | (HTMLPropsRef<HTMLTableCellElement> & TableTdProps);
|
|
843
|
+
mantineTableBodyProps?: ((props: {
|
|
844
|
+
table: MRT_TableInstance<TData>;
|
|
845
|
+
}) => HTMLPropsRef<HTMLTableSectionElement> & TableTbodyProps) | (HTMLPropsRef<HTMLTableSectionElement> & TableTbodyProps);
|
|
846
|
+
mantineTableBodyRowProps?: ((props: {
|
|
847
|
+
isDetailPanel?: boolean;
|
|
848
|
+
renderedRowIndex?: number;
|
|
849
|
+
row: MRT_Row<TData>;
|
|
850
|
+
table: MRT_TableInstance<TData>;
|
|
851
|
+
}) => HTMLPropsRef<HTMLTableRowElement> & TableTrProps) | (HTMLPropsRef<HTMLTableRowElement> & TableTrProps);
|
|
852
|
+
mantineTableContainerProps?: ((props: {
|
|
853
|
+
table: MRT_TableInstance<TData>;
|
|
854
|
+
}) => BoxProps & HTMLPropsRef<HTMLDivElement>) | (BoxProps & HTMLPropsRef<HTMLDivElement>);
|
|
855
|
+
mantineTableFooterCellProps?: ((props: {
|
|
856
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
857
|
+
table: MRT_TableInstance<TData>;
|
|
858
|
+
}) => HTMLPropsRef<HTMLTableCellElement> & TableThProps) | (HTMLPropsRef<HTMLTableCellElement> & TableThProps);
|
|
859
|
+
mantineTableFooterProps?: ((props: {
|
|
860
|
+
table: MRT_TableInstance<TData>;
|
|
861
|
+
}) => HTMLPropsRef<HTMLTableSectionElement> & TableTfootProps) | (HTMLPropsRef<HTMLTableSectionElement> & TableTfootProps);
|
|
862
|
+
mantineTableFooterRowProps?: ((props: {
|
|
863
|
+
footerGroup: MRT_HeaderGroup<TData>;
|
|
864
|
+
table: MRT_TableInstance<TData>;
|
|
865
|
+
}) => HTMLPropsRef<HTMLTableRowElement> & TableTrProps) | (HTMLPropsRef<HTMLTableRowElement> & TableTrProps);
|
|
866
|
+
mantineTableHeadCellProps?: ((props: {
|
|
867
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
868
|
+
table: MRT_TableInstance<TData>;
|
|
869
|
+
}) => HTMLPropsRef<HTMLTableCellElement> & TableThProps) | (HTMLPropsRef<HTMLTableCellElement> & TableThProps);
|
|
870
|
+
mantineTableHeadProps?: ((props: {
|
|
871
|
+
table: MRT_TableInstance<TData>;
|
|
872
|
+
}) => HTMLPropsRef<HTMLTableSectionElement> & TableTheadProps) | (HTMLPropsRef<HTMLTableSectionElement> & TableTheadProps);
|
|
873
|
+
mantineTableHeadRowProps?: ((props: {
|
|
874
|
+
headerGroup: MRT_HeaderGroup<TData>;
|
|
875
|
+
table: MRT_TableInstance<TData>;
|
|
876
|
+
}) => HTMLPropsRef<HTMLTableRowElement> & TableTrProps) | (HTMLPropsRef<HTMLTableRowElement> & TableTrProps);
|
|
877
|
+
mantineTableProps?: ((props: {
|
|
878
|
+
table: MRT_TableInstance<TData>;
|
|
879
|
+
}) => HTMLPropsRef<HTMLTableElement> & TableProps) | (HTMLPropsRef<HTMLTableElement> & TableProps);
|
|
880
|
+
mantineToolbarAlertBannerBadgeProps?: ((props: {
|
|
881
|
+
table: MRT_TableInstance<TData>;
|
|
882
|
+
}) => HTMLPropsRef<HTMLDivElement> & Partial<BadgeProps>) | (HTMLPropsRef<HTMLDivElement> & Partial<BadgeProps>);
|
|
883
|
+
mantineToolbarAlertBannerProps?: ((props: {
|
|
884
|
+
table: MRT_TableInstance<TData>;
|
|
885
|
+
}) => HTMLPropsRef<HTMLDivElement> & Partial<AlertProps>) | (HTMLPropsRef<HTMLDivElement> & Partial<AlertProps>);
|
|
886
|
+
mantineTopToolbarProps?: ((props: {
|
|
887
|
+
table: MRT_TableInstance<TData>;
|
|
888
|
+
}) => BoxProps & HTMLPropsRef<HTMLDivElement>) | (BoxProps & HTMLPropsRef<HTMLDivElement>);
|
|
889
|
+
/**
|
|
890
|
+
* Memoize cells, rows, or the entire table body to potentially improve render performance.
|
|
891
|
+
*
|
|
892
|
+
* @warning This will break some dynamic rendering features. See the memoization guide for more info:
|
|
893
|
+
* @link https://www.mantine-react-table.com/docs/guides/memoize-components
|
|
894
|
+
*/
|
|
895
|
+
memoMode?: 'cells' | 'rows' | 'table-body';
|
|
896
|
+
onColumnFilterFnsChange?: OnChangeFn<{
|
|
897
|
+
[key: string]: MRT_FilterOption;
|
|
898
|
+
}>;
|
|
899
|
+
onCreatingRowCancel?: (props: {
|
|
900
|
+
row: MRT_Row<TData>;
|
|
901
|
+
table: MRT_TableInstance<TData>;
|
|
902
|
+
}) => void;
|
|
903
|
+
onCreatingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
|
904
|
+
onCreatingRowSave?: (props: {
|
|
905
|
+
exitCreatingMode: () => void;
|
|
906
|
+
row: MRT_Row<TData>;
|
|
907
|
+
table: MRT_TableInstance<TData>;
|
|
908
|
+
values: Record<LiteralUnion<DeepKeys<TData> & string>, any>;
|
|
909
|
+
}) => void;
|
|
910
|
+
onDensityChange?: OnChangeFn<MRT_DensityState>;
|
|
911
|
+
onDraggingColumnChange?: OnChangeFn<MRT_Column<TData> | null>;
|
|
912
|
+
onDraggingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
|
913
|
+
onEditingCellChange?: OnChangeFn<MRT_Cell<TData> | null>;
|
|
914
|
+
onEditingRowCancel?: (props: {
|
|
915
|
+
row: MRT_Row<TData>;
|
|
916
|
+
table: MRT_TableInstance<TData>;
|
|
917
|
+
}) => void;
|
|
918
|
+
onEditingRowChange?: OnChangeFn<MRT_Row<TData> | null>;
|
|
919
|
+
onEditingRowSave?: (props: {
|
|
920
|
+
exitEditingMode: () => void;
|
|
921
|
+
row: MRT_Row<TData>;
|
|
922
|
+
table: MRT_TableInstance<TData>;
|
|
923
|
+
values: Record<LiteralUnion<DeepKeys<TData> & string>, any>;
|
|
924
|
+
}) => Promise<void> | void;
|
|
925
|
+
onGlobalFilterFnChange?: OnChangeFn<MRT_FilterOption>;
|
|
926
|
+
onHoveredColumnChange?: OnChangeFn<null | Partial<MRT_Column<TData>>>;
|
|
927
|
+
onHoveredRowChange?: OnChangeFn<null | Partial<MRT_Row<TData>>>;
|
|
928
|
+
onIsFullScreenChange?: OnChangeFn<boolean>;
|
|
929
|
+
onShowAlertBannerChange?: OnChangeFn<boolean>;
|
|
930
|
+
onShowColumnFiltersChange?: OnChangeFn<boolean>;
|
|
931
|
+
onShowGlobalFilterChange?: OnChangeFn<boolean>;
|
|
932
|
+
onShowToolbarDropZoneChange?: OnChangeFn<boolean>;
|
|
933
|
+
paginationDisplayMode?: 'custom' | 'default' | 'pages';
|
|
934
|
+
positionActionsColumn?: 'first' | 'last';
|
|
935
|
+
positionCreatingRow?: 'bottom' | 'top' | number;
|
|
936
|
+
positionExpandColumn?: 'first' | 'last';
|
|
937
|
+
positionGlobalFilter?: 'left' | 'none' | 'right';
|
|
938
|
+
positionPagination?: 'both' | 'bottom' | 'none' | 'top';
|
|
939
|
+
positionToolbarAlertBanner?: 'bottom' | 'head-overlay' | 'none' | 'top';
|
|
940
|
+
positionToolbarDropZone?: 'both' | 'bottom' | 'none' | 'top';
|
|
941
|
+
renderBottomToolbar?: ((props: {
|
|
942
|
+
table: MRT_TableInstance<TData>;
|
|
943
|
+
}) => ReactNode) | ReactNode;
|
|
944
|
+
renderBottomToolbarCustomActions?: (props: {
|
|
945
|
+
table: MRT_TableInstance<TData>;
|
|
946
|
+
}) => ReactNode;
|
|
947
|
+
renderColumnActionsMenuItems?: (props: {
|
|
948
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
949
|
+
internalColumnMenuItems: ReactNode;
|
|
950
|
+
table: MRT_TableInstance<TData>;
|
|
951
|
+
}) => ReactNode;
|
|
952
|
+
renderColumnFilterModeMenuItems?: (props: {
|
|
953
|
+
column: MRT_Column<TData, MRT_CellValue>;
|
|
954
|
+
internalFilterOptions: MRT_InternalFilterOption[];
|
|
955
|
+
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
|
956
|
+
table: MRT_TableInstance<TData>;
|
|
957
|
+
}) => ReactNode;
|
|
958
|
+
renderCreateRowModalContent?: (props: {
|
|
959
|
+
internalEditComponents: ReactNode[];
|
|
960
|
+
row: MRT_Row<TData>;
|
|
961
|
+
table: MRT_TableInstance<TData>;
|
|
962
|
+
}) => ReactNode;
|
|
963
|
+
renderDetailPanel?: (props: {
|
|
964
|
+
internalEditComponents: ReactNode[];
|
|
965
|
+
row: MRT_Row<TData>;
|
|
966
|
+
table: MRT_TableInstance<TData>;
|
|
967
|
+
}) => ReactNode;
|
|
968
|
+
renderEditRowModalContent?: (props: {
|
|
969
|
+
internalEditComponents: ReactNode[];
|
|
970
|
+
row: MRT_Row<TData>;
|
|
971
|
+
table: MRT_TableInstance<TData>;
|
|
972
|
+
}) => ReactNode;
|
|
973
|
+
renderEmptyRowsFallback?: (props: {
|
|
974
|
+
table: MRT_TableInstance<TData>;
|
|
975
|
+
}) => ReactNode;
|
|
976
|
+
renderGlobalFilterModeMenuItems?: (props: {
|
|
977
|
+
internalFilterOptions: MRT_InternalFilterOption[];
|
|
978
|
+
onSelectFilterMode: (filterMode: MRT_FilterOption) => void;
|
|
979
|
+
table: MRT_TableInstance<TData>;
|
|
980
|
+
}) => ReactNode;
|
|
981
|
+
renderRowActionMenuItems?: (props: {
|
|
982
|
+
renderedRowIndex?: number;
|
|
983
|
+
row: MRT_Row<TData>;
|
|
984
|
+
table: MRT_TableInstance<TData>;
|
|
985
|
+
}) => ReactNode;
|
|
986
|
+
renderRowActions?: (props: {
|
|
987
|
+
cell: MRT_Cell<TData, MRT_CellValue>;
|
|
988
|
+
renderedRowIndex?: number;
|
|
989
|
+
row: MRT_Row<TData>;
|
|
990
|
+
table: MRT_TableInstance<TData>;
|
|
991
|
+
}) => ReactNode;
|
|
992
|
+
renderToolbarAlertBannerContent?: (props: {
|
|
993
|
+
groupedAlert: null | ReactNode;
|
|
994
|
+
selectedAlert: null | ReactNode;
|
|
995
|
+
table: MRT_TableInstance<TData>;
|
|
996
|
+
}) => ReactNode;
|
|
997
|
+
renderToolbarInternalActions?: (props: {
|
|
998
|
+
table: MRT_TableInstance<TData>;
|
|
999
|
+
}) => ReactNode;
|
|
1000
|
+
renderTopToolbar?: ((props: {
|
|
1001
|
+
table: MRT_TableInstance<TData>;
|
|
1002
|
+
}) => ReactNode) | ReactNode;
|
|
1003
|
+
renderTopToolbarCustomActions?: (props: {
|
|
1004
|
+
table: MRT_TableInstance<TData>;
|
|
1005
|
+
}) => ReactNode;
|
|
1006
|
+
rowCount?: number;
|
|
1007
|
+
rowNumberDisplayMode?: 'original' | 'static';
|
|
1008
|
+
rowPinningDisplayMode?: 'bottom' | 'select-bottom' | 'select-sticky' | 'select-top' | 'sticky' | 'top' | 'top-and-bottom';
|
|
1009
|
+
rowVirtualizerInstanceRef?: MutableRefObject<null | Virtualizer<HTMLDivElement, HTMLTableRowElement>>;
|
|
1010
|
+
rowVirtualizerOptions?: ((props: {
|
|
1011
|
+
table: MRT_TableInstance<TData>;
|
|
1012
|
+
}) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>) | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>;
|
|
1013
|
+
selectAllMode?: 'all' | 'page';
|
|
1014
|
+
selectDisplayMode?: 'checkbox' | 'radio' | 'switch';
|
|
1015
|
+
/**
|
|
1016
|
+
* Manage state externally any way you want, then pass it back into MRT.
|
|
1017
|
+
*/
|
|
1018
|
+
state?: Partial<MRT_TableState<TData>>;
|
|
1019
|
+
} & Omit<Partial<TableOptions<TData>>, 'columns' | 'data' | 'defaultColumn' | 'enableRowSelection' | 'expandRowsFn' | 'getRowId' | 'globalFilterFn' | 'initialState' | 'onStateChange' | 'state'>;
|
|
1020
|
+
|
|
1021
|
+
interface MRT_TableBodyProps<TData extends MRT_RowData> extends TableTbodyProps {
|
|
1022
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
1023
|
+
table: MRT_TableInstance<TData>;
|
|
1024
|
+
tableProps: Partial<TableProps>;
|
|
1025
|
+
}
|
|
1026
|
+
declare const MRT_TableBody: <TData extends MRT_RowData>({ columnVirtualizer, table, tableProps, ...rest }: MRT_TableBodyProps<TData>) => react_jsx_runtime.JSX.Element;
|
|
1027
|
+
declare const Memo_MRT_TableBody: typeof MRT_TableBody;
|
|
1028
|
+
|
|
1029
|
+
interface Props$R<TData extends MRT_RowData, TValue = MRT_CellValue> extends TableTdProps {
|
|
1030
|
+
cell: MRT_Cell<TData, TValue>;
|
|
1031
|
+
numRows?: number;
|
|
1032
|
+
renderedColumnIndex?: number;
|
|
1033
|
+
renderedRowIndex?: number;
|
|
1034
|
+
rowRef: RefObject<HTMLTableRowElement | null>;
|
|
1035
|
+
table: MRT_TableInstance<TData>;
|
|
1036
|
+
virtualCell?: MRT_VirtualItem;
|
|
1037
|
+
}
|
|
1038
|
+
declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, numRows, renderedColumnIndex, renderedRowIndex, rowRef, table, virtualCell, ...rest }: Props$R<TData>) => react_jsx_runtime.JSX.Element;
|
|
1039
|
+
declare const Memo_MRT_TableBodyCell: typeof MRT_TableBodyCell;
|
|
1040
|
+
|
|
1041
|
+
interface Props$Q<TData extends MRT_RowData, TValue = MRT_CellValue> {
|
|
1042
|
+
cell: MRT_Cell<TData, TValue>;
|
|
1043
|
+
renderedColumnIndex?: number;
|
|
1044
|
+
renderedRowIndex?: number;
|
|
1045
|
+
table: MRT_TableInstance<TData>;
|
|
1046
|
+
}
|
|
1047
|
+
declare const MRT_TableBodyCellValue: <TData extends MRT_RowData>({ cell, renderedColumnIndex, renderedRowIndex, table, }: Props$Q<TData>) => react.ReactNode;
|
|
1048
|
+
|
|
1049
|
+
interface Props$P<TData extends MRT_RowData> extends TableTrProps {
|
|
1050
|
+
table: MRT_TableInstance<TData>;
|
|
1051
|
+
tableProps: Partial<TableProps>;
|
|
1052
|
+
}
|
|
1053
|
+
declare const MRT_TableBodyEmptyRow: <TData extends MRT_RowData>({ table, tableProps, ...commonRowProps }: Props$P<TData>) => react_jsx_runtime.JSX.Element;
|
|
1054
|
+
|
|
1055
|
+
interface Props$O<TData extends MRT_RowData> extends TableTrProps {
|
|
1056
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
1057
|
+
numRows?: number;
|
|
1058
|
+
pinnedRowIds?: string[];
|
|
1059
|
+
renderedRowIndex?: number;
|
|
1060
|
+
row: MRT_Row<TData>;
|
|
1061
|
+
rowVirtualizer?: MRT_RowVirtualizer;
|
|
1062
|
+
table: MRT_TableInstance<TData>;
|
|
1063
|
+
tableProps: Partial<TableProps>;
|
|
1064
|
+
virtualRow?: MRT_VirtualItem;
|
|
1065
|
+
}
|
|
1066
|
+
declare const MRT_TableBodyRow: <TData extends MRT_RowData>({ children, columnVirtualizer, numRows, pinnedRowIds, renderedRowIndex, row, rowVirtualizer, table, tableProps, virtualRow, ...rest }: Props$O<TData>) => react_jsx_runtime.JSX.Element;
|
|
1067
|
+
declare const Memo_MRT_TableBodyRow: typeof MRT_TableBodyRow;
|
|
1068
|
+
|
|
1069
|
+
interface Props$N<TData extends MRT_RowData> extends ActionIconProps {
|
|
1070
|
+
row: MRT_Row<TData>;
|
|
1071
|
+
rowRef: RefObject<HTMLTableRowElement | null>;
|
|
1072
|
+
table: MRT_TableInstance<TData>;
|
|
1073
|
+
}
|
|
1074
|
+
declare const MRT_TableBodyRowGrabHandle: <TData extends MRT_RowData>({ row, rowRef, table, ...rest }: Props$N<TData>) => react_jsx_runtime.JSX.Element;
|
|
1075
|
+
|
|
1076
|
+
interface Props$M<TData extends MRT_RowData> extends ActionIconProps {
|
|
1077
|
+
row: MRT_Row<TData>;
|
|
1078
|
+
table: MRT_TableInstance<TData>;
|
|
1079
|
+
}
|
|
1080
|
+
declare const MRT_TableBodyRowPinButton: <TData extends MRT_RowData>({ row, table, ...rest }: Props$M<TData>) => react_jsx_runtime.JSX.Element | null;
|
|
1081
|
+
|
|
1082
|
+
interface Props$L<TData extends MRT_RowData> extends TableTdProps {
|
|
1083
|
+
parentRowRef: RefObject<HTMLTableRowElement | null>;
|
|
1084
|
+
renderedRowIndex?: number;
|
|
1085
|
+
row: MRT_Row<TData>;
|
|
1086
|
+
rowVirtualizer?: MRT_RowVirtualizer;
|
|
1087
|
+
striped?: false | string;
|
|
1088
|
+
table: MRT_TableInstance<TData>;
|
|
1089
|
+
virtualRow?: MRT_VirtualItem;
|
|
1090
|
+
}
|
|
1091
|
+
declare const MRT_TableDetailPanel: <TData extends MRT_RowData>({ parentRowRef, renderedRowIndex, row, rowVirtualizer, striped, table, virtualRow, ...rest }: Props$L<TData>) => react_jsx_runtime.JSX.Element;
|
|
1092
|
+
|
|
1093
|
+
interface Props$K<TData extends MRT_RowData> {
|
|
1094
|
+
column: MRT_Column<TData>;
|
|
1095
|
+
table: MRT_TableInstance<TData>;
|
|
1096
|
+
}
|
|
1097
|
+
declare const MRT_ColumnPinningButtons: <TData extends MRT_RowData>({ column, table, }: Props$K<TData>) => react_jsx_runtime.JSX.Element;
|
|
1098
|
+
|
|
1099
|
+
interface Props$J<TData extends MRT_RowData, TValue = MRT_CellValue> extends UnstyledButtonProps {
|
|
1100
|
+
cell: MRT_Cell<TData, TValue>;
|
|
1101
|
+
children: ReactNode;
|
|
1102
|
+
table: MRT_TableInstance<TData>;
|
|
1103
|
+
}
|
|
1104
|
+
declare const MRT_CopyButton: <TData extends MRT_RowData>({ cell, children, table, ...rest }: Props$J<TData>) => react_jsx_runtime.JSX.Element;
|
|
1105
|
+
|
|
1106
|
+
interface Props$I<TData extends MRT_RowData> extends BoxProps {
|
|
1107
|
+
row: MRT_Row<TData>;
|
|
1108
|
+
table: MRT_TableInstance<TData>;
|
|
1109
|
+
variant?: 'icon' | 'text';
|
|
1110
|
+
}
|
|
1111
|
+
declare const MRT_EditActionButtons: <TData extends MRT_RowData>({ row, table, variant, ...rest }: Props$I<TData>) => react_jsx_runtime.JSX.Element;
|
|
1112
|
+
|
|
1113
|
+
interface Props$H<TData extends MRT_RowData> extends ActionIconProps {
|
|
1114
|
+
table: MRT_TableInstance<TData>;
|
|
1115
|
+
}
|
|
1116
|
+
declare const MRT_ExpandAllButton: <TData extends MRT_RowData>({ table, ...rest }: Props$H<TData>) => react_jsx_runtime.JSX.Element;
|
|
1117
|
+
|
|
1118
|
+
interface Props$G<TData extends MRT_RowData> extends ActionIconProps {
|
|
1119
|
+
row: MRT_Row<TData>;
|
|
1120
|
+
table: MRT_TableInstance<TData>;
|
|
1121
|
+
}
|
|
1122
|
+
declare const MRT_ExpandButton: <TData extends MRT_RowData>({ row, table, ...rest }: Props$G<TData>) => react_jsx_runtime.JSX.Element;
|
|
1123
|
+
|
|
1124
|
+
interface Props$F<TData extends MRT_RowData> {
|
|
1125
|
+
actionIconProps?: ActionIconProps & HTMLPropsRef<HTMLButtonElement>;
|
|
1126
|
+
onDragEnd: DragEventHandler<HTMLButtonElement>;
|
|
1127
|
+
onDragStart: DragEventHandler<HTMLButtonElement>;
|
|
1128
|
+
table: MRT_TableInstance<TData>;
|
|
1129
|
+
}
|
|
1130
|
+
declare const MRT_GrabHandleButton: <TData extends MRT_RowData>({ actionIconProps, onDragEnd, onDragStart, table: { options: { icons: { IconGripHorizontal }, localization: { move }, }, }, }: Props$F<TData>) => react_jsx_runtime.JSX.Element;
|
|
1131
|
+
|
|
1132
|
+
interface Props$E<TData extends MRT_RowData> extends ActionIconProps {
|
|
1133
|
+
pinningPosition: RowPinningPosition;
|
|
1134
|
+
row: MRT_Row<TData>;
|
|
1135
|
+
table: MRT_TableInstance<TData>;
|
|
1136
|
+
}
|
|
1137
|
+
declare const MRT_RowPinButton: <TData extends MRT_RowData>({ pinningPosition, row, table, ...rest }: Props$E<TData>) => react_jsx_runtime.JSX.Element;
|
|
1138
|
+
|
|
1139
|
+
interface Props$D<TData extends MRT_RowData> extends ActionIconProps, HTMLPropsRef<HTMLButtonElement> {
|
|
1140
|
+
table: MRT_TableInstance<TData>;
|
|
1141
|
+
}
|
|
1142
|
+
declare const MRT_ShowHideColumnsButton: <TData extends MRT_RowData>({ table, title, ...rest }: Props$D<TData>) => react_jsx_runtime.JSX.Element;
|
|
1143
|
+
|
|
1144
|
+
interface Props$C<TData extends MRT_RowData> extends ActionIconProps, HTMLPropsRef<HTMLButtonElement> {
|
|
1145
|
+
table: MRT_TableInstance<TData>;
|
|
1146
|
+
}
|
|
1147
|
+
declare const MRT_ToggleDensePaddingButton: <TData extends MRT_RowData>({ table: { getState, options: { icons: { IconBaselineDensityLarge, IconBaselineDensityMedium, IconBaselineDensitySmall, }, localization: { toggleDensity }, }, setDensity, }, title, ...rest }: Props$C<TData>) => react_jsx_runtime.JSX.Element;
|
|
1148
|
+
|
|
1149
|
+
interface Props$B<TData extends MRT_RowData> extends ActionIconProps, HTMLPropsRef<HTMLButtonElement> {
|
|
1150
|
+
table: MRT_TableInstance<TData>;
|
|
1151
|
+
}
|
|
1152
|
+
declare const MRT_ToggleFiltersButton: <TData extends MRT_RowData>({ table: { getState, options: { icons: { IconFilter, IconFilterOff }, localization: { showHideFilters }, }, setShowColumnFilters, }, title, ...rest }: Props$B<TData>) => react_jsx_runtime.JSX.Element;
|
|
1153
|
+
|
|
1154
|
+
interface Props$A<TData extends MRT_RowData> extends ActionIconProps, HTMLPropsRef<HTMLButtonElement> {
|
|
1155
|
+
table: MRT_TableInstance<TData>;
|
|
1156
|
+
}
|
|
1157
|
+
declare const MRT_ToggleFullScreenButton: <TData extends MRT_RowData>({ table: { getState, options: { icons: { IconMaximize, IconMinimize }, localization: { toggleFullScreen }, }, setIsFullScreen, }, title, ...rest }: Props$A<TData>) => react_jsx_runtime.JSX.Element;
|
|
1158
|
+
|
|
1159
|
+
interface Props$z<TData extends MRT_RowData> extends ActionIconProps, HTMLPropsRef<HTMLButtonElement> {
|
|
1160
|
+
table: MRT_TableInstance<TData>;
|
|
1161
|
+
}
|
|
1162
|
+
declare const MRT_ToggleGlobalFilterButton: <TData extends MRT_RowData>({ table: { getState, options: { icons: { IconSearch, IconSearchOff }, localization: { showHideSearch }, }, refs: { searchInputRef }, setShowGlobalFilter, }, title, ...rest }: Props$z<TData>) => react_jsx_runtime.JSX.Element;
|
|
1163
|
+
|
|
1164
|
+
interface Props$y<TData extends MRT_RowData, TValue = MRT_CellValue> {
|
|
1165
|
+
cell: MRT_Cell<TData, TValue>;
|
|
1166
|
+
row: MRT_Row<TData>;
|
|
1167
|
+
table: MRT_TableInstance<TData>;
|
|
1168
|
+
}
|
|
1169
|
+
declare const MRT_ToggleRowActionMenuButton: <TData extends MRT_RowData>({ cell, row, table, }: Props$y<TData>) => react_jsx_runtime.JSX.Element;
|
|
1170
|
+
|
|
1171
|
+
interface Props$x<TData extends MRT_RowData> extends TableTfootProps {
|
|
1172
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
1173
|
+
table: MRT_TableInstance<TData>;
|
|
1174
|
+
}
|
|
1175
|
+
declare const MRT_TableFooter: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: Props$x<TData>) => react_jsx_runtime.JSX.Element;
|
|
1176
|
+
|
|
1177
|
+
interface Props$w<TData extends MRT_RowData> extends TableThProps {
|
|
1178
|
+
footer: MRT_Header<TData>;
|
|
1179
|
+
renderedColumnIndex?: number;
|
|
1180
|
+
table: MRT_TableInstance<TData>;
|
|
1181
|
+
}
|
|
1182
|
+
declare const MRT_TableFooterCell: <TData extends MRT_RowData>({ footer, renderedColumnIndex, table, ...rest }: Props$w<TData>) => react_jsx_runtime.JSX.Element;
|
|
1183
|
+
|
|
1184
|
+
interface Props$v<TData extends MRT_RowData> extends TableTrProps {
|
|
1185
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
1186
|
+
footerGroup: MRT_HeaderGroup<TData>;
|
|
1187
|
+
table: MRT_TableInstance<TData>;
|
|
1188
|
+
}
|
|
1189
|
+
declare const MRT_TableFooterRow: <TData extends MRT_RowData>({ columnVirtualizer, footerGroup, table, ...rest }: Props$v<TData>) => react_jsx_runtime.JSX.Element | null;
|
|
1190
|
+
|
|
1191
|
+
interface Props$u<TData extends MRT_RowData> extends TableTheadProps {
|
|
1192
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
1193
|
+
table: MRT_TableInstance<TData>;
|
|
1194
|
+
}
|
|
1195
|
+
declare const MRT_TableHead: <TData extends MRT_RowData>({ columnVirtualizer, table, ...rest }: Props$u<TData>) => react_jsx_runtime.JSX.Element;
|
|
1196
|
+
|
|
1197
|
+
interface Props$t<TData extends MRT_RowData> extends TableThProps {
|
|
1198
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
1199
|
+
header: MRT_Header<TData>;
|
|
1200
|
+
renderedHeaderIndex?: number;
|
|
1201
|
+
table: MRT_TableInstance<TData>;
|
|
1202
|
+
}
|
|
1203
|
+
declare const MRT_TableHeadCell: <TData extends MRT_RowData>({ columnVirtualizer, header, renderedHeaderIndex, table, ...rest }: Props$t<TData>) => react_jsx_runtime.JSX.Element;
|
|
1204
|
+
|
|
1205
|
+
interface Props$s<TData extends MRT_RowData> extends FlexProps {
|
|
1206
|
+
header: MRT_Header<TData>;
|
|
1207
|
+
table: MRT_TableInstance<TData>;
|
|
1208
|
+
}
|
|
1209
|
+
declare const MRT_TableHeadCellFilterContainer: <TData extends MRT_RowData>({ header, table, ...rest }: Props$s<TData>) => react_jsx_runtime.JSX.Element;
|
|
1210
|
+
|
|
1211
|
+
interface Props$r<TData extends MRT_RowData> extends ActionIconProps {
|
|
1212
|
+
header: MRT_Header<TData>;
|
|
1213
|
+
table: MRT_TableInstance<TData>;
|
|
1214
|
+
}
|
|
1215
|
+
declare const MRT_TableHeadCellFilterLabel: <TData extends MRT_RowData>({ header, table, ...rest }: Props$r<TData>) => react_jsx_runtime.JSX.Element;
|
|
1216
|
+
|
|
1217
|
+
interface Props$q<TData extends MRT_RowData, TValue = MRT_CellValue> extends ActionIconProps {
|
|
1218
|
+
column: MRT_Column<TData, TValue>;
|
|
1219
|
+
table: MRT_TableInstance<TData>;
|
|
1220
|
+
tableHeadCellRef: RefObject<HTMLTableCellElement | null>;
|
|
1221
|
+
}
|
|
1222
|
+
declare const MRT_TableHeadCellGrabHandle: <TData extends MRT_RowData>({ column, table, tableHeadCellRef, ...rest }: Props$q<TData>) => react_jsx_runtime.JSX.Element;
|
|
1223
|
+
|
|
1224
|
+
interface Props$p<TData extends MRT_RowData> extends BoxProps {
|
|
1225
|
+
header: MRT_Header<TData>;
|
|
1226
|
+
table: MRT_TableInstance<TData>;
|
|
1227
|
+
}
|
|
1228
|
+
declare const MRT_TableHeadCellResizeHandle: <TData extends MRT_RowData>({ header, table, ...rest }: Props$p<TData>) => react_jsx_runtime.JSX.Element;
|
|
1229
|
+
|
|
1230
|
+
interface Props$o<TData extends MRT_RowData> extends ActionIconProps {
|
|
1231
|
+
header: MRT_Header<TData>;
|
|
1232
|
+
table: MRT_TableInstance<TData>;
|
|
1233
|
+
}
|
|
1234
|
+
declare const MRT_TableHeadCellSortLabel: <TData extends MRT_RowData>({ header, table, ...rest }: Props$o<TData>) => react_jsx_runtime.JSX.Element;
|
|
1235
|
+
|
|
1236
|
+
interface Props$n<TData extends MRT_RowData> extends TableTrProps {
|
|
1237
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
1238
|
+
headerGroup: MRT_HeaderGroup<TData>;
|
|
1239
|
+
table: MRT_TableInstance<TData>;
|
|
1240
|
+
}
|
|
1241
|
+
declare const MRT_TableHeadRow: <TData extends MRT_RowData>({ columnVirtualizer, headerGroup, table, ...rest }: Props$n<TData>) => react_jsx_runtime.JSX.Element;
|
|
1242
|
+
|
|
1243
|
+
interface PropsTextInput<TData extends MRT_RowData, TValue = MRT_CellValue> extends TextInputProps {
|
|
1244
|
+
cell: MRT_Cell<TData, TValue>;
|
|
1245
|
+
table: MRT_TableInstance<TData>;
|
|
1246
|
+
}
|
|
1247
|
+
interface PropsSelect<TData extends MRT_RowData, TValue = MRT_CellValue> extends SelectProps {
|
|
1248
|
+
cell: MRT_Cell<TData, TValue>;
|
|
1249
|
+
table: MRT_TableInstance<TData>;
|
|
1250
|
+
}
|
|
1251
|
+
interface PropsMultiSelect<TData extends MRT_RowData, TValue = MRT_CellValue> extends MultiSelectProps {
|
|
1252
|
+
cell: MRT_Cell<TData, TValue>;
|
|
1253
|
+
table: MRT_TableInstance<TData>;
|
|
1254
|
+
}
|
|
1255
|
+
declare const MRT_EditCellTextInput: <TData extends MRT_RowData>({ cell, table, ...rest }: PropsMultiSelect<TData> | PropsSelect<TData> | PropsTextInput<TData>) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1256
|
+
|
|
1257
|
+
interface Props$m<TData extends MRT_RowData, TValue = MRT_CellValue> extends CheckboxProps {
|
|
1258
|
+
column: MRT_Column<TData, TValue>;
|
|
1259
|
+
table: MRT_TableInstance<TData>;
|
|
1260
|
+
}
|
|
1261
|
+
declare const MRT_FilterCheckbox: <TData extends MRT_RowData>({ column, table, ...rest }: Props$m<TData>) => react_jsx_runtime.JSX.Element;
|
|
1262
|
+
|
|
1263
|
+
interface Props$l<TData extends MRT_RowData> extends BoxProps {
|
|
1264
|
+
header: MRT_Header<TData>;
|
|
1265
|
+
table: MRT_TableInstance<TData>;
|
|
1266
|
+
}
|
|
1267
|
+
declare const MRT_FilterRangeFields: <TData extends MRT_RowData>({ header, table, ...rest }: Props$l<TData>) => react_jsx_runtime.JSX.Element;
|
|
1268
|
+
|
|
1269
|
+
interface Props$k<TData extends MRT_RowData> extends RangeSliderProps {
|
|
1270
|
+
header: MRT_Header<TData>;
|
|
1271
|
+
table: MRT_TableInstance<TData>;
|
|
1272
|
+
}
|
|
1273
|
+
declare const MRT_FilterRangeSlider: <TData extends MRT_RowData>({ header, table, ...rest }: Props$k<TData>) => react_jsx_runtime.JSX.Element;
|
|
1274
|
+
|
|
1275
|
+
interface Props$j<TData extends MRT_RowData> extends TextInputProps {
|
|
1276
|
+
header: MRT_Header<TData>;
|
|
1277
|
+
rangeFilterIndex?: number;
|
|
1278
|
+
table: MRT_TableInstance<TData>;
|
|
1279
|
+
}
|
|
1280
|
+
declare const MRT_FilterTextInput: <TData extends MRT_RowData>({ header, rangeFilterIndex, table, ...rest }: Props$j<TData>) => react_jsx_runtime.JSX.Element;
|
|
1281
|
+
|
|
1282
|
+
interface Props$i<TData extends MRT_RowData> extends TextInputProps {
|
|
1283
|
+
table: MRT_TableInstance<TData>;
|
|
1284
|
+
}
|
|
1285
|
+
declare const MRT_GlobalFilterTextInput: <TData extends MRT_RowData>({ table, ...rest }: Props$i<TData>) => react_jsx_runtime.JSX.Element;
|
|
1286
|
+
|
|
1287
|
+
interface Props$h<TData extends MRT_RowData> extends CheckboxProps {
|
|
1288
|
+
renderedRowIndex?: number;
|
|
1289
|
+
row?: MRT_Row<TData>;
|
|
1290
|
+
table: MRT_TableInstance<TData>;
|
|
1291
|
+
}
|
|
1292
|
+
declare const MRT_SelectCheckbox: <TData extends MRT_RowData>({ renderedRowIndex, row, table, ...rest }: Props$h<TData>) => react_jsx_runtime.JSX.Element;
|
|
1293
|
+
|
|
1294
|
+
type TableInstanceProp<TData extends MRT_RowData> = {
|
|
1295
|
+
table: MRT_TableInstance<TData>;
|
|
1296
|
+
};
|
|
1297
|
+
type Props$g<TData extends MRT_RowData> = Xor<TableInstanceProp<TData>, MRT_TableOptions<TData>>;
|
|
1298
|
+
declare const MantineReactTable: <TData extends MRT_RowData>(props: Props$g<TData>) => react_jsx_runtime.JSX.Element;
|
|
1299
|
+
|
|
1300
|
+
interface Props$f<TData extends MRT_RowData> extends MenuProps {
|
|
1301
|
+
header: MRT_Header<TData>;
|
|
1302
|
+
table: MRT_TableInstance<TData>;
|
|
1303
|
+
}
|
|
1304
|
+
declare const MRT_ColumnActionMenu: <TData extends MRT_RowData>({ header, table, ...rest }: Props$f<TData>) => react_jsx_runtime.JSX.Element;
|
|
1305
|
+
|
|
1306
|
+
declare const mrtFilterOptions: (localization: MRT_Localization) => MRT_InternalFilterOption[];
|
|
1307
|
+
interface Props$e<TData extends MRT_RowData> {
|
|
1308
|
+
header?: MRT_Header<TData>;
|
|
1309
|
+
onSelect?: () => void;
|
|
1310
|
+
table: MRT_TableInstance<TData>;
|
|
1311
|
+
}
|
|
1312
|
+
declare const MRT_FilterOptionMenu: <TData extends MRT_RowData>({ header, onSelect, table, }: Props$e<TData>) => react_jsx_runtime.JSX.Element;
|
|
1313
|
+
|
|
1314
|
+
interface Props$d<TData extends MRT_RowData> extends ActionIconProps {
|
|
1315
|
+
handleEdit: (event: MouseEvent) => void;
|
|
1316
|
+
row: MRT_Row<TData>;
|
|
1317
|
+
table: MRT_TableInstance<TData>;
|
|
1318
|
+
}
|
|
1319
|
+
declare const MRT_RowActionMenu: <TData extends MRT_RowData>({ handleEdit, row, table, ...rest }: Props$d<TData>) => react_jsx_runtime.JSX.Element;
|
|
1320
|
+
|
|
1321
|
+
interface Props$c<TData extends MRT_RowData> {
|
|
1322
|
+
table: MRT_TableInstance<TData>;
|
|
1323
|
+
}
|
|
1324
|
+
declare const MRT_ShowHideColumnsMenu: <TData extends MRT_RowData>({ table, }: Props$c<TData>) => react_jsx_runtime.JSX.Element;
|
|
1325
|
+
|
|
1326
|
+
interface Props$b<TData extends MRT_RowData, TValue = MRT_CellValue> {
|
|
1327
|
+
allColumns: MRT_Column<TData>[];
|
|
1328
|
+
column: MRT_Column<TData, TValue>;
|
|
1329
|
+
hoveredColumn: MRT_Column<TData> | null;
|
|
1330
|
+
setHoveredColumn: Dispatch<SetStateAction<MRT_Column<TData> | null>>;
|
|
1331
|
+
table: MRT_TableInstance<TData>;
|
|
1332
|
+
}
|
|
1333
|
+
declare const MRT_ShowHideColumnsMenuItems: <TData extends MRT_RowData>({ allColumns, column, hoveredColumn, setHoveredColumn, table, }: Props$b<TData>) => react_jsx_runtime.JSX.Element | null;
|
|
1334
|
+
|
|
1335
|
+
interface Props$a<TData extends MRT_RowData> extends Partial<ModalProps> {
|
|
1336
|
+
open: boolean;
|
|
1337
|
+
table: MRT_TableInstance<TData>;
|
|
1338
|
+
}
|
|
1339
|
+
declare const MRT_EditRowModal: <TData extends MRT_RowData>({ open, table, ...rest }: Props$a<TData>) => react_jsx_runtime.JSX.Element;
|
|
1340
|
+
|
|
1341
|
+
interface Props$9<TData extends MRT_RowData> extends TableProps {
|
|
1342
|
+
table: MRT_TableInstance<TData>;
|
|
1343
|
+
}
|
|
1344
|
+
declare const MRT_Table: <TData extends MRT_RowData>({ table, ...rest }: Props$9<TData>) => react_jsx_runtime.JSX.Element;
|
|
1345
|
+
|
|
1346
|
+
interface Props$8<TData extends MRT_RowData> extends BoxProps {
|
|
1347
|
+
table: MRT_TableInstance<TData>;
|
|
1348
|
+
}
|
|
1349
|
+
declare const MRT_TableContainer: <TData extends MRT_RowData>({ table, ...rest }: Props$8<TData>) => react_jsx_runtime.JSX.Element;
|
|
1350
|
+
|
|
1351
|
+
interface Props$7<TData extends MRT_RowData> extends PaperProps {
|
|
1352
|
+
table: MRT_TableInstance<TData>;
|
|
1353
|
+
}
|
|
1354
|
+
declare const MRT_TablePaper: <TData extends MRT_RowData>({ table, ...rest }: Props$7<TData>) => react_jsx_runtime.JSX.Element;
|
|
1355
|
+
|
|
1356
|
+
interface Props$6<TData extends MRT_RowData> extends BoxProps {
|
|
1357
|
+
table: MRT_TableInstance<TData>;
|
|
1358
|
+
}
|
|
1359
|
+
declare const MRT_BottomToolbar: <TData extends MRT_RowData>({ table, ...rest }: Props$6<TData>) => react_jsx_runtime.JSX.Element;
|
|
1360
|
+
|
|
1361
|
+
interface Props$5<TData extends MRT_RowData> extends Partial<ProgressProps> {
|
|
1362
|
+
isTopToolbar: boolean;
|
|
1363
|
+
table: MRT_TableInstance<TData>;
|
|
1364
|
+
}
|
|
1365
|
+
declare const MRT_ProgressBar: <TData extends MRT_RowData>({ isTopToolbar, table, ...rest }: Props$5<TData>) => react_jsx_runtime.JSX.Element;
|
|
1366
|
+
|
|
1367
|
+
interface Props$4<TData extends MRT_RowData> extends Partial<PaginationProps> {
|
|
1368
|
+
position?: 'bottom' | 'top';
|
|
1369
|
+
table: MRT_TableInstance<TData>;
|
|
1370
|
+
}
|
|
1371
|
+
declare const MRT_TablePagination: <TData extends MRT_RowData>({ position, table, ...props }: Props$4<TData>) => react_jsx_runtime.JSX.Element;
|
|
1372
|
+
|
|
1373
|
+
interface Props$3<TData extends MRT_RowData> extends Partial<AlertProps> {
|
|
1374
|
+
stackAlertBanner?: boolean;
|
|
1375
|
+
table: MRT_TableInstance<TData>;
|
|
1376
|
+
}
|
|
1377
|
+
declare const MRT_ToolbarAlertBanner: <TData extends MRT_RowData>({ stackAlertBanner, table, ...rest }: Props$3<TData>) => react_jsx_runtime.JSX.Element;
|
|
1378
|
+
|
|
1379
|
+
interface Props$2<TData extends MRT_RowData> extends FlexProps {
|
|
1380
|
+
table: MRT_TableInstance<TData>;
|
|
1381
|
+
}
|
|
1382
|
+
declare const MRT_ToolbarDropZone: <TData extends MRT_RowData>({ table, ...rest }: Props$2<TData>) => react_jsx_runtime.JSX.Element;
|
|
1383
|
+
|
|
1384
|
+
interface Props$1<TData extends MRT_RowData> extends FlexProps {
|
|
1385
|
+
table: MRT_TableInstance<TData>;
|
|
1386
|
+
}
|
|
1387
|
+
declare const MRT_ToolbarInternalButtons: <TData extends MRT_RowData>({ table, ...rest }: Props$1<TData>) => react_jsx_runtime.JSX.Element;
|
|
1388
|
+
|
|
1389
|
+
interface Props<TData extends MRT_RowData> extends BoxProps {
|
|
1390
|
+
table: MRT_TableInstance<TData>;
|
|
1391
|
+
}
|
|
1392
|
+
declare const MRT_TopToolbar: <TData extends MRT_RowData>({ table, ...rest }: Props<TData>) => react_jsx_runtime.JSX.Element;
|
|
1393
|
+
|
|
1394
|
+
declare const useMantineReactTable: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_TableInstance<TData>;
|
|
1395
|
+
|
|
1396
|
+
declare const useMRT_ColumnVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableCellElement>(table: MRT_TableInstance<TData>) => MRT_ColumnVirtualizer | undefined;
|
|
1397
|
+
|
|
1398
|
+
declare const useMRT_Effects: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => void;
|
|
1399
|
+
|
|
1400
|
+
declare const useMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => MRT_Row<TData>[];
|
|
1401
|
+
|
|
1402
|
+
declare const useMRT_RowVirtualizer: <TData extends MRT_RowData, TScrollElement extends Element | Window = HTMLDivElement, TItemElement extends Element = HTMLTableRowElement>(table: MRT_TableInstance<TData>, rows?: MRT_Row<TData>[]) => MRT_RowVirtualizer<TScrollElement, TItemElement> | undefined;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* The MRT hook that wraps the TanStack useReactTable hook and adds additional functionality
|
|
1406
|
+
* @param definedTableOptions - table options with proper defaults set
|
|
1407
|
+
* @returns the MRT table instance
|
|
1408
|
+
*/
|
|
1409
|
+
declare const useMRT_TableInstance: <TData extends MRT_RowData>(definedTableOptions: MRT_DefinedTableOptions<TData>) => MRT_TableInstance<TData>;
|
|
1410
|
+
|
|
1411
|
+
declare const MRT_DefaultColumn: {
|
|
1412
|
+
readonly filterVariant: "text";
|
|
1413
|
+
readonly maxSize: 1000;
|
|
1414
|
+
readonly minSize: 40;
|
|
1415
|
+
readonly size: 180;
|
|
1416
|
+
};
|
|
1417
|
+
declare const MRT_DefaultDisplayColumn: {
|
|
1418
|
+
readonly columnDefType: "display";
|
|
1419
|
+
readonly enableClickToCopy: false;
|
|
1420
|
+
readonly enableColumnActions: false;
|
|
1421
|
+
readonly enableColumnDragging: false;
|
|
1422
|
+
readonly enableColumnFilter: false;
|
|
1423
|
+
readonly enableColumnOrdering: false;
|
|
1424
|
+
readonly enableEditing: false;
|
|
1425
|
+
readonly enableGlobalFilter: false;
|
|
1426
|
+
readonly enableGrouping: false;
|
|
1427
|
+
readonly enableHiding: false;
|
|
1428
|
+
readonly enableResizing: false;
|
|
1429
|
+
readonly enableSorting: false;
|
|
1430
|
+
};
|
|
1431
|
+
declare const useMRT_TableOptions: <TData extends MRT_RowData>(tableOptions: MRT_TableOptions<TData>) => MRT_DefinedTableOptions<TData>;
|
|
1432
|
+
|
|
1433
|
+
declare const getColumnId: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => string;
|
|
1434
|
+
declare const getAllLeafColumnDefs: <TData extends MRT_RowData>(columns: MRT_ColumnDef<TData>[]) => MRT_ColumnDef<TData>[];
|
|
1435
|
+
declare const prepareColumns: <TData extends MRT_RowData>({ columnDefs, tableOptions, }: {
|
|
1436
|
+
columnDefs: MRT_ColumnDef<TData>[];
|
|
1437
|
+
tableOptions: MRT_DefinedTableOptions<TData>;
|
|
1438
|
+
}) => MRT_DefinedColumnDef<TData>[];
|
|
1439
|
+
declare const reorderColumn: <TData extends MRT_RowData>(draggedColumn: MRT_Column<TData>, targetColumn: MRT_Column<TData>, columnOrder: MRT_ColumnOrderState) => MRT_ColumnOrderState;
|
|
1440
|
+
declare const getDefaultColumnFilterFn: <TData extends MRT_RowData>(columnDef: MRT_ColumnDef<TData>) => MRT_FilterOption;
|
|
1441
|
+
|
|
1442
|
+
declare function defaultDisplayColumnProps<TData extends MRT_RowData>({ header, id, size, tableOptions, }: {
|
|
1443
|
+
header?: keyof MRT_Localization;
|
|
1444
|
+
id: MRT_DisplayColumnIds;
|
|
1445
|
+
size: number;
|
|
1446
|
+
tableOptions: MRT_DefinedTableOptions<TData>;
|
|
1447
|
+
}): MRT_ColumnDef<TData>;
|
|
1448
|
+
declare const showRowPinningColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1449
|
+
declare const showRowDragColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1450
|
+
declare const showRowExpandColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1451
|
+
declare const showRowActionsColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1452
|
+
declare const showRowSelectionColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1453
|
+
declare const showRowNumbersColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1454
|
+
declare const showRowSpacerColumn: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => boolean;
|
|
1455
|
+
declare const getLeadingDisplayColumnIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => MRT_DisplayColumnIds[];
|
|
1456
|
+
declare const getTrailingDisplayColumnIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>) => MRT_DisplayColumnIds[];
|
|
1457
|
+
declare const getDefaultColumnOrderIds: <TData extends MRT_RowData>(tableOptions: MRT_StatefulTableOptions<TData>, reset?: boolean) => string[];
|
|
1458
|
+
|
|
1459
|
+
declare const getMRT_Rows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, all?: boolean) => MRT_Row<TData>[];
|
|
1460
|
+
declare const getCanRankRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => boolean | undefined;
|
|
1461
|
+
declare const getIsRankingRows: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>) => any;
|
|
1462
|
+
declare const getIsRowSelected: <TData extends MRT_RowData>({ row, table, }: {
|
|
1463
|
+
row: MRT_Row<TData>;
|
|
1464
|
+
table: MRT_TableInstance<TData>;
|
|
1465
|
+
}) => boolean | undefined;
|
|
1466
|
+
declare const getMRT_RowSelectionHandler: <TData extends MRT_RowData>({ renderedRowIndex, row, table, }: {
|
|
1467
|
+
renderedRowIndex?: number;
|
|
1468
|
+
row: MRT_Row<TData>;
|
|
1469
|
+
table: MRT_TableInstance<TData>;
|
|
1470
|
+
}) => (event: ChangeEvent<HTMLInputElement> | MouseEvent<HTMLTableRowElement>, value?: boolean) => void;
|
|
1471
|
+
declare const getMRT_SelectAllHandler: <TData extends MRT_RowData>({ table }: {
|
|
1472
|
+
table: MRT_TableInstance<TData>;
|
|
1473
|
+
}) => (event: ChangeEvent<HTMLInputElement> | MouseEvent<HTMLButtonElement>, value?: boolean, forceAll?: boolean) => void;
|
|
1474
|
+
|
|
1475
|
+
declare const parseCSSVarId: (id: string) => string;
|
|
1476
|
+
declare const getPrimaryShade: (theme: MantineTheme) => number;
|
|
1477
|
+
declare const getPrimaryColor: (theme: MantineTheme, shade?: MantineShade) => string;
|
|
1478
|
+
declare function dataVariable(name: string, value: boolean | number | string | undefined): {
|
|
1479
|
+
[x: string]: string;
|
|
1480
|
+
} | null;
|
|
1481
|
+
|
|
1482
|
+
declare const flexRender: (Comp: Renderable<any>, props: any) => JSX.Element | ReactNode;
|
|
1483
|
+
declare function createMRTColumnHelper<TData extends MRT_RowData>(): MRT_ColumnHelper<TData>;
|
|
1484
|
+
declare const createRow: <TData extends MRT_RowData>(table: MRT_TableInstance<TData>, originalRow?: TData, rowIndex?: number, depth?: number, subRows?: MRT_Row<TData>[], parentId?: string) => MRT_Row<TData>;
|
|
1485
|
+
|
|
1486
|
+
declare const parseFromValuesOrFunc: <T, U>(fn: ((arg: U) => T) | T | undefined, arg: U) => T | undefined;
|
|
1487
|
+
|
|
1488
|
+
export { type HTMLPropsRef, type LiteralUnion, type MRT_AggregationFn, MRT_AggregationFns, type MRT_AggregationOption, MRT_BottomToolbar, type MRT_Cell, type MRT_CellValue, type MRT_Column, MRT_ColumnActionMenu, type MRT_ColumnDef, type MRT_ColumnFilterFnsState, type MRT_ColumnFiltersState, type MRT_ColumnHelper, type MRT_ColumnOrderState, MRT_ColumnPinningButtons, type MRT_ColumnPinningState, type MRT_ColumnSizingInfoState, type MRT_ColumnSizingState, type MRT_ColumnVirtualizer, MRT_CopyButton, type MRT_CreateTableFeature, MRT_DefaultColumn, MRT_DefaultDisplayColumn, type MRT_DefinedColumnDef, type MRT_DefinedTableOptions, type MRT_DensityState, type MRT_DisplayColumnDef, type MRT_DisplayColumnIds, MRT_EditActionButtons, MRT_EditCellTextInput, MRT_EditRowModal, MRT_ExpandAllButton, MRT_ExpandButton, type MRT_ExpandedState, MRT_FilterCheckbox, type MRT_FilterFn, MRT_FilterFns, type MRT_FilterOption, MRT_FilterOptionMenu, MRT_FilterRangeFields, MRT_FilterRangeSlider, MRT_FilterTextInput, type MRT_FilterTooltipValueFn, MRT_GlobalFilterTextInput, MRT_GrabHandleButton, type MRT_GroupColumnDef, type MRT_GroupingState, type MRT_Header, type MRT_HeaderGroup, type MRT_Icons, type MRT_InternalFilterOption, type MRT_Localization, type MRT_PaginationProps, type MRT_PaginationState, MRT_ProgressBar, type MRT_Row, MRT_RowActionMenu, type MRT_RowData, type MRT_RowModel, MRT_RowPinButton, type MRT_RowSelectionState, type MRT_RowVirtualizer, MRT_SelectCheckbox, MRT_ShowHideColumnsButton, MRT_ShowHideColumnsMenu, MRT_ShowHideColumnsMenuItems, type MRT_SortingFn, MRT_SortingFns, type MRT_SortingOption, type MRT_SortingState, type MRT_StatefulTableOptions, MRT_Table, MRT_TableBody, MRT_TableBodyCell, MRT_TableBodyCellValue, MRT_TableBodyEmptyRow, type MRT_TableBodyProps, MRT_TableBodyRow, MRT_TableBodyRowGrabHandle, MRT_TableBodyRowPinButton, MRT_TableContainer, MRT_TableDetailPanel, MRT_TableFooter, MRT_TableFooterCell, MRT_TableFooterRow, MRT_TableHead, MRT_TableHeadCell, MRT_TableHeadCellFilterContainer, MRT_TableHeadCellFilterLabel, MRT_TableHeadCellGrabHandle, MRT_TableHeadCellResizeHandle, MRT_TableHeadCellSortLabel, MRT_TableHeadRow, type MRT_TableInstance, type MRT_TableOptions, MRT_TablePagination, MRT_TablePaper, type MRT_TableState, MRT_ToggleDensePaddingButton, MRT_ToggleFiltersButton, MRT_ToggleFullScreenButton, MRT_ToggleGlobalFilterButton, MRT_ToggleRowActionMenuButton, MRT_ToolbarAlertBanner, MRT_ToolbarDropZone, MRT_ToolbarInternalButtons, MRT_TopToolbar, type MRT_Updater, type MRT_VirtualItem, type MRT_VirtualizerOptions, type MRT_VisibilityState, MantineReactTable, type MantineShade, Memo_MRT_TableBody, Memo_MRT_TableBodyCell, Memo_MRT_TableBodyRow, type Prettify, type Xor, createMRTColumnHelper, createRow, dataVariable, defaultDisplayColumnProps, flexRender, getAllLeafColumnDefs, getCanRankRows, getColumnId, getDefaultColumnFilterFn, getDefaultColumnOrderIds, getIsRankingRows, getIsRowSelected, getLeadingDisplayColumnIds, getMRT_RowSelectionHandler, getMRT_Rows, getMRT_SelectAllHandler, getPrimaryColor, getPrimaryShade, getTrailingDisplayColumnIds, localizedFilterOption, mrtFilterOptions, parseCSSVarId, parseFromValuesOrFunc, prepareColumns, rankGlobalFuzzy, reorderColumn, showRowActionsColumn, showRowDragColumn, showRowExpandColumn, showRowNumbersColumn, showRowPinningColumn, showRowSelectionColumn, showRowSpacerColumn, useMRT_ColumnVirtualizer, useMRT_Effects, useMRT_RowVirtualizer, useMRT_Rows, useMRT_TableInstance, useMRT_TableOptions, useMantineReactTable };
|