@mui/x-data-grid-premium 8.9.1 → 8.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +217 -8
- package/DataGridPremium/DataGridPremium.js +27 -10
- package/DataGridPremium/useDataGridPremiumComponent.js +5 -0
- package/components/GridColumnMenuPivotItem.js +4 -3
- package/components/GridDataSourceGroupingCriteriaCell.js +3 -1
- package/components/pivotPanel/GridPivotPanelHeader.js +1 -1
- package/components/pivotPanel/PivotPanelTrigger.js +6 -1
- package/components/sidebar/Sidebar.d.ts +1 -1
- package/components/sidebar/Sidebar.js +20 -4
- package/esm/DataGridPremium/DataGridPremium.js +29 -12
- package/esm/DataGridPremium/useDataGridPremiumComponent.js +6 -1
- package/esm/components/GridColumnMenuPivotItem.js +3 -2
- package/esm/components/GridDataSourceGroupingCriteriaCell.js +3 -1
- package/esm/components/pivotPanel/GridPivotPanelHeader.js +1 -1
- package/esm/components/pivotPanel/PivotPanelTrigger.js +6 -1
- package/esm/components/sidebar/Sidebar.d.ts +1 -1
- package/esm/components/sidebar/Sidebar.js +21 -5
- package/esm/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -1
- package/esm/hooks/features/aiAssistant/api.d.ts +3 -3
- package/esm/hooks/features/aiAssistant/api.js +8 -4
- package/esm/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +11 -0
- package/esm/hooks/features/export/serializer/excelSerializer.js +1 -6
- package/esm/hooks/features/index.d.ts +2 -1
- package/esm/hooks/features/index.js +2 -1
- package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +5 -0
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -1
- package/esm/hooks/features/pivoting/gridPivotingSelectors.js +3 -1
- package/esm/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
- package/esm/hooks/features/pivoting/useGridPivoting.js +28 -9
- package/esm/hooks/features/pivoting/utils.js +7 -5
- package/esm/hooks/features/rowGrouping/createGroupingColDef.d.ts +1 -2
- package/esm/hooks/features/rowGrouping/createGroupingColDef.js +10 -3
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +1 -5
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +1 -6
- package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +2 -2
- package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +2 -2
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +2 -2
- package/esm/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +2 -2
- package/esm/hooks/features/sidebar/gridSidebarInterfaces.d.ts +16 -0
- package/esm/hooks/features/sidebar/gridSidebarInterfaces.js +4 -0
- package/esm/hooks/features/sidebar/gridSidebarSelector.d.ts +12 -0
- package/esm/hooks/features/sidebar/gridSidebarSelector.js +12 -0
- package/esm/hooks/features/sidebar/gridSidebarState.d.ts +8 -0
- package/esm/hooks/features/sidebar/gridSidebarState.js +1 -0
- package/esm/hooks/features/sidebar/index.d.ts +3 -0
- package/esm/hooks/features/sidebar/index.js +3 -0
- package/esm/hooks/features/sidebar/useGridSidebar.d.ts +6 -0
- package/esm/hooks/features/sidebar/useGridSidebar.js +72 -0
- package/esm/hooks/utils/useGridAriaAttributes.d.ts +1 -1
- package/esm/hooks/utils/useGridAriaAttributes.js +2 -2
- package/esm/index.js +1 -1
- package/esm/models/dataGridPremiumProps.d.ts +16 -0
- package/esm/models/gridApiPremium.d.ts +4 -2
- package/esm/models/gridStatePremium.d.ts +3 -0
- package/esm/typeOverloads/modules.d.ts +28 -1
- package/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -1
- package/hooks/features/aiAssistant/api.d.ts +3 -3
- package/hooks/features/aiAssistant/api.js +8 -4
- package/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +11 -0
- package/hooks/features/export/serializer/excelSerializer.js +1 -6
- package/hooks/features/index.d.ts +2 -1
- package/hooks/features/index.js +11 -0
- package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +5 -0
- package/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -1
- package/hooks/features/pivoting/gridPivotingSelectors.js +3 -8
- package/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
- package/hooks/features/pivoting/useGridPivoting.js +28 -9
- package/hooks/features/pivoting/utils.js +7 -5
- package/hooks/features/rowGrouping/createGroupingColDef.d.ts +1 -2
- package/hooks/features/rowGrouping/createGroupingColDef.js +13 -6
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +1 -5
- package/hooks/features/rowGrouping/gridRowGroupingUtils.js +3 -8
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +6 -6
- package/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +7 -7
- package/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
- package/hooks/features/rows/useGridRowAriaAttributes.js +4 -4
- package/hooks/features/sidebar/gridSidebarInterfaces.d.ts +16 -0
- package/hooks/features/sidebar/gridSidebarInterfaces.js +10 -0
- package/hooks/features/sidebar/gridSidebarSelector.d.ts +12 -0
- package/hooks/features/sidebar/gridSidebarSelector.js +18 -0
- package/hooks/features/sidebar/gridSidebarState.d.ts +8 -0
- package/hooks/features/sidebar/gridSidebarState.js +5 -0
- package/hooks/features/sidebar/index.d.ts +3 -0
- package/hooks/features/sidebar/index.js +38 -0
- package/hooks/features/sidebar/useGridSidebar.d.ts +6 -0
- package/hooks/features/sidebar/useGridSidebar.js +82 -0
- package/hooks/utils/useGridAriaAttributes.d.ts +1 -1
- package/hooks/utils/useGridAriaAttributes.js +4 -4
- package/index.js +1 -1
- package/models/dataGridPremiumProps.d.ts +16 -0
- package/models/gridApiPremium.d.ts +4 -2
- package/models/gridStatePremium.d.ts +3 -0
- package/package.json +7 -9
- package/typeOverloads/modules.d.ts +28 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,215 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.10.0
|
|
9
|
+
|
|
10
|
+
_Aug 8, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📊 [`FunnelChart`](https://mui.com/x/react-charts/funnel/) marked as stable
|
|
15
|
+
- 📈 [Zoom slider](https://mui.com/x/react-charts/zoom-and-pan/#zoom-slider) and [Preview](https://mui.com/x/react-charts/zoom-and-pan/#preview) marked as stable
|
|
16
|
+
- 📈 Supporting [label groups](https://mui.com/x/react-charts/axis/#grouped-axes) in band and point axis
|
|
17
|
+
- 🌎 Improve Norwegian Nynorsk (nn-NO) locale on the Data Grid
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
- 📚 Documentation improvements
|
|
20
|
+
|
|
21
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
22
|
+
@AnderzL7, @aqeelat, @dwrth, @noobyogi0010, @nusr, @sai6855
|
|
23
|
+
|
|
24
|
+
The following are all team members who have contributed to this release:
|
|
25
|
+
@arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @mapache-salvaje, @MBilalShafi, @oliviertassinari, @rita-codes, @romgrk
|
|
26
|
+
|
|
27
|
+
### Data Grid
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid@8.10.0`
|
|
30
|
+
|
|
31
|
+
- [DataGrid] Move spread operator in `BaseSelect` to allow `variant` change (#19026) @dwrth
|
|
32
|
+
- [DataGrid] Use `use-sync-external-store` shim (#19063) @romgrk
|
|
33
|
+
- [DataGrid] Allow skipping cache in `dataSource.fetchRows()` API method (#18904) @MBilalShafi
|
|
34
|
+
- [DataGrid] Do not call `preProcessEditCellProps()` if cell is not editable based on `isCellEditable()` (#18405) @nusr
|
|
35
|
+
- [DataGrid] Fix `renderCountry` throwing an error when used in tree data (#19068) @cherniavskii
|
|
36
|
+
- [DataGrid] Fix performance issue for root level "select all" (#19015) @MBilalShafi
|
|
37
|
+
- [DataGrid] Fix pagination `slotProps` being ignored by the grid (#19095) @romgrk
|
|
38
|
+
- [l10n] Improve Norwegian Nynorsk (nn-NO) locale (#19076) @AnderzL7
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-pro@8.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid@8.10.0`, plus:
|
|
43
|
+
|
|
44
|
+
- [DataGridPro] Fix row reorder not working with column reorder disabled (#19016) @MBilalShafi
|
|
45
|
+
- [DataGridPro] Fix header filters cache sharing issue (#19090) @MBilalShafi
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-data-grid-premium@8.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
48
|
+
|
|
49
|
+
Same changes as in `@mui/x-data-grid-pro@8.10.0`, plus:
|
|
50
|
+
|
|
51
|
+
- [DataGridPremium] Allow additional derived columns customization via `valueFormatter` (#18982) @arminmeh
|
|
52
|
+
- [DataGridPremium] Fix complex `singleSelect` columns not working in pivot model (#18971) @cherniavskii
|
|
53
|
+
|
|
54
|
+
### Date and Time Pickers
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-date-pickers@8.10.0`
|
|
57
|
+
|
|
58
|
+
- [pickers] `MuiPickersLayout-toolbar` is overlapping the Calendar in RTL `MobileDatePicker` variant (#18981) @rita-codes
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-date-pickers-pro@8.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
Same changes as in `@mui/x-date-pickers@8.10.0`.
|
|
63
|
+
|
|
64
|
+
### Charts
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-charts@8.10.0`
|
|
67
|
+
|
|
68
|
+
- [charts] Add `groups` to `band` and `point` axis config (#18766) @JCQuintas
|
|
69
|
+
- [charts] Animation example using `motion` library (#18993) @JCQuintas
|
|
70
|
+
- [charts] Deprecate `Unstable_` radar exports (#19079) @JCQuintas
|
|
71
|
+
- [charts] Improve grouped axis logic (#19069) @JCQuintas
|
|
72
|
+
- [charts] Fix type assertion in axis highlight components (#19060) @sai6855
|
|
73
|
+
- [charts] Remove unnecessary type assertion in tooltip `valueFormatter` in heatmap (#19047) @sai6855
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-charts-pro@8.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
76
|
+
|
|
77
|
+
Same changes as in `@mui/x-charts@8.10.0`, plus:
|
|
78
|
+
|
|
79
|
+
- [charts-pro] Fix `slotProps.tooltip.trigger` not respected in `ScatterChartPro` and `FunnelChart` (#18902) @bernardobelchior
|
|
80
|
+
- [charts-pro] Fix zoom filtering adjusting axis too soon (#18992) @bernardobelchior
|
|
81
|
+
- [charts-pro] Mark `FunnelChart` as stable (#19048) @JCQuintas
|
|
82
|
+
- [charts-pro] Mark zoom slider and preview as stable (#19049) @JCQuintas
|
|
83
|
+
- [charts-pro] Refactor `createAxisFilterMapper` (#18998) @bernardobelchior
|
|
84
|
+
|
|
85
|
+
### Tree View
|
|
86
|
+
|
|
87
|
+
#### `@mui/x-tree-view@8.10.0`
|
|
88
|
+
|
|
89
|
+
Internal changes.
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-tree-view-pro@8.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
92
|
+
|
|
93
|
+
Same changes as in `@mui/x-tree-view@8.10.0`.
|
|
94
|
+
|
|
95
|
+
### Codemod
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-codemod@8.10.0`
|
|
98
|
+
|
|
99
|
+
Internal changes.
|
|
100
|
+
|
|
101
|
+
### Docs
|
|
102
|
+
|
|
103
|
+
- [docs] Add CSS bundler breaking change to migration guide (#17436) @romgrk
|
|
104
|
+
- [docs] `RichTreeViewPro` demo for dragging via custom drag-handle is not working properly (#19008) @rita-codes
|
|
105
|
+
- [docs] Fix broken link to D3 in Charts (#19020) @oliviertassinari
|
|
106
|
+
- [docs] Revise the Charts Animation doc (#18990) @mapache-salvaje
|
|
107
|
+
- [docs] Fix incorrect code in line chart preview (#19023) @noobyogi0010
|
|
108
|
+
- [docs] Improve bundling instructions for the Data Grid (#19065) @romgrk
|
|
109
|
+
- [docs] Reduce image size in the inventory grid demo (#19004) @arminmeh
|
|
110
|
+
|
|
111
|
+
### Core
|
|
112
|
+
|
|
113
|
+
- [core] Fix ESLint reference name @oliviertassinari
|
|
114
|
+
|
|
115
|
+
### Miscellaneous
|
|
116
|
+
|
|
117
|
+
- [infra] Remove bundle size tracking for subpaths (#19072) @Janpot
|
|
118
|
+
- [infra] Accept `PORT` env on `docs:dev` script (#19014) @JCQuintas
|
|
119
|
+
- [infra] Skip codesandbox iframe demos in regressions tests (#18970) @cherniavskii
|
|
120
|
+
- [infra] Remove package.json `module` field (#18961) @Janpot
|
|
121
|
+
- [internal] Remove peer dependency on `@mui/system` (#19062) @aqeelat
|
|
122
|
+
|
|
123
|
+
## 8.9.2
|
|
124
|
+
|
|
125
|
+
_Jul 31, 2025_
|
|
126
|
+
|
|
127
|
+
We'd like to extend a big thank you to the 23 contributors who made this release possible. Here are some highlights ✨:
|
|
128
|
+
|
|
129
|
+
- 🌎 Improve French (fr-FR), Hebrew (he-IL) and Polish (pl-PL) locales on the Data Grid
|
|
130
|
+
- 🌎 Improve Korean (ko-KR) locale on the Date and Time Pickers
|
|
131
|
+
- 📈 Add symlog scale to charts
|
|
132
|
+
- 📊 Fix bar border radius on Firefox
|
|
133
|
+
- 🐞 Bugfixes
|
|
134
|
+
- 📚 Documentation improvements
|
|
135
|
+
|
|
136
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
137
|
+
@AmrElnaggar99, @atlanteh, @ddolcimascolo, @Jiseoup, @leonaha5, @noherczeg, @sai6855
|
|
138
|
+
|
|
139
|
+
The following are all team members who have contributed to this release:
|
|
140
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @bharatkashyap, @brijeshb42, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @mapache-salvaje, @MBilalShafi, @rita-codes, @romgrk, @siriwatknp
|
|
141
|
+
|
|
142
|
+
### Data Grid
|
|
143
|
+
|
|
144
|
+
#### `@mui/x-data-grid@8.9.2`
|
|
145
|
+
|
|
146
|
+
- [DataGrid] Add debounce for columns panel search (#18719) @noherczeg
|
|
147
|
+
- [DataGrid] Extract virtualization engine (#18275) @romgrk
|
|
148
|
+
- [DataGrid] Improve types in `<GridEditSingleSelect />` (#18184) @sai6855
|
|
149
|
+
- [l10n] Improve French (fr-FR) locale (#18905) @ddolcimascolo
|
|
150
|
+
- [l10n] Improve Hebrew (he-IL) locale (#18665) @atlanteh
|
|
151
|
+
- [l10n] Improve Polish (pl-PL) locale (#18068) @leonaha5
|
|
152
|
+
|
|
153
|
+
#### `@mui/x-data-grid-pro@8.9.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
154
|
+
|
|
155
|
+
Same changes as in `@mui/x-data-grid@8.9.2`, plus:
|
|
156
|
+
|
|
157
|
+
- [DataGridPro] Fix duplicate nested rows for dynamically updated row IDs (#18526) @MBilalShafi
|
|
158
|
+
|
|
159
|
+
#### `@mui/x-data-grid-premium@8.9.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
160
|
+
|
|
161
|
+
Same changes as in `@mui/x-data-grid-pro@8.9.2`, plus:
|
|
162
|
+
|
|
163
|
+
- [DataGridPremium] Add `privateMode` to AI assistant prompt resolver (#18759) @bharatkashyap
|
|
164
|
+
- [DataGridPremium] Fix empty nested group values caused by main criterial `valueFormatter()` (#18916) @cherniavskii
|
|
165
|
+
- [DataGridPremium] Sidebar content and state is managed the same way as for preference panel (#18741) @arminmeh
|
|
166
|
+
- [DataGridPremium] Make `api` param for the aggregation function optional (#18984) @arminmeh
|
|
167
|
+
|
|
168
|
+
### Date and Time Pickers
|
|
169
|
+
|
|
170
|
+
#### `@mui/x-date-pickers@8.9.2`
|
|
171
|
+
|
|
172
|
+
- [l10n] Improve Korean (ko-KR) locale (#18664) @Jiseoup
|
|
173
|
+
- [pickers] Fix popper click-away behavior (#18804) @LukasTy
|
|
174
|
+
- [pickers] Fix usage not in main document (#18944) @LukasTy
|
|
175
|
+
|
|
176
|
+
#### `@mui/x-date-pickers-pro@8.9.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
177
|
+
|
|
178
|
+
Same changes as in `@mui/x-date-pickers@8.9.2`.
|
|
179
|
+
|
|
180
|
+
### Charts
|
|
181
|
+
|
|
182
|
+
#### `@mui/x-charts@8.9.2`
|
|
183
|
+
|
|
184
|
+
- [charts] Add symlog scale to charts (#18729) @bernardobelchior
|
|
185
|
+
- [charts] Fix bar border radius on Firefox (#18824) @bernardobelchior
|
|
186
|
+
- [charts] Fix crash when rendering large scatter dataset (#18845) @bernardobelchior
|
|
187
|
+
- [charts] Remove unnecessary type assertion in tooltip `valueFormatter()` (#18877) @sai6855
|
|
188
|
+
- [charts] Export `ChartsWrapper` from `'./ChartsWrapper'` rather than `'./internals'` (#18966) @JCQuintas
|
|
189
|
+
|
|
190
|
+
#### `@mui/x-charts-pro@8.9.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
191
|
+
|
|
192
|
+
Same changes as in `@mui/x-charts@8.9.2`, plus:
|
|
193
|
+
|
|
194
|
+
- [charts-pro] Fix voronoi interaction with zoom (#18950) @alexfauquette
|
|
195
|
+
- [charts-pro] Hide toolbar by default when exporting (#18764) @bernardobelchior
|
|
196
|
+
|
|
197
|
+
### Codemod
|
|
198
|
+
|
|
199
|
+
#### `@mui/x-codemod@8.9.2`
|
|
200
|
+
|
|
201
|
+
Internal changes.
|
|
202
|
+
|
|
203
|
+
### Docs
|
|
204
|
+
|
|
205
|
+
- [docs] Add Data Grid demo pages (#18180) @KenanYusuf
|
|
206
|
+
- [docs] Copyedit the Charts Overview page (#18840) @mapache-salvaje
|
|
207
|
+
- [docs] Fix incorrect parameter name in pickers "Custom components" page from `variant` to `pickerVariant` (#18919) @AmrElnaggar99
|
|
208
|
+
|
|
209
|
+
### Miscellaneous
|
|
210
|
+
|
|
211
|
+
- [code-infra] Auto-generate deep exports to prevent asymmetric exports (#18917) @JCQuintas
|
|
212
|
+
- [docs-infra] Turn on "Edit in Chat" for X docs (#18869) @siriwatknp
|
|
213
|
+
- [infra] Add specific bundle size tracking (#18884) @Janpot
|
|
214
|
+
- [infra] Fix markdown formatting in llms generation (#18914) @Janpot
|
|
215
|
+
- [infra] Use CI action from mui-public (#18709) @brijeshb42
|
|
216
|
+
|
|
8
217
|
## 8.9.1
|
|
9
218
|
|
|
10
219
|
_Jul 21, 2025_
|
|
@@ -23,11 +232,11 @@ The following are all team members who have contributed to this release:
|
|
|
23
232
|
- [DataGrid] Move conditional list view column logic into `gridVisibleColumnDefinitionsSelector` (#18724) @KenanYusuf
|
|
24
233
|
- [DataGrid] Fix row selection "exclude" model inconsistency (#18844) @MBilalShafi
|
|
25
234
|
|
|
26
|
-
#### `@mui/x-data-grid-pro@8.9.1` [](https://mui.com/r/x-pro-svg-link
|
|
235
|
+
#### `@mui/x-data-grid-pro@8.9.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
236
|
|
|
28
237
|
Same changes as in `@mui/x-data-grid@8.9.1`.
|
|
29
238
|
|
|
30
|
-
#### `@mui/x-data-grid-premium@8.9.1` [](https://mui.com/r/x-premium-svg-link
|
|
239
|
+
#### `@mui/x-data-grid-premium@8.9.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
31
240
|
|
|
32
241
|
Same changes as in `@mui/x-data-grid-pro@8.9.1`.
|
|
33
242
|
|
|
@@ -324,8 +533,8 @@ Same changes as in `@mui/x-tree-view@8.7.0`, plus:
|
|
|
324
533
|
|
|
325
534
|
- [code-infra] Bump code-infra version and fix breaking changes (#18653) @brijeshb42
|
|
326
535
|
- [code-infra] Ensure `material-ui/disallow-react-api-in-server-components` ESLint rule is applied (#18570) @LukasTy
|
|
327
|
-
- [code-infra] Migrate to flat
|
|
328
|
-
- [code-infra] Refactor
|
|
536
|
+
- [code-infra] Migrate to flat ESLint config (#18562) @brijeshb42
|
|
537
|
+
- [code-infra] Refactor ESLint config (#18643) @LukasTy
|
|
329
538
|
- [infra] Add renovatebot rule for latest infra packages (#18609) @Janpot
|
|
330
539
|
- [infra] Move pushArgos script to code-infra (#18667) @Janpot
|
|
331
540
|
- [infra] Updates release script to fetch latest major version from upstream (#18552) @michelengelen
|
|
@@ -1239,7 +1448,7 @@ Same changes as in `@mui/x-tree-view@8.2.0`.
|
|
|
1239
1448
|
- [core] Fix all Vale errors @oliviertassinari
|
|
1240
1449
|
- [core] Move `loadStyleSheets` to internals and use it in data grid and charts (#17548) @bernardobelchior
|
|
1241
1450
|
- [core] Remove empty version (#17582) @oliviertassinari
|
|
1242
|
-
- [core] Remove
|
|
1451
|
+
- [core] Remove ESLint from codemod spec files (#17443) @alexfauquette
|
|
1243
1452
|
- [core] Remove unnecessary versions (#17597) @oliviertassinari
|
|
1244
1453
|
- [code-infra] Allow postinstall scripts for packages requesting it (#17635) @LukasTy
|
|
1245
1454
|
- [code-infra] Data Grid `vitest` changes (#17619) @JCQuintas
|
|
@@ -6733,7 +6942,7 @@ Same changes as in `@mui/x-date-pickers@7.8.0`.
|
|
|
6733
6942
|
|
|
6734
6943
|
### Core
|
|
6735
6944
|
|
|
6736
|
-
- [core] Add
|
|
6945
|
+
- [core] Add ESLint rule to restrict import from `../internals` root (#13633) @JCQuintas
|
|
6737
6946
|
- [docs-infra] Sync `\_app` folder with monorepo (#13582) @Janpot
|
|
6738
6947
|
- [license] Allow usage of Charts and Tree View Pro package for old premium licenses (#13619) @flaviendelangle
|
|
6739
6948
|
|
|
@@ -6871,7 +7080,7 @@ Same changes as in `@mui/x-date-pickers@7.7.0`.
|
|
|
6871
7080
|
|
|
6872
7081
|
- [charts] Add watermark on the pro `ResponsiveChartContainer` (#13398) @alexfauquette
|
|
6873
7082
|
- [charts] Allow to specify y-axis configuration (#13438) @alexfauquette
|
|
6874
|
-
- [charts] Fix
|
|
7083
|
+
- [charts] Fix ESLint for react compiler (#13444) @alexfauquette
|
|
6875
7084
|
- [charts] Improve themeAugmentation typing (#13433) @noraleonte
|
|
6876
7085
|
- [charts] Move the `ZAxisContextProvider` by default in the `ChartContainer` (#13465) @alexfauquette
|
|
6877
7086
|
- [charts] Use plugins to define series extremum and colors (#13397) @alexfauquette
|
|
@@ -7418,7 +7627,7 @@ Same changes as in `@mui/x-date-pickers@7.3.1`.
|
|
|
7418
7627
|
- [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
|
|
7419
7628
|
- [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
|
|
7420
7629
|
- [code-infra] Change package manager to `pnpm` (#11875) @LukasTy
|
|
7421
|
-
- [code-infra] Closer sync with
|
|
7630
|
+
- [code-infra] Closer sync with ESLint config of codebase (#12864) @oliviertassinari
|
|
7422
7631
|
- [support-infra] Add release announcement to GitHub workflows (#11867) (#12843) @michelengelen
|
|
7423
7632
|
|
|
7424
7633
|
## 7.3.0
|
|
@@ -18,19 +18,17 @@ var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
|
18
18
|
var _useDataGridPremiumComponent = require("./useDataGridPremiumComponent");
|
|
19
19
|
var _useDataGridPremiumProps = require("./useDataGridPremiumProps");
|
|
20
20
|
var _sidebar = require("../components/sidebar");
|
|
21
|
-
var _GridPivotPanel = require("../components/pivotPanel/GridPivotPanel");
|
|
22
21
|
var _useGridAriaAttributes = require("../hooks/utils/useGridAriaAttributes");
|
|
23
22
|
var _useGridRowAriaAttributes = require("../hooks/features/rows/useGridRowAriaAttributes");
|
|
24
23
|
var _gridAggregationSelectors = require("../hooks/features/aggregation/gridAggregationSelectors");
|
|
25
24
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
26
|
-
var
|
|
27
|
-
var _utils = require("../hooks/features/pivoting/utils");
|
|
25
|
+
var _sidebar2 = require("../hooks/features/sidebar");
|
|
28
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
27
|
const configuration = {
|
|
30
28
|
hooks: {
|
|
31
29
|
useCSSVariables: _material.useMaterialCSSVariables,
|
|
32
|
-
useGridAriaAttributes: _useGridAriaAttributes.
|
|
33
|
-
useGridRowAriaAttributes: _useGridRowAriaAttributes.
|
|
30
|
+
useGridAriaAttributes: _useGridAriaAttributes.useGridAriaAttributesPremium,
|
|
31
|
+
useGridRowAriaAttributes: _useGridRowAriaAttributes.useGridRowAriaAttributesPremium,
|
|
34
32
|
useCellAggregationResult: (id, field) => {
|
|
35
33
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
36
34
|
return (0, _xDataGridPro.useGridSelector)(apiRef, _gridAggregationSelectors.gridCellAggregationResultSelector, {
|
|
@@ -40,7 +38,7 @@ const configuration = {
|
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
};
|
|
43
|
-
const releaseInfo = "
|
|
41
|
+
const releaseInfo = "MTc1NDYwNDAwMDAwMA==";
|
|
44
42
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
45
43
|
packageName: "x-data-grid-premium",
|
|
46
44
|
releaseInfo: releaseInfo
|
|
@@ -54,13 +52,11 @@ const DataGridPremiumRaw = (0, _forwardRef.forwardRef)(function DataGridPremium(
|
|
|
54
52
|
const privateApiRef = (0, _internals.useGridApiInitialization)(initialProps.apiRef, initialProps);
|
|
55
53
|
const props = (0, _useDataGridPremiumComponent.useDataGridPremiumComponent)(privateApiRef, initialProps);
|
|
56
54
|
(0, _xLicense.useLicenseVerifier)('x-data-grid-premium', releaseInfo);
|
|
57
|
-
const pivotSettingsOpen = (0, _xDataGridPro.useGridSelector)(privateApiRef, _gridPivotingSelectors.gridPivotPanelOpenSelector);
|
|
58
55
|
if (process.env.NODE_ENV !== 'production') {
|
|
59
56
|
(0, _internals.validateProps)(props, dataGridPremiumPropValidators);
|
|
60
57
|
}
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
}) : null;
|
|
58
|
+
const sidebarOpen = (0, _xDataGridPro.useGridSelector)(privateApiRef, _sidebar2.gridSidebarOpenSelector);
|
|
59
|
+
const sidePanel = sidebarOpen ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebar.Sidebar, {}) : null;
|
|
64
60
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridContextProvider, {
|
|
65
61
|
privateApiRef: privateApiRef,
|
|
66
62
|
configuration: configuration,
|
|
@@ -224,6 +220,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
224
220
|
* @default 150
|
|
225
221
|
*/
|
|
226
222
|
columnBufferPx: _propTypes.default.number,
|
|
223
|
+
/**
|
|
224
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering in the columns menu.
|
|
225
|
+
* @default 150
|
|
226
|
+
*/
|
|
227
|
+
columnFilterDebounceMs: _propTypes.default.number,
|
|
227
228
|
/**
|
|
228
229
|
* Sets the height in pixels of the column group headers in the Data Grid.
|
|
229
230
|
* Inherits the `columnHeaderHeight` value if not set.
|
|
@@ -895,6 +896,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
895
896
|
/**
|
|
896
897
|
* Callback fired when the pivot side panel open state changes.
|
|
897
898
|
* @param {boolean} pivotPanelOpen Whether the pivot side panel is visible.
|
|
899
|
+
* @deprecated Use the `sidebarOpen` and `sidebarClose` events or corresponding event handlers `onSidebarOpen()` and `onSidebarClose()` instead.
|
|
898
900
|
*/
|
|
899
901
|
onPivotPanelOpenChange: _propTypes.default.func,
|
|
900
902
|
/**
|
|
@@ -996,6 +998,20 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
996
998
|
* @deprecated Use the {@link https://mui.com/x/react-data-grid/server-side-data/lazy-loading/#infinite-loading Server-side data-Infinite loading} instead.
|
|
997
999
|
*/
|
|
998
1000
|
onRowsScrollEnd: _propTypes.default.func,
|
|
1001
|
+
/**
|
|
1002
|
+
* Callback fired when the sidebar is closed.
|
|
1003
|
+
* @param {GridSidebarParams} params With all properties from [[GridSidebarParams]].
|
|
1004
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
1005
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
1006
|
+
*/
|
|
1007
|
+
onSidebarClose: _propTypes.default.func,
|
|
1008
|
+
/**
|
|
1009
|
+
* Callback fired when the sidebar is opened.
|
|
1010
|
+
* @param {GridSidebarParams} params With all properties from [[GridSidebarParams]].
|
|
1011
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
1012
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
1013
|
+
*/
|
|
1014
|
+
onSidebarOpen: _propTypes.default.func,
|
|
999
1015
|
/**
|
|
1000
1016
|
* Callback fired when the sort model changes before a column is sorted.
|
|
1001
1017
|
* @param {GridSortModel} model With all properties from [[GridSortModel]].
|
|
@@ -1102,6 +1118,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1102
1118
|
/**
|
|
1103
1119
|
* If `true`, the pivot side panel is visible.
|
|
1104
1120
|
* @default false
|
|
1121
|
+
* @deprecated Use `initialState.sidebar.open` instead.
|
|
1105
1122
|
*/
|
|
1106
1123
|
pivotPanelOpen: _propTypes.default.bool,
|
|
1107
1124
|
/**
|
|
@@ -23,6 +23,7 @@ var _useGridClipboardImport = require("../hooks/features/clipboard/useGridClipbo
|
|
|
23
23
|
var _useGridPivoting = require("../hooks/features/pivoting/useGridPivoting");
|
|
24
24
|
var _gridPivotingSelectors = require("../hooks/features/pivoting/gridPivotingSelectors");
|
|
25
25
|
var _useGridAiAssistant = require("../hooks/features/aiAssistant/useGridAiAssistant");
|
|
26
|
+
var _useGridSidebar = require("../hooks/features/sidebar/useGridSidebar");
|
|
26
27
|
// Premium-only features
|
|
27
28
|
|
|
28
29
|
const useDataGridPremiumComponent = (apiRef, inProps) => {
|
|
@@ -70,10 +71,12 @@ const useDataGridPremiumComponent = (apiRef, inProps) => {
|
|
|
70
71
|
(0, _internals.useGridInitializeState)(_useGridRowGrouping.rowGroupingStateInitializer, apiRef, props, key);
|
|
71
72
|
(0, _internals.useGridInitializeState)(_useGridAggregation.aggregationStateInitializer, apiRef, props, key);
|
|
72
73
|
(0, _internals.useGridInitializeState)(_internals.rowSelectionStateInitializer, apiRef, props);
|
|
74
|
+
(0, _internals.useGridInitializeState)(_internals.rowReorderStateInitializer, apiRef, props);
|
|
73
75
|
(0, _internals.useGridInitializeState)(_useGridCellSelection.cellSelectionStateInitializer, apiRef, props);
|
|
74
76
|
(0, _internals.useGridInitializeState)(_internals.detailPanelStateInitializer, apiRef, props);
|
|
75
77
|
(0, _internals.useGridInitializeState)(_internals.columnPinningStateInitializer, apiRef, props, key);
|
|
76
78
|
(0, _internals.useGridInitializeState)(_internals.columnsStateInitializer, apiRef, props, key);
|
|
79
|
+
(0, _internals.useGridInitializeState)(_useGridSidebar.sidebarStateInitializer, apiRef, props);
|
|
77
80
|
(0, _internals.useGridInitializeState)(_useGridPivoting.pivotingStateInitializer, apiRef, props);
|
|
78
81
|
(0, _internals.useGridInitializeState)(_internals.rowPinningStateInitializer, apiRef, props);
|
|
79
82
|
(0, _internals.useGridInitializeState)(_internals.rowsStateInitializer, apiRef, props);
|
|
@@ -95,6 +98,8 @@ const useDataGridPremiumComponent = (apiRef, inProps) => {
|
|
|
95
98
|
(0, _internals.useGridInitializeState)(_internals.rowsMetaStateInitializer, apiRef, props);
|
|
96
99
|
(0, _internals.useGridInitializeState)(_internals.listViewStateInitializer, apiRef, props);
|
|
97
100
|
(0, _internals.useGridInitializeState)(_useGridAiAssistant.aiAssistantStateInitializer, apiRef, props);
|
|
101
|
+
(0, _internals.useGridVirtualizer)(apiRef, props);
|
|
102
|
+
(0, _useGridSidebar.useGridSidebar)(apiRef, props);
|
|
98
103
|
(0, _useGridPivoting.useGridPivoting)(apiRef, props, inProps.columns, inProps.rows);
|
|
99
104
|
(0, _useGridRowGrouping.useGridRowGrouping)(apiRef, props);
|
|
100
105
|
(0, _internals.useGridHeaderFiltering)(apiRef, props);
|
|
@@ -7,9 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.GridColumnMenuPivotItem = GridColumnMenuPivotItem;
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
10
|
-
var
|
|
10
|
+
var _gridPivotingSelectors = require("../hooks/features/pivoting/gridPivotingSelectors");
|
|
11
11
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
12
12
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
13
|
+
var _sidebar = require("../hooks/features/sidebar");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
function GridColumnMenuPivotItem(props) {
|
|
15
16
|
const {
|
|
@@ -17,10 +18,10 @@ function GridColumnMenuPivotItem(props) {
|
|
|
17
18
|
} = props;
|
|
18
19
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
19
20
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
20
|
-
const isPivotPanelOpen = (0, _xDataGridPro.useGridSelector)(apiRef,
|
|
21
|
+
const isPivotPanelOpen = (0, _xDataGridPro.useGridSelector)(apiRef, _gridPivotingSelectors.gridPivotPanelOpenSelector);
|
|
21
22
|
const openPivotSettings = event => {
|
|
22
23
|
onClick(event);
|
|
23
|
-
apiRef.current.
|
|
24
|
+
apiRef.current.showSidebar(_sidebar.GridSidebarValue.Pivot);
|
|
24
25
|
};
|
|
25
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
26
27
|
onClick: openPivotSettings,
|
|
@@ -42,7 +42,9 @@ function GridGroupingCriteriaCellIcon(props) {
|
|
|
42
42
|
// always fetch/get from cache the children when the node is expanded
|
|
43
43
|
apiRef.current.dataSource.fetchRows(id);
|
|
44
44
|
} else {
|
|
45
|
-
|
|
45
|
+
// Collapse the node and remove child rows from the grid
|
|
46
|
+
apiRef.current.setRowChildrenExpansion(id, false);
|
|
47
|
+
apiRef.current.removeChildrenRows(id);
|
|
46
48
|
}
|
|
47
49
|
apiRef.current.setCellFocus(id, field);
|
|
48
50
|
event.stopPropagation();
|
|
@@ -81,7 +81,7 @@ function GridPivotPanelHeader(props) {
|
|
|
81
81
|
})
|
|
82
82
|
}, rootProps.slotProps?.baseSwitch)), /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseIconButton, (0, _extends2.default)({
|
|
83
83
|
onClick: () => {
|
|
84
|
-
apiRef.current.
|
|
84
|
+
apiRef.current.hideSidebar();
|
|
85
85
|
if (isEmptyPivot) {
|
|
86
86
|
apiRef.current.setPivotActive(false);
|
|
87
87
|
}
|
|
@@ -17,6 +17,7 @@ var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
|
17
17
|
var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
|
|
18
18
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
19
19
|
var _gridPivotingSelectors = require("../../hooks/features/pivoting/gridPivotingSelectors");
|
|
20
|
+
var _sidebar = require("../../hooks/features/sidebar");
|
|
20
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
22
|
const _excluded = ["render", "className", "onClick", "onPointerUp"];
|
|
22
23
|
/**
|
|
@@ -50,7 +51,11 @@ const PivotPanelTrigger = exports.PivotPanelTrigger = (0, _forwardRef.forwardRef
|
|
|
50
51
|
};
|
|
51
52
|
const resolvedClassName = typeof className === 'function' ? className(state) : className;
|
|
52
53
|
const handleClick = event => {
|
|
53
|
-
|
|
54
|
+
if (open) {
|
|
55
|
+
apiRef.current.hideSidebar();
|
|
56
|
+
} else {
|
|
57
|
+
apiRef.current.showSidebar(_sidebar.GridSidebarValue.Pivot, panelId, buttonId);
|
|
58
|
+
}
|
|
54
59
|
onClick?.(event);
|
|
55
60
|
};
|
|
56
61
|
const element = (0, _useComponentRenderer.useComponentRenderer)(rootProps.slots.baseButton, render, (0, _extends2.default)({}, rootProps.slotProps?.baseButton, {
|
|
@@ -13,8 +13,10 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
13
13
|
var _system = require("@mui/system");
|
|
14
14
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
15
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
|
+
var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
|
|
16
17
|
var _resizablePanel = require("../resizablePanel");
|
|
17
18
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
19
|
+
var _sidebar = require("../../hooks/features/sidebar");
|
|
18
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
21
|
const _excluded = ["className", "children"];
|
|
20
22
|
const useUtilityClasses = ownerState => {
|
|
@@ -39,16 +41,30 @@ const SidebarRoot = (0, _system.styled)(_resizablePanel.ResizablePanel, {
|
|
|
39
41
|
});
|
|
40
42
|
function Sidebar(props) {
|
|
41
43
|
const {
|
|
42
|
-
className
|
|
43
|
-
children
|
|
44
|
+
className
|
|
44
45
|
} = props,
|
|
45
46
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
47
|
+
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
46
48
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
47
49
|
const classes = useUtilityClasses(rootProps);
|
|
50
|
+
const {
|
|
51
|
+
value,
|
|
52
|
+
sidebarId,
|
|
53
|
+
labelId
|
|
54
|
+
} = (0, _xDataGridPro.useGridSelector)(apiRef, _sidebar.gridSidebarContentSelector);
|
|
55
|
+
if (!value) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
const sidebarContent = apiRef.current.unstable_applyPipeProcessors('sidebar', null, value);
|
|
59
|
+
if (!sidebarContent) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
48
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(SidebarRoot, (0, _extends2.default)({
|
|
63
|
+
id: sidebarId,
|
|
49
64
|
className: (0, _clsx.default)(className, classes.root),
|
|
50
|
-
ownerState: rootProps
|
|
65
|
+
ownerState: rootProps,
|
|
66
|
+
"aria-labelledby": labelId
|
|
51
67
|
}, other, {
|
|
52
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_resizablePanel.ResizablePanelHandle, {}),
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_resizablePanel.ResizablePanelHandle, {}), sidebarContent]
|
|
53
69
|
}));
|
|
54
70
|
}
|
|
@@ -11,19 +11,17 @@ import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
|
11
11
|
import { useDataGridPremiumComponent } from "./useDataGridPremiumComponent.js";
|
|
12
12
|
import { useDataGridPremiumProps } from "./useDataGridPremiumProps.js";
|
|
13
13
|
import { Sidebar } from "../components/sidebar/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
14
|
+
import { useGridAriaAttributesPremium } from "../hooks/utils/useGridAriaAttributes.js";
|
|
15
|
+
import { useGridRowAriaAttributesPremium } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
17
16
|
import { gridCellAggregationResultSelector } from "../hooks/features/aggregation/gridAggregationSelectors.js";
|
|
18
17
|
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
19
|
-
import {
|
|
20
|
-
import { isPivotingAvailable } from "../hooks/features/pivoting/utils.js";
|
|
18
|
+
import { gridSidebarOpenSelector } from "../hooks/features/sidebar/index.js";
|
|
21
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
20
|
const configuration = {
|
|
23
21
|
hooks: {
|
|
24
22
|
useCSSVariables: useMaterialCSSVariables,
|
|
25
|
-
useGridAriaAttributes,
|
|
26
|
-
useGridRowAriaAttributes,
|
|
23
|
+
useGridAriaAttributes: useGridAriaAttributesPremium,
|
|
24
|
+
useGridRowAriaAttributes: useGridRowAriaAttributesPremium,
|
|
27
25
|
useCellAggregationResult: (id, field) => {
|
|
28
26
|
const apiRef = useGridApiContext();
|
|
29
27
|
return useGridSelector(apiRef, gridCellAggregationResultSelector, {
|
|
@@ -33,7 +31,7 @@ const configuration = {
|
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
};
|
|
36
|
-
const releaseInfo = "
|
|
34
|
+
const releaseInfo = "MTc1NDYwNDAwMDAwMA==";
|
|
37
35
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
|
38
36
|
packageName: "x-data-grid-premium",
|
|
39
37
|
releaseInfo: releaseInfo
|
|
@@ -47,13 +45,11 @@ const DataGridPremiumRaw = forwardRef(function DataGridPremium(inProps, ref) {
|
|
|
47
45
|
const privateApiRef = useGridApiInitialization(initialProps.apiRef, initialProps);
|
|
48
46
|
const props = useDataGridPremiumComponent(privateApiRef, initialProps);
|
|
49
47
|
useLicenseVerifier('x-data-grid-premium', releaseInfo);
|
|
50
|
-
const pivotSettingsOpen = useGridSelector(privateApiRef, gridPivotPanelOpenSelector);
|
|
51
48
|
if (process.env.NODE_ENV !== 'production') {
|
|
52
49
|
validateProps(props, dataGridPremiumPropValidators);
|
|
53
50
|
}
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
}) : null;
|
|
51
|
+
const sidebarOpen = useGridSelector(privateApiRef, gridSidebarOpenSelector);
|
|
52
|
+
const sidePanel = sidebarOpen ? /*#__PURE__*/_jsx(Sidebar, {}) : null;
|
|
57
53
|
return /*#__PURE__*/_jsx(GridContextProvider, {
|
|
58
54
|
privateApiRef: privateApiRef,
|
|
59
55
|
configuration: configuration,
|
|
@@ -217,6 +213,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
217
213
|
* @default 150
|
|
218
214
|
*/
|
|
219
215
|
columnBufferPx: PropTypes.number,
|
|
216
|
+
/**
|
|
217
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering in the columns menu.
|
|
218
|
+
* @default 150
|
|
219
|
+
*/
|
|
220
|
+
columnFilterDebounceMs: PropTypes.number,
|
|
220
221
|
/**
|
|
221
222
|
* Sets the height in pixels of the column group headers in the Data Grid.
|
|
222
223
|
* Inherits the `columnHeaderHeight` value if not set.
|
|
@@ -888,6 +889,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
888
889
|
/**
|
|
889
890
|
* Callback fired when the pivot side panel open state changes.
|
|
890
891
|
* @param {boolean} pivotPanelOpen Whether the pivot side panel is visible.
|
|
892
|
+
* @deprecated Use the `sidebarOpen` and `sidebarClose` events or corresponding event handlers `onSidebarOpen()` and `onSidebarClose()` instead.
|
|
891
893
|
*/
|
|
892
894
|
onPivotPanelOpenChange: PropTypes.func,
|
|
893
895
|
/**
|
|
@@ -989,6 +991,20 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
989
991
|
* @deprecated Use the {@link https://mui.com/x/react-data-grid/server-side-data/lazy-loading/#infinite-loading Server-side data-Infinite loading} instead.
|
|
990
992
|
*/
|
|
991
993
|
onRowsScrollEnd: PropTypes.func,
|
|
994
|
+
/**
|
|
995
|
+
* Callback fired when the sidebar is closed.
|
|
996
|
+
* @param {GridSidebarParams} params With all properties from [[GridSidebarParams]].
|
|
997
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
998
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
999
|
+
*/
|
|
1000
|
+
onSidebarClose: PropTypes.func,
|
|
1001
|
+
/**
|
|
1002
|
+
* Callback fired when the sidebar is opened.
|
|
1003
|
+
* @param {GridSidebarParams} params With all properties from [[GridSidebarParams]].
|
|
1004
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
1005
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
1006
|
+
*/
|
|
1007
|
+
onSidebarOpen: PropTypes.func,
|
|
992
1008
|
/**
|
|
993
1009
|
* Callback fired when the sort model changes before a column is sorted.
|
|
994
1010
|
* @param {GridSortModel} model With all properties from [[GridSortModel]].
|
|
@@ -1095,6 +1111,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1095
1111
|
/**
|
|
1096
1112
|
* If `true`, the pivot side panel is visible.
|
|
1097
1113
|
* @default false
|
|
1114
|
+
* @deprecated Use `initialState.sidebar.open` instead.
|
|
1098
1115
|
*/
|
|
1099
1116
|
pivotPanelOpen: PropTypes.bool,
|
|
1100
1117
|
/**
|