@mui/x-data-grid 7.5.0 → 7.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 (231) hide show
  1. package/CHANGELOG.md +148 -5418
  2. package/DataGrid/DataGrid.js +2 -2
  3. package/components/GridColumnHeaders.js +1 -1
  4. package/components/GridFooter.js +1 -1
  5. package/components/GridLoadingOverlay.js +1 -1
  6. package/components/GridNoRowsOverlay.js +1 -1
  7. package/components/GridPagination.js +1 -1
  8. package/components/GridRow.js +1 -1
  9. package/components/GridRowCount.js +1 -1
  10. package/components/GridScrollArea.d.ts +2 -5
  11. package/components/GridScrollArea.js +1 -10
  12. package/components/GridSelectedRowCount.js +1 -1
  13. package/components/base/GridOverlays.js +1 -1
  14. package/components/cell/GridActionsCell.js +1 -1
  15. package/components/cell/GridActionsCellItem.js +1 -1
  16. package/components/cell/GridBooleanCell.js +1 -1
  17. package/components/cell/GridCell.js +2 -2
  18. package/components/cell/GridEditBooleanCell.js +1 -1
  19. package/components/cell/GridEditDateCell.js +1 -1
  20. package/components/cell/GridEditInputCell.js +1 -1
  21. package/components/cell/GridEditSingleSelectCell.js +1 -1
  22. package/components/cell/GridSkeletonCell.js +1 -1
  23. package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -1
  24. package/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  25. package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  26. package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  27. package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  28. package/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -7
  29. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  30. package/components/columnSelection/GridHeaderCheckbox.js +1 -1
  31. package/components/columnsManagement/GridColumnsManagement.js +1 -1
  32. package/components/containers/GridFooterContainer.js +1 -1
  33. package/components/containers/GridOverlay.js +1 -1
  34. package/components/containers/GridRoot.js +1 -1
  35. package/components/containers/GridToolbarContainer.js +1 -1
  36. package/components/menu/GridMenu.js +1 -1
  37. package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  38. package/components/menu/columnMenu/GridColumnMenu.js +1 -1
  39. package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  40. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  41. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  42. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  43. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  44. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  45. package/components/panel/GridColumnsPanel.js +1 -1
  46. package/components/panel/GridPanel.js +1 -1
  47. package/components/panel/GridPanelContent.js +1 -1
  48. package/components/panel/GridPanelFooter.js +1 -1
  49. package/components/panel/GridPanelHeader.js +1 -1
  50. package/components/panel/GridPanelWrapper.js +1 -1
  51. package/components/panel/filterPanel/GridFilterForm.js +1 -1
  52. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  53. package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  54. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  55. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  56. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  57. package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  58. package/components/panel/filterPanel/GridFilterPanel.js +1 -1
  59. package/components/toolbar/GridToolbar.js +1 -1
  60. package/components/toolbar/GridToolbarColumnsButton.js +1 -1
  61. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  62. package/components/toolbar/GridToolbarExport.js +1 -1
  63. package/components/toolbar/GridToolbarExportContainer.js +1 -1
  64. package/components/toolbar/GridToolbarFilterButton.js +1 -1
  65. package/components/toolbar/GridToolbarQuickFilter.js +1 -1
  66. package/hooks/features/clipboard/useGridClipboard.js +8 -5
  67. package/hooks/features/columnResize/useGridColumnResize.js +5 -26
  68. package/hooks/features/columns/gridColumnsUtils.js +18 -13
  69. package/hooks/features/columns/useGridColumnSpanning.js +5 -5
  70. package/hooks/features/export/serializers/csvSerializer.d.ts +3 -6
  71. package/hooks/features/export/serializers/csvSerializer.js +28 -32
  72. package/hooks/features/export/useGridCsvExport.js +8 -5
  73. package/hooks/features/virtualization/useGridVirtualScroller.js +8 -1
  74. package/index.d.ts +1 -0
  75. package/index.js +1 -2
  76. package/locales/faIR.js +4 -4
  77. package/locales/fiFI.js +4 -5
  78. package/models/api/gridColumnSpanning.d.ts +2 -0
  79. package/models/gridExport.d.ts +7 -0
  80. package/models/gridSlotsComponent.d.ts +1 -1
  81. package/models/props/DataGridProps.d.ts +1 -1
  82. package/modern/DataGrid/DataGrid.js +2 -2
  83. package/modern/components/GridColumnHeaders.js +1 -1
  84. package/modern/components/GridFooter.js +1 -1
  85. package/modern/components/GridLoadingOverlay.js +1 -1
  86. package/modern/components/GridNoRowsOverlay.js +1 -1
  87. package/modern/components/GridPagination.js +1 -1
  88. package/modern/components/GridRow.js +1 -1
  89. package/modern/components/GridRowCount.js +1 -1
  90. package/modern/components/GridScrollArea.js +1 -10
  91. package/modern/components/GridSelectedRowCount.js +1 -1
  92. package/modern/components/base/GridOverlays.js +1 -1
  93. package/modern/components/cell/GridActionsCell.js +1 -1
  94. package/modern/components/cell/GridActionsCellItem.js +1 -1
  95. package/modern/components/cell/GridBooleanCell.js +1 -1
  96. package/modern/components/cell/GridCell.js +2 -2
  97. package/modern/components/cell/GridEditBooleanCell.js +1 -1
  98. package/modern/components/cell/GridEditDateCell.js +1 -1
  99. package/modern/components/cell/GridEditInputCell.js +1 -1
  100. package/modern/components/cell/GridEditSingleSelectCell.js +1 -1
  101. package/modern/components/cell/GridSkeletonCell.js +1 -1
  102. package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -1
  103. package/modern/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  104. package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  105. package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  106. package/modern/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  107. package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -7
  108. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  109. package/modern/components/columnSelection/GridHeaderCheckbox.js +1 -1
  110. package/modern/components/columnsManagement/GridColumnsManagement.js +1 -1
  111. package/modern/components/containers/GridFooterContainer.js +1 -1
  112. package/modern/components/containers/GridOverlay.js +1 -1
  113. package/modern/components/containers/GridRoot.js +1 -1
  114. package/modern/components/containers/GridToolbarContainer.js +1 -1
  115. package/modern/components/menu/GridMenu.js +1 -1
  116. package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  117. package/modern/components/menu/columnMenu/GridColumnMenu.js +1 -1
  118. package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  119. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  120. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  121. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  122. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  123. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  124. package/modern/components/panel/GridColumnsPanel.js +1 -1
  125. package/modern/components/panel/GridPanel.js +1 -1
  126. package/modern/components/panel/GridPanelContent.js +1 -1
  127. package/modern/components/panel/GridPanelFooter.js +1 -1
  128. package/modern/components/panel/GridPanelHeader.js +1 -1
  129. package/modern/components/panel/GridPanelWrapper.js +1 -1
  130. package/modern/components/panel/filterPanel/GridFilterForm.js +1 -1
  131. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  132. package/modern/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  133. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  134. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  135. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  136. package/modern/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  137. package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -1
  138. package/modern/components/toolbar/GridToolbar.js +1 -1
  139. package/modern/components/toolbar/GridToolbarColumnsButton.js +1 -1
  140. package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
  141. package/modern/components/toolbar/GridToolbarExport.js +1 -1
  142. package/modern/components/toolbar/GridToolbarExportContainer.js +1 -1
  143. package/modern/components/toolbar/GridToolbarFilterButton.js +1 -1
  144. package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -1
  145. package/modern/hooks/features/clipboard/useGridClipboard.js +8 -5
  146. package/modern/hooks/features/columnResize/useGridColumnResize.js +5 -26
  147. package/modern/hooks/features/columns/gridColumnsUtils.js +18 -13
  148. package/modern/hooks/features/columns/useGridColumnSpanning.js +5 -5
  149. package/modern/hooks/features/export/serializers/csvSerializer.js +28 -32
  150. package/modern/hooks/features/export/useGridCsvExport.js +8 -5
  151. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +8 -1
  152. package/modern/index.js +1 -2
  153. package/modern/locales/faIR.js +4 -4
  154. package/modern/locales/fiFI.js +4 -5
  155. package/modern/utils/domUtils.js +1 -2
  156. package/node/DataGrid/DataGrid.js +2 -2
  157. package/node/components/GridColumnHeaders.js +1 -1
  158. package/node/components/GridFooter.js +1 -1
  159. package/node/components/GridLoadingOverlay.js +1 -1
  160. package/node/components/GridNoRowsOverlay.js +1 -1
  161. package/node/components/GridPagination.js +1 -1
  162. package/node/components/GridRow.js +1 -1
  163. package/node/components/GridRowCount.js +1 -1
  164. package/node/components/GridScrollArea.js +0 -8
  165. package/node/components/GridSelectedRowCount.js +1 -1
  166. package/node/components/base/GridOverlays.js +1 -1
  167. package/node/components/cell/GridActionsCell.js +1 -1
  168. package/node/components/cell/GridActionsCellItem.js +1 -1
  169. package/node/components/cell/GridBooleanCell.js +1 -1
  170. package/node/components/cell/GridCell.js +2 -2
  171. package/node/components/cell/GridEditBooleanCell.js +1 -1
  172. package/node/components/cell/GridEditDateCell.js +1 -1
  173. package/node/components/cell/GridEditInputCell.js +1 -1
  174. package/node/components/cell/GridEditSingleSelectCell.js +1 -1
  175. package/node/components/cell/GridSkeletonCell.js +1 -1
  176. package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -1
  177. package/node/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  178. package/node/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  179. package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  180. package/node/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  181. package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +0 -7
  182. package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  183. package/node/components/columnSelection/GridHeaderCheckbox.js +1 -1
  184. package/node/components/columnsManagement/GridColumnsManagement.js +1 -1
  185. package/node/components/containers/GridFooterContainer.js +1 -1
  186. package/node/components/containers/GridOverlay.js +1 -1
  187. package/node/components/containers/GridRoot.js +1 -1
  188. package/node/components/containers/GridToolbarContainer.js +1 -1
  189. package/node/components/menu/GridMenu.js +1 -1
  190. package/node/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  191. package/node/components/menu/columnMenu/GridColumnMenu.js +1 -1
  192. package/node/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  193. package/node/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  194. package/node/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  195. package/node/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  196. package/node/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  197. package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  198. package/node/components/panel/GridColumnsPanel.js +1 -1
  199. package/node/components/panel/GridPanel.js +1 -1
  200. package/node/components/panel/GridPanelContent.js +1 -1
  201. package/node/components/panel/GridPanelFooter.js +1 -1
  202. package/node/components/panel/GridPanelHeader.js +1 -1
  203. package/node/components/panel/GridPanelWrapper.js +1 -1
  204. package/node/components/panel/filterPanel/GridFilterForm.js +1 -1
  205. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  206. package/node/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  207. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  208. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  209. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  210. package/node/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  211. package/node/components/panel/filterPanel/GridFilterPanel.js +1 -1
  212. package/node/components/toolbar/GridToolbar.js +1 -1
  213. package/node/components/toolbar/GridToolbarColumnsButton.js +1 -1
  214. package/node/components/toolbar/GridToolbarDensitySelector.js +1 -1
  215. package/node/components/toolbar/GridToolbarExport.js +1 -1
  216. package/node/components/toolbar/GridToolbarExportContainer.js +1 -1
  217. package/node/components/toolbar/GridToolbarFilterButton.js +1 -1
  218. package/node/components/toolbar/GridToolbarQuickFilter.js +1 -1
  219. package/node/hooks/features/clipboard/useGridClipboard.js +8 -5
  220. package/node/hooks/features/columnResize/useGridColumnResize.js +5 -26
  221. package/node/hooks/features/columns/gridColumnsUtils.js +18 -13
  222. package/node/hooks/features/columns/useGridColumnSpanning.js +5 -5
  223. package/node/hooks/features/export/serializers/csvSerializer.js +28 -32
  224. package/node/hooks/features/export/useGridCsvExport.js +8 -5
  225. package/node/hooks/features/virtualization/useGridVirtualScroller.js +8 -1
  226. package/node/index.js +1 -1
  227. package/node/locales/faIR.js +4 -4
  228. package/node/locales/fiFI.js +4 -5
  229. package/node/utils/domUtils.js +1 -2
  230. package/package.json +4 -3
  231. package/utils/domUtils.js +1 -2
@@ -49,7 +49,7 @@ function GridBooleanCellRaw(props) {
49
49
  process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes = {
50
50
  // ----------------------------- Warning --------------------------------
51
51
  // | These PropTypes are generated from the TypeScript type definitions |
52
- // | To update them edit the TypeScript types and run "yarn proptypes" |
52
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
53
53
  // ----------------------------------------------------------------------
54
54
  /**
55
55
  * GridApi that let you manipulate the grid.
@@ -84,7 +84,7 @@ let warnedOnce = false;
84
84
 
85
85
  // TODO(v7): Removing the wrapper will break the docs performance visualization demo.
86
86
 
87
- const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
87
+ const GridCell = /*#__PURE__*/React.forwardRef(function GridCell(props, ref) {
88
88
  const {
89
89
  column,
90
90
  rowId,
@@ -325,7 +325,7 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
325
325
  process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
326
326
  // ----------------------------- Warning --------------------------------
327
327
  // | These PropTypes are generated from the TypeScript type definitions |
328
- // | To update them edit the TypeScript types and run "yarn proptypes" |
328
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
329
329
  // ----------------------------------------------------------------------
330
330
  align: _propTypes.default.oneOf(['center', 'left', 'right']).isRequired,
331
331
  className: _propTypes.default.string,
@@ -83,7 +83,7 @@ function GridEditBooleanCell(props) {
83
83
  process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes = {
84
84
  // ----------------------------- Warning --------------------------------
85
85
  // | These PropTypes are generated from the TypeScript type definitions |
86
- // | To update them edit the TypeScript types and run "yarn proptypes" |
86
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
87
87
  // ----------------------------------------------------------------------
88
88
  /**
89
89
  * GridApi that let you manipulate the grid.
@@ -132,7 +132,7 @@ function GridEditDateCell(props) {
132
132
  process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes = {
133
133
  // ----------------------------- Warning --------------------------------
134
134
  // | These PropTypes are generated from the TypeScript type definitions |
135
- // | To update them edit the TypeScript types and run "yarn proptypes" |
135
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
136
136
  // ----------------------------------------------------------------------
137
137
  /**
138
138
  * GridApi that let you manipulate the grid.
@@ -106,7 +106,7 @@ const GridEditInputCell = exports.GridEditInputCell = /*#__PURE__*/React.forward
106
106
  process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes = {
107
107
  // ----------------------------- Warning --------------------------------
108
108
  // | These PropTypes are generated from the TypeScript type definitions |
109
- // | To update them edit the TypeScript types and run "yarn proptypes" |
109
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
110
110
  // ----------------------------------------------------------------------
111
111
  /**
112
112
  * GridApi that let you manipulate the grid.
@@ -133,7 +133,7 @@ function GridEditSingleSelectCell(props) {
133
133
  process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes = {
134
134
  // ----------------------------- Warning --------------------------------
135
135
  // | These PropTypes are generated from the TypeScript type definitions |
136
- // | To update them edit the TypeScript types and run "yarn proptypes" |
136
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
137
137
  // ----------------------------------------------------------------------
138
138
  /**
139
139
  * GridApi that let you manipulate the grid.
@@ -61,7 +61,7 @@ function GridSkeletonCell(props) {
61
61
  process.env.NODE_ENV !== "production" ? GridSkeletonCell.propTypes = {
62
62
  // ----------------------------- Warning --------------------------------
63
63
  // | These PropTypes are generated from the TypeScript type definitions |
64
- // | To update them edit the TypeScript types and run "yarn proptypes" |
64
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
65
65
  // ----------------------------------------------------------------------
66
66
  align: _propTypes.default.string.isRequired,
67
67
  field: _propTypes.default.string.isRequired,
@@ -96,7 +96,7 @@ function GridColumnHeaderFilterIconButton(props) {
96
96
  process.env.NODE_ENV !== "production" ? GridColumnHeaderFilterIconButton.propTypes = {
97
97
  // ----------------------------- Warning --------------------------------
98
98
  // | These PropTypes are generated from the TypeScript type definitions |
99
- // | To update them edit the TypeScript types and run "yarn proptypes" |
99
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
100
100
  // ----------------------------------------------------------------------
101
101
  counter: _propTypes.default.number,
102
102
  field: _propTypes.default.string.isRequired,
@@ -205,7 +205,7 @@ function GridColumnHeaderItem(props) {
205
205
  process.env.NODE_ENV !== "production" ? GridColumnHeaderItem.propTypes = {
206
206
  // ----------------------------- Warning --------------------------------
207
207
  // | These PropTypes are generated from the TypeScript type definitions |
208
- // | To update them edit the TypeScript types and run "yarn proptypes" |
208
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
209
209
  // ----------------------------------------------------------------------
210
210
  colDef: _propTypes.default.object.isRequired,
211
211
  colIndex: _propTypes.default.number.isRequired,
@@ -71,7 +71,7 @@ const GridColumnHeaderSeparator = exports.GridColumnHeaderSeparator = /*#__PURE_
71
71
  process.env.NODE_ENV !== "production" ? GridColumnHeaderSeparatorRaw.propTypes = {
72
72
  // ----------------------------- Warning --------------------------------
73
73
  // | These PropTypes are generated from the TypeScript type definitions |
74
- // | To update them edit the TypeScript types and run "yarn proptypes" |
74
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
75
75
  // ----------------------------------------------------------------------
76
76
  height: _propTypes.default.number.isRequired,
77
77
  resizable: _propTypes.default.bool.isRequired,
@@ -80,7 +80,7 @@ const GridColumnHeaderSortIcon = exports.GridColumnHeaderSortIcon = /*#__PURE__*
80
80
  process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes = {
81
81
  // ----------------------------- Warning --------------------------------
82
82
  // | These PropTypes are generated from the TypeScript type definitions |
83
- // | To update them edit the TypeScript types and run "yarn proptypes" |
83
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
84
84
  // ----------------------------------------------------------------------
85
85
  direction: _propTypes.default.oneOf(['asc', 'desc']),
86
86
  disabled: _propTypes.default.bool,
@@ -83,7 +83,7 @@ function GridColumnHeaderTitle(props) {
83
83
  process.env.NODE_ENV !== "production" ? GridColumnHeaderTitle.propTypes = {
84
84
  // ----------------------------- Warning --------------------------------
85
85
  // | These PropTypes are generated from the TypeScript type definitions |
86
- // | To update them edit the TypeScript types and run "yarn proptypes" |
86
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
87
87
  // ----------------------------------------------------------------------
88
88
  columnWidth: _propTypes.default.number.isRequired,
89
89
  description: _propTypes.default.node,
@@ -21,7 +21,6 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
21
21
  const GridGenericColumnHeaderItem = exports.GridGenericColumnHeaderItem = /*#__PURE__*/React.forwardRef(function GridGenericColumnHeaderItem(props, ref) {
22
22
  const {
23
23
  classes,
24
- columnMenuOpen,
25
24
  colIndex,
26
25
  height,
27
26
  isResizing,
@@ -47,17 +46,11 @@ const GridGenericColumnHeaderItem = exports.GridGenericColumnHeaderItem = /*#__P
47
46
  const apiRef = (0, _useGridPrivateApiContext.useGridPrivateApiContext)();
48
47
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
49
48
  const headerCellRef = React.useRef(null);
50
- const [showColumnMenuIcon, setShowColumnMenuIcon] = React.useState(columnMenuOpen);
51
49
  const handleRef = (0, _utils.unstable_useForkRef)(headerCellRef, ref);
52
50
  let ariaSort = 'none';
53
51
  if (sortDirection != null) {
54
52
  ariaSort = sortDirection === 'asc' ? 'ascending' : 'descending';
55
53
  }
56
- React.useEffect(() => {
57
- if (!showColumnMenuIcon) {
58
- setShowColumnMenuIcon(columnMenuOpen);
59
- }
60
- }, [showColumnMenuIcon, columnMenuOpen]);
61
54
  React.useLayoutEffect(() => {
62
55
  const columnMenuState = apiRef.current.state.columnMenu;
63
56
  if (hasFocus && !columnMenuState.open) {
@@ -100,7 +100,7 @@ const GridCellCheckboxForwardRef = exports.GridCellCheckboxForwardRef = /*#__PUR
100
100
  process.env.NODE_ENV !== "production" ? GridCellCheckboxForwardRef.propTypes = {
101
101
  // ----------------------------- Warning --------------------------------
102
102
  // | These PropTypes are generated from the TypeScript type definitions |
103
- // | To update them edit the TypeScript types and run "yarn proptypes" |
103
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
104
104
  // ----------------------------------------------------------------------
105
105
  /**
106
106
  * GridApi that let you manipulate the grid.
@@ -119,7 +119,7 @@ const GridHeaderCheckbox = exports.GridHeaderCheckbox = /*#__PURE__*/React.forwa
119
119
  process.env.NODE_ENV !== "production" ? GridHeaderCheckbox.propTypes = {
120
120
  // ----------------------------- Warning --------------------------------
121
121
  // | These PropTypes are generated from the TypeScript type definitions |
122
- // | To update them edit the TypeScript types and run "yarn proptypes" |
122
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
123
123
  // ----------------------------------------------------------------------
124
124
  /**
125
125
  * The column of the current header component.
@@ -188,7 +188,7 @@ function GridColumnsManagement(props) {
188
188
  process.env.NODE_ENV !== "production" ? GridColumnsManagement.propTypes = {
189
189
  // ----------------------------- Warning --------------------------------
190
190
  // | These PropTypes are generated from the TypeScript type definitions |
191
- // | To update them edit the TypeScript types and run "yarn proptypes" |
191
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
192
192
  // ----------------------------------------------------------------------
193
193
  /**
194
194
  * If `true`, the column search field will be focused automatically.
@@ -54,7 +54,7 @@ const GridFooterContainer = exports.GridFooterContainer = /*#__PURE__*/React.for
54
54
  process.env.NODE_ENV !== "production" ? GridFooterContainer.propTypes = {
55
55
  // ----------------------------- Warning --------------------------------
56
56
  // | These PropTypes are generated from the TypeScript type definitions |
57
- // | To update them edit the TypeScript types and run "yarn proptypes" |
57
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
58
58
  // ----------------------------------------------------------------------
59
59
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
60
60
  } : void 0;
@@ -56,7 +56,7 @@ const GridOverlay = exports.GridOverlay = /*#__PURE__*/React.forwardRef(function
56
56
  process.env.NODE_ENV !== "production" ? GridOverlay.propTypes = {
57
57
  // ----------------------------- Warning --------------------------------
58
58
  // | These PropTypes are generated from the TypeScript type definitions |
59
- // | To update them edit the TypeScript types and run "yarn proptypes" |
59
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
60
60
  // ----------------------------------------------------------------------
61
61
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
62
62
  } : void 0;
@@ -77,7 +77,7 @@ const GridRoot = exports.GridRoot = /*#__PURE__*/React.forwardRef(function GridR
77
77
  process.env.NODE_ENV !== "production" ? GridRoot.propTypes = {
78
78
  // ----------------------------- Warning --------------------------------
79
79
  // | These PropTypes are generated from the TypeScript type definitions |
80
- // | To update them edit the TypeScript types and run "yarn proptypes" |
80
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
81
81
  // ----------------------------------------------------------------------
82
82
  /**
83
83
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -62,7 +62,7 @@ const GridToolbarContainer = exports.GridToolbarContainer = /*#__PURE__*/React.f
62
62
  process.env.NODE_ENV !== "production" ? GridToolbarContainer.propTypes = {
63
63
  // ----------------------------- Warning --------------------------------
64
64
  // | These PropTypes are generated from the TypeScript type definitions |
65
- // | To update them edit the TypeScript types and run "yarn proptypes" |
65
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
66
66
  // ----------------------------------------------------------------------
67
67
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
68
68
  } : void 0;
@@ -122,7 +122,7 @@ function GridMenu(props) {
122
122
  process.env.NODE_ENV !== "production" ? GridMenu.propTypes = {
123
123
  // ----------------------------- Warning --------------------------------
124
124
  // | These PropTypes are generated from the TypeScript type definitions |
125
- // | To update them edit the TypeScript types and run "yarn proptypes" |
125
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
126
126
  // ----------------------------------------------------------------------
127
127
  children: _propTypes.default.node,
128
128
  onClose: _propTypes.default.func.isRequired,
@@ -57,7 +57,7 @@ function GridColumnHeaderMenu({
57
57
  process.env.NODE_ENV !== "production" ? GridColumnHeaderMenu.propTypes = {
58
58
  // ----------------------------- Warning --------------------------------
59
59
  // | These PropTypes are generated from the TypeScript type definitions |
60
- // | To update them edit the TypeScript types and run "yarn proptypes" |
60
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
61
61
  // ----------------------------------------------------------------------
62
62
  columnMenuButtonId: _propTypes.default.string,
63
63
  columnMenuId: _propTypes.default.string,
@@ -64,7 +64,7 @@ const GridColumnMenu = exports.GridColumnMenu = /*#__PURE__*/React.forwardRef(fu
64
64
  process.env.NODE_ENV !== "production" ? GridColumnMenu.propTypes = {
65
65
  // ----------------------------- Warning --------------------------------
66
66
  // | These PropTypes are generated from the TypeScript type definitions |
67
- // | To update them edit the TypeScript types and run "yarn proptypes" |
67
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
68
68
  // ----------------------------------------------------------------------
69
69
  colDef: _propTypes.default.object.isRequired,
70
70
  hideMenu: _propTypes.default.func.isRequired,
@@ -53,7 +53,7 @@ const GridColumnMenuContainer = exports.GridColumnMenuContainer = /*#__PURE__*/R
53
53
  process.env.NODE_ENV !== "production" ? GridColumnMenuContainer.propTypes = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
- // | To update them edit the TypeScript types and run "yarn proptypes" |
56
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
57
57
  // ----------------------------------------------------------------------
58
58
  colDef: _propTypes.default.object.isRequired,
59
59
  hideMenu: _propTypes.default.func.isRequired,
@@ -21,7 +21,7 @@ function GridColumnMenuColumnsItem(props) {
21
21
  process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes = {
22
22
  // ----------------------------- Warning --------------------------------
23
23
  // | These PropTypes are generated from the TypeScript type definitions |
24
- // | To update them edit the TypeScript types and run "yarn proptypes" |
24
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
25
25
  // ----------------------------------------------------------------------
26
26
  colDef: _propTypes.default.object.isRequired,
27
27
  onClick: _propTypes.default.func.isRequired
@@ -43,7 +43,7 @@ function GridColumnMenuFilterItem(props) {
43
43
  process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes = {
44
44
  // ----------------------------- Warning --------------------------------
45
45
  // | These PropTypes are generated from the TypeScript type definitions |
46
- // | To update them edit the TypeScript types and run "yarn proptypes" |
46
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
47
47
  // ----------------------------------------------------------------------
48
48
  colDef: _propTypes.default.object.isRequired,
49
49
  onClick: _propTypes.default.func.isRequired
@@ -60,7 +60,7 @@ function GridColumnMenuHideItem(props) {
60
60
  process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes = {
61
61
  // ----------------------------- Warning --------------------------------
62
62
  // | These PropTypes are generated from the TypeScript type definitions |
63
- // | To update them edit the TypeScript types and run "yarn proptypes" |
63
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
64
64
  // ----------------------------------------------------------------------
65
65
  colDef: _propTypes.default.object.isRequired,
66
66
  onClick: _propTypes.default.func.isRequired
@@ -43,7 +43,7 @@ function GridColumnMenuManageItem(props) {
43
43
  process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes = {
44
44
  // ----------------------------- Warning --------------------------------
45
45
  // | These PropTypes are generated from the TypeScript type definitions |
46
- // | To update them edit the TypeScript types and run "yarn proptypes" |
46
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
47
47
  // ----------------------------------------------------------------------
48
48
  colDef: _propTypes.default.object.isRequired,
49
49
  onClick: _propTypes.default.func.isRequired
@@ -77,7 +77,7 @@ function GridColumnMenuSortItem(props) {
77
77
  process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes = {
78
78
  // ----------------------------- Warning --------------------------------
79
79
  // | These PropTypes are generated from the TypeScript type definitions |
80
- // | To update them edit the TypeScript types and run "yarn proptypes" |
80
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
81
81
  // ----------------------------------------------------------------------
82
82
  colDef: _propTypes.default.object.isRequired,
83
83
  onClick: _propTypes.default.func.isRequired
@@ -23,7 +23,7 @@ function GridColumnsPanel(props) {
23
23
  process.env.NODE_ENV !== "production" ? GridColumnsPanel.propTypes = {
24
24
  // ----------------------------- Warning --------------------------------
25
25
  // | These PropTypes are generated from the TypeScript type definitions |
26
- // | To update them edit the TypeScript types and run "yarn proptypes" |
26
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
27
27
  // ----------------------------------------------------------------------
28
28
  slotProps: _propTypes.default.object
29
29
  } : void 0;
@@ -112,7 +112,7 @@ const GridPanel = exports.GridPanel = /*#__PURE__*/React.forwardRef((props, ref)
112
112
  process.env.NODE_ENV !== "production" ? GridPanel.propTypes = {
113
113
  // ----------------------------- Warning --------------------------------
114
114
  // | These PropTypes are generated from the TypeScript type definitions |
115
- // | To update them edit the TypeScript types and run "yarn proptypes" |
115
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
116
116
  // ----------------------------------------------------------------------
117
117
  /**
118
118
  * Popper render function or node.
@@ -53,7 +53,7 @@ function GridPanelContent(props) {
53
53
  process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
- // | To update them edit the TypeScript types and run "yarn proptypes" |
56
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
57
57
  // ----------------------------------------------------------------------
58
58
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
59
59
  } : void 0;
@@ -53,7 +53,7 @@ function GridPanelFooter(props) {
53
53
  process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
- // | To update them edit the TypeScript types and run "yarn proptypes" |
56
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
57
57
  // ----------------------------------------------------------------------
58
58
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
59
59
  } : void 0;
@@ -51,7 +51,7 @@ function GridPanelHeader(props) {
51
51
  process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes = {
52
52
  // ----------------------------- Warning --------------------------------
53
53
  // | These PropTypes are generated from the TypeScript type definitions |
54
- // | To update them edit the TypeScript types and run "yarn proptypes" |
54
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
55
55
  // ----------------------------------------------------------------------
56
56
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
57
57
  } : void 0;
@@ -65,7 +65,7 @@ const GridPanelWrapper = exports.GridPanelWrapper = /*#__PURE__*/React.forwardRe
65
65
  process.env.NODE_ENV !== "production" ? GridPanelWrapper.propTypes = {
66
66
  // ----------------------------- Warning --------------------------------
67
67
  // | These PropTypes are generated from the TypeScript type definitions |
68
- // | To update them edit the TypeScript types and run "yarn proptypes" |
68
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
69
69
  // ----------------------------------------------------------------------
70
70
  slotProps: _propTypes.default.object
71
71
  } : void 0;
@@ -392,7 +392,7 @@ const GridFilterForm = exports.GridFilterForm = /*#__PURE__*/React.forwardRef(fu
392
392
  process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes = {
393
393
  // ----------------------------- Warning --------------------------------
394
394
  // | These PropTypes are generated from the TypeScript type definitions |
395
- // | To update them edit the TypeScript types and run "yarn proptypes" |
395
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
396
396
  // ----------------------------------------------------------------------
397
397
  /**
398
398
  * Callback called when the operator, column field or value is changed.
@@ -97,7 +97,7 @@ function GridFilterInputBoolean(props) {
97
97
  process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes = {
98
98
  // ----------------------------- Warning --------------------------------
99
99
  // | These PropTypes are generated from the TypeScript type definitions |
100
- // | To update them edit the TypeScript types and run "yarn proptypes" |
100
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
101
101
  // ----------------------------------------------------------------------
102
102
  apiRef: _propTypes.default.shape({
103
103
  current: _propTypes.default.object.isRequired
@@ -102,7 +102,7 @@ function GridFilterInputDate(props) {
102
102
  process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
103
103
  // ----------------------------- Warning --------------------------------
104
104
  // | These PropTypes are generated from the TypeScript type definitions |
105
- // | To update them edit the TypeScript types and run "yarn proptypes" |
105
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
106
106
  // ----------------------------------------------------------------------
107
107
  apiRef: _propTypes.default.shape({
108
108
  current: _propTypes.default.object.isRequired
@@ -103,7 +103,7 @@ function GridFilterInputMultipleSingleSelect(props) {
103
103
  process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes = {
104
104
  // ----------------------------- Warning --------------------------------
105
105
  // | These PropTypes are generated from the TypeScript type definitions |
106
- // | To update them edit the TypeScript types and run "yarn proptypes" |
106
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
107
107
  // ----------------------------------------------------------------------
108
108
  apiRef: _propTypes.default.shape({
109
109
  current: _propTypes.default.object.isRequired
@@ -84,7 +84,7 @@ function GridFilterInputMultipleValue(props) {
84
84
  process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes = {
85
85
  // ----------------------------- Warning --------------------------------
86
86
  // | These PropTypes are generated from the TypeScript type definitions |
87
- // | To update them edit the TypeScript types and run "yarn proptypes" |
87
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
88
88
  // ----------------------------------------------------------------------
89
89
  apiRef: _propTypes.default.shape({
90
90
  current: _propTypes.default.object.isRequired
@@ -132,7 +132,7 @@ function GridFilterInputSingleSelect(props) {
132
132
  process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes = {
133
133
  // ----------------------------- Warning --------------------------------
134
134
  // | These PropTypes are generated from the TypeScript type definitions |
135
- // | To update them edit the TypeScript types and run "yarn proptypes" |
135
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
136
136
  // ----------------------------------------------------------------------
137
137
  apiRef: _propTypes.default.shape({
138
138
  current: _propTypes.default.object.isRequired
@@ -85,7 +85,7 @@ function GridFilterInputValue(props) {
85
85
  process.env.NODE_ENV !== "production" ? GridFilterInputValue.propTypes = {
86
86
  // ----------------------------- Warning --------------------------------
87
87
  // | These PropTypes are generated from the TypeScript type definitions |
88
- // | To update them edit the TypeScript types and run "yarn proptypes" |
88
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
89
89
  // ----------------------------------------------------------------------
90
90
  apiRef: _propTypes.default.shape({
91
91
  current: _propTypes.default.object.isRequired
@@ -197,7 +197,7 @@ const GridFilterPanel = exports.GridFilterPanel = /*#__PURE__*/React.forwardRef(
197
197
  process.env.NODE_ENV !== "production" ? GridFilterPanel.propTypes = {
198
198
  // ----------------------------- Warning --------------------------------
199
199
  // | These PropTypes are generated from the TypeScript type definitions |
200
- // | To update them edit the TypeScript types and run "yarn proptypes" |
200
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
201
201
  // ----------------------------------------------------------------------
202
202
  /**
203
203
  * @ignore - do not document.
@@ -55,7 +55,7 @@ const GridToolbar = exports.GridToolbar = /*#__PURE__*/React.forwardRef(function
55
55
  process.env.NODE_ENV !== "production" ? GridToolbar.propTypes = {
56
56
  // ----------------------------- Warning --------------------------------
57
57
  // | These PropTypes are generated from the TypeScript type definitions |
58
- // | To update them edit the TypeScript types and run "yarn proptypes" |
58
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
59
59
  // ----------------------------------------------------------------------
60
60
  /**
61
61
  * Props passed to the quick filter component.
@@ -65,7 +65,7 @@ const GridToolbarColumnsButton = exports.GridToolbarColumnsButton = /*#__PURE__*
65
65
  process.env.NODE_ENV !== "production" ? GridToolbarColumnsButton.propTypes = {
66
66
  // ----------------------------- Warning --------------------------------
67
67
  // | These PropTypes are generated from the TypeScript type definitions |
68
- // | To update them edit the TypeScript types and run "yarn proptypes" |
68
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
69
69
  // ----------------------------------------------------------------------
70
70
  /**
71
71
  * The props used for each slot inside.
@@ -128,7 +128,7 @@ const GridToolbarDensitySelector = exports.GridToolbarDensitySelector = /*#__PUR
128
128
  process.env.NODE_ENV !== "production" ? GridToolbarDensitySelector.propTypes = {
129
129
  // ----------------------------- Warning --------------------------------
130
130
  // | These PropTypes are generated from the TypeScript type definitions |
131
- // | To update them edit the TypeScript types and run "yarn proptypes" |
131
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
132
132
  // ----------------------------------------------------------------------
133
133
  /**
134
134
  * The props used for each slot inside.
@@ -78,7 +78,7 @@ const GridToolbarExport = exports.GridToolbarExport = /*#__PURE__*/React.forward
78
78
  process.env.NODE_ENV !== "production" ? GridToolbarExport.propTypes = {
79
79
  // ----------------------------- Warning --------------------------------
80
80
  // | These PropTypes are generated from the TypeScript type definitions |
81
- // | To update them edit the TypeScript types and run "yarn proptypes" |
81
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
82
82
  // ----------------------------------------------------------------------
83
83
  csvOptions: _propTypes.default.object,
84
84
  printOptions: _propTypes.default.object,
@@ -93,7 +93,7 @@ const GridToolbarExportContainer = exports.GridToolbarExportContainer = /*#__PUR
93
93
  process.env.NODE_ENV !== "production" ? GridToolbarExportContainer.propTypes = {
94
94
  // ----------------------------- Warning --------------------------------
95
95
  // | These PropTypes are generated from the TypeScript type definitions |
96
- // | To update them edit the TypeScript types and run "yarn proptypes" |
96
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
97
97
  // ----------------------------------------------------------------------
98
98
  /**
99
99
  * The props used for each slot inside.
@@ -128,7 +128,7 @@ const GridToolbarFilterButton = exports.GridToolbarFilterButton = /*#__PURE__*/R
128
128
  process.env.NODE_ENV !== "production" ? GridToolbarFilterButton.propTypes = {
129
129
  // ----------------------------- Warning --------------------------------
130
130
  // | These PropTypes are generated from the TypeScript type definitions |
131
- // | To update them edit the TypeScript types and run "yarn proptypes" |
131
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
132
132
  // ----------------------------------------------------------------------
133
133
  /**
134
134
  * The props used for each slot inside.
@@ -136,7 +136,7 @@ function GridToolbarQuickFilter(props) {
136
136
  process.env.NODE_ENV !== "production" ? GridToolbarQuickFilter.propTypes = {
137
137
  // ----------------------------- Warning --------------------------------
138
138
  // | These PropTypes are generated from the TypeScript type definitions |
139
- // | To update them edit the TypeScript types and run "yarn proptypes" |
139
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
140
140
  // ----------------------------------------------------------------------
141
141
  /**
142
142
  * The debounce time in milliseconds.
@@ -74,18 +74,21 @@ const useGridClipboard = (apiRef, props) => {
74
74
  if (selectedRows.size > 0) {
75
75
  textToCopy = apiRef.current.getDataAsCsv({
76
76
  includeHeaders: false,
77
- // TODO: make it configurable
78
77
  delimiter: clipboardCopyCellDelimiter,
79
- shouldAppendQuotes: false
78
+ shouldAppendQuotes: false,
79
+ escapeFormulas: false
80
80
  });
81
81
  } else {
82
82
  const focusedCell = (0, _gridFocusStateSelector.gridFocusCellSelector)(apiRef);
83
83
  if (focusedCell) {
84
84
  const cellParams = apiRef.current.getCellParams(focusedCell.id, focusedCell.field);
85
85
  textToCopy = (0, _csvSerializer.serializeCellValue)(cellParams, {
86
- delimiterCharacter: clipboardCopyCellDelimiter,
87
- ignoreValueFormatter,
88
- shouldAppendQuotes: false
86
+ csvOptions: {
87
+ delimiter: clipboardCopyCellDelimiter,
88
+ shouldAppendQuotes: false,
89
+ escapeFormulas: false
90
+ },
91
+ ignoreValueFormatter
89
92
  });
90
93
  }
91
94
  }