@mui/x-data-grid-premium 5.12.2 → 5.13.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,160 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 5.13.1
7
+
8
+ _Jul 15, 2022_
9
+
10
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - ✏️ Enter edit mode when pasting in a cell with Ctrl+V (Cmd+V on macOS) (#5405) @alexfauquette
13
+ - 🌍 Many improvements to the locales
14
+ - 📚 Documentation improvements
15
+ - 🐞 Bugfixes
16
+
17
+ ### `@mui/x-data-grid@v5.13.1` / `@mui/x-data-grid-pro@v5.13.1` / `@mui/x-data-grid-premium@v5.13.1`
18
+
19
+ #### Changes
20
+
21
+ - [DataGrid] Fix blank space when using dynamic row height with pagination (#5315) @m4theushw
22
+ - [DataGrid] Start editing with uppercase letter and Ctrl+V (#5405) @alexfauquette
23
+ - [DataGrid] Fix some filters being removed from filter model on filter panel open (#5403) @cherniavskii
24
+ - [DataGridPro] Improve pinned column headers accessibility (#5370) @cherniavskii
25
+ - [l10n] Improve Dutch (nl-NL) locale (#5464) @developenguin
26
+ - [l10n] Improve French (fr-FR) locale (#3211) (#5420) @Zenoo
27
+ - [l10n] Improve German (de-DE) locale (#5448) @sebastianfrey
28
+ - [l10n] Improve Brazilian Portuguese (pt-BR) locale (#5394) @andrepxa
29
+ - [l10n] Improve Romanian (ro-RO) locale (#5449) @rolule
30
+
31
+ ### `@mui/x-date-pickers@v5.0.0-beta.1` / `@mui/x-date-picker-pro@5.0.0-beta.1`
32
+
33
+ #### Changes
34
+
35
+ - [pickers] Add Italian (it-IT) locale (#5467) @felixh10r
36
+ - [pickers] Add Spanish (es-ES) locale (#5468) @felixh10r
37
+ - [pickers] Improve French (fr-FR) locale (#5446) @Zenoo
38
+ - [pickers] Improve German (de-DE) locale (#5447) @sebastianfrey
39
+
40
+ ### Docs
41
+
42
+ - [docs] Fix typo in the sorting page (#5431) @JosephMarinier
43
+ - [docs] Fix description for "Striped rows" example (#5432) @lindapaiste
44
+ - [docs] Make a clear difference between the license and license key (#5316) @oliviertassinari
45
+ - [docs] Update pickers README files (#5456) @cherniavskii
46
+ - [docs] Clarify the scope of support for MUI X (#5423) @joserodolfofreitas
47
+
48
+ ### Core
49
+
50
+ - [core] Add technical support link to \_redirects (#5428) @joserodolfofreitas
51
+ - [core] Improve GitHub bug reproduction template (#5067) @joserodolfofreitas
52
+ - [core] Include playground pages in tsconfig (#5367) @cherniavskii
53
+ - [core] Sort keys like in material-ui @oliviertassinari
54
+ - [test] Wait for flags to load on regression tests (#5473) @m4theushw
55
+
56
+ ## 5.13.0
57
+
58
+ _Jul 7, 2022_
59
+
60
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
61
+
62
+ - 🎁 `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` are now in beta!
63
+
64
+ - ✨ Allow detail panel's height to match its content (#5163) @m4theushw
65
+
66
+ ```tsx
67
+ <DataGridPro getDetailPanelHeight={() => 'auto'} />
68
+ ```
69
+
70
+ - 🌍 Add Romanian (ro-RO) locale on the data grid (#5345) @rolule
71
+ - 📚 Documentation improvements
72
+ - 🐞 Bugfixes
73
+
74
+ ### `@mui/x-data-grid@v5.13.0` / `@mui/x-data-grid-pro@v5.13.0` / `@mui/x-data-grid-premium@v5.13.0`
75
+
76
+ #### Changes
77
+
78
+ - [DataGrid] Allows to customize variant of value input in filter panel (#4826) @alexfauquette
79
+ - [DataGrid] Add Romanian (ro-RO) locale (#5345) @rolule
80
+ - [DataGrid] Export Norwegian (nb-NO) locale (#5407) @cherniavskii
81
+ - [DataGrid] Fix broken "start editing" integration with Japanese (#5414) @mnajdova
82
+ - [DataGrid] Fix "stop editing" integration with IME e.g. Japanese (#5257) @Gumichocopengin8
83
+ - [DataGrid] Fix dimensions computation with `autoHeight` and scroll x (#5401) @flaviendelangle
84
+ - [DataGrid] Improve Slovak (sk-SK) locale (#5332) @msidlo
85
+ - [DataGrid] Mention Premium plan in error messages and docs warnings (#5328) @cherniavskii
86
+ - [DataGrid] Remove trailing spaces in filter input (#5279) @alexfauquette
87
+ - [DataGridPro] Allow to infer detail panel height from content (#5163) @m4theushw
88
+ - [DataGridPro] Fix the depth of nodes when switching from a non-flat tree to a flat tree (#5362) @flaviendelangle
89
+
90
+ ### `@mui/x-date-pickers@v5.0.0-beta.0` / `@mui/x-date-picker-pro@5.0.0-beta.0`
91
+
92
+ #### Changes
93
+
94
+ - [DateRangePicker] Fix keyboard selection (#5265) @alexfauquette
95
+ - [DayPicker] Remove empty space at the bottom of the day view (#5073) @flaviendelangle
96
+ - [pickers] Add missing type dependencies (#5331) @Methuselah96
97
+ - [pickers] Pass the generics to the components in the theme augmentation (#5199) @toruticas
98
+
99
+ ### Docs
100
+
101
+ - [docs] Explain how to use hooks inside a cell renderer (#5158) @flaviendelangle
102
+ - [docs] Fix server-side pagination demo (#5361) @cherniavskii
103
+ - [docs] Fix typo in the quick filter docs (#5313) @alexfauquette
104
+ - [docs] Improve the "Getting started" page (#5293) @alexfauquette
105
+ - [docs] New page for the pickers action bar customization (#5267) @flaviendelangle
106
+ - [docs] Revise and split up "Overview" page into "Introduction" (#4692) @samuelsycamore
107
+ - [docs] Use `useKeepGroupedColumnsHiddren` from the grid package on remaining demo (#5382) @flaviendelangle
108
+
109
+ ## v5.12.3
110
+
111
+ _Jun 23, 2022_
112
+
113
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
114
+
115
+ - 🌍 Add Swedish (sv-SE) locale on the data grid and the pickers (#5210) @mrxdst
116
+ - 🌍 Add Dutch (nl-NL) locale on the pickers (#5237) @DDukers
117
+ - 📚 Documentation improvements
118
+ - 🐞 Bugfixes
119
+
120
+ ### `@mui/x-data-grid@v5.12.3` / `@mui/x-data-grid-pro@v5.12.3` / `@mui/x-data-grid-premium@v5.12.3`
121
+
122
+ #### Changes
123
+
124
+ - [DataGrid] Do not hide non-hideable column when pressing Hide All button (#5298) @flaviendelangle
125
+ - [DataGrid] Do not regenerate the row tree when the `loading` prop changes (#5213) @flaviendelangle
126
+ - [DataGrid] Fix the default filter operator fallback on state initialization (#5266) @flaviendelangle
127
+ - [DataGrid] Stop using the deprecated `api` prop in the grid components (#5205) @flaviendelangle
128
+ - [DataGrid] Add Swedish (sv-SE) locale (#5210) @mrxdst
129
+ - [DataGridPremium] Fix detail panel on `DataGridPremium` (#5264) @flaviendelangle
130
+ - [DataGridPremium] Fix Excel import with Remix / Vite (#5207) @alexfauquette
131
+ - [DataGridPremium] Fix error with quick filter and grouping rows (#5238) @alexfauquette
132
+
133
+ ### `@mui/x-date-pickers@v5.0.0-alpha.7` / `@mui/x-date-pickers-pro@v5.0.0-alpha.7`
134
+
135
+ #### Changes
136
+
137
+ - [pickers] Export adapters from both `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` (#5204) @flaviendelangle
138
+ - [pickers] Add Dutch (nl-NL) locale (#5237) @DDukers
139
+
140
+ ### Docs
141
+
142
+ - [docs] Add `DataGridPremium` to all API sections (#5196) @flaviendelangle
143
+ - [docs] Add plan badge next to event name in the Events page (#5200) @flaviendelangle
144
+ - [docs] Add section for theme augmentation in the picker docs (#5276) @flaviendelangle
145
+ - [docs] Add waiting for upvote section for row group panel (#5271) @flaviendelangle
146
+ - [docs] Disable ad on main demo page (#5301) @joserodolfofreitas
147
+ - [docs] Fix typo in the `DateRangePicker` documentation (#5259) @flaviendelangle
148
+
149
+ ### Core
150
+
151
+ - [core] Allow having multiple playgrounds (#5288) @alexfauquette
152
+ - [core] Improve typing of `GridFilterInputMultipleSingleSelect` (#5206) @flaviendelangle
153
+ - [core] Remove arbitrary new lines (#5245) @oliviertassinari
154
+ - [core] Remove dead logic (#5282) @oliviertassinari
155
+ - [test] Fix `inputFormat` when testing with different date adapters (#5291) @cherniavskii
156
+ - [test] Fix date assertion in Safari 13 (#5221) @m4theushw
157
+ - [test] Throw if date adapter is not found (#5289) @cherniavskii
158
+ - [test] Use mock for `ResizeObserver` (#5215) @m4theushw
159
+
6
160
  ## v5.12.2
7
161
 
8
162
  _Jun 16, 2022_
@@ -71,7 +225,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
71
225
  - [l10n] Update Japanese (ja-JP) locale (#5122) @hikotq
72
226
  - [l10n] Update Russian (ru-RU) locale (#5069) @Artboomy
73
227
 
74
- ### `@mui/x-date-pickers@5.0.0-alpha.6` / `@mui/x-date-pickers-pro@5.0.0-alpha.6`
228
+ ### `@mui/x-date-pickers@v5.0.0-alpha.6` / `@mui/x-date-pickers-pro@v5.0.0-alpha.6`
75
229
 
76
230
  #### Changes
77
231
 
@@ -138,7 +292,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
138
292
  - [l10n] Add Norwegian (Bokmål) (nb-NO) locale (#5001) @spiftire
139
293
  - [l10n] Add Turkish (tr-TR) locale (#5026) @Rassilion
140
294
 
141
- ### `@mui/x-date-pickers@5.0.0-alpha.5` / `@mui/x-date-pickers-pro@5.0.0-alpha.5`
295
+ ### `@mui/x-date-pickers@v5.0.0-alpha.5` / `@mui/x-date-pickers-pro@v5.0.0-alpha.5`
142
296
 
143
297
  #### Breaking changes
144
298
 
@@ -211,7 +365,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
211
365
  - [DataGridPremium] Support column spanning in the Excel export (#4830) @cherniavskii
212
366
  - [l10n] Improve Russian (ru-RU) locale (#4864) @arvkonstantin
213
367
 
214
- ### `@mui/x-date-pickers@5.0.0-alpha.4` / `@mui/x-date-pickers-pro@5.0.0-alpha.4`
368
+ ### `@mui/x-date-pickers@v5.0.0-alpha.4` / `@mui/x-date-pickers-pro@v5.0.0-alpha.4`
215
369
 
216
370
  #### Breaking changes
217
371
 
@@ -336,7 +490,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
336
490
  - [l10n] Improve German (de-DE) locale (#4748) @sebastianfrey
337
491
  - [l10n] Improve German (de-DE) locale (#4668) @izu-co
338
492
 
339
- ### `@mui/x-date-pickers@5.0.0-alpha.3` / `@mui/x-date-pickers-pro@5.0.0-alpha.3`
493
+ ### `@mui/x-date-pickers@v5.0.0-alpha.3` / `@mui/x-date-pickers-pro@v5.0.0-alpha.3`
340
494
 
341
495
  #### Breaking changes
342
496
 
@@ -437,7 +591,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
437
591
  - [DataGrid] Don't close column menu when updating rows (#4498) @m4theushw
438
592
  - [DataGridPro] Introduce row reorder (#4034) @DanailH
439
593
 
440
- ### `@mui/x-date-pickers@5.0.0-alpha.2` / `@mui/x-date-pickers-pro@5.0.0-alpha.2`
594
+ ### `@mui/x-date-pickers@v5.0.0-alpha.2` / `@mui/x-date-pickers-pro@v5.0.0-alpha.2`
441
595
 
442
596
  - [pickers] Pass `PaperProps` to `DesktopWrapper` component (#4584) @alexfauquette
443
597
  - [TimePicker] Fix bug when time picker clear value (#4582) @alexfauquette
@@ -498,7 +652,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
498
652
  - [DataGridPro] Fix toggling detail panel using keyboard (#4409) @cherniavskii
499
653
  - [l10n] Add Hungarian (hu-HU) locale (#4458) @x22tri
500
654
 
501
- ### `@mui/x-date-pickers@5.0.0-alpha.1` / `@mui/x-date-pickers-pro@5.0.0-alpha.1`
655
+ ### `@mui/x-date-pickers@v5.0.0-alpha.1` / `@mui/x-date-pickers-pro@v5.0.0-alpha.1`
502
656
 
503
657
  - [ClockPicker] Should call `shouldDisableTime` with the hours with meridiem (#4404) @flaviendelangle
504
658
  - [MonthPicker] Clicking on a `PickersMonth` button should not trigger the form submit (#4402) @flaviendelangle
@@ -323,7 +323,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
323
323
  /**
324
324
  * Function that returns the height of the row detail panel.
325
325
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
326
- * @returns {number} The height in pixels.
326
+ * @returns {number | string} The height in pixels or "auto" to use the content height.
327
327
  * @default "() => 500"
328
328
  */
329
329
  getDetailPanelHeight: PropTypes.func,
@@ -45,11 +45,11 @@ export const useDataGridPremiumComponent = (inputApiRef, props) => {
45
45
  useGridTreeData(apiRef);
46
46
  useGridKeyboardNavigation(apiRef, props);
47
47
  useGridSelection(apiRef, props);
48
- useGridDetailPanel(apiRef, props);
49
48
  useGridColumnPinning(apiRef, props);
50
49
  useGridColumns(apiRef, props);
51
50
  useGridRows(apiRef, props);
52
51
  useGridParamsApi(apiRef);
52
+ useGridDetailPanel(apiRef, props);
53
53
  useGridColumnSpanning(apiRef);
54
54
  const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
55
55
  useGridEditing(apiRef, props);
@@ -2,7 +2,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from '@mui/x-data-grid-pro';
3
3
  import { buildWarning } from '@mui/x-data-grid/internals';
4
4
 
5
- const getExcelJs = () => import('exceljs');
5
+ const getExcelJs = async () => {
6
+ const {
7
+ default: excelJsDefault
8
+ } = await import('exceljs');
9
+ return excelJsDefault;
10
+ };
6
11
 
7
12
  const warnInvalidFormattedValue = buildWarning(['MUI: When the value of a field is an object or a `renderCell` is provided, the Excel export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
8
13
 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.12.2
1
+ /** @license MUI v5.13.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -323,7 +323,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
323
323
  /**
324
324
  * Function that returns the height of the row detail panel.
325
325
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
326
- * @returns {number} The height in pixels.
326
+ * @returns {number | string} The height in pixels or "auto" to use the content height.
327
327
  * @default "() => 500"
328
328
  */
329
329
  getDetailPanelHeight: PropTypes.func,
@@ -45,11 +45,11 @@ export var useDataGridPremiumComponent = function useDataGridPremiumComponent(in
45
45
  useGridTreeData(apiRef);
46
46
  useGridKeyboardNavigation(apiRef, props);
47
47
  useGridSelection(apiRef, props);
48
- useGridDetailPanel(apiRef, props);
49
48
  useGridColumnPinning(apiRef, props);
50
49
  useGridColumns(apiRef, props);
51
50
  useGridRows(apiRef, props);
52
51
  useGridParamsApi(apiRef);
52
+ useGridDetailPanel(apiRef, props);
53
53
  useGridColumnSpanning(apiRef);
54
54
  var useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
55
55
  useGridEditing(apiRef, props);
@@ -1,8 +1,8 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
- import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
2
  import _extends from "@babel/runtime/helpers/esm/extends";
4
3
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
4
  import _typeof from "@babel/runtime/helpers/esm/typeof";
5
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
6
6
 
7
7
  var _defaultColumnsStyles;
8
8
 
@@ -10,9 +10,34 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
  import { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from '@mui/x-data-grid-pro';
11
11
  import { buildWarning } from '@mui/x-data-grid/internals';
12
12
 
13
- var getExcelJs = function getExcelJs() {
14
- return import('exceljs');
15
- };
13
+ var getExcelJs = /*#__PURE__*/function () {
14
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
15
+ var _yield$import, excelJsDefault;
16
+
17
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
18
+ while (1) {
19
+ switch (_context.prev = _context.next) {
20
+ case 0:
21
+ _context.next = 2;
22
+ return import('exceljs');
23
+
24
+ case 2:
25
+ _yield$import = _context.sent;
26
+ excelJsDefault = _yield$import.default;
27
+ return _context.abrupt("return", excelJsDefault);
28
+
29
+ case 5:
30
+ case "end":
31
+ return _context.stop();
32
+ }
33
+ }
34
+ }, _callee);
35
+ }));
36
+
37
+ return function getExcelJs() {
38
+ return _ref.apply(this, arguments);
39
+ };
40
+ }();
16
41
 
17
42
  var warnInvalidFormattedValue = buildWarning(['MUI: When the value of a field is an object or a `renderCell` is provided, the Excel export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
18
43
 
@@ -182,19 +207,19 @@ export function buildExcel(_x, _x2) {
182
207
  }
183
208
 
184
209
  function _buildExcel() {
185
- _buildExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options, api) {
210
+ _buildExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(options, api) {
186
211
  var columns, rowIds, includeHeaders, valueOptionsSheetName, exceljsPreProcess, exceljsPostProcess, _options$columnsStyle, columnsStyles, excelJS, workbook, worksheet, columnsWithArrayValueOptions, defaultValueOptionsFormulae, valueOptionsWorksheet;
187
212
 
188
- return _regeneratorRuntime.wrap(function _callee$(_context) {
213
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
189
214
  while (1) {
190
- switch (_context.prev = _context.next) {
215
+ switch (_context2.prev = _context2.next) {
191
216
  case 0:
192
217
  columns = options.columns, rowIds = options.rowIds, includeHeaders = options.includeHeaders, valueOptionsSheetName = options.valueOptionsSheetName, exceljsPreProcess = options.exceljsPreProcess, exceljsPostProcess = options.exceljsPostProcess, _options$columnsStyle = options.columnsStyles, columnsStyles = _options$columnsStyle === void 0 ? {} : _options$columnsStyle;
193
- _context.next = 3;
218
+ _context2.next = 3;
194
219
  return getExcelJs();
195
220
 
196
221
  case 3:
197
- excelJS = _context.sent;
222
+ excelJS = _context2.sent;
198
223
  workbook = new excelJS.Workbook();
199
224
  worksheet = workbook.addWorksheet('Sheet1');
200
225
  worksheet.columns = columns.map(function (column) {
@@ -202,11 +227,11 @@ function _buildExcel() {
202
227
  });
203
228
 
204
229
  if (!exceljsPreProcess) {
205
- _context.next = 10;
230
+ _context2.next = 10;
206
231
  break;
207
232
  }
208
233
 
209
- _context.next = 10;
234
+ _context2.next = 10;
210
235
  return exceljsPreProcess({
211
236
  workbook: workbook,
212
237
  worksheet: worksheet
@@ -226,8 +251,8 @@ function _buildExcel() {
226
251
 
227
252
  if (columnsWithArrayValueOptions.length) {
228
253
  valueOptionsWorksheet = workbook.addWorksheet(valueOptionsSheetName);
229
- valueOptionsWorksheet.columns = columnsWithArrayValueOptions.map(function (_ref) {
230
- var field = _ref.field;
254
+ valueOptionsWorksheet.columns = columnsWithArrayValueOptions.map(function (_ref2) {
255
+ var field = _ref2.field;
231
256
  return {
232
257
  key: field
233
258
  };
@@ -264,25 +289,25 @@ function _buildExcel() {
264
289
  });
265
290
 
266
291
  if (!exceljsPostProcess) {
267
- _context.next = 18;
292
+ _context2.next = 18;
268
293
  break;
269
294
  }
270
295
 
271
- _context.next = 18;
296
+ _context2.next = 18;
272
297
  return exceljsPostProcess({
273
298
  workbook: workbook,
274
299
  worksheet: worksheet
275
300
  });
276
301
 
277
302
  case 18:
278
- return _context.abrupt("return", workbook);
303
+ return _context2.abrupt("return", workbook);
279
304
 
280
305
  case 19:
281
306
  case "end":
282
- return _context.stop();
307
+ return _context2.stop();
283
308
  }
284
309
  }
285
- }, _callee);
310
+ }, _callee2);
286
311
  }));
287
312
  return _buildExcel.apply(this, arguments);
288
313
  }
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.12.2
1
+ /** @license MUI v5.13.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY1NTMzMDQwMDAwMA==";
3
+ var releaseInfo = "MTY1Nzg1NDAwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -323,7 +323,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
323
323
  /**
324
324
  * Function that returns the height of the row detail panel.
325
325
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
326
- * @returns {number} The height in pixels.
326
+ * @returns {number | string} The height in pixels or "auto" to use the content height.
327
327
  * @default "() => 500"
328
328
  */
329
329
  getDetailPanelHeight: PropTypes.func,
@@ -43,11 +43,11 @@ export const useDataGridPremiumComponent = (inputApiRef, props) => {
43
43
  useGridTreeData(apiRef);
44
44
  useGridKeyboardNavigation(apiRef, props);
45
45
  useGridSelection(apiRef, props);
46
- useGridDetailPanel(apiRef, props);
47
46
  useGridColumnPinning(apiRef, props);
48
47
  useGridColumns(apiRef, props);
49
48
  useGridRows(apiRef, props);
50
49
  useGridParamsApi(apiRef);
50
+ useGridDetailPanel(apiRef, props);
51
51
  useGridColumnSpanning(apiRef);
52
52
  const useGridEditing = props.experimentalFeatures?.newEditingApi ? useGridEditing_new : useGridEditing_old;
53
53
  useGridEditing(apiRef, props);
@@ -2,7 +2,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from '@mui/x-data-grid-pro';
3
3
  import { buildWarning } from '@mui/x-data-grid/internals';
4
4
 
5
- const getExcelJs = () => import('exceljs');
5
+ const getExcelJs = async () => {
6
+ const {
7
+ default: excelJsDefault
8
+ } = await import('exceljs');
9
+ return excelJsDefault;
10
+ };
6
11
 
7
12
  const warnInvalidFormattedValue = buildWarning(['MUI: When the value of a field is an object or a `renderCell` is provided, the Excel export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
8
13
 
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.12.2
1
+ /** @license MUI v5.13.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY1NTMzMDQwMDAwMA==";
3
+ const releaseInfo = "MTY1Nzg1NDAwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -346,7 +346,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
346
346
  /**
347
347
  * Function that returns the height of the row detail panel.
348
348
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
349
- * @returns {number} The height in pixels.
349
+ * @returns {number | string} The height in pixels or "auto" to use the content height.
350
350
  * @default "() => 500"
351
351
  */
352
352
  getDetailPanelHeight: _propTypes.default.func,
@@ -56,11 +56,11 @@ const useDataGridPremiumComponent = (inputApiRef, props) => {
56
56
  (0, _internals.useGridTreeData)(apiRef);
57
57
  (0, _internals.useGridKeyboardNavigation)(apiRef, props);
58
58
  (0, _internals.useGridSelection)(apiRef, props);
59
- (0, _internals.useGridDetailPanel)(apiRef, props);
60
59
  (0, _internals.useGridColumnPinning)(apiRef, props);
61
60
  (0, _internals.useGridColumns)(apiRef, props);
62
61
  (0, _internals.useGridRows)(apiRef, props);
63
62
  (0, _internals.useGridParamsApi)(apiRef);
63
+ (0, _internals.useGridDetailPanel)(apiRef, props);
64
64
  (0, _internals.useGridColumnSpanning)(apiRef);
65
65
  const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? _internals.useGridEditing_new : _internals.useGridEditing_old;
66
66
  useGridEditing(apiRef, props);
@@ -17,7 +17,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
19
 
20
- const getExcelJs = () => Promise.resolve().then(() => _interopRequireWildcard(require('exceljs')));
20
+ const getExcelJs = async () => {
21
+ const {
22
+ default: excelJsDefault
23
+ } = await Promise.resolve().then(() => _interopRequireWildcard(require('exceljs')));
24
+ return excelJsDefault;
25
+ };
21
26
 
22
27
  const warnInvalidFormattedValue = (0, _internals.buildWarning)(['MUI: When the value of a field is an object or a `renderCell` is provided, the Excel export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
23
28
 
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.12.2
1
+ /** @license MUI v5.13.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
8
8
  var _utils = require("@mui/utils");
9
9
 
10
10
  const getReleaseInfo = () => {
11
- const releaseInfo = "MTY1NTMzMDQwMDAwMA==";
11
+ const releaseInfo = "MTY1Nzg1NDAwMDAwMA==";
12
12
 
13
13
  if (process.env.NODE_ENV !== 'production') {
14
14
  // A simple hack to set the value in the test environment (has no build step).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "5.12.2",
3
+ "version": "5.13.1",
4
4
  "description": "The Premium plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -31,16 +31,16 @@
31
31
  "directory": "packages/grid/x-data-grid-premium"
32
32
  },
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.17.2",
34
+ "@babel/runtime": "^7.18.6",
35
35
  "@mui/utils": "^5.4.1",
36
- "@mui/x-data-grid": "5.12.2",
37
- "@mui/x-data-grid-pro": "5.12.2",
38
- "@mui/x-license-pro": "5.12.2",
36
+ "@mui/x-data-grid": "5.13.1",
37
+ "@mui/x-data-grid-pro": "5.13.1",
38
+ "@mui/x-license-pro": "5.13.1",
39
39
  "@types/format-util": "^1.0.2",
40
- "clsx": "^1.0.4",
40
+ "clsx": "^1.2.1",
41
41
  "exceljs": "^4.3.0",
42
42
  "prop-types": "^15.8.1",
43
- "reselect": "^4.1.5"
43
+ "reselect": "^4.1.6"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@mui/material": "^5.4.1",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY1NTMzMDQwMDAwMA==";
3
+ const releaseInfo = "MTY1Nzg1NDAwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).