@mui/x-data-grid-generator 6.0.4 → 6.2.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,116 @@
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
+ ## 6.2.0
7
+
8
+ _Apr 13, 2023_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - Add `@mui/base` as a `peerDependency` of `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` (#8590) @LukasTy
13
+
14
+ Both libraries were not working correctly if used without `@mui/base`.
15
+ Most package manager should automatically use the `@mui/base` version installed for `@mui/material`.
16
+
17
+ - The value rendered in the picker or field input no longer has spaces around the `/` characters (#8425) @flaviendelangle
18
+
19
+ You can use the `formatDensity='spacious'` prop to add it back.
20
+ More information on [the dedicated doc section](https://mui.com/x/react-date-pickers/custom-field/#change-the-format-density)
21
+
22
+ - 🌍 Improve French (fr-FR) and Urdu (ur-PK) and locales.
23
+ - 🐞 Bugfixes
24
+ - 📚 Documentation improvements
25
+
26
+ ### `@mui/x-data-grid@v6.2.0` / `@mui/x-data-grid-pro@v6.2.0` / `@mui/x-data-grid-premium@v6.2.0`
27
+
28
+ #### Changes
29
+
30
+ - [DataGrid] Reset selection state on `checkboxSelection` toggle (#8522) @MBilalShafi
31
+ - [DataGrid] Use `baseSelect` slot instead of `baseTextField` with `select={true}` (#8110) @cherniavskii
32
+ - [l10n] Improve French (fr-FR) locale (#8537) @vallereaugabriel
33
+ - [l10n] Improve Urdu (ur-PK) locale (#8513) @SFARPak
34
+
35
+ ### `@mui/x-date-pickers@v6.2.0` / `@mui/x-date-pickers-pro@v6.2.0`
36
+
37
+ #### Changes
38
+
39
+ - [DateTimePicker] Fix `TimeClock` validation ignoring date by default (#8570) @LukasTy
40
+ - [fields] Fix reliance on section order (#8545) @LukasTy
41
+ - [fields] Make the space between format separators controllable (#8425) @flaviendelangle
42
+ - [pickers] Add `@mui/base` to `peerDependencies` (#8590) @LukasTy
43
+ - [pickers] Fix JSDoc for `formatDensity` prop (#8601) @flaviendelangle
44
+ - [pickers] Improve value lifecycle on non-controlled pickers (#8312) @flaviendelangle
45
+ - [pickers] Migrate `AdapterDayjs` to our repository (#8487) @flaviendelangle
46
+
47
+ ### Docs
48
+
49
+ - [docs] Fix "Custom day rendering" demo alignment (#8541) @LukasTy
50
+ - [docs] Fix **below** typo (#8576) @alexfauquette
51
+
52
+ ### Core
53
+
54
+ - [core] Optimize `renovate` rules (#8575) @LukasTy
55
+ - [core] Upgrade monorepo (#8578) @cherniavskii
56
+ - [core] Update last release date (#8569) @DanailH
57
+
58
+ ## 6.1.0
59
+
60
+ _Apr 10, 2023_
61
+
62
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
63
+
64
+ - 🌍 Add Catalan (ca-ES), Kazakh (kz-KZ) and improve Spanish (es-ES), Dutch (nl-NL), Hebrew (he-IL), Hungarian (hu-HU), Japanese (ja-JP), Portuguese (pt-BR), and Russian (ru-RU) locales
65
+ - ✨ Allow to control visibility of columns shown in the columns panel (#8401) @MBilalShafi
66
+ - 🐞 Bugfixes
67
+ - 📚 Documentation improvements
68
+
69
+ ### `@mui/x-data-grid@v6.1.0` / `@mui/x-data-grid-pro@v6.1.0` / `@mui/x-data-grid-premium@v6.1.0`
70
+
71
+ #### Changes
72
+
73
+ - [DataGrid] Allow to control visibility of columns shown in the `ColumnsPanel` component (#8401) @MBilalShafi
74
+ - [DataGrid] Fix filters with empty array value not being removed from the filter model (#8501) @cherniavskii
75
+ - [DataGrid] Fix memory leaks in development (#8301) @cherniavskii
76
+ - [DataGrid] Sync `date` column value when entering edit mode by pressing a digit (#8364) @m4theushw
77
+ - [DataGrid] Wrap column menu button with a tooltip (#7890) @cherniavskii
78
+ - [l10n] Improve Dutch (nl-NL) locale (#8491) @thedutchruben
79
+ - [l10n] Improve Hungarian (hu-HU) locale (#8486) @PetakCC
80
+ - [l10n] Improve Japanese (ja-JP) locale (#8462) @megos
81
+ - [l10n] Improve Portuguese (pt-BR) locale (#8480) @pwnedev
82
+ - [l10n] Improve Russian (ru-RU) locale (#8510) @alexrapro
83
+
84
+ ### `@mui/x-date-pickers@v6.1.0` / `@mui/x-date-pickers-pro@v6.1.0`
85
+
86
+ #### Changes
87
+
88
+ - [fields] Fix RTL navigation (#8490) @alexfauquette
89
+ - [fields] Fix usage of `slotProps.textField.InputProps` (#8428) @flaviendelangle
90
+ - [pickers] Fix `componentsProps.dialog` propagation (#8509) @LukasTy
91
+ - [pickers] Move `hasError` from `fieldValueManager` to `valueManager` (#8453) @flaviendelangle
92
+ - [pickers] Move the adapters interfaces to the X repository (#8412) @flaviendelangle
93
+ - [pickers] Update peer dependency versions (#8531) @LukasTy
94
+ - [pickers] Fix `isValid` regression (#8543) @LukasTy
95
+ - [l10n] Add Catalan (Spain) (ca-ES) and improve Spanish (es-ES) locales (#8498) @makenshikuro
96
+ - [l10n] Add Kazakh (kz-KZ) locale (#8451) @zhunus
97
+ - [l10n] Improve Dutch (nl-NL) locale (#8491) @thedutchruben
98
+ - [l10n] Improve Hebrew (he-IL) locale (#8464) @soris1989
99
+ - [l10n] Improve Japanese (ja-JP) locale (#8462) @megos
100
+ - [l10n] Improve Portuguese (pt-BR) locale (#8480) @pwnedev
101
+
102
+ ### Docs
103
+
104
+ - [docs] Fix 301 redirect (#8524) @alexfauquette
105
+ - [docs] Fix 404 links (#8454) @alexfauquette
106
+ - [docs] Fix broken API reference link (#8460) @oliviertassinari
107
+
108
+ ### Core
109
+
110
+ - [core] Avoid 301 links (#8383) @oliviertassinari
111
+ - [core] Fix the l10n helper by using danger instead of actions (#8512) @alexfauquette
112
+ - [core] Help contributors for l10n PRs (#8503) @alexfauquette
113
+ - [core] Remove legacy token (#8457) @oliviertassinari
114
+ - [charts] Add a styling system (#8445) @alexfauquette
115
+
6
116
  ## 6.0.4
7
117
 
8
118
  _Mar 30, 2023_
@@ -15,5 +15,5 @@ export type Movie = {
15
15
  };
16
16
  export declare const useMovieData: () => {
17
17
  rows: Movie[];
18
- columns: GridColDef<any, any, any>[];
18
+ columns: GridColDef[];
19
19
  };
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.0.4
2
+ * @mui/x-data-grid-generator v6.2.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -5,7 +5,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
7
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  import * as React from 'react';
10
10
  import LRUCache from 'lru-cache';
11
11
  import { getRealGridData } from '../services/real-data-service';
@@ -25,43 +25,41 @@ function extrapolateSeed(_x, _x2) {
25
25
  function _extrapolateSeed() {
26
26
  _extrapolateSeed = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(rowLength, data) {
27
27
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
28
- while (1) {
29
- switch (_context2.prev = _context2.next) {
30
- case 0:
31
- return _context2.abrupt("return", new Promise(function (resolve) {
32
- var seed = data.rows;
33
- var rows = data.rows.slice();
34
- var tasks = {
35
- current: rowLength - seed.length
36
- };
37
- function work() {
38
- var row = {};
39
- for (var j = 0; j < data.columns.length; j += 1) {
40
- var column = data.columns[j];
41
- var index = Math.round(Math.random() * (seed.length - 1));
42
- if (column.field === 'id') {
43
- row.id = "id-".concat(tasks.current + seed.length);
44
- } else {
45
- row[column.field] = seed[index][column.field];
46
- }
28
+ while (1) switch (_context2.prev = _context2.next) {
29
+ case 0:
30
+ return _context2.abrupt("return", new Promise(function (resolve) {
31
+ var seed = data.rows;
32
+ var rows = data.rows.slice();
33
+ var tasks = {
34
+ current: rowLength - seed.length
35
+ };
36
+ function work() {
37
+ var row = {};
38
+ for (var j = 0; j < data.columns.length; j += 1) {
39
+ var column = data.columns[j];
40
+ var index = Math.round(Math.random() * (seed.length - 1));
41
+ if (column.field === 'id') {
42
+ row.id = "id-".concat(tasks.current + seed.length);
43
+ } else {
44
+ row[column.field] = seed[index][column.field];
47
45
  }
48
- rows.push(row);
49
- tasks.current -= 1;
50
46
  }
51
- asyncWorker({
52
- work: work,
53
- done: function done() {
54
- return resolve(_extends({}, data, {
55
- rows: rows
56
- }));
57
- },
58
- tasks: tasks
59
- });
60
- }));
61
- case 1:
62
- case "end":
63
- return _context2.stop();
64
- }
47
+ rows.push(row);
48
+ tasks.current -= 1;
49
+ }
50
+ asyncWorker({
51
+ work: work,
52
+ done: function done() {
53
+ return resolve(_extends({}, data, {
54
+ rows: rows
55
+ }));
56
+ },
57
+ tasks: tasks
58
+ });
59
+ }));
60
+ case 1:
61
+ case "end":
62
+ return _context2.stop();
65
63
  }
66
64
  }, _callee2);
67
65
  }));
@@ -172,53 +170,51 @@ export var useDemoData = function useDemoData(options) {
172
170
  var _options$treeData2, _options$treeData3, _options$treeData4;
173
171
  var newData;
174
172
  return _regeneratorRuntime.wrap(function _callee$(_context) {
175
- while (1) {
176
- switch (_context.prev = _context.next) {
177
- case 0:
178
- setLoading(true);
179
- if (!(rowLength > 1000)) {
180
- _context.next = 10;
181
- break;
182
- }
183
- _context.next = 4;
184
- return getRealGridData(1000, columns);
185
- case 4:
186
- newData = _context.sent;
187
- _context.next = 7;
188
- return extrapolateSeed(rowLength, newData);
189
- case 7:
190
- newData = _context.sent;
191
- _context.next = 13;
173
+ while (1) switch (_context.prev = _context.next) {
174
+ case 0:
175
+ setLoading(true);
176
+ if (!(rowLength > 1000)) {
177
+ _context.next = 10;
192
178
  break;
193
- case 10:
194
- _context.next = 12;
195
- return getRealGridData(rowLength, columns);
196
- case 12:
197
- newData = _context.sent;
198
- case 13:
199
- if (active) {
200
- _context.next = 15;
201
- break;
202
- }
203
- return _context.abrupt("return");
204
- case 15:
205
- newData = addTreeDataOptionsToDemoData(newData, {
206
- maxDepth: (_options$treeData2 = options.treeData) == null ? void 0 : _options$treeData2.maxDepth,
207
- groupingField: (_options$treeData3 = options.treeData) == null ? void 0 : _options$treeData3.groupingField,
208
- averageChildren: (_options$treeData4 = options.treeData) == null ? void 0 : _options$treeData4.averageChildren
209
- });
179
+ }
180
+ _context.next = 4;
181
+ return getRealGridData(1000, columns);
182
+ case 4:
183
+ newData = _context.sent;
184
+ _context.next = 7;
185
+ return extrapolateSeed(rowLength, newData);
186
+ case 7:
187
+ newData = _context.sent;
188
+ _context.next = 13;
189
+ break;
190
+ case 10:
191
+ _context.next = 12;
192
+ return getRealGridData(rowLength, columns);
193
+ case 12:
194
+ newData = _context.sent;
195
+ case 13:
196
+ if (active) {
197
+ _context.next = 15;
198
+ break;
199
+ }
200
+ return _context.abrupt("return");
201
+ case 15:
202
+ newData = addTreeDataOptionsToDemoData(newData, {
203
+ maxDepth: (_options$treeData2 = options.treeData) == null ? void 0 : _options$treeData2.maxDepth,
204
+ groupingField: (_options$treeData3 = options.treeData) == null ? void 0 : _options$treeData3.groupingField,
205
+ averageChildren: (_options$treeData4 = options.treeData) == null ? void 0 : _options$treeData4.averageChildren
206
+ });
210
207
 
211
- // It's quite slow. No need for it in production.
212
- if (process.env.NODE_ENV !== 'production') {
213
- deepFreeze(newData);
214
- }
215
- dataCache.set(cacheKey, newData);
216
- setData(newData);
217
- setLoading(false);
218
- case 20:
219
- case "end":
220
- return _context.stop();
221
- }
208
+ // It's quite slow. No need for it in production.
209
+ if (process.env.NODE_ENV !== 'production') {
210
+ deepFreeze(newData);
211
+ }
212
+ dataCache.set(cacheKey, newData);
213
+ setData(newData);
214
+ setLoading(false);
215
+ case 20:
216
+ case "end":
217
+ return _context.stop();
222
218
  }
223
219
  }, _callee);
224
220
  }))();
@@ -210,38 +210,36 @@ export var createFakeServer = function createFakeServer(dataSetOptions, serverOp
210
210
  var _fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
211
211
  var _yield$loadServerRows, returnedRows, nextCursor, totalRowCount, newRep;
212
212
  return _regeneratorRuntime.wrap(function _callee$(_context) {
213
- while (1) {
214
- switch (_context.prev = _context.next) {
215
- case 0:
216
- _context.next = 2;
217
- return loadServerRows(rows, queryOptions, serverOptionsWithDefault, columnsWithDefaultColDef);
218
- case 2:
219
- _yield$loadServerRows = _context.sent;
220
- returnedRows = _yield$loadServerRows.returnedRows;
221
- nextCursor = _yield$loadServerRows.nextCursor;
222
- totalRowCount = _yield$loadServerRows.totalRowCount;
223
- if (active) {
224
- _context.next = 8;
225
- break;
213
+ while (1) switch (_context.prev = _context.next) {
214
+ case 0:
215
+ _context.next = 2;
216
+ return loadServerRows(rows, queryOptions, serverOptionsWithDefault, columnsWithDefaultColDef);
217
+ case 2:
218
+ _yield$loadServerRows = _context.sent;
219
+ returnedRows = _yield$loadServerRows.returnedRows;
220
+ nextCursor = _yield$loadServerRows.nextCursor;
221
+ totalRowCount = _yield$loadServerRows.totalRowCount;
222
+ if (active) {
223
+ _context.next = 8;
224
+ break;
225
+ }
226
+ return _context.abrupt("return");
227
+ case 8:
228
+ newRep = {
229
+ rows: returnedRows,
230
+ pageInfo: {
231
+ totalRowCount: totalRowCount,
232
+ nextCursor: nextCursor,
233
+ pageSize: returnedRows.length
226
234
  }
227
- return _context.abrupt("return");
228
- case 8:
229
- newRep = {
230
- rows: returnedRows,
231
- pageInfo: {
232
- totalRowCount: totalRowCount,
233
- nextCursor: nextCursor,
234
- pageSize: returnedRows.length
235
- }
236
- };
237
- setResponse(function (prev) {
238
- return isDeepEqual(prev, newRep) ? prev : newRep;
239
- });
240
- setIsLoading(false);
241
- case 11:
242
- case "end":
243
- return _context.stop();
244
- }
235
+ };
236
+ setResponse(function (prev) {
237
+ return isDeepEqual(prev, newRep) ? prev : newRep;
238
+ });
239
+ setIsLoading(false);
240
+ case 11:
241
+ case "end":
242
+ return _context.stop();
245
243
  }
246
244
  }, _callee);
247
245
  }));
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.0.4
2
+ * @mui/x-data-grid-generator v6.2.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -32,24 +32,22 @@ function EditCountry(props) {
32
32
  var handleChange = React.useCallback( /*#__PURE__*/function () {
33
33
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(event, newValue) {
34
34
  return _regeneratorRuntime.wrap(function _callee$(_context) {
35
- while (1) {
36
- switch (_context.prev = _context.next) {
37
- case 0:
38
- _context.next = 2;
39
- return apiRef.current.setEditCellValue({
40
- id: id,
41
- field: field,
42
- value: newValue
43
- }, event);
44
- case 2:
45
- apiRef.current.stopCellEditMode({
46
- id: id,
47
- field: field
48
- });
49
- case 3:
50
- case "end":
51
- return _context.stop();
52
- }
35
+ while (1) switch (_context.prev = _context.next) {
36
+ case 0:
37
+ _context.next = 2;
38
+ return apiRef.current.setEditCellValue({
39
+ id: id,
40
+ field: field,
41
+ value: newValue
42
+ }, event);
43
+ case 2:
44
+ apiRef.current.stopCellEditMode({
45
+ id: id,
46
+ field: field
47
+ });
48
+ case 3:
49
+ case "end":
50
+ return _context.stop();
53
51
  }
54
52
  }, _callee);
55
53
  }));
@@ -32,24 +32,22 @@ function EditCurrency(props) {
32
32
  var handleChange = React.useCallback( /*#__PURE__*/function () {
33
33
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(event, newValue) {
34
34
  return _regeneratorRuntime.wrap(function _callee$(_context) {
35
- while (1) {
36
- switch (_context.prev = _context.next) {
37
- case 0:
38
- _context.next = 2;
39
- return apiRef.current.setEditCellValue({
40
- id: id,
41
- field: field,
42
- value: newValue.toUpperCase()
43
- }, event);
44
- case 2:
45
- apiRef.current.stopCellEditMode({
46
- id: id,
47
- field: field
48
- });
49
- case 3:
50
- case "end":
51
- return _context.stop();
52
- }
35
+ while (1) switch (_context.prev = _context.next) {
36
+ case 0:
37
+ _context.next = 2;
38
+ return apiRef.current.setEditCellValue({
39
+ id: id,
40
+ field: field,
41
+ value: newValue.toUpperCase()
42
+ }, event);
43
+ case 2:
44
+ apiRef.current.stopCellEditMode({
45
+ id: id,
46
+ field: field
47
+ });
48
+ case 3:
49
+ case "end":
50
+ return _context.stop();
53
51
  }
54
52
  }, _callee);
55
53
  }));
@@ -18,24 +18,22 @@ function EditIncoterm(props) {
18
18
  var handleChange = /*#__PURE__*/function () {
19
19
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(event) {
20
20
  return _regeneratorRuntime.wrap(function _callee$(_context) {
21
- while (1) {
22
- switch (_context.prev = _context.next) {
23
- case 0:
24
- _context.next = 2;
25
- return apiRef.current.setEditCellValue({
26
- id: id,
27
- field: field,
28
- value: event.target.value
29
- }, event);
30
- case 2:
31
- apiRef.current.stopCellEditMode({
32
- id: id,
33
- field: field
34
- });
35
- case 3:
36
- case "end":
37
- return _context.stop();
38
- }
21
+ while (1) switch (_context.prev = _context.next) {
22
+ case 0:
23
+ _context.next = 2;
24
+ return apiRef.current.setEditCellValue({
25
+ id: id,
26
+ field: field,
27
+ value: event.target.value
28
+ }, event);
29
+ case 2:
30
+ apiRef.current.stopCellEditMode({
31
+ id: id,
32
+ field: field
33
+ });
34
+ case 3:
35
+ case "end":
36
+ return _context.stop();
39
37
  }
40
38
  }, _callee);
41
39
  }));
@@ -15,24 +15,22 @@ function EditRating(props) {
15
15
  var handleChange = /*#__PURE__*/function () {
16
16
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(event) {
17
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 apiRef.current.setEditCellValue({
23
- id: id,
24
- field: field,
25
- value: Number(event.target.value)
26
- }, event);
27
- case 2:
28
- apiRef.current.stopCellEditMode({
29
- id: id,
30
- field: field
31
- });
32
- case 3:
33
- case "end":
34
- return _context.stop();
35
- }
18
+ while (1) switch (_context.prev = _context.next) {
19
+ case 0:
20
+ _context.next = 2;
21
+ return apiRef.current.setEditCellValue({
22
+ id: id,
23
+ field: field,
24
+ value: Number(event.target.value)
25
+ }, event);
26
+ case 2:
27
+ apiRef.current.stopCellEditMode({
28
+ id: id,
29
+ field: field
30
+ });
31
+ case 3:
32
+ case "end":
33
+ return _context.stop();
36
34
  }
37
35
  }, _callee);
38
36
  }));
@@ -24,28 +24,26 @@ function EditStatus(props) {
24
24
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(event) {
25
25
  var isValid;
26
26
  return _regeneratorRuntime.wrap(function _callee$(_context) {
27
- while (1) {
28
- switch (_context.prev = _context.next) {
29
- case 0:
30
- _context.next = 2;
31
- return apiRef.current.setEditCellValue({
27
+ while (1) switch (_context.prev = _context.next) {
28
+ case 0:
29
+ _context.next = 2;
30
+ return apiRef.current.setEditCellValue({
31
+ id: id,
32
+ field: field,
33
+ value: event.target.value
34
+ });
35
+ case 2:
36
+ isValid = _context.sent;
37
+ if (isValid && rootProps.editMode === GridEditModes.Cell) {
38
+ apiRef.current.stopCellEditMode({
32
39
  id: id,
33
40
  field: field,
34
- value: event.target.value
41
+ cellToFocusAfter: 'below'
35
42
  });
36
- case 2:
37
- isValid = _context.sent;
38
- if (isValid && rootProps.editMode === GridEditModes.Cell) {
39
- apiRef.current.stopCellEditMode({
40
- id: id,
41
- field: field,
42
- cellToFocusAfter: 'below'
43
- });
44
- }
45
- case 4:
46
- case "end":
47
- return _context.stop();
48
- }
43
+ }
44
+ case 4:
45
+ case "end":
46
+ return _context.stop();
49
47
  }
50
48
  }, _callee);
51
49
  }));
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.0.4
2
+ * @mui/x-data-grid-generator v6.2.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.0.4
2
+ * @mui/x-data-grid-generator v6.2.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "6.0.4",
3
+ "version": "6.2.0",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.21.0",
23
- "@mui/base": "^5.0.0-alpha.122",
24
- "@mui/x-data-grid-premium": "6.0.4",
23
+ "@mui/base": "^5.0.0-alpha.123",
24
+ "@mui/x-data-grid-premium": "6.2.0",
25
25
  "chance": "^1.1.11",
26
26
  "clsx": "^1.2.1",
27
27
  "lru-cache": "^7.18.3"