@mui/x-data-grid-pro 6.12.1 → 6.14.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 +212 -55
- package/README.md +3 -7
- package/components/DataGridProVirtualScroller.js +2 -2
- package/components/GridColumnHeaders.js +2 -4
- package/components/headerFiltering/GridHeaderFilterMenuContainer.js +2 -4
- package/hooks/features/columnResize/useGridColumnResize.js +4 -10
- package/index.js +1 -1
- package/legacy/components/DataGridProVirtualScroller.js +2 -2
- package/legacy/components/GridColumnHeaders.js +2 -4
- package/legacy/components/headerFiltering/GridHeaderFilterMenuContainer.js +2 -4
- package/legacy/hooks/features/columnResize/useGridColumnResize.js +4 -10
- package/legacy/index.js +1 -1
- package/legacy/utils/domUtils.js +3 -4
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/components/DataGridProVirtualScroller.js +2 -2
- package/modern/components/GridColumnHeaders.js +2 -4
- package/modern/components/headerFiltering/GridHeaderFilterMenuContainer.js +2 -4
- package/modern/hooks/features/columnResize/useGridColumnResize.js +4 -9
- package/modern/index.js +1 -1
- package/modern/utils/domUtils.js +2 -3
- package/modern/utils/releaseInfo.js +1 -1
- package/node/components/DataGridProVirtualScroller.js +2 -2
- package/node/components/GridColumnHeaders.js +1 -3
- package/node/components/headerFiltering/GridHeaderFilterMenuContainer.js +1 -3
- package/node/hooks/features/columnResize/useGridColumnResize.js +4 -9
- package/node/index.js +1 -1
- package/node/utils/domUtils.js +2 -3
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
- package/utils/domUtils.js +3 -4
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,163 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.14.0
|
|
7
|
+
|
|
8
|
+
_Sep 14, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Fix `YearCalendar` and `MonthCalendar` accessibility (#10312) @LukasTy
|
|
13
|
+
|
|
14
|
+
The `YearCalendar` and `MonthCalendar` items role has been changed from `button` to `radio` in order to improve the component's a11y support.
|
|
15
|
+
If you were relying on the mentioned components having a `button` role for items, you will need to update your usage to expect a `radio` role instead.
|
|
16
|
+
|
|
17
|
+
- 🌍 Improve Japanese (ja-JP), Persian (fa-IR), and Vietnamese (vi-VN) locales on the data grid
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
- 📚 Documentation improvements
|
|
20
|
+
|
|
21
|
+
### Data Grid
|
|
22
|
+
|
|
23
|
+
#### `@mui/x-data-grid@6.14.0`
|
|
24
|
+
|
|
25
|
+
- [l10n] Improve Japanese (ja-JP) locale (#10299) @makoto14
|
|
26
|
+
- [l10n] Improve Persian (fa-IR) locale (#10277) @aminsaedi
|
|
27
|
+
- [l10n] Improve Vietnamese (vi-VN) locale (#10280) @khangnguyen2100
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-pro@6.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid@6.14.0`.
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-premium@6.14.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid-pro@6.14.0`, plus:
|
|
36
|
+
|
|
37
|
+
- [DataGridPremium] Fix clipboard import cutting off at 100 rows (#9930) @gitstart
|
|
38
|
+
|
|
39
|
+
### Date Pickers
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers@6.14.0`
|
|
42
|
+
|
|
43
|
+
- [pickers] Fix `YearCalendar` and `MonthCalendar` a11y (#10312) @LukasTy
|
|
44
|
+
- [pickers] Localize `TimeClock` meridiem text (#10324) @LukasTy
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-date-pickers-pro@6.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
47
|
+
|
|
48
|
+
Same changes as in `@mui/x-date-pickers@6.14.0`.
|
|
49
|
+
|
|
50
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.11`
|
|
51
|
+
|
|
52
|
+
- [charts] Add default `barGapRatio` and increase `categoryGapRatio` (#10317) @LukasTy
|
|
53
|
+
- [charts] Enable `eslint` on the package (#10330) @LukasTy
|
|
54
|
+
|
|
55
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.3`
|
|
56
|
+
|
|
57
|
+
- [TreeView] Fix box-sizing dependency (#10255) @oliviertassinari
|
|
58
|
+
|
|
59
|
+
### Docs
|
|
60
|
+
|
|
61
|
+
- [docs] Add conditional range picker props example (#10227) @LukasTy
|
|
62
|
+
- [docs] Add toolbar to the multi-filters demo (#10223) @MBilalShafi
|
|
63
|
+
- [docs] Avoid the use of "We" @oliviertassinari
|
|
64
|
+
- [docs] Clarify MUI vs. MUI Core difference @oliviertassinari
|
|
65
|
+
- [docs] Enable `ariaV7` flag for demos using `useDemoData` hook (#10204) @cherniavskii
|
|
66
|
+
- [docs] Fix Tree View link to API references (#10282) @oliviertassinari
|
|
67
|
+
- [docs] Fix image layout shift (#10313) @oliviertassinari
|
|
68
|
+
- [docs] Fix link to MUI X from readme logo @oliviertassinari
|
|
69
|
+
- [docs] Fix redirection to Base UI URLs @oliviertassinari
|
|
70
|
+
- [docs] Improve Tree View demos (#10268) @oliviertassinari
|
|
71
|
+
- [docs] Improve docs for ref type props (#10273) @michelengelen
|
|
72
|
+
- [docs] Improve npm package README (#10269) @oliviertassinari
|
|
73
|
+
- [docs] Improve the clarity of the npm links @oliviertassinari
|
|
74
|
+
- [docs] Keep installation readme simple @oliviertassinari
|
|
75
|
+
- [docs] Make each component feel more standalone @oliviertassinari
|
|
76
|
+
|
|
77
|
+
### Core
|
|
78
|
+
|
|
79
|
+
- [core] Add types extension for clarity @oliviertassinari
|
|
80
|
+
- [core] Set logo height to fix layout shift in GitHub @oliviertassinari
|
|
81
|
+
- [core] TrapFocus was renamed to FocusTrap @oliviertassinari
|
|
82
|
+
|
|
83
|
+
## 6.13.0
|
|
84
|
+
|
|
85
|
+
_Sep 8, 2023_
|
|
86
|
+
|
|
87
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
88
|
+
|
|
89
|
+
- 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
|
|
90
|
+
|
|
91
|
+
The range picker popup will now be anchored to the first input element and left aligned like other pickers.
|
|
92
|
+
|
|
93
|
+
- 🌍 Improve Slovak (sk-SK) locale on the data grid
|
|
94
|
+
- 🐞 Bugfixes
|
|
95
|
+
- 📚 Documentation improvements
|
|
96
|
+
|
|
97
|
+
### Data Grid
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-data-grid@6.13.0`
|
|
100
|
+
|
|
101
|
+
- [DataGrid] Allow to override the default overlay height in `autoHeight` mode (#10203) @cherniavskii
|
|
102
|
+
- [DataGrid] Allow to override the default row count component in footer (#10063) @hungmanhle
|
|
103
|
+
- [DataGrid] Fix an error when hovering on a row, the background changed to white (#10214) @chucamphong
|
|
104
|
+
- [DataGrid] Fix custom column docs, remove legacy `extendType` (#10175) @oliviertassinari
|
|
105
|
+
- [DataGrid] Make the pinned rows be on top of the no rows overlay (#9986) @DanailH
|
|
106
|
+
- [l10n] Improve Slovak (sk-SK) locale (#10182) @msidlo
|
|
107
|
+
|
|
108
|
+
#### `@mui/x-data-grid-pro@6.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
109
|
+
|
|
110
|
+
Same changes as in `@mui/x-data-grid@6.13.0`, plus:
|
|
111
|
+
|
|
112
|
+
- [DataGridPro] Fix column resize with pinned rows (#10229) @cherniavskii
|
|
113
|
+
|
|
114
|
+
#### `@mui/x-data-grid-premium@6.13.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
115
|
+
|
|
116
|
+
Same changes as in `@mui/x-data-grid-pro@6.13.0`, plus:
|
|
117
|
+
|
|
118
|
+
- [DataGridPremium] Fix aggregated column resizing (#10079) @cherniavskii
|
|
119
|
+
|
|
120
|
+
### Date Pickers
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-date-pickers@6.13.0`
|
|
123
|
+
|
|
124
|
+
- [pickers] Respect the adapter locale in `AdapterMoment.getWeekdays` (#10221) @flaviendelangle
|
|
125
|
+
|
|
126
|
+
#### `@mui/x-date-pickers-pro@6.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
127
|
+
|
|
128
|
+
Same changes as in `@mui/x-date-pickers@6.13.0`, plus:
|
|
129
|
+
|
|
130
|
+
- [DateRangePicker] Fix `anchorRef` behavior (#10077) @LukasTy
|
|
131
|
+
|
|
132
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.10`
|
|
133
|
+
|
|
134
|
+
- [charts] Remove require condition from package.json exports (#10272) @Janpot
|
|
135
|
+
|
|
136
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.2`
|
|
137
|
+
|
|
138
|
+
- [TreeView] Add missing export (#10245) @flaviendelangle
|
|
139
|
+
|
|
140
|
+
### Docs
|
|
141
|
+
|
|
142
|
+
- [docs] Add a `Getting Started` page for the Tree View (#10218) @flaviendelangle
|
|
143
|
+
- [docs] Add pickers `Custom opening button` page (#10200) @flaviendelangle
|
|
144
|
+
- [docs] Add pie chart demo with a center label (#10220) @giladappsforce
|
|
145
|
+
- [docs] Do not document ignored components (#10258) @flaviendelangle
|
|
146
|
+
- [docs] Fix charts demo using too deep import (#10263) @LukasTy
|
|
147
|
+
- [docs] Fix `e.g.` typo @oliviertassinari
|
|
148
|
+
- [docs] Fix npm package indentation @oliviertassinari
|
|
149
|
+
- [docs] Fix typo in tree view docs @oliviertassinari
|
|
150
|
+
- [docs] Improve the week picker example (#8257) @flaviendelangle
|
|
151
|
+
- [docs] Include code links in the data grid demo (#10219) @cherniavskii
|
|
152
|
+
- [docs] Polish page for SEO (#10216) @oliviertassinari
|
|
153
|
+
- [docs] Use `Base UI` `Portal` for the quick filter recipe (#10188) @DanailH
|
|
154
|
+
|
|
155
|
+
### Core
|
|
156
|
+
|
|
157
|
+
- [core] Finish migration to GA4 @oliviertassinari
|
|
158
|
+
- [core] Fix yarn docs:create-playground script @oliviertassinari
|
|
159
|
+
- [core] Move @mui/base from peer dependency to dependency (#10215) @oliviertassinari
|
|
160
|
+
- [core] Prevent `e.g.` typo (#10193) @oliviertassinari
|
|
161
|
+
- [core] Remove unused `babel-plugin-tester` package (#10243) @LukasTy
|
|
162
|
+
|
|
6
163
|
## 6.12.1
|
|
7
164
|
|
|
8
165
|
_Aug 31, 2023_
|
|
@@ -17,30 +174,30 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
17
174
|
|
|
18
175
|
### Data Grid
|
|
19
176
|
|
|
20
|
-
#### `@mui/x-data-grid@
|
|
177
|
+
#### `@mui/x-data-grid@6.12.1`
|
|
21
178
|
|
|
22
179
|
- [DataGrid] Add a recipe showing how to render components outside of the grid (#10121) @DanailH
|
|
23
180
|
- [DataGrid] Fix `valueFormatter` being persisted on column type change (#10041) @cherniavskii
|
|
24
181
|
- [DataGrid] Fix error when keyboard navigating an empty grid (#10081) @romgrk
|
|
25
182
|
- [DataGrid] Replace timeout with `useTimeout` (#10179) @romgrk
|
|
26
183
|
|
|
27
|
-
#### `@mui/x-data-grid-pro@
|
|
184
|
+
#### `@mui/x-data-grid-pro@6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
28
185
|
|
|
29
|
-
Same changes as in `@mui/x-data-grid@
|
|
186
|
+
Same changes as in `@mui/x-data-grid@6.12.1`.
|
|
30
187
|
|
|
31
|
-
#### `@mui/x-data-grid-premium@
|
|
188
|
+
#### `@mui/x-data-grid-premium@6.12.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
32
189
|
|
|
33
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
190
|
+
Same changes as in `@mui/x-data-grid-pro@6.12.1`.
|
|
34
191
|
|
|
35
192
|
### Date Pickers
|
|
36
193
|
|
|
37
|
-
#### `@mui/x-date-pickers@
|
|
194
|
+
#### `@mui/x-date-pickers@6.12.1`
|
|
38
195
|
|
|
39
196
|
- [pickers] Add `referenceDate` on picker components (and `DateRangeCalendar`) (#9991) @flaviendelangle
|
|
40
197
|
|
|
41
|
-
#### `@mui/x-date-pickers-pro@
|
|
198
|
+
#### `@mui/x-date-pickers-pro@6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
199
|
|
|
43
|
-
Same changes as in `@mui/x-date-pickers@
|
|
200
|
+
Same changes as in `@mui/x-date-pickers@6.12.1`.
|
|
44
201
|
|
|
45
202
|
### Charts / `@mui/x-charts@6.0.0-alpha.9`
|
|
46
203
|
|
|
@@ -75,22 +232,22 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
75
232
|
|
|
76
233
|
### Data Grid
|
|
77
234
|
|
|
78
|
-
#### `@mui/x-data-grid@
|
|
235
|
+
#### `@mui/x-data-grid@6.12.0`
|
|
79
236
|
|
|
80
237
|
- [DataGrid] Allow print export for more than 100 rows (#10045) @MBilalShafi
|
|
81
238
|
- [l10n] Improve Ukrainian (uk-UA) locale (#10076) @mkundos
|
|
82
239
|
|
|
83
|
-
#### `@mui/x-data-grid-pro@
|
|
240
|
+
#### `@mui/x-data-grid-pro@6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
84
241
|
|
|
85
|
-
Same changes as in `@mui/x-data-grid@
|
|
242
|
+
Same changes as in `@mui/x-data-grid@6.12.0`.
|
|
86
243
|
|
|
87
|
-
#### `@mui/x-data-grid-premium@
|
|
244
|
+
#### `@mui/x-data-grid-premium@6.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
88
245
|
|
|
89
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
246
|
+
Same changes as in `@mui/x-data-grid-pro@6.12.0`.
|
|
90
247
|
|
|
91
248
|
### Date Pickers
|
|
92
249
|
|
|
93
|
-
#### `@mui/x-date-pickers@
|
|
250
|
+
#### `@mui/x-date-pickers@6.12.0`
|
|
94
251
|
|
|
95
252
|
- [fields] Do not clamp day of month (#9973) @flaviendelangle
|
|
96
253
|
- [pickers] Fix `ownerState` on `desktopPaper` slot props (#10103) @LukasTy
|
|
@@ -100,9 +257,9 @@ Same changes as in `@mui/x-data-grid-pro@v6.12.0`.
|
|
|
100
257
|
- [pickers] Make `openPickerButton` toggle picker (#10109) @noraleonte
|
|
101
258
|
- [pickers] Update `reduceAnimations` default rule (#9864) @LukasTy
|
|
102
259
|
|
|
103
|
-
#### `@mui/x-date-pickers-pro@
|
|
260
|
+
#### `@mui/x-date-pickers-pro@6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
104
261
|
|
|
105
|
-
Same changes as in `@mui/x-date-pickers@
|
|
262
|
+
Same changes as in `@mui/x-date-pickers@6.12.0`.
|
|
106
263
|
|
|
107
264
|
### Charts / `@mui/x-charts@6.0.0-alpha.8`
|
|
108
265
|
|
|
@@ -141,7 +298,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
141
298
|
|
|
142
299
|
### Data Grid
|
|
143
300
|
|
|
144
|
-
#### `@mui/x-data-grid@
|
|
301
|
+
#### `@mui/x-data-grid@6.11.2`
|
|
145
302
|
|
|
146
303
|
- [DataGrid] Fix `eval` blocked by CSP (#9863) @romgrk
|
|
147
304
|
- [DataGrid] Fix row id bug (#10051) @romgrk
|
|
@@ -151,26 +308,26 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
151
308
|
- [l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales (#9999) @MyNameIsTakenOMG
|
|
152
309
|
- [l10n] Improve Spanish (es-ES) locale (#10037) @Macampu420
|
|
153
310
|
|
|
154
|
-
#### `@mui/x-data-grid-pro@
|
|
311
|
+
#### `@mui/x-data-grid-pro@6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
155
312
|
|
|
156
|
-
Same changes as in `@mui/x-data-grid@
|
|
313
|
+
Same changes as in `@mui/x-data-grid@6.11.2`.
|
|
157
314
|
|
|
158
|
-
#### `@mui/x-data-grid-premium@
|
|
315
|
+
#### `@mui/x-data-grid-premium@6.11.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
159
316
|
|
|
160
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
317
|
+
Same changes as in `@mui/x-data-grid-pro@6.11.2`.
|
|
161
318
|
|
|
162
319
|
### Date Pickers
|
|
163
320
|
|
|
164
|
-
#### `@mui/x-date-pickers@
|
|
321
|
+
#### `@mui/x-date-pickers@6.11.2`
|
|
165
322
|
|
|
166
323
|
- [pickers] Fix month switcher RTL (#10003) @alexfauquette
|
|
167
324
|
- [pickers] Follow-up on using device motion reduction preference (#9858) @LukasTy
|
|
168
325
|
- [pickers] Pass the shortcut information in the `onChange` context (#9985) @flaviendelangle
|
|
169
326
|
- [pickers] Replace `Grid` toolbar component with a styled `div` (#10052) @LukasTy
|
|
170
327
|
|
|
171
|
-
#### `@mui/x-date-pickers-pro@
|
|
328
|
+
#### `@mui/x-date-pickers-pro@6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
172
329
|
|
|
173
|
-
Same changes as in `@mui/x-date-pickers@
|
|
330
|
+
Same changes as in `@mui/x-date-pickers@6.11.2`.
|
|
174
331
|
|
|
175
332
|
### Docs
|
|
176
333
|
|
|
@@ -225,7 +382,7 @@ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
|
|
|
225
382
|
|
|
226
383
|
Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
227
384
|
|
|
228
|
-
### Charts / `@mui/x-charts@
|
|
385
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.7`
|
|
229
386
|
|
|
230
387
|
- [charts] Fix label and tick alignment (#9952) @LukasTy
|
|
231
388
|
- [charts] Remove not functional component `styleOverrides` (#9996) @LukasTy
|
|
@@ -233,7 +390,7 @@ Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
|
233
390
|
- [charts] Use `slot`/`slotProps` for customization (#9744) @alexfauquette
|
|
234
391
|
- [charts] Extend cheerful fiesta palette (#9980) @noraleonte
|
|
235
392
|
|
|
236
|
-
### Tree View / `@mui/x-tree-view@
|
|
393
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.1`
|
|
237
394
|
|
|
238
395
|
- [TreeView] Add theme augmentation (#9967) @flaviendelangle
|
|
239
396
|
|
|
@@ -263,7 +420,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
263
420
|
|
|
264
421
|
### Data Grid
|
|
265
422
|
|
|
266
|
-
#### `@mui/x-data-grid@
|
|
423
|
+
#### `@mui/x-data-grid@6.11.0`
|
|
267
424
|
|
|
268
425
|
- [DataGrid] Add `ariaV7` experimental flag (#9496) @cherniavskii
|
|
269
426
|
- [DataGrid] Fix cell size when column width is set to `undefined` (#9871) @gitstart
|
|
@@ -271,17 +428,17 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
271
428
|
- [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
|
|
272
429
|
- [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
|
|
273
430
|
|
|
274
|
-
#### `@mui/x-data-grid-pro@
|
|
431
|
+
#### `@mui/x-data-grid-pro@6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
275
432
|
|
|
276
|
-
Same changes as in `@mui/x-data-grid@
|
|
433
|
+
Same changes as in `@mui/x-data-grid@6.11.0`.
|
|
277
434
|
|
|
278
|
-
#### `@mui/x-data-grid-premium@
|
|
435
|
+
#### `@mui/x-data-grid-premium@6.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
279
436
|
|
|
280
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
437
|
+
Same changes as in `@mui/x-data-grid-pro@6.11.0`.
|
|
281
438
|
|
|
282
439
|
### Date Pickers
|
|
283
440
|
|
|
284
|
-
#### `@mui/x-date-pickers@
|
|
441
|
+
#### `@mui/x-date-pickers@6.11.0`
|
|
285
442
|
|
|
286
443
|
- [fields] Correctly handle events with a complete value insertion (#9896) @LukasTy
|
|
287
444
|
- [fields] Fix hours editing on dayjs with timezone and DST (#9901) @flaviendelangle
|
|
@@ -294,18 +451,18 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
|
|
|
294
451
|
- [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
|
|
295
452
|
- [pickers] Use device motion reduction preference (#9823) @LukasTy
|
|
296
453
|
|
|
297
|
-
#### `@mui/x-date-pickers-pro@
|
|
454
|
+
#### `@mui/x-date-pickers-pro@6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
298
455
|
|
|
299
|
-
Same changes as in `@mui/x-date-pickers@
|
|
456
|
+
Same changes as in `@mui/x-date-pickers@6.11.0`.
|
|
300
457
|
|
|
301
|
-
### Charts / `@mui/x-charts@
|
|
458
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.6`
|
|
302
459
|
|
|
303
460
|
- [charts] Add TS definition to the exported elements (#9885) @alexfauquette
|
|
304
461
|
- [charts] Add sparkline (#9662) @alexfauquette
|
|
305
462
|
- [charts] Fix missing configuration types (#9886) @alexfauquette
|
|
306
463
|
- [charts] Introduce dataset to simplify plot of data from API (#9774) @alexfauquette
|
|
307
464
|
|
|
308
|
-
### Tree View / `@mui/x-tree-view@
|
|
465
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.0`
|
|
309
466
|
|
|
310
467
|
- [TreeView] Add missing exported types (#9862) @flaviendelangle
|
|
311
468
|
- [TreeView] Add tree view to changelog generator script (#9903) @MBilalShafi
|
|
@@ -350,34 +507,34 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
350
507
|
|
|
351
508
|
### Data Grid
|
|
352
509
|
|
|
353
|
-
#### `@mui/x-data-grid@
|
|
510
|
+
#### `@mui/x-data-grid@6.10.2`
|
|
354
511
|
|
|
355
512
|
- [DataGrid] Fix quick filter & aggregation error (#9729) @romgrk
|
|
356
513
|
- [DataGrid] Fix row click propagation causing error in nested grid (#9741) @cherniavskii
|
|
357
514
|
- [DataGrid] Keep focused cell in the DOM (#7357) @yaredtsy
|
|
358
515
|
- [l10n] Improve Finnish (fi-FI) locale (#9746) @sambbaahh
|
|
359
516
|
|
|
360
|
-
#### `@mui/x-data-grid-pro@
|
|
517
|
+
#### `@mui/x-data-grid-pro@6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
361
518
|
|
|
362
|
-
Same changes as in `@mui/x-data-grid@
|
|
519
|
+
Same changes as in `@mui/x-data-grid@6.10.2`.
|
|
363
520
|
|
|
364
|
-
#### `@mui/x-data-grid-premium@
|
|
521
|
+
#### `@mui/x-data-grid-premium@6.10.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
365
522
|
|
|
366
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
523
|
+
Same changes as in `@mui/x-data-grid-pro@6.10.2`, plus:
|
|
367
524
|
|
|
368
525
|
- [DataGridPremium] Allow to customize grouping cell offset (#9417) @cherniavskii
|
|
369
526
|
|
|
370
527
|
### Date Pickers
|
|
371
528
|
|
|
372
|
-
#### `@mui/x-date-pickers@
|
|
529
|
+
#### `@mui/x-date-pickers@6.10.2`
|
|
373
530
|
|
|
374
531
|
- [pickers] Remove the `endOfDate` from `DigitalClock` timeOptions (#9800) @noraleonte
|
|
375
532
|
|
|
376
|
-
#### `@mui/x-date-pickers-pro@
|
|
533
|
+
#### `@mui/x-date-pickers-pro@6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
377
534
|
|
|
378
|
-
Same changes as in `@mui/x-date-pickers@
|
|
535
|
+
Same changes as in `@mui/x-date-pickers@6.10.2`.
|
|
379
536
|
|
|
380
|
-
### Charts / `@mui/x-charts@
|
|
537
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.5`
|
|
381
538
|
|
|
382
539
|
- [charts] Improve JSDoc for axis-related props (#9779) @flaviendelangle
|
|
383
540
|
- [charts] Improve performances of Scatter component (#9527) @flaviendelangle
|
|
@@ -415,7 +572,7 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
415
572
|
|
|
416
573
|
### Data Grid
|
|
417
574
|
|
|
418
|
-
#### `@mui/x-data-grid@
|
|
575
|
+
#### `@mui/x-data-grid@6.10.1`
|
|
419
576
|
|
|
420
577
|
- [DataGrid] Filtering performance: compile filter applier with `eval` (#9635) @romgrk
|
|
421
578
|
- [DataGrid] Fix CSV export for values containing double quotes (#9667) @cherniavskii
|
|
@@ -425,29 +582,29 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
425
582
|
- [DataGrid] Update focused cell on page change via keyboard (#9203) @m4theushw
|
|
426
583
|
- [DataGrid] Wait for remote stylesheets to load before print (#9665) @cherniavskii
|
|
427
584
|
|
|
428
|
-
#### `@mui/x-data-grid-pro@
|
|
585
|
+
#### `@mui/x-data-grid-pro@6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
429
586
|
|
|
430
|
-
Same changes as in `@mui/x-data-grid@
|
|
587
|
+
Same changes as in `@mui/x-data-grid@6.10.1`, plus:
|
|
431
588
|
|
|
432
589
|
- [DataGridPro] Improve tree data performance (#9682) @cherniavskii
|
|
433
590
|
- [DataGridPro] Prevent affecting cells from child DataGrid when resizing a column (#9670) @m4theushw
|
|
434
591
|
|
|
435
|
-
#### `@mui/x-data-grid-premium@
|
|
592
|
+
#### `@mui/x-data-grid-premium@6.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
436
593
|
|
|
437
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
594
|
+
Same changes as in `@mui/x-data-grid-pro@6.10.1`.
|
|
438
595
|
|
|
439
596
|
### Date Pickers
|
|
440
597
|
|
|
441
|
-
#### `@mui/x-date-pickers@
|
|
598
|
+
#### `@mui/x-date-pickers@6.10.1`
|
|
442
599
|
|
|
443
600
|
- [fields] Fix `format` and `value` update order (#9715) @LukasTy
|
|
444
601
|
- [pickers] Remove `require` usage in comment (#9675) @LukasTy
|
|
445
602
|
|
|
446
|
-
#### `@mui/x-date-pickers-pro@
|
|
603
|
+
#### `@mui/x-date-pickers-pro@6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
447
604
|
|
|
448
|
-
Same changes as in `@mui/x-date-pickers@
|
|
605
|
+
Same changes as in `@mui/x-date-pickers@6.10.1`.
|
|
449
606
|
|
|
450
|
-
### Charts / `@mui/x-charts@
|
|
607
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.4`
|
|
451
608
|
|
|
452
609
|
- [charts] Fix blinking in responsive charts and extremums computation for line charts (#9734) @alexfauquette
|
|
453
610
|
- [charts] Use ESM with imports (#9645) @alexfauquette
|
|
@@ -1759,7 +1916,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
1759
1916
|
#### Changes
|
|
1760
1917
|
|
|
1761
1918
|
- [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
|
|
1762
|
-
- [DataGrid] Allow to pass props to the `
|
|
1919
|
+
- [DataGrid] Allow to pass props to the `FocusTrap` inside the panel wrapper (#7733) @ivek-Prajapatii
|
|
1763
1920
|
- [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
|
|
1764
1921
|
- [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
|
|
1765
1922
|
- [DataGridPremium] Fix `leafField` to have correct focus value (#7950) @MBilalShafi
|
package/README.md
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# MUI X Data Grid Pro
|
|
2
2
|
|
|
3
3
|
This package is the Pro plan edition of the data grid component.
|
|
4
|
-
It's part of MUI X, an open
|
|
4
|
+
It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
8
8
|
Install the package in your project directory with:
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
// with npm
|
|
12
11
|
npm install @mui/x-data-grid-pro
|
|
13
|
-
|
|
14
|
-
// with yarn
|
|
15
|
-
yarn add @mui/x-data-grid-pro
|
|
16
12
|
```
|
|
17
13
|
|
|
18
14
|
This component has the following peer dependencies that you will need to install as well.
|
|
@@ -28,4 +24,4 @@ This component has the following peer dependencies that you will need to install
|
|
|
28
24
|
|
|
29
25
|
## Documentation
|
|
30
26
|
|
|
31
|
-
[
|
|
27
|
+
Visit [https://mui.com/x/react-data-grid/](https://mui.com/x/react-data-grid/) to view the full documentation.
|
|
@@ -131,8 +131,8 @@ const VirtualScrollerPinnedRows = styled('div', {
|
|
|
131
131
|
const boxShadowColor = getBoxShadowColor(theme);
|
|
132
132
|
return _extends({
|
|
133
133
|
position: 'sticky',
|
|
134
|
-
// should be above the
|
|
135
|
-
zIndex:
|
|
134
|
+
// should be above the no rows overlay
|
|
135
|
+
zIndex: 4,
|
|
136
136
|
backgroundColor: (theme.vars || theme).palette.background.default
|
|
137
137
|
}, theme.vars ? {
|
|
138
138
|
backgroundImage: (_theme$vars$overlays2 = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays2[2]
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
const _excluded = ["style", "className", "innerRef", "visibleColumns", "sortColumnLookup", "filterColumnLookup", "columnPositions", "columnHeaderTabIndexState", "columnGroupHeaderTabIndexState", "columnHeaderFocus", "columnGroupHeaderFocus", "densityFactor", "headerGroupingMaxDepth", "columnMenuState", "columnVisibility", "columnGroupsHeaderStructure", "hasOtherElementInTabSequence", "pinnedColumns"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
6
|
+
import { refType, unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
7
7
|
import { styled, alpha, useTheme } from '@mui/material/styles';
|
|
8
8
|
import { getDataGridUtilityClass, gridClasses, useGridApiEventHandler, GridColumnHeaderSeparatorSides } from '@mui/x-data-grid';
|
|
9
9
|
import { GridBaseColumnHeaders, GridColumnHeadersInner } from '@mui/x-data-grid/internals';
|
|
@@ -271,9 +271,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
|
|
|
271
271
|
filterColumnLookup: PropTypes.object.isRequired,
|
|
272
272
|
hasOtherElementInTabSequence: PropTypes.bool.isRequired,
|
|
273
273
|
headerGroupingMaxDepth: PropTypes.number.isRequired,
|
|
274
|
-
innerRef:
|
|
275
|
-
current: PropTypes.object
|
|
276
|
-
})]),
|
|
274
|
+
innerRef: refType,
|
|
277
275
|
minColumnIndex: PropTypes.number,
|
|
278
276
|
pinnedColumns: PropTypes.shape({
|
|
279
277
|
left: PropTypes.arrayOf(PropTypes.string),
|
|
@@ -4,7 +4,7 @@ const _excluded = ["operators", "item", "field", "buttonRef", "headerFilterMenuR
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useGridApiContext } from '@mui/x-data-grid';
|
|
7
|
-
import { unstable_useId as useId } from '@mui/utils';
|
|
7
|
+
import { refType, unstable_useId as useId } from '@mui/utils';
|
|
8
8
|
import { unstable_gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
|
|
9
9
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -70,9 +70,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
|
|
|
70
70
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
71
71
|
// ----------------------------------------------------------------------
|
|
72
72
|
applyFilterChanges: PropTypes.func.isRequired,
|
|
73
|
-
buttonRef:
|
|
74
|
-
current: PropTypes.object
|
|
75
|
-
})]),
|
|
73
|
+
buttonRef: refType,
|
|
76
74
|
field: PropTypes.string.isRequired,
|
|
77
75
|
headerFilterMenuRef: PropTypes.shape({
|
|
78
76
|
current: PropTypes.object
|
|
@@ -133,20 +133,14 @@ export const useGridColumnResize = (apiRef, props) => {
|
|
|
133
133
|
const finishResize = nativeEvent => {
|
|
134
134
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
135
135
|
stopListening();
|
|
136
|
-
|
|
136
|
+
if (colDefRef.current) {
|
|
137
|
+
apiRef.current.setColumnWidth(colDefRef.current.field, colDefRef.current.width);
|
|
138
|
+
logger.debug(`Updating col ${colDefRef.current.field} with new width: ${colDefRef.current.width}`);
|
|
139
|
+
}
|
|
137
140
|
clearTimeout(stopResizeEventTimeout.current);
|
|
138
141
|
stopResizeEventTimeout.current = setTimeout(() => {
|
|
139
142
|
apiRef.current.publishEvent('columnResizeStop', null, nativeEvent);
|
|
140
|
-
if (colDefRef.current) {
|
|
141
|
-
var _colDefRef$current;
|
|
142
|
-
apiRef.current.publishEvent('columnWidthChange', {
|
|
143
|
-
element: colElementRef.current,
|
|
144
|
-
colDef: colDefRef.current,
|
|
145
|
-
width: (_colDefRef$current = colDefRef.current) == null ? void 0 : _colDefRef$current.computedWidth
|
|
146
|
-
}, nativeEvent);
|
|
147
|
-
}
|
|
148
143
|
});
|
|
149
|
-
logger.debug(`Updating col ${colDefRef.current.field} with new width: ${colDefRef.current.width}`);
|
|
150
144
|
};
|
|
151
145
|
const handleResizeMouseUp = useEventCallback(finishResize);
|
|
152
146
|
const handleResizeMouseMove = useEventCallback(nativeEvent => {
|
package/index.js
CHANGED
|
@@ -131,8 +131,8 @@ var VirtualScrollerPinnedRows = styled('div', {
|
|
|
131
131
|
var boxShadowColor = getBoxShadowColor(theme);
|
|
132
132
|
return _extends({
|
|
133
133
|
position: 'sticky',
|
|
134
|
-
// should be above the
|
|
135
|
-
zIndex:
|
|
134
|
+
// should be above the no rows overlay
|
|
135
|
+
zIndex: 4,
|
|
136
136
|
backgroundColor: (theme.vars || theme).palette.background.default
|
|
137
137
|
}, theme.vars ? {
|
|
138
138
|
backgroundImage: (_theme$vars$overlays2 = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays2[2]
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
5
5
|
var _excluded = ["style", "className", "innerRef", "visibleColumns", "sortColumnLookup", "filterColumnLookup", "columnPositions", "columnHeaderTabIndexState", "columnGroupHeaderTabIndexState", "columnHeaderFocus", "columnGroupHeaderFocus", "densityFactor", "headerGroupingMaxDepth", "columnMenuState", "columnVisibility", "columnGroupsHeaderStructure", "hasOtherElementInTabSequence", "pinnedColumns"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
8
|
+
import { refType, unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
9
9
|
import { styled, alpha, useTheme } from '@mui/material/styles';
|
|
10
10
|
import { getDataGridUtilityClass, gridClasses, useGridApiEventHandler, GridColumnHeaderSeparatorSides } from '@mui/x-data-grid';
|
|
11
11
|
import { GridBaseColumnHeaders, GridColumnHeadersInner } from '@mui/x-data-grid/internals';
|
|
@@ -275,9 +275,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
|
|
|
275
275
|
filterColumnLookup: PropTypes.object.isRequired,
|
|
276
276
|
hasOtherElementInTabSequence: PropTypes.bool.isRequired,
|
|
277
277
|
headerGroupingMaxDepth: PropTypes.number.isRequired,
|
|
278
|
-
innerRef:
|
|
279
|
-
current: PropTypes.object
|
|
280
|
-
})]),
|
|
278
|
+
innerRef: refType,
|
|
281
279
|
minColumnIndex: PropTypes.number,
|
|
282
280
|
pinnedColumns: PropTypes.shape({
|
|
283
281
|
left: PropTypes.arrayOf(PropTypes.string),
|
|
@@ -4,7 +4,7 @@ var _excluded = ["operators", "item", "field", "buttonRef", "headerFilterMenuRef
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useGridApiContext } from '@mui/x-data-grid';
|
|
7
|
-
import { unstable_useId as useId } from '@mui/utils';
|
|
7
|
+
import { refType, unstable_useId as useId } from '@mui/utils';
|
|
8
8
|
import { unstable_gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
|
|
9
9
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -68,9 +68,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
|
|
|
68
68
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
69
69
|
// ----------------------------------------------------------------------
|
|
70
70
|
applyFilterChanges: PropTypes.func.isRequired,
|
|
71
|
-
buttonRef:
|
|
72
|
-
current: PropTypes.object
|
|
73
|
-
})]),
|
|
71
|
+
buttonRef: refType,
|
|
74
72
|
field: PropTypes.string.isRequired,
|
|
75
73
|
headerFilterMenuRef: PropTypes.shape({
|
|
76
74
|
current: PropTypes.object
|
|
@@ -136,20 +136,14 @@ export var useGridColumnResize = function useGridColumnResize(apiRef, props) {
|
|
|
136
136
|
var finishResize = function finishResize(nativeEvent) {
|
|
137
137
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
138
138
|
stopListening();
|
|
139
|
-
|
|
139
|
+
if (colDefRef.current) {
|
|
140
|
+
apiRef.current.setColumnWidth(colDefRef.current.field, colDefRef.current.width);
|
|
141
|
+
logger.debug("Updating col ".concat(colDefRef.current.field, " with new width: ").concat(colDefRef.current.width));
|
|
142
|
+
}
|
|
140
143
|
clearTimeout(stopResizeEventTimeout.current);
|
|
141
144
|
stopResizeEventTimeout.current = setTimeout(function () {
|
|
142
145
|
apiRef.current.publishEvent('columnResizeStop', null, nativeEvent);
|
|
143
|
-
if (colDefRef.current) {
|
|
144
|
-
var _colDefRef$current;
|
|
145
|
-
apiRef.current.publishEvent('columnWidthChange', {
|
|
146
|
-
element: colElementRef.current,
|
|
147
|
-
colDef: colDefRef.current,
|
|
148
|
-
width: (_colDefRef$current = colDefRef.current) == null ? void 0 : _colDefRef$current.computedWidth
|
|
149
|
-
}, nativeEvent);
|
|
150
|
-
}
|
|
151
146
|
});
|
|
152
|
-
logger.debug("Updating col ".concat(colDefRef.current.field, " with new width: ").concat(colDefRef.current.width));
|
|
153
147
|
};
|
|
154
148
|
var handleResizeMouseUp = useEventCallback(finishResize);
|
|
155
149
|
var handleResizeMouseMove = useEventCallback(function (nativeEvent) {
|
package/legacy/index.js
CHANGED
package/legacy/utils/domUtils.js
CHANGED
|
@@ -11,7 +11,7 @@ export function findGroupHeaderElementsFromField(elem, field) {
|
|
|
11
11
|
return Array.from((_elem$querySelectorAl = elem.querySelectorAll("[data-fields*=\"|-".concat(field, "-|\"]"))) != null ? _elem$querySelectorAl : []);
|
|
12
12
|
}
|
|
13
13
|
export function findGridCellElementsFromCol(col, api) {
|
|
14
|
-
var _api$virtualScrollerR;
|
|
14
|
+
var _api$virtualScrollerR, _api$virtualScrollerR2;
|
|
15
15
|
var root = findParentElementFromClassName(col, gridClasses.root);
|
|
16
16
|
if (!root) {
|
|
17
17
|
throw new Error('MUI: The root element is not found.');
|
|
@@ -22,11 +22,10 @@ export function findGridCellElementsFromCol(col, api) {
|
|
|
22
22
|
}
|
|
23
23
|
var colIndex = Number(ariaColIndex) - 1;
|
|
24
24
|
var cells = [];
|
|
25
|
-
|
|
26
|
-
if (!virtualScrollerContent) {
|
|
25
|
+
if (!((_api$virtualScrollerR = api.virtualScrollerRef) != null && _api$virtualScrollerR.current)) {
|
|
27
26
|
return [];
|
|
28
27
|
}
|
|
29
|
-
var renderedRowElements =
|
|
28
|
+
var renderedRowElements = (_api$virtualScrollerR2 = api.virtualScrollerRef) == null ? void 0 : _api$virtualScrollerR2.current.querySelectorAll(":scope > div > div > .".concat(gridClasses.row) // Use > to ignore rows from nested data grids (e.g. in detail panel)
|
|
30
29
|
);
|
|
31
30
|
renderedRowElements.forEach(function (rowElement) {
|
|
32
31
|
var rowId = rowElement.getAttribute('data-id');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY5NDY0MjQwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -128,8 +128,8 @@ const VirtualScrollerPinnedRows = styled('div', {
|
|
|
128
128
|
const boxShadowColor = getBoxShadowColor(theme);
|
|
129
129
|
return _extends({
|
|
130
130
|
position: 'sticky',
|
|
131
|
-
// should be above the
|
|
132
|
-
zIndex:
|
|
131
|
+
// should be above the no rows overlay
|
|
132
|
+
zIndex: 4,
|
|
133
133
|
backgroundColor: (theme.vars || theme).palette.background.default
|
|
134
134
|
}, theme.vars ? {
|
|
135
135
|
backgroundImage: theme.vars.overlays?.[2]
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
const _excluded = ["style", "className", "innerRef", "visibleColumns", "sortColumnLookup", "filterColumnLookup", "columnPositions", "columnHeaderTabIndexState", "columnGroupHeaderTabIndexState", "columnHeaderFocus", "columnGroupHeaderFocus", "densityFactor", "headerGroupingMaxDepth", "columnMenuState", "columnVisibility", "columnGroupsHeaderStructure", "hasOtherElementInTabSequence", "pinnedColumns"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
6
|
+
import { refType, unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
7
7
|
import { styled, alpha, useTheme } from '@mui/material/styles';
|
|
8
8
|
import { getDataGridUtilityClass, gridClasses, useGridApiEventHandler, GridColumnHeaderSeparatorSides } from '@mui/x-data-grid';
|
|
9
9
|
import { GridBaseColumnHeaders, GridColumnHeadersInner } from '@mui/x-data-grid/internals';
|
|
@@ -268,9 +268,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
|
|
|
268
268
|
filterColumnLookup: PropTypes.object.isRequired,
|
|
269
269
|
hasOtherElementInTabSequence: PropTypes.bool.isRequired,
|
|
270
270
|
headerGroupingMaxDepth: PropTypes.number.isRequired,
|
|
271
|
-
innerRef:
|
|
272
|
-
current: PropTypes.object
|
|
273
|
-
})]),
|
|
271
|
+
innerRef: refType,
|
|
274
272
|
minColumnIndex: PropTypes.number,
|
|
275
273
|
pinnedColumns: PropTypes.shape({
|
|
276
274
|
left: PropTypes.arrayOf(PropTypes.string),
|
|
@@ -4,7 +4,7 @@ const _excluded = ["operators", "item", "field", "buttonRef", "headerFilterMenuR
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useGridApiContext } from '@mui/x-data-grid';
|
|
7
|
-
import { unstable_useId as useId } from '@mui/utils';
|
|
7
|
+
import { refType, unstable_useId as useId } from '@mui/utils';
|
|
8
8
|
import { unstable_gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
|
|
9
9
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -69,9 +69,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
|
|
|
69
69
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
70
70
|
// ----------------------------------------------------------------------
|
|
71
71
|
applyFilterChanges: PropTypes.func.isRequired,
|
|
72
|
-
buttonRef:
|
|
73
|
-
current: PropTypes.object
|
|
74
|
-
})]),
|
|
72
|
+
buttonRef: refType,
|
|
75
73
|
field: PropTypes.string.isRequired,
|
|
76
74
|
headerFilterMenuRef: PropTypes.shape({
|
|
77
75
|
current: PropTypes.object
|
|
@@ -133,19 +133,14 @@ export const useGridColumnResize = (apiRef, props) => {
|
|
|
133
133
|
const finishResize = nativeEvent => {
|
|
134
134
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
135
135
|
stopListening();
|
|
136
|
-
|
|
136
|
+
if (colDefRef.current) {
|
|
137
|
+
apiRef.current.setColumnWidth(colDefRef.current.field, colDefRef.current.width);
|
|
138
|
+
logger.debug(`Updating col ${colDefRef.current.field} with new width: ${colDefRef.current.width}`);
|
|
139
|
+
}
|
|
137
140
|
clearTimeout(stopResizeEventTimeout.current);
|
|
138
141
|
stopResizeEventTimeout.current = setTimeout(() => {
|
|
139
142
|
apiRef.current.publishEvent('columnResizeStop', null, nativeEvent);
|
|
140
|
-
if (colDefRef.current) {
|
|
141
|
-
apiRef.current.publishEvent('columnWidthChange', {
|
|
142
|
-
element: colElementRef.current,
|
|
143
|
-
colDef: colDefRef.current,
|
|
144
|
-
width: colDefRef.current?.computedWidth
|
|
145
|
-
}, nativeEvent);
|
|
146
|
-
}
|
|
147
143
|
});
|
|
148
|
-
logger.debug(`Updating col ${colDefRef.current.field} with new width: ${colDefRef.current.width}`);
|
|
149
144
|
};
|
|
150
145
|
const handleResizeMouseUp = useEventCallback(finishResize);
|
|
151
146
|
const handleResizeMouseMove = useEventCallback(nativeEvent => {
|
package/modern/index.js
CHANGED
package/modern/utils/domUtils.js
CHANGED
|
@@ -20,11 +20,10 @@ export function findGridCellElementsFromCol(col, api) {
|
|
|
20
20
|
}
|
|
21
21
|
const colIndex = Number(ariaColIndex) - 1;
|
|
22
22
|
const cells = [];
|
|
23
|
-
|
|
24
|
-
if (!virtualScrollerContent) {
|
|
23
|
+
if (!api.virtualScrollerRef?.current) {
|
|
25
24
|
return [];
|
|
26
25
|
}
|
|
27
|
-
const renderedRowElements =
|
|
26
|
+
const renderedRowElements = api.virtualScrollerRef?.current.querySelectorAll(`:scope > div > div > .${gridClasses.row}` // Use > to ignore rows from nested data grids (e.g. in detail panel)
|
|
28
27
|
);
|
|
29
28
|
|
|
30
29
|
renderedRowElements.forEach(rowElement => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -137,8 +137,8 @@ const VirtualScrollerPinnedRows = (0, _styles.styled)('div', {
|
|
|
137
137
|
const boxShadowColor = getBoxShadowColor(theme);
|
|
138
138
|
return (0, _extends2.default)({
|
|
139
139
|
position: 'sticky',
|
|
140
|
-
// should be above the
|
|
141
|
-
zIndex:
|
|
140
|
+
// should be above the no rows overlay
|
|
141
|
+
zIndex: 4,
|
|
142
142
|
backgroundColor: (theme.vars || theme).palette.background.default
|
|
143
143
|
}, theme.vars ? {
|
|
144
144
|
backgroundImage: theme.vars.overlays?.[2]
|
|
@@ -277,9 +277,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
|
|
|
277
277
|
filterColumnLookup: _propTypes.default.object.isRequired,
|
|
278
278
|
hasOtherElementInTabSequence: _propTypes.default.bool.isRequired,
|
|
279
279
|
headerGroupingMaxDepth: _propTypes.default.number.isRequired,
|
|
280
|
-
innerRef:
|
|
281
|
-
current: _propTypes.default.object
|
|
282
|
-
})]),
|
|
280
|
+
innerRef: _utils.refType,
|
|
283
281
|
minColumnIndex: _propTypes.default.number,
|
|
284
282
|
pinnedColumns: _propTypes.default.shape({
|
|
285
283
|
left: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
@@ -77,9 +77,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
|
|
|
77
77
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
78
78
|
// ----------------------------------------------------------------------
|
|
79
79
|
applyFilterChanges: _propTypes.default.func.isRequired,
|
|
80
|
-
buttonRef:
|
|
81
|
-
current: _propTypes.default.object
|
|
82
|
-
})]),
|
|
80
|
+
buttonRef: _utils.refType,
|
|
83
81
|
field: _propTypes.default.string.isRequired,
|
|
84
82
|
headerFilterMenuRef: _propTypes.default.shape({
|
|
85
83
|
current: _propTypes.default.object
|
|
@@ -143,19 +143,14 @@ const useGridColumnResize = (apiRef, props) => {
|
|
|
143
143
|
const finishResize = nativeEvent => {
|
|
144
144
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
145
145
|
stopListening();
|
|
146
|
-
|
|
146
|
+
if (colDefRef.current) {
|
|
147
|
+
apiRef.current.setColumnWidth(colDefRef.current.field, colDefRef.current.width);
|
|
148
|
+
logger.debug(`Updating col ${colDefRef.current.field} with new width: ${colDefRef.current.width}`);
|
|
149
|
+
}
|
|
147
150
|
clearTimeout(stopResizeEventTimeout.current);
|
|
148
151
|
stopResizeEventTimeout.current = setTimeout(() => {
|
|
149
152
|
apiRef.current.publishEvent('columnResizeStop', null, nativeEvent);
|
|
150
|
-
if (colDefRef.current) {
|
|
151
|
-
apiRef.current.publishEvent('columnWidthChange', {
|
|
152
|
-
element: colElementRef.current,
|
|
153
|
-
colDef: colDefRef.current,
|
|
154
|
-
width: colDefRef.current?.computedWidth
|
|
155
|
-
}, nativeEvent);
|
|
156
|
-
}
|
|
157
153
|
});
|
|
158
|
-
logger.debug(`Updating col ${colDefRef.current.field} with new width: ${colDefRef.current.width}`);
|
|
159
154
|
};
|
|
160
155
|
const handleResizeMouseUp = (0, _utils.unstable_useEventCallback)(finishResize);
|
|
161
156
|
const handleResizeMouseMove = (0, _utils.unstable_useEventCallback)(nativeEvent => {
|
package/node/index.js
CHANGED
package/node/utils/domUtils.js
CHANGED
|
@@ -29,11 +29,10 @@ function findGridCellElementsFromCol(col, api) {
|
|
|
29
29
|
}
|
|
30
30
|
const colIndex = Number(ariaColIndex) - 1;
|
|
31
31
|
const cells = [];
|
|
32
|
-
|
|
33
|
-
if (!virtualScrollerContent) {
|
|
32
|
+
if (!api.virtualScrollerRef?.current) {
|
|
34
33
|
return [];
|
|
35
34
|
}
|
|
36
|
-
const renderedRowElements =
|
|
35
|
+
const renderedRowElements = api.virtualScrollerRef?.current.querySelectorAll(`:scope > div > div > .${_xDataGrid.gridClasses.row}` // Use > to ignore rows from nested data grids (e.g. in detail panel)
|
|
37
36
|
);
|
|
38
37
|
|
|
39
38
|
renderedRowElements.forEach(rowElement => {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.14.0",
|
|
4
4
|
"description": "The Pro plan edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"directory": "packages/grid/x-data-grid-pro"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/runtime": "^7.22.
|
|
35
|
-
"@mui/utils": "^5.14.
|
|
36
|
-
"@mui/x-data-grid": "6.
|
|
34
|
+
"@babel/runtime": "^7.22.15",
|
|
35
|
+
"@mui/utils": "^5.14.8",
|
|
36
|
+
"@mui/x-data-grid": "6.14.0",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"@types/format-util": "^1.0.2",
|
|
39
39
|
"clsx": "^2.0.0",
|
package/utils/domUtils.js
CHANGED
|
@@ -11,7 +11,7 @@ export function findGroupHeaderElementsFromField(elem, field) {
|
|
|
11
11
|
return Array.from((_elem$querySelectorAl = elem.querySelectorAll(`[data-fields*="|-${field}-|"]`)) != null ? _elem$querySelectorAl : []);
|
|
12
12
|
}
|
|
13
13
|
export function findGridCellElementsFromCol(col, api) {
|
|
14
|
-
var _api$virtualScrollerR;
|
|
14
|
+
var _api$virtualScrollerR, _api$virtualScrollerR2;
|
|
15
15
|
const root = findParentElementFromClassName(col, gridClasses.root);
|
|
16
16
|
if (!root) {
|
|
17
17
|
throw new Error('MUI: The root element is not found.');
|
|
@@ -22,11 +22,10 @@ export function findGridCellElementsFromCol(col, api) {
|
|
|
22
22
|
}
|
|
23
23
|
const colIndex = Number(ariaColIndex) - 1;
|
|
24
24
|
const cells = [];
|
|
25
|
-
|
|
26
|
-
if (!virtualScrollerContent) {
|
|
25
|
+
if (!((_api$virtualScrollerR = api.virtualScrollerRef) != null && _api$virtualScrollerR.current)) {
|
|
27
26
|
return [];
|
|
28
27
|
}
|
|
29
|
-
const renderedRowElements =
|
|
28
|
+
const renderedRowElements = (_api$virtualScrollerR2 = api.virtualScrollerRef) == null ? void 0 : _api$virtualScrollerR2.current.querySelectorAll(`:scope > div > div > .${gridClasses.row}` // Use > to ignore rows from nested data grids (e.g. in detail panel)
|
|
30
29
|
);
|
|
31
30
|
|
|
32
31
|
renderedRowElements.forEach(rowElement => {
|
package/utils/releaseInfo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|