@mui/x-data-grid-generator 6.0.0-alpha.0 → 6.0.0-alpha.10

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 (118) hide show
  1. package/CHANGELOG.md +1428 -138
  2. package/columns/commodities.columns.js +6 -10
  3. package/columns/employees.columns.js +1 -2
  4. package/hooks/useDemoData.js +9 -31
  5. package/hooks/useMovieData.d.ts +1 -0
  6. package/hooks/useMovieData.js +35 -1
  7. package/hooks/useQuery.d.ts +6 -6
  8. package/hooks/useQuery.js +11 -43
  9. package/index.js +1 -1
  10. package/legacy/columns/commodities.columns.js +6 -10
  11. package/legacy/columns/employees.columns.js +1 -3
  12. package/legacy/hooks/useBasicDemoData.js +6 -7
  13. package/legacy/hooks/useDemoData.js +28 -70
  14. package/legacy/hooks/useMovieData.js +35 -2
  15. package/legacy/hooks/useQuery.js +38 -77
  16. package/legacy/index.js +1 -1
  17. package/legacy/renderer/renderAvatar.js +0 -1
  18. package/legacy/renderer/renderCountry.js +3 -4
  19. package/legacy/renderer/renderEditCountry.js +32 -20
  20. package/legacy/renderer/renderEditCurrency.js +32 -20
  21. package/legacy/renderer/renderEditIncoterm.js +36 -26
  22. package/legacy/renderer/renderEditProgress.js +10 -20
  23. package/legacy/renderer/renderEditRating.js +32 -23
  24. package/legacy/renderer/renderEditStatus.js +2 -15
  25. package/legacy/renderer/renderEmail.js +0 -1
  26. package/legacy/renderer/renderIncoterm.js +0 -2
  27. package/legacy/renderer/renderLink.js +1 -3
  28. package/legacy/renderer/renderPnl.js +0 -3
  29. package/legacy/renderer/renderProgress.js +4 -5
  30. package/legacy/renderer/renderRating.js +3 -4
  31. package/legacy/renderer/renderStatus.js +9 -14
  32. package/legacy/renderer/renderTotalPrice.js +5 -6
  33. package/legacy/services/asyncWorker.js +4 -7
  34. package/legacy/services/basic-data-service.js +0 -5
  35. package/legacy/services/random-generator.js +6 -20
  36. package/legacy/services/real-data-service.js +0 -9
  37. package/legacy/services/tree-data-generator.js +6 -22
  38. package/modern/columns/commodities.columns.js +6 -10
  39. package/modern/columns/employees.columns.js +1 -2
  40. package/modern/hooks/useDemoData.js +9 -27
  41. package/modern/hooks/useMovieData.js +35 -1
  42. package/modern/hooks/useQuery.js +11 -41
  43. package/modern/index.js +1 -1
  44. package/modern/renderer/renderAvatar.js +0 -1
  45. package/modern/renderer/renderCountry.js +3 -4
  46. package/modern/renderer/renderEditCountry.js +6 -13
  47. package/modern/renderer/renderEditCurrency.js +6 -13
  48. package/modern/renderer/renderEditIncoterm.js +7 -16
  49. package/modern/renderer/renderEditProgress.js +3 -10
  50. package/modern/renderer/renderEditRating.js +7 -17
  51. package/modern/renderer/renderEditStatus.js +0 -10
  52. package/modern/renderer/renderIncoterm.js +0 -2
  53. package/modern/renderer/renderLink.js +1 -3
  54. package/modern/renderer/renderPnl.js +0 -3
  55. package/modern/renderer/renderProgress.js +4 -5
  56. package/modern/renderer/renderRating.js +3 -4
  57. package/modern/renderer/renderStatus.js +9 -14
  58. package/modern/renderer/renderTotalPrice.js +5 -6
  59. package/modern/services/asyncWorker.js +2 -4
  60. package/modern/services/basic-data-service.js +0 -5
  61. package/modern/services/random-generator.js +6 -19
  62. package/modern/services/real-data-service.js +0 -9
  63. package/modern/services/tree-data-generator.js +0 -14
  64. package/node/columns/commodities.columns.js +7 -17
  65. package/node/columns/employees.columns.js +2 -9
  66. package/node/columns/index.js +0 -4
  67. package/node/hooks/index.js +0 -8
  68. package/node/hooks/useBasicDemoData.js +0 -6
  69. package/node/hooks/useDemoData.js +17 -62
  70. package/node/hooks/useMovieData.js +35 -3
  71. package/node/hooks/useQuery.js +13 -57
  72. package/node/index.js +1 -9
  73. package/node/renderer/index.js +0 -32
  74. package/node/renderer/renderAvatar.js +0 -8
  75. package/node/renderer/renderCountry.js +3 -12
  76. package/node/renderer/renderEditCountry.js +6 -26
  77. package/node/renderer/renderEditCurrency.js +6 -26
  78. package/node/renderer/renderEditIncoterm.js +7 -28
  79. package/node/renderer/renderEditProgress.js +4 -24
  80. package/node/renderer/renderEditRating.js +7 -26
  81. package/node/renderer/renderEditStatus.js +0 -26
  82. package/node/renderer/renderEmail.js +1 -9
  83. package/node/renderer/renderIncoterm.js +0 -12
  84. package/node/renderer/renderLink.js +1 -10
  85. package/node/renderer/renderPnl.js +0 -12
  86. package/node/renderer/renderProgress.js +4 -14
  87. package/node/renderer/renderRating.js +3 -13
  88. package/node/renderer/renderStatus.js +9 -27
  89. package/node/renderer/renderTotalPrice.js +5 -15
  90. package/node/services/asyncWorker.js +2 -5
  91. package/node/services/basic-data-service.js +0 -7
  92. package/node/services/index.js +0 -8
  93. package/node/services/random-generator.js +7 -105
  94. package/node/services/real-data-service.js +0 -12
  95. package/node/services/static-data.js +0 -2
  96. package/node/services/tree-data-generator.js +1 -22
  97. package/package.json +7 -7
  98. package/renderer/renderAvatar.js +0 -1
  99. package/renderer/renderCountry.js +3 -4
  100. package/renderer/renderEditCountry.js +6 -13
  101. package/renderer/renderEditCurrency.js +6 -13
  102. package/renderer/renderEditIncoterm.js +7 -16
  103. package/renderer/renderEditProgress.js +3 -10
  104. package/renderer/renderEditRating.js +7 -17
  105. package/renderer/renderEditStatus.js +0 -10
  106. package/renderer/renderEmail.js +0 -1
  107. package/renderer/renderIncoterm.js +0 -2
  108. package/renderer/renderLink.js +1 -3
  109. package/renderer/renderPnl.js +0 -3
  110. package/renderer/renderProgress.js +4 -5
  111. package/renderer/renderRating.js +3 -4
  112. package/renderer/renderStatus.js +9 -14
  113. package/renderer/renderTotalPrice.js +5 -6
  114. package/services/asyncWorker.js +2 -4
  115. package/services/basic-data-service.js +0 -5
  116. package/services/random-generator.js +6 -20
  117. package/services/real-data-service.js +0 -9
  118. package/services/tree-data-generator.js +0 -15
package/CHANGELOG.md CHANGED
@@ -3,6 +3,1005 @@
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.0.0-alpha.10
7
+
8
+ _Dec 1, 2022_
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
+ - 🌍 Improve Ukrainian (uk-UA) and add Urdu (ur-PK) locales
13
+ - 📚 Documentation improvements
14
+ - 🐞 Bugfixes
15
+
16
+ ### `@mui/x-data-grid@v6.0.0-alpha.10` / `@mui/x-data-grid-pro@v6.0.0-alpha.10` / `@mui/x-data-grid-premium@v6.0.0-alpha.10`
17
+
18
+ ### Breaking changes
19
+
20
+ - [DataGrid] Removes `GridCell` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
21
+
22
+ Returning `null` in `column.renderCell` or `column.renderEditCell` now renders an empty cell instead of the default formatted value.
23
+
24
+ - [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
25
+
26
+ Properties `columnField` and `operatorValue` of `GridFilterItem` are renamed `field` and `operator`. And `operator` property is now required.
27
+
28
+ ```diff
29
+ filterModel: {
30
+ items: [{
31
+ - columnField: 'rating',
32
+ + field: 'rating',
33
+ - operatorValue: '>',
34
+ + operator: '>', // required
35
+ value: '2.5'
36
+ }],
37
+ },
38
+ ```
39
+
40
+ #### Changes
41
+
42
+ - [DataGrid] Fix row selection when clicking blank cell (#6974) @yami03
43
+ - [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
44
+ - [DataGrid] Removes `<GridCell />` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
45
+ - [DataGridPremium] Fix empty column group in Excel export (#7029) @alexfauquette
46
+ - [DataGridPremium] Update cache before hydrating columns (#7040) @m4theushw
47
+ - [DataGridPremium] Use custom cell component for grouping cell by default (#6692) @cherniavskii
48
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
49
+
50
+ ### `@mui/x-date-pickers@v6.0.0-alpha.10` / `@mui/x-date-pickers-pro@v6.0.0-alpha.10`
51
+
52
+ #### Breaking changes
53
+
54
+ - Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
55
+
56
+ The `dateRangeIcon` prop has been renamed to `dateIcon`:
57
+
58
+ ```diff
59
+ // Same on all other Date Time Picker variations
60
+ <DateTimePicker
61
+ componentsProps={{
62
+ tabs: {
63
+ - dateRangeIcon: <LightModeIcon />,
64
+ + dateIcon: <LightModeIcon />,
65
+ }
66
+ }}
67
+ />
68
+ ```
69
+
70
+ #### Changes
71
+
72
+ - [DateTimePicker] Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
73
+ - [pickers] Allow non-controlled usage of `TimeClock` (#6962) @flaviendelangle
74
+ - [pickers] Throw error when using adapter from `@date-io` (#6972) @flaviendelangle
75
+ - [l10n] Add Urdu (ur-PK) locale (#7007) @MBilalShafi
76
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
77
+
78
+ ### Docs
79
+
80
+ - [docs] Add Demos section on the pickers API pages (#6909) @flaviendelangle
81
+ - [docs] Add missing pickers migration docs (#7000) @LukasTy
82
+ - [docs] Fix broken link (#7048) @flaviendelangle
83
+ - [docs] Improve demo about customizing pagination (#6724) @m4theushw
84
+ - [docs] Keep track of localization completion (#7002) @alexfauquette
85
+ - [docs] Remove `LocalizationProvider` from previews (#6869) @flaviendelangle
86
+ - [docs] Remove the statement of support to RTL (#6521) @joserodolfofreitas
87
+ - [docs] Rework localization doc pages (#6625) @flaviendelangle
88
+ - [docs] Setup GitHub issue template for feedbacks about docs (#7026) @alexfauquette
89
+ - [docs] Test links with API page ignoring url hash (#7004) @alexfauquette
90
+ - [docs] Update API links from clock-picker to time-clock (#6993) @alexfauquette
91
+ - [docs] Use new pickers on the validation page (#7047) @flaviendelangle
92
+
93
+ ### Core
94
+
95
+ - [core] Remove useless type casting in field hooks (#7045) @flaviendelangle
96
+ - [test] Sync `test:unit` with monorepo (#6907) @oliviertassinari
97
+
98
+ ## 6.0.0-alpha.9
99
+
100
+ _Nov 24, 2022_
101
+
102
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
103
+
104
+ - 🎁 Introduce the v6 pickers, built on top of the field components [DatePicker](https://next.mui.com/x/react-date-pickers/date-picker/), [TimePicker](https://next.mui.com/x/react-date-pickers/time-picker/), [DateTimePicker](https://next.mui.com/x/react-date-pickers/date-time-picker/), [DateRangePicker](https://next.mui.com/x/react-date-pickers/date-range-picker/).
105
+
106
+ The old (legacy) components will be removed at the end of the v6 beta.
107
+
108
+ - 💅 Add support for `theme.vars` in the pickers and the DataGrid (#6784, #6778) @alexfauquette
109
+ - ✨ Improve DataGrid theme augmentation (#5818) @iigrik
110
+ - 📚 Documentation improvements
111
+ - 🐞 Bugfixes
112
+
113
+ ### `@mui/x-data-grid@v6.0.0-alpha.9` / `@mui/x-data-grid-pro@v6.0.0-alpha.9` / `@mui/x-data-grid-premium@v6.0.0-alpha.9`
114
+
115
+ ### Breaking changes
116
+
117
+ - <kbd>Ctrl</kbd> + <kbd>Enter</kbd> will no longer toggle the master detail panel (#6945) @MBilalShafi
118
+ You can restore the old behavior by listening to `cellKeyDown` and calling `apiRef.current.toggleDetailPanel()`.
119
+
120
+ - Remove unnecessary keyboard navigation events (#6863) @m4theushw
121
+ The `cellNavigationKeyDown` event was removed. Use `cellKeyDown` and check the key provided in the event argument.
122
+ The `columnHeaderNavigationKeyDown` event was removed. Use `columnHeaderKeyDown` and check the key provided in the event argument.
123
+
124
+ - Rename `rowsScroll` event to `scrollPositionChange` (#6957) @DanailH
125
+
126
+ #### Changes
127
+
128
+ - [DataGrid] Add spacing in `GridToolbar` for better visibility (#6904) @MBilalShafi
129
+ - [DataGrid] Improve typing for the theme in `styleOverrides` (#5818) @iigrik
130
+ - [DataGrid] Prevents master detail panel toggle with <kbd>Ctrl</kbd> + <kbd>Enter</kbd> (#6945) @MBilalShafi
131
+ - [DataGrid] Remove unnecessary keyboard navigation events (#6863) @m4theushw
132
+ - [DataGrid] Rename `ErrorOverlay` to `GridErrorOverlay` (#6946) @MBilalShafi
133
+ - [DataGrid] Stop exporting root base state selectors (#6912) @DanailH
134
+ - [DataGrid] Support `theme.vars` (#6784) @alexfauquette
135
+ - [DataGrid] Rename `rowsScroll` event to `scrollPositionChange` (#6957) @DanailH
136
+ - [DataGridPro] Fix lazy-loaded rows not working with `updateRows` API method (#6976) @cherniavskii
137
+ - [DataGridPremium] Improve typing for theme in `styleOverrides` (#6920) @m4theushw
138
+ - [l10n] Fix translation of `filterOperatorBefore` in Arabic (ar-SD) locale (#6884) @HassanGhazy
139
+
140
+ ### `@mui/x-date-pickers@v6.0.0-alpha.9` / `@mui/x-date-pickers-pro@v6.0.0-alpha.9`
141
+
142
+ #### Changes
143
+
144
+ - [DatePicker] Display week number (#6144) @alexfauquette
145
+ - [pickers] Clean `PickersCalendarHeader` slots (#6943) @flaviendelangle
146
+ - [pickers] Do not loose the translations when using nested `LocalizationProvider` with each a `localeText` prop (#6895) @flaviendelangle
147
+ - [pickers] Fix calendar header switch view button hover circle (#6938) @rajendraarora16
148
+ - [pickers] Fix focus management (#6914) @alexfauquette
149
+ - [pickers] Fix usage with Shadow DOM (#6952) @flaviendelangle
150
+ - [pickers] New `MobileDateRangePicker`, `DesktopDateRangePicker`, `DateRangePicker` and `StaticDateRangePicker` based on `MultiInputDateRangeField` (#6888) @flaviendelangle
151
+ - [pickers] Support `theme.vars` (#6778) @alexfauquette
152
+
153
+ ### Docs
154
+
155
+ - [docs] Add new "Expired package version" error type (#6937) @oliviertassinari
156
+ - [docs] Add support for API pages of unstable components (#6981) @flaviendelangle
157
+ - [docs] Create docs for the new date pickers (#6902) @flaviendelangle
158
+ - [docs] Create docs for the new time, date time and date range pickers (#6958) @flaviendelangle
159
+ - [docs] Fix demos live edit (#6975) @oliviertassinari
160
+ - [docs] Fix toggle button bug in demos in Custom Components page (#6913) @01zulfi
161
+ - [docs] Remove partial Portuguese and Chinese translations of the pickers pages (#6893) @flaviendelangle
162
+
163
+ ### Core
164
+
165
+ - [core] Cleanup `describeValidation` (#6942) @flaviendelangle
166
+ - [core] Group renovate GitHub Action dependency updates @oliviertassinari
167
+ - [core] Introduce `x-codemod` package (#6876) @LukasTy
168
+ - [core] Update minimum supported version of Node.js to 14.0.0 (#6966) @cherniavskii
169
+ - [core] Upgrade monorepo (#6905) @cherniavskii
170
+ - [core] Upgrade node to v14.21 (#6916) @piwysocki
171
+ - [core] Upgrade ESLint (#6738) @Janpot
172
+ - [test] Test validation on date range view (#6941) @alexfauquette
173
+
174
+ ## 6.0.0-alpha.8
175
+
176
+ _Nov 17, 2022_
177
+
178
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
179
+
180
+ - 🎁 Support aggregating data from multiple row fields (#6656) @cherniavskii
181
+ - 📚 Documentation improvements
182
+ - 🐞 Bugfixes
183
+
184
+ ### `@mui/x-data-grid@v6.0.0-alpha.8` / `@mui/x-data-grid-pro@v6.0.0-alpha.8` / `@mui/x-data-grid-premium@v6.0.0-alpha.8`
185
+
186
+ #### Changes
187
+
188
+ - [DataGrid] Fix `ErrorOverlay` not receiving defined input props (#6819) @banoth-ravinder
189
+ - [DataGrid] Fix conflict with the latest version of `@types/react` (#6797) @vizv
190
+ - [DataGrid] Make more `apiRef` methods private (#6700) @cherniavskii
191
+ - [DataGrid] Provide a clear error message when upgrading (#6685) @oliviertassinari
192
+ - [DataGridPremium] Allow to customize the indent of group expansion toggle (#6837) @MBilalShafi
193
+ - [DataGridPremium] Support aggregating data from multiple row fields (#6656) @cherniavskii
194
+ - [DataGridPro] Fix detail panel not working with `getRowSpacing` prop (#6707) @cherniavskii
195
+ - [DataGridPro] Opt-out for column jump back on re-order (#6733) @gavbrennan
196
+ - [l10n] Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
197
+
198
+ ### `@mui/x-date-pickers@v6.0.0-alpha.8` / `@mui/x-date-pickers-pro@v6.0.0-alpha.8`
199
+
200
+ #### Breaking changes
201
+
202
+ - The `ClockPicker` view component has been renamed to `TimeClock` to better fit its usage:
203
+
204
+ ```diff
205
+ -<ClockPicker {...props} />
206
+ +<TimeClock {...props} />
207
+ ```
208
+
209
+ Component name in the theme has changed as well:
210
+
211
+ ```diff
212
+ -MuiClockPicker: {
213
+ +MuiTimeClock: {
214
+ ```
215
+
216
+ #### Changes
217
+
218
+ - [pickers] Fix typing and prop drilling on `DateRangeCalendar` and multi input range fields (#6852) @flaviendelangle
219
+ - [pickers] Pass the `ampm` prop from the new pickers to their field (#6868) @flaviendelangle
220
+ - [pickers] Rename `CalendarPickerView`, `ClockPickerView` and `CalendarOrClockPickerView` (#6855) @flaviendelangle
221
+ - [pickers] Rename `ClockPicker` into `TimeClock` (#6851) @flaviendelangle
222
+
223
+ ### Docs
224
+
225
+ - [docs] Add `dayjs` to the dependencies (#6862) @m4theushw
226
+ - [docs] Clarify how the Row Pinning works with other features of the DataGrid (#6853) @cherniavskii
227
+ - [docs] Fix typo in Export page (#6848) @m4theushw
228
+ - [docs] Group picker pages (#6369) @flaviendelangle
229
+ - [docs] Remove default prop and improve format (#6781) @oliviertassinari
230
+ - [docs] Sync prism-okaidia.css with source (#6820) @oliviertassinari
231
+
232
+ ### Core
233
+
234
+ - [core] Convert scripts to ESM (#6789) @LukasTy
235
+ - [core] Feedback on branch protection @oliviertassinari
236
+ - [core] Fix `test-types` out of memory error (#6850) @LukasTy
237
+ - [core] Import from `@mui/utils` instead of `@mui/material/utils` (#6816) @cherniavskii
238
+ - [core] Show the whole version to make blame easier @oliviertassinari
239
+ - [core] Small changes on new pickers internals (#6840) @flaviendelangle
240
+ - [core] Remove prettier scripts (#6815) @Janpot
241
+ - [license] Polish error messages (#6881) @oliviertassinari
242
+ - [test] Verify `onError` call on the pickers (#6771) @alexfauquette
243
+
244
+ ## 6.0.0-alpha.7
245
+
246
+ _Nov 10, 2022_
247
+
248
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
249
+
250
+ - ⚙️ Removed everything marked as `@deprecated`
251
+ - 📚 Documentation improvements
252
+ - 🐞 Bugfixes
253
+
254
+ ### `@mui/x-data-grid@v6.0.0-alpha.7` / `@mui/x-data-grid-pro@v6.0.0-alpha.7` / `@mui/x-data-grid-premium@v6.0.0-alpha.7`
255
+
256
+ #### Changes
257
+
258
+ - [DataGrid] Fix cell focus causing scroll jump when virtualization enabled (#6785) @yaredtsy
259
+ - [DataGrid] Remove items marked as `@deprecated` (#6505) @DanailH
260
+
261
+ ### `@mui/x-date-pickers@v6.0.0-alpha.7` / `@mui/x-date-pickers-pro@v6.0.0-alpha.7`
262
+
263
+ #### Changes
264
+
265
+ - [fields] Rename section names to match the picker view nomenclature (#6779) @flaviendelangle
266
+ - [pickers] Fix pickers toolbar styling (#6793) @LukasTy
267
+ - [pickers] Improve validation JSDoc descriptions (#6777) @flaviendelangle
268
+ - [pickers] New `MobileDateTimePicker`, `DesktopDateTimePicker`, `DateTimePicker` and `StaticDateTimePicker` based on `DateTimeField` (#6767) @flaviendelangle
269
+ - [pickers] New `MobileTimePicker`, `DesktopTimePicker`, `TimePicker` and `StaticTimePicker` based on `TimeField` (#6728) @flaviendelangle
270
+ - [pickers] Support the `onError` prop and add context on the `onChange` prop (#6731) @flaviendelangle
271
+
272
+ ### Docs
273
+
274
+ - [docs] Add missing Pro header suffix (#6775) @oliviertassinari
275
+ - [docs] Upgrade to Next.js 13 (#6790) @cherniavskii
276
+
277
+ ### Core
278
+
279
+ - [core] Add OSSF Scorecard action (#6760) @oliviertassinari
280
+ - [core] Fix Pinned-Dependencies @oliviertassinari
281
+ - [core] Fix Scorecard fail Action @oliviertassinari
282
+ - [core] Pin GitHub Action dependencies (#6739) @renovate[bot]
283
+ - [core] Remove default access to GitHub action scopes @oliviertassinari
284
+ - [test] Fix test case name: Pro-> Premium @oliviertassinari
285
+
286
+ ## 6.0.0-alpha.6
287
+
288
+ _Nov 4, 2022_
289
+
290
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
291
+
292
+ - 🎁 Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
293
+
294
+ ```tsx
295
+ <DateCalendar defaultValue={dayjs()} />
296
+ <MonthCalendar defaultValue={dayjs()} />
297
+ <YearCalendar defaultValue={dayjs()} />
298
+ ```
299
+
300
+ - 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
301
+ - 📚 Documentation improvements
302
+ - 🐞 Bugfixes
303
+
304
+ ### `@mui/x-data-grid@v6.0.0-alpha.6` / `@mui/x-data-grid-pro@v6.0.0-alpha.6` / `@mui/x-data-grid-premium@v6.0.0-alpha.6`
305
+
306
+ #### Breaking changes
307
+
308
+ - The `disableIgnoreModificationsIfProcessingProps` prop has been removed and its behavior when `true` was incorporated as the default behavior.
309
+ The old behavior can be restored by using `apiRef.current.stopRowEditMode({ ignoreModifications: true })` or `apiRef.current.stopCellEditMode({ ignoreModifications: true })`.
310
+
311
+ #### Changes
312
+
313
+ - [DataGrid] Add `rowSelection` prop (#6499) @m4theushw
314
+ - [DataGrid] Avoid future regression with React 19 (#6638) @oliviertassinari
315
+ - [DataGrid] Refactor `@mui/material` imports to `@mui/utils` (#6569) @LukasTy
316
+ - [DataGrid] Remove `disableIgnoreModificationsIfProcessingProps` prop (#6640) @m4theushw
317
+ - [DataGrid] Separate private and public `apiRef` properties (#6388) @cherniavskii
318
+
319
+ ### `@mui/x-date-pickers@v6.0.0-alpha.6` / `@mui/x-date-pickers-pro@v6.0.0-alpha.6`
320
+
321
+ #### Changes
322
+
323
+ - [DateRangePicker] Fix input focused style and mobile behaviour (#6645) @LukasTy
324
+ - [fields] Update sections when the locale changes (#6649) @flaviendelangle
325
+ - [pickers] Add Ukrainian (uk-UA) locale (#6661) @Dufran
326
+ - [pickers] Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
327
+ - [pickers] Export other adapters derived from moment or date-fns (#6571) @alexfauquette
328
+ - [pickers] New `MobileDatePicker` and `DatePicker` based on `DateField` (#6690) @flaviendelangle
329
+ - [pickers] New `StaticDatePicker` component (#6708) @flaviendelangle
330
+ - [pickers] Rename `inputFormat` prop to `format` on the new pickers (#6722) @flaviendelangle
331
+
332
+ ### Core
333
+
334
+ - [core] Fix `typescript:ci` failures (#6705) @LukasTy
335
+ - [core] Fixes for upcoming eslint upgrade (#6667) @Janpot
336
+ - [core] Pin GitHub Action to digests (#6683) @oliviertassinari
337
+
338
+ ## 6.0.0-alpha.5
339
+
340
+ _Oct 31, 2022_
341
+
342
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
343
+
344
+ - ⚡ Fix memory leak during unmount of the DataGrid (#6620) @cherniavskii
345
+ - 📝 New guide for migrating pickers from v5 to v6 (#6472) @flaviendelangle
346
+ - 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6444) @e-cloud
347
+ - 🐞 Bugfixes
348
+
349
+ ### `@mui/x-data-grid@v6.0.0-alpha.5` / `@mui/x-data-grid-pro@v6.0.0-alpha.5` / `@mui/x-data-grid-premium@v6.0.0-alpha.5`
350
+
351
+ #### Breaking changes
352
+
353
+ - Stop exporting `gridColumnsSelector` (#6693) @m4theushw
354
+
355
+ The `gridColumnsSelector` was deprecated during v5 and is now removed from the export list.
356
+
357
+ Please consider using one of the following selectors as a replacement:
358
+
359
+ - `gridColumnFieldsSelector`, to obtain the column fields in the order they appear on the screen;
360
+ - `gridColumnLookupSelector`, to access column definitions by field;
361
+ - `gridColumnVisibilityModelSelector`, for the visibility state of each column.
362
+
363
+ #### Changes
364
+
365
+ - [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6444) @e-cloud
366
+ - [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6493) @cherniavskii
367
+ - [DataGrid] Fix memory leak on grid unmount (#6620) @cherniavskii
368
+ - [DataGrid] Rename `GridColumnsState['all']` to `GridColumnsState['orderedFields']` (#6562) @DanailH
369
+ - [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6655) @mattcorner
370
+ - [DataGrid] Stop exporting `gridColumnsSelector` (#6693)
371
+ - [l10n] Improve Bulgarian (bg-BG) locale (#6578) @AtanasVA
372
+
373
+ ### `@mui/x-date-pickers@v6.0.0-alpha.5` / `@mui/x-date-pickers-pro@v6.0.0-alpha.5`
374
+
375
+ #### Breaking changes
376
+
377
+ - [pickers] Rename remaining `private` components (#6550) @LukasTy
378
+ Previously we had 4 component names with `Private` prefix in order to avoid breaking changes in v5.
379
+ These components were renamed:
380
+
381
+ - `PrivatePickersMonth` -> `MuiPickersMonth`
382
+ - `PrivatePickersSlideTransition` -> `MuiPickersSlideTransition`
383
+ - `PrivatePickersToolbarText` -> `MuiPickersToolbarText`
384
+ - `PrivatePickersYear` -> `MuiPickersYear`
385
+
386
+ Manual style overriding will need to use updated classes:
387
+
388
+ ```diff
389
+ -.PrivatePickersMonth-root {
390
+ +.MuiPickersMonth-root {
391
+
392
+ -.PrivatePickersSlideTransition-root {
393
+ +.MuiPickersSlideTransition-root {
394
+
395
+ -.PrivatePickersToolbarText-root {
396
+ +.MuiPickersToolbarText-root {
397
+
398
+ -.PrivatePickersYear-root {
399
+ +.MuiPickersYear-root {
400
+ ```
401
+
402
+ Component name changes are also reflected in `themeAugmentation`:
403
+
404
+ ```diff
405
+ const theme = createTheme({
406
+ components: {
407
+ - PrivatePickersMonth: {
408
+ + MuiPickersMonth: {
409
+ // overrides
410
+ },
411
+ - PrivatePickersSlideTransition: {
412
+ + MuiPickersSlideTransition: {
413
+ // overrides
414
+ },
415
+ - PrivatePickersToolbarText: {
416
+ + MuiPickersToolbarText: {
417
+ // overrides
418
+ },
419
+ - PrivatePickersYear: {
420
+ + MuiPickersYear: {
421
+ // overrides
422
+ },
423
+ },
424
+ });
425
+ ```
426
+
427
+ #### Changes
428
+
429
+ - [DateTimePicker] Fix toolbar time order when `theme.rtl=true` (#6636) @alexfauquette
430
+ - [pickers] Import fixes for mask editing (#6623) @alexfauquette
431
+ - [pickers] Rename remaining `private` components (#6550) @LukasTy
432
+ - [pickers] New `DesktopDatePicker` based on `DateField` (#6548) @flaviendelangle
433
+
434
+ ### Docs
435
+
436
+ - [docs] Add feedback in next doc (#6591) @alexfauquette
437
+ - [docs] Check link validity in PR (#6497) @alexfauquette
438
+ - [docs] Disable translations (#6560) @cherniavskii
439
+ - [docs] Fix typo in DataGrid demo page (#6632) @banoth-ravinder
440
+ - [docs] New page to migrate pickers from v5 to v6 (#6472) @flaviendelangle
441
+ - [docs] Remove broken welcome page (#6585) @alexfauquette
442
+ - [docs] Mark data grid column group as available (#6660) @alexfauquette
443
+ - [docs] Fix double space @oliviertassinari
444
+
445
+ ### Core
446
+
447
+ - [core] Fix duplicate CodeQL build @oliviertassinari
448
+ - [core] Fix spreading on validation page (#6624) @flaviendelangle
449
+ - [core] Small TypeScript improvements (#6575) @flaviendelangle
450
+ - [core] Upgrade monorepo (#6594) @oliviertassinari
451
+ - [core] Change reproduction position (#6621) @oliviertassinari
452
+ - [core] Fix permissions in `no-response` workflow (#6658) @cherniavskii
453
+ - [core] Remove legacy migration function (#6669) @oliviertassinari
454
+ - [license] Improve the license content (#6459) @oliviertassinari
455
+ - [test] Test Arrow up/down on every token (#6563) @alexfauquette
456
+
457
+ ## 6.0.0-alpha.4
458
+
459
+ _Oct 20, 2022_
460
+
461
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
462
+
463
+ - 📝 Manage pickers' toolbar customization with slots
464
+ - 🐞 Bugfixes
465
+ - 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) @ramazansancar
466
+
467
+ ### `@mui/x-data-grid@v6.0.0-alpha.4` / `@mui/x-data-grid-pro@v6.0.0-alpha.4` / `@mui/x-data-grid-premium@v6.0.0-alpha.4`
468
+
469
+ #### Breaking changes
470
+
471
+ - To avoid confusion with the props that will be added for the cell selection feature, some props related to row selection were renamed to have "row" in their name.
472
+ The renamed props are the following:
473
+
474
+ | Old name | New name |
475
+ | -------------------------- | ----------------------------- |
476
+ | `selectionModel` | `rowSelectionModel` |
477
+ | `onSelectionModelChange` | `onRowSelectionModelChange` |
478
+ | `disableSelectionOnClick` | `disableRowSelectionOnClick` |
479
+ | `disableMultipleSelection` | `disableMultipleRowSelection` |
480
+
481
+ - The `gridSelectionStateSelector` selector was renamed to `gridRowSelectionStateSelector`.
482
+
483
+ - The `selectionChange` event was renamed to `rowSelectionChange`.
484
+
485
+ #### Changes
486
+
487
+ - [DataGrid] Add `searchPredicate` prop to `GridColumnsPanel` component (#6557) @cherniavskii
488
+ - [DataGrid] Support keyboard navigation in column group header (#5947) @alexfauquette
489
+ - [DataGrid] Fix grid not updating state on `rowCount` prop change (#5982) @cherniavskii
490
+ - [DataGrid] Rename selection props (#6556) @m4theushw
491
+ - [l10n] Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) @ramazansancar
492
+
493
+ ### `@mui/x-date-pickers@v6.0.0-alpha.4` / `@mui/x-date-pickers-pro@v6.0.0-alpha.4`
494
+
495
+ #### Breaking changes
496
+
497
+ - The `ToolbarComponent` has been replaced by a `Toolbar` component slot.
498
+ You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props):
499
+
500
+ ```diff
501
+ // Same on all other pickers
502
+ <DatePicker
503
+ - ToolbarComponent: MyToolbar,
504
+ + components={{ Toolbar: MyToolbar }}
505
+ />
506
+ ```
507
+
508
+ - The `toolbarPlaceholder` and `toolbarFormat` props have been moved to the `toolbar` components props slot:
509
+
510
+ ```diff
511
+ // Same on all other pickers
512
+ <DatePicker
513
+ - toolbarPlaceholder="__"
514
+ - toolbarFormat="DD / MM / YYYY"
515
+ + componentsProps={{
516
+ + toolbar: {
517
+ + toolbarPlaceholder: '__',
518
+ + toolbarFormat: 'DD / MM / YYYY',
519
+ + }
520
+ + }}
521
+ />
522
+ ```
523
+
524
+ - The `toolbarTitle` prop has been moved to the localization object:
525
+
526
+ ```diff
527
+ // Same on all other pickers
528
+ <DatePicker
529
+ - toolbarTitle="Title"
530
+ + localeText={{ toolbarTitle: 'Title' }}
531
+ />
532
+ ```
533
+
534
+ - The toolbar related translation keys have been renamed to better fit their usage:
535
+
536
+ ```diff
537
+ // Same on all other pickers
538
+ <DatePicker
539
+ localeText={{
540
+ - datePickerDefaultToolbarTitle: 'Date Picker',
541
+ + datePickerToolbarTitle: 'Date Picker',
542
+
543
+ - timePickerDefaultToolbarTitle: 'Time Picker',
544
+ + timePickerToolbarTitle: 'Time Picker',
545
+
546
+ - dateTimePickerDefaultToolbarTitle: 'Date Time Picker',
547
+ + dateTimePickerToolbarTitle: 'Date Time Picker',
548
+
549
+ - dateRangePickerDefaultToolbarTitle: 'Date Range Picker',
550
+ + dateRangePickerToolbarTitle: 'Date Range Picker',
551
+ }}
552
+ />
553
+ ```
554
+
555
+ - The `onChange` / `openView` props on the toolbar have been renamed `onViewChange` / `view`
556
+
557
+ #### Changes
558
+
559
+ - [fields] Add a `validationError` property to the `onChange` callback (#6539) @flaviendelangle
560
+ - [fields] Distinguish start and end input error on multi input fields (#6503) @flaviendelangle
561
+ - [pickers] Clean the `Tabs` component slot (#6543) @flaviendelangle
562
+ - [pickers] Fix localization of the placeholder (#6547) @alexfauquette
563
+ - [pickers] Fix TypeScript issues (#6322) @flaviendelangle
564
+ - [pickers] Improve error consistency between single and multiple range pickers (#6561) @alexfauquette
565
+ - [pickers] Refactor `@mui/material` imports to `@mui/utils` (#6443) @LukasTy
566
+ - [pickers] Replace toolbar's props by a component slot (#6445) @flaviendelangle
567
+
568
+ ### Docs
569
+
570
+ - [docs] Enable inlined preview for disabled date picker (#6477) @oliviertassinari
571
+ - [docs] Fix 404 errors (#6541) @alexfauquette
572
+ - [docs] Fix broken links on field pages (#6501) @flaviendelangle
573
+ - [docs] Improve markdownlint (#6518) @oliviertassinari
574
+
575
+ ### Core
576
+
577
+ - [core] Run CodeQL only on schedule @oliviertassinari
578
+ - [core] Fix trailing spaces and git diff format (#6523) @oliviertassinari
579
+ - [core] Harden GitHub Actions permissions (#6396) @step-security-bot
580
+ - [core] Improve the playground DX (#6514) @oliviertassinari
581
+ - [core] Link Netlify in the danger comment (#6513) @oliviertassinari
582
+ - [core] Organize tests for pickers slots (#6546) @flaviendelangle
583
+ - [core] Remove outdated `docsearch.js` dependency (#6242) @oliviertassinari
584
+ - [core] Upgrade monorepo (#6549) @cherniavskii
585
+ - [test] Add validation test on range pickers (#6504) @alexfauquette
586
+ - [test] Remove BrowserStack (#6263) @DanailH
587
+
588
+ ## 6.0.0-alpha.3
589
+
590
+ _Oct 13, 2022_
591
+
592
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
593
+
594
+ - ⌚️ New components to edit date and time with <kbd>keyboard</kbd>—without using any modal or dropdown UI.
595
+ Please check out our [documentation](https://next.mui.com/x/react-date-pickers/fields/) to discover those new components.
596
+
597
+ - [`DateField`](https://next.mui.com/x/react-date-pickers/date-field/) to edit date
598
+ - [`TimeField`](https://next.mui.com/x/react-date-pickers/time-field/) to edit time
599
+ - [`DateTimeField`](https://next.mui.com/x/react-date-pickers/date-time-field/) to edit date and time
600
+ - [`MultiInputDateRangeField` / `SingleInputDateRangeField`](https://next.mui.com/x/react-date-pickers/date-range-field/) to edit date range
601
+ - [`MultiInputTimeRangeField`](https://next.mui.com/x/react-date-pickers/time-range-field/) to edit time range with two inputs
602
+ - [`MultiInputDateTimeRangeField`](https://next.mui.com/x/react-date-pickers/date-time-range-field/) to edit date and time range with two inputs
603
+
604
+ ⚠️ These components are unstable.
605
+ They might receive breaking changes on their props to have the best components possible by the time of the stable release.
606
+
607
+ - 📝 Allow to limit to one filter per column for `DataGridPro` and `DataGridPremium` (#6333) @MBilalShafi
608
+ - 📚 New [page describing the validation props on each picker](https://next.mui.com/x/react-date-pickers/validation/) (#6064) @flaviendelangle
609
+ - 📚 Documentation improvements
610
+ - 🐞 Bugfixes
611
+
612
+ ### `@mui/x-data-grid@v6.0.0-alpha.3` / `@mui/x-data-grid-pro@v6.0.0-alpha.3` / `@mui/x-data-grid-premium@v6.0.0-alpha.3`
613
+
614
+ #### Breaking changes
615
+
616
+ - [DataGrid] Remove legacy editing API
617
+
618
+ The editing API that is enabled by default was replaced with a new API that contains better support for server-side persistence, validation and customization. This new editing feature was already available in v5 under the `newEditingApi` experimental flag. In v6, this flag can be removed.
619
+
620
+ ```diff
621
+ <DataGrid
622
+ - experimentalFeatures={{ newEditingApi: true }}
623
+ />
624
+ ```
625
+
626
+ For users that didn't migrate to the new editing API in v5, additional work may be needed because the new API is not equivalent to the legacy API. Although, some migration steps are available to help in this task.
627
+
628
+ - The `editCellPropsChange` event was removed. If you still need it please file a new issue so we can propose an alternative.
629
+ - The `cellEditCommit` event was removed and the `processRowUpdate` prop can be used in place. More information, check the [docs](https://next.mui.com/x/react-data-grid/editing/#persistence) section about the topic.
630
+ - The `editRowsModel` and `onEditRowsModelChange` props were removed. The [`cellModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) props can be used to achieve the same goal.
631
+ - The following API methods were removed:
632
+ - Use `apiRef.current.stopCellEditMode` to replace `apiRef.current.commitCellChange`
633
+ - Use `apiRef.current.startCellEditMode` to replace `apiRef.current.setCellMode(id, field, 'edit')`
634
+ - Use `apiRef.current.stopRowEditMode` to replace `apiRef.current.commitRowChange`
635
+ - Use `apiRef.current.startRowMode` to replace `apiRef.current.setRowMode(id, 'edit')`
636
+ - Use the [`cellModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) props to replace `apiRef.current.setEditRowsModel`
637
+
638
+ #### Changes
639
+
640
+ - [DataGrid] Fix start edit mode with printable character in React 18 (#6257) @m4theushw
641
+ - [DataGrid] Remove legacy editing API (#6016) @m4theushw
642
+ - [DataGrid] Simplify `useGridApiContext` and `useGridApiRef` type overrides (#6423) @cherniavskii
643
+ - [DataGrid] Use generics instead of verbose state overrides (#6409) @cherniavskii
644
+ - [DataGridPro] Allow to limit to one filter per column (#6333) @MBilalShafi
645
+
646
+ ### `@mui/x-date-pickers@v6.0.0-alpha.3` / `@mui/x-date-pickers-pro@v6.0.0-alpha.3`
647
+
648
+ #### Breaking changes
649
+
650
+ - All the props used by the mobile and desktop wrappers to override components or components' props have been replaced by component slots. You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props).
651
+
652
+ Some of the names have also been prefixed by `desktop` when it was unclear that the behavior was only applied on the desktop version of the pickers (or the responsive version when used on a desktop).
653
+
654
+ The `DialogProps` prop has been replaced by a `dialog` component props slot on responsive and mobile pickers:
655
+
656
+ ```diff
657
+ // Same on MobileDatePicker, DateTimePicker, MobileDateTimePicker,
658
+ // TimePicker, MobileTimePicker, DateRangePicker and MobileDateRangePicker.
659
+ <DatePicker
660
+ - DialogProps={{ backgroundColor: 'red' }}
661
+ + componentsProps={{ dialog: { backgroundColor: 'red }}}
662
+ />
663
+ ```
664
+
665
+ The `PaperProps` prop has been replaced by a `desktopPaper` component props slot on all responsive and desktop pickers:
666
+
667
+ ```diff
668
+ // Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
669
+ // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
670
+ <DatePicker
671
+ - PaperProps={{ backgroundColor: 'red' }}
672
+ + componentsProps={{ desktopPaper: { backgroundColor: 'red }}}
673
+ />
674
+ ```
675
+
676
+ The `PopperProps` prop has been replaced by a `popper` component props slot on all responsive and desktop pickers:
677
+
678
+ ```diff
679
+ // Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
680
+ // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
681
+ <DatePicker
682
+ - PopperProps={{ onClick: handleClick }}
683
+ + componentsProps={{ popper: { onClick: handleClick }}}
684
+ />
685
+ ```
686
+
687
+ The `TransitionComponent` prop has been replaced by a `DesktopTransition` component slot on all responsive and desktop pickers:
688
+
689
+ ```diff
690
+ // Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
691
+ // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
692
+ <DatePicker
693
+ - TransitionComponent={Fade}
694
+ + components={{ DesktopTransition: Fade }}
695
+ />
696
+ ```
697
+
698
+ The `TrapFocusProps` prop has been replaced by a `desktopTrapFocus` component props slot on all responsive and desktop pickers:
699
+
700
+ ```diff
701
+ // Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
702
+ // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
703
+ <DatePicker
704
+ - TrapFocusProps={{ isEnabled: () => false }}
705
+ + componentsProps={{ desktopTrapFocus: { isEnabled: () => false }}}
706
+ />
707
+ ```
708
+
709
+ - The view components allowing to pick a date or parts of a date without an input have been renamed to better fit their usage:
710
+
711
+ ```diff
712
+ -<CalendarPicker {...props} />
713
+ +<DateCalendar {...props} />
714
+ ```
715
+
716
+ ```diff
717
+ -<DayPicker {...props} />
718
+ +<DayCalendar {...props} />
719
+ ```
720
+
721
+ ```diff
722
+ -<CalendarPickerSkeleton {...props} />
723
+ +<DayCalendarSkeleton {...props} />
724
+ ```
725
+
726
+ ```diff
727
+ -<MonthPicker {...props} />
728
+ +<MonthCalendar {...props} />
729
+ ```
730
+
731
+ ```diff
732
+ -<YearPicker {...props} />
733
+ +<YearCalendar {...props} />
734
+ ```
735
+
736
+ - Component names in the theme have changed as well:
737
+
738
+ ```diff
739
+ -MuiCalendarPicker: {
740
+ +MuiDateCalendar: {
741
+ ```
742
+
743
+ ```diff
744
+ -MuiDayPicker: {
745
+ +MuiDayCalendar: {
746
+ ```
747
+
748
+ ```diff
749
+ -MuiCalendarPickerSkeleton: {
750
+ +MuiDayCalendarSkeleton: {
751
+ ```
752
+
753
+ ```diff
754
+ -MuiMonthPicker: {
755
+ +MuiMonthCalendar: {
756
+ ```
757
+
758
+ ```diff
759
+ -MuiYearPicker: {
760
+ +MuiYearCalendar: {
761
+ ```
762
+
763
+ #### Changes
764
+
765
+ - [DatePicker] Allows to fix the number of week displayed (#6299) @alexfauquette
766
+ - [DateRangePicker] Fix calendar day outside of month layout shifting on hover (#6448) @alexfauquette
767
+ - [fields] New components: `MultiInputDateTimeRangePicker` and `MultiInputTimeRangePicker` (#6392) @alexfauquette
768
+ - [fields] Prepare the field exports for the public release (#6467) @flaviendelangle
769
+ - [fields] Support paste in single section (#6422) @alexfauquette
770
+ - [pickers] Add field placeholders to the locale (#6337) @flaviendelangle
771
+ - [pickers] Do not use `Partial` for `components` and `componentsProps` props (#6463) @flaviendelangle
772
+ - [pickers] New component: `DateRangeCalendar` (#6416) @flaviendelangle
773
+ - [pickers] Replace the `Picker` prefix in the view component by `Calendar` (eg: `MonthPicker` => `MonthCalendar`) (#6389) @flaviendelangle
774
+ - [pickers] Support pasting on fields (#6364) @flaviendelangle
775
+ - [pickers] Use slots in the mobile and desktop wrappers instead of `XXXComponent` and `XXXProps` (#6381) @flaviendelangle
776
+
777
+ ### Docs
778
+
779
+ - [docs] Add migration to DataGrid v6 page (#6235) @m4theushw
780
+ - [docs] Create first publishable version of the field doc (#6323) @flaviendelangle
781
+ - [docs] Fix trailing spaces in the readme @oliviertassinari
782
+ - [docs] New page for the pickers: Validation (#6064) @flaviendelangle
783
+ - [docs] Organize migration pages (#6480) @flaviendelangle
784
+
785
+ ### Core
786
+
787
+ - [core] Add CodeQL workflow (#6387) @DanailH
788
+ - [core] Add missing breaking change to the changelog (#6471) @flaviendelangle
789
+ - [core] Fix playground structure (#6466) @LukasTy
790
+ - [core] Fix tests for pasting on fields (#6465) @flaviendelangle
791
+ - [core] Remove absolute link (#6420) @flaviendelangle
792
+ - [core] Remove unused `react-text-mask` package (#6408) @LukasTy
793
+ - [core] Send explicit warning when dayjs locale is not found (#6424) @alexfauquette
794
+ - [core] Test validation on textfield and date views (#6265) @alexfauquette
795
+ - [test] Sync comment with monorepo @oliviertassinari
796
+
797
+ ## 6.0.0-alpha.2
798
+
799
+ _Oct 7, 2022_
800
+
801
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
802
+
803
+ - 🚀 Further progress on stabilizing new date field components
804
+ - 🎁 Improve support for theme augmentation in the DataGrid (#6269) @cherniavskii
805
+ - 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
806
+ - 📚 Documentation improvements
807
+ - 🐞 Bugfixes
808
+
809
+ ### `@mui/x-data-grid@v6.0.0-alpha.2` / `@mui/x-data-grid-pro@v6.0.0-alpha.2` / `@mui/x-data-grid-premium@v6.0.0-alpha.2`
810
+
811
+ #### Breaking changes
812
+
813
+ - 🎁 The aggregation is no longer experimental.
814
+
815
+ You can now use the aggregation without the `experimentalFeatures.aggregation` flag enabled.
816
+
817
+ ```diff
818
+ <DataGridPremium
819
+ - experimentalFeatures={{ aggregation: true }}
820
+ />
821
+ ```
822
+
823
+ The aggregation of the columns through the column menu is now enabled by default on `DataGridPremium`. You can set `disableAggregation={true}` to disable it.
824
+
825
+ #### Changes
826
+
827
+ - [DataGrid] Add filter item ID to `.MuiDataGrid-filterForm` (#6313) @m4theushw
828
+ - [DataGrid] Add missing `valueOptions` (#6401) @DanailH
829
+ - [DataGrid] Don't start edit mode when pressing Shift + Space (#6228) @m4theushw
830
+ - [DataGrid] Fix error when using column grouping with all columns hidden (#6405) @alexfauquette
831
+ - [DataGrid] Pass generics to the components in the theme augmentation (#6269) @cherniavskii
832
+ - [DataGridPremium] Remove the aggregation from the experimental features (#6372) @flaviendelangle
833
+
834
+ ### `@mui/x-date-pickers@v6.0.0-alpha.2` / `@mui/x-date-pickers-pro@v6.0.0-alpha.2`
835
+
836
+ #### Breaking changes
837
+
838
+ - The `renderDay` prop has been replaced by a `Day` component slot.
839
+ You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props).
840
+
841
+ ```diff
842
+ // Same for any other date, date time or date range picker.
843
+ <DatePicker
844
+ - renderDay={(_, dayProps) => <CustomDay {...dayProps} />}
845
+ + components={{ Day: CustomDay }}
846
+ />
847
+ ```
848
+
849
+ #### Changes
850
+
851
+ - [DateRangePicker] Fix the shape of the first selected day when the start date has an hour set (#6403) @flaviendelangle
852
+ - [l10n] Add Japanese (ja-JP) locale to pickers (#6365) @sho918
853
+ - [DateRangePicker] Force focus to stay on inputs (#6324) @alexfauquette
854
+ - [pickers] Improve edition on field components (#6339) @flaviendelangle
855
+ - [pickers] Improve field selection behaviors (#6317) @flaviendelangle
856
+ - [pickers] Replace the `renderDay` prop with a `Day` component slot (#6293) @flaviendelangle
857
+
858
+ ### Docs
859
+
860
+ - [docs] Apply style guide to Data Grid Aggregation page (#5781) @samuelsycamore
861
+ - [docs] Fix code examples of editing cells (#6004) @TiagoPortfolio
862
+ - [docs] Fix customized day rendering demo style (#6342) (#6399) @Ambrish-git
863
+ - [docs] Implement Style Guide on "Advanced" Data Grid doc pages (#6331) @samuelsycamore
864
+ - [docs] Use components instead of demos for `SelectorsDocs` (#6103) @flaviendelangle
865
+ - [license] Add new license status 'Out of scope' (#5260) @flaviendelangle
866
+
867
+ ### Core
868
+
869
+ - [core] Speedup of yarn install in the CI (#6395) @oliviertassinari
870
+ - [test] Remove redundant test clean-ups (#6377) @oliviertassinari
871
+ - [test] Replace `React.render` with `React.createRoot` in e2e tests (#6393) @m4theushw
872
+
873
+ ## 6.0.0-alpha.1
874
+
875
+ _Sep 29, 2022_
876
+
877
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
878
+
879
+ - 🚀 Better support for custom overlays (#5808) @cherniavskii
880
+ - 🖨️ Improve print export (#6273) @oliviertassinari
881
+ - 🎁 Reduce confusion when initializing pickers with a date value (#6170) @flaviendelangle
882
+ - 📚 Documentation improvements
883
+ - 🐞 Bugfixes
884
+
885
+ ### `@mui/x-data-grid@v6.0.0-alpha.1` / `@mui/x-data-grid-pro@v6.0.0-alpha.1` / `@mui/x-data-grid-premium@v6.0.0-alpha.1`
886
+
887
+ #### Breaking changes
888
+
889
+ - New internal rows structure for v6 (#4927) @flaviendelangle
890
+
891
+ Some selectors related to the rows have been renamed to better describe the type of rows they are returning:
892
+
893
+ ```diff
894
+ -const result = gridRowsIdToIdLookupSelector(apiRef);
895
+ +const result = gridRowsDataRowIdToIdLookupSelector(apiRef);
896
+ ```
897
+
898
+ ```diff
899
+ -const result = gridRowTreeDepthSelector(apiRef);
900
+ +const result = gridRowMaximumTreeDepthSelector(apiRef);
901
+ ```
902
+
903
+ The format of the tree nodes (the element accessible in `params.node` or with the `apiRef.current.getRowNode` method) have changed.
904
+ You have a new `type` property, which can be useful, for example, to apply custom behavior on groups.
905
+ Here is an example of the old and new approach showing how to apply a custom value formatter in groups for the grouping column:
906
+
907
+ ```diff
908
+ <DataGridPremium
909
+ groupingColDef={() => ({
910
+ valueFormatter: (params) => {
911
+ if (params.id == null) {
912
+ return params.value;
913
+ }
914
+
915
+ const rowNode = apiRef.current.getRowNode(params.id!)!;
916
+ - if (rowNode.children?.length) {
917
+ + if (rowNode.type === 'group') {
918
+ return `by ${rowNode.groupingKey ?? ''}`;
919
+ }
920
+
921
+ return params.value;
922
+ }
923
+ })}
924
+ />
925
+ ```
926
+
927
+ - The `GridFeatureModeConstant` constant no longer exists (#6077) @DanailH
928
+
929
+ ```diff
930
+ -import { GridFeatureModeConstant } from '@mui/x-data-grid';
931
+ ```
932
+
933
+ #### Changes
934
+
935
+ - [DataGrid] Fix `GridPagination` props typing (#6238) @cherniavskii
936
+ - [DataGrid] Fix `GridRow` not forwarding `ref` to the root element (#6274) @cherniavskii
937
+ - [DataGrid] Fix `undefined` value being showed in filter button tooltip text (#6259) @cherniavskii
938
+ - [DataGrid] Fix blank space when changing page with dynamic row height (#6049) @m4theushw
939
+ - [DataGrid] New internal rows structure for v6 (#4927) @flaviendelangle
940
+ - [DataGrid] Revert cell/row mode if `processRowUpdate` fails (#6185) @m4theushw
941
+ - [DataGrid] Rework overlays layout (#5808) @cherniavskii
942
+ - [DataGrid] Improve print support (#6273) @oliviertassinari
943
+ - [DataGridPremium] Add missing `themeAugmentation` module (#6270) @cherniavskii
944
+
945
+ ### `@mui/x-date-pickers@v6.0.0-alpha.1` / `@mui/x-date-pickers-pro@v6.0.0-alpha.1`
946
+
947
+ #### Breaking changes
948
+
949
+ - The `value` prop of the pickers now expects a parsed value.
950
+
951
+ Until now, it was possible to provide any format that your date management library was able to parse.
952
+ For instance, you could pass `value={new Date()}` when using `AdapterDayjs`.
953
+
954
+ This brought a lot of confusion so we decided to remove this behavior.
955
+ The format expected by the `value` prop is now the same as for any other prop holding a date.
956
+ Here is the syntax to initialize a date picker at the current date for each adapter:
957
+
958
+ ```tsx
959
+ // Date-fns
960
+ <DatePicker value={new Date()} />;
961
+
962
+ // Dayjs
963
+ import dayjs from 'dayjs';
964
+ <DatePicker value={dayjs()} />;
965
+
966
+ // Moment
967
+ import moment from 'moment';
968
+ <DatePicker value={moment()} />;
969
+
970
+ // Luxon
971
+ import { DateTime } from 'luxon';
972
+ <DatePicker value={DateTime.now()} />;
973
+ ```
974
+
975
+ #### Changes
976
+
977
+ - [DatePicker] Respect `minDate` and `maxDate` when opening a `DatePicker` or `DateTimePicker` (#6309) @alexfauquette
978
+ - [DateTimePicker] Fix validation with `shouldDisableMonth` and `shouldDisableYear` (#6266) @flaviendelangle
979
+ - [TimePicker] Add support for `disablePast` and `disableFuture` validation props (#6226) @LukasTy
980
+ - [CalendarPicker] Prevent getting focus when `autoFocus=false` (#6304) @alexfauquette
981
+ - [DateField] Extend moment adapter to support `expandFormat` and `formatTokenMap` (#6215) @alexfauquette
982
+ - [pickers] Allow to control the selected sections (#6209, #6307) @flaviendelangle
983
+ - [pickers] Do not loose the value of date sections not present in the format in the new field components (#6141) @flaviendelangle
984
+ - [pickers] Do not support unparsed date formats anymore (#6170) @flaviendelangle
985
+ - [pickers] Support slots on the `DateField` component (#6048) @flaviendelangle
986
+ - [pickers] Support Luxon v3 in `AdapterLuxon` (#6069) @alexfauquette
987
+ - [pickers] New components `TimeField` and `DateTimeField` (#6312) @flaviendelangle
988
+ - [pickers] Support basic mobile edition on new field components (#5958) @flaviendelangle
989
+
990
+ ### Docs
991
+
992
+ - [docs] Fix issue in DataGrid/DataGridPro row styling demo (#6264) @MBilalShafi
993
+ - [docs] Improve pickers Getting Started examples (#6292) @flaviendelangle
994
+ - [docs] Pass model change callbacks in controlled grid editing demos (#6296) @cherniavskii
995
+ - [docs] Update the CodeSandbox to use the `next` branch (#6275) @oliviertassinari
996
+
997
+ ### Core
998
+
999
+ - [core] Fix typing error (#6291) @flaviendelangle
1000
+ - [core] Fix typo in the state updater of `useField` (#6311) @flaviendelangle
1001
+ - [core] Remove `GridFeatureModeConstant` (#6077) @DanailH
1002
+ - [core] Simplify testing architecture (#6043) @flaviendelangle
1003
+ - [test] Skip test in Chrome non-headless and Edge (#6318) @m4theushw
1004
+
6
1005
  ## 6.0.0-alpha.0
7
1006
 
8
1007
  _Sep 22, 2022_
@@ -22,17 +1021,17 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
22
1021
  - The deprecated `hide` column property has been removed in favor of the `columnVisibilityModel` prop and initial state.
23
1022
 
24
1023
  ```diff
25
- <DataGrid
26
- columns={[
27
- field: 'id,
28
- - hide: true,
29
- ]}
1024
+ <DataGrid
1025
+ columns={[
1026
+ field: 'id,
1027
+ - hide: true,
1028
+ ]}
30
1029
  + initialState={{
31
1030
  + columns: {
32
1031
  + columnVisibilityModel: { id: false },
33
- + }
1032
+ + },
34
1033
  + }}
35
- />
1034
+ />
36
1035
  ```
37
1036
 
38
1037
  You can find more information about this new API on our [documentation](https://next.mui.com/x/react-data-grid/column-visibility/).
@@ -40,8 +1039,8 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
40
1039
  - The `GridEvents` enum is now a TypeScript type.
41
1040
 
42
1041
  ```diff
43
- - apiRef.current.subscribeEvent(GridEvents.rowClick', handleRowClick)
44
- + apiRef.current.subscribeEvent('rowClick', handleRowClick)
1042
+ -apiRef.current.subscribeEvent(GridEvents.rowClick', handleRowClick);
1043
+ +apiRef.current.subscribeEvent('rowClick', handleRowClick);
45
1044
  ```
46
1045
 
47
1046
  #### Changes
@@ -61,7 +1060,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
61
1060
  You can now use the `localText` prop available on all picker components:
62
1061
 
63
1062
  | Removed prop | Property in the new `localText` prop |
64
- |------------------------------|-----------------------------------------------------------------------------------|
1063
+ | ---------------------------- | --------------------------------------------------------------------------------- |
65
1064
  | `endText` | `end` |
66
1065
  | `getClockLabelText` | `clockLabelText` |
67
1066
  | `getHoursClockNumberText` | `hoursClockNumberText` |
@@ -75,54 +1074,65 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
75
1074
  For instance if you want to replace the `startText` / `endText`
76
1075
 
77
1076
  ```diff
78
- <DateRangePicker
1077
+ <DateRangePicker
79
1078
  - startText="From"
80
1079
  - endText="To"
81
1080
  + localeText={{
82
1081
  + start: 'From',
83
1082
  + end: 'To',
84
1083
  + }}
85
- />
1084
+ />
86
1085
  ```
87
1086
 
88
1087
  You can find more information about the new api, including how to set those translations on all your components at once in the [documentation](https://next.mui.com/x/react-date-pickers/localization/)
89
1088
 
90
- - The component slots `LeftArrowButton` and `RightArrowButton` have been renamed `PreviousIconButton` and `NextIconButton` to better describe there usage:
1089
+ - The deprecated `locale` prop of the `LocalizationProvider` component have been renamed `adapterLocale`:
91
1090
 
92
1091
  ```diff
93
- <DatePicker
94
- components={{
95
- - LeftArrowButton: CustomButton,
96
- + PreviousIconButton: CustomButton,
1092
+ <LocalizationProvider
1093
+ dateAdapter={AdapterDayjs}
1094
+ - locale="fr"
1095
+ + adapterLocale="fr"
1096
+ >
1097
+ {children}
1098
+ </LocalizationProvider>
1099
+ ```
97
1100
 
98
- - RightArrowButton: CustomButton,
99
- + NextIconButton: CustomButton,
100
- }}
1101
+ - The component slots `LeftArrowButton` and `RightArrowButton` have been renamed `PreviousIconButton` and `NextIconButton` to better describe there usage:
101
1102
 
102
- componentsProps={{
103
- - leftArrowButton: {},
104
- + previousIconButton: {},
1103
+ ```diff
1104
+ <DatePicker
1105
+ components={{
1106
+ - LeftArrowButton: CustomButton,
1107
+ + PreviousIconButton: CustomButton,
105
1108
 
106
- - rightArrowButton: {},
107
- + nextIconButton: {},
108
- }}
109
- />
1109
+ - RightArrowButton: CustomButton,
1110
+ + NextIconButton: CustomButton,
1111
+ }}
1112
+ componentsProps={{
1113
+ - leftArrowButton: {},
1114
+ + previousIconButton: {},
1115
+
1116
+ - rightArrowButton: {},
1117
+ + nextIconButton: {},
1118
+ }}
1119
+ />
110
1120
  ```
111
1121
 
112
- - The `date` prop has been renamed `value` on `MonthPicker` / `YearPicker`, `ClockPicker` and `CalendarPicker`.
1122
+ - The `date` prop has been renamed `value` on `MonthPicker` / `YearPicker`, `ClockPicker` and `CalendarPicker`.
113
1123
 
114
1124
  ```diff
115
- - <MonthPicker date={dayjs()} onChange={handleMonthChange} />
116
- + <MonthPicker value={dayjs()} onChange={handleMonthChange} />
1125
+ -<MonthPicker date={dayjs()} onChange={handleMonthChange} />
1126
+ +<MonthPicker value={dayjs()} onChange={handleMonthChange} />
117
1127
 
118
- - <YearPicker date={dayjs()} onChange={handleYearChange} />
119
- + <YearPicker value={dayjs()} onChange={handleYearChange} />
1128
+ -<YearPicker date={dayjs()} onChange={handleYearChange} />
1129
+ +<YearPicker value={dayjs()} onChange={handleYearChange} />
120
1130
 
121
- - <ClockPicker date={dayjs()} onChange={handleTimeChange} />
122
- + <ClockPicker value={dayjs()} onChange={handleTimeChange} />
1131
+ -<ClockPicker date={dayjs()} onChange={handleTimeChange} />
1132
+ +<ClockPicker value={dayjs()} onChange={handleTimeChange} />
123
1133
 
124
- - <CalendarPicker date={dayjs()} onChange={handleDateChange} />
125
- + <CalendarPicker value={dayjs()} onChange={handleDateChange} />
1134
+ -<CalendarPicker date={dayjs()} onChange={handleDateChange} />
1135
+ +<CalendarPicker value={dayjs()} onChange={handleDateChange} />
126
1136
  ```
127
1137
 
128
1138
  #### Changes
@@ -141,7 +1151,7 @@ You can find more information about the new api, including how to set those tran
141
1151
  - [pickers] Remove `valueStr` from the field state (#6142) @flaviendelangle
142
1152
  - [pickers] Remove remaining deprecated locale props (#6233) @flaviendelangle
143
1153
  - [pickers] Rename the `date` prop `value` on `MonthPicker` / `YearPicker`, `ClockPicker` and `CalendarPicker` (#6128) @flaviendelangle
144
- - [pickers] Rename the `onClose` prop of `PickersPopper` `onDismiss` to simplify typing (#6155) @flaviendelangle
1154
+ - [pickers] Rename the `onClose` prop of `PickersPopper` `onDismiss` to simplify typing (#6155) @flaviendelangle
145
1155
  - [pickers] Support the `sx` prop on all public component with a root HTML elements (#5944) @flaviendelangle
146
1156
  - [pickers] Unify `PickersMonth` and `PickersYear` behaviors (#6034) @flaviendelangle
147
1157
  - [pickers] Use `shouldDisableMonth` and `shouldDisableYear` for date validation (#6066) @flaviendelangle
@@ -178,7 +1188,284 @@ You can find more information about the new api, including how to set those tran
178
1188
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
179
1189
  - [website] Improve security header @oliviertassinari
180
1190
 
181
- ## v5.17.4
1191
+ ## 5.17.14
1192
+
1193
+ _Dec 1, 2022_
1194
+
1195
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
1196
+
1197
+ - 🌍 Improve Ukrainian (uk-UA) locale (#7035) @rettoua
1198
+ - 🐞 Bugfixes
1199
+
1200
+ ### `@mui/x-data-grid@v5.17.14` / `@mui/x-data-grid-pro@v5.17.14` / `@mui/x-data-grid-premium@v5.17.14`
1201
+
1202
+ #### Changes
1203
+
1204
+ - [DataGrid] Fix row selection when clicking blank cell (#7056) @yami03
1205
+ - [DataGridPremium] Update cache before hydrating columns (#7043) @m4theushw
1206
+ - [l10n] Improve Ukrainian (uk-UA) locale (#7035) @rettoua
1207
+
1208
+ ## 5.17.13
1209
+
1210
+ _Nov 24, 2022_
1211
+
1212
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
1213
+
1214
+ - 🚀 Fix support of the pickers to Shadow DOM (#6971) @flaviendelangle
1215
+ - 💅 Improve DataGrid theme augmentation (#6980) @iigrik
1216
+ - 🐞 Bugfixes
1217
+
1218
+ ### `@mui/x-data-grid@v5.17.13` / `@mui/x-data-grid-pro@v5.17.13` / `@mui/x-data-grid-premium@v5.17.13`
1219
+
1220
+ #### Changes
1221
+
1222
+ - [DataGrid] Fix `ErrorOverlay` not receiving defined input props (#6885) @banoth-ravinder
1223
+ - [DataGrid] Improve typing for `styleOverrides` (#6980) @iigrik
1224
+ - [DataGridPro] Fix lazy-loaded rows not working with `updateRows` API method (#6875) @cherniavskii
1225
+ - [l10n] Fix translation of `filterOperatorBefore` in Arabic (ar-SD) locale (#6917) @HassanGhazy
1226
+
1227
+ ### `@mui/x-date-pickers@v5.0.9` / `@mui/x-date-pickers-pro@v5.0.9`
1228
+
1229
+ #### Changes
1230
+
1231
+ - [pickers] Fix usage with Shadow DOM (#6971) @flaviendelangle
1232
+
1233
+ ### Docs
1234
+
1235
+ - [docs] Add new "Expired package version" error type (#6937) @oliviertassinari
1236
+ - [docs] Enforce values for installation options in Date / Time pickers Getting Started page (#6896) @01zulfi
1237
+ - [docs] Fix live edit @oliviertassinari
1238
+ - [docs] Upgrade to Next 13 (#6911) @cherniavskii
1239
+
1240
+ ### Core
1241
+
1242
+ - [core] Upgrade monorepo (#6906) @cherniavskii
1243
+ - [core] Upgrade node to v14.21 (#6939) @piwysocki
1244
+
1245
+ ## 5.17.12
1246
+
1247
+ _Nov 17, 2022_
1248
+
1249
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
1250
+
1251
+ - 🌍 Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
1252
+ - 🐞 Bugfixes
1253
+
1254
+ ### `@mui/x-data-grid@v5.17.12` / `@mui/x-data-grid-pro@v5.17.12` / `@mui/x-data-grid-premium@v5.17.12`
1255
+
1256
+ #### Changes
1257
+
1258
+ - [DataGrid] Fix conflict with the latest version of `@types/react` (#6883) @vizv
1259
+ - [DataGridPremium] Support aggregating data from multiple row fields (#6844) @cherniavskii
1260
+ - [DataGridPro] Fix detail panel not working with `getRowSpacing` prop (#6858) @cherniavskii
1261
+ - [l10n] Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
1262
+
1263
+ ### Docs
1264
+
1265
+ - [docs] Clarify DataGrid Row Pinning docs (#6891) @cherniavskii
1266
+
1267
+ ### Core
1268
+
1269
+ - [core] Upgrade monorepo (#6864) @m4theushw
1270
+ - [license] Polish error messages (#6881) @oliviertassinari
1271
+
1272
+ ## 5.17.11
1273
+
1274
+ _Nov 10, 2022_
1275
+
1276
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
1277
+
1278
+ - 🐞 Bugfixes
1279
+
1280
+ ### `@mui/x-data-grid@v5.17.11` / `@mui/x-data-grid-pro@v5.17.11` / `@mui/x-data-grid-premium@v5.17.11`
1281
+
1282
+ #### Changes
1283
+
1284
+ - [DataGrid] Fix for cell focus preventing scroll when virtualization enabled (#6622) @yaredtsy
1285
+ - [DataGridPro] Opt-out for column jump back on re-order (#6697) @gavbrennan
1286
+
1287
+ ### `@mui/x-date-pickers@v5.0.8` / `@mui/x-date-pickers-pro@v5.0.8`
1288
+
1289
+ #### Changes
1290
+
1291
+ - [pickers] Fix pickers toolbar styling (#6793) @LukasTy
1292
+
1293
+ ### Docs
1294
+
1295
+ - [docs] Fix link to localization page (#6766) @alexfauquette
1296
+
1297
+ ### Core
1298
+
1299
+ - [license] Add new license status 'Out of scope' (#6774) @oliviertassinari
1300
+
1301
+ ## 5.17.10
1302
+
1303
+ _Nov 4, 2022_
1304
+
1305
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1306
+
1307
+ - 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
1308
+
1309
+ ### `@mui/x-data-grid@v5.17.10` / `@mui/x-data-grid-pro@v5.17.10` / `@mui/x-data-grid-premium@v5.17.10`
1310
+
1311
+ #### Changes
1312
+
1313
+ - [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6688) @mattcorner
1314
+
1315
+ ### `@mui/x-date-pickers@v5.0.7` / `@mui/x-date-pickers-pro@v5.0.7`
1316
+
1317
+ #### Changes
1318
+
1319
+ - [DateRangePicker] Fix input focused style and mobile behaviour (#6645) (#6714) @LukasTy
1320
+ - [pickers] Add Ukrainian (uk-UA) locale on the date picker (#6661) @Dufran
1321
+
1322
+ ### Docs
1323
+
1324
+ - [docs] Mark data grid column group available (#6659) @alexfauquette
1325
+
1326
+ ## 5.17.9
1327
+
1328
+ _Oct 28, 2022_
1329
+
1330
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
1331
+
1332
+ - ⚡ Fix memory leak during unmount of the DataGrid (#6579) @cherniavskii
1333
+ - 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6630) @e-cloud
1334
+ - 🐞 Bugfixes
1335
+
1336
+ ### `@mui/x-data-grid@v5.17.9` / `@mui/x-data-grid-pro@v5.17.9` / `@mui/x-data-grid-premium@v5.17.9`
1337
+
1338
+ #### Changes
1339
+
1340
+ - [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6630) @e-cloud
1341
+ - [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6637) @cherniavskii
1342
+ - [DataGrid] Fix memory leak on grid unmount (#6579) @cherniavskii
1343
+ - [l10n] Improve Bulgarian (bg-BG) locale (#6635) @AtanasVA
1344
+
1345
+ ### `@mui/x-date-pickers@v5.0.6` / `@mui/x-date-pickers-pro@v5.0.6`
1346
+
1347
+ #### Changes
1348
+
1349
+ - [pickers] Ignore milliseconds in mask logic (#6618) @alexfauquette
1350
+ - [pickers] Update input when `inputFormat` is modified (#6617) @alexfauquette
1351
+
1352
+ ### Docs
1353
+
1354
+ - [docs] Add token to redirect feedbacks on slack (#6592) @alexfauquette
1355
+ - [docs] Disable translations (#6639) @cherniavskii
1356
+ - [docs] Fix code edit for when v6 will be stable (#6600) @oliviertassinari
1357
+ - [docs] Fix typo in DataGrid demo page (#6632) (#6634) @LukasTy
1358
+
1359
+ ### Core
1360
+
1361
+ - [core] Upgrade monorepo (#6570) @cherniavskii
1362
+
1363
+ ## 5.17.8
1364
+
1365
+ _Oct 20, 2022_
1366
+
1367
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
1368
+
1369
+ - 🐞 Bugfixes
1370
+ - 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6573) @ramazansancar
1371
+
1372
+ ### `@mui/x-data-grid@v5.17.8` / `@mui/x-data-grid-pro@v5.17.8` / `@mui/x-data-grid-premium@v5.17.8`
1373
+
1374
+ #### Changes
1375
+
1376
+ - [DataGrid] Add `searchPredicate` prop to `GridColumnsPanel` component (#6572) @cherniavskii
1377
+ - [DataGrid] Fix grid not updating state on `rowCount` prop change (#6474) @cherniavskii
1378
+ - [DataGridPro] Fix row order being reset after updating the row (#6544) @cherniavskii
1379
+ - [l10n] Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) (#6573) @ramazansancar
1380
+
1381
+ ### `@mui/x-date-pickers@v5.0.5` / `@mui/x-date-pickers-pro@v5.0.5`
1382
+
1383
+ #### Changes
1384
+
1385
+ - [CalendarPicker] Don't move to closest enabled date when `props.date` contains a disabled date (#6537) @flaviendelangle
1386
+ - [DateRangePicker] Fix calendar day outside of month layout shifting on hover (pick #6448) (#6538) @alexfauquette
1387
+ - [pickers] Fix typescript issues (#6510) @flaviendelangle
1388
+
1389
+ ### Docs
1390
+
1391
+ - [docs] Fix 301 link to the sx prop page @oliviertassinari
1392
+
1393
+ ## 5.17.7
1394
+
1395
+ _Oct 13, 2022_
1396
+
1397
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
1398
+
1399
+ - 🐞 Bugfixes
1400
+
1401
+ ### `@mui/x-data-grid@v5.17.7` / `@mui/x-data-grid-pro@v5.17.7` / `@mui/x-data-grid-premium@v5.17.7`
1402
+
1403
+ #### Changes
1404
+
1405
+ - [DataGrid] Fix error when using column grouping with all columns hidden (#6425) @alexfauquette
1406
+ - [DataGrid] Fix start edit mode with printable character in React 18 (#6478) @m4theushw
1407
+
1408
+ ## 5.17.6
1409
+
1410
+ _Oct 6, 2022_
1411
+
1412
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
1413
+
1414
+ - 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
1415
+ - 🎁 Improve support for theme augmentation in the DataGrid (#6406) @cherniavskii
1416
+ - 🐞 Bugfixes
1417
+
1418
+ ### `@mui/x-data-grid@v5.17.6` / `@mui/x-data-grid-pro@v5.17.6` / `@mui/x-data-grid-premium@v5.17.6`
1419
+
1420
+ #### Changes
1421
+
1422
+ - [DataGrid] Add missing `valueOptions` (#6400) @DanailH
1423
+ - [DataGrid] Don't start edit mode when pressing <kbd>Shift</kbd> + <kbd>Space</kbd> (#6380) @m4theushw
1424
+ - [DataGrid] Pass generics to the components in the theme augmentation (#6406) @cherniavskii
1425
+
1426
+ ### `@mui/x-date-pickers@v5.0.4` / `@mui/x-date-pickers-pro@v5.0.4`
1427
+
1428
+ #### Changes
1429
+
1430
+ - [l10n] Add Japanese (ja-JP) locale to pickers (#6365) (#6382) @sho918
1431
+ - [pickers] Prevent `CalendarPicker` getting focus when `autoFocus=false` (#6304) (#6362) @alexfauquette
1432
+ - [pickers] Fix git repository location @oliviertassinari
1433
+
1434
+ ### Docs
1435
+
1436
+ - [docs] Fix customized day rendering demo style (#6342) @Ambrish-git
1437
+
1438
+ ## 5.17.5
1439
+
1440
+ _Sep 29, 2022_
1441
+
1442
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
1443
+
1444
+ - 🎁 Add theme augmentation module to DataGridPremium (#6316) @cherniavskii
1445
+ - 👀 Fix blank space when changing page with dynamic row height (#6320) @m4theushw
1446
+ - 📚 Improve controlled editing demo to make easier to reuse it (#6306) @cherniavskii
1447
+ - 🐞 Bugfixes
1448
+
1449
+ ### `@mui/x-data-grid@v5.17.5` / `@mui/x-data-grid-pro@v5.17.5` / `@mui/x-data-grid-premium@v5.17.5`
1450
+
1451
+ #### Changes
1452
+
1453
+ - [DataGrid] Fix `GridPagination` props typing (#6295) @cherniavskii
1454
+ - [DataGrid] Fix `GridRow` not forwarding `ref` to the root element (#6303) @cherniavskii
1455
+ - [DataGrid] Fix `undefined` value being showed in filter button tooltip text (#6271) @cherniavskii
1456
+ - [DataGrid] Fix blank space when changing page with dynamic row height (#6320) @m4theushw
1457
+ - [DataGrid] Revert cell/row mode if `processRowUpdate` fails (#6319) @m4theushw
1458
+ - [DataGridPremium] Add missing `themeAugmentation` module (#6316) @cherniavskii
1459
+
1460
+ ### Docs
1461
+
1462
+ - [docs] Pass model change callbacks in controlled grid editing demos (#6306) @cherniavskii
1463
+
1464
+ ### Core
1465
+
1466
+ - [core] Reduce the amount of updated screenshots reported by Argos (#6310) @cherniavskii
1467
+
1468
+ ## 5.17.4
182
1469
 
183
1470
  _Sep 22, 2022_
184
1471
 
@@ -310,7 +1597,7 @@ We'd like to offer a big thanks to the 3 contributors who made this release poss
310
1597
 
311
1598
  _Sep 2, 2022_
312
1599
 
313
- 🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
1600
+ 🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
314
1601
 
315
1602
  If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/react-date-pickers/migration-lab/).
316
1603
 
@@ -1566,10 +2853,10 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
1566
2853
  | `filterableGridColumnsSelector` | `gridFilterableColumnDefinitionsSelector` |
1567
2854
 
1568
2855
  ```diff
1569
- -const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef)
1570
- +const all = gridColumnFieldsSelector(apiRef)
1571
- +const lookup = gridColumnLookupSelector(apiRef)
1572
- +const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef)
2856
+ -const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef);
2857
+ +const all = gridColumnFieldsSelector(apiRef);
2858
+ +const lookup = gridColumnLookupSelector(apiRef);
2859
+ +const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
1573
2860
 
1574
2861
  -const filterableFields = filterableGridColumnsIdsSelector(apiRef);
1575
2862
  +const lookup = gridFilterableColumnLookupSelector(apiRef);
@@ -2287,8 +3574,8 @@ _Nov 23, 2021_
2287
3574
 
2288
3575
  🎉 We are excited to introduce [MUI X v5.0.0](https://mui.com/blog/mui-x-v5/) 🎉!
2289
3576
 
2290
- If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/x/react-data-grid/migration-v4/).
2291
- This version is fully compatible with `@mui/material@5.X` and can be used with `@material-ui/core@4.x` with some [additional steps](https://mui.com/x/react-data-grid/migration-v4/#using-mui-x-v5-with-mui-core-v4).
3577
+ If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/x/migration/migration-data-grid-v4/).
3578
+ This version is fully compatible with `@mui/material@5.X` and can be used with `@material-ui/core@4.x` with some [additional steps](https://mui.com/x/migration/migration-data-grid-v4/#using-mui-x-v5-with-mui-core-v4).
2292
3579
 
2293
3580
  A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
2294
3581
 
@@ -2506,7 +3793,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
2506
3793
 
2507
3794
  ```diff
2508
3795
  -visibleSortedGridRowsAsArraySelector: (state: GridState) => [GridRowId, GridRowData][];
2509
- +gridVisibleSortedRowEntriesSelector: (state: GridState) => GridRowEntry[]
3796
+ +gridVisibleSortedRowEntriesSelector: (state: GridState) => GridRowEntry[];
2510
3797
  ```
2511
3798
 
2512
3799
  - [DataGridPro] The `filterGridItemsCounterSelector` selector was removed. (#2942) @flaviendelangle
@@ -2606,15 +3893,15 @@ A big thanks to the 5 contributors who made this release possible. Here are some
2606
3893
  To fully control the state, use the feature's model prop and change callback (e.g. `filterModel` and `onFilterModelChange`).
2607
3894
 
2608
3895
  ```diff
2609
- <DataGrid
3896
+ <DataGrid
2610
3897
  - state={{
2611
3898
  + initialState={{
2612
- preferencePanel: {
2613
- open: true,
2614
- openedPanelValue: GridPreferencePanelsValue.filters,
2615
- },
2616
- }}
2617
- />
3899
+ preferencePanel: {
3900
+ open: true,
3901
+ openedPanelValue: GridPreferencePanelsValue.filters,
3902
+ },
3903
+ }}
3904
+ />
2618
3905
  ```
2619
3906
 
2620
3907
  - [DataGridPro] Remove the `onViewportRowsChange` prop and the `viewportRowsChange` event (#2673) @m4theushw
@@ -2717,12 +4004,12 @@ A big thanks to the 7 contributors who made this release possible. Here are some
2717
4004
  For more information, check [this page](https://mui.com/x/react-data-grid/components/#row). Example:
2718
4005
 
2719
4006
  ```diff
2720
- -<DataGrid onRowOver={handleRowOver} />;
2721
- +<DataGrid
4007
+ <DataGrid
4008
+ - onRowOver={handleRowOver}
2722
4009
  + componentsProps={{
2723
4010
  + row: { onMouseOver: handleRowOver },
2724
4011
  + }}
2725
- +/>;
4012
+ />;
2726
4013
  ```
2727
4014
 
2728
4015
  The `data-rowindex` and `data-rowselected` attributes were removed from the cell element. Equivalent attributes can be found in the row element.
@@ -2754,33 +4041,33 @@ A big thanks to the 7 contributors who made this release possible. Here are some
2754
4041
  - [DataGrid] The CSS classes constants are not exported anymore. Use `gridClasses` instead. (#2788) @flaviendelangle
2755
4042
 
2756
4043
  ```diff
2757
- -const columnHeaderClass = GRID_COLUMN_HEADER_CSS_CLASS
2758
- +const columnHeaderClass = gridClasses.columnHeader
4044
+ -const columnHeaderClass = GRID_COLUMN_HEADER_CSS_CLASS;
4045
+ +const columnHeaderClass = gridClasses.columnHeader;
2759
4046
 
2760
- -const rowClass = GRID_ROW_CSS_CLASS
2761
- +const rowClass = gridClasses.row
4047
+ -const rowClass = GRID_ROW_CSS_CLASS;
4048
+ +const rowClass = gridClasses.row;
2762
4049
 
2763
- -const cellClass = GRID_CELL_CSS_CLASS
2764
- +const cellClass = gridClasses.cell
4050
+ -const cellClass = GRID_CELL_CSS_CLASS;
4051
+ +const cellClass = gridClasses.cell;
2765
4052
 
2766
- -const columnSeparatorClass = GRID_COLUMN_HEADER_SEPARATOR_RESIZABLE_CSS_CLASS
2767
- +const columnSeparatorClass = gridClasses['columnSeparator--resizable']
4053
+ -const columnSeparatorClass = GRID_COLUMN_HEADER_SEPARATOR_RESIZABLE_CSS_CLASS;
4054
+ +const columnSeparatorClass = gridClasses['columnSeparator--resizable'];
2768
4055
 
2769
- -const columnHeaderTitleClass = GRID_COLUMN_HEADER_TITLE_CSS_CLASS
2770
- +const columnHeaderTitleClass = gridClasses.columnHeaderTitle
4056
+ -const columnHeaderTitleClass = GRID_COLUMN_HEADER_TITLE_CSS_CLASS;
4057
+ +const columnHeaderTitleClass = gridClasses.columnHeaderTitle;
2771
4058
 
2772
- -const columnHeaderDropZoneClass = GRID_COLUMN_HEADER_DROP_ZONE_CSS_CLASS
2773
- +const columnHeaderDropZoneClass = gridClasses.columnHeaderDropZone
4059
+ -const columnHeaderDropZoneClass = GRID_COLUMN_HEADER_DROP_ZONE_CSS_CLASS;
4060
+ +const columnHeaderDropZoneClass = gridClasses.columnHeaderDropZone;
2774
4061
 
2775
- -const columnHeaderDraggingClass = GRID_COLUMN_HEADER_DRAGGING_CSS_CLASS
2776
- +const columnHeaderDraggingClass = gridClasses["columnHeader--dragging"]
4062
+ -const columnHeaderDraggingClass = GRID_COLUMN_HEADER_DRAGGING_CSS_CLASS;
4063
+ +const columnHeaderDraggingClass = gridClasses['columnHeader--dragging'];
2777
4064
  ```
2778
4065
 
2779
4066
  - [DataGrid] Rename `gridCheckboxSelectionColDef` to `GRID_CHECKBOX_SELECTION_COL_DEF` (#2793) @flaviendelangle
2780
4067
 
2781
4068
  ```diff
2782
- - gridCheckboxSelectionColDef
2783
- + GRID_CHECKBOX_SELECTION_COL_DEF
4069
+ -gridCheckboxSelectionColDef
4070
+ +GRID_CHECKBOX_SELECTION_COL_DEF
2784
4071
  ```
2785
4072
 
2786
4073
  - [DataGrid] The constants referring to the column types were removed (#2791) @flaviendelangle
@@ -2948,7 +4235,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
2948
4235
  -export type GridValueFormatterParams = Omit<GridRenderCellParams, 'formattedValue' | 'isEditable'>;
2949
4236
  +export interface GridValueFormatterParams {
2950
4237
  + /**
2951
- + * The column field of the cell that triggered the event
4238
+ + * The column field of the cell that triggered the event.
2952
4239
  + */
2953
4240
  + field: string;
2954
4241
  + /**
@@ -3034,7 +4321,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
3034
4321
 
3035
4322
  ```diff
3036
4323
  -const state = apiRef.current.getState();
3037
- +const state = apiRef.current.state
4324
+ +const state = apiRef.current.state;
3038
4325
  ```
3039
4326
 
3040
4327
  - [DataGridPro] The third argument in `apiRef.current.selectRow` is now inverted to keep consistency with other selection APIs. (#2523) @flaviendelangle
@@ -3328,16 +4615,15 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
3328
4615
  - The `width` property of the columns is no longer updated with the actual width of of the column. Use the new `computedWidth` property in the callbacks instead.
3329
4616
 
3330
4617
  ```diff
3331
- const columns: GridColDef = [
3332
- {
3333
- field: "name",
3334
- width: 100,
3335
- renderCell: ({ value, colDef }) => {
3336
- - console.log(colDef.width!)
3337
- + console.log(colDef.computedWidth)
3338
- return value
3339
- }
3340
- ]
4618
+ const columns: GridColDef = [{
4619
+ field: 'name',
4620
+ width: 100,
4621
+ renderCell: ({ value, colDef }) => {
4622
+ - console.log(colDef.width!);
4623
+ + console.log(colDef.computedWidth);
4624
+ return value;
4625
+ },
4626
+ }];
3341
4627
  ```
3342
4628
 
3343
4629
  #### Changes
@@ -3400,21 +4686,21 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
3400
4686
  - Change the controllable API signature:
3401
4687
 
3402
4688
  ```diff
3403
- // Signature
4689
+ // Signature
3404
4690
  -onPageChange?: (params: GridPageChangeParams) => void;
3405
4691
  +onPageChange?: (page: number) => void;
3406
4692
 
3407
- // Usage
4693
+ // Usage
3408
4694
  -<DataGrid onPageChange={(params: GridPageChangeParams) => setPage(params.page)} />
3409
4695
  +<DataGrid onPageChange={(page: number) => setPage(page)} />
3410
4696
  ```
3411
4697
 
3412
4698
  ```diff
3413
- // Signature
4699
+ // Signature
3414
4700
  -onPageSizeChange?: (params: GridPageChangeParams) => void;
3415
4701
  +onPageSizeChange?: (pageSize: number) => void;
3416
4702
 
3417
- // Usage
4703
+ // Usage
3418
4704
  -<DataGrid onPageSizeChange={(params: GridPageChangeParams) => setPageSize(params.pageSize)} />
3419
4705
  +<DataGrid onPageSizeChange={(pageSize: number) => setPageSize(pageSize)} />
3420
4706
  ```
@@ -3472,7 +4758,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
3472
4758
  Remove public `apiRef.current.isColumnVisibleInWindow()` as it servers private use cases.
3473
4759
 
3474
4760
  ```diff
3475
- -apiRef.current.isColumnVisibleInWindow()
4761
+ -apiRef.current.isColumnVisibleInWindow();
3476
4762
  ```
3477
4763
 
3478
4764
  - [DataGrid] Remove stateId argument from GridApi getState method (#2141) @flaviendelangle
@@ -3519,7 +4805,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
3519
4805
 
3520
4806
  ```diff
3521
4807
  +apiRef.current.setCellMode(1, 'name', 'edit');
3522
- apiRef.current.commitCellChange({ id: 1, field: 'name' });
4808
+ apiRef.current.commitCellChange({ id: 1, field: 'name' });
3523
4809
  ```
3524
4810
 
3525
4811
  - The `setCellValue` was removed from the API. Use `commitCellChange` or `updateRows` in place.
@@ -4310,31 +5596,33 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
4310
5596
 
4311
5597
  - Changes on `apiRef.current`.
4312
5598
 
4313
- ```diff
4314
- - getRowModels: () => GridRowModel[];
4315
- + getRowModels: () => Map<GridRowId, GridRowModel>;
4316
- - getVisibleRowModels: () => GridRowModel[];
4317
- + getVisibleRowModels: () => Map<GridRowId, GridRowModel>;
4318
- - getSelectedRows: () => GridRowModel[];
4319
- + getSelectedRows: () => Map<GridRowId, GridRowModel>;
4320
- ```
4321
-
4322
- - Changes on `GridFilterModelParams`.
4323
-
4324
- ```diff
4325
- export interface GridFilterModelParams {
4326
- /**
4327
- * The full set of rows.
4328
- */
4329
- - rows: GridRowModel[];
4330
- + rows: Map<GridRowId, GridRowModel>;
4331
- /**
4332
- * The set of currently visible rows.
4333
- */
4334
- - visibleRows: GridRowModel[];
4335
- + visibleRows: Map<GridRowId, GridRowModel>;
4336
- }
4337
- ```
5599
+ ```diff
5600
+ -getRowModels: () => GridRowModel[];
5601
+ +getRowModels: () => Map<GridRowId, GridRowModel>;
5602
+
5603
+ -getVisibleRowModels: () => GridRowModel[];
5604
+ +getVisibleRowModels: () => Map<GridRowId, GridRowModel>;
5605
+
5606
+ -getSelectedRows: () => GridRowModel[];
5607
+ +getSelectedRows: () => Map<GridRowId, GridRowModel>;
5608
+ ```
5609
+
5610
+ - Changes on `GridFilterModelParams`.
5611
+
5612
+ ```diff
5613
+ export interface GridFilterModelParams {
5614
+ /**
5615
+ * The full set of rows.
5616
+ */
5617
+ - rows: GridRowModel[];
5618
+ + rows: Map<GridRowId, GridRowModel>;
5619
+ /**
5620
+ * The set of currently visible rows.
5621
+ */
5622
+ - visibleRows: GridRowModel[];
5623
+ + visibleRows: Map<GridRowId, GridRowModel>;
5624
+ }
5625
+ ```
4338
5626
 
4339
5627
  - [DataGrid] Upgrade mininum supported version of React to 17.0.0 (#1410) @m4theushw
4340
5628
 
@@ -4552,11 +5840,12 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
4552
5840
  ```diff
4553
5841
  -columns[1] = { ...columns[1], sortDirection: 'asc' };
4554
5842
 
4555
- return (
4556
- <div>
5843
+ return (
5844
+ <div>
4557
5845
  - <DataGrid rows={rows} columns={columns} />
4558
5846
  + <DataGrid rows={rows} columns={columns} sortModel={[{ field: columns[1].field, sort: 'asc' }]} />
4559
- </div>
5847
+ </div>
5848
+ );
4560
5849
  ```
4561
5850
 
4562
5851
  - [DataGrid] Rename the `onSelectionChange` prop to `onSelectionModelChange` for consistency. (#986) @dtassone
@@ -4583,10 +5872,11 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
4583
5872
  -const [page, setPage] = React.useState(1);
4584
5873
  +const [page, setPage] = React.useState(0);
4585
5874
 
4586
- return (
4587
- <div className="grid-container">
4588
- <DataGrid rows={rows} columns={columns} page={page} />
4589
- </div>
5875
+ return (
5876
+ <div className="grid-container">
5877
+ <DataGrid rows={rows} columns={columns} page={page} />
5878
+ </div>
5879
+ );
4590
5880
  ```
4591
5881
 
4592
5882
  #### Changes
@@ -4687,25 +5977,25 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
4687
5977
  - Capitalize the keys of the `components` prop. This change aims to bring consistency with the customization pattern of Material UI v5:
4688
5978
 
4689
5979
  ```diff
4690
- <DataGrid
4691
- components={{
4692
- - noRowsOverlay: CustomNoRowsOverlay,
4693
- + NoRowOverlay: CustomNoRowsOverlay,
4694
- }}
4695
- />
5980
+ <DataGrid
5981
+ components={{
5982
+ - noRowsOverlay: CustomNoRowsOverlay,
5983
+ + NoRowOverlay: CustomNoRowsOverlay,
5984
+ }}
5985
+ />
4696
5986
  ```
4697
5987
 
4698
5988
  - Move all the icon components overrides in the `components` prop. And added the suffix 'Icon' on each icon component. This change aims to bring consistency with the customization pattern of Material UI v5:
4699
5989
 
4700
5990
  ```diff
4701
- <DataGrid
4702
- - icons: {{
4703
- - ColumnSortedAscending: SortedAscending,
4704
- - }},
4705
- + components={{
4706
- + ColumnSortedAscendingIcon: SortedAscending,
4707
- + }}
4708
- />
5991
+ <DataGrid
5992
+ - icons: {{
5993
+ - ColumnSortedAscending: SortedAscending,
5994
+ - }},
5995
+ + components={{
5996
+ + ColumnSortedAscendingIcon: SortedAscending,
5997
+ + }}
5998
+ />
4709
5999
  ```
4710
6000
 
4711
6001
  - Change the props provided to the component of the `components` prop. Expose the whole state instead of an arbitrary set of props:
@@ -4723,9 +6013,9 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
4723
6013
  + page={state.pagination.page}
4724
6014
  + count={state.pagination.pageCount}
4725
6015
 
4726
- // ...
6016
+ // ...
4727
6017
 
4728
- <DataGrid components={{ Pagination: CustomPagination }} />
6018
+ <DataGrid components={{ Pagination: CustomPagination }} />
4729
6019
  ```
4730
6020
 
4731
6021
  #### Changes