@mui/x-data-grid-premium 8.11.1 → 8.11.3
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 +181 -0
- package/DataGridPremium/DataGridPremium.js +6 -1
- package/components/promptField/PromptFieldControl.js +1 -1
- package/esm/DataGridPremium/DataGridPremium.js +6 -1
- package/esm/components/promptField/PromptFieldControl.js +1 -1
- package/esm/hooks/features/aggregation/createAggregationLookup.js +18 -9
- package/esm/hooks/features/rows/useGridRowsOverridableMethods.d.ts +1 -1
- package/esm/hooks/features/rows/useGridRowsOverridableMethods.js +7 -3
- package/esm/index.js +1 -1
- package/hooks/features/aggregation/createAggregationLookup.js +18 -9
- package/hooks/features/rows/useGridRowsOverridableMethods.d.ts +1 -1
- package/hooks/features/rows/useGridRowsOverridableMethods.js +5 -1
- package/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,187 @@
|
|
|
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.11.3
|
|
9
|
+
|
|
10
|
+
_Sep 16, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
|
|
17
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
18
|
+
@sai6855
|
|
19
|
+
|
|
20
|
+
The following are all team members who have contributed to this release:
|
|
21
|
+
@alexfauquette, @bernardobelchior, @brijeshb42, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @rita-codes, @siriwatknp
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@8.11.3`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Fix numeric font size not being applied (#19552) @cherniavskii
|
|
28
|
+
- [DataGrid] Improve `operator` types to display literal values (#19529) @siriwatknp
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@8.11.3`.
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-premium@8.11.3` [](https://mui.com/r/x-premium-svg-link "Premium plan")
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid-pro@8.11.3`.
|
|
37
|
+
|
|
38
|
+
### Date and Time Pickers
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-date-pickers@8.11.3`
|
|
41
|
+
|
|
42
|
+
- [pickers] Refactor `slots` and `slotProps` propagation strategy (#18867) @LukasTy
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-date-pickers-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
45
|
+
|
|
46
|
+
Same changes as in `@mui/x-date-pickers@8.11.3`.
|
|
47
|
+
|
|
48
|
+
### Charts
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-charts@8.11.3`
|
|
51
|
+
|
|
52
|
+
- [charts] Add `inline-` piecewise legend options (#19382) @JCQuintas
|
|
53
|
+
- [charts] Add bar gradient example (#19174) @bernardobelchior
|
|
54
|
+
- [charts] Ignore empty tick labels in label overlap computation (#19547) @alexfauquette
|
|
55
|
+
- [charts] Rename `isBandScale` to `isDiscreteScale` (#19514) @bernardobelchior
|
|
56
|
+
- [charts] Fix legend position affecting toolbar's position (#19257) @sai6855
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
59
|
+
|
|
60
|
+
Same changes as in `@mui/x-charts@8.11.3`, plus:
|
|
61
|
+
|
|
62
|
+
- [charts-pro] Add chart title and caption to export demo (#19524) @bernardobelchior
|
|
63
|
+
|
|
64
|
+
### Tree View
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-tree-view@8.11.3`
|
|
67
|
+
|
|
68
|
+
- [tree view] Stop looping through all items to publish the `removeItem` event (#19500) @flaviendelangle
|
|
69
|
+
- [tree view] Support flat DOM structure (#19350) @flaviendelangle
|
|
70
|
+
- [tree view] Update cursor styles for disabled TreeItem (#19548) @sai6855
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-tree-view-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
73
|
+
|
|
74
|
+
Same changes as in `@mui/x-tree-view@8.11.3`.
|
|
75
|
+
|
|
76
|
+
### Codemod
|
|
77
|
+
|
|
78
|
+
#### `@mui/x-codemod@8.11.3`
|
|
79
|
+
|
|
80
|
+
Internal changes.
|
|
81
|
+
|
|
82
|
+
### Docs
|
|
83
|
+
|
|
84
|
+
- [docs] Add styling row group recipe (#19349) @siriwatknp
|
|
85
|
+
- [docs] Group demos data into the dataset folder (#19549) @alexfauquette
|
|
86
|
+
- [docs] Add `shiny` bar chart example at the top (#19416) @JCQuintas
|
|
87
|
+
|
|
88
|
+
### Core
|
|
89
|
+
|
|
90
|
+
- [code-infra] Axios update (#19577) @Janpot
|
|
91
|
+
- [code-infra] Remove usage of copy-files command from code-infra (#19518) @brijeshb42
|
|
92
|
+
- [internal] Fix naming to match convention @oliviertassinari
|
|
93
|
+
|
|
94
|
+
## 8.11.2
|
|
95
|
+
|
|
96
|
+
_Sep 10, 2025_
|
|
97
|
+
|
|
98
|
+
We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
99
|
+
|
|
100
|
+
- 🐞 Bugfixes
|
|
101
|
+
- 📚 Documentation improvements
|
|
102
|
+
|
|
103
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
104
|
+
@ludvigeriksson, @sai6855
|
|
105
|
+
|
|
106
|
+
The following are all team members who have contributed to this release:
|
|
107
|
+
@alexfauquette, @bernardobelchior, @brijeshb42, @flaviendelangle, @Janpot, @LukasTy, @MBilalShafi, @noraleonte, @rita-codes, @romgrk, @siriwatknp
|
|
108
|
+
|
|
109
|
+
### Data Grid
|
|
110
|
+
|
|
111
|
+
#### `@mui/x-data-grid@8.11.2`
|
|
112
|
+
|
|
113
|
+
- [DataGrid] Allow opting out of the exclude row selection model (#19423) @MBilalShafi
|
|
114
|
+
- [DataGrid] Fix column dropdown menu text alignment for the "Unpin" menu item (#19462) @MBilalShafi
|
|
115
|
+
- [DataGrid] Fix indeterminate state for "Select all" checkbox with exclude model (#19466) @MBilalShafi
|
|
116
|
+
- [DataGrid] Fix styled API arguments error (#19460) @MBilalShafi
|
|
117
|
+
- [DataGrid] Fix `stringify()` for theme objects (#19427) @romgrk
|
|
118
|
+
|
|
119
|
+
#### `@mui/x-data-grid-pro@8.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
120
|
+
|
|
121
|
+
Same changes as in `@mui/x-data-grid@8.11.2`.
|
|
122
|
+
|
|
123
|
+
#### `@mui/x-data-grid-premium@8.11.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
124
|
+
|
|
125
|
+
Same changes as in `@mui/x-data-grid-pro@8.11.2`, plus:
|
|
126
|
+
|
|
127
|
+
- [DataGridPremium] Fallback to the regular reorder method for plain data (#19467) @MBilalShafi
|
|
128
|
+
- [DataGridPremium] Fix showing `0` as total aggregation value when aggregation position is set to `null` for row groups (#19515) @cherniavskii
|
|
129
|
+
|
|
130
|
+
### Date and Time Pickers
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-date-pickers@8.11.2`
|
|
133
|
+
|
|
134
|
+
- [pickers] Gracefully handle `textField.slotProps` (#18980) @LukasTy
|
|
135
|
+
- [pickers] Improve hour and minute placement in Date Time Picker (#19227) @MBilalShafi
|
|
136
|
+
- [pickers] Use `calendarState.currentMonth` in Month Calendar when available (#19073) @LukasTy
|
|
137
|
+
- [pickers] Improve invalid value pasting into a section (#19357) @sai6855
|
|
138
|
+
- [fields] Remove redundant `id` and `aria-labelledby` attributes from spinbuttons (#19523) @LukasTy
|
|
139
|
+
|
|
140
|
+
#### `@mui/x-date-pickers-pro@8.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
141
|
+
|
|
142
|
+
Same changes as in `@mui/x-date-pickers@8.11.2`.
|
|
143
|
+
|
|
144
|
+
### Charts
|
|
145
|
+
|
|
146
|
+
#### `@mui/x-charts@8.11.2`
|
|
147
|
+
|
|
148
|
+
- [charts] Fix highlight regression (#19486) @alexfauquette
|
|
149
|
+
- [charts] Improve code reuse in `ChartsXAxis` and `ChartsYAxis` (#19198) @bernardobelchior
|
|
150
|
+
- [charts] Simplify params in `getRange` and `createDateFormatter` (#19517) @bernardobelchior
|
|
151
|
+
- [charts] Handle domain edge cases with `filterMode: 'discard'` (#19199) @bernardobelchior
|
|
152
|
+
- [l10n] Add Swedish (sv-SE) locale (#19489) @ludvigeriksson
|
|
153
|
+
|
|
154
|
+
#### `@mui/x-charts-pro@8.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
155
|
+
|
|
156
|
+
Same changes as in `@mui/x-charts@8.11.2`.
|
|
157
|
+
|
|
158
|
+
### Tree View
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-tree-view@8.11.2`
|
|
161
|
+
|
|
162
|
+
- [TreeView] Do not mutate `props.items` in the `getItemTree()` method (#19483) @flaviendelangle
|
|
163
|
+
- [TreeView] Expose a new hook to apply selection propagation on the selected items (#19402) @flaviendelangle
|
|
164
|
+
|
|
165
|
+
#### `@mui/x-tree-view-pro@8.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
166
|
+
|
|
167
|
+
Same changes as in `@mui/x-tree-view@8.11.2`.
|
|
168
|
+
|
|
169
|
+
### Codemod
|
|
170
|
+
|
|
171
|
+
#### `@mui/x-codemod@8.11.2`
|
|
172
|
+
|
|
173
|
+
Internal changes.
|
|
174
|
+
|
|
175
|
+
### Docs
|
|
176
|
+
|
|
177
|
+
- [docs] Add recipe for save and manage filters from the panel (#19361) @siriwatknp
|
|
178
|
+
|
|
179
|
+
### Core
|
|
180
|
+
|
|
181
|
+
- [code-infra] Remove log when restarting dev server (#19490) @bernardobelchior
|
|
182
|
+
- [code-infra] Store test results in CI (#19507) @Janpot
|
|
183
|
+
|
|
184
|
+
### Miscellaneous
|
|
185
|
+
|
|
186
|
+
- [infra] Set nodejs versions of various CIs to 22.18 (#19503) @brijeshb42
|
|
187
|
+
- [test] Split infinitive @romgrk
|
|
188
|
+
|
|
8
189
|
## 8.11.1
|
|
9
190
|
|
|
10
191
|
_Sep 4, 2025_
|
|
@@ -40,7 +40,7 @@ const configuration = {
|
|
|
40
40
|
useGridRowsOverridableMethods: _useGridRowsOverridableMethods.useGridRowsOverridableMethods
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const releaseInfo = "
|
|
43
|
+
const releaseInfo = "MTc1ODA2NzIwMDAwMA==";
|
|
44
44
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
45
45
|
packageName: "x-data-grid-premium",
|
|
46
46
|
releaseInfo: releaseInfo
|
|
@@ -376,6 +376,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
376
376
|
* @default false
|
|
377
377
|
*/
|
|
378
378
|
disableRowGrouping: _propTypes.default.bool,
|
|
379
|
+
/**
|
|
380
|
+
* If `true`, the Data Grid will not use the exclude model optimization when selecting all rows.
|
|
381
|
+
* @default false
|
|
382
|
+
*/
|
|
383
|
+
disableRowSelectionExcludeModel: _propTypes.default.bool,
|
|
379
384
|
/**
|
|
380
385
|
* If `true`, the selection on click on a row or cell is disabled.
|
|
381
386
|
* @default false
|
|
@@ -98,6 +98,6 @@ process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes = {
|
|
|
98
98
|
slotProps: _propTypes.default.object,
|
|
99
99
|
style: _propTypes.default.object,
|
|
100
100
|
tabIndex: _propTypes.default.number,
|
|
101
|
-
type: _propTypes.default.
|
|
101
|
+
type: _propTypes.default.string,
|
|
102
102
|
value: _propTypes.default.string
|
|
103
103
|
} : void 0;
|
|
@@ -33,7 +33,7 @@ const configuration = {
|
|
|
33
33
|
useGridRowsOverridableMethods
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
const releaseInfo = "
|
|
36
|
+
const releaseInfo = "MTc1ODA2NzIwMDAwMA==";
|
|
37
37
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
|
38
38
|
packageName: "x-data-grid-premium",
|
|
39
39
|
releaseInfo: releaseInfo
|
|
@@ -369,6 +369,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
369
369
|
* @default false
|
|
370
370
|
*/
|
|
371
371
|
disableRowGrouping: PropTypes.bool,
|
|
372
|
+
/**
|
|
373
|
+
* If `true`, the Data Grid will not use the exclude model optimization when selecting all rows.
|
|
374
|
+
* @default false
|
|
375
|
+
*/
|
|
376
|
+
disableRowSelectionExcludeModel: PropTypes.bool,
|
|
372
377
|
/**
|
|
373
378
|
* If `true`, the selection on click on a row or cell is disabled.
|
|
374
379
|
* @default false
|
|
@@ -90,7 +90,7 @@ process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes = {
|
|
|
90
90
|
slotProps: PropTypes.object,
|
|
91
91
|
style: PropTypes.object,
|
|
92
92
|
tabIndex: PropTypes.number,
|
|
93
|
-
type: PropTypes.
|
|
93
|
+
type: PropTypes.string,
|
|
94
94
|
value: PropTypes.string
|
|
95
95
|
} : void 0;
|
|
96
96
|
export { PromptFieldControl };
|
|
@@ -73,10 +73,14 @@ const getGroupAggregatedValue = (groupId, apiRef, aggregationRowsScope, aggregat
|
|
|
73
73
|
groupId,
|
|
74
74
|
field: aggregatedField // Added per user request in https://github.com/mui/mui-x/issues/6995#issuecomment-1327423455
|
|
75
75
|
}, publicApi);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
|
|
77
|
+
// Only add to groupAggregationLookup if position is not null
|
|
78
|
+
if (position !== null) {
|
|
79
|
+
groupAggregationLookup[aggregatedField] = {
|
|
80
|
+
position,
|
|
81
|
+
value
|
|
82
|
+
};
|
|
83
|
+
}
|
|
80
84
|
}
|
|
81
85
|
return {
|
|
82
86
|
groupAggregationLookup,
|
|
@@ -133,13 +137,18 @@ export const createAggregationLookup = ({
|
|
|
133
137
|
}
|
|
134
138
|
}
|
|
135
139
|
const position = getAggregationPosition(groupNode);
|
|
136
|
-
if (
|
|
137
|
-
if (
|
|
140
|
+
if (isDataSource) {
|
|
141
|
+
if (position !== null) {
|
|
138
142
|
aggregationLookup[groupNode.id] = getGroupAggregatedValueDataSource(groupNode.id, apiRef, aggregatedFields, position);
|
|
139
|
-
}
|
|
140
|
-
|
|
143
|
+
}
|
|
144
|
+
} else if (groupNode.children.length) {
|
|
145
|
+
const result = getGroupAggregatedValue(groupNode.id, apiRef, aggregationRowsScope, aggregatedFields, aggregationRules, position, applySorting, valueGetters, apiRef.current, groupAggregatedValuesLookup);
|
|
146
|
+
// Always populate groupAggregatedValuesLookup for groups with children
|
|
147
|
+
// This ensures parent groups can access child aggregated values even when position is null
|
|
148
|
+
groupAggregatedValuesLookup.set(groupNode.id, result.aggregatedValues);
|
|
149
|
+
// Only set aggregationLookup if position is not null (meaning aggregation should be displayed)
|
|
150
|
+
if (position !== null) {
|
|
141
151
|
aggregationLookup[groupNode.id] = result.groupAggregationLookup;
|
|
142
|
-
groupAggregatedValuesLookup.set(groupNode.id, result.aggregatedValues);
|
|
143
152
|
}
|
|
144
153
|
}
|
|
145
154
|
};
|
|
@@ -3,5 +3,5 @@ import type { RefObject } from '@mui/x-internals/types';
|
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
4
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
5
5
|
export declare const useGridRowsOverridableMethods: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "processRowUpdate" | "onProcessRowUpdateError">) => {
|
|
6
|
-
setRowIndex: (
|
|
6
|
+
setRowIndex: (rowId: GridRowId, targetIndex: number) => void;
|
|
7
7
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { gridRowTreeSelector, gridExpandedSortedRowIdsSelector, gridRowNodeSelector } from '@mui/x-data-grid-pro';
|
|
3
|
-
import { gridExpandedSortedRowIndexLookupSelector } from '@mui/x-data-grid-pro/internals';
|
|
2
|
+
import { gridRowTreeSelector, gridExpandedSortedRowIdsSelector, gridRowNodeSelector, gridRowMaximumTreeDepthSelector } from '@mui/x-data-grid-pro';
|
|
3
|
+
import { gridExpandedSortedRowIndexLookupSelector, useGridRowsOverridableMethods as useGridRowsOverridableMethodsCommunity, useGridSelector } from '@mui/x-data-grid-pro/internals';
|
|
4
4
|
import { rowGroupingReorderExecutor } from "../rowReorder/reorderExecutor.js";
|
|
5
5
|
export const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
6
6
|
const {
|
|
7
7
|
processRowUpdate,
|
|
8
8
|
onProcessRowUpdateError
|
|
9
9
|
} = props;
|
|
10
|
+
const {
|
|
11
|
+
setRowIndex: setRowIndexPlain
|
|
12
|
+
} = useGridRowsOverridableMethodsCommunity(apiRef);
|
|
13
|
+
const flatTree = useGridSelector(apiRef, gridRowMaximumTreeDepthSelector) === 1;
|
|
10
14
|
const setRowIndex = React.useCallback(async (sourceRowId, targetOriginalIndex) => {
|
|
11
15
|
const sortedFilteredRowIds = gridExpandedSortedRowIdsSelector(apiRef);
|
|
12
16
|
const sortedFilteredRowIndexLookup = gridExpandedSortedRowIndexLookupSelector(apiRef);
|
|
@@ -47,6 +51,6 @@ export const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
|
47
51
|
await rowGroupingReorderExecutor.execute(executionContext);
|
|
48
52
|
}, [apiRef, processRowUpdate, onProcessRowUpdateError]);
|
|
49
53
|
return {
|
|
50
|
-
setRowIndex
|
|
54
|
+
setRowIndex: flatTree ? setRowIndexPlain : setRowIndex
|
|
51
55
|
};
|
|
52
56
|
};
|
package/esm/index.js
CHANGED
|
@@ -80,10 +80,14 @@ const getGroupAggregatedValue = (groupId, apiRef, aggregationRowsScope, aggregat
|
|
|
80
80
|
groupId,
|
|
81
81
|
field: aggregatedField // Added per user request in https://github.com/mui/mui-x/issues/6995#issuecomment-1327423455
|
|
82
82
|
}, publicApi);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
|
|
84
|
+
// Only add to groupAggregationLookup if position is not null
|
|
85
|
+
if (position !== null) {
|
|
86
|
+
groupAggregationLookup[aggregatedField] = {
|
|
87
|
+
position,
|
|
88
|
+
value
|
|
89
|
+
};
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
92
|
return {
|
|
89
93
|
groupAggregationLookup,
|
|
@@ -140,13 +144,18 @@ const createAggregationLookup = ({
|
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
146
|
const position = getAggregationPosition(groupNode);
|
|
143
|
-
if (
|
|
144
|
-
if (
|
|
147
|
+
if (isDataSource) {
|
|
148
|
+
if (position !== null) {
|
|
145
149
|
aggregationLookup[groupNode.id] = getGroupAggregatedValueDataSource(groupNode.id, apiRef, aggregatedFields, position);
|
|
146
|
-
}
|
|
147
|
-
|
|
150
|
+
}
|
|
151
|
+
} else if (groupNode.children.length) {
|
|
152
|
+
const result = getGroupAggregatedValue(groupNode.id, apiRef, aggregationRowsScope, aggregatedFields, aggregationRules, position, applySorting, valueGetters, apiRef.current, groupAggregatedValuesLookup);
|
|
153
|
+
// Always populate groupAggregatedValuesLookup for groups with children
|
|
154
|
+
// This ensures parent groups can access child aggregated values even when position is null
|
|
155
|
+
groupAggregatedValuesLookup.set(groupNode.id, result.aggregatedValues);
|
|
156
|
+
// Only set aggregationLookup if position is not null (meaning aggregation should be displayed)
|
|
157
|
+
if (position !== null) {
|
|
148
158
|
aggregationLookup[groupNode.id] = result.groupAggregationLookup;
|
|
149
|
-
groupAggregatedValuesLookup.set(groupNode.id, result.aggregatedValues);
|
|
150
159
|
}
|
|
151
160
|
}
|
|
152
161
|
};
|
|
@@ -3,5 +3,5 @@ import type { RefObject } from '@mui/x-internals/types';
|
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
4
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
5
5
|
export declare const useGridRowsOverridableMethods: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "processRowUpdate" | "onProcessRowUpdateError">) => {
|
|
6
|
-
setRowIndex: (
|
|
6
|
+
setRowIndex: (rowId: GridRowId, targetIndex: number) => void;
|
|
7
7
|
};
|
|
@@ -14,6 +14,10 @@ const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
|
14
14
|
processRowUpdate,
|
|
15
15
|
onProcessRowUpdateError
|
|
16
16
|
} = props;
|
|
17
|
+
const {
|
|
18
|
+
setRowIndex: setRowIndexPlain
|
|
19
|
+
} = (0, _internals.useGridRowsOverridableMethods)(apiRef);
|
|
20
|
+
const flatTree = (0, _internals.useGridSelector)(apiRef, _xDataGridPro.gridRowMaximumTreeDepthSelector) === 1;
|
|
17
21
|
const setRowIndex = React.useCallback(async (sourceRowId, targetOriginalIndex) => {
|
|
18
22
|
const sortedFilteredRowIds = (0, _xDataGridPro.gridExpandedSortedRowIdsSelector)(apiRef);
|
|
19
23
|
const sortedFilteredRowIndexLookup = (0, _internals.gridExpandedSortedRowIndexLookupSelector)(apiRef);
|
|
@@ -54,7 +58,7 @@ const useGridRowsOverridableMethods = (apiRef, props) => {
|
|
|
54
58
|
await _reorderExecutor.rowGroupingReorderExecutor.execute(executionContext);
|
|
55
59
|
}, [apiRef, processRowUpdate, onProcessRowUpdateError]);
|
|
56
60
|
return {
|
|
57
|
-
setRowIndex
|
|
61
|
+
setRowIndex: flatTree ? setRowIndexPlain : setRowIndex
|
|
58
62
|
};
|
|
59
63
|
};
|
|
60
64
|
exports.useGridRowsOverridableMethods = useGridRowsOverridableMethods;
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.3",
|
|
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",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.28.2",
|
|
37
|
-
"@mui/utils": "^7.3.
|
|
37
|
+
"@mui/utils": "^7.3.2",
|
|
38
38
|
"@types/format-util": "^1.0.4",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"exceljs": "^4.4.0",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
|
-
"@mui/x-data-grid": "8.11.
|
|
43
|
-
"@mui/x-internals": "8.11.
|
|
44
|
-
"@mui/x-
|
|
45
|
-
"@mui/x-
|
|
42
|
+
"@mui/x-data-grid": "8.11.3",
|
|
43
|
+
"@mui/x-internals": "8.11.3",
|
|
44
|
+
"@mui/x-license": "8.11.3",
|
|
45
|
+
"@mui/x-data-grid-pro": "8.11.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|