@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,128 @@
|
|
|
1
|
+
import { fillIndex } from "../../utils/miscUtil.js";
|
|
2
|
+
import { formatValue, isSame, isSameTimestamp } from "../../utils/dateUtil.js";
|
|
3
|
+
import useLockEffect from "./useLockEffect.js";
|
|
4
|
+
import { computed, ref, watch } from "vue";
|
|
5
|
+
var EMPTY_VALUE = [];
|
|
6
|
+
function useUtil(generateConfig, locale, formatList) {
|
|
7
|
+
const getDateTexts = (dates) => {
|
|
8
|
+
return dates.map((date) => formatValue(date, {
|
|
9
|
+
generateConfig: generateConfig.value,
|
|
10
|
+
locale: locale.value,
|
|
11
|
+
format: formatList.value[0]
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
const isSameDates = (source, target) => {
|
|
15
|
+
const maxLen = Math.max(source.length, target.length);
|
|
16
|
+
let diffIndex = -1;
|
|
17
|
+
for (let i = 0; i < maxLen; i += 1) {
|
|
18
|
+
const prev = source[i] || null;
|
|
19
|
+
const next = target[i] || null;
|
|
20
|
+
if (prev !== next && !isSameTimestamp(generateConfig.value, prev, next)) {
|
|
21
|
+
diffIndex = i;
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return [diffIndex < 0, diffIndex !== 0];
|
|
26
|
+
};
|
|
27
|
+
return [getDateTexts, isSameDates];
|
|
28
|
+
}
|
|
29
|
+
function orderDates(dates, generateConfig) {
|
|
30
|
+
return [...dates].sort((a, b) => generateConfig.isAfter(a, b) ? 1 : -1);
|
|
31
|
+
}
|
|
32
|
+
function useInnerValue(generateConfig, locale, formatList, rangeValue, order, defaultValue, value, onCalendarChange, onOk) {
|
|
33
|
+
const internalValue = ref(defaultValue.value);
|
|
34
|
+
const mergedValue = computed(() => {
|
|
35
|
+
return (value.value !== void 0 ? value.value : internalValue.value) || EMPTY_VALUE;
|
|
36
|
+
});
|
|
37
|
+
const setInnerValue = (val) => {
|
|
38
|
+
if (value.value === void 0) internalValue.value = val;
|
|
39
|
+
};
|
|
40
|
+
const calendarValue = ref(mergedValue.value);
|
|
41
|
+
watch(mergedValue, (val) => {
|
|
42
|
+
calendarValue.value = val;
|
|
43
|
+
});
|
|
44
|
+
const setCalendarValue = (val) => {
|
|
45
|
+
calendarValue.value = val;
|
|
46
|
+
};
|
|
47
|
+
const [getDateTexts, isSameDates] = useUtil(generateConfig, locale, formatList);
|
|
48
|
+
const triggerCalendarChange = (nextCalendarValues) => {
|
|
49
|
+
let clone = [...nextCalendarValues];
|
|
50
|
+
if (rangeValue.value) for (let i = 0; i < 2; i += 1) clone[i] = clone[i] || null;
|
|
51
|
+
else if (order.value) clone = orderDates(clone.filter((date) => date), generateConfig.value);
|
|
52
|
+
const [isSameMergedDates, isSameStart] = isSameDates(calendarValue.value, clone);
|
|
53
|
+
if (!isSameMergedDates) {
|
|
54
|
+
setCalendarValue(clone);
|
|
55
|
+
if (onCalendarChange) {
|
|
56
|
+
const cellTexts = getDateTexts(clone);
|
|
57
|
+
onCalendarChange(clone, cellTexts, { range: isSameStart ? "end" : "start" });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const triggerOk = () => {
|
|
62
|
+
if (onOk) onOk(calendarValue.value);
|
|
63
|
+
};
|
|
64
|
+
return [
|
|
65
|
+
mergedValue,
|
|
66
|
+
setInnerValue,
|
|
67
|
+
calendarValue,
|
|
68
|
+
triggerCalendarChange,
|
|
69
|
+
triggerOk
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
function useRangeValue(info, mergedValue, setInnerValue, getCalendarValue, triggerCalendarChange, disabled, formatList, focused, open, isInvalidateDate) {
|
|
73
|
+
const orderOnChange = computed(() => disabled.value.some((d) => d) ? false : info.value.order);
|
|
74
|
+
const [getDateTexts, isSameDates] = useUtil(computed(() => info.value.generateConfig), computed(() => info.value.locale), formatList);
|
|
75
|
+
const submitValue = ref(mergedValue.value);
|
|
76
|
+
watch(mergedValue, (val) => {
|
|
77
|
+
submitValue.value = val;
|
|
78
|
+
});
|
|
79
|
+
const setSubmitValue = (val) => {
|
|
80
|
+
submitValue.value = val;
|
|
81
|
+
};
|
|
82
|
+
const triggerSubmit = (nextValue) => {
|
|
83
|
+
const { generateConfig, locale, picker, onChange, allowEmpty, order } = info.value;
|
|
84
|
+
const isNullValue = nextValue === null;
|
|
85
|
+
let clone = [...nextValue || submitValue.value];
|
|
86
|
+
if (isNullValue) {
|
|
87
|
+
const maxLen = Math.max(disabled.value.length, clone.length);
|
|
88
|
+
for (let i = 0; i < maxLen; i += 1) if (!disabled.value[i]) clone[i] = null;
|
|
89
|
+
}
|
|
90
|
+
if (orderOnChange.value && clone[0] && clone[1]) clone = orderDates(clone, generateConfig);
|
|
91
|
+
triggerCalendarChange(clone);
|
|
92
|
+
const [start, end] = clone;
|
|
93
|
+
const startEmpty = !start;
|
|
94
|
+
const endEmpty = !end;
|
|
95
|
+
const validateEmptyDateRange = allowEmpty ? (!startEmpty || allowEmpty[0]) && (!endEmpty || allowEmpty[1]) : true;
|
|
96
|
+
const validateOrder = !order || startEmpty || endEmpty || isSame(generateConfig, locale, start, end, picker) || generateConfig.isAfter(end, start);
|
|
97
|
+
const validateDates = (disabled.value[0] || !start || !isInvalidateDate(start, { activeIndex: 0 })) && (disabled.value[1] || !end || !isInvalidateDate(end, {
|
|
98
|
+
from: start,
|
|
99
|
+
activeIndex: 1
|
|
100
|
+
}));
|
|
101
|
+
const allPassed = isNullValue || validateEmptyDateRange && validateOrder && validateDates;
|
|
102
|
+
if (allPassed) {
|
|
103
|
+
setInnerValue(clone);
|
|
104
|
+
const [isSameMergedDates] = isSameDates(clone, mergedValue.value);
|
|
105
|
+
if (onChange && !isSameMergedDates) {
|
|
106
|
+
const everyEmpty = clone.every((val) => !val);
|
|
107
|
+
onChange(isNullValue && everyEmpty ? null : clone, everyEmpty ? null : getDateTexts(clone));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return allPassed;
|
|
111
|
+
};
|
|
112
|
+
const flushSubmit = (index, needTriggerChange) => {
|
|
113
|
+
setSubmitValue(fillIndex(submitValue.value, index, getCalendarValue()[index]));
|
|
114
|
+
if (needTriggerChange) triggerSubmit();
|
|
115
|
+
};
|
|
116
|
+
const interactiveFinished = computed(() => !focused.value && !open.value);
|
|
117
|
+
useLockEffect(computed(() => !interactiveFinished.value), (next) => {
|
|
118
|
+
if (next === false) {
|
|
119
|
+
if (!next) {
|
|
120
|
+
triggerSubmit();
|
|
121
|
+
triggerCalendarChange(mergedValue.value);
|
|
122
|
+
submitValue.value = mergedValue.value;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
return [flushSubmit, triggerSubmit];
|
|
127
|
+
}
|
|
128
|
+
export { useRangeValue as default, useInnerValue };
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
let vue = require("vue");
|
|
7
|
+
function useShowNow(picker, mode, showNow, showToday, rangePicker) {
|
|
8
|
+
return (0, vue.computed)(() => {
|
|
9
|
+
if (mode.value !== "date" && mode.value !== "time") return false;
|
|
10
|
+
if (showNow.value !== void 0) return showNow.value;
|
|
11
|
+
if (showToday.value !== void 0) return showToday.value;
|
|
12
|
+
return !rangePicker?.value && (picker.value === "date" || picker.value === "time");
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
exports.default = useShowNow;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { InternalMode, PanelMode } from '../../interface';
|
|
3
|
+
export default function useShowNow(picker: Ref<InternalMode>, mode: Ref<PanelMode>, showNow: Ref<boolean | undefined>, showToday: Ref<boolean | undefined>, rangePicker?: Ref<boolean | undefined>): import('vue').ComputedRef<boolean>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
function useShowNow(picker, mode, showNow, showToday, rangePicker) {
|
|
3
|
+
return computed(() => {
|
|
4
|
+
if (mode.value !== "date" && mode.value !== "time") return false;
|
|
5
|
+
if (showNow.value !== void 0) return showNow.value;
|
|
6
|
+
if (showToday.value !== void 0) return showToday.value;
|
|
7
|
+
return !rangePicker?.value && (picker.value === "date" || picker.value === "time");
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export { useShowNow as default };
|
|
@@ -0,0 +1,294 @@
|
|
|
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_dateUtil = require("../../utils/dateUtil.cjs");
|
|
7
|
+
const require_context = require("../context.cjs");
|
|
8
|
+
const require_PanelBody = require("../PanelBody.cjs");
|
|
9
|
+
const require_PanelHeader = require("../PanelHeader.cjs");
|
|
10
|
+
let vue = require("vue");
|
|
11
|
+
let _v_c_util = require("@v-c/util");
|
|
12
|
+
function _isSlot(s) {
|
|
13
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !(0, vue.isVNode)(s);
|
|
14
|
+
}
|
|
15
|
+
var DatePanel = /* @__PURE__ */ (0, vue.defineComponent)((props) => {
|
|
16
|
+
const sharedContext = require_context.useSharedPanelContext();
|
|
17
|
+
const panelContext = (0, vue.computed)(() => {
|
|
18
|
+
const [info] = require_context.useInfo(props, props.mode || "date", sharedContext);
|
|
19
|
+
return info;
|
|
20
|
+
});
|
|
21
|
+
require_context.providePanelContext(panelContext);
|
|
22
|
+
return () => {
|
|
23
|
+
const { prefixCls, panelName = "date", locale, generateConfig, pickerValue, onPickerValueChange, onModeChange, mode = "date", disabledDate, onSelect, onHover, showWeek } = props;
|
|
24
|
+
const panelPrefixCls = `${prefixCls}-${panelName}-panel`;
|
|
25
|
+
const cellPrefixCls = `${prefixCls}-cell`;
|
|
26
|
+
const isWeek = mode === "week";
|
|
27
|
+
const weekFirstDay = generateConfig?.locale?.getWeekFirstDay?.(locale.locale) ?? 0;
|
|
28
|
+
const monthStartDate = generateConfig?.setDate(pickerValue, 1);
|
|
29
|
+
const baseDate = require_dateUtil.getWeekStartDate(locale.locale, generateConfig, monthStartDate);
|
|
30
|
+
const month = generateConfig?.getMonth?.(pickerValue);
|
|
31
|
+
const cellDateFormat = locale?.cellDateFormat || locale?.dayFormat || "D";
|
|
32
|
+
const yearFormat = locale?.yearFormat || "YYYY";
|
|
33
|
+
const prefixColumn = (showWeek === void 0 ? isWeek : showWeek) ? (date) => {
|
|
34
|
+
const disabled = disabledDate?.(date, { type: "week" });
|
|
35
|
+
return (0, vue.createVNode)("td", {
|
|
36
|
+
"key": "week",
|
|
37
|
+
"class": (0, _v_c_util.clsx)(cellPrefixCls, `${cellPrefixCls}-week`, { [`${cellPrefixCls}-disabled`]: disabled }),
|
|
38
|
+
"onClick": () => {
|
|
39
|
+
if (!disabled) onSelect?.(date);
|
|
40
|
+
},
|
|
41
|
+
"onMouseenter": () => {
|
|
42
|
+
if (!disabled) onHover?.(date);
|
|
43
|
+
},
|
|
44
|
+
"onMouseleave": () => {
|
|
45
|
+
if (!disabled) onHover?.(null);
|
|
46
|
+
}
|
|
47
|
+
}, [(0, vue.createVNode)("div", { "class": `${cellPrefixCls}-inner` }, [generateConfig?.locale.getWeek?.(locale.locale, date)])]);
|
|
48
|
+
} : void 0;
|
|
49
|
+
const headerCells = [];
|
|
50
|
+
const weekDaysLocale = locale?.shortWeekDays || (generateConfig?.locale?.getShortWeekDays ? generateConfig.locale.getShortWeekDays(locale.locale) : []);
|
|
51
|
+
if (prefixColumn) headerCells.push((0, vue.createVNode)("th", { "key": "empty" }, [(0, vue.createVNode)("span", { "style": {
|
|
52
|
+
width: 0,
|
|
53
|
+
height: 0,
|
|
54
|
+
position: "absolute",
|
|
55
|
+
overflow: "hidden",
|
|
56
|
+
opacity: 0
|
|
57
|
+
} }, [locale.week])]));
|
|
58
|
+
for (let i = 0; i < 7; i += 1) headerCells.push((0, vue.createVNode)("th", { "key": i }, [weekDaysLocale[(i + weekFirstDay) % 7]]));
|
|
59
|
+
const getCellDate = (date, offset) => {
|
|
60
|
+
return generateConfig?.addDate?.(date, offset);
|
|
61
|
+
};
|
|
62
|
+
const getCellText = (date) => {
|
|
63
|
+
return require_dateUtil.formatValue(date, {
|
|
64
|
+
locale,
|
|
65
|
+
format: cellDateFormat,
|
|
66
|
+
generateConfig
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
const getCellClassName = (date) => {
|
|
70
|
+
const nowVal = panelContext.value.now;
|
|
71
|
+
return {
|
|
72
|
+
[`${prefixCls}-cell-in-view`]: require_dateUtil.isSameMonth(generateConfig, date, pickerValue),
|
|
73
|
+
[`${prefixCls}-cell-today`]: require_dateUtil.isSameDate(generateConfig, date, nowVal)
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
const monthsLocale = locale?.shortMonths || (generateConfig?.locale?.getShortMonths ? generateConfig.locale.getShortMonths?.(locale.locale) : []);
|
|
77
|
+
const yearNode = (0, vue.createVNode)("button", {
|
|
78
|
+
"type": "button",
|
|
79
|
+
"aria-label": locale?.yearSelect,
|
|
80
|
+
"key": "year",
|
|
81
|
+
"onClick": () => {
|
|
82
|
+
onModeChange?.("year", pickerValue);
|
|
83
|
+
},
|
|
84
|
+
"tabindex": -1,
|
|
85
|
+
"class": `${prefixCls}-year-btn`
|
|
86
|
+
}, [require_dateUtil.formatValue(pickerValue, {
|
|
87
|
+
locale,
|
|
88
|
+
format: yearFormat,
|
|
89
|
+
generateConfig
|
|
90
|
+
})]);
|
|
91
|
+
const monthNode = (0, vue.createVNode)("button", {
|
|
92
|
+
"type": "button",
|
|
93
|
+
"aria-label": locale?.monthSelect,
|
|
94
|
+
"key": "month",
|
|
95
|
+
"onClick": () => {
|
|
96
|
+
onModeChange?.("month", pickerValue);
|
|
97
|
+
},
|
|
98
|
+
"tabindex": -1,
|
|
99
|
+
"class": `${prefixCls}-month-btn`
|
|
100
|
+
}, [locale?.monthFormat ? require_dateUtil.formatValue(pickerValue, {
|
|
101
|
+
locale,
|
|
102
|
+
format: locale.monthFormat,
|
|
103
|
+
generateConfig
|
|
104
|
+
}) : monthsLocale[month]]);
|
|
105
|
+
const monthYearNodes = locale?.monthBeforeYear ? [monthNode, yearNode] : [yearNode, monthNode];
|
|
106
|
+
return (0, vue.createVNode)("div", { "class": (0, _v_c_util.clsx)(panelPrefixCls, showWeek && `${panelPrefixCls}-show-week`) }, [(0, vue.createVNode)(require_PanelHeader.default, {
|
|
107
|
+
"offset": (distance, date) => generateConfig?.addMonth?.(date, distance),
|
|
108
|
+
"superOffset": (distance, date) => generateConfig?.addYear?.(date, distance),
|
|
109
|
+
"onChange": onPickerValueChange,
|
|
110
|
+
"getStart": (date) => generateConfig?.setDate?.(date, 1),
|
|
111
|
+
"getEnd": (date) => {
|
|
112
|
+
let clone = generateConfig?.setDate?.(date, 1);
|
|
113
|
+
clone = generateConfig?.addMonth(clone, 1);
|
|
114
|
+
return generateConfig?.addDate(clone, -1);
|
|
115
|
+
}
|
|
116
|
+
}, _isSlot(monthYearNodes) ? monthYearNodes : { default: () => [monthYearNodes] }), (0, vue.createVNode)(require_PanelBody.default, (0, vue.mergeProps)(props, {
|
|
117
|
+
"titleFormat": locale?.fieldDateFormat,
|
|
118
|
+
"colNum": 7,
|
|
119
|
+
"rowNum": 6,
|
|
120
|
+
"baseDate": baseDate,
|
|
121
|
+
"headerCells": headerCells,
|
|
122
|
+
"getCellDate": getCellDate,
|
|
123
|
+
"getCellText": getCellText,
|
|
124
|
+
"getCellClassName": getCellClassName,
|
|
125
|
+
"prefixColumn": prefixColumn,
|
|
126
|
+
"cellSelection": !isWeek
|
|
127
|
+
}), null)]);
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
props: {
|
|
131
|
+
panelName: {
|
|
132
|
+
type: String,
|
|
133
|
+
required: false,
|
|
134
|
+
default: void 0
|
|
135
|
+
},
|
|
136
|
+
rowClassName: {
|
|
137
|
+
type: Function,
|
|
138
|
+
required: false,
|
|
139
|
+
default: void 0
|
|
140
|
+
},
|
|
141
|
+
mode: {
|
|
142
|
+
type: String,
|
|
143
|
+
required: false,
|
|
144
|
+
default: void 0
|
|
145
|
+
},
|
|
146
|
+
cellSelection: {
|
|
147
|
+
type: Boolean,
|
|
148
|
+
required: false,
|
|
149
|
+
default: void 0
|
|
150
|
+
},
|
|
151
|
+
prefixCls: {
|
|
152
|
+
type: String,
|
|
153
|
+
required: true,
|
|
154
|
+
default: void 0
|
|
155
|
+
},
|
|
156
|
+
locale: {
|
|
157
|
+
type: Object,
|
|
158
|
+
required: false,
|
|
159
|
+
default: void 0
|
|
160
|
+
},
|
|
161
|
+
generateConfig: {
|
|
162
|
+
type: Object,
|
|
163
|
+
required: false,
|
|
164
|
+
default: void 0
|
|
165
|
+
},
|
|
166
|
+
pickerValue: {
|
|
167
|
+
required: true,
|
|
168
|
+
default: void 0
|
|
169
|
+
},
|
|
170
|
+
onPickerValueChange: {
|
|
171
|
+
type: Function,
|
|
172
|
+
required: true,
|
|
173
|
+
default: void 0
|
|
174
|
+
},
|
|
175
|
+
value: {
|
|
176
|
+
required: false,
|
|
177
|
+
default: void 0
|
|
178
|
+
},
|
|
179
|
+
onSelect: {
|
|
180
|
+
type: Function,
|
|
181
|
+
required: true,
|
|
182
|
+
default: void 0
|
|
183
|
+
},
|
|
184
|
+
values: {
|
|
185
|
+
type: Array,
|
|
186
|
+
required: false,
|
|
187
|
+
default: void 0
|
|
188
|
+
},
|
|
189
|
+
onModeChange: {
|
|
190
|
+
type: Function,
|
|
191
|
+
required: true,
|
|
192
|
+
default: void 0
|
|
193
|
+
},
|
|
194
|
+
disabledDate: {
|
|
195
|
+
type: Function,
|
|
196
|
+
required: false,
|
|
197
|
+
default: void 0
|
|
198
|
+
},
|
|
199
|
+
minDate: {
|
|
200
|
+
required: false,
|
|
201
|
+
default: void 0
|
|
202
|
+
},
|
|
203
|
+
maxDate: {
|
|
204
|
+
required: false,
|
|
205
|
+
default: void 0
|
|
206
|
+
},
|
|
207
|
+
cellRender: {
|
|
208
|
+
type: Function,
|
|
209
|
+
required: false,
|
|
210
|
+
default: void 0
|
|
211
|
+
},
|
|
212
|
+
hoverRangeValue: {
|
|
213
|
+
type: [Array, null],
|
|
214
|
+
required: true,
|
|
215
|
+
default: void 0
|
|
216
|
+
},
|
|
217
|
+
hoverValue: {
|
|
218
|
+
type: [Array, null],
|
|
219
|
+
required: false,
|
|
220
|
+
default: void 0
|
|
221
|
+
},
|
|
222
|
+
onHover: {
|
|
223
|
+
type: Function,
|
|
224
|
+
required: false,
|
|
225
|
+
default: void 0
|
|
226
|
+
},
|
|
227
|
+
showTime: {
|
|
228
|
+
type: Object,
|
|
229
|
+
required: false,
|
|
230
|
+
default: void 0
|
|
231
|
+
},
|
|
232
|
+
showWeek: {
|
|
233
|
+
type: Boolean,
|
|
234
|
+
required: false,
|
|
235
|
+
default: void 0
|
|
236
|
+
},
|
|
237
|
+
prevIcon: {
|
|
238
|
+
type: [
|
|
239
|
+
Object,
|
|
240
|
+
Function,
|
|
241
|
+
String,
|
|
242
|
+
Number,
|
|
243
|
+
null,
|
|
244
|
+
Boolean,
|
|
245
|
+
Array
|
|
246
|
+
],
|
|
247
|
+
required: false,
|
|
248
|
+
default: void 0
|
|
249
|
+
},
|
|
250
|
+
nextIcon: {
|
|
251
|
+
type: [
|
|
252
|
+
Object,
|
|
253
|
+
Function,
|
|
254
|
+
String,
|
|
255
|
+
Number,
|
|
256
|
+
null,
|
|
257
|
+
Boolean,
|
|
258
|
+
Array
|
|
259
|
+
],
|
|
260
|
+
required: false,
|
|
261
|
+
default: void 0
|
|
262
|
+
},
|
|
263
|
+
superPrevIcon: {
|
|
264
|
+
type: [
|
|
265
|
+
Object,
|
|
266
|
+
Function,
|
|
267
|
+
String,
|
|
268
|
+
Number,
|
|
269
|
+
null,
|
|
270
|
+
Boolean,
|
|
271
|
+
Array
|
|
272
|
+
],
|
|
273
|
+
required: false,
|
|
274
|
+
default: void 0
|
|
275
|
+
},
|
|
276
|
+
superNextIcon: {
|
|
277
|
+
type: [
|
|
278
|
+
Object,
|
|
279
|
+
Function,
|
|
280
|
+
String,
|
|
281
|
+
Number,
|
|
282
|
+
null,
|
|
283
|
+
Boolean,
|
|
284
|
+
Array
|
|
285
|
+
],
|
|
286
|
+
required: false,
|
|
287
|
+
default: void 0
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
name: "DatePanel",
|
|
291
|
+
inheritAttrs: false
|
|
292
|
+
});
|
|
293
|
+
var DatePanel_default = DatePanel;
|
|
294
|
+
exports.default = DatePanel_default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PanelMode, SharedPanelProps } from '../../interface';
|
|
2
|
+
export interface DatePanelProps<DateType extends object = any> extends SharedPanelProps<DateType> {
|
|
3
|
+
panelName?: PanelMode;
|
|
4
|
+
rowClassName?: (date: DateType) => string;
|
|
5
|
+
mode?: PanelMode;
|
|
6
|
+
cellSelection?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const DatePanel: import('vue').DefineSetupFnComponent<DatePanelProps<any>, {}, {}, DatePanelProps<any> & {}, import('vue').PublicProps>;
|
|
9
|
+
export default DatePanel;
|