@mui/x-data-grid 9.5.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 (168) hide show
  1. package/CHANGELOG.md +151 -0
  2. package/DataGrid/DataGrid.js +74 -13
  3. package/DataGrid/DataGrid.mjs +74 -13
  4. package/components/GridColumnHeaders.js +1 -1
  5. package/components/GridColumnHeaders.mjs +1 -1
  6. package/components/GridColumnUnsortedIcon.js +1 -1
  7. package/components/GridColumnUnsortedIcon.mjs +1 -1
  8. package/components/GridFooter.js +1 -1
  9. package/components/GridFooter.mjs +1 -1
  10. package/components/GridLoadingOverlay.js +1 -1
  11. package/components/GridLoadingOverlay.mjs +1 -1
  12. package/components/GridNoColumnsOverlay.js +1 -1
  13. package/components/GridNoColumnsOverlay.mjs +1 -1
  14. package/components/GridNoRowsOverlay.js +1 -1
  15. package/components/GridNoRowsOverlay.mjs +1 -1
  16. package/components/GridRow.js +1 -1
  17. package/components/GridRow.mjs +1 -1
  18. package/components/GridRowCount.js +1 -1
  19. package/components/GridRowCount.mjs +1 -1
  20. package/components/GridRowDragAndDropOverlay.d.mts +1 -1
  21. package/components/GridRowDragAndDropOverlay.d.ts +1 -1
  22. package/components/GridSelectedRowCount.js +1 -1
  23. package/components/GridSelectedRowCount.mjs +1 -1
  24. package/components/GridShadowScrollArea.js +1 -1
  25. package/components/GridShadowScrollArea.mjs +1 -1
  26. package/components/cell/GridActionsCell.js +83 -3
  27. package/components/cell/GridActionsCell.mjs +83 -3
  28. package/components/cell/GridActionsCellItem.js +75 -1
  29. package/components/cell/GridActionsCellItem.mjs +74 -0
  30. package/components/cell/GridBooleanCell.js +1 -1
  31. package/components/cell/GridBooleanCell.mjs +1 -1
  32. package/components/cell/GridCell.js +1 -1
  33. package/components/cell/GridCell.mjs +1 -1
  34. package/components/cell/GridEditBooleanCell.js +1 -1
  35. package/components/cell/GridEditBooleanCell.mjs +1 -1
  36. package/components/cell/GridEditDateCell.js +1 -1
  37. package/components/cell/GridEditDateCell.mjs +1 -1
  38. package/components/cell/GridEditInputCell.js +68 -0
  39. package/components/cell/GridEditInputCell.mjs +68 -0
  40. package/components/cell/GridEditLongTextCell.d.mts +3 -0
  41. package/components/cell/GridEditLongTextCell.d.ts +3 -0
  42. package/components/cell/GridEditLongTextCell.js +141 -0
  43. package/components/cell/GridEditLongTextCell.mjs +141 -0
  44. package/components/cell/GridEditSingleSelectCell.js +1 -1
  45. package/components/cell/GridEditSingleSelectCell.mjs +1 -1
  46. package/components/cell/GridLongTextCell.d.mts +3 -0
  47. package/components/cell/GridLongTextCell.d.ts +3 -0
  48. package/components/cell/GridLongTextCell.js +66 -0
  49. package/components/cell/GridLongTextCell.mjs +66 -0
  50. package/components/cell/GridSkeletonCell.js +3 -2
  51. package/components/cell/GridSkeletonCell.mjs +3 -2
  52. package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +2 -2
  53. package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +2 -2
  54. package/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  55. package/components/columnHeaders/GridColumnHeaderItem.mjs +1 -1
  56. package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  57. package/components/columnHeaders/GridColumnHeaderSeparator.mjs +1 -1
  58. package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  59. package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +1 -1
  60. package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  61. package/components/columnHeaders/GridColumnHeaderTitle.mjs +1 -1
  62. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  63. package/components/columnSelection/GridCellCheckboxRenderer.mjs +1 -1
  64. package/components/columnSelection/GridHeaderCheckbox.js +1 -1
  65. package/components/columnSelection/GridHeaderCheckbox.mjs +1 -1
  66. package/components/columnSelection/GridRowCheckbox.js +1 -1
  67. package/components/columnSelection/GridRowCheckbox.mjs +1 -1
  68. package/components/columnsManagement/GridColumnsManagement.js +1 -1
  69. package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
  70. package/components/columnsPanel/ColumnsPanelTrigger.js +1 -1
  71. package/components/columnsPanel/ColumnsPanelTrigger.mjs +1 -1
  72. package/components/containers/GridFooterContainer.js +1 -1
  73. package/components/containers/GridFooterContainer.mjs +1 -1
  74. package/components/containers/GridOverlay.js +1 -1
  75. package/components/containers/GridOverlay.mjs +1 -1
  76. package/components/containers/GridRoot.js +1 -1
  77. package/components/containers/GridRoot.mjs +1 -1
  78. package/components/containers/GridRootStyles.js +3 -2
  79. package/components/containers/GridRootStyles.mjs +3 -2
  80. package/components/containers/GridToolbarContainer.js +1 -1
  81. package/components/containers/GridToolbarContainer.mjs +1 -1
  82. package/components/export/ExportCsv.js +1 -1
  83. package/components/export/ExportCsv.mjs +1 -1
  84. package/components/export/ExportPrint.js +1 -1
  85. package/components/export/ExportPrint.mjs +1 -1
  86. package/components/filterPanel/FilterPanelTrigger.js +1 -1
  87. package/components/filterPanel/FilterPanelTrigger.mjs +1 -1
  88. package/components/menu/GridMenu.js +1 -1
  89. package/components/menu/GridMenu.mjs +1 -1
  90. package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  91. package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
  92. package/components/menu/columnMenu/GridColumnMenu.js +2 -2
  93. package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
  94. package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  95. package/components/menu/columnMenu/GridColumnMenuContainer.mjs +1 -1
  96. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  97. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
  98. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  99. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.mjs +1 -1
  100. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  101. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.mjs +1 -1
  102. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  103. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.mjs +1 -1
  104. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  105. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.mjs +1 -1
  106. package/components/panel/GridPanel.js +1 -1
  107. package/components/panel/GridPanel.mjs +1 -1
  108. package/components/panel/GridPanelContent.js +1 -1
  109. package/components/panel/GridPanelContent.mjs +1 -1
  110. package/components/panel/GridPanelFooter.js +1 -1
  111. package/components/panel/GridPanelFooter.mjs +1 -1
  112. package/components/panel/GridPanelHeader.js +1 -1
  113. package/components/panel/GridPanelHeader.mjs +1 -1
  114. package/components/panel/filterPanel/GridFilterForm.js +1 -1
  115. package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
  116. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  117. package/components/panel/filterPanel/GridFilterInputBoolean.mjs +1 -1
  118. package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  119. package/components/panel/filterPanel/GridFilterInputDate.mjs +1 -1
  120. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  121. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +1 -1
  122. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  123. package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +1 -1
  124. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  125. package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +1 -1
  126. package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  127. package/components/panel/filterPanel/GridFilterInputValue.mjs +1 -1
  128. package/components/panel/filterPanel/GridFilterPanel.js +1 -1
  129. package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
  130. package/components/quickFilter/QuickFilter.js +1 -1
  131. package/components/quickFilter/QuickFilter.mjs +1 -1
  132. package/components/quickFilter/QuickFilterClear.js +1 -1
  133. package/components/quickFilter/QuickFilterClear.mjs +1 -1
  134. package/components/quickFilter/QuickFilterControl.js +1 -1
  135. package/components/quickFilter/QuickFilterControl.mjs +1 -1
  136. package/components/quickFilter/QuickFilterTrigger.js +1 -1
  137. package/components/quickFilter/QuickFilterTrigger.mjs +1 -1
  138. package/components/toolbar/GridToolbar.js +1 -1
  139. package/components/toolbar/GridToolbar.mjs +1 -1
  140. package/components/toolbar/GridToolbarColumnsButton.js +1 -1
  141. package/components/toolbar/GridToolbarColumnsButton.mjs +1 -1
  142. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  143. package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
  144. package/components/toolbar/GridToolbarExport.js +3 -3
  145. package/components/toolbar/GridToolbarExport.mjs +3 -3
  146. package/components/toolbar/GridToolbarExportContainer.js +1 -1
  147. package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
  148. package/components/toolbar/GridToolbarFilterButton.js +1 -1
  149. package/components/toolbar/GridToolbarFilterButton.mjs +1 -1
  150. package/components/toolbar/GridToolbarQuickFilter.js +1 -1
  151. package/components/toolbar/GridToolbarQuickFilter.mjs +1 -1
  152. package/components/toolbarV8/GridToolbar.js +8 -3
  153. package/components/toolbarV8/GridToolbar.mjs +8 -3
  154. package/components/toolbarV8/Toolbar.js +1 -1
  155. package/components/toolbarV8/Toolbar.mjs +1 -1
  156. package/components/toolbarV8/ToolbarButton.js +1 -1
  157. package/components/toolbarV8/ToolbarButton.mjs +1 -1
  158. package/components/virtualization/GridVirtualScrollbar.js +8 -1
  159. package/components/virtualization/GridVirtualScrollbar.mjs +8 -1
  160. package/components/virtualization/GridVirtualScroller.js +12 -0
  161. package/components/virtualization/GridVirtualScroller.mjs +12 -0
  162. package/hooks/utils/useGridSelector.js +1 -1
  163. package/hooks/utils/useGridSelector.mjs +1 -1
  164. package/index.js +1 -1
  165. package/index.mjs +1 -1
  166. package/material/index.js +5 -3
  167. package/material/index.mjs +5 -3
  168. package/package.json +7 -4
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "isValidating", "debounceMs", "isProcessingProps", "onValueChange", "slotProps"];
6
6
  import * as React from 'react';
7
+ import PropTypes from 'prop-types';
7
8
  import composeClasses from '@mui/utils/composeClasses';
8
9
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
9
10
  import { styled } from '@mui/material/styles';
@@ -100,6 +101,73 @@ const GridEditInputCell = forwardRef((props, ref) => {
100
101
  }));
101
102
  });
102
103
  if (process.env.NODE_ENV !== "production") GridEditInputCell.displayName = "GridEditInputCell";
104
+ process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes /* remove-proptypes */ = {
105
+ // ----------------------------- Warning --------------------------------
106
+ // | These PropTypes are generated from the TypeScript type definitions |
107
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
108
+ // ----------------------------------------------------------------------
109
+ /**
110
+ * GridApi that let you manipulate the grid.
111
+ */
112
+ api: PropTypes.object.isRequired,
113
+ /**
114
+ * The mode of the cell.
115
+ */
116
+ cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
117
+ changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
118
+ /**
119
+ * The column of the row that the current cell belongs to.
120
+ */
121
+ colDef: PropTypes.object.isRequired,
122
+ debounceMs: PropTypes.number,
123
+ /**
124
+ * The column field of the cell that triggered the event.
125
+ */
126
+ field: PropTypes.string.isRequired,
127
+ /**
128
+ * The cell value formatted with the column valueFormatter.
129
+ */
130
+ formattedValue: PropTypes.any,
131
+ /**
132
+ * If true, the cell is the active element.
133
+ */
134
+ hasFocus: PropTypes.bool.isRequired,
135
+ /**
136
+ * The grid row id.
137
+ */
138
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
139
+ /**
140
+ * If true, the cell is editable.
141
+ */
142
+ isEditable: PropTypes.bool,
143
+ isProcessingProps: PropTypes.bool,
144
+ isValidating: PropTypes.bool,
145
+ /**
146
+ * Callback called when the value is changed by the user.
147
+ * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
148
+ * @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
149
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
150
+ */
151
+ onValueChange: PropTypes.func,
152
+ /**
153
+ * The row model of the row that the current cell belongs to.
154
+ */
155
+ row: PropTypes.any.isRequired,
156
+ /**
157
+ * The node of the row that the current cell belongs to.
158
+ */
159
+ rowNode: PropTypes.object.isRequired,
160
+ slotProps: PropTypes.object,
161
+ /**
162
+ * the tabIndex value.
163
+ */
164
+ tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
165
+ /**
166
+ * The cell value.
167
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
168
+ */
169
+ value: PropTypes.any
170
+ } : void 0;
103
171
  export { GridEditInputCell };
104
172
  export const renderEditInputCell = params => /*#__PURE__*/_jsx(GridEditInputCell, _extends({}, params));
105
173
  if (process.env.NODE_ENV !== "production") renderEditInputCell.displayName = "renderEditInputCell";
@@ -37,5 +37,8 @@ export interface GridEditLongTextCellProps extends GridRenderEditCellParams<any,
37
37
  };
38
38
  }
39
39
  declare function GridEditLongTextCell(props: GridEditLongTextCellProps): import("react/jsx-runtime").JSX.Element;
40
+ declare namespace GridEditLongTextCell {
41
+ var propTypes: any;
42
+ }
40
43
  export { GridEditLongTextCell };
41
44
  export declare const renderEditLongTextCell: (params: GridEditLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -37,5 +37,8 @@ export interface GridEditLongTextCellProps extends GridRenderEditCellParams<any,
37
37
  };
38
38
  }
39
39
  declare function GridEditLongTextCell(props: GridEditLongTextCellProps): import("react/jsx-runtime").JSX.Element;
40
+ declare namespace GridEditLongTextCell {
41
+ var propTypes: any;
42
+ }
40
43
  export { GridEditLongTextCell };
41
44
  export declare const renderEditLongTextCell: (params: GridEditLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,6 +10,7 @@ exports.GridEditLongTextCell = GridEditLongTextCell;
10
10
  exports.renderEditLongTextCell = void 0;
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
14
  var _clsx = _interopRequireDefault(require("clsx"));
14
15
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
16
  var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
@@ -171,6 +172,76 @@ function GridEditLongTextCell(props) {
171
172
  }))]
172
173
  }));
173
174
  }
175
+ process.env.NODE_ENV !== "production" ? GridEditLongTextCell.propTypes /* remove-proptypes */ = {
176
+ // ----------------------------- Warning --------------------------------
177
+ // | These PropTypes are generated from the TypeScript type definitions |
178
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
179
+ // ----------------------------------------------------------------------
180
+ /**
181
+ * GridApi that let you manipulate the grid.
182
+ */
183
+ api: _propTypes.default.object.isRequired,
184
+ /**
185
+ * The mode of the cell.
186
+ */
187
+ cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
188
+ changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
189
+ /**
190
+ * The column of the row that the current cell belongs to.
191
+ */
192
+ colDef: _propTypes.default.object.isRequired,
193
+ debounceMs: _propTypes.default.number,
194
+ /**
195
+ * The column field of the cell that triggered the event.
196
+ */
197
+ field: _propTypes.default.string.isRequired,
198
+ /**
199
+ * The cell value formatted with the column valueFormatter.
200
+ */
201
+ formattedValue: _propTypes.default.string,
202
+ /**
203
+ * If true, the cell is the active element.
204
+ */
205
+ hasFocus: _propTypes.default.bool.isRequired,
206
+ /**
207
+ * The grid row id.
208
+ */
209
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
210
+ /**
211
+ * If true, the cell is editable.
212
+ */
213
+ isEditable: _propTypes.default.bool,
214
+ isProcessingProps: _propTypes.default.bool,
215
+ isValidating: _propTypes.default.bool,
216
+ /**
217
+ * Callback called when the value is changed by the user.
218
+ * @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
219
+ * @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
220
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
221
+ */
222
+ onValueChange: _propTypes.default.func,
223
+ /**
224
+ * The row model of the row that the current cell belongs to.
225
+ */
226
+ row: _propTypes.default.any.isRequired,
227
+ /**
228
+ * The node of the row that the current cell belongs to.
229
+ */
230
+ rowNode: _propTypes.default.object.isRequired,
231
+ /**
232
+ * Props passed to internal components.
233
+ */
234
+ slotProps: _propTypes.default.object,
235
+ /**
236
+ * the tabIndex value.
237
+ */
238
+ tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
239
+ /**
240
+ * The cell value.
241
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
242
+ */
243
+ value: _propTypes.default.string
244
+ } : void 0;
174
245
  function GridEditLongTextarea(props) {
175
246
  const {
176
247
  id,
@@ -243,6 +314,76 @@ function GridEditLongTextarea(props) {
243
314
  className: (0, _clsx.default)(classes.textarea, slotProps?.textarea?.className)
244
315
  }));
245
316
  }
317
+ process.env.NODE_ENV !== "production" ? GridEditLongTextarea.propTypes /* remove-proptypes */ = {
318
+ // ----------------------------- Warning --------------------------------
319
+ // | These PropTypes are generated from the TypeScript type definitions |
320
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
321
+ // ----------------------------------------------------------------------
322
+ /**
323
+ * GridApi that let you manipulate the grid.
324
+ */
325
+ api: _propTypes.default.object.isRequired,
326
+ /**
327
+ * The mode of the cell.
328
+ */
329
+ cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
330
+ changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
331
+ /**
332
+ * The column of the row that the current cell belongs to.
333
+ */
334
+ colDef: _propTypes.default.object.isRequired,
335
+ debounceMs: _propTypes.default.number,
336
+ /**
337
+ * The column field of the cell that triggered the event.
338
+ */
339
+ field: _propTypes.default.string.isRequired,
340
+ /**
341
+ * The cell value formatted with the column valueFormatter.
342
+ */
343
+ formattedValue: _propTypes.default.string,
344
+ /**
345
+ * If true, the cell is the active element.
346
+ */
347
+ hasFocus: _propTypes.default.bool.isRequired,
348
+ /**
349
+ * The grid row id.
350
+ */
351
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
352
+ /**
353
+ * If true, the cell is editable.
354
+ */
355
+ isEditable: _propTypes.default.bool,
356
+ isProcessingProps: _propTypes.default.bool,
357
+ isValidating: _propTypes.default.bool,
358
+ /**
359
+ * Callback called when the value is changed by the user.
360
+ * @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
361
+ * @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
362
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
363
+ */
364
+ onValueChange: _propTypes.default.func,
365
+ /**
366
+ * The row model of the row that the current cell belongs to.
367
+ */
368
+ row: _propTypes.default.any.isRequired,
369
+ /**
370
+ * The node of the row that the current cell belongs to.
371
+ */
372
+ rowNode: _propTypes.default.object.isRequired,
373
+ /**
374
+ * Props passed to internal components.
375
+ */
376
+ slotProps: _propTypes.default.object,
377
+ /**
378
+ * the tabIndex value.
379
+ */
380
+ tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
381
+ /**
382
+ * The cell value.
383
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
384
+ */
385
+ value: _propTypes.default.string
386
+ } : void 0;
246
387
  const renderEditLongTextCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCell, (0, _extends2.default)({}, params));
247
388
  exports.renderEditLongTextCell = renderEditLongTextCell;
248
389
  if (process.env.NODE_ENV !== "production") renderEditLongTextCell.displayName = "renderEditLongTextCell";
@@ -2,6 +2,7 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
+ import PropTypes from 'prop-types';
5
6
  import clsx from 'clsx';
6
7
  import composeClasses from '@mui/utils/composeClasses';
7
8
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
@@ -163,6 +164,76 @@ function GridEditLongTextCell(props) {
163
164
  }))]
164
165
  }));
165
166
  }
167
+ process.env.NODE_ENV !== "production" ? GridEditLongTextCell.propTypes /* remove-proptypes */ = {
168
+ // ----------------------------- Warning --------------------------------
169
+ // | These PropTypes are generated from the TypeScript type definitions |
170
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
171
+ // ----------------------------------------------------------------------
172
+ /**
173
+ * GridApi that let you manipulate the grid.
174
+ */
175
+ api: PropTypes.object.isRequired,
176
+ /**
177
+ * The mode of the cell.
178
+ */
179
+ cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
180
+ changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
181
+ /**
182
+ * The column of the row that the current cell belongs to.
183
+ */
184
+ colDef: PropTypes.object.isRequired,
185
+ debounceMs: PropTypes.number,
186
+ /**
187
+ * The column field of the cell that triggered the event.
188
+ */
189
+ field: PropTypes.string.isRequired,
190
+ /**
191
+ * The cell value formatted with the column valueFormatter.
192
+ */
193
+ formattedValue: PropTypes.string,
194
+ /**
195
+ * If true, the cell is the active element.
196
+ */
197
+ hasFocus: PropTypes.bool.isRequired,
198
+ /**
199
+ * The grid row id.
200
+ */
201
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
202
+ /**
203
+ * If true, the cell is editable.
204
+ */
205
+ isEditable: PropTypes.bool,
206
+ isProcessingProps: PropTypes.bool,
207
+ isValidating: PropTypes.bool,
208
+ /**
209
+ * Callback called when the value is changed by the user.
210
+ * @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
211
+ * @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
212
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
213
+ */
214
+ onValueChange: PropTypes.func,
215
+ /**
216
+ * The row model of the row that the current cell belongs to.
217
+ */
218
+ row: PropTypes.any.isRequired,
219
+ /**
220
+ * The node of the row that the current cell belongs to.
221
+ */
222
+ rowNode: PropTypes.object.isRequired,
223
+ /**
224
+ * Props passed to internal components.
225
+ */
226
+ slotProps: PropTypes.object,
227
+ /**
228
+ * the tabIndex value.
229
+ */
230
+ tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
231
+ /**
232
+ * The cell value.
233
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
234
+ */
235
+ value: PropTypes.string
236
+ } : void 0;
166
237
  function GridEditLongTextarea(props) {
167
238
  const {
168
239
  id,
@@ -235,6 +306,76 @@ function GridEditLongTextarea(props) {
235
306
  className: clsx(classes.textarea, slotProps?.textarea?.className)
236
307
  }));
237
308
  }
309
+ process.env.NODE_ENV !== "production" ? GridEditLongTextarea.propTypes /* remove-proptypes */ = {
310
+ // ----------------------------- Warning --------------------------------
311
+ // | These PropTypes are generated from the TypeScript type definitions |
312
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
313
+ // ----------------------------------------------------------------------
314
+ /**
315
+ * GridApi that let you manipulate the grid.
316
+ */
317
+ api: PropTypes.object.isRequired,
318
+ /**
319
+ * The mode of the cell.
320
+ */
321
+ cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
322
+ changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
323
+ /**
324
+ * The column of the row that the current cell belongs to.
325
+ */
326
+ colDef: PropTypes.object.isRequired,
327
+ debounceMs: PropTypes.number,
328
+ /**
329
+ * The column field of the cell that triggered the event.
330
+ */
331
+ field: PropTypes.string.isRequired,
332
+ /**
333
+ * The cell value formatted with the column valueFormatter.
334
+ */
335
+ formattedValue: PropTypes.string,
336
+ /**
337
+ * If true, the cell is the active element.
338
+ */
339
+ hasFocus: PropTypes.bool.isRequired,
340
+ /**
341
+ * The grid row id.
342
+ */
343
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
344
+ /**
345
+ * If true, the cell is editable.
346
+ */
347
+ isEditable: PropTypes.bool,
348
+ isProcessingProps: PropTypes.bool,
349
+ isValidating: PropTypes.bool,
350
+ /**
351
+ * Callback called when the value is changed by the user.
352
+ * @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
353
+ * @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
354
+ * @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
355
+ */
356
+ onValueChange: PropTypes.func,
357
+ /**
358
+ * The row model of the row that the current cell belongs to.
359
+ */
360
+ row: PropTypes.any.isRequired,
361
+ /**
362
+ * The node of the row that the current cell belongs to.
363
+ */
364
+ rowNode: PropTypes.object.isRequired,
365
+ /**
366
+ * Props passed to internal components.
367
+ */
368
+ slotProps: PropTypes.object,
369
+ /**
370
+ * the tabIndex value.
371
+ */
372
+ tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
373
+ /**
374
+ * The cell value.
375
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
376
+ */
377
+ value: PropTypes.string
378
+ } : void 0;
238
379
  export { GridEditLongTextCell };
239
380
  export const renderEditLongTextCell = params => /*#__PURE__*/_jsx(GridEditLongTextCell, _extends({}, params));
240
381
  if (process.env.NODE_ENV !== "production") renderEditLongTextCell.displayName = "renderEditLongTextCell";
@@ -126,7 +126,7 @@ function GridEditSingleSelectCell(props) {
126
126
  })
127
127
  }));
128
128
  }
129
- process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes = {
129
+ process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes /* remove-proptypes */ = {
130
130
  // ----------------------------- Warning --------------------------------
131
131
  // | These PropTypes are generated from the TypeScript type definitions |
132
132
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -118,7 +118,7 @@ function GridEditSingleSelectCell(props) {
118
118
  })
119
119
  }));
120
120
  }
121
- process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes = {
121
+ process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes /* remove-proptypes */ = {
122
122
  // ----------------------------- Warning --------------------------------
123
123
  // | These PropTypes are generated from the TypeScript type definitions |
124
124
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -39,5 +39,8 @@ export interface GridLongTextCellProps extends GridRenderCellParams<any, string
39
39
  };
40
40
  }
41
41
  declare function GridLongTextCell(props: GridLongTextCellProps): import("react/jsx-runtime").JSX.Element;
42
+ declare namespace GridLongTextCell {
43
+ var propTypes: any;
44
+ }
42
45
  export { GridLongTextCell };
43
46
  export declare const renderLongTextCell: (params: GridLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -39,5 +39,8 @@ export interface GridLongTextCellProps extends GridRenderCellParams<any, string
39
39
  };
40
40
  }
41
41
  declare function GridLongTextCell(props: GridLongTextCellProps): import("react/jsx-runtime").JSX.Element;
42
+ declare namespace GridLongTextCell {
43
+ var propTypes: any;
44
+ }
42
45
  export { GridLongTextCell };
43
46
  export declare const renderLongTextCell: (params: GridLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,6 +10,7 @@ exports.GridLongTextCell = GridLongTextCell;
10
10
  exports.renderLongTextCell = void 0;
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
14
  var _clsx = _interopRequireDefault(require("clsx"));
14
15
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
15
16
  var _styles = require("@mui/material/styles");
@@ -251,6 +252,71 @@ function GridLongTextCell(props) {
251
252
  }))]
252
253
  }));
253
254
  }
255
+ process.env.NODE_ENV !== "production" ? GridLongTextCell.propTypes /* remove-proptypes */ = {
256
+ // ----------------------------- Warning --------------------------------
257
+ // | These PropTypes are generated from the TypeScript type definitions |
258
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
259
+ // ----------------------------------------------------------------------
260
+ /**
261
+ * GridApi that let you manipulate the grid.
262
+ */
263
+ api: _propTypes.default.object.isRequired,
264
+ /**
265
+ * The mode of the cell.
266
+ */
267
+ cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
268
+ /**
269
+ * The column of the row that the current cell belongs to.
270
+ */
271
+ colDef: _propTypes.default.object.isRequired,
272
+ /**
273
+ * The column field of the cell that triggered the event.
274
+ */
275
+ field: _propTypes.default.string.isRequired,
276
+ /**
277
+ * The cell value formatted with the column valueFormatter.
278
+ */
279
+ formattedValue: _propTypes.default.string,
280
+ /**
281
+ * If true, the cell is the active element.
282
+ */
283
+ hasFocus: _propTypes.default.bool.isRequired,
284
+ /**
285
+ * The grid row id.
286
+ */
287
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
288
+ /**
289
+ * If true, the cell is editable.
290
+ */
291
+ isEditable: _propTypes.default.bool,
292
+ /**
293
+ * A function to customize the content rendered in the popup.
294
+ * @param {string | null} value The cell value.
295
+ * @returns {React.ReactNode} The content to render in the popup.
296
+ */
297
+ renderContent: _propTypes.default.func,
298
+ /**
299
+ * The row model of the row that the current cell belongs to.
300
+ */
301
+ row: _propTypes.default.any.isRequired,
302
+ /**
303
+ * The node of the row that the current cell belongs to.
304
+ */
305
+ rowNode: _propTypes.default.object.isRequired,
306
+ /**
307
+ * Props passed to internal components.
308
+ */
309
+ slotProps: _propTypes.default.object,
310
+ /**
311
+ * the tabIndex value.
312
+ */
313
+ tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
314
+ /**
315
+ * The cell value.
316
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
317
+ */
318
+ value: _propTypes.default.string
319
+ } : void 0;
254
320
  const renderLongTextCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridLongTextCell, (0, _extends2.default)({}, params));
255
321
  exports.renderLongTextCell = renderLongTextCell;
256
322
  if (process.env.NODE_ENV !== "production") renderLongTextCell.displayName = "renderLongTextCell";
@@ -2,6 +2,7 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
+ import PropTypes from 'prop-types';
5
6
  import clsx from 'clsx';
6
7
  import composeClasses from '@mui/utils/composeClasses';
7
8
  import { styled } from '@mui/material/styles';
@@ -243,6 +244,71 @@ function GridLongTextCell(props) {
243
244
  }))]
244
245
  }));
245
246
  }
247
+ process.env.NODE_ENV !== "production" ? GridLongTextCell.propTypes /* remove-proptypes */ = {
248
+ // ----------------------------- Warning --------------------------------
249
+ // | These PropTypes are generated from the TypeScript type definitions |
250
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
251
+ // ----------------------------------------------------------------------
252
+ /**
253
+ * GridApi that let you manipulate the grid.
254
+ */
255
+ api: PropTypes.object.isRequired,
256
+ /**
257
+ * The mode of the cell.
258
+ */
259
+ cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
260
+ /**
261
+ * The column of the row that the current cell belongs to.
262
+ */
263
+ colDef: PropTypes.object.isRequired,
264
+ /**
265
+ * The column field of the cell that triggered the event.
266
+ */
267
+ field: PropTypes.string.isRequired,
268
+ /**
269
+ * The cell value formatted with the column valueFormatter.
270
+ */
271
+ formattedValue: PropTypes.string,
272
+ /**
273
+ * If true, the cell is the active element.
274
+ */
275
+ hasFocus: PropTypes.bool.isRequired,
276
+ /**
277
+ * The grid row id.
278
+ */
279
+ id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
280
+ /**
281
+ * If true, the cell is editable.
282
+ */
283
+ isEditable: PropTypes.bool,
284
+ /**
285
+ * A function to customize the content rendered in the popup.
286
+ * @param {string | null} value The cell value.
287
+ * @returns {React.ReactNode} The content to render in the popup.
288
+ */
289
+ renderContent: PropTypes.func,
290
+ /**
291
+ * The row model of the row that the current cell belongs to.
292
+ */
293
+ row: PropTypes.any.isRequired,
294
+ /**
295
+ * The node of the row that the current cell belongs to.
296
+ */
297
+ rowNode: PropTypes.object.isRequired,
298
+ /**
299
+ * Props passed to internal components.
300
+ */
301
+ slotProps: PropTypes.object,
302
+ /**
303
+ * the tabIndex value.
304
+ */
305
+ tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
306
+ /**
307
+ * The cell value.
308
+ * If the column has `valueGetter`, use `params.row` to directly access the fields.
309
+ */
310
+ value: PropTypes.string
311
+ } : void 0;
246
312
  export { GridLongTextCell };
247
313
  export const renderLongTextCell = params => /*#__PURE__*/_jsx(GridLongTextCell, _extends({}, params));
248
314
  if (process.env.NODE_ENV !== "production") renderLongTextCell.displayName = "renderLongTextCell";
@@ -98,7 +98,7 @@ function GridSkeletonCell(props) {
98
98
  children: !empty && /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseSkeleton, (0, _extends2.default)({}, skeletonProps))
99
99
  }));
100
100
  }
101
- process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
101
+ process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes /* remove-proptypes */ = {
102
102
  // ----------------------------- Warning --------------------------------
103
103
  // | These PropTypes are generated from the TypeScript type definitions |
104
104
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -111,7 +111,8 @@ process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
111
111
  empty: _propTypes.default.bool,
112
112
  field: _propTypes.default.string,
113
113
  height: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.number]),
114
- type: _propTypes.default.oneOf(['actions', 'boolean', 'custom', 'date', 'dateTime', 'number', 'singleSelect', 'string']),
114
+ skeletonProps: _propTypes.default.object,
115
+ type: _propTypes.default.oneOf(['actions', 'boolean', 'custom', 'date', 'dateTime', 'longText', 'multiSelect', 'number', 'singleSelect', 'string']),
115
116
  width: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
116
117
  } : void 0;
117
118
  const Memoized = exports.GridSkeletonCell = (0, _fastMemo.fastMemo)(GridSkeletonCell);
@@ -90,7 +90,7 @@ function GridSkeletonCell(props) {
90
90
  children: !empty && /*#__PURE__*/_jsx(rootProps.slots.baseSkeleton, _extends({}, skeletonProps))
91
91
  }));
92
92
  }
93
- process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
93
+ process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes /* remove-proptypes */ = {
94
94
  // ----------------------------- Warning --------------------------------
95
95
  // | These PropTypes are generated from the TypeScript type definitions |
96
96
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -103,7 +103,8 @@ process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
103
103
  empty: PropTypes.bool,
104
104
  field: PropTypes.string,
105
105
  height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
106
- type: PropTypes.oneOf(['actions', 'boolean', 'custom', 'date', 'dateTime', 'number', 'singleSelect', 'string']),
106
+ skeletonProps: PropTypes.object,
107
+ type: PropTypes.oneOf(['actions', 'boolean', 'custom', 'date', 'dateTime', 'longText', 'multiSelect', 'number', 'singleSelect', 'string']),
107
108
  width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
108
109
  } : void 0;
109
110
  const Memoized = fastMemo(GridSkeletonCell);