@mui/x-data-grid 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.
Files changed (75) hide show
  1. package/CHANGELOG.md +158 -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/columns/gridColumnsUtils.js +1 -1
  16. package/hooks/features/export/useGridPrintExport.js +11 -3
  17. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -2
  18. package/hooks/features/pagination/useGridPagination.d.ts +5 -0
  19. package/hooks/features/pagination/useGridPagination.js +1 -1
  20. package/hooks/features/rowSelection/useGridRowSelection.js +1 -1
  21. package/hooks/features/rows/useGridRows.js +5 -19
  22. package/hooks/features/rows/useGridRowsMeta.js +2 -2
  23. package/hooks/utils/useGridApiEventHandler.js +5 -5
  24. package/hooks/utils/useLazyRef.js +2 -0
  25. package/index.js +1 -1
  26. package/internals/index.d.ts +1 -0
  27. package/internals/index.js +1 -0
  28. package/joy/joySlots.js +2 -2
  29. package/legacy/components/cell/GridActionsCell.js +1 -1
  30. package/legacy/components/cell/GridEditSingleSelectCell.js +1 -1
  31. package/legacy/components/columnHeaders/GridColumnGroupHeader.js +1 -1
  32. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  33. package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +1 -1
  34. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  35. package/legacy/components/panel/filterPanel/GridFilterForm.js +1 -1
  36. package/legacy/components/toolbar/GridToolbarColumnsButton.js +1 -1
  37. package/legacy/components/toolbar/GridToolbarDensitySelector.js +1 -1
  38. package/legacy/components/toolbar/GridToolbarExport.js +2 -2
  39. package/legacy/components/toolbar/GridToolbarExportContainer.js +1 -1
  40. package/legacy/components/toolbar/GridToolbarFilterButton.js +1 -1
  41. package/legacy/hooks/features/columns/gridColumnsUtils.js +1 -1
  42. package/legacy/hooks/features/export/useGridPrintExport.js +12 -4
  43. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +3 -2
  44. package/legacy/hooks/features/pagination/useGridPagination.js +1 -1
  45. package/legacy/hooks/features/rowSelection/useGridRowSelection.js +1 -1
  46. package/legacy/hooks/features/rows/useGridRows.js +5 -19
  47. package/legacy/hooks/features/rows/useGridRowsMeta.js +2 -2
  48. package/legacy/hooks/utils/useGridApiEventHandler.js +5 -5
  49. package/legacy/hooks/utils/useLazyRef.js +2 -0
  50. package/legacy/index.js +1 -1
  51. package/legacy/internals/index.js +1 -0
  52. package/legacy/joy/joySlots.js +2 -2
  53. package/legacy/locales/ukUA.js +25 -27
  54. package/legacy/utils/createSelector.js +1 -1
  55. package/locales/ukUA.js +25 -27
  56. package/modern/hooks/features/columns/gridColumnsUtils.js +1 -1
  57. package/modern/hooks/features/export/useGridPrintExport.js +9 -1
  58. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +2 -2
  59. package/modern/hooks/features/pagination/useGridPagination.js +1 -1
  60. package/modern/hooks/features/rows/useGridRows.js +5 -19
  61. package/modern/hooks/utils/useLazyRef.js +2 -0
  62. package/modern/index.js +1 -1
  63. package/modern/internals/index.js +1 -0
  64. package/modern/locales/ukUA.js +25 -27
  65. package/node/hooks/features/columns/gridColumnsUtils.js +1 -1
  66. package/node/hooks/features/export/useGridPrintExport.js +9 -1
  67. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +2 -2
  68. package/node/hooks/features/pagination/useGridPagination.js +2 -1
  69. package/node/hooks/features/rows/useGridRows.js +5 -19
  70. package/node/hooks/utils/useLazyRef.js +2 -0
  71. package/node/index.js +1 -1
  72. package/node/internals/index.js +8 -0
  73. package/node/locales/ukUA.js +25 -27
  74. package/package.json +3 -3
  75. package/utils/createSelector.js +1 -1
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
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
@@ -256,7 +256,7 @@ export const createColumnsState = ({
256
256
 
257
257
  // If the column type has changed - merge the existing state with the default column type definition
258
258
  if (existingState && existingState.type !== newColumn.type) {
259
- existingState = _extends({}, existingState, getDefaultColTypeDef(columnTypes, newColumn.type), {
259
+ existingState = _extends({}, getDefaultColTypeDef(columnTypes, newColumn.type), {
260
260
  field
261
261
  });
262
262
  }
@@ -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();
@@ -126,7 +126,8 @@ export const useGridKeyboardNavigation = (apiRef, props) => {
126
126
  apiRef.current.setColumnGroupHeaderFocus(field, depth, event);
127
127
  }, [apiRef, logger]);
128
128
  const getRowIdFromIndex = React.useCallback(rowIndex => {
129
- return currentPageRows == null ? void 0 : currentPageRows[rowIndex].id;
129
+ var _currentPageRows$rowI;
130
+ return (_currentPageRows$rowI = currentPageRows[rowIndex]) == null ? void 0 : _currentPageRows$rowI.id;
130
131
  }, [currentPageRows]);
131
132
  const handleColumnHeaderKeyDown = React.useCallback((params, event) => {
132
133
  const headerTitleNode = event.currentTarget.querySelector(`.${gridClasses.columnHeaderTitleContainerContent}`);
@@ -142,7 +143,7 @@ export const useGridKeyboardNavigation = (apiRef, props) => {
142
143
  }
143
144
  const viewportPageSize = apiRef.current.getViewportPageSize();
144
145
  const colIndexBefore = params.field ? apiRef.current.getColumnIndex(params.field) : 0;
145
- const firstRowIndexInPage = 0;
146
+ const firstRowIndexInPage = currentPageRows.length > 0 ? 0 : null;
146
147
  const lastRowIndexInPage = currentPageRows.length - 1;
147
148
  const firstColIndex = 0;
148
149
  const lastColIndex = gridVisibleColumnDefinitionsSelector(apiRef).length - 1;
@@ -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) => {