@mui/x-data-grid 7.29.0 → 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 +131 -0
- package/DataGrid/useDataGridProps.js +6 -5
- package/components/GridApiContext.js +2 -0
- package/components/GridConfigurationContext.js +2 -0
- package/components/GridScrollArea.js +2 -0
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -0
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +8 -3
- package/components/containers/GridRootStyles.js +19 -14
- package/constants/gridClasses.d.ts +4 -0
- package/constants/gridClasses.js +1 -1
- package/context/GridRootPropsContext.js +2 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +5 -5
- 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/GridApiContext.js +2 -0
- package/modern/components/GridConfigurationContext.js +2 -0
- package/modern/components/GridScrollArea.js +2 -0
- package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +8 -3
- package/modern/components/containers/GridRootStyles.js +19 -14
- package/modern/constants/gridClasses.js +1 -1
- package/modern/context/GridRootPropsContext.js +2 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +5 -5
- 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/GridApiContext.js +1 -0
- package/node/components/GridConfigurationContext.js +1 -0
- package/node/components/GridScrollArea.js +1 -0
- package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +8 -3
- package/node/components/containers/GridRootStyles.js +19 -14
- package/node/constants/gridClasses.js +1 -1
- package/node/context/GridRootPropsContext.js +1 -0
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +5 -5
- 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
|
@@ -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;
|
|
@@ -345,6 +335,9 @@ export const GridRootStyles = styled('div', {
|
|
|
345
335
|
overflow: 'hidden',
|
|
346
336
|
overflowAnchor: 'none',
|
|
347
337
|
// Keep the same scrolling position
|
|
338
|
+
transform: 'translate(0, 0)',
|
|
339
|
+
// Create a stacking context to keep scrollbars from showing on top
|
|
340
|
+
|
|
348
341
|
[`.${c.main} > *:first-child${ignoreSsrWarning}`]: {
|
|
349
342
|
borderTopLeftRadius: 'var(--unstable_DataGrid-radius)',
|
|
350
343
|
borderTopRightRadius: 'var(--unstable_DataGrid-radius)'
|
|
@@ -436,7 +429,7 @@ export const GridRootStyles = styled('div', {
|
|
|
436
429
|
visibility: 'visible',
|
|
437
430
|
width: 'auto'
|
|
438
431
|
},
|
|
439
|
-
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}) .${c.
|
|
432
|
+
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}) .${c.sortButton}`]: {
|
|
440
433
|
opacity: 0,
|
|
441
434
|
transition: t.transitions.create(['opacity'], {
|
|
442
435
|
duration: t.transitions.duration.shorter
|
|
@@ -504,13 +497,25 @@ export const GridRootStyles = styled('div', {
|
|
|
504
497
|
width: 'var(--DataGrid-rowWidth)'
|
|
505
498
|
},
|
|
506
499
|
'@media (hover: hover)': {
|
|
507
|
-
[`& .${c.columnHeader}:hover`]:
|
|
508
|
-
|
|
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}`]: {
|
|
509
511
|
opacity: 0.5
|
|
510
512
|
}
|
|
511
513
|
},
|
|
512
514
|
'@media (hover: none)': {
|
|
513
|
-
[`& .${c.columnHeader}`]:
|
|
515
|
+
[`& .${c.columnHeader} .${c.menuIcon}`]: {
|
|
516
|
+
width: 'auto',
|
|
517
|
+
visibility: 'visible'
|
|
518
|
+
},
|
|
514
519
|
[`& .${c.columnHeader}:focus,
|
|
515
520
|
& .${c['columnHeader--siblingFocused']}`]: {
|
|
516
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']);
|
|
@@ -588,11 +588,6 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
588
588
|
firstColumnIndex: 0,
|
|
589
589
|
lastColumnIndex: inputs.visibleColumns.length
|
|
590
590
|
};
|
|
591
|
-
if (inputs.listView) {
|
|
592
|
-
return _extends({}, renderContext, {
|
|
593
|
-
lastColumnIndex: 1
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
591
|
const {
|
|
597
592
|
top,
|
|
598
593
|
left
|
|
@@ -617,6 +612,11 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
617
612
|
renderContext.firstRowIndex = firstRowIndex;
|
|
618
613
|
renderContext.lastRowIndex = lastRowIndex;
|
|
619
614
|
}
|
|
615
|
+
if (inputs.listView) {
|
|
616
|
+
return _extends({}, renderContext, {
|
|
617
|
+
lastColumnIndex: 1
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
620
|
if (inputs.enabledForColumns) {
|
|
621
621
|
let firstColumnIndex = 0;
|
|
622
622
|
let lastColumnIndex = inputs.columnPositions.length;
|
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;
|
|
@@ -352,6 +342,9 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
352
342
|
overflow: 'hidden',
|
|
353
343
|
overflowAnchor: 'none',
|
|
354
344
|
// Keep the same scrolling position
|
|
345
|
+
transform: 'translate(0, 0)',
|
|
346
|
+
// Create a stacking context to keep scrollbars from showing on top
|
|
347
|
+
|
|
355
348
|
[`.${_gridClasses.gridClasses.main} > *:first-child${ignoreSsrWarning}`]: {
|
|
356
349
|
borderTopLeftRadius: 'var(--unstable_DataGrid-radius)',
|
|
357
350
|
borderTopRightRadius: 'var(--unstable_DataGrid-radius)'
|
|
@@ -443,7 +436,7 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
443
436
|
visibility: 'visible',
|
|
444
437
|
width: 'auto'
|
|
445
438
|
},
|
|
446
|
-
[`& .${_gridClasses.gridClasses.columnHeader}:not(.${_gridClasses.gridClasses['columnHeader--sorted']}) .${_gridClasses.gridClasses.
|
|
439
|
+
[`& .${_gridClasses.gridClasses.columnHeader}:not(.${_gridClasses.gridClasses['columnHeader--sorted']}) .${_gridClasses.gridClasses.sortButton}`]: {
|
|
447
440
|
opacity: 0,
|
|
448
441
|
transition: t.transitions.create(['opacity'], {
|
|
449
442
|
duration: t.transitions.duration.shorter
|
|
@@ -511,13 +504,25 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
511
504
|
width: 'var(--DataGrid-rowWidth)'
|
|
512
505
|
},
|
|
513
506
|
'@media (hover: hover)': {
|
|
514
|
-
[`& .${_gridClasses.gridClasses.columnHeader}:hover`]:
|
|
515
|
-
|
|
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}`]: {
|
|
516
518
|
opacity: 0.5
|
|
517
519
|
}
|
|
518
520
|
},
|
|
519
521
|
'@media (hover: none)': {
|
|
520
|
-
[`& .${_gridClasses.gridClasses.columnHeader}`]:
|
|
522
|
+
[`& .${_gridClasses.gridClasses.columnHeader} .${_gridClasses.gridClasses.menuIcon}`]: {
|
|
523
|
+
width: 'auto',
|
|
524
|
+
visibility: 'visible'
|
|
525
|
+
},
|
|
521
526
|
[`& .${_gridClasses.gridClasses.columnHeader}:focus,
|
|
522
527
|
& .${_gridClasses.gridClasses['columnHeader--siblingFocused']}`]: {
|
|
523
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']);
|
|
@@ -600,11 +600,6 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
600
600
|
firstColumnIndex: 0,
|
|
601
601
|
lastColumnIndex: inputs.visibleColumns.length
|
|
602
602
|
};
|
|
603
|
-
if (inputs.listView) {
|
|
604
|
-
return (0, _extends2.default)({}, renderContext, {
|
|
605
|
-
lastColumnIndex: 1
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
603
|
const {
|
|
609
604
|
top,
|
|
610
605
|
left
|
|
@@ -629,6 +624,11 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
629
624
|
renderContext.firstRowIndex = firstRowIndex;
|
|
630
625
|
renderContext.lastRowIndex = lastRowIndex;
|
|
631
626
|
}
|
|
627
|
+
if (inputs.listView) {
|
|
628
|
+
return (0, _extends2.default)({}, renderContext, {
|
|
629
|
+
lastColumnIndex: 1
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
632
|
if (inputs.enabledForColumns) {
|
|
633
633
|
let firstColumnIndex = 0;
|
|
634
634
|
let lastColumnIndex = inputs.columnPositions.length;
|
package/node/index.js
CHANGED