@mui/x-date-pickers 8.0.0-alpha.12 → 8.0.0-alpha.14
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/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts +1 -1
- package/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +96 -94
- package/AdapterDateFnsV2/AdapterDateFnsV2.d.ts +1 -1
- package/AdapterDateFnsV2/AdapterDateFnsV2.js +96 -94
- package/AdapterDayjs/AdapterDayjs.js +11 -5
- package/CHANGELOG.md +430 -0
- package/DateCalendar/DateCalendar.js +1 -1
- package/DateField/useDateField.d.ts +1 -1
- package/DatePicker/DatePicker.types.d.ts +2 -2
- package/DatePicker/shared.d.ts +1 -1
- package/DateTimeField/useDateTimeField.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.types.d.ts +3 -3
- package/DateTimePicker/DateTimePickerToolbar.d.ts +1 -1
- package/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/DateTimePicker/shared.d.ts +18 -10
- package/DateTimePicker/shared.js +23 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -11
- package/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +4 -7
- package/DesktopTimePicker/DesktopTimePicker.types.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -2
- package/MobileDateTimePicker/MobileDateTimePicker.js +61 -6
- package/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +1 -3
- package/PickersTextField/PickersTextField.js +3 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +60 -6
- package/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +1 -2
- package/TimeClock/Clock.js +2 -2
- package/TimeClock/ClockPointer.js +1 -1
- package/TimeField/useTimeField.d.ts +1 -1
- package/TimePicker/TimePicker.types.d.ts +2 -2
- package/TimePicker/shared.d.ts +1 -1
- package/esm/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts +1 -1
- package/esm/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +47 -45
- package/esm/AdapterDateFnsV2/AdapterDateFnsV2.d.ts +1 -1
- package/esm/AdapterDateFnsV2/AdapterDateFnsV2.js +47 -45
- package/esm/AdapterDayjs/AdapterDayjs.js +9 -5
- package/esm/DateCalendar/DateCalendar.js +1 -1
- package/esm/DateField/useDateField.d.ts +1 -1
- package/esm/DatePicker/DatePicker.types.d.ts +2 -2
- package/esm/DatePicker/shared.d.ts +1 -1
- package/esm/DateTimeField/useDateTimeField.d.ts +1 -1
- package/esm/DateTimePicker/DateTimePicker.types.d.ts +3 -3
- package/esm/DateTimePicker/DateTimePickerToolbar.d.ts +1 -1
- package/esm/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/esm/DateTimePicker/shared.d.ts +18 -10
- package/esm/DateTimePicker/shared.js +23 -2
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -12
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +4 -7
- package/esm/DesktopTimePicker/DesktopTimePicker.types.d.ts +2 -2
- package/esm/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -2
- package/esm/MobileDateTimePicker/MobileDateTimePicker.js +62 -7
- package/esm/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +1 -3
- package/esm/PickersTextField/PickersTextField.js +3 -1
- package/esm/StaticDateTimePicker/StaticDateTimePicker.js +61 -7
- package/esm/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +1 -2
- package/esm/TimeClock/Clock.js +2 -2
- package/esm/TimeClock/ClockPointer.js +1 -1
- package/esm/TimeField/useTimeField.d.ts +1 -1
- package/esm/TimePicker/TimePicker.types.d.ts +2 -2
- package/esm/TimePicker/shared.d.ts +1 -1
- package/esm/hooks/useSplitFieldProps.d.ts +1 -1
- package/esm/hooks/useSplitFieldProps.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerFieldUI.d.ts +7 -0
- package/esm/internals/components/PickerFieldUI.js +8 -4
- package/esm/internals/components/PickerPopper/PickerPopper.d.ts +0 -3
- package/esm/internals/components/PickerPopper/PickerPopper.js +26 -14
- package/esm/internals/components/PickerProvider.d.ts +158 -7
- package/esm/internals/components/PickerProvider.js +7 -2
- package/esm/internals/demo/DemoContainer.js +3 -3
- package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.js +5 -22
- package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +4 -12
- package/esm/internals/hooks/useField/index.d.ts +1 -2
- package/esm/internals/hooks/useField/useField.js +7 -8
- package/esm/internals/hooks/useField/useField.types.d.ts +56 -47
- package/esm/internals/hooks/useField/useField.utils.js +4 -1
- package/esm/internals/hooks/useField/useFieldCharacterEditing.js +2 -2
- package/esm/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.ts +9 -9
- package/esm/internals/hooks/useField/useFieldInternalPropsWithDefaults.js +16 -8
- package/esm/internals/hooks/useField/useFieldState.d.ts +2 -1
- package/esm/internals/hooks/useField/useFieldState.js +136 -83
- package/esm/internals/hooks/useField/useFieldV6TextField.js +9 -7
- package/esm/internals/hooks/useField/useFieldV7TextField.js +9 -8
- package/esm/internals/hooks/useMobilePicker/useMobilePicker.js +5 -21
- package/esm/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +4 -7
- package/esm/internals/hooks/useNullableFieldPrivateContext.d.ts +9 -0
- package/esm/internals/hooks/useNullableFieldPrivateContext.js +5 -0
- package/esm/internals/hooks/usePicker/hooks/useOrientation.d.ts +2 -0
- package/esm/internals/hooks/usePicker/hooks/useOrientation.js +34 -0
- package/esm/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.ts +19 -0
- package/esm/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +210 -0
- package/esm/internals/hooks/usePicker/index.d.ts +1 -3
- package/esm/internals/hooks/usePicker/usePicker.d.ts +5 -5
- package/esm/internals/hooks/usePicker/usePicker.js +276 -34
- package/esm/internals/hooks/usePicker/usePicker.types.d.ts +181 -9
- package/esm/internals/hooks/useStaticPicker/useStaticPicker.js +3 -2
- package/esm/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +3 -4
- package/esm/internals/hooks/useValueWithTimezone.d.ts +1 -1
- package/esm/internals/index.d.ts +7 -9
- package/esm/internals/index.js +2 -1
- package/esm/internals/models/fields.d.ts +3 -10
- package/esm/internals/models/manager.d.ts +108 -4
- package/esm/internals/models/props/basePickerProps.d.ts +2 -2
- package/esm/internals/models/props/time.d.ts +1 -1
- package/esm/internals/utils/date-time-utils.d.ts +2 -2
- package/esm/internals/utils/valueManagers.d.ts +1 -1
- package/esm/internals/utils/valueManagers.js +10 -18
- package/esm/locales/bnBD.d.ts +80 -0
- package/esm/locales/bnBD.js +73 -0
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +1 -0
- package/esm/managers/useDateManager.d.ts +3 -4
- package/esm/managers/useDateTimeManager.d.ts +3 -4
- package/esm/managers/useTimeManager.d.ts +3 -4
- package/esm/models/adapters.d.ts +2 -1
- package/esm/models/fields.d.ts +2 -2
- package/esm/models/manager.d.ts +4 -5
- package/esm/validation/extractValidationProps.d.ts +1 -1
- package/esm/validation/index.d.ts +1 -1
- package/esm/validation/useValidation.d.ts +2 -2
- package/hooks/useSplitFieldProps.d.ts +1 -1
- package/hooks/useSplitFieldProps.js +1 -1
- package/index.js +1 -1
- package/internals/components/PickerFieldUI.d.ts +7 -0
- package/internals/components/PickerFieldUI.js +9 -3
- package/internals/components/PickerPopper/PickerPopper.d.ts +0 -3
- package/internals/components/PickerPopper/PickerPopper.js +25 -13
- package/internals/components/PickerProvider.d.ts +158 -7
- package/internals/components/PickerProvider.js +8 -3
- package/internals/demo/DemoContainer.js +3 -3
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +5 -22
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +4 -12
- package/internals/hooks/useField/index.d.ts +1 -2
- package/internals/hooks/useField/useField.js +7 -8
- package/internals/hooks/useField/useField.types.d.ts +56 -47
- package/internals/hooks/useField/useField.utils.js +4 -1
- package/internals/hooks/useField/useFieldCharacterEditing.js +2 -2
- package/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.ts +9 -9
- package/internals/hooks/useField/useFieldInternalPropsWithDefaults.js +16 -10
- package/internals/hooks/useField/useFieldState.d.ts +2 -1
- package/internals/hooks/useField/useFieldState.js +135 -82
- package/internals/hooks/useField/useFieldV6TextField.js +9 -7
- package/internals/hooks/useField/useFieldV7TextField.js +9 -8
- package/internals/hooks/useMobilePicker/useMobilePicker.js +5 -21
- package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +4 -7
- package/internals/hooks/useNullableFieldPrivateContext.d.ts +9 -0
- package/internals/hooks/useNullableFieldPrivateContext.js +13 -0
- package/internals/hooks/usePicker/hooks/useOrientation.d.ts +2 -0
- package/internals/hooks/usePicker/hooks/useOrientation.js +42 -0
- package/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.ts +19 -0
- package/internals/hooks/usePicker/{usePickerValue.js → hooks/useValueAndOpenStates.js} +97 -114
- package/internals/hooks/usePicker/index.d.ts +1 -3
- package/internals/hooks/usePicker/usePicker.d.ts +5 -5
- package/internals/hooks/usePicker/usePicker.js +278 -34
- package/internals/hooks/usePicker/usePicker.types.d.ts +181 -9
- package/internals/hooks/useStaticPicker/useStaticPicker.js +3 -2
- package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +3 -4
- package/internals/hooks/useValueWithTimezone.d.ts +1 -1
- package/internals/index.d.ts +7 -9
- package/internals/index.js +19 -0
- package/internals/models/fields.d.ts +3 -10
- package/internals/models/manager.d.ts +108 -4
- package/internals/models/props/basePickerProps.d.ts +2 -2
- package/internals/models/props/time.d.ts +1 -1
- package/internals/utils/date-time-utils.d.ts +2 -2
- package/internals/utils/valueManagers.d.ts +1 -1
- package/internals/utils/valueManagers.js +10 -18
- package/locales/bnBD.d.ts +80 -0
- package/locales/bnBD.js +79 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +11 -0
- package/managers/useDateManager.d.ts +3 -4
- package/managers/useDateTimeManager.d.ts +3 -4
- package/managers/useTimeManager.d.ts +3 -4
- package/models/adapters.d.ts +2 -1
- package/models/fields.d.ts +2 -2
- package/models/manager.d.ts +4 -5
- package/modern/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.d.ts +1 -1
- package/modern/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +47 -45
- package/modern/AdapterDateFnsV2/AdapterDateFnsV2.d.ts +1 -1
- package/modern/AdapterDateFnsV2/AdapterDateFnsV2.js +47 -45
- package/modern/AdapterDayjs/AdapterDayjs.js +9 -5
- package/modern/DateCalendar/DateCalendar.js +1 -1
- package/modern/DateField/useDateField.d.ts +1 -1
- package/modern/DatePicker/DatePicker.types.d.ts +2 -2
- package/modern/DatePicker/shared.d.ts +1 -1
- package/modern/DateTimeField/useDateTimeField.d.ts +1 -1
- package/modern/DateTimePicker/DateTimePicker.types.d.ts +3 -3
- package/modern/DateTimePicker/DateTimePickerToolbar.d.ts +1 -1
- package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/modern/DateTimePicker/shared.d.ts +18 -10
- package/modern/DateTimePicker/shared.js +23 -2
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -12
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +4 -7
- package/modern/DesktopTimePicker/DesktopTimePicker.types.d.ts +2 -2
- package/modern/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -2
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +62 -7
- package/modern/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +1 -3
- package/modern/PickersTextField/PickersTextField.js +3 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +61 -7
- package/modern/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +1 -2
- package/modern/TimeClock/Clock.js +2 -2
- package/modern/TimeClock/ClockPointer.js +1 -1
- package/modern/TimeField/useTimeField.d.ts +1 -1
- package/modern/TimePicker/TimePicker.types.d.ts +2 -2
- package/modern/TimePicker/shared.d.ts +1 -1
- package/modern/hooks/useSplitFieldProps.d.ts +1 -1
- package/modern/hooks/useSplitFieldProps.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/components/PickerFieldUI.d.ts +7 -0
- package/modern/internals/components/PickerFieldUI.js +8 -4
- package/modern/internals/components/PickerPopper/PickerPopper.d.ts +0 -3
- package/modern/internals/components/PickerPopper/PickerPopper.js +26 -14
- package/modern/internals/components/PickerProvider.d.ts +158 -7
- package/modern/internals/components/PickerProvider.js +7 -2
- package/modern/internals/demo/DemoContainer.js +3 -3
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +5 -22
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +4 -12
- package/modern/internals/hooks/useField/index.d.ts +1 -2
- package/modern/internals/hooks/useField/useField.js +7 -8
- package/modern/internals/hooks/useField/useField.types.d.ts +56 -47
- package/modern/internals/hooks/useField/useField.utils.js +4 -1
- package/modern/internals/hooks/useField/useFieldCharacterEditing.js +2 -2
- package/modern/internals/hooks/useField/useFieldInternalPropsWithDefaults.d.ts +9 -9
- package/modern/internals/hooks/useField/useFieldInternalPropsWithDefaults.js +16 -8
- package/modern/internals/hooks/useField/useFieldState.d.ts +2 -1
- package/modern/internals/hooks/useField/useFieldState.js +136 -83
- package/modern/internals/hooks/useField/useFieldV6TextField.js +9 -7
- package/modern/internals/hooks/useField/useFieldV7TextField.js +9 -8
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +5 -21
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +4 -7
- package/modern/internals/hooks/useNullableFieldPrivateContext.d.ts +9 -0
- package/modern/internals/hooks/useNullableFieldPrivateContext.js +5 -0
- package/modern/internals/hooks/usePicker/hooks/useOrientation.d.ts +2 -0
- package/modern/internals/hooks/usePicker/hooks/useOrientation.js +34 -0
- package/modern/internals/hooks/usePicker/hooks/useValueAndOpenStates.d.ts +19 -0
- package/modern/internals/hooks/usePicker/hooks/useValueAndOpenStates.js +210 -0
- package/modern/internals/hooks/usePicker/index.d.ts +1 -3
- package/modern/internals/hooks/usePicker/usePicker.d.ts +5 -5
- package/modern/internals/hooks/usePicker/usePicker.js +276 -34
- package/modern/internals/hooks/usePicker/usePicker.types.d.ts +181 -9
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +3 -2
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +3 -4
- package/modern/internals/hooks/useValueWithTimezone.d.ts +1 -1
- package/modern/internals/index.d.ts +7 -9
- package/modern/internals/index.js +2 -1
- package/modern/internals/models/fields.d.ts +3 -10
- package/modern/internals/models/manager.d.ts +108 -4
- package/modern/internals/models/props/basePickerProps.d.ts +2 -2
- package/modern/internals/models/props/time.d.ts +1 -1
- package/modern/internals/utils/date-time-utils.d.ts +2 -2
- package/modern/internals/utils/valueManagers.d.ts +1 -1
- package/modern/internals/utils/valueManagers.js +10 -18
- package/modern/locales/bnBD.d.ts +80 -0
- package/modern/locales/bnBD.js +73 -0
- package/modern/locales/index.d.ts +1 -0
- package/modern/locales/index.js +1 -0
- package/modern/managers/useDateManager.d.ts +3 -4
- package/modern/managers/useDateTimeManager.d.ts +3 -4
- package/modern/managers/useTimeManager.d.ts +3 -4
- package/modern/models/adapters.d.ts +2 -1
- package/modern/models/fields.d.ts +2 -2
- package/modern/models/manager.d.ts +4 -5
- package/modern/validation/extractValidationProps.d.ts +1 -1
- package/modern/validation/index.d.ts +1 -1
- package/modern/validation/useValidation.d.ts +2 -2
- package/package.json +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/validation/extractValidationProps.d.ts +1 -1
- package/validation/index.d.ts +1 -1
- package/validation/useValidation.d.ts +2 -2
- package/esm/internals/hooks/useOpenState.d.ts +0 -14
- package/esm/internals/hooks/useOpenState.js +0 -37
- package/esm/internals/hooks/usePicker/usePickerProvider.d.ts +0 -60
- package/esm/internals/hooks/usePicker/usePickerProvider.js +0 -111
- package/esm/internals/hooks/usePicker/usePickerValue.d.ts +0 -12
- package/esm/internals/hooks/usePicker/usePickerValue.js +0 -226
- package/esm/internals/hooks/usePicker/usePickerValue.types.d.ts +0 -327
- package/esm/internals/hooks/usePicker/usePickerValue.types.js +0 -1
- package/esm/internals/hooks/usePicker/usePickerViews.d.ts +0 -120
- package/esm/internals/hooks/usePicker/usePickerViews.js +0 -176
- package/internals/hooks/useOpenState.d.ts +0 -14
- package/internals/hooks/useOpenState.js +0 -46
- package/internals/hooks/usePicker/usePickerProvider.d.ts +0 -60
- package/internals/hooks/usePicker/usePickerProvider.js +0 -121
- package/internals/hooks/usePicker/usePickerValue.d.ts +0 -12
- package/internals/hooks/usePicker/usePickerValue.types.d.ts +0 -327
- package/internals/hooks/usePicker/usePickerValue.types.js +0 -5
- package/internals/hooks/usePicker/usePickerViews.d.ts +0 -120
- package/internals/hooks/usePicker/usePickerViews.js +0 -183
- package/modern/internals/hooks/useOpenState.d.ts +0 -14
- package/modern/internals/hooks/useOpenState.js +0 -37
- package/modern/internals/hooks/usePicker/usePickerProvider.d.ts +0 -60
- package/modern/internals/hooks/usePicker/usePickerProvider.js +0 -111
- package/modern/internals/hooks/usePicker/usePickerValue.d.ts +0 -12
- package/modern/internals/hooks/usePicker/usePickerValue.js +0 -226
- package/modern/internals/hooks/usePicker/usePickerValue.types.d.ts +0 -327
- package/modern/internals/hooks/usePicker/usePickerValue.types.js +0 -1
- package/modern/internals/hooks/usePicker/usePickerViews.d.ts +0 -120
- package/modern/internals/hooks/usePicker/usePickerViews.js +0 -176
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,436 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.0.0-alpha.14
|
|
9
|
+
|
|
10
|
+
_Mar 7, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🚀📊 New Pro Chart: It is now possible to create Funnel charts—perfect for visualizing conversions, sales pipelines and more!
|
|
15
|
+
<img width="418" alt="Screenshot 2025-01-31 at 12 22 31" src="https://github.com/user-attachments/assets/8cd26821-5f11-46bf-a9bb-34d212880a47" />
|
|
16
|
+
- 🎁 The first iteration of the radar chart is available. Features and refinements will be added in the coming weeks.
|
|
17
|
+
- 🛠️ New and improved [Toolbar component](https://next.mui.com/x/react-data-grid/components/toolbar/) for the data grid
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
|
|
20
|
+
Special thanks go out to the community member for their valuable contributions:
|
|
21
|
+
@vadimka123.
|
|
22
|
+
|
|
23
|
+
Following are all team members who have contributed to this release:
|
|
24
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @noraleonte, @oliviertassinari.
|
|
25
|
+
|
|
26
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
27
|
+
|
|
28
|
+
### Data Grid
|
|
29
|
+
|
|
30
|
+
#### Breaking changes
|
|
31
|
+
|
|
32
|
+
- The density selector has been removed from the toolbar. It is still possible to set the density programmatically via the `density` prop. A density selector can be added to a custom toolbar passed to `slots.toolbar`. See [Toolbar component—Settings menu](https://next.mui.com/x/react-data-grid/components/toolbar/#settings-menu) for an example.
|
|
33
|
+
- The quick filter is now shown in the toolbar by default. Use `slotProps={{ toolbar: { showQuickFilter: false } }}` to hide it.
|
|
34
|
+
- The `<GridSaveAltIcon />` icon is not exported anymore. Import `SaveAlt` from `@mui/icons-material` instead.
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid@8.0.0-alpha.14`
|
|
37
|
+
|
|
38
|
+
- [DataGrid] Fix `aria-hidden` console error when scrollbar is dragged (#16829) @arminmeh
|
|
39
|
+
- [DataGrid] Fix scroll jump with dynamic row height (#16763) @cherniavskii
|
|
40
|
+
- [DataGrid] New `<Toolbar />` component (#14611) @KenanYusuf
|
|
41
|
+
- [DataGrid] Use new toolbar by default (#16814) @KenanYusuf
|
|
42
|
+
- [DataGrid] Remove the quick filtering on a given column (#16738) @vadimka123
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.14` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
45
|
+
|
|
46
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.14`.
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.14` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.14`.
|
|
51
|
+
|
|
52
|
+
### Date and Time Pickers
|
|
53
|
+
|
|
54
|
+
#### Breaking changes
|
|
55
|
+
|
|
56
|
+
- All Date Time Picker variants now use Digital Clock for time editing.
|
|
57
|
+
- Stop passing invalid date to `onChange` when the date is partially filled — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#treat-partially-filled-date-as-null-in-onchange).
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.14`
|
|
60
|
+
|
|
61
|
+
- [DateTimePicker] Use Digital Clock in all component variants (#16678) @LukasTy
|
|
62
|
+
- [fields] Always use `props.value` as the source of truth when defined (#15875) @flaviendelangle
|
|
63
|
+
- [fields] Fix Fields aria relationship with `helperText` (#16821) @LukasTy
|
|
64
|
+
- [pickers] Add `TValidationProps` generic to the `PickerManager` interface (#16832) @flaviendelangle
|
|
65
|
+
- [pickers] Fix `edge` property setting in different button position cases (#16838) @LukasTy
|
|
66
|
+
- [pickers] Fix typo in JSDoc (#16831) @flaviendelangle
|
|
67
|
+
- [pickers] Refactor the files in the `usePicker` folder (#16680) @flaviendelangle
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.14` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.14`.
|
|
72
|
+
|
|
73
|
+
### Charts
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-charts@8.0.0-alpha.14`
|
|
76
|
+
|
|
77
|
+
- [charts] Fix `undefined` behaving differently from missing value for axis size (#16844) @bernardobelchior
|
|
78
|
+
- [charts] Fix x-axis text anchor default when language is RTL (#16836) @bernardobelchior
|
|
79
|
+
- [charts] Add Radar chart (#16406) @alexfauquette
|
|
80
|
+
- [charts] Move series default color generation in the series config (#16752) @alexfauquette
|
|
81
|
+
- [charts] Render axis title within axis size (#16730) @bernardobelchior
|
|
82
|
+
- [charts] Split `defaultizeAxis` function into two (#16745) @bernardobelchior
|
|
83
|
+
- [charts] Warn if axes data don't have enough elements (#16830) @alexfauquette
|
|
84
|
+
- [charts] XAxis: Add defaults for `textAnchor` and `dominantBaseline` based on `angle` (#16817) @bernardobelchior
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.14` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
87
|
+
|
|
88
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.14`, plus:
|
|
89
|
+
|
|
90
|
+
- [charts] Add Funnel chart (#14804) @JCQuintas
|
|
91
|
+
|
|
92
|
+
### Tree View
|
|
93
|
+
|
|
94
|
+
#### Breaking changes
|
|
95
|
+
|
|
96
|
+
- The `selectItem` method has been renamed `setItemSelection`:
|
|
97
|
+
|
|
98
|
+
```diff
|
|
99
|
+
const { publicAPI } = useTreeItemUtils();
|
|
100
|
+
|
|
101
|
+
const handleSelectItem() {
|
|
102
|
+
- publicAPI.selectItem({ event, itemId: props.itemId, shouldBeSelected: true })
|
|
103
|
+
+ publicAPI.setItemSelection({ event, itemId: props.itemId, shouldBeSelected: true })
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
- The `setItemExpansion` method now receives a single object instead of a list of parameters:
|
|
108
|
+
|
|
109
|
+
```diff
|
|
110
|
+
const { publicAPI } = useTreeItemUtils();
|
|
111
|
+
|
|
112
|
+
const handleExpandItem() {
|
|
113
|
+
- publicAPI.setItemExpansion(event, props.itemId, true)
|
|
114
|
+
+ publicAPI.setItemExpansion({ event, itemId: props.itemId, shouldBeExpanded: true })
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-tree-view@8.0.0-alpha.14`
|
|
119
|
+
|
|
120
|
+
- [TreeView] Clean the expansion and selection API methods (#16795) @flaviendelangle
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.14` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
123
|
+
|
|
124
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.14`.
|
|
125
|
+
|
|
126
|
+
### Docs
|
|
127
|
+
|
|
128
|
+
- [docs] Fix padding package install on mobile (#16794) @oliviertassinari
|
|
129
|
+
- [docs] Typo fixes (#16835) @alexfauquette
|
|
130
|
+
|
|
131
|
+
### Core
|
|
132
|
+
|
|
133
|
+
- [code-infra] Fix console warning in telemetry package (#16816) @JCQuintas
|
|
134
|
+
- [code-infra] Split date-picker test files (#16825) @JCQuintas
|
|
135
|
+
- [infra] Replace PR label check workflow with reusable version (#16762) @michelengelen
|
|
136
|
+
- [infra] Update label in priority-support issue template (#16767) @michelengelen
|
|
137
|
+
- [test] Add timeout to flaky screenshot tests (#16852) @LukasTy
|
|
138
|
+
|
|
139
|
+
## 8.0.0-alpha.13
|
|
140
|
+
|
|
141
|
+
_Feb 28, 2025_
|
|
142
|
+
|
|
143
|
+
We'd like to offer a big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
144
|
+
|
|
145
|
+
- 📊 Decouple `margin` and `axis-size`. A new API to support multiple axes (#16418) @JCQuintas
|
|
146
|
+
- 🗺️ Added Bangla (bn-BD) locale
|
|
147
|
+
- 🗺️ Improve Russian (ru-RU) and Hungarian (hu-HU) locale on the Data Grid
|
|
148
|
+
|
|
149
|
+
Special thanks go out to the community members for their contributions:
|
|
150
|
+
@denpiligrim, @lhilgert9, @noherczeg, @officialkidmax, @pcorpet.
|
|
151
|
+
Following are all team members who have contributed to this release:
|
|
152
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @MBilalShafi, @oliviertassinari, @romgrk.
|
|
153
|
+
|
|
154
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
155
|
+
|
|
156
|
+
### Data Grid
|
|
157
|
+
|
|
158
|
+
#### Breaking changes
|
|
159
|
+
|
|
160
|
+
- The `slots.baseFormControl` component was removed.
|
|
161
|
+
|
|
162
|
+
- The "Reset" button in the column visibility panel now resets to the initial column visibility model. Previously it was reset to the model that was active at the time the panel was opened. The reset behavior follows these rules:
|
|
163
|
+
|
|
164
|
+
1. If an initial `columnVisibilityModel` is provided, it resets to that model.
|
|
165
|
+
2. If a controlled `columnVisibilityModel` is provided, it resets to the first model value.
|
|
166
|
+
3. When the columns are updated (via the `columns` prop or `updateColumns()` API method), the reset reference point updates to the current `columnVisibilityModel`.
|
|
167
|
+
|
|
168
|
+
To revert to the previous behavior, provide a custom component to the `slots.columnsManagement`.
|
|
169
|
+
|
|
170
|
+
- The deprecated `LicenseInfo` export has been removed from the `@mui/x-data-grid-pro` and `@mui/x-data-grid-premium` packages.
|
|
171
|
+
You have to import it from `@mui/x-license` instead:
|
|
172
|
+
|
|
173
|
+
```diff
|
|
174
|
+
- import { LicenseInfo } from '@mui/x-data-grid-pro';
|
|
175
|
+
- import { LicenseInfo } from '@mui/x-data-grid-premium';
|
|
176
|
+
+ import { LicenseInfo } from '@mui/x-license';
|
|
177
|
+
|
|
178
|
+
LicenseInfo.setLicenseKey('YOUR_LICENSE_KEY');
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
- The row selection model has been changed from `GridRowId[]` to `{ type: 'include' | 'exclude'; ids: Set<GridRowId> }`.
|
|
182
|
+
Using `Set` allows for a more efficient row selection management.
|
|
183
|
+
The `exclude` selection type allows to select all rows except the ones in the `ids` set.
|
|
184
|
+
|
|
185
|
+
This change impacts the following props:
|
|
186
|
+
|
|
187
|
+
- `rowSelectionModel`
|
|
188
|
+
- `onRowSelectionModelChange`
|
|
189
|
+
- `initialState.rowSelectionModel`
|
|
190
|
+
|
|
191
|
+
```diff
|
|
192
|
+
- const [rowSelectionModel, setRowSelectionModel] = React.useState<GridRowSelectionModel>([]);
|
|
193
|
+
+ const [rowSelectionModel, setRowSelectionModel] = React.useState<GridRowSelectionModel>({ type: 'include', ids: new Set() });
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
This change also impacts the `gridRowSelectionStateSelector` selector.
|
|
197
|
+
For convenience, use the `gridRowSelectionManagerSelector` selector to handle both selection types:
|
|
198
|
+
|
|
199
|
+
```diff
|
|
200
|
+
- const rowSelection = gridRowSelectionStateSelector(apiRef);
|
|
201
|
+
- const isRowSelected = rowSelection.includes(rowId);
|
|
202
|
+
+ const rowSelectionManager = gridRowSelectionManagerSelector(apiRef);
|
|
203
|
+
+ const isRowSelected = rowSelectionManager.has(rowId);
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
There is also a `createRowSelectionManager` utility function that can be used to manage the row selection:
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
const rowSelectionManager = createRowSelectionManager({
|
|
210
|
+
type: 'include',
|
|
211
|
+
ids: new Set(),
|
|
212
|
+
});
|
|
213
|
+
rowSelectionManager.select(rowId);
|
|
214
|
+
rowSelectionManager.unselect(rowId);
|
|
215
|
+
rowSelectionManager.has(rowId);
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
- The `selectedIdsLookupSelector` selector has been removed. Use the `gridRowSelectionManagerSelector` or `gridRowSelectionStateSelector` selectors instead.
|
|
219
|
+
- The `selectedGridRowsSelector` has been renamed to `gridRowSelectionIdsSelector`.
|
|
220
|
+
- The `selectedGridRowsCountSelector` has been renamed to `gridRowSelectionCountSelector`.
|
|
221
|
+
|
|
222
|
+
- The data source feature and its related props are now stable.
|
|
223
|
+
|
|
224
|
+
```diff
|
|
225
|
+
<DataGridPro
|
|
226
|
+
- unstable_dataSource={dataSource}
|
|
227
|
+
- unstable_dataSourceCache={cache}
|
|
228
|
+
- unstable_lazyLoading
|
|
229
|
+
- unstable_lazyLoadingRequestThrottleMs={100}
|
|
230
|
+
+ dataSource={dataSource}
|
|
231
|
+
+ dataSourceCache={cache}
|
|
232
|
+
+ lazyLoading
|
|
233
|
+
+ lazyLoadingRequestThrottleMs={100}
|
|
234
|
+
/>
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
- The data source API is now stable.
|
|
238
|
+
|
|
239
|
+
```diff
|
|
240
|
+
- apiRef.current.unstable_dataSource.getRows()
|
|
241
|
+
+ apiRef.current.dataSource.getRows()
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
- The signature of `unstable_onDataSourceError()` has been updated to support future use-cases.
|
|
245
|
+
|
|
246
|
+
```diff
|
|
247
|
+
<DataGrid
|
|
248
|
+
- unstable_onDataSourceError={(error: Error, params: GridGetRowsParams) => {
|
|
249
|
+
- if (params.filterModel) {
|
|
250
|
+
- // do something
|
|
251
|
+
- }
|
|
252
|
+
- }}
|
|
253
|
+
+ unstable_onDataSourceError={(error: GridGetRowsError | GridUpdateRowError) => {
|
|
254
|
+
+ if (error instanceof GridGetRowsError && error.params.filterModel) {
|
|
255
|
+
+ // do something
|
|
256
|
+
+ }
|
|
257
|
+
+ }}
|
|
258
|
+
/>
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
- Fix the type of the `GridSortModel` to allow readonly arrays.
|
|
262
|
+
|
|
263
|
+
- `GridSortItem` interface is not exported anymore.
|
|
264
|
+
|
|
265
|
+
- The `showToolbar` prop is now required to display the toolbar.
|
|
266
|
+
|
|
267
|
+
It is no longer necessary to pass `GridToolbar` as a slot to display the default toolbar.
|
|
268
|
+
|
|
269
|
+
```diff
|
|
270
|
+
<DataGrid
|
|
271
|
+
+ showToolbar
|
|
272
|
+
- slots={{
|
|
273
|
+
- toolbar: GridToolbar,
|
|
274
|
+
- }}
|
|
275
|
+
/>
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
#### `@mui/x-data-grid@8.0.0-alpha.13`
|
|
279
|
+
|
|
280
|
+
- [DataGrid] Add `showToolbar` prop to enable default toolbar (#16687) @KenanYusuf
|
|
281
|
+
- [DataGrid] Column Visibility: Update "Reset" button behavior (#16626) @MBilalShafi
|
|
282
|
+
- [DataGrid] Column management design updates (#16630) @KenanYusuf
|
|
283
|
+
- [DataGrid] Fix `showColumnVerticalBorder` prop (#16715) @KenanYusuf
|
|
284
|
+
- [DataGrid] Fix scrollbar overlapping cells on mount (#16639) @KenanYusuf
|
|
285
|
+
- [DataGrid] Fix: base `Select` menuprops `onClose()` (#16643) @romgrk
|
|
286
|
+
- [DataGrid] Make `GridSortItem` internal (#16732) @arminmeh
|
|
287
|
+
- [DataGrid] Make data source stable (#16710) @MBilalShafi
|
|
288
|
+
- [DataGrid] Reshape row selection model (#15651) @cherniavskii
|
|
289
|
+
- [DataGrid] Replace `sx` prop usage with `styled()` components (#16665) @KenanYusuf
|
|
290
|
+
- [DataGrid] Refactor: create base `Autocomplete` (#16390) @romgrk
|
|
291
|
+
- [DataGrid] Refactor: remove base form control (#16634) @romgrk
|
|
292
|
+
- [DataGrid] Refactor: remove base input label & adornment (#16646) @romgrk
|
|
293
|
+
- [DataGrid] Refactor: remove material containers (#16633) @romgrk
|
|
294
|
+
- [DataGrid] Refactor: theme to CSS variables (#16588) @romgrk
|
|
295
|
+
- [DataGrid] Update the signature of the `onDataSourceError()` callback (#16718) @MBilalShafi
|
|
296
|
+
- [DataGrid] Use readonly array for the `GridSortModel` (#16627) @pcorpet
|
|
297
|
+
- [DataGrid] Fix the popper focus trap (#16736) @romgrk
|
|
298
|
+
- [l10n] Added Bangla (bn-BD) locale (#16648) @officialkidmax
|
|
299
|
+
- [l10n] Improve Hungarian (hu-HU) locale (#16578) @noherczeg
|
|
300
|
+
- [l10n] Improve Russian (ru-RU) locale (#16591) @denpiligrim
|
|
301
|
+
|
|
302
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
303
|
+
|
|
304
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.13`, plus:
|
|
305
|
+
|
|
306
|
+
- [DataGridPro] Remove `LicenseInfo` reexports (#16671) @cherniavskii
|
|
307
|
+
|
|
308
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.13` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
309
|
+
|
|
310
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.13`, plus:
|
|
311
|
+
|
|
312
|
+
- [DataGridPremium] Use `valueGetter` to get row group keys (#16016) @cherniavskii
|
|
313
|
+
|
|
314
|
+
### Date and Time Pickers
|
|
315
|
+
|
|
316
|
+
#### Breaking changes
|
|
317
|
+
|
|
318
|
+
- The `<DateRangePicker />` now uses a `dialog` instead of a `tooltip` to render their view when used with a single input range field.
|
|
319
|
+
|
|
320
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.13`
|
|
321
|
+
|
|
322
|
+
- [l10n] Added Bangla (bn-BD) locale (#16648) @officialkidmax
|
|
323
|
+
- [pickers] Clean the typing of the slots on the range pickers (#16670) @flaviendelangle
|
|
324
|
+
- [pickers] Fix Time Clock meridiem button selected styles (#16681) @LukasTy
|
|
325
|
+
- [pickers] Make the single input field the default field on range pickers (#16656) @flaviendelangle
|
|
326
|
+
- [pickers] Move the opening logic to the range fields (#16175) @flaviendelangle
|
|
327
|
+
|
|
328
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
329
|
+
|
|
330
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.13`.
|
|
331
|
+
|
|
332
|
+
### Charts
|
|
333
|
+
|
|
334
|
+
#### Breaking changes
|
|
335
|
+
|
|
336
|
+
- Charts array inputs are now `readonly`. Allowing externally defined `as const` to be used as a prop value of the React component.
|
|
337
|
+
|
|
338
|
+
```tsx
|
|
339
|
+
const xAxis = [{ position: 'bottom' }] as const
|
|
340
|
+
<BarChart xAxis={xAxis} />
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
- Replace `topAxis`, `rightAxis`, `bottomAxis` and `leftAxis` props by the `position` property in the axis config.
|
|
344
|
+
If you were using them to place axis, set the `position` property to the corresponding value `'top' | 'right' | 'bottom' | 'left'`.
|
|
345
|
+
If you were disabling an axis by setting it to `null`, set its `position` to `'none'`.
|
|
346
|
+
|
|
347
|
+
```diff
|
|
348
|
+
<LineChart
|
|
349
|
+
yAxis={[
|
|
350
|
+
{
|
|
351
|
+
scaleType: 'linear',
|
|
352
|
+
+ position: 'right',
|
|
353
|
+
},
|
|
354
|
+
]}
|
|
355
|
+
series={[{ data: [1, 10, 30, 50, 70, 90, 100], label: 'linear' }]}
|
|
356
|
+
height={400}
|
|
357
|
+
- rightAxis={{}}
|
|
358
|
+
/>
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
- Remove `position` prop from `ChartsXAxis` and `ChartsYAxis`.
|
|
362
|
+
The `position` prop has been removed from the `ChartsXAxis` and `ChartsYAxis` components. Configure it directly in the axis config.
|
|
363
|
+
|
|
364
|
+
```diff
|
|
365
|
+
<ChartContainer
|
|
366
|
+
yAxis={[
|
|
367
|
+
{
|
|
368
|
+
id: 'my-axis',
|
|
369
|
+
+ position: 'right',
|
|
370
|
+
},
|
|
371
|
+
]}
|
|
372
|
+
>
|
|
373
|
+
- <ChartsYAxis axisId="my-axis" position="right" />
|
|
374
|
+
+ <ChartsYAxis axisId="my-axis" />
|
|
375
|
+
</ChartContainer>
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
- Add `minTickLabelGap` to x-axis, which allows users to define the minimum gap, in pixels, between two tick labels. The default value is 4px. Make sure to check your charts as the spacing between tick labels might have changed.
|
|
379
|
+
|
|
380
|
+
#### `@mui/x-charts@8.0.0-alpha.13`
|
|
381
|
+
|
|
382
|
+
- [charts] Accept component in `labelMarkType` (#16739) @bernardobelchior
|
|
383
|
+
- [charts] Add `minTickLabelGap` to x-axis (#16548) @bernardobelchior
|
|
384
|
+
- [charts] Add unit test for pie chart with empty series (#16663) @bernardobelchior
|
|
385
|
+
- [charts] Decouple `margin` and `axis-size` (#16418) @JCQuintas
|
|
386
|
+
- [charts] Display slider tooltip on demos (#16723) @JCQuintas
|
|
387
|
+
- [charts] Fix composition docs link (#16761) @bernardobelchior
|
|
388
|
+
- [charts] Fix default label measurement being off (#16635) @bernardobelchior
|
|
389
|
+
- [charts] Fix is highlighted memoization (#16592) @alexfauquette
|
|
390
|
+
- [charts] Fix missing `theme.shape` error in the tooltip (#16748) @alexfauquette
|
|
391
|
+
- [charts] Fix typo in error message (#16641) @JCQuintas
|
|
392
|
+
- [charts] Improve axis size docs (#16673) @JCQuintas
|
|
393
|
+
- [charts] Improve performance of rendering ticks in x-axis (#16536) @bernardobelchior
|
|
394
|
+
- [charts] Make `defaultizeAxis` function type-safe (#16642) @JCQuintas
|
|
395
|
+
- [charts] Make `series.data` readonly (#16645) @JCQuintas
|
|
396
|
+
- [charts] Migrate `ChartsUsageDemo` to TSX and removed NoSnap (#16686) @JCQuintas
|
|
397
|
+
- [charts] Prevent `position='none'` axes from rendering (#16727) @JCQuintas
|
|
398
|
+
- [charts] Make array inputs readonly (#16632) @JCQuintas
|
|
399
|
+
- [charts] Remove state initialization hack (#16520) @alexfauquette
|
|
400
|
+
- [charts] Remove redundant default axis (#16734) @bernardobelchior
|
|
401
|
+
|
|
402
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
403
|
+
|
|
404
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.13`, plus:
|
|
405
|
+
|
|
406
|
+
- [charts-pro] Add back zoom control (#16550) @alexfauquette
|
|
407
|
+
|
|
408
|
+
### Tree View
|
|
409
|
+
|
|
410
|
+
#### `@mui/x-tree-view@8.0.0-alpha.13`
|
|
411
|
+
|
|
412
|
+
Internal changes.
|
|
413
|
+
|
|
414
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
415
|
+
|
|
416
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.13`.
|
|
417
|
+
|
|
418
|
+
### `@mui/x-codemod@8.0.0-alpha.13`
|
|
419
|
+
|
|
420
|
+
- [codemod] Add a few Data Grid codemods (#16711) @MBilalShafi
|
|
421
|
+
- [codemod] Improve Pickers renaming codemod (#16685) @LukasTy
|
|
422
|
+
|
|
423
|
+
### Docs
|
|
424
|
+
|
|
425
|
+
- [docs] Fix charts with on bar and line pages (#16712) @alexfauquette
|
|
426
|
+
- [docs] Fix migration guide introduction for charts (#16679) @alexfauquette
|
|
427
|
+
- [docs] Fix remaining charts demos on mobile (#16728) @alexfauquette
|
|
428
|
+
- [docs] Fix scroll overflow on mobile (#16675) @oliviertassinari
|
|
429
|
+
- [docs] Improve Pickers migration page (#16682) @LukasTy
|
|
430
|
+
- [docs] Update small Pickers doc inconsistencies (#16724) @LukasTy
|
|
431
|
+
- [code-infra] Charts changes for `vitest` (#16755) @JCQuintas
|
|
432
|
+
- [code-infra] General packages changes for `vitest` (#16757) @JCQuintas
|
|
433
|
+
- [code-infra] Native Node.js ESM (#16603) @Janpot
|
|
434
|
+
- [infra] Update contributor acknowledgment wording (#16751) @michelengelen
|
|
435
|
+
- [test] Revert timeout increase for possibly slow tests (#16651) @LukasTy
|
|
436
|
+
- [x-license] Introduce usage telemetry (#13530) @hasdfa
|
|
437
|
+
|
|
8
438
|
## 8.0.0-alpha.12
|
|
9
439
|
|
|
10
440
|
_Feb 17, 2025_
|
|
@@ -351,6 +351,7 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
|
|
|
351
351
|
referenceDate: referenceDate
|
|
352
352
|
})), view === 'day' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DayCalendar.DayCalendar, (0, _extends2.default)({}, calendarState, baseDateValidationProps, commonViewProps, {
|
|
353
353
|
onMonthSwitchingAnimationEnd: onMonthSwitchingAnimationEnd,
|
|
354
|
+
hasFocus: hasFocus,
|
|
354
355
|
onFocusedDayChange: focusedDate => setVisibleDate({
|
|
355
356
|
target: focusedDate,
|
|
356
357
|
reason: 'cell-interaction'
|
|
@@ -361,7 +362,6 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
|
|
|
361
362
|
shouldDisableDate: shouldDisableDate,
|
|
362
363
|
shouldDisableMonth: shouldDisableMonth,
|
|
363
364
|
shouldDisableYear: shouldDisableYear,
|
|
364
|
-
hasFocus: hasFocus,
|
|
365
365
|
onFocusedViewChange: isViewFocused => setFocusedView('day', isViewFocused),
|
|
366
366
|
showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth,
|
|
367
367
|
fixedWeekNumber: fixedWeekNumber,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UseDateFieldProps } from "./DateField.types.js";
|
|
2
|
-
export declare const useDateField: <TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseDateFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TAllProps) => import("../internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps, "disabled" | "readOnly" | "value" | "defaultValue" | "autoFocus" | "onChange" | "onError" | "format" | "
|
|
2
|
+
export declare const useDateField: <TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseDateFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TAllProps) => import("../internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps, "disabled" | "readOnly" | "value" | "defaultValue" | "autoFocus" | "onChange" | "onError" | "format" | "focused" | keyof import("../internals").BaseDateValidationProps | "shouldDisableYear" | "shouldDisableMonth" | "shouldDisableDate" | "referenceDate" | "formatDensity" | "timezone" | "shouldRespectLeadingZeros" | "selectedSections" | "onSelectedSectionsChange" | "unstableFieldRef" | "unstableStartFieldRef" | "unstableEndFieldRef" | "enableAccessibleFieldDOMStructure" | "dateSeparator">>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesktopDatePickerProps, DesktopDatePickerSlots, DesktopDatePickerSlotProps } from "../DesktopDatePicker/index.js";
|
|
2
|
-
import { BaseSingleInputFieldProps
|
|
2
|
+
import { BaseSingleInputFieldProps } from "../internals/models/index.js";
|
|
3
3
|
import { MobileDatePickerProps, MobileDatePickerSlots, MobileDatePickerSlotProps } from "../MobileDatePicker/index.js";
|
|
4
4
|
import { ValidateDateProps } from "../validation/validateDate.js";
|
|
5
5
|
export interface DatePickerSlots extends DesktopDatePickerSlots, MobileDatePickerSlots {}
|
|
@@ -35,4 +35,4 @@ export interface DatePickerProps<TEnableAccessibleFieldDOMStructure extends bool
|
|
|
35
35
|
/**
|
|
36
36
|
* Props the field can receive when used inside a date picker (<DatePicker />, <DesktopDatePicker /> or <MobileDatePicker /> component).
|
|
37
37
|
*/
|
|
38
|
-
export type DatePickerFieldProps = ValidateDateProps & BaseSingleInputFieldProps
|
|
38
|
+
export type DatePickerFieldProps = ValidateDateProps & BaseSingleInputFieldProps;
|
package/DatePicker/shared.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { DateValidationError, DateView } from "../models/index.js";
|
|
|
5
5
|
import { BasePickerInputProps } from "../internals/models/props/basePickerProps.js";
|
|
6
6
|
import { LocalizedComponent } from "../locales/utils/pickersLocaleTextApi.js";
|
|
7
7
|
import { DatePickerToolbarProps, ExportedDatePickerToolbarProps } from "./DatePickerToolbar.js";
|
|
8
|
-
import { PickerViewRendererLookup } from "../internals/hooks/usePicker/
|
|
8
|
+
import { PickerViewRendererLookup } from "../internals/hooks/usePicker/index.js";
|
|
9
9
|
import { DateViewRendererProps } from "../dateViewRenderers/index.js";
|
|
10
10
|
import { PickerValue } from "../internals/models/index.js";
|
|
11
11
|
import { ValidateDatePropsToDefault } from "../validation/validateDate.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UseDateTimeFieldProps } from "./DateTimeField.types.js";
|
|
2
|
-
export declare const useDateTimeField: <TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseDateTimeFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TAllProps) => import("../internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps, "disabled" | "readOnly" | "value" | "defaultValue" | "autoFocus" | "onChange" | "onError" | "format" | "
|
|
2
|
+
export declare const useDateTimeField: <TEnableAccessibleFieldDOMStructure extends boolean, TAllProps extends UseDateTimeFieldProps<TEnableAccessibleFieldDOMStructure>>(props: TAllProps) => import("../internals").UseFieldResponse<TEnableAccessibleFieldDOMStructure, Omit<TAllProps, "disabled" | "readOnly" | "value" | "defaultValue" | "autoFocus" | "onChange" | "onError" | "format" | "focused" | "maxDate" | "minDate" | "disablePast" | "disableFuture" | "shouldDisableYear" | "shouldDisableMonth" | "shouldDisableDate" | "minTime" | "maxTime" | "minutesStep" | "shouldDisableTime" | "disableIgnoringDatePartForTimeValidation" | "ampm" | "minDateTime" | "maxDateTime" | "referenceDate" | "formatDensity" | "timezone" | "shouldRespectLeadingZeros" | "selectedSections" | "onSelectedSectionsChange" | "unstableFieldRef" | "unstableStartFieldRef" | "unstableEndFieldRef" | "enableAccessibleFieldDOMStructure" | "dateSeparator">>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DesktopDateTimePickerProps, DesktopDateTimePickerSlots, DesktopDateTimePickerSlotProps } from "../DesktopDateTimePicker/index.js";
|
|
2
|
-
import { BaseSingleInputFieldProps
|
|
2
|
+
import { BaseSingleInputFieldProps } from "../internals/models/index.js";
|
|
3
3
|
import { MobileDateTimePickerProps, MobileDateTimePickerSlots, MobileDateTimePickerSlotProps } from "../MobileDateTimePicker/index.js";
|
|
4
4
|
import { ValidateDateTimeProps } from "../validation/index.js";
|
|
5
5
|
import { ExportedYearCalendarProps } from "../YearCalendar/YearCalendar.types.js";
|
|
6
6
|
export interface DateTimePickerSlots extends DesktopDateTimePickerSlots, MobileDateTimePickerSlots {}
|
|
7
7
|
export interface DateTimePickerSlotProps<TEnableAccessibleFieldDOMStructure extends boolean> extends DesktopDateTimePickerSlotProps<TEnableAccessibleFieldDOMStructure>, MobileDateTimePickerSlotProps<TEnableAccessibleFieldDOMStructure> {}
|
|
8
|
-
export interface DateTimePickerProps<TEnableAccessibleFieldDOMStructure extends boolean = true> extends DesktopDateTimePickerProps<TEnableAccessibleFieldDOMStructure>, ExportedYearCalendarProps, Omit<MobileDateTimePickerProps<
|
|
8
|
+
export interface DateTimePickerProps<TEnableAccessibleFieldDOMStructure extends boolean = true> extends DesktopDateTimePickerProps<TEnableAccessibleFieldDOMStructure>, ExportedYearCalendarProps, Omit<MobileDateTimePickerProps<TEnableAccessibleFieldDOMStructure>, 'views'> {
|
|
9
9
|
/**
|
|
10
10
|
* CSS media query when `Mobile` mode will be changed to `Desktop`.
|
|
11
11
|
* @default '@media (pointer: fine)'
|
|
@@ -31,4 +31,4 @@ export interface DateTimePickerProps<TEnableAccessibleFieldDOMStructure extends
|
|
|
31
31
|
/**
|
|
32
32
|
* Props the field can receive when used inside a date time picker (<DateTimePicker />, <DesktopDateTimePicker /> or <MobileDateTimePicker /> component).
|
|
33
33
|
*/
|
|
34
|
-
export type DateTimePickerFieldProps = ValidateDateTimeProps & BaseSingleInputFieldProps
|
|
34
|
+
export type DateTimePickerFieldProps = ValidateDateTimeProps & BaseSingleInputFieldProps;
|
|
@@ -3,7 +3,7 @@ import { BaseToolbarProps, ExportedBaseToolbarProps } from "../internals/models/
|
|
|
3
3
|
import { DateTimePickerToolbarClasses } from "./dateTimePickerToolbarClasses.js";
|
|
4
4
|
import { DateOrTimeViewWithMeridiem, PickerValue } from "../internals/models/index.js";
|
|
5
5
|
import { DateTimeValidationError } from "../models/index.js";
|
|
6
|
-
import { SetValueActionOptions } from "../internals/
|
|
6
|
+
import { SetValueActionOptions } from "../internals/components/PickerProvider.js";
|
|
7
7
|
export interface ExportedDateTimePickerToolbarProps extends ExportedBaseToolbarProps {
|
|
8
8
|
/**
|
|
9
9
|
* Override or extend the styles applied to the component.
|
|
@@ -65,7 +65,7 @@ const DateTimePickerToolbarRoot = (0, _styles.styled)(_PickersToolbar.PickersToo
|
|
|
65
65
|
},
|
|
66
66
|
style: {
|
|
67
67
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
68
|
-
[`& .${_pickersToolbarClasses.pickersToolbarClasses.content} .${_pickersToolbarTextClasses.pickersToolbarTextClasses.selected
|
|
68
|
+
[`& .${_pickersToolbarClasses.pickersToolbarClasses.content} .${_pickersToolbarTextClasses.pickersToolbarTextClasses.root}[data-selected]`]: {
|
|
69
69
|
color: (theme.vars || theme).palette.primary.main,
|
|
70
70
|
fontWeight: theme.typography.fontWeightBold
|
|
71
71
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DefaultizedProps } from '@mui/x-internals/types';
|
|
3
|
-
import { DateTimeValidationError } from "../models/index.js";
|
|
3
|
+
import { DateOrTimeView, DateTimeValidationError } from "../models/index.js";
|
|
4
4
|
import { DateCalendarSlots, DateCalendarSlotProps, ExportedDateCalendarProps } from "../DateCalendar/DateCalendar.types.js";
|
|
5
|
-
import { TimeClockSlots, TimeClockSlotProps } from "../TimeClock/TimeClock.types.js";
|
|
6
5
|
import { BasePickerInputProps } from "../internals/models/props/basePickerProps.js";
|
|
7
6
|
import { DateTimePickerTabsProps } from "./DateTimePickerTabs.js";
|
|
8
7
|
import { LocalizedComponent } from "../locales/utils/pickersLocaleTextApi.js";
|
|
9
8
|
import { DateTimePickerToolbarProps, ExportedDateTimePickerToolbarProps } from "./DateTimePickerToolbar.js";
|
|
10
|
-
import { PickerViewRendererLookup } from "../internals/hooks/usePicker/
|
|
9
|
+
import { PickerViewRendererLookup } from "../internals/hooks/usePicker/index.js";
|
|
11
10
|
import { DateViewRendererProps } from "../dateViewRenderers/index.js";
|
|
12
11
|
import { TimeViewRendererProps } from "../timeViewRenderers/index.js";
|
|
13
|
-
import { BaseClockProps,
|
|
12
|
+
import { BaseClockProps, DigitalTimePickerProps } from "../internals/models/props/time.js";
|
|
14
13
|
import { DateOrTimeViewWithMeridiem, PickerValue, TimeViewWithMeridiem } from "../internals/models/index.js";
|
|
15
14
|
import { ExportedValidateDateTimeProps, ValidateDateTimePropsToDefault } from "../validation/validateDateTime.js";
|
|
16
|
-
|
|
15
|
+
import { DigitalClockSlotProps, DigitalClockSlots } from "../DigitalClock/index.js";
|
|
16
|
+
import { MultiSectionDigitalClockSlotProps, MultiSectionDigitalClockSlots } from "../MultiSectionDigitalClock/index.js";
|
|
17
|
+
export interface BaseDateTimePickerSlots extends DateCalendarSlots, DigitalClockSlots, MultiSectionDigitalClockSlots {
|
|
17
18
|
/**
|
|
18
19
|
* Tabs enabling toggling between date and time pickers.
|
|
19
20
|
* @default DateTimePickerTabs
|
|
@@ -25,7 +26,7 @@ export interface BaseDateTimePickerSlots extends DateCalendarSlots, TimeClockSlo
|
|
|
25
26
|
*/
|
|
26
27
|
toolbar?: React.JSXElementConstructor<DateTimePickerToolbarProps>;
|
|
27
28
|
}
|
|
28
|
-
export interface BaseDateTimePickerSlotProps extends DateCalendarSlotProps,
|
|
29
|
+
export interface BaseDateTimePickerSlotProps extends DateCalendarSlotProps, DigitalClockSlotProps, MultiSectionDigitalClockSlotProps {
|
|
29
30
|
/**
|
|
30
31
|
* Props passed down to the tabs component.
|
|
31
32
|
*/
|
|
@@ -36,7 +37,7 @@ export interface BaseDateTimePickerSlotProps extends DateCalendarSlotProps, Time
|
|
|
36
37
|
toolbar?: ExportedDateTimePickerToolbarProps;
|
|
37
38
|
}
|
|
38
39
|
export type DateTimePickerViewRenderers<TView extends DateOrTimeViewWithMeridiem> = PickerViewRendererLookup<PickerValue, TView, Omit<DateViewRendererProps<TView>, 'slots' | 'slotProps'> & Omit<TimeViewRendererProps<TimeViewWithMeridiem, BaseClockProps<TimeViewWithMeridiem>>, 'slots' | 'slotProps'>>;
|
|
39
|
-
export interface BaseDateTimePickerProps
|
|
40
|
+
export interface BaseDateTimePickerProps extends Omit<BasePickerInputProps<PickerValue, DateOrTimeViewWithMeridiem, DateTimeValidationError>, 'views'>, Omit<ExportedDateCalendarProps, 'onViewChange' | 'views'>, DigitalTimePickerProps, ExportedValidateDateTimeProps {
|
|
40
41
|
/**
|
|
41
42
|
* Display ampm controls under the clock (instead of in the toolbar).
|
|
42
43
|
* @default true on desktop, false on mobile
|
|
@@ -57,8 +58,15 @@ export interface BaseDateTimePickerProps<TView extends DateOrTimeViewWithMeridie
|
|
|
57
58
|
* If `null`, the section will only have field editing.
|
|
58
59
|
* If `undefined`, internally defined view will be used.
|
|
59
60
|
*/
|
|
60
|
-
viewRenderers?: Partial<DateTimePickerViewRenderers<
|
|
61
|
+
viewRenderers?: Partial<DateTimePickerViewRenderers<DateOrTimeViewWithMeridiem>>;
|
|
62
|
+
/**
|
|
63
|
+
* Available views.
|
|
64
|
+
*/
|
|
65
|
+
views?: readonly DateOrTimeView[];
|
|
61
66
|
}
|
|
62
|
-
type UseDateTimePickerDefaultizedProps<
|
|
63
|
-
|
|
67
|
+
type UseDateTimePickerDefaultizedProps<Props extends BaseDateTimePickerProps> = LocalizedComponent<Omit<DefaultizedProps<Props, 'openTo' | 'orientation' | 'ampm' | ValidateDateTimePropsToDefault>, 'views'>> & {
|
|
68
|
+
shouldRenderTimeInASingleColumn: boolean;
|
|
69
|
+
views: readonly DateOrTimeViewWithMeridiem[];
|
|
70
|
+
};
|
|
71
|
+
export declare function useDateTimePickerDefaultizedProps<Props extends BaseDateTimePickerProps>(props: Props, name: string): UseDateTimePickerDefaultizedProps<Props>;
|
|
64
72
|
export {};
|
package/DateTimePicker/shared.js
CHANGED
|
@@ -14,6 +14,7 @@ var _dateUtils = require("../internals/utils/date-utils");
|
|
|
14
14
|
var _DateTimePickerTabs = require("./DateTimePickerTabs");
|
|
15
15
|
var _DateTimePickerToolbar = require("./DateTimePickerToolbar");
|
|
16
16
|
var _views = require("../internals/utils/views");
|
|
17
|
+
var _dateTimeUtils = require("../internals/utils/date-time-utils");
|
|
17
18
|
function useDateTimePickerDefaultizedProps(props, name) {
|
|
18
19
|
const utils = (0, _useUtils.useUtils)();
|
|
19
20
|
const defaultDates = (0, _useUtils.useDefaultDates)();
|
|
@@ -30,12 +31,32 @@ function useDateTimePickerDefaultizedProps(props, name) {
|
|
|
30
31
|
dateTimePickerToolbarTitle: themeProps.localeText.toolbarTitle
|
|
31
32
|
});
|
|
32
33
|
}, [themeProps.localeText]);
|
|
33
|
-
|
|
34
|
+
const {
|
|
35
|
+
openTo,
|
|
36
|
+
views: defaultViews
|
|
37
|
+
} = (0, _views.applyDefaultViewProps)({
|
|
34
38
|
views: themeProps.views,
|
|
35
39
|
openTo: themeProps.openTo,
|
|
36
40
|
defaultViews: ['year', 'day', 'hours', 'minutes'],
|
|
37
41
|
defaultOpenTo: 'day'
|
|
38
|
-
})
|
|
42
|
+
});
|
|
43
|
+
const {
|
|
44
|
+
shouldRenderTimeInASingleColumn,
|
|
45
|
+
thresholdToRenderTimeInASingleColumn,
|
|
46
|
+
views,
|
|
47
|
+
timeSteps
|
|
48
|
+
} = (0, _dateTimeUtils.resolveTimeViewsResponse)({
|
|
49
|
+
thresholdToRenderTimeInASingleColumn: themeProps.thresholdToRenderTimeInASingleColumn,
|
|
50
|
+
ampm,
|
|
51
|
+
timeSteps: themeProps.timeSteps,
|
|
52
|
+
views: defaultViews
|
|
53
|
+
});
|
|
54
|
+
return (0, _extends2.default)({}, themeProps, {
|
|
55
|
+
timeSteps,
|
|
56
|
+
openTo,
|
|
57
|
+
shouldRenderTimeInASingleColumn,
|
|
58
|
+
thresholdToRenderTimeInASingleColumn,
|
|
59
|
+
views,
|
|
39
60
|
ampm,
|
|
40
61
|
localeText,
|
|
41
62
|
orientation: themeProps.orientation ?? 'portrait',
|