@mui/x-data-grid 7.29.1 → 7.29.2
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/CHANGELOG.md +54 -0
- package/DataGrid/useDataGridProps.js +6 -5
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -0
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +8 -3
- package/components/containers/GridRootStyles.js +16 -14
- package/constants/gridClasses.d.ts +4 -0
- package/constants/gridClasses.js +1 -1
- package/index.js +1 -1
- package/locales/hyAM.d.ts +2 -0
- package/locales/hyAM.js +178 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/modern/DataGrid/useDataGridProps.js +6 -5
- package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +8 -3
- package/modern/components/containers/GridRootStyles.js +16 -14
- package/modern/constants/gridClasses.js +1 -1
- package/modern/index.js +1 -1
- package/modern/locales/hyAM.js +178 -0
- package/modern/locales/index.js +1 -0
- package/node/DataGrid/useDataGridProps.js +5 -4
- package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +8 -3
- package/node/components/containers/GridRootStyles.js +16 -14
- package/node/constants/gridClasses.js +1 -1
- package/node/index.js +1 -1
- package/node/locales/hyAM.js +184 -0
- package/node/locales/index.js +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,60 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.29.2
|
|
7
|
+
|
|
8
|
+
_May 1, 2025_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Add Armenian (hy-AM) locale on the Data Grid
|
|
13
|
+
- 🌍 Improve Italian (it-IT) locale on the Date and Time Pickers
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
|
|
16
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
17
|
+
@ArturAghakaryan, @federico-ntr.
|
|
18
|
+
|
|
19
|
+
Following are all team members who have contributed to this release:
|
|
20
|
+
@arminmeh, @JCQuintas, @KenanYusuf, @MBilalShafi, @oliviertassinari.
|
|
21
|
+
|
|
22
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid@7.29.2`
|
|
27
|
+
|
|
28
|
+
- [DataGrid] Fix column title truncation on touch devices (#17497) @KenanYusuf
|
|
29
|
+
- [DataGrid] Fix theme `defaultProps` causing unwanted re-renders (#17530) @KenanYusuf
|
|
30
|
+
- [l10n] Add Armenian (hy-AM) locale (#17422) @ArturAghakaryan
|
|
31
|
+
- [l10n] Fix l10n export (#17526) @arminmeh
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@7.29.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@7.29.2`.
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@7.29.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@7.29.2`.
|
|
40
|
+
|
|
41
|
+
### Date and Time Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@7.29.2`
|
|
44
|
+
|
|
45
|
+
- [l10n] Improve Italian (it-IT) locale (#17604) @federico-ntr
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-date-pickers-pro@7.29.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
48
|
+
|
|
49
|
+
Same changes as in `@mui/x-date-pickers@7.29.2`.
|
|
50
|
+
|
|
51
|
+
### Docs
|
|
52
|
+
|
|
53
|
+
- [docs] Fix MUI X v7 install instructions (#17537) @oliviertassinari
|
|
54
|
+
- [docs] Improve data grid export docs (#17553) @MBilalShafi
|
|
55
|
+
|
|
56
|
+
### Core
|
|
57
|
+
|
|
58
|
+
- [core] Fix root package 7.29.1 (#17523) @JCQuintas
|
|
59
|
+
|
|
6
60
|
## 7.29.1
|
|
7
61
|
|
|
8
62
|
_Apr 23, 2025_
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
4
|
+
import { getThemeProps } from '@mui/system';
|
|
4
5
|
import { GRID_DEFAULT_LOCALE_TEXT } from "../constants/index.js";
|
|
5
6
|
import { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from "../constants/defaultGridSlotsComponents.js";
|
|
6
7
|
import { computeSlots, useProps } from "../internals/utils/index.js";
|
|
@@ -19,12 +20,12 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
19
20
|
};
|
|
20
21
|
const defaultSlots = DATA_GRID_DEFAULT_SLOTS_COMPONENTS;
|
|
21
22
|
export const useDataGridProps = inProps => {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
useThemeProps({
|
|
23
|
+
const theme = useTheme();
|
|
24
|
+
const themedProps = useProps(React.useMemo(() => getThemeProps({
|
|
25
25
|
props: inProps,
|
|
26
|
+
theme,
|
|
26
27
|
name: 'MuiDataGrid'
|
|
27
|
-
}));
|
|
28
|
+
}), [theme, inProps]));
|
|
28
29
|
const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
29
30
|
const slots = React.useMemo(() => computeSlots({
|
|
30
31
|
defaultSlots,
|
|
@@ -6,6 +6,7 @@ export interface GridColumnHeaderSortIconProps {
|
|
|
6
6
|
index: number | undefined;
|
|
7
7
|
sortingOrder: readonly GridSortDirection[];
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
className?: string;
|
|
9
10
|
}
|
|
10
11
|
declare function GridColumnHeaderSortIconRaw(props: GridColumnHeaderSortIconProps): React.JSX.Element | null;
|
|
11
12
|
declare namespace GridColumnHeaderSortIconRaw {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["direction", "index", "sortingOrder", "disabled"];
|
|
3
|
+
const _excluded = ["direction", "index", "sortingOrder", "disabled", "className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
+
import clsx from 'clsx';
|
|
7
8
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
|
|
8
9
|
import { getDataGridUtilityClass } from "../../constants/gridClasses.js";
|
|
9
10
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -14,6 +15,7 @@ const useUtilityClasses = ownerState => {
|
|
|
14
15
|
classes
|
|
15
16
|
} = ownerState;
|
|
16
17
|
const slots = {
|
|
18
|
+
root: ['sortButton'],
|
|
17
19
|
icon: ['sortIcon']
|
|
18
20
|
};
|
|
19
21
|
return composeClasses(slots, getDataGridUtilityClass, classes);
|
|
@@ -39,7 +41,8 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
39
41
|
direction,
|
|
40
42
|
index,
|
|
41
43
|
sortingOrder,
|
|
42
|
-
disabled
|
|
44
|
+
disabled,
|
|
45
|
+
className
|
|
43
46
|
} = props,
|
|
44
47
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
45
48
|
const apiRef = useGridApiContext();
|
|
@@ -57,7 +60,8 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
57
60
|
"aria-label": apiRef.current.getLocaleText('columnHeaderSortIconLabel'),
|
|
58
61
|
title: apiRef.current.getLocaleText('columnHeaderSortIconLabel'),
|
|
59
62
|
size: "small",
|
|
60
|
-
disabled: disabled
|
|
63
|
+
disabled: disabled,
|
|
64
|
+
className: clsx(classes.root, className)
|
|
61
65
|
}, rootProps.slotProps?.baseIconButton, other, {
|
|
62
66
|
children: iconElement
|
|
63
67
|
}));
|
|
@@ -76,6 +80,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes =
|
|
|
76
80
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
77
81
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
78
82
|
// ----------------------------------------------------------------------
|
|
83
|
+
className: PropTypes.string,
|
|
79
84
|
direction: PropTypes.oneOf(['asc', 'desc']),
|
|
80
85
|
disabled: PropTypes.bool,
|
|
81
86
|
field: PropTypes.string.isRequired,
|
|
@@ -12,16 +12,6 @@ function getBorderColor(theme) {
|
|
|
12
12
|
}
|
|
13
13
|
return darken(alpha(theme.palette.divider, 1), 0.68);
|
|
14
14
|
}
|
|
15
|
-
const columnHeaderStyles = {
|
|
16
|
-
[`& .${c.iconButtonContainer}`]: {
|
|
17
|
-
visibility: 'visible',
|
|
18
|
-
width: 'auto'
|
|
19
|
-
},
|
|
20
|
-
[`& .${c.menuIcon}`]: {
|
|
21
|
-
width: 'auto',
|
|
22
|
-
visibility: 'visible'
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
15
|
const columnSeparatorTargetSize = 10;
|
|
26
16
|
const columnSeparatorOffset = -5;
|
|
27
17
|
const focusOutlineWidth = 1;
|
|
@@ -439,7 +429,7 @@ export const GridRootStyles = styled('div', {
|
|
|
439
429
|
visibility: 'visible',
|
|
440
430
|
width: 'auto'
|
|
441
431
|
},
|
|
442
|
-
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}) .${c.
|
|
432
|
+
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}) .${c.sortButton}`]: {
|
|
443
433
|
opacity: 0,
|
|
444
434
|
transition: t.transitions.create(['opacity'], {
|
|
445
435
|
duration: t.transitions.duration.shorter
|
|
@@ -507,13 +497,25 @@ export const GridRootStyles = styled('div', {
|
|
|
507
497
|
width: 'var(--DataGrid-rowWidth)'
|
|
508
498
|
},
|
|
509
499
|
'@media (hover: hover)': {
|
|
510
|
-
[`& .${c.columnHeader}:hover`]:
|
|
511
|
-
|
|
500
|
+
[`& .${c.columnHeader}:hover`]: {
|
|
501
|
+
[`& .${c.menuIcon}`]: {
|
|
502
|
+
width: 'auto',
|
|
503
|
+
visibility: 'visible'
|
|
504
|
+
},
|
|
505
|
+
[`& .${c.iconButtonContainer}`]: {
|
|
506
|
+
visibility: 'visible',
|
|
507
|
+
width: 'auto'
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}):hover .${c.sortButton}`]: {
|
|
512
511
|
opacity: 0.5
|
|
513
512
|
}
|
|
514
513
|
},
|
|
515
514
|
'@media (hover: none)': {
|
|
516
|
-
[`& .${c.columnHeader}`]:
|
|
515
|
+
[`& .${c.columnHeader} .${c.menuIcon}`]: {
|
|
516
|
+
width: 'auto',
|
|
517
|
+
visibility: 'visible'
|
|
518
|
+
},
|
|
517
519
|
[`& .${c.columnHeader}:focus,
|
|
518
520
|
& .${c['columnHeader--siblingFocused']}`]: {
|
|
519
521
|
[`.${c['columnSeparator--resizable']}`]: {
|
|
@@ -574,6 +574,10 @@ export interface GridClasses {
|
|
|
574
574
|
* Styles applied to the footer selected row count element.
|
|
575
575
|
*/
|
|
576
576
|
selectedRowCount: string;
|
|
577
|
+
/**
|
|
578
|
+
* Styles applied to the sort button element.
|
|
579
|
+
*/
|
|
580
|
+
sortButton: string;
|
|
577
581
|
/**
|
|
578
582
|
* Styles applied to the sort icon element.
|
|
579
583
|
*/
|
package/constants/gridClasses.js
CHANGED
|
@@ -2,4 +2,4 @@ import { unstable_generateUtilityClasses as generateUtilityClasses, unstable_gen
|
|
|
2
2
|
export function getDataGridUtilityClass(slot) {
|
|
3
3
|
return generateUtilityClass('MuiDataGrid', slot);
|
|
4
4
|
}
|
|
5
|
-
export const gridClasses = generateUtilityClasses('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hasSkeletonLoadingOverlay', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);
|
|
5
|
+
export const gridClasses = generateUtilityClasses('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hasSkeletonLoadingOverlay', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortButton', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);
|
package/index.js
CHANGED
package/locales/hyAM.js
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { hyAM as hyAMCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from "../utils/getGridLocalization.js";
|
|
3
|
+
const hyAMGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Տվյալներ չկան',
|
|
6
|
+
noResultsOverlayLabel: 'Արդյունքներ չեն գտնվել։',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: 'Խտություն',
|
|
9
|
+
toolbarDensityLabel: 'Խտություն',
|
|
10
|
+
toolbarDensityCompact: 'Կոմպակտ',
|
|
11
|
+
toolbarDensityStandard: 'Ստանդարտ',
|
|
12
|
+
toolbarDensityComfortable: 'Հարմարավետ',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: 'Սյունակներ',
|
|
15
|
+
toolbarColumnsLabel: 'Ընտրել սյունակներ',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: 'Զտիչներ',
|
|
18
|
+
toolbarFiltersLabel: 'Ցուցադրել զտիչները',
|
|
19
|
+
toolbarFiltersTooltipHide: 'Թաքցնել զտիչները',
|
|
20
|
+
toolbarFiltersTooltipShow: 'Ցուցադրել զտիչները',
|
|
21
|
+
toolbarFiltersTooltipActive: count => {
|
|
22
|
+
let pluralForm = 'ակտիվ զտիչ';
|
|
23
|
+
if (count === 1) {
|
|
24
|
+
pluralForm = 'ակտիվ զտիչ';
|
|
25
|
+
} else {
|
|
26
|
+
pluralForm = 'ակտիվ զտիչներ';
|
|
27
|
+
}
|
|
28
|
+
return `${count} ${pluralForm}`;
|
|
29
|
+
},
|
|
30
|
+
// Quick filter toolbar field
|
|
31
|
+
toolbarQuickFilterPlaceholder: 'Որոնել…',
|
|
32
|
+
toolbarQuickFilterLabel: 'Որոնել',
|
|
33
|
+
toolbarQuickFilterDeleteIconLabel: 'Մաքրել',
|
|
34
|
+
// Export selector toolbar button text
|
|
35
|
+
toolbarExport: 'Արտահանում',
|
|
36
|
+
toolbarExportLabel: 'Արտահանում',
|
|
37
|
+
toolbarExportCSV: 'Ներբեռնել CSV-ով',
|
|
38
|
+
toolbarExportPrint: 'Տպել',
|
|
39
|
+
toolbarExportExcel: 'Ներբեռնել Excel-ով',
|
|
40
|
+
// Columns management text
|
|
41
|
+
columnsManagementSearchTitle: 'Որոնել',
|
|
42
|
+
columnsManagementNoColumns: 'Սյունակներ չկան',
|
|
43
|
+
columnsManagementShowHideAllText: 'Ցուցադրել/Թաքցնել բոլորը',
|
|
44
|
+
columnsManagementReset: 'Վերակայել',
|
|
45
|
+
columnsManagementDeleteIconLabel: 'Հեռացնել',
|
|
46
|
+
// Filter panel text
|
|
47
|
+
filterPanelAddFilter: 'Ավելացնել զտիչ',
|
|
48
|
+
filterPanelRemoveAll: 'Հեռացնել բոլորը',
|
|
49
|
+
filterPanelDeleteIconLabel: 'Հեռացնել',
|
|
50
|
+
filterPanelLogicOperator: 'Տրամաբանական օպերատոր',
|
|
51
|
+
filterPanelOperator: 'Օպերատոր',
|
|
52
|
+
filterPanelOperatorAnd: 'Եվ',
|
|
53
|
+
filterPanelOperatorOr: 'Կամ',
|
|
54
|
+
filterPanelColumns: 'Սյունակներ',
|
|
55
|
+
filterPanelInputLabel: 'Արժեք',
|
|
56
|
+
filterPanelInputPlaceholder: 'Զտիչի արժեք',
|
|
57
|
+
// Filter operators text
|
|
58
|
+
filterOperatorContains: 'պարունակում է',
|
|
59
|
+
filterOperatorDoesNotContain: 'չի պարունակում',
|
|
60
|
+
filterOperatorEquals: 'հավասար է',
|
|
61
|
+
filterOperatorDoesNotEqual: 'հավասար չէ',
|
|
62
|
+
filterOperatorStartsWith: 'սկսվում է',
|
|
63
|
+
filterOperatorEndsWith: 'վերջանում է',
|
|
64
|
+
filterOperatorIs: 'է',
|
|
65
|
+
filterOperatorNot: 'չէ',
|
|
66
|
+
filterOperatorAfter: 'հետո է',
|
|
67
|
+
filterOperatorOnOrAfter: 'այդ օրը կամ հետո է',
|
|
68
|
+
filterOperatorBefore: 'մինչ է',
|
|
69
|
+
filterOperatorOnOrBefore: 'այդ օրը կամ առաջ է',
|
|
70
|
+
filterOperatorIsEmpty: 'դատարկ է',
|
|
71
|
+
filterOperatorIsNotEmpty: 'դատարկ չէ',
|
|
72
|
+
filterOperatorIsAnyOf: 'որևէ մեկը',
|
|
73
|
+
'filterOperator=': '=',
|
|
74
|
+
'filterOperator!=': '!=',
|
|
75
|
+
'filterOperator>': '>',
|
|
76
|
+
'filterOperator>=': '>=',
|
|
77
|
+
'filterOperator<': '<',
|
|
78
|
+
'filterOperator<=': '<=',
|
|
79
|
+
// Header filter operators text
|
|
80
|
+
headerFilterOperatorContains: 'Պարունակում է',
|
|
81
|
+
headerFilterOperatorDoesNotContain: 'Չի պարունակում',
|
|
82
|
+
headerFilterOperatorEquals: 'Հավասար է',
|
|
83
|
+
headerFilterOperatorDoesNotEqual: 'Հավասար չէ',
|
|
84
|
+
headerFilterOperatorStartsWith: 'Սկսվում է',
|
|
85
|
+
headerFilterOperatorEndsWith: 'Վերջանում է',
|
|
86
|
+
headerFilterOperatorIs: 'Է',
|
|
87
|
+
headerFilterOperatorNot: 'Չէ',
|
|
88
|
+
headerFilterOperatorAfter: 'Հետո է',
|
|
89
|
+
headerFilterOperatorOnOrAfter: 'Այդ օրը կամ հետո է',
|
|
90
|
+
headerFilterOperatorBefore: 'Մինչ է',
|
|
91
|
+
headerFilterOperatorOnOrBefore: 'Այդ օրը կամ առաջ է',
|
|
92
|
+
headerFilterOperatorIsEmpty: 'Դատարկ է',
|
|
93
|
+
headerFilterOperatorIsNotEmpty: 'Դատարկ չէ',
|
|
94
|
+
headerFilterOperatorIsAnyOf: 'Որևէ մեկը',
|
|
95
|
+
'headerFilterOperator=': 'Հավասար է',
|
|
96
|
+
'headerFilterOperator!=': 'Հավասար չէ',
|
|
97
|
+
'headerFilterOperator>': 'Ավելի մեծ է',
|
|
98
|
+
'headerFilterOperator>=': 'Ավելի մեծ կամ հավասար է',
|
|
99
|
+
'headerFilterOperator<': 'Ավելի փոքր է',
|
|
100
|
+
'headerFilterOperator<=': 'Ավելի փոքր կամ հավասար է',
|
|
101
|
+
// Filter values text
|
|
102
|
+
filterValueAny: 'ցանկացած',
|
|
103
|
+
filterValueTrue: 'այո',
|
|
104
|
+
filterValueFalse: 'ոչ',
|
|
105
|
+
// Column menu text
|
|
106
|
+
columnMenuLabel: 'Մենյու',
|
|
107
|
+
columnMenuAriaLabel: columnName => `${columnName} սյունակի մենյու`,
|
|
108
|
+
columnMenuShowColumns: 'Ցուցադրել սյունակները',
|
|
109
|
+
columnMenuManageColumns: 'Կառավարել սյունակները',
|
|
110
|
+
columnMenuFilter: 'Զտիչ',
|
|
111
|
+
columnMenuHideColumn: 'Թաքցնել',
|
|
112
|
+
columnMenuUnsort: 'Մաքրել դասավորումը',
|
|
113
|
+
columnMenuSortAsc: 'Աճման կարգով դասավորել',
|
|
114
|
+
columnMenuSortDesc: 'Նվազման կարգով դասավորել',
|
|
115
|
+
// Column header text
|
|
116
|
+
columnHeaderFiltersTooltipActive: count => {
|
|
117
|
+
let pluralForm = 'ակտիվ զտիչներ';
|
|
118
|
+
if (count === 1) {
|
|
119
|
+
pluralForm = 'ակտիվ զտիչ';
|
|
120
|
+
}
|
|
121
|
+
return `${count} ${pluralForm}`;
|
|
122
|
+
},
|
|
123
|
+
columnHeaderFiltersLabel: 'Ցուցադրել զտիչները',
|
|
124
|
+
columnHeaderSortIconLabel: 'Դասավորել',
|
|
125
|
+
// Rows selected footer text
|
|
126
|
+
footerRowSelected: count => {
|
|
127
|
+
let pluralForm = 'ընտրված տող';
|
|
128
|
+
if (count === 1) {
|
|
129
|
+
pluralForm = 'ընտրված տող';
|
|
130
|
+
} else {
|
|
131
|
+
pluralForm = 'ընտրված տողեր';
|
|
132
|
+
}
|
|
133
|
+
return `${count} ${pluralForm}`;
|
|
134
|
+
},
|
|
135
|
+
// Total row amount footer text
|
|
136
|
+
footerTotalRows: 'Ընդամենը տողեր:',
|
|
137
|
+
// Total visible row amount footer text
|
|
138
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => {
|
|
139
|
+
return `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`;
|
|
140
|
+
},
|
|
141
|
+
// Checkbox selection text
|
|
142
|
+
checkboxSelectionHeaderName: 'Տողի ընտրություն',
|
|
143
|
+
checkboxSelectionSelectAllRows: 'Ընտրել բոլոր տողերը',
|
|
144
|
+
checkboxSelectionUnselectAllRows: 'Չընտրել բոլոր տողերը',
|
|
145
|
+
checkboxSelectionSelectRow: 'Ընտրել տողը',
|
|
146
|
+
checkboxSelectionUnselectRow: 'Չընտրել տողը',
|
|
147
|
+
// Boolean cell text
|
|
148
|
+
booleanCellTrueLabel: 'այո',
|
|
149
|
+
booleanCellFalseLabel: 'ոչ',
|
|
150
|
+
// Actions cell more text
|
|
151
|
+
actionsCellMore: 'ավելին',
|
|
152
|
+
// Column pinning text
|
|
153
|
+
pinToLeft: 'Կցել ձախ',
|
|
154
|
+
pinToRight: 'Կցել աջ',
|
|
155
|
+
unpin: 'Անջատել',
|
|
156
|
+
// Tree Data
|
|
157
|
+
treeDataGroupingHeaderName: 'Խումբ',
|
|
158
|
+
treeDataExpand: 'Բացել ենթատողերը',
|
|
159
|
+
treeDataCollapse: 'Փակել ենթատողերը',
|
|
160
|
+
// Grouping columns
|
|
161
|
+
groupingColumnHeaderName: 'Խմբավորում',
|
|
162
|
+
groupColumn: name => `Խմբավորել ըստ ${name}`,
|
|
163
|
+
unGroupColumn: name => `Չխմբավորել ըստ ${name}`,
|
|
164
|
+
// Master/detail
|
|
165
|
+
detailPanelToggle: 'Փոխարկել մանրամասն տեսքը',
|
|
166
|
+
expandDetailPanel: 'Բացել',
|
|
167
|
+
collapseDetailPanel: 'Փակել',
|
|
168
|
+
// Row reordering text
|
|
169
|
+
rowReorderingHeaderName: 'Տողերի վերադասավորում',
|
|
170
|
+
// Aggregation
|
|
171
|
+
aggregationMenuItemHeader: 'Ագրեգացում',
|
|
172
|
+
aggregationFunctionLabelSum: 'գումար',
|
|
173
|
+
aggregationFunctionLabelAvg: 'միջին',
|
|
174
|
+
aggregationFunctionLabelMin: 'մինիմում',
|
|
175
|
+
aggregationFunctionLabelMax: 'մաքսիմում',
|
|
176
|
+
aggregationFunctionLabelSize: 'քանակ'
|
|
177
|
+
};
|
|
178
|
+
export const hyAM = getGridLocalization(hyAMGrid, hyAMCore);
|
package/locales/index.d.ts
CHANGED
package/locales/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
4
|
+
import { getThemeProps } from '@mui/system';
|
|
4
5
|
import { GRID_DEFAULT_LOCALE_TEXT } from "../constants/index.js";
|
|
5
6
|
import { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from "../constants/defaultGridSlotsComponents.js";
|
|
6
7
|
import { computeSlots, useProps } from "../internals/utils/index.js";
|
|
@@ -19,12 +20,12 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
19
20
|
};
|
|
20
21
|
const defaultSlots = DATA_GRID_DEFAULT_SLOTS_COMPONENTS;
|
|
21
22
|
export const useDataGridProps = inProps => {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
useThemeProps({
|
|
23
|
+
const theme = useTheme();
|
|
24
|
+
const themedProps = useProps(React.useMemo(() => getThemeProps({
|
|
25
25
|
props: inProps,
|
|
26
|
+
theme,
|
|
26
27
|
name: 'MuiDataGrid'
|
|
27
|
-
}));
|
|
28
|
+
}), [theme, inProps]));
|
|
28
29
|
const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
29
30
|
const slots = React.useMemo(() => computeSlots({
|
|
30
31
|
defaultSlots,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["direction", "index", "sortingOrder", "disabled"];
|
|
3
|
+
const _excluded = ["direction", "index", "sortingOrder", "disabled", "className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
+
import clsx from 'clsx';
|
|
7
8
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.js";
|
|
8
9
|
import { getDataGridUtilityClass } from "../../constants/gridClasses.js";
|
|
9
10
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
@@ -14,6 +15,7 @@ const useUtilityClasses = ownerState => {
|
|
|
14
15
|
classes
|
|
15
16
|
} = ownerState;
|
|
16
17
|
const slots = {
|
|
18
|
+
root: ['sortButton'],
|
|
17
19
|
icon: ['sortIcon']
|
|
18
20
|
};
|
|
19
21
|
return composeClasses(slots, getDataGridUtilityClass, classes);
|
|
@@ -39,7 +41,8 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
39
41
|
direction,
|
|
40
42
|
index,
|
|
41
43
|
sortingOrder,
|
|
42
|
-
disabled
|
|
44
|
+
disabled,
|
|
45
|
+
className
|
|
43
46
|
} = props,
|
|
44
47
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
45
48
|
const apiRef = useGridApiContext();
|
|
@@ -57,7 +60,8 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
57
60
|
"aria-label": apiRef.current.getLocaleText('columnHeaderSortIconLabel'),
|
|
58
61
|
title: apiRef.current.getLocaleText('columnHeaderSortIconLabel'),
|
|
59
62
|
size: "small",
|
|
60
|
-
disabled: disabled
|
|
63
|
+
disabled: disabled,
|
|
64
|
+
className: clsx(classes.root, className)
|
|
61
65
|
}, rootProps.slotProps?.baseIconButton, other, {
|
|
62
66
|
children: iconElement
|
|
63
67
|
}));
|
|
@@ -76,6 +80,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes =
|
|
|
76
80
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
77
81
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
78
82
|
// ----------------------------------------------------------------------
|
|
83
|
+
className: PropTypes.string,
|
|
79
84
|
direction: PropTypes.oneOf(['asc', 'desc']),
|
|
80
85
|
disabled: PropTypes.bool,
|
|
81
86
|
field: PropTypes.string.isRequired,
|
|
@@ -12,16 +12,6 @@ function getBorderColor(theme) {
|
|
|
12
12
|
}
|
|
13
13
|
return darken(alpha(theme.palette.divider, 1), 0.68);
|
|
14
14
|
}
|
|
15
|
-
const columnHeaderStyles = {
|
|
16
|
-
[`& .${c.iconButtonContainer}`]: {
|
|
17
|
-
visibility: 'visible',
|
|
18
|
-
width: 'auto'
|
|
19
|
-
},
|
|
20
|
-
[`& .${c.menuIcon}`]: {
|
|
21
|
-
width: 'auto',
|
|
22
|
-
visibility: 'visible'
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
15
|
const columnSeparatorTargetSize = 10;
|
|
26
16
|
const columnSeparatorOffset = -5;
|
|
27
17
|
const focusOutlineWidth = 1;
|
|
@@ -439,7 +429,7 @@ export const GridRootStyles = styled('div', {
|
|
|
439
429
|
visibility: 'visible',
|
|
440
430
|
width: 'auto'
|
|
441
431
|
},
|
|
442
|
-
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}) .${c.
|
|
432
|
+
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}) .${c.sortButton}`]: {
|
|
443
433
|
opacity: 0,
|
|
444
434
|
transition: t.transitions.create(['opacity'], {
|
|
445
435
|
duration: t.transitions.duration.shorter
|
|
@@ -507,13 +497,25 @@ export const GridRootStyles = styled('div', {
|
|
|
507
497
|
width: 'var(--DataGrid-rowWidth)'
|
|
508
498
|
},
|
|
509
499
|
'@media (hover: hover)': {
|
|
510
|
-
[`& .${c.columnHeader}:hover`]:
|
|
511
|
-
|
|
500
|
+
[`& .${c.columnHeader}:hover`]: {
|
|
501
|
+
[`& .${c.menuIcon}`]: {
|
|
502
|
+
width: 'auto',
|
|
503
|
+
visibility: 'visible'
|
|
504
|
+
},
|
|
505
|
+
[`& .${c.iconButtonContainer}`]: {
|
|
506
|
+
visibility: 'visible',
|
|
507
|
+
width: 'auto'
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}):hover .${c.sortButton}`]: {
|
|
512
511
|
opacity: 0.5
|
|
513
512
|
}
|
|
514
513
|
},
|
|
515
514
|
'@media (hover: none)': {
|
|
516
|
-
[`& .${c.columnHeader}`]:
|
|
515
|
+
[`& .${c.columnHeader} .${c.menuIcon}`]: {
|
|
516
|
+
width: 'auto',
|
|
517
|
+
visibility: 'visible'
|
|
518
|
+
},
|
|
517
519
|
[`& .${c.columnHeader}:focus,
|
|
518
520
|
& .${c['columnHeader--siblingFocused']}`]: {
|
|
519
521
|
[`.${c['columnSeparator--resizable']}`]: {
|
|
@@ -2,4 +2,4 @@ import { unstable_generateUtilityClasses as generateUtilityClasses, unstable_gen
|
|
|
2
2
|
export function getDataGridUtilityClass(slot) {
|
|
3
3
|
return generateUtilityClass('MuiDataGrid', slot);
|
|
4
4
|
}
|
|
5
|
-
export const gridClasses = generateUtilityClasses('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hasSkeletonLoadingOverlay', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);
|
|
5
|
+
export const gridClasses = generateUtilityClasses('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hasSkeletonLoadingOverlay', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortButton', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);
|
package/modern/index.js
CHANGED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { hyAM as hyAMCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from "../utils/getGridLocalization.js";
|
|
3
|
+
const hyAMGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Տվյալներ չկան',
|
|
6
|
+
noResultsOverlayLabel: 'Արդյունքներ չեն գտնվել։',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: 'Խտություն',
|
|
9
|
+
toolbarDensityLabel: 'Խտություն',
|
|
10
|
+
toolbarDensityCompact: 'Կոմպակտ',
|
|
11
|
+
toolbarDensityStandard: 'Ստանդարտ',
|
|
12
|
+
toolbarDensityComfortable: 'Հարմարավետ',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: 'Սյունակներ',
|
|
15
|
+
toolbarColumnsLabel: 'Ընտրել սյունակներ',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: 'Զտիչներ',
|
|
18
|
+
toolbarFiltersLabel: 'Ցուցադրել զտիչները',
|
|
19
|
+
toolbarFiltersTooltipHide: 'Թաքցնել զտիչները',
|
|
20
|
+
toolbarFiltersTooltipShow: 'Ցուցադրել զտիչները',
|
|
21
|
+
toolbarFiltersTooltipActive: count => {
|
|
22
|
+
let pluralForm = 'ակտիվ զտիչ';
|
|
23
|
+
if (count === 1) {
|
|
24
|
+
pluralForm = 'ակտիվ զտիչ';
|
|
25
|
+
} else {
|
|
26
|
+
pluralForm = 'ակտիվ զտիչներ';
|
|
27
|
+
}
|
|
28
|
+
return `${count} ${pluralForm}`;
|
|
29
|
+
},
|
|
30
|
+
// Quick filter toolbar field
|
|
31
|
+
toolbarQuickFilterPlaceholder: 'Որոնել…',
|
|
32
|
+
toolbarQuickFilterLabel: 'Որոնել',
|
|
33
|
+
toolbarQuickFilterDeleteIconLabel: 'Մաքրել',
|
|
34
|
+
// Export selector toolbar button text
|
|
35
|
+
toolbarExport: 'Արտահանում',
|
|
36
|
+
toolbarExportLabel: 'Արտահանում',
|
|
37
|
+
toolbarExportCSV: 'Ներբեռնել CSV-ով',
|
|
38
|
+
toolbarExportPrint: 'Տպել',
|
|
39
|
+
toolbarExportExcel: 'Ներբեռնել Excel-ով',
|
|
40
|
+
// Columns management text
|
|
41
|
+
columnsManagementSearchTitle: 'Որոնել',
|
|
42
|
+
columnsManagementNoColumns: 'Սյունակներ չկան',
|
|
43
|
+
columnsManagementShowHideAllText: 'Ցուցադրել/Թաքցնել բոլորը',
|
|
44
|
+
columnsManagementReset: 'Վերակայել',
|
|
45
|
+
columnsManagementDeleteIconLabel: 'Հեռացնել',
|
|
46
|
+
// Filter panel text
|
|
47
|
+
filterPanelAddFilter: 'Ավելացնել զտիչ',
|
|
48
|
+
filterPanelRemoveAll: 'Հեռացնել բոլորը',
|
|
49
|
+
filterPanelDeleteIconLabel: 'Հեռացնել',
|
|
50
|
+
filterPanelLogicOperator: 'Տրամաբանական օպերատոր',
|
|
51
|
+
filterPanelOperator: 'Օպերատոր',
|
|
52
|
+
filterPanelOperatorAnd: 'Եվ',
|
|
53
|
+
filterPanelOperatorOr: 'Կամ',
|
|
54
|
+
filterPanelColumns: 'Սյունակներ',
|
|
55
|
+
filterPanelInputLabel: 'Արժեք',
|
|
56
|
+
filterPanelInputPlaceholder: 'Զտիչի արժեք',
|
|
57
|
+
// Filter operators text
|
|
58
|
+
filterOperatorContains: 'պարունակում է',
|
|
59
|
+
filterOperatorDoesNotContain: 'չի պարունակում',
|
|
60
|
+
filterOperatorEquals: 'հավասար է',
|
|
61
|
+
filterOperatorDoesNotEqual: 'հավասար չէ',
|
|
62
|
+
filterOperatorStartsWith: 'սկսվում է',
|
|
63
|
+
filterOperatorEndsWith: 'վերջանում է',
|
|
64
|
+
filterOperatorIs: 'է',
|
|
65
|
+
filterOperatorNot: 'չէ',
|
|
66
|
+
filterOperatorAfter: 'հետո է',
|
|
67
|
+
filterOperatorOnOrAfter: 'այդ օրը կամ հետո է',
|
|
68
|
+
filterOperatorBefore: 'մինչ է',
|
|
69
|
+
filterOperatorOnOrBefore: 'այդ օրը կամ առաջ է',
|
|
70
|
+
filterOperatorIsEmpty: 'դատարկ է',
|
|
71
|
+
filterOperatorIsNotEmpty: 'դատարկ չէ',
|
|
72
|
+
filterOperatorIsAnyOf: 'որևէ մեկը',
|
|
73
|
+
'filterOperator=': '=',
|
|
74
|
+
'filterOperator!=': '!=',
|
|
75
|
+
'filterOperator>': '>',
|
|
76
|
+
'filterOperator>=': '>=',
|
|
77
|
+
'filterOperator<': '<',
|
|
78
|
+
'filterOperator<=': '<=',
|
|
79
|
+
// Header filter operators text
|
|
80
|
+
headerFilterOperatorContains: 'Պարունակում է',
|
|
81
|
+
headerFilterOperatorDoesNotContain: 'Չի պարունակում',
|
|
82
|
+
headerFilterOperatorEquals: 'Հավասար է',
|
|
83
|
+
headerFilterOperatorDoesNotEqual: 'Հավասար չէ',
|
|
84
|
+
headerFilterOperatorStartsWith: 'Սկսվում է',
|
|
85
|
+
headerFilterOperatorEndsWith: 'Վերջանում է',
|
|
86
|
+
headerFilterOperatorIs: 'Է',
|
|
87
|
+
headerFilterOperatorNot: 'Չէ',
|
|
88
|
+
headerFilterOperatorAfter: 'Հետո է',
|
|
89
|
+
headerFilterOperatorOnOrAfter: 'Այդ օրը կամ հետո է',
|
|
90
|
+
headerFilterOperatorBefore: 'Մինչ է',
|
|
91
|
+
headerFilterOperatorOnOrBefore: 'Այդ օրը կամ առաջ է',
|
|
92
|
+
headerFilterOperatorIsEmpty: 'Դատարկ է',
|
|
93
|
+
headerFilterOperatorIsNotEmpty: 'Դատարկ չէ',
|
|
94
|
+
headerFilterOperatorIsAnyOf: 'Որևէ մեկը',
|
|
95
|
+
'headerFilterOperator=': 'Հավասար է',
|
|
96
|
+
'headerFilterOperator!=': 'Հավասար չէ',
|
|
97
|
+
'headerFilterOperator>': 'Ավելի մեծ է',
|
|
98
|
+
'headerFilterOperator>=': 'Ավելի մեծ կամ հավասար է',
|
|
99
|
+
'headerFilterOperator<': 'Ավելի փոքր է',
|
|
100
|
+
'headerFilterOperator<=': 'Ավելի փոքր կամ հավասար է',
|
|
101
|
+
// Filter values text
|
|
102
|
+
filterValueAny: 'ցանկացած',
|
|
103
|
+
filterValueTrue: 'այո',
|
|
104
|
+
filterValueFalse: 'ոչ',
|
|
105
|
+
// Column menu text
|
|
106
|
+
columnMenuLabel: 'Մենյու',
|
|
107
|
+
columnMenuAriaLabel: columnName => `${columnName} սյունակի մենյու`,
|
|
108
|
+
columnMenuShowColumns: 'Ցուցադրել սյունակները',
|
|
109
|
+
columnMenuManageColumns: 'Կառավարել սյունակները',
|
|
110
|
+
columnMenuFilter: 'Զտիչ',
|
|
111
|
+
columnMenuHideColumn: 'Թաքցնել',
|
|
112
|
+
columnMenuUnsort: 'Մաքրել դասավորումը',
|
|
113
|
+
columnMenuSortAsc: 'Աճման կարգով դասավորել',
|
|
114
|
+
columnMenuSortDesc: 'Նվազման կարգով դասավորել',
|
|
115
|
+
// Column header text
|
|
116
|
+
columnHeaderFiltersTooltipActive: count => {
|
|
117
|
+
let pluralForm = 'ակտիվ զտիչներ';
|
|
118
|
+
if (count === 1) {
|
|
119
|
+
pluralForm = 'ակտիվ զտիչ';
|
|
120
|
+
}
|
|
121
|
+
return `${count} ${pluralForm}`;
|
|
122
|
+
},
|
|
123
|
+
columnHeaderFiltersLabel: 'Ցուցադրել զտիչները',
|
|
124
|
+
columnHeaderSortIconLabel: 'Դասավորել',
|
|
125
|
+
// Rows selected footer text
|
|
126
|
+
footerRowSelected: count => {
|
|
127
|
+
let pluralForm = 'ընտրված տող';
|
|
128
|
+
if (count === 1) {
|
|
129
|
+
pluralForm = 'ընտրված տող';
|
|
130
|
+
} else {
|
|
131
|
+
pluralForm = 'ընտրված տողեր';
|
|
132
|
+
}
|
|
133
|
+
return `${count} ${pluralForm}`;
|
|
134
|
+
},
|
|
135
|
+
// Total row amount footer text
|
|
136
|
+
footerTotalRows: 'Ընդամենը տողեր:',
|
|
137
|
+
// Total visible row amount footer text
|
|
138
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => {
|
|
139
|
+
return `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`;
|
|
140
|
+
},
|
|
141
|
+
// Checkbox selection text
|
|
142
|
+
checkboxSelectionHeaderName: 'Տողի ընտրություն',
|
|
143
|
+
checkboxSelectionSelectAllRows: 'Ընտրել բոլոր տողերը',
|
|
144
|
+
checkboxSelectionUnselectAllRows: 'Չընտրել բոլոր տողերը',
|
|
145
|
+
checkboxSelectionSelectRow: 'Ընտրել տողը',
|
|
146
|
+
checkboxSelectionUnselectRow: 'Չընտրել տողը',
|
|
147
|
+
// Boolean cell text
|
|
148
|
+
booleanCellTrueLabel: 'այո',
|
|
149
|
+
booleanCellFalseLabel: 'ոչ',
|
|
150
|
+
// Actions cell more text
|
|
151
|
+
actionsCellMore: 'ավելին',
|
|
152
|
+
// Column pinning text
|
|
153
|
+
pinToLeft: 'Կցել ձախ',
|
|
154
|
+
pinToRight: 'Կցել աջ',
|
|
155
|
+
unpin: 'Անջատել',
|
|
156
|
+
// Tree Data
|
|
157
|
+
treeDataGroupingHeaderName: 'Խումբ',
|
|
158
|
+
treeDataExpand: 'Բացել ենթատողերը',
|
|
159
|
+
treeDataCollapse: 'Փակել ենթատողերը',
|
|
160
|
+
// Grouping columns
|
|
161
|
+
groupingColumnHeaderName: 'Խմբավորում',
|
|
162
|
+
groupColumn: name => `Խմբավորել ըստ ${name}`,
|
|
163
|
+
unGroupColumn: name => `Չխմբավորել ըստ ${name}`,
|
|
164
|
+
// Master/detail
|
|
165
|
+
detailPanelToggle: 'Փոխարկել մանրամասն տեսքը',
|
|
166
|
+
expandDetailPanel: 'Բացել',
|
|
167
|
+
collapseDetailPanel: 'Փակել',
|
|
168
|
+
// Row reordering text
|
|
169
|
+
rowReorderingHeaderName: 'Տողերի վերադասավորում',
|
|
170
|
+
// Aggregation
|
|
171
|
+
aggregationMenuItemHeader: 'Ագրեգացում',
|
|
172
|
+
aggregationFunctionLabelSum: 'գումար',
|
|
173
|
+
aggregationFunctionLabelAvg: 'միջին',
|
|
174
|
+
aggregationFunctionLabelMin: 'մինիմում',
|
|
175
|
+
aggregationFunctionLabelMax: 'մաքսիմում',
|
|
176
|
+
aggregationFunctionLabelSize: 'քանակ'
|
|
177
|
+
};
|
|
178
|
+
export const hyAM = getGridLocalization(hyAMGrid, hyAMCore);
|
package/modern/locales/index.js
CHANGED
|
@@ -9,6 +9,7 @@ exports.useDataGridProps = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _styles = require("@mui/material/styles");
|
|
12
|
+
var _system = require("@mui/system");
|
|
12
13
|
var _constants = require("../constants");
|
|
13
14
|
var _defaultGridSlotsComponents = require("../constants/defaultGridSlotsComponents");
|
|
14
15
|
var _utils = require("../internals/utils");
|
|
@@ -27,12 +28,12 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
27
28
|
};
|
|
28
29
|
const defaultSlots = _defaultGridSlotsComponents.DATA_GRID_DEFAULT_SLOTS_COMPONENTS;
|
|
29
30
|
const useDataGridProps = inProps => {
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
(0, _styles.useThemeProps)({
|
|
31
|
+
const theme = (0, _styles.useTheme)();
|
|
32
|
+
const themedProps = (0, _utils.useProps)(React.useMemo(() => (0, _system.getThemeProps)({
|
|
33
33
|
props: inProps,
|
|
34
|
+
theme,
|
|
34
35
|
name: 'MuiDataGrid'
|
|
35
|
-
}));
|
|
36
|
+
}), [theme, inProps]));
|
|
36
37
|
const localeText = React.useMemo(() => (0, _extends2.default)({}, _constants.GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
37
38
|
const slots = React.useMemo(() => (0, _utils.computeSlots)({
|
|
38
39
|
defaultSlots,
|
|
@@ -11,17 +11,19 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
15
|
var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
|
|
15
16
|
var _gridClasses = require("../../constants/gridClasses");
|
|
16
17
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
17
18
|
var _GridIconButtonContainer = require("./GridIconButtonContainer");
|
|
18
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
const _excluded = ["direction", "index", "sortingOrder", "disabled"];
|
|
20
|
+
const _excluded = ["direction", "index", "sortingOrder", "disabled", "className"];
|
|
20
21
|
const useUtilityClasses = ownerState => {
|
|
21
22
|
const {
|
|
22
23
|
classes
|
|
23
24
|
} = ownerState;
|
|
24
25
|
const slots = {
|
|
26
|
+
root: ['sortButton'],
|
|
25
27
|
icon: ['sortIcon']
|
|
26
28
|
};
|
|
27
29
|
return (0, _composeClasses.default)(slots, _gridClasses.getDataGridUtilityClass, classes);
|
|
@@ -47,7 +49,8 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
47
49
|
direction,
|
|
48
50
|
index,
|
|
49
51
|
sortingOrder,
|
|
50
|
-
disabled
|
|
52
|
+
disabled,
|
|
53
|
+
className
|
|
51
54
|
} = props,
|
|
52
55
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
53
56
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
@@ -65,7 +68,8 @@ function GridColumnHeaderSortIconRaw(props) {
|
|
|
65
68
|
"aria-label": apiRef.current.getLocaleText('columnHeaderSortIconLabel'),
|
|
66
69
|
title: apiRef.current.getLocaleText('columnHeaderSortIconLabel'),
|
|
67
70
|
size: "small",
|
|
68
|
-
disabled: disabled
|
|
71
|
+
disabled: disabled,
|
|
72
|
+
className: (0, _clsx.default)(classes.root, className)
|
|
69
73
|
}, rootProps.slotProps?.baseIconButton, other, {
|
|
70
74
|
children: iconElement
|
|
71
75
|
}));
|
|
@@ -84,6 +88,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes =
|
|
|
84
88
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
85
89
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
86
90
|
// ----------------------------------------------------------------------
|
|
91
|
+
className: _propTypes.default.string,
|
|
87
92
|
direction: _propTypes.default.oneOf(['asc', 'desc']),
|
|
88
93
|
disabled: _propTypes.default.bool,
|
|
89
94
|
field: _propTypes.default.string.isRequired,
|
|
@@ -19,16 +19,6 @@ function getBorderColor(theme) {
|
|
|
19
19
|
}
|
|
20
20
|
return (0, _styles.darken)((0, _styles.alpha)(theme.palette.divider, 1), 0.68);
|
|
21
21
|
}
|
|
22
|
-
const columnHeaderStyles = {
|
|
23
|
-
[`& .${_gridClasses.gridClasses.iconButtonContainer}`]: {
|
|
24
|
-
visibility: 'visible',
|
|
25
|
-
width: 'auto'
|
|
26
|
-
},
|
|
27
|
-
[`& .${_gridClasses.gridClasses.menuIcon}`]: {
|
|
28
|
-
width: 'auto',
|
|
29
|
-
visibility: 'visible'
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
22
|
const columnSeparatorTargetSize = 10;
|
|
33
23
|
const columnSeparatorOffset = -5;
|
|
34
24
|
const focusOutlineWidth = 1;
|
|
@@ -446,7 +436,7 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
446
436
|
visibility: 'visible',
|
|
447
437
|
width: 'auto'
|
|
448
438
|
},
|
|
449
|
-
[`& .${_gridClasses.gridClasses.columnHeader}:not(.${_gridClasses.gridClasses['columnHeader--sorted']}) .${_gridClasses.gridClasses.
|
|
439
|
+
[`& .${_gridClasses.gridClasses.columnHeader}:not(.${_gridClasses.gridClasses['columnHeader--sorted']}) .${_gridClasses.gridClasses.sortButton}`]: {
|
|
450
440
|
opacity: 0,
|
|
451
441
|
transition: t.transitions.create(['opacity'], {
|
|
452
442
|
duration: t.transitions.duration.shorter
|
|
@@ -514,13 +504,25 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
514
504
|
width: 'var(--DataGrid-rowWidth)'
|
|
515
505
|
},
|
|
516
506
|
'@media (hover: hover)': {
|
|
517
|
-
[`& .${_gridClasses.gridClasses.columnHeader}:hover`]:
|
|
518
|
-
|
|
507
|
+
[`& .${_gridClasses.gridClasses.columnHeader}:hover`]: {
|
|
508
|
+
[`& .${_gridClasses.gridClasses.menuIcon}`]: {
|
|
509
|
+
width: 'auto',
|
|
510
|
+
visibility: 'visible'
|
|
511
|
+
},
|
|
512
|
+
[`& .${_gridClasses.gridClasses.iconButtonContainer}`]: {
|
|
513
|
+
visibility: 'visible',
|
|
514
|
+
width: 'auto'
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
[`& .${_gridClasses.gridClasses.columnHeader}:not(.${_gridClasses.gridClasses['columnHeader--sorted']}):hover .${_gridClasses.gridClasses.sortButton}`]: {
|
|
519
518
|
opacity: 0.5
|
|
520
519
|
}
|
|
521
520
|
},
|
|
522
521
|
'@media (hover: none)': {
|
|
523
|
-
[`& .${_gridClasses.gridClasses.columnHeader}`]:
|
|
522
|
+
[`& .${_gridClasses.gridClasses.columnHeader} .${_gridClasses.gridClasses.menuIcon}`]: {
|
|
523
|
+
width: 'auto',
|
|
524
|
+
visibility: 'visible'
|
|
525
|
+
},
|
|
524
526
|
[`& .${_gridClasses.gridClasses.columnHeader}:focus,
|
|
525
527
|
& .${_gridClasses.gridClasses['columnHeader--siblingFocused']}`]: {
|
|
526
528
|
[`.${_gridClasses.gridClasses['columnSeparator--resizable']}`]: {
|
|
@@ -9,4 +9,4 @@ var _utils = require("@mui/utils");
|
|
|
9
9
|
function getDataGridUtilityClass(slot) {
|
|
10
10
|
return (0, _utils.unstable_generateUtilityClass)('MuiDataGrid', slot);
|
|
11
11
|
}
|
|
12
|
-
const gridClasses = exports.gridClasses = (0, _utils.unstable_generateUtilityClasses)('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hasSkeletonLoadingOverlay', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);
|
|
12
|
+
const gridClasses = exports.gridClasses = (0, _utils.unstable_generateUtilityClasses)('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'container--top', 'container--bottom', 'detailPanel', 'detailPanels', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hasSkeletonLoadingOverlay', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortButton', 'sortIcon', 'toolbarContainer', 'toolbarFilterList', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'pinnedColumns', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom', 'pinnedRowsRenderZone']);
|
package/node/index.js
CHANGED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.hyAM = void 0;
|
|
7
|
+
var _locale = require("@mui/material/locale");
|
|
8
|
+
var _getGridLocalization = require("../utils/getGridLocalization");
|
|
9
|
+
const hyAMGrid = {
|
|
10
|
+
// Root
|
|
11
|
+
noRowsLabel: 'Տվյալներ չկան',
|
|
12
|
+
noResultsOverlayLabel: 'Արդյունքներ չեն գտնվել։',
|
|
13
|
+
// Density selector toolbar button text
|
|
14
|
+
toolbarDensity: 'Խտություն',
|
|
15
|
+
toolbarDensityLabel: 'Խտություն',
|
|
16
|
+
toolbarDensityCompact: 'Կոմպակտ',
|
|
17
|
+
toolbarDensityStandard: 'Ստանդարտ',
|
|
18
|
+
toolbarDensityComfortable: 'Հարմարավետ',
|
|
19
|
+
// Columns selector toolbar button text
|
|
20
|
+
toolbarColumns: 'Սյունակներ',
|
|
21
|
+
toolbarColumnsLabel: 'Ընտրել սյունակներ',
|
|
22
|
+
// Filters toolbar button text
|
|
23
|
+
toolbarFilters: 'Զտիչներ',
|
|
24
|
+
toolbarFiltersLabel: 'Ցուցադրել զտիչները',
|
|
25
|
+
toolbarFiltersTooltipHide: 'Թաքցնել զտիչները',
|
|
26
|
+
toolbarFiltersTooltipShow: 'Ցուցադրել զտիչները',
|
|
27
|
+
toolbarFiltersTooltipActive: count => {
|
|
28
|
+
let pluralForm = 'ակտիվ զտիչ';
|
|
29
|
+
if (count === 1) {
|
|
30
|
+
pluralForm = 'ակտիվ զտիչ';
|
|
31
|
+
} else {
|
|
32
|
+
pluralForm = 'ակտիվ զտիչներ';
|
|
33
|
+
}
|
|
34
|
+
return `${count} ${pluralForm}`;
|
|
35
|
+
},
|
|
36
|
+
// Quick filter toolbar field
|
|
37
|
+
toolbarQuickFilterPlaceholder: 'Որոնել…',
|
|
38
|
+
toolbarQuickFilterLabel: 'Որոնել',
|
|
39
|
+
toolbarQuickFilterDeleteIconLabel: 'Մաքրել',
|
|
40
|
+
// Export selector toolbar button text
|
|
41
|
+
toolbarExport: 'Արտահանում',
|
|
42
|
+
toolbarExportLabel: 'Արտահանում',
|
|
43
|
+
toolbarExportCSV: 'Ներբեռնել CSV-ով',
|
|
44
|
+
toolbarExportPrint: 'Տպել',
|
|
45
|
+
toolbarExportExcel: 'Ներբեռնել Excel-ով',
|
|
46
|
+
// Columns management text
|
|
47
|
+
columnsManagementSearchTitle: 'Որոնել',
|
|
48
|
+
columnsManagementNoColumns: 'Սյունակներ չկան',
|
|
49
|
+
columnsManagementShowHideAllText: 'Ցուցադրել/Թաքցնել բոլորը',
|
|
50
|
+
columnsManagementReset: 'Վերակայել',
|
|
51
|
+
columnsManagementDeleteIconLabel: 'Հեռացնել',
|
|
52
|
+
// Filter panel text
|
|
53
|
+
filterPanelAddFilter: 'Ավելացնել զտիչ',
|
|
54
|
+
filterPanelRemoveAll: 'Հեռացնել բոլորը',
|
|
55
|
+
filterPanelDeleteIconLabel: 'Հեռացնել',
|
|
56
|
+
filterPanelLogicOperator: 'Տրամաբանական օպերատոր',
|
|
57
|
+
filterPanelOperator: 'Օպերատոր',
|
|
58
|
+
filterPanelOperatorAnd: 'Եվ',
|
|
59
|
+
filterPanelOperatorOr: 'Կամ',
|
|
60
|
+
filterPanelColumns: 'Սյունակներ',
|
|
61
|
+
filterPanelInputLabel: 'Արժեք',
|
|
62
|
+
filterPanelInputPlaceholder: 'Զտիչի արժեք',
|
|
63
|
+
// Filter operators text
|
|
64
|
+
filterOperatorContains: 'պարունակում է',
|
|
65
|
+
filterOperatorDoesNotContain: 'չի պարունակում',
|
|
66
|
+
filterOperatorEquals: 'հավասար է',
|
|
67
|
+
filterOperatorDoesNotEqual: 'հավասար չէ',
|
|
68
|
+
filterOperatorStartsWith: 'սկսվում է',
|
|
69
|
+
filterOperatorEndsWith: 'վերջանում է',
|
|
70
|
+
filterOperatorIs: 'է',
|
|
71
|
+
filterOperatorNot: 'չէ',
|
|
72
|
+
filterOperatorAfter: 'հետո է',
|
|
73
|
+
filterOperatorOnOrAfter: 'այդ օրը կամ հետո է',
|
|
74
|
+
filterOperatorBefore: 'մինչ է',
|
|
75
|
+
filterOperatorOnOrBefore: 'այդ օրը կամ առաջ է',
|
|
76
|
+
filterOperatorIsEmpty: 'դատարկ է',
|
|
77
|
+
filterOperatorIsNotEmpty: 'դատարկ չէ',
|
|
78
|
+
filterOperatorIsAnyOf: 'որևէ մեկը',
|
|
79
|
+
'filterOperator=': '=',
|
|
80
|
+
'filterOperator!=': '!=',
|
|
81
|
+
'filterOperator>': '>',
|
|
82
|
+
'filterOperator>=': '>=',
|
|
83
|
+
'filterOperator<': '<',
|
|
84
|
+
'filterOperator<=': '<=',
|
|
85
|
+
// Header filter operators text
|
|
86
|
+
headerFilterOperatorContains: 'Պարունակում է',
|
|
87
|
+
headerFilterOperatorDoesNotContain: 'Չի պարունակում',
|
|
88
|
+
headerFilterOperatorEquals: 'Հավասար է',
|
|
89
|
+
headerFilterOperatorDoesNotEqual: 'Հավասար չէ',
|
|
90
|
+
headerFilterOperatorStartsWith: 'Սկսվում է',
|
|
91
|
+
headerFilterOperatorEndsWith: 'Վերջանում է',
|
|
92
|
+
headerFilterOperatorIs: 'Է',
|
|
93
|
+
headerFilterOperatorNot: 'Չէ',
|
|
94
|
+
headerFilterOperatorAfter: 'Հետո է',
|
|
95
|
+
headerFilterOperatorOnOrAfter: 'Այդ օրը կամ հետո է',
|
|
96
|
+
headerFilterOperatorBefore: 'Մինչ է',
|
|
97
|
+
headerFilterOperatorOnOrBefore: 'Այդ օրը կամ առաջ է',
|
|
98
|
+
headerFilterOperatorIsEmpty: 'Դատարկ է',
|
|
99
|
+
headerFilterOperatorIsNotEmpty: 'Դատարկ չէ',
|
|
100
|
+
headerFilterOperatorIsAnyOf: 'Որևէ մեկը',
|
|
101
|
+
'headerFilterOperator=': 'Հավասար է',
|
|
102
|
+
'headerFilterOperator!=': 'Հավասար չէ',
|
|
103
|
+
'headerFilterOperator>': 'Ավելի մեծ է',
|
|
104
|
+
'headerFilterOperator>=': 'Ավելի մեծ կամ հավասար է',
|
|
105
|
+
'headerFilterOperator<': 'Ավելի փոքր է',
|
|
106
|
+
'headerFilterOperator<=': 'Ավելի փոքր կամ հավասար է',
|
|
107
|
+
// Filter values text
|
|
108
|
+
filterValueAny: 'ցանկացած',
|
|
109
|
+
filterValueTrue: 'այո',
|
|
110
|
+
filterValueFalse: 'ոչ',
|
|
111
|
+
// Column menu text
|
|
112
|
+
columnMenuLabel: 'Մենյու',
|
|
113
|
+
columnMenuAriaLabel: columnName => `${columnName} սյունակի մենյու`,
|
|
114
|
+
columnMenuShowColumns: 'Ցուցադրել սյունակները',
|
|
115
|
+
columnMenuManageColumns: 'Կառավարել սյունակները',
|
|
116
|
+
columnMenuFilter: 'Զտիչ',
|
|
117
|
+
columnMenuHideColumn: 'Թաքցնել',
|
|
118
|
+
columnMenuUnsort: 'Մաքրել դասավորումը',
|
|
119
|
+
columnMenuSortAsc: 'Աճման կարգով դասավորել',
|
|
120
|
+
columnMenuSortDesc: 'Նվազման կարգով դասավորել',
|
|
121
|
+
// Column header text
|
|
122
|
+
columnHeaderFiltersTooltipActive: count => {
|
|
123
|
+
let pluralForm = 'ակտիվ զտիչներ';
|
|
124
|
+
if (count === 1) {
|
|
125
|
+
pluralForm = 'ակտիվ զտիչ';
|
|
126
|
+
}
|
|
127
|
+
return `${count} ${pluralForm}`;
|
|
128
|
+
},
|
|
129
|
+
columnHeaderFiltersLabel: 'Ցուցադրել զտիչները',
|
|
130
|
+
columnHeaderSortIconLabel: 'Դասավորել',
|
|
131
|
+
// Rows selected footer text
|
|
132
|
+
footerRowSelected: count => {
|
|
133
|
+
let pluralForm = 'ընտրված տող';
|
|
134
|
+
if (count === 1) {
|
|
135
|
+
pluralForm = 'ընտրված տող';
|
|
136
|
+
} else {
|
|
137
|
+
pluralForm = 'ընտրված տողեր';
|
|
138
|
+
}
|
|
139
|
+
return `${count} ${pluralForm}`;
|
|
140
|
+
},
|
|
141
|
+
// Total row amount footer text
|
|
142
|
+
footerTotalRows: 'Ընդամենը տողեր:',
|
|
143
|
+
// Total visible row amount footer text
|
|
144
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => {
|
|
145
|
+
return `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`;
|
|
146
|
+
},
|
|
147
|
+
// Checkbox selection text
|
|
148
|
+
checkboxSelectionHeaderName: 'Տողի ընտրություն',
|
|
149
|
+
checkboxSelectionSelectAllRows: 'Ընտրել բոլոր տողերը',
|
|
150
|
+
checkboxSelectionUnselectAllRows: 'Չընտրել բոլոր տողերը',
|
|
151
|
+
checkboxSelectionSelectRow: 'Ընտրել տողը',
|
|
152
|
+
checkboxSelectionUnselectRow: 'Չընտրել տողը',
|
|
153
|
+
// Boolean cell text
|
|
154
|
+
booleanCellTrueLabel: 'այո',
|
|
155
|
+
booleanCellFalseLabel: 'ոչ',
|
|
156
|
+
// Actions cell more text
|
|
157
|
+
actionsCellMore: 'ավելին',
|
|
158
|
+
// Column pinning text
|
|
159
|
+
pinToLeft: 'Կցել ձախ',
|
|
160
|
+
pinToRight: 'Կցել աջ',
|
|
161
|
+
unpin: 'Անջատել',
|
|
162
|
+
// Tree Data
|
|
163
|
+
treeDataGroupingHeaderName: 'Խումբ',
|
|
164
|
+
treeDataExpand: 'Բացել ենթատողերը',
|
|
165
|
+
treeDataCollapse: 'Փակել ենթատողերը',
|
|
166
|
+
// Grouping columns
|
|
167
|
+
groupingColumnHeaderName: 'Խմբավորում',
|
|
168
|
+
groupColumn: name => `Խմբավորել ըստ ${name}`,
|
|
169
|
+
unGroupColumn: name => `Չխմբավորել ըստ ${name}`,
|
|
170
|
+
// Master/detail
|
|
171
|
+
detailPanelToggle: 'Փոխարկել մանրամասն տեսքը',
|
|
172
|
+
expandDetailPanel: 'Բացել',
|
|
173
|
+
collapseDetailPanel: 'Փակել',
|
|
174
|
+
// Row reordering text
|
|
175
|
+
rowReorderingHeaderName: 'Տողերի վերադասավորում',
|
|
176
|
+
// Aggregation
|
|
177
|
+
aggregationMenuItemHeader: 'Ագրեգացում',
|
|
178
|
+
aggregationFunctionLabelSum: 'գումար',
|
|
179
|
+
aggregationFunctionLabelAvg: 'միջին',
|
|
180
|
+
aggregationFunctionLabelMin: 'մինիմում',
|
|
181
|
+
aggregationFunctionLabelMax: 'մաքսիմում',
|
|
182
|
+
aggregationFunctionLabelSize: 'քանակ'
|
|
183
|
+
};
|
|
184
|
+
const hyAM = exports.hyAM = (0, _getGridLocalization.getGridLocalization)(hyAMGrid, _locale.hyAM);
|
package/node/locales/index.js
CHANGED
|
@@ -168,6 +168,17 @@ Object.keys(_huHU).forEach(function (key) {
|
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
});
|
|
171
|
+
var _hyAM = require("./hyAM");
|
|
172
|
+
Object.keys(_hyAM).forEach(function (key) {
|
|
173
|
+
if (key === "default" || key === "__esModule") return;
|
|
174
|
+
if (key in exports && exports[key] === _hyAM[key]) return;
|
|
175
|
+
Object.defineProperty(exports, key, {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () {
|
|
178
|
+
return _hyAM[key];
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
});
|
|
171
182
|
var _itIT = require("./itIT");
|
|
172
183
|
Object.keys(_itIT).forEach(function (key) {
|
|
173
184
|
if (key === "default" || key === "__esModule") return;
|