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

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,89 @@
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.4
7
+
8
+ _Dec 8, 2023_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 The scatter charts now use voronoi to trigger items
13
+
14
+ Users needed to hover the item to highlight the scatter item or show the tooltip.
15
+ 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.
16
+
17
+ - 📚 Add [Pickers FAQ page](https://next.mui.com/x/react-date-pickers/faq/)
18
+ - 🎉 The Data Grid Header filters feature is now stable
19
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
20
+ - 🐞 Bugfixes
21
+
22
+ ### Data Grid
23
+
24
+ #### Breaking changes
25
+
26
+ - The header filters feature is now stable. `unstable_` prefix is removed from prop `headerFilters` and related exports.
27
+ See [migration docs](https://next.mui.com/x/migration/migration-data-grid-v6/#filtering) for more details.
28
+
29
+ - The `GridColDef['type']` has been narrowed down to only accept the built-in column types.
30
+ TypeScript users need to use the `GridColDef` interface when defining columns:
31
+
32
+ ```tsx
33
+ // 🛑 `type` is inferred as `string` and is too wide
34
+ const columns = [{ type: 'number', field: 'id' }];
35
+ <DataGrid columns={columns} />;
36
+
37
+ // ✅ `type` is `'number'`
38
+ const columns: GridColDef[] = [{ type: 'number', field: 'id' }];
39
+ <DataGrid columns={columns} />;
40
+
41
+ // ✅ Alternalively, `as const` can be used to narrow down the type
42
+ const columns = [{ type: 'number' as const, field: 'id' }];
43
+ <DataGrid columns={columns} />;
44
+ ```
45
+
46
+ #### `@mui/x-data-grid@7.0.0-alpha.4`
47
+
48
+ - [DataGrid] Added a guard for reorder cells (#11159) @michelengelen
49
+ - [DataGrid] Narrow down `GridColDef['type']` (#11270) @cherniavskii
50
+ - [l10n] Improve Danish (da-DK) locale (#11304) @goibon
51
+
52
+ #### `@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')
53
+
54
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.4`, plus:
55
+
56
+ - [DataGridPro] Make header filters feature stable (#11243) @MBilalShafi
57
+
58
+ #### `@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')
59
+
60
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.4`.
61
+
62
+ ### Date Pickers
63
+
64
+ #### `@mui/x-date-pickers@7.0.0-alpha.4`
65
+
66
+ - [fields] Rework `PickersTextField` (#11258) @flaviendelangle
67
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11305) @LukasTy
68
+ - [pickers] Fix views height consistency (#11337) @LukasTy
69
+
70
+ #### `@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')
71
+
72
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.4`.
73
+
74
+ ### Charts / `@mui/x-charts@7.0.0-alpha.4`
75
+
76
+ - [charts] Remove animation on sparkline (#11311) @oliviertassinari
77
+ - [charts] Use voronoi cells to trigger interaction with scatter items (#10981) @alexfauquette
78
+ - [charts] Add `@mui/utils` as a dependency (#11351) @michelengelen
79
+
80
+ ### Docs
81
+
82
+ - [docs] Add FAQ page (#11271) @noraleonte
83
+ - [docs] Add a doc section on how to override the start of the week with each adapter (#11223) @flaviendelangle
84
+ - [docs] Added params to `onPaginationModelChange` docs (#10191) @JFBenzs
85
+ - [docs] Fix typo (#11324) @cadam11
86
+ - [docs] Improve `DemoContainer` styling coverage (#11315) @LukasTy
87
+ - [docs] General revision of the Charts docs (#11249) @danilo-leal
88
+
6
89
  ## 7.0.0-alpha.3
7
90
 
8
91
  _Dec 4, 2023_
@@ -866,6 +949,46 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
866
949
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
867
950
  - [license] Correctly throw errors (#10924) @oliviertassinari
868
951
 
952
+ ## 6.18.4
953
+
954
+ _Dec 8, 2023_
955
+
956
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
957
+
958
+ - 📚 Add [Pickers FAQ page](https://mui.com/x/react-date-pickers/faq/)
959
+ - 🌍 Improve Danish (da-DK) locale on Data Grid
960
+ - 🐞 Bugfixes
961
+
962
+ ### Data Grid
963
+
964
+ #### `@mui/x-data-grid@6.18.4`
965
+
966
+ - [DataGrid] Fix cell slot style override (#11215) @oliviertassinari
967
+ - [l10n] Improve Danish (da-DK) locale (#11346) @goibon
968
+
969
+ #### `@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')
970
+
971
+ Same changes as in `@mui/x-data-grid@6.18.4`.
972
+
973
+ #### `@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')
974
+
975
+ Same changes as in `@mui/x-data-grid-pro@6.18.4`.
976
+
977
+ ### Date Pickers
978
+
979
+ #### `@mui/x-date-pickers@6.18.4`
980
+
981
+ - [pickers] Fix `MultiSectionDigitalClock` issues (#11308) @LukasTy
982
+
983
+ #### `@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')
984
+
985
+ Same changes as in `@mui/x-date-pickers@6.18.4`.
986
+
987
+ ### Docs
988
+
989
+ - [docs] Fix typo (#11323) @cadam11
990
+ - [docs] Add FAQ page (#11347) @noraleonte
991
+
869
992
  ## 6.18.3
870
993
 
871
994
  _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
@@ -136,7 +136,6 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
136
136
  }, delay); // simulate network latency
137
137
  });
138
138
  };
139
-
140
139
  const DEFAULT_DATASET_OPTIONS = {
141
140
  dataSet: 'Commodity',
142
141
  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.4
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -156,7 +156,6 @@ export var loadServerRows = function loadServerRows(rows, queryOptions, serverOp
156
156
  }, delay); // simulate network latency
157
157
  });
158
158
  };
159
-
160
159
  var DEFAULT_DATASET_OPTIONS = {
161
160
  dataSet: 'Commodity',
162
161
  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.4
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) {
@@ -134,7 +134,6 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
134
134
  }, delay); // simulate network latency
135
135
  });
136
136
  };
137
-
138
137
  const DEFAULT_DATASET_OPTIONS = {
139
138
  dataSet: 'Commodity',
140
139
  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.4
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) {
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.4
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.4",
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.4",
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,