@mui/x-data-grid-generator 7.0.0-beta.7 → 7.1.1

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,361 @@
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.1.1
7
+
8
+ _Apr 5, 2024_
9
+
10
+ We'd like to offer a big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 Add `setItemExpansion` Tree View API method (#12595) @flaviendelangle
13
+ - 🌍 Improve Persian (fa-IR), Portuguese (pt-BR), and Spanish (es-ES) locale on the Data Grid
14
+ - 🌍 Improve Persian (fa-IR), Portuguese (pt-BR), and Ukrainian (uk-UA) locale on the Pickers
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@7.1.1`
21
+
22
+ - [DataGrid] Allow higher packages' props to be used in MIT (#12365) @MBilalShafi
23
+ - [DataGrid] Fix RTL mode (#12583) @romgrk
24
+ - [DataGrid] Fix `ColDefChangesGridNoSnap` demo crash (#12663) @MBilalShafi
25
+ - [DataGrid] Fix server-side filter demo not working (#12662) @MBilalShafi
26
+ - [DataGrid] Log error if `rowCount` is used with client-side pagination (#12448) @michelengelen
27
+ - [DataGrid] Remove `GridFormatterParams` completely (#12660) @romgrk
28
+ - [DataGrid] Restore main slot (#12657) @romgrk
29
+ - [l10n] Improve Persian (fa-IR) locale (#12630) @amirhosseinzf
30
+ - [l10n] Improve Portuguese (pt-BR) locale (#12618) @hugoalkimim
31
+ - [l10n] Improve Spanish (es-ES) locale (#12606) @aitor40
32
+
33
+ #### `@mui/x-data-grid-pro@7.1.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.1.1`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.1.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@7.1.1`.
40
+
41
+ ### Date and Time Pickers
42
+
43
+ #### `@mui/x-date-pickers@7.1.1`
44
+
45
+ - [fields] Fix `readOnly` behavior (#12609) @LukasTy
46
+ - [l10n] Improve Persian (fa-IR) locale (#12632) @misafari
47
+ - [l10n] Improve Portuguese (pt-BR) locale (#12613) @cnHealth
48
+ - [l10n] Improve Ukrainian (uk-UA) locale (#12627) @alexkobylansky
49
+
50
+ #### `@mui/x-date-pickers-pro@7.1.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
51
+
52
+ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
53
+
54
+ - [DateTimeRangePicker] Fix selection on same day (#12604) @LukasTy
55
+
56
+ ### Charts
57
+
58
+ #### `@mui/x-charts@7.1.1`
59
+
60
+ - [charts] Fix `tickInterval` usage for y-axis (#12592) @alexfauquette
61
+ - [charts] Fix Scatter series highlight when `id` is a `number` (#12677) @JCQuintas
62
+ - [charts] Fix TS error when using `sx` property on `ChartsTooltip` (#12659) @JCQuintas
63
+
64
+ ### Tree View
65
+
66
+ #### `@mui/x-tree-view@7.1.1`
67
+
68
+ - [TreeView] Add JSDoc to all `publicAPI` methods (#12649) @flaviendelangle
69
+ - [TreeView] Create `RichTreeViewPro` component (not released yet) (#12610) @flaviendelangle
70
+ - [TreeView] Create pro package (not released yet) (#12240) @flaviendelangle
71
+ - [TreeView] Fix typo in errors (#12623) @alissa-tung
72
+ - [TreeView] New API method: `setItemExpansion` (#12595) @flaviendelangle
73
+
74
+ ### Docs
75
+
76
+ - [docs] Add a recipe for the `checkboxSelectionVisibleOnly` prop (#12646) @michelengelen
77
+ - [docs] Explain the use of `_action: 'delete'` in `processRowUpdate` (#12670) @michelengelen
78
+ - [docs] Fix formatting and typo on migration guide @oliviertassinari
79
+ - [docs] Fix formatting in changelog @oliviertassinari
80
+ - [docs] Fix grammar in TreeView migration doc (#12615) @joshkel
81
+ - [docs] Fix missing closing props in `PieShapeNoSnap` demo (#12636) @alp-ex
82
+ - [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
83
+ - [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
84
+ - [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
85
+ - [docs] Match IE 11 spacing with Material UI @oliviertassinari
86
+ - [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
87
+ - [docs] Remove ` around @default values (#12158) @alexfauquette
88
+ - [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
89
+ - [docs] Use `TreeItem2` for icon expansion example on `RichTreeView` (#12563) @flaviendelangle
90
+
91
+ ### Core
92
+
93
+ - [core] Add cherry-pick `master` to `v6` action (#12648) @LukasTy
94
+ - [core] Fix typo in `@mui/x-tree-view-pro/themeAugmentation` (#12674) @flaviendelangle
95
+ - [core] Introduce `describeTreeView` to run test on `SimpleTreeView` and `RichTreeView`, using `TreeItem` and `TreeItem2` + migrate expansion tests (#12428) @flaviendelangle
96
+ - [core] Limit `test-types` CI step allowed memory (#12651) @LukasTy
97
+ - [core] Remove explicit `express` package (#12602) @LukasTy
98
+ - [core] Update to new embedded translations in the docs package (#12232) @Janpot
99
+ - [core] Use PR labels to identify the package a `l10n` PR belongs to (#12639) @LukasTy
100
+ - [core] Use `describeTreeView` for selection tests (#12647) @flaviendelangle
101
+ - [docs-infra] Adjust the links to search for issues (#11995) @michelengelen
102
+ - [infra] Polish support survey experience (#12624) @oliviertassinari
103
+ - [support-infra] Replace author association with a permission check in survey action (#12068) @michelengelen
104
+ - [support-infra] Fix user permission check (#12669) @michelengelen
105
+ - [test] Fix Tree View test import (#12668) @LukasTy
106
+
107
+ ## 7.1.0
108
+
109
+ _Mar 28, 2024_
110
+
111
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
112
+
113
+ - 🚀 Add `resizeThrottleMs` prop (#12556) @romgrk
114
+ - 🌍 Improve Chinese (Hong Kong) (zh-HK) and Italian (it-IT) locale on the Pickers
115
+ - 🐞 Bugfixes
116
+ - 📚 Documentation improvements
117
+
118
+ ### Data Grid
119
+
120
+ #### `@mui/x-data-grid@7.1.0`
121
+
122
+ - [DataGrid] Add `resizeThrottleMs` prop (#12556) @romgrk
123
+ - [DataGrid] Do not publish `rowEditStop` event if row has fields with errors (#11383) @cherniavskii
124
+ - [DataGrid] Fix bug in suspense (#12553) @romgrk
125
+ - [DataGrid] Fix missing class name in the `GridToolbarQuickFilter` component (#12484) @jhawkins11
126
+
127
+ #### `@mui/x-data-grid-pro@7.1.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
128
+
129
+ Same changes as in `@mui/x-data-grid@7.1.0`.
130
+
131
+ #### `@mui/x-data-grid-premium@7.1.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
132
+
133
+ Same changes as in `@mui/x-data-grid-pro@7.1.0`.
134
+
135
+ ### Date and Time Pickers
136
+
137
+ #### `@mui/x-date-pickers@7.1.0`
138
+
139
+ - [fields] Fix placeholder override (#12589) @flaviendelangle
140
+ - [l10n] Improve Chinese (Hong Kong) (zh-HK) locale (#12547) @samchiu90
141
+ - [l10n] Improve Italian (it-IT) locale (#12549) @antomanc
142
+ - [pickers] Prepare compatibility with `@mui/zero-runtime` (stop using `ownerState` in `styled`) (#12003) @flaviendelangle
143
+
144
+ #### `@mui/x-date-pickers-pro@7.1.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
145
+
146
+ Same changes as in `@mui/x-date-pickers@7.1.0`, plus:
147
+
148
+ - [DateRangePicker] Fix selection behavior with single input field when `readOnly` (#12593) @LukasTy
149
+
150
+ ### Charts
151
+
152
+ #### `@mui/x-charts@7.1.0`
153
+
154
+ - [charts] Fix tooltip causing crash on data change (#12571) @Rishi556
155
+
156
+ ### Tree View
157
+
158
+ #### `@mui/x-tree-view@7.1.0`
159
+
160
+ - [TreeView] Do not use outdated version of the state to compute new label first char in `RichTreeView` (#12512) @flaviendelangle
161
+
162
+ ### Docs
163
+
164
+ - [docs] Add example to add a second icon next to the field's opening button (#12524) @flaviendelangle
165
+ - [docs] Add missing note to Data Grid migration guide (#12557) @romgrk
166
+ - [docs] Fix Charts title for SEO (#12545) @oliviertassinari
167
+ - [docs] Fix small typo (#12558) @diogoparente
168
+ - [docs] Improve codemod related documentation (#12582) @MBilalShafi
169
+ - [docs] Reduce noise in migration docs side navigation (#12552) @cherniavskii
170
+ - [docs] Sync static images from core repository (#12525) @LukasTy
171
+
172
+ ### Core
173
+
174
+ - [core] Fix `l10n` script on Windows (#12550) @LukasTy
175
+ - [core] Include `DateTimeRangePicker` tag in `releaseChangelog` (#12526) @LukasTy
176
+ - [core] Upgrade monorepo (#12536) @cherniavskii
177
+
178
+ ## 7.0.0
179
+
180
+ _Mar 22, 2024_
181
+
182
+ We're excited to [announce the first v7 stable release](https://mui.com/blog/mui-x-v7/)! 🎉🚀
183
+
184
+ This is now the officially supported major version, where we'll keep rolling out new features, bug fixes, and improvements.
185
+ Migration guides are available with a complete list of the breaking changes:
186
+
187
+ - [Data Grid](https://mui.com/x/migration/migration-data-grid-v6/)
188
+ - [Date and Time Pickers](https://mui.com/x/migration/migration-pickers-v6/)
189
+ - [Tree View](https://mui.com/x/migration/migration-tree-view-v6/)
190
+ - [Charts](https://mui.com/x/migration/migration-charts-v6/)
191
+
192
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
193
+
194
+ - 🚀 Improve the usage of custom `viewRenderers` on `DateTimePicker` (#12441) @LukasTy
195
+ - ✨ Set focus on the focused Tree Item instead of the Tree View (#12226) @flaviendelangle
196
+ - 🕹️ Support controlled `density` for the Data Grid (#12332) @MBilalShafi
197
+ - 🎁 Dynamic virtualization range for the Data Grid (#12353) @romgrk
198
+ - 🐞 Bugfixes
199
+ - 📚 Documentation improvements
200
+
201
+ ### Data Grid
202
+
203
+ #### Breaking changes
204
+
205
+ - The `density` is a [controlled prop](https://mui.com/x/react-data-grid/accessibility/#set-the-density-programmatically) now, if you were previously passing the `density` prop to the Data Grid, you will need to do one of the following:
206
+
207
+ 1. Move it to the `initialState.density` to initialize it.
208
+
209
+ ```diff
210
+ <DataGrid
211
+ - density="compact"
212
+ + initialState={{ density: "compact" }}
213
+ />
214
+ ```
215
+
216
+ 2. Move it to the state and use `onDensityChange` callback to update the `density` prop accordingly for it to work as expected.
217
+
218
+ ```diff
219
+ + const [density, setDensity] = React.useState<GridDensity>('compact');
220
+ <DataGrid
221
+ - density="compact"
222
+ + density={density}
223
+ + onDensityChange={(newDensity) => setDensity(newDensity)}
224
+ />
225
+ ```
226
+
227
+ - The selector `gridDensityValueSelector` was removed, use the `gridDensitySelector` instead.
228
+
229
+ - The props `rowBuffer` and `columnBuffer` were renamed to `rowBufferPx` and `columnBufferPx`.
230
+ Their value is now a pixel value rather than a number of items. Their default value is now `150`.
231
+
232
+ - The props `rowThreshold` and `columnThreshold` have been removed.
233
+ If you had the `rowThreshold` prop set to `0` to force new rows to be rendered more often – this is no longer necessary.
234
+
235
+ #### `@mui/x-data-grid@7.0.0`
236
+
237
+ - [DataGrid] Allow to control the grid density (#12332) @MBilalShafi
238
+ - [DataGrid] Dynamic virtualization range (#12353) @romgrk
239
+ - [DataGrid] Fix `ElementType` usage (#12479) @cherniavskii
240
+ - [DataGrid] Fix cell value formatting on copy (#12357) @sai6855
241
+ - [DataGrid] Fix checkbox selection is keeping selection when filtering (#11751) @g1mishra
242
+ - [DataGrid] Make `rows` an optional prop (#12478) @MBilalShafi
243
+
244
+ #### `@mui/x-data-grid-pro@7.0.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
245
+
246
+ Same changes as in `@mui/x-data-grid@7.0.0`.
247
+
248
+ #### `@mui/x-data-grid-premium@7.0.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
249
+
250
+ Same changes as in `@mui/x-data-grid-pro@7.0.0`, plus:
251
+
252
+ - [DataGridPremium] Add support for confirmation before clipboard paste (#12225) @cherniavskii
253
+ - [DataGridPremium] Fix single grouping column sorting (#9679) @cherniavskii
254
+ - [DataGridPremium] Fix boolean cell not rendered in group rows (#12492) @sai6855
255
+
256
+ ### Date and Time Pickers
257
+
258
+ #### Breaking changes
259
+
260
+ - The `DesktopDateTimePicker` view rendering has been optimized by using the same technique as for `DesktopDateTimeRangePicker`.
261
+ - The `dateTimeViewRenderers` have been removed in favor of reusing existing time view renderers (`renderTimeViewClock`, `renderDigitalClockTimeView` and `renderMultiSectionDigitalClockTimeView`) and date view renderer (`renderDateViewCalendar`).
262
+ - Passing `renderTimeViewClock` to time view renderers will no longer revert to the old behavior of rendering only date or time view.
263
+
264
+ #### `@mui/x-date-pickers@7.0.0`
265
+
266
+ - [fields] Allow to override the separator between the start and the end date in all range fields (#12174) @flaviendelangle
267
+ - [fields] Support format without separator (#12489) @flaviendelangle
268
+ - [pickers] Use renderer interceptor on `DesktopDateTimePicker` (#12441) @LukasTy
269
+
270
+ #### `@mui/x-date-pickers-pro@7.0.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
271
+
272
+ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
273
+
274
+ - [DateTimeRangePicker] Add component `JSDoc` (#12518) @LukasTy
275
+ - [DateTimeRangePicker] Fix views behavior regression (#12529) @LukasTy
276
+
277
+ ### Charts
278
+
279
+ #### `@mui/x-charts@7.0.0`
280
+
281
+ - [charts] Fix small typo in `CartesianContextProvider` (#12461) @Janpot
282
+
283
+ ### Tree View
284
+
285
+ #### Breaking changes
286
+
287
+ - The required `nodeId` prop used by the `TreeItem` has been renamed to `itemId` for consistency:
288
+
289
+ ```diff
290
+ <TreeView>
291
+ - <TreeItem label="Item 1" nodeId="one">
292
+ + <TreeItem label="Item 1" itemId="one">
293
+ </TreeView>
294
+ ```
295
+
296
+ - The focus is now applied to the Tree Item root element instead of the Tree View root element.
297
+
298
+ This change will allow new features that require the focus to be on the Tree Item,
299
+ like the drag and drop reordering of items.
300
+ It also solves several issues with focus management,
301
+ like the inability to scroll to the focused item when a lot of items are rendered.
302
+
303
+ This will mostly impact how you write tests to interact with the Tree View:
304
+
305
+ For example, if you were writing a test with `react-testing-library`, here is what the changes could look like:
306
+
307
+ ```diff
308
+ it('test example on first item', () => {
309
+ - const { getByRole } = render(
310
+ + const { getAllByRole } = render(
311
+ <SimpleTreeView>
312
+ <TreeItem nodeId="one" />
313
+ <TreeItem nodeId="two" />
314
+ </SimpleTreeView>
315
+ );
316
+
317
+ - const tree = getByRole('tree');
318
+ + const firstTreeItem = getAllByRole('treeitem')[0];
319
+ act(() => {
320
+ - tree.focus();
321
+ + firstTreeItem.focus();
322
+ });
323
+ - fireEvent.keyDown(tree, { key: 'ArrowDown' });
324
+ + fireEvent.keyDown(firstTreeItem, { key: 'ArrowDown' });
325
+ })
326
+ ```
327
+
328
+ #### `@mui/x-tree-view@7.0.0`
329
+
330
+ - [TreeView] Rename `nodeId` to `itemId` (#12418) @noraleonte
331
+ - [TreeView] Set focus on the focused Tree Item instead of the Tree View (#12226) @flaviendelangle
332
+ - [TreeView] Update JSDoc of the `ContentComponent` prop to avoid using the word "node" (#12476) @flaviendelangle
333
+
334
+ ### `@mui/x-codemod@7.0.0`
335
+
336
+ - [codemod] Add a codemod and update the grid migration guide (#12488) @MBilalShafi
337
+
338
+ ### Docs
339
+
340
+ - [docs] Finalize migration guide (#12501) @noraleonte
341
+ - [docs] Fix nested cells alignment in the popular features demo (#12450) @cherniavskii
342
+ - [docs] Fix some Vale errors (#12469) @oliviertassinari
343
+ - [docs] Remove mentions of pre release (#12513) @noraleonte
344
+ - [docs] Update branch name and tags (#12498) @cherniavskii
345
+ - [docs] Update links to v6 (#12496) @cherniavskii
346
+ - [docs] Update links to v7 docs (#12500) @noraleonte
347
+ - [docs] Update supported versions (#12508) @joserodolfofreitas
348
+ - [docs] Update "What's new in MUI X" page #12527 @cherniavskii
349
+
350
+ ### Core
351
+
352
+ - [core] Bump `@mui/material` peer dependency for all packages (#12516) @LukasTy
353
+ - [core] Fix `no-restricted-imports` ESLint rule not working for Data Grid packages (#12477) @cherniavskii
354
+ - [core] Lower the frequency of `no-response` action runs (#12491) @michaldudak
355
+ - [core] Remove leftover `legacy` `browserlistrc` entry (#12415) @LukasTy
356
+ - [core] Update NPM tag (#12511) @cherniavskii
357
+ - [core] Update supported browsers (browserlistrc) (#12521) @LukasTy
358
+ - [core] Use Circle CI context @oliviertassinari
359
+ - [license] Fix grammar on expired license error message (#12460) @joserodolfofreitas
360
+
6
361
  ## 7.0.0-beta.7
7
362
 
8
363
  _Mar 14, 2024_
@@ -90,7 +445,7 @@ The `onNodeFocus` callback has been renamed to `onItemFocus` for consistency:
90
445
  - [docs] Add `legacy` bundle drop mention in migration pages (#12424) @LukasTy
91
446
  - [docs] Add missing luxon `Info` import (#12427) @LukasTy
92
447
  - [docs] Improve slots definitions for charts (#12408) @alexfauquette
93
- - [docs] Polish What's new in MUI X blog titles (#12309) @oliviertassinari
448
+ - [docs] Polish What's new in MUI X blog titles (#12309) @oliviertassinari
94
449
  - [docs] Replace `rel="noreferrer"` by `rel="noopener"` @oliviertassinari
95
450
  - [docs] Update `date-fns` `weekStarsOn` overriding example (#12416) @LukasTy
96
451
 
@@ -252,7 +607,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.5`.
252
607
  ### Docs
253
608
 
254
609
  - [docs] Fix image layout shift when loading @oliviertassinari
255
- - [docs] Match Material UI repo comment for redirections @oliviertassinari
610
+ - [docs] Match Material UI repo comment for redirections @oliviertassinari
256
611
  - [docs] Non breaking spaces @oliviertassinari
257
612
  - [docs] Polish the Date Picker playground (#11869) @zanivan
258
613
  - [docs] Standardize WAI-ARIA references @oliviertassinari
@@ -263,9 +618,9 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.5`.
263
618
  - [core] Remove grid folder from `getComponentInfo` RegExp (#12241) @flaviendelangle
264
619
  - [core] Remove `window.` reference for common globals @oliviertassinari
265
620
  - [core] Use runtime agnostic setTimeout type @oliviertassinari
266
- - [docs-infra] Fix Stack Overflow breaking space @oliviertassinari
621
+ - [docs-infra] Fix Stack Overflow breaking space @oliviertassinari
267
622
  - [docs-infra] Fix missing non breaking spaces @oliviertassinari
268
- - [github] Update `no-response` workflow (#12193) @MBilalShafi
623
+ - [infra] Update `no-response` workflow (#12193) @MBilalShafi
269
624
  - [infra] Fix missing permission reset @oliviertassinari
270
625
 
271
626
  ## 7.0.0-beta.4
@@ -276,13 +631,13 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
276
631
 
277
632
  - 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
278
633
  - 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
279
- - 🕥 The support for IE11 has been removed (#12151) @flaviendelangle
634
+ - 🕥 The support for IE 11 has been removed (#12151) @flaviendelangle
280
635
  - 🐞 Bugfixes
281
636
  - 📚 Documentation improvements
282
637
 
283
638
  ### Breaking changes
284
639
 
285
- - The support for IE11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE11 is no longer included.
640
+ - The support for IE 11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE 11 is no longer included.
286
641
 
287
642
  ### Data Grid
288
643
 
@@ -324,7 +679,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
324
679
  - The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
325
680
  This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).
326
681
 
327
- When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
682
+ When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
328
683
 
329
684
  ```diff
330
685
  function MyCustomTextField(props) {
@@ -387,12 +742,12 @@ These components are no longer exported from `@mui/x-charts`:
387
742
 
388
743
  ### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
389
744
 
390
- - [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle
745
+ - [TreeView] Stop using custom `findIndex` to support IE 11 (#12129) @flaviendelangle
391
746
 
392
747
  ### Docs
393
748
 
394
749
  - [docs] Add recipe for hiding separator on non-resizable columns (#12134) @michelengelen
395
- - [docs] Add small improvements to the Gauge Chart page (#12076) @danilo-leal
750
+ - [docs] Add small improvements to the Gauge page (#12076) @danilo-leal
396
751
  - [docs] Add the 'point' scaleType to the axis documentation (#12179) @alexfauquette
397
752
  - [docs] Clarify Pickers 'Component composition' section (#12097) @LukasTy
398
753
  - [docs] Fix "Licensing" page link (#12156) @LukasTy
@@ -975,7 +1330,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.9`.
975
1330
 
976
1331
  - [charts] Do not propagate `innerRadius` and `outerRadius` to the DOM (#11689) @alexfauquette
977
1332
  - [charts] Fix default `stackOffset` for `LineChart` (#11647) @alexfauquette
978
- - [charts] Remove a TS ignore (#11688) @alexfauquette
1333
+ - [charts] Remove a TypeScript ignore (#11688) @alexfauquette
979
1334
 
980
1335
  ### Tree View
981
1336
 
@@ -1404,7 +1759,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.7`.
1404
1759
  - [core] Fix release changelog (#11496) @romgrk
1405
1760
  - [core] Fix use of ::before & ::after (#11515) @oliviertassinari
1406
1761
  - [core] Localize the issue template to MUI X (#11511) @oliviertassinari
1407
- - [core] Regen api files (#11542) @flaviendelangle
1762
+ - [core] Regenerate API files (#11542) @flaviendelangle
1408
1763
  - [core] Remove issue emoji @oliviertassinari
1409
1764
  - [core] Sync the release instructions with MUI Core @oliviertassinari
1410
1765
  - [core] Yaml format match most common convention @oliviertassinari
@@ -1447,7 +1802,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
1447
1802
 
1448
1803
  - The `filterModel` now supports `Date` objects as values for `date` and `dateTime` column types.
1449
1804
  The `filterModel` still accepts strings as values for `date` and `dateTime` column types,
1450
- but all updates to the `filterModel` coming from the UI (e.g. filter panel) will set the value as a `Date` object.
1805
+ but all updates to the `filterModel` coming from the UI (for example filter panel) will set the value as a `Date` object.
1451
1806
 
1452
1807
  #### `@mui/x-data-grid@7.0.0-alpha.6`
1453
1808
 
@@ -1658,7 +2013,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.5`, plus:
1658
2013
  ### Core
1659
2014
 
1660
2015
  - [core] Automate cherry-pick of PRs from `next` -> `master` (#11382) @MBilalShafi
1661
- - [github] Update `no-response` workflow (#11369) @MBilalShafi
2016
+ - [infra] Update `no-response` workflow (#11369) @MBilalShafi
1662
2017
  - [test] Fix flaky screenshots (#11388) @cherniavskii
1663
2018
 
1664
2019
  ## 7.0.0-alpha.4
@@ -1896,7 +2251,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.3`.
1896
2251
 
1897
2252
  - [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11144) @michelengelen
1898
2253
  - [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
1899
- - [charts] Fix TS config (#11259) @alexfauquette
2254
+ - [charts] Fix TypeScript config (#11259) @alexfauquette
1900
2255
  - [charts] Fix error with empty dataset (#11063) @alexfauquette
1901
2256
  - [charts] Fix export strategy (#11235) @alexfauquette
1902
2257
  - [charts] Remove outdated prop-types (#11045) @alexfauquette
@@ -2617,6 +2972,76 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2617
2972
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2618
2973
  - [license] Correctly throw errors (#10924) @oliviertassinari
2619
2974
 
2975
+ ## 6.19.9
2976
+
2977
+ _Apr 5, 2024_
2978
+
2979
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
2980
+
2981
+ - 🐞 Bugfixes
2982
+ - 📚 Documentation improvements
2983
+
2984
+ ### Data Grid
2985
+
2986
+ #### `@mui/x-data-grid@6.19.9`
2987
+
2988
+ - [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12087) @MBilalShafi
2989
+
2990
+ #### `@mui/x-data-grid-pro@6.19.9` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2991
+
2992
+ Same changes as in `@mui/x-data-grid@6.19.9`.
2993
+
2994
+ #### `@mui/x-data-grid-premium@6.19.9` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2995
+
2996
+ Same changes as in `@mui/x-data-grid-pro@6.19.9`.
2997
+
2998
+ ### Date Pickers
2999
+
3000
+ #### `@mui/x-date-pickers@6.19.9`
3001
+
3002
+ No changes.
3003
+
3004
+ #### `@mui/x-date-pickers-pro@6.19.9` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
3005
+
3006
+ - [DateRangePicker] Fix selection behavior with single input field when `readOnly` (#12605) @LukasTy
3007
+
3008
+ ### Docs
3009
+
3010
+ - [docs] Add a recipe for the `checkboxSelectionVisibleOnly` prop (#12667) @michelengelen
3011
+ - [docs] Explain the use of `_action: 'delete'` in `processRowUpdate` (#12673) @michelengelen
3012
+
3013
+ ### Core
3014
+
3015
+ - [core] Use Circle CI context (#12607) @cherniavskii
3016
+
3017
+ ## 6.19.8
3018
+
3019
+ _Mar 20, 2024_
3020
+
3021
+ We'd like to offer a big thanks to the 3 contributors who made this release possible.
3022
+
3023
+ ### Data Grid
3024
+
3025
+ #### `@mui/x-data-grid@6.19.8`
3026
+
3027
+ - [DataGrid] Fix `ElementType` usage (#12505) @cherniavskii
3028
+ - [DataGrid] Fix cell value formatting on copy (#12483) @sai6855
3029
+ - [DataGrid] Fix checkbox selection when filtering (#12485) @g1mishra
3030
+
3031
+ #### `@mui/x-data-grid-pro@6.19.8` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
3032
+
3033
+ Same changes as in `@mui/x-data-grid@6.19.8`.
3034
+
3035
+ #### `@mui/x-data-grid-premium@6.19.8` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
3036
+
3037
+ Same changes as in `@mui/x-data-grid-pro@6.19.8`, plus:
3038
+
3039
+ - [DataGridPremium] Add support for confirmation before clipboard paste (#12466) @cherniavskii
3040
+
3041
+ ### Docs
3042
+
3043
+ - [docs] Update links to v7 (#12495) @cherniavskii
3044
+
2620
3045
  ## 6.19.7
2621
3046
 
2622
3047
  _Mar 14, 2024_
@@ -167,7 +167,7 @@ export const getCommodityColumns = (editable = false) => [{
167
167
  }
168
168
  return value;
169
169
  },
170
- valueFormatter: value => value == null ? void 0 : value.label,
170
+ valueFormatter: value => value?.label,
171
171
  groupingValueGetter: value => value.code,
172
172
  sortComparator: (v1, v2, param1, param2) => gridStringOrNumberComparator(v1.label, v2.label, param1, param2),
173
173
  editable,
@@ -79,7 +79,7 @@ export const getEmployeeColumns = () => [{
79
79
  headerName: 'Country',
80
80
  type: 'singleSelect',
81
81
  valueOptions: COUNTRY_ISO_OPTIONS_SORTED,
82
- valueFormatter: value => value == null ? void 0 : value.label,
82
+ valueFormatter: value => value?.label,
83
83
  generateData: randomCountry,
84
84
  renderCell: renderCountry,
85
85
  renderEditCell: renderEditCountry,
@@ -60,12 +60,9 @@ const deepFreeze = object => {
60
60
  export const getColumnsFromOptions = options => {
61
61
  let columns = options.dataSet === 'Commodity' ? getCommodityColumns(options.editable) : getEmployeeColumns();
62
62
  if (options.visibleFields) {
63
- columns = columns.map(col => {
64
- var _options$visibleField;
65
- return (_options$visibleField = options.visibleFields) != null && _options$visibleField.includes(col.field) ? col : _extends({}, col, {
66
- hide: true
67
- });
68
- });
63
+ columns = columns.map(col => options.visibleFields?.includes(col.field) ? col : _extends({}, col, {
64
+ hide: true
65
+ }));
69
66
  }
70
67
  if (options.maxColumns) {
71
68
  columns = columns.slice(0, options.maxColumns);
@@ -73,14 +70,13 @@ export const getColumnsFromOptions = options => {
73
70
  return columns;
74
71
  };
75
72
  export const getInitialState = (options, columns) => {
76
- var _options$treeData;
77
73
  const columnVisibilityModel = {};
78
74
  columns.forEach(col => {
79
75
  if (col.hide) {
80
76
  columnVisibilityModel[col.field] = false;
81
77
  }
82
78
  });
83
- const groupingField = (_options$treeData = options.treeData) == null ? void 0 : _options$treeData.groupingField;
79
+ const groupingField = options.treeData?.groupingField;
84
80
  if (groupingField) {
85
81
  columnVisibilityModel[groupingField] = false;
86
82
  }
@@ -91,7 +87,6 @@ export const getInitialState = (options, columns) => {
91
87
  };
92
88
  };
93
89
  export const useDemoData = options => {
94
- var _options$treeData5, _options$treeData6, _options$treeData7;
95
90
  const [rowLength, setRowLength] = React.useState(options.rowLength);
96
91
  const [index, setIndex] = React.useState(0);
97
92
  const [loading, setLoading] = React.useState(true);
@@ -122,7 +117,7 @@ export const useDemoData = options => {
122
117
  return undefined;
123
118
  }
124
119
  let active = true;
125
- (async (_options$treeData2, _options$treeData3, _options$treeData4) => {
120
+ (async () => {
126
121
  setLoading(true);
127
122
  let newData;
128
123
  if (rowLength > 1000) {
@@ -135,9 +130,9 @@ export const useDemoData = options => {
135
130
  return;
136
131
  }
137
132
  newData = addTreeDataOptionsToDemoData(newData, {
138
- maxDepth: (_options$treeData2 = options.treeData) == null ? void 0 : _options$treeData2.maxDepth,
139
- groupingField: (_options$treeData3 = options.treeData) == null ? void 0 : _options$treeData3.groupingField,
140
- averageChildren: (_options$treeData4 = options.treeData) == null ? void 0 : _options$treeData4.averageChildren
133
+ maxDepth: options.treeData?.maxDepth,
134
+ groupingField: options.treeData?.groupingField,
135
+ averageChildren: options.treeData?.averageChildren
141
136
  });
142
137
 
143
138
  // It's quite slow. No need for it in production.
@@ -151,7 +146,7 @@ export const useDemoData = options => {
151
146
  return () => {
152
147
  active = false;
153
148
  };
154
- }, [rowLength, options.dataSet, options.maxColumns, (_options$treeData5 = options.treeData) == null ? void 0 : _options$treeData5.maxDepth, (_options$treeData6 = options.treeData) == null ? void 0 : _options$treeData6.groupingField, (_options$treeData7 = options.treeData) == null ? void 0 : _options$treeData7.averageChildren, index, columns]);
149
+ }, [rowLength, options.dataSet, options.maxColumns, options.treeData?.maxDepth, options.treeData?.groupingField, options.treeData?.averageChildren, index, columns]);
155
150
  return {
156
151
  data,
157
152
  loading,
package/hooks/useQuery.js CHANGED
@@ -6,8 +6,7 @@ import { useDemoData, getColumnsFromOptions, getInitialState } from './useDemoDa
6
6
  import { randomInt } from '../services/random-generator';
7
7
  const apiRef = {};
8
8
  const simplifiedValueGetter = (field, colDef) => row => {
9
- var _colDef$valueGetter;
10
- return ((_colDef$valueGetter = colDef.valueGetter) == null ? void 0 : _colDef$valueGetter.call(colDef, row[row.id], row, colDef, apiRef)) || row[field];
9
+ return colDef.valueGetter?.(row[row.id], row, colDef, apiRef) || row[field];
11
10
  };
12
11
  const getRowComparator = (sortModel, columnsWithDefaultColDef) => {
13
12
  if (!sortModel) {
@@ -56,11 +55,10 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
56
55
  }) => operator === value);
57
56
  let parsedValue = filterItem.value;
58
57
  if (colDef.valueParser) {
59
- var _filterItem$value;
60
58
  const parser = colDef.valueParser;
61
- parsedValue = Array.isArray(filterItem.value) ? (_filterItem$value = filterItem.value) == null ? void 0 : _filterItem$value.map(x => parser(x)) : parser(filterItem.value);
59
+ parsedValue = Array.isArray(filterItem.value) ? filterItem.value?.map(x => parser(x)) : parser(filterItem.value);
62
60
  }
63
- return filterOperator == null ? void 0 : filterOperator.getApplyFilterFn({
61
+ return filterOperator?.getApplyFilterFn({
64
62
  filterItem,
65
63
  value: parsedValue
66
64
  }, colDef);
@@ -75,9 +73,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
75
73
  }
76
74
  return rows.filter(row => filterModel.items.every((_, index) => {
77
75
  const value = valueGetters[index](row);
78
- return filterFunctions[index] === null ? true : filterFunctions[index]({
79
- value
80
- });
76
+ return filterFunctions[index] === null ? true : filterFunctions[index](value);
81
77
  }));
82
78
  };
83
79
 
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.0.0-beta.7
2
+ * @mui/x-data-grid-generator v7.1.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -73,9 +73,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
73
73
  }
74
74
  return rows.filter(row => filterModel.items.every((_, index) => {
75
75
  const value = valueGetters[index](row);
76
- return filterFunctions[index] === null ? true : filterFunctions[index]({
77
- value
78
- });
76
+ return filterFunctions[index] === null ? true : filterFunctions[index](value);
79
77
  }));
80
78
  };
81
79
 
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.0.0-beta.7
2
+ * @mui/x-data-grid-generator v7.1.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -82,9 +82,7 @@ const getFilteredRows = (rows, filterModel, columnsWithDefaultColDef) => {
82
82
  }
83
83
  return rows.filter(row => filterModel.items.every((_, index) => {
84
84
  const value = valueGetters[index](row);
85
- return filterFunctions[index] === null ? true : filterFunctions[index]({
86
- value
87
- });
85
+ return filterFunctions[index] === null ? true : filterFunctions[index](value);
88
86
  }));
89
87
  };
90
88
 
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v7.0.0-beta.7
2
+ * @mui/x-data-grid-generator v7.1.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "7.0.0-beta.7",
3
+ "version": "7.1.1",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -23,15 +23,15 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@babel/runtime": "^7.24.0",
26
- "@mui/base": "^5.0.0-beta.36",
27
- "@mui/x-data-grid-premium": "7.0.0-beta.7",
26
+ "@mui/base": "^5.0.0-beta.40",
27
+ "@mui/x-data-grid-premium": "7.1.1",
28
28
  "chance": "^1.1.11",
29
29
  "clsx": "^2.1.0",
30
30
  "lru-cache": "^7.18.3"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@mui/icons-material": "^5.4.1",
34
- "@mui/material": "^5.15.0",
34
+ "@mui/material": "^5.15.14",
35
35
  "react": "^17.0.0 || ^18.0.0"
36
36
  },
37
37
  "setupFiles": [
@@ -2,8 +2,7 @@ import * as React from 'react';
2
2
  import { DemoLink } from './renderLink';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  export function renderEmail(params) {
5
- var _params$value;
6
- const email = (_params$value = params.value) != null ? _params$value : '';
5
+ const email = params.value ?? '';
7
6
  return /*#__PURE__*/_jsx(DemoLink, {
8
7
  href: `mailto:${email}`,
9
8
  tabIndex: params.tabIndex,
@@ -13,12 +13,11 @@ if (typeof DISABLE_CHANCE_RANDOM !== 'undefined' && DISABLE_CHANCE_RANDOM) {
13
13
  * Wrap a data generator that returns a string and add a prefix if the value generated has already been given
14
14
  */
15
15
  const uniquenessHandler = generator => (data, context) => {
16
- var _context$values$rawVa;
17
16
  const rawValue = generator(data, context);
18
17
  if (!context.values) {
19
18
  return rawValue;
20
19
  }
21
- const valueCount = ((_context$values$rawVa = context.values[rawValue]) != null ? _context$values$rawVa : 0) + 1;
20
+ const valueCount = (context.values[rawValue] ?? 0) + 1;
22
21
  context.values[rawValue] = valueCount + 1;
23
22
  if (valueCount > 1) {
24
23
  return `${rawValue} ${valueCount}`;
@@ -1,7 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { randomArrayItem } from './random-generator';
3
3
  export const addTreeDataOptionsToDemoData = (data, options = {}) => {
4
- var _groupingCol$headerNa;
5
4
  const {
6
5
  averageChildren = 2,
7
6
  maxDepth = 1,
@@ -62,7 +61,7 @@ export const addTreeDataOptionsToDemoData = (data, options = {}) => {
62
61
  });
63
62
  return _extends({}, data, {
64
63
  groupingColDef: {
65
- headerName: (_groupingCol$headerNa = groupingCol.headerName) != null ? _groupingCol$headerNa : groupingCol.field,
64
+ headerName: groupingCol.headerName ?? groupingCol.field,
66
65
  width: 250
67
66
  },
68
67
  getTreeDataPath: row => row.path,