@mui/x-data-grid-premium 9.6.0 → 9.7.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 (106) hide show
  1. package/CHANGELOG.md +111 -1
  2. package/DataGridPremium/DataGridPremium.d.mts +1 -1
  3. package/DataGridPremium/DataGridPremium.d.ts +1 -1
  4. package/DataGridPremium/DataGridPremium.js +2 -2
  5. package/DataGridPremium/DataGridPremium.mjs +2 -2
  6. package/DataGridPremium/useDataGridPremiumComponent.d.mts +1 -1
  7. package/DataGridPremium/useDataGridPremiumComponent.d.ts +1 -1
  8. package/components/GridAggregationHeader.d.mts +2 -2
  9. package/components/GridAggregationHeader.d.ts +2 -2
  10. package/components/GridDataSourceGroupingCriteriaCell.d.mts +1 -1
  11. package/components/GridDataSourceGroupingCriteriaCell.d.ts +1 -1
  12. package/components/GridEmptyPivotOverlay.d.mts +1 -1
  13. package/components/GridEmptyPivotOverlay.d.ts +1 -1
  14. package/components/GridGroupingCriteriaCell.d.mts +1 -1
  15. package/components/GridGroupingCriteriaCell.d.ts +1 -1
  16. package/components/GridPremiumColumnMenu.d.mts +1 -1
  17. package/components/GridPremiumColumnMenu.d.ts +1 -1
  18. package/components/GridPremiumToolbar.d.mts +1 -1
  19. package/components/GridPremiumToolbar.d.ts +1 -1
  20. package/components/aiAssistantPanel/AiAssistantPanelTrigger.d.mts +2 -2
  21. package/components/aiAssistantPanel/AiAssistantPanelTrigger.d.ts +2 -2
  22. package/components/aiAssistantPanel/AiAssistantPanelTrigger.js +2 -2
  23. package/components/aiAssistantPanel/AiAssistantPanelTrigger.mjs +2 -2
  24. package/components/chartsPanel/ChartsPanelTrigger.d.mts +1 -1
  25. package/components/chartsPanel/ChartsPanelTrigger.d.ts +1 -1
  26. package/components/chartsPanel/data/GridChartsPanelDataSearch.d.mts +1 -1
  27. package/components/chartsPanel/data/GridChartsPanelDataSearch.d.ts +1 -1
  28. package/components/columnMenu/menuItems/GridColumnMenuAggregationItem.d.mts +1 -1
  29. package/components/columnMenu/menuItems/GridColumnMenuAggregationItem.d.ts +1 -1
  30. package/components/columnMenu/menuItems/GridColumnMenuChartsItem.d.mts +1 -1
  31. package/components/columnMenu/menuItems/GridColumnMenuChartsItem.d.ts +1 -1
  32. package/components/columnMenu/menuItems/GridColumnMenuPivotItem.d.mts +1 -1
  33. package/components/columnMenu/menuItems/GridColumnMenuPivotItem.d.ts +1 -1
  34. package/components/columnMenu/menuItems/GridColumnMenuRowGroupItem.d.mts +1 -1
  35. package/components/columnMenu/menuItems/GridColumnMenuRowGroupItem.d.ts +1 -1
  36. package/components/columnMenu/menuItems/GridColumnMenuRowUngroupItem.d.mts +1 -1
  37. package/components/columnMenu/menuItems/GridColumnMenuRowUngroupItem.d.ts +1 -1
  38. package/components/pivotPanel/GridPivotPanelSearch.d.mts +1 -1
  39. package/components/pivotPanel/GridPivotPanelSearch.d.ts +1 -1
  40. package/components/pivotPanel/PivotPanelTrigger.d.mts +2 -2
  41. package/components/pivotPanel/PivotPanelTrigger.d.ts +2 -2
  42. package/components/promptField/GridPromptField.d.mts +1 -1
  43. package/components/promptField/GridPromptField.d.ts +1 -1
  44. package/components/promptField/PromptField.d.mts +1 -1
  45. package/components/promptField/PromptField.d.ts +1 -1
  46. package/components/promptField/PromptFieldControl.d.mts +1 -1
  47. package/components/promptField/PromptFieldControl.d.ts +1 -1
  48. package/components/promptField/PromptFieldRecord.d.mts +1 -1
  49. package/components/promptField/PromptFieldRecord.d.ts +1 -1
  50. package/components/promptField/PromptFieldSend.d.mts +1 -1
  51. package/components/promptField/PromptFieldSend.d.ts +1 -1
  52. package/hooks/features/aggregation/createAggregationLookup.js +2 -0
  53. package/hooks/features/aggregation/createAggregationLookup.mjs +2 -0
  54. package/hooks/features/aggregation/gridAggregationSelectors.d.mts +3 -3
  55. package/hooks/features/aggregation/gridAggregationSelectors.d.ts +3 -3
  56. package/hooks/features/aggregation/gridAggregationSelectors.js +1 -1
  57. package/hooks/features/aggregation/gridAggregationSelectors.mjs +1 -1
  58. package/hooks/features/aggregation/gridAggregationUtils.d.mts +2 -2
  59. package/hooks/features/aggregation/gridAggregationUtils.d.ts +2 -2
  60. package/hooks/features/aggregation/useGridAggregation.d.mts +1 -1
  61. package/hooks/features/aggregation/useGridAggregation.d.ts +1 -1
  62. package/hooks/features/aggregation/wrapColumnWithAggregation.d.mts +2 -2
  63. package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +2 -2
  64. package/hooks/features/aiAssistant/useGridAiAssistant.d.mts +1 -1
  65. package/hooks/features/aiAssistant/useGridAiAssistant.d.ts +1 -1
  66. package/hooks/features/cellSelection/useGridCellSelection.d.mts +1 -1
  67. package/hooks/features/cellSelection/useGridCellSelection.d.ts +1 -1
  68. package/hooks/features/cellSelection/useGridCellSelection.js +2 -2
  69. package/hooks/features/cellSelection/useGridCellSelection.mjs +2 -2
  70. package/hooks/features/chartsIntegration/useGridChartsIntegration.d.mts +1 -1
  71. package/hooks/features/chartsIntegration/useGridChartsIntegration.d.ts +1 -1
  72. package/hooks/features/clipboard/useGridClipboardImport.d.mts +1 -1
  73. package/hooks/features/clipboard/useGridClipboardImport.d.ts +1 -1
  74. package/hooks/features/dataSource/utils.d.mts +1 -1
  75. package/hooks/features/dataSource/utils.d.ts +1 -1
  76. package/hooks/features/editing/useGridCellEditable.d.mts +1 -1
  77. package/hooks/features/editing/useGridCellEditable.d.ts +1 -1
  78. package/hooks/features/export/serializer/excelSerializer.d.mts +3 -3
  79. package/hooks/features/export/serializer/excelSerializer.d.ts +3 -3
  80. package/hooks/features/history/useGridHistory.d.mts +1 -1
  81. package/hooks/features/history/useGridHistory.d.ts +1 -1
  82. package/hooks/features/pivoting/useGridPivoting.d.mts +2 -2
  83. package/hooks/features/pivoting/useGridPivoting.d.ts +2 -2
  84. package/hooks/features/pivoting/utils.d.mts +1 -1
  85. package/hooks/features/pivoting/utils.d.ts +1 -1
  86. package/hooks/features/rowGrouping/createGroupingColDef.d.mts +3 -2
  87. package/hooks/features/rowGrouping/createGroupingColDef.d.ts +3 -2
  88. package/hooks/features/rowGrouping/gridRowGroupingUtils.d.mts +2 -1
  89. package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +2 -1
  90. package/hooks/features/rowGrouping/useGridRowGrouping.d.mts +1 -1
  91. package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
  92. package/hooks/features/rowReorder/operations.d.mts +2 -1
  93. package/hooks/features/rowReorder/operations.d.ts +2 -1
  94. package/hooks/features/rows/useGridParamsOverridableMethods.js +2 -2
  95. package/hooks/features/rows/useGridParamsOverridableMethods.mjs +2 -2
  96. package/hooks/features/sidebar/useGridSidebar.d.mts +1 -1
  97. package/hooks/features/sidebar/useGridSidebar.d.ts +1 -1
  98. package/hooks/utils/useGridApiContext.d.mts +1 -1
  99. package/hooks/utils/useGridApiContext.d.ts +1 -1
  100. package/hooks/utils/useKeepGroupedColumnsHidden.d.mts +1 -1
  101. package/hooks/utils/useKeepGroupedColumnsHidden.d.ts +1 -1
  102. package/hooks/utils/useKeepGroupedColumnsHidden.js +1 -1
  103. package/hooks/utils/useKeepGroupedColumnsHidden.mjs +1 -1
  104. package/index.js +1 -1
  105. package/index.mjs +1 -1
  106. package/package.json +7 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,115 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.7.0
4
+
5
+ _Jun 25, 2026_
6
+
7
+ We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - 🐞 Bugfixes
10
+ - 📚 Documentation improvements
11
+
12
+ Special thanks go out to these community members for their valuable contributions:
13
+ @Anexus5919, @mustafajw07
14
+
15
+ The following team members contributed to this release:
16
+ @alexfauquette, @arminmeh, @brijeshb42, @Janpot, @JCQuintas, @LukasTy, @MBilalShafi, @michelengelen, @romgrk, @sai6855, @siriwatknp
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@9.7.0`
21
+
22
+ - [DataGrid] Fix `CustomColumnMenuGrid` demo crashing (#22897) @sai6855
23
+ - [DataGrid] Fix crash in `getRowValue` when `colDef` is `undefined` (#22838) @LukasTy
24
+ - [DataGrid] Fix `longText` expand button submitting surrounding form (#22450) @siriwatknp
25
+ - [DataGrid] Remove filename ignore list from `removePropTypesPlugin` in Babel config (#22727) @sai6855
26
+ - [DataGrid] Deduplicate scroll-preserving focus logic (#22916) @sai6855
27
+ - [DataGrid] Fix `singleSelect` clearing to use empty string instead of `null` (#22881) @michelengelen
28
+ - [DataGrid] Wait for rows before reacting on `autosizeOnMount` (#22698) @MBilalShafi
29
+
30
+ #### `@mui/x-data-grid-pro@9.7.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@9.7.0`.
33
+
34
+ #### `@mui/x-data-grid-premium@9.7.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
35
+
36
+ Same changes as in `@mui/x-data-grid-pro@9.7.0`.
37
+
38
+ ### Date and Time Pickers
39
+
40
+ #### `@mui/x-date-pickers@9.7.0`
41
+
42
+ - [fields] Announce cardinal day in the day section `aria-valuetext` (#22922) @LukasTy
43
+ - [fields] Avoid focusing the field on blank space clicks (#22285) @LukasTy
44
+ - [pickers] Commit `TimeClock` value when the drag ends outside the clock (#22877) @LukasTy
45
+ - [pickers] Respect explicit `notched` prop on the outlined PickersTextField (#22875) @LukasTy
46
+
47
+ #### `@mui/x-date-pickers-pro@9.7.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
48
+
49
+ Same changes as in `@mui/x-date-pickers@9.7.0`.
50
+
51
+ ### Charts
52
+
53
+ #### `@mui/x-charts@9.7.0`
54
+
55
+ - [charts] Add demo for displaying the sum of all values from the stacked series on top of the stacked bars (#22879) @sai6855
56
+ - [charts] Add `zAxis` custom scatter component demo (#22746) @mustafajw07
57
+ - [charts] Apply axis `colorMap` to radial bar fill (#22800) @JCQuintas
58
+ - [charts] Simplify classes type (#22626) @alexfauquette
59
+ - [charts] Stable progressive scatter batching + responsive zoom/pan (#22862) @JCQuintas
60
+ - [charts] Strip dev-only console diagnostics from production (#22917) @sai6855
61
+ - [docs] Fix scatter renderer table blocking column (#22904) @JCQuintas
62
+ - [docs] Make `ScatterAsyncRenderer` button bar responsive (#22905) @JCQuintas
63
+
64
+ #### `@mui/x-charts-pro@9.7.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
65
+
66
+ Same changes as in `@mui/x-charts@9.7.0`.
67
+
68
+ #### `@mui/x-charts-premium@9.7.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
69
+
70
+ Same changes as in `@mui/x-charts-pro@9.7.0`.
71
+
72
+ ### Tree View
73
+
74
+ #### `@mui/x-tree-view@9.7.0`
75
+
76
+ Internal changes.
77
+
78
+ #### `@mui/x-tree-view-pro@9.7.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.7.0`.
81
+
82
+ ### Scheduler
83
+
84
+ #### `@mui/x-scheduler@9.0.0-beta.3`
85
+
86
+ - [scheduler] Highlight only the edited occurrence of a recurring event (#22873) @Anexus5919
87
+
88
+ #### `@mui/x-scheduler-premium@9.0.0-beta.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
89
+
90
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.3`.
91
+
92
+ ### Codemod
93
+
94
+ #### `@mui/x-codemod@9.7.0`
95
+
96
+ Internal changes.
97
+
98
+ ### Core
99
+
100
+ - [code-infra] Fix react@^18 CI failing on nanoid trust-downgrade (#22923) @LukasTy
101
+ - [code-infra] Reduce Netlify build parallelism to 2 (#22925) @LukasTy
102
+ - [code-infra] Use Turbopack for docs in dev (#22882) @brijeshb42
103
+ - [docs-infra] Pre-render API page descriptions (#22919) @brijeshb42
104
+ - [internal] Use `@base-ui/utils/platform` for platform detection (#22710) @romgrk
105
+ - [internal] Enforce top-level type imports (#22679) @Janpot
106
+
107
+ ### Miscellaneous
108
+
109
+ - [internal] Enable mui/no-floating-cleanup and fix leaks (#22872) @romgrk
110
+ - [infra] Update `.gitignore` to exclude `.claude` sub-directories (#22435) @michelengelen
111
+ - [virtualizer] Improve the dimensions' initial state (#22885) @arminmeh
112
+
3
113
  ## 9.6.0
4
114
 
5
115
  _Jun 18, 2026_
@@ -115,7 +225,7 @@ Same changes as in `@mui/x-scheduler@9.0.0-beta.2`, plus:
115
225
 
116
226
  - [scheduler-premium] Expose premium model types through public API (#22798) @mustafajw07
117
227
  - [scheduler-premium] Remove non-functional `onPreferencesChange` prop from `EventTimelinePremium` (#22777) @rita-codes
118
- - [scheduler-premium] Validate the `FREQ` value in `parseRRule`] (#22786) @rita-codes
228
+ - [scheduler-premium] Validate the `FREQ` value in `parseRRule`] (#22786) @rita-codes
119
229
 
120
230
  ### Codemod
121
231
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type GridValidRowModel } from '@mui/x-data-grid-pro';
2
+ import type { GridValidRowModel } from '@mui/x-data-grid-pro';
3
3
  import type { DataGridPremiumProps } from "../models/dataGridPremiumProps.mjs";
4
4
  export type { GridPremiumSlotsComponent as GridSlots } from "../models/index.mjs";
5
5
  interface DataGridPremiumComponent {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { type GridValidRowModel } from '@mui/x-data-grid-pro';
2
+ import type { GridValidRowModel } from '@mui/x-data-grid-pro';
3
3
  import type { DataGridPremiumProps } from "../models/dataGridPremiumProps.js";
4
4
  export type { GridPremiumSlotsComponent as GridSlots } from "../models/index.js";
5
5
  interface DataGridPremiumComponent {
@@ -51,8 +51,8 @@ const configuration = {
51
51
  }
52
52
  };
53
53
  const packageInfo = {
54
- releaseDate: "MTc4MTc0MDgwMDAwMA==",
55
- version: "9.6.0",
54
+ releaseDate: "MTc4MjM0NTYwMDAwMA==",
55
+ version: "9.7.0",
56
56
  name: 'x-data-grid-premium'
57
57
  };
58
58
  const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.Watermark, {
@@ -44,8 +44,8 @@ const configuration = {
44
44
  }
45
45
  };
46
46
  const packageInfo = {
47
- releaseDate: "MTc4MTc0MDgwMDAwMA==",
48
- version: "9.6.0",
47
+ releaseDate: "MTc4MjM0NTYwMDAwMA==",
48
+ version: "9.7.0",
49
49
  name: 'x-data-grid-premium'
50
50
  };
51
51
  const watermark = /*#__PURE__*/_jsx(Watermark, {
@@ -1,5 +1,5 @@
1
1
  import type { RefObject } from '@mui/x-internals/types';
2
- import { type GridConfiguration } from '@mui/x-data-grid-pro/internals';
2
+ import type { GridConfiguration } from '@mui/x-data-grid-pro/internals';
3
3
  import type { GridPrivateApiPremium } from "../models/gridApiPremium.mjs";
4
4
  import type { DataGridPremiumProcessedProps } from "../models/dataGridPremiumProps.mjs";
5
5
  export declare const useDataGridPremiumComponent: (apiRef: RefObject<GridPrivateApiPremium>, inProps: DataGridPremiumProcessedProps, configuration: GridConfiguration) => DataGridPremiumProcessedProps;
@@ -1,5 +1,5 @@
1
1
  import type { RefObject } from '@mui/x-internals/types';
2
- import { type GridConfiguration } from '@mui/x-data-grid-pro/internals';
2
+ import type { GridConfiguration } from '@mui/x-data-grid-pro/internals';
3
3
  import type { GridPrivateApiPremium } from "../models/gridApiPremium.js";
4
4
  import type { DataGridPremiumProcessedProps } from "../models/dataGridPremiumProps.js";
5
5
  export declare const useDataGridPremiumComponent: (apiRef: RefObject<GridPrivateApiPremium>, inProps: DataGridPremiumProcessedProps, configuration: GridConfiguration) => DataGridPremiumProcessedProps;
@@ -1,5 +1,5 @@
1
- import { type GridColumnHeaderParams } from '@mui/x-data-grid';
2
- import { type GridBaseColDef } from '@mui/x-data-grid/internals';
1
+ import type { GridColumnHeaderParams } from '@mui/x-data-grid';
2
+ import type { GridBaseColDef } from '@mui/x-data-grid/internals';
3
3
  declare function GridAggregationHeader(props: GridColumnHeaderParams & {
4
4
  renderHeader: GridBaseColDef['renderHeader'];
5
5
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,5 +1,5 @@
1
- import { type GridColumnHeaderParams } from '@mui/x-data-grid';
2
- import { type GridBaseColDef } from '@mui/x-data-grid/internals';
1
+ import type { GridColumnHeaderParams } from '@mui/x-data-grid';
2
+ import type { GridBaseColDef } from '@mui/x-data-grid/internals';
3
3
  declare function GridAggregationHeader(props: GridColumnHeaderParams & {
4
4
  renderHeader: GridBaseColDef['renderHeader'];
5
5
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { type GridRenderCellParams, type GridGroupNode } from '@mui/x-data-grid-pro';
1
+ import type { GridRenderCellParams, GridGroupNode } from '@mui/x-data-grid-pro';
2
2
  interface GridGroupingCriteriaCellProps extends GridRenderCellParams<any, any, any, GridGroupNode> {
3
3
  hideDescendantCount?: boolean;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { type GridRenderCellParams, type GridGroupNode } from '@mui/x-data-grid-pro';
1
+ import type { GridRenderCellParams, GridGroupNode } from '@mui/x-data-grid-pro';
2
2
  interface GridGroupingCriteriaCellProps extends GridRenderCellParams<any, any, any, GridGroupNode> {
3
3
  hideDescendantCount?: boolean;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { type GridOverlayProps } from '@mui/x-data-grid';
1
+ import type { GridOverlayProps } from '@mui/x-data-grid';
2
2
  declare const GridEmptyPivotOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
3
  sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
4
4
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { type GridOverlayProps } from '@mui/x-data-grid';
1
+ import type { GridOverlayProps } from '@mui/x-data-grid';
2
2
  declare const GridEmptyPivotOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
3
  sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
4
4
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- import { type GridRenderCellParams, type GridGroupNode } from '@mui/x-data-grid-pro';
1
+ import type { GridRenderCellParams, GridGroupNode } from '@mui/x-data-grid-pro';
2
2
  interface GridGroupingCriteriaCellProps extends GridRenderCellParams<any, any, any, GridGroupNode> {
3
3
  hideDescendantCount?: boolean;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { type GridRenderCellParams, type GridGroupNode } from '@mui/x-data-grid-pro';
1
+ import type { GridRenderCellParams, GridGroupNode } from '@mui/x-data-grid-pro';
2
2
  interface GridGroupingCriteriaCellProps extends GridRenderCellParams<any, any, any, GridGroupNode> {
3
3
  hideDescendantCount?: boolean;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  import type { GridColumnMenuComponent } from '@mui/x-data-grid-pro/internals';
3
3
  import { GridColumnMenuAggregationItem } from "./columnMenu/menuItems/GridColumnMenuAggregationItem.mjs";
4
4
  import { GridColumnMenuManagePanelItem } from "./columnMenu/menuItems/GridColumnMenuManagePanelItem.mjs";
@@ -1,4 +1,4 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  import type { GridColumnMenuComponent } from '@mui/x-data-grid-pro/internals';
3
3
  import { GridColumnMenuAggregationItem } from "./columnMenu/menuItems/GridColumnMenuAggregationItem.js";
4
4
  import { GridColumnMenuManagePanelItem } from "./columnMenu/menuItems/GridColumnMenuManagePanelItem.js";
@@ -1,2 +1,2 @@
1
- import { type GridToolbarProps } from '@mui/x-data-grid-pro/internals';
1
+ import type { GridToolbarProps } from '@mui/x-data-grid-pro/internals';
2
2
  export declare function GridPremiumToolbar(props: GridToolbarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { type GridToolbarProps } from '@mui/x-data-grid-pro/internals';
1
+ import type { GridToolbarProps } from '@mui/x-data-grid-pro/internals';
2
2
  export declare function GridPremiumToolbar(props: GridToolbarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type RenderProp } from '@mui/x-internals/useComponentRenderer';
3
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
2
+ import type { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
4
4
  export interface AiAssistantPanelState {
5
5
  /**
6
6
  * If `true`, the assistant panel is open.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type RenderProp } from '@mui/x-internals/useComponentRenderer';
3
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
2
+ import type { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
4
4
  export interface AiAssistantPanelState {
5
5
  /**
6
6
  * If `true`, the assistant panel is open.
@@ -51,9 +51,9 @@ const AiAssistantPanelTrigger = exports.AiAssistantPanelTrigger = (0, _forwardRe
51
51
  };
52
52
  const resolvedClassName = typeof className === 'function' ? className(state) : className;
53
53
  const {
54
- aiAssistantPanelTriggerRef
54
+ triggers
55
55
  } = (0, _internals.useGridPanelContext)();
56
- const handleRef = (0, _utils.useForkRef)(ref, aiAssistantPanelTriggerRef);
56
+ const handleRef = (0, _utils.useForkRef)(ref, triggers.aiAssistantPanel.setRef);
57
57
  const handleClick = event => {
58
58
  if (open) {
59
59
  apiRef.current.hidePreferences();
@@ -43,9 +43,9 @@ const AiAssistantPanelTrigger = forwardRef(function AiAssistantPanelTrigger(prop
43
43
  };
44
44
  const resolvedClassName = typeof className === 'function' ? className(state) : className;
45
45
  const {
46
- aiAssistantPanelTriggerRef
46
+ triggers
47
47
  } = useGridPanelContext();
48
- const handleRef = useForkRef(ref, aiAssistantPanelTriggerRef);
48
+ const handleRef = useForkRef(ref, triggers.aiAssistantPanel.setRef);
49
49
  const handleClick = event => {
50
50
  if (open) {
51
51
  apiRef.current.hidePreferences();
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { RenderProp } from '@mui/x-data-grid-pro/internals';
3
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
3
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
4
4
  export interface ChartsPanelState {
5
5
  /**
6
6
  * If `true`, the charts integration panel is open.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { RenderProp } from '@mui/x-data-grid-pro/internals';
3
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
3
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
4
4
  export interface ChartsPanelState {
5
5
  /**
6
6
  * If `true`, the charts integration panel is open.
@@ -1,4 +1,4 @@
1
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
1
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
2
2
  export type GridChartsPanelDataSearchProps = Pick<GridSlotProps['baseTextField'], 'value' | 'onChange'> & {
3
3
  onClear: () => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
1
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
2
2
  export type GridChartsPanelDataSearchProps = Pick<GridSlotProps['baseTextField'], 'value' | 'onChange'> & {
3
3
  onClear: () => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  declare function GridColumnMenuAggregationItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace GridColumnMenuAggregationItem {
4
4
  var propTypes: any;
@@ -1,4 +1,4 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  declare function GridColumnMenuAggregationItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace GridColumnMenuAggregationItem {
4
4
  var propTypes: any;
@@ -1,2 +1,2 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  export declare function GridColumnMenuChartsItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  export declare function GridColumnMenuChartsItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  export declare function GridColumnMenuPivotItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  export declare function GridColumnMenuPivotItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  export declare function GridColumnMenuRowGroupItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  export declare function GridColumnMenuRowGroupItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  export declare function GridColumnMenuRowUngroupItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1,2 @@
1
- import { type GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
1
+ import type { GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
2
2
  export declare function GridColumnMenuRowUngroupItem(props: GridColumnMenuItemProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
1
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
2
2
  export type GridPivotPanelSearchProps = Pick<GridSlotProps['baseTextField'], 'value' | 'onChange'> & {
3
3
  onClear: () => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
1
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
2
2
  export type GridPivotPanelSearchProps = Pick<GridSlotProps['baseTextField'], 'value' | 'onChange'> & {
3
3
  onClear: () => void;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type RenderProp } from '@mui/x-internals/useComponentRenderer';
3
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
2
+ import type { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
4
4
  export interface PivotPanelState {
5
5
  /**
6
6
  * If `true`, the pivot panel is open.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { type RenderProp } from '@mui/x-internals/useComponentRenderer';
3
- import { type GridSlotProps } from '@mui/x-data-grid-pro';
2
+ import type { RenderProp } from '@mui/x-internals/useComponentRenderer';
3
+ import type { GridSlotProps } from '@mui/x-data-grid-pro';
4
4
  export interface PivotPanelState {
5
5
  /**
6
6
  * If `true`, the pivot panel is open.
@@ -1,3 +1,3 @@
1
- import { type PromptFieldProps } from "./PromptField.mjs";
1
+ import type { PromptFieldProps } from "./PromptField.mjs";
2
2
  declare function GridPromptField(props: PromptFieldProps): import("react/jsx-runtime").JSX.Element;
3
3
  export { GridPromptField };
@@ -1,3 +1,3 @@
1
- import { type PromptFieldProps } from "./PromptField.js";
1
+ import type { PromptFieldProps } from "./PromptField.js";
2
2
  declare function GridPromptField(props: PromptFieldProps): import("react/jsx-runtime").JSX.Element;
3
3
  export { GridPromptField };
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { RenderProp } from '@mui/x-data-grid';
3
- import { type PromptFieldState } from "./PromptFieldContext.mjs";
3
+ import type { PromptFieldState } from "./PromptFieldContext.mjs";
4
4
  export type PromptFieldProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'onSubmit'> & {
5
5
  /**
6
6
  * A function to customize rendering of the component.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { RenderProp } from '@mui/x-data-grid';
3
- import { type PromptFieldState } from "./PromptFieldContext.js";
3
+ import type { PromptFieldState } from "./PromptFieldContext.js";
4
4
  export type PromptFieldProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'onSubmit'> & {
5
5
  /**
6
6
  * A function to customize rendering of the component.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
3
- import { type PromptFieldState } from "./PromptFieldContext.mjs";
3
+ import type { PromptFieldState } from "./PromptFieldContext.mjs";
4
4
  export type PromptFieldControlProps = Omit<GridSlotProps['baseTextField'], 'className'> & {
5
5
  /**
6
6
  * A function to customize rendering of the component.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
3
- import { type PromptFieldState } from "./PromptFieldContext.js";
3
+ import type { PromptFieldState } from "./PromptFieldContext.js";
4
4
  export type PromptFieldControlProps = Omit<GridSlotProps['baseTextField'], 'className'> & {
5
5
  /**
6
6
  * A function to customize rendering of the component.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
3
- import { type PromptFieldState } from "./PromptFieldContext.mjs";
3
+ import type { PromptFieldState } from "./PromptFieldContext.mjs";
4
4
  export type PromptFieldRecordProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
5
5
  /**
6
6
  * A function to customize rendering of the component.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
3
- import { type PromptFieldState } from "./PromptFieldContext.js";
3
+ import type { PromptFieldState } from "./PromptFieldContext.js";
4
4
  export type PromptFieldRecordProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
5
5
  /**
6
6
  * A function to customize rendering of the component.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
3
- import { type PromptFieldState } from "./PromptFieldContext.mjs";
3
+ import type { PromptFieldState } from "./PromptFieldContext.mjs";
4
4
  export type PromptFieldSendProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
5
5
  /**
6
6
  * A function to customize rendering of the component.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { GridSlotProps, RenderProp } from '@mui/x-data-grid-pro';
3
- import { type PromptFieldState } from "./PromptFieldContext.js";
3
+ import type { PromptFieldState } from "./PromptFieldContext.js";
4
4
  export type PromptFieldSendProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
5
5
  /**
6
6
  * A function to customize rendering of the component.
@@ -139,6 +139,8 @@ const createAggregationLookup = ({
139
139
  for (let i = 0; i < aggregatedFields.length; i += 1) {
140
140
  const field = aggregatedFields[i];
141
141
  const column = columnsLookup[field];
142
+ // `column` can be `undefined` if the field has no matching column; `getRowValue`
143
+ // tolerates that and returns `undefined`, which is filtered out when aggregating.
142
144
  const valueGetter = row => apiRef.current.getRowValue(row, column);
143
145
  valueGetters[field] = valueGetter;
144
146
  }
@@ -132,6 +132,8 @@ export const createAggregationLookup = ({
132
132
  for (let i = 0; i < aggregatedFields.length; i += 1) {
133
133
  const field = aggregatedFields[i];
134
134
  const column = columnsLookup[field];
135
+ // `column` can be `undefined` if the field has no matching column; `getRowValue`
136
+ // tolerates that and returns `undefined`, which is filtered out when aggregating.
135
137
  const valueGetter = row => apiRef.current.getRowValue(row, column);
136
138
  valueGetters[field] = valueGetter;
137
139
  }
@@ -1,5 +1,5 @@
1
- import { type GridAggregationPosition } from '@mui/x-data-grid-pro/internals';
2
- import { type GridRowId } from '@mui/x-data-grid-pro';
1
+ import type { GridAggregationPosition } from '@mui/x-data-grid-pro/internals';
2
+ import type { GridRowId } from '@mui/x-data-grid-pro';
3
3
  import type { GridStatePremium } from "../../../models/gridStatePremium.mjs";
4
4
  export declare const gridAggregationStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridAggregationInterfaces.mjs").GridAggregationState>;
5
5
  /**
@@ -21,7 +21,7 @@ export declare const gridCellAggregationResultSelector: (args_0: import("react")
21
21
  state: GridStatePremium;
22
22
  } | null>, args_1: {
23
23
  id: GridRowId;
24
- field: string;
24
+ field: string | undefined;
25
25
  }) => {
26
26
  position: GridAggregationPosition;
27
27
  value: any;
@@ -1,5 +1,5 @@
1
- import { type GridAggregationPosition } from '@mui/x-data-grid-pro/internals';
2
- import { type GridRowId } from '@mui/x-data-grid-pro';
1
+ import type { GridAggregationPosition } from '@mui/x-data-grid-pro/internals';
2
+ import type { GridRowId } from '@mui/x-data-grid-pro';
3
3
  import type { GridStatePremium } from "../../../models/gridStatePremium.js";
4
4
  export declare const gridAggregationStateSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, unknown, import("./gridAggregationInterfaces.js").GridAggregationState>;
5
5
  /**
@@ -21,7 +21,7 @@ export declare const gridCellAggregationResultSelector: (args_0: import("react")
21
21
  state: GridStatePremium;
22
22
  } | null>, args_1: {
23
23
  id: GridRowId;
24
- field: string;
24
+ field: string | undefined;
25
25
  }) => {
26
26
  position: GridAggregationPosition;
27
27
  value: any;
@@ -24,7 +24,7 @@ const gridCellAggregationResultSelector = exports.gridCellAggregationResultSelec
24
24
  id,
25
25
  field
26
26
  }) => {
27
- if (!aggregationLookup) {
27
+ if (!aggregationLookup || field === undefined) {
28
28
  return null;
29
29
  }
30
30
  let cellAggregationPosition = null;
@@ -18,7 +18,7 @@ export const gridCellAggregationResultSelector = createSelector(gridRowTreeSelec
18
18
  id,
19
19
  field
20
20
  }) => {
21
- if (!aggregationLookup) {
21
+ if (!aggregationLookup || field === undefined) {
22
22
  return null;
23
23
  }
24
24
  let cellAggregationPosition = null;