element-plus 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +225 -110
- package/dist/index.full.min.js +22 -22
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +22 -22
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +225 -111
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/my.js +191 -0
- package/dist/locale/my.min.js +2 -0
- package/dist/locale/my.min.js.map +1 -0
- package/dist/locale/my.min.mjs +2 -0
- package/dist/locale/my.min.mjs.map +1 -0
- package/dist/locale/my.mjs +183 -0
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix2.mjs +11 -9
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/button/src/use-button.mjs +4 -0
- package/es/components/button/src/use-button.mjs.map +1 -1
- package/es/components/carousel/index.mjs +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +3 -3
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/constants.d.ts +1 -0
- package/es/components/carousel/src/constants.mjs +2 -1
- package/es/components/carousel/src/constants.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel-item.d.ts +1 -1
- package/es/components/carousel/src/use-carousel-item.mjs +4 -4
- package/es/components/carousel/src/use-carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel.mjs +3 -4
- package/es/components/carousel/src/use-carousel.mjs.map +1 -1
- package/es/components/cascader/src/cascader.d.ts +3 -0
- package/es/components/cascader/src/cascader.mjs +10 -0
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +6 -0
- package/es/components/cascader/src/cascader2.mjs +3 -10
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs +3 -9
- package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs +3 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.vue.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +7 -4
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
- package/es/components/date-picker/src/props/basic-date-table.d.ts +1 -1
- package/es/components/date-picker/src/props/basic-month-table.d.ts +1 -1
- package/es/components/date-picker/src/props/basic-year-table.d.ts +1 -1
- package/es/components/date-picker/src/props/shared.d.ts +2 -1
- package/es/components/date-picker/src/props/shared.mjs.map +1 -1
- package/es/components/date-picker/src/utils.d.ts +4 -0
- package/es/components/date-picker/src/utils.mjs +34 -1
- package/es/components/date-picker/src/utils.mjs.map +1 -1
- package/es/components/descriptions/src/description-item.d.ts +5 -1
- package/es/components/descriptions/src/description-item.mjs +4 -0
- package/es/components/descriptions/src/description-item.mjs.map +1 -1
- package/es/components/descriptions/src/description.d.ts +2 -0
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +16 -1
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-cell.mjs +7 -3
- package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions.type.d.ts +1 -0
- package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +2 -2
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog2.mjs +4 -3
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/input/src/input.d.ts +0 -2
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +4 -2
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.d.ts +2 -0
- package/es/components/mention/src/mention-dropdown.mjs +3 -1
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.vue.d.ts +5 -0
- package/es/components/mention/src/mention-dropdown2.mjs +12 -3
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +26 -3
- package/es/components/mention/src/mention2.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs +36 -19
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +19 -36
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +4 -0
- package/es/components/popconfirm/src/popconfirm2.mjs +28 -23
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +1 -4
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/select/src/options.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +6 -2
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +6 -2
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/table/src/store/watcher.mjs +3 -2
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table.mjs +6 -2
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +3 -1
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/tree/index.d.ts +1 -0
- package/es/components/tree/index.mjs.map +1 -1
- package/es/components/tree/src/model/tree-store.mjs +1 -0
- package/es/components/tree/src/model/tree-store.mjs.map +1 -1
- package/es/components/tree/src/model/useDragNode.mjs +3 -1
- package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs +4 -4
- package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-list.mjs +3 -4
- package/es/components/virtual-list/src/builders/build-list.mjs.map +1 -1
- package/es/hooks/use-draggable/index.d.ts +1 -1
- package/es/hooks/use-draggable/index.mjs +2 -2
- package/es/hooks/use-draggable/index.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/index.d.ts +1 -0
- package/es/locale/index.mjs +1 -0
- package/es/locale/index.mjs.map +1 -1
- package/es/locale/lang/my.d.ts +180 -0
- package/es/locale/lang/my.mjs +182 -0
- package/es/locale/lang/my.mjs.map +1 -0
- package/es/locales.mjs +1 -0
- package/es/locales.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/global.d.ts +1 -0
- package/lib/components/affix/src/affix2.js +11 -9
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/button/src/use-button.js +4 -0
- package/lib/components/button/src/use-button.js.map +1 -1
- package/lib/components/carousel/index.js +1 -0
- package/lib/components/carousel/index.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +3 -3
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/constants.d.ts +1 -0
- package/lib/components/carousel/src/constants.js +2 -0
- package/lib/components/carousel/src/constants.js.map +1 -1
- package/lib/components/carousel/src/use-carousel-item.d.ts +1 -1
- package/lib/components/carousel/src/use-carousel-item.js +3 -3
- package/lib/components/carousel/src/use-carousel-item.js.map +1 -1
- package/lib/components/carousel/src/use-carousel.js +2 -3
- package/lib/components/carousel/src/use-carousel.js.map +1 -1
- package/lib/components/cascader/src/cascader.d.ts +3 -0
- package/lib/components/cascader/src/cascader.js +10 -0
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +6 -0
- package/lib/components/cascader/src/cascader2.js +3 -10
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.vue.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.js +4 -10
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.vue.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.js +3 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.vue.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +10 -7
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
- package/lib/components/date-picker/src/props/basic-date-table.d.ts +1 -1
- package/lib/components/date-picker/src/props/basic-month-table.d.ts +1 -1
- package/lib/components/date-picker/src/props/basic-year-table.d.ts +1 -1
- package/lib/components/date-picker/src/props/shared.d.ts +2 -1
- package/lib/components/date-picker/src/props/shared.js.map +1 -1
- package/lib/components/date-picker/src/utils.d.ts +4 -0
- package/lib/components/date-picker/src/utils.js +36 -0
- package/lib/components/date-picker/src/utils.js.map +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +5 -1
- package/lib/components/descriptions/src/description-item.js +4 -0
- package/lib/components/descriptions/src/description-item.js.map +1 -1
- package/lib/components/descriptions/src/description.d.ts +2 -0
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +16 -1
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-cell.js +7 -3
- package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
- package/lib/components/descriptions/src/descriptions.type.d.ts +1 -0
- package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog-content2.js +2 -2
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog2.js +4 -3
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/src/input.d.ts +0 -2
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +4 -2
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.d.ts +2 -0
- package/lib/components/mention/src/mention-dropdown.js +3 -1
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.vue.d.ts +5 -0
- package/lib/components/mention/src/mention-dropdown2.js +12 -3
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention2.js +32 -9
- package/lib/components/mention/src/mention2.js.map +1 -1
- package/lib/components/pagination/src/components/next.js +36 -19
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +19 -36
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +4 -0
- package/lib/components/popconfirm/src/popconfirm2.js +27 -22
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +1 -4
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/select/src/options.js.map +1 -1
- package/lib/components/select/src/select2.js +6 -2
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/src/select.js +6 -2
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/table/src/store/watcher.js +3 -2
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table.js +6 -2
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +3 -1
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/tree/index.d.ts +1 -0
- package/lib/components/tree/index.js.map +1 -1
- package/lib/components/tree/src/model/tree-store.js +1 -0
- package/lib/components/tree/src/model/tree-store.js.map +1 -1
- package/lib/components/tree/src/model/useDragNode.js +3 -1
- package/lib/components/tree/src/model/useDragNode.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.js +3 -3
- package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-list.js +2 -3
- package/lib/components/virtual-list/src/builders/build-list.js.map +1 -1
- package/lib/hooks/use-draggable/index.d.ts +1 -1
- package/lib/hooks/use-draggable/index.js +2 -2
- package/lib/hooks/use-draggable/index.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +2 -0
- package/lib/locale/index.js.map +1 -1
- package/lib/locale/lang/my.d.ts +180 -0
- package/lib/locale/lang/my.js +186 -0
- package/lib/locale/lang/my.js.map +1 -0
- package/lib/locales.js +2 -0
- package/lib/locales.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-date-picker.css +1 -1
- package/theme-chalk/el-dialog.css +1 -1
- package/theme-chalk/el-input-number.css +1 -1
- package/theme-chalk/el-popper.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +1 -1
- package/theme-chalk/src/date-picker/date-picker.scss +1 -1
- package/theme-chalk/src/date-picker/picker.scss +1 -0
- package/theme-chalk/src/input-number.scss +1 -0
- package/theme-chalk/src/popper.scss +2 -2
- package/web-types.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v2.8.
|
|
1
|
+
/*! Element Plus v2.8.1 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -8869,7 +8869,7 @@
|
|
|
8869
8869
|
dragRef.value.removeEventListener("mousedown", onMousedown);
|
|
8870
8870
|
}
|
|
8871
8871
|
};
|
|
8872
|
-
const
|
|
8872
|
+
const resetPosition = () => {
|
|
8873
8873
|
transform = {
|
|
8874
8874
|
offsetX: 0,
|
|
8875
8875
|
offsetY: 0
|
|
@@ -8891,7 +8891,7 @@
|
|
|
8891
8891
|
offDraggable();
|
|
8892
8892
|
});
|
|
8893
8893
|
return {
|
|
8894
|
-
|
|
8894
|
+
resetPosition
|
|
8895
8895
|
};
|
|
8896
8896
|
};
|
|
8897
8897
|
|
|
@@ -11559,7 +11559,7 @@
|
|
|
11559
11559
|
|
|
11560
11560
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11561
11561
|
|
|
11562
|
-
const version$1 = "2.8.
|
|
11562
|
+
const version$1 = "2.8.1";
|
|
11563
11563
|
|
|
11564
11564
|
const makeInstaller = (components = []) => {
|
|
11565
11565
|
const install = (app, options) => {
|
|
@@ -11657,20 +11657,22 @@
|
|
|
11657
11657
|
if (!scrollContainer.value)
|
|
11658
11658
|
return;
|
|
11659
11659
|
scrollTop.value = scrollContainer.value instanceof Window ? document.documentElement.scrollTop : scrollContainer.value.scrollTop || 0;
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11660
|
+
const { position, target: target2, offset } = props;
|
|
11661
|
+
const rootHeightOffset = offset + rootHeight.value;
|
|
11662
|
+
if (position === "top") {
|
|
11663
|
+
if (target2) {
|
|
11664
|
+
const difference = targetRect.bottom.value - rootHeightOffset;
|
|
11665
|
+
fixed.value = offset > rootTop.value && targetRect.bottom.value > 0;
|
|
11664
11666
|
transform.value = difference < 0 ? difference : 0;
|
|
11665
11667
|
} else {
|
|
11666
|
-
fixed.value =
|
|
11668
|
+
fixed.value = offset > rootTop.value;
|
|
11667
11669
|
}
|
|
11668
|
-
} else if (
|
|
11669
|
-
const difference = windowHeight.value - targetRect.top.value -
|
|
11670
|
-
fixed.value = windowHeight.value -
|
|
11670
|
+
} else if (target2) {
|
|
11671
|
+
const difference = windowHeight.value - targetRect.top.value - rootHeightOffset;
|
|
11672
|
+
fixed.value = windowHeight.value - offset < rootBottom.value && windowHeight.value > targetRect.top.value;
|
|
11671
11673
|
transform.value = difference < 0 ? -difference : 0;
|
|
11672
11674
|
} else {
|
|
11673
|
-
fixed.value = windowHeight.value -
|
|
11675
|
+
fixed.value = windowHeight.value - offset < rootBottom.value;
|
|
11674
11676
|
}
|
|
11675
11677
|
};
|
|
11676
11678
|
const handleScroll = () => {
|
|
@@ -13913,7 +13915,7 @@
|
|
|
13913
13915
|
const countStyle = vue.ref();
|
|
13914
13916
|
const textareaCalcStyle = vue.shallowRef(props.inputStyle);
|
|
13915
13917
|
const _ref = vue.computed(() => input.value || textarea.value);
|
|
13916
|
-
const { wrapperRef, isFocused } = useFocusController(_ref, {
|
|
13918
|
+
const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(_ref, {
|
|
13917
13919
|
afterBlur() {
|
|
13918
13920
|
var _a;
|
|
13919
13921
|
if (props.validateEvent) {
|
|
@@ -14258,9 +14260,11 @@
|
|
|
14258
14260
|
onCompositionupdate: vue.unref(handleCompositionUpdate),
|
|
14259
14261
|
onCompositionend: vue.unref(handleCompositionEnd),
|
|
14260
14262
|
onInput: handleInput,
|
|
14263
|
+
onFocus: vue.unref(handleFocus),
|
|
14264
|
+
onBlur: vue.unref(handleBlur),
|
|
14261
14265
|
onChange: handleChange,
|
|
14262
14266
|
onKeydown: handleKeydown
|
|
14263
|
-
}), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
|
|
14267
|
+
}), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
|
|
14264
14268
|
vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
14265
14269
|
key: 0,
|
|
14266
14270
|
style: vue.normalizeStyle(countStyle.value),
|
|
@@ -17199,6 +17203,10 @@
|
|
|
17199
17203
|
return false;
|
|
17200
17204
|
});
|
|
17201
17205
|
const handleClick = (evt) => {
|
|
17206
|
+
if (_disabled.value || props.loading) {
|
|
17207
|
+
evt.stopPropagation();
|
|
17208
|
+
return;
|
|
17209
|
+
}
|
|
17202
17210
|
if (props.nativeType === "reset") {
|
|
17203
17211
|
form == null ? void 0 : form.resetFields();
|
|
17204
17212
|
}
|
|
@@ -19046,7 +19054,9 @@
|
|
|
19046
19054
|
const availableResult = pickerOptions.value.getRangeAvailableTime(dayOrDays);
|
|
19047
19055
|
if (!isEqual$1(availableResult, dayOrDays)) {
|
|
19048
19056
|
dayOrDays = availableResult;
|
|
19049
|
-
|
|
19057
|
+
if (!valueIsEmpty.value) {
|
|
19058
|
+
emitInput(isArray$1(dayOrDays) ? dayOrDays.map((_) => _.toDate()) : dayOrDays.toDate());
|
|
19059
|
+
}
|
|
19050
19060
|
}
|
|
19051
19061
|
}
|
|
19052
19062
|
if (isArray$1(dayOrDays) && dayOrDays.some((day) => !day)) {
|
|
@@ -21218,6 +21228,7 @@
|
|
|
21218
21228
|
};
|
|
21219
21229
|
|
|
21220
21230
|
const carouselContextKey = Symbol("carouselContextKey");
|
|
21231
|
+
const CAROUSEL_ITEM_NAME = "ElCarouselItem";
|
|
21221
21232
|
|
|
21222
21233
|
const THROTTLE_TIME = 300;
|
|
21223
21234
|
const useCarousel = (props, emit, componentName) => {
|
|
@@ -21225,7 +21236,7 @@
|
|
|
21225
21236
|
children: items,
|
|
21226
21237
|
addChild: addItem,
|
|
21227
21238
|
removeChild: removeItem
|
|
21228
|
-
} = useOrderedChildren(vue.getCurrentInstance(),
|
|
21239
|
+
} = useOrderedChildren(vue.getCurrentInstance(), CAROUSEL_ITEM_NAME);
|
|
21229
21240
|
const slots = vue.useSlots();
|
|
21230
21241
|
const activeIndex = vue.ref(-1);
|
|
21231
21242
|
const timer = vue.ref(null);
|
|
@@ -21408,9 +21419,8 @@
|
|
|
21408
21419
|
if (!defaultSlots)
|
|
21409
21420
|
return null;
|
|
21410
21421
|
const flatSlots = flattedChildren(defaultSlots);
|
|
21411
|
-
const carouselItemsName = "ElCarouselItem";
|
|
21412
21422
|
const normalizeSlots = flatSlots.filter((slot) => {
|
|
21413
|
-
return vue.isVNode(slot) && slot.type.name ===
|
|
21423
|
+
return vue.isVNode(slot) && slot.type.name === CAROUSEL_ITEM_NAME;
|
|
21414
21424
|
});
|
|
21415
21425
|
if ((normalizeSlots == null ? void 0 : normalizeSlots.length) === 2 && props.loop && !isCardType.value) {
|
|
21416
21426
|
isItemsTwoLength.value = true;
|
|
@@ -21701,7 +21711,7 @@
|
|
|
21701
21711
|
}
|
|
21702
21712
|
});
|
|
21703
21713
|
|
|
21704
|
-
const useCarouselItem = (props
|
|
21714
|
+
const useCarouselItem = (props) => {
|
|
21705
21715
|
const carouselContext = vue.inject(carouselContextKey);
|
|
21706
21716
|
const instance = vue.getCurrentInstance();
|
|
21707
21717
|
const carouselItemRef = vue.ref();
|
|
@@ -21813,7 +21823,7 @@
|
|
|
21813
21823
|
};
|
|
21814
21824
|
|
|
21815
21825
|
const __default__$1n = vue.defineComponent({
|
|
21816
|
-
name:
|
|
21826
|
+
name: CAROUSEL_ITEM_NAME
|
|
21817
21827
|
});
|
|
21818
21828
|
const _sfc_main$1Y = /* @__PURE__ */ vue.defineComponent({
|
|
21819
21829
|
...__default__$1n,
|
|
@@ -23768,6 +23778,15 @@
|
|
|
23768
23778
|
type: definePropType(Function),
|
|
23769
23779
|
default: () => true
|
|
23770
23780
|
},
|
|
23781
|
+
placement: {
|
|
23782
|
+
type: definePropType(String),
|
|
23783
|
+
values: Ee,
|
|
23784
|
+
default: "bottom-start"
|
|
23785
|
+
},
|
|
23786
|
+
fallbackPlacements: {
|
|
23787
|
+
type: definePropType(Array),
|
|
23788
|
+
default: ["bottom-start", "bottom", "top-start", "top", "right", "left"]
|
|
23789
|
+
},
|
|
23771
23790
|
popperClass: {
|
|
23772
23791
|
type: String,
|
|
23773
23792
|
default: ""
|
|
@@ -24183,17 +24202,10 @@
|
|
|
24183
24202
|
teleported: _ctx.teleported,
|
|
24184
24203
|
"popper-class": [vue.unref(nsCascader).e("dropdown"), _ctx.popperClass],
|
|
24185
24204
|
"popper-options": popperOptions,
|
|
24186
|
-
"fallback-placements":
|
|
24187
|
-
"bottom-start",
|
|
24188
|
-
"bottom",
|
|
24189
|
-
"top-start",
|
|
24190
|
-
"top",
|
|
24191
|
-
"right",
|
|
24192
|
-
"left"
|
|
24193
|
-
],
|
|
24205
|
+
"fallback-placements": _ctx.fallbackPlacements,
|
|
24194
24206
|
"stop-popper-mouse-event": false,
|
|
24195
24207
|
"gpu-acceleration": false,
|
|
24196
|
-
placement:
|
|
24208
|
+
placement: _ctx.placement,
|
|
24197
24209
|
transition: `${vue.unref(nsCascader).namespace.value}-zoom-in-top`,
|
|
24198
24210
|
effect: "light",
|
|
24199
24211
|
pure: "",
|
|
@@ -24394,7 +24406,7 @@
|
|
|
24394
24406
|
]) : vue.createCommentVNode("v-if", true)
|
|
24395
24407
|
]),
|
|
24396
24408
|
_: 3
|
|
24397
|
-
}, 8, ["visible", "teleported", "popper-class", "transition", "persistent"]);
|
|
24409
|
+
}, 8, ["visible", "teleported", "popper-class", "fallback-placements", "placement", "transition", "persistent"]);
|
|
24398
24410
|
};
|
|
24399
24411
|
}
|
|
24400
24412
|
});
|
|
@@ -26576,16 +26588,6 @@
|
|
|
26576
26588
|
}
|
|
26577
26589
|
});
|
|
26578
26590
|
|
|
26579
|
-
const basicDateTableProps = buildProps({
|
|
26580
|
-
...datePickerSharedProps,
|
|
26581
|
-
cellClassName: {
|
|
26582
|
-
type: definePropType(Function)
|
|
26583
|
-
},
|
|
26584
|
-
showWeekNumber: Boolean,
|
|
26585
|
-
selectionMode: selectionModeWithDefault("date")
|
|
26586
|
-
});
|
|
26587
|
-
const basicDateTableEmits = ["changerange", "pick", "select"];
|
|
26588
|
-
|
|
26589
26591
|
const isValidRange = (range) => {
|
|
26590
26592
|
if (!isArray$1(range))
|
|
26591
26593
|
return false;
|
|
@@ -26656,6 +26658,47 @@
|
|
|
26656
26658
|
setRowMetadata == null ? void 0 : setRowMetadata(row);
|
|
26657
26659
|
}
|
|
26658
26660
|
};
|
|
26661
|
+
const datesInMonth = (year, month, lang) => {
|
|
26662
|
+
const firstDay = dayjs().locale(lang).startOf("month").month(month).year(year);
|
|
26663
|
+
const numOfDays = firstDay.daysInMonth();
|
|
26664
|
+
return rangeArr(numOfDays).map((n) => firstDay.add(n, "day").toDate());
|
|
26665
|
+
};
|
|
26666
|
+
const getValidDateOfMonth = (year, month, lang, disabledDate) => {
|
|
26667
|
+
const _value = dayjs().year(year).month(month).startOf("month");
|
|
26668
|
+
const _date = datesInMonth(year, month, lang).find((date) => {
|
|
26669
|
+
return !(disabledDate == null ? void 0 : disabledDate(date));
|
|
26670
|
+
});
|
|
26671
|
+
if (_date) {
|
|
26672
|
+
return dayjs(_date).locale(lang);
|
|
26673
|
+
}
|
|
26674
|
+
return _value.locale(lang);
|
|
26675
|
+
};
|
|
26676
|
+
const getValidDateOfYear = (value, lang, disabledDate) => {
|
|
26677
|
+
const year = value.year();
|
|
26678
|
+
if (!(disabledDate == null ? void 0 : disabledDate(value.toDate()))) {
|
|
26679
|
+
return value.locale(lang);
|
|
26680
|
+
}
|
|
26681
|
+
const month = value.month();
|
|
26682
|
+
if (!datesInMonth(year, month, lang).every(disabledDate)) {
|
|
26683
|
+
return getValidDateOfMonth(year, month, lang, disabledDate);
|
|
26684
|
+
}
|
|
26685
|
+
for (let i = 0; i < 12; i++) {
|
|
26686
|
+
if (!datesInMonth(year, i, lang).every(disabledDate)) {
|
|
26687
|
+
return getValidDateOfMonth(year, i, lang, disabledDate);
|
|
26688
|
+
}
|
|
26689
|
+
}
|
|
26690
|
+
return value;
|
|
26691
|
+
};
|
|
26692
|
+
|
|
26693
|
+
const basicDateTableProps = buildProps({
|
|
26694
|
+
...datePickerSharedProps,
|
|
26695
|
+
cellClassName: {
|
|
26696
|
+
type: definePropType(Function)
|
|
26697
|
+
},
|
|
26698
|
+
showWeekNumber: Boolean,
|
|
26699
|
+
selectionMode: selectionModeWithDefault("date")
|
|
26700
|
+
});
|
|
26701
|
+
const basicDateTableEmits = ["changerange", "pick", "select"];
|
|
26659
26702
|
|
|
26660
26703
|
const isNormalDay = (type = "") => {
|
|
26661
26704
|
return ["normal", "today"].includes(type);
|
|
@@ -27122,11 +27165,6 @@
|
|
|
27122
27165
|
emits: ["changerange", "pick", "select"],
|
|
27123
27166
|
setup(__props, { expose, emit }) {
|
|
27124
27167
|
const props = __props;
|
|
27125
|
-
const datesInMonth = (year, month, lang2) => {
|
|
27126
|
-
const firstDay = dayjs().locale(lang2).startOf("month").month(month).year(year);
|
|
27127
|
-
const numOfDays = firstDay.daysInMonth();
|
|
27128
|
-
return rangeArr(numOfDays).map((n) => firstDay.add(n, "day").toDate());
|
|
27129
|
-
};
|
|
27130
27168
|
const ns = useNamespace("month-table");
|
|
27131
27169
|
const { t, lang } = useLocale();
|
|
27132
27170
|
const tbodyRef = vue.ref();
|
|
@@ -27248,8 +27286,8 @@
|
|
|
27248
27286
|
emit("pick", castArray(props.parsedValue), false);
|
|
27249
27287
|
return;
|
|
27250
27288
|
}
|
|
27251
|
-
const newMonth = props.date.
|
|
27252
|
-
const newValue = hasClass(target, "current") ? castArray(props.parsedValue).filter((d) =>
|
|
27289
|
+
const newMonth = getValidDateOfMonth(props.date.year(), month, lang.value, props.disabledDate);
|
|
27290
|
+
const newValue = hasClass(target, "current") ? castArray(props.parsedValue).filter((d) => (d == null ? void 0 : d.month()) !== newMonth.month()) : castArray(props.parsedValue).concat([dayjs(newMonth)]);
|
|
27253
27291
|
emit("pick", newValue);
|
|
27254
27292
|
} else if (props.selectionMode === "range") {
|
|
27255
27293
|
if (!props.rangeState.selecting) {
|
|
@@ -27448,7 +27486,8 @@
|
|
|
27448
27486
|
emit("pick", castArray(props.parsedValue), false);
|
|
27449
27487
|
return;
|
|
27450
27488
|
}
|
|
27451
|
-
const
|
|
27489
|
+
const vaildYear = getValidDateOfYear(newDate.startOf("year"), lang.value, props.disabledDate);
|
|
27490
|
+
const newValue = hasClass(target, "current") ? castArray(props.parsedValue).filter((d) => (d == null ? void 0 : d.year()) !== selectedYear) : castArray(props.parsedValue).concat([vaildYear]);
|
|
27452
27491
|
emit("pick", newValue);
|
|
27453
27492
|
} else {
|
|
27454
27493
|
emit("pick", selectedYear);
|
|
@@ -27653,12 +27692,12 @@
|
|
|
27653
27692
|
const hasShortcuts = vue.computed(() => !!shortcuts.length);
|
|
27654
27693
|
const handleMonthPick = async (month2, keepOpen) => {
|
|
27655
27694
|
if (selectionMode.value === "month") {
|
|
27656
|
-
innerDate.value = innerDate.value.
|
|
27695
|
+
innerDate.value = getValidDateOfMonth(innerDate.value.year(), month2, lang.value, disabledDate);
|
|
27657
27696
|
emit(innerDate.value, false);
|
|
27658
27697
|
} else if (selectionMode.value === "months") {
|
|
27659
27698
|
emit(month2, keepOpen != null ? keepOpen : true);
|
|
27660
27699
|
} else {
|
|
27661
|
-
innerDate.value = innerDate.value.
|
|
27700
|
+
innerDate.value = getValidDateOfMonth(innerDate.value.year(), month2, lang.value, disabledDate);
|
|
27662
27701
|
currentView.value = "date";
|
|
27663
27702
|
if (["month", "year", "date", "week"].includes(selectionMode.value)) {
|
|
27664
27703
|
emit(innerDate.value, true);
|
|
@@ -27670,12 +27709,14 @@
|
|
|
27670
27709
|
};
|
|
27671
27710
|
const handleYearPick = async (year2, keepOpen) => {
|
|
27672
27711
|
if (selectionMode.value === "year") {
|
|
27673
|
-
|
|
27712
|
+
const data = innerDate.value.startOf("year").year(year2);
|
|
27713
|
+
innerDate.value = getValidDateOfYear(data, lang.value, disabledDate);
|
|
27674
27714
|
emit(innerDate.value, false);
|
|
27675
27715
|
} else if (selectionMode.value === "years") {
|
|
27676
27716
|
emit(year2, keepOpen != null ? keepOpen : true);
|
|
27677
27717
|
} else {
|
|
27678
|
-
|
|
27718
|
+
const data = innerDate.value.year(year2);
|
|
27719
|
+
innerDate.value = getValidDateOfYear(data, lang.value, disabledDate);
|
|
27679
27720
|
currentView.value = "month";
|
|
27680
27721
|
if (["month", "year", "date", "week"].includes(selectionMode.value)) {
|
|
27681
27722
|
emit(innerDate.value, true);
|
|
@@ -29743,6 +29784,7 @@
|
|
|
29743
29784
|
const label = ((_d = (_c = (_b = this.cell) == null ? void 0 : _b.children) == null ? void 0 : _c.label) == null ? void 0 : _d.call(_c)) || item.label;
|
|
29744
29785
|
const content = (_g = (_f = (_e = this.cell) == null ? void 0 : _e.children) == null ? void 0 : _f.default) == null ? void 0 : _g.call(_f);
|
|
29745
29786
|
const span = item.span;
|
|
29787
|
+
const rowspan = item.rowspan;
|
|
29746
29788
|
const align = item.align ? `is-${item.align}` : "";
|
|
29747
29789
|
const labelAlign = item.labelAlign ? `is-${item.labelAlign}` : align;
|
|
29748
29790
|
const className = item.className;
|
|
@@ -29764,7 +29806,8 @@
|
|
|
29764
29806
|
labelAlign,
|
|
29765
29807
|
labelClassName
|
|
29766
29808
|
],
|
|
29767
|
-
colSpan: isVertical ? span : 1
|
|
29809
|
+
colSpan: isVertical ? span : 1,
|
|
29810
|
+
rowspan: isVertical ? 1 : rowspan
|
|
29768
29811
|
}, label), directives);
|
|
29769
29812
|
case "content":
|
|
29770
29813
|
return vue.withDirectives(vue.h(this.tag, {
|
|
@@ -29777,13 +29820,15 @@
|
|
|
29777
29820
|
align,
|
|
29778
29821
|
className
|
|
29779
29822
|
],
|
|
29780
|
-
colSpan: isVertical ? span : span * 2 - 1
|
|
29823
|
+
colSpan: isVertical ? span : span * 2 - 1,
|
|
29824
|
+
rowspan: isVertical ? rowspan * 2 - 1 : rowspan
|
|
29781
29825
|
}, content), directives);
|
|
29782
29826
|
default:
|
|
29783
29827
|
return vue.withDirectives(vue.h("td", {
|
|
29784
29828
|
style,
|
|
29785
29829
|
class: [ns.e("cell"), align],
|
|
29786
|
-
colSpan: span
|
|
29830
|
+
colSpan: span,
|
|
29831
|
+
rowspan
|
|
29787
29832
|
}, [
|
|
29788
29833
|
!isNil(label) ? vue.h("span", {
|
|
29789
29834
|
class: [ns.e("label"), labelClassName]
|
|
@@ -29921,9 +29966,24 @@
|
|
|
29921
29966
|
let temp = [];
|
|
29922
29967
|
let count = props.column;
|
|
29923
29968
|
let totalSpan = 0;
|
|
29969
|
+
const rowspanTemp = [];
|
|
29924
29970
|
children.forEach((node, index) => {
|
|
29925
|
-
var _a;
|
|
29971
|
+
var _a, _b, _c;
|
|
29926
29972
|
const span = ((_a = node.props) == null ? void 0 : _a.span) || 1;
|
|
29973
|
+
const rowspan = ((_b = node.props) == null ? void 0 : _b.rowspan) || 1;
|
|
29974
|
+
const rowNo = rows.length;
|
|
29975
|
+
rowspanTemp[rowNo] || (rowspanTemp[rowNo] = 0);
|
|
29976
|
+
if (rowspan > 1) {
|
|
29977
|
+
for (let i = 1; i < rowspan; i++) {
|
|
29978
|
+
rowspanTemp[_c = rowNo + i] || (rowspanTemp[_c] = 0);
|
|
29979
|
+
rowspanTemp[rowNo + i]++;
|
|
29980
|
+
totalSpan++;
|
|
29981
|
+
}
|
|
29982
|
+
}
|
|
29983
|
+
if (rowspanTemp[rowNo] > 0) {
|
|
29984
|
+
count -= rowspanTemp[rowNo];
|
|
29985
|
+
rowspanTemp[rowNo] = 0;
|
|
29986
|
+
}
|
|
29927
29987
|
if (index < children.length - 1) {
|
|
29928
29988
|
totalSpan += span > count ? count : span;
|
|
29929
29989
|
}
|
|
@@ -29999,6 +30059,10 @@
|
|
|
29999
30059
|
type: Number,
|
|
30000
30060
|
default: 1
|
|
30001
30061
|
},
|
|
30062
|
+
rowspan: {
|
|
30063
|
+
type: Number,
|
|
30064
|
+
default: 1
|
|
30065
|
+
},
|
|
30002
30066
|
width: {
|
|
30003
30067
|
type: [String, Number],
|
|
30004
30068
|
default: ""
|
|
@@ -30140,9 +30204,9 @@
|
|
|
30140
30204
|
const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
|
|
30141
30205
|
const draggable = vue.computed(() => props.draggable);
|
|
30142
30206
|
const overflow = vue.computed(() => props.overflow);
|
|
30143
|
-
const {
|
|
30207
|
+
const { resetPosition } = useDraggable(dialogRef, headerRef, draggable, overflow);
|
|
30144
30208
|
expose({
|
|
30145
|
-
|
|
30209
|
+
resetPosition
|
|
30146
30210
|
});
|
|
30147
30211
|
return (_ctx, _cache) => {
|
|
30148
30212
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -30479,13 +30543,14 @@
|
|
|
30479
30543
|
});
|
|
30480
30544
|
const overlayEvent = useSameTarget(onModalClick);
|
|
30481
30545
|
const draggable = vue.computed(() => props.draggable && !props.fullscreen);
|
|
30482
|
-
const
|
|
30483
|
-
|
|
30546
|
+
const resetPosition = () => {
|
|
30547
|
+
var _a;
|
|
30548
|
+
(_a = dialogContentRef.value) == null ? void 0 : _a.resetPosition();
|
|
30484
30549
|
};
|
|
30485
30550
|
expose({
|
|
30486
30551
|
visible,
|
|
30487
30552
|
dialogContentRef,
|
|
30488
|
-
|
|
30553
|
+
resetPosition
|
|
30489
30554
|
});
|
|
30490
30555
|
return (_ctx, _cache) => {
|
|
30491
30556
|
return vue.openBlock(), vue.createBlock(vue.unref(ElTeleport$1), {
|
|
@@ -35484,7 +35549,7 @@
|
|
|
35484
35549
|
_ctx.nsSelect.is("filterable", _ctx.filterable),
|
|
35485
35550
|
_ctx.nsSelect.is("disabled", _ctx.selectDisabled)
|
|
35486
35551
|
]),
|
|
35487
|
-
onClick: vue.withModifiers(_ctx.toggleMenu, ["prevent"
|
|
35552
|
+
onClick: vue.withModifiers(_ctx.toggleMenu, ["prevent"])
|
|
35488
35553
|
}, [
|
|
35489
35554
|
_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
35490
35555
|
key: 0,
|
|
@@ -35684,7 +35749,11 @@
|
|
|
35684
35749
|
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
35685
35750
|
_ctx.showClose && _ctx.clearIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
35686
35751
|
key: 1,
|
|
35687
|
-
class: vue.normalizeClass([
|
|
35752
|
+
class: vue.normalizeClass([
|
|
35753
|
+
_ctx.nsSelect.e("caret"),
|
|
35754
|
+
_ctx.nsSelect.e("icon"),
|
|
35755
|
+
_ctx.nsSelect.e("clear")
|
|
35756
|
+
]),
|
|
35688
35757
|
onClick: _ctx.handleClearClick
|
|
35689
35758
|
}, {
|
|
35690
35759
|
default: vue.withCtx(() => [
|
|
@@ -36635,28 +36704,33 @@
|
|
|
36635
36704
|
vue.createElementVNode("div", {
|
|
36636
36705
|
class: vue.normalizeClass(vue.unref(ns).e("action"))
|
|
36637
36706
|
}, [
|
|
36638
|
-
vue.
|
|
36639
|
-
|
|
36640
|
-
|
|
36641
|
-
|
|
36642
|
-
|
|
36643
|
-
|
|
36644
|
-
|
|
36645
|
-
|
|
36646
|
-
|
|
36647
|
-
|
|
36648
|
-
|
|
36649
|
-
|
|
36650
|
-
|
|
36651
|
-
|
|
36652
|
-
|
|
36653
|
-
|
|
36654
|
-
|
|
36655
|
-
|
|
36656
|
-
|
|
36657
|
-
|
|
36658
|
-
|
|
36659
|
-
|
|
36707
|
+
vue.renderSlot(_ctx.$slots, "actions", {
|
|
36708
|
+
confirm,
|
|
36709
|
+
cancel
|
|
36710
|
+
}, () => [
|
|
36711
|
+
vue.createVNode(vue.unref(ElButton), {
|
|
36712
|
+
size: "small",
|
|
36713
|
+
type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
|
|
36714
|
+
text: _ctx.cancelButtonType === "text",
|
|
36715
|
+
onClick: cancel
|
|
36716
|
+
}, {
|
|
36717
|
+
default: vue.withCtx(() => [
|
|
36718
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(finalCancelButtonText)), 1)
|
|
36719
|
+
]),
|
|
36720
|
+
_: 1
|
|
36721
|
+
}, 8, ["type", "text"]),
|
|
36722
|
+
vue.createVNode(vue.unref(ElButton), {
|
|
36723
|
+
size: "small",
|
|
36724
|
+
type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
|
|
36725
|
+
text: _ctx.confirmButtonType === "text",
|
|
36726
|
+
onClick: confirm
|
|
36727
|
+
}, {
|
|
36728
|
+
default: vue.withCtx(() => [
|
|
36729
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(finalConfirmButtonText)), 1)
|
|
36730
|
+
]),
|
|
36731
|
+
_: 1
|
|
36732
|
+
}, 8, ["type", "text"])
|
|
36733
|
+
])
|
|
36660
36734
|
], 2)
|
|
36661
36735
|
], 2)
|
|
36662
36736
|
]),
|
|
@@ -38286,13 +38360,12 @@
|
|
|
38286
38360
|
const children = [];
|
|
38287
38361
|
if (total > 0) {
|
|
38288
38362
|
for (let i = start; i <= end; i++) {
|
|
38289
|
-
children.push((_a = $slots.default) == null ? void 0 : _a.call($slots, {
|
|
38363
|
+
children.push(vue.h(vue.Fragment, { key: i }, (_a = $slots.default) == null ? void 0 : _a.call($slots, {
|
|
38290
38364
|
data,
|
|
38291
|
-
key: i,
|
|
38292
38365
|
index: i,
|
|
38293
38366
|
isScrolling: useIsScrolling ? states.isScrolling : void 0,
|
|
38294
38367
|
style: getItemStyle(i)
|
|
38295
|
-
}));
|
|
38368
|
+
})));
|
|
38296
38369
|
}
|
|
38297
38370
|
}
|
|
38298
38371
|
const InnerNode = [
|
|
@@ -38954,14 +39027,14 @@
|
|
|
38954
39027
|
if (totalRow > 0 && totalColumn > 0) {
|
|
38955
39028
|
for (let row = rowStart; row <= rowEnd; row++) {
|
|
38956
39029
|
for (let column = columnStart; column <= columnEnd; column++) {
|
|
38957
|
-
|
|
39030
|
+
const key = itemKey({ columnIndex: column, data, rowIndex: row });
|
|
39031
|
+
children.push(vue.h(vue.Fragment, { key }, (_a = slots.default) == null ? void 0 : _a.call(slots, {
|
|
38958
39032
|
columnIndex: column,
|
|
38959
39033
|
data,
|
|
38960
|
-
key: itemKey({ columnIndex: column, data, rowIndex: row }),
|
|
38961
39034
|
isScrolling: useIsScrolling ? vue.unref(states).isScrolling : void 0,
|
|
38962
39035
|
style: getItemStyle(row, column),
|
|
38963
39036
|
rowIndex: row
|
|
38964
|
-
}));
|
|
39037
|
+
})));
|
|
38965
39038
|
}
|
|
38966
39039
|
}
|
|
38967
39040
|
}
|
|
@@ -40627,7 +40700,7 @@
|
|
|
40627
40700
|
_ctx.nsSelect.is("filterable", _ctx.filterable),
|
|
40628
40701
|
_ctx.nsSelect.is("disabled", _ctx.selectDisabled)
|
|
40629
40702
|
]),
|
|
40630
|
-
onClick: vue.withModifiers(_ctx.toggleMenu, ["prevent"
|
|
40703
|
+
onClick: vue.withModifiers(_ctx.toggleMenu, ["prevent"])
|
|
40631
40704
|
}, [
|
|
40632
40705
|
_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
40633
40706
|
key: 0,
|
|
@@ -40828,7 +40901,11 @@
|
|
|
40828
40901
|
]) : vue.createCommentVNode("v-if", true),
|
|
40829
40902
|
_ctx.showClearBtn && _ctx.clearIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
40830
40903
|
key: 1,
|
|
40831
|
-
class: vue.normalizeClass([
|
|
40904
|
+
class: vue.normalizeClass([
|
|
40905
|
+
_ctx.nsSelect.e("caret"),
|
|
40906
|
+
_ctx.nsInput.e("icon"),
|
|
40907
|
+
_ctx.nsSelect.e("clear")
|
|
40908
|
+
]),
|
|
40832
40909
|
onClick: vue.withModifiers(_ctx.handleClear, ["prevent", "stop"])
|
|
40833
40910
|
}, {
|
|
40834
40911
|
default: vue.withCtx(() => [
|
|
@@ -43722,7 +43799,7 @@
|
|
|
43722
43799
|
}
|
|
43723
43800
|
};
|
|
43724
43801
|
const isSelected = (row) => {
|
|
43725
|
-
return selection.value.
|
|
43802
|
+
return selection.value.some((item) => isEqual$1(item, row));
|
|
43726
43803
|
};
|
|
43727
43804
|
const clearSelection = () => {
|
|
43728
43805
|
isAllSelected.value = false;
|
|
@@ -43761,7 +43838,7 @@
|
|
|
43761
43838
|
children: (_b = (_a2 = instance == null ? void 0 : instance.store) == null ? void 0 : _a2.states) == null ? void 0 : _b.childrenColumnName.value,
|
|
43762
43839
|
checkStrictly: (_d = (_c = instance == null ? void 0 : instance.store) == null ? void 0 : _c.states) == null ? void 0 : _d.checkStrictly.value
|
|
43763
43840
|
};
|
|
43764
|
-
const changed = toggleRowStatus(selection.value, row, selected, treeProps
|
|
43841
|
+
const changed = toggleRowStatus(selection.value, row, selected, treeProps);
|
|
43765
43842
|
if (changed) {
|
|
43766
43843
|
const newSelection = (selection.value || []).slice();
|
|
43767
43844
|
if (emitChange) {
|
|
@@ -46576,9 +46653,13 @@
|
|
|
46576
46653
|
doLayout,
|
|
46577
46654
|
debouncedUpdateLayout
|
|
46578
46655
|
};
|
|
46579
|
-
const computedSumText = vue.computed(() =>
|
|
46656
|
+
const computedSumText = vue.computed(() => {
|
|
46657
|
+
var _a;
|
|
46658
|
+
return (_a = props.sumText) != null ? _a : t("el.table.sumText");
|
|
46659
|
+
});
|
|
46580
46660
|
const computedEmptyText = vue.computed(() => {
|
|
46581
|
-
|
|
46661
|
+
var _a;
|
|
46662
|
+
return (_a = props.emptyText) != null ? _a : t("el.table.emptyText");
|
|
46582
46663
|
});
|
|
46583
46664
|
const columns = vue.computed(() => {
|
|
46584
46665
|
return convertToRows(store.states.originColumns.value)[0];
|
|
@@ -52128,6 +52209,7 @@
|
|
|
52128
52209
|
setData(newVal) {
|
|
52129
52210
|
const instanceChanged = newVal !== this.root.data;
|
|
52130
52211
|
if (instanceChanged) {
|
|
52212
|
+
this.nodesMap = {};
|
|
52131
52213
|
this.root.setData(newVal);
|
|
52132
52214
|
this._initDefaultCheckedNodes();
|
|
52133
52215
|
} else {
|
|
@@ -52532,7 +52614,9 @@
|
|
|
52532
52614
|
const treeNodeDragEnd = (event) => {
|
|
52533
52615
|
const { draggingNode, dropType, dropNode } = dragState.value;
|
|
52534
52616
|
event.preventDefault();
|
|
52535
|
-
event.dataTransfer
|
|
52617
|
+
if (event.dataTransfer) {
|
|
52618
|
+
event.dataTransfer.dropEffect = "move";
|
|
52619
|
+
}
|
|
52536
52620
|
if (draggingNode && dropNode) {
|
|
52537
52621
|
const draggingNodeCopy = { data: draggingNode.node.data };
|
|
52538
52622
|
if (dropType !== "none") {
|
|
@@ -56957,7 +57041,6 @@
|
|
|
56957
57041
|
isInit: false,
|
|
56958
57042
|
width: 0,
|
|
56959
57043
|
translateX: 0,
|
|
56960
|
-
disabled: false,
|
|
56961
57044
|
focusVisible: false
|
|
56962
57045
|
});
|
|
56963
57046
|
const handleChange = (item) => {
|
|
@@ -56995,7 +57078,6 @@
|
|
|
56995
57078
|
if (!selectedItem || !selectedItemInput) {
|
|
56996
57079
|
state.width = 0;
|
|
56997
57080
|
state.translateX = 0;
|
|
56998
|
-
state.disabled = false;
|
|
56999
57081
|
state.focusVisible = false;
|
|
57000
57082
|
return;
|
|
57001
57083
|
}
|
|
@@ -57003,7 +57085,6 @@
|
|
|
57003
57085
|
state.isInit = true;
|
|
57004
57086
|
state.width = rect.width;
|
|
57005
57087
|
state.translateX = selectedItem.offsetLeft;
|
|
57006
|
-
state.disabled = getDisabled(getOption(props.modelValue));
|
|
57007
57088
|
try {
|
|
57008
57089
|
state.focusVisible = selectedItemInput.matches(":focus-visible");
|
|
57009
57090
|
} catch (e) {
|
|
@@ -57021,7 +57102,7 @@
|
|
|
57021
57102
|
}));
|
|
57022
57103
|
const selectedCls = vue.computed(() => [
|
|
57023
57104
|
ns.e("item-selected"),
|
|
57024
|
-
ns.is("disabled",
|
|
57105
|
+
ns.is("disabled", getDisabled(getOption(props.modelValue))),
|
|
57025
57106
|
ns.is("focus-visible", state.focusVisible)
|
|
57026
57107
|
]);
|
|
57027
57108
|
const name = vue.computed(() => {
|
|
@@ -57299,7 +57380,9 @@
|
|
|
57299
57380
|
default: () => []
|
|
57300
57381
|
},
|
|
57301
57382
|
loading: Boolean,
|
|
57302
|
-
disabled: Boolean
|
|
57383
|
+
disabled: Boolean,
|
|
57384
|
+
contentId: String,
|
|
57385
|
+
ariaLabel: String
|
|
57303
57386
|
});
|
|
57304
57387
|
const mentionDropdownEmits = {
|
|
57305
57388
|
select: (option) => isString$1(option.value)
|
|
@@ -57386,6 +57469,7 @@
|
|
|
57386
57469
|
immediate: true
|
|
57387
57470
|
});
|
|
57388
57471
|
expose({
|
|
57472
|
+
hoveringIndex,
|
|
57389
57473
|
navigateOptions,
|
|
57390
57474
|
selectHoverOption,
|
|
57391
57475
|
hoverOption
|
|
@@ -57403,20 +57487,28 @@
|
|
|
57403
57487
|
vue.renderSlot(_ctx.$slots, "header")
|
|
57404
57488
|
], 2)) : vue.createCommentVNode("v-if", true),
|
|
57405
57489
|
vue.withDirectives(vue.createVNode(vue.unref(ElScrollbar), {
|
|
57490
|
+
id: _ctx.contentId,
|
|
57406
57491
|
ref_key: "scrollbarRef",
|
|
57407
57492
|
ref: scrollbarRef,
|
|
57408
57493
|
tag: "ul",
|
|
57409
57494
|
"wrap-class": vue.unref(ns).be("dropdown", "wrap"),
|
|
57410
|
-
"view-class": vue.unref(ns).be("dropdown", "list")
|
|
57495
|
+
"view-class": vue.unref(ns).be("dropdown", "list"),
|
|
57496
|
+
role: "listbox",
|
|
57497
|
+
"aria-label": _ctx.ariaLabel,
|
|
57498
|
+
"aria-orientation": "vertical"
|
|
57411
57499
|
}, {
|
|
57412
57500
|
default: vue.withCtx(() => [
|
|
57413
57501
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (item, index) => {
|
|
57414
57502
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
57503
|
+
id: `${_ctx.contentId}-${index}`,
|
|
57415
57504
|
ref_for: true,
|
|
57416
57505
|
ref_key: "optionRefs",
|
|
57417
57506
|
ref: optionRefs,
|
|
57418
57507
|
key: item.value,
|
|
57419
57508
|
class: vue.normalizeClass(optionkls(item, index)),
|
|
57509
|
+
role: "option",
|
|
57510
|
+
"aria-disabled": item.disabled || _ctx.disabled || void 0,
|
|
57511
|
+
"aria-selected": hoveringIndex.value === index,
|
|
57420
57512
|
onMouseenter: ($event) => handleMouseEnter(index),
|
|
57421
57513
|
onClick: vue.withModifiers(($event) => handleSelect(item), ["stop"])
|
|
57422
57514
|
}, [
|
|
@@ -57429,11 +57521,11 @@
|
|
|
57429
57521
|
vue.createElementVNode("span", null, vue.toDisplayString((_a = item.label) != null ? _a : item.value), 1)
|
|
57430
57522
|
];
|
|
57431
57523
|
})
|
|
57432
|
-
], 42, ["onMouseenter", "onClick"]);
|
|
57524
|
+
], 42, ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"]);
|
|
57433
57525
|
}), 128))
|
|
57434
57526
|
]),
|
|
57435
57527
|
_: 3
|
|
57436
|
-
}, 8, ["wrap-class", "view-class"]), [
|
|
57528
|
+
}, 8, ["id", "wrap-class", "view-class", "aria-label"]), [
|
|
57437
57529
|
[vue.vShow, _ctx.options.length > 0 && !_ctx.loading]
|
|
57438
57530
|
]),
|
|
57439
57531
|
_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -57467,6 +57559,7 @@
|
|
|
57467
57559
|
const props = __props;
|
|
57468
57560
|
const passInputProps = vue.computed(() => pick(props, Object.keys(inputProps)));
|
|
57469
57561
|
const ns = useNamespace("mention");
|
|
57562
|
+
const contentId = useId();
|
|
57470
57563
|
const elInputRef = vue.ref();
|
|
57471
57564
|
const tooltipRef = vue.ref();
|
|
57472
57565
|
const dropdownRef = vue.ref();
|
|
@@ -57481,6 +57574,13 @@
|
|
|
57481
57574
|
return options;
|
|
57482
57575
|
return options.filter((option) => filterOption(mentionCtx.value.pattern, option));
|
|
57483
57576
|
});
|
|
57577
|
+
const dropdownVisible = vue.computed(() => {
|
|
57578
|
+
return visible.value && (!!filteredOptions.value.length || props.loading);
|
|
57579
|
+
});
|
|
57580
|
+
const hoveringId = vue.computed(() => {
|
|
57581
|
+
var _a;
|
|
57582
|
+
return `${contentId.value}-${(_a = dropdownRef.value) == null ? void 0 : _a.hoveringIndex}`;
|
|
57583
|
+
});
|
|
57484
57584
|
const handleInputChange = (value) => {
|
|
57485
57585
|
emit("update:modelValue", value);
|
|
57486
57586
|
syncAfterCursorMove();
|
|
@@ -57508,6 +57608,11 @@
|
|
|
57508
57608
|
} else {
|
|
57509
57609
|
visible.value = false;
|
|
57510
57610
|
}
|
|
57611
|
+
} else if (["Escape"].includes(e.key)) {
|
|
57612
|
+
if (!visible.value)
|
|
57613
|
+
return;
|
|
57614
|
+
e.preventDefault();
|
|
57615
|
+
visible.value = false;
|
|
57511
57616
|
} else if (["Backspace"].includes(e.key)) {
|
|
57512
57617
|
if (props.whole && mentionCtx.value) {
|
|
57513
57618
|
const { splitIndex, selectionEnd, pattern, prefixIndex, prefix } = mentionCtx.value;
|
|
@@ -57626,6 +57731,13 @@
|
|
|
57626
57731
|
ref_key: "elInputRef",
|
|
57627
57732
|
ref: elInputRef,
|
|
57628
57733
|
"model-value": _ctx.modelValue,
|
|
57734
|
+
role: vue.unref(dropdownVisible) ? "combobox" : void 0,
|
|
57735
|
+
"aria-activedescendant": vue.unref(dropdownVisible) ? vue.unref(hoveringId) || "" : void 0,
|
|
57736
|
+
"aria-controls": vue.unref(dropdownVisible) ? vue.unref(contentId) : void 0,
|
|
57737
|
+
"aria-expanded": vue.unref(dropdownVisible) || void 0,
|
|
57738
|
+
"aria-label": _ctx.ariaLabel,
|
|
57739
|
+
"aria-autocomplete": vue.unref(dropdownVisible) ? "none" : void 0,
|
|
57740
|
+
"aria-haspopup": vue.unref(dropdownVisible) ? "listbox" : void 0,
|
|
57629
57741
|
onInput: handleInputChange,
|
|
57630
57742
|
onKeydown: handleInputKeyDown,
|
|
57631
57743
|
onMousedown: handleInputMouseDown
|
|
@@ -57638,11 +57750,11 @@
|
|
|
57638
57750
|
])
|
|
57639
57751
|
};
|
|
57640
57752
|
})
|
|
57641
|
-
]), 1040, ["model-value"]),
|
|
57753
|
+
]), 1040, ["model-value", "role", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "aria-autocomplete", "aria-haspopup"]),
|
|
57642
57754
|
vue.createVNode(vue.unref(ElTooltip), {
|
|
57643
57755
|
ref_key: "tooltipRef",
|
|
57644
57756
|
ref: tooltipRef,
|
|
57645
|
-
visible:
|
|
57757
|
+
visible: vue.unref(dropdownVisible),
|
|
57646
57758
|
"popper-class": [vue.unref(ns).e("popper"), _ctx.popperClass],
|
|
57647
57759
|
"popper-options": _ctx.popperOptions,
|
|
57648
57760
|
placement: vue.unref(computedPlacement),
|
|
@@ -57666,6 +57778,8 @@
|
|
|
57666
57778
|
options: vue.unref(filteredOptions),
|
|
57667
57779
|
disabled: _ctx.disabled,
|
|
57668
57780
|
loading: _ctx.loading,
|
|
57781
|
+
"content-id": vue.unref(contentId),
|
|
57782
|
+
"aria-label": _ctx.ariaLabel,
|
|
57669
57783
|
onSelect: handleSelect,
|
|
57670
57784
|
onClick: vue.withModifiers((_a = elInputRef.value) == null ? void 0 : _a.focus, ["stop"])
|
|
57671
57785
|
}, vue.createSlots({ _: 2 }, [
|
|
@@ -57677,7 +57791,7 @@
|
|
|
57677
57791
|
])
|
|
57678
57792
|
};
|
|
57679
57793
|
})
|
|
57680
|
-
]), 1032, ["options", "disabled", "loading", "onClick"])
|
|
57794
|
+
]), 1032, ["options", "disabled", "loading", "content-id", "aria-label", "onClick"])
|
|
57681
57795
|
];
|
|
57682
57796
|
}),
|
|
57683
57797
|
_: 3
|
|
@@ -59491,6 +59605,7 @@
|
|
|
59491
59605
|
const version = installer.version;
|
|
59492
59606
|
|
|
59493
59607
|
exports.BAR_MAP = BAR_MAP;
|
|
59608
|
+
exports.CAROUSEL_ITEM_NAME = CAROUSEL_ITEM_NAME;
|
|
59494
59609
|
exports.CASCADER_PANEL_INJECTION_KEY = CASCADER_PANEL_INJECTION_KEY;
|
|
59495
59610
|
exports.CHANGE_EVENT = CHANGE_EVENT;
|
|
59496
59611
|
exports.ClickOutside = ClickOutside;
|