@element-plus/nightly 0.0.20241217 → 0.0.20241219
Sign up to get free protection for your applications and to get access to all the features.
- 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/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/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +40 -399
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +399 -40
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +22 -79
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +79 -22
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +26 -126
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +126 -26
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +26 -87
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +87 -26
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/index.mjs +11 -11
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +215 -65
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +65 -215
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- 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/pagination.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +36 -7
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +7 -36
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +62 -28
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +28 -62
- package/es/components/result/src/result2.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/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +13 -71
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +71 -13
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -8
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +8 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +72 -33
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +33 -72
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- 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/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +168 -44
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +44 -168
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +125 -97
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +97 -125
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +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/index.mjs +11 -11
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +40 -397
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +397 -40
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +23 -79
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +79 -23
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +26 -126
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +126 -26
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +26 -86
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +86 -26
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/index.js +11 -11
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +214 -65
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +65 -214
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- 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/pagination.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +36 -8
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +8 -36
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +62 -30
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +30 -62
- package/lib/components/result/src/result2.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 +27 -31
- 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 +31 -27
- 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/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +13 -71
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +71 -13
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -8
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +8 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +72 -33
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +33 -72
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- 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/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +167 -44
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +44 -167
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +125 -100
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +100 -125
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +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/index.js +11 -11
- 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":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.
|
1
|
+
{"version":3,"file":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nexport const dialogContentProps = buildProps({\n /**\n * @description whether to align the header and footer in center\n */\n center: Boolean,\n /**\n * @description whether to align the dialog both horizontally and vertically\n */\n alignCenter: Boolean,\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description enable dragging feature for Dialog\n */\n draggable: Boolean,\n /**\n * @description draggable Dialog can overflow the viewport\n */\n overflow: Boolean,\n /**\n * @description whether the Dialog takes up full screen\n */\n fullscreen: Boolean,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title of Dialog. Can also be passed with a named slot (see the following table)\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description header's aria-level attribute\n */\n ariaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport const dialogContentEmits = {\n close: () => true,\n}\n"],"names":[],"mappings":";;;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
|
@@ -1,31 +1,92 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { defineComponent, inject, computed, openBlock, createElementBlock, unref, normalizeClass, normalizeStyle, createElementVNode, renderSlot, toDisplayString, createVNode, withCtx, createBlock, resolveDynamicComponent, createCommentVNode } from 'vue';
|
2
|
+
import { ElIcon } from '../../icon/index.mjs';
|
3
|
+
import { dialogInjectionKey } from './constants.mjs';
|
4
|
+
import { dialogContentProps, dialogContentEmits } from './dialog-content.mjs';
|
5
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
6
|
+
import { FOCUS_TRAP_INJECTION_KEY } from '../../focus-trap/src/tokens.mjs';
|
7
|
+
import { useDraggable } from '../../../hooks/use-draggable/index.mjs';
|
8
|
+
import { CloseComponents } from '../../../utils/vue/icon.mjs';
|
9
|
+
import { composeRefs } from '../../../utils/vue/refs.mjs';
|
10
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
3
11
|
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
12
|
+
const __default__ = defineComponent({ name: "ElDialogContent" });
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
14
|
+
...__default__,
|
15
|
+
props: dialogContentProps,
|
16
|
+
emits: dialogContentEmits,
|
17
|
+
setup(__props, { expose }) {
|
18
|
+
const props = __props;
|
19
|
+
const { t } = useLocale();
|
20
|
+
const { Close } = CloseComponents;
|
21
|
+
const { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey);
|
22
|
+
const { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY);
|
23
|
+
const dialogKls = computed(() => [
|
24
|
+
ns.b(),
|
25
|
+
ns.is("fullscreen", props.fullscreen),
|
26
|
+
ns.is("draggable", props.draggable),
|
27
|
+
ns.is("align-center", props.alignCenter),
|
28
|
+
{ [ns.m("center")]: props.center }
|
29
|
+
]);
|
30
|
+
const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
|
31
|
+
const draggable = computed(() => props.draggable);
|
32
|
+
const overflow = computed(() => props.overflow);
|
33
|
+
const { resetPosition } = useDraggable(dialogRef, headerRef, draggable, overflow);
|
34
|
+
expose({
|
35
|
+
resetPosition
|
36
|
+
});
|
37
|
+
return (_ctx, _cache) => {
|
38
|
+
return openBlock(), createElementBlock("div", {
|
39
|
+
ref: unref(composedDialogRef),
|
40
|
+
class: normalizeClass(unref(dialogKls)),
|
41
|
+
style: normalizeStyle(unref(style)),
|
42
|
+
tabindex: "-1"
|
43
|
+
}, [
|
44
|
+
createElementVNode("header", {
|
45
|
+
ref_key: "headerRef",
|
46
|
+
ref: headerRef,
|
47
|
+
class: normalizeClass([unref(ns).e("header"), { "show-close": _ctx.showClose }])
|
48
|
+
}, [
|
49
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
50
|
+
createElementVNode("span", {
|
51
|
+
role: "heading",
|
52
|
+
"aria-level": _ctx.ariaLevel,
|
53
|
+
class: normalizeClass(unref(ns).e("title"))
|
54
|
+
}, toDisplayString(_ctx.title), 11, ["aria-level"])
|
55
|
+
]),
|
56
|
+
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
57
|
+
key: 0,
|
58
|
+
"aria-label": unref(t)("el.dialog.close"),
|
59
|
+
class: normalizeClass(unref(ns).e("headerbtn")),
|
60
|
+
type: "button",
|
61
|
+
onClick: ($event) => _ctx.$emit("close")
|
62
|
+
}, [
|
63
|
+
createVNode(unref(ElIcon), {
|
64
|
+
class: normalizeClass(unref(ns).e("close"))
|
65
|
+
}, {
|
66
|
+
default: withCtx(() => [
|
67
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon || unref(Close))))
|
68
|
+
]),
|
69
|
+
_: 1
|
70
|
+
}, 8, ["class"])
|
71
|
+
], 10, ["aria-label", "onClick"])) : createCommentVNode("v-if", true)
|
72
|
+
], 2),
|
73
|
+
createElementVNode("div", {
|
74
|
+
id: unref(bodyId),
|
75
|
+
class: normalizeClass(unref(ns).e("body"))
|
76
|
+
}, [
|
77
|
+
renderSlot(_ctx.$slots, "default")
|
78
|
+
], 10, ["id"]),
|
79
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", {
|
80
|
+
key: 0,
|
81
|
+
class: normalizeClass(unref(ns).e("footer"))
|
82
|
+
}, [
|
83
|
+
renderSlot(_ctx.$slots, "footer")
|
84
|
+
], 2)) : createCommentVNode("v-if", true)
|
85
|
+
], 6);
|
86
|
+
};
|
24
87
|
}
|
25
88
|
});
|
26
|
-
|
27
|
-
close: () => true
|
28
|
-
};
|
89
|
+
var ElDialogContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "dialog-content.vue"]]);
|
29
90
|
|
30
|
-
export {
|
91
|
+
export { ElDialogContent as default };
|
31
92
|
//# sourceMappingURL=dialog-content2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.
|
1
|
+
{"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.vue"],"sourcesContent":["<template>\n <div :ref=\"composedDialogRef\" :class=\"dialogKls\" :style=\"style\" tabindex=\"-1\">\n <header\n ref=\"headerRef\"\n :class=\"[ns.e('header'), { 'show-close': showClose }]\"\n >\n <slot name=\"header\">\n <span role=\"heading\" :aria-level=\"ariaLevel\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.dialog.close')\"\n :class=\"ns.e('headerbtn')\"\n type=\"button\"\n @click=\"$emit('close')\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"closeIcon || Close\" />\n </el-icon>\n </button>\n </header>\n <div :id=\"bodyId\" :class=\"ns.e('body')\">\n <slot />\n </div>\n <footer v-if=\"$slots.footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { FOCUS_TRAP_INJECTION_KEY } from '@element-plus/components/focus-trap'\nimport { useDraggable, useLocale } from '@element-plus/hooks'\nimport { CloseComponents, composeRefs } from '@element-plus/utils'\nimport { dialogInjectionKey } from './constants'\nimport { dialogContentEmits, dialogContentProps } from './dialog-content'\n\nconst { t } = useLocale()\nconst { Close } = CloseComponents\n\ndefineOptions({ name: 'ElDialogContent' })\nconst props = defineProps(dialogContentProps)\ndefineEmits(dialogContentEmits)\n\nconst { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey)!\nconst { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY)!\n\nconst dialogKls = computed(() => [\n ns.b(),\n ns.is('fullscreen', props.fullscreen),\n ns.is('draggable', props.draggable),\n ns.is('align-center', props.alignCenter),\n { [ns.m('center')]: props.center },\n])\n\nconst composedDialogRef = composeRefs(focusTrapRef, dialogRef)\n\nconst draggable = computed(() => props.draggable)\nconst overflow = computed(() => props.overflow)\nconst { resetPosition } = useDraggable(\n dialogRef,\n headerRef,\n draggable,\n overflow\n)\n\ndefineExpose({\n resetPosition,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_unref","_normalizeClass","_normalizeStyle"],"mappings":";;;;;;;;;;;mCA4Cc,CAAA,EAAE,IAAM,EAAA,iBAAA,EAAkB,CAAA,CAAA;;;;;;;AAHxC,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAE,OAAU,GAAA,eAAA,CAAA;AAMlB,IAAM,MAAA,EAAE,WAAW,SAAW,EAAA,MAAA,EAAQ,IAAI,KAAM,EAAA,GAAI,OAAO,kBAAkB,CAAA,CAAA;AAC7E,IAAA,MAAM,EAAE,YAAA,EAAiB,GAAA,MAAA,CAAO,wBAAwB,CAAA,CAAA;AAExD,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAAA,MAC/B,GAAG,CAAE,EAAA;AAAA,MACL,EAAG,CAAA,EAAA,CAAG,YAAc,EAAA,KAAA,CAAM,UAAU,CAAA;AAAA,MACpC,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,KAAA,CAAM,SAAS,CAAA;AAAA,MAClC,EAAG,CAAA,EAAA,CAAG,cAAgB,EAAA,KAAA,CAAM,WAAW,CAAA;AAAA,MACvC,EAAE,CAAC,EAAG,CAAA,CAAA,CAAE,QAAQ,CAAC,GAAG,MAAM,MAAO,EAAA;AAAA,KAClC,CAAA,CAAA;AAED,IAAM,MAAA,iBAAA,GAAoB,WAAY,CAAA,YAAA,EAAc,SAAS,CAAA,CAAA;AAE7D,IAAA,MAAM,SAAY,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,SAAS,CAAA,CAAA;AAChD,IAAA,MAAM,QAAW,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,QAAQ,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAE,eAAkB,GAAA,YAAA,CAAA,SAAA,EAAA,SAAA,EAAA,SAAA,EAAA,QAAA,CAAA,CAAA;AAAA,IACxB,MAAA,CAAA;AAAA,MACA,aAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACA,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACF,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA;AAEA,QAAa,GAAA,EAAAC,KAAA,CAAA,iBAAA,CAAA;AAAA,QACX,KAAA,EAAAC,cAAA,CAAAD,KAAA,CAAA,SAAA,CAAA,CAAA;AAAA,QACD,KAAA,EAAAE,cAAA,CAAAF,KAAA,CAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { dialogContentProps } from './dialog-
|
1
|
+
import { dialogContentProps } from './dialog-content.mjs';
|
2
2
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
3
3
|
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
4
4
|
import { isBoolean } from '../../../utils/types.mjs';
|
@@ -2,7 +2,7 @@ import { defineComponent, useSlots, computed, ref, provide, openBlock, createBlo
|
|
2
2
|
import { ElOverlay } from '../../overlay/index.mjs';
|
3
3
|
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
4
4
|
import { ElTeleport } from '../../teleport/index.mjs';
|
5
|
-
import ElDialogContent from './dialog-
|
5
|
+
import ElDialogContent from './dialog-content2.mjs';
|
6
6
|
import { dialogInjectionKey } from './constants.mjs';
|
7
7
|
import { dialogProps, dialogEmits } from './dialog.mjs';
|
8
8
|
import { useDialog } from './use-dialog.mjs';
|
@@ -3,7 +3,7 @@ import { ElIcon } from '../../icon/index.mjs';
|
|
3
3
|
import { dropdownItemProps, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY } from './dropdown.mjs';
|
4
4
|
import { DROPDOWN_INJECTION_KEY } from './tokens.mjs';
|
5
5
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
6
|
-
import { ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-
|
6
|
+
import { ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY as COLLECTION_ITEM_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group2.mjs';
|
7
7
|
import { ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';
|
8
8
|
import { COLLECTION_ITEM_SIGN } from '../../collection/src/collection.mjs';
|
9
9
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
@@ -4,7 +4,7 @@ import { dropdownMenuProps, DROPDOWN_COLLECTION_INJECTION_KEY as COLLECTION_INJE
|
|
4
4
|
import { useDropdown } from './useDropdown.mjs';
|
5
5
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
6
6
|
import { ROVING_FOCUS_GROUP_INJECTION_KEY } from '../../roving-focus-group/src/tokens.mjs';
|
7
|
-
import { ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-
|
7
|
+
import { ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY$1 } from '../../roving-focus-group/src/roving-focus-group2.mjs';
|
8
8
|
import { focusFirst } from '../../roving-focus-group/src/utils.mjs';
|
9
9
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
10
10
|
import { FOCUS_TRAP_INJECTION_KEY } from '../../focus-trap/src/tokens.mjs';
|
@@ -3,7 +3,7 @@ import { ElButton } from '../../button/index.mjs';
|
|
3
3
|
import { ElTooltip } from '../../tooltip/index.mjs';
|
4
4
|
import { ElScrollbar } from '../../scrollbar/index.mjs';
|
5
5
|
import { ElIcon } from '../../icon/index.mjs';
|
6
|
-
import ElRovingFocusGroup from '../../roving-focus-group/src/roving-focus-
|
6
|
+
import ElRovingFocusGroup from '../../roving-focus-group/src/roving-focus-group.mjs';
|
7
7
|
import { ArrowDown } from '@element-plus/icons-vue';
|
8
8
|
import { ElCollection, dropdownProps } from './dropdown.mjs';
|
9
9
|
import { DROPDOWN_INJECTION_KEY } from './tokens.mjs';
|
package/es/components/index.mjs
CHANGED
@@ -109,15 +109,15 @@ export { colProps } from './col/src/col.mjs';
|
|
109
109
|
export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
|
110
110
|
export { collapseItemProps } from './collapse/src/collapse-item.mjs';
|
111
111
|
export { collapseContextKey } from './collapse/src/constants.mjs';
|
112
|
-
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './color-picker/src/color-
|
112
|
+
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './color-picker/src/color-picker.mjs';
|
113
113
|
export { messageConfig } from './config-provider/src/config-provider.mjs';
|
114
114
|
export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
|
115
115
|
export { configProviderContextKey } from './config-provider/src/constants.mjs';
|
116
116
|
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from './config-provider/src/hooks/use-global-config.mjs';
|
117
|
-
export { countdownEmits, countdownProps } from './countdown/src/
|
117
|
+
export { countdownEmits, countdownProps } from './countdown/src/countdown.mjs';
|
118
118
|
export { ROOT_PICKER_INJECTION_KEY } from './date-picker/src/constants.mjs';
|
119
119
|
export { datePickerProps } from './date-picker/src/props/date-picker.mjs';
|
120
|
-
export { descriptionProps } from './descriptions/src/
|
120
|
+
export { descriptionProps } from './descriptions/src/description.mjs';
|
121
121
|
export { descriptionItemProps } from './descriptions/src/description-item.mjs';
|
122
122
|
export { useDialog } from './dialog/src/use-dialog.mjs';
|
123
123
|
export { dialogEmits, dialogProps } from './dialog/src/dialog.mjs';
|
@@ -137,7 +137,7 @@ export { imageEmits, imageProps } from './image/src/image.mjs';
|
|
137
137
|
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer.mjs';
|
138
138
|
export { inputEmits, inputProps } from './input/src/input.mjs';
|
139
139
|
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
|
140
|
-
export { inputTagEmits, inputTagProps } from './input-tag/src/input-
|
140
|
+
export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag2.mjs';
|
141
141
|
export { linkEmits, linkProps } from './link/src/link.mjs';
|
142
142
|
export { menuEmits, menuProps } from './menu/src/menu.mjs';
|
143
143
|
export { menuItemEmits, menuItemProps } from './menu/src/menu-item.mjs';
|
@@ -151,9 +151,9 @@ export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mj
|
|
151
151
|
export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
|
152
152
|
export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger.mjs';
|
153
153
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content.mjs';
|
154
|
-
export { popperArrowProps, usePopperArrowProps } from './popper/src/
|
154
|
+
export { popperArrowProps, usePopperArrowProps } from './popper/src/arrow2.mjs';
|
155
155
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './popper/src/constants.mjs';
|
156
|
-
export { default as ElPopperArrow } from './popper/src/
|
156
|
+
export { default as ElPopperArrow } from './popper/src/arrow.mjs';
|
157
157
|
export { default as ElPopperTrigger } from './popper/src/trigger2.mjs';
|
158
158
|
export { default as ElPopperContent } from './popper/src/content2.mjs';
|
159
159
|
export { progressProps } from './progress/src/progress.mjs';
|
@@ -162,7 +162,7 @@ export { radioGroupEmits, radioGroupProps } from './radio/src/radio-group.mjs';
|
|
162
162
|
export { radioButtonProps } from './radio/src/radio-button.mjs';
|
163
163
|
export { radioGroupKey } from './radio/src/constants.mjs';
|
164
164
|
export { rateEmits, rateProps } from './rate/src/rate.mjs';
|
165
|
-
export { IconComponentMap, IconMap, resultProps } from './result/src/
|
165
|
+
export { IconComponentMap, IconMap, resultProps } from './result/src/result2.mjs';
|
166
166
|
export { RowAlign, RowJustify, rowProps } from './row/src/row.mjs';
|
167
167
|
export { rowContextKey } from './row/src/constants.mjs';
|
168
168
|
export { BAR_MAP, GAP, renderThumbStyle } from './scrollbar/src/util.mjs';
|
@@ -191,7 +191,7 @@ export { tableV2RowProps } from './table-v2/src/row.mjs';
|
|
191
191
|
export { tabsEmits, tabsProps } from './tabs/src/tabs.mjs';
|
192
192
|
export { tabBarProps } from './tabs/src/tab-bar.mjs';
|
193
193
|
export { tabNavEmits, tabNavProps } from './tabs/src/tab-nav.mjs';
|
194
|
-
export { tabPaneProps } from './tabs/src/tab-
|
194
|
+
export { tabPaneProps } from './tabs/src/tab-pane.mjs';
|
195
195
|
export { tabsRootContextKey } from './tabs/src/constants.mjs';
|
196
196
|
export { tagEmits, tagProps } from './tag/src/tag.mjs';
|
197
197
|
export { textProps } from './text/src/text.mjs';
|
@@ -201,13 +201,13 @@ export { timePickerDefaultProps, timePickerRngeTriggerProps } from './time-picke
|
|
201
201
|
export { default as CommonPicker } from './time-picker/src/common/picker.mjs';
|
202
202
|
export { default as TimePickPanel } from './time-picker/src/time-picker-com/panel-time-pick.mjs';
|
203
203
|
export { timeSelectProps } from './time-select/src/time-select.mjs';
|
204
|
-
export { timelineItemProps } from './timeline/src/timeline-
|
204
|
+
export { timelineItemProps } from './timeline/src/timeline-item2.mjs';
|
205
205
|
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip.mjs';
|
206
206
|
export { useTooltipTriggerProps } from './tooltip/src/trigger.mjs';
|
207
207
|
export { useTooltipContentProps } from './tooltip/src/content.mjs';
|
208
208
|
export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
|
209
209
|
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/transfer.mjs';
|
210
|
-
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/
|
210
|
+
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/upload2.mjs';
|
211
211
|
export { uploadContentProps } from './upload/src/upload-content.mjs';
|
212
212
|
export { uploadListEmits, uploadListProps } from './upload/src/upload-list.mjs';
|
213
213
|
export { uploadDraggerEmits, uploadDraggerProps } from './upload/src/upload-dragger.mjs';
|
@@ -217,7 +217,7 @@ export { default as DynamicSizeList } from './virtual-list/src/components/dynami
|
|
217
217
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
|
218
218
|
export { watermarkProps } from './watermark/src/watermark.mjs';
|
219
219
|
export { tourEmits, tourProps } from './tour/src/tour.mjs';
|
220
|
-
export { tourStepEmits, tourStepProps } from './tour/src/
|
220
|
+
export { tourStepEmits, tourStepProps } from './tour/src/step2.mjs';
|
221
221
|
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
|
222
222
|
export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
|
223
223
|
export { segmentedEmits, segmentedProps } from './segmented/src/segmented.mjs';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import InputTag from './src/input-
|
2
|
-
export { inputTagEmits, inputTagProps } from './src/input-
|
1
|
+
import InputTag from './src/input-tag.mjs';
|
2
|
+
export { inputTagEmits, inputTagProps } from './src/input-tag2.mjs';
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
4
4
|
|
5
5
|
const ElInputTag = withInstall(InputTag);
|
@@ -1,69 +1,219 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
import {
|
1
|
+
import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, withDirectives, mergeProps, isRef, vModelText, vShow, createVNode, resolveDynamicComponent } from 'vue';
|
2
|
+
import { CircleClose } from '@element-plus/icons-vue';
|
3
|
+
import { ElIcon } from '../../icon/index.mjs';
|
4
|
+
import { ElTag } from '../../tag/index.mjs';
|
5
|
+
import { inputTagProps, inputTagEmits } from './input-tag2.mjs';
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
7
|
+
import { useInputTag } from './composables/use-input-tag.mjs';
|
8
|
+
import { useHovering } from './composables/use-hovering.mjs';
|
9
|
+
import { useCalcInputWidth } from '../../../hooks/use-calc-input-width/index.mjs';
|
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';
|
8
16
|
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
},
|
13
|
-
max: Number,
|
14
|
-
tagType: { ...tagProps.type, default: "info" },
|
15
|
-
tagEffect: tagProps.effect,
|
16
|
-
trigger: {
|
17
|
-
type: definePropType(String),
|
18
|
-
default: EVENT_CODE.enter
|
19
|
-
},
|
20
|
-
draggable: {
|
21
|
-
type: Boolean,
|
22
|
-
default: false
|
23
|
-
},
|
24
|
-
size: useSizeProp,
|
25
|
-
clearable: Boolean,
|
26
|
-
disabled: {
|
27
|
-
type: Boolean,
|
28
|
-
default: void 0
|
29
|
-
},
|
30
|
-
validateEvent: {
|
31
|
-
type: Boolean,
|
32
|
-
default: true
|
33
|
-
},
|
34
|
-
readonly: Boolean,
|
35
|
-
autofocus: Boolean,
|
36
|
-
id: {
|
37
|
-
type: String,
|
38
|
-
default: void 0
|
39
|
-
},
|
40
|
-
tabindex: {
|
41
|
-
type: [String, Number],
|
42
|
-
default: 0
|
43
|
-
},
|
44
|
-
maxlength: {
|
45
|
-
type: [String, Number]
|
46
|
-
},
|
47
|
-
minlength: {
|
48
|
-
type: [String, Number]
|
49
|
-
},
|
50
|
-
placeholder: String,
|
51
|
-
autocomplete: {
|
52
|
-
type: String,
|
53
|
-
default: "off"
|
54
|
-
},
|
55
|
-
ariaLabel: String
|
17
|
+
const __default__ = defineComponent({
|
18
|
+
name: "ElInputTag",
|
19
|
+
inheritAttrs: false
|
56
20
|
});
|
57
|
-
const
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
};
|
21
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
22
|
+
...__default__,
|
23
|
+
props: inputTagProps,
|
24
|
+
emits: inputTagEmits,
|
25
|
+
setup(__props, { expose, emit }) {
|
26
|
+
const props = __props;
|
27
|
+
const attrs = useAttrs();
|
28
|
+
const slots = useSlots();
|
29
|
+
const { form, formItem } = useFormItem();
|
30
|
+
const { inputId } = useFormItemInputId(props, { formItemContext: formItem });
|
31
|
+
const needStatusIcon = computed(() => {
|
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
|
+
isFocused,
|
43
|
+
inputValue,
|
44
|
+
size,
|
45
|
+
tagSize,
|
46
|
+
placeholder,
|
47
|
+
closable,
|
48
|
+
disabled,
|
49
|
+
handleDragged,
|
50
|
+
handleInput,
|
51
|
+
handleKeydown,
|
52
|
+
handleRemoveTag,
|
53
|
+
handleClear,
|
54
|
+
handleCompositionStart,
|
55
|
+
handleCompositionUpdate,
|
56
|
+
handleCompositionEnd,
|
57
|
+
focus,
|
58
|
+
blur
|
59
|
+
} = useInputTag({ props, emit, formItem });
|
60
|
+
const { hovering, handleMouseEnter, handleMouseLeave } = useHovering();
|
61
|
+
const { calculatorRef, inputStyle } = useCalcInputWidth();
|
62
|
+
const {
|
63
|
+
dropIndicatorRef,
|
64
|
+
showDropIndicator,
|
65
|
+
handleDragStart,
|
66
|
+
handleDragOver,
|
67
|
+
handleDragEnd
|
68
|
+
} = useDragTag({ wrapperRef, handleDragged, afterDragged: focus });
|
69
|
+
const {
|
70
|
+
ns,
|
71
|
+
nsInput,
|
72
|
+
containerKls,
|
73
|
+
containerStyle,
|
74
|
+
innerKls,
|
75
|
+
showClear,
|
76
|
+
showSuffix
|
77
|
+
} = useInputTagDom({
|
78
|
+
props,
|
79
|
+
hovering,
|
80
|
+
isFocused,
|
81
|
+
inputValue,
|
82
|
+
disabled,
|
83
|
+
size,
|
84
|
+
validateState,
|
85
|
+
validateIcon,
|
86
|
+
needStatusIcon
|
87
|
+
});
|
88
|
+
expose({
|
89
|
+
focus,
|
90
|
+
blur
|
91
|
+
});
|
92
|
+
return (_ctx, _cache) => {
|
93
|
+
return openBlock(), createElementBlock("div", {
|
94
|
+
ref_key: "wrapperRef",
|
95
|
+
ref: wrapperRef,
|
96
|
+
class: normalizeClass(unref(containerKls)),
|
97
|
+
style: normalizeStyle(unref(containerStyle)),
|
98
|
+
onMouseenter: unref(handleMouseEnter),
|
99
|
+
onMouseleave: unref(handleMouseLeave)
|
100
|
+
}, [
|
101
|
+
unref(slots).prefix ? (openBlock(), createElementBlock("div", {
|
102
|
+
key: 0,
|
103
|
+
class: normalizeClass(unref(ns).e("prefix"))
|
104
|
+
}, [
|
105
|
+
renderSlot(_ctx.$slots, "prefix")
|
106
|
+
], 2)) : createCommentVNode("v-if", true),
|
107
|
+
createElementVNode("div", {
|
108
|
+
class: normalizeClass(unref(innerKls))
|
109
|
+
}, [
|
110
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, (item, index) => {
|
111
|
+
return openBlock(), createBlock(unref(ElTag), {
|
112
|
+
key: index,
|
113
|
+
size: unref(tagSize),
|
114
|
+
closable: unref(closable),
|
115
|
+
type: _ctx.tagType,
|
116
|
+
effect: _ctx.tagEffect,
|
117
|
+
draggable: unref(closable) && _ctx.draggable,
|
118
|
+
"disable-transitions": "",
|
119
|
+
onClose: ($event) => unref(handleRemoveTag)(index),
|
120
|
+
onDragstart: (event) => unref(handleDragStart)(event, index),
|
121
|
+
onDragover: (event) => unref(handleDragOver)(event, index),
|
122
|
+
onDragend: unref(handleDragEnd),
|
123
|
+
onDrop: withModifiers(() => {
|
124
|
+
}, ["stop"])
|
125
|
+
}, {
|
126
|
+
default: withCtx(() => [
|
127
|
+
renderSlot(_ctx.$slots, "tag", {
|
128
|
+
value: item,
|
129
|
+
index
|
130
|
+
}, () => [
|
131
|
+
createTextVNode(toDisplayString(item), 1)
|
132
|
+
])
|
133
|
+
]),
|
134
|
+
_: 2
|
135
|
+
}, 1032, ["size", "closable", "type", "effect", "draggable", "onClose", "onDragstart", "onDragover", "onDragend", "onDrop"]);
|
136
|
+
}), 128)),
|
137
|
+
createElementVNode("div", {
|
138
|
+
class: normalizeClass(unref(ns).e("input-wrapper"))
|
139
|
+
}, [
|
140
|
+
withDirectives(createElementVNode("input", mergeProps({
|
141
|
+
id: unref(inputId),
|
142
|
+
ref_key: "inputRef",
|
143
|
+
ref: inputRef,
|
144
|
+
"onUpdate:modelValue": ($event) => isRef(inputValue) ? inputValue.value = $event : null
|
145
|
+
}, unref(attrs), {
|
146
|
+
type: "text",
|
147
|
+
minlength: _ctx.minlength,
|
148
|
+
maxlength: _ctx.maxlength,
|
149
|
+
disabled: unref(disabled),
|
150
|
+
readonly: _ctx.readonly,
|
151
|
+
autocomplete: _ctx.autocomplete,
|
152
|
+
tabindex: _ctx.tabindex,
|
153
|
+
placeholder: unref(placeholder),
|
154
|
+
autofocus: _ctx.autofocus,
|
155
|
+
ariaLabel: _ctx.ariaLabel,
|
156
|
+
class: unref(ns).e("input"),
|
157
|
+
style: unref(inputStyle),
|
158
|
+
onCompositionstart: unref(handleCompositionStart),
|
159
|
+
onCompositionupdate: unref(handleCompositionUpdate),
|
160
|
+
onCompositionend: unref(handleCompositionEnd),
|
161
|
+
onInput: unref(handleInput),
|
162
|
+
onKeydown: unref(handleKeydown)
|
163
|
+
}), null, 16, ["id", "onUpdate:modelValue", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onKeydown"]), [
|
164
|
+
[vModelText, unref(inputValue)]
|
165
|
+
]),
|
166
|
+
createElementVNode("span", {
|
167
|
+
ref_key: "calculatorRef",
|
168
|
+
ref: calculatorRef,
|
169
|
+
"aria-hidden": "true",
|
170
|
+
class: normalizeClass(unref(ns).e("input-calculator")),
|
171
|
+
textContent: toDisplayString(unref(inputValue))
|
172
|
+
}, null, 10, ["textContent"])
|
173
|
+
], 2),
|
174
|
+
withDirectives(createElementVNode("div", {
|
175
|
+
ref_key: "dropIndicatorRef",
|
176
|
+
ref: dropIndicatorRef,
|
177
|
+
class: normalizeClass(unref(ns).e("drop-indicator"))
|
178
|
+
}, null, 2), [
|
179
|
+
[vShow, unref(showDropIndicator)]
|
180
|
+
])
|
181
|
+
], 2),
|
182
|
+
unref(showSuffix) ? (openBlock(), createElementBlock("div", {
|
183
|
+
key: 1,
|
184
|
+
class: normalizeClass(unref(ns).e("suffix"))
|
185
|
+
}, [
|
186
|
+
renderSlot(_ctx.$slots, "suffix"),
|
187
|
+
unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
|
188
|
+
key: 0,
|
189
|
+
class: normalizeClass([unref(ns).e("icon"), unref(ns).e("clear")]),
|
190
|
+
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
191
|
+
onClick: unref(handleClear)
|
192
|
+
}, {
|
193
|
+
default: withCtx(() => [
|
194
|
+
createVNode(unref(CircleClose))
|
195
|
+
]),
|
196
|
+
_: 1
|
197
|
+
}, 8, ["class", "onMousedown", "onClick"])) : createCommentVNode("v-if", true),
|
198
|
+
unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
199
|
+
key: 1,
|
200
|
+
class: normalizeClass([
|
201
|
+
unref(nsInput).e("icon"),
|
202
|
+
unref(nsInput).e("validateIcon"),
|
203
|
+
unref(nsInput).is("loading", unref(validateState) === "validating")
|
204
|
+
])
|
205
|
+
}, {
|
206
|
+
default: withCtx(() => [
|
207
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
|
208
|
+
]),
|
209
|
+
_: 1
|
210
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
211
|
+
], 2)) : createCommentVNode("v-if", true)
|
212
|
+
], 46, ["onMouseenter", "onMouseleave"]);
|
213
|
+
};
|
214
|
+
}
|
215
|
+
});
|
216
|
+
var InputTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-tag.vue"]]);
|
67
217
|
|
68
|
-
export {
|
218
|
+
export { InputTag as default };
|
69
219
|
//# sourceMappingURL=input-tag.mjs.map
|