@mui/x-data-grid-premium 8.0.0-alpha.12 → 8.0.0-alpha.14

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 (117) hide show
  1. package/CHANGELOG.md +430 -0
  2. package/DataGridPremium/DataGridPremium.js +51 -39
  3. package/DataGridPremium/useDataGridPremiumProps.js +2 -2
  4. package/components/GridAggregationHeader.d.ts +1 -1
  5. package/components/GridAggregationHeader.js +7 -11
  6. package/components/GridColumnMenuAggregationItem.js +4 -4
  7. package/components/GridDataSourceGroupingCriteriaCell.js +5 -6
  8. package/components/GridFooterCell.js +5 -6
  9. package/components/GridGroupingColumnFooterCell.js +2 -1
  10. package/components/GridGroupingColumnLeafCell.js +3 -9
  11. package/components/GridGroupingCriteriaCell.js +3 -8
  12. package/components/GridPremiumToolbar.d.ts +3 -0
  13. package/components/GridPremiumToolbar.js +31 -0
  14. package/components/export/ExportExcel.d.ts +29 -0
  15. package/components/export/ExportExcel.js +198 -0
  16. package/components/export/index.d.ts +1 -0
  17. package/components/export/index.js +16 -0
  18. package/components/index.d.ts +2 -1
  19. package/components/index.js +13 -1
  20. package/components/promptControl/GridToolbarPromptControl.js +34 -32
  21. package/constants/dataGridPremiumDefaultSlotsComponents.js +3 -1
  22. package/esm/DataGridPremium/DataGridPremium.js +51 -39
  23. package/esm/DataGridPremium/useDataGridPremiumProps.js +2 -2
  24. package/esm/components/GridAggregationHeader.d.ts +1 -1
  25. package/esm/components/GridAggregationHeader.js +7 -11
  26. package/esm/components/GridColumnMenuAggregationItem.js +4 -4
  27. package/esm/components/GridDataSourceGroupingCriteriaCell.js +6 -7
  28. package/esm/components/GridFooterCell.js +5 -6
  29. package/esm/components/GridGroupingColumnFooterCell.js +2 -1
  30. package/esm/components/GridGroupingColumnLeafCell.js +3 -8
  31. package/esm/components/GridGroupingCriteriaCell.js +3 -8
  32. package/esm/components/GridPremiumToolbar.d.ts +3 -0
  33. package/esm/components/GridPremiumToolbar.js +23 -0
  34. package/esm/components/export/ExportExcel.d.ts +29 -0
  35. package/esm/components/export/ExportExcel.js +191 -0
  36. package/esm/components/export/index.d.ts +1 -0
  37. package/esm/components/export/index.js +1 -0
  38. package/esm/components/index.d.ts +2 -1
  39. package/esm/components/index.js +2 -1
  40. package/esm/components/promptControl/GridToolbarPromptControl.js +34 -32
  41. package/esm/constants/dataGridPremiumDefaultSlotsComponents.js +3 -1
  42. package/esm/hooks/features/aggregation/useGridAggregation.d.ts +1 -1
  43. package/esm/hooks/features/aggregation/useGridAggregation.js +6 -6
  44. package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +1 -1
  45. package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.js +6 -6
  46. package/esm/hooks/features/clipboard/useGridClipboardImport.js +3 -3
  47. package/esm/hooks/features/dataSource/models.d.ts +1 -1
  48. package/esm/hooks/features/dataSource/useGridDataSourcePremium.js +3 -3
  49. package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +2 -2
  50. package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +1 -1
  51. package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +3 -3
  52. package/esm/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
  53. package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +4 -4
  54. package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +1 -1
  55. package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -5
  56. package/esm/index.d.ts +0 -6
  57. package/esm/index.js +1 -7
  58. package/esm/models/dataGridPremiumProps.d.ts +7 -8
  59. package/esm/utils/releaseInfo.js +1 -1
  60. package/hooks/features/aggregation/useGridAggregation.d.ts +1 -1
  61. package/hooks/features/aggregation/useGridAggregation.js +6 -6
  62. package/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +1 -1
  63. package/hooks/features/aggregation/useGridAggregationPreProcessors.js +6 -6
  64. package/hooks/features/clipboard/useGridClipboardImport.js +2 -2
  65. package/hooks/features/dataSource/models.d.ts +1 -1
  66. package/hooks/features/dataSource/useGridDataSourcePremium.js +3 -3
  67. package/hooks/features/rowGrouping/gridRowGroupingUtils.js +1 -1
  68. package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +1 -1
  69. package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +3 -3
  70. package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
  71. package/hooks/features/rowGrouping/useGridRowGrouping.js +4 -4
  72. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +1 -1
  73. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -5
  74. package/index.d.ts +0 -6
  75. package/index.js +2 -11
  76. package/models/dataGridPremiumProps.d.ts +7 -8
  77. package/modern/DataGridPremium/DataGridPremium.js +51 -39
  78. package/modern/DataGridPremium/useDataGridPremiumProps.js +2 -2
  79. package/modern/components/GridAggregationHeader.d.ts +1 -1
  80. package/modern/components/GridAggregationHeader.js +7 -11
  81. package/modern/components/GridColumnMenuAggregationItem.js +4 -4
  82. package/modern/components/GridDataSourceGroupingCriteriaCell.js +6 -7
  83. package/modern/components/GridFooterCell.js +5 -6
  84. package/modern/components/GridGroupingColumnFooterCell.js +2 -1
  85. package/modern/components/GridGroupingColumnLeafCell.js +3 -8
  86. package/modern/components/GridGroupingCriteriaCell.js +3 -8
  87. package/modern/components/GridPremiumToolbar.d.ts +3 -0
  88. package/modern/components/GridPremiumToolbar.js +23 -0
  89. package/modern/components/export/ExportExcel.d.ts +29 -0
  90. package/modern/components/export/ExportExcel.js +191 -0
  91. package/modern/components/export/index.d.ts +1 -0
  92. package/modern/components/export/index.js +1 -0
  93. package/modern/components/index.d.ts +2 -1
  94. package/modern/components/index.js +2 -1
  95. package/modern/components/promptControl/GridToolbarPromptControl.js +34 -32
  96. package/modern/constants/dataGridPremiumDefaultSlotsComponents.js +3 -1
  97. package/modern/hooks/features/aggregation/useGridAggregation.d.ts +1 -1
  98. package/modern/hooks/features/aggregation/useGridAggregation.js +6 -6
  99. package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +1 -1
  100. package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.js +6 -6
  101. package/modern/hooks/features/clipboard/useGridClipboardImport.js +3 -3
  102. package/modern/hooks/features/dataSource/models.d.ts +1 -1
  103. package/modern/hooks/features/dataSource/useGridDataSourcePremium.js +3 -3
  104. package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +2 -2
  105. package/modern/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +1 -1
  106. package/modern/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +3 -3
  107. package/modern/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
  108. package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +4 -4
  109. package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +1 -1
  110. package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -5
  111. package/modern/index.d.ts +0 -6
  112. package/modern/index.js +1 -7
  113. package/modern/models/dataGridPremiumProps.d.ts +7 -8
  114. package/modern/utils/releaseInfo.js +1 -1
  115. package/package.json +5 -5
  116. package/tsconfig.build.tsbuildinfo +1 -1
  117. package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,436 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.0.0-alpha.14
9
+
10
+ _Mar 7, 2025_
11
+
12
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🚀📊 New Pro Chart: It is now possible to create Funnel charts—perfect for visualizing conversions, sales pipelines and more!
15
+ <img width="418" alt="Screenshot 2025-01-31 at 12 22 31" src="https://github.com/user-attachments/assets/8cd26821-5f11-46bf-a9bb-34d212880a47" />
16
+ - 🎁 The first iteration of the radar chart is available. Features and refinements will be added in the coming weeks.
17
+ - 🛠️ New and improved [Toolbar component](https://next.mui.com/x/react-data-grid/components/toolbar/) for the data grid
18
+ - 🐞 Bugfixes
19
+
20
+ Special thanks go out to the community member for their valuable contributions:
21
+ @vadimka123.
22
+
23
+ Following are all team members who have contributed to this release:
24
+ @alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @noraleonte, @oliviertassinari.
25
+
26
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
27
+
28
+ ### Data Grid
29
+
30
+ #### Breaking changes
31
+
32
+ - The density selector has been removed from the toolbar. It is still possible to set the density programmatically via the `density` prop. A density selector can be added to a custom toolbar passed to `slots.toolbar`. See [Toolbar component—Settings menu](https://next.mui.com/x/react-data-grid/components/toolbar/#settings-menu) for an example.
33
+ - The quick filter is now shown in the toolbar by default. Use `slotProps={{ toolbar: { showQuickFilter: false } }}` to hide it.
34
+ - The `<GridSaveAltIcon />` icon is not exported anymore. Import `SaveAlt` from `@mui/icons-material` instead.
35
+
36
+ #### `@mui/x-data-grid@8.0.0-alpha.14`
37
+
38
+ - [DataGrid] Fix `aria-hidden` console error when scrollbar is dragged (#16829) @arminmeh
39
+ - [DataGrid] Fix scroll jump with dynamic row height (#16763) @cherniavskii
40
+ - [DataGrid] New `<Toolbar />` component (#14611) @KenanYusuf
41
+ - [DataGrid] Use new toolbar by default (#16814) @KenanYusuf
42
+ - [DataGrid] Remove the quick filtering on a given column (#16738) @vadimka123
43
+
44
+ #### `@mui/x-data-grid-pro@8.0.0-alpha.14` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
45
+
46
+ Same changes as in `@mui/x-data-grid@8.0.0-alpha.14`.
47
+
48
+ #### `@mui/x-data-grid-premium@8.0.0-alpha.14` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
49
+
50
+ Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.14`.
51
+
52
+ ### Date and Time Pickers
53
+
54
+ #### Breaking changes
55
+
56
+ - All Date Time Picker variants now use Digital Clock for time editing.
57
+ - Stop passing invalid date to `onChange` when the date is partially filled — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#treat-partially-filled-date-as-null-in-onchange).
58
+
59
+ #### `@mui/x-date-pickers@8.0.0-alpha.14`
60
+
61
+ - [DateTimePicker] Use Digital Clock in all component variants (#16678) @LukasTy
62
+ - [fields] Always use `props.value` as the source of truth when defined (#15875) @flaviendelangle
63
+ - [fields] Fix Fields aria relationship with `helperText` (#16821) @LukasTy
64
+ - [pickers] Add `TValidationProps` generic to the `PickerManager` interface (#16832) @flaviendelangle
65
+ - [pickers] Fix `edge` property setting in different button position cases (#16838) @LukasTy
66
+ - [pickers] Fix typo in JSDoc (#16831) @flaviendelangle
67
+ - [pickers] Refactor the files in the `usePicker` folder (#16680) @flaviendelangle
68
+
69
+ #### `@mui/x-date-pickers-pro@8.0.0-alpha.14` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
70
+
71
+ Same changes as in `@mui/x-date-pickers@8.0.0-alpha.14`.
72
+
73
+ ### Charts
74
+
75
+ #### `@mui/x-charts@8.0.0-alpha.14`
76
+
77
+ - [charts] Fix `undefined` behaving differently from missing value for axis size (#16844) @bernardobelchior
78
+ - [charts] Fix x-axis text anchor default when language is RTL (#16836) @bernardobelchior
79
+ - [charts] Add Radar chart (#16406) @alexfauquette
80
+ - [charts] Move series default color generation in the series config (#16752) @alexfauquette
81
+ - [charts] Render axis title within axis size (#16730) @bernardobelchior
82
+ - [charts] Split `defaultizeAxis` function into two (#16745) @bernardobelchior
83
+ - [charts] Warn if axes data don't have enough elements (#16830) @alexfauquette
84
+ - [charts] XAxis: Add defaults for `textAnchor` and `dominantBaseline` based on `angle` (#16817) @bernardobelchior
85
+
86
+ #### `@mui/x-charts-pro@8.0.0-alpha.14` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
87
+
88
+ Same changes as in `@mui/x-charts@8.0.0-alpha.14`, plus:
89
+
90
+ - [charts] Add Funnel chart (#14804) @JCQuintas
91
+
92
+ ### Tree View
93
+
94
+ #### Breaking changes
95
+
96
+ - The `selectItem` method has been renamed `setItemSelection`:
97
+
98
+ ```diff
99
+ const { publicAPI } = useTreeItemUtils();
100
+
101
+ const handleSelectItem() {
102
+ - publicAPI.selectItem({ event, itemId: props.itemId, shouldBeSelected: true })
103
+ + publicAPI.setItemSelection({ event, itemId: props.itemId, shouldBeSelected: true })
104
+ }
105
+ ```
106
+
107
+ - The `setItemExpansion` method now receives a single object instead of a list of parameters:
108
+
109
+ ```diff
110
+ const { publicAPI } = useTreeItemUtils();
111
+
112
+ const handleExpandItem() {
113
+ - publicAPI.setItemExpansion(event, props.itemId, true)
114
+ + publicAPI.setItemExpansion({ event, itemId: props.itemId, shouldBeExpanded: true })
115
+ }
116
+ ```
117
+
118
+ #### `@mui/x-tree-view@8.0.0-alpha.14`
119
+
120
+ - [TreeView] Clean the expansion and selection API methods (#16795) @flaviendelangle
121
+
122
+ #### `@mui/x-tree-view-pro@8.0.0-alpha.14` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
123
+
124
+ Same changes as in `@mui/x-tree-view@8.0.0-alpha.14`.
125
+
126
+ ### Docs
127
+
128
+ - [docs] Fix padding package install on mobile (#16794) @oliviertassinari
129
+ - [docs] Typo fixes (#16835) @alexfauquette
130
+
131
+ ### Core
132
+
133
+ - [code-infra] Fix console warning in telemetry package (#16816) @JCQuintas
134
+ - [code-infra] Split date-picker test files (#16825) @JCQuintas
135
+ - [infra] Replace PR label check workflow with reusable version (#16762) @michelengelen
136
+ - [infra] Update label in priority-support issue template (#16767) @michelengelen
137
+ - [test] Add timeout to flaky screenshot tests (#16852) @LukasTy
138
+
139
+ ## 8.0.0-alpha.13
140
+
141
+ _Feb 28, 2025_
142
+
143
+ We'd like to offer a big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
144
+
145
+ - 📊 Decouple `margin` and `axis-size`. A new API to support multiple axes (#16418) @JCQuintas
146
+ - 🗺️ Added Bangla (bn-BD) locale
147
+ - 🗺️ Improve Russian (ru-RU) and Hungarian (hu-HU) locale on the Data Grid
148
+
149
+ Special thanks go out to the community members for their contributions:
150
+ @denpiligrim, @lhilgert9, @noherczeg, @officialkidmax, @pcorpet.
151
+ Following are all team members who have contributed to this release:
152
+ @alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @MBilalShafi, @oliviertassinari, @romgrk.
153
+
154
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
155
+
156
+ ### Data Grid
157
+
158
+ #### Breaking changes
159
+
160
+ - The `slots.baseFormControl` component was removed.
161
+
162
+ - The "Reset" button in the column visibility panel now resets to the initial column visibility model. Previously it was reset to the model that was active at the time the panel was opened. The reset behavior follows these rules:
163
+
164
+ 1. If an initial `columnVisibilityModel` is provided, it resets to that model.
165
+ 2. If a controlled `columnVisibilityModel` is provided, it resets to the first model value.
166
+ 3. When the columns are updated (via the `columns` prop or `updateColumns()` API method), the reset reference point updates to the current `columnVisibilityModel`.
167
+
168
+ To revert to the previous behavior, provide a custom component to the `slots.columnsManagement`.
169
+
170
+ - The deprecated `LicenseInfo` export has been removed from the `@mui/x-data-grid-pro` and `@mui/x-data-grid-premium` packages.
171
+ You have to import it from `@mui/x-license` instead:
172
+
173
+ ```diff
174
+ - import { LicenseInfo } from '@mui/x-data-grid-pro';
175
+ - import { LicenseInfo } from '@mui/x-data-grid-premium';
176
+ + import { LicenseInfo } from '@mui/x-license';
177
+
178
+ LicenseInfo.setLicenseKey('YOUR_LICENSE_KEY');
179
+ ```
180
+
181
+ - The row selection model has been changed from `GridRowId[]` to `{ type: 'include' | 'exclude'; ids: Set<GridRowId> }`.
182
+ Using `Set` allows for a more efficient row selection management.
183
+ The `exclude` selection type allows to select all rows except the ones in the `ids` set.
184
+
185
+ This change impacts the following props:
186
+
187
+ - `rowSelectionModel`
188
+ - `onRowSelectionModelChange`
189
+ - `initialState.rowSelectionModel`
190
+
191
+ ```diff
192
+ - const [rowSelectionModel, setRowSelectionModel] = React.useState<GridRowSelectionModel>([]);
193
+ + const [rowSelectionModel, setRowSelectionModel] = React.useState<GridRowSelectionModel>({ type: 'include', ids: new Set() });
194
+ ```
195
+
196
+ This change also impacts the `gridRowSelectionStateSelector` selector.
197
+ For convenience, use the `gridRowSelectionManagerSelector` selector to handle both selection types:
198
+
199
+ ```diff
200
+ - const rowSelection = gridRowSelectionStateSelector(apiRef);
201
+ - const isRowSelected = rowSelection.includes(rowId);
202
+ + const rowSelectionManager = gridRowSelectionManagerSelector(apiRef);
203
+ + const isRowSelected = rowSelectionManager.has(rowId);
204
+ ```
205
+
206
+ There is also a `createRowSelectionManager` utility function that can be used to manage the row selection:
207
+
208
+ ```ts
209
+ const rowSelectionManager = createRowSelectionManager({
210
+ type: 'include',
211
+ ids: new Set(),
212
+ });
213
+ rowSelectionManager.select(rowId);
214
+ rowSelectionManager.unselect(rowId);
215
+ rowSelectionManager.has(rowId);
216
+ ```
217
+
218
+ - The `selectedIdsLookupSelector` selector has been removed. Use the `gridRowSelectionManagerSelector` or `gridRowSelectionStateSelector` selectors instead.
219
+ - The `selectedGridRowsSelector` has been renamed to `gridRowSelectionIdsSelector`.
220
+ - The `selectedGridRowsCountSelector` has been renamed to `gridRowSelectionCountSelector`.
221
+
222
+ - The data source feature and its related props are now stable.
223
+
224
+ ```diff
225
+ <DataGridPro
226
+ - unstable_dataSource={dataSource}
227
+ - unstable_dataSourceCache={cache}
228
+ - unstable_lazyLoading
229
+ - unstable_lazyLoadingRequestThrottleMs={100}
230
+ + dataSource={dataSource}
231
+ + dataSourceCache={cache}
232
+ + lazyLoading
233
+ + lazyLoadingRequestThrottleMs={100}
234
+ />
235
+ ```
236
+
237
+ - The data source API is now stable.
238
+
239
+ ```diff
240
+ - apiRef.current.unstable_dataSource.getRows()
241
+ + apiRef.current.dataSource.getRows()
242
+ ```
243
+
244
+ - The signature of `unstable_onDataSourceError()` has been updated to support future use-cases.
245
+
246
+ ```diff
247
+ <DataGrid
248
+ - unstable_onDataSourceError={(error: Error, params: GridGetRowsParams) => {
249
+ - if (params.filterModel) {
250
+ - // do something
251
+ - }
252
+ - }}
253
+ + unstable_onDataSourceError={(error: GridGetRowsError | GridUpdateRowError) => {
254
+ + if (error instanceof GridGetRowsError && error.params.filterModel) {
255
+ + // do something
256
+ + }
257
+ + }}
258
+ />
259
+ ```
260
+
261
+ - Fix the type of the `GridSortModel` to allow readonly arrays.
262
+
263
+ - `GridSortItem` interface is not exported anymore.
264
+
265
+ - The `showToolbar` prop is now required to display the toolbar.
266
+
267
+ It is no longer necessary to pass `GridToolbar` as a slot to display the default toolbar.
268
+
269
+ ```diff
270
+ <DataGrid
271
+ + showToolbar
272
+ - slots={{
273
+ - toolbar: GridToolbar,
274
+ - }}
275
+ />
276
+ ```
277
+
278
+ #### `@mui/x-data-grid@8.0.0-alpha.13`
279
+
280
+ - [DataGrid] Add `showToolbar` prop to enable default toolbar (#16687) @KenanYusuf
281
+ - [DataGrid] Column Visibility: Update "Reset" button behavior (#16626) @MBilalShafi
282
+ - [DataGrid] Column management design updates (#16630) @KenanYusuf
283
+ - [DataGrid] Fix `showColumnVerticalBorder` prop (#16715) @KenanYusuf
284
+ - [DataGrid] Fix scrollbar overlapping cells on mount (#16639) @KenanYusuf
285
+ - [DataGrid] Fix: base `Select` menuprops `onClose()` (#16643) @romgrk
286
+ - [DataGrid] Make `GridSortItem` internal (#16732) @arminmeh
287
+ - [DataGrid] Make data source stable (#16710) @MBilalShafi
288
+ - [DataGrid] Reshape row selection model (#15651) @cherniavskii
289
+ - [DataGrid] Replace `sx` prop usage with `styled()` components (#16665) @KenanYusuf
290
+ - [DataGrid] Refactor: create base `Autocomplete` (#16390) @romgrk
291
+ - [DataGrid] Refactor: remove base form control (#16634) @romgrk
292
+ - [DataGrid] Refactor: remove base input label & adornment (#16646) @romgrk
293
+ - [DataGrid] Refactor: remove material containers (#16633) @romgrk
294
+ - [DataGrid] Refactor: theme to CSS variables (#16588) @romgrk
295
+ - [DataGrid] Update the signature of the `onDataSourceError()` callback (#16718) @MBilalShafi
296
+ - [DataGrid] Use readonly array for the `GridSortModel` (#16627) @pcorpet
297
+ - [DataGrid] Fix the popper focus trap (#16736) @romgrk
298
+ - [l10n] Added Bangla (bn-BD) locale (#16648) @officialkidmax
299
+ - [l10n] Improve Hungarian (hu-HU) locale (#16578) @noherczeg
300
+ - [l10n] Improve Russian (ru-RU) locale (#16591) @denpiligrim
301
+
302
+ #### `@mui/x-data-grid-pro@8.0.0-alpha.13` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
303
+
304
+ Same changes as in `@mui/x-data-grid@8.0.0-alpha.13`, plus:
305
+
306
+ - [DataGridPro] Remove `LicenseInfo` reexports (#16671) @cherniavskii
307
+
308
+ #### `@mui/x-data-grid-premium@8.0.0-alpha.13` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
309
+
310
+ Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.13`, plus:
311
+
312
+ - [DataGridPremium] Use `valueGetter` to get row group keys (#16016) @cherniavskii
313
+
314
+ ### Date and Time Pickers
315
+
316
+ #### Breaking changes
317
+
318
+ - The `<DateRangePicker />` now uses a `dialog` instead of a `tooltip` to render their view when used with a single input range field.
319
+
320
+ #### `@mui/x-date-pickers@8.0.0-alpha.13`
321
+
322
+ - [l10n] Added Bangla (bn-BD) locale (#16648) @officialkidmax
323
+ - [pickers] Clean the typing of the slots on the range pickers (#16670) @flaviendelangle
324
+ - [pickers] Fix Time Clock meridiem button selected styles (#16681) @LukasTy
325
+ - [pickers] Make the single input field the default field on range pickers (#16656) @flaviendelangle
326
+ - [pickers] Move the opening logic to the range fields (#16175) @flaviendelangle
327
+
328
+ #### `@mui/x-date-pickers-pro@8.0.0-alpha.13` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
329
+
330
+ Same changes as in `@mui/x-date-pickers@8.0.0-alpha.13`.
331
+
332
+ ### Charts
333
+
334
+ #### Breaking changes
335
+
336
+ - Charts array inputs are now `readonly`. Allowing externally defined `as const` to be used as a prop value of the React component.
337
+
338
+ ```tsx
339
+ const xAxis = [{ position: 'bottom' }] as const
340
+ <BarChart xAxis={xAxis} />
341
+ ```
342
+
343
+ - Replace `topAxis`, `rightAxis`, `bottomAxis` and `leftAxis` props by the `position` property in the axis config.
344
+ If you were using them to place axis, set the `position` property to the corresponding value `'top' | 'right' | 'bottom' | 'left'`.
345
+ If you were disabling an axis by setting it to `null`, set its `position` to `'none'`.
346
+
347
+ ```diff
348
+ <LineChart
349
+ yAxis={[
350
+ {
351
+ scaleType: 'linear',
352
+ + position: 'right',
353
+ },
354
+ ]}
355
+ series={[{ data: [1, 10, 30, 50, 70, 90, 100], label: 'linear' }]}
356
+ height={400}
357
+ - rightAxis={{}}
358
+ />
359
+ ```
360
+
361
+ - Remove `position` prop from `ChartsXAxis` and `ChartsYAxis`.
362
+ The `position` prop has been removed from the `ChartsXAxis` and `ChartsYAxis` components. Configure it directly in the axis config.
363
+
364
+ ```diff
365
+ <ChartContainer
366
+ yAxis={[
367
+ {
368
+ id: 'my-axis',
369
+ + position: 'right',
370
+ },
371
+ ]}
372
+ >
373
+ - <ChartsYAxis axisId="my-axis" position="right" />
374
+ + <ChartsYAxis axisId="my-axis" />
375
+ </ChartContainer>
376
+ ```
377
+
378
+ - Add `minTickLabelGap` to x-axis, which allows users to define the minimum gap, in pixels, between two tick labels. The default value is 4px. Make sure to check your charts as the spacing between tick labels might have changed.
379
+
380
+ #### `@mui/x-charts@8.0.0-alpha.13`
381
+
382
+ - [charts] Accept component in `labelMarkType` (#16739) @bernardobelchior
383
+ - [charts] Add `minTickLabelGap` to x-axis (#16548) @bernardobelchior
384
+ - [charts] Add unit test for pie chart with empty series (#16663) @bernardobelchior
385
+ - [charts] Decouple `margin` and `axis-size` (#16418) @JCQuintas
386
+ - [charts] Display slider tooltip on demos (#16723) @JCQuintas
387
+ - [charts] Fix composition docs link (#16761) @bernardobelchior
388
+ - [charts] Fix default label measurement being off (#16635) @bernardobelchior
389
+ - [charts] Fix is highlighted memoization (#16592) @alexfauquette
390
+ - [charts] Fix missing `theme.shape` error in the tooltip (#16748) @alexfauquette
391
+ - [charts] Fix typo in error message (#16641) @JCQuintas
392
+ - [charts] Improve axis size docs (#16673) @JCQuintas
393
+ - [charts] Improve performance of rendering ticks in x-axis (#16536) @bernardobelchior
394
+ - [charts] Make `defaultizeAxis` function type-safe (#16642) @JCQuintas
395
+ - [charts] Make `series.data` readonly (#16645) @JCQuintas
396
+ - [charts] Migrate `ChartsUsageDemo` to TSX and removed NoSnap (#16686) @JCQuintas
397
+ - [charts] Prevent `position='none'` axes from rendering (#16727) @JCQuintas
398
+ - [charts] Make array inputs readonly (#16632) @JCQuintas
399
+ - [charts] Remove state initialization hack (#16520) @alexfauquette
400
+ - [charts] Remove redundant default axis (#16734) @bernardobelchior
401
+
402
+ #### `@mui/x-charts-pro@8.0.0-alpha.13` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
403
+
404
+ Same changes as in `@mui/x-charts@8.0.0-alpha.13`, plus:
405
+
406
+ - [charts-pro] Add back zoom control (#16550) @alexfauquette
407
+
408
+ ### Tree View
409
+
410
+ #### `@mui/x-tree-view@8.0.0-alpha.13`
411
+
412
+ Internal changes.
413
+
414
+ #### `@mui/x-tree-view-pro@8.0.0-alpha.13` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
415
+
416
+ Same changes as in `@mui/x-tree-view@8.0.0-alpha.13`.
417
+
418
+ ### `@mui/x-codemod@8.0.0-alpha.13`
419
+
420
+ - [codemod] Add a few Data Grid codemods (#16711) @MBilalShafi
421
+ - [codemod] Improve Pickers renaming codemod (#16685) @LukasTy
422
+
423
+ ### Docs
424
+
425
+ - [docs] Fix charts with on bar and line pages (#16712) @alexfauquette
426
+ - [docs] Fix migration guide introduction for charts (#16679) @alexfauquette
427
+ - [docs] Fix remaining charts demos on mobile (#16728) @alexfauquette
428
+ - [docs] Fix scroll overflow on mobile (#16675) @oliviertassinari
429
+ - [docs] Improve Pickers migration page (#16682) @LukasTy
430
+ - [docs] Update small Pickers doc inconsistencies (#16724) @LukasTy
431
+ - [code-infra] Charts changes for `vitest` (#16755) @JCQuintas
432
+ - [code-infra] General packages changes for `vitest` (#16757) @JCQuintas
433
+ - [code-infra] Native Node.js ESM (#16603) @Janpot
434
+ - [infra] Update contributor acknowledgment wording (#16751) @michelengelen
435
+ - [test] Revert timeout increase for possibly slow tests (#16651) @LukasTy
436
+ - [x-license] Introduce usage telemetry (#13530) @hasdfa
437
+
8
438
  ## 8.0.0-alpha.12
9
439
 
10
440
  _Feb 17, 2025_
@@ -13,6 +13,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var _xLicense = require("@mui/x-license");
14
14
  var _xDataGridPro = require("@mui/x-data-grid-pro");
15
15
  var _internals = require("@mui/x-data-grid-pro/internals");
16
+ var _material = require("@mui/x-data-grid/material");
16
17
  var _forwardRef = require("@mui/x-internals/forwardRef");
17
18
  var _useDataGridPremiumComponent = require("./useDataGridPremiumComponent");
18
19
  var _useDataGridPremiumProps = require("./useDataGridPremiumProps");
@@ -22,6 +23,7 @@ var _useGridRowAriaAttributes = require("../hooks/features/rows/useGridRowAriaAt
22
23
  var _jsxRuntime = require("react/jsx-runtime");
23
24
  const configuration = {
24
25
  hooks: {
26
+ useCSSVariables: _material.useMaterialCSSVariables,
25
27
  useGridAriaAttributes: _useGridAriaAttributes.useGridAriaAttributes,
26
28
  useGridRowAriaAttributes: _useGridRowAriaAttributes.useGridRowAriaAttributes
27
29
  }
@@ -63,7 +65,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
63
65
  // ----------------------------------------------------------------------
64
66
  /**
65
67
  * Aggregation functions available on the grid.
66
- * @default GRID_AGGREGATION_FUNCTIONS when `unstable_dataSource` is not provided, `{}` when `unstable_dataSource` is provided
68
+ * @default GRID_AGGREGATION_FUNCTIONS when `dataSource` is not provided, `{}` when `dataSource` is provided
67
69
  */
68
70
  aggregationFunctions: _propTypes.default.object,
69
71
  /**
@@ -180,6 +182,24 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
180
182
  * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
181
183
  */
182
184
  columnVisibilityModel: _propTypes.default.object,
185
+ /**
186
+ * Data source object.
187
+ */
188
+ dataSource: _propTypes.default.shape({
189
+ getAggregatedValue: _propTypes.default.func,
190
+ getChildrenCount: _propTypes.default.func,
191
+ getGroupKey: _propTypes.default.func,
192
+ getRows: _propTypes.default.func.isRequired,
193
+ updateRow: _propTypes.default.func
194
+ }),
195
+ /**
196
+ * Data source cache object.
197
+ */
198
+ dataSourceCache: _propTypes.default.shape({
199
+ clear: _propTypes.default.func.isRequired,
200
+ get: _propTypes.default.func.isRequired,
201
+ set: _propTypes.default.func.isRequired
202
+ }),
183
203
  /**
184
204
  * If above 0, the row children will be expanded up to this depth.
185
205
  * If equal to -1, all the row children will be expanded.
@@ -494,6 +514,18 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
494
514
  * @default false
495
515
  */
496
516
  keepNonExistentRowsSelected: _propTypes.default.bool,
517
+ /**
518
+ * Used together with `dataSource` to enable lazy loading.
519
+ * If enabled, the grid stops adding `paginationModel` to the data requests (`getRows`)
520
+ * and starts sending `start` and `end` values depending on the loading mode and the scroll position.
521
+ * @default false
522
+ */
523
+ lazyLoading: _propTypes.default.bool,
524
+ /**
525
+ * If positive, the Data Grid will throttle data source requests on rendered rows interval change.
526
+ * @default 500
527
+ */
528
+ lazyLoadingRequestThrottleMs: _propTypes.default.number,
497
529
  /**
498
530
  * If `true`, a loading overlay is displayed.
499
531
  * @default false
@@ -670,6 +702,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
670
702
  * @param {GridCallbackDetails} details Additional details for this callback.
671
703
  */
672
704
  onColumnWidthChange: _propTypes.default.func,
705
+ /**
706
+ * Callback fired when a data source request fails.
707
+ * @param {GridGetRowsError | GridUpdateRowError} error The data source error object.
708
+ */
709
+ onDataSourceError: _propTypes.default.func,
673
710
  /**
674
711
  * Callback fired when the density changes.
675
712
  * @param {GridDensity} density New density value.
@@ -691,6 +728,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
691
728
  * @param {GridFetchRowsParams} params With all properties from [[GridFetchRowsParams]].
692
729
  * @param {MuiEvent<{}>} event The event object.
693
730
  * @param {GridCallbackDetails} details Additional details for this callback.
731
+ * @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#viewport-loading Server-side data-Viewport loading} instead.
694
732
  */
695
733
  onFetchRows: _propTypes.default.func,
696
734
  /**
@@ -818,6 +856,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
818
856
  * @param {GridRowScrollEndParams} params With all properties from [[GridRowScrollEndParams]].
819
857
  * @param {MuiEvent<{}>} event The event object.
820
858
  * @param {GridCallbackDetails} details Additional details for this callback.
859
+ * @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#infinite-loading Server-side data-Infinite loading} instead.
821
860
  */
822
861
  onRowsScrollEnd: _propTypes.default.func,
823
862
  /**
@@ -941,7 +980,10 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
941
980
  /**
942
981
  * Sets the row selection model of the Data Grid.
943
982
  */
944
- rowSelectionModel: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired), _propTypes.default.number, _propTypes.default.string]),
983
+ rowSelectionModel: _propTypes.default /* @typescript-to-proptypes-ignore */.shape({
984
+ ids: _propTypes.default.instanceOf(Set).isRequired,
985
+ type: _propTypes.default.oneOf(['exclude', 'include']).isRequired
986
+ }),
945
987
  /**
946
988
  * When `rowSelectionPropagation.descendants` is set to `true`.
947
989
  * - Selecting a parent selects all its filtered descendants automatically.
@@ -963,6 +1005,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
963
1005
  * Set it to 'client' if you would like enable infnite loading.
964
1006
  * Set it to 'server' if you would like to enable lazy loading.
965
1007
  * @default "client"
1008
+ * @deprecated Use the {@link https://next.mui.com/x/react-data-grid/server-side-data/lazy-loading/#viewport-loading Server-side data-Viewport loading} instead.
966
1009
  */
967
1010
  rowsLoadingMode: _propTypes.default.oneOf(['client', 'server']),
968
1011
  /**
@@ -981,7 +1024,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
981
1024
  scrollbarSize: _propTypes.default.number,
982
1025
  /**
983
1026
  * Set the area in `px` at the bottom of the grid viewport where onRowsScrollEnd is called.
984
- * If combined with `unstable_lazyLoading`, it defines the area where the next data request is triggered.
1027
+ * If combined with `lazyLoading`, it defines the area where the next data request is triggered.
985
1028
  * @default 80
986
1029
  */
987
1030
  scrollEndThreshold: _propTypes.default.number,
@@ -995,6 +1038,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
995
1038
  * @default false
996
1039
  */
997
1040
  showColumnVerticalBorder: _propTypes.default.bool,
1041
+ /**
1042
+ * If `true`, the toolbar is displayed.
1043
+ * @default false
1044
+ */
1045
+ showToolbar: _propTypes.default.bool,
998
1046
  /**
999
1047
  * Overridable components props dynamically passed to the component at rendering.
1000
1048
  */
@@ -1044,36 +1092,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
1044
1092
  * @default false
1045
1093
  */
1046
1094
  treeData: _propTypes.default.bool,
1047
- /**
1048
- * Data source object.
1049
- */
1050
- unstable_dataSource: _propTypes.default.shape({
1051
- getAggregatedValue: _propTypes.default.func,
1052
- getChildrenCount: _propTypes.default.func,
1053
- getGroupKey: _propTypes.default.func,
1054
- getRows: _propTypes.default.func.isRequired,
1055
- updateRow: _propTypes.default.func
1056
- }),
1057
- /**
1058
- * Data source cache object.
1059
- */
1060
- unstable_dataSourceCache: _propTypes.default.shape({
1061
- clear: _propTypes.default.func.isRequired,
1062
- get: _propTypes.default.func.isRequired,
1063
- set: _propTypes.default.func.isRequired
1064
- }),
1065
- /**
1066
- * Used together with `unstable_dataSource` to enable lazy loading.
1067
- * If enabled, the grid stops adding `paginationModel` to the data requests (`getRows`)
1068
- * and starts sending `start` and `end` values depending on the loading mode and the scroll position.
1069
- * @default false
1070
- */
1071
- unstable_lazyLoading: _propTypes.default.bool,
1072
- /**
1073
- * If positive, the Data Grid will throttle data source requests on rendered rows interval change.
1074
- * @default 500
1075
- */
1076
- unstable_lazyLoadingRequestThrottleMs: _propTypes.default.number,
1077
1095
  /**
1078
1096
  * Definition of the column rendered when the `unstable_listView` prop is enabled.
1079
1097
  */
@@ -1089,12 +1107,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
1089
1107
  * Use in combination with `unstable_listColumn`.
1090
1108
  */
1091
1109
  unstable_listView: _propTypes.default.bool,
1092
- /**
1093
- * Callback fired when the data source request fails.
1094
- * @param {Error} error The error object.
1095
- * @param {GridGetRowsParams} params With all properties from [[GridGetRowsParams]].
1096
- */
1097
- unstable_onDataSourceError: _propTypes.default.func,
1098
1110
  /**
1099
1111
  * If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
1100
1112
  * By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
@@ -15,7 +15,7 @@ var _aggregation = require("../hooks/features/aggregation");
15
15
  var _dataGridPremiumDefaultSlotsComponents = require("../constants/dataGridPremiumDefaultSlotsComponents");
16
16
  const getDataGridPremiumForcedProps = themedProps => (0, _extends2.default)({
17
17
  signature: _xDataGridPro.GridSignature.DataGridPremium
18
- }, themedProps.unstable_dataSource ? {
18
+ }, themedProps.dataSource ? {
19
19
  filterMode: 'server',
20
20
  sortingMode: 'server',
21
21
  paginationMode: 'server'
@@ -53,7 +53,7 @@ const useDataGridPremiumProps = inProps => {
53
53
  defaultSlots,
54
54
  slots: themedProps.slots
55
55
  }), [themedProps.slots]);
56
- return React.useMemo(() => (0, _extends2.default)({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps.unstable_dataSource ? {
56
+ return React.useMemo(() => (0, _extends2.default)({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps.dataSource ? {
57
57
  aggregationFunctions: {}
58
58
  } : {}, themedProps, {
59
59
  localeText,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { GridColumnHeaderParams } from '@mui/x-data-grid';
3
- import type { GridBaseColDef } from '@mui/x-data-grid/internals';
3
+ import { type GridBaseColDef } from '@mui/x-data-grid/internals';
4
4
  declare function GridAggregationHeader(props: GridColumnHeaderParams & {
5
5
  renderHeader: GridBaseColDef['renderHeader'];
6
6
  }): React.JSX.Element | null;
@@ -12,6 +12,7 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
13
13
  var _styles = require("@mui/material/styles");
14
14
  var _xDataGrid = require("@mui/x-data-grid");
15
+ var _internals = require("@mui/x-data-grid/internals");
15
16
  var _gridAggregationUtils = require("../hooks/features/aggregation/gridAggregationUtils");
16
17
  var _useGridApiContext = require("../hooks/utils/useGridApiContext");
17
18
  var _useGridRootProps = require("../hooks/utils/useGridRootProps");
@@ -38,17 +39,12 @@ const GridAggregationHeaderRoot = (0, _styles.styled)('div', {
38
39
  });
39
40
  const GridAggregationFunctionLabel = (0, _styles.styled)('div', {
40
41
  name: 'MuiDataGrid',
41
- slot: 'AggregationColumnHeaderLabel',
42
- overridesResolver: (_, styles) => styles.aggregationColumnHeaderLabel
43
- })(({
44
- theme
45
- }) => {
46
- return {
47
- fontSize: theme.typography.caption.fontSize,
48
- lineHeight: 'normal',
49
- color: theme.palette.text.secondary,
50
- marginTop: -1
51
- };
42
+ slot: 'AggregationColumnHeaderLabel'
43
+ })({
44
+ fontSize: _internals.vars.typography.small.fontSize,
45
+ lineHeight: 'normal',
46
+ color: _internals.vars.colors.foreground.muted,
47
+ marginTop: -1
52
48
  });
53
49
  const useUtilityClasses = ownerState => {
54
50
  const {