element-plus 2.3.8 → 2.3.10
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/README.md +5 -8
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +300 -224
- package/dist/index.full.min.js +21 -21
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +21 -21
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +300 -224
- 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 +4 -4
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +10 -11
- package/es/components/autocomplete/src/autocomplete2.mjs +3 -3
- 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/card/index.d.ts +2 -0
- package/es/components/card/src/card.d.ts +1 -0
- package/es/components/card/src/card.mjs +1 -0
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card.vue.d.ts +2 -0
- package/es/components/card/src/card2.mjs +1 -1
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +16 -6
- package/es/components/cascader/src/cascader.d.ts +1 -0
- package/es/components/cascader/src/cascader.mjs +4 -0
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +8 -3
- package/es/components/cascader/src/cascader2.mjs +11 -4
- 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/checkbox/src/checkbox-button.mjs +10 -6
- package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +10 -6
- package/es/components/checkbox/src/checkbox2.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 +25 -6
- 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 +3 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs +7 -13
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
- 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 +4 -2
- package/es/components/dialog/index.d.ts +60 -45
- package/es/components/dialog/src/dialog-content.d.ts +5 -4
- package/es/components/dialog/src/dialog-content.mjs +8 -16
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +24 -17
- package/es/components/dialog/src/dialog-content2.mjs +16 -13
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +9 -7
- package/es/components/dialog/src/dialog.mjs +7 -12
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +60 -45
- package/es/components/dialog/src/dialog2.mjs +2 -1
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +27 -21
- package/es/components/drawer/src/drawer.d.ts +9 -7
- package/es/components/drawer/src/drawer.mjs +4 -0
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +27 -21
- package/es/components/drawer/src/drawer2.mjs +2 -1
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +2 -2
- package/es/components/dropdown/src/dropdown.vue.d.ts +2 -2
- package/es/components/dropdown/src/dropdown2.mjs +6 -6
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- 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/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-label-wrap.mjs +3 -2
- package/es/components/form/src/form-label-wrap.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/input-number/src/input-number2.mjs +3 -3
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- 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 +27 -54
- 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/radio/src/radio-button2.mjs +5 -3
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +5 -3
- package/es/components/radio/src/radio2.mjs.map +1 -1
- 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 +29 -62
- package/es/components/select/src/option-group.mjs +1 -4
- package/es/components/select/src/option-group.mjs.map +1 -1
- package/es/components/select/src/option-group.vue.d.ts +14 -8
- package/es/components/select/src/option.mjs +1 -4
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/option.vue.d.ts +20 -8
- package/es/components/select/src/select.mjs +27 -32
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +360 -55
- package/es/components/select/src/useSelect.d.ts +11 -4
- package/es/components/select/src/useSelect.mjs +50 -30
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +6 -6
- package/es/components/select-v2/src/select.vue.d.ts +3 -3
- 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/config.d.ts +1 -1
- package/es/components/table/src/config.mjs +5 -3
- package/es/components/table/src/config.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-body/index.mjs +2 -5
- package/es/components/table/src/table-body/index.mjs.map +1 -1
- package/es/components/table/src/table-body/render-helper.mjs +1 -1
- package/es/components/table/src/table-body/render-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/table-v2/src/table-v2.mjs +1 -1
- package/es/components/table-v2/src/table-v2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +4 -4
- package/es/components/time-select/index.d.ts +104 -200
- package/es/components/time-select/src/time-select.vue.d.ts +52 -100
- 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/transfer/src/transfer.mjs.map +1 -1
- package/es/components/tree/src/tree-node.mjs +1 -1
- package/es/components/tree/src/tree-node.mjs.map +1 -1
- package/es/components/tree-select/src/tree-select-option.d.ts +8 -32
- package/es/components/tree-v2/src/composables/useTree.mjs +1 -1
- package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
- package/es/components/upload/index.d.ts +0 -3
- package/es/components/upload/src/ajax.mjs +2 -1
- package/es/components/upload/src/ajax.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/components/upload/src/upload.vue.d.ts +0 -3
- package/es/components/upload/src/upload2.mjs +5 -6
- package/es/components/upload/src/upload2.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 +4 -4
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +10 -11
- package/lib/components/autocomplete/src/autocomplete2.js +2 -2
- 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/card/index.d.ts +2 -0
- package/lib/components/card/src/card.d.ts +1 -0
- package/lib/components/card/src/card.js +1 -0
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card.vue.d.ts +2 -0
- package/lib/components/card/src/card2.js +1 -1
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +16 -6
- package/lib/components/cascader/src/cascader.d.ts +1 -0
- package/lib/components/cascader/src/cascader.js +4 -0
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +8 -3
- package/lib/components/cascader/src/cascader2.js +11 -4
- 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/checkbox/src/checkbox-button.js +9 -5
- package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +9 -5
- package/lib/components/checkbox/src/checkbox2.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 +25 -6
- 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 +3 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js +7 -13
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
- 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 +4 -2
- package/lib/components/dialog/index.d.ts +60 -45
- package/lib/components/dialog/src/dialog-content.d.ts +5 -4
- package/lib/components/dialog/src/dialog-content.js +8 -16
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +24 -17
- package/lib/components/dialog/src/dialog-content2.js +16 -13
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +9 -7
- package/lib/components/dialog/src/dialog.js +7 -12
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +60 -45
- package/lib/components/dialog/src/dialog2.js +2 -1
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/index.d.ts +27 -21
- package/lib/components/drawer/src/drawer.d.ts +9 -7
- package/lib/components/drawer/src/drawer.js +4 -0
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +27 -21
- package/lib/components/drawer/src/drawer2.js +2 -1
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +2 -2
- package/lib/components/dropdown/src/dropdown.vue.d.ts +2 -2
- package/lib/components/dropdown/src/dropdown2.js +5 -5
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- 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/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-label-wrap.js +3 -2
- package/lib/components/form/src/form-label-wrap.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/input-number/src/input-number2.js +3 -3
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- 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 +27 -54
- 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/radio/src/radio-button2.js +4 -2
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio2.js +4 -2
- package/lib/components/radio/src/radio2.js.map +1 -1
- 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 +29 -62
- package/lib/components/select/src/option-group.js +1 -4
- package/lib/components/select/src/option-group.js.map +1 -1
- package/lib/components/select/src/option-group.vue.d.ts +14 -8
- package/lib/components/select/src/option.js +1 -4
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/option.vue.d.ts +20 -8
- package/lib/components/select/src/select.js +27 -32
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +360 -55
- package/lib/components/select/src/useSelect.d.ts +11 -4
- package/lib/components/select/src/useSelect.js +47 -27
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +6 -6
- package/lib/components/select-v2/src/select.vue.d.ts +3 -3
- 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/config.d.ts +1 -1
- package/lib/components/table/src/config.js +5 -3
- package/lib/components/table/src/config.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-body/index.js +2 -5
- package/lib/components/table/src/table-body/index.js.map +1 -1
- package/lib/components/table/src/table-body/render-helper.js +1 -1
- package/lib/components/table/src/table-body/render-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/table-v2/src/table-v2.js +1 -1
- package/lib/components/table-v2/src/table-v2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +4 -4
- package/lib/components/time-select/index.d.ts +104 -200
- package/lib/components/time-select/src/time-select.vue.d.ts +52 -100
- 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/transfer/src/transfer.js.map +1 -1
- package/lib/components/tree/src/tree-node.js +1 -1
- package/lib/components/tree/src/tree-node.js.map +1 -1
- package/lib/components/tree-select/src/tree-select-option.d.ts +8 -32
- package/lib/components/tree-v2/src/composables/useTree.js +1 -1
- package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
- package/lib/components/upload/index.d.ts +0 -3
- package/lib/components/upload/src/ajax.js +2 -1
- package/lib/components/upload/src/ajax.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/components/upload/src/upload.vue.d.ts +0 -3
- package/lib/components/upload/src/upload2.js +4 -5
- package/lib/components/upload/src/upload2.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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v2.3.
|
|
1
|
+
/*! Element Plus v2.3.10 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -9258,7 +9258,7 @@
|
|
|
9258
9258
|
};
|
|
9259
9259
|
const namespaceContextKey = Symbol("namespaceContextKey");
|
|
9260
9260
|
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
9261
|
-
const derivedNamespace = namespaceOverrides || vue.inject(namespaceContextKey, vue.ref(defaultNamespace));
|
|
9261
|
+
const derivedNamespace = namespaceOverrides || (vue.getCurrentInstance() ? vue.inject(namespaceContextKey, vue.ref(defaultNamespace)) : vue.ref(defaultNamespace));
|
|
9262
9262
|
const namespace = vue.computed(() => {
|
|
9263
9263
|
return vue.unref(derivedNamespace) || defaultNamespace;
|
|
9264
9264
|
});
|
|
@@ -9957,7 +9957,7 @@
|
|
|
9957
9957
|
const defaultInitialZIndex = 2e3;
|
|
9958
9958
|
const zIndexContextKey = Symbol("zIndexContextKey");
|
|
9959
9959
|
const useZIndex = (zIndexOverrides) => {
|
|
9960
|
-
const zIndexInjection = zIndexOverrides || vue.inject(zIndexContextKey, void 0);
|
|
9960
|
+
const zIndexInjection = zIndexOverrides || (vue.getCurrentInstance() ? vue.inject(zIndexContextKey, void 0) : void 0);
|
|
9961
9961
|
const initialZIndex = vue.computed(() => {
|
|
9962
9962
|
const zIndexFromInjection = vue.unref(zIndexInjection);
|
|
9963
9963
|
return isNumber(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
|
|
@@ -11114,7 +11114,6 @@
|
|
|
11114
11114
|
};
|
|
11115
11115
|
vue.watch(wrapperRef, (el) => {
|
|
11116
11116
|
if (el) {
|
|
11117
|
-
el.setAttribute("role", "button");
|
|
11118
11117
|
el.setAttribute("tabindex", "-1");
|
|
11119
11118
|
}
|
|
11120
11119
|
});
|
|
@@ -11247,7 +11246,7 @@
|
|
|
11247
11246
|
|
|
11248
11247
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11249
11248
|
|
|
11250
|
-
const version$1 = "2.3.
|
|
11249
|
+
const version$1 = "2.3.10";
|
|
11251
11250
|
|
|
11252
11251
|
const makeInstaller = (components = []) => {
|
|
11253
11252
|
const install = (app, options) => {
|
|
@@ -12984,8 +12983,8 @@
|
|
|
12984
12983
|
const getLabelWidth = () => {
|
|
12985
12984
|
var _a;
|
|
12986
12985
|
if ((_a = el.value) == null ? void 0 : _a.firstElementChild) {
|
|
12987
|
-
const width =
|
|
12988
|
-
return Math.ceil(Number.parseFloat(width));
|
|
12986
|
+
const width = getStyle(el.value.firstElementChild, "width");
|
|
12987
|
+
return Math.ceil(Number.parseFloat(width)) || 0;
|
|
12989
12988
|
} else {
|
|
12990
12989
|
return 0;
|
|
12991
12990
|
}
|
|
@@ -13534,7 +13533,7 @@
|
|
|
13534
13533
|
|
|
13535
13534
|
const _hoisted_1$11 = ["role"];
|
|
13536
13535
|
const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
|
|
13537
|
-
const _hoisted_3$
|
|
13536
|
+
const _hoisted_3$m = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
|
|
13538
13537
|
const __default__$1x = vue.defineComponent({
|
|
13539
13538
|
name: "ElInput",
|
|
13540
13539
|
inheritAttrs: false
|
|
@@ -13948,7 +13947,7 @@
|
|
|
13948
13947
|
onBlur: _cache[3] || (_cache[3] = (...args) => vue.unref(handleBlur) && vue.unref(handleBlur)(...args)),
|
|
13949
13948
|
onChange: handleChange,
|
|
13950
13949
|
onKeydown: handleKeydown
|
|
13951
|
-
}), null, 16, _hoisted_3$
|
|
13950
|
+
}), null, 16, _hoisted_3$m),
|
|
13952
13951
|
vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
13953
13952
|
key: 0,
|
|
13954
13953
|
style: vue.normalizeStyle(countStyle.value),
|
|
@@ -15044,7 +15043,7 @@
|
|
|
15044
15043
|
if (!releasedEvent.defaultPrevented && (focusReason.value == "keyboard" || !isFocusCausedByUserEvent() || trapContainer.contains(document.activeElement))) {
|
|
15045
15044
|
tryFocus(lastFocusBeforeTrapped != null ? lastFocusBeforeTrapped : document.body);
|
|
15046
15045
|
}
|
|
15047
|
-
trapContainer.removeEventListener(FOCUS_AFTER_RELEASED,
|
|
15046
|
+
trapContainer.removeEventListener(FOCUS_AFTER_RELEASED, releaseOnFocus);
|
|
15048
15047
|
focusableStack.remove(focusLayer);
|
|
15049
15048
|
}
|
|
15050
15049
|
}
|
|
@@ -15875,10 +15874,11 @@
|
|
|
15875
15874
|
open.value = false;
|
|
15876
15875
|
}
|
|
15877
15876
|
});
|
|
15878
|
-
const isFocusInsideContent = () => {
|
|
15877
|
+
const isFocusInsideContent = (event) => {
|
|
15879
15878
|
var _a, _b;
|
|
15880
15879
|
const popperContent = (_b = (_a = contentRef.value) == null ? void 0 : _a.contentRef) == null ? void 0 : _b.popperContentRef;
|
|
15881
|
-
|
|
15880
|
+
const activeElement = (event == null ? void 0 : event.relatedTarget) || document.activeElement;
|
|
15881
|
+
return popperContent && popperContent.contains(activeElement);
|
|
15882
15882
|
};
|
|
15883
15883
|
vue.onDeactivated(() => open.value && hide());
|
|
15884
15884
|
expose({
|
|
@@ -16042,7 +16042,7 @@
|
|
|
16042
16042
|
|
|
16043
16043
|
const _hoisted_1$$ = ["aria-expanded", "aria-owns"];
|
|
16044
16044
|
const _hoisted_2$E = { key: 0 };
|
|
16045
|
-
const _hoisted_3$
|
|
16045
|
+
const _hoisted_3$l = ["id", "aria-selected", "onClick"];
|
|
16046
16046
|
const COMPONENT_NAME$i = "ElAutocomplete";
|
|
16047
16047
|
const __default__$1o = vue.defineComponent({
|
|
16048
16048
|
name: COMPONENT_NAME$i,
|
|
@@ -16083,8 +16083,7 @@
|
|
|
16083
16083
|
}
|
|
16084
16084
|
return [];
|
|
16085
16085
|
});
|
|
16086
|
-
const onSuggestionShow =
|
|
16087
|
-
await vue.nextTick();
|
|
16086
|
+
const onSuggestionShow = () => {
|
|
16088
16087
|
if (suggestionVisible.value) {
|
|
16089
16088
|
dropdownWidth.value = `${inputRef.value.$el.offsetWidth}px`;
|
|
16090
16089
|
}
|
|
@@ -16265,6 +16264,7 @@
|
|
|
16265
16264
|
trigger: "click",
|
|
16266
16265
|
transition: `${vue.unref(ns).namespace.value}-zoom-in-top`,
|
|
16267
16266
|
persistent: "",
|
|
16267
|
+
role: "listbox",
|
|
16268
16268
|
onBeforeShow: onSuggestionShow,
|
|
16269
16269
|
onHide
|
|
16270
16270
|
}, {
|
|
@@ -16308,7 +16308,7 @@
|
|
|
16308
16308
|
vue.renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
16309
16309
|
vue.createTextVNode(vue.toDisplayString(item[_ctx.valueKey]), 1)
|
|
16310
16310
|
])
|
|
16311
|
-
], 10, _hoisted_3$
|
|
16311
|
+
], 10, _hoisted_3$l);
|
|
16312
16312
|
}), 128))
|
|
16313
16313
|
]),
|
|
16314
16314
|
_: 3
|
|
@@ -16718,7 +16718,6 @@
|
|
|
16718
16718
|
const instance = vue.getCurrentInstance();
|
|
16719
16719
|
const breadcrumbContext = vue.inject(breadcrumbKey, void 0);
|
|
16720
16720
|
const ns = useNamespace("breadcrumb");
|
|
16721
|
-
const { separator, separatorIcon } = vue.toRefs(breadcrumbContext);
|
|
16722
16721
|
const router = instance.appContext.config.globalProperties.$router;
|
|
16723
16722
|
const link = vue.ref();
|
|
16724
16723
|
const onClick = () => {
|
|
@@ -16727,6 +16726,7 @@
|
|
|
16727
16726
|
props.replace ? router.replace(props.to) : router.push(props.to);
|
|
16728
16727
|
};
|
|
16729
16728
|
return (_ctx, _cache) => {
|
|
16729
|
+
var _a, _b;
|
|
16730
16730
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
16731
16731
|
class: vue.normalizeClass(vue.unref(ns).e("item"))
|
|
16732
16732
|
}, [
|
|
@@ -16739,19 +16739,19 @@
|
|
|
16739
16739
|
}, [
|
|
16740
16740
|
vue.renderSlot(_ctx.$slots, "default")
|
|
16741
16741
|
], 2),
|
|
16742
|
-
vue.unref(separatorIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
|
|
16742
|
+
((_a = vue.unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
|
|
16743
16743
|
key: 0,
|
|
16744
16744
|
class: vue.normalizeClass(vue.unref(ns).e("separator"))
|
|
16745
16745
|
}, {
|
|
16746
16746
|
default: vue.withCtx(() => [
|
|
16747
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(separatorIcon)))
|
|
16747
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(breadcrumbContext).separatorIcon)))
|
|
16748
16748
|
]),
|
|
16749
16749
|
_: 1
|
|
16750
16750
|
}, 8, ["class"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
16751
16751
|
key: 1,
|
|
16752
16752
|
class: vue.normalizeClass(vue.unref(ns).e("separator")),
|
|
16753
16753
|
role: "presentation"
|
|
16754
|
-
}, vue.toDisplayString(vue.unref(separator)
|
|
16754
|
+
}, vue.toDisplayString((_b = vue.unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
|
|
16755
16755
|
], 2);
|
|
16756
16756
|
};
|
|
16757
16757
|
}
|
|
@@ -20721,6 +20721,7 @@
|
|
|
20721
20721
|
type: definePropType([String, Object, Array]),
|
|
20722
20722
|
default: ""
|
|
20723
20723
|
},
|
|
20724
|
+
bodyClass: String,
|
|
20724
20725
|
shadow: {
|
|
20725
20726
|
type: String,
|
|
20726
20727
|
values: ["always", "hover", "never"],
|
|
@@ -20749,7 +20750,7 @@
|
|
|
20749
20750
|
])
|
|
20750
20751
|
], 2)) : vue.createCommentVNode("v-if", true),
|
|
20751
20752
|
vue.createElementVNode("div", {
|
|
20752
|
-
class: vue.normalizeClass(vue.unref(ns).e("body")),
|
|
20753
|
+
class: vue.normalizeClass([vue.unref(ns).e("body"), _ctx.bodyClass]),
|
|
20753
20754
|
style: vue.normalizeStyle(_ctx.bodyStyle)
|
|
20754
20755
|
}, [
|
|
20755
20756
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -21616,7 +21617,7 @@
|
|
|
21616
21617
|
|
|
21617
21618
|
const _hoisted_1$T = ["tabindex", "role", "aria-checked"];
|
|
21618
21619
|
const _hoisted_2$z = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
21619
|
-
const _hoisted_3$
|
|
21620
|
+
const _hoisted_3$k = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
21620
21621
|
const __default__$1a = vue.defineComponent({
|
|
21621
21622
|
name: "ElCheckbox"
|
|
21622
21623
|
});
|
|
@@ -21685,13 +21686,15 @@
|
|
|
21685
21686
|
"false-value": _ctx.falseLabel,
|
|
21686
21687
|
onChange: _cache[1] || (_cache[1] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
21687
21688
|
onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
|
|
21688
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false)
|
|
21689
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
|
|
21690
|
+
onClick: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
21691
|
+
}, ["stop"]))
|
|
21689
21692
|
}, null, 42, _hoisted_2$z)), [
|
|
21690
21693
|
[vue.vModelCheckbox, vue.unref(model)]
|
|
21691
21694
|
]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
21692
21695
|
key: 1,
|
|
21693
21696
|
id: vue.unref(inputId),
|
|
21694
|
-
"onUpdate:modelValue": _cache[
|
|
21697
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(model) ? model.value = $event : null),
|
|
21695
21698
|
class: vue.normalizeClass(vue.unref(ns).e("original")),
|
|
21696
21699
|
type: "checkbox",
|
|
21697
21700
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
@@ -21699,10 +21702,12 @@
|
|
|
21699
21702
|
value: _ctx.label,
|
|
21700
21703
|
name: _ctx.name,
|
|
21701
21704
|
tabindex: _ctx.tabindex,
|
|
21702
|
-
onChange: _cache[
|
|
21703
|
-
onFocus: _cache[
|
|
21704
|
-
onBlur: _cache[
|
|
21705
|
-
|
|
21705
|
+
onChange: _cache[6] || (_cache[6] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
21706
|
+
onFocus: _cache[7] || (_cache[7] = ($event) => isFocused.value = true),
|
|
21707
|
+
onBlur: _cache[8] || (_cache[8] = ($event) => isFocused.value = false),
|
|
21708
|
+
onClick: _cache[9] || (_cache[9] = vue.withModifiers(() => {
|
|
21709
|
+
}, ["stop"]))
|
|
21710
|
+
}, null, 42, _hoisted_3$k)), [
|
|
21706
21711
|
[vue.vModelCheckbox, vue.unref(model)]
|
|
21707
21712
|
]),
|
|
21708
21713
|
vue.createElementVNode("span", {
|
|
@@ -21783,21 +21788,25 @@
|
|
|
21783
21788
|
"false-value": _ctx.falseLabel,
|
|
21784
21789
|
onChange: _cache[1] || (_cache[1] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
21785
21790
|
onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
|
|
21786
|
-
onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false)
|
|
21791
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
|
|
21792
|
+
onClick: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
21793
|
+
}, ["stop"]))
|
|
21787
21794
|
}, null, 42, _hoisted_1$S)), [
|
|
21788
21795
|
[vue.vModelCheckbox, vue.unref(model)]
|
|
21789
21796
|
]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
21790
21797
|
key: 1,
|
|
21791
|
-
"onUpdate:modelValue": _cache[
|
|
21798
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(model) ? model.value = $event : null),
|
|
21792
21799
|
class: vue.normalizeClass(vue.unref(ns).be("button", "original")),
|
|
21793
21800
|
type: "checkbox",
|
|
21794
21801
|
name: _ctx.name,
|
|
21795
21802
|
tabindex: _ctx.tabindex,
|
|
21796
21803
|
disabled: vue.unref(isDisabled),
|
|
21797
21804
|
value: _ctx.label,
|
|
21798
|
-
onChange: _cache[
|
|
21799
|
-
onFocus: _cache[
|
|
21800
|
-
onBlur: _cache[
|
|
21805
|
+
onChange: _cache[6] || (_cache[6] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
21806
|
+
onFocus: _cache[7] || (_cache[7] = ($event) => isFocused.value = true),
|
|
21807
|
+
onBlur: _cache[8] || (_cache[8] = ($event) => isFocused.value = false),
|
|
21808
|
+
onClick: _cache[9] || (_cache[9] = vue.withModifiers(() => {
|
|
21809
|
+
}, ["stop"]))
|
|
21801
21810
|
}, null, 42, _hoisted_2$y)), [
|
|
21802
21811
|
[vue.vModelCheckbox, vue.unref(model)]
|
|
21803
21812
|
]),
|
|
@@ -22020,7 +22029,9 @@
|
|
|
22020
22029
|
type: "radio",
|
|
22021
22030
|
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
22022
22031
|
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false),
|
|
22023
|
-
onChange: handleChange
|
|
22032
|
+
onChange: handleChange,
|
|
22033
|
+
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
22034
|
+
}, ["stop"]))
|
|
22024
22035
|
}, null, 42, _hoisted_1$R), [
|
|
22025
22036
|
[vue.vModelRadio, vue.unref(modelValue)]
|
|
22026
22037
|
]),
|
|
@@ -22030,7 +22041,7 @@
|
|
|
22030
22041
|
], 2),
|
|
22031
22042
|
vue.createElementVNode("span", {
|
|
22032
22043
|
class: vue.normalizeClass(vue.unref(ns).e("label")),
|
|
22033
|
-
onKeydown: _cache[
|
|
22044
|
+
onKeydown: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
22034
22045
|
}, ["stop"]))
|
|
22035
22046
|
}, [
|
|
22036
22047
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -22091,14 +22102,16 @@
|
|
|
22091
22102
|
name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
|
|
22092
22103
|
disabled: vue.unref(disabled),
|
|
22093
22104
|
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
22094
|
-
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false)
|
|
22105
|
+
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false),
|
|
22106
|
+
onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
|
|
22107
|
+
}, ["stop"]))
|
|
22095
22108
|
}, null, 42, _hoisted_1$Q), [
|
|
22096
22109
|
[vue.vModelRadio, vue.unref(modelValue)]
|
|
22097
22110
|
]),
|
|
22098
22111
|
vue.createElementVNode("span", {
|
|
22099
22112
|
class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
|
|
22100
22113
|
style: vue.normalizeStyle(vue.unref(modelValue) === _ctx.label ? vue.unref(activeStyle) : {}),
|
|
22101
|
-
onKeydown: _cache[
|
|
22114
|
+
onKeydown: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
22102
22115
|
}, ["stop"]))
|
|
22103
22116
|
}, [
|
|
22104
22117
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -22950,7 +22963,11 @@
|
|
|
22950
22963
|
expandingNode.value = null;
|
|
22951
22964
|
}
|
|
22952
22965
|
oldNodes.forEach((node) => node.doCheck(false));
|
|
22953
|
-
|
|
22966
|
+
if (props.props.multiple) {
|
|
22967
|
+
vue.reactive(newNodes).forEach((node) => node.doCheck(true));
|
|
22968
|
+
} else {
|
|
22969
|
+
newNodes.forEach((node) => node.doCheck(true));
|
|
22970
|
+
}
|
|
22954
22971
|
checkedNodes.value = newNodes;
|
|
22955
22972
|
vue.nextTick(scrollToExpandingNode);
|
|
22956
22973
|
};
|
|
@@ -23203,6 +23220,10 @@
|
|
|
23203
23220
|
default: true
|
|
23204
23221
|
},
|
|
23205
23222
|
collapseTags: Boolean,
|
|
23223
|
+
maxCollapseTags: {
|
|
23224
|
+
type: Number,
|
|
23225
|
+
default: 1
|
|
23226
|
+
},
|
|
23206
23227
|
collapseTagsTooltip: {
|
|
23207
23228
|
type: Boolean,
|
|
23208
23229
|
default: false
|
|
@@ -23238,7 +23259,7 @@
|
|
|
23238
23259
|
|
|
23239
23260
|
const _hoisted_1$N = { key: 0 };
|
|
23240
23261
|
const _hoisted_2$w = ["placeholder", "onKeydown"];
|
|
23241
|
-
const _hoisted_3$
|
|
23262
|
+
const _hoisted_3$j = ["onClick"];
|
|
23242
23263
|
const COMPONENT_NAME$e = "ElCascader";
|
|
23243
23264
|
const __default__$13 = vue.defineComponent({
|
|
23244
23265
|
name: COMPONENT_NAME$e
|
|
@@ -23399,9 +23420,9 @@
|
|
|
23399
23420
|
nodes.forEach((node) => allTags.push(genTag(node)));
|
|
23400
23421
|
allPresentTags.value = allTags;
|
|
23401
23422
|
if (nodes.length) {
|
|
23402
|
-
|
|
23423
|
+
nodes.slice(0, props.maxCollapseTags).forEach((node) => tags.push(genTag(node)));
|
|
23424
|
+
const rest = nodes.slice(props.maxCollapseTags);
|
|
23403
23425
|
const restCount = rest.length;
|
|
23404
|
-
tags.push(genTag(first));
|
|
23405
23426
|
if (restCount) {
|
|
23406
23427
|
if (props.collapseTags) {
|
|
23407
23428
|
tags.push({
|
|
@@ -23594,15 +23615,22 @@
|
|
|
23594
23615
|
return;
|
|
23595
23616
|
val ? handleFilter() : hideSuggestionPanel();
|
|
23596
23617
|
};
|
|
23618
|
+
const getInputInnerHeight = (inputInner) => Number.parseFloat(useCssVar(nsInput.cssVarName("input-height"), inputInner).value) - 2;
|
|
23597
23619
|
vue.watch(filtering, updatePopperPosition);
|
|
23598
23620
|
vue.watch([checkedNodes, isDisabled], calculatePresentTags);
|
|
23599
23621
|
vue.watch(presentTags, () => {
|
|
23600
23622
|
vue.nextTick(() => updateStyle());
|
|
23601
23623
|
});
|
|
23624
|
+
vue.watch(realSize, async () => {
|
|
23625
|
+
await vue.nextTick();
|
|
23626
|
+
const inputInner = input.value.input;
|
|
23627
|
+
inputInitialHeight = getInputInnerHeight(inputInner) || inputInitialHeight;
|
|
23628
|
+
updateStyle();
|
|
23629
|
+
});
|
|
23602
23630
|
vue.watch(presentText, syncPresentTextValue, { immediate: true });
|
|
23603
23631
|
vue.onMounted(() => {
|
|
23604
23632
|
const inputInner = input.value.input;
|
|
23605
|
-
const inputInnerHeight =
|
|
23633
|
+
const inputInnerHeight = getInputInnerHeight(inputInner);
|
|
23606
23634
|
inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
|
|
23607
23635
|
useResizeObserver(inputInner, updateStyle);
|
|
23608
23636
|
});
|
|
@@ -23719,7 +23747,7 @@
|
|
|
23719
23747
|
vue.createElementVNode("div", {
|
|
23720
23748
|
class: vue.normalizeClass(vue.unref(nsCascader).e("collapse-tags"))
|
|
23721
23749
|
}, [
|
|
23722
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(allPresentTags.value.slice(
|
|
23750
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(allPresentTags.value.slice(_ctx.maxCollapseTags), (tag2, idx) => {
|
|
23723
23751
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
23724
23752
|
key: idx,
|
|
23725
23753
|
class: vue.normalizeClass(vue.unref(nsCascader).e("collapse-tag"))
|
|
@@ -23813,7 +23841,7 @@
|
|
|
23813
23841
|
]),
|
|
23814
23842
|
_: 1
|
|
23815
23843
|
})) : vue.createCommentVNode("v-if", true)
|
|
23816
|
-
], 10, _hoisted_3$
|
|
23844
|
+
], 10, _hoisted_3$j);
|
|
23817
23845
|
}), 128)) : vue.renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
23818
23846
|
vue.createElementVNode("li", {
|
|
23819
23847
|
class: vue.normalizeClass(vue.unref(nsCascader).e("empty-text"))
|
|
@@ -23906,8 +23934,7 @@
|
|
|
23906
23934
|
},
|
|
23907
23935
|
align: {
|
|
23908
23936
|
type: String,
|
|
23909
|
-
values: RowAlign
|
|
23910
|
-
default: "top"
|
|
23937
|
+
values: RowAlign
|
|
23911
23938
|
}
|
|
23912
23939
|
});
|
|
23913
23940
|
|
|
@@ -23935,7 +23962,7 @@
|
|
|
23935
23962
|
const rowKls = vue.computed(() => [
|
|
23936
23963
|
ns.b(),
|
|
23937
23964
|
ns.is(`justify-${props.justify}`, props.justify !== "start"),
|
|
23938
|
-
ns.is(`align-${props.align}`, props.align
|
|
23965
|
+
ns.is(`align-${props.align}`, !!props.align)
|
|
23939
23966
|
]);
|
|
23940
23967
|
return (_ctx, _cache) => {
|
|
23941
23968
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
|
@@ -24148,6 +24175,12 @@
|
|
|
24148
24175
|
...__default__$_,
|
|
24149
24176
|
setup(__props) {
|
|
24150
24177
|
const ns = useNamespace("collapse-transition");
|
|
24178
|
+
const reset = (el) => {
|
|
24179
|
+
el.style.maxHeight = "";
|
|
24180
|
+
el.style.overflow = el.dataset.oldOverflow;
|
|
24181
|
+
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
24182
|
+
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
24183
|
+
};
|
|
24151
24184
|
const on = {
|
|
24152
24185
|
beforeEnter(el) {
|
|
24153
24186
|
if (!el.dataset)
|
|
@@ -24162,19 +24195,20 @@
|
|
|
24162
24195
|
el.dataset.oldOverflow = el.style.overflow;
|
|
24163
24196
|
if (el.scrollHeight !== 0) {
|
|
24164
24197
|
el.style.maxHeight = `${el.scrollHeight}px`;
|
|
24165
|
-
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
24166
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
24167
24198
|
} else {
|
|
24168
24199
|
el.style.maxHeight = 0;
|
|
24169
|
-
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
24170
|
-
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
24171
24200
|
}
|
|
24201
|
+
el.style.paddingTop = el.dataset.oldPaddingTop;
|
|
24202
|
+
el.style.paddingBottom = el.dataset.oldPaddingBottom;
|
|
24172
24203
|
el.style.overflow = "hidden";
|
|
24173
24204
|
},
|
|
24174
24205
|
afterEnter(el) {
|
|
24175
24206
|
el.style.maxHeight = "";
|
|
24176
24207
|
el.style.overflow = el.dataset.oldOverflow;
|
|
24177
24208
|
},
|
|
24209
|
+
enterCancelled(el) {
|
|
24210
|
+
reset(el);
|
|
24211
|
+
},
|
|
24178
24212
|
beforeLeave(el) {
|
|
24179
24213
|
if (!el.dataset)
|
|
24180
24214
|
el.dataset = {};
|
|
@@ -24192,10 +24226,10 @@
|
|
|
24192
24226
|
}
|
|
24193
24227
|
},
|
|
24194
24228
|
afterLeave(el) {
|
|
24195
|
-
el
|
|
24196
|
-
|
|
24197
|
-
|
|
24198
|
-
el
|
|
24229
|
+
reset(el);
|
|
24230
|
+
},
|
|
24231
|
+
leaveCancelled(el) {
|
|
24232
|
+
reset(el);
|
|
24199
24233
|
}
|
|
24200
24234
|
};
|
|
24201
24235
|
return (_ctx, _cache) => {
|
|
@@ -24297,7 +24331,7 @@
|
|
|
24297
24331
|
|
|
24298
24332
|
const _hoisted_1$M = ["aria-expanded", "aria-controls", "aria-describedby"];
|
|
24299
24333
|
const _hoisted_2$v = ["id", "tabindex"];
|
|
24300
|
-
const _hoisted_3$
|
|
24334
|
+
const _hoisted_3$i = ["id", "aria-hidden", "aria-labelledby"];
|
|
24301
24335
|
const __default__$Z = vue.defineComponent({
|
|
24302
24336
|
name: "ElCollapseItem"
|
|
24303
24337
|
});
|
|
@@ -24373,7 +24407,7 @@
|
|
|
24373
24407
|
}, [
|
|
24374
24408
|
vue.renderSlot(_ctx.$slots, "default")
|
|
24375
24409
|
], 2)
|
|
24376
|
-
], 10, _hoisted_3$
|
|
24410
|
+
], 10, _hoisted_3$i), [
|
|
24377
24411
|
[vue.vShow, vue.unref(isActive)]
|
|
24378
24412
|
])
|
|
24379
24413
|
]),
|
|
@@ -25999,7 +26033,7 @@
|
|
|
25999
26033
|
key: 0,
|
|
26000
26034
|
scope: "col"
|
|
26001
26035
|
};
|
|
26002
|
-
const _hoisted_3$
|
|
26036
|
+
const _hoisted_3$h = ["aria-label"];
|
|
26003
26037
|
const _hoisted_4$b = ["aria-current", "aria-selected", "tabindex"];
|
|
26004
26038
|
const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
|
|
26005
26039
|
__name: "basic-date-table",
|
|
@@ -26317,7 +26351,7 @@
|
|
|
26317
26351
|
key,
|
|
26318
26352
|
scope: "col",
|
|
26319
26353
|
"aria-label": vue.unref(t)("el.datepicker.weeksFull." + week)
|
|
26320
|
-
}, vue.toDisplayString(vue.unref(t)("el.datepicker.weeks." + week)), 9, _hoisted_3$
|
|
26354
|
+
}, vue.toDisplayString(vue.unref(t)("el.datepicker.weeks." + week)), 9, _hoisted_3$h);
|
|
26321
26355
|
}), 128))
|
|
26322
26356
|
]),
|
|
26323
26357
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(rows), (row, rowKey) => {
|
|
@@ -26355,7 +26389,7 @@
|
|
|
26355
26389
|
|
|
26356
26390
|
const _hoisted_1$H = ["aria-label"];
|
|
26357
26391
|
const _hoisted_2$s = ["aria-selected", "aria-label", "tabindex", "onKeydown"];
|
|
26358
|
-
const _hoisted_3$
|
|
26392
|
+
const _hoisted_3$g = { class: "cell" };
|
|
26359
26393
|
const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
|
|
26360
26394
|
__name: "basic-month-table",
|
|
26361
26395
|
props: basicMonthTableProps,
|
|
@@ -26538,7 +26572,7 @@
|
|
|
26538
26572
|
]
|
|
26539
26573
|
}, [
|
|
26540
26574
|
vue.createElementVNode("div", null, [
|
|
26541
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
26575
|
+
vue.createElementVNode("span", _hoisted_3$g, vue.toDisplayString(vue.unref(t)("el.datepicker.months." + months.value[cell.text])), 1)
|
|
26542
26576
|
])
|
|
26543
26577
|
], 42, _hoisted_2$s);
|
|
26544
26578
|
}), 128))
|
|
@@ -26560,7 +26594,7 @@
|
|
|
26560
26594
|
|
|
26561
26595
|
const _hoisted_1$G = ["aria-label"];
|
|
26562
26596
|
const _hoisted_2$r = ["aria-selected", "tabindex", "onKeydown"];
|
|
26563
|
-
const _hoisted_3$
|
|
26597
|
+
const _hoisted_3$f = { class: "cell" };
|
|
26564
26598
|
const _hoisted_4$a = { key: 1 };
|
|
26565
26599
|
const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
|
|
26566
26600
|
__name: "basic-year-table",
|
|
@@ -26645,7 +26679,7 @@
|
|
|
26645
26679
|
vue.withKeys(vue.withModifiers(handleYearTableClick, ["prevent", "stop"]), ["enter"])
|
|
26646
26680
|
]
|
|
26647
26681
|
}, [
|
|
26648
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
26682
|
+
vue.createElementVNode("span", _hoisted_3$f, vue.toDisplayString(vue.unref(startYear) + i * 4 + j), 1)
|
|
26649
26683
|
], 42, _hoisted_2$r)) : (vue.openBlock(), vue.createElementBlock("td", _hoisted_4$a))
|
|
26650
26684
|
], 64);
|
|
26651
26685
|
}), 64))
|
|
@@ -26660,7 +26694,7 @@
|
|
|
26660
26694
|
|
|
26661
26695
|
const _hoisted_1$F = ["onClick"];
|
|
26662
26696
|
const _hoisted_2$q = ["aria-label"];
|
|
26663
|
-
const _hoisted_3$
|
|
26697
|
+
const _hoisted_3$e = ["aria-label"];
|
|
26664
26698
|
const _hoisted_4$9 = ["aria-label"];
|
|
26665
26699
|
const _hoisted_5$7 = ["aria-label"];
|
|
26666
26700
|
const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -26677,11 +26711,12 @@
|
|
|
26677
26711
|
const { t, lang } = useLocale();
|
|
26678
26712
|
const pickerBase = vue.inject("EP_PICKER_BASE");
|
|
26679
26713
|
const popper = vue.inject(TOOLTIP_INJECTION_KEY);
|
|
26680
|
-
const { shortcuts, disabledDate, cellClassName, defaultTime
|
|
26714
|
+
const { shortcuts, disabledDate, cellClassName, defaultTime } = pickerBase.props;
|
|
26681
26715
|
const defaultValue = vue.toRef(pickerBase.props, "defaultValue");
|
|
26682
26716
|
const currentViewRef = vue.ref();
|
|
26683
26717
|
const innerDate = vue.ref(dayjs().locale(lang.value));
|
|
26684
26718
|
const isChangeToNow = vue.ref(false);
|
|
26719
|
+
let isShortcut = false;
|
|
26685
26720
|
const defaultTimeD = vue.computed(() => {
|
|
26686
26721
|
return dayjs(defaultTime).locale(lang.value);
|
|
26687
26722
|
});
|
|
@@ -26698,7 +26733,7 @@
|
|
|
26698
26733
|
return selectableRange.value.length > 0 ? timeWithinRange(date, selectableRange.value, props.format || "HH:mm:ss") : true;
|
|
26699
26734
|
};
|
|
26700
26735
|
const formatEmit = (emitDayjs) => {
|
|
26701
|
-
if (defaultTime && !visibleTime.value && !isChangeToNow.value) {
|
|
26736
|
+
if (defaultTime && !visibleTime.value && !isChangeToNow.value && !isShortcut) {
|
|
26702
26737
|
return defaultTimeD.value.year(emitDayjs.year()).month(emitDayjs.month()).date(emitDayjs.date());
|
|
26703
26738
|
}
|
|
26704
26739
|
if (showTime.value)
|
|
@@ -26717,6 +26752,7 @@
|
|
|
26717
26752
|
userInputDate.value = null;
|
|
26718
26753
|
userInputTime.value = null;
|
|
26719
26754
|
isChangeToNow.value = false;
|
|
26755
|
+
isShortcut = false;
|
|
26720
26756
|
};
|
|
26721
26757
|
const handleDatePick = (value, keepOpen) => {
|
|
26722
26758
|
if (selectionMode.value === "date") {
|
|
@@ -26759,6 +26795,7 @@
|
|
|
26759
26795
|
const handleShortcutClick = (shortcut) => {
|
|
26760
26796
|
const shortcutValue = isFunction$1(shortcut.value) ? shortcut.value() : shortcut.value;
|
|
26761
26797
|
if (shortcutValue) {
|
|
26798
|
+
isShortcut = true;
|
|
26762
26799
|
emit(dayjs(shortcutValue).locale(lang.value));
|
|
26763
26800
|
return;
|
|
26764
26801
|
}
|
|
@@ -26818,6 +26855,16 @@
|
|
|
26818
26855
|
const footerVisible = vue.computed(() => {
|
|
26819
26856
|
return showTime.value || selectionMode.value === "dates";
|
|
26820
26857
|
});
|
|
26858
|
+
const disabledConfirm = vue.computed(() => {
|
|
26859
|
+
if (!disabledDate)
|
|
26860
|
+
return false;
|
|
26861
|
+
if (!props.parsedValue)
|
|
26862
|
+
return true;
|
|
26863
|
+
if (isArray$1(props.parsedValue)) {
|
|
26864
|
+
return disabledDate(props.parsedValue[0].toDate());
|
|
26865
|
+
}
|
|
26866
|
+
return disabledDate(props.parsedValue.toDate());
|
|
26867
|
+
});
|
|
26821
26868
|
const onConfirm = () => {
|
|
26822
26869
|
if (selectionMode.value === "dates") {
|
|
26823
26870
|
emit(props.parsedValue);
|
|
@@ -26832,6 +26879,11 @@
|
|
|
26832
26879
|
emit(result);
|
|
26833
26880
|
}
|
|
26834
26881
|
};
|
|
26882
|
+
const disabledNow = vue.computed(() => {
|
|
26883
|
+
if (!disabledDate)
|
|
26884
|
+
return false;
|
|
26885
|
+
return disabledDate(dayjs().locale(lang.value).toDate());
|
|
26886
|
+
});
|
|
26835
26887
|
const changeToNow = () => {
|
|
26836
26888
|
const now = dayjs().locale(lang.value);
|
|
26837
26889
|
const nowDate = now.toDate();
|
|
@@ -27109,10 +27161,9 @@
|
|
|
27109
27161
|
vue.createVNode(vue.unref(TimePickPanel), {
|
|
27110
27162
|
visible: timePickerVisible.value,
|
|
27111
27163
|
format: vue.unref(timeFormat),
|
|
27112
|
-
"time-arrow-control": vue.unref(arrowControl),
|
|
27113
27164
|
"parsed-value": innerDate.value,
|
|
27114
27165
|
onPick: handleTimePick
|
|
27115
|
-
}, null, 8, ["visible", "format", "
|
|
27166
|
+
}, null, 8, ["visible", "format", "parsed-value"])
|
|
27116
27167
|
], 2)), [
|
|
27117
27168
|
[vue.unref(ClickOutside), handleTimePickClose]
|
|
27118
27169
|
])
|
|
@@ -27151,7 +27202,7 @@
|
|
|
27151
27202
|
]),
|
|
27152
27203
|
_: 1
|
|
27153
27204
|
})
|
|
27154
|
-
], 10, _hoisted_3$
|
|
27205
|
+
], 10, _hoisted_3$e), [
|
|
27155
27206
|
[vue.vShow, currentView.value === "date"]
|
|
27156
27207
|
])
|
|
27157
27208
|
], 2),
|
|
@@ -27254,26 +27305,28 @@
|
|
|
27254
27305
|
text: "",
|
|
27255
27306
|
size: "small",
|
|
27256
27307
|
class: vue.normalizeClass(vue.unref(ppNs).e("link-btn")),
|
|
27308
|
+
disabled: vue.unref(disabledNow),
|
|
27257
27309
|
onClick: changeToNow
|
|
27258
27310
|
}, {
|
|
27259
27311
|
default: vue.withCtx(() => [
|
|
27260
27312
|
vue.createTextVNode(vue.toDisplayString(vue.unref(t)("el.datepicker.now")), 1)
|
|
27261
27313
|
]),
|
|
27262
27314
|
_: 1
|
|
27263
|
-
}, 8, ["class"]), [
|
|
27315
|
+
}, 8, ["class", "disabled"]), [
|
|
27264
27316
|
[vue.vShow, vue.unref(selectionMode) !== "dates"]
|
|
27265
27317
|
]),
|
|
27266
27318
|
vue.createVNode(vue.unref(ElButton), {
|
|
27267
27319
|
plain: "",
|
|
27268
27320
|
size: "small",
|
|
27269
27321
|
class: vue.normalizeClass(vue.unref(ppNs).e("link-btn")),
|
|
27322
|
+
disabled: vue.unref(disabledConfirm),
|
|
27270
27323
|
onClick: onConfirm
|
|
27271
27324
|
}, {
|
|
27272
27325
|
default: vue.withCtx(() => [
|
|
27273
27326
|
vue.createTextVNode(vue.toDisplayString(vue.unref(t)("el.datepicker.confirm")), 1)
|
|
27274
27327
|
]),
|
|
27275
27328
|
_: 1
|
|
27276
|
-
}, 8, ["class"])
|
|
27329
|
+
}, 8, ["class", "disabled"])
|
|
27277
27330
|
], 2), [
|
|
27278
27331
|
[vue.vShow, vue.unref(footerVisible) && currentView.value === "date"]
|
|
27279
27332
|
])
|
|
@@ -27390,7 +27443,7 @@
|
|
|
27390
27443
|
|
|
27391
27444
|
const _hoisted_1$E = ["onClick"];
|
|
27392
27445
|
const _hoisted_2$p = ["disabled"];
|
|
27393
|
-
const _hoisted_3$
|
|
27446
|
+
const _hoisted_3$d = ["disabled"];
|
|
27394
27447
|
const _hoisted_4$8 = ["disabled"];
|
|
27395
27448
|
const _hoisted_5$6 = ["disabled"];
|
|
27396
27449
|
const unit$1 = "month";
|
|
@@ -27406,14 +27459,7 @@
|
|
|
27406
27459
|
setup(__props, { emit }) {
|
|
27407
27460
|
const props = __props;
|
|
27408
27461
|
const pickerBase = vue.inject("EP_PICKER_BASE");
|
|
27409
|
-
const {
|
|
27410
|
-
disabledDate,
|
|
27411
|
-
cellClassName,
|
|
27412
|
-
format,
|
|
27413
|
-
defaultTime,
|
|
27414
|
-
arrowControl,
|
|
27415
|
-
clearable
|
|
27416
|
-
} = pickerBase.props;
|
|
27462
|
+
const { disabledDate, cellClassName, format, defaultTime, clearable } = pickerBase.props;
|
|
27417
27463
|
const shortcuts = vue.toRef(pickerBase.props, "shortcuts");
|
|
27418
27464
|
const defaultValue = vue.toRef(pickerBase.props, "defaultValue");
|
|
27419
27465
|
const { lang } = useLocale();
|
|
@@ -27498,6 +27544,9 @@
|
|
|
27498
27544
|
const dateFormat = vue.computed(() => {
|
|
27499
27545
|
return extractDateFormat(format);
|
|
27500
27546
|
});
|
|
27547
|
+
const isValidValue = (date) => {
|
|
27548
|
+
return isValidRange(date) && (disabledDate ? !disabledDate(date[0].toDate()) && !disabledDate(date[1].toDate()) : true);
|
|
27549
|
+
};
|
|
27501
27550
|
const leftPrevYear = () => {
|
|
27502
27551
|
leftDate.value = leftDate.value.subtract(1, "year");
|
|
27503
27552
|
if (!props.unlinkPanels) {
|
|
@@ -27708,7 +27757,7 @@
|
|
|
27708
27757
|
}
|
|
27709
27758
|
}
|
|
27710
27759
|
}
|
|
27711
|
-
emit("set-picker-option", ["isValidValue",
|
|
27760
|
+
emit("set-picker-option", ["isValidValue", isValidValue]);
|
|
27712
27761
|
emit("set-picker-option", ["parseUserInput", parseUserInput]);
|
|
27713
27762
|
emit("set-picker-option", ["formatToString", formatToString]);
|
|
27714
27763
|
emit("set-picker-option", ["handleClear", handleClear]);
|
|
@@ -27784,10 +27833,9 @@
|
|
|
27784
27833
|
visible: minTimePickerVisible.value,
|
|
27785
27834
|
format: vue.unref(timeFormat),
|
|
27786
27835
|
"datetime-role": "start",
|
|
27787
|
-
"time-arrow-control": vue.unref(arrowControl),
|
|
27788
27836
|
"parsed-value": leftDate.value,
|
|
27789
27837
|
onPick: handleMinTimePick
|
|
27790
|
-
}, null, 8, ["visible", "format", "
|
|
27838
|
+
}, null, 8, ["visible", "format", "parsed-value"])
|
|
27791
27839
|
], 2)), [
|
|
27792
27840
|
[vue.unref(ClickOutside), handleMinTimeClose]
|
|
27793
27841
|
])
|
|
@@ -27837,10 +27885,9 @@
|
|
|
27837
27885
|
"datetime-role": "end",
|
|
27838
27886
|
visible: maxTimePickerVisible.value,
|
|
27839
27887
|
format: vue.unref(timeFormat),
|
|
27840
|
-
"time-arrow-control": vue.unref(arrowControl),
|
|
27841
27888
|
"parsed-value": rightDate.value,
|
|
27842
27889
|
onPick: handleMaxTimePick
|
|
27843
|
-
}, null, 8, ["visible", "format", "
|
|
27890
|
+
}, null, 8, ["visible", "format", "parsed-value"])
|
|
27844
27891
|
], 2)), [
|
|
27845
27892
|
[vue.unref(ClickOutside), handleMaxTimeClose]
|
|
27846
27893
|
])
|
|
@@ -27906,7 +27953,7 @@
|
|
|
27906
27953
|
]),
|
|
27907
27954
|
_: 1
|
|
27908
27955
|
})
|
|
27909
|
-
], 10, _hoisted_3$
|
|
27956
|
+
], 10, _hoisted_3$d)) : vue.createCommentVNode("v-if", true),
|
|
27910
27957
|
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(leftLabel)), 1)
|
|
27911
27958
|
], 2),
|
|
27912
27959
|
vue.createVNode(DateTable, {
|
|
@@ -28090,7 +28137,7 @@
|
|
|
28090
28137
|
|
|
28091
28138
|
const _hoisted_1$D = ["onClick"];
|
|
28092
28139
|
const _hoisted_2$o = ["disabled"];
|
|
28093
|
-
const _hoisted_3$
|
|
28140
|
+
const _hoisted_3$c = ["disabled"];
|
|
28094
28141
|
const unit = "year";
|
|
28095
28142
|
const __default__$R = vue.defineComponent({
|
|
28096
28143
|
name: "DatePickerMonthRange"
|
|
@@ -28267,7 +28314,7 @@
|
|
|
28267
28314
|
]),
|
|
28268
28315
|
_: 1
|
|
28269
28316
|
})
|
|
28270
|
-
], 10, _hoisted_3$
|
|
28317
|
+
], 10, _hoisted_3$c)) : vue.createCommentVNode("v-if", true),
|
|
28271
28318
|
vue.createElementVNode("button", {
|
|
28272
28319
|
type: "button",
|
|
28273
28320
|
class: vue.normalizeClass([vue.unref(ppNs).e("icon-btn"), "d-arrow-right"]),
|
|
@@ -28768,14 +28815,8 @@
|
|
|
28768
28815
|
const dialogInjectionKey = Symbol("dialogInjectionKey");
|
|
28769
28816
|
|
|
28770
28817
|
const dialogContentProps = buildProps({
|
|
28771
|
-
center:
|
|
28772
|
-
|
|
28773
|
-
default: false
|
|
28774
|
-
},
|
|
28775
|
-
alignCenter: {
|
|
28776
|
-
type: Boolean,
|
|
28777
|
-
default: false
|
|
28778
|
-
},
|
|
28818
|
+
center: Boolean,
|
|
28819
|
+
alignCenter: Boolean,
|
|
28779
28820
|
closeIcon: {
|
|
28780
28821
|
type: iconPropType
|
|
28781
28822
|
},
|
|
@@ -28783,14 +28824,8 @@
|
|
|
28783
28824
|
type: String,
|
|
28784
28825
|
default: ""
|
|
28785
28826
|
},
|
|
28786
|
-
draggable:
|
|
28787
|
-
|
|
28788
|
-
default: false
|
|
28789
|
-
},
|
|
28790
|
-
fullscreen: {
|
|
28791
|
-
type: Boolean,
|
|
28792
|
-
default: false
|
|
28793
|
-
},
|
|
28827
|
+
draggable: Boolean,
|
|
28828
|
+
fullscreen: Boolean,
|
|
28794
28829
|
showClose: {
|
|
28795
28830
|
type: Boolean,
|
|
28796
28831
|
default: true
|
|
@@ -28798,14 +28833,19 @@
|
|
|
28798
28833
|
title: {
|
|
28799
28834
|
type: String,
|
|
28800
28835
|
default: ""
|
|
28836
|
+
},
|
|
28837
|
+
ariaLevel: {
|
|
28838
|
+
type: String,
|
|
28839
|
+
default: "2"
|
|
28801
28840
|
}
|
|
28802
28841
|
});
|
|
28803
28842
|
const dialogContentEmits = {
|
|
28804
28843
|
close: () => true
|
|
28805
28844
|
};
|
|
28806
28845
|
|
|
28807
|
-
const _hoisted_1$B = ["aria-
|
|
28808
|
-
const _hoisted_2$n = ["
|
|
28846
|
+
const _hoisted_1$B = ["aria-level"];
|
|
28847
|
+
const _hoisted_2$n = ["aria-label"];
|
|
28848
|
+
const _hoisted_3$b = ["id"];
|
|
28809
28849
|
const __default__$O = vue.defineComponent({ name: "ElDialogContent" });
|
|
28810
28850
|
const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
|
|
28811
28851
|
...__default__$O,
|
|
@@ -28817,20 +28857,21 @@
|
|
|
28817
28857
|
const { Close } = CloseComponents;
|
|
28818
28858
|
const { dialogRef, headerRef, bodyId, ns, style } = vue.inject(dialogInjectionKey);
|
|
28819
28859
|
const { focusTrapRef } = vue.inject(FOCUS_TRAP_INJECTION_KEY);
|
|
28860
|
+
const dialogKls = vue.computed(() => [
|
|
28861
|
+
ns.b(),
|
|
28862
|
+
ns.is("fullscreen", props.fullscreen),
|
|
28863
|
+
ns.is("draggable", props.draggable),
|
|
28864
|
+
ns.is("align-center", props.alignCenter),
|
|
28865
|
+
{ [ns.m("center")]: props.center },
|
|
28866
|
+
props.customClass
|
|
28867
|
+
]);
|
|
28820
28868
|
const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
|
|
28821
28869
|
const draggable = vue.computed(() => props.draggable);
|
|
28822
28870
|
useDraggable(dialogRef, headerRef, draggable);
|
|
28823
28871
|
return (_ctx, _cache) => {
|
|
28824
28872
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
28825
28873
|
ref: vue.unref(composedDialogRef),
|
|
28826
|
-
class: vue.normalizeClass(
|
|
28827
|
-
vue.unref(ns).b(),
|
|
28828
|
-
vue.unref(ns).is("fullscreen", _ctx.fullscreen),
|
|
28829
|
-
vue.unref(ns).is("draggable", vue.unref(draggable)),
|
|
28830
|
-
vue.unref(ns).is("align-center", _ctx.alignCenter),
|
|
28831
|
-
{ [vue.unref(ns).m("center")]: _ctx.center },
|
|
28832
|
-
_ctx.customClass
|
|
28833
|
-
]),
|
|
28874
|
+
class: vue.normalizeClass(vue.unref(dialogKls)),
|
|
28834
28875
|
style: vue.normalizeStyle(vue.unref(style)),
|
|
28835
28876
|
tabindex: "-1"
|
|
28836
28877
|
}, [
|
|
@@ -28842,8 +28883,9 @@
|
|
|
28842
28883
|
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
28843
28884
|
vue.createElementVNode("span", {
|
|
28844
28885
|
role: "heading",
|
|
28886
|
+
"aria-level": _ctx.ariaLevel,
|
|
28845
28887
|
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
28846
|
-
}, vue.toDisplayString(_ctx.title),
|
|
28888
|
+
}, vue.toDisplayString(_ctx.title), 11, _hoisted_1$B)
|
|
28847
28889
|
]),
|
|
28848
28890
|
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
28849
28891
|
key: 0,
|
|
@@ -28860,14 +28902,14 @@
|
|
|
28860
28902
|
]),
|
|
28861
28903
|
_: 1
|
|
28862
28904
|
}, 8, ["class"])
|
|
28863
|
-
], 10,
|
|
28905
|
+
], 10, _hoisted_2$n)) : vue.createCommentVNode("v-if", true)
|
|
28864
28906
|
], 2),
|
|
28865
28907
|
vue.createElementVNode("div", {
|
|
28866
28908
|
id: vue.unref(bodyId),
|
|
28867
28909
|
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
28868
28910
|
}, [
|
|
28869
28911
|
vue.renderSlot(_ctx.$slots, "default")
|
|
28870
|
-
], 10,
|
|
28912
|
+
], 10, _hoisted_3$b),
|
|
28871
28913
|
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("footer", {
|
|
28872
28914
|
key: 0,
|
|
28873
28915
|
class: vue.normalizeClass(vue.unref(ns).e("footer"))
|
|
@@ -28882,17 +28924,11 @@
|
|
|
28882
28924
|
|
|
28883
28925
|
const dialogProps = buildProps({
|
|
28884
28926
|
...dialogContentProps,
|
|
28885
|
-
appendToBody:
|
|
28886
|
-
type: Boolean,
|
|
28887
|
-
default: false
|
|
28888
|
-
},
|
|
28927
|
+
appendToBody: Boolean,
|
|
28889
28928
|
beforeClose: {
|
|
28890
28929
|
type: definePropType(Function)
|
|
28891
28930
|
},
|
|
28892
|
-
destroyOnClose:
|
|
28893
|
-
type: Boolean,
|
|
28894
|
-
default: false
|
|
28895
|
-
},
|
|
28931
|
+
destroyOnClose: Boolean,
|
|
28896
28932
|
closeOnClickModal: {
|
|
28897
28933
|
type: Boolean,
|
|
28898
28934
|
default: true
|
|
@@ -28920,10 +28956,7 @@
|
|
|
28920
28956
|
top: {
|
|
28921
28957
|
type: String
|
|
28922
28958
|
},
|
|
28923
|
-
modelValue:
|
|
28924
|
-
type: Boolean,
|
|
28925
|
-
default: false
|
|
28926
|
-
},
|
|
28959
|
+
modelValue: Boolean,
|
|
28927
28960
|
modalClass: String,
|
|
28928
28961
|
width: {
|
|
28929
28962
|
type: [String, Number]
|
|
@@ -28934,6 +28967,10 @@
|
|
|
28934
28967
|
trapFocus: {
|
|
28935
28968
|
type: Boolean,
|
|
28936
28969
|
default: false
|
|
28970
|
+
},
|
|
28971
|
+
headerAriaLevel: {
|
|
28972
|
+
type: String,
|
|
28973
|
+
default: "2"
|
|
28937
28974
|
}
|
|
28938
28975
|
});
|
|
28939
28976
|
const dialogEmits = {
|
|
@@ -29232,6 +29269,7 @@
|
|
|
29232
29269
|
fullscreen: _ctx.fullscreen,
|
|
29233
29270
|
"show-close": _ctx.showClose,
|
|
29234
29271
|
title: _ctx.title,
|
|
29272
|
+
"aria-level": _ctx.headerAriaLevel,
|
|
29235
29273
|
onClose: vue.unref(handleClose)
|
|
29236
29274
|
}), vue.createSlots({
|
|
29237
29275
|
header: vue.withCtx(() => [
|
|
@@ -29253,7 +29291,7 @@
|
|
|
29253
29291
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
29254
29292
|
])
|
|
29255
29293
|
} : void 0
|
|
29256
|
-
]), 1040, ["custom-class", "center", "align-center", "close-icon", "draggable", "fullscreen", "show-close", "title", "onClose"])) : vue.createCommentVNode("v-if", true)
|
|
29294
|
+
]), 1040, ["custom-class", "center", "align-center", "close-icon", "draggable", "fullscreen", "show-close", "title", "aria-level", "onClose"])) : vue.createCommentVNode("v-if", true)
|
|
29257
29295
|
]),
|
|
29258
29296
|
_: 3
|
|
29259
29297
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
@@ -29343,6 +29381,10 @@
|
|
|
29343
29381
|
modalFade: {
|
|
29344
29382
|
type: Boolean,
|
|
29345
29383
|
default: true
|
|
29384
|
+
},
|
|
29385
|
+
headerAriaLevel: {
|
|
29386
|
+
type: String,
|
|
29387
|
+
default: "2"
|
|
29346
29388
|
}
|
|
29347
29389
|
});
|
|
29348
29390
|
const drawerEmits = dialogEmits;
|
|
@@ -29392,7 +29434,7 @@
|
|
|
29392
29434
|
}
|
|
29393
29435
|
});
|
|
29394
29436
|
const _hoisted_1$z = ["aria-label", "aria-labelledby", "aria-describedby"];
|
|
29395
|
-
const _hoisted_2$m = ["id"];
|
|
29437
|
+
const _hoisted_2$m = ["id", "aria-level"];
|
|
29396
29438
|
const _hoisted_3$a = ["aria-label"];
|
|
29397
29439
|
const _hoisted_4$7 = ["id"];
|
|
29398
29440
|
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -29459,6 +29501,7 @@
|
|
|
29459
29501
|
key: 0,
|
|
29460
29502
|
id: _ctx.titleId,
|
|
29461
29503
|
role: "heading",
|
|
29504
|
+
"aria-level": _ctx.headerAriaLevel,
|
|
29462
29505
|
class: vue.normalizeClass(_ctx.ns.e("title"))
|
|
29463
29506
|
}, vue.toDisplayString(_ctx.title), 11, _hoisted_2$m)) : vue.createCommentVNode("v-if", true)
|
|
29464
29507
|
]) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
@@ -30003,20 +30046,20 @@
|
|
|
30003
30046
|
maxHeight: addUnit(props.maxHeight)
|
|
30004
30047
|
}));
|
|
30005
30048
|
const dropdownTriggerKls = vue.computed(() => [ns.m(dropdownSize.value)]);
|
|
30049
|
+
const trigger = vue.computed(() => castArray$1(props.trigger));
|
|
30006
30050
|
const defaultTriggerId = useId().value;
|
|
30007
30051
|
const triggerId = vue.computed(() => {
|
|
30008
30052
|
return props.id || defaultTriggerId;
|
|
30009
30053
|
});
|
|
30010
|
-
vue.watch([triggeringElementRef,
|
|
30054
|
+
vue.watch([triggeringElementRef, trigger], ([triggeringElement, trigger2], [prevTriggeringElement]) => {
|
|
30011
30055
|
var _a, _b, _c;
|
|
30012
|
-
const triggerArray = isArray$1(trigger) ? trigger : [trigger];
|
|
30013
30056
|
if ((_a = prevTriggeringElement == null ? void 0 : prevTriggeringElement.$el) == null ? void 0 : _a.removeEventListener) {
|
|
30014
30057
|
prevTriggeringElement.$el.removeEventListener("pointerenter", onAutofocusTriggerEnter);
|
|
30015
30058
|
}
|
|
30016
30059
|
if ((_b = triggeringElement == null ? void 0 : triggeringElement.$el) == null ? void 0 : _b.removeEventListener) {
|
|
30017
30060
|
triggeringElement.$el.removeEventListener("pointerenter", onAutofocusTriggerEnter);
|
|
30018
30061
|
}
|
|
30019
|
-
if (((_c = triggeringElement == null ? void 0 : triggeringElement.$el) == null ? void 0 : _c.addEventListener) &&
|
|
30062
|
+
if (((_c = triggeringElement == null ? void 0 : triggeringElement.$el) == null ? void 0 : _c.addEventListener) && trigger2.includes("hover")) {
|
|
30020
30063
|
triggeringElement.$el.addEventListener("pointerenter", onAutofocusTriggerEnter);
|
|
30021
30064
|
}
|
|
30022
30065
|
}, { immediate: true });
|
|
@@ -30049,7 +30092,7 @@
|
|
|
30049
30092
|
}
|
|
30050
30093
|
function onItemLeave() {
|
|
30051
30094
|
const contentEl = vue.unref(contentRef);
|
|
30052
|
-
contentEl == null ? void 0 : contentEl.focus();
|
|
30095
|
+
trigger.value.includes("hover") && (contentEl == null ? void 0 : contentEl.focus());
|
|
30053
30096
|
currentTabId.value = null;
|
|
30054
30097
|
}
|
|
30055
30098
|
function handleCurrentTabIdChange(id) {
|
|
@@ -31725,7 +31768,7 @@
|
|
|
31725
31768
|
} else {
|
|
31726
31769
|
innerInput.removeAttribute("aria-valuemin");
|
|
31727
31770
|
}
|
|
31728
|
-
innerInput.setAttribute("aria-valuenow", String(data.currentValue));
|
|
31771
|
+
innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
|
|
31729
31772
|
innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
|
|
31730
31773
|
if (!isNumber(modelValue) && modelValue != null) {
|
|
31731
31774
|
let val = Number(modelValue);
|
|
@@ -31736,9 +31779,9 @@
|
|
|
31736
31779
|
}
|
|
31737
31780
|
});
|
|
31738
31781
|
vue.onUpdated(() => {
|
|
31739
|
-
var _a;
|
|
31782
|
+
var _a, _b;
|
|
31740
31783
|
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
31741
|
-
innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${data.currentValue}`);
|
|
31784
|
+
innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${(_b = data.currentValue) != null ? _b : ""}`);
|
|
31742
31785
|
});
|
|
31743
31786
|
expose({
|
|
31744
31787
|
focus,
|
|
@@ -32210,6 +32253,8 @@
|
|
|
32210
32253
|
"left-start"
|
|
32211
32254
|
] : [
|
|
32212
32255
|
"right-start",
|
|
32256
|
+
"right",
|
|
32257
|
+
"right-end",
|
|
32213
32258
|
"left-start",
|
|
32214
32259
|
"bottom-start",
|
|
32215
32260
|
"bottom-end",
|
|
@@ -33179,10 +33224,7 @@
|
|
|
33179
33224
|
},
|
|
33180
33225
|
label: [String, Number],
|
|
33181
33226
|
created: Boolean,
|
|
33182
|
-
disabled:
|
|
33183
|
-
type: Boolean,
|
|
33184
|
-
default: false
|
|
33185
|
-
}
|
|
33227
|
+
disabled: Boolean
|
|
33186
33228
|
},
|
|
33187
33229
|
setup(props) {
|
|
33188
33230
|
const ns = useNamespace("select");
|
|
@@ -33296,6 +33338,7 @@
|
|
|
33296
33338
|
return vue.reactive({
|
|
33297
33339
|
options: /* @__PURE__ */ new Map(),
|
|
33298
33340
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
33341
|
+
disabledOptions: /* @__PURE__ */ new Map(),
|
|
33299
33342
|
createdLabel: null,
|
|
33300
33343
|
createdSelected: false,
|
|
33301
33344
|
selected: props.multiple ? [] : {},
|
|
@@ -33314,10 +33357,10 @@
|
|
|
33314
33357
|
menuVisibleOnFocus: false,
|
|
33315
33358
|
isOnComposition: false,
|
|
33316
33359
|
prefixWidth: 11,
|
|
33317
|
-
mouseEnter: false
|
|
33360
|
+
mouseEnter: false,
|
|
33361
|
+
focused: false
|
|
33318
33362
|
});
|
|
33319
33363
|
}
|
|
33320
|
-
let ignoreFocusEvent = false;
|
|
33321
33364
|
const useSelect$3 = (props, states, ctx) => {
|
|
33322
33365
|
const { t } = useLocale();
|
|
33323
33366
|
const ns = useNamespace("select");
|
|
@@ -33351,6 +33394,7 @@
|
|
|
33351
33394
|
});
|
|
33352
33395
|
const iconComponent = vue.computed(() => props.remote && props.filterable && !props.remoteShowSuffix ? "" : props.suffixIcon);
|
|
33353
33396
|
const iconReverse = vue.computed(() => ns.is("reverse", iconComponent.value && states.visible && props.suffixTransition));
|
|
33397
|
+
const showStatusIconAndState = vue.computed(() => (form == null ? void 0 : form.statusIcon) && (formItem == null ? void 0 : formItem.validateState) && ValidateComponentsMap[formItem == null ? void 0 : formItem.validateState]);
|
|
33354
33398
|
const debounce$1 = vue.computed(() => props.remote ? 300 : 0);
|
|
33355
33399
|
const emptyText = vue.computed(() => {
|
|
33356
33400
|
if (props.loading) {
|
|
@@ -33444,7 +33488,6 @@
|
|
|
33444
33488
|
props.remoteMethod("");
|
|
33445
33489
|
}
|
|
33446
33490
|
}
|
|
33447
|
-
input.value && input.value.blur();
|
|
33448
33491
|
states.query = "";
|
|
33449
33492
|
states.previousQuery = null;
|
|
33450
33493
|
states.selectedLabel = "";
|
|
@@ -33503,7 +33546,7 @@
|
|
|
33503
33546
|
resetInputHeight();
|
|
33504
33547
|
}
|
|
33505
33548
|
const inputs = ((_c = selectWrapper.value) == null ? void 0 : _c.querySelectorAll("input")) || [];
|
|
33506
|
-
if (!Array.from(inputs).includes(document.activeElement)) {
|
|
33549
|
+
if (!props.filterable && !props.defaultFirstOption && !isUndefined(props.modelValue) || !Array.from(inputs).includes(document.activeElement)) {
|
|
33507
33550
|
setSelected();
|
|
33508
33551
|
}
|
|
33509
33552
|
if (props.defaultFirstOption && (props.filterable || props.remote) && states.filteredOptionsCount) {
|
|
@@ -33555,9 +33598,11 @@
|
|
|
33555
33598
|
states.hoverIndex = -1;
|
|
33556
33599
|
if (props.multiple && props.filterable) {
|
|
33557
33600
|
vue.nextTick(() => {
|
|
33558
|
-
|
|
33559
|
-
|
|
33560
|
-
|
|
33601
|
+
if (!selectDisabled.value) {
|
|
33602
|
+
const length = input.value.value.length * 15 + 20;
|
|
33603
|
+
states.inputLength = props.collapseTags ? Math.min(50, length) : length;
|
|
33604
|
+
managePlaceholder();
|
|
33605
|
+
}
|
|
33561
33606
|
resetInputHeight();
|
|
33562
33607
|
});
|
|
33563
33608
|
}
|
|
@@ -33622,7 +33667,7 @@
|
|
|
33622
33667
|
let option;
|
|
33623
33668
|
const isObjectValue = toRawType(value).toLowerCase() === "object";
|
|
33624
33669
|
const isNull = toRawType(value).toLowerCase() === "null";
|
|
33625
|
-
const
|
|
33670
|
+
const isUndefined2 = toRawType(value).toLowerCase() === "undefined";
|
|
33626
33671
|
for (let i = states.cachedOptions.size - 1; i >= 0; i--) {
|
|
33627
33672
|
const cachedOption = cachedOptionsArray.value[i];
|
|
33628
33673
|
const isEqualValue = isObjectValue ? get(cachedOption.value, props.valueKey) === get(value, props.valueKey) : cachedOption.value === value;
|
|
@@ -33637,7 +33682,7 @@
|
|
|
33637
33682
|
}
|
|
33638
33683
|
if (option)
|
|
33639
33684
|
return option;
|
|
33640
|
-
const label = isObjectValue ? value.label : !isNull && !
|
|
33685
|
+
const label = isObjectValue ? value.label : !isNull && !isUndefined2 ? value : "";
|
|
33641
33686
|
const newOption = {
|
|
33642
33687
|
value,
|
|
33643
33688
|
currentLabel: label
|
|
@@ -33694,12 +33739,16 @@
|
|
|
33694
33739
|
ctx.emit(CHANGE_EVENT, val);
|
|
33695
33740
|
}
|
|
33696
33741
|
};
|
|
33742
|
+
const getLastNotDisabledIndex = (value) => findLastIndex(value, (it) => !states.disabledOptions.has(it));
|
|
33697
33743
|
const deletePrevTag = (e) => {
|
|
33698
33744
|
if (e.code === EVENT_CODE.delete)
|
|
33699
33745
|
return;
|
|
33700
33746
|
if (e.target.value.length <= 0 && !toggleLastOptionHitState()) {
|
|
33701
33747
|
const value = props.modelValue.slice();
|
|
33702
|
-
value
|
|
33748
|
+
const lastNotDisabledIndex = getLastNotDisabledIndex(value);
|
|
33749
|
+
if (lastNotDisabledIndex < 0)
|
|
33750
|
+
return;
|
|
33751
|
+
value.splice(lastNotDisabledIndex, 1);
|
|
33703
33752
|
ctx.emit(UPDATE_MODEL_EVENT, value);
|
|
33704
33753
|
emitChange(value);
|
|
33705
33754
|
}
|
|
@@ -33717,6 +33766,7 @@
|
|
|
33717
33766
|
ctx.emit("remove-tag", tag.value);
|
|
33718
33767
|
}
|
|
33719
33768
|
event.stopPropagation();
|
|
33769
|
+
focus();
|
|
33720
33770
|
};
|
|
33721
33771
|
const deleteSelected = (event) => {
|
|
33722
33772
|
event.stopPropagation();
|
|
@@ -33732,6 +33782,7 @@
|
|
|
33732
33782
|
states.hoverIndex = -1;
|
|
33733
33783
|
states.visible = false;
|
|
33734
33784
|
ctx.emit("clear");
|
|
33785
|
+
focus();
|
|
33735
33786
|
};
|
|
33736
33787
|
const handleOptionSelect = (option) => {
|
|
33737
33788
|
var _a;
|
|
@@ -33807,6 +33858,7 @@
|
|
|
33807
33858
|
states.filteredOptionsCount++;
|
|
33808
33859
|
states.options.set(vm.value, vm);
|
|
33809
33860
|
states.cachedOptions.set(vm.value, vm);
|
|
33861
|
+
vm.disabled && states.disabledOptions.set(vm.value, vm);
|
|
33810
33862
|
};
|
|
33811
33863
|
const onOptionDestroy = (key, vm) => {
|
|
33812
33864
|
if (states.options.get(key) === vm) {
|
|
@@ -33824,7 +33876,8 @@
|
|
|
33824
33876
|
const toggleLastOptionHitState = (hit) => {
|
|
33825
33877
|
if (!Array.isArray(states.selected))
|
|
33826
33878
|
return;
|
|
33827
|
-
const
|
|
33879
|
+
const lastNotDisabledIndex = getLastNotDisabledIndex(states.selected.map((it) => it.value));
|
|
33880
|
+
const option = states.selected[lastNotDisabledIndex];
|
|
33828
33881
|
if (!option)
|
|
33829
33882
|
return;
|
|
33830
33883
|
if (hit === true || hit === false) {
|
|
@@ -33848,16 +33901,23 @@
|
|
|
33848
33901
|
vue.nextTick(() => scrollToOption(states.selected));
|
|
33849
33902
|
};
|
|
33850
33903
|
const handleFocus = (event) => {
|
|
33851
|
-
if (!
|
|
33904
|
+
if (!states.focused) {
|
|
33852
33905
|
if (props.automaticDropdown || props.filterable) {
|
|
33853
33906
|
if (props.filterable && !states.visible) {
|
|
33854
33907
|
states.menuVisibleOnFocus = true;
|
|
33855
33908
|
}
|
|
33856
33909
|
states.visible = true;
|
|
33857
33910
|
}
|
|
33911
|
+
states.focused = true;
|
|
33858
33912
|
ctx.emit("focus", event);
|
|
33913
|
+
}
|
|
33914
|
+
};
|
|
33915
|
+
const focus = () => {
|
|
33916
|
+
var _a, _b;
|
|
33917
|
+
if (states.visible) {
|
|
33918
|
+
(_a = input.value || reference.value) == null ? void 0 : _a.focus();
|
|
33859
33919
|
} else {
|
|
33860
|
-
|
|
33920
|
+
(_b = reference.value) == null ? void 0 : _b.focus();
|
|
33861
33921
|
}
|
|
33862
33922
|
};
|
|
33863
33923
|
const blur = () => {
|
|
@@ -33867,15 +33927,13 @@
|
|
|
33867
33927
|
(_c = (_b = iOSInput.value) == null ? void 0 : _b.blur) == null ? void 0 : _c.call(_b);
|
|
33868
33928
|
};
|
|
33869
33929
|
const handleBlur = (event) => {
|
|
33870
|
-
|
|
33871
|
-
|
|
33872
|
-
|
|
33873
|
-
|
|
33874
|
-
|
|
33875
|
-
|
|
33876
|
-
|
|
33877
|
-
ctx.emit("blur", event);
|
|
33878
|
-
});
|
|
33930
|
+
var _a, _b, _c;
|
|
33931
|
+
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))) {
|
|
33932
|
+
return;
|
|
33933
|
+
}
|
|
33934
|
+
states.visible && handleClose();
|
|
33935
|
+
states.focused = false;
|
|
33936
|
+
ctx.emit("blur", event);
|
|
33879
33937
|
};
|
|
33880
33938
|
const handleClearClick = (event) => {
|
|
33881
33939
|
deleteSelected(event);
|
|
@@ -33891,7 +33949,6 @@
|
|
|
33891
33949
|
}
|
|
33892
33950
|
};
|
|
33893
33951
|
const toggleMenu = (e) => {
|
|
33894
|
-
var _a;
|
|
33895
33952
|
if (e && !states.mouseEnter) {
|
|
33896
33953
|
return;
|
|
33897
33954
|
}
|
|
@@ -33903,9 +33960,7 @@
|
|
|
33903
33960
|
states.visible = !states.visible;
|
|
33904
33961
|
}
|
|
33905
33962
|
}
|
|
33906
|
-
|
|
33907
|
-
(_a = input.value || reference.value) == null ? void 0 : _a.focus();
|
|
33908
|
-
}
|
|
33963
|
+
focus();
|
|
33909
33964
|
}
|
|
33910
33965
|
};
|
|
33911
33966
|
const selectOption = () => {
|
|
@@ -33962,6 +34017,10 @@
|
|
|
33962
34017
|
deleteTag(event, tag);
|
|
33963
34018
|
(_b = (_a = tagTooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
|
|
33964
34019
|
};
|
|
34020
|
+
const selectTagsStyle = vue.computed(() => ({
|
|
34021
|
+
maxWidth: `${vue.unref(states.inputWidth) - 32 - (showStatusIconAndState.value ? 22 : 0)}px`,
|
|
34022
|
+
width: "100%"
|
|
34023
|
+
}));
|
|
33965
34024
|
return {
|
|
33966
34025
|
optionList,
|
|
33967
34026
|
optionsArray,
|
|
@@ -33992,6 +34051,7 @@
|
|
|
33992
34051
|
onOptionDestroy,
|
|
33993
34052
|
handleMenuEnter,
|
|
33994
34053
|
handleFocus,
|
|
34054
|
+
focus,
|
|
33995
34055
|
blur,
|
|
33996
34056
|
handleBlur,
|
|
33997
34057
|
handleClearClick,
|
|
@@ -34007,6 +34067,7 @@
|
|
|
34007
34067
|
groupQueryChange,
|
|
34008
34068
|
showTagList,
|
|
34009
34069
|
collapseTagList,
|
|
34070
|
+
selectTagsStyle,
|
|
34010
34071
|
reference,
|
|
34011
34072
|
input,
|
|
34012
34073
|
iOSInput,
|
|
@@ -34138,10 +34199,7 @@
|
|
|
34138
34199
|
default: "value"
|
|
34139
34200
|
},
|
|
34140
34201
|
collapseTags: Boolean,
|
|
34141
|
-
collapseTagsTooltip:
|
|
34142
|
-
type: Boolean,
|
|
34143
|
-
default: false
|
|
34144
|
-
},
|
|
34202
|
+
collapseTagsTooltip: Boolean,
|
|
34145
34203
|
maxCollapseTags: {
|
|
34146
34204
|
type: Number,
|
|
34147
34205
|
default: 1
|
|
@@ -34155,10 +34213,7 @@
|
|
|
34155
34213
|
type: iconPropType,
|
|
34156
34214
|
default: circle_close_default
|
|
34157
34215
|
},
|
|
34158
|
-
fitInputWidth:
|
|
34159
|
-
type: Boolean,
|
|
34160
|
-
default: false
|
|
34161
|
-
},
|
|
34216
|
+
fitInputWidth: Boolean,
|
|
34162
34217
|
suffixIcon: {
|
|
34163
34218
|
type: iconPropType,
|
|
34164
34219
|
default: arrow_down_default
|
|
@@ -34168,10 +34223,7 @@
|
|
|
34168
34223
|
type: Boolean,
|
|
34169
34224
|
default: true
|
|
34170
34225
|
},
|
|
34171
|
-
remoteShowSuffix:
|
|
34172
|
-
type: Boolean,
|
|
34173
|
-
default: false
|
|
34174
|
-
},
|
|
34226
|
+
remoteShowSuffix: Boolean,
|
|
34175
34227
|
suffixTransition: {
|
|
34176
34228
|
type: Boolean,
|
|
34177
34229
|
default: true
|
|
@@ -34180,6 +34232,10 @@
|
|
|
34180
34232
|
type: String,
|
|
34181
34233
|
values: Ee,
|
|
34182
34234
|
default: "bottom-start"
|
|
34235
|
+
},
|
|
34236
|
+
ariaLabel: {
|
|
34237
|
+
type: String,
|
|
34238
|
+
default: void 0
|
|
34183
34239
|
}
|
|
34184
34240
|
},
|
|
34185
34241
|
emits: [
|
|
@@ -34226,6 +34282,7 @@
|
|
|
34226
34282
|
onOptionDestroy,
|
|
34227
34283
|
handleMenuEnter,
|
|
34228
34284
|
handleFocus,
|
|
34285
|
+
focus,
|
|
34229
34286
|
blur,
|
|
34230
34287
|
handleBlur,
|
|
34231
34288
|
handleClearClick,
|
|
@@ -34250,9 +34307,9 @@
|
|
|
34250
34307
|
handleMouseEnter,
|
|
34251
34308
|
handleMouseLeave,
|
|
34252
34309
|
showTagList,
|
|
34253
|
-
collapseTagList
|
|
34310
|
+
collapseTagList,
|
|
34311
|
+
selectTagsStyle
|
|
34254
34312
|
} = useSelect$3(props, states, ctx);
|
|
34255
|
-
const { focus } = useFocus(reference);
|
|
34256
34313
|
const {
|
|
34257
34314
|
inputWidth,
|
|
34258
34315
|
selected,
|
|
@@ -34303,10 +34360,6 @@
|
|
|
34303
34360
|
const scrollbarKls = vue.computed(() => [
|
|
34304
34361
|
nsSelect.is("empty", !props.allowCreate && Boolean(vue.unref(query)) && vue.unref(filteredOptionsCount) === 0)
|
|
34305
34362
|
]);
|
|
34306
|
-
const selectTagsStyle = vue.computed(() => ({
|
|
34307
|
-
maxWidth: `${vue.unref(inputWidth) - 32}px`,
|
|
34308
|
-
width: "100%"
|
|
34309
|
-
}));
|
|
34310
34363
|
const tagTextStyle = vue.computed(() => {
|
|
34311
34364
|
const maxWidth = vue.unref(inputWidth) > 123 ? vue.unref(inputWidth) - 123 : vue.unref(inputWidth) - 75;
|
|
34312
34365
|
return { maxWidth: `${maxWidth}px` };
|
|
@@ -34410,6 +34463,7 @@
|
|
|
34410
34463
|
handleComposition,
|
|
34411
34464
|
handleMenuEnter,
|
|
34412
34465
|
handleFocus,
|
|
34466
|
+
focus,
|
|
34413
34467
|
blur,
|
|
34414
34468
|
handleBlur,
|
|
34415
34469
|
handleClearClick,
|
|
@@ -34420,7 +34474,6 @@
|
|
|
34420
34474
|
getValueKey,
|
|
34421
34475
|
navigateOptions,
|
|
34422
34476
|
dropMenuVisible,
|
|
34423
|
-
focus,
|
|
34424
34477
|
reference,
|
|
34425
34478
|
input,
|
|
34426
34479
|
iOSInput,
|
|
@@ -34447,7 +34500,7 @@
|
|
|
34447
34500
|
};
|
|
34448
34501
|
}
|
|
34449
34502
|
});
|
|
34450
|
-
const _hoisted_1$n = ["disabled", "autocomplete"];
|
|
34503
|
+
const _hoisted_1$n = ["disabled", "autocomplete", "aria-label"];
|
|
34451
34504
|
const _hoisted_2$f = ["disabled"];
|
|
34452
34505
|
const _hoisted_3$8 = { style: { "height": "100%", "display": "flex", "justify-content": "center", "align-items": "center" } };
|
|
34453
34506
|
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -34463,9 +34516,9 @@
|
|
|
34463
34516
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
34464
34517
|
ref: "selectWrapper",
|
|
34465
34518
|
class: vue.normalizeClass(_ctx.wrapperKls),
|
|
34466
|
-
onMouseenter: _cache[
|
|
34467
|
-
onMouseleave: _cache[
|
|
34468
|
-
onClick: _cache[
|
|
34519
|
+
onMouseenter: _cache[22] || (_cache[22] = (...args) => _ctx.handleMouseEnter && _ctx.handleMouseEnter(...args)),
|
|
34520
|
+
onMouseleave: _cache[23] || (_cache[23] = (...args) => _ctx.handleMouseLeave && _ctx.handleMouseLeave(...args)),
|
|
34521
|
+
onClick: _cache[24] || (_cache[24] = vue.withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"]))
|
|
34469
34522
|
}, [
|
|
34470
34523
|
vue.createVNode(_component_el_tooltip, {
|
|
34471
34524
|
ref: "tooltipRef",
|
|
@@ -34487,14 +34540,16 @@
|
|
|
34487
34540
|
default: vue.withCtx(() => [
|
|
34488
34541
|
vue.createElementVNode("div", {
|
|
34489
34542
|
class: "select-trigger",
|
|
34490
|
-
onMouseenter: _cache[
|
|
34491
|
-
onMouseleave: _cache[
|
|
34543
|
+
onMouseenter: _cache[20] || (_cache[20] = ($event) => _ctx.inputHovering = true),
|
|
34544
|
+
onMouseleave: _cache[21] || (_cache[21] = ($event) => _ctx.inputHovering = false)
|
|
34492
34545
|
}, [
|
|
34493
34546
|
_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
34494
34547
|
key: 0,
|
|
34495
34548
|
ref: "tags",
|
|
34549
|
+
tabindex: "-1",
|
|
34496
34550
|
class: vue.normalizeClass(_ctx.tagsKls),
|
|
34497
|
-
style: vue.normalizeStyle(_ctx.selectTagsStyle)
|
|
34551
|
+
style: vue.normalizeStyle(_ctx.selectTagsStyle),
|
|
34552
|
+
onClick: _cache[15] || (_cache[15] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
34498
34553
|
}, [
|
|
34499
34554
|
_ctx.collapseTags && _ctx.selected.length ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
34500
34555
|
key: 0,
|
|
@@ -34631,6 +34686,7 @@
|
|
|
34631
34686
|
disabled: _ctx.selectDisabled,
|
|
34632
34687
|
autocomplete: _ctx.autocomplete,
|
|
34633
34688
|
style: vue.normalizeStyle(_ctx.inputStyle),
|
|
34689
|
+
"aria-label": _ctx.ariaLabel,
|
|
34634
34690
|
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
34635
34691
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
|
|
34636
34692
|
onKeyup: _cache[3] || (_cache[3] = (...args) => _ctx.managePlaceholder && _ctx.managePlaceholder(...args)),
|
|
@@ -34663,7 +34719,7 @@
|
|
|
34663
34719
|
id: _ctx.id,
|
|
34664
34720
|
ref: "reference",
|
|
34665
34721
|
modelValue: _ctx.selectedLabel,
|
|
34666
|
-
"onUpdate:modelValue": _cache[
|
|
34722
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => _ctx.selectedLabel = $event),
|
|
34667
34723
|
type: "text",
|
|
34668
34724
|
placeholder: typeof _ctx.currentPlaceholder === "function" ? _ctx.currentPlaceholder() : _ctx.currentPlaceholder,
|
|
34669
34725
|
name: _ctx.name,
|
|
@@ -34674,6 +34730,7 @@
|
|
|
34674
34730
|
"validate-event": false,
|
|
34675
34731
|
class: vue.normalizeClass([_ctx.nsSelect.is("focus", _ctx.visible)]),
|
|
34676
34732
|
tabindex: _ctx.multiple && _ctx.filterable ? -1 : void 0,
|
|
34733
|
+
label: _ctx.ariaLabel,
|
|
34677
34734
|
onFocus: _ctx.handleFocus,
|
|
34678
34735
|
onBlur: _ctx.handleBlur,
|
|
34679
34736
|
onInput: _ctx.debouncedOnInputChange,
|
|
@@ -34682,11 +34739,11 @@
|
|
|
34682
34739
|
onCompositionupdate: _ctx.handleComposition,
|
|
34683
34740
|
onCompositionend: _ctx.handleComposition,
|
|
34684
34741
|
onKeydown: [
|
|
34685
|
-
_cache[
|
|
34686
|
-
_cache[
|
|
34742
|
+
_cache[17] || (_cache[17] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"])),
|
|
34743
|
+
_cache[18] || (_cache[18] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"])),
|
|
34687
34744
|
vue.withKeys(vue.withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
|
|
34688
34745
|
vue.withKeys(_ctx.handleKeydownEscape, ["esc"]),
|
|
34689
|
-
_cache[
|
|
34746
|
+
_cache[19] || (_cache[19] = vue.withKeys(($event) => _ctx.visible = false, ["tab"]))
|
|
34690
34747
|
]
|
|
34691
34748
|
}, vue.createSlots({
|
|
34692
34749
|
suffix: vue.withCtx(() => [
|
|
@@ -34720,7 +34777,7 @@
|
|
|
34720
34777
|
])
|
|
34721
34778
|
])
|
|
34722
34779
|
} : void 0
|
|
34723
|
-
]), 1032, ["id", "modelValue", "placeholder", "name", "autocomplete", "size", "disabled", "readonly", "class", "tabindex", "onFocus", "onBlur", "onInput", "onPaste", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onKeydown"])
|
|
34780
|
+
]), 1032, ["id", "modelValue", "placeholder", "name", "autocomplete", "size", "disabled", "readonly", "class", "tabindex", "label", "onFocus", "onBlur", "onInput", "onPaste", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onKeydown"])
|
|
34724
34781
|
], 32)
|
|
34725
34782
|
]),
|
|
34726
34783
|
content: vue.withCtx(() => [
|
|
@@ -34773,10 +34830,7 @@
|
|
|
34773
34830
|
componentName: "ElOptionGroup",
|
|
34774
34831
|
props: {
|
|
34775
34832
|
label: String,
|
|
34776
|
-
disabled:
|
|
34777
|
-
type: Boolean,
|
|
34778
|
-
default: false
|
|
34779
|
-
}
|
|
34833
|
+
disabled: Boolean
|
|
34780
34834
|
},
|
|
34781
34835
|
setup(props) {
|
|
34782
34836
|
const ns = useNamespace("select");
|
|
@@ -41654,6 +41708,12 @@
|
|
|
41654
41708
|
type: Boolean,
|
|
41655
41709
|
default: false
|
|
41656
41710
|
},
|
|
41711
|
+
inactiveActionIcon: {
|
|
41712
|
+
type: iconPropType
|
|
41713
|
+
},
|
|
41714
|
+
activeActionIcon: {
|
|
41715
|
+
type: iconPropType
|
|
41716
|
+
},
|
|
41657
41717
|
activeIcon: {
|
|
41658
41718
|
type: iconPropType
|
|
41659
41719
|
},
|
|
@@ -41929,7 +41989,17 @@
|
|
|
41929
41989
|
vue.createVNode(vue.unref(loading_default))
|
|
41930
41990
|
]),
|
|
41931
41991
|
_: 1
|
|
41932
|
-
}, 8, ["class"])) : vue.
|
|
41992
|
+
}, 8, ["class"])) : _ctx.activeActionIcon && vue.unref(checked) ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), { key: 1 }, {
|
|
41993
|
+
default: vue.withCtx(() => [
|
|
41994
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.activeActionIcon)))
|
|
41995
|
+
]),
|
|
41996
|
+
_: 1
|
|
41997
|
+
})) : _ctx.inactiveActionIcon && !vue.unref(checked) ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), { key: 2 }, {
|
|
41998
|
+
default: vue.withCtx(() => [
|
|
41999
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.inactiveActionIcon)))
|
|
42000
|
+
]),
|
|
42001
|
+
_: 1
|
|
42002
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
41933
42003
|
], 2)
|
|
41934
42004
|
], 6),
|
|
41935
42005
|
!_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -44462,8 +44532,16 @@
|
|
|
44462
44532
|
const range = document.createRange();
|
|
44463
44533
|
range.setStart(cellChild, 0);
|
|
44464
44534
|
range.setEnd(cellChild, cellChild.childNodes.length);
|
|
44465
|
-
|
|
44466
|
-
|
|
44535
|
+
let rangeWidth = range.getBoundingClientRect().width;
|
|
44536
|
+
let rangeHeight = range.getBoundingClientRect().height;
|
|
44537
|
+
const offsetWidth = rangeWidth - Math.floor(rangeWidth);
|
|
44538
|
+
if (offsetWidth < 1e-3) {
|
|
44539
|
+
rangeWidth = Math.floor(rangeWidth);
|
|
44540
|
+
}
|
|
44541
|
+
const offsetHeight = rangeHeight - Math.floor(rangeHeight);
|
|
44542
|
+
if (offsetHeight < 1e-3) {
|
|
44543
|
+
rangeHeight = Math.floor(rangeHeight);
|
|
44544
|
+
}
|
|
44467
44545
|
const { top, left, right, bottom } = getPadding(cellChild);
|
|
44468
44546
|
const horizontalPadding = left + right;
|
|
44469
44547
|
const verticalPadding = top + bottom;
|
|
@@ -44652,7 +44730,7 @@
|
|
|
44652
44730
|
if (!rowspan || !colspan) {
|
|
44653
44731
|
return null;
|
|
44654
44732
|
}
|
|
44655
|
-
const columnData = {
|
|
44733
|
+
const columnData = Object.assign({}, column);
|
|
44656
44734
|
columnData.realWidth = getColspanRealWidth(columns.value, colspan, cellIndex);
|
|
44657
44735
|
const data = {
|
|
44658
44736
|
store: props.store,
|
|
@@ -44837,11 +44915,7 @@
|
|
|
44837
44915
|
vue.watch(props.store.states.hoverRow, (newVal, oldVal) => {
|
|
44838
44916
|
if (!props.store.states.isComplex.value || !isClient)
|
|
44839
44917
|
return;
|
|
44840
|
-
|
|
44841
|
-
if (!raf) {
|
|
44842
|
-
raf = (fn) => window.setTimeout(fn, 16);
|
|
44843
|
-
}
|
|
44844
|
-
raf(() => {
|
|
44918
|
+
rAF(() => {
|
|
44845
44919
|
const el = instance == null ? void 0 : instance.vnode.el;
|
|
44846
44920
|
const rows = Array.from((el == null ? void 0 : el.children) || []).filter((e) => e == null ? void 0 : e.classList.contains(`${ns.e("row")}`));
|
|
44847
44921
|
const oldRow = rows[oldVal];
|
|
@@ -45877,7 +45951,7 @@
|
|
|
45877
45951
|
};
|
|
45878
45952
|
const cellForced = {
|
|
45879
45953
|
selection: {
|
|
45880
|
-
renderHeader({ store }) {
|
|
45954
|
+
renderHeader({ store, column }) {
|
|
45881
45955
|
function isDisabled() {
|
|
45882
45956
|
return store.states.data.value && store.states.data.value.length === 0;
|
|
45883
45957
|
}
|
|
@@ -45886,7 +45960,8 @@
|
|
|
45886
45960
|
size: store.states.tableSize.value,
|
|
45887
45961
|
indeterminate: store.states.selection.value.length > 0 && !store.states.isAllSelected.value,
|
|
45888
45962
|
"onUpdate:modelValue": store.toggleAllSelection,
|
|
45889
|
-
modelValue: store.states.isAllSelected.value
|
|
45963
|
+
modelValue: store.states.isAllSelected.value,
|
|
45964
|
+
ariaLabel: column.label
|
|
45890
45965
|
});
|
|
45891
45966
|
},
|
|
45892
45967
|
renderCell({
|
|
@@ -45902,7 +45977,8 @@
|
|
|
45902
45977
|
store.commit("rowSelectedChanged", row);
|
|
45903
45978
|
},
|
|
45904
45979
|
onClick: (event) => event.stopPropagation(),
|
|
45905
|
-
modelValue: store.isSelected(row)
|
|
45980
|
+
modelValue: store.isSelected(row),
|
|
45981
|
+
ariaLabel: column.label
|
|
45906
45982
|
});
|
|
45907
45983
|
},
|
|
45908
45984
|
sortable: false,
|
|
@@ -46075,6 +46151,7 @@
|
|
|
46075
46151
|
"label",
|
|
46076
46152
|
"filters",
|
|
46077
46153
|
"filterMultiple",
|
|
46154
|
+
"filteredValue",
|
|
46078
46155
|
"sortable",
|
|
46079
46156
|
"index",
|
|
46080
46157
|
"formatter",
|
|
@@ -48342,7 +48419,7 @@
|
|
|
48342
48419
|
data: _data,
|
|
48343
48420
|
fixedData,
|
|
48344
48421
|
estimatedRowHeight,
|
|
48345
|
-
bodyWidth: vue.unref(bodyWidth),
|
|
48422
|
+
bodyWidth: vue.unref(bodyWidth) + vScrollbarSize,
|
|
48346
48423
|
headerHeight,
|
|
48347
48424
|
headerWidth: vue.unref(headerWidth),
|
|
48348
48425
|
height: vue.unref(mainTableHeight),
|
|
@@ -51573,7 +51650,7 @@
|
|
|
51573
51650
|
expanded.value = true;
|
|
51574
51651
|
childNodeRendered.value = true;
|
|
51575
51652
|
}
|
|
51576
|
-
const childrenKey = tree.props["children"] || "children";
|
|
51653
|
+
const childrenKey = tree.props.props["children"] || "children";
|
|
51577
51654
|
vue.watch(() => {
|
|
51578
51655
|
const children = props.node.data[childrenKey];
|
|
51579
51656
|
return children && [...children];
|
|
@@ -53136,7 +53213,7 @@
|
|
|
53136
53213
|
}
|
|
53137
53214
|
function isCurrent(node) {
|
|
53138
53215
|
const current = currentKey.value;
|
|
53139
|
-
return
|
|
53216
|
+
return current !== void 0 && current === node.key;
|
|
53140
53217
|
}
|
|
53141
53218
|
function getCurrentNode() {
|
|
53142
53219
|
var _a, _b;
|
|
@@ -53472,7 +53549,7 @@
|
|
|
53472
53549
|
const formData = new FormData();
|
|
53473
53550
|
if (option.data) {
|
|
53474
53551
|
for (const [key, value] of Object.entries(option.data)) {
|
|
53475
|
-
if (
|
|
53552
|
+
if (isArray$1(value) && value.length)
|
|
53476
53553
|
formData.append(key, ...value);
|
|
53477
53554
|
else
|
|
53478
53555
|
formData.append(key, value);
|
|
@@ -54211,7 +54288,6 @@
|
|
|
54211
54288
|
props: uploadProps,
|
|
54212
54289
|
setup(__props, { expose }) {
|
|
54213
54290
|
const props = __props;
|
|
54214
|
-
const slots = vue.useSlots();
|
|
54215
54291
|
const disabled = useFormDisabled();
|
|
54216
54292
|
const uploadRef = vue.shallowRef();
|
|
54217
54293
|
const {
|
|
@@ -54267,8 +54343,8 @@
|
|
|
54267
54343
|
ref: uploadRef
|
|
54268
54344
|
}, vue.unref(uploadContentProps)), {
|
|
54269
54345
|
default: vue.withCtx(() => [
|
|
54270
|
-
|
|
54271
|
-
!
|
|
54346
|
+
_ctx.$slots.trigger ? vue.renderSlot(_ctx.$slots, "trigger", { key: 0 }) : vue.createCommentVNode("v-if", true),
|
|
54347
|
+
!_ctx.$slots.trigger && _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 1 }) : vue.createCommentVNode("v-if", true)
|
|
54272
54348
|
]),
|
|
54273
54349
|
_: 3
|
|
54274
54350
|
}, 16)
|
|
@@ -54288,8 +54364,8 @@
|
|
|
54288
54364
|
ref: uploadRef
|
|
54289
54365
|
}, vue.unref(uploadContentProps)), {
|
|
54290
54366
|
default: vue.withCtx(() => [
|
|
54291
|
-
|
|
54292
|
-
!
|
|
54367
|
+
_ctx.$slots.trigger ? vue.renderSlot(_ctx.$slots, "trigger", { key: 0 }) : vue.createCommentVNode("v-if", true),
|
|
54368
|
+
!_ctx.$slots.trigger && _ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 1 }) : vue.createCommentVNode("v-if", true)
|
|
54293
54369
|
]),
|
|
54294
54370
|
_: 3
|
|
54295
54371
|
}, 16)) : vue.createCommentVNode("v-if", true),
|