element-plus 2.3.8 → 2.3.9
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +152 -101
- package/dist/index.full.min.js +14 -14
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +152 -101
- 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/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/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/autocomplete/index.d.ts +3 -3
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/es/components/autocomplete/src/autocomplete2.mjs +1 -0
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/breadcrumb/index.d.ts +2 -6
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -3
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +5 -5
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +8 -6
- package/es/components/cascader/src/cascader.vue.d.ts +4 -3
- package/es/components/cascader/src/cascader2.mjs +8 -1
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +6 -2
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/collapse/index.d.ts +6 -0
- package/es/components/collapse/src/collapse-item.vue.d.ts +3 -0
- package/es/components/collapse-transition/index.d.ts +6 -0
- package/es/components/collapse-transition/src/collapse-transition.mjs +15 -8
- package/es/components/collapse-transition/src/collapse-transition.mjs.map +1 -1
- package/es/components/collapse-transition/src/collapse-transition.vue.d.ts +3 -0
- package/es/components/color-picker/index.d.ts +3 -3
- package/es/components/color-picker/src/color-picker.vue.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/date-picker/index.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +19 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +2 -0
- package/es/components/date-picker/src/date-picker.mjs.map +1 -1
- package/es/components/date-picker/src/instance.d.ts +8 -0
- package/es/components/date-picker/src/instance.mjs +2 -0
- package/es/components/date-picker/src/instance.mjs.map +1 -0
- package/es/components/date-picker/src/panel-utils.d.ts +2 -0
- package/es/components/dialog/index.d.ts +48 -45
- package/es/components/dialog/src/dialog-content.d.ts +4 -4
- package/es/components/dialog/src/dialog-content.mjs +4 -16
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +20 -17
- package/es/components/dialog/src/dialog-content2.mjs +9 -8
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +7 -7
- package/es/components/dialog/src/dialog.mjs +3 -12
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +48 -45
- package/es/components/drawer/index.d.ts +21 -21
- package/es/components/drawer/src/drawer.d.ts +7 -7
- package/es/components/drawer/src/drawer.vue.d.ts +21 -21
- package/es/components/dropdown/index.d.ts +2 -2
- package/es/components/dropdown/src/dropdown.vue.d.ts +2 -2
- package/es/components/focus-trap/src/focus-trap.mjs +1 -1
- package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
- package/es/components/input/index.d.ts +1 -2
- package/es/components/input/index.mjs.map +1 -1
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/instance.d.ts +2 -0
- package/es/components/input/src/instance.mjs +2 -0
- package/es/components/input/src/instance.mjs.map +1 -0
- package/es/components/menu/src/sub-menu.mjs +2 -0
- package/es/components/menu/src/sub-menu.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +5 -5
- package/es/components/popconfirm/index.d.ts +3 -3
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
- package/es/components/popover/index.d.ts +3 -3
- package/es/components/popover/src/popover.vue.d.ts +3 -3
- package/es/components/row/index.d.ts +18 -4
- package/es/components/row/src/row.d.ts +6 -1
- package/es/components/row/src/row.mjs +1 -2
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row.vue.d.ts +18 -4
- package/es/components/row/src/row2.mjs +1 -1
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/select/index.d.ts +5 -5
- package/es/components/select/src/select.mjs +16 -18
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +5 -5
- package/es/components/select/src/useSelect.d.ts +10 -4
- package/es/components/select/src/useSelect.mjs +31 -20
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +4 -4
- package/es/components/select-v2/src/select.vue.d.ts +2 -2
- package/es/components/select-v2/src/useSelect.d.ts +2 -2
- package/es/components/slider/index.d.ts +5 -5
- package/es/components/slider/src/button.vue.d.ts +1 -1
- package/es/components/slider/src/composables/use-slide.d.ts +4 -4
- package/es/components/slider/src/slider.vue.d.ts +5 -5
- package/es/components/switch/index.d.ts +36 -0
- package/es/components/switch/src/switch.d.ts +12 -15
- package/es/components/switch/src/switch.mjs +6 -0
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch.vue.d.ts +36 -0
- package/es/components/switch/src/switch2.mjs +11 -1
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +2 -2
- package/es/components/table/src/table-body/events-helper.mjs +10 -2
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/table/src/table-column/watcher-helper.mjs +1 -0
- package/es/components/table/src/table-column/watcher-helper.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +3 -3
- package/es/components/time-select/index.d.ts +20 -20
- package/es/components/time-select/src/time-select.vue.d.ts +10 -10
- package/es/components/tooltip/index.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +2 -4
- package/es/components/tooltip/src/tooltip2.mjs +3 -2
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/upload/src/upload.d.ts +1 -1
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/hooks/use-focus-controller/index.mjs +0 -1
- package/es/hooks/use-focus-controller/index.mjs.map +1 -1
- package/es/hooks/use-namespace/index.mjs +2 -2
- package/es/hooks/use-namespace/index.mjs.map +1 -1
- package/es/hooks/use-z-index/index.mjs +2 -2
- package/es/hooks/use-z-index/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +3 -3
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/lib/components/autocomplete/src/autocomplete2.js +1 -0
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/breadcrumb/index.d.ts +2 -6
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -3
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +4 -4
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +8 -6
- package/lib/components/cascader/src/cascader.vue.d.ts +4 -3
- package/lib/components/cascader/src/cascader2.js +8 -1
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +5 -1
- package/lib/components/cascader-panel/src/index.js.map +1 -1
- package/lib/components/collapse/index.d.ts +6 -0
- package/lib/components/collapse/src/collapse-item.vue.d.ts +3 -0
- package/lib/components/collapse-transition/index.d.ts +6 -0
- package/lib/components/collapse-transition/src/collapse-transition.js +15 -8
- package/lib/components/collapse-transition/src/collapse-transition.js.map +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue.d.ts +3 -0
- package/lib/components/color-picker/index.d.ts +3 -3
- package/lib/components/color-picker/src/color-picker.vue.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/date-picker/index.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +19 -2
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +2 -0
- package/lib/components/date-picker/src/date-picker.js.map +1 -1
- package/lib/components/date-picker/src/instance.d.ts +8 -0
- package/lib/components/date-picker/src/instance.js +3 -0
- package/lib/components/date-picker/src/instance.js.map +1 -0
- package/lib/components/date-picker/src/panel-utils.d.ts +2 -0
- package/lib/components/dialog/index.d.ts +48 -45
- package/lib/components/dialog/src/dialog-content.d.ts +4 -4
- package/lib/components/dialog/src/dialog-content.js +4 -16
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +20 -17
- package/lib/components/dialog/src/dialog-content2.js +9 -8
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +7 -7
- package/lib/components/dialog/src/dialog.js +3 -12
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +48 -45
- package/lib/components/drawer/index.d.ts +21 -21
- package/lib/components/drawer/src/drawer.d.ts +7 -7
- package/lib/components/drawer/src/drawer.vue.d.ts +21 -21
- package/lib/components/dropdown/index.d.ts +2 -2
- package/lib/components/dropdown/src/dropdown.vue.d.ts +2 -2
- package/lib/components/focus-trap/src/focus-trap.js +1 -1
- package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
- package/lib/components/input/index.d.ts +1 -2
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/instance.d.ts +2 -0
- package/lib/components/input/src/instance.js +3 -0
- package/lib/components/input/src/instance.js.map +1 -0
- package/lib/components/menu/src/sub-menu.js +2 -0
- package/lib/components/menu/src/sub-menu.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +5 -5
- package/lib/components/popconfirm/index.d.ts +3 -3
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
- package/lib/components/popover/index.d.ts +3 -3
- package/lib/components/popover/src/popover.vue.d.ts +3 -3
- package/lib/components/row/index.d.ts +18 -4
- package/lib/components/row/src/row.d.ts +6 -1
- package/lib/components/row/src/row.js +1 -2
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row.vue.d.ts +18 -4
- package/lib/components/row/src/row2.js +1 -1
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/select/index.d.ts +5 -5
- package/lib/components/select/src/select.js +16 -18
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +5 -5
- package/lib/components/select/src/useSelect.d.ts +10 -4
- package/lib/components/select/src/useSelect.js +30 -19
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +4 -4
- package/lib/components/select-v2/src/select.vue.d.ts +2 -2
- package/lib/components/select-v2/src/useSelect.d.ts +2 -2
- package/lib/components/slider/index.d.ts +5 -5
- package/lib/components/slider/src/button.vue.d.ts +1 -1
- package/lib/components/slider/src/composables/use-slide.d.ts +4 -4
- package/lib/components/slider/src/slider.vue.d.ts +5 -5
- package/lib/components/switch/index.d.ts +36 -0
- package/lib/components/switch/src/switch.d.ts +12 -15
- package/lib/components/switch/src/switch.js +6 -0
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +36 -0
- package/lib/components/switch/src/switch2.js +11 -1
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +2 -2
- package/lib/components/table/src/table-body/events-helper.js +10 -2
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/table/src/table-column/watcher-helper.js +1 -0
- package/lib/components/table/src/table-column/watcher-helper.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +3 -3
- package/lib/components/time-select/index.d.ts +20 -20
- package/lib/components/time-select/src/time-select.vue.d.ts +10 -10
- package/lib/components/tooltip/index.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +2 -4
- package/lib/components/tooltip/src/tooltip2.js +3 -2
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/upload/src/upload.d.ts +1 -1
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/hooks/use-focus-controller/index.js +0 -1
- package/lib/hooks/use-focus-controller/index.js.map +1 -1
- package/lib/hooks/use-namespace/index.js +1 -1
- package/lib/hooks/use-namespace/index.js.map +1 -1
- package/lib/hooks/use-z-index/index.js +1 -1
- package/lib/hooks/use-z-index/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-avatar.css +1 -1
- package/theme-chalk/el-input.css +1 -1
- package/theme-chalk/el-menu.css +1 -1
- package/theme-chalk/el-row.css +1 -1
- package/theme-chalk/el-tree.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/avatar.scss +1 -0
- package/theme-chalk/src/input.scss +1 -1
- package/theme-chalk/src/menu.scss +4 -6
- package/theme-chalk/src/row.scss +3 -0
- package/theme-chalk/src/tree.scss +1 -0
- package/web-types.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v2.3.
|
|
1
|
+
/*! Element Plus v2.3.9 */
|
|
2
2
|
|
|
3
3
|
import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, isRef, inject, onUnmounted, h as h$1, Teleport, onBeforeMount, provide, defineComponent, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, cloneVNode, Text as Text$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, vModelText, toHandlers, guardReactiveProps, markRaw, effectScope, triggerRef, resolveDirective, createApp, shallowReactive, render } from 'vue';
|
|
4
4
|
|
|
@@ -9254,7 +9254,7 @@ const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
|
9254
9254
|
};
|
|
9255
9255
|
const namespaceContextKey = Symbol("namespaceContextKey");
|
|
9256
9256
|
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
9257
|
-
const derivedNamespace = namespaceOverrides || inject(namespaceContextKey, ref(defaultNamespace));
|
|
9257
|
+
const derivedNamespace = namespaceOverrides || (getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace));
|
|
9258
9258
|
const namespace = computed$1(() => {
|
|
9259
9259
|
return unref(derivedNamespace) || defaultNamespace;
|
|
9260
9260
|
});
|
|
@@ -9953,7 +9953,7 @@ const zIndex = ref(0);
|
|
|
9953
9953
|
const defaultInitialZIndex = 2e3;
|
|
9954
9954
|
const zIndexContextKey = Symbol("zIndexContextKey");
|
|
9955
9955
|
const useZIndex = (zIndexOverrides) => {
|
|
9956
|
-
const zIndexInjection = zIndexOverrides || inject(zIndexContextKey, void 0);
|
|
9956
|
+
const zIndexInjection = zIndexOverrides || (getCurrentInstance() ? inject(zIndexContextKey, void 0) : void 0);
|
|
9957
9957
|
const initialZIndex = computed$1(() => {
|
|
9958
9958
|
const zIndexFromInjection = unref(zIndexInjection);
|
|
9959
9959
|
return isNumber(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
|
|
@@ -11110,7 +11110,6 @@ function useFocusController(target, { afterFocus, afterBlur } = {}) {
|
|
|
11110
11110
|
};
|
|
11111
11111
|
watch(wrapperRef, (el) => {
|
|
11112
11112
|
if (el) {
|
|
11113
|
-
el.setAttribute("role", "button");
|
|
11114
11113
|
el.setAttribute("tabindex", "-1");
|
|
11115
11114
|
}
|
|
11116
11115
|
});
|
|
@@ -11243,7 +11242,7 @@ const ConfigProvider = defineComponent({
|
|
|
11243
11242
|
|
|
11244
11243
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11245
11244
|
|
|
11246
|
-
const version$1 = "2.3.
|
|
11245
|
+
const version$1 = "2.3.9";
|
|
11247
11246
|
|
|
11248
11247
|
const makeInstaller = (components = []) => {
|
|
11249
11248
|
const install = (app, options) => {
|
|
@@ -15040,7 +15039,7 @@ const _sfc_main$26 = defineComponent({
|
|
|
15040
15039
|
if (!releasedEvent.defaultPrevented && (focusReason.value == "keyboard" || !isFocusCausedByUserEvent() || trapContainer.contains(document.activeElement))) {
|
|
15041
15040
|
tryFocus(lastFocusBeforeTrapped != null ? lastFocusBeforeTrapped : document.body);
|
|
15042
15041
|
}
|
|
15043
|
-
trapContainer.removeEventListener(FOCUS_AFTER_RELEASED,
|
|
15042
|
+
trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus);
|
|
15044
15043
|
focusableStack.remove(focusLayer);
|
|
15045
15044
|
}
|
|
15046
15045
|
}
|
|
@@ -15871,10 +15870,11 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
15871
15870
|
open.value = false;
|
|
15872
15871
|
}
|
|
15873
15872
|
});
|
|
15874
|
-
const isFocusInsideContent = () => {
|
|
15873
|
+
const isFocusInsideContent = (event) => {
|
|
15875
15874
|
var _a, _b;
|
|
15876
15875
|
const popperContent = (_b = (_a = contentRef.value) == null ? void 0 : _a.contentRef) == null ? void 0 : _b.popperContentRef;
|
|
15877
|
-
|
|
15876
|
+
const activeElement = (event == null ? void 0 : event.relatedTarget) || document.activeElement;
|
|
15877
|
+
return popperContent && popperContent.contains(activeElement);
|
|
15878
15878
|
};
|
|
15879
15879
|
onDeactivated(() => open.value && hide());
|
|
15880
15880
|
expose({
|
|
@@ -16261,6 +16261,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
16261
16261
|
trigger: "click",
|
|
16262
16262
|
transition: `${unref(ns).namespace.value}-zoom-in-top`,
|
|
16263
16263
|
persistent: "",
|
|
16264
|
+
role: "listbox",
|
|
16264
16265
|
onBeforeShow: onSuggestionShow,
|
|
16265
16266
|
onHide
|
|
16266
16267
|
}, {
|
|
@@ -16714,7 +16715,6 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
|
16714
16715
|
const instance = getCurrentInstance();
|
|
16715
16716
|
const breadcrumbContext = inject(breadcrumbKey, void 0);
|
|
16716
16717
|
const ns = useNamespace("breadcrumb");
|
|
16717
|
-
const { separator, separatorIcon } = toRefs(breadcrumbContext);
|
|
16718
16718
|
const router = instance.appContext.config.globalProperties.$router;
|
|
16719
16719
|
const link = ref();
|
|
16720
16720
|
const onClick = () => {
|
|
@@ -16723,6 +16723,7 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
|
16723
16723
|
props.replace ? router.replace(props.to) : router.push(props.to);
|
|
16724
16724
|
};
|
|
16725
16725
|
return (_ctx, _cache) => {
|
|
16726
|
+
var _a, _b;
|
|
16726
16727
|
return openBlock(), createElementBlock("span", {
|
|
16727
16728
|
class: normalizeClass(unref(ns).e("item"))
|
|
16728
16729
|
}, [
|
|
@@ -16735,19 +16736,19 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
|
16735
16736
|
}, [
|
|
16736
16737
|
renderSlot(_ctx.$slots, "default")
|
|
16737
16738
|
], 2),
|
|
16738
|
-
unref(separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
16739
|
+
((_a = unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
16739
16740
|
key: 0,
|
|
16740
16741
|
class: normalizeClass(unref(ns).e("separator"))
|
|
16741
16742
|
}, {
|
|
16742
16743
|
default: withCtx(() => [
|
|
16743
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(separatorIcon)))
|
|
16744
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(breadcrumbContext).separatorIcon)))
|
|
16744
16745
|
]),
|
|
16745
16746
|
_: 1
|
|
16746
16747
|
}, 8, ["class"])) : (openBlock(), createElementBlock("span", {
|
|
16747
16748
|
key: 1,
|
|
16748
16749
|
class: normalizeClass(unref(ns).e("separator")),
|
|
16749
16750
|
role: "presentation"
|
|
16750
|
-
}, toDisplayString(unref(separator)
|
|
16751
|
+
}, toDisplayString((_b = unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
|
|
16751
16752
|
], 2);
|
|
16752
16753
|
};
|
|
16753
16754
|
}
|
|
@@ -22946,7 +22947,11 @@ const _sfc_main$1E = defineComponent({
|
|
|
22946
22947
|
expandingNode.value = null;
|
|
22947
22948
|
}
|
|
22948
22949
|
oldNodes.forEach((node) => node.doCheck(false));
|
|
22949
|
-
|
|
22950
|
+
if (props.props.multiple) {
|
|
22951
|
+
reactive(newNodes).forEach((node) => node.doCheck(true));
|
|
22952
|
+
} else {
|
|
22953
|
+
newNodes.forEach((node) => node.doCheck(true));
|
|
22954
|
+
}
|
|
22950
22955
|
checkedNodes.value = newNodes;
|
|
22951
22956
|
nextTick(scrollToExpandingNode);
|
|
22952
22957
|
};
|
|
@@ -23590,15 +23595,22 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
23590
23595
|
return;
|
|
23591
23596
|
val ? handleFilter() : hideSuggestionPanel();
|
|
23592
23597
|
};
|
|
23598
|
+
const getInputInnerHeight = (inputInner) => Number.parseFloat(useCssVar(nsInput.cssVarName("input-height"), inputInner).value) - 2;
|
|
23593
23599
|
watch(filtering, updatePopperPosition);
|
|
23594
23600
|
watch([checkedNodes, isDisabled], calculatePresentTags);
|
|
23595
23601
|
watch(presentTags, () => {
|
|
23596
23602
|
nextTick(() => updateStyle());
|
|
23597
23603
|
});
|
|
23604
|
+
watch(realSize, async () => {
|
|
23605
|
+
await nextTick();
|
|
23606
|
+
const inputInner = input.value.input;
|
|
23607
|
+
inputInitialHeight = getInputInnerHeight(inputInner) || inputInitialHeight;
|
|
23608
|
+
updateStyle();
|
|
23609
|
+
});
|
|
23598
23610
|
watch(presentText, syncPresentTextValue, { immediate: true });
|
|
23599
23611
|
onMounted(() => {
|
|
23600
23612
|
const inputInner = input.value.input;
|
|
23601
|
-
const inputInnerHeight =
|
|
23613
|
+
const inputInnerHeight = getInputInnerHeight(inputInner);
|
|
23602
23614
|
inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
|
|
23603
23615
|
useResizeObserver(inputInner, updateStyle);
|
|
23604
23616
|
});
|
|
@@ -23902,8 +23914,7 @@ const rowProps = buildProps({
|
|
|
23902
23914
|
},
|
|
23903
23915
|
align: {
|
|
23904
23916
|
type: String,
|
|
23905
|
-
values: RowAlign
|
|
23906
|
-
default: "top"
|
|
23917
|
+
values: RowAlign
|
|
23907
23918
|
}
|
|
23908
23919
|
});
|
|
23909
23920
|
|
|
@@ -23931,7 +23942,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
23931
23942
|
const rowKls = computed$1(() => [
|
|
23932
23943
|
ns.b(),
|
|
23933
23944
|
ns.is(`justify-${props.justify}`, props.justify !== "start"),
|
|
23934
|
-
ns.is(`align-${props.align}`, props.align
|
|
23945
|
+
ns.is(`align-${props.align}`, !!props.align)
|
|
23935
23946
|
]);
|
|
23936
23947
|
return (_ctx, _cache) => {
|
|
23937
23948
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
@@ -24144,6 +24155,12 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
24144
24155
|
...__default__$_,
|
|
24145
24156
|
setup(__props) {
|
|
24146
24157
|
const ns = useNamespace("collapse-transition");
|
|
24158
|
+
const reset = (el) => {
|
|
24159
|
+
el.style.maxHeight = "";
|
|
24160
|
+
el.style.overflow = el.dataset.oldOverflow;
|
|
24161
|
+
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
24162
|
+
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
24163
|
+
};
|
|
24147
24164
|
const on = {
|
|
24148
24165
|
beforeEnter(el) {
|
|
24149
24166
|
if (!el.dataset)
|
|
@@ -24158,19 +24175,20 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
24158
24175
|
el.dataset.oldOverflow = el.style.overflow;
|
|
24159
24176
|
if (el.scrollHeight !== 0) {
|
|
24160
24177
|
el.style.maxHeight = `${el.scrollHeight}px`;
|
|
24161
|
-
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
24162
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
24163
24178
|
} else {
|
|
24164
24179
|
el.style.maxHeight = 0;
|
|
24165
|
-
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
24166
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
24167
24180
|
}
|
|
24181
|
+
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
24182
|
+
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
24168
24183
|
el.style.overflow = "hidden";
|
|
24169
24184
|
},
|
|
24170
24185
|
afterEnter(el) {
|
|
24171
24186
|
el.style.maxHeight = "";
|
|
24172
24187
|
el.style.overflow = el.dataset.oldOverflow;
|
|
24173
24188
|
},
|
|
24189
|
+
enterCancelled(el) {
|
|
24190
|
+
reset(el);
|
|
24191
|
+
},
|
|
24174
24192
|
beforeLeave(el) {
|
|
24175
24193
|
if (!el.dataset)
|
|
24176
24194
|
el.dataset = {};
|
|
@@ -24188,10 +24206,10 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
24188
24206
|
}
|
|
24189
24207
|
},
|
|
24190
24208
|
afterLeave(el) {
|
|
24191
|
-
el
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
el
|
|
24209
|
+
reset(el);
|
|
24210
|
+
},
|
|
24211
|
+
leaveCancelled(el) {
|
|
24212
|
+
reset(el);
|
|
24195
24213
|
}
|
|
24196
24214
|
};
|
|
24197
24215
|
return (_ctx, _cache) => {
|
|
@@ -26814,6 +26832,16 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
26814
26832
|
const footerVisible = computed$1(() => {
|
|
26815
26833
|
return showTime.value || selectionMode.value === "dates";
|
|
26816
26834
|
});
|
|
26835
|
+
const disabledConfirm = computed$1(() => {
|
|
26836
|
+
if (!disabledDate)
|
|
26837
|
+
return false;
|
|
26838
|
+
if (!props.parsedValue)
|
|
26839
|
+
return true;
|
|
26840
|
+
if (isArray$1(props.parsedValue)) {
|
|
26841
|
+
return disabledDate(props.parsedValue[0].toDate());
|
|
26842
|
+
}
|
|
26843
|
+
return disabledDate(props.parsedValue.toDate());
|
|
26844
|
+
});
|
|
26817
26845
|
const onConfirm = () => {
|
|
26818
26846
|
if (selectionMode.value === "dates") {
|
|
26819
26847
|
emit(props.parsedValue);
|
|
@@ -26828,6 +26856,11 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
26828
26856
|
emit(result);
|
|
26829
26857
|
}
|
|
26830
26858
|
};
|
|
26859
|
+
const disabledNow = computed$1(() => {
|
|
26860
|
+
if (!disabledDate)
|
|
26861
|
+
return false;
|
|
26862
|
+
return disabledDate(dayjs().locale(lang.value).toDate());
|
|
26863
|
+
});
|
|
26831
26864
|
const changeToNow = () => {
|
|
26832
26865
|
const now = dayjs().locale(lang.value);
|
|
26833
26866
|
const nowDate = now.toDate();
|
|
@@ -27250,26 +27283,28 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
27250
27283
|
text: "",
|
|
27251
27284
|
size: "small",
|
|
27252
27285
|
class: normalizeClass(unref(ppNs).e("link-btn")),
|
|
27286
|
+
disabled: unref(disabledNow),
|
|
27253
27287
|
onClick: changeToNow
|
|
27254
27288
|
}, {
|
|
27255
27289
|
default: withCtx(() => [
|
|
27256
27290
|
createTextVNode(toDisplayString(unref(t)("el.datepicker.now")), 1)
|
|
27257
27291
|
]),
|
|
27258
27292
|
_: 1
|
|
27259
|
-
}, 8, ["class"]), [
|
|
27293
|
+
}, 8, ["class", "disabled"]), [
|
|
27260
27294
|
[vShow, unref(selectionMode) !== "dates"]
|
|
27261
27295
|
]),
|
|
27262
27296
|
createVNode(unref(ElButton), {
|
|
27263
27297
|
plain: "",
|
|
27264
27298
|
size: "small",
|
|
27265
27299
|
class: normalizeClass(unref(ppNs).e("link-btn")),
|
|
27300
|
+
disabled: unref(disabledConfirm),
|
|
27266
27301
|
onClick: onConfirm
|
|
27267
27302
|
}, {
|
|
27268
27303
|
default: withCtx(() => [
|
|
27269
27304
|
createTextVNode(toDisplayString(unref(t)("el.datepicker.confirm")), 1)
|
|
27270
27305
|
]),
|
|
27271
27306
|
_: 1
|
|
27272
|
-
}, 8, ["class"])
|
|
27307
|
+
}, 8, ["class", "disabled"])
|
|
27273
27308
|
], 2), [
|
|
27274
27309
|
[vShow, unref(footerVisible) && currentView.value === "date"]
|
|
27275
27310
|
])
|
|
@@ -28764,14 +28799,8 @@ const ElOverlay = Overlay$1;
|
|
|
28764
28799
|
const dialogInjectionKey = Symbol("dialogInjectionKey");
|
|
28765
28800
|
|
|
28766
28801
|
const dialogContentProps = buildProps({
|
|
28767
|
-
center:
|
|
28768
|
-
|
|
28769
|
-
default: false
|
|
28770
|
-
},
|
|
28771
|
-
alignCenter: {
|
|
28772
|
-
type: Boolean,
|
|
28773
|
-
default: false
|
|
28774
|
-
},
|
|
28802
|
+
center: Boolean,
|
|
28803
|
+
alignCenter: Boolean,
|
|
28775
28804
|
closeIcon: {
|
|
28776
28805
|
type: iconPropType
|
|
28777
28806
|
},
|
|
@@ -28779,14 +28808,8 @@ const dialogContentProps = buildProps({
|
|
|
28779
28808
|
type: String,
|
|
28780
28809
|
default: ""
|
|
28781
28810
|
},
|
|
28782
|
-
draggable:
|
|
28783
|
-
|
|
28784
|
-
default: false
|
|
28785
|
-
},
|
|
28786
|
-
fullscreen: {
|
|
28787
|
-
type: Boolean,
|
|
28788
|
-
default: false
|
|
28789
|
-
},
|
|
28811
|
+
draggable: Boolean,
|
|
28812
|
+
fullscreen: Boolean,
|
|
28790
28813
|
showClose: {
|
|
28791
28814
|
type: Boolean,
|
|
28792
28815
|
default: true
|
|
@@ -28813,20 +28836,21 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
28813
28836
|
const { Close } = CloseComponents;
|
|
28814
28837
|
const { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey);
|
|
28815
28838
|
const { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY);
|
|
28839
|
+
const dialogKls = computed$1(() => [
|
|
28840
|
+
ns.b(),
|
|
28841
|
+
ns.is("fullscreen", props.fullscreen),
|
|
28842
|
+
ns.is("draggable", props.draggable),
|
|
28843
|
+
ns.is("align-center", props.alignCenter),
|
|
28844
|
+
{ [ns.m("center")]: props.center },
|
|
28845
|
+
props.customClass
|
|
28846
|
+
]);
|
|
28816
28847
|
const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
|
|
28817
28848
|
const draggable = computed$1(() => props.draggable);
|
|
28818
28849
|
useDraggable(dialogRef, headerRef, draggable);
|
|
28819
28850
|
return (_ctx, _cache) => {
|
|
28820
28851
|
return openBlock(), createElementBlock("div", {
|
|
28821
28852
|
ref: unref(composedDialogRef),
|
|
28822
|
-
class: normalizeClass(
|
|
28823
|
-
unref(ns).b(),
|
|
28824
|
-
unref(ns).is("fullscreen", _ctx.fullscreen),
|
|
28825
|
-
unref(ns).is("draggable", unref(draggable)),
|
|
28826
|
-
unref(ns).is("align-center", _ctx.alignCenter),
|
|
28827
|
-
{ [unref(ns).m("center")]: _ctx.center },
|
|
28828
|
-
_ctx.customClass
|
|
28829
|
-
]),
|
|
28853
|
+
class: normalizeClass(unref(dialogKls)),
|
|
28830
28854
|
style: normalizeStyle(unref(style)),
|
|
28831
28855
|
tabindex: "-1"
|
|
28832
28856
|
}, [
|
|
@@ -28878,17 +28902,11 @@ var ElDialogContent = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__file", "dia
|
|
|
28878
28902
|
|
|
28879
28903
|
const dialogProps = buildProps({
|
|
28880
28904
|
...dialogContentProps,
|
|
28881
|
-
appendToBody:
|
|
28882
|
-
type: Boolean,
|
|
28883
|
-
default: false
|
|
28884
|
-
},
|
|
28905
|
+
appendToBody: Boolean,
|
|
28885
28906
|
beforeClose: {
|
|
28886
28907
|
type: definePropType(Function)
|
|
28887
28908
|
},
|
|
28888
|
-
destroyOnClose:
|
|
28889
|
-
type: Boolean,
|
|
28890
|
-
default: false
|
|
28891
|
-
},
|
|
28909
|
+
destroyOnClose: Boolean,
|
|
28892
28910
|
closeOnClickModal: {
|
|
28893
28911
|
type: Boolean,
|
|
28894
28912
|
default: true
|
|
@@ -28916,10 +28934,7 @@ const dialogProps = buildProps({
|
|
|
28916
28934
|
top: {
|
|
28917
28935
|
type: String
|
|
28918
28936
|
},
|
|
28919
|
-
modelValue:
|
|
28920
|
-
type: Boolean,
|
|
28921
|
-
default: false
|
|
28922
|
-
},
|
|
28937
|
+
modelValue: Boolean,
|
|
28923
28938
|
modalClass: String,
|
|
28924
28939
|
width: {
|
|
28925
28940
|
type: [String, Number]
|
|
@@ -32206,6 +32221,8 @@ var SubMenu = defineComponent({
|
|
|
32206
32221
|
"left-start"
|
|
32207
32222
|
] : [
|
|
32208
32223
|
"right-start",
|
|
32224
|
+
"right",
|
|
32225
|
+
"right-end",
|
|
32209
32226
|
"left-start",
|
|
32210
32227
|
"bottom-start",
|
|
32211
32228
|
"bottom-end",
|
|
@@ -33310,10 +33327,10 @@ function useSelectStates(props) {
|
|
|
33310
33327
|
menuVisibleOnFocus: false,
|
|
33311
33328
|
isOnComposition: false,
|
|
33312
33329
|
prefixWidth: 11,
|
|
33313
|
-
mouseEnter: false
|
|
33330
|
+
mouseEnter: false,
|
|
33331
|
+
focused: false
|
|
33314
33332
|
});
|
|
33315
33333
|
}
|
|
33316
|
-
let ignoreFocusEvent = false;
|
|
33317
33334
|
const useSelect$3 = (props, states, ctx) => {
|
|
33318
33335
|
const { t } = useLocale();
|
|
33319
33336
|
const ns = useNamespace("select");
|
|
@@ -33347,6 +33364,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33347
33364
|
});
|
|
33348
33365
|
const iconComponent = computed$1(() => props.remote && props.filterable && !props.remoteShowSuffix ? "" : props.suffixIcon);
|
|
33349
33366
|
const iconReverse = computed$1(() => ns.is("reverse", iconComponent.value && states.visible && props.suffixTransition));
|
|
33367
|
+
const showStatusIconAndState = computed$1(() => (form == null ? void 0 : form.statusIcon) && (formItem == null ? void 0 : formItem.validateState) && ValidateComponentsMap[formItem == null ? void 0 : formItem.validateState]);
|
|
33350
33368
|
const debounce$1 = computed$1(() => props.remote ? 300 : 0);
|
|
33351
33369
|
const emptyText = computed$1(() => {
|
|
33352
33370
|
if (props.loading) {
|
|
@@ -33440,7 +33458,6 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33440
33458
|
props.remoteMethod("");
|
|
33441
33459
|
}
|
|
33442
33460
|
}
|
|
33443
|
-
input.value && input.value.blur();
|
|
33444
33461
|
states.query = "";
|
|
33445
33462
|
states.previousQuery = null;
|
|
33446
33463
|
states.selectedLabel = "";
|
|
@@ -33713,6 +33730,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33713
33730
|
ctx.emit("remove-tag", tag.value);
|
|
33714
33731
|
}
|
|
33715
33732
|
event.stopPropagation();
|
|
33733
|
+
focus();
|
|
33716
33734
|
};
|
|
33717
33735
|
const deleteSelected = (event) => {
|
|
33718
33736
|
event.stopPropagation();
|
|
@@ -33728,6 +33746,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33728
33746
|
states.hoverIndex = -1;
|
|
33729
33747
|
states.visible = false;
|
|
33730
33748
|
ctx.emit("clear");
|
|
33749
|
+
focus();
|
|
33731
33750
|
};
|
|
33732
33751
|
const handleOptionSelect = (option) => {
|
|
33733
33752
|
var _a;
|
|
@@ -33844,16 +33863,23 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33844
33863
|
nextTick(() => scrollToOption(states.selected));
|
|
33845
33864
|
};
|
|
33846
33865
|
const handleFocus = (event) => {
|
|
33847
|
-
if (!
|
|
33866
|
+
if (!states.focused) {
|
|
33848
33867
|
if (props.automaticDropdown || props.filterable) {
|
|
33849
33868
|
if (props.filterable && !states.visible) {
|
|
33850
33869
|
states.menuVisibleOnFocus = true;
|
|
33851
33870
|
}
|
|
33852
33871
|
states.visible = true;
|
|
33853
33872
|
}
|
|
33873
|
+
states.focused = true;
|
|
33854
33874
|
ctx.emit("focus", event);
|
|
33875
|
+
}
|
|
33876
|
+
};
|
|
33877
|
+
const focus = () => {
|
|
33878
|
+
var _a, _b;
|
|
33879
|
+
if (states.visible) {
|
|
33880
|
+
(_a = input.value || reference.value) == null ? void 0 : _a.focus();
|
|
33855
33881
|
} else {
|
|
33856
|
-
|
|
33882
|
+
(_b = reference.value) == null ? void 0 : _b.focus();
|
|
33857
33883
|
}
|
|
33858
33884
|
};
|
|
33859
33885
|
const blur = () => {
|
|
@@ -33863,15 +33889,13 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33863
33889
|
(_c = (_b = iOSInput.value) == null ? void 0 : _b.blur) == null ? void 0 : _c.call(_b);
|
|
33864
33890
|
};
|
|
33865
33891
|
const handleBlur = (event) => {
|
|
33866
|
-
|
|
33867
|
-
|
|
33868
|
-
|
|
33869
|
-
|
|
33870
|
-
|
|
33871
|
-
|
|
33872
|
-
|
|
33873
|
-
ctx.emit("blur", event);
|
|
33874
|
-
});
|
|
33892
|
+
var _a, _b, _c;
|
|
33893
|
+
if (((_a = tooltipRef.value) == null ? void 0 : _a.isFocusInsideContent(event)) || ((_b = tagTooltipRef.value) == null ? void 0 : _b.isFocusInsideContent(event)) || ((_c = selectWrapper.value) == null ? void 0 : _c.contains(event.relatedTarget))) {
|
|
33894
|
+
return;
|
|
33895
|
+
}
|
|
33896
|
+
states.visible && handleClose();
|
|
33897
|
+
states.focused = false;
|
|
33898
|
+
ctx.emit("blur", event);
|
|
33875
33899
|
};
|
|
33876
33900
|
const handleClearClick = (event) => {
|
|
33877
33901
|
deleteSelected(event);
|
|
@@ -33887,7 +33911,6 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33887
33911
|
}
|
|
33888
33912
|
};
|
|
33889
33913
|
const toggleMenu = (e) => {
|
|
33890
|
-
var _a;
|
|
33891
33914
|
if (e && !states.mouseEnter) {
|
|
33892
33915
|
return;
|
|
33893
33916
|
}
|
|
@@ -33899,9 +33922,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33899
33922
|
states.visible = !states.visible;
|
|
33900
33923
|
}
|
|
33901
33924
|
}
|
|
33902
|
-
|
|
33903
|
-
(_a = input.value || reference.value) == null ? void 0 : _a.focus();
|
|
33904
|
-
}
|
|
33925
|
+
focus();
|
|
33905
33926
|
}
|
|
33906
33927
|
};
|
|
33907
33928
|
const selectOption = () => {
|
|
@@ -33958,6 +33979,10 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33958
33979
|
deleteTag(event, tag);
|
|
33959
33980
|
(_b = (_a = tagTooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
|
|
33960
33981
|
};
|
|
33982
|
+
const selectTagsStyle = computed$1(() => ({
|
|
33983
|
+
maxWidth: `${unref(states.inputWidth) - 32 - (showStatusIconAndState.value ? 22 : 0)}px`,
|
|
33984
|
+
width: "100%"
|
|
33985
|
+
}));
|
|
33961
33986
|
return {
|
|
33962
33987
|
optionList,
|
|
33963
33988
|
optionsArray,
|
|
@@ -33988,6 +34013,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
33988
34013
|
onOptionDestroy,
|
|
33989
34014
|
handleMenuEnter,
|
|
33990
34015
|
handleFocus,
|
|
34016
|
+
focus,
|
|
33991
34017
|
blur,
|
|
33992
34018
|
handleBlur,
|
|
33993
34019
|
handleClearClick,
|
|
@@ -34003,6 +34029,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
34003
34029
|
groupQueryChange,
|
|
34004
34030
|
showTagList,
|
|
34005
34031
|
collapseTagList,
|
|
34032
|
+
selectTagsStyle,
|
|
34006
34033
|
reference,
|
|
34007
34034
|
input,
|
|
34008
34035
|
iOSInput,
|
|
@@ -34222,6 +34249,7 @@ const _sfc_main$O = defineComponent({
|
|
|
34222
34249
|
onOptionDestroy,
|
|
34223
34250
|
handleMenuEnter,
|
|
34224
34251
|
handleFocus,
|
|
34252
|
+
focus,
|
|
34225
34253
|
blur,
|
|
34226
34254
|
handleBlur,
|
|
34227
34255
|
handleClearClick,
|
|
@@ -34246,9 +34274,9 @@ const _sfc_main$O = defineComponent({
|
|
|
34246
34274
|
handleMouseEnter,
|
|
34247
34275
|
handleMouseLeave,
|
|
34248
34276
|
showTagList,
|
|
34249
|
-
collapseTagList
|
|
34277
|
+
collapseTagList,
|
|
34278
|
+
selectTagsStyle
|
|
34250
34279
|
} = useSelect$3(props, states, ctx);
|
|
34251
|
-
const { focus } = useFocus(reference);
|
|
34252
34280
|
const {
|
|
34253
34281
|
inputWidth,
|
|
34254
34282
|
selected,
|
|
@@ -34299,10 +34327,6 @@ const _sfc_main$O = defineComponent({
|
|
|
34299
34327
|
const scrollbarKls = computed$1(() => [
|
|
34300
34328
|
nsSelect.is("empty", !props.allowCreate && Boolean(unref(query)) && unref(filteredOptionsCount) === 0)
|
|
34301
34329
|
]);
|
|
34302
|
-
const selectTagsStyle = computed$1(() => ({
|
|
34303
|
-
maxWidth: `${unref(inputWidth) - 32}px`,
|
|
34304
|
-
width: "100%"
|
|
34305
|
-
}));
|
|
34306
34330
|
const tagTextStyle = computed$1(() => {
|
|
34307
34331
|
const maxWidth = unref(inputWidth) > 123 ? unref(inputWidth) - 123 : unref(inputWidth) - 75;
|
|
34308
34332
|
return { maxWidth: `${maxWidth}px` };
|
|
@@ -34406,6 +34430,7 @@ const _sfc_main$O = defineComponent({
|
|
|
34406
34430
|
handleComposition,
|
|
34407
34431
|
handleMenuEnter,
|
|
34408
34432
|
handleFocus,
|
|
34433
|
+
focus,
|
|
34409
34434
|
blur,
|
|
34410
34435
|
handleBlur,
|
|
34411
34436
|
handleClearClick,
|
|
@@ -34416,7 +34441,6 @@ const _sfc_main$O = defineComponent({
|
|
|
34416
34441
|
getValueKey,
|
|
34417
34442
|
navigateOptions,
|
|
34418
34443
|
dropMenuVisible,
|
|
34419
|
-
focus,
|
|
34420
34444
|
reference,
|
|
34421
34445
|
input,
|
|
34422
34446
|
iOSInput,
|
|
@@ -34459,9 +34483,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34459
34483
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
34460
34484
|
ref: "selectWrapper",
|
|
34461
34485
|
class: normalizeClass(_ctx.wrapperKls),
|
|
34462
|
-
onMouseenter: _cache[
|
|
34463
|
-
onMouseleave: _cache[
|
|
34464
|
-
onClick: _cache[
|
|
34486
|
+
onMouseenter: _cache[22] || (_cache[22] = (...args) => _ctx.handleMouseEnter && _ctx.handleMouseEnter(...args)),
|
|
34487
|
+
onMouseleave: _cache[23] || (_cache[23] = (...args) => _ctx.handleMouseLeave && _ctx.handleMouseLeave(...args)),
|
|
34488
|
+
onClick: _cache[24] || (_cache[24] = withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"]))
|
|
34465
34489
|
}, [
|
|
34466
34490
|
createVNode(_component_el_tooltip, {
|
|
34467
34491
|
ref: "tooltipRef",
|
|
@@ -34483,14 +34507,16 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34483
34507
|
default: withCtx(() => [
|
|
34484
34508
|
createElementVNode("div", {
|
|
34485
34509
|
class: "select-trigger",
|
|
34486
|
-
onMouseenter: _cache[
|
|
34487
|
-
onMouseleave: _cache[
|
|
34510
|
+
onMouseenter: _cache[20] || (_cache[20] = ($event) => _ctx.inputHovering = true),
|
|
34511
|
+
onMouseleave: _cache[21] || (_cache[21] = ($event) => _ctx.inputHovering = false)
|
|
34488
34512
|
}, [
|
|
34489
34513
|
_ctx.multiple ? (openBlock(), createElementBlock("div", {
|
|
34490
34514
|
key: 0,
|
|
34491
34515
|
ref: "tags",
|
|
34516
|
+
tabindex: "-1",
|
|
34492
34517
|
class: normalizeClass(_ctx.tagsKls),
|
|
34493
|
-
style: normalizeStyle(_ctx.selectTagsStyle)
|
|
34518
|
+
style: normalizeStyle(_ctx.selectTagsStyle),
|
|
34519
|
+
onClick: _cache[15] || (_cache[15] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
34494
34520
|
}, [
|
|
34495
34521
|
_ctx.collapseTags && _ctx.selected.length ? (openBlock(), createBlock(Transition, {
|
|
34496
34522
|
key: 0,
|
|
@@ -34659,7 +34685,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34659
34685
|
id: _ctx.id,
|
|
34660
34686
|
ref: "reference",
|
|
34661
34687
|
modelValue: _ctx.selectedLabel,
|
|
34662
|
-
"onUpdate:modelValue": _cache[
|
|
34688
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => _ctx.selectedLabel = $event),
|
|
34663
34689
|
type: "text",
|
|
34664
34690
|
placeholder: typeof _ctx.currentPlaceholder === "function" ? _ctx.currentPlaceholder() : _ctx.currentPlaceholder,
|
|
34665
34691
|
name: _ctx.name,
|
|
@@ -34678,11 +34704,11 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34678
34704
|
onCompositionupdate: _ctx.handleComposition,
|
|
34679
34705
|
onCompositionend: _ctx.handleComposition,
|
|
34680
34706
|
onKeydown: [
|
|
34681
|
-
_cache[
|
|
34682
|
-
_cache[
|
|
34707
|
+
_cache[17] || (_cache[17] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"])),
|
|
34708
|
+
_cache[18] || (_cache[18] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"])),
|
|
34683
34709
|
withKeys(withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
|
|
34684
34710
|
withKeys(_ctx.handleKeydownEscape, ["esc"]),
|
|
34685
|
-
_cache[
|
|
34711
|
+
_cache[19] || (_cache[19] = withKeys(($event) => _ctx.visible = false, ["tab"]))
|
|
34686
34712
|
]
|
|
34687
34713
|
}, createSlots({
|
|
34688
34714
|
suffix: withCtx(() => [
|
|
@@ -41650,6 +41676,12 @@ const switchProps = buildProps({
|
|
|
41650
41676
|
type: Boolean,
|
|
41651
41677
|
default: false
|
|
41652
41678
|
},
|
|
41679
|
+
inactiveActionIcon: {
|
|
41680
|
+
type: iconPropType
|
|
41681
|
+
},
|
|
41682
|
+
activeActionIcon: {
|
|
41683
|
+
type: iconPropType
|
|
41684
|
+
},
|
|
41653
41685
|
activeIcon: {
|
|
41654
41686
|
type: iconPropType
|
|
41655
41687
|
},
|
|
@@ -41925,7 +41957,17 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
41925
41957
|
createVNode(unref(loading_default))
|
|
41926
41958
|
]),
|
|
41927
41959
|
_: 1
|
|
41928
|
-
}, 8, ["class"])) :
|
|
41960
|
+
}, 8, ["class"])) : _ctx.activeActionIcon && unref(checked) ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
|
|
41961
|
+
default: withCtx(() => [
|
|
41962
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.activeActionIcon)))
|
|
41963
|
+
]),
|
|
41964
|
+
_: 1
|
|
41965
|
+
})) : _ctx.inactiveActionIcon && !unref(checked) ? (openBlock(), createBlock(unref(ElIcon), { key: 2 }, {
|
|
41966
|
+
default: withCtx(() => [
|
|
41967
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveActionIcon)))
|
|
41968
|
+
]),
|
|
41969
|
+
_: 1
|
|
41970
|
+
})) : createCommentVNode("v-if", true)
|
|
41929
41971
|
], 2)
|
|
41930
41972
|
], 6),
|
|
41931
41973
|
!_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (openBlock(), createElementBlock("span", {
|
|
@@ -44458,8 +44500,16 @@ function useEvents(props) {
|
|
|
44458
44500
|
const range = document.createRange();
|
|
44459
44501
|
range.setStart(cellChild, 0);
|
|
44460
44502
|
range.setEnd(cellChild, cellChild.childNodes.length);
|
|
44461
|
-
|
|
44462
|
-
|
|
44503
|
+
let rangeWidth = range.getBoundingClientRect().width;
|
|
44504
|
+
let rangeHeight = range.getBoundingClientRect().height;
|
|
44505
|
+
const offsetWidth = rangeWidth - Math.floor(rangeWidth);
|
|
44506
|
+
if (offsetWidth < 1e-3) {
|
|
44507
|
+
rangeWidth = Math.floor(rangeWidth);
|
|
44508
|
+
}
|
|
44509
|
+
const offsetHeight = rangeHeight - Math.floor(rangeHeight);
|
|
44510
|
+
if (offsetHeight < 1e-3) {
|
|
44511
|
+
rangeHeight = Math.floor(rangeHeight);
|
|
44512
|
+
}
|
|
44463
44513
|
const { top, left, right, bottom } = getPadding(cellChild);
|
|
44464
44514
|
const horizontalPadding = left + right;
|
|
44465
44515
|
const verticalPadding = top + bottom;
|
|
@@ -46071,6 +46121,7 @@ function useWatcher(owner, props_) {
|
|
|
46071
46121
|
"label",
|
|
46072
46122
|
"filters",
|
|
46073
46123
|
"filterMultiple",
|
|
46124
|
+
"filteredValue",
|
|
46074
46125
|
"sortable",
|
|
46075
46126
|
"index",
|
|
46076
46127
|
"formatter",
|
package/dist/locale/af.js
CHANGED