@mui/x-date-pickers 8.0.0-beta.2 → 8.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +141 -0
- package/DateField/DateField.js +4 -4
- package/DateTimeField/DateTimeField.js +4 -4
- package/DesktopDatePicker/DesktopDatePicker.js +2 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -1
- package/DesktopTimePicker/DesktopTimePicker.js +2 -1
- package/DigitalClock/DigitalClock.js +1 -0
- package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/LocalizationProvider/LocalizationProvider.js +2 -2
- package/MobileDatePicker/MobileDatePicker.js +2 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +9 -1
- package/MobileTimePicker/MobileTimePicker.js +2 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -0
- package/PickersActionBar/PickersActionBar.d.ts +1 -1
- package/PickersActionBar/PickersActionBar.js +21 -3
- package/StaticDatePicker/StaticDatePicker.js +2 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +9 -1
- package/StaticTimePicker/StaticTimePicker.js +2 -1
- package/TimeField/TimeField.js +4 -4
- package/esm/DateField/DateField.js +4 -4
- package/esm/DateTimeField/DateTimeField.js +4 -4
- package/esm/DesktopDatePicker/DesktopDatePicker.js +2 -1
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -1
- package/esm/DesktopTimePicker/DesktopTimePicker.js +2 -1
- package/esm/DigitalClock/DigitalClock.js +1 -0
- package/esm/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/esm/LocalizationProvider/LocalizationProvider.js +2 -2
- package/esm/MobileDatePicker/MobileDatePicker.js +2 -1
- package/esm/MobileDateTimePicker/MobileDateTimePicker.js +9 -1
- package/esm/MobileTimePicker/MobileTimePicker.js +2 -1
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -0
- package/esm/PickersActionBar/PickersActionBar.d.ts +1 -1
- package/esm/PickersActionBar/PickersActionBar.js +22 -4
- package/esm/StaticDatePicker/StaticDatePicker.js +2 -1
- package/esm/StaticDateTimePicker/StaticDateTimePicker.js +9 -1
- package/esm/StaticTimePicker/StaticTimePicker.js +2 -1
- package/esm/TimeField/TimeField.js +4 -4
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerProvider.d.ts +9 -0
- package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +1 -0
- package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.js +9 -3
- package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +7 -0
- package/esm/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/esm/internals/hooks/useMobilePicker/useMobilePicker.d.ts +1 -0
- package/esm/internals/hooks/useMobilePicker/useMobilePicker.js +9 -3
- package/esm/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +7 -0
- package/esm/internals/hooks/usePicker/usePicker.d.ts +2 -1
- package/esm/internals/hooks/usePicker/usePicker.js +14 -4
- package/esm/internals/hooks/usePicker/usePicker.types.d.ts +2 -0
- package/esm/internals/hooks/useStaticPicker/useStaticPicker.d.ts +1 -0
- package/esm/internals/hooks/useStaticPicker/useStaticPicker.js +9 -3
- package/esm/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +7 -0
- package/esm/internals/index.d.ts +3 -2
- package/esm/internals/index.js +3 -2
- package/esm/internals/utils/createNonRangePickerStepNavigation.d.ts +13 -0
- package/esm/internals/utils/createNonRangePickerStepNavigation.js +24 -0
- package/esm/internals/utils/createStepNavigation.d.ts +32 -0
- package/esm/internals/utils/createStepNavigation.js +34 -0
- package/esm/internals/utils/date-utils.d.ts +1 -0
- package/esm/internals/utils/date-utils.js +2 -2
- package/esm/internals/utils/time-utils.d.ts +2 -0
- package/esm/internals/utils/time-utils.js +4 -3
- package/esm/locales/beBY.d.ts +1 -0
- package/esm/locales/beBY.js +1 -0
- package/esm/locales/bgBG.d.ts +1 -0
- package/esm/locales/bgBG.js +1 -0
- package/esm/locales/bnBD.d.ts +1 -0
- package/esm/locales/bnBD.js +1 -0
- package/esm/locales/caES.d.ts +1 -0
- package/esm/locales/caES.js +1 -0
- package/esm/locales/csCZ.d.ts +1 -0
- package/esm/locales/csCZ.js +1 -0
- package/esm/locales/daDK.d.ts +1 -0
- package/esm/locales/daDK.js +1 -0
- package/esm/locales/deDE.d.ts +1 -0
- package/esm/locales/deDE.js +1 -0
- package/esm/locales/elGR.d.ts +1 -0
- package/esm/locales/elGR.js +1 -0
- package/esm/locales/enUS.d.ts +1 -0
- package/esm/locales/enUS.js +1 -0
- package/esm/locales/esES.d.ts +1 -0
- package/esm/locales/esES.js +1 -0
- package/esm/locales/eu.d.ts +1 -0
- package/esm/locales/eu.js +1 -0
- package/esm/locales/faIR.d.ts +1 -0
- package/esm/locales/faIR.js +1 -0
- package/esm/locales/fiFI.d.ts +1 -0
- package/esm/locales/fiFI.js +1 -0
- package/esm/locales/frFR.d.ts +1 -0
- package/esm/locales/frFR.js +1 -0
- package/esm/locales/heIL.d.ts +1 -0
- package/esm/locales/heIL.js +1 -0
- package/esm/locales/hrHR.d.ts +1 -0
- package/esm/locales/hrHR.js +1 -0
- package/esm/locales/huHU.d.ts +1 -0
- package/esm/locales/huHU.js +1 -0
- package/esm/locales/isIS.d.ts +1 -0
- package/esm/locales/isIS.js +1 -0
- package/esm/locales/itIT.d.ts +1 -0
- package/esm/locales/itIT.js +1 -0
- package/esm/locales/jaJP.d.ts +1 -0
- package/esm/locales/jaJP.js +1 -0
- package/esm/locales/koKR.d.ts +1 -0
- package/esm/locales/koKR.js +1 -0
- package/esm/locales/kzKZ.d.ts +1 -0
- package/esm/locales/kzKZ.js +1 -0
- package/esm/locales/mk.d.ts +1 -0
- package/esm/locales/mk.js +1 -0
- package/esm/locales/nbNO.d.ts +1 -0
- package/esm/locales/nbNO.js +1 -0
- package/esm/locales/nlNL.d.ts +1 -0
- package/esm/locales/nlNL.js +1 -0
- package/esm/locales/nnNO.d.ts +1 -0
- package/esm/locales/nnNO.js +1 -0
- package/esm/locales/plPL.d.ts +1 -0
- package/esm/locales/plPL.js +1 -0
- package/esm/locales/ptBR.d.ts +1 -0
- package/esm/locales/ptBR.js +1 -0
- package/esm/locales/ptPT.d.ts +1 -0
- package/esm/locales/ptPT.js +1 -0
- package/esm/locales/roRO.d.ts +1 -0
- package/esm/locales/roRO.js +1 -0
- package/esm/locales/ruRU.d.ts +1 -0
- package/esm/locales/ruRU.js +1 -0
- package/esm/locales/skSK.d.ts +1 -0
- package/esm/locales/skSK.js +1 -0
- package/esm/locales/svSE.d.ts +1 -0
- package/esm/locales/svSE.js +1 -0
- package/esm/locales/trTR.d.ts +1 -0
- package/esm/locales/trTR.js +1 -0
- package/esm/locales/ukUA.d.ts +1 -0
- package/esm/locales/ukUA.js +1 -0
- package/esm/locales/urPK.d.ts +1 -0
- package/esm/locales/urPK.js +1 -0
- package/esm/locales/utils/getPickersLocalization.d.ts +1 -0
- package/esm/locales/utils/pickersLocaleTextApi.d.ts +1 -0
- package/esm/locales/viVN.d.ts +1 -0
- package/esm/locales/viVN.js +1 -0
- package/esm/locales/zhCN.d.ts +1 -0
- package/esm/locales/zhCN.js +1 -0
- package/esm/locales/zhHK.d.ts +1 -0
- package/esm/locales/zhHK.js +1 -0
- package/esm/locales/zhTW.d.ts +1 -0
- package/esm/locales/zhTW.js +1 -0
- package/index.js +1 -1
- package/internals/components/PickerProvider.d.ts +9 -0
- package/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +1 -0
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +9 -3
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +7 -0
- package/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/internals/hooks/useMobilePicker/useMobilePicker.d.ts +1 -0
- package/internals/hooks/useMobilePicker/useMobilePicker.js +9 -3
- package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +7 -0
- package/internals/hooks/usePicker/usePicker.d.ts +2 -1
- package/internals/hooks/usePicker/usePicker.js +14 -4
- package/internals/hooks/usePicker/usePicker.types.d.ts +2 -0
- package/internals/hooks/useStaticPicker/useStaticPicker.d.ts +1 -0
- package/internals/hooks/useStaticPicker/useStaticPicker.js +9 -3
- package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +7 -0
- package/internals/index.d.ts +3 -2
- package/internals/index.js +19 -0
- package/internals/utils/createNonRangePickerStepNavigation.d.ts +13 -0
- package/internals/utils/createNonRangePickerStepNavigation.js +30 -0
- package/internals/utils/createStepNavigation.d.ts +32 -0
- package/internals/utils/createStepNavigation.js +41 -0
- package/internals/utils/date-utils.d.ts +1 -0
- package/internals/utils/date-utils.js +3 -3
- package/internals/utils/time-utils.d.ts +2 -0
- package/internals/utils/time-utils.js +5 -4
- package/locales/beBY.d.ts +1 -0
- package/locales/beBY.js +1 -0
- package/locales/bgBG.d.ts +1 -0
- package/locales/bgBG.js +1 -0
- package/locales/bnBD.d.ts +1 -0
- package/locales/bnBD.js +1 -0
- package/locales/caES.d.ts +1 -0
- package/locales/caES.js +1 -0
- package/locales/csCZ.d.ts +1 -0
- package/locales/csCZ.js +1 -0
- package/locales/daDK.d.ts +1 -0
- package/locales/daDK.js +1 -0
- package/locales/deDE.d.ts +1 -0
- package/locales/deDE.js +1 -0
- package/locales/elGR.d.ts +1 -0
- package/locales/elGR.js +1 -0
- package/locales/enUS.d.ts +1 -0
- package/locales/enUS.js +1 -0
- package/locales/esES.d.ts +1 -0
- package/locales/esES.js +1 -0
- package/locales/eu.d.ts +1 -0
- package/locales/eu.js +1 -0
- package/locales/faIR.d.ts +1 -0
- package/locales/faIR.js +1 -0
- package/locales/fiFI.d.ts +1 -0
- package/locales/fiFI.js +1 -0
- package/locales/frFR.d.ts +1 -0
- package/locales/frFR.js +1 -0
- package/locales/heIL.d.ts +1 -0
- package/locales/heIL.js +1 -0
- package/locales/hrHR.d.ts +1 -0
- package/locales/hrHR.js +1 -0
- package/locales/huHU.d.ts +1 -0
- package/locales/huHU.js +1 -0
- package/locales/isIS.d.ts +1 -0
- package/locales/isIS.js +1 -0
- package/locales/itIT.d.ts +1 -0
- package/locales/itIT.js +1 -0
- package/locales/jaJP.d.ts +1 -0
- package/locales/jaJP.js +1 -0
- package/locales/koKR.d.ts +1 -0
- package/locales/koKR.js +1 -0
- package/locales/kzKZ.d.ts +1 -0
- package/locales/kzKZ.js +1 -0
- package/locales/mk.d.ts +1 -0
- package/locales/mk.js +1 -0
- package/locales/nbNO.d.ts +1 -0
- package/locales/nbNO.js +1 -0
- package/locales/nlNL.d.ts +1 -0
- package/locales/nlNL.js +1 -0
- package/locales/nnNO.d.ts +1 -0
- package/locales/nnNO.js +1 -0
- package/locales/plPL.d.ts +1 -0
- package/locales/plPL.js +1 -0
- package/locales/ptBR.d.ts +1 -0
- package/locales/ptBR.js +1 -0
- package/locales/ptPT.d.ts +1 -0
- package/locales/ptPT.js +1 -0
- package/locales/roRO.d.ts +1 -0
- package/locales/roRO.js +1 -0
- package/locales/ruRU.d.ts +1 -0
- package/locales/ruRU.js +1 -0
- package/locales/skSK.d.ts +1 -0
- package/locales/skSK.js +1 -0
- package/locales/svSE.d.ts +1 -0
- package/locales/svSE.js +1 -0
- package/locales/trTR.d.ts +1 -0
- package/locales/trTR.js +1 -0
- package/locales/ukUA.d.ts +1 -0
- package/locales/ukUA.js +1 -0
- package/locales/urPK.d.ts +1 -0
- package/locales/urPK.js +1 -0
- package/locales/utils/getPickersLocalization.d.ts +1 -0
- package/locales/utils/pickersLocaleTextApi.d.ts +1 -0
- package/locales/viVN.d.ts +1 -0
- package/locales/viVN.js +1 -0
- package/locales/zhCN.d.ts +1 -0
- package/locales/zhCN.js +1 -0
- package/locales/zhHK.d.ts +1 -0
- package/locales/zhHK.js +1 -0
- package/locales/zhTW.d.ts +1 -0
- package/locales/zhTW.js +1 -0
- package/modern/DateField/DateField.js +4 -4
- package/modern/DateTimeField/DateTimeField.js +4 -4
- package/modern/DesktopDatePicker/DesktopDatePicker.js +2 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -1
- package/modern/DesktopTimePicker/DesktopTimePicker.js +2 -1
- package/modern/DigitalClock/DigitalClock.js +1 -0
- package/modern/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/modern/LocalizationProvider/LocalizationProvider.js +2 -2
- package/modern/MobileDatePicker/MobileDatePicker.js +2 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +9 -1
- package/modern/MobileTimePicker/MobileTimePicker.js +2 -1
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -0
- package/modern/PickersActionBar/PickersActionBar.d.ts +1 -1
- package/modern/PickersActionBar/PickersActionBar.js +22 -4
- package/modern/StaticDatePicker/StaticDatePicker.js +2 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +9 -1
- package/modern/StaticTimePicker/StaticTimePicker.js +2 -1
- package/modern/TimeField/TimeField.js +4 -4
- package/modern/index.js +1 -1
- package/modern/internals/components/PickerProvider.d.ts +9 -0
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +1 -0
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +9 -3
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +7 -0
- package/modern/internals/hooks/useField/buildSectionsFromFormat.js +1 -1
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.d.ts +1 -0
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +9 -3
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +7 -0
- package/modern/internals/hooks/usePicker/usePicker.d.ts +2 -1
- package/modern/internals/hooks/usePicker/usePicker.js +14 -4
- package/modern/internals/hooks/usePicker/usePicker.types.d.ts +2 -0
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.d.ts +1 -0
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.js +9 -3
- package/modern/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +7 -0
- package/modern/internals/index.d.ts +3 -2
- package/modern/internals/index.js +3 -2
- package/modern/internals/utils/createNonRangePickerStepNavigation.d.ts +13 -0
- package/modern/internals/utils/createNonRangePickerStepNavigation.js +24 -0
- package/modern/internals/utils/createStepNavigation.d.ts +32 -0
- package/modern/internals/utils/createStepNavigation.js +34 -0
- package/modern/internals/utils/date-utils.d.ts +1 -0
- package/modern/internals/utils/date-utils.js +2 -2
- package/modern/internals/utils/time-utils.d.ts +2 -0
- package/modern/internals/utils/time-utils.js +4 -3
- package/modern/locales/beBY.d.ts +1 -0
- package/modern/locales/beBY.js +1 -0
- package/modern/locales/bgBG.d.ts +1 -0
- package/modern/locales/bgBG.js +1 -0
- package/modern/locales/bnBD.d.ts +1 -0
- package/modern/locales/bnBD.js +1 -0
- package/modern/locales/caES.d.ts +1 -0
- package/modern/locales/caES.js +1 -0
- package/modern/locales/csCZ.d.ts +1 -0
- package/modern/locales/csCZ.js +1 -0
- package/modern/locales/daDK.d.ts +1 -0
- package/modern/locales/daDK.js +1 -0
- package/modern/locales/deDE.d.ts +1 -0
- package/modern/locales/deDE.js +1 -0
- package/modern/locales/elGR.d.ts +1 -0
- package/modern/locales/elGR.js +1 -0
- package/modern/locales/enUS.d.ts +1 -0
- package/modern/locales/enUS.js +1 -0
- package/modern/locales/esES.d.ts +1 -0
- package/modern/locales/esES.js +1 -0
- package/modern/locales/eu.d.ts +1 -0
- package/modern/locales/eu.js +1 -0
- package/modern/locales/faIR.d.ts +1 -0
- package/modern/locales/faIR.js +1 -0
- package/modern/locales/fiFI.d.ts +1 -0
- package/modern/locales/fiFI.js +1 -0
- package/modern/locales/frFR.d.ts +1 -0
- package/modern/locales/frFR.js +1 -0
- package/modern/locales/heIL.d.ts +1 -0
- package/modern/locales/heIL.js +1 -0
- package/modern/locales/hrHR.d.ts +1 -0
- package/modern/locales/hrHR.js +1 -0
- package/modern/locales/huHU.d.ts +1 -0
- package/modern/locales/huHU.js +1 -0
- package/modern/locales/isIS.d.ts +1 -0
- package/modern/locales/isIS.js +1 -0
- package/modern/locales/itIT.d.ts +1 -0
- package/modern/locales/itIT.js +1 -0
- package/modern/locales/jaJP.d.ts +1 -0
- package/modern/locales/jaJP.js +1 -0
- package/modern/locales/koKR.d.ts +1 -0
- package/modern/locales/koKR.js +1 -0
- package/modern/locales/kzKZ.d.ts +1 -0
- package/modern/locales/kzKZ.js +1 -0
- package/modern/locales/mk.d.ts +1 -0
- package/modern/locales/mk.js +1 -0
- package/modern/locales/nbNO.d.ts +1 -0
- package/modern/locales/nbNO.js +1 -0
- package/modern/locales/nlNL.d.ts +1 -0
- package/modern/locales/nlNL.js +1 -0
- package/modern/locales/nnNO.d.ts +1 -0
- package/modern/locales/nnNO.js +1 -0
- package/modern/locales/plPL.d.ts +1 -0
- package/modern/locales/plPL.js +1 -0
- package/modern/locales/ptBR.d.ts +1 -0
- package/modern/locales/ptBR.js +1 -0
- package/modern/locales/ptPT.d.ts +1 -0
- package/modern/locales/ptPT.js +1 -0
- package/modern/locales/roRO.d.ts +1 -0
- package/modern/locales/roRO.js +1 -0
- package/modern/locales/ruRU.d.ts +1 -0
- package/modern/locales/ruRU.js +1 -0
- package/modern/locales/skSK.d.ts +1 -0
- package/modern/locales/skSK.js +1 -0
- package/modern/locales/svSE.d.ts +1 -0
- package/modern/locales/svSE.js +1 -0
- package/modern/locales/trTR.d.ts +1 -0
- package/modern/locales/trTR.js +1 -0
- package/modern/locales/ukUA.d.ts +1 -0
- package/modern/locales/ukUA.js +1 -0
- package/modern/locales/urPK.d.ts +1 -0
- package/modern/locales/urPK.js +1 -0
- package/modern/locales/utils/getPickersLocalization.d.ts +1 -0
- package/modern/locales/utils/pickersLocaleTextApi.d.ts +1 -0
- package/modern/locales/viVN.d.ts +1 -0
- package/modern/locales/viVN.js +1 -0
- package/modern/locales/zhCN.d.ts +1 -0
- package/modern/locales/zhCN.js +1 -0
- package/modern/locales/zhHK.d.ts +1 -0
- package/modern/locales/zhHK.js +1 -0
- package/modern/locales/zhTW.d.ts +1 -0
- package/modern/locales/zhTW.js +1 -0
- package/package.json +6 -6
- package/tsconfig.build.tsbuildinfo +1 -1
package/locales/nlNL.js
CHANGED
|
@@ -31,6 +31,7 @@ const nlNLPickers = {
|
|
|
31
31
|
clearButtonLabel: 'Resetten',
|
|
32
32
|
okButtonLabel: 'OK',
|
|
33
33
|
todayButtonLabel: 'Vandaag',
|
|
34
|
+
nextStepButtonLabel: 'Volgende',
|
|
34
35
|
// Toolbar titles
|
|
35
36
|
datePickerToolbarTitle: 'Selecteer datum',
|
|
36
37
|
dateTimePickerToolbarTitle: 'Selecteer datum & tijd',
|
package/locales/nnNO.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const nnNO: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/nnNO.js
CHANGED
package/locales/plPL.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const plPL: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/plPL.js
CHANGED
|
@@ -31,6 +31,7 @@ const plPLPickers = {
|
|
|
31
31
|
clearButtonLabel: 'Wyczyść',
|
|
32
32
|
okButtonLabel: 'Zatwierdź',
|
|
33
33
|
todayButtonLabel: 'Dzisiaj',
|
|
34
|
+
nextStepButtonLabel: 'Następny',
|
|
34
35
|
// Toolbar titles
|
|
35
36
|
datePickerToolbarTitle: 'Wybierz datę',
|
|
36
37
|
dateTimePickerToolbarTitle: 'Wybierz datę i czas',
|
package/locales/ptBR.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const ptBR: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/ptBR.js
CHANGED
|
@@ -31,6 +31,7 @@ const ptBRPickers = {
|
|
|
31
31
|
clearButtonLabel: 'Limpar',
|
|
32
32
|
okButtonLabel: 'OK',
|
|
33
33
|
todayButtonLabel: 'Hoje',
|
|
34
|
+
nextStepButtonLabel: 'Próximo',
|
|
34
35
|
// Toolbar titles
|
|
35
36
|
datePickerToolbarTitle: 'Selecione a data',
|
|
36
37
|
dateTimePickerToolbarTitle: 'Selecione data e hora',
|
package/locales/ptPT.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const ptPT: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/ptPT.js
CHANGED
|
@@ -31,6 +31,7 @@ const ptPTPickers = {
|
|
|
31
31
|
clearButtonLabel: 'Limpar',
|
|
32
32
|
okButtonLabel: 'OK',
|
|
33
33
|
todayButtonLabel: 'Hoje',
|
|
34
|
+
nextStepButtonLabel: 'Próximo',
|
|
34
35
|
// Toolbar titles
|
|
35
36
|
datePickerToolbarTitle: 'Selecione a data',
|
|
36
37
|
dateTimePickerToolbarTitle: 'Selecione a data e a hora',
|
package/locales/roRO.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const roRO: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/roRO.js
CHANGED
|
@@ -32,6 +32,7 @@ const roROPickers = {
|
|
|
32
32
|
clearButtonLabel: 'Ștergere',
|
|
33
33
|
okButtonLabel: 'OK',
|
|
34
34
|
todayButtonLabel: 'Astăzi',
|
|
35
|
+
nextStepButtonLabel: 'Următoare',
|
|
35
36
|
// Toolbar titles
|
|
36
37
|
datePickerToolbarTitle: 'Selectați data',
|
|
37
38
|
dateTimePickerToolbarTitle: 'Selectați data și ora',
|
package/locales/ruRU.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const ruRU: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/ruRU.js
CHANGED
|
@@ -32,6 +32,7 @@ const ruRUPickers = {
|
|
|
32
32
|
clearButtonLabel: 'Очистить',
|
|
33
33
|
okButtonLabel: 'Ок',
|
|
34
34
|
todayButtonLabel: 'Сегодня',
|
|
35
|
+
nextStepButtonLabel: 'Следующий',
|
|
35
36
|
// Toolbar titles
|
|
36
37
|
datePickerToolbarTitle: 'Выбрать дату',
|
|
37
38
|
dateTimePickerToolbarTitle: 'Выбрать дату и время',
|
package/locales/skSK.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const skSK: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/skSK.js
CHANGED
|
@@ -33,6 +33,7 @@ const skSKPickers = {
|
|
|
33
33
|
clearButtonLabel: 'Vymazať',
|
|
34
34
|
okButtonLabel: 'Potvrdiť',
|
|
35
35
|
todayButtonLabel: 'Dnes',
|
|
36
|
+
nextStepButtonLabel: 'Predchádzajúci',
|
|
36
37
|
// Toolbar titles
|
|
37
38
|
datePickerToolbarTitle: 'Vyberte dátum',
|
|
38
39
|
dateTimePickerToolbarTitle: 'Vyberte dátum a čas',
|
package/locales/svSE.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const svSE: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/svSE.js
CHANGED
package/locales/trTR.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const trTR: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/trTR.js
CHANGED
package/locales/ukUA.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const ukUA: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/ukUA.js
CHANGED
|
@@ -31,6 +31,7 @@ const ukUAPickers = {
|
|
|
31
31
|
clearButtonLabel: 'Очистити',
|
|
32
32
|
okButtonLabel: 'OK',
|
|
33
33
|
todayButtonLabel: 'Сьогодні',
|
|
34
|
+
nextStepButtonLabel: 'Наступний',
|
|
34
35
|
// Toolbar titles
|
|
35
36
|
datePickerToolbarTitle: 'Вибрати дату',
|
|
36
37
|
dateTimePickerToolbarTitle: 'Вибрати дату і час',
|
package/locales/urPK.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const urPK: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/urPK.js
CHANGED
|
@@ -32,6 +32,7 @@ const urPKPickers = {
|
|
|
32
32
|
clearButtonLabel: 'کلئیر',
|
|
33
33
|
okButtonLabel: 'اوکے',
|
|
34
34
|
todayButtonLabel: 'آج',
|
|
35
|
+
nextStepButtonLabel: 'مہینہ',
|
|
35
36
|
// Toolbar titles
|
|
36
37
|
datePickerToolbarTitle: 'تاریخ منتخب کریں',
|
|
37
38
|
dateTimePickerToolbarTitle: 'تاریخ اور وقت منتخب کریں',
|
|
@@ -23,6 +23,7 @@ export declare const getPickersLocalization: (pickersTranslations: Partial<Picke
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
@@ -47,6 +47,7 @@ export interface PickersComponentAgnosticLocaleText {
|
|
|
47
47
|
clearButtonLabel: string;
|
|
48
48
|
okButtonLabel: string;
|
|
49
49
|
todayButtonLabel: string;
|
|
50
|
+
nextStepButtonLabel: string;
|
|
50
51
|
clockLabelText: (view: TimeView, formattedTime: string | null) => string;
|
|
51
52
|
hoursClockNumberText: (hours: string) => string;
|
|
52
53
|
minutesClockNumberText: (minutes: string) => string;
|
package/locales/viVN.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const viVN: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/viVN.js
CHANGED
package/locales/zhCN.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const zhCN: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/zhCN.js
CHANGED
package/locales/zhHK.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const zhHK: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/zhHK.js
CHANGED
package/locales/zhTW.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const zhTW: {
|
|
|
23
23
|
clearButtonLabel?: string | undefined;
|
|
24
24
|
okButtonLabel?: string | undefined;
|
|
25
25
|
todayButtonLabel?: string | undefined;
|
|
26
|
+
nextStepButtonLabel?: string | undefined;
|
|
26
27
|
clockLabelText?: ((view: import("@mui/x-date-pickers/models").TimeView, formattedTime: string | null) => string) | undefined;
|
|
27
28
|
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
28
29
|
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
package/locales/zhTW.js
CHANGED
|
@@ -113,7 +113,7 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
|
113
113
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
114
114
|
/**
|
|
115
115
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
116
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
116
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
117
117
|
*/
|
|
118
118
|
FormHelperTextProps: PropTypes.object,
|
|
119
119
|
/**
|
|
@@ -140,12 +140,12 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
|
140
140
|
/**
|
|
141
141
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
142
142
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
143
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
143
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
144
144
|
*/
|
|
145
145
|
InputLabelProps: PropTypes.object,
|
|
146
146
|
/**
|
|
147
147
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
148
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
148
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
149
149
|
*/
|
|
150
150
|
inputProps: PropTypes.object,
|
|
151
151
|
/**
|
|
@@ -153,7 +153,7 @@ process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
|
153
153
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
154
154
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
155
155
|
* component depending on the `variant` prop value.
|
|
156
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
156
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
157
157
|
*/
|
|
158
158
|
InputProps: PropTypes.object,
|
|
159
159
|
/**
|
|
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
123
123
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
124
124
|
/**
|
|
125
125
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
126
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
126
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
127
127
|
*/
|
|
128
128
|
FormHelperTextProps: PropTypes.object,
|
|
129
129
|
/**
|
|
@@ -150,12 +150,12 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
150
150
|
/**
|
|
151
151
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
152
152
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
153
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
153
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
154
154
|
*/
|
|
155
155
|
InputLabelProps: PropTypes.object,
|
|
156
156
|
/**
|
|
157
157
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
158
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
158
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
159
159
|
*/
|
|
160
160
|
inputProps: PropTypes.object,
|
|
161
161
|
/**
|
|
@@ -163,7 +163,7 @@ process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
|
163
163
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
164
164
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
165
165
|
* component depending on the `variant` prop value.
|
|
166
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
166
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
167
167
|
*/
|
|
168
168
|
InputProps: PropTypes.object,
|
|
169
169
|
/**
|
|
@@ -62,7 +62,8 @@ const DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DesktopDatePick
|
|
|
62
62
|
props,
|
|
63
63
|
valueManager: singleItemValueManager,
|
|
64
64
|
valueType: 'date',
|
|
65
|
-
validator: validateDate
|
|
65
|
+
validator: validateDate,
|
|
66
|
+
steps: null
|
|
66
67
|
});
|
|
67
68
|
return renderPicker();
|
|
68
69
|
});
|
|
@@ -136,7 +136,8 @@ const DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DesktopDate
|
|
|
136
136
|
valueManager: singleItemValueManager,
|
|
137
137
|
valueType: 'date-time',
|
|
138
138
|
validator: validateDateTime,
|
|
139
|
-
rendererInterceptor
|
|
139
|
+
rendererInterceptor,
|
|
140
|
+
steps: null
|
|
140
141
|
});
|
|
141
142
|
return renderPicker();
|
|
142
143
|
});
|
|
@@ -73,7 +73,8 @@ const DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DesktopTimePick
|
|
|
73
73
|
props,
|
|
74
74
|
valueManager: singleItemValueManager,
|
|
75
75
|
valueType: 'time',
|
|
76
|
-
validator: validateTime
|
|
76
|
+
validator: validateTime,
|
|
77
|
+
steps: null
|
|
77
78
|
});
|
|
78
79
|
return renderPicker();
|
|
79
80
|
});
|
|
@@ -15,7 +15,7 @@ export interface LocalizationProviderProps<TLocale> {
|
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
/**
|
|
17
17
|
* Date library adapter class function.
|
|
18
|
-
* @see See the localization provider {@link https://mui.com/x/react-date-pickers/
|
|
18
|
+
* @see See the localization provider {@link https://next.mui.com/x/react-date-pickers/quickstart/#integrate-provider-and-adapter date adapter setup section} for more details.
|
|
19
19
|
*/
|
|
20
20
|
dateAdapter?: new (...args: any) => MuiPickersAdapter<TLocale>;
|
|
21
21
|
/** Formats that are used for any child pickers */
|
|
@@ -63,7 +63,7 @@ export const LocalizationProvider = function LocalizationProvider(inProps) {
|
|
|
63
63
|
instance: dateLibInstance
|
|
64
64
|
});
|
|
65
65
|
if (!adapter.isMUIAdapter) {
|
|
66
|
-
throw new Error(['MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`', "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", 'More information on the installation documentation: https://mui.com/x/react-date-pickers/
|
|
66
|
+
throw new Error(['MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`', "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", 'More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation'].join(`\n`));
|
|
67
67
|
}
|
|
68
68
|
return adapter;
|
|
69
69
|
}, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentUtils]);
|
|
@@ -100,7 +100,7 @@ process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
|
|
|
100
100
|
children: PropTypes.node,
|
|
101
101
|
/**
|
|
102
102
|
* Date library adapter class function.
|
|
103
|
-
* @see See the localization provider {@link https://mui.com/x/react-date-pickers/
|
|
103
|
+
* @see See the localization provider {@link https://next.mui.com/x/react-date-pickers/quickstart/#integrate-provider-and-adapter date adapter setup section} for more details.
|
|
104
104
|
*/
|
|
105
105
|
dateAdapter: PropTypes.func,
|
|
106
106
|
/**
|
|
@@ -55,7 +55,8 @@ const MobileDatePicker = /*#__PURE__*/React.forwardRef(function MobileDatePicker
|
|
|
55
55
|
props,
|
|
56
56
|
valueManager: singleItemValueManager,
|
|
57
57
|
valueType: 'date',
|
|
58
|
-
validator: validateDate
|
|
58
|
+
validator: validateDate,
|
|
59
|
+
steps: null
|
|
59
60
|
});
|
|
60
61
|
return renderPicker();
|
|
61
62
|
});
|
|
@@ -18,6 +18,13 @@ import { DIALOG_WIDTH, VIEW_HEIGHT } from "../internals/constants/dimensions.js"
|
|
|
18
18
|
import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from "../MultiSectionDigitalClock/index.js";
|
|
19
19
|
import { mergeSx } from "../internals/utils/utils.js";
|
|
20
20
|
import { digitalClockClasses } from "../DigitalClock/index.js";
|
|
21
|
+
import { EXPORTED_TIME_VIEWS } from "../internals/utils/time-utils.js";
|
|
22
|
+
import { DATE_VIEWS } from "../internals/utils/date-utils.js";
|
|
23
|
+
const STEPS = [{
|
|
24
|
+
views: DATE_VIEWS
|
|
25
|
+
}, {
|
|
26
|
+
views: EXPORTED_TIME_VIEWS
|
|
27
|
+
}];
|
|
21
28
|
/**
|
|
22
29
|
* Demos:
|
|
23
30
|
*
|
|
@@ -98,7 +105,8 @@ const MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function MobileDateTi
|
|
|
98
105
|
props,
|
|
99
106
|
valueManager: singleItemValueManager,
|
|
100
107
|
valueType: 'date-time',
|
|
101
|
-
validator: validateDateTime
|
|
108
|
+
validator: validateDateTime,
|
|
109
|
+
steps: STEPS
|
|
102
110
|
});
|
|
103
111
|
return renderPicker();
|
|
104
112
|
});
|
|
@@ -58,7 +58,8 @@ const MobileTimePicker = /*#__PURE__*/React.forwardRef(function MobileTimePicker
|
|
|
58
58
|
props,
|
|
59
59
|
valueManager: singleItemValueManager,
|
|
60
60
|
valueType: 'time',
|
|
61
|
-
validator: validateTime
|
|
61
|
+
validator: validateTime,
|
|
62
|
+
steps: null
|
|
62
63
|
});
|
|
63
64
|
return renderPicker();
|
|
64
65
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DialogActionsProps } from '@mui/material/DialogActions';
|
|
3
|
-
export type PickersActionBarAction = 'clear' | 'cancel' | 'accept' | 'today';
|
|
3
|
+
export type PickersActionBarAction = 'clear' | 'cancel' | 'accept' | 'today' | 'next' | 'nextOrAccept';
|
|
4
4
|
export interface PickersActionBarProps extends DialogActionsProps {
|
|
5
5
|
/**
|
|
6
6
|
* Ordered array of actions to display.
|
|
@@ -9,7 +9,7 @@ import { styled } from '@mui/material/styles';
|
|
|
9
9
|
import Button from '@mui/material/Button';
|
|
10
10
|
import DialogActions from '@mui/material/DialogActions';
|
|
11
11
|
import { usePickerTranslations } from "../hooks/usePickerTranslations.js";
|
|
12
|
-
import {
|
|
12
|
+
import { usePickerContext } from "../hooks/index.js";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
const PickersActionBarRoot = styled(DialogActions, {
|
|
15
15
|
name: 'MuiPickersLayout',
|
|
@@ -37,8 +37,10 @@ function PickersActionBarComponent(props) {
|
|
|
37
37
|
clearValue,
|
|
38
38
|
setValueToToday,
|
|
39
39
|
acceptValueChanges,
|
|
40
|
-
cancelValueChanges
|
|
41
|
-
|
|
40
|
+
cancelValueChanges,
|
|
41
|
+
goToNextStep,
|
|
42
|
+
hasNextStep
|
|
43
|
+
} = usePickerContext();
|
|
42
44
|
if (actions == null || actions.length === 0) {
|
|
43
45
|
return null;
|
|
44
46
|
}
|
|
@@ -64,6 +66,22 @@ function PickersActionBarComponent(props) {
|
|
|
64
66
|
onClick: setValueToToday,
|
|
65
67
|
children: translations.todayButtonLabel
|
|
66
68
|
}, actionType);
|
|
69
|
+
case 'next':
|
|
70
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
71
|
+
onClick: goToNextStep,
|
|
72
|
+
children: translations.nextStepButtonLabel
|
|
73
|
+
}, actionType);
|
|
74
|
+
case 'nextOrAccept':
|
|
75
|
+
if (hasNextStep) {
|
|
76
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
77
|
+
onClick: goToNextStep,
|
|
78
|
+
children: translations.nextStepButtonLabel
|
|
79
|
+
}, actionType);
|
|
80
|
+
}
|
|
81
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
82
|
+
onClick: acceptValueChanges,
|
|
83
|
+
children: translations.okButtonLabel
|
|
84
|
+
}, actionType);
|
|
67
85
|
default:
|
|
68
86
|
return null;
|
|
69
87
|
}
|
|
@@ -84,7 +102,7 @@ process.env.NODE_ENV !== "production" ? PickersActionBarComponent.propTypes = {
|
|
|
84
102
|
* - `[]` for Desktop Date Picker and Desktop Date Range Picker
|
|
85
103
|
* - `['cancel', 'accept']` for all other Pickers
|
|
86
104
|
*/
|
|
87
|
-
actions: PropTypes.arrayOf(PropTypes.oneOf(['accept', 'cancel', 'clear', 'today']).isRequired),
|
|
105
|
+
actions: PropTypes.arrayOf(PropTypes.oneOf(['accept', 'cancel', 'clear', 'next', 'nextOrAccept', 'today']).isRequired),
|
|
88
106
|
/**
|
|
89
107
|
* If `true`, the actions do not have additional margin.
|
|
90
108
|
* @default false
|
|
@@ -45,7 +45,8 @@ const StaticDatePicker = /*#__PURE__*/React.forwardRef(function StaticDatePicker
|
|
|
45
45
|
props,
|
|
46
46
|
valueManager: singleItemValueManager,
|
|
47
47
|
valueType: 'date',
|
|
48
|
-
validator: validateDate
|
|
48
|
+
validator: validateDate,
|
|
49
|
+
steps: null
|
|
49
50
|
});
|
|
50
51
|
return renderPicker();
|
|
51
52
|
});
|
|
@@ -13,6 +13,13 @@ import { mergeSx } from "../internals/utils/utils.js";
|
|
|
13
13
|
import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from "../MultiSectionDigitalClock/index.js";
|
|
14
14
|
import { DIALOG_WIDTH, VIEW_HEIGHT } from "../internals/constants/dimensions.js";
|
|
15
15
|
import { digitalClockClasses } from "../DigitalClock/index.js";
|
|
16
|
+
import { DATE_VIEWS } from "../internals/utils/date-utils.js";
|
|
17
|
+
import { EXPORTED_TIME_VIEWS } from "../internals/utils/time-utils.js";
|
|
18
|
+
const STEPS = [{
|
|
19
|
+
views: DATE_VIEWS
|
|
20
|
+
}, {
|
|
21
|
+
views: EXPORTED_TIME_VIEWS
|
|
22
|
+
}];
|
|
16
23
|
/**
|
|
17
24
|
* Demos:
|
|
18
25
|
*
|
|
@@ -87,7 +94,8 @@ const StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function StaticDateTi
|
|
|
87
94
|
props,
|
|
88
95
|
valueManager: singleItemValueManager,
|
|
89
96
|
valueType: 'date-time',
|
|
90
|
-
validator: validateDateTime
|
|
97
|
+
validator: validateDateTime,
|
|
98
|
+
steps: STEPS
|
|
91
99
|
});
|
|
92
100
|
return renderPicker();
|
|
93
101
|
});
|
|
@@ -47,7 +47,8 @@ const StaticTimePicker = /*#__PURE__*/React.forwardRef(function StaticTimePicker
|
|
|
47
47
|
props,
|
|
48
48
|
valueManager: singleItemValueManager,
|
|
49
49
|
valueType: 'time',
|
|
50
|
-
validator: validateTime
|
|
50
|
+
validator: validateTime,
|
|
51
|
+
steps: null
|
|
51
52
|
});
|
|
52
53
|
return renderPicker();
|
|
53
54
|
});
|