@element-plus/nightly 0.0.20241113 → 0.0.20241114
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.full.js +129 -111
- package/dist/index.full.min.js +11 -11
- 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 +129 -111
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +8 -70
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +70 -8
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/cascader/index.mjs +2 -2
- package/es/components/cascader/src/cascader.mjs +83 -627
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader2.mjs +629 -83
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -0
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +18 -28
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +28 -18
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +1 -0
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -3
- package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +7 -2
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/dropdown/src/useDropdown.mjs +1 -1
- package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
- package/es/components/focus-trap/src/focus-trap.mjs +2 -2
- package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
- package/es/components/index.mjs +5 -5
- package/es/components/mention/src/mention2.mjs +51 -45
- package/es/components/mention/src/mention2.mjs.map +1 -1
- package/es/components/menu/src/utils/menu-item.mjs +1 -0
- package/es/components/menu/src/utils/menu-item.mjs.map +1 -1
- package/es/components/menu/src/utils/submenu.mjs +1 -0
- package/es/components/menu/src/utils/submenu.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs +36 -19
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +19 -36
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +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 +29 -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 -29
- 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 +3 -3
- package/es/components/roving-focus-group/src/roving-focus-item.mjs.map +1 -1
- package/es/components/roving-focus-group/src/utils.mjs +1 -1
- package/es/components/roving-focus-group/src/utils.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +55 -171
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +171 -55
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +34 -169
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +169 -34
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/select-v2/src/select-dropdown.mjs +7 -9
- package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.mjs +2 -1
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/slider/src/composables/use-slider-button.mjs +24 -15
- package/es/components/slider/src/composables/use-slider-button.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +21 -25
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs +1 -1
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tree/src/model/useKeydown.mjs +1 -1
- package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
- package/es/hooks/use-escape-keydown/index.mjs +2 -3
- package/es/hooks/use-escape-keydown/index.mjs.map +1 -1
- package/es/index.mjs +5 -5
- 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-item.js +8 -70
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +70 -8
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/cascader/index.js +2 -2
- package/lib/components/cascader/src/cascader.js +84 -627
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader2.js +629 -84
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -0
- package/lib/components/cascader-panel/src/index.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +20 -28
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +28 -20
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +1 -0
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +2 -3
- package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown2.js +7 -2
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/dropdown/src/useDropdown.js +1 -1
- package/lib/components/dropdown/src/useDropdown.js.map +1 -1
- package/lib/components/focus-trap/src/focus-trap.js +2 -2
- package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
- package/lib/components/index.js +5 -5
- package/lib/components/mention/src/mention2.js +51 -45
- package/lib/components/mention/src/mention2.js.map +1 -1
- package/lib/components/menu/src/utils/menu-item.js +1 -0
- package/lib/components/menu/src/utils/menu-item.js.map +1 -1
- package/lib/components/menu/src/utils/submenu.js +1 -0
- package/lib/components/menu/src/utils/submenu.js.map +1 -1
- package/lib/components/pagination/src/components/next.js +36 -19
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +19 -36
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +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 +33 -27
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
- 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 +3 -3
- package/lib/components/roving-focus-group/src/roving-focus-item.js.map +1 -1
- package/lib/components/roving-focus-group/src/utils.js +1 -1
- package/lib/components/roving-focus-group/src/utils.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +56 -171
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +171 -56
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +34 -168
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +168 -34
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/select-v2/src/select-dropdown.js +7 -9
- package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.js +2 -1
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/slider/src/composables/use-slider-button.js +24 -15
- package/lib/components/slider/src/composables/use-slider-button.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +21 -25
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tabs.js +1 -1
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tree/src/model/useKeydown.js +1 -1
- package/lib/components/tree/src/model/useKeydown.js.map +1 -1
- package/lib/hooks/use-escape-keydown/index.js +2 -3
- package/lib/hooks/use-escape-keydown/index.js.map +1 -1
- package/lib/index.js +5 -5
- 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/dist/index.full.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Element Plus v0.0.
|
1
|
+
/*! Element Plus v0.0.20241114 */
|
2
2
|
|
3
3
|
(function (global, factory) {
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
@@ -9658,9 +9658,8 @@
|
|
9658
9658
|
};
|
9659
9659
|
|
9660
9660
|
let registeredEscapeHandlers = [];
|
9661
|
-
const cachedHandler = (
|
9662
|
-
|
9663
|
-
if (event.key === EVENT_CODE.esc) {
|
9661
|
+
const cachedHandler = (event) => {
|
9662
|
+
if (event.code === EVENT_CODE.esc) {
|
9664
9663
|
registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
|
9665
9664
|
}
|
9666
9665
|
};
|
@@ -11568,7 +11567,7 @@
|
|
11568
11567
|
|
11569
11568
|
const ElConfigProvider = withInstall(ConfigProvider);
|
11570
11569
|
|
11571
|
-
const version$1 = "0.0.
|
11570
|
+
const version$1 = "0.0.20241114";
|
11572
11571
|
|
11573
11572
|
const makeInstaller = (components = []) => {
|
11574
11573
|
const install = (app, options) => {
|
@@ -15225,9 +15224,9 @@
|
|
15225
15224
|
return;
|
15226
15225
|
if (focusLayer.paused)
|
15227
15226
|
return;
|
15228
|
-
const {
|
15227
|
+
const { code, altKey, ctrlKey, metaKey, currentTarget, shiftKey } = e;
|
15229
15228
|
const { loop } = props;
|
15230
|
-
const isTabbing =
|
15229
|
+
const isTabbing = code === EVENT_CODE.tab && !altKey && !ctrlKey && !metaKey;
|
15231
15230
|
const currentFocusingEl = document.activeElement;
|
15232
15231
|
if (isTabbing && currentFocusingEl) {
|
15233
15232
|
const container = currentTarget;
|
@@ -15877,7 +15876,7 @@
|
|
15877
15876
|
},
|
15878
15877
|
triggerKeys: {
|
15879
15878
|
type: definePropType(Array),
|
15880
|
-
default: () => [EVENT_CODE.enter, EVENT_CODE.space]
|
15879
|
+
default: () => [EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space]
|
15881
15880
|
}
|
15882
15881
|
});
|
15883
15882
|
|
@@ -23761,6 +23760,7 @@
|
|
23761
23760
|
break;
|
23762
23761
|
}
|
23763
23762
|
case EVENT_CODE.enter:
|
23763
|
+
case EVENT_CODE.numpadEnter:
|
23764
23764
|
checkNode(target);
|
23765
23765
|
break;
|
23766
23766
|
}
|
@@ -24278,6 +24278,7 @@
|
|
24278
24278
|
return;
|
24279
24279
|
switch (e.code) {
|
24280
24280
|
case EVENT_CODE.enter:
|
24281
|
+
case EVENT_CODE.numpadEnter:
|
24281
24282
|
togglePopperVisible();
|
24282
24283
|
break;
|
24283
24284
|
case EVENT_CODE.down:
|
@@ -24332,6 +24333,7 @@
|
|
24332
24333
|
break;
|
24333
24334
|
}
|
24334
24335
|
case EVENT_CODE.enter:
|
24336
|
+
case EVENT_CODE.numpadEnter:
|
24335
24337
|
target.click();
|
24336
24338
|
break;
|
24337
24339
|
}
|
@@ -26213,6 +26215,7 @@
|
|
26213
26215
|
function handleKeyDown(event) {
|
26214
26216
|
switch (event.code) {
|
26215
26217
|
case EVENT_CODE.enter:
|
26218
|
+
case EVENT_CODE.numpadEnter:
|
26216
26219
|
case EVENT_CODE.space:
|
26217
26220
|
event.preventDefault();
|
26218
26221
|
event.stopPropagation();
|
@@ -31283,7 +31286,7 @@
|
|
31283
31286
|
}
|
31284
31287
|
};
|
31285
31288
|
const getFocusIntent = (event, orientation, dir) => {
|
31286
|
-
const key = getDirectionAwareKey(event.
|
31289
|
+
const key = getDirectionAwareKey(event.code, dir);
|
31287
31290
|
if (orientation === "vertical" && [EVENT_CODE.left, EVENT_CODE.right].includes(key))
|
31288
31291
|
return void 0;
|
31289
31292
|
if (orientation === "horizontal" && [EVENT_CODE.up, EVENT_CODE.down].includes(key))
|
@@ -31456,8 +31459,8 @@
|
|
31456
31459
|
const handleKeydown = composeEventHandlers((e) => {
|
31457
31460
|
emit("keydown", e);
|
31458
31461
|
}, (e) => {
|
31459
|
-
const {
|
31460
|
-
if (
|
31462
|
+
const { code, shiftKey, target, currentTarget } = e;
|
31463
|
+
if (code === EVENT_CODE.tab && shiftKey) {
|
31461
31464
|
onItemShiftTab();
|
31462
31465
|
return;
|
31463
31466
|
}
|
@@ -31638,7 +31641,12 @@
|
|
31638
31641
|
const scrollbar = vue.ref(null);
|
31639
31642
|
const currentTabId = vue.ref(null);
|
31640
31643
|
const isUsingKeyboard = vue.ref(false);
|
31641
|
-
const triggerKeys = [
|
31644
|
+
const triggerKeys = [
|
31645
|
+
EVENT_CODE.enter,
|
31646
|
+
EVENT_CODE.numpadEnter,
|
31647
|
+
EVENT_CODE.space,
|
31648
|
+
EVENT_CODE.down
|
31649
|
+
];
|
31642
31650
|
const wrapStyle = vue.computed(() => ({
|
31643
31651
|
maxHeight: addUnit(props.maxHeight)
|
31644
31652
|
}));
|
@@ -31926,8 +31934,7 @@
|
|
31926
31934
|
return "button";
|
31927
31935
|
});
|
31928
31936
|
const handleKeydown = composeEventHandlers((e) => {
|
31929
|
-
|
31930
|
-
if (code === EVENT_CODE.enter || code === EVENT_CODE.space) {
|
31937
|
+
if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(e.code)) {
|
31931
31938
|
e.preventDefault();
|
31932
31939
|
e.stopImmediatePropagation();
|
31933
31940
|
emit("clickimpl", e);
|
@@ -33602,6 +33609,7 @@
|
|
33602
33609
|
break;
|
33603
33610
|
}
|
33604
33611
|
case EVENT_CODE.enter:
|
33612
|
+
case EVENT_CODE.numpadEnter:
|
33605
33613
|
case EVENT_CODE.space: {
|
33606
33614
|
prevDef = true;
|
33607
33615
|
event.currentTarget.click();
|
@@ -33655,6 +33663,7 @@
|
|
33655
33663
|
break;
|
33656
33664
|
}
|
33657
33665
|
case EVENT_CODE.enter:
|
33666
|
+
case EVENT_CODE.numpadEnter:
|
33658
33667
|
case EVENT_CODE.space: {
|
33659
33668
|
prevDef = true;
|
33660
33669
|
event.currentTarget.click();
|
@@ -40144,7 +40153,8 @@
|
|
40144
40153
|
esc,
|
40145
40154
|
down,
|
40146
40155
|
up,
|
40147
|
-
enter
|
40156
|
+
enter,
|
40157
|
+
numpadEnter
|
40148
40158
|
} = EVENT_CODE;
|
40149
40159
|
if (code !== tab) {
|
40150
40160
|
e.preventDefault();
|
@@ -40152,21 +40162,18 @@
|
|
40152
40162
|
}
|
40153
40163
|
switch (code) {
|
40154
40164
|
case tab:
|
40155
|
-
case esc:
|
40165
|
+
case esc:
|
40156
40166
|
break;
|
40157
|
-
|
40158
|
-
case down: {
|
40167
|
+
case down:
|
40159
40168
|
onForward();
|
40160
40169
|
break;
|
40161
|
-
|
40162
|
-
case up: {
|
40170
|
+
case up:
|
40163
40171
|
onBackward();
|
40164
40172
|
break;
|
40165
|
-
|
40166
|
-
case
|
40173
|
+
case enter:
|
40174
|
+
case numpadEnter:
|
40167
40175
|
onKeyboardSelect();
|
40168
40176
|
break;
|
40169
|
-
}
|
40170
40177
|
}
|
40171
40178
|
};
|
40172
40179
|
return () => {
|
@@ -40850,7 +40857,8 @@
|
|
40850
40857
|
});
|
40851
40858
|
vue.watch(() => props.modelValue, (val, oldVal) => {
|
40852
40859
|
var _a;
|
40853
|
-
|
40860
|
+
const isValEmpty = !val || isArray$1(val) && val.length === 0;
|
40861
|
+
if (isValEmpty || props.multiple && !isEqual$1(val.toString(), states.previousValue) || !props.multiple && getValueKey(val) !== getValueKey(states.previousValue)) {
|
40854
40862
|
initStates(true);
|
40855
40863
|
}
|
40856
40864
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
@@ -41740,7 +41748,6 @@
|
|
41740
41748
|
};
|
41741
41749
|
};
|
41742
41750
|
|
41743
|
-
const { left, down, right, up, home, end, pageUp, pageDown } = EVENT_CODE;
|
41744
41751
|
const useTooltip = (props, formatTooltip, showTooltip) => {
|
41745
41752
|
const tooltip = vue.ref();
|
41746
41753
|
const tooltipVisible = vue.ref(false);
|
@@ -41841,20 +41848,30 @@
|
|
41841
41848
|
};
|
41842
41849
|
const onKeyDown = (event) => {
|
41843
41850
|
let isPreventDefault = true;
|
41844
|
-
|
41845
|
-
|
41846
|
-
|
41847
|
-
|
41848
|
-
|
41849
|
-
|
41850
|
-
|
41851
|
-
|
41852
|
-
|
41853
|
-
|
41854
|
-
|
41855
|
-
|
41856
|
-
|
41857
|
-
|
41851
|
+
switch (event.code) {
|
41852
|
+
case EVENT_CODE.left:
|
41853
|
+
case EVENT_CODE.down:
|
41854
|
+
onLeftKeyDown();
|
41855
|
+
break;
|
41856
|
+
case EVENT_CODE.right:
|
41857
|
+
case EVENT_CODE.up:
|
41858
|
+
onRightKeyDown();
|
41859
|
+
break;
|
41860
|
+
case EVENT_CODE.home:
|
41861
|
+
onHomeKeyDown();
|
41862
|
+
break;
|
41863
|
+
case EVENT_CODE.end:
|
41864
|
+
onEndKeyDown();
|
41865
|
+
break;
|
41866
|
+
case EVENT_CODE.pageDown:
|
41867
|
+
onPageDownKeyDown();
|
41868
|
+
break;
|
41869
|
+
case EVENT_CODE.pageUp:
|
41870
|
+
onPageUpKeyDown();
|
41871
|
+
break;
|
41872
|
+
default:
|
41873
|
+
isPreventDefault = false;
|
41874
|
+
break;
|
41858
41875
|
}
|
41859
41876
|
isPreventDefault && event.preventDefault();
|
41860
41877
|
};
|
@@ -50394,31 +50411,27 @@
|
|
50394
50411
|
}
|
50395
50412
|
}
|
50396
50413
|
};
|
50397
|
-
const changeTab = (
|
50398
|
-
|
50399
|
-
|
50400
|
-
|
50401
|
-
|
50402
|
-
|
50403
|
-
|
50404
|
-
|
50405
|
-
|
50406
|
-
|
50407
|
-
|
50408
|
-
|
50409
|
-
|
50410
|
-
|
50411
|
-
|
50412
|
-
|
50413
|
-
|
50414
|
-
|
50415
|
-
|
50416
|
-
} else {
|
50417
|
-
|
50418
|
-
nextIndex = currentIndex + 1;
|
50419
|
-
} else {
|
50420
|
-
nextIndex = 0;
|
50421
|
-
}
|
50414
|
+
const changeTab = (event) => {
|
50415
|
+
let step = 0;
|
50416
|
+
switch (event.code) {
|
50417
|
+
case EVENT_CODE.left:
|
50418
|
+
case EVENT_CODE.up:
|
50419
|
+
step = -1;
|
50420
|
+
break;
|
50421
|
+
case EVENT_CODE.right:
|
50422
|
+
case EVENT_CODE.down:
|
50423
|
+
step = 1;
|
50424
|
+
break;
|
50425
|
+
default:
|
50426
|
+
return;
|
50427
|
+
}
|
50428
|
+
const tabList = Array.from(event.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));
|
50429
|
+
const currentIndex = tabList.indexOf(event.target);
|
50430
|
+
let nextIndex = currentIndex + step;
|
50431
|
+
if (nextIndex < 0) {
|
50432
|
+
nextIndex = tabList.length - 1;
|
50433
|
+
} else if (nextIndex >= tabList.length) {
|
50434
|
+
nextIndex = 0;
|
50422
50435
|
}
|
50423
50436
|
tabList[nextIndex].focus({
|
50424
50437
|
preventScroll: true
|
@@ -50636,7 +50649,7 @@
|
|
50636
50649
|
"tabindex": "0",
|
50637
50650
|
"onClick": handleTabAdd,
|
50638
50651
|
"onKeydown": (ev) => {
|
50639
|
-
if (
|
50652
|
+
if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter].includes(ev.code))
|
50640
50653
|
handleTabAdd();
|
50641
50654
|
}
|
50642
50655
|
}, [addSlot ? vue.renderSlot(slots, "add-icon") : vue.createVNode(ElIcon, {
|
@@ -53573,7 +53586,7 @@
|
|
53573
53586
|
currentItem.click();
|
53574
53587
|
}
|
53575
53588
|
const hasInput = currentItem.querySelector('[type="checkbox"]');
|
53576
|
-
if ([EVENT_CODE.enter, EVENT_CODE.space].includes(code) && hasInput) {
|
53589
|
+
if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(code) && hasInput) {
|
53577
53590
|
ev.preventDefault();
|
53578
53591
|
hasInput.click();
|
53579
53592
|
}
|
@@ -58201,55 +58214,60 @@
|
|
58201
58214
|
emit("update:modelValue", value);
|
58202
58215
|
syncAfterCursorMove();
|
58203
58216
|
};
|
58204
|
-
const handleInputKeyDown = (
|
58217
|
+
const handleInputKeyDown = (event) => {
|
58205
58218
|
var _a, _b, _c, _d;
|
58206
|
-
if (!("
|
58207
|
-
return;
|
58208
|
-
if ((_a = elInputRef.value) == null ? void 0 : _a.isComposing)
|
58219
|
+
if (!("code" in event) || ((_a = elInputRef.value) == null ? void 0 : _a.isComposing))
|
58209
58220
|
return;
|
58210
|
-
|
58211
|
-
|
58212
|
-
|
58213
|
-
|
58214
|
-
|
58215
|
-
|
58216
|
-
|
58217
|
-
|
58218
|
-
} else if (["Enter"].includes(e.key)) {
|
58219
|
-
if (!visible.value)
|
58220
|
-
return;
|
58221
|
-
e.preventDefault();
|
58222
|
-
if ((_c = dropdownRef.value) == null ? void 0 : _c.hoverOption) {
|
58223
|
-
(_d = dropdownRef.value) == null ? void 0 : _d.selectHoverOption();
|
58224
|
-
} else {
|
58225
|
-
visible.value = false;
|
58226
|
-
}
|
58227
|
-
} else if (["Escape"].includes(e.key)) {
|
58228
|
-
if (!visible.value)
|
58229
|
-
return;
|
58230
|
-
e.preventDefault();
|
58231
|
-
visible.value = false;
|
58232
|
-
} else if (["Backspace"].includes(e.key)) {
|
58233
|
-
if (props.whole && mentionCtx.value) {
|
58234
|
-
const { splitIndex, selectionEnd, pattern, prefixIndex, prefix } = mentionCtx.value;
|
58235
|
-
const inputEl = getInputEl();
|
58236
|
-
if (!inputEl)
|
58221
|
+
switch (event.code) {
|
58222
|
+
case EVENT_CODE.left:
|
58223
|
+
case EVENT_CODE.right:
|
58224
|
+
syncAfterCursorMove();
|
58225
|
+
break;
|
58226
|
+
case EVENT_CODE.up:
|
58227
|
+
case EVENT_CODE.down:
|
58228
|
+
if (!visible.value)
|
58237
58229
|
return;
|
58238
|
-
|
58239
|
-
|
58240
|
-
|
58241
|
-
|
58242
|
-
|
58243
|
-
|
58244
|
-
|
58245
|
-
|
58246
|
-
|
58247
|
-
|
58248
|
-
|
58249
|
-
|
58250
|
-
|
58230
|
+
event.preventDefault();
|
58231
|
+
(_b = dropdownRef.value) == null ? void 0 : _b.navigateOptions(event.code === EVENT_CODE.up ? "prev" : "next");
|
58232
|
+
break;
|
58233
|
+
case EVENT_CODE.enter:
|
58234
|
+
case EVENT_CODE.numpadEnter:
|
58235
|
+
if (!visible.value)
|
58236
|
+
return;
|
58237
|
+
event.preventDefault();
|
58238
|
+
if ((_c = dropdownRef.value) == null ? void 0 : _c.hoverOption) {
|
58239
|
+
(_d = dropdownRef.value) == null ? void 0 : _d.selectHoverOption();
|
58240
|
+
} else {
|
58241
|
+
visible.value = false;
|
58242
|
+
}
|
58243
|
+
break;
|
58244
|
+
case EVENT_CODE.esc:
|
58245
|
+
if (!visible.value)
|
58246
|
+
return;
|
58247
|
+
event.preventDefault();
|
58248
|
+
visible.value = false;
|
58249
|
+
break;
|
58250
|
+
case EVENT_CODE.backspace:
|
58251
|
+
if (props.whole && mentionCtx.value) {
|
58252
|
+
const { splitIndex, selectionEnd, pattern, prefixIndex, prefix } = mentionCtx.value;
|
58253
|
+
const inputEl = getInputEl();
|
58254
|
+
if (!inputEl)
|
58255
|
+
return;
|
58256
|
+
const inputValue = inputEl.value;
|
58257
|
+
const matchOption = props.options.find((item) => item.value === pattern);
|
58258
|
+
const isWhole = isFunction$1(props.checkIsWhole) ? props.checkIsWhole(pattern, prefix) : matchOption;
|
58259
|
+
if (isWhole && splitIndex !== -1 && splitIndex + 1 === selectionEnd) {
|
58260
|
+
event.preventDefault();
|
58261
|
+
const newValue = inputValue.slice(0, prefixIndex) + inputValue.slice(splitIndex + 1);
|
58262
|
+
emit(UPDATE_MODEL_EVENT, newValue);
|
58263
|
+
const newSelectionEnd = prefixIndex;
|
58264
|
+
vue.nextTick(() => {
|
58265
|
+
inputEl.selectionStart = newSelectionEnd;
|
58266
|
+
inputEl.selectionEnd = newSelectionEnd;
|
58267
|
+
syncDropdownVisible();
|
58268
|
+
});
|
58269
|
+
}
|
58251
58270
|
}
|
58252
|
-
}
|
58253
58271
|
}
|
58254
58272
|
};
|
58255
58273
|
const { wrapperRef } = useFocusController(elInputRef, {
|