@element-plus/nightly 0.0.20220117 → 0.0.20220118
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +2196 -3407
- package/dist/index.full.min.js +8 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2189 -3403
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/alert/index.d.ts +5 -5
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +5 -5
- package/es/components/avatar/index.d.ts +1 -1
- package/es/components/avatar/src/avatar.d.ts +3 -1
- package/es/components/avatar/src/avatar.mjs +1 -1
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar.vue.d.ts +1 -1
- package/es/components/avatar/src/avatar.vue_vue_type_script_lang.mjs +13 -8
- package/es/components/avatar/src/avatar.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/avatar/src/avatar.vue_vue_type_template_id_46e3f365_lang.mjs.map +1 -1
- package/es/components/button/index.d.ts +6 -0
- package/es/components/button/src/button-group.vue.d.ts +2 -0
- package/es/components/button/src/button.vue.d.ts +2 -0
- package/es/components/card/index.d.ts +13 -1
- package/es/components/card/src/card.d.ts +2 -0
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card.vue.d.ts +13 -1
- package/es/components/card/src/card.vue_vue_type_script_lang.mjs +9 -1
- package/es/components/card/src/card.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/card/src/card.vue_vue_type_template_id_7a6bdf05_lang.mjs +8 -9
- package/es/components/card/src/card.vue_vue_type_template_id_7a6bdf05_lang.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +38 -34
- package/es/components/cascader/src/index.vue.d.ts +19 -17
- package/es/components/check-tag/index.d.ts +21 -9
- package/es/components/check-tag/index.mjs +3 -2
- package/es/components/check-tag/index.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.d.ts +12 -0
- package/es/components/check-tag/src/check-tag.mjs +16 -0
- package/es/components/check-tag/src/check-tag.mjs.map +1 -0
- package/es/components/check-tag/src/check-tag.vue.d.ts +29 -0
- package/es/components/check-tag/src/check-tag.vue_vue_type_script_lang.mjs +25 -0
- package/es/components/check-tag/src/check-tag.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/check-tag/src/{index.vue_vue_type_template_id_58558910_lang.mjs → check-tag.vue_vue_type_template_id_d949910a_lang.mjs} +2 -5
- package/es/components/check-tag/src/check-tag.vue_vue_type_template_id_d949910a_lang.mjs.map +1 -0
- package/es/components/check-tag/src/check-tag2.mjs +7 -0
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -0
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +2 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.mjs +10 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_template_id_78e07aa7_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.mjs +12 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_template_id_62b45ab2_lang.mjs.map +1 -1
- package/es/components/descriptions/index.d.ts +4 -4
- package/es/components/descriptions/src/index.vue.d.ts +4 -4
- package/es/components/divider/index.d.ts +14 -1
- package/es/components/divider/src/divider.d.ts +2 -0
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider.vue.d.ts +15 -1
- package/es/components/divider/src/divider.vue_vue_type_script_lang.mjs +16 -2
- package/es/components/divider/src/divider.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/divider/src/divider.vue_vue_type_template_id_6ddd3543_lang.mjs +3 -3
- package/es/components/divider/src/divider.vue_vue_type_template_id_6ddd3543_lang.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +13 -11
- package/es/components/dropdown/src/dropdown.vue.d.ts +13 -11
- package/es/components/empty/index.d.ts +11 -0
- package/es/components/empty/src/empty.d.ts +2 -0
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty.vue.d.ts +11 -0
- package/es/components/empty/src/empty.vue_vue_type_script_lang.mjs +3 -0
- package/es/components/empty/src/empty.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.mjs +20 -19
- package/es/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.mjs.map +1 -1
- package/es/components/icon/index.d.ts +11 -0
- package/es/components/icon/src/icon.d.ts +2 -0
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon.vue.d.ts +11 -0
- package/es/components/icon/src/icon.vue_vue_type_script_lang.mjs +14 -15
- package/es/components/icon/src/icon.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/icon/src/icon.vue_vue_type_template_id_89b755b6_lang.mjs +1 -1
- package/es/components/icon/src/icon.vue_vue_type_template_id_89b755b6_lang.mjs.map +1 -1
- package/es/components/image/src/image.vue_vue_type_script_lang.mjs +14 -3
- package/es/components/image/src/image.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/image/src/image.vue_vue_type_template_id_34467287_lang.mjs.map +1 -1
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/input-number/src/input-number.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue_vue_type_template_id_dec60af6_lang.mjs.map +1 -1
- package/es/components/link/index.d.ts +11 -0
- package/es/components/link/src/link.d.ts +2 -0
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link.vue.d.ts +11 -0
- package/es/components/link/src/link.vue_vue_type_script_lang.mjs +4 -0
- package/es/components/link/src/link.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/link/src/link.vue_vue_type_template_id_6a422645_lang.mjs +7 -8
- package/es/components/link/src/link.vue_vue_type_template_id_6a422645_lang.mjs.map +1 -1
- package/es/components/menu/index.d.ts +2 -2
- package/es/components/menu/src/menu.d.ts +2 -2
- package/es/components/pagination/index.d.ts +2 -2
- package/es/components/pagination/src/pagination.d.ts +2 -2
- package/es/components/popover/index.d.ts +32 -26
- package/es/components/popover/src/index.vue.d.ts +16 -13
- package/es/components/popover/src/index.vue_vue_type_script_lang.mjs +6 -1
- package/es/components/popover/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.mjs.map +1 -1
- package/es/components/rate/index.d.ts +11 -0
- package/es/components/rate/src/rate.d.ts +2 -0
- package/es/components/rate/src/rate.mjs +1 -1
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +11 -0
- package/es/components/rate/src/rate.vue_vue_type_script_lang.mjs +7 -5
- package/es/components/rate/src/rate.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/rate/src/rate.vue_vue_type_template_id_38c42df6_lang.mjs +7 -7
- package/es/components/rate/src/rate.vue_vue_type_template_id_38c42df6_lang.mjs.map +1 -1
- package/es/components/result/index.d.ts +11 -0
- package/es/components/result/src/result.d.ts +2 -0
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result.vue.d.ts +11 -0
- package/es/components/result/src/result.vue_vue_type_script_lang.mjs +4 -0
- package/es/components/result/src/result.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/result/src/result.vue_vue_type_template_id_263c10e5_lang.mjs +24 -25
- package/es/components/result/src/result.vue_vue_type_template_id_263c10e5_lang.mjs.map +1 -1
- package/es/components/row/index.d.ts +3 -3
- package/es/components/row/src/row.d.ts +7 -6
- package/es/components/row/src/row.mjs +9 -6
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/scrollbar/index.d.ts +2 -2
- package/es/components/scrollbar/src/bar.vue_vue_type_script_lang.mjs +11 -4
- package/es/components/scrollbar/src/bar.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.vue_vue_type_template_id_2f63f10a_lang.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/es/components/select/index.d.ts +15 -13
- package/es/components/select/src/select.vue.d.ts +15 -13
- package/es/components/select/src/useSelect.d.ts +13 -11
- package/es/components/select-v2/index.d.ts +38 -28
- package/es/components/select-v2/src/defaults.d.ts +4 -1
- package/es/components/select-v2/src/defaults.mjs +4 -1
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +19 -14
- package/es/components/select-v2/src/useSelect.d.ts +13 -11
- package/es/components/select-v2/src/useSelect.mjs +1 -1
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/space/index.d.ts +2 -2
- package/es/components/space/src/space.d.ts +2 -2
- package/es/components/steps/index.d.ts +2 -2
- package/es/components/steps/src/index.vue.d.ts +2 -2
- package/es/components/switch/index.d.ts +11 -0
- package/es/components/switch/src/switch.vue.d.ts +11 -0
- package/es/components/switch/src/switch.vue_vue_type_script_lang.mjs +5 -3
- package/es/components/switch/src/switch.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/switch/src/switch.vue_vue_type_template_id_538fbc85_lang.mjs +21 -21
- package/es/components/switch/src/switch.vue_vue_type_template_id_538fbc85_lang.mjs.map +1 -1
- package/es/components/table/index.d.ts +2 -2
- package/es/components/table/src/filter-panel.vue.d.ts +13 -11
- package/es/components/table/src/store/index.mjs +1 -1
- package/es/components/table/src/store/index.mjs.map +1 -1
- package/es/components/table/src/store/watcher.mjs +0 -5
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +2 -2
- package/es/components/table/src/util.mjs +1 -1
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/tag/index.d.ts +3 -3
- package/es/components/tag/src/tag.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +3 -3
- package/es/components/time-picker/src/common/picker.vue.d.ts +16 -12
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs +12 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs +5 -4
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_lang.mjs +10 -10
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_template_id_4fb3c576_lang.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_template_id_4fb3c576_lang.mjs.map +1 -1
- package/es/components/timeline/index.d.ts +78 -106
- package/es/components/timeline/index.mjs +7 -7
- package/es/components/timeline/index.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item.d.ts +15 -0
- package/es/components/timeline/src/timeline-item.mjs +43 -0
- package/es/components/timeline/src/timeline-item.mjs.map +1 -0
- package/es/components/timeline/src/timeline-item.vue.d.ts +54 -0
- package/es/components/timeline/src/timeline-item.vue_vue_type_script_lang.mjs +22 -0
- package/es/components/timeline/src/timeline-item.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/timeline/src/timeline-item.vue_vue_type_template_id_1db6c36b_lang.mjs +60 -0
- package/es/components/timeline/src/timeline-item.vue_vue_type_template_id_1db6c36b_lang.mjs.map +1 -0
- package/es/components/timeline/src/timeline-item2.mjs +7 -0
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -0
- package/es/components/timeline/src/{index.vue.d.ts → timeline.d.ts} +3 -2
- package/es/components/timeline/src/timeline.mjs +17 -0
- package/es/components/timeline/src/timeline.mjs.map +1 -0
- package/es/components/tooltip/index.d.ts +5 -4
- package/es/components/tooltip/src/content.vue.d.ts +4 -4
- package/es/components/tooltip/src/tooltip.vue.d.ts +5 -4
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_lang.mjs +1 -0
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/es/hooks/use-namespace/index.d.ts +2 -0
- package/es/hooks/use-namespace/index.mjs +16 -11
- package/es/hooks/use-namespace/index.mjs.map +1 -1
- package/es/index.mjs +2 -0
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.d.ts +5 -5
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +5 -5
- package/lib/components/avatar/index.d.ts +1 -1
- package/lib/components/avatar/src/avatar.d.ts +3 -1
- package/lib/components/avatar/src/avatar.js +1 -1
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
- package/lib/components/avatar/src/avatar.vue_vue_type_script_lang.js +13 -8
- package/lib/components/avatar/src/avatar.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/avatar/src/avatar.vue_vue_type_template_id_46e3f365_lang.js.map +1 -1
- package/lib/components/button/index.d.ts +6 -0
- package/lib/components/button/src/button-group.vue.d.ts +2 -0
- package/lib/components/button/src/button.vue.d.ts +2 -0
- package/lib/components/card/index.d.ts +13 -1
- package/lib/components/card/src/card.d.ts +2 -0
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card.vue.d.ts +13 -1
- package/lib/components/card/src/card.vue_vue_type_script_lang.js +9 -1
- package/lib/components/card/src/card.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/card/src/card.vue_vue_type_template_id_7a6bdf05_lang.js +8 -9
- package/lib/components/card/src/card.vue_vue_type_template_id_7a6bdf05_lang.js.map +1 -1
- package/lib/components/cascader/index.d.ts +38 -34
- package/lib/components/cascader/src/index.vue.d.ts +19 -17
- package/lib/components/check-tag/index.d.ts +21 -9
- package/lib/components/check-tag/index.js +6 -3
- package/lib/components/check-tag/index.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.d.ts +12 -0
- package/lib/components/check-tag/src/check-tag.js +21 -0
- package/lib/components/check-tag/src/check-tag.js.map +1 -0
- package/lib/components/check-tag/src/check-tag.vue.d.ts +29 -0
- package/lib/components/check-tag/src/{index.vue_vue_type_script_lang.js → check-tag.vue_vue_type_script_lang.js} +8 -10
- package/lib/components/check-tag/src/check-tag.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/check-tag/src/{index.vue_vue_type_template_id_58558910_lang.js → check-tag.vue_vue_type_template_id_d949910a_lang.js} +2 -5
- package/lib/components/check-tag/src/check-tag.vue_vue_type_template_id_d949910a_lang.js.map +1 -0
- package/lib/components/check-tag/src/check-tag2.js +12 -0
- package/lib/components/check-tag/src/check-tag2.js.map +1 -0
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +2 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.js +10 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_template_id_78e07aa7_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.js +12 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue_vue_type_template_id_62b45ab2_lang.js.map +1 -1
- package/lib/components/descriptions/index.d.ts +4 -4
- package/lib/components/descriptions/src/index.vue.d.ts +4 -4
- package/lib/components/divider/index.d.ts +14 -1
- package/lib/components/divider/src/divider.d.ts +2 -0
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +15 -1
- package/lib/components/divider/src/divider.vue_vue_type_script_lang.js +15 -1
- package/lib/components/divider/src/divider.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/divider/src/divider.vue_vue_type_template_id_6ddd3543_lang.js +3 -3
- package/lib/components/divider/src/divider.vue_vue_type_template_id_6ddd3543_lang.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +13 -11
- package/lib/components/dropdown/src/dropdown.vue.d.ts +13 -11
- package/lib/components/empty/index.d.ts +11 -0
- package/lib/components/empty/src/empty.d.ts +2 -0
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty.vue.d.ts +11 -0
- package/lib/components/empty/src/empty.vue_vue_type_script_lang.js +3 -0
- package/lib/components/empty/src/empty.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.js +19 -18
- package/lib/components/empty/src/empty.vue_vue_type_template_id_10d211eb_lang.js.map +1 -1
- package/lib/components/icon/index.d.ts +11 -0
- package/lib/components/icon/src/icon.d.ts +2 -0
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon.vue.d.ts +11 -0
- package/lib/components/icon/src/icon.vue_vue_type_script_lang.js +13 -14
- package/lib/components/icon/src/icon.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/icon/src/icon.vue_vue_type_template_id_89b755b6_lang.js +1 -1
- package/lib/components/icon/src/icon.vue_vue_type_template_id_89b755b6_lang.js.map +1 -1
- package/lib/components/image/src/image.vue_vue_type_script_lang.js +14 -3
- package/lib/components/image/src/image.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/image/src/image.vue_vue_type_template_id_34467287_lang.js.map +1 -1
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue_vue_type_script_lang.js +1 -1
- package/lib/components/input-number/src/input-number.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue_vue_type_template_id_dec60af6_lang.js.map +1 -1
- package/lib/components/link/index.d.ts +11 -0
- package/lib/components/link/src/link.d.ts +2 -0
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link.vue.d.ts +11 -0
- package/lib/components/link/src/link.vue_vue_type_script_lang.js +4 -0
- package/lib/components/link/src/link.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/link/src/link.vue_vue_type_template_id_6a422645_lang.js +7 -8
- package/lib/components/link/src/link.vue_vue_type_template_id_6a422645_lang.js.map +1 -1
- package/lib/components/menu/index.d.ts +2 -2
- package/lib/components/menu/src/menu.d.ts +2 -2
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/src/pagination.d.ts +2 -2
- package/lib/components/popover/index.d.ts +32 -26
- package/lib/components/popover/src/index.vue.d.ts +16 -13
- package/lib/components/popover/src/index.vue_vue_type_script_lang.js +6 -1
- package/lib/components/popover/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.js.map +1 -1
- package/lib/components/rate/index.d.ts +11 -0
- package/lib/components/rate/src/rate.d.ts +2 -0
- package/lib/components/rate/src/rate.js +1 -1
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +11 -0
- package/lib/components/rate/src/rate.vue_vue_type_script_lang.js +7 -5
- package/lib/components/rate/src/rate.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/rate/src/rate.vue_vue_type_template_id_38c42df6_lang.js +7 -7
- package/lib/components/rate/src/rate.vue_vue_type_template_id_38c42df6_lang.js.map +1 -1
- package/lib/components/result/index.d.ts +11 -0
- package/lib/components/result/src/result.d.ts +2 -0
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result.vue.d.ts +11 -0
- package/lib/components/result/src/result.vue_vue_type_script_lang.js +4 -0
- package/lib/components/result/src/result.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/result/src/result.vue_vue_type_template_id_263c10e5_lang.js +23 -24
- package/lib/components/result/src/result.vue_vue_type_template_id_263c10e5_lang.js.map +1 -1
- package/lib/components/row/index.d.ts +3 -3
- package/lib/components/row/src/row.d.ts +7 -6
- package/lib/components/row/src/row.js +9 -6
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/scrollbar/index.d.ts +2 -2
- package/lib/components/scrollbar/src/bar.vue_vue_type_script_lang.js +10 -3
- package/lib/components/scrollbar/src/bar.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/scrollbar/src/bar.vue_vue_type_template_id_2f63f10a_lang.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/lib/components/select/index.d.ts +15 -13
- package/lib/components/select/src/select.vue.d.ts +15 -13
- package/lib/components/select/src/useSelect.d.ts +13 -11
- package/lib/components/select-v2/index.d.ts +38 -28
- package/lib/components/select-v2/src/defaults.d.ts +4 -1
- package/lib/components/select-v2/src/defaults.js +4 -1
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +19 -14
- package/lib/components/select-v2/src/useSelect.d.ts +13 -11
- package/lib/components/select-v2/src/useSelect.js +1 -1
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/space/index.d.ts +2 -2
- package/lib/components/space/src/space.d.ts +2 -2
- package/lib/components/steps/index.d.ts +2 -2
- package/lib/components/steps/src/index.vue.d.ts +2 -2
- package/lib/components/switch/index.d.ts +11 -0
- package/lib/components/switch/src/switch.vue.d.ts +11 -0
- package/lib/components/switch/src/switch.vue_vue_type_script_lang.js +5 -3
- package/lib/components/switch/src/switch.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/switch/src/switch.vue_vue_type_template_id_538fbc85_lang.js +21 -21
- package/lib/components/switch/src/switch.vue_vue_type_template_id_538fbc85_lang.js.map +1 -1
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/src/filter-panel.vue.d.ts +13 -11
- package/lib/components/table/src/store/index.js +1 -1
- package/lib/components/table/src/store/index.js.map +1 -1
- package/lib/components/table/src/store/watcher.js +0 -5
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +2 -2
- package/lib/components/table/src/util.js +1 -1
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/tag/index.d.ts +3 -3
- package/lib/components/tag/src/tag.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +3 -3
- package/lib/components/time-picker/src/common/picker.vue.d.ts +16 -12
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js +12 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js +5 -4
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_lang.js +10 -10
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_template_id_4fb3c576_lang.js +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_template_id_4fb3c576_lang.js.map +1 -1
- package/lib/components/timeline/index.d.ts +78 -106
- package/lib/components/timeline/index.js +8 -7
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/src/timeline-item.d.ts +15 -0
- package/lib/components/timeline/src/timeline-item.js +47 -0
- package/lib/components/timeline/src/timeline-item.js.map +1 -0
- package/lib/components/timeline/src/timeline-item.vue.d.ts +54 -0
- package/lib/components/timeline/src/timeline-item.vue_vue_type_script_lang.js +26 -0
- package/lib/components/timeline/src/timeline-item.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/timeline/src/timeline-item.vue_vue_type_template_id_1db6c36b_lang.js +64 -0
- package/lib/components/timeline/src/timeline-item.vue_vue_type_template_id_1db6c36b_lang.js.map +1 -0
- package/lib/components/timeline/src/timeline-item2.js +12 -0
- package/lib/components/timeline/src/timeline-item2.js.map +1 -0
- package/lib/components/timeline/src/{index.vue.d.ts → timeline.d.ts} +3 -2
- package/lib/components/timeline/src/timeline.js +21 -0
- package/lib/components/timeline/src/timeline.js.map +1 -0
- package/lib/components/tooltip/index.d.ts +5 -4
- package/lib/components/tooltip/src/content.vue.d.ts +4 -4
- package/lib/components/tooltip/src/tooltip.vue.d.ts +5 -4
- package/lib/components/tooltip/src/tooltip.vue_vue_type_script_lang.js +1 -0
- package/lib/components/tooltip/src/tooltip.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/lib/hooks/use-namespace/index.d.ts +2 -0
- package/lib/hooks/use-namespace/index.js +16 -15
- package/lib/hooks/use-namespace/index.js.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-popper.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/popper.scss +1 -1
- package/web-types.json +1 -1
- package/es/components/check-tag/src/index.mjs +0 -7
- package/es/components/check-tag/src/index.mjs.map +0 -1
- package/es/components/check-tag/src/index.vue.d.ts +0 -26
- package/es/components/check-tag/src/index.vue_vue_type_script_lang.mjs +0 -26
- package/es/components/check-tag/src/index.vue_vue_type_script_lang.mjs.map +0 -1
- package/es/components/check-tag/src/index.vue_vue_type_template_id_58558910_lang.mjs.map +0 -1
- package/es/components/timeline/src/index.mjs +0 -5
- package/es/components/timeline/src/index.mjs.map +0 -1
- package/es/components/timeline/src/index.vue_vue_type_script_lang.mjs +0 -17
- package/es/components/timeline/src/index.vue_vue_type_script_lang.mjs.map +0 -1
- package/es/components/timeline/src/item.mjs +0 -7
- package/es/components/timeline/src/item.mjs.map +0 -1
- package/es/components/timeline/src/item.vue.d.ts +0 -70
- package/es/components/timeline/src/item.vue_vue_type_script_lang.mjs +0 -53
- package/es/components/timeline/src/item.vue_vue_type_script_lang.mjs.map +0 -1
- package/es/components/timeline/src/item.vue_vue_type_template_id_174d5b12_lang.mjs +0 -59
- package/es/components/timeline/src/item.vue_vue_type_template_id_174d5b12_lang.mjs.map +0 -1
- package/lib/components/check-tag/src/index.js +0 -13
- package/lib/components/check-tag/src/index.js.map +0 -1
- package/lib/components/check-tag/src/index.vue.d.ts +0 -26
- package/lib/components/check-tag/src/index.vue_vue_type_script_lang.js.map +0 -1
- package/lib/components/check-tag/src/index.vue_vue_type_template_id_58558910_lang.js.map +0 -1
- package/lib/components/timeline/src/index.js +0 -10
- package/lib/components/timeline/src/index.js.map +0 -1
- package/lib/components/timeline/src/index.vue_vue_type_script_lang.js +0 -21
- package/lib/components/timeline/src/index.vue_vue_type_script_lang.js.map +0 -1
- package/lib/components/timeline/src/item.js +0 -12
- package/lib/components/timeline/src/item.js.map +0 -1
- package/lib/components/timeline/src/item.vue.d.ts +0 -70
- package/lib/components/timeline/src/item.vue_vue_type_script_lang.js +0 -57
- package/lib/components/timeline/src/item.vue_vue_type_script_lang.js.map +0 -1
- package/lib/components/timeline/src/item.vue_vue_type_template_id_174d5b12_lang.js +0 -63
- package/lib/components/timeline/src/item.vue_vue_type_template_id_174d5b12_lang.js.map +0 -1
|
@@ -62,9 +62,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
style: import("vue").StyleValue;
|
|
63
63
|
transition: string;
|
|
64
64
|
offset: number;
|
|
65
|
-
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
66
|
-
content: string;
|
|
67
65
|
effect: string;
|
|
66
|
+
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
68
67
|
arrowOffset: number;
|
|
69
68
|
boundariesPadding: number;
|
|
70
69
|
fallbackPlacements: import("element-plus/es/components/popper").Placement[];
|
|
@@ -127,6 +126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
126
|
popperStyle: import("vue").StyleValue;
|
|
128
127
|
referenceEl: HTMLElement;
|
|
129
128
|
stopPopperMouseEvent: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
129
|
+
content: string;
|
|
130
130
|
showAfter: number;
|
|
131
131
|
hideAfter: number;
|
|
132
132
|
appendTo: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -180,9 +180,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
180
180
|
style: import("vue").StyleValue;
|
|
181
181
|
transition: string;
|
|
182
182
|
offset: number;
|
|
183
|
-
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
184
|
-
content: string;
|
|
185
183
|
effect: string;
|
|
184
|
+
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
186
185
|
arrowOffset: number;
|
|
187
186
|
boundariesPadding: number;
|
|
188
187
|
fallbackPlacements: import("element-plus/es/components/popper").Placement[];
|
|
@@ -245,6 +244,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
245
244
|
popperStyle: import("vue").StyleValue;
|
|
246
245
|
referenceEl: HTMLElement;
|
|
247
246
|
stopPopperMouseEvent: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
247
|
+
content: string;
|
|
248
248
|
showAfter: number;
|
|
249
249
|
hideAfter: number;
|
|
250
250
|
appendTo: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -262,7 +262,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
262
|
virtualTriggering?: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown> | undefined;
|
|
263
263
|
}> & {
|
|
264
264
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
265
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "style" | "transition" | "offset" | "
|
|
265
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "style" | "transition" | "offset" | "effect" | "visible" | "arrowOffset" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "placement" | "popperOptions" | "strategy" | "className" | "enterable" | "pure" | "popperClass" | "popperStyle" | "referenceEl" | "stopPopperMouseEvent" | "content" | "showAfter" | "hideAfter" | "appendTo" | "rawContent" | "persistent" | "teleported" | "trigger" | "virtualRef" | "virtualTriggering" | "openDelay" | "visibleArrow" | "showArrow">;
|
|
266
266
|
$attrs: {
|
|
267
267
|
[x: string]: unknown;
|
|
268
268
|
};
|
|
@@ -317,9 +317,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
317
317
|
style: import("vue").StyleValue;
|
|
318
318
|
transition: string;
|
|
319
319
|
offset: number;
|
|
320
|
-
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
321
|
-
content: string;
|
|
322
320
|
effect: string;
|
|
321
|
+
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
323
322
|
arrowOffset: number;
|
|
324
323
|
boundariesPadding: number;
|
|
325
324
|
fallbackPlacements: import("element-plus/es/components/popper").Placement[];
|
|
@@ -382,6 +381,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
382
381
|
popperStyle: import("vue").StyleValue;
|
|
383
382
|
referenceEl: HTMLElement;
|
|
384
383
|
stopPopperMouseEvent: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
384
|
+
content: string;
|
|
385
385
|
showAfter: number;
|
|
386
386
|
hideAfter: number;
|
|
387
387
|
appendTo: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -441,6 +441,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
441
441
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
442
442
|
} & Readonly<{} & {} & {}> & import("vue").ShallowUnwrapRef<import("element-plus/es/components/popper").ElPopperInjectionContext> & {} & {} & import("vue").ComponentCustomProperties) | null>;
|
|
443
443
|
open: Ref<boolean>;
|
|
444
|
+
hide: () => void;
|
|
444
445
|
updatePopper: () => void;
|
|
445
446
|
onOpen: () => void;
|
|
446
447
|
onClose: () => void;
|
|
@@ -449,9 +450,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
449
450
|
style: import("vue").StyleValue;
|
|
450
451
|
transition: string;
|
|
451
452
|
offset: number;
|
|
452
|
-
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
453
|
-
content: string;
|
|
454
453
|
effect: string;
|
|
454
|
+
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
455
455
|
arrowOffset: number;
|
|
456
456
|
boundariesPadding: number;
|
|
457
457
|
fallbackPlacements: import("element-plus/es/components/popper").Placement[];
|
|
@@ -514,6 +514,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
514
514
|
popperStyle: import("vue").StyleValue;
|
|
515
515
|
referenceEl: HTMLElement;
|
|
516
516
|
stopPopperMouseEvent: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
517
|
+
content: string;
|
|
517
518
|
showAfter: number;
|
|
518
519
|
hideAfter: number;
|
|
519
520
|
appendTo: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -587,9 +588,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
587
588
|
style: import("vue").StyleValue;
|
|
588
589
|
transition: string;
|
|
589
590
|
offset: number;
|
|
590
|
-
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
591
|
-
content: string;
|
|
592
591
|
effect: string;
|
|
592
|
+
visible: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<boolean | null>, unknown, unknown>;
|
|
593
593
|
arrowOffset: number;
|
|
594
594
|
boundariesPadding: number;
|
|
595
595
|
fallbackPlacements: import("element-plus/es/components/popper").Placement[];
|
|
@@ -652,6 +652,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
652
652
|
popperStyle: import("vue").StyleValue;
|
|
653
653
|
referenceEl: HTMLElement;
|
|
654
654
|
stopPopperMouseEvent: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
655
|
+
content: string;
|
|
655
656
|
showAfter: number;
|
|
656
657
|
hideAfter: number;
|
|
657
658
|
appendTo: import("../../../utils/props").BuildPropType<import("../../../utils/props").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
@@ -711,6 +712,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
711
712
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
712
713
|
} & Readonly<{} & {} & {}> & import("vue").ShallowUnwrapRef<import("element-plus/es/components/popper").ElPopperInjectionContext> & {} & {} & import("vue").ComponentCustomProperties) | null>;
|
|
713
714
|
open: Ref<boolean>;
|
|
715
|
+
hide: () => void;
|
|
714
716
|
updatePopper: () => void;
|
|
715
717
|
onOpen: () => void;
|
|
716
718
|
onClose: () => void;
|
|
@@ -1412,8 +1414,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1412
1414
|
$data: {};
|
|
1413
1415
|
$props: Partial<{
|
|
1414
1416
|
height: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1415
|
-
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1416
1417
|
maxHeight: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1418
|
+
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1417
1419
|
native: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1418
1420
|
wrapStyle: import("vue").StyleValue;
|
|
1419
1421
|
wrapClass: import("../../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -1436,8 +1438,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1436
1438
|
readonly minSize?: unknown;
|
|
1437
1439
|
} & {
|
|
1438
1440
|
height: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1439
|
-
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1440
1441
|
maxHeight: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1442
|
+
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1441
1443
|
native: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1442
1444
|
wrapStyle: import("vue").StyleValue;
|
|
1443
1445
|
wrapClass: import("../../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -1451,7 +1453,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1451
1453
|
scrollTop: number;
|
|
1452
1454
|
scrollLeft: number;
|
|
1453
1455
|
}) => any) | undefined;
|
|
1454
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "height" | "
|
|
1456
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "height" | "maxHeight" | "always" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "tag" | "minSize" | "noresize">;
|
|
1455
1457
|
$attrs: {
|
|
1456
1458
|
[x: string]: unknown;
|
|
1457
1459
|
};
|
|
@@ -1482,8 +1484,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1482
1484
|
readonly minSize?: unknown;
|
|
1483
1485
|
} & {
|
|
1484
1486
|
height: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1485
|
-
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1486
1487
|
maxHeight: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1488
|
+
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1487
1489
|
native: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1488
1490
|
wrapStyle: import("vue").StyleValue;
|
|
1489
1491
|
wrapClass: import("../../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -1519,8 +1521,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1519
1521
|
}) => boolean;
|
|
1520
1522
|
}, string, {
|
|
1521
1523
|
height: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1522
|
-
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1523
1524
|
maxHeight: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1525
|
+
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1524
1526
|
native: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1525
1527
|
wrapStyle: import("vue").StyleValue;
|
|
1526
1528
|
wrapClass: import("../../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -1563,8 +1565,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1563
1565
|
readonly minSize?: unknown;
|
|
1564
1566
|
} & {
|
|
1565
1567
|
height: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1566
|
-
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1567
1568
|
maxHeight: import("../../../utils/props").BuildPropType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1569
|
+
always: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1568
1570
|
native: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
1569
1571
|
wrapStyle: import("vue").StyleValue;
|
|
1570
1572
|
wrapClass: import("../../../utils/props").BuildPropType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
export declare const ElCheckTag: import("../../utils/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
readonly checked:
|
|
3
|
-
readonly type: BooleanConstructor;
|
|
4
|
-
readonly default: false;
|
|
5
|
-
};
|
|
2
|
+
readonly checked: import("../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
6
3
|
}, {
|
|
4
|
+
ns: {
|
|
5
|
+
namespace: import("vue").ComputedRef<string>;
|
|
6
|
+
b: (blockSuffix?: string) => string;
|
|
7
|
+
e: (element?: string | undefined) => string;
|
|
8
|
+
m: (modifier?: string | undefined) => string;
|
|
9
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
10
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
11
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
12
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
13
|
+
is: (name: string, state?: boolean) => string;
|
|
14
|
+
};
|
|
7
15
|
onChange: () => void;
|
|
8
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
'update:checked': (value: boolean) => boolean;
|
|
18
|
+
change: (value: boolean) => boolean;
|
|
19
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
9
20
|
readonly checked?: unknown;
|
|
10
21
|
} & {
|
|
11
|
-
checked:
|
|
22
|
+
checked: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
12
23
|
} & {}> & {
|
|
13
|
-
onChange?: ((
|
|
14
|
-
"onUpdate:checked"?: ((
|
|
24
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
25
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
15
26
|
}, {
|
|
16
|
-
checked:
|
|
27
|
+
checked: import("../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
17
28
|
}>> & Record<string, any>;
|
|
18
29
|
export default ElCheckTag;
|
|
30
|
+
export * from './src/check-tag';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
2
|
-
import './src/
|
|
3
|
-
|
|
2
|
+
import './src/check-tag2.mjs';
|
|
3
|
+
export { checkTagEmits, checkTagProps } from './src/check-tag.mjs';
|
|
4
|
+
import script from './src/check-tag.vue_vue_type_script_lang.mjs';
|
|
4
5
|
|
|
5
6
|
const ElCheckTag = withInstall(script);
|
|
6
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/check-tag/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils/with-install'\nimport CheckTag from './src/
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/check-tag/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils/with-install'\nimport CheckTag from './src/check-tag.vue'\n\nexport const ElCheckTag = withInstall(CheckTag)\nexport default ElCheckTag\n\nexport * from './src/check-tag'\n"],"names":["CheckTag"],"mappings":";;;;;AAEY,MAAC,UAAU,GAAG,WAAW,CAACA,MAAQ;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type CheckTag from './check-tag.vue';
|
|
2
|
+
import type { ExtractPropTypes } from 'vue';
|
|
3
|
+
export declare const checkTagProps: {
|
|
4
|
+
readonly checked: import("element-plus/es/utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare type CheckTagProps = ExtractPropTypes<typeof checkTagProps>;
|
|
7
|
+
export declare const checkTagEmits: {
|
|
8
|
+
'update:checked': (value: boolean) => boolean;
|
|
9
|
+
change: (value: boolean) => boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare type CheckTagEmits = typeof checkTagEmits;
|
|
12
|
+
export declare type CheckTagInstance = InstanceType<typeof CheckTag>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { isBool } from '../../../utils/util.mjs';
|
|
2
|
+
import { buildProps } from '../../../utils/props.mjs';
|
|
3
|
+
|
|
4
|
+
const checkTagProps = buildProps({
|
|
5
|
+
checked: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: false
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const checkTagEmits = {
|
|
11
|
+
"update:checked": (value) => isBool(value),
|
|
12
|
+
change: (value) => isBool(value)
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { checkTagEmits, checkTagProps };
|
|
16
|
+
//# sourceMappingURL=check-tag.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-tag.mjs","sources":["../../../../../../packages/components/check-tag/src/check-tag.ts"],"sourcesContent":["import { isBool } from '@element-plus/utils/util'\nimport { buildProps } from '@element-plus/utils/props'\nimport type CheckTag from './check-tag.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const checkTagProps = buildProps({\n checked: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type CheckTagProps = ExtractPropTypes<typeof checkTagProps>\n\nexport const checkTagEmits = {\n 'update:checked': (value: boolean) => isBool(value),\n change: (value: boolean) => isBool(value),\n}\nexport type CheckTagEmits = typeof checkTagEmits\n\nexport type CheckTagInstance = InstanceType<typeof CheckTag>\n"],"names":[],"mappings":";;;AAEY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,gBAAgB,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC;AAC5C,EAAE,MAAM,EAAE,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC;AAClC;;;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly checked: import("../../../utils/props").BuildPropReturn<BooleanConstructor, false, unknown, unknown, unknown>;
|
|
3
|
+
}, {
|
|
4
|
+
ns: {
|
|
5
|
+
namespace: import("vue").ComputedRef<string>;
|
|
6
|
+
b: (blockSuffix?: string) => string;
|
|
7
|
+
e: (element?: string | undefined) => string;
|
|
8
|
+
m: (modifier?: string | undefined) => string;
|
|
9
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
10
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
11
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
12
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
13
|
+
is: (name: string, state?: boolean) => string;
|
|
14
|
+
};
|
|
15
|
+
onChange: () => void;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
'update:checked': (value: boolean) => boolean;
|
|
18
|
+
change: (value: boolean) => boolean;
|
|
19
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
20
|
+
readonly checked?: unknown;
|
|
21
|
+
} & {
|
|
22
|
+
checked: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
23
|
+
} & {}> & {
|
|
24
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
25
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
checked: import("../../../utils/props").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent } from 'vue';
|
|
2
|
+
import '../../../hooks/index.mjs';
|
|
3
|
+
import { checkTagProps, checkTagEmits } from './check-tag.mjs';
|
|
4
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
5
|
+
|
|
6
|
+
var script = defineComponent({
|
|
7
|
+
name: "ElCheckTag",
|
|
8
|
+
props: checkTagProps,
|
|
9
|
+
emits: checkTagEmits,
|
|
10
|
+
setup(props, { emit }) {
|
|
11
|
+
const ns = useNamespace("check-tag");
|
|
12
|
+
const onChange = () => {
|
|
13
|
+
const checked = !props.checked;
|
|
14
|
+
emit("change", checked);
|
|
15
|
+
emit("update:checked", checked);
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
ns,
|
|
19
|
+
onChange
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export { script as default };
|
|
25
|
+
//# sourceMappingURL=check-tag.vue_vue_type_script_lang.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-tag.vue_vue_type_script_lang.mjs","sources":["../../../../../../packages/components/check-tag/src/check-tag.vue"],"sourcesContent":["<template>\n <span :class=\"[ns.b(), { 'is-checked': checked }]\" @click=\"onChange\">\n <slot></slot>\n </span>\n</template>\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { checkTagProps, checkTagEmits } from './check-tag'\n\nexport default defineComponent({\n name: 'ElCheckTag',\n\n props: checkTagProps,\n emits: checkTagEmits,\n\n setup(props, { emit }) {\n const ns = useNamespace('check-tag')\n\n const onChange = () => {\n const checked = !props.checked\n emit('change', checked)\n emit('update:checked', checked)\n }\n\n return {\n ns,\n onChange,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;;AAQA,aAAe,eAAe,CAAC;;AAE/B,EAAE,KAAK,EAAE,aAAa;EACpB,OAAO;;IAEL,MAAM,EAAE,GAAG;IACX,MAAM,QAAQ,GAAG;;MAEf,IAAI,CAAC,QAAQ;MACb,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;;IAElC,OAAO;MACL,EAAE;MACF,QAAQ;MACR;;;;;;"}
|
|
@@ -2,10 +2,7 @@ import { openBlock, createElementBlock, normalizeClass, renderSlot } from 'vue';
|
|
|
2
2
|
|
|
3
3
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4
4
|
return openBlock(), createElementBlock("span", {
|
|
5
|
-
class: normalizeClass({
|
|
6
|
-
"el-check-tag": true,
|
|
7
|
-
"is-checked": _ctx.checked
|
|
8
|
-
}),
|
|
5
|
+
class: normalizeClass([_ctx.ns.b(), { "is-checked": _ctx.checked }]),
|
|
9
6
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
|
|
10
7
|
}, [
|
|
11
8
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -13,4 +10,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
export { render };
|
|
16
|
-
//# sourceMappingURL=
|
|
13
|
+
//# sourceMappingURL=check-tag.vue_vue_type_template_id_d949910a_lang.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-tag.vue_vue_type_template_id_d949910a_lang.mjs","sources":["../../../../../../packages/components/check-tag/src/check-tag.vue?vue&type=template&id=d949910a&lang.js"],"sourcesContent":["<template>\n <span :class=\"[ns.b(), { 'is-checked': checked }]\" @click=\"onChange\">\n <slot></slot>\n </span>\n</template>\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { checkTagProps, checkTagEmits } from './check-tag'\n\nexport default defineComponent({\n name: 'ElCheckTag',\n\n props: checkTagProps,\n emits: checkTagEmits,\n\n setup(props, { emit }) {\n const ns = useNamespace('check-tag')\n\n const onChange = () => {\n const checked = !props.checked\n emit('change', checked)\n emit('update:checked', checked)\n }\n\n return {\n ns,\n onChange,\n }\n },\n})\n</script>\n"],"names":[],"mappings":";;;;;IACS,+BAAU,CAAC,qBAAqB;;;;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import script from './check-tag.vue_vue_type_script_lang.mjs';
|
|
2
|
+
export { default } from './check-tag.vue_vue_type_script_lang.mjs';
|
|
3
|
+
import { render } from './check-tag.vue_vue_type_template_id_d949910a_lang.mjs';
|
|
4
|
+
|
|
5
|
+
script.render = render;
|
|
6
|
+
script.__file = "packages/components/check-tag/src/check-tag.vue";
|
|
7
|
+
//# sourceMappingURL=check-tag2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-tag2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -126,7 +126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
126
|
timeFormat: import("vue").ComputedRef<string>;
|
|
127
127
|
userInputTime: import("vue").Ref<null>;
|
|
128
128
|
userInputDate: import("vue").Ref<null>;
|
|
129
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick" | "set-picker-option")[], "pick" | "set-picker-option", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
129
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("panel-change" | "pick" | "set-picker-option")[], "pick" | "panel-change" | "set-picker-option", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
130
130
|
visible?: unknown;
|
|
131
131
|
parsedValue?: unknown;
|
|
132
132
|
format?: unknown;
|
|
@@ -139,6 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
139
|
parsedValue?: dayjs.Dayjs | dayjs.Dayjs[] | undefined;
|
|
140
140
|
}> & {
|
|
141
141
|
onPick?: ((...args: any[]) => any) | undefined;
|
|
142
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
142
143
|
"onSet-picker-option"?: ((...args: any[]) => any) | undefined;
|
|
143
144
|
}, {
|
|
144
145
|
visible: boolean;
|
package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue_vue_type_script_lang.mjs
CHANGED
|
@@ -56,7 +56,7 @@ var script = defineComponent({
|
|
|
56
56
|
validator: isValidDatePickType
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
emits: ["pick", "set-picker-option"],
|
|
59
|
+
emits: ["pick", "set-picker-option", "panel-change"],
|
|
60
60
|
setup(props, ctx) {
|
|
61
61
|
const { t, lang } = useLocale();
|
|
62
62
|
const pickerBase = inject("EP_PICKER_BASE");
|
|
@@ -121,9 +121,11 @@ var script = defineComponent({
|
|
|
121
121
|
};
|
|
122
122
|
const prevMonth_ = () => {
|
|
123
123
|
innerDate.value = innerDate.value.subtract(1, "month");
|
|
124
|
+
handlePanelChange("month");
|
|
124
125
|
};
|
|
125
126
|
const nextMonth_ = () => {
|
|
126
127
|
innerDate.value = innerDate.value.add(1, "month");
|
|
128
|
+
handlePanelChange("month");
|
|
127
129
|
};
|
|
128
130
|
const prevYear_ = () => {
|
|
129
131
|
if (currentView.value === "year") {
|
|
@@ -131,6 +133,7 @@ var script = defineComponent({
|
|
|
131
133
|
} else {
|
|
132
134
|
innerDate.value = innerDate.value.subtract(1, "year");
|
|
133
135
|
}
|
|
136
|
+
handlePanelChange("year");
|
|
134
137
|
};
|
|
135
138
|
const nextYear_ = () => {
|
|
136
139
|
if (currentView.value === "year") {
|
|
@@ -138,6 +141,7 @@ var script = defineComponent({
|
|
|
138
141
|
} else {
|
|
139
142
|
innerDate.value = innerDate.value.add(1, "year");
|
|
140
143
|
}
|
|
144
|
+
handlePanelChange("year");
|
|
141
145
|
};
|
|
142
146
|
const currentView = ref("date");
|
|
143
147
|
const yearLabel = computed(() => {
|
|
@@ -185,6 +189,7 @@ var script = defineComponent({
|
|
|
185
189
|
} else {
|
|
186
190
|
currentView.value = "date";
|
|
187
191
|
}
|
|
192
|
+
handlePanelChange("month");
|
|
188
193
|
};
|
|
189
194
|
const handleYearPick = (year2) => {
|
|
190
195
|
if (selectionMode.value === "year") {
|
|
@@ -194,6 +199,7 @@ var script = defineComponent({
|
|
|
194
199
|
innerDate.value = innerDate.value.year(year2);
|
|
195
200
|
currentView.value = "month";
|
|
196
201
|
}
|
|
202
|
+
handlePanelChange("year");
|
|
197
203
|
};
|
|
198
204
|
const showMonthPicker = () => {
|
|
199
205
|
currentView.value = "month";
|
|
@@ -365,6 +371,9 @@ var script = defineComponent({
|
|
|
365
371
|
break;
|
|
366
372
|
}
|
|
367
373
|
};
|
|
374
|
+
const handlePanelChange = (mode) => {
|
|
375
|
+
ctx.emit("panel-change", innerDate.value.toDate(), mode, currentView.value);
|
|
376
|
+
};
|
|
368
377
|
ctx.emit("set-picker-option", ["isValidValue", isValidValue]);
|
|
369
378
|
ctx.emit("set-picker-option", ["formatToString", formatToString]);
|
|
370
379
|
ctx.emit("set-picker-option", ["parseUserInput", parseUserInput]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-date-pick.vue_vue_type_script_lang.mjs","sources":["../../../../../../../packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"],"sourcesContent":["<template>\n <div\n class=\"el-picker-panel el-date-picker\"\n :class=\"[\n {\n 'has-sidebar': $slots.sidebar || hasShortcuts,\n 'has-time': showTime,\n },\n ]\"\n >\n <div class=\"el-picker-panel__body-wrapper\">\n <slot name=\"sidebar\" class=\"el-picker-panel__sidebar\"></slot>\n <div v-if=\"hasShortcuts\" class=\"el-picker-panel__sidebar\">\n <button\n v-for=\"(shortcut, key) in shortcuts\"\n :key=\"key\"\n type=\"button\"\n class=\"el-picker-panel__shortcut\"\n @click=\"handleShortcutClick(shortcut)\"\n >\n {{ shortcut.text }}\n </button>\n </div>\n <div class=\"el-picker-panel__body\">\n <div v-if=\"showTime\" class=\"el-date-picker__time-header\">\n <span class=\"el-date-picker__editor-wrap\">\n <el-input\n :placeholder=\"t('el.datepicker.selectDate')\"\n :model-value=\"visibleDate\"\n size=\"small\"\n @input=\"(val) => (userInputDate = val)\"\n @change=\"handleVisibleDateChange\"\n />\n </span>\n <span\n v-clickoutside=\"handleTimePickClose\"\n class=\"el-date-picker__editor-wrap\"\n >\n <el-input\n :placeholder=\"t('el.datepicker.selectTime')\"\n :model-value=\"visibleTime\"\n size=\"small\"\n @focus=\"onTimePickerInputFocus\"\n @input=\"(val) => (userInputTime = val)\"\n @change=\"handleVisibleTimeChange\"\n />\n <time-pick-panel\n :visible=\"timePickerVisible\"\n :format=\"timeFormat\"\n :time-arrow-control=\"arrowControl\"\n :parsed-value=\"innerDate\"\n @pick=\"handleTimePick\"\n />\n </span>\n </div>\n <div\n v-show=\"currentView !== 'time'\"\n class=\"el-date-picker__header\"\n :class=\"{\n 'el-date-picker__header--bordered':\n currentView === 'year' || currentView === 'month',\n }\"\n >\n <button\n type=\"button\"\n :aria-label=\"t(`el.datepicker.prevYear`)\"\n class=\"el-picker-panel__icon-btn el-date-picker__prev-btn d-arrow-left\"\n @click=\"prevYear_\"\n >\n <el-icon><d-arrow-left /></el-icon>\n </button>\n <button\n v-show=\"currentView === 'date'\"\n type=\"button\"\n :aria-label=\"t(`el.datepicker.prevMonth`)\"\n class=\"el-picker-panel__icon-btn el-date-picker__prev-btn arrow-left\"\n @click=\"prevMonth_\"\n >\n <el-icon><arrow-left /></el-icon>\n </button>\n <span\n role=\"button\"\n class=\"el-date-picker__header-label\"\n @click=\"showYearPicker\"\n >{{ yearLabel }}</span\n >\n <span\n v-show=\"currentView === 'date'\"\n role=\"button\"\n class=\"el-date-picker__header-label\"\n :class=\"{ active: currentView === 'month' }\"\n @click=\"showMonthPicker\"\n >{{ t(`el.datepicker.month${month + 1}`) }}</span\n >\n <button\n type=\"button\"\n :aria-label=\"t(`el.datepicker.nextYear`)\"\n class=\"el-picker-panel__icon-btn el-date-picker__next-btn d-arrow-right\"\n @click=\"nextYear_\"\n >\n <el-icon><d-arrow-right /></el-icon>\n </button>\n <button\n v-show=\"currentView === 'date'\"\n type=\"button\"\n :aria-label=\"t(`el.datepicker.nextMonth`)\"\n class=\"el-picker-panel__icon-btn el-date-picker__next-btn arrow-right\"\n @click=\"nextMonth_\"\n >\n <el-icon><arrow-right /></el-icon>\n </button>\n </div>\n <div class=\"el-picker-panel__content\">\n <date-table\n v-if=\"currentView === 'date'\"\n :selection-mode=\"selectionMode\"\n :date=\"innerDate\"\n :parsed-value=\"parsedValue\"\n :disabled-date=\"disabledDate\"\n @pick=\"handleDatePick\"\n />\n <year-table\n v-if=\"currentView === 'year'\"\n :date=\"innerDate\"\n :disabled-date=\"disabledDate\"\n :parsed-value=\"parsedValue\"\n @pick=\"handleYearPick\"\n />\n <month-table\n v-if=\"currentView === 'month'\"\n :date=\"innerDate\"\n :parsed-value=\"parsedValue\"\n :disabled-date=\"disabledDate\"\n @pick=\"handleMonthPick\"\n />\n </div>\n </div>\n </div>\n <div\n v-show=\"footerVisible && currentView === 'date'\"\n class=\"el-picker-panel__footer\"\n >\n <el-button\n v-show=\"selectionMode !== 'dates'\"\n size=\"small\"\n type=\"text\"\n class=\"el-picker-panel__link-btn\"\n @click=\"changeToNow\"\n >\n {{ t('el.datepicker.now') }}\n </el-button>\n <el-button\n plain\n size=\"small\"\n class=\"el-picker-panel__link-btn\"\n @click=\"onConfirm\"\n >\n {{ t('el.datepicker.confirm') }}\n </el-button>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, inject, ref, watch } from 'vue'\nimport dayjs from 'dayjs'\nimport ElButton from '@element-plus/components/button'\nimport { ClickOutside } from '@element-plus/directives'\nimport { useLocale } from '@element-plus/hooks'\nimport ElInput from '@element-plus/components/input'\nimport {\n extractDateFormat,\n extractTimeFormat,\n TimePickPanel,\n} from '@element-plus/components/time-picker'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { EVENT_CODE } from '@element-plus/utils/aria'\nimport { isValidDatePickType } from '@element-plus/utils/validators'\nimport {\n DArrowLeft,\n ArrowLeft,\n DArrowRight,\n ArrowRight,\n} from '@element-plus/icons-vue'\nimport { TOOLTIP_INJECTION_KEY } from '@element-plus/components/tooltip'\nimport DateTable from './basic-date-table.vue'\nimport MonthTable from './basic-month-table.vue'\nimport YearTable from './basic-year-table.vue'\n\nimport type { PropType } from 'vue'\nimport type { ConfigType, Dayjs } from 'dayjs'\nimport type { IDatePickerType } from '../date-picker.type'\n\n// todo\n/* eslint-disable-next-line */\nconst timeWithinRange = (_: ConfigType, __: any, ___: string) => true\n\nexport default defineComponent({\n components: {\n DateTable,\n ElInput,\n ElButton,\n ElIcon,\n TimePickPanel,\n MonthTable,\n YearTable,\n DArrowLeft,\n ArrowLeft,\n DArrowRight,\n ArrowRight,\n },\n\n directives: { clickoutside: ClickOutside },\n props: {\n visible: {\n type: Boolean,\n default: false,\n },\n parsedValue: {\n type: [Object, Array] as PropType<Dayjs | Dayjs[]>,\n },\n format: {\n type: String,\n default: '',\n },\n type: {\n type: String as PropType<IDatePickerType>,\n required: true,\n validator: isValidDatePickType,\n },\n },\n emits: ['pick', 'set-picker-option'],\n setup(props, ctx) {\n const { t, lang } = useLocale()\n const pickerBase = inject('EP_PICKER_BASE') as any\n const popper = inject(TOOLTIP_INJECTION_KEY)\n const {\n shortcuts,\n disabledDate,\n cellClassName,\n defaultTime,\n defaultValue,\n arrowControl,\n } = pickerBase.props\n\n const innerDate = ref(dayjs().locale(lang.value))\n\n const defaultTimeD = computed(() => {\n return dayjs(defaultTime).locale(lang.value)\n })\n\n const month = computed(() => {\n return innerDate.value.month()\n })\n\n const year = computed(() => {\n return innerDate.value.year()\n })\n\n const selectableRange = ref([])\n const userInputDate = ref(null)\n const userInputTime = ref(null)\n // todo update to disableHour\n const checkDateWithinRange = (date: ConfigType) => {\n return selectableRange.value.length > 0\n ? timeWithinRange(\n date,\n selectableRange.value,\n props.format || 'HH:mm:ss'\n )\n : true\n }\n const formatEmit = (emitDayjs: Dayjs) => {\n if (defaultTime && !visibleTime.value) {\n return defaultTimeD.value\n .year(emitDayjs.year())\n .month(emitDayjs.month())\n .date(emitDayjs.date())\n }\n if (showTime.value) return emitDayjs.millisecond(0)\n return emitDayjs.startOf('day')\n }\n const emit = (value, ...args) => {\n if (!value) {\n ctx.emit('pick', value, ...args)\n } else if (Array.isArray(value)) {\n const dates = value.map(formatEmit)\n ctx.emit('pick', dates, ...args)\n } else {\n ctx.emit('pick', formatEmit(value), ...args)\n }\n userInputDate.value = null\n userInputTime.value = null\n }\n const handleDatePick = (value: Dayjs) => {\n if (selectionMode.value === 'day') {\n let newDate = props.parsedValue\n ? (props.parsedValue as Dayjs)\n .year(value.year())\n .month(value.month())\n .date(value.date())\n : value\n // change default time while out of selectableRange\n if (!checkDateWithinRange(newDate)) {\n newDate = (selectableRange.value[0][0] as Dayjs)\n .year(value.year())\n .month(value.month())\n .date(value.date())\n }\n innerDate.value = newDate\n emit(newDate, showTime.value)\n } else if (selectionMode.value === 'week') {\n emit(value.date)\n } else if (selectionMode.value === 'dates') {\n emit(value, true) // set false to keep panel open\n }\n }\n const prevMonth_ = () => {\n innerDate.value = innerDate.value.subtract(1, 'month')\n }\n\n const nextMonth_ = () => {\n innerDate.value = innerDate.value.add(1, 'month')\n }\n\n const prevYear_ = () => {\n if (currentView.value === 'year') {\n innerDate.value = innerDate.value.subtract(10, 'year')\n } else {\n innerDate.value = innerDate.value.subtract(1, 'year')\n }\n }\n\n const nextYear_ = () => {\n if (currentView.value === 'year') {\n innerDate.value = innerDate.value.add(10, 'year')\n } else {\n innerDate.value = innerDate.value.add(1, 'year')\n }\n }\n\n const currentView = ref('date')\n\n const yearLabel = computed(() => {\n const yearTranslation = t('el.datepicker.year')\n if (currentView.value === 'year') {\n const startYear = Math.floor(year.value / 10) * 10\n if (yearTranslation) {\n return `${startYear} ${yearTranslation} - ${\n startYear + 9\n } ${yearTranslation}`\n }\n return `${startYear} - ${startYear + 9}`\n }\n return `${year.value} ${yearTranslation}`\n })\n\n const handleShortcutClick = (shortcut) => {\n const shortcutValue =\n typeof shortcut.value === 'function' ? shortcut.value() : shortcut.value\n if (shortcutValue) {\n emit(dayjs(shortcutValue).locale(lang.value))\n return\n }\n if (shortcut.onClick) {\n shortcut.onClick(ctx)\n }\n }\n\n const selectionMode = computed(() => {\n if (['week', 'month', 'year', 'dates'].includes(props.type)) {\n return props.type\n }\n return 'day'\n })\n\n watch(\n () => selectionMode.value,\n (val) => {\n if (['month', 'year'].includes(val)) {\n currentView.value = val\n return\n }\n currentView.value = 'date'\n },\n { immediate: true }\n )\n\n watch(\n () => currentView.value,\n () => {\n popper?.updatePopper()\n }\n )\n\n const hasShortcuts = computed(() => !!shortcuts.length)\n\n const handleMonthPick = (month) => {\n innerDate.value = innerDate.value.startOf('month').month(month)\n if (selectionMode.value === 'month') {\n emit(innerDate.value)\n } else {\n currentView.value = 'date'\n }\n }\n\n const handleYearPick = (year) => {\n if (selectionMode.value === 'year') {\n innerDate.value = innerDate.value.startOf('year').year(year)\n emit(innerDate.value)\n } else {\n innerDate.value = innerDate.value.year(year)\n currentView.value = 'month'\n }\n }\n\n const showMonthPicker = () => {\n currentView.value = 'month'\n }\n\n const showYearPicker = () => {\n currentView.value = 'year'\n }\n\n const showTime = computed(\n () => props.type === 'datetime' || props.type === 'datetimerange'\n )\n\n const footerVisible = computed(() => {\n return showTime.value || selectionMode.value === 'dates'\n })\n\n const onConfirm = () => {\n if (selectionMode.value === 'dates') {\n emit(props.parsedValue)\n } else {\n // deal with the scenario where: user opens the date time picker, then confirm without doing anything\n let result = props.parsedValue as Dayjs\n if (!result) {\n const defaultTimeD = dayjs(defaultTime).locale(lang.value)\n const defaultValueD = getDefaultValue()\n result = defaultTimeD\n .year(defaultValueD.year())\n .month(defaultValueD.month())\n .date(defaultValueD.date())\n }\n innerDate.value = result\n emit(result)\n }\n }\n\n const changeToNow = () => {\n // NOTE: not a permanent solution\n // consider disable \"now\" button in the future\n const now = dayjs().locale(lang.value)\n const nowDate = now.toDate()\n if (\n (!disabledDate || !disabledDate(nowDate)) &&\n checkDateWithinRange(nowDate)\n ) {\n innerDate.value = dayjs().locale(lang.value)\n emit(innerDate.value)\n }\n }\n\n const timeFormat = computed(() => {\n return extractTimeFormat(props.format)\n })\n\n const dateFormat = computed(() => {\n return extractDateFormat(props.format)\n })\n\n const visibleTime = computed(() => {\n if (userInputTime.value) return userInputTime.value\n if (!props.parsedValue && !defaultValue) return\n return ((props.parsedValue || innerDate.value) as Dayjs).format(\n timeFormat.value\n )\n })\n\n const visibleDate = computed(() => {\n if (userInputDate.value) return userInputDate.value\n if (!props.parsedValue && !defaultValue) return\n return ((props.parsedValue || innerDate.value) as Dayjs).format(\n dateFormat.value\n )\n })\n\n const timePickerVisible = ref(false)\n const onTimePickerInputFocus = () => {\n timePickerVisible.value = true\n }\n const handleTimePickClose = () => {\n timePickerVisible.value = false\n }\n\n const handleTimePick = (value, visible, first) => {\n const newDate = props.parsedValue\n ? (props.parsedValue as Dayjs)\n .hour(value.hour())\n .minute(value.minute())\n .second(value.second())\n : value\n innerDate.value = newDate\n emit(innerDate.value, true)\n if (!first) {\n timePickerVisible.value = visible\n }\n }\n\n const handleVisibleTimeChange = (value) => {\n const newDate = dayjs(value, timeFormat.value).locale(lang.value)\n if (newDate.isValid() && checkDateWithinRange(newDate)) {\n innerDate.value = newDate\n .year(innerDate.value.year())\n .month(innerDate.value.month())\n .date(innerDate.value.date())\n userInputTime.value = null\n timePickerVisible.value = false\n emit(innerDate.value, true)\n }\n }\n\n const handleVisibleDateChange = (value) => {\n const newDate = dayjs(value, dateFormat.value).locale(lang.value)\n if (newDate.isValid()) {\n if (disabledDate && disabledDate(newDate.toDate())) {\n return\n }\n innerDate.value = newDate\n .hour(innerDate.value.hour())\n .minute(innerDate.value.minute())\n .second(innerDate.value.second())\n userInputDate.value = null\n emit(innerDate.value, true)\n }\n }\n\n const isValidValue = (date: unknown) => {\n return (\n dayjs.isDayjs(date) &&\n date.isValid() &&\n (disabledDate ? !disabledDate(date.toDate()) : true)\n )\n }\n\n const formatToString = (value) => {\n if (selectionMode.value === 'dates') {\n return value.map((_) => _.format(props.format))\n }\n return value.format(props.format)\n }\n\n const parseUserInput = (value) => {\n return dayjs(value, props.format).locale(lang.value)\n }\n\n const getDefaultValue = () => {\n const parseDate = dayjs(defaultValue).locale(lang.value)\n if (!defaultValue) {\n const defaultTimeDValue = defaultTimeD.value\n return dayjs()\n .hour(defaultTimeDValue.hour())\n .minute(defaultTimeDValue.minute())\n .second(defaultTimeDValue.second())\n .locale(lang.value)\n }\n return parseDate\n }\n\n const handleKeydown = (event) => {\n const { code, keyCode } = event\n const list = [\n EVENT_CODE.up,\n EVENT_CODE.down,\n EVENT_CODE.left,\n EVENT_CODE.right,\n ]\n if (props.visible && !timePickerVisible.value) {\n if (list.includes(code)) {\n handleKeyControl(keyCode)\n event.stopPropagation()\n event.preventDefault()\n }\n if (\n code === EVENT_CODE.enter &&\n userInputDate.value === null &&\n userInputTime.value === null\n ) {\n // Enter\n emit(innerDate, false)\n }\n }\n }\n\n const handleKeyControl = (keyCode) => {\n const mapping = {\n year: {\n 38: -4,\n 40: 4,\n 37: -1,\n 39: 1,\n offset: (date, step) => date.setFullYear(date.getFullYear() + step),\n },\n month: {\n 38: -4,\n 40: 4,\n 37: -1,\n 39: 1,\n offset: (date, step) => date.setMonth(date.getMonth() + step),\n },\n week: {\n 38: -1,\n 40: 1,\n 37: -1,\n 39: 1,\n offset: (date, step) => date.setDate(date.getDate() + step * 7),\n },\n day: {\n 38: -7,\n 40: 7,\n 37: -1,\n 39: 1,\n offset: (date, step) => date.setDate(date.getDate() + step),\n },\n }\n\n const newDate = innerDate.value.toDate()\n while (Math.abs(innerDate.value.diff(newDate, 'year', true)) < 1) {\n const map = mapping[selectionMode.value]\n map.offset(newDate, map[keyCode])\n if (disabledDate && disabledDate(newDate)) {\n continue\n }\n const result = dayjs(newDate).locale(lang.value)\n innerDate.value = result\n ctx.emit('pick', result, true)\n break\n }\n }\n\n ctx.emit('set-picker-option', ['isValidValue', isValidValue])\n ctx.emit('set-picker-option', ['formatToString', formatToString])\n ctx.emit('set-picker-option', ['parseUserInput', parseUserInput])\n ctx.emit('set-picker-option', ['handleKeydown', handleKeydown])\n\n watch(\n () => props.parsedValue,\n (val) => {\n if (val) {\n if (selectionMode.value === 'dates') return\n if (Array.isArray(val)) return\n innerDate.value = val\n } else {\n innerDate.value = getDefaultValue()\n }\n },\n { immediate: true }\n )\n\n return {\n handleTimePick,\n handleTimePickClose,\n onTimePickerInputFocus,\n timePickerVisible,\n visibleTime,\n visibleDate,\n showTime,\n changeToNow,\n onConfirm,\n footerVisible,\n handleYearPick,\n showMonthPicker,\n showYearPicker,\n handleMonthPick,\n hasShortcuts,\n shortcuts,\n arrowControl,\n disabledDate,\n cellClassName,\n selectionMode,\n handleShortcutClick,\n prevYear_,\n nextYear_,\n prevMonth_,\n nextMonth_,\n innerDate,\n t,\n yearLabel,\n currentView,\n month,\n handleDatePick,\n handleVisibleTimeChange,\n handleVisibleDateChange,\n timeFormat,\n userInputTime,\n userInputDate,\n }\n },\n})\n</script>\n"],"names":["DateTable","TimePickPanel","MonthTable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA2LA,wBAAwB,C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MACA,YAAY;eACH;kBACG;kBACA;mBACC;mBACA;yBACM;MACnB;MACA,SAAS;;;MAGT,SAAS;MACT,CAAC;MACD,SAAS;iBACE;WACN;oBACS;;MAEd;MACA,UAAU;mBACG;mBACA;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"panel-date-pick.vue_vue_type_script_lang.mjs","sources":["../../../../../../../packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"],"sourcesContent":["<template>\n <div\n class=\"el-picker-panel el-date-picker\"\n :class=\"[\n {\n 'has-sidebar': $slots.sidebar || hasShortcuts,\n 'has-time': showTime,\n },\n ]\"\n >\n <div class=\"el-picker-panel__body-wrapper\">\n <slot name=\"sidebar\" class=\"el-picker-panel__sidebar\"></slot>\n <div v-if=\"hasShortcuts\" class=\"el-picker-panel__sidebar\">\n <button\n v-for=\"(shortcut, key) in shortcuts\"\n :key=\"key\"\n type=\"button\"\n class=\"el-picker-panel__shortcut\"\n @click=\"handleShortcutClick(shortcut)\"\n >\n {{ shortcut.text }}\n </button>\n </div>\n <div class=\"el-picker-panel__body\">\n <div v-if=\"showTime\" class=\"el-date-picker__time-header\">\n <span class=\"el-date-picker__editor-wrap\">\n <el-input\n :placeholder=\"t('el.datepicker.selectDate')\"\n :model-value=\"visibleDate\"\n size=\"small\"\n @input=\"(val) => (userInputDate = val)\"\n @change=\"handleVisibleDateChange\"\n />\n </span>\n <span\n v-clickoutside=\"handleTimePickClose\"\n class=\"el-date-picker__editor-wrap\"\n >\n <el-input\n :placeholder=\"t('el.datepicker.selectTime')\"\n :model-value=\"visibleTime\"\n size=\"small\"\n @focus=\"onTimePickerInputFocus\"\n @input=\"(val) => (userInputTime = val)\"\n @change=\"handleVisibleTimeChange\"\n />\n <time-pick-panel\n :visible=\"timePickerVisible\"\n :format=\"timeFormat\"\n :time-arrow-control=\"arrowControl\"\n :parsed-value=\"innerDate\"\n @pick=\"handleTimePick\"\n />\n </span>\n </div>\n <div\n v-show=\"currentView !== 'time'\"\n class=\"el-date-picker__header\"\n :class=\"{\n 'el-date-picker__header--bordered':\n currentView === 'year' || currentView === 'month',\n }\"\n >\n <button\n type=\"button\"\n :aria-label=\"t(`el.datepicker.prevYear`)\"\n class=\"el-picker-panel__icon-btn el-date-picker__prev-btn d-arrow-left\"\n @click=\"prevYear_\"\n >\n <el-icon><d-arrow-left /></el-icon>\n </button>\n <button\n v-show=\"currentView === 'date'\"\n type=\"button\"\n :aria-label=\"t(`el.datepicker.prevMonth`)\"\n class=\"el-picker-panel__icon-btn el-date-picker__prev-btn arrow-left\"\n @click=\"prevMonth_\"\n >\n <el-icon><arrow-left /></el-icon>\n </button>\n <span\n role=\"button\"\n class=\"el-date-picker__header-label\"\n @click=\"showYearPicker\"\n >{{ yearLabel }}</span\n >\n <span\n v-show=\"currentView === 'date'\"\n role=\"button\"\n class=\"el-date-picker__header-label\"\n :class=\"{ active: currentView === 'month' }\"\n @click=\"showMonthPicker\"\n >{{ t(`el.datepicker.month${month + 1}`) }}</span\n >\n <button\n type=\"button\"\n :aria-label=\"t(`el.datepicker.nextYear`)\"\n class=\"el-picker-panel__icon-btn el-date-picker__next-btn d-arrow-right\"\n @click=\"nextYear_\"\n >\n <el-icon><d-arrow-right /></el-icon>\n </button>\n <button\n v-show=\"currentView === 'date'\"\n type=\"button\"\n :aria-label=\"t(`el.datepicker.nextMonth`)\"\n class=\"el-picker-panel__icon-btn el-date-picker__next-btn arrow-right\"\n @click=\"nextMonth_\"\n >\n <el-icon><arrow-right /></el-icon>\n </button>\n </div>\n <div class=\"el-picker-panel__content\">\n <date-table\n v-if=\"currentView === 'date'\"\n :selection-mode=\"selectionMode\"\n :date=\"innerDate\"\n :parsed-value=\"parsedValue\"\n :disabled-date=\"disabledDate\"\n @pick=\"handleDatePick\"\n />\n <year-table\n v-if=\"currentView === 'year'\"\n :date=\"innerDate\"\n :disabled-date=\"disabledDate\"\n :parsed-value=\"parsedValue\"\n @pick=\"handleYearPick\"\n />\n <month-table\n v-if=\"currentView === 'month'\"\n :date=\"innerDate\"\n :parsed-value=\"parsedValue\"\n :disabled-date=\"disabledDate\"\n @pick=\"handleMonthPick\"\n />\n </div>\n </div>\n </div>\n <div\n v-show=\"footerVisible && currentView === 'date'\"\n class=\"el-picker-panel__footer\"\n >\n <el-button\n v-show=\"selectionMode !== 'dates'\"\n size=\"small\"\n type=\"text\"\n class=\"el-picker-panel__link-btn\"\n @click=\"changeToNow\"\n >\n {{ t('el.datepicker.now') }}\n </el-button>\n <el-button\n plain\n size=\"small\"\n class=\"el-picker-panel__link-btn\"\n @click=\"onConfirm\"\n >\n {{ t('el.datepicker.confirm') }}\n </el-button>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, inject, ref, watch } from 'vue'\nimport dayjs from 'dayjs'\nimport ElButton from '@element-plus/components/button'\nimport { ClickOutside } from '@element-plus/directives'\nimport { useLocale } from '@element-plus/hooks'\nimport ElInput from '@element-plus/components/input'\nimport {\n extractDateFormat,\n extractTimeFormat,\n TimePickPanel,\n} from '@element-plus/components/time-picker'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { EVENT_CODE } from '@element-plus/utils/aria'\nimport { isValidDatePickType } from '@element-plus/utils/validators'\nimport {\n DArrowLeft,\n ArrowLeft,\n DArrowRight,\n ArrowRight,\n} from '@element-plus/icons-vue'\nimport { TOOLTIP_INJECTION_KEY } from '@element-plus/components/tooltip'\nimport DateTable from './basic-date-table.vue'\nimport MonthTable from './basic-month-table.vue'\nimport YearTable from './basic-year-table.vue'\n\nimport type { PropType } from 'vue'\nimport type { ConfigType, Dayjs } from 'dayjs'\nimport type { IDatePickerType } from '../date-picker.type'\n\n// todo\n/* eslint-disable-next-line */\nconst timeWithinRange = (_: ConfigType, __: any, ___: string) => true\n\nexport default defineComponent({\n components: {\n DateTable,\n ElInput,\n ElButton,\n ElIcon,\n TimePickPanel,\n MonthTable,\n YearTable,\n DArrowLeft,\n ArrowLeft,\n DArrowRight,\n ArrowRight,\n },\n\n directives: { clickoutside: ClickOutside },\n props: {\n visible: {\n type: Boolean,\n default: false,\n },\n parsedValue: {\n type: [Object, Array] as PropType<Dayjs | Dayjs[]>,\n },\n format: {\n type: String,\n default: '',\n },\n type: {\n type: String as PropType<IDatePickerType>,\n required: true,\n validator: isValidDatePickType,\n },\n },\n emits: ['pick', 'set-picker-option', 'panel-change'],\n setup(props, ctx) {\n const { t, lang } = useLocale()\n const pickerBase = inject('EP_PICKER_BASE') as any\n const popper = inject(TOOLTIP_INJECTION_KEY)\n const {\n shortcuts,\n disabledDate,\n cellClassName,\n defaultTime,\n defaultValue,\n arrowControl,\n } = pickerBase.props\n\n const innerDate = ref(dayjs().locale(lang.value))\n\n const defaultTimeD = computed(() => {\n return dayjs(defaultTime).locale(lang.value)\n })\n\n const month = computed(() => {\n return innerDate.value.month()\n })\n\n const year = computed(() => {\n return innerDate.value.year()\n })\n\n const selectableRange = ref([])\n const userInputDate = ref(null)\n const userInputTime = ref(null)\n // todo update to disableHour\n const checkDateWithinRange = (date: ConfigType) => {\n return selectableRange.value.length > 0\n ? timeWithinRange(\n date,\n selectableRange.value,\n props.format || 'HH:mm:ss'\n )\n : true\n }\n const formatEmit = (emitDayjs: Dayjs) => {\n if (defaultTime && !visibleTime.value) {\n return defaultTimeD.value\n .year(emitDayjs.year())\n .month(emitDayjs.month())\n .date(emitDayjs.date())\n }\n if (showTime.value) return emitDayjs.millisecond(0)\n return emitDayjs.startOf('day')\n }\n const emit = (value, ...args) => {\n if (!value) {\n ctx.emit('pick', value, ...args)\n } else if (Array.isArray(value)) {\n const dates = value.map(formatEmit)\n ctx.emit('pick', dates, ...args)\n } else {\n ctx.emit('pick', formatEmit(value), ...args)\n }\n userInputDate.value = null\n userInputTime.value = null\n }\n const handleDatePick = (value: Dayjs) => {\n if (selectionMode.value === 'day') {\n let newDate = props.parsedValue\n ? (props.parsedValue as Dayjs)\n .year(value.year())\n .month(value.month())\n .date(value.date())\n : value\n // change default time while out of selectableRange\n if (!checkDateWithinRange(newDate)) {\n newDate = (selectableRange.value[0][0] as Dayjs)\n .year(value.year())\n .month(value.month())\n .date(value.date())\n }\n innerDate.value = newDate\n emit(newDate, showTime.value)\n } else if (selectionMode.value === 'week') {\n emit(value.date)\n } else if (selectionMode.value === 'dates') {\n emit(value, true) // set false to keep panel open\n }\n }\n const prevMonth_ = () => {\n innerDate.value = innerDate.value.subtract(1, 'month')\n handlePanelChange('month')\n }\n\n const nextMonth_ = () => {\n innerDate.value = innerDate.value.add(1, 'month')\n handlePanelChange('month')\n }\n\n const prevYear_ = () => {\n if (currentView.value === 'year') {\n innerDate.value = innerDate.value.subtract(10, 'year')\n } else {\n innerDate.value = innerDate.value.subtract(1, 'year')\n }\n handlePanelChange('year')\n }\n\n const nextYear_ = () => {\n if (currentView.value === 'year') {\n innerDate.value = innerDate.value.add(10, 'year')\n } else {\n innerDate.value = innerDate.value.add(1, 'year')\n }\n handlePanelChange('year')\n }\n\n const currentView = ref('date')\n\n const yearLabel = computed(() => {\n const yearTranslation = t('el.datepicker.year')\n if (currentView.value === 'year') {\n const startYear = Math.floor(year.value / 10) * 10\n if (yearTranslation) {\n return `${startYear} ${yearTranslation} - ${\n startYear + 9\n } ${yearTranslation}`\n }\n return `${startYear} - ${startYear + 9}`\n }\n return `${year.value} ${yearTranslation}`\n })\n\n const handleShortcutClick = (shortcut) => {\n const shortcutValue =\n typeof shortcut.value === 'function' ? shortcut.value() : shortcut.value\n if (shortcutValue) {\n emit(dayjs(shortcutValue).locale(lang.value))\n return\n }\n if (shortcut.onClick) {\n shortcut.onClick(ctx)\n }\n }\n\n const selectionMode = computed(() => {\n if (['week', 'month', 'year', 'dates'].includes(props.type)) {\n return props.type\n }\n return 'day'\n })\n\n watch(\n () => selectionMode.value,\n (val) => {\n if (['month', 'year'].includes(val)) {\n currentView.value = val\n return\n }\n currentView.value = 'date'\n },\n { immediate: true }\n )\n\n watch(\n () => currentView.value,\n () => {\n popper?.updatePopper()\n }\n )\n\n const hasShortcuts = computed(() => !!shortcuts.length)\n\n const handleMonthPick = (month) => {\n innerDate.value = innerDate.value.startOf('month').month(month)\n if (selectionMode.value === 'month') {\n emit(innerDate.value)\n } else {\n currentView.value = 'date'\n }\n handlePanelChange('month')\n }\n\n const handleYearPick = (year) => {\n if (selectionMode.value === 'year') {\n innerDate.value = innerDate.value.startOf('year').year(year)\n emit(innerDate.value)\n } else {\n innerDate.value = innerDate.value.year(year)\n currentView.value = 'month'\n }\n handlePanelChange('year')\n }\n\n const showMonthPicker = () => {\n currentView.value = 'month'\n }\n\n const showYearPicker = () => {\n currentView.value = 'year'\n }\n\n const showTime = computed(\n () => props.type === 'datetime' || props.type === 'datetimerange'\n )\n\n const footerVisible = computed(() => {\n return showTime.value || selectionMode.value === 'dates'\n })\n\n const onConfirm = () => {\n if (selectionMode.value === 'dates') {\n emit(props.parsedValue)\n } else {\n // deal with the scenario where: user opens the date time picker, then confirm without doing anything\n let result = props.parsedValue as Dayjs\n if (!result) {\n const defaultTimeD = dayjs(defaultTime).locale(lang.value)\n const defaultValueD = getDefaultValue()\n result = defaultTimeD\n .year(defaultValueD.year())\n .month(defaultValueD.month())\n .date(defaultValueD.date())\n }\n innerDate.value = result\n emit(result)\n }\n }\n\n const changeToNow = () => {\n // NOTE: not a permanent solution\n // consider disable \"now\" button in the future\n const now = dayjs().locale(lang.value)\n const nowDate = now.toDate()\n if (\n (!disabledDate || !disabledDate(nowDate)) &&\n checkDateWithinRange(nowDate)\n ) {\n innerDate.value = dayjs().locale(lang.value)\n emit(innerDate.value)\n }\n }\n\n const timeFormat = computed(() => {\n return extractTimeFormat(props.format)\n })\n\n const dateFormat = computed(() => {\n return extractDateFormat(props.format)\n })\n\n const visibleTime = computed(() => {\n if (userInputTime.value) return userInputTime.value\n if (!props.parsedValue && !defaultValue) return\n return ((props.parsedValue || innerDate.value) as Dayjs).format(\n timeFormat.value\n )\n })\n\n const visibleDate = computed(() => {\n if (userInputDate.value) return userInputDate.value\n if (!props.parsedValue && !defaultValue) return\n return ((props.parsedValue || innerDate.value) as Dayjs).format(\n dateFormat.value\n )\n })\n\n const timePickerVisible = ref(false)\n const onTimePickerInputFocus = () => {\n timePickerVisible.value = true\n }\n const handleTimePickClose = () => {\n timePickerVisible.value = false\n }\n\n const handleTimePick = (value, visible, first) => {\n const newDate = props.parsedValue\n ? (props.parsedValue as Dayjs)\n .hour(value.hour())\n .minute(value.minute())\n .second(value.second())\n : value\n innerDate.value = newDate\n emit(innerDate.value, true)\n if (!first) {\n timePickerVisible.value = visible\n }\n }\n\n const handleVisibleTimeChange = (value) => {\n const newDate = dayjs(value, timeFormat.value).locale(lang.value)\n if (newDate.isValid() && checkDateWithinRange(newDate)) {\n innerDate.value = newDate\n .year(innerDate.value.year())\n .month(innerDate.value.month())\n .date(innerDate.value.date())\n userInputTime.value = null\n timePickerVisible.value = false\n emit(innerDate.value, true)\n }\n }\n\n const handleVisibleDateChange = (value) => {\n const newDate = dayjs(value, dateFormat.value).locale(lang.value)\n if (newDate.isValid()) {\n if (disabledDate && disabledDate(newDate.toDate())) {\n return\n }\n innerDate.value = newDate\n .hour(innerDate.value.hour())\n .minute(innerDate.value.minute())\n .second(innerDate.value.second())\n userInputDate.value = null\n emit(innerDate.value, true)\n }\n }\n\n const isValidValue = (date: unknown) => {\n return (\n dayjs.isDayjs(date) &&\n date.isValid() &&\n (disabledDate ? !disabledDate(date.toDate()) : true)\n )\n }\n\n const formatToString = (value) => {\n if (selectionMode.value === 'dates') {\n return value.map((_) => _.format(props.format))\n }\n return value.format(props.format)\n }\n\n const parseUserInput = (value) => {\n return dayjs(value, props.format).locale(lang.value)\n }\n\n const getDefaultValue = () => {\n const parseDate = dayjs(defaultValue).locale(lang.value)\n if (!defaultValue) {\n const defaultTimeDValue = defaultTimeD.value\n return dayjs()\n .hour(defaultTimeDValue.hour())\n .minute(defaultTimeDValue.minute())\n .second(defaultTimeDValue.second())\n .locale(lang.value)\n }\n return parseDate\n }\n\n const handleKeydown = (event) => {\n const { code, keyCode } = event\n const list = [\n EVENT_CODE.up,\n EVENT_CODE.down,\n EVENT_CODE.left,\n EVENT_CODE.right,\n ]\n if (props.visible && !timePickerVisible.value) {\n if (list.includes(code)) {\n handleKeyControl(keyCode)\n event.stopPropagation()\n event.preventDefault()\n }\n if (\n code === EVENT_CODE.enter &&\n userInputDate.value === null &&\n userInputTime.value === null\n ) {\n // Enter\n emit(innerDate, false)\n }\n }\n }\n\n const handleKeyControl = (keyCode) => {\n const mapping = {\n year: {\n 38: -4,\n 40: 4,\n 37: -1,\n 39: 1,\n offset: (date, step) => date.setFullYear(date.getFullYear() + step),\n },\n month: {\n 38: -4,\n 40: 4,\n 37: -1,\n 39: 1,\n offset: (date, step) => date.setMonth(date.getMonth() + step),\n },\n week: {\n 38: -1,\n 40: 1,\n 37: -1,\n 39: 1,\n offset: (date, step) => date.setDate(date.getDate() + step * 7),\n },\n day: {\n 38: -7,\n 40: 7,\n 37: -1,\n 39: 1,\n offset: (date, step) => date.setDate(date.getDate() + step),\n },\n }\n\n const newDate = innerDate.value.toDate()\n while (Math.abs(innerDate.value.diff(newDate, 'year', true)) < 1) {\n const map = mapping[selectionMode.value]\n map.offset(newDate, map[keyCode])\n if (disabledDate && disabledDate(newDate)) {\n continue\n }\n const result = dayjs(newDate).locale(lang.value)\n innerDate.value = result\n ctx.emit('pick', result, true)\n break\n }\n }\n\n const handlePanelChange = (mode: 'month' | 'year') => {\n ctx.emit(\n 'panel-change',\n innerDate.value.toDate(),\n mode,\n currentView.value\n )\n }\n\n ctx.emit('set-picker-option', ['isValidValue', isValidValue])\n ctx.emit('set-picker-option', ['formatToString', formatToString])\n ctx.emit('set-picker-option', ['parseUserInput', parseUserInput])\n ctx.emit('set-picker-option', ['handleKeydown', handleKeydown])\n\n watch(\n () => props.parsedValue,\n (val) => {\n if (val) {\n if (selectionMode.value === 'dates') return\n if (Array.isArray(val)) return\n innerDate.value = val\n } else {\n innerDate.value = getDefaultValue()\n }\n },\n { immediate: true }\n )\n\n return {\n handleTimePick,\n handleTimePickClose,\n onTimePickerInputFocus,\n timePickerVisible,\n visibleTime,\n visibleDate,\n showTime,\n changeToNow,\n onConfirm,\n footerVisible,\n handleYearPick,\n showMonthPicker,\n showYearPicker,\n handleMonthPick,\n hasShortcuts,\n shortcuts,\n arrowControl,\n disabledDate,\n cellClassName,\n selectionMode,\n handleShortcutClick,\n prevYear_,\n nextYear_,\n prevMonth_,\n nextMonth_,\n innerDate,\n t,\n yearLabel,\n currentView,\n month,\n handleDatePick,\n handleVisibleTimeChange,\n handleVisibleDateChange,\n timeFormat,\n userInputTime,\n userInputDate,\n }\n },\n})\n</script>\n"],"names":["DateTable","TimePickPanel","MonthTable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA2LA,wBAAwB,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,IAAI,CAAC;;AAE7C,EAAE,UAAU,EAAE;AACd,eAAIA;AACJ,IAAI;;AAEJ,IAAI;AACJ,mBAAIC,QAAa;AACjB,gBAAIC,QAAU;;AAEd,IAAI;IACA;IACA;IACA;;;OAGG,EAAE;IACL,OAAO,EAAE;MACP,IAAI,EAAE;MACN,OAAO;KACR;IACD,WAAW;MACT,IAAI,EAAE,CAAC;;;MAGP,IAAI,EAAE,MAAM;MACZ;KACD;QACG,EAAE;MACJ,IAAI,EAAE,MAAM;;MAEZ,SAAS,EAAE;;;OAGV,EAAE,CAAC;OACH,CAAC,KAAK,EAAE,GAAG;UACR,EAAE,CAAC,EAAE;IACX;IACA,MAAM;UACA;MACJ;MACA,YAAY;;;MAGZ,YAAY;MACZ,YAAY;KACb,GAAG,UAAU,MAAM,CAAC;IACrB,MAAM,SAAS,MAAM,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM;MAClC;MACA,CAAC;UACG,KAAK,GAAG;MACZ,OAAO;MACP,CAAC;UACG,IAAI,GAAG;MACX,OAAO;MACP;;IAEF,MAA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