@mui/x-data-grid 7.4.0 → 7.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/CHANGELOG.md +132 -5395
  2. package/DataGrid/DataGrid.js +10 -5
  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 +1 -1
  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/columnSelection/GridCellCheckboxRenderer.js +1 -1
  29. package/components/columnSelection/GridHeaderCheckbox.js +1 -1
  30. package/components/columnsManagement/GridColumnsManagement.js +1 -1
  31. package/components/containers/GridFooterContainer.js +1 -1
  32. package/components/containers/GridOverlay.js +1 -1
  33. package/components/containers/GridRoot.js +1 -1
  34. package/components/containers/GridToolbarContainer.js +1 -1
  35. package/components/menu/GridMenu.js +1 -1
  36. package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  37. package/components/menu/columnMenu/GridColumnMenu.js +1 -1
  38. package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  39. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  40. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  41. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  42. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  43. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  44. package/components/panel/GridColumnsPanel.js +1 -1
  45. package/components/panel/GridPanel.js +1 -1
  46. package/components/panel/GridPanelContent.js +1 -1
  47. package/components/panel/GridPanelFooter.js +1 -1
  48. package/components/panel/GridPanelHeader.js +1 -1
  49. package/components/panel/GridPanelWrapper.js +1 -1
  50. package/components/panel/filterPanel/GridFilterForm.js +1 -1
  51. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  52. package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  53. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  54. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  55. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  56. package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  57. package/components/panel/filterPanel/GridFilterPanel.js +1 -1
  58. package/components/toolbar/GridToolbar.js +1 -1
  59. package/components/toolbar/GridToolbarColumnsButton.js +1 -1
  60. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  61. package/components/toolbar/GridToolbarExport.js +1 -1
  62. package/components/toolbar/GridToolbarExportContainer.js +1 -1
  63. package/components/toolbar/GridToolbarFilterButton.js +1 -1
  64. package/components/toolbar/GridToolbarQuickFilter.js +1 -1
  65. package/hooks/features/clipboard/useGridClipboard.js +8 -5
  66. package/hooks/features/editing/useGridRowEditing.js +5 -1
  67. package/hooks/features/export/serializers/csvSerializer.d.ts +3 -6
  68. package/hooks/features/export/serializers/csvSerializer.js +28 -32
  69. package/hooks/features/export/useGridCsvExport.js +8 -5
  70. package/index.js +1 -1
  71. package/internals/utils/propValidation.d.ts +2 -2
  72. package/internals/utils/propValidation.js +6 -9
  73. package/locales/esES.js +4 -4
  74. package/locales/nbNO.js +4 -5
  75. package/models/gridExport.d.ts +7 -0
  76. package/modern/DataGrid/DataGrid.js +10 -5
  77. package/modern/components/GridColumnHeaders.js +1 -1
  78. package/modern/components/GridFooter.js +1 -1
  79. package/modern/components/GridLoadingOverlay.js +1 -1
  80. package/modern/components/GridNoRowsOverlay.js +1 -1
  81. package/modern/components/GridPagination.js +1 -1
  82. package/modern/components/GridRow.js +1 -1
  83. package/modern/components/GridRowCount.js +1 -1
  84. package/modern/components/GridScrollArea.js +1 -10
  85. package/modern/components/GridSelectedRowCount.js +1 -1
  86. package/modern/components/base/GridOverlays.js +1 -1
  87. package/modern/components/cell/GridActionsCell.js +1 -1
  88. package/modern/components/cell/GridActionsCellItem.js +1 -1
  89. package/modern/components/cell/GridBooleanCell.js +1 -1
  90. package/modern/components/cell/GridCell.js +1 -1
  91. package/modern/components/cell/GridEditBooleanCell.js +1 -1
  92. package/modern/components/cell/GridEditDateCell.js +1 -1
  93. package/modern/components/cell/GridEditInputCell.js +1 -1
  94. package/modern/components/cell/GridEditSingleSelectCell.js +1 -1
  95. package/modern/components/cell/GridSkeletonCell.js +1 -1
  96. package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -1
  97. package/modern/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  98. package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  99. package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  100. package/modern/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  101. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  102. package/modern/components/columnSelection/GridHeaderCheckbox.js +1 -1
  103. package/modern/components/columnsManagement/GridColumnsManagement.js +1 -1
  104. package/modern/components/containers/GridFooterContainer.js +1 -1
  105. package/modern/components/containers/GridOverlay.js +1 -1
  106. package/modern/components/containers/GridRoot.js +1 -1
  107. package/modern/components/containers/GridToolbarContainer.js +1 -1
  108. package/modern/components/menu/GridMenu.js +1 -1
  109. package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  110. package/modern/components/menu/columnMenu/GridColumnMenu.js +1 -1
  111. package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  112. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  113. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  114. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  115. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  116. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  117. package/modern/components/panel/GridColumnsPanel.js +1 -1
  118. package/modern/components/panel/GridPanel.js +1 -1
  119. package/modern/components/panel/GridPanelContent.js +1 -1
  120. package/modern/components/panel/GridPanelFooter.js +1 -1
  121. package/modern/components/panel/GridPanelHeader.js +1 -1
  122. package/modern/components/panel/GridPanelWrapper.js +1 -1
  123. package/modern/components/panel/filterPanel/GridFilterForm.js +1 -1
  124. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  125. package/modern/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  126. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  127. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  128. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  129. package/modern/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  130. package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -1
  131. package/modern/components/toolbar/GridToolbar.js +1 -1
  132. package/modern/components/toolbar/GridToolbarColumnsButton.js +1 -1
  133. package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
  134. package/modern/components/toolbar/GridToolbarExport.js +1 -1
  135. package/modern/components/toolbar/GridToolbarExportContainer.js +1 -1
  136. package/modern/components/toolbar/GridToolbarFilterButton.js +1 -1
  137. package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -1
  138. package/modern/hooks/features/clipboard/useGridClipboard.js +8 -5
  139. package/modern/hooks/features/editing/useGridRowEditing.js +5 -1
  140. package/modern/hooks/features/export/serializers/csvSerializer.js +28 -32
  141. package/modern/hooks/features/export/useGridCsvExport.js +8 -5
  142. package/modern/index.js +1 -1
  143. package/modern/internals/utils/propValidation.js +6 -9
  144. package/modern/locales/esES.js +4 -4
  145. package/modern/locales/nbNO.js +4 -5
  146. package/node/DataGrid/DataGrid.js +10 -5
  147. package/node/components/GridColumnHeaders.js +1 -1
  148. package/node/components/GridFooter.js +1 -1
  149. package/node/components/GridLoadingOverlay.js +1 -1
  150. package/node/components/GridNoRowsOverlay.js +1 -1
  151. package/node/components/GridPagination.js +1 -1
  152. package/node/components/GridRow.js +1 -1
  153. package/node/components/GridRowCount.js +1 -1
  154. package/node/components/GridScrollArea.js +0 -8
  155. package/node/components/GridSelectedRowCount.js +1 -1
  156. package/node/components/base/GridOverlays.js +1 -1
  157. package/node/components/cell/GridActionsCell.js +1 -1
  158. package/node/components/cell/GridActionsCellItem.js +1 -1
  159. package/node/components/cell/GridBooleanCell.js +1 -1
  160. package/node/components/cell/GridCell.js +1 -1
  161. package/node/components/cell/GridEditBooleanCell.js +1 -1
  162. package/node/components/cell/GridEditDateCell.js +1 -1
  163. package/node/components/cell/GridEditInputCell.js +1 -1
  164. package/node/components/cell/GridEditSingleSelectCell.js +1 -1
  165. package/node/components/cell/GridSkeletonCell.js +1 -1
  166. package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -1
  167. package/node/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  168. package/node/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  169. package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  170. package/node/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  171. package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  172. package/node/components/columnSelection/GridHeaderCheckbox.js +1 -1
  173. package/node/components/columnsManagement/GridColumnsManagement.js +1 -1
  174. package/node/components/containers/GridFooterContainer.js +1 -1
  175. package/node/components/containers/GridOverlay.js +1 -1
  176. package/node/components/containers/GridRoot.js +1 -1
  177. package/node/components/containers/GridToolbarContainer.js +1 -1
  178. package/node/components/menu/GridMenu.js +1 -1
  179. package/node/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  180. package/node/components/menu/columnMenu/GridColumnMenu.js +1 -1
  181. package/node/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  182. package/node/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  183. package/node/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  184. package/node/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  185. package/node/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  186. package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  187. package/node/components/panel/GridColumnsPanel.js +1 -1
  188. package/node/components/panel/GridPanel.js +1 -1
  189. package/node/components/panel/GridPanelContent.js +1 -1
  190. package/node/components/panel/GridPanelFooter.js +1 -1
  191. package/node/components/panel/GridPanelHeader.js +1 -1
  192. package/node/components/panel/GridPanelWrapper.js +1 -1
  193. package/node/components/panel/filterPanel/GridFilterForm.js +1 -1
  194. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  195. package/node/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  196. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  197. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  198. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
  199. package/node/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  200. package/node/components/panel/filterPanel/GridFilterPanel.js +1 -1
  201. package/node/components/toolbar/GridToolbar.js +1 -1
  202. package/node/components/toolbar/GridToolbarColumnsButton.js +1 -1
  203. package/node/components/toolbar/GridToolbarDensitySelector.js +1 -1
  204. package/node/components/toolbar/GridToolbarExport.js +1 -1
  205. package/node/components/toolbar/GridToolbarExportContainer.js +1 -1
  206. package/node/components/toolbar/GridToolbarFilterButton.js +1 -1
  207. package/node/components/toolbar/GridToolbarQuickFilter.js +1 -1
  208. package/node/hooks/features/clipboard/useGridClipboard.js +8 -5
  209. package/node/hooks/features/editing/useGridRowEditing.js +5 -1
  210. package/node/hooks/features/export/serializers/csvSerializer.js +28 -32
  211. package/node/hooks/features/export/useGridCsvExport.js +8 -5
  212. package/node/index.js +1 -1
  213. package/node/internals/utils/propValidation.js +9 -12
  214. package/node/locales/esES.js +4 -4
  215. package/node/locales/nbNO.js +4 -5
  216. package/package.json +2 -2
@@ -1,13 +1,19 @@
1
1
  import { GRID_CHECKBOX_SELECTION_COL_DEF } from '../../../../colDef';
2
2
  import { buildWarning } from '../../../../utils/warning';
3
- function sanitizeCellValue(value, delimiterCharacter, shouldAppendQuotes) {
3
+ function sanitizeCellValue(value, csvOptions) {
4
4
  if (typeof value === 'string') {
5
- if (shouldAppendQuotes) {
5
+ if (csvOptions.shouldAppendQuotes || csvOptions.escapeFormulas) {
6
6
  const escapedValue = value.replace(/"/g, '""');
7
- // Make sure value containing delimiter or line break won't be split into multiple rows
8
- if ([delimiterCharacter, '\n', '\r', '"'].some(delimiter => value.includes(delimiter))) {
7
+ // Make sure value containing delimiter or line break won't be split into multiple cells
8
+ if ([csvOptions.delimiter, '\n', '\r', '"'].some(delimiter => value.includes(delimiter))) {
9
9
  return `"${escapedValue}"`;
10
10
  }
11
+ if (csvOptions.escapeFormulas) {
12
+ // See https://owasp.org/www-community/attacks/CSV_Injection
13
+ if (['=', '+', '-', '@', '\t', '\r'].includes(escapedValue[0])) {
14
+ return `'${escapedValue}`;
15
+ }
16
+ }
11
17
  return escapedValue;
12
18
  }
13
19
  return value;
@@ -16,9 +22,8 @@ function sanitizeCellValue(value, delimiterCharacter, shouldAppendQuotes) {
16
22
  }
17
23
  export const serializeCellValue = (cellParams, options) => {
18
24
  const {
19
- delimiterCharacter,
20
- ignoreValueFormatter,
21
- shouldAppendQuotes
25
+ csvOptions,
26
+ ignoreValueFormatter
22
27
  } = options;
23
28
  let value;
24
29
  if (ignoreValueFormatter) {
@@ -35,7 +40,7 @@ export const serializeCellValue = (cellParams, options) => {
35
40
  } else {
36
41
  value = cellParams.formattedValue;
37
42
  }
38
- return sanitizeCellValue(value, delimiterCharacter, shouldAppendQuotes);
43
+ return sanitizeCellValue(value, csvOptions);
39
44
  };
40
45
  const objectFormattedValueWarning = buildWarning(['MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
41
46
  class CSVRow {
@@ -47,12 +52,12 @@ class CSVRow {
47
52
  }
48
53
  addValue(value) {
49
54
  if (!this.isEmpty) {
50
- this.rowString += this.options.delimiterCharacter;
55
+ this.rowString += this.options.csvOptions.delimiter;
51
56
  }
52
57
  if (value === null || value === undefined) {
53
58
  this.rowString += '';
54
59
  } else if (typeof this.options.sanitizeCellValue === 'function') {
55
- this.rowString += this.options.sanitizeCellValue(value, this.options.delimiterCharacter, this.options.shouldAppendQuotes);
60
+ this.rowString += this.options.sanitizeCellValue(value, this.options.csvOptions);
56
61
  } else {
57
62
  this.rowString += value;
58
63
  }
@@ -66,13 +71,11 @@ const serializeRow = ({
66
71
  id,
67
72
  columns,
68
73
  getCellParams,
69
- delimiterCharacter,
70
- ignoreValueFormatter,
71
- shouldAppendQuotes
74
+ csvOptions,
75
+ ignoreValueFormatter
72
76
  }) => {
73
77
  const row = new CSVRow({
74
- delimiterCharacter,
75
- shouldAppendQuotes
78
+ csvOptions
76
79
  });
77
80
  columns.forEach(column => {
78
81
  const cellParams = getCellParams(id, column.field);
@@ -82,9 +85,8 @@ const serializeRow = ({
82
85
  }
83
86
  }
84
87
  row.addValue(serializeCellValue(cellParams, {
85
- delimiterCharacter,
86
88
  ignoreValueFormatter,
87
- shouldAppendQuotes
89
+ csvOptions
88
90
  }));
89
91
  });
90
92
  return row.getRowString();
@@ -93,27 +95,23 @@ export function buildCSV(options) {
93
95
  const {
94
96
  columns,
95
97
  rowIds,
96
- delimiterCharacter,
97
- includeHeaders,
98
- includeColumnGroupsHeaders,
98
+ csvOptions,
99
99
  ignoreValueFormatter,
100
- apiRef,
101
- shouldAppendQuotes
100
+ apiRef
102
101
  } = options;
103
102
  const CSVBody = rowIds.reduce((acc, id) => `${acc}${serializeRow({
104
103
  id,
105
104
  columns,
106
105
  getCellParams: apiRef.current.getCellParams,
107
- delimiterCharacter,
108
106
  ignoreValueFormatter,
109
- shouldAppendQuotes
107
+ csvOptions
110
108
  })}\r\n`, '').trim();
111
- if (!includeHeaders) {
109
+ if (!csvOptions.includeHeaders) {
112
110
  return CSVBody;
113
111
  }
114
112
  const filteredColumns = columns.filter(column => column.field !== GRID_CHECKBOX_SELECTION_COL_DEF.field);
115
113
  const headerRows = [];
116
- if (includeColumnGroupsHeaders) {
114
+ if (csvOptions.includeColumnGroupsHeaders) {
117
115
  const columnGroupLookup = apiRef.current.getAllGroupDetails();
118
116
  let maxColumnGroupsDepth = 0;
119
117
  const columnGroupPathsLookup = filteredColumns.reduce((acc, column) => {
@@ -124,9 +122,8 @@ export function buildCSV(options) {
124
122
  }, {});
125
123
  for (let i = 0; i < maxColumnGroupsDepth; i += 1) {
126
124
  const headerGroupRow = new CSVRow({
127
- delimiterCharacter,
128
- sanitizeCellValue,
129
- shouldAppendQuotes
125
+ csvOptions,
126
+ sanitizeCellValue
130
127
  });
131
128
  headerRows.push(headerGroupRow);
132
129
  filteredColumns.forEach(column => {
@@ -137,9 +134,8 @@ export function buildCSV(options) {
137
134
  }
138
135
  }
139
136
  const mainHeaderRow = new CSVRow({
140
- delimiterCharacter,
141
- sanitizeCellValue,
142
- shouldAppendQuotes
137
+ csvOptions,
138
+ sanitizeCellValue
143
139
  });
144
140
  filteredColumns.forEach(column => {
145
141
  mainHeaderRow.addValue(column.headerName || column.field);
@@ -31,12 +31,15 @@ export const useGridCsvExport = (apiRef, props) => {
31
31
  return buildCSV({
32
32
  columns: exportedColumns,
33
33
  rowIds: exportedRowIds,
34
- delimiterCharacter: options.delimiter || ',',
35
- includeHeaders: options.includeHeaders ?? true,
36
- includeColumnGroupsHeaders: options.includeColumnGroupsHeaders ?? true,
34
+ csvOptions: {
35
+ delimiter: options.delimiter || ',',
36
+ shouldAppendQuotes: options.shouldAppendQuotes ?? true,
37
+ includeHeaders: options.includeHeaders ?? true,
38
+ includeColumnGroupsHeaders: options.includeColumnGroupsHeaders ?? true,
39
+ escapeFormulas: options.escapeFormulas ?? true
40
+ },
37
41
  ignoreValueFormatter,
38
- apiRef,
39
- shouldAppendQuotes: options.shouldAppendQuotes ?? true
42
+ apiRef
40
43
  });
41
44
  }, [logger, apiRef, ignoreValueFormatter]);
42
45
  const exportDataAsCsv = React.useCallback(options => {
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v7.4.0
2
+ * @mui/x-data-grid v7.5.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -2,23 +2,20 @@ import { isNumber } from '../../utils/utils';
2
2
  import { GridSignature } from '../../hooks/utils/useGridApiEventHandler';
3
3
  export const propValidatorsDataGrid = [props => props.autoPageSize && props.autoHeight && ['MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.', 'You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.', '', 'Please remove one of these two props.'].join('\n') || undefined, props => props.paginationMode === 'client' && props.paginationMeta != null && ['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.', '`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.signature === GridSignature.DataGrid && props.paginationMode === 'client' && isNumber(props.rowCount) && ['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.', '`rowCount` is only meant to be used with `paginationMode="server"`.'].join('\n') || undefined, props => props.paginationMode === 'server' && props.rowCount == null && ["MUI X: The `rowCount` prop must be passed using `paginationMode='server'`", 'For more detail, see http://mui.com/components/data-grid/pagination/#index-based-pagination'].join('\n') || undefined];
4
4
  const warnedOnceCache = new Set();
5
- const warnOnce = message => {
5
+ function warnOnce(message) {
6
6
  if (!warnedOnceCache.has(message)) {
7
7
  console.error(message);
8
8
  warnedOnceCache.add(message);
9
9
  }
10
- };
11
- export const validateProps = (props, validators) => {
12
- if (process.env.NODE_ENV === 'production') {
13
- return;
14
- }
10
+ }
11
+ export function validateProps(props, validators) {
15
12
  validators.forEach(validator => {
16
13
  const warning = validator(props);
17
14
  if (warning) {
18
15
  warnOnce(warning);
19
16
  }
20
17
  });
21
- };
22
- export const clearWarningsCache = () => {
18
+ }
19
+ export function clearWarningsCache() {
23
20
  warnedOnceCache.clear();
24
- };
21
+ }
@@ -140,10 +140,10 @@ const esESGrid = {
140
140
  rowReorderingHeaderName: 'Reordenar filas',
141
141
  // Aggregation
142
142
  aggregationMenuItemHeader: 'Agregación',
143
- aggregationFunctionLabelSum: 'sum',
144
- aggregationFunctionLabelAvg: 'avg',
145
- aggregationFunctionLabelMin: 'min',
146
- aggregationFunctionLabelMax: 'max',
143
+ aggregationFunctionLabelSum: 'suma',
144
+ aggregationFunctionLabelAvg: 'promedio',
145
+ aggregationFunctionLabelMin: 'mínimo',
146
+ aggregationFunctionLabelMax: 'máximo',
147
147
  aggregationFunctionLabelSize: 'tamaño'
148
148
  };
149
149
  export const esES = getGridLocalization(esESGrid, esESCore);
@@ -30,11 +30,10 @@ const nbNOGrid = {
30
30
  toolbarExportPrint: 'Skriv ut',
31
31
  toolbarExportExcel: 'Last ned som Excel',
32
32
  // Columns management text
33
- // columnsManagementSearchTitle: 'Search',
34
- // columnsManagementNoColumns: 'No columns',
35
- // columnsManagementShowHideAllText: 'Show/Hide All',
36
- // columnsManagementReset: 'Reset',
37
-
33
+ columnsManagementSearchTitle: 'Søk',
34
+ columnsManagementNoColumns: 'Ingen kolonner',
35
+ columnsManagementShowHideAllText: 'Vis/skjul alle',
36
+ columnsManagementReset: 'Nullstill',
38
37
  // Filter panel text
39
38
  filterPanelAddFilter: 'Legg til filter',
40
39
  filterPanelRemoveAll: 'Fjern alle',
@@ -17,13 +17,18 @@ var _propValidation = require("../internals/utils/propValidation");
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
- const propValidators = [..._propValidation.propValidatorsDataGrid,
21
- // Only validate in MIT version
22
- props => props.columns && props.columns.some(column => column.resizable) && [`MUI X: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n') || undefined];
20
+ let propValidators;
21
+ if (process.env.NODE_ENV !== 'production') {
22
+ propValidators = [..._propValidation.propValidatorsDataGrid,
23
+ // Only validate in MIT version
24
+ props => props.columns && props.columns.some(column => column.resizable) && [`MUI X: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n') || undefined];
25
+ }
23
26
  const DataGridRaw = /*#__PURE__*/React.forwardRef(function DataGrid(inProps, ref) {
24
27
  const props = (0, _useDataGridProps.useDataGridProps)(inProps);
25
28
  const privateApiRef = (0, _useDataGridComponent.useDataGridComponent)(props.apiRef, props);
26
- (0, _propValidation.validateProps)(props, propValidators);
29
+ if (process.env.NODE_ENV !== 'production') {
30
+ (0, _propValidation.validateProps)(props, propValidators);
31
+ }
27
32
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridContextProvider.GridContextProvider, {
28
33
  privateApiRef: privateApiRef,
29
34
  props: props,
@@ -48,7 +53,7 @@ const DataGrid = exports.DataGrid = /*#__PURE__*/React.memo(DataGridRaw);
48
53
  DataGridRaw.propTypes = {
49
54
  // ----------------------------- Warning --------------------------------
50
55
  // | These PropTypes are generated from the TypeScript type definitions |
51
- // | To update them edit the TypeScript types and run "yarn proptypes" |
56
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
52
57
  // ----------------------------------------------------------------------
53
58
  /**
54
59
  * The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
@@ -59,7 +59,7 @@ const GridColumnHeaders = /*#__PURE__*/React.forwardRef(function GridColumnHeade
59
59
  process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
60
60
  // ----------------------------- Warning --------------------------------
61
61
  // | These PropTypes are generated from the TypeScript type definitions |
62
- // | To update them edit the TypeScript types and run "yarn proptypes" |
62
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
63
63
  // ----------------------------------------------------------------------
64
64
  columnGroupHeaderFocus: _propTypes.default.shape({
65
65
  depth: _propTypes.default.number.isRequired,
@@ -42,7 +42,7 @@ const GridFooter = exports.GridFooter = /*#__PURE__*/React.forwardRef(function G
42
42
  process.env.NODE_ENV !== "production" ? GridFooter.propTypes = {
43
43
  // ----------------------------- Warning --------------------------------
44
44
  // | These PropTypes are generated from the TypeScript type definitions |
45
- // | To update them edit the TypeScript types and run "yarn proptypes" |
45
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
46
46
  // ----------------------------------------------------------------------
47
47
  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])
48
48
  } : void 0;
@@ -23,7 +23,7 @@ const GridLoadingOverlay = exports.GridLoadingOverlay = /*#__PURE__*/React.forwa
23
23
  process.env.NODE_ENV !== "production" ? GridLoadingOverlay.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
  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])
29
29
  } : void 0;
@@ -25,7 +25,7 @@ const GridNoRowsOverlay = exports.GridNoRowsOverlay = /*#__PURE__*/React.forward
25
25
  process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes = {
26
26
  // ----------------------------- Warning --------------------------------
27
27
  // | These PropTypes are generated from the TypeScript type definitions |
28
- // | To update them edit the TypeScript types and run "yarn proptypes" |
28
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
29
29
  // ----------------------------------------------------------------------
30
30
  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])
31
31
  } : void 0;
@@ -144,7 +144,7 @@ const GridPagination = exports.GridPagination = /*#__PURE__*/React.forwardRef(fu
144
144
  process.env.NODE_ENV !== "production" ? GridPagination.propTypes = {
145
145
  // ----------------------------- Warning --------------------------------
146
146
  // | These PropTypes are generated from the TypeScript type definitions |
147
- // | To update them edit the TypeScript types and run "yarn proptypes" |
147
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
148
148
  // ----------------------------------------------------------------------
149
149
  component: _propTypes.default.elementType
150
150
  } : void 0;
@@ -363,7 +363,7 @@ const GridRow = /*#__PURE__*/React.forwardRef(function GridRow(props, refProp) {
363
363
  process.env.NODE_ENV !== "production" ? GridRow.propTypes = {
364
364
  // ----------------------------- Warning --------------------------------
365
365
  // | These PropTypes are generated from the TypeScript type definitions |
366
- // | To update them edit the TypeScript types and run "yarn proptypes" |
366
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
367
367
  // ----------------------------------------------------------------------
368
368
  dimensions: _propTypes.default.shape({
369
369
  bottomContainerHeight: _propTypes.default.number.isRequired,
@@ -64,7 +64,7 @@ const GridRowCount = exports.GridRowCount = /*#__PURE__*/React.forwardRef(functi
64
64
  process.env.NODE_ENV !== "production" ? GridRowCount.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
  rowCount: _propTypes.default.number.isRequired,
70
70
  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]),
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.GridScrollArea = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var React = _interopRequireWildcard(require("react"));
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
10
  var _clsx = _interopRequireDefault(require("clsx"));
12
11
  var _utils = require("@mui/utils");
13
12
  var _system = require("@mui/system");
@@ -148,11 +147,4 @@ function GridScrollAreaRaw(props) {
148
147
  style: style
149
148
  });
150
149
  }
151
- process.env.NODE_ENV !== "production" ? GridScrollAreaRaw.propTypes = {
152
- // ----------------------------- Warning --------------------------------
153
- // | These PropTypes are generated from the TypeScript type definitions |
154
- // | To update them edit the TypeScript types and run "yarn proptypes" |
155
- // ----------------------------------------------------------------------
156
- scrollDirection: _propTypes.default.oneOf(['left', 'right']).isRequired
157
- } : void 0;
158
150
  const GridScrollArea = exports.GridScrollArea = (0, _fastMemo.fastMemo)(GridScrollAreaRaw);
@@ -68,7 +68,7 @@ const GridSelectedRowCount = exports.GridSelectedRowCount = /*#__PURE__*/React.f
68
68
  process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes = {
69
69
  // ----------------------------- Warning --------------------------------
70
70
  // | These PropTypes are generated from the TypeScript type definitions |
71
- // | To update them edit the TypeScript types and run "yarn proptypes" |
71
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
72
72
  // ----------------------------------------------------------------------
73
73
  selectedRowCount: _propTypes.default.number.isRequired,
74
74
  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])
@@ -85,7 +85,7 @@ function GridOverlayWrapper(props) {
85
85
  process.env.NODE_ENV !== "production" ? GridOverlayWrapper.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
  overlayType: _propTypes.default.string.isRequired
91
91
  } : void 0;
@@ -200,7 +200,7 @@ function GridActionsCell(props) {
200
200
  process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
201
201
  // ----------------------------- Warning --------------------------------
202
202
  // | These PropTypes are generated from the TypeScript type definitions |
203
- // | To update them edit the TypeScript types and run "yarn proptypes" |
203
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
204
204
  // ----------------------------------------------------------------------
205
205
  api: _propTypes.default.object,
206
206
  /**
@@ -68,7 +68,7 @@ const GridActionsCellItem = exports.GridActionsCellItem = /*#__PURE__*/React.for
68
68
  process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes = {
69
69
  // ----------------------------- Warning --------------------------------
70
70
  // | These PropTypes are generated from the TypeScript type definitions |
71
- // | To update them edit the TypeScript types and run "yarn proptypes" |
71
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
72
72
  // ----------------------------------------------------------------------
73
73
  /**
74
74
  * from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
@@ -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.
@@ -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,
@@ -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,