@element-plus/nightly 0.0.20251203 → 0.0.20251204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +3 -3
- package/dist/index.full.min.js +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +3 -3
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +3 -3
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +61 -445
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +445 -61
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +23 -48
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +48 -23
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +115 -177
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +177 -115
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +62 -10
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +10 -62
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +2 -2
- package/es/components/index.mjs +16 -16
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +125 -484
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +484 -125
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -147
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +147 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/next.mjs +35 -18
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +18 -35
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +72 -26
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +26 -72
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +50 -135
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +135 -50
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/content.mjs +132 -89
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +89 -132
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/popper/src/popper.mjs +22 -32
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/popper2.mjs +32 -22
- package/es/components/popper/src/popper2.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-group2.mjs +1 -1
- package/es/components/radio/src/radio.mjs +35 -74
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +74 -35
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/src/bar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.mjs +11 -139
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +139 -11
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +152 -553
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +553 -152
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +35 -41
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +41 -35
- package/es/components/steps/src/steps2.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/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +16 -85
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +85 -16
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +2 -2
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs +16 -81
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger2.mjs +81 -16
- package/es/components/tooltip/src/trigger2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/tour.mjs +154 -69
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +69 -154
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/index.mjs +16 -16
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +60 -443
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +443 -60
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +24 -48
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +48 -24
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +115 -177
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +177 -115
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +62 -9
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +9 -62
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +2 -2
- package/lib/components/index.js +16 -16
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +122 -480
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +480 -122
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -146
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +146 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/next.js +35 -18
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +18 -35
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +72 -26
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +26 -72
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +51 -135
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +135 -51
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/content.js +132 -94
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +94 -132
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/popper/src/popper.js +25 -32
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/popper2.js +32 -25
- package/lib/components/popper/src/popper2.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-group2.js +1 -1
- package/lib/components/radio/src/radio.js +36 -73
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +73 -36
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/src/bar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.js +11 -139
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +139 -11
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +152 -552
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +552 -152
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +36 -41
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +41 -36
- package/lib/components/steps/src/steps2.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/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +16 -85
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +85 -16
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +2 -2
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip/src/trigger.js +16 -81
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger2.js +81 -16
- package/lib/components/tooltip/src/trigger2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/tour.js +153 -69
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +69 -153
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/index.js +16 -16
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ export { affixEmits, affixProps } from './components/affix/src/affix.mjs';
|
|
|
6
6
|
export { ElAffix } from './components/affix/index.mjs';
|
|
7
7
|
export { alertEffects, alertEmits, alertProps } from './components/alert/src/alert.mjs';
|
|
8
8
|
export { ElAlert } from './components/alert/index.mjs';
|
|
9
|
-
export { autocompleteEmits, autocompleteProps } from './components/autocomplete/src/
|
|
9
|
+
export { autocompleteEmits, autocompleteProps } from './components/autocomplete/src/autocomplete.mjs';
|
|
10
10
|
export { ElAutocomplete } from './components/autocomplete/index.mjs';
|
|
11
11
|
export { avatarEmits, avatarProps } from './components/avatar/src/avatar.mjs';
|
|
12
12
|
export { ElAvatar } from './components/avatar/index.mjs';
|
|
@@ -15,7 +15,7 @@ export { ElBacktop } from './components/backtop/index.mjs';
|
|
|
15
15
|
export { badgeProps } from './components/badge/src/badge2.mjs';
|
|
16
16
|
export { ElBadge } from './components/badge/index.mjs';
|
|
17
17
|
export { breadcrumbProps } from './components/breadcrumb/src/breadcrumb.mjs';
|
|
18
|
-
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-
|
|
18
|
+
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-item.mjs';
|
|
19
19
|
export { breadcrumbKey } from './components/breadcrumb/src/constants.mjs';
|
|
20
20
|
export { ElBreadcrumb, ElBreadcrumbItem } from './components/breadcrumb/index.mjs';
|
|
21
21
|
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './components/button/src/button.mjs';
|
|
@@ -23,7 +23,7 @@ export { buttonGroupContextKey } from './components/button/src/constants.mjs';
|
|
|
23
23
|
export { ElButton, ElButtonGroup } from './components/button/index.mjs';
|
|
24
24
|
export { calendarEmits, calendarProps } from './components/calendar/src/calendar.mjs';
|
|
25
25
|
export { ElCalendar } from './components/calendar/index.mjs';
|
|
26
|
-
export { cardContextKey, cardProps } from './components/card/src/
|
|
26
|
+
export { cardContextKey, cardProps } from './components/card/src/card.mjs';
|
|
27
27
|
export { ElCard } from './components/card/index.mjs';
|
|
28
28
|
export { carouselEmits, carouselProps } from './components/carousel/src/carousel.mjs';
|
|
29
29
|
export { carouselItemProps } from './components/carousel/src/carousel-item2.mjs';
|
|
@@ -92,7 +92,7 @@ export { imageEmits, imageProps } from './components/image/src/image.mjs';
|
|
|
92
92
|
export { ElImage } from './components/image/index.mjs';
|
|
93
93
|
export { imageViewerEmits, imageViewerProps } from './components/image-viewer/src/image-viewer.mjs';
|
|
94
94
|
export { ElImageViewer } from './components/image-viewer/index.mjs';
|
|
95
|
-
export { inputEmits, inputProps } from './components/input/src/
|
|
95
|
+
export { inputEmits, inputProps } from './components/input/src/input.mjs';
|
|
96
96
|
export { ElInput } from './components/input/index.mjs';
|
|
97
97
|
export { inputNumberEmits, inputNumberProps } from './components/input-number/src/input-number.mjs';
|
|
98
98
|
export { ElInputNumber } from './components/input-number/index.mjs';
|
|
@@ -113,20 +113,20 @@ export { ElPageHeader } from './components/page-header/index.mjs';
|
|
|
113
113
|
export { paginationEmits, paginationProps } from './components/pagination/src/pagination.mjs';
|
|
114
114
|
export { elPaginationKey } from './components/pagination/src/constants.mjs';
|
|
115
115
|
export { ElPagination } from './components/pagination/index.mjs';
|
|
116
|
-
export { popconfirmEmits, popconfirmProps } from './components/popconfirm/src/
|
|
116
|
+
export { popconfirmEmits, popconfirmProps } from './components/popconfirm/src/popconfirm.mjs';
|
|
117
117
|
export { ElPopconfirm } from './components/popconfirm/index.mjs';
|
|
118
|
-
export { Effect, popperProps, roleTypes, usePopperProps } from './components/popper/src/
|
|
118
|
+
export { Effect, popperProps, roleTypes, usePopperProps } from './components/popper/src/popper.mjs';
|
|
119
119
|
export { popperTriggerProps, usePopperTriggerProps } from './components/popper/src/trigger.mjs';
|
|
120
|
-
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './components/popper/src/
|
|
120
|
+
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './components/popper/src/content2.mjs';
|
|
121
121
|
export { popperArrowProps, usePopperArrowProps } from './components/popper/src/arrow.mjs';
|
|
122
122
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './components/popper/src/constants.mjs';
|
|
123
123
|
export { default as ElPopperArrow } from './components/popper/src/arrow2.mjs';
|
|
124
124
|
export { default as ElPopperTrigger } from './components/popper/src/trigger2.mjs';
|
|
125
|
-
export { default as ElPopperContent } from './components/popper/src/
|
|
125
|
+
export { default as ElPopperContent } from './components/popper/src/content.mjs';
|
|
126
126
|
export { ElPopper } from './components/popper/index.mjs';
|
|
127
127
|
export { progressProps } from './components/progress/src/progress.mjs';
|
|
128
128
|
export { ElProgress } from './components/progress/index.mjs';
|
|
129
|
-
export { radioEmits, radioProps, radioPropsBase } from './components/radio/src/
|
|
129
|
+
export { radioEmits, radioProps, radioPropsBase } from './components/radio/src/radio.mjs';
|
|
130
130
|
export { radioDefaultProps, radioGroupEmits, radioGroupProps } from './components/radio/src/radio-group.mjs';
|
|
131
131
|
export { radioButtonProps } from './components/radio/src/radio-button.mjs';
|
|
132
132
|
export { radioGroupKey } from './components/radio/src/constants.mjs';
|
|
@@ -140,11 +140,11 @@ export { rowContextKey } from './components/row/src/constants.mjs';
|
|
|
140
140
|
export { ElRow } from './components/row/index.mjs';
|
|
141
141
|
export { BAR_MAP, GAP, renderThumbStyle } from './components/scrollbar/src/util.mjs';
|
|
142
142
|
export { scrollbarEmits, scrollbarProps } from './components/scrollbar/src/scrollbar.mjs';
|
|
143
|
-
export { thumbProps } from './components/scrollbar/src/
|
|
143
|
+
export { thumbProps } from './components/scrollbar/src/thumb.mjs';
|
|
144
144
|
export { scrollbarContextKey } from './components/scrollbar/src/constants.mjs';
|
|
145
145
|
export { ElScrollbar } from './components/scrollbar/index.mjs';
|
|
146
146
|
export { selectGroupKey, selectKey } from './components/select/src/token.mjs';
|
|
147
|
-
export { selectEmits, selectProps } from './components/select/src/
|
|
147
|
+
export { selectEmits, selectProps } from './components/select/src/select.mjs';
|
|
148
148
|
export { ElOption, ElOptionGroup, ElSelect } from './components/select/index.mjs';
|
|
149
149
|
export { selectV2InjectionKey } from './components/select-v2/src/token.mjs';
|
|
150
150
|
export { ElSelectV2 } from './components/select-v2/index.mjs';
|
|
@@ -161,7 +161,7 @@ export { ElSpace } from './components/space/index.mjs';
|
|
|
161
161
|
export { statisticProps } from './components/statistic/src/statistic.mjs';
|
|
162
162
|
export { ElStatistic } from './components/statistic/index.mjs';
|
|
163
163
|
export { stepProps } from './components/steps/src/item.mjs';
|
|
164
|
-
export { stepsEmits, stepsProps } from './components/steps/src/
|
|
164
|
+
export { stepsEmits, stepsProps } from './components/steps/src/steps.mjs';
|
|
165
165
|
export { STEPS_INJECTION_KEY } from './components/steps/src/tokens.mjs';
|
|
166
166
|
export { ElStep, ElSteps } from './components/steps/index.mjs';
|
|
167
167
|
export { switchEmits, switchProps } from './components/switch/src/switch.mjs';
|
|
@@ -177,7 +177,7 @@ export { ElAutoResizer, ElTableV2 } from './components/table-v2/index.mjs';
|
|
|
177
177
|
export { tabsEmits, tabsProps } from './components/tabs/src/tabs.mjs';
|
|
178
178
|
export { tabBarProps } from './components/tabs/src/tab-bar.mjs';
|
|
179
179
|
export { tabNavEmits, tabNavProps } from './components/tabs/src/tab-nav.mjs';
|
|
180
|
-
export { tabPaneProps } from './components/tabs/src/tab-
|
|
180
|
+
export { tabPaneProps } from './components/tabs/src/tab-pane.mjs';
|
|
181
181
|
export { tabsRootContextKey } from './components/tabs/src/constants.mjs';
|
|
182
182
|
export { ElTabPane, ElTabs } from './components/tabs/index.mjs';
|
|
183
183
|
export { tagEmits, tagProps } from './components/tag/src/tag.mjs';
|
|
@@ -196,7 +196,7 @@ export { timelineItemProps } from './components/timeline/src/timeline-item.mjs';
|
|
|
196
196
|
export { TIMELINE_INJECTION_KEY } from './components/timeline/src/tokens.mjs';
|
|
197
197
|
export { ElTimeline, ElTimelineItem } from './components/timeline/index.mjs';
|
|
198
198
|
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './components/tooltip/src/tooltip.mjs';
|
|
199
|
-
export { useTooltipTriggerProps } from './components/tooltip/src/
|
|
199
|
+
export { useTooltipTriggerProps } from './components/tooltip/src/trigger.mjs';
|
|
200
200
|
export { useTooltipContentProps } from './components/tooltip/src/content.mjs';
|
|
201
201
|
export { TOOLTIP_INJECTION_KEY } from './components/tooltip/src/constants.mjs';
|
|
202
202
|
export { ElTooltip } from './components/tooltip/index.mjs';
|
|
@@ -220,7 +220,7 @@ export { default as DynamicSizeGrid } from './components/virtual-list/src/compon
|
|
|
220
220
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './components/virtual-list/src/props.mjs';
|
|
221
221
|
export { watermarkProps } from './components/watermark/src/watermark.mjs';
|
|
222
222
|
export { ElWatermark } from './components/watermark/index.mjs';
|
|
223
|
-
export { tourEmits, tourProps } from './components/tour/src/
|
|
223
|
+
export { tourEmits, tourProps } from './components/tour/src/tour2.mjs';
|
|
224
224
|
export { tourStepEmits, tourStepProps } from './components/tour/src/step.mjs';
|
|
225
225
|
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './components/tour/src/content.mjs';
|
|
226
226
|
export { ElTour, ElTourStep } from './components/tour/index.mjs';
|
|
@@ -240,7 +240,7 @@ export { default as ElLoadingService } from './components/loading/src/service.mj
|
|
|
240
240
|
export { MESSAGE_DEFAULT_PLACEMENT, messageDefaults, messageEmits, messagePlacement, messageProps, messageTypes } from './components/message/src/message.mjs';
|
|
241
241
|
export { ElMessage } from './components/message/index.mjs';
|
|
242
242
|
export { ElMessageBox } from './components/message-box/index.mjs';
|
|
243
|
-
export { notificationEmits, notificationProps, notificationTypes } from './components/notification/src/
|
|
243
|
+
export { notificationEmits, notificationProps, notificationTypes } from './components/notification/src/notification.mjs';
|
|
244
244
|
export { ElNotification } from './components/notification/index.mjs';
|
|
245
245
|
export { popoverEmits, popoverProps } from './components/popover/src/popover.mjs';
|
|
246
246
|
export { ElPopover, ElPopoverDirective } from './components/popover/index.mjs';
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20251204";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20251204'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var autocomplete$1 = require('./src/
|
|
6
|
-
var autocomplete = require('./src/
|
|
5
|
+
var autocomplete$1 = require('./src/autocomplete2.js');
|
|
6
|
+
var autocomplete = require('./src/autocomplete.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElAutocomplete = install.withInstall(autocomplete$1["default"]);
|
|
@@ -2,453 +2,70 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
9
|
-
var index$5 = require('../../input/index.js');
|
|
10
|
-
var index$3 = require('../../scrollbar/index.js');
|
|
11
|
-
var index$2 = require('../../tooltip/index.js');
|
|
12
|
-
var index$4 = require('../../icon/index.js');
|
|
13
|
-
var autocomplete = require('./autocomplete2.js');
|
|
14
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
15
|
-
var input = require('../../input/src/input2.js');
|
|
16
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
17
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
18
|
-
var index$1 = require('../../../hooks/use-id/index.js');
|
|
5
|
+
var input = require('../../input/src/input.js');
|
|
6
|
+
var content = require('../../tooltip/src/content.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
19
8
|
var shared = require('@vue/shared');
|
|
20
9
|
var event = require('../../../constants/event.js');
|
|
21
|
-
var
|
|
22
|
-
var aria = require('../../../constants/aria.js');
|
|
23
|
-
var error = require('../../../utils/error.js');
|
|
10
|
+
var types = require('../../../utils/types.js');
|
|
24
11
|
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const onHide = () => {
|
|
71
|
-
highlightedIndex.value = -1;
|
|
72
|
-
};
|
|
73
|
-
const getData = async (queryString) => {
|
|
74
|
-
if (suggestionDisabled.value)
|
|
75
|
-
return;
|
|
76
|
-
const cb = (suggestionList) => {
|
|
77
|
-
loading.value = false;
|
|
78
|
-
if (suggestionDisabled.value)
|
|
79
|
-
return;
|
|
80
|
-
if (shared.isArray(suggestionList)) {
|
|
81
|
-
suggestions.value = suggestionList;
|
|
82
|
-
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
|
83
|
-
} else {
|
|
84
|
-
error.throwError(COMPONENT_NAME, "autocomplete suggestions must be an array");
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
loading.value = true;
|
|
88
|
-
if (shared.isArray(props.fetchSuggestions)) {
|
|
89
|
-
cb(props.fetchSuggestions);
|
|
90
|
-
} else {
|
|
91
|
-
const result = await props.fetchSuggestions(queryString, cb);
|
|
92
|
-
if (shared.isArray(result))
|
|
93
|
-
cb(result);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const debounce = vue.computed(() => props.debounce);
|
|
97
|
-
const debouncedGetData = core.useDebounceFn(getData, debounce);
|
|
98
|
-
const handleInput = (value) => {
|
|
99
|
-
const valuePresented = !!value;
|
|
100
|
-
emit(event.INPUT_EVENT, value);
|
|
101
|
-
emit(event.UPDATE_MODEL_EVENT, value);
|
|
102
|
-
suggestionDisabled.value = false;
|
|
103
|
-
activated.value || (activated.value = valuePresented);
|
|
104
|
-
if (!props.triggerOnFocus && !value) {
|
|
105
|
-
suggestionDisabled.value = true;
|
|
106
|
-
suggestions.value = [];
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
debouncedGetData(value);
|
|
110
|
-
};
|
|
111
|
-
const handleMouseDown = (event) => {
|
|
112
|
-
var _a;
|
|
113
|
-
if (disabled.value)
|
|
114
|
-
return;
|
|
115
|
-
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT" || refInput.value.includes(document.activeElement)) {
|
|
116
|
-
activated.value = true;
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const handleChange = (value) => {
|
|
120
|
-
emit(event.CHANGE_EVENT, value);
|
|
121
|
-
};
|
|
122
|
-
const handleFocus = (evt) => {
|
|
123
|
-
var _a;
|
|
124
|
-
if (!ignoreFocusEvent) {
|
|
125
|
-
activated.value = true;
|
|
126
|
-
emit("focus", evt);
|
|
127
|
-
const queryString = (_a = props.modelValue) != null ? _a : "";
|
|
128
|
-
if (props.triggerOnFocus && !readonly) {
|
|
129
|
-
debouncedGetData(String(queryString));
|
|
130
|
-
}
|
|
131
|
-
} else {
|
|
132
|
-
ignoreFocusEvent = false;
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
const handleBlur = (evt) => {
|
|
136
|
-
setTimeout(() => {
|
|
137
|
-
var _a;
|
|
138
|
-
if ((_a = popperRef.value) == null ? void 0 : _a.isFocusInsideContent()) {
|
|
139
|
-
ignoreFocusEvent = true;
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
activated.value && close();
|
|
143
|
-
emit("blur", evt);
|
|
144
|
-
});
|
|
145
|
-
};
|
|
146
|
-
const handleClear = () => {
|
|
147
|
-
activated.value = false;
|
|
148
|
-
emit(event.UPDATE_MODEL_EVENT, "");
|
|
149
|
-
emit("clear");
|
|
150
|
-
};
|
|
151
|
-
const handleKeyEnter = async () => {
|
|
152
|
-
var _a;
|
|
153
|
-
if ((_a = inputRef.value) == null ? void 0 : _a.isComposing) {
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
if (suggestionVisible.value && highlightedIndex.value >= 0 && highlightedIndex.value < suggestions.value.length) {
|
|
157
|
-
handleSelect(suggestions.value[highlightedIndex.value]);
|
|
158
|
-
} else {
|
|
159
|
-
if (props.selectWhenUnmatched) {
|
|
160
|
-
emit("select", { value: props.modelValue });
|
|
161
|
-
suggestions.value = [];
|
|
162
|
-
highlightedIndex.value = -1;
|
|
163
|
-
}
|
|
164
|
-
activated.value = true;
|
|
165
|
-
debouncedGetData(String(props.modelValue));
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
const handleKeyEscape = (evt) => {
|
|
169
|
-
if (suggestionVisible.value) {
|
|
170
|
-
evt.preventDefault();
|
|
171
|
-
evt.stopPropagation();
|
|
172
|
-
close();
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
const close = () => {
|
|
176
|
-
activated.value = false;
|
|
177
|
-
};
|
|
178
|
-
const focus = () => {
|
|
179
|
-
var _a;
|
|
180
|
-
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
181
|
-
};
|
|
182
|
-
const blur = () => {
|
|
183
|
-
var _a;
|
|
184
|
-
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
|
185
|
-
};
|
|
186
|
-
const handleSelect = async (item) => {
|
|
187
|
-
emit(event.INPUT_EVENT, item[props.valueKey]);
|
|
188
|
-
emit(event.UPDATE_MODEL_EVENT, item[props.valueKey]);
|
|
189
|
-
emit("select", item);
|
|
190
|
-
suggestions.value = [];
|
|
191
|
-
highlightedIndex.value = -1;
|
|
192
|
-
};
|
|
193
|
-
const highlight = (index) => {
|
|
194
|
-
var _a, _b;
|
|
195
|
-
if (!suggestionVisible.value || loading.value)
|
|
196
|
-
return;
|
|
197
|
-
if (index < 0) {
|
|
198
|
-
if (!props.loopNavigation) {
|
|
199
|
-
highlightedIndex.value = -1;
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
index = suggestions.value.length - 1;
|
|
203
|
-
}
|
|
204
|
-
if (index >= suggestions.value.length) {
|
|
205
|
-
index = props.loopNavigation ? 0 : suggestions.value.length - 1;
|
|
206
|
-
}
|
|
207
|
-
const [suggestion, suggestionList] = getSuggestionContext();
|
|
208
|
-
const highlightItem = suggestionList[index];
|
|
209
|
-
const scrollTop = suggestion.scrollTop;
|
|
210
|
-
const { offsetTop, scrollHeight } = highlightItem;
|
|
211
|
-
if (offsetTop + scrollHeight > scrollTop + suggestion.clientHeight) {
|
|
212
|
-
suggestion.scrollTop = offsetTop + scrollHeight - suggestion.clientHeight;
|
|
213
|
-
}
|
|
214
|
-
if (offsetTop < scrollTop) {
|
|
215
|
-
suggestion.scrollTop = offsetTop;
|
|
216
|
-
}
|
|
217
|
-
highlightedIndex.value = index;
|
|
218
|
-
(_b = (_a = inputRef.value) == null ? void 0 : _a.ref) == null ? void 0 : _b.setAttribute("aria-activedescendant", `${listboxId.value}-item-${highlightedIndex.value}`);
|
|
219
|
-
};
|
|
220
|
-
const getSuggestionContext = () => {
|
|
221
|
-
const suggestion = regionRef.value.querySelector(`.${ns.be("suggestion", "wrap")}`);
|
|
222
|
-
const suggestionList = suggestion.querySelectorAll(`.${ns.be("suggestion", "list")} li`);
|
|
223
|
-
return [suggestion, suggestionList];
|
|
224
|
-
};
|
|
225
|
-
const stopHandle = core.onClickOutside(listboxRef, () => {
|
|
226
|
-
var _a;
|
|
227
|
-
if ((_a = popperRef.value) == null ? void 0 : _a.isFocusInsideContent())
|
|
228
|
-
return;
|
|
229
|
-
suggestionVisible.value && close();
|
|
230
|
-
});
|
|
231
|
-
const handleKeydown = (e) => {
|
|
232
|
-
const code = event$1.getEventCode(e);
|
|
233
|
-
switch (code) {
|
|
234
|
-
case aria.EVENT_CODE.up:
|
|
235
|
-
e.preventDefault();
|
|
236
|
-
highlight(highlightedIndex.value - 1);
|
|
237
|
-
break;
|
|
238
|
-
case aria.EVENT_CODE.down:
|
|
239
|
-
e.preventDefault();
|
|
240
|
-
highlight(highlightedIndex.value + 1);
|
|
241
|
-
break;
|
|
242
|
-
case aria.EVENT_CODE.enter:
|
|
243
|
-
case aria.EVENT_CODE.numpadEnter:
|
|
244
|
-
e.preventDefault();
|
|
245
|
-
handleKeyEnter();
|
|
246
|
-
break;
|
|
247
|
-
case aria.EVENT_CODE.tab:
|
|
248
|
-
close();
|
|
249
|
-
break;
|
|
250
|
-
case aria.EVENT_CODE.esc:
|
|
251
|
-
handleKeyEscape(e);
|
|
252
|
-
break;
|
|
253
|
-
case aria.EVENT_CODE.home:
|
|
254
|
-
e.preventDefault();
|
|
255
|
-
highlight(0);
|
|
256
|
-
break;
|
|
257
|
-
case aria.EVENT_CODE.end:
|
|
258
|
-
e.preventDefault();
|
|
259
|
-
highlight(suggestions.value.length - 1);
|
|
260
|
-
break;
|
|
261
|
-
case aria.EVENT_CODE.pageUp:
|
|
262
|
-
e.preventDefault();
|
|
263
|
-
highlight(Math.max(0, highlightedIndex.value - 10));
|
|
264
|
-
break;
|
|
265
|
-
case aria.EVENT_CODE.pageDown:
|
|
266
|
-
e.preventDefault();
|
|
267
|
-
highlight(Math.min(suggestions.value.length - 1, highlightedIndex.value + 10));
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
vue.onBeforeUnmount(() => {
|
|
272
|
-
stopHandle == null ? void 0 : stopHandle();
|
|
273
|
-
});
|
|
274
|
-
vue.onMounted(() => {
|
|
275
|
-
var _a;
|
|
276
|
-
const inputElement = (_a = inputRef.value) == null ? void 0 : _a.ref;
|
|
277
|
-
if (!inputElement)
|
|
278
|
-
return;
|
|
279
|
-
[
|
|
280
|
-
{ key: "role", value: "textbox" },
|
|
281
|
-
{ key: "aria-autocomplete", value: "list" },
|
|
282
|
-
{ key: "aria-controls", value: "id" },
|
|
283
|
-
{
|
|
284
|
-
key: "aria-activedescendant",
|
|
285
|
-
value: `${listboxId.value}-item-${highlightedIndex.value}`
|
|
286
|
-
}
|
|
287
|
-
].forEach(({ key, value }) => inputElement.setAttribute(key, value));
|
|
288
|
-
readonly = inputElement.hasAttribute("readonly");
|
|
289
|
-
});
|
|
290
|
-
expose({
|
|
291
|
-
highlightedIndex,
|
|
292
|
-
activated,
|
|
293
|
-
loading,
|
|
294
|
-
inputRef,
|
|
295
|
-
popperRef,
|
|
296
|
-
suggestions,
|
|
297
|
-
handleSelect,
|
|
298
|
-
handleKeyEnter,
|
|
299
|
-
focus,
|
|
300
|
-
blur,
|
|
301
|
-
close,
|
|
302
|
-
highlight,
|
|
303
|
-
getData
|
|
304
|
-
});
|
|
305
|
-
return (_ctx, _cache) => {
|
|
306
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElTooltip), {
|
|
307
|
-
ref_key: "popperRef",
|
|
308
|
-
ref: popperRef,
|
|
309
|
-
visible: vue.unref(suggestionVisible),
|
|
310
|
-
placement: _ctx.placement,
|
|
311
|
-
"fallback-placements": ["bottom-start", "top-start"],
|
|
312
|
-
"popper-class": [vue.unref(ns).e("popper"), _ctx.popperClass],
|
|
313
|
-
"popper-style": _ctx.popperStyle,
|
|
314
|
-
teleported: _ctx.teleported,
|
|
315
|
-
"append-to": _ctx.appendTo,
|
|
316
|
-
"gpu-acceleration": false,
|
|
317
|
-
pure: "",
|
|
318
|
-
"manual-mode": "",
|
|
319
|
-
effect: "light",
|
|
320
|
-
trigger: "click",
|
|
321
|
-
transition: `${vue.unref(ns).namespace.value}-zoom-in-top`,
|
|
322
|
-
persistent: "",
|
|
323
|
-
role: "listbox",
|
|
324
|
-
onBeforeShow: onSuggestionShow,
|
|
325
|
-
onHide
|
|
326
|
-
}, {
|
|
327
|
-
content: vue.withCtx(() => [
|
|
328
|
-
vue.createElementVNode("div", {
|
|
329
|
-
ref_key: "regionRef",
|
|
330
|
-
ref: regionRef,
|
|
331
|
-
class: vue.normalizeClass([vue.unref(ns).b("suggestion"), vue.unref(ns).is("loading", vue.unref(suggestionLoading))]),
|
|
332
|
-
style: vue.normalizeStyle({
|
|
333
|
-
[_ctx.fitInputWidth ? "width" : "minWidth"]: dropdownWidth.value,
|
|
334
|
-
outline: "none"
|
|
335
|
-
}),
|
|
336
|
-
role: "region"
|
|
337
|
-
}, [
|
|
338
|
-
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
339
|
-
key: 0,
|
|
340
|
-
class: vue.normalizeClass(vue.unref(ns).be("suggestion", "header")),
|
|
341
|
-
onClick: vue.withModifiers(() => {
|
|
342
|
-
}, ["stop"])
|
|
343
|
-
}, [
|
|
344
|
-
vue.renderSlot(_ctx.$slots, "header")
|
|
345
|
-
], 10, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
346
|
-
vue.createVNode(vue.unref(index$3.ElScrollbar), {
|
|
347
|
-
id: vue.unref(listboxId),
|
|
348
|
-
tag: "ul",
|
|
349
|
-
"wrap-class": vue.unref(ns).be("suggestion", "wrap"),
|
|
350
|
-
"view-class": vue.unref(ns).be("suggestion", "list"),
|
|
351
|
-
role: "listbox"
|
|
352
|
-
}, {
|
|
353
|
-
default: vue.withCtx(() => [
|
|
354
|
-
vue.unref(suggestionLoading) ? (vue.openBlock(), vue.createElementBlock("li", { key: 0 }, [
|
|
355
|
-
vue.renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
356
|
-
vue.createVNode(vue.unref(index$4.ElIcon), {
|
|
357
|
-
class: vue.normalizeClass(vue.unref(ns).is("loading"))
|
|
358
|
-
}, {
|
|
359
|
-
default: vue.withCtx(() => [
|
|
360
|
-
vue.createVNode(vue.unref(iconsVue.Loading))
|
|
361
|
-
]),
|
|
362
|
-
_: 1
|
|
363
|
-
}, 8, ["class"])
|
|
364
|
-
])
|
|
365
|
-
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(suggestions.value, (item, index) => {
|
|
366
|
-
return vue.openBlock(), vue.createElementBlock("li", {
|
|
367
|
-
id: `${vue.unref(listboxId)}-item-${index}`,
|
|
368
|
-
key: index,
|
|
369
|
-
class: vue.normalizeClass({ highlighted: highlightedIndex.value === index }),
|
|
370
|
-
role: "option",
|
|
371
|
-
"aria-selected": highlightedIndex.value === index,
|
|
372
|
-
onClick: ($event) => handleSelect(item)
|
|
373
|
-
}, [
|
|
374
|
-
vue.renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
375
|
-
vue.createTextVNode(vue.toDisplayString(item[_ctx.valueKey]), 1)
|
|
376
|
-
])
|
|
377
|
-
], 10, ["id", "aria-selected", "onClick"]);
|
|
378
|
-
}), 128))
|
|
379
|
-
]),
|
|
380
|
-
_: 3
|
|
381
|
-
}, 8, ["id", "wrap-class", "view-class"]),
|
|
382
|
-
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
383
|
-
key: 1,
|
|
384
|
-
class: vue.normalizeClass(vue.unref(ns).be("suggestion", "footer")),
|
|
385
|
-
onClick: vue.withModifiers(() => {
|
|
386
|
-
}, ["stop"])
|
|
387
|
-
}, [
|
|
388
|
-
vue.renderSlot(_ctx.$slots, "footer")
|
|
389
|
-
], 10, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
390
|
-
], 6)
|
|
391
|
-
]),
|
|
392
|
-
default: vue.withCtx(() => [
|
|
393
|
-
vue.createElementVNode("div", {
|
|
394
|
-
ref_key: "listboxRef",
|
|
395
|
-
ref: listboxRef,
|
|
396
|
-
class: vue.normalizeClass([vue.unref(ns).b(), _ctx.$attrs.class]),
|
|
397
|
-
style: vue.normalizeStyle(vue.unref(styles)),
|
|
398
|
-
role: "combobox",
|
|
399
|
-
"aria-haspopup": "listbox",
|
|
400
|
-
"aria-expanded": vue.unref(suggestionVisible),
|
|
401
|
-
"aria-owns": vue.unref(listboxId)
|
|
402
|
-
}, [
|
|
403
|
-
vue.createVNode(vue.unref(index$5.ElInput), vue.mergeProps({
|
|
404
|
-
ref_key: "inputRef",
|
|
405
|
-
ref: inputRef
|
|
406
|
-
}, vue.mergeProps(vue.unref(passInputProps), _ctx.$attrs), {
|
|
407
|
-
"model-value": _ctx.modelValue,
|
|
408
|
-
disabled: vue.unref(disabled),
|
|
409
|
-
onInput: handleInput,
|
|
410
|
-
onChange: handleChange,
|
|
411
|
-
onFocus: handleFocus,
|
|
412
|
-
onBlur: handleBlur,
|
|
413
|
-
onClear: handleClear,
|
|
414
|
-
onKeydown: handleKeydown,
|
|
415
|
-
onMousedown: handleMouseDown
|
|
416
|
-
}), vue.createSlots({
|
|
417
|
-
_: 2
|
|
418
|
-
}, [
|
|
419
|
-
_ctx.$slots.prepend ? {
|
|
420
|
-
name: "prepend",
|
|
421
|
-
fn: vue.withCtx(() => [
|
|
422
|
-
vue.renderSlot(_ctx.$slots, "prepend")
|
|
423
|
-
])
|
|
424
|
-
} : void 0,
|
|
425
|
-
_ctx.$slots.append ? {
|
|
426
|
-
name: "append",
|
|
427
|
-
fn: vue.withCtx(() => [
|
|
428
|
-
vue.renderSlot(_ctx.$slots, "append")
|
|
429
|
-
])
|
|
430
|
-
} : void 0,
|
|
431
|
-
_ctx.$slots.prefix ? {
|
|
432
|
-
name: "prefix",
|
|
433
|
-
fn: vue.withCtx(() => [
|
|
434
|
-
vue.renderSlot(_ctx.$slots, "prefix")
|
|
435
|
-
])
|
|
436
|
-
} : void 0,
|
|
437
|
-
_ctx.$slots.suffix ? {
|
|
438
|
-
name: "suffix",
|
|
439
|
-
fn: vue.withCtx(() => [
|
|
440
|
-
vue.renderSlot(_ctx.$slots, "suffix")
|
|
441
|
-
])
|
|
442
|
-
} : void 0
|
|
443
|
-
]), 1040, ["model-value", "disabled"])
|
|
444
|
-
], 14, ["aria-expanded", "aria-owns"])
|
|
445
|
-
]),
|
|
446
|
-
_: 3
|
|
447
|
-
}, 8, ["visible", "placement", "popper-class", "popper-style", "teleported", "append-to", "transition"]);
|
|
448
|
-
};
|
|
12
|
+
const autocompleteProps = runtime.buildProps({
|
|
13
|
+
...input.inputProps,
|
|
14
|
+
valueKey: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "value"
|
|
17
|
+
},
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: [String, Number],
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
debounce: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 300
|
|
25
|
+
},
|
|
26
|
+
placement: {
|
|
27
|
+
type: runtime.definePropType(String),
|
|
28
|
+
values: [
|
|
29
|
+
"top",
|
|
30
|
+
"top-start",
|
|
31
|
+
"top-end",
|
|
32
|
+
"bottom",
|
|
33
|
+
"bottom-start",
|
|
34
|
+
"bottom-end"
|
|
35
|
+
],
|
|
36
|
+
default: "bottom-start"
|
|
37
|
+
},
|
|
38
|
+
fetchSuggestions: {
|
|
39
|
+
type: runtime.definePropType([Function, Array]),
|
|
40
|
+
default: shared.NOOP
|
|
41
|
+
},
|
|
42
|
+
popperClass: content.useTooltipContentProps.popperClass,
|
|
43
|
+
popperStyle: content.useTooltipContentProps.popperStyle,
|
|
44
|
+
triggerOnFocus: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true
|
|
47
|
+
},
|
|
48
|
+
selectWhenUnmatched: Boolean,
|
|
49
|
+
hideLoading: Boolean,
|
|
50
|
+
teleported: content.useTooltipContentProps.teleported,
|
|
51
|
+
appendTo: content.useTooltipContentProps.appendTo,
|
|
52
|
+
highlightFirstItem: Boolean,
|
|
53
|
+
fitInputWidth: Boolean,
|
|
54
|
+
loopNavigation: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
449
57
|
}
|
|
450
58
|
});
|
|
451
|
-
|
|
59
|
+
const autocompleteEmits = {
|
|
60
|
+
[event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value) || types.isNumber(value),
|
|
61
|
+
[event.INPUT_EVENT]: (value) => shared.isString(value) || types.isNumber(value),
|
|
62
|
+
[event.CHANGE_EVENT]: (value) => shared.isString(value) || types.isNumber(value),
|
|
63
|
+
focus: (evt) => evt instanceof FocusEvent,
|
|
64
|
+
blur: (evt) => evt instanceof FocusEvent,
|
|
65
|
+
clear: () => true,
|
|
66
|
+
select: (item) => shared.isObject(item)
|
|
67
|
+
};
|
|
452
68
|
|
|
453
|
-
exports
|
|
69
|
+
exports.autocompleteEmits = autocompleteEmits;
|
|
70
|
+
exports.autocompleteProps = autocompleteProps;
|
|
454
71
|
//# sourceMappingURL=autocomplete.js.map
|