@mui/x-data-grid 7.18.0 → 7.20.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 +213 -11
- package/DataGrid/DataGrid.js +12 -0
- package/components/cell/GridCell.js +7 -8
- package/components/columnHeaders/GridBaseColumnHeaders.js +1 -1
- package/components/columnHeaders/GridColumnHeaderItem.js +1 -0
- 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/core/useGridRefs.js +4 -0
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +4 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnResize/columnResizeSelector.d.ts +1 -1
- 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/useGridDimensions.js +2 -2
- package/hooks/features/editing/useGridCellEditing.js +4 -2
- package/hooks/features/editing/useGridRowEditing.js +4 -2
- package/hooks/features/events/useGridEvents.d.ts +1 -1
- package/hooks/features/events/useGridEvents.js +1 -0
- package/hooks/features/filter/gridFilterSelector.d.ts +17 -17
- package/hooks/features/filter/gridFilterUtils.js +1 -1
- package/hooks/features/focus/gridFocusStateSelector.d.ts +8 -8
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +3 -3
- package/hooks/features/keyboardNavigation/utils.d.ts +1 -1
- 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 +3 -3
- package/hooks/features/rows/gridRowsSelector.d.ts +14 -14
- package/hooks/features/rows/gridRowsUtils.js +1 -1
- package/hooks/features/rows/useGridRowSpanning.js +1 -1
- package/hooks/features/rows/useGridRows.d.ts +1 -1
- package/hooks/features/rows/useGridRows.js +7 -1
- package/hooks/features/scroll/useGridScroll.js +26 -22
- package/hooks/features/sorting/gridSortingSelector.d.ts +4 -4
- package/hooks/features/sorting/gridSortingUtils.js +1 -1
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +5 -5
- package/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/hooks/utils/useGridApiContext.js +1 -1
- package/hooks/utils/useGridApiEventHandler.d.ts +1 -1
- package/hooks/utils/useGridApiEventHandler.js +1 -1
- package/hooks/utils/useGridConfiguration.js +1 -1
- package/hooks/utils/useGridPrivateApiContext.js +1 -1
- package/hooks/utils/useGridVisibleRows.d.ts +2 -2
- package/index.d.ts +2 -2
- package/index.js +3 -3
- package/internals/index.d.ts +1 -0
- package/internals/index.js +1 -0
- package/joy/icons.js +0 -1
- 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 +5 -6
- 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/api/gridApiCommunity.d.ts +1 -1
- package/models/api/gridCoreApi.d.ts +9 -1
- package/models/api/gridFilterApi.d.ts +1 -1
- package/models/events/gridEventLookup.d.ts +7 -0
- package/models/gridRowSelectionModel.d.ts +4 -0
- package/models/gridStateCommunity.d.ts +2 -2
- package/models/props/DataGridProps.d.ts +38 -10
- package/modern/DataGrid/DataGrid.js +12 -0
- package/modern/components/cell/GridCell.js +7 -8
- package/modern/components/columnHeaders/GridBaseColumnHeaders.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +1 -0
- 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/core/useGridRefs.js +4 -0
- package/modern/hooks/features/columns/gridColumnsUtils.js +3 -2
- package/modern/hooks/features/dimensions/useGridDimensions.js +2 -2
- package/modern/hooks/features/editing/useGridCellEditing.js +4 -2
- package/modern/hooks/features/editing/useGridRowEditing.js +4 -2
- package/modern/hooks/features/events/useGridEvents.js +1 -0
- package/modern/hooks/features/filter/gridFilterUtils.js +1 -1
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +105 -29
- package/modern/hooks/features/rowSelection/utils.js +156 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +1 -1
- package/modern/hooks/features/rows/useGridRowSpanning.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +7 -1
- package/modern/hooks/features/scroll/useGridScroll.js +26 -22
- package/modern/hooks/features/sorting/gridSortingUtils.js +1 -1
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/modern/hooks/utils/useGridApiContext.js +1 -1
- package/modern/hooks/utils/useGridApiEventHandler.js +1 -1
- package/modern/hooks/utils/useGridConfiguration.js +1 -1
- package/modern/hooks/utils/useGridPrivateApiContext.js +1 -1
- package/modern/index.js +3 -3
- package/modern/internals/index.js +1 -0
- package/modern/joy/icons.js +0 -1
- 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 +5 -6
- 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 +1 -1
- package/node/DataGrid/DataGrid.js +12 -0
- package/node/components/cell/GridCell.js +7 -8
- package/node/components/columnHeaders/GridBaseColumnHeaders.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaderItem.js +1 -0
- 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/core/useGridRefs.js +4 -0
- package/node/hooks/features/columns/gridColumnsUtils.js +3 -2
- package/node/hooks/features/dimensions/useGridDimensions.js +2 -2
- package/node/hooks/features/editing/useGridCellEditing.js +4 -2
- package/node/hooks/features/editing/useGridRowEditing.js +4 -2
- package/node/hooks/features/events/useGridEvents.js +1 -0
- package/node/hooks/features/filter/gridFilterUtils.js +1 -1
- package/node/hooks/features/rowSelection/useGridRowSelection.js +102 -26
- package/node/hooks/features/rowSelection/utils.js +160 -1
- package/node/hooks/features/rows/gridRowsUtils.js +1 -1
- package/node/hooks/features/rows/useGridRowSpanning.js +1 -1
- package/node/hooks/features/rows/useGridRows.js +7 -1
- package/node/hooks/features/scroll/useGridScroll.js +26 -22
- package/node/hooks/features/sorting/gridSortingUtils.js +1 -1
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
- package/node/hooks/utils/useGridApiContext.js +1 -1
- package/node/hooks/utils/useGridApiEventHandler.js +1 -1
- package/node/hooks/utils/useGridConfiguration.js +1 -1
- package/node/hooks/utils/useGridPrivateApiContext.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/index.js +23 -15
- package/node/joy/icons.js +0 -1
- 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 +5 -6
- 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 +1 -1
- package/package.json +4 -4
- package/utils/createSelector.js +6 -0
- package/utils/domUtils.js +1 -1
package/node/internals/index.js
CHANGED
|
@@ -80,6 +80,7 @@ var _exportNames = {
|
|
|
80
80
|
EMPTY_DETAIL_PANELS: true,
|
|
81
81
|
useGridColumnResize: true,
|
|
82
82
|
columnResizeStateInitializer: true,
|
|
83
|
+
ROW_SELECTION_PROPAGATION_DEFAULT: true,
|
|
83
84
|
useTimeout: true,
|
|
84
85
|
useGridVisibleRows: true,
|
|
85
86
|
getVisibleRows: true,
|
|
@@ -154,6 +155,12 @@ Object.defineProperty(exports, "GridVirtualScrollerRenderZone", {
|
|
|
154
155
|
return _GridVirtualScrollerRenderZone.GridVirtualScrollerRenderZone;
|
|
155
156
|
}
|
|
156
157
|
});
|
|
158
|
+
Object.defineProperty(exports, "ROW_SELECTION_PROPAGATION_DEFAULT", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function () {
|
|
161
|
+
return _utils.ROW_SELECTION_PROPAGATION_DEFAULT;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
157
164
|
Object.defineProperty(exports, "buildRootGroup", {
|
|
158
165
|
enumerable: true,
|
|
159
166
|
get: function () {
|
|
@@ -217,7 +224,7 @@ Object.defineProperty(exports, "createSelectorV8", {
|
|
|
217
224
|
Object.defineProperty(exports, "defaultGetRowsToExport", {
|
|
218
225
|
enumerable: true,
|
|
219
226
|
get: function () {
|
|
220
|
-
return
|
|
227
|
+
return _utils2.defaultGetRowsToExport;
|
|
221
228
|
}
|
|
222
229
|
});
|
|
223
230
|
Object.defineProperty(exports, "densityStateInitializer", {
|
|
@@ -271,7 +278,7 @@ Object.defineProperty(exports, "getActiveElement", {
|
|
|
271
278
|
Object.defineProperty(exports, "getColumnsToExport", {
|
|
272
279
|
enumerable: true,
|
|
273
280
|
get: function () {
|
|
274
|
-
return
|
|
281
|
+
return _utils2.getColumnsToExport;
|
|
275
282
|
}
|
|
276
283
|
});
|
|
277
284
|
Object.defineProperty(exports, "getGridFilter", {
|
|
@@ -767,10 +774,11 @@ Object.keys(_virtualization).forEach(function (key) {
|
|
|
767
774
|
});
|
|
768
775
|
});
|
|
769
776
|
var _useGridColumnResize = require("../hooks/features/columnResize/useGridColumnResize");
|
|
777
|
+
var _utils = require("../hooks/features/rowSelection/utils");
|
|
770
778
|
var _useTimeout = require("../hooks/utils/useTimeout");
|
|
771
779
|
var _useGridVisibleRows = require("../hooks/utils/useGridVisibleRows");
|
|
772
780
|
var _useGridInitializeState = require("../hooks/utils/useGridInitializeState");
|
|
773
|
-
var
|
|
781
|
+
var _utils2 = require("../hooks/features/export/utils");
|
|
774
782
|
var _createControllablePromise = require("../utils/createControllablePromise");
|
|
775
783
|
Object.keys(_createControllablePromise).forEach(function (key) {
|
|
776
784
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -787,15 +795,15 @@ var _createSelector = require("../utils/createSelector");
|
|
|
787
795
|
var _useGridSelector = require("../hooks/utils/useGridSelector");
|
|
788
796
|
var _domUtils = require("../utils/domUtils");
|
|
789
797
|
var _keyboardUtils = require("../utils/keyboardUtils");
|
|
790
|
-
var
|
|
791
|
-
Object.keys(
|
|
798
|
+
var _utils3 = require("../utils/utils");
|
|
799
|
+
Object.keys(_utils3).forEach(function (key) {
|
|
792
800
|
if (key === "default" || key === "__esModule") return;
|
|
793
801
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
794
|
-
if (key in exports && exports[key] ===
|
|
802
|
+
if (key in exports && exports[key] === _utils3[key]) return;
|
|
795
803
|
Object.defineProperty(exports, key, {
|
|
796
804
|
enumerable: true,
|
|
797
805
|
get: function () {
|
|
798
|
-
return
|
|
806
|
+
return _utils3[key];
|
|
799
807
|
}
|
|
800
808
|
});
|
|
801
809
|
});
|
|
@@ -825,28 +833,28 @@ Object.keys(_cellBorderUtils).forEach(function (key) {
|
|
|
825
833
|
});
|
|
826
834
|
});
|
|
827
835
|
var _useGridPrivateApiContext = require("../hooks/utils/useGridPrivateApiContext");
|
|
828
|
-
var
|
|
829
|
-
Object.keys(
|
|
836
|
+
var _utils4 = require("../hooks/utils");
|
|
837
|
+
Object.keys(_utils4).forEach(function (key) {
|
|
830
838
|
if (key === "default" || key === "__esModule") return;
|
|
831
839
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
832
|
-
if (key in exports && exports[key] ===
|
|
840
|
+
if (key in exports && exports[key] === _utils4[key]) return;
|
|
833
841
|
Object.defineProperty(exports, key, {
|
|
834
842
|
enumerable: true,
|
|
835
843
|
get: function () {
|
|
836
|
-
return
|
|
844
|
+
return _utils4[key];
|
|
837
845
|
}
|
|
838
846
|
});
|
|
839
847
|
});
|
|
840
848
|
var _csvSerializer = require("../hooks/features/export/serializers/csvSerializer");
|
|
841
|
-
var
|
|
842
|
-
Object.keys(
|
|
849
|
+
var _utils5 = require("./utils");
|
|
850
|
+
Object.keys(_utils5).forEach(function (key) {
|
|
843
851
|
if (key === "default" || key === "__esModule") return;
|
|
844
852
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
845
|
-
if (key in exports && exports[key] ===
|
|
853
|
+
if (key in exports && exports[key] === _utils5[key]) return;
|
|
846
854
|
Object.defineProperty(exports, key, {
|
|
847
855
|
enumerable: true,
|
|
848
856
|
get: function () {
|
|
849
|
-
return
|
|
857
|
+
return _utils5[key];
|
|
850
858
|
}
|
|
851
859
|
});
|
|
852
860
|
});
|
package/node/joy/icons.js
CHANGED
|
@@ -42,7 +42,6 @@ function createSvgIcon(path, displayName) {
|
|
|
42
42
|
} = _ref,
|
|
43
43
|
props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
44
44
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SvgIcon.default, (0, _extends2.default)({
|
|
45
|
-
"data-testid": `${displayName}Icon`,
|
|
46
45
|
ref: ref,
|
|
47
46
|
fill: "none",
|
|
48
47
|
stroke: "currentColor",
|
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: 'すべて削除',
|
|
@@ -54,9 +53,9 @@ const jaJPGrid = {
|
|
|
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 jaJPGrid = {
|
|
|
76
75
|
'filterOperator<=': '<=',
|
|
77
76
|
// Header filter operators text
|
|
78
77
|
headerFilterOperatorContains: '含む',
|
|
79
|
-
|
|
78
|
+
headerFilterOperatorDoesNotContain: '含まない',
|
|
80
79
|
headerFilterOperatorEquals: '等しい',
|
|
81
|
-
|
|
80
|
+
headerFilterOperatorDoesNotEqual: '等しくない',
|
|
82
81
|
headerFilterOperatorStartsWith: 'で始まる',
|
|
83
82
|
headerFilterOperatorEndsWith: 'で終わる',
|
|
84
83
|
headerFilterOperatorIs: 'である',
|
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
|
@@ -213,7 +213,7 @@ function findGridCells(api, field) {
|
|
|
213
213
|
}
|
|
214
214
|
function queryRows(api) {
|
|
215
215
|
return api.virtualScrollerRef.current.querySelectorAll(
|
|
216
|
-
// Use > to ignore rows from nested
|
|
216
|
+
// Use > to ignore rows from nested Data Grids (for example in detail panel)
|
|
217
217
|
`:scope > div > div > .${_gridClasses.gridClasses.row}`);
|
|
218
218
|
}
|
|
219
219
|
function parseCellColIndex(col) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.20.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",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"directory": "packages/x-data-grid"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@babel/runtime": "^7.25.
|
|
41
|
-
"@mui/utils": "^5.16.6",
|
|
40
|
+
"@babel/runtime": "^7.25.7",
|
|
41
|
+
"@mui/utils": "^5.16.6 || ^6.0.0",
|
|
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.20.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.js
CHANGED
|
@@ -187,7 +187,7 @@ export function findGridCells(api, field) {
|
|
|
187
187
|
}
|
|
188
188
|
function queryRows(api) {
|
|
189
189
|
return api.virtualScrollerRef.current.querySelectorAll(
|
|
190
|
-
// Use > to ignore rows from nested
|
|
190
|
+
// Use > to ignore rows from nested Data Grids (for example in detail panel)
|
|
191
191
|
`:scope > div > div > .${gridClasses.row}`);
|
|
192
192
|
}
|
|
193
193
|
function parseCellColIndex(col) {
|