@mui/x-data-grid-premium 9.10.0 → 9.11.0
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 +224 -0
- package/DataGridPremium/DataGridPremium.js +2 -2
- package/DataGridPremium/DataGridPremium.mjs +2 -2
- package/README.md +1 -11
- package/components/GridGroupingCriteriaCell.js +1 -1
- package/components/GridGroupingCriteriaCell.mjs +1 -1
- package/components/chartsPanel/data/GridChartsPanelDataField.js +8 -5
- package/components/chartsPanel/data/GridChartsPanelDataField.mjs +8 -5
- package/hooks/features/cellSelection/useGridCellSelection.js +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.mjs +1 -1
- package/hooks/features/chartsIntegration/useGridChartsIntegration.js +7 -5
- package/hooks/features/chartsIntegration/useGridChartsIntegration.mjs +7 -5
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,229 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.11.0
|
|
4
|
+
|
|
5
|
+
_Aug 6, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- ✨ Add `addItems()` and `getItemSelection()` API methods to Tree View
|
|
10
|
+
|
|
11
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
12
|
+
@12joan, @Anexus5919, @kevincorizi-sbt, @mixelburg, @mustafajw07, @strazto
|
|
13
|
+
|
|
14
|
+
The following team members contributed to this release:
|
|
15
|
+
@flaviendelangle, @hasdfa, @JCQuintas, @LukasTy, @MBilalShafi, @michelengelen, @noraleonte, @rita-codes
|
|
16
|
+
|
|
17
|
+
### Data Grid
|
|
18
|
+
|
|
19
|
+
#### `@mui/x-data-grid@9.11.0`
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Fix `updateRows` stripping class prototypes from rows in datasource mode (#22288) @mixelburg
|
|
22
|
+
- [DataGrid] Do not re-fetch data when an `Activity` becomes visible (#22603) @12joan
|
|
23
|
+
- [DataGrid] Fix toolbar button stealing focus when a sibling's disabled state changes (#23204) @MBilalShafi
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-pro@9.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid@9.11.0`.
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-premium@9.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid-pro@9.11.0`.
|
|
32
|
+
|
|
33
|
+
### Date and Time Pickers
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-date-pickers@9.11.0`
|
|
36
|
+
|
|
37
|
+
- [pickers] Fix day shift when editing dates predating timezone standardization (#23296) @JCQuintas
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-date-pickers-pro@9.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-date-pickers@9.11.0`, plus:
|
|
42
|
+
|
|
43
|
+
- [DateRangePicker] Fix disabled filler cells showing the range highlight (#23293) @JCQuintas
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-charts@9.11.0`
|
|
48
|
+
|
|
49
|
+
- [charts] Activate the focused item with `Enter`/`Space` (#23218) @JCQuintas
|
|
50
|
+
- [charts] Extract the axis click payload builders (#23215) @JCQuintas
|
|
51
|
+
- [charts] Fix `GestureManager` event listener leak on chart unmount (#23283) @kevincorizi-sbt
|
|
52
|
+
- [charts] Fix `slotProps.legend.position` and `direction` in `RadarChart` (#23254) @JCQuintas
|
|
53
|
+
- [charts] Fix axis clicks being discarded on slight pointer movement (#23244) @noraleonte
|
|
54
|
+
- [charts] Fix image export of charts sized by their parent element (#23255) @JCQuintas
|
|
55
|
+
- [charts] Forward `experimentalFeatures` on `RadarChart` and `Heatmap` (#23216) @JCQuintas
|
|
56
|
+
- [charts] Hide focus indicator when the chart loses focus (#23213) @JCQuintas
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts-pro@9.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
59
|
+
|
|
60
|
+
Same changes as in `@mui/x-charts@9.11.0`.
|
|
61
|
+
|
|
62
|
+
#### `@mui/x-charts-premium@9.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
63
|
+
|
|
64
|
+
Same changes as in `@mui/x-charts-pro@9.11.0`, plus:
|
|
65
|
+
|
|
66
|
+
- [charts-premium] Fix `RangeBar` type override (#23217) @JCQuintas
|
|
67
|
+
|
|
68
|
+
### Tree View
|
|
69
|
+
|
|
70
|
+
#### `@mui/x-tree-view@9.11.0`
|
|
71
|
+
|
|
72
|
+
- [tree view] Add `addItems()` API method (#23159) @JCQuintas
|
|
73
|
+
- [tree view] Add `getItemSelection` API method (#23257) @noraleonte
|
|
74
|
+
- [tree view] Ignore `keepExistingSelection` when `multiSelect` is `false` (#23242) @JCQuintas
|
|
75
|
+
- [tree view] Prevent duplicate ids in multi-select arrow navigation (#23006) @Anexus5919
|
|
76
|
+
|
|
77
|
+
#### `@mui/x-tree-view-pro@9.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
78
|
+
|
|
79
|
+
Same changes as in `@mui/x-tree-view@9.11.0`, plus:
|
|
80
|
+
|
|
81
|
+
- [tree view] Discard superseded lazy-loading responses (#23005) @Anexus5919
|
|
82
|
+
|
|
83
|
+
### Scheduler
|
|
84
|
+
|
|
85
|
+
#### `@mui/x-scheduler@9.0.0-beta.8`
|
|
86
|
+
|
|
87
|
+
- [scheduler] Add `localeText` prop to standalone views (#23210) @rita-codes
|
|
88
|
+
- [scheduler] Finetune touch experience for time grid events and introduce editing drawer (#22624) @noraleonte
|
|
89
|
+
- [scheduler] Introduce the edit dialog form context & lifecycle contract (#23284) @rita-codes
|
|
90
|
+
- [scheduler] Refactor edit dialog General tab into section components (#23206) @rita-codes
|
|
91
|
+
- [scheduler] Replace copied Base UI internals with `@base-ui/react/internals` imports (#21972) @flaviendelangle
|
|
92
|
+
- [scheduler] Hide resource picker when no resources are provided (#23290) @mustafajw07
|
|
93
|
+
- [scheduler] Support multi-resource occurrences in `EventTimeline` (#23240) @mustafajw07
|
|
94
|
+
|
|
95
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.8` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
96
|
+
|
|
97
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.8`.
|
|
98
|
+
|
|
99
|
+
### Codemod
|
|
100
|
+
|
|
101
|
+
#### `@mui/x-codemod@9.11.0`
|
|
102
|
+
|
|
103
|
+
- [codemod] Remove unused `@babel/core` and `@babel/traverse` dependencies (#23245) @LukasTy
|
|
104
|
+
|
|
105
|
+
### Docs
|
|
106
|
+
|
|
107
|
+
- [docs] Add recipe for adding new rows from clipboard copy (#22913) @michelengelen
|
|
108
|
+
- [docs] Clarify the package versions in v8 upgrade guides (#22376) @strazto
|
|
109
|
+
- [docs] Replace README peer dependency lists with an npm install command (#23256) @LukasTy
|
|
110
|
+
|
|
111
|
+
### Core
|
|
112
|
+
|
|
113
|
+
- [code-infra] Align action pin version comments (#23238) @LukasTy
|
|
114
|
+
|
|
115
|
+
### Miscellaneous
|
|
116
|
+
|
|
117
|
+
- [chat] Drop the undeclared `@mui/icons-material` dependency (#23252) @LukasTy
|
|
118
|
+
- [chat] Sanitize image part URLs and share the URL allow-list with markdown (#23058) @hasdfa
|
|
119
|
+
- [test] Type the `PickersTextField` test stub instead of `as any` (#23194) @LukasTy
|
|
120
|
+
|
|
121
|
+
## 9.10.1
|
|
122
|
+
|
|
123
|
+
_Jul 23, 2026_
|
|
124
|
+
|
|
125
|
+
We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
126
|
+
|
|
127
|
+
- 🦮 Improve accessibility of the Charts and Pickers components.
|
|
128
|
+
- 🐞 Bugfixes
|
|
129
|
+
- 📚 Documentation improvements
|
|
130
|
+
|
|
131
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
132
|
+
@kevincorizi-sbt, @mustafajw07, @SamanPandey-in
|
|
133
|
+
|
|
134
|
+
The following team members contributed to this release:
|
|
135
|
+
@brijeshb42, @hasdfa, @JCQuintas, @LukasTy, @michelengelen, @noraleonte, @rita-codes, @silviuaavram
|
|
136
|
+
|
|
137
|
+
### Data Grid
|
|
138
|
+
|
|
139
|
+
#### `@mui/x-data-grid@9.10.1`
|
|
140
|
+
|
|
141
|
+
- [data grid] Fix `getColumn` return type not reflecting that it can return undefined (#23165) @JCQuintas
|
|
142
|
+
|
|
143
|
+
#### `@mui/x-data-grid-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
144
|
+
|
|
145
|
+
Same changes as in `@mui/x-data-grid@9.10.1`.
|
|
146
|
+
|
|
147
|
+
#### `@mui/x-data-grid-premium@9.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
148
|
+
|
|
149
|
+
Same changes as in `@mui/x-data-grid-pro@9.10.1`.
|
|
150
|
+
|
|
151
|
+
### Date and Time Pickers
|
|
152
|
+
|
|
153
|
+
#### `@mui/x-date-pickers@9.10.1`
|
|
154
|
+
|
|
155
|
+
- [pickers] Fix format placeholder brightness with a start adornment (#23189) @LukasTy
|
|
156
|
+
|
|
157
|
+
#### `@mui/x-date-pickers-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
158
|
+
|
|
159
|
+
Same changes as in `@mui/x-date-pickers@9.10.1`, plus:
|
|
160
|
+
|
|
161
|
+
- [DateRangePicker] Fix broken active range position underline in single input range fields (#23166) @LukasTy
|
|
162
|
+
|
|
163
|
+
### Charts
|
|
164
|
+
|
|
165
|
+
#### `@mui/x-charts@9.10.1`
|
|
166
|
+
|
|
167
|
+
- [charts] Fix pie chart disappearing when an arc spans almost the full circle (#23145) @JCQuintas
|
|
168
|
+
- [charts] Set `aria-hidden` on accessibility proxy divs at initialization (#23186) @kevincorizi-sbt
|
|
169
|
+
- [charts] Fix keyboard navigation on series with different lengths (#23182) @JCQuintas
|
|
170
|
+
- [charts] Fix out of bounds keyboard navigation (#23180) @silviuaavram
|
|
171
|
+
|
|
172
|
+
#### `@mui/x-charts-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
173
|
+
|
|
174
|
+
Same changes as in `@mui/x-charts@9.10.1`, plus:
|
|
175
|
+
|
|
176
|
+
- [charts-pro] Fix highlight shifting on sampled bar charts (#23190) @noraleonte
|
|
177
|
+
- [charts-pro] Sampled band highlight falls back to single-band width for Date/object values (#23024) @SamanPandey-in
|
|
178
|
+
|
|
179
|
+
#### `@mui/x-charts-premium@9.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
180
|
+
|
|
181
|
+
Same changes as in `@mui/x-charts-pro@9.10.1`.
|
|
182
|
+
|
|
183
|
+
### Tree View
|
|
184
|
+
|
|
185
|
+
#### `@mui/x-tree-view@9.10.1`
|
|
186
|
+
|
|
187
|
+
- [TreeView] Fix selection propagation to exclude disabled items (#23012) @michelengelen
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-tree-view-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
190
|
+
|
|
191
|
+
Same changes as in `@mui/x-tree-view@9.10.1`.
|
|
192
|
+
|
|
193
|
+
### Scheduler
|
|
194
|
+
|
|
195
|
+
#### `@mui/x-scheduler@9.0.0-beta.7`
|
|
196
|
+
|
|
197
|
+
- [scheduler] Polish `EventCalendar` rendering for multi-resource events (#23161) @mustafajw07
|
|
198
|
+
- [scheduler] Responsive header (#22954) @noraleonte
|
|
199
|
+
|
|
200
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.7` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
201
|
+
|
|
202
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.7`, plus:
|
|
203
|
+
|
|
204
|
+
- [scheduler-premium] Add the dependencies data model (#23117) @rita-codes
|
|
205
|
+
- [scheduler-premium] Dependencies - Render the FS arrow (#23162) @rita-codes
|
|
206
|
+
|
|
207
|
+
### Codemod
|
|
208
|
+
|
|
209
|
+
#### `@mui/x-codemod@9.10.1`
|
|
210
|
+
|
|
211
|
+
Internal changes.
|
|
212
|
+
|
|
213
|
+
### Docs
|
|
214
|
+
|
|
215
|
+
- [docs] Fix clearing, layout shift, and prop leak in Pickers demos (#23191) @LukasTy
|
|
216
|
+
|
|
217
|
+
### Core
|
|
218
|
+
|
|
219
|
+
- [code-infra] Validate working of specific code-infra canary (#23207) @brijeshb42
|
|
220
|
+
|
|
221
|
+
### Miscellaneous
|
|
222
|
+
|
|
223
|
+
- [chat] Normalize message part link URLs (#23187) @hasdfa
|
|
224
|
+
- [x-chat] Fix object URL leaks for submitted attachments (#23198) @hasdfa
|
|
225
|
+
- [internals] Make disposable types self-contained without `esnext.disposable` lib (#23164) @JCQuintas
|
|
226
|
+
|
|
3
227
|
## 9.10.0
|
|
4
228
|
|
|
5
229
|
_Jul 17, 2026_
|
|
@@ -51,8 +51,8 @@ const configuration = {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
const packageInfo = {
|
|
54
|
-
releaseDate: "
|
|
55
|
-
version: "9.
|
|
54
|
+
releaseDate: "MTc4NTk3NDQwMDAwMA==",
|
|
55
|
+
version: "9.11.0",
|
|
56
56
|
name: 'x-data-grid-premium'
|
|
57
57
|
};
|
|
58
58
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.Watermark, {
|
|
@@ -44,8 +44,8 @@ const configuration = {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
const packageInfo = {
|
|
47
|
-
releaseDate: "
|
|
48
|
-
version: "9.
|
|
47
|
+
releaseDate: "MTc4NTk3NDQwMDAwMA==",
|
|
48
|
+
version: "9.11.0",
|
|
49
49
|
name: 'x-data-grid-premium'
|
|
50
50
|
};
|
|
51
51
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
package/README.md
CHANGED
|
@@ -8,17 +8,7 @@ It's part of [MUI X](https://mui.com/x/), an open-core extension of our Core li
|
|
|
8
8
|
Install the package in your project directory with:
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npm install @mui/x-data-grid-premium
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
This component has the following peer dependencies that you need to install as well.
|
|
15
|
-
|
|
16
|
-
```json
|
|
17
|
-
"peerDependencies": {
|
|
18
|
-
"@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0",
|
|
19
|
-
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
20
|
-
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
21
|
-
},
|
|
11
|
+
npm install @mui/x-data-grid-premium @mui/material @emotion/react @emotion/styled
|
|
22
12
|
```
|
|
23
13
|
|
|
24
14
|
## Documentation
|
|
@@ -61,7 +61,7 @@ function GridGroupingCriteriaCell(props) {
|
|
|
61
61
|
};
|
|
62
62
|
let cellContent;
|
|
63
63
|
const colDef = apiRef.current.getColumn(rowNode.groupingField);
|
|
64
|
-
if (typeof colDef.renderCell === 'function') {
|
|
64
|
+
if (colDef && typeof colDef.renderCell === 'function') {
|
|
65
65
|
cellContent = colDef.renderCell(props);
|
|
66
66
|
} else if (typeof formattedValue !== 'undefined') {
|
|
67
67
|
cellContent = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -53,7 +53,7 @@ export function GridGroupingCriteriaCell(props) {
|
|
|
53
53
|
};
|
|
54
54
|
let cellContent;
|
|
55
55
|
const colDef = apiRef.current.getColumn(rowNode.groupingField);
|
|
56
|
-
if (typeof colDef.renderCell === 'function') {
|
|
56
|
+
if (colDef && typeof colDef.renderCell === 'function') {
|
|
57
57
|
cellContent = colDef.renderCell(props);
|
|
58
58
|
} else if (typeof formattedValue !== 'undefined') {
|
|
59
59
|
cellContent = /*#__PURE__*/_jsx("span", {
|
|
@@ -141,11 +141,14 @@ function AggregationSelect({
|
|
|
141
141
|
const pivotActive = (0, _internals.gridPivotActiveSelector)(apiRef);
|
|
142
142
|
const getActualFieldName = React.useCallback(fieldName => pivotActive ? fieldName.split(_columnGroups.COLUMN_GROUP_ID_SEPARATOR).slice(-1)[0] : fieldName, [pivotActive]);
|
|
143
143
|
const colDef = React.useCallback(fieldName => apiRef.current.getColumn(getActualFieldName(fieldName)), [apiRef, getActualFieldName]);
|
|
144
|
-
const availableAggregationFunctions = React.useMemo(() =>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
const availableAggregationFunctions = React.useMemo(() => {
|
|
145
|
+
const column = colDef(field);
|
|
146
|
+
return [...(pivotActive ? [] : [AGGREGATION_FUNCTION_NONE]), ...(column ? (0, _gridAggregationUtils.getAvailableAggregationFunctions)({
|
|
147
|
+
aggregationFunctions: rootProps.aggregationFunctions,
|
|
148
|
+
colDef: column,
|
|
149
|
+
isDataSource: !!rootProps.dataSource
|
|
150
|
+
}) : [])];
|
|
151
|
+
}, [colDef, field, pivotActive, rootProps.aggregationFunctions, rootProps.dataSource]);
|
|
149
152
|
const handleClick = React.useCallback(func => {
|
|
150
153
|
if (pivotActive) {
|
|
151
154
|
const fieldName = getActualFieldName(field);
|
|
@@ -133,11 +133,14 @@ export function AggregationSelect({
|
|
|
133
133
|
const pivotActive = gridPivotActiveSelector(apiRef);
|
|
134
134
|
const getActualFieldName = React.useCallback(fieldName => pivotActive ? fieldName.split(COLUMN_GROUP_ID_SEPARATOR).slice(-1)[0] : fieldName, [pivotActive]);
|
|
135
135
|
const colDef = React.useCallback(fieldName => apiRef.current.getColumn(getActualFieldName(fieldName)), [apiRef, getActualFieldName]);
|
|
136
|
-
const availableAggregationFunctions = React.useMemo(() =>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
const availableAggregationFunctions = React.useMemo(() => {
|
|
137
|
+
const column = colDef(field);
|
|
138
|
+
return [...(pivotActive ? [] : [AGGREGATION_FUNCTION_NONE]), ...(column ? getAvailableAggregationFunctions({
|
|
139
|
+
aggregationFunctions: rootProps.aggregationFunctions,
|
|
140
|
+
colDef: column,
|
|
141
|
+
isDataSource: !!rootProps.dataSource
|
|
142
|
+
}) : [])];
|
|
143
|
+
}, [colDef, field, pivotActive, rootProps.aggregationFunctions, rootProps.dataSource]);
|
|
141
144
|
const handleClick = React.useCallback(func => {
|
|
142
145
|
if (pivotActive) {
|
|
143
146
|
const fieldName = getActualFieldName(field);
|
|
@@ -173,7 +173,7 @@ const useGridCellSelection = (apiRef, props) => {
|
|
|
173
173
|
return false;
|
|
174
174
|
}
|
|
175
175
|
const column = apiRef.current.getColumn(params.field);
|
|
176
|
-
if (column
|
|
176
|
+
if (column?.type === _xDataGridPro.GRID_ACTIONS_COLUMN_TYPE) {
|
|
177
177
|
return false;
|
|
178
178
|
}
|
|
179
179
|
return params.rowNode.type !== 'pinnedRow';
|
|
@@ -165,7 +165,7 @@ export const useGridCellSelection = (apiRef, props) => {
|
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
const column = apiRef.current.getColumn(params.field);
|
|
168
|
-
if (column
|
|
168
|
+
if (column?.type === GRID_ACTIONS_COLUMN_TYPE) {
|
|
169
169
|
return false;
|
|
170
170
|
}
|
|
171
171
|
return params.rowNode.type !== 'pinnedRow';
|
|
@@ -191,12 +191,14 @@ const useGridChartsIntegration = (apiRef, props) => {
|
|
|
191
191
|
const dataColumns = [...new Set([...Object.values(visibleDimensions.current).flat(), ...Object.values(visibleValues.current).flat()])].map(column => {
|
|
192
192
|
const isColumnGrouped = rowGroupingModel.includes(column.field);
|
|
193
193
|
if (isColumnGrouped) {
|
|
194
|
-
const groupedFieldName =
|
|
194
|
+
const groupedFieldName = (0, _gridRowGroupingUtils.getRowGroupingFieldFromGroupingCriteria)(orderedFields.includes(_internals.GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD) ? null : column.field);
|
|
195
195
|
const columnDefinition = apiRef.current.getColumn(groupedFieldName);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
if (columnDefinition) {
|
|
197
|
+
return (0, _extends2.default)({}, columnDefinition, {
|
|
198
|
+
dataFieldName: column.field,
|
|
199
|
+
depth: rowGroupingModel.indexOf(column.field)
|
|
200
|
+
});
|
|
201
|
+
}
|
|
200
202
|
}
|
|
201
203
|
return (0, _extends2.default)({}, column, {
|
|
202
204
|
dataFieldName: column.field,
|
|
@@ -183,12 +183,14 @@ export const useGridChartsIntegration = (apiRef, props) => {
|
|
|
183
183
|
const dataColumns = [...new Set([...Object.values(visibleDimensions.current).flat(), ...Object.values(visibleValues.current).flat()])].map(column => {
|
|
184
184
|
const isColumnGrouped = rowGroupingModel.includes(column.field);
|
|
185
185
|
if (isColumnGrouped) {
|
|
186
|
-
const groupedFieldName =
|
|
186
|
+
const groupedFieldName = getRowGroupingFieldFromGroupingCriteria(orderedFields.includes(GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD) ? null : column.field);
|
|
187
187
|
const columnDefinition = apiRef.current.getColumn(groupedFieldName);
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
if (columnDefinition) {
|
|
189
|
+
return _extends({}, columnDefinition, {
|
|
190
|
+
dataFieldName: column.field,
|
|
191
|
+
depth: rowGroupingModel.indexOf(column.field)
|
|
192
|
+
});
|
|
193
|
+
}
|
|
192
194
|
}
|
|
193
195
|
return _extends({}, column, {
|
|
194
196
|
dataFieldName: column.field,
|
package/index.js
CHANGED
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.11.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Premium plan edition of the MUI X Data Grid Components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.29.7",
|
|
37
37
|
"@base-ui/utils": "^0.3.1",
|
|
38
|
-
"@mui/utils": "^9.
|
|
38
|
+
"@mui/utils": "^9.3.0",
|
|
39
39
|
"@mui/x-internal-exceljs-fork": "5.0.0",
|
|
40
40
|
"clsx": "^2.1.1",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
|
-
"@mui/x-data-grid": "^9.
|
|
43
|
-
"@mui/x-
|
|
44
|
-
"@mui/x-internals": "^9.
|
|
45
|
-
"@mui/x-
|
|
42
|
+
"@mui/x-data-grid": "^9.11.0",
|
|
43
|
+
"@mui/x-license": "^9.11.0",
|
|
44
|
+
"@mui/x-internals": "^9.11.0",
|
|
45
|
+
"@mui/x-data-grid-pro": "^9.11.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|