@mui/x-data-grid-generator 8.14.1 → 8.16.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 +207 -0
- package/constants/prompts.js +8 -4
- package/esm/constants/prompts.js +8 -4
- package/esm/hooks/useMockServer.js +4 -1
- package/esm/index.js +1 -1
- package/esm/renderer/renderEditRating.js +2 -2
- package/hooks/useMockServer.js +4 -1
- package/index.js +1 -1
- package/package.json +5 -5
- package/renderer/renderEditRating.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,213 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.16.0
|
|
9
|
+
|
|
10
|
+
_Oct 29, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🖌️ Add `brush` zoom interaction to charts
|
|
15
|
+
- 🔁 [Server-side update](https://mui.com/x/react-data-grid/server-side-data/#updating-server-side-data) in a grid with tree data/row grouping and aggregation will trigger re-fetch for all parent levels of that row to update aggregated values. See the [demo](https://mui.com/x/react-data-grid/server-side-data/aggregation/#usage-with-tree-data).
|
|
16
|
+
|
|
17
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
18
|
+
@felix-wg, @frncesc, @sai6855
|
|
19
|
+
|
|
20
|
+
The following are all team members who have contributed to this release:
|
|
21
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @brijeshb42, @flaviendelangle, @JCQuintas, @MBilalShafi, @mbrookes, @michelengelen, @noraleonte, @rita-codes
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@8.16.0`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Ignore `Ctrl+A` key combination for the row selection in the community version (#20110) @felix-wg
|
|
28
|
+
- [DataGrid][l10n] Improve Spanish (es-ES) locale (#20134) @frncesc
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@8.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@8.16.0`, plus:
|
|
33
|
+
|
|
34
|
+
- [DataGridPro] Add explicit return type to `getVisibleRowsLookup()` to fix the build with `tsc` (#20116) @arminmeh
|
|
35
|
+
- [DataGridPro] Retain the expansion state with expansion configuration props (#20126) @MBilalShafi
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@8.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@8.16.0`, plus:
|
|
40
|
+
|
|
41
|
+
- [DataGridPremium] Export and restore chart integration state (#20079) @arminmeh
|
|
42
|
+
- [DataGridPremium] Fix grouping column `valueFormatter()` crash (#20070) @sai6855
|
|
43
|
+
- [DataGridPremium] Refetch aggregation data after row update with server-side aggregation (#20039) @arminmeh
|
|
44
|
+
|
|
45
|
+
### Date and Time Pickers
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-date-pickers@8.16.0`
|
|
48
|
+
|
|
49
|
+
- [pickers] Prevent blur event propagation on individual sections (#19825) @michelengelen
|
|
50
|
+
|
|
51
|
+
#### `@mui/x-date-pickers-pro@8.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
52
|
+
|
|
53
|
+
Same changes as in `@mui/x-date-pickers@8.16.0`.
|
|
54
|
+
|
|
55
|
+
### Charts
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-charts@8.16.0`
|
|
58
|
+
|
|
59
|
+
- [charts] Allow tooltip to anchor items (#19954) @alexfauquette
|
|
60
|
+
- [charts] Fix behavior of grouped axis (#20118) @JCQuintas
|
|
61
|
+
- [charts] Move scale symlog inside scales (#20137) @JCQuintas
|
|
62
|
+
- [charts] Fix AreaChartConnectNulls demo height not correctly resizing (#20078) @sai6855
|
|
63
|
+
- [charts] Fix charts resizing overflow (#20080) @alexfauquette
|
|
64
|
+
- [charts] Fix tooltip not showing on first render (#20115) @bernardobelchior
|
|
65
|
+
- [charts] Handle `undefined` id and color in series (#20087) @bernardobelchior
|
|
66
|
+
- [charts] Remove `useMemo` from isZoomOn*Enabled and isPanOn*Enabled hooks (#20132) @Copilot
|
|
67
|
+
- [charts] Use static data for perf (#20072) @JCQuintas
|
|
68
|
+
- [charts] Move scale symlog inside scales (#20137) @JCQuintas
|
|
69
|
+
|
|
70
|
+
#### `@mui/x-charts-pro@8.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
71
|
+
|
|
72
|
+
Same changes as in `@mui/x-charts@8.16.0`, plus:
|
|
73
|
+
|
|
74
|
+
- [charts-pro] Add `brush` zoom interaction (#19899) @JCQuintas
|
|
75
|
+
- [charts-pro] Add sankey performance check (#20069) @JCQuintas
|
|
76
|
+
|
|
77
|
+
#### `@mui/x-charts-premium@8.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
78
|
+
|
|
79
|
+
Same changes as in `@mui/x-charts-pro@8.16.0`.
|
|
80
|
+
|
|
81
|
+
### Tree View
|
|
82
|
+
|
|
83
|
+
#### `@mui/x-tree-view@8.16.0`
|
|
84
|
+
|
|
85
|
+
Internal changes.
|
|
86
|
+
|
|
87
|
+
#### `@mui/x-tree-view-pro@8.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
88
|
+
|
|
89
|
+
Same changes as in `@mui/x-tree-view@8.16.0`.
|
|
90
|
+
|
|
91
|
+
### Codemod
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-codemod@8.16.0`
|
|
94
|
+
|
|
95
|
+
Internal changes.
|
|
96
|
+
|
|
97
|
+
### Core
|
|
98
|
+
|
|
99
|
+
- [code-infra] Setup eslint compat plugin (#20105) @brijeshb42
|
|
100
|
+
- [code-infra] Improve store types (#20129) @JCQuintas
|
|
101
|
+
- [docs] Update the callout in `rows` prop documentation (#20127) @MBilalShafi
|
|
102
|
+
- [docs-infra] Refine changelog contributor acknowledgment messages (#20123) @mbrookes
|
|
103
|
+
|
|
104
|
+
### Miscellaneous
|
|
105
|
+
|
|
106
|
+
- [x-telemetry] Skip telemetry tests on browser mode (#20122) @bernardobelchior
|
|
107
|
+
|
|
108
|
+
## 8.15.0
|
|
109
|
+
|
|
110
|
+
_Oct 23, 2025_
|
|
111
|
+
|
|
112
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
113
|
+
|
|
114
|
+
- 🖌️ Add new [`brush` charts interaction](https://mui.com/x/react-charts/brush/) for building custom behavior.
|
|
115
|
+

|
|
116
|
+
- ⚡️ Performance improvements for large bar charts
|
|
117
|
+
- 🤖 Data Grid AI assistant can now [visualize the query results](https://mui.com/x/react-data-grid/ai-assistant/#data-visualization) by controlling the chart integration settings
|
|
118
|
+
- 📦 DataGrid uses an internal MUI fork of ExcelJS that does not depend on vulnerable versions of NPM packages
|
|
119
|
+
- 🐞 Bugfixes
|
|
120
|
+
- 📚 Documentation improvements
|
|
121
|
+
|
|
122
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
123
|
+
@ZagrebaAlex
|
|
124
|
+
|
|
125
|
+
The following are all team members who have contributed to this release:
|
|
126
|
+
@alexfauquette, @bernardobelchior, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @KenanYusuf, @prakhargupta1, @rita-codes, @siriwatknp, @arminmeh, @brijeshb42, @noraleonte
|
|
127
|
+
|
|
128
|
+
### Data Grid
|
|
129
|
+
|
|
130
|
+
#### `@mui/x-data-grid@8.15.0`
|
|
131
|
+
|
|
132
|
+
- [DataGrid] Fix `dataSource.fetchRows` API's return type (#20068) @arminmeh
|
|
133
|
+
|
|
134
|
+
#### `@mui/x-data-grid-pro@8.15.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
135
|
+
|
|
136
|
+
Same changes as in `@mui/x-data-grid@8.15.0`, plus:
|
|
137
|
+
|
|
138
|
+
- [DataGridPro] Keep children in the tree after parent row is re-fetched with the data source (#19934) @arminmeh
|
|
139
|
+
- [DataGridPro] Support scroll shadows customization (#19982) @KenanYusuf
|
|
140
|
+
|
|
141
|
+
#### `@mui/x-data-grid-premium@8.15.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
142
|
+
|
|
143
|
+
Same changes as in `@mui/x-data-grid-pro@8.15.0`, plus:
|
|
144
|
+
|
|
145
|
+
- [DataGridPremium] Use ExcelJS fork (#19796) @cherniavskii
|
|
146
|
+
- [DataGridPremium] Support data visualization in AI Assistant (#19831) @arminmeh
|
|
147
|
+
|
|
148
|
+
### Date and Time Pickers
|
|
149
|
+
|
|
150
|
+
#### `@mui/x-date-pickers@8.15.0`
|
|
151
|
+
|
|
152
|
+
Internal changes.
|
|
153
|
+
|
|
154
|
+
#### `@mui/x-date-pickers-pro@8.15.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
155
|
+
|
|
156
|
+
Same changes as in `@mui/x-date-pickers@8.15.0`.
|
|
157
|
+
|
|
158
|
+
### Charts
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-charts@8.15.0`
|
|
161
|
+
|
|
162
|
+
- [charts] Add `ChartsBrushOverlay` and allow brush configuration (#19956) @JCQuintas
|
|
163
|
+
- [charts] Add `getStringSize` benchmark. Remove benchmarks from built package. (#19995) @bernardobelchior
|
|
164
|
+
- [charts] Batch string size measurement (#19994) @bernardobelchior
|
|
165
|
+
- [charts] Fix console issue (#20025) @JCQuintas
|
|
166
|
+
- [charts] Fix is[ZoomFeature]Enabled type (#20058) @alexfauquette
|
|
167
|
+
- [charts] Fix reference line middle spacing (#20004) @JCQuintas
|
|
168
|
+
- [charts] Improve `getStringSize` and `batchMeasureStrings` performance (#19996) @bernardobelchior
|
|
169
|
+
- [charts] Improve deep export script (#20007) @JCQuintas
|
|
170
|
+
- [charts] Improve string measurement benchmarks (#19999) @bernardobelchior
|
|
171
|
+
- [charts] Measure string sizes using SVG elements (#19981) @bernardobelchior
|
|
172
|
+
- [l10n] Improve Greek (gr-GR) locale (#20060) @ZagrebaAlex
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-charts-pro@8.15.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
175
|
+
|
|
176
|
+
Same changes as in `@mui/x-charts@8.15.0`, plus:
|
|
177
|
+
|
|
178
|
+
- [charts-pro] Fix pan with `axis.reverse` (#20031) @JCQuintas
|
|
179
|
+
|
|
180
|
+
#### `@mui/x-charts-premium@8.15.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
181
|
+
|
|
182
|
+
Same changes as in `@mui/x-charts-pro@8.15.0`.
|
|
183
|
+
|
|
184
|
+
### Tree View
|
|
185
|
+
|
|
186
|
+
#### `@mui/x-tree-view@8.15.0`
|
|
187
|
+
|
|
188
|
+
- [tree view] Multi character type-ahead (#19942) @noraleonte
|
|
189
|
+
|
|
190
|
+
#### `@mui/x-tree-view-pro@8.15.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
191
|
+
|
|
192
|
+
Same changes as in `@mui/x-tree-view@8.15.0`.
|
|
193
|
+
|
|
194
|
+
### Codemod
|
|
195
|
+
|
|
196
|
+
#### `@mui/x-codemod@8.14.0`
|
|
197
|
+
|
|
198
|
+
Internal changes.
|
|
199
|
+
|
|
200
|
+
### Docs
|
|
201
|
+
|
|
202
|
+
- [docs] Add overview section for scatter chart and heatmap (#19888) @prakhargupta1
|
|
203
|
+
- [docs] Add charts bell curve example (#20003) @JCQuintas
|
|
204
|
+
- [docs] Add grouped multiple fields for Data Grid row grouping recipe (#19964) @siriwatknp
|
|
205
|
+
- [docs] Add Data Grid loading state recipe (#19958) @siriwatknp
|
|
206
|
+
|
|
207
|
+
### Core
|
|
208
|
+
|
|
209
|
+
- [code-infra] Remove @mui/monorepo usage for react versioning (#19894) @Janpot
|
|
210
|
+
- [code-infra] Remove invalid `environment: 'browser'` from vitest browser config (#19993) @bernardobelchior
|
|
211
|
+
- [code-infra] Remove unused babel aliases (#19987) @Janpot
|
|
212
|
+
- [code-infra] Turn on all testing-library eslint rules (#19946) @brijeshb42
|
|
213
|
+
- [docs-infra] Fix broken hash link (#20062) @Janpot
|
|
214
|
+
|
|
8
215
|
## 8.14.1
|
|
9
216
|
|
|
10
217
|
_Oct 16, 2025_
|
package/constants/prompts.js
CHANGED
|
@@ -14,7 +14,8 @@ const mockPrompts = exports.mockPrompts = new Map([['sort by name', {
|
|
|
14
14
|
direction: 'asc'
|
|
15
15
|
}],
|
|
16
16
|
grouping: [],
|
|
17
|
-
pivoting: {}
|
|
17
|
+
pivoting: {},
|
|
18
|
+
chart: null
|
|
18
19
|
}], ['sort by company name and employee name', {
|
|
19
20
|
conversationId: 'mock',
|
|
20
21
|
select: -1,
|
|
@@ -28,7 +29,8 @@ const mockPrompts = exports.mockPrompts = new Map([['sort by name', {
|
|
|
28
29
|
direction: 'asc'
|
|
29
30
|
}],
|
|
30
31
|
grouping: [],
|
|
31
|
-
pivoting: {}
|
|
32
|
+
pivoting: {},
|
|
33
|
+
chart: null
|
|
32
34
|
}], ['show people from the eu', {
|
|
33
35
|
conversationId: 'mock',
|
|
34
36
|
select: -1,
|
|
@@ -40,7 +42,8 @@ const mockPrompts = exports.mockPrompts = new Map([['sort by name', {
|
|
|
40
42
|
aggregation: {},
|
|
41
43
|
sorting: [],
|
|
42
44
|
grouping: [],
|
|
43
|
-
pivoting: {}
|
|
45
|
+
pivoting: {},
|
|
46
|
+
chart: null
|
|
44
47
|
}], ['order companies by amount of people', {
|
|
45
48
|
conversationId: 'mock',
|
|
46
49
|
select: -1,
|
|
@@ -55,5 +58,6 @@ const mockPrompts = exports.mockPrompts = new Map([['sort by name', {
|
|
|
55
58
|
grouping: [{
|
|
56
59
|
column: 'company'
|
|
57
60
|
}],
|
|
58
|
-
pivoting: {}
|
|
61
|
+
pivoting: {},
|
|
62
|
+
chart: null
|
|
59
63
|
}]]);
|
package/esm/constants/prompts.js
CHANGED
|
@@ -8,7 +8,8 @@ export const mockPrompts = new Map([['sort by name', {
|
|
|
8
8
|
direction: 'asc'
|
|
9
9
|
}],
|
|
10
10
|
grouping: [],
|
|
11
|
-
pivoting: {}
|
|
11
|
+
pivoting: {},
|
|
12
|
+
chart: null
|
|
12
13
|
}], ['sort by company name and employee name', {
|
|
13
14
|
conversationId: 'mock',
|
|
14
15
|
select: -1,
|
|
@@ -22,7 +23,8 @@ export const mockPrompts = new Map([['sort by name', {
|
|
|
22
23
|
direction: 'asc'
|
|
23
24
|
}],
|
|
24
25
|
grouping: [],
|
|
25
|
-
pivoting: {}
|
|
26
|
+
pivoting: {},
|
|
27
|
+
chart: null
|
|
26
28
|
}], ['show people from the eu', {
|
|
27
29
|
conversationId: 'mock',
|
|
28
30
|
select: -1,
|
|
@@ -34,7 +36,8 @@ export const mockPrompts = new Map([['sort by name', {
|
|
|
34
36
|
aggregation: {},
|
|
35
37
|
sorting: [],
|
|
36
38
|
grouping: [],
|
|
37
|
-
pivoting: {}
|
|
39
|
+
pivoting: {},
|
|
40
|
+
chart: null
|
|
38
41
|
}], ['order companies by amount of people', {
|
|
39
42
|
conversationId: 'mock',
|
|
40
43
|
select: -1,
|
|
@@ -49,5 +52,6 @@ export const mockPrompts = new Map([['sort by name', {
|
|
|
49
52
|
grouping: [{
|
|
50
53
|
column: 'company'
|
|
51
54
|
}],
|
|
52
|
-
pivoting: {}
|
|
55
|
+
pivoting: {},
|
|
56
|
+
chart: null
|
|
53
57
|
}]]);
|
|
@@ -335,7 +335,10 @@ export const useMockServer = (dataSetOptions, serverOptions, shouldRequestsFail,
|
|
|
335
335
|
if (rowIndex === -1) {
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
// keep the path from the original row if the updated row's path is `undefined`
|
|
339
|
+
newRows[rowIndex] = _extends({}, updatedRow, {
|
|
340
|
+
path: updatedRow.path || newRows[rowIndex].path
|
|
341
|
+
});
|
|
339
342
|
const newData = _extends({}, dataRef.current, {
|
|
340
343
|
rows: newRows
|
|
341
344
|
});
|
package/esm/index.js
CHANGED
|
@@ -28,8 +28,8 @@ function EditRating(props) {
|
|
|
28
28
|
};
|
|
29
29
|
const handleRef = element => {
|
|
30
30
|
if (element) {
|
|
31
|
-
if (value
|
|
32
|
-
element.querySelector(`input[value="${value}"]`).focus();
|
|
31
|
+
if (value) {
|
|
32
|
+
element.querySelector(`input[value="${Math.round(value)}"]`).focus();
|
|
33
33
|
} else {
|
|
34
34
|
element.querySelector('input[value=""]').focus();
|
|
35
35
|
}
|
package/hooks/useMockServer.js
CHANGED
|
@@ -342,7 +342,10 @@ const useMockServer = (dataSetOptions, serverOptions, shouldRequestsFail, nested
|
|
|
342
342
|
if (rowIndex === -1) {
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
// keep the path from the original row if the updated row's path is `undefined`
|
|
346
|
+
newRows[rowIndex] = (0, _extends2.default)({}, updatedRow, {
|
|
347
|
+
path: updatedRow.path || newRows[rowIndex].path
|
|
348
|
+
});
|
|
346
349
|
const newData = (0, _extends2.default)({}, dataRef.current, {
|
|
347
350
|
rows: newRows
|
|
348
351
|
});
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-generator",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.16.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Generate fake data for demo purposes only.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"chance": "^1.1.13",
|
|
26
26
|
"clsx": "^2.1.1",
|
|
27
27
|
"lru-cache": "^11.2.2",
|
|
28
|
-
"@mui/x-data-grid": "8.
|
|
29
|
-
"@mui/x-
|
|
30
|
-
"@mui/x-data-grid-
|
|
31
|
-
"@mui/x-
|
|
28
|
+
"@mui/x-data-grid-premium": "8.16.0",
|
|
29
|
+
"@mui/x-internals": "8.16.0",
|
|
30
|
+
"@mui/x-data-grid-pro": "8.16.0",
|
|
31
|
+
"@mui/x-data-grid": "8.16.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@emotion/react": "^11.9.0",
|
|
@@ -36,8 +36,8 @@ function EditRating(props) {
|
|
|
36
36
|
};
|
|
37
37
|
const handleRef = element => {
|
|
38
38
|
if (element) {
|
|
39
|
-
if (value
|
|
40
|
-
element.querySelector(`input[value="${value}"]`).focus();
|
|
39
|
+
if (value) {
|
|
40
|
+
element.querySelector(`input[value="${Math.round(value)}"]`).focus();
|
|
41
41
|
} else {
|
|
42
42
|
element.querySelector('input[value=""]').focus();
|
|
43
43
|
}
|