@mui/x-data-grid-pro 8.15.0 → 8.16.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 CHANGED
@@ -5,6 +5,106 @@
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.16.0
9
+
10
+ _Oct 29, 2025_
11
+
12
+ We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🖌️ Add `brush` zoom interaction to charts
15
+ - 🔁 [Server-side update](https://mui.com/x/react-data-grid/server-side-data/#updating-server-side-data) in a grid with tree data/row grouping and aggregation will trigger re-fetch for all parent levels of that row to update aggregated values. See the [demo](https://mui.com/x/react-data-grid/server-side-data/aggregation/#usage-with-tree-data).
16
+
17
+ Special thanks go out to the community members for their valuable contributions:
18
+ @felix-wg, @frncesc, @sai6855
19
+
20
+ The following are all team members who have contributed to this release:
21
+ @alexfauquette, @arminmeh, @bernardobelchior, @brijeshb42, @flaviendelangle, @JCQuintas, @MBilalShafi, @mbrookes, @michelengelen, @noraleonte, @rita-codes
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@8.16.0`
26
+
27
+ - [DataGrid] Ignore `Ctrl+A` key combination for the row selection in the community version (#20110) @felix-wg
28
+ - [DataGrid][l10n] Improve Spanish (es-ES) locale (#20134) @frncesc
29
+
30
+ #### `@mui/x-data-grid-pro@8.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
+
32
+ Same changes as in `@mui/x-data-grid@8.16.0`, plus:
33
+
34
+ - [DataGridPro] Add explicit return type to `getVisibleRowsLookup()` to fix the build with `tsc` (#20116) @arminmeh
35
+ - [DataGridPro] Retain the expansion state with expansion configuration props (#20126) @MBilalShafi
36
+
37
+ #### `@mui/x-data-grid-premium@8.16.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@8.16.0`, plus:
40
+
41
+ - [DataGridPremium] Export and restore chart integration state (#20079) @arminmeh
42
+ - [DataGridPremium] Fix grouping column `valueFormatter()` crash (#20070) @sai6855
43
+ - [DataGridPremium] Refetch aggregation data after row update with server-side aggregation (#20039) @arminmeh
44
+
45
+ ### Date and Time Pickers
46
+
47
+ #### `@mui/x-date-pickers@8.16.0`
48
+
49
+ - [pickers] Prevent blur event propagation on individual sections (#19825) @michelengelen
50
+
51
+ #### `@mui/x-date-pickers-pro@8.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
52
+
53
+ Same changes as in `@mui/x-date-pickers@8.16.0`.
54
+
55
+ ### Charts
56
+
57
+ #### `@mui/x-charts@8.16.0`
58
+
59
+ - [charts] Allow tooltip to anchor items (#19954) @alexfauquette
60
+ - [charts] Fix behavior of grouped axis (#20118) @JCQuintas
61
+ - [charts] Move scale symlog inside scales (#20137) @JCQuintas
62
+ - [charts] Fix AreaChartConnectNulls demo height not correctly resizing (#20078) @sai6855
63
+ - [charts] Fix charts resizing overflow (#20080) @alexfauquette
64
+ - [charts] Fix tooltip not showing on first render (#20115) @bernardobelchior
65
+ - [charts] Handle `undefined` id and color in series (#20087) @bernardobelchior
66
+ - [charts] Remove `useMemo` from isZoomOn*Enabled and isPanOn*Enabled hooks (#20132) @Copilot
67
+ - [charts] Use static data for perf (#20072) @JCQuintas
68
+ - [charts] Move scale symlog inside scales (#20137) @JCQuintas
69
+
70
+ #### `@mui/x-charts-pro@8.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
71
+
72
+ Same changes as in `@mui/x-charts@8.16.0`, plus:
73
+
74
+ - [charts-pro] Add `brush` zoom interaction (#19899) @JCQuintas
75
+ - [charts-pro] Add sankey performance check (#20069) @JCQuintas
76
+
77
+ #### `@mui/x-charts-premium@8.16.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
78
+
79
+ Same changes as in `@mui/x-charts-pro@8.16.0`.
80
+
81
+ ### Tree View
82
+
83
+ #### `@mui/x-tree-view@8.16.0`
84
+
85
+ Internal changes.
86
+
87
+ #### `@mui/x-tree-view-pro@8.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
88
+
89
+ Same changes as in `@mui/x-tree-view@8.16.0`.
90
+
91
+ ### Codemod
92
+
93
+ #### `@mui/x-codemod@8.16.0`
94
+
95
+ Internal changes.
96
+
97
+ ### Core
98
+
99
+ - [code-infra] Setup eslint compat plugin (#20105) @brijeshb42
100
+ - [code-infra] Improve store types (#20129) @JCQuintas
101
+ - [docs] Update the callout in `rows` prop documentation (#20127) @MBilalShafi
102
+ - [docs-infra] Refine changelog contributor acknowledgment messages (#20123) @mbrookes
103
+
104
+ ### Miscellaneous
105
+
106
+ - [x-telemetry] Skip telemetry tests on browser mode (#20122) @bernardobelchior
107
+
8
108
  ## 8.15.0
9
109
 
10
110
  _Oct 23, 2025_
@@ -28,11 +28,12 @@ const configuration = {
28
28
  useGridRowAriaAttributes: _useGridRowAriaAttributes.useGridRowAriaAttributesPro,
29
29
  useGridRowsOverridableMethods: _internals.useGridRowsOverridableMethods,
30
30
  useGridParamsOverridableMethods: _internals.useGridParamsOverridableMethods,
31
+ useIsCellEditable: _internals.useIsCellEditable,
31
32
  useCellAggregationResult: () => null,
32
33
  useFilterValueGetter: apiRef => apiRef.current.getRowValue
33
34
  }
34
35
  };
35
- const releaseInfo = "MTc2MTE3NzYwMDAwMA==";
36
+ const releaseInfo = "MTc2MTY5NjAwMDAwMA==";
36
37
  const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
37
38
  packageName: "x-data-grid-pro",
38
39
  releaseInfo: releaseInfo
@@ -93,7 +93,7 @@ const useDataGridProComponent = (apiRef, props, configuration) => {
93
93
  (0, _useGridDetailPanel.useGridDetailPanel)(apiRef, props);
94
94
  (0, _internals.useGridColumnSpanning)(apiRef);
95
95
  (0, _internals.useGridColumnGrouping)(apiRef, props);
96
- (0, _internals.useGridEditing)(apiRef, props);
96
+ (0, _internals.useGridEditing)(apiRef, props, configuration);
97
97
  (0, _internals.useGridFocus)(apiRef, props);
98
98
  (0, _internals.useGridPreferencesPanel)(apiRef, props);
99
99
  (0, _internals.useGridFilter)(apiRef, props, configuration);
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { useLicenseVerifier, Watermark } from '@mui/x-license';
7
7
  import { GridRoot, GridContextProvider } from '@mui/x-data-grid';
8
- import { validateProps, useGridApiInitialization, useGridRowsOverridableMethods, useGridParamsOverridableMethods } from '@mui/x-data-grid/internals';
8
+ import { validateProps, useGridApiInitialization, useGridRowsOverridableMethods, useGridParamsOverridableMethods, useIsCellEditable } from '@mui/x-data-grid/internals';
9
9
  import { useMaterialCSSVariables } from '@mui/x-data-grid/material';
10
10
  import { forwardRef } from '@mui/x-internals/forwardRef';
11
11
  import { useDataGridProComponent } from "./useDataGridProComponent.js";
@@ -21,11 +21,12 @@ const configuration = {
21
21
  useGridRowAriaAttributes: useGridRowAriaAttributesPro,
22
22
  useGridRowsOverridableMethods,
23
23
  useGridParamsOverridableMethods,
24
+ useIsCellEditable,
24
25
  useCellAggregationResult: () => null,
25
26
  useFilterValueGetter: apiRef => apiRef.current.getRowValue
26
27
  }
27
28
  };
28
- const releaseInfo = "MTc2MTE3NzYwMDAwMA==";
29
+ const releaseInfo = "MTc2MTY5NjAwMDAwMA==";
29
30
  const watermark = /*#__PURE__*/_jsx(Watermark, {
30
31
  packageName: "x-data-grid-pro",
31
32
  releaseInfo: releaseInfo
@@ -86,7 +86,7 @@ export const useDataGridProComponent = (apiRef, props, configuration) => {
86
86
  useGridDetailPanel(apiRef, props);
87
87
  useGridColumnSpanning(apiRef);
88
88
  useGridColumnGrouping(apiRef, props);
89
- useGridEditing(apiRef, props);
89
+ useGridEditing(apiRef, props, configuration);
90
90
  useGridFocus(apiRef, props);
91
91
  useGridPreferencesPanel(apiRef, props);
92
92
  useGridFilter(apiRef, props, configuration);
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v8.15.0
2
+ * @mui/x-data-grid-pro v8.16.0
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -25,6 +25,7 @@ export { useGridInfiniteLoadingIntersection } from "../hooks/features/serverSide
25
25
  export { dataSourceStateInitializer } from "../hooks/features/dataSource/useGridDataSourcePro.js";
26
26
  export { useGridDataSourceBasePro } from "../hooks/features/dataSource/useGridDataSourceBasePro.js";
27
27
  export { gridDataSourceErrorSelector, gridDataSourceLoadingIdSelector } from "../hooks/features/dataSource/gridDataSourceSelector.js";
28
+ export { getGroupKeys } from "../hooks/features/dataSource/utils.js";
28
29
  export type { GridExperimentalProFeatures, DataGridProPropsWithoutDefaultValue, DataGridProPropsWithDefaultValue } from "../models/dataGridProProps.js";
29
30
  export type { GridProSlotProps } from "../models/gridProSlotProps.js";
30
31
  export { createRowTree } from "../utils/tree/createRowTree.js";
@@ -28,6 +28,7 @@ export { useGridInfiniteLoadingIntersection } from "../hooks/features/serverSide
28
28
  export { dataSourceStateInitializer } from "../hooks/features/dataSource/useGridDataSourcePro.js";
29
29
  export { useGridDataSourceBasePro } from "../hooks/features/dataSource/useGridDataSourceBasePro.js";
30
30
  export { gridDataSourceErrorSelector, gridDataSourceLoadingIdSelector } from "../hooks/features/dataSource/gridDataSourceSelector.js";
31
+ export { getGroupKeys } from "../hooks/features/dataSource/utils.js";
31
32
  export { createRowTree } from "../utils/tree/createRowTree.js";
32
33
  export { updateRowTree } from "../utils/tree/updateRowTree.js";
33
34
  export { sortRowTree } from "../utils/tree/sortRowTree.js";
@@ -2,6 +2,7 @@ import { GridFilterState, GridGroupNode, GridRowId, GridRowTreeConfig, GridRowsS
2
2
  import { GridTreeDepths } from '@mui/x-data-grid/internals';
3
3
  import { RowTreeBuilderGroupingCriterion } from "./models.js";
4
4
  import { DataGridProProps } from "../../models/dataGridProProps.js";
5
+ import type { GridStatePro } from "../../models/gridStatePro.js";
5
6
  export declare const getGroupRowIdFromPath: (path: RowTreeBuilderGroupingCriterion[]) => string;
6
7
  export declare const getNodePathInTree: ({
7
8
  id,
@@ -50,4 +51,4 @@ export declare const getVisibleRowsLookup: ({
50
51
  }: {
51
52
  tree: GridRowsState["tree"];
52
53
  filteredRowsLookup: GridFilterState["filteredRowsLookup"];
53
- }) => import("@mui/x-data-grid/hooks/features/filter/gridFilterState").GridVisibleRowsLookupState;
54
+ }) => GridStatePro["visibleRowsLookup"];
@@ -24,13 +24,20 @@ export const checkGroupChildrenExpansion = (node, defaultGroupingExpansionDepth,
24
24
  if (maxDepth !== undefined && node.depth >= maxDepth) {
25
25
  return false;
26
26
  }
27
+
28
+ // If group existed in previous tree, preserve its expansion state
29
+ if (prevChildrenExpanded !== undefined) {
30
+ return prevChildrenExpanded;
31
+ }
32
+
33
+ // For new groups, apply default expansion configuration
27
34
  let childrenExpanded;
28
35
  if (node.id === GRID_ROOT_GROUP_ID) {
29
36
  childrenExpanded = true;
30
37
  } else if (isGroupExpandedByDefault) {
31
38
  childrenExpanded = isGroupExpandedByDefault(node);
32
39
  } else {
33
- childrenExpanded = defaultGroupingExpansionDepth === -1 || defaultGroupingExpansionDepth > node.depth || (prevChildrenExpanded ?? false);
40
+ childrenExpanded = defaultGroupingExpansionDepth === -1 || defaultGroupingExpansionDepth > node.depth;
34
41
  }
35
42
  return childrenExpanded;
36
43
  };
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v8.15.0
2
+ * @mui/x-data-grid-pro v8.16.0
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -25,6 +25,7 @@ export { useGridInfiniteLoadingIntersection } from "../hooks/features/serverSide
25
25
  export { dataSourceStateInitializer } from "../hooks/features/dataSource/useGridDataSourcePro.js";
26
26
  export { useGridDataSourceBasePro } from "../hooks/features/dataSource/useGridDataSourceBasePro.js";
27
27
  export { gridDataSourceErrorSelector, gridDataSourceLoadingIdSelector } from "../hooks/features/dataSource/gridDataSourceSelector.js";
28
+ export { getGroupKeys } from "../hooks/features/dataSource/utils.js";
28
29
  export type { GridExperimentalProFeatures, DataGridProPropsWithoutDefaultValue, DataGridProPropsWithDefaultValue } from "../models/dataGridProProps.js";
29
30
  export type { GridProSlotProps } from "../models/gridProSlotProps.js";
30
31
  export { createRowTree } from "../utils/tree/createRowTree.js";
@@ -37,6 +37,7 @@ var _exportNames = {
37
37
  useGridDataSourceBasePro: true,
38
38
  gridDataSourceErrorSelector: true,
39
39
  gridDataSourceLoadingIdSelector: true,
40
+ getGroupKeys: true,
40
41
  createRowTree: true,
41
42
  updateRowTree: true,
42
43
  sortRowTree: true,
@@ -96,16 +97,22 @@ Object.defineProperty(exports, "detailPanelStateInitializer", {
96
97
  return _useGridDetailPanel.detailPanelStateInitializer;
97
98
  }
98
99
  });
100
+ Object.defineProperty(exports, "getGroupKeys", {
101
+ enumerable: true,
102
+ get: function () {
103
+ return _utils.getGroupKeys;
104
+ }
105
+ });
99
106
  Object.defineProperty(exports, "getParentPath", {
100
107
  enumerable: true,
101
108
  get: function () {
102
- return _utils2.getParentPath;
109
+ return _utils3.getParentPath;
103
110
  }
104
111
  });
105
112
  Object.defineProperty(exports, "getVisibleRowsLookup", {
106
113
  enumerable: true,
107
114
  get: function () {
108
- return _utils.getVisibleRowsLookup;
115
+ return _utils2.getVisibleRowsLookup;
109
116
  }
110
117
  });
111
118
  Object.defineProperty(exports, "gridDataSourceErrorSelector", {
@@ -123,13 +130,13 @@ Object.defineProperty(exports, "gridDataSourceLoadingIdSelector", {
123
130
  Object.defineProperty(exports, "insertNodeInTree", {
124
131
  enumerable: true,
125
132
  get: function () {
126
- return _utils.insertNodeInTree;
133
+ return _utils2.insertNodeInTree;
127
134
  }
128
135
  });
129
136
  Object.defineProperty(exports, "removeNodeFromTree", {
130
137
  enumerable: true,
131
138
  get: function () {
132
- return _utils.removeNodeFromTree;
139
+ return _utils2.removeNodeFromTree;
133
140
  }
134
141
  });
135
142
  Object.defineProperty(exports, "rowPinningStateInitializer", {
@@ -147,13 +154,13 @@ Object.defineProperty(exports, "rowReorderStateInitializer", {
147
154
  Object.defineProperty(exports, "skipFiltering", {
148
155
  enumerable: true,
149
156
  get: function () {
150
- return _utils2.skipFiltering;
157
+ return _utils3.skipFiltering;
151
158
  }
152
159
  });
153
160
  Object.defineProperty(exports, "skipSorting", {
154
161
  enumerable: true,
155
162
  get: function () {
156
- return _utils2.skipSorting;
163
+ return _utils3.skipSorting;
157
164
  }
158
165
  });
159
166
  Object.defineProperty(exports, "sortRowTree", {
@@ -331,11 +338,12 @@ var _useGridInfiniteLoadingIntersection = require("../hooks/features/serverSideL
331
338
  var _useGridDataSourcePro = require("../hooks/features/dataSource/useGridDataSourcePro");
332
339
  var _useGridDataSourceBasePro = require("../hooks/features/dataSource/useGridDataSourceBasePro");
333
340
  var _gridDataSourceSelector = require("../hooks/features/dataSource/gridDataSourceSelector");
341
+ var _utils = require("../hooks/features/dataSource/utils");
334
342
  var _createRowTree = require("../utils/tree/createRowTree");
335
343
  var _updateRowTree = require("../utils/tree/updateRowTree");
336
344
  var _sortRowTree = require("../utils/tree/sortRowTree");
337
- var _utils = require("../utils/tree/utils");
338
- var _utils2 = require("../hooks/features/serverSideTreeData/utils");
345
+ var _utils2 = require("../utils/tree/utils");
346
+ var _utils3 = require("../hooks/features/serverSideTreeData/utils");
339
347
  var _propValidation = require("./propValidation");
340
348
  Object.keys(_propValidation).forEach(function (key) {
341
349
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-pro",
3
- "version": "8.15.0",
3
+ "version": "8.16.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Data Grid components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -37,9 +37,9 @@
37
37
  "@mui/utils": "^7.3.3",
38
38
  "clsx": "^2.1.1",
39
39
  "prop-types": "^15.8.1",
40
- "@mui/x-data-grid": "8.15.0",
41
- "@mui/x-internals": "8.14.0",
42
- "@mui/x-license": "8.15.0"
40
+ "@mui/x-data-grid": "8.16.0",
41
+ "@mui/x-license": "8.16.0",
42
+ "@mui/x-internals": "8.16.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.9.0",
@@ -2,6 +2,7 @@ import { GridFilterState, GridGroupNode, GridRowId, GridRowTreeConfig, GridRowsS
2
2
  import { GridTreeDepths } from '@mui/x-data-grid/internals';
3
3
  import { RowTreeBuilderGroupingCriterion } from "./models.js";
4
4
  import { DataGridProProps } from "../../models/dataGridProProps.js";
5
+ import type { GridStatePro } from "../../models/gridStatePro.js";
5
6
  export declare const getGroupRowIdFromPath: (path: RowTreeBuilderGroupingCriterion[]) => string;
6
7
  export declare const getNodePathInTree: ({
7
8
  id,
@@ -50,4 +51,4 @@ export declare const getVisibleRowsLookup: ({
50
51
  }: {
51
52
  tree: GridRowsState["tree"];
52
53
  filteredRowsLookup: GridFilterState["filteredRowsLookup"];
53
- }) => import("@mui/x-data-grid/hooks/features/filter/gridFilterState").GridVisibleRowsLookupState;
54
+ }) => GridStatePro["visibleRowsLookup"];
@@ -33,13 +33,20 @@ const checkGroupChildrenExpansion = (node, defaultGroupingExpansionDepth, maxDep
33
33
  if (maxDepth !== undefined && node.depth >= maxDepth) {
34
34
  return false;
35
35
  }
36
+
37
+ // If group existed in previous tree, preserve its expansion state
38
+ if (prevChildrenExpanded !== undefined) {
39
+ return prevChildrenExpanded;
40
+ }
41
+
42
+ // For new groups, apply default expansion configuration
36
43
  let childrenExpanded;
37
44
  if (node.id === _xDataGrid.GRID_ROOT_GROUP_ID) {
38
45
  childrenExpanded = true;
39
46
  } else if (isGroupExpandedByDefault) {
40
47
  childrenExpanded = isGroupExpandedByDefault(node);
41
48
  } else {
42
- childrenExpanded = defaultGroupingExpansionDepth === -1 || defaultGroupingExpansionDepth > node.depth || (prevChildrenExpanded ?? false);
49
+ childrenExpanded = defaultGroupingExpansionDepth === -1 || defaultGroupingExpansionDepth > node.depth;
43
50
  }
44
51
  return childrenExpanded;
45
52
  };