@element-plus/nightly 0.0.20250917 → 0.0.20250918
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/dist/index.full.js +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- 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/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.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/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.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/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.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/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.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-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.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/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +71 -32
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +32 -71
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +95 -18
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +18 -95
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +114 -282
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +282 -114
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +69 -234
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +234 -69
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +12 -12
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +83 -270
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +270 -83
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +25 -71
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +71 -25
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.mjs +166 -15
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +15 -166
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -140
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +140 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/sizes.mjs +71 -23
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +23 -71
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +6 -26
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +26 -6
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +50 -137
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +137 -50
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +18 -48
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +48 -18
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/split-panel.mjs +157 -17
- package/es/components/splitter/src/split-panel.mjs.map +1 -1
- package/es/components/splitter/src/split-panel2.mjs +17 -157
- package/es/components/splitter/src/split-panel2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.mjs +166 -30
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +30 -166
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +3 -3
- package/es/components/tooltip-v2/src/arrow.mjs +37 -21
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +21 -37
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.mjs +110 -48
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +48 -110
- package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root.mjs +79 -17
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +17 -79
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +3 -3
- package/es/components/tooltip-v2/src/tooltip2.mjs +6 -6
- package/es/components/tour/index.mjs +1 -1
- package/es/components/tour/src/content.mjs +43 -67
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +67 -43
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/index.mjs +12 -12
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +71 -32
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +32 -71
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +95 -18
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +18 -95
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +123 -282
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +282 -123
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +69 -233
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +233 -69
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +12 -12
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +82 -268
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +268 -82
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +26 -71
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +71 -26
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.js +166 -16
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +16 -166
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -139
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +139 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/sizes.js +71 -23
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +23 -71
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +6 -26
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +26 -6
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +51 -137
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +137 -51
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +18 -48
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +48 -18
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/split-panel.js +157 -17
- package/lib/components/splitter/src/split-panel.js.map +1 -1
- package/lib/components/splitter/src/split-panel2.js +17 -157
- package/lib/components/splitter/src/split-panel2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/tooltip.js +166 -34
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +34 -166
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +3 -3
- package/lib/components/tooltip-v2/src/arrow.js +37 -22
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +22 -37
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.js +110 -48
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content2.js +48 -110
- package/lib/components/tooltip-v2/src/content2.js.map +1 -1
- package/lib/components/tooltip-v2/src/root.js +79 -17
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +17 -79
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +3 -3
- package/lib/components/tooltip-v2/src/tooltip2.js +6 -6
- package/lib/components/tour/index.js +1 -1
- package/lib/components/tour/src/content.js +46 -67
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +67 -46
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/index.js +12 -12
- 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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"image2.mjs","sources":["../../../../../../packages/components/image/src/image.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type Image from './image.vue'\n\nexport const imageProps = buildProps({\n /**\n * @description when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode.\n */\n hideOnClickModal: Boolean,\n /**\n * @description image source, same as native.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description indicate how the image should be resized to fit its container, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).\n */\n fit: {\n type: String,\n values: ['', 'contain', 'cover', 'fill', 'none', 'scale-down'],\n default: '',\n },\n /**\n * @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#loading)\n */\n loading: {\n type: String,\n values: ['eager', 'lazy'],\n },\n /**\n * @description whether to use lazy load.\n */\n lazy: Boolean,\n /**\n * @description the container to add scroll listener when using lazy load.\n */\n scrollContainer: {\n type: definePropType<string | HTMLElement | undefined>([String, Object]),\n },\n /**\n * @description allow big image preview.\n */\n previewSrcList: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`.\n */\n previewTeleported: Boolean,\n /**\n * @description set image preview z-index.\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description initial preview image index, less than the length of `url-list`.\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether the viewer preview is infinite.\n */\n infinite: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the image-viewer can be closed by pressing ESC.\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the zoom rate of the image viewer zoom event\n */\n zoomRate: {\n type: Number,\n default: 1.2,\n },\n /**\n * @description preview image scale.\n */\n scale: {\n type: Number,\n default: 1,\n },\n /**\n * @description the min scale of the image viewer zoom event.\n */\n minScale: {\n type: Number,\n default: 0.2,\n },\n /**\n * @description the max scale of the image viewer zoom event.\n */\n maxScale: {\n type: Number,\n default: 7,\n },\n /**\n * @description show preview image progress content.\n */\n showProgress: Boolean,\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\nexport type ImageProps = ExtractPropTypes<typeof imageProps>\nexport type ImagePropsPublic = __ExtractPublicPropTypes<typeof imageProps>\n\nexport const imageEmits = {\n load: (evt: Event) => evt instanceof Event,\n error: (evt: Event) => evt instanceof Event,\n switch: (val: number) => isNumber(val),\n close: () => true,\n show: () => true,\n}\nexport type ImageEmits = typeof imageEmits\nexport type ImageInstance = InstanceType<typeof Image> & unknown\n"],"names":[],"mappings":";;;;AAMY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC;AAClE,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;AAC7B,GAAG;AACH,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,cAA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ACnB,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;"}
|
1
|
+
{"version":3,"file":"image2.mjs","sources":["../../../../../../packages/components/image/src/image.vue"],"sourcesContent":["<template>\n <div ref=\"container\" v-bind=\"containerAttrs\" :class=\"[ns.b(), $attrs.class]\">\n <slot v-if=\"hasLoadError\" name=\"error\">\n <div :class=\"ns.e('error')\">{{ t('el.image.error') }}</div>\n </slot>\n <template v-else>\n <img\n v-if=\"imageSrc !== undefined\"\n v-bind=\"imgAttrs\"\n :src=\"imageSrc\"\n :loading=\"loading\"\n :style=\"imageStyle\"\n :class=\"imageKls\"\n :crossorigin=\"crossorigin\"\n @click=\"clickHandler\"\n @load=\"handleLoad\"\n @error=\"handleError\"\n />\n <div v-if=\"isLoading\" :class=\"ns.e('wrapper')\">\n <slot name=\"placeholder\">\n <div :class=\"ns.e('placeholder')\" />\n </slot>\n </div>\n </template>\n <template v-if=\"preview\">\n <image-viewer\n v-if=\"showViewer\"\n :z-index=\"zIndex\"\n :initial-index=\"imageIndex\"\n :infinite=\"infinite\"\n :zoom-rate=\"zoomRate\"\n :min-scale=\"minScale\"\n :max-scale=\"maxScale\"\n :show-progress=\"showProgress\"\n :url-list=\"previewSrcList\"\n :scale=\"scale\"\n :crossorigin=\"crossorigin\"\n :hide-on-click-modal=\"hideOnClickModal\"\n :teleported=\"previewTeleported\"\n :close-on-press-escape=\"closeOnPressEscape\"\n @close=\"closeViewer\"\n @switch=\"switchViewer\"\n >\n <div v-if=\"$slots.viewer\">\n <slot name=\"viewer\" />\n </div>\n <template v-if=\"$slots.progress\" #progress=\"progress\">\n <slot name=\"progress\" v-bind=\"progress\" />\n </template>\n <template #toolbar=\"toolbar\">\n <slot name=\"toolbar\" v-bind=\"toolbar\" />\n </template>\n <template v-if=\"$slots['viewer-error']\" #viewer-error=\"viewerError\">\n <slot name=\"viewer-error\" v-bind=\"viewerError\" />\n </template>\n </image-viewer>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n ref,\n useAttrs as useRawAttrs,\n watch,\n} from 'vue'\nimport { useIntersectionObserver, useThrottleFn } from '@vueuse/core'\nimport { fromPairs } from 'lodash-unified'\nimport { useAttrs, useLocale, useNamespace } from '@element-plus/hooks'\nimport ImageViewer from '@element-plus/components/image-viewer'\nimport {\n getScrollContainer,\n isArray,\n isClient,\n isElement,\n isString,\n isWindow,\n} from '@element-plus/utils'\nimport { imageEmits, imageProps } from './image'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElImage',\n inheritAttrs: false,\n})\n\nconst props = defineProps(imageProps)\nconst emit = defineEmits(imageEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('image')\nconst rawAttrs = useRawAttrs()\n\nconst containerAttrs = computed(() => {\n return fromPairs(\n Object.entries(rawAttrs).filter(\n ([key]) => /^(data-|on[A-Z])/i.test(key) || ['id', 'style'].includes(key)\n )\n )\n})\n\nconst imgAttrs = useAttrs({\n excludeListeners: true,\n excludeKeys: computed<string[]>(() => {\n return Object.keys(containerAttrs.value)\n }),\n})\n\nconst imageSrc = ref<string | undefined>()\nconst hasLoadError = ref(false)\nconst isLoading = ref(true)\nconst showViewer = ref(false)\nconst container = ref<HTMLElement>()\nconst _scrollContainer = ref<HTMLElement | undefined>()\n\nconst supportLoading = isClient && 'loading' in HTMLImageElement.prototype\nlet stopScrollListener: (() => void) | undefined\n\nconst imageKls = computed(() => [\n ns.e('inner'),\n preview.value && ns.e('preview'),\n isLoading.value && ns.is('loading'),\n])\n\nconst imageStyle = computed<CSSProperties>(() => {\n const { fit } = props\n if (isClient && fit) {\n return { objectFit: fit }\n }\n return {}\n})\n\nconst preview = computed(() => {\n const { previewSrcList } = props\n return isArray(previewSrcList) && previewSrcList.length > 0\n})\n\nconst imageIndex = computed(() => {\n const { previewSrcList, initialIndex } = props\n let previewIndex = initialIndex\n if (initialIndex > previewSrcList.length - 1) {\n previewIndex = 0\n }\n return previewIndex\n})\n\nconst isManual = computed(() => {\n if (props.loading === 'eager') return false\n return (!supportLoading && props.loading === 'lazy') || props.lazy\n})\n\nconst loadImage = () => {\n if (!isClient) return\n\n // reset status\n isLoading.value = true\n hasLoadError.value = false\n imageSrc.value = props.src\n}\n\nfunction handleLoad(event: Event) {\n isLoading.value = false\n hasLoadError.value = false\n emit('load', event)\n}\n\nfunction handleError(event: Event) {\n isLoading.value = false\n hasLoadError.value = true\n emit('error', event)\n}\n\nfunction handleLazyLoad(isIntersecting: boolean) {\n if (isIntersecting) {\n loadImage()\n removeLazyLoadListener()\n }\n}\n\nconst lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true)\n\nasync function addLazyLoadListener() {\n if (!isClient) return\n\n await nextTick()\n\n const { scrollContainer } = props\n if (isElement(scrollContainer)) {\n _scrollContainer.value = scrollContainer\n } else if (isString(scrollContainer) && scrollContainer !== '') {\n _scrollContainer.value =\n document.querySelector<HTMLElement>(scrollContainer) ?? undefined\n } else if (container.value) {\n const scrollContainer = getScrollContainer(container.value)\n _scrollContainer.value = isWindow(scrollContainer)\n ? undefined\n : scrollContainer\n }\n\n const { stop } = useIntersectionObserver(\n container,\n ([entry]) => {\n lazyLoadHandler(entry.isIntersecting)\n },\n { root: _scrollContainer }\n )\n stopScrollListener = stop\n}\n\nfunction removeLazyLoadListener() {\n if (!isClient || !lazyLoadHandler) return\n\n stopScrollListener?.()\n _scrollContainer.value = undefined\n stopScrollListener = undefined\n}\n\nfunction clickHandler() {\n // don't show viewer when preview is false\n if (!preview.value) return\n showViewer.value = true\n emit('show')\n}\n\nfunction closeViewer() {\n showViewer.value = false\n emit('close')\n}\n\nfunction switchViewer(val: number) {\n emit('switch', val)\n}\n\nwatch(\n () => props.src,\n () => {\n if (isManual.value) {\n // reset status\n isLoading.value = true\n hasLoadError.value = false\n removeLazyLoadListener()\n addLazyLoadListener()\n } else {\n loadImage()\n }\n }\n)\n\nonMounted(() => {\n if (isManual.value) {\n addLazyLoadListener()\n } else {\n loadImage()\n }\n})\n\ndefineExpose({\n /** @description manually open preview */\n showPreview: clickHandler,\n})\n</script>\n"],"names":["useRawAttrs","useAttrs","scrollContainer","_openBlock","_createElementBlock","_mergeProps","_unref"],"mappings":";;;;;;;;;;;;;mCAqFc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,WAAWA,QAAY,EAAA,CAAA;AAE7B,IAAM,MAAA,cAAA,GAAiB,SAAS,MAAM;AACpC,MAAO,OAAA,SAAA,CAAA,MAAA,CAAA,OAAA,CAAA,QAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,KAAA,mBAAA,CAAA,IAAA,CAAA,GAAA,CAAA,IAAA,CAAA,IAAA,EAAA,OAAA,CAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA;AAAA,KACL,CAAA,CAAA;AAAyB,IAAA,MACvB,QAAK,GAAMC,UAAoB,CAAA;AAAyC,MAC1E,gBAAA,EAAA,IAAA;AAAA,MACF,WAAA,EAAA,QAAA,CAAA,MAAA;AAAA,QACD,OAAA,MAAA,CAAA,IAAA,CAAA,cAAA,CAAA,KAAA,CAAA,CAAA;AAED,OAAA,CAAA;AAA0B,KAAA,CACxB,CAAkB;AAAA,IAClB,MAAA,QAAA;AACE,IAAO,MAAA,YAAO,GAAK,GAAA,CAAA,KAAA,CAAA,CAAA;AAAoB,IAAA,MACxC,SAAA,GAAA,GAAA,CAAA,IAAA,CAAA,CAAA;AAAA,IACH,MAAC,UAAA,GAAA,GAAA,CAAA,KAAA,CAAA,CAAA;AAED,IAAA,MAAM,YAAmC,GAAA,EAAA,CAAA;AACzC,IAAM,MAAA,mBAAmB,GAAK,EAA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;;;;;;;;;"}
|
package/es/components/index.mjs
CHANGED
@@ -92,7 +92,7 @@ export { alertEffects, alertEmits, alertProps } from './alert/src/alert.mjs';
|
|
92
92
|
export { autocompleteEmits, autocompleteProps } from './autocomplete/src/autocomplete.mjs';
|
93
93
|
export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
|
94
94
|
export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
|
95
|
-
export { badgeProps } from './badge/src/
|
95
|
+
export { badgeProps } from './badge/src/badge2.mjs';
|
96
96
|
export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
|
97
97
|
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item.mjs';
|
98
98
|
export { breadcrumbKey } from './breadcrumb/src/constants.mjs';
|
@@ -112,7 +112,7 @@ export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox.mjs';
|
|
112
112
|
export { checkboxGroupContextKey } from './checkbox/src/constants.mjs';
|
113
113
|
export { colProps } from './col/src/col.mjs';
|
114
114
|
export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
|
115
|
-
export { collapseItemProps } from './collapse/src/collapse-
|
115
|
+
export { collapseItemProps } from './collapse/src/collapse-item2.mjs';
|
116
116
|
export { collapseContextKey } from './collapse/src/constants.mjs';
|
117
117
|
export { ROOT_COMMON_COLOR_INJECTION_KEY, colorPickerPanelContextKey, colorPickerPanelEmits, colorPickerPanelProps } from './color-picker-panel/src/color-picker-panel.mjs';
|
118
118
|
export { colorPickerEmits, colorPickerProps } from './color-picker/src/color-picker.mjs';
|
@@ -131,7 +131,7 @@ export { dialogContextKey, dialogEmits, dialogProps } from './dialog/src/dialog.
|
|
131
131
|
export { DEFAULT_DIALOG_TRANSITION, dialogInjectionKey } from './dialog/src/constants.mjs';
|
132
132
|
export { dividerProps } from './divider/src/divider.mjs';
|
133
133
|
export { drawerEmits, drawerProps } from './drawer/src/drawer.mjs';
|
134
|
-
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './dropdown/src/
|
134
|
+
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './dropdown/src/dropdown.mjs';
|
135
135
|
export { DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY } from './dropdown/src/tokens.mjs';
|
136
136
|
export { emptyProps } from './empty/src/empty.mjs';
|
137
137
|
export { formEmits, formMetaProps, formProps } from './form/src/form.mjs';
|
@@ -140,12 +140,12 @@ export { formContextKey, formItemContextKey } from './form/src/constants.mjs';
|
|
140
140
|
export { useDisabled, useFormDisabled, useFormSize, useSize } from './form/src/hooks/use-form-common-props.mjs';
|
141
141
|
export { useFormItem, useFormItemInputId } from './form/src/hooks/use-form-item.mjs';
|
142
142
|
export { iconProps } from './icon/src/icon.mjs';
|
143
|
-
export { imageEmits, imageProps } from './image/src/
|
143
|
+
export { imageEmits, imageProps } from './image/src/image.mjs';
|
144
144
|
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer.mjs';
|
145
145
|
export { inputEmits, inputProps } from './input/src/input.mjs';
|
146
146
|
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
|
147
|
-
export { inputTagEmits, inputTagProps } from './input-tag/src/input-
|
148
|
-
export { linkEmits, linkProps } from './link/src/
|
147
|
+
export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag.mjs';
|
148
|
+
export { linkEmits, linkProps } from './link/src/link.mjs';
|
149
149
|
export { menuEmits, menuProps } from './menu/src/menu.mjs';
|
150
150
|
export { menuItemEmits, menuItemProps } from './menu/src/menu-item.mjs';
|
151
151
|
export { menuItemGroupProps } from './menu/src/menu-item-group.mjs';
|
@@ -155,7 +155,7 @@ export { overlayEmits, overlayProps } from './overlay/src/overlay.mjs';
|
|
155
155
|
export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-header.mjs';
|
156
156
|
export { paginationEmits, paginationProps } from './pagination/src/pagination.mjs';
|
157
157
|
export { elPaginationKey } from './pagination/src/constants.mjs';
|
158
|
-
export { popconfirmEmits, popconfirmProps } from './popconfirm/src/
|
158
|
+
export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mjs';
|
159
159
|
export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
|
160
160
|
export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger.mjs';
|
161
161
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content.mjs';
|
@@ -180,7 +180,7 @@ export { scrollbarContextKey } from './scrollbar/src/constants.mjs';
|
|
180
180
|
export { selectGroupKey, selectKey } from './select/src/token.mjs';
|
181
181
|
export { selectEmits, selectProps } from './select/src/select.mjs';
|
182
182
|
export { selectV2InjectionKey } from './select-v2/src/token.mjs';
|
183
|
-
export { skeletonProps } from './skeleton/src/
|
183
|
+
export { skeletonProps } from './skeleton/src/skeleton.mjs';
|
184
184
|
export { skeletonItemProps } from './skeleton/src/skeleton-item.mjs';
|
185
185
|
export { sliderEmits, sliderProps } from './slider/src/slider.mjs';
|
186
186
|
export { sliderContextKey } from './slider/src/constants.mjs';
|
@@ -213,7 +213,7 @@ export { default as TimePickPanel } from './time-picker/src/time-picker-com/pane
|
|
213
213
|
export { timeSelectProps } from './time-select/src/time-select.mjs';
|
214
214
|
export { timelineItemProps } from './timeline/src/timeline-item.mjs';
|
215
215
|
export { TIMELINE_INJECTION_KEY } from './timeline/src/tokens.mjs';
|
216
|
-
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/
|
216
|
+
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip2.mjs';
|
217
217
|
export { useTooltipTriggerProps } from './tooltip/src/trigger.mjs';
|
218
218
|
export { useTooltipContentProps } from './tooltip/src/content.mjs';
|
219
219
|
export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
|
@@ -230,13 +230,13 @@ export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualiz
|
|
230
230
|
export { watermarkProps } from './watermark/src/watermark.mjs';
|
231
231
|
export { tourEmits, tourProps } from './tour/src/tour.mjs';
|
232
232
|
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
233
|
-
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/
|
233
|
+
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
|
234
234
|
export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
|
235
235
|
export { defaultProps, segmentedEmits, segmentedProps } from './segmented/src/segmented.mjs';
|
236
236
|
export { mentionDefaultProps, mentionEmits, mentionProps } from './mention/src/mention.mjs';
|
237
237
|
export { splitterProps } from './splitter/src/splitter.mjs';
|
238
|
-
export { splitterPanelProps } from './splitter/src/split-
|
238
|
+
export { splitterPanelProps } from './splitter/src/split-panel2.mjs';
|
239
239
|
export { MESSAGE_DEFAULT_PLACEMENT, messageDefaults, messageEmits, messagePlacement, messageProps, messageTypes } from './message/src/message.mjs';
|
240
|
-
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/
|
240
|
+
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
|
241
241
|
export { popoverEmits, popoverProps } from './popover/src/popover.mjs';
|
242
242
|
//# sourceMappingURL=index.mjs.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import InputTag from './src/input-
|
2
|
-
export { inputTagEmits, inputTagProps } from './src/input-
|
1
|
+
import InputTag from './src/input-tag2.mjs';
|
2
|
+
export { inputTagEmits, inputTagProps } from './src/input-tag.mjs';
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
4
4
|
|
5
5
|
const ElInputTag = withInstall(InputTag);
|
@@ -1,274 +1,87 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import { useDragTag } from './composables/use-drag-tag.mjs';
|
11
|
-
import { useInputTagDom } from './composables/use-input-tag-dom.mjs';
|
12
|
-
import { useAttrs } from '../../../hooks/use-attrs/index.mjs';
|
13
|
-
import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
|
14
|
-
import { ValidateComponentsMap } from '../../../utils/vue/icon.mjs';
|
15
|
-
import { NOOP } from '@vue/shared';
|
1
|
+
import { tagProps } from '../../tag/src/tag.mjs';
|
2
|
+
import { CircleClose } from '@element-plus/icons-vue';
|
3
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
4
|
+
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
5
|
+
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
6
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
7
|
+
import { UPDATE_MODEL_EVENT, CHANGE_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
|
8
|
+
import { isArray, isString } from '@vue/shared';
|
9
|
+
import { isUndefined, isNumber } from '../../../utils/types.mjs';
|
16
10
|
|
17
|
-
const
|
18
|
-
|
19
|
-
|
11
|
+
const inputTagProps = buildProps({
|
12
|
+
modelValue: {
|
13
|
+
type: definePropType(Array)
|
14
|
+
},
|
15
|
+
max: Number,
|
16
|
+
tagType: { ...tagProps.type, default: "info" },
|
17
|
+
tagEffect: tagProps.effect,
|
18
|
+
trigger: {
|
19
|
+
type: definePropType(String),
|
20
|
+
default: EVENT_CODE.enter
|
21
|
+
},
|
22
|
+
draggable: Boolean,
|
23
|
+
delimiter: {
|
24
|
+
type: [String, RegExp],
|
25
|
+
default: ""
|
26
|
+
},
|
27
|
+
size: useSizeProp,
|
28
|
+
clearable: Boolean,
|
29
|
+
clearIcon: {
|
30
|
+
type: iconPropType,
|
31
|
+
default: CircleClose
|
32
|
+
},
|
33
|
+
disabled: {
|
34
|
+
type: Boolean,
|
35
|
+
default: void 0
|
36
|
+
},
|
37
|
+
validateEvent: {
|
38
|
+
type: Boolean,
|
39
|
+
default: true
|
40
|
+
},
|
41
|
+
readonly: Boolean,
|
42
|
+
autofocus: Boolean,
|
43
|
+
id: {
|
44
|
+
type: String,
|
45
|
+
default: void 0
|
46
|
+
},
|
47
|
+
tabindex: {
|
48
|
+
type: [String, Number],
|
49
|
+
default: 0
|
50
|
+
},
|
51
|
+
maxlength: {
|
52
|
+
type: [String, Number]
|
53
|
+
},
|
54
|
+
minlength: {
|
55
|
+
type: [String, Number]
|
56
|
+
},
|
57
|
+
placeholder: String,
|
58
|
+
autocomplete: {
|
59
|
+
type: definePropType(String),
|
60
|
+
default: "off"
|
61
|
+
},
|
62
|
+
saveOnBlur: {
|
63
|
+
type: Boolean,
|
64
|
+
default: true
|
65
|
+
},
|
66
|
+
collapseTags: Boolean,
|
67
|
+
collapseTagsTooltip: Boolean,
|
68
|
+
maxCollapseTags: {
|
69
|
+
type: Number,
|
70
|
+
default: 1
|
71
|
+
},
|
72
|
+
ariaLabel: String
|
20
73
|
});
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
var _a;
|
33
|
-
return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
|
34
|
-
});
|
35
|
-
const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
36
|
-
const validateIcon = computed(() => {
|
37
|
-
return validateState.value && ValidateComponentsMap[validateState.value];
|
38
|
-
});
|
39
|
-
const {
|
40
|
-
inputRef,
|
41
|
-
wrapperRef,
|
42
|
-
tagTooltipRef,
|
43
|
-
isFocused,
|
44
|
-
inputValue,
|
45
|
-
size,
|
46
|
-
tagSize,
|
47
|
-
placeholder,
|
48
|
-
closable,
|
49
|
-
disabled,
|
50
|
-
showTagList,
|
51
|
-
collapseTagList,
|
52
|
-
handleDragged,
|
53
|
-
handleInput,
|
54
|
-
handleKeydown,
|
55
|
-
handleRemoveTag,
|
56
|
-
handleClear,
|
57
|
-
handleCompositionStart,
|
58
|
-
handleCompositionUpdate,
|
59
|
-
handleCompositionEnd,
|
60
|
-
focus,
|
61
|
-
blur
|
62
|
-
} = useInputTag({ props, emit, formItem });
|
63
|
-
const { hovering, handleMouseEnter, handleMouseLeave } = useHovering();
|
64
|
-
const { calculatorRef, inputStyle } = useCalcInputWidth();
|
65
|
-
const {
|
66
|
-
dropIndicatorRef,
|
67
|
-
showDropIndicator,
|
68
|
-
handleDragStart,
|
69
|
-
handleDragOver,
|
70
|
-
handleDragEnd
|
71
|
-
} = useDragTag({ wrapperRef, handleDragged, afterDragged: focus });
|
72
|
-
const {
|
73
|
-
ns,
|
74
|
-
nsInput,
|
75
|
-
containerKls,
|
76
|
-
containerStyle,
|
77
|
-
innerKls,
|
78
|
-
showClear,
|
79
|
-
showSuffix
|
80
|
-
} = useInputTagDom({
|
81
|
-
props,
|
82
|
-
hovering,
|
83
|
-
isFocused,
|
84
|
-
inputValue,
|
85
|
-
disabled,
|
86
|
-
size,
|
87
|
-
validateState,
|
88
|
-
validateIcon,
|
89
|
-
needStatusIcon
|
90
|
-
});
|
91
|
-
expose({
|
92
|
-
focus,
|
93
|
-
blur
|
94
|
-
});
|
95
|
-
return (_ctx, _cache) => {
|
96
|
-
return openBlock(), createElementBlock("div", {
|
97
|
-
ref_key: "wrapperRef",
|
98
|
-
ref: wrapperRef,
|
99
|
-
class: normalizeClass(unref(containerKls)),
|
100
|
-
style: normalizeStyle(unref(containerStyle)),
|
101
|
-
onMouseenter: unref(handleMouseEnter),
|
102
|
-
onMouseleave: unref(handleMouseLeave)
|
103
|
-
}, [
|
104
|
-
unref(slots).prefix ? (openBlock(), createElementBlock("div", {
|
105
|
-
key: 0,
|
106
|
-
class: normalizeClass(unref(ns).e("prefix"))
|
107
|
-
}, [
|
108
|
-
renderSlot(_ctx.$slots, "prefix")
|
109
|
-
], 2)) : createCommentVNode("v-if", true),
|
110
|
-
createElementVNode("div", {
|
111
|
-
class: normalizeClass(unref(innerKls))
|
112
|
-
}, [
|
113
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showTagList), (item, index) => {
|
114
|
-
return openBlock(), createBlock(unref(ElTag), {
|
115
|
-
key: index,
|
116
|
-
size: unref(tagSize),
|
117
|
-
closable: unref(closable),
|
118
|
-
type: _ctx.tagType,
|
119
|
-
effect: _ctx.tagEffect,
|
120
|
-
draggable: unref(closable) && _ctx.draggable,
|
121
|
-
"disable-transitions": "",
|
122
|
-
onClose: ($event) => unref(handleRemoveTag)(index),
|
123
|
-
onDragstart: (event) => unref(handleDragStart)(event, index),
|
124
|
-
onDragover: (event) => unref(handleDragOver)(event, index),
|
125
|
-
onDragend: unref(handleDragEnd),
|
126
|
-
onDrop: withModifiers(() => {
|
127
|
-
}, ["stop"])
|
128
|
-
}, {
|
129
|
-
default: withCtx(() => [
|
130
|
-
renderSlot(_ctx.$slots, "tag", {
|
131
|
-
value: item,
|
132
|
-
index
|
133
|
-
}, () => [
|
134
|
-
createTextVNode(toDisplayString(item), 1)
|
135
|
-
])
|
136
|
-
]),
|
137
|
-
_: 2
|
138
|
-
}, 1032, ["size", "closable", "type", "effect", "draggable", "onClose", "onDragstart", "onDragover", "onDragend", "onDrop"]);
|
139
|
-
}), 128)),
|
140
|
-
_ctx.collapseTags && _ctx.modelValue && _ctx.modelValue.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(unref(ElTooltip), {
|
141
|
-
key: 0,
|
142
|
-
ref_key: "tagTooltipRef",
|
143
|
-
ref: tagTooltipRef,
|
144
|
-
disabled: !_ctx.collapseTagsTooltip,
|
145
|
-
"fallback-placements": ["bottom", "top", "right", "left"],
|
146
|
-
effect: _ctx.tagEffect,
|
147
|
-
placement: "bottom"
|
148
|
-
}, {
|
149
|
-
default: withCtx(() => [
|
150
|
-
createVNode(unref(ElTag), {
|
151
|
-
closable: false,
|
152
|
-
size: unref(tagSize),
|
153
|
-
type: _ctx.tagType,
|
154
|
-
effect: _ctx.tagEffect,
|
155
|
-
"disable-transitions": ""
|
156
|
-
}, {
|
157
|
-
default: withCtx(() => [
|
158
|
-
createTextVNode(" + " + toDisplayString(_ctx.modelValue.length - _ctx.maxCollapseTags), 1)
|
159
|
-
]),
|
160
|
-
_: 1
|
161
|
-
}, 8, ["size", "type", "effect"])
|
162
|
-
]),
|
163
|
-
content: withCtx(() => [
|
164
|
-
createElementVNode("div", {
|
165
|
-
class: normalizeClass(unref(ns).e("input-tag-list"))
|
166
|
-
}, [
|
167
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(collapseTagList), (item, index) => {
|
168
|
-
return openBlock(), createBlock(unref(ElTag), {
|
169
|
-
key: index,
|
170
|
-
size: unref(tagSize),
|
171
|
-
closable: unref(closable),
|
172
|
-
type: _ctx.tagType,
|
173
|
-
effect: _ctx.tagEffect,
|
174
|
-
"disable-transitions": "",
|
175
|
-
onClose: ($event) => unref(handleRemoveTag)(index + _ctx.maxCollapseTags)
|
176
|
-
}, {
|
177
|
-
default: withCtx(() => [
|
178
|
-
renderSlot(_ctx.$slots, "tag", {
|
179
|
-
value: item,
|
180
|
-
index: index + _ctx.maxCollapseTags
|
181
|
-
}, () => [
|
182
|
-
createTextVNode(toDisplayString(item), 1)
|
183
|
-
])
|
184
|
-
]),
|
185
|
-
_: 2
|
186
|
-
}, 1032, ["size", "closable", "type", "effect", "onClose"]);
|
187
|
-
}), 128))
|
188
|
-
], 2)
|
189
|
-
]),
|
190
|
-
_: 3
|
191
|
-
}, 8, ["disabled", "effect"])) : createCommentVNode("v-if", true),
|
192
|
-
createElementVNode("div", {
|
193
|
-
class: normalizeClass(unref(ns).e("input-wrapper"))
|
194
|
-
}, [
|
195
|
-
withDirectives(createElementVNode("input", mergeProps({
|
196
|
-
id: unref(inputId),
|
197
|
-
ref_key: "inputRef",
|
198
|
-
ref: inputRef,
|
199
|
-
"onUpdate:modelValue": ($event) => isRef(inputValue) ? inputValue.value = $event : null
|
200
|
-
}, unref(attrs), {
|
201
|
-
type: "text",
|
202
|
-
minlength: _ctx.minlength,
|
203
|
-
maxlength: _ctx.maxlength,
|
204
|
-
disabled: unref(disabled),
|
205
|
-
readonly: _ctx.readonly,
|
206
|
-
autocomplete: _ctx.autocomplete,
|
207
|
-
tabindex: _ctx.tabindex,
|
208
|
-
placeholder: unref(placeholder),
|
209
|
-
autofocus: _ctx.autofocus,
|
210
|
-
ariaLabel: _ctx.ariaLabel,
|
211
|
-
class: unref(ns).e("input"),
|
212
|
-
style: unref(inputStyle),
|
213
|
-
onCompositionstart: unref(handleCompositionStart),
|
214
|
-
onCompositionupdate: unref(handleCompositionUpdate),
|
215
|
-
onCompositionend: unref(handleCompositionEnd),
|
216
|
-
onInput: unref(handleInput),
|
217
|
-
onKeydown: unref(handleKeydown)
|
218
|
-
}), null, 16, ["id", "onUpdate:modelValue", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onKeydown"]), [
|
219
|
-
[vModelText, unref(inputValue)]
|
220
|
-
]),
|
221
|
-
createElementVNode("span", {
|
222
|
-
ref_key: "calculatorRef",
|
223
|
-
ref: calculatorRef,
|
224
|
-
"aria-hidden": "true",
|
225
|
-
class: normalizeClass(unref(ns).e("input-calculator")),
|
226
|
-
textContent: toDisplayString(unref(inputValue))
|
227
|
-
}, null, 10, ["textContent"])
|
228
|
-
], 2),
|
229
|
-
withDirectives(createElementVNode("div", {
|
230
|
-
ref_key: "dropIndicatorRef",
|
231
|
-
ref: dropIndicatorRef,
|
232
|
-
class: normalizeClass(unref(ns).e("drop-indicator"))
|
233
|
-
}, null, 2), [
|
234
|
-
[vShow, unref(showDropIndicator)]
|
235
|
-
])
|
236
|
-
], 2),
|
237
|
-
unref(showSuffix) ? (openBlock(), createElementBlock("div", {
|
238
|
-
key: 1,
|
239
|
-
class: normalizeClass(unref(ns).e("suffix"))
|
240
|
-
}, [
|
241
|
-
renderSlot(_ctx.$slots, "suffix"),
|
242
|
-
unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
|
243
|
-
key: 0,
|
244
|
-
class: normalizeClass([unref(ns).e("icon"), unref(ns).e("clear")]),
|
245
|
-
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
246
|
-
onClick: unref(handleClear)
|
247
|
-
}, {
|
248
|
-
default: withCtx(() => [
|
249
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
250
|
-
]),
|
251
|
-
_: 1
|
252
|
-
}, 8, ["class", "onMousedown", "onClick"])) : createCommentVNode("v-if", true),
|
253
|
-
unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
254
|
-
key: 1,
|
255
|
-
class: normalizeClass([
|
256
|
-
unref(nsInput).e("icon"),
|
257
|
-
unref(nsInput).e("validateIcon"),
|
258
|
-
unref(nsInput).is("loading", unref(validateState) === "validating")
|
259
|
-
])
|
260
|
-
}, {
|
261
|
-
default: withCtx(() => [
|
262
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
|
263
|
-
]),
|
264
|
-
_: 1
|
265
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
266
|
-
], 2)) : createCommentVNode("v-if", true)
|
267
|
-
], 46, ["onMouseenter", "onMouseleave"]);
|
268
|
-
};
|
269
|
-
}
|
270
|
-
});
|
271
|
-
var InputTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-tag.vue"]]);
|
74
|
+
const inputTagEmits = {
|
75
|
+
[UPDATE_MODEL_EVENT]: (value) => isArray(value) || isUndefined(value),
|
76
|
+
[CHANGE_EVENT]: (value) => isArray(value) || isUndefined(value),
|
77
|
+
[INPUT_EVENT]: (value) => isString(value),
|
78
|
+
"add-tag": (value) => isString(value) || isArray(value),
|
79
|
+
"remove-tag": (value, index) => isString(value) && isNumber(index),
|
80
|
+
"drag-tag": (oldIndex, newIndex, value) => isNumber(oldIndex) && isNumber(newIndex) && isString(value),
|
81
|
+
focus: (evt) => evt instanceof FocusEvent,
|
82
|
+
blur: (evt) => evt instanceof FocusEvent,
|
83
|
+
clear: () => true
|
84
|
+
};
|
272
85
|
|
273
|
-
export {
|
86
|
+
export { inputTagEmits, inputTagProps };
|
274
87
|
//# sourceMappingURL=input-tag.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input-tag.mjs","sources":["../../../../../../packages/components/input-tag/src/input-tag.
|
1
|
+
{"version":3,"file":"input-tag.mjs","sources":["../../../../../../packages/components/input-tag/src/input-tag.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isArray,\n isNumber,\n isString,\n isUndefined,\n} from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { tagProps } from '@element-plus/components/tag/src/tag'\nimport { CircleClose } from '@element-plus/icons-vue'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\n\nexport const inputTagProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description max number tags that can be enter\n */\n max: Number,\n /**\n * @description tag type\n */\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: tagProps.effect,\n /**\n * @description the key to trigger input tag\n */\n trigger: {\n type: definePropType<'Enter' | 'Space'>(String),\n default: EVENT_CODE.enter,\n },\n /**\n * @description whether tags can be dragged\n */\n draggable: Boolean,\n /**\n * @description add a tag when a delimiter is matched\n */\n delimiter: {\n type: [String, RegExp],\n default: '',\n },\n /**\n * @description input box size\n */\n size: useSizeProp,\n /**\n * @description whether to show clear button\n */\n clearable: Boolean,\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description whether to disable input-tag\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description native input readonly\n */\n readonly: Boolean,\n /**\n * @description native input autofocus\n */\n autofocus: Boolean,\n /**\n * @description same as `id` in native input\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description same as `tabindex` in native input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description same as `maxlength` in native input\n */\n maxlength: {\n type: [String, Number],\n },\n /**\n * @description same as `minlength` in native input\n */\n minlength: {\n type: [String, Number],\n },\n /**\n * @description placeholder of input\n */\n placeholder: String,\n /**\n * @description native input autocomplete\n */\n autocomplete: {\n type: definePropType<HTMLInputElement['autocomplete']>(String),\n default: 'off',\n },\n /**\n * @description whether to save the input value when the input loses focus\n */\n saveOnBlur: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to collapse tags to a text\n */\n collapseTags: Boolean,\n /**\n * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n */\n collapseTagsTooltip: Boolean,\n /**\n * @description the max tags number to be shown. To use this, `collapse-tags` must be true\n */\n maxCollapseTags: {\n type: Number,\n default: 1,\n },\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel: String,\n} as const)\nexport type InputTagProps = ExtractPropTypes<typeof inputTagProps>\nexport type InputTagPropsPublic = __ExtractPublicPropTypes<typeof inputTagProps>\n\nexport const inputTagEmits = {\n [UPDATE_MODEL_EVENT]: (value?: string[]) =>\n isArray(value) || isUndefined(value),\n [CHANGE_EVENT]: (value?: string[]) => isArray(value) || isUndefined(value),\n [INPUT_EVENT]: (value: string) => isString(value),\n 'add-tag': (value: string | string[]) => isString(value) || isArray(value),\n 'remove-tag': (value: string, index: number) =>\n isString(value) && isNumber(index),\n 'drag-tag': (oldIndex: number, newIndex: number, value: string) =>\n isNumber(oldIndex) && isNumber(newIndex) && isString(value),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\nexport type InputTagEmits = typeof inputTagEmits\n"],"names":[],"mappings":";;;;;;;;;;AAkBY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,OAAO,EAAE,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE;AAChD,EAAE,SAAS,EAAE,QAAQ,CAAC,MAAM;AAC5B,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,UAAU,CAAC,KAAK;AAC7B,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IA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