@mui/x-data-grid 6.0.1 → 6.0.3

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +116 -10
  2. package/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
  3. package/components/panel/GridPanel.d.ts +9 -1
  4. package/hooks/features/columnHeaders/useGridColumnHeaders.js +7 -1
  5. package/hooks/features/columns/gridColumnsUtils.js +2 -9
  6. package/hooks/features/editing/useGridCellEditing.js +2 -2
  7. package/hooks/features/editing/useGridRowEditing.js +2 -2
  8. package/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
  9. package/hooks/utils/useGridApiEventHandler.js +3 -3
  10. package/index.js +1 -1
  11. package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
  12. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +7 -1
  13. package/legacy/hooks/features/columns/gridColumnsUtils.js +2 -9
  14. package/legacy/hooks/features/editing/useGridCellEditing.js +2 -2
  15. package/legacy/hooks/features/editing/useGridRowEditing.js +2 -2
  16. package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
  17. package/legacy/hooks/utils/useGridApiEventHandler.js +3 -3
  18. package/legacy/index.js +1 -1
  19. package/legacy/locales/bgBG.js +9 -12
  20. package/legacy/locales/faIR.js +2 -2
  21. package/legacy/locales/nlNL.js +7 -9
  22. package/legacy/locales/ptBR.js +1 -1
  23. package/legacy/models/gridEditRowModel.js +9 -9
  24. package/legacy/models/gridFilterItem.js +3 -3
  25. package/legacy/models/params/gridEditCellParams.js +10 -10
  26. package/legacy/models/params/gridRowParams.js +9 -9
  27. package/locales/bgBG.js +9 -12
  28. package/locales/faIR.js +2 -2
  29. package/locales/nlNL.js +7 -9
  30. package/locales/ptBR.js +1 -1
  31. package/material/index.d.ts +9 -1
  32. package/models/gridEditRowModel.js +9 -9
  33. package/models/gridFilterItem.js +3 -3
  34. package/models/params/gridEditCellParams.js +10 -10
  35. package/models/params/gridRowParams.js +9 -9
  36. package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
  37. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +6 -1
  38. package/modern/hooks/features/columns/gridColumnsUtils.js +2 -9
  39. package/modern/hooks/features/editing/useGridCellEditing.js +2 -2
  40. package/modern/hooks/features/editing/useGridRowEditing.js +2 -2
  41. package/modern/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
  42. package/modern/hooks/utils/useGridApiEventHandler.js +3 -3
  43. package/modern/index.js +1 -1
  44. package/modern/locales/bgBG.js +9 -12
  45. package/modern/locales/faIR.js +2 -2
  46. package/modern/locales/nlNL.js +7 -9
  47. package/modern/locales/ptBR.js +1 -1
  48. package/modern/models/gridEditRowModel.js +9 -9
  49. package/modern/models/gridFilterItem.js +3 -3
  50. package/modern/models/params/gridEditCellParams.js +10 -10
  51. package/modern/models/params/gridRowParams.js +9 -9
  52. package/node/components/columnHeaders/GridColumnHeaderSeparator.js +4 -4
  53. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +6 -1
  54. package/node/hooks/features/columns/gridColumnsUtils.js +3 -10
  55. package/node/hooks/features/editing/useGridCellEditing.js +2 -2
  56. package/node/hooks/features/editing/useGridRowEditing.js +2 -2
  57. package/node/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +4 -4
  58. package/node/hooks/utils/useGridApiEventHandler.js +4 -4
  59. package/node/index.js +1 -1
  60. package/node/locales/bgBG.js +9 -12
  61. package/node/locales/faIR.js +2 -2
  62. package/node/locales/nlNL.js +7 -9
  63. package/node/locales/ptBR.js +1 -1
  64. package/node/models/gridEditRowModel.js +12 -12
  65. package/node/models/gridFilterItem.js +4 -4
  66. package/node/models/params/gridEditCellParams.js +12 -12
  67. package/node/models/params/gridRowParams.js +11 -11
  68. package/package.json +3 -3
@@ -1,26 +1,26 @@
1
1
  /**
2
2
  * Params passed to `apiRef.current.setEditCellValue`.
3
3
  */
4
- var GridCellEditStartReasons;
5
- /**
6
- * Params passed to the `cellEditStart` event.
7
- */
8
- (function (GridCellEditStartReasons) {
4
+ var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {
9
5
  GridCellEditStartReasons["enterKeyDown"] = "enterKeyDown";
10
6
  GridCellEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
11
7
  GridCellEditStartReasons["printableKeyDown"] = "printableKeyDown";
12
8
  GridCellEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
13
- })(GridCellEditStartReasons || (GridCellEditStartReasons = {}));
14
- var GridCellEditStopReasons;
9
+ return GridCellEditStartReasons;
10
+ }(GridCellEditStartReasons || {});
15
11
  /**
16
- * Params passed to the `cellEditStop event.
12
+ * Params passed to the `cellEditStart` event.
17
13
  */
18
- (function (GridCellEditStopReasons) {
14
+ var GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
19
15
  GridCellEditStopReasons["cellFocusOut"] = "cellFocusOut";
20
16
  GridCellEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
21
17
  GridCellEditStopReasons["enterKeyDown"] = "enterKeyDown";
22
18
  GridCellEditStopReasons["tabKeyDown"] = "tabKeyDown";
23
19
  GridCellEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
24
- })(GridCellEditStopReasons || (GridCellEditStopReasons = {}));
20
+ return GridCellEditStopReasons;
21
+ }(GridCellEditStopReasons || {});
22
+ /**
23
+ * Params passed to the `cellEditStop event.
24
+ */
25
25
  // https://github.com/mui/mui-x/pull/3738#discussion_r798504277
26
26
  export { GridCellEditStartReasons, GridCellEditStopReasons };
@@ -14,23 +14,23 @@
14
14
  /**
15
15
  * The getRowHeight return value.
16
16
  */
17
- var GridRowEditStartReasons;
18
- /**
19
- * Params passed to the `rowEditStart` event.
20
- */
21
- (function (GridRowEditStartReasons) {
17
+ var GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
22
18
  GridRowEditStartReasons["enterKeyDown"] = "enterKeyDown";
23
19
  GridRowEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
24
20
  GridRowEditStartReasons["printableKeyDown"] = "printableKeyDown";
25
21
  GridRowEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
26
- })(GridRowEditStartReasons || (GridRowEditStartReasons = {}));
27
- var GridRowEditStopReasons;
28
- (function (GridRowEditStopReasons) {
22
+ return GridRowEditStartReasons;
23
+ }(GridRowEditStartReasons || {});
24
+ /**
25
+ * Params passed to the `rowEditStart` event.
26
+ */
27
+ var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
29
28
  GridRowEditStopReasons["rowFocusOut"] = "rowFocusOut";
30
29
  GridRowEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
31
30
  GridRowEditStopReasons["enterKeyDown"] = "enterKeyDown";
32
31
  GridRowEditStopReasons["tabKeyDown"] = "tabKeyDown";
33
32
  GridRowEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
34
- })(GridRowEditStopReasons || (GridRowEditStopReasons = {}));
33
+ return GridRowEditStopReasons;
34
+ }(GridRowEditStopReasons || {});
35
35
  // https://github.com/mui/mui-x/pull/3738#discussion_r798504277
36
36
  export { GridRowEditStartReasons, GridRowEditStopReasons };
@@ -16,12 +16,12 @@ var _jsxRuntime = require("react/jsx-runtime");
16
16
  const _excluded = ["resizable", "resizing", "height", "side"];
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
- var GridColumnHeaderSeparatorSides;
20
- exports.GridColumnHeaderSeparatorSides = GridColumnHeaderSeparatorSides;
21
- (function (GridColumnHeaderSeparatorSides) {
19
+ var GridColumnHeaderSeparatorSides = /*#__PURE__*/function (GridColumnHeaderSeparatorSides) {
22
20
  GridColumnHeaderSeparatorSides["Left"] = "left";
23
21
  GridColumnHeaderSeparatorSides["Right"] = "right";
24
- })(GridColumnHeaderSeparatorSides || (exports.GridColumnHeaderSeparatorSides = GridColumnHeaderSeparatorSides = {}));
22
+ return GridColumnHeaderSeparatorSides;
23
+ }(GridColumnHeaderSeparatorSides || {});
24
+ exports.GridColumnHeaderSeparatorSides = GridColumnHeaderSeparatorSides;
25
25
  const useUtilityClasses = ownerState => {
26
26
  const {
27
27
  resizable,
@@ -254,7 +254,12 @@ const useGridColumnHeaders = props => {
254
254
  columnFields: groupStructure.columnFields.filter(field => columnVisibility[field] !== false)
255
255
  });
256
256
  }).filter(groupStructure => groupStructure.columnFields.length > 0);
257
- const leftOverflow = visibleColumnGroupHeader[0].columnFields.indexOf(firstColumnFieldToRender);
257
+ const firstVisibleColumnIndex = visibleColumnGroupHeader[0].columnFields.indexOf(firstColumnFieldToRender);
258
+ const hiddenGroupColumns = visibleColumnGroupHeader[0].columnFields.slice(0, firstVisibleColumnIndex);
259
+ const leftOverflow = hiddenGroupColumns.reduce((acc, field) => {
260
+ const column = apiRef.current.getColumn(field);
261
+ return acc + (column.computedWidth ?? 0);
262
+ }, 0);
258
263
  let columnIndex = firstColumnToRender;
259
264
  const elements = visibleColumnGroupHeader.map(({
260
265
  groupId,
@@ -164,13 +164,12 @@ const hydrateColumnsWidth = (rawState, viewportInnerWidth) => {
164
164
  lookup: columnsLookup
165
165
  });
166
166
  };
167
- exports.hydrateColumnsWidth = hydrateColumnsWidth;
168
- let columnTypeWarnedOnce = false;
169
167
 
170
168
  /**
171
169
  * Apply the order and the dimensions of the initial state.
172
170
  * The columns not registered in `orderedFields` will be placed after the imported columns.
173
171
  */
172
+ exports.hydrateColumnsWidth = hydrateColumnsWidth;
174
173
  const applyInitialState = (columnsState, initialState) => {
175
174
  if (!initialState) {
176
175
  return columnsState;
@@ -254,14 +253,8 @@ const createColumnsState = ({
254
253
  let existingState = columnsState.lookup[field];
255
254
  if (existingState == null) {
256
255
  let colDef = columnTypes[_colDef.DEFAULT_GRID_COL_TYPE_KEY];
257
- if (newColumn.type) {
258
- if (process.env.NODE_ENV !== 'production' && !columnTypeWarnedOnce && !columnTypes[newColumn.type]) {
259
- console.warn([`MUI: The column type "${newColumn.type}" you are using is not supported.`, `Column type "string" is being used instead.`].join('\n'));
260
- columnTypeWarnedOnce = true;
261
- }
262
- if (columnTypes[newColumn.type]) {
263
- colDef = columnTypes[newColumn.type];
264
- }
256
+ if (newColumn.type && columnTypes[newColumn.type]) {
257
+ colDef = columnTypes[newColumn.type];
265
258
  }
266
259
  existingState = (0, _extends2.default)({}, colDef, {
267
260
  field,
@@ -99,8 +99,8 @@ const useGridCellEditing = (apiRef, props) => {
99
99
  }
100
100
  } else if (params.isEditable) {
101
101
  let reason;
102
- if (event.key === ' ' && event.shiftKey) {
103
- return; // Shift + Space is used to select the row
102
+ if (event.key === ' ') {
103
+ return; // Space scrolls to the last row
104
104
  }
105
105
 
106
106
  if ((0, _keyboardUtils.isPrintableKey)(event)) {
@@ -152,8 +152,8 @@ const useGridRowEditing = (apiRef, props) => {
152
152
  }
153
153
  } else if (params.isEditable) {
154
154
  let reason;
155
- if (event.key === ' ' && event.shiftKey) {
156
- return; // Shift + Space is used to select the row
155
+ if (event.key === ' ') {
156
+ return; // Space scrolls to the last row
157
157
  }
158
158
 
159
159
  if ((0, _keyboardUtils.isPrintableKey)(event)) {
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.GridPreferencePanelsValue = void 0;
7
- var GridPreferencePanelsValue;
8
- exports.GridPreferencePanelsValue = GridPreferencePanelsValue;
9
- (function (GridPreferencePanelsValue) {
7
+ var GridPreferencePanelsValue = /*#__PURE__*/function (GridPreferencePanelsValue) {
10
8
  GridPreferencePanelsValue["filters"] = "filters";
11
9
  GridPreferencePanelsValue["columns"] = "columns";
12
- })(GridPreferencePanelsValue || (exports.GridPreferencePanelsValue = GridPreferencePanelsValue = {}));
10
+ return GridPreferencePanelsValue;
11
+ }(GridPreferencePanelsValue || {});
12
+ exports.GridPreferencePanelsValue = GridPreferencePanelsValue;
@@ -16,12 +16,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
16
16
  * Signal to the underlying logic what version of the public component API
17
17
  * of the data grid is exposed.
18
18
  */
19
- var GridSignature;
20
- exports.GridSignature = GridSignature;
21
- (function (GridSignature) {
19
+ var GridSignature = /*#__PURE__*/function (GridSignature) {
22
20
  GridSignature["DataGrid"] = "DataGrid";
23
21
  GridSignature["DataGridPro"] = "DataGridPro";
24
- })(GridSignature || (exports.GridSignature = GridSignature = {}));
22
+ return GridSignature;
23
+ }(GridSignature || {});
24
+ exports.GridSignature = GridSignature;
25
25
  // We use class to make it easier to detect in heap snapshots by name
26
26
  class ObjectToBeRetainedByReact {}
27
27
 
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v6.0.1
2
+ * @mui/x-data-grid v6.0.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -26,17 +26,15 @@ const bgBGGrid = {
26
26
  toolbarFiltersTooltipShow: 'Покажи Филтрите',
27
27
  toolbarFiltersTooltipActive: count => `${count} активни филтри`,
28
28
  // Quick filter toolbar field
29
- // toolbarQuickFilterPlaceholder: 'Search…',
30
- // toolbarQuickFilterLabel: 'Search',
31
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
32
-
29
+ toolbarQuickFilterPlaceholder: 'Търси…',
30
+ toolbarQuickFilterLabel: 'Търсене',
31
+ toolbarQuickFilterDeleteIconLabel: 'Изчисти',
33
32
  // Export selector toolbar button text
34
33
  toolbarExport: 'Изтегли',
35
34
  toolbarExportLabel: 'Изтегли',
36
35
  toolbarExportCSV: 'Изтегли като CSV',
37
36
  toolbarExportPrint: 'Принтиране',
38
- // toolbarExportExcel: 'Download as Excel',
39
-
37
+ toolbarExportExcel: 'Изтегли като Excel',
40
38
  // Columns panel text
41
39
  columnsPanelTextFieldLabel: 'Намери колона',
42
40
  columnsPanelTextFieldPlaceholder: 'Заглавие на колона',
@@ -45,9 +43,9 @@ const bgBGGrid = {
45
43
  columnsPanelHideAllButton: 'Скрий Всички',
46
44
  // Filter panel text
47
45
  filterPanelAddFilter: 'Добави Филтър',
48
- // filterPanelRemoveAll: 'Remove all',
46
+ filterPanelRemoveAll: 'Премахни всички',
49
47
  filterPanelDeleteIconLabel: 'Изтрий',
50
- // filterPanelLogicOperator: 'Logic operator',
48
+ filterPanelLogicOperator: 'Логически оператор',
51
49
  filterPanelOperator: 'Оператори',
52
50
  filterPanelOperatorAnd: 'И',
53
51
  filterPanelOperatorOr: 'Или',
@@ -75,7 +73,7 @@ const bgBGGrid = {
75
73
  // Column menu text
76
74
  columnMenuLabel: 'Меню',
77
75
  columnMenuShowColumns: 'Покажи колоните',
78
- // columnMenuManageColumns: 'Manage columns',
76
+ columnMenuManageColumns: 'Управление на колони',
79
77
  columnMenuFilter: 'Филтри',
80
78
  columnMenuHideColumn: 'Скрий',
81
79
  columnMenuUnsort: 'Отмени сортирането',
@@ -117,10 +115,9 @@ const bgBGGrid = {
117
115
  // Master/detail
118
116
  // detailPanelToggle: 'Detail panel toggle',
119
117
  expandDetailPanel: 'Разгъване',
120
- collapseDetailPanel: 'Свиване'
121
-
118
+ collapseDetailPanel: 'Свиване',
122
119
  // Row reordering text
123
- // rowReorderingHeaderName: 'Row reordering',
120
+ rowReorderingHeaderName: 'Подредба на редове'
124
121
 
125
122
  // Aggregation
126
123
  // aggregationMenuItemHeader: 'Aggregation',
@@ -43,7 +43,7 @@ const faIRGrid = {
43
43
  columnsPanelHideAllButton: 'مخفی همه',
44
44
  // Filter panel text
45
45
  filterPanelAddFilter: 'افزودن فیلتر',
46
- // filterPanelRemoveAll: 'Remove all',
46
+ filterPanelRemoveAll: 'حذف همه',
47
47
  filterPanelDeleteIconLabel: 'حذف',
48
48
  filterPanelLogicOperator: 'عملگر منطقی',
49
49
  filterPanelOperator: 'عملگرها',
@@ -73,7 +73,7 @@ const faIRGrid = {
73
73
  // Column menu text
74
74
  columnMenuLabel: 'فهرست',
75
75
  columnMenuShowColumns: 'نمایش ستون‌ها',
76
- // columnMenuManageColumns: 'Manage columns',
76
+ columnMenuManageColumns: 'مدیریت ستون‌ها',
77
77
  columnMenuFilter: 'فیلتر',
78
78
  columnMenuHideColumn: 'مخفی',
79
79
  columnMenuUnsort: 'نامرتب‌کردن',
@@ -117,16 +117,14 @@ const nlNLGrid = {
117
117
  expandDetailPanel: 'Uitklappen',
118
118
  collapseDetailPanel: 'Inklappen',
119
119
  // Row reordering text
120
- rowReorderingHeaderName: 'Rijen hersorteren'
121
-
120
+ rowReorderingHeaderName: 'Rijen hersorteren',
122
121
  // Aggregation
123
- // aggregationMenuItemHeader: 'Aggregation',
124
- // aggregationFunctionLabelSum: 'sum',
125
- // aggregationFunctionLabelAvg: 'avg',
126
- // aggregationFunctionLabelMin: 'min',
127
- // aggregationFunctionLabelMax: 'max',
128
- // aggregationFunctionLabelSize: 'size',
122
+ aggregationMenuItemHeader: 'Aggregatie',
123
+ aggregationFunctionLabelSum: 'som',
124
+ aggregationFunctionLabelAvg: 'gem',
125
+ aggregationFunctionLabelMin: 'min',
126
+ aggregationFunctionLabelMax: 'max',
127
+ aggregationFunctionLabelSize: 'grootte'
129
128
  };
130
-
131
129
  const nlNL = (0, _getGridLocalization.getGridLocalization)(nlNLGrid, _locale.nlNL);
132
130
  exports.nlNL = nlNL;
@@ -73,7 +73,7 @@ const ptBRGrid = {
73
73
  // Column menu text
74
74
  columnMenuLabel: 'Menu',
75
75
  columnMenuShowColumns: 'Exibir colunas',
76
- // columnMenuManageColumns: 'Manage columns',
76
+ columnMenuManageColumns: 'Gerir colunas',
77
77
  columnMenuFilter: 'Filtrar',
78
78
  columnMenuHideColumn: 'Ocultar',
79
79
  columnMenuUnsort: 'Desfazer ordenação',
@@ -4,21 +4,21 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.GridRowModes = exports.GridEditModes = exports.GridCellModes = void 0;
7
- var GridEditModes;
8
- exports.GridEditModes = GridEditModes;
9
- (function (GridEditModes) {
7
+ var GridEditModes = /*#__PURE__*/function (GridEditModes) {
10
8
  GridEditModes["Cell"] = "cell";
11
9
  GridEditModes["Row"] = "row";
12
- })(GridEditModes || (exports.GridEditModes = GridEditModes = {}));
13
- var GridCellModes;
14
- exports.GridCellModes = GridCellModes;
15
- (function (GridCellModes) {
10
+ return GridEditModes;
11
+ }(GridEditModes || {});
12
+ exports.GridEditModes = GridEditModes;
13
+ var GridCellModes = /*#__PURE__*/function (GridCellModes) {
16
14
  GridCellModes["Edit"] = "edit";
17
15
  GridCellModes["View"] = "view";
18
- })(GridCellModes || (exports.GridCellModes = GridCellModes = {}));
19
- var GridRowModes;
20
- exports.GridRowModes = GridRowModes;
21
- (function (GridRowModes) {
16
+ return GridCellModes;
17
+ }(GridCellModes || {});
18
+ exports.GridCellModes = GridCellModes;
19
+ var GridRowModes = /*#__PURE__*/function (GridRowModes) {
22
20
  GridRowModes["Edit"] = "edit";
23
21
  GridRowModes["View"] = "view";
24
- })(GridRowModes || (exports.GridRowModes = GridRowModes = {}));
22
+ return GridRowModes;
23
+ }(GridRowModes || {});
24
+ exports.GridRowModes = GridRowModes;
@@ -9,9 +9,9 @@ exports.GridLogicOperator = void 0;
9
9
  * @demos
10
10
  * - [Custom filter operator](/x/react-data-grid/filtering/#create-a-custom-operator)
11
11
  */
12
- var GridLogicOperator;
13
- exports.GridLogicOperator = GridLogicOperator;
14
- (function (GridLogicOperator) {
12
+ var GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {
15
13
  GridLogicOperator["And"] = "and";
16
14
  GridLogicOperator["Or"] = "or";
17
- })(GridLogicOperator || (exports.GridLogicOperator = GridLogicOperator = {}));
15
+ return GridLogicOperator;
16
+ }(GridLogicOperator || {});
17
+ exports.GridLogicOperator = GridLogicOperator;
@@ -7,26 +7,26 @@ exports.GridCellEditStopReasons = exports.GridCellEditStartReasons = void 0;
7
7
  /**
8
8
  * Params passed to `apiRef.current.setEditCellValue`.
9
9
  */
10
- var GridCellEditStartReasons;
11
- /**
12
- * Params passed to the `cellEditStart` event.
13
- */
14
- exports.GridCellEditStartReasons = GridCellEditStartReasons;
15
- (function (GridCellEditStartReasons) {
10
+ var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {
16
11
  GridCellEditStartReasons["enterKeyDown"] = "enterKeyDown";
17
12
  GridCellEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
18
13
  GridCellEditStartReasons["printableKeyDown"] = "printableKeyDown";
19
14
  GridCellEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
20
- })(GridCellEditStartReasons || (exports.GridCellEditStartReasons = GridCellEditStartReasons = {}));
21
- var GridCellEditStopReasons;
15
+ return GridCellEditStartReasons;
16
+ }(GridCellEditStartReasons || {});
22
17
  /**
23
- * Params passed to the `cellEditStop event.
18
+ * Params passed to the `cellEditStart` event.
24
19
  */
25
- exports.GridCellEditStopReasons = GridCellEditStopReasons;
26
- (function (GridCellEditStopReasons) {
20
+ exports.GridCellEditStartReasons = GridCellEditStartReasons;
21
+ var GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
27
22
  GridCellEditStopReasons["cellFocusOut"] = "cellFocusOut";
28
23
  GridCellEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
29
24
  GridCellEditStopReasons["enterKeyDown"] = "enterKeyDown";
30
25
  GridCellEditStopReasons["tabKeyDown"] = "tabKeyDown";
31
26
  GridCellEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
32
- })(GridCellEditStopReasons || (exports.GridCellEditStopReasons = GridCellEditStopReasons = {}));
27
+ return GridCellEditStopReasons;
28
+ }(GridCellEditStopReasons || {});
29
+ /**
30
+ * Params passed to the `cellEditStop event.
31
+ */
32
+ exports.GridCellEditStopReasons = GridCellEditStopReasons;
@@ -20,23 +20,23 @@ exports.GridRowEditStopReasons = exports.GridRowEditStartReasons = void 0;
20
20
  /**
21
21
  * The getRowHeight return value.
22
22
  */
23
- var GridRowEditStartReasons;
24
- /**
25
- * Params passed to the `rowEditStart` event.
26
- */
27
- exports.GridRowEditStartReasons = GridRowEditStartReasons;
28
- (function (GridRowEditStartReasons) {
23
+ var GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
29
24
  GridRowEditStartReasons["enterKeyDown"] = "enterKeyDown";
30
25
  GridRowEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
31
26
  GridRowEditStartReasons["printableKeyDown"] = "printableKeyDown";
32
27
  GridRowEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
33
- })(GridRowEditStartReasons || (exports.GridRowEditStartReasons = GridRowEditStartReasons = {}));
34
- var GridRowEditStopReasons;
35
- exports.GridRowEditStopReasons = GridRowEditStopReasons;
36
- (function (GridRowEditStopReasons) {
28
+ return GridRowEditStartReasons;
29
+ }(GridRowEditStartReasons || {});
30
+ /**
31
+ * Params passed to the `rowEditStart` event.
32
+ */
33
+ exports.GridRowEditStartReasons = GridRowEditStartReasons;
34
+ var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
37
35
  GridRowEditStopReasons["rowFocusOut"] = "rowFocusOut";
38
36
  GridRowEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
39
37
  GridRowEditStopReasons["enterKeyDown"] = "enterKeyDown";
40
38
  GridRowEditStopReasons["tabKeyDown"] = "tabKeyDown";
41
39
  GridRowEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
42
- })(GridRowEditStopReasons || (exports.GridRowEditStopReasons = GridRowEditStopReasons = {}));
40
+ return GridRowEditStopReasons;
41
+ }(GridRowEditStopReasons || {});
42
+ exports.GridRowEditStopReasons = GridRowEditStopReasons;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "The community edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -35,8 +35,8 @@
35
35
  "directory": "packages/grid/x-data-grid"
36
36
  },
37
37
  "dependencies": {
38
- "@babel/runtime": "^7.20.13",
39
- "@mui/utils": "^5.11.7",
38
+ "@babel/runtime": "^7.21.0",
39
+ "@mui/utils": "^5.11.13",
40
40
  "clsx": "^1.2.1",
41
41
  "prop-types": "^15.8.1",
42
42
  "reselect": "^4.1.7"