@mui/x-data-grid 7.17.0 → 7.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +208 -5
- package/DataGrid/DataGrid.js +16 -1
- package/DataGrid/useDataGridComponent.js +3 -0
- package/DataGrid/useDataGridProps.js +2 -1
- package/components/GridRow.js +1 -0
- package/components/cell/GridCell.js +33 -9
- package/components/columnHeaders/GridBaseColumnHeaders.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.js +12 -4
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/containers/GridRoot.js +1 -1
- package/components/containers/GridRootStyles.js +32 -23
- package/components/containers/GridToolbarContainer.js +1 -1
- package/components/menu/GridMenu.js +1 -1
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/GridPanel.js +1 -1
- package/components/panel/GridPanelContent.js +1 -1
- package/components/panel/GridPanelFooter.js +1 -1
- package/components/panel/GridPanelHeader.js +1 -1
- package/components/panel/GridPanelWrapper.js +1 -1
- package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +1 -1
- package/components/virtualization/GridBottomContainer.d.ts +1 -1
- package/components/virtualization/GridBottomContainer.js +18 -1
- package/components/virtualization/GridMainContainer.js +3 -1
- package/components/virtualization/GridTopContainer.d.ts +1 -1
- package/components/virtualization/GridTopContainer.js +1 -1
- package/components/virtualization/GridVirtualScrollbar.js +1 -7
- package/components/virtualization/GridVirtualScroller.js +1 -0
- package/components/virtualization/GridVirtualScrollerFiller.js +3 -4
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +4 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -2
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +11 -11
- package/hooks/features/columnResize/columnResizeSelector.d.ts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.js +6 -6
- package/hooks/features/columns/gridColumnsSelector.d.ts +12 -12
- package/hooks/features/columns/gridColumnsUtils.js +3 -2
- package/hooks/features/density/densitySelector.d.ts +1 -1
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +4 -0
- package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.js +4 -1
- package/hooks/features/editing/useGridCellEditing.js +3 -19
- package/hooks/features/editing/useGridRowEditing.js +7 -2
- package/hooks/features/editing/utils.d.ts +2 -0
- package/hooks/features/editing/utils.js +15 -0
- package/hooks/features/export/useGridPrintExport.js +2 -1
- package/hooks/features/filter/gridFilterSelector.d.ts +17 -17
- package/hooks/features/focus/gridFocusStateSelector.d.ts +8 -8
- package/hooks/features/focus/useGridFocus.js +2 -1
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +3 -3
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +10 -46
- package/hooks/features/keyboardNavigation/utils.d.ts +17 -0
- package/hooks/features/keyboardNavigation/utils.js +58 -0
- package/hooks/features/pagination/gridPaginationSelector.d.ts +9 -9
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.js +105 -29
- package/hooks/features/rowSelection/utils.d.ts +10 -0
- package/hooks/features/rowSelection/utils.js +156 -1
- package/hooks/features/rows/gridRowSpanningSelectors.d.ts +4 -0
- package/hooks/features/rows/gridRowSpanningSelectors.js +5 -0
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +10 -0
- package/hooks/features/rows/gridRowSpanningUtils.js +42 -0
- package/hooks/features/rows/gridRowsSelector.d.ts +14 -14
- package/hooks/features/rows/useGridRowSpanning.d.ts +27 -0
- package/hooks/features/rows/useGridRowSpanning.js +257 -0
- package/hooks/features/rows/useGridRows.d.ts +1 -1
- package/hooks/features/rows/useGridRows.js +7 -1
- package/hooks/features/scroll/useGridScroll.js +19 -19
- package/hooks/features/sorting/gridSortingSelector.d.ts +4 -4
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +5 -5
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
- package/hooks/utils/useGridApiEventHandler.js +0 -1
- package/hooks/utils/useGridVisibleRows.d.ts +2 -2
- package/index.js +1 -1
- package/internals/index.d.ts +2 -0
- package/internals/index.js +2 -0
- package/locales/bgBG.js +8 -9
- package/locales/deDE.js +4 -4
- package/locales/frFR.js +4 -4
- package/locales/hrHR.d.ts +1 -1
- package/locales/hrHR.js +69 -46
- package/locales/jaJP.js +1 -2
- package/locales/ptPT.d.ts +1 -1
- package/locales/ptPT.js +4 -4
- package/locales/viVN.js +20 -20
- package/locales/zhHK.d.ts +1 -1
- package/models/colDef/gridColDef.d.ts +4 -0
- package/models/gridRowSelectionModel.d.ts +4 -0
- package/models/gridStateCommunity.d.ts +2 -0
- package/models/props/DataGridProps.d.ts +30 -1
- package/modern/DataGrid/DataGrid.js +16 -1
- package/modern/DataGrid/useDataGridComponent.js +3 -0
- package/modern/DataGrid/useDataGridProps.js +2 -1
- package/modern/components/GridRow.js +1 -0
- package/modern/components/cell/GridCell.js +33 -9
- package/modern/components/columnHeaders/GridBaseColumnHeaders.js +1 -1
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +12 -4
- package/modern/components/containers/GridRoot.js +1 -1
- package/modern/components/containers/GridRootStyles.js +32 -23
- package/modern/components/containers/GridToolbarContainer.js +1 -1
- package/modern/components/menu/GridMenu.js +1 -1
- package/modern/components/panel/GridPanel.js +1 -1
- package/modern/components/panel/GridPanelContent.js +1 -1
- package/modern/components/panel/GridPanelFooter.js +1 -1
- package/modern/components/panel/GridPanelHeader.js +1 -1
- package/modern/components/panel/GridPanelWrapper.js +1 -1
- package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -1
- package/modern/components/virtualization/GridBottomContainer.js +18 -1
- package/modern/components/virtualization/GridMainContainer.js +3 -1
- package/modern/components/virtualization/GridTopContainer.js +1 -1
- package/modern/components/virtualization/GridVirtualScrollbar.js +1 -7
- package/modern/components/virtualization/GridVirtualScroller.js +1 -0
- package/modern/components/virtualization/GridVirtualScrollerFiller.js +3 -4
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +11 -11
- package/modern/hooks/features/columnResize/useGridColumnResize.js +6 -6
- package/modern/hooks/features/columns/gridColumnsUtils.js +3 -2
- package/modern/hooks/features/dimensions/useGridDimensions.js +4 -1
- package/modern/hooks/features/editing/useGridCellEditing.js +3 -19
- package/modern/hooks/features/editing/useGridRowEditing.js +7 -2
- package/modern/hooks/features/editing/utils.js +15 -0
- package/modern/hooks/features/export/useGridPrintExport.js +2 -1
- package/modern/hooks/features/focus/useGridFocus.js +2 -1
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +10 -46
- package/modern/hooks/features/keyboardNavigation/utils.js +58 -0
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +105 -29
- package/modern/hooks/features/rowSelection/utils.js +156 -1
- package/modern/hooks/features/rows/gridRowSpanningSelectors.js +5 -0
- package/modern/hooks/features/rows/gridRowSpanningUtils.js +42 -0
- package/modern/hooks/features/rows/useGridRowSpanning.js +257 -0
- package/modern/hooks/features/rows/useGridRows.js +7 -1
- package/modern/hooks/features/scroll/useGridScroll.js +19 -19
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
- package/modern/hooks/utils/useGridApiEventHandler.js +0 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.js +2 -0
- package/modern/locales/bgBG.js +8 -9
- package/modern/locales/deDE.js +4 -4
- package/modern/locales/frFR.js +4 -4
- package/modern/locales/hrHR.js +69 -46
- package/modern/locales/jaJP.js +1 -2
- package/modern/locales/ptPT.js +4 -4
- package/modern/locales/viVN.js +20 -20
- package/modern/utils/createSelector.js +6 -0
- package/modern/utils/domUtils.js +12 -12
- package/node/DataGrid/DataGrid.js +16 -1
- package/node/DataGrid/useDataGridComponent.js +3 -0
- package/node/DataGrid/useDataGridProps.js +2 -1
- package/node/components/GridRow.js +1 -0
- package/node/components/cell/GridCell.js +33 -9
- package/node/components/columnHeaders/GridBaseColumnHeaders.js +1 -1
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +12 -4
- package/node/components/containers/GridRoot.js +1 -1
- package/node/components/containers/GridRootStyles.js +32 -23
- package/node/components/containers/GridToolbarContainer.js +1 -1
- package/node/components/menu/GridMenu.js +1 -1
- package/node/components/panel/GridPanel.js +1 -1
- package/node/components/panel/GridPanelContent.js +1 -1
- package/node/components/panel/GridPanelFooter.js +1 -1
- package/node/components/panel/GridPanelHeader.js +1 -1
- package/node/components/panel/GridPanelWrapper.js +1 -1
- package/node/components/toolbar/GridToolbarQuickFilter.js +1 -1
- package/node/components/virtualization/GridBottomContainer.js +18 -1
- package/node/components/virtualization/GridMainContainer.js +3 -1
- package/node/components/virtualization/GridTopContainer.js +1 -1
- package/node/components/virtualization/GridVirtualScrollbar.js +1 -7
- package/node/components/virtualization/GridVirtualScroller.js +1 -0
- package/node/components/virtualization/GridVirtualScrollerFiller.js +3 -4
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +11 -11
- package/node/hooks/features/columnResize/useGridColumnResize.js +6 -6
- package/node/hooks/features/columns/gridColumnsUtils.js +3 -2
- package/node/hooks/features/dimensions/useGridDimensions.js +4 -1
- package/node/hooks/features/editing/useGridCellEditing.js +3 -19
- package/node/hooks/features/editing/useGridRowEditing.js +7 -2
- package/node/hooks/features/editing/utils.js +22 -0
- package/node/hooks/features/export/useGridPrintExport.js +2 -1
- package/node/hooks/features/focus/useGridFocus.js +2 -1
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +16 -53
- package/node/hooks/features/keyboardNavigation/utils.js +68 -0
- package/node/hooks/features/rowSelection/useGridRowSelection.js +102 -26
- package/node/hooks/features/rowSelection/utils.js +160 -1
- package/node/hooks/features/rows/gridRowSpanningSelectors.js +11 -0
- package/node/hooks/features/rows/gridRowSpanningUtils.js +52 -0
- package/node/hooks/features/rows/useGridRowSpanning.js +267 -0
- package/node/hooks/features/rows/useGridRows.js +7 -1
- package/node/hooks/features/scroll/useGridScroll.js +19 -19
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
- package/node/hooks/utils/useGridApiEventHandler.js +0 -1
- package/node/index.js +1 -1
- package/node/internals/index.js +38 -15
- package/node/locales/bgBG.js +8 -9
- package/node/locales/deDE.js +4 -4
- package/node/locales/frFR.js +4 -4
- package/node/locales/hrHR.js +69 -46
- package/node/locales/jaJP.js +1 -2
- package/node/locales/ptPT.js +4 -4
- package/node/locales/viVN.js +20 -20
- package/node/utils/createSelector.js +6 -0
- package/node/utils/domUtils.js +12 -12
- package/package.json +3 -3
- package/utils/createSelector.js +6 -0
- package/utils/domUtils.d.ts +4 -4
- package/utils/domUtils.js +12 -12
package/node/locales/bgBG.js
CHANGED
|
@@ -36,11 +36,10 @@ const bgBGGrid = {
|
|
|
36
36
|
toolbarExportPrint: 'Принтиране',
|
|
37
37
|
toolbarExportExcel: 'Изтегли като Excel',
|
|
38
38
|
// Columns management text
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
columnsManagementSearchTitle: 'Търсене',
|
|
40
|
+
columnsManagementNoColumns: 'Няма колони',
|
|
41
|
+
columnsManagementShowHideAllText: 'Покажи/Скрий Всичко',
|
|
42
|
+
columnsManagementReset: 'Нулирай',
|
|
44
43
|
// Filter panel text
|
|
45
44
|
filterPanelAddFilter: 'Добави Филтър',
|
|
46
45
|
filterPanelRemoveAll: 'Премахни всички',
|
|
@@ -54,9 +53,9 @@ const bgBGGrid = {
|
|
|
54
53
|
filterPanelInputPlaceholder: 'Стойност на филтъра',
|
|
55
54
|
// Filter operators text
|
|
56
55
|
filterOperatorContains: 'съдържа',
|
|
57
|
-
|
|
56
|
+
filterOperatorDoesNotContain: 'не съдържа',
|
|
58
57
|
filterOperatorEquals: 'равно',
|
|
59
|
-
|
|
58
|
+
filterOperatorDoesNotEqual: 'не е равно',
|
|
60
59
|
filterOperatorStartsWith: 'започва с',
|
|
61
60
|
filterOperatorEndsWith: 'завършва с',
|
|
62
61
|
filterOperatorIs: 'е',
|
|
@@ -76,9 +75,9 @@ const bgBGGrid = {
|
|
|
76
75
|
'filterOperator<=': '<=',
|
|
77
76
|
// Header filter operators text
|
|
78
77
|
headerFilterOperatorContains: 'Съдържа',
|
|
79
|
-
|
|
78
|
+
headerFilterOperatorDoesNotContain: 'Не съдържа',
|
|
80
79
|
headerFilterOperatorEquals: 'Равнo',
|
|
81
|
-
|
|
80
|
+
headerFilterOperatorDoesNotEqual: 'Не е равно',
|
|
82
81
|
headerFilterOperatorStartsWith: 'Започва с',
|
|
83
82
|
headerFilterOperatorEndsWith: 'Завършва с',
|
|
84
83
|
headerFilterOperatorIs: 'Равно е на',
|
package/node/locales/deDE.js
CHANGED
|
@@ -53,9 +53,9 @@ const deDEGrid = {
|
|
|
53
53
|
filterPanelInputPlaceholder: 'Wert filtern',
|
|
54
54
|
// Filter operators text
|
|
55
55
|
filterOperatorContains: 'enthält',
|
|
56
|
-
|
|
56
|
+
filterOperatorDoesNotContain: 'enthält nicht',
|
|
57
57
|
filterOperatorEquals: 'ist gleich',
|
|
58
|
-
|
|
58
|
+
filterOperatorDoesNotEqual: 'ist ungleich',
|
|
59
59
|
filterOperatorStartsWith: 'beginnt mit',
|
|
60
60
|
filterOperatorEndsWith: 'endet mit',
|
|
61
61
|
filterOperatorIs: 'ist',
|
|
@@ -75,9 +75,9 @@ const deDEGrid = {
|
|
|
75
75
|
'filterOperator<=': '<=',
|
|
76
76
|
// Header filter operators text
|
|
77
77
|
headerFilterOperatorContains: 'Enthält',
|
|
78
|
-
|
|
78
|
+
headerFilterOperatorDoesNotContain: 'Enthält nicht',
|
|
79
79
|
headerFilterOperatorEquals: 'Gleich',
|
|
80
|
-
|
|
80
|
+
headerFilterOperatorDoesNotEqual: 'Ungleich',
|
|
81
81
|
headerFilterOperatorStartsWith: 'Beginnt mit',
|
|
82
82
|
headerFilterOperatorEndsWith: 'Endet mit',
|
|
83
83
|
headerFilterOperatorIs: 'Ist',
|
package/node/locales/frFR.js
CHANGED
|
@@ -53,9 +53,9 @@ const frFRGrid = {
|
|
|
53
53
|
filterPanelInputPlaceholder: 'Filtrer la valeur',
|
|
54
54
|
// Filter operators text
|
|
55
55
|
filterOperatorContains: 'contient',
|
|
56
|
-
|
|
56
|
+
filterOperatorDoesNotContain: 'ne contient pas',
|
|
57
57
|
filterOperatorEquals: 'est égal à',
|
|
58
|
-
|
|
58
|
+
filterOperatorDoesNotEqual: "n'est pas égal à",
|
|
59
59
|
filterOperatorStartsWith: 'commence par',
|
|
60
60
|
filterOperatorEndsWith: 'se termine par',
|
|
61
61
|
filterOperatorIs: 'est',
|
|
@@ -75,9 +75,9 @@ const frFRGrid = {
|
|
|
75
75
|
'filterOperator<=': '<=',
|
|
76
76
|
// Header filter operators text
|
|
77
77
|
headerFilterOperatorContains: 'Contient',
|
|
78
|
-
|
|
78
|
+
headerFilterOperatorDoesNotContain: 'Ne contient pas',
|
|
79
79
|
headerFilterOperatorEquals: 'Est égal à',
|
|
80
|
-
|
|
80
|
+
headerFilterOperatorDoesNotEqual: "N'est pas égal à",
|
|
81
81
|
headerFilterOperatorStartsWith: 'Commence par',
|
|
82
82
|
headerFilterOperatorEndsWith: 'Se termine par',
|
|
83
83
|
headerFilterOperatorIs: 'Est',
|
package/node/locales/hrHR.js
CHANGED
|
@@ -13,50 +13,57 @@ const hrHRGrid = {
|
|
|
13
13
|
// Density selector toolbar button text
|
|
14
14
|
toolbarDensity: 'Gustoća',
|
|
15
15
|
toolbarDensityLabel: 'Gustoća',
|
|
16
|
-
toolbarDensityCompact: '
|
|
17
|
-
toolbarDensityStandard: '
|
|
16
|
+
toolbarDensityCompact: 'Kompaktno',
|
|
17
|
+
toolbarDensityStandard: 'Standardno',
|
|
18
18
|
toolbarDensityComfortable: 'Udobno',
|
|
19
19
|
// Columns selector toolbar button text
|
|
20
20
|
toolbarColumns: 'Stupci',
|
|
21
21
|
toolbarColumnsLabel: 'Odaberite stupce',
|
|
22
22
|
// Filters toolbar button text
|
|
23
23
|
toolbarFilters: 'Filteri',
|
|
24
|
-
toolbarFiltersLabel: 'Prikaži
|
|
25
|
-
toolbarFiltersTooltipHide: 'Sakrij
|
|
26
|
-
toolbarFiltersTooltipShow: 'Prikaži
|
|
27
|
-
toolbarFiltersTooltipActive: count =>
|
|
24
|
+
toolbarFiltersLabel: 'Prikaži filtere',
|
|
25
|
+
toolbarFiltersTooltipHide: 'Sakrij filtere',
|
|
26
|
+
toolbarFiltersTooltipShow: 'Prikaži filtere',
|
|
27
|
+
toolbarFiltersTooltipActive: count => {
|
|
28
|
+
if (count === 1) {
|
|
29
|
+
return `${count} aktivan filter`;
|
|
30
|
+
}
|
|
31
|
+
if (count < 5) {
|
|
32
|
+
return `${count} aktivna filtera`;
|
|
33
|
+
}
|
|
34
|
+
return `${count} aktivnih filtera`;
|
|
35
|
+
},
|
|
28
36
|
// Quick filter toolbar field
|
|
29
37
|
toolbarQuickFilterPlaceholder: 'Traži…',
|
|
30
38
|
toolbarQuickFilterLabel: 'traži',
|
|
31
|
-
toolbarQuickFilterDeleteIconLabel: '
|
|
39
|
+
toolbarQuickFilterDeleteIconLabel: 'Obriši',
|
|
32
40
|
// Export selector toolbar button text
|
|
33
41
|
toolbarExport: 'Izvoz',
|
|
34
42
|
toolbarExportLabel: 'Izvoz',
|
|
35
43
|
toolbarExportCSV: 'Preuzmi kao CSV',
|
|
36
|
-
toolbarExportPrint: '
|
|
37
|
-
toolbarExportExcel: '
|
|
44
|
+
toolbarExportPrint: 'Štampaj',
|
|
45
|
+
toolbarExportExcel: 'Preuzmi kao Excel',
|
|
38
46
|
// Columns management text
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
columnsManagementSearchTitle: 'Traži',
|
|
48
|
+
columnsManagementNoColumns: 'Nema stupaca',
|
|
49
|
+
columnsManagementShowHideAllText: 'Prikaži/Sakrij sve',
|
|
50
|
+
columnsManagementReset: 'Ponovno namjesti',
|
|
44
51
|
// Filter panel text
|
|
45
|
-
filterPanelAddFilter: '
|
|
46
|
-
filterPanelRemoveAll: '
|
|
47
|
-
filterPanelDeleteIconLabel: '
|
|
52
|
+
filterPanelAddFilter: 'Dodaj filter',
|
|
53
|
+
filterPanelRemoveAll: 'Ukloni sve',
|
|
54
|
+
filterPanelDeleteIconLabel: 'Obriši',
|
|
48
55
|
filterPanelLogicOperator: 'Logički operator',
|
|
49
|
-
filterPanelOperator: '
|
|
56
|
+
filterPanelOperator: 'Operator',
|
|
50
57
|
filterPanelOperatorAnd: 'I',
|
|
51
58
|
filterPanelOperatorOr: 'Ili',
|
|
52
|
-
filterPanelColumns: '
|
|
59
|
+
filterPanelColumns: 'Stupac',
|
|
53
60
|
filterPanelInputLabel: 'Vrijednost',
|
|
54
|
-
filterPanelInputPlaceholder: 'Vrijednost
|
|
61
|
+
filterPanelInputPlaceholder: 'Vrijednost filtera',
|
|
55
62
|
// Filter operators text
|
|
56
63
|
filterOperatorContains: 'sadrži',
|
|
57
|
-
|
|
58
|
-
filterOperatorEquals: '
|
|
59
|
-
|
|
64
|
+
filterOperatorDoesNotContain: 'ne sadrži',
|
|
65
|
+
filterOperatorEquals: 'je jednak',
|
|
66
|
+
filterOperatorDoesNotEqual: 'nije jednak',
|
|
60
67
|
filterOperatorStartsWith: 'počinje sa',
|
|
61
68
|
filterOperatorEndsWith: 'završava sa',
|
|
62
69
|
filterOperatorIs: 'je',
|
|
@@ -65,8 +72,8 @@ const hrHRGrid = {
|
|
|
65
72
|
filterOperatorOnOrAfter: 'je na ili poslije',
|
|
66
73
|
filterOperatorBefore: 'je prije',
|
|
67
74
|
filterOperatorOnOrBefore: 'je na ili prije',
|
|
68
|
-
filterOperatorIsEmpty: 'prazno
|
|
69
|
-
filterOperatorIsNotEmpty: 'nije
|
|
75
|
+
filterOperatorIsEmpty: 'je prazno',
|
|
76
|
+
filterOperatorIsNotEmpty: 'nije prazno',
|
|
70
77
|
filterOperatorIsAnyOf: 'je bilo koji od',
|
|
71
78
|
'filterOperator=': '=',
|
|
72
79
|
'filterOperator!=': '!=',
|
|
@@ -76,20 +83,20 @@ const hrHRGrid = {
|
|
|
76
83
|
'filterOperator<=': '<=',
|
|
77
84
|
// Header filter operators text
|
|
78
85
|
headerFilterOperatorContains: 'Sadrži',
|
|
79
|
-
|
|
86
|
+
headerFilterOperatorDoesNotContain: 'Ne sadrži',
|
|
80
87
|
headerFilterOperatorEquals: 'Jednako',
|
|
81
|
-
|
|
88
|
+
headerFilterOperatorDoesNotEqual: 'Nije jednako',
|
|
82
89
|
headerFilterOperatorStartsWith: 'Počinje sa',
|
|
83
|
-
headerFilterOperatorEndsWith: 'Završava
|
|
90
|
+
headerFilterOperatorEndsWith: 'Završava sa',
|
|
84
91
|
headerFilterOperatorIs: 'Je',
|
|
85
92
|
headerFilterOperatorNot: 'Nije',
|
|
86
93
|
headerFilterOperatorAfter: 'Je poslije',
|
|
87
94
|
headerFilterOperatorOnOrAfter: 'Je uključeno ili poslije',
|
|
88
|
-
headerFilterOperatorBefore: 'Je
|
|
89
|
-
headerFilterOperatorOnOrBefore: '
|
|
90
|
-
headerFilterOperatorIsEmpty: '
|
|
91
|
-
headerFilterOperatorIsNotEmpty: 'Nije
|
|
92
|
-
headerFilterOperatorIsAnyOf: 'Je
|
|
95
|
+
headerFilterOperatorBefore: 'Je prije',
|
|
96
|
+
headerFilterOperatorOnOrBefore: 'Je uključeno ili prije',
|
|
97
|
+
headerFilterOperatorIsEmpty: 'Je prazno',
|
|
98
|
+
headerFilterOperatorIsNotEmpty: 'Nije prazno',
|
|
99
|
+
headerFilterOperatorIsAnyOf: 'Je bilo koji od',
|
|
93
100
|
'headerFilterOperator=': 'Jednako',
|
|
94
101
|
'headerFilterOperator!=': 'Nije jednako',
|
|
95
102
|
'headerFilterOperator>': 'Veći od',
|
|
@@ -98,32 +105,48 @@ const hrHRGrid = {
|
|
|
98
105
|
'headerFilterOperator<=': 'Manje od ili jednako',
|
|
99
106
|
// Filter values text
|
|
100
107
|
filterValueAny: 'bilo koji',
|
|
101
|
-
filterValueTrue: '
|
|
102
|
-
filterValueFalse: '
|
|
108
|
+
filterValueTrue: 'tačno',
|
|
109
|
+
filterValueFalse: 'netačno',
|
|
103
110
|
// Column menu text
|
|
104
|
-
columnMenuLabel: '
|
|
111
|
+
columnMenuLabel: 'Izbornik',
|
|
105
112
|
columnMenuShowColumns: 'Prikaži stupce',
|
|
106
113
|
columnMenuManageColumns: 'Upravljanje stupcima',
|
|
107
|
-
columnMenuFilter: '
|
|
114
|
+
columnMenuFilter: 'Filter',
|
|
108
115
|
columnMenuHideColumn: 'Sakrij stupac',
|
|
109
116
|
columnMenuUnsort: 'Poništi sortiranje',
|
|
110
117
|
columnMenuSortAsc: 'Poredaj uzlazno',
|
|
111
|
-
columnMenuSortDesc: 'Poredaj
|
|
118
|
+
columnMenuSortDesc: 'Poredaj silazno',
|
|
112
119
|
// Column header text
|
|
113
|
-
columnHeaderFiltersTooltipActive: count =>
|
|
114
|
-
|
|
115
|
-
|
|
120
|
+
columnHeaderFiltersTooltipActive: count => {
|
|
121
|
+
if (count === 1) {
|
|
122
|
+
return `${count} aktivan filter`;
|
|
123
|
+
}
|
|
124
|
+
if (count < 5) {
|
|
125
|
+
return `${count} aktivna filtera`;
|
|
126
|
+
}
|
|
127
|
+
return `${count} aktivnih filtera`;
|
|
128
|
+
},
|
|
129
|
+
columnHeaderFiltersLabel: 'Prikaži filtere',
|
|
130
|
+
columnHeaderSortIconLabel: 'Poredaj',
|
|
116
131
|
// Rows selected footer text
|
|
117
|
-
footerRowSelected: count =>
|
|
132
|
+
footerRowSelected: count => {
|
|
133
|
+
if (count === 1) {
|
|
134
|
+
return `Odabran je ${count.toLocaleString()} redak`;
|
|
135
|
+
}
|
|
136
|
+
if (count < 5) {
|
|
137
|
+
return `Odabrana su ${count.toLocaleString()} retka`;
|
|
138
|
+
}
|
|
139
|
+
return `Odabrano je ${count.toLocaleString()} redaka`;
|
|
140
|
+
},
|
|
118
141
|
// Total row amount footer text
|
|
119
142
|
footerTotalRows: 'Ukupno redaka:',
|
|
120
143
|
// Total visible row amount footer text
|
|
121
144
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} od ${totalCount.toLocaleString()}`,
|
|
122
145
|
// Checkbox selection text
|
|
123
|
-
checkboxSelectionHeaderName: 'Odabir
|
|
146
|
+
checkboxSelectionHeaderName: 'Odabir redaka',
|
|
124
147
|
checkboxSelectionSelectAllRows: 'Odaberite sve retke',
|
|
125
148
|
checkboxSelectionUnselectAllRows: 'Poništi odabir svih redaka',
|
|
126
|
-
checkboxSelectionSelectRow: 'Odaberite
|
|
149
|
+
checkboxSelectionSelectRow: 'Odaberite redak',
|
|
127
150
|
checkboxSelectionUnselectRow: 'Poništi odabir retka',
|
|
128
151
|
// Boolean cell text
|
|
129
152
|
booleanCellTrueLabel: 'Da',
|
|
@@ -135,7 +158,7 @@ const hrHRGrid = {
|
|
|
135
158
|
pinToRight: 'Prikvači desno',
|
|
136
159
|
unpin: 'Otkvači',
|
|
137
160
|
// Tree Data
|
|
138
|
-
treeDataGroupingHeaderName: '
|
|
161
|
+
treeDataGroupingHeaderName: 'Skupina',
|
|
139
162
|
treeDataExpand: 'vidjeti djecu',
|
|
140
163
|
treeDataCollapse: 'sakriti djecu',
|
|
141
164
|
// Grouping columns
|
|
@@ -145,7 +168,7 @@ const hrHRGrid = {
|
|
|
145
168
|
// Master/detail
|
|
146
169
|
detailPanelToggle: 'Prebacivanje ploče s detaljima',
|
|
147
170
|
expandDetailPanel: 'Proširiti',
|
|
148
|
-
collapseDetailPanel: '
|
|
171
|
+
collapseDetailPanel: 'Skupiti',
|
|
149
172
|
// Row reordering text
|
|
150
173
|
rowReorderingHeaderName: 'Promjena redoslijeda',
|
|
151
174
|
// Aggregation
|
package/node/locales/jaJP.js
CHANGED
|
@@ -39,8 +39,7 @@ const jaJPGrid = {
|
|
|
39
39
|
columnsManagementSearchTitle: '検索',
|
|
40
40
|
columnsManagementNoColumns: 'カラムなし',
|
|
41
41
|
columnsManagementShowHideAllText: 'すべて表示/非表示',
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
columnsManagementReset: 'リセット',
|
|
44
43
|
// Filter panel text
|
|
45
44
|
filterPanelAddFilter: 'フィルター追加',
|
|
46
45
|
filterPanelRemoveAll: 'すべて削除',
|
package/node/locales/ptPT.js
CHANGED
|
@@ -53,9 +53,9 @@ const ptPTGrid = {
|
|
|
53
53
|
filterPanelInputPlaceholder: 'Valor do filtro',
|
|
54
54
|
// Filter operators text
|
|
55
55
|
filterOperatorContains: 'contém',
|
|
56
|
-
|
|
56
|
+
filterOperatorDoesNotContain: 'não contém',
|
|
57
57
|
filterOperatorEquals: 'é igual a',
|
|
58
|
-
|
|
58
|
+
filterOperatorDoesNotEqual: 'não é igual a',
|
|
59
59
|
filterOperatorStartsWith: 'começa com',
|
|
60
60
|
filterOperatorEndsWith: 'termina com',
|
|
61
61
|
filterOperatorIs: 'é',
|
|
@@ -75,9 +75,9 @@ const ptPTGrid = {
|
|
|
75
75
|
'filterOperator<=': '<=',
|
|
76
76
|
// Header filter operators text
|
|
77
77
|
headerFilterOperatorContains: 'Contém',
|
|
78
|
-
|
|
78
|
+
headerFilterOperatorDoesNotContain: 'Não contém',
|
|
79
79
|
headerFilterOperatorEquals: 'É igual a',
|
|
80
|
-
|
|
80
|
+
headerFilterOperatorDoesNotEqual: 'Não é igual',
|
|
81
81
|
headerFilterOperatorStartsWith: 'Começa com',
|
|
82
82
|
headerFilterOperatorEndsWith: 'Termina com',
|
|
83
83
|
headerFilterOperatorIs: 'É',
|
package/node/locales/viVN.js
CHANGED
|
@@ -52,21 +52,21 @@ const viVNGrid = {
|
|
|
52
52
|
filterPanelInputLabel: 'Giá trị',
|
|
53
53
|
filterPanelInputPlaceholder: 'Lọc giá trị',
|
|
54
54
|
// Filter operators text
|
|
55
|
-
filterOperatorContains: '
|
|
56
|
-
|
|
57
|
-
filterOperatorEquals: '
|
|
58
|
-
|
|
59
|
-
filterOperatorStartsWith: '
|
|
60
|
-
filterOperatorEndsWith: '
|
|
61
|
-
filterOperatorIs: '
|
|
62
|
-
filterOperatorNot: '
|
|
63
|
-
filterOperatorAfter: '
|
|
55
|
+
filterOperatorContains: 'chứa',
|
|
56
|
+
filterOperatorDoesNotContain: 'không chứa',
|
|
57
|
+
filterOperatorEquals: 'bằng',
|
|
58
|
+
filterOperatorDoesNotEqual: 'không bằng',
|
|
59
|
+
filterOperatorStartsWith: 'bắt đầu với',
|
|
60
|
+
filterOperatorEndsWith: 'kết thúc với',
|
|
61
|
+
filterOperatorIs: 'là',
|
|
62
|
+
filterOperatorNot: 'không phải là',
|
|
63
|
+
filterOperatorAfter: 'sau',
|
|
64
64
|
filterOperatorOnOrAfter: 'bằng hoặc sau',
|
|
65
|
-
filterOperatorBefore: '
|
|
65
|
+
filterOperatorBefore: 'trước',
|
|
66
66
|
filterOperatorOnOrBefore: 'bằng hoặc trước',
|
|
67
|
-
filterOperatorIsEmpty: '
|
|
68
|
-
filterOperatorIsNotEmpty: '
|
|
69
|
-
filterOperatorIsAnyOf: '
|
|
67
|
+
filterOperatorIsEmpty: 'rỗng',
|
|
68
|
+
filterOperatorIsNotEmpty: 'khác rỗng',
|
|
69
|
+
filterOperatorIsAnyOf: 'là một trong',
|
|
70
70
|
'filterOperator=': '=',
|
|
71
71
|
'filterOperator!=': '!=',
|
|
72
72
|
'filterOperator>': '>',
|
|
@@ -75,20 +75,20 @@ const viVNGrid = {
|
|
|
75
75
|
'filterOperator<=': '<=',
|
|
76
76
|
// Header filter operators text
|
|
77
77
|
headerFilterOperatorContains: 'Chứa',
|
|
78
|
-
|
|
78
|
+
headerFilterOperatorDoesNotContain: 'Không chứa',
|
|
79
79
|
headerFilterOperatorEquals: 'Bằng',
|
|
80
|
-
|
|
80
|
+
headerFilterOperatorDoesNotEqual: 'Không bằng',
|
|
81
81
|
headerFilterOperatorStartsWith: 'Bắt đầu với',
|
|
82
82
|
headerFilterOperatorEndsWith: 'Kết thúc với',
|
|
83
|
-
headerFilterOperatorIs: '
|
|
84
|
-
headerFilterOperatorNot: 'Không là',
|
|
83
|
+
headerFilterOperatorIs: 'Là',
|
|
84
|
+
headerFilterOperatorNot: 'Không phải là',
|
|
85
85
|
headerFilterOperatorAfter: 'Sau',
|
|
86
|
-
headerFilterOperatorOnOrAfter: '
|
|
86
|
+
headerFilterOperatorOnOrAfter: 'Bằng hoặc sau',
|
|
87
87
|
headerFilterOperatorBefore: 'Trước',
|
|
88
|
-
headerFilterOperatorOnOrBefore: '
|
|
88
|
+
headerFilterOperatorOnOrBefore: 'Bằng hoặc trước',
|
|
89
89
|
headerFilterOperatorIsEmpty: 'Rỗng',
|
|
90
90
|
headerFilterOperatorIsNotEmpty: 'Khác rỗng',
|
|
91
|
-
headerFilterOperatorIsAnyOf: '
|
|
91
|
+
headerFilterOperatorIsAnyOf: 'Là một trong',
|
|
92
92
|
'headerFilterOperator=': 'Bằng',
|
|
93
93
|
'headerFilterOperator!=': 'Khác',
|
|
94
94
|
'headerFilterOperator>': 'Lớn hơn',
|
|
@@ -40,6 +40,8 @@ const createSelector = (a, b, c, d, e, f, ...other) => {
|
|
|
40
40
|
throw new Error('Unsupported number of selectors');
|
|
41
41
|
}
|
|
42
42
|
let selector;
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line id-denylist
|
|
43
45
|
if (a && b && c && d && e && f) {
|
|
44
46
|
selector = (stateOrApiRef, instanceIdParam) => {
|
|
45
47
|
const isAPIRef = checkIsAPIRef(stateOrApiRef);
|
|
@@ -52,6 +54,7 @@ const createSelector = (a, b, c, d, e, f, ...other) => {
|
|
|
52
54
|
const ve = e(state, instanceId);
|
|
53
55
|
return f(va, vb, vc, vd, ve);
|
|
54
56
|
};
|
|
57
|
+
// eslint-disable-next-line id-denylist
|
|
55
58
|
} else if (a && b && c && d && e) {
|
|
56
59
|
selector = (stateOrApiRef, instanceIdParam) => {
|
|
57
60
|
const isAPIRef = checkIsAPIRef(stateOrApiRef);
|
|
@@ -107,6 +110,8 @@ const createSelectorV8 = (a, b, c, d, e, f, ...other) => {
|
|
|
107
110
|
throw new Error('Unsupported number of selectors');
|
|
108
111
|
}
|
|
109
112
|
let selector;
|
|
113
|
+
|
|
114
|
+
// eslint-disable-next-line id-denylist
|
|
110
115
|
if (a && b && c && d && e && f) {
|
|
111
116
|
selector = (stateOrApiRef, args, instanceIdParam) => {
|
|
112
117
|
const isAPIRef = checkIsAPIRef(stateOrApiRef);
|
|
@@ -119,6 +124,7 @@ const createSelectorV8 = (a, b, c, d, e, f, ...other) => {
|
|
|
119
124
|
const ve = e(state, args, instanceId);
|
|
120
125
|
return f(va, vb, vc, vd, ve, args);
|
|
121
126
|
};
|
|
127
|
+
// eslint-disable-next-line id-denylist
|
|
122
128
|
} else if (a && b && c && d && e) {
|
|
123
129
|
selector = (stateOrApiRef, args, instanceIdParam) => {
|
|
124
130
|
const isAPIRef = checkIsAPIRef(stateOrApiRef);
|
package/node/utils/domUtils.js
CHANGED
|
@@ -146,22 +146,22 @@ const findPinnedCells = ({
|
|
|
146
146
|
});
|
|
147
147
|
return cells;
|
|
148
148
|
};
|
|
149
|
-
function findLeftPinnedCellsAfterCol(api, col) {
|
|
149
|
+
function findLeftPinnedCellsAfterCol(api, col, isRtl) {
|
|
150
150
|
const colIndex = parseCellColIndex(col);
|
|
151
151
|
return findPinnedCells({
|
|
152
152
|
api,
|
|
153
153
|
colIndex,
|
|
154
|
-
position: 'left',
|
|
155
|
-
filterFn: index => index > colIndex
|
|
154
|
+
position: isRtl ? 'right' : 'left',
|
|
155
|
+
filterFn: index => isRtl ? index < colIndex : index > colIndex
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function findRightPinnedCellsBeforeCol(api, col) {
|
|
158
|
+
function findRightPinnedCellsBeforeCol(api, col, isRtl) {
|
|
159
159
|
const colIndex = parseCellColIndex(col);
|
|
160
160
|
return findPinnedCells({
|
|
161
161
|
api,
|
|
162
162
|
colIndex,
|
|
163
|
-
position: 'right',
|
|
164
|
-
filterFn: index => index < colIndex
|
|
163
|
+
position: isRtl ? 'left' : 'right',
|
|
164
|
+
filterFn: index => isRtl ? index > colIndex : index < colIndex
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
const findPinnedHeaders = ({
|
|
@@ -185,22 +185,22 @@ const findPinnedHeaders = ({
|
|
|
185
185
|
});
|
|
186
186
|
return elements;
|
|
187
187
|
};
|
|
188
|
-
function findLeftPinnedHeadersAfterCol(api, col) {
|
|
188
|
+
function findLeftPinnedHeadersAfterCol(api, col, isRtl) {
|
|
189
189
|
const colIndex = parseCellColIndex(col);
|
|
190
190
|
return findPinnedHeaders({
|
|
191
191
|
api,
|
|
192
|
-
position: 'left',
|
|
192
|
+
position: isRtl ? 'right' : 'left',
|
|
193
193
|
colIndex,
|
|
194
|
-
filterFn: index => index > colIndex
|
|
194
|
+
filterFn: index => isRtl ? index < colIndex : index > colIndex
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
function findRightPinnedHeadersBeforeCol(api, col) {
|
|
197
|
+
function findRightPinnedHeadersBeforeCol(api, col, isRtl) {
|
|
198
198
|
const colIndex = parseCellColIndex(col);
|
|
199
199
|
return findPinnedHeaders({
|
|
200
200
|
api,
|
|
201
|
-
position: 'right',
|
|
201
|
+
position: isRtl ? 'left' : 'right',
|
|
202
202
|
colIndex,
|
|
203
|
-
filterFn: index => index < colIndex
|
|
203
|
+
filterFn: index => isRtl ? index > colIndex : index < colIndex
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
function findGridHeader(api, field) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.19.0",
|
|
4
4
|
"description": "The Community plan edition of the Data Grid components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
36
|
-
"url": "https://github.com/mui/mui-x.git",
|
|
36
|
+
"url": "git+https://github.com/mui/mui-x.git",
|
|
37
37
|
"directory": "packages/x-data-grid"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"clsx": "^2.1.1",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
44
|
"reselect": "^5.1.1",
|
|
45
|
-
"@mui/x-internals": "7.
|
|
45
|
+
"@mui/x-internals": "7.18.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|
package/utils/createSelector.js
CHANGED
|
@@ -34,6 +34,8 @@ export const createSelector = (a, b, c, d, e, f, ...other) => {
|
|
|
34
34
|
throw new Error('Unsupported number of selectors');
|
|
35
35
|
}
|
|
36
36
|
let selector;
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line id-denylist
|
|
37
39
|
if (a && b && c && d && e && f) {
|
|
38
40
|
selector = (stateOrApiRef, instanceIdParam) => {
|
|
39
41
|
const isAPIRef = checkIsAPIRef(stateOrApiRef);
|
|
@@ -46,6 +48,7 @@ export const createSelector = (a, b, c, d, e, f, ...other) => {
|
|
|
46
48
|
const ve = e(state, instanceId);
|
|
47
49
|
return f(va, vb, vc, vd, ve);
|
|
48
50
|
};
|
|
51
|
+
// eslint-disable-next-line id-denylist
|
|
49
52
|
} else if (a && b && c && d && e) {
|
|
50
53
|
selector = (stateOrApiRef, instanceIdParam) => {
|
|
51
54
|
const isAPIRef = checkIsAPIRef(stateOrApiRef);
|
|
@@ -100,6 +103,8 @@ export const createSelectorV8 = (a, b, c, d, e, f, ...other) => {
|
|
|
100
103
|
throw new Error('Unsupported number of selectors');
|
|
101
104
|
}
|
|
102
105
|
let selector;
|
|
106
|
+
|
|
107
|
+
// eslint-disable-next-line id-denylist
|
|
103
108
|
if (a && b && c && d && e && f) {
|
|
104
109
|
selector = (stateOrApiRef, args, instanceIdParam) => {
|
|
105
110
|
const isAPIRef = checkIsAPIRef(stateOrApiRef);
|
|
@@ -112,6 +117,7 @@ export const createSelectorV8 = (a, b, c, d, e, f, ...other) => {
|
|
|
112
117
|
const ve = e(state, args, instanceId);
|
|
113
118
|
return f(va, vb, vc, vd, ve, args);
|
|
114
119
|
};
|
|
120
|
+
// eslint-disable-next-line id-denylist
|
|
115
121
|
} else if (a && b && c && d && e) {
|
|
116
122
|
selector = (stateOrApiRef, args, instanceIdParam) => {
|
|
117
123
|
const isAPIRef = checkIsAPIRef(stateOrApiRef);
|
package/utils/domUtils.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ export declare function getFieldsFromGroupHeaderElem(colCellEl: Element): string
|
|
|
18
18
|
export declare function findGroupHeaderElementsFromField(elem: Element, field: string): Element[];
|
|
19
19
|
export declare function findGridCellElementsFromCol(col: HTMLElement, api: GridPrivateApiCommunity): Element[];
|
|
20
20
|
export declare function findGridElement(api: GridPrivateApiCommunity, klass: keyof typeof gridClasses): HTMLElement;
|
|
21
|
-
export declare function findLeftPinnedCellsAfterCol(api: GridPrivateApiCommunity, col: HTMLElement): HTMLElement[];
|
|
22
|
-
export declare function findRightPinnedCellsBeforeCol(api: GridPrivateApiCommunity, col: HTMLElement): HTMLElement[];
|
|
23
|
-
export declare function findLeftPinnedHeadersAfterCol(api: GridPrivateApiCommunity, col: HTMLElement): HTMLElement[];
|
|
24
|
-
export declare function findRightPinnedHeadersBeforeCol(api: GridPrivateApiCommunity, col: HTMLElement): HTMLElement[];
|
|
21
|
+
export declare function findLeftPinnedCellsAfterCol(api: GridPrivateApiCommunity, col: HTMLElement, isRtl: boolean): HTMLElement[];
|
|
22
|
+
export declare function findRightPinnedCellsBeforeCol(api: GridPrivateApiCommunity, col: HTMLElement, isRtl: boolean): HTMLElement[];
|
|
23
|
+
export declare function findLeftPinnedHeadersAfterCol(api: GridPrivateApiCommunity, col: HTMLElement, isRtl: boolean): HTMLElement[];
|
|
24
|
+
export declare function findRightPinnedHeadersBeforeCol(api: GridPrivateApiCommunity, col: HTMLElement, isRtl: boolean): HTMLElement[];
|
|
25
25
|
export declare function findGridHeader(api: GridPrivateApiCommunity, field: string): Element | null;
|
|
26
26
|
export declare function findGridCells(api: GridPrivateApiCommunity, field: string): Element[];
|
package/utils/domUtils.js
CHANGED
|
@@ -120,22 +120,22 @@ const findPinnedCells = ({
|
|
|
120
120
|
});
|
|
121
121
|
return cells;
|
|
122
122
|
};
|
|
123
|
-
export function findLeftPinnedCellsAfterCol(api, col) {
|
|
123
|
+
export function findLeftPinnedCellsAfterCol(api, col, isRtl) {
|
|
124
124
|
const colIndex = parseCellColIndex(col);
|
|
125
125
|
return findPinnedCells({
|
|
126
126
|
api,
|
|
127
127
|
colIndex,
|
|
128
|
-
position: 'left',
|
|
129
|
-
filterFn: index => index > colIndex
|
|
128
|
+
position: isRtl ? 'right' : 'left',
|
|
129
|
+
filterFn: index => isRtl ? index < colIndex : index > colIndex
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
export function findRightPinnedCellsBeforeCol(api, col) {
|
|
132
|
+
export function findRightPinnedCellsBeforeCol(api, col, isRtl) {
|
|
133
133
|
const colIndex = parseCellColIndex(col);
|
|
134
134
|
return findPinnedCells({
|
|
135
135
|
api,
|
|
136
136
|
colIndex,
|
|
137
|
-
position: 'right',
|
|
138
|
-
filterFn: index => index < colIndex
|
|
137
|
+
position: isRtl ? 'left' : 'right',
|
|
138
|
+
filterFn: index => isRtl ? index > colIndex : index < colIndex
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
const findPinnedHeaders = ({
|
|
@@ -159,22 +159,22 @@ const findPinnedHeaders = ({
|
|
|
159
159
|
});
|
|
160
160
|
return elements;
|
|
161
161
|
};
|
|
162
|
-
export function findLeftPinnedHeadersAfterCol(api, col) {
|
|
162
|
+
export function findLeftPinnedHeadersAfterCol(api, col, isRtl) {
|
|
163
163
|
const colIndex = parseCellColIndex(col);
|
|
164
164
|
return findPinnedHeaders({
|
|
165
165
|
api,
|
|
166
|
-
position: 'left',
|
|
166
|
+
position: isRtl ? 'right' : 'left',
|
|
167
167
|
colIndex,
|
|
168
|
-
filterFn: index => index > colIndex
|
|
168
|
+
filterFn: index => isRtl ? index < colIndex : index > colIndex
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
export function findRightPinnedHeadersBeforeCol(api, col) {
|
|
171
|
+
export function findRightPinnedHeadersBeforeCol(api, col, isRtl) {
|
|
172
172
|
const colIndex = parseCellColIndex(col);
|
|
173
173
|
return findPinnedHeaders({
|
|
174
174
|
api,
|
|
175
|
-
position: 'right',
|
|
175
|
+
position: isRtl ? 'left' : 'right',
|
|
176
176
|
colIndex,
|
|
177
|
-
filterFn: index => index < colIndex
|
|
177
|
+
filterFn: index => isRtl ? index > colIndex : index < colIndex
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
export function findGridHeader(api, field) {
|