@mui/x-data-grid-premium 8.0.0-alpha.3 → 8.0.0-alpha.5
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 +377 -0
- package/DataGridPremium/DataGridPremium.js +8 -12
- package/DataGridPremium/useDataGridPremiumProps.js +2 -2
- package/README.md +1 -1
- package/components/GridColumnMenuAggregationItem.js +37 -42
- package/components/GridColumnMenuRowGroupItem.js +5 -11
- package/components/GridColumnMenuRowUngroupItem.js +10 -19
- package/esm/DataGridPremium/DataGridPremium.js +8 -12
- package/esm/DataGridPremium/useDataGridPremiumProps.js +3 -3
- package/esm/components/GridColumnMenuAggregationItem.js +37 -42
- package/esm/components/GridColumnMenuRowGroupItem.js +6 -11
- package/esm/components/GridColumnMenuRowUngroupItem.js +11 -19
- package/esm/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/aggregation/gridAggregationSelectors.d.ts +2 -2
- package/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
- package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +2 -2
- package/index.js +1 -1
- package/modern/DataGridPremium/DataGridPremium.js +8 -12
- package/modern/DataGridPremium/useDataGridPremiumProps.js +3 -3
- package/modern/components/GridColumnMenuAggregationItem.js +37 -42
- package/modern/components/GridColumnMenuRowGroupItem.js +6 -11
- package/modern/components/GridColumnMenuRowUngroupItem.js +11 -19
- package/modern/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,236 @@
|
|
|
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.5
|
|
9
|
+
|
|
10
|
+
_Dec 19, 2024_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🌍 Improve Korean (ko-KR) locale on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
18
|
+
@good-jinu, @k-rajat19.
|
|
19
|
+
Following are all team members who have contributed to this release:
|
|
20
|
+
@alexfauquette, @cherniavskii, @flaviendelangle, @KenanYusuf, @LukasTy, @MBilalShafi, @romgrk.
|
|
21
|
+
|
|
22
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
#### Breaking changes
|
|
27
|
+
|
|
28
|
+
- Passing additional props (like `data-*`, `aria-*`) directly on the Data Grid component is no longer supported. To pass the props, use `slotProps`.
|
|
29
|
+
|
|
30
|
+
- For `.root` element, use `slotProps.root`.
|
|
31
|
+
- For `.main` element (the one with `role="grid"`), use `slotProps.main`.
|
|
32
|
+
|
|
33
|
+
- `detailPanelExpandedRowIds` and `onDetailPanelExpandedRowIdsChange` props use a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array:
|
|
34
|
+
|
|
35
|
+
```diff
|
|
36
|
+
-detailPanelExpandedRowIds?: GridRowId[];
|
|
37
|
+
+detailPanelExpandedRowIds?: Set<GridRowId>;
|
|
38
|
+
|
|
39
|
+
-onDetailPanelExpandedRowIdsChange?: (ids: GridRowId[], details: GridCallbackDetails) => void;
|
|
40
|
+
+onDetailPanelExpandedRowIdsChange?: (ids: Set<GridRowId>, details: GridCallbackDetails) => void;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
- `apiRef.current.getExpandedDetailPanels` and `apiRef.current.setExpandedDetailPanels` methods receive and return a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array.
|
|
44
|
+
- `gridDetailPanelExpandedRowIdsSelector` returns a [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instead of an array.
|
|
45
|
+
- `gridDetailPanelExpandedRowsHeightCacheSelector` was removed.
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-data-grid@8.0.0-alpha.5`
|
|
48
|
+
|
|
49
|
+
- [DataGrid] Consider `columnGroupHeaderHeight` prop in `getTotalHeaderHeight` method (#15915) @k-rajat19
|
|
50
|
+
- [DataGrid] Fix autosizing with virtualized columns (#15116) @k-rajat19
|
|
51
|
+
- [DataGrid] Move `<Badge />` to leaf import (#15879) @romgrk
|
|
52
|
+
- [DataGrid] Move `<ListItemText />` and `<ListItemIcon />` to leaf import (#15869) @romgrk
|
|
53
|
+
- [DataGrid] Remove the Joy UI demo (#15913) @romgrk
|
|
54
|
+
- [DataGrid] Update quick filter input variant (#15909) @KenanYusuf
|
|
55
|
+
- [DataGrid] Use `slotProps` to forward props to `.main` and `.root` elements (#15870) @MBilalShafi
|
|
56
|
+
- [l10n] Improve Korean(ko-KR) locale (#15878) @good-jinu
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
59
|
+
|
|
60
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.5`, plus:
|
|
61
|
+
|
|
62
|
+
- [DataGridPro] Use `Set` for `detailPanelExpandedRowIds` (#15835) @cherniavskii
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.5`.
|
|
67
|
+
|
|
68
|
+
### Date and Time Pickers
|
|
69
|
+
|
|
70
|
+
#### Breaking changes
|
|
71
|
+
|
|
72
|
+
- The `<PickersMonth />` component has been moved inside the Month Calendar component — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#month-calendar).
|
|
73
|
+
|
|
74
|
+
- The `<PickersYear />` component has been moved inside the Year Calendar component — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#year-calendar).
|
|
75
|
+
|
|
76
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.5`
|
|
77
|
+
|
|
78
|
+
- [pickers] Add verification to disable skipped hours in spring forward DST (#15849) @flaviendelangle
|
|
79
|
+
- [pickers] Remove `PickersMonth` and `PickersYear` from the theme and remove the `div` wrapping each button (#15806) @flaviendelangle
|
|
80
|
+
- [pickers] Use the new `ownerState` object on the `<PickersTextField />` component (#15863) @flaviendelangle
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
83
|
+
|
|
84
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.5`.
|
|
85
|
+
|
|
86
|
+
### Charts
|
|
87
|
+
|
|
88
|
+
#### `@mui/x-charts@8.0.0-alpha.5`
|
|
89
|
+
|
|
90
|
+
- [charts] Fix `<ScatterChart />` value type if `null` (#15917) @alexfauquette
|
|
91
|
+
|
|
92
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
93
|
+
|
|
94
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.5`.
|
|
95
|
+
|
|
96
|
+
### Tree View
|
|
97
|
+
|
|
98
|
+
#### `@mui/x-tree-view@8.0.0-alpha.5`
|
|
99
|
+
|
|
100
|
+
No changes since `@mui/x-tree-view-pro@v8.0.0-alpha.4`.
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
103
|
+
|
|
104
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.5`.
|
|
105
|
+
|
|
106
|
+
### Core
|
|
107
|
+
|
|
108
|
+
- [code-infra] Remove `@mui/material-nextjs` dependency (#15925) @LukasTy
|
|
109
|
+
|
|
110
|
+
## 8.0.0-alpha.4
|
|
111
|
+
|
|
112
|
+
_Dec 13, 2024_
|
|
113
|
+
|
|
114
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
115
|
+
|
|
116
|
+
- 🌍 Improve Romanian locale on the Data Grid and Pickers
|
|
117
|
+
- 📚 Documentation improvements
|
|
118
|
+
- 🐞 Bugfixes
|
|
119
|
+
|
|
120
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
121
|
+
@k-rajat19, @nusr, @rares985, @zivl.
|
|
122
|
+
Following are all team members who have contributed to this release:
|
|
123
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi.
|
|
124
|
+
|
|
125
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
126
|
+
|
|
127
|
+
### Data Grid
|
|
128
|
+
|
|
129
|
+
#### Breaking changes
|
|
130
|
+
|
|
131
|
+
- The selectors signature has been updated due to the support of arguments in the selectors. Pass `undefined` as `arguments` if the selector doesn't use any arguments.
|
|
132
|
+
|
|
133
|
+
```diff
|
|
134
|
+
-mySelector(state, instanceId)
|
|
135
|
+
+mySelector(state, arguments, instanceId)
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
- The `useGridSelector` signature has been updated due to the introduction of arguments parameter in the selectors. Pass `undefined` as `arguments` if the selector doesn't use any arguments.
|
|
139
|
+
|
|
140
|
+
```diff
|
|
141
|
+
-const output = useGridSelector(apiRef, selector, equals)
|
|
142
|
+
+const output = useGridSelector(apiRef, selector, arguments, equals)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
- The default variant for text fields and selects in the filter panel has been changed to `outlined`.
|
|
146
|
+
- The "row spanning" feature is now stable.
|
|
147
|
+
```diff
|
|
148
|
+
<DataGrid
|
|
149
|
+
- unstable_rowSpanning
|
|
150
|
+
+ rowSpanning
|
|
151
|
+
/>
|
|
152
|
+
```
|
|
153
|
+
- Selected row is now deselected when clicked again.
|
|
154
|
+
|
|
155
|
+
#### `@mui/x-data-grid@8.0.0-alpha.4`
|
|
156
|
+
|
|
157
|
+
- [DataGrid] Deselect selected row on click (#15509) @k-rajat19
|
|
158
|
+
- [DataGrid] Fix "No rows" displaying when all rows are pinned (#15335) @nusr
|
|
159
|
+
- [DataGrid] Make row spanning feature stable (#15742) @MBilalShafi
|
|
160
|
+
- [DataGrid] Round dimensions to avoid subpixel rendering error (#15850) @KenanYusuf
|
|
161
|
+
- [DataGrid] Toggle menu on click in `<GridActionsCell />` (#15867) @k-rajat19
|
|
162
|
+
- [DataGrid] Trigger row spanning computation on rows update (#15858) @MBilalShafi
|
|
163
|
+
- [DataGrid] Update filter panel input variant (#15807) @KenanYusuf
|
|
164
|
+
- [DataGrid] Use `columnsManagement` slot (#15817) @k-rajat19
|
|
165
|
+
- [DataGrid] Use new selector signature (#15200) @MBilalShafi
|
|
166
|
+
- [l10n] Improve Romanian (ro-RO) locale (#15745) @rares985
|
|
167
|
+
|
|
168
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
169
|
+
|
|
170
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.4`, plus:
|
|
171
|
+
|
|
172
|
+
- [DataGridPro] Make row reordering work with pagination (#15355) @k-rajat19
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
175
|
+
|
|
176
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.4`, plus:
|
|
177
|
+
|
|
178
|
+
- [DataGridPremium] Fix group column ignoring `valueOptions` for `singleSelect` column type (#15739) @arminmeh
|
|
179
|
+
|
|
180
|
+
### Date and Time Pickers
|
|
181
|
+
|
|
182
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.4`
|
|
183
|
+
|
|
184
|
+
- [l10n] Improve Romanian (ro-RO) locale (#15745) @rares985
|
|
185
|
+
- [pickers] Clean `usePicker` logic (#15763) @flaviendelangle
|
|
186
|
+
- [pickers] Rename layout `ownerState` property from `isRtl` to `layoutDirection` (#15803) @flaviendelangle
|
|
187
|
+
- [pickers] Use the new `ownerState` in `useClearableField` (#15776) @flaviendelangle
|
|
188
|
+
- [pickers] Use the new `ownerState` in the toolbar components (#15777) @flaviendelangle
|
|
189
|
+
- [pickers] Use the new `ownerState` object for the clock components and the desktop / mobile wrappers (#15669) @flaviendelangle
|
|
190
|
+
|
|
191
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
192
|
+
|
|
193
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.4`.
|
|
194
|
+
|
|
195
|
+
### Charts
|
|
196
|
+
|
|
197
|
+
#### Breaking changes
|
|
198
|
+
|
|
199
|
+
- The default styling of the charts tooltip has been updated.
|
|
200
|
+
|
|
201
|
+
#### `@mui/x-charts@8.0.0-alpha.4`
|
|
202
|
+
|
|
203
|
+
- [charts] Fix hydration missmatch (#15647) @alexfauquette
|
|
204
|
+
- [charts] Fix internal spelling typo (#15805) @zivl
|
|
205
|
+
- [charts] Fix scatter dataset with missing data (#15802) @alexfauquette
|
|
206
|
+
- [charts] HTML Labels (#15813) @JCQuintas
|
|
207
|
+
- [charts] Only access store values by using hooks (#15764) @alexfauquette
|
|
208
|
+
- [charts] Update Tooltip style (#15630) @alexfauquette
|
|
209
|
+
|
|
210
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
211
|
+
|
|
212
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.4`.
|
|
213
|
+
|
|
214
|
+
### Tree View
|
|
215
|
+
|
|
216
|
+
#### `@mui/x-tree-view@8.0.0-alpha.4`
|
|
217
|
+
|
|
218
|
+
No changes, releasing to keep the versions in sync.
|
|
219
|
+
|
|
220
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
221
|
+
|
|
222
|
+
Releasing to benefit from license package fix (#15814).
|
|
223
|
+
|
|
224
|
+
### Docs
|
|
225
|
+
|
|
226
|
+
- [docs] Clean Joy and Browser custom field demos (#15707) @flaviendelangle
|
|
227
|
+
- [docs] Fix outdated link to handbook (#15855) @oliviertassinari
|
|
228
|
+
- [docs] Improve Pickers accessible DOM migration section description (#15596) @LukasTy
|
|
229
|
+
- [docs] Use `updateRows` method for list view demos (#15732) @KenanYusuf
|
|
230
|
+
- [docs] Use date library version from package dev dependencies for sandboxes (#15762) @LukasTy
|
|
231
|
+
|
|
232
|
+
### Core
|
|
233
|
+
|
|
234
|
+
- [code-infra] Add Charts sandbox generation (#15830) @JCQuintas
|
|
235
|
+
- [code-infra] Remove redundant `@type/react-test-renderer` dep (#15766) @LukasTy
|
|
236
|
+
- [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15814) @arminmeh
|
|
237
|
+
|
|
8
238
|
## 8.0.0-alpha.3
|
|
9
239
|
|
|
10
240
|
_Dec 5, 2024_
|
|
@@ -567,6 +797,153 @@ Same changes as in `@mui/x-charts@8.0.0-alpha.0`.
|
|
|
567
797
|
- [release] v8 preparation (#15054) @michelengelen
|
|
568
798
|
- [test] Fix advanced list view regression test snapshot (#15260) @KenanYusuf
|
|
569
799
|
|
|
800
|
+
## 7.23.2
|
|
801
|
+
|
|
802
|
+
_Dec 12, 2024_
|
|
803
|
+
|
|
804
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
805
|
+
|
|
806
|
+
- 🌍 Improve Romanian and Turkish locales on the Data Grid
|
|
807
|
+
- 🌍 Improve Romanian locale on the Pickers
|
|
808
|
+
- 📚 Documentation improvements
|
|
809
|
+
- 🐞 Bugfixes
|
|
810
|
+
|
|
811
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
812
|
+
@ihsanberkozcan, @k-rajat19, @lhilgert9, @nusr, @rares985.
|
|
813
|
+
|
|
814
|
+
Following are all team members who have contributed to this release:
|
|
815
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy.
|
|
816
|
+
|
|
817
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
818
|
+
|
|
819
|
+
### Data Grid
|
|
820
|
+
|
|
821
|
+
#### `@mui/x-data-grid@7.23.2`
|
|
822
|
+
|
|
823
|
+
- [DataGrid] Fix "No rows" displaying when all rows are pinned (#15851) @nusr
|
|
824
|
+
- [DataGrid] Use `columnsManagement` slot (#15821) @k-rajat19
|
|
825
|
+
- [l10n] Improve Romanian (ro-RO) locale (#15751) @rares985
|
|
826
|
+
- [l10n] Improve Turkish (tr-TR) locale (#15748) @ihsanberkozcan
|
|
827
|
+
|
|
828
|
+
#### `@mui/x-data-grid-pro@7.23.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
829
|
+
|
|
830
|
+
Same changes as in `@mui/x-data-grid@7.23.2`, plus:
|
|
831
|
+
|
|
832
|
+
- [DataGridPro] Make Row reordering work with pagination (#15782) @k-rajat19
|
|
833
|
+
|
|
834
|
+
#### `@mui/x-data-grid-premium@7.23.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
835
|
+
|
|
836
|
+
Same changes as in `@mui/x-data-grid-pro@7.23.2`, plus:
|
|
837
|
+
|
|
838
|
+
- [DataGridPremium] Fix group column ignoring `valueOptions` for `singleSelect` column type (#15754) @arminmeh
|
|
839
|
+
|
|
840
|
+
### Date and Time Pickers
|
|
841
|
+
|
|
842
|
+
#### `@mui/x-date-pickers@7.23.2`
|
|
843
|
+
|
|
844
|
+
- [l10n] Improve Romanian (ro-RO) locale (#15751) @rares985
|
|
845
|
+
|
|
846
|
+
#### `@mui/x-date-pickers-pro@7.23.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
847
|
+
|
|
848
|
+
Same changes as in `@mui/x-date-pickers@7.23.2`.
|
|
849
|
+
|
|
850
|
+
### Charts
|
|
851
|
+
|
|
852
|
+
#### `@mui/x-charts@7.23.2`
|
|
853
|
+
|
|
854
|
+
- [charts] Fix key generation for the ChartsGrid (#15864) @alexfauquette
|
|
855
|
+
- [charts] Fix scatter dataset with missing data (#15804) @alexfauquette
|
|
856
|
+
|
|
857
|
+
#### `@mui/x-charts-pro@7.23.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
858
|
+
|
|
859
|
+
Same changes as in `@mui/x-charts@7.23.2`.
|
|
860
|
+
|
|
861
|
+
#### `@mui/x-tree-view@v7.23.2`
|
|
862
|
+
|
|
863
|
+
No changes, releasing to keep the versions in sync.
|
|
864
|
+
|
|
865
|
+
#### `@mui/x-tree-view-pro@7.23.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
866
|
+
|
|
867
|
+
Releasing to benefit from license package fix (#15818).
|
|
868
|
+
|
|
869
|
+
### Docs
|
|
870
|
+
|
|
871
|
+
- [docs] Fix typo in charts axis documentation (#15746) @JCQuintas
|
|
872
|
+
- [docs] Improve Pickers accessible DOM structure description (#15752) @LukasTy
|
|
873
|
+
- [docs] Use `updateRows` method for list view demos (#15824) @KenanYusuf
|
|
874
|
+
- [docs] Use date library version from package dev dependencies for sandboxes (#15767) @LukasTy
|
|
875
|
+
|
|
876
|
+
### Core
|
|
877
|
+
|
|
878
|
+
- [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
|
|
879
|
+
- [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15818) @arminmeh
|
|
880
|
+
|
|
881
|
+
## 7.23.1
|
|
882
|
+
|
|
883
|
+
_Dec 5, 2024_
|
|
884
|
+
|
|
885
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
886
|
+
|
|
887
|
+
- 🌍 Improve German locale on the Data Grid component
|
|
888
|
+
- 🐞 Bugfixes
|
|
889
|
+
|
|
890
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
891
|
+
@lhilgert9.
|
|
892
|
+
|
|
893
|
+
Following are all team members who have contributed to this release:
|
|
894
|
+
@arthurbalduini, @cherniavskii, @flaviendelangle, @JCQuintas, @LukasTy and @MBilalShafi.
|
|
895
|
+
|
|
896
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
897
|
+
|
|
898
|
+
### Data Grid
|
|
899
|
+
|
|
900
|
+
#### `@mui/x-data-grid@7.23.1`
|
|
901
|
+
|
|
902
|
+
- [DataGrid] Make column autosizing work with flex columns (#15712) @cherniavskii
|
|
903
|
+
- [l10n] Improve German (de-DE) locale (#15641) @lhilgert9
|
|
904
|
+
|
|
905
|
+
#### `@mui/x-data-grid-pro@7.23.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
906
|
+
|
|
907
|
+
Same changes as in `@mui/x-data-grid@7.23.1`, plus:
|
|
908
|
+
|
|
909
|
+
- [DataGridPro] Cleanup pinned rows on removal (#15702) @cherniavskii
|
|
910
|
+
|
|
911
|
+
#### `@mui/x-data-grid-premium@7.23.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
912
|
+
|
|
913
|
+
Same changes as in `@mui/x-data-grid-pro@7.23.1`.
|
|
914
|
+
|
|
915
|
+
### Date and Time Pickers
|
|
916
|
+
|
|
917
|
+
#### `@mui/x-date-pickers@7.23.1`
|
|
918
|
+
|
|
919
|
+
- [TimePicker] Prevent mouse events after `touchend` event (#15430) @arthurbalduini
|
|
920
|
+
|
|
921
|
+
#### `@mui/x-date-pickers-pro@7.23.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
922
|
+
|
|
923
|
+
Same changes as in `@mui/x-date-pickers@7.23.1`.
|
|
924
|
+
|
|
925
|
+
### Charts
|
|
926
|
+
|
|
927
|
+
#### `@mui/x-charts@7.23.1`
|
|
928
|
+
|
|
929
|
+
- [charts] Improve SVG `pattern` and `gradient` support (#15724) @JCQuintas
|
|
930
|
+
|
|
931
|
+
#### `@mui/x-charts-pro@7.23.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
932
|
+
|
|
933
|
+
Same changes as in `@mui/x-charts@7.23.1`.
|
|
934
|
+
|
|
935
|
+
### Docs
|
|
936
|
+
|
|
937
|
+
- [docs] Fix Pickers theme augmentation example (#15675) @LukasTy
|
|
938
|
+
- [docs] Remove duplicated warning (#15715) @cherniavskii
|
|
939
|
+
- [test] Force hover in headless Chrome (#15711) @cherniavskii
|
|
940
|
+
- [docs-infra] Bump `@mui/internal-markdown` to support nested demo imports (#15738) @alexfauquette
|
|
941
|
+
- [docs] Improve SEO titles for the Data Grid (#15695) @MBilalShafi
|
|
942
|
+
|
|
943
|
+
### Core
|
|
944
|
+
|
|
945
|
+
- [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
|
|
946
|
+
|
|
570
947
|
## 7.23.0
|
|
571
948
|
|
|
572
949
|
_Nov 29, 2024_
|
|
@@ -46,7 +46,7 @@ const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremiu
|
|
|
46
46
|
style: props.style,
|
|
47
47
|
sx: props.sx,
|
|
48
48
|
ref: ref
|
|
49
|
-
}, props.
|
|
49
|
+
}, props.slotProps?.root, {
|
|
50
50
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridHeader, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridBody, {
|
|
51
51
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
52
52
|
packageName: "x-data-grid-premium",
|
|
@@ -116,6 +116,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
116
116
|
*/
|
|
117
117
|
autosizeOptions: _propTypes.default.shape({
|
|
118
118
|
columns: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
119
|
+
disableColumnVirtualization: _propTypes.default.bool,
|
|
119
120
|
expand: _propTypes.default.bool,
|
|
120
121
|
includeHeaders: _propTypes.default.bool,
|
|
121
122
|
includeOutliers: _propTypes.default.bool,
|
|
@@ -193,7 +194,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
193
194
|
/**
|
|
194
195
|
* The row ids to show the detail panel.
|
|
195
196
|
*/
|
|
196
|
-
detailPanelExpandedRowIds: _propTypes.default
|
|
197
|
+
detailPanelExpandedRowIds: _propTypes.default /* @typescript-to-proptypes-ignore */.instanceOf(Set),
|
|
197
198
|
/**
|
|
198
199
|
* If `true`, aggregation is disabled.
|
|
199
200
|
* @default false
|
|
@@ -339,11 +340,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
339
340
|
quickFilterLogicOperator: _propTypes.default.oneOf(['and', 'or']),
|
|
340
341
|
quickFilterValues: _propTypes.default.array
|
|
341
342
|
}),
|
|
342
|
-
/**
|
|
343
|
-
* Forwarded props for the Data Grid root element.
|
|
344
|
-
* @ignore - do not document.
|
|
345
|
-
*/
|
|
346
|
-
forwardedProps: _propTypes.default.object,
|
|
347
343
|
/**
|
|
348
344
|
* Determines the position of an aggregated value.
|
|
349
345
|
* @param {GridGroupNode} groupNode The current group.
|
|
@@ -972,6 +968,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
972
968
|
* @default "margin"
|
|
973
969
|
*/
|
|
974
970
|
rowSpacingType: _propTypes.default.oneOf(['border', 'margin']),
|
|
971
|
+
/**
|
|
972
|
+
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
973
|
+
* @default false
|
|
974
|
+
*/
|
|
975
|
+
rowSpanning: _propTypes.default.bool,
|
|
975
976
|
/**
|
|
976
977
|
* Override the height/width of the Data Grid inner scrollbar.
|
|
977
978
|
*/
|
|
@@ -1080,11 +1081,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1080
1081
|
*/
|
|
1081
1082
|
unstable_listView: _propTypes.default.bool,
|
|
1082
1083
|
unstable_onDataSourceError: _propTypes.default.func,
|
|
1083
|
-
/**
|
|
1084
|
-
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
1085
|
-
* @default false
|
|
1086
|
-
*/
|
|
1087
|
-
unstable_rowSpanning: _propTypes.default.bool,
|
|
1088
1084
|
/**
|
|
1089
1085
|
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
1090
1086
|
* By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
|
|
@@ -42,12 +42,12 @@ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PREMIUM_PROPS_D
|
|
|
42
42
|
});
|
|
43
43
|
const defaultSlots = _dataGridPremiumDefaultSlotsComponents.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
|
|
44
44
|
const useDataGridPremiumProps = inProps => {
|
|
45
|
-
const themedProps =
|
|
45
|
+
const themedProps =
|
|
46
46
|
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
47
47
|
(0, _styles.useThemeProps)({
|
|
48
48
|
props: inProps,
|
|
49
49
|
name: 'MuiDataGrid'
|
|
50
|
-
})
|
|
50
|
+
});
|
|
51
51
|
const localeText = React.useMemo(() => (0, _extends2.default)({}, _xDataGridPro.GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
52
52
|
const slots = React.useMemo(() => (0, _internals.computeSlots)({
|
|
53
53
|
defaultSlots,
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# MUI X Data Grid Premium
|
|
2
2
|
|
|
3
3
|
This package is the Premium plan edition of the Data Grid components.
|
|
4
|
-
It's part of [MUI X](https://mui.com/x/), an open-core extension of
|
|
4
|
+
It's part of [MUI X](https://mui.com/x/), an open-core extension of our Core libraries, with advanced components.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
@@ -12,8 +12,6 @@ var _toPropertyKey2 = _interopRequireDefault(require("@babel/runtime/helpers/toP
|
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
15
|
-
var _ListItemIcon = _interopRequireDefault(require("@mui/material/ListItemIcon"));
|
|
16
|
-
var _ListItemText = _interopRequireDefault(require("@mui/material/ListItemText"));
|
|
17
15
|
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
18
16
|
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
|
19
17
|
var _utils = require("@mui/utils");
|
|
@@ -60,47 +58,44 @@ function GridColumnMenuAggregationItem(props) {
|
|
|
60
58
|
apiRef.current.hideColumnMenu();
|
|
61
59
|
};
|
|
62
60
|
const label = apiRef.current.getLocaleText('aggregationMenuItemHeader');
|
|
63
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
62
|
+
inert: true,
|
|
63
|
+
iconStart: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnMenuAggregationIcon, {
|
|
64
|
+
fontSize: "small"
|
|
65
|
+
}),
|
|
66
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_FormControl.default, {
|
|
67
|
+
size: "small",
|
|
68
|
+
fullWidth: true,
|
|
69
|
+
sx: {
|
|
70
|
+
minWidth: 150
|
|
71
|
+
},
|
|
72
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_InputLabel.default, {
|
|
73
|
+
id: `${id}-label`,
|
|
74
|
+
children: label
|
|
75
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(rootProps.slots.baseSelect, {
|
|
76
|
+
labelId: `${id}-label`,
|
|
77
|
+
id: `${id}-input`,
|
|
78
|
+
value: selectedAggregationRule,
|
|
79
|
+
label: label,
|
|
80
|
+
color: "primary",
|
|
81
|
+
onChange: handleAggregationItemChange,
|
|
82
|
+
onBlur: event => event.stopPropagation(),
|
|
72
83
|
fullWidth: true,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
children:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
89
|
-
value: "",
|
|
90
|
-
children: "..."
|
|
91
|
-
}), availableAggregationFunctions.map(aggFunc => /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
92
|
-
value: aggFunc,
|
|
93
|
-
children: (0, _gridAggregationUtils.getAggregationFunctionLabel)({
|
|
94
|
-
apiRef,
|
|
95
|
-
aggregationRule: {
|
|
96
|
-
aggregationFunctionName: aggFunc,
|
|
97
|
-
aggregationFunction: rootProps.aggregationFunctions[aggFunc]
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
}, aggFunc))]
|
|
101
|
-
})]
|
|
102
|
-
})
|
|
103
|
-
})]
|
|
84
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
85
|
+
value: "",
|
|
86
|
+
children: "..."
|
|
87
|
+
}), availableAggregationFunctions.map(aggFunc => /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
88
|
+
value: aggFunc,
|
|
89
|
+
children: (0, _gridAggregationUtils.getAggregationFunctionLabel)({
|
|
90
|
+
apiRef,
|
|
91
|
+
aggregationRule: {
|
|
92
|
+
aggregationFunctionName: aggFunc,
|
|
93
|
+
aggregationFunction: rootProps.aggregationFunctions[aggFunc]
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
}, aggFunc))]
|
|
97
|
+
})]
|
|
98
|
+
})
|
|
104
99
|
});
|
|
105
100
|
}
|
|
106
101
|
process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes = {
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.GridColumnMenuRowGroupItem = GridColumnMenuRowGroupItem;
|
|
9
8
|
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _ListItemIcon = _interopRequireDefault(require("@mui/material/ListItemIcon"));
|
|
11
|
-
var _ListItemText = _interopRequireDefault(require("@mui/material/ListItemText"));
|
|
12
9
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
13
10
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
14
11
|
var _gridRowGroupingSelector = require("../hooks/features/rowGrouping/gridRowGroupingSelector");
|
|
@@ -31,16 +28,13 @@ function GridColumnMenuRowGroupItem(props) {
|
|
|
31
28
|
};
|
|
32
29
|
const groupedColumn = columnsLookup[field];
|
|
33
30
|
const name = groupedColumn.headerName ?? field;
|
|
34
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
35
32
|
onClick: ungroupColumn,
|
|
36
33
|
disabled: !groupedColumn.groupable,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemText.default, {
|
|
42
|
-
children: apiRef.current.getLocaleText('unGroupColumn')(name)
|
|
43
|
-
})]
|
|
34
|
+
iconStart: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnMenuUngroupIcon, {
|
|
35
|
+
fontSize: "small"
|
|
36
|
+
}),
|
|
37
|
+
children: apiRef.current.getLocaleText('unGroupColumn')(name)
|
|
44
38
|
}, field);
|
|
45
39
|
};
|
|
46
40
|
if (!colDef || !(0, _gridRowGroupingUtils.isGroupingColumn)(colDef.field)) {
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.GridColumnMenuRowUngroupItem = GridColumnMenuRowUngroupItem;
|
|
9
8
|
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _ListItemIcon = _interopRequireDefault(require("@mui/material/ListItemIcon"));
|
|
11
|
-
var _ListItemText = _interopRequireDefault(require("@mui/material/ListItemText"));
|
|
12
9
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
13
10
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
14
11
|
var _gridRowGroupingSelector = require("../hooks/features/rowGrouping/gridRowGroupingSelector");
|
|
@@ -36,25 +33,19 @@ function GridColumnMenuRowUngroupItem(props) {
|
|
|
36
33
|
};
|
|
37
34
|
const name = columnsLookup[colDef.field].headerName ?? colDef.field;
|
|
38
35
|
if (rowGroupingModel.includes(colDef.field)) {
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
40
37
|
onClick: ungroupColumn,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemText.default, {
|
|
46
|
-
children: apiRef.current.getLocaleText('unGroupColumn')(name)
|
|
47
|
-
})]
|
|
38
|
+
iconStart: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnMenuUngroupIcon, {
|
|
39
|
+
fontSize: "small"
|
|
40
|
+
}),
|
|
41
|
+
children: apiRef.current.getLocaleText('unGroupColumn')(name)
|
|
48
42
|
});
|
|
49
43
|
}
|
|
50
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
51
45
|
onClick: groupColumn,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ListItemText.default, {
|
|
57
|
-
children: apiRef.current.getLocaleText('groupColumn')(name)
|
|
58
|
-
})]
|
|
46
|
+
iconStart: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnMenuGroupIcon, {
|
|
47
|
+
fontSize: "small"
|
|
48
|
+
}),
|
|
49
|
+
children: apiRef.current.getLocaleText('groupColumn')(name)
|
|
59
50
|
});
|
|
60
51
|
}
|