@element-plus/nightly 0.0.20250619 → 0.0.20250621
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.full.js +33 -16
- package/dist/index.full.min.js +9 -9
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +33 -16
- 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 +94 -53
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.js.map +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.min.mjs.map +1 -1
- package/dist/locale/km.mjs +94 -53
- 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/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +61 -208
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +208 -61
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/index.mjs +2 -2
- package/es/components/cascader/src/cascader.mjs +83 -649
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader2.mjs +649 -83
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +18 -95
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +95 -18
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +10 -62
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +62 -10
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +26 -127
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +127 -26
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +26 -178
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +178 -26
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +2 -2
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form.mjs +161 -54
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +54 -161
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +447 -49
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +49 -447
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +18 -18
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.d.ts +1 -0
- package/es/components/input/src/input.mjs +438 -103
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +3 -0
- package/es/components/input/src/input2.mjs +106 -436
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/src/input-number.d.ts +1 -0
- package/es/components/input-number/src/input-number.mjs +6 -2
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue.d.ts +3 -0
- package/es/components/input-number/src/input-number2.mjs +2 -1
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/mention/src/mention.d.ts +1 -0
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention.vue.d.ts +3 -0
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/arrow.mjs +30 -7
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +7 -30
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +1 -1
- package/es/components/popper/src/trigger.mjs +127 -31
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +31 -127
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio.mjs +74 -32
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +32 -74
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +258 -83
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +83 -258
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/table/src/store/expand.mjs +1 -1
- package/es/components/table/src/store/expand.mjs.map +1 -1
- package/es/components/table/src/store/tree.mjs +1 -1
- package/es/components/table/src/store/tree.mjs.map +1 -1
- package/es/components/table/src/store/watcher.mjs +2 -2
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/util.d.ts +2 -2
- package/es/components/table/src/util.mjs +13 -6
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +33 -72
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +72 -33
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +2 -2
- package/es/components/tooltip/src/tooltip2.mjs +2 -2
- package/es/components/tooltip/src/trigger.mjs +14 -72
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger2.mjs +72 -14
- package/es/components/tooltip/src/trigger2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/tooltip-v2/src/trigger.mjs +12 -89
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/components/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/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +220 -27
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +27 -220
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.d.ts +12 -0
- package/es/index.mjs +18 -18
- package/es/locale/lang/km.d.ts +41 -0
- package/es/locale/lang/km.mjs +93 -52
- package/es/locale/lang/km.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +62 -208
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +208 -62
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/index.js +2 -2
- package/lib/components/cascader/src/cascader.js +84 -649
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader2.js +649 -84
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +18 -95
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +95 -18
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +9 -62
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +62 -9
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +26 -127
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +127 -26
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +27 -178
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +178 -27
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +2 -2
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form.js +160 -55
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +55 -160
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +447 -50
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +50 -447
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +18 -18
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.d.ts +1 -0
- package/lib/components/input/src/input.js +435 -101
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +3 -0
- package/lib/components/input/src/input2.js +104 -433
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/src/input-number.d.ts +1 -0
- package/lib/components/input-number/src/input-number.js +5 -1
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +3 -0
- package/lib/components/input-number/src/input-number2.js +2 -1
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/mention/src/mention.d.ts +1 -0
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +3 -0
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/arrow.js +30 -8
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +8 -30
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +1 -1
- package/lib/components/popper/src/trigger.js +127 -32
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +32 -127
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +1 -1
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio.js +73 -33
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +33 -73
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +257 -83
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +83 -257
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +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/table/src/store/expand.js +1 -1
- package/lib/components/table/src/store/expand.js.map +1 -1
- package/lib/components/table/src/store/tree.js +1 -1
- package/lib/components/table/src/store/tree.js.map +1 -1
- package/lib/components/table/src/store/watcher.js +2 -2
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/util.d.ts +2 -2
- package/lib/components/table/src/util.js +13 -6
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +33 -72
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +72 -33
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +2 -2
- package/lib/components/tooltip/src/tooltip2.js +2 -2
- package/lib/components/tooltip/src/trigger.js +14 -72
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger2.js +72 -14
- package/lib/components/tooltip/src/trigger2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/tooltip-v2/src/trigger.js +12 -89
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +89 -12
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/components/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/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +220 -27
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +27 -220
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.d.ts +12 -0
- package/lib/index.js +18 -18
- package/lib/locale/lang/km.d.ts +41 -0
- package/lib/locale/lang/km.js +93 -52
- package/lib/locale/lang/km.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
package/es/components/index.mjs
CHANGED
@@ -98,10 +98,10 @@ export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './butt
|
|
98
98
|
export { buttonGroupContextKey } from './button/src/constants.mjs';
|
99
99
|
export { calendarEmits, calendarProps } from './calendar/src/calendar.mjs';
|
100
100
|
export { cardProps } from './card/src/card.mjs';
|
101
|
-
export { carouselEmits, carouselProps } from './carousel/src/
|
101
|
+
export { carouselEmits, carouselProps } from './carousel/src/carousel.mjs';
|
102
102
|
export { carouselItemProps } from './carousel/src/carousel-item.mjs';
|
103
103
|
export { CAROUSEL_ITEM_NAME, carouselContextKey } from './carousel/src/constants.mjs';
|
104
|
-
export { cascaderEmits, cascaderProps } from './cascader/src/
|
104
|
+
export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
|
105
105
|
export { CASCADER_PANEL_INJECTION_KEY } from './cascader-panel/src/types.mjs';
|
106
106
|
export { CommonProps, DefaultProps, useCascaderConfig } from './cascader-panel/src/config.mjs';
|
107
107
|
export { checkTagEmits, checkTagProps } from './check-tag/src/check-tag.mjs';
|
@@ -110,7 +110,7 @@ export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox.mjs';
|
|
110
110
|
export { checkboxGroupContextKey } from './checkbox/src/constants.mjs';
|
111
111
|
export { colProps } from './col/src/col.mjs';
|
112
112
|
export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
|
113
|
-
export { collapseItemProps } from './collapse/src/collapse-
|
113
|
+
export { collapseItemProps } from './collapse/src/collapse-item.mjs';
|
114
114
|
export { collapseContextKey } from './collapse/src/constants.mjs';
|
115
115
|
export { colorPickerContextKey, colorPickerEmits, colorPickerProps } from './color-picker/src/color-picker.mjs';
|
116
116
|
export { messageConfig } from './config-provider/src/config-provider.mjs';
|
@@ -120,25 +120,25 @@ export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from
|
|
120
120
|
export { countdownEmits, countdownProps } from './countdown/src/countdown.mjs';
|
121
121
|
export { ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY } from './date-picker/src/constants.mjs';
|
122
122
|
export { datePickerProps } from './date-picker/src/props/date-picker.mjs';
|
123
|
-
export { descriptionProps } from './descriptions/src/
|
123
|
+
export { descriptionProps } from './descriptions/src/description.mjs';
|
124
124
|
export { descriptionItemProps } from './descriptions/src/description-item.mjs';
|
125
125
|
export { useDialog } from './dialog/src/use-dialog.mjs';
|
126
126
|
export { dialogEmits, dialogProps } from './dialog/src/dialog.mjs';
|
127
127
|
export { dialogInjectionKey } from './dialog/src/constants.mjs';
|
128
128
|
export { dividerProps } from './divider/src/divider.mjs';
|
129
|
-
export { drawerEmits, drawerProps } from './drawer/src/
|
129
|
+
export { drawerEmits, drawerProps } from './drawer/src/drawer.mjs';
|
130
130
|
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';
|
131
131
|
export { DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY } from './dropdown/src/tokens.mjs';
|
132
132
|
export { emptyProps } from './empty/src/empty.mjs';
|
133
|
-
export { formEmits, formMetaProps, formProps } from './form/src/
|
133
|
+
export { formEmits, formMetaProps, formProps } from './form/src/form2.mjs';
|
134
134
|
export { formItemProps, formItemValidateStates } from './form/src/form-item.mjs';
|
135
135
|
export { formContextKey, formItemContextKey } from './form/src/constants.mjs';
|
136
136
|
export { useDisabled, useFormDisabled, useFormSize, useSize } from './form/src/hooks/use-form-common-props.mjs';
|
137
137
|
export { useFormItem, useFormItemInputId } from './form/src/hooks/use-form-item.mjs';
|
138
138
|
export { iconProps } from './icon/src/icon.mjs';
|
139
139
|
export { imageEmits, imageProps } from './image/src/image.mjs';
|
140
|
-
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-
|
141
|
-
export { inputEmits, inputProps } from './input/src/
|
140
|
+
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer2.mjs';
|
141
|
+
export { inputEmits, inputProps } from './input/src/input2.mjs';
|
142
142
|
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
|
143
143
|
export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag.mjs';
|
144
144
|
export { linkEmits, linkProps } from './link/src/link.mjs';
|
@@ -153,19 +153,19 @@ export { paginationEmits, paginationProps } from './pagination/src/pagination.mj
|
|
153
153
|
export { elPaginationKey } from './pagination/src/constants.mjs';
|
154
154
|
export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mjs';
|
155
155
|
export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
|
156
|
-
export { popperTriggerProps, usePopperTriggerProps } from './popper/src/
|
156
|
+
export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger2.mjs';
|
157
157
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content.mjs';
|
158
|
-
export { popperArrowProps, usePopperArrowProps } from './popper/src/
|
158
|
+
export { popperArrowProps, usePopperArrowProps } from './popper/src/arrow2.mjs';
|
159
159
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './popper/src/constants.mjs';
|
160
|
-
export { default as ElPopperArrow } from './popper/src/
|
161
|
-
export { default as ElPopperTrigger } from './popper/src/
|
160
|
+
export { default as ElPopperArrow } from './popper/src/arrow.mjs';
|
161
|
+
export { default as ElPopperTrigger } from './popper/src/trigger.mjs';
|
162
162
|
export { default as ElPopperContent } from './popper/src/content2.mjs';
|
163
163
|
export { progressProps } from './progress/src/progress.mjs';
|
164
|
-
export { radioEmits, radioProps, radioPropsBase } from './radio/src/
|
164
|
+
export { radioEmits, radioProps, radioPropsBase } from './radio/src/radio2.mjs';
|
165
165
|
export { radioGroupEmits, radioGroupProps } from './radio/src/radio-group.mjs';
|
166
166
|
export { radioButtonProps } from './radio/src/radio-button.mjs';
|
167
167
|
export { radioGroupKey } from './radio/src/constants.mjs';
|
168
|
-
export { rateEmits, rateProps } from './rate/src/
|
168
|
+
export { rateEmits, rateProps } from './rate/src/rate2.mjs';
|
169
169
|
export { IconComponentMap, IconMap, resultProps } from './result/src/result.mjs';
|
170
170
|
export { RowAlign, RowJustify, rowProps } from './row/src/row.mjs';
|
171
171
|
export { rowContextKey } from './row/src/constants.mjs';
|
@@ -207,10 +207,10 @@ export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTrig
|
|
207
207
|
export { default as CommonPicker } from './time-picker/src/common/picker.mjs';
|
208
208
|
export { default as TimePickPanel } from './time-picker/src/time-picker-com/panel-time-pick.mjs';
|
209
209
|
export { timeSelectProps } from './time-select/src/time-select.mjs';
|
210
|
-
export { timelineItemProps } from './timeline/src/timeline-
|
210
|
+
export { timelineItemProps } from './timeline/src/timeline-item.mjs';
|
211
211
|
export { TIMELINE_INJECTION_KEY } from './timeline/src/tokens.mjs';
|
212
212
|
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip.mjs';
|
213
|
-
export { useTooltipTriggerProps } from './tooltip/src/
|
213
|
+
export { useTooltipTriggerProps } from './tooltip/src/trigger.mjs';
|
214
214
|
export { useTooltipContentProps } from './tooltip/src/content.mjs';
|
215
215
|
export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
|
216
216
|
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/transfer.mjs';
|
@@ -223,10 +223,10 @@ export { uploadContextKey } from './upload/src/constants.mjs';
|
|
223
223
|
export { default as FixedSizeList } from './virtual-list/src/components/fixed-size-list.mjs';
|
224
224
|
export { default as DynamicSizeList } from './virtual-list/src/components/dynamic-size-list.mjs';
|
225
225
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
|
226
|
-
export { watermarkProps } from './watermark/src/
|
226
|
+
export { watermarkProps } from './watermark/src/watermark2.mjs';
|
227
227
|
export { tourEmits, tourProps } from './tour/src/tour.mjs';
|
228
228
|
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
229
|
-
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/
|
229
|
+
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
|
230
230
|
export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
|
231
231
|
export { defaultProps, segmentedEmits, segmentedProps } from './segmented/src/segmented.mjs';
|
232
232
|
export { mentionEmits, mentionProps } from './mention/src/mention.mjs';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import Input from './src/
|
2
|
-
export { inputEmits, inputProps } from './src/
|
1
|
+
import Input from './src/input.mjs';
|
2
|
+
export { inputEmits, inputProps } from './src/input2.mjs';
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
4
4
|
|
5
5
|
const ElInput = withInstall(Input);
|
@@ -4,6 +4,7 @@ export type InputAutoSize = {
|
|
4
4
|
maxRows?: number;
|
5
5
|
} | boolean;
|
6
6
|
export declare const inputProps: {
|
7
|
+
readonly inputmode: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal") | (() => "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined) | ((new (...args: any[]) => "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal") | (() => "search" | "text" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined))[], unknown, unknown, undefined, boolean>;
|
7
8
|
readonly ariaLabel: StringConstructor;
|
8
9
|
readonly id: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
9
10
|
readonly size: {
|
@@ -1,107 +1,442 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
1
|
+
import { defineComponent, useAttrs, useSlots, computed, shallowRef, ref, watch, nextTick, onMounted, toRef, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createCommentVNode, Fragment, renderSlot, createElementVNode, createBlock, withCtx, resolveDynamicComponent, mergeProps, withModifiers, createVNode, toDisplayString } from 'vue';
|
2
|
+
import { useResizeObserver, isClient } from '@vueuse/core';
|
3
|
+
import { isNil } from 'lodash-unified';
|
4
|
+
import { ElIcon } from '../../icon/index.mjs';
|
5
|
+
import { View, Hide, CircleClose } from '@element-plus/icons-vue';
|
6
|
+
import { calcTextareaHeight } from './utils.mjs';
|
7
|
+
import { inputProps, inputEmits } from './input2.mjs';
|
8
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
9
|
+
import { useAttrs as useAttrs$1 } from '../../../hooks/use-attrs/index.mjs';
|
10
|
+
import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
|
11
|
+
import { useFormSize, useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
12
|
+
import { useFocusController } from '../../../hooks/use-focus-controller/index.mjs';
|
13
|
+
import { ValidateComponentsMap } from '../../../utils/vue/icon.mjs';
|
14
|
+
import { useComposition } from '../../../hooks/use-composition/index.mjs';
|
15
|
+
import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
16
|
+
import { useCursor } from '../../../hooks/use-cursor/index.mjs';
|
17
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
18
|
+
import { debugWarn } from '../../../utils/error.mjs';
|
19
|
+
import { NOOP, isObject } from '@vue/shared';
|
8
20
|
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
},
|
14
|
-
size: useSizeProp,
|
15
|
-
disabled: Boolean,
|
16
|
-
modelValue: {
|
17
|
-
type: definePropType([
|
18
|
-
String,
|
19
|
-
Number,
|
20
|
-
Object
|
21
|
-
]),
|
22
|
-
default: ""
|
23
|
-
},
|
24
|
-
maxlength: {
|
25
|
-
type: [String, Number]
|
26
|
-
},
|
27
|
-
minlength: {
|
28
|
-
type: [String, Number]
|
29
|
-
},
|
30
|
-
type: {
|
31
|
-
type: String,
|
32
|
-
default: "text"
|
33
|
-
},
|
34
|
-
resize: {
|
35
|
-
type: String,
|
36
|
-
values: ["none", "both", "horizontal", "vertical"]
|
37
|
-
},
|
38
|
-
autosize: {
|
39
|
-
type: definePropType([Boolean, Object]),
|
40
|
-
default: false
|
41
|
-
},
|
42
|
-
autocomplete: {
|
43
|
-
type: String,
|
44
|
-
default: "off"
|
45
|
-
},
|
46
|
-
formatter: {
|
47
|
-
type: Function
|
48
|
-
},
|
49
|
-
parser: {
|
50
|
-
type: Function
|
51
|
-
},
|
52
|
-
placeholder: {
|
53
|
-
type: String
|
54
|
-
},
|
55
|
-
form: {
|
56
|
-
type: String
|
57
|
-
},
|
58
|
-
readonly: Boolean,
|
59
|
-
clearable: Boolean,
|
60
|
-
showPassword: Boolean,
|
61
|
-
showWordLimit: Boolean,
|
62
|
-
suffixIcon: {
|
63
|
-
type: iconPropType
|
64
|
-
},
|
65
|
-
prefixIcon: {
|
66
|
-
type: iconPropType
|
67
|
-
},
|
68
|
-
containerRole: {
|
69
|
-
type: String,
|
70
|
-
default: void 0
|
71
|
-
},
|
72
|
-
tabindex: {
|
73
|
-
type: [String, Number],
|
74
|
-
default: 0
|
75
|
-
},
|
76
|
-
validateEvent: {
|
77
|
-
type: Boolean,
|
78
|
-
default: true
|
79
|
-
},
|
80
|
-
inputStyle: {
|
81
|
-
type: definePropType([Object, Array, String]),
|
82
|
-
default: () => mutable({})
|
83
|
-
},
|
84
|
-
autofocus: Boolean,
|
85
|
-
rows: {
|
86
|
-
type: Number,
|
87
|
-
default: 2
|
88
|
-
},
|
89
|
-
...useAriaProps(["ariaLabel"])
|
21
|
+
const COMPONENT_NAME = "ElInput";
|
22
|
+
const __default__ = defineComponent({
|
23
|
+
name: COMPONENT_NAME,
|
24
|
+
inheritAttrs: false
|
90
25
|
});
|
91
|
-
const
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
26
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
27
|
+
...__default__,
|
28
|
+
props: inputProps,
|
29
|
+
emits: inputEmits,
|
30
|
+
setup(__props, { expose, emit }) {
|
31
|
+
const props = __props;
|
32
|
+
const rawAttrs = useAttrs();
|
33
|
+
const attrs = useAttrs$1();
|
34
|
+
const slots = useSlots();
|
35
|
+
const containerKls = computed(() => [
|
36
|
+
props.type === "textarea" ? nsTextarea.b() : nsInput.b(),
|
37
|
+
nsInput.m(inputSize.value),
|
38
|
+
nsInput.is("disabled", inputDisabled.value),
|
39
|
+
nsInput.is("exceed", inputExceed.value),
|
40
|
+
{
|
41
|
+
[nsInput.b("group")]: slots.prepend || slots.append,
|
42
|
+
[nsInput.m("prefix")]: slots.prefix || props.prefixIcon,
|
43
|
+
[nsInput.m("suffix")]: slots.suffix || props.suffixIcon || props.clearable || props.showPassword,
|
44
|
+
[nsInput.bm("suffix", "password-clear")]: showClear.value && showPwdVisible.value,
|
45
|
+
[nsInput.b("hidden")]: props.type === "hidden"
|
46
|
+
},
|
47
|
+
rawAttrs.class
|
48
|
+
]);
|
49
|
+
const wrapperKls = computed(() => [
|
50
|
+
nsInput.e("wrapper"),
|
51
|
+
nsInput.is("focus", isFocused.value)
|
52
|
+
]);
|
53
|
+
const { form: elForm, formItem: elFormItem } = useFormItem();
|
54
|
+
const { inputId } = useFormItemInputId(props, {
|
55
|
+
formItemContext: elFormItem
|
56
|
+
});
|
57
|
+
const inputSize = useFormSize();
|
58
|
+
const inputDisabled = useFormDisabled();
|
59
|
+
const nsInput = useNamespace("input");
|
60
|
+
const nsTextarea = useNamespace("textarea");
|
61
|
+
const input = shallowRef();
|
62
|
+
const textarea = shallowRef();
|
63
|
+
const hovering = ref(false);
|
64
|
+
const passwordVisible = ref(false);
|
65
|
+
const countStyle = ref();
|
66
|
+
const textareaCalcStyle = shallowRef(props.inputStyle);
|
67
|
+
const _ref = computed(() => input.value || textarea.value);
|
68
|
+
const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(_ref, {
|
69
|
+
beforeFocus() {
|
70
|
+
return inputDisabled.value;
|
71
|
+
},
|
72
|
+
afterBlur() {
|
73
|
+
var _a;
|
74
|
+
if (props.validateEvent) {
|
75
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(err));
|
76
|
+
}
|
77
|
+
}
|
78
|
+
});
|
79
|
+
const needStatusIcon = computed(() => {
|
80
|
+
var _a;
|
81
|
+
return (_a = elForm == null ? void 0 : elForm.statusIcon) != null ? _a : false;
|
82
|
+
});
|
83
|
+
const validateState = computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
|
84
|
+
const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
|
85
|
+
const passwordIcon = computed(() => passwordVisible.value ? View : Hide);
|
86
|
+
const containerStyle = computed(() => [
|
87
|
+
rawAttrs.style
|
88
|
+
]);
|
89
|
+
const textareaStyle = computed(() => [
|
90
|
+
props.inputStyle,
|
91
|
+
textareaCalcStyle.value,
|
92
|
+
{ resize: props.resize }
|
93
|
+
]);
|
94
|
+
const nativeInputValue = computed(() => isNil(props.modelValue) ? "" : String(props.modelValue));
|
95
|
+
const showClear = computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
|
96
|
+
const showPwdVisible = computed(() => props.showPassword && !inputDisabled.value && !!nativeInputValue.value);
|
97
|
+
const isWordLimitVisible = computed(() => props.showWordLimit && !!props.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
|
98
|
+
const textLength = computed(() => nativeInputValue.value.length);
|
99
|
+
const inputExceed = computed(() => !!isWordLimitVisible.value && textLength.value > Number(props.maxlength));
|
100
|
+
const suffixVisible = computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
101
|
+
const [recordCursor, setCursor] = useCursor(input);
|
102
|
+
useResizeObserver(textarea, (entries) => {
|
103
|
+
onceInitSizeTextarea();
|
104
|
+
if (!isWordLimitVisible.value || props.resize !== "both")
|
105
|
+
return;
|
106
|
+
const entry = entries[0];
|
107
|
+
const { width } = entry.contentRect;
|
108
|
+
countStyle.value = {
|
109
|
+
right: `calc(100% - ${width + 15 + 6}px)`
|
110
|
+
};
|
111
|
+
});
|
112
|
+
const resizeTextarea = () => {
|
113
|
+
const { type, autosize } = props;
|
114
|
+
if (!isClient || type !== "textarea" || !textarea.value)
|
115
|
+
return;
|
116
|
+
if (autosize) {
|
117
|
+
const minRows = isObject(autosize) ? autosize.minRows : void 0;
|
118
|
+
const maxRows = isObject(autosize) ? autosize.maxRows : void 0;
|
119
|
+
const textareaStyle2 = calcTextareaHeight(textarea.value, minRows, maxRows);
|
120
|
+
textareaCalcStyle.value = {
|
121
|
+
overflowY: "hidden",
|
122
|
+
...textareaStyle2
|
123
|
+
};
|
124
|
+
nextTick(() => {
|
125
|
+
textarea.value.offsetHeight;
|
126
|
+
textareaCalcStyle.value = textareaStyle2;
|
127
|
+
});
|
128
|
+
} else {
|
129
|
+
textareaCalcStyle.value = {
|
130
|
+
minHeight: calcTextareaHeight(textarea.value).minHeight
|
131
|
+
};
|
132
|
+
}
|
133
|
+
};
|
134
|
+
const createOnceInitResize = (resizeTextarea2) => {
|
135
|
+
let isInit = false;
|
136
|
+
return () => {
|
137
|
+
var _a;
|
138
|
+
if (isInit || !props.autosize)
|
139
|
+
return;
|
140
|
+
const isElHidden = ((_a = textarea.value) == null ? void 0 : _a.offsetParent) === null;
|
141
|
+
if (!isElHidden) {
|
142
|
+
resizeTextarea2();
|
143
|
+
isInit = true;
|
144
|
+
}
|
145
|
+
};
|
146
|
+
};
|
147
|
+
const onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
|
148
|
+
const setNativeInputValue = () => {
|
149
|
+
const input2 = _ref.value;
|
150
|
+
const formatterValue = props.formatter ? props.formatter(nativeInputValue.value) : nativeInputValue.value;
|
151
|
+
if (!input2 || input2.value === formatterValue)
|
152
|
+
return;
|
153
|
+
input2.value = formatterValue;
|
154
|
+
};
|
155
|
+
const handleInput = async (event) => {
|
156
|
+
recordCursor();
|
157
|
+
let { value } = event.target;
|
158
|
+
if (props.formatter && props.parser) {
|
159
|
+
value = props.parser(value);
|
160
|
+
}
|
161
|
+
if (isComposing.value)
|
162
|
+
return;
|
163
|
+
if (value === nativeInputValue.value) {
|
164
|
+
setNativeInputValue();
|
165
|
+
return;
|
166
|
+
}
|
167
|
+
emit(UPDATE_MODEL_EVENT, value);
|
168
|
+
emit(INPUT_EVENT, value);
|
169
|
+
await nextTick();
|
170
|
+
setNativeInputValue();
|
171
|
+
setCursor();
|
172
|
+
};
|
173
|
+
const handleChange = (event) => {
|
174
|
+
let { value } = event.target;
|
175
|
+
if (props.formatter && props.parser) {
|
176
|
+
value = props.parser(value);
|
177
|
+
}
|
178
|
+
emit(CHANGE_EVENT, value);
|
179
|
+
};
|
180
|
+
const {
|
181
|
+
isComposing,
|
182
|
+
handleCompositionStart,
|
183
|
+
handleCompositionUpdate,
|
184
|
+
handleCompositionEnd
|
185
|
+
} = useComposition({ emit, afterComposition: handleInput });
|
186
|
+
const handlePasswordVisible = () => {
|
187
|
+
recordCursor();
|
188
|
+
passwordVisible.value = !passwordVisible.value;
|
189
|
+
setTimeout(setCursor);
|
190
|
+
};
|
191
|
+
const focus = () => {
|
192
|
+
var _a;
|
193
|
+
return (_a = _ref.value) == null ? void 0 : _a.focus();
|
194
|
+
};
|
195
|
+
const blur = () => {
|
196
|
+
var _a;
|
197
|
+
return (_a = _ref.value) == null ? void 0 : _a.blur();
|
198
|
+
};
|
199
|
+
const handleMouseLeave = (evt) => {
|
200
|
+
hovering.value = false;
|
201
|
+
emit("mouseleave", evt);
|
202
|
+
};
|
203
|
+
const handleMouseEnter = (evt) => {
|
204
|
+
hovering.value = true;
|
205
|
+
emit("mouseenter", evt);
|
206
|
+
};
|
207
|
+
const handleKeydown = (evt) => {
|
208
|
+
emit("keydown", evt);
|
209
|
+
};
|
210
|
+
const select = () => {
|
211
|
+
var _a;
|
212
|
+
(_a = _ref.value) == null ? void 0 : _a.select();
|
213
|
+
};
|
214
|
+
const clear = () => {
|
215
|
+
emit(UPDATE_MODEL_EVENT, "");
|
216
|
+
emit(CHANGE_EVENT, "");
|
217
|
+
emit("clear");
|
218
|
+
emit(INPUT_EVENT, "");
|
219
|
+
};
|
220
|
+
watch(() => props.modelValue, () => {
|
221
|
+
var _a;
|
222
|
+
nextTick(() => resizeTextarea());
|
223
|
+
if (props.validateEvent) {
|
224
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(err));
|
225
|
+
}
|
226
|
+
});
|
227
|
+
watch(nativeInputValue, () => setNativeInputValue());
|
228
|
+
watch(() => props.type, async () => {
|
229
|
+
await nextTick();
|
230
|
+
setNativeInputValue();
|
231
|
+
resizeTextarea();
|
232
|
+
});
|
233
|
+
onMounted(() => {
|
234
|
+
if (!props.formatter && props.parser) {
|
235
|
+
debugWarn(COMPONENT_NAME, "If you set the parser, you also need to set the formatter.");
|
236
|
+
}
|
237
|
+
setNativeInputValue();
|
238
|
+
nextTick(resizeTextarea);
|
239
|
+
});
|
240
|
+
expose({
|
241
|
+
input,
|
242
|
+
textarea,
|
243
|
+
ref: _ref,
|
244
|
+
textareaStyle,
|
245
|
+
autosize: toRef(props, "autosize"),
|
246
|
+
isComposing,
|
247
|
+
focus,
|
248
|
+
blur,
|
249
|
+
select,
|
250
|
+
clear,
|
251
|
+
resizeTextarea
|
252
|
+
});
|
253
|
+
return (_ctx, _cache) => {
|
254
|
+
return openBlock(), createElementBlock("div", {
|
255
|
+
class: normalizeClass([
|
256
|
+
unref(containerKls),
|
257
|
+
{
|
258
|
+
[unref(nsInput).bm("group", "append")]: _ctx.$slots.append,
|
259
|
+
[unref(nsInput).bm("group", "prepend")]: _ctx.$slots.prepend
|
260
|
+
}
|
261
|
+
]),
|
262
|
+
style: normalizeStyle(unref(containerStyle)),
|
263
|
+
onMouseenter: handleMouseEnter,
|
264
|
+
onMouseleave: handleMouseLeave
|
265
|
+
}, [
|
266
|
+
createCommentVNode(" input "),
|
267
|
+
_ctx.type !== "textarea" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
268
|
+
createCommentVNode(" prepend slot "),
|
269
|
+
_ctx.$slots.prepend ? (openBlock(), createElementBlock("div", {
|
270
|
+
key: 0,
|
271
|
+
class: normalizeClass(unref(nsInput).be("group", "prepend"))
|
272
|
+
}, [
|
273
|
+
renderSlot(_ctx.$slots, "prepend")
|
274
|
+
], 2)) : createCommentVNode("v-if", true),
|
275
|
+
createElementVNode("div", {
|
276
|
+
ref_key: "wrapperRef",
|
277
|
+
ref: wrapperRef,
|
278
|
+
class: normalizeClass(unref(wrapperKls))
|
279
|
+
}, [
|
280
|
+
createCommentVNode(" prefix slot "),
|
281
|
+
_ctx.$slots.prefix || _ctx.prefixIcon ? (openBlock(), createElementBlock("span", {
|
282
|
+
key: 0,
|
283
|
+
class: normalizeClass(unref(nsInput).e("prefix"))
|
284
|
+
}, [
|
285
|
+
createElementVNode("span", {
|
286
|
+
class: normalizeClass(unref(nsInput).e("prefix-inner"))
|
287
|
+
}, [
|
288
|
+
renderSlot(_ctx.$slots, "prefix"),
|
289
|
+
_ctx.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
290
|
+
key: 0,
|
291
|
+
class: normalizeClass(unref(nsInput).e("icon"))
|
292
|
+
}, {
|
293
|
+
default: withCtx(() => [
|
294
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.prefixIcon)))
|
295
|
+
]),
|
296
|
+
_: 1
|
297
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
298
|
+
], 2)
|
299
|
+
], 2)) : createCommentVNode("v-if", true),
|
300
|
+
createElementVNode("input", mergeProps({
|
301
|
+
id: unref(inputId),
|
302
|
+
ref_key: "input",
|
303
|
+
ref: input,
|
304
|
+
class: unref(nsInput).e("inner")
|
305
|
+
}, unref(attrs), {
|
306
|
+
minlength: _ctx.minlength,
|
307
|
+
maxlength: _ctx.maxlength,
|
308
|
+
type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
|
309
|
+
disabled: unref(inputDisabled),
|
310
|
+
readonly: _ctx.readonly,
|
311
|
+
autocomplete: _ctx.autocomplete,
|
312
|
+
tabindex: _ctx.tabindex,
|
313
|
+
"aria-label": _ctx.ariaLabel,
|
314
|
+
placeholder: _ctx.placeholder,
|
315
|
+
style: _ctx.inputStyle,
|
316
|
+
form: _ctx.form,
|
317
|
+
autofocus: _ctx.autofocus,
|
318
|
+
role: _ctx.containerRole,
|
319
|
+
inputmode: _ctx.inputmode,
|
320
|
+
onCompositionstart: unref(handleCompositionStart),
|
321
|
+
onCompositionupdate: unref(handleCompositionUpdate),
|
322
|
+
onCompositionend: unref(handleCompositionEnd),
|
323
|
+
onInput: handleInput,
|
324
|
+
onChange: handleChange,
|
325
|
+
onKeydown: handleKeydown
|
326
|
+
}), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "inputmode", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
|
327
|
+
createCommentVNode(" suffix slot "),
|
328
|
+
unref(suffixVisible) ? (openBlock(), createElementBlock("span", {
|
329
|
+
key: 1,
|
330
|
+
class: normalizeClass(unref(nsInput).e("suffix"))
|
331
|
+
}, [
|
332
|
+
createElementVNode("span", {
|
333
|
+
class: normalizeClass(unref(nsInput).e("suffix-inner"))
|
334
|
+
}, [
|
335
|
+
!unref(showClear) || !unref(showPwdVisible) || !unref(isWordLimitVisible) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
336
|
+
renderSlot(_ctx.$slots, "suffix"),
|
337
|
+
_ctx.suffixIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
338
|
+
key: 0,
|
339
|
+
class: normalizeClass(unref(nsInput).e("icon"))
|
340
|
+
}, {
|
341
|
+
default: withCtx(() => [
|
342
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.suffixIcon)))
|
343
|
+
]),
|
344
|
+
_: 1
|
345
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
346
|
+
], 64)) : createCommentVNode("v-if", true),
|
347
|
+
unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
|
348
|
+
key: 1,
|
349
|
+
class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("clear")]),
|
350
|
+
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
351
|
+
onClick: clear
|
352
|
+
}, {
|
353
|
+
default: withCtx(() => [
|
354
|
+
createVNode(unref(CircleClose))
|
355
|
+
]),
|
356
|
+
_: 1
|
357
|
+
}, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true),
|
358
|
+
unref(showPwdVisible) ? (openBlock(), createBlock(unref(ElIcon), {
|
359
|
+
key: 2,
|
360
|
+
class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("password")]),
|
361
|
+
onClick: handlePasswordVisible
|
362
|
+
}, {
|
363
|
+
default: withCtx(() => [
|
364
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(passwordIcon))))
|
365
|
+
]),
|
366
|
+
_: 1
|
367
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
368
|
+
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
369
|
+
key: 3,
|
370
|
+
class: normalizeClass(unref(nsInput).e("count"))
|
371
|
+
}, [
|
372
|
+
createElementVNode("span", {
|
373
|
+
class: normalizeClass(unref(nsInput).e("count-inner"))
|
374
|
+
}, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 3)
|
375
|
+
], 2)) : createCommentVNode("v-if", true),
|
376
|
+
unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
377
|
+
key: 4,
|
378
|
+
class: normalizeClass([
|
379
|
+
unref(nsInput).e("icon"),
|
380
|
+
unref(nsInput).e("validateIcon"),
|
381
|
+
unref(nsInput).is("loading", unref(validateState) === "validating")
|
382
|
+
])
|
383
|
+
}, {
|
384
|
+
default: withCtx(() => [
|
385
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
|
386
|
+
]),
|
387
|
+
_: 1
|
388
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
389
|
+
], 2)
|
390
|
+
], 2)) : createCommentVNode("v-if", true)
|
391
|
+
], 2),
|
392
|
+
createCommentVNode(" append slot "),
|
393
|
+
_ctx.$slots.append ? (openBlock(), createElementBlock("div", {
|
394
|
+
key: 1,
|
395
|
+
class: normalizeClass(unref(nsInput).be("group", "append"))
|
396
|
+
}, [
|
397
|
+
renderSlot(_ctx.$slots, "append")
|
398
|
+
], 2)) : createCommentVNode("v-if", true)
|
399
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
400
|
+
createCommentVNode(" textarea "),
|
401
|
+
createElementVNode("textarea", mergeProps({
|
402
|
+
id: unref(inputId),
|
403
|
+
ref_key: "textarea",
|
404
|
+
ref: textarea,
|
405
|
+
class: [unref(nsTextarea).e("inner"), unref(nsInput).is("focus", unref(isFocused))]
|
406
|
+
}, unref(attrs), {
|
407
|
+
minlength: _ctx.minlength,
|
408
|
+
maxlength: _ctx.maxlength,
|
409
|
+
tabindex: _ctx.tabindex,
|
410
|
+
disabled: unref(inputDisabled),
|
411
|
+
readonly: _ctx.readonly,
|
412
|
+
autocomplete: _ctx.autocomplete,
|
413
|
+
style: unref(textareaStyle),
|
414
|
+
"aria-label": _ctx.ariaLabel,
|
415
|
+
placeholder: _ctx.placeholder,
|
416
|
+
form: _ctx.form,
|
417
|
+
autofocus: _ctx.autofocus,
|
418
|
+
rows: _ctx.rows,
|
419
|
+
role: _ctx.containerRole,
|
420
|
+
onCompositionstart: unref(handleCompositionStart),
|
421
|
+
onCompositionupdate: unref(handleCompositionUpdate),
|
422
|
+
onCompositionend: unref(handleCompositionEnd),
|
423
|
+
onInput: handleInput,
|
424
|
+
onFocus: unref(handleFocus),
|
425
|
+
onBlur: unref(handleBlur),
|
426
|
+
onChange: handleChange,
|
427
|
+
onKeydown: handleKeydown
|
428
|
+
}), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
|
429
|
+
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
430
|
+
key: 0,
|
431
|
+
style: normalizeStyle(countStyle.value),
|
432
|
+
class: normalizeClass(unref(nsInput).e("count"))
|
433
|
+
}, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 7)) : createCommentVNode("v-if", true)
|
434
|
+
], 64))
|
435
|
+
], 38);
|
436
|
+
};
|
437
|
+
}
|
438
|
+
});
|
439
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input.vue"]]);
|
105
440
|
|
106
|
-
export {
|
441
|
+
export { Input as default };
|
107
442
|
//# sourceMappingURL=input.mjs.map
|