@mui/x-data-grid-premium 9.9.0 → 9.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 +217 -0
- package/DataGridPremium/DataGridPremium.js +2 -2
- package/DataGridPremium/DataGridPremium.mjs +2 -2
- package/components/GridGroupingCriteriaCell.js +1 -1
- package/components/GridGroupingCriteriaCell.mjs +1 -1
- package/components/GridPremiumColumnMenu.d.mts +10 -10
- package/components/GridPremiumColumnMenu.d.ts +10 -10
- package/components/chartsPanel/data/GridChartsPanelDataField.js +8 -5
- package/components/chartsPanel/data/GridChartsPanelDataField.mjs +8 -5
- package/components/promptField/PromptField.d.mts +1 -1
- package/components/promptField/PromptField.d.ts +1 -1
- package/hooks/features/aggregation/createAggregationLookup.d.mts +2 -2
- package/hooks/features/aggregation/createAggregationLookup.d.ts +2 -2
- package/hooks/features/aggregation/gridAggregationUtils.d.mts +1 -1
- package/hooks/features/aggregation/gridAggregationUtils.d.ts +1 -1
- package/hooks/features/aggregation/useGridAggregation.d.mts +1 -1
- package/hooks/features/aggregation/useGridAggregation.d.ts +1 -1
- package/hooks/features/aggregation/useGridAggregationPreProcessors.d.mts +1 -1
- package/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +1 -1
- package/hooks/features/aggregation/wrapColumnWithAggregation.d.mts +1 -1
- package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +1 -1
- package/hooks/features/aiAssistant/useGridAiAssistant.d.mts +1 -1
- package/hooks/features/aiAssistant/useGridAiAssistant.d.ts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.d.mts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.d.ts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.js +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.mjs +1 -1
- package/hooks/features/chartsIntegration/useGridChartsIntegration.d.mts +1 -1
- package/hooks/features/chartsIntegration/useGridChartsIntegration.d.ts +1 -1
- package/hooks/features/chartsIntegration/useGridChartsIntegration.js +7 -5
- package/hooks/features/chartsIntegration/useGridChartsIntegration.mjs +7 -5
- package/hooks/features/clipboard/useGridClipboardImport.d.mts +1 -1
- package/hooks/features/clipboard/useGridClipboardImport.d.ts +1 -1
- package/hooks/features/export/serializer/excelSerializer.d.mts +2 -2
- package/hooks/features/export/serializer/excelSerializer.d.ts +2 -2
- package/hooks/features/history/defaultHistoryHandlers.d.mts +1 -1
- package/hooks/features/history/defaultHistoryHandlers.d.ts +1 -1
- package/hooks/features/history/useGridHistory.d.mts +1 -1
- package/hooks/features/history/useGridHistory.d.ts +1 -1
- package/hooks/features/pivoting/useGridPivoting.d.mts +1 -1
- package/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
- package/hooks/features/pivoting/utils.d.mts +3 -3
- package/hooks/features/pivoting/utils.d.ts +3 -3
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.mts +2 -2
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +2 -2
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.mts +1 -1
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +1 -1
- package/hooks/features/rowGrouping/useGridRowGrouping.d.mts +1 -1
- package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.mts +1 -1
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +1 -1
- package/hooks/features/rows/useGridRowsOverridableMethods.d.mts +1 -1
- package/hooks/features/rows/useGridRowsOverridableMethods.d.ts +1 -1
- package/hooks/features/sidebar/useGridSidebar.d.mts +1 -1
- package/hooks/features/sidebar/useGridSidebar.d.ts +1 -1
- package/hooks/utils/useKeepGroupedColumnsHidden.d.mts +1 -1
- package/hooks/utils/useKeepGroupedColumnsHidden.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,222 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.10.1
|
|
4
|
+
|
|
5
|
+
_Jul 23, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- 🦮 Improve accessibility of the Charts and Pickers components.
|
|
10
|
+
- 🐞 Bugfixes
|
|
11
|
+
- 📚 Documentation improvements
|
|
12
|
+
|
|
13
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
14
|
+
@kevincorizi-sbt, @mustafajw07, @SamanPandey-in
|
|
15
|
+
|
|
16
|
+
The following team members contributed to this release:
|
|
17
|
+
@brijeshb42, @hasdfa, @JCQuintas, @LukasTy, @michelengelen, @noraleonte, @rita-codes, @silviuaavram
|
|
18
|
+
|
|
19
|
+
### Data Grid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid@9.10.1`
|
|
22
|
+
|
|
23
|
+
- [data grid] Fix `getColumn` return type not reflecting that it can return undefined (#23165) @JCQuintas
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid@9.10.1`.
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-premium@9.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid-pro@9.10.1`.
|
|
32
|
+
|
|
33
|
+
### Date and Time Pickers
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-date-pickers@9.10.1`
|
|
36
|
+
|
|
37
|
+
- [pickers] Fix format placeholder brightness with a start adornment (#23189) @LukasTy
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-date-pickers-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-date-pickers@9.10.1`, plus:
|
|
42
|
+
|
|
43
|
+
- [DateRangePicker] Fix broken active range position underline in single input range fields (#23166) @LukasTy
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-charts@9.10.1`
|
|
48
|
+
|
|
49
|
+
- [charts] Fix pie chart disappearing when an arc spans almost the full circle (#23145) @JCQuintas
|
|
50
|
+
- [charts] Set `aria-hidden` on accessibility proxy divs at initialization (#23186) @kevincorizi-sbt
|
|
51
|
+
- [charts] Fix keyboard navigation on series with different lengths (#23182) @JCQuintas
|
|
52
|
+
- [charts] Fix out of bounds keyboard navigation (#23180) @silviuaavram
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-charts-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-charts@9.10.1`, plus:
|
|
57
|
+
|
|
58
|
+
- [charts-pro] Fix highlight shifting on sampled bar charts (#23190) @noraleonte
|
|
59
|
+
- [charts-pro] Sampled band highlight falls back to single-band width for Date/object values (#23024) @SamanPandey-in
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-charts-premium@9.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
62
|
+
|
|
63
|
+
Same changes as in `@mui/x-charts-pro@9.10.1`.
|
|
64
|
+
|
|
65
|
+
### Tree View
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-tree-view@9.10.1`
|
|
68
|
+
|
|
69
|
+
- [TreeView] Fix selection propagation to exclude disabled items (#23012) @michelengelen
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-tree-view-pro@9.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-tree-view@9.10.1`.
|
|
74
|
+
|
|
75
|
+
### Scheduler
|
|
76
|
+
|
|
77
|
+
#### `@mui/x-scheduler@9.0.0-beta.7`
|
|
78
|
+
|
|
79
|
+
- [scheduler] Polish `EventCalendar` rendering for multi-resource events (#23161) @mustafajw07
|
|
80
|
+
- [scheduler] Responsive header (#22954) @noraleonte
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.7` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
83
|
+
|
|
84
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.7`, plus:
|
|
85
|
+
|
|
86
|
+
- [scheduler-premium] Add the dependencies data model (#23117) @rita-codes
|
|
87
|
+
- [scheduler-premium] Dependencies - Render the FS arrow (#23162) @rita-codes
|
|
88
|
+
|
|
89
|
+
### Codemod
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-codemod@9.10.1`
|
|
92
|
+
|
|
93
|
+
Internal changes.
|
|
94
|
+
|
|
95
|
+
### Docs
|
|
96
|
+
|
|
97
|
+
- [docs] Fix clearing, layout shift, and prop leak in Pickers demos (#23191) @LukasTy
|
|
98
|
+
|
|
99
|
+
### Core
|
|
100
|
+
|
|
101
|
+
- [code-infra] Validate working of specific code-infra canary (#23207) @brijeshb42
|
|
102
|
+
|
|
103
|
+
### Miscellaneous
|
|
104
|
+
|
|
105
|
+
- [chat] Normalize message part link URLs (#23187) @hasdfa
|
|
106
|
+
- [x-chat] Fix object URL leaks for submitted attachments (#23198) @hasdfa
|
|
107
|
+
- [internals] Make disposable types self-contained without `esnext.disposable` lib (#23164) @JCQuintas
|
|
108
|
+
|
|
109
|
+
## 9.10.0
|
|
110
|
+
|
|
111
|
+
_Jul 17, 2026_
|
|
112
|
+
|
|
113
|
+
We'd like to extend a big thank you to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
114
|
+
|
|
115
|
+
- 📊 Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` for Charts
|
|
116
|
+
- ⚙️ Allow opt-in `data-*` attributes on `slotProps`. [Read more](https://mui.com/x/common-concepts/custom-components/#passing-data-attributes-to-slots)
|
|
117
|
+
- 🐞 Bugfixes
|
|
118
|
+
- 📚 Documentation improvements
|
|
119
|
+
|
|
120
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
121
|
+
@Anexus5919, @mustafajw07
|
|
122
|
+
|
|
123
|
+
The following team members contributed to this release:
|
|
124
|
+
@brijeshb42, @Janpot, @JCQuintas, @LukasTy, @noraleonte
|
|
125
|
+
|
|
126
|
+
### Data Grid
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-data-grid@9.10.0`
|
|
129
|
+
|
|
130
|
+
Internal changes.
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-data-grid-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
133
|
+
|
|
134
|
+
Same changes as in `@mui/x-data-grid@9.10.0`.
|
|
135
|
+
|
|
136
|
+
#### `@mui/x-data-grid-premium@9.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
137
|
+
|
|
138
|
+
Same changes as in `@mui/x-data-grid-pro@9.10.0`.
|
|
139
|
+
|
|
140
|
+
### Date and Time Pickers
|
|
141
|
+
|
|
142
|
+
#### `@mui/x-date-pickers@9.10.0`
|
|
143
|
+
|
|
144
|
+
Internal changes.
|
|
145
|
+
|
|
146
|
+
#### `@mui/x-date-pickers-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
147
|
+
|
|
148
|
+
Same changes as in `@mui/x-date-pickers@9.10.0`.
|
|
149
|
+
|
|
150
|
+
### Charts
|
|
151
|
+
|
|
152
|
+
#### `@mui/x-charts@9.10.0`
|
|
153
|
+
|
|
154
|
+
- [charts] Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` (#23144) @JCQuintas
|
|
155
|
+
|
|
156
|
+
#### `@mui/x-charts-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
157
|
+
|
|
158
|
+
Same changes as in `@mui/x-charts@9.10.0`.
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-charts-premium@9.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
161
|
+
|
|
162
|
+
Same changes as in `@mui/x-charts-pro@9.10.0`.
|
|
163
|
+
|
|
164
|
+
### Tree View
|
|
165
|
+
|
|
166
|
+
#### `@mui/x-tree-view@9.10.0`
|
|
167
|
+
|
|
168
|
+
Internal changes.
|
|
169
|
+
|
|
170
|
+
#### `@mui/x-tree-view-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
171
|
+
|
|
172
|
+
Same changes as in `@mui/x-tree-view@9.10.0`, plus:
|
|
173
|
+
|
|
174
|
+
- [tree-view] Fix pre-loaded items not caching (#23155) @noraleonte
|
|
175
|
+
|
|
176
|
+
### Scheduler
|
|
177
|
+
|
|
178
|
+
#### `@mui/x-scheduler@9.0.0-beta.6`
|
|
179
|
+
|
|
180
|
+
- [scheduler] Carry custom event data through the edit dialog submit (#22874) @Anexus5919
|
|
181
|
+
- [scheduler] Support array values for `CalendarEvent.resource` (#23109) @mustafajw07
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
184
|
+
|
|
185
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.6`.
|
|
186
|
+
|
|
187
|
+
### Chat
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-chat@9.0.0-alpha.14`
|
|
190
|
+
|
|
191
|
+
- [chat] Reuse `resolveComponentProps` from `@mui/utils` (#23095) @LukasTy
|
|
192
|
+
|
|
193
|
+
#### `@mui/x-chat-headless@9.0.0-alpha.14`
|
|
194
|
+
|
|
195
|
+
Internal changes.
|
|
196
|
+
|
|
197
|
+
### Codemod
|
|
198
|
+
|
|
199
|
+
#### `@mui/x-codemod@9.10.0`
|
|
200
|
+
|
|
201
|
+
Internal changes.
|
|
202
|
+
|
|
203
|
+
### Docs
|
|
204
|
+
|
|
205
|
+
- [docs] Fix bugs on Scheduler overview page (#23147) @noraleonte
|
|
206
|
+
|
|
207
|
+
### Core
|
|
208
|
+
|
|
209
|
+
- [code-infra] Fix changelog dependency exclusion and l10n routing (#23112) @LukasTy
|
|
210
|
+
- [code-infra] Port codebase to use `tsgo` (#22826) @brijeshb42
|
|
211
|
+
- [code-infra] Reduce `release:build` concurrency to mitigate `tsgo` OOM kills (#23139) @LukasTy
|
|
212
|
+
- [core] Allow opt-in `data-*` attributes on `slotProps` (#22128) @LukasTy
|
|
213
|
+
|
|
214
|
+
### Miscellaneous
|
|
215
|
+
|
|
216
|
+
- [core] Ignore `code-infra-renovate[bot]` commits in changelog (#23153) @Janpot
|
|
217
|
+
- [website] Fix broken `ChatBox` API link (#23149) @brijeshb42
|
|
218
|
+
- [test] Fix WebGL benchmark timeout on CI (#23142) @JCQuintas
|
|
219
|
+
|
|
3
220
|
## 9.9.0
|
|
4
221
|
|
|
5
222
|
_Jul 9, 2026_
|
|
@@ -51,8 +51,8 @@ const configuration = {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
const packageInfo = {
|
|
54
|
-
releaseDate: "
|
|
55
|
-
version: "9.
|
|
54
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
55
|
+
version: "9.10.1",
|
|
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: "
|
|
48
|
-
version: "9.
|
|
47
|
+
releaseDate: "MTc4NDc2NDgwMDAwMA==",
|
|
48
|
+
version: "9.10.1",
|
|
49
49
|
name: 'x-data-grid-premium'
|
|
50
50
|
};
|
|
51
51
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
|
@@ -61,7 +61,7 @@ function GridGroupingCriteriaCell(props) {
|
|
|
61
61
|
};
|
|
62
62
|
let cellContent;
|
|
63
63
|
const colDef = apiRef.current.getColumn(rowNode.groupingField);
|
|
64
|
-
if (typeof colDef.renderCell === 'function') {
|
|
64
|
+
if (colDef && typeof colDef.renderCell === 'function') {
|
|
65
65
|
cellContent = colDef.renderCell(props);
|
|
66
66
|
} else if (typeof formattedValue !== 'undefined') {
|
|
67
67
|
cellContent = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -53,7 +53,7 @@ export function GridGroupingCriteriaCell(props) {
|
|
|
53
53
|
};
|
|
54
54
|
let cellContent;
|
|
55
55
|
const colDef = apiRef.current.getColumn(rowNode.groupingField);
|
|
56
|
-
if (typeof colDef.renderCell === 'function') {
|
|
56
|
+
if (colDef && typeof colDef.renderCell === 'function') {
|
|
57
57
|
cellContent = colDef.renderCell(props);
|
|
58
58
|
} else if (typeof formattedValue !== 'undefined') {
|
|
59
59
|
cellContent = /*#__PURE__*/_jsx("span", {
|
|
@@ -4,34 +4,34 @@ import { GridColumnMenuAggregationItem } from "./columnMenu/menuItems/GridColumn
|
|
|
4
4
|
import { GridColumnMenuManagePanelItem } from "./columnMenu/menuItems/GridColumnMenuManagePanelItem.mjs";
|
|
5
5
|
export declare function GridColumnMenuGroupingItem(props: GridColumnMenuItemProps): import("react").JSX.Element;
|
|
6
6
|
export declare const GRID_COLUMN_MENU_SLOTS_PREMIUM: {
|
|
7
|
-
columnMenuAggregationItem: typeof GridColumnMenuAggregationItem;
|
|
8
|
-
columnMenuGroupingItem: typeof GridColumnMenuGroupingItem;
|
|
9
|
-
columnMenuManagePanelItem: typeof GridColumnMenuManagePanelItem;
|
|
10
|
-
columnMenuPinningItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuPinningItem;
|
|
11
7
|
columnMenuSortItem: typeof import("@mui/x-data-grid").GridColumnMenuSortItem;
|
|
12
8
|
columnMenuFilterItem: typeof import("@mui/x-data-grid").GridColumnMenuFilterItem;
|
|
13
9
|
columnMenuColumnsItem: typeof import("@mui/x-data-grid").GridColumnMenuColumnsItem;
|
|
10
|
+
columnMenuPinningItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuPinningItem;
|
|
11
|
+
columnMenuAggregationItem: typeof GridColumnMenuAggregationItem;
|
|
12
|
+
columnMenuGroupingItem: typeof GridColumnMenuGroupingItem;
|
|
13
|
+
columnMenuManagePanelItem: typeof GridColumnMenuManagePanelItem;
|
|
14
14
|
};
|
|
15
15
|
export declare const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM: {
|
|
16
|
-
|
|
16
|
+
columnMenuSortItem: {
|
|
17
17
|
displayOrder: number;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
columnMenuFilterItem: {
|
|
20
20
|
displayOrder: number;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
columnMenuColumnsItem: {
|
|
23
23
|
displayOrder: number;
|
|
24
24
|
};
|
|
25
25
|
columnMenuPinningItem: {
|
|
26
26
|
displayOrder: number;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
columnMenuAggregationItem: {
|
|
29
29
|
displayOrder: number;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
columnMenuGroupingItem: {
|
|
32
32
|
displayOrder: number;
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
columnMenuManagePanelItem: {
|
|
35
35
|
displayOrder: number;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
@@ -4,34 +4,34 @@ import { GridColumnMenuAggregationItem } from "./columnMenu/menuItems/GridColumn
|
|
|
4
4
|
import { GridColumnMenuManagePanelItem } from "./columnMenu/menuItems/GridColumnMenuManagePanelItem.js";
|
|
5
5
|
export declare function GridColumnMenuGroupingItem(props: GridColumnMenuItemProps): import("react").JSX.Element;
|
|
6
6
|
export declare const GRID_COLUMN_MENU_SLOTS_PREMIUM: {
|
|
7
|
-
columnMenuAggregationItem: typeof GridColumnMenuAggregationItem;
|
|
8
|
-
columnMenuGroupingItem: typeof GridColumnMenuGroupingItem;
|
|
9
|
-
columnMenuManagePanelItem: typeof GridColumnMenuManagePanelItem;
|
|
10
|
-
columnMenuPinningItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuPinningItem;
|
|
11
7
|
columnMenuSortItem: typeof import("@mui/x-data-grid").GridColumnMenuSortItem;
|
|
12
8
|
columnMenuFilterItem: typeof import("@mui/x-data-grid").GridColumnMenuFilterItem;
|
|
13
9
|
columnMenuColumnsItem: typeof import("@mui/x-data-grid").GridColumnMenuColumnsItem;
|
|
10
|
+
columnMenuPinningItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuPinningItem;
|
|
11
|
+
columnMenuAggregationItem: typeof GridColumnMenuAggregationItem;
|
|
12
|
+
columnMenuGroupingItem: typeof GridColumnMenuGroupingItem;
|
|
13
|
+
columnMenuManagePanelItem: typeof GridColumnMenuManagePanelItem;
|
|
14
14
|
};
|
|
15
15
|
export declare const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM: {
|
|
16
|
-
|
|
16
|
+
columnMenuSortItem: {
|
|
17
17
|
displayOrder: number;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
columnMenuFilterItem: {
|
|
20
20
|
displayOrder: number;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
columnMenuColumnsItem: {
|
|
23
23
|
displayOrder: number;
|
|
24
24
|
};
|
|
25
25
|
columnMenuPinningItem: {
|
|
26
26
|
displayOrder: number;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
columnMenuAggregationItem: {
|
|
29
29
|
displayOrder: number;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
columnMenuGroupingItem: {
|
|
32
32
|
displayOrder: number;
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
columnMenuManagePanelItem: {
|
|
35
35
|
displayOrder: number;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
@@ -141,11 +141,14 @@ function AggregationSelect({
|
|
|
141
141
|
const pivotActive = (0, _internals.gridPivotActiveSelector)(apiRef);
|
|
142
142
|
const getActualFieldName = React.useCallback(fieldName => pivotActive ? fieldName.split(_columnGroups.COLUMN_GROUP_ID_SEPARATOR).slice(-1)[0] : fieldName, [pivotActive]);
|
|
143
143
|
const colDef = React.useCallback(fieldName => apiRef.current.getColumn(getActualFieldName(fieldName)), [apiRef, getActualFieldName]);
|
|
144
|
-
const availableAggregationFunctions = React.useMemo(() =>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
const availableAggregationFunctions = React.useMemo(() => {
|
|
145
|
+
const column = colDef(field);
|
|
146
|
+
return [...(pivotActive ? [] : [AGGREGATION_FUNCTION_NONE]), ...(column ? (0, _gridAggregationUtils.getAvailableAggregationFunctions)({
|
|
147
|
+
aggregationFunctions: rootProps.aggregationFunctions,
|
|
148
|
+
colDef: column,
|
|
149
|
+
isDataSource: !!rootProps.dataSource
|
|
150
|
+
}) : [])];
|
|
151
|
+
}, [colDef, field, pivotActive, rootProps.aggregationFunctions, rootProps.dataSource]);
|
|
149
152
|
const handleClick = React.useCallback(func => {
|
|
150
153
|
if (pivotActive) {
|
|
151
154
|
const fieldName = getActualFieldName(field);
|
|
@@ -133,11 +133,14 @@ export function AggregationSelect({
|
|
|
133
133
|
const pivotActive = gridPivotActiveSelector(apiRef);
|
|
134
134
|
const getActualFieldName = React.useCallback(fieldName => pivotActive ? fieldName.split(COLUMN_GROUP_ID_SEPARATOR).slice(-1)[0] : fieldName, [pivotActive]);
|
|
135
135
|
const colDef = React.useCallback(fieldName => apiRef.current.getColumn(getActualFieldName(fieldName)), [apiRef, getActualFieldName]);
|
|
136
|
-
const availableAggregationFunctions = React.useMemo(() =>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
const availableAggregationFunctions = React.useMemo(() => {
|
|
137
|
+
const column = colDef(field);
|
|
138
|
+
return [...(pivotActive ? [] : [AGGREGATION_FUNCTION_NONE]), ...(column ? getAvailableAggregationFunctions({
|
|
139
|
+
aggregationFunctions: rootProps.aggregationFunctions,
|
|
140
|
+
colDef: column,
|
|
141
|
+
isDataSource: !!rootProps.dataSource
|
|
142
|
+
}) : [])];
|
|
143
|
+
}, [colDef, field, pivotActive, rootProps.aggregationFunctions, rootProps.dataSource]);
|
|
141
144
|
const handleClick = React.useCallback(func => {
|
|
142
145
|
if (pivotActive) {
|
|
143
146
|
const fieldName = getActualFieldName(field);
|
|
@@ -42,7 +42,7 @@ declare const PromptField: React.ForwardRefExoticComponent<PromptFieldProps> | R
|
|
|
42
42
|
/**
|
|
43
43
|
* A function to customize rendering of the component.
|
|
44
44
|
*/
|
|
45
|
-
render?: RenderProp<React.ComponentProps<
|
|
45
|
+
render?: RenderProp<React.ComponentProps<'div'>, PromptFieldState>;
|
|
46
46
|
/**
|
|
47
47
|
* Override or extend the styles applied to the component.
|
|
48
48
|
*/
|
|
@@ -42,7 +42,7 @@ declare const PromptField: React.ForwardRefExoticComponent<PromptFieldProps> | R
|
|
|
42
42
|
/**
|
|
43
43
|
* A function to customize rendering of the component.
|
|
44
44
|
*/
|
|
45
|
-
render?: RenderProp<React.ComponentProps<
|
|
45
|
+
render?: RenderProp<React.ComponentProps<'div'>, PromptFieldState>;
|
|
46
46
|
/**
|
|
47
47
|
* Override or extend the styles applied to the component.
|
|
48
48
|
*/
|
|
@@ -15,8 +15,8 @@ export declare const createAggregationLookup: ({
|
|
|
15
15
|
apiRef: RefObject<GridPrivateApiPremium>;
|
|
16
16
|
aggregationRules: GridAggregationRules;
|
|
17
17
|
aggregatedFields: string[];
|
|
18
|
-
aggregationRowsScope: DataGridPremiumProcessedProps[
|
|
19
|
-
getAggregationPosition: DataGridPremiumProcessedProps[
|
|
18
|
+
aggregationRowsScope: DataGridPremiumProcessedProps['aggregationRowsScope'];
|
|
19
|
+
getAggregationPosition: DataGridPremiumProcessedProps['getAggregationPosition'];
|
|
20
20
|
isDataSource: boolean;
|
|
21
21
|
applySorting: boolean;
|
|
22
22
|
}) => GridAggregationLookup;
|
|
@@ -15,8 +15,8 @@ export declare const createAggregationLookup: ({
|
|
|
15
15
|
apiRef: RefObject<GridPrivateApiPremium>;
|
|
16
16
|
aggregationRules: GridAggregationRules;
|
|
17
17
|
aggregatedFields: string[];
|
|
18
|
-
aggregationRowsScope: DataGridPremiumProcessedProps[
|
|
19
|
-
getAggregationPosition: DataGridPremiumProcessedProps[
|
|
18
|
+
aggregationRowsScope: DataGridPremiumProcessedProps['aggregationRowsScope'];
|
|
19
|
+
getAggregationPosition: DataGridPremiumProcessedProps['getAggregationPosition'];
|
|
20
20
|
isDataSource: boolean;
|
|
21
21
|
applySorting: boolean;
|
|
22
22
|
}) => GridAggregationLookup;
|
|
@@ -59,5 +59,5 @@ export declare const getAggregationFunctionLabel: ({
|
|
|
59
59
|
apiRef: RefObject<GridApiPremium>;
|
|
60
60
|
aggregationRule: GridAggregationRule;
|
|
61
61
|
}) => string;
|
|
62
|
-
export declare const defaultGetAggregationPosition: (groupNode: GridGroupNode) => "
|
|
62
|
+
export declare const defaultGetAggregationPosition: (groupNode: GridGroupNode) => "footer" | "inline";
|
|
63
63
|
export {};
|
|
@@ -59,5 +59,5 @@ export declare const getAggregationFunctionLabel: ({
|
|
|
59
59
|
apiRef: RefObject<GridApiPremium>;
|
|
60
60
|
aggregationRule: GridAggregationRule;
|
|
61
61
|
}) => string;
|
|
62
|
-
export declare const defaultGetAggregationPosition: (groupNode: GridGroupNode) => "
|
|
62
|
+
export declare const defaultGetAggregationPosition: (groupNode: GridGroupNode) => "footer" | "inline";
|
|
63
63
|
export {};
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
export declare const aggregationStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'aggregationModel' | 'initialState'>, GridPrivateApiPremium>;
|
|
6
|
-
export declare const useGridAggregation: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridAggregation: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'onAggregationModelChange' | 'initialState' | 'aggregationModel' | 'getAggregationPosition' | 'aggregationFunctions' | 'aggregationRowsScope' | 'disableAggregation' | 'rowGroupingColumnMode' | 'dataSource'>) => void;
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
export declare const aggregationStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'aggregationModel' | 'initialState'>, GridPrivateApiPremium>;
|
|
6
|
-
export declare const useGridAggregation: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridAggregation: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'onAggregationModelChange' | 'initialState' | 'aggregationModel' | 'getAggregationPosition' | 'aggregationFunctions' | 'aggregationRowsScope' | 'disableAggregation' | 'rowGroupingColumnMode' | 'dataSource'>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
|
-
export declare const useGridAggregationPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
4
|
+
export declare const useGridAggregationPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'aggregationFunctions' | 'disableAggregation' | 'getAggregationPosition' | 'slotProps' | 'slots' | 'dataSource'>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
|
-
export declare const useGridAggregationPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
4
|
+
export declare const useGridAggregationPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'aggregationFunctions' | 'disableAggregation' | 'getAggregationPosition' | 'slotProps' | 'slots' | 'dataSource'>) => void;
|
|
@@ -35,7 +35,7 @@ export declare const unwrapColumnFromAggregation: (column: GridColDef) => GridBa
|
|
|
35
35
|
valueFormatter?: import("@mui/x-data-grid").GridValueFormatter<import("@mui/x-data-grid").GridValidRowModel, any, any, never> | undefined;
|
|
36
36
|
valueParser?: import("@mui/x-data-grid").GridValueParser<import("@mui/x-data-grid").GridValidRowModel, any, any> | undefined;
|
|
37
37
|
cellClassName?: import("@mui/x-data-grid").GridCellClassNamePropType<import("@mui/x-data-grid").GridValidRowModel, any> | undefined;
|
|
38
|
-
display?:
|
|
38
|
+
display?: 'text' | 'flex';
|
|
39
39
|
renderCell?: ((params: import("@mui/x-data-grid").GridRenderCellParams<import("@mui/x-data-grid").GridValidRowModel, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
|
|
40
40
|
renderEditCell?: ((params: import("@mui/x-data-grid").GridRenderEditCellParams<import("@mui/x-data-grid").GridValidRowModel, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
|
|
41
41
|
preProcessEditCellProps?: ((params: import("@mui/x-data-grid").GridPreProcessEditCellProps) => import("@mui/x-data-grid").GridEditCellProps | Promise<import("@mui/x-data-grid").GridEditCellProps>) | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const unwrapColumnFromAggregation: (column: GridColDef) => GridBa
|
|
|
35
35
|
valueFormatter?: import("@mui/x-data-grid").GridValueFormatter<import("@mui/x-data-grid").GridValidRowModel, any, any, never> | undefined;
|
|
36
36
|
valueParser?: import("@mui/x-data-grid").GridValueParser<import("@mui/x-data-grid").GridValidRowModel, any, any> | undefined;
|
|
37
37
|
cellClassName?: import("@mui/x-data-grid").GridCellClassNamePropType<import("@mui/x-data-grid").GridValidRowModel, any> | undefined;
|
|
38
|
-
display?:
|
|
38
|
+
display?: 'text' | 'flex';
|
|
39
39
|
renderCell?: ((params: import("@mui/x-data-grid").GridRenderCellParams<import("@mui/x-data-grid").GridValidRowModel, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
|
|
40
40
|
renderEditCell?: ((params: import("@mui/x-data-grid").GridRenderEditCellParams<import("@mui/x-data-grid").GridValidRowModel, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
|
|
41
41
|
preProcessEditCellProps?: ((params: import("@mui/x-data-grid").GridPreProcessEditCellProps) => import("@mui/x-data-grid").GridEditCellProps | Promise<import("@mui/x-data-grid").GridEditCellProps>) | undefined;
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } 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 aiAssistantStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'initialState' | 'aiAssistantConversations' | 'aiAssistant'>>;
|
|
6
|
-
export declare const useGridAiAssistant: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridAiAssistant: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'aiAssistant' | 'aiAssistantConversations' | 'aiAssistantActiveConversationIndex' | 'allowAiAssistantDataSampling' | 'onAiAssistantConversationsChange' | 'onAiAssistantActiveConversationIndexChange' | 'onPrompt' | 'slots' | 'rowSelection' | 'disableColumnFilter' | 'disableRowGrouping' | 'disableAggregation' | 'disableColumnSorting' | 'disablePivoting' | 'chartsIntegration' | 'getPivotDerivedColumns'>) => void;
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } 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 aiAssistantStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'initialState' | 'aiAssistantConversations' | 'aiAssistant'>>;
|
|
6
|
-
export declare const useGridAiAssistant: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridAiAssistant: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'aiAssistant' | 'aiAssistantConversations' | 'aiAssistantActiveConversationIndex' | 'allowAiAssistantDataSampling' | 'onAiAssistantConversationsChange' | 'onAiAssistantActiveConversationIndexChange' | 'onPrompt' | 'slots' | 'rowSelection' | 'disableColumnFilter' | 'disableRowGrouping' | 'disableAggregation' | 'disableColumnSorting' | 'disablePivoting' | 'chartsIntegration' | 'getPivotDerivedColumns'>) => void;
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
export declare const cellSelectionStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'cellSelectionModel' | 'initialState'>>;
|
|
6
|
-
export declare const useGridCellSelection: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridCellSelection: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'cellSelection' | 'cellSelectionModel' | 'onCellSelectionModelChange' | 'pagination' | 'paginationMode' | 'ignoreValueFormatterDuringExport' | 'clipboardCopyCellDelimiter' | 'columnHeaderHeight' | 'cellSelectionFillHandle' | 'processRowUpdate' | 'onProcessRowUpdateError' | 'getRowId'>) => void;
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
export declare const cellSelectionStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'cellSelectionModel' | 'initialState'>>;
|
|
6
|
-
export declare const useGridCellSelection: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridCellSelection: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'cellSelection' | 'cellSelectionModel' | 'onCellSelectionModelChange' | 'pagination' | 'paginationMode' | 'ignoreValueFormatterDuringExport' | 'clipboardCopyCellDelimiter' | 'columnHeaderHeight' | 'cellSelectionFillHandle' | 'processRowUpdate' | 'onProcessRowUpdateError' | 'getRowId'>) => void;
|
|
@@ -173,7 +173,7 @@ const useGridCellSelection = (apiRef, props) => {
|
|
|
173
173
|
return false;
|
|
174
174
|
}
|
|
175
175
|
const column = apiRef.current.getColumn(params.field);
|
|
176
|
-
if (column
|
|
176
|
+
if (column?.type === _xDataGridPro.GRID_ACTIONS_COLUMN_TYPE) {
|
|
177
177
|
return false;
|
|
178
178
|
}
|
|
179
179
|
return params.rowNode.type !== 'pinnedRow';
|
|
@@ -165,7 +165,7 @@ export const useGridCellSelection = (apiRef, props) => {
|
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
const column = apiRef.current.getColumn(params.field);
|
|
168
|
-
if (column
|
|
168
|
+
if (column?.type === GRID_ACTIONS_COLUMN_TYPE) {
|
|
169
169
|
return false;
|
|
170
170
|
}
|
|
171
171
|
return params.rowNode.type !== 'pinnedRow';
|
|
@@ -5,4 +5,4 @@ import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
|
5
5
|
import type { ChartState } from "../../../models/gridChartsIntegration.mjs";
|
|
6
6
|
export declare const EMPTY_CHART_INTEGRATION_CONTEXT_STATE: ChartState;
|
|
7
7
|
export declare const chartsIntegrationStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'chartsIntegration' | 'initialState' | 'activeChartId' | 'rowGroupingModel' | 'pivotModel'>, GridPrivateApiPremium>;
|
|
8
|
-
export declare const useGridChartsIntegration: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
8
|
+
export declare const useGridChartsIntegration: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'chartsIntegration' | 'activeChartId' | 'onActiveChartIdChange' | 'initialState' | 'slots' | 'slotProps' | 'aggregationFunctions' | 'dataSource'>) => void;
|
|
@@ -5,4 +5,4 @@ import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
|
5
5
|
import type { ChartState } from "../../../models/gridChartsIntegration.js";
|
|
6
6
|
export declare const EMPTY_CHART_INTEGRATION_CONTEXT_STATE: ChartState;
|
|
7
7
|
export declare const chartsIntegrationStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'chartsIntegration' | 'initialState' | 'activeChartId' | 'rowGroupingModel' | 'pivotModel'>, GridPrivateApiPremium>;
|
|
8
|
-
export declare const useGridChartsIntegration: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
8
|
+
export declare const useGridChartsIntegration: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'chartsIntegration' | 'activeChartId' | 'onActiveChartIdChange' | 'initialState' | 'slots' | 'slotProps' | 'aggregationFunctions' | 'dataSource'>) => void;
|
|
@@ -191,12 +191,14 @@ const useGridChartsIntegration = (apiRef, props) => {
|
|
|
191
191
|
const dataColumns = [...new Set([...Object.values(visibleDimensions.current).flat(), ...Object.values(visibleValues.current).flat()])].map(column => {
|
|
192
192
|
const isColumnGrouped = rowGroupingModel.includes(column.field);
|
|
193
193
|
if (isColumnGrouped) {
|
|
194
|
-
const groupedFieldName =
|
|
194
|
+
const groupedFieldName = (0, _gridRowGroupingUtils.getRowGroupingFieldFromGroupingCriteria)(orderedFields.includes(_internals.GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD) ? null : column.field);
|
|
195
195
|
const columnDefinition = apiRef.current.getColumn(groupedFieldName);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
if (columnDefinition) {
|
|
197
|
+
return (0, _extends2.default)({}, columnDefinition, {
|
|
198
|
+
dataFieldName: column.field,
|
|
199
|
+
depth: rowGroupingModel.indexOf(column.field)
|
|
200
|
+
});
|
|
201
|
+
}
|
|
200
202
|
}
|
|
201
203
|
return (0, _extends2.default)({}, column, {
|
|
202
204
|
dataFieldName: column.field,
|
|
@@ -183,12 +183,14 @@ export const useGridChartsIntegration = (apiRef, props) => {
|
|
|
183
183
|
const dataColumns = [...new Set([...Object.values(visibleDimensions.current).flat(), ...Object.values(visibleValues.current).flat()])].map(column => {
|
|
184
184
|
const isColumnGrouped = rowGroupingModel.includes(column.field);
|
|
185
185
|
if (isColumnGrouped) {
|
|
186
|
-
const groupedFieldName =
|
|
186
|
+
const groupedFieldName = getRowGroupingFieldFromGroupingCriteria(orderedFields.includes(GRID_ROW_GROUPING_SINGLE_GROUPING_FIELD) ? null : column.field);
|
|
187
187
|
const columnDefinition = apiRef.current.getColumn(groupedFieldName);
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
if (columnDefinition) {
|
|
189
|
+
return _extends({}, columnDefinition, {
|
|
190
|
+
dataFieldName: column.field,
|
|
191
|
+
depth: rowGroupingModel.indexOf(column.field)
|
|
192
|
+
});
|
|
193
|
+
}
|
|
192
194
|
}
|
|
193
195
|
return _extends({}, column, {
|
|
194
196
|
dataFieldName: column.field,
|
|
@@ -23,4 +23,4 @@ export declare class CellValueUpdater {
|
|
|
23
23
|
}): void;
|
|
24
24
|
applyUpdates(): void;
|
|
25
25
|
}
|
|
26
|
-
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
26
|
+
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'pagination' | 'paginationMode' | 'processRowUpdate' | 'onProcessRowUpdateError' | 'getRowId' | 'onClipboardPasteStart' | 'onClipboardPasteEnd' | 'splitClipboardPastedText' | 'disableClipboardPaste' | 'onBeforeClipboardPasteStart' | 'clipboardCopyCellDelimiter'>) => void;
|
|
@@ -23,4 +23,4 @@ export declare class CellValueUpdater {
|
|
|
23
23
|
}): void;
|
|
24
24
|
applyUpdates(): void;
|
|
25
25
|
}
|
|
26
|
-
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
26
|
+
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'pagination' | 'paginationMode' | 'processRowUpdate' | 'onProcessRowUpdateError' | 'getRowId' | 'onClipboardPasteStart' | 'onClipboardPasteEnd' | 'splitClipboardPastedText' | 'disableClipboardPaste' | 'onBeforeClipboardPasteStart' | 'clipboardCopyCellDelimiter'>) => void;
|
|
@@ -16,18 +16,18 @@ export declare const serializeRowUnsafe: (id: GridRowId, columns: GridStateColDe
|
|
|
16
16
|
[field: string]: {
|
|
17
17
|
address: string;
|
|
18
18
|
};
|
|
19
|
-
}, options: Pick<BuildExcelOptions,
|
|
19
|
+
}, options: Pick<BuildExcelOptions, 'escapeFormulas'>) => SerializedRow;
|
|
20
20
|
export declare const serializeColumn: (column: GridColDef, columnsStyles: ColumnsStylesInterface) => {
|
|
21
21
|
key: string;
|
|
22
22
|
headerText: string;
|
|
23
23
|
width: number;
|
|
24
24
|
style: {
|
|
25
|
-
numFmt?: string | undefined;
|
|
26
25
|
font?: Partial<Excel.Font> | undefined;
|
|
27
26
|
alignment?: Partial<Excel.Alignment> | undefined;
|
|
28
27
|
protection?: Partial<Excel.Protection> | undefined;
|
|
29
28
|
border?: Partial<Excel.Borders> | undefined;
|
|
30
29
|
fill?: Excel.Fill | undefined;
|
|
30
|
+
numFmt?: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export declare function serializeColumns(columns: GridStateColDef[], styles: ColumnsStylesInterface): SerializedColumns;
|
|
@@ -16,18 +16,18 @@ export declare const serializeRowUnsafe: (id: GridRowId, columns: GridStateColDe
|
|
|
16
16
|
[field: string]: {
|
|
17
17
|
address: string;
|
|
18
18
|
};
|
|
19
|
-
}, options: Pick<BuildExcelOptions,
|
|
19
|
+
}, options: Pick<BuildExcelOptions, 'escapeFormulas'>) => SerializedRow;
|
|
20
20
|
export declare const serializeColumn: (column: GridColDef, columnsStyles: ColumnsStylesInterface) => {
|
|
21
21
|
key: string;
|
|
22
22
|
headerText: string;
|
|
23
23
|
width: number;
|
|
24
24
|
style: {
|
|
25
|
-
numFmt?: string | undefined;
|
|
26
25
|
font?: Partial<Excel.Font> | undefined;
|
|
27
26
|
alignment?: Partial<Excel.Alignment> | undefined;
|
|
28
27
|
protection?: Partial<Excel.Protection> | undefined;
|
|
29
28
|
border?: Partial<Excel.Borders> | undefined;
|
|
30
29
|
fill?: Excel.Fill | undefined;
|
|
30
|
+
numFmt?: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export declare function serializeColumns(columns: GridStateColDef[], styles: ColumnsStylesInterface): SerializedColumns;
|
|
@@ -17,4 +17,4 @@ export declare const createClipboardPasteHistoryHandler: (apiRef: RefObject<Grid
|
|
|
17
17
|
/**
|
|
18
18
|
* Create the default history events map.
|
|
19
19
|
*/
|
|
20
|
-
export declare const createDefaultHistoryHandlers: (apiRef: RefObject<GridApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
20
|
+
export declare const createDefaultHistoryHandlers: (apiRef: RefObject<GridApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'columns' | 'isCellEditable' | 'dataSource'>) => Record<keyof import("@mui/x-data-grid-pro").GridEventLookup, GridHistoryEventHandler<GridCellEditHistoryData> | GridHistoryEventHandler<GridClipboardPasteHistoryData> | GridHistoryEventHandler<GridRowEditHistoryData>>;
|
|
@@ -17,4 +17,4 @@ export declare const createClipboardPasteHistoryHandler: (apiRef: RefObject<Grid
|
|
|
17
17
|
/**
|
|
18
18
|
* Create the default history events map.
|
|
19
19
|
*/
|
|
20
|
-
export declare const createDefaultHistoryHandlers: (apiRef: RefObject<GridApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
20
|
+
export declare const createDefaultHistoryHandlers: (apiRef: RefObject<GridApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'columns' | 'isCellEditable' | 'dataSource'>) => Record<keyof import("@mui/x-data-grid-pro").GridEventLookup, GridHistoryEventHandler<GridCellEditHistoryData> | GridHistoryEventHandler<GridClipboardPasteHistoryData> | GridHistoryEventHandler<GridRowEditHistoryData>>;
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } 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 historyStateInitializer: GridStateInitializer;
|
|
6
|
-
export declare const useGridHistory: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridHistory: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'columns' | 'isCellEditable' | 'dataSource' | 'historyStackSize' | 'historyEventHandlers' | 'historyValidationEvents' | 'onUndo' | 'onRedo'>) => void;
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } 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 historyStateInitializer: GridStateInitializer;
|
|
6
|
-
export declare const useGridHistory: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridHistory: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'columns' | 'isCellEditable' | 'dataSource' | 'historyStackSize' | 'historyEventHandlers' | 'historyValidationEvents' | 'onUndo' | 'onRedo'>) => void;
|
|
@@ -4,5 +4,5 @@ import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
4
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
5
5
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
6
6
|
export declare const pivotingStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'pivotActive' | 'pivotModel' | 'pivotPanelOpen' | 'initialState' | 'disablePivoting' | 'getPivotDerivedColumns' | 'columns'>, GridPrivateApiPremium>;
|
|
7
|
-
export declare const useGridPivoting: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
7
|
+
export declare const useGridPivoting: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'pivotActive' | 'onPivotActiveChange' | 'pivotModel' | 'onPivotModelChange' | 'pivotPanelOpen' | 'onPivotPanelOpenChange' | 'disablePivoting' | 'getPivotDerivedColumns' | 'pivotingColDef' | 'groupingColDef' | 'aggregationFunctions' | 'loading' | 'dataSource'>, originalColumnsProp: readonly GridColDef[], originalRowsProp: readonly GridRowModel[]) => void;
|
|
8
8
|
export declare const useGridPivotingExportState: (apiRef: RefObject<GridPrivateApiPremium>) => void;
|
|
@@ -4,5 +4,5 @@ import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
4
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
5
5
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
6
6
|
export declare const pivotingStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'pivotActive' | 'pivotModel' | 'pivotPanelOpen' | 'initialState' | 'disablePivoting' | 'getPivotDerivedColumns' | 'columns'>, GridPrivateApiPremium>;
|
|
7
|
-
export declare const useGridPivoting: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
7
|
+
export declare const useGridPivoting: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'pivotActive' | 'onPivotActiveChange' | 'pivotModel' | 'onPivotModelChange' | 'pivotPanelOpen' | 'onPivotPanelOpenChange' | 'disablePivoting' | 'getPivotDerivedColumns' | 'pivotingColDef' | 'groupingColDef' | 'aggregationFunctions' | 'loading' | 'dataSource'>, originalColumnsProp: readonly GridColDef[], originalRowsProp: readonly GridRowModel[]) => void;
|
|
8
8
|
export declare const useGridPivotingExportState: (apiRef: RefObject<GridPrivateApiPremium>) => void;
|
|
@@ -4,8 +4,8 @@ import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPrem
|
|
|
4
4
|
import type { GridApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
import type { GridPivotingStaticPropsOverrides, GridPivotingDynamicPropsOverrides, GridPivotModel } from "./gridPivotingInterfaces.mjs";
|
|
6
6
|
export declare const defaultGetPivotDerivedColumns: NonNullable<DataGridPremiumProcessedProps['getPivotDerivedColumns']>;
|
|
7
|
-
export declare const getInitialColumns: (originalColumns: DataGridPremiumProcessedProps[
|
|
8
|
-
export declare const getPivotForcedProps: (pivotModel: GridPivotModel, columns: Map<string, GridColDef>, groupingColDef: DataGridPremiumProcessedProps[
|
|
7
|
+
export declare const getInitialColumns: (originalColumns: DataGridPremiumProcessedProps['columns'], getPivotDerivedColumns: DataGridPremiumProcessedProps['getPivotDerivedColumns'], getLocaleText: GridLocaleTextApi['getLocaleText']) => Map<string, GridColDef>;
|
|
8
|
+
export declare const getPivotForcedProps: (pivotModel: GridPivotModel, columns: Map<string, GridColDef>, groupingColDef: DataGridPremiumProcessedProps['groupingColDef']) => GridPivotingStaticPropsOverrides;
|
|
9
9
|
export declare const createPivotPropsFromRows: ({
|
|
10
10
|
rows,
|
|
11
11
|
columns,
|
|
@@ -16,6 +16,6 @@ export declare const createPivotPropsFromRows: ({
|
|
|
16
16
|
rows: GridRowModel[];
|
|
17
17
|
columns: Map<string, GridColDef>;
|
|
18
18
|
pivotModel: GridPivotModel;
|
|
19
|
-
pivotingColDef: DataGridPremiumProcessedProps[
|
|
19
|
+
pivotingColDef: DataGridPremiumProcessedProps['pivotingColDef'];
|
|
20
20
|
apiRef: RefObject<GridApiPremium>;
|
|
21
21
|
}) => GridPivotingDynamicPropsOverrides;
|
|
@@ -4,8 +4,8 @@ import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPrem
|
|
|
4
4
|
import type { GridApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
import type { GridPivotingStaticPropsOverrides, GridPivotingDynamicPropsOverrides, GridPivotModel } from "./gridPivotingInterfaces.js";
|
|
6
6
|
export declare const defaultGetPivotDerivedColumns: NonNullable<DataGridPremiumProcessedProps['getPivotDerivedColumns']>;
|
|
7
|
-
export declare const getInitialColumns: (originalColumns: DataGridPremiumProcessedProps[
|
|
8
|
-
export declare const getPivotForcedProps: (pivotModel: GridPivotModel, columns: Map<string, GridColDef>, groupingColDef: DataGridPremiumProcessedProps[
|
|
7
|
+
export declare const getInitialColumns: (originalColumns: DataGridPremiumProcessedProps['columns'], getPivotDerivedColumns: DataGridPremiumProcessedProps['getPivotDerivedColumns'], getLocaleText: GridLocaleTextApi['getLocaleText']) => Map<string, GridColDef>;
|
|
8
|
+
export declare const getPivotForcedProps: (pivotModel: GridPivotModel, columns: Map<string, GridColDef>, groupingColDef: DataGridPremiumProcessedProps['groupingColDef']) => GridPivotingStaticPropsOverrides;
|
|
9
9
|
export declare const createPivotPropsFromRows: ({
|
|
10
10
|
rows,
|
|
11
11
|
columns,
|
|
@@ -16,6 +16,6 @@ export declare const createPivotPropsFromRows: ({
|
|
|
16
16
|
rows: GridRowModel[];
|
|
17
17
|
columns: Map<string, GridColDef>;
|
|
18
18
|
pivotModel: GridPivotModel;
|
|
19
|
-
pivotingColDef: DataGridPremiumProcessedProps[
|
|
19
|
+
pivotingColDef: DataGridPremiumProcessedProps['pivotingColDef'];
|
|
20
20
|
apiRef: RefObject<GridApiPremium>;
|
|
21
21
|
}) => GridPivotingDynamicPropsOverrides;
|
|
@@ -21,8 +21,8 @@ interface FilterRowTreeFromTreeDataParams {
|
|
|
21
21
|
* - One of its children is passing the filter
|
|
22
22
|
* - It is passing the filter
|
|
23
23
|
*/
|
|
24
|
-
export declare const filterRowTreeFromGroupingColumns: (params: FilterRowTreeFromTreeDataParams) => Omit<GridFilterState,
|
|
25
|
-
export declare const getColDefOverrides: (groupingColDefProp: DataGridPremiumProcessedProps[
|
|
24
|
+
export declare const filterRowTreeFromGroupingColumns: (params: FilterRowTreeFromTreeDataParams) => Omit<GridFilterState, 'filterModel'>;
|
|
25
|
+
export declare const getColDefOverrides: (groupingColDefProp: DataGridPremiumProcessedProps['groupingColDef'], fields: string[], strategy?: RowGroupingStrategy) => import("@mui/x-data-grid-pro").GridGroupingColDefOverride<any> | null | undefined;
|
|
26
26
|
export declare const mergeStateWithRowGroupingModel: (rowGroupingModel: GridRowGroupingModel) => (state: GridStatePremium) => GridStatePremium;
|
|
27
27
|
export declare const setStrategyAvailability: (privateApiRef: RefObject<GridPrivateApiPremium>, disableRowGrouping: boolean, dataSource?: GridDataSource) => void;
|
|
28
28
|
export declare const getCellGroupingCriteria: ({
|
|
@@ -21,8 +21,8 @@ interface FilterRowTreeFromTreeDataParams {
|
|
|
21
21
|
* - One of its children is passing the filter
|
|
22
22
|
* - It is passing the filter
|
|
23
23
|
*/
|
|
24
|
-
export declare const filterRowTreeFromGroupingColumns: (params: FilterRowTreeFromTreeDataParams) => Omit<GridFilterState,
|
|
25
|
-
export declare const getColDefOverrides: (groupingColDefProp: DataGridPremiumProcessedProps[
|
|
24
|
+
export declare const filterRowTreeFromGroupingColumns: (params: FilterRowTreeFromTreeDataParams) => Omit<GridFilterState, 'filterModel'>;
|
|
25
|
+
export declare const getColDefOverrides: (groupingColDefProp: DataGridPremiumProcessedProps['groupingColDef'], fields: string[], strategy?: RowGroupingStrategy) => import("@mui/x-data-grid-pro").GridGroupingColDefOverride<any> | null | undefined;
|
|
26
26
|
export declare const mergeStateWithRowGroupingModel: (rowGroupingModel: GridRowGroupingModel) => (state: GridStatePremium) => GridStatePremium;
|
|
27
27
|
export declare const setStrategyAvailability: (privateApiRef: RefObject<GridPrivateApiPremium>, disableRowGrouping: boolean, dataSource?: GridDataSource) => void;
|
|
28
28
|
export declare const getCellGroupingCriteria: ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
4
|
-
export declare const useGridDataSourceRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
4
|
+
export declare const useGridDataSourceRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'disableRowGrouping' | 'rowGroupingColumnMode' | 'defaultGroupingExpansionDepth' | 'isGroupExpandedByDefault' | 'dataSource'>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
4
|
-
export declare const useGridDataSourceRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
4
|
+
export declare const useGridDataSourceRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'disableRowGrouping' | 'rowGroupingColumnMode' | 'defaultGroupingExpansionDepth' | 'isGroupExpandedByDefault' | 'dataSource'>) => void;
|
|
@@ -8,4 +8,4 @@ export declare const rowGroupingStateInitializer: GridStateInitializer<Pick<Data
|
|
|
8
8
|
* @requires useGridRows (state, method) - can be after, async only
|
|
9
9
|
* @requires useGridParamsApi (method) - can be after, async only
|
|
10
10
|
*/
|
|
11
|
-
export declare const useGridRowGrouping: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
11
|
+
export declare const useGridRowGrouping: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'initialState' | 'rowGroupingModel' | 'onRowGroupingModelChange' | 'isGroupExpandedByDefault' | 'rowGroupingColumnMode' | 'disableRowGrouping' | 'slotProps' | 'slots' | 'dataSource' | 'lazyLoading' | 'treeData' | 'isValidRowReorder'>) => void;
|
|
@@ -8,4 +8,4 @@ export declare const rowGroupingStateInitializer: GridStateInitializer<Pick<Data
|
|
|
8
8
|
* @requires useGridRows (state, method) - can be after, async only
|
|
9
9
|
* @requires useGridParamsApi (method) - can be after, async only
|
|
10
10
|
*/
|
|
11
|
-
export declare const useGridRowGrouping: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
11
|
+
export declare const useGridRowGrouping: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'initialState' | 'rowGroupingModel' | 'onRowGroupingModelChange' | 'isGroupExpandedByDefault' | 'rowGroupingColumnMode' | 'disableRowGrouping' | 'slotProps' | 'slots' | 'dataSource' | 'lazyLoading' | 'treeData' | 'isValidRowReorder'>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
4
|
-
export declare const useGridRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
4
|
+
export declare const useGridRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'disableRowGrouping' | 'groupingColDef' | 'rowGroupingColumnMode' | 'defaultGroupingExpansionDepth' | 'isGroupExpandedByDefault' | 'dataSource'>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
3
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
4
|
-
export declare const useGridRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
4
|
+
export declare const useGridRowGroupingPreProcessors: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'disableRowGrouping' | 'groupingColDef' | 'rowGroupingColumnMode' | 'defaultGroupingExpansionDepth' | 'isGroupExpandedByDefault' | 'dataSource'>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
|
-
export declare const useGridRowsOverridableMethods: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
4
|
+
export declare const useGridRowsOverridableMethods: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'processRowUpdate' | 'onProcessRowUpdateError' | 'treeData'>) => {
|
|
5
5
|
setRowIndex: (rowId: import("@mui/x-data-grid").GridRowId, targetIndex: number) => void;
|
|
6
6
|
setRowPosition: (sourceRowId: import("@mui/x-data-grid").GridRowId, targetRowId: import("@mui/x-data-grid").GridRowId, position: import("@mui/x-data-grid/internals").RowReorderDropPosition) => void | Promise<void>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
|
-
export declare const useGridRowsOverridableMethods: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
4
|
+
export declare const useGridRowsOverridableMethods: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'processRowUpdate' | 'onProcessRowUpdateError' | 'treeData'>) => {
|
|
5
5
|
setRowIndex: (rowId: import("@mui/x-data-grid").GridRowId, targetIndex: number) => void;
|
|
6
6
|
setRowPosition: (sourceRowId: import("@mui/x-data-grid").GridRowId, targetRowId: import("@mui/x-data-grid").GridRowId, position: import("@mui/x-data-grid/internals").RowReorderDropPosition) => void | Promise<void>;
|
|
7
7
|
};
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
export declare const sidebarStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'initialState'>>;
|
|
6
|
-
export declare const useGridSidebar: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridSidebar: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'initialState' | 'onSidebarClose' | 'onSidebarOpen'>) => void;
|
|
@@ -3,4 +3,4 @@ import type { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
export declare const sidebarStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'initialState'>>;
|
|
6
|
-
export declare const useGridSidebar: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps,
|
|
6
|
+
export declare const useGridSidebar: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'initialState' | 'onSidebarClose' | 'onSidebarOpen'>) => void;
|
|
@@ -9,4 +9,4 @@ import type { DataGridPremiumProps } from "../../models/dataGridPremiumProps.mjs
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const useKeepGroupedColumnsHidden: (props: {
|
|
11
11
|
apiRef: RefObject<GridApi | null>;
|
|
12
|
-
} & Pick<DataGridPremiumProps,
|
|
12
|
+
} & Pick<DataGridPremiumProps, 'initialState' | 'rowGroupingModel'>) => GridInitialStatePremium;
|
|
@@ -9,4 +9,4 @@ import type { DataGridPremiumProps } from "../../models/dataGridPremiumProps.js"
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const useKeepGroupedColumnsHidden: (props: {
|
|
11
11
|
apiRef: RefObject<GridApi | null>;
|
|
12
|
-
} & Pick<DataGridPremiumProps,
|
|
12
|
+
} & Pick<DataGridPremiumProps, 'initialState' | 'rowGroupingModel'>) => GridInitialStatePremium;
|
package/index.js
CHANGED
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.10.1",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Premium plan edition of the MUI X Data Grid Components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.29.7",
|
|
37
|
-
"@base-ui/utils": "^0.3.
|
|
37
|
+
"@base-ui/utils": "^0.3.1",
|
|
38
38
|
"@mui/utils": "^9.2.0",
|
|
39
39
|
"@mui/x-internal-exceljs-fork": "5.0.0",
|
|
40
40
|
"clsx": "^2.1.1",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
|
-
"@mui/x-data-grid": "^9.
|
|
43
|
-
"@mui/x-
|
|
44
|
-
"@mui/x-
|
|
45
|
-
"@mui/x-
|
|
42
|
+
"@mui/x-data-grid-pro": "^9.10.1",
|
|
43
|
+
"@mui/x-internals": "^9.10.1",
|
|
44
|
+
"@mui/x-data-grid": "^9.10.1",
|
|
45
|
+
"@mui/x-license": "^9.10.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|