@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,528 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_rolldown_runtime = require("../../_virtual/rolldown_runtime.cjs");
|
|
6
|
+
const require_context = require("../context.cjs");
|
|
7
|
+
const require_miscUtil = require("../../utils/miscUtil.cjs");
|
|
8
|
+
const require_Footer = require("./Footer.cjs");
|
|
9
|
+
const require_PopupPanel = require("./PopupPanel.cjs");
|
|
10
|
+
const require_PresetPanel = require("./PresetPanel.cjs");
|
|
11
|
+
let vue = require("vue");
|
|
12
|
+
let _v_c_util = require("@v-c/util");
|
|
13
|
+
var Popup = /* @__PURE__ */ (0, vue.defineComponent)((props) => {
|
|
14
|
+
const activeInfo = (0, vue.computed)(() => props.activeInfo || [
|
|
15
|
+
0,
|
|
16
|
+
0,
|
|
17
|
+
0
|
|
18
|
+
]);
|
|
19
|
+
const ctx = require_context.usePickerContext();
|
|
20
|
+
const panelPrefixCls = (0, vue.computed)(() => `${ctx.value.prefixCls}-panel`);
|
|
21
|
+
const rtl = (0, vue.computed)(() => props.direction === "rtl");
|
|
22
|
+
const arrowRef = (0, vue.ref)();
|
|
23
|
+
const wrapperRef = (0, vue.ref)();
|
|
24
|
+
const containerWidth = (0, vue.ref)(0);
|
|
25
|
+
const containerOffset = (0, vue.ref)(0);
|
|
26
|
+
const arrowOffset = (0, vue.ref)(0);
|
|
27
|
+
const domRef = (0, vue.shallowRef)();
|
|
28
|
+
const onResize = (info) => {
|
|
29
|
+
if (info.width) containerWidth.value = info.width;
|
|
30
|
+
};
|
|
31
|
+
(0, vue.onMounted)(() => {
|
|
32
|
+
if (domRef.value) {
|
|
33
|
+
const observer = new ResizeObserver((entries) => {
|
|
34
|
+
const entry = entries[0];
|
|
35
|
+
onResize(entry, domRef.value);
|
|
36
|
+
});
|
|
37
|
+
observer.observe(domRef.value);
|
|
38
|
+
(0, vue.onUnmounted)(() => {
|
|
39
|
+
observer.disconnect();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const retryTimes = (0, vue.ref)(0);
|
|
44
|
+
(0, vue.watch)(() => activeInfo.value[0], () => {
|
|
45
|
+
retryTimes.value = 10;
|
|
46
|
+
}, {
|
|
47
|
+
immediate: true,
|
|
48
|
+
flush: "post"
|
|
49
|
+
});
|
|
50
|
+
(0, vue.watch)([
|
|
51
|
+
retryTimes,
|
|
52
|
+
rtl,
|
|
53
|
+
activeInfo,
|
|
54
|
+
() => props.range
|
|
55
|
+
], () => {
|
|
56
|
+
const [activeInputLeft, activeInputRight, selectorWidth] = activeInfo.value;
|
|
57
|
+
if (props.range && wrapperRef.value) {
|
|
58
|
+
const arrowWidth = arrowRef.value?.offsetWidth || 0;
|
|
59
|
+
const wrapperRect = wrapperRef.value.getBoundingClientRect();
|
|
60
|
+
if (!wrapperRect.height || wrapperRect.right < 0) {
|
|
61
|
+
retryTimes.value = Math.max(0, retryTimes.value - 1);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
arrowOffset.value = (rtl ? activeInputRight - arrowWidth : activeInputLeft) - wrapperRect.left;
|
|
65
|
+
if (containerWidth && containerWidth.value < selectorWidth) {
|
|
66
|
+
const offset = rtl ? wrapperRect.right - (activeInputRight - arrowWidth + containerWidth.value) : activeInputLeft + arrowWidth - wrapperRect.left - containerWidth.value;
|
|
67
|
+
containerOffset.value = Math.max(0, offset);
|
|
68
|
+
} else containerOffset.value = 0;
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
immediate: true,
|
|
72
|
+
flush: "post"
|
|
73
|
+
});
|
|
74
|
+
function filterEmpty(list) {
|
|
75
|
+
return list.filter((item) => item);
|
|
76
|
+
}
|
|
77
|
+
const valueList = (0, vue.computed)(() => filterEmpty(require_miscUtil.toArray(props.value)));
|
|
78
|
+
const isTimePickerEmptyValue = (0, vue.computed)(() => props.picker === "time" && !valueList.value.length);
|
|
79
|
+
const footerSubmitValue = (0, vue.computed)(() => {
|
|
80
|
+
if (isTimePickerEmptyValue.value) return filterEmpty([props.defaultOpenValue]);
|
|
81
|
+
return valueList.value;
|
|
82
|
+
});
|
|
83
|
+
const popupPanelValue = (0, vue.computed)(() => isTimePickerEmptyValue.value ? props.defaultOpenValue : valueList.value);
|
|
84
|
+
const disableSubmit = (0, vue.computed)(() => {
|
|
85
|
+
if (!footerSubmitValue.value.length) return true;
|
|
86
|
+
return footerSubmitValue.value.some((val) => props.isInvalid(val));
|
|
87
|
+
});
|
|
88
|
+
const onFooterSubmit = () => {
|
|
89
|
+
if (isTimePickerEmptyValue.value) props.onSelect?.(props.defaultOpenValue);
|
|
90
|
+
props.onOk();
|
|
91
|
+
props.onSubmit();
|
|
92
|
+
};
|
|
93
|
+
return () => {
|
|
94
|
+
const { classNames, panelRender, multiple, showNow, picker, range, presets, onPresetSubmit, onPresetHover, internalMode, styles, onFocus, onBlur, onPanelMouseDown } = props;
|
|
95
|
+
const onPanelFocusIn = (event) => {
|
|
96
|
+
onFocus?.(event);
|
|
97
|
+
};
|
|
98
|
+
const onPanelFocusOut = (event) => {
|
|
99
|
+
onBlur?.(event);
|
|
100
|
+
};
|
|
101
|
+
const prefixCls = ctx.value.prefixCls;
|
|
102
|
+
let mergedNodes = (0, vue.createVNode)("div", { "class": `${prefixCls}-panel-layout` }, [(0, vue.createVNode)(require_PresetPanel.default, {
|
|
103
|
+
"prefixCls": prefixCls,
|
|
104
|
+
"presets": presets,
|
|
105
|
+
"onClick": onPresetSubmit,
|
|
106
|
+
"onHover": onPresetHover
|
|
107
|
+
}, null), (0, vue.createVNode)("div", null, [(0, vue.createVNode)(require_PopupPanel.default, (0, vue.mergeProps)(props, { "value": popupPanelValue.value }), null), (0, vue.createVNode)(require_Footer.default, (0, vue.mergeProps)((0, _v_c_util.omit)(props, ["onSubmit"]), {
|
|
108
|
+
"showNow": multiple ? false : showNow,
|
|
109
|
+
"invalid": disableSubmit.value,
|
|
110
|
+
"onSubmit": onFooterSubmit
|
|
111
|
+
}), null)])]);
|
|
112
|
+
if (panelRender) mergedNodes = panelRender(mergedNodes);
|
|
113
|
+
const containerPrefixCls = `${panelPrefixCls.value}-container`;
|
|
114
|
+
const marginLeft = "marginLeft";
|
|
115
|
+
const marginRight = "marginRight";
|
|
116
|
+
let renderNode = (0, vue.createVNode)("div", {
|
|
117
|
+
"ref": domRef,
|
|
118
|
+
"onMousedown": onPanelMouseDown,
|
|
119
|
+
"tabindex": -1,
|
|
120
|
+
"class": (0, _v_c_util.clsx)(containerPrefixCls, `${ctx.value.prefixCls}-${internalMode}-panel-container`, classNames?.popup?.container),
|
|
121
|
+
"style": {
|
|
122
|
+
[rtl ? marginRight : marginLeft]: containerOffset,
|
|
123
|
+
[rtl ? marginLeft : marginRight]: "auto",
|
|
124
|
+
...styles?.popup?.container
|
|
125
|
+
},
|
|
126
|
+
"onFocusin": onPanelFocusIn,
|
|
127
|
+
"onFocusout": onPanelFocusOut
|
|
128
|
+
}, [mergedNodes]);
|
|
129
|
+
if (range) renderNode = (0, vue.createVNode)("div", {
|
|
130
|
+
"onMousedown": onPanelMouseDown,
|
|
131
|
+
"ref": wrapperRef,
|
|
132
|
+
"class": (0, _v_c_util.clsx)(`${ctx.value.prefixCls}-range-wrapper`, `${ctx.value.prefixCls}-${picker}-range-wrapper`)
|
|
133
|
+
}, [(0, vue.createVNode)("div", {
|
|
134
|
+
"ref": arrowRef,
|
|
135
|
+
"class": `${ctx.value.prefixCls}-range-arrow`,
|
|
136
|
+
"style": { left: `${arrowOffset.value}px` }
|
|
137
|
+
}, null), renderNode]);
|
|
138
|
+
return renderNode;
|
|
139
|
+
};
|
|
140
|
+
}, {
|
|
141
|
+
props: {
|
|
142
|
+
onFocus: {
|
|
143
|
+
type: Function,
|
|
144
|
+
required: false,
|
|
145
|
+
default: void 0
|
|
146
|
+
},
|
|
147
|
+
onBlur: {
|
|
148
|
+
type: Function,
|
|
149
|
+
required: false,
|
|
150
|
+
default: void 0
|
|
151
|
+
},
|
|
152
|
+
mode: {
|
|
153
|
+
type: String,
|
|
154
|
+
required: false,
|
|
155
|
+
default: void 0
|
|
156
|
+
},
|
|
157
|
+
internalMode: {
|
|
158
|
+
type: String,
|
|
159
|
+
required: true,
|
|
160
|
+
default: void 0
|
|
161
|
+
},
|
|
162
|
+
renderExtraFooter: {
|
|
163
|
+
type: Function,
|
|
164
|
+
required: false,
|
|
165
|
+
default: void 0
|
|
166
|
+
},
|
|
167
|
+
showNow: {
|
|
168
|
+
type: Boolean,
|
|
169
|
+
required: false,
|
|
170
|
+
default: void 0
|
|
171
|
+
},
|
|
172
|
+
generateConfig: {
|
|
173
|
+
type: Object,
|
|
174
|
+
required: false,
|
|
175
|
+
default: void 0
|
|
176
|
+
},
|
|
177
|
+
disabledDate: {
|
|
178
|
+
type: Function,
|
|
179
|
+
required: false,
|
|
180
|
+
default: void 0
|
|
181
|
+
},
|
|
182
|
+
showTime: {
|
|
183
|
+
type: Object,
|
|
184
|
+
required: false,
|
|
185
|
+
default: void 0
|
|
186
|
+
},
|
|
187
|
+
invalid: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
required: false,
|
|
190
|
+
default: void 0
|
|
191
|
+
},
|
|
192
|
+
onSubmit: {
|
|
193
|
+
type: Function,
|
|
194
|
+
required: true,
|
|
195
|
+
default: void 0
|
|
196
|
+
},
|
|
197
|
+
needConfirm: {
|
|
198
|
+
type: [Boolean, null],
|
|
199
|
+
required: true,
|
|
200
|
+
default: void 0
|
|
201
|
+
},
|
|
202
|
+
onNow: {
|
|
203
|
+
type: Function,
|
|
204
|
+
required: true,
|
|
205
|
+
default: void 0
|
|
206
|
+
},
|
|
207
|
+
multiplePanel: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
required: false,
|
|
210
|
+
default: void 0
|
|
211
|
+
},
|
|
212
|
+
range: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
required: false,
|
|
215
|
+
default: void 0
|
|
216
|
+
},
|
|
217
|
+
onPickerValueChange: {
|
|
218
|
+
type: Function,
|
|
219
|
+
required: true,
|
|
220
|
+
default: void 0
|
|
221
|
+
},
|
|
222
|
+
onPanelChange: {
|
|
223
|
+
type: Function,
|
|
224
|
+
required: false,
|
|
225
|
+
default: void 0
|
|
226
|
+
},
|
|
227
|
+
prefixCls: {
|
|
228
|
+
type: String,
|
|
229
|
+
required: false,
|
|
230
|
+
default: void 0
|
|
231
|
+
},
|
|
232
|
+
direction: {
|
|
233
|
+
type: String,
|
|
234
|
+
required: false,
|
|
235
|
+
default: void 0
|
|
236
|
+
},
|
|
237
|
+
onSelect: {
|
|
238
|
+
type: Function,
|
|
239
|
+
required: false,
|
|
240
|
+
default: void 0
|
|
241
|
+
},
|
|
242
|
+
defaultPickerValue: {
|
|
243
|
+
required: false,
|
|
244
|
+
default: void 0
|
|
245
|
+
},
|
|
246
|
+
pickerValue: {
|
|
247
|
+
required: false,
|
|
248
|
+
default: void 0
|
|
249
|
+
},
|
|
250
|
+
picker: {
|
|
251
|
+
type: String,
|
|
252
|
+
required: false,
|
|
253
|
+
default: void 0
|
|
254
|
+
},
|
|
255
|
+
showWeek: {
|
|
256
|
+
type: Boolean,
|
|
257
|
+
required: false,
|
|
258
|
+
default: void 0
|
|
259
|
+
},
|
|
260
|
+
cellRender: {
|
|
261
|
+
type: Function,
|
|
262
|
+
required: false,
|
|
263
|
+
default: void 0
|
|
264
|
+
},
|
|
265
|
+
dateRender: {
|
|
266
|
+
type: Function,
|
|
267
|
+
required: false,
|
|
268
|
+
default: void 0
|
|
269
|
+
},
|
|
270
|
+
monthCellRender: {
|
|
271
|
+
type: Function,
|
|
272
|
+
required: false,
|
|
273
|
+
default: void 0
|
|
274
|
+
},
|
|
275
|
+
hoverValue: {
|
|
276
|
+
type: Array,
|
|
277
|
+
required: false,
|
|
278
|
+
default: void 0
|
|
279
|
+
},
|
|
280
|
+
hoverRangeValue: {
|
|
281
|
+
type: Array,
|
|
282
|
+
required: false,
|
|
283
|
+
default: void 0
|
|
284
|
+
},
|
|
285
|
+
onHover: {
|
|
286
|
+
type: Function,
|
|
287
|
+
required: false,
|
|
288
|
+
default: void 0
|
|
289
|
+
},
|
|
290
|
+
components: {
|
|
291
|
+
type: Object,
|
|
292
|
+
required: false,
|
|
293
|
+
default: void 0
|
|
294
|
+
},
|
|
295
|
+
hideHeader: {
|
|
296
|
+
type: Boolean,
|
|
297
|
+
required: false,
|
|
298
|
+
default: void 0
|
|
299
|
+
},
|
|
300
|
+
locale: {
|
|
301
|
+
type: Object,
|
|
302
|
+
required: false,
|
|
303
|
+
default: void 0
|
|
304
|
+
},
|
|
305
|
+
minDate: {
|
|
306
|
+
required: false,
|
|
307
|
+
default: void 0
|
|
308
|
+
},
|
|
309
|
+
maxDate: {
|
|
310
|
+
required: false,
|
|
311
|
+
default: void 0
|
|
312
|
+
},
|
|
313
|
+
prevIcon: {
|
|
314
|
+
type: [
|
|
315
|
+
Object,
|
|
316
|
+
Function,
|
|
317
|
+
String,
|
|
318
|
+
Number,
|
|
319
|
+
null,
|
|
320
|
+
Boolean,
|
|
321
|
+
Array
|
|
322
|
+
],
|
|
323
|
+
required: false,
|
|
324
|
+
default: void 0
|
|
325
|
+
},
|
|
326
|
+
nextIcon: {
|
|
327
|
+
type: [
|
|
328
|
+
Object,
|
|
329
|
+
Function,
|
|
330
|
+
String,
|
|
331
|
+
Number,
|
|
332
|
+
null,
|
|
333
|
+
Boolean,
|
|
334
|
+
Array
|
|
335
|
+
],
|
|
336
|
+
required: false,
|
|
337
|
+
default: void 0
|
|
338
|
+
},
|
|
339
|
+
superPrevIcon: {
|
|
340
|
+
type: [
|
|
341
|
+
Object,
|
|
342
|
+
Function,
|
|
343
|
+
String,
|
|
344
|
+
Number,
|
|
345
|
+
null,
|
|
346
|
+
Boolean,
|
|
347
|
+
Array
|
|
348
|
+
],
|
|
349
|
+
required: false,
|
|
350
|
+
default: void 0
|
|
351
|
+
},
|
|
352
|
+
superNextIcon: {
|
|
353
|
+
type: [
|
|
354
|
+
Object,
|
|
355
|
+
Function,
|
|
356
|
+
String,
|
|
357
|
+
Number,
|
|
358
|
+
null,
|
|
359
|
+
Boolean,
|
|
360
|
+
Array
|
|
361
|
+
],
|
|
362
|
+
required: false,
|
|
363
|
+
default: void 0
|
|
364
|
+
},
|
|
365
|
+
format: {
|
|
366
|
+
type: String,
|
|
367
|
+
required: false,
|
|
368
|
+
default: void 0
|
|
369
|
+
},
|
|
370
|
+
showHour: {
|
|
371
|
+
type: Boolean,
|
|
372
|
+
required: false,
|
|
373
|
+
default: void 0
|
|
374
|
+
},
|
|
375
|
+
showMinute: {
|
|
376
|
+
type: Boolean,
|
|
377
|
+
required: false,
|
|
378
|
+
default: void 0
|
|
379
|
+
},
|
|
380
|
+
showSecond: {
|
|
381
|
+
type: Boolean,
|
|
382
|
+
required: false,
|
|
383
|
+
default: void 0
|
|
384
|
+
},
|
|
385
|
+
showMillisecond: {
|
|
386
|
+
type: Boolean,
|
|
387
|
+
required: false,
|
|
388
|
+
default: void 0
|
|
389
|
+
},
|
|
390
|
+
use12Hours: {
|
|
391
|
+
type: Boolean,
|
|
392
|
+
required: false,
|
|
393
|
+
default: void 0
|
|
394
|
+
},
|
|
395
|
+
hourStep: {
|
|
396
|
+
required: false,
|
|
397
|
+
default: void 0
|
|
398
|
+
},
|
|
399
|
+
minuteStep: {
|
|
400
|
+
required: false,
|
|
401
|
+
default: void 0
|
|
402
|
+
},
|
|
403
|
+
secondStep: {
|
|
404
|
+
required: false,
|
|
405
|
+
default: void 0
|
|
406
|
+
},
|
|
407
|
+
millisecondStep: {
|
|
408
|
+
required: false,
|
|
409
|
+
default: void 0
|
|
410
|
+
},
|
|
411
|
+
hideDisabledOptions: {
|
|
412
|
+
type: Boolean,
|
|
413
|
+
required: false,
|
|
414
|
+
default: void 0
|
|
415
|
+
},
|
|
416
|
+
defaultValue: {
|
|
417
|
+
type: [Array, null],
|
|
418
|
+
required: false,
|
|
419
|
+
default: void 0
|
|
420
|
+
},
|
|
421
|
+
defaultOpenValue: {
|
|
422
|
+
type: void 0,
|
|
423
|
+
required: false,
|
|
424
|
+
default: void 0
|
|
425
|
+
},
|
|
426
|
+
disabledHours: {
|
|
427
|
+
type: Function,
|
|
428
|
+
required: false,
|
|
429
|
+
default: void 0
|
|
430
|
+
},
|
|
431
|
+
disabledMinutes: {
|
|
432
|
+
type: Function,
|
|
433
|
+
required: false,
|
|
434
|
+
default: void 0
|
|
435
|
+
},
|
|
436
|
+
disabledSeconds: {
|
|
437
|
+
type: Function,
|
|
438
|
+
required: false,
|
|
439
|
+
default: void 0
|
|
440
|
+
},
|
|
441
|
+
disabledTime: {
|
|
442
|
+
type: Function,
|
|
443
|
+
required: false,
|
|
444
|
+
default: void 0
|
|
445
|
+
},
|
|
446
|
+
changeOnScroll: {
|
|
447
|
+
type: Boolean,
|
|
448
|
+
required: false,
|
|
449
|
+
default: void 0
|
|
450
|
+
},
|
|
451
|
+
tabindex: {
|
|
452
|
+
type: [
|
|
453
|
+
Number,
|
|
454
|
+
String,
|
|
455
|
+
null
|
|
456
|
+
],
|
|
457
|
+
required: false,
|
|
458
|
+
default: void 0
|
|
459
|
+
},
|
|
460
|
+
multiple: {
|
|
461
|
+
type: Boolean,
|
|
462
|
+
required: false,
|
|
463
|
+
default: void 0
|
|
464
|
+
},
|
|
465
|
+
value: {
|
|
466
|
+
required: false,
|
|
467
|
+
default: void 0
|
|
468
|
+
},
|
|
469
|
+
onChange: {
|
|
470
|
+
type: Function,
|
|
471
|
+
required: false,
|
|
472
|
+
default: void 0
|
|
473
|
+
},
|
|
474
|
+
styles: {
|
|
475
|
+
type: Object,
|
|
476
|
+
required: false,
|
|
477
|
+
default: void 0
|
|
478
|
+
},
|
|
479
|
+
classNames: {
|
|
480
|
+
type: Object,
|
|
481
|
+
required: false,
|
|
482
|
+
default: void 0
|
|
483
|
+
},
|
|
484
|
+
panelRender: {
|
|
485
|
+
type: Function,
|
|
486
|
+
required: false,
|
|
487
|
+
default: void 0
|
|
488
|
+
},
|
|
489
|
+
presets: {
|
|
490
|
+
type: Array,
|
|
491
|
+
required: true,
|
|
492
|
+
default: void 0
|
|
493
|
+
},
|
|
494
|
+
onPresetHover: {
|
|
495
|
+
type: Function,
|
|
496
|
+
required: true,
|
|
497
|
+
default: void 0
|
|
498
|
+
},
|
|
499
|
+
onPresetSubmit: {
|
|
500
|
+
type: Function,
|
|
501
|
+
required: true,
|
|
502
|
+
default: void 0
|
|
503
|
+
},
|
|
504
|
+
activeInfo: {
|
|
505
|
+
type: Array,
|
|
506
|
+
required: false,
|
|
507
|
+
default: void 0
|
|
508
|
+
},
|
|
509
|
+
isInvalid: {
|
|
510
|
+
type: Function,
|
|
511
|
+
required: true,
|
|
512
|
+
default: void 0
|
|
513
|
+
},
|
|
514
|
+
onOk: {
|
|
515
|
+
required: true,
|
|
516
|
+
default: void 0
|
|
517
|
+
},
|
|
518
|
+
onPanelMouseDown: {
|
|
519
|
+
type: Function,
|
|
520
|
+
required: false,
|
|
521
|
+
default: void 0
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
name: "Popup",
|
|
525
|
+
inheritAttrs: false
|
|
526
|
+
});
|
|
527
|
+
var Popup_default = Popup;
|
|
528
|
+
exports.default = Popup_default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { MouseEventHandler } from '../../../../util/src/EventInterface';
|
|
2
|
+
import { InputHTMLAttributes } from 'vue';
|
|
3
|
+
import { RangeTimeProps, SharedPickerProps, SharedTimeProps, ValueDate } from '../../interface';
|
|
4
|
+
import { FooterProps } from './Footer';
|
|
5
|
+
import { PopupPanelProps } from './PopupPanel';
|
|
6
|
+
export type PopupShowTimeConfig<DateType extends object = any> = Omit<RangeTimeProps<DateType>, 'defaultValue' | 'defaultOpenValue' | 'disabledTime'> & Pick<SharedTimeProps<DateType>, 'disabledTime'>;
|
|
7
|
+
export type PopupProps<DateType extends object = any, PresetValue = DateType> = Pick<InputHTMLAttributes, 'onFocus' | 'onBlur'> & FooterProps<DateType> & PopupPanelProps<DateType> & {
|
|
8
|
+
panelRender?: SharedPickerProps['panelRender'];
|
|
9
|
+
presets: ValueDate<PresetValue>[];
|
|
10
|
+
onPresetHover: (presetValue: PresetValue | null) => void;
|
|
11
|
+
onPresetSubmit: (presetValue: PresetValue) => void;
|
|
12
|
+
activeInfo?: [activeInputLeft: number, activeInputRight: number, selectorWidth: number];
|
|
13
|
+
direction?: 'ltr' | 'rtl';
|
|
14
|
+
defaultOpenValue: DateType;
|
|
15
|
+
needConfirm: boolean | undefined;
|
|
16
|
+
isInvalid: (date: DateType | DateType[]) => boolean;
|
|
17
|
+
onOk: VoidFunction;
|
|
18
|
+
onPanelMouseDown?: MouseEventHandler;
|
|
19
|
+
classNames?: SharedPickerProps['classNames'];
|
|
20
|
+
styles?: SharedPickerProps['styles'];
|
|
21
|
+
};
|
|
22
|
+
declare const Popup: import('vue').DefineSetupFnComponent<PopupProps<any, any>, {}, {}, Pick<InputHTMLAttributes, "onFocus" | "onBlur"> & FooterProps<any> & PopupPanelProps<any> & {
|
|
23
|
+
panelRender?: SharedPickerProps["panelRender"];
|
|
24
|
+
presets: ValueDate<any>[];
|
|
25
|
+
onPresetHover: (presetValue: any) => void;
|
|
26
|
+
onPresetSubmit: (presetValue: any) => void;
|
|
27
|
+
activeInfo?: [activeInputLeft: number, activeInputRight: number, selectorWidth: number];
|
|
28
|
+
direction?: "ltr" | "rtl";
|
|
29
|
+
defaultOpenValue: any;
|
|
30
|
+
needConfirm: boolean | undefined;
|
|
31
|
+
isInvalid: (date: any) => boolean;
|
|
32
|
+
onOk: VoidFunction;
|
|
33
|
+
onPanelMouseDown?: MouseEventHandler;
|
|
34
|
+
classNames?: SharedPickerProps["classNames"];
|
|
35
|
+
styles?: SharedPickerProps["styles"];
|
|
36
|
+
} & {}, import('vue').PublicProps>;
|
|
37
|
+
export default Popup;
|