@mui/x-data-grid-generator 6.13.0 → 6.15.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 +162 -1
- package/index.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/services/tree-data-generator.js +10 -3
- package/modern/index.js +1 -1
- package/modern/services/tree-data-generator.js +9 -2
- package/node/index.js +1 -1
- package/node/services/tree-data-generator.js +9 -2
- package/package.json +3 -3
- package/services/tree-data-generator.d.ts +1 -1
- package/services/tree-data-generator.js +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,166 @@
|
|
|
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.15.0
|
|
7
|
+
|
|
8
|
+
_Sep 22, 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
|
+
- 🚀 Implement columns auto-sizing (#10180) @romgrk
|
|
13
|
+
- 🎁 Add support for `getRowsToExport` option to print export on the data grid (#10084) @zreecespieces
|
|
14
|
+
- 🌍 Improve Finnish (fi-FI) locale
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@6.15.0`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add support for `getRowsToExport` option to print export (#10084) @zreecespieces
|
|
23
|
+
- [DataGrid] Fix dev warning about `InputLabelProps` (#10413) @romgrk
|
|
24
|
+
- [DataGrid] Refactor `GridMenu` prop `onClickAway` to `onClose` (#10411) @romgrk
|
|
25
|
+
- [DataGrid] Restore focus after `GridMenu` closes (#10412) @romgrk
|
|
26
|
+
- [DataGrid] Fix typing of `GridActionsCellItem` (#10344) @romgrk
|
|
27
|
+
- [DataGrid] Hide `eval` from bundlers (#10329) @romgrk
|
|
28
|
+
- [DataGrid] Add `border: 0` to unmounted focused cell to avoid layout shifts in that row (#10318) @lauri865
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@6.15.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@6.15.0`, plus:
|
|
33
|
+
|
|
34
|
+
- [DataGridPro] Implement columns auto-sizing (#10180) @romgrk
|
|
35
|
+
- [DataGridPro] Fix keyboard navigation issue in header filters (#10358) @MBilalShafi
|
|
36
|
+
- [DataGridPro] Add missing row hover styles (#10252) @cherniavskii
|
|
37
|
+
- [DataGridPro] Make default filter items have stable references in header filters (#10338) @MBilalShafi
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-premium@6.15.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-data-grid-pro@6.15.0`.
|
|
42
|
+
|
|
43
|
+
### Date Pickers
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers@6.15.0`
|
|
46
|
+
|
|
47
|
+
- [pickers] Support tokens without spaces (#10185) @alexfauquette
|
|
48
|
+
- [l10n] Improve Finnish (fi-FI) locale (#10346) @samijouppila
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-date-pickers-pro@6.15.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
51
|
+
|
|
52
|
+
Same changes as in `@mui/x-date-pickers@6.15.0`.
|
|
53
|
+
|
|
54
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.12`
|
|
55
|
+
|
|
56
|
+
- [charts] Fix sparkline scale and rendering (#10402) @alexfauquette
|
|
57
|
+
- [charts] Remove components from `@mui/material` (#10115) @alexfauquette
|
|
58
|
+
|
|
59
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.4`
|
|
60
|
+
|
|
61
|
+
- [TreeView] Split features into plugins to prepare for Pro version (#10123) @flaviendelangle
|
|
62
|
+
|
|
63
|
+
### Docs
|
|
64
|
+
|
|
65
|
+
- [docs] Add charts documentation pages to complete pricing table (#10394) @alexfauquette
|
|
66
|
+
- [docs] Add missing MIT packages on the Licensing page (#10348) @flaviendelangle
|
|
67
|
+
- [docs] Clearer component pattern @oliviertassinari
|
|
68
|
+
- [docs] Easier to understand demo (#10370) @oliviertassinari
|
|
69
|
+
- [docs] Fix `301` to Material UI @oliviertassinari
|
|
70
|
+
- [docs] Improve the column visibility section (#10327) @MBilalShafi
|
|
71
|
+
- [docs] Improve the documentation section `rowIdentifier` (#10326) @MBilalShafi
|
|
72
|
+
- [docs] Improve pickers localization documentation (#10202) @flaviendelangle
|
|
73
|
+
- [docs] Polish typescript ref usage (#10359) @oliviertassinari
|
|
74
|
+
- [docs] Improve charts tooltip wording (#10406) @alexfauquette
|
|
75
|
+
|
|
76
|
+
### Core
|
|
77
|
+
|
|
78
|
+
- [core] Cleanup GitHub issues template (#10372) @romgrk
|
|
79
|
+
- [core] Fix Circle CI OOM (#10385) @romgrk
|
|
80
|
+
- [core] Improve sleep test helper @oliviertassinari
|
|
81
|
+
- [core] Remove unwanted prefixes @oliviertassinari
|
|
82
|
+
- [core] Remove duplicate label @oliviertassinari
|
|
83
|
+
- [core] Simplify source @oliviertassinari
|
|
84
|
+
- [core] Upgrade monorepo (#10425) @cherniavskii
|
|
85
|
+
- [core] Upgrade monorepo to have the new typescript-to-proptype (#10224) @flaviendelangle
|
|
86
|
+
- [test] Do not use deprecated adapter methods (#10416) @flaviendelangle
|
|
87
|
+
- [test] Name test suites according to sentence case (#10429) @alexfauquette
|
|
88
|
+
|
|
89
|
+
## 6.14.0
|
|
90
|
+
|
|
91
|
+
_Sep 14, 2023_
|
|
92
|
+
|
|
93
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
94
|
+
|
|
95
|
+
- 🎁 Fix `YearCalendar` and `MonthCalendar` accessibility (#10312) @LukasTy
|
|
96
|
+
|
|
97
|
+
The `YearCalendar` and `MonthCalendar` items role has been changed from `button` to `radio` in order to improve the component's a11y support.
|
|
98
|
+
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.
|
|
99
|
+
|
|
100
|
+
- 🌍 Improve Japanese (ja-JP), Persian (fa-IR), and Vietnamese (vi-VN) locales on the data grid
|
|
101
|
+
- 🐞 Bugfixes
|
|
102
|
+
- 📚 Documentation improvements
|
|
103
|
+
|
|
104
|
+
### Data Grid
|
|
105
|
+
|
|
106
|
+
#### `@mui/x-data-grid@6.14.0`
|
|
107
|
+
|
|
108
|
+
- [l10n] Improve Japanese (ja-JP) locale (#10299) @makoto14
|
|
109
|
+
- [l10n] Improve Persian (fa-IR) locale (#10277) @aminsaedi
|
|
110
|
+
- [l10n] Improve Vietnamese (vi-VN) locale (#10280) @khangnguyen2100
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-data-grid-pro@6.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-data-grid@6.14.0`.
|
|
115
|
+
|
|
116
|
+
#### `@mui/x-data-grid-premium@6.14.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
117
|
+
|
|
118
|
+
Same changes as in `@mui/x-data-grid-pro@6.14.0`, plus:
|
|
119
|
+
|
|
120
|
+
- [DataGridPremium] Fix clipboard import cutting off at 100 rows (#9930) @gitstart
|
|
121
|
+
|
|
122
|
+
### Date Pickers
|
|
123
|
+
|
|
124
|
+
#### `@mui/x-date-pickers@6.14.0`
|
|
125
|
+
|
|
126
|
+
- [pickers] Fix `YearCalendar` and `MonthCalendar` a11y (#10312) @LukasTy
|
|
127
|
+
- [pickers] Localize `TimeClock` meridiem text (#10324) @LukasTy
|
|
128
|
+
|
|
129
|
+
#### `@mui/x-date-pickers-pro@6.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
130
|
+
|
|
131
|
+
Same changes as in `@mui/x-date-pickers@6.14.0`.
|
|
132
|
+
|
|
133
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.11`
|
|
134
|
+
|
|
135
|
+
- [charts] Add default `barGapRatio` and increase `categoryGapRatio` (#10317) @LukasTy
|
|
136
|
+
- [charts] Enable `eslint` on the package (#10330) @LukasTy
|
|
137
|
+
|
|
138
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.3`
|
|
139
|
+
|
|
140
|
+
- [TreeView] Fix box-sizing dependency (#10255) @oliviertassinari
|
|
141
|
+
|
|
142
|
+
### Docs
|
|
143
|
+
|
|
144
|
+
- [docs] Add conditional range picker props example (#10227) @LukasTy
|
|
145
|
+
- [docs] Add toolbar to the multi-filters demo (#10223) @MBilalShafi
|
|
146
|
+
- [docs] Avoid the use of "We" @oliviertassinari
|
|
147
|
+
- [docs] Clarify MUI vs. MUI Core difference @oliviertassinari
|
|
148
|
+
- [docs] Enable `ariaV7` flag for demos using `useDemoData` hook (#10204) @cherniavskii
|
|
149
|
+
- [docs] Fix Tree View link to API references (#10282) @oliviertassinari
|
|
150
|
+
- [docs] Fix image layout shift (#10313) @oliviertassinari
|
|
151
|
+
- [docs] Fix link to MUI X from readme logo @oliviertassinari
|
|
152
|
+
- [docs] Fix redirection to Base UI URLs @oliviertassinari
|
|
153
|
+
- [docs] Improve Tree View demos (#10268) @oliviertassinari
|
|
154
|
+
- [docs] Improve docs for ref type props (#10273) @michelengelen
|
|
155
|
+
- [docs] Improve npm package README (#10269) @oliviertassinari
|
|
156
|
+
- [docs] Improve the clarity of the npm links @oliviertassinari
|
|
157
|
+
- [docs] Keep installation readme simple @oliviertassinari
|
|
158
|
+
- [docs] Make each component feel more standalone @oliviertassinari
|
|
159
|
+
|
|
160
|
+
### Core
|
|
161
|
+
|
|
162
|
+
- [core] Add types extension for clarity @oliviertassinari
|
|
163
|
+
- [core] Set logo height to fix layout shift in GitHub @oliviertassinari
|
|
164
|
+
- [core] TrapFocus was renamed to FocusTrap @oliviertassinari
|
|
165
|
+
|
|
6
166
|
## 6.13.0
|
|
7
167
|
|
|
8
168
|
_Sep 8, 2023_
|
|
@@ -12,6 +172,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
12
172
|
- 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
|
|
13
173
|
|
|
14
174
|
The range picker popup will now be anchored to the first input element and left aligned like other pickers.
|
|
175
|
+
|
|
15
176
|
- 🌍 Improve Slovak (sk-SK) locale on the data grid
|
|
16
177
|
- 🐞 Bugfixes
|
|
17
178
|
- 📚 Documentation improvements
|
|
@@ -1838,7 +1999,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
1838
1999
|
#### Changes
|
|
1839
2000
|
|
|
1840
2001
|
- [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
|
|
1841
|
-
- [DataGrid] Allow to pass props to the `
|
|
2002
|
+
- [DataGrid] Allow to pass props to the `FocusTrap` inside the panel wrapper (#7733) @ivek-Prajapatii
|
|
1842
2003
|
- [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
|
|
1843
2004
|
- [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
|
|
1844
2005
|
- [DataGridPremium] Fix `leafField` to have correct focus value (#7950) @MBilalShafi
|
package/index.js
CHANGED
package/legacy/index.js
CHANGED
|
@@ -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
|
@@ -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
|
@@ -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.
|
|
3
|
+
"version": "6.15.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.
|
|
24
|
-
"@mui/x-data-grid-premium": "6.
|
|
23
|
+
"@mui/base": "^5.0.0-beta.14",
|
|
24
|
+
"@mui/x-data-grid-premium": "6.15.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
|
};
|