@lminii/material-react-table 4.0.0
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 +22 -0
- package/README.md +234 -0
- package/dist/index.d.mts +2408 -0
- package/dist/index.d.ts +2408 -0
- package/dist/index.js +4825 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +4631 -0
- package/dist/index.mjs.map +1 -0
- package/locales/ar/index.d.mts +3 -0
- package/locales/ar/index.d.ts +3 -0
- package/locales/ar/index.js +100 -0
- package/locales/ar/index.mjs +96 -0
- package/locales/ar/package.json +6 -0
- package/locales/az/index.d.mts +3 -0
- package/locales/az/index.d.ts +3 -0
- package/locales/az/index.js +100 -0
- package/locales/az/index.mjs +96 -0
- package/locales/az/package.json +6 -0
- package/locales/bg/index.d.mts +3 -0
- package/locales/bg/index.d.ts +3 -0
- package/locales/bg/index.js +100 -0
- package/locales/bg/index.mjs +96 -0
- package/locales/bg/package.json +6 -0
- package/locales/cs/index.d.mts +3 -0
- package/locales/cs/index.d.ts +3 -0
- package/locales/cs/index.js +100 -0
- package/locales/cs/index.mjs +96 -0
- package/locales/cs/package.json +6 -0
- package/locales/da/index.d.mts +3 -0
- package/locales/da/index.d.ts +3 -0
- package/locales/da/index.js +100 -0
- package/locales/da/index.mjs +96 -0
- package/locales/da/package.json +6 -0
- package/locales/de/index.d.mts +3 -0
- package/locales/de/index.d.ts +3 -0
- package/locales/de/index.js +100 -0
- package/locales/de/index.mjs +96 -0
- package/locales/de/package.json +6 -0
- package/locales/el/index.d.mts +3 -0
- package/locales/el/index.d.ts +3 -0
- package/locales/el/index.js +100 -0
- package/locales/el/index.mjs +96 -0
- package/locales/el/package.json +6 -0
- package/locales/en/index.d.mts +3 -0
- package/locales/en/index.d.ts +3 -0
- package/locales/en/index.js +100 -0
- package/locales/en/index.mjs +96 -0
- package/locales/en/package.json +6 -0
- package/locales/es/index.d.mts +3 -0
- package/locales/es/index.d.ts +3 -0
- package/locales/es/index.js +100 -0
- package/locales/es/index.mjs +96 -0
- package/locales/es/package.json +6 -0
- package/locales/et/index.d.mts +3 -0
- package/locales/et/index.d.ts +3 -0
- package/locales/et/index.js +100 -0
- package/locales/et/index.mjs +96 -0
- package/locales/et/package.json +6 -0
- package/locales/fa/index.d.mts +3 -0
- package/locales/fa/index.d.ts +3 -0
- package/locales/fa/index.js +100 -0
- package/locales/fa/index.mjs +96 -0
- package/locales/fa/package.json +6 -0
- package/locales/fi/index.d.mts +3 -0
- package/locales/fi/index.d.ts +3 -0
- package/locales/fi/index.js +100 -0
- package/locales/fi/index.mjs +96 -0
- package/locales/fi/package.json +6 -0
- package/locales/fr/index.d.mts +3 -0
- package/locales/fr/index.d.ts +3 -0
- package/locales/fr/index.js +100 -0
- package/locales/fr/index.mjs +96 -0
- package/locales/fr/package.json +6 -0
- package/locales/he/index.d.mts +3 -0
- package/locales/he/index.d.ts +3 -0
- package/locales/he/index.js +100 -0
- package/locales/he/index.mjs +96 -0
- package/locales/he/package.json +6 -0
- package/locales/hr/index.d.mts +3 -0
- package/locales/hr/index.d.ts +3 -0
- package/locales/hr/index.js +100 -0
- package/locales/hr/index.mjs +96 -0
- package/locales/hr/package.json +6 -0
- package/locales/hu/index.d.mts +3 -0
- package/locales/hu/index.d.ts +3 -0
- package/locales/hu/index.js +100 -0
- package/locales/hu/index.mjs +96 -0
- package/locales/hu/package.json +6 -0
- package/locales/hy/index.d.mts +3 -0
- package/locales/hy/index.d.ts +3 -0
- package/locales/hy/index.js +100 -0
- package/locales/hy/index.mjs +96 -0
- package/locales/hy/package.json +6 -0
- package/locales/id/index.d.mts +3 -0
- package/locales/id/index.d.ts +3 -0
- package/locales/id/index.js +100 -0
- package/locales/id/index.mjs +96 -0
- package/locales/id/package.json +6 -0
- package/locales/it/index.d.mts +3 -0
- package/locales/it/index.d.ts +3 -0
- package/locales/it/index.js +100 -0
- package/locales/it/index.mjs +96 -0
- package/locales/it/package.json +6 -0
- package/locales/ja/index.d.mts +3 -0
- package/locales/ja/index.d.ts +3 -0
- package/locales/ja/index.js +100 -0
- package/locales/ja/index.mjs +96 -0
- package/locales/ja/package.json +6 -0
- package/locales/ko/index.d.mts +3 -0
- package/locales/ko/index.d.ts +3 -0
- package/locales/ko/index.js +100 -0
- package/locales/ko/index.mjs +96 -0
- package/locales/ko/package.json +6 -0
- package/locales/nl/index.d.mts +3 -0
- package/locales/nl/index.d.ts +3 -0
- package/locales/nl/index.js +100 -0
- package/locales/nl/index.mjs +96 -0
- package/locales/nl/package.json +6 -0
- package/locales/no/index.d.mts +3 -0
- package/locales/no/index.d.ts +3 -0
- package/locales/no/index.js +100 -0
- package/locales/no/index.mjs +96 -0
- package/locales/no/package.json +6 -0
- package/locales/np/index.d.mts +3 -0
- package/locales/np/index.d.ts +3 -0
- package/locales/np/index.js +100 -0
- package/locales/np/index.mjs +96 -0
- package/locales/np/package.json +6 -0
- package/locales/pl/index.d.mts +3 -0
- package/locales/pl/index.d.ts +3 -0
- package/locales/pl/index.js +100 -0
- package/locales/pl/index.mjs +96 -0
- package/locales/pl/package.json +6 -0
- package/locales/pt/index.d.mts +3 -0
- package/locales/pt/index.d.ts +3 -0
- package/locales/pt/index.js +100 -0
- package/locales/pt/index.mjs +96 -0
- package/locales/pt/package.json +6 -0
- package/locales/pt-BR/index.d.mts +3 -0
- package/locales/pt-BR/index.d.ts +3 -0
- package/locales/pt-BR/index.js +100 -0
- package/locales/pt-BR/index.mjs +96 -0
- package/locales/pt-BR/package.json +6 -0
- package/locales/ro/index.d.mts +3 -0
- package/locales/ro/index.d.ts +3 -0
- package/locales/ro/index.js +100 -0
- package/locales/ro/index.mjs +96 -0
- package/locales/ro/package.json +6 -0
- package/locales/ru/index.d.mts +3 -0
- package/locales/ru/index.d.ts +3 -0
- package/locales/ru/index.js +100 -0
- package/locales/ru/index.mjs +96 -0
- package/locales/ru/package.json +6 -0
- package/locales/sk/index.d.mts +3 -0
- package/locales/sk/index.d.ts +3 -0
- package/locales/sk/index.js +100 -0
- package/locales/sk/index.mjs +96 -0
- package/locales/sk/package.json +6 -0
- package/locales/sr-Cyrl-RS/index.d.mts +3 -0
- package/locales/sr-Cyrl-RS/index.d.ts +3 -0
- package/locales/sr-Cyrl-RS/index.js +100 -0
- package/locales/sr-Cyrl-RS/index.mjs +96 -0
- package/locales/sr-Cyrl-RS/package.json +6 -0
- package/locales/sr-Latn-RS/index.d.mts +3 -0
- package/locales/sr-Latn-RS/index.d.ts +3 -0
- package/locales/sr-Latn-RS/index.js +100 -0
- package/locales/sr-Latn-RS/index.mjs +96 -0
- package/locales/sr-Latn-RS/package.json +6 -0
- package/locales/sv/index.d.mts +3 -0
- package/locales/sv/index.d.ts +3 -0
- package/locales/sv/index.js +100 -0
- package/locales/sv/index.mjs +96 -0
- package/locales/sv/package.json +6 -0
- package/locales/tr/index.d.mts +3 -0
- package/locales/tr/index.d.ts +3 -0
- package/locales/tr/index.js +100 -0
- package/locales/tr/index.mjs +96 -0
- package/locales/tr/package.json +6 -0
- package/locales/uk/index.d.mts +3 -0
- package/locales/uk/index.d.ts +3 -0
- package/locales/uk/index.js +100 -0
- package/locales/uk/index.mjs +96 -0
- package/locales/uk/package.json +6 -0
- package/locales/vi/index.d.mts +3 -0
- package/locales/vi/index.d.ts +3 -0
- package/locales/vi/index.js +100 -0
- package/locales/vi/index.mjs +96 -0
- package/locales/vi/package.json +6 -0
- package/locales/zh-Hans/index.d.mts +3 -0
- package/locales/zh-Hans/index.d.ts +3 -0
- package/locales/zh-Hans/index.js +100 -0
- package/locales/zh-Hans/index.mjs +96 -0
- package/locales/zh-Hans/package.json +6 -0
- package/locales/zh-Hant/index.d.mts +3 -0
- package/locales/zh-Hant/index.d.ts +3 -0
- package/locales/zh-Hant/index.js +100 -0
- package/locales/zh-Hant/index.mjs +96 -0
- package/locales/zh-Hant/package.json +6 -0
- package/package.json +147 -0
- package/skills/README.md +81 -0
- package/skills/composable-components/SKILL.md +189 -0
- package/skills/customization/SKILL.md +190 -0
- package/skills/drag-and-drop-ordering/SKILL.md +227 -0
- package/skills/editing/SKILL.md +243 -0
- package/skills/filtering/SKILL.md +213 -0
- package/skills/getting-started/SKILL.md +213 -0
- package/skills/localization/SKILL.md +182 -0
- package/skills/migrate-v3-to-v4/SKILL.md +161 -0
- package/skills/state-and-server-data/SKILL.md +200 -0
- package/skills/virtualization/SKILL.md +203 -0
- package/src/components/MaterialReactTable.tsx +36 -0
- package/src/components/body/MRT_TableBody.tsx +221 -0
- package/src/components/body/MRT_TableBodyCell.tsx +351 -0
- package/src/components/body/MRT_TableBodyCellValue.tsx +130 -0
- package/src/components/body/MRT_TableBodyRow.tsx +288 -0
- package/src/components/body/MRT_TableBodyRowGrabHandle.tsx +61 -0
- package/src/components/body/MRT_TableBodyRowPinButton.tsx +58 -0
- package/src/components/body/MRT_TableDetailPanel.tsx +110 -0
- package/src/components/buttons/MRT_ColumnPinningButtons.tsx +72 -0
- package/src/components/buttons/MRT_CopyButton.tsx +87 -0
- package/src/components/buttons/MRT_EditActionButtons.tsx +134 -0
- package/src/components/buttons/MRT_ExpandAllButton.tsx +78 -0
- package/src/components/buttons/MRT_ExpandButton.tsx +102 -0
- package/src/components/buttons/MRT_GrabHandleButton.tsx +65 -0
- package/src/components/buttons/MRT_RowPinButton.tsx +84 -0
- package/src/components/buttons/MRT_ShowHideColumnsButton.tsx +50 -0
- package/src/components/buttons/MRT_ToggleDensePaddingButton.tsx +52 -0
- package/src/components/buttons/MRT_ToggleFiltersButton.tsx +40 -0
- package/src/components/buttons/MRT_ToggleFullScreenButton.tsx +51 -0
- package/src/components/buttons/MRT_ToggleGlobalFilterButton.tsx +46 -0
- package/src/components/buttons/MRT_ToggleRowActionMenuButton.tsx +126 -0
- package/src/components/footer/MRT_TableFooter.tsx +88 -0
- package/src/components/footer/MRT_TableFooterCell.tsx +107 -0
- package/src/components/footer/MRT_TableFooterRow.tsx +95 -0
- package/src/components/head/MRT_TableHead.tsx +91 -0
- package/src/components/head/MRT_TableHeadCell.tsx +351 -0
- package/src/components/head/MRT_TableHeadCellColumnActionsButton.tsx +96 -0
- package/src/components/head/MRT_TableHeadCellFilterContainer.tsx +52 -0
- package/src/components/head/MRT_TableHeadCellFilterLabel.tsx +178 -0
- package/src/components/head/MRT_TableHeadCellGrabHandle.tsx +91 -0
- package/src/components/head/MRT_TableHeadCellResizeHandle.tsx +96 -0
- package/src/components/head/MRT_TableHeadCellSortLabel.tsx +101 -0
- package/src/components/head/MRT_TableHeadRow.tsx +90 -0
- package/src/components/inputs/MRT_EditCellTextField.tsx +202 -0
- package/src/components/inputs/MRT_FilterCheckbox.tsx +90 -0
- package/src/components/inputs/MRT_FilterRangeFields.tsx +41 -0
- package/src/components/inputs/MRT_FilterRangeSlider.tsx +143 -0
- package/src/components/inputs/MRT_FilterTextField.tsx +592 -0
- package/src/components/inputs/MRT_GlobalFilterTextField.tsx +167 -0
- package/src/components/inputs/MRT_SelectCheckbox.tsx +135 -0
- package/src/components/menus/MRT_ActionMenuItem.tsx +62 -0
- package/src/components/menus/MRT_CellActionMenu.tsx +107 -0
- package/src/components/menus/MRT_ColumnActionMenu.tsx +352 -0
- package/src/components/menus/MRT_FilterOptionMenu.tsx +292 -0
- package/src/components/menus/MRT_RowActionMenu.tsx +88 -0
- package/src/components/menus/MRT_ShowHideColumnsMenu.tsx +181 -0
- package/src/components/menus/MRT_ShowHideColumnsMenuItems.tsx +203 -0
- package/src/components/modals/MRT_EditRowModal.tsx +114 -0
- package/src/components/table/MRT_Table.tsx +84 -0
- package/src/components/table/MRT_TableContainer.tsx +111 -0
- package/src/components/table/MRT_TableLoadingOverlay.tsx +58 -0
- package/src/components/table/MRT_TablePaper.tsx +89 -0
- package/src/components/toolbar/MRT_BottomToolbar.tsx +111 -0
- package/src/components/toolbar/MRT_LinearProgressBar.tsx +53 -0
- package/src/components/toolbar/MRT_TablePagination.tsx +241 -0
- package/src/components/toolbar/MRT_ToolbarAlertBanner.tsx +184 -0
- package/src/components/toolbar/MRT_ToolbarDropZone.tsx +83 -0
- package/src/components/toolbar/MRT_ToolbarInternalButtons.tsx +72 -0
- package/src/components/toolbar/MRT_TopToolbar.tsx +130 -0
- package/src/features/mrtCellActionsFeature.ts +67 -0
- package/src/features/mrtColumnDraggingFeature.ts +83 -0
- package/src/features/mrtDensityFeature.ts +64 -0
- package/src/features/mrtEditingFeature.ts +102 -0
- package/src/features/mrtFeatures.ts +103 -0
- package/src/features/mrtFilterModesFeature.ts +99 -0
- package/src/features/mrtFnsFeature.ts +46 -0
- package/src/features/mrtFullScreenFeature.ts +63 -0
- package/src/features/mrtLoadingFeature.ts +35 -0
- package/src/features/mrtRefsFeature.ts +60 -0
- package/src/features/mrtRowDraggingFeature.ts +81 -0
- package/src/features/mrtStateCompatFeature.ts +43 -0
- package/src/features/mrtToolbarsFeature.ts +76 -0
- package/src/fns/aggregationFns.ts +3 -0
- package/src/fns/filterFns.ts +196 -0
- package/src/fns/sortingFns.ts +31 -0
- package/src/hooks/display-columns/getMRT_RowActionsColumnDef.tsx +28 -0
- package/src/hooks/display-columns/getMRT_RowDragColumnDef.tsx +29 -0
- package/src/hooks/display-columns/getMRT_RowExpandColumnDef.tsx +97 -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 +33 -0
- package/src/hooks/useMRT_ColumnVirtualizer.ts +124 -0
- package/src/hooks/useMRT_Effects.ts +108 -0
- package/src/hooks/useMRT_RowVirtualizer.ts +88 -0
- package/src/hooks/useMRT_Rows.ts +44 -0
- package/src/hooks/useMRT_TableInstance.ts +181 -0
- package/src/hooks/useMRT_TableOptions.ts +241 -0
- package/src/hooks/useMaterialReactTable.ts +12 -0
- package/src/icons.ts +73 -0
- package/src/index.ts +91 -0
- package/src/locales/ar.ts +97 -0
- package/src/locales/az.ts +97 -0
- package/src/locales/bg.ts +97 -0
- package/src/locales/cs.ts +98 -0
- package/src/locales/da.ts +97 -0
- package/src/locales/de.ts +97 -0
- package/src/locales/el.ts +97 -0
- package/src/locales/en.ts +97 -0
- package/src/locales/es.ts +97 -0
- package/src/locales/et.ts +98 -0
- package/src/locales/fa.ts +97 -0
- package/src/locales/fi.ts +98 -0
- package/src/locales/fr.ts +97 -0
- package/src/locales/he.ts +97 -0
- package/src/locales/hr.ts +97 -0
- package/src/locales/hu.ts +97 -0
- package/src/locales/hy.ts +97 -0
- package/src/locales/id.ts +98 -0
- package/src/locales/it.ts +97 -0
- package/src/locales/ja.ts +97 -0
- package/src/locales/ko.ts +97 -0
- package/src/locales/mk.ts +96 -0
- package/src/locales/nl.ts +97 -0
- package/src/locales/no.ts +99 -0
- package/src/locales/np.ts +98 -0
- package/src/locales/pl.ts +97 -0
- package/src/locales/pt-BR.ts +97 -0
- package/src/locales/pt.ts +97 -0
- package/src/locales/ro.ts +97 -0
- package/src/locales/ru.ts +97 -0
- package/src/locales/sk.ts +98 -0
- package/src/locales/sr-Cyrl-RS.ts +97 -0
- package/src/locales/sr-Latn-RS.ts +97 -0
- package/src/locales/sv.ts +97 -0
- package/src/locales/tr.ts +97 -0
- package/src/locales/uk.ts +97 -0
- package/src/locales/vi.ts +97 -0
- package/src/locales/zh-Hans.ts +96 -0
- package/src/locales/zh-Hant.ts +96 -0
- package/src/types.ts +1314 -0
- package/src/utils/cell.utils.ts +234 -0
- package/src/utils/column.utils.ts +204 -0
- package/src/utils/displayColumn.utils.ts +152 -0
- package/src/utils/row.utils.ts +258 -0
- package/src/utils/style.utils.ts +211 -0
- package/src/utils/tanstack.helpers.ts +64 -0
- package/src/utils/utils.ts +34 -0
- package/src/utils/virtualization.utils.ts +24 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { useId, useMemo } from 'react';
|
|
2
|
+
import { useTheme } from '@mui/material/styles';
|
|
3
|
+
import { MRT_AggregationFns } from '../fns/aggregationFns';
|
|
4
|
+
import { MRT_FilterFns } from '../fns/filterFns';
|
|
5
|
+
import { MRT_SortingFns } from '../fns/sortingFns';
|
|
6
|
+
import { MRT_Default_Icons } from '../icons';
|
|
7
|
+
import { MRT_Localization_EN } from '../locales/en';
|
|
8
|
+
import {
|
|
9
|
+
type MRT_DefinedTableOptions,
|
|
10
|
+
type MRT_RowData,
|
|
11
|
+
type MRT_TableOptions,
|
|
12
|
+
} from '../types';
|
|
13
|
+
import { getMRTTheme } from '../utils/style.utils';
|
|
14
|
+
|
|
15
|
+
export const MRT_DefaultColumn = {
|
|
16
|
+
filterVariant: 'text',
|
|
17
|
+
maxSize: 1000,
|
|
18
|
+
minSize: 40,
|
|
19
|
+
size: 180,
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
22
|
+
export const MRT_DefaultDisplayColumn = {
|
|
23
|
+
columnDefType: 'display',
|
|
24
|
+
enableClickToCopy: false,
|
|
25
|
+
enableColumnActions: false,
|
|
26
|
+
enableColumnDragging: false,
|
|
27
|
+
enableColumnFilter: false,
|
|
28
|
+
enableColumnOrdering: false,
|
|
29
|
+
enableEditing: false,
|
|
30
|
+
enableGlobalFilter: false,
|
|
31
|
+
enableGrouping: false,
|
|
32
|
+
enableHiding: false,
|
|
33
|
+
enableResizing: false,
|
|
34
|
+
enableSorting: false,
|
|
35
|
+
} as const;
|
|
36
|
+
|
|
37
|
+
export const useMRT_TableOptions: <TData extends MRT_RowData>(
|
|
38
|
+
tableOptions: MRT_TableOptions<TData>,
|
|
39
|
+
) => MRT_DefinedTableOptions<TData> = <TData extends MRT_RowData>({
|
|
40
|
+
aggregationFns,
|
|
41
|
+
autoResetExpanded = false,
|
|
42
|
+
columnFilterDisplayMode = 'subheader',
|
|
43
|
+
columnResizeDirection,
|
|
44
|
+
columnResizeMode = 'onChange',
|
|
45
|
+
createDisplayMode = 'modal',
|
|
46
|
+
defaultColumn,
|
|
47
|
+
defaultDisplayColumn,
|
|
48
|
+
editDisplayMode = 'modal',
|
|
49
|
+
enableBatchRowSelection = true,
|
|
50
|
+
enableBottomToolbar = true,
|
|
51
|
+
enableColumnActions = true,
|
|
52
|
+
enableColumnFilters = true,
|
|
53
|
+
enableColumnOrdering = false,
|
|
54
|
+
enableColumnPinning = false,
|
|
55
|
+
enableColumnResizing = false,
|
|
56
|
+
enableColumnVirtualization,
|
|
57
|
+
enableDensityToggle = true,
|
|
58
|
+
enableExpandAll = true,
|
|
59
|
+
enableExpanding,
|
|
60
|
+
enableFacetedValues = false,
|
|
61
|
+
enableFilterMatchHighlighting = true,
|
|
62
|
+
enableFilters = true,
|
|
63
|
+
enableFullScreenToggle = true,
|
|
64
|
+
enableGlobalFilter = true,
|
|
65
|
+
enableGlobalFilterRankedResults = true,
|
|
66
|
+
enableGrouping = false,
|
|
67
|
+
enableHiding = true,
|
|
68
|
+
enableKeyboardShortcuts = true,
|
|
69
|
+
enableMultiRowSelection = true,
|
|
70
|
+
enableMultiSort = true,
|
|
71
|
+
enablePagination = true,
|
|
72
|
+
enableRowPinning = false,
|
|
73
|
+
enableRowSelection = false,
|
|
74
|
+
enableRowVirtualization,
|
|
75
|
+
enableSelectAll = true,
|
|
76
|
+
enableSorting = true,
|
|
77
|
+
enableStickyHeader = false,
|
|
78
|
+
enableTableFooter = true,
|
|
79
|
+
enableTableHead = true,
|
|
80
|
+
enableToolbarInternalActions = true,
|
|
81
|
+
enableTopToolbar = true,
|
|
82
|
+
filterFns,
|
|
83
|
+
icons,
|
|
84
|
+
id = useId(),
|
|
85
|
+
layoutMode,
|
|
86
|
+
localization,
|
|
87
|
+
manualFiltering,
|
|
88
|
+
manualGrouping,
|
|
89
|
+
manualPagination,
|
|
90
|
+
manualSorting,
|
|
91
|
+
mrtTheme,
|
|
92
|
+
paginationDisplayMode = 'default',
|
|
93
|
+
positionActionsColumn = 'first',
|
|
94
|
+
positionCreatingRow = 'top',
|
|
95
|
+
positionExpandColumn = 'first',
|
|
96
|
+
positionGlobalFilter = 'right',
|
|
97
|
+
positionPagination = 'bottom',
|
|
98
|
+
positionToolbarAlertBanner = 'top',
|
|
99
|
+
positionToolbarDropZone = 'top',
|
|
100
|
+
renderDetailPanel,
|
|
101
|
+
rowNumberDisplayMode = 'static',
|
|
102
|
+
rowPinningDisplayMode = 'sticky',
|
|
103
|
+
selectAllMode = 'page',
|
|
104
|
+
sortFns,
|
|
105
|
+
...rest
|
|
106
|
+
}: MRT_TableOptions<TData>) => {
|
|
107
|
+
const theme = useTheme();
|
|
108
|
+
|
|
109
|
+
icons = useMemo(() => ({ ...MRT_Default_Icons, ...icons }), [icons]);
|
|
110
|
+
localization = useMemo(
|
|
111
|
+
() => ({
|
|
112
|
+
...MRT_Localization_EN,
|
|
113
|
+
...localization,
|
|
114
|
+
}),
|
|
115
|
+
[localization],
|
|
116
|
+
);
|
|
117
|
+
mrtTheme = useMemo(() => getMRTTheme(mrtTheme, theme), [mrtTheme, theme]);
|
|
118
|
+
aggregationFns = useMemo(
|
|
119
|
+
() => ({ ...MRT_AggregationFns, ...aggregationFns }),
|
|
120
|
+
[],
|
|
121
|
+
);
|
|
122
|
+
filterFns = useMemo(() => ({ ...MRT_FilterFns, ...filterFns }), []);
|
|
123
|
+
sortFns = useMemo(() => ({ ...MRT_SortingFns, ...sortFns }), []);
|
|
124
|
+
defaultColumn = useMemo(
|
|
125
|
+
() => ({ ...MRT_DefaultColumn, ...defaultColumn }),
|
|
126
|
+
[defaultColumn],
|
|
127
|
+
);
|
|
128
|
+
defaultDisplayColumn = useMemo(
|
|
129
|
+
() => ({
|
|
130
|
+
...MRT_DefaultDisplayColumn,
|
|
131
|
+
...defaultDisplayColumn,
|
|
132
|
+
}),
|
|
133
|
+
[defaultDisplayColumn],
|
|
134
|
+
);
|
|
135
|
+
//cannot be changed after initialization
|
|
136
|
+
[enableColumnVirtualization, enableRowVirtualization] = useMemo(
|
|
137
|
+
() => [enableColumnVirtualization, enableRowVirtualization],
|
|
138
|
+
[],
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
if (!columnResizeDirection) {
|
|
142
|
+
columnResizeDirection = theme.direction || 'ltr';
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
layoutMode =
|
|
146
|
+
layoutMode || (enableColumnResizing ? 'grid-no-grow' : 'semantic');
|
|
147
|
+
if (
|
|
148
|
+
layoutMode === 'semantic' &&
|
|
149
|
+
(enableRowVirtualization || enableColumnVirtualization)
|
|
150
|
+
) {
|
|
151
|
+
layoutMode = 'grid';
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (enableRowVirtualization) {
|
|
155
|
+
enableStickyHeader = true;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (enablePagination === false && manualPagination === undefined) {
|
|
159
|
+
manualPagination = true;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (!rest.data?.length) {
|
|
163
|
+
manualFiltering = true;
|
|
164
|
+
manualGrouping = true;
|
|
165
|
+
manualPagination = true;
|
|
166
|
+
manualSorting = true;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
aggregationFns,
|
|
171
|
+
autoResetExpanded,
|
|
172
|
+
columnFilterDisplayMode,
|
|
173
|
+
columnResizeDirection,
|
|
174
|
+
columnResizeMode,
|
|
175
|
+
createDisplayMode,
|
|
176
|
+
defaultColumn,
|
|
177
|
+
defaultDisplayColumn,
|
|
178
|
+
editDisplayMode,
|
|
179
|
+
enableBatchRowSelection,
|
|
180
|
+
enableBottomToolbar,
|
|
181
|
+
enableColumnActions,
|
|
182
|
+
enableColumnFilters,
|
|
183
|
+
enableColumnOrdering,
|
|
184
|
+
enableColumnPinning,
|
|
185
|
+
enableColumnResizing,
|
|
186
|
+
enableColumnVirtualization,
|
|
187
|
+
enableDensityToggle,
|
|
188
|
+
enableExpandAll,
|
|
189
|
+
enableExpanding,
|
|
190
|
+
enableFacetedValues,
|
|
191
|
+
enableFilterMatchHighlighting,
|
|
192
|
+
enableFilters,
|
|
193
|
+
enableFullScreenToggle,
|
|
194
|
+
enableGlobalFilter,
|
|
195
|
+
enableGlobalFilterRankedResults,
|
|
196
|
+
enableGrouping,
|
|
197
|
+
enableHiding,
|
|
198
|
+
enableKeyboardShortcuts,
|
|
199
|
+
enableMultiRowSelection,
|
|
200
|
+
enableMultiSort,
|
|
201
|
+
enablePagination,
|
|
202
|
+
enableRowPinning,
|
|
203
|
+
enableRowSelection,
|
|
204
|
+
enableRowVirtualization,
|
|
205
|
+
enableSelectAll,
|
|
206
|
+
enableSorting,
|
|
207
|
+
enableStickyHeader,
|
|
208
|
+
enableTableFooter,
|
|
209
|
+
enableTableHead,
|
|
210
|
+
enableToolbarInternalActions,
|
|
211
|
+
enableTopToolbar,
|
|
212
|
+
filterFns,
|
|
213
|
+
//TanStack 9 refuses to toggle a row that cannot expand, so rows with a
|
|
214
|
+
//detail panel must report that they can
|
|
215
|
+
getRowCanExpand: renderDetailPanel ? () => true : undefined,
|
|
216
|
+
getSubRows: (row: TData) => row?.subRows,
|
|
217
|
+
icons,
|
|
218
|
+
id,
|
|
219
|
+
layoutMode,
|
|
220
|
+
localization,
|
|
221
|
+
manualFiltering,
|
|
222
|
+
manualGrouping,
|
|
223
|
+
manualPagination,
|
|
224
|
+
manualSorting,
|
|
225
|
+
mrtTheme,
|
|
226
|
+
paginationDisplayMode,
|
|
227
|
+
positionActionsColumn,
|
|
228
|
+
positionCreatingRow,
|
|
229
|
+
positionExpandColumn,
|
|
230
|
+
positionGlobalFilter,
|
|
231
|
+
positionPagination,
|
|
232
|
+
positionToolbarAlertBanner,
|
|
233
|
+
positionToolbarDropZone,
|
|
234
|
+
renderDetailPanel,
|
|
235
|
+
rowNumberDisplayMode,
|
|
236
|
+
rowPinningDisplayMode,
|
|
237
|
+
selectAllMode,
|
|
238
|
+
sortFns,
|
|
239
|
+
...rest,
|
|
240
|
+
} as MRT_DefinedTableOptions<TData>;
|
|
241
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useMRT_TableInstance } from './useMRT_TableInstance';
|
|
2
|
+
import { useMRT_TableOptions } from './useMRT_TableOptions';
|
|
3
|
+
import {
|
|
4
|
+
type MRT_RowData,
|
|
5
|
+
type MRT_TableInstance,
|
|
6
|
+
type MRT_TableOptions,
|
|
7
|
+
} from '../types';
|
|
8
|
+
|
|
9
|
+
export const useMaterialReactTable = <TData extends MRT_RowData>(
|
|
10
|
+
tableOptions: MRT_TableOptions<TData>,
|
|
11
|
+
): MRT_TableInstance<TData> =>
|
|
12
|
+
useMRT_TableInstance(useMRT_TableOptions(tableOptions));
|
package/src/icons.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
|
|
2
|
+
import ArrowRightIcon from '@mui/icons-material/ArrowRight';
|
|
3
|
+
import CancelIcon from '@mui/icons-material/Cancel';
|
|
4
|
+
import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
|
|
5
|
+
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
6
|
+
import ClearAllIcon from '@mui/icons-material/ClearAll';
|
|
7
|
+
import CloseIcon from '@mui/icons-material/Close';
|
|
8
|
+
import ContentCopy from '@mui/icons-material/ContentCopy';
|
|
9
|
+
import DensityLargeIcon from '@mui/icons-material/DensityLarge';
|
|
10
|
+
import DensityMediumIcon from '@mui/icons-material/DensityMedium';
|
|
11
|
+
import DensitySmallIcon from '@mui/icons-material/DensitySmall';
|
|
12
|
+
import DragHandleIcon from '@mui/icons-material/DragHandle';
|
|
13
|
+
import DynamicFeedIcon from '@mui/icons-material/DynamicFeed';
|
|
14
|
+
import EditIcon from '@mui/icons-material/Edit';
|
|
15
|
+
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
16
|
+
import FilterAltIcon from '@mui/icons-material/FilterAlt';
|
|
17
|
+
import FilterListIcon from '@mui/icons-material/FilterList';
|
|
18
|
+
import FilterListOffIcon from '@mui/icons-material/FilterListOff';
|
|
19
|
+
import FirstPageIcon from '@mui/icons-material/FirstPage';
|
|
20
|
+
import FullscreenIcon from '@mui/icons-material/Fullscreen';
|
|
21
|
+
import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
|
|
22
|
+
import KeyboardDoubleArrowDownIcon from '@mui/icons-material/KeyboardDoubleArrowDown';
|
|
23
|
+
import LastPageIcon from '@mui/icons-material/LastPage';
|
|
24
|
+
import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
|
|
25
|
+
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
26
|
+
import PushPinIcon from '@mui/icons-material/PushPin';
|
|
27
|
+
import RestartAltIcon from '@mui/icons-material/RestartAlt';
|
|
28
|
+
import SaveIcon from '@mui/icons-material/Save';
|
|
29
|
+
import SearchIcon from '@mui/icons-material/Search';
|
|
30
|
+
import SearchOffIcon from '@mui/icons-material/SearchOff';
|
|
31
|
+
import SortIcon from '@mui/icons-material/Sort';
|
|
32
|
+
import SyncAltIcon from '@mui/icons-material/SyncAlt';
|
|
33
|
+
import ViewColumnIcon from '@mui/icons-material/ViewColumn';
|
|
34
|
+
import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
|
|
35
|
+
|
|
36
|
+
export const MRT_Default_Icons = {
|
|
37
|
+
ArrowDownwardIcon,
|
|
38
|
+
ArrowRightIcon,
|
|
39
|
+
CancelIcon,
|
|
40
|
+
ChevronLeftIcon,
|
|
41
|
+
ChevronRightIcon,
|
|
42
|
+
ClearAllIcon,
|
|
43
|
+
CloseIcon,
|
|
44
|
+
ContentCopy,
|
|
45
|
+
DensityLargeIcon,
|
|
46
|
+
DensityMediumIcon,
|
|
47
|
+
DensitySmallIcon,
|
|
48
|
+
DragHandleIcon,
|
|
49
|
+
DynamicFeedIcon,
|
|
50
|
+
EditIcon,
|
|
51
|
+
ExpandMoreIcon,
|
|
52
|
+
FilterAltIcon,
|
|
53
|
+
FilterListIcon,
|
|
54
|
+
FilterListOffIcon,
|
|
55
|
+
FirstPageIcon,
|
|
56
|
+
FullscreenExitIcon,
|
|
57
|
+
FullscreenIcon,
|
|
58
|
+
KeyboardDoubleArrowDownIcon,
|
|
59
|
+
LastPageIcon,
|
|
60
|
+
MoreHorizIcon,
|
|
61
|
+
MoreVertIcon,
|
|
62
|
+
PushPinIcon,
|
|
63
|
+
RestartAltIcon,
|
|
64
|
+
SaveIcon,
|
|
65
|
+
SearchIcon,
|
|
66
|
+
SearchOffIcon,
|
|
67
|
+
SortIcon,
|
|
68
|
+
SyncAltIcon,
|
|
69
|
+
ViewColumnIcon,
|
|
70
|
+
VisibilityOffIcon,
|
|
71
|
+
} as const;
|
|
72
|
+
|
|
73
|
+
export type MRT_Icons = Record<keyof typeof MRT_Default_Icons, any>;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
//body components
|
|
2
|
+
export * from './components/body/MRT_TableBody';
|
|
3
|
+
|
|
4
|
+
export * from './components/body/MRT_TableBodyCell';
|
|
5
|
+
export * from './components/body/MRT_TableBodyCellValue';
|
|
6
|
+
export * from './components/body/MRT_TableBodyRow';
|
|
7
|
+
export * from './components/body/MRT_TableBodyRowGrabHandle';
|
|
8
|
+
export * from './components/body/MRT_TableBodyRowPinButton';
|
|
9
|
+
|
|
10
|
+
export * from './components/body/MRT_TableDetailPanel';
|
|
11
|
+
//button components
|
|
12
|
+
export * from './components/buttons/MRT_ColumnPinningButtons';
|
|
13
|
+
export * from './components/buttons/MRT_CopyButton';
|
|
14
|
+
|
|
15
|
+
export * from './components/buttons/MRT_EditActionButtons';
|
|
16
|
+
export * from './components/buttons/MRT_ExpandAllButton';
|
|
17
|
+
export * from './components/buttons/MRT_ExpandButton';
|
|
18
|
+
export * from './components/buttons/MRT_GrabHandleButton';
|
|
19
|
+
export * from './components/buttons/MRT_RowPinButton';
|
|
20
|
+
export * from './components/buttons/MRT_ShowHideColumnsButton';
|
|
21
|
+
export * from './components/buttons/MRT_ToggleDensePaddingButton';
|
|
22
|
+
|
|
23
|
+
export * from './components/buttons/MRT_ToggleFiltersButton';
|
|
24
|
+
export * from './components/buttons/MRT_ToggleFullScreenButton';
|
|
25
|
+
export * from './components/buttons/MRT_ToggleGlobalFilterButton';
|
|
26
|
+
export * from './components/buttons/MRT_ToggleRowActionMenuButton';
|
|
27
|
+
//footer components
|
|
28
|
+
export * from './components/footer/MRT_TableFooter';
|
|
29
|
+
export * from './components/footer/MRT_TableFooterCell';
|
|
30
|
+
export * from './components/footer/MRT_TableFooterRow';
|
|
31
|
+
//head components
|
|
32
|
+
export * from './components/head/MRT_TableHead';
|
|
33
|
+
export * from './components/head/MRT_TableHeadCell';
|
|
34
|
+
export * from './components/head/MRT_TableHeadCellColumnActionsButton';
|
|
35
|
+
export * from './components/head/MRT_TableHeadCellFilterContainer';
|
|
36
|
+
export * from './components/head/MRT_TableHeadCellFilterLabel';
|
|
37
|
+
export * from './components/head/MRT_TableHeadCellGrabHandle';
|
|
38
|
+
export * from './components/head/MRT_TableHeadCellResizeHandle';
|
|
39
|
+
export * from './components/head/MRT_TableHeadCellSortLabel';
|
|
40
|
+
export * from './components/head/MRT_TableHeadRow';
|
|
41
|
+
//input components
|
|
42
|
+
export * from './components/inputs/MRT_EditCellTextField';
|
|
43
|
+
export * from './components/inputs/MRT_FilterCheckbox';
|
|
44
|
+
export * from './components/inputs/MRT_FilterRangeFields';
|
|
45
|
+
export * from './components/inputs/MRT_FilterRangeSlider';
|
|
46
|
+
export * from './components/inputs/MRT_FilterTextField';
|
|
47
|
+
export * from './components/inputs/MRT_GlobalFilterTextField';
|
|
48
|
+
export * from './components/inputs/MRT_SelectCheckbox';
|
|
49
|
+
//components
|
|
50
|
+
export * from './components/MaterialReactTable';
|
|
51
|
+
//menu components
|
|
52
|
+
export * from './components/menus/MRT_ActionMenuItem';
|
|
53
|
+
export * from './components/menus/MRT_ColumnActionMenu';
|
|
54
|
+
export * from './components/menus/MRT_FilterOptionMenu';
|
|
55
|
+
export * from './components/menus/MRT_RowActionMenu';
|
|
56
|
+
export * from './components/menus/MRT_ShowHideColumnsMenu';
|
|
57
|
+
export * from './components/menus/MRT_ShowHideColumnsMenuItems';
|
|
58
|
+
//modal components
|
|
59
|
+
export * from './components/modals/MRT_EditRowModal';
|
|
60
|
+
//table components
|
|
61
|
+
export * from './components/table/MRT_Table';
|
|
62
|
+
export * from './components/table/MRT_TableContainer';
|
|
63
|
+
export * from './components/table/MRT_TableLoadingOverlay';
|
|
64
|
+
export * from './components/table/MRT_TablePaper';
|
|
65
|
+
//toolbar components
|
|
66
|
+
export * from './components/toolbar/MRT_BottomToolbar';
|
|
67
|
+
export * from './components/toolbar/MRT_LinearProgressBar';
|
|
68
|
+
export * from './components/toolbar/MRT_TablePagination';
|
|
69
|
+
export * from './components/toolbar/MRT_ToolbarAlertBanner';
|
|
70
|
+
export * from './components/toolbar/MRT_ToolbarDropZone';
|
|
71
|
+
export * from './components/toolbar/MRT_ToolbarInternalButtons';
|
|
72
|
+
export * from './components/toolbar/MRT_TopToolbar';
|
|
73
|
+
//fns
|
|
74
|
+
export * from './fns/aggregationFns';
|
|
75
|
+
export * from './fns/filterFns';
|
|
76
|
+
export * from './fns/sortingFns';
|
|
77
|
+
//hooks
|
|
78
|
+
export * from './hooks/useMaterialReactTable';
|
|
79
|
+
export * from './hooks/useMRT_ColumnVirtualizer';
|
|
80
|
+
export * from './hooks/useMRT_Effects';
|
|
81
|
+
export * from './hooks/useMRT_Rows';
|
|
82
|
+
export * from './hooks/useMRT_RowVirtualizer';
|
|
83
|
+
export * from './hooks/useMRT_TableInstance';
|
|
84
|
+
export * from './hooks/useMRT_TableOptions';
|
|
85
|
+
export * from './types';
|
|
86
|
+
export * from './utils/cell.utils';
|
|
87
|
+
export * from './utils/column.utils';
|
|
88
|
+
export * from './utils/displayColumn.utils';
|
|
89
|
+
export * from './utils/row.utils';
|
|
90
|
+
//helpers
|
|
91
|
+
export * from './utils/tanstack.helpers';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { type MRT_Localization } from '..';
|
|
2
|
+
|
|
3
|
+
export const MRT_Localization_AR: MRT_Localization = {
|
|
4
|
+
actions: 'إجراءات',
|
|
5
|
+
and: 'و',
|
|
6
|
+
cancel: 'إلغاء',
|
|
7
|
+
changeFilterMode: 'تغيير وضع المرشح',
|
|
8
|
+
changeSearchMode: 'تغيير وضع البحث',
|
|
9
|
+
clearFilter: 'إعادة تعين المرشح',
|
|
10
|
+
clearSearch: 'إعادة تعيين البحث',
|
|
11
|
+
clearSelection: 'إعادة تعيين التحديد',
|
|
12
|
+
clearSort: 'إعادة تعيين الفرز',
|
|
13
|
+
clickToCopy: 'انقر للنسخ',
|
|
14
|
+
collapse: 'إخفاء',
|
|
15
|
+
collapseAll: 'إخفاء الكل',
|
|
16
|
+
columnActions: 'إجراءات العمود',
|
|
17
|
+
copiedToClipboard: 'نسخ إلى الحافظة',
|
|
18
|
+
copy: 'نسخ',
|
|
19
|
+
dropToGroupBy: 'أفلت للمجموعة حسب {column}',
|
|
20
|
+
edit: 'تعديل',
|
|
21
|
+
expand: 'إظهار',
|
|
22
|
+
expandAll: 'إظهار الكل',
|
|
23
|
+
filterArrIncludes: 'يشمل',
|
|
24
|
+
filterArrIncludesAll: 'يشمل الجميع',
|
|
25
|
+
filterArrIncludesSome: 'يشمل',
|
|
26
|
+
filterBetween: 'بين',
|
|
27
|
+
filterBetweenInclusive: 'بين الشمول',
|
|
28
|
+
filterByColumn: 'مصنف بواسطة {column}',
|
|
29
|
+
filterContains: 'يتضمن',
|
|
30
|
+
filterEmpty: 'فارغ',
|
|
31
|
+
filterEndsWith: 'ينتهي بـ',
|
|
32
|
+
filterEquals: 'يساوي',
|
|
33
|
+
filterEqualsString: 'يساوي',
|
|
34
|
+
filterFuzzy: 'غامض',
|
|
35
|
+
filterGreaterThan: 'أكثر من',
|
|
36
|
+
filterGreaterThanOrEqualTo: 'أكبر من أو يساوي',
|
|
37
|
+
filterIncludesString: 'يتضمن',
|
|
38
|
+
filterIncludesStringSensitive: 'يتضمن',
|
|
39
|
+
filteringByColumn: 'التصفية حسب {column} - {filterType} {filterValue}',
|
|
40
|
+
filterInNumberRange: 'بين',
|
|
41
|
+
filterLessThan: 'أقل من',
|
|
42
|
+
filterLessThanOrEqualTo: 'أقل من أو يساوي',
|
|
43
|
+
filterMode: 'وضع التصفية: {filterType}',
|
|
44
|
+
filterNotEmpty: 'ليس فارغًا',
|
|
45
|
+
filterNotEquals: 'لا يساوي',
|
|
46
|
+
filterStartsWith: ' يبدا ب',
|
|
47
|
+
filterWeakEquals: 'يساوي',
|
|
48
|
+
goToFirstPage: 'الصفحة الأولى',
|
|
49
|
+
goToLastPage: 'الصفحة الأخيرة',
|
|
50
|
+
goToNextPage: 'الصفحة التالية',
|
|
51
|
+
goToPreviousPage: 'الصفحة السابقة',
|
|
52
|
+
grab: 'أمسك',
|
|
53
|
+
groupByColumn: 'مجموعة من {column}',
|
|
54
|
+
groupedBy: 'مجمعة حسب ',
|
|
55
|
+
hideAll: 'إخفاء الكل',
|
|
56
|
+
hideColumn: 'إخفاء {column} العمود',
|
|
57
|
+
language: 'ar',
|
|
58
|
+
max: 'الأعلى',
|
|
59
|
+
min: 'الأقل',
|
|
60
|
+
move: 'حرك',
|
|
61
|
+
noRecordsToDisplay: 'لا سجلات لعرضها',
|
|
62
|
+
noResultsFound: 'لم يتم العثور على نتائج',
|
|
63
|
+
of: 'ل',
|
|
64
|
+
or: 'أو',
|
|
65
|
+
pin: 'تثبيت',
|
|
66
|
+
pinToLeft: 'تثبيت جهة اليسار',
|
|
67
|
+
pinToRight: 'تثبيت على اليمين',
|
|
68
|
+
resetColumnSize: 'إعادة تعيين حجم العمود',
|
|
69
|
+
resetOrder: 'إعادة تعيين',
|
|
70
|
+
rowActions: 'إجراءات الصف',
|
|
71
|
+
rowNumber: '#',
|
|
72
|
+
rowNumbers: 'أرقام الصفوف',
|
|
73
|
+
rowsPerPage: 'عدد الصفوف في الصفحة',
|
|
74
|
+
save: 'حفظ',
|
|
75
|
+
search: 'بحث',
|
|
76
|
+
select: 'اختيار',
|
|
77
|
+
selectedCountOfRowCountRowsSelected:
|
|
78
|
+
'{selectedCount} ل {rowCount} row(s) المحدد',
|
|
79
|
+
showAll: 'عرض الكل',
|
|
80
|
+
showAllColumns: 'إظهار كافة الأعمدة',
|
|
81
|
+
showHideColumns: 'إظهار / إخفاء الأعمدة',
|
|
82
|
+
showHideFilters: 'إظهار / إخفاء المرشحات',
|
|
83
|
+
showHideSearch: 'إظهار / إخفاء البحث',
|
|
84
|
+
sortByColumnAsc: 'فرز {column} تصاعدي',
|
|
85
|
+
sortByColumnDesc: 'فرز {column} تنازلي',
|
|
86
|
+
sortedByColumnAsc: 'مرتبة حسب {column} تصاعدي',
|
|
87
|
+
sortedByColumnDesc: 'مرتبة حسب {column} تنازلي',
|
|
88
|
+
thenBy: ', ثم بواسطة ',
|
|
89
|
+
toggleDensity: 'تبديل الكثافة',
|
|
90
|
+
toggleFullScreen: 'ملء الشاشة',
|
|
91
|
+
toggleSelectAll: 'تبديل تحديد الكل',
|
|
92
|
+
toggleSelectRow: 'تبديل تحديد الصف',
|
|
93
|
+
toggleVisibility: 'تبديل الرؤية',
|
|
94
|
+
ungroupByColumn: 'فك التجميع حسب {column}',
|
|
95
|
+
unpin: 'عدم التثبيت',
|
|
96
|
+
unpinAll: 'عدم تثبيت الكل',
|
|
97
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { type MRT_Localization } from '..';
|
|
2
|
+
|
|
3
|
+
export const MRT_Localization_AZ: MRT_Localization = {
|
|
4
|
+
actions: 'Əməliyyatlar',
|
|
5
|
+
and: 'və',
|
|
6
|
+
cancel: 'Ləğv Et',
|
|
7
|
+
changeFilterMode: 'Filter Rejimini Dəyiş',
|
|
8
|
+
changeSearchMode: 'Axtarış Rejimini Dəyiş',
|
|
9
|
+
clearFilter: 'Filteri təmizlə',
|
|
10
|
+
clearSearch: 'Axtarışı təmizlə',
|
|
11
|
+
clearSelection: 'Seçimi təmizlə',
|
|
12
|
+
clearSort: 'Sıralamanı sıfırla',
|
|
13
|
+
clickToCopy: 'Köçür',
|
|
14
|
+
collapse: 'Daralt',
|
|
15
|
+
collapseAll: 'Hamısını Daralt',
|
|
16
|
+
columnActions: 'Sütun Əməliyyatları',
|
|
17
|
+
copiedToClipboard: 'Panelə Köçürüldü',
|
|
18
|
+
copy: 'Köçür',
|
|
19
|
+
dropToGroupBy: '{column} İlə Qruplandırmaq Üçün Buraxın',
|
|
20
|
+
edit: 'Düzəliş Et',
|
|
21
|
+
expand: 'Genişlət',
|
|
22
|
+
expandAll: 'Hamısını Genişlət',
|
|
23
|
+
filterArrIncludes: 'Daxil Et',
|
|
24
|
+
filterArrIncludesAll: 'Hamısını Daxil Et',
|
|
25
|
+
filterArrIncludesSome: 'Daxildir',
|
|
26
|
+
filterBetween: 'Arasında',
|
|
27
|
+
filterBetweenInclusive: 'Daxildir Arasında',
|
|
28
|
+
filterByColumn: '{column} Filteri',
|
|
29
|
+
filterContains: 'Daxildir',
|
|
30
|
+
filterEmpty: 'Boş',
|
|
31
|
+
filterEndsWith: 'Sonu',
|
|
32
|
+
filterEquals: 'Bərabər',
|
|
33
|
+
filterEqualsString: 'Bərabər',
|
|
34
|
+
filterFuzzy: 'Təxmini',
|
|
35
|
+
filterGreaterThan: 'Böyükdür',
|
|
36
|
+
filterGreaterThanOrEqualTo: 'Böyük Bərabərdir',
|
|
37
|
+
filterIncludesString: 'Daxil',
|
|
38
|
+
filterIncludesStringSensitive: 'Daxil',
|
|
39
|
+
filteringByColumn: 'Filter Rejimi - {filterType} {filterValue}',
|
|
40
|
+
filterInNumberRange: 'Arasında',
|
|
41
|
+
filterLessThan: 'Kiçikdir',
|
|
42
|
+
filterLessThanOrEqualTo: 'Kiçik Bərabərdir',
|
|
43
|
+
filterMode: 'Filter Rejimi: {filterType}',
|
|
44
|
+
filterNotEmpty: 'Boş Deyil',
|
|
45
|
+
filterNotEquals: 'Bərabər Deyil',
|
|
46
|
+
filterStartsWith: 'Başlanğıcı',
|
|
47
|
+
filterWeakEquals: 'Bərabərdir',
|
|
48
|
+
goToFirstPage: 'İlk Səhifəyə Get',
|
|
49
|
+
goToLastPage: 'Son Səhifəyə Get',
|
|
50
|
+
goToNextPage: 'Sonrakı Səhifəyə Get',
|
|
51
|
+
goToPreviousPage: 'Əvvəlki Səhifəyə Get',
|
|
52
|
+
grab: 'Tut',
|
|
53
|
+
groupByColumn: "{column}'a Görə Qruplandır",
|
|
54
|
+
groupedBy: 'Qruplandı ',
|
|
55
|
+
hideAll: 'Hamısını Gizlə',
|
|
56
|
+
hideColumn: '{column} Sütununu Gizlə',
|
|
57
|
+
language: 'az',
|
|
58
|
+
max: 'Maksimum',
|
|
59
|
+
min: 'Minimum',
|
|
60
|
+
move: 'Daşı',
|
|
61
|
+
noRecordsToDisplay: 'Göstəriləcək Qeyd Yoxdur',
|
|
62
|
+
noResultsFound: 'Heç Bir Nəticə Tapılmadı',
|
|
63
|
+
of: 'of',
|
|
64
|
+
or: 'və ya',
|
|
65
|
+
pin: 'Sabitlə',
|
|
66
|
+
pinToLeft: 'Sola Sabitlə',
|
|
67
|
+
pinToRight: 'Sağa Sabitlə',
|
|
68
|
+
resetColumnSize: 'Sütun Ölçüsünü Sıfırla',
|
|
69
|
+
resetOrder: 'Sıranı Temizlə',
|
|
70
|
+
rowActions: 'Sətir Əməliyyatları',
|
|
71
|
+
rowNumber: '#',
|
|
72
|
+
rowNumbers: 'Sətir Sayl',
|
|
73
|
+
rowsPerPage: 'Səhifə Başına Sətirlər',
|
|
74
|
+
save: 'Yadda Saxla',
|
|
75
|
+
search: 'Axtar',
|
|
76
|
+
select: 'Seç',
|
|
77
|
+
selectedCountOfRowCountRowsSelected:
|
|
78
|
+
'{rowCount} Sətir Arasında {selectedCount} Ədəd Seçildi',
|
|
79
|
+
showAll: 'Hamısını Göstər',
|
|
80
|
+
showAllColumns: 'Bütün Sütunları Göstər',
|
|
81
|
+
showHideColumns: 'Sütunları Göstər/Gizlə',
|
|
82
|
+
showHideFilters: 'Filterləri Göstər/Gizlə',
|
|
83
|
+
showHideSearch: 'Axtarışı Göstər/Gizlə',
|
|
84
|
+
sortByColumnAsc: 'Artan Şəkildə Sırala',
|
|
85
|
+
sortByColumnDesc: 'Azalan Şəkildə Sırala',
|
|
86
|
+
sortedByColumnAsc: 'Artan Şəkildə Sıralandı',
|
|
87
|
+
sortedByColumnDesc: 'Azalan Şəkildə Sıralandı',
|
|
88
|
+
thenBy: ', sonra ',
|
|
89
|
+
toggleDensity: 'Sıxlığı Dəyiş',
|
|
90
|
+
toggleFullScreen: 'Tam Ekranı Dəyiş',
|
|
91
|
+
toggleSelectAll: 'Hamısını Seç',
|
|
92
|
+
toggleSelectRow: 'Sətir Seç',
|
|
93
|
+
toggleVisibility: 'Görünməni Dəyiş',
|
|
94
|
+
ungroupByColumn: '{column} Sütununu Ayır',
|
|
95
|
+
unpin: 'Ayır',
|
|
96
|
+
unpinAll: 'Hamısını Ayır',
|
|
97
|
+
};
|