@element-plus/nightly 0.0.20241112 → 0.0.20241114
Sign up to get free protection for your applications and to get access to all the features.
- package/attributes.json +1 -1
- package/dist/index.full.js +146 -115
- 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 +146 -115
- 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/cascader/src/cascader2.mjs +2 -0
- 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/color-picker/src/color-picker2.mjs +1 -0
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/descriptions/src/description-item.d.ts +4 -0
- package/es/components/descriptions/src/description-item.mjs +4 -0
- package/es/components/descriptions/src/description-item.mjs.map +1 -1
- package/es/components/descriptions/src/description.d.ts +1 -0
- package/es/components/descriptions/src/description.mjs +4 -0
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +3 -0
- package/es/components/descriptions/src/descriptions-cell.mjs +2 -1
- package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions.type.d.ts +2 -0
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +6 -1
- 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/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/pagination/style/css.d.ts +1 -0
- package/es/components/pagination/style/css.mjs +1 -0
- package/es/components/pagination/style/css.mjs.map +1 -1
- package/es/components/pagination/style/index.d.ts +1 -0
- package/es/components/pagination/style/index.mjs +1 -0
- package/es/components/pagination/style/index.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +2 -2
- 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/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/button.mjs +21 -91
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +91 -21
- package/es/components/slider/src/button2.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/slider/src/slider2.mjs +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/time-picker/src/time-picker-com/basic-time-spinner.mjs +8 -4
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.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/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/cascader/src/cascader2.js +2 -0
- 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/color-picker/src/color-picker2.js +1 -0
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +4 -0
- package/lib/components/descriptions/src/description-item.js +4 -0
- package/lib/components/descriptions/src/description-item.js.map +1 -1
- package/lib/components/descriptions/src/description.d.ts +1 -0
- package/lib/components/descriptions/src/description.js +4 -0
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +3 -0
- package/lib/components/descriptions/src/descriptions-cell.js +2 -1
- package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
- package/lib/components/descriptions/src/descriptions.type.d.ts +2 -0
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +6 -1
- 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/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/pagination/style/css.d.ts +1 -0
- package/lib/components/pagination/style/css.js +1 -0
- package/lib/components/pagination/style/css.js.map +1 -1
- package/lib/components/pagination/style/index.d.ts +1 -0
- package/lib/components/pagination/style/index.js +1 -0
- package/lib/components/pagination/style/index.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +2 -2
- 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/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/button.js +22 -91
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +91 -22
- package/lib/components/slider/src/button2.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/slider/src/slider2.js +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/time-picker/src/time-picker-com/basic-time-spinner.js +7 -3
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.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/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/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
|
|
@@ -19998,6 +19997,8 @@
|
|
19998
19997
|
emits: ["change", "select-range", "set-option"],
|
19999
19998
|
setup(__props, { emit }) {
|
20000
19999
|
const props = __props;
|
20000
|
+
const pickerBase = vue.inject("EP_PICKER_BASE");
|
20001
|
+
const { isRange } = pickerBase.props;
|
20001
20002
|
const ns = useNamespace("time");
|
20002
20003
|
const { getHoursList, getMinutesList, getSecondsList } = getTimeLists(props.disabledHours, props.disabledMinutes, props.disabledSeconds);
|
20003
20004
|
let isScrolling = false;
|
@@ -20022,10 +20023,12 @@
|
|
20022
20023
|
});
|
20023
20024
|
const timeList = vue.computed(() => {
|
20024
20025
|
const { hours, minutes } = vue.unref(timePartials);
|
20026
|
+
const { role, spinnerDate } = props;
|
20027
|
+
const compare = !isRange ? spinnerDate : void 0;
|
20025
20028
|
return {
|
20026
|
-
hours: getHoursList(
|
20027
|
-
minutes: getMinutesList(hours,
|
20028
|
-
seconds: getSecondsList(hours, minutes,
|
20029
|
+
hours: getHoursList(role, compare),
|
20030
|
+
minutes: getMinutesList(hours, role, compare),
|
20031
|
+
seconds: getSecondsList(hours, minutes, role, compare)
|
20029
20032
|
};
|
20030
20033
|
});
|
20031
20034
|
const arrowControlTimeList = vue.computed(() => {
|
@@ -23757,6 +23760,7 @@
|
|
23757
23760
|
break;
|
23758
23761
|
}
|
23759
23762
|
case EVENT_CODE.enter:
|
23763
|
+
case EVENT_CODE.numpadEnter:
|
23760
23764
|
checkNode(target);
|
23761
23765
|
break;
|
23762
23766
|
}
|
@@ -24274,6 +24278,7 @@
|
|
24274
24278
|
return;
|
24275
24279
|
switch (e.code) {
|
24276
24280
|
case EVENT_CODE.enter:
|
24281
|
+
case EVENT_CODE.numpadEnter:
|
24277
24282
|
togglePopperVisible();
|
24278
24283
|
break;
|
24279
24284
|
case EVENT_CODE.down:
|
@@ -24328,6 +24333,7 @@
|
|
24328
24333
|
break;
|
24329
24334
|
}
|
24330
24335
|
case EVENT_CODE.enter:
|
24336
|
+
case EVENT_CODE.numpadEnter:
|
24331
24337
|
target.click();
|
24332
24338
|
break;
|
24333
24339
|
}
|
@@ -26209,6 +26215,7 @@
|
|
26209
26215
|
function handleKeyDown(event) {
|
26210
26216
|
switch (event.code) {
|
26211
26217
|
case EVENT_CODE.enter:
|
26218
|
+
case EVENT_CODE.numpadEnter:
|
26212
26219
|
case EVENT_CODE.space:
|
26213
26220
|
event.preventDefault();
|
26214
26221
|
event.stopPropagation();
|
@@ -30030,8 +30037,9 @@
|
|
30030
30037
|
const labelAlign = item.labelAlign ? `is-${item.labelAlign}` : align;
|
30031
30038
|
const className = item.className;
|
30032
30039
|
const labelClassName = item.labelClassName;
|
30040
|
+
const width = this.type === "label" ? item.labelWidth || this.descriptions.labelWidth || item.width : item.width;
|
30033
30041
|
const style = {
|
30034
|
-
width: addUnit(
|
30042
|
+
width: addUnit(width),
|
30035
30043
|
minWidth: addUnit(item.minWidth)
|
30036
30044
|
};
|
30037
30045
|
const ns = useNamespace("descriptions");
|
@@ -30170,6 +30178,10 @@
|
|
30170
30178
|
extra: {
|
30171
30179
|
type: String,
|
30172
30180
|
default: ""
|
30181
|
+
},
|
30182
|
+
labelWidth: {
|
30183
|
+
type: [String, Number],
|
30184
|
+
default: ""
|
30173
30185
|
}
|
30174
30186
|
});
|
30175
30187
|
|
@@ -30314,6 +30326,10 @@
|
|
30314
30326
|
type: [String, Number],
|
30315
30327
|
default: ""
|
30316
30328
|
},
|
30329
|
+
labelWidth: {
|
30330
|
+
type: [String, Number],
|
30331
|
+
default: ""
|
30332
|
+
},
|
30317
30333
|
align: {
|
30318
30334
|
type: String,
|
30319
30335
|
default: "left"
|
@@ -31270,7 +31286,7 @@
|
|
31270
31286
|
}
|
31271
31287
|
};
|
31272
31288
|
const getFocusIntent = (event, orientation, dir) => {
|
31273
|
-
const key = getDirectionAwareKey(event.
|
31289
|
+
const key = getDirectionAwareKey(event.code, dir);
|
31274
31290
|
if (orientation === "vertical" && [EVENT_CODE.left, EVENT_CODE.right].includes(key))
|
31275
31291
|
return void 0;
|
31276
31292
|
if (orientation === "horizontal" && [EVENT_CODE.up, EVENT_CODE.down].includes(key))
|
@@ -31443,8 +31459,8 @@
|
|
31443
31459
|
const handleKeydown = composeEventHandlers((e) => {
|
31444
31460
|
emit("keydown", e);
|
31445
31461
|
}, (e) => {
|
31446
|
-
const {
|
31447
|
-
if (
|
31462
|
+
const { code, shiftKey, target, currentTarget } = e;
|
31463
|
+
if (code === EVENT_CODE.tab && shiftKey) {
|
31448
31464
|
onItemShiftTab();
|
31449
31465
|
return;
|
31450
31466
|
}
|
@@ -31625,7 +31641,12 @@
|
|
31625
31641
|
const scrollbar = vue.ref(null);
|
31626
31642
|
const currentTabId = vue.ref(null);
|
31627
31643
|
const isUsingKeyboard = vue.ref(false);
|
31628
|
-
const triggerKeys = [
|
31644
|
+
const triggerKeys = [
|
31645
|
+
EVENT_CODE.enter,
|
31646
|
+
EVENT_CODE.numpadEnter,
|
31647
|
+
EVENT_CODE.space,
|
31648
|
+
EVENT_CODE.down
|
31649
|
+
];
|
31629
31650
|
const wrapStyle = vue.computed(() => ({
|
31630
31651
|
maxHeight: addUnit(props.maxHeight)
|
31631
31652
|
}));
|
@@ -31913,8 +31934,7 @@
|
|
31913
31934
|
return "button";
|
31914
31935
|
});
|
31915
31936
|
const handleKeydown = composeEventHandlers((e) => {
|
31916
|
-
|
31917
|
-
if (code === EVENT_CODE.enter || code === EVENT_CODE.space) {
|
31937
|
+
if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(e.code)) {
|
31918
31938
|
e.preventDefault();
|
31919
31939
|
e.stopImmediatePropagation();
|
31920
31940
|
emit("clickimpl", e);
|
@@ -33589,6 +33609,7 @@
|
|
33589
33609
|
break;
|
33590
33610
|
}
|
33591
33611
|
case EVENT_CODE.enter:
|
33612
|
+
case EVENT_CODE.numpadEnter:
|
33592
33613
|
case EVENT_CODE.space: {
|
33593
33614
|
prevDef = true;
|
33594
33615
|
event.currentTarget.click();
|
@@ -33642,6 +33663,7 @@
|
|
33642
33663
|
break;
|
33643
33664
|
}
|
33644
33665
|
case EVENT_CODE.enter:
|
33666
|
+
case EVENT_CODE.numpadEnter:
|
33645
33667
|
case EVENT_CODE.space: {
|
33646
33668
|
prevDef = true;
|
33647
33669
|
event.currentTarget.click();
|
@@ -40131,7 +40153,8 @@
|
|
40131
40153
|
esc,
|
40132
40154
|
down,
|
40133
40155
|
up,
|
40134
|
-
enter
|
40156
|
+
enter,
|
40157
|
+
numpadEnter
|
40135
40158
|
} = EVENT_CODE;
|
40136
40159
|
if (code !== tab) {
|
40137
40160
|
e.preventDefault();
|
@@ -40139,21 +40162,18 @@
|
|
40139
40162
|
}
|
40140
40163
|
switch (code) {
|
40141
40164
|
case tab:
|
40142
|
-
case esc:
|
40165
|
+
case esc:
|
40143
40166
|
break;
|
40144
|
-
|
40145
|
-
case down: {
|
40167
|
+
case down:
|
40146
40168
|
onForward();
|
40147
40169
|
break;
|
40148
|
-
|
40149
|
-
case up: {
|
40170
|
+
case up:
|
40150
40171
|
onBackward();
|
40151
40172
|
break;
|
40152
|
-
|
40153
|
-
case
|
40173
|
+
case enter:
|
40174
|
+
case numpadEnter:
|
40154
40175
|
onKeyboardSelect();
|
40155
40176
|
break;
|
40156
|
-
}
|
40157
40177
|
}
|
40158
40178
|
};
|
40159
40179
|
return () => {
|
@@ -40837,7 +40857,8 @@
|
|
40837
40857
|
});
|
40838
40858
|
vue.watch(() => props.modelValue, (val, oldVal) => {
|
40839
40859
|
var _a;
|
40840
|
-
|
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)) {
|
40841
40862
|
initStates(true);
|
40842
40863
|
}
|
40843
40864
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
@@ -41727,7 +41748,6 @@
|
|
41727
41748
|
};
|
41728
41749
|
};
|
41729
41750
|
|
41730
|
-
const { left, down, right, up, home, end, pageUp, pageDown } = EVENT_CODE;
|
41731
41751
|
const useTooltip = (props, formatTooltip, showTooltip) => {
|
41732
41752
|
const tooltip = vue.ref();
|
41733
41753
|
const tooltipVisible = vue.ref(false);
|
@@ -41828,20 +41848,30 @@
|
|
41828
41848
|
};
|
41829
41849
|
const onKeyDown = (event) => {
|
41830
41850
|
let isPreventDefault = true;
|
41831
|
-
|
41832
|
-
|
41833
|
-
|
41834
|
-
|
41835
|
-
|
41836
|
-
|
41837
|
-
|
41838
|
-
|
41839
|
-
|
41840
|
-
|
41841
|
-
|
41842
|
-
|
41843
|
-
|
41844
|
-
|
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;
|
41845
41875
|
}
|
41846
41876
|
isPreventDefault && event.preventDefault();
|
41847
41877
|
};
|
@@ -50381,31 +50411,27 @@
|
|
50381
50411
|
}
|
50382
50412
|
}
|
50383
50413
|
};
|
50384
|
-
const changeTab = (
|
50385
|
-
|
50386
|
-
|
50387
|
-
|
50388
|
-
|
50389
|
-
|
50390
|
-
|
50391
|
-
|
50392
|
-
|
50393
|
-
|
50394
|
-
|
50395
|
-
|
50396
|
-
|
50397
|
-
|
50398
|
-
|
50399
|
-
|
50400
|
-
|
50401
|
-
|
50402
|
-
|
50403
|
-
} else {
|
50404
|
-
|
50405
|
-
nextIndex = currentIndex + 1;
|
50406
|
-
} else {
|
50407
|
-
nextIndex = 0;
|
50408
|
-
}
|
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;
|
50409
50435
|
}
|
50410
50436
|
tabList[nextIndex].focus({
|
50411
50437
|
preventScroll: true
|
@@ -50623,7 +50649,7 @@
|
|
50623
50649
|
"tabindex": "0",
|
50624
50650
|
"onClick": handleTabAdd,
|
50625
50651
|
"onKeydown": (ev) => {
|
50626
|
-
if (
|
50652
|
+
if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter].includes(ev.code))
|
50627
50653
|
handleTabAdd();
|
50628
50654
|
}
|
50629
50655
|
}, [addSlot ? vue.renderSlot(slots, "add-icon") : vue.createVNode(ElIcon, {
|
@@ -53560,7 +53586,7 @@
|
|
53560
53586
|
currentItem.click();
|
53561
53587
|
}
|
53562
53588
|
const hasInput = currentItem.querySelector('[type="checkbox"]');
|
53563
|
-
if ([EVENT_CODE.enter, EVENT_CODE.space].includes(code) && hasInput) {
|
53589
|
+
if ([EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(code) && hasInput) {
|
53564
53590
|
ev.preventDefault();
|
53565
53591
|
hasInput.click();
|
53566
53592
|
}
|
@@ -58188,55 +58214,60 @@
|
|
58188
58214
|
emit("update:modelValue", value);
|
58189
58215
|
syncAfterCursorMove();
|
58190
58216
|
};
|
58191
|
-
const handleInputKeyDown = (
|
58217
|
+
const handleInputKeyDown = (event) => {
|
58192
58218
|
var _a, _b, _c, _d;
|
58193
|
-
if (!("
|
58194
|
-
return;
|
58195
|
-
if ((_a = elInputRef.value) == null ? void 0 : _a.isComposing)
|
58219
|
+
if (!("code" in event) || ((_a = elInputRef.value) == null ? void 0 : _a.isComposing))
|
58196
58220
|
return;
|
58197
|
-
|
58198
|
-
|
58199
|
-
|
58200
|
-
|
58201
|
-
|
58202
|
-
|
58203
|
-
|
58204
|
-
|
58205
|
-
} else if (["Enter"].includes(e.key)) {
|
58206
|
-
if (!visible.value)
|
58207
|
-
return;
|
58208
|
-
e.preventDefault();
|
58209
|
-
if ((_c = dropdownRef.value) == null ? void 0 : _c.hoverOption) {
|
58210
|
-
(_d = dropdownRef.value) == null ? void 0 : _d.selectHoverOption();
|
58211
|
-
} else {
|
58212
|
-
visible.value = false;
|
58213
|
-
}
|
58214
|
-
} else if (["Escape"].includes(e.key)) {
|
58215
|
-
if (!visible.value)
|
58216
|
-
return;
|
58217
|
-
e.preventDefault();
|
58218
|
-
visible.value = false;
|
58219
|
-
} else if (["Backspace"].includes(e.key)) {
|
58220
|
-
if (props.whole && mentionCtx.value) {
|
58221
|
-
const { splitIndex, selectionEnd, pattern, prefixIndex, prefix } = mentionCtx.value;
|
58222
|
-
const inputEl = getInputEl();
|
58223
|
-
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)
|
58224
58229
|
return;
|
58225
|
-
|
58226
|
-
|
58227
|
-
|
58228
|
-
|
58229
|
-
|
58230
|
-
|
58231
|
-
|
58232
|
-
|
58233
|
-
|
58234
|
-
|
58235
|
-
|
58236
|
-
|
58237
|
-
|
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
|
+
}
|
58238
58270
|
}
|
58239
|
-
}
|
58240
58271
|
}
|
58241
58272
|
};
|
58242
58273
|
const { wrapperRef } = useFocusController(elInputRef, {
|