@mui/x-data-grid-premium 8.12.0 → 8.12.1
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 +24 -0
- package/DataGridPremium/DataGridPremium.js +1 -1
- package/esm/DataGridPremium/DataGridPremium.js +1 -1
- package/esm/hooks/features/chartsIntegration/useGridChartsIntegration.js +5 -2
- package/esm/index.js +1 -1
- package/hooks/features/chartsIntegration/useGridChartsIntegration.js +4 -1
- package/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,30 @@
|
|
|
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.12.1
|
|
9
|
+
|
|
10
|
+
_Sep 25, 2025_
|
|
11
|
+
|
|
12
|
+
Release highlight ✨:
|
|
13
|
+
|
|
14
|
+
- 🐞 Hotfix for Grid-Charts integration issue with aggregated values
|
|
15
|
+
|
|
16
|
+
### Data Grid
|
|
17
|
+
|
|
18
|
+
#### `@mui/x-data-grid@8.12.1`
|
|
19
|
+
|
|
20
|
+
Internal changes.
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid-pro@8.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
23
|
+
|
|
24
|
+
Same changes as in `@mui/x-data-grid@8.12.1`.
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-premium@8.12.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid-pro@8.12.1`, plus:
|
|
29
|
+
|
|
30
|
+
- [DataGridPremium] Collect aggregated values properly for the charts integration context (#19714) @arminmeh
|
|
31
|
+
|
|
8
32
|
## 8.12.0
|
|
9
33
|
|
|
10
34
|
_Sep 25, 2025_
|
|
@@ -53,7 +53,7 @@ const configuration = {
|
|
|
53
53
|
useGridRowsOverridableMethods: _useGridRowsOverridableMethods.useGridRowsOverridableMethods
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
const releaseInfo = "
|
|
56
|
+
const releaseInfo = "MTc1ODc1ODQwMDAwMA==";
|
|
57
57
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
58
58
|
packageName: "x-data-grid-premium",
|
|
59
59
|
releaseInfo: releaseInfo
|
|
@@ -46,7 +46,7 @@ const configuration = {
|
|
|
46
46
|
useGridRowsOverridableMethods
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
const releaseInfo = "
|
|
49
|
+
const releaseInfo = "MTc1ODc1ODQwMDAwMA==";
|
|
50
50
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
|
51
51
|
packageName: "x-data-grid-premium",
|
|
52
52
|
releaseInfo: releaseInfo
|
|
@@ -12,7 +12,7 @@ import { isBlockedForSection } from "./utils.js";
|
|
|
12
12
|
import { gridRowGroupingSanitizedModelSelector } from "../rowGrouping/gridRowGroupingSelector.js";
|
|
13
13
|
import { GridSidebarValue } from "../sidebar/index.js";
|
|
14
14
|
import { getAggregationFunctionLabel, getAvailableAggregationFunctions } from "../aggregation/gridAggregationUtils.js";
|
|
15
|
-
import { gridAggregationModelSelector } from "../aggregation/gridAggregationSelectors.js";
|
|
15
|
+
import { gridAggregationModelSelector, gridCellAggregationResultSelector } from "../aggregation/gridAggregationSelectors.js";
|
|
16
16
|
import { gridPivotModelSelector } from "../pivoting/gridPivotingSelectors.js";
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
export const chartsIntegrationStateInitializer = (state, props) => {
|
|
@@ -205,7 +205,10 @@ export const useGridChartsIntegration = (apiRef, props) => {
|
|
|
205
205
|
const rowId = gridRowIdSelector(apiRef, targetRow);
|
|
206
206
|
targetRow = gridRowNodeSelector(apiRef, rowTree[rowId].parent);
|
|
207
207
|
}
|
|
208
|
-
const value = apiRef
|
|
208
|
+
const value = gridCellAggregationResultSelector(apiRef, {
|
|
209
|
+
id: gridRowIdSelector(apiRef, targetRow),
|
|
210
|
+
field: dataColumns[j].field
|
|
211
|
+
})?.value ?? apiRef.current.getRowValue(targetRow, dataColumns[j]);
|
|
209
212
|
if (value !== null) {
|
|
210
213
|
data[dataColumns[j].dataFieldName].push(typeof value === 'object' && 'label' in value ? value.label : value);
|
|
211
214
|
}
|
package/esm/index.js
CHANGED
|
@@ -213,7 +213,10 @@ const useGridChartsIntegration = (apiRef, props) => {
|
|
|
213
213
|
const rowId = (0, _xDataGridPro.gridRowIdSelector)(apiRef, targetRow);
|
|
214
214
|
targetRow = (0, _xDataGridPro.gridRowNodeSelector)(apiRef, rowTree[rowId].parent);
|
|
215
215
|
}
|
|
216
|
-
const value =
|
|
216
|
+
const value = (0, _gridAggregationSelectors.gridCellAggregationResultSelector)(apiRef, {
|
|
217
|
+
id: (0, _xDataGridPro.gridRowIdSelector)(apiRef, targetRow),
|
|
218
|
+
field: dataColumns[j].field
|
|
219
|
+
})?.value ?? apiRef.current.getRowValue(targetRow, dataColumns[j]);
|
|
217
220
|
if (value !== null) {
|
|
218
221
|
data[dataColumns[j].dataFieldName].push(typeof value === 'object' && 'label' in value ? value.label : value);
|
|
219
222
|
}
|
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.12.
|
|
3
|
+
"version": "8.12.1",
|
|
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",
|
|
@@ -39,10 +39,10 @@
|
|
|
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.12.
|
|
43
|
-
"@mui/x-
|
|
42
|
+
"@mui/x-data-grid-pro": "8.12.1",
|
|
43
|
+
"@mui/x-internals": "8.12.0",
|
|
44
44
|
"@mui/x-license": "8.12.0",
|
|
45
|
-
"@mui/x-
|
|
45
|
+
"@mui/x-data-grid": "8.12.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|