@mui/x-data-grid-generator 6.13.0 → 6.14.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,83 @@
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.14.0
7
+
8
+ _Sep 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
+ - 🎁 Fix `YearCalendar` and `MonthCalendar` accessibility (#10312) @LukasTy
13
+
14
+ The `YearCalendar` and `MonthCalendar` items role has been changed from `button` to `radio` in order to improve the component's a11y support.
15
+ If you were relying on the mentioned components having a `button` role for items, you will need to update your usage to expect a `radio` role instead.
16
+
17
+ - 🌍 Improve Japanese (ja-JP), Persian (fa-IR), and Vietnamese (vi-VN) locales on the data grid
18
+ - 🐞 Bugfixes
19
+ - 📚 Documentation improvements
20
+
21
+ ### Data Grid
22
+
23
+ #### `@mui/x-data-grid@6.14.0`
24
+
25
+ - [l10n] Improve Japanese (ja-JP) locale (#10299) @makoto14
26
+ - [l10n] Improve Persian (fa-IR) locale (#10277) @aminsaedi
27
+ - [l10n] Improve Vietnamese (vi-VN) locale (#10280) @khangnguyen2100
28
+
29
+ #### `@mui/x-data-grid-pro@6.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
30
+
31
+ Same changes as in `@mui/x-data-grid@6.14.0`.
32
+
33
+ #### `@mui/x-data-grid-premium@6.14.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
34
+
35
+ Same changes as in `@mui/x-data-grid-pro@6.14.0`, plus:
36
+
37
+ - [DataGridPremium] Fix clipboard import cutting off at 100 rows (#9930) @gitstart
38
+
39
+ ### Date Pickers
40
+
41
+ #### `@mui/x-date-pickers@6.14.0`
42
+
43
+ - [pickers] Fix `YearCalendar` and `MonthCalendar` a11y (#10312) @LukasTy
44
+ - [pickers] Localize `TimeClock` meridiem text (#10324) @LukasTy
45
+
46
+ #### `@mui/x-date-pickers-pro@6.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
+
48
+ Same changes as in `@mui/x-date-pickers@6.14.0`.
49
+
50
+ ### Charts / `@mui/x-charts@6.0.0-alpha.11`
51
+
52
+ - [charts] Add default `barGapRatio` and increase `categoryGapRatio` (#10317) @LukasTy
53
+ - [charts] Enable `eslint` on the package (#10330) @LukasTy
54
+
55
+ ### Tree View / `@mui/x-tree-view@6.0.0-alpha.3`
56
+
57
+ - [TreeView] Fix box-sizing dependency (#10255) @oliviertassinari
58
+
59
+ ### Docs
60
+
61
+ - [docs] Add conditional range picker props example (#10227) @LukasTy
62
+ - [docs] Add toolbar to the multi-filters demo (#10223) @MBilalShafi
63
+ - [docs] Avoid the use of "We" @oliviertassinari
64
+ - [docs] Clarify MUI vs. MUI Core difference @oliviertassinari
65
+ - [docs] Enable `ariaV7` flag for demos using `useDemoData` hook (#10204) @cherniavskii
66
+ - [docs] Fix Tree View link to API references (#10282) @oliviertassinari
67
+ - [docs] Fix image layout shift (#10313) @oliviertassinari
68
+ - [docs] Fix link to MUI X from readme logo @oliviertassinari
69
+ - [docs] Fix redirection to Base UI URLs @oliviertassinari
70
+ - [docs] Improve Tree View demos (#10268) @oliviertassinari
71
+ - [docs] Improve docs for ref type props (#10273) @michelengelen
72
+ - [docs] Improve npm package README (#10269) @oliviertassinari
73
+ - [docs] Improve the clarity of the npm links @oliviertassinari
74
+ - [docs] Keep installation readme simple @oliviertassinari
75
+ - [docs] Make each component feel more standalone @oliviertassinari
76
+
77
+ ### Core
78
+
79
+ - [core] Add types extension for clarity @oliviertassinari
80
+ - [core] Set logo height to fix layout shift in GitHub @oliviertassinari
81
+ - [core] TrapFocus was renamed to FocusTrap @oliviertassinari
82
+
6
83
  ## 6.13.0
7
84
 
8
85
  _Sep 8, 2023_
@@ -12,6 +89,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
12
89
  - 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
13
90
 
14
91
  The range picker popup will now be anchored to the first input element and left aligned like other pickers.
92
+
15
93
  - 🌍 Improve Slovak (sk-SK) locale on the data grid
16
94
  - 🐞 Bugfixes
17
95
  - 📚 Documentation improvements
@@ -1838,7 +1916,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
1838
1916
  #### Changes
1839
1917
 
1840
1918
  - [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
1841
- - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7733) @ivek-Prajapatii
1919
+ - [DataGrid] Allow to pass props to the `FocusTrap` inside the panel wrapper (#7733) @ivek-Prajapatii
1842
1920
  - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
1843
1921
  - [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
1844
1922
  - [DataGridPremium] Fix `leafField` to have correct focus value (#7950) @MBilalShafi
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.13.0
2
+ * @mui/x-data-grid-generator v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.13.0
2
+ * @mui/x-data-grid-generator v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  import { randomArrayItem } from './random-generator';
4
4
  export var addTreeDataOptionsToDemoData = function addTreeDataOptionsToDemoData(data) {
5
5
  var _groupingCol$headerNa;
@@ -11,7 +11,11 @@ export var addTreeDataOptionsToDemoData = function addTreeDataOptionsToDemoData(
11
11
  groupingField = options.groupingField;
12
12
  var hasTreeData = maxDepth > 1 && groupingField != null;
13
13
  if (!hasTreeData) {
14
- return data;
14
+ return _extends({}, data, {
15
+ experimentalFeatures: {
16
+ ariaV7: true
17
+ }
18
+ });
15
19
  }
16
20
  if (data.rows.length > 1000) {
17
21
  throw new Error('MUI: useDemoData tree data mode only works up to 1000 rows.');
@@ -73,6 +77,9 @@ export var addTreeDataOptionsToDemoData = function addTreeDataOptionsToDemoData(
73
77
  getTreeDataPath: function getTreeDataPath(row) {
74
78
  return row.path;
75
79
  },
76
- treeData: true
80
+ treeData: true,
81
+ experimentalFeatures: {
82
+ ariaV7: true
83
+ }
77
84
  });
78
85
  };
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.13.0
2
+ * @mui/x-data-grid-generator v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -8,7 +8,11 @@ export const addTreeDataOptionsToDemoData = (data, options = {}) => {
8
8
  } = options;
9
9
  const hasTreeData = maxDepth > 1 && groupingField != null;
10
10
  if (!hasTreeData) {
11
- return data;
11
+ return _extends({}, data, {
12
+ experimentalFeatures: {
13
+ ariaV7: true
14
+ }
15
+ });
12
16
  }
13
17
  if (data.rows.length > 1000) {
14
18
  throw new Error('MUI: useDemoData tree data mode only works up to 1000 rows.');
@@ -65,6 +69,9 @@ export const addTreeDataOptionsToDemoData = (data, options = {}) => {
65
69
  width: 250
66
70
  },
67
71
  getTreeDataPath: row => row.path,
68
- treeData: true
72
+ treeData: true,
73
+ experimentalFeatures: {
74
+ ariaV7: true
75
+ }
69
76
  });
70
77
  };
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.13.0
2
+ * @mui/x-data-grid-generator v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -15,7 +15,11 @@ const addTreeDataOptionsToDemoData = (data, options = {}) => {
15
15
  } = options;
16
16
  const hasTreeData = maxDepth > 1 && groupingField != null;
17
17
  if (!hasTreeData) {
18
- return data;
18
+ return (0, _extends2.default)({}, data, {
19
+ experimentalFeatures: {
20
+ ariaV7: true
21
+ }
22
+ });
19
23
  }
20
24
  if (data.rows.length > 1000) {
21
25
  throw new Error('MUI: useDemoData tree data mode only works up to 1000 rows.');
@@ -72,7 +76,10 @@ const addTreeDataOptionsToDemoData = (data, options = {}) => {
72
76
  width: 250
73
77
  },
74
78
  getTreeDataPath: row => row.path,
75
- treeData: true
79
+ treeData: true,
80
+ experimentalFeatures: {
81
+ ariaV7: true
82
+ }
76
83
  });
77
84
  };
78
85
  exports.addTreeDataOptionsToDemoData = addTreeDataOptionsToDemoData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "6.13.0",
3
+ "version": "6.14.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.22.15",
23
- "@mui/base": "^5.0.0-beta.13",
24
- "@mui/x-data-grid-premium": "6.13.0",
23
+ "@mui/base": "^5.0.0-beta.14",
24
+ "@mui/x-data-grid-premium": "6.14.0",
25
25
  "chance": "^1.1.11",
26
26
  "clsx": "^2.0.0",
27
27
  "lru-cache": "^7.18.3"
@@ -17,6 +17,6 @@ export interface AddPathToDemoDataOptions {
17
17
  */
18
18
  averageChildren?: number;
19
19
  }
20
- export interface DemoTreeDataValue extends Pick<DataGridPremiumProps, 'getTreeDataPath' | 'treeData' | 'groupingColDef'>, GridDemoData {
20
+ export interface DemoTreeDataValue extends Pick<DataGridPremiumProps, 'getTreeDataPath' | 'treeData' | 'groupingColDef' | 'experimentalFeatures'>, GridDemoData {
21
21
  }
22
22
  export declare const addTreeDataOptionsToDemoData: (data: GridDemoData, options?: AddPathToDemoDataOptions) => DemoTreeDataValue;
@@ -9,7 +9,11 @@ export const addTreeDataOptionsToDemoData = (data, options = {}) => {
9
9
  } = options;
10
10
  const hasTreeData = maxDepth > 1 && groupingField != null;
11
11
  if (!hasTreeData) {
12
- return data;
12
+ return _extends({}, data, {
13
+ experimentalFeatures: {
14
+ ariaV7: true
15
+ }
16
+ });
13
17
  }
14
18
  if (data.rows.length > 1000) {
15
19
  throw new Error('MUI: useDemoData tree data mode only works up to 1000 rows.');
@@ -66,6 +70,9 @@ export const addTreeDataOptionsToDemoData = (data, options = {}) => {
66
70
  width: 250
67
71
  },
68
72
  getTreeDataPath: row => row.path,
69
- treeData: true
73
+ treeData: true,
74
+ experimentalFeatures: {
75
+ ariaV7: true
76
+ }
70
77
  });
71
78
  };