@mui/x-data-grid-generator 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/columns/commodities.columns.js +1 -0
- package/esm/columns/commodities.columns.js +1 -0
- package/esm/hooks/serverUtils.js +1 -2
- package/esm/index.js +1 -1
- package/esm/renderer/renderCountry.js +2 -7
- package/hooks/serverUtils.js +1 -2
- package/index.js +1 -1
- package/package.json +7 -9
- package/renderer/renderCountry.js +2 -7
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
|
|
@@ -177,6 +177,7 @@ const getCommodityColumns = (editable = false) => [{
|
|
|
177
177
|
valueFormatter: value => value?.label,
|
|
178
178
|
groupingValueGetter: value => value?.label,
|
|
179
179
|
sortComparator: (v1, v2, param1, param2) => (0, _xDataGridPremium.gridStringOrNumberComparator)(v1.label, v2.label, param1, param2),
|
|
180
|
+
getOptionLabel: value => value?.label,
|
|
180
181
|
editable,
|
|
181
182
|
width: 120
|
|
182
183
|
}, {
|
|
@@ -171,6 +171,7 @@ export const getCommodityColumns = (editable = false) => [{
|
|
|
171
171
|
valueFormatter: value => value?.label,
|
|
172
172
|
groupingValueGetter: value => value?.label,
|
|
173
173
|
sortComparator: (v1, v2, param1, param2) => gridStringOrNumberComparator(v1.label, v2.label, param1, param2),
|
|
174
|
+
getOptionLabel: value => value?.label,
|
|
174
175
|
editable,
|
|
175
176
|
width: 120
|
|
176
177
|
}, {
|
package/esm/hooks/serverUtils.js
CHANGED
|
@@ -191,8 +191,7 @@ const applyAggregation = (aggregationModel, colDefs, rows, groupId = 'root') =>
|
|
|
191
191
|
values,
|
|
192
192
|
field,
|
|
193
193
|
groupId
|
|
194
|
-
}
|
|
195
|
-
);
|
|
194
|
+
});
|
|
196
195
|
});
|
|
197
196
|
return aggregateValues;
|
|
198
197
|
};
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import Box from '@mui/material/Box';
|
|
3
|
+
import { isAutogeneratedRow } from '@mui/x-data-grid-premium';
|
|
3
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
const useStaticFlag = typeof DISABLE_CHANCE_RANDOM !== 'undefined' && DISABLE_CHANCE_RANDOM;
|
|
5
6
|
const laosFlag = `
|
|
@@ -46,13 +47,7 @@ export function renderCountry(params) {
|
|
|
46
47
|
if (params.value == null) {
|
|
47
48
|
return '';
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
// If the aggregated value does not have the same unit as the other cell
|
|
51
|
-
// Then we fall back to the default rendering based on `valueGetter` instead of rendering the total price UI.
|
|
52
|
-
if (params.aggregation && !params.aggregation.hasCellUnit) {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
if (params.rowNode.type === 'group' && params.rowNode.isAutoGenerated) {
|
|
50
|
+
if (params.aggregation || isAutogeneratedRow(params.row)) {
|
|
56
51
|
return params.value;
|
|
57
52
|
}
|
|
58
53
|
return /*#__PURE__*/_jsx(Country, {
|
package/hooks/serverUtils.js
CHANGED
|
@@ -198,8 +198,7 @@ const applyAggregation = (aggregationModel, colDefs, rows, groupId = 'root') =>
|
|
|
198
198
|
values,
|
|
199
199
|
field,
|
|
200
200
|
groupId
|
|
201
|
-
}
|
|
202
|
-
);
|
|
201
|
+
});
|
|
203
202
|
});
|
|
204
203
|
return aggregateValues;
|
|
205
204
|
};
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-generator",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Generate fake data for demo purposes only.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
"homepage": "https://github.com/mui/mui-x/tree/master/packages/x-data-grid-generator",
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"publishConfig": {
|
|
14
|
-
"access": "public"
|
|
15
|
-
"directory": "build"
|
|
14
|
+
"access": "public"
|
|
16
15
|
},
|
|
17
16
|
"keywords": [
|
|
18
17
|
"mui-x"
|
|
@@ -23,14 +22,14 @@
|
|
|
23
22
|
"directory": "packages/x-data-grid-generator"
|
|
24
23
|
},
|
|
25
24
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "^7.
|
|
25
|
+
"@babel/runtime": "^7.28.2",
|
|
27
26
|
"chance": "^1.1.13",
|
|
28
27
|
"clsx": "^2.1.1",
|
|
29
28
|
"lru-cache": "^11.1.0",
|
|
30
|
-
"@mui/x-data-grid
|
|
31
|
-
"@mui/x-data-grid": "8.
|
|
32
|
-
"@mui/x-internals": "8.
|
|
33
|
-
"@mui/x-data-grid-pro": "8.
|
|
29
|
+
"@mui/x-data-grid": "8.10.0",
|
|
30
|
+
"@mui/x-data-grid-premium": "8.10.0",
|
|
31
|
+
"@mui/x-internals": "8.10.0",
|
|
32
|
+
"@mui/x-data-grid-pro": "8.10.0"
|
|
34
33
|
},
|
|
35
34
|
"peerDependencies": {
|
|
36
35
|
"@emotion/react": "^11.9.0",
|
|
@@ -86,6 +85,5 @@
|
|
|
86
85
|
"node": ">=14.0.0"
|
|
87
86
|
},
|
|
88
87
|
"private": false,
|
|
89
|
-
"module": "./esm/index.js",
|
|
90
88
|
"types": "./index.d.ts"
|
|
91
89
|
}
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.renderCountry = renderCountry;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
11
|
+
var _xDataGridPremium = require("@mui/x-data-grid-premium");
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
const useStaticFlag = typeof DISABLE_CHANCE_RANDOM !== 'undefined' && DISABLE_CHANCE_RANDOM;
|
|
13
14
|
const laosFlag = `
|
|
@@ -54,13 +55,7 @@ function renderCountry(params) {
|
|
|
54
55
|
if (params.value == null) {
|
|
55
56
|
return '';
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
// If the aggregated value does not have the same unit as the other cell
|
|
59
|
-
// Then we fall back to the default rendering based on `valueGetter` instead of rendering the total price UI.
|
|
60
|
-
if (params.aggregation && !params.aggregation.hasCellUnit) {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
if (params.rowNode.type === 'group' && params.rowNode.isAutoGenerated) {
|
|
58
|
+
if (params.aggregation || (0, _xDataGridPremium.isAutogeneratedRow)(params.row)) {
|
|
64
59
|
return params.value;
|
|
65
60
|
}
|
|
66
61
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Country, {
|