@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
|
@@ -650,7 +650,12 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
650
650
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
651
651
|
__epPropKey: true;
|
|
652
652
|
};
|
|
653
|
-
readonly form:
|
|
653
|
+
readonly form: {
|
|
654
|
+
readonly type: import("vue").PropType<string>;
|
|
655
|
+
readonly required: false;
|
|
656
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
657
|
+
__epPropKey: true;
|
|
658
|
+
};
|
|
654
659
|
readonly readonly: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
655
660
|
readonly clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
656
661
|
readonly showPassword: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -673,10 +678,6 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
673
678
|
readonly validateEvent: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
674
679
|
readonly inputStyle: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("../../../utils").Mutable<{}>, boolean>;
|
|
675
680
|
}, {
|
|
676
|
-
PENDANT_MAP: {
|
|
677
|
-
readonly suffix: "append";
|
|
678
|
-
readonly prefix: "prepend";
|
|
679
|
-
};
|
|
680
681
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
681
682
|
readonly id: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
682
683
|
readonly size: {
|
|
@@ -714,7 +715,12 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
714
715
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
715
716
|
__epPropKey: true;
|
|
716
717
|
};
|
|
717
|
-
readonly form:
|
|
718
|
+
readonly form: {
|
|
719
|
+
readonly type: import("vue").PropType<string>;
|
|
720
|
+
readonly required: false;
|
|
721
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
722
|
+
__epPropKey: true;
|
|
723
|
+
};
|
|
718
724
|
readonly readonly: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
719
725
|
readonly clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
720
726
|
readonly showPassword: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -751,7 +757,6 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
751
757
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
752
758
|
}>>;
|
|
753
759
|
emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
|
|
754
|
-
instance: import("vue").ComponentInternalInstance;
|
|
755
760
|
rawAttrs: {
|
|
756
761
|
[x: string]: unknown;
|
|
757
762
|
};
|
|
@@ -827,8 +832,6 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
827
832
|
setCursor: () => void;
|
|
828
833
|
resizeTextarea: () => void;
|
|
829
834
|
setNativeInputValue: () => void;
|
|
830
|
-
calcIconOffset: (place: "suffix" | "prefix") => void;
|
|
831
|
-
updateIconOffset: () => void;
|
|
832
835
|
handleInput: (event: Event) => Promise<void>;
|
|
833
836
|
handleChange: (event: Event) => void;
|
|
834
837
|
handleCompositionStart: (event: CompositionEvent) => void;
|
|
@@ -959,7 +962,12 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
959
962
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
960
963
|
__epPropKey: true;
|
|
961
964
|
};
|
|
962
|
-
readonly form:
|
|
965
|
+
readonly form: {
|
|
966
|
+
readonly type: import("vue").PropType<string>;
|
|
967
|
+
readonly required: false;
|
|
968
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
969
|
+
__epPropKey: true;
|
|
970
|
+
};
|
|
963
971
|
readonly readonly: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
964
972
|
readonly clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
965
973
|
readonly showPassword: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -1003,7 +1011,6 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
1003
1011
|
readonly id: string;
|
|
1004
1012
|
readonly autosize: import("../..").InputAutoSize;
|
|
1005
1013
|
readonly autocomplete: string;
|
|
1006
|
-
readonly form: string;
|
|
1007
1014
|
readonly readonly: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1008
1015
|
readonly clearable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1009
1016
|
readonly showPassword: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -9216,7 +9223,12 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
9216
9223
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9217
9224
|
__epPropKey: true;
|
|
9218
9225
|
};
|
|
9219
|
-
readonly form:
|
|
9226
|
+
readonly form: {
|
|
9227
|
+
readonly type: import("vue").PropType<string>;
|
|
9228
|
+
readonly required: false;
|
|
9229
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9230
|
+
__epPropKey: true;
|
|
9231
|
+
};
|
|
9220
9232
|
readonly readonly: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
9221
9233
|
readonly clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
9222
9234
|
readonly showPassword: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -9239,10 +9251,6 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
9239
9251
|
readonly validateEvent: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
9240
9252
|
readonly inputStyle: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("../../../utils").Mutable<{}>, boolean>;
|
|
9241
9253
|
}, {
|
|
9242
|
-
PENDANT_MAP: {
|
|
9243
|
-
readonly suffix: "append";
|
|
9244
|
-
readonly prefix: "prepend";
|
|
9245
|
-
};
|
|
9246
9254
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
9247
9255
|
readonly id: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
9248
9256
|
readonly size: {
|
|
@@ -9280,7 +9288,12 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
9280
9288
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9281
9289
|
__epPropKey: true;
|
|
9282
9290
|
};
|
|
9283
|
-
readonly form:
|
|
9291
|
+
readonly form: {
|
|
9292
|
+
readonly type: import("vue").PropType<string>;
|
|
9293
|
+
readonly required: false;
|
|
9294
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9295
|
+
__epPropKey: true;
|
|
9296
|
+
};
|
|
9284
9297
|
readonly readonly: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
9285
9298
|
readonly clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
9286
9299
|
readonly showPassword: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -9317,7 +9330,6 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
9317
9330
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
9318
9331
|
}>>;
|
|
9319
9332
|
emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
|
|
9320
|
-
instance: import("vue").ComponentInternalInstance;
|
|
9321
9333
|
rawAttrs: {
|
|
9322
9334
|
[x: string]: unknown;
|
|
9323
9335
|
};
|
|
@@ -9393,8 +9405,6 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
9393
9405
|
setCursor: () => void;
|
|
9394
9406
|
resizeTextarea: () => void;
|
|
9395
9407
|
setNativeInputValue: () => void;
|
|
9396
|
-
calcIconOffset: (place: "suffix" | "prefix") => void;
|
|
9397
|
-
updateIconOffset: () => void;
|
|
9398
9408
|
handleInput: (event: Event) => Promise<void>;
|
|
9399
9409
|
handleChange: (event: Event) => void;
|
|
9400
9410
|
handleCompositionStart: (event: CompositionEvent) => void;
|
|
@@ -9525,7 +9535,12 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
9525
9535
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9526
9536
|
__epPropKey: true;
|
|
9527
9537
|
};
|
|
9528
|
-
readonly form:
|
|
9538
|
+
readonly form: {
|
|
9539
|
+
readonly type: import("vue").PropType<string>;
|
|
9540
|
+
readonly required: false;
|
|
9541
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9542
|
+
__epPropKey: true;
|
|
9543
|
+
};
|
|
9529
9544
|
readonly readonly: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
9530
9545
|
readonly clearable: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
9531
9546
|
readonly showPassword: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -9569,7 +9584,6 @@ export declare const getPanel: (type: IDatePickerType) => import("vue").DefineCo
|
|
|
9569
9584
|
readonly id: string;
|
|
9570
9585
|
readonly autosize: import("../..").InputAutoSize;
|
|
9571
9586
|
readonly autocomplete: string;
|
|
9572
|
-
readonly form: string;
|
|
9573
9587
|
readonly readonly: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
9574
9588
|
readonly clearable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
9575
9589
|
readonly showPassword: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
require('../../../utils/index.js');
|
|
7
7
|
require('../../../hooks/index.js');
|
|
8
|
-
var descriptionsRow = require('./descriptions-
|
|
8
|
+
var descriptionsRow = require('./descriptions-row.js');
|
|
9
9
|
var token = require('./token.js');
|
|
10
10
|
var description = require('./description.js');
|
|
11
11
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
@@ -2,15 +2,72 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var descriptionsCell = require('./descriptions-cell.js');
|
|
7
|
+
var token = require('./token.js');
|
|
8
|
+
var descriptionsRow = require('./descriptions-row2.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
7
10
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
const _hoisted_1 = { key: 1 };
|
|
12
|
+
const __default__ = vue.defineComponent({
|
|
13
|
+
name: "ElDescriptionsRow"
|
|
14
|
+
});
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
|
+
...__default__,
|
|
17
|
+
props: descriptionsRow.descriptionsRowProps,
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const descriptions = vue.inject(token.descriptionsKey, {});
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return vue.unref(descriptions).direction === "vertical" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
22
|
+
vue.createElementVNode("tr", null, [
|
|
23
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
24
|
+
return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
|
|
25
|
+
key: `tr1-${index}`,
|
|
26
|
+
cell,
|
|
27
|
+
tag: "th",
|
|
28
|
+
type: "label"
|
|
29
|
+
}, null, 8, ["cell"]);
|
|
30
|
+
}), 128))
|
|
31
|
+
]),
|
|
32
|
+
vue.createElementVNode("tr", null, [
|
|
33
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
34
|
+
return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
|
|
35
|
+
key: `tr2-${index}`,
|
|
36
|
+
cell,
|
|
37
|
+
tag: "td",
|
|
38
|
+
type: "content"
|
|
39
|
+
}, null, 8, ["cell"]);
|
|
40
|
+
}), 128))
|
|
41
|
+
])
|
|
42
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1, [
|
|
43
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
44
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
45
|
+
key: `tr3-${index}`
|
|
46
|
+
}, [
|
|
47
|
+
vue.unref(descriptions).border ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
48
|
+
vue.createVNode(vue.unref(descriptionsCell["default"]), {
|
|
49
|
+
cell,
|
|
50
|
+
tag: "td",
|
|
51
|
+
type: "label"
|
|
52
|
+
}, null, 8, ["cell"]),
|
|
53
|
+
vue.createVNode(vue.unref(descriptionsCell["default"]), {
|
|
54
|
+
cell,
|
|
55
|
+
tag: "td",
|
|
56
|
+
type: "content"
|
|
57
|
+
}, null, 8, ["cell"])
|
|
58
|
+
], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
|
|
59
|
+
key: 1,
|
|
60
|
+
cell,
|
|
61
|
+
tag: "td",
|
|
62
|
+
type: "both"
|
|
63
|
+
}, null, 8, ["cell"]))
|
|
64
|
+
], 64);
|
|
65
|
+
}), 128))
|
|
66
|
+
]));
|
|
67
|
+
};
|
|
12
68
|
}
|
|
13
69
|
});
|
|
70
|
+
var ElDescriptionsRow = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);
|
|
14
71
|
|
|
15
|
-
exports
|
|
72
|
+
exports["default"] = ElDescriptionsRow;
|
|
16
73
|
//# sourceMappingURL=descriptions-row.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptions-row.js","sources":["../../../../../../packages/components/descriptions/src/descriptions-row.
|
|
1
|
+
{"version":3,"file":"descriptions-row.js","sources":["../../../../../../packages/components/descriptions/src/descriptions-row.vue"],"sourcesContent":["<template>\n <template v-if=\"descriptions.direction === 'vertical'\">\n <tr>\n <template v-for=\"(cell, index) in row\" :key=\"`tr1-${index}`\">\n <el-descriptions-cell :cell=\"cell\" tag=\"th\" type=\"label\" />\n </template>\n </tr>\n <tr>\n <template v-for=\"(cell, index) in row\" :key=\"`tr2-${index}`\">\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"content\" />\n </template>\n </tr>\n </template>\n <tr v-else>\n <template v-for=\"(cell, index) in row\" :key=\"`tr3-${index}`\">\n <template v-if=\"descriptions.border\">\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"label\" />\n <el-descriptions-cell :cell=\"cell\" tag=\"td\" type=\"content\" />\n </template>\n <el-descriptions-cell v-else :cell=\"cell\" tag=\"td\" type=\"both\" />\n </template>\n </tr>\n</template>\n\n<script lang=\"ts\" setup>\n// @ts-nocheck\nimport { inject } from 'vue'\n\nimport ElDescriptionsCell from './descriptions-cell'\nimport { descriptionsKey } from './token'\nimport { descriptionsRowProps } from './descriptions-row'\n\nimport type { IDescriptionsInject } from './descriptions.type'\n\ndefineOptions({\n name: 'ElDescriptionsRow',\n})\n\ndefineProps(descriptionsRowProps)\n\nconst descriptions = inject(descriptionsKey, {} as IDescriptionsInject)\n</script>\n"],"names":["inject","descriptionsKey"],"mappings":";;;;;;;;;;;uCAkCc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAIA,IAAA,MAAM,YAAe,GAAAA,UAAA,CAAOC,qBAAiB,EAAA,EAAyB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,72 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
var token = require('./token.js');
|
|
8
|
-
var descriptionsRow = require('./descriptions-row.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
10
7
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
|
-
...__default__,
|
|
17
|
-
props: descriptionsRow.descriptionsRowProps,
|
|
18
|
-
setup(__props) {
|
|
19
|
-
const descriptions = vue.inject(token.descriptionsKey, {});
|
|
20
|
-
return (_ctx, _cache) => {
|
|
21
|
-
return vue.unref(descriptions).direction === "vertical" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
22
|
-
vue.createElementVNode("tr", null, [
|
|
23
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
24
|
-
return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
|
|
25
|
-
key: `tr1-${index}`,
|
|
26
|
-
cell,
|
|
27
|
-
tag: "th",
|
|
28
|
-
type: "label"
|
|
29
|
-
}, null, 8, ["cell"]);
|
|
30
|
-
}), 128))
|
|
31
|
-
]),
|
|
32
|
-
vue.createElementVNode("tr", null, [
|
|
33
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
34
|
-
return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
|
|
35
|
-
key: `tr2-${index}`,
|
|
36
|
-
cell,
|
|
37
|
-
tag: "td",
|
|
38
|
-
type: "content"
|
|
39
|
-
}, null, 8, ["cell"]);
|
|
40
|
-
}), 128))
|
|
41
|
-
])
|
|
42
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1, [
|
|
43
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
44
|
-
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
45
|
-
key: `tr3-${index}`
|
|
46
|
-
}, [
|
|
47
|
-
vue.unref(descriptions).border ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
48
|
-
vue.createVNode(vue.unref(descriptionsCell["default"]), {
|
|
49
|
-
cell,
|
|
50
|
-
tag: "td",
|
|
51
|
-
type: "label"
|
|
52
|
-
}, null, 8, ["cell"]),
|
|
53
|
-
vue.createVNode(vue.unref(descriptionsCell["default"]), {
|
|
54
|
-
cell,
|
|
55
|
-
tag: "td",
|
|
56
|
-
type: "content"
|
|
57
|
-
}, null, 8, ["cell"])
|
|
58
|
-
], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
|
|
59
|
-
key: 1,
|
|
60
|
-
cell,
|
|
61
|
-
tag: "td",
|
|
62
|
-
type: "both"
|
|
63
|
-
}, null, 8, ["cell"]))
|
|
64
|
-
], 64);
|
|
65
|
-
}), 128))
|
|
66
|
-
]));
|
|
67
|
-
};
|
|
8
|
+
const descriptionsRowProps = runtime.buildProps({
|
|
9
|
+
row: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: () => []
|
|
68
12
|
}
|
|
69
13
|
});
|
|
70
|
-
var ElDescriptionsRow = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);
|
|
71
14
|
|
|
72
|
-
exports
|
|
15
|
+
exports.descriptionsRowProps = descriptionsRowProps;
|
|
73
16
|
//# sourceMappingURL=descriptions-row2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptions-row2.js","sources":["../../../../../../packages/components/descriptions/src/descriptions-row.
|
|
1
|
+
{"version":3,"file":"descriptions-row2.js","sources":["../../../../../../packages/components/descriptions/src/descriptions-row.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nexport const descriptionsRowProps = buildProps({\n row: {\n type: Array,\n default: () => [],\n },\n} as const)\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,oBAAoB,GAAGA,kBAAU,CAAC;AAC/C,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -2665,9 +2665,9 @@ export declare const ElDropdown: import("element-plus/es/utils").SFCWithInstall<
|
|
|
2665
2665
|
updatePopper: (shouldUpdateZIndex?: boolean) => void;
|
|
2666
2666
|
togglePopperAlive: () => void;
|
|
2667
2667
|
onFocusAfterTrapped: () => void;
|
|
2668
|
-
onFocusAfterReleased: () => void;
|
|
2668
|
+
onFocusAfterReleased: (event: CustomEvent<any>) => void;
|
|
2669
2669
|
onFocusInTrap: (event: FocusEvent) => void;
|
|
2670
|
-
onFocusoutPrevented: () => void;
|
|
2670
|
+
onFocusoutPrevented: (event: CustomEvent<any>) => void;
|
|
2671
2671
|
onReleaseRequested: () => void;
|
|
2672
2672
|
ElFocusTrap: import("vue").DefineComponent<{
|
|
2673
2673
|
loop: BooleanConstructor;
|
|
@@ -5536,9 +5536,9 @@ export declare const ElDropdown: import("element-plus/es/utils").SFCWithInstall<
|
|
|
5536
5536
|
updatePopper: (shouldUpdateZIndex?: boolean) => void;
|
|
5537
5537
|
togglePopperAlive: () => void;
|
|
5538
5538
|
onFocusAfterTrapped: () => void;
|
|
5539
|
-
onFocusAfterReleased: () => void;
|
|
5539
|
+
onFocusAfterReleased: (event: CustomEvent<any>) => void;
|
|
5540
5540
|
onFocusInTrap: (event: FocusEvent) => void;
|
|
5541
|
-
onFocusoutPrevented: () => void;
|
|
5541
|
+
onFocusoutPrevented: (event: CustomEvent<any>) => void;
|
|
5542
5542
|
onReleaseRequested: () => void;
|
|
5543
5543
|
ElFocusTrap: import("vue").DefineComponent<{
|
|
5544
5544
|
loop: BooleanConstructor;
|
|
@@ -2666,9 +2666,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2666
2666
|
updatePopper: (shouldUpdateZIndex?: boolean) => void;
|
|
2667
2667
|
togglePopperAlive: () => void;
|
|
2668
2668
|
onFocusAfterTrapped: () => void;
|
|
2669
|
-
onFocusAfterReleased: () => void;
|
|
2669
|
+
onFocusAfterReleased: (event: CustomEvent<any>) => void;
|
|
2670
2670
|
onFocusInTrap: (event: FocusEvent) => void;
|
|
2671
|
-
onFocusoutPrevented: () => void;
|
|
2671
|
+
onFocusoutPrevented: (event: CustomEvent<any>) => void;
|
|
2672
2672
|
onReleaseRequested: () => void;
|
|
2673
2673
|
ElFocusTrap: import("vue").DefineComponent<{
|
|
2674
2674
|
loop: BooleanConstructor;
|
|
@@ -5537,9 +5537,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5537
5537
|
updatePopper: (shouldUpdateZIndex?: boolean) => void;
|
|
5538
5538
|
togglePopperAlive: () => void;
|
|
5539
5539
|
onFocusAfterTrapped: () => void;
|
|
5540
|
-
onFocusAfterReleased: () => void;
|
|
5540
|
+
onFocusAfterReleased: (event: CustomEvent<any>) => void;
|
|
5541
5541
|
onFocusInTrap: (event: FocusEvent) => void;
|
|
5542
|
-
onFocusoutPrevented: () => void;
|
|
5542
|
+
onFocusoutPrevented: (event: CustomEvent<any>) => void;
|
|
5543
5543
|
onReleaseRequested: () => void;
|
|
5544
5544
|
ElFocusTrap: import("vue").DefineComponent<{
|
|
5545
5545
|
loop: BooleanConstructor;
|
|
@@ -10,17 +10,22 @@ var utils = require('./src/utils.js');
|
|
|
10
10
|
|
|
11
11
|
exports.ElFocusTrap = focusTrap["default"];
|
|
12
12
|
exports["default"] = focusTrap["default"];
|
|
13
|
+
exports.FOCUSOUT_PREVENTED = tokens.FOCUSOUT_PREVENTED;
|
|
14
|
+
exports.FOCUSOUT_PREVENTED_OPTS = tokens.FOCUSOUT_PREVENTED_OPTS;
|
|
13
15
|
exports.FOCUS_AFTER_RELEASED = tokens.FOCUS_AFTER_RELEASED;
|
|
14
16
|
exports.FOCUS_AFTER_TRAPPED = tokens.FOCUS_AFTER_TRAPPED;
|
|
15
17
|
exports.FOCUS_AFTER_TRAPPED_OPTS = tokens.FOCUS_AFTER_TRAPPED_OPTS;
|
|
16
18
|
exports.FOCUS_TRAP_INJECTION_KEY = tokens.FOCUS_TRAP_INJECTION_KEY;
|
|
17
19
|
exports.ON_RELEASE_FOCUS_EVT = tokens.ON_RELEASE_FOCUS_EVT;
|
|
18
20
|
exports.ON_TRAP_FOCUS_EVT = tokens.ON_TRAP_FOCUS_EVT;
|
|
21
|
+
exports.createFocusOutPreventedEvent = utils.createFocusOutPreventedEvent;
|
|
19
22
|
exports.focusFirstDescendant = utils.focusFirstDescendant;
|
|
20
23
|
exports.focusableStack = utils.focusableStack;
|
|
21
24
|
exports.getEdges = utils.getEdges;
|
|
22
25
|
exports.getVisibleElement = utils.getVisibleElement;
|
|
26
|
+
exports.isFocusCausedByUserEvent = utils.isFocusCausedByUserEvent;
|
|
23
27
|
exports.isHidden = utils.isHidden;
|
|
24
28
|
exports.obtainAllFocusableElements = utils.obtainAllFocusableElements;
|
|
25
29
|
exports.tryFocus = utils.tryFocus;
|
|
30
|
+
exports.useFocusReason = utils.useFocusReason;
|
|
26
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -38,6 +38,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
38
38
|
const forwardRef = vue.ref();
|
|
39
39
|
let lastFocusBeforeTrapped;
|
|
40
40
|
let lastFocusAfterTrapped;
|
|
41
|
+
const { focusReason } = utils.useFocusReason();
|
|
41
42
|
index.useEscapeKeydown((event) => {
|
|
42
43
|
if (props.trapped && !focusLayer.paused) {
|
|
43
44
|
emit("release-requested", event);
|
|
@@ -67,20 +68,35 @@ const _sfc_main = vue.defineComponent({
|
|
|
67
68
|
const isTabbable = first && last;
|
|
68
69
|
if (!isTabbable) {
|
|
69
70
|
if (currentFocusingEl === container) {
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
const focusoutPreventedEvent = utils.createFocusOutPreventedEvent({
|
|
72
|
+
focusReason: focusReason.value
|
|
73
|
+
});
|
|
74
|
+
emit("focusout-prevented", focusoutPreventedEvent);
|
|
75
|
+
if (!focusoutPreventedEvent.defaultPrevented) {
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
}
|
|
72
78
|
}
|
|
73
79
|
} else {
|
|
74
80
|
if (!shiftKey && currentFocusingEl === last) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
emit("focusout-prevented");
|
|
81
|
+
const focusoutPreventedEvent = utils.createFocusOutPreventedEvent({
|
|
82
|
+
focusReason: focusReason.value
|
|
83
|
+
});
|
|
84
|
+
emit("focusout-prevented", focusoutPreventedEvent);
|
|
85
|
+
if (!focusoutPreventedEvent.defaultPrevented) {
|
|
86
|
+
e.preventDefault();
|
|
87
|
+
if (loop)
|
|
88
|
+
utils.tryFocus(first, true);
|
|
89
|
+
}
|
|
79
90
|
} else if (shiftKey && [first, container].includes(currentFocusingEl)) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
emit("focusout-prevented");
|
|
91
|
+
const focusoutPreventedEvent = utils.createFocusOutPreventedEvent({
|
|
92
|
+
focusReason: focusReason.value
|
|
93
|
+
});
|
|
94
|
+
emit("focusout-prevented", focusoutPreventedEvent);
|
|
95
|
+
if (!focusoutPreventedEvent.defaultPrevented) {
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
if (loop)
|
|
98
|
+
utils.tryFocus(last, true);
|
|
99
|
+
}
|
|
84
100
|
}
|
|
85
101
|
}
|
|
86
102
|
}
|
|
@@ -115,7 +131,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
115
131
|
if (!trapContainer)
|
|
116
132
|
return;
|
|
117
133
|
const target = e.target;
|
|
134
|
+
const relatedTarget = e.relatedTarget;
|
|
118
135
|
const isFocusedInTrap = target && trapContainer.contains(target);
|
|
136
|
+
if (!props.trapped) {
|
|
137
|
+
const isPrevFocusedInTrap = relatedTarget && trapContainer.contains(relatedTarget);
|
|
138
|
+
if (!isPrevFocusedInTrap) {
|
|
139
|
+
lastFocusBeforeTrapped = relatedTarget;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
119
142
|
if (isFocusedInTrap)
|
|
120
143
|
emit("focusin", e);
|
|
121
144
|
if (focusLayer.paused)
|
|
@@ -137,7 +160,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
137
160
|
if (!lodashUnified.isNil(relatedTarget) && !trapContainer.contains(relatedTarget)) {
|
|
138
161
|
setTimeout(() => {
|
|
139
162
|
if (!focusLayer.paused && props.trapped) {
|
|
140
|
-
utils.
|
|
163
|
+
const focusoutPreventedEvent = utils.createFocusOutPreventedEvent({
|
|
164
|
+
focusReason: focusReason.value
|
|
165
|
+
});
|
|
166
|
+
emit("focusout-prevented", focusoutPreventedEvent);
|
|
167
|
+
if (!focusoutPreventedEvent.defaultPrevented) {
|
|
168
|
+
utils.tryFocus(lastFocusAfterTrapped, true);
|
|
169
|
+
}
|
|
141
170
|
}
|
|
142
171
|
}, 0);
|
|
143
172
|
}
|
|
@@ -153,7 +182,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
153
182
|
const trapContainer = vue.unref(forwardRef);
|
|
154
183
|
if (trapContainer) {
|
|
155
184
|
utils.focusableStack.push(focusLayer);
|
|
156
|
-
const prevFocusedElement = document.activeElement;
|
|
185
|
+
const prevFocusedElement = trapContainer.contains(document.activeElement) ? lastFocusBeforeTrapped : document.activeElement;
|
|
157
186
|
lastFocusBeforeTrapped = prevFocusedElement;
|
|
158
187
|
const isPrevFocusContained = trapContainer.contains(prevFocusedElement);
|
|
159
188
|
if (!isPrevFocusContained) {
|
|
@@ -184,10 +213,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
184
213
|
const trapContainer = vue.unref(forwardRef);
|
|
185
214
|
if (trapContainer) {
|
|
186
215
|
trapContainer.removeEventListener(tokens.FOCUS_AFTER_TRAPPED, trapOnFocus);
|
|
187
|
-
const releasedEvent = new
|
|
216
|
+
const releasedEvent = new CustomEvent(tokens.FOCUS_AFTER_RELEASED, {
|
|
217
|
+
...tokens.FOCUS_AFTER_TRAPPED_OPTS,
|
|
218
|
+
detail: {
|
|
219
|
+
focusReason: focusReason.value
|
|
220
|
+
}
|
|
221
|
+
});
|
|
188
222
|
trapContainer.addEventListener(tokens.FOCUS_AFTER_RELEASED, releaseOnFocus);
|
|
189
223
|
trapContainer.dispatchEvent(releasedEvent);
|
|
190
|
-
if (!releasedEvent.defaultPrevented) {
|
|
224
|
+
if (!releasedEvent.defaultPrevented && (focusReason.value == "keyboard" || !utils.isFocusCausedByUserEvent())) {
|
|
191
225
|
utils.tryFocus(lastFocusBeforeTrapped != null ? lastFocusBeforeTrapped : document.body, true);
|
|
192
226
|
}
|
|
193
227
|
trapContainer.removeEventListener(tokens.FOCUS_AFTER_RELEASED, trapOnFocus);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-trap.js","sources":["../../../../../../packages/components/focus-trap/src/focus-trap.vue"],"sourcesContent":["<template>\n <slot :handle-keydown=\"onKeydown\" />\n</template>\n<script lang=\"ts\">\nimport {\n defineComponent,\n nextTick,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n unref,\n watch,\n} from 'vue'\nimport { isNil } from 'lodash-unified'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { useEscapeKeydown } from '@element-plus/hooks'\nimport { isString } from '@element-plus/utils'\nimport {\n focusFirstDescendant,\n focusableStack,\n getEdges,\n obtainAllFocusableElements,\n tryFocus,\n} from './utils'\nimport {\n FOCUS_AFTER_RELEASED,\n FOCUS_AFTER_TRAPPED,\n FOCUS_AFTER_TRAPPED_OPTS,\n FOCUS_TRAP_INJECTION_KEY,\n ON_RELEASE_FOCUS_EVT,\n ON_TRAP_FOCUS_EVT,\n} from './tokens'\n\nimport type { PropType } from 'vue'\nimport type { FocusLayer } from './utils'\n\nexport default defineComponent({\n name: 'ElFocusTrap',\n inheritAttrs: false,\n props: {\n loop: Boolean,\n trapped: Boolean,\n focusTrapEl: Object as PropType<HTMLElement>,\n focusStartEl: {\n type: [Object, String] as PropType<'container' | 'first' | HTMLElement>,\n default: 'first',\n },\n },\n emits: [\n ON_TRAP_FOCUS_EVT,\n ON_RELEASE_FOCUS_EVT,\n 'focusin',\n 'focusout',\n 'focusout-prevented',\n 'release-requested',\n ],\n setup(props, { emit }) {\n const forwardRef = ref<HTMLElement | undefined>()\n let lastFocusBeforeTrapped: HTMLElement | null\n let lastFocusAfterTrapped: HTMLElement | null\n\n useEscapeKeydown((event) => {\n if (props.trapped && !focusLayer.paused) {\n emit('release-requested', event)\n }\n })\n\n const focusLayer: FocusLayer = {\n paused: false,\n pause() {\n this.paused = true\n },\n resume() {\n this.paused = false\n },\n }\n\n const onKeydown = (e: KeyboardEvent) => {\n if (!props.loop && !props.trapped) return\n if (focusLayer.paused) return\n\n const { key, altKey, ctrlKey, metaKey, currentTarget, shiftKey } = e\n const { loop } = props\n const isTabbing =\n key === EVENT_CODE.tab && !altKey && !ctrlKey && !metaKey\n\n const currentFocusingEl = document.activeElement\n if (isTabbing && currentFocusingEl) {\n const container = currentTarget as HTMLElement\n const [first, last] = getEdges(container)\n const isTabbable = first && last\n if (!isTabbable) {\n if (currentFocusingEl === container) {\n e.preventDefault()\n emit('focusout-prevented')\n }\n } else {\n if (!shiftKey && currentFocusingEl === last) {\n e.preventDefault()\n if (loop) tryFocus(first, true)\n emit('focusout-prevented')\n } else if (\n shiftKey &&\n [first, container].includes(currentFocusingEl as HTMLElement)\n ) {\n e.preventDefault()\n if (loop) tryFocus(last, true)\n emit('focusout-prevented')\n }\n }\n }\n }\n\n provide(FOCUS_TRAP_INJECTION_KEY, {\n focusTrapRef: forwardRef,\n onKeydown,\n })\n\n watch(\n () => props.focusTrapEl,\n (focusTrapEl) => {\n if (focusTrapEl) {\n forwardRef.value = focusTrapEl\n }\n },\n { immediate: true }\n )\n\n watch([forwardRef], ([forwardRef], [oldForwardRef]) => {\n if (forwardRef) {\n forwardRef.addEventListener('keydown', onKeydown)\n forwardRef.addEventListener('focusin', onFocusIn)\n forwardRef.addEventListener('focusout', onFocusOut)\n }\n if (oldForwardRef) {\n oldForwardRef.removeEventListener('keydown', onKeydown)\n oldForwardRef.removeEventListener('focusin', onFocusIn)\n oldForwardRef.removeEventListener('focusout', onFocusOut)\n }\n })\n\n const trapOnFocus = (e: Event) => {\n emit(ON_TRAP_FOCUS_EVT, e)\n }\n const releaseOnFocus = (e: Event) => emit(ON_RELEASE_FOCUS_EVT, e)\n\n const onFocusIn = (e: Event) => {\n const trapContainer = unref(forwardRef)\n if (!trapContainer) return\n\n const target = e.target as HTMLElement | null\n const isFocusedInTrap = target && trapContainer.contains(target)\n if (isFocusedInTrap) emit('focusin', e)\n\n if (focusLayer.paused) return\n\n if (props.trapped) {\n if (isFocusedInTrap) {\n lastFocusAfterTrapped = target\n } else {\n tryFocus(lastFocusAfterTrapped, true)\n }\n }\n }\n\n const onFocusOut = (e: Event) => {\n const trapContainer = unref(forwardRef)\n if (focusLayer.paused || !trapContainer) return\n\n if (props.trapped) {\n const relatedTarget = (e as FocusEvent)\n .relatedTarget as HTMLElement | null\n if (!isNil(relatedTarget) && !trapContainer.contains(relatedTarget)) {\n // Give embedded focus layer time to pause this layer before reclaiming focus\n // And only reclaim focus if it should currently be trapping\n setTimeout(() => {\n if (!focusLayer.paused && props.trapped) {\n tryFocus(lastFocusAfterTrapped, true)\n }\n }, 0)\n }\n } else {\n const target = e.target as HTMLElement | null\n const isFocusedInTrap = target && trapContainer.contains(target)\n if (!isFocusedInTrap) emit('focusout', e)\n }\n }\n\n async function startTrap() {\n // Wait for forwardRef to resolve\n await nextTick()\n const trapContainer = unref(forwardRef)\n if (trapContainer) {\n focusableStack.push(focusLayer)\n const prevFocusedElement = document.activeElement\n lastFocusBeforeTrapped = prevFocusedElement as HTMLElement | null\n const isPrevFocusContained = trapContainer.contains(prevFocusedElement)\n if (!isPrevFocusContained) {\n const focusEvent = new Event(\n FOCUS_AFTER_TRAPPED,\n FOCUS_AFTER_TRAPPED_OPTS\n )\n trapContainer.addEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus)\n trapContainer.dispatchEvent(focusEvent)\n if (!focusEvent.defaultPrevented) {\n nextTick(() => {\n let focusStartEl = props.focusStartEl\n if (!isString(focusStartEl)) {\n tryFocus(focusStartEl)\n if (document.activeElement !== focusStartEl) {\n focusStartEl = 'first'\n }\n }\n if (focusStartEl === 'first') {\n focusFirstDescendant(\n obtainAllFocusableElements(trapContainer),\n true\n )\n }\n if (\n document.activeElement === prevFocusedElement ||\n focusStartEl === 'container'\n ) {\n tryFocus(trapContainer)\n }\n })\n }\n }\n }\n }\n\n function stopTrap() {\n const trapContainer = unref(forwardRef)\n\n if (trapContainer) {\n trapContainer.removeEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus)\n\n const releasedEvent = new Event(\n FOCUS_AFTER_RELEASED,\n FOCUS_AFTER_TRAPPED_OPTS\n )\n trapContainer.addEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus)\n trapContainer.dispatchEvent(releasedEvent)\n\n if (!releasedEvent.defaultPrevented) {\n tryFocus(lastFocusBeforeTrapped ?? document.body, true)\n }\n\n trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, trapOnFocus)\n focusableStack.remove(focusLayer)\n }\n }\n\n onMounted(() => {\n if (props.trapped) {\n startTrap()\n }\n\n watch(\n () => props.trapped,\n (trapped) => {\n if (trapped) {\n startTrap()\n } else {\n stopTrap()\n }\n }\n )\n })\n\n onBeforeUnmount(() => {\n if (props.trapped) {\n stopTrap()\n }\n })\n\n return {\n onKeydown,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ON_TRAP_FOCUS_EVT","ON_RELEASE_FOCUS_EVT","ref","useEscapeKeydown","EVENT_CODE","getEdges","tryFocus","provide","FOCUS_TRAP_INJECTION_KEY","watch","unref","isNil","nextTick","focusableStack","FOCUS_AFTER_TRAPPED","FOCUS_AFTER_TRAPPED_OPTS","isString","focusFirstDescendant","obtainAllFocusableElements","FOCUS_AFTER_RELEASED","onMounted","onBeforeUnmount","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;AAqCA,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,aAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAAA,EACd,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,OAAA;AAAA,IACT,WAAa,EAAA,MAAA;AAAA,IACb,YAAc,EAAA;AAAA,MACZ,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,MACrB,OAAS,EAAA,OAAA;AAAA,KACX;AAAA,GACF;AAAA,EACA,KAAO,EAAA;AAAA,IACLC,wBAAA;AAAA,IACAC,2BAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAA;AAAA,IACA,oBAAA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focus-trap.vue"],"sourcesContent":["<template>\n <slot :handle-keydown=\"onKeydown\" />\n</template>\n<script lang=\"ts\">\nimport {\n defineComponent,\n nextTick,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n unref,\n watch,\n} from 'vue'\nimport { isNil } from 'lodash-unified'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { useEscapeKeydown } from '@element-plus/hooks'\nimport { isString } from '@element-plus/utils'\nimport {\n createFocusOutPreventedEvent,\n focusFirstDescendant,\n focusableStack,\n getEdges,\n isFocusCausedByUserEvent,\n obtainAllFocusableElements,\n tryFocus,\n useFocusReason,\n} from './utils'\nimport {\n FOCUS_AFTER_RELEASED,\n FOCUS_AFTER_TRAPPED,\n FOCUS_AFTER_TRAPPED_OPTS,\n FOCUS_TRAP_INJECTION_KEY,\n ON_RELEASE_FOCUS_EVT,\n ON_TRAP_FOCUS_EVT,\n} from './tokens'\n\nimport type { PropType } from 'vue'\nimport type { FocusLayer } from './utils'\n\nexport default defineComponent({\n name: 'ElFocusTrap',\n inheritAttrs: false,\n props: {\n loop: Boolean,\n trapped: Boolean,\n focusTrapEl: Object as PropType<HTMLElement>,\n focusStartEl: {\n type: [Object, String] as PropType<'container' | 'first' | HTMLElement>,\n default: 'first',\n },\n },\n emits: [\n ON_TRAP_FOCUS_EVT,\n ON_RELEASE_FOCUS_EVT,\n 'focusin',\n 'focusout',\n 'focusout-prevented',\n 'release-requested',\n ],\n setup(props, { emit }) {\n const forwardRef = ref<HTMLElement | undefined>()\n let lastFocusBeforeTrapped: HTMLElement | null\n let lastFocusAfterTrapped: HTMLElement | null\n\n const { focusReason } = useFocusReason()\n\n useEscapeKeydown((event) => {\n if (props.trapped && !focusLayer.paused) {\n emit('release-requested', event)\n }\n })\n\n const focusLayer: FocusLayer = {\n paused: false,\n pause() {\n this.paused = true\n },\n resume() {\n this.paused = false\n },\n }\n\n const onKeydown = (e: KeyboardEvent) => {\n if (!props.loop && !props.trapped) return\n if (focusLayer.paused) return\n\n const { key, altKey, ctrlKey, metaKey, currentTarget, shiftKey } = e\n const { loop } = props\n const isTabbing =\n key === EVENT_CODE.tab && !altKey && !ctrlKey && !metaKey\n\n const currentFocusingEl = document.activeElement\n if (isTabbing && currentFocusingEl) {\n const container = currentTarget as HTMLElement\n const [first, last] = getEdges(container)\n const isTabbable = first && last\n if (!isTabbable) {\n if (currentFocusingEl === container) {\n const focusoutPreventedEvent = createFocusOutPreventedEvent({\n focusReason: focusReason.value,\n })\n emit('focusout-prevented', focusoutPreventedEvent)\n if (!focusoutPreventedEvent.defaultPrevented) {\n e.preventDefault()\n }\n }\n } else {\n if (!shiftKey && currentFocusingEl === last) {\n const focusoutPreventedEvent = createFocusOutPreventedEvent({\n focusReason: focusReason.value,\n })\n emit('focusout-prevented', focusoutPreventedEvent)\n if (!focusoutPreventedEvent.defaultPrevented) {\n e.preventDefault()\n if (loop) tryFocus(first, true)\n }\n } else if (\n shiftKey &&\n [first, container].includes(currentFocusingEl as HTMLElement)\n ) {\n const focusoutPreventedEvent = createFocusOutPreventedEvent({\n focusReason: focusReason.value,\n })\n emit('focusout-prevented', focusoutPreventedEvent)\n if (!focusoutPreventedEvent.defaultPrevented) {\n e.preventDefault()\n if (loop) tryFocus(last, true)\n }\n }\n }\n }\n }\n\n provide(FOCUS_TRAP_INJECTION_KEY, {\n focusTrapRef: forwardRef,\n onKeydown,\n })\n\n watch(\n () => props.focusTrapEl,\n (focusTrapEl) => {\n if (focusTrapEl) {\n forwardRef.value = focusTrapEl\n }\n },\n { immediate: true }\n )\n\n watch([forwardRef], ([forwardRef], [oldForwardRef]) => {\n if (forwardRef) {\n forwardRef.addEventListener('keydown', onKeydown)\n forwardRef.addEventListener('focusin', onFocusIn)\n forwardRef.addEventListener('focusout', onFocusOut)\n }\n if (oldForwardRef) {\n oldForwardRef.removeEventListener('keydown', onKeydown)\n oldForwardRef.removeEventListener('focusin', onFocusIn)\n oldForwardRef.removeEventListener('focusout', onFocusOut)\n }\n })\n\n const trapOnFocus = (e: Event) => {\n emit(ON_TRAP_FOCUS_EVT, e)\n }\n const releaseOnFocus = (e: Event) => emit(ON_RELEASE_FOCUS_EVT, e)\n\n const onFocusIn = (e: FocusEvent) => {\n const trapContainer = unref(forwardRef)\n if (!trapContainer) return\n\n const target = e.target as HTMLElement | null\n const relatedTarget = e.relatedTarget as HTMLElement | null\n const isFocusedInTrap = target && trapContainer.contains(target)\n\n if (!props.trapped) {\n const isPrevFocusedInTrap =\n relatedTarget && trapContainer.contains(relatedTarget)\n if (!isPrevFocusedInTrap) {\n lastFocusBeforeTrapped = relatedTarget\n }\n }\n\n if (isFocusedInTrap) emit('focusin', e)\n\n if (focusLayer.paused) return\n\n if (props.trapped) {\n if (isFocusedInTrap) {\n lastFocusAfterTrapped = target\n } else {\n tryFocus(lastFocusAfterTrapped, true)\n }\n }\n }\n\n const onFocusOut = (e: Event) => {\n const trapContainer = unref(forwardRef)\n if (focusLayer.paused || !trapContainer) return\n\n if (props.trapped) {\n const relatedTarget = (e as FocusEvent)\n .relatedTarget as HTMLElement | null\n if (!isNil(relatedTarget) && !trapContainer.contains(relatedTarget)) {\n // Give embedded focus layer time to pause this layer before reclaiming focus\n // And only reclaim focus if it should currently be trapping\n setTimeout(() => {\n if (!focusLayer.paused && props.trapped) {\n const focusoutPreventedEvent = createFocusOutPreventedEvent({\n focusReason: focusReason.value,\n })\n emit('focusout-prevented', focusoutPreventedEvent)\n if (!focusoutPreventedEvent.defaultPrevented) {\n tryFocus(lastFocusAfterTrapped, true)\n }\n }\n }, 0)\n }\n } else {\n const target = e.target as HTMLElement | null\n const isFocusedInTrap = target && trapContainer.contains(target)\n if (!isFocusedInTrap) emit('focusout', e)\n }\n }\n\n async function startTrap() {\n // Wait for forwardRef to resolve\n await nextTick()\n const trapContainer = unref(forwardRef)\n if (trapContainer) {\n focusableStack.push(focusLayer)\n const prevFocusedElement = trapContainer.contains(\n document.activeElement\n )\n ? lastFocusBeforeTrapped\n : document.activeElement\n lastFocusBeforeTrapped = prevFocusedElement as HTMLElement | null\n const isPrevFocusContained = trapContainer.contains(prevFocusedElement)\n if (!isPrevFocusContained) {\n const focusEvent = new Event(\n FOCUS_AFTER_TRAPPED,\n FOCUS_AFTER_TRAPPED_OPTS\n )\n trapContainer.addEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus)\n trapContainer.dispatchEvent(focusEvent)\n if (!focusEvent.defaultPrevented) {\n nextTick(() => {\n let focusStartEl = props.focusStartEl\n if (!isString(focusStartEl)) {\n tryFocus(focusStartEl)\n if (document.activeElement !== focusStartEl) {\n focusStartEl = 'first'\n }\n }\n if (focusStartEl === 'first') {\n focusFirstDescendant(\n obtainAllFocusableElements(trapContainer),\n true\n )\n }\n if (\n document.activeElement === prevFocusedElement ||\n focusStartEl === 'container'\n ) {\n tryFocus(trapContainer)\n }\n })\n }\n }\n }\n }\n\n function stopTrap() {\n const trapContainer = unref(forwardRef)\n\n if (trapContainer) {\n trapContainer.removeEventListener(FOCUS_AFTER_TRAPPED, trapOnFocus)\n\n const releasedEvent = new CustomEvent(FOCUS_AFTER_RELEASED, {\n ...FOCUS_AFTER_TRAPPED_OPTS,\n detail: {\n focusReason: focusReason.value,\n },\n })\n trapContainer.addEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus)\n trapContainer.dispatchEvent(releasedEvent)\n\n if (\n !releasedEvent.defaultPrevented &&\n (focusReason.value == 'keyboard' || !isFocusCausedByUserEvent())\n ) {\n tryFocus(lastFocusBeforeTrapped ?? document.body, true)\n }\n\n trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, trapOnFocus)\n focusableStack.remove(focusLayer)\n }\n }\n\n onMounted(() => {\n if (props.trapped) {\n startTrap()\n }\n\n watch(\n () => props.trapped,\n (trapped) => {\n if (trapped) {\n startTrap()\n } else {\n stopTrap()\n }\n }\n )\n })\n\n onBeforeUnmount(() => {\n if (props.trapped) {\n stopTrap()\n }\n })\n\n return {\n onKeydown,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ON_TRAP_FOCUS_EVT","ON_RELEASE_FOCUS_EVT","ref","useFocusReason","useEscapeKeydown","EVENT_CODE","getEdges","createFocusOutPreventedEvent","tryFocus","provide","FOCUS_TRAP_INJECTION_KEY","watch","unref","isNil","nextTick","focusableStack","FOCUS_AFTER_TRAPPED","FOCUS_AFTER_TRAPPED_OPTS","isString","focusFirstDescendant","obtainAllFocusableElements","FOCUS_AFTER_RELEASED","isFocusCausedByUserEvent","onMounted","onBeforeUnmount","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;AAwCA,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,aAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAAA,EACd,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,OAAA;AAAA,IACT,WAAa,EAAA,MAAA;AAAA,IACb,YAAc,EAAA;AAAA,MACZ,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,MACrB,OAAS,EAAA,OAAA;AAAA,KACX;AAAA,GACF;AAAA,EACA,KAAO,EAAA;AAAA,IACLC,wBAAA;AAAA,IACAC,2BAAA;AAAA,IACA,SAAA;AAAA,IACA,UAAA;AAAA,IACA,oBAAA;AAAA,IACA,mBAAA;AAAA,GACF;AAAA,EACA,KAAA,CAAM,KAAO,EAAA,EAAE,IAAQ,EAAA,EAAA;AACrB,IAAA,MAAM,aAAaC,OAA6B,EAAA,CAAA;AAChD,IAAI,IAAA,sBAAA,CAAA;AACJ,IAAI,IAAA,qBAAA,CAAA;AAEJ,IAAM,MAAA,EAAE,gBAAgBC,oBAAe,EAAA,CAAA;AAEvC,IAAAC,sBAAA,CAAiB,CAAC,KAAU,KAAA;AAC1B,MAAA,IAAI,KAAM,CAAA,OAAA,IAAW,CAAC,UAAA,CAAW,MAAQ,EAAA;AACvC,QAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAAA,OACjC;AAAA,KACD,CAAA,CAAA;AA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