@mui/x-date-pickers 7.14.0 → 7.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdapterDateFns/AdapterDateFns.js +1 -1
- package/AdapterDateFns/index.js +1 -1
- package/AdapterDateFnsBase/index.js +1 -1
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/AdapterDateFnsJalali/index.js +1 -1
- package/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +1 -1
- package/AdapterDateFnsJalaliV3/index.js +1 -1
- package/AdapterDateFnsV3/AdapterDateFnsV3.js +1 -1
- package/AdapterDateFnsV3/index.js +1 -1
- package/AdapterDayjs/AdapterDayjs.js +5 -6
- package/AdapterDayjs/index.js +1 -1
- package/AdapterLuxon/AdapterLuxon.js +4 -5
- package/AdapterLuxon/index.js +1 -1
- package/AdapterMoment/AdapterMoment.js +4 -5
- package/AdapterMoment/index.js +1 -1
- package/AdapterMomentHijri/AdapterMomentHijri.js +1 -1
- package/AdapterMomentHijri/index.js +1 -1
- package/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -1
- package/AdapterMomentJalaali/index.js +1 -1
- package/CHANGELOG.md +167 -1
- package/DateCalendar/DateCalendar.js +16 -16
- package/DateCalendar/DayCalendar.js +9 -10
- package/DateCalendar/PickersFadeTransitionGroup.js +1 -1
- package/DateCalendar/PickersSlideTransition.js +1 -1
- package/DateCalendar/index.js +5 -5
- package/DateCalendar/useCalendarState.js +4 -4
- package/DateCalendar/useIsDateDisabled.js +2 -2
- package/DateField/DateField.js +13 -11
- package/DateField/index.js +2 -2
- package/DateField/useDateField.js +5 -5
- package/DatePicker/DatePicker.js +14 -14
- package/DatePicker/DatePickerToolbar.js +5 -5
- package/DatePicker/index.js +3 -3
- package/DatePicker/shared.js +4 -4
- package/DateTimeField/DateTimeField.js +13 -11
- package/DateTimeField/index.js +2 -2
- package/DateTimeField/useDateTimeField.js +5 -5
- package/DateTimePicker/DateTimePicker.js +14 -14
- package/DateTimePicker/DateTimePickerTabs.js +4 -4
- package/DateTimePicker/DateTimePickerToolbar.js +11 -11
- package/DateTimePicker/index.js +5 -5
- package/DateTimePicker/shared.js +5 -5
- package/DayCalendarSkeleton/DayCalendarSkeleton.js +2 -2
- package/DayCalendarSkeleton/index.js +2 -2
- package/DesktopDatePicker/DesktopDatePicker.js +22 -22
- package/DesktopDatePicker/index.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +29 -29
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -1
- package/DesktopDateTimePicker/index.js +2 -2
- package/DesktopTimePicker/DesktopTimePicker.js +23 -23
- package/DesktopTimePicker/index.js +1 -1
- package/DigitalClock/DigitalClock.js +11 -11
- package/DigitalClock/index.js +2 -2
- package/LocalizationProvider/index.js +1 -1
- package/MobileDatePicker/MobileDatePicker.js +21 -21
- package/MobileDatePicker/index.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +22 -22
- package/MobileDateTimePicker/index.js +1 -1
- package/MobileTimePicker/MobileTimePicker.js +21 -21
- package/MobileTimePicker/index.js +1 -1
- package/MonthCalendar/MonthCalendar.js +8 -8
- package/MonthCalendar/PickersMonth.js +1 -1
- package/MonthCalendar/index.js +3 -3
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +17 -17
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -2
- package/MultiSectionDigitalClock/index.js +3 -3
- package/PickersActionBar/PickersActionBar.js +1 -1
- package/PickersActionBar/index.js +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +7 -7
- package/PickersCalendarHeader/index.js +2 -2
- package/PickersDay/PickersDay.js +3 -3
- package/PickersDay/index.js +2 -2
- package/PickersLayout/PickersLayout.js +2 -2
- package/PickersLayout/index.js +3 -3
- package/PickersLayout/usePickerLayout.js +3 -3
- package/PickersSectionList/PickersSectionList.js +1 -1
- package/PickersSectionList/index.js +2 -2
- package/PickersShortcuts/PickersShortcuts.js +1 -1
- package/PickersShortcuts/index.js +1 -1
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +3 -3
- package/PickersTextField/PickersFilledInput/index.js +2 -2
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +1 -1
- package/PickersTextField/PickersInput/PickersInput.js +3 -3
- package/PickersTextField/PickersInput/index.js +2 -2
- package/PickersTextField/PickersInput/pickersInputClasses.js +1 -1
- package/PickersTextField/PickersInputBase/PickersInputBase.js +2 -2
- package/PickersTextField/PickersInputBase/index.js +2 -2
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +4 -4
- package/PickersTextField/PickersOutlinedInput/index.js +2 -2
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +1 -1
- package/PickersTextField/PickersTextField.js +4 -4
- package/PickersTextField/index.js +6 -6
- package/StaticDatePicker/StaticDatePicker.js +16 -16
- package/StaticDatePicker/index.js +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +17 -17
- package/StaticDateTimePicker/index.js +1 -1
- package/StaticTimePicker/StaticTimePicker.js +16 -16
- package/StaticTimePicker/index.js +1 -1
- package/TimeClock/Clock.js +9 -8
- package/TimeClock/ClockNumber.js +2 -2
- package/TimeClock/ClockNumbers.js +2 -2
- package/TimeClock/ClockPointer.js +2 -2
- package/TimeClock/TimeClock.js +14 -14
- package/TimeClock/index.js +5 -5
- package/TimeField/TimeField.js +13 -11
- package/TimeField/index.js +2 -2
- package/TimeField/useTimeField.js +5 -5
- package/TimePicker/TimePicker.js +14 -14
- package/TimePicker/TimePickerToolbar.js +9 -9
- package/TimePicker/index.js +3 -3
- package/TimePicker/shared.js +3 -3
- package/YearCalendar/PickersYear.js +1 -1
- package/YearCalendar/YearCalendar.js +8 -8
- package/YearCalendar/index.js +3 -3
- package/dateViewRenderers/dateViewRenderers.js +2 -2
- package/dateViewRenderers/index.js +1 -1
- package/hooks/index.js +2 -2
- package/hooks/useClearableField.js +2 -2
- package/hooks/usePickersTranslations.js +1 -1
- package/icons/index.js +8 -8
- package/index.js +38 -38
- package/internals/components/PickerViewRoot/PickerViewRoot.js +1 -1
- package/internals/components/PickerViewRoot/index.js +1 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -2
- package/internals/components/PickersArrowSwitcher/index.js +2 -2
- package/internals/components/PickersModalDialog.js +1 -1
- package/internals/components/PickersPopper.js +3 -3
- package/internals/components/PickersToolbar.js +1 -1
- package/internals/components/PickersToolbarButton.js +2 -2
- package/internals/components/PickersToolbarText.js +1 -1
- package/internals/demo/DemoContainer.js +3 -3
- package/internals/demo/index.js +1 -1
- package/internals/hooks/date-helpers-hooks.js +2 -2
- package/internals/hooks/defaultizedFieldProps.js +2 -2
- package/internals/hooks/useClockReferenceDate.js +3 -3
- package/internals/hooks/useDesktopPicker/index.js +1 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +16 -6
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +4 -1
- package/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/internals/hooks/useField/index.js +2 -2
- package/internals/hooks/useField/useField.js +7 -7
- package/internals/hooks/useField/useField.types.d.ts +9 -7
- package/internals/hooks/useField/useField.utils.js +1 -1
- package/internals/hooks/useField/useFieldCharacterEditing.js +2 -2
- package/internals/hooks/useField/useFieldState.js +6 -6
- package/internals/hooks/useField/useFieldV6TextField.js +2 -2
- package/internals/hooks/useField/useFieldV7TextField.js +4 -4
- package/internals/hooks/useIsLandscape.js +1 -1
- package/internals/hooks/useMobilePicker/index.js +1 -1
- package/internals/hooks/useMobilePicker/useMobilePicker.js +6 -6
- package/internals/hooks/usePicker/index.js +1 -1
- package/internals/hooks/usePicker/usePicker.js +4 -4
- package/internals/hooks/usePicker/usePickerLayoutProps.js +1 -1
- package/internals/hooks/usePicker/usePickerValue.js +4 -4
- package/internals/hooks/usePicker/usePickerValue.types.d.ts +11 -11
- package/internals/hooks/usePicker/usePickerViews.js +2 -2
- package/internals/hooks/useStaticPicker/index.js +1 -1
- package/internals/hooks/useStaticPicker/useStaticPicker.js +4 -4
- package/internals/hooks/useUtils.js +2 -2
- package/internals/hooks/useValidation.d.ts +8 -8
- package/internals/hooks/useValidation.js +1 -1
- package/internals/hooks/useValueWithTimezone.js +1 -1
- package/internals/hooks/useViews.d.ts +1 -1
- package/internals/index.js +36 -36
- package/internals/models/index.js +2 -2
- package/internals/utils/date-time-utils.d.ts +1 -1
- package/internals/utils/date-time-utils.js +5 -5
- package/internals/utils/date-utils.js +1 -1
- package/internals/utils/fields.js +1 -1
- package/internals/utils/getDefaultReferenceDate.js +2 -2
- package/internals/utils/time-utils.js +1 -1
- package/internals/utils/validation/validateDate.js +1 -1
- package/internals/utils/validation/validateDateTime.js +2 -2
- package/internals/utils/validation/validateTime.js +1 -1
- package/internals/utils/valueManagers.js +3 -3
- package/locales/beBY.js +1 -1
- package/locales/caES.js +1 -1
- package/locales/csCZ.js +1 -1
- package/locales/daDK.js +1 -1
- package/locales/deDE.js +1 -1
- package/locales/elGR.js +1 -1
- package/locales/enUS.js +1 -1
- package/locales/esES.js +1 -1
- package/locales/eu.js +1 -1
- package/locales/faIR.js +1 -1
- package/locales/fiFI.js +1 -1
- package/locales/frFR.js +1 -1
- package/locales/heIL.js +1 -1
- package/locales/huHU.js +1 -1
- package/locales/index.js +36 -36
- package/locales/isIS.js +1 -1
- package/locales/itIT.js +1 -1
- package/locales/jaJP.js +1 -1
- package/locales/koKR.js +1 -1
- package/locales/kzKZ.js +1 -1
- package/locales/mk.js +1 -1
- package/locales/nbNO.js +1 -1
- package/locales/nlNL.js +1 -1
- package/locales/nnNO.js +1 -1
- package/locales/plPL.js +1 -1
- package/locales/ptBR.js +1 -1
- package/locales/roRO.js +1 -1
- package/locales/ruRU.js +1 -1
- package/locales/skSK.js +1 -1
- package/locales/svSE.js +1 -1
- package/locales/trTR.js +1 -1
- package/locales/ukUA.js +1 -1
- package/locales/urPK.js +1 -1
- package/locales/viVN.js +1 -1
- package/locales/zhCN.js +1 -1
- package/locales/zhHK.js +1 -1
- package/models/index.d.ts +1 -0
- package/models/index.js +10 -7
- package/modern/AdapterDateFns/AdapterDateFns.js +1 -1
- package/modern/AdapterDateFns/index.js +1 -1
- package/modern/AdapterDateFnsBase/index.js +1 -1
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/modern/AdapterDateFnsJalali/index.js +1 -1
- package/modern/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +1 -1
- package/modern/AdapterDateFnsJalaliV3/index.js +1 -1
- package/modern/AdapterDateFnsV3/AdapterDateFnsV3.js +1 -1
- package/modern/AdapterDateFnsV3/index.js +1 -1
- package/modern/AdapterDayjs/AdapterDayjs.js +5 -6
- package/modern/AdapterDayjs/index.js +1 -1
- package/modern/AdapterLuxon/AdapterLuxon.js +4 -5
- package/modern/AdapterLuxon/index.js +1 -1
- package/modern/AdapterMoment/AdapterMoment.js +4 -5
- package/modern/AdapterMoment/index.js +1 -1
- package/modern/AdapterMomentHijri/AdapterMomentHijri.js +1 -1
- package/modern/AdapterMomentHijri/index.js +1 -1
- package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -1
- package/modern/AdapterMomentJalaali/index.js +1 -1
- package/modern/DateCalendar/DateCalendar.js +16 -16
- package/modern/DateCalendar/DayCalendar.js +9 -10
- package/modern/DateCalendar/PickersFadeTransitionGroup.js +1 -1
- package/modern/DateCalendar/PickersSlideTransition.js +1 -1
- package/modern/DateCalendar/index.js +5 -5
- package/modern/DateCalendar/useCalendarState.js +4 -4
- package/modern/DateCalendar/useIsDateDisabled.js +2 -2
- package/modern/DateField/DateField.js +13 -11
- package/modern/DateField/index.js +2 -2
- package/modern/DateField/useDateField.js +5 -5
- package/modern/DatePicker/DatePicker.js +14 -14
- package/modern/DatePicker/DatePickerToolbar.js +5 -5
- package/modern/DatePicker/index.js +3 -3
- package/modern/DatePicker/shared.js +4 -4
- package/modern/DateTimeField/DateTimeField.js +13 -11
- package/modern/DateTimeField/index.js +2 -2
- package/modern/DateTimeField/useDateTimeField.js +5 -5
- package/modern/DateTimePicker/DateTimePicker.js +14 -14
- package/modern/DateTimePicker/DateTimePickerTabs.js +4 -4
- package/modern/DateTimePicker/DateTimePickerToolbar.js +11 -11
- package/modern/DateTimePicker/index.js +5 -5
- package/modern/DateTimePicker/shared.js +5 -5
- package/modern/DayCalendarSkeleton/DayCalendarSkeleton.js +2 -2
- package/modern/DayCalendarSkeleton/index.js +2 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +22 -22
- package/modern/DesktopDatePicker/index.js +1 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +29 -29
- package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -1
- package/modern/DesktopDateTimePicker/index.js +2 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.js +23 -23
- package/modern/DesktopTimePicker/index.js +1 -1
- package/modern/DigitalClock/DigitalClock.js +11 -11
- package/modern/DigitalClock/index.js +2 -2
- package/modern/LocalizationProvider/index.js +1 -1
- package/modern/MobileDatePicker/MobileDatePicker.js +21 -21
- package/modern/MobileDatePicker/index.js +1 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +22 -22
- package/modern/MobileDateTimePicker/index.js +1 -1
- package/modern/MobileTimePicker/MobileTimePicker.js +21 -21
- package/modern/MobileTimePicker/index.js +1 -1
- package/modern/MonthCalendar/MonthCalendar.js +8 -8
- package/modern/MonthCalendar/PickersMonth.js +1 -1
- package/modern/MonthCalendar/index.js +3 -3
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +17 -17
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -2
- package/modern/MultiSectionDigitalClock/index.js +3 -3
- package/modern/PickersActionBar/PickersActionBar.js +1 -1
- package/modern/PickersActionBar/index.js +1 -1
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +7 -7
- package/modern/PickersCalendarHeader/index.js +2 -2
- package/modern/PickersDay/PickersDay.js +3 -3
- package/modern/PickersDay/index.js +2 -2
- package/modern/PickersLayout/PickersLayout.js +2 -2
- package/modern/PickersLayout/index.js +3 -3
- package/modern/PickersLayout/usePickerLayout.js +3 -3
- package/modern/PickersSectionList/PickersSectionList.js +1 -1
- package/modern/PickersSectionList/index.js +2 -2
- package/modern/PickersShortcuts/PickersShortcuts.js +1 -1
- package/modern/PickersShortcuts/index.js +1 -1
- package/modern/PickersTextField/PickersFilledInput/PickersFilledInput.js +3 -3
- package/modern/PickersTextField/PickersFilledInput/index.js +2 -2
- package/modern/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +1 -1
- package/modern/PickersTextField/PickersInput/PickersInput.js +3 -3
- package/modern/PickersTextField/PickersInput/index.js +2 -2
- package/modern/PickersTextField/PickersInput/pickersInputClasses.js +1 -1
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +2 -2
- package/modern/PickersTextField/PickersInputBase/index.js +2 -2
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +4 -4
- package/modern/PickersTextField/PickersOutlinedInput/index.js +2 -2
- package/modern/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +1 -1
- package/modern/PickersTextField/PickersTextField.js +4 -4
- package/modern/PickersTextField/index.js +6 -6
- package/modern/StaticDatePicker/StaticDatePicker.js +16 -16
- package/modern/StaticDatePicker/index.js +1 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +17 -17
- package/modern/StaticDateTimePicker/index.js +1 -1
- package/modern/StaticTimePicker/StaticTimePicker.js +16 -16
- package/modern/StaticTimePicker/index.js +1 -1
- package/modern/TimeClock/Clock.js +9 -8
- package/modern/TimeClock/ClockNumber.js +2 -2
- package/modern/TimeClock/ClockNumbers.js +2 -2
- package/modern/TimeClock/ClockPointer.js +2 -2
- package/modern/TimeClock/TimeClock.js +14 -14
- package/modern/TimeClock/index.js +5 -5
- package/modern/TimeField/TimeField.js +13 -11
- package/modern/TimeField/index.js +2 -2
- package/modern/TimeField/useTimeField.js +5 -5
- package/modern/TimePicker/TimePicker.js +14 -14
- package/modern/TimePicker/TimePickerToolbar.js +9 -9
- package/modern/TimePicker/index.js +3 -3
- package/modern/TimePicker/shared.js +3 -3
- package/modern/YearCalendar/PickersYear.js +1 -1
- package/modern/YearCalendar/YearCalendar.js +8 -8
- package/modern/YearCalendar/index.js +3 -3
- package/modern/dateViewRenderers/dateViewRenderers.js +2 -2
- package/modern/dateViewRenderers/index.js +1 -1
- package/modern/hooks/index.js +2 -2
- package/modern/hooks/useClearableField.js +2 -2
- package/modern/hooks/usePickersTranslations.js +1 -1
- package/modern/icons/index.js +8 -8
- package/modern/index.js +38 -38
- package/modern/internals/components/PickerViewRoot/PickerViewRoot.js +1 -1
- package/modern/internals/components/PickerViewRoot/index.js +1 -1
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -2
- package/modern/internals/components/PickersArrowSwitcher/index.js +2 -2
- package/modern/internals/components/PickersModalDialog.js +1 -1
- package/modern/internals/components/PickersPopper.js +3 -3
- package/modern/internals/components/PickersToolbar.js +1 -1
- package/modern/internals/components/PickersToolbarButton.js +2 -2
- package/modern/internals/components/PickersToolbarText.js +1 -1
- package/modern/internals/demo/DemoContainer.js +3 -3
- package/modern/internals/demo/index.js +1 -1
- package/modern/internals/hooks/date-helpers-hooks.js +2 -2
- package/modern/internals/hooks/defaultizedFieldProps.js +2 -2
- package/modern/internals/hooks/useClockReferenceDate.js +3 -3
- package/modern/internals/hooks/useDesktopPicker/index.js +1 -1
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +16 -6
- package/modern/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/modern/internals/hooks/useField/index.js +2 -2
- package/modern/internals/hooks/useField/useField.js +7 -7
- package/modern/internals/hooks/useField/useField.utils.js +1 -1
- package/modern/internals/hooks/useField/useFieldCharacterEditing.js +2 -2
- package/modern/internals/hooks/useField/useFieldState.js +6 -6
- package/modern/internals/hooks/useField/useFieldV6TextField.js +2 -2
- package/modern/internals/hooks/useField/useFieldV7TextField.js +4 -4
- package/modern/internals/hooks/useIsLandscape.js +1 -1
- package/modern/internals/hooks/useMobilePicker/index.js +1 -1
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +6 -6
- package/modern/internals/hooks/usePicker/index.js +1 -1
- package/modern/internals/hooks/usePicker/usePicker.js +4 -4
- package/modern/internals/hooks/usePicker/usePickerLayoutProps.js +1 -1
- package/modern/internals/hooks/usePicker/usePickerValue.js +4 -4
- package/modern/internals/hooks/usePicker/usePickerViews.js +2 -2
- package/modern/internals/hooks/useStaticPicker/index.js +1 -1
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +4 -4
- package/modern/internals/hooks/useUtils.js +2 -2
- package/modern/internals/hooks/useValidation.js +1 -1
- package/modern/internals/hooks/useValueWithTimezone.js +1 -1
- package/modern/internals/index.js +36 -36
- package/modern/internals/models/index.js +2 -2
- package/modern/internals/utils/date-time-utils.js +5 -5
- package/modern/internals/utils/date-utils.js +1 -1
- package/modern/internals/utils/fields.js +1 -1
- package/modern/internals/utils/getDefaultReferenceDate.js +2 -2
- package/modern/internals/utils/time-utils.js +1 -1
- package/modern/internals/utils/validation/validateDate.js +1 -1
- package/modern/internals/utils/validation/validateDateTime.js +2 -2
- package/modern/internals/utils/validation/validateTime.js +1 -1
- package/modern/internals/utils/valueManagers.js +3 -3
- package/modern/locales/beBY.js +1 -1
- package/modern/locales/caES.js +1 -1
- package/modern/locales/csCZ.js +1 -1
- package/modern/locales/daDK.js +1 -1
- package/modern/locales/deDE.js +1 -1
- package/modern/locales/elGR.js +1 -1
- package/modern/locales/enUS.js +1 -1
- package/modern/locales/esES.js +1 -1
- package/modern/locales/eu.js +1 -1
- package/modern/locales/faIR.js +1 -1
- package/modern/locales/fiFI.js +1 -1
- package/modern/locales/frFR.js +1 -1
- package/modern/locales/heIL.js +1 -1
- package/modern/locales/huHU.js +1 -1
- package/modern/locales/index.js +36 -36
- package/modern/locales/isIS.js +1 -1
- package/modern/locales/itIT.js +1 -1
- package/modern/locales/jaJP.js +1 -1
- package/modern/locales/koKR.js +1 -1
- package/modern/locales/kzKZ.js +1 -1
- package/modern/locales/mk.js +1 -1
- package/modern/locales/nbNO.js +1 -1
- package/modern/locales/nlNL.js +1 -1
- package/modern/locales/nnNO.js +1 -1
- package/modern/locales/plPL.js +1 -1
- package/modern/locales/ptBR.js +1 -1
- package/modern/locales/roRO.js +1 -1
- package/modern/locales/ruRU.js +1 -1
- package/modern/locales/skSK.js +1 -1
- package/modern/locales/svSE.js +1 -1
- package/modern/locales/trTR.js +1 -1
- package/modern/locales/ukUA.js +1 -1
- package/modern/locales/urPK.js +1 -1
- package/modern/locales/viVN.js +1 -1
- package/modern/locales/zhCN.js +1 -1
- package/modern/locales/zhHK.js +1 -1
- package/modern/models/index.js +10 -7
- package/modern/themeAugmentation/index.js +0 -3
- package/modern/timeViewRenderers/index.js +1 -1
- package/modern/timeViewRenderers/timeViewRenderers.js +4 -4
- package/node/AdapterDateFns/AdapterDateFns.js +1 -1
- package/node/AdapterDateFnsBase/AdapterDateFnsBase.js +1 -1
- package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +1 -1
- package/node/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.js +1 -1
- package/node/AdapterDayjs/AdapterDayjs.js +5 -6
- package/node/AdapterLuxon/AdapterLuxon.js +5 -6
- package/node/AdapterMoment/AdapterMoment.js +5 -6
- package/node/AdapterMomentHijri/AdapterMomentHijri.js +1 -1
- package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -1
- package/node/DateCalendar/DateCalendar.js +3 -4
- package/node/DateCalendar/DayCalendar.js +3 -5
- package/node/DateCalendar/PickersFadeTransitionGroup.js +2 -3
- package/node/DateCalendar/PickersSlideTransition.js +2 -3
- package/node/DateCalendar/useCalendarState.js +2 -3
- package/node/DateCalendar/useIsDateDisabled.js +1 -2
- package/node/DateField/DateField.js +11 -10
- package/node/DatePicker/DatePicker.js +13 -14
- package/node/DatePicker/DatePickerToolbar.js +2 -3
- package/node/DatePicker/shared.js +2 -3
- package/node/DateTimeField/DateTimeField.js +11 -10
- package/node/DateTimePicker/DateTimePicker.js +13 -14
- package/node/DateTimePicker/DateTimePickerTabs.js +2 -3
- package/node/DateTimePicker/DateTimePickerToolbar.js +2 -3
- package/node/DateTimePicker/shared.js +2 -3
- package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +2 -3
- package/node/DesktopDatePicker/DesktopDatePicker.js +13 -14
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +13 -14
- package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +2 -3
- package/node/DesktopTimePicker/DesktopTimePicker.js +13 -14
- package/node/DigitalClock/DigitalClock.js +3 -4
- package/node/DigitalClock/digitalClockClasses.js +1 -1
- package/node/LocalizationProvider/LocalizationProvider.js +2 -3
- package/node/MobileDatePicker/MobileDatePicker.js +13 -14
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +13 -14
- package/node/MobileTimePicker/MobileTimePicker.js +13 -14
- package/node/MonthCalendar/MonthCalendar.js +2 -3
- package/node/MonthCalendar/PickersMonth.js +2 -3
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +6 -7
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -3
- package/node/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +1 -1
- package/node/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +1 -1
- package/node/PickersActionBar/PickersActionBar.js +2 -3
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +2 -3
- package/node/PickersDay/PickersDay.js +2 -3
- package/node/PickersLayout/PickersLayout.js +2 -3
- package/node/PickersLayout/index.js +1 -1
- package/node/PickersLayout/pickersLayoutClasses.js +1 -1
- package/node/PickersLayout/usePickerLayout.js +2 -3
- package/node/PickersSectionList/PickersSectionList.js +2 -3
- package/node/PickersSectionList/pickersSectionListClasses.js +1 -1
- package/node/PickersShortcuts/PickersShortcuts.js +2 -3
- package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +2 -3
- package/node/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +1 -1
- package/node/PickersTextField/PickersInput/PickersInput.js +2 -3
- package/node/PickersTextField/PickersInput/pickersInputClasses.js +1 -1
- package/node/PickersTextField/PickersInputBase/PickersInputBase.js +2 -3
- package/node/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
- package/node/PickersTextField/PickersOutlinedInput/Outline.js +2 -3
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +2 -3
- package/node/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +1 -1
- package/node/PickersTextField/PickersTextField.js +2 -3
- package/node/PickersTextField/pickersTextFieldClasses.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +13 -14
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +13 -14
- package/node/StaticTimePicker/StaticTimePicker.js +13 -14
- package/node/TimeClock/Clock.js +5 -5
- package/node/TimeClock/ClockNumber.js +2 -3
- package/node/TimeClock/ClockNumbers.js +2 -3
- package/node/TimeClock/ClockPointer.js +2 -3
- package/node/TimeClock/TimeClock.js +3 -4
- package/node/TimeField/TimeField.js +11 -10
- package/node/TimePicker/TimePicker.js +13 -14
- package/node/TimePicker/TimePickerToolbar.js +2 -3
- package/node/TimePicker/shared.js +2 -3
- package/node/YearCalendar/PickersYear.js +2 -3
- package/node/YearCalendar/YearCalendar.js +2 -3
- package/node/dateViewRenderers/dateViewRenderers.js +1 -2
- package/node/hooks/useClearableField.js +2 -3
- package/node/icons/index.js +9 -10
- package/node/index.js +1 -1
- package/node/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -3
- package/node/internals/components/PickersModalDialog.js +2 -3
- package/node/internals/components/PickersPopper.js +2 -3
- package/node/internals/components/PickersToolbar.js +2 -3
- package/node/internals/components/PickersToolbarButton.js +2 -3
- package/node/internals/components/PickersToolbarText.js +2 -3
- package/node/internals/demo/DemoContainer.js +4 -5
- package/node/internals/hooks/date-helpers-hooks.js +1 -2
- package/node/internals/hooks/defaultizedFieldProps.js +1 -1
- package/node/internals/hooks/useClockReferenceDate.js +1 -2
- package/node/internals/hooks/useDefaultReduceAnimations.js +1 -1
- package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +13 -4
- package/node/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/node/internals/hooks/useField/useField.js +2 -3
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +2 -3
- package/node/internals/hooks/useField/useFieldState.js +2 -3
- package/node/internals/hooks/useField/useFieldV6TextField.js +2 -3
- package/node/internals/hooks/useField/useFieldV7TextField.js +2 -3
- package/node/internals/hooks/useIsLandscape.js +1 -2
- package/node/internals/hooks/useMobilePicker/useMobilePicker.js +2 -3
- package/node/internals/hooks/useOpenState.js +1 -2
- package/node/internals/hooks/usePicker/usePickerLayoutProps.js +1 -1
- package/node/internals/hooks/usePicker/usePickerValue.js +2 -3
- package/node/internals/hooks/usePicker/usePickerViews.js +2 -3
- package/node/internals/hooks/useStaticPicker/useStaticPicker.js +2 -3
- package/node/internals/hooks/useUtils.js +2 -3
- package/node/internals/hooks/useValidation.js +1 -2
- package/node/internals/hooks/useValueWithTimezone.js +2 -3
- package/node/internals/hooks/useViews.js +2 -3
- package/node/internals/utils/convertFieldResponseIntoMuiTextFieldProps.js +1 -1
- package/node/internals/utils/date-time-utils.js +4 -4
- package/node/internals/utils/fields.js +1 -1
- package/node/internals/utils/valueManagers.js +1 -1
- package/node/locales/utils/getPickersLocalization.js +1 -1
- package/node/themeAugmentation/index.js +1 -38
- package/node/timeViewRenderers/timeViewRenderers.js +1 -2
- package/package.json +6 -5
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/index.js +0 -3
- package/timeViewRenderers/index.js +1 -1
- package/timeViewRenderers/timeViewRenderers.js +4 -4
|
@@ -44,7 +44,7 @@ import isWithinInterval from 'date-fns/isWithinInterval';
|
|
|
44
44
|
import defaultLocale from 'date-fns/locale/en-US';
|
|
45
45
|
// @ts-ignore
|
|
46
46
|
import longFormatters from 'date-fns/_lib/format/longFormatters';
|
|
47
|
-
import { AdapterDateFnsBase } from
|
|
47
|
+
import { AdapterDateFnsBase } from "../AdapterDateFnsBase/index.js";
|
|
48
48
|
/**
|
|
49
49
|
* Based on `@date-io/date-fns`
|
|
50
50
|
*
|
package/AdapterDateFns/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterDateFns } from
|
|
1
|
+
export { AdapterDateFns } from "./AdapterDateFns.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterDateFnsBase } from
|
|
1
|
+
export { AdapterDateFnsBase } from "./AdapterDateFnsBase.js";
|
|
@@ -45,7 +45,7 @@ import isWithinInterval from 'date-fns-jalali/isWithinInterval';
|
|
|
45
45
|
import defaultLocale from 'date-fns-jalali/locale/fa-IR';
|
|
46
46
|
// @ts-ignore
|
|
47
47
|
import longFormatters from 'date-fns-jalali/_lib/format/longFormatters';
|
|
48
|
-
import { AdapterDateFnsBase } from
|
|
48
|
+
import { AdapterDateFnsBase } from "../AdapterDateFnsBase/index.js";
|
|
49
49
|
const defaultFormats = {
|
|
50
50
|
year: 'yyyy',
|
|
51
51
|
month: 'LLLL',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterDateFnsJalali } from
|
|
1
|
+
export { AdapterDateFnsJalali } from "./AdapterDateFnsJalali.js";
|
|
@@ -48,7 +48,7 @@ import { faIR as defaultLocale } from 'date-fns-jalali/locale/fa-IR';
|
|
|
48
48
|
// date-fns-jalali v2 does not export types
|
|
49
49
|
// @ts-ignore TODO remove when date-fns-jalali-v3 is the default
|
|
50
50
|
|
|
51
|
-
import { AdapterDateFnsBase } from
|
|
51
|
+
import { AdapterDateFnsBase } from "../AdapterDateFnsBase/index.js";
|
|
52
52
|
const defaultFormats = {
|
|
53
53
|
year: 'yyyy',
|
|
54
54
|
month: 'LLLL',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterDateFnsJalali } from
|
|
1
|
+
export { AdapterDateFnsJalali } from "./AdapterDateFnsJalaliV3.js";
|
|
@@ -48,7 +48,7 @@ import { enUS } from 'date-fns/locale/en-US';
|
|
|
48
48
|
// date-fns v2 does not export types
|
|
49
49
|
// @ts-ignore TODO remove when date-fns-v3 is the default
|
|
50
50
|
|
|
51
|
-
import { AdapterDateFnsBase } from
|
|
51
|
+
import { AdapterDateFnsBase } from "../AdapterDateFnsBase/index.js";
|
|
52
52
|
/**
|
|
53
53
|
* Based on `@date-io/date-fns`
|
|
54
54
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterDateFns } from
|
|
1
|
+
export { AdapterDateFns } from "./AdapterDateFnsV3.js";
|
|
@@ -6,7 +6,7 @@ import customParseFormatPlugin from 'dayjs/plugin/customParseFormat';
|
|
|
6
6
|
import localizedFormatPlugin from 'dayjs/plugin/localizedFormat';
|
|
7
7
|
import isBetweenPlugin from 'dayjs/plugin/isBetween';
|
|
8
8
|
import advancedFormatPlugin from 'dayjs/plugin/advancedFormat';
|
|
9
|
-
import { warnOnce } from
|
|
9
|
+
import { warnOnce } from "../internals/utils/warning.js";
|
|
10
10
|
defaultDayjs.extend(localizedFormatPlugin);
|
|
11
11
|
defaultDayjs.extend(weekOfYearPlugin);
|
|
12
12
|
defaultDayjs.extend(isBetweenPlugin);
|
|
@@ -427,7 +427,7 @@ export class AdapterDayjs {
|
|
|
427
427
|
return this.adjustOffset(value.startOf('month'));
|
|
428
428
|
};
|
|
429
429
|
this.startOfWeek = value => {
|
|
430
|
-
return this.adjustOffset(value.startOf('week'));
|
|
430
|
+
return this.adjustOffset(this.setLocaleToValue(value).startOf('week'));
|
|
431
431
|
};
|
|
432
432
|
this.startOfDay = value => {
|
|
433
433
|
return this.adjustOffset(value.startOf('day'));
|
|
@@ -439,7 +439,7 @@ export class AdapterDayjs {
|
|
|
439
439
|
return this.adjustOffset(value.endOf('month'));
|
|
440
440
|
};
|
|
441
441
|
this.endOfWeek = value => {
|
|
442
|
-
return this.adjustOffset(value.endOf('week'));
|
|
442
|
+
return this.adjustOffset(this.setLocaleToValue(value).endOf('week'));
|
|
443
443
|
};
|
|
444
444
|
this.endOfDay = value => {
|
|
445
445
|
return this.adjustOffset(value.endOf('day'));
|
|
@@ -511,9 +511,8 @@ export class AdapterDayjs {
|
|
|
511
511
|
return value.daysInMonth();
|
|
512
512
|
};
|
|
513
513
|
this.getWeekArray = value => {
|
|
514
|
-
const
|
|
515
|
-
const
|
|
516
|
-
const end = this.endOfWeek(this.endOfMonth(cleanValue));
|
|
514
|
+
const start = this.startOfWeek(this.startOfMonth(value));
|
|
515
|
+
const end = this.endOfWeek(this.endOfMonth(value));
|
|
517
516
|
let count = 0;
|
|
518
517
|
let current = start;
|
|
519
518
|
const nestedWeeks = [];
|
package/AdapterDayjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterDayjs } from
|
|
1
|
+
export { AdapterDayjs } from "./AdapterDayjs.js";
|
|
@@ -344,7 +344,7 @@ export class AdapterLuxon {
|
|
|
344
344
|
return value.startOf('month');
|
|
345
345
|
};
|
|
346
346
|
this.startOfWeek = value => {
|
|
347
|
-
return value.startOf('week', {
|
|
347
|
+
return this.setLocaleToValue(value).startOf('week', {
|
|
348
348
|
useLocaleWeeks: true
|
|
349
349
|
});
|
|
350
350
|
};
|
|
@@ -358,7 +358,7 @@ export class AdapterLuxon {
|
|
|
358
358
|
return value.endOf('month');
|
|
359
359
|
};
|
|
360
360
|
this.endOfWeek = value => {
|
|
361
|
-
return value.endOf('week', {
|
|
361
|
+
return this.setLocaleToValue(value).endOf('week', {
|
|
362
362
|
useLocaleWeeks: true
|
|
363
363
|
});
|
|
364
364
|
};
|
|
@@ -461,9 +461,8 @@ export class AdapterLuxon {
|
|
|
461
461
|
return value.daysInMonth;
|
|
462
462
|
};
|
|
463
463
|
this.getWeekArray = value => {
|
|
464
|
-
const
|
|
465
|
-
const
|
|
466
|
-
const lastDay = this.endOfWeek(this.endOfMonth(cleanValue));
|
|
464
|
+
const firstDay = this.startOfWeek(this.startOfMonth(value));
|
|
465
|
+
const lastDay = this.endOfWeek(this.endOfMonth(value));
|
|
467
466
|
const {
|
|
468
467
|
days
|
|
469
468
|
} = lastDay.diff(firstDay, 'days').toObject();
|
package/AdapterLuxon/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterLuxon } from
|
|
1
|
+
export { AdapterLuxon } from "./AdapterLuxon.js";
|
|
@@ -341,7 +341,7 @@ export class AdapterMoment {
|
|
|
341
341
|
return value.clone().startOf('month');
|
|
342
342
|
};
|
|
343
343
|
this.startOfWeek = value => {
|
|
344
|
-
return value.clone().startOf('week');
|
|
344
|
+
return this.setLocaleToValue(value.clone()).startOf('week');
|
|
345
345
|
};
|
|
346
346
|
this.startOfDay = value => {
|
|
347
347
|
return value.clone().startOf('day');
|
|
@@ -353,7 +353,7 @@ export class AdapterMoment {
|
|
|
353
353
|
return value.clone().endOf('month');
|
|
354
354
|
};
|
|
355
355
|
this.endOfWeek = value => {
|
|
356
|
-
return value.clone().endOf('week');
|
|
356
|
+
return this.setLocaleToValue(value.clone()).endOf('week');
|
|
357
357
|
};
|
|
358
358
|
this.endOfDay = value => {
|
|
359
359
|
return value.clone().endOf('day');
|
|
@@ -425,9 +425,8 @@ export class AdapterMoment {
|
|
|
425
425
|
return value.daysInMonth();
|
|
426
426
|
};
|
|
427
427
|
this.getWeekArray = value => {
|
|
428
|
-
const
|
|
429
|
-
const
|
|
430
|
-
const end = this.endOfWeek(this.endOfMonth(cleanValue));
|
|
428
|
+
const start = this.startOfWeek(this.startOfMonth(value));
|
|
429
|
+
const end = this.endOfWeek(this.endOfMonth(value));
|
|
431
430
|
let count = 0;
|
|
432
431
|
let current = start;
|
|
433
432
|
const nestedWeeks = [];
|
package/AdapterMoment/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterMoment } from
|
|
1
|
+
export { AdapterMoment } from "./AdapterMoment.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
/* eslint-disable class-methods-use-this */
|
|
3
3
|
import defaultHMoment from 'moment-hijri';
|
|
4
|
-
import { AdapterMoment } from
|
|
4
|
+
import { AdapterMoment } from "../AdapterMoment/index.js";
|
|
5
5
|
// From https://momentjs.com/docs/#/displaying/format/
|
|
6
6
|
const formatTokenMap = {
|
|
7
7
|
// Year
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterMomentHijri } from
|
|
1
|
+
export { AdapterMomentHijri } from "./AdapterMomentHijri.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
/* eslint-disable class-methods-use-this */
|
|
3
3
|
import defaultJMoment from 'moment-jalaali';
|
|
4
|
-
import { AdapterMoment } from
|
|
4
|
+
import { AdapterMoment } from "../AdapterMoment/index.js";
|
|
5
5
|
// From https://momentjs.com/docs/#/displaying/format/
|
|
6
6
|
const formatTokenMap = {
|
|
7
7
|
// Year
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AdapterMomentJalaali } from
|
|
1
|
+
export { AdapterMomentJalaali } from "./AdapterMomentJalaali.js";
|
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,174 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
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
|
+
## 7.16.0
|
|
7
|
+
|
|
8
|
+
_Sep 5, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎨 Update the design of Data Grid column headers (#14293)
|
|
13
|
+
- 🧠 Add the `slots` concept introduction documentation page (#13881)
|
|
14
|
+
- 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@7.16.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
|
|
25
|
+
- [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
|
|
26
|
+
- [DataGrid] Column header design updates (#14293) @KenanYusuf
|
|
27
|
+
- [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
|
|
28
|
+
- [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
|
|
29
|
+
- [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
|
|
30
|
+
- [DataGrid] Restore reselect behavior (#14410) @romgrk
|
|
31
|
+
- [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
|
|
32
|
+
- [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@7.16.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-premium@7.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid-pro@7.16.0`.
|
|
43
|
+
|
|
44
|
+
### Date and Time Pickers
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-date-pickers@7.16.0`
|
|
47
|
+
|
|
48
|
+
- [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
|
|
49
|
+
- [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
|
|
50
|
+
- [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-date-pickers-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
53
|
+
|
|
54
|
+
Same changes as in `@mui/x-date-pickers@7.16.0`.
|
|
55
|
+
|
|
56
|
+
### Charts
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts@7.16.0`
|
|
59
|
+
|
|
60
|
+
- [charts] Fix JSDoc typos (#14497) @alexfauquette
|
|
61
|
+
- [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
|
|
62
|
+
- [charts] Fix theme augmentation (#14372) @alexfauquette
|
|
63
|
+
- [charts] Pass all props to legend (#14392) @JCQuintas
|
|
64
|
+
- [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
|
|
65
|
+
- [charts] Update `package.json` for vendor package (#14465) @alexfauquette
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@7.0.0-beta.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@7.16.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
|
|
72
|
+
|
|
73
|
+
### Tree View
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-tree-view@7.16.0`
|
|
76
|
+
|
|
77
|
+
- [TreeView] Clean label editing code (#14264) @flaviendelangle
|
|
78
|
+
|
|
79
|
+
### `@mui/x-codemod@7.16.0`
|
|
80
|
+
|
|
81
|
+
- [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
|
|
82
|
+
|
|
83
|
+
### Docs
|
|
84
|
+
|
|
85
|
+
- [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
|
|
86
|
+
- [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
|
|
87
|
+
- [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
|
|
88
|
+
- [docs] Remove notion of seats (#14351) @oliviertassinari
|
|
89
|
+
- [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
|
|
90
|
+
|
|
91
|
+
### Core
|
|
92
|
+
|
|
93
|
+
- [core] Fix changelog spelling @oliviertassinari
|
|
94
|
+
- [core] Fix failing tests on the pickers (#14457) @flaviendelangle
|
|
95
|
+
- [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
|
|
96
|
+
- [code-infra] Add babel runtime version check (#14483) @Janpot
|
|
97
|
+
- [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
|
|
98
|
+
- [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
|
|
99
|
+
- [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
|
|
100
|
+
- [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
|
|
101
|
+
- [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
|
|
102
|
+
|
|
103
|
+
## 7.15.0
|
|
104
|
+
|
|
105
|
+
_Aug 29, 2024_
|
|
106
|
+
|
|
107
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
108
|
+
|
|
109
|
+
- 💫 Support Material UI v6 (`@mui/material@6`) peer dependency (#14142) @cherniavskii
|
|
110
|
+
|
|
111
|
+
You can now use MUI X components with either v5 or v6 of `@mui/material` package 🎉
|
|
112
|
+
|
|
113
|
+
- 🐞 Bugfixes
|
|
114
|
+
|
|
115
|
+
### Data Grid
|
|
116
|
+
|
|
117
|
+
#### `@mui/x-data-grid-pro@7.15.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
118
|
+
|
|
119
|
+
- [DataGridPro] Export `GridRowReorderCell` component (#14079) @genepaul
|
|
120
|
+
|
|
121
|
+
#### `@mui/x-data-grid-premium@7.15.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
122
|
+
|
|
123
|
+
Same changes as in `@mui/x-data-grid-pro@7.15.0`.
|
|
124
|
+
|
|
125
|
+
### Date and Time Pickers
|
|
126
|
+
|
|
127
|
+
#### `@mui/x-date-pickers@7.15.0`
|
|
128
|
+
|
|
129
|
+
- [pickers] Add `onTouchStart` handler for `TimeClock` (#14305) @arthurbalduini
|
|
130
|
+
|
|
131
|
+
#### `@mui/x-date-pickers-pro@7.15.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
132
|
+
|
|
133
|
+
Same changes as in `@mui/x-date-pickers@7.15.0`, plus:
|
|
134
|
+
|
|
135
|
+
- [DateTimeRangePicker] Fix date format resolving from views on 24hr locales (#14341) @arthurbalduini
|
|
136
|
+
|
|
137
|
+
### Charts
|
|
138
|
+
|
|
139
|
+
#### `@mui/x-charts@7.15.0`
|
|
140
|
+
|
|
141
|
+
- [charts] Add missing `themeAugmentation` in pro plan (#14313) @lhilgert9
|
|
142
|
+
- [charts] Fix `LineChart` transition stopping before completion (#14366) @JCQuintas
|
|
143
|
+
- [charts] Fix tooltip with horizontal layout (#14337) @alexfauquette
|
|
144
|
+
- [charts] Keep axis root classe usage explicit (#14378) @alexfauquette
|
|
145
|
+
|
|
146
|
+
#### `@mui/x-charts-pro@7.0.0-alpha.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
147
|
+
|
|
148
|
+
Same changes as in `@mui/x-charts@7.15.0`, plus:
|
|
149
|
+
|
|
150
|
+
- [charts pro] Avoid relative reference to `@mui/x-charts` package (#14335) @LukasTy
|
|
151
|
+
|
|
152
|
+
### Docs
|
|
153
|
+
|
|
154
|
+
- [docs] Fix sentence case `h2` @oliviertassinari
|
|
155
|
+
- [docs] Clarify contribution guide references @oliviertassinari
|
|
156
|
+
- [docs] Fix Stack Overflow issue canned response @oliviertassinari
|
|
157
|
+
- [docs] Fix outdated link to support page @oliviertassinari
|
|
158
|
+
- [docs] Fix use of Material UI @oliviertassinari
|
|
159
|
+
- [docs] Update deprecated props in docs (#14295) @JCQuintas
|
|
160
|
+
|
|
161
|
+
### Core
|
|
162
|
+
|
|
163
|
+
- [core] Allow only v5.x for `MUI Core` renovate group (#14382) @LukasTy
|
|
164
|
+
- [core] Avoid visual regression when using `@mui/material@6` (#14357) @cherniavskii
|
|
165
|
+
- [core] Remove renovate rule targeting only `next` releases of `@mui/docs` (#14364) @LukasTy
|
|
166
|
+
- [core] Support `@mui/material@6` peer dependency (#14142) @cherniavskii
|
|
167
|
+
- [core] Use `useRtl` instead of `useTheme` to access direction (#14359) @LukasTy
|
|
168
|
+
- [code-infra] Typecheck nested folders in playground (#14352) @JCQuintas
|
|
169
|
+
- [infra] Fix Issue cleanup action @oliviertassinari
|
|
170
|
+
- [license] Prepare renaming of argument names @oliviertassinari
|
|
171
|
+
|
|
6
172
|
## 7.14.0
|
|
7
173
|
|
|
8
174
|
_Aug 23, 2024_
|
|
@@ -7,21 +7,21 @@ import clsx from 'clsx';
|
|
|
7
7
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import { unstable_composeClasses as composeClasses, unstable_useId as useId, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
10
|
-
import { useCalendarState } from
|
|
11
|
-
import { useDefaultDates, useUtils } from
|
|
12
|
-
import { PickersFadeTransitionGroup } from
|
|
13
|
-
import { DayCalendar } from
|
|
14
|
-
import { MonthCalendar } from
|
|
15
|
-
import { YearCalendar } from
|
|
16
|
-
import { useViews } from
|
|
17
|
-
import { PickersCalendarHeader } from
|
|
18
|
-
import { findClosestEnabledDate, applyDefaultDate, mergeDateAndTime } from
|
|
19
|
-
import { PickerViewRoot } from
|
|
20
|
-
import { useDefaultReduceAnimations } from
|
|
21
|
-
import { getDateCalendarUtilityClass } from
|
|
22
|
-
import { useControlledValueWithTimezone } from
|
|
23
|
-
import { singleItemValueManager } from
|
|
24
|
-
import { VIEW_HEIGHT } from
|
|
10
|
+
import { useCalendarState } from "./useCalendarState.js";
|
|
11
|
+
import { useDefaultDates, useUtils } from "../internals/hooks/useUtils.js";
|
|
12
|
+
import { PickersFadeTransitionGroup } from "./PickersFadeTransitionGroup.js";
|
|
13
|
+
import { DayCalendar } from "./DayCalendar.js";
|
|
14
|
+
import { MonthCalendar } from "../MonthCalendar/index.js";
|
|
15
|
+
import { YearCalendar } from "../YearCalendar/index.js";
|
|
16
|
+
import { useViews } from "../internals/hooks/useViews.js";
|
|
17
|
+
import { PickersCalendarHeader } from "../PickersCalendarHeader/index.js";
|
|
18
|
+
import { findClosestEnabledDate, applyDefaultDate, mergeDateAndTime } from "../internals/utils/date-utils.js";
|
|
19
|
+
import { PickerViewRoot } from "../internals/components/PickerViewRoot/index.js";
|
|
20
|
+
import { useDefaultReduceAnimations } from "../internals/hooks/useDefaultReduceAnimations.js";
|
|
21
|
+
import { getDateCalendarUtilityClass } from "./dateCalendarClasses.js";
|
|
22
|
+
import { useControlledValueWithTimezone } from "../internals/hooks/useValueWithTimezone.js";
|
|
23
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
24
|
+
import { VIEW_HEIGHT } from "../internals/constants/dimensions.js";
|
|
25
25
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
26
|
const useUtilityClasses = ownerState => {
|
|
27
27
|
const {
|
|
@@ -427,7 +427,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
|
427
427
|
monthsPerRow: PropTypes.oneOf([3, 4]),
|
|
428
428
|
/**
|
|
429
429
|
* Callback fired when the value changes.
|
|
430
|
-
* @template TValue The value type.
|
|
430
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
431
431
|
* @template TView The view type. Will be one of date or time views.
|
|
432
432
|
* @param {TValue} value The new value.
|
|
433
433
|
* @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.
|
|
@@ -10,14 +10,14 @@ import { useRtl } from '@mui/system/RtlProvider';
|
|
|
10
10
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
11
11
|
import { unstable_composeClasses as composeClasses, unstable_useControlled as useControlled } from '@mui/utils';
|
|
12
12
|
import clsx from 'clsx';
|
|
13
|
-
import { PickersDay } from
|
|
14
|
-
import { usePickersTranslations } from
|
|
15
|
-
import { useUtils, useNow } from
|
|
16
|
-
import { DAY_SIZE, DAY_MARGIN } from
|
|
17
|
-
import { PickersSlideTransition } from
|
|
18
|
-
import { useIsDateDisabled } from
|
|
19
|
-
import { findClosestEnabledDate, getWeekdays } from
|
|
20
|
-
import { getDayCalendarUtilityClass } from
|
|
13
|
+
import { PickersDay } from "../PickersDay/PickersDay.js";
|
|
14
|
+
import { usePickersTranslations } from "../hooks/usePickersTranslations.js";
|
|
15
|
+
import { useUtils, useNow } from "../internals/hooks/useUtils.js";
|
|
16
|
+
import { DAY_SIZE, DAY_MARGIN } from "../internals/constants/dimensions.js";
|
|
17
|
+
import { PickersSlideTransition } from "./PickersSlideTransition.js";
|
|
18
|
+
import { useIsDateDisabled } from "./useIsDateDisabled.js";
|
|
19
|
+
import { findClosestEnabledDate, getWeekdays } from "../internals/utils/date-utils.js";
|
|
20
|
+
import { getDayCalendarUtilityClass } from "./dayCalendarClasses.js";
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
const useUtilityClasses = ownerState => {
|
|
23
23
|
const {
|
|
@@ -360,7 +360,6 @@ export function DayCalendar(inProps) {
|
|
|
360
360
|
const transitionKey = `${currentYearNumber}-${currentMonthNumber}`;
|
|
361
361
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
362
362
|
const slideNodeRef = React.useMemo(() => /*#__PURE__*/React.createRef(), [transitionKey]);
|
|
363
|
-
const startOfCurrentWeek = utils.startOfWeek(now);
|
|
364
363
|
const focusableDay = React.useMemo(() => {
|
|
365
364
|
const startOfMonth = utils.startOfMonth(currentMonth);
|
|
366
365
|
const endOfMonth = utils.endOfMonth(currentMonth);
|
|
@@ -410,7 +409,7 @@ export function DayCalendar(inProps) {
|
|
|
410
409
|
}), getWeekdays(utils, now).map((weekday, i) => /*#__PURE__*/_jsx(PickersCalendarWeekDayLabel, {
|
|
411
410
|
variant: "caption",
|
|
412
411
|
role: "columnheader",
|
|
413
|
-
"aria-label": utils.format(
|
|
412
|
+
"aria-label": utils.format(weekday, 'weekday'),
|
|
414
413
|
className: classes.weekDayLabel,
|
|
415
414
|
children: dayOfWeekFormatter(weekday)
|
|
416
415
|
}, i.toString()))]
|
|
@@ -4,7 +4,7 @@ import { TransitionGroup } from 'react-transition-group';
|
|
|
4
4
|
import Fade from '@mui/material/Fade';
|
|
5
5
|
import { styled, useTheme, useThemeProps } from '@mui/material/styles';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { getPickersFadeTransitionGroupUtilityClass } from
|
|
7
|
+
import { getPickersFadeTransitionGroupUtilityClass } from "./pickersFadeTransitionGroupClasses.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const useUtilityClasses = ownerState => {
|
|
10
10
|
const {
|
|
@@ -6,7 +6,7 @@ import clsx from 'clsx';
|
|
|
6
6
|
import { styled, useTheme, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
8
|
import { CSSTransition, TransitionGroup } from 'react-transition-group';
|
|
9
|
-
import { getPickersSlideTransitionUtilityClass, pickersSlideTransitionClasses } from
|
|
9
|
+
import { getPickersSlideTransitionUtilityClass, pickersSlideTransitionClasses } from "./pickersSlideTransitionClasses.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const useUtilityClasses = ownerState => {
|
|
12
12
|
const {
|
package/DateCalendar/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DateCalendar } from
|
|
2
|
-
export { getDateCalendarUtilityClass, dateCalendarClasses } from
|
|
3
|
-
export { dayCalendarClasses } from
|
|
4
|
-
export { pickersFadeTransitionGroupClasses } from
|
|
5
|
-
export { pickersSlideTransitionClasses } from
|
|
1
|
+
export { DateCalendar } from "./DateCalendar.js";
|
|
2
|
+
export { getDateCalendarUtilityClass, dateCalendarClasses } from "./dateCalendarClasses.js";
|
|
3
|
+
export { dayCalendarClasses } from "./dayCalendarClasses.js";
|
|
4
|
+
export { pickersFadeTransitionGroupClasses } from "./pickersFadeTransitionGroupClasses.js";
|
|
5
|
+
export { pickersSlideTransitionClasses } from "./pickersSlideTransitionClasses.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
4
|
-
import { useIsDateDisabled } from
|
|
5
|
-
import { useUtils } from
|
|
6
|
-
import { singleItemValueManager } from
|
|
7
|
-
import { SECTION_TYPE_GRANULARITY } from
|
|
4
|
+
import { useIsDateDisabled } from "./useIsDateDisabled.js";
|
|
5
|
+
import { useUtils } from "../internals/hooks/useUtils.js";
|
|
6
|
+
import { singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
7
|
+
import { SECTION_TYPE_GRANULARITY } from "../internals/utils/getDefaultReferenceDate.js";
|
|
8
8
|
export const createCalendarStateReducer = (reduceAnimations, disableSwitchToMonthOnDayFocus, utils) => (state, action) => {
|
|
9
9
|
switch (action.type) {
|
|
10
10
|
case 'changeMonth':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { validateDate } from
|
|
3
|
-
import { useLocalizationContext } from
|
|
2
|
+
import { validateDate } from "../internals/utils/validation/validateDate.js";
|
|
3
|
+
import { useLocalizationContext } from "../internals/hooks/useUtils.js";
|
|
4
4
|
export const useIsDateDisabled = ({
|
|
5
5
|
shouldDisableDate,
|
|
6
6
|
shouldDisableMonth,
|
package/DateField/DateField.js
CHANGED
|
@@ -7,10 +7,10 @@ import MuiTextField from '@mui/material/TextField';
|
|
|
7
7
|
import { useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
9
9
|
import { refType } from '@mui/utils';
|
|
10
|
-
import { useDateField } from
|
|
11
|
-
import { useClearableField } from
|
|
12
|
-
import { PickersTextField } from
|
|
13
|
-
import { convertFieldResponseIntoMuiTextFieldProps } from
|
|
10
|
+
import { useDateField } from "./useDateField.js";
|
|
11
|
+
import { useClearableField } from "../hooks/index.js";
|
|
12
|
+
import { PickersTextField } from "../PickersTextField/index.js";
|
|
13
|
+
import { convertFieldResponseIntoMuiTextFieldProps } from "../internals/utils/convertFieldResponseIntoMuiTextFieldProps.js";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
/**
|
|
16
16
|
* Demos:
|
|
@@ -189,8 +189,8 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
|
189
189
|
onBlur: PropTypes.func,
|
|
190
190
|
/**
|
|
191
191
|
* Callback fired when the value changes.
|
|
192
|
-
* @template TValue The value type.
|
|
193
|
-
* @template TError The validation error type.
|
|
192
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
193
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
194
194
|
* @param {TValue} value The new value.
|
|
195
195
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
196
196
|
*/
|
|
@@ -200,11 +200,13 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
|
200
200
|
*/
|
|
201
201
|
onClear: PropTypes.func,
|
|
202
202
|
/**
|
|
203
|
-
* Callback fired when the error associated
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
* @
|
|
207
|
-
* @
|
|
203
|
+
* Callback fired when the error associated with the current value changes.
|
|
204
|
+
* When a validation error is detected, the `error` parameter contains a non-null value.
|
|
205
|
+
* This can be used to render an appropriate form error.
|
|
206
|
+
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
207
|
+
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
208
|
+
* @param {TError} error The reason why the current value is not valid.
|
|
209
|
+
* @param {TValue} value The value associated with the error.
|
|
208
210
|
*/
|
|
209
211
|
onError: PropTypes.func,
|
|
210
212
|
onFocus: PropTypes.func,
|
package/DateField/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DateField } from
|
|
2
|
-
export { useDateField as unstable_useDateField } from
|
|
1
|
+
export { DateField } from "./DateField.js";
|
|
2
|
+
export { useDateField as unstable_useDateField } from "./useDateField.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { singleItemFieldValueManager, singleItemValueManager } from
|
|
2
|
-
import { useField } from
|
|
3
|
-
import { validateDate } from
|
|
4
|
-
import { splitFieldInternalAndForwardedProps } from
|
|
5
|
-
import { useDefaultizedDateField } from
|
|
1
|
+
import { singleItemFieldValueManager, singleItemValueManager } from "../internals/utils/valueManagers.js";
|
|
2
|
+
import { useField } from "../internals/hooks/useField/index.js";
|
|
3
|
+
import { validateDate } from "../internals/utils/validation/validateDate.js";
|
|
4
|
+
import { splitFieldInternalAndForwardedProps } from "../internals/utils/fields.js";
|
|
5
|
+
import { useDefaultizedDateField } from "../internals/hooks/defaultizedFieldProps.js";
|
|
6
6
|
export const useDateField = inProps => {
|
|
7
7
|
const props = useDefaultizedDateField(inProps);
|
|
8
8
|
const {
|