@element-plus/nightly 0.0.20221012 → 0.0.20221014
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 +140 -75
- package/dist/index.full.min.js +18 -18
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +141 -76
- 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.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/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/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/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/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +96 -36
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +36 -96
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +55 -39
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +55 -39
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +67 -32
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +32 -67
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +55 -17
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +17 -55
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +35 -16
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +16 -35
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +70 -52
- package/es/components/cascader/src/index.mjs +1 -1
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +35 -26
- package/es/components/color-picker/index.d.ts +24 -17
- package/es/components/color-picker/src/color-picker.vue.d.ts +24 -17
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +18 -11
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +18 -11
- package/es/components/date-picker/src/panel-utils.d.ts +36 -22
- package/es/components/descriptions/src/description2.mjs +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +64 -7
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +4 -4
- package/es/components/dropdown/src/dropdown.vue.d.ts +4 -4
- package/es/components/focus-trap/index.mjs +2 -2
- package/es/components/focus-trap/src/focus-trap.mjs +49 -15
- package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
- package/es/components/focus-trap/src/tokens.d.ts +2 -0
- package/es/components/focus-trap/src/tokens.mjs +6 -1
- package/es/components/focus-trap/src/tokens.mjs.map +1 -1
- package/es/components/focus-trap/src/utils.d.ts +11 -0
- package/es/components/focus-trap/src/utils.mjs +49 -1
- package/es/components/focus-trap/src/utils.mjs.map +1 -1
- package/es/components/index.mjs +10 -10
- package/es/components/input/index.d.ts +18 -11
- package/es/components/input/src/input.d.ts +6 -1
- package/es/components/input/src/input.mjs +1 -2
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +18 -11
- package/es/components/input/src/input2.mjs +5 -32
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +49 -33
- package/es/components/input-number/index.mjs +2 -2
- package/es/components/input-number/src/input-number.mjs +298 -57
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue.d.ts +49 -33
- package/es/components/input-number/src/input-number2.mjs +57 -298
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +100 -14
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +14 -100
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +102 -17
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +17 -102
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +18 -11
- package/es/components/pagination/src/components/prev.mjs +34 -18
- package/es/components/pagination/src/components/prev.mjs.map +1 -1
- package/es/components/pagination/src/components/prev2.mjs +18 -34
- package/es/components/pagination/src/components/prev2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +4 -4
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/index.d.ts +6 -6
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +6 -6
- package/es/components/popover/index.d.ts +6 -6
- package/es/components/popover/src/popover.vue.d.ts +6 -6
- package/es/components/popper/src/content.vue.d.ts +2 -2
- package/es/components/popper/src/content2.mjs +10 -9
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +64 -9
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +9 -64
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/src/select.vue.d.ts +4 -4
- package/es/components/select/src/useSelect.d.ts +4 -4
- package/es/components/select/src/useSelect.mjs +3 -1
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +8 -8
- package/es/components/select-v2/src/select.vue.d.ts +4 -4
- package/es/components/select-v2/src/useSelect.d.ts +4 -4
- package/es/components/slider/index.d.ts +59 -43
- package/es/components/slider/src/button.vue.d.ts +2 -2
- package/es/components/slider/src/composables/use-slide.d.ts +8 -8
- package/es/components/slider/src/slider.vue.d.ts +59 -43
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +191 -20
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +20 -191
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/table/index.d.ts +4 -0
- package/es/components/table/index.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +4 -4
- package/es/components/tabs/index.d.ts +17 -17
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-nav.d.ts +4 -4
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane.mjs +73 -13
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +13 -73
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tabs/src/tabs.d.ts +26 -26
- package/es/components/tabs/src/tabs.mjs +4 -4
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +9 -4
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +24 -17
- package/es/components/time-select/index.d.ts +16 -16
- package/es/components/time-select/src/time-select.vue.d.ts +8 -8
- package/es/components/tooltip/index.d.ts +2 -2
- package/es/components/tooltip/src/content.vue.d.ts +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +2 -2
- package/es/components/transfer/index.d.ts +90 -55
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +131 -19
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.vue.d.ts +18 -11
- package/es/components/transfer/src/transfer-panel2.mjs +19 -131
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +90 -55
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/index.mjs +10 -10
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +95 -37
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +37 -95
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +55 -39
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +55 -39
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +67 -33
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +33 -67
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +55 -17
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +17 -55
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +35 -16
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +16 -35
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +70 -52
- package/lib/components/cascader/src/index.js +1 -1
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +35 -26
- package/lib/components/color-picker/index.d.ts +24 -17
- package/lib/components/color-picker/src/color-picker.vue.d.ts +24 -17
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +18 -11
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +18 -11
- package/lib/components/date-picker/src/panel-utils.d.ts +36 -22
- package/lib/components/descriptions/src/description2.js +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +64 -7
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +7 -64
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +4 -4
- package/lib/components/dropdown/src/dropdown.vue.d.ts +4 -4
- package/lib/components/focus-trap/index.js +5 -0
- package/lib/components/focus-trap/index.js.map +1 -1
- package/lib/components/focus-trap/src/focus-trap.js +48 -14
- package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
- package/lib/components/focus-trap/src/tokens.d.ts +2 -0
- package/lib/components/focus-trap/src/tokens.js +7 -0
- package/lib/components/focus-trap/src/tokens.js.map +1 -1
- package/lib/components/focus-trap/src/utils.d.ts +11 -0
- package/lib/components/focus-trap/src/utils.js +51 -0
- package/lib/components/focus-trap/src/utils.js.map +1 -1
- package/lib/components/index.js +10 -10
- package/lib/components/input/index.d.ts +18 -11
- package/lib/components/input/src/input.d.ts +6 -1
- package/lib/components/input/src/input.js +1 -2
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +18 -11
- package/lib/components/input/src/input2.js +4 -31
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +49 -33
- package/lib/components/input-number/index.js +2 -2
- package/lib/components/input-number/src/input-number.js +297 -57
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +49 -33
- package/lib/components/input-number/src/input-number2.js +57 -297
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +100 -15
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +15 -100
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +102 -18
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +18 -102
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +18 -11
- package/lib/components/pagination/src/components/prev.js +34 -19
- package/lib/components/pagination/src/components/prev.js.map +1 -1
- package/lib/components/pagination/src/components/prev2.js +19 -34
- package/lib/components/pagination/src/components/prev2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +4 -4
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/index.d.ts +6 -6
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +6 -6
- package/lib/components/popover/index.d.ts +6 -6
- package/lib/components/popover/src/popover.vue.d.ts +6 -6
- package/lib/components/popper/src/content.vue.d.ts +2 -2
- package/lib/components/popper/src/content2.js +10 -9
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +64 -9
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +9 -64
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/src/select.vue.d.ts +4 -4
- package/lib/components/select/src/useSelect.d.ts +4 -4
- package/lib/components/select/src/useSelect.js +3 -1
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +8 -8
- package/lib/components/select-v2/src/select.vue.d.ts +4 -4
- package/lib/components/select-v2/src/useSelect.d.ts +4 -4
- package/lib/components/slider/index.d.ts +59 -43
- package/lib/components/slider/src/button.vue.d.ts +2 -2
- package/lib/components/slider/src/composables/use-slide.d.ts +8 -8
- package/lib/components/slider/src/slider.vue.d.ts +59 -43
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +191 -20
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +20 -191
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/table/index.d.ts +4 -0
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +4 -4
- package/lib/components/tabs/index.d.ts +17 -17
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-nav.d.ts +4 -4
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tab-pane.js +73 -13
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +13 -73
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tabs/src/tabs.d.ts +26 -26
- package/lib/components/tabs/src/tabs.js +4 -4
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +8 -3
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +24 -17
- package/lib/components/time-select/index.d.ts +16 -16
- package/lib/components/time-select/src/time-select.vue.d.ts +8 -8
- package/lib/components/tooltip/index.d.ts +2 -2
- package/lib/components/tooltip/src/content.vue.d.ts +2 -2
- package/lib/components/tooltip/src/tooltip.vue.d.ts +2 -2
- package/lib/components/transfer/index.d.ts +90 -55
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +131 -21
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +18 -11
- package/lib/components/transfer/src/transfer-panel2.js +21 -131
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +90 -55
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/index.js +10 -10
- 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.20221014 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -11072,7 +11072,7 @@
|
|
|
11072
11072
|
};
|
|
11073
11073
|
};
|
|
11074
11074
|
|
|
11075
|
-
const version$1 = "0.0.
|
|
11075
|
+
const version$1 = "0.0.20221014";
|
|
11076
11076
|
|
|
11077
11077
|
const makeInstaller = (components = []) => {
|
|
11078
11078
|
const install = (app, options) => {
|
|
@@ -11518,8 +11518,7 @@
|
|
|
11518
11518
|
type: String
|
|
11519
11519
|
},
|
|
11520
11520
|
form: {
|
|
11521
|
-
type: String
|
|
11522
|
-
default: ""
|
|
11521
|
+
type: String
|
|
11523
11522
|
},
|
|
11524
11523
|
readonly: {
|
|
11525
11524
|
type: Boolean,
|
|
@@ -11580,8 +11579,8 @@
|
|
|
11580
11579
|
};
|
|
11581
11580
|
|
|
11582
11581
|
const _hoisted_1$14 = ["role"];
|
|
11583
|
-
const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
|
|
11584
|
-
const _hoisted_3$l = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
|
|
11582
|
+
const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
|
|
11583
|
+
const _hoisted_3$l = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
|
|
11585
11584
|
const __default__$1r = vue.defineComponent({
|
|
11586
11585
|
name: "ElInput",
|
|
11587
11586
|
inheritAttrs: false
|
|
@@ -11592,11 +11591,6 @@
|
|
|
11592
11591
|
emits: inputEmits,
|
|
11593
11592
|
setup(__props, { expose, emit }) {
|
|
11594
11593
|
const props = __props;
|
|
11595
|
-
const PENDANT_MAP = {
|
|
11596
|
-
suffix: "append",
|
|
11597
|
-
prefix: "prepend"
|
|
11598
|
-
};
|
|
11599
|
-
const instance = vue.getCurrentInstance();
|
|
11600
11594
|
const rawAttrs = vue.useAttrs();
|
|
11601
11595
|
const slots = vue.useSlots();
|
|
11602
11596
|
const containerAttrs = vue.computed(() => {
|
|
@@ -11685,25 +11679,6 @@
|
|
|
11685
11679
|
return;
|
|
11686
11680
|
input2.value = nativeInputValue.value;
|
|
11687
11681
|
};
|
|
11688
|
-
const calcIconOffset = (place) => {
|
|
11689
|
-
const { el } = instance.vnode;
|
|
11690
|
-
if (!el)
|
|
11691
|
-
return;
|
|
11692
|
-
const elList = Array.from(el.querySelectorAll(`.${nsInput.e(place)}`));
|
|
11693
|
-
const target = elList.find((item) => item.parentNode === el);
|
|
11694
|
-
if (!target)
|
|
11695
|
-
return;
|
|
11696
|
-
const pendant = PENDANT_MAP[place];
|
|
11697
|
-
if (slots[pendant]) {
|
|
11698
|
-
target.style.transform = `translateX(${place === "suffix" ? "-" : ""}${el.querySelector(`.${nsInput.be("group", pendant)}`).offsetWidth}px)`;
|
|
11699
|
-
} else {
|
|
11700
|
-
target.removeAttribute("style");
|
|
11701
|
-
}
|
|
11702
|
-
};
|
|
11703
|
-
const updateIconOffset = () => {
|
|
11704
|
-
calcIconOffset("prefix");
|
|
11705
|
-
calcIconOffset("suffix");
|
|
11706
|
-
};
|
|
11707
11682
|
const handleInput = async (event) => {
|
|
11708
11683
|
recordCursor();
|
|
11709
11684
|
let { value } = event.target;
|
|
@@ -11802,17 +11777,12 @@
|
|
|
11802
11777
|
await vue.nextTick();
|
|
11803
11778
|
setNativeInputValue();
|
|
11804
11779
|
resizeTextarea();
|
|
11805
|
-
updateIconOffset();
|
|
11806
11780
|
});
|
|
11807
11781
|
vue.onMounted(() => {
|
|
11808
11782
|
if (!props.formatter && props.parser) ;
|
|
11809
11783
|
setNativeInputValue();
|
|
11810
|
-
updateIconOffset();
|
|
11811
11784
|
vue.nextTick(resizeTextarea);
|
|
11812
11785
|
});
|
|
11813
|
-
vue.onUpdated(() => {
|
|
11814
|
-
vue.nextTick(updateIconOffset);
|
|
11815
|
-
});
|
|
11816
11786
|
expose({
|
|
11817
11787
|
input,
|
|
11818
11788
|
textarea,
|
|
@@ -11895,6 +11865,7 @@
|
|
|
11895
11865
|
"aria-label": _ctx.label,
|
|
11896
11866
|
placeholder: _ctx.placeholder,
|
|
11897
11867
|
style: _ctx.inputStyle,
|
|
11868
|
+
form: props.form,
|
|
11898
11869
|
onCompositionstart: handleCompositionStart,
|
|
11899
11870
|
onCompositionupdate: handleCompositionUpdate,
|
|
11900
11871
|
onCompositionend: handleCompositionEnd,
|
|
@@ -11991,6 +11962,7 @@
|
|
|
11991
11962
|
style: vue.unref(textareaStyle),
|
|
11992
11963
|
"aria-label": _ctx.label,
|
|
11993
11964
|
placeholder: _ctx.placeholder,
|
|
11965
|
+
form: props.form,
|
|
11994
11966
|
onCompositionstart: handleCompositionStart,
|
|
11995
11967
|
onCompositionupdate: handleCompositionUpdate,
|
|
11996
11968
|
onCompositionend: handleCompositionEnd,
|
|
@@ -12723,6 +12695,25 @@
|
|
|
12723
12695
|
|
|
12724
12696
|
var E$1="top",R="bottom",W="right",P$1="left",me="auto",G=[E$1,R,W,P$1],U$1="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G.reduce(function(t,e){return t.concat([e+"-"+U$1,e+"-"+J])},[]),Ee=[].concat(G,[me]).reduce(function(t,e){return t.concat([e,e+"-"+U$1,e+"-"+J])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C(t){return t?(t.nodeName||"").toLowerCase():null}function H(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Q(t){var e=H(t).Element;return t instanceof e||t instanceof Element}function B(t){var e=H(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Pe(t){if(typeof ShadowRoot=="undefined")return !1;var e=H(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Mt(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!B(i)||!C(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s);}));});}function Rt(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(f,c){return f[c]="",f},{});!B(o)||!C(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(f){o.removeAttribute(f);}));});}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q(t){return t.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,o=1;if(B(t)&&e){var i=t.offsetHeight,a=t.offsetWidth;a>0&&(r=Z(n.width)/a||1),i>0&&(o=Z(n.height)/i||1);}return {width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function ke(t){var e=ee(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function it(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return !0;if(n&&Pe(n)){var r=e;do{if(r&&t.isSameNode(r))return !0;r=r.parentNode||r.host;}while(r)}return !1}function N$1(t){return H(t).getComputedStyle(t)}function Wt(t){return ["table","td","th"].indexOf(C(t))>=0}function I$1(t){return ((Q(t)?t.ownerDocument:t.document)||window.document).documentElement}function ge(t){return C(t)==="html"?t:t.assignedSlot||t.parentNode||(Pe(t)?t.host:null)||I$1(t)}function at(t){return !B(t)||N$1(t).position==="fixed"?null:t.offsetParent}function Bt(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&B(t)){var r=N$1(t);if(r.position==="fixed")return null}var o=ge(t);for(Pe(o)&&(o=o.host);B(o)&&["html","body"].indexOf(C(o))<0;){var i=N$1(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode;}return null}function se(t){for(var e=H(t),n=at(t);n&&Wt(n)&&N$1(n).position==="static";)n=at(n);return n&&(C(n)==="html"||C(n)==="body"&&N$1(n).position==="static")?e:n||Bt(t)||e}function Le(t){return ["top","bottom"].indexOf(t)>=0?"x":"y"}function fe(t,e,n){return X$1(t,ve(e,n))}function St(t,e,n){var r=fe(t,e,n);return r>n?n:r}function st(){return {top:0,right:0,bottom:0,left:0}}function ft(t){return Object.assign({},st(),t)}function ct(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Tt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,ft(typeof t!="number"?t:ct(t,G))};function Ht(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=q(n.placement),f=Le(s),c=[P$1,W].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var m=Tt(o.padding,n),v=ke(i),l=f==="y"?E$1:P$1,h=f==="y"?R:W,p=n.rects.reference[u]+n.rects.reference[f]-a[f]-n.rects.popper[u],g=a[f]-n.rects.reference[f],x=se(i),y=x?f==="y"?x.clientHeight||0:x.clientWidth||0:0,$=p/2-g/2,d=m[l],b=y-v[u]-m[h],w=y/2-v[u]/2+$,O=fe(d,w,b),j=f;n.modifiersData[r]=(e={},e[j]=O,e.centerOffset=O-w,e);}}function Ct(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!it(e.elements.popper,o)||(e.elements.arrow=o));}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(t){return t.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(t){var e=t.x,n=t.y,r=window,o=r.devicePixelRatio||1;return {x:Z(e*o)/o||0,y:Z(n*o)/o||0}}function ut(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,m=t.isFixed,v=a.x,l=v===void 0?0:v,h=a.y,p=h===void 0?0:h,g=typeof u=="function"?u({x:l,y:p}):{x:l,y:p};l=g.x,p=g.y;var x=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),$=P$1,d=E$1,b=window;if(c){var w=se(n),O="clientHeight",j="clientWidth";if(w===H(n)&&(w=I$1(n),N$1(w).position!=="static"&&s==="absolute"&&(O="scrollHeight",j="scrollWidth")),w=w,o===E$1||(o===P$1||o===W)&&i===J){d=R;var A=m&&w===b&&b.visualViewport?b.visualViewport.height:w[O];p-=A-r.height,p*=f?1:-1;}if(o===P$1||(o===E$1||o===R)&&i===J){$=W;var k=m&&w===b&&b.visualViewport?b.visualViewport.width:w[j];l-=k-r.width,l*=f?1:-1;}}var D=Object.assign({position:s},c&&qt),S=u===!0?Vt({x:l,y:p}):{x:l,y:p};if(l=S.x,p=S.y,f){var L;return Object.assign({},D,(L={},L[d]=y?"0":"",L[$]=x?"0":"",L.transform=(b.devicePixelRatio||1)<=1?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",L))}return Object.assign({},D,(e={},e[d]=y?p+"px":"",e[$]=x?l+"px":"",e.transform="",e))}function Nt(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,f=s===void 0?!0:s,c={placement:q(e.placement),variation:te(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ut(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ut(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement});}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:!0};function It(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,f=H(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,ye);}),s&&f.addEventListener("resize",n.update,ye),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ye);}),s&&f.removeEventListener("resize",n.update,ye);}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,function(e){return _t[e]})}var zt={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,function(e){return zt[e]})}function We(t){var e=H(t),n=e.pageXOffset,r=e.pageYOffset;return {scrollLeft:n,scrollTop:r}}function Be(t){return ee(I$1(t)).left+We(t).scrollLeft}function Ft(t){var e=H(t),n=I$1(t),r=e.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Be(t),y:s}}function Ut(t){var e,n=I$1(t),r=We(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=X$1(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=X$1(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Be(t),f=-r.scrollTop;return N$1(o||n).direction==="rtl"&&(s+=X$1(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}function Se(t){var e=N$1(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return /auto|scroll|overlay|hidden/.test(n+o+r)}function dt(t){return ["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:B(t)&&Se(t)?t:dt(ge(t))}function ce(t,e){var n;e===void 0&&(e=[]);var r=dt(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=H(r),a=o?[i].concat(i.visualViewport||[],Se(r)?r:[]):r,s=e.concat(a);return o?s:s.concat(ce(ge(a)))}function Te(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt(t){var e=ee(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function ht(t,e){return e===je?Te(Ft(t)):Q(e)?Xt(e):Te(Ut(I$1(t)))}function Yt(t){var e=ce(ge(t)),n=["absolute","fixed"].indexOf(N$1(t).position)>=0,r=n&&B(t)?se(t):t;return Q(r)?e.filter(function(o){return Q(o)&&it(o,r)&&C(o)!=="body"}):[]}function Gt(t,e,n){var r=e==="clippingParents"?Yt(t):[].concat(e),o=[].concat(r,[n]),i=o[0],a=o.reduce(function(s,f){var c=ht(t,f);return s.top=X$1(c.top,s.top),s.right=ve(c.right,s.right),s.bottom=ve(c.bottom,s.bottom),s.left=X$1(c.left,s.left),s},ht(t,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function mt(t){var e=t.reference,n=t.element,r=t.placement,o=r?q(r):null,i=r?te(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,f;switch(o){case E$1:f={x:a,y:e.y-n.height};break;case R:f={x:a,y:e.y+e.height};break;case W:f={x:e.x+e.width,y:s};break;case P$1:f={x:e.x-n.width,y:s};break;default:f={x:e.x,y:e.y};}var c=o?Le(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case U$1:f[c]=f[c]-(e[u]/2-n[u]/2);break;case J:f[c]=f[c]+(e[u]/2-n[u]/2);break}}return f}function ne(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.boundary,a=i===void 0?Xe:i,s=n.rootBoundary,f=s===void 0?je:s,c=n.elementContext,u=c===void 0?K:c,m=n.altBoundary,v=m===void 0?!1:m,l=n.padding,h=l===void 0?0:l,p=ft(typeof h!="number"?h:ct(h,G)),g=u===K?Ye:K,x=t.rects.popper,y=t.elements[v?g:u],$=Gt(Q(y)?y:y.contextElement||I$1(t.elements.popper),a,f),d=ee(t.elements.reference),b=mt({reference:d,element:x,strategy:"absolute",placement:o}),w=Te(Object.assign({},x,b)),O=u===K?w:d,j={top:$.top-O.top+p.top,bottom:O.bottom-$.bottom+p.bottom,left:$.left-O.left+p.left,right:O.right-$.right+p.right},A=t.modifiersData.offset;if(u===K&&A){var k=A[o];Object.keys(j).forEach(function(D){var S=[W,R].indexOf(D)>=0?1:-1,L=[E$1,R].indexOf(D)>=0?"y":"x";j[D]+=k[L]*S;});}return j}function Jt(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?Ee:f,u=te(r),m=u?s?De:De.filter(function(h){return te(h)===u}):G,v=m.filter(function(h){return c.indexOf(h)>=0});v.length===0&&(v=m);var l=v.reduce(function(h,p){return h[p]=ne(t,{placement:p,boundary:o,rootBoundary:i,padding:a})[q(p)],h},{});return Object.keys(l).sort(function(h,p){return l[h]-l[p]})}function Kt(t){if(q(t)===me)return [];var e=be(t);return [lt(t),e,lt(e)]}function Qt(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,m=n.rootBoundary,v=n.altBoundary,l=n.flipVariations,h=l===void 0?!0:l,p=n.allowedAutoPlacements,g=e.options.placement,x=q(g),y=x===g,$=f||(y||!h?[be(g)]:Kt(g)),d=[g].concat($).reduce(function(z,V){return z.concat(q(V)===me?Jt(e,{placement:V,boundary:u,rootBoundary:m,padding:c,flipVariations:h,allowedAutoPlacements:p}):V)},[]),b=e.rects.reference,w=e.rects.popper,O=new Map,j=!0,A=d[0],k=0;k<d.length;k++){var D=d[k],S=q(D),L=te(D)===U$1,re=[E$1,R].indexOf(S)>=0,oe=re?"width":"height",M=ne(e,{placement:D,boundary:u,rootBoundary:m,altBoundary:v,padding:c}),T=re?L?W:P$1:L?R:E$1;b[oe]>w[oe]&&(T=be(T));var pe=be(T),_=[];if(i&&_.push(M[S]<=0),s&&_.push(M[T]<=0,M[pe]<=0),_.every(function(z){return z})){A=D,j=!1;break}O.set(D,_);}if(j)for(var ue=h?3:1,xe=function(z){var V=d.find(function(de){var ae=O.get(de);if(ae)return ae.slice(0,z).every(function(Y){return Y})});if(V)return A=V,"break"},ie=ue;ie>0;ie--){var le=xe(ie);if(le==="break")break}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0);}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function yt(t){return [E$1,W,R,P$1].some(function(e){return t[e]>=0})}function Zt(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=ne(e,{elementContext:"reference"}),s=ne(e,{altBoundary:!0}),f=gt(a,r),c=gt(s,o,i),u=yt(f),m=yt(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":m});}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(t,e,n){var r=q(t),o=[P$1,E$1].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[P$1,W].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function tn(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=Ee.reduce(function(u,m){return u[m]=en(m,e.rects,i),u},{}),s=a[e.placement],f=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a;}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn(t){var e=t.state,n=t.name;e.modifiersData[n]=mt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement});}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn(t){return t==="x"?"y":"x"}function on(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,f=n.boundary,c=n.rootBoundary,u=n.altBoundary,m=n.padding,v=n.tether,l=v===void 0?!0:v,h=n.tetherOffset,p=h===void 0?0:h,g=ne(e,{boundary:f,rootBoundary:c,padding:m,altBoundary:u}),x=q(e.placement),y=te(e.placement),$=!y,d=Le(x),b=rn(d),w=e.modifiersData.popperOffsets,O=e.rects.reference,j=e.rects.popper,A=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,k=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(w){if(i){var L,re=d==="y"?E$1:P$1,oe=d==="y"?R:W,M=d==="y"?"height":"width",T=w[d],pe=T+g[re],_=T-g[oe],ue=l?-j[M]/2:0,xe=y===U$1?O[M]:j[M],ie=y===U$1?-j[M]:-O[M],le=e.elements.arrow,z=l&&le?ke(le):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:st(),de=V[re],ae=V[oe],Y=fe(0,O[M],z[M]),jt=$?O[M]/2-ue-Y-de-k.mainAxis:xe-Y-de-k.mainAxis,Dt=$?-O[M]/2+ue+Y+ae+k.mainAxis:ie+Y+ae+k.mainAxis,Oe=e.elements.arrow&&se(e.elements.arrow),Et=Oe?d==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Ce=(L=D==null?void 0:D[d])!=null?L:0,Pt=T+jt-Ce-Et,At=T+Dt-Ce,qe=fe(l?ve(pe,Pt):pe,T,l?X$1(_,At):_);w[d]=qe,S[d]=qe-T;}if(s){var Ve,kt=d==="x"?E$1:P$1,Lt=d==="x"?R:W,F=w[b],he=b==="y"?"height":"width",Ne=F+g[kt],Ie=F-g[Lt],$e=[E$1,P$1].indexOf(x)!==-1,_e=(Ve=D==null?void 0:D[b])!=null?Ve:0,ze=$e?Ne:F-O[he]-j[he]-_e+k.altAxis,Fe=$e?F+O[he]+j[he]-_e-k.altAxis:Ie,Ue=l&&$e?St(ze,F,Fe):fe(l?ze:Ne,F,l?Fe:Ie);w[b]=Ue,S[b]=Ue-F;}e.modifiersData[r]=S;}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an(t){return {scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function sn(t){return t===H(t)||!B(t)?We(t):an(t)}function fn(t){var e=t.getBoundingClientRect(),n=Z(e.width)/t.offsetWidth||1,r=Z(e.height)/t.offsetHeight||1;return n!==1||r!==1}function cn(t,e,n){n===void 0&&(n=!1);var r=B(e),o=B(e)&&fn(e),i=I$1(e),a=ee(t,o),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return (r||!r&&!n)&&((C(e)!=="body"||Se(i))&&(s=sn(e)),B(e)?(f=ee(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):i&&(f.x=Be(i))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height}}function pn(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i);});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var f=e.get(s);f&&o(f);}}),r.push(i);}return t.forEach(function(i){n.has(i.name)||o(i);}),r}function un(t){var e=pn(t);return ot.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function ln(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t());});})),e}}function dn(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return !e.some(function(r){return !(r&&typeof r.getBoundingClientRect=="function")})}function we(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Ot:o;return function(a,s,f){f===void 0&&(f=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],m=!1,v={state:c,setOptions:function(p){var g=typeof p=="function"?p(c.options):p;h(),c.options=Object.assign({},i,c.options,g),c.scrollParents={reference:Q(a)?ce(a):a.contextElement?ce(a.contextElement):[],popper:ce(s)};var x=un(dn([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(y){return y.enabled}),l(),v.update()},forceUpdate:function(){if(!m){var p=c.elements,g=p.reference,x=p.popper;if($t(g,x)){c.rects={reference:cn(g,se(x),c.options.strategy==="fixed"),popper:ke(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var $=c.orderedModifiers[y],d=$.fn,b=$.options,w=b===void 0?{}:b,O=$.name;typeof d=="function"&&(c=d({state:c,options:w,name:O,instance:v})||c);}}}},update:ln(function(){return new Promise(function(p){v.forceUpdate(),p(c);})}),destroy:function(){h(),m=!0;}};if(!$t(a,s))return v;v.setOptions(f).then(function(p){!m&&f.onFirstUpdate&&f.onFirstUpdate(p);});function l(){c.orderedModifiers.forEach(function(p){var g=p.name,x=p.options,y=x===void 0?{}:x,$=p.effect;if(typeof $=="function"){var d=$({state:c,name:g,instance:v,options:y}),b=function(){};u.push(d||b);}});}function h(){u.forEach(function(p){return p()}),u=[];}return v}}we();var mn=[Re,He,Me,Ae];we({defaultModifiers:mn});var gn=[Re,He,Me,Ae,wt,vt,xt,pt,bt],yn=we({defaultModifiers:gn});
|
|
12725
12697
|
|
|
12698
|
+
const FOCUS_AFTER_TRAPPED = "focus-trap.focus-after-trapped";
|
|
12699
|
+
const FOCUS_AFTER_RELEASED = "focus-trap.focus-after-released";
|
|
12700
|
+
const FOCUSOUT_PREVENTED = "focus-trap.focusout-prevented";
|
|
12701
|
+
const FOCUS_AFTER_TRAPPED_OPTS = {
|
|
12702
|
+
cancelable: true,
|
|
12703
|
+
bubbles: false
|
|
12704
|
+
};
|
|
12705
|
+
const FOCUSOUT_PREVENTED_OPTS = {
|
|
12706
|
+
cancelable: true,
|
|
12707
|
+
bubbles: false
|
|
12708
|
+
};
|
|
12709
|
+
const ON_TRAP_FOCUS_EVT = "focusAfterTrapped";
|
|
12710
|
+
const ON_RELEASE_FOCUS_EVT = "focusAfterReleased";
|
|
12711
|
+
const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
|
|
12712
|
+
|
|
12713
|
+
const focusReason = vue.ref();
|
|
12714
|
+
const lastUserFocusTimestamp = vue.ref(0);
|
|
12715
|
+
const lastAutomatedFocusTimestamp = vue.ref(0);
|
|
12716
|
+
let focusReasonUserCount = 0;
|
|
12726
12717
|
const obtainAllFocusableElements = (element) => {
|
|
12727
12718
|
const nodes = [];
|
|
12728
12719
|
const walker = document.createTreeWalker(element, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -12768,6 +12759,7 @@
|
|
|
12768
12759
|
if (element && element.focus) {
|
|
12769
12760
|
const prevFocusedElement = document.activeElement;
|
|
12770
12761
|
element.focus({ preventScroll: true });
|
|
12762
|
+
lastAutomatedFocusTimestamp.value = window.performance.now();
|
|
12771
12763
|
if (element !== prevFocusedElement && isSelectable(element) && shouldSelect) {
|
|
12772
12764
|
element.select();
|
|
12773
12765
|
}
|
|
@@ -12810,16 +12802,46 @@
|
|
|
12810
12802
|
}
|
|
12811
12803
|
};
|
|
12812
12804
|
const focusableStack = createFocusableStack();
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
const
|
|
12817
|
-
|
|
12818
|
-
|
|
12805
|
+
const isFocusCausedByUserEvent = () => {
|
|
12806
|
+
return lastUserFocusTimestamp.value > lastAutomatedFocusTimestamp.value;
|
|
12807
|
+
};
|
|
12808
|
+
const notifyFocusReasonPointer = () => {
|
|
12809
|
+
focusReason.value = "pointer";
|
|
12810
|
+
lastUserFocusTimestamp.value = window.performance.now();
|
|
12811
|
+
};
|
|
12812
|
+
const notifyFocusReasonKeydown = () => {
|
|
12813
|
+
focusReason.value = "keyboard";
|
|
12814
|
+
lastUserFocusTimestamp.value = window.performance.now();
|
|
12815
|
+
};
|
|
12816
|
+
const useFocusReason = () => {
|
|
12817
|
+
vue.onMounted(() => {
|
|
12818
|
+
if (focusReasonUserCount === 0) {
|
|
12819
|
+
document.addEventListener("mousedown", notifyFocusReasonPointer);
|
|
12820
|
+
document.addEventListener("touchstart", notifyFocusReasonPointer);
|
|
12821
|
+
document.addEventListener("keydown", notifyFocusReasonKeydown);
|
|
12822
|
+
}
|
|
12823
|
+
focusReasonUserCount++;
|
|
12824
|
+
});
|
|
12825
|
+
vue.onBeforeUnmount(() => {
|
|
12826
|
+
focusReasonUserCount--;
|
|
12827
|
+
if (focusReasonUserCount <= 0) {
|
|
12828
|
+
document.removeEventListener("mousedown", notifyFocusReasonPointer);
|
|
12829
|
+
document.removeEventListener("touchstart", notifyFocusReasonPointer);
|
|
12830
|
+
document.removeEventListener("keydown", notifyFocusReasonKeydown);
|
|
12831
|
+
}
|
|
12832
|
+
});
|
|
12833
|
+
return {
|
|
12834
|
+
focusReason,
|
|
12835
|
+
lastUserFocusTimestamp,
|
|
12836
|
+
lastAutomatedFocusTimestamp
|
|
12837
|
+
};
|
|
12838
|
+
};
|
|
12839
|
+
const createFocusOutPreventedEvent = (detail) => {
|
|
12840
|
+
return new CustomEvent(FOCUSOUT_PREVENTED, {
|
|
12841
|
+
...FOCUSOUT_PREVENTED_OPTS,
|
|
12842
|
+
detail
|
|
12843
|
+
});
|
|
12819
12844
|
};
|
|
12820
|
-
const ON_TRAP_FOCUS_EVT = "focusAfterTrapped";
|
|
12821
|
-
const ON_RELEASE_FOCUS_EVT = "focusAfterReleased";
|
|
12822
|
-
const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
|
|
12823
12845
|
|
|
12824
12846
|
const _sfc_main$25 = vue.defineComponent({
|
|
12825
12847
|
name: "ElFocusTrap",
|
|
@@ -12845,6 +12867,7 @@
|
|
|
12845
12867
|
const forwardRef = vue.ref();
|
|
12846
12868
|
let lastFocusBeforeTrapped;
|
|
12847
12869
|
let lastFocusAfterTrapped;
|
|
12870
|
+
const { focusReason } = useFocusReason();
|
|
12848
12871
|
useEscapeKeydown((event) => {
|
|
12849
12872
|
if (props.trapped && !focusLayer.paused) {
|
|
12850
12873
|
emit("release-requested", event);
|
|
@@ -12874,20 +12897,35 @@
|
|
|
12874
12897
|
const isTabbable = first && last;
|
|
12875
12898
|
if (!isTabbable) {
|
|
12876
12899
|
if (currentFocusingEl === container) {
|
|
12877
|
-
|
|
12878
|
-
|
|
12900
|
+
const focusoutPreventedEvent = createFocusOutPreventedEvent({
|
|
12901
|
+
focusReason: focusReason.value
|
|
12902
|
+
});
|
|
12903
|
+
emit("focusout-prevented", focusoutPreventedEvent);
|
|
12904
|
+
if (!focusoutPreventedEvent.defaultPrevented) {
|
|
12905
|
+
e.preventDefault();
|
|
12906
|
+
}
|
|
12879
12907
|
}
|
|
12880
12908
|
} else {
|
|
12881
12909
|
if (!shiftKey && currentFocusingEl === last) {
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
emit("focusout-prevented");
|
|
12910
|
+
const focusoutPreventedEvent = createFocusOutPreventedEvent({
|
|
12911
|
+
focusReason: focusReason.value
|
|
12912
|
+
});
|
|
12913
|
+
emit("focusout-prevented", focusoutPreventedEvent);
|
|
12914
|
+
if (!focusoutPreventedEvent.defaultPrevented) {
|
|
12915
|
+
e.preventDefault();
|
|
12916
|
+
if (loop)
|
|
12917
|
+
tryFocus(first, true);
|
|
12918
|
+
}
|
|
12886
12919
|
} else if (shiftKey && [first, container].includes(currentFocusingEl)) {
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
emit("focusout-prevented");
|
|
12920
|
+
const focusoutPreventedEvent = createFocusOutPreventedEvent({
|
|
12921
|
+
focusReason: focusReason.value
|
|
12922
|
+
});
|
|
12923
|
+
emit("focusout-prevented", focusoutPreventedEvent);
|
|
12924
|
+
if (!focusoutPreventedEvent.defaultPrevented) {
|
|
12925
|
+
e.preventDefault();
|
|
12926
|
+
if (loop)
|
|
12927
|
+
tryFocus(last, true);
|
|
12928
|
+
}
|
|
12891
12929
|
}
|
|
12892
12930
|
}
|
|
12893
12931
|
}
|
|
@@ -12922,7 +12960,14 @@
|
|
|
12922
12960
|
if (!trapContainer)
|
|
12923
12961
|
return;
|
|
12924
12962
|
const target = e.target;
|
|
12963
|
+
const relatedTarget = e.relatedTarget;
|
|
12925
12964
|
const isFocusedInTrap = target && trapContainer.contains(target);
|
|
12965
|
+
if (!props.trapped) {
|
|
12966
|
+
const isPrevFocusedInTrap = relatedTarget && trapContainer.contains(relatedTarget);
|
|
12967
|
+
if (!isPrevFocusedInTrap) {
|
|
12968
|
+
lastFocusBeforeTrapped = relatedTarget;
|
|
12969
|
+
}
|
|
12970
|
+
}
|
|
12926
12971
|
if (isFocusedInTrap)
|
|
12927
12972
|
emit("focusin", e);
|
|
12928
12973
|
if (focusLayer.paused)
|
|
@@ -12944,7 +12989,13 @@
|
|
|
12944
12989
|
if (!isNil(relatedTarget) && !trapContainer.contains(relatedTarget)) {
|
|
12945
12990
|
setTimeout(() => {
|
|
12946
12991
|
if (!focusLayer.paused && props.trapped) {
|
|
12947
|
-
|
|
12992
|
+
const focusoutPreventedEvent = createFocusOutPreventedEvent({
|
|
12993
|
+
focusReason: focusReason.value
|
|
12994
|
+
});
|
|
12995
|
+
emit("focusout-prevented", focusoutPreventedEvent);
|
|
12996
|
+
if (!focusoutPreventedEvent.defaultPrevented) {
|
|
12997
|
+
tryFocus(lastFocusAfterTrapped, true);
|
|
12998
|
+
}
|
|
12948
12999
|
}
|
|
12949
13000
|
}, 0);
|
|
12950
13001
|
}
|
|
@@ -12960,7 +13011,7 @@
|
|
|
12960
13011
|
const trapContainer = vue.unref(forwardRef);
|
|
12961
13012
|
if (trapContainer) {
|
|
12962
13013
|
focusableStack.push(focusLayer);
|
|
12963
|
-
const prevFocusedElement = document.activeElement;
|
|
13014
|
+
const prevFocusedElement = trapContainer.contains(document.activeElement) ? lastFocusBeforeTrapped : document.activeElement;
|
|
12964
13015
|
lastFocusBeforeTrapped = prevFocusedElement;
|
|
12965
13016
|
const isPrevFocusContained = trapContainer.contains(prevFocusedElement);
|
|
12966
13017
|
if (!isPrevFocusContained) {
|
|
@@ -12991,10 +13042,15 @@
|
|
|
12991
13042
|
const trapContainer = vue.unref(forwardRef);
|
|
12992
13043
|
if (trapContainer) {
|
|
12993
13044
|
trapContainer.removeEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus);
|
|
12994
|
-
const releasedEvent = new
|
|
13045
|
+
const releasedEvent = new CustomEvent(FOCUS_AFTER_RELEASED, {
|
|
13046
|
+
...FOCUS_AFTER_TRAPPED_OPTS,
|
|
13047
|
+
detail: {
|
|
13048
|
+
focusReason: focusReason.value
|
|
13049
|
+
}
|
|
13050
|
+
});
|
|
12995
13051
|
trapContainer.addEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus);
|
|
12996
13052
|
trapContainer.dispatchEvent(releasedEvent);
|
|
12997
|
-
if (!releasedEvent.defaultPrevented) {
|
|
13053
|
+
if (!releasedEvent.defaultPrevented && (focusReason.value == "keyboard" || !isFocusCausedByUserEvent())) {
|
|
12998
13054
|
tryFocus(lastFocusBeforeTrapped != null ? lastFocusBeforeTrapped : document.body, true);
|
|
12999
13055
|
}
|
|
13000
13056
|
trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, trapOnFocus);
|
|
@@ -13265,24 +13321,26 @@
|
|
|
13265
13321
|
const onFocusAfterTrapped = () => {
|
|
13266
13322
|
emit("focus");
|
|
13267
13323
|
};
|
|
13268
|
-
const onFocusAfterReleased = () => {
|
|
13269
|
-
|
|
13270
|
-
|
|
13324
|
+
const onFocusAfterReleased = (event) => {
|
|
13325
|
+
var _a;
|
|
13326
|
+
if (((_a = event.detail) == null ? void 0 : _a.focusReason) !== "pointer") {
|
|
13327
|
+
focusStartRef.value = "first";
|
|
13328
|
+
emit("blur");
|
|
13329
|
+
}
|
|
13271
13330
|
};
|
|
13272
13331
|
const onFocusInTrap = (event) => {
|
|
13273
|
-
var _a;
|
|
13274
13332
|
if (props.visible && !trapped.value) {
|
|
13275
13333
|
if (event.target) {
|
|
13276
13334
|
focusStartRef.value = event.target;
|
|
13277
13335
|
}
|
|
13278
13336
|
trapped.value = true;
|
|
13279
|
-
if (event.relatedTarget) {
|
|
13280
|
-
(_a = event.relatedTarget) == null ? void 0 : _a.focus();
|
|
13281
|
-
}
|
|
13282
13337
|
}
|
|
13283
13338
|
};
|
|
13284
|
-
const onFocusoutPrevented = () => {
|
|
13339
|
+
const onFocusoutPrevented = (event) => {
|
|
13285
13340
|
if (!props.trapping) {
|
|
13341
|
+
if (event.detail.focusReason === "pointer") {
|
|
13342
|
+
event.preventDefault();
|
|
13343
|
+
}
|
|
13286
13344
|
trapped.value = false;
|
|
13287
13345
|
}
|
|
13288
13346
|
};
|
|
@@ -16445,7 +16503,11 @@
|
|
|
16445
16503
|
emitChange(props.modelValue);
|
|
16446
16504
|
});
|
|
16447
16505
|
} else {
|
|
16448
|
-
|
|
16506
|
+
vue.nextTick(() => {
|
|
16507
|
+
if (val) {
|
|
16508
|
+
valueOnOpen.value = props.modelValue;
|
|
16509
|
+
}
|
|
16510
|
+
});
|
|
16449
16511
|
}
|
|
16450
16512
|
});
|
|
16451
16513
|
const emitChange = (val, isClear) => {
|
|
@@ -16495,7 +16557,7 @@
|
|
|
16495
16557
|
};
|
|
16496
16558
|
const onPick = (date = "", visible = false) => {
|
|
16497
16559
|
if (!visible) {
|
|
16498
|
-
|
|
16560
|
+
ignoreFocusEvent = true;
|
|
16499
16561
|
}
|
|
16500
16562
|
pickerVisible.value = visible;
|
|
16501
16563
|
let result;
|
|
@@ -16520,6 +16582,7 @@
|
|
|
16520
16582
|
};
|
|
16521
16583
|
const onHide = () => {
|
|
16522
16584
|
pickerActualVisible.value = false;
|
|
16585
|
+
pickerVisible.value = false;
|
|
16523
16586
|
ignoreFocusEvent = false;
|
|
16524
16587
|
emit("visible-change", false);
|
|
16525
16588
|
};
|
|
@@ -16544,7 +16607,7 @@
|
|
|
16544
16607
|
if (props.readonly || pickerDisabled.value || pickerVisible.value || ignoreFocusEvent) {
|
|
16545
16608
|
return;
|
|
16546
16609
|
}
|
|
16547
|
-
pickerVisible.value =
|
|
16610
|
+
pickerVisible.value = true;
|
|
16548
16611
|
emit("focus", e);
|
|
16549
16612
|
};
|
|
16550
16613
|
let currentHandleBlurDeferCallback = void 0;
|
|
@@ -21269,7 +21332,7 @@
|
|
|
21269
21332
|
vue.watch(presentTags, () => {
|
|
21270
21333
|
vue.nextTick(() => updateStyle());
|
|
21271
21334
|
});
|
|
21272
|
-
vue.watch(presentText,
|
|
21335
|
+
vue.watch(presentText, syncPresentTextValue, { immediate: true });
|
|
21273
21336
|
vue.onMounted(() => {
|
|
21274
21337
|
var _a;
|
|
21275
21338
|
const inputEl = (_a = input.value) == null ? void 0 : _a.$el;
|
|
@@ -33082,7 +33145,9 @@
|
|
|
33082
33145
|
if (states.menuVisibleOnFocus) {
|
|
33083
33146
|
states.menuVisibleOnFocus = false;
|
|
33084
33147
|
} else {
|
|
33085
|
-
|
|
33148
|
+
if (!tooltipRef.value || !tooltipRef.value.isFocusInsideContent()) {
|
|
33149
|
+
states.visible = !states.visible;
|
|
33150
|
+
}
|
|
33086
33151
|
}
|
|
33087
33152
|
if (states.visible) {
|
|
33088
33153
|
(_a = input.value || reference.value) == null ? void 0 : _a.focus();
|
|
@@ -47666,13 +47731,13 @@
|
|
|
47666
47731
|
},
|
|
47667
47732
|
stretch: Boolean
|
|
47668
47733
|
});
|
|
47669
|
-
const
|
|
47734
|
+
const isPaneName = (value) => isString(value) || isNumber(value);
|
|
47670
47735
|
const tabsEmits = {
|
|
47671
|
-
[UPDATE_MODEL_EVENT]: (name) =>
|
|
47736
|
+
[UPDATE_MODEL_EVENT]: (name) => isPaneName(name),
|
|
47672
47737
|
tabClick: (pane, ev) => ev instanceof Event,
|
|
47673
|
-
tabChange: (name) =>
|
|
47738
|
+
tabChange: (name) => isPaneName(name),
|
|
47674
47739
|
edit: (paneName, action) => ["remove", "add"].includes(action),
|
|
47675
|
-
tabRemove: (name) =>
|
|
47740
|
+
tabRemove: (name) => isPaneName(name),
|
|
47676
47741
|
tabAdd: () => true
|
|
47677
47742
|
};
|
|
47678
47743
|
var Tabs = vue.defineComponent({
|