@mui/x-data-grid 6.16.0 → 6.16.1

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 (143) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/components/containers/GridRootStyles.js +10 -0
  3. package/constants/gridClasses.d.ts +4 -0
  4. package/constants/gridClasses.js +1 -1
  5. package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -2
  6. package/index.js +1 -1
  7. package/legacy/components/containers/GridRootStyles.js +13 -9
  8. package/legacy/constants/gridClasses.js +1 -1
  9. package/legacy/index.js +1 -1
  10. package/modern/components/containers/GridRootStyles.js +10 -0
  11. package/modern/constants/gridClasses.js +1 -1
  12. package/modern/index.js +1 -1
  13. package/node/DataGrid/DataGrid.js +3 -6
  14. package/node/DataGrid/useDataGridProps.js +1 -2
  15. package/node/colDef/gridActionsColDef.js +3 -5
  16. package/node/colDef/gridBooleanColDef.js +2 -3
  17. package/node/colDef/gridCheckboxSelectionColDef.js +3 -5
  18. package/node/colDef/gridDateColDef.js +3 -5
  19. package/node/colDef/gridDefaultColumnTypes.js +1 -2
  20. package/node/colDef/gridNumericColDef.js +2 -3
  21. package/node/colDef/gridNumericOperators.js +1 -2
  22. package/node/colDef/gridSingleSelectColDef.js +2 -3
  23. package/node/colDef/gridStringColDef.js +2 -3
  24. package/node/colDef/gridStringOperators.js +1 -2
  25. package/node/colDef/utils.js +1 -2
  26. package/node/components/DataGridVirtualScroller.js +2 -3
  27. package/node/components/GridApiContext.js +1 -2
  28. package/node/components/GridColumnHeaders.js +1 -2
  29. package/node/components/GridFooter.js +1 -2
  30. package/node/components/GridLoadingOverlay.js +1 -2
  31. package/node/components/GridNoResultsOverlay.js +2 -3
  32. package/node/components/GridNoRowsOverlay.js +1 -2
  33. package/node/components/GridPagination.js +2 -3
  34. package/node/components/GridRow.js +1 -2
  35. package/node/components/GridRowCount.js +1 -2
  36. package/node/components/GridSelectedRowCount.js +1 -2
  37. package/node/components/cell/GridActionsCellItem.js +1 -2
  38. package/node/components/cell/GridBooleanCell.js +1 -2
  39. package/node/components/cell/GridCell.js +3 -6
  40. package/node/components/cell/GridEditInputCell.js +1 -2
  41. package/node/components/cell/GridEditSingleSelectCell.js +3 -2
  42. package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -3
  43. package/node/components/columnHeaders/GridBaseColumnHeaders.js +2 -3
  44. package/node/components/columnHeaders/GridColumnHeaderSeparator.js +2 -4
  45. package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -2
  46. package/node/components/columnHeaders/GridColumnHeadersInner.js +2 -3
  47. package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +2 -3
  48. package/node/components/columnHeaders/GridIconButtonContainer.js +2 -3
  49. package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -4
  50. package/node/components/columnSelection/GridHeaderCheckbox.js +1 -2
  51. package/node/components/containers/GridFooterContainer.js +1 -2
  52. package/node/components/containers/GridMainContainer.js +2 -3
  53. package/node/components/containers/GridOverlay.js +1 -2
  54. package/node/components/containers/GridRoot.js +1 -2
  55. package/node/components/containers/GridRootStyles.js +12 -3
  56. package/node/components/containers/GridToolbarContainer.js +1 -2
  57. package/node/components/menu/columnMenu/GridColumnMenu.js +4 -8
  58. package/node/components/menu/columnMenu/GridColumnMenuContainer.js +1 -2
  59. package/node/components/panel/GridPanel.js +2 -4
  60. package/node/components/panel/GridPanelWrapper.js +1 -2
  61. package/node/components/panel/GridPreferencesPanel.js +2 -3
  62. package/node/components/panel/filterPanel/GridFilterForm.js +6 -6
  63. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +3 -2
  64. package/node/components/panel/filterPanel/GridFilterPanel.js +1 -2
  65. package/node/components/toolbar/GridToolbar.js +1 -2
  66. package/node/components/toolbar/GridToolbarColumnsButton.js +2 -3
  67. package/node/components/toolbar/GridToolbarDensitySelector.js +2 -3
  68. package/node/components/toolbar/GridToolbarExport.js +1 -2
  69. package/node/components/toolbar/GridToolbarExportContainer.js +2 -3
  70. package/node/components/toolbar/GridToolbarFilterButton.js +1 -2
  71. package/node/components/virtualization/GridVirtualScroller.js +2 -3
  72. package/node/components/virtualization/GridVirtualScrollerContent.js +2 -3
  73. package/node/components/virtualization/GridVirtualScrollerRenderZone.js +2 -3
  74. package/node/constants/defaultGridSlotsComponents.js +2 -3
  75. package/node/constants/envConstants.js +1 -2
  76. package/node/constants/gridClasses.js +1 -2
  77. package/node/constants/gridDetailPanelToggleField.js +1 -2
  78. package/node/constants/localeTextConstants.js +2 -3
  79. package/node/context/GridRootPropsContext.js +1 -2
  80. package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +2 -4
  81. package/node/hooks/features/columnGrouping/gridColumnGroupsSelector.js +4 -8
  82. package/node/hooks/features/columns/gridColumnsSelector.js +11 -21
  83. package/node/hooks/features/columns/gridColumnsUtils.js +1 -2
  84. package/node/hooks/features/density/densitySelector.js +2 -4
  85. package/node/hooks/features/density/useGridDensity.js +2 -4
  86. package/node/hooks/features/filter/gridFilterSelector.js +14 -27
  87. package/node/hooks/features/focus/gridFocusStateSelector.js +8 -16
  88. package/node/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +2 -4
  89. package/node/hooks/features/pagination/gridPaginationSelector.js +8 -15
  90. package/node/hooks/features/pagination/gridPaginationUtils.js +1 -2
  91. package/node/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +2 -3
  92. package/node/hooks/features/rowSelection/gridRowSelectionSelector.js +4 -7
  93. package/node/hooks/features/rows/gridRowsSelector.js +14 -27
  94. package/node/hooks/features/rows/gridRowsUtils.js +2 -4
  95. package/node/hooks/features/sorting/gridSortingSelector.js +5 -9
  96. package/node/hooks/features/virtualization/gridVirtualizationSelectors.js +2 -4
  97. package/node/hooks/utils/useGridApiEventHandler.js +2 -4
  98. package/node/hooks/utils/useGridPrivateApiContext.js +1 -2
  99. package/node/hooks/utils/useGridSelector.js +1 -2
  100. package/node/index.js +1 -1
  101. package/node/joy/icons.js +30 -60
  102. package/node/joy/joySlots.js +1 -2
  103. package/node/locales/arSD.js +1 -2
  104. package/node/locales/beBY.js +1 -2
  105. package/node/locales/bgBG.js +1 -2
  106. package/node/locales/coreLocales.js +3 -5
  107. package/node/locales/csCZ.js +1 -2
  108. package/node/locales/daDK.js +1 -2
  109. package/node/locales/deDE.js +1 -2
  110. package/node/locales/elGR.js +1 -2
  111. package/node/locales/enUS.js +1 -2
  112. package/node/locales/esES.js +1 -2
  113. package/node/locales/faIR.js +1 -2
  114. package/node/locales/fiFI.js +1 -2
  115. package/node/locales/frFR.js +1 -2
  116. package/node/locales/heIL.js +1 -2
  117. package/node/locales/huHU.js +1 -2
  118. package/node/locales/itIT.js +1 -2
  119. package/node/locales/jaJP.js +1 -2
  120. package/node/locales/koKR.js +1 -2
  121. package/node/locales/nbNO.js +1 -2
  122. package/node/locales/nlNL.js +1 -2
  123. package/node/locales/plPL.js +1 -2
  124. package/node/locales/ptBR.js +1 -2
  125. package/node/locales/roRO.js +1 -2
  126. package/node/locales/ruRU.js +1 -2
  127. package/node/locales/skSK.js +1 -2
  128. package/node/locales/svSE.js +1 -2
  129. package/node/locales/trTR.js +1 -2
  130. package/node/locales/ukUA.js +1 -2
  131. package/node/locales/urPK.js +1 -2
  132. package/node/locales/viVN.js +1 -2
  133. package/node/locales/zhCN.js +1 -2
  134. package/node/locales/zhTW.js +1 -2
  135. package/node/material/icons/GridColumnUnsortedIcon.js +2 -3
  136. package/node/material/icons/index.js +29 -57
  137. package/node/material/index.js +1 -2
  138. package/node/models/gridEditRowModel.js +4 -7
  139. package/node/models/gridFilterItem.js +2 -3
  140. package/node/models/params/gridEditCellParams.js +3 -5
  141. package/node/models/params/gridRowParams.js +3 -5
  142. package/node/utils/keyboardUtils.js +3 -6
  143. package/package.json +3 -3
@@ -9,117 +9,89 @@ var _utils = require("@mui/material/utils");
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
10
  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); }
11
11
  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; }
12
- const GridArrowUpwardIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
12
+ const GridArrowUpwardIcon = exports.GridArrowUpwardIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
13
13
  d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"
14
14
  }), 'ArrowUpward');
15
- exports.GridArrowUpwardIcon = GridArrowUpwardIcon;
16
- const GridArrowDownwardIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
15
+ const GridArrowDownwardIcon = exports.GridArrowDownwardIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
17
16
  d: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"
18
17
  }), 'ArrowDownward');
19
- exports.GridArrowDownwardIcon = GridArrowDownwardIcon;
20
- const GridKeyboardArrowRight = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
18
+ const GridKeyboardArrowRight = exports.GridKeyboardArrowRight = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
21
19
  d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"
22
20
  }), 'KeyboardArrowRight');
23
- exports.GridKeyboardArrowRight = GridKeyboardArrowRight;
24
- const GridExpandMoreIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
21
+ const GridExpandMoreIcon = exports.GridExpandMoreIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
25
22
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
26
23
  }), 'ExpandMore');
27
- exports.GridExpandMoreIcon = GridExpandMoreIcon;
28
- const GridFilterListIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
24
+ const GridFilterListIcon = exports.GridFilterListIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
25
  d: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"
30
26
  }), 'FilterList');
31
- exports.GridFilterListIcon = GridFilterListIcon;
32
- const GridFilterAltIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
27
+ const GridFilterAltIcon = exports.GridFilterAltIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
33
28
  d: "M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"
34
29
  }), 'FilterAlt');
35
- exports.GridFilterAltIcon = GridFilterAltIcon;
36
- const GridSearchIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
30
+ const GridSearchIcon = exports.GridSearchIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
37
31
  d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
38
32
  }), 'Search');
39
- exports.GridSearchIcon = GridSearchIcon;
40
- const GridMenuIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
33
+ const GridMenuIcon = exports.GridMenuIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
41
34
  d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
42
35
  }), 'Menu');
43
- exports.GridMenuIcon = GridMenuIcon;
44
- const GridCheckCircleIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
36
+ const GridCheckCircleIcon = exports.GridCheckCircleIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
37
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
46
38
  }), 'CheckCircle');
47
- exports.GridCheckCircleIcon = GridCheckCircleIcon;
48
- const GridColumnIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
39
+ const GridColumnIcon = exports.GridColumnIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
49
40
  d: "M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"
50
41
  }), 'ColumnIcon');
51
- exports.GridColumnIcon = GridColumnIcon;
52
- const GridSeparatorIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
42
+ const GridSeparatorIcon = exports.GridSeparatorIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
53
43
  d: "M11 19V5h2v14z"
54
44
  }), 'Separator');
55
- exports.GridSeparatorIcon = GridSeparatorIcon;
56
- const GridViewHeadlineIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
45
+ const GridViewHeadlineIcon = exports.GridViewHeadlineIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
57
46
  d: "M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"
58
47
  }), 'ViewHeadline');
59
- exports.GridViewHeadlineIcon = GridViewHeadlineIcon;
60
- const GridTableRowsIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
48
+ const GridTableRowsIcon = exports.GridTableRowsIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
61
49
  d: "M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"
62
50
  }), 'TableRows');
63
- exports.GridTableRowsIcon = GridTableRowsIcon;
64
- const GridViewStreamIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
51
+ const GridViewStreamIcon = exports.GridViewStreamIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
65
52
  d: "M4 18h17v-6H4v6zM4 5v6h17V5H4z"
66
53
  }), 'ViewStream');
67
- exports.GridViewStreamIcon = GridViewStreamIcon;
68
- const GridTripleDotsVerticalIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
54
+ const GridTripleDotsVerticalIcon = exports.GridTripleDotsVerticalIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
69
55
  d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
70
56
  }), 'TripleDotsVertical');
71
- exports.GridTripleDotsVerticalIcon = GridTripleDotsVerticalIcon;
72
- const GridCloseIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
57
+ const GridCloseIcon = exports.GridCloseIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
73
58
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
74
59
  }), 'Close');
75
- exports.GridCloseIcon = GridCloseIcon;
76
- const GridAddIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
60
+ const GridAddIcon = exports.GridAddIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
77
61
  d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
78
62
  }), 'Add');
79
- exports.GridAddIcon = GridAddIcon;
80
- const GridRemoveIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
63
+ const GridRemoveIcon = exports.GridRemoveIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
81
64
  d: "M19 13H5v-2h14v2z"
82
65
  }), 'Remove');
83
- exports.GridRemoveIcon = GridRemoveIcon;
84
- const GridLoadIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
66
+ const GridLoadIcon = exports.GridLoadIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
85
67
  d: "M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"
86
68
  }), 'Load');
87
- exports.GridLoadIcon = GridLoadIcon;
88
- const GridDragIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
69
+ const GridDragIcon = exports.GridDragIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
89
70
  d: "M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
90
71
  }), 'Drag');
91
- exports.GridDragIcon = GridDragIcon;
92
- const GridSaveAltIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
72
+ const GridSaveAltIcon = exports.GridSaveAltIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
93
73
  d: "M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"
94
74
  }), 'SaveAlt');
95
- exports.GridSaveAltIcon = GridSaveAltIcon;
96
- const GridCheckIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
75
+ const GridCheckIcon = exports.GridCheckIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
97
76
  d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
98
77
  }), 'Check');
99
- exports.GridCheckIcon = GridCheckIcon;
100
- const GridMoreVertIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
78
+ const GridMoreVertIcon = exports.GridMoreVertIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
101
79
  d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
102
80
  }), 'MoreVert');
103
- exports.GridMoreVertIcon = GridMoreVertIcon;
104
- const GridVisibilityOffIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
81
+ const GridVisibilityOffIcon = exports.GridVisibilityOffIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
105
82
  d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"
106
83
  }), 'VisibilityOff');
107
- exports.GridVisibilityOffIcon = GridVisibilityOffIcon;
108
- const GridViewColumnIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
84
+ const GridViewColumnIcon = exports.GridViewColumnIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
109
85
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
110
86
  d: "M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"
111
87
  })
112
88
  }), 'ViewColumn');
113
- exports.GridViewColumnIcon = GridViewColumnIcon;
114
- const GridClearIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
89
+ const GridClearIcon = exports.GridClearIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
115
90
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
116
91
  }), 'Clear');
117
- exports.GridClearIcon = GridClearIcon;
118
- const GridDeleteIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
92
+ const GridDeleteIcon = exports.GridDeleteIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
119
93
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
120
94
  }), 'Delete');
121
- exports.GridDeleteIcon = GridDeleteIcon;
122
- const GridDeleteForeverIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
95
+ const GridDeleteForeverIcon = exports.GridDeleteForeverIcon = (0, _utils.createSvgIcon)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
123
96
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"
124
- }), 'Delete');
125
- exports.GridDeleteForeverIcon = GridDeleteForeverIcon;
97
+ }), 'Delete');
@@ -73,5 +73,4 @@ const materialSlots = (0, _extends2.default)({}, iconSlots, {
73
73
  BaseSelectOption: _MUISelectOption.default,
74
74
  BaseChip: _Chip.default
75
75
  });
76
- var _default = materialSlots;
77
- exports.default = _default;
76
+ var _default = exports.default = materialSlots;
@@ -4,21 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.GridRowModes = exports.GridEditModes = exports.GridCellModes = void 0;
7
- var GridEditModes = /*#__PURE__*/function (GridEditModes) {
7
+ var GridEditModes = exports.GridEditModes = /*#__PURE__*/function (GridEditModes) {
8
8
  GridEditModes["Cell"] = "cell";
9
9
  GridEditModes["Row"] = "row";
10
10
  return GridEditModes;
11
11
  }(GridEditModes || {});
12
- exports.GridEditModes = GridEditModes;
13
- var GridCellModes = /*#__PURE__*/function (GridCellModes) {
12
+ var GridCellModes = exports.GridCellModes = /*#__PURE__*/function (GridCellModes) {
14
13
  GridCellModes["Edit"] = "edit";
15
14
  GridCellModes["View"] = "view";
16
15
  return GridCellModes;
17
16
  }(GridCellModes || {});
18
- exports.GridCellModes = GridCellModes;
19
- var GridRowModes = /*#__PURE__*/function (GridRowModes) {
17
+ var GridRowModes = exports.GridRowModes = /*#__PURE__*/function (GridRowModes) {
20
18
  GridRowModes["Edit"] = "edit";
21
19
  GridRowModes["View"] = "view";
22
20
  return GridRowModes;
23
- }(GridRowModes || {});
24
- exports.GridRowModes = GridRowModes;
21
+ }(GridRowModes || {});
@@ -9,9 +9,8 @@ exports.GridLogicOperator = void 0;
9
9
  * @demos
10
10
  * - [Custom filter operator](/x/react-data-grid/filtering/customization/#create-a-custom-operator)
11
11
  */
12
- var GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {
12
+ var GridLogicOperator = exports.GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {
13
13
  GridLogicOperator["And"] = "and";
14
14
  GridLogicOperator["Or"] = "or";
15
15
  return GridLogicOperator;
16
- }(GridLogicOperator || {});
17
- exports.GridLogicOperator = GridLogicOperator;
16
+ }(GridLogicOperator || {});
@@ -7,7 +7,7 @@ exports.GridCellEditStopReasons = exports.GridCellEditStartReasons = void 0;
7
7
  /**
8
8
  * Params passed to `apiRef.current.setEditCellValue`.
9
9
  */
10
- var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {
10
+ var GridCellEditStartReasons = exports.GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {
11
11
  GridCellEditStartReasons["enterKeyDown"] = "enterKeyDown";
12
12
  GridCellEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
13
13
  GridCellEditStartReasons["printableKeyDown"] = "printableKeyDown";
@@ -17,8 +17,7 @@ var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons)
17
17
  /**
18
18
  * Params passed to the `cellEditStart` event.
19
19
  */
20
- exports.GridCellEditStartReasons = GridCellEditStartReasons;
21
- var GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
20
+ var GridCellEditStopReasons = exports.GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
22
21
  GridCellEditStopReasons["cellFocusOut"] = "cellFocusOut";
23
22
  GridCellEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
24
23
  GridCellEditStopReasons["enterKeyDown"] = "enterKeyDown";
@@ -29,5 +28,4 @@ var GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
29
28
  /**
30
29
  * Params passed to the `cellEditStop event.
31
30
  */
32
- // https://github.com/mui/mui-x/pull/3738#discussion_r798504277
33
- exports.GridCellEditStopReasons = GridCellEditStopReasons;
31
+ // https://github.com/mui/mui-x/pull/3738#discussion_r798504277
@@ -20,7 +20,7 @@ exports.GridRowEditStopReasons = exports.GridRowEditStartReasons = void 0;
20
20
  /**
21
21
  * The getRowHeight return value.
22
22
  */
23
- var GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
23
+ var GridRowEditStartReasons = exports.GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
24
24
  GridRowEditStartReasons["enterKeyDown"] = "enterKeyDown";
25
25
  GridRowEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
26
26
  GridRowEditStartReasons["printableKeyDown"] = "printableKeyDown";
@@ -30,8 +30,7 @@ var GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
30
30
  /**
31
31
  * Params passed to the `rowEditStart` event.
32
32
  */
33
- exports.GridRowEditStartReasons = GridRowEditStartReasons;
34
- var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
33
+ var GridRowEditStopReasons = exports.GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
35
34
  GridRowEditStopReasons["rowFocusOut"] = "rowFocusOut";
36
35
  GridRowEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
37
36
  GridRowEditStopReasons["enterKeyDown"] = "enterKeyDown";
@@ -47,5 +46,4 @@ var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
47
46
  /**
48
47
  * The getRowSpacing return value.
49
48
  */
50
- // https://github.com/mui/mui-x/pull/3738#discussion_r798504277
51
- exports.GridRowEditStopReasons = GridRowEditStopReasons;
49
+ // https://github.com/mui/mui-x/pull/3738#discussion_r798504277
@@ -33,12 +33,9 @@ exports.isDeleteKeys = isDeleteKeys;
33
33
  function isPrintableKey(event) {
34
34
  return event.key.length === 1 && !event.ctrlKey && !event.metaKey;
35
35
  }
36
- const GRID_MULTIPLE_SELECTION_KEYS = ['Meta', 'Control', 'Shift'];
37
- exports.GRID_MULTIPLE_SELECTION_KEYS = GRID_MULTIPLE_SELECTION_KEYS;
38
- const GRID_CELL_EXIT_EDIT_MODE_KEYS = ['Enter', 'Escape', 'Tab'];
39
- exports.GRID_CELL_EXIT_EDIT_MODE_KEYS = GRID_CELL_EXIT_EDIT_MODE_KEYS;
40
- const GRID_CELL_EDIT_COMMIT_KEYS = ['Enter', 'Tab'];
41
- exports.GRID_CELL_EDIT_COMMIT_KEYS = GRID_CELL_EDIT_COMMIT_KEYS;
36
+ const GRID_MULTIPLE_SELECTION_KEYS = exports.GRID_MULTIPLE_SELECTION_KEYS = ['Meta', 'Control', 'Shift'];
37
+ const GRID_CELL_EXIT_EDIT_MODE_KEYS = exports.GRID_CELL_EXIT_EDIT_MODE_KEYS = ['Enter', 'Escape', 'Tab'];
38
+ const GRID_CELL_EDIT_COMMIT_KEYS = exports.GRID_CELL_EDIT_COMMIT_KEYS = ['Enter', 'Tab'];
42
39
  const isMultipleKey = key => GRID_MULTIPLE_SELECTION_KEYS.indexOf(key) > -1;
43
40
  exports.isMultipleKey = isMultipleKey;
44
41
  const isCellEnterEditModeKeys = event => isEnterKey(event.key) || isDeleteKeys(event.key) || isPrintableKey(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "6.16.0",
3
+ "version": "6.16.1",
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.22.15",
39
- "@mui/utils": "^5.14.8",
38
+ "@babel/runtime": "^7.23.1",
39
+ "@mui/utils": "^5.14.11",
40
40
  "clsx": "^2.0.0",
41
41
  "prop-types": "^15.8.1",
42
42
  "reselect": "^4.1.8"