@element-plus/nightly 0.0.20241204 → 0.0.20241206
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.full.js +16 -19
- package/dist/index.full.min.js +7 -7
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +16 -19
- 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-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.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/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.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/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.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/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.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/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.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/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.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/src/alert2.mjs +4 -10
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +35 -35
- package/es/components/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
- package/es/components/dropdown/src/dropdown.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.mjs +92 -305
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +38 -38
- package/es/components/dropdown/src/dropdown2.mjs +305 -92
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +11 -52
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +52 -11
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/index.mjs +5 -5
- package/es/components/mention/index.mjs +2 -2
- package/es/components/mention/src/mention.mjs +62 -282
- package/es/components/mention/src/mention.mjs.map +1 -1
- package/es/components/mention/src/mention.vue.d.ts +35 -35
- package/es/components/mention/src/mention2.mjs +282 -62
- package/es/components/mention/src/mention2.mjs.map +1 -1
- package/es/components/menu/src/menu.d.ts +5 -4
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/message/src/method.mjs.map +1 -1
- package/es/components/message-box/src/messageBox.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +16 -209
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +209 -16
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popover/src/popover.d.ts +1 -1
- package/es/components/popover/src/popover.mjs +2 -2
- package/es/components/popover/src/popover.vue.d.ts +3 -3
- package/es/components/popper/src/content.d.ts +3 -2
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content.vue.d.ts +3 -3
- package/es/components/popper/src/popper.d.ts +1 -1
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +83 -258
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +258 -83
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/select/src/select.d.ts +2 -2
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +73 -73
- package/es/components/select/src/useSelect.d.ts +70 -70
- package/es/components/select/src/useSelect.mjs +3 -3
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.d.ts +2 -2
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +73 -73
- package/es/components/select-v2/src/useSelect.d.ts +70 -70
- package/es/components/slider/src/composables/use-slider-button.d.ts +35 -35
- package/es/components/table/src/filter-panel.vue.d.ts +35 -35
- package/es/components/time-select/src/time-select.d.ts +2 -1
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +3 -3
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/content.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +8 -8
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +18 -18
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs +72 -14
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger2.mjs +14 -72
- package/es/components/tooltip/src/trigger2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/content.d.ts +2 -1
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.vue.d.ts +3 -3
- package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/tooltip-v2/src/trigger.mjs +12 -89
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/components/tree-v2/src/composables/useCheck.d.ts +1 -1
- package/es/components/tree-v2/src/composables/useCheck.mjs +7 -4
- package/es/components/tree-v2/src/composables/useCheck.mjs.map +1 -1
- package/es/components/tree-v2/src/composables/useTree.d.ts +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/hooks/use-ordered-children/index.mjs.map +1 -1
- package/es/index.mjs +5 -5
- package/es/utils/index.mjs +0 -1
- package/es/utils/index.mjs.map +1 -1
- package/es/utils/types.d.ts +0 -1
- package/es/utils/types.mjs +0 -1
- package/es/utils/types.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/src/alert2.js +4 -10
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +35 -35
- package/lib/components/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +2 -2
- package/lib/components/dropdown/src/dropdown.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.js +101 -305
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +38 -38
- package/lib/components/dropdown/src/dropdown2.js +305 -101
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +11 -52
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +52 -11
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/index.js +5 -5
- package/lib/components/mention/index.js +2 -2
- package/lib/components/mention/src/mention.js +61 -280
- package/lib/components/mention/src/mention.js.map +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +35 -35
- package/lib/components/mention/src/mention2.js +280 -61
- package/lib/components/mention/src/mention2.js.map +1 -1
- package/lib/components/menu/src/menu.d.ts +5 -4
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/message/src/method.js.map +1 -1
- package/lib/components/message-box/src/messageBox.js.map +1 -1
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +16 -209
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +209 -16
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popover/src/popover.d.ts +1 -1
- package/lib/components/popover/src/popover.js +2 -2
- package/lib/components/popover/src/popover.vue.d.ts +3 -3
- package/lib/components/popper/src/content.d.ts +3 -2
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content.vue.d.ts +3 -3
- package/lib/components/popper/src/popper.d.ts +1 -1
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +83 -257
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +257 -83
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +31 -27
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -31
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/select/src/select.d.ts +2 -2
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +73 -73
- package/lib/components/select/src/useSelect.d.ts +70 -70
- package/lib/components/select/src/useSelect.js +3 -3
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/src/defaults.d.ts +2 -2
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +73 -73
- package/lib/components/select-v2/src/useSelect.d.ts +70 -70
- package/lib/components/slider/src/composables/use-slider-button.d.ts +35 -35
- package/lib/components/table/src/filter-panel.vue.d.ts +35 -35
- package/lib/components/time-select/src/time-select.d.ts +2 -1
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +3 -3
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/content.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +8 -8
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +18 -18
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip/src/trigger.js +72 -14
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger2.js +14 -72
- package/lib/components/tooltip/src/trigger2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/content.d.ts +2 -1
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.vue.d.ts +3 -3
- package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/tooltip-v2/src/trigger.js +12 -89
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +89 -12
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/components/tree-v2/src/composables/useCheck.d.ts +1 -1
- package/lib/components/tree-v2/src/composables/useCheck.js +7 -4
- package/lib/components/tree-v2/src/composables/useCheck.js.map +1 -1
- package/lib/components/tree-v2/src/composables/useTree.d.ts +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/hooks/use-ordered-children/index.js.map +1 -1
- package/lib/index.js +5 -5
- package/lib/utils/index.js +0 -5
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/types.d.ts +0 -1
- package/lib/utils/types.js +0 -5
- package/lib/utils/types.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/web-types.json +1 -1
- package/es/components/form/mocks/mock-data.d.ts +0 -13
- package/lib/components/form/mocks/mock-data.d.ts +0 -13
@@ -180,7 +180,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
180
180
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
181
181
|
__epPropKey: true;
|
182
182
|
};
|
183
|
-
effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
183
|
+
effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
184
184
|
enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
185
185
|
pure: BooleanConstructor;
|
186
186
|
focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
@@ -403,7 +403,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
403
403
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
|
404
404
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("@element-plus/nightly/es/components/popper").Placement, unknown>;
|
405
405
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
|
406
|
-
readonly effect: string
|
406
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown>;
|
407
407
|
readonly showAfter: number;
|
408
408
|
readonly hideAfter: number;
|
409
409
|
readonly autoClose: number;
|
@@ -544,7 +544,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
544
544
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
545
545
|
__epPropKey: true;
|
546
546
|
};
|
547
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
547
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
548
548
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
549
549
|
readonly pure: BooleanConstructor;
|
550
550
|
readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
@@ -818,7 +818,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
818
818
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
819
819
|
__epPropKey: true;
|
820
820
|
};
|
821
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
821
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
822
822
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
823
823
|
readonly pure: BooleanConstructor;
|
824
824
|
readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
@@ -965,7 +965,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
965
965
|
readonly visible: boolean;
|
966
966
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("@element-plus/nightly/es/components/popper").Placement, unknown>;
|
967
967
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
|
968
|
-
readonly effect: string
|
968
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown>;
|
969
969
|
readonly virtualTriggering: boolean;
|
970
970
|
readonly boundariesPadding: number;
|
971
971
|
readonly fallbackPlacements: import("@element-plus/nightly/es/components/popper").Placement[];
|
@@ -1087,7 +1087,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
1087
1087
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
1088
1088
|
__epPropKey: true;
|
1089
1089
|
};
|
1090
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
1090
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
1091
1091
|
readonly visible: BooleanConstructor;
|
1092
1092
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1093
1093
|
readonly pure: BooleanConstructor;
|
@@ -1352,7 +1352,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
1352
1352
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
1353
1353
|
__epPropKey: true;
|
1354
1354
|
};
|
1355
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
1355
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
1356
1356
|
readonly visible: BooleanConstructor;
|
1357
1357
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1358
1358
|
readonly pure: BooleanConstructor;
|
@@ -1510,7 +1510,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
1510
1510
|
readonly visible: boolean;
|
1511
1511
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("@element-plus/nightly/es/components/popper").Placement, unknown>;
|
1512
1512
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
|
1513
|
-
readonly effect: string
|
1513
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown>;
|
1514
1514
|
readonly virtualTriggering: boolean;
|
1515
1515
|
readonly boundariesPadding: number;
|
1516
1516
|
readonly fallbackPlacements: import("@element-plus/nightly/es/components/popper").Placement[];
|
@@ -1652,7 +1652,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
1652
1652
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
1653
1653
|
__epPropKey: true;
|
1654
1654
|
};
|
1655
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
1655
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
1656
1656
|
readonly visible: BooleanConstructor;
|
1657
1657
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1658
1658
|
readonly pure: BooleanConstructor;
|
@@ -1811,7 +1811,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
1811
1811
|
readonly visible: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
|
1812
1812
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("@element-plus/nightly/es/components/popper").Placement, unknown>;
|
1813
1813
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
|
1814
|
-
readonly effect: string
|
1814
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown>;
|
1815
1815
|
readonly showAfter: number;
|
1816
1816
|
readonly hideAfter: number;
|
1817
1817
|
readonly autoClose: number;
|
@@ -1972,7 +1972,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
1972
1972
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
1973
1973
|
__epPropKey: true;
|
1974
1974
|
};
|
1975
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
1975
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
1976
1976
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1977
1977
|
readonly pure: BooleanConstructor;
|
1978
1978
|
readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
@@ -2119,7 +2119,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
2119
2119
|
readonly visible: boolean;
|
2120
2120
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("@element-plus/nightly/es/components/popper").Placement, unknown>;
|
2121
2121
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
|
2122
|
-
readonly effect: string
|
2122
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown>;
|
2123
2123
|
readonly virtualTriggering: boolean;
|
2124
2124
|
readonly boundariesPadding: number;
|
2125
2125
|
readonly fallbackPlacements: import("@element-plus/nightly/es/components/popper").Placement[];
|
@@ -2241,7 +2241,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
2241
2241
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
2242
2242
|
__epPropKey: true;
|
2243
2243
|
};
|
2244
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
2244
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
2245
2245
|
readonly visible: BooleanConstructor;
|
2246
2246
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
2247
2247
|
readonly pure: BooleanConstructor;
|
@@ -2506,7 +2506,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
2506
2506
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
2507
2507
|
__epPropKey: true;
|
2508
2508
|
};
|
2509
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
2509
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
2510
2510
|
readonly visible: BooleanConstructor;
|
2511
2511
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
2512
2512
|
readonly pure: BooleanConstructor;
|
@@ -2664,7 +2664,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
2664
2664
|
readonly visible: boolean;
|
2665
2665
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("@element-plus/nightly/es/components/popper").Placement, unknown>;
|
2666
2666
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
|
2667
|
-
readonly effect: string
|
2667
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown>;
|
2668
2668
|
readonly virtualTriggering: boolean;
|
2669
2669
|
readonly boundariesPadding: number;
|
2670
2670
|
readonly fallbackPlacements: import("@element-plus/nightly/es/components/popper").Placement[];
|
@@ -2806,7 +2806,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
2806
2806
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
2807
2807
|
__epPropKey: true;
|
2808
2808
|
};
|
2809
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
2809
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
2810
2810
|
readonly visible: BooleanConstructor;
|
2811
2811
|
readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
2812
2812
|
readonly pure: BooleanConstructor;
|
@@ -3163,7 +3163,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
3163
3163
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
3164
3164
|
__epPropKey: true;
|
3165
3165
|
};
|
3166
|
-
effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
3166
|
+
effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown, "dark", boolean>;
|
3167
3167
|
enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
3168
3168
|
pure: BooleanConstructor;
|
3169
3169
|
focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
@@ -3315,7 +3315,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
3315
3315
|
open: boolean;
|
3316
3316
|
placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, import("@element-plus/nightly/es/components/popper").Placement, unknown>;
|
3317
3317
|
strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
|
3318
|
-
effect: string
|
3318
|
+
effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/components/popper").PopperEffect))[], unknown, unknown>;
|
3319
3319
|
showAfter: number;
|
3320
3320
|
hideAfter: number;
|
3321
3321
|
autoClose: number;
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, toRef, computed, provide, readonly, unref, watch,
|
|
2
2
|
import { ElPopper } from '../../popper/index.mjs';
|
3
3
|
import { TOOLTIP_INJECTION_KEY } from './constants.mjs';
|
4
4
|
import { useTooltipProps, tooltipEmits, useTooltipModelToggle } from './tooltip.mjs';
|
5
|
-
import ElTooltipTrigger from './
|
5
|
+
import ElTooltipTrigger from './trigger.mjs';
|
6
6
|
import ElTooltipContent from './content2.mjs';
|
7
7
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
8
8
|
import { usePopperContainer } from '../../../hooks/use-popper-container/index.mjs';
|
@@ -1,19 +1,77 @@
|
|
1
|
-
import {
|
2
|
-
import
|
3
|
-
import {
|
1
|
+
import { defineComponent, inject, ref, toRef, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from 'vue';
|
2
|
+
import '../../popper/index.mjs';
|
3
|
+
import { TOOLTIP_INJECTION_KEY } from './constants.mjs';
|
4
|
+
import { useTooltipTriggerProps } from './trigger2.mjs';
|
5
|
+
import { whenTrigger } from './utils.mjs';
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
7
|
+
import ElPopperTrigger from '../../popper/src/trigger2.mjs';
|
8
|
+
import { composeEventHandlers } from '../../../utils/dom/event.mjs';
|
9
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
4
10
|
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
const __default__ = defineComponent({
|
12
|
+
name: "ElTooltipTrigger"
|
13
|
+
});
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
|
+
...__default__,
|
16
|
+
props: useTooltipTriggerProps,
|
17
|
+
setup(__props, { expose }) {
|
18
|
+
const props = __props;
|
19
|
+
const ns = useNamespace("tooltip");
|
20
|
+
const { controlled, id, open, onOpen, onClose, onToggle } = inject(TOOLTIP_INJECTION_KEY, void 0);
|
21
|
+
const triggerRef = ref(null);
|
22
|
+
const stopWhenControlledOrDisabled = () => {
|
23
|
+
if (unref(controlled) || props.disabled) {
|
24
|
+
return true;
|
25
|
+
}
|
26
|
+
};
|
27
|
+
const trigger = toRef(props, "trigger");
|
28
|
+
const onMouseenter = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onOpen));
|
29
|
+
const onMouseleave = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onClose));
|
30
|
+
const onClick = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "click", (e) => {
|
31
|
+
if (e.button === 0) {
|
32
|
+
onToggle(e);
|
33
|
+
}
|
34
|
+
}));
|
35
|
+
const onFocus = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onOpen));
|
36
|
+
const onBlur = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onClose));
|
37
|
+
const onContextMenu = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "contextmenu", (e) => {
|
38
|
+
e.preventDefault();
|
39
|
+
onToggle(e);
|
40
|
+
}));
|
41
|
+
const onKeydown = composeEventHandlers(stopWhenControlledOrDisabled, (e) => {
|
42
|
+
const { code } = e;
|
43
|
+
if (props.triggerKeys.includes(code)) {
|
44
|
+
e.preventDefault();
|
45
|
+
onToggle(e);
|
46
|
+
}
|
47
|
+
});
|
48
|
+
expose({
|
49
|
+
triggerRef
|
50
|
+
});
|
51
|
+
return (_ctx, _cache) => {
|
52
|
+
return openBlock(), createBlock(unref(ElPopperTrigger), {
|
53
|
+
id: unref(id),
|
54
|
+
"virtual-ref": _ctx.virtualRef,
|
55
|
+
open: unref(open),
|
56
|
+
"virtual-triggering": _ctx.virtualTriggering,
|
57
|
+
class: normalizeClass(unref(ns).e("trigger")),
|
58
|
+
onBlur: unref(onBlur),
|
59
|
+
onClick: unref(onClick),
|
60
|
+
onContextmenu: unref(onContextMenu),
|
61
|
+
onFocus: unref(onFocus),
|
62
|
+
onMouseenter: unref(onMouseenter),
|
63
|
+
onMouseleave: unref(onMouseleave),
|
64
|
+
onKeydown: unref(onKeydown)
|
65
|
+
}, {
|
66
|
+
default: withCtx(() => [
|
67
|
+
renderSlot(_ctx.$slots, "default")
|
68
|
+
]),
|
69
|
+
_: 3
|
70
|
+
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
|
71
|
+
};
|
15
72
|
}
|
16
73
|
});
|
74
|
+
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "trigger.vue"]]);
|
17
75
|
|
18
|
-
export {
|
76
|
+
export { ElTooltipTrigger as default };
|
19
77
|
//# sourceMappingURL=trigger.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"trigger.mjs","sources":["../../../../../../packages/components/tooltip/src/trigger.
|
1
|
+
{"version":3,"file":"trigger.mjs","sources":["../../../../../../packages/components/tooltip/src/trigger.vue"],"sourcesContent":["<template>\n <el-popper-trigger\n :id=\"id\"\n :virtual-ref=\"virtualRef\"\n :open=\"open\"\n :virtual-triggering=\"virtualTriggering\"\n :class=\"ns.e('trigger')\"\n @blur=\"onBlur\"\n @click=\"onClick\"\n @contextmenu=\"onContextMenu\"\n @focus=\"onFocus\"\n @mouseenter=\"onMouseenter\"\n @mouseleave=\"onMouseleave\"\n @keydown=\"onKeydown\"\n >\n <slot />\n </el-popper-trigger>\n</template>\n<script lang=\"ts\" setup>\nimport { inject, ref, toRef, unref } from 'vue'\nimport { ElPopperTrigger } from '@element-plus/components/popper'\nimport { composeEventHandlers } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { TOOLTIP_INJECTION_KEY } from './constants'\nimport { useTooltipTriggerProps } from './trigger'\nimport { whenTrigger } from './utils'\nimport type { OnlyChildExpose } from '@element-plus/components/slot'\n\ndefineOptions({\n name: 'ElTooltipTrigger',\n})\n\nconst props = defineProps(useTooltipTriggerProps)\n\nconst ns = useNamespace('tooltip')\nconst { controlled, id, open, onOpen, onClose, onToggle } = inject(\n TOOLTIP_INJECTION_KEY,\n undefined\n)!\n\nconst triggerRef = ref<OnlyChildExpose | null>(null)\n\nconst stopWhenControlledOrDisabled = () => {\n if (unref(controlled) || props.disabled) {\n return true\n }\n}\nconst trigger = toRef(props, 'trigger')\nconst onMouseenter = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'hover', onOpen)\n)\nconst onMouseleave = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'hover', onClose)\n)\nconst onClick = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'click', (e) => {\n // distinguish left click\n if ((e as MouseEvent).button === 0) {\n onToggle(e)\n }\n })\n)\n\nconst onFocus = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'focus', onOpen)\n)\n\nconst onBlur = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'focus', onClose)\n)\n\nconst onContextMenu = composeEventHandlers(\n stopWhenControlledOrDisabled,\n whenTrigger(trigger, 'contextmenu', (e: Event) => {\n e.preventDefault()\n onToggle(e)\n })\n)\n\nconst onKeydown = composeEventHandlers(\n stopWhenControlledOrDisabled,\n (e: KeyboardEvent) => {\n const { code } = e\n if (props.triggerKeys.includes(code)) {\n e.preventDefault()\n onToggle(e)\n }\n }\n)\n\ndefineExpose({\n /**\n * @description trigger element\n */\n triggerRef,\n})\n</script>\n"],"names":["_openBlock","_createBlock","_unref","_normalizeClass","_withCtx","_renderSlot"],"mappings":";;;;;;;;;;mCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AACjC,IAAA,MAAM,EAAE,UAAY,EAAA,EAAA,EAAI,MAAM,MAAQ,EAAA,OAAA,EAAS,UAAa,GAAA,MAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IAC1D,MAAA,UAAA,GAAA,GAAA,CAAA,IAAA,CAAA,CAAA;AAAA,IACA,MAAA,4BAAA,GAAA,MAAA;AAAA,MACF,IAAA,KAAA,CAAA,UAAA,CAAA,IAAA,KAAA,CAAA,QAAA,EAAA;AAEA,QAAM,OAAA,IAAA,CAAA;AAEN,OAAA;AACE,KAAA,CAAA;AACE,IAAO,MAAA,OAAA,GAAA,KAAA,CAAA,KAAA,EAAA,SAAA,CAAA,CAAA;AAAA,IACT,MAAA,YAAA,GAAA,oBAAA,CAAA,4BAAA,EAAA,WAAA,CAAA,OAAA,EAAA,OAAA,EAAA,MAAA,CAAA,CAAA,CAAA;AAAA,IACF,MAAA,YAAA,GAAA,oBAAA,CAAA,4BAAA,EAAA,WAAA,CAAA,OAAA,EAAA,OAAA,EAAA,OAAA,CAAA,CAAA,CAAA;AACA,IAAM,MAAA,OAAA,GAAU,oBAAsB,CAAA,4BAAA,EAAA,WAAA,CAAA,OAAA,EAAA,OAAA,EAAA,CAAA,CAAA,KAAA;AACtC,MAAA,IAAM,CAAe,CAAA,MAAA,KAAA,CAAA,EAAA;AAAA,QACnB,QAAA,CAAA,CAAA,CAAA,CAAA;AAAA,OACA;AAAoC,KACtC,CAAA,CAAA,CAAA;AACA,IAAA,MAAM,OAAe,GAAA,oBAAA,CAAA,4BAAA,EAAA,WAAA,CAAA,OAAA,EAAA,OAAA,EAAA,MAAA,CAAA,CAAA,CAAA;AAAA,IACnB,MAAA,MAAA,GAAA,oBAAA,CAAA,4BAAA,EAAA,WAAA,CAAA,OAAA,EAAA,OAAA,EAAA,OAAA,CAAA,CAAA,CAAA;AAAA,IACA,MAAA,aAAqB,GAAA,oBAAgB,CAAA,4BAAA,EAAA,WAAA,CAAA,OAAA,EAAA,aAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACvC,CAAA,CAAA,cAAA,EAAA,CAAA;AACA,MAAA,QAAgB,CAAA,CAAA,CAAA,CAAA;AAAA,KACd,CAAA,CAAA,CAAA;AAAA,IAAA,MACY,SAAA,GAAA,oBAAyB,CAAA,4BAAA,EAAA,CAAA,CAAA,KAAA;AAEnC,MAAK,MAAA,EAAiB,WAAW;AAC/B,MAAA,IAAA,KAAA,CAAA,WAAU,CAAA,QAAA,CAAA,IAAA,CAAA,EAAA;AAAA,QACZ,CAAA,CAAA,cAAA,EAAA,CAAA;AAAA,QACD,QAAA,CAAA,CAAA,CAAA,CAAA;AAAA,OACH;AAEA,KAAA,CAAA,CAAA;AAAgB,IACd,MAAA,CAAA;AAAA,MACA,UAAA;AAAoC,KACtC,CAAA,CAAA;AAEA,IAAA,OAAe,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACb,OAAAA,SAAA,EAAA,EAAAC,WAAA,CAAAC,KAAA,CAAA,eAAA,CAAA,EAAA;AAAA,QACA,EAAA,EAAAA,KAAY,CAAS,EAAA,CAAA;AAAgB,QACvC,aAAA,EAAA,IAAA,CAAA,UAAA;AAEA,QAAA,IAAsB,EAAAA,KAAA,CAAA,IAAA,CAAA;AAAA,QACpB,oBAAA,EAAA,IAAA,CAAA,iBAAA;AAAA,QACY,KAAA,EAAAC,cAAwB,CAAAD,KAAA,CAAA,EAAA,CAAA,CAAA,CAAC,CAAa,SAAA,CAAA,CAAA;AAChD,QAAA,MAAiB,EAAAA,KAAA,CAAA,MAAA,CAAA;AACjB,QAAA,OAAA,EAASA,KAAC,CAAA,OAAA,CAAA;AAAA,QACX,aAAA,EAAAA,KAAA,CAAA,aAAA,CAAA;AAAA,QACH,OAAA,EAAAA,KAAA,CAAA,OAAA,CAAA;AAEA,QAAA,YAAkB,EAAAA,KAAA,CAAA,YAAA,CAAA;AAAA,QAChB,YAAA,EAAAA,KAAA,CAAA,YAAA,CAAA;AAAA,QACsB,SAAA,EAAAA,KAAA,CAAA,SAAA,CAAA;AACpB,OAAM,EAAA;AACN,QAAA,OAAU,EAAAE,OAAA,CAAA,MAAqB;AAC7B,UAAAC,UAAiB,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AACjB,SAAA,CAAA;AAAU,QACZ,CAAA,EAAA,CAAA;AAAA,OACF,EAAA,CAAA,EAAA,CAAA,IAAA,EAAA,aAAA,EAAA,MAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,QAAA,EAAA,SAAA,EAAA,eAAA,EAAA,SAAA,EAAA,cAAA,EAAA,cAAA,EAAA,WAAA,CAAA,CAAA,CAAA;AAAA,KACF,CAAA;AAEA,GAAa;AAAA,CAAA,CAAA,CAAA;AAAA,uBAAA,gBAAA,WAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,EAAA,aAAA,CAAA,CAAA,CAAA;;;;"}
|
@@ -1,77 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
import '
|
3
|
-
import {
|
4
|
-
import { useTooltipTriggerProps } from './trigger.mjs';
|
5
|
-
import { whenTrigger } from './utils.mjs';
|
6
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
7
|
-
import ElPopperTrigger from '../../popper/src/trigger2.mjs';
|
8
|
-
import { composeEventHandlers } from '../../../utils/dom/event.mjs';
|
9
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
1
|
+
import { popperTriggerProps } from '../../popper/src/trigger.mjs';
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
3
|
+
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
10
4
|
|
11
|
-
const
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
const triggerRef = ref(null);
|
22
|
-
const stopWhenControlledOrDisabled = () => {
|
23
|
-
if (unref(controlled) || props.disabled) {
|
24
|
-
return true;
|
25
|
-
}
|
26
|
-
};
|
27
|
-
const trigger = toRef(props, "trigger");
|
28
|
-
const onMouseenter = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onOpen));
|
29
|
-
const onMouseleave = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "hover", onClose));
|
30
|
-
const onClick = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "click", (e) => {
|
31
|
-
if (e.button === 0) {
|
32
|
-
onToggle(e);
|
33
|
-
}
|
34
|
-
}));
|
35
|
-
const onFocus = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onOpen));
|
36
|
-
const onBlur = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "focus", onClose));
|
37
|
-
const onContextMenu = composeEventHandlers(stopWhenControlledOrDisabled, whenTrigger(trigger, "contextmenu", (e) => {
|
38
|
-
e.preventDefault();
|
39
|
-
onToggle(e);
|
40
|
-
}));
|
41
|
-
const onKeydown = composeEventHandlers(stopWhenControlledOrDisabled, (e) => {
|
42
|
-
const { code } = e;
|
43
|
-
if (props.triggerKeys.includes(code)) {
|
44
|
-
e.preventDefault();
|
45
|
-
onToggle(e);
|
46
|
-
}
|
47
|
-
});
|
48
|
-
expose({
|
49
|
-
triggerRef
|
50
|
-
});
|
51
|
-
return (_ctx, _cache) => {
|
52
|
-
return openBlock(), createBlock(unref(ElPopperTrigger), {
|
53
|
-
id: unref(id),
|
54
|
-
"virtual-ref": _ctx.virtualRef,
|
55
|
-
open: unref(open),
|
56
|
-
"virtual-triggering": _ctx.virtualTriggering,
|
57
|
-
class: normalizeClass(unref(ns).e("trigger")),
|
58
|
-
onBlur: unref(onBlur),
|
59
|
-
onClick: unref(onClick),
|
60
|
-
onContextmenu: unref(onContextMenu),
|
61
|
-
onFocus: unref(onFocus),
|
62
|
-
onMouseenter: unref(onMouseenter),
|
63
|
-
onMouseleave: unref(onMouseleave),
|
64
|
-
onKeydown: unref(onKeydown)
|
65
|
-
}, {
|
66
|
-
default: withCtx(() => [
|
67
|
-
renderSlot(_ctx.$slots, "default")
|
68
|
-
]),
|
69
|
-
_: 3
|
70
|
-
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
|
71
|
-
};
|
5
|
+
const useTooltipTriggerProps = buildProps({
|
6
|
+
...popperTriggerProps,
|
7
|
+
disabled: Boolean,
|
8
|
+
trigger: {
|
9
|
+
type: definePropType([String, Array]),
|
10
|
+
default: "hover"
|
11
|
+
},
|
12
|
+
triggerKeys: {
|
13
|
+
type: definePropType(Array),
|
14
|
+
default: () => [EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space]
|
72
15
|
}
|
73
16
|
});
|
74
|
-
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "trigger.vue"]]);
|
75
17
|
|
76
|
-
export {
|
18
|
+
export { useTooltipTriggerProps };
|
77
19
|
//# sourceMappingURL=trigger2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"trigger2.mjs","sources":["../../../../../../packages/components/tooltip/src/trigger.
|
1
|
+
{"version":3,"file":"trigger2.mjs","sources":["../../../../../../packages/components/tooltip/src/trigger.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { popperTriggerProps } from '@element-plus/components/popper'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport type { Arrayable } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport type TooltipTriggerType = 'hover' | 'focus' | 'click' | 'contextmenu'\n\nexport const useTooltipTriggerProps = buildProps({\n ...popperTriggerProps,\n /**\n * @description whether Tooltip is disabled\n */\n disabled: Boolean,\n /**\n * @description How should the tooltip be triggered (to show)\n */\n trigger: {\n type: definePropType<Arrayable<TooltipTriggerType>>([String, Array]),\n default: 'hover',\n },\n /**\n * @description When you click the mouse to focus on the trigger element, you can define a set of keyboard codes to control the display of tooltip through the keyboard\n */\n triggerKeys: {\n type: definePropType<string[]>(Array),\n default: () => [EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space],\n },\n} as const)\n\nexport type ElTooltipTriggerProps = ExtractPropTypes<\n typeof useTooltipTriggerProps\n>\n"],"names":[],"mappings":";;;;AAGY,MAAC,sBAAsB,GAAG,UAAU,CAAC;AACjD,EAAE,GAAG,kBAAkB;AACvB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,CAAC;AAC/E,GAAG;AACH,CAAC;;;;"}
|
@@ -3,7 +3,7 @@ export { tooltipV2ArrowProps, tooltipV2ArrowSpecialProps } from './src/arrow.mjs
|
|
3
3
|
export { tooltipV2ContentProps } from './src/content.mjs';
|
4
4
|
export { tooltipV2RootProps } from './src/root.mjs';
|
5
5
|
export { tooltipV2Props } from './src/tooltip.mjs';
|
6
|
-
export { tooltipV2TriggerProps } from './src/
|
6
|
+
export { tooltipV2TriggerProps } from './src/trigger.mjs';
|
7
7
|
export { TOOLTIP_V2_OPEN, tooltipV2ContentKey, tooltipV2RootKey } from './src/constants.mjs';
|
8
8
|
import { withInstall } from '../../utils/vue/install.mjs';
|
9
9
|
|
@@ -1,9 +1,10 @@
|
|
1
|
+
import type { PopperEffect } from '@element-plus/nightly/es/components/popper';
|
1
2
|
import type { ExtractPropTypes } from 'vue';
|
2
3
|
import type { Placement, Strategy, VirtualElement } from '@floating-ui/dom';
|
3
4
|
export declare const tooltipV2ContentProps: {
|
4
5
|
readonly ariaLabel: StringConstructor;
|
5
6
|
readonly arrowPadding: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => number) | (() => number) | ((new (...args: any[]) => number) | (() => number))[], unknown, unknown, 5, boolean>;
|
6
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
7
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown, "light", boolean>;
|
7
8
|
readonly contentClass: StringConstructor;
|
8
9
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
|
9
10
|
readonly reference: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | VirtualElement) | (() => HTMLElement | VirtualElement | null) | ((new (...args: any[]) => HTMLElement | VirtualElement) | (() => HTMLElement | VirtualElement | null))[], unknown, unknown, null, boolean>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"content.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/content.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { PopperEffect } from '@element-plus/components/popper'\nimport type { ExtractPropTypes } from 'vue'\nimport type { Placement, Strategy, VirtualElement } from '@floating-ui/dom'\n\nconst tooltipV2Strategies = ['absolute', 'fixed'] as const\n\nconst tooltipV2Placements = [\n 'top-start',\n 'top-end',\n 'top',\n 'bottom-start',\n 'bottom-end',\n 'bottom',\n 'left-start',\n 'left-end',\n 'left',\n 'right-start',\n 'right-end',\n 'right',\n] as const\n\nexport const tooltipV2ContentProps = buildProps({\n arrowPadding: {\n type: definePropType<number>(Number),\n default: 5,\n },\n effect: {\n type: definePropType<PopperEffect
|
1
|
+
{"version":3,"file":"content.mjs","sources":["../../../../../../packages/components/tooltip-v2/src/content.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { PopperEffect } from '@element-plus/components/popper'\nimport type { ExtractPropTypes } from 'vue'\nimport type { Placement, Strategy, VirtualElement } from '@floating-ui/dom'\n\nconst tooltipV2Strategies = ['absolute', 'fixed'] as const\n\nconst tooltipV2Placements = [\n 'top-start',\n 'top-end',\n 'top',\n 'bottom-start',\n 'bottom-end',\n 'bottom',\n 'left-start',\n 'left-end',\n 'left',\n 'right-start',\n 'right-end',\n 'right',\n] as const\n\nexport const tooltipV2ContentProps = buildProps({\n arrowPadding: {\n type: definePropType<number>(Number),\n default: 5,\n },\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n contentClass: String,\n /**\n * Placement of tooltip content relative to reference element (when absent it refers to trigger)\n */\n placement: {\n type: definePropType<Placement>(String),\n values: tooltipV2Placements,\n default: 'bottom',\n },\n /**\n * Reference element for tooltip content to set its position\n */\n reference: {\n type: definePropType<HTMLElement | VirtualElement | null>(Object),\n default: null,\n },\n offset: {\n type: Number,\n default: 8,\n },\n strategy: {\n type: definePropType<Strategy>(String),\n values: tooltipV2Strategies,\n default: 'absolute',\n },\n showArrow: Boolean,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport type TooltipV2ContentProps = ExtractPropTypes<\n typeof tooltipV2ContentProps\n>\n"],"names":[],"mappings":";;;AAEA,MAAM,mBAAmB,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAClD,MAAM,mBAAmB,GAAG;AAC5B,EAAE,WAAW;AACb,EAAE,SAAS;AACX,EAAE,KAAK;AACP,EAAE,cAAc;AAChB,EAAE,YAAY;AACd,EAAE,QAAQ;AACV,EAAE,YAAY;AACd,EAAE,UAAU;AACZ,EAAE,MAAM;AACR,EAAE,aAAa;AACf,EAAE,WAAW;AACb,EAAE,OAAO;AACT,CAAC,CAAC;AACU,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,YAAY,EAAE,MAAM;AACtB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,MAAM,EAAE,mBAAmB;AAC/B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,MAAM,EAAE,mBAAmB;AAC/B,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,GAAG,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC;;;;"}
|
@@ -14,7 +14,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
14
14
|
nowrap: BooleanConstructor;
|
15
15
|
ariaLabel: StringConstructor;
|
16
16
|
arrowPadding: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => number) | (() => number) | ((new (...args: any[]) => number) | (() => number))[], unknown, unknown, 5, boolean>;
|
17
|
-
effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
17
|
+
effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "light", boolean>;
|
18
18
|
contentClass: StringConstructor;
|
19
19
|
placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement))[], "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
|
20
20
|
reference: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
|
@@ -25,7 +25,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
25
25
|
nowrap: BooleanConstructor;
|
26
26
|
ariaLabel: StringConstructor;
|
27
27
|
arrowPadding: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => number) | (() => number) | ((new (...args: any[]) => number) | (() => number))[], unknown, unknown, 5, boolean>;
|
28
|
-
effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
28
|
+
effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "light", boolean>;
|
29
29
|
contentClass: StringConstructor;
|
30
30
|
placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement))[], "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
|
31
31
|
reference: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
|
@@ -38,7 +38,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
38
38
|
placement: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement))[], "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown>;
|
39
39
|
strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "fixed" | "absolute") | (() => import("@floating-ui/dom").Strategy) | ((new (...args: any[]) => "fixed" | "absolute") | (() => import("@floating-ui/dom").Strategy))[], "fixed" | "absolute", unknown>;
|
40
40
|
reference: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown>;
|
41
|
-
effect: string
|
41
|
+
effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
|
42
42
|
showArrow: boolean;
|
43
43
|
arrowPadding: number;
|
44
44
|
}>;
|
@@ -7,7 +7,7 @@ export declare const tooltipV2Props: {
|
|
7
7
|
readonly to: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("vue").RendererElement) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => string | import("vue").RendererElement) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown, "body", boolean>;
|
8
8
|
readonly ariaLabel: StringConstructor;
|
9
9
|
readonly arrowPadding: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => number) | (() => number) | ((new (...args: any[]) => number) | (() => number))[], unknown, unknown, 5, boolean>;
|
10
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
10
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "light", boolean>;
|
11
11
|
readonly contentClass: StringConstructor;
|
12
12
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/core").Placement))[], "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
|
13
13
|
readonly reference: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { tooltipV2RootProps } from './root.mjs';
|
2
|
-
import { tooltipV2TriggerProps } from './
|
2
|
+
import { tooltipV2TriggerProps } from './trigger.mjs';
|
3
3
|
import { tooltipV2ArrowProps } from './arrow.mjs';
|
4
4
|
import { tooltipV2ContentProps } from './content.mjs';
|
5
5
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
@@ -11,7 +11,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
11
11
|
readonly to: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("vue").RendererElement) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => string | import("vue").RendererElement) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown, "body", boolean>;
|
12
12
|
readonly ariaLabel: StringConstructor;
|
13
13
|
readonly arrowPadding: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => number) | (() => number) | ((new (...args: any[]) => number) | (() => number))[], unknown, unknown, 5, boolean>;
|
14
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
14
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "light", boolean>;
|
15
15
|
readonly contentClass: StringConstructor;
|
16
16
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/core").Placement))[], "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
|
17
17
|
readonly reference: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
|
@@ -80,7 +80,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
80
80
|
readonly to: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("vue").RendererElement) | (() => string | import("vue").RendererElement | null | undefined) | ((new (...args: any[]) => string | import("vue").RendererElement) | (() => string | import("vue").RendererElement | null | undefined))[], unknown, unknown, "body", boolean>;
|
81
81
|
readonly ariaLabel: StringConstructor;
|
82
82
|
readonly arrowPadding: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => number) | (() => number) | ((new (...args: any[]) => number) | (() => number))[], unknown, unknown, 5, boolean>;
|
83
|
-
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() =>
|
83
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "light", boolean>;
|
84
84
|
readonly contentClass: StringConstructor;
|
85
85
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/core").Placement))[], "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, "bottom", boolean>;
|
86
86
|
readonly reference: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown, null, boolean>;
|
@@ -151,7 +151,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
|
|
151
151
|
readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/core").Placement))[], "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown>;
|
152
152
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "fixed" | "absolute") | (() => import("@floating-ui/core").Strategy) | ((new (...args: any[]) => "fixed" | "absolute") | (() => import("@floating-ui/core").Strategy))[], "fixed" | "absolute", unknown>;
|
153
153
|
readonly reference: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null) | ((new (...args: any[]) => HTMLElement | import("@floating-ui/dom").VirtualElement) | (() => HTMLElement | import("@floating-ui/dom").VirtualElement | null))[], unknown, unknown>;
|
154
|
-
readonly effect: string
|
154
|
+
readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
|
155
155
|
readonly teleported: boolean;
|
156
156
|
readonly showArrow: boolean;
|
157
157
|
readonly alwaysOn: boolean;
|
@@ -5,11 +5,11 @@ import { tooltipV2ArrowProps } from './arrow.mjs';
|
|
5
5
|
import { tooltipV2ContentProps } from './content.mjs';
|
6
6
|
import { tooltipV2RootProps } from './root.mjs';
|
7
7
|
import { tooltipV2Props } from './tooltip.mjs';
|
8
|
-
import { tooltipV2TriggerProps } from './
|
8
|
+
import { tooltipV2TriggerProps } from './trigger.mjs';
|
9
9
|
import TooltipV2Root from './root2.mjs';
|
10
10
|
import TooltipV2Arrow from './arrow2.mjs';
|
11
11
|
import TooltipV2Content from './content2.mjs';
|
12
|
-
import TooltipV2Trigger from './
|
12
|
+
import TooltipV2Trigger from './trigger2.mjs';
|
13
13
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
14
14
|
|
15
15
|
const __default__ = defineComponent({
|