@mui/x-data-grid-premium 8.9.2 → 8.10.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 CHANGED
@@ -5,6 +5,217 @@
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.10.1
9
+
10
+ _Aug 15, 2025_
11
+
12
+ We'd like to extend a big thank you to the 8 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 📊 Y-axes can now be grouped by category when using `band` and `point` scales.
15
+ - 📚 Documentation improvements
16
+
17
+ The following are all team members who have contributed to this release:
18
+ @alexfauquette, @bernardobelchior, @Janpot, @JCQuintas, @mnajdova, @oliviertassinari, @prakhargupta1, @romgrk
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@8.10.1`
23
+
24
+ - [DataGrid] Fix scroll jumping (#19156) @romgrk
25
+ - [DataGrid] Fix scroll restoration (#19182) @romgrk
26
+ - [DataGrid] Fix "no row with id" error (#19193) @romgrk
27
+
28
+ #### `@mui/x-data-grid-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
29
+
30
+ Same changes as in `@mui/x-data-grid@8.10.1`.
31
+
32
+ #### `@mui/x-data-grid-premium@8.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
33
+
34
+ Same changes as in `@mui/x-data-grid-pro@8.10.1`.
35
+
36
+ ### Date and Time Pickers
37
+
38
+ #### `@mui/x-date-pickers@8.10.0`
39
+
40
+ Internal changes.
41
+
42
+ #### `@mui/x-date-pickers-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
43
+
44
+ Same changes as in `@mui/x-date-pickers@8.10.0`.
45
+
46
+ ### Charts
47
+
48
+ - Axes can now be grouped by category when using `band` and `point` scales
49
+
50
+ <img width="643" height="455" alt="Bar chart with y-axis grouped per categories" src="https://github.com/user-attachments/assets/59044afe-bcc5-4152-8bf1-225db0635025" />
51
+
52
+ #### `@mui/x-charts@8.10.1`
53
+
54
+ - [charts] Allow y-axis to be grouped (#19081) @JCQuintas
55
+ - [charts] Fix default axis highlight for axes without data attribute (#18985) @alexfauquette
56
+ - [charts] Fix tooltip mark unexpected wrapping in mobile (#19122) @bernardobelchior
57
+ - [charts] Prevent overflow on charts tooltip (#19123) @bernardobelchior
58
+
59
+ #### `@mui/x-charts-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
60
+
61
+ Same changes as in `@mui/x-charts@8.10.1`.
62
+
63
+ ### Tree View
64
+
65
+ #### `@mui/x-tree-view@8.10.1`
66
+
67
+ Internal changes.
68
+
69
+ #### `@mui/x-tree-view-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
70
+
71
+ Same changes as in `@mui/x-tree-view@8.10.1`.
72
+
73
+ ### Codemod
74
+
75
+ #### `@mui/x-codemod@8.10.1`
76
+
77
+ Internal changes.
78
+
79
+ ### Docs
80
+
81
+ - [docs] Add all planned charts on the overview page (#19077) @prakhargupta1
82
+ - [docs] Add future charts components link in the sidebar (#19140) @prakhargupta1
83
+ - [docs] Fix Heatmap docs duplicate text (#19138) @JCQuintas
84
+ - [docs] Remove preview from Toolbar & Funnel (#19131) @mnajdova
85
+ - [docs] Reproduce npm sparkline (#19089) @alexfauquette
86
+
87
+ ### Core
88
+
89
+ - [core] Fix licensing model name (#19025) @oliviertassinari
90
+ - [core] Fix usage of `:catalog` for `@babel/runtime` (#19028) @oliviertassinari
91
+ - [core] Refactor virtualizer API (#18995) @romgrk
92
+
93
+ ### Miscellaneous
94
+
95
+ - [code-infra] Remove namespaces (#19071) @Janpot
96
+ - [code-infra] Fix `fs-extra` removal from `formattedTSDemos` script (#19132) @bernardobelchior
97
+ - [code-infra] Remove unused code and dependency (#19139) @bernardobelchior
98
+ - [code-infra] Replace `fs-extra` with `node:fs` where possible (#19127) @bernardobelchior
99
+ - [internal] Edit, keep `lockFileMaintenance` simple @oliviertassinari
100
+ - [internal] Fix writing style action name @oliviertassinari
101
+ - [internal] Make it clear that `lockFileMaintenance` is enabled @oliviertassinari
102
+ - [support-infra] Remove default issue label (#19104) @oliviertassinari
103
+
104
+ ## 8.10.0
105
+
106
+ _Aug 8, 2025_
107
+
108
+ We'd like to extend a big thank you to the 17 contributors who made this release possible. Here are some highlights ✨:
109
+
110
+ - 📊 [`FunnelChart`](https://mui.com/x/react-charts/funnel/) marked as stable
111
+ - 📈 [Zoom slider](https://mui.com/x/react-charts/zoom-and-pan/#zoom-slider) and [Preview](https://mui.com/x/react-charts/zoom-and-pan/#preview) marked as stable
112
+ - 📈 Supporting [label groups](https://mui.com/x/react-charts/axis/#grouped-axes) in band and point axis
113
+ - 🌎 Improve Norwegian Nynorsk (nn-NO) locale on the Data Grid
114
+ - 🐞 Bugfixes
115
+ - 📚 Documentation improvements
116
+
117
+ Special thanks go out to the community members for their valuable contributions:
118
+ @AnderzL7, @aqeelat, @dwrth, @noobyogi0010, @nusr, @sai6855
119
+
120
+ The following are all team members who have contributed to this release:
121
+ @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @mapache-salvaje, @MBilalShafi, @oliviertassinari, @rita-codes, @romgrk
122
+
123
+ ### Data Grid
124
+
125
+ #### `@mui/x-data-grid@8.10.0`
126
+
127
+ - [DataGrid] Move spread operator in `BaseSelect` to allow `variant` change (#19026) @dwrth
128
+ - [DataGrid] Use `use-sync-external-store` shim (#19063) @romgrk
129
+ - [DataGrid] Allow skipping cache in `dataSource.fetchRows()` API method (#18904) @MBilalShafi
130
+ - [DataGrid] Do not call `preProcessEditCellProps()` if cell is not editable based on `isCellEditable()` (#18405) @nusr
131
+ - [DataGrid] Fix `renderCountry` throwing an error when used in tree data (#19068) @cherniavskii
132
+ - [DataGrid] Fix performance issue for root level "select all" (#19015) @MBilalShafi
133
+ - [DataGrid] Fix pagination `slotProps` being ignored by the grid (#19095) @romgrk
134
+ - [l10n] Improve Norwegian Nynorsk (nn-NO) locale (#19076) @AnderzL7
135
+
136
+ #### `@mui/x-data-grid-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
137
+
138
+ Same changes as in `@mui/x-data-grid@8.10.0`, plus:
139
+
140
+ - [DataGridPro] Fix row reorder not working with column reorder disabled (#19016) @MBilalShafi
141
+ - [DataGridPro] Fix header filters cache sharing issue (#19090) @MBilalShafi
142
+
143
+ #### `@mui/x-data-grid-premium@8.10.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
144
+
145
+ Same changes as in `@mui/x-data-grid-pro@8.10.0`, plus:
146
+
147
+ - [DataGridPremium] Allow additional derived columns customization via `valueFormatter` (#18982) @arminmeh
148
+ - [DataGridPremium] Fix complex `singleSelect` columns not working in pivot model (#18971) @cherniavskii
149
+
150
+ ### Date and Time Pickers
151
+
152
+ #### `@mui/x-date-pickers@8.10.0`
153
+
154
+ - [pickers] `MuiPickersLayout-toolbar` is overlapping the Calendar in RTL `MobileDatePicker` variant (#18981) @rita-codes
155
+
156
+ #### `@mui/x-date-pickers-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
157
+
158
+ Same changes as in `@mui/x-date-pickers@8.10.0`.
159
+
160
+ ### Charts
161
+
162
+ #### `@mui/x-charts@8.10.0`
163
+
164
+ - [charts] Add `groups` to `band` and `point` axis config (#18766) @JCQuintas
165
+ - [charts] Animation example using `motion` library (#18993) @JCQuintas
166
+ - [charts] Deprecate `Unstable_` radar exports (#19079) @JCQuintas
167
+ - [charts] Improve grouped axis logic (#19069) @JCQuintas
168
+ - [charts] Fix type assertion in axis highlight components (#19060) @sai6855
169
+ - [charts] Remove unnecessary type assertion in tooltip `valueFormatter` in heatmap (#19047) @sai6855
170
+
171
+ #### `@mui/x-charts-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
172
+
173
+ Same changes as in `@mui/x-charts@8.10.0`, plus:
174
+
175
+ - [charts-pro] Fix `slotProps.tooltip.trigger` not respected in `ScatterChartPro` and `FunnelChart` (#18902) @bernardobelchior
176
+ - [charts-pro] Fix zoom filtering adjusting axis too soon (#18992) @bernardobelchior
177
+ - [charts-pro] Mark `FunnelChart` as stable (#19048) @JCQuintas
178
+ - [charts-pro] Mark zoom slider and preview as stable (#19049) @JCQuintas
179
+ - [charts-pro] Refactor `createAxisFilterMapper` (#18998) @bernardobelchior
180
+
181
+ ### Tree View
182
+
183
+ #### `@mui/x-tree-view@8.10.0`
184
+
185
+ Internal changes.
186
+
187
+ #### `@mui/x-tree-view-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
188
+
189
+ Same changes as in `@mui/x-tree-view@8.10.0`.
190
+
191
+ ### Codemod
192
+
193
+ #### `@mui/x-codemod@8.10.0`
194
+
195
+ Internal changes.
196
+
197
+ ### Docs
198
+
199
+ - [docs] Add CSS bundler breaking change to migration guide (#17436) @romgrk
200
+ - [docs] `RichTreeViewPro` demo for dragging via custom drag-handle is not working properly (#19008) @rita-codes
201
+ - [docs] Fix broken link to D3 in Charts (#19020) @oliviertassinari
202
+ - [docs] Revise the Charts Animation doc (#18990) @mapache-salvaje
203
+ - [docs] Fix incorrect code in line chart preview (#19023) @noobyogi0010
204
+ - [docs] Improve bundling instructions for the Data Grid (#19065) @romgrk
205
+ - [docs] Reduce image size in the inventory grid demo (#19004) @arminmeh
206
+
207
+ ### Core
208
+
209
+ - [core] Fix ESLint reference name @oliviertassinari
210
+
211
+ ### Miscellaneous
212
+
213
+ - [infra] Remove bundle size tracking for subpaths (#19072) @Janpot
214
+ - [infra] Accept `PORT` env on `docs:dev` script (#19014) @JCQuintas
215
+ - [infra] Skip codesandbox iframe demos in regressions tests (#18970) @cherniavskii
216
+ - [infra] Remove package.json `module` field (#18961) @Janpot
217
+ - [internal] Remove peer dependency on `@mui/system` (#19062) @aqeelat
218
+
8
219
  ## 8.9.2
9
220
 
10
221
  _Jul 31, 2025_
@@ -418,8 +629,8 @@ Same changes as in `@mui/x-tree-view@8.7.0`, plus:
418
629
 
419
630
  - [code-infra] Bump code-infra version and fix breaking changes (#18653) @brijeshb42
420
631
  - [code-infra] Ensure `material-ui/disallow-react-api-in-server-components` ESLint rule is applied (#18570) @LukasTy
421
- - [code-infra] Migrate to flat eslint config (#18562) @brijeshb42
422
- - [code-infra] Refactor eslint config (#18643) @LukasTy
632
+ - [code-infra] Migrate to flat ESLint config (#18562) @brijeshb42
633
+ - [code-infra] Refactor ESLint config (#18643) @LukasTy
423
634
  - [infra] Add renovatebot rule for latest infra packages (#18609) @Janpot
424
635
  - [infra] Move pushArgos script to code-infra (#18667) @Janpot
425
636
  - [infra] Updates release script to fetch latest major version from upstream (#18552) @michelengelen
@@ -1333,7 +1544,7 @@ Same changes as in `@mui/x-tree-view@8.2.0`.
1333
1544
  - [core] Fix all Vale errors @oliviertassinari
1334
1545
  - [core] Move `loadStyleSheets` to internals and use it in data grid and charts (#17548) @bernardobelchior
1335
1546
  - [core] Remove empty version (#17582) @oliviertassinari
1336
- - [core] Remove eslint from codemod spec files (#17443) @alexfauquette
1547
+ - [core] Remove ESLint from codemod spec files (#17443) @alexfauquette
1337
1548
  - [core] Remove unnecessary versions (#17597) @oliviertassinari
1338
1549
  - [code-infra] Allow postinstall scripts for packages requesting it (#17635) @LukasTy
1339
1550
  - [code-infra] Data Grid `vitest` changes (#17619) @JCQuintas
@@ -6827,7 +7038,7 @@ Same changes as in `@mui/x-date-pickers@7.8.0`.
6827
7038
 
6828
7039
  ### Core
6829
7040
 
6830
- - [core] Add eslint rule to restrict import from `../internals` root (#13633) @JCQuintas
7041
+ - [core] Add ESLint rule to restrict import from `../internals` root (#13633) @JCQuintas
6831
7042
  - [docs-infra] Sync `\_app` folder with monorepo (#13582) @Janpot
6832
7043
  - [license] Allow usage of Charts and Tree View Pro package for old premium licenses (#13619) @flaviendelangle
6833
7044
 
@@ -6965,7 +7176,7 @@ Same changes as in `@mui/x-date-pickers@7.7.0`.
6965
7176
 
6966
7177
  - [charts] Add watermark on the pro `ResponsiveChartContainer` (#13398) @alexfauquette
6967
7178
  - [charts] Allow to specify y-axis configuration (#13438) @alexfauquette
6968
- - [charts] Fix eslint for react compiler (#13444) @alexfauquette
7179
+ - [charts] Fix ESLint for react compiler (#13444) @alexfauquette
6969
7180
  - [charts] Improve themeAugmentation typing (#13433) @noraleonte
6970
7181
  - [charts] Move the `ZAxisContextProvider` by default in the `ChartContainer` (#13465) @alexfauquette
6971
7182
  - [charts] Use plugins to define series extremum and colors (#13397) @alexfauquette
@@ -7512,7 +7723,7 @@ Same changes as in `@mui/x-date-pickers@7.3.1`.
7512
7723
  - [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
7513
7724
  - [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
7514
7725
  - [code-infra] Change package manager to `pnpm` (#11875) @LukasTy
7515
- - [code-infra] Closer sync with eslint config of codebase (#12864) @oliviertassinari
7726
+ - [code-infra] Closer sync with ESLint config of codebase (#12864) @oliviertassinari
7516
7727
  - [support-infra] Add release announcement to GitHub workflows (#11867) (#12843) @michelengelen
7517
7728
 
7518
7729
  ## 7.3.0
@@ -38,7 +38,7 @@ const configuration = {
38
38
  }
39
39
  }
40
40
  };
41
- const releaseInfo = "MTc1MzkxMjgwMDAwMA==";
41
+ const releaseInfo = "MTc1NTIzMDQwMDAwMA==";
42
42
  const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
43
43
  packageName: "x-data-grid-premium",
44
44
  releaseInfo: releaseInfo
@@ -71,6 +71,7 @@ const useDataGridPremiumComponent = (apiRef, inProps) => {
71
71
  (0, _internals.useGridInitializeState)(_useGridRowGrouping.rowGroupingStateInitializer, apiRef, props, key);
72
72
  (0, _internals.useGridInitializeState)(_useGridAggregation.aggregationStateInitializer, apiRef, props, key);
73
73
  (0, _internals.useGridInitializeState)(_internals.rowSelectionStateInitializer, apiRef, props);
74
+ (0, _internals.useGridInitializeState)(_internals.rowReorderStateInitializer, apiRef, props);
74
75
  (0, _internals.useGridInitializeState)(_useGridCellSelection.cellSelectionStateInitializer, apiRef, props);
75
76
  (0, _internals.useGridInitializeState)(_internals.detailPanelStateInitializer, apiRef, props);
76
77
  (0, _internals.useGridInitializeState)(_internals.columnPinningStateInitializer, apiRef, props, key);
@@ -31,7 +31,7 @@ const configuration = {
31
31
  }
32
32
  }
33
33
  };
34
- const releaseInfo = "MTc1MzkxMjgwMDAwMA==";
34
+ const releaseInfo = "MTc1NTIzMDQwMDAwMA==";
35
35
  const watermark = /*#__PURE__*/_jsx(Watermark, {
36
36
  packageName: "x-data-grid-premium",
37
37
  releaseInfo: releaseInfo
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
- import { useGridInitialization, useGridInitializeState, useGridVirtualizer, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing, editingStateInitializer, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridRowSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, dimensionsStateInitializer, useGridDimensions, useGridStatePersistence, useGridRowSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, rowSelectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer, useGridDetailPanelPreProcessors, useGridInfiniteLoader, useGridColumnSpanning, useGridRowReorder, useGridRowReorderPreProcessors, useGridRowPinning, useGridRowPinningPreProcessors, rowPinningStateInitializer, useGridColumnGrouping, columnGroupsStateInitializer, useGridLazyLoader, useGridLazyLoaderPreProcessors, useGridDataSourceLazyLoader, useGridInfiniteLoadingIntersection, headerFilteringStateInitializer, useGridHeaderFiltering, virtualizationStateInitializer, useGridVirtualization, useGridDataSourceTreeDataPreProcessors, dataSourceStateInitializer, useGridRowSpanning, rowSpanningStateInitializer, useGridListView, listViewStateInitializer, propsStateInitializer } from '@mui/x-data-grid-pro/internals';
5
+ import { useGridInitialization, useGridInitializeState, useGridVirtualizer, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing, editingStateInitializer, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridRowSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, dimensionsStateInitializer, useGridDimensions, useGridStatePersistence, useGridRowSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, rowSelectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer, useGridDetailPanelPreProcessors, useGridInfiniteLoader, useGridColumnSpanning, useGridRowReorder, useGridRowReorderPreProcessors, useGridRowPinning, useGridRowPinningPreProcessors, rowPinningStateInitializer, useGridColumnGrouping, columnGroupsStateInitializer, useGridLazyLoader, useGridLazyLoaderPreProcessors, useGridDataSourceLazyLoader, useGridInfiniteLoadingIntersection, headerFilteringStateInitializer, useGridHeaderFiltering, virtualizationStateInitializer, useGridVirtualization, useGridDataSourceTreeDataPreProcessors, dataSourceStateInitializer, useGridRowSpanning, rowSpanningStateInitializer, useGridListView, listViewStateInitializer, propsStateInitializer, rowReorderStateInitializer } from '@mui/x-data-grid-pro/internals';
6
6
  import { useGridSelector } from '@mui/x-data-grid-pro';
7
7
  import { useGridDataSourcePremium as useGridDataSource } from "../hooks/features/dataSource/useGridDataSourcePremium.js";
8
8
  // Premium-only features
@@ -63,6 +63,7 @@ export const useDataGridPremiumComponent = (apiRef, inProps) => {
63
63
  useGridInitializeState(rowGroupingStateInitializer, apiRef, props, key);
64
64
  useGridInitializeState(aggregationStateInitializer, apiRef, props, key);
65
65
  useGridInitializeState(rowSelectionStateInitializer, apiRef, props);
66
+ useGridInitializeState(rowReorderStateInitializer, apiRef, props);
66
67
  useGridInitializeState(cellSelectionStateInitializer, apiRef, props);
67
68
  useGridInitializeState(detailPanelStateInitializer, apiRef, props);
68
69
  useGridInitializeState(columnPinningStateInitializer, apiRef, props, key);
@@ -53,10 +53,8 @@ async function getTextFromClipboard(rootEl) {
53
53
 
54
54
  // Keeps track of updated rows during clipboard paste
55
55
  class CellValueUpdater {
56
+ rowsToUpdate = {};
56
57
  constructor(options) {
57
- this.rowsToUpdate = {};
58
- this.updateRow = void 0;
59
- this.options = void 0;
60
58
  this.options = options;
61
59
  this.updateRow = batchRowUpdates(options.apiRef.current.updateRows, 50);
62
60
  }
@@ -57,7 +57,7 @@ function sortColumnGroups(columnGroups, pivotModelColumns, depth = 0) {
57
57
  if (sort === undefined) {
58
58
  return 0;
59
59
  }
60
- return (sort === 'asc' ? 1 : -1) * gridStringOrNumberComparator(a.headerName, b.headerName, {}, {});
60
+ return (sort === 'asc' ? 1 : -1) * gridStringOrNumberComparator(a.rawHeaderName, b.rawHeaderName, {}, {});
61
61
  });
62
62
  }
63
63
  export const getPivotedData = ({
@@ -141,21 +141,23 @@ export const getPivotedData = ({
141
141
  continue;
142
142
  }
143
143
  let colValue = apiRef.current.getRowValue(row, column) ?? '(No value)';
144
- if (column.type !== 'number') {
145
- colValue = String(colValue);
146
- }
147
144
  if (column.type === 'singleSelect') {
148
145
  const singleSelectColumn = column;
149
146
  if (singleSelectColumn.getOptionLabel) {
150
147
  colValue = singleSelectColumn.getOptionLabel(colValue);
151
148
  }
152
149
  }
150
+ if (column.type !== 'number') {
151
+ colValue = String(colValue);
152
+ }
153
+ const formattedHeaderName = apiRef.current.getRowFormattedValue(row, column) || colValue;
153
154
  columnGroupPath.push(colValue);
154
155
  const groupId = columnGroupPath.join(columnGroupIdSeparator);
155
156
  if (!columnGroupingModelLookup.has(groupId)) {
156
157
  const columnGroup = {
157
158
  groupId,
158
- headerName: colValue,
159
+ headerName: formattedHeaderName,
160
+ rawHeaderName: colValue,
159
161
  children: []
160
162
  };
161
163
  columnGroupingModelLookup.set(groupId, columnGroup);
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v8.9.2
2
+ * @mui/x-data-grid-premium v8.10.1
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
@@ -1,5 +1,6 @@
1
1
  import { GridPrivateOnlyApiCommon } from '@mui/x-data-grid/internals';
2
2
  import { GridApiCommon, GridColumnPinningApi, GridDetailPanelApi, GridDetailPanelPrivateApi, GridRowPinningApi, GridRowMultiSelectionApi, GridColumnReorderApi, GridRowProApi } from '@mui/x-data-grid-pro';
3
+ import { GridRowReorderPrivateApi } from '@mui/x-data-grid-pro/internals';
3
4
  import { GridInitialStatePremium, GridStatePremium } from "./gridStatePremium.js";
4
5
  import type { GridRowGroupingApi, GridExcelExportApi, GridAggregationApi } from "../hooks/index.js";
5
6
  import { GridCellSelectionApi } from "../hooks/features/cellSelection/gridCellSelectionInterfaces.js";
@@ -14,4 +15,4 @@ import { GridSidebarApi } from "../hooks/features/sidebar/gridSidebarInterfaces.
14
15
  * TODO: Do not redefine manually the pro features
15
16
  */
16
17
  export interface GridApiPremium extends GridApiCommon<GridStatePremium, GridInitialStatePremium>, GridRowProApi, GridColumnPinningApi, GridDetailPanelApi, GridRowGroupingApi, GridExcelExportApi, GridAggregationApi, GridRowPinningApi, GridDataSourceApiPremium, GridCellSelectionApi, GridPivotingApi, GridAiAssistantApi, GridSidebarApi, GridRowMultiSelectionApi, GridColumnReorderApi {}
17
- export interface GridPrivateApiPremium extends GridApiPremium, GridPrivateOnlyApiCommon<GridApiPremium, GridPrivateApiPremium, DataGridPremiumProcessedProps>, GridDataSourcePremiumPrivateApi, GridAggregationPrivateApi, GridDetailPanelPrivateApi, GridPivotingPrivateApi {}
18
+ export interface GridPrivateApiPremium extends GridApiPremium, GridPrivateOnlyApiCommon<GridApiPremium, GridPrivateApiPremium, DataGridPremiumProcessedProps>, GridDataSourcePremiumPrivateApi, GridAggregationPrivateApi, GridDetailPanelPrivateApi, GridRowReorderPrivateApi, GridPivotingPrivateApi {}
@@ -61,10 +61,8 @@ async function getTextFromClipboard(rootEl) {
61
61
 
62
62
  // Keeps track of updated rows during clipboard paste
63
63
  class CellValueUpdater {
64
+ rowsToUpdate = {};
64
65
  constructor(options) {
65
- this.rowsToUpdate = {};
66
- this.updateRow = void 0;
67
- this.options = void 0;
68
66
  this.options = options;
69
67
  this.updateRow = batchRowUpdates(options.apiRef.current.updateRows, 50);
70
68
  }
@@ -67,7 +67,7 @@ function sortColumnGroups(columnGroups, pivotModelColumns, depth = 0) {
67
67
  if (sort === undefined) {
68
68
  return 0;
69
69
  }
70
- return (sort === 'asc' ? 1 : -1) * (0, _xDataGridPro.gridStringOrNumberComparator)(a.headerName, b.headerName, {}, {});
70
+ return (sort === 'asc' ? 1 : -1) * (0, _xDataGridPro.gridStringOrNumberComparator)(a.rawHeaderName, b.rawHeaderName, {}, {});
71
71
  });
72
72
  }
73
73
  const getPivotedData = ({
@@ -151,21 +151,23 @@ const getPivotedData = ({
151
151
  continue;
152
152
  }
153
153
  let colValue = apiRef.current.getRowValue(row, column) ?? '(No value)';
154
- if (column.type !== 'number') {
155
- colValue = String(colValue);
156
- }
157
154
  if (column.type === 'singleSelect') {
158
155
  const singleSelectColumn = column;
159
156
  if (singleSelectColumn.getOptionLabel) {
160
157
  colValue = singleSelectColumn.getOptionLabel(colValue);
161
158
  }
162
159
  }
160
+ if (column.type !== 'number') {
161
+ colValue = String(colValue);
162
+ }
163
+ const formattedHeaderName = apiRef.current.getRowFormattedValue(row, column) || colValue;
163
164
  columnGroupPath.push(colValue);
164
165
  const groupId = columnGroupPath.join(columnGroupIdSeparator);
165
166
  if (!columnGroupingModelLookup.has(groupId)) {
166
167
  const columnGroup = {
167
168
  groupId,
168
- headerName: colValue,
169
+ headerName: formattedHeaderName,
170
+ rawHeaderName: colValue,
169
171
  children: []
170
172
  };
171
173
  columnGroupingModelLookup.set(groupId, columnGroup);
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v8.9.2
2
+ * @mui/x-data-grid-premium v8.10.1
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
@@ -1,5 +1,6 @@
1
1
  import { GridPrivateOnlyApiCommon } from '@mui/x-data-grid/internals';
2
2
  import { GridApiCommon, GridColumnPinningApi, GridDetailPanelApi, GridDetailPanelPrivateApi, GridRowPinningApi, GridRowMultiSelectionApi, GridColumnReorderApi, GridRowProApi } from '@mui/x-data-grid-pro';
3
+ import { GridRowReorderPrivateApi } from '@mui/x-data-grid-pro/internals';
3
4
  import { GridInitialStatePremium, GridStatePremium } from "./gridStatePremium.js";
4
5
  import type { GridRowGroupingApi, GridExcelExportApi, GridAggregationApi } from "../hooks/index.js";
5
6
  import { GridCellSelectionApi } from "../hooks/features/cellSelection/gridCellSelectionInterfaces.js";
@@ -14,4 +15,4 @@ import { GridSidebarApi } from "../hooks/features/sidebar/gridSidebarInterfaces.
14
15
  * TODO: Do not redefine manually the pro features
15
16
  */
16
17
  export interface GridApiPremium extends GridApiCommon<GridStatePremium, GridInitialStatePremium>, GridRowProApi, GridColumnPinningApi, GridDetailPanelApi, GridRowGroupingApi, GridExcelExportApi, GridAggregationApi, GridRowPinningApi, GridDataSourceApiPremium, GridCellSelectionApi, GridPivotingApi, GridAiAssistantApi, GridSidebarApi, GridRowMultiSelectionApi, GridColumnReorderApi {}
17
- export interface GridPrivateApiPremium extends GridApiPremium, GridPrivateOnlyApiCommon<GridApiPremium, GridPrivateApiPremium, DataGridPremiumProcessedProps>, GridDataSourcePremiumPrivateApi, GridAggregationPrivateApi, GridDetailPanelPrivateApi, GridPivotingPrivateApi {}
18
+ export interface GridPrivateApiPremium extends GridApiPremium, GridPrivateOnlyApiCommon<GridApiPremium, GridPrivateApiPremium, DataGridPremiumProcessedProps>, GridDataSourcePremiumPrivateApi, GridAggregationPrivateApi, GridDetailPanelPrivateApi, GridRowReorderPrivateApi, GridPivotingPrivateApi {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "8.9.2",
3
+ "version": "8.10.1",
4
4
  "author": "MUI Team",
5
5
  "description": "The Premium plan edition of the MUI X Data Grid Components.",
6
6
  "main": "./index.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.28.2",
38
- "@mui/utils": "^7.2.0",
38
+ "@mui/utils": "^7.3.1",
39
39
  "@types/format-util": "^1.0.4",
40
40
  "clsx": "^2.1.1",
41
41
  "exceljs": "^4.4.0",
42
42
  "prop-types": "^15.8.1",
43
- "@mui/x-internals": "8.9.2",
44
- "@mui/x-data-grid-pro": "8.9.2",
45
- "@mui/x-license": "8.9.2",
46
- "@mui/x-data-grid": "8.9.2"
43
+ "@mui/x-data-grid": "8.10.1",
44
+ "@mui/x-data-grid-pro": "8.10.1",
45
+ "@mui/x-license": "8.10.1",
46
+ "@mui/x-internals": "8.10.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@emotion/react": "^11.9.0",
@@ -64,32 +64,30 @@
64
64
  "engines": {
65
65
  "node": ">=14.0.0"
66
66
  },
67
- "private": false,
68
- "module": "./esm/index.js",
67
+ "type": "commonjs",
68
+ "types": "./index.d.ts",
69
69
  "exports": {
70
70
  "./package.json": "./package.json",
71
71
  ".": {
72
- "require": {
73
- "types": "./index.d.ts",
74
- "default": "./index.js"
75
- },
76
72
  "import": {
77
73
  "types": "./esm/index.d.ts",
78
74
  "default": "./esm/index.js"
75
+ },
76
+ "require": {
77
+ "types": "./index.d.ts",
78
+ "default": "./index.js"
79
79
  }
80
80
  },
81
81
  "./*": {
82
- "require": {
83
- "types": "./*/index.d.ts",
84
- "default": "./*/index.js"
85
- },
86
82
  "import": {
87
83
  "types": "./esm/*/index.d.ts",
88
84
  "default": "./esm/*/index.js"
85
+ },
86
+ "require": {
87
+ "types": "./*/index.d.ts",
88
+ "default": "./*/index.js"
89
89
  }
90
90
  },
91
- "./esm": null,
92
- "./modern": null
93
- },
94
- "types": "./index.d.ts"
91
+ "./esm": null
92
+ }
95
93
  }