@v-c/picker 0.0.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/LICENSE +21 -0
- package/dist/PickerInput/Popup/Footer.cjs +115 -0
- package/dist/PickerInput/Popup/Footer.d.ts +19 -0
- package/dist/PickerInput/Popup/Footer.js +109 -0
- package/dist/PickerInput/Popup/PopupPanel.cjs +413 -0
- package/dist/PickerInput/Popup/PopupPanel.d.ts +11 -0
- package/dist/PickerInput/Popup/PopupPanel.js +407 -0
- package/dist/PickerInput/Popup/PresetPanel.cjs +54 -0
- package/dist/PickerInput/Popup/PresetPanel.d.ts +16 -0
- package/dist/PickerInput/Popup/PresetPanel.js +48 -0
- package/dist/PickerInput/Popup/index.cjs +528 -0
- package/dist/PickerInput/Popup/index.d.ts +37 -0
- package/dist/PickerInput/Popup/index.js +522 -0
- package/dist/PickerInput/RangePicker.cjs +1910 -0
- package/dist/PickerInput/RangePicker.d.ts +57 -0
- package/dist/PickerInput/RangePicker.js +1901 -0
- package/dist/PickerInput/Selector/Icon.cjs +89 -0
- package/dist/PickerInput/Selector/Icon.d.ts +11 -0
- package/dist/PickerInput/Selector/Icon.js +83 -0
- package/dist/PickerInput/Selector/Input.cjs +376 -0
- package/dist/PickerInput/Selector/Input.d.ts +9 -0
- package/dist/PickerInput/Selector/Input.js +370 -0
- package/dist/PickerInput/Selector/MaskFormat.cjs +72 -0
- package/dist/PickerInput/Selector/MaskFormat.d.ts +22 -0
- package/dist/PickerInput/Selector/MaskFormat.js +68 -0
- package/dist/PickerInput/Selector/RangeSelector.cjs +1390 -0
- package/dist/PickerInput/Selector/RangeSelector.d.ts +28 -0
- package/dist/PickerInput/Selector/RangeSelector.js +1383 -0
- package/dist/PickerInput/Selector/SingleSelector/MultipleDates.cjs +110 -0
- package/dist/PickerInput/Selector/SingleSelector/MultipleDates.d.ts +13 -0
- package/dist/PickerInput/Selector/SingleSelector/MultipleDates.js +103 -0
- package/dist/PickerInput/Selector/SingleSelector/index.cjs +1358 -0
- package/dist/PickerInput/Selector/SingleSelector/index.d.ts +21 -0
- package/dist/PickerInput/Selector/SingleSelector/index.js +1352 -0
- package/dist/PickerInput/Selector/hooks/useClearIcon.cjs +17 -0
- package/dist/PickerInput/Selector/hooks/useClearIcon.d.ts +17 -0
- package/dist/PickerInput/Selector/hooks/useClearIcon.js +11 -0
- package/dist/PickerInput/Selector/hooks/useInputHooks.cjs +125 -0
- package/dist/PickerInput/Selector/hooks/useInputHooks.d.ts +56 -0
- package/dist/PickerInput/Selector/hooks/useInputHooks.js +120 -0
- package/dist/PickerInput/Selector/hooks/useRootProps.cjs +14 -0
- package/dist/PickerInput/Selector/hooks/useRootProps.d.ts +2 -0
- package/dist/PickerInput/Selector/hooks/useRootProps.js +9 -0
- package/dist/PickerInput/Selector/util.cjs +32 -0
- package/dist/PickerInput/Selector/util.d.ts +5 -0
- package/dist/PickerInput/Selector/util.js +30 -0
- package/dist/PickerInput/SinglePicker.cjs +1881 -0
- package/dist/PickerInput/SinglePicker.d.ts +46 -0
- package/dist/PickerInput/SinglePicker.js +1873 -0
- package/dist/PickerInput/context.cjs +12 -0
- package/dist/PickerInput/context.d.ts +16 -0
- package/dist/PickerInput/context.js +9 -0
- package/dist/PickerInput/hooks/useCellRender.cjs +25 -0
- package/dist/PickerInput/hooks/useCellRender.d.ts +3 -0
- package/dist/PickerInput/hooks/useCellRender.js +20 -0
- package/dist/PickerInput/hooks/useDelayState.cjs +34 -0
- package/dist/PickerInput/hooks/useDelayState.d.ts +2 -0
- package/dist/PickerInput/hooks/useDelayState.js +29 -0
- package/dist/PickerInput/hooks/useDisabledBoundary.cjs +15 -0
- package/dist/PickerInput/hooks/useDisabledBoundary.d.ts +8 -0
- package/dist/PickerInput/hooks/useDisabledBoundary.js +11 -0
- package/dist/PickerInput/hooks/useFieldFormat.cjs +17 -0
- package/dist/PickerInput/hooks/useFieldFormat.d.ts +3 -0
- package/dist/PickerInput/hooks/useFieldFormat.js +15 -0
- package/dist/PickerInput/hooks/useFieldsInvalidate.cjs +24 -0
- package/dist/PickerInput/hooks/useFieldsInvalidate.d.ts +6 -0
- package/dist/PickerInput/hooks/useFieldsInvalidate.js +19 -0
- package/dist/PickerInput/hooks/useFilledProps.cjs +103 -0
- package/dist/PickerInput/hooks/useFilledProps.d.ts +33 -0
- package/dist/PickerInput/hooks/useFilledProps.js +98 -0
- package/dist/PickerInput/hooks/useInputReadOnly.cjs +13 -0
- package/dist/PickerInput/hooks/useInputReadOnly.d.ts +3 -0
- package/dist/PickerInput/hooks/useInputReadOnly.js +8 -0
- package/dist/PickerInput/hooks/useInvalidate.cjs +34 -0
- package/dist/PickerInput/hooks/useInvalidate.d.ts +10 -0
- package/dist/PickerInput/hooks/useInvalidate.js +30 -0
- package/dist/PickerInput/hooks/useLockEffect.cjs +16 -0
- package/dist/PickerInput/hooks/useLockEffect.d.ts +6 -0
- package/dist/PickerInput/hooks/useLockEffect.js +11 -0
- package/dist/PickerInput/hooks/useOpen.cjs +15 -0
- package/dist/PickerInput/hooks/useOpen.d.ts +7 -0
- package/dist/PickerInput/hooks/useOpen.js +10 -0
- package/dist/PickerInput/hooks/usePresets.cjs +21 -0
- package/dist/PickerInput/hooks/usePresets.d.ts +3 -0
- package/dist/PickerInput/hooks/usePresets.js +16 -0
- package/dist/PickerInput/hooks/useRangeActive.cjs +57 -0
- package/dist/PickerInput/hooks/useRangeActive.d.ts +9 -0
- package/dist/PickerInput/hooks/useRangeActive.js +52 -0
- package/dist/PickerInput/hooks/useRangeDisabledDate.cjs +21 -0
- package/dist/PickerInput/hooks/useRangeDisabledDate.d.ts +9 -0
- package/dist/PickerInput/hooks/useRangeDisabledDate.js +17 -0
- package/dist/PickerInput/hooks/useRangePickerValue.cjs +100 -0
- package/dist/PickerInput/hooks/useRangePickerValue.d.ts +5 -0
- package/dist/PickerInput/hooks/useRangePickerValue.js +94 -0
- package/dist/PickerInput/hooks/useRangeValue.cjs +134 -0
- package/dist/PickerInput/hooks/useRangeValue.d.ts +21 -0
- package/dist/PickerInput/hooks/useRangeValue.js +128 -0
- package/dist/PickerInput/hooks/useShowNow.cjs +15 -0
- package/dist/PickerInput/hooks/useShowNow.d.ts +3 -0
- package/dist/PickerInput/hooks/useShowNow.js +10 -0
- package/dist/PickerPanel/DatePanel/index.cjs +294 -0
- package/dist/PickerPanel/DatePanel/index.d.ts +9 -0
- package/dist/PickerPanel/DatePanel/index.js +288 -0
- package/dist/PickerPanel/DateTimePanel/index.cjs +180 -0
- package/dist/PickerPanel/DateTimePanel/index.d.ts +3 -0
- package/dist/PickerPanel/DateTimePanel/index.js +174 -0
- package/dist/PickerPanel/DecadePanel/index.cjs +230 -0
- package/dist/PickerPanel/DecadePanel/index.d.ts +3 -0
- package/dist/PickerPanel/DecadePanel/index.js +224 -0
- package/dist/PickerPanel/MonthPanel/index.cjs +219 -0
- package/dist/PickerPanel/MonthPanel/index.d.ts +3 -0
- package/dist/PickerPanel/MonthPanel/index.js +213 -0
- package/dist/PickerPanel/PanelBody.cjs +157 -0
- package/dist/PickerPanel/PanelBody.d.ts +17 -0
- package/dist/PickerPanel/PanelBody.js +151 -0
- package/dist/PickerPanel/PanelHeader.cjs +132 -0
- package/dist/PickerPanel/PanelHeader.d.ts +9 -0
- package/dist/PickerPanel/PanelHeader.js +126 -0
- package/dist/PickerPanel/QuarterPanel/index.cjs +211 -0
- package/dist/PickerPanel/QuarterPanel/index.d.ts +3 -0
- package/dist/PickerPanel/QuarterPanel/index.js +205 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/TimeColumn.cjs +145 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/TimeColumn.d.ts +17 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/TimeColumn.js +139 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/index.cjs +286 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/index.d.ts +3 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/index.js +280 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/useScrollTo.cjs +65 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/useScrollTo.d.ts +1 -0
- package/dist/PickerPanel/TimePanel/TimePanelBody/useScrollTo.js +60 -0
- package/dist/PickerPanel/TimePanel/index.cjs +173 -0
- package/dist/PickerPanel/TimePanel/index.d.ts +3 -0
- package/dist/PickerPanel/TimePanel/index.js +167 -0
- package/dist/PickerPanel/WeekPanel/index.cjs +179 -0
- package/dist/PickerPanel/WeekPanel/index.d.ts +3 -0
- package/dist/PickerPanel/WeekPanel/index.js +173 -0
- package/dist/PickerPanel/YearPanel/index.cjs +239 -0
- package/dist/PickerPanel/YearPanel/index.d.ts +3 -0
- package/dist/PickerPanel/YearPanel/index.js +233 -0
- package/dist/PickerPanel/context.cjs +61 -0
- package/dist/PickerPanel/context.d.ts +26 -0
- package/dist/PickerPanel/context.js +53 -0
- package/dist/PickerPanel/index.cjs +473 -0
- package/dist/PickerPanel/index.d.ts +65 -0
- package/dist/PickerPanel/index.js +467 -0
- package/dist/PickerTrigger/index.cjs +137 -0
- package/dist/PickerTrigger/index.d.ts +18 -0
- package/dist/PickerTrigger/index.js +130 -0
- package/dist/PickerTrigger/util.cjs +13 -0
- package/dist/PickerTrigger/util.d.ts +2 -0
- package/dist/PickerTrigger/util.js +12 -0
- package/dist/_virtual/rolldown_runtime.cjs +21 -0
- package/dist/generate/dateFns.cjs +80 -0
- package/dist/generate/dateFns.d.ts +3 -0
- package/dist/generate/dateFns.js +73 -0
- package/dist/generate/dayjs.cjs +117 -0
- package/dist/generate/dayjs.d.ts +4 -0
- package/dist/generate/dayjs.js +104 -0
- package/dist/generate/index.cjs +1 -0
- package/dist/generate/index.d.ts +37 -0
- package/dist/generate/index.js +0 -0
- package/dist/generate/luxon.cjs +75 -0
- package/dist/generate/luxon.d.ts +4 -0
- package/dist/generate/luxon.js +69 -0
- package/dist/generate/moment.cjs +107 -0
- package/dist/generate/moment.d.ts +4 -0
- package/dist/generate/moment.js +100 -0
- package/dist/hooks/useLocale.cjs +45 -0
- package/dist/hooks/useLocale.d.ts +9 -0
- package/dist/hooks/useLocale.js +39 -0
- package/dist/hooks/useSemantic.cjs +18 -0
- package/dist/hooks/useSemantic.d.ts +14 -0
- package/dist/hooks/useSemantic.js +13 -0
- package/dist/hooks/useSyncState.cjs +29 -0
- package/dist/hooks/useSyncState.d.ts +7 -0
- package/dist/hooks/useSyncState.js +24 -0
- package/dist/hooks/useTimeConfig.cjs +161 -0
- package/dist/hooks/useTimeConfig.d.ts +18 -0
- package/dist/hooks/useTimeConfig.js +159 -0
- package/dist/hooks/useTimeInfo.cjs +113 -0
- package/dist/hooks/useTimeInfo.d.ts +12 -0
- package/dist/hooks/useTimeInfo.js +108 -0
- package/dist/hooks/useToggleDates.cjs +16 -0
- package/dist/hooks/useToggleDates.d.ts +9 -0
- package/dist/hooks/useToggleDates.js +12 -0
- package/dist/index.cjs +12 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -0
- package/dist/interface.cjs +1 -0
- package/dist/interface.d.ts +379 -0
- package/dist/interface.js +0 -0
- package/dist/locale/am_ET.cjs +34 -0
- package/dist/locale/am_ET.d.ts +3 -0
- package/dist/locale/am_ET.js +29 -0
- package/dist/locale/ar_EG.cjs +32 -0
- package/dist/locale/ar_EG.d.ts +3 -0
- package/dist/locale/ar_EG.js +27 -0
- package/dist/locale/az_AZ.cjs +33 -0
- package/dist/locale/az_AZ.d.ts +3 -0
- package/dist/locale/az_AZ.js +28 -0
- package/dist/locale/bg_BG.cjs +32 -0
- package/dist/locale/bg_BG.d.ts +3 -0
- package/dist/locale/bg_BG.js +27 -0
- package/dist/locale/bn_BD.cjs +33 -0
- package/dist/locale/bn_BD.d.ts +3 -0
- package/dist/locale/bn_BD.js +28 -0
- package/dist/locale/by_BY.cjs +33 -0
- package/dist/locale/by_BY.d.ts +3 -0
- package/dist/locale/by_BY.js +28 -0
- package/dist/locale/ca_ES.cjs +32 -0
- package/dist/locale/ca_ES.d.ts +3 -0
- package/dist/locale/ca_ES.js +27 -0
- package/dist/locale/common.cjs +8 -0
- package/dist/locale/common.d.ts +2 -0
- package/dist/locale/common.js +7 -0
- package/dist/locale/cs_CZ.cjs +32 -0
- package/dist/locale/cs_CZ.d.ts +3 -0
- package/dist/locale/cs_CZ.js +27 -0
- package/dist/locale/da_DK.cjs +32 -0
- package/dist/locale/da_DK.d.ts +3 -0
- package/dist/locale/da_DK.js +27 -0
- package/dist/locale/de_DE.cjs +32 -0
- package/dist/locale/de_DE.d.ts +3 -0
- package/dist/locale/de_DE.js +27 -0
- package/dist/locale/el_GR.cjs +32 -0
- package/dist/locale/el_GR.d.ts +3 -0
- package/dist/locale/el_GR.js +27 -0
- package/dist/locale/en_GB.cjs +32 -0
- package/dist/locale/en_GB.d.ts +3 -0
- package/dist/locale/en_GB.js +27 -0
- package/dist/locale/en_US.cjs +33 -0
- package/dist/locale/en_US.d.ts +3 -0
- package/dist/locale/en_US.js +28 -0
- package/dist/locale/es_ES.cjs +32 -0
- package/dist/locale/es_ES.d.ts +3 -0
- package/dist/locale/es_ES.js +27 -0
- package/dist/locale/es_MX.cjs +33 -0
- package/dist/locale/es_MX.d.ts +3 -0
- package/dist/locale/es_MX.js +28 -0
- package/dist/locale/et_EE.cjs +32 -0
- package/dist/locale/et_EE.d.ts +3 -0
- package/dist/locale/et_EE.js +27 -0
- package/dist/locale/eu_ES.cjs +34 -0
- package/dist/locale/eu_ES.d.ts +3 -0
- package/dist/locale/eu_ES.js +29 -0
- package/dist/locale/fa_IR.cjs +32 -0
- package/dist/locale/fa_IR.d.ts +3 -0
- package/dist/locale/fa_IR.js +27 -0
- package/dist/locale/fi_FI.cjs +32 -0
- package/dist/locale/fi_FI.d.ts +3 -0
- package/dist/locale/fi_FI.js +27 -0
- package/dist/locale/fr_BE.cjs +32 -0
- package/dist/locale/fr_BE.d.ts +3 -0
- package/dist/locale/fr_BE.js +27 -0
- package/dist/locale/fr_CA.cjs +33 -0
- package/dist/locale/fr_CA.d.ts +3 -0
- package/dist/locale/fr_CA.js +28 -0
- package/dist/locale/fr_FR.cjs +33 -0
- package/dist/locale/fr_FR.d.ts +3 -0
- package/dist/locale/fr_FR.js +28 -0
- package/dist/locale/ga_IE.cjs +33 -0
- package/dist/locale/ga_IE.d.ts +3 -0
- package/dist/locale/ga_IE.js +28 -0
- package/dist/locale/gl_ES.cjs +32 -0
- package/dist/locale/gl_ES.d.ts +3 -0
- package/dist/locale/gl_ES.js +27 -0
- package/dist/locale/he_IL.cjs +33 -0
- package/dist/locale/he_IL.d.ts +3 -0
- package/dist/locale/he_IL.js +28 -0
- package/dist/locale/hi_IN.cjs +33 -0
- package/dist/locale/hi_IN.d.ts +3 -0
- package/dist/locale/hi_IN.js +28 -0
- package/dist/locale/hr_HR.cjs +33 -0
- package/dist/locale/hr_HR.d.ts +3 -0
- package/dist/locale/hr_HR.js +28 -0
- package/dist/locale/hu_HU.cjs +33 -0
- package/dist/locale/hu_HU.d.ts +3 -0
- package/dist/locale/hu_HU.js +28 -0
- package/dist/locale/id_ID.cjs +33 -0
- package/dist/locale/id_ID.d.ts +3 -0
- package/dist/locale/id_ID.js +28 -0
- package/dist/locale/is_IS.cjs +32 -0
- package/dist/locale/is_IS.d.ts +3 -0
- package/dist/locale/is_IS.js +27 -0
- package/dist/locale/it_IT.cjs +55 -0
- package/dist/locale/it_IT.d.ts +3 -0
- package/dist/locale/it_IT.js +50 -0
- package/dist/locale/ja_JP.cjs +35 -0
- package/dist/locale/ja_JP.d.ts +3 -0
- package/dist/locale/ja_JP.js +30 -0
- package/dist/locale/ka_GE.cjs +33 -0
- package/dist/locale/ka_GE.d.ts +3 -0
- package/dist/locale/ka_GE.js +28 -0
- package/dist/locale/kk_KZ.cjs +32 -0
- package/dist/locale/kk_KZ.d.ts +3 -0
- package/dist/locale/kk_KZ.js +27 -0
- package/dist/locale/km_KH.cjs +34 -0
- package/dist/locale/km_KH.d.ts +3 -0
- package/dist/locale/km_KH.js +29 -0
- package/dist/locale/kmr_IQ.cjs +32 -0
- package/dist/locale/kmr_IQ.d.ts +3 -0
- package/dist/locale/kmr_IQ.js +27 -0
- package/dist/locale/kn_IN.cjs +33 -0
- package/dist/locale/kn_IN.d.ts +3 -0
- package/dist/locale/kn_IN.js +28 -0
- package/dist/locale/ko_KR.cjs +34 -0
- package/dist/locale/ko_KR.d.ts +3 -0
- package/dist/locale/ko_KR.js +29 -0
- package/dist/locale/lt_LT.cjs +34 -0
- package/dist/locale/lt_LT.d.ts +3 -0
- package/dist/locale/lt_LT.js +29 -0
- package/dist/locale/lv_LV.cjs +32 -0
- package/dist/locale/lv_LV.d.ts +3 -0
- package/dist/locale/lv_LV.js +27 -0
- package/dist/locale/mk_MK.cjs +32 -0
- package/dist/locale/mk_MK.d.ts +3 -0
- package/dist/locale/mk_MK.js +27 -0
- package/dist/locale/ml_IN.cjs +33 -0
- package/dist/locale/ml_IN.d.ts +3 -0
- package/dist/locale/ml_IN.js +28 -0
- package/dist/locale/mn_MN.cjs +34 -0
- package/dist/locale/mn_MN.d.ts +3 -0
- package/dist/locale/mn_MN.js +29 -0
- package/dist/locale/mr_IN.cjs +59 -0
- package/dist/locale/mr_IN.d.ts +3 -0
- package/dist/locale/mr_IN.js +54 -0
- package/dist/locale/ms_MY.cjs +34 -0
- package/dist/locale/ms_MY.d.ts +3 -0
- package/dist/locale/ms_MY.js +29 -0
- package/dist/locale/my_MM.cjs +33 -0
- package/dist/locale/my_MM.d.ts +3 -0
- package/dist/locale/my_MM.js +28 -0
- package/dist/locale/nb_NO.cjs +34 -0
- package/dist/locale/nb_NO.d.ts +3 -0
- package/dist/locale/nb_NO.js +29 -0
- package/dist/locale/ne_NP.cjs +33 -0
- package/dist/locale/ne_NP.d.ts +3 -0
- package/dist/locale/ne_NP.js +28 -0
- package/dist/locale/nl_BE.cjs +32 -0
- package/dist/locale/nl_BE.d.ts +3 -0
- package/dist/locale/nl_BE.js +27 -0
- package/dist/locale/nl_NL.cjs +32 -0
- package/dist/locale/nl_NL.d.ts +3 -0
- package/dist/locale/nl_NL.js +27 -0
- package/dist/locale/pl_PL.cjs +32 -0
- package/dist/locale/pl_PL.d.ts +3 -0
- package/dist/locale/pl_PL.js +27 -0
- package/dist/locale/pt_BR.cjs +56 -0
- package/dist/locale/pt_BR.d.ts +3 -0
- package/dist/locale/pt_BR.js +51 -0
- package/dist/locale/pt_PT.cjs +55 -0
- package/dist/locale/pt_PT.d.ts +3 -0
- package/dist/locale/pt_PT.js +50 -0
- package/dist/locale/ro_RO.cjs +33 -0
- package/dist/locale/ro_RO.d.ts +3 -0
- package/dist/locale/ro_RO.js +28 -0
- package/dist/locale/ru_RU.cjs +32 -0
- package/dist/locale/ru_RU.d.ts +3 -0
- package/dist/locale/ru_RU.js +27 -0
- package/dist/locale/si_LK.cjs +34 -0
- package/dist/locale/si_LK.d.ts +3 -0
- package/dist/locale/si_LK.js +29 -0
- package/dist/locale/sk_SK.cjs +32 -0
- package/dist/locale/sk_SK.d.ts +3 -0
- package/dist/locale/sk_SK.js +27 -0
- package/dist/locale/sl_SI.cjs +32 -0
- package/dist/locale/sl_SI.d.ts +3 -0
- package/dist/locale/sl_SI.js +27 -0
- package/dist/locale/sr_Cyrl_RS.cjs +32 -0
- package/dist/locale/sr_Cyrl_RS.d.ts +3 -0
- package/dist/locale/sr_Cyrl_RS.js +27 -0
- package/dist/locale/sr_RS.cjs +32 -0
- package/dist/locale/sr_RS.d.ts +3 -0
- package/dist/locale/sr_RS.js +27 -0
- package/dist/locale/sv_SE.cjs +32 -0
- package/dist/locale/sv_SE.d.ts +3 -0
- package/dist/locale/sv_SE.js +27 -0
- package/dist/locale/ta_IN.cjs +33 -0
- package/dist/locale/ta_IN.d.ts +3 -0
- package/dist/locale/ta_IN.js +28 -0
- package/dist/locale/te_IN.cjs +33 -0
- package/dist/locale/te_IN.d.ts +3 -0
- package/dist/locale/te_IN.js +28 -0
- package/dist/locale/th_TH.cjs +32 -0
- package/dist/locale/th_TH.d.ts +3 -0
- package/dist/locale/th_TH.js +27 -0
- package/dist/locale/tk_TK.cjs +32 -0
- package/dist/locale/tk_TK.d.ts +3 -0
- package/dist/locale/tk_TK.js +27 -0
- package/dist/locale/tr_TR.cjs +55 -0
- package/dist/locale/tr_TR.d.ts +3 -0
- package/dist/locale/tr_TR.js +50 -0
- package/dist/locale/ug_CN.cjs +35 -0
- package/dist/locale/ug_CN.d.ts +3 -0
- package/dist/locale/ug_CN.js +30 -0
- package/dist/locale/uk_UA.cjs +32 -0
- package/dist/locale/uk_UA.d.ts +3 -0
- package/dist/locale/uk_UA.js +27 -0
- package/dist/locale/ur_PK.cjs +33 -0
- package/dist/locale/ur_PK.d.ts +3 -0
- package/dist/locale/ur_PK.js +28 -0
- package/dist/locale/uz_UZ.cjs +33 -0
- package/dist/locale/uz_UZ.d.ts +3 -0
- package/dist/locale/uz_UZ.js +28 -0
- package/dist/locale/vi_VN.cjs +33 -0
- package/dist/locale/vi_VN.d.ts +3 -0
- package/dist/locale/vi_VN.js +28 -0
- package/dist/locale/zh_CN.cjs +36 -0
- package/dist/locale/zh_CN.d.ts +3 -0
- package/dist/locale/zh_CN.js +31 -0
- package/dist/locale/zh_TW.cjs +36 -0
- package/dist/locale/zh_TW.d.ts +3 -0
- package/dist/locale/zh_TW.js +31 -0
- package/dist/utils/dateUtil.cjs +105 -0
- package/dist/utils/dateUtil.d.ts +29 -0
- package/dist/utils/dateUtil.js +89 -0
- package/dist/utils/getClearIcon.cjs +7 -0
- package/dist/utils/getClearIcon.d.ts +6 -0
- package/dist/utils/getClearIcon.js +5 -0
- package/dist/utils/miscUtil.cjs +46 -0
- package/dist/utils/miscUtil.d.ts +14 -0
- package/dist/utils/miscUtil.js +40 -0
- package/dist/utils/uiUtil.cjs +6 -0
- package/dist/utils/uiUtil.d.ts +1 -0
- package/dist/utils/uiUtil.js +5 -0
- package/dist/utils/warnUtil.cjs +8 -0
- package/dist/utils/warnUtil.d.ts +5 -0
- package/dist/utils/warnUtil.js +6 -0
- package/package.json +82 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { AlignType, BuildInPlacements } from '../../trigger/src';
|
|
2
|
+
import { VueNode } from '../../util/src/type';
|
|
3
|
+
import { CSSProperties, DefineComponent, HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
|
|
4
|
+
import { GenerateConfig } from './generate';
|
|
5
|
+
export type NullableDateType<DateType> = DateType | null | undefined;
|
|
6
|
+
export interface Locale {
|
|
7
|
+
locale: string;
|
|
8
|
+
/** @deprecated Please use `fieldDateFormat` instead */
|
|
9
|
+
dateFormat?: string;
|
|
10
|
+
/** @deprecated Please use `fieldDateTimeFormat` instead */
|
|
11
|
+
dateTimeFormat?: string;
|
|
12
|
+
/** Input field formatter like YYYY-MM-DD HH:mm:ss */
|
|
13
|
+
fieldDateTimeFormat?: string;
|
|
14
|
+
/** Input field formatter like YYYY-MM-DD */
|
|
15
|
+
fieldDateFormat?: string;
|
|
16
|
+
/** Input field formatter like HH:mm:ss */
|
|
17
|
+
fieldTimeFormat?: string;
|
|
18
|
+
/** Input field formatter like YYYY-MM */
|
|
19
|
+
fieldMonthFormat?: string;
|
|
20
|
+
/** Input field formatter like YYYY */
|
|
21
|
+
fieldYearFormat?: string;
|
|
22
|
+
/** Input field formatter like wwww-go */
|
|
23
|
+
fieldWeekFormat?: string;
|
|
24
|
+
/** Input field formatter like YYYY-Q */
|
|
25
|
+
fieldQuarterFormat?: string;
|
|
26
|
+
/** Display month before year in date panel header */
|
|
27
|
+
monthBeforeYear?: boolean;
|
|
28
|
+
/** year format in header panel */
|
|
29
|
+
yearFormat?: string;
|
|
30
|
+
/** month format in header panel */
|
|
31
|
+
monthFormat?: string;
|
|
32
|
+
/** year format in body panel */
|
|
33
|
+
cellYearFormat?: string;
|
|
34
|
+
/** quarter format in body panel */
|
|
35
|
+
cellQuarterFormat?: string;
|
|
36
|
+
/** @deprecated Please use `cellDateFormat` instead */
|
|
37
|
+
dayFormat?: string;
|
|
38
|
+
/** day format in body panel */
|
|
39
|
+
cellDateFormat?: string;
|
|
40
|
+
/** meridiem format in body panel */
|
|
41
|
+
cellMeridiemFormat?: string;
|
|
42
|
+
today: string;
|
|
43
|
+
now: string;
|
|
44
|
+
backToToday: string;
|
|
45
|
+
ok: string;
|
|
46
|
+
timeSelect: string;
|
|
47
|
+
dateSelect: string;
|
|
48
|
+
weekSelect?: string;
|
|
49
|
+
clear: string;
|
|
50
|
+
week: string;
|
|
51
|
+
month: string;
|
|
52
|
+
year: string;
|
|
53
|
+
previousMonth: string;
|
|
54
|
+
nextMonth: string;
|
|
55
|
+
monthSelect: string;
|
|
56
|
+
yearSelect: string;
|
|
57
|
+
decadeSelect: string;
|
|
58
|
+
previousYear: string;
|
|
59
|
+
nextYear: string;
|
|
60
|
+
previousDecade: string;
|
|
61
|
+
nextDecade: string;
|
|
62
|
+
previousCentury: string;
|
|
63
|
+
nextCentury: string;
|
|
64
|
+
shortWeekDays?: string[];
|
|
65
|
+
shortMonths?: string[];
|
|
66
|
+
}
|
|
67
|
+
export type PanelMode = 'time' | 'date' | 'week' | 'month' | 'quarter' | 'year' | 'decade';
|
|
68
|
+
export type InternalMode = PanelMode | 'datetime';
|
|
69
|
+
export type PickerMode = Exclude<PanelMode, 'datetime' | 'decade'>;
|
|
70
|
+
export type DisabledDate<DateType = any> = (date: DateType, info: {
|
|
71
|
+
type: PanelMode;
|
|
72
|
+
/**
|
|
73
|
+
* Only work in RangePicker.
|
|
74
|
+
* Tell the first date user selected on this range selection.
|
|
75
|
+
* This is not care about what field user click.
|
|
76
|
+
*/
|
|
77
|
+
from?: DateType | null;
|
|
78
|
+
}) => boolean;
|
|
79
|
+
export interface BaseInfo {
|
|
80
|
+
range?: 'start' | 'end';
|
|
81
|
+
}
|
|
82
|
+
export interface CellRenderInfo<DateType> extends BaseInfo {
|
|
83
|
+
prefixCls: string;
|
|
84
|
+
originNode: VNode;
|
|
85
|
+
today: DateType;
|
|
86
|
+
type: PanelMode;
|
|
87
|
+
locale?: Locale;
|
|
88
|
+
subType?: 'hour' | 'minute' | 'second' | 'millisecond' | 'meridiem';
|
|
89
|
+
}
|
|
90
|
+
export type CellRender<DateType, CurrentType = DateType | number | string> = (current: CurrentType, info: CellRenderInfo<DateType>) => VueNode;
|
|
91
|
+
export interface ValueDate<DateType = any> {
|
|
92
|
+
label: VueNode;
|
|
93
|
+
value: DateType | (() => DateType);
|
|
94
|
+
}
|
|
95
|
+
export interface DisabledTimes {
|
|
96
|
+
disabledHours?: () => number[];
|
|
97
|
+
disabledMinutes?: (hour: number) => number[];
|
|
98
|
+
disabledSeconds?: (hour: number, minute: number) => number[];
|
|
99
|
+
disabledMilliseconds?: (hour: number, minute: number, second: number) => number[];
|
|
100
|
+
}
|
|
101
|
+
export interface SharedTimeProps<DateType extends object = any> {
|
|
102
|
+
/** Only work in picker is `time` */
|
|
103
|
+
format?: string;
|
|
104
|
+
/** Only work in picker is `time` */
|
|
105
|
+
showNow?: boolean;
|
|
106
|
+
/** Only work in picker is `time` */
|
|
107
|
+
showHour?: boolean;
|
|
108
|
+
/** Only work in picker is `time` */
|
|
109
|
+
showMinute?: boolean;
|
|
110
|
+
/** Only work in picker is `time` */
|
|
111
|
+
showSecond?: boolean;
|
|
112
|
+
/** Only work in picker is `time` */
|
|
113
|
+
showMillisecond?: boolean;
|
|
114
|
+
/** Only work in picker is `time` */
|
|
115
|
+
use12Hours?: boolean;
|
|
116
|
+
/** Only work in picker is `time` */
|
|
117
|
+
hourStep?: IntRange<1, 23>;
|
|
118
|
+
/** Only work in picker is `time` */
|
|
119
|
+
minuteStep?: IntRange<1, 59>;
|
|
120
|
+
/** Only work in picker is `time` */
|
|
121
|
+
secondStep?: IntRange<1, 59>;
|
|
122
|
+
/**
|
|
123
|
+
* Only work in picker is `time`.
|
|
124
|
+
* Note that too small step will cause performance issue.
|
|
125
|
+
*/
|
|
126
|
+
millisecondStep?: IntRange<1, 999>;
|
|
127
|
+
/** Only work in picker is `time` */
|
|
128
|
+
hideDisabledOptions?: boolean;
|
|
129
|
+
/** @deprecated Use `defaultOpenValue` instead */
|
|
130
|
+
defaultValue?: DateType;
|
|
131
|
+
/** Set default value template when empty selection */
|
|
132
|
+
defaultOpenValue?: DateType;
|
|
133
|
+
/** @deprecated Please use `disabledTime` instead. */
|
|
134
|
+
disabledHours?: DisabledTimes['disabledHours'];
|
|
135
|
+
/** @deprecated Please use `disabledTime` instead. */
|
|
136
|
+
disabledMinutes?: DisabledTimes['disabledMinutes'];
|
|
137
|
+
/** @deprecated Please use `disabledTime` instead. */
|
|
138
|
+
disabledSeconds?: DisabledTimes['disabledSeconds'];
|
|
139
|
+
/** Only work in picker is `time` */
|
|
140
|
+
disabledTime?: (date: DateType) => DisabledTimes;
|
|
141
|
+
/** Only work in picker is `time` */
|
|
142
|
+
changeOnScroll?: boolean;
|
|
143
|
+
}
|
|
144
|
+
export type RangeTimeProps<DateType extends object = any> = Omit<SharedTimeProps<DateType>, 'defaultValue' | 'defaultOpenValue' | 'disabledTime'> & {
|
|
145
|
+
/** @deprecated Use `defaultOpenValue` instead. */
|
|
146
|
+
defaultValue?: DateType[];
|
|
147
|
+
defaultOpenValue?: DateType[];
|
|
148
|
+
disabledTime?: (date: DateType, range: 'start' | 'end', info: {
|
|
149
|
+
from?: DateType;
|
|
150
|
+
}) => DisabledTimes;
|
|
151
|
+
};
|
|
152
|
+
export type OnPanelChange<DateType> = (value: DateType, mode: PanelMode) => void;
|
|
153
|
+
export type LimitDate<DateType extends object = any> = DateType | ((info: {
|
|
154
|
+
/**
|
|
155
|
+
* Tell the first date user selected on this range selection.
|
|
156
|
+
* This is not care about what field user click.
|
|
157
|
+
*/
|
|
158
|
+
from?: DateType;
|
|
159
|
+
}) => DateType | null | undefined);
|
|
160
|
+
export interface SharedPanelProps<DateType extends object = any> {
|
|
161
|
+
prefixCls: string;
|
|
162
|
+
locale?: Locale;
|
|
163
|
+
generateConfig?: GenerateConfig<DateType>;
|
|
164
|
+
pickerValue: DateType;
|
|
165
|
+
onPickerValueChange: (date: DateType) => void;
|
|
166
|
+
value?: DateType;
|
|
167
|
+
/**
|
|
168
|
+
* Should trigger when user select the cell.
|
|
169
|
+
* PickerPanel will mark as `value` in single mode,
|
|
170
|
+
* Or toggle `values` in multiple mode.
|
|
171
|
+
*/
|
|
172
|
+
onSelect: (date: DateType) => void;
|
|
173
|
+
/**
|
|
174
|
+
* Used for `multiple` mode.
|
|
175
|
+
* When not `multiple`, it will be `[value]`.
|
|
176
|
+
*/
|
|
177
|
+
values?: DateType[];
|
|
178
|
+
onModeChange: (mode: PanelMode, date?: DateType) => void;
|
|
179
|
+
disabledDate?: DisabledDate<DateType>;
|
|
180
|
+
minDate?: DateType;
|
|
181
|
+
maxDate?: DateType;
|
|
182
|
+
cellRender?: CellRender<DateType>;
|
|
183
|
+
/** @private Only used for RangePicker passing. */
|
|
184
|
+
hoverRangeValue: [start: DateType, end: DateType] | null;
|
|
185
|
+
/** @private Only used for SinglePicker passing. */
|
|
186
|
+
hoverValue?: DateType[] | null;
|
|
187
|
+
onHover?: (value: DateType | null) => void;
|
|
188
|
+
/**
|
|
189
|
+
* Only used for `date` mode.
|
|
190
|
+
*/
|
|
191
|
+
showTime?: SharedTimeProps<DateType>;
|
|
192
|
+
/**
|
|
193
|
+
* Only used for `date` mode.
|
|
194
|
+
*/
|
|
195
|
+
showWeek?: boolean;
|
|
196
|
+
prevIcon?: VueNode;
|
|
197
|
+
nextIcon?: VueNode;
|
|
198
|
+
superPrevIcon?: VueNode;
|
|
199
|
+
superNextIcon?: VueNode;
|
|
200
|
+
}
|
|
201
|
+
export type Components<DateType extends object = any> = Partial<Record<InternalMode, DefineComponent<SharedPanelProps<DateType>>> & {
|
|
202
|
+
button?: DefineComponent | string;
|
|
203
|
+
input?: DefineComponent | string;
|
|
204
|
+
}>;
|
|
205
|
+
export type CustomFormat<DateType> = (value: DateType) => string;
|
|
206
|
+
export type FormatType<DateType = any> = string | CustomFormat<DateType>;
|
|
207
|
+
export type SharedHTMLAttrs = Omit<HTMLAttributes, 'value' | 'defaultValue' | 'onChange' | 'placeholder' | 'id' | 'onInvalid' | 'disabled' | 'onFocus' | 'onBlur' | 'onSelect' | 'min' | 'max' | 'onKeyDown' | 'size' | 'prefix'>;
|
|
208
|
+
export type PickerFocusEventHandler = (e: FocusEvent, info: BaseInfo) => void;
|
|
209
|
+
export type LegacyOnKeyDown = (event: KeyboardEvent, preventDefault: VoidFunction) => void;
|
|
210
|
+
export type SemanticName = 'root' | 'prefix' | 'input' | 'suffix';
|
|
211
|
+
export type PreviewValueType = 'hover';
|
|
212
|
+
export type PanelSemanticName = 'root' | 'header' | 'body' | 'content' | 'item' | 'footer' | 'container';
|
|
213
|
+
export interface SharedPickerProps<DateType extends object = any> extends SharedHTMLAttrs, Pick<SharedPanelProps<DateType>, 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon'> {
|
|
214
|
+
direction?: 'ltr' | 'rtl';
|
|
215
|
+
prefixCls?: string;
|
|
216
|
+
className?: string;
|
|
217
|
+
style?: CSSProperties;
|
|
218
|
+
rootClassName?: string;
|
|
219
|
+
styles?: Partial<Record<SemanticName, CSSProperties>> & {
|
|
220
|
+
popup?: Partial<Record<PanelSemanticName, CSSProperties>>;
|
|
221
|
+
};
|
|
222
|
+
classNames?: Partial<Record<SemanticName, string>> & {
|
|
223
|
+
popup?: Partial<Record<PanelSemanticName, string>>;
|
|
224
|
+
};
|
|
225
|
+
locale: Locale;
|
|
226
|
+
generateConfig: GenerateConfig<DateType>;
|
|
227
|
+
picker?: PickerMode;
|
|
228
|
+
/** Only work when picker is `date` or `time` */
|
|
229
|
+
showTime?: boolean | SharedTimeProps<DateType>;
|
|
230
|
+
/** Only work when picker is `date` */
|
|
231
|
+
showWeek?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Config the input field parse and format.
|
|
234
|
+
* When set `format.type`, it will force user input type with your input,
|
|
235
|
+
* it's only support basic format mask: YYYY, MM, DD, HH, mm, ss, SSS.
|
|
236
|
+
* Once use config mode, it must be fill with format your config.
|
|
237
|
+
*/
|
|
238
|
+
format?: FormatType<DateType> | FormatType<DateType>[] | {
|
|
239
|
+
format: string;
|
|
240
|
+
type?: 'mask';
|
|
241
|
+
};
|
|
242
|
+
prefix?: VueNode;
|
|
243
|
+
suffixIcon?: VueNode;
|
|
244
|
+
allowClear?: boolean | {
|
|
245
|
+
clearIcon?: VueNode;
|
|
246
|
+
};
|
|
247
|
+
/** @deprecated Please use `allowClear.clearIcon` instead */
|
|
248
|
+
clearIcon?: VueNode;
|
|
249
|
+
onFocus?: PickerFocusEventHandler;
|
|
250
|
+
onBlur?: PickerFocusEventHandler;
|
|
251
|
+
/** `preventDefault` is deprecated which will remove from future version. */
|
|
252
|
+
onKeyDown?: LegacyOnKeyDown;
|
|
253
|
+
inputReadOnly?: boolean;
|
|
254
|
+
/** Default will always order of selection after submit */
|
|
255
|
+
order?: boolean;
|
|
256
|
+
disabledDate?: DisabledDate<DateType>;
|
|
257
|
+
/** Limit the selectable range. This will limit picker navigation also */
|
|
258
|
+
minDate?: DateType;
|
|
259
|
+
/** Limit the selectable range. This will limit picker navigation also */
|
|
260
|
+
maxDate?: DateType;
|
|
261
|
+
defaultOpenValue?: DateType;
|
|
262
|
+
defaultOpen?: boolean;
|
|
263
|
+
open?: boolean;
|
|
264
|
+
onOpenChange?: (open: boolean) => void;
|
|
265
|
+
popupAlign?: AlignType;
|
|
266
|
+
getPopupContainer?: (node: HTMLElement) => HTMLElement;
|
|
267
|
+
placement?: string;
|
|
268
|
+
builtinPlacements?: BuildInPlacements;
|
|
269
|
+
/**
|
|
270
|
+
* By default. Only `time` or `datetime` show the confirm button in panel.
|
|
271
|
+
* `true` to make every picker need confirm.
|
|
272
|
+
* `false` to trigger change on every time panel closed by the mode = picker.
|
|
273
|
+
*/
|
|
274
|
+
needConfirm?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* @deprecated. This is removed and not work anymore.
|
|
277
|
+
* Value will always be update if user type correct date type.
|
|
278
|
+
* You can use `needConfirm` for confirm requirement.
|
|
279
|
+
*/
|
|
280
|
+
changeOnBlur?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* When user input invalidate date, keep it in the input field.
|
|
283
|
+
* This is only used for strong a11y requirement which do not want modify after blur.
|
|
284
|
+
*/
|
|
285
|
+
preserveInvalidOnBlur?: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* When the user selects the date hover option, the value of the input field undergoes a temporary change.
|
|
288
|
+
* `false` will not preview value.
|
|
289
|
+
* `hover` will preview value when hover.
|
|
290
|
+
*/
|
|
291
|
+
previewValue?: false | PreviewValueType;
|
|
292
|
+
transitionName?: string;
|
|
293
|
+
components?: Components<DateType>;
|
|
294
|
+
/** @deprecated Please use `components.input` instead. */
|
|
295
|
+
inputRender?: (props: InputHTMLAttributes) => VueNode;
|
|
296
|
+
cellRender?: CellRender<DateType>;
|
|
297
|
+
/** @deprecated use cellRender instead of dateRender */
|
|
298
|
+
dateRender?: (currentDate: DateType, today: DateType) => VueNode;
|
|
299
|
+
/** @deprecated use cellRender instead of monthCellRender */
|
|
300
|
+
monthCellRender?: (currentDate: DateType, locale: Locale) => VueNode;
|
|
301
|
+
/**
|
|
302
|
+
* When use `date` picker,
|
|
303
|
+
* Show the button to set current datetime.
|
|
304
|
+
*/
|
|
305
|
+
showNow?: boolean;
|
|
306
|
+
/** @deprecated Please use `showNow` instead */
|
|
307
|
+
showToday?: boolean;
|
|
308
|
+
panelRender?: (originPanel: VueNode) => VueNode;
|
|
309
|
+
renderExtraFooter?: (mode: PanelMode) => VueNode;
|
|
310
|
+
}
|
|
311
|
+
export interface PickerRef {
|
|
312
|
+
nativeElement: HTMLDivElement;
|
|
313
|
+
focus: (options?: FocusOptions) => void;
|
|
314
|
+
blur: VoidFunction;
|
|
315
|
+
}
|
|
316
|
+
export interface RangePickerRef extends Omit<PickerRef, 'focus'> {
|
|
317
|
+
focus: (index?: number | (FocusOptions & {
|
|
318
|
+
index?: number;
|
|
319
|
+
})) => void;
|
|
320
|
+
}
|
|
321
|
+
export interface OpenConfig {
|
|
322
|
+
index?: number;
|
|
323
|
+
/**
|
|
324
|
+
* Keep open if prev state is open but set close within the same frame.
|
|
325
|
+
* This is used for RangePicker input switch to another one.
|
|
326
|
+
*/
|
|
327
|
+
inherit?: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* By default. Close popup will delay for one frame. `force` will trigger immediately.
|
|
330
|
+
*/
|
|
331
|
+
force?: boolean;
|
|
332
|
+
}
|
|
333
|
+
export type OnOpenChange = (open: boolean, config?: OpenConfig) => void;
|
|
334
|
+
export interface SelectorProps<DateType = any> extends Omit<SharedHTMLAttrs, 'onClick'> {
|
|
335
|
+
picker: PickerMode;
|
|
336
|
+
prefix?: VueNode;
|
|
337
|
+
clearIcon?: VueNode;
|
|
338
|
+
suffixIcon?: VueNode;
|
|
339
|
+
className?: string;
|
|
340
|
+
style?: CSSProperties;
|
|
341
|
+
/** Add `-placeholder` className as a help info */
|
|
342
|
+
activeHelp?: boolean;
|
|
343
|
+
focused: boolean;
|
|
344
|
+
onFocus: (event: FocusEvent, index?: number) => void;
|
|
345
|
+
onBlur: (event: FocusEvent, index?: number) => void;
|
|
346
|
+
/** Trigger by `enter` key */
|
|
347
|
+
onSubmit: VoidFunction;
|
|
348
|
+
/** `preventDefault` is deprecated which will remove from future version. */
|
|
349
|
+
onKeyDown?: LegacyOnKeyDown;
|
|
350
|
+
locale: Locale;
|
|
351
|
+
generateConfig: GenerateConfig<DateType>;
|
|
352
|
+
direction?: 'ltr' | 'rtl';
|
|
353
|
+
onClick: ((e: MouseEvent) => void) | Array<(e: MouseEvent) => void>;
|
|
354
|
+
onClear: VoidFunction;
|
|
355
|
+
format: FormatType<DateType>[];
|
|
356
|
+
/**
|
|
357
|
+
* Convert with user typing for the format template.
|
|
358
|
+
* This will force align the input with template mask.
|
|
359
|
+
*/
|
|
360
|
+
maskFormat?: string;
|
|
361
|
+
onInputChange: VoidFunction;
|
|
362
|
+
onInvalid: (valid: boolean, index?: number) => void;
|
|
363
|
+
/** When user input invalidate date, keep it in the input field */
|
|
364
|
+
/**
|
|
365
|
+
* By default value in input field will be reset with previous valid value when blur.
|
|
366
|
+
* Set to `false` will keep invalid text in input field when blur.
|
|
367
|
+
*/
|
|
368
|
+
preserveInvalidOnBlur?: boolean;
|
|
369
|
+
open: boolean;
|
|
370
|
+
/** Trigger when need open by selector */
|
|
371
|
+
onOpenChange: OnOpenChange;
|
|
372
|
+
inputReadOnly?: boolean;
|
|
373
|
+
}
|
|
374
|
+
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
|
375
|
+
export type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
|
376
|
+
export type ReplaceListType<List, Type> = {
|
|
377
|
+
[P in keyof List]: Type;
|
|
378
|
+
};
|
|
379
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
var locale = {
|
|
6
|
+
locale: "am_ET",
|
|
7
|
+
today: "ዛሬ",
|
|
8
|
+
now: "አሁን",
|
|
9
|
+
backToToday: "ወደ ዛሬ ተመለስ",
|
|
10
|
+
ok: "እሺ",
|
|
11
|
+
clear: "አንፃ",
|
|
12
|
+
week: "ሳምንት",
|
|
13
|
+
month: "ወር",
|
|
14
|
+
year: "ዓመት",
|
|
15
|
+
timeSelect: "ሰዓት ምረጥ",
|
|
16
|
+
dateSelect: "ቀን ምረጥ",
|
|
17
|
+
weekSelect: "ሳምንት ምረጥ",
|
|
18
|
+
monthSelect: "ወር ምረጥ",
|
|
19
|
+
yearSelect: "አመት ምረጥ",
|
|
20
|
+
decadeSelect: "አስርት አመታት ምረጥ",
|
|
21
|
+
yearFormat: "YYYY",
|
|
22
|
+
dayFormat: "D",
|
|
23
|
+
monthBeforeYear: true,
|
|
24
|
+
previousMonth: "ያለፈው ወር (PageUp)",
|
|
25
|
+
nextMonth: "ቀጣይ ወር (PageDown)",
|
|
26
|
+
previousYear: "ያለፈው ዓመት (Control + left)",
|
|
27
|
+
nextYear: "ቀጣይ ዓመት (Control + right)",
|
|
28
|
+
previousDecade: "ያለፈው አስርት ዓመት",
|
|
29
|
+
nextDecade: "ቀጣይ አስርት ዓመት",
|
|
30
|
+
previousCentury: "ያለፈው ክፍለ ዘመን",
|
|
31
|
+
nextCentury: "ቀጣይ ክፍለ ዘመን"
|
|
32
|
+
};
|
|
33
|
+
var am_ET_default = locale;
|
|
34
|
+
exports.default = am_ET_default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var am_ET_default = {
|
|
2
|
+
locale: "am_ET",
|
|
3
|
+
today: "ዛሬ",
|
|
4
|
+
now: "አሁን",
|
|
5
|
+
backToToday: "ወደ ዛሬ ተመለስ",
|
|
6
|
+
ok: "እሺ",
|
|
7
|
+
clear: "አንፃ",
|
|
8
|
+
week: "ሳምንት",
|
|
9
|
+
month: "ወር",
|
|
10
|
+
year: "ዓመት",
|
|
11
|
+
timeSelect: "ሰዓት ምረጥ",
|
|
12
|
+
dateSelect: "ቀን ምረጥ",
|
|
13
|
+
weekSelect: "ሳምንት ምረጥ",
|
|
14
|
+
monthSelect: "ወር ምረጥ",
|
|
15
|
+
yearSelect: "አመት ምረጥ",
|
|
16
|
+
decadeSelect: "አስርት አመታት ምረጥ",
|
|
17
|
+
yearFormat: "YYYY",
|
|
18
|
+
dayFormat: "D",
|
|
19
|
+
monthBeforeYear: true,
|
|
20
|
+
previousMonth: "ያለፈው ወር (PageUp)",
|
|
21
|
+
nextMonth: "ቀጣይ ወር (PageDown)",
|
|
22
|
+
previousYear: "ያለፈው ዓመት (Control + left)",
|
|
23
|
+
nextYear: "ቀጣይ ዓመት (Control + right)",
|
|
24
|
+
previousDecade: "ያለፈው አስርት ዓመት",
|
|
25
|
+
nextDecade: "ቀጣይ አስርት ዓመት",
|
|
26
|
+
previousCentury: "ያለፈው ክፍለ ዘመን",
|
|
27
|
+
nextCentury: "ቀጣይ ክፍለ ዘመን"
|
|
28
|
+
};
|
|
29
|
+
export { am_ET_default as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_common = require("./common.cjs");
|
|
6
|
+
var locale = {
|
|
7
|
+
...require_common.commonLocale,
|
|
8
|
+
locale: "ar_EG",
|
|
9
|
+
today: "اليوم",
|
|
10
|
+
now: "الأن",
|
|
11
|
+
backToToday: "العودة إلى اليوم",
|
|
12
|
+
ok: "تأكيد",
|
|
13
|
+
clear: "مسح",
|
|
14
|
+
week: "الأسبوع",
|
|
15
|
+
month: "الشهر",
|
|
16
|
+
year: "السنة",
|
|
17
|
+
timeSelect: "اختيار الوقت",
|
|
18
|
+
dateSelect: "اختيار التاريخ",
|
|
19
|
+
monthSelect: "اختيار الشهر",
|
|
20
|
+
yearSelect: "اختيار السنة",
|
|
21
|
+
decadeSelect: "اختيار العقد",
|
|
22
|
+
previousMonth: "الشهر السابق (PageUp)",
|
|
23
|
+
nextMonth: "الشهر التالى(PageDown)",
|
|
24
|
+
previousYear: "العام السابق (Control + left)",
|
|
25
|
+
nextYear: "العام التالى (Control + right)",
|
|
26
|
+
previousDecade: "العقد السابق",
|
|
27
|
+
nextDecade: "العقد التالى",
|
|
28
|
+
previousCentury: "القرن السابق",
|
|
29
|
+
nextCentury: "القرن التالى"
|
|
30
|
+
};
|
|
31
|
+
var ar_EG_default = locale;
|
|
32
|
+
exports.default = ar_EG_default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { commonLocale } from "./common.js";
|
|
2
|
+
var ar_EG_default = {
|
|
3
|
+
...commonLocale,
|
|
4
|
+
locale: "ar_EG",
|
|
5
|
+
today: "اليوم",
|
|
6
|
+
now: "الأن",
|
|
7
|
+
backToToday: "العودة إلى اليوم",
|
|
8
|
+
ok: "تأكيد",
|
|
9
|
+
clear: "مسح",
|
|
10
|
+
week: "الأسبوع",
|
|
11
|
+
month: "الشهر",
|
|
12
|
+
year: "السنة",
|
|
13
|
+
timeSelect: "اختيار الوقت",
|
|
14
|
+
dateSelect: "اختيار التاريخ",
|
|
15
|
+
monthSelect: "اختيار الشهر",
|
|
16
|
+
yearSelect: "اختيار السنة",
|
|
17
|
+
decadeSelect: "اختيار العقد",
|
|
18
|
+
previousMonth: "الشهر السابق (PageUp)",
|
|
19
|
+
nextMonth: "الشهر التالى(PageDown)",
|
|
20
|
+
previousYear: "العام السابق (Control + left)",
|
|
21
|
+
nextYear: "العام التالى (Control + right)",
|
|
22
|
+
previousDecade: "العقد السابق",
|
|
23
|
+
nextDecade: "العقد التالى",
|
|
24
|
+
previousCentury: "القرن السابق",
|
|
25
|
+
nextCentury: "القرن التالى"
|
|
26
|
+
};
|
|
27
|
+
export { ar_EG_default as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_common = require("./common.cjs");
|
|
6
|
+
var locale = {
|
|
7
|
+
...require_common.commonLocale,
|
|
8
|
+
locale: "az_AZ",
|
|
9
|
+
today: "Bugün",
|
|
10
|
+
now: "İndi",
|
|
11
|
+
backToToday: "Bugünə qayıt",
|
|
12
|
+
ok: "Təsdiq",
|
|
13
|
+
clear: "Təmizlə",
|
|
14
|
+
week: "Həftə",
|
|
15
|
+
month: "Ay",
|
|
16
|
+
year: "İl",
|
|
17
|
+
timeSelect: "vaxtı seç",
|
|
18
|
+
dateSelect: "tarixi seç",
|
|
19
|
+
weekSelect: "Həftə seç",
|
|
20
|
+
monthSelect: "Ay seç",
|
|
21
|
+
yearSelect: "il seç",
|
|
22
|
+
decadeSelect: "Onillik seçin",
|
|
23
|
+
previousMonth: "Əvvəlki ay (PageUp)",
|
|
24
|
+
nextMonth: "Növbəti ay (PageDown)",
|
|
25
|
+
previousYear: "Sonuncu il (Control + left)",
|
|
26
|
+
nextYear: "Növbəti il (Control + right)",
|
|
27
|
+
previousDecade: "Sonuncu onillik",
|
|
28
|
+
nextDecade: "Növbəti onillik",
|
|
29
|
+
previousCentury: "Sonuncu əsr",
|
|
30
|
+
nextCentury: "Növbəti əsr"
|
|
31
|
+
};
|
|
32
|
+
var az_AZ_default = locale;
|
|
33
|
+
exports.default = az_AZ_default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { commonLocale } from "./common.js";
|
|
2
|
+
var az_AZ_default = {
|
|
3
|
+
...commonLocale,
|
|
4
|
+
locale: "az_AZ",
|
|
5
|
+
today: "Bugün",
|
|
6
|
+
now: "İndi",
|
|
7
|
+
backToToday: "Bugünə qayıt",
|
|
8
|
+
ok: "Təsdiq",
|
|
9
|
+
clear: "Təmizlə",
|
|
10
|
+
week: "Həftə",
|
|
11
|
+
month: "Ay",
|
|
12
|
+
year: "İl",
|
|
13
|
+
timeSelect: "vaxtı seç",
|
|
14
|
+
dateSelect: "tarixi seç",
|
|
15
|
+
weekSelect: "Həftə seç",
|
|
16
|
+
monthSelect: "Ay seç",
|
|
17
|
+
yearSelect: "il seç",
|
|
18
|
+
decadeSelect: "Onillik seçin",
|
|
19
|
+
previousMonth: "Əvvəlki ay (PageUp)",
|
|
20
|
+
nextMonth: "Növbəti ay (PageDown)",
|
|
21
|
+
previousYear: "Sonuncu il (Control + left)",
|
|
22
|
+
nextYear: "Növbəti il (Control + right)",
|
|
23
|
+
previousDecade: "Sonuncu onillik",
|
|
24
|
+
nextDecade: "Növbəti onillik",
|
|
25
|
+
previousCentury: "Sonuncu əsr",
|
|
26
|
+
nextCentury: "Növbəti əsr"
|
|
27
|
+
};
|
|
28
|
+
export { az_AZ_default as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_common = require("./common.cjs");
|
|
6
|
+
var locale = {
|
|
7
|
+
...require_common.commonLocale,
|
|
8
|
+
locale: "bg_BG",
|
|
9
|
+
today: "Днес",
|
|
10
|
+
now: "Сега",
|
|
11
|
+
backToToday: "Към днес",
|
|
12
|
+
ok: "Добре",
|
|
13
|
+
clear: "Изчистване",
|
|
14
|
+
week: "Седмица",
|
|
15
|
+
month: "Месец",
|
|
16
|
+
year: "Година",
|
|
17
|
+
timeSelect: "Избор на час",
|
|
18
|
+
dateSelect: "Избор на дата",
|
|
19
|
+
monthSelect: "Избор на месец",
|
|
20
|
+
yearSelect: "Избор на година",
|
|
21
|
+
decadeSelect: "Десетилетие",
|
|
22
|
+
previousMonth: "Предишен месец (PageUp)",
|
|
23
|
+
nextMonth: "Следващ месец (PageDown)",
|
|
24
|
+
previousYear: "Последна година (Control + left)",
|
|
25
|
+
nextYear: "Следваща година (Control + right)",
|
|
26
|
+
previousDecade: "Предишно десетилетие",
|
|
27
|
+
nextDecade: "Следващо десетилетие",
|
|
28
|
+
previousCentury: "Последен век",
|
|
29
|
+
nextCentury: "Следващ век"
|
|
30
|
+
};
|
|
31
|
+
var bg_BG_default = locale;
|
|
32
|
+
exports.default = bg_BG_default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { commonLocale } from "./common.js";
|
|
2
|
+
var bg_BG_default = {
|
|
3
|
+
...commonLocale,
|
|
4
|
+
locale: "bg_BG",
|
|
5
|
+
today: "Днес",
|
|
6
|
+
now: "Сега",
|
|
7
|
+
backToToday: "Към днес",
|
|
8
|
+
ok: "Добре",
|
|
9
|
+
clear: "Изчистване",
|
|
10
|
+
week: "Седмица",
|
|
11
|
+
month: "Месец",
|
|
12
|
+
year: "Година",
|
|
13
|
+
timeSelect: "Избор на час",
|
|
14
|
+
dateSelect: "Избор на дата",
|
|
15
|
+
monthSelect: "Избор на месец",
|
|
16
|
+
yearSelect: "Избор на година",
|
|
17
|
+
decadeSelect: "Десетилетие",
|
|
18
|
+
previousMonth: "Предишен месец (PageUp)",
|
|
19
|
+
nextMonth: "Следващ месец (PageDown)",
|
|
20
|
+
previousYear: "Последна година (Control + left)",
|
|
21
|
+
nextYear: "Следваща година (Control + right)",
|
|
22
|
+
previousDecade: "Предишно десетилетие",
|
|
23
|
+
nextDecade: "Следващо десетилетие",
|
|
24
|
+
previousCentury: "Последен век",
|
|
25
|
+
nextCentury: "Следващ век"
|
|
26
|
+
};
|
|
27
|
+
export { bg_BG_default as default };
|