@mui/x-date-pickers 7.0.0 → 7.1.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 +246 -4
- package/DateCalendar/DateCalendar.js +1 -1
- package/DateCalendar/DayCalendar.d.ts +1 -1
- package/DateField/DateField.js +1 -1
- package/DatePicker/DatePicker.js +1 -1
- package/DatePicker/DatePickerToolbar.js +11 -6
- package/DateTimeField/DateTimeField.js +2 -2
- package/DateTimeField/DateTimeField.types.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.js +2 -2
- package/DateTimePicker/DateTimePickerToolbar.js +97 -45
- package/DayCalendarSkeleton/DayCalendarSkeleton.js +12 -8
- package/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/DigitalClock/DigitalClock.js +15 -7
- package/MobileDatePicker/MobileDatePicker.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/MobileTimePicker/MobileTimePicker.js +1 -1
- package/MonthCalendar/PickersMonth.js +12 -6
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +13 -4
- package/PickersCalendarHeader/PickersCalendarHeader.js +13 -9
- package/PickersDay/PickersDay.js +30 -15
- package/PickersLayout/PickersLayout.js +31 -17
- package/PickersShortcuts/PickersShortcuts.d.ts +1 -1
- package/PickersShortcuts/PickersShortcuts.js +1 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +137 -72
- package/PickersTextField/PickersInput/PickersInput.js +76 -54
- package/PickersTextField/PickersInputBase/PickersInputBase.js +64 -24
- package/PickersTextField/PickersInputBase/PickersInputBase.types.d.ts +7 -0
- package/PickersTextField/PickersOutlinedInput/Outline.js +58 -41
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +31 -12
- package/README.md +1 -1
- package/StaticDatePicker/StaticDatePicker.js +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/StaticTimePicker/StaticTimePicker.js +1 -1
- package/TimeClock/Clock.js +48 -35
- package/TimeClock/ClockNumber.js +12 -7
- package/TimeClock/ClockPointer.js +23 -13
- package/TimeClock/TimeClock.js +1 -1
- package/TimeField/TimeField.js +2 -2
- package/TimeField/TimeField.types.d.ts +1 -1
- package/TimePicker/TimePicker.js +1 -1
- package/TimePicker/TimePickerToolbar.js +25 -16
- package/YearCalendar/PickersYear.js +12 -6
- package/index.js +1 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +11 -6
- package/internals/components/PickersPopper.js +12 -8
- package/internals/components/PickersToolbar.js +39 -18
- package/internals/hooks/useField/useField.js +4 -2
- package/internals/hooks/useField/useField.types.d.ts +2 -1
- package/internals/hooks/useField/useFieldV6TextField.js +10 -3
- package/internals/models/props/clock.d.ts +1 -1
- package/locales/faIR.js +7 -8
- package/locales/itIT.js +16 -20
- package/locales/ptBR.js +14 -17
- package/locales/ukUA.js +15 -19
- package/locales/zhHK.js +14 -17
- package/modern/DateCalendar/DateCalendar.js +1 -1
- package/modern/DateField/DateField.js +1 -1
- package/modern/DatePicker/DatePicker.js +1 -1
- package/modern/DatePicker/DatePickerToolbar.js +11 -6
- package/modern/DateTimeField/DateTimeField.js +2 -2
- package/modern/DateTimePicker/DateTimePicker.js +2 -2
- package/modern/DateTimePicker/DateTimePickerToolbar.js +97 -45
- package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +12 -8
- package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/modern/DigitalClock/DigitalClock.js +15 -7
- package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/modern/MobileTimePicker/MobileTimePicker.js +1 -1
- package/modern/MonthCalendar/PickersMonth.js +12 -6
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +13 -4
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +13 -9
- package/modern/PickersDay/PickersDay.js +30 -15
- package/modern/PickersLayout/PickersLayout.js +31 -17
- package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
- package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +137 -72
- package/modern/PickersTextField/PickersInput/PickersInput.js +76 -54
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +64 -24
- package/modern/PickersTextField/PickersOutlinedInput/Outline.js +58 -41
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +31 -12
- package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/modern/StaticTimePicker/StaticTimePicker.js +1 -1
- package/modern/TimeClock/Clock.js +48 -35
- package/modern/TimeClock/ClockNumber.js +12 -7
- package/modern/TimeClock/ClockPointer.js +23 -13
- package/modern/TimeClock/TimeClock.js +1 -1
- package/modern/TimeField/TimeField.js +2 -2
- package/modern/TimePicker/TimePicker.js +1 -1
- package/modern/TimePicker/TimePickerToolbar.js +25 -16
- package/modern/YearCalendar/PickersYear.js +12 -6
- package/modern/index.js +1 -1
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +11 -6
- package/modern/internals/components/PickersPopper.js +12 -8
- package/modern/internals/components/PickersToolbar.js +39 -18
- package/modern/internals/hooks/useField/useField.js +4 -2
- package/modern/internals/hooks/useField/useFieldV6TextField.js +10 -3
- package/modern/locales/faIR.js +7 -8
- package/modern/locales/itIT.js +16 -20
- package/modern/locales/ptBR.js +14 -17
- package/modern/locales/ukUA.js +15 -19
- package/modern/locales/zhHK.js +14 -17
- package/node/DateCalendar/DateCalendar.js +1 -1
- package/node/DateField/DateField.js +1 -1
- package/node/DatePicker/DatePicker.js +1 -1
- package/node/DatePicker/DatePickerToolbar.js +11 -6
- package/node/DateTimeField/DateTimeField.js +2 -2
- package/node/DateTimePicker/DateTimePicker.js +2 -2
- package/node/DateTimePicker/DateTimePickerToolbar.js +97 -45
- package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +12 -8
- package/node/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/node/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/node/DigitalClock/DigitalClock.js +15 -7
- package/node/MobileDatePicker/MobileDatePicker.js +1 -1
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/node/MobileTimePicker/MobileTimePicker.js +1 -1
- package/node/MonthCalendar/PickersMonth.js +12 -6
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +13 -4
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +13 -9
- package/node/PickersDay/PickersDay.js +30 -15
- package/node/PickersLayout/PickersLayout.js +31 -17
- package/node/PickersShortcuts/PickersShortcuts.js +1 -1
- package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +137 -72
- package/node/PickersTextField/PickersInput/PickersInput.js +76 -54
- package/node/PickersTextField/PickersInputBase/PickersInputBase.js +64 -24
- package/node/PickersTextField/PickersOutlinedInput/Outline.js +58 -41
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +31 -12
- package/node/StaticDatePicker/StaticDatePicker.js +1 -1
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/node/StaticTimePicker/StaticTimePicker.js +1 -1
- package/node/TimeClock/Clock.js +48 -35
- package/node/TimeClock/ClockNumber.js +12 -7
- package/node/TimeClock/ClockPointer.js +23 -13
- package/node/TimeClock/TimeClock.js +1 -1
- package/node/TimeField/TimeField.js +2 -2
- package/node/TimePicker/TimePicker.js +1 -1
- package/node/TimePicker/TimePickerToolbar.js +25 -16
- package/node/YearCalendar/PickersYear.js +12 -6
- package/node/index.js +1 -1
- package/node/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +11 -6
- package/node/internals/components/PickersPopper.js +12 -8
- package/node/internals/components/PickersToolbar.js +39 -18
- package/node/internals/hooks/useField/useField.js +4 -2
- package/node/internals/hooks/useField/useFieldV6TextField.js +10 -3
- package/node/locales/faIR.js +7 -8
- package/node/locales/itIT.js +16 -20
- package/node/locales/ptBR.js +14 -17
- package/node/locales/ukUA.js +15 -19
- package/node/locales/zhHK.js +14 -17
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,179 @@
|
|
|
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
|
+
## 7.1.1
|
|
7
|
+
|
|
8
|
+
_Apr 5, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Add `setItemExpansion` Tree View API method (#12595) @flaviendelangle
|
|
13
|
+
- 🌍 Improve Persian (fa-IR), Portuguese (pt-BR), and Spanish (es-ES) locale on the Data Grid
|
|
14
|
+
- 🌍 Improve Persian (fa-IR), Portuguese (pt-BR), and Ukrainian (uk-UA) locale on the Pickers
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@7.1.1`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Allow higher packages' props to be used in MIT (#12365) @MBilalShafi
|
|
23
|
+
- [DataGrid] Fix RTL mode (#12583) @romgrk
|
|
24
|
+
- [DataGrid] Fix `ColDefChangesGridNoSnap` demo crash (#12663) @MBilalShafi
|
|
25
|
+
- [DataGrid] Fix server-side filter demo not working (#12662) @MBilalShafi
|
|
26
|
+
- [DataGrid] Log error if `rowCount` is used with client-side pagination (#12448) @michelengelen
|
|
27
|
+
- [DataGrid] Remove `GridFormatterParams` completely (#12660) @romgrk
|
|
28
|
+
- [DataGrid] Restore main slot (#12657) @romgrk
|
|
29
|
+
- [l10n] Improve Persian (fa-IR) locale (#12630) @amirhosseinzf
|
|
30
|
+
- [l10n] Improve Portuguese (pt-BR) locale (#12618) @hugoalkimim
|
|
31
|
+
- [l10n] Improve Spanish (es-ES) locale (#12606) @aitor40
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@7.1.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@7.1.1`.
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@7.1.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@7.1.1`.
|
|
40
|
+
|
|
41
|
+
### Date and Time Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@7.1.1`
|
|
44
|
+
|
|
45
|
+
- [fields] Fix `readOnly` behavior (#12609) @LukasTy
|
|
46
|
+
- [l10n] Improve Persian (fa-IR) locale (#12632) @misafari
|
|
47
|
+
- [l10n] Improve Portuguese (pt-BR) locale (#12613) @cnHealth
|
|
48
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#12627) @alexkobylansky
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-date-pickers-pro@7.1.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
51
|
+
|
|
52
|
+
Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
53
|
+
|
|
54
|
+
- [DateTimeRangePicker] Fix selection on same day (#12604) @LukasTy
|
|
55
|
+
|
|
56
|
+
### Charts
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts@7.1.1`
|
|
59
|
+
|
|
60
|
+
- [charts] Fix `tickInterval` usage for y-axis (#12592) @alexfauquette
|
|
61
|
+
- [charts] Fix Scatter series highlight when `id` is a `number` (#12677) @JCQuintas
|
|
62
|
+
- [charts] Fix TS error when using `sx` property on `ChartsTooltip` (#12659) @JCQuintas
|
|
63
|
+
|
|
64
|
+
### Tree View
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-tree-view@7.1.1`
|
|
67
|
+
|
|
68
|
+
- [TreeView] Add JSDoc to all `publicAPI` methods (#12649) @flaviendelangle
|
|
69
|
+
- [TreeView] Create `RichTreeViewPro` component (not released yet) (#12610) @flaviendelangle
|
|
70
|
+
- [TreeView] Create pro package (not released yet) (#12240) @flaviendelangle
|
|
71
|
+
- [TreeView] Fix typo in errors (#12623) @alissa-tung
|
|
72
|
+
- [TreeView] New API method: `setItemExpansion` (#12595) @flaviendelangle
|
|
73
|
+
|
|
74
|
+
### Docs
|
|
75
|
+
|
|
76
|
+
- [docs] Add a recipe for the `checkboxSelectionVisibleOnly` prop (#12646) @michelengelen
|
|
77
|
+
- [docs] Explain the use of `_action: 'delete'` in `processRowUpdate` (#12670) @michelengelen
|
|
78
|
+
- [docs] Fix formatting and typo on migration guide @oliviertassinari
|
|
79
|
+
- [docs] Fix formatting in changelog @oliviertassinari
|
|
80
|
+
- [docs] Fix grammar in TreeView migration doc (#12615) @joshkel
|
|
81
|
+
- [docs] Fix missing closing props in `PieShapeNoSnap` demo (#12636) @alp-ex
|
|
82
|
+
- [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
|
|
83
|
+
- [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
|
|
84
|
+
- [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
|
|
85
|
+
- [docs] Match IE 11 spacing with Material UI @oliviertassinari
|
|
86
|
+
- [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
|
|
87
|
+
- [docs] Remove ` around @default values (#12158) @alexfauquette
|
|
88
|
+
- [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
|
|
89
|
+
- [docs] Use `TreeItem2` for icon expansion example on `RichTreeView` (#12563) @flaviendelangle
|
|
90
|
+
|
|
91
|
+
### Core
|
|
92
|
+
|
|
93
|
+
- [core] Add cherry-pick `master` to `v6` action (#12648) @LukasTy
|
|
94
|
+
- [core] Fix typo in `@mui/x-tree-view-pro/themeAugmentation` (#12674) @flaviendelangle
|
|
95
|
+
- [core] Introduce `describeTreeView` to run test on `SimpleTreeView` and `RichTreeView`, using `TreeItem` and `TreeItem2` + migrate expansion tests (#12428) @flaviendelangle
|
|
96
|
+
- [core] Limit `test-types` CI step allowed memory (#12651) @LukasTy
|
|
97
|
+
- [core] Remove explicit `express` package (#12602) @LukasTy
|
|
98
|
+
- [core] Update to new embedded translations in the docs package (#12232) @Janpot
|
|
99
|
+
- [core] Use PR labels to identify the package a `l10n` PR belongs to (#12639) @LukasTy
|
|
100
|
+
- [core] Use `describeTreeView` for selection tests (#12647) @flaviendelangle
|
|
101
|
+
- [docs-infra] Adjust the links to search for issues (#11995) @michelengelen
|
|
102
|
+
- [infra] Polish support survey experience (#12624) @oliviertassinari
|
|
103
|
+
- [support-infra] Replace author association with a permission check in survey action (#12068) @michelengelen
|
|
104
|
+
- [support-infra] Fix user permission check (#12669) @michelengelen
|
|
105
|
+
- [test] Fix Tree View test import (#12668) @LukasTy
|
|
106
|
+
|
|
107
|
+
## 7.1.0
|
|
108
|
+
|
|
109
|
+
_Mar 28, 2024_
|
|
110
|
+
|
|
111
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
112
|
+
|
|
113
|
+
- 🚀 Add `resizeThrottleMs` prop (#12556) @romgrk
|
|
114
|
+
- 🌍 Improve Chinese (Hong Kong) (zh-HK) and Italian (it-IT) locale on the Pickers
|
|
115
|
+
- 🐞 Bugfixes
|
|
116
|
+
- 📚 Documentation improvements
|
|
117
|
+
|
|
118
|
+
### Data Grid
|
|
119
|
+
|
|
120
|
+
#### `@mui/x-data-grid@7.1.0`
|
|
121
|
+
|
|
122
|
+
- [DataGrid] Add `resizeThrottleMs` prop (#12556) @romgrk
|
|
123
|
+
- [DataGrid] Do not publish `rowEditStop` event if row has fields with errors (#11383) @cherniavskii
|
|
124
|
+
- [DataGrid] Fix bug in suspense (#12553) @romgrk
|
|
125
|
+
- [DataGrid] Fix missing class name in the `GridToolbarQuickFilter` component (#12484) @jhawkins11
|
|
126
|
+
|
|
127
|
+
#### `@mui/x-data-grid-pro@7.1.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
128
|
+
|
|
129
|
+
Same changes as in `@mui/x-data-grid@7.1.0`.
|
|
130
|
+
|
|
131
|
+
#### `@mui/x-data-grid-premium@7.1.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
132
|
+
|
|
133
|
+
Same changes as in `@mui/x-data-grid-pro@7.1.0`.
|
|
134
|
+
|
|
135
|
+
### Date and Time Pickers
|
|
136
|
+
|
|
137
|
+
#### `@mui/x-date-pickers@7.1.0`
|
|
138
|
+
|
|
139
|
+
- [fields] Fix placeholder override (#12589) @flaviendelangle
|
|
140
|
+
- [l10n] Improve Chinese (Hong Kong) (zh-HK) locale (#12547) @samchiu90
|
|
141
|
+
- [l10n] Improve Italian (it-IT) locale (#12549) @antomanc
|
|
142
|
+
- [pickers] Prepare compatibility with `@mui/zero-runtime` (stop using `ownerState` in `styled`) (#12003) @flaviendelangle
|
|
143
|
+
|
|
144
|
+
#### `@mui/x-date-pickers-pro@7.1.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
145
|
+
|
|
146
|
+
Same changes as in `@mui/x-date-pickers@7.1.0`, plus:
|
|
147
|
+
|
|
148
|
+
- [DateRangePicker] Fix selection behavior with single input field when `readOnly` (#12593) @LukasTy
|
|
149
|
+
|
|
150
|
+
### Charts
|
|
151
|
+
|
|
152
|
+
#### `@mui/x-charts@7.1.0`
|
|
153
|
+
|
|
154
|
+
- [charts] Fix tooltip causing crash on data change (#12571) @Rishi556
|
|
155
|
+
|
|
156
|
+
### Tree View
|
|
157
|
+
|
|
158
|
+
#### `@mui/x-tree-view@7.1.0`
|
|
159
|
+
|
|
160
|
+
- [TreeView] Do not use outdated version of the state to compute new label first char in `RichTreeView` (#12512) @flaviendelangle
|
|
161
|
+
|
|
162
|
+
### Docs
|
|
163
|
+
|
|
164
|
+
- [docs] Add example to add a second icon next to the field's opening button (#12524) @flaviendelangle
|
|
165
|
+
- [docs] Add missing note to Data Grid migration guide (#12557) @romgrk
|
|
166
|
+
- [docs] Fix Charts title for SEO (#12545) @oliviertassinari
|
|
167
|
+
- [docs] Fix small typo (#12558) @diogoparente
|
|
168
|
+
- [docs] Improve codemod related documentation (#12582) @MBilalShafi
|
|
169
|
+
- [docs] Reduce noise in migration docs side navigation (#12552) @cherniavskii
|
|
170
|
+
- [docs] Sync static images from core repository (#12525) @LukasTy
|
|
171
|
+
|
|
172
|
+
### Core
|
|
173
|
+
|
|
174
|
+
- [core] Fix `l10n` script on Windows (#12550) @LukasTy
|
|
175
|
+
- [core] Include `DateTimeRangePicker` tag in `releaseChangelog` (#12526) @LukasTy
|
|
176
|
+
- [core] Upgrade monorepo (#12536) @cherniavskii
|
|
177
|
+
|
|
178
|
+
## 7.0.0
|
|
7
179
|
|
|
8
180
|
_Mar 22, 2024_
|
|
9
181
|
|
|
@@ -459,13 +631,13 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
459
631
|
|
|
460
632
|
- 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
|
|
461
633
|
- 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
|
|
462
|
-
- 🕥 The support for
|
|
634
|
+
- 🕥 The support for IE 11 has been removed (#12151) @flaviendelangle
|
|
463
635
|
- 🐞 Bugfixes
|
|
464
636
|
- 📚 Documentation improvements
|
|
465
637
|
|
|
466
638
|
### Breaking changes
|
|
467
639
|
|
|
468
|
-
- The support for
|
|
640
|
+
- The support for IE 11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE 11 is no longer included.
|
|
469
641
|
|
|
470
642
|
### Data Grid
|
|
471
643
|
|
|
@@ -570,7 +742,7 @@ These components are no longer exported from `@mui/x-charts`:
|
|
|
570
742
|
|
|
571
743
|
### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
|
|
572
744
|
|
|
573
|
-
- [TreeView] Stop using custom `findIndex` to support
|
|
745
|
+
- [TreeView] Stop using custom `findIndex` to support IE 11 (#12129) @flaviendelangle
|
|
574
746
|
|
|
575
747
|
### Docs
|
|
576
748
|
|
|
@@ -2800,6 +2972,76 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
2800
2972
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
2801
2973
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
2802
2974
|
|
|
2975
|
+
## 6.19.9
|
|
2976
|
+
|
|
2977
|
+
_Apr 5, 2024_
|
|
2978
|
+
|
|
2979
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
2980
|
+
|
|
2981
|
+
- 🐞 Bugfixes
|
|
2982
|
+
- 📚 Documentation improvements
|
|
2983
|
+
|
|
2984
|
+
### Data Grid
|
|
2985
|
+
|
|
2986
|
+
#### `@mui/x-data-grid@6.19.9`
|
|
2987
|
+
|
|
2988
|
+
- [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12087) @MBilalShafi
|
|
2989
|
+
|
|
2990
|
+
#### `@mui/x-data-grid-pro@6.19.9` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2991
|
+
|
|
2992
|
+
Same changes as in `@mui/x-data-grid@6.19.9`.
|
|
2993
|
+
|
|
2994
|
+
#### `@mui/x-data-grid-premium@6.19.9` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2995
|
+
|
|
2996
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.9`.
|
|
2997
|
+
|
|
2998
|
+
### Date Pickers
|
|
2999
|
+
|
|
3000
|
+
#### `@mui/x-date-pickers@6.19.9`
|
|
3001
|
+
|
|
3002
|
+
No changes.
|
|
3003
|
+
|
|
3004
|
+
#### `@mui/x-date-pickers-pro@6.19.9` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3005
|
+
|
|
3006
|
+
- [DateRangePicker] Fix selection behavior with single input field when `readOnly` (#12605) @LukasTy
|
|
3007
|
+
|
|
3008
|
+
### Docs
|
|
3009
|
+
|
|
3010
|
+
- [docs] Add a recipe for the `checkboxSelectionVisibleOnly` prop (#12667) @michelengelen
|
|
3011
|
+
- [docs] Explain the use of `_action: 'delete'` in `processRowUpdate` (#12673) @michelengelen
|
|
3012
|
+
|
|
3013
|
+
### Core
|
|
3014
|
+
|
|
3015
|
+
- [core] Use Circle CI context (#12607) @cherniavskii
|
|
3016
|
+
|
|
3017
|
+
## 6.19.8
|
|
3018
|
+
|
|
3019
|
+
_Mar 20, 2024_
|
|
3020
|
+
|
|
3021
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible.
|
|
3022
|
+
|
|
3023
|
+
### Data Grid
|
|
3024
|
+
|
|
3025
|
+
#### `@mui/x-data-grid@6.19.8`
|
|
3026
|
+
|
|
3027
|
+
- [DataGrid] Fix `ElementType` usage (#12505) @cherniavskii
|
|
3028
|
+
- [DataGrid] Fix cell value formatting on copy (#12483) @sai6855
|
|
3029
|
+
- [DataGrid] Fix checkbox selection when filtering (#12485) @g1mishra
|
|
3030
|
+
|
|
3031
|
+
#### `@mui/x-data-grid-pro@6.19.8` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3032
|
+
|
|
3033
|
+
Same changes as in `@mui/x-data-grid@6.19.8`.
|
|
3034
|
+
|
|
3035
|
+
#### `@mui/x-data-grid-premium@6.19.8` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3036
|
+
|
|
3037
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.8`, plus:
|
|
3038
|
+
|
|
3039
|
+
- [DataGridPremium] Add support for confirmation before clipboard paste (#12466) @cherniavskii
|
|
3040
|
+
|
|
3041
|
+
### Docs
|
|
3042
|
+
|
|
3043
|
+
- [docs] Update links to v7 (#12495) @cherniavskii
|
|
3044
|
+
|
|
2803
3045
|
## 6.19.7
|
|
2804
3046
|
|
|
2805
3047
|
_Mar 14, 2024_
|
|
@@ -363,7 +363,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
|
363
363
|
* Formats the day of week displayed in the calendar header.
|
|
364
364
|
* @param {TDate} date The date of the day of week provided by the adapter.
|
|
365
365
|
* @returns {string} The name to display.
|
|
366
|
-
* @default (
|
|
366
|
+
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
367
367
|
*/
|
|
368
368
|
dayOfWeekFormatter: PropTypes.func,
|
|
369
369
|
/**
|
|
@@ -38,7 +38,7 @@ export interface ExportedDayCalendarProps<TDate extends PickerValidDate> extends
|
|
|
38
38
|
* Formats the day of week displayed in the calendar header.
|
|
39
39
|
* @param {TDate} date The date of the day of week provided by the adapter.
|
|
40
40
|
* @returns {string} The name to display.
|
|
41
|
-
* @default (
|
|
41
|
+
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
42
42
|
*/
|
|
43
43
|
dayOfWeekFormatter?: (date: TDate) => string;
|
|
44
44
|
/**
|
package/DateField/DateField.js
CHANGED
|
@@ -274,7 +274,7 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
|
274
274
|
* Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
|
|
275
275
|
* This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
|
|
276
276
|
*
|
|
277
|
-
* @default
|
|
277
|
+
* @default false
|
|
278
278
|
*/
|
|
279
279
|
shouldRespectLeadingZeros: PropTypes.bool,
|
|
280
280
|
/**
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -65,7 +65,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
|
65
65
|
* Formats the day of week displayed in the calendar header.
|
|
66
66
|
* @param {TDate} date The date of the day of week provided by the adapter.
|
|
67
67
|
* @returns {string} The name to display.
|
|
68
|
-
* @default (
|
|
68
|
+
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
69
69
|
*/
|
|
70
70
|
dayOfWeekFormatter: PropTypes.func,
|
|
71
71
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["value", "isLandscape", "onChange", "toolbarFormat", "toolbarPlaceholder", "views", "className", "onViewChange", "view"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -31,11 +31,16 @@ const DatePickerToolbarTitle = styled(Typography, {
|
|
|
31
31
|
name: 'MuiDatePickerToolbar',
|
|
32
32
|
slot: 'Title',
|
|
33
33
|
overridesResolver: (_, styles) => styles.title
|
|
34
|
-
})(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
34
|
+
})({
|
|
35
|
+
variants: [{
|
|
36
|
+
props: {
|
|
37
|
+
isLandscape: true
|
|
38
|
+
},
|
|
39
|
+
style: {
|
|
40
|
+
margin: 'auto 16px auto auto'
|
|
41
|
+
}
|
|
42
|
+
}]
|
|
43
|
+
});
|
|
39
44
|
/**
|
|
40
45
|
* Demos:
|
|
41
46
|
*
|
|
@@ -64,7 +64,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
64
64
|
// ----------------------------------------------------------------------
|
|
65
65
|
/**
|
|
66
66
|
* 12h/24h view for hour selection clock.
|
|
67
|
-
* @default
|
|
67
|
+
* @default utils.is12HourCycleInCurrentLocale()
|
|
68
68
|
*/
|
|
69
69
|
ampm: PropTypes.bool,
|
|
70
70
|
/**
|
|
@@ -315,7 +315,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
315
315
|
* Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
|
|
316
316
|
* This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
|
|
317
317
|
*
|
|
318
|
-
* @default
|
|
318
|
+
* @default false
|
|
319
319
|
*/
|
|
320
320
|
shouldRespectLeadingZeros: PropTypes.bool,
|
|
321
321
|
/**
|
|
@@ -9,7 +9,7 @@ import { ExportedUseClearableFieldProps, UseClearableFieldSlots, UseClearableFie
|
|
|
9
9
|
export interface UseDateTimeFieldProps<TDate extends PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean> extends MakeOptional<UseFieldInternalProps<TDate | null, TDate, FieldSection, TEnableAccessibleFieldDOMStructure, DateTimeValidationError>, 'format'>, DayValidationProps<TDate>, MonthValidationProps<TDate>, YearValidationProps<TDate>, BaseDateValidationProps<TDate>, TimeValidationProps<TDate>, BaseTimeValidationProps, DateTimeValidationProps<TDate>, ExportedUseClearableFieldProps {
|
|
10
10
|
/**
|
|
11
11
|
* 12h/24h view for hour selection clock.
|
|
12
|
-
* @default
|
|
12
|
+
* @default utils.is12HourCycleInCurrentLocale()
|
|
13
13
|
*/
|
|
14
14
|
ampm?: boolean;
|
|
15
15
|
}
|
|
@@ -50,7 +50,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
50
50
|
// ----------------------------------------------------------------------
|
|
51
51
|
/**
|
|
52
52
|
* 12h/24h view for hour selection clock.
|
|
53
|
-
* @default
|
|
53
|
+
* @default utils.is12HourCycleInCurrentLocale()
|
|
54
54
|
*/
|
|
55
55
|
ampm: PropTypes.bool,
|
|
56
56
|
/**
|
|
@@ -75,7 +75,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
75
75
|
* Formats the day of week displayed in the calendar header.
|
|
76
76
|
* @param {TDate} date The date of the day of week provided by the adapter.
|
|
77
77
|
* @returns {string} The name to display.
|
|
78
|
-
* @default (
|
|
78
|
+
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
79
79
|
*/
|
|
80
80
|
dayOfWeekFormatter: PropTypes.func,
|
|
81
81
|
/**
|
|
@@ -40,20 +40,41 @@ const DateTimePickerToolbarRoot = styled(PickersToolbar, {
|
|
|
40
40
|
slot: 'Root',
|
|
41
41
|
overridesResolver: (props, styles) => styles.root
|
|
42
42
|
})(({
|
|
43
|
-
theme
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
paddingRight: ownerState.toolbarVariant === 'desktop' && !ownerState.isLandscape ? 0 : 16,
|
|
48
|
-
borderBottom: ownerState.toolbarVariant === 'desktop' ? `1px solid ${(theme.vars || theme).palette.divider}` : undefined,
|
|
49
|
-
borderRight: ownerState.toolbarVariant === 'desktop' && ownerState.isLandscape ? `1px solid ${(theme.vars || theme).palette.divider}` : undefined,
|
|
43
|
+
theme
|
|
44
|
+
}) => ({
|
|
45
|
+
paddingLeft: 16,
|
|
46
|
+
paddingRight: 16,
|
|
50
47
|
justifyContent: 'space-around',
|
|
51
|
-
position: 'relative'
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
position: 'relative',
|
|
49
|
+
variants: [{
|
|
50
|
+
props: {
|
|
51
|
+
toolbarVariant: 'desktop'
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
54
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
55
|
+
[`& .${pickersToolbarClasses.content} .${pickersToolbarTextClasses.selected}`]: {
|
|
56
|
+
color: (theme.vars || theme).palette.primary.main,
|
|
57
|
+
fontWeight: theme.typography.fontWeightBold
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
props: {
|
|
62
|
+
toolbarVariant: 'desktop',
|
|
63
|
+
isLandscape: true
|
|
64
|
+
},
|
|
65
|
+
style: {
|
|
66
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
props: {
|
|
70
|
+
toolbarVariant: 'desktop',
|
|
71
|
+
isLandscape: false
|
|
72
|
+
},
|
|
73
|
+
style: {
|
|
74
|
+
paddingLeft: 24,
|
|
75
|
+
paddingRight: 0
|
|
76
|
+
}
|
|
77
|
+
}]
|
|
57
78
|
}));
|
|
58
79
|
DateTimePickerToolbarRoot.propTypes = {
|
|
59
80
|
// ----------------------------- Warning --------------------------------
|
|
@@ -86,19 +107,35 @@ const DateTimePickerToolbarTimeContainer = styled('div', {
|
|
|
86
107
|
slot: 'TimeContainer',
|
|
87
108
|
overridesResolver: (props, styles) => styles.timeContainer
|
|
88
109
|
})(({
|
|
89
|
-
theme
|
|
90
|
-
ownerState
|
|
110
|
+
theme
|
|
91
111
|
}) => {
|
|
92
|
-
const direction = ownerState.isLandscape && ownerState.toolbarVariant !== 'desktop' ? 'column' : 'row';
|
|
93
112
|
return _extends({
|
|
94
113
|
display: 'flex',
|
|
95
|
-
flexDirection:
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
114
|
+
flexDirection: 'row'
|
|
115
|
+
}, theme.direction === 'rtl' && {
|
|
116
|
+
flexDirection: 'row-reverse'
|
|
117
|
+
}, {
|
|
118
|
+
variants: [{
|
|
119
|
+
props: ({
|
|
120
|
+
isLandscape,
|
|
121
|
+
toolbarVariant
|
|
122
|
+
}) => isLandscape && toolbarVariant !== 'desktop',
|
|
123
|
+
style: _extends({
|
|
124
|
+
flexDirection: 'column'
|
|
125
|
+
}, theme.direction === 'rtl' && {
|
|
126
|
+
flexDirection: 'column-reverse'
|
|
127
|
+
})
|
|
128
|
+
}, {
|
|
129
|
+
props: {
|
|
130
|
+
toolbarVariant: 'desktop',
|
|
131
|
+
isLandscape: false
|
|
132
|
+
},
|
|
133
|
+
style: {
|
|
134
|
+
gap: 9,
|
|
135
|
+
marginRight: 4,
|
|
136
|
+
alignSelf: 'flex-end'
|
|
137
|
+
}
|
|
138
|
+
}]
|
|
102
139
|
});
|
|
103
140
|
});
|
|
104
141
|
const DateTimePickerToolbarTimeDigitsContainer = styled('div', {
|
|
@@ -106,14 +143,20 @@ const DateTimePickerToolbarTimeDigitsContainer = styled('div', {
|
|
|
106
143
|
slot: 'TimeDigitsContainer',
|
|
107
144
|
overridesResolver: (props, styles) => styles.timeDigitsContainer
|
|
108
145
|
})(({
|
|
109
|
-
theme
|
|
110
|
-
ownerState
|
|
146
|
+
theme
|
|
111
147
|
}) => _extends({
|
|
112
148
|
display: 'flex'
|
|
113
|
-
}, ownerState.toolbarVariant === 'desktop' && {
|
|
114
|
-
gap: 1.5
|
|
115
149
|
}, theme.direction === 'rtl' && {
|
|
116
150
|
flexDirection: 'row-reverse'
|
|
151
|
+
}, {
|
|
152
|
+
variants: [{
|
|
153
|
+
props: {
|
|
154
|
+
toolbarVariant: 'desktop'
|
|
155
|
+
},
|
|
156
|
+
style: {
|
|
157
|
+
gap: 1.5
|
|
158
|
+
}
|
|
159
|
+
}]
|
|
117
160
|
}));
|
|
118
161
|
DateTimePickerToolbarTimeContainer.propTypes = {
|
|
119
162
|
// ----------------------------- Warning --------------------------------
|
|
@@ -128,12 +171,18 @@ const DateTimePickerToolbarSeparator = styled(PickersToolbarText, {
|
|
|
128
171
|
name: 'MuiDateTimePickerToolbar',
|
|
129
172
|
slot: 'Separator',
|
|
130
173
|
overridesResolver: (props, styles) => styles.separator
|
|
131
|
-
})(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
174
|
+
})({
|
|
175
|
+
margin: '0 4px 0 2px',
|
|
176
|
+
cursor: 'default',
|
|
177
|
+
variants: [{
|
|
178
|
+
props: {
|
|
179
|
+
toolbarVariant: 'desktop'
|
|
180
|
+
},
|
|
181
|
+
style: {
|
|
182
|
+
margin: 0
|
|
183
|
+
}
|
|
184
|
+
}]
|
|
185
|
+
});
|
|
137
186
|
|
|
138
187
|
// Taken from TimePickerToolbar
|
|
139
188
|
const DateTimePickerToolbarAmPmSelection = styled('div', {
|
|
@@ -144,23 +193,26 @@ const DateTimePickerToolbarAmPmSelection = styled('div', {
|
|
|
144
193
|
}, {
|
|
145
194
|
[`&.${dateTimePickerToolbarClasses.ampmLandscape}`]: styles.ampmLandscape
|
|
146
195
|
}, styles.ampmSelection]
|
|
147
|
-
})(
|
|
148
|
-
ownerState
|
|
149
|
-
}) => _extends({
|
|
196
|
+
})({
|
|
150
197
|
display: 'flex',
|
|
151
198
|
flexDirection: 'column',
|
|
152
199
|
marginRight: 'auto',
|
|
153
|
-
marginLeft: 12
|
|
154
|
-
}, ownerState.isLandscape && {
|
|
155
|
-
margin: '4px 0 auto',
|
|
156
|
-
flexDirection: 'row',
|
|
157
|
-
justifyContent: 'space-around',
|
|
158
|
-
width: '100%'
|
|
159
|
-
}, {
|
|
200
|
+
marginLeft: 12,
|
|
160
201
|
[`& .${dateTimePickerToolbarClasses.ampmLabel}`]: {
|
|
161
202
|
fontSize: 17
|
|
162
|
-
}
|
|
163
|
-
|
|
203
|
+
},
|
|
204
|
+
variants: [{
|
|
205
|
+
props: {
|
|
206
|
+
isLandscape: true
|
|
207
|
+
},
|
|
208
|
+
style: {
|
|
209
|
+
margin: '4px 0 auto',
|
|
210
|
+
flexDirection: 'row',
|
|
211
|
+
justifyContent: 'space-around',
|
|
212
|
+
width: '100%'
|
|
213
|
+
}
|
|
214
|
+
}]
|
|
215
|
+
});
|
|
164
216
|
|
|
165
217
|
/**
|
|
166
218
|
* Demos:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
@@ -41,13 +41,17 @@ const DayCalendarSkeletonDay = styled(Skeleton, {
|
|
|
41
41
|
name: 'MuiDayCalendarSkeleton',
|
|
42
42
|
slot: 'DaySkeleton',
|
|
43
43
|
overridesResolver: (props, styles) => styles.daySkeleton
|
|
44
|
-
})(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
})({
|
|
45
|
+
margin: `0 ${DAY_MARGIN}px`,
|
|
46
|
+
variants: [{
|
|
47
|
+
props: {
|
|
48
|
+
day: 0
|
|
49
|
+
},
|
|
50
|
+
style: {
|
|
51
|
+
visibility: 'hidden'
|
|
52
|
+
}
|
|
53
|
+
}]
|
|
54
|
+
});
|
|
51
55
|
DayCalendarSkeletonDay.propTypes = {
|
|
52
56
|
// ----------------------------- Warning --------------------------------
|
|
53
57
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -86,7 +86,7 @@ DesktopDatePicker.propTypes = {
|
|
|
86
86
|
* Formats the day of week displayed in the calendar header.
|
|
87
87
|
* @param {TDate} date The date of the day of week provided by the adapter.
|
|
88
88
|
* @returns {string} The name to display.
|
|
89
|
-
* @default (
|
|
89
|
+
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
90
90
|
*/
|
|
91
91
|
dayOfWeekFormatter: PropTypes.func,
|
|
92
92
|
/**
|
|
@@ -148,7 +148,7 @@ DesktopDateTimePicker.propTypes = {
|
|
|
148
148
|
// ----------------------------------------------------------------------
|
|
149
149
|
/**
|
|
150
150
|
* 12h/24h view for hour selection clock.
|
|
151
|
-
* @default
|
|
151
|
+
* @default utils.is12HourCycleInCurrentLocale()
|
|
152
152
|
*/
|
|
153
153
|
ampm: PropTypes.bool,
|
|
154
154
|
/**
|
|
@@ -173,7 +173,7 @@ DesktopDateTimePicker.propTypes = {
|
|
|
173
173
|
* Formats the day of week displayed in the calendar header.
|
|
174
174
|
* @param {TDate} date The date of the day of week provided by the adapter.
|
|
175
175
|
* @returns {string} The name to display.
|
|
176
|
-
* @default (
|
|
176
|
+
* @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
177
177
|
*/
|
|
178
178
|
dayOfWeekFormatter: PropTypes.func,
|
|
179
179
|
/**
|
|
@@ -92,7 +92,7 @@ DesktopTimePicker.propTypes = {
|
|
|
92
92
|
// ----------------------------------------------------------------------
|
|
93
93
|
/**
|
|
94
94
|
* 12h/24h view for hour selection clock.
|
|
95
|
-
* @default
|
|
95
|
+
* @default utils.is12HourCycleInCurrentLocale()
|
|
96
96
|
*/
|
|
97
97
|
ampm: PropTypes.bool,
|
|
98
98
|
/**
|