@mui/x-tree-view-pro 8.0.0-alpha.11 → 8.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +460 -1
- package/RichTreeViewPro/RichTreeViewPro.d.ts +4 -4
- package/RichTreeViewPro/RichTreeViewPro.js +81 -75
- package/RichTreeViewPro/RichTreeViewPro.plugins.d.ts +2 -3
- package/RichTreeViewPro/RichTreeViewPro.plugins.js +9 -3
- package/RichTreeViewPro/RichTreeViewPro.types.d.ts +38 -38
- package/RichTreeViewPro/RichTreeViewPro.types.js +5 -1
- package/RichTreeViewPro/index.d.ts +3 -3
- package/RichTreeViewPro/index.js +27 -3
- package/RichTreeViewPro/richTreeViewProClasses.d.ts +3 -3
- package/RichTreeViewPro/richTreeViewProClasses.js +13 -5
- package/esm/RichTreeViewPro/RichTreeViewPro.d.ts +20 -0
- package/{node → esm}/RichTreeViewPro/RichTreeViewPro.js +75 -81
- package/esm/RichTreeViewPro/RichTreeViewPro.plugins.d.ts +7 -0
- package/esm/RichTreeViewPro/RichTreeViewPro.plugins.js +5 -0
- package/esm/RichTreeViewPro/RichTreeViewPro.types.d.ts +51 -0
- package/esm/RichTreeViewPro/RichTreeViewPro.types.js +1 -0
- package/esm/RichTreeViewPro/index.d.ts +3 -0
- package/esm/RichTreeViewPro/index.js +3 -0
- package/esm/RichTreeViewPro/richTreeViewProClasses.d.ts +7 -0
- package/esm/RichTreeViewPro/richTreeViewProClasses.js +6 -0
- package/esm/index.d.ts +12 -0
- package/esm/index.js +22 -0
- package/esm/internals/index.d.ts +1 -0
- package/esm/internals/index.js +1 -0
- package/esm/internals/plugins/useTreeViewItemsReordering/index.d.ts +2 -0
- package/esm/internals/plugins/useTreeViewItemsReordering/index.js +1 -0
- package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.d.ts +3 -0
- package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.d.ts +3 -0
- package/{node → esm}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js +10 -19
- package/{node → esm}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +26 -35
- package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.d.ts +179 -0
- package/{node → esm}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.js +4 -11
- package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.d.ts +132 -0
- package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.js +1 -0
- package/esm/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.d.ts +37 -0
- package/{node → esm}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.js +21 -31
- package/esm/internals/utils/releaseInfo.d.ts +1 -0
- package/esm/internals/utils/releaseInfo.js +13 -0
- package/esm/internals/zero-styled/index.d.ts +3 -0
- package/esm/internals/zero-styled/index.js +7 -0
- package/esm/package.json +1 -0
- package/esm/themeAugmentation/components.d.ts +11 -0
- package/esm/themeAugmentation/index.d.ts +3 -0
- package/esm/themeAugmentation/index.js +0 -0
- package/esm/themeAugmentation/overrides.d.ts +12 -0
- package/esm/themeAugmentation/props.d.ts +10 -0
- package/index.d.ts +2 -2
- package/index.js +147 -15
- package/internals/index.d.ts +1 -1
- package/internals/index.js +12 -1
- package/internals/plugins/useTreeViewItemsReordering/index.d.ts +2 -2
- package/internals/plugins/useTreeViewItemsReordering/index.js +12 -1
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.d.ts +2 -2
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.d.ts +1 -1
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js +19 -10
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +35 -26
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.d.ts +134 -134
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.js +11 -4
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.d.ts +108 -114
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.js +5 -1
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.d.ts +28 -15
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.js +31 -21
- package/internals/utils/releaseInfo.d.ts +1 -1
- package/internals/utils/releaseInfo.js +13 -5
- package/internals/zero-styled/index.d.ts +1 -1
- package/internals/zero-styled/index.js +14 -4
- package/modern/RichTreeViewPro/RichTreeViewPro.d.ts +20 -0
- package/modern/RichTreeViewPro/RichTreeViewPro.plugins.d.ts +7 -0
- package/modern/RichTreeViewPro/RichTreeViewPro.types.d.ts +51 -0
- package/modern/RichTreeViewPro/index.d.ts +3 -0
- package/modern/RichTreeViewPro/richTreeViewProClasses.d.ts +7 -0
- package/modern/index.d.ts +12 -0
- package/modern/index.js +1 -1
- package/modern/internals/index.d.ts +1 -0
- package/modern/internals/plugins/useTreeViewItemsReordering/index.d.ts +2 -0
- package/modern/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.d.ts +3 -0
- package/modern/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.d.ts +3 -0
- package/modern/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.selectors.d.ts +179 -0
- package/modern/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.d.ts +132 -0
- package/modern/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.d.ts +37 -0
- package/modern/internals/utils/releaseInfo.d.ts +1 -0
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/internals/zero-styled/index.d.ts +3 -0
- package/modern/package.json +1 -0
- package/modern/themeAugmentation/components.d.ts +11 -0
- package/modern/themeAugmentation/index.d.ts +3 -0
- package/modern/themeAugmentation/overrides.d.ts +12 -0
- package/modern/themeAugmentation/props.d.ts +10 -0
- package/package.json +40 -10
- package/themeAugmentation/components.d.ts +1 -3
- package/themeAugmentation/index.d.ts +1 -1
- package/themeAugmentation/index.js +1 -0
- package/themeAugmentation/overrides.d.ts +2 -3
- package/themeAugmentation/props.d.ts +2 -4
- package/tsconfig.build.tsbuildinfo +1 -0
- package/RichTreeViewPro/package.json +0 -6
- package/internals/package.json +0 -6
- package/node/RichTreeViewPro/RichTreeViewPro.plugins.js +0 -11
- package/node/RichTreeViewPro/RichTreeViewPro.types.js +0 -5
- package/node/RichTreeViewPro/index.js +0 -27
- package/node/RichTreeViewPro/richTreeViewProClasses.js +0 -14
- package/node/index.js +0 -154
- package/node/internals/index.js +0 -12
- package/node/internals/plugins/useTreeViewItemsReordering/index.js +0 -12
- package/node/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.js +0 -5
- package/node/internals/utils/releaseInfo.js +0 -21
- package/node/internals/zero-styled/index.js +0 -17
- package/node/themeAugmentation/index.js +0 -1
- package/themeAugmentation/package.json +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,466 @@
|
|
|
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
|
+
## 8.0.0-alpha.13
|
|
9
|
+
|
|
10
|
+
_Feb 28, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📊 Decouple `margin` and `axis-size`. A new API to support multiple axes (#16418) @JCQuintas
|
|
15
|
+
- 🗺️ Added Bangla (bn-BD) locale
|
|
16
|
+
- 🗺️ Improve Russian (ru-RU) and Hungarian (hu-HU) locale on the Data Grid
|
|
17
|
+
|
|
18
|
+
Special thanks go out to the community members for their contributions:
|
|
19
|
+
@denpiligrim, @lhilgert9, @noherczeg, @officialkidmax, @pcorpet.
|
|
20
|
+
Following are all team members who have contributed to this release:
|
|
21
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @MBilalShafi, @oliviertassinari, @romgrk.
|
|
22
|
+
|
|
23
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- The `slots.baseFormControl` component was removed.
|
|
30
|
+
|
|
31
|
+
- 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:
|
|
32
|
+
|
|
33
|
+
1. If an initial `columnVisibilityModel` is provided, it resets to that model.
|
|
34
|
+
2. If a controlled `columnVisibilityModel` is provided, it resets to the first model value.
|
|
35
|
+
3. When the columns are updated (via the `columns` prop or `updateColumns()` API method), the reset reference point updates to the current `columnVisibilityModel`.
|
|
36
|
+
|
|
37
|
+
To revert to the previous behavior, provide a custom component to the `slots.columnsManagement`.
|
|
38
|
+
|
|
39
|
+
- The deprecated `LicenseInfo` export has been removed from the `@mui/x-data-grid-pro` and `@mui/x-data-grid-premium` packages.
|
|
40
|
+
You have to import it from `@mui/x-license` instead:
|
|
41
|
+
|
|
42
|
+
```diff
|
|
43
|
+
- import { LicenseInfo } from '@mui/x-data-grid-pro';
|
|
44
|
+
- import { LicenseInfo } from '@mui/x-data-grid-premium';
|
|
45
|
+
+ import { LicenseInfo } from '@mui/x-license';
|
|
46
|
+
|
|
47
|
+
LicenseInfo.setLicenseKey('YOUR_LICENSE_KEY');
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- The row selection model has been changed from `GridRowId[]` to `{ type: 'include' | 'exclude'; ids: Set<GridRowId> }`.
|
|
51
|
+
Using `Set` allows for a more efficient row selection management.
|
|
52
|
+
The `exclude` selection type allows to select all rows except the ones in the `ids` set.
|
|
53
|
+
|
|
54
|
+
This change impacts the following props:
|
|
55
|
+
|
|
56
|
+
- `rowSelectionModel`
|
|
57
|
+
- `onRowSelectionModelChange`
|
|
58
|
+
- `initialState.rowSelectionModel`
|
|
59
|
+
|
|
60
|
+
```diff
|
|
61
|
+
- const [rowSelectionModel, setRowSelectionModel] = React.useState<GridRowSelectionModel>([]);
|
|
62
|
+
+ const [rowSelectionModel, setRowSelectionModel] = React.useState<GridRowSelectionModel>({ type: 'include', ids: new Set() });
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
This change also impacts the `gridRowSelectionStateSelector` selector.
|
|
66
|
+
For convenience, use the `gridRowSelectionManagerSelector` selector to handle both selection types:
|
|
67
|
+
|
|
68
|
+
```diff
|
|
69
|
+
- const rowSelection = gridRowSelectionStateSelector(apiRef);
|
|
70
|
+
- const isRowSelected = rowSelection.includes(rowId);
|
|
71
|
+
+ const rowSelectionManager = gridRowSelectionManagerSelector(apiRef);
|
|
72
|
+
+ const isRowSelected = rowSelectionManager.has(rowId);
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
There is also a `createRowSelectionManager` utility function that can be used to manage the row selection:
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
const rowSelectionManager = createRowSelectionManager({
|
|
79
|
+
type: 'include',
|
|
80
|
+
ids: new Set(),
|
|
81
|
+
});
|
|
82
|
+
rowSelectionManager.select(rowId);
|
|
83
|
+
rowSelectionManager.unselect(rowId);
|
|
84
|
+
rowSelectionManager.has(rowId);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- The `selectedIdsLookupSelector` selector has been removed. Use the `gridRowSelectionManagerSelector` or `gridRowSelectionStateSelector` selectors instead.
|
|
88
|
+
- The `selectedGridRowsSelector` has been renamed to `gridRowSelectionIdsSelector`.
|
|
89
|
+
- The `selectedGridRowsCountSelector` has been renamed to `gridRowSelectionCountSelector`.
|
|
90
|
+
|
|
91
|
+
- The data source feature and its related props are now stable.
|
|
92
|
+
|
|
93
|
+
```diff
|
|
94
|
+
<DataGridPro
|
|
95
|
+
- unstable_dataSource={dataSource}
|
|
96
|
+
- unstable_dataSourceCache={cache}
|
|
97
|
+
- unstable_lazyLoading
|
|
98
|
+
- unstable_lazyLoadingRequestThrottleMs={100}
|
|
99
|
+
+ dataSource={dataSource}
|
|
100
|
+
+ dataSourceCache={cache}
|
|
101
|
+
+ lazyLoading
|
|
102
|
+
+ lazyLoadingRequestThrottleMs={100}
|
|
103
|
+
/>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
- The data source API is now stable.
|
|
107
|
+
|
|
108
|
+
```diff
|
|
109
|
+
- apiRef.current.unstable_dataSource.getRows()
|
|
110
|
+
+ apiRef.current.dataSource.getRows()
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
- The signature of `unstable_onDataSourceError()` has been updated to support future use-cases.
|
|
114
|
+
|
|
115
|
+
```diff
|
|
116
|
+
<DataGrid
|
|
117
|
+
- unstable_onDataSourceError={(error: Error, params: GridGetRowsParams) => {
|
|
118
|
+
- if (params.filterModel) {
|
|
119
|
+
- // do something
|
|
120
|
+
- }
|
|
121
|
+
- }}
|
|
122
|
+
+ unstable_onDataSourceError={(error: GridGetRowsError | GridUpdateRowError) => {
|
|
123
|
+
+ if (error instanceof GridGetRowsError && error.params.filterModel) {
|
|
124
|
+
+ // do something
|
|
125
|
+
+ }
|
|
126
|
+
+ }}
|
|
127
|
+
/>
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
- Fix the type of the `GridSortModel` to allow readonly arrays.
|
|
131
|
+
|
|
132
|
+
- `GridSortItem` interface is not exported anymore.
|
|
133
|
+
|
|
134
|
+
- The `showToolbar` prop is now required to display the toolbar.
|
|
135
|
+
|
|
136
|
+
It is no longer necessary to pass `GridToolbar` as a slot to display the default toolbar.
|
|
137
|
+
|
|
138
|
+
```diff
|
|
139
|
+
<DataGrid
|
|
140
|
+
+ showToolbar
|
|
141
|
+
- slots={{
|
|
142
|
+
- toolbar: GridToolbar,
|
|
143
|
+
- }}
|
|
144
|
+
/>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### `@mui/x-data-grid@8.0.0-alpha.13`
|
|
148
|
+
|
|
149
|
+
- [DataGrid] Add `showToolbar` prop to enable default toolbar (#16687) @KenanYusuf
|
|
150
|
+
- [DataGrid] Column Visibility: Update "Reset" button behavior (#16626) @MBilalShafi
|
|
151
|
+
- [DataGrid] Column management design updates (#16630) @KenanYusuf
|
|
152
|
+
- [DataGrid] Fix `showColumnVerticalBorder` prop (#16715) @KenanYusuf
|
|
153
|
+
- [DataGrid] Fix scrollbar overlapping cells on mount (#16639) @KenanYusuf
|
|
154
|
+
- [DataGrid] Fix: base `Select` menuprops `onClose()` (#16643) @romgrk
|
|
155
|
+
- [DataGrid] Make `GridSortItem` internal (#16732) @arminmeh
|
|
156
|
+
- [DataGrid] Make data source stable (#16710) @MBilalShafi
|
|
157
|
+
- [DataGrid] Reshape row selection model (#15651) @cherniavskii
|
|
158
|
+
- [DataGrid] Replace `sx` prop usage with `styled()` components (#16665) @KenanYusuf
|
|
159
|
+
- [DataGrid] Refactor: create base `Autocomplete` (#16390) @romgrk
|
|
160
|
+
- [DataGrid] Refactor: remove base form control (#16634) @romgrk
|
|
161
|
+
- [DataGrid] Refactor: remove base input label & adornment (#16646) @romgrk
|
|
162
|
+
- [DataGrid] Refactor: remove material containers (#16633) @romgrk
|
|
163
|
+
- [DataGrid] Refactor: theme to CSS variables (#16588) @romgrk
|
|
164
|
+
- [DataGrid] Update the signature of the `onDataSourceError()` callback (#16718) @MBilalShafi
|
|
165
|
+
- [DataGrid] Use readonly array for the `GridSortModel` (#16627) @pcorpet
|
|
166
|
+
- [DataGrid] Fix the popper focus trap (#16736) @romgrk
|
|
167
|
+
- [l10n] Added Bangla (bn-BD) locale (#16648) @officialkidmax
|
|
168
|
+
- [l10n] Improve Hungarian (hu-HU) locale (#16578) @noherczeg
|
|
169
|
+
- [l10n] Improve Russian (ru-RU) locale (#16591) @denpiligrim
|
|
170
|
+
|
|
171
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
172
|
+
|
|
173
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.13`, plus:
|
|
174
|
+
|
|
175
|
+
- [DataGridPro] Remove `LicenseInfo` reexports (#16671) @cherniavskii
|
|
176
|
+
|
|
177
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.13` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
178
|
+
|
|
179
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.13`, plus:
|
|
180
|
+
|
|
181
|
+
- [DataGridPremium] Use `valueGetter` to get row group keys (#16016) @cherniavskii
|
|
182
|
+
|
|
183
|
+
### Date and Time Pickers
|
|
184
|
+
|
|
185
|
+
#### Breaking changes
|
|
186
|
+
|
|
187
|
+
- The `<DateRangePicker />` now uses a `dialog` instead of a `tooltip` to render their view when used with a single input range field.
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.13`
|
|
190
|
+
|
|
191
|
+
- [l10n] Added Bangla (bn-BD) locale (#16648) @officialkidmax
|
|
192
|
+
- [pickers] Clean the typing of the slots on the range pickers (#16670) @flaviendelangle
|
|
193
|
+
- [pickers] Fix Time Clock meridiem button selected styles (#16681) @LukasTy
|
|
194
|
+
- [pickers] Make the single input field the default field on range pickers (#16656) @flaviendelangle
|
|
195
|
+
- [pickers] Move the opening logic to the range fields (#16175) @flaviendelangle
|
|
196
|
+
|
|
197
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
198
|
+
|
|
199
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.13`.
|
|
200
|
+
|
|
201
|
+
### Charts
|
|
202
|
+
|
|
203
|
+
#### Breaking changes
|
|
204
|
+
|
|
205
|
+
- Charts array inputs are now `readonly`. Allowing externally defined `as const` to be used as a prop value of the React component.
|
|
206
|
+
|
|
207
|
+
```tsx
|
|
208
|
+
const xAxis = [{ position: 'bottom' }] as const
|
|
209
|
+
<BarChart xAxis={xAxis} />
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
- Replace `topAxis`, `rightAxis`, `bottomAxis` and `leftAxis` props by the `position` property in the axis config.
|
|
213
|
+
If you were using them to place axis, set the `position` property to the corresponding value `'top' | 'right' | 'bottom' | 'left'`.
|
|
214
|
+
If you were disabling an axis by setting it to `null`, set its `position` to `'none'`.
|
|
215
|
+
|
|
216
|
+
```diff
|
|
217
|
+
<LineChart
|
|
218
|
+
yAxis={[
|
|
219
|
+
{
|
|
220
|
+
scaleType: 'linear',
|
|
221
|
+
+ position: 'right',
|
|
222
|
+
},
|
|
223
|
+
]}
|
|
224
|
+
series={[{ data: [1, 10, 30, 50, 70, 90, 100], label: 'linear' }]}
|
|
225
|
+
height={400}
|
|
226
|
+
- rightAxis={{}}
|
|
227
|
+
/>
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
- Remove `position` prop from `ChartsXAxis` and `ChartsYAxis`.
|
|
231
|
+
The `position` prop has been removed from the `ChartsXAxis` and `ChartsYAxis` components. Configure it directly in the axis config.
|
|
232
|
+
|
|
233
|
+
```diff
|
|
234
|
+
<ChartContainer
|
|
235
|
+
yAxis={[
|
|
236
|
+
{
|
|
237
|
+
id: 'my-axis',
|
|
238
|
+
+ position: 'right',
|
|
239
|
+
},
|
|
240
|
+
]}
|
|
241
|
+
>
|
|
242
|
+
- <ChartsYAxis axisId="my-axis" position="right" />
|
|
243
|
+
+ <ChartsYAxis axisId="my-axis" />
|
|
244
|
+
</ChartContainer>
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
- 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.
|
|
248
|
+
|
|
249
|
+
#### `@mui/x-charts@8.0.0-alpha.13`
|
|
250
|
+
|
|
251
|
+
- [charts] Accept component in `labelMarkType` (#16739) @bernardobelchior
|
|
252
|
+
- [charts] Add `minTickLabelGap` to x-axis (#16548) @bernardobelchior
|
|
253
|
+
- [charts] Add unit test for pie chart with empty series (#16663) @bernardobelchior
|
|
254
|
+
- [charts] Decouple `margin` and `axis-size` (#16418) @JCQuintas
|
|
255
|
+
- [charts] Display slider tooltip on demos (#16723) @JCQuintas
|
|
256
|
+
- [charts] Fix composition docs link (#16761) @bernardobelchior
|
|
257
|
+
- [charts] Fix default label measurement being off (#16635) @bernardobelchior
|
|
258
|
+
- [charts] Fix is highlighted memoization (#16592) @alexfauquette
|
|
259
|
+
- [charts] Fix missing `theme.shape` error in the tooltip (#16748) @alexfauquette
|
|
260
|
+
- [charts] Fix typo in error message (#16641) @JCQuintas
|
|
261
|
+
- [charts] Improve axis size docs (#16673) @JCQuintas
|
|
262
|
+
- [charts] Improve performance of rendering ticks in x-axis (#16536) @bernardobelchior
|
|
263
|
+
- [charts] Make `defaultizeAxis` function type-safe (#16642) @JCQuintas
|
|
264
|
+
- [charts] Make `series.data` readonly (#16645) @JCQuintas
|
|
265
|
+
- [charts] Migrate `ChartsUsageDemo` to TSX and removed NoSnap (#16686) @JCQuintas
|
|
266
|
+
- [charts] Prevent `position='none'` axes from rendering (#16727) @JCQuintas
|
|
267
|
+
- [charts] Make array inputs readonly (#16632) @JCQuintas
|
|
268
|
+
- [charts] Remove state initialization hack (#16520) @alexfauquette
|
|
269
|
+
- [charts] Remove redundant default axis (#16734) @bernardobelchior
|
|
270
|
+
|
|
271
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
272
|
+
|
|
273
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.13`, plus:
|
|
274
|
+
|
|
275
|
+
- [charts-pro] Add back zoom control (#16550) @alexfauquette
|
|
276
|
+
|
|
277
|
+
### Tree View
|
|
278
|
+
|
|
279
|
+
#### `@mui/x-tree-view@8.0.0-alpha.13`
|
|
280
|
+
|
|
281
|
+
Internal changes.
|
|
282
|
+
|
|
283
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
284
|
+
|
|
285
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.13`.
|
|
286
|
+
|
|
287
|
+
### `@mui/x-codemod@8.0.0-alpha.13`
|
|
288
|
+
|
|
289
|
+
- [codemod] Add a few Data Grid codemods (#16711) @MBilalShafi
|
|
290
|
+
- [codemod] Improve Pickers renaming codemod (#16685) @LukasTy
|
|
291
|
+
|
|
292
|
+
### Docs
|
|
293
|
+
|
|
294
|
+
- [docs] Fix charts with on bar and line pages (#16712) @alexfauquette
|
|
295
|
+
- [docs] Fix migration guide introduction for charts (#16679) @alexfauquette
|
|
296
|
+
- [docs] Fix remaining charts demos on mobile (#16728) @alexfauquette
|
|
297
|
+
- [docs] Fix scroll overflow on mobile (#16675) @oliviertassinari
|
|
298
|
+
- [docs] Improve Pickers migration page (#16682) @LukasTy
|
|
299
|
+
- [docs] Update small Pickers doc inconsistencies (#16724) @LukasTy
|
|
300
|
+
- [code-infra] Charts changes for `vitest` (#16755) @JCQuintas
|
|
301
|
+
- [code-infra] General packages changes for `vitest` (#16757) @JCQuintas
|
|
302
|
+
- [code-infra] Native Node.js ESM (#16603) @Janpot
|
|
303
|
+
- [infra] Update contributor acknowledgment wording (#16751) @michelengelen
|
|
304
|
+
- [test] Revert timeout increase for possibly slow tests (#16651) @LukasTy
|
|
305
|
+
- [x-license] Introduce usage telemetry (#13530) @hasdfa
|
|
306
|
+
|
|
307
|
+
## 8.0.0-alpha.12
|
|
308
|
+
|
|
309
|
+
_Feb 17, 2025_
|
|
310
|
+
|
|
311
|
+
We'd like to offer a big thanks to the 16 contributors who made this release possible. Here are some highlights ✨:
|
|
312
|
+
|
|
313
|
+
- 📦 Data Grid [data source](https://next.mui.com/x/react-data-grid/server-side-data/) is now available in the Community plan
|
|
314
|
+
- ⚡ Improve Data Grid Excel export serialization performance
|
|
315
|
+
- 🚫 Add ["No columns" overlay](https://next.mui.com/x/react-data-grid/overlays/#no-columns-overlay) to Data Grid
|
|
316
|
+
- 🌍 Improve Polish (pl-PL) and Ukrainian (uk-UA) locales on the Data Grid
|
|
317
|
+
- 🐞 Bugfixes
|
|
318
|
+
|
|
319
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
320
|
+
@Neonin, @nusr, and @pawelkula.
|
|
321
|
+
Following are all team members who have contributed to this release:
|
|
322
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @romgrk, and @mapache-salvaje.
|
|
323
|
+
|
|
324
|
+
### Data Grid
|
|
325
|
+
|
|
326
|
+
#### Breaking changes
|
|
327
|
+
|
|
328
|
+
- The `main--hasSkeletonLoadingOverlay` class has been renamed to `main--hiddenContent` and is now also applied when the "No columns" overlay is displayed.
|
|
329
|
+
|
|
330
|
+
- The `apiRef.current.forceUpdate()` method was removed. Use selectors combined with `useGridSelector()` hook to react to changes in the state.
|
|
331
|
+
|
|
332
|
+
- The selectors signature has been updated. They are only accepting `apiRef` as a first argument and `instanceId` is no longer the third argument.
|
|
333
|
+
|
|
334
|
+
```diff
|
|
335
|
+
-mySelector(state, arguments, instanceId)
|
|
336
|
+
+mySelector(apiRef, arguments)
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
#### `@mui/x-data-grid@8.0.0-alpha.12`
|
|
340
|
+
|
|
341
|
+
- [DataGrid] Add "No columns" overlay (#16543) @KenanYusuf
|
|
342
|
+
- [DataGrid] All selectors accept only `apiRef` as first argument (#16198) @arminmeh
|
|
343
|
+
- [DataGrid] Avoid `undefined` value for pagination `rowCount` (#16488) @cherniavskii
|
|
344
|
+
- [DataGrid] Create the base Checkbox slot (#16445) @romgrk
|
|
345
|
+
- [DataGrid] Create the base Input slot (#16443) @romgrk
|
|
346
|
+
- [DataGrid] Create the base MenuList slot (#16481) @romgrk
|
|
347
|
+
- [DataGrid] Create the base Popper slot (#16362) @romgrk
|
|
348
|
+
- [DataGrid] Create the base Select slot (#16394) @romgrk
|
|
349
|
+
- [DataGrid] Create the base Switch slot (#16527) @romgrk
|
|
350
|
+
- [DataGrid] Extract `getRowId()` API method as a selector (#16487) @MBilalShafi
|
|
351
|
+
- [DataGrid] Fix the `onClock` prop of the base Select slot (#16557) @romgrk
|
|
352
|
+
- [DataGrid] Go to the first page when sorting/filtering is applied (#16447) @arminmeh
|
|
353
|
+
- [DataGrid] Make base data source available in the Community plan (#16359) @MBilalShafi
|
|
354
|
+
- [DataGrid] Remove `apiRef.current.forceUpdate()` method (#16560) @MBilalShafi
|
|
355
|
+
- [DataGrid] Fix the unexpected behavior of the pagination when using `-1` for "All" rows per page (#16485) @nusr
|
|
356
|
+
- [l10n] Improve Polish (pl-PL) locale (#16123) @pawelkula
|
|
357
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#16463) @Neonin
|
|
358
|
+
|
|
359
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.12` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
360
|
+
|
|
361
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.12`.
|
|
362
|
+
|
|
363
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.12` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
364
|
+
|
|
365
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.12`, plus:
|
|
366
|
+
|
|
367
|
+
- [DataGridPremium] Fix Excel export Web Worker demo not working in dev mode (#16517) @cherniavskii
|
|
368
|
+
- [DataGridPremium] Fix loading issue + add skeleton overlay (#16282) @MBilalShafi
|
|
369
|
+
- [DataGridPremium] Improve Excel export serialization performance (#16526) @cherniavskii
|
|
370
|
+
- [DataGridPremium] Namespace Excel export worker (#16020) @oliviertassinari
|
|
371
|
+
|
|
372
|
+
### Date and Time Pickers
|
|
373
|
+
|
|
374
|
+
#### Breaking changes
|
|
375
|
+
|
|
376
|
+
- The `aria-label` on the `<Clock />` component and Time Picker opening button has been fixed to rely on the set `ampm` property instead of defaulting to the user's locale.
|
|
377
|
+
|
|
378
|
+
- The following unused formats have been removed from the adapters and can no longer be overridden via the `dateFormats` prop on the `<LocalizationProvider />` component:
|
|
379
|
+
|
|
380
|
+
- `fullTime` - please use `fullTime12h` and `fullTime24h` instead:
|
|
381
|
+
```diff
|
|
382
|
+
<LocalizationProvider
|
|
383
|
+
dateFormats={{
|
|
384
|
+
- fullTime: 'LT',
|
|
385
|
+
+ fullTime12h: 'hh:mm A',
|
|
386
|
+
+ fullTime24h: 'hh:mm',
|
|
387
|
+
}}
|
|
388
|
+
>
|
|
389
|
+
```
|
|
390
|
+
- `keyboardDateTime` - please use `keyboardDateTime12h` and `keyboardDateTime24h` instead:
|
|
391
|
+
```diff
|
|
392
|
+
<LocalizationProvider
|
|
393
|
+
dateFormats={{
|
|
394
|
+
- keyboardDateTime: 'DD.MM.YYYY | LT',
|
|
395
|
+
+ keyboardDateTime12h: 'DD.MM.YYYY | hh:mm A',
|
|
396
|
+
+ keyboardDateTime24h: 'DD.MM.YYYY | hh:mm',
|
|
397
|
+
}}
|
|
398
|
+
>
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.12`
|
|
402
|
+
|
|
403
|
+
- [pickers] Fix time related aria labels to depend on `ampm` flag value (#16572) @LukasTy
|
|
404
|
+
- [pickers] Remove unused adapter formats (#16522) @LukasTy
|
|
405
|
+
|
|
406
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.12` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
407
|
+
|
|
408
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.12`, plus:
|
|
409
|
+
|
|
410
|
+
- [DateRangePicker] Avoid unnecessary field section focusing (#16474) @LukasTy
|
|
411
|
+
|
|
412
|
+
### Charts
|
|
413
|
+
|
|
414
|
+
#### Breaking changes
|
|
415
|
+
|
|
416
|
+
- The `useSeries` hook family has been stabilized and renamed accordingly — [Learn more](https://next.mui.com/x/migration/migration-charts-v7/#stabilize-useseries-and-usexxxseries-hooks-✅)
|
|
417
|
+
|
|
418
|
+
#### `@mui/x-charts@8.0.0-alpha.12`
|
|
419
|
+
|
|
420
|
+
- [charts] Add docs for scatter "Size" section (#16556) @bernardobelchior
|
|
421
|
+
- [charts] Add `test:performance:browser` script #16600 @bernardobelchior
|
|
422
|
+
- [charts] Add warning when using unknown ids in `useXxxSeries` hooks (#16552) @JCQuintas
|
|
423
|
+
- [charts] Divide the logic for `useXxxSeries` into `useXxxSeriesContext` (#16546) @JCQuintas
|
|
424
|
+
- [charts] Document plugins for internal use (#16504) @JCQuintas
|
|
425
|
+
- [charts] Fix internal typo (#16524) @alexfauquette
|
|
426
|
+
- [charts] Fix type overloads (#16581) @JCQuintas
|
|
427
|
+
- [charts] Fix zoom filter regression (#16507) @alexfauquette
|
|
428
|
+
- [charts] Improve tooltip placement in mobile (#16553) @bernardobelchior
|
|
429
|
+
- [charts] Let the `useXxxSeries` support array of ids and document them (#15545) @JCQuintas
|
|
430
|
+
- [charts] Memoize some tooltip internals (#16564) @alexfauquette
|
|
431
|
+
- [charts] Move Voronoi handler in a dedicated plugin (#16470) @alexfauquette
|
|
432
|
+
- [charts] Performance tests: set license on setup. Update vitest minor version. (#16525) @bernardobelchior
|
|
433
|
+
- [charts] Propagate the axis scale to the `valueFormatter` (#16555) @alexfauquette
|
|
434
|
+
- [charts] Remove `colors` prop from `SparkLineChart`. (#16494) @bernardobelchior
|
|
435
|
+
- [charts] Stabilize series hooks (`useSeries`, `usePieSeries`, etc.) (#16459) @bernardobelchior
|
|
436
|
+
|
|
437
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.12` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
438
|
+
|
|
439
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.12`.
|
|
440
|
+
|
|
441
|
+
### Tree View
|
|
442
|
+
|
|
443
|
+
#### `@mui/x-tree-view@8.0.0-alpha.12`
|
|
444
|
+
|
|
445
|
+
Internal changes.
|
|
446
|
+
|
|
447
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.12` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
448
|
+
|
|
449
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.12`.
|
|
450
|
+
|
|
451
|
+
### Docs
|
|
452
|
+
|
|
453
|
+
- [docs] Add demo for Scatter Chart with linked points (#16505) @bernardobelchior
|
|
454
|
+
- [docs] Improve license installation page (#16403) @michelengelen
|
|
455
|
+
- [docs] Standardize getting started docs across all packages (#16302) @mapache-salvaje
|
|
456
|
+
|
|
457
|
+
### Core
|
|
458
|
+
|
|
459
|
+
- [core] Update charts folder structure (#16471) @alexfauquette
|
|
460
|
+
- [code-infra] Bump @mui/monorepo (#16422) @LukasTy
|
|
461
|
+
- [code-infra] Fix lock file (#16562) @LukasTy
|
|
462
|
+
- [code-infra] Fix root package version (#16503) @JCQuintas
|
|
463
|
+
- [code-infra] Update internal packages to `next` releases (#16423) @LukasTy
|
|
464
|
+
- [code-infra] Update package layout for better ESM support (#14386) @Janpot
|
|
465
|
+
- [code-infra] Update peer dependencies for v8 (#16563) @Janpot
|
|
466
|
+
|
|
467
|
+
## 8.0.0-alpha.11
|
|
9
468
|
|
|
10
469
|
_Feb 7, 2025_
|
|
11
470
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { RichTreeViewProProps } from
|
|
2
|
+
import { RichTreeViewProProps } from "./RichTreeViewPro.types.js";
|
|
3
3
|
export declare const RichTreeViewProRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
4
|
-
|
|
4
|
+
ownerState: RichTreeViewProProps<any, any>;
|
|
5
5
|
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, keyof React.ClassAttributes<HTMLUListElement> | keyof React.HTMLAttributes<HTMLUListElement>>, {}>;
|
|
6
6
|
type RichTreeViewProComponent = (<R extends {}, Multiple extends boolean | undefined = undefined>(props: RichTreeViewProProps<R, Multiple> & React.RefAttributes<HTMLUListElement>) => React.JSX.Element) & {
|
|
7
|
-
|
|
7
|
+
propTypes?: any;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -17,4 +17,4 @@ type RichTreeViewProComponent = (<R extends {}, Multiple extends boolean | undef
|
|
|
17
17
|
* - [RichTreeView API](https://mui.com/x/api/tree-view/rich-tree-view/)
|
|
18
18
|
*/
|
|
19
19
|
declare const RichTreeViewPro: RichTreeViewProComponent;
|
|
20
|
-
export { RichTreeViewPro };
|
|
20
|
+
export { RichTreeViewPro };
|