@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,72 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
|
|
3
|
+
import classes from './MRT_TableFooter.module.css';
|
|
4
|
+
|
|
5
|
+
import { TableTfoot, type TableTfootProps } from '@mantine/core';
|
|
6
|
+
|
|
7
|
+
import { MRT_TableFooterRow } from './MRT_TableFooterRow';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
type MRT_ColumnVirtualizer,
|
|
11
|
+
type MRT_RowData,
|
|
12
|
+
type MRT_TableInstance,
|
|
13
|
+
} from '../../types';
|
|
14
|
+
import { parseFromValuesOrFunc } from '../../utils/utils';
|
|
15
|
+
|
|
16
|
+
interface Props<TData extends MRT_RowData> extends TableTfootProps {
|
|
17
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
18
|
+
table: MRT_TableInstance<TData>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const MRT_TableFooter = <TData extends MRT_RowData>({
|
|
22
|
+
columnVirtualizer,
|
|
23
|
+
table,
|
|
24
|
+
...rest
|
|
25
|
+
}: Props<TData>) => {
|
|
26
|
+
'use no memo';
|
|
27
|
+
const {
|
|
28
|
+
getFooterGroups,
|
|
29
|
+
getState,
|
|
30
|
+
options: { enableStickyFooter, layoutMode, mantineTableFooterProps },
|
|
31
|
+
refs: { tableFooterRef },
|
|
32
|
+
} = table;
|
|
33
|
+
const { isFullScreen } = getState();
|
|
34
|
+
|
|
35
|
+
const tableFooterProps = {
|
|
36
|
+
...parseFromValuesOrFunc(mantineTableFooterProps, {
|
|
37
|
+
table,
|
|
38
|
+
}),
|
|
39
|
+
...rest,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const stickFooter =
|
|
43
|
+
(isFullScreen || enableStickyFooter) && enableStickyFooter !== false;
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<TableTfoot
|
|
47
|
+
{...tableFooterProps}
|
|
48
|
+
className={clsx(
|
|
49
|
+
classes.root,
|
|
50
|
+
tableFooterProps?.className,
|
|
51
|
+
stickFooter && classes.sticky,
|
|
52
|
+
layoutMode?.startsWith('grid') && classes.grid,
|
|
53
|
+
)}
|
|
54
|
+
ref={(ref: HTMLTableSectionElement) => {
|
|
55
|
+
tableFooterRef.current = ref;
|
|
56
|
+
if (tableFooterProps?.ref) {
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
tableFooterProps.ref.current = ref;
|
|
59
|
+
}
|
|
60
|
+
}}
|
|
61
|
+
>
|
|
62
|
+
{getFooterGroups().map((footerGroup) => (
|
|
63
|
+
<MRT_TableFooterRow
|
|
64
|
+
columnVirtualizer={columnVirtualizer}
|
|
65
|
+
footerGroup={footerGroup as any}
|
|
66
|
+
key={footerGroup.id}
|
|
67
|
+
table={table}
|
|
68
|
+
/>
|
|
69
|
+
))}
|
|
70
|
+
</TableTfoot>
|
|
71
|
+
);
|
|
72
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
font-size: 0.8rem;
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
padding: 1rem;
|
|
5
|
+
text-align: var(--mrt-cell-align, left);
|
|
6
|
+
vertical-align: top;
|
|
7
|
+
z-index: 1;
|
|
8
|
+
|
|
9
|
+
&.grid {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: var(--mrt-cell-align, flex-start);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.group {
|
|
15
|
+
text-align: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
background-color: var(--mrt-base-background-color);
|
|
20
|
+
|
|
21
|
+
&[data-column-pinned] {
|
|
22
|
+
position: sticky;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&[data-column-pinned='left'] {
|
|
26
|
+
left: calc(var(--mrt-table-cell-left, 0) * 1px);
|
|
27
|
+
&[data-last-left-pinned] {
|
|
28
|
+
box-shadow: -6px 0 6px -6px alpha(
|
|
29
|
+
light-dark(
|
|
30
|
+
var(--mantine-color-gray-outline),
|
|
31
|
+
var(--mantine-color-dark-outline)
|
|
32
|
+
),
|
|
33
|
+
0.5
|
|
34
|
+
) inset;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-column-pinned='right'] {
|
|
39
|
+
right: calc(var(--mrt-table-cell-right, 0) * 1px);
|
|
40
|
+
&[data-first-right-pinned] {
|
|
41
|
+
box-shadow: 6px 0 6px -6px alpha(
|
|
42
|
+
light-dark(
|
|
43
|
+
var(--mantine-color-gray-outline),
|
|
44
|
+
var(--mantine-color-dark-outline)
|
|
45
|
+
),
|
|
46
|
+
0.5
|
|
47
|
+
) inset;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
|
|
3
|
+
import classes from './MRT_TableFooterCell.module.css';
|
|
4
|
+
|
|
5
|
+
import { type CSSProperties } from 'react';
|
|
6
|
+
|
|
7
|
+
import { TableTh, type TableThProps, useDirection } from '@mantine/core';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
type MRT_Header,
|
|
11
|
+
type MRT_RowData,
|
|
12
|
+
type MRT_TableInstance,
|
|
13
|
+
} from '../../types';
|
|
14
|
+
import { parseCSSVarId } from '../../utils/style.utils';
|
|
15
|
+
import { parseFromValuesOrFunc } from '../../utils/utils';
|
|
16
|
+
|
|
17
|
+
interface Props<TData extends MRT_RowData> extends TableThProps {
|
|
18
|
+
footer: MRT_Header<TData>;
|
|
19
|
+
renderedColumnIndex?: number;
|
|
20
|
+
table: MRT_TableInstance<TData>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const MRT_TableFooterCell = <TData extends MRT_RowData>({
|
|
24
|
+
footer,
|
|
25
|
+
renderedColumnIndex,
|
|
26
|
+
table,
|
|
27
|
+
...rest
|
|
28
|
+
}: Props<TData>) => {
|
|
29
|
+
'use no memo';
|
|
30
|
+
const direction = useDirection();
|
|
31
|
+
const {
|
|
32
|
+
options: { enableColumnPinning, layoutMode, mantineTableFooterCellProps },
|
|
33
|
+
} = table;
|
|
34
|
+
const { column } = footer;
|
|
35
|
+
const { columnDef } = column;
|
|
36
|
+
const { columnDefType } = columnDef;
|
|
37
|
+
|
|
38
|
+
const isColumnPinned =
|
|
39
|
+
enableColumnPinning &&
|
|
40
|
+
columnDef.columnDefType !== 'group' &&
|
|
41
|
+
column.getIsPinned();
|
|
42
|
+
|
|
43
|
+
const args = { column, table };
|
|
44
|
+
const tableCellProps = {
|
|
45
|
+
...parseFromValuesOrFunc(mantineTableFooterCellProps, args),
|
|
46
|
+
...parseFromValuesOrFunc(columnDef.mantineTableFooterCellProps, args),
|
|
47
|
+
...rest,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const widthStyles: CSSProperties = {
|
|
51
|
+
minWidth: `max(calc(var(--header-${parseCSSVarId(
|
|
52
|
+
footer?.id,
|
|
53
|
+
)}-size) * 1px), ${columnDef.minSize ?? 30}px)`,
|
|
54
|
+
width: `calc(var(--header-${parseCSSVarId(footer.id)}-size) * 1px)`,
|
|
55
|
+
};
|
|
56
|
+
if (layoutMode === 'grid') {
|
|
57
|
+
widthStyles.flex = `${
|
|
58
|
+
[0, false].includes(columnDef.grow!)
|
|
59
|
+
? 0
|
|
60
|
+
: `var(--header-${parseCSSVarId(footer.id)}-size)`
|
|
61
|
+
} 0 auto`;
|
|
62
|
+
} else if (layoutMode === 'grid-no-grow') {
|
|
63
|
+
widthStyles.flex = `${+(columnDef.grow || 0)} 0 auto`;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<TableTh
|
|
68
|
+
colSpan={footer.colSpan}
|
|
69
|
+
data-column-pinned={isColumnPinned || undefined}
|
|
70
|
+
data-first-right-pinned={
|
|
71
|
+
(isColumnPinned === 'right' &&
|
|
72
|
+
column.getIsFirstColumn(isColumnPinned)) ||
|
|
73
|
+
undefined
|
|
74
|
+
}
|
|
75
|
+
data-index={renderedColumnIndex}
|
|
76
|
+
data-last-left-pinned={
|
|
77
|
+
(isColumnPinned === 'left' && column.getIsLastColumn(isColumnPinned)) ||
|
|
78
|
+
undefined
|
|
79
|
+
}
|
|
80
|
+
{...tableCellProps}
|
|
81
|
+
__vars={{
|
|
82
|
+
'--mrt-cell-align':
|
|
83
|
+
tableCellProps.align ??
|
|
84
|
+
(columnDefType === 'group'
|
|
85
|
+
? 'center'
|
|
86
|
+
: direction.dir === 'rtl'
|
|
87
|
+
? 'right'
|
|
88
|
+
: 'left'),
|
|
89
|
+
'--mrt-table-cell-left':
|
|
90
|
+
isColumnPinned === 'left'
|
|
91
|
+
? `${column.getStart(isColumnPinned)}`
|
|
92
|
+
: undefined,
|
|
93
|
+
'--mrt-table-cell-right':
|
|
94
|
+
isColumnPinned === 'right'
|
|
95
|
+
? `${column.getAfter(isColumnPinned)}`
|
|
96
|
+
: undefined,
|
|
97
|
+
...tableCellProps?.__vars,
|
|
98
|
+
}}
|
|
99
|
+
className={clsx(
|
|
100
|
+
classes.root,
|
|
101
|
+
layoutMode?.startsWith('grid') && classes.grid,
|
|
102
|
+
columnDefType === 'group' && classes.group,
|
|
103
|
+
tableCellProps?.className,
|
|
104
|
+
)}
|
|
105
|
+
style={(theme) => ({
|
|
106
|
+
...widthStyles,
|
|
107
|
+
...parseFromValuesOrFunc(tableCellProps.style, theme),
|
|
108
|
+
})}
|
|
109
|
+
>
|
|
110
|
+
{tableCellProps.children ??
|
|
111
|
+
(footer.isPlaceholder
|
|
112
|
+
? null
|
|
113
|
+
: (parseFromValuesOrFunc(columnDef.Footer, {
|
|
114
|
+
column,
|
|
115
|
+
footer,
|
|
116
|
+
table,
|
|
117
|
+
}) ??
|
|
118
|
+
columnDef.footer ??
|
|
119
|
+
null))}
|
|
120
|
+
</TableTh>
|
|
121
|
+
);
|
|
122
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: table-row;
|
|
4
|
+
&.layout-mode-grid {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
7
|
+
background-color: light-dark(var(--light-bg-color), var(--dark-bg-color));
|
|
8
|
+
border-top: 1px solid
|
|
9
|
+
light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
|
|
10
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
|
|
3
|
+
import classes from './MRT_TableFooterRow.module.css';
|
|
4
|
+
|
|
5
|
+
import { Box, TableTr, type TableTrProps } from '@mantine/core';
|
|
6
|
+
|
|
7
|
+
import { MRT_TableFooterCell } from './MRT_TableFooterCell';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
type MRT_ColumnVirtualizer,
|
|
11
|
+
type MRT_Header,
|
|
12
|
+
type MRT_HeaderGroup,
|
|
13
|
+
type MRT_RowData,
|
|
14
|
+
type MRT_TableInstance,
|
|
15
|
+
type MRT_VirtualItem,
|
|
16
|
+
} from '../../types';
|
|
17
|
+
import { parseFromValuesOrFunc } from '../../utils/utils';
|
|
18
|
+
|
|
19
|
+
interface Props<TData extends MRT_RowData> extends TableTrProps {
|
|
20
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
21
|
+
footerGroup: MRT_HeaderGroup<TData>;
|
|
22
|
+
table: MRT_TableInstance<TData>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const MRT_TableFooterRow = <TData extends MRT_RowData>({
|
|
26
|
+
columnVirtualizer,
|
|
27
|
+
footerGroup,
|
|
28
|
+
table,
|
|
29
|
+
...rest
|
|
30
|
+
}: Props<TData>) => {
|
|
31
|
+
'use no memo';
|
|
32
|
+
const {
|
|
33
|
+
options: { layoutMode, mantineTableFooterRowProps },
|
|
34
|
+
} = table;
|
|
35
|
+
|
|
36
|
+
const { virtualColumns, virtualPaddingLeft, virtualPaddingRight } =
|
|
37
|
+
columnVirtualizer ?? {};
|
|
38
|
+
|
|
39
|
+
// if no content in row, skip row
|
|
40
|
+
if (
|
|
41
|
+
!footerGroup.headers?.some(
|
|
42
|
+
(header) =>
|
|
43
|
+
(typeof header.column.columnDef.footer === 'string' &&
|
|
44
|
+
!!header.column.columnDef.footer) ||
|
|
45
|
+
header.column.columnDef.Footer,
|
|
46
|
+
)
|
|
47
|
+
) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const tableRowProps = {
|
|
52
|
+
...parseFromValuesOrFunc(mantineTableFooterRowProps, {
|
|
53
|
+
footerGroup,
|
|
54
|
+
table,
|
|
55
|
+
}),
|
|
56
|
+
...rest,
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<TableTr
|
|
61
|
+
className={clsx(
|
|
62
|
+
classes.root,
|
|
63
|
+
layoutMode?.startsWith('grid') && classes['layout-mode-grid'],
|
|
64
|
+
)}
|
|
65
|
+
{...tableRowProps}
|
|
66
|
+
>
|
|
67
|
+
{virtualPaddingLeft ? (
|
|
68
|
+
<Box component="th" display="flex" w={virtualPaddingLeft} />
|
|
69
|
+
) : null}
|
|
70
|
+
{(virtualColumns ?? footerGroup.headers).map(
|
|
71
|
+
(footerOrVirtualFooter, renderedColumnIndex) => {
|
|
72
|
+
let footer = footerOrVirtualFooter as MRT_Header<TData>;
|
|
73
|
+
if (columnVirtualizer) {
|
|
74
|
+
renderedColumnIndex = (footerOrVirtualFooter as MRT_VirtualItem)
|
|
75
|
+
.index;
|
|
76
|
+
footer = footerGroup.headers[renderedColumnIndex];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<MRT_TableFooterCell
|
|
81
|
+
footer={footer}
|
|
82
|
+
key={footer.id}
|
|
83
|
+
renderedColumnIndex={renderedColumnIndex}
|
|
84
|
+
table={table}
|
|
85
|
+
/>
|
|
86
|
+
);
|
|
87
|
+
},
|
|
88
|
+
)}
|
|
89
|
+
{virtualPaddingRight ? (
|
|
90
|
+
<Box component="th" display="flex" w={virtualPaddingRight} />
|
|
91
|
+
) : null}
|
|
92
|
+
</TableTr>
|
|
93
|
+
);
|
|
94
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
background-color: var(--mrt-base-background-color);
|
|
3
|
+
opacity: 0.97;
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.root-grid {
|
|
8
|
+
display: grid;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.root-table-row-group {
|
|
12
|
+
display: table-row-group;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.root-sticky {
|
|
16
|
+
position: sticky;
|
|
17
|
+
top: 0;
|
|
18
|
+
z-index: 3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.banner-tr {
|
|
22
|
+
display: table-row;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.banner-th {
|
|
26
|
+
display: table-cell;
|
|
27
|
+
padding: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.grid {
|
|
31
|
+
display: grid;
|
|
32
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
|
|
3
|
+
import classes from './MRT_TableHead.module.css';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
TableTh,
|
|
7
|
+
TableThead,
|
|
8
|
+
type TableTheadProps,
|
|
9
|
+
TableTr,
|
|
10
|
+
} from '@mantine/core';
|
|
11
|
+
|
|
12
|
+
import { MRT_TableHeadRow } from './MRT_TableHeadRow';
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
type MRT_ColumnVirtualizer,
|
|
16
|
+
type MRT_RowData,
|
|
17
|
+
type MRT_TableInstance,
|
|
18
|
+
} from '../../types';
|
|
19
|
+
import { parseFromValuesOrFunc } from '../../utils/utils';
|
|
20
|
+
import { MRT_ToolbarAlertBanner } from '../toolbar/MRT_ToolbarAlertBanner';
|
|
21
|
+
|
|
22
|
+
interface Props<TData extends MRT_RowData> extends TableTheadProps {
|
|
23
|
+
columnVirtualizer?: MRT_ColumnVirtualizer;
|
|
24
|
+
table: MRT_TableInstance<TData>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const MRT_TableHead = <TData extends MRT_RowData>({
|
|
28
|
+
columnVirtualizer,
|
|
29
|
+
table,
|
|
30
|
+
...rest
|
|
31
|
+
}: Props<TData>) => {
|
|
32
|
+
'use no memo';
|
|
33
|
+
const {
|
|
34
|
+
getHeaderGroups,
|
|
35
|
+
getSelectedRowModel,
|
|
36
|
+
getState,
|
|
37
|
+
options: {
|
|
38
|
+
enableStickyHeader,
|
|
39
|
+
layoutMode,
|
|
40
|
+
mantineTableHeadProps,
|
|
41
|
+
positionToolbarAlertBanner,
|
|
42
|
+
},
|
|
43
|
+
refs: { tableHeadRef },
|
|
44
|
+
} = table;
|
|
45
|
+
const { isFullScreen, showAlertBanner } = getState();
|
|
46
|
+
|
|
47
|
+
const tableHeadProps = {
|
|
48
|
+
...parseFromValuesOrFunc(mantineTableHeadProps, {
|
|
49
|
+
table,
|
|
50
|
+
}),
|
|
51
|
+
...rest,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const stickyHeader = enableStickyHeader || isFullScreen;
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<TableThead
|
|
58
|
+
{...tableHeadProps}
|
|
59
|
+
className={clsx(
|
|
60
|
+
classes.root,
|
|
61
|
+
layoutMode?.startsWith('grid')
|
|
62
|
+
? classes['root-grid']
|
|
63
|
+
: classes['root-table-row-group'],
|
|
64
|
+
stickyHeader && classes['root-sticky'],
|
|
65
|
+
tableHeadProps?.className,
|
|
66
|
+
)}
|
|
67
|
+
pos={
|
|
68
|
+
stickyHeader && layoutMode?.startsWith('grid') ? 'sticky' : 'relative'
|
|
69
|
+
}
|
|
70
|
+
ref={(ref: HTMLTableSectionElement) => {
|
|
71
|
+
tableHeadRef.current = ref;
|
|
72
|
+
if (tableHeadProps?.ref) {
|
|
73
|
+
// @ts-ignore
|
|
74
|
+
tableHeadProps.ref.current = ref;
|
|
75
|
+
}
|
|
76
|
+
}}
|
|
77
|
+
>
|
|
78
|
+
{positionToolbarAlertBanner === 'head-overlay' &&
|
|
79
|
+
(showAlertBanner || getSelectedRowModel().rows.length > 0) ? (
|
|
80
|
+
<TableTr
|
|
81
|
+
className={clsx(
|
|
82
|
+
classes['banner-tr'],
|
|
83
|
+
layoutMode?.startsWith('grid') && classes.grid,
|
|
84
|
+
)}
|
|
85
|
+
>
|
|
86
|
+
<TableTh
|
|
87
|
+
className={clsx(
|
|
88
|
+
classes['banner-th'],
|
|
89
|
+
layoutMode?.startsWith('grid') && classes.grid,
|
|
90
|
+
)}
|
|
91
|
+
colSpan={table.getVisibleLeafColumns().length}
|
|
92
|
+
>
|
|
93
|
+
<MRT_ToolbarAlertBanner table={table} />
|
|
94
|
+
</TableTh>
|
|
95
|
+
</TableTr>
|
|
96
|
+
) : (
|
|
97
|
+
getHeaderGroups().map((headerGroup) => (
|
|
98
|
+
<MRT_TableHeadRow
|
|
99
|
+
columnVirtualizer={columnVirtualizer}
|
|
100
|
+
headerGroup={headerGroup as any}
|
|
101
|
+
key={headerGroup.id}
|
|
102
|
+
table={table}
|
|
103
|
+
/>
|
|
104
|
+
))
|
|
105
|
+
)}
|
|
106
|
+
</TableThead>
|
|
107
|
+
);
|
|
108
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
--resize-border-color: var(--mantine-primary-color-filled);
|
|
3
|
+
--hover-color: var(--mantine-primary-color-filled);
|
|
4
|
+
--drag-color: var(--mantine-color-gray-7);
|
|
5
|
+
--resize-thickness: 2px;
|
|
6
|
+
--hover-thickness: 3px;
|
|
7
|
+
--drag-thickness: 1px;
|
|
8
|
+
|
|
9
|
+
background-color: var(--mrt-base-background-color);
|
|
10
|
+
background-clip: padding-box;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
overflow: visible;
|
|
13
|
+
position: relative;
|
|
14
|
+
transition: padding 150ms ease-in-out;
|
|
15
|
+
vertical-align: top;
|
|
16
|
+
z-index: 1;
|
|
17
|
+
|
|
18
|
+
&:active {
|
|
19
|
+
z-index: 3;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&[data-column-pinned] {
|
|
23
|
+
background-color: var(--mrt-base-background-color);
|
|
24
|
+
opacity: 0.97;
|
|
25
|
+
position: sticky;
|
|
26
|
+
z-index: 4;
|
|
27
|
+
&[data-column-pinned='left'] {
|
|
28
|
+
left: calc(var(--mrt-table-cell-left, 0) * 1px);
|
|
29
|
+
&[data-last-left-pinned] {
|
|
30
|
+
box-shadow: -6px 0 6px -6px alpha(
|
|
31
|
+
light-dark(
|
|
32
|
+
var(--mantine-color-gray-outline),
|
|
33
|
+
var(--mantine-color-dark-outline)
|
|
34
|
+
),
|
|
35
|
+
0.5
|
|
36
|
+
) inset;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-column-pinned='right'] {
|
|
41
|
+
right: calc(var(--mrt-table-cell-right, 0) * 1px);
|
|
42
|
+
&[data-first-right-pinned] {
|
|
43
|
+
box-shadow: 6px 0 6px -6px alpha(
|
|
44
|
+
light-dark(
|
|
45
|
+
var(--mantine-color-gray-outline),
|
|
46
|
+
var(--mantine-color-dark-outline)
|
|
47
|
+
),
|
|
48
|
+
0.5
|
|
49
|
+
) inset;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[data-resizing] {
|
|
55
|
+
&[data-resizing='ltr'] {
|
|
56
|
+
border-right: var(--resize-thickness) solid var(--resize-border-color);
|
|
57
|
+
}
|
|
58
|
+
&[data-resizing='rtl'] {
|
|
59
|
+
border-left: var(--resize-thickness) solid var(--resize-border-color);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[data-dragging-column] {
|
|
64
|
+
border-left: var(--drag-thickness) dashed var(--drag-color);
|
|
65
|
+
border-right: var(--drag-thickness) dashed var(--drag-color);
|
|
66
|
+
border-top: var(--drag-thickness) dashed var(--drag-color);
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
z-index: 3;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-hovered-column-target] {
|
|
72
|
+
border-left: var(--hover-thickness) dashed var(--hover-color);
|
|
73
|
+
border-right: var(--hover-thickness) dashed var(--hover-color);
|
|
74
|
+
border-top: var(--hover-thickness) dashed var(--hover-color);
|
|
75
|
+
z-index: 2;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:global(.mantine-ActionIcon-root) {
|
|
79
|
+
opacity: 0.7;
|
|
80
|
+
transition: opacity 100ms ease-in-out;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
:global(.mantine-ActionIcon-root) {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.root-grid {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.root-virtualized {
|
|
96
|
+
transition: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.root-no-select {
|
|
100
|
+
user-select: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.content {
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: flex-start;
|
|
106
|
+
position: relative;
|
|
107
|
+
width: 100%;
|
|
108
|
+
height: 100%;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.content-spaced {
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.content-center {
|
|
116
|
+
justify-content: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.content-right {
|
|
120
|
+
flex-direction: row-reverse;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.content-wrapper {
|
|
124
|
+
text-overflow: ellipsis;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.content-wrapper-hidden-overflow {
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.content-wrapper-nowrap {
|
|
132
|
+
white-space: nowrap;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.labels {
|
|
136
|
+
align-items: center;
|
|
137
|
+
gap: rem(2px);
|
|
138
|
+
min-height: rem(22px);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.labels-right {
|
|
142
|
+
flex-direction: row-reverse;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.labels-center {
|
|
146
|
+
padding-left: calc(var(--mrt-table-head-cell-labels-padding-left) * 1rem);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.labels-sortable {
|
|
150
|
+
cursor: pointer;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.labels-data {
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.content-actions {
|
|
158
|
+
align-items: center;
|
|
159
|
+
align-self: center;
|
|
160
|
+
white-space: nowrap;
|
|
161
|
+
gap: rem(2px);
|
|
162
|
+
margin-left: rem(2px);
|
|
163
|
+
}
|