@mui/x-data-grid-pro 6.11.1 → 6.12.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 +154 -31
- package/DataGridPro/DataGrid.d.ts +1 -0
- package/DataGridPro/DataGrid.js +2 -0
- package/DataGridPro/DataGridPro.js +11 -0
- package/README.md +1 -1
- package/components/GridDetailPanel.js +2 -2
- package/components/headerFiltering/GridHeaderFilterCell.js +1 -1
- package/hooks/features/rowPinning/useGridRowPinning.js +2 -2
- package/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +2 -2
- package/index.js +1 -1
- package/legacy/DataGridPro/DataGrid.js +2 -0
- package/legacy/DataGridPro/DataGridPro.js +11 -0
- package/legacy/components/GridDetailPanel.js +2 -2
- package/legacy/components/headerFiltering/GridHeaderFilterCell.js +1 -1
- package/legacy/hooks/features/rowPinning/useGridRowPinning.js +2 -2
- package/legacy/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/legacy/utils/tree/insertDataRowInTree.js +5 -5
- package/legacy/utils/tree/removeDataRowFromTree.js +3 -3
- package/legacy/utils/tree/updateRowTree.js +1 -1
- package/modern/DataGridPro/DataGrid.js +2 -0
- package/modern/DataGridPro/DataGridPro.js +11 -0
- package/modern/components/GridDetailPanel.js +2 -2
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPro/DataGrid.js +13 -0
- package/node/DataGridPro/DataGridPro.js +11 -0
- package/node/components/GridDetailPanel.js +2 -2
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
- package/utils/releaseInfo.js +1 -1
- package/utils/tree/insertDataRowInTree.js +5 -5
- package/utils/tree/removeDataRowFromTree.js +3 -3
- package/utils/tree/updateRowTree.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,129 @@
|
|
|
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.12.0
|
|
7
|
+
|
|
8
|
+
_Aug 25, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 📊 Support horizontal bar chart
|
|
13
|
+
- 💫 Improved animations on Android devices
|
|
14
|
+
- 🌍 Improve Ukrainian (uk-UA) locale on the data grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@v6.12.0`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Allow print export for more than 100 rows (#10045) @MBilalShafi
|
|
23
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#10076) @mkundos
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-pro@v6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid@v6.12.0`.
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-premium@v6.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid-pro@v6.12.0`.
|
|
32
|
+
|
|
33
|
+
### Date Pickers
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-date-pickers@v6.12.0`
|
|
36
|
+
|
|
37
|
+
- [fields] Do not clamp day of month (#9973) @flaviendelangle
|
|
38
|
+
- [pickers] Fix `ownerState` on `desktopPaper` slot props (#10103) @LukasTy
|
|
39
|
+
- [pickers] Fix to `transform-origin` when popper opens to `top` (#10069) @LukasTy
|
|
40
|
+
- [pickers] Fix `YearCalendar` scrolling (#10135) @LukasTy
|
|
41
|
+
- [pickers] Improve the typing of the adapter `dateWithTimezone` method (#10029) @flaviendelangle
|
|
42
|
+
- [pickers] Make `openPickerButton` toggle picker (#10109) @noraleonte
|
|
43
|
+
- [pickers] Update `reduceAnimations` default rule (#9864) @LukasTy
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers-pro@v6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
46
|
+
|
|
47
|
+
Same changes as in `@mui/x-date-pickers@v6.12.0`.
|
|
48
|
+
|
|
49
|
+
### Charts / `@mui/x-charts@6.12.0`
|
|
50
|
+
|
|
51
|
+
- [charts] Fix import issue (#10111) @alexfauquette
|
|
52
|
+
- [charts] Fix `slotProps` propagation (#10105) @alexfauquette
|
|
53
|
+
- [charts] Support horizontal bar chart (#9992) @alexfauquette
|
|
54
|
+
|
|
55
|
+
### Docs
|
|
56
|
+
|
|
57
|
+
- [docs] Address charts docs feedback (#10119) @alexfauquette
|
|
58
|
+
- [docs] Capitalization convention pickers @oliviertassinari
|
|
59
|
+
- [docs] Fix a11y issue on plan links (#10026) @oliviertassinari
|
|
60
|
+
- [docs] Fix some charts horizontal overflow on mobile devices (#10082) @cupok
|
|
61
|
+
- [docs] Fix typo in quick filter @oliviertassinari
|
|
62
|
+
- [docs] Fix typo in the timezone page (#10073) @flaviendelangle
|
|
63
|
+
|
|
64
|
+
### Core
|
|
65
|
+
|
|
66
|
+
- [core] Bump monorepo (#10129) @LukasTy
|
|
67
|
+
- [core] Document a bit `useLazyRef` @oliviertassinari
|
|
68
|
+
- [core] Enable strict type checking options in the top-level tsconfig (#9925) @cherniavskii
|
|
69
|
+
- [core] Increase global e2e timeout (#10134) @LukasTy
|
|
70
|
+
- [core] Remove outdated link (#10125) @oliviertassinari
|
|
71
|
+
- [core] Update `no-response` workflow (#10102) @DanailH
|
|
72
|
+
|
|
73
|
+
## 6.11.2
|
|
74
|
+
|
|
75
|
+
_Aug 17, 2023_
|
|
76
|
+
|
|
77
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
78
|
+
|
|
79
|
+
- 🏎️ Lower the filtering delay in the grid
|
|
80
|
+
- 🌍 Improve Spanish (es-ES) locale on the data grid
|
|
81
|
+
- 🐞 Bugfixes
|
|
82
|
+
- 📚 Documentation improvements
|
|
83
|
+
|
|
84
|
+
### Data Grid
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-data-grid@v6.11.2`
|
|
87
|
+
|
|
88
|
+
- [DataGrid] Fix `eval` blocked by CSP (#9863) @romgrk
|
|
89
|
+
- [DataGrid] Fix row id bug (#10051) @romgrk
|
|
90
|
+
- [DataGrid] Honor `disableExport` flag in Print Export (#10044) @MBilalShafi
|
|
91
|
+
- [DataGrid] Lower filter debounce delay (#9712) @romgrk
|
|
92
|
+
- [DataGrid] Unhide potential ref binding issue (#9965) @oliviertassinari
|
|
93
|
+
- [l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales (#9999) @MyNameIsTakenOMG
|
|
94
|
+
- [l10n] Improve Spanish (es-ES) locale (#10037) @Macampu420
|
|
95
|
+
|
|
96
|
+
#### `@mui/x-data-grid-pro@v6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
97
|
+
|
|
98
|
+
Same changes as in `@mui/x-data-grid@v6.11.2`.
|
|
99
|
+
|
|
100
|
+
#### `@mui/x-data-grid-premium@v6.11.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
101
|
+
|
|
102
|
+
Same changes as in `@mui/x-data-grid-pro@v6.11.2`.
|
|
103
|
+
|
|
104
|
+
### Date Pickers
|
|
105
|
+
|
|
106
|
+
#### `@mui/x-date-pickers@v6.11.2`
|
|
107
|
+
|
|
108
|
+
- [pickers] Fix month switcher RTL (#10003) @alexfauquette
|
|
109
|
+
- [pickers] Follow-up on using device motion reduction preference (#9858) @LukasTy
|
|
110
|
+
- [pickers] Pass the shortcut information in the `onChange` context (#9985) @flaviendelangle
|
|
111
|
+
- [pickers] Replace `Grid` toolbar component with a styled `div` (#10052) @LukasTy
|
|
112
|
+
|
|
113
|
+
#### `@mui/x-date-pickers-pro@v6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
114
|
+
|
|
115
|
+
Same changes as in `@mui/x-date-pickers@v6.11.2`.
|
|
116
|
+
|
|
117
|
+
### Docs
|
|
118
|
+
|
|
119
|
+
- [docs] Add migration guide for the Tree View (#9987) @flaviendelangle
|
|
120
|
+
- [docs] Fix en-US changelog @oliviertassinari
|
|
121
|
+
- [docs] Update column types (#10040) @romgrk
|
|
122
|
+
|
|
123
|
+
### Core
|
|
124
|
+
|
|
125
|
+
- [core] Remove unnecessary Box (#9831) @oliviertassinari
|
|
126
|
+
- [core] Set GitHub Action top level permission @oliviertassinari
|
|
127
|
+
- [core] Split the pickers test utils (#9976) @flaviendelangle
|
|
128
|
+
|
|
6
129
|
## 6.11.1
|
|
7
130
|
|
|
8
131
|
_Aug 11, 2023_
|
|
@@ -21,11 +144,11 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
21
144
|
|
|
22
145
|
- [DataGrid] `getCellAggregationResult`: Handle `null` `rowNode` case (#9915) @romgrk
|
|
23
146
|
|
|
24
|
-
#### `@mui/x-data-grid-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link)
|
|
147
|
+
#### `@mui/x-data-grid-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
25
148
|
|
|
26
149
|
Same changes as in `@mui/x-data-grid@6.11.1`.
|
|
27
150
|
|
|
28
|
-
#### `@mui/x-data-grid-premium@6.11.1` [](https://mui.com/r/x-premium-svg-link)
|
|
151
|
+
#### `@mui/x-data-grid-premium@6.11.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
29
152
|
|
|
30
153
|
Same changes as in `@mui/x-data-grid-pro@6.11.1`.
|
|
31
154
|
|
|
@@ -40,7 +163,7 @@ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
|
|
|
40
163
|
- [l10n] Improve Finnish (fi-FI) locale (#9795) @kurkle
|
|
41
164
|
- [l10n] Improve Icelandic (is-IS) locale (#9639) @magnimarels
|
|
42
165
|
|
|
43
|
-
#### `@mui/x-date-pickers-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link)
|
|
166
|
+
#### `@mui/x-date-pickers-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
44
167
|
|
|
45
168
|
Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
46
169
|
|
|
@@ -90,11 +213,11 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
90
213
|
- [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
|
|
91
214
|
- [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
|
|
92
215
|
|
|
93
|
-
#### `@mui/x-data-grid-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link)
|
|
216
|
+
#### `@mui/x-data-grid-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
94
217
|
|
|
95
218
|
Same changes as in `@mui/x-data-grid@v6.11.0`.
|
|
96
219
|
|
|
97
|
-
#### `@mui/x-data-grid-premium@v6.11.0` [](https://mui.com/r/x-premium-svg-link)
|
|
220
|
+
#### `@mui/x-data-grid-premium@v6.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
98
221
|
|
|
99
222
|
Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
|
|
100
223
|
|
|
@@ -113,7 +236,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
|
|
|
113
236
|
- [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
|
|
114
237
|
- [pickers] Use device motion reduction preference (#9823) @LukasTy
|
|
115
238
|
|
|
116
|
-
#### `@mui/x-date-pickers-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link)
|
|
239
|
+
#### `@mui/x-date-pickers-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
117
240
|
|
|
118
241
|
Same changes as in `@mui/x-date-pickers@v6.11.0`.
|
|
119
242
|
|
|
@@ -176,11 +299,11 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
176
299
|
- [DataGrid] Keep focused cell in the DOM (#7357) @yaredtsy
|
|
177
300
|
- [l10n] Improve Finnish (fi-FI) locale (#9746) @sambbaahh
|
|
178
301
|
|
|
179
|
-
#### `@mui/x-data-grid-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link)
|
|
302
|
+
#### `@mui/x-data-grid-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
180
303
|
|
|
181
304
|
Same changes as in `@mui/x-data-grid@v6.10.2`.
|
|
182
305
|
|
|
183
|
-
#### `@mui/x-data-grid-premium@v6.10.2` [](https://mui.com/r/x-premium-svg-link)
|
|
306
|
+
#### `@mui/x-data-grid-premium@v6.10.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
184
307
|
|
|
185
308
|
Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
|
|
186
309
|
|
|
@@ -192,7 +315,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
|
|
|
192
315
|
|
|
193
316
|
- [pickers] Remove the `endOfDate` from `DigitalClock` timeOptions (#9800) @noraleonte
|
|
194
317
|
|
|
195
|
-
#### `@mui/x-date-pickers-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link)
|
|
318
|
+
#### `@mui/x-date-pickers-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
196
319
|
|
|
197
320
|
Same changes as in `@mui/x-date-pickers@v6.10.2`.
|
|
198
321
|
|
|
@@ -244,14 +367,14 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
244
367
|
- [DataGrid] Update focused cell on page change via keyboard (#9203) @m4theushw
|
|
245
368
|
- [DataGrid] Wait for remote stylesheets to load before print (#9665) @cherniavskii
|
|
246
369
|
|
|
247
|
-
#### `@mui/x-data-grid-pro@v6.10.1` [](https://mui.com/r/x-pro-svg-link)
|
|
370
|
+
#### `@mui/x-data-grid-pro@v6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
248
371
|
|
|
249
372
|
Same changes as in `@mui/x-data-grid@v6.10.1`, plus:
|
|
250
373
|
|
|
251
374
|
- [DataGridPro] Improve tree data performance (#9682) @cherniavskii
|
|
252
375
|
- [DataGridPro] Prevent affecting cells from child DataGrid when resizing a column (#9670) @m4theushw
|
|
253
376
|
|
|
254
|
-
#### `@mui/x-data-grid-premium@v6.10.1` [](https://mui.com/r/x-premium-svg-link)
|
|
377
|
+
#### `@mui/x-data-grid-premium@v6.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
255
378
|
|
|
256
379
|
Same changes as in `@mui/x-data-grid-pro@v6.10.1`.
|
|
257
380
|
|
|
@@ -262,7 +385,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.10.1`.
|
|
|
262
385
|
- [fields] Fix `format` and `value` update order (#9715) @LukasTy
|
|
263
386
|
- [pickers] Remove `require` usage in comment (#9675) @LukasTy
|
|
264
387
|
|
|
265
|
-
#### `@mui/x-date-pickers-pro@v6.10.1` [](https://mui.com/r/x-pro-svg-link)
|
|
388
|
+
#### `@mui/x-date-pickers-pro@v6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
266
389
|
|
|
267
390
|
Same changes as in `@mui/x-date-pickers@v6.10.1`.
|
|
268
391
|
|
|
@@ -313,11 +436,11 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
313
436
|
- [DataGrid] Make `rowExpansionChange` event public (#9611) @MBilalShafi
|
|
314
437
|
- [l10n] Improve Polish (pl-PL) locale (#9625) @ch1llysense
|
|
315
438
|
|
|
316
|
-
#### `@mui/x-data-grid-pro@6.10.0` [](https://mui.com/r/x-pro-svg-link)
|
|
439
|
+
#### `@mui/x-data-grid-pro@6.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
317
440
|
|
|
318
441
|
Same changes as in `@mui/x-data-grid@6.10.0`.
|
|
319
442
|
|
|
320
|
-
#### `@mui/x-data-grid-premium@6.10.0` [](https://mui.com/r/x-premium-svg-link)
|
|
443
|
+
#### `@mui/x-data-grid-premium@6.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
321
444
|
|
|
322
445
|
Same changes as in `@mui/x-data-grid-pro@6.10.0`.
|
|
323
446
|
|
|
@@ -328,7 +451,7 @@ Same changes as in `@mui/x-data-grid-pro@6.10.0`.
|
|
|
328
451
|
- [pickers] Fix date calendar issues (#9652) @LukasTy
|
|
329
452
|
- [l10n] Improve Norwegian (nb-NO) locale (#9608) @JosteinBrevik
|
|
330
453
|
|
|
331
|
-
#### `@mui/x-date-pickers-pro@6.10.0` [](https://mui.com/r/x-pro-svg-link)
|
|
454
|
+
#### `@mui/x-date-pickers-pro@6.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
332
455
|
|
|
333
456
|
Same changes as in `@mui/x-date-pickers@6.10.0`.
|
|
334
457
|
|
|
@@ -381,11 +504,11 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
381
504
|
- [DataGrid] Correctly reflect `TablePagination`'s `rowsPerPageOptions` shape to `pageSizeOptions` (#9438) @burakkgunduzz
|
|
382
505
|
- [l10n] Improve Spanish (es-ES) locale (#9500) @fufex
|
|
383
506
|
|
|
384
|
-
#### `@mui/x-data-grid-pro@6.9.2` [](https://mui.com/r/x-pro-svg-link)
|
|
507
|
+
#### `@mui/x-data-grid-pro@6.9.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
385
508
|
|
|
386
509
|
Same changes as in `@mui/x-data-grid@6.9.2`.
|
|
387
510
|
|
|
388
|
-
#### `@mui/x-data-grid-premium@6.9.2` [](https://mui.com/r/x-premium-svg-link)
|
|
511
|
+
#### `@mui/x-data-grid-premium@6.9.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
389
512
|
|
|
390
513
|
Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
|
|
391
514
|
|
|
@@ -398,7 +521,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
|
|
|
398
521
|
- [pickers] Forward digital clock classes (#9555) @YoonjiJang
|
|
399
522
|
- [pickers] Rename `internal` folder to `internals` on `@mui/x-date-picker-pro` (#9571) @flaviendelangle
|
|
400
523
|
|
|
401
|
-
#### `@mui/x-date-pickers-pro@6.9.2` [](https://mui.com/r/x-pro-svg-link)
|
|
524
|
+
#### `@mui/x-date-pickers-pro@6.9.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
402
525
|
|
|
403
526
|
Same changes as in `@mui/x-date-pickers@6.9.2`.
|
|
404
527
|
|
|
@@ -446,14 +569,14 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
446
569
|
- [DataGrid] Fix `Maximum call stack size exceeded` error when using fractional width (#9516) @cherniavskii
|
|
447
570
|
- [l10n] Improve Romanian (ro-RO) and Hungarian (hu-HU) translations (#9436) @noraleonte
|
|
448
571
|
|
|
449
|
-
#### `@mui/x-data-grid-pro@6.9.1` [](https://mui.com/r/x-pro-svg-link)
|
|
572
|
+
#### `@mui/x-data-grid-pro@6.9.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
450
573
|
|
|
451
574
|
Same changes as in `@mui/x-data-grid@6.9.1`, plus:
|
|
452
575
|
|
|
453
576
|
- [DataGridPro] Don't throw error in column pinning (#9507) @romgrk
|
|
454
577
|
- [DataGridPro] Fix bug with `checkboxSelection` and treeData/grouping (#9418) @romgrk
|
|
455
578
|
|
|
456
|
-
#### `@mui/x-data-grid-premium@6.9.1` [](https://mui.com/r/x-premium-svg-link)
|
|
579
|
+
#### `@mui/x-data-grid-premium@6.9.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
457
580
|
|
|
458
581
|
Same changes as in `@mui/x-data-grid-pro@6.9.1`.
|
|
459
582
|
|
|
@@ -467,7 +590,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.1`.
|
|
|
467
590
|
- [l10n] Add Chinese (Hong Kong) (zh-HK) locale (#9468) @samchiu90
|
|
468
591
|
- [l10n] Improve Romanian (ro-RO) translations (#9436) @noraleonte
|
|
469
592
|
|
|
470
|
-
#### `@mui/x-date-pickers-pro@6.9.1` [](https://mui.com/r/x-pro-svg-link)
|
|
593
|
+
#### `@mui/x-date-pickers-pro@6.9.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
471
594
|
|
|
472
595
|
Same changes as in `@mui/x-date-pickers@6.9.1`.
|
|
473
596
|
|
|
@@ -531,11 +654,11 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
531
654
|
- [DataGrid] Use container dimensions from `getComputedStyle` (#9236) @m4theushw
|
|
532
655
|
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#9404) @julioAz
|
|
533
656
|
|
|
534
|
-
#### `@mui/x-data-grid-pro@6.9.0` [](https://mui.com/r/x-pro-svg-link)
|
|
657
|
+
#### `@mui/x-data-grid-pro@6.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
535
658
|
|
|
536
659
|
Same changes as in `@mui/x-data-grid@6.9.0`.
|
|
537
660
|
|
|
538
|
-
#### `@mui/x-data-grid-premium@6.9.0` [](https://mui.com/r/x-premium-svg-link)
|
|
661
|
+
#### `@mui/x-data-grid-premium@6.9.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
539
662
|
|
|
540
663
|
Same changes as in `@mui/x-data-grid-pro@6.9.0`.
|
|
541
664
|
|
|
@@ -551,7 +674,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.0`.
|
|
|
551
674
|
- [pickers] Reduce date range calendar vertical border width (#9368) @oliviertassinari
|
|
552
675
|
- [pickers] Reset fields internal state when pasting value (#9385) @alexfauquette
|
|
553
676
|
|
|
554
|
-
#### `@mui/x-date-pickers-pro@6.9.0` [](https://mui.com/r/x-pro-svg-link)
|
|
677
|
+
#### `@mui/x-date-pickers-pro@6.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
555
678
|
|
|
556
679
|
Same changes as in `@mui/x-date-pickers@6.9.0`.
|
|
557
680
|
|
|
@@ -607,11 +730,11 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
607
730
|
- [DataGrid] Scroll performance improvements (#9037) @romgrk
|
|
608
731
|
- [l10n] Improve Greek (el-GR) locale (#9292) @clytras
|
|
609
732
|
|
|
610
|
-
#### `@mui/x-data-grid-pro@6.8.0` [](https://mui.com/r/x-pro-svg-link)
|
|
733
|
+
#### `@mui/x-data-grid-pro@6.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
611
734
|
|
|
612
735
|
Same changes as in `@mui/x-data-grid@6.8.0`.
|
|
613
736
|
|
|
614
|
-
#### `@mui/x-data-grid-premium@6.8.0` [](https://mui.com/r/x-premium-svg-link)
|
|
737
|
+
#### `@mui/x-data-grid-premium@6.8.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
615
738
|
|
|
616
739
|
Same changes as in `@mui/x-data-grid-pro@6.8.0`.
|
|
617
740
|
|
|
@@ -624,7 +747,7 @@ Same changes as in `@mui/x-data-grid-pro@6.8.0`.
|
|
|
624
747
|
- [pickers] Close the calendar when a shortcut is selected (#9080) @flaviendelangle
|
|
625
748
|
- [pickers] Fix disabling for digital clock (#9300) @alexfauquette
|
|
626
749
|
|
|
627
|
-
#### `@mui/x-date-pickers-pro@6.8.0` [](https://mui.com/r/x-pro-svg-link)
|
|
750
|
+
#### `@mui/x-date-pickers-pro@6.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
628
751
|
|
|
629
752
|
Same changes as in `@mui/x-date-pickers@6.8.0`.
|
|
630
753
|
|
|
@@ -700,13 +823,13 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
700
823
|
- [l10n] Improve German (de-DE) locale (#9259) @ximex
|
|
701
824
|
- [l10n] Improve Turkish (tr-TR) locale (#9237) @MCErtan
|
|
702
825
|
|
|
703
|
-
#### `@mui/x-data-grid-pro@6.7.0` [](https://mui.com/r/x-pro-svg-link)
|
|
826
|
+
#### `@mui/x-data-grid-pro@6.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
704
827
|
|
|
705
828
|
Same changes as in `@mui/x-data-grid@6.7.0`, plus:
|
|
706
829
|
|
|
707
830
|
- [DataGridPro] Improve header filter menu visuals (#9181) @MBilalShafi
|
|
708
831
|
|
|
709
|
-
#### `@mui/x-data-grid-premium@6.7.0` [](https://mui.com/r/x-premium-svg-link)
|
|
832
|
+
#### `@mui/x-data-grid-premium@6.7.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
710
833
|
|
|
711
834
|
Same changes as in `@mui/x-data-grid-pro@6.7.0`, plus:
|
|
712
835
|
|
|
@@ -720,7 +843,7 @@ Same changes as in `@mui/x-data-grid-pro@6.7.0`, plus:
|
|
|
720
843
|
- [l10n] Improve German (de-DE) locale (#9258) @ximex
|
|
721
844
|
- [pickers] Apply dynamic default format depending on views for all desktop and mobile pickers (#9126) @flaviendelangle
|
|
722
845
|
|
|
723
|
-
#### `@mui/x-date-pickers-pro@6.7.0` [](https://mui.com/r/x-pro-svg-link)
|
|
846
|
+
#### `@mui/x-date-pickers-pro@6.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
724
847
|
|
|
725
848
|
Same changes as in `@mui/x-date-pickers@6.7.0`, plus:
|
|
726
849
|
|
|
@@ -2872,7 +2995,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
2872
2995
|
|
|
2873
2996
|
#### Changes
|
|
2874
2997
|
|
|
2875
|
-
- [DateRangePicker] Fix input focused style and mobile
|
|
2998
|
+
- [DateRangePicker] Fix input focused style and mobile behavior (#6645) @LukasTy
|
|
2876
2999
|
- [fields] Update sections when the locale changes (#6649) @flaviendelangle
|
|
2877
3000
|
- [pickers] Add Ukrainian (uk-UA) locale (#6661) @Dufran
|
|
2878
3001
|
- [pickers] Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
|
package/DataGridPro/DataGrid.js
CHANGED
|
@@ -193,6 +193,12 @@ DataGridProRaw.propTypes = {
|
|
|
193
193
|
* @default false
|
|
194
194
|
*/
|
|
195
195
|
disableDensitySelector: PropTypes.bool,
|
|
196
|
+
/**
|
|
197
|
+
* If `true`, `eval()` is not used for performance optimization.
|
|
198
|
+
* @default false
|
|
199
|
+
* @ignore - do not document
|
|
200
|
+
*/
|
|
201
|
+
disableEval: PropTypes.bool,
|
|
196
202
|
/**
|
|
197
203
|
* If `true`, filtering with multiple columns is disabled.
|
|
198
204
|
* @default false
|
|
@@ -233,6 +239,11 @@ DataGridProRaw.propTypes = {
|
|
|
233
239
|
lazyLoading: PropTypes.bool,
|
|
234
240
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
235
241
|
}),
|
|
242
|
+
/**
|
|
243
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering.
|
|
244
|
+
* @default 150
|
|
245
|
+
*/
|
|
246
|
+
filterDebounceMs: PropTypes.number,
|
|
236
247
|
/**
|
|
237
248
|
* Filtering can be processed on the server or client-side.
|
|
238
249
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
package/README.md
CHANGED
|
@@ -32,14 +32,14 @@ function GridDetailPanel(props) {
|
|
|
32
32
|
const rootProps = useGridRootProps();
|
|
33
33
|
const ownerState = rootProps;
|
|
34
34
|
React.useLayoutEffect(() => {
|
|
35
|
-
if (height === 'auto' &&
|
|
35
|
+
if (height === 'auto' && typeof ResizeObserver === 'undefined') {
|
|
36
36
|
// Fallback for IE
|
|
37
37
|
apiRef.current.storeDetailPanelHeight(rowId, ref.current.clientHeight);
|
|
38
38
|
}
|
|
39
39
|
}, [apiRef, height, rowId]);
|
|
40
40
|
React.useLayoutEffect(() => {
|
|
41
41
|
const hasFixedHeight = height !== 'auto';
|
|
42
|
-
if (
|
|
42
|
+
if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
45
|
const resizeObserver = new ResizeObserver(entries => {
|
|
@@ -76,7 +76,7 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
76
76
|
focusableElement = inputRef.current;
|
|
77
77
|
}
|
|
78
78
|
const elementToFocus = focusableElement || cellRef.current;
|
|
79
|
-
elementToFocus == null
|
|
79
|
+
elementToFocus == null || elementToFocus.focus();
|
|
80
80
|
apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
|
|
81
81
|
}
|
|
82
82
|
}, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
|
|
@@ -9,12 +9,12 @@ function createPinnedRowsInternalCache(pinnedRows, getRowId) {
|
|
|
9
9
|
bottomIds: [],
|
|
10
10
|
idLookup: {}
|
|
11
11
|
};
|
|
12
|
-
pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null
|
|
12
|
+
pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null || _pinnedRows$top.forEach(rowModel => {
|
|
13
13
|
const id = getRowIdFromRowModel(rowModel, getRowId);
|
|
14
14
|
cache.topIds.push(id);
|
|
15
15
|
cache.idLookup[id] = rowModel;
|
|
16
16
|
});
|
|
17
|
-
pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null
|
|
17
|
+
pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null || _pinnedRows$bottom.forEach(rowModel => {
|
|
18
18
|
const id = getRowIdFromRowModel(rowModel, getRowId);
|
|
19
19
|
cache.bottomIds.push(id);
|
|
20
20
|
cache.idLookup[id] = rowModel;
|
|
@@ -70,7 +70,7 @@ export const useGridRowPinningPreProcessors = apiRef => {
|
|
|
70
70
|
pinnedRows: {}
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
|
-
(_pinnedRowsCache$topI = pinnedRowsCache.topIds) == null
|
|
73
|
+
(_pinnedRowsCache$topI = pinnedRowsCache.topIds) == null || _pinnedRowsCache$topI.forEach(rowId => {
|
|
74
74
|
newGroupingParams = addPinnedRow({
|
|
75
75
|
groupingParams: newGroupingParams,
|
|
76
76
|
rowModel: pinnedRowsCache.idLookup[rowId],
|
|
@@ -80,7 +80,7 @@ export const useGridRowPinningPreProcessors = apiRef => {
|
|
|
80
80
|
isAutoGenerated: false
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
(_pinnedRowsCache$bott = pinnedRowsCache.bottomIds) == null
|
|
83
|
+
(_pinnedRowsCache$bott = pinnedRowsCache.bottomIds) == null || _pinnedRowsCache$bott.forEach(rowId => {
|
|
84
84
|
newGroupingParams = addPinnedRow({
|
|
85
85
|
groupingParams: newGroupingParams,
|
|
86
86
|
rowModel: pinnedRowsCache.idLookup[rowId],
|
package/index.js
CHANGED
|
@@ -193,6 +193,12 @@ DataGridProRaw.propTypes = {
|
|
|
193
193
|
* @default false
|
|
194
194
|
*/
|
|
195
195
|
disableDensitySelector: PropTypes.bool,
|
|
196
|
+
/**
|
|
197
|
+
* If `true`, `eval()` is not used for performance optimization.
|
|
198
|
+
* @default false
|
|
199
|
+
* @ignore - do not document
|
|
200
|
+
*/
|
|
201
|
+
disableEval: PropTypes.bool,
|
|
196
202
|
/**
|
|
197
203
|
* If `true`, filtering with multiple columns is disabled.
|
|
198
204
|
* @default false
|
|
@@ -233,6 +239,11 @@ DataGridProRaw.propTypes = {
|
|
|
233
239
|
lazyLoading: PropTypes.bool,
|
|
234
240
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
235
241
|
}),
|
|
242
|
+
/**
|
|
243
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering.
|
|
244
|
+
* @default 150
|
|
245
|
+
*/
|
|
246
|
+
filterDebounceMs: PropTypes.number,
|
|
236
247
|
/**
|
|
237
248
|
* Filtering can be processed on the server or client-side.
|
|
238
249
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
@@ -35,14 +35,14 @@ function GridDetailPanel(props) {
|
|
|
35
35
|
var rootProps = useGridRootProps();
|
|
36
36
|
var ownerState = rootProps;
|
|
37
37
|
React.useLayoutEffect(function () {
|
|
38
|
-
if (height === 'auto' &&
|
|
38
|
+
if (height === 'auto' && typeof ResizeObserver === 'undefined') {
|
|
39
39
|
// Fallback for IE
|
|
40
40
|
apiRef.current.storeDetailPanelHeight(rowId, ref.current.clientHeight);
|
|
41
41
|
}
|
|
42
42
|
}, [apiRef, height, rowId]);
|
|
43
43
|
React.useLayoutEffect(function () {
|
|
44
44
|
var hasFixedHeight = height !== 'auto';
|
|
45
|
-
if (
|
|
45
|
+
if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
|
|
46
46
|
return undefined;
|
|
47
47
|
}
|
|
48
48
|
var resizeObserver = new ResizeObserver(function (entries) {
|
|
@@ -72,7 +72,7 @@ var GridHeaderFilterCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
72
72
|
focusableElement = inputRef.current;
|
|
73
73
|
}
|
|
74
74
|
var elementToFocus = focusableElement || cellRef.current;
|
|
75
|
-
elementToFocus == null
|
|
75
|
+
elementToFocus == null || elementToFocus.focus();
|
|
76
76
|
apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
|
|
77
77
|
}
|
|
78
78
|
}, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
|
|
@@ -9,12 +9,12 @@ function createPinnedRowsInternalCache(pinnedRows, getRowId) {
|
|
|
9
9
|
bottomIds: [],
|
|
10
10
|
idLookup: {}
|
|
11
11
|
};
|
|
12
|
-
pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null
|
|
12
|
+
pinnedRows == null || (_pinnedRows$top = pinnedRows.top) == null || _pinnedRows$top.forEach(function (rowModel) {
|
|
13
13
|
var id = getRowIdFromRowModel(rowModel, getRowId);
|
|
14
14
|
cache.topIds.push(id);
|
|
15
15
|
cache.idLookup[id] = rowModel;
|
|
16
16
|
});
|
|
17
|
-
pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null
|
|
17
|
+
pinnedRows == null || (_pinnedRows$bottom = pinnedRows.bottom) == null || _pinnedRows$bottom.forEach(function (rowModel) {
|
|
18
18
|
var id = getRowIdFromRowModel(rowModel, getRowId);
|
|
19
19
|
cache.bottomIds.push(id);
|
|
20
20
|
cache.idLookup[id] = rowModel;
|
|
@@ -69,7 +69,7 @@ export var useGridRowPinningPreProcessors = function useGridRowPinningPreProcess
|
|
|
69
69
|
pinnedRows: {}
|
|
70
70
|
})
|
|
71
71
|
});
|
|
72
|
-
(_pinnedRowsCache$topI = pinnedRowsCache.topIds) == null
|
|
72
|
+
(_pinnedRowsCache$topI = pinnedRowsCache.topIds) == null || _pinnedRowsCache$topI.forEach(function (rowId) {
|
|
73
73
|
newGroupingParams = addPinnedRow({
|
|
74
74
|
groupingParams: newGroupingParams,
|
|
75
75
|
rowModel: pinnedRowsCache.idLookup[rowId],
|
|
@@ -79,7 +79,7 @@ export var useGridRowPinningPreProcessors = function useGridRowPinningPreProcess
|
|
|
79
79
|
isAutoGenerated: false
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
|
-
(_pinnedRowsCache$bott = pinnedRowsCache.bottomIds) == null
|
|
82
|
+
(_pinnedRowsCache$bott = pinnedRowsCache.bottomIds) == null || _pinnedRowsCache$bott.forEach(function (rowId) {
|
|
83
83
|
newGroupingParams = addPinnedRow({
|
|
84
84
|
groupingParams: newGroupingParams,
|
|
85
85
|
rowModel: pinnedRowsCache.idLookup[rowId],
|
package/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY5MjkxNDQwMDAwMA==";
|
|
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
|
|
@@ -39,7 +39,7 @@ export var insertDataRowInTree = function insertDataRowInTree(_ref) {
|
|
|
39
39
|
parent: parentNodeId,
|
|
40
40
|
groupingKey: key
|
|
41
41
|
};
|
|
42
|
-
updatedGroupsManager == null
|
|
42
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
|
|
43
43
|
insertNodeInTree(leafNode, tree, treeDepths, previousTree);
|
|
44
44
|
} else {
|
|
45
45
|
var existingNodeWithPartialPath = tree[existingNodeIdWithPartialPath];
|
|
@@ -47,8 +47,8 @@ export var insertDataRowInTree = function insertDataRowInTree(_ref) {
|
|
|
47
47
|
// If we already have an auto-generated group matching the partial path,
|
|
48
48
|
// We replace it with the node from of data row passed to `insertNodeInTree`
|
|
49
49
|
if (existingNodeWithPartialPath.type === 'group' && existingNodeWithPartialPath.isAutoGenerated) {
|
|
50
|
-
updatedGroupsManager == null
|
|
51
|
-
updatedGroupsManager == null
|
|
50
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'removeChildren');
|
|
51
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
|
|
52
52
|
updateGroupNodeIdAndAutoGenerated({
|
|
53
53
|
tree: tree,
|
|
54
54
|
previousTree: previousTree,
|
|
@@ -62,7 +62,7 @@ export var insertDataRowInTree = function insertDataRowInTree(_ref) {
|
|
|
62
62
|
} else {
|
|
63
63
|
// If we have another row matching the partial path, then there is a duplicate in the dataset.
|
|
64
64
|
// We warn the user and skip the current row.
|
|
65
|
-
onDuplicatePath == null
|
|
65
|
+
onDuplicatePath == null || onDuplicatePath(existingNodeIdWithPartialPath, id, path);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -85,7 +85,7 @@ export var insertDataRowInTree = function insertDataRowInTree(_ref) {
|
|
|
85
85
|
childrenFromPath: {},
|
|
86
86
|
childrenExpanded: false
|
|
87
87
|
};
|
|
88
|
-
updatedGroupsManager == null
|
|
88
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
|
|
89
89
|
insertNodeInTree(updateGroupDefaultExpansion(autoGeneratedGroupNode, defaultGroupingExpansionDepth, isGroupExpandedByDefault), tree, treeDepths, previousTree);
|
|
90
90
|
parentNodeId = nodeId;
|
|
91
91
|
}
|
|
@@ -18,7 +18,7 @@ var removeNodeAndCleanParent = function removeNodeAndCleanParent(_ref) {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
var parentNode = tree[node.parent];
|
|
21
|
-
updatedGroupsManager == null
|
|
21
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNode.id, 'removeChildren');
|
|
22
22
|
var shouldDeleteGroup = parentNode.id !== GRID_ROOT_GROUP_ID && parentNode.children.length === 0;
|
|
23
23
|
if (shouldDeleteGroup) {
|
|
24
24
|
if (parentNode.isAutoGenerated) {
|
|
@@ -43,8 +43,8 @@ var replaceDataGroupWithAutoGeneratedGroup = function replaceDataGroupWithAutoGe
|
|
|
43
43
|
tree = _ref2.tree,
|
|
44
44
|
treeDepths = _ref2.treeDepths,
|
|
45
45
|
updatedGroupsManager = _ref2.updatedGroupsManager;
|
|
46
|
-
updatedGroupsManager == null
|
|
47
|
-
updatedGroupsManager == null
|
|
46
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(node.parent, 'removeChildren');
|
|
47
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(node.parent, 'insertChildren');
|
|
48
48
|
updateGroupNodeIdAndAutoGenerated({
|
|
49
49
|
previousTree: null,
|
|
50
50
|
tree: tree,
|
|
@@ -61,7 +61,7 @@ export var updateRowTree = function updateRowTree(params) {
|
|
|
61
61
|
defaultGroupingExpansionDepth: params.defaultGroupingExpansionDepth
|
|
62
62
|
});
|
|
63
63
|
} else {
|
|
64
|
-
updatedGroupsManager == null
|
|
64
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(tree[_id].parent, 'modifyChildren');
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -193,6 +193,12 @@ DataGridProRaw.propTypes = {
|
|
|
193
193
|
* @default false
|
|
194
194
|
*/
|
|
195
195
|
disableDensitySelector: PropTypes.bool,
|
|
196
|
+
/**
|
|
197
|
+
* If `true`, `eval()` is not used for performance optimization.
|
|
198
|
+
* @default false
|
|
199
|
+
* @ignore - do not document
|
|
200
|
+
*/
|
|
201
|
+
disableEval: PropTypes.bool,
|
|
196
202
|
/**
|
|
197
203
|
* If `true`, filtering with multiple columns is disabled.
|
|
198
204
|
* @default false
|
|
@@ -233,6 +239,11 @@ DataGridProRaw.propTypes = {
|
|
|
233
239
|
lazyLoading: PropTypes.bool,
|
|
234
240
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
235
241
|
}),
|
|
242
|
+
/**
|
|
243
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering.
|
|
244
|
+
* @default 150
|
|
245
|
+
*/
|
|
246
|
+
filterDebounceMs: PropTypes.number,
|
|
236
247
|
/**
|
|
237
248
|
* Filtering can be processed on the server or client-side.
|
|
238
249
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
@@ -32,14 +32,14 @@ function GridDetailPanel(props) {
|
|
|
32
32
|
const rootProps = useGridRootProps();
|
|
33
33
|
const ownerState = rootProps;
|
|
34
34
|
React.useLayoutEffect(() => {
|
|
35
|
-
if (height === 'auto' &&
|
|
35
|
+
if (height === 'auto' && typeof ResizeObserver === 'undefined') {
|
|
36
36
|
// Fallback for IE
|
|
37
37
|
apiRef.current.storeDetailPanelHeight(rowId, ref.current.clientHeight);
|
|
38
38
|
}
|
|
39
39
|
}, [apiRef, height, rowId]);
|
|
40
40
|
React.useLayoutEffect(() => {
|
|
41
41
|
const hasFixedHeight = height !== 'auto';
|
|
42
|
-
if (
|
|
42
|
+
if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
45
|
const resizeObserver = new ResizeObserver(entries => {
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5MjkxNDQwMDAwMA==";
|
|
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
|
|
@@ -5,6 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.DataGrid = DataGrid;
|
|
7
7
|
exports.DataGridPremium = DataGridPremium;
|
|
8
|
+
Object.defineProperty(exports, "SUBMIT_FILTER_DATE_STROKE_TIME", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return _xDataGrid.SUBMIT_FILTER_DATE_STROKE_TIME;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "SUBMIT_FILTER_STROKE_TIME", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return _xDataGrid.SUBMIT_FILTER_STROKE_TIME;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var _xDataGrid = require("@mui/x-data-grid");
|
|
8
21
|
/**
|
|
9
22
|
* @deprecated Import DataGridPro instead.
|
|
10
23
|
*/
|
|
@@ -202,6 +202,12 @@ DataGridProRaw.propTypes = {
|
|
|
202
202
|
* @default false
|
|
203
203
|
*/
|
|
204
204
|
disableDensitySelector: _propTypes.default.bool,
|
|
205
|
+
/**
|
|
206
|
+
* If `true`, `eval()` is not used for performance optimization.
|
|
207
|
+
* @default false
|
|
208
|
+
* @ignore - do not document
|
|
209
|
+
*/
|
|
210
|
+
disableEval: _propTypes.default.bool,
|
|
205
211
|
/**
|
|
206
212
|
* If `true`, filtering with multiple columns is disabled.
|
|
207
213
|
* @default false
|
|
@@ -242,6 +248,11 @@ DataGridProRaw.propTypes = {
|
|
|
242
248
|
lazyLoading: _propTypes.default.bool,
|
|
243
249
|
warnIfFocusStateIsNotSynced: _propTypes.default.bool
|
|
244
250
|
}),
|
|
251
|
+
/**
|
|
252
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering.
|
|
253
|
+
* @default 150
|
|
254
|
+
*/
|
|
255
|
+
filterDebounceMs: _propTypes.default.number,
|
|
245
256
|
/**
|
|
246
257
|
* Filtering can be processed on the server or client-side.
|
|
247
258
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
@@ -41,14 +41,14 @@ function GridDetailPanel(props) {
|
|
|
41
41
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
42
42
|
const ownerState = rootProps;
|
|
43
43
|
React.useLayoutEffect(() => {
|
|
44
|
-
if (height === 'auto' &&
|
|
44
|
+
if (height === 'auto' && typeof ResizeObserver === 'undefined') {
|
|
45
45
|
// Fallback for IE
|
|
46
46
|
apiRef.current.storeDetailPanelHeight(rowId, ref.current.clientHeight);
|
|
47
47
|
}
|
|
48
48
|
}, [apiRef, height, rowId]);
|
|
49
49
|
React.useLayoutEffect(() => {
|
|
50
50
|
const hasFixedHeight = height !== 'auto';
|
|
51
|
-
if (
|
|
51
|
+
if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
|
|
52
52
|
return undefined;
|
|
53
53
|
}
|
|
54
54
|
const resizeObserver = new ResizeObserver(entries => {
|
package/node/index.js
CHANGED
|
@@ -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 = "MTY5MjkxNDQwMDAwMA==";
|
|
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.12.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.11",
|
|
35
|
+
"@mui/utils": "^5.14.5",
|
|
36
|
+
"@mui/x-data-grid": "6.12.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/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 = "MTY5MjkxNDQwMDAwMA==";
|
|
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
|
|
@@ -41,7 +41,7 @@ export const insertDataRowInTree = ({
|
|
|
41
41
|
parent: parentNodeId,
|
|
42
42
|
groupingKey: key
|
|
43
43
|
};
|
|
44
|
-
updatedGroupsManager == null
|
|
44
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
|
|
45
45
|
insertNodeInTree(leafNode, tree, treeDepths, previousTree);
|
|
46
46
|
} else {
|
|
47
47
|
const existingNodeWithPartialPath = tree[existingNodeIdWithPartialPath];
|
|
@@ -49,8 +49,8 @@ export const insertDataRowInTree = ({
|
|
|
49
49
|
// If we already have an auto-generated group matching the partial path,
|
|
50
50
|
// We replace it with the node from of data row passed to `insertNodeInTree`
|
|
51
51
|
if (existingNodeWithPartialPath.type === 'group' && existingNodeWithPartialPath.isAutoGenerated) {
|
|
52
|
-
updatedGroupsManager == null
|
|
53
|
-
updatedGroupsManager == null
|
|
52
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'removeChildren');
|
|
53
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
|
|
54
54
|
updateGroupNodeIdAndAutoGenerated({
|
|
55
55
|
tree,
|
|
56
56
|
previousTree,
|
|
@@ -64,7 +64,7 @@ export const insertDataRowInTree = ({
|
|
|
64
64
|
} else {
|
|
65
65
|
// If we have another row matching the partial path, then there is a duplicate in the dataset.
|
|
66
66
|
// We warn the user and skip the current row.
|
|
67
|
-
onDuplicatePath == null
|
|
67
|
+
onDuplicatePath == null || onDuplicatePath(existingNodeIdWithPartialPath, id, path);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -87,7 +87,7 @@ export const insertDataRowInTree = ({
|
|
|
87
87
|
childrenFromPath: {},
|
|
88
88
|
childrenExpanded: false
|
|
89
89
|
};
|
|
90
|
-
updatedGroupsManager == null
|
|
90
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNodeId, 'insertChildren');
|
|
91
91
|
insertNodeInTree(updateGroupDefaultExpansion(autoGeneratedGroupNode, defaultGroupingExpansionDepth, isGroupExpandedByDefault), tree, treeDepths, previousTree);
|
|
92
92
|
parentNodeId = nodeId;
|
|
93
93
|
}
|
|
@@ -19,7 +19,7 @@ const removeNodeAndCleanParent = ({
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
const parentNode = tree[node.parent];
|
|
22
|
-
updatedGroupsManager == null
|
|
22
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(parentNode.id, 'removeChildren');
|
|
23
23
|
const shouldDeleteGroup = parentNode.id !== GRID_ROOT_GROUP_ID && parentNode.children.length === 0;
|
|
24
24
|
if (shouldDeleteGroup) {
|
|
25
25
|
if (parentNode.isAutoGenerated) {
|
|
@@ -45,8 +45,8 @@ const replaceDataGroupWithAutoGeneratedGroup = ({
|
|
|
45
45
|
treeDepths,
|
|
46
46
|
updatedGroupsManager
|
|
47
47
|
}) => {
|
|
48
|
-
updatedGroupsManager == null
|
|
49
|
-
updatedGroupsManager == null
|
|
48
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(node.parent, 'removeChildren');
|
|
49
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(node.parent, 'insertChildren');
|
|
50
50
|
updateGroupNodeIdAndAutoGenerated({
|
|
51
51
|
previousTree: null,
|
|
52
52
|
tree,
|
|
@@ -63,7 +63,7 @@ export const updateRowTree = params => {
|
|
|
63
63
|
defaultGroupingExpansionDepth: params.defaultGroupingExpansionDepth
|
|
64
64
|
});
|
|
65
65
|
} else {
|
|
66
|
-
updatedGroupsManager == null
|
|
66
|
+
updatedGroupsManager == null || updatedGroupsManager.addAction(tree[id].parent, 'modifyChildren');
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|