@mui/x-data-grid-premium 9.4.0 → 9.6.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +251 -0
  2. package/DataGridPremium/DataGridPremium.js +5 -5
  3. package/DataGridPremium/DataGridPremium.mjs +7 -7
  4. package/DataGridPremium/useDataGridPremiumComponent.js +1 -0
  5. package/DataGridPremium/useDataGridPremiumComponent.mjs +2 -1
  6. package/components/GridEmptyPivotOverlay.js +1 -1
  7. package/components/GridEmptyPivotOverlay.mjs +1 -1
  8. package/components/GridExcelExportMenuItem.js +1 -1
  9. package/components/GridExcelExportMenuItem.mjs +1 -1
  10. package/components/aiAssistantPanel/AiAssistantPanelTrigger.js +1 -1
  11. package/components/aiAssistantPanel/AiAssistantPanelTrigger.mjs +1 -1
  12. package/components/chartsPanel/ChartsPanelTrigger.js +1 -1
  13. package/components/chartsPanel/ChartsPanelTrigger.mjs +1 -1
  14. package/components/chartsPanel/GridChartsPanel.js +2 -2
  15. package/components/chartsPanel/GridChartsPanel.mjs +2 -2
  16. package/components/columnMenu/menuItems/GridColumnMenuAggregationItem.js +1 -1
  17. package/components/columnMenu/menuItems/GridColumnMenuAggregationItem.mjs +1 -1
  18. package/components/export/ExportExcel.js +1 -1
  19. package/components/export/ExportExcel.mjs +1 -1
  20. package/components/pivotPanel/GridPivotPanelBody.js +2 -1
  21. package/components/pivotPanel/GridPivotPanelBody.mjs +2 -1
  22. package/components/pivotPanel/PivotPanelTrigger.js +1 -1
  23. package/components/pivotPanel/PivotPanelTrigger.mjs +1 -1
  24. package/components/promptField/PromptField.js +1 -1
  25. package/components/promptField/PromptField.mjs +1 -1
  26. package/components/promptField/PromptFieldControl.js +1 -1
  27. package/components/promptField/PromptFieldControl.mjs +1 -1
  28. package/components/promptField/PromptFieldRecord.js +1 -1
  29. package/components/promptField/PromptFieldRecord.mjs +1 -1
  30. package/components/promptField/PromptFieldSend.js +1 -1
  31. package/components/promptField/PromptFieldSend.mjs +1 -1
  32. package/context/GridChartsRendererProxy.js +1 -1
  33. package/context/GridChartsRendererProxy.mjs +1 -1
  34. package/hooks/features/aggregation/createAggregationLookup.js +12 -3
  35. package/hooks/features/aggregation/createAggregationLookup.mjs +12 -3
  36. package/hooks/features/pivoting/utils.js +3 -1
  37. package/hooks/features/pivoting/utils.mjs +3 -1
  38. package/hooks/features/rowGrouping/createGroupingColDef.js +5 -2
  39. package/hooks/features/rowGrouping/createGroupingColDef.mjs +5 -2
  40. package/index.d.mts +1 -0
  41. package/index.d.ts +1 -0
  42. package/index.js +13 -1
  43. package/index.mjs +2 -1
  44. package/package.json +9 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,256 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.6.0
4
+
5
+ _Jun 18, 2026_
6
+
7
+ We'd like to extend a big thank you to the 17 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - 📊 New features for the radial bar charts, like percentage min radius and disabling tick labels.
10
+
11
+ Special thanks go out to these community members for their valuable contributions:
12
+ @adamowski10, @Anexus5919, @Morteza-hp, @mustafajw07, @TargiX
13
+
14
+ The following team members contributed to this release:
15
+ @alexfauquette, @arminmeh, @brijeshb42, @cherniavskii, @hasdfa, @Janpot, @JCQuintas, @michelengelen, @noraleonte, @oliviertassinari, @rita-codes, @sai6855
16
+
17
+ ### Data Grid
18
+
19
+ #### `@mui/x-data-grid@9.6.0`
20
+
21
+ - [DataGrid] Define `overflowAnchor` style at the right element (#22849) @arminmeh
22
+ - [DataGrid] Fix scrollbars not showing up on scroll on iOS (#22832) @cherniavskii
23
+
24
+ #### `@mui/x-data-grid-pro@9.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
25
+
26
+ Same changes as in `@mui/x-data-grid@9.6.0`, plus:
27
+
28
+ - [DataGridPro] Prevent incorrect row range capping on the first page with known `rowCount` (#22808) @michelengelen
29
+
30
+ #### `@mui/x-data-grid-premium@9.6.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
31
+
32
+ Same changes as in `@mui/x-data-grid-pro@9.6.0`.
33
+
34
+ ### Date and Time Pickers
35
+
36
+ #### `@mui/x-date-pickers@9.6.0`
37
+
38
+ - [pickers] Fix `AdapterMomentHijri.getDaysInMonth` returning the Gregorian month length (#22774) @Anexus5919
39
+ - [l10n] Improve Persian (fa-IR) locale (#22454) @Morteza-hp
40
+
41
+ #### `@mui/x-date-pickers-pro@9.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
42
+
43
+ Same changes as in `@mui/x-date-pickers@9.6.0`.
44
+
45
+ ### Charts
46
+
47
+ #### `@mui/x-charts@9.6.0`
48
+
49
+ - [charts] Add `disableTickLabel` prop to radial axes (#22801) @JCQuintas
50
+ - [charts] Fix bug when `min` is in axis domain (#22827) @alexfauquette
51
+ - [charts] Fix wheel zoom not centering on cursor position (#22811) @JCQuintas
52
+ - [charts] Remove zoom gesture registration from community package (#22753) @sai6855
53
+ - [charts] Support percentage values for radial axis `minRadius`/`maxRadius` (#22803) @JCQuintas
54
+ - [charts] Support `unknownColor` in color scale (#22813) @alexfauquette
55
+ - [charts] Document click listener for scatter composition (#22809) @sai6855
56
+
57
+ #### `@mui/x-charts-pro@9.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
58
+
59
+ Same changes as in `@mui/x-charts@9.6.0`.
60
+
61
+ #### `@mui/x-charts-premium@9.6.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
62
+
63
+ Same changes as in `@mui/x-charts-pro@9.6.0`, plus:
64
+
65
+ - [charts-premium] Add `geoFeatureKey` to transform features identifier (#22848) @alexfauquette
66
+ - [charts-premium] Allow to remove Antartica (#22815) @alexfauquette
67
+ - [charts-premium] Regenerate `ScatterPlotPremium` `propTypes` (#22829) @rita-codes
68
+ - [charts-premium] Support maps tooltip positioned on items (#22648) @alexfauquette
69
+ - [docs] Show how to export maps (#22837) @alexfauquette
70
+
71
+
72
+ ### Tree View
73
+
74
+ #### `@mui/x-tree-view@9.6.0`
75
+
76
+ Internal changes.
77
+
78
+ #### `@mui/x-tree-view-pro@9.6.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
79
+
80
+ Same changes as in `@mui/x-tree-view@9.6.0`.
81
+
82
+ ### Scheduler
83
+
84
+ #### `@mui/x-scheduler@9.0.0-beta.2`
85
+
86
+ - [scheduler] Add dispose lifecycle to `SchedulerLazyLoadingPlugin` (#22532) @rita-codes
87
+ - [scheduler] Add responsive mobile week view and responsive typography (#22593) @noraleonte
88
+ - [scheduler] Add stable weekday token to `recurrenceWeeklyPresetLabel` (#22733) @mustafajw07
89
+ - [scheduler] Create accessibility documentation section (#22557) @mustafajw07
90
+ - [scheduler] Decouple `MonthViewProps` from day time grid props (#22802) @mustafajw07
91
+ - [scheduler] Export missing public scheduler types (#22785) @mustafajw07
92
+ - [scheduler] Fix JSDoc defaults and improve public type readability (#22784) @mustafajw07
93
+ - [scheduler] Fix `aria-labelledby` on events referencing non-existent header IDs (#22778) @rita-codes
94
+ - [scheduler] Move `EventCalendarStyledContext` to internals (#22787) @mustafajw07
95
+ - [scheduler] Normalize all-day recurring occurrences to whole days (#22792) @Anexus5919
96
+ - [scheduler] Recalculate `DayTimeGrid` `hasScroll` on container resize (#22780) @Anexus5919
97
+ - [scheduler] Recompute `nowUpdatedEveryMinute` only on timezone change (#22793) @Anexus5919
98
+ - [scheduler] Register auto-scroll once instead of on every render (#22794) @Anexus5919
99
+ - [scheduler] Remove duplicate dividers in the day/time grid (#22795) @Anexus5919
100
+ - [scheduler] Remove unused `--has-scroll` CSS variable from `DayTimeGrid` (#22799) @Anexus5919
101
+ - [scheduler] Remove vestigial async from internal drop handler (#22781) @mustafajw07
102
+ - [scheduler] Return a primitive key from the Calendar lazy-loading selector (#22791) @Anexus5919
103
+ - [scheduler] Throw on invalid event dates instead of emitting `NaN` timestamps (#22740) @rita-codes
104
+ - [scheduler] Tighten `StandaloneEventProps` data typing (#22796) @mustafajw07
105
+ - [scheduler] Update feedback banner to say beta instead of alpha (#22804) @rita-codes
106
+ - [scheduler] Use `@base-ui` `generateId` for event ids in `createEventModel` (#22788) @rita-codes
107
+ - [scheduler] Clear clipboard after pasting a cut event (#22773) @Anexus5919
108
+ - [scheduler] Show drag placeholder when re-entering the same position (#22775) @Anexus5919
109
+ - [scheduler] Validate missing and duplicate event ids (#22790) @Anexus5919
110
+ - [l10n] Improve Polish (pl-PL) locale (#22612) @adamowski10
111
+
112
+ #### `@mui/x-scheduler-premium@9.0.0-beta.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
113
+
114
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.2`, plus:
115
+
116
+ - [scheduler-premium] Expose premium model types through public API (#22798) @mustafajw07
117
+ - [scheduler-premium] Remove non-functional `onPreferencesChange` prop from `EventTimelinePremium` (#22777) @rita-codes
118
+ - [scheduler-premium] Validate the `FREQ` value in `parseRRule`] (#22786) @rita-codes
119
+
120
+ ### Codemod
121
+
122
+ #### `@mui/x-codemod@9.6.0`
123
+
124
+ Internal changes.
125
+
126
+ ### Docs
127
+
128
+ - [docs] Fix link-check build timeout by disabling serve directory listing (#22836) @Janpot
129
+ - [docs] Show how to export maps (#22837) @alexfauquette
130
+ - [docs] Add radial bar overview demo with custom overlays (#22776) @JCQuintas
131
+ - [docs] Add weather composition demo (#22723) @TargiX
132
+ - [docs] Add docs overview gallery and playground (#22488) @hasdfa
133
+ - [docs] Clarify 'Scrolling without render gaps' (#22629) @oliviertassinari
134
+ - [docs] Fix typo in release instructions (#22864) @brijeshb42
135
+
136
+ ### Core
137
+
138
+ - [code-infra] Fix lint issues (#22757) @brijeshb42
139
+ - [code-infra] Fix remaining Dependabot security alerts (#22761) @Janpot
140
+ - [code-infra] Remove release:build from docs:build script (#22852) @brijeshb42
141
+ - [code-infra] Unpin `@mui/utils` version to allow dedupe (#22828) @mustafajw07
142
+ - [docs-infra] Cap Netlify Next.js build parallelism to avoid OOM (#22847) @Janpot
143
+ - [docs-infra] Remove i18n codebase (#22591) @brijeshb42
144
+ - [internal] Fix failing React 18 unit tests (#22846) @brijeshb42
145
+
146
+ ### Miscellaneous
147
+
148
+ - [core] Add remove-proptypes markers to generated `propTypes` (#22850) @JCQuintas
149
+ - [core] Bump vitest packages to 4.1.8 to fix browser-test version skew (#22845) @Janpot
150
+ - [core] Reduce e2e build concurrency to avoid OOM (#22843) @Janpot
151
+ - [core] Strip proptypes from Production bundles (#22750) @sai6855
152
+ - [test] Wait for `GridToolbarCustom` rows before screenshot (#22844) @Janpot
153
+
154
+ ## 9.5.0
155
+
156
+ _Jun 11, 2026_
157
+
158
+ We'd like to extend a big thank you to the 9 contributors who made this release possible. Here are some highlights ✨:
159
+
160
+ - 🎁 New [`multiSelect` column type for Data Grid Pro](https://mui.com/x/react-data-grid/column-definition/#MultiSelectColumn)
161
+ - 🚀 New [renderer="svg-progressive"](https://mui.com/x/react-charts/scatter/#progressive-renderer) paints scatter points in batched frames so large datasets render smoothly without blocking the main thread.
162
+ - 🐞 Bugfixes
163
+ - 📚 Documentation improvements
164
+
165
+ Special thanks go out to community members @mustafajw07 and @Anexus5919 for their valuable contribution.
166
+
167
+ The following team members contributed to this release:
168
+ @alexfauquette, @JCQuintas, @rita-codes, @rluzists1, @sai6855, @siriwatknp, @arminmeh, @brijeshb42
169
+
170
+ ### Data Grid
171
+
172
+ #### `@mui/x-data-grid@9.5.0`
173
+
174
+ - [DataGrid] Restrict warning messages to non-production environments in various components (#22461) @sai6855
175
+ - [DataGrid] Prevent React state update before mount (#22374) @arminmeh
176
+
177
+ #### `@mui/x-data-grid-pro@9.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
178
+
179
+ Same changes as in `@mui/x-data-grid@9.5.0`, plus:
180
+
181
+ - [DataGridPro] Add new `multiSelect` column type (#21157) @siriwatknp
182
+
183
+ #### `@mui/x-data-grid-premium@9.5.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
184
+
185
+ Same changes as in `@mui/x-data-grid-pro@9.5.0`.
186
+
187
+ ### Date and Time Pickers
188
+
189
+ #### `@mui/x-date-pickers@9.5.0`
190
+
191
+ - [pickers] Fix missing export of `th-TH` (#22703) @alexfauquette
192
+
193
+ #### `@mui/x-date-pickers-pro@9.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
194
+
195
+ Same changes as in `@mui/x-date-pickers@9.5.0`.
196
+
197
+ ### Charts
198
+
199
+ #### `@mui/x-charts@9.5.0`
200
+
201
+ - [charts] Add `FocusedBar` component to `BarScatterComposition` demo (#22704) @sai6855
202
+ - [charts] Add dedicated Bubble Chart documentation page (#22688) @mustafajw07
203
+ - [charts] Add progressive scatter renderer (#22518) @JCQuintas
204
+ - [charts] Avoid full axis pipeline rebuild on resize (#22695) @JCQuintas
205
+ - [charts] Document focus indicator in composition page (#22712) @JCQuintas
206
+ - [charts] Fix `ChartsTooltip` `container` and `disablePortal` props being ignored (#22690) @JCQuintas
207
+ - [charts] Make ordinal scales O(1) to copy and re-range (#22691) @JCQuintas
208
+ - [charts] Stabilize WebGL bar rendering at sub-pixel widths (#22678) @JCQuintas
209
+ - [charts] Use the series config to define value types (#22693) @sai6855
210
+ - [charts] Decouple interaction hook from the cartesian zoom (#22708) @alexfauquette
211
+
212
+ #### `@mui/x-charts-pro@9.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
213
+
214
+ Same changes as in `@mui/x-charts@9.5.0`, plus:
215
+
216
+ - [charts-pro] Add missing focus highlight (#22689) @alexfauquette
217
+
218
+ #### `@mui/x-charts-premium@9.5.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
219
+
220
+ Same changes as in `@mui/x-charts-pro@9.5.0`, plus:
221
+
222
+ - [charts-premium] Set `Heatmap` WebGL render as stable (#22665) @alexfauquette
223
+ - [charts-premium] Stabilize candlestick charts (#22666) @alexfauquette
224
+ - [charts-premium] Stabilize the radial charts (#22655) @alexfauquette
225
+
226
+ ### Scheduler
227
+
228
+ #### `@mui/x-scheduler@9.0.0-beta.1`
229
+
230
+ Internal changes.
231
+
232
+ #### `@mui/x-scheduler-premium@9.0.0-beta.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
233
+
234
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.1`, plus:
235
+
236
+ - [scheduler] Remove dead CSS variable writes in `EventTimelinePremiumContent` (#22720) @rita-codes
237
+ - [scheduler] Show scope dialog when deleting a recurring event (#22552) @Anexus5919
238
+
239
+ ### Core
240
+
241
+ - [docs-infra] Fix immutable cache headers for `/\_next/static` assets (#22747) @brijeshb42
242
+ - [docs-infra] Prefix `/\_next/static` cache header rule with `/x` basePath (#22748) @brijeshb42
243
+ - [code-infra] Update dependencies to resolve Dependabot security alerts (#22714) @Janpot
244
+
245
+ ### Docs
246
+
247
+ - [docs] Fix broken links checker crashing on 404 known-targets fetch (#22707) @sai6855
248
+ - [docs] Fix country data (#22716) @alexfauquette
249
+
250
+ ### Miscellaneous
251
+
252
+ - [legal] Update EULA links in docs (#22717) @rluzists1
253
+
3
254
  ## 9.4.0
4
255
 
5
256
  <!-- generated comparing v9.3.0..master -->
@@ -51,8 +51,8 @@ const configuration = {
51
51
  }
52
52
  };
53
53
  const packageInfo = {
54
- releaseDate: "MTc4MDUzMTIwMDAwMA==",
55
- version: "9.4.0",
54
+ releaseDate: "MTc4MTc0MDgwMDAwMA==",
55
+ version: "9.6.0",
56
56
  name: 'x-data-grid-premium'
57
57
  };
58
58
  const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.Watermark, {
@@ -76,19 +76,19 @@ const DataGridPremiumRaw = (0, _forwardRef.forwardRef)(function DataGridPremium(
76
76
  privateApiRef: privateApiRef,
77
77
  configuration: configuration,
78
78
  props: props,
79
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridRoot, (0, _extends2.default)({
79
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_xDataGridPro.GridRoot, (0, _extends2.default)({
80
80
  className: props.className,
81
81
  style: props.style,
82
82
  sx: props.sx
83
83
  }, props.slotProps?.root, {
84
84
  ref: ref,
85
85
  sidePanel: sidePanel,
86
- children: watermark
86
+ children: [watermark, /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals2.GridMultiSelectMeasurer, {})]
87
87
  }))
88
88
  });
89
89
  });
90
90
  if (process.env.NODE_ENV !== "production") DataGridPremiumRaw.displayName = "DataGridPremiumRaw";
91
- process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
91
+ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes /* remove-proptypes */ = {
92
92
  // ----------------------------- Warning --------------------------------
93
93
  // | These PropTypes are generated from the TypeScript type definitions |
94
94
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -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/internals';
7
7
  import { GridRoot, GridContextProvider, useGridSelector } from '@mui/x-data-grid-pro';
8
- import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps, useGridApiInitialization, getRowValue } from '@mui/x-data-grid-pro/internals';
8
+ import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps, useGridApiInitialization, getRowValue, GridMultiSelectMeasurer } from '@mui/x-data-grid-pro/internals';
9
9
  import { useMaterialCSSVariables } from '@mui/x-data-grid/material';
10
10
  import { forwardRef } from '@mui/x-internals/forwardRef';
11
11
  import { useDataGridPremiumComponent } from "./useDataGridPremiumComponent.mjs";
@@ -19,7 +19,7 @@ import { useGridRowsOverridableMethods } from "../hooks/features/rows/useGridRow
19
19
  import { useGridParamsOverridableMethods } from "../hooks/features/rows/useGridParamsOverridableMethods.mjs";
20
20
  import { gridSidebarOpenSelector } from "../hooks/features/sidebar/index.mjs";
21
21
  import { useIsCellEditable } from "../hooks/features/editing/useGridCellEditable.mjs";
22
- import { jsx as _jsx } from "react/jsx-runtime";
22
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
23
23
  const configuration = {
24
24
  hooks: {
25
25
  useCSSVariables: useMaterialCSSVariables,
@@ -44,8 +44,8 @@ const configuration = {
44
44
  }
45
45
  };
46
46
  const packageInfo = {
47
- releaseDate: "MTc4MDUzMTIwMDAwMA==",
48
- version: "9.4.0",
47
+ releaseDate: "MTc4MTc0MDgwMDAwMA==",
48
+ version: "9.6.0",
49
49
  name: 'x-data-grid-premium'
50
50
  };
51
51
  const watermark = /*#__PURE__*/_jsx(Watermark, {
@@ -69,19 +69,19 @@ const DataGridPremiumRaw = forwardRef(function DataGridPremium(inProps, ref) {
69
69
  privateApiRef: privateApiRef,
70
70
  configuration: configuration,
71
71
  props: props,
72
- children: /*#__PURE__*/_jsx(GridRoot, _extends({
72
+ children: /*#__PURE__*/_jsxs(GridRoot, _extends({
73
73
  className: props.className,
74
74
  style: props.style,
75
75
  sx: props.sx
76
76
  }, props.slotProps?.root, {
77
77
  ref: ref,
78
78
  sidePanel: sidePanel,
79
- children: watermark
79
+ children: [watermark, /*#__PURE__*/_jsx(GridMultiSelectMeasurer, {})]
80
80
  }))
81
81
  });
82
82
  });
83
83
  if (process.env.NODE_ENV !== "production") DataGridPremiumRaw.displayName = "DataGridPremiumRaw";
84
- process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
84
+ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes /* remove-proptypes */ = {
85
85
  // ----------------------------- Warning --------------------------------
86
86
  // | These PropTypes are generated from the TypeScript type definitions |
87
87
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -28,6 +28,7 @@ var _useGridChartsIntegration = require("../hooks/features/chartsIntegration/use
28
28
  var _useGridHistory = require("../hooks/features/history/useGridHistory");
29
29
  // Premium-only features
30
30
 
31
+ (0, _internals.registerMultiSelectColumnType)();
31
32
  const useDataGridPremiumComponent = (apiRef, inProps, configuration) => {
32
33
  const pivotPropsOverrides = (0, _xDataGridPro.useGridSelector)(apiRef, _gridPivotingSelectors.gridPivotPropsOverridesSelector);
33
34
  const props = React.useMemo(() => {
@@ -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, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing, editingStateInitializer, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, 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, useGridDataSourceNestedLazyLoader, useGridInfiniteLoadingIntersection, headerFilteringStateInitializer, useGridHeaderFiltering, virtualizationStateInitializer, useGridVirtualization, useGridDataSourceTreeDataPreProcessors, dataSourceStateInitializer, useGridRowSpanning, rowSpanningStateInitializer, useGridListView, listViewStateInitializer, propsStateInitializer, rowReorderStateInitializer, useFirstRender } from '@mui/x-data-grid-pro/internals';
5
+ import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing, editingStateInitializer, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, 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, useGridDataSourceNestedLazyLoader, useGridInfiniteLoadingIntersection, headerFilteringStateInitializer, useGridHeaderFiltering, virtualizationStateInitializer, useGridVirtualization, useGridDataSourceTreeDataPreProcessors, dataSourceStateInitializer, useGridRowSpanning, rowSpanningStateInitializer, useGridListView, listViewStateInitializer, propsStateInitializer, rowReorderStateInitializer, useFirstRender, registerMultiSelectColumnType } 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.mjs";
8
8
  // Premium-only features
@@ -20,6 +20,7 @@ import { useGridAiAssistant, aiAssistantStateInitializer } from "../hooks/featur
20
20
  import { useGridSidebar, sidebarStateInitializer } from "../hooks/features/sidebar/useGridSidebar.mjs";
21
21
  import { chartsIntegrationStateInitializer, useGridChartsIntegration } from "../hooks/features/chartsIntegration/useGridChartsIntegration.mjs";
22
22
  import { historyStateInitializer, useGridHistory } from "../hooks/features/history/useGridHistory.mjs";
23
+ registerMultiSelectColumnType();
23
24
  export const useDataGridPremiumComponent = (apiRef, inProps, configuration) => {
24
25
  const pivotPropsOverrides = useGridSelector(apiRef, gridPivotPropsOverridesSelector);
25
26
  const props = React.useMemo(() => {
@@ -20,7 +20,7 @@ const GridEmptyPivotOverlay = exports.GridEmptyPivotOverlay = (0, _forwardRef.fo
20
20
  }));
21
21
  });
22
22
  if (process.env.NODE_ENV !== "production") GridEmptyPivotOverlay.displayName = "GridEmptyPivotOverlay";
23
- process.env.NODE_ENV !== "production" ? GridEmptyPivotOverlay.propTypes = {
23
+ process.env.NODE_ENV !== "production" ? GridEmptyPivotOverlay.propTypes /* remove-proptypes */ = {
24
24
  // ----------------------------- Warning --------------------------------
25
25
  // | These PropTypes are generated from the TypeScript type definitions |
26
26
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -14,7 +14,7 @@ const GridEmptyPivotOverlay = forwardRef(function GridEmptyPivotOverlay(props, r
14
14
  }));
15
15
  });
16
16
  if (process.env.NODE_ENV !== "production") GridEmptyPivotOverlay.displayName = "GridEmptyPivotOverlay";
17
- process.env.NODE_ENV !== "production" ? GridEmptyPivotOverlay.propTypes = {
17
+ process.env.NODE_ENV !== "production" ? GridEmptyPivotOverlay.propTypes /* remove-proptypes */ = {
18
18
  // ----------------------------- Warning --------------------------------
19
19
  // | These PropTypes are generated from the TypeScript type definitions |
20
20
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -29,7 +29,7 @@ function GridExcelExportMenuItem(props) {
29
29
  children: apiRef.current.getLocaleText('toolbarExportExcel')
30
30
  }));
31
31
  }
32
- process.env.NODE_ENV !== "production" ? GridExcelExportMenuItem.propTypes = {
32
+ process.env.NODE_ENV !== "production" ? GridExcelExportMenuItem.propTypes /* remove-proptypes */ = {
33
33
  // ----------------------------- Warning --------------------------------
34
34
  // | These PropTypes are generated from the TypeScript type definitions |
35
35
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -22,7 +22,7 @@ function GridExcelExportMenuItem(props) {
22
22
  children: apiRef.current.getLocaleText('toolbarExportExcel')
23
23
  }));
24
24
  }
25
- process.env.NODE_ENV !== "production" ? GridExcelExportMenuItem.propTypes = {
25
+ process.env.NODE_ENV !== "production" ? GridExcelExportMenuItem.propTypes /* remove-proptypes */ = {
26
26
  // ----------------------------- Warning --------------------------------
27
27
  // | These PropTypes are generated from the TypeScript type definitions |
28
28
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -84,7 +84,7 @@ const AiAssistantPanelTrigger = exports.AiAssistantPanelTrigger = (0, _forwardRe
84
84
  });
85
85
  });
86
86
  if (process.env.NODE_ENV !== "production") AiAssistantPanelTrigger.displayName = "AiAssistantPanelTrigger";
87
- process.env.NODE_ENV !== "production" ? AiAssistantPanelTrigger.propTypes = {
87
+ process.env.NODE_ENV !== "production" ? AiAssistantPanelTrigger.propTypes /* remove-proptypes */ = {
88
88
  // ----------------------------- Warning --------------------------------
89
89
  // | These PropTypes are generated from the TypeScript type definitions |
90
90
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -76,7 +76,7 @@ const AiAssistantPanelTrigger = forwardRef(function AiAssistantPanelTrigger(prop
76
76
  });
77
77
  });
78
78
  if (process.env.NODE_ENV !== "production") AiAssistantPanelTrigger.displayName = "AiAssistantPanelTrigger";
79
- process.env.NODE_ENV !== "production" ? AiAssistantPanelTrigger.propTypes = {
79
+ process.env.NODE_ENV !== "production" ? AiAssistantPanelTrigger.propTypes /* remove-proptypes */ = {
80
80
  // ----------------------------- Warning --------------------------------
81
81
  // | These PropTypes are generated from the TypeScript type definitions |
82
82
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -67,7 +67,7 @@ const ChartsPanelTrigger = exports.ChartsPanelTrigger = (0, _forwardRef.forwardR
67
67
  });
68
68
  });
69
69
  if (process.env.NODE_ENV !== "production") ChartsPanelTrigger.displayName = "ChartsPanelTrigger";
70
- process.env.NODE_ENV !== "production" ? ChartsPanelTrigger.propTypes = {
70
+ process.env.NODE_ENV !== "production" ? ChartsPanelTrigger.propTypes /* remove-proptypes */ = {
71
71
  // ----------------------------- Warning --------------------------------
72
72
  // | These PropTypes are generated from the TypeScript type definitions |
73
73
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -59,7 +59,7 @@ const ChartsPanelTrigger = forwardRef(function ChartsPanelTrigger(props, ref) {
59
59
  });
60
60
  });
61
61
  if (process.env.NODE_ENV !== "production") ChartsPanelTrigger.displayName = "ChartsPanelTrigger";
62
- process.env.NODE_ENV !== "production" ? ChartsPanelTrigger.propTypes = {
62
+ process.env.NODE_ENV !== "production" ? ChartsPanelTrigger.propTypes /* remove-proptypes */ = {
63
63
  // ----------------------------- Warning --------------------------------
64
64
  // | These PropTypes are generated from the TypeScript type definitions |
65
65
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -109,7 +109,7 @@ function GridChartsPanelChartSelector(props) {
109
109
  })]
110
110
  });
111
111
  }
112
- process.env.NODE_ENV !== "production" ? GridChartsPanelChartSelector.propTypes = {
112
+ process.env.NODE_ENV !== "production" ? GridChartsPanelChartSelector.propTypes /* remove-proptypes */ = {
113
113
  // ----------------------------- Warning --------------------------------
114
114
  // | These PropTypes are generated from the TypeScript type definitions |
115
115
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -223,7 +223,7 @@ function GridChartsPanel(props) {
223
223
  })]
224
224
  });
225
225
  }
226
- process.env.NODE_ENV !== "production" ? GridChartsPanel.propTypes = {
226
+ process.env.NODE_ENV !== "production" ? GridChartsPanel.propTypes /* remove-proptypes */ = {
227
227
  // ----------------------------- Warning --------------------------------
228
228
  // | These PropTypes are generated from the TypeScript type definitions |
229
229
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -102,7 +102,7 @@ function GridChartsPanelChartSelector(props) {
102
102
  })]
103
103
  });
104
104
  }
105
- process.env.NODE_ENV !== "production" ? GridChartsPanelChartSelector.propTypes = {
105
+ process.env.NODE_ENV !== "production" ? GridChartsPanelChartSelector.propTypes /* remove-proptypes */ = {
106
106
  // ----------------------------- Warning --------------------------------
107
107
  // | These PropTypes are generated from the TypeScript type definitions |
108
108
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -216,7 +216,7 @@ function GridChartsPanel(props) {
216
216
  })]
217
217
  });
218
218
  }
219
- process.env.NODE_ENV !== "production" ? GridChartsPanel.propTypes = {
219
+ process.env.NODE_ENV !== "production" ? GridChartsPanel.propTypes /* remove-proptypes */ = {
220
220
  // ----------------------------- Warning --------------------------------
221
221
  // | These PropTypes are generated from the TypeScript type definitions |
222
222
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -122,7 +122,7 @@ function GridColumnMenuAggregationItem(props) {
122
122
  }))
123
123
  });
124
124
  }
125
- process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes = {
125
+ process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes /* remove-proptypes */ = {
126
126
  // ----------------------------- Warning --------------------------------
127
127
  // | These PropTypes are generated from the TypeScript type definitions |
128
128
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -115,7 +115,7 @@ function GridColumnMenuAggregationItem(props) {
115
115
  }))
116
116
  });
117
117
  }
118
- process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes = {
118
+ process.env.NODE_ENV !== "production" ? GridColumnMenuAggregationItem.propTypes /* remove-proptypes */ = {
119
119
  // ----------------------------- Warning --------------------------------
120
120
  // | These PropTypes are generated from the TypeScript type definitions |
121
121
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -51,7 +51,7 @@ const ExportExcel = exports.ExportExcel = (0, _forwardRef.forwardRef)(function E
51
51
  });
52
52
  });
53
53
  if (process.env.NODE_ENV !== "production") ExportExcel.displayName = "ExportExcel";
54
- process.env.NODE_ENV !== "production" ? ExportExcel.propTypes = {
54
+ process.env.NODE_ENV !== "production" ? ExportExcel.propTypes /* remove-proptypes */ = {
55
55
  // ----------------------------- Warning --------------------------------
56
56
  // | These PropTypes are generated from the TypeScript type definitions |
57
57
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -43,7 +43,7 @@ const ExportExcel = forwardRef(function ExportExcel(props, ref) {
43
43
  });
44
44
  });
45
45
  if (process.env.NODE_ENV !== "production") ExportExcel.displayName = "ExportExcel";
46
- process.env.NODE_ENV !== "production" ? ExportExcel.propTypes = {
46
+ process.env.NODE_ENV !== "production" ? ExportExcel.propTypes /* remove-proptypes */ = {
47
47
  // ----------------------------- Warning --------------------------------
48
48
  // | These PropTypes are generated from the TypeScript type definitions |
49
49
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -155,7 +155,8 @@ function GridPivotPanelBody({
155
155
  if (pivotModelFields.has(field)) {
156
156
  return false;
157
157
  }
158
- if (initialColumns.get(field)?.pivotable === false) {
158
+ const column = initialColumns.get(field);
159
+ if (column?.pivotable === false || column?.type === 'multiSelect') {
159
160
  return false;
160
161
  }
161
162
  if (searchValue) {
@@ -148,7 +148,8 @@ function GridPivotPanelBody({
148
148
  if (pivotModelFields.has(field)) {
149
149
  return false;
150
150
  }
151
- if (initialColumns.get(field)?.pivotable === false) {
151
+ const column = initialColumns.get(field);
152
+ if (column?.pivotable === false || column?.type === 'multiSelect') {
152
153
  return false;
153
154
  }
154
155
  if (searchValue) {
@@ -74,7 +74,7 @@ const PivotPanelTrigger = exports.PivotPanelTrigger = (0, _forwardRef.forwardRef
74
74
  });
75
75
  });
76
76
  if (process.env.NODE_ENV !== "production") PivotPanelTrigger.displayName = "PivotPanelTrigger";
77
- process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes = {
77
+ process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes /* remove-proptypes */ = {
78
78
  // ----------------------------- Warning --------------------------------
79
79
  // | These PropTypes are generated from the TypeScript type definitions |
80
80
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -66,7 +66,7 @@ const PivotPanelTrigger = forwardRef(function PivotPanelTrigger(props, ref) {
66
66
  });
67
67
  });
68
68
  if (process.env.NODE_ENV !== "production") PivotPanelTrigger.displayName = "PivotPanelTrigger";
69
- process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes = {
69
+ process.env.NODE_ENV !== "production" ? PivotPanelTrigger.propTypes /* remove-proptypes */ = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
72
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -71,7 +71,7 @@ const PromptField = exports.PromptField = (0, _forwardRef.forwardRef)(function P
71
71
  });
72
72
  });
73
73
  if (process.env.NODE_ENV !== "production") PromptField.displayName = "PromptField";
74
- process.env.NODE_ENV !== "production" ? PromptField.propTypes = {
74
+ process.env.NODE_ENV !== "production" ? PromptField.propTypes /* remove-proptypes */ = {
75
75
  // ----------------------------- Warning --------------------------------
76
76
  // | These PropTypes are generated from the TypeScript type definitions |
77
77
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -64,7 +64,7 @@ const PromptField = forwardRef(function PromptField(props, ref) {
64
64
  });
65
65
  });
66
66
  if (process.env.NODE_ENV !== "production") PromptField.displayName = "PromptField";
67
- process.env.NODE_ENV !== "production" ? PromptField.propTypes = {
67
+ process.env.NODE_ENV !== "production" ? PromptField.propTypes /* remove-proptypes */ = {
68
68
  // ----------------------------- Warning --------------------------------
69
69
  // | These PropTypes are generated from the TypeScript type definitions |
70
70
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -66,7 +66,7 @@ const PromptFieldControl = exports.PromptFieldControl = (0, _forwardRef.forwardR
66
66
  });
67
67
  });
68
68
  if (process.env.NODE_ENV !== "production") PromptFieldControl.displayName = "PromptFieldControl";
69
- process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes = {
69
+ process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes /* remove-proptypes */ = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
72
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -58,7 +58,7 @@ const PromptFieldControl = forwardRef(function PromptFieldControl(props, ref) {
58
58
  });
59
59
  });
60
60
  if (process.env.NODE_ENV !== "production") PromptFieldControl.displayName = "PromptFieldControl";
61
- process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes = {
61
+ process.env.NODE_ENV !== "production" ? PromptFieldControl.propTypes /* remove-proptypes */ = {
62
62
  // ----------------------------- Warning --------------------------------
63
63
  // | These PropTypes are generated from the TypeScript type definitions |
64
64
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -132,7 +132,7 @@ const PromptFieldRecord = exports.PromptFieldRecord = (0, _forwardRef.forwardRef
132
132
  });
133
133
  });
134
134
  if (process.env.NODE_ENV !== "production") PromptFieldRecord.displayName = "PromptFieldRecord";
135
- process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes = {
135
+ process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes /* remove-proptypes */ = {
136
136
  // ----------------------------- Warning --------------------------------
137
137
  // | These PropTypes are generated from the TypeScript type definitions |
138
138
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -124,7 +124,7 @@ const PromptFieldRecord = forwardRef(function PromptFieldRecord(props, ref) {
124
124
  });
125
125
  });
126
126
  if (process.env.NODE_ENV !== "production") PromptFieldRecord.displayName = "PromptFieldRecord";
127
- process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes = {
127
+ process.env.NODE_ENV !== "production" ? PromptFieldRecord.propTypes /* remove-proptypes */ = {
128
128
  // ----------------------------- Warning --------------------------------
129
129
  // | These PropTypes are generated from the TypeScript type definitions |
130
130
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -57,7 +57,7 @@ const PromptFieldSend = exports.PromptFieldSend = (0, _forwardRef.forwardRef)(fu
57
57
  });
58
58
  });
59
59
  if (process.env.NODE_ENV !== "production") PromptFieldSend.displayName = "PromptFieldSend";
60
- process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes = {
60
+ process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes /* remove-proptypes */ = {
61
61
  // ----------------------------- Warning --------------------------------
62
62
  // | These PropTypes are generated from the TypeScript type definitions |
63
63
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -49,7 +49,7 @@ const PromptFieldSend = forwardRef(function PromptFieldSend(props, ref) {
49
49
  });
50
50
  });
51
51
  if (process.env.NODE_ENV !== "production") PromptFieldSend.displayName = "PromptFieldSend";
52
- process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes = {
52
+ process.env.NODE_ENV !== "production" ? PromptFieldSend.propTypes /* remove-proptypes */ = {
53
53
  // ----------------------------- Warning --------------------------------
54
54
  // | These PropTypes are generated from the TypeScript type definitions |
55
55
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -52,7 +52,7 @@ function GridChartsRendererProxy(props) {
52
52
  onRender: onRender
53
53
  });
54
54
  }
55
- process.env.NODE_ENV !== "production" ? GridChartsRendererProxy.propTypes = {
55
+ process.env.NODE_ENV !== "production" ? GridChartsRendererProxy.propTypes /* remove-proptypes */ = {
56
56
  // ----------------------------- Warning --------------------------------
57
57
  // | These PropTypes are generated from the TypeScript type definitions |
58
58
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -45,7 +45,7 @@ function GridChartsRendererProxy(props) {
45
45
  onRender: onRender
46
46
  });
47
47
  }
48
- process.env.NODE_ENV !== "production" ? GridChartsRendererProxy.propTypes = {
48
+ process.env.NODE_ENV !== "production" ? GridChartsRendererProxy.propTypes /* remove-proptypes */ = {
49
49
  // ----------------------------- Warning --------------------------------
50
50
  // | These PropTypes are generated from the TypeScript type definitions |
51
51
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -102,13 +102,22 @@ const getGroupAggregatedValue = (groupId, apiRef, aggregationRowsScope, aggregat
102
102
  aggregatedValues
103
103
  };
104
104
  };
105
- const getGroupAggregatedValueDataSource = (groupId, apiRef, aggregatedFields, position) => {
105
+ const getGroupAggregatedValueDataSource = (groupId, apiRef, aggregatedFields, position, aggregationRules, columnsLookup) => {
106
106
  const groupAggregationLookup = {};
107
+ const rowLookup = (0, _xDataGridPro.gridRowsLookupSelector)(apiRef);
107
108
  for (let j = 0; j < aggregatedFields.length; j += 1) {
108
109
  const aggregatedField = aggregatedFields[j];
110
+ const value = apiRef.current.resolveGroupAggregation?.(groupId, aggregatedField) ?? '';
111
+ const aggregationFunction = aggregationRules[aggregatedField]?.aggregationFunction;
112
+ const rowForFormatter = rowLookup[groupId] || {
113
+ id: groupId,
114
+ [aggregatedField]: value
115
+ };
116
+ const formattedValue = aggregationFunction?.valueFormatter ? aggregationFunction.valueFormatter(value, rowForFormatter, columnsLookup[aggregatedField], apiRef) : undefined;
109
117
  groupAggregationLookup[aggregatedField] = {
110
118
  position,
111
- value: apiRef.current.resolveGroupAggregation?.(groupId, aggregatedField) ?? ''
119
+ value,
120
+ formattedValue
112
121
  };
113
122
  }
114
123
  return groupAggregationLookup;
@@ -154,7 +163,7 @@ const createAggregationLookup = ({
154
163
  const position = getAggregationPosition(groupNode);
155
164
  if (isDataSource) {
156
165
  if (position !== null) {
157
- aggregationLookup[groupNode.id] = getGroupAggregatedValueDataSource(groupNode.id, apiRef, aggregatedFields, position);
166
+ aggregationLookup[groupNode.id] = getGroupAggregatedValueDataSource(groupNode.id, apiRef, aggregatedFields, position, aggregationRules, columnsLookup);
158
167
  }
159
168
  } else if (groupNode.children.length) {
160
169
  const result = getGroupAggregatedValue(groupNode.id, apiRef, aggregationRowsScope, aggregatedFields, aggregationRules, position, applySorting, valueGetters, apiRef.current, groupAggregatedValuesLookup, columnsLookup);
@@ -95,13 +95,22 @@ const getGroupAggregatedValue = (groupId, apiRef, aggregationRowsScope, aggregat
95
95
  aggregatedValues
96
96
  };
97
97
  };
98
- const getGroupAggregatedValueDataSource = (groupId, apiRef, aggregatedFields, position) => {
98
+ const getGroupAggregatedValueDataSource = (groupId, apiRef, aggregatedFields, position, aggregationRules, columnsLookup) => {
99
99
  const groupAggregationLookup = {};
100
+ const rowLookup = gridRowsLookupSelector(apiRef);
100
101
  for (let j = 0; j < aggregatedFields.length; j += 1) {
101
102
  const aggregatedField = aggregatedFields[j];
103
+ const value = apiRef.current.resolveGroupAggregation?.(groupId, aggregatedField) ?? '';
104
+ const aggregationFunction = aggregationRules[aggregatedField]?.aggregationFunction;
105
+ const rowForFormatter = rowLookup[groupId] || {
106
+ id: groupId,
107
+ [aggregatedField]: value
108
+ };
109
+ const formattedValue = aggregationFunction?.valueFormatter ? aggregationFunction.valueFormatter(value, rowForFormatter, columnsLookup[aggregatedField], apiRef) : undefined;
102
110
  groupAggregationLookup[aggregatedField] = {
103
111
  position,
104
- value: apiRef.current.resolveGroupAggregation?.(groupId, aggregatedField) ?? ''
112
+ value,
113
+ formattedValue
105
114
  };
106
115
  }
107
116
  return groupAggregationLookup;
@@ -147,7 +156,7 @@ export const createAggregationLookup = ({
147
156
  const position = getAggregationPosition(groupNode);
148
157
  if (isDataSource) {
149
158
  if (position !== null) {
150
- aggregationLookup[groupNode.id] = getGroupAggregatedValueDataSource(groupNode.id, apiRef, aggregatedFields, position);
159
+ aggregationLookup[groupNode.id] = getGroupAggregatedValueDataSource(groupNode.id, apiRef, aggregatedFields, position, aggregationRules, columnsLookup);
151
160
  }
152
161
  } else if (groupNode.children.length) {
153
162
  const result = getGroupAggregatedValue(groupNode.id, apiRef, aggregationRowsScope, aggregatedFields, aggregationRules, position, applySorting, valueGetters, apiRef.current, groupAggregatedValuesLookup, columnsLookup);
@@ -193,7 +193,9 @@ const createPivotPropsFromRows = ({
193
193
  if (column.type !== 'number') {
194
194
  colValue = String(colValue);
195
195
  }
196
- const formattedHeaderName = apiRef.current.getRowFormattedValue(row, column) || colValue;
196
+
197
+ // Coerce to a string because of React 18's prop-type check
198
+ const formattedHeaderName = String(apiRef.current.getRowFormattedValue(row, column) || colValue);
197
199
  columnGroupPath.push(colValue);
198
200
  const groupId = columnGroupPath.join(_columnGroups.COLUMN_GROUP_ID_SEPARATOR);
199
201
  if (!columnGroupingModelLookup.has(groupId)) {
@@ -183,7 +183,9 @@ export const createPivotPropsFromRows = ({
183
183
  if (column.type !== 'number') {
184
184
  colValue = String(colValue);
185
185
  }
186
- const formattedHeaderName = apiRef.current.getRowFormattedValue(row, column) || colValue;
186
+
187
+ // Coerce to a string because of React 18's prop-type check
188
+ const formattedHeaderName = String(apiRef.current.getRowFormattedValue(row, column) || colValue);
187
189
  columnGroupPath.push(colValue);
188
190
  const groupId = columnGroupPath.join(COLUMN_GROUP_ID_SEPARATOR);
189
191
  if (!columnGroupingModelLookup.has(groupId)) {
@@ -91,8 +91,8 @@ function getGroupingCriteriaProperties(groupedByColDef, rowGroupingColumnMode, r
91
91
  const rowNode = (0, _xDataGridPro.gridRowNodeSelector)(apiRef, rowId);
92
92
  if (rowNode?.type === 'group') {
93
93
  const originalColDef = rowNode.groupingField ? columnsLookup[rowNode.groupingField] : null;
94
- if (originalColDef?.type === 'singleSelect') {
95
- // the default valueFormatter of a singleSelect colDef won't work with the grouping column values
94
+ if (originalColDef?.type === 'singleSelect' || originalColDef?.type === 'multiSelect') {
95
+ // the default valueFormatter of singleSelect/multiSelect colDef won't work with the grouping column values
96
96
  return value;
97
97
  }
98
98
  const columnValueFormatter = originalColDef?.valueFormatter;
@@ -102,6 +102,9 @@ function getGroupingCriteriaProperties(groupedByColDef, rowGroupingColumnMode, r
102
102
  }
103
103
  return value;
104
104
  };
105
+ } else if (groupedByColDef.type === 'multiSelect') {
106
+ // The default valueFormatter of multiSelect expects an array; the grouping key is a string.
107
+ valueFormatter = undefined;
105
108
  } else {
106
109
  valueFormatter = groupedByColDef.valueFormatter ? groupedByColValueFormatter(groupedByColDef) : undefined;
107
110
  }
@@ -84,8 +84,8 @@ function getGroupingCriteriaProperties(groupedByColDef, rowGroupingColumnMode, r
84
84
  const rowNode = gridRowNodeSelector(apiRef, rowId);
85
85
  if (rowNode?.type === 'group') {
86
86
  const originalColDef = rowNode.groupingField ? columnsLookup[rowNode.groupingField] : null;
87
- if (originalColDef?.type === 'singleSelect') {
88
- // the default valueFormatter of a singleSelect colDef won't work with the grouping column values
87
+ if (originalColDef?.type === 'singleSelect' || originalColDef?.type === 'multiSelect') {
88
+ // the default valueFormatter of singleSelect/multiSelect colDef won't work with the grouping column values
89
89
  return value;
90
90
  }
91
91
  const columnValueFormatter = originalColDef?.valueFormatter;
@@ -95,6 +95,9 @@ function getGroupingCriteriaProperties(groupedByColDef, rowGroupingColumnMode, r
95
95
  }
96
96
  return value;
97
97
  };
98
+ } else if (groupedByColDef.type === 'multiSelect') {
99
+ // The default valueFormatter of multiSelect expects an array; the grouping key is a string.
100
+ valueFormatter = undefined;
98
101
  } else {
99
102
  valueFormatter = groupedByColDef.valueFormatter ? groupedByColValueFormatter(groupedByColDef) : undefined;
100
103
  }
package/index.d.mts CHANGED
@@ -8,6 +8,7 @@ export * from '@mui/x-data-grid/models';
8
8
  export * from '@mui/x-data-grid-pro/models';
9
9
  export * from '@mui/x-data-grid/context';
10
10
  export * from '@mui/x-data-grid/colDef';
11
+ export * from '@mui/x-data-grid-pro/colDef';
11
12
  export * from '@mui/x-data-grid/utils';
12
13
  export * from '@mui/x-data-grid-pro/utils';
13
14
  export * from "./DataGridPremium/index.mjs";
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from '@mui/x-data-grid/models';
8
8
  export * from '@mui/x-data-grid-pro/models';
9
9
  export * from '@mui/x-data-grid/context';
10
10
  export * from '@mui/x-data-grid/colDef';
11
+ export * from '@mui/x-data-grid-pro/colDef';
11
12
  export * from '@mui/x-data-grid/utils';
12
13
  export * from '@mui/x-data-grid-pro/utils';
13
14
  export * from "./DataGridPremium/index.js";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v9.4.0
2
+ * @mui/x-data-grid-premium v9.6.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
@@ -184,6 +184,18 @@ Object.keys(_colDef).forEach(function (key) {
184
184
  }
185
185
  });
186
186
  });
187
+ var _colDef2 = require("@mui/x-data-grid-pro/colDef");
188
+ Object.keys(_colDef2).forEach(function (key) {
189
+ if (key === "default" || key === "__esModule") return;
190
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
191
+ if (key in exports && exports[key] === _colDef2[key]) return;
192
+ Object.defineProperty(exports, key, {
193
+ enumerable: true,
194
+ get: function () {
195
+ return _colDef2[key];
196
+ }
197
+ });
198
+ });
187
199
  var _utils = require("@mui/x-data-grid/utils");
188
200
  Object.keys(_utils).forEach(function (key) {
189
201
  if (key === "default" || key === "__esModule") return;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v9.4.0
2
+ * @mui/x-data-grid-premium v9.6.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
@@ -15,6 +15,7 @@ export * from '@mui/x-data-grid/models';
15
15
  export * from '@mui/x-data-grid-pro/models';
16
16
  export * from '@mui/x-data-grid/context';
17
17
  export * from '@mui/x-data-grid/colDef';
18
+ export * from '@mui/x-data-grid-pro/colDef';
18
19
  export * from '@mui/x-data-grid/utils';
19
20
  export * from '@mui/x-data-grid-pro/utils';
20
21
  export * from "./DataGridPremium/index.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "9.4.0",
3
+ "version": "9.6.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",
@@ -34,14 +34,14 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.29.7",
37
- "@mui/utils": "9.0.1",
37
+ "@mui/utils": "^9.0.1",
38
38
  "@mui/x-internal-exceljs-fork": "5.0.0",
39
39
  "clsx": "^2.1.1",
40
40
  "prop-types": "^15.8.1",
41
- "@mui/x-data-grid-pro": "^9.4.0",
42
- "@mui/x-data-grid": "^9.4.0",
43
- "@mui/x-internals": "^9.1.0",
44
- "@mui/x-license": "^9.4.0"
41
+ "@mui/x-data-grid": "^9.6.0",
42
+ "@mui/x-data-grid-pro": "^9.6.0",
43
+ "@mui/x-internals": "^9.6.0",
44
+ "@mui/x-license": "^9.6.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@emotion/react": "^11.9.0",
@@ -220,6 +220,9 @@
220
220
  }
221
221
  }
222
222
  },
223
+ "imports": {
224
+ "#formatErrorMessage": "@mui/x-internals/formatErrorMessage"
225
+ },
223
226
  "main": "./index.js",
224
227
  "types": "./index.d.ts"
225
228
  }