@mui/x-data-grid 6.11.2 → 6.12.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +100 -33
  2. package/README.md +1 -1
  3. package/components/cell/GridActionsCell.js +1 -1
  4. package/components/cell/GridEditSingleSelectCell.js +1 -1
  5. package/components/columnHeaders/GridColumnGroupHeader.js +1 -1
  6. package/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  7. package/components/columnHeaders/GridGenericColumnHeaderItem.js +1 -1
  8. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  9. package/components/panel/filterPanel/GridFilterForm.js +1 -1
  10. package/components/toolbar/GridToolbarColumnsButton.js +1 -1
  11. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  12. package/components/toolbar/GridToolbarExport.js +2 -2
  13. package/components/toolbar/GridToolbarExportContainer.js +1 -1
  14. package/components/toolbar/GridToolbarFilterButton.js +1 -1
  15. package/hooks/features/export/useGridPrintExport.js +11 -3
  16. package/hooks/features/pagination/useGridPagination.d.ts +5 -0
  17. package/hooks/features/pagination/useGridPagination.js +1 -1
  18. package/hooks/features/rowSelection/useGridRowSelection.js +1 -1
  19. package/hooks/features/rows/useGridRowsMeta.js +2 -2
  20. package/hooks/utils/useGridApiEventHandler.js +5 -5
  21. package/hooks/utils/useLazyRef.js +2 -0
  22. package/index.js +1 -1
  23. package/joy/joySlots.js +2 -2
  24. package/legacy/components/cell/GridActionsCell.js +1 -1
  25. package/legacy/components/cell/GridEditSingleSelectCell.js +1 -1
  26. package/legacy/components/columnHeaders/GridColumnGroupHeader.js +1 -1
  27. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  28. package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +1 -1
  29. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  30. package/legacy/components/panel/filterPanel/GridFilterForm.js +1 -1
  31. package/legacy/components/toolbar/GridToolbarColumnsButton.js +1 -1
  32. package/legacy/components/toolbar/GridToolbarDensitySelector.js +1 -1
  33. package/legacy/components/toolbar/GridToolbarExport.js +2 -2
  34. package/legacy/components/toolbar/GridToolbarExportContainer.js +1 -1
  35. package/legacy/components/toolbar/GridToolbarFilterButton.js +1 -1
  36. package/legacy/hooks/features/export/useGridPrintExport.js +12 -4
  37. package/legacy/hooks/features/pagination/useGridPagination.js +1 -1
  38. package/legacy/hooks/features/rowSelection/useGridRowSelection.js +1 -1
  39. package/legacy/hooks/features/rows/useGridRowsMeta.js +2 -2
  40. package/legacy/hooks/utils/useGridApiEventHandler.js +5 -5
  41. package/legacy/hooks/utils/useLazyRef.js +2 -0
  42. package/legacy/index.js +1 -1
  43. package/legacy/joy/joySlots.js +2 -2
  44. package/legacy/locales/ukUA.js +25 -27
  45. package/legacy/utils/createSelector.js +1 -1
  46. package/locales/ukUA.js +25 -27
  47. package/modern/hooks/features/export/useGridPrintExport.js +9 -1
  48. package/modern/hooks/features/pagination/useGridPagination.js +1 -1
  49. package/modern/hooks/utils/useLazyRef.js +2 -0
  50. package/modern/index.js +1 -1
  51. package/modern/locales/ukUA.js +25 -27
  52. package/node/hooks/features/export/useGridPrintExport.js +9 -1
  53. package/node/hooks/features/pagination/useGridPagination.js +2 -1
  54. package/node/hooks/utils/useLazyRef.js +2 -0
  55. package/node/index.js +1 -1
  56. package/node/locales/ukUA.js +25 -27
  57. package/package.json +2 -2
  58. package/utils/createSelector.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,73 @@
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.0
7
+
8
+ _Aug 25, 2023_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 📊 Support horizontal bar chart
13
+ - 💫 Improved animations on Android devices
14
+ - 🌍 Improve Ukrainian (uk-UA) locale on the data grid
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@v6.12.0`
21
+
22
+ - [DataGrid] Allow print export for more than 100 rows (#10045) @MBilalShafi
23
+ - [l10n] Improve Ukrainian (uk-UA) locale (#10076) @mkundos
24
+
25
+ #### `@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')
26
+
27
+ Same changes as in `@mui/x-data-grid@v6.12.0`.
28
+
29
+ #### `@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')
30
+
31
+ Same changes as in `@mui/x-data-grid-pro@v6.12.0`.
32
+
33
+ ### Date Pickers
34
+
35
+ #### `@mui/x-date-pickers@v6.12.0`
36
+
37
+ - [fields] Do not clamp day of month (#9973) @flaviendelangle
38
+ - [pickers] Fix `ownerState` on `desktopPaper` slot props (#10103) @LukasTy
39
+ - [pickers] Fix to `transform-origin` when popper opens to `top` (#10069) @LukasTy
40
+ - [pickers] Fix `YearCalendar` scrolling (#10135) @LukasTy
41
+ - [pickers] Improve the typing of the adapter `dateWithTimezone` method (#10029) @flaviendelangle
42
+ - [pickers] Make `openPickerButton` toggle picker (#10109) @noraleonte
43
+ - [pickers] Update `reduceAnimations` default rule (#9864) @LukasTy
44
+
45
+ #### `@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')
46
+
47
+ Same changes as in `@mui/x-date-pickers@v6.12.0`.
48
+
49
+ ### Charts / `@mui/x-charts@6.12.0`
50
+
51
+ - [charts] Fix import issue (#10111) @alexfauquette
52
+ - [charts] Fix `slotProps` propagation (#10105) @alexfauquette
53
+ - [charts] Support horizontal bar chart (#9992) @alexfauquette
54
+
55
+ ### Docs
56
+
57
+ - [docs] Address charts docs feedback (#10119) @alexfauquette
58
+ - [docs] Capitalization convention pickers @oliviertassinari
59
+ - [docs] Fix a11y issue on plan links (#10026) @oliviertassinari
60
+ - [docs] Fix some charts horizontal overflow on mobile devices (#10082) @cupok
61
+ - [docs] Fix typo in quick filter @oliviertassinari
62
+ - [docs] Fix typo in the timezone page (#10073) @flaviendelangle
63
+
64
+ ### Core
65
+
66
+ - [core] Bump monorepo (#10129) @LukasTy
67
+ - [core] Document a bit `useLazyRef` @oliviertassinari
68
+ - [core] Enable strict type checking options in the top-level tsconfig (#9925) @cherniavskii
69
+ - [core] Increase global e2e timeout (#10134) @LukasTy
70
+ - [core] Remove outdated link (#10125) @oliviertassinari
71
+ - [core] Update `no-response` workflow (#10102) @DanailH
72
+
6
73
  ## 6.11.2
7
74
 
8
75
  _Aug 17, 2023_
@@ -26,11 +93,11 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
26
93
  - [l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales (#9999) @MyNameIsTakenOMG
27
94
  - [l10n] Improve Spanish (es-ES) locale (#10037) @Macampu420
28
95
 
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)
96
+ #### `@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
97
 
31
98
  Same changes as in `@mui/x-data-grid@v6.11.2`.
32
99
 
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)
100
+ #### `@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
101
 
35
102
  Same changes as in `@mui/x-data-grid-pro@v6.11.2`.
36
103
 
@@ -43,7 +110,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.2`.
43
110
  - [pickers] Pass the shortcut information in the `onChange` context (#9985) @flaviendelangle
44
111
  - [pickers] Replace `Grid` toolbar component with a styled `div` (#10052) @LukasTy
45
112
 
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)
113
+ #### `@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
114
 
48
115
  Same changes as in `@mui/x-date-pickers@v6.11.2`.
49
116
 
@@ -77,11 +144,11 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
77
144
 
78
145
  - [DataGrid] `getCellAggregationResult`: Handle `null` `rowNode` case (#9915) @romgrk
79
146
 
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)
147
+ #### `@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
148
 
82
149
  Same changes as in `@mui/x-data-grid@6.11.1`.
83
150
 
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)
151
+ #### `@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
152
 
86
153
  Same changes as in `@mui/x-data-grid-pro@6.11.1`.
87
154
 
@@ -96,7 +163,7 @@ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
96
163
  - [l10n] Improve Finnish (fi-FI) locale (#9795) @kurkle
97
164
  - [l10n] Improve Icelandic (is-IS) locale (#9639) @magnimarels
98
165
 
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)
166
+ #### `@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
167
 
101
168
  Same changes as in `@mui/x-date-pickers@6.11.1`.
102
169
 
@@ -146,11 +213,11 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
146
213
  - [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
147
214
  - [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
148
215
 
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)
216
+ #### `@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
217
 
151
218
  Same changes as in `@mui/x-data-grid@v6.11.0`.
152
219
 
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)
220
+ #### `@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
221
 
155
222
  Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
156
223
 
@@ -169,7 +236,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
169
236
  - [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
170
237
  - [pickers] Use device motion reduction preference (#9823) @LukasTy
171
238
 
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)
239
+ #### `@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
240
 
174
241
  Same changes as in `@mui/x-date-pickers@v6.11.0`.
175
242
 
@@ -232,11 +299,11 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
232
299
  - [DataGrid] Keep focused cell in the DOM (#7357) @yaredtsy
233
300
  - [l10n] Improve Finnish (fi-FI) locale (#9746) @sambbaahh
234
301
 
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)
302
+ #### `@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
303
 
237
304
  Same changes as in `@mui/x-data-grid@v6.10.2`.
238
305
 
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)
306
+ #### `@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
307
 
241
308
  Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
242
309
 
@@ -248,7 +315,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
248
315
 
249
316
  - [pickers] Remove the `endOfDate` from `DigitalClock` timeOptions (#9800) @noraleonte
250
317
 
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)
318
+ #### `@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
319
 
253
320
  Same changes as in `@mui/x-date-pickers@v6.10.2`.
254
321
 
@@ -300,14 +367,14 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
300
367
  - [DataGrid] Update focused cell on page change via keyboard (#9203) @m4theushw
301
368
  - [DataGrid] Wait for remote stylesheets to load before print (#9665) @cherniavskii
302
369
 
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)
370
+ #### `@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
371
 
305
372
  Same changes as in `@mui/x-data-grid@v6.10.1`, plus:
306
373
 
307
374
  - [DataGridPro] Improve tree data performance (#9682) @cherniavskii
308
375
  - [DataGridPro] Prevent affecting cells from child DataGrid when resizing a column (#9670) @m4theushw
309
376
 
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)
377
+ #### `@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
378
 
312
379
  Same changes as in `@mui/x-data-grid-pro@v6.10.1`.
313
380
 
@@ -318,7 +385,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.10.1`.
318
385
  - [fields] Fix `format` and `value` update order (#9715) @LukasTy
319
386
  - [pickers] Remove `require` usage in comment (#9675) @LukasTy
320
387
 
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)
388
+ #### `@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
389
 
323
390
  Same changes as in `@mui/x-date-pickers@v6.10.1`.
324
391
 
@@ -369,11 +436,11 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
369
436
  - [DataGrid] Make `rowExpansionChange` event public (#9611) @MBilalShafi
370
437
  - [l10n] Improve Polish (pl-PL) locale (#9625) @ch1llysense
371
438
 
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)
439
+ #### `@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
440
 
374
441
  Same changes as in `@mui/x-data-grid@6.10.0`.
375
442
 
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)
443
+ #### `@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
444
 
378
445
  Same changes as in `@mui/x-data-grid-pro@6.10.0`.
379
446
 
@@ -384,7 +451,7 @@ Same changes as in `@mui/x-data-grid-pro@6.10.0`.
384
451
  - [pickers] Fix date calendar issues (#9652) @LukasTy
385
452
  - [l10n] Improve Norwegian (nb-NO) locale (#9608) @JosteinBrevik
386
453
 
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)
454
+ #### `@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
455
 
389
456
  Same changes as in `@mui/x-date-pickers@6.10.0`.
390
457
 
@@ -437,11 +504,11 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
437
504
  - [DataGrid] Correctly reflect `TablePagination`'s `rowsPerPageOptions` shape to `pageSizeOptions` (#9438) @burakkgunduzz
438
505
  - [l10n] Improve Spanish (es-ES) locale (#9500) @fufex
439
506
 
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)
507
+ #### `@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
508
 
442
509
  Same changes as in `@mui/x-data-grid@6.9.2`.
443
510
 
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)
511
+ #### `@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
512
 
446
513
  Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
447
514
 
@@ -454,7 +521,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
454
521
  - [pickers] Forward digital clock classes (#9555) @YoonjiJang
455
522
  - [pickers] Rename `internal` folder to `internals` on `@mui/x-date-picker-pro` (#9571) @flaviendelangle
456
523
 
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)
524
+ #### `@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
525
 
459
526
  Same changes as in `@mui/x-date-pickers@6.9.2`.
460
527
 
@@ -502,14 +569,14 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
502
569
  - [DataGrid] Fix `Maximum call stack size exceeded` error when using fractional width (#9516) @cherniavskii
503
570
  - [l10n] Improve Romanian (ro-RO) and Hungarian (hu-HU) translations (#9436) @noraleonte
504
571
 
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)
572
+ #### `@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
573
 
507
574
  Same changes as in `@mui/x-data-grid@6.9.1`, plus:
508
575
 
509
576
  - [DataGridPro] Don't throw error in column pinning (#9507) @romgrk
510
577
  - [DataGridPro] Fix bug with `checkboxSelection` and treeData/grouping (#9418) @romgrk
511
578
 
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)
579
+ #### `@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
580
 
514
581
  Same changes as in `@mui/x-data-grid-pro@6.9.1`.
515
582
 
@@ -523,7 +590,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.1`.
523
590
  - [l10n] Add Chinese (Hong Kong) (zh-HK) locale (#9468) @samchiu90
524
591
  - [l10n] Improve Romanian (ro-RO) translations (#9436) @noraleonte
525
592
 
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)
593
+ #### `@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
594
 
528
595
  Same changes as in `@mui/x-date-pickers@6.9.1`.
529
596
 
@@ -587,11 +654,11 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
587
654
  - [DataGrid] Use container dimensions from `getComputedStyle` (#9236) @m4theushw
588
655
  - [l10n] Improve Brazilian Portuguese (pt-BR) locale (#9404) @julioAz
589
656
 
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)
657
+ #### `@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
658
 
592
659
  Same changes as in `@mui/x-data-grid@6.9.0`.
593
660
 
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)
661
+ #### `@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
662
 
596
663
  Same changes as in `@mui/x-data-grid-pro@6.9.0`.
597
664
 
@@ -607,7 +674,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.0`.
607
674
  - [pickers] Reduce date range calendar vertical border width (#9368) @oliviertassinari
608
675
  - [pickers] Reset fields internal state when pasting value (#9385) @alexfauquette
609
676
 
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)
677
+ #### `@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
678
 
612
679
  Same changes as in `@mui/x-date-pickers@6.9.0`.
613
680
 
@@ -663,11 +730,11 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
663
730
  - [DataGrid] Scroll performance improvements (#9037) @romgrk
664
731
  - [l10n] Improve Greek (el-GR) locale (#9292) @clytras
665
732
 
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)
733
+ #### `@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
734
 
668
735
  Same changes as in `@mui/x-data-grid@6.8.0`.
669
736
 
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)
737
+ #### `@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
738
 
672
739
  Same changes as in `@mui/x-data-grid-pro@6.8.0`.
673
740
 
@@ -680,7 +747,7 @@ Same changes as in `@mui/x-data-grid-pro@6.8.0`.
680
747
  - [pickers] Close the calendar when a shortcut is selected (#9080) @flaviendelangle
681
748
  - [pickers] Fix disabling for digital clock (#9300) @alexfauquette
682
749
 
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)
750
+ #### `@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
751
 
685
752
  Same changes as in `@mui/x-date-pickers@6.8.0`.
686
753
 
@@ -756,13 +823,13 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
756
823
  - [l10n] Improve German (de-DE) locale (#9259) @ximex
757
824
  - [l10n] Improve Turkish (tr-TR) locale (#9237) @MCErtan
758
825
 
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)
826
+ #### `@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
827
 
761
828
  Same changes as in `@mui/x-data-grid@6.7.0`, plus:
762
829
 
763
830
  - [DataGridPro] Improve header filter menu visuals (#9181) @MBilalShafi
764
831
 
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)
832
+ #### `@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
833
 
767
834
  Same changes as in `@mui/x-data-grid-pro@6.7.0`, plus:
768
835
 
@@ -776,7 +843,7 @@ Same changes as in `@mui/x-data-grid-pro@6.7.0`, plus:
776
843
  - [l10n] Improve German (de-DE) locale (#9258) @ximex
777
844
  - [pickers] Apply dynamic default format depending on views for all desktop and mobile pickers (#9126) @flaviendelangle
778
845
 
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)
846
+ #### `@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
847
 
781
848
  Same changes as in `@mui/x-date-pickers@6.7.0`, plus:
782
849
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mui/x-data-grid
2
2
 
3
- This package is the Community Plan edition of the data grid component.
3
+ This package is the Community 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
@@ -45,7 +45,7 @@ function GridActionsCell(props) {
45
45
  React.useLayoutEffect(() => {
46
46
  if (!hasFocus) {
47
47
  Object.entries(touchRippleRefs.current).forEach(([index, ref]) => {
48
- ref == null ? void 0 : ref.stop({}, () => {
48
+ ref == null || ref.stop({}, () => {
49
49
  delete touchRippleRefs.current[index];
50
50
  });
51
51
  });
@@ -47,7 +47,7 @@ function GridEditSingleSelectCell(props) {
47
47
  useEnhancedEffect(() => {
48
48
  if (hasFocus) {
49
49
  var _inputRef$current;
50
- (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
50
+ (_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
51
51
  }
52
52
  }, [hasFocus]);
53
53
  if (!isSingleSelectColDef(colDef)) {
@@ -79,7 +79,7 @@ function GridColumnGroupHeader(props) {
79
79
  if (hasFocus) {
80
80
  const focusableElement = headerCellRef.current.querySelector('[tabindex="0"]');
81
81
  const elementToFocus = focusableElement || headerCellRef.current;
82
- elementToFocus == null ? void 0 : elementToFocus.focus();
82
+ elementToFocus == null || elementToFocus.focus();
83
83
  }
84
84
  }, [apiRef, hasFocus]);
85
85
  const publish = React.useCallback(eventName => event => {
@@ -138,7 +138,7 @@ function GridColumnHeaderItem(props) {
138
138
  if (hasFocus && !columnMenuState.open) {
139
139
  const focusableElement = headerCellRef.current.querySelector('[tabindex="0"]');
140
140
  const elementToFocus = focusableElement || headerCellRef.current;
141
- elementToFocus == null ? void 0 : elementToFocus.focus();
141
+ elementToFocus == null || elementToFocus.focus();
142
142
  apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
143
143
  }
144
144
  }, [apiRef, hasFocus]);
@@ -54,7 +54,7 @@ const GridGenericColumnHeaderItem = /*#__PURE__*/React.forwardRef(function GridG
54
54
  if (hasFocus && !columnMenuState.open) {
55
55
  const focusableElement = headerCellRef.current.querySelector('[tabindex="0"]');
56
56
  const elementToFocus = focusableElement || headerCellRef.current;
57
- elementToFocus == null ? void 0 : elementToFocus.focus();
57
+ elementToFocus == null || elementToFocus.focus();
58
58
  apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
59
59
  }
60
60
  }, [apiRef, hasFocus]);
@@ -55,7 +55,7 @@ const GridCellCheckboxForwardRef = /*#__PURE__*/React.forwardRef(function GridCe
55
55
  if (hasFocus) {
56
56
  var _checkboxElement$curr;
57
57
  const input = (_checkboxElement$curr = checkboxElement.current) == null ? void 0 : _checkboxElement$curr.querySelector('input');
58
- input == null ? void 0 : input.focus({
58
+ input == null || input.focus({
59
59
  preventScroll: true
60
60
  });
61
61
  } else if (rippleRef.current) {
@@ -217,7 +217,7 @@ const GridFilterForm = /*#__PURE__*/React.forwardRef(function GridFilterForm(pro
217
217
  focus: () => {
218
218
  if (currentOperator != null && currentOperator.InputComponent) {
219
219
  var _valueRef$current;
220
- valueRef == null || (_valueRef$current = valueRef.current) == null ? void 0 : _valueRef$current.focus();
220
+ valueRef == null || (_valueRef$current = valueRef.current) == null || _valueRef$current.focus();
221
221
  } else {
222
222
  filterSelectorRef.current.focus();
223
223
  }
@@ -26,7 +26,7 @@ export const GridToolbarColumnsButton = /*#__PURE__*/React.forwardRef(function G
26
26
  } else {
27
27
  apiRef.current.showPreferences(GridPreferencePanelsValue.columns, columnPanelId, columnButtonId);
28
28
  }
29
- onClick == null ? void 0 : onClick(event);
29
+ onClick == null || onClick(event);
30
30
  };
31
31
 
32
32
  // Disable the button if the corresponding is disabled
@@ -54,7 +54,7 @@ export const GridToolbarDensitySelector = /*#__PURE__*/React.forwardRef(function
54
54
  }, [densityValue, rootProps]);
55
55
  const handleDensitySelectorOpen = event => {
56
56
  setOpen(prevOpen => !prevOpen);
57
- onClick == null ? void 0 : onClick(event);
57
+ onClick == null || onClick(event);
58
58
  };
59
59
  const handleDensitySelectorClickAway = event => {
60
60
  var _buttonRef$current;
@@ -19,7 +19,7 @@ export function GridCsvExportMenuItem(props) {
19
19
  return /*#__PURE__*/_jsx(MenuItem, _extends({
20
20
  onClick: () => {
21
21
  apiRef.current.exportDataAsCsv(options);
22
- hideMenu == null ? void 0 : hideMenu();
22
+ hideMenu == null || hideMenu();
23
23
  }
24
24
  }, other, {
25
25
  children: apiRef.current.getLocaleText('toolbarExportCSV')
@@ -35,7 +35,7 @@ export function GridPrintExportMenuItem(props) {
35
35
  return /*#__PURE__*/_jsx(MenuItem, _extends({
36
36
  onClick: () => {
37
37
  apiRef.current.exportDataAsPrint(options);
38
- hideMenu == null ? void 0 : hideMenu();
38
+ hideMenu == null || hideMenu();
39
39
  }
40
40
  }, other, {
41
41
  children: apiRef.current.getLocaleText('toolbarExportPrint')
@@ -27,7 +27,7 @@ export const GridToolbarExportContainer = /*#__PURE__*/React.forwardRef(function
27
27
  const handleRef = useForkRef(ref, buttonRef);
28
28
  const handleMenuOpen = event => {
29
29
  setOpen(prevOpen => !prevOpen);
30
- onClick == null ? void 0 : onClick(event);
30
+ onClick == null || onClick(event);
31
31
  };
32
32
  const handleMenuClose = () => setOpen(false);
33
33
  const handleListKeyDown = event => {
@@ -89,7 +89,7 @@ const GridToolbarFilterButton = /*#__PURE__*/React.forwardRef(function GridToolb
89
89
  } else {
90
90
  apiRef.current.showPreferences(GridPreferencePanelsValue.filters, filterPanelId, filterButtonId);
91
91
  }
92
- (_buttonProps$onClick = buttonProps.onClick) == null ? void 0 : _buttonProps$onClick.call(buttonProps, event);
92
+ (_buttonProps$onClick = buttonProps.onClick) == null || _buttonProps$onClick.call(buttonProps, event);
93
93
  };
94
94
 
95
95
  // Disable the button if the corresponding is disabled
@@ -8,6 +8,7 @@ import { gridClasses } from '../../../constants/gridClasses';
8
8
  import { useGridApiMethod } from '../../utils/useGridApiMethod';
9
9
  import { gridRowsMetaSelector } from '../rows/gridRowsMetaSelector';
10
10
  import { getColumnsToExport } from './utils';
11
+ import { mergeStateWithPaginationModel } from '../pagination/useGridPagination';
11
12
  import { useGridRegisterPipeProcessor } from '../../core/pipeProcessing';
12
13
  import { GridPrintExportMenuItem } from '../../../components/toolbar/GridToolbarExport';
13
14
  import { getTotalHeaderHeight } from '../columns/gridColumnsUtils';
@@ -89,12 +90,12 @@ export const useGridPrintExport = (apiRef, props) => {
89
90
  let gridFooterElementHeight = ((_querySelector2 = gridRootElement.querySelector(`.${gridClasses.footerContainer}`)) == null ? void 0 : _querySelector2.offsetHeight) || 0;
90
91
  if (normalizeOptions.hideToolbar) {
91
92
  var _gridClone$querySelec;
92
- (_gridClone$querySelec = gridClone.querySelector(`.${gridClasses.toolbarContainer}`)) == null ? void 0 : _gridClone$querySelec.remove();
93
+ (_gridClone$querySelec = gridClone.querySelector(`.${gridClasses.toolbarContainer}`)) == null || _gridClone$querySelec.remove();
93
94
  gridToolbarElementHeight = 0;
94
95
  }
95
96
  if (normalizeOptions.hideFooter) {
96
97
  var _gridClone$querySelec2;
97
- (_gridClone$querySelec2 = gridClone.querySelector(`.${gridClasses.footerContainer}`)) == null ? void 0 : _gridClone$querySelec2.remove();
98
+ (_gridClone$querySelec2 = gridClone.querySelector(`.${gridClasses.footerContainer}`)) == null || _gridClone$querySelec2.remove();
98
99
  gridFooterElementHeight = 0;
99
100
  }
100
101
 
@@ -192,7 +193,14 @@ export const useGridPrintExport = (apiRef, props) => {
192
193
  previousColumnVisibility.current = gridColumnVisibilityModelSelector(apiRef);
193
194
  if (props.pagination) {
194
195
  const visibleRowCount = gridExpandedRowCountSelector(apiRef);
195
- apiRef.current.setPageSize(visibleRowCount);
196
+ const paginationModel = {
197
+ page: 0,
198
+ pageSize: visibleRowCount
199
+ };
200
+ apiRef.current.updateControlState('pagination',
201
+ // Using signature `DataGridPro` to allow more than 100 rows in the print export
202
+ mergeStateWithPaginationModel(visibleRowCount, 'DataGridPro', paginationModel));
203
+ apiRef.current.forceUpdate();
196
204
  }
197
205
  await updateGridColumnsForPrint(options == null ? void 0 : options.fields, options == null ? void 0 : options.allColumns);
198
206
  apiRef.current.unstable_disableVirtualization();
@@ -2,7 +2,12 @@ import * as React from 'react';
2
2
  import { GridPrivateApiCommunity } from '../../../models/api/gridApiCommunity';
3
3
  import { DataGridProcessedProps } from '../../../models/props/DataGridProps';
4
4
  import { GridStateInitializer } from '../../utils/useGridInitializeState';
5
+ import { GridPaginationState } from './gridPaginationInterfaces';
6
+ import { GridPaginationModel } from '../../../models/gridPaginationProps';
5
7
  export declare const paginationStateInitializer: GridStateInitializer<Pick<DataGridProcessedProps, 'paginationModel' | 'rowCount' | 'initialState' | 'autoPageSize' | 'signature'>>;
8
+ export declare const mergeStateWithPaginationModel: (rowCount: number, signature: DataGridProcessedProps['signature'], paginationModelProp?: GridPaginationModel) => (paginationState: GridPaginationState) => {
9
+ paginationModel: GridPaginationModel;
10
+ };
6
11
  /**
7
12
  * @requires useGridFilter (state)
8
13
  * @requires useGridDimensions (event) - can be after
@@ -17,7 +17,7 @@ export const paginationStateInitializer = (state, props) => {
17
17
  }
18
18
  });
19
19
  };
20
- const mergeStateWithPaginationModel = (rowCount, signature, paginationModelProp) => paginationState => {
20
+ export const mergeStateWithPaginationModel = (rowCount, signature, paginationModelProp) => paginationState => {
21
21
  var _paginationModelProp$;
22
22
  let paginationModel = paginationState.paginationModel;
23
23
  const pageSize = (_paginationModelProp$ = paginationModelProp == null ? void 0 : paginationModelProp.pageSize) != null ? _paginationModelProp$ : paginationModel.pageSize;
@@ -266,7 +266,7 @@ export const useGridRowSelection = (apiRef, props) => {
266
266
  const preventSelectionOnShift = React.useCallback((params, event) => {
267
267
  if (canHaveMultipleSelection && event.shiftKey) {
268
268
  var _window$getSelection;
269
- (_window$getSelection = window.getSelection()) == null ? void 0 : _window$getSelection.removeAllRanges();
269
+ (_window$getSelection = window.getSelection()) == null || _window$getSelection.removeAllRanges();
270
270
  }
271
271
  }, [canHaveMultipleSelection]);
272
272
  const handleRowSelectionCheckboxChange = React.useCallback((params, event) => {
@@ -145,10 +145,10 @@ export const useGridRowsMeta = (apiRef, props) => {
145
145
  }
146
146
  return acc + maximumBaseSize + otherSizes;
147
147
  }, 0);
148
- pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null ? void 0 : _pinnedRows$top.forEach(row => {
148
+ pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null || _pinnedRows$top.forEach(row => {
149
149
  calculateRowProcessedSizes(row);
150
150
  });
151
- pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null ? void 0 : _pinnedRows$bottom.forEach(row => {
151
+ pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null || _pinnedRows$bottom.forEach(row => {
152
152
  calculateRowProcessedSizes(row);
153
153
  });
154
154
  apiRef.current.setState(state => {
@@ -30,7 +30,7 @@ export function createUseGridApiEventHandler(registryContainer) {
30
30
  const enhancedHandler = (params, event, details) => {
31
31
  if (!event.defaultMuiPrevented) {
32
32
  var _handlerRef$current;
33
- (_handlerRef$current = handlerRef.current) == null ? void 0 : _handlerRef$current.call(handlerRef, params, event, details);
33
+ (_handlerRef$current = handlerRef.current) == null || _handlerRef$current.call(handlerRef, params, event, details);
34
34
  }
35
35
  };
36
36
  subscription.current = apiRef.current.subscribeEvent(eventName, enhancedHandler, options);
@@ -42,7 +42,7 @@ export function createUseGridApiEventHandler(registryContainer) {
42
42
  // The callback below will be called once this reference stops being retained
43
43
  () => {
44
44
  var _subscription$current;
45
- (_subscription$current = subscription.current) == null ? void 0 : _subscription$current.call(subscription);
45
+ (_subscription$current = subscription.current) == null || _subscription$current.call(subscription);
46
46
  subscription.current = null;
47
47
  cleanupTokenRef.current = null;
48
48
  }, cleanupTokenRef.current);
@@ -59,7 +59,7 @@ export function createUseGridApiEventHandler(registryContainer) {
59
59
  const enhancedHandler = (params, event, details) => {
60
60
  if (!event.defaultMuiPrevented) {
61
61
  var _handlerRef$current2;
62
- (_handlerRef$current2 = handlerRef.current) == null ? void 0 : _handlerRef$current2.call(handlerRef, params, event, details);
62
+ (_handlerRef$current2 = handlerRef.current) == null || _handlerRef$current2.call(handlerRef, params, event, details);
63
63
  }
64
64
  };
65
65
  subscription.current = apiRef.current.subscribeEvent(eventName, enhancedHandler, options);
@@ -72,7 +72,7 @@ export function createUseGridApiEventHandler(registryContainer) {
72
72
  }
73
73
  return () => {
74
74
  var _subscription$current2;
75
- (_subscription$current2 = subscription.current) == null ? void 0 : _subscription$current2.call(subscription);
75
+ (_subscription$current2 = subscription.current) == null || _subscription$current2.call(subscription);
76
76
  subscription.current = null;
77
77
  };
78
78
  }, [apiRef, eventName, options]);
@@ -86,7 +86,7 @@ const registryContainer = {
86
86
  // eslint-disable-next-line @typescript-eslint/naming-convention
87
87
  export const unstable_resetCleanupTracking = () => {
88
88
  var _registryContainer$re;
89
- (_registryContainer$re = registryContainer.registry) == null ? void 0 : _registryContainer$re.reset();
89
+ (_registryContainer$re = registryContainer.registry) == null || _registryContainer$re.reset();
90
90
  registryContainer.registry = null;
91
91
  };
92
92
  export const useGridApiEventHandler = createUseGridApiEventHandler(registryContainer);
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
2
  const UNINITIALIZED = {};
3
+
4
+ // See https://github.com/facebook/react/issues/14490 for when to use this.
3
5
  export function useLazyRef(init, initArg) {
4
6
  const ref = React.useRef(UNINITIALIZED);
5
7
  if (ref.current === UNINITIALIZED) {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v6.11.2
2
+ * @mui/x-data-grid v6.12.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/joy/joySlots.js CHANGED
@@ -231,10 +231,10 @@ const Select = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
231
231
  listboxOpen: open,
232
232
  onListboxOpenChange: isOpen => {
233
233
  if (isOpen) {
234
- onOpen == null ? void 0 : onOpen({});
234
+ onOpen == null || onOpen({});
235
235
  } else {
236
236
  var _MenuProps$onClose;
237
- MenuProps == null || (_MenuProps$onClose = MenuProps.onClose) == null ? void 0 : _MenuProps$onClose.call(MenuProps, {}, undefined);
237
+ MenuProps == null || (_MenuProps$onClose = MenuProps.onClose) == null || _MenuProps$onClose.call(MenuProps, {}, undefined);
238
238
  }
239
239
  },
240
240
  size: convertSize(size),