@mui/x-date-pickers 6.2.1 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdapterDateFns/AdapterDateFns.d.ts +109 -0
- package/AdapterDateFns/AdapterDateFns.js +598 -0
- package/AdapterDateFns/index.d.ts +1 -13
- package/AdapterDateFns/index.js +1 -149
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +109 -0
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +610 -0
- package/AdapterDateFnsJalali/index.d.ts +1 -13
- package/AdapterDateFnsJalali/index.js +1 -149
- package/AdapterDayjs/AdapterDayjs.d.ts +53 -53
- package/AdapterDayjs/AdapterDayjs.js +146 -111
- package/AdapterLuxon/AdapterLuxon.d.ts +108 -0
- package/AdapterLuxon/AdapterLuxon.js +513 -0
- package/AdapterLuxon/index.d.ts +1 -14
- package/AdapterLuxon/index.js +1 -111
- package/AdapterMoment/AdapterMoment.d.ts +110 -0
- package/AdapterMoment/AdapterMoment.js +416 -0
- package/AdapterMoment/index.d.ts +1 -21
- package/AdapterMoment/index.js +1 -99
- package/AdapterMomentHijri/AdapterMomentHijri.d.ts +67 -0
- package/AdapterMomentHijri/AdapterMomentHijri.js +269 -0
- package/AdapterMomentHijri/index.d.ts +1 -18
- package/AdapterMomentHijri/index.js +1 -74
- package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +74 -0
- package/AdapterMomentJalaali/AdapterMomentJalaali.js +276 -0
- package/AdapterMomentJalaali/index.d.ts +1 -22
- package/AdapterMomentJalaali/index.js +1 -87
- package/CHANGELOG.md +118 -3
- package/DateCalendar/DateCalendar.types.d.ts +1 -1
- package/DateCalendar/DayCalendar.d.ts +1 -1
- package/DateCalendar/DayCalendar.js +1 -1
- package/DateCalendar/PickersCalendarHeader.d.ts +1 -1
- package/DateCalendar/useCalendarState.js +1 -1
- package/DateCalendar/useIsDateDisabled.d.ts +2 -0
- package/DateCalendar/useIsDateDisabled.js +27 -0
- package/DateField/DateField.js +24 -3
- package/DateField/DateField.types.d.ts +2 -2
- package/DateField/useDateField.js +4 -2
- package/DatePicker/DatePickerToolbar.js +1 -1
- package/DateTimeField/DateTimeField.js +25 -3
- package/DateTimeField/DateTimeField.types.d.ts +4 -11
- package/DateTimeField/useDateTimeField.js +4 -2
- package/DateTimePicker/DateTimePicker.js +1 -0
- package/DateTimePicker/shared.d.ts +6 -12
- package/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -1
- package/DesktopTimePicker/DesktopTimePicker.js +52 -8
- package/DesktopTimePicker/DesktopTimePicker.types.d.ts +12 -4
- package/DigitalClock/DigitalClock.d.ts +7 -0
- package/DigitalClock/DigitalClock.js +397 -0
- package/DigitalClock/DigitalClock.types.d.ts +47 -0
- package/DigitalClock/digitalClockClasses.d.ts +11 -0
- package/DigitalClock/digitalClockClasses.js +6 -0
- package/DigitalClock/index.d.ts +4 -0
- package/DigitalClock/index.js +2 -0
- package/DigitalClock/package.json +6 -0
- package/MobileDatePicker/MobileDatePicker.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +2 -1
- package/MobileTimePicker/MobileTimePicker.js +2 -1
- package/MobileTimePicker/MobileTimePicker.types.d.ts +8 -7
- package/MonthCalendar/MonthCalendar.types.d.ts +1 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +7 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +479 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +57 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +22 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +65 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.d.ts +28 -0
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +151 -0
- package/MultiSectionDigitalClock/index.d.ts +7 -0
- package/MultiSectionDigitalClock/index.js +3 -0
- package/MultiSectionDigitalClock/multiSectionDigitalClockClasses.d.ts +7 -0
- package/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +6 -0
- package/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.d.ts +9 -0
- package/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +6 -0
- package/MultiSectionDigitalClock/package.json +6 -0
- package/PickersDay/PickersDay.js +4 -1
- package/PickersLayout/PickersLayout.d.ts +2 -2
- package/PickersLayout/PickersLayout.js +2 -2
- package/PickersLayout/PickersLayout.types.d.ts +7 -8
- package/PickersLayout/usePickerLayout.d.ts +2 -2
- package/README.md +0 -9
- package/StaticDateTimePicker/StaticDateTimePicker.js +2 -1
- package/StaticTimePicker/StaticTimePicker.js +2 -1
- package/StaticTimePicker/StaticTimePicker.types.d.ts +1 -1
- package/TimeClock/TimeClock.js +35 -12
- package/TimeClock/TimeClock.types.d.ts +5 -67
- package/TimeField/TimeField.js +25 -3
- package/TimeField/TimeField.types.d.ts +3 -2
- package/TimeField/useTimeField.js +4 -2
- package/TimePicker/TimePicker.js +25 -2
- package/TimePicker/TimePicker.types.d.ts +4 -3
- package/TimePicker/TimePickerToolbar.d.ts +2 -2
- package/TimePicker/TimePickerToolbar.js +2 -2
- package/TimePicker/shared.d.ts +9 -7
- package/YearCalendar/YearCalendar.types.d.ts +1 -1
- package/dateViewRenderers/dateViewRenderers.d.ts +2 -2
- package/index.d.ts +2 -0
- package/index.js +4 -1
- package/internals/components/PickersToolbar.d.ts +3 -3
- package/internals/constants/dimensions.d.ts +1 -0
- package/internals/constants/dimensions.js +2 -1
- package/internals/demo/DemoContainer.js +4 -1
- package/internals/hooks/date-helpers-hooks.d.ts +3 -2
- package/internals/hooks/date-helpers-hooks.js +3 -3
- package/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +2 -2
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +7 -6
- package/internals/hooks/useField/useField.js +12 -11
- package/internals/hooks/useField/useField.types.d.ts +19 -4
- package/internals/hooks/useField/useField.utils.d.ts +8 -5
- package/internals/hooks/useField/useField.utils.js +61 -35
- package/internals/hooks/useField/useFieldCharacterEditing.js +18 -10
- package/internals/hooks/useField/useFieldState.js +4 -3
- package/internals/hooks/useIsLandscape.d.ts +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.d.ts +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +7 -6
- package/internals/hooks/usePicker/usePicker.d.ts +4 -3
- package/internals/hooks/usePicker/usePicker.types.d.ts +6 -5
- package/internals/hooks/usePicker/usePickerLayoutProps.d.ts +5 -6
- package/internals/hooks/usePicker/usePickerValue.d.ts +1 -1
- package/internals/hooks/usePicker/usePickerValue.js +1 -1
- package/internals/hooks/usePicker/usePickerValue.types.d.ts +1 -1
- package/internals/hooks/usePicker/usePickerViews.d.ts +12 -12
- package/internals/hooks/useStaticPicker/useStaticPicker.d.ts +2 -2
- package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +6 -5
- package/internals/hooks/{validation/useValidation.d.ts → useValidation.d.ts} +1 -1
- package/internals/hooks/{validation/useValidation.js → useValidation.js} +1 -1
- package/internals/hooks/useViews.d.ts +8 -6
- package/internals/hooks/useViews.js +29 -13
- package/internals/index.d.ts +7 -7
- package/internals/index.js +5 -5
- package/internals/models/common.d.ts +3 -0
- package/internals/models/index.d.ts +1 -0
- package/internals/models/index.js +2 -1
- package/internals/models/props/basePickerProps.d.ts +3 -3
- package/internals/models/props/clock.d.ts +88 -0
- package/internals/models/props/tabs.d.ts +2 -2
- package/internals/models/props/toolbar.d.ts +3 -3
- package/internals/{hooks/validation/models.d.ts → models/validation.d.ts} +13 -3
- package/internals/models/validation.js +1 -0
- package/internals/utils/time-utils.d.ts +7 -7
- package/internals/utils/time-utils.js +2 -1
- package/internals/utils/{validation.d.ts → validation/extractValidationProps.d.ts} +1 -1
- package/internals/utils/{validation.js → validation/extractValidationProps.js} +1 -1
- package/internals/{hooks/validation/useDateValidation.d.ts → utils/validation/validateDate.d.ts} +2 -3
- package/internals/{hooks/validation/useDateValidation.js → utils/validation/validateDate.js} +1 -27
- package/internals/{hooks/validation/useDateTimeValidation.d.ts → utils/validation/validateDateTime.d.ts} +3 -3
- package/{modern/internals/hooks/validation/useDateTimeValidation.js → internals/utils/validation/validateDateTime.js} +2 -2
- package/internals/{hooks/validation/useTimeValidation.d.ts → utils/validation/validateTime.d.ts} +2 -2
- package/{modern/internals/hooks/validation/useTimeValidation.js → internals/utils/validation/validateTime.js} +1 -1
- package/internals/utils/views.d.ts +3 -2
- package/legacy/AdapterDateFns/AdapterDateFns.js +606 -0
- package/legacy/AdapterDateFns/index.js +1 -165
- package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +620 -0
- package/legacy/AdapterDateFnsJalali/index.js +1 -165
- package/legacy/AdapterDayjs/AdapterDayjs.js +146 -111
- package/legacy/AdapterLuxon/AdapterLuxon.js +524 -0
- package/legacy/AdapterLuxon/index.js +1 -127
- package/legacy/AdapterMoment/AdapterMoment.js +422 -0
- package/legacy/AdapterMoment/index.js +1 -115
- package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +284 -0
- package/legacy/AdapterMomentHijri/index.js +1 -90
- package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +291 -0
- package/legacy/AdapterMomentJalaali/index.js +1 -103
- package/legacy/DateCalendar/DayCalendar.js +1 -1
- package/legacy/DateCalendar/useCalendarState.js +1 -1
- package/legacy/DateCalendar/useIsDateDisabled.js +28 -0
- package/legacy/DateField/DateField.js +24 -3
- package/legacy/DateField/useDateField.js +4 -2
- package/legacy/DatePicker/DatePickerToolbar.js +1 -1
- package/legacy/DateTimeField/DateTimeField.js +25 -3
- package/legacy/DateTimeField/useDateTimeField.js +4 -2
- package/legacy/DateTimePicker/DateTimePicker.js +1 -0
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -1
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +53 -8
- package/legacy/DigitalClock/DigitalClock.js +419 -0
- package/legacy/DigitalClock/DigitalClock.types.js +1 -0
- package/legacy/DigitalClock/digitalClockClasses.js +6 -0
- package/legacy/DigitalClock/index.js +2 -0
- package/legacy/MobileDatePicker/MobileDatePicker.js +1 -1
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +2 -1
- package/legacy/MobileTimePicker/MobileTimePicker.js +2 -1
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +508 -0
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.types.js +1 -0
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +65 -0
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +157 -0
- package/legacy/MultiSectionDigitalClock/index.js +3 -0
- package/legacy/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +6 -0
- package/legacy/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +6 -0
- package/legacy/PickersDay/PickersDay.js +3 -1
- package/legacy/PickersLayout/PickersLayout.js +2 -2
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +2 -1
- package/legacy/StaticTimePicker/StaticTimePicker.js +2 -1
- package/legacy/TimeClock/TimeClock.js +35 -12
- package/legacy/TimeField/TimeField.js +25 -3
- package/legacy/TimeField/useTimeField.js +4 -2
- package/legacy/TimePicker/TimePicker.js +25 -2
- package/legacy/TimePicker/TimePickerToolbar.js +2 -2
- package/legacy/index.js +4 -1
- package/legacy/internals/constants/dimensions.js +2 -1
- package/legacy/internals/demo/DemoContainer.js +4 -1
- package/legacy/internals/hooks/date-helpers-hooks.js +3 -3
- package/legacy/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
- package/legacy/internals/hooks/useField/useField.js +11 -10
- package/legacy/internals/hooks/useField/useField.utils.js +59 -35
- package/legacy/internals/hooks/useField/useFieldCharacterEditing.js +18 -10
- package/legacy/internals/hooks/useField/useFieldState.js +6 -4
- package/legacy/internals/hooks/usePicker/usePickerValue.js +1 -1
- package/legacy/internals/hooks/{validation/useValidation.js → useValidation.js} +1 -1
- package/legacy/internals/hooks/useViews.js +30 -14
- package/legacy/internals/index.js +5 -5
- package/legacy/internals/models/index.js +2 -1
- package/legacy/internals/models/props/clock.js +1 -0
- package/legacy/internals/models/validation.js +1 -0
- package/legacy/internals/utils/time-utils.js +2 -1
- package/legacy/internals/utils/{validation.js → validation/extractValidationProps.js} +1 -1
- package/legacy/internals/{hooks/validation/useDateValidation.js → utils/validation/validateDate.js} +1 -28
- package/legacy/internals/{hooks/validation/useDateTimeValidation.js → utils/validation/validateDateTime.js} +2 -2
- package/legacy/internals/{hooks/validation/useTimeValidation.js → utils/validation/validateTime.js} +1 -1
- package/legacy/locales/beBY.js +5 -3
- package/legacy/locales/caES.js +6 -1
- package/legacy/locales/csCZ.js +6 -4
- package/legacy/locales/daDK.js +6 -2
- package/legacy/locales/deDE.js +6 -2
- package/legacy/locales/enUS.js +4 -0
- package/legacy/locales/esES.js +6 -1
- package/legacy/locales/faIR.js +11 -1
- package/legacy/locales/fiFI.js +6 -1
- package/legacy/locales/frFR.js +6 -1
- package/legacy/locales/heIL.js +6 -1
- package/legacy/locales/huHU.js +6 -2
- package/legacy/locales/index.js +1 -0
- package/legacy/locales/isIS.js +11 -1
- package/legacy/locales/itIT.js +6 -1
- package/legacy/locales/jaJP.js +6 -2
- package/legacy/locales/koKR.js +6 -1
- package/legacy/locales/kzKZ.js +6 -2
- package/legacy/locales/nbNO.js +11 -1
- package/legacy/locales/nlNL.js +11 -1
- package/legacy/locales/plPL.js +11 -1
- package/legacy/locales/ptBR.js +11 -1
- package/legacy/locales/ruRU.js +6 -2
- package/legacy/locales/svSE.js +11 -1
- package/legacy/locales/trTR.js +22 -7
- package/legacy/locales/ukUA.js +11 -1
- package/legacy/locales/urPK.js +11 -1
- package/legacy/locales/zhCN.js +44 -23
- package/legacy/models/common.js +1 -0
- package/legacy/models/index.js +2 -1
- package/legacy/tests/describeAdapters/describeAdapters.js +1 -3
- package/legacy/tests/describeGregorianAdapter/describeGregorianAdapter.js +3 -1
- package/legacy/tests/describeGregorianAdapter/testCalculations.js +29 -26
- package/legacy/tests/describeGregorianAdapter/testLocalization.js +2 -2
- package/legacy/tests/describeHijriAdapter/describeHijriAdapter.js +23 -0
- package/legacy/tests/describeHijriAdapter/describeHijriAdapter.types.js +1 -0
- package/legacy/tests/describeHijriAdapter/index.js +1 -0
- package/legacy/tests/describeHijriAdapter/testCalculations.js +94 -0
- package/legacy/tests/describeHijriAdapter/testLocalization.js +12 -0
- package/legacy/tests/describeJalaliAdapter/describeJalaliAdapter.js +25 -0
- package/legacy/tests/describeJalaliAdapter/describeJalaliAdapter.types.js +1 -0
- package/legacy/tests/describeJalaliAdapter/index.js +1 -0
- package/legacy/tests/describeJalaliAdapter/testCalculations.js +82 -0
- package/legacy/tests/describeJalaliAdapter/testLocalization.js +12 -0
- package/legacy/tests/describePicker/describePicker.js +159 -0
- package/legacy/tests/describePicker/describePicker.types.js +1 -0
- package/legacy/tests/describePicker/index.js +1 -0
- package/legacy/tests/describeValidation/testTextFieldValidation.js +26 -0
- package/legacy/tests/describeValue/describeValue.js +1 -1
- package/legacy/tests/describeValue/testControlledUnControlled.js +8 -9
- package/legacy/tests/describeValue/testPickerActionBar.js +46 -13
- package/legacy/tests/describeValue/testPickerOpenCloseLifeCycle.js +0 -5
- package/legacy/timeViewRenderers/index.js +1 -1
- package/legacy/timeViewRenderers/timeViewRenderers.js +132 -4
- package/locales/beBY.d.ts +4 -2
- package/locales/beBY.js +3 -3
- package/locales/caES.d.ts +4 -2
- package/locales/caES.js +4 -1
- package/locales/csCZ.d.ts +4 -2
- package/locales/csCZ.js +4 -4
- package/locales/daDK.d.ts +4 -2
- package/locales/daDK.js +4 -2
- package/locales/deDE.d.ts +4 -2
- package/locales/deDE.js +4 -2
- package/locales/enUS.d.ts +3 -2
- package/locales/enUS.js +2 -0
- package/locales/esES.d.ts +4 -2
- package/locales/esES.js +4 -1
- package/locales/faIR.d.ts +4 -2
- package/locales/faIR.js +9 -1
- package/locales/fiFI.d.ts +4 -2
- package/locales/fiFI.js +4 -1
- package/locales/frFR.d.ts +4 -2
- package/locales/frFR.js +4 -1
- package/locales/heIL.d.ts +4 -2
- package/locales/heIL.js +4 -1
- package/locales/huHU.d.ts +4 -2
- package/locales/huHU.js +4 -2
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/locales/isIS.d.ts +4 -2
- package/locales/isIS.js +9 -1
- package/locales/itIT.d.ts +4 -2
- package/locales/itIT.js +4 -1
- package/locales/jaJP.d.ts +4 -2
- package/locales/jaJP.js +4 -2
- package/locales/koKR.d.ts +4 -2
- package/locales/koKR.js +4 -1
- package/locales/kzKZ.d.ts +4 -2
- package/locales/kzKZ.js +4 -2
- package/locales/nbNO.d.ts +4 -2
- package/locales/nbNO.js +9 -1
- package/locales/nlNL.d.ts +8 -7
- package/locales/nlNL.js +9 -1
- package/locales/plPL.d.ts +4 -2
- package/locales/plPL.js +9 -1
- package/locales/ptBR.d.ts +4 -2
- package/locales/ptBR.js +9 -1
- package/locales/ruRU.d.ts +4 -2
- package/locales/ruRU.js +4 -2
- package/locales/svSE.d.ts +4 -2
- package/locales/svSE.js +9 -1
- package/locales/trTR.d.ts +4 -2
- package/locales/trTR.js +14 -7
- package/locales/ukUA.d.ts +4 -2
- package/locales/ukUA.js +9 -1
- package/locales/urPK.d.ts +4 -2
- package/locales/urPK.js +9 -1
- package/locales/utils/getPickersLocalization.d.ts +3 -2
- package/locales/utils/pickersLocaleTextApi.d.ts +5 -3
- package/locales/zhCN.d.ts +4 -2
- package/locales/zhCN.js +22 -23
- package/models/adapters.d.ts +7 -6
- package/models/common.d.ts +5 -0
- package/models/common.js +1 -0
- package/models/fields.d.ts +19 -2
- package/models/index.d.ts +1 -0
- package/models/index.js +2 -1
- package/modern/AdapterDateFns/AdapterDateFns.js +597 -0
- package/modern/AdapterDateFns/index.js +1 -149
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +608 -0
- package/modern/AdapterDateFnsJalali/index.js +1 -148
- package/modern/AdapterDayjs/AdapterDayjs.js +146 -111
- package/modern/AdapterLuxon/AdapterLuxon.js +512 -0
- package/modern/AdapterLuxon/index.js +1 -111
- package/modern/AdapterMoment/AdapterMoment.js +416 -0
- package/modern/AdapterMoment/index.js +1 -99
- package/modern/AdapterMomentHijri/AdapterMomentHijri.js +269 -0
- package/modern/AdapterMomentHijri/index.js +1 -74
- package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +276 -0
- package/modern/AdapterMomentJalaali/index.js +1 -87
- package/modern/DateCalendar/DayCalendar.js +1 -1
- package/modern/DateCalendar/useCalendarState.js +1 -1
- package/modern/DateCalendar/useIsDateDisabled.js +27 -0
- package/modern/DateField/DateField.js +24 -3
- package/modern/DateField/useDateField.js +4 -2
- package/modern/DatePicker/DatePickerToolbar.js +1 -1
- package/modern/DateTimeField/DateTimeField.js +25 -3
- package/modern/DateTimeField/useDateTimeField.js +4 -2
- package/modern/DateTimePicker/DateTimePicker.js +1 -0
- package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -1
- package/modern/DesktopTimePicker/DesktopTimePicker.js +51 -7
- package/modern/DigitalClock/DigitalClock.js +396 -0
- package/modern/DigitalClock/DigitalClock.types.js +1 -0
- package/modern/DigitalClock/digitalClockClasses.js +6 -0
- package/modern/DigitalClock/index.js +2 -0
- package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +2 -1
- package/modern/MobileTimePicker/MobileTimePicker.js +2 -1
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +479 -0
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.types.js +1 -0
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +65 -0
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +149 -0
- package/modern/MultiSectionDigitalClock/index.js +3 -0
- package/modern/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +6 -0
- package/modern/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +6 -0
- package/modern/PickersDay/PickersDay.js +4 -1
- package/modern/PickersLayout/PickersLayout.js +2 -2
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +2 -1
- package/modern/StaticTimePicker/StaticTimePicker.js +2 -1
- package/modern/TimeClock/TimeClock.js +35 -12
- package/modern/TimeField/TimeField.js +25 -3
- package/modern/TimeField/useTimeField.js +4 -2
- package/modern/TimePicker/TimePicker.js +25 -2
- package/modern/TimePicker/TimePickerToolbar.js +2 -2
- package/modern/index.js +4 -1
- package/modern/internals/constants/dimensions.js +2 -1
- package/modern/internals/demo/DemoContainer.js +4 -1
- package/modern/internals/hooks/date-helpers-hooks.js +3 -3
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
- package/modern/internals/hooks/useField/useField.js +12 -11
- package/modern/internals/hooks/useField/useField.utils.js +61 -35
- package/modern/internals/hooks/useField/useFieldCharacterEditing.js +18 -10
- package/modern/internals/hooks/useField/useFieldState.js +4 -3
- package/modern/internals/hooks/usePicker/usePickerValue.js +1 -1
- package/modern/internals/hooks/{validation/useValidation.js → useValidation.js} +1 -1
- package/modern/internals/hooks/useViews.js +29 -13
- package/modern/internals/index.js +5 -5
- package/modern/internals/models/index.js +2 -1
- package/modern/internals/models/props/clock.js +1 -0
- package/modern/internals/models/validation.js +1 -0
- package/modern/internals/utils/time-utils.js +2 -1
- package/modern/internals/utils/{validation.js → validation/extractValidationProps.js} +1 -1
- package/modern/internals/{hooks/validation/useDateValidation.js → utils/validation/validateDate.js} +1 -27
- package/{internals/hooks/validation/useDateTimeValidation.js → modern/internals/utils/validation/validateDateTime.js} +2 -2
- package/{internals/hooks/validation/useTimeValidation.js → modern/internals/utils/validation/validateTime.js} +1 -1
- package/modern/locales/beBY.js +3 -3
- package/modern/locales/caES.js +4 -1
- package/modern/locales/csCZ.js +4 -4
- package/modern/locales/daDK.js +4 -2
- package/modern/locales/deDE.js +4 -2
- package/modern/locales/enUS.js +2 -0
- package/modern/locales/esES.js +4 -1
- package/modern/locales/faIR.js +9 -1
- package/modern/locales/fiFI.js +4 -1
- package/modern/locales/frFR.js +4 -1
- package/modern/locales/heIL.js +4 -1
- package/modern/locales/huHU.js +4 -2
- package/modern/locales/index.js +1 -0
- package/modern/locales/isIS.js +9 -1
- package/modern/locales/itIT.js +4 -1
- package/modern/locales/jaJP.js +4 -2
- package/modern/locales/koKR.js +4 -1
- package/modern/locales/kzKZ.js +4 -2
- package/modern/locales/nbNO.js +9 -1
- package/modern/locales/nlNL.js +9 -1
- package/modern/locales/plPL.js +9 -1
- package/modern/locales/ptBR.js +9 -1
- package/modern/locales/ruRU.js +4 -2
- package/modern/locales/svSE.js +9 -1
- package/modern/locales/trTR.js +14 -7
- package/modern/locales/ukUA.js +9 -1
- package/modern/locales/urPK.js +9 -1
- package/modern/locales/zhCN.js +22 -23
- package/modern/models/common.js +1 -0
- package/modern/models/index.js +2 -1
- package/modern/tests/describeAdapters/describeAdapters.js +1 -3
- package/modern/tests/describeGregorianAdapter/describeGregorianAdapter.js +3 -1
- package/modern/tests/describeGregorianAdapter/testCalculations.js +29 -26
- package/modern/tests/describeGregorianAdapter/testLocalization.js +2 -2
- package/modern/tests/describeHijriAdapter/describeHijriAdapter.js +23 -0
- package/modern/tests/describeHijriAdapter/describeHijriAdapter.types.js +1 -0
- package/modern/tests/describeHijriAdapter/index.js +1 -0
- package/modern/tests/describeHijriAdapter/testCalculations.js +91 -0
- package/modern/tests/describeHijriAdapter/testLocalization.js +13 -0
- package/modern/tests/describeJalaliAdapter/describeJalaliAdapter.js +25 -0
- package/modern/tests/describeJalaliAdapter/describeJalaliAdapter.types.js +1 -0
- package/modern/tests/describeJalaliAdapter/index.js +1 -0
- package/modern/tests/describeJalaliAdapter/testCalculations.js +83 -0
- package/modern/tests/describeJalaliAdapter/testLocalization.js +13 -0
- package/modern/tests/describePicker/describePicker.js +162 -0
- package/modern/tests/describePicker/describePicker.types.js +1 -0
- package/modern/tests/describePicker/index.js +1 -0
- package/modern/tests/describeValidation/testTextFieldValidation.js +27 -0
- package/modern/tests/describeValue/describeValue.js +1 -1
- package/modern/tests/describeValue/testControlledUnControlled.js +8 -9
- package/modern/tests/describeValue/testPickerActionBar.js +46 -13
- package/modern/tests/describeValue/testPickerOpenCloseLifeCycle.js +0 -5
- package/modern/timeViewRenderers/index.js +1 -1
- package/modern/timeViewRenderers/timeViewRenderers.js +130 -2
- package/node/AdapterDateFns/AdapterDateFns.js +607 -0
- package/node/AdapterDateFns/index.js +6 -152
- package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +618 -0
- package/node/AdapterDateFnsJalali/index.js +6 -151
- package/node/AdapterDayjs/AdapterDayjs.js +146 -111
- package/node/AdapterLuxon/AdapterLuxon.js +521 -0
- package/node/AdapterLuxon/index.js +6 -114
- package/node/AdapterMoment/AdapterMoment.js +425 -0
- package/node/AdapterMoment/index.js +6 -102
- package/node/AdapterMomentHijri/AdapterMomentHijri.js +278 -0
- package/node/AdapterMomentHijri/index.js +6 -77
- package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +285 -0
- package/node/AdapterMomentJalaali/index.js +6 -90
- package/node/DateCalendar/DayCalendar.js +2 -2
- package/node/DateCalendar/useCalendarState.js +2 -2
- package/node/{internals/hooks/validation/useDateValidation.js → DateCalendar/useIsDateDisabled.js} +4 -37
- package/node/DateField/DateField.js +24 -3
- package/node/DateField/useDateField.js +5 -3
- package/node/DatePicker/DatePickerToolbar.js +1 -1
- package/node/DateTimeField/DateTimeField.js +25 -3
- package/node/DateTimeField/useDateTimeField.js +5 -3
- package/node/DateTimePicker/DateTimePicker.js +1 -0
- package/node/DesktopDatePicker/DesktopDatePicker.js +2 -2
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -2
- package/node/DesktopTimePicker/DesktopTimePicker.js +52 -8
- package/node/DigitalClock/DigitalClock.js +406 -0
- package/node/DigitalClock/digitalClockClasses.js +15 -0
- package/node/DigitalClock/index.js +25 -0
- package/node/MobileDatePicker/MobileDatePicker.js +2 -2
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +3 -2
- package/node/MobileTimePicker/MobileTimePicker.js +3 -2
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +489 -0
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.types.js +5 -0
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js +73 -0
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +159 -0
- package/node/MultiSectionDigitalClock/index.js +32 -0
- package/node/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js +15 -0
- package/node/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js +15 -0
- package/node/PickersDay/PickersDay.js +4 -1
- package/node/PickersLayout/PickersLayout.js +2 -2
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +3 -2
- package/node/StaticTimePicker/StaticTimePicker.js +3 -2
- package/node/TimeClock/TimeClock.js +35 -12
- package/node/TimeField/TimeField.js +25 -3
- package/node/TimeField/useTimeField.js +5 -3
- package/node/TimePicker/TimePicker.js +25 -2
- package/node/TimePicker/TimePickerToolbar.js +2 -2
- package/node/index.js +25 -1
- package/node/internals/constants/dimensions.js +4 -2
- package/node/internals/demo/DemoContainer.js +4 -1
- package/node/internals/hooks/date-helpers-hooks.js +3 -3
- package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +2 -1
- package/node/internals/hooks/useField/useField.js +12 -11
- package/node/internals/hooks/useField/useField.utils.js +64 -37
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +17 -9
- package/node/internals/hooks/useField/useFieldState.js +4 -3
- package/node/internals/hooks/usePicker/usePickerValue.js +1 -1
- package/node/internals/hooks/{validation/useValidation.js → useValidation.js} +1 -1
- package/node/internals/hooks/useViews.js +29 -13
- package/node/internals/index.js +9 -9
- package/node/internals/models/index.js +11 -0
- package/node/internals/models/props/clock.js +5 -0
- package/node/internals/models/validation.js +5 -0
- package/node/internals/utils/time-utils.js +2 -1
- package/node/internals/utils/{validation.js → validation/extractValidationProps.js} +1 -1
- package/node/internals/utils/validation/validateDate.js +40 -0
- package/node/internals/{hooks/validation/useDateTimeValidation.js → utils/validation/validateDateTime.js} +4 -4
- package/node/internals/{hooks/validation/useTimeValidation.js → utils/validation/validateTime.js} +1 -1
- package/node/locales/beBY.js +3 -3
- package/node/locales/caES.js +4 -1
- package/node/locales/csCZ.js +4 -2
- package/node/locales/daDK.js +4 -1
- package/node/locales/deDE.js +4 -1
- package/node/locales/enUS.js +2 -0
- package/node/locales/esES.js +4 -1
- package/node/locales/faIR.js +9 -1
- package/node/locales/fiFI.js +4 -1
- package/node/locales/frFR.js +4 -1
- package/node/locales/heIL.js +4 -1
- package/node/locales/huHU.js +4 -1
- package/node/locales/index.js +11 -0
- package/node/locales/isIS.js +9 -1
- package/node/locales/itIT.js +4 -1
- package/node/locales/jaJP.js +4 -1
- package/node/locales/koKR.js +4 -1
- package/node/locales/kzKZ.js +4 -1
- package/node/locales/nbNO.js +9 -1
- package/node/locales/nlNL.js +9 -1
- package/node/locales/plPL.js +9 -1
- package/node/locales/ptBR.js +9 -1
- package/node/locales/ruRU.js +4 -1
- package/node/locales/svSE.js +9 -1
- package/node/locales/trTR.js +14 -7
- package/node/locales/ukUA.js +9 -1
- package/node/locales/urPK.js +9 -1
- package/node/locales/zhCN.js +22 -23
- package/node/models/common.js +5 -0
- package/node/models/index.js +11 -0
- package/node/tests/describeAdapters/describeAdapters.js +1 -3
- package/node/tests/describeGregorianAdapter/describeGregorianAdapter.js +3 -1
- package/node/tests/describeGregorianAdapter/testCalculations.js +29 -26
- package/node/tests/describeGregorianAdapter/testLocalization.js +2 -2
- package/node/tests/describeHijriAdapter/describeHijriAdapter.js +31 -0
- package/node/tests/describeHijriAdapter/describeHijriAdapter.types.js +5 -0
- package/node/tests/describeHijriAdapter/index.js +12 -0
- package/node/tests/describeHijriAdapter/testCalculations.js +98 -0
- package/node/tests/describeHijriAdapter/testLocalization.js +20 -0
- package/node/tests/describeJalaliAdapter/describeJalaliAdapter.js +33 -0
- package/node/tests/describeJalaliAdapter/describeJalaliAdapter.types.js +5 -0
- package/node/tests/describeJalaliAdapter/index.js +12 -0
- package/node/tests/describeJalaliAdapter/testCalculations.js +90 -0
- package/node/tests/describeJalaliAdapter/testLocalization.js +20 -0
- package/node/tests/describePicker/describePicker.js +173 -0
- package/node/tests/describePicker/describePicker.types.js +5 -0
- package/node/tests/describePicker/index.js +12 -0
- package/node/tests/describeValidation/testTextFieldValidation.js +27 -0
- package/node/tests/describeValue/describeValue.js +1 -1
- package/node/tests/describeValue/testControlledUnControlled.js +8 -9
- package/node/tests/describeValue/testPickerActionBar.js +46 -13
- package/node/tests/describeValue/testPickerOpenCloseLifeCycle.js +0 -5
- package/node/timeViewRenderers/index.js +12 -0
- package/node/timeViewRenderers/timeViewRenderers.js +134 -4
- package/package.json +3 -10
- package/tests/describeAdapters/describeAdapters.js +1 -3
- package/tests/describeGregorianAdapter/describeGregorianAdapter.js +3 -1
- package/tests/describeGregorianAdapter/testCalculations.js +29 -26
- package/tests/describeGregorianAdapter/testLocalization.js +2 -2
- package/tests/describeHijriAdapter/describeHijriAdapter.js +23 -0
- package/tests/describeHijriAdapter/describeHijriAdapter.types.js +1 -0
- package/tests/describeHijriAdapter/index.js +1 -0
- package/tests/describeHijriAdapter/testCalculations.js +91 -0
- package/tests/describeHijriAdapter/testLocalization.js +13 -0
- package/tests/describeJalaliAdapter/describeJalaliAdapter.js +25 -0
- package/tests/describeJalaliAdapter/describeJalaliAdapter.types.js +1 -0
- package/tests/describeJalaliAdapter/index.js +1 -0
- package/tests/describeJalaliAdapter/testCalculations.js +83 -0
- package/tests/describeJalaliAdapter/testLocalization.js +13 -0
- package/tests/describePicker/describePicker.js +162 -0
- package/tests/describePicker/describePicker.types.js +1 -0
- package/tests/describePicker/index.js +1 -0
- package/tests/describeValidation/testTextFieldValidation.js +27 -0
- package/tests/describeValue/describeValue.js +1 -1
- package/tests/describeValue/testControlledUnControlled.js +8 -9
- package/tests/describeValue/testPickerActionBar.js +46 -13
- package/tests/describeValue/testPickerOpenCloseLifeCycle.js +0 -5
- package/themeAugmentation/components.d.ts +12 -0
- package/themeAugmentation/overrides.d.ts +8 -0
- package/themeAugmentation/props.d.ts +8 -0
- package/timeViewRenderers/index.d.ts +1 -1
- package/timeViewRenderers/index.js +1 -1
- package/timeViewRenderers/timeViewRenderers.d.ts +11 -4
- package/timeViewRenderers/timeViewRenderers.js +130 -2
- /package/{internals/hooks/validation/models.js → DigitalClock/DigitalClock.types.js} +0 -0
- /package/{legacy/internals/hooks/validation/models.js → MultiSectionDigitalClock/MultiSectionDigitalClock.types.js} +0 -0
- /package/{modern/internals/hooks/validation/models.js → internals/models/props/clock.js} +0 -0
- /package/node/{internals/hooks/validation/models.js → DigitalClock/DigitalClock.types.js} +0 -0
package/legacy/locales/faIR.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'ساعت ها',
|
|
4
|
+
minutes: 'دقیقه ها',
|
|
5
|
+
seconds: 'ثانیه ها',
|
|
6
|
+
meridiem: 'بعد از ظهر'
|
|
7
|
+
};
|
|
2
8
|
var faIRPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'ماه گذشته',
|
|
@@ -24,7 +30,7 @@ var faIRPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'محدوده تاریخ را انتخاب کنید',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "
|
|
33
|
+
return " \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F ".concat(timeViews[view], ". ").concat(time === null ? 'هیچ ساعتی انتخاب نشده است' : "\u0633\u0627\u0639\u062A \u0627\u0646\u062A\u062E\u0627\u0628 ".concat(adapter.format(time, 'fullTime'), " \u0645\u06CC \u0628\u0627\u0634\u062F"));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " \u0633\u0627\u0639\u062A \u0647\u0627");
|
|
@@ -35,6 +41,10 @@ var faIRPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " \u062B\u0627\u0646\u06CC\u0647 \u0647\u0627");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return " \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
calendarWeekNumberHeaderLabel: 'عدد هفته',
|
|
40
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/fiFI.js
CHANGED
|
@@ -2,7 +2,8 @@ import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
|
2
2
|
var views = {
|
|
3
3
|
hours: 'tunnit',
|
|
4
4
|
minutes: 'minuutit',
|
|
5
|
-
seconds: 'sekuntit'
|
|
5
|
+
seconds: 'sekuntit',
|
|
6
|
+
meridiem: 'iltapäivä'
|
|
6
7
|
};
|
|
7
8
|
var fiFIPickers = {
|
|
8
9
|
// Calendar navigation
|
|
@@ -40,6 +41,10 @@ var fiFIPickers = {
|
|
|
40
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
41
42
|
return "".concat(seconds, " sekunttia");
|
|
42
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Valitse ".concat(views[view]);
|
|
47
|
+
},
|
|
43
48
|
// Calendar labels
|
|
44
49
|
// calendarWeekNumberHeaderLabel: 'Week number',
|
|
45
50
|
// calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/frFR.js
CHANGED
|
@@ -2,7 +2,8 @@ import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
|
2
2
|
var views = {
|
|
3
3
|
hours: 'heures',
|
|
4
4
|
minutes: 'minutes',
|
|
5
|
-
seconds: 'secondes'
|
|
5
|
+
seconds: 'secondes',
|
|
6
|
+
meridiem: 'méridien'
|
|
6
7
|
};
|
|
7
8
|
var frFRPickers = {
|
|
8
9
|
// Calendar navigation
|
|
@@ -40,6 +41,10 @@ var frFRPickers = {
|
|
|
40
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
41
42
|
return "".concat(seconds, " secondes");
|
|
42
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Choisir ".concat(views[view]);
|
|
47
|
+
},
|
|
43
48
|
// Calendar labels
|
|
44
49
|
calendarWeekNumberHeaderLabel: 'Semaine',
|
|
45
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/heIL.js
CHANGED
|
@@ -2,7 +2,8 @@ import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
|
2
2
|
var views = {
|
|
3
3
|
hours: 'שעות',
|
|
4
4
|
minutes: 'דקות',
|
|
5
|
-
seconds: 'שניות'
|
|
5
|
+
seconds: 'שניות',
|
|
6
|
+
meridiem: 'מרידיאם'
|
|
6
7
|
};
|
|
7
8
|
var heILPickers = {
|
|
8
9
|
// Calendar navigation
|
|
@@ -40,6 +41,10 @@ var heILPickers = {
|
|
|
40
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
41
42
|
return "".concat(seconds, " \u05E9\u05E0\u05D9\u05D5\u05EA");
|
|
42
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "\u05D1\u05D7\u05D9\u05E8\u05EA ".concat(views[view]);
|
|
47
|
+
},
|
|
43
48
|
// Calendar labels
|
|
44
49
|
calendarWeekNumberHeaderLabel: 'שבוע מספר',
|
|
45
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/huHU.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
3
2
|
// maps TimeView to its translation
|
|
4
3
|
var timeViews = {
|
|
5
4
|
hours: 'Óra',
|
|
6
5
|
minutes: 'Perc',
|
|
7
|
-
seconds: 'Másodperc'
|
|
6
|
+
seconds: 'Másodperc',
|
|
7
|
+
meridiem: 'Délután'
|
|
8
8
|
};
|
|
9
9
|
var huHUPickers = {
|
|
10
10
|
// Calendar navigation
|
|
@@ -43,6 +43,10 @@ var huHUPickers = {
|
|
|
43
43
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
44
44
|
return "".concat(seconds, " ").concat(timeViews.seconds.toLowerCase());
|
|
45
45
|
},
|
|
46
|
+
// Digital clock labels
|
|
47
|
+
selectViewText: function selectViewText(view) {
|
|
48
|
+
return "".concat(timeViews[view], " kiv\xE1laszt\xE1sa");
|
|
49
|
+
},
|
|
46
50
|
// Calendar labels
|
|
47
51
|
calendarWeekNumberHeaderLabel: 'Hét',
|
|
48
52
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/index.js
CHANGED
package/legacy/locales/isIS.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'klukkustundir',
|
|
4
|
+
minutes: 'mínútur',
|
|
5
|
+
seconds: 'sekúndur',
|
|
6
|
+
meridiem: 'eftirmiðdagur'
|
|
7
|
+
};
|
|
2
8
|
var isISPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'Fyrri mánuður',
|
|
@@ -24,7 +30,7 @@ var isISPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'Velja tímabil',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "
|
|
33
|
+
return "Velja ".concat(timeViews[view], ". ").concat(time === null ? 'Enginn tími valinn' : "Valinn t\xEDmi er ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " klukkustundir");
|
|
@@ -35,6 +41,10 @@ var isISPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " sek\xFAndur");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Velja ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
// calendarWeekNumberHeaderLabel: 'Week number',
|
|
40
50
|
// calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/itIT.js
CHANGED
|
@@ -2,7 +2,8 @@ import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
|
2
2
|
var views = {
|
|
3
3
|
hours: 'le ore',
|
|
4
4
|
minutes: 'i minuti',
|
|
5
|
-
seconds: 'i secondi'
|
|
5
|
+
seconds: 'i secondi',
|
|
6
|
+
meridiem: 'il meridiano'
|
|
6
7
|
};
|
|
7
8
|
var itITPickers = {
|
|
8
9
|
// Calendar navigation
|
|
@@ -40,6 +41,10 @@ var itITPickers = {
|
|
|
40
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
41
42
|
return "".concat(seconds, " secondi");
|
|
42
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Seleziona ".concat(views[view]);
|
|
47
|
+
},
|
|
43
48
|
// Calendar labels
|
|
44
49
|
calendarWeekNumberHeaderLabel: 'Numero settimana',
|
|
45
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/jaJP.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
3
2
|
// maps TimeView to its translation
|
|
4
3
|
var timeViews = {
|
|
5
4
|
hours: '時間',
|
|
6
5
|
minutes: '分',
|
|
7
|
-
seconds: '秒'
|
|
6
|
+
seconds: '秒',
|
|
7
|
+
meridiem: 'メリディム'
|
|
8
8
|
};
|
|
9
9
|
var jaJPPickers = {
|
|
10
10
|
// Calendar navigation
|
|
@@ -43,6 +43,10 @@ var jaJPPickers = {
|
|
|
43
43
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
44
44
|
return "".concat(seconds, " ").concat(timeViews.seconds);
|
|
45
45
|
},
|
|
46
|
+
// Digital clock labels
|
|
47
|
+
selectViewText: function selectViewText(view) {
|
|
48
|
+
return "\u3092\u9078\u629E ".concat(timeViews[view]);
|
|
49
|
+
},
|
|
46
50
|
// Calendar labels
|
|
47
51
|
calendarWeekNumberHeaderLabel: '週番号',
|
|
48
52
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/koKR.js
CHANGED
|
@@ -2,7 +2,8 @@ import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
|
2
2
|
var views = {
|
|
3
3
|
hours: '시간을',
|
|
4
4
|
minutes: '분을',
|
|
5
|
-
seconds: '초를'
|
|
5
|
+
seconds: '초를',
|
|
6
|
+
meridiem: '메리디엠'
|
|
6
7
|
};
|
|
7
8
|
var koKRPickers = {
|
|
8
9
|
// Calendar navigation
|
|
@@ -40,6 +41,10 @@ var koKRPickers = {
|
|
|
40
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
41
42
|
return "".concat(seconds, "\uCD08");
|
|
42
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "".concat(views[view], " \uC120\uD0DD\uD558\uAE30");
|
|
47
|
+
},
|
|
43
48
|
// Calendar labels
|
|
44
49
|
calendarWeekNumberHeaderLabel: '주 번호',
|
|
45
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/kzKZ.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
3
2
|
// Translation map for Clock Label
|
|
4
3
|
var timeViews = {
|
|
5
4
|
hours: 'Сағатты',
|
|
6
5
|
minutes: 'Минутты',
|
|
7
|
-
seconds: 'Секундты'
|
|
6
|
+
seconds: 'Секундты',
|
|
7
|
+
meridiem: 'Меридием'
|
|
8
8
|
};
|
|
9
9
|
var kzKZPickers = {
|
|
10
10
|
// Calendar navigation
|
|
@@ -42,6 +42,10 @@ var kzKZPickers = {
|
|
|
42
42
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
43
43
|
return "".concat(seconds, " \u0441\u0435\u043A\u0443\u043D\u0434");
|
|
44
44
|
},
|
|
45
|
+
// Digital clock labels
|
|
46
|
+
selectViewText: function selectViewText(view) {
|
|
47
|
+
return "".concat(timeViews[view], " \u0442\u0430\u04A3\u0434\u0430\u0443");
|
|
48
|
+
},
|
|
45
49
|
// Calendar labels
|
|
46
50
|
calendarWeekNumberHeaderLabel: 'Апта нөмірі',
|
|
47
51
|
calendarWeekNumberHeaderText: '№',
|
package/legacy/locales/nbNO.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'timer',
|
|
4
|
+
minutes: 'minutter',
|
|
5
|
+
seconds: 'sekunder',
|
|
6
|
+
meridiem: 'meridiem'
|
|
7
|
+
};
|
|
2
8
|
var nbNOPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'Forrige måned',
|
|
@@ -24,7 +30,7 @@ var nbNOPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'Velg datoperiode',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "Velg ".concat(view, ". ").concat(time === null ? 'Ingen tid valgt' : "Valgt tid er ".concat(adapter.format(time, 'fullTime')));
|
|
33
|
+
return "Velg ".concat(timeViews[view], ". ").concat(time === null ? 'Ingen tid valgt' : "Valgt tid er ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " timer");
|
|
@@ -35,6 +41,10 @@ var nbNOPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " sekunder");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Velg ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
calendarWeekNumberHeaderLabel: 'Ukenummer',
|
|
40
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/nlNL.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'uren',
|
|
4
|
+
minutes: 'minuten',
|
|
5
|
+
seconds: 'seconden',
|
|
6
|
+
meridiem: 'meridium'
|
|
7
|
+
};
|
|
2
8
|
var nlNLPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'Vorige maand',
|
|
@@ -24,7 +30,7 @@ var nlNLPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'Selecteer datumbereik',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "Selecteer ".concat(view, ". ").concat(time === null ? 'Geen tijd geselecteerd' : "Geselecteerde tijd is ".concat(adapter.format(time, 'fullTime')));
|
|
33
|
+
return "Selecteer ".concat(timeViews[view], ". ").concat(time === null ? 'Geen tijd geselecteerd' : "Geselecteerde tijd is ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " uren");
|
|
@@ -35,6 +41,10 @@ var nlNLPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " seconden");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Selecteer ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
calendarWeekNumberHeaderLabel: 'Weeknummer',
|
|
40
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/plPL.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'godzin',
|
|
4
|
+
minutes: 'minut',
|
|
5
|
+
seconds: 'sekund',
|
|
6
|
+
meridiem: 'popołudnie'
|
|
7
|
+
};
|
|
2
8
|
var plPLPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'Poprzedni miesiąc',
|
|
@@ -24,7 +30,7 @@ var plPLPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'Wybierz zakres dat',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "
|
|
33
|
+
return "Wybierz ".concat(timeViews[view], ". ").concat(time === null ? 'Nie wybrano czasu' : "Wybrany czas to ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " godzin");
|
|
@@ -35,6 +41,10 @@ var plPLPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " sekund");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Wybierz ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
calendarWeekNumberHeaderLabel: 'Numer tygodnia',
|
|
40
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/ptBR.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'horas',
|
|
4
|
+
minutes: 'minutos',
|
|
5
|
+
seconds: 'segundos',
|
|
6
|
+
meridiem: 'meridiano'
|
|
7
|
+
};
|
|
2
8
|
var ptBRPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'Mês anterior',
|
|
@@ -24,7 +30,7 @@ var ptBRPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'Selecione o intervalo entre datas',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "Selecione ".concat(view, ". ").concat(time === null ? 'Hora não selecionada' : "Selecionado a hora ".concat(adapter.format(time, 'fullTime')));
|
|
33
|
+
return "Selecione ".concat(timeViews[view], ". ").concat(time === null ? 'Hora não selecionada' : "Selecionado a hora ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " horas");
|
|
@@ -35,6 +41,10 @@ var ptBRPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " segundos");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Selecione ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
calendarWeekNumberHeaderLabel: 'Número da semana',
|
|
40
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/ruRU.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
-
|
|
3
2
|
// Translation map for Clock Label
|
|
4
3
|
var timeViews = {
|
|
5
4
|
hours: 'часы',
|
|
6
5
|
minutes: 'минуты',
|
|
7
|
-
seconds: 'секунды'
|
|
6
|
+
seconds: 'секунды',
|
|
7
|
+
meridiem: 'меридием'
|
|
8
8
|
};
|
|
9
9
|
var ruRUPickers = {
|
|
10
10
|
// Calendar navigation
|
|
@@ -42,6 +42,10 @@ var ruRUPickers = {
|
|
|
42
42
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
43
43
|
return "".concat(seconds, " \u0441\u0435\u043A\u0443\u043D\u0434");
|
|
44
44
|
},
|
|
45
|
+
// Digital clock labels
|
|
46
|
+
selectViewText: function selectViewText(view) {
|
|
47
|
+
return "\u0412\u044B\u0431\u0440\u0430\u0442\u044C ".concat(timeViews[view]);
|
|
48
|
+
},
|
|
45
49
|
// Calendar labels
|
|
46
50
|
calendarWeekNumberHeaderLabel: 'Номер недели',
|
|
47
51
|
calendarWeekNumberHeaderText: '№',
|
package/legacy/locales/svSE.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'timmar',
|
|
4
|
+
minutes: 'minuter',
|
|
5
|
+
seconds: 'sekunder',
|
|
6
|
+
meridiem: 'meridiem'
|
|
7
|
+
};
|
|
2
8
|
var svSEPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'Föregående månad',
|
|
@@ -24,7 +30,7 @@ var svSEPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'Välj datumintervall',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "
|
|
33
|
+
return "V\xE4lj ".concat(timeViews[view], ". ").concat(time === null ? 'Ingen tid vald' : "Vald tid \xE4r ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " timmar");
|
|
@@ -35,6 +41,10 @@ var svSEPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " sekunder");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "V\xE4lj ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
calendarWeekNumberHeaderLabel: 'Vecka nummer',
|
|
40
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/trTR.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'saat',
|
|
4
|
+
minutes: 'dakika',
|
|
5
|
+
seconds: 'saniye',
|
|
6
|
+
meridiem: 'öğleden sonra'
|
|
7
|
+
};
|
|
2
8
|
var trTRPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'Önceki ay',
|
|
@@ -24,7 +30,7 @@ var trTRPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'Tarih aralığı seçin',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "".concat(view, " se\xE7. ").concat(time === null ? 'Zaman seçilmedi' : "Se\xE7ilen zaman: ".concat(adapter.format(time, 'fullTime')));
|
|
33
|
+
return "".concat(timeViews[view], " se\xE7. ").concat(time === null ? 'Zaman seçilmedi' : "Se\xE7ilen zaman: ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " saat");
|
|
@@ -35,12 +41,19 @@ var trTRPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " saniye");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "Se\xE7 ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
calendarWeekNumberHeaderLabel: 'Hafta numarası',
|
|
50
|
+
calendarWeekNumberHeaderText: '#',
|
|
51
|
+
calendarWeekNumberAriaLabelText: function calendarWeekNumberAriaLabelText(weekNumber) {
|
|
52
|
+
return "Hafta ".concat(weekNumber);
|
|
53
|
+
},
|
|
54
|
+
calendarWeekNumberText: function calendarWeekNumberText(weekNumber) {
|
|
55
|
+
return "".concat(weekNumber);
|
|
56
|
+
},
|
|
44
57
|
// Open picker labels
|
|
45
58
|
openDatePickerDialogue: function openDatePickerDialogue(value, utils) {
|
|
46
59
|
return value !== null && utils.isValid(value) ? "Tarih se\xE7in, se\xE7ilen tarih: ".concat(utils.format(value, 'fullDate')) : 'Tarih seç';
|
|
@@ -61,7 +74,9 @@ var trTRPickers = {
|
|
|
61
74
|
fieldDayPlaceholder: function fieldDayPlaceholder() {
|
|
62
75
|
return 'GG';
|
|
63
76
|
},
|
|
64
|
-
|
|
77
|
+
fieldWeekDayPlaceholder: function fieldWeekDayPlaceholder(params) {
|
|
78
|
+
return params.contentType === 'letter' ? 'HHH' : 'HH';
|
|
79
|
+
},
|
|
65
80
|
fieldHoursPlaceholder: function fieldHoursPlaceholder() {
|
|
66
81
|
return 'ss';
|
|
67
82
|
},
|
package/legacy/locales/ukUA.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'годин',
|
|
4
|
+
minutes: 'хвилин',
|
|
5
|
+
seconds: 'секунд',
|
|
6
|
+
meridiem: 'Південь'
|
|
7
|
+
};
|
|
2
8
|
var ukUAPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'Попередній місяць',
|
|
@@ -24,7 +30,7 @@ var ukUAPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'Вибрати календарний період',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "
|
|
33
|
+
return "\u0412\u0438\u0431\u0440\u0430\u0442\u0438 ".concat(timeViews[view], ". ").concat(time === null ? 'Час не вибраний' : "\u0412\u0438\u0431\u0440\u0430\u043D\u043E \u0447\u0430\u0441 ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " \u0433\u043E\u0434\u0438\u043D");
|
|
@@ -35,6 +41,10 @@ var ukUAPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " \u0441\u0435\u043A\u0443\u043D\u0434");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "\u0412\u0438\u0431\u0440\u0430\u0442\u0438 ".concat(timeViews[view]);
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
calendarWeekNumberHeaderLabel: 'Номер тижня',
|
|
40
50
|
calendarWeekNumberHeaderText: '#',
|
package/legacy/locales/urPK.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
2
|
+
var timeViews = {
|
|
3
|
+
hours: 'گھنٹے',
|
|
4
|
+
minutes: 'منٹ',
|
|
5
|
+
seconds: 'سیکنڈ',
|
|
6
|
+
meridiem: 'میریڈیم'
|
|
7
|
+
};
|
|
2
8
|
var urPKPickers = {
|
|
3
9
|
// Calendar navigation
|
|
4
10
|
previousMonth: 'پچھلا مہینہ',
|
|
@@ -24,7 +30,7 @@ var urPKPickers = {
|
|
|
24
30
|
dateRangePickerToolbarTitle: 'تاریخوں کی رینج منتخب کریں',
|
|
25
31
|
// Clock labels
|
|
26
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
27
|
-
return "".concat(view, " \u0645\u0646\u062A\u062E\u0628 \u06A9\u0631\u06CC\u06BA ").concat(time === null ? 'کوئی وقت منتخب نہیں' : "\u0645\u0646\u062A\u062E\u0628 \u0648\u0642\u062A \u06C1\u06D2 ".concat(adapter.format(time, 'fullTime')));
|
|
33
|
+
return "".concat(timeViews[view], " \u0645\u0646\u062A\u062E\u0628 \u06A9\u0631\u06CC\u06BA ").concat(time === null ? 'کوئی وقت منتخب نہیں' : "\u0645\u0646\u062A\u062E\u0628 \u0648\u0642\u062A \u06C1\u06D2 ".concat(adapter.format(time, 'fullTime')));
|
|
28
34
|
},
|
|
29
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
30
36
|
return "".concat(hours, " \u06AF\u06BE\u0646\u0679\u06D2");
|
|
@@ -35,6 +41,10 @@ var urPKPickers = {
|
|
|
35
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
36
42
|
return "".concat(seconds, " \u0633\u06CC\u06A9\u0646\u0688");
|
|
37
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "".concat(timeViews[view], " \u0645\u0646\u062A\u062E\u0628 \u06A9\u0631\u06CC\u06BA");
|
|
47
|
+
},
|
|
38
48
|
// Calendar labels
|
|
39
49
|
calendarWeekNumberHeaderLabel: 'ہفتہ نمبر',
|
|
40
50
|
calendarWeekNumberHeaderText: 'نمبر',
|
package/legacy/locales/zhCN.js
CHANGED
|
@@ -2,7 +2,8 @@ import { getPickersLocalization } from './utils/getPickersLocalization';
|
|
|
2
2
|
var views = {
|
|
3
3
|
hours: '小时',
|
|
4
4
|
minutes: '分钟',
|
|
5
|
-
seconds: '秒'
|
|
5
|
+
seconds: '秒',
|
|
6
|
+
meridiem: '子午线'
|
|
6
7
|
};
|
|
7
8
|
var zhCNPickers = {
|
|
8
9
|
// Calendar navigation
|
|
@@ -23,14 +24,13 @@ var zhCNPickers = {
|
|
|
23
24
|
okButtonLabel: '确认',
|
|
24
25
|
todayButtonLabel: '今天',
|
|
25
26
|
// Toolbar titles
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
datePickerToolbarTitle: '选择日期',
|
|
28
|
+
dateTimePickerToolbarTitle: '选择日期和时间',
|
|
29
|
+
timePickerToolbarTitle: '选择时间',
|
|
30
|
+
dateRangePickerToolbarTitle: '选择时间范围',
|
|
31
31
|
// Clock labels
|
|
32
32
|
clockLabelText: function clockLabelText(view, time, adapter) {
|
|
33
|
-
return "
|
|
33
|
+
return "\u9009\u62E9 ".concat(views[view], ". ").concat(time === null ? '未选择时间' : "\u5DF2\u9009\u62E9".concat(adapter.format(time, 'fullTime')));
|
|
34
34
|
},
|
|
35
35
|
hoursClockNumberText: function hoursClockNumberText(hours) {
|
|
36
36
|
return "".concat(hours, "\u5C0F\u65F6");
|
|
@@ -41,12 +41,19 @@ var zhCNPickers = {
|
|
|
41
41
|
secondsClockNumberText: function secondsClockNumberText(seconds) {
|
|
42
42
|
return "".concat(seconds, "\u79D2");
|
|
43
43
|
},
|
|
44
|
+
// Digital clock labels
|
|
45
|
+
selectViewText: function selectViewText(view) {
|
|
46
|
+
return "\u9009\u62E9 ".concat(views[view]);
|
|
47
|
+
},
|
|
44
48
|
// Calendar labels
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
calendarWeekNumberHeaderLabel: '周数',
|
|
50
|
+
calendarWeekNumberHeaderText: '#',
|
|
51
|
+
calendarWeekNumberAriaLabelText: function calendarWeekNumberAriaLabelText(weekNumber) {
|
|
52
|
+
return "\u7B2C".concat(weekNumber, "\u5468");
|
|
53
|
+
},
|
|
54
|
+
calendarWeekNumberText: function calendarWeekNumberText(weekNumber) {
|
|
55
|
+
return "".concat(weekNumber);
|
|
56
|
+
},
|
|
50
57
|
// Open picker labels
|
|
51
58
|
openDatePickerDialogue: function openDatePickerDialogue(value, utils) {
|
|
52
59
|
return value !== null && utils.isValid(value) ? "\u9009\u62E9\u65E5\u671F\uFF0C\u5DF2\u9009\u62E9".concat(utils.format(value, 'fullDate')) : '选择日期';
|
|
@@ -56,17 +63,31 @@ var zhCNPickers = {
|
|
|
56
63
|
},
|
|
57
64
|
// Table labels
|
|
58
65
|
timeTableLabel: '选择时间',
|
|
59
|
-
dateTableLabel: '选择日期'
|
|
60
|
-
|
|
66
|
+
dateTableLabel: '选择日期',
|
|
61
67
|
// Field section placeholders
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
fieldYearPlaceholder: function fieldYearPlaceholder(params) {
|
|
69
|
+
return 'Y'.repeat(params.digitAmount);
|
|
70
|
+
},
|
|
71
|
+
fieldMonthPlaceholder: function fieldMonthPlaceholder(params) {
|
|
72
|
+
return params.contentType === 'letter' ? 'MMMM' : 'MM';
|
|
73
|
+
},
|
|
74
|
+
fieldDayPlaceholder: function fieldDayPlaceholder() {
|
|
75
|
+
return 'DD';
|
|
76
|
+
},
|
|
77
|
+
fieldWeekDayPlaceholder: function fieldWeekDayPlaceholder(params) {
|
|
78
|
+
return params.contentType === 'letter' ? 'EEEE' : 'EE';
|
|
79
|
+
},
|
|
80
|
+
fieldHoursPlaceholder: function fieldHoursPlaceholder() {
|
|
81
|
+
return 'hh';
|
|
82
|
+
},
|
|
83
|
+
fieldMinutesPlaceholder: function fieldMinutesPlaceholder() {
|
|
84
|
+
return 'mm';
|
|
85
|
+
},
|
|
86
|
+
fieldSecondsPlaceholder: function fieldSecondsPlaceholder() {
|
|
87
|
+
return 'ss';
|
|
88
|
+
},
|
|
89
|
+
fieldMeridiemPlaceholder: function fieldMeridiemPlaceholder() {
|
|
90
|
+
return 'aa';
|
|
91
|
+
}
|
|
70
92
|
};
|
|
71
|
-
|
|
72
93
|
export var zhCN = getPickersLocalization(zhCNPickers);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/legacy/models/index.js
CHANGED