@mui/x-data-grid-pro 6.11.2 → 6.12.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,131 @@
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.12.1
7
+
8
+ _Aug 31, 2023_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🏎️ Perf improvement for line charts
13
+ - 🎁 Add `referenceDate` prop on pickers (#9991) @flaviendelangle
14
+ Find out more about this feature in the [documentation section](https://mui.com/x/react-date-pickers/base-concepts/#reference-date-when-no-value-is-defined).
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@v6.12.1`
21
+
22
+ - [DataGrid] Add a recipe showing how to render components outside of the grid (#10121) @DanailH
23
+ - [DataGrid] Fix `valueFormatter` being persisted on column type change (#10041) @cherniavskii
24
+ - [DataGrid] Fix error when keyboard navigating an empty grid (#10081) @romgrk
25
+ - [DataGrid] Replace timeout with `useTimeout` (#10179) @romgrk
26
+
27
+ #### `@mui/x-data-grid-pro@v6.12.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
28
+
29
+ Same changes as in `@mui/x-data-grid@v6.12.1`.
30
+
31
+ #### `@mui/x-data-grid-premium@v6.12.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
32
+
33
+ Same changes as in `@mui/x-data-grid-pro@v6.12.1`.
34
+
35
+ ### Date Pickers
36
+
37
+ #### `@mui/x-date-pickers@v6.12.1`
38
+
39
+ - [pickers] Add `referenceDate` on picker components (and `DateRangeCalendar`) (#9991) @flaviendelangle
40
+
41
+ #### `@mui/x-date-pickers-pro@v6.12.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
42
+
43
+ Same changes as in `@mui/x-date-pickers@v6.12.1`.
44
+
45
+ ### Charts / `@mui/x-charts@6.0.0-alpha.9`
46
+
47
+ - [charts] Move the line item highligh into a dedicated component (#10117) @alexfauquette
48
+
49
+ ### Docs
50
+
51
+ - [docs] Add `DemoContainer` and `DemoItem` JSDoc (#10186) @LukasTy
52
+ - [docs] Add link to `custom layout` page (#10184) @LukasTy
53
+ - [docs] Add tree view nav item (#10181) @LukasTy
54
+ - [docs] Fix wrong chart tooltip reference (#10169) @oliviertassinari
55
+ - [docs] Improve chart SEO (#10170) @oliviertassinari
56
+ - [docs] Precise expired license key condition (#10165) @oliviertassinari
57
+ - [docs] Reorganize the page menu (#10139) @alexfauquette
58
+
59
+ ### Core
60
+
61
+ - [core] Update babel configs (#9713) @romgrk
62
+ - [test] Disable false positive e2e test on webkit (#10187) @LukasTy
63
+
64
+ ## 6.12.0
65
+
66
+ _Aug 25, 2023_
67
+
68
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
69
+
70
+ - 📊 Support horizontal bar chart
71
+ - 💫 Improved animations on Android devices
72
+ - 🌍 Improve Ukrainian (uk-UA) locale on the data grid
73
+ - 🐞 Bugfixes
74
+ - 📚 Documentation improvements
75
+
76
+ ### Data Grid
77
+
78
+ #### `@mui/x-data-grid@v6.12.0`
79
+
80
+ - [DataGrid] Allow print export for more than 100 rows (#10045) @MBilalShafi
81
+ - [l10n] Improve Ukrainian (uk-UA) locale (#10076) @mkundos
82
+
83
+ #### `@mui/x-data-grid-pro@v6.12.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
84
+
85
+ Same changes as in `@mui/x-data-grid@v6.12.0`.
86
+
87
+ #### `@mui/x-data-grid-premium@v6.12.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
88
+
89
+ Same changes as in `@mui/x-data-grid-pro@v6.12.0`.
90
+
91
+ ### Date Pickers
92
+
93
+ #### `@mui/x-date-pickers@v6.12.0`
94
+
95
+ - [fields] Do not clamp day of month (#9973) @flaviendelangle
96
+ - [pickers] Fix `ownerState` on `desktopPaper` slot props (#10103) @LukasTy
97
+ - [pickers] Fix to `transform-origin` when popper opens to `top` (#10069) @LukasTy
98
+ - [pickers] Fix `YearCalendar` scrolling (#10135) @LukasTy
99
+ - [pickers] Improve the typing of the adapter `dateWithTimezone` method (#10029) @flaviendelangle
100
+ - [pickers] Make `openPickerButton` toggle picker (#10109) @noraleonte
101
+ - [pickers] Update `reduceAnimations` default rule (#9864) @LukasTy
102
+
103
+ #### `@mui/x-date-pickers-pro@v6.12.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
104
+
105
+ Same changes as in `@mui/x-date-pickers@v6.12.0`.
106
+
107
+ ### Charts / `@mui/x-charts@6.0.0-alpha.8`
108
+
109
+ - [charts] Fix import issue (#10111) @alexfauquette
110
+ - [charts] Fix `slotProps` propagation (#10105) @alexfauquette
111
+ - [charts] Support horizontal bar chart (#9992) @alexfauquette
112
+
113
+ ### Docs
114
+
115
+ - [docs] Address charts docs feedback (#10119) @alexfauquette
116
+ - [docs] Capitalization convention pickers @oliviertassinari
117
+ - [docs] Fix a11y issue on plan links (#10026) @oliviertassinari
118
+ - [docs] Fix some charts horizontal overflow on mobile devices (#10082) @cupok
119
+ - [docs] Fix typo in quick filter @oliviertassinari
120
+ - [docs] Fix typo in the timezone page (#10073) @flaviendelangle
121
+
122
+ ### Core
123
+
124
+ - [core] Bump monorepo (#10129) @LukasTy
125
+ - [core] Document a bit `useLazyRef` @oliviertassinari
126
+ - [core] Enable strict type checking options in the top-level tsconfig (#9925) @cherniavskii
127
+ - [core] Increase global e2e timeout (#10134) @LukasTy
128
+ - [core] Remove outdated link (#10125) @oliviertassinari
129
+ - [core] Update `no-response` workflow (#10102) @DanailH
130
+
6
131
  ## 6.11.2
7
132
 
8
133
  _Aug 17, 2023_
@@ -26,11 +151,11 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
26
151
  - [l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales (#9999) @MyNameIsTakenOMG
27
152
  - [l10n] Improve Spanish (es-ES) locale (#10037) @Macampu420
28
153
 
29
- #### `@mui/x-data-grid-pro@v6.11.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
154
+ #### `@mui/x-data-grid-pro@v6.11.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
30
155
 
31
156
  Same changes as in `@mui/x-data-grid@v6.11.2`.
32
157
 
33
- #### `@mui/x-data-grid-premium@v6.11.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
158
+ #### `@mui/x-data-grid-premium@v6.11.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
34
159
 
35
160
  Same changes as in `@mui/x-data-grid-pro@v6.11.2`.
36
161
 
@@ -43,7 +168,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.2`.
43
168
  - [pickers] Pass the shortcut information in the `onChange` context (#9985) @flaviendelangle
44
169
  - [pickers] Replace `Grid` toolbar component with a styled `div` (#10052) @LukasTy
45
170
 
46
- #### `@mui/x-date-pickers-pro@v6.11.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
171
+ #### `@mui/x-date-pickers-pro@v6.11.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
172
 
48
173
  Same changes as in `@mui/x-date-pickers@v6.11.2`.
49
174
 
@@ -77,11 +202,11 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
77
202
 
78
203
  - [DataGrid] `getCellAggregationResult`: Handle `null` `rowNode` case (#9915) @romgrk
79
204
 
80
- #### `@mui/x-data-grid-pro@6.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
205
+ #### `@mui/x-data-grid-pro@6.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
81
206
 
82
207
  Same changes as in `@mui/x-data-grid@6.11.1`.
83
208
 
84
- #### `@mui/x-data-grid-premium@6.11.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
209
+ #### `@mui/x-data-grid-premium@6.11.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
85
210
 
86
211
  Same changes as in `@mui/x-data-grid-pro@6.11.1`.
87
212
 
@@ -96,7 +221,7 @@ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
96
221
  - [l10n] Improve Finnish (fi-FI) locale (#9795) @kurkle
97
222
  - [l10n] Improve Icelandic (is-IS) locale (#9639) @magnimarels
98
223
 
99
- #### `@mui/x-date-pickers-pro@6.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
224
+ #### `@mui/x-date-pickers-pro@6.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
100
225
 
101
226
  Same changes as in `@mui/x-date-pickers@6.11.1`.
102
227
 
@@ -146,11 +271,11 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
146
271
  - [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
147
272
  - [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
148
273
 
149
- #### `@mui/x-data-grid-pro@v6.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
274
+ #### `@mui/x-data-grid-pro@v6.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
150
275
 
151
276
  Same changes as in `@mui/x-data-grid@v6.11.0`.
152
277
 
153
- #### `@mui/x-data-grid-premium@v6.11.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
278
+ #### `@mui/x-data-grid-premium@v6.11.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
154
279
 
155
280
  Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
156
281
 
@@ -169,7 +294,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
169
294
  - [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
170
295
  - [pickers] Use device motion reduction preference (#9823) @LukasTy
171
296
 
172
- #### `@mui/x-date-pickers-pro@v6.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
297
+ #### `@mui/x-date-pickers-pro@v6.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
173
298
 
174
299
  Same changes as in `@mui/x-date-pickers@v6.11.0`.
175
300
 
@@ -232,11 +357,11 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
232
357
  - [DataGrid] Keep focused cell in the DOM (#7357) @yaredtsy
233
358
  - [l10n] Improve Finnish (fi-FI) locale (#9746) @sambbaahh
234
359
 
235
- #### `@mui/x-data-grid-pro@v6.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
360
+ #### `@mui/x-data-grid-pro@v6.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
236
361
 
237
362
  Same changes as in `@mui/x-data-grid@v6.10.2`.
238
363
 
239
- #### `@mui/x-data-grid-premium@v6.10.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
364
+ #### `@mui/x-data-grid-premium@v6.10.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
240
365
 
241
366
  Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
242
367
 
@@ -248,7 +373,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
248
373
 
249
374
  - [pickers] Remove the `endOfDate` from `DigitalClock` timeOptions (#9800) @noraleonte
250
375
 
251
- #### `@mui/x-date-pickers-pro@v6.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
376
+ #### `@mui/x-date-pickers-pro@v6.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
252
377
 
253
378
  Same changes as in `@mui/x-date-pickers@v6.10.2`.
254
379
 
@@ -300,14 +425,14 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
300
425
  - [DataGrid] Update focused cell on page change via keyboard (#9203) @m4theushw
301
426
  - [DataGrid] Wait for remote stylesheets to load before print (#9665) @cherniavskii
302
427
 
303
- #### `@mui/x-data-grid-pro@v6.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
428
+ #### `@mui/x-data-grid-pro@v6.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
304
429
 
305
430
  Same changes as in `@mui/x-data-grid@v6.10.1`, plus:
306
431
 
307
432
  - [DataGridPro] Improve tree data performance (#9682) @cherniavskii
308
433
  - [DataGridPro] Prevent affecting cells from child DataGrid when resizing a column (#9670) @m4theushw
309
434
 
310
- #### `@mui/x-data-grid-premium@v6.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
435
+ #### `@mui/x-data-grid-premium@v6.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
311
436
 
312
437
  Same changes as in `@mui/x-data-grid-pro@v6.10.1`.
313
438
 
@@ -318,7 +443,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.10.1`.
318
443
  - [fields] Fix `format` and `value` update order (#9715) @LukasTy
319
444
  - [pickers] Remove `require` usage in comment (#9675) @LukasTy
320
445
 
321
- #### `@mui/x-date-pickers-pro@v6.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
446
+ #### `@mui/x-date-pickers-pro@v6.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
322
447
 
323
448
  Same changes as in `@mui/x-date-pickers@v6.10.1`.
324
449
 
@@ -369,11 +494,11 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
369
494
  - [DataGrid] Make `rowExpansionChange` event public (#9611) @MBilalShafi
370
495
  - [l10n] Improve Polish (pl-PL) locale (#9625) @ch1llysense
371
496
 
372
- #### `@mui/x-data-grid-pro@6.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
497
+ #### `@mui/x-data-grid-pro@6.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
373
498
 
374
499
  Same changes as in `@mui/x-data-grid@6.10.0`.
375
500
 
376
- #### `@mui/x-data-grid-premium@6.10.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
501
+ #### `@mui/x-data-grid-premium@6.10.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
377
502
 
378
503
  Same changes as in `@mui/x-data-grid-pro@6.10.0`.
379
504
 
@@ -384,7 +509,7 @@ Same changes as in `@mui/x-data-grid-pro@6.10.0`.
384
509
  - [pickers] Fix date calendar issues (#9652) @LukasTy
385
510
  - [l10n] Improve Norwegian (nb-NO) locale (#9608) @JosteinBrevik
386
511
 
387
- #### `@mui/x-date-pickers-pro@6.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
512
+ #### `@mui/x-date-pickers-pro@6.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
388
513
 
389
514
  Same changes as in `@mui/x-date-pickers@6.10.0`.
390
515
 
@@ -437,11 +562,11 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
437
562
  - [DataGrid] Correctly reflect `TablePagination`'s `rowsPerPageOptions` shape to `pageSizeOptions` (#9438) @burakkgunduzz
438
563
  - [l10n] Improve Spanish (es-ES) locale (#9500) @fufex
439
564
 
440
- #### `@mui/x-data-grid-pro@6.9.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
565
+ #### `@mui/x-data-grid-pro@6.9.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
441
566
 
442
567
  Same changes as in `@mui/x-data-grid@6.9.2`.
443
568
 
444
- #### `@mui/x-data-grid-premium@6.9.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
569
+ #### `@mui/x-data-grid-premium@6.9.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
445
570
 
446
571
  Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
447
572
 
@@ -454,7 +579,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
454
579
  - [pickers] Forward digital clock classes (#9555) @YoonjiJang
455
580
  - [pickers] Rename `internal` folder to `internals` on `@mui/x-date-picker-pro` (#9571) @flaviendelangle
456
581
 
457
- #### `@mui/x-date-pickers-pro@6.9.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
582
+ #### `@mui/x-date-pickers-pro@6.9.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
458
583
 
459
584
  Same changes as in `@mui/x-date-pickers@6.9.2`.
460
585
 
@@ -502,14 +627,14 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
502
627
  - [DataGrid] Fix `Maximum call stack size exceeded` error when using fractional width (#9516) @cherniavskii
503
628
  - [l10n] Improve Romanian (ro-RO) and Hungarian (hu-HU) translations (#9436) @noraleonte
504
629
 
505
- #### `@mui/x-data-grid-pro@6.9.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
630
+ #### `@mui/x-data-grid-pro@6.9.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
506
631
 
507
632
  Same changes as in `@mui/x-data-grid@6.9.1`, plus:
508
633
 
509
634
  - [DataGridPro] Don't throw error in column pinning (#9507) @romgrk
510
635
  - [DataGridPro] Fix bug with `checkboxSelection` and treeData/grouping (#9418) @romgrk
511
636
 
512
- #### `@mui/x-data-grid-premium@6.9.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
637
+ #### `@mui/x-data-grid-premium@6.9.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
513
638
 
514
639
  Same changes as in `@mui/x-data-grid-pro@6.9.1`.
515
640
 
@@ -523,7 +648,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.1`.
523
648
  - [l10n] Add Chinese (Hong Kong) (zh-HK) locale (#9468) @samchiu90
524
649
  - [l10n] Improve Romanian (ro-RO) translations (#9436) @noraleonte
525
650
 
526
- #### `@mui/x-date-pickers-pro@6.9.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
651
+ #### `@mui/x-date-pickers-pro@6.9.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
527
652
 
528
653
  Same changes as in `@mui/x-date-pickers@6.9.1`.
529
654
 
@@ -587,11 +712,11 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
587
712
  - [DataGrid] Use container dimensions from `getComputedStyle` (#9236) @m4theushw
588
713
  - [l10n] Improve Brazilian Portuguese (pt-BR) locale (#9404) @julioAz
589
714
 
590
- #### `@mui/x-data-grid-pro@6.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
715
+ #### `@mui/x-data-grid-pro@6.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
591
716
 
592
717
  Same changes as in `@mui/x-data-grid@6.9.0`.
593
718
 
594
- #### `@mui/x-data-grid-premium@6.9.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
719
+ #### `@mui/x-data-grid-premium@6.9.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
595
720
 
596
721
  Same changes as in `@mui/x-data-grid-pro@6.9.0`.
597
722
 
@@ -607,7 +732,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.0`.
607
732
  - [pickers] Reduce date range calendar vertical border width (#9368) @oliviertassinari
608
733
  - [pickers] Reset fields internal state when pasting value (#9385) @alexfauquette
609
734
 
610
- #### `@mui/x-date-pickers-pro@6.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
735
+ #### `@mui/x-date-pickers-pro@6.9.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
611
736
 
612
737
  Same changes as in `@mui/x-date-pickers@6.9.0`.
613
738
 
@@ -663,11 +788,11 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
663
788
  - [DataGrid] Scroll performance improvements (#9037) @romgrk
664
789
  - [l10n] Improve Greek (el-GR) locale (#9292) @clytras
665
790
 
666
- #### `@mui/x-data-grid-pro@6.8.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
791
+ #### `@mui/x-data-grid-pro@6.8.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
667
792
 
668
793
  Same changes as in `@mui/x-data-grid@6.8.0`.
669
794
 
670
- #### `@mui/x-data-grid-premium@6.8.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
795
+ #### `@mui/x-data-grid-premium@6.8.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
671
796
 
672
797
  Same changes as in `@mui/x-data-grid-pro@6.8.0`.
673
798
 
@@ -680,7 +805,7 @@ Same changes as in `@mui/x-data-grid-pro@6.8.0`.
680
805
  - [pickers] Close the calendar when a shortcut is selected (#9080) @flaviendelangle
681
806
  - [pickers] Fix disabling for digital clock (#9300) @alexfauquette
682
807
 
683
- #### `@mui/x-date-pickers-pro@6.8.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
808
+ #### `@mui/x-date-pickers-pro@6.8.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
684
809
 
685
810
  Same changes as in `@mui/x-date-pickers@6.8.0`.
686
811
 
@@ -756,13 +881,13 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
756
881
  - [l10n] Improve German (de-DE) locale (#9259) @ximex
757
882
  - [l10n] Improve Turkish (tr-TR) locale (#9237) @MCErtan
758
883
 
759
- #### `@mui/x-data-grid-pro@6.7.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
884
+ #### `@mui/x-data-grid-pro@6.7.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
760
885
 
761
886
  Same changes as in `@mui/x-data-grid@6.7.0`, plus:
762
887
 
763
888
  - [DataGridPro] Improve header filter menu visuals (#9181) @MBilalShafi
764
889
 
765
- #### `@mui/x-data-grid-premium@6.7.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
890
+ #### `@mui/x-data-grid-premium@6.7.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
766
891
 
767
892
  Same changes as in `@mui/x-data-grid-pro@6.7.0`, plus:
768
893
 
@@ -776,7 +901,7 @@ Same changes as in `@mui/x-data-grid-pro@6.7.0`, plus:
776
901
  - [l10n] Improve German (de-DE) locale (#9258) @ximex
777
902
  - [pickers] Apply dynamic default format depending on views for all desktop and mobile pickers (#9126) @flaviendelangle
778
903
 
779
- #### `@mui/x-date-pickers-pro@6.7.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
904
+ #### `@mui/x-date-pickers-pro@6.7.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
780
905
 
781
906
  Same changes as in `@mui/x-date-pickers@6.7.0`, plus:
782
907
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mui/x-data-grid-pro
2
2
 
3
- This package is the Pro Plan edition of the data grid component.
3
+ This package is the Pro plan edition of the data grid component.
4
4
  It's part of MUI X, an open core extension of MUI, with advanced components.
5
5
 
6
6
  ## Installation
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
4
4
  import clsx from 'clsx';
5
5
  import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
6
6
  import { styled } from '@mui/system';
7
- import { getTotalHeaderHeight } from '@mui/x-data-grid/internals';
7
+ import { getTotalHeaderHeight, useTimeout } from '@mui/x-data-grid/internals';
8
8
  import { getDataGridUtilityClass, gridClasses, gridDensityFactorSelector, useGridApiContext, useGridApiEventHandler, useGridSelector, gridColumnsTotalWidthSelector } from '@mui/x-data-grid';
9
9
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -47,7 +47,7 @@ function GridScrollAreaRaw(props) {
47
47
  } = props;
48
48
  const rootRef = React.useRef(null);
49
49
  const apiRef = useGridApiContext();
50
- const timeout = React.useRef();
50
+ const timeout = useTimeout();
51
51
  const [dragging, setDragging] = React.useState(false);
52
52
  const [canScrollMore, setCanScrollMore] = React.useState(true);
53
53
  const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);
@@ -92,20 +92,15 @@ function GridScrollAreaRaw(props) {
92
92
  throw new Error('MUI: Wrong drag direction');
93
93
  }
94
94
  offset = (offset - CLIFF) * SLOP + CLIFF;
95
- clearTimeout(timeout.current);
95
+
96
96
  // Avoid freeze and inertia.
97
- timeout.current = setTimeout(() => {
97
+ timeout.start(0, () => {
98
98
  apiRef.current.scroll({
99
99
  left: scrollPosition.current.left + offset,
100
100
  top: scrollPosition.current.top
101
101
  });
102
102
  });
103
- }, [scrollDirection, apiRef]);
104
- React.useEffect(() => {
105
- return () => {
106
- clearTimeout(timeout.current);
107
- };
108
- }, []);
103
+ }, [scrollDirection, apiRef, timeout]);
109
104
  const handleColumnHeaderDragStart = useEventCallback(() => {
110
105
  setDragging(true);
111
106
  });
@@ -76,7 +76,7 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
76
76
  focusableElement = inputRef.current;
77
77
  }
78
78
  const elementToFocus = focusableElement || cellRef.current;
79
- elementToFocus == null ? void 0 : elementToFocus.focus();
79
+ elementToFocus == null || elementToFocus.focus();
80
80
  apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
81
81
  }
82
82
  }, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
@@ -9,12 +9,12 @@ function createPinnedRowsInternalCache(pinnedRows, getRowId) {
9
9
  bottomIds: [],
10
10
  idLookup: {}
11
11
  };
12
- pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null ? void 0 : _pinnedRows$top.forEach(rowModel => {
12
+ pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null || _pinnedRows$top.forEach(rowModel => {
13
13
  const id = getRowIdFromRowModel(rowModel, getRowId);
14
14
  cache.topIds.push(id);
15
15
  cache.idLookup[id] = rowModel;
16
16
  });
17
- pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null ? void 0 : _pinnedRows$bottom.forEach(rowModel => {
17
+ pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null || _pinnedRows$bottom.forEach(rowModel => {
18
18
  const id = getRowIdFromRowModel(rowModel, getRowId);
19
19
  cache.bottomIds.push(id);
20
20
  cache.idLookup[id] = rowModel;
@@ -70,7 +70,7 @@ export const useGridRowPinningPreProcessors = apiRef => {
70
70
  pinnedRows: {}
71
71
  })
72
72
  });
73
- (_pinnedRowsCache$topI = pinnedRowsCache.topIds) == null ? void 0 : _pinnedRowsCache$topI.forEach(rowId => {
73
+ (_pinnedRowsCache$topI = pinnedRowsCache.topIds) == null || _pinnedRowsCache$topI.forEach(rowId => {
74
74
  newGroupingParams = addPinnedRow({
75
75
  groupingParams: newGroupingParams,
76
76
  rowModel: pinnedRowsCache.idLookup[rowId],
@@ -80,7 +80,7 @@ export const useGridRowPinningPreProcessors = apiRef => {
80
80
  isAutoGenerated: false
81
81
  });
82
82
  });
83
- (_pinnedRowsCache$bott = pinnedRowsCache.bottomIds) == null ? void 0 : _pinnedRowsCache$bott.forEach(rowId => {
83
+ (_pinnedRowsCache$bott = pinnedRowsCache.bottomIds) == null || _pinnedRowsCache$bott.forEach(rowId => {
84
84
  newGroupingParams = addPinnedRow({
85
85
  groupingParams: newGroupingParams,
86
86
  rowModel: pinnedRowsCache.idLookup[rowId],
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.11.2
2
+ * @mui/x-data-grid-pro v6.12.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
8
8
  import { styled } from '@mui/system';
9
- import { getTotalHeaderHeight } from '@mui/x-data-grid/internals';
9
+ import { getTotalHeaderHeight, useTimeout } from '@mui/x-data-grid/internals';
10
10
  import { getDataGridUtilityClass, gridClasses, gridDensityFactorSelector, useGridApiContext, useGridApiEventHandler, useGridSelector, gridColumnsTotalWidthSelector } from '@mui/x-data-grid';
11
11
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -44,7 +44,7 @@ function GridScrollAreaRaw(props) {
44
44
  var scrollDirection = props.scrollDirection;
45
45
  var rootRef = React.useRef(null);
46
46
  var apiRef = useGridApiContext();
47
- var timeout = React.useRef();
47
+ var timeout = useTimeout();
48
48
  var _React$useState = React.useState(false),
49
49
  _React$useState2 = _slicedToArray(_React$useState, 2),
50
50
  dragging = _React$useState2[0],
@@ -95,20 +95,15 @@ function GridScrollAreaRaw(props) {
95
95
  throw new Error('MUI: Wrong drag direction');
96
96
  }
97
97
  offset = (offset - CLIFF) * SLOP + CLIFF;
98
- clearTimeout(timeout.current);
98
+
99
99
  // Avoid freeze and inertia.
100
- timeout.current = setTimeout(function () {
100
+ timeout.start(0, function () {
101
101
  apiRef.current.scroll({
102
102
  left: scrollPosition.current.left + offset,
103
103
  top: scrollPosition.current.top
104
104
  });
105
105
  });
106
- }, [scrollDirection, apiRef]);
107
- React.useEffect(function () {
108
- return function () {
109
- clearTimeout(timeout.current);
110
- };
111
- }, []);
106
+ }, [scrollDirection, apiRef, timeout]);
112
107
  var handleColumnHeaderDragStart = useEventCallback(function () {
113
108
  setDragging(true);
114
109
  });
@@ -72,7 +72,7 @@ var GridHeaderFilterCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
72
72
  focusableElement = inputRef.current;
73
73
  }
74
74
  var elementToFocus = focusableElement || cellRef.current;
75
- elementToFocus == null ? void 0 : elementToFocus.focus();
75
+ elementToFocus == null || elementToFocus.focus();
76
76
  apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
77
77
  }
78
78
  }, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
@@ -9,12 +9,12 @@ function createPinnedRowsInternalCache(pinnedRows, getRowId) {
9
9
  bottomIds: [],
10
10
  idLookup: {}
11
11
  };
12
- pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null ? void 0 : _pinnedRows$top.forEach(function (rowModel) {
12
+ pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null || _pinnedRows$top.forEach(function (rowModel) {
13
13
  var id = getRowIdFromRowModel(rowModel, getRowId);
14
14
  cache.topIds.push(id);
15
15
  cache.idLookup[id] = rowModel;
16
16
  });
17
- pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null ? void 0 : _pinnedRows$bottom.forEach(function (rowModel) {
17
+ pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null || _pinnedRows$bottom.forEach(function (rowModel) {
18
18
  var id = getRowIdFromRowModel(rowModel, getRowId);
19
19
  cache.bottomIds.push(id);
20
20
  cache.idLookup[id] = rowModel;
@@ -69,7 +69,7 @@ export var useGridRowPinningPreProcessors = function useGridRowPinningPreProcess
69
69
  pinnedRows: {}
70
70
  })
71
71
  });
72
- (_pinnedRowsCache$topI = pinnedRowsCache.topIds) == null ? void 0 : _pinnedRowsCache$topI.forEach(function (rowId) {
72
+ (_pinnedRowsCache$topI = pinnedRowsCache.topIds) == null || _pinnedRowsCache$topI.forEach(function (rowId) {
73
73
  newGroupingParams = addPinnedRow({
74
74
  groupingParams: newGroupingParams,
75
75
  rowModel: pinnedRowsCache.idLookup[rowId],
@@ -79,7 +79,7 @@ export var useGridRowPinningPreProcessors = function useGridRowPinningPreProcess
79
79
  isAutoGenerated: false
80
80
  });
81
81
  });
82
- (_pinnedRowsCache$bott = pinnedRowsCache.bottomIds) == null ? void 0 : _pinnedRowsCache$bott.forEach(function (rowId) {
82
+ (_pinnedRowsCache$bott = pinnedRowsCache.bottomIds) == null || _pinnedRowsCache$bott.forEach(function (rowId) {
83
83
  newGroupingParams = addPinnedRow({
84
84
  groupingParams: newGroupingParams,
85
85
  rowModel: pinnedRowsCache.idLookup[rowId],
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.11.2
2
+ * @mui/x-data-grid-pro v6.12.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY5MjI0NDgwMDAwMA==";
3
+ var releaseInfo = "MTY5MzQzMjgwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -39,7 +39,7 @@ export var insertDataRowInTree = function insertDataRowInTree(_ref) {
39
39
  parent: parentNodeId,
40
40
  groupingKey: key
41
41
  };
42
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
42
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
43
43
  insertNodeInTree(leafNode, tree, treeDepths, previousTree);
44
44
  } else {
45
45
  var existingNodeWithPartialPath = tree[existingNodeIdWithPartialPath];
@@ -47,8 +47,8 @@ export var insertDataRowInTree = function insertDataRowInTree(_ref) {
47
47
  // If we already have an auto-generated group matching the partial path,
48
48
  // We replace it with the node from of data row passed to `insertNodeInTree`
49
49
  if (existingNodeWithPartialPath.type === 'group' && existingNodeWithPartialPath.isAutoGenerated) {
50
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNodeId, 'removeChildren');
51
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
50
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'removeChildren');
51
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
52
52
  updateGroupNodeIdAndAutoGenerated({
53
53
  tree: tree,
54
54
  previousTree: previousTree,
@@ -62,7 +62,7 @@ export var insertDataRowInTree = function insertDataRowInTree(_ref) {
62
62
  } else {
63
63
  // If we have another row matching the partial path, then there is a duplicate in the dataset.
64
64
  // We warn the user and skip the current row.
65
- onDuplicatePath == null ? void 0 : onDuplicatePath(existingNodeIdWithPartialPath, id, path);
65
+ onDuplicatePath == null || onDuplicatePath(existingNodeIdWithPartialPath, id, path);
66
66
  }
67
67
  }
68
68
  }
@@ -85,7 +85,7 @@ export var insertDataRowInTree = function insertDataRowInTree(_ref) {
85
85
  childrenFromPath: {},
86
86
  childrenExpanded: false
87
87
  };
88
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
88
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
89
89
  insertNodeInTree(updateGroupDefaultExpansion(autoGeneratedGroupNode, defaultGroupingExpansionDepth, isGroupExpandedByDefault), tree, treeDepths, previousTree);
90
90
  parentNodeId = nodeId;
91
91
  }
@@ -18,7 +18,7 @@ var removeNodeAndCleanParent = function removeNodeAndCleanParent(_ref) {
18
18
  });
19
19
  }
20
20
  var parentNode = tree[node.parent];
21
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNode.id, 'removeChildren');
21
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNode.id, 'removeChildren');
22
22
  var shouldDeleteGroup = parentNode.id !== GRID_ROOT_GROUP_ID && parentNode.children.length === 0;
23
23
  if (shouldDeleteGroup) {
24
24
  if (parentNode.isAutoGenerated) {
@@ -43,8 +43,8 @@ var replaceDataGroupWithAutoGeneratedGroup = function replaceDataGroupWithAutoGe
43
43
  tree = _ref2.tree,
44
44
  treeDepths = _ref2.treeDepths,
45
45
  updatedGroupsManager = _ref2.updatedGroupsManager;
46
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(node.parent, 'removeChildren');
47
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(node.parent, 'insertChildren');
46
+ updatedGroupsManager == null || updatedGroupsManager.addAction(node.parent, 'removeChildren');
47
+ updatedGroupsManager == null || updatedGroupsManager.addAction(node.parent, 'insertChildren');
48
48
  updateGroupNodeIdAndAutoGenerated({
49
49
  previousTree: null,
50
50
  tree: tree,
@@ -61,7 +61,7 @@ export var updateRowTree = function updateRowTree(params) {
61
61
  defaultGroupingExpansionDepth: params.defaultGroupingExpansionDepth
62
62
  });
63
63
  } else {
64
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(tree[_id].parent, 'modifyChildren');
64
+ updatedGroupsManager == null || updatedGroupsManager.addAction(tree[_id].parent, 'modifyChildren');
65
65
  }
66
66
  }
67
67
 
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
4
4
  import clsx from 'clsx';
5
5
  import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
6
6
  import { styled } from '@mui/system';
7
- import { getTotalHeaderHeight } from '@mui/x-data-grid/internals';
7
+ import { getTotalHeaderHeight, useTimeout } from '@mui/x-data-grid/internals';
8
8
  import { getDataGridUtilityClass, gridClasses, gridDensityFactorSelector, useGridApiContext, useGridApiEventHandler, useGridSelector, gridColumnsTotalWidthSelector } from '@mui/x-data-grid';
9
9
  import { useGridRootProps } from '../hooks/utils/useGridRootProps';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -47,7 +47,7 @@ function GridScrollAreaRaw(props) {
47
47
  } = props;
48
48
  const rootRef = React.useRef(null);
49
49
  const apiRef = useGridApiContext();
50
- const timeout = React.useRef();
50
+ const timeout = useTimeout();
51
51
  const [dragging, setDragging] = React.useState(false);
52
52
  const [canScrollMore, setCanScrollMore] = React.useState(true);
53
53
  const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);
@@ -92,20 +92,15 @@ function GridScrollAreaRaw(props) {
92
92
  throw new Error('MUI: Wrong drag direction');
93
93
  }
94
94
  offset = (offset - CLIFF) * SLOP + CLIFF;
95
- clearTimeout(timeout.current);
95
+
96
96
  // Avoid freeze and inertia.
97
- timeout.current = setTimeout(() => {
97
+ timeout.start(0, () => {
98
98
  apiRef.current.scroll({
99
99
  left: scrollPosition.current.left + offset,
100
100
  top: scrollPosition.current.top
101
101
  });
102
102
  });
103
- }, [scrollDirection, apiRef]);
104
- React.useEffect(() => {
105
- return () => {
106
- clearTimeout(timeout.current);
107
- };
108
- }, []);
103
+ }, [scrollDirection, apiRef, timeout]);
109
104
  const handleColumnHeaderDragStart = useEventCallback(() => {
110
105
  setDragging(true);
111
106
  });
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.11.2
2
+ * @mui/x-data-grid-pro v6.12.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MjI0NDgwMDAwMA==";
3
+ const releaseInfo = "MTY5MzQzMjgwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -56,7 +56,7 @@ function GridScrollAreaRaw(props) {
56
56
  } = props;
57
57
  const rootRef = React.useRef(null);
58
58
  const apiRef = (0, _xDataGrid.useGridApiContext)();
59
- const timeout = React.useRef();
59
+ const timeout = (0, _internals.useTimeout)();
60
60
  const [dragging, setDragging] = React.useState(false);
61
61
  const [canScrollMore, setCanScrollMore] = React.useState(true);
62
62
  const densityFactor = (0, _xDataGrid.useGridSelector)(apiRef, _xDataGrid.gridDensityFactorSelector);
@@ -101,20 +101,15 @@ function GridScrollAreaRaw(props) {
101
101
  throw new Error('MUI: Wrong drag direction');
102
102
  }
103
103
  offset = (offset - CLIFF) * SLOP + CLIFF;
104
- clearTimeout(timeout.current);
104
+
105
105
  // Avoid freeze and inertia.
106
- timeout.current = setTimeout(() => {
106
+ timeout.start(0, () => {
107
107
  apiRef.current.scroll({
108
108
  left: scrollPosition.current.left + offset,
109
109
  top: scrollPosition.current.top
110
110
  });
111
111
  });
112
- }, [scrollDirection, apiRef]);
113
- React.useEffect(() => {
114
- return () => {
115
- clearTimeout(timeout.current);
116
- };
117
- }, []);
112
+ }, [scrollDirection, apiRef, timeout]);
118
113
  const handleColumnHeaderDragStart = (0, _utils.unstable_useEventCallback)(() => {
119
114
  setDragging(true);
120
115
  });
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.11.2
2
+ * @mui/x-data-grid-pro v6.12.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTY5MjI0NDgwMDAwMA==";
9
+ const releaseInfo = "MTY5MzQzMjgwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-pro",
3
- "version": "6.11.2",
3
+ "version": "6.12.1",
4
4
  "description": "The Pro plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -31,9 +31,9 @@
31
31
  "directory": "packages/grid/x-data-grid-pro"
32
32
  },
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.22.6",
35
- "@mui/utils": "^5.14.5",
36
- "@mui/x-data-grid": "6.11.2",
34
+ "@babel/runtime": "^7.22.11",
35
+ "@mui/utils": "^5.14.7",
36
+ "@mui/x-data-grid": "6.12.1",
37
37
  "@mui/x-license-pro": "6.10.2",
38
38
  "@types/format-util": "^1.0.2",
39
39
  "clsx": "^2.0.0",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MjI0NDgwMDAwMA==";
3
+ const releaseInfo = "MTY5MzQzMjgwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -41,7 +41,7 @@ export const insertDataRowInTree = ({
41
41
  parent: parentNodeId,
42
42
  groupingKey: key
43
43
  };
44
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
44
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
45
45
  insertNodeInTree(leafNode, tree, treeDepths, previousTree);
46
46
  } else {
47
47
  const existingNodeWithPartialPath = tree[existingNodeIdWithPartialPath];
@@ -49,8 +49,8 @@ export const insertDataRowInTree = ({
49
49
  // If we already have an auto-generated group matching the partial path,
50
50
  // We replace it with the node from of data row passed to `insertNodeInTree`
51
51
  if (existingNodeWithPartialPath.type === 'group' && existingNodeWithPartialPath.isAutoGenerated) {
52
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNodeId, 'removeChildren');
53
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
52
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'removeChildren');
53
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
54
54
  updateGroupNodeIdAndAutoGenerated({
55
55
  tree,
56
56
  previousTree,
@@ -64,7 +64,7 @@ export const insertDataRowInTree = ({
64
64
  } else {
65
65
  // If we have another row matching the partial path, then there is a duplicate in the dataset.
66
66
  // We warn the user and skip the current row.
67
- onDuplicatePath == null ? void 0 : onDuplicatePath(existingNodeIdWithPartialPath, id, path);
67
+ onDuplicatePath == null || onDuplicatePath(existingNodeIdWithPartialPath, id, path);
68
68
  }
69
69
  }
70
70
  }
@@ -87,7 +87,7 @@ export const insertDataRowInTree = ({
87
87
  childrenFromPath: {},
88
88
  childrenExpanded: false
89
89
  };
90
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
90
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
91
91
  insertNodeInTree(updateGroupDefaultExpansion(autoGeneratedGroupNode, defaultGroupingExpansionDepth, isGroupExpandedByDefault), tree, treeDepths, previousTree);
92
92
  parentNodeId = nodeId;
93
93
  }
@@ -19,7 +19,7 @@ const removeNodeAndCleanParent = ({
19
19
  });
20
20
  }
21
21
  const parentNode = tree[node.parent];
22
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(parentNode.id, 'removeChildren');
22
+ updatedGroupsManager == null || updatedGroupsManager.addAction(parentNode.id, 'removeChildren');
23
23
  const shouldDeleteGroup = parentNode.id !== GRID_ROOT_GROUP_ID && parentNode.children.length === 0;
24
24
  if (shouldDeleteGroup) {
25
25
  if (parentNode.isAutoGenerated) {
@@ -45,8 +45,8 @@ const replaceDataGroupWithAutoGeneratedGroup = ({
45
45
  treeDepths,
46
46
  updatedGroupsManager
47
47
  }) => {
48
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(node.parent, 'removeChildren');
49
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(node.parent, 'insertChildren');
48
+ updatedGroupsManager == null || updatedGroupsManager.addAction(node.parent, 'removeChildren');
49
+ updatedGroupsManager == null || updatedGroupsManager.addAction(node.parent, 'insertChildren');
50
50
  updateGroupNodeIdAndAutoGenerated({
51
51
  previousTree: null,
52
52
  tree,
@@ -63,7 +63,7 @@ export const updateRowTree = params => {
63
63
  defaultGroupingExpansionDepth: params.defaultGroupingExpansionDepth
64
64
  });
65
65
  } else {
66
- updatedGroupsManager == null ? void 0 : updatedGroupsManager.addAction(tree[id].parent, 'modifyChildren');
66
+ updatedGroupsManager == null || updatedGroupsManager.addAction(tree[id].parent, 'modifyChildren');
67
67
  }
68
68
  }
69
69