@mui/x-data-grid 9.4.0 → 9.6.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.
Files changed (234) hide show
  1. package/CHANGELOG.md +251 -0
  2. package/DataGrid/DataGrid.js +74 -13
  3. package/DataGrid/DataGrid.mjs +74 -13
  4. package/colDef/gridColumnTypesRegistry.d.mts +8 -0
  5. package/colDef/gridColumnTypesRegistry.d.ts +8 -0
  6. package/colDef/gridColumnTypesRegistry.js +44 -0
  7. package/colDef/gridColumnTypesRegistry.mjs +34 -0
  8. package/colDef/gridDefaultColumnTypes.d.mts +1 -1
  9. package/colDef/gridDefaultColumnTypes.d.ts +1 -1
  10. package/colDef/gridDefaultColumnTypes.js +11 -23
  11. package/colDef/gridDefaultColumnTypes.mjs +4 -22
  12. package/components/GridColumnHeaders.js +1 -1
  13. package/components/GridColumnHeaders.mjs +1 -1
  14. package/components/GridColumnUnsortedIcon.js +1 -1
  15. package/components/GridColumnUnsortedIcon.mjs +1 -1
  16. package/components/GridFooter.js +1 -1
  17. package/components/GridFooter.mjs +1 -1
  18. package/components/GridLoadingOverlay.js +1 -1
  19. package/components/GridLoadingOverlay.mjs +1 -1
  20. package/components/GridNoColumnsOverlay.js +1 -1
  21. package/components/GridNoColumnsOverlay.mjs +1 -1
  22. package/components/GridNoRowsOverlay.js +1 -1
  23. package/components/GridNoRowsOverlay.mjs +1 -1
  24. package/components/GridRow.js +1 -1
  25. package/components/GridRow.mjs +1 -1
  26. package/components/GridRowCount.js +1 -1
  27. package/components/GridRowCount.mjs +1 -1
  28. package/components/GridRowDragAndDropOverlay.d.mts +1 -1
  29. package/components/GridRowDragAndDropOverlay.d.ts +1 -1
  30. package/components/GridSelectedRowCount.js +1 -1
  31. package/components/GridSelectedRowCount.mjs +1 -1
  32. package/components/GridShadowScrollArea.js +1 -1
  33. package/components/GridShadowScrollArea.mjs +1 -1
  34. package/components/cell/GridActionsCell.js +84 -4
  35. package/components/cell/GridActionsCell.mjs +84 -4
  36. package/components/cell/GridActionsCellItem.js +75 -1
  37. package/components/cell/GridActionsCellItem.mjs +74 -0
  38. package/components/cell/GridBooleanCell.js +1 -1
  39. package/components/cell/GridBooleanCell.mjs +1 -1
  40. package/components/cell/GridCell.js +1 -1
  41. package/components/cell/GridCell.mjs +1 -1
  42. package/components/cell/GridEditBooleanCell.js +1 -1
  43. package/components/cell/GridEditBooleanCell.mjs +1 -1
  44. package/components/cell/GridEditDateCell.js +1 -1
  45. package/components/cell/GridEditDateCell.mjs +1 -1
  46. package/components/cell/GridEditInputCell.js +68 -0
  47. package/components/cell/GridEditInputCell.mjs +68 -0
  48. package/components/cell/GridEditLongTextCell.d.mts +3 -0
  49. package/components/cell/GridEditLongTextCell.d.ts +3 -0
  50. package/components/cell/GridEditLongTextCell.js +141 -0
  51. package/components/cell/GridEditLongTextCell.mjs +141 -0
  52. package/components/cell/GridEditSingleSelectCell.js +1 -1
  53. package/components/cell/GridEditSingleSelectCell.mjs +1 -1
  54. package/components/cell/GridLongTextCell.d.mts +3 -0
  55. package/components/cell/GridLongTextCell.d.ts +3 -0
  56. package/components/cell/GridLongTextCell.js +68 -0
  57. package/components/cell/GridLongTextCell.mjs +68 -0
  58. package/components/cell/GridSkeletonCell.js +3 -2
  59. package/components/cell/GridSkeletonCell.mjs +3 -2
  60. package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +2 -2
  61. package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +2 -2
  62. package/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  63. package/components/columnHeaders/GridColumnHeaderItem.mjs +1 -1
  64. package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  65. package/components/columnHeaders/GridColumnHeaderSeparator.mjs +1 -1
  66. package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  67. package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +1 -1
  68. package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  69. package/components/columnHeaders/GridColumnHeaderTitle.mjs +1 -1
  70. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  71. package/components/columnSelection/GridCellCheckboxRenderer.mjs +1 -1
  72. package/components/columnSelection/GridHeaderCheckbox.js +1 -1
  73. package/components/columnSelection/GridHeaderCheckbox.mjs +1 -1
  74. package/components/columnSelection/GridRowCheckbox.js +1 -1
  75. package/components/columnSelection/GridRowCheckbox.mjs +1 -1
  76. package/components/columnsManagement/GridColumnsManagement.js +1 -1
  77. package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
  78. package/components/columnsPanel/ColumnsPanelTrigger.js +1 -1
  79. package/components/columnsPanel/ColumnsPanelTrigger.mjs +1 -1
  80. package/components/containers/GridFooterContainer.js +1 -1
  81. package/components/containers/GridFooterContainer.mjs +1 -1
  82. package/components/containers/GridOverlay.js +1 -1
  83. package/components/containers/GridOverlay.mjs +1 -1
  84. package/components/containers/GridRoot.js +1 -1
  85. package/components/containers/GridRoot.mjs +1 -1
  86. package/components/containers/GridRootStyles.js +32 -2
  87. package/components/containers/GridRootStyles.mjs +32 -2
  88. package/components/containers/GridToolbarContainer.js +1 -1
  89. package/components/containers/GridToolbarContainer.mjs +1 -1
  90. package/components/export/ExportCsv.js +1 -1
  91. package/components/export/ExportCsv.mjs +1 -1
  92. package/components/export/ExportPrint.js +1 -1
  93. package/components/export/ExportPrint.mjs +1 -1
  94. package/components/filterPanel/FilterPanelTrigger.js +1 -1
  95. package/components/filterPanel/FilterPanelTrigger.mjs +1 -1
  96. package/components/menu/GridMenu.js +1 -1
  97. package/components/menu/GridMenu.mjs +1 -1
  98. package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  99. package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
  100. package/components/menu/columnMenu/GridColumnMenu.js +2 -2
  101. package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
  102. package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  103. package/components/menu/columnMenu/GridColumnMenuContainer.mjs +1 -1
  104. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  105. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
  106. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  107. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.mjs +1 -1
  108. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  109. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.mjs +1 -1
  110. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  111. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.mjs +1 -1
  112. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  113. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.mjs +1 -1
  114. package/components/panel/GridPanel.js +1 -1
  115. package/components/panel/GridPanel.mjs +1 -1
  116. package/components/panel/GridPanelContent.js +1 -1
  117. package/components/panel/GridPanelContent.mjs +1 -1
  118. package/components/panel/GridPanelFooter.js +1 -1
  119. package/components/panel/GridPanelFooter.mjs +1 -1
  120. package/components/panel/GridPanelHeader.js +1 -1
  121. package/components/panel/GridPanelHeader.mjs +1 -1
  122. package/components/panel/filterPanel/GridFilterForm.js +1 -1
  123. package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
  124. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  125. package/components/panel/filterPanel/GridFilterInputBoolean.mjs +1 -1
  126. package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  127. package/components/panel/filterPanel/GridFilterInputDate.mjs +1 -1
  128. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  129. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +1 -1
  130. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  131. package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +1 -1
  132. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +3 -5
  133. package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +3 -5
  134. package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  135. package/components/panel/filterPanel/GridFilterInputValue.mjs +1 -1
  136. package/components/panel/filterPanel/GridFilterPanel.js +1 -1
  137. package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
  138. package/components/panel/filterPanel/filterPanelUtils.d.mts +3 -2
  139. package/components/panel/filterPanel/filterPanelUtils.d.ts +3 -2
  140. package/components/panel/filterPanel/filterPanelUtils.js +4 -0
  141. package/components/panel/filterPanel/filterPanelUtils.mjs +3 -0
  142. package/components/quickFilter/QuickFilter.js +1 -1
  143. package/components/quickFilter/QuickFilter.mjs +1 -1
  144. package/components/quickFilter/QuickFilterClear.js +1 -1
  145. package/components/quickFilter/QuickFilterClear.mjs +1 -1
  146. package/components/quickFilter/QuickFilterControl.js +1 -1
  147. package/components/quickFilter/QuickFilterControl.mjs +1 -1
  148. package/components/quickFilter/QuickFilterTrigger.js +1 -1
  149. package/components/quickFilter/QuickFilterTrigger.mjs +1 -1
  150. package/components/toolbar/GridToolbar.js +1 -1
  151. package/components/toolbar/GridToolbar.mjs +1 -1
  152. package/components/toolbar/GridToolbarColumnsButton.js +1 -1
  153. package/components/toolbar/GridToolbarColumnsButton.mjs +1 -1
  154. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  155. package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
  156. package/components/toolbar/GridToolbarExport.js +3 -3
  157. package/components/toolbar/GridToolbarExport.mjs +3 -3
  158. package/components/toolbar/GridToolbarExportContainer.js +1 -1
  159. package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
  160. package/components/toolbar/GridToolbarFilterButton.js +1 -1
  161. package/components/toolbar/GridToolbarFilterButton.mjs +1 -1
  162. package/components/toolbar/GridToolbarQuickFilter.js +1 -1
  163. package/components/toolbar/GridToolbarQuickFilter.mjs +1 -1
  164. package/components/toolbarV8/GridToolbar.js +8 -3
  165. package/components/toolbarV8/GridToolbar.mjs +8 -3
  166. package/components/toolbarV8/Toolbar.js +1 -1
  167. package/components/toolbarV8/Toolbar.mjs +1 -1
  168. package/components/toolbarV8/ToolbarButton.js +1 -1
  169. package/components/toolbarV8/ToolbarButton.mjs +1 -1
  170. package/components/virtualization/GridVirtualScrollbar.js +8 -1
  171. package/components/virtualization/GridVirtualScrollbar.mjs +8 -1
  172. package/components/virtualization/GridVirtualScroller.js +12 -0
  173. package/components/virtualization/GridVirtualScroller.mjs +12 -0
  174. package/constants/cssVariables.d.mts +3 -0
  175. package/constants/cssVariables.d.ts +3 -0
  176. package/constants/cssVariables.js +2 -1
  177. package/constants/cssVariables.mjs +2 -1
  178. package/constants/gridClasses.d.mts +48 -0
  179. package/constants/gridClasses.d.ts +48 -0
  180. package/constants/gridClasses.js +1 -1
  181. package/constants/gridClasses.mjs +1 -1
  182. package/hooks/core/useGridProps.js +5 -3
  183. package/hooks/core/useGridProps.mjs +5 -3
  184. package/hooks/features/columns/gridColumnsUtils.js +18 -10
  185. package/hooks/features/columns/gridColumnsUtils.mjs +19 -11
  186. package/hooks/features/columns/useGridColumns.js +11 -0
  187. package/hooks/features/columns/useGridColumns.mjs +11 -0
  188. package/hooks/features/dataSource/useGridDataSourceBase.js +2 -2
  189. package/hooks/features/dataSource/useGridDataSourceBase.mjs +2 -2
  190. package/hooks/features/editing/useGridCellEditing.js +1 -1
  191. package/hooks/features/editing/useGridCellEditing.mjs +1 -1
  192. package/hooks/features/editing/useGridRowEditing.js +1 -1
  193. package/hooks/features/editing/useGridRowEditing.mjs +1 -1
  194. package/hooks/features/export/serializers/csvSerializer.js +3 -1
  195. package/hooks/features/export/serializers/csvSerializer.mjs +3 -1
  196. package/hooks/features/filter/gridFilterUtils.js +5 -3
  197. package/hooks/features/filter/gridFilterUtils.mjs +5 -3
  198. package/hooks/features/listView/useGridListView.js +1 -1
  199. package/hooks/features/listView/useGridListView.mjs +1 -1
  200. package/hooks/features/sorting/gridSortingUtils.js +3 -1
  201. package/hooks/features/sorting/gridSortingUtils.mjs +3 -1
  202. package/hooks/utils/useGridSelector.js +27 -24
  203. package/hooks/utils/useGridSelector.mjs +26 -24
  204. package/index.js +1 -1
  205. package/index.mjs +1 -1
  206. package/internals/index.d.mts +9 -4
  207. package/internals/index.d.ts +9 -4
  208. package/internals/index.js +62 -2
  209. package/internals/index.mjs +8 -4
  210. package/internals/utils/propValidation.js +3 -0
  211. package/internals/utils/propValidation.mjs +3 -0
  212. package/material/augmentation.d.mts +4 -0
  213. package/material/augmentation.d.ts +4 -0
  214. package/material/index.js +42 -26
  215. package/material/index.mjs +42 -26
  216. package/material/variables.js +2 -1
  217. package/material/variables.mjs +2 -1
  218. package/models/colDef/gridColDef.d.mts +35 -3
  219. package/models/colDef/gridColDef.d.ts +35 -3
  220. package/models/colDef/gridColType.d.mts +1 -0
  221. package/models/colDef/gridColType.d.ts +1 -0
  222. package/models/colDef/gridColumnTypesRecord.d.mts +1 -1
  223. package/models/colDef/gridColumnTypesRecord.d.ts +1 -1
  224. package/models/colDef/index.d.mts +1 -1
  225. package/models/colDef/index.d.ts +1 -1
  226. package/models/gridBaseSlots.d.mts +46 -0
  227. package/models/gridBaseSlots.d.ts +46 -0
  228. package/models/gridSlotsComponent.d.mts +5 -0
  229. package/models/gridSlotsComponent.d.ts +5 -0
  230. package/models/gridSlotsComponentsProps.d.mts +3 -1
  231. package/models/gridSlotsComponentsProps.d.ts +3 -1
  232. package/models/gridStateCommunity.d.mts +1 -1
  233. package/models/gridStateCommunity.d.ts +1 -1
  234. package/package.json +7 -4
@@ -1,29 +1,17 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
- exports.getGridDefaultColumnTypes = exports.DEFAULT_GRID_COL_TYPE_KEY = void 0;
7
- var _gridStringColDef = require("./gridStringColDef");
8
- var _gridNumericColDef = require("./gridNumericColDef");
9
- var _gridDateColDef = require("./gridDateColDef");
10
- var _gridBooleanColDef = require("./gridBooleanColDef");
11
- var _gridSingleSelectColDef = require("./gridSingleSelectColDef");
12
- var _gridActionsColDef = require("./gridActionsColDef");
13
- var _gridLongTextColDef = require("./gridLongTextColDef");
14
- const DEFAULT_GRID_COL_TYPE_KEY = exports.DEFAULT_GRID_COL_TYPE_KEY = 'string';
15
- const getGridDefaultColumnTypes = () => {
16
- const nativeColumnTypes = {
17
- string: _gridStringColDef.GRID_STRING_COL_DEF,
18
- number: _gridNumericColDef.GRID_NUMERIC_COL_DEF,
19
- date: _gridDateColDef.GRID_DATE_COL_DEF,
20
- dateTime: _gridDateColDef.GRID_DATETIME_COL_DEF,
21
- boolean: _gridBooleanColDef.GRID_BOOLEAN_COL_DEF,
22
- singleSelect: _gridSingleSelectColDef.GRID_SINGLE_SELECT_COL_DEF,
23
- [_gridActionsColDef.GRID_ACTIONS_COLUMN_TYPE]: _gridActionsColDef.GRID_ACTIONS_COL_DEF,
24
- custom: _gridStringColDef.GRID_STRING_COL_DEF,
25
- longText: _gridLongTextColDef.GRID_LONG_TEXT_COL_DEF
26
- };
27
- return nativeColumnTypes;
28
- };
7
+ Object.defineProperty(exports, "DEFAULT_GRID_COL_TYPE_KEY", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _gridColumnTypesRegistry.DEFAULT_GRID_COL_TYPE_KEY;
11
+ }
12
+ });
13
+ exports.getGridDefaultColumnTypes = void 0;
14
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
+ var _gridColumnTypesRegistry = require("./gridColumnTypesRegistry");
16
+ const getGridDefaultColumnTypes = () => (0, _extends2.default)({}, (0, _gridColumnTypesRegistry.getGridColumnTypesRegistry)());
29
17
  exports.getGridDefaultColumnTypes = getGridDefaultColumnTypes;
@@ -1,22 +1,4 @@
1
- import { GRID_STRING_COL_DEF } from "./gridStringColDef.mjs";
2
- import { GRID_NUMERIC_COL_DEF } from "./gridNumericColDef.mjs";
3
- import { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from "./gridDateColDef.mjs";
4
- import { GRID_BOOLEAN_COL_DEF } from "./gridBooleanColDef.mjs";
5
- import { GRID_SINGLE_SELECT_COL_DEF } from "./gridSingleSelectColDef.mjs";
6
- import { GRID_ACTIONS_COL_DEF, GRID_ACTIONS_COLUMN_TYPE } from "./gridActionsColDef.mjs";
7
- import { GRID_LONG_TEXT_COL_DEF } from "./gridLongTextColDef.mjs";
8
- export const DEFAULT_GRID_COL_TYPE_KEY = 'string';
9
- export const getGridDefaultColumnTypes = () => {
10
- const nativeColumnTypes = {
11
- string: GRID_STRING_COL_DEF,
12
- number: GRID_NUMERIC_COL_DEF,
13
- date: GRID_DATE_COL_DEF,
14
- dateTime: GRID_DATETIME_COL_DEF,
15
- boolean: GRID_BOOLEAN_COL_DEF,
16
- singleSelect: GRID_SINGLE_SELECT_COL_DEF,
17
- [GRID_ACTIONS_COLUMN_TYPE]: GRID_ACTIONS_COL_DEF,
18
- custom: GRID_STRING_COL_DEF,
19
- longText: GRID_LONG_TEXT_COL_DEF
20
- };
21
- return nativeColumnTypes;
22
- };
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import { getGridColumnTypesRegistry } from "./gridColumnTypesRegistry.mjs";
3
+ export { DEFAULT_GRID_COL_TYPE_KEY } from "./gridColumnTypesRegistry.mjs";
4
+ export const getGridDefaultColumnTypes = () => _extends({}, getGridColumnTypesRegistry());
@@ -57,7 +57,7 @@ const GridColumnHeaders = (0, _forwardRef.forwardRef)(function GridColumnHeaders
57
57
  }));
58
58
  });
59
59
  if (process.env.NODE_ENV !== "production") GridColumnHeaders.displayName = "GridColumnHeaders";
60
- process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
60
+ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes /* remove-proptypes */ = {
61
61
  // ----------------------------- Warning --------------------------------
62
62
  // | These PropTypes are generated from the TypeScript type definitions |
63
63
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -50,7 +50,7 @@ const GridColumnHeaders = forwardRef(function GridColumnHeaders(props, ref) {
50
50
  }));
51
51
  });
52
52
  if (process.env.NODE_ENV !== "production") GridColumnHeaders.displayName = "GridColumnHeaders";
53
- process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
53
+ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes /* remove-proptypes */ = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
56
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -25,7 +25,7 @@ function GridColumnUnsortedIcon(props) {
25
25
  const Icon = nextSortDirection === 'asc' ? slots.columnSortedAscendingIcon : slots.columnSortedDescendingIcon;
26
26
  return Icon ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, (0, _extends2.default)({}, other)) : null;
27
27
  }
28
- process.env.NODE_ENV !== "production" ? GridColumnUnsortedIcon.propTypes = {
28
+ process.env.NODE_ENV !== "production" ? GridColumnUnsortedIcon.propTypes /* remove-proptypes */ = {
29
29
  // ----------------------------- Warning --------------------------------
30
30
  // | These PropTypes are generated from the TypeScript type definitions |
31
31
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -17,7 +17,7 @@ function GridColumnUnsortedIcon(props) {
17
17
  const Icon = nextSortDirection === 'asc' ? slots.columnSortedAscendingIcon : slots.columnSortedDescendingIcon;
18
18
  return Icon ? /*#__PURE__*/_jsx(Icon, _extends({}, other)) : null;
19
19
  }
20
- process.env.NODE_ENV !== "production" ? GridColumnUnsortedIcon.propTypes = {
20
+ process.env.NODE_ENV !== "production" ? GridColumnUnsortedIcon.propTypes /* remove-proptypes */ = {
21
21
  // ----------------------------- Warning --------------------------------
22
22
  // | These PropTypes are generated from the TypeScript type definitions |
23
23
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -38,7 +38,7 @@ const GridFooter = exports.GridFooter = (0, _forwardRef.forwardRef)(function Gri
38
38
  }));
39
39
  });
40
40
  if (process.env.NODE_ENV !== "production") GridFooter.displayName = "GridFooter";
41
- process.env.NODE_ENV !== "production" ? GridFooter.propTypes = {
41
+ process.env.NODE_ENV !== "production" ? GridFooter.propTypes /* remove-proptypes */ = {
42
42
  // ----------------------------- Warning --------------------------------
43
43
  // | These PropTypes are generated from the TypeScript type definitions |
44
44
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -32,7 +32,7 @@ const GridFooter = forwardRef(function GridFooter(props, ref) {
32
32
  }));
33
33
  });
34
34
  if (process.env.NODE_ENV !== "production") GridFooter.displayName = "GridFooter";
35
- process.env.NODE_ENV !== "production" ? GridFooter.propTypes = {
35
+ process.env.NODE_ENV !== "production" ? GridFooter.propTypes /* remove-proptypes */ = {
36
36
  // ----------------------------- Warning --------------------------------
37
37
  // | These PropTypes are generated from the TypeScript type definitions |
38
38
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -57,7 +57,7 @@ const GridLoadingOverlay = exports.GridLoadingOverlay = (0, _forwardRef.forwardR
57
57
  }));
58
58
  });
59
59
  if (process.env.NODE_ENV !== "production") GridLoadingOverlay.displayName = "GridLoadingOverlay";
60
- process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes = {
60
+ process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes /* remove-proptypes */ = {
61
61
  // ----------------------------- Warning --------------------------------
62
62
  // | These PropTypes are generated from the TypeScript type definitions |
63
63
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -50,7 +50,7 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay(props, ref) {
50
50
  }));
51
51
  });
52
52
  if (process.env.NODE_ENV !== "production") GridLoadingOverlay.displayName = "GridLoadingOverlay";
53
- process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes = {
53
+ process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes /* remove-proptypes */ = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
56
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -34,7 +34,7 @@ const GridNoColumnsOverlay = exports.GridNoColumnsOverlay = (0, _forwardRef.forw
34
34
  }));
35
35
  });
36
36
  if (process.env.NODE_ENV !== "production") GridNoColumnsOverlay.displayName = "GridNoColumnsOverlay";
37
- process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes = {
37
+ process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes /* remove-proptypes */ = {
38
38
  // ----------------------------- Warning --------------------------------
39
39
  // | These PropTypes are generated from the TypeScript type definitions |
40
40
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -28,7 +28,7 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay(props, ref
28
28
  }));
29
29
  });
30
30
  if (process.env.NODE_ENV !== "production") GridNoColumnsOverlay.displayName = "GridNoColumnsOverlay";
31
- process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes = {
31
+ process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes /* remove-proptypes */ = {
32
32
  // ----------------------------- Warning --------------------------------
33
33
  // | These PropTypes are generated from the TypeScript type definitions |
34
34
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -21,7 +21,7 @@ const GridNoRowsOverlay = exports.GridNoRowsOverlay = (0, _forwardRef.forwardRef
21
21
  }));
22
22
  });
23
23
  if (process.env.NODE_ENV !== "production") GridNoRowsOverlay.displayName = "GridNoRowsOverlay";
24
- process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes = {
24
+ process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes /* remove-proptypes */ = {
25
25
  // ----------------------------- Warning --------------------------------
26
26
  // | These PropTypes are generated from the TypeScript type definitions |
27
27
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -15,7 +15,7 @@ const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay(props, ref) {
15
15
  }));
16
16
  });
17
17
  if (process.env.NODE_ENV !== "production") GridNoRowsOverlay.displayName = "GridNoRowsOverlay";
18
- process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes = {
18
+ process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes /* remove-proptypes */ = {
19
19
  // ----------------------------- Warning --------------------------------
20
20
  // | These PropTypes are generated from the TypeScript type definitions |
21
21
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -330,7 +330,7 @@ const GridRow = (0, _forwardRef.forwardRef)(function GridRow(props, refProp) {
330
330
  }));
331
331
  });
332
332
  if (process.env.NODE_ENV !== "production") GridRow.displayName = "GridRow";
333
- process.env.NODE_ENV !== "production" ? GridRow.propTypes = {
333
+ process.env.NODE_ENV !== "production" ? GridRow.propTypes /* remove-proptypes */ = {
334
334
  // ----------------------------- Warning --------------------------------
335
335
  // | These PropTypes are generated from the TypeScript type definitions |
336
336
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -323,7 +323,7 @@ const GridRow = forwardRef(function GridRow(props, refProp) {
323
323
  }));
324
324
  });
325
325
  if (process.env.NODE_ENV !== "production") GridRow.displayName = "GridRow";
326
- process.env.NODE_ENV !== "production" ? GridRow.propTypes = {
326
+ process.env.NODE_ENV !== "production" ? GridRow.propTypes /* remove-proptypes */ = {
327
327
  // ----------------------------- Warning --------------------------------
328
328
  // | These PropTypes are generated from the TypeScript type definitions |
329
329
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -61,7 +61,7 @@ const GridRowCount = exports.GridRowCount = (0, _forwardRef.forwardRef)(function
61
61
  }));
62
62
  });
63
63
  if (process.env.NODE_ENV !== "production") GridRowCount.displayName = "GridRowCount";
64
- process.env.NODE_ENV !== "production" ? GridRowCount.propTypes = {
64
+ process.env.NODE_ENV !== "production" ? GridRowCount.propTypes /* remove-proptypes */ = {
65
65
  // ----------------------------- Warning --------------------------------
66
66
  // | These PropTypes are generated from the TypeScript type definitions |
67
67
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -54,7 +54,7 @@ const GridRowCount = forwardRef(function GridRowCount(props, ref) {
54
54
  }));
55
55
  });
56
56
  if (process.env.NODE_ENV !== "production") GridRowCount.displayName = "GridRowCount";
57
- process.env.NODE_ENV !== "production" ? GridRowCount.propTypes = {
57
+ process.env.NODE_ENV !== "production" ? GridRowCount.propTypes /* remove-proptypes */ = {
58
58
  // ----------------------------- Warning --------------------------------
59
59
  // | These PropTypes are generated from the TypeScript type definitions |
60
60
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -4,4 +4,4 @@ export interface GridRowDragAndDropOverlayProps {
4
4
  rowId: GridRowId;
5
5
  className?: string;
6
6
  }
7
- export declare const GridRowDragAndDropOverlay: React.NamedExoticComponent<GridRowDragAndDropOverlayProps>;
7
+ export declare const GridRowDragAndDropOverlay: React.MemoExoticComponent<(props: GridRowDragAndDropOverlayProps) => import("react/jsx-runtime").JSX.Element | null>;
@@ -4,4 +4,4 @@ export interface GridRowDragAndDropOverlayProps {
4
4
  rowId: GridRowId;
5
5
  className?: string;
6
6
  }
7
- export declare const GridRowDragAndDropOverlay: React.NamedExoticComponent<GridRowDragAndDropOverlayProps>;
7
+ export declare const GridRowDragAndDropOverlay: React.MemoExoticComponent<(props: GridRowDragAndDropOverlayProps) => import("react/jsx-runtime").JSX.Element | null>;
@@ -65,7 +65,7 @@ const GridSelectedRowCount = exports.GridSelectedRowCount = (0, _forwardRef.forw
65
65
  }));
66
66
  });
67
67
  if (process.env.NODE_ENV !== "production") GridSelectedRowCount.displayName = "GridSelectedRowCount";
68
- process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes = {
68
+ process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes /* remove-proptypes */ = {
69
69
  // ----------------------------- Warning --------------------------------
70
70
  // | These PropTypes are generated from the TypeScript type definitions |
71
71
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -58,7 +58,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount(props, ref
58
58
  }));
59
59
  });
60
60
  if (process.env.NODE_ENV !== "production") GridSelectedRowCount.displayName = "GridSelectedRowCount";
61
- process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes = {
61
+ process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes /* remove-proptypes */ = {
62
62
  // ----------------------------- Warning --------------------------------
63
63
  // | These PropTypes are generated from the TypeScript type definitions |
64
64
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -94,7 +94,7 @@ const GridShadowScrollArea = exports.GridShadowScrollArea = (0, _forwardRef.forw
94
94
  }));
95
95
  });
96
96
  if (process.env.NODE_ENV !== "production") GridShadowScrollArea.displayName = "GridShadowScrollArea";
97
- process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes = {
97
+ process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes /* remove-proptypes */ = {
98
98
  // ----------------------------- Warning --------------------------------
99
99
  // | These PropTypes are generated from the TypeScript type definitions |
100
100
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -87,7 +87,7 @@ const GridShadowScrollArea = forwardRef(function GridShadowScrollArea(props, ref
87
87
  }));
88
88
  });
89
89
  if (process.env.NODE_ENV !== "production") GridShadowScrollArea.displayName = "GridShadowScrollArea";
90
- process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes = {
90
+ process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes /* remove-proptypes */ = {
91
91
  // ----------------------------- Warning --------------------------------
92
92
  // | These PropTypes are generated from the TypeScript type definitions |
93
93
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -60,7 +60,7 @@ function GridActionsCell(props) {
60
60
  });
61
61
  } else if (child.type === _GridActionsCellItem.GridActionsCellItem || suppressChildrenValidation) {
62
62
  actions.push(child);
63
- } else {
63
+ } else if (process.env.NODE_ENV !== 'production') {
64
64
  const childType = typeof child.type === 'function' ? child.type.name : child.type;
65
65
  (0, _warning.warnOnce)(`MUI X: Invalid child type in \`GridActionsCell\`. Expected \`GridActionsCellItem\` or \`React.Fragment\`, got \`${childType}\`.
66
66
  If this is intentional, you can suppress this warning by passing the \`suppressChildrenValidation\` prop to \`GridActionsCell\`.`, 'error');
@@ -220,7 +220,7 @@ If this is intentional, you can suppress this warning by passing the \`suppressC
220
220
  })]
221
221
  }));
222
222
  }
223
- process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
223
+ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes /* remove-proptypes */ = {
224
224
  // ----------------------------- Warning --------------------------------
225
225
  // | These PropTypes are generated from the TypeScript type definitions |
226
226
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -230,7 +230,7 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
230
230
  * The mode of the cell.
231
231
  */
232
232
  cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
233
- children: _propTypes.default.node.isRequired,
233
+ children: _propTypes.default.node,
234
234
  /**
235
235
  * The column of the row that the current cell belongs to.
236
236
  */
@@ -255,15 +255,40 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
255
255
  * If true, the cell is editable.
256
256
  */
257
257
  isEditable: _propTypes.default.bool,
258
+ /**
259
+ * Callback to fire before the menu gets closed.
260
+ * Use this callback to prevent the menu from closing.
261
+ *
262
+ * @param {GridRowParams<R>} params Row parameters.
263
+ * @param {React.MouseEvent<HTMLElement> | React.KeyboardEvent | MouseEvent | TouchEvent | undefined} event The event triggering this callback.
264
+ * @returns {boolean} if the menu should be closed.
265
+ */
266
+ onMenuClose: _propTypes.default.func,
267
+ /**
268
+ * Callback to fire before the menu gets opened.
269
+ * Use this callback to prevent the menu from opening.
270
+ *
271
+ * @param {GridRowParams<R>} params Row parameters.
272
+ * @param {React.MouseEvent<HTMLElement>} event The event triggering this callback.
273
+ * @returns {boolean} if the menu should be opened.
274
+ */
275
+ onMenuOpen: _propTypes.default.func,
258
276
  position: _propTypes.default.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
259
277
  /**
260
278
  * The row model of the row that the current cell belongs to.
261
279
  */
262
- row: _propTypes.default.any.isRequired,
280
+ row: _propTypes.default.object.isRequired,
263
281
  /**
264
282
  * The node of the row that the current cell belongs to.
265
283
  */
266
284
  rowNode: _propTypes.default.object.isRequired,
285
+ /**
286
+ * If true, the children passed to the component will not be validated.
287
+ * If false, only `GridActionsCellItem` and `React.Fragment` are allowed as children.
288
+ * Only use this prop if you know what you are doing.
289
+ * @default false
290
+ */
291
+ suppressChildrenValidation: _propTypes.default.bool,
267
292
  /**
268
293
  * the tabIndex value.
269
294
  */
@@ -293,6 +318,61 @@ function GridActionsCellWrapper(props) {
293
318
  children: actions
294
319
  }));
295
320
  }
321
+ process.env.NODE_ENV !== "production" ? GridActionsCellWrapper.propTypes /* remove-proptypes */ = {
322
+ // ----------------------------- Warning --------------------------------
323
+ // | These PropTypes are generated from the TypeScript type definitions |
324
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
325
+ // ----------------------------------------------------------------------
326
+ /**
327
+ * GridApi that let you manipulate the grid.
328
+ */
329
+ api: _propTypes.default.object.isRequired,
330
+ /**
331
+ * The mode of the cell.
332
+ */
333
+ cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
334
+ /**
335
+ * The column of the row that the current cell belongs to.
336
+ */
337
+ colDef: _propTypes.default.object.isRequired,
338
+ /**
339
+ * The column field of the cell that triggered the event.
340
+ */
341
+ field: _propTypes.default.string.isRequired,
342
+ /**
343
+ * The cell value formatted with the column valueFormatter.
344
+ */
345
+ formattedValue: _propTypes.default.any,
346
+ /**
347
+ * If true, the cell is the active element.
348
+ */
349
+ hasFocus: _propTypes.default.bool.isRequired,
350
+ /**
351
+ * The grid row id.
352
+ */
353
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
354
+ /**
355
+ * If true, the cell is editable.
356
+ */
357
+ isEditable: _propTypes.default.bool,
358
+ /**
359
+ * The row model of the row that the current cell belongs to.
360
+ */
361
+ row: _propTypes.default.any.isRequired,
362
+ /**
363
+ * The node of the row that the current cell belongs to.
364
+ */
365
+ rowNode: _propTypes.default.object.isRequired,
366
+ /**
367
+ * the tabIndex value.
368
+ */
369
+ tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
370
+ /**
371
+ * The cell value.
372
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
373
+ */
374
+ value: _propTypes.default.any
375
+ } : void 0;
296
376
  const renderActionsCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridActionsCellWrapper, (0, _extends2.default)({}, params));
297
377
  exports.renderActionsCell = renderActionsCell;
298
378
  if (process.env.NODE_ENV !== "production") renderActionsCell.displayName = "renderActionsCell";
@@ -52,7 +52,7 @@ function GridActionsCell(props) {
52
52
  });
53
53
  } else if (child.type === GridActionsCellItem || suppressChildrenValidation) {
54
54
  actions.push(child);
55
- } else {
55
+ } else if (process.env.NODE_ENV !== 'production') {
56
56
  const childType = typeof child.type === 'function' ? child.type.name : child.type;
57
57
  warnOnce(`MUI X: Invalid child type in \`GridActionsCell\`. Expected \`GridActionsCellItem\` or \`React.Fragment\`, got \`${childType}\`.
58
58
  If this is intentional, you can suppress this warning by passing the \`suppressChildrenValidation\` prop to \`GridActionsCell\`.`, 'error');
@@ -212,7 +212,7 @@ If this is intentional, you can suppress this warning by passing the \`suppressC
212
212
  })]
213
213
  }));
214
214
  }
215
- process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
215
+ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes /* remove-proptypes */ = {
216
216
  // ----------------------------- Warning --------------------------------
217
217
  // | These PropTypes are generated from the TypeScript type definitions |
218
218
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -222,7 +222,7 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
222
222
  * The mode of the cell.
223
223
  */
224
224
  cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
225
- children: PropTypes.node.isRequired,
225
+ children: PropTypes.node,
226
226
  /**
227
227
  * The column of the row that the current cell belongs to.
228
228
  */
@@ -247,15 +247,40 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
247
247
  * If true, the cell is editable.
248
248
  */
249
249
  isEditable: PropTypes.bool,
250
+ /**
251
+ * Callback to fire before the menu gets closed.
252
+ * Use this callback to prevent the menu from closing.
253
+ *
254
+ * @param {GridRowParams<R>} params Row parameters.
255
+ * @param {React.MouseEvent<HTMLElement> | React.KeyboardEvent | MouseEvent | TouchEvent | undefined} event The event triggering this callback.
256
+ * @returns {boolean} if the menu should be closed.
257
+ */
258
+ onMenuClose: PropTypes.func,
259
+ /**
260
+ * Callback to fire before the menu gets opened.
261
+ * Use this callback to prevent the menu from opening.
262
+ *
263
+ * @param {GridRowParams<R>} params Row parameters.
264
+ * @param {React.MouseEvent<HTMLElement>} event The event triggering this callback.
265
+ * @returns {boolean} if the menu should be opened.
266
+ */
267
+ onMenuOpen: PropTypes.func,
250
268
  position: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
251
269
  /**
252
270
  * The row model of the row that the current cell belongs to.
253
271
  */
254
- row: PropTypes.any.isRequired,
272
+ row: PropTypes.object.isRequired,
255
273
  /**
256
274
  * The node of the row that the current cell belongs to.
257
275
  */
258
276
  rowNode: PropTypes.object.isRequired,
277
+ /**
278
+ * If true, the children passed to the component will not be validated.
279
+ * If false, only `GridActionsCellItem` and `React.Fragment` are allowed as children.
280
+ * Only use this prop if you know what you are doing.
281
+ * @default false
282
+ */
283
+ suppressChildrenValidation: PropTypes.bool,
259
284
  /**
260
285
  * the tabIndex value.
261
286
  */
@@ -287,5 +312,60 @@ function GridActionsCellWrapper(props) {
287
312
  children: actions
288
313
  }));
289
314
  }
315
+ process.env.NODE_ENV !== "production" ? GridActionsCellWrapper.propTypes /* remove-proptypes */ = {
316
+ // ----------------------------- Warning --------------------------------
317
+ // | These PropTypes are generated from the TypeScript type definitions |
318
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
319
+ // ----------------------------------------------------------------------
320
+ /**
321
+ * GridApi that let you manipulate the grid.
322
+ */
323
+ api: PropTypes.object.isRequired,
324
+ /**
325
+ * The mode of the cell.
326
+ */
327
+ cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
328
+ /**
329
+ * The column of the row that the current cell belongs to.
330
+ */
331
+ colDef: PropTypes.object.isRequired,
332
+ /**
333
+ * The column field of the cell that triggered the event.
334
+ */
335
+ field: PropTypes.string.isRequired,
336
+ /**
337
+ * The cell value formatted with the column valueFormatter.
338
+ */
339
+ formattedValue: PropTypes.any,
340
+ /**
341
+ * If true, the cell is the active element.
342
+ */
343
+ hasFocus: PropTypes.bool.isRequired,
344
+ /**
345
+ * The grid row id.
346
+ */
347
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
348
+ /**
349
+ * If true, the cell is editable.
350
+ */
351
+ isEditable: PropTypes.bool,
352
+ /**
353
+ * The row model of the row that the current cell belongs to.
354
+ */
355
+ row: PropTypes.any.isRequired,
356
+ /**
357
+ * The node of the row that the current cell belongs to.
358
+ */
359
+ rowNode: PropTypes.object.isRequired,
360
+ /**
361
+ * the tabIndex value.
362
+ */
363
+ tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
364
+ /**
365
+ * The cell value.
366
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
367
+ */
368
+ value: PropTypes.any
369
+ } : void 0;
290
370
  export const renderActionsCell = params => /*#__PURE__*/_jsx(GridActionsCellWrapper, _extends({}, params));
291
371
  if (process.env.NODE_ENV !== "production") renderActionsCell.displayName = "renderActionsCell";
@@ -10,6 +10,7 @@ exports.GridActionsCellItem = void 0;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
14
  var _forwardRef = require("@mui/x-internals/forwardRef");
14
15
  var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
@@ -62,4 +63,77 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
62
63
  children: label
63
64
  }));
64
65
  });
65
- if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
66
+ if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
67
+ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-proptypes */ = {
68
+ // ----------------------------- Warning --------------------------------
69
+ // | These PropTypes are generated from the TypeScript type definitions |
70
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
71
+ // ----------------------------------------------------------------------
72
+ className: _propTypes.default.string,
73
+ /**
74
+ * from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
75
+ */
76
+ component: _propTypes.default.elementType,
77
+ disabled: _propTypes.default.bool,
78
+ icon: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
79
+ '__@iterator@659': _propTypes.default.func.isRequired
80
+ }), _propTypes.default.shape({
81
+ '__@iterator@659': _propTypes.default.func.isRequired,
82
+ key: _propTypes.default.string,
83
+ props: _propTypes.default.any.isRequired,
84
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
85
+ }), _propTypes.default.shape({
86
+ '__@toStringTag@1607': _propTypes.default.oneOf(['BigInt']).isRequired,
87
+ key: _propTypes.default.string,
88
+ props: _propTypes.default.any.isRequired,
89
+ toLocaleString: _propTypes.default.func.isRequired,
90
+ toString: _propTypes.default.func.isRequired,
91
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
92
+ valueOf: _propTypes.default.func.isRequired
93
+ }), _propTypes.default.shape({
94
+ '__@toStringTag@1607': _propTypes.default.oneOf(['BigInt']).isRequired,
95
+ toLocaleString: _propTypes.default.func.isRequired,
96
+ toString: _propTypes.default.func.isRequired,
97
+ valueOf: _propTypes.default.func.isRequired
98
+ }), _propTypes.default.shape({
99
+ '__@toStringTag@1607': _propTypes.default.string.isRequired,
100
+ catch: _propTypes.default.func.isRequired,
101
+ finally: _propTypes.default.func.isRequired,
102
+ key: _propTypes.default.string,
103
+ props: _propTypes.default.any.isRequired,
104
+ then: _propTypes.default.func.isRequired,
105
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
106
+ }), _propTypes.default.shape({
107
+ '__@toStringTag@1607': _propTypes.default.string.isRequired,
108
+ catch: _propTypes.default.func.isRequired,
109
+ finally: _propTypes.default.func.isRequired,
110
+ then: _propTypes.default.func.isRequired
111
+ }), _propTypes.default.shape({
112
+ children: _propTypes.default.node,
113
+ key: _propTypes.default.string,
114
+ props: _propTypes.default.any.isRequired,
115
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
116
+ }), _propTypes.default.shape({
117
+ key: _propTypes.default.string,
118
+ props: _propTypes.default.any.isRequired,
119
+ toExponential: _propTypes.default.func.isRequired,
120
+ toFixed: _propTypes.default.func.isRequired,
121
+ toLocaleString: _propTypes.default.func.isRequired,
122
+ toPrecision: _propTypes.default.func.isRequired,
123
+ toString: _propTypes.default.func.isRequired,
124
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
125
+ valueOf: _propTypes.default.func.isRequired
126
+ }), _propTypes.default.shape({
127
+ key: _propTypes.default.string,
128
+ props: _propTypes.default.any.isRequired,
129
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
130
+ }), _propTypes.default.shape({
131
+ key: _propTypes.default.string,
132
+ props: _propTypes.default.any.isRequired,
133
+ type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
134
+ valueOf: _propTypes.default.func.isRequired
135
+ }), _propTypes.default.string, _propTypes.default.bool]),
136
+ label: _propTypes.default.node,
137
+ showInMenu: _propTypes.default.bool,
138
+ style: _propTypes.default.object
139
+ } : void 0;