@mui/x-data-grid-generator 7.0.0-alpha.3 → 7.0.0-alpha.5

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,169 @@
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
+ ## 7.0.0-alpha.5
7
+
8
+ _Dec 14, 2023_
9
+
10
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 💫 New recipe added for the Data Grid
13
+ - 🌍 Improve Swedish (sv-SE) and Urdu (ur-PK) locales on the Data Grid
14
+ - 🐞 Bugfixes
15
+
16
+ ### Data Grid
17
+
18
+ #### Breaking changes
19
+
20
+ - The `instanceId` prop is now required for state selectors.
21
+ This prop is used to distinguish between multiple Data Grid instances on the same page.
22
+ See [migration docs](https://next.mui.com/x/migration/migration-data-grid-v6/#instanceid-prop-is-required-for-state-selectors) for more details.
23
+
24
+ #### `@mui/x-data-grid@7.0.0-alpha.5`
25
+
26
+ - [DataGrid] Make `instanceId` required for state selectors (#11395) @cherniavskii
27
+ - [DataGrid] Recipe for grouped rows autosizing (#11401) @michelengelen
28
+ - [l10n] Improve Swedish (sv-SE) locale (#11373) @fredrikcarlbom
29
+ - [l10n] Improve Urdu (ur-PK) locale (#11400) @MBilalShafi
30
+
31
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
32
+
33
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.5`.
34
+
35
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
36
+
37
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.5`.
38
+
39
+ ### Date Pickers
40
+
41
+ #### Breaking changes
42
+
43
+ - The slot interfaces got renamed to match with `@mui/base` naming.
44
+ The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsProps` with `SlotProps`.
45
+
46
+ ```diff
47
+ - DateCalendarSlotsComponent
48
+ + DateCalendarSlots
49
+ - DateCalendarSlotsComponentsProps
50
+ + DateCalendarSlotProps
51
+ ```
52
+
53
+ #### `@mui/x-date-pickers@7.0.0-alpha.5`
54
+
55
+ - [fields] Support empty sections (#10307) @flaviendelangle
56
+ - [pickers] Fix field types to avoid error on latest `@types/react` version (#11397) @LukasTy
57
+ - [pickers] Remove all relative imports to the internals index file (#11375) @flaviendelangle
58
+ - [pickers] Rename slots interfaces (#11339) @alexfauquette
59
+ - [pickers] Simplify the API of the field hooks (#11371) @flaviendelangle
60
+ - [pickers] Support name prop (#11025) @gitstart
61
+
62
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
63
+
64
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.5`, plus:
65
+
66
+ - [DateRangePicker] Fix `autoFocus` behavior (#11273) @kealjones-wk
67
+
68
+ ### Charts / `@mui/x-charts@7.0.0-alpha.5`
69
+
70
+ - [charts] Fix size overflow (#11385) @alexfauquette
71
+
72
+ ### `@mui/x-codemod@7.0.0-alpha.5`
73
+
74
+ - [codemod] Add `cellSelection` codemod and update migration guide (#11353) @MBilalShafi
75
+
76
+ ### Docs
77
+
78
+ - [docs] Respect GoT books (@janoma) (#11387) @alexfauquette
79
+
80
+ ### Core
81
+
82
+ - [core] Automate cherry-pick of PRs from `next` -> `master` (#11382) @MBilalShafi
83
+ - [github] Update `no-response` workflow (#11369) @MBilalShafi
84
+ - [test] Fix flaky screenshots (#11388) @cherniavskii
85
+
86
+ ## 7.0.0-alpha.4
87
+
88
+ _Dec 8, 2023_
89
+
90
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
91
+
92
+ - 🚀 The scatter charts now use voronoi to trigger items
93
+
94
+ Users needed to hover the item to highlight the scatter item or show the tooltip.
95
+ Now they can interact with data by triggering the closest element. See the [docs page](https://next.mui.com/x/react-charts/scatter/#interaction) for more info.
96
+
97
+ - 📚 Add [Pickers FAQ page](https://next.mui.com/x/react-date-pickers/faq/)
98
+ - 🎉 The Data Grid Header filters feature is now stable
99
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
100
+ - 🐞 Bugfixes
101
+
102
+ ### Data Grid
103
+
104
+ #### Breaking changes
105
+
106
+ - The header filters feature is now stable. `unstable_` prefix is removed from prop `headerFilters` and related exports.
107
+ See [migration docs](https://next.mui.com/x/migration/migration-data-grid-v6/#filtering) for more details.
108
+
109
+ - The `GridColDef['type']` has been narrowed down to only accept the built-in column types.
110
+ TypeScript users need to use the `GridColDef` interface when defining columns:
111
+
112
+ ```tsx
113
+ // 🛑 `type` is inferred as `string` and is too wide
114
+ const columns = [{ type: 'number', field: 'id' }];
115
+ <DataGrid columns={columns} />;
116
+
117
+ // ✅ `type` is `'number'`
118
+ const columns: GridColDef[] = [{ type: 'number', field: 'id' }];
119
+ <DataGrid columns={columns} />;
120
+
121
+ // ✅ Alternalively, `as const` can be used to narrow down the type
122
+ const columns = [{ type: 'number' as const, field: 'id' }];
123
+ <DataGrid columns={columns} />;
124
+ ```
125
+
126
+ #### `@mui/x-data-grid@7.0.0-alpha.4`
127
+
128
+ - [DataGrid] Added a guard for reorder cells (#11159) @michelengelen
129
+ - [DataGrid] Narrow down `GridColDef['type']` (#11270) @cherniavskii
130
+ - [l10n] Improve Danish (da-DK) locale (#11304) @goibon
131
+
132
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
133
+
134
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.4`, plus:
135
+
136
+ - [DataGridPro] Make header filters feature stable (#11243) @MBilalShafi
137
+
138
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
139
+
140
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.4`.
141
+
142
+ ### Date Pickers
143
+
144
+ #### `@mui/x-date-pickers@7.0.0-alpha.4`
145
+
146
+ - [fields] Rework `PickersTextField` (#11258) @flaviendelangle
147
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11305) @LukasTy
148
+ - [pickers] Fix views height consistency (#11337) @LukasTy
149
+
150
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
151
+
152
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.4`.
153
+
154
+ ### Charts / `@mui/x-charts@7.0.0-alpha.4`
155
+
156
+ - [charts] Remove animation on sparkline (#11311) @oliviertassinari
157
+ - [charts] Use voronoi cells to trigger interaction with scatter items (#10981) @alexfauquette
158
+ - [charts] Add `@mui/utils` as a dependency (#11351) @michelengelen
159
+
160
+ ### Docs
161
+
162
+ - [docs] Add FAQ page (#11271) @noraleonte
163
+ - [docs] Add a doc section on how to override the start of the week with each adapter (#11223) @flaviendelangle
164
+ - [docs] Added params to `onPaginationModelChange` docs (#10191) @JFBenzs
165
+ - [docs] Fix typo (#11324) @cadam11
166
+ - [docs] Improve `DemoContainer` styling coverage (#11315) @LukasTy
167
+ - [docs] General revision of the Charts docs (#11249) @danilo-leal
168
+
6
169
  ## 7.0.0-alpha.3
7
170
 
8
171
  _Dec 4, 2023_
@@ -866,6 +1029,88 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
866
1029
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
867
1030
  - [license] Correctly throw errors (#10924) @oliviertassinari
868
1031
 
1032
+ ## 6.18.5
1033
+
1034
+ _Dec 14, 2023_
1035
+
1036
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
1037
+
1038
+ - 🌍 Improve Swedish (sv-SE) and Urdu (ur-PK) locales on the Data Grid
1039
+ - 🐞 Bugfixes
1040
+
1041
+ ### Data Grid
1042
+
1043
+ #### `@mui/x-data-grid@6.18.5`
1044
+
1045
+ - [l10n] Improve Swedish (sv-SE) locale (#11379) @fredrikcarlbom
1046
+ - [l10n] Improve Urdu (ur-PK) locale for data grid (#11409) @MBilalShafi
1047
+
1048
+ #### `@mui/x-data-grid-pro@6.18.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1049
+
1050
+ Same changes as in `@mui/x-data-grid@6.18.5`.
1051
+
1052
+ #### `@mui/x-data-grid-premium@6.18.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
1053
+
1054
+ Same changes as in `@mui/x-data-grid-pro@6.18.5`.
1055
+
1056
+ ### Date Pickers
1057
+
1058
+ #### `@mui/x-date-pickers@6.18.5`
1059
+
1060
+ - [pickers] Fix field types to avoid error on latest `@types/react` version (#11398) @LukasTy
1061
+ - [pickers] Support name prop (#11380) @gitstart
1062
+
1063
+ #### `@mui/x-date-pickers-pro@6.18.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1064
+
1065
+ Same changes as in `@mui/x-date-pickers@6.18.5`, plus:
1066
+
1067
+ - [DateRangePicker] Fix `autoFocus` behavior (#11376) @kealjones-wk
1068
+
1069
+ ### Docs
1070
+
1071
+ - [docs] Respect GoT books (#11294) @janoma
1072
+ - [test] Fix flaky screenshots (#11391) @cherniavskii
1073
+
1074
+ ## 6.18.4
1075
+
1076
+ _Dec 8, 2023_
1077
+
1078
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
1079
+
1080
+ - 📚 Add [Pickers FAQ page](https://mui.com/x/react-date-pickers/faq/)
1081
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
1082
+ - 🐞 Bugfixes
1083
+
1084
+ ### Data Grid
1085
+
1086
+ #### `@mui/x-data-grid@6.18.4`
1087
+
1088
+ - [DataGrid] Fix cell slot style override (#11215) @oliviertassinari
1089
+ - [l10n] Improve Danish (da-DK) locale (#11346) @goibon
1090
+
1091
+ #### `@mui/x-data-grid-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1092
+
1093
+ Same changes as in `@mui/x-data-grid@6.18.4`.
1094
+
1095
+ #### `@mui/x-data-grid-premium@6.18.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
1096
+
1097
+ Same changes as in `@mui/x-data-grid-pro@6.18.4`.
1098
+
1099
+ ### Date Pickers
1100
+
1101
+ #### `@mui/x-date-pickers@6.18.4`
1102
+
1103
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11308) @LukasTy
1104
+
1105
+ #### `@mui/x-date-pickers-pro@6.18.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
1106
+
1107
+ Same changes as in `@mui/x-date-pickers@6.18.4`.
1108
+
1109
+ ### Docs
1110
+
1111
+ - [docs] Fix typo (#11323) @cadam11
1112
+ - [docs] Add FAQ page (#11347) @noraleonte
1113
+
869
1114
  ## 6.18.3
870
1115
 
871
1116
  _Dec 4, 2023_
@@ -10,7 +10,6 @@ const dataCache = new LRUCache({
10
10
  max: 10,
11
11
  ttl: 60 * 5 * 1e3 // 5 minutes
12
12
  });
13
-
14
13
  // Generate fake data from a seed.
15
14
  // It's about x20 faster than getRealData.
16
15
  async function extrapolateSeed(rowLength, data) {
@@ -48,7 +48,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
48
48
  groupable?: boolean | undefined;
49
49
  pinnable?: boolean | undefined;
50
50
  sortComparator?: import("@mui/x-data-grid-pro").GridComparatorFn<any> | undefined;
51
- type?: import("@mui/x-data-grid-pro").GridColType | undefined;
51
+ type?: import("@mui/x-data-grid-pro").GridNativeColTypes | undefined;
52
52
  align?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
53
53
  valueGetter?: ((params: import("@mui/x-data-grid-pro").GridValueGetterParams<any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => any) | undefined;
54
54
  valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) | undefined;
package/hooks/useQuery.js CHANGED
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import { getGridDefaultColumnTypes, GridLogicOperator } from '@mui/x-data-grid-pro';
4
4
  import { isDeepEqual } from '@mui/x-data-grid/internals';
5
5
  import { useDemoData, getColumnsFromOptions, getInitialState } from './useDemoData';
6
+ import { randomInt } from '../services/random-generator';
6
7
  const simplifiedValueGetter = (field, colDef) => row => {
7
8
  var _colDef$valueGetter;
8
9
  const params = {
@@ -98,7 +99,7 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
98
99
  if (maxDelay < minDelay) {
99
100
  throw new Error('serverOptions.minDelay is larger than serverOptions.maxDelay ');
100
101
  }
101
- const delay = Math.random() * (maxDelay - minDelay) + minDelay;
102
+ const delay = randomInt(minDelay, maxDelay);
102
103
  const {
103
104
  cursor,
104
105
  page = 0,
@@ -136,7 +137,6 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
136
137
  }, delay); // simulate network latency
137
138
  });
138
139
  };
139
-
140
140
  const DEFAULT_DATASET_OPTIONS = {
141
141
  dataSet: 'Commodity',
142
142
  rowLength: 100,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.0.0-alpha.3
2
+ * @mui/x-data-grid-generator v7.0.0-alpha.5
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -7,6 +7,7 @@ import * as React from 'react';
7
7
  import { getGridDefaultColumnTypes, GridLogicOperator } from '@mui/x-data-grid-pro';
8
8
  import { isDeepEqual } from '@mui/x-data-grid/internals';
9
9
  import { useDemoData, getColumnsFromOptions, getInitialState } from './useDemoData';
10
+ import { randomInt } from '../services/random-generator';
10
11
  var simplifiedValueGetter = function simplifiedValueGetter(field, colDef) {
11
12
  return function (row) {
12
13
  var _colDef$valueGetter;
@@ -118,7 +119,7 @@ export var loadServerRows = function loadServerRows(rows, queryOptions, serverOp
118
119
  if (maxDelay < minDelay) {
119
120
  throw new Error('serverOptions.minDelay is larger than serverOptions.maxDelay ');
120
121
  }
121
- var delay = Math.random() * (maxDelay - minDelay) + minDelay;
122
+ var delay = randomInt(minDelay, maxDelay);
122
123
  var cursor = queryOptions.cursor,
123
124
  _queryOptions$page = queryOptions.page,
124
125
  page = _queryOptions$page === void 0 ? 0 : _queryOptions$page,
@@ -156,7 +157,6 @@ export var loadServerRows = function loadServerRows(rows, queryOptions, serverOp
156
157
  }, delay); // simulate network latency
157
158
  });
158
159
  };
159
-
160
160
  var DEFAULT_DATASET_OPTIONS = {
161
161
  dataSet: 'Commodity',
162
162
  rowLength: 100,
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.0.0-alpha.3
2
+ * @mui/x-data-grid-generator v7.0.0-alpha.5
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -11,7 +11,6 @@ export var getBasicGridData = function getBasicGridData(rowLength, colLength) {
11
11
  for (var j = 1; j <= pricesColLength; j += 1) {
12
12
  model["price".concat(j, "M")] = Number("".concat(i.toString()).concat(j)); // randomPrice(0.7, 2);
13
13
  }
14
-
15
14
  data.push(model);
16
15
  }
17
16
  var columns = [{
@@ -30,7 +29,6 @@ export var getBasicGridData = function getBasicGridData(rowLength, colLength) {
30
29
  type: 'number'
31
30
  }); // (y > 0 ? `${y}Y` : '') + `${j - y * 12}M`
32
31
  }
33
-
34
32
  columns.length = colLength; // we cut the array in case < 2;
35
33
  return {
36
34
  columns: columns,
@@ -10,7 +10,6 @@ const dataCache = new LRUCache({
10
10
  max: 10,
11
11
  ttl: 60 * 5 * 1e3 // 5 minutes
12
12
  });
13
-
14
13
  // Generate fake data from a seed.
15
14
  // It's about x20 faster than getRealData.
16
15
  async function extrapolateSeed(rowLength, data) {
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  import { getGridDefaultColumnTypes, GridLogicOperator } from '@mui/x-data-grid-pro';
4
4
  import { isDeepEqual } from '@mui/x-data-grid/internals';
5
5
  import { useDemoData, getColumnsFromOptions, getInitialState } from './useDemoData';
6
+ import { randomInt } from '../services/random-generator';
6
7
  const simplifiedValueGetter = (field, colDef) => row => {
7
8
  const params = {
8
9
  id: row.id,
@@ -96,7 +97,7 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
96
97
  if (maxDelay < minDelay) {
97
98
  throw new Error('serverOptions.minDelay is larger than serverOptions.maxDelay ');
98
99
  }
99
- const delay = Math.random() * (maxDelay - minDelay) + minDelay;
100
+ const delay = randomInt(minDelay, maxDelay);
100
101
  const {
101
102
  cursor,
102
103
  page = 0,
@@ -134,7 +135,6 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
134
135
  }, delay); // simulate network latency
135
136
  });
136
137
  };
137
-
138
138
  const DEFAULT_DATASET_OPTIONS = {
139
139
  dataSet: 'Commodity',
140
140
  rowLength: 100,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.0.0-alpha.3
2
+ * @mui/x-data-grid-generator v7.0.0-alpha.5
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -11,7 +11,6 @@ export const getBasicGridData = (rowLength, colLength) => {
11
11
  for (let j = 1; j <= pricesColLength; j += 1) {
12
12
  model[`price${j}M`] = Number(`${i.toString()}${j}`); // randomPrice(0.7, 2);
13
13
  }
14
-
15
14
  data.push(model);
16
15
  }
17
16
  const columns = [{
@@ -30,7 +29,6 @@ export const getBasicGridData = (rowLength, colLength) => {
30
29
  type: 'number'
31
30
  }); // (y > 0 ? `${y}Y` : '') + `${j - y * 12}M`
32
31
  }
33
-
34
32
  columns.length = colLength; // we cut the array in case < 2;
35
33
  return {
36
34
  columns,
@@ -19,7 +19,6 @@ const dataCache = new _lruCache.default({
19
19
  max: 10,
20
20
  ttl: 60 * 5 * 1e3 // 5 minutes
21
21
  });
22
-
23
22
  // Generate fake data from a seed.
24
23
  // It's about x20 faster than getRealData.
25
24
  async function extrapolateSeed(rowLength, data) {
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
10
10
  var _xDataGridPro = require("@mui/x-data-grid-pro");
11
11
  var _internals = require("@mui/x-data-grid/internals");
12
12
  var _useDemoData = require("./useDemoData");
13
+ var _randomGenerator = require("../services/random-generator");
13
14
  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); }
14
15
  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 && Object.prototype.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; }
15
16
  const simplifiedValueGetter = (field, colDef) => row => {
@@ -105,7 +106,7 @@ const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDefaultCol
105
106
  if (maxDelay < minDelay) {
106
107
  throw new Error('serverOptions.minDelay is larger than serverOptions.maxDelay ');
107
108
  }
108
- const delay = Math.random() * (maxDelay - minDelay) + minDelay;
109
+ const delay = (0, _randomGenerator.randomInt)(minDelay, maxDelay);
109
110
  const {
110
111
  cursor,
111
112
  page = 0,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.0.0-alpha.3
2
+ * @mui/x-data-grid-generator v7.0.0-alpha.5
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -17,7 +17,6 @@ const getBasicGridData = (rowLength, colLength) => {
17
17
  for (let j = 1; j <= pricesColLength; j += 1) {
18
18
  model[`price${j}M`] = Number(`${i.toString()}${j}`); // randomPrice(0.7, 2);
19
19
  }
20
-
21
20
  data.push(model);
22
21
  }
23
22
  const columns = [{
@@ -36,7 +35,6 @@ const getBasicGridData = (rowLength, colLength) => {
36
35
  type: 'number'
37
36
  }); // (y > 0 ? `${y}Y` : '') + `${j - y * 12}M`
38
37
  }
39
-
40
38
  columns.length = colLength; // we cut the array in case < 2;
41
39
  return {
42
40
  columns,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "7.0.0-alpha.3",
3
+ "version": "7.0.0-alpha.5",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -22,9 +22,9 @@
22
22
  "directory": "packages/grid/x-data-grid-generator"
23
23
  },
24
24
  "dependencies": {
25
- "@babel/runtime": "^7.23.4",
26
- "@mui/base": "^5.0.0-beta.24",
27
- "@mui/x-data-grid-premium": "7.0.0-alpha.3",
25
+ "@babel/runtime": "^7.23.5",
26
+ "@mui/base": "^5.0.0-beta.26",
27
+ "@mui/x-data-grid-premium": "7.0.0-alpha.5",
28
28
  "chance": "^1.1.11",
29
29
  "clsx": "^2.0.0",
30
30
  "lru-cache": "^7.18.3"
@@ -11,7 +11,6 @@ export const getBasicGridData = (rowLength, colLength) => {
11
11
  for (let j = 1; j <= pricesColLength; j += 1) {
12
12
  model[`price${j}M`] = Number(`${i.toString()}${j}`); // randomPrice(0.7, 2);
13
13
  }
14
-
15
14
  data.push(model);
16
15
  }
17
16
  const columns = [{
@@ -30,7 +29,6 @@ export const getBasicGridData = (rowLength, colLength) => {
30
29
  type: 'number'
31
30
  }); // (y > 0 ? `${y}Y` : '') + `${j - y * 12}M`
32
31
  }
33
-
34
32
  columns.length = colLength; // we cut the array in case < 2;
35
33
  return {
36
34
  columns,