@mui/x-date-pickers-pro 6.11.2 → 6.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +158 -33
- package/DateRangeCalendar/DateRangeCalendar.js +9 -2
- package/DateRangeCalendar/DateRangeCalendar.types.d.ts +6 -1
- package/DateRangePicker/DateRangePicker.js +6 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -1
- package/MobileDateRangePicker/MobileDateRangePicker.js +6 -1
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +0 -4
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +0 -4
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +0 -4
- package/StaticDateRangePicker/StaticDateRangePicker.js +6 -1
- package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +1 -1
- package/dateRangeViewRenderers/dateRangeViewRenderers.js +2 -0
- package/index.js +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +1 -1
- package/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +1 -1
- package/internals/hooks/useEnrichedRangePickerFieldProps.js +4 -4
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +1 -1
- package/internals/hooks/useRangePosition.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/legacy/DateRangeCalendar/DateRangeCalendar.js +9 -2
- package/legacy/DateRangePicker/DateRangePicker.js +6 -1
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -1
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +6 -1
- package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +0 -4
- package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +0 -4
- package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +0 -4
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +6 -1
- package/legacy/dateRangeViewRenderers/dateRangeViewRenderers.js +2 -0
- package/legacy/index.js +1 -1
- package/legacy/internals/hooks/useEnrichedRangePickerFieldProps.js +4 -4
- package/legacy/internals/hooks/useRangePosition.js +1 -1
- package/legacy/internals/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +9 -2
- package/modern/DateRangePicker/DateRangePicker.js +6 -1
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -1
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +6 -1
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +0 -4
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +0 -4
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +0 -4
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +6 -1
- package/modern/dateRangeViewRenderers/dateRangeViewRenderers.js +2 -0
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +9 -2
- package/node/DateRangePicker/DateRangePicker.js +6 -1
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -1
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +6 -1
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +0 -4
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +0 -4
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +0 -4
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +6 -1
- package/node/dateRangeViewRenderers/dateRangeViewRenderers.js +2 -0
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,131 @@
|
|
|
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.1
|
|
7
|
+
|
|
8
|
+
_Aug 31, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🏎️ Perf improvement for line charts
|
|
13
|
+
- 🎁 Add `referenceDate` prop on pickers (#9991) @flaviendelangle
|
|
14
|
+
Find out more about this feature in the [documentation section](https://mui.com/x/react-date-pickers/base-concepts/#reference-date-when-no-value-is-defined).
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@v6.12.1`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add a recipe showing how to render components outside of the grid (#10121) @DanailH
|
|
23
|
+
- [DataGrid] Fix `valueFormatter` being persisted on column type change (#10041) @cherniavskii
|
|
24
|
+
- [DataGrid] Fix error when keyboard navigating an empty grid (#10081) @romgrk
|
|
25
|
+
- [DataGrid] Replace timeout with `useTimeout` (#10179) @romgrk
|
|
26
|
+
|
|
27
|
+
#### `@mui/x-data-grid-pro@v6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
28
|
+
|
|
29
|
+
Same changes as in `@mui/x-data-grid@v6.12.1`.
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-data-grid-premium@v6.12.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
32
|
+
|
|
33
|
+
Same changes as in `@mui/x-data-grid-pro@v6.12.1`.
|
|
34
|
+
|
|
35
|
+
### Date Pickers
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-date-pickers@v6.12.1`
|
|
38
|
+
|
|
39
|
+
- [pickers] Add `referenceDate` on picker components (and `DateRangeCalendar`) (#9991) @flaviendelangle
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers-pro@v6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-date-pickers@v6.12.1`.
|
|
44
|
+
|
|
45
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.9`
|
|
46
|
+
|
|
47
|
+
- [charts] Move the line item highligh into a dedicated component (#10117) @alexfauquette
|
|
48
|
+
|
|
49
|
+
### Docs
|
|
50
|
+
|
|
51
|
+
- [docs] Add `DemoContainer` and `DemoItem` JSDoc (#10186) @LukasTy
|
|
52
|
+
- [docs] Add link to `custom layout` page (#10184) @LukasTy
|
|
53
|
+
- [docs] Add tree view nav item (#10181) @LukasTy
|
|
54
|
+
- [docs] Fix wrong chart tooltip reference (#10169) @oliviertassinari
|
|
55
|
+
- [docs] Improve chart SEO (#10170) @oliviertassinari
|
|
56
|
+
- [docs] Precise expired license key condition (#10165) @oliviertassinari
|
|
57
|
+
- [docs] Reorganize the page menu (#10139) @alexfauquette
|
|
58
|
+
|
|
59
|
+
### Core
|
|
60
|
+
|
|
61
|
+
- [core] Update babel configs (#9713) @romgrk
|
|
62
|
+
- [test] Disable false positive e2e test on webkit (#10187) @LukasTy
|
|
63
|
+
|
|
64
|
+
## 6.12.0
|
|
65
|
+
|
|
66
|
+
_Aug 25, 2023_
|
|
67
|
+
|
|
68
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
69
|
+
|
|
70
|
+
- 📊 Support horizontal bar chart
|
|
71
|
+
- 💫 Improved animations on Android devices
|
|
72
|
+
- 🌍 Improve Ukrainian (uk-UA) locale on the data grid
|
|
73
|
+
- 🐞 Bugfixes
|
|
74
|
+
- 📚 Documentation improvements
|
|
75
|
+
|
|
76
|
+
### Data Grid
|
|
77
|
+
|
|
78
|
+
#### `@mui/x-data-grid@v6.12.0`
|
|
79
|
+
|
|
80
|
+
- [DataGrid] Allow print export for more than 100 rows (#10045) @MBilalShafi
|
|
81
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#10076) @mkundos
|
|
82
|
+
|
|
83
|
+
#### `@mui/x-data-grid-pro@v6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
84
|
+
|
|
85
|
+
Same changes as in `@mui/x-data-grid@v6.12.0`.
|
|
86
|
+
|
|
87
|
+
#### `@mui/x-data-grid-premium@v6.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
88
|
+
|
|
89
|
+
Same changes as in `@mui/x-data-grid-pro@v6.12.0`.
|
|
90
|
+
|
|
91
|
+
### Date Pickers
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-date-pickers@v6.12.0`
|
|
94
|
+
|
|
95
|
+
- [fields] Do not clamp day of month (#9973) @flaviendelangle
|
|
96
|
+
- [pickers] Fix `ownerState` on `desktopPaper` slot props (#10103) @LukasTy
|
|
97
|
+
- [pickers] Fix to `transform-origin` when popper opens to `top` (#10069) @LukasTy
|
|
98
|
+
- [pickers] Fix `YearCalendar` scrolling (#10135) @LukasTy
|
|
99
|
+
- [pickers] Improve the typing of the adapter `dateWithTimezone` method (#10029) @flaviendelangle
|
|
100
|
+
- [pickers] Make `openPickerButton` toggle picker (#10109) @noraleonte
|
|
101
|
+
- [pickers] Update `reduceAnimations` default rule (#9864) @LukasTy
|
|
102
|
+
|
|
103
|
+
#### `@mui/x-date-pickers-pro@v6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
104
|
+
|
|
105
|
+
Same changes as in `@mui/x-date-pickers@v6.12.0`.
|
|
106
|
+
|
|
107
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.8`
|
|
108
|
+
|
|
109
|
+
- [charts] Fix import issue (#10111) @alexfauquette
|
|
110
|
+
- [charts] Fix `slotProps` propagation (#10105) @alexfauquette
|
|
111
|
+
- [charts] Support horizontal bar chart (#9992) @alexfauquette
|
|
112
|
+
|
|
113
|
+
### Docs
|
|
114
|
+
|
|
115
|
+
- [docs] Address charts docs feedback (#10119) @alexfauquette
|
|
116
|
+
- [docs] Capitalization convention pickers @oliviertassinari
|
|
117
|
+
- [docs] Fix a11y issue on plan links (#10026) @oliviertassinari
|
|
118
|
+
- [docs] Fix some charts horizontal overflow on mobile devices (#10082) @cupok
|
|
119
|
+
- [docs] Fix typo in quick filter @oliviertassinari
|
|
120
|
+
- [docs] Fix typo in the timezone page (#10073) @flaviendelangle
|
|
121
|
+
|
|
122
|
+
### Core
|
|
123
|
+
|
|
124
|
+
- [core] Bump monorepo (#10129) @LukasTy
|
|
125
|
+
- [core] Document a bit `useLazyRef` @oliviertassinari
|
|
126
|
+
- [core] Enable strict type checking options in the top-level tsconfig (#9925) @cherniavskii
|
|
127
|
+
- [core] Increase global e2e timeout (#10134) @LukasTy
|
|
128
|
+
- [core] Remove outdated link (#10125) @oliviertassinari
|
|
129
|
+
- [core] Update `no-response` workflow (#10102) @DanailH
|
|
130
|
+
|
|
6
131
|
## 6.11.2
|
|
7
132
|
|
|
8
133
|
_Aug 17, 2023_
|
|
@@ -26,11 +151,11 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
26
151
|
- [l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales (#9999) @MyNameIsTakenOMG
|
|
27
152
|
- [l10n] Improve Spanish (es-ES) locale (#10037) @Macampu420
|
|
28
153
|
|
|
29
|
-
#### `@mui/x-data-grid-pro@v6.11.2` [](https://mui.com/r/x-pro-svg-link)
|
|
154
|
+
#### `@mui/x-data-grid-pro@v6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
30
155
|
|
|
31
156
|
Same changes as in `@mui/x-data-grid@v6.11.2`.
|
|
32
157
|
|
|
33
|
-
#### `@mui/x-data-grid-premium@v6.11.2` [](https://mui.com/r/x-premium-svg-link)
|
|
158
|
+
#### `@mui/x-data-grid-premium@v6.11.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
34
159
|
|
|
35
160
|
Same changes as in `@mui/x-data-grid-pro@v6.11.2`.
|
|
36
161
|
|
|
@@ -43,7 +168,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.2`.
|
|
|
43
168
|
- [pickers] Pass the shortcut information in the `onChange` context (#9985) @flaviendelangle
|
|
44
169
|
- [pickers] Replace `Grid` toolbar component with a styled `div` (#10052) @LukasTy
|
|
45
170
|
|
|
46
|
-
#### `@mui/x-date-pickers-pro@v6.11.2` [](https://mui.com/r/x-pro-svg-link)
|
|
171
|
+
#### `@mui/x-date-pickers-pro@v6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
47
172
|
|
|
48
173
|
Same changes as in `@mui/x-date-pickers@v6.11.2`.
|
|
49
174
|
|
|
@@ -77,11 +202,11 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
77
202
|
|
|
78
203
|
- [DataGrid] `getCellAggregationResult`: Handle `null` `rowNode` case (#9915) @romgrk
|
|
79
204
|
|
|
80
|
-
#### `@mui/x-data-grid-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link)
|
|
205
|
+
#### `@mui/x-data-grid-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
81
206
|
|
|
82
207
|
Same changes as in `@mui/x-data-grid@6.11.1`.
|
|
83
208
|
|
|
84
|
-
#### `@mui/x-data-grid-premium@6.11.1` [](https://mui.com/r/x-premium-svg-link)
|
|
209
|
+
#### `@mui/x-data-grid-premium@6.11.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
85
210
|
|
|
86
211
|
Same changes as in `@mui/x-data-grid-pro@6.11.1`.
|
|
87
212
|
|
|
@@ -96,7 +221,7 @@ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
|
|
|
96
221
|
- [l10n] Improve Finnish (fi-FI) locale (#9795) @kurkle
|
|
97
222
|
- [l10n] Improve Icelandic (is-IS) locale (#9639) @magnimarels
|
|
98
223
|
|
|
99
|
-
#### `@mui/x-date-pickers-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link)
|
|
224
|
+
#### `@mui/x-date-pickers-pro@6.11.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
100
225
|
|
|
101
226
|
Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
102
227
|
|
|
@@ -146,11 +271,11 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
146
271
|
- [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
|
|
147
272
|
- [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
|
|
148
273
|
|
|
149
|
-
#### `@mui/x-data-grid-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link)
|
|
274
|
+
#### `@mui/x-data-grid-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
150
275
|
|
|
151
276
|
Same changes as in `@mui/x-data-grid@v6.11.0`.
|
|
152
277
|
|
|
153
|
-
#### `@mui/x-data-grid-premium@v6.11.0` [](https://mui.com/r/x-premium-svg-link)
|
|
278
|
+
#### `@mui/x-data-grid-premium@v6.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
154
279
|
|
|
155
280
|
Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
|
|
156
281
|
|
|
@@ -169,7 +294,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
|
|
|
169
294
|
- [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
|
|
170
295
|
- [pickers] Use device motion reduction preference (#9823) @LukasTy
|
|
171
296
|
|
|
172
|
-
#### `@mui/x-date-pickers-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link)
|
|
297
|
+
#### `@mui/x-date-pickers-pro@v6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
173
298
|
|
|
174
299
|
Same changes as in `@mui/x-date-pickers@v6.11.0`.
|
|
175
300
|
|
|
@@ -232,11 +357,11 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
232
357
|
- [DataGrid] Keep focused cell in the DOM (#7357) @yaredtsy
|
|
233
358
|
- [l10n] Improve Finnish (fi-FI) locale (#9746) @sambbaahh
|
|
234
359
|
|
|
235
|
-
#### `@mui/x-data-grid-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link)
|
|
360
|
+
#### `@mui/x-data-grid-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
236
361
|
|
|
237
362
|
Same changes as in `@mui/x-data-grid@v6.10.2`.
|
|
238
363
|
|
|
239
|
-
#### `@mui/x-data-grid-premium@v6.10.2` [](https://mui.com/r/x-premium-svg-link)
|
|
364
|
+
#### `@mui/x-data-grid-premium@v6.10.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
240
365
|
|
|
241
366
|
Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
|
|
242
367
|
|
|
@@ -248,7 +373,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
|
|
|
248
373
|
|
|
249
374
|
- [pickers] Remove the `endOfDate` from `DigitalClock` timeOptions (#9800) @noraleonte
|
|
250
375
|
|
|
251
|
-
#### `@mui/x-date-pickers-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link)
|
|
376
|
+
#### `@mui/x-date-pickers-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
252
377
|
|
|
253
378
|
Same changes as in `@mui/x-date-pickers@v6.10.2`.
|
|
254
379
|
|
|
@@ -300,14 +425,14 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
300
425
|
- [DataGrid] Update focused cell on page change via keyboard (#9203) @m4theushw
|
|
301
426
|
- [DataGrid] Wait for remote stylesheets to load before print (#9665) @cherniavskii
|
|
302
427
|
|
|
303
|
-
#### `@mui/x-data-grid-pro@v6.10.1` [](https://mui.com/r/x-pro-svg-link)
|
|
428
|
+
#### `@mui/x-data-grid-pro@v6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
304
429
|
|
|
305
430
|
Same changes as in `@mui/x-data-grid@v6.10.1`, plus:
|
|
306
431
|
|
|
307
432
|
- [DataGridPro] Improve tree data performance (#9682) @cherniavskii
|
|
308
433
|
- [DataGridPro] Prevent affecting cells from child DataGrid when resizing a column (#9670) @m4theushw
|
|
309
434
|
|
|
310
|
-
#### `@mui/x-data-grid-premium@v6.10.1` [](https://mui.com/r/x-premium-svg-link)
|
|
435
|
+
#### `@mui/x-data-grid-premium@v6.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
311
436
|
|
|
312
437
|
Same changes as in `@mui/x-data-grid-pro@v6.10.1`.
|
|
313
438
|
|
|
@@ -318,7 +443,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.10.1`.
|
|
|
318
443
|
- [fields] Fix `format` and `value` update order (#9715) @LukasTy
|
|
319
444
|
- [pickers] Remove `require` usage in comment (#9675) @LukasTy
|
|
320
445
|
|
|
321
|
-
#### `@mui/x-date-pickers-pro@v6.10.1` [](https://mui.com/r/x-pro-svg-link)
|
|
446
|
+
#### `@mui/x-date-pickers-pro@v6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
322
447
|
|
|
323
448
|
Same changes as in `@mui/x-date-pickers@v6.10.1`.
|
|
324
449
|
|
|
@@ -369,11 +494,11 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
369
494
|
- [DataGrid] Make `rowExpansionChange` event public (#9611) @MBilalShafi
|
|
370
495
|
- [l10n] Improve Polish (pl-PL) locale (#9625) @ch1llysense
|
|
371
496
|
|
|
372
|
-
#### `@mui/x-data-grid-pro@6.10.0` [](https://mui.com/r/x-pro-svg-link)
|
|
497
|
+
#### `@mui/x-data-grid-pro@6.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
373
498
|
|
|
374
499
|
Same changes as in `@mui/x-data-grid@6.10.0`.
|
|
375
500
|
|
|
376
|
-
#### `@mui/x-data-grid-premium@6.10.0` [](https://mui.com/r/x-premium-svg-link)
|
|
501
|
+
#### `@mui/x-data-grid-premium@6.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
377
502
|
|
|
378
503
|
Same changes as in `@mui/x-data-grid-pro@6.10.0`.
|
|
379
504
|
|
|
@@ -384,7 +509,7 @@ Same changes as in `@mui/x-data-grid-pro@6.10.0`.
|
|
|
384
509
|
- [pickers] Fix date calendar issues (#9652) @LukasTy
|
|
385
510
|
- [l10n] Improve Norwegian (nb-NO) locale (#9608) @JosteinBrevik
|
|
386
511
|
|
|
387
|
-
#### `@mui/x-date-pickers-pro@6.10.0` [](https://mui.com/r/x-pro-svg-link)
|
|
512
|
+
#### `@mui/x-date-pickers-pro@6.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
388
513
|
|
|
389
514
|
Same changes as in `@mui/x-date-pickers@6.10.0`.
|
|
390
515
|
|
|
@@ -437,11 +562,11 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
437
562
|
- [DataGrid] Correctly reflect `TablePagination`'s `rowsPerPageOptions` shape to `pageSizeOptions` (#9438) @burakkgunduzz
|
|
438
563
|
- [l10n] Improve Spanish (es-ES) locale (#9500) @fufex
|
|
439
564
|
|
|
440
|
-
#### `@mui/x-data-grid-pro@6.9.2` [](https://mui.com/r/x-pro-svg-link)
|
|
565
|
+
#### `@mui/x-data-grid-pro@6.9.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
441
566
|
|
|
442
567
|
Same changes as in `@mui/x-data-grid@6.9.2`.
|
|
443
568
|
|
|
444
|
-
#### `@mui/x-data-grid-premium@6.9.2` [](https://mui.com/r/x-premium-svg-link)
|
|
569
|
+
#### `@mui/x-data-grid-premium@6.9.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
445
570
|
|
|
446
571
|
Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
|
|
447
572
|
|
|
@@ -454,7 +579,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.2`, plus:
|
|
|
454
579
|
- [pickers] Forward digital clock classes (#9555) @YoonjiJang
|
|
455
580
|
- [pickers] Rename `internal` folder to `internals` on `@mui/x-date-picker-pro` (#9571) @flaviendelangle
|
|
456
581
|
|
|
457
|
-
#### `@mui/x-date-pickers-pro@6.9.2` [](https://mui.com/r/x-pro-svg-link)
|
|
582
|
+
#### `@mui/x-date-pickers-pro@6.9.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
458
583
|
|
|
459
584
|
Same changes as in `@mui/x-date-pickers@6.9.2`.
|
|
460
585
|
|
|
@@ -502,14 +627,14 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
502
627
|
- [DataGrid] Fix `Maximum call stack size exceeded` error when using fractional width (#9516) @cherniavskii
|
|
503
628
|
- [l10n] Improve Romanian (ro-RO) and Hungarian (hu-HU) translations (#9436) @noraleonte
|
|
504
629
|
|
|
505
|
-
#### `@mui/x-data-grid-pro@6.9.1` [](https://mui.com/r/x-pro-svg-link)
|
|
630
|
+
#### `@mui/x-data-grid-pro@6.9.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
506
631
|
|
|
507
632
|
Same changes as in `@mui/x-data-grid@6.9.1`, plus:
|
|
508
633
|
|
|
509
634
|
- [DataGridPro] Don't throw error in column pinning (#9507) @romgrk
|
|
510
635
|
- [DataGridPro] Fix bug with `checkboxSelection` and treeData/grouping (#9418) @romgrk
|
|
511
636
|
|
|
512
|
-
#### `@mui/x-data-grid-premium@6.9.1` [](https://mui.com/r/x-premium-svg-link)
|
|
637
|
+
#### `@mui/x-data-grid-premium@6.9.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
513
638
|
|
|
514
639
|
Same changes as in `@mui/x-data-grid-pro@6.9.1`.
|
|
515
640
|
|
|
@@ -523,7 +648,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.1`.
|
|
|
523
648
|
- [l10n] Add Chinese (Hong Kong) (zh-HK) locale (#9468) @samchiu90
|
|
524
649
|
- [l10n] Improve Romanian (ro-RO) translations (#9436) @noraleonte
|
|
525
650
|
|
|
526
|
-
#### `@mui/x-date-pickers-pro@6.9.1` [](https://mui.com/r/x-pro-svg-link)
|
|
651
|
+
#### `@mui/x-date-pickers-pro@6.9.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
527
652
|
|
|
528
653
|
Same changes as in `@mui/x-date-pickers@6.9.1`.
|
|
529
654
|
|
|
@@ -587,11 +712,11 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
587
712
|
- [DataGrid] Use container dimensions from `getComputedStyle` (#9236) @m4theushw
|
|
588
713
|
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#9404) @julioAz
|
|
589
714
|
|
|
590
|
-
#### `@mui/x-data-grid-pro@6.9.0` [](https://mui.com/r/x-pro-svg-link)
|
|
715
|
+
#### `@mui/x-data-grid-pro@6.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
591
716
|
|
|
592
717
|
Same changes as in `@mui/x-data-grid@6.9.0`.
|
|
593
718
|
|
|
594
|
-
#### `@mui/x-data-grid-premium@6.9.0` [](https://mui.com/r/x-premium-svg-link)
|
|
719
|
+
#### `@mui/x-data-grid-premium@6.9.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
595
720
|
|
|
596
721
|
Same changes as in `@mui/x-data-grid-pro@6.9.0`.
|
|
597
722
|
|
|
@@ -607,7 +732,7 @@ Same changes as in `@mui/x-data-grid-pro@6.9.0`.
|
|
|
607
732
|
- [pickers] Reduce date range calendar vertical border width (#9368) @oliviertassinari
|
|
608
733
|
- [pickers] Reset fields internal state when pasting value (#9385) @alexfauquette
|
|
609
734
|
|
|
610
|
-
#### `@mui/x-date-pickers-pro@6.9.0` [](https://mui.com/r/x-pro-svg-link)
|
|
735
|
+
#### `@mui/x-date-pickers-pro@6.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
611
736
|
|
|
612
737
|
Same changes as in `@mui/x-date-pickers@6.9.0`.
|
|
613
738
|
|
|
@@ -663,11 +788,11 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
663
788
|
- [DataGrid] Scroll performance improvements (#9037) @romgrk
|
|
664
789
|
- [l10n] Improve Greek (el-GR) locale (#9292) @clytras
|
|
665
790
|
|
|
666
|
-
#### `@mui/x-data-grid-pro@6.8.0` [](https://mui.com/r/x-pro-svg-link)
|
|
791
|
+
#### `@mui/x-data-grid-pro@6.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
667
792
|
|
|
668
793
|
Same changes as in `@mui/x-data-grid@6.8.0`.
|
|
669
794
|
|
|
670
|
-
#### `@mui/x-data-grid-premium@6.8.0` [](https://mui.com/r/x-premium-svg-link)
|
|
795
|
+
#### `@mui/x-data-grid-premium@6.8.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
671
796
|
|
|
672
797
|
Same changes as in `@mui/x-data-grid-pro@6.8.0`.
|
|
673
798
|
|
|
@@ -680,7 +805,7 @@ Same changes as in `@mui/x-data-grid-pro@6.8.0`.
|
|
|
680
805
|
- [pickers] Close the calendar when a shortcut is selected (#9080) @flaviendelangle
|
|
681
806
|
- [pickers] Fix disabling for digital clock (#9300) @alexfauquette
|
|
682
807
|
|
|
683
|
-
#### `@mui/x-date-pickers-pro@6.8.0` [](https://mui.com/r/x-pro-svg-link)
|
|
808
|
+
#### `@mui/x-date-pickers-pro@6.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
684
809
|
|
|
685
810
|
Same changes as in `@mui/x-date-pickers@6.8.0`.
|
|
686
811
|
|
|
@@ -756,13 +881,13 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
756
881
|
- [l10n] Improve German (de-DE) locale (#9259) @ximex
|
|
757
882
|
- [l10n] Improve Turkish (tr-TR) locale (#9237) @MCErtan
|
|
758
883
|
|
|
759
|
-
#### `@mui/x-data-grid-pro@6.7.0` [](https://mui.com/r/x-pro-svg-link)
|
|
884
|
+
#### `@mui/x-data-grid-pro@6.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
760
885
|
|
|
761
886
|
Same changes as in `@mui/x-data-grid@6.7.0`, plus:
|
|
762
887
|
|
|
763
888
|
- [DataGridPro] Improve header filter menu visuals (#9181) @MBilalShafi
|
|
764
889
|
|
|
765
|
-
#### `@mui/x-data-grid-premium@6.7.0` [](https://mui.com/r/x-premium-svg-link)
|
|
890
|
+
#### `@mui/x-data-grid-premium@6.7.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
766
891
|
|
|
767
892
|
Same changes as in `@mui/x-data-grid-pro@6.7.0`, plus:
|
|
768
893
|
|
|
@@ -776,7 +901,7 @@ Same changes as in `@mui/x-data-grid-pro@6.7.0`, plus:
|
|
|
776
901
|
- [l10n] Improve German (de-DE) locale (#9258) @ximex
|
|
777
902
|
- [pickers] Apply dynamic default format depending on views for all desktop and mobile pickers (#9126) @flaviendelangle
|
|
778
903
|
|
|
779
|
-
#### `@mui/x-date-pickers-pro@6.7.0` [](https://mui.com/r/x-pro-svg-link)
|
|
904
|
+
#### `@mui/x-date-pickers-pro@6.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
780
905
|
|
|
781
906
|
Same changes as in `@mui/x-date-pickers@6.7.0`, plus:
|
|
782
907
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["value", "defaultValue", "onChange", "className", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "defaultCalendarMonth", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "components", "componentsProps", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone"],
|
|
3
|
+
const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "defaultCalendarMonth", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "components", "componentsProps", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone"],
|
|
4
4
|
_excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -117,6 +117,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
117
117
|
const {
|
|
118
118
|
value: valueProp,
|
|
119
119
|
defaultValue,
|
|
120
|
+
referenceDate,
|
|
120
121
|
onChange,
|
|
121
122
|
className,
|
|
122
123
|
disableFuture,
|
|
@@ -249,6 +250,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
249
250
|
onMonthSwitchingAnimationEnd
|
|
250
251
|
} = useCalendarState({
|
|
251
252
|
value: value[0] || value[1],
|
|
253
|
+
referenceDate,
|
|
252
254
|
defaultCalendarMonth,
|
|
253
255
|
disableFuture,
|
|
254
256
|
disablePast,
|
|
@@ -611,9 +613,14 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
611
613
|
readOnly: PropTypes.bool,
|
|
612
614
|
/**
|
|
613
615
|
* If `true`, disable heavy animations.
|
|
614
|
-
* @default `@media(prefers-reduced-motion: reduce)` ||
|
|
616
|
+
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
615
617
|
*/
|
|
616
618
|
reduceAnimations: PropTypes.bool,
|
|
619
|
+
/**
|
|
620
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
621
|
+
* @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`.
|
|
622
|
+
*/
|
|
623
|
+
referenceDate: PropTypes.any,
|
|
617
624
|
/**
|
|
618
625
|
* Component displaying when passed `loading` true.
|
|
619
626
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -46,7 +46,7 @@ export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalend
|
|
|
46
46
|
readOnly?: boolean;
|
|
47
47
|
/**
|
|
48
48
|
* If `true`, disable heavy animations.
|
|
49
|
-
* @default `@media(prefers-reduced-motion: reduce)` ||
|
|
49
|
+
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
50
50
|
*/
|
|
51
51
|
reduceAnimations?: boolean;
|
|
52
52
|
/**
|
|
@@ -82,6 +82,11 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendar
|
|
|
82
82
|
* Used when the component is not controlled.
|
|
83
83
|
*/
|
|
84
84
|
defaultValue?: DateRange<TDate>;
|
|
85
|
+
/**
|
|
86
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
87
|
+
* @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`.
|
|
88
|
+
*/
|
|
89
|
+
referenceDate?: TDate;
|
|
85
90
|
/**
|
|
86
91
|
* Callback fired when the value changes.
|
|
87
92
|
* @template TDate
|
|
@@ -252,9 +252,14 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
252
252
|
readOnly: PropTypes.bool,
|
|
253
253
|
/**
|
|
254
254
|
* If `true`, disable heavy animations.
|
|
255
|
-
* @default `@media(prefers-reduced-motion: reduce)` ||
|
|
255
|
+
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
256
256
|
*/
|
|
257
257
|
reduceAnimations: PropTypes.bool,
|
|
258
|
+
/**
|
|
259
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
260
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
261
|
+
*/
|
|
262
|
+
referenceDate: PropTypes.any,
|
|
258
263
|
/**
|
|
259
264
|
* Component displaying when passed `loading` true.
|
|
260
265
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -261,9 +261,14 @@ DesktopDateRangePicker.propTypes = {
|
|
|
261
261
|
readOnly: PropTypes.bool,
|
|
262
262
|
/**
|
|
263
263
|
* If `true`, disable heavy animations.
|
|
264
|
-
* @default `@media(prefers-reduced-motion: reduce)` ||
|
|
264
|
+
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
265
265
|
*/
|
|
266
266
|
reduceAnimations: PropTypes.bool,
|
|
267
|
+
/**
|
|
268
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
269
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
270
|
+
*/
|
|
271
|
+
referenceDate: PropTypes.any,
|
|
267
272
|
/**
|
|
268
273
|
* Component displaying when passed `loading` true.
|
|
269
274
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -261,9 +261,14 @@ MobileDateRangePicker.propTypes = {
|
|
|
261
261
|
readOnly: PropTypes.bool,
|
|
262
262
|
/**
|
|
263
263
|
* If `true`, disable heavy animations.
|
|
264
|
-
* @default `@media(prefers-reduced-motion: reduce)` ||
|
|
264
|
+
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
265
265
|
*/
|
|
266
266
|
reduceAnimations: PropTypes.bool,
|
|
267
|
+
/**
|
|
268
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
269
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
270
|
+
*/
|
|
271
|
+
referenceDate: PropTypes.any,
|
|
267
272
|
/**
|
|
268
273
|
* Component displaying when passed `loading` true.
|
|
269
274
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -209,10 +209,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
209
209
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
210
210
|
*/
|
|
211
211
|
onChange: PropTypes.func,
|
|
212
|
-
/**
|
|
213
|
-
* @ignore
|
|
214
|
-
*/
|
|
215
|
-
onClick: PropTypes.func,
|
|
216
212
|
/**
|
|
217
213
|
* Callback fired when the error associated to the current value changes.
|
|
218
214
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -242,10 +242,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
242
242
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
243
243
|
*/
|
|
244
244
|
onChange: PropTypes.func,
|
|
245
|
-
/**
|
|
246
|
-
* @ignore
|
|
247
|
-
*/
|
|
248
|
-
onClick: PropTypes.func,
|
|
249
245
|
/**
|
|
250
246
|
* Callback fired when the error associated to the current value changes.
|
|
251
247
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -226,10 +226,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
226
226
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
227
227
|
*/
|
|
228
228
|
onChange: PropTypes.func,
|
|
229
|
-
/**
|
|
230
|
-
* @ignore
|
|
231
|
-
*/
|
|
232
|
-
onClick: PropTypes.func,
|
|
233
229
|
/**
|
|
234
230
|
* Callback fired when the error associated to the current value changes.
|
|
235
231
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -211,9 +211,14 @@ StaticDateRangePicker.propTypes = {
|
|
|
211
211
|
readOnly: PropTypes.bool,
|
|
212
212
|
/**
|
|
213
213
|
* If `true`, disable heavy animations.
|
|
214
|
-
* @default `@media(prefers-reduced-motion: reduce)` ||
|
|
214
|
+
* @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13
|
|
215
215
|
*/
|
|
216
216
|
reduceAnimations: PropTypes.bool,
|
|
217
|
+
/**
|
|
218
|
+
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
219
|
+
* @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.
|
|
220
|
+
*/
|
|
221
|
+
referenceDate: PropTypes.any,
|
|
217
222
|
/**
|
|
218
223
|
* Component displaying when passed `loading` true.
|
|
219
224
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -10,4 +10,4 @@ export interface DateRangeViewRendererProps<TDate, TView extends DateOrTimeViewW
|
|
|
10
10
|
* We don't pass all the props down to `DateRangeCalendar`,
|
|
11
11
|
* because otherwise some unwanted props would be passed to the HTML element.
|
|
12
12
|
*/
|
|
13
|
-
export declare const renderDateRangeViewCalendar: <TDate extends unknown>({ value, defaultValue, onChange, className, classes, disableFuture, disablePast, minDate, maxDate, shouldDisableDate, reduceAnimations, onMonthChange, defaultCalendarMonth, rangePosition, defaultRangePosition, onRangePositionChange, calendars, currentMonthCalendarPosition, components, componentsProps, slots, slotProps, loading, renderLoading, disableHighlightToday, readOnly, disabled, showDaysOutsideCurrentMonth, dayOfWeekFormatter, disableAutoMonthSwitching, sx, autoFocus, fixedWeekNumber, disableDragEditing, displayWeekNumber, timezone, }: DateRangeViewRendererProps<TDate, any>) => React.JSX.Element;
|
|
13
|
+
export declare const renderDateRangeViewCalendar: <TDate extends unknown>({ value, defaultValue, referenceDate, onChange, className, classes, disableFuture, disablePast, minDate, maxDate, shouldDisableDate, reduceAnimations, onMonthChange, defaultCalendarMonth, rangePosition, defaultRangePosition, onRangePositionChange, calendars, currentMonthCalendarPosition, components, componentsProps, slots, slotProps, loading, renderLoading, disableHighlightToday, readOnly, disabled, showDaysOutsideCurrentMonth, dayOfWeekFormatter, disableAutoMonthSwitching, sx, autoFocus, fixedWeekNumber, disableDragEditing, displayWeekNumber, timezone, }: DateRangeViewRendererProps<TDate, any>) => React.JSX.Element;
|
|
@@ -8,6 +8,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
8
|
export const renderDateRangeViewCalendar = ({
|
|
9
9
|
value,
|
|
10
10
|
defaultValue,
|
|
11
|
+
referenceDate,
|
|
11
12
|
onChange,
|
|
12
13
|
className,
|
|
13
14
|
classes,
|
|
@@ -45,6 +46,7 @@ export const renderDateRangeViewCalendar = ({
|
|
|
45
46
|
}) => /*#__PURE__*/_jsx(DateRangeCalendar, {
|
|
46
47
|
value: value,
|
|
47
48
|
defaultValue: defaultValue,
|
|
49
|
+
referenceDate: referenceDate,
|
|
48
50
|
onChange: onChange,
|
|
49
51
|
className: className,
|
|
50
52
|
classes: classes,
|
package/index.js
CHANGED
|
@@ -15,7 +15,7 @@ export interface DesktopRangeOnlyPickerProps<TDate> extends BaseNonStaticPickerP
|
|
|
15
15
|
*/
|
|
16
16
|
autoFocus?: boolean;
|
|
17
17
|
}
|
|
18
|
-
export interface UseDesktopRangePickerProps<TDate, TView extends DateOrTimeViewWithMeridiem, TError, TExternalProps extends UsePickerViewsProps<any, TView, any, any>> extends DesktopRangeOnlyPickerProps<TDate>, BasePickerProps<DateRange<TDate>, TDate, TView, TError, TExternalProps, DesktopRangePickerAdditionalViewProps> {
|
|
18
|
+
export interface UseDesktopRangePickerProps<TDate, TView extends DateOrTimeViewWithMeridiem, TError, TExternalProps extends UsePickerViewsProps<any, any, TView, any, any>> extends DesktopRangeOnlyPickerProps<TDate>, BasePickerProps<DateRange<TDate>, TDate, TView, TError, TExternalProps, DesktopRangePickerAdditionalViewProps> {
|
|
19
19
|
/**
|
|
20
20
|
* Overridable component slots.
|
|
21
21
|
* @default {}
|
|
@@ -30,7 +30,7 @@ export interface RangePickerFieldSlotsComponent {
|
|
|
30
30
|
TextField?: React.ElementType<TextFieldProps>;
|
|
31
31
|
}
|
|
32
32
|
export interface RangePickerFieldSlotsComponentsProps<TDate> {
|
|
33
|
-
field?: SlotComponentProps<React.ElementType<BaseMultiInputFieldProps<DateRange<TDate>, TDate, RangeFieldSection, unknown>>, {}, UsePickerProps<DateRange<TDate>, any, RangeFieldSection, any, any, any>>;
|
|
33
|
+
field?: SlotComponentProps<React.ElementType<BaseMultiInputFieldProps<DateRange<TDate>, TDate, RangeFieldSection, unknown>>, {}, UsePickerProps<DateRange<TDate>, TDate, any, RangeFieldSection, any, any, any>>;
|
|
34
34
|
fieldRoot?: SlotComponentProps<typeof Stack, {}, Record<string, any>>;
|
|
35
35
|
fieldSeparator?: SlotComponentProps<typeof Typography, {}, Record<string, any>>;
|
|
36
36
|
textField?: SlotComponentProps<typeof TextField, {}, UseDateRangeFieldProps<TDate> & {
|
|
@@ -28,10 +28,10 @@ const useMultiInputFieldSlotProps = ({
|
|
|
28
28
|
}
|
|
29
29
|
if (rangePosition === 'start') {
|
|
30
30
|
var _startRef$current;
|
|
31
|
-
(_startRef$current = startRef.current) == null
|
|
31
|
+
(_startRef$current = startRef.current) == null || _startRef$current.focus();
|
|
32
32
|
} else if (rangePosition === 'end') {
|
|
33
33
|
var _endRef$current;
|
|
34
|
-
(_endRef$current = endRef.current) == null
|
|
34
|
+
(_endRef$current = endRef.current) == null || _endRef$current.focus();
|
|
35
35
|
}
|
|
36
36
|
}, [rangePosition, open]);
|
|
37
37
|
const openRangeStartSelection = event => {
|
|
@@ -136,7 +136,7 @@ const useSingleInputFieldSlotProps = ({
|
|
|
136
136
|
if (!open) {
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
|
-
(_inputRef$current = inputRef.current) == null
|
|
139
|
+
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
140
140
|
}, [rangePosition, open]);
|
|
141
141
|
const updateRangePosition = () => {
|
|
142
142
|
var _singleInputFieldRef$;
|
|
@@ -153,7 +153,7 @@ const useSingleInputFieldSlotProps = ({
|
|
|
153
153
|
const handleSelectedSectionsChange = useEventCallback(selectedSections => {
|
|
154
154
|
var _fieldProps$onSelecte;
|
|
155
155
|
setTimeout(updateRangePosition);
|
|
156
|
-
(_fieldProps$onSelecte = fieldProps.onSelectedSectionsChange) == null
|
|
156
|
+
(_fieldProps$onSelecte = fieldProps.onSelectedSectionsChange) == null || _fieldProps$onSelecte.call(fieldProps, selectedSections);
|
|
157
157
|
});
|
|
158
158
|
const openPicker = event => {
|
|
159
159
|
event.stopPropagation();
|