@element-plus/nightly 0.0.20251208 → 0.0.20251209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.full.js +430 -560
- package/dist/index.full.min.js +15 -15
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +500 -630
- 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/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.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/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.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/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.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/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.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/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.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-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.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/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-group.mjs +94 -50
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +50 -94
- package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +49 -347
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +347 -49
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker.mjs +1 -0
- package/es/components/date-picker/src/date-picker.mjs.map +1 -1
- package/es/components/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +258 -112
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +112 -258
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/focus-trap/src/utils.mjs +1 -1
- package/es/components/focus-trap/src/utils.mjs.map +1 -1
- package/es/components/index.mjs +9 -9
- package/es/components/mention/src/mention-dropdown.mjs +15 -166
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +166 -15
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/message/index.mjs +1 -1
- package/es/components/message/src/message.mjs +107 -168
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +168 -107
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/src/method.mjs +2 -2
- package/es/components/pagination/src/components/sizes.mjs +26 -72
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +72 -26
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +7 -30
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +30 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +53 -207
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +207 -53
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +30 -62
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +62 -30
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.mjs +10 -64
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +64 -10
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/select/index.mjs +1 -1
- package/es/components/select/src/option.mjs +13 -89
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/option2.mjs +91 -13
- package/es/components/select/src/option2.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +1 -1
- package/es/components/select/src/useOption.mjs +1 -1
- package/es/components/select-v2/src/option-item.mjs +4 -2
- package/es/components/select-v2/src/option-item.mjs.map +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +25 -69
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +69 -25
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs +2 -2
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.mjs +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.mjs.map +1 -1
- package/es/components/virtual-list/src/components/fixed-size-grid.mjs +1 -1
- package/es/components/virtual-list/src/components/fixed-size-grid.mjs.map +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.mjs +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.mjs.map +1 -1
- package/es/directives/trap-focus/index.mjs +1 -1
- package/es/directives/trap-focus/index.mjs.map +1 -1
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-focus-controller/index.mjs.map +1 -1
- package/es/hooks/use-popper-container/index.mjs +1 -1
- package/es/hooks/use-popper-container/index.mjs.map +1 -1
- package/es/index.mjs +9 -9
- package/es/utils/dom/aria.mjs +1 -1
- package/es/utils/dom/aria.mjs.map +1 -1
- package/es/utils/error.mjs +1 -1
- package/es/utils/error.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/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-group.js +93 -51
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +51 -93
- package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +49 -346
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +346 -49
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker.js +1 -0
- package/lib/components/date-picker/src/date-picker.js.map +1 -1
- package/lib/components/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +258 -117
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +117 -258
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/focus-trap/src/utils.js +1 -1
- package/lib/components/focus-trap/src/utils.js.map +1 -1
- package/lib/components/index.js +9 -9
- package/lib/components/mention/src/mention-dropdown.js +16 -166
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +166 -16
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/message/index.js +1 -1
- package/lib/components/message/src/message.js +111 -167
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message2.js +167 -111
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/src/method.js +2 -2
- package/lib/components/pagination/src/components/sizes.js +26 -72
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +72 -26
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +8 -30
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +30 -8
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +53 -207
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +207 -53
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +32 -62
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +62 -32
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/src/bar.js +10 -64
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +64 -10
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/select/index.js +1 -1
- package/lib/components/select/src/option.js +14 -89
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/option2.js +91 -14
- package/lib/components/select/src/option2.js.map +1 -1
- package/lib/components/select/src/select2.js +1 -1
- package/lib/components/select/src/useOption.js +1 -1
- package/lib/components/select-v2/src/option-item.js +4 -2
- package/lib/components/select-v2/src/option-item.js.map +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +25 -69
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +69 -25
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/tooltip/src/content2.js +2 -2
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.js +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.js +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.js.map +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-grid.js +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-grid.js.map +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.js +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.js.map +1 -1
- package/lib/directives/trap-focus/index.js +1 -1
- package/lib/directives/trap-focus/index.js.map +1 -1
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-focus-controller/index.js.map +1 -1
- package/lib/hooks/use-popper-container/index.js +1 -1
- package/lib/hooks/use-popper-container/index.js.map +1 -1
- package/lib/index.js +9 -9
- package/lib/utils/dom/aria.js +1 -1
- package/lib/utils/dom/aria.js.map +1 -1
- package/lib/utils/error.js +1 -1
- package/lib/utils/error.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/theme-chalk/el-menu.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/menu.scss +6 -0
- package/web-types.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20251209 */
|
|
2
2
|
|
|
3
|
-
import { unref, readonly, shallowRef, watchEffect, getCurrentScope, onScopeDispose, computed, isRef, reactive, getCurrentInstance, onMounted
|
|
3
|
+
import { unref, readonly, shallowRef, watchEffect, getCurrentScope, onScopeDispose, computed, isRef, reactive, getCurrentInstance, onMounted, nextTick, ref, watch, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, inject, onUnmounted, h as h$1, Teleport as Teleport$1, onBeforeMount, provide, triggerRef, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, onActivated, cloneVNode, Text as Text$1, onDeactivated, renderList, createSlots, normalizeProps, guardReactiveProps, toRaw, vModelCheckbox, vModelRadio, onBeforeUpdate, withKeys, vModelText, toHandlers, resolveComponent, markRaw, effectScope, resolveDirective, toHandlerKey, render, createApp, shallowReactive } from 'vue';
|
|
4
4
|
|
|
5
5
|
const FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])`;
|
|
6
6
|
const isHTMLElement$2 = (e) => {
|
|
@@ -9,8 +9,6 @@ const isHTMLElement$2 = (e) => {
|
|
|
9
9
|
return e instanceof Element;
|
|
10
10
|
};
|
|
11
11
|
const isVisible = (element) => {
|
|
12
|
-
if (typeof process !== "undefined" && false)
|
|
13
|
-
return true;
|
|
14
12
|
const computed = getComputedStyle(element);
|
|
15
13
|
return computed.position === "fixed" ? false : element.offsetParent !== null;
|
|
16
14
|
};
|
|
@@ -353,7 +351,7 @@ function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnC
|
|
|
353
351
|
function tryOnMounted(fn, sync = true, target) {
|
|
354
352
|
const instance = getLifeCycleTarget();
|
|
355
353
|
if (instance)
|
|
356
|
-
onMounted
|
|
354
|
+
onMounted(fn, target);
|
|
357
355
|
else if (sync)
|
|
358
356
|
fn();
|
|
359
357
|
else
|
|
@@ -513,7 +511,7 @@ function useMounted() {
|
|
|
513
511
|
const isMounted = ref(false);
|
|
514
512
|
const instance = getCurrentInstance();
|
|
515
513
|
if (instance) {
|
|
516
|
-
onMounted
|
|
514
|
+
onMounted(() => {
|
|
517
515
|
isMounted.value = true;
|
|
518
516
|
}, instance);
|
|
519
517
|
}
|
|
@@ -1112,11 +1110,11 @@ const hasOwnProperty$p = Object.prototype.hasOwnProperty;
|
|
|
1112
1110
|
const hasOwn = (val, key) => hasOwnProperty$p.call(val, key);
|
|
1113
1111
|
const isArray$1 = Array.isArray;
|
|
1114
1112
|
const isDate$1 = (val) => toTypeString(val) === "[object Date]";
|
|
1115
|
-
const isFunction$
|
|
1116
|
-
const isString$
|
|
1113
|
+
const isFunction$1 = (val) => typeof val === "function";
|
|
1114
|
+
const isString$1 = (val) => typeof val === "string";
|
|
1117
1115
|
const isObject$1 = (val) => val !== null && typeof val === "object";
|
|
1118
1116
|
const isPromise = (val) => {
|
|
1119
|
-
return isObject$1(val) && isFunction$
|
|
1117
|
+
return isObject$1(val) && isFunction$1(val.then) && isFunction$1(val.catch);
|
|
1120
1118
|
};
|
|
1121
1119
|
const objectToString$1 = Object.prototype.toString;
|
|
1122
1120
|
const toTypeString = (value) => objectToString$1.call(value);
|
|
@@ -1340,7 +1338,7 @@ var asyncTag = "[object AsyncFunction]";
|
|
|
1340
1338
|
var funcTag$2 = "[object Function]";
|
|
1341
1339
|
var genTag$1 = "[object GeneratorFunction]";
|
|
1342
1340
|
var proxyTag = "[object Proxy]";
|
|
1343
|
-
function isFunction
|
|
1341
|
+
function isFunction(value) {
|
|
1344
1342
|
if (!isObject(value)) {
|
|
1345
1343
|
return false;
|
|
1346
1344
|
}
|
|
@@ -1385,7 +1383,7 @@ function baseIsNative(value) {
|
|
|
1385
1383
|
if (!isObject(value) || isMasked(value)) {
|
|
1386
1384
|
return false;
|
|
1387
1385
|
}
|
|
1388
|
-
var pattern = isFunction
|
|
1386
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
1389
1387
|
return pattern.test(toSource(value));
|
|
1390
1388
|
}
|
|
1391
1389
|
|
|
@@ -2096,7 +2094,7 @@ function isLength(value) {
|
|
|
2096
2094
|
}
|
|
2097
2095
|
|
|
2098
2096
|
function isArrayLike(value) {
|
|
2099
|
-
return value != null && isLength(value.length) && !isFunction
|
|
2097
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
2100
2098
|
}
|
|
2101
2099
|
|
|
2102
2100
|
function isIterateeCall(value, index, object) {
|
|
@@ -4323,7 +4321,7 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
|
4323
4321
|
newValue = objValue;
|
|
4324
4322
|
if (isArguments(objValue)) {
|
|
4325
4323
|
newValue = toPlainObject(objValue);
|
|
4326
|
-
} else if (!isObject(objValue) || isFunction
|
|
4324
|
+
} else if (!isObject(objValue) || isFunction(objValue)) {
|
|
4327
4325
|
newValue = initCloneObject(srcValue);
|
|
4328
4326
|
}
|
|
4329
4327
|
} else {
|
|
@@ -4869,7 +4867,7 @@ function fromPairs(pairs) {
|
|
|
4869
4867
|
|
|
4870
4868
|
function baseFunctions(object, props) {
|
|
4871
4869
|
return arrayFilter(props, function(key) {
|
|
4872
|
-
return isFunction
|
|
4870
|
+
return isFunction(object[key]);
|
|
4873
4871
|
});
|
|
4874
4872
|
}
|
|
4875
4873
|
|
|
@@ -4940,7 +4938,7 @@ function inRange(number, start, end) {
|
|
|
4940
4938
|
}
|
|
4941
4939
|
|
|
4942
4940
|
var stringTag = "[object String]";
|
|
4943
|
-
function isString
|
|
4941
|
+
function isString(value) {
|
|
4944
4942
|
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
4945
4943
|
}
|
|
4946
4944
|
|
|
@@ -4962,7 +4960,7 @@ function includes(collection, value, fromIndex, guard) {
|
|
|
4962
4960
|
if (fromIndex < 0) {
|
|
4963
4961
|
fromIndex = nativeMax$7(length + fromIndex, 0);
|
|
4964
4962
|
}
|
|
4965
|
-
return isString
|
|
4963
|
+
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
4966
4964
|
}
|
|
4967
4965
|
|
|
4968
4966
|
var nativeMax$6 = Math.max;
|
|
@@ -5123,7 +5121,7 @@ function baseIsDate(value) {
|
|
|
5123
5121
|
var nodeIsDate = nodeUtil && nodeUtil.isDate;
|
|
5124
5122
|
var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
|
|
5125
5123
|
|
|
5126
|
-
function isElement$
|
|
5124
|
+
function isElement$3(value) {
|
|
5127
5125
|
return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
|
|
5128
5126
|
}
|
|
5129
5127
|
|
|
@@ -5182,15 +5180,15 @@ function isMatchWith(object, source, customizer) {
|
|
|
5182
5180
|
}
|
|
5183
5181
|
|
|
5184
5182
|
var numberTag = "[object Number]";
|
|
5185
|
-
function isNumber$
|
|
5183
|
+
function isNumber$1(value) {
|
|
5186
5184
|
return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
|
|
5187
5185
|
}
|
|
5188
5186
|
|
|
5189
5187
|
function isNaN$1(value) {
|
|
5190
|
-
return isNumber$
|
|
5188
|
+
return isNumber$1(value) && value != +value;
|
|
5191
5189
|
}
|
|
5192
5190
|
|
|
5193
|
-
var isMaskable = coreJsData ? isFunction
|
|
5191
|
+
var isMaskable = coreJsData ? isFunction : stubFalse;
|
|
5194
5192
|
|
|
5195
5193
|
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";
|
|
5196
5194
|
function isNative(value) {
|
|
@@ -5393,7 +5391,7 @@ function minBy(array, iteratee) {
|
|
|
5393
5391
|
|
|
5394
5392
|
function mixin$1(object, source, options) {
|
|
5395
5393
|
var props = keys(source), methodNames = baseFunctions(source, props);
|
|
5396
|
-
var chain = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction
|
|
5394
|
+
var chain = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object);
|
|
5397
5395
|
arrayEach(methodNames, function(methodName) {
|
|
5398
5396
|
var func = source[methodName];
|
|
5399
5397
|
object[methodName] = func;
|
|
@@ -5454,7 +5452,7 @@ function toArray(value) {
|
|
|
5454
5452
|
return [];
|
|
5455
5453
|
}
|
|
5456
5454
|
if (isArrayLike(value)) {
|
|
5457
|
-
return isString
|
|
5455
|
+
return isString(value) ? stringToArray(value) : copyArray(value);
|
|
5458
5456
|
}
|
|
5459
5457
|
if (symIterator$1 && value[symIterator$1]) {
|
|
5460
5458
|
return iteratorToArray(value[symIterator$1]());
|
|
@@ -6091,7 +6089,7 @@ function result(object, path, defaultValue) {
|
|
|
6091
6089
|
index = length;
|
|
6092
6090
|
value = defaultValue;
|
|
6093
6091
|
}
|
|
6094
|
-
object = isFunction
|
|
6092
|
+
object = isFunction(value) ? value.call(object) : value;
|
|
6095
6093
|
}
|
|
6096
6094
|
return object;
|
|
6097
6095
|
}
|
|
@@ -6178,7 +6176,7 @@ function size$1(collection) {
|
|
|
6178
6176
|
return 0;
|
|
6179
6177
|
}
|
|
6180
6178
|
if (isArrayLike(collection)) {
|
|
6181
|
-
return isString
|
|
6179
|
+
return isString(collection) ? stringSize(collection) : collection.length;
|
|
6182
6180
|
}
|
|
6183
6181
|
var tag = getTag$1(collection);
|
|
6184
6182
|
if (tag == mapTag || tag == setTag) {
|
|
@@ -6632,7 +6630,7 @@ function transform(object, iteratee, accumulator) {
|
|
|
6632
6630
|
if (isArrLike) {
|
|
6633
6631
|
accumulator = isArr ? new Ctor() : [];
|
|
6634
6632
|
} else if (isObject(object)) {
|
|
6635
|
-
accumulator = isFunction
|
|
6633
|
+
accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
|
|
6636
6634
|
} else {
|
|
6637
6635
|
accumulator = {};
|
|
6638
6636
|
}
|
|
@@ -7162,13 +7160,13 @@ var lang = {
|
|
|
7162
7160
|
isBoolean: isBoolean$1,
|
|
7163
7161
|
isBuffer,
|
|
7164
7162
|
isDate,
|
|
7165
|
-
isElement: isElement$
|
|
7163
|
+
isElement: isElement$3,
|
|
7166
7164
|
isEmpty: isEmpty$1,
|
|
7167
7165
|
isEqual: isEqual$1,
|
|
7168
7166
|
isEqualWith,
|
|
7169
7167
|
isError,
|
|
7170
7168
|
isFinite,
|
|
7171
|
-
isFunction
|
|
7169
|
+
isFunction,
|
|
7172
7170
|
isInteger,
|
|
7173
7171
|
isLength,
|
|
7174
7172
|
isMap,
|
|
@@ -7178,14 +7176,14 @@ var lang = {
|
|
|
7178
7176
|
isNative,
|
|
7179
7177
|
isNil,
|
|
7180
7178
|
isNull,
|
|
7181
|
-
isNumber: isNumber$
|
|
7179
|
+
isNumber: isNumber$1,
|
|
7182
7180
|
isObject,
|
|
7183
7181
|
isObjectLike,
|
|
7184
7182
|
isPlainObject,
|
|
7185
7183
|
isRegExp,
|
|
7186
7184
|
isSafeInteger,
|
|
7187
7185
|
isSet,
|
|
7188
|
-
isString
|
|
7186
|
+
isString,
|
|
7189
7187
|
isSymbol,
|
|
7190
7188
|
isTypedArray,
|
|
7191
7189
|
isUndefined: isUndefined$1,
|
|
@@ -7948,16 +7946,16 @@ if (symIterator) {
|
|
|
7948
7946
|
|
|
7949
7947
|
const isUndefined = (val) => val === void 0;
|
|
7950
7948
|
const isBoolean = (val) => typeof val === "boolean";
|
|
7951
|
-
const isNumber
|
|
7949
|
+
const isNumber = (val) => typeof val === "number";
|
|
7952
7950
|
const isEmpty = (val) => !val && val !== 0 || isArray$1(val) && val.length === 0 || isObject$1(val) && !Object.keys(val).length;
|
|
7953
|
-
const isElement$
|
|
7951
|
+
const isElement$2 = (e) => {
|
|
7954
7952
|
if (typeof Element === "undefined")
|
|
7955
7953
|
return false;
|
|
7956
7954
|
return e instanceof Element;
|
|
7957
7955
|
};
|
|
7958
7956
|
const isPropAbsent = (prop) => isNil(prop);
|
|
7959
7957
|
const isStringNumber = (val) => {
|
|
7960
|
-
if (!isString$
|
|
7958
|
+
if (!isString$1(val)) {
|
|
7961
7959
|
return false;
|
|
7962
7960
|
}
|
|
7963
7961
|
return !Number.isNaN(Number(val));
|
|
@@ -7989,17 +7987,12 @@ class ElementPlusError extends Error {
|
|
|
7989
7987
|
this.name = "ElementPlusError";
|
|
7990
7988
|
}
|
|
7991
7989
|
}
|
|
7992
|
-
function throwError
|
|
7990
|
+
function throwError(scope, m) {
|
|
7993
7991
|
throw new ElementPlusError(`[${scope}] ${m}`);
|
|
7994
7992
|
}
|
|
7995
7993
|
function debugWarn(scope, message) {
|
|
7996
|
-
if (typeof process !== "undefined" && false) {
|
|
7997
|
-
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
|
7998
|
-
console.warn(error);
|
|
7999
|
-
}
|
|
8000
7994
|
}
|
|
8001
7995
|
|
|
8002
|
-
const SCOPE$a = "utils/dom/style";
|
|
8003
7996
|
const classNameToArray = (cls = "") => cls.split(" ").filter((item) => !!item.trim());
|
|
8004
7997
|
const hasClass = (el, cls) => {
|
|
8005
7998
|
if (!el || !cls)
|
|
@@ -8048,12 +8041,11 @@ const setStyle = (element, styleName, value) => {
|
|
|
8048
8041
|
function addUnit(value, defaultUnit = "px") {
|
|
8049
8042
|
if (!value && value !== 0)
|
|
8050
8043
|
return "";
|
|
8051
|
-
if (isNumber
|
|
8044
|
+
if (isNumber(value) || isStringNumber(value)) {
|
|
8052
8045
|
return `${value}${defaultUnit}`;
|
|
8053
|
-
} else if (isString$
|
|
8046
|
+
} else if (isString$1(value)) {
|
|
8054
8047
|
return value;
|
|
8055
8048
|
}
|
|
8056
|
-
debugWarn(SCOPE$a, "binding value must be a string or number");
|
|
8057
8049
|
}
|
|
8058
8050
|
|
|
8059
8051
|
const isScroll = (el, isVertical) => {
|
|
@@ -8141,7 +8133,7 @@ function animateScrollTo(container, from, to, duration, callback) {
|
|
|
8141
8133
|
}
|
|
8142
8134
|
if (time < duration) {
|
|
8143
8135
|
handle = rAF(scroll);
|
|
8144
|
-
} else if (isFunction$
|
|
8136
|
+
} else if (isFunction$1(callback)) {
|
|
8145
8137
|
callback();
|
|
8146
8138
|
}
|
|
8147
8139
|
};
|
|
@@ -8166,7 +8158,7 @@ const getScrollTop = (container) => {
|
|
|
8166
8158
|
const getElement = (target) => {
|
|
8167
8159
|
if (!isClient || target === "")
|
|
8168
8160
|
return null;
|
|
8169
|
-
if (isString$
|
|
8161
|
+
if (isString$1(target)) {
|
|
8170
8162
|
try {
|
|
8171
8163
|
return document.querySelector(target);
|
|
8172
8164
|
} catch (e) {
|
|
@@ -8998,7 +8990,6 @@ const composeRefs = (...refs) => {
|
|
|
8998
8990
|
|
|
8999
8991
|
const isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
|
|
9000
8992
|
|
|
9001
|
-
const SCOPE$9 = "utils/vue/vnode";
|
|
9002
8993
|
var PatchFlags = /* @__PURE__ */ ((PatchFlags2) => {
|
|
9003
8994
|
PatchFlags2[PatchFlags2["TEXT"] = 1] = "TEXT";
|
|
9004
8995
|
PatchFlags2[PatchFlags2["CLASS"] = 2] = "CLASS";
|
|
@@ -9026,7 +9017,6 @@ function isValidElementNode(node) {
|
|
|
9026
9017
|
}
|
|
9027
9018
|
const getNormalizedProps = (node) => {
|
|
9028
9019
|
if (!isVNode(node)) {
|
|
9029
|
-
debugWarn(SCOPE$9, "[getNormalizedProps] must be a VNode");
|
|
9030
9020
|
return {};
|
|
9031
9021
|
}
|
|
9032
9022
|
const raw = node.props || {};
|
|
@@ -9103,7 +9093,6 @@ const useAttrs = (params = {}) => {
|
|
|
9103
9093
|
});
|
|
9104
9094
|
const instance = getCurrentInstance();
|
|
9105
9095
|
if (!instance) {
|
|
9106
|
-
debugWarn("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function");
|
|
9107
9096
|
return computed(() => ({}));
|
|
9108
9097
|
}
|
|
9109
9098
|
return computed(() => {
|
|
@@ -9132,11 +9121,6 @@ function useCalcInputWidth() {
|
|
|
9132
9121
|
|
|
9133
9122
|
const useDeprecated = ({ from, replacement, scope, version, ref, type = "API" }, condition) => {
|
|
9134
9123
|
watch(() => unref(condition), (val) => {
|
|
9135
|
-
if (val) {
|
|
9136
|
-
debugWarn(scope, `[${type}] ${from} is about to be deprecated in version ${version}, please use ${replacement} instead.
|
|
9137
|
-
For more detail, please visit: ${ref}
|
|
9138
|
-
`);
|
|
9139
|
-
}
|
|
9140
9124
|
}, {
|
|
9141
9125
|
immediate: true
|
|
9142
9126
|
});
|
|
@@ -9214,7 +9198,7 @@ const useDraggable = (targetRef, dragRef, draggable, overflow) => {
|
|
|
9214
9198
|
const { offsetX, offsetY } = transform;
|
|
9215
9199
|
adjustPosition(offsetX, offsetY);
|
|
9216
9200
|
};
|
|
9217
|
-
onMounted
|
|
9201
|
+
onMounted(() => {
|
|
9218
9202
|
watchEffect(() => {
|
|
9219
9203
|
if (draggable.value) {
|
|
9220
9204
|
onDraggable();
|
|
@@ -9532,7 +9516,7 @@ const useNamespace = (block, namespaceOverrides) => {
|
|
|
9532
9516
|
|
|
9533
9517
|
const useLockscreen = (trigger, options = {}) => {
|
|
9534
9518
|
if (!isRef(trigger)) {
|
|
9535
|
-
throwError
|
|
9519
|
+
throwError("[useLockscreen]", "You need to pass a ref param to this function");
|
|
9536
9520
|
}
|
|
9537
9521
|
const ns = options.ns || useNamespace("popup");
|
|
9538
9522
|
const hiddenCls = computed(() => ns.bm("parent", "hidden"));
|
|
@@ -9618,7 +9602,7 @@ const createModelToggleComposable = (name) => {
|
|
|
9618
9602
|
const instance = getCurrentInstance();
|
|
9619
9603
|
const { emit } = instance;
|
|
9620
9604
|
const props = instance.props;
|
|
9621
|
-
const hasUpdateHandler = computed(() => isFunction$
|
|
9605
|
+
const hasUpdateHandler = computed(() => isFunction$1(props[updateEventKeyRaw]));
|
|
9622
9606
|
const isModelBindingAbsent = computed(() => props[name] === null);
|
|
9623
9607
|
const doShow = (event) => {
|
|
9624
9608
|
if (indicator.value === true) {
|
|
@@ -9628,7 +9612,7 @@ const createModelToggleComposable = (name) => {
|
|
|
9628
9612
|
if (toggleReason) {
|
|
9629
9613
|
toggleReason.value = event;
|
|
9630
9614
|
}
|
|
9631
|
-
if (isFunction$
|
|
9615
|
+
if (isFunction$1(onShow)) {
|
|
9632
9616
|
onShow(event);
|
|
9633
9617
|
}
|
|
9634
9618
|
};
|
|
@@ -9640,12 +9624,12 @@ const createModelToggleComposable = (name) => {
|
|
|
9640
9624
|
if (toggleReason) {
|
|
9641
9625
|
toggleReason.value = event;
|
|
9642
9626
|
}
|
|
9643
|
-
if (isFunction$
|
|
9627
|
+
if (isFunction$1(onHide)) {
|
|
9644
9628
|
onHide(event);
|
|
9645
9629
|
}
|
|
9646
9630
|
};
|
|
9647
9631
|
const show = (event) => {
|
|
9648
|
-
if (props.disabled === true || isFunction$
|
|
9632
|
+
if (props.disabled === true || isFunction$1(shouldProceed) && !shouldProceed())
|
|
9649
9633
|
return;
|
|
9650
9634
|
const shouldEmit = hasUpdateHandler.value && isClient;
|
|
9651
9635
|
if (shouldEmit) {
|
|
@@ -9698,7 +9682,7 @@ const createModelToggleComposable = (name) => {
|
|
|
9698
9682
|
}
|
|
9699
9683
|
});
|
|
9700
9684
|
}
|
|
9701
|
-
onMounted
|
|
9685
|
+
onMounted(() => {
|
|
9702
9686
|
onChange(props[name]);
|
|
9703
9687
|
});
|
|
9704
9688
|
return {
|
|
@@ -9907,7 +9891,7 @@ const useThrottleRender = (loading, throttle = 0) => {
|
|
|
9907
9891
|
};
|
|
9908
9892
|
const dispatcher = (type) => {
|
|
9909
9893
|
if (type === "leading") {
|
|
9910
|
-
if (isNumber
|
|
9894
|
+
if (isNumber(throttle)) {
|
|
9911
9895
|
dispatchThrottling(throttle);
|
|
9912
9896
|
} else {
|
|
9913
9897
|
dispatchThrottling(throttle.leading);
|
|
@@ -9920,7 +9904,7 @@ const useThrottleRender = (loading, throttle = 0) => {
|
|
|
9920
9904
|
}
|
|
9921
9905
|
}
|
|
9922
9906
|
};
|
|
9923
|
-
onMounted
|
|
9907
|
+
onMounted(() => dispatcher("leading"));
|
|
9924
9908
|
watch(() => loading.value, (val) => {
|
|
9925
9909
|
dispatcher(val ? "leading" : "trailing");
|
|
9926
9910
|
});
|
|
@@ -10011,13 +9995,6 @@ const useIdInjection = () => {
|
|
|
10011
9995
|
};
|
|
10012
9996
|
const useId = (deterministicId) => {
|
|
10013
9997
|
const idInjection = useIdInjection();
|
|
10014
|
-
if (!isClient && idInjection === defaultIdInjection) {
|
|
10015
|
-
debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
10016
|
-
usage: app.provide(ID_INJECTION_KEY, {
|
|
10017
|
-
prefix: number,
|
|
10018
|
-
current: number,
|
|
10019
|
-
})`);
|
|
10020
|
-
}
|
|
10021
9998
|
const namespace = useGetDerivedNamespace();
|
|
10022
9999
|
const idRef = computedEager(() => unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`);
|
|
10023
10000
|
return idRef;
|
|
@@ -10031,7 +10008,7 @@ const cachedHandler = (event) => {
|
|
|
10031
10008
|
}
|
|
10032
10009
|
};
|
|
10033
10010
|
const useEscapeKeydown = (handler) => {
|
|
10034
|
-
onMounted
|
|
10011
|
+
onMounted(() => {
|
|
10035
10012
|
if (registeredEscapeHandlers.length === 0) {
|
|
10036
10013
|
document.addEventListener("keydown", cachedHandler);
|
|
10037
10014
|
}
|
|
@@ -10070,7 +10047,7 @@ const usePopperContainer = () => {
|
|
|
10070
10047
|
onBeforeMount(() => {
|
|
10071
10048
|
if (!isClient)
|
|
10072
10049
|
return;
|
|
10073
|
-
if (
|
|
10050
|
+
if (!document.body.querySelector(selector.value)) {
|
|
10074
10051
|
createContainer(id.value);
|
|
10075
10052
|
}
|
|
10076
10053
|
});
|
|
@@ -10149,7 +10126,7 @@ const useDelayedToggle = ({
|
|
|
10149
10126
|
registerTimeout(() => {
|
|
10150
10127
|
open(event);
|
|
10151
10128
|
const _autoClose = unref(autoClose);
|
|
10152
|
-
if (isNumber
|
|
10129
|
+
if (isNumber(_autoClose) && _autoClose > 0) {
|
|
10153
10130
|
registerTimeoutForAutoClose(() => {
|
|
10154
10131
|
close(event);
|
|
10155
10132
|
}, _autoClose);
|
|
@@ -10203,7 +10180,7 @@ const useZIndex = (zIndexOverrides) => {
|
|
|
10203
10180
|
const zIndexInjection = zIndexOverrides || (getCurrentInstance() ? inject(zIndexContextKey, void 0) : void 0);
|
|
10204
10181
|
const initialZIndex = computed(() => {
|
|
10205
10182
|
const zIndexFromInjection = unref(zIndexInjection);
|
|
10206
|
-
return isNumber
|
|
10183
|
+
return isNumber(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
|
|
10207
10184
|
});
|
|
10208
10185
|
const currentZIndex = computed(() => initialZIndex.value + zIndex.value);
|
|
10209
10186
|
const nextZIndex = () => {
|
|
@@ -10211,10 +10188,7 @@ const useZIndex = (zIndexOverrides) => {
|
|
|
10211
10188
|
zIndex.value = increasingInjection.current;
|
|
10212
10189
|
return currentZIndex.value;
|
|
10213
10190
|
};
|
|
10214
|
-
if (!isClient && !inject(ZINDEX_INJECTION_KEY))
|
|
10215
|
-
debugWarn("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
10216
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
10217
|
-
}
|
|
10191
|
+
if (!isClient && !inject(ZINDEX_INJECTION_KEY)) ;
|
|
10218
10192
|
return {
|
|
10219
10193
|
initialZIndex,
|
|
10220
10194
|
currentZIndex,
|
|
@@ -11410,7 +11384,7 @@ function getDocumentElement$1(node) {
|
|
|
11410
11384
|
function isNode$1(value) {
|
|
11411
11385
|
return value instanceof Node || value instanceof getWindow$1(value).Node;
|
|
11412
11386
|
}
|
|
11413
|
-
function isElement$
|
|
11387
|
+
function isElement$1(value) {
|
|
11414
11388
|
return value instanceof Element || value instanceof getWindow$1(value).Element;
|
|
11415
11389
|
}
|
|
11416
11390
|
function isHTMLElement$1(value) {
|
|
@@ -11446,7 +11420,7 @@ function isTopLayer(element) {
|
|
|
11446
11420
|
}
|
|
11447
11421
|
function isContainingBlock$1(elementOrCss) {
|
|
11448
11422
|
const webkit = isWebKit();
|
|
11449
|
-
const css = isElement$
|
|
11423
|
+
const css = isElement$1(elementOrCss) ? getComputedStyle$2(elementOrCss) : elementOrCss;
|
|
11450
11424
|
|
|
11451
11425
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
11452
11426
|
return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
@@ -11474,7 +11448,7 @@ function getComputedStyle$2(element) {
|
|
|
11474
11448
|
return getWindow$1(element).getComputedStyle(element);
|
|
11475
11449
|
}
|
|
11476
11450
|
function getNodeScroll$1(element) {
|
|
11477
|
-
if (isElement$
|
|
11451
|
+
if (isElement$1(element)) {
|
|
11478
11452
|
return {
|
|
11479
11453
|
scrollLeft: element.scrollLeft,
|
|
11480
11454
|
scrollTop: element.scrollTop
|
|
@@ -11549,7 +11523,7 @@ function getCssDimensions(element) {
|
|
|
11549
11523
|
}
|
|
11550
11524
|
|
|
11551
11525
|
function unwrapElement(element) {
|
|
11552
|
-
return !isElement$
|
|
11526
|
+
return !isElement$1(element) ? element.contextElement : element;
|
|
11553
11527
|
}
|
|
11554
11528
|
|
|
11555
11529
|
function getScale(element) {
|
|
@@ -11613,7 +11587,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy, offsetP
|
|
|
11613
11587
|
let scale = createCoords(1);
|
|
11614
11588
|
if (includeScale) {
|
|
11615
11589
|
if (offsetParent) {
|
|
11616
|
-
if (isElement$
|
|
11590
|
+
if (isElement$1(offsetParent)) {
|
|
11617
11591
|
scale = getScale(offsetParent);
|
|
11618
11592
|
}
|
|
11619
11593
|
} else {
|
|
@@ -11627,7 +11601,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy, offsetP
|
|
|
11627
11601
|
let height = clientRect.height / scale.y;
|
|
11628
11602
|
if (domElement) {
|
|
11629
11603
|
const win = getWindow$1(domElement);
|
|
11630
|
-
const offsetWin = offsetParent && isElement$
|
|
11604
|
+
const offsetWin = offsetParent && isElement$1(offsetParent) ? getWindow$1(offsetParent) : offsetParent;
|
|
11631
11605
|
let currentWin = win;
|
|
11632
11606
|
let currentIFrame = currentWin.frameElement;
|
|
11633
11607
|
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
@@ -11772,7 +11746,7 @@ function getClientRectFromClippingAncestor$1(element, clippingAncestor, strategy
|
|
|
11772
11746
|
rect = getViewportRect$1(element, strategy);
|
|
11773
11747
|
} else if (clippingAncestor === 'document') {
|
|
11774
11748
|
rect = getDocumentRect$1(getDocumentElement$1(element));
|
|
11775
|
-
} else if (isElement$
|
|
11749
|
+
} else if (isElement$1(clippingAncestor)) {
|
|
11776
11750
|
rect = getInnerBoundingClientRect$1(clippingAncestor, strategy);
|
|
11777
11751
|
} else {
|
|
11778
11752
|
const visualOffsets = getVisualOffsets(element);
|
|
@@ -11786,7 +11760,7 @@ function getClientRectFromClippingAncestor$1(element, clippingAncestor, strategy
|
|
|
11786
11760
|
}
|
|
11787
11761
|
function hasFixedPositionAncestor(element, stopNode) {
|
|
11788
11762
|
const parentNode = getParentNode$1(element);
|
|
11789
|
-
if (parentNode === stopNode || !isElement$
|
|
11763
|
+
if (parentNode === stopNode || !isElement$1(parentNode) || isLastTraversableNode(parentNode)) {
|
|
11790
11764
|
return false;
|
|
11791
11765
|
}
|
|
11792
11766
|
return getComputedStyle$2(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
@@ -11800,13 +11774,13 @@ function getClippingElementAncestors(element, cache) {
|
|
|
11800
11774
|
if (cachedResult) {
|
|
11801
11775
|
return cachedResult;
|
|
11802
11776
|
}
|
|
11803
|
-
let result = getOverflowAncestors$1(element, [], false).filter(el => isElement$
|
|
11777
|
+
let result = getOverflowAncestors$1(element, [], false).filter(el => isElement$1(el) && getNodeName$1(el) !== 'body');
|
|
11804
11778
|
let currentContainingBlockComputedStyle = null;
|
|
11805
11779
|
const elementIsFixed = getComputedStyle$2(element).position === 'fixed';
|
|
11806
11780
|
let currentNode = elementIsFixed ? getParentNode$1(element) : element;
|
|
11807
11781
|
|
|
11808
11782
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
11809
|
-
while (isElement$
|
|
11783
|
+
while (isElement$1(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
11810
11784
|
const computedStyle = getComputedStyle$2(currentNode);
|
|
11811
11785
|
const currentNodeIsContaining = isContainingBlock$1(currentNode);
|
|
11812
11786
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
@@ -11921,7 +11895,7 @@ function getOffsetParent$1(element, polyfill) {
|
|
|
11921
11895
|
if (!isHTMLElement$1(element)) {
|
|
11922
11896
|
let svgOffsetParent = getParentNode$1(element);
|
|
11923
11897
|
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
11924
|
-
if (isElement$
|
|
11898
|
+
if (isElement$1(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
11925
11899
|
return svgOffsetParent;
|
|
11926
11900
|
}
|
|
11927
11901
|
svgOffsetParent = getParentNode$1(svgOffsetParent);
|
|
@@ -11966,7 +11940,7 @@ const platform$1 = {
|
|
|
11966
11940
|
getClientRects,
|
|
11967
11941
|
getDimensions: getDimensions$1,
|
|
11968
11942
|
getScale,
|
|
11969
|
-
isElement: isElement$
|
|
11943
|
+
isElement: isElement$1,
|
|
11970
11944
|
isRTL: isRTL$1
|
|
11971
11945
|
};
|
|
11972
11946
|
|
|
@@ -12107,7 +12081,7 @@ const useFloating$1 = ({
|
|
|
12107
12081
|
states[key].value = data[key];
|
|
12108
12082
|
});
|
|
12109
12083
|
};
|
|
12110
|
-
onMounted
|
|
12084
|
+
onMounted(() => {
|
|
12111
12085
|
watchEffect(() => {
|
|
12112
12086
|
update();
|
|
12113
12087
|
});
|
|
@@ -12198,7 +12172,7 @@ const useOrderedChildren = (vm, childComponentName) => {
|
|
|
12198
12172
|
const addChild = (child) => {
|
|
12199
12173
|
children.value[child.uid] = child;
|
|
12200
12174
|
triggerRef(children);
|
|
12201
|
-
onMounted
|
|
12175
|
+
onMounted(() => {
|
|
12202
12176
|
const childNode = child.getVnode().el;
|
|
12203
12177
|
const parentNode = childNode.parentNode;
|
|
12204
12178
|
if (!nodesMap.has(parentNode)) {
|
|
@@ -12275,7 +12249,7 @@ function useFocusController(target, {
|
|
|
12275
12249
|
const wrapperRef = shallowRef();
|
|
12276
12250
|
const isFocused = ref(false);
|
|
12277
12251
|
const handleFocus = (event) => {
|
|
12278
|
-
const cancelFocus = isFunction$
|
|
12252
|
+
const cancelFocus = isFunction$1(beforeFocus) ? beforeFocus(event) : false;
|
|
12279
12253
|
if (unref(disabled) || isFocused.value || cancelFocus)
|
|
12280
12254
|
return;
|
|
12281
12255
|
isFocused.value = true;
|
|
@@ -12284,7 +12258,7 @@ function useFocusController(target, {
|
|
|
12284
12258
|
};
|
|
12285
12259
|
const handleBlur = (event) => {
|
|
12286
12260
|
var _a;
|
|
12287
|
-
const cancelBlur = isFunction$
|
|
12261
|
+
const cancelBlur = isFunction$1(beforeBlur) ? beforeBlur(event) : false;
|
|
12288
12262
|
if (unref(disabled) || event.relatedTarget && ((_a = wrapperRef.value) == null ? void 0 : _a.contains(event.relatedTarget)) || cancelBlur)
|
|
12289
12263
|
return;
|
|
12290
12264
|
isFocused.value = false;
|
|
@@ -12309,15 +12283,6 @@ function useFocusController(target, {
|
|
|
12309
12283
|
useEventListener(wrapperRef, "focus", handleFocus, true);
|
|
12310
12284
|
useEventListener(wrapperRef, "blur", handleBlur, true);
|
|
12311
12285
|
useEventListener(wrapperRef, "click", handleClick, true);
|
|
12312
|
-
if (typeof process !== "undefined" && false) {
|
|
12313
|
-
onMounted(() => {
|
|
12314
|
-
const targetEl = isElement(target.value) ? target.value : document.querySelector("input,textarea");
|
|
12315
|
-
if (targetEl) {
|
|
12316
|
-
useEventListener(targetEl, "focus", handleFocus, true);
|
|
12317
|
-
useEventListener(targetEl, "blur", handleBlur, true);
|
|
12318
|
-
}
|
|
12319
|
-
});
|
|
12320
|
-
}
|
|
12321
12286
|
return {
|
|
12322
12287
|
isFocused,
|
|
12323
12288
|
wrapperRef,
|
|
@@ -12362,7 +12327,7 @@ function useComposition({
|
|
|
12362
12327
|
}
|
|
12363
12328
|
|
|
12364
12329
|
const emptyValuesContextKey = Symbol("emptyValuesContextKey");
|
|
12365
|
-
const SCOPE$
|
|
12330
|
+
const SCOPE$6 = "use-empty-values";
|
|
12366
12331
|
const DEFAULT_EMPTY_VALUES = ["", void 0, null];
|
|
12367
12332
|
const DEFAULT_VALUE_ON_CLEAR = void 0;
|
|
12368
12333
|
const useEmptyValuesProps = buildProps({
|
|
@@ -12376,7 +12341,7 @@ const useEmptyValuesProps = buildProps({
|
|
|
12376
12341
|
]),
|
|
12377
12342
|
default: void 0,
|
|
12378
12343
|
validator: (val) => {
|
|
12379
|
-
val = isFunction$
|
|
12344
|
+
val = isFunction$1(val) ? val() : val;
|
|
12380
12345
|
if (isArray$1(val)) {
|
|
12381
12346
|
return val.every((item) => !item);
|
|
12382
12347
|
}
|
|
@@ -12388,11 +12353,11 @@ const useEmptyValues = (props, defaultValue) => {
|
|
|
12388
12353
|
const config = getCurrentInstance() ? inject(emptyValuesContextKey, ref({})) : ref({});
|
|
12389
12354
|
const emptyValues = computed(() => props.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES);
|
|
12390
12355
|
const valueOnClear = computed(() => {
|
|
12391
|
-
if (isFunction$
|
|
12356
|
+
if (isFunction$1(props.valueOnClear)) {
|
|
12392
12357
|
return props.valueOnClear();
|
|
12393
12358
|
} else if (props.valueOnClear !== void 0) {
|
|
12394
12359
|
return props.valueOnClear;
|
|
12395
|
-
} else if (isFunction$
|
|
12360
|
+
} else if (isFunction$1(config.value.valueOnClear)) {
|
|
12396
12361
|
return config.value.valueOnClear();
|
|
12397
12362
|
} else if (config.value.valueOnClear !== void 0) {
|
|
12398
12363
|
return config.value.valueOnClear;
|
|
@@ -12410,9 +12375,7 @@ const useEmptyValues = (props, defaultValue) => {
|
|
|
12410
12375
|
}
|
|
12411
12376
|
return result;
|
|
12412
12377
|
};
|
|
12413
|
-
if (!isEmptyValue(valueOnClear.value))
|
|
12414
|
-
debugWarn(SCOPE$8, "value-on-clear should be a value of empty-values");
|
|
12415
|
-
}
|
|
12378
|
+
if (!isEmptyValue(valueOnClear.value)) ;
|
|
12416
12379
|
return {
|
|
12417
12380
|
emptyValues,
|
|
12418
12381
|
valueOnClear,
|
|
@@ -12478,7 +12441,6 @@ const provideGlobalConfig = (config, app, global = false) => {
|
|
|
12478
12441
|
const oldConfig = inSetup ? useGlobalConfig() : void 0;
|
|
12479
12442
|
const provideFn = (_a = app == null ? void 0 : app.provide) != null ? _a : inSetup ? provide : void 0;
|
|
12480
12443
|
if (!provideFn) {
|
|
12481
|
-
debugWarn("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
12482
12444
|
return;
|
|
12483
12445
|
}
|
|
12484
12446
|
const context = computed(() => {
|
|
@@ -12569,7 +12531,7 @@ const ConfigProvider = defineComponent({
|
|
|
12569
12531
|
|
|
12570
12532
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
12571
12533
|
|
|
12572
|
-
const version$1 = "0.0.
|
|
12534
|
+
const version$1 = "0.0.20251209";
|
|
12573
12535
|
|
|
12574
12536
|
const makeInstaller = (components = []) => {
|
|
12575
12537
|
const install = (app, options) => {
|
|
@@ -12606,7 +12568,7 @@ const affixProps = buildProps({
|
|
|
12606
12568
|
}
|
|
12607
12569
|
});
|
|
12608
12570
|
const affixEmits = {
|
|
12609
|
-
scroll: ({ scrollTop, fixed }) => isNumber
|
|
12571
|
+
scroll: ({ scrollTop, fixed }) => isNumber(scrollTop) && isBoolean(fixed),
|
|
12610
12572
|
[CHANGE_EVENT]: (fixed) => isBoolean(fixed)
|
|
12611
12573
|
};
|
|
12612
12574
|
|
|
@@ -12618,9 +12580,9 @@ var _export_sfc = (sfc, props) => {
|
|
|
12618
12580
|
return target;
|
|
12619
12581
|
};
|
|
12620
12582
|
|
|
12621
|
-
const COMPONENT_NAME$
|
|
12583
|
+
const COMPONENT_NAME$o = "ElAffix";
|
|
12622
12584
|
const __default__$1Y = defineComponent({
|
|
12623
|
-
name: COMPONENT_NAME$
|
|
12585
|
+
name: COMPONENT_NAME$o
|
|
12624
12586
|
});
|
|
12625
12587
|
const _sfc_main$2v = /* @__PURE__ */ defineComponent({
|
|
12626
12588
|
...__default__$1Y,
|
|
@@ -12704,12 +12666,12 @@ const _sfc_main$2v = /* @__PURE__ */ defineComponent({
|
|
|
12704
12666
|
});
|
|
12705
12667
|
};
|
|
12706
12668
|
watch(fixed, (val) => emit(CHANGE_EVENT, val));
|
|
12707
|
-
onMounted
|
|
12669
|
+
onMounted(() => {
|
|
12708
12670
|
var _a;
|
|
12709
12671
|
if (props.target) {
|
|
12710
12672
|
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
12711
12673
|
if (!target.value)
|
|
12712
|
-
throwError
|
|
12674
|
+
throwError(COMPONENT_NAME$o, `Target does not exist: ${props.target}`);
|
|
12713
12675
|
} else {
|
|
12714
12676
|
target.value = document.documentElement;
|
|
12715
12677
|
}
|
|
@@ -12843,9 +12805,7 @@ const _sfc_main$2t = /* @__PURE__ */ defineComponent({
|
|
|
12843
12805
|
visible.value = false;
|
|
12844
12806
|
emit("close", evt);
|
|
12845
12807
|
};
|
|
12846
|
-
if (props.showAfter || props.hideAfter || props.autoClose)
|
|
12847
|
-
debugWarn("el-alert", "The `show-after`, `hide-after`, and `auto-close` attributes were removed after 2.11.8. Please use `v-if` and `v-show` to manually replace them, visit: https://github.com/element-plus/element-plus/pull/22560");
|
|
12848
|
-
}
|
|
12808
|
+
if (props.showAfter || props.hideAfter || props.autoClose) ;
|
|
12849
12809
|
return (_ctx, _cache) => {
|
|
12850
12810
|
return openBlock(), createBlock(Transition, {
|
|
12851
12811
|
name: unref(ns).b("fade"),
|
|
@@ -12977,7 +12937,7 @@ const useFormItemInputId = (props, {
|
|
|
12977
12937
|
var _a;
|
|
12978
12938
|
return !!(!(props.label || props.ariaLabel) && formItemContext && formItemContext.inputIds && ((_a = formItemContext.inputIds) == null ? void 0 : _a.length) <= 1);
|
|
12979
12939
|
});
|
|
12980
|
-
onMounted
|
|
12940
|
+
onMounted(() => {
|
|
12981
12941
|
idUnwatch = watch([toRef(props, "id"), disableIdGeneration], ([id, disableIdGeneration2]) => {
|
|
12982
12942
|
const newId = id != null ? id : !disableIdGeneration2 ? useId().value : void 0;
|
|
12983
12943
|
if (newId !== inputId.value) {
|
|
@@ -13053,10 +13013,9 @@ const formProps = buildProps({
|
|
|
13053
13013
|
}
|
|
13054
13014
|
});
|
|
13055
13015
|
const formEmits = {
|
|
13056
|
-
validate: (prop, isValid, message) => (isArray$1(prop) || isString$
|
|
13016
|
+
validate: (prop, isValid, message) => (isArray$1(prop) || isString$1(prop)) && isBoolean(isValid) && isString$1(message)
|
|
13057
13017
|
};
|
|
13058
13018
|
|
|
13059
|
-
const SCOPE$7 = "ElForm";
|
|
13060
13019
|
function useFormLabelWidth() {
|
|
13061
13020
|
const potentialLabelWidthArr = ref([]);
|
|
13062
13021
|
const autoLabelWidth = computed(() => {
|
|
@@ -13067,9 +13026,7 @@ function useFormLabelWidth() {
|
|
|
13067
13026
|
});
|
|
13068
13027
|
function getLabelWidthIndex(width) {
|
|
13069
13028
|
const index = potentialLabelWidthArr.value.indexOf(width);
|
|
13070
|
-
if (index === -1 && autoLabelWidth.value === "0")
|
|
13071
|
-
debugWarn(SCOPE$7, `unexpected width ${width}`);
|
|
13072
|
-
}
|
|
13029
|
+
if (index === -1 && autoLabelWidth.value === "0") ;
|
|
13073
13030
|
return index;
|
|
13074
13031
|
}
|
|
13075
13032
|
function registerLabelWidth(val, oldVal) {
|
|
@@ -13097,9 +13054,9 @@ const filterFields = (fields, props) => {
|
|
|
13097
13054
|
return normalized.length > 0 ? fields.filter((field) => field.propString && normalized.includes(field.propString)) : fields;
|
|
13098
13055
|
};
|
|
13099
13056
|
|
|
13100
|
-
const COMPONENT_NAME$
|
|
13057
|
+
const COMPONENT_NAME$n = "ElForm";
|
|
13101
13058
|
const __default__$1V = defineComponent({
|
|
13102
|
-
name: COMPONENT_NAME$
|
|
13059
|
+
name: COMPONENT_NAME$n
|
|
13103
13060
|
});
|
|
13104
13061
|
const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
13105
13062
|
...__default__$1V,
|
|
@@ -13135,7 +13092,6 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
13135
13092
|
};
|
|
13136
13093
|
const resetFields = (properties = []) => {
|
|
13137
13094
|
if (!props.model) {
|
|
13138
|
-
debugWarn(COMPONENT_NAME$o, "model is required for resetFields to work.");
|
|
13139
13095
|
return;
|
|
13140
13096
|
}
|
|
13141
13097
|
filterFields(fields, properties).forEach((field) => field.resetField());
|
|
@@ -13145,9 +13101,6 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
13145
13101
|
};
|
|
13146
13102
|
const isValidatable = computed(() => {
|
|
13147
13103
|
const hasModel = !!props.model;
|
|
13148
|
-
if (!hasModel) {
|
|
13149
|
-
debugWarn(COMPONENT_NAME$o, "model is required for validate to work.");
|
|
13150
|
-
}
|
|
13151
13104
|
return hasModel;
|
|
13152
13105
|
});
|
|
13153
13106
|
const obtainValidateFields = (props2) => {
|
|
@@ -13155,7 +13108,6 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
13155
13108
|
return [];
|
|
13156
13109
|
const filteredFields = filterFields(fields, props2);
|
|
13157
13110
|
if (!filteredFields.length) {
|
|
13158
|
-
debugWarn(COMPONENT_NAME$o, "please pass correct props!");
|
|
13159
13111
|
return [];
|
|
13160
13112
|
}
|
|
13161
13113
|
return filteredFields;
|
|
@@ -13186,7 +13138,7 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
13186
13138
|
};
|
|
13187
13139
|
const validateField = async (modelProps = [], callback) => {
|
|
13188
13140
|
let result = false;
|
|
13189
|
-
const shouldThrow = !isFunction$
|
|
13141
|
+
const shouldThrow = !isFunction$1(callback);
|
|
13190
13142
|
try {
|
|
13191
13143
|
result = await doValidateField(modelProps);
|
|
13192
13144
|
if (result === true) {
|
|
@@ -13216,7 +13168,7 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
13216
13168
|
};
|
|
13217
13169
|
watch(() => props.rules, () => {
|
|
13218
13170
|
if (props.validateOnRuleChange) {
|
|
13219
|
-
validate().catch((err) => debugWarn(
|
|
13171
|
+
validate().catch((err) => debugWarn());
|
|
13220
13172
|
}
|
|
13221
13173
|
}, { deep: true, flush: "post" });
|
|
13222
13174
|
provide(formContextKey, reactive({
|
|
@@ -14346,9 +14298,9 @@ const formItemProps = buildProps({
|
|
|
14346
14298
|
}
|
|
14347
14299
|
});
|
|
14348
14300
|
|
|
14349
|
-
const COMPONENT_NAME$
|
|
14301
|
+
const COMPONENT_NAME$m = "ElLabelWrap";
|
|
14350
14302
|
var FormLabelWrap = defineComponent({
|
|
14351
|
-
name: COMPONENT_NAME$
|
|
14303
|
+
name: COMPONENT_NAME$m,
|
|
14352
14304
|
props: {
|
|
14353
14305
|
isAutoWidth: Boolean,
|
|
14354
14306
|
updateAll: Boolean
|
|
@@ -14359,7 +14311,7 @@ var FormLabelWrap = defineComponent({
|
|
|
14359
14311
|
const formContext = inject(formContextKey, void 0);
|
|
14360
14312
|
const formItemContext = inject(formItemContextKey);
|
|
14361
14313
|
if (!formItemContext)
|
|
14362
|
-
throwError
|
|
14314
|
+
throwError(COMPONENT_NAME$m, "usage: <el-form-item><label-wrap /></el-form-item>");
|
|
14363
14315
|
const ns = useNamespace("form");
|
|
14364
14316
|
const el = ref();
|
|
14365
14317
|
const computedWidth = ref(0);
|
|
@@ -14384,7 +14336,7 @@ var FormLabelWrap = defineComponent({
|
|
|
14384
14336
|
});
|
|
14385
14337
|
};
|
|
14386
14338
|
const updateLabelWidthFn = () => updateLabelWidth("update");
|
|
14387
|
-
onMounted
|
|
14339
|
+
onMounted(() => {
|
|
14388
14340
|
updateLabelWidthFn();
|
|
14389
14341
|
});
|
|
14390
14342
|
onBeforeUnmount(() => {
|
|
@@ -14599,7 +14551,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
14599
14551
|
if (isResettingField || !props.prop) {
|
|
14600
14552
|
return false;
|
|
14601
14553
|
}
|
|
14602
|
-
const hasCallback = isFunction$
|
|
14554
|
+
const hasCallback = isFunction$1(callback);
|
|
14603
14555
|
if (!validateEnabled.value) {
|
|
14604
14556
|
callback == null ? void 0 : callback(false);
|
|
14605
14557
|
return false;
|
|
@@ -14667,7 +14619,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
14667
14619
|
propString
|
|
14668
14620
|
});
|
|
14669
14621
|
provide(formItemContextKey, context);
|
|
14670
|
-
onMounted
|
|
14622
|
+
onMounted(() => {
|
|
14671
14623
|
if (props.prop) {
|
|
14672
14624
|
formContext == null ? void 0 : formContext.addField(context);
|
|
14673
14625
|
initialValue = clone(fieldValue.value);
|
|
@@ -14809,7 +14761,7 @@ function calcTextareaHeight(targetElement, minRows = 1, maxRows) {
|
|
|
14809
14761
|
}
|
|
14810
14762
|
hiddenTextarea.value = "";
|
|
14811
14763
|
const singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
|
14812
|
-
if (isNumber
|
|
14764
|
+
if (isNumber(minRows)) {
|
|
14813
14765
|
let minHeight = singleRowHeight * minRows;
|
|
14814
14766
|
if (boxSizing === "border-box") {
|
|
14815
14767
|
minHeight = minHeight + paddingSize + borderSize;
|
|
@@ -14817,7 +14769,7 @@ function calcTextareaHeight(targetElement, minRows = 1, maxRows) {
|
|
|
14817
14769
|
height = Math.max(minHeight, height);
|
|
14818
14770
|
result.minHeight = `${minHeight}px`;
|
|
14819
14771
|
}
|
|
14820
|
-
if (isNumber
|
|
14772
|
+
if (isNumber(maxRows)) {
|
|
14821
14773
|
let maxHeight = singleRowHeight * maxRows;
|
|
14822
14774
|
if (boxSizing === "border-box") {
|
|
14823
14775
|
maxHeight = maxHeight + paddingSize + borderSize;
|
|
@@ -14934,9 +14886,9 @@ const inputProps = buildProps({
|
|
|
14934
14886
|
name: String
|
|
14935
14887
|
});
|
|
14936
14888
|
const inputEmits = {
|
|
14937
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
14938
|
-
input: (value) => isString$
|
|
14939
|
-
change: (value, evt) => isString$
|
|
14889
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$1(value),
|
|
14890
|
+
input: (value) => isString$1(value),
|
|
14891
|
+
change: (value, evt) => isString$1(value) && (evt instanceof Event || evt === void 0),
|
|
14940
14892
|
focus: (evt) => evt instanceof FocusEvent,
|
|
14941
14893
|
blur: (evt) => evt instanceof FocusEvent,
|
|
14942
14894
|
clear: () => true,
|
|
@@ -14948,9 +14900,9 @@ const inputEmits = {
|
|
|
14948
14900
|
compositionend: (evt) => evt instanceof CompositionEvent
|
|
14949
14901
|
};
|
|
14950
14902
|
|
|
14951
|
-
const COMPONENT_NAME$
|
|
14903
|
+
const COMPONENT_NAME$l = "ElInput";
|
|
14952
14904
|
const __default__$1T = defineComponent({
|
|
14953
|
-
name: COMPONENT_NAME$
|
|
14905
|
+
name: COMPONENT_NAME$l,
|
|
14954
14906
|
inheritAttrs: false
|
|
14955
14907
|
});
|
|
14956
14908
|
const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
@@ -15000,7 +14952,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
15000
14952
|
afterBlur() {
|
|
15001
14953
|
var _a;
|
|
15002
14954
|
if (props.validateEvent) {
|
|
15003
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(
|
|
14955
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn());
|
|
15004
14956
|
}
|
|
15005
14957
|
}
|
|
15006
14958
|
});
|
|
@@ -15171,7 +15123,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
15171
15123
|
var _a;
|
|
15172
15124
|
nextTick(() => resizeTextarea());
|
|
15173
15125
|
if (props.validateEvent) {
|
|
15174
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(
|
|
15126
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
15175
15127
|
}
|
|
15176
15128
|
});
|
|
15177
15129
|
watch(nativeInputValue, (newValue) => {
|
|
@@ -15196,10 +15148,8 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
15196
15148
|
setNativeInputValue();
|
|
15197
15149
|
resizeTextarea();
|
|
15198
15150
|
});
|
|
15199
|
-
onMounted
|
|
15200
|
-
if (!props.formatter && props.parser)
|
|
15201
|
-
debugWarn(COMPONENT_NAME$m, "If you set the parser, you also need to set the formatter.");
|
|
15202
|
-
}
|
|
15151
|
+
onMounted(() => {
|
|
15152
|
+
if (!props.formatter && props.parser) ;
|
|
15203
15153
|
setNativeInputValue();
|
|
15204
15154
|
nextTick(resizeTextarea);
|
|
15205
15155
|
});
|
|
@@ -15461,7 +15411,7 @@ const thumbProps = buildProps({
|
|
|
15461
15411
|
always: Boolean
|
|
15462
15412
|
});
|
|
15463
15413
|
|
|
15464
|
-
const COMPONENT_NAME$
|
|
15414
|
+
const COMPONENT_NAME$k = "Thumb";
|
|
15465
15415
|
const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
15466
15416
|
__name: "thumb",
|
|
15467
15417
|
props: thumbProps,
|
|
@@ -15470,7 +15420,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
15470
15420
|
const scrollbar = inject(scrollbarContextKey);
|
|
15471
15421
|
const ns = useNamespace("scrollbar");
|
|
15472
15422
|
if (!scrollbar)
|
|
15473
|
-
throwError
|
|
15423
|
+
throwError(COMPONENT_NAME$k, "can not inject scrollbar context");
|
|
15474
15424
|
const instance = ref();
|
|
15475
15425
|
const thumb = ref();
|
|
15476
15426
|
const thumbState = ref({});
|
|
@@ -15717,12 +15667,12 @@ const scrollbarEmits = {
|
|
|
15717
15667
|
scroll: ({
|
|
15718
15668
|
scrollTop,
|
|
15719
15669
|
scrollLeft
|
|
15720
|
-
}) => [scrollTop, scrollLeft].every(isNumber
|
|
15670
|
+
}) => [scrollTop, scrollLeft].every(isNumber)
|
|
15721
15671
|
};
|
|
15722
15672
|
|
|
15723
|
-
const COMPONENT_NAME$
|
|
15673
|
+
const COMPONENT_NAME$j = "ElScrollbar";
|
|
15724
15674
|
const __default__$1S = defineComponent({
|
|
15725
|
-
name: COMPONENT_NAME$
|
|
15675
|
+
name: COMPONENT_NAME$j
|
|
15726
15676
|
});
|
|
15727
15677
|
const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
15728
15678
|
...__default__$1S,
|
|
@@ -15827,20 +15777,18 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
15827
15777
|
function scrollTo(arg1, arg2) {
|
|
15828
15778
|
if (isObject$1(arg1)) {
|
|
15829
15779
|
wrapRef.value.scrollTo(arg1);
|
|
15830
|
-
} else if (isNumber
|
|
15780
|
+
} else if (isNumber(arg1) && isNumber(arg2)) {
|
|
15831
15781
|
wrapRef.value.scrollTo(arg1, arg2);
|
|
15832
15782
|
}
|
|
15833
15783
|
}
|
|
15834
15784
|
const setScrollTop = (value) => {
|
|
15835
|
-
if (!isNumber
|
|
15836
|
-
debugWarn(COMPONENT_NAME$k, "value must be a number");
|
|
15785
|
+
if (!isNumber(value)) {
|
|
15837
15786
|
return;
|
|
15838
15787
|
}
|
|
15839
15788
|
wrapRef.value.scrollTop = value;
|
|
15840
15789
|
};
|
|
15841
15790
|
const setScrollLeft = (value) => {
|
|
15842
|
-
if (!isNumber
|
|
15843
|
-
debugWarn(COMPONENT_NAME$k, "value must be a number");
|
|
15791
|
+
if (!isNumber(value)) {
|
|
15844
15792
|
return;
|
|
15845
15793
|
}
|
|
15846
15794
|
wrapRef.value.scrollLeft = value;
|
|
@@ -15881,7 +15829,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
15881
15829
|
wrapRef.value.scrollLeft = wrapScrollLeft;
|
|
15882
15830
|
}
|
|
15883
15831
|
});
|
|
15884
|
-
onMounted
|
|
15832
|
+
onMounted(() => {
|
|
15885
15833
|
if (!props.native)
|
|
15886
15834
|
nextTick(() => {
|
|
15887
15835
|
update();
|
|
@@ -16042,12 +15990,8 @@ const OnlyChild = defineComponent({
|
|
|
16042
15990
|
return null;
|
|
16043
15991
|
const [firstLegitNode, length] = findFirstLegitChild(defaultSlot);
|
|
16044
15992
|
if (!firstLegitNode) {
|
|
16045
|
-
debugWarn(NAME, "no valid child node found");
|
|
16046
15993
|
return null;
|
|
16047
15994
|
}
|
|
16048
|
-
if (length > 1) {
|
|
16049
|
-
debugWarn(NAME, "requires exact only one valid child.");
|
|
16050
|
-
}
|
|
16051
15995
|
return withDirectives(cloneVNode(firstLegitNode, attrs), [[forwardRefDirective]]);
|
|
16052
15996
|
};
|
|
16053
15997
|
}
|
|
@@ -16152,7 +16096,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
|
|
|
16152
16096
|
"onBlur",
|
|
16153
16097
|
"onContextmenu"
|
|
16154
16098
|
];
|
|
16155
|
-
onMounted
|
|
16099
|
+
onMounted(() => {
|
|
16156
16100
|
watch(() => props.virtualRef, (virtualEl) => {
|
|
16157
16101
|
if (virtualEl) {
|
|
16158
16102
|
triggerRef.value = unrefElement(virtualEl);
|
|
@@ -16163,7 +16107,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
|
|
|
16163
16107
|
watch(triggerRef, (el, prevEl) => {
|
|
16164
16108
|
virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
|
|
16165
16109
|
virtualTriggerAriaStopWatch = void 0;
|
|
16166
|
-
if (isElement$
|
|
16110
|
+
if (isElement$2(prevEl)) {
|
|
16167
16111
|
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
|
16168
16112
|
const handler = props[eventName];
|
|
16169
16113
|
if (handler) {
|
|
@@ -16171,7 +16115,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
|
|
|
16171
16115
|
}
|
|
16172
16116
|
});
|
|
16173
16117
|
}
|
|
16174
|
-
if (isElement$
|
|
16118
|
+
if (isElement$2(el)) {
|
|
16175
16119
|
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
|
16176
16120
|
const handler = props[eventName];
|
|
16177
16121
|
if (handler) {
|
|
@@ -16191,7 +16135,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
|
|
|
16191
16135
|
}, { immediate: true });
|
|
16192
16136
|
}
|
|
16193
16137
|
}
|
|
16194
|
-
if (isElement$
|
|
16138
|
+
if (isElement$2(prevEl) && isFocusable(prevEl)) {
|
|
16195
16139
|
[
|
|
16196
16140
|
"aria-controls",
|
|
16197
16141
|
"aria-describedby",
|
|
@@ -16206,7 +16150,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
|
|
|
16206
16150
|
onBeforeUnmount(() => {
|
|
16207
16151
|
virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
|
|
16208
16152
|
virtualTriggerAriaStopWatch = void 0;
|
|
16209
|
-
if (triggerRef.value && isElement$
|
|
16153
|
+
if (triggerRef.value && isElement$2(triggerRef.value)) {
|
|
16210
16154
|
const el = triggerRef.value;
|
|
16211
16155
|
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
|
16212
16156
|
const handler = props[eventName];
|
|
@@ -16277,8 +16221,6 @@ const getVisibleElement = (elements, container) => {
|
|
|
16277
16221
|
}
|
|
16278
16222
|
};
|
|
16279
16223
|
const isHidden = (element, container) => {
|
|
16280
|
-
if (typeof process !== "undefined" && false)
|
|
16281
|
-
return false;
|
|
16282
16224
|
if (getComputedStyle(element).visibility === "hidden")
|
|
16283
16225
|
return true;
|
|
16284
16226
|
while (element) {
|
|
@@ -16358,7 +16300,7 @@ const notifyFocusReasonKeydown = () => {
|
|
|
16358
16300
|
lastUserFocusTimestamp.value = window.performance.now();
|
|
16359
16301
|
};
|
|
16360
16302
|
const useFocusReason = () => {
|
|
16361
|
-
onMounted
|
|
16303
|
+
onMounted(() => {
|
|
16362
16304
|
if (focusReasonUserCount === 0) {
|
|
16363
16305
|
document.addEventListener("mousedown", notifyFocusReasonPointer);
|
|
16364
16306
|
document.addEventListener("touchstart", notifyFocusReasonPointer);
|
|
@@ -16566,7 +16508,7 @@ const _sfc_main$2j = defineComponent({
|
|
|
16566
16508
|
if (!focusEvent.defaultPrevented) {
|
|
16567
16509
|
nextTick(() => {
|
|
16568
16510
|
let focusStartEl = props.focusStartEl;
|
|
16569
|
-
if (!isString$
|
|
16511
|
+
if (!isString$1(focusStartEl)) {
|
|
16570
16512
|
tryFocus(focusStartEl);
|
|
16571
16513
|
if (document.activeElement !== focusStartEl) {
|
|
16572
16514
|
focusStartEl = "first";
|
|
@@ -16604,7 +16546,7 @@ const _sfc_main$2j = defineComponent({
|
|
|
16604
16546
|
lastFocusAfterTrapped = null;
|
|
16605
16547
|
}
|
|
16606
16548
|
}
|
|
16607
|
-
onMounted
|
|
16549
|
+
onMounted(() => {
|
|
16608
16550
|
if (props.trapped) {
|
|
16609
16551
|
startTrap();
|
|
16610
16552
|
}
|
|
@@ -16831,7 +16773,7 @@ const usePopperContent = (props) => {
|
|
|
16831
16773
|
watch(instanceRef, (instance) => popperInstanceRef.value = instance, {
|
|
16832
16774
|
flush: "sync"
|
|
16833
16775
|
});
|
|
16834
|
-
onMounted
|
|
16776
|
+
onMounted(() => {
|
|
16835
16777
|
watch(() => {
|
|
16836
16778
|
var _a, _b;
|
|
16837
16779
|
return (_b = (_a = unref(computedReference)) == null ? void 0 : _a.getBoundingClientRect) == null ? void 0 : _b.call(_a);
|
|
@@ -16863,7 +16805,7 @@ const usePopperContentDOM = (props, {
|
|
|
16863
16805
|
const { nextZIndex } = useZIndex();
|
|
16864
16806
|
const ns = useNamespace("popper");
|
|
16865
16807
|
const contentAttrs = computed(() => unref(attributes).popper);
|
|
16866
|
-
const contentZIndex = ref(isNumber
|
|
16808
|
+
const contentZIndex = ref(isNumber(props.zIndex) ? props.zIndex : nextZIndex());
|
|
16867
16809
|
const contentClass = computed(() => [
|
|
16868
16810
|
ns.b(),
|
|
16869
16811
|
ns.is("pure", props.pure),
|
|
@@ -16880,7 +16822,7 @@ const usePopperContentDOM = (props, {
|
|
|
16880
16822
|
const ariaModal = computed(() => role.value === "dialog" ? "false" : void 0);
|
|
16881
16823
|
const arrowStyle = computed(() => unref(styles).arrow || {});
|
|
16882
16824
|
const updateZIndex = () => {
|
|
16883
|
-
contentZIndex.value = isNumber
|
|
16825
|
+
contentZIndex.value = isNumber(props.zIndex) ? props.zIndex : nextZIndex();
|
|
16884
16826
|
};
|
|
16885
16827
|
return {
|
|
16886
16828
|
ariaModal,
|
|
@@ -16996,20 +16938,20 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
16996
16938
|
trapped.value = false;
|
|
16997
16939
|
}
|
|
16998
16940
|
};
|
|
16999
|
-
onMounted
|
|
16941
|
+
onMounted(() => {
|
|
17000
16942
|
watch(() => props.triggerTargetEl, (triggerTargetEl, prevTriggerTargetEl) => {
|
|
17001
16943
|
triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
|
|
17002
16944
|
triggerTargetAriaStopWatch = void 0;
|
|
17003
16945
|
const el = unref(triggerTargetEl || contentRef.value);
|
|
17004
16946
|
const prevEl = unref(prevTriggerTargetEl || contentRef.value);
|
|
17005
|
-
if (isElement$
|
|
16947
|
+
if (isElement$2(el)) {
|
|
17006
16948
|
triggerTargetAriaStopWatch = watch([role, () => props.ariaLabel, ariaModal, () => props.id], (watches) => {
|
|
17007
16949
|
["role", "aria-label", "aria-modal", "id"].forEach((key, idx) => {
|
|
17008
16950
|
isNil(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
|
|
17009
16951
|
});
|
|
17010
16952
|
}, { immediate: true });
|
|
17011
16953
|
}
|
|
17012
|
-
if (prevEl !== el && isElement$
|
|
16954
|
+
if (prevEl !== el && isElement$2(prevEl)) {
|
|
17013
16955
|
["role", "aria-label", "aria-modal", "id"].forEach((key) => {
|
|
17014
16956
|
prevEl.removeAttribute(key);
|
|
17015
16957
|
});
|
|
@@ -17636,18 +17578,18 @@ const autocompleteProps = buildProps({
|
|
|
17636
17578
|
}
|
|
17637
17579
|
});
|
|
17638
17580
|
const autocompleteEmits = {
|
|
17639
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
17640
|
-
[INPUT_EVENT]: (value) => isString$
|
|
17641
|
-
[CHANGE_EVENT]: (value) => isString$
|
|
17581
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$1(value) || isNumber(value),
|
|
17582
|
+
[INPUT_EVENT]: (value) => isString$1(value) || isNumber(value),
|
|
17583
|
+
[CHANGE_EVENT]: (value) => isString$1(value) || isNumber(value),
|
|
17642
17584
|
focus: (evt) => evt instanceof FocusEvent,
|
|
17643
17585
|
blur: (evt) => evt instanceof FocusEvent,
|
|
17644
17586
|
clear: () => true,
|
|
17645
17587
|
select: (item) => isObject$1(item)
|
|
17646
17588
|
};
|
|
17647
17589
|
|
|
17648
|
-
const COMPONENT_NAME$
|
|
17590
|
+
const COMPONENT_NAME$i = "ElAutocomplete";
|
|
17649
17591
|
const __default__$1K = defineComponent({
|
|
17650
|
-
name: COMPONENT_NAME$
|
|
17592
|
+
name: COMPONENT_NAME$i,
|
|
17651
17593
|
inheritAttrs: false
|
|
17652
17594
|
});
|
|
17653
17595
|
const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
@@ -17704,7 +17646,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
17704
17646
|
suggestions.value = suggestionList;
|
|
17705
17647
|
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
|
17706
17648
|
} else {
|
|
17707
|
-
throwError
|
|
17649
|
+
throwError(COMPONENT_NAME$i, "autocomplete suggestions must be an array");
|
|
17708
17650
|
}
|
|
17709
17651
|
};
|
|
17710
17652
|
loading.value = true;
|
|
@@ -17894,7 +17836,7 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
17894
17836
|
onBeforeUnmount(() => {
|
|
17895
17837
|
stopHandle == null ? void 0 : stopHandle();
|
|
17896
17838
|
});
|
|
17897
|
-
onMounted
|
|
17839
|
+
onMounted(() => {
|
|
17898
17840
|
var _a;
|
|
17899
17841
|
const inputElement = (_a = inputRef.value) == null ? void 0 : _a.ref;
|
|
17900
17842
|
if (!inputElement)
|
|
@@ -18080,7 +18022,7 @@ const avatarProps = buildProps({
|
|
|
18080
18022
|
type: [Number, String],
|
|
18081
18023
|
values: componentSizes,
|
|
18082
18024
|
default: "",
|
|
18083
|
-
validator: (val) => isNumber
|
|
18025
|
+
validator: (val) => isNumber(val)
|
|
18084
18026
|
},
|
|
18085
18027
|
shape: {
|
|
18086
18028
|
type: String,
|
|
@@ -18119,7 +18061,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
18119
18061
|
const avatarClass = computed(() => {
|
|
18120
18062
|
const { size, icon, shape } = props;
|
|
18121
18063
|
const classList = [ns.b()];
|
|
18122
|
-
if (isString$
|
|
18064
|
+
if (isString$1(size))
|
|
18123
18065
|
classList.push(ns.m(size));
|
|
18124
18066
|
if (icon)
|
|
18125
18067
|
classList.push(ns.m("icon"));
|
|
@@ -18129,7 +18071,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
18129
18071
|
});
|
|
18130
18072
|
const sizeStyle = computed(() => {
|
|
18131
18073
|
const { size } = props;
|
|
18132
|
-
return isNumber
|
|
18074
|
+
return isNumber(size) ? ns.cssVarBlock({
|
|
18133
18075
|
size: addUnit(size)
|
|
18134
18076
|
}) : void 0;
|
|
18135
18077
|
});
|
|
@@ -18204,14 +18146,14 @@ const useBackTop = (props, emit, componentName) => {
|
|
|
18204
18146
|
};
|
|
18205
18147
|
const handleScrollThrottled = useThrottleFn(handleScroll, 300, true);
|
|
18206
18148
|
useEventListener(container, "scroll", handleScrollThrottled);
|
|
18207
|
-
onMounted
|
|
18149
|
+
onMounted(() => {
|
|
18208
18150
|
var _a;
|
|
18209
18151
|
container.value = document;
|
|
18210
18152
|
el.value = document.documentElement;
|
|
18211
18153
|
if (props.target) {
|
|
18212
18154
|
el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
18213
18155
|
if (!el.value) {
|
|
18214
|
-
throwError
|
|
18156
|
+
throwError(componentName, `target does not exist: ${props.target}`);
|
|
18215
18157
|
}
|
|
18216
18158
|
container.value = el.value;
|
|
18217
18159
|
}
|
|
@@ -18223,9 +18165,9 @@ const useBackTop = (props, emit, componentName) => {
|
|
|
18223
18165
|
};
|
|
18224
18166
|
};
|
|
18225
18167
|
|
|
18226
|
-
const COMPONENT_NAME$
|
|
18168
|
+
const COMPONENT_NAME$h = "ElBacktop";
|
|
18227
18169
|
const __default__$1I = defineComponent({
|
|
18228
|
-
name: COMPONENT_NAME$
|
|
18170
|
+
name: COMPONENT_NAME$h
|
|
18229
18171
|
});
|
|
18230
18172
|
const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
18231
18173
|
...__default__$1I,
|
|
@@ -18234,7 +18176,7 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
|
18234
18176
|
setup(__props, { emit }) {
|
|
18235
18177
|
const props = __props;
|
|
18236
18178
|
const ns = useNamespace("backtop");
|
|
18237
|
-
const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$
|
|
18179
|
+
const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$h);
|
|
18238
18180
|
const backTopStyle = computed(() => ({
|
|
18239
18181
|
right: `${props.right}px`,
|
|
18240
18182
|
bottom: `${props.bottom}px`
|
|
@@ -18316,7 +18258,7 @@ const _sfc_main$2a = /* @__PURE__ */ defineComponent({
|
|
|
18316
18258
|
const content = computed(() => {
|
|
18317
18259
|
if (props.isDot)
|
|
18318
18260
|
return "";
|
|
18319
|
-
if (isNumber
|
|
18261
|
+
if (isNumber(props.value) && isNumber(props.max)) {
|
|
18320
18262
|
return props.max < props.value ? `${props.max}+` : `${props.value}`;
|
|
18321
18263
|
}
|
|
18322
18264
|
return `${props.value}`;
|
|
@@ -18397,7 +18339,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
18397
18339
|
const ns = useNamespace("breadcrumb");
|
|
18398
18340
|
const breadcrumb = ref();
|
|
18399
18341
|
provide(breadcrumbKey, props);
|
|
18400
|
-
onMounted
|
|
18342
|
+
onMounted(() => {
|
|
18401
18343
|
const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
|
|
18402
18344
|
if (items.length) {
|
|
18403
18345
|
items[items.length - 1].setAttribute("aria-current", "page");
|
|
@@ -20633,7 +20575,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
20633
20575
|
handleChange();
|
|
20634
20576
|
pickerVisible.value = false;
|
|
20635
20577
|
hasJustTabExitedInput = false;
|
|
20636
|
-
props.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn(
|
|
20578
|
+
props.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn()));
|
|
20637
20579
|
}
|
|
20638
20580
|
});
|
|
20639
20581
|
const hovering = ref(false);
|
|
@@ -20670,7 +20612,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
20670
20612
|
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
|
20671
20613
|
emit(CHANGE_EVENT, val);
|
|
20672
20614
|
isClear && (valueOnOpen.value = val);
|
|
20673
|
-
props.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
20615
|
+
props.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn()));
|
|
20674
20616
|
}
|
|
20675
20617
|
};
|
|
20676
20618
|
const emitKeydown = (e) => {
|
|
@@ -21258,7 +21200,7 @@ function createDocumentHandler(el, binding) {
|
|
|
21258
21200
|
let excludes = [];
|
|
21259
21201
|
if (isArray$1(binding.arg)) {
|
|
21260
21202
|
excludes = binding.arg;
|
|
21261
|
-
} else if (isElement$
|
|
21203
|
+
} else if (isElement$2(binding.arg)) {
|
|
21262
21204
|
excludes.push(binding.arg);
|
|
21263
21205
|
}
|
|
21264
21206
|
return function(mouseup, mousedown) {
|
|
@@ -21310,14 +21252,14 @@ const ClickOutside = {
|
|
|
21310
21252
|
|
|
21311
21253
|
const REPEAT_INTERVAL = 100;
|
|
21312
21254
|
const REPEAT_DELAY = 600;
|
|
21313
|
-
const SCOPE$
|
|
21255
|
+
const SCOPE$5 = "_RepeatClick";
|
|
21314
21256
|
const vRepeatClick = {
|
|
21315
21257
|
beforeMount(el, binding) {
|
|
21316
21258
|
const value = binding.value;
|
|
21317
|
-
const { interval = REPEAT_INTERVAL, delay = REPEAT_DELAY } = isFunction$
|
|
21259
|
+
const { interval = REPEAT_INTERVAL, delay = REPEAT_DELAY } = isFunction$1(value) ? {} : value;
|
|
21318
21260
|
let intervalId;
|
|
21319
21261
|
let delayId;
|
|
21320
|
-
const handler = () => isFunction$
|
|
21262
|
+
const handler = () => isFunction$1(value) ? value() : value.handler();
|
|
21321
21263
|
const clear = () => {
|
|
21322
21264
|
if (delayId) {
|
|
21323
21265
|
clearTimeout(delayId);
|
|
@@ -21340,13 +21282,13 @@ const vRepeatClick = {
|
|
|
21340
21282
|
}, interval);
|
|
21341
21283
|
}, delay);
|
|
21342
21284
|
};
|
|
21343
|
-
el[SCOPE$
|
|
21285
|
+
el[SCOPE$5] = { start, clear };
|
|
21344
21286
|
el.addEventListener("mousedown", start);
|
|
21345
21287
|
},
|
|
21346
21288
|
unmounted(el) {
|
|
21347
|
-
if (!el[SCOPE$
|
|
21289
|
+
if (!el[SCOPE$5])
|
|
21348
21290
|
return;
|
|
21349
|
-
const { start, clear } = el[SCOPE$
|
|
21291
|
+
const { start, clear } = el[SCOPE$5];
|
|
21350
21292
|
if (start) {
|
|
21351
21293
|
el.removeEventListener("mousedown", start);
|
|
21352
21294
|
}
|
|
@@ -21354,7 +21296,7 @@ const vRepeatClick = {
|
|
|
21354
21296
|
clear();
|
|
21355
21297
|
document.removeEventListener("mouseup", clear);
|
|
21356
21298
|
}
|
|
21357
|
-
el[SCOPE$
|
|
21299
|
+
el[SCOPE$5] = null;
|
|
21358
21300
|
}
|
|
21359
21301
|
};
|
|
21360
21302
|
|
|
@@ -21384,12 +21326,6 @@ const FOCUS_HANDLER = (e) => {
|
|
|
21384
21326
|
e.preventDefault();
|
|
21385
21327
|
focusableElement[0].focus();
|
|
21386
21328
|
}
|
|
21387
|
-
if (typeof process !== "undefined" && false) {
|
|
21388
|
-
const index = focusableElement.indexOf(e.target);
|
|
21389
|
-
if (index !== -1) {
|
|
21390
|
-
(_a = focusableElement[goingBackward ? index - 1 : index + 1]) == null ? void 0 : _a.focus();
|
|
21391
|
-
}
|
|
21392
|
-
}
|
|
21393
21329
|
}
|
|
21394
21330
|
};
|
|
21395
21331
|
const TrapFocus = {
|
|
@@ -21428,7 +21364,7 @@ var v=!1,o,f,s,u,d,N,l,p,m,w,D,x,E,M,F;function a(){if(!v){v=!0;var e=navigator.
|
|
|
21428
21364
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
21429
21365
|
*/
|
|
21430
21366
|
|
|
21431
|
-
const SCOPE$
|
|
21367
|
+
const SCOPE$4 = "_Mousewheel";
|
|
21432
21368
|
const mousewheel = function(element, callback) {
|
|
21433
21369
|
if (element && element.addEventListener) {
|
|
21434
21370
|
removeWheelHandler(element);
|
|
@@ -21436,15 +21372,15 @@ const mousewheel = function(element, callback) {
|
|
|
21436
21372
|
const normalized = Y(event);
|
|
21437
21373
|
callback && Reflect.apply(callback, this, [event, normalized]);
|
|
21438
21374
|
};
|
|
21439
|
-
element[SCOPE$
|
|
21375
|
+
element[SCOPE$4] = { wheelHandler: fn };
|
|
21440
21376
|
element.addEventListener("wheel", fn, { passive: true });
|
|
21441
21377
|
}
|
|
21442
21378
|
};
|
|
21443
21379
|
const removeWheelHandler = (element) => {
|
|
21444
21380
|
var _a;
|
|
21445
|
-
if ((_a = element[SCOPE$
|
|
21446
|
-
element.removeEventListener("wheel", element[SCOPE$
|
|
21447
|
-
element[SCOPE$
|
|
21381
|
+
if ((_a = element[SCOPE$4]) == null ? void 0 : _a.wheelHandler) {
|
|
21382
|
+
element.removeEventListener("wheel", element[SCOPE$4].wheelHandler);
|
|
21383
|
+
element[SCOPE$4] = null;
|
|
21448
21384
|
}
|
|
21449
21385
|
};
|
|
21450
21386
|
const Mousewheel = {
|
|
@@ -21674,7 +21610,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
21674
21610
|
bindFunction("minutes");
|
|
21675
21611
|
bindFunction("seconds");
|
|
21676
21612
|
};
|
|
21677
|
-
onMounted
|
|
21613
|
+
onMounted(() => {
|
|
21678
21614
|
nextTick(() => {
|
|
21679
21615
|
!props.arrowControl && bindScrollEvent();
|
|
21680
21616
|
adjustSpinners();
|
|
@@ -21769,7 +21705,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
21769
21705
|
unref(ns).is("disabled", unref(timeList)[item][time])
|
|
21770
21706
|
])
|
|
21771
21707
|
}, [
|
|
21772
|
-
unref(isNumber
|
|
21708
|
+
unref(isNumber)(time) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
21773
21709
|
item === "hours" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
21774
21710
|
createTextVNode(toDisplayString(("0" + (_ctx.amPmMode ? time % 12 || 12 : time)).slice(-2)) + toDisplayString(getAmPmFlag(time)), 1)
|
|
21775
21711
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -22608,14 +22544,12 @@ const useCalendar = (props, emit, componentName) => {
|
|
|
22608
22544
|
const rangeArrDayjs = props.range.map((_) => dayjs(_).locale(lang.value));
|
|
22609
22545
|
const [startDayjs, endDayjs] = rangeArrDayjs;
|
|
22610
22546
|
if (startDayjs.isAfter(endDayjs)) {
|
|
22611
|
-
debugWarn(componentName, "end time should be greater than start time");
|
|
22612
22547
|
return [];
|
|
22613
22548
|
}
|
|
22614
22549
|
if (startDayjs.isSame(endDayjs, "month")) {
|
|
22615
22550
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
22616
22551
|
} else {
|
|
22617
22552
|
if (startDayjs.add(1, "month").month() !== endDayjs.month()) {
|
|
22618
|
-
debugWarn(componentName, "start time and end time interval must not exceed two months");
|
|
22619
22553
|
return [];
|
|
22620
22554
|
}
|
|
22621
22555
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
@@ -22644,7 +22578,6 @@ const useCalendar = (props, emit, componentName) => {
|
|
|
22644
22578
|
} else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
|
|
22645
22579
|
return threeConsecutiveMonth(firstDay, lastDay);
|
|
22646
22580
|
} else {
|
|
22647
|
-
debugWarn(componentName, "start time and end time interval must not exceed two months");
|
|
22648
22581
|
return [];
|
|
22649
22582
|
}
|
|
22650
22583
|
};
|
|
@@ -22689,9 +22622,9 @@ const calendarEmits = {
|
|
|
22689
22622
|
[INPUT_EVENT]: (value) => isDate$1(value)
|
|
22690
22623
|
};
|
|
22691
22624
|
|
|
22692
|
-
const COMPONENT_NAME$
|
|
22625
|
+
const COMPONENT_NAME$g = "ElCalendar";
|
|
22693
22626
|
const __default__$1z = defineComponent({
|
|
22694
|
-
name: COMPONENT_NAME$
|
|
22627
|
+
name: COMPONENT_NAME$g
|
|
22695
22628
|
});
|
|
22696
22629
|
const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
22697
22630
|
...__default__$1z,
|
|
@@ -22707,7 +22640,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
|
22707
22640
|
realSelectedDay,
|
|
22708
22641
|
selectDate,
|
|
22709
22642
|
validatedRange
|
|
22710
|
-
} = useCalendar(props, emit
|
|
22643
|
+
} = useCalendar(props, emit);
|
|
22711
22644
|
const { t } = useLocale();
|
|
22712
22645
|
const i18nDate = computed(() => {
|
|
22713
22646
|
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
@@ -22947,7 +22880,7 @@ const carouselProps = buildProps({
|
|
|
22947
22880
|
motionBlur: Boolean
|
|
22948
22881
|
});
|
|
22949
22882
|
const carouselEmits = {
|
|
22950
|
-
change: (current, prev) => [current, prev].every(isNumber
|
|
22883
|
+
change: (current, prev) => [current, prev].every(isNumber)
|
|
22951
22884
|
};
|
|
22952
22885
|
|
|
22953
22886
|
const carouselContextKey = Symbol("carouselContextKey");
|
|
@@ -23015,7 +22948,7 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
23015
22948
|
}
|
|
23016
22949
|
};
|
|
23017
22950
|
function setActiveItem(index) {
|
|
23018
|
-
if (isString$
|
|
22951
|
+
if (isString$1(index)) {
|
|
23019
22952
|
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
23020
22953
|
if (filteredItems.length > 0) {
|
|
23021
22954
|
index = items.value.indexOf(filteredItems[0]);
|
|
@@ -23023,7 +22956,6 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
23023
22956
|
}
|
|
23024
22957
|
index = Number(index);
|
|
23025
22958
|
if (Number.isNaN(index) || index !== Math.floor(index)) {
|
|
23026
|
-
debugWarn(componentName, "index must be integer.");
|
|
23027
22959
|
return;
|
|
23028
22960
|
}
|
|
23029
22961
|
const itemCount = items.value.length;
|
|
@@ -23157,7 +23089,7 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
23157
23089
|
resetTimer();
|
|
23158
23090
|
});
|
|
23159
23091
|
const resizeObserver = shallowRef();
|
|
23160
|
-
onMounted
|
|
23092
|
+
onMounted(() => {
|
|
23161
23093
|
watch(() => items.value, () => {
|
|
23162
23094
|
if (items.value.length > 0)
|
|
23163
23095
|
setActiveItem(props.initialIndex);
|
|
@@ -23214,9 +23146,9 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
23214
23146
|
};
|
|
23215
23147
|
};
|
|
23216
23148
|
|
|
23217
|
-
const COMPONENT_NAME$
|
|
23149
|
+
const COMPONENT_NAME$f = "ElCarousel";
|
|
23218
23150
|
const __default__$1x = defineComponent({
|
|
23219
|
-
name: COMPONENT_NAME$
|
|
23151
|
+
name: COMPONENT_NAME$f
|
|
23220
23152
|
});
|
|
23221
23153
|
const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
23222
23154
|
...__default__$1x,
|
|
@@ -23248,7 +23180,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
23248
23180
|
ItemsSorter,
|
|
23249
23181
|
throttledArrowClick,
|
|
23250
23182
|
throttledIndicatorHover
|
|
23251
|
-
} = useCarousel(props, emit
|
|
23183
|
+
} = useCarousel(props, emit);
|
|
23252
23184
|
const ns = useNamespace("carousel");
|
|
23253
23185
|
const { t } = useLocale();
|
|
23254
23186
|
const carouselClasses = computed(() => {
|
|
@@ -23430,12 +23362,6 @@ const carouselItemProps = buildProps({
|
|
|
23430
23362
|
const useCarouselItem = (props) => {
|
|
23431
23363
|
const carouselContext = inject(carouselContextKey);
|
|
23432
23364
|
const instance = getCurrentInstance();
|
|
23433
|
-
if (!carouselContext) {
|
|
23434
|
-
debugWarn(CAROUSEL_ITEM_NAME, "usage: <el-carousel></el-carousel-item></el-carousel>");
|
|
23435
|
-
}
|
|
23436
|
-
if (!instance) {
|
|
23437
|
-
debugWarn(CAROUSEL_ITEM_NAME, "compositional hook can only be invoked inside setups");
|
|
23438
|
-
}
|
|
23439
23365
|
const carouselItemRef = ref();
|
|
23440
23366
|
const hover = ref(false);
|
|
23441
23367
|
const translate = ref(0);
|
|
@@ -23668,8 +23594,8 @@ const checkboxProps = {
|
|
|
23668
23594
|
...useAriaProps(["ariaControls"])
|
|
23669
23595
|
};
|
|
23670
23596
|
const checkboxEmits = {
|
|
23671
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
23672
|
-
change: (val) => isString$
|
|
23597
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
|
|
23598
|
+
change: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
|
|
23673
23599
|
};
|
|
23674
23600
|
|
|
23675
23601
|
const checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
|
|
@@ -23739,7 +23665,7 @@ const useCheckboxEvent = (props, {
|
|
|
23739
23665
|
const validateEvent = computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.validateEvent) || props.validateEvent);
|
|
23740
23666
|
watch(() => props.modelValue, () => {
|
|
23741
23667
|
if (validateEvent.value) {
|
|
23742
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
23668
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
23743
23669
|
}
|
|
23744
23670
|
});
|
|
23745
23671
|
return {
|
|
@@ -24194,7 +24120,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
24194
24120
|
});
|
|
24195
24121
|
watch(() => props.modelValue, (newVal, oldValue) => {
|
|
24196
24122
|
if (props.validateEvent && !isEqual$1(newVal, oldValue)) {
|
|
24197
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
24123
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
24198
24124
|
}
|
|
24199
24125
|
});
|
|
24200
24126
|
return (_ctx, _cache) => {
|
|
@@ -24255,8 +24181,8 @@ const radioProps = buildProps({
|
|
|
24255
24181
|
border: Boolean
|
|
24256
24182
|
});
|
|
24257
24183
|
const radioEmits = {
|
|
24258
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
24259
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
24184
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
|
|
24185
|
+
[CHANGE_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
|
|
24260
24186
|
};
|
|
24261
24187
|
|
|
24262
24188
|
const radioGroupKey = Symbol("radioGroupKey");
|
|
@@ -24516,7 +24442,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
24516
24442
|
emit(UPDATE_MODEL_EVENT, value);
|
|
24517
24443
|
nextTick(() => emit(CHANGE_EVENT, value));
|
|
24518
24444
|
};
|
|
24519
|
-
onMounted
|
|
24445
|
+
onMounted(() => {
|
|
24520
24446
|
const radios = radioGroupRef.value.querySelectorAll("[type=radio]");
|
|
24521
24447
|
const firstLabel = radios[0];
|
|
24522
24448
|
if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {
|
|
@@ -24547,7 +24473,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
24547
24473
|
}));
|
|
24548
24474
|
watch(() => props.modelValue, (newVal, oldValue) => {
|
|
24549
24475
|
if (props.validateEvent && !isEqual$1(newVal, oldValue)) {
|
|
24550
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
24476
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
24551
24477
|
}
|
|
24552
24478
|
});
|
|
24553
24479
|
return (_ctx, _cache) => {
|
|
@@ -24950,13 +24876,13 @@ class Node$3 {
|
|
|
24950
24876
|
get isDisabled() {
|
|
24951
24877
|
const { data, parent, config } = this;
|
|
24952
24878
|
const { disabled, checkStrictly } = config;
|
|
24953
|
-
const isDisabled = isFunction$
|
|
24879
|
+
const isDisabled = isFunction$1(disabled) ? disabled(data, this) : !!data[disabled];
|
|
24954
24880
|
return isDisabled || !checkStrictly && !!(parent == null ? void 0 : parent.isDisabled);
|
|
24955
24881
|
}
|
|
24956
24882
|
get isLeaf() {
|
|
24957
24883
|
const { data, config, childrenData, loaded } = this;
|
|
24958
24884
|
const { lazy, leaf } = config;
|
|
24959
|
-
const isLeaf = isFunction$
|
|
24885
|
+
const isLeaf = isFunction$1(leaf) ? leaf(data, this) : data[leaf];
|
|
24960
24886
|
return isUndefined(isLeaf) ? lazy && !loaded ? false : !(isArray$1(childrenData) && childrenData.length) : !!isLeaf;
|
|
24961
24887
|
}
|
|
24962
24888
|
get valueByOption() {
|
|
@@ -25422,7 +25348,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
25422
25348
|
initStore();
|
|
25423
25349
|
};
|
|
25424
25350
|
onBeforeUpdate(() => menuList.value = []);
|
|
25425
|
-
onMounted
|
|
25351
|
+
onMounted(() => !isEmpty(props.modelValue) && syncCheckedValue());
|
|
25426
25352
|
expose({
|
|
25427
25353
|
menuList,
|
|
25428
25354
|
menus,
|
|
@@ -25780,7 +25706,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
25780
25706
|
afterBlur() {
|
|
25781
25707
|
var _a;
|
|
25782
25708
|
if (props.validateEvent) {
|
|
25783
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
25709
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
25784
25710
|
}
|
|
25785
25711
|
}
|
|
25786
25712
|
});
|
|
@@ -25804,7 +25730,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
25804
25730
|
emit(UPDATE_MODEL_EVENT, value);
|
|
25805
25731
|
emit(CHANGE_EVENT, value);
|
|
25806
25732
|
if (props.validateEvent) {
|
|
25807
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
25733
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
25808
25734
|
}
|
|
25809
25735
|
}
|
|
25810
25736
|
});
|
|
@@ -26088,7 +26014,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
26088
26014
|
(_a = cascaderPanelRef.value) == null ? void 0 : _a.loadLazyRootNodes();
|
|
26089
26015
|
}
|
|
26090
26016
|
});
|
|
26091
|
-
onMounted
|
|
26017
|
+
onMounted(() => {
|
|
26092
26018
|
const inputInner = inputRef.value.input;
|
|
26093
26019
|
const inputInnerHeight = getInputInnerHeight(inputInner);
|
|
26094
26020
|
inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
|
|
@@ -26571,7 +26497,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
26571
26497
|
const pos = ["span", "offset", "pull", "push"];
|
|
26572
26498
|
pos.forEach((prop) => {
|
|
26573
26499
|
const size = props[prop];
|
|
26574
|
-
if (isNumber
|
|
26500
|
+
if (isNumber(size)) {
|
|
26575
26501
|
if (prop === "span")
|
|
26576
26502
|
classes.push(ns.b(`${props[prop]}`));
|
|
26577
26503
|
else if (size > 0)
|
|
@@ -26580,7 +26506,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
26580
26506
|
});
|
|
26581
26507
|
const sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
26582
26508
|
sizes.forEach((size) => {
|
|
26583
|
-
if (isNumber
|
|
26509
|
+
if (isNumber(props[size])) {
|
|
26584
26510
|
classes.push(ns.b(`${size}-${props[size]}`));
|
|
26585
26511
|
} else if (isObject$1(props[size])) {
|
|
26586
26512
|
Object.entries(props[size]).forEach(([prop, sizeProp]) => {
|
|
@@ -26610,7 +26536,7 @@ var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["__file", "col.vue"]]);
|
|
|
26610
26536
|
|
|
26611
26537
|
const ElCol = withInstall(Col);
|
|
26612
26538
|
|
|
26613
|
-
const emitChangeFn = (value) => isNumber
|
|
26539
|
+
const emitChangeFn = (value) => isNumber(value) || isString$1(value) || isArray$1(value);
|
|
26614
26540
|
const collapseProps = buildProps({
|
|
26615
26541
|
accordion: Boolean,
|
|
26616
26542
|
modelValue: {
|
|
@@ -26632,7 +26558,7 @@ const collapseEmits = {
|
|
|
26632
26558
|
|
|
26633
26559
|
const collapseContextKey = Symbol("collapseContextKey");
|
|
26634
26560
|
|
|
26635
|
-
const SCOPE$
|
|
26561
|
+
const SCOPE$3 = "ElCollapse";
|
|
26636
26562
|
const useCollapse = (props, emit) => {
|
|
26637
26563
|
const activeNames = ref(castArray$1(props.modelValue));
|
|
26638
26564
|
const setActiveNames = (_activeNames) => {
|
|
@@ -26667,7 +26593,7 @@ const useCollapse = (props, emit) => {
|
|
|
26667
26593
|
isBoolean(shouldChange)
|
|
26668
26594
|
].includes(true);
|
|
26669
26595
|
if (!isPromiseOrBool) {
|
|
26670
|
-
throwError
|
|
26596
|
+
throwError(SCOPE$3, "beforeCollapse must return type `Promise<boolean>` or `boolean`");
|
|
26671
26597
|
}
|
|
26672
26598
|
if (isPromise(shouldChange)) {
|
|
26673
26599
|
shouldChange.then((result) => {
|
|
@@ -26675,7 +26601,6 @@ const useCollapse = (props, emit) => {
|
|
|
26675
26601
|
handleChange(name);
|
|
26676
26602
|
}
|
|
26677
26603
|
}).catch((e) => {
|
|
26678
|
-
debugWarn(SCOPE$4, `some error occurred: ${e}`);
|
|
26679
26604
|
});
|
|
26680
26605
|
} else if (shouldChange) {
|
|
26681
26606
|
handleChange(name);
|
|
@@ -27177,7 +27102,7 @@ const useSliderDOM = (props, {
|
|
|
27177
27102
|
thumbTop.value = getThumbTop();
|
|
27178
27103
|
background.value = getBackground == null ? void 0 : getBackground();
|
|
27179
27104
|
}
|
|
27180
|
-
onMounted
|
|
27105
|
+
onMounted(() => {
|
|
27181
27106
|
if (!bar.value || !thumb.value)
|
|
27182
27107
|
return;
|
|
27183
27108
|
const dragConfig = {
|
|
@@ -27393,7 +27318,7 @@ const colorPickerPanelProps = buildProps({
|
|
|
27393
27318
|
}
|
|
27394
27319
|
});
|
|
27395
27320
|
const colorPickerPanelEmits = {
|
|
27396
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
27321
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNil(val)
|
|
27397
27322
|
};
|
|
27398
27323
|
const ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
|
|
27399
27324
|
const colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
|
|
@@ -27697,7 +27622,7 @@ const useSvPanelDOM = (props, {
|
|
|
27697
27622
|
cursorTop.value = (100 - brightness) * height / 100;
|
|
27698
27623
|
background.value = `hsl(${props.color.get("hue")}, 100%, 50%)`;
|
|
27699
27624
|
}
|
|
27700
|
-
onMounted
|
|
27625
|
+
onMounted(() => {
|
|
27701
27626
|
draggable(instance.vnode.el, {
|
|
27702
27627
|
drag: (event) => {
|
|
27703
27628
|
handleDrag(event);
|
|
@@ -27839,7 +27764,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
27839
27764
|
function handleFocusout() {
|
|
27840
27765
|
var _a;
|
|
27841
27766
|
if (props.validateEvent) {
|
|
27842
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
27767
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
27843
27768
|
}
|
|
27844
27769
|
}
|
|
27845
27770
|
function update() {
|
|
@@ -27848,7 +27773,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
27848
27773
|
(_b = svRef.value) == null ? void 0 : _b.update();
|
|
27849
27774
|
(_c = alphaRef.value) == null ? void 0 : _c.update();
|
|
27850
27775
|
}
|
|
27851
|
-
onMounted
|
|
27776
|
+
onMounted(() => {
|
|
27852
27777
|
if (props.modelValue) {
|
|
27853
27778
|
customInput.value = color.value;
|
|
27854
27779
|
}
|
|
@@ -27863,7 +27788,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
27863
27788
|
emit(UPDATE_MODEL_EVENT, val);
|
|
27864
27789
|
customInput.value = val;
|
|
27865
27790
|
if (props.validateEvent) {
|
|
27866
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
27791
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
27867
27792
|
}
|
|
27868
27793
|
});
|
|
27869
27794
|
provide(colorPickerPanelContextKey, {
|
|
@@ -27971,9 +27896,9 @@ const colorPickerProps = buildProps({
|
|
|
27971
27896
|
...useAriaProps(["ariaLabel"])
|
|
27972
27897
|
});
|
|
27973
27898
|
const colorPickerEmits = {
|
|
27974
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
27975
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
27976
|
-
activeChange: (val) => isString$
|
|
27899
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNil(val),
|
|
27900
|
+
[CHANGE_EVENT]: (val) => isString$1(val) || isNil(val),
|
|
27901
|
+
activeChange: (val) => isString$1(val) || isNil(val),
|
|
27977
27902
|
focus: (evt) => evt instanceof FocusEvent,
|
|
27978
27903
|
blur: (evt) => evt instanceof FocusEvent
|
|
27979
27904
|
};
|
|
@@ -28014,7 +27939,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
28014
27939
|
setShowPicker(false);
|
|
28015
27940
|
resetColor();
|
|
28016
27941
|
if (props.validateEvent) {
|
|
28017
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
27942
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
28018
27943
|
}
|
|
28019
27944
|
}
|
|
28020
27945
|
});
|
|
@@ -28088,7 +28013,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
28088
28013
|
emit(UPDATE_MODEL_EVENT, value);
|
|
28089
28014
|
emit(CHANGE_EVENT, value);
|
|
28090
28015
|
if (props.validateEvent) {
|
|
28091
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
28016
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
28092
28017
|
}
|
|
28093
28018
|
debounceSetShowPicker(false);
|
|
28094
28019
|
nextTick(() => {
|
|
@@ -28107,7 +28032,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
28107
28032
|
emit(UPDATE_MODEL_EVENT, valueOnClear.value);
|
|
28108
28033
|
emit(CHANGE_EVENT, valueOnClear.value);
|
|
28109
28034
|
if (props.modelValue !== valueOnClear.value && props.validateEvent) {
|
|
28110
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
28035
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
28111
28036
|
}
|
|
28112
28037
|
resetColor();
|
|
28113
28038
|
}
|
|
@@ -28864,7 +28789,7 @@ const correctlyParseUserInput = (value, format, lang, defaultFormat) => {
|
|
|
28864
28789
|
if (isArray$1(value)) {
|
|
28865
28790
|
return value.map((v) => correctlyParseUserInput(v, format, lang, defaultFormat));
|
|
28866
28791
|
}
|
|
28867
|
-
if (isString$
|
|
28792
|
+
if (isString$1(value)) {
|
|
28868
28793
|
const dayjsValue = (defaultFormat == null ? void 0 : defaultFormat.value) ? dayjs(value) : dayjs(value, format);
|
|
28869
28794
|
if (!dayjsValue.isValid()) {
|
|
28870
28795
|
return dayjsValue;
|
|
@@ -29879,7 +29804,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
29879
29804
|
return `${year.value} ${yearTranslation}`;
|
|
29880
29805
|
});
|
|
29881
29806
|
const handleShortcutClick = (shortcut) => {
|
|
29882
|
-
const shortcutValue = isFunction$
|
|
29807
|
+
const shortcutValue = isFunction$1(shortcut.value) ? shortcut.value() : shortcut.value;
|
|
29883
29808
|
if (shortcutValue) {
|
|
29884
29809
|
isShortcut = true;
|
|
29885
29810
|
emit(dayjs(shortcutValue).locale(lang.value));
|
|
@@ -30160,7 +30085,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
30160
30085
|
const map = mapping[keyboardMode.value];
|
|
30161
30086
|
if (!map)
|
|
30162
30087
|
return;
|
|
30163
|
-
map.offset(newDate, isFunction$
|
|
30088
|
+
map.offset(newDate, isFunction$1(map[code]) ? map[code](newDate) : (_a = map[code]) != null ? _a : 0);
|
|
30164
30089
|
if (disabledDate && disabledDate(newDate)) {
|
|
30165
30090
|
break;
|
|
30166
30091
|
}
|
|
@@ -30481,7 +30406,7 @@ const useShortcut = (lang) => {
|
|
|
30481
30406
|
const attrs = useAttrs$1();
|
|
30482
30407
|
const slots = useSlots();
|
|
30483
30408
|
const handleShortcutClick = (shortcut) => {
|
|
30484
|
-
const shortcutValues = isFunction$
|
|
30409
|
+
const shortcutValues = isFunction$1(shortcut.value) ? shortcut.value() : shortcut.value;
|
|
30485
30410
|
if (shortcutValues) {
|
|
30486
30411
|
emit("pick", [
|
|
30487
30412
|
dayjs(shortcutValues[0]).locale(lang.value),
|
|
@@ -32293,6 +32218,7 @@ var DatePicker = defineComponent({
|
|
|
32293
32218
|
"onUpdate:modelValue": onModelValueUpdated
|
|
32294
32219
|
}), {
|
|
32295
32220
|
default: (scopedProps) => createVNode(ElDatePickerPanel, mergeProps({
|
|
32221
|
+
"disabled": props.disabled,
|
|
32296
32222
|
"border": false
|
|
32297
32223
|
}, scopedProps), _isSlot$6(slots) ? slots : {
|
|
32298
32224
|
default: () => [slots]
|
|
@@ -32504,7 +32430,7 @@ const descriptionProps = buildProps({
|
|
|
32504
32430
|
}
|
|
32505
32431
|
});
|
|
32506
32432
|
|
|
32507
|
-
const COMPONENT_NAME$
|
|
32433
|
+
const COMPONENT_NAME$e = "ElDescriptionsItem";
|
|
32508
32434
|
|
|
32509
32435
|
const __default__$10 = defineComponent({
|
|
32510
32436
|
name: "ElDescriptions"
|
|
@@ -32536,7 +32462,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
32536
32462
|
return [];
|
|
32537
32463
|
const children = flattedChildren(slots.default()).filter((node) => {
|
|
32538
32464
|
var _a;
|
|
32539
|
-
return ((_a = node == null ? void 0 : node.type) == null ? void 0 : _a.name) === COMPONENT_NAME$
|
|
32465
|
+
return ((_a = node == null ? void 0 : node.type) == null ? void 0 : _a.name) === COMPONENT_NAME$e;
|
|
32540
32466
|
});
|
|
32541
32467
|
const rows = [];
|
|
32542
32468
|
let temp = [];
|
|
@@ -32669,7 +32595,7 @@ const descriptionItemProps = buildProps({
|
|
|
32669
32595
|
}
|
|
32670
32596
|
});
|
|
32671
32597
|
const DescriptionItem = defineComponent({
|
|
32672
|
-
name: COMPONENT_NAME$
|
|
32598
|
+
name: COMPONENT_NAME$e,
|
|
32673
32599
|
props: descriptionItemProps
|
|
32674
32600
|
});
|
|
32675
32601
|
|
|
@@ -32928,7 +32854,6 @@ const dialogEmits = {
|
|
|
32928
32854
|
};
|
|
32929
32855
|
const dialogContextKey = Symbol("dialogContextKey");
|
|
32930
32856
|
|
|
32931
|
-
const COMPONENT_NAME$e = "ElDialog";
|
|
32932
32857
|
const useDialog = (props, targetRef) => {
|
|
32933
32858
|
var _a;
|
|
32934
32859
|
const instance = getCurrentInstance();
|
|
@@ -32999,10 +32924,10 @@ const useDialog = (props, targetRef) => {
|
|
|
32999
32924
|
return (el) => {
|
|
33000
32925
|
if (isArray$1(userHook)) {
|
|
33001
32926
|
userHook.forEach((fn) => {
|
|
33002
|
-
if (isFunction$
|
|
32927
|
+
if (isFunction$1(fn))
|
|
33003
32928
|
fn(el);
|
|
33004
32929
|
});
|
|
33005
|
-
} else if (isFunction$
|
|
32930
|
+
} else if (isFunction$1(userHook)) {
|
|
33006
32931
|
userHook(el);
|
|
33007
32932
|
}
|
|
33008
32933
|
defaultHook();
|
|
@@ -33013,7 +32938,6 @@ const useDialog = (props, targetRef) => {
|
|
|
33013
32938
|
config2.onAfterLeave = _mergeHook(config2.onAfterLeave, afterLeave);
|
|
33014
32939
|
if (!config2.name) {
|
|
33015
32940
|
config2.name = DEFAULT_DIALOG_TRANSITION;
|
|
33016
|
-
debugWarn(COMPONENT_NAME$e, `transition.name is missing when using object syntax, fallback to '${DEFAULT_DIALOG_TRANSITION}'`);
|
|
33017
32941
|
}
|
|
33018
32942
|
return config2;
|
|
33019
32943
|
}
|
|
@@ -33131,7 +33055,7 @@ const useDialog = (props, targetRef) => {
|
|
|
33131
33055
|
targetRef.value.style.transform = lastPosition;
|
|
33132
33056
|
}
|
|
33133
33057
|
});
|
|
33134
|
-
onMounted
|
|
33058
|
+
onMounted(() => {
|
|
33135
33059
|
if (props.modelValue) {
|
|
33136
33060
|
visible.value = true;
|
|
33137
33061
|
rendered.value = true;
|
|
@@ -33730,7 +33654,7 @@ const createCollectionWithScope = (name) => {
|
|
|
33730
33654
|
provide(COLLECTION_ITEM_INJECTION_KEY, {
|
|
33731
33655
|
collectionItemRef
|
|
33732
33656
|
});
|
|
33733
|
-
onMounted
|
|
33657
|
+
onMounted(() => {
|
|
33734
33658
|
const collectionItemEl = unref(collectionItemRef);
|
|
33735
33659
|
if (collectionItemEl) {
|
|
33736
33660
|
collectionInjection.itemMap.set(collectionItemEl, {
|
|
@@ -34888,8 +34812,8 @@ const imageViewerProps = buildProps({
|
|
|
34888
34812
|
const imageViewerEmits = {
|
|
34889
34813
|
close: () => true,
|
|
34890
34814
|
error: (evt) => evt instanceof Event,
|
|
34891
|
-
switch: (index) => isNumber
|
|
34892
|
-
rotate: (deg) => isNumber
|
|
34815
|
+
switch: (index) => isNumber(index),
|
|
34816
|
+
rotate: (deg) => isNumber(deg)
|
|
34893
34817
|
};
|
|
34894
34818
|
|
|
34895
34819
|
const __default__$V = defineComponent({
|
|
@@ -35173,7 +35097,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
35173
35097
|
reset();
|
|
35174
35098
|
emit("switch", val);
|
|
35175
35099
|
});
|
|
35176
|
-
onMounted
|
|
35100
|
+
onMounted(() => {
|
|
35177
35101
|
visible.value = true;
|
|
35178
35102
|
registerEventListener();
|
|
35179
35103
|
stopWheelListener = useEventListener("wheel", wheelHandler, {
|
|
@@ -35427,7 +35351,7 @@ const imageProps = buildProps({
|
|
|
35427
35351
|
const imageEmits = {
|
|
35428
35352
|
load: (evt) => evt instanceof Event,
|
|
35429
35353
|
error: (evt) => evt instanceof Event,
|
|
35430
|
-
switch: (val) => isNumber
|
|
35354
|
+
switch: (val) => isNumber(val),
|
|
35431
35355
|
close: () => true,
|
|
35432
35356
|
show: () => true
|
|
35433
35357
|
};
|
|
@@ -35521,9 +35445,9 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
35521
35445
|
return;
|
|
35522
35446
|
await nextTick();
|
|
35523
35447
|
const { scrollContainer } = props;
|
|
35524
|
-
if (isElement$
|
|
35448
|
+
if (isElement$2(scrollContainer)) {
|
|
35525
35449
|
_scrollContainer.value = scrollContainer;
|
|
35526
|
-
} else if (isString$
|
|
35450
|
+
} else if (isString$1(scrollContainer) && scrollContainer !== "") {
|
|
35527
35451
|
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
35528
35452
|
} else if (container.value) {
|
|
35529
35453
|
const scrollContainer2 = getScrollContainer(container.value);
|
|
@@ -35564,7 +35488,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
35564
35488
|
loadImage();
|
|
35565
35489
|
}
|
|
35566
35490
|
});
|
|
35567
|
-
onMounted
|
|
35491
|
+
onMounted(() => {
|
|
35568
35492
|
if (isManual.value) {
|
|
35569
35493
|
addLazyLoadListener();
|
|
35570
35494
|
} else {
|
|
@@ -35696,7 +35620,7 @@ const inputNumberProps = buildProps({
|
|
|
35696
35620
|
},
|
|
35697
35621
|
valueOnClear: {
|
|
35698
35622
|
type: [String, Number, null],
|
|
35699
|
-
validator: (val) => val === null || isNumber
|
|
35623
|
+
validator: (val) => val === null || isNumber(val) || ["min", "max"].includes(val),
|
|
35700
35624
|
default: null
|
|
35701
35625
|
},
|
|
35702
35626
|
name: String,
|
|
@@ -35724,8 +35648,8 @@ const inputNumberEmits = {
|
|
|
35724
35648
|
[CHANGE_EVENT]: (cur, prev) => prev !== cur,
|
|
35725
35649
|
blur: (e) => e instanceof FocusEvent,
|
|
35726
35650
|
focus: (e) => e instanceof FocusEvent,
|
|
35727
|
-
[INPUT_EVENT]: (val) => isNumber
|
|
35728
|
-
[UPDATE_MODEL_EVENT]: (val) => isNumber
|
|
35651
|
+
[INPUT_EVENT]: (val) => isNumber(val) || isNil(val),
|
|
35652
|
+
[UPDATE_MODEL_EVENT]: (val) => isNumber(val) || isNil(val)
|
|
35729
35653
|
};
|
|
35730
35654
|
|
|
35731
35655
|
const __default__$T = defineComponent({
|
|
@@ -35745,14 +35669,12 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35745
35669
|
userInput: null
|
|
35746
35670
|
});
|
|
35747
35671
|
const { formItem } = useFormItem();
|
|
35748
|
-
const minDisabled = computed(() => isNumber
|
|
35749
|
-
const maxDisabled = computed(() => isNumber
|
|
35672
|
+
const minDisabled = computed(() => isNumber(props.modelValue) && props.modelValue <= props.min);
|
|
35673
|
+
const maxDisabled = computed(() => isNumber(props.modelValue) && props.modelValue >= props.max);
|
|
35750
35674
|
const numPrecision = computed(() => {
|
|
35751
35675
|
const stepPrecision = getPrecision(props.step);
|
|
35752
35676
|
if (!isUndefined(props.precision)) {
|
|
35753
|
-
if (stepPrecision > props.precision)
|
|
35754
|
-
debugWarn("InputNumber", "precision should not be less than the decimal places of step");
|
|
35755
|
-
}
|
|
35677
|
+
if (stepPrecision > props.precision) ;
|
|
35756
35678
|
return props.precision;
|
|
35757
35679
|
} else {
|
|
35758
35680
|
return Math.max(getPrecision(props.modelValue), stepPrecision);
|
|
@@ -35770,7 +35692,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35770
35692
|
let currentValue = data.currentValue;
|
|
35771
35693
|
if (isNil(currentValue))
|
|
35772
35694
|
return "";
|
|
35773
|
-
if (isNumber
|
|
35695
|
+
if (isNumber(currentValue)) {
|
|
35774
35696
|
if (Number.isNaN(currentValue))
|
|
35775
35697
|
return "";
|
|
35776
35698
|
if (!isUndefined(props.precision)) {
|
|
@@ -35810,13 +35732,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35810
35732
|
return precision;
|
|
35811
35733
|
};
|
|
35812
35734
|
const ensurePrecision = (val, coefficient = 1) => {
|
|
35813
|
-
if (!isNumber
|
|
35735
|
+
if (!isNumber(val))
|
|
35814
35736
|
return data.currentValue;
|
|
35815
35737
|
if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
|
|
35816
|
-
debugWarn("InputNumber", "The value has reached the maximum safe integer limit.");
|
|
35817
35738
|
return val;
|
|
35818
35739
|
} else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
|
|
35819
|
-
debugWarn("InputNumber", "The value has reached the minimum safe integer limit.");
|
|
35820
35740
|
return val;
|
|
35821
35741
|
}
|
|
35822
35742
|
return toPrecision(val + props.step * coefficient);
|
|
@@ -35862,7 +35782,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35862
35782
|
const verifyValue = (value, update) => {
|
|
35863
35783
|
const { max, min, step, precision, stepStrictly, valueOnClear } = props;
|
|
35864
35784
|
if (max < min) {
|
|
35865
|
-
throwError
|
|
35785
|
+
throwError("InputNumber", "min should not be greater than max.");
|
|
35866
35786
|
}
|
|
35867
35787
|
let newVal = Number(value);
|
|
35868
35788
|
if (isNil(value) || Number.isNaN(newVal)) {
|
|
@@ -35872,7 +35792,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35872
35792
|
if (valueOnClear === null) {
|
|
35873
35793
|
return null;
|
|
35874
35794
|
}
|
|
35875
|
-
newVal = isString$
|
|
35795
|
+
newVal = isString$1(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
|
35876
35796
|
}
|
|
35877
35797
|
if (stepStrictly) {
|
|
35878
35798
|
newVal = toPrecision(Math.round(toPrecision(newVal / step)) * step, precision);
|
|
@@ -35905,7 +35825,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35905
35825
|
emit(CHANGE_EVENT, newVal, oldVal);
|
|
35906
35826
|
}
|
|
35907
35827
|
if (props.validateEvent) {
|
|
35908
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(
|
|
35828
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
35909
35829
|
}
|
|
35910
35830
|
data.currentValue = newVal;
|
|
35911
35831
|
};
|
|
@@ -35917,7 +35837,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35917
35837
|
};
|
|
35918
35838
|
const handleInputChange = (value) => {
|
|
35919
35839
|
const newVal = value !== "" ? Number(value) : "";
|
|
35920
|
-
if (isNumber
|
|
35840
|
+
if (isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
|
|
35921
35841
|
setCurrentValue(newVal);
|
|
35922
35842
|
}
|
|
35923
35843
|
setCurrentValueToModelValue();
|
|
@@ -35942,7 +35862,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35942
35862
|
}
|
|
35943
35863
|
emit("blur", event);
|
|
35944
35864
|
if (props.validateEvent) {
|
|
35945
|
-
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn(
|
|
35865
|
+
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn());
|
|
35946
35866
|
}
|
|
35947
35867
|
};
|
|
35948
35868
|
const setCurrentValueToModelValue = () => {
|
|
@@ -35963,7 +35883,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35963
35883
|
watch(() => props.precision, () => {
|
|
35964
35884
|
data.currentValue = verifyValue(props.modelValue);
|
|
35965
35885
|
});
|
|
35966
|
-
onMounted
|
|
35886
|
+
onMounted(() => {
|
|
35967
35887
|
var _a;
|
|
35968
35888
|
const { min, max, modelValue } = props;
|
|
35969
35889
|
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
@@ -35980,7 +35900,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35980
35900
|
}
|
|
35981
35901
|
innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
|
|
35982
35902
|
innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
|
|
35983
|
-
if (!isNumber
|
|
35903
|
+
if (!isNumber(modelValue) && modelValue != null) {
|
|
35984
35904
|
let val = Number(modelValue);
|
|
35985
35905
|
if (Number.isNaN(val)) {
|
|
35986
35906
|
val = null;
|
|
@@ -36159,10 +36079,10 @@ const inputTagProps = buildProps({
|
|
|
36159
36079
|
const inputTagEmits = {
|
|
36160
36080
|
[UPDATE_MODEL_EVENT]: (value) => isArray$1(value) || isUndefined(value),
|
|
36161
36081
|
[CHANGE_EVENT]: (value) => isArray$1(value) || isUndefined(value),
|
|
36162
|
-
[INPUT_EVENT]: (value) => isString$
|
|
36163
|
-
"add-tag": (value) => isString$
|
|
36164
|
-
"remove-tag": (value, index) => isString$
|
|
36165
|
-
"drag-tag": (oldIndex, newIndex, value) => isNumber
|
|
36082
|
+
[INPUT_EVENT]: (value) => isString$1(value),
|
|
36083
|
+
"add-tag": (value) => isString$1(value) || isArray$1(value),
|
|
36084
|
+
"remove-tag": (value, index) => isString$1(value) && isNumber(index),
|
|
36085
|
+
"drag-tag": (oldIndex, newIndex, value) => isNumber(oldIndex) && isNumber(newIndex) && isString$1(value),
|
|
36166
36086
|
focus: (evt) => evt instanceof FocusEvent,
|
|
36167
36087
|
blur: (evt) => evt instanceof FocusEvent,
|
|
36168
36088
|
clear: () => true
|
|
@@ -36420,7 +36340,7 @@ function useInputTag({ props, emit, formItem }) {
|
|
|
36420
36340
|
inputValue.value = void 0;
|
|
36421
36341
|
}
|
|
36422
36342
|
if (props.validateEvent) {
|
|
36423
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
36343
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
36424
36344
|
}
|
|
36425
36345
|
}
|
|
36426
36346
|
});
|
|
@@ -36433,7 +36353,7 @@ function useInputTag({ props, emit, formItem }) {
|
|
|
36433
36353
|
watch(() => props.modelValue, () => {
|
|
36434
36354
|
var _a;
|
|
36435
36355
|
if (props.validateEvent) {
|
|
36436
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, CHANGE_EVENT).catch((err) => debugWarn(
|
|
36356
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, CHANGE_EVENT).catch((err) => debugWarn());
|
|
36437
36357
|
}
|
|
36438
36358
|
});
|
|
36439
36359
|
return {
|
|
@@ -37182,10 +37102,10 @@ var SubMenu = defineComponent({
|
|
|
37182
37102
|
const nsSubMenu = useNamespace("sub-menu");
|
|
37183
37103
|
const rootMenu = inject(MENU_INJECTION_KEY);
|
|
37184
37104
|
if (!rootMenu)
|
|
37185
|
-
throwError
|
|
37105
|
+
throwError(COMPONENT_NAME$d, "can not inject root menu");
|
|
37186
37106
|
const subMenu = inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
|
|
37187
37107
|
if (!subMenu)
|
|
37188
|
-
throwError
|
|
37108
|
+
throwError(COMPONENT_NAME$d, "can not inject sub menu");
|
|
37189
37109
|
const items = ref({});
|
|
37190
37110
|
const subMenus = ref({});
|
|
37191
37111
|
let timeout;
|
|
@@ -37332,7 +37252,7 @@ var SubMenu = defineComponent({
|
|
|
37332
37252
|
expose({
|
|
37333
37253
|
opened
|
|
37334
37254
|
});
|
|
37335
|
-
onMounted
|
|
37255
|
+
onMounted(() => {
|
|
37336
37256
|
rootMenu.addSubMenu(item);
|
|
37337
37257
|
subMenu.addSubMenu(item);
|
|
37338
37258
|
});
|
|
@@ -37350,7 +37270,7 @@ var SubMenu = defineComponent({
|
|
|
37350
37270
|
transform: opened.value ? props.expandCloseIcon && props.expandOpenIcon || props.collapseCloseIcon && props.collapseOpenIcon && rootMenu.props.collapse ? "none" : "rotateZ(180deg)" : "none"
|
|
37351
37271
|
}
|
|
37352
37272
|
}, {
|
|
37353
|
-
default: () => isString$
|
|
37273
|
+
default: () => isString$1(subMenuTitleIcon.value) ? h$1(instance.appContext.components[subMenuTitleIcon.value]) : h$1(subMenuTitleIcon.value)
|
|
37354
37274
|
})
|
|
37355
37275
|
];
|
|
37356
37276
|
const child = rootMenu.isMenuPopup ? h$1(ElTooltip, {
|
|
@@ -37493,11 +37413,11 @@ const menuProps = buildProps({
|
|
|
37493
37413
|
default: true
|
|
37494
37414
|
}
|
|
37495
37415
|
});
|
|
37496
|
-
const checkIndexPath = (indexPath) => isArray$1(indexPath) && indexPath.every((path) => isString$
|
|
37416
|
+
const checkIndexPath = (indexPath) => isArray$1(indexPath) && indexPath.every((path) => isString$1(path));
|
|
37497
37417
|
const menuEmits = {
|
|
37498
|
-
close: (index, indexPath) => isString$
|
|
37499
|
-
open: (index, indexPath) => isString$
|
|
37500
|
-
select: (index, indexPath, item, routerResult) => isString$
|
|
37418
|
+
close: (index, indexPath) => isString$1(index) && checkIndexPath(indexPath),
|
|
37419
|
+
open: (index, indexPath) => isString$1(index) && checkIndexPath(indexPath),
|
|
37420
|
+
select: (index, indexPath, item, routerResult) => isString$1(index) && checkIndexPath(indexPath) && isObject$1(item) && (isUndefined(routerResult) || routerResult instanceof Promise)
|
|
37501
37421
|
};
|
|
37502
37422
|
const DEFAULT_MORE_ITEM_WIDTH = 64;
|
|
37503
37423
|
var Menu = defineComponent({
|
|
@@ -37685,7 +37605,7 @@ var Menu = defineComponent({
|
|
|
37685
37605
|
level: 0
|
|
37686
37606
|
});
|
|
37687
37607
|
}
|
|
37688
|
-
onMounted
|
|
37608
|
+
onMounted(() => {
|
|
37689
37609
|
if (props.mode === "horizontal") {
|
|
37690
37610
|
new Menubar(instance.vnode.el, nsMenu.namespace.value);
|
|
37691
37611
|
}
|
|
@@ -37773,7 +37693,7 @@ const menuItemProps = buildProps({
|
|
|
37773
37693
|
disabled: Boolean
|
|
37774
37694
|
});
|
|
37775
37695
|
const menuItemEmits = {
|
|
37776
|
-
click: (item) => isString$
|
|
37696
|
+
click: (item) => isString$1(item.index) && isArray$1(item.indexPath)
|
|
37777
37697
|
};
|
|
37778
37698
|
|
|
37779
37699
|
const COMPONENT_NAME$c = "ElMenuItem";
|
|
@@ -37786,17 +37706,17 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
37786
37706
|
emits: menuItemEmits,
|
|
37787
37707
|
setup(__props, { expose, emit }) {
|
|
37788
37708
|
const props = __props;
|
|
37789
|
-
isPropAbsent(props.index) && debugWarn(
|
|
37709
|
+
isPropAbsent(props.index) && debugWarn();
|
|
37790
37710
|
const instance = getCurrentInstance();
|
|
37791
37711
|
const rootMenu = inject(MENU_INJECTION_KEY);
|
|
37792
37712
|
const nsMenu = useNamespace("menu");
|
|
37793
37713
|
const nsMenuItem = useNamespace("menu-item");
|
|
37794
37714
|
if (!rootMenu)
|
|
37795
|
-
throwError
|
|
37715
|
+
throwError(COMPONENT_NAME$c, "can not inject root menu");
|
|
37796
37716
|
const { parentMenu, indexPath } = useMenu(instance, toRef(props, "index"));
|
|
37797
37717
|
const subMenu = inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
|
|
37798
37718
|
if (!subMenu)
|
|
37799
|
-
throwError
|
|
37719
|
+
throwError(COMPONENT_NAME$c, "can not inject sub menu");
|
|
37800
37720
|
const active = computed(() => props.index === rootMenu.activeIndex);
|
|
37801
37721
|
const item = reactive({
|
|
37802
37722
|
index: props.index,
|
|
@@ -37813,7 +37733,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
37813
37733
|
emit("click", item);
|
|
37814
37734
|
}
|
|
37815
37735
|
};
|
|
37816
|
-
onMounted
|
|
37736
|
+
onMounted(() => {
|
|
37817
37737
|
subMenu.addSubMenu(item);
|
|
37818
37738
|
rootMenu.addMenuItem(item);
|
|
37819
37739
|
});
|
|
@@ -38169,7 +38089,7 @@ const optionProps = buildProps({
|
|
|
38169
38089
|
function useOption$1(props, states) {
|
|
38170
38090
|
const select = inject(selectKey);
|
|
38171
38091
|
if (!select) {
|
|
38172
|
-
throwError
|
|
38092
|
+
throwError(COMPONENT_NAME$b, "usage: <el-select><el-option /></el-select/>");
|
|
38173
38093
|
}
|
|
38174
38094
|
const selectGroup = inject(selectGroupKey, { disabled: false });
|
|
38175
38095
|
const itemSelected = computed(() => {
|
|
@@ -38319,12 +38239,14 @@ function _sfc_render$b(_ctx, _cache) {
|
|
|
38319
38239
|
"aria-disabled": _ctx.isDisabled || void 0,
|
|
38320
38240
|
"aria-selected": _ctx.itemSelected,
|
|
38321
38241
|
onMousemove: _ctx.hoverItem,
|
|
38322
|
-
onClick: withModifiers(_ctx.selectOptionClick, ["stop"])
|
|
38242
|
+
onClick: withModifiers(_ctx.selectOptionClick, ["stop"]),
|
|
38243
|
+
onMousedown: withModifiers(() => {
|
|
38244
|
+
}, ["prevent"])
|
|
38323
38245
|
}, [
|
|
38324
38246
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
38325
38247
|
createElementVNode("span", null, toDisplayString(_ctx.currentLabel), 1)
|
|
38326
38248
|
])
|
|
38327
|
-
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"])), [
|
|
38249
|
+
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick", "onMousedown"])), [
|
|
38328
38250
|
[vShow, _ctx.visible]
|
|
38329
38251
|
]);
|
|
38330
38252
|
}
|
|
@@ -38349,7 +38271,7 @@ const _sfc_main$X = defineComponent({
|
|
|
38349
38271
|
minWidth.value = "";
|
|
38350
38272
|
}
|
|
38351
38273
|
}
|
|
38352
|
-
onMounted
|
|
38274
|
+
onMounted(() => {
|
|
38353
38275
|
updateMinWidth();
|
|
38354
38276
|
useResizeObserver(select.selectRef, updateMinWidth);
|
|
38355
38277
|
});
|
|
@@ -38449,7 +38371,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
38449
38371
|
expanded.value = false;
|
|
38450
38372
|
states.menuVisibleOnFocus = false;
|
|
38451
38373
|
if (props.validateEvent) {
|
|
38452
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
38374
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
38453
38375
|
}
|
|
38454
38376
|
}
|
|
38455
38377
|
});
|
|
@@ -38504,9 +38426,9 @@ const useSelect$3 = (props, emit) => {
|
|
|
38504
38426
|
return props.filterable && props.allowCreate && states.inputValue !== "" && !hasExistingOption;
|
|
38505
38427
|
});
|
|
38506
38428
|
const updateOptions = () => {
|
|
38507
|
-
if (props.filterable && isFunction$
|
|
38429
|
+
if (props.filterable && isFunction$1(props.filterMethod))
|
|
38508
38430
|
return;
|
|
38509
|
-
if (props.filterable && props.remote && isFunction$
|
|
38431
|
+
if (props.filterable && props.remote && isFunction$1(props.remoteMethod))
|
|
38510
38432
|
return;
|
|
38511
38433
|
optionsArray.value.forEach((option) => {
|
|
38512
38434
|
var _a;
|
|
@@ -38545,7 +38467,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
38545
38467
|
}
|
|
38546
38468
|
setSelected();
|
|
38547
38469
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
38548
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
38470
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
38549
38471
|
}
|
|
38550
38472
|
}, {
|
|
38551
38473
|
flush: "post",
|
|
@@ -38571,7 +38493,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
38571
38493
|
flush: "post"
|
|
38572
38494
|
});
|
|
38573
38495
|
watch([() => states.hoveringIndex, optionsArray], ([val]) => {
|
|
38574
|
-
if (isNumber
|
|
38496
|
+
if (isNumber(val) && val > -1) {
|
|
38575
38497
|
hoverOption.value = optionsArray.value[val] || {};
|
|
38576
38498
|
} else {
|
|
38577
38499
|
hoverOption.value = {};
|
|
@@ -38590,9 +38512,9 @@ const useSelect$3 = (props, emit) => {
|
|
|
38590
38512
|
return;
|
|
38591
38513
|
}
|
|
38592
38514
|
states.previousQuery = val;
|
|
38593
|
-
if (props.filterable && isFunction$
|
|
38515
|
+
if (props.filterable && isFunction$1(props.filterMethod)) {
|
|
38594
38516
|
props.filterMethod(val);
|
|
38595
|
-
} else if (props.filterable && props.remote && isFunction$
|
|
38517
|
+
} else if (props.filterable && props.remote && isFunction$1(props.remoteMethod)) {
|
|
38596
38518
|
props.remoteMethod(val);
|
|
38597
38519
|
}
|
|
38598
38520
|
if (props.defaultFirstOption && (props.filterable || props.remote) && filteredOptionsCount.value) {
|
|
@@ -39033,7 +38955,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
39033
38955
|
}
|
|
39034
38956
|
emit("visible-change", newVal);
|
|
39035
38957
|
});
|
|
39036
|
-
onMounted
|
|
38958
|
+
onMounted(() => {
|
|
39037
38959
|
setSelected();
|
|
39038
38960
|
});
|
|
39039
38961
|
return {
|
|
@@ -39128,7 +39050,7 @@ var ElOptions = defineComponent({
|
|
|
39128
39050
|
var _a2, _b2, _c, _d;
|
|
39129
39051
|
const name = (_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name;
|
|
39130
39052
|
if (name === "ElOptionGroup") {
|
|
39131
|
-
filterOptions(!isString$
|
|
39053
|
+
filterOptions(!isString$1(item.children) && !isArray$1(item.children) && isFunction$1((_b2 = item.children) == null ? void 0 : _b2.default) ? (_c = item.children) == null ? void 0 : _c.default() : item.children);
|
|
39132
39054
|
} else if (name === "ElOption") {
|
|
39133
39055
|
valueList.push((_d = item.props) == null ? void 0 : _d.value);
|
|
39134
39056
|
} else if (isArray$1(item.children)) {
|
|
@@ -39333,7 +39255,7 @@ const _sfc_main$W = defineComponent({
|
|
|
39333
39255
|
const updateChildren = () => {
|
|
39334
39256
|
children.value = flattedChildren(instance.subTree);
|
|
39335
39257
|
};
|
|
39336
|
-
onMounted
|
|
39258
|
+
onMounted(() => {
|
|
39337
39259
|
updateChildren();
|
|
39338
39260
|
});
|
|
39339
39261
|
useMutationObserver(groupRef, updateChildren, {
|
|
@@ -40321,7 +40243,7 @@ const paginationProps = buildProps({
|
|
|
40321
40243
|
pagerCount: {
|
|
40322
40244
|
type: Number,
|
|
40323
40245
|
validator: (value) => {
|
|
40324
|
-
return isNumber
|
|
40246
|
+
return isNumber(value) && Math.trunc(value) === value && value > 4 && value < 22 && value % 2 === 1;
|
|
40325
40247
|
},
|
|
40326
40248
|
default: 7
|
|
40327
40249
|
},
|
|
@@ -40370,13 +40292,13 @@ const paginationProps = buildProps({
|
|
|
40370
40292
|
appendSizeTo: String
|
|
40371
40293
|
});
|
|
40372
40294
|
const paginationEmits = {
|
|
40373
|
-
"update:current-page": (val) => isNumber
|
|
40374
|
-
"update:page-size": (val) => isNumber
|
|
40375
|
-
"size-change": (val) => isNumber
|
|
40376
|
-
change: (currentPage, pageSize) => isNumber
|
|
40377
|
-
"current-change": (val) => isNumber
|
|
40378
|
-
"prev-click": (val) => isNumber
|
|
40379
|
-
"next-click": (val) => isNumber
|
|
40295
|
+
"update:current-page": (val) => isNumber(val),
|
|
40296
|
+
"update:page-size": (val) => isNumber(val),
|
|
40297
|
+
"size-change": (val) => isNumber(val),
|
|
40298
|
+
change: (currentPage, pageSize) => isNumber(currentPage) && isNumber(pageSize),
|
|
40299
|
+
"current-change": (val) => isNumber(val),
|
|
40300
|
+
"prev-click": (val) => isNumber(val),
|
|
40301
|
+
"next-click": (val) => isNumber(val)
|
|
40380
40302
|
};
|
|
40381
40303
|
const componentName = "ElPagination";
|
|
40382
40304
|
var Pagination = defineComponent({
|
|
@@ -41101,7 +41023,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
41101
41023
|
function getColors(color) {
|
|
41102
41024
|
const span = 100 / color.length;
|
|
41103
41025
|
const seriesColors = color.map((seriesColor, index) => {
|
|
41104
|
-
if (isString$
|
|
41026
|
+
if (isString$1(seriesColor)) {
|
|
41105
41027
|
return {
|
|
41106
41028
|
color: seriesColor,
|
|
41107
41029
|
percentage: (index + 1) * span
|
|
@@ -41114,9 +41036,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
41114
41036
|
const getCurrentColor = (percentage) => {
|
|
41115
41037
|
var _a;
|
|
41116
41038
|
const { color } = props;
|
|
41117
|
-
if (isFunction$
|
|
41039
|
+
if (isFunction$1(color)) {
|
|
41118
41040
|
return color(percentage);
|
|
41119
|
-
} else if (isString$
|
|
41041
|
+
} else if (isString$1(color)) {
|
|
41120
41042
|
return color;
|
|
41121
41043
|
} else {
|
|
41122
41044
|
const colors = getColors(color);
|
|
@@ -41294,8 +41216,8 @@ const rateProps = buildProps({
|
|
|
41294
41216
|
...useAriaProps(["ariaLabel"])
|
|
41295
41217
|
});
|
|
41296
41218
|
const rateEmits = {
|
|
41297
|
-
[CHANGE_EVENT]: (value) => isNumber
|
|
41298
|
-
[UPDATE_MODEL_EVENT]: (value) => isNumber
|
|
41219
|
+
[CHANGE_EVENT]: (value) => isNumber(value),
|
|
41220
|
+
[UPDATE_MODEL_EVENT]: (value) => isNumber(value)
|
|
41299
41221
|
};
|
|
41300
41222
|
|
|
41301
41223
|
const __default__$D = defineComponent({
|
|
@@ -41381,7 +41303,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
41381
41303
|
} : icons;
|
|
41382
41304
|
});
|
|
41383
41305
|
const decimalIconComponent = computed(() => getValueFromMap(props.modelValue, componentMap.value));
|
|
41384
|
-
const voidComponent = computed(() => rateDisabled.value ? isString$
|
|
41306
|
+
const voidComponent = computed(() => rateDisabled.value ? isString$1(props.disabledVoidIcon) ? props.disabledVoidIcon : markRaw(props.disabledVoidIcon) : isString$1(props.voidIcon) ? props.voidIcon : markRaw(props.voidIcon));
|
|
41385
41307
|
const activeComponent = computed(() => getValueFromMap(currentValue.value, componentMap.value));
|
|
41386
41308
|
function showDecimalIcon(item) {
|
|
41387
41309
|
const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props.modelValue && item > props.modelValue;
|
|
@@ -42102,7 +42024,7 @@ const createList = ({
|
|
|
42102
42024
|
const states = ref({
|
|
42103
42025
|
isScrolling: false,
|
|
42104
42026
|
scrollDir: "forward",
|
|
42105
|
-
scrollOffset: isNumber
|
|
42027
|
+
scrollOffset: isNumber(props.initScrollOffset) ? props.initScrollOffset : 0,
|
|
42106
42028
|
updateRequested: false,
|
|
42107
42029
|
isScrollbarDragging: false,
|
|
42108
42030
|
scrollbarAlwaysOn: props.scrollbarAlwaysOn
|
|
@@ -42135,8 +42057,8 @@ const createList = ({
|
|
|
42135
42057
|
},
|
|
42136
42058
|
{
|
|
42137
42059
|
direction: props.direction,
|
|
42138
|
-
height: isNumber
|
|
42139
|
-
width: isNumber
|
|
42060
|
+
height: isNumber(props.height) ? `${props.height}px` : props.height,
|
|
42061
|
+
width: isNumber(props.width) ? `${props.width}px` : props.width
|
|
42140
42062
|
},
|
|
42141
42063
|
props.style
|
|
42142
42064
|
]);
|
|
@@ -42280,12 +42202,12 @@ const createList = ({
|
|
|
42280
42202
|
window.scrollTop = 0;
|
|
42281
42203
|
}
|
|
42282
42204
|
};
|
|
42283
|
-
onMounted
|
|
42205
|
+
onMounted(() => {
|
|
42284
42206
|
if (!isClient)
|
|
42285
42207
|
return;
|
|
42286
42208
|
const { initScrollOffset } = props;
|
|
42287
42209
|
const windowElement = unref(windowRef);
|
|
42288
|
-
if (isNumber
|
|
42210
|
+
if (isNumber(initScrollOffset) && windowElement) {
|
|
42289
42211
|
if (unref(_isHorizontal)) {
|
|
42290
42212
|
windowElement.scrollLeft = initScrollOffset;
|
|
42291
42213
|
} else {
|
|
@@ -42396,7 +42318,7 @@ const createList = ({
|
|
|
42396
42318
|
h$1(Inner, mergeProps(ctx.innerProps, {
|
|
42397
42319
|
style: innerStyle,
|
|
42398
42320
|
ref: "innerRef"
|
|
42399
|
-
}), !isString$
|
|
42321
|
+
}), !isString$1(Inner) ? {
|
|
42400
42322
|
default: () => children
|
|
42401
42323
|
} : children)
|
|
42402
42324
|
];
|
|
@@ -42416,7 +42338,7 @@ const createList = ({
|
|
|
42416
42338
|
onScroll,
|
|
42417
42339
|
ref: "windowRef",
|
|
42418
42340
|
key: 0
|
|
42419
|
-
}, !isString$
|
|
42341
|
+
}, !isString$1(Container) ? { default: () => [InnerNode] } : [InnerNode]);
|
|
42420
42342
|
return h$1("div", {
|
|
42421
42343
|
key: 0,
|
|
42422
42344
|
class: [ns.e("wrapper"), states.scrollbarAlwaysOn ? "always-on" : ""]
|
|
@@ -42433,14 +42355,6 @@ const FixedSizeList = createList$1({
|
|
|
42433
42355
|
getEstimatedTotalSize: ({ total, itemSize }) => itemSize * total,
|
|
42434
42356
|
getOffset: ({ height, total, itemSize, layout, width }, index, alignment, scrollOffset) => {
|
|
42435
42357
|
const size = isHorizontal(layout) ? width : height;
|
|
42436
|
-
if (typeof process !== "undefined" && false) {
|
|
42437
|
-
throwError("[ElVirtualList]", `
|
|
42438
|
-
You should set
|
|
42439
|
-
width/height
|
|
42440
|
-
to number when your layout is
|
|
42441
|
-
horizontal/vertical
|
|
42442
|
-
`);
|
|
42443
|
-
}
|
|
42444
42358
|
const lastItemOffset = Math.max(0, total * itemSize - size);
|
|
42445
42359
|
const maxOffset = Math.min(lastItemOffset, index * itemSize);
|
|
42446
42360
|
const minOffset = Math.max(0, (index + 1) * itemSize - size);
|
|
@@ -42634,13 +42548,6 @@ const DynamicSizeList = createList$1({
|
|
|
42634
42548
|
},
|
|
42635
42549
|
clearCache: false,
|
|
42636
42550
|
validateProps: ({ itemSize }) => {
|
|
42637
|
-
if (typeof process !== "undefined" && false) {
|
|
42638
|
-
if (typeof itemSize !== "function") {
|
|
42639
|
-
throwError(SCOPE, `
|
|
42640
|
-
itemSize is required as function, but the given value was ${typeof itemSize}
|
|
42641
|
-
`);
|
|
42642
|
-
}
|
|
42643
|
-
}
|
|
42644
42551
|
}
|
|
42645
42552
|
});
|
|
42646
42553
|
var DynamicSizeList$1 = DynamicSizeList;
|
|
@@ -42764,8 +42671,8 @@ const createGrid = ({
|
|
|
42764
42671
|
const innerRef = ref();
|
|
42765
42672
|
const states = ref({
|
|
42766
42673
|
isScrolling: false,
|
|
42767
|
-
scrollLeft: isNumber
|
|
42768
|
-
scrollTop: isNumber
|
|
42674
|
+
scrollLeft: isNumber(props.initScrollLeft) ? props.initScrollLeft : 0,
|
|
42675
|
+
scrollTop: isNumber(props.initScrollTop) ? props.initScrollTop : 0,
|
|
42769
42676
|
updateRequested: false,
|
|
42770
42677
|
xAxisScrollDir: FORWARD,
|
|
42771
42678
|
yAxisScrollDir: FORWARD
|
|
@@ -42820,8 +42727,8 @@ const createGrid = ({
|
|
|
42820
42727
|
},
|
|
42821
42728
|
{
|
|
42822
42729
|
direction: props.direction,
|
|
42823
|
-
height: isNumber
|
|
42824
|
-
width: isNumber
|
|
42730
|
+
height: isNumber(props.height) ? `${props.height}px` : props.height,
|
|
42731
|
+
width: isNumber(props.width) ? `${props.width}px` : props.width
|
|
42825
42732
|
},
|
|
42826
42733
|
(_a = props.style) != null ? _a : {}
|
|
42827
42734
|
];
|
|
@@ -43008,16 +42915,16 @@ const createGrid = ({
|
|
|
43008
42915
|
getItemStyleCache.value(-1, null, null);
|
|
43009
42916
|
});
|
|
43010
42917
|
};
|
|
43011
|
-
onMounted
|
|
42918
|
+
onMounted(() => {
|
|
43012
42919
|
if (!isClient)
|
|
43013
42920
|
return;
|
|
43014
42921
|
const { initScrollLeft, initScrollTop } = props;
|
|
43015
42922
|
const windowElement = unref(windowRef);
|
|
43016
42923
|
if (windowElement) {
|
|
43017
|
-
if (isNumber
|
|
42924
|
+
if (isNumber(initScrollLeft)) {
|
|
43018
42925
|
windowElement.scrollLeft = initScrollLeft;
|
|
43019
42926
|
}
|
|
43020
|
-
if (isNumber
|
|
42927
|
+
if (isNumber(initScrollTop)) {
|
|
43021
42928
|
windowElement.scrollTop = initScrollTop;
|
|
43022
42929
|
}
|
|
43023
42930
|
}
|
|
@@ -43141,7 +43048,7 @@ const createGrid = ({
|
|
|
43141
43048
|
h$1(Inner, mergeProps(props.innerProps, {
|
|
43142
43049
|
style: unref(innerStyle),
|
|
43143
43050
|
ref: innerRef
|
|
43144
|
-
}), !isString$
|
|
43051
|
+
}), !isString$1(Inner) ? {
|
|
43145
43052
|
default: () => children
|
|
43146
43053
|
} : children)
|
|
43147
43054
|
];
|
|
@@ -43160,7 +43067,7 @@ const createGrid = ({
|
|
|
43160
43067
|
style: unref(windowStyle),
|
|
43161
43068
|
onScroll,
|
|
43162
43069
|
ref: windowRef
|
|
43163
|
-
}, !isString$
|
|
43070
|
+
}, !isString$1(Container) ? { default: () => Inner } : Inner),
|
|
43164
43071
|
horizontalScrollbar,
|
|
43165
43072
|
verticalScrollbar
|
|
43166
43073
|
]);
|
|
@@ -43278,20 +43185,6 @@ const FixedSizeGrid = createGrid$1({
|
|
|
43278
43185
|
initCache: () => void 0,
|
|
43279
43186
|
clearCache: true,
|
|
43280
43187
|
validateProps: ({ columnWidth, rowHeight }) => {
|
|
43281
|
-
if (typeof process !== "undefined" && false) {
|
|
43282
|
-
if (!isNumber(columnWidth)) {
|
|
43283
|
-
throwError(SCOPE, `
|
|
43284
|
-
"columnWidth" must be passed as number,
|
|
43285
|
-
instead ${typeof columnWidth} was given.
|
|
43286
|
-
`);
|
|
43287
|
-
}
|
|
43288
|
-
if (!isNumber(rowHeight)) {
|
|
43289
|
-
throwError(SCOPE, `
|
|
43290
|
-
"columnWidth" must be passed as number,
|
|
43291
|
-
instead ${typeof rowHeight} was given.
|
|
43292
|
-
`);
|
|
43293
|
-
}
|
|
43294
|
-
}
|
|
43295
43188
|
}
|
|
43296
43189
|
});
|
|
43297
43190
|
var FixedSizeGrid$1 = FixedSizeGrid;
|
|
@@ -43476,10 +43369,10 @@ const DynamicSizeGrid = createGrid$1({
|
|
|
43476
43369
|
const resetAfter = ({ columnIndex, rowIndex }, forceUpdate) => {
|
|
43477
43370
|
var _a, _b;
|
|
43478
43371
|
forceUpdate = isUndefined(forceUpdate) ? true : forceUpdate;
|
|
43479
|
-
if (isNumber
|
|
43372
|
+
if (isNumber(columnIndex)) {
|
|
43480
43373
|
cache.value.lastVisitedColumnIndex = Math.min(cache.value.lastVisitedColumnIndex, columnIndex - 1);
|
|
43481
43374
|
}
|
|
43482
|
-
if (isNumber
|
|
43375
|
+
if (isNumber(rowIndex)) {
|
|
43483
43376
|
cache.value.lastVisitedRowIndex = Math.min(cache.value.lastVisitedRowIndex, rowIndex - 1);
|
|
43484
43377
|
}
|
|
43485
43378
|
(_a = instance.exposed) == null ? void 0 : _a.getItemStyleCache.value(-1, null, null);
|
|
@@ -43518,20 +43411,6 @@ const DynamicSizeGrid = createGrid$1({
|
|
|
43518
43411
|
},
|
|
43519
43412
|
clearCache: false,
|
|
43520
43413
|
validateProps: ({ columnWidth, rowHeight }) => {
|
|
43521
|
-
if (typeof process !== "undefined" && false) {
|
|
43522
|
-
if (!isFunction(columnWidth)) {
|
|
43523
|
-
throwError(SCOPE, `
|
|
43524
|
-
"columnWidth" must be passed as function,
|
|
43525
|
-
instead ${typeof columnWidth} was given.
|
|
43526
|
-
`);
|
|
43527
|
-
}
|
|
43528
|
-
if (!isFunction(rowHeight)) {
|
|
43529
|
-
throwError(SCOPE, `
|
|
43530
|
-
"rowHeight" must be passed as function,
|
|
43531
|
-
instead ${typeof rowHeight} was given.
|
|
43532
|
-
`);
|
|
43533
|
-
}
|
|
43534
|
-
}
|
|
43535
43414
|
}
|
|
43536
43415
|
});
|
|
43537
43416
|
var DynamicSizeGrid$1 = DynamicSizeGrid;
|
|
@@ -43708,7 +43587,7 @@ const selectV2Props = buildProps({
|
|
|
43708
43587
|
type: [Boolean, Number],
|
|
43709
43588
|
default: true,
|
|
43710
43589
|
validator(val) {
|
|
43711
|
-
return isBoolean(val) || isNumber
|
|
43590
|
+
return isBoolean(val) || isNumber(val);
|
|
43712
43591
|
}
|
|
43713
43592
|
},
|
|
43714
43593
|
suffixIcon: {
|
|
@@ -43741,7 +43620,7 @@ const selectV2Emits = {
|
|
|
43741
43620
|
clear: () => true
|
|
43742
43621
|
};
|
|
43743
43622
|
const optionV2Emits = {
|
|
43744
|
-
hover: (index) => isNumber
|
|
43623
|
+
hover: (index) => isNumber(index),
|
|
43745
43624
|
select: (val, index) => true
|
|
43746
43625
|
};
|
|
43747
43626
|
|
|
@@ -43780,7 +43659,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43780
43659
|
_ctx.ns.is("hovering", _ctx.hovering)
|
|
43781
43660
|
]),
|
|
43782
43661
|
onMousemove: _ctx.hoverItem,
|
|
43783
|
-
onClick: withModifiers(_ctx.selectOptionClick, ["stop"])
|
|
43662
|
+
onClick: withModifiers(_ctx.selectOptionClick, ["stop"]),
|
|
43663
|
+
onMousedown: withModifiers(() => {
|
|
43664
|
+
}, ["prevent"])
|
|
43784
43665
|
}, [
|
|
43785
43666
|
renderSlot(_ctx.$slots, "default", {
|
|
43786
43667
|
item: _ctx.item,
|
|
@@ -43789,7 +43670,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43789
43670
|
}, () => [
|
|
43790
43671
|
createElementVNode("span", null, toDisplayString(_ctx.getLabel(_ctx.item)), 1)
|
|
43791
43672
|
])
|
|
43792
|
-
], 46, ["id", "aria-selected", "aria-disabled", "onMousemove", "onClick"]);
|
|
43673
|
+
], 46, ["id", "aria-selected", "aria-disabled", "onMousemove", "onClick", "onMousedown"]);
|
|
43793
43674
|
}
|
|
43794
43675
|
var OptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$6], ["__file", "option-item.vue"]]);
|
|
43795
43676
|
|
|
@@ -44167,7 +44048,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
44167
44048
|
expanded.value = false;
|
|
44168
44049
|
states.menuVisibleOnFocus = false;
|
|
44169
44050
|
if (props.validateEvent) {
|
|
44170
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(
|
|
44051
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn());
|
|
44171
44052
|
}
|
|
44172
44053
|
}
|
|
44173
44054
|
});
|
|
@@ -44216,8 +44097,8 @@ const useSelect$1 = (props, emit) => {
|
|
|
44216
44097
|
}
|
|
44217
44098
|
return null;
|
|
44218
44099
|
});
|
|
44219
|
-
const isFilterMethodValid = computed(() => props.filterable && isFunction$
|
|
44220
|
-
const isRemoteMethodValid = computed(() => props.filterable && props.remote && isFunction$
|
|
44100
|
+
const isFilterMethodValid = computed(() => props.filterable && isFunction$1(props.filterMethod));
|
|
44101
|
+
const isRemoteMethodValid = computed(() => props.filterable && props.remote && isFunction$1(props.remoteMethod));
|
|
44221
44102
|
const filterOptions = (query) => {
|
|
44222
44103
|
const regexp = new RegExp(escapeStringRegexp(query), "i");
|
|
44223
44104
|
const isValidOption = (o) => {
|
|
@@ -44266,7 +44147,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
44266
44147
|
const collapseTagSize = computed(() => selectSize.value === "small" ? "small" : "default");
|
|
44267
44148
|
const calculatePopperSize = () => {
|
|
44268
44149
|
var _a;
|
|
44269
|
-
if (isNumber
|
|
44150
|
+
if (isNumber(props.fitInputWidth)) {
|
|
44270
44151
|
popperSize.value = props.fitInputWidth;
|
|
44271
44152
|
return;
|
|
44272
44153
|
}
|
|
@@ -44396,9 +44277,9 @@ const useSelect$1 = (props, emit) => {
|
|
|
44396
44277
|
return;
|
|
44397
44278
|
}
|
|
44398
44279
|
states.previousQuery = val;
|
|
44399
|
-
if (props.filterable && isFunction$
|
|
44280
|
+
if (props.filterable && isFunction$1(props.filterMethod)) {
|
|
44400
44281
|
props.filterMethod(val);
|
|
44401
|
-
} else if (props.filterable && props.remote && isFunction$
|
|
44282
|
+
} else if (props.filterable && props.remote && isFunction$1(props.remoteMethod)) {
|
|
44402
44283
|
props.remoteMethod(val);
|
|
44403
44284
|
}
|
|
44404
44285
|
if (props.defaultFirstOption && (props.filterable || props.remote) && filteredOptions.value.length) {
|
|
@@ -44740,7 +44621,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
44740
44621
|
initStates(true);
|
|
44741
44622
|
}
|
|
44742
44623
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
44743
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(
|
|
44624
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
44744
44625
|
}
|
|
44745
44626
|
}, {
|
|
44746
44627
|
deep: true
|
|
@@ -44773,14 +44654,13 @@ const useSelect$1 = (props, emit) => {
|
|
|
44773
44654
|
v = get(optionValue, valueKey);
|
|
44774
44655
|
}
|
|
44775
44656
|
if (duplicateValue.get(v)) {
|
|
44776
|
-
debugWarn("ElSelectV2", `The option values you provided seem to be duplicated, which may cause some problems, please check.`);
|
|
44777
44657
|
break;
|
|
44778
44658
|
} else {
|
|
44779
44659
|
duplicateValue.set(v, true);
|
|
44780
44660
|
}
|
|
44781
44661
|
}
|
|
44782
44662
|
});
|
|
44783
|
-
onMounted
|
|
44663
|
+
onMounted(() => {
|
|
44784
44664
|
initStates();
|
|
44785
44665
|
});
|
|
44786
44666
|
useResizeObserver(selectRef, handleResize);
|
|
@@ -45476,7 +45356,7 @@ const sliderProps = buildProps({
|
|
|
45476
45356
|
},
|
|
45477
45357
|
...useAriaProps(["ariaLabel"])
|
|
45478
45358
|
});
|
|
45479
|
-
const isValidValue$1 = (value) => isNumber
|
|
45359
|
+
const isValidValue$1 = (value) => isNumber(value) || isArray$1(value) && value.every(isNumber);
|
|
45480
45360
|
const sliderEmits = {
|
|
45481
45361
|
[UPDATE_MODEL_EVENT]: isValidValue$1,
|
|
45482
45362
|
[INPUT_EVENT]: isValidValue$1,
|
|
@@ -45485,7 +45365,7 @@ const sliderEmits = {
|
|
|
45485
45365
|
|
|
45486
45366
|
const useLifecycle = (props, initData, resetSize) => {
|
|
45487
45367
|
const sliderWrapper = ref();
|
|
45488
|
-
onMounted
|
|
45368
|
+
onMounted(async () => {
|
|
45489
45369
|
if (props.range) {
|
|
45490
45370
|
if (isArray$1(props.modelValue)) {
|
|
45491
45371
|
initData.firstValue = Math.max(props.min, props.modelValue[0]);
|
|
@@ -45496,7 +45376,7 @@ const useLifecycle = (props, initData, resetSize) => {
|
|
|
45496
45376
|
}
|
|
45497
45377
|
initData.oldValue = [initData.firstValue, initData.secondValue];
|
|
45498
45378
|
} else {
|
|
45499
|
-
if (!isNumber
|
|
45379
|
+
if (!isNumber(props.modelValue) || Number.isNaN(props.modelValue)) {
|
|
45500
45380
|
initData.firstValue = props.min;
|
|
45501
45381
|
} else {
|
|
45502
45382
|
initData.firstValue = Math.min(props.max, Math.max(props.min, props.modelValue));
|
|
@@ -45917,7 +45797,6 @@ const useStops = (props, initData, minValue, maxValue) => {
|
|
|
45917
45797
|
if (!props.showStops || props.min > props.max)
|
|
45918
45798
|
return [];
|
|
45919
45799
|
if (props.step === 0) {
|
|
45920
|
-
debugWarn("ElSlider", "step should not be 0.");
|
|
45921
45800
|
return [];
|
|
45922
45801
|
}
|
|
45923
45802
|
const stopCount = Math.ceil((props.max - props.min) / props.step);
|
|
@@ -45955,7 +45834,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
45955
45834
|
const setValues = () => {
|
|
45956
45835
|
var _a, _b;
|
|
45957
45836
|
if (props.min > props.max) {
|
|
45958
|
-
throwError
|
|
45837
|
+
throwError("Slider", "min should not be greater than max.");
|
|
45959
45838
|
}
|
|
45960
45839
|
const val = props.modelValue;
|
|
45961
45840
|
if (props.range && isArray$1(val)) {
|
|
@@ -45972,12 +45851,12 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
45972
45851
|
initData.secondValue = val[1];
|
|
45973
45852
|
if (valueChanged()) {
|
|
45974
45853
|
if (props.validateEvent) {
|
|
45975
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(
|
|
45854
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
45976
45855
|
}
|
|
45977
45856
|
initData.oldValue = val.slice();
|
|
45978
45857
|
}
|
|
45979
45858
|
}
|
|
45980
|
-
} else if (!props.range && isNumber
|
|
45859
|
+
} else if (!props.range && isNumber(val) && !Number.isNaN(val)) {
|
|
45981
45860
|
if (val < props.min) {
|
|
45982
45861
|
_emit(props.min);
|
|
45983
45862
|
} else if (val > props.max) {
|
|
@@ -45986,7 +45865,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
45986
45865
|
initData.firstValue = val;
|
|
45987
45866
|
if (valueChanged()) {
|
|
45988
45867
|
if (props.validateEvent) {
|
|
45989
|
-
(_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn(
|
|
45868
|
+
(_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn());
|
|
45990
45869
|
}
|
|
45991
45870
|
initData.oldValue = val;
|
|
45992
45871
|
}
|
|
@@ -46026,7 +45905,7 @@ const sliderButtonProps = buildProps({
|
|
|
46026
45905
|
}
|
|
46027
45906
|
});
|
|
46028
45907
|
const sliderButtonEmits = {
|
|
46029
|
-
[UPDATE_MODEL_EVENT]: (value) => isNumber
|
|
45908
|
+
[UPDATE_MODEL_EVENT]: (value) => isNumber(value)
|
|
46030
45909
|
};
|
|
46031
45910
|
|
|
46032
45911
|
const __default__$z = defineComponent({
|
|
@@ -46128,9 +46007,9 @@ var SliderMarker = defineComponent({
|
|
|
46128
46007
|
setup(props) {
|
|
46129
46008
|
const ns = useNamespace("slider");
|
|
46130
46009
|
const label = computed(() => {
|
|
46131
|
-
return isString$
|
|
46010
|
+
return isString$1(props.mark) ? props.mark : props.mark.label;
|
|
46132
46011
|
});
|
|
46133
|
-
const style = computed(() => isString$
|
|
46012
|
+
const style = computed(() => isString$1(props.mark) ? void 0 : props.mark.style);
|
|
46134
46013
|
return () => h$1("div", {
|
|
46135
46014
|
class: ns.e("marks-text"),
|
|
46136
46015
|
style: style.value
|
|
@@ -46408,7 +46287,7 @@ function useSpace(props) {
|
|
|
46408
46287
|
verticalSize.value = v;
|
|
46409
46288
|
} else {
|
|
46410
46289
|
let val;
|
|
46411
|
-
if (isNumber
|
|
46290
|
+
if (isNumber(size)) {
|
|
46412
46291
|
val = size;
|
|
46413
46292
|
} else {
|
|
46414
46293
|
val = SIZE_MAP[size || "small"] || SIZE_MAP.small;
|
|
@@ -46461,7 +46340,7 @@ const spaceProps = buildProps({
|
|
|
46461
46340
|
spacer: {
|
|
46462
46341
|
type: definePropType([Object, String, Number, Array]),
|
|
46463
46342
|
default: null,
|
|
46464
|
-
validator: (val) => isVNode(val) || isNumber
|
|
46343
|
+
validator: (val) => isVNode(val) || isNumber(val) || isString$1(val)
|
|
46465
46344
|
},
|
|
46466
46345
|
wrap: Boolean,
|
|
46467
46346
|
fill: Boolean,
|
|
@@ -46473,7 +46352,7 @@ const spaceProps = buildProps({
|
|
|
46473
46352
|
type: [String, Array, Number],
|
|
46474
46353
|
values: componentSizes,
|
|
46475
46354
|
validator: (val) => {
|
|
46476
|
-
return isNumber
|
|
46355
|
+
return isNumber(val) || isArray$1(val) && val.length === 2 && val.every(isNumber);
|
|
46477
46356
|
}
|
|
46478
46357
|
}
|
|
46479
46358
|
});
|
|
@@ -46592,9 +46471,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
46592
46471
|
const ns = useNamespace("statistic");
|
|
46593
46472
|
const displayValue = computed(() => {
|
|
46594
46473
|
const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
|
|
46595
|
-
if (isFunction$
|
|
46474
|
+
if (isFunction$1(formatter))
|
|
46596
46475
|
return formatter(value);
|
|
46597
|
-
if (!isNumber
|
|
46476
|
+
if (!isNumber(value) || Number.isNaN(value))
|
|
46598
46477
|
return value;
|
|
46599
46478
|
let [integer, decimal = ""] = String(value).split(".");
|
|
46600
46479
|
decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
|
|
@@ -46666,7 +46545,7 @@ const countdownProps = buildProps({
|
|
|
46666
46545
|
});
|
|
46667
46546
|
const countdownEmits = {
|
|
46668
46547
|
finish: () => true,
|
|
46669
|
-
[CHANGE_EVENT]: (value) => isNumber
|
|
46548
|
+
[CHANGE_EVENT]: (value) => isNumber(value)
|
|
46670
46549
|
};
|
|
46671
46550
|
|
|
46672
46551
|
const timeUnits = [
|
|
@@ -46679,7 +46558,7 @@ const timeUnits = [
|
|
|
46679
46558
|
["S", 1]
|
|
46680
46559
|
];
|
|
46681
46560
|
const getTime = (value) => {
|
|
46682
|
-
return isNumber
|
|
46561
|
+
return isNumber(value) ? new Date(value).getTime() : value.valueOf();
|
|
46683
46562
|
};
|
|
46684
46563
|
const formatTime$1 = (timestamp, format) => {
|
|
46685
46564
|
let timeLeft = timestamp;
|
|
@@ -46731,7 +46610,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
46731
46610
|
};
|
|
46732
46611
|
timer = rAF(frameFunc);
|
|
46733
46612
|
};
|
|
46734
|
-
onMounted
|
|
46613
|
+
onMounted(() => {
|
|
46735
46614
|
rawValue.value = getTime(props.value) - Date.now();
|
|
46736
46615
|
watch(() => [props.value, props.format], () => {
|
|
46737
46616
|
stopTimer();
|
|
@@ -46805,7 +46684,7 @@ const stepsProps = buildProps({
|
|
|
46805
46684
|
}
|
|
46806
46685
|
});
|
|
46807
46686
|
const stepsEmits = {
|
|
46808
|
-
[CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber
|
|
46687
|
+
[CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
|
|
46809
46688
|
};
|
|
46810
46689
|
|
|
46811
46690
|
const STEPS_INJECTION_KEY = "ElSteps";
|
|
@@ -46882,7 +46761,7 @@ const _sfc_main$B = defineComponent({
|
|
|
46882
46761
|
const currentInstance = getCurrentInstance();
|
|
46883
46762
|
let stepDiff = 0;
|
|
46884
46763
|
let beforeActive = 0;
|
|
46885
|
-
onMounted
|
|
46764
|
+
onMounted(() => {
|
|
46886
46765
|
watch([
|
|
46887
46766
|
() => parent.props.active,
|
|
46888
46767
|
() => parent.props.processStatus,
|
|
@@ -46929,7 +46808,7 @@ const _sfc_main$B = defineComponent({
|
|
|
46929
46808
|
});
|
|
46930
46809
|
const style = computed(() => {
|
|
46931
46810
|
const style2 = {
|
|
46932
|
-
flexBasis: isNumber
|
|
46811
|
+
flexBasis: isNumber(space.value) ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
|
|
46933
46812
|
};
|
|
46934
46813
|
if (isVertical.value)
|
|
46935
46814
|
return style2;
|
|
@@ -47128,9 +47007,9 @@ const switchProps = buildProps({
|
|
|
47128
47007
|
...useAriaProps(["ariaLabel"])
|
|
47129
47008
|
});
|
|
47130
47009
|
const switchEmits = {
|
|
47131
|
-
[UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$
|
|
47132
|
-
[CHANGE_EVENT]: (val) => isBoolean(val) || isString$
|
|
47133
|
-
[INPUT_EVENT]: (val) => isBoolean(val) || isString$
|
|
47010
|
+
[UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val),
|
|
47011
|
+
[CHANGE_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val),
|
|
47012
|
+
[INPUT_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val)
|
|
47134
47013
|
};
|
|
47135
47014
|
|
|
47136
47015
|
const COMPONENT_NAME$9 = "ElSwitch";
|
|
@@ -47192,7 +47071,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
47192
47071
|
var _a;
|
|
47193
47072
|
input.value.checked = val;
|
|
47194
47073
|
if (props.validateEvent) {
|
|
47195
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(
|
|
47074
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
47196
47075
|
}
|
|
47197
47076
|
});
|
|
47198
47077
|
const handleChange = () => {
|
|
@@ -47218,7 +47097,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
47218
47097
|
isBoolean(shouldChange)
|
|
47219
47098
|
].includes(true);
|
|
47220
47099
|
if (!isPromiseOrBool) {
|
|
47221
|
-
throwError
|
|
47100
|
+
throwError(COMPONENT_NAME$9, "beforeChange must return type `Promise<boolean>` or `boolean`");
|
|
47222
47101
|
}
|
|
47223
47102
|
if (isPromise(shouldChange)) {
|
|
47224
47103
|
shouldChange.then((result) => {
|
|
@@ -47226,7 +47105,6 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
47226
47105
|
handleChange();
|
|
47227
47106
|
}
|
|
47228
47107
|
}).catch((e) => {
|
|
47229
|
-
debugWarn(COMPONENT_NAME$9, `some error occurred: ${e}`);
|
|
47230
47108
|
});
|
|
47231
47109
|
} else if (shouldChange) {
|
|
47232
47110
|
handleChange();
|
|
@@ -47236,7 +47114,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
47236
47114
|
var _a, _b;
|
|
47237
47115
|
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
47238
47116
|
};
|
|
47239
|
-
onMounted
|
|
47117
|
+
onMounted(() => {
|
|
47240
47118
|
input.value.checked = checked.value;
|
|
47241
47119
|
});
|
|
47242
47120
|
expose({
|
|
@@ -47362,7 +47240,7 @@ const orderBy = function(array, sortKey, reverse, sortMethod, sortBy) {
|
|
|
47362
47240
|
if (!sortKey && !sortMethod && (!sortBy || isArray$1(sortBy) && !sortBy.length)) {
|
|
47363
47241
|
return array;
|
|
47364
47242
|
}
|
|
47365
|
-
if (isString$
|
|
47243
|
+
if (isString$1(reverse)) {
|
|
47366
47244
|
reverse = reverse === "descending" ? -1 : 1;
|
|
47367
47245
|
} else {
|
|
47368
47246
|
reverse = reverse && reverse < 0 ? -1 : 1;
|
|
@@ -47370,7 +47248,7 @@ const orderBy = function(array, sortKey, reverse, sortMethod, sortBy) {
|
|
|
47370
47248
|
const getKey = sortMethod ? null : function(value, index) {
|
|
47371
47249
|
if (sortBy) {
|
|
47372
47250
|
return flatMap(castArray$1(sortBy), (by) => {
|
|
47373
|
-
if (isString$
|
|
47251
|
+
if (isString$1(by)) {
|
|
47374
47252
|
return get(value, by);
|
|
47375
47253
|
} else {
|
|
47376
47254
|
return by(value, index, array);
|
|
@@ -47433,7 +47311,7 @@ const getColumnByKey = function(table, columnKey) {
|
|
|
47433
47311
|
}
|
|
47434
47312
|
}
|
|
47435
47313
|
if (!column)
|
|
47436
|
-
throwError
|
|
47314
|
+
throwError("ElTable", `No column matching with column-key: ${columnKey}`);
|
|
47437
47315
|
return column;
|
|
47438
47316
|
};
|
|
47439
47317
|
const getColumnByCell = function(table, cell, namespace) {
|
|
@@ -47446,7 +47324,7 @@ const getColumnByCell = function(table, cell, namespace) {
|
|
|
47446
47324
|
const getRowIdentity = (row, rowKey) => {
|
|
47447
47325
|
if (!row)
|
|
47448
47326
|
throw new Error("Row is required when get row identity");
|
|
47449
|
-
if (isString$
|
|
47327
|
+
if (isString$1(rowKey)) {
|
|
47450
47328
|
if (!rowKey.includes(".")) {
|
|
47451
47329
|
return `${row[rowKey]}`;
|
|
47452
47330
|
}
|
|
@@ -47456,7 +47334,7 @@ const getRowIdentity = (row, rowKey) => {
|
|
|
47456
47334
|
current = current[element];
|
|
47457
47335
|
}
|
|
47458
47336
|
return `${current}`;
|
|
47459
|
-
} else if (isFunction$
|
|
47337
|
+
} else if (isFunction$1(rowKey)) {
|
|
47460
47338
|
return rowKey.call(null, row);
|
|
47461
47339
|
}
|
|
47462
47340
|
return "";
|
|
@@ -47514,10 +47392,10 @@ function parseMinWidth(minWidth) {
|
|
|
47514
47392
|
return minWidth;
|
|
47515
47393
|
}
|
|
47516
47394
|
function parseHeight(height) {
|
|
47517
|
-
if (isNumber
|
|
47395
|
+
if (isNumber(height)) {
|
|
47518
47396
|
return height;
|
|
47519
47397
|
}
|
|
47520
|
-
if (isString$
|
|
47398
|
+
if (isString$1(height)) {
|
|
47521
47399
|
if (/^\d+(?:px)?$/.test(height)) {
|
|
47522
47400
|
return Number.parseInt(height, 10);
|
|
47523
47401
|
} else {
|
|
@@ -47620,7 +47498,7 @@ const getTableOverflowTooltipProps = (props, innerText, row, column) => {
|
|
|
47620
47498
|
strategy: "fixed",
|
|
47621
47499
|
...props.popperOptions
|
|
47622
47500
|
};
|
|
47623
|
-
const tooltipFormatterContent = isFunction$
|
|
47501
|
+
const tooltipFormatterContent = isFunction$1(column == null ? void 0 : column.tooltipFormatter) ? column.tooltipFormatter({
|
|
47624
47502
|
row,
|
|
47625
47503
|
column,
|
|
47626
47504
|
cellValue: getProp(row, column.property).value
|
|
@@ -48136,7 +48014,7 @@ function useTree$2(watcherData) {
|
|
|
48136
48014
|
|
|
48137
48015
|
const sortData = (data, states) => {
|
|
48138
48016
|
const sortingColumn = states.sortingColumn;
|
|
48139
|
-
if (!sortingColumn || isString$
|
|
48017
|
+
if (!sortingColumn || isString$1(sortingColumn.sortable)) {
|
|
48140
48018
|
return data;
|
|
48141
48019
|
}
|
|
48142
48020
|
return orderBy(data, states.sortProp, states.sortOrder, sortingColumn.sortMethod, sortingColumn.sortBy);
|
|
@@ -48423,7 +48301,7 @@ function useWatcher$1() {
|
|
|
48423
48301
|
const keys = Object.keys(panels);
|
|
48424
48302
|
if (!keys.length)
|
|
48425
48303
|
return;
|
|
48426
|
-
if (isString$
|
|
48304
|
+
if (isString$1(columnKeys)) {
|
|
48427
48305
|
columnKeys = [columnKeys];
|
|
48428
48306
|
}
|
|
48429
48307
|
if (isArray$1(columnKeys)) {
|
|
@@ -48877,10 +48755,10 @@ class TableLayout {
|
|
|
48877
48755
|
nextTick(() => this.setHeight(value, prop));
|
|
48878
48756
|
return;
|
|
48879
48757
|
}
|
|
48880
|
-
if (el && isNumber
|
|
48758
|
+
if (el && isNumber(value)) {
|
|
48881
48759
|
el.style[prop] = `${value}px`;
|
|
48882
48760
|
this.updateElsHeight();
|
|
48883
|
-
} else if (el && isString$
|
|
48761
|
+
} else if (el && isString$1(value)) {
|
|
48884
48762
|
el.style[prop] = value;
|
|
48885
48763
|
this.updateElsHeight();
|
|
48886
48764
|
}
|
|
@@ -48924,9 +48802,9 @@ class TableLayout {
|
|
|
48924
48802
|
const bodyWidth = (_a = this.table.vnode.el) == null ? void 0 : _a.clientWidth;
|
|
48925
48803
|
let bodyMinWidth = 0;
|
|
48926
48804
|
const flattenColumns = this.getFlattenColumns();
|
|
48927
|
-
const flexColumns = flattenColumns.filter((column) => !isNumber
|
|
48805
|
+
const flexColumns = flattenColumns.filter((column) => !isNumber(column.width));
|
|
48928
48806
|
flattenColumns.forEach((column) => {
|
|
48929
|
-
if (isNumber
|
|
48807
|
+
if (isNumber(column.width) && column.realWidth)
|
|
48930
48808
|
column.realWidth = null;
|
|
48931
48809
|
});
|
|
48932
48810
|
if (flexColumns.length > 0 && fit) {
|
|
@@ -49354,7 +49232,7 @@ function useLayoutObserver(root) {
|
|
|
49354
49232
|
onBeforeMount(() => {
|
|
49355
49233
|
tableLayout.value.addObserver(instance);
|
|
49356
49234
|
});
|
|
49357
|
-
onMounted
|
|
49235
|
+
onMounted(() => {
|
|
49358
49236
|
onColumnsChange(tableLayout.value);
|
|
49359
49237
|
onScrollableChange(tableLayout.value);
|
|
49360
49238
|
});
|
|
@@ -49503,7 +49381,7 @@ function useEvent(props, emit) {
|
|
|
49503
49381
|
if (!props.border || column.children && column.children.length > 0)
|
|
49504
49382
|
return;
|
|
49505
49383
|
const el = event.target;
|
|
49506
|
-
const target = isElement$
|
|
49384
|
+
const target = isElement$2(el) ? el.closest("th") : null;
|
|
49507
49385
|
if (!target) {
|
|
49508
49386
|
return;
|
|
49509
49387
|
}
|
|
@@ -49595,7 +49473,7 @@ function useStyle$2(props) {
|
|
|
49595
49473
|
const ns = useNamespace("table");
|
|
49596
49474
|
const getHeaderRowStyle = (rowIndex) => {
|
|
49597
49475
|
const headerRowStyle = parent == null ? void 0 : parent.props.headerRowStyle;
|
|
49598
|
-
if (isFunction$
|
|
49476
|
+
if (isFunction$1(headerRowStyle)) {
|
|
49599
49477
|
return headerRowStyle.call(null, { rowIndex });
|
|
49600
49478
|
}
|
|
49601
49479
|
return headerRowStyle;
|
|
@@ -49603,9 +49481,9 @@ function useStyle$2(props) {
|
|
|
49603
49481
|
const getHeaderRowClass = (rowIndex) => {
|
|
49604
49482
|
const classes = [];
|
|
49605
49483
|
const headerRowClassName = parent == null ? void 0 : parent.props.headerRowClassName;
|
|
49606
|
-
if (isString$
|
|
49484
|
+
if (isString$1(headerRowClassName)) {
|
|
49607
49485
|
classes.push(headerRowClassName);
|
|
49608
|
-
} else if (isFunction$
|
|
49486
|
+
} else if (isFunction$1(headerRowClassName)) {
|
|
49609
49487
|
classes.push(headerRowClassName.call(null, { rowIndex }));
|
|
49610
49488
|
}
|
|
49611
49489
|
return classes.join(" ");
|
|
@@ -49613,7 +49491,7 @@ function useStyle$2(props) {
|
|
|
49613
49491
|
const getHeaderCellStyle = (rowIndex, columnIndex, row, column) => {
|
|
49614
49492
|
var _a;
|
|
49615
49493
|
let headerCellStyles = (_a = parent == null ? void 0 : parent.props.headerCellStyle) != null ? _a : {};
|
|
49616
|
-
if (isFunction$
|
|
49494
|
+
if (isFunction$1(headerCellStyles)) {
|
|
49617
49495
|
headerCellStyles = headerCellStyles.call(null, {
|
|
49618
49496
|
rowIndex,
|
|
49619
49497
|
columnIndex,
|
|
@@ -49643,9 +49521,9 @@ function useStyle$2(props) {
|
|
|
49643
49521
|
classes.push("is-sortable");
|
|
49644
49522
|
}
|
|
49645
49523
|
const headerCellClassName = parent == null ? void 0 : parent.props.headerCellClassName;
|
|
49646
|
-
if (isString$
|
|
49524
|
+
if (isString$1(headerCellClassName)) {
|
|
49647
49525
|
classes.push(headerCellClassName);
|
|
49648
|
-
} else if (isFunction$
|
|
49526
|
+
} else if (isFunction$1(headerCellClassName)) {
|
|
49649
49527
|
classes.push(headerCellClassName.call(null, {
|
|
49650
49528
|
rowIndex,
|
|
49651
49529
|
columnIndex,
|
|
@@ -49801,7 +49679,7 @@ var TableHeader = defineComponent({
|
|
|
49801
49679
|
delayId = void 0;
|
|
49802
49680
|
}
|
|
49803
49681
|
});
|
|
49804
|
-
onMounted
|
|
49682
|
+
onMounted(async () => {
|
|
49805
49683
|
await nextTick();
|
|
49806
49684
|
await nextTick();
|
|
49807
49685
|
const { prop, order } = props.defaultSort;
|
|
@@ -50103,7 +49981,7 @@ function useStyles$1(props) {
|
|
|
50103
49981
|
const ns = useNamespace("table");
|
|
50104
49982
|
const getRowStyle = (row, rowIndex) => {
|
|
50105
49983
|
const rowStyle = parent == null ? void 0 : parent.props.rowStyle;
|
|
50106
|
-
if (isFunction$
|
|
49984
|
+
if (isFunction$1(rowStyle)) {
|
|
50107
49985
|
return rowStyle.call(null, {
|
|
50108
49986
|
row,
|
|
50109
49987
|
rowIndex
|
|
@@ -50121,9 +49999,9 @@ function useStyles$1(props) {
|
|
|
50121
49999
|
classes.push(ns.em("row", "striped"));
|
|
50122
50000
|
}
|
|
50123
50001
|
const rowClassName = parent == null ? void 0 : parent.props.rowClassName;
|
|
50124
|
-
if (isString$
|
|
50002
|
+
if (isString$1(rowClassName)) {
|
|
50125
50003
|
classes.push(rowClassName);
|
|
50126
|
-
} else if (isFunction$
|
|
50004
|
+
} else if (isFunction$1(rowClassName)) {
|
|
50127
50005
|
classes.push(rowClassName.call(null, {
|
|
50128
50006
|
row,
|
|
50129
50007
|
rowIndex
|
|
@@ -50134,7 +50012,7 @@ function useStyles$1(props) {
|
|
|
50134
50012
|
const getCellStyle = (rowIndex, columnIndex, row, column) => {
|
|
50135
50013
|
const cellStyle = parent == null ? void 0 : parent.props.cellStyle;
|
|
50136
50014
|
let cellStyles = cellStyle != null ? cellStyle : {};
|
|
50137
|
-
if (isFunction$
|
|
50015
|
+
if (isFunction$1(cellStyle)) {
|
|
50138
50016
|
cellStyles = cellStyle.call(null, {
|
|
50139
50017
|
rowIndex,
|
|
50140
50018
|
columnIndex,
|
|
@@ -50151,9 +50029,9 @@ function useStyles$1(props) {
|
|
|
50151
50029
|
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
|
|
50152
50030
|
const classes = [column.id, column.align, column.className, ...fixedClasses];
|
|
50153
50031
|
const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
|
|
50154
|
-
if (isString$
|
|
50032
|
+
if (isString$1(cellClassName)) {
|
|
50155
50033
|
classes.push(cellClassName);
|
|
50156
|
-
} else if (isFunction$
|
|
50034
|
+
} else if (isFunction$1(cellClassName)) {
|
|
50157
50035
|
classes.push(cellClassName.call(null, {
|
|
50158
50036
|
rowIndex,
|
|
50159
50037
|
columnIndex,
|
|
@@ -50168,7 +50046,7 @@ function useStyles$1(props) {
|
|
|
50168
50046
|
let rowspan = 1;
|
|
50169
50047
|
let colspan = 1;
|
|
50170
50048
|
const fn = parent == null ? void 0 : parent.props.spanMethod;
|
|
50171
|
-
if (isFunction$
|
|
50049
|
+
if (isFunction$1(fn)) {
|
|
50172
50050
|
const result = fn({
|
|
50173
50051
|
row,
|
|
50174
50052
|
column,
|
|
@@ -50838,7 +50716,7 @@ function useStyle(props, layout, store, table) {
|
|
|
50838
50716
|
return;
|
|
50839
50717
|
requestAnimationFrame(syncPosition);
|
|
50840
50718
|
};
|
|
50841
|
-
onMounted
|
|
50719
|
+
onMounted(async () => {
|
|
50842
50720
|
await nextTick();
|
|
50843
50721
|
store.updateColumns();
|
|
50844
50722
|
bindEvents();
|
|
@@ -51037,7 +50915,7 @@ function useKeyRender(table) {
|
|
|
51037
50915
|
});
|
|
51038
50916
|
observer.value.observe(columnsWrapper, config);
|
|
51039
50917
|
};
|
|
51040
|
-
onMounted
|
|
50918
|
+
onMounted(() => {
|
|
51041
50919
|
initWatchDom();
|
|
51042
50920
|
});
|
|
51043
50921
|
onUnmounted(() => {
|
|
@@ -51172,7 +51050,7 @@ const useScrollbar$1 = () => {
|
|
|
51172
51050
|
};
|
|
51173
51051
|
const setScrollPosition = (position, offset) => {
|
|
51174
51052
|
const scrollbar = scrollBarRef.value;
|
|
51175
|
-
if (scrollbar && isNumber
|
|
51053
|
+
if (scrollbar && isNumber(offset) && ["Top", "Left"].includes(position)) {
|
|
51176
51054
|
scrollbar[`setScroll${position}`](offset);
|
|
51177
51055
|
}
|
|
51178
51056
|
};
|
|
@@ -51614,9 +51492,9 @@ const cellForced = {
|
|
|
51614
51492
|
}) {
|
|
51615
51493
|
let i = $index + 1;
|
|
51616
51494
|
const index = column.index;
|
|
51617
|
-
if (isNumber
|
|
51495
|
+
if (isNumber(index)) {
|
|
51618
51496
|
i = $index + index;
|
|
51619
|
-
} else if (isFunction$
|
|
51497
|
+
} else if (isFunction$1(index)) {
|
|
51620
51498
|
i = index($index);
|
|
51621
51499
|
}
|
|
51622
51500
|
return h$1("div", {}, [i]);
|
|
@@ -51907,9 +51785,7 @@ function useRender(props, slots, owner) {
|
|
|
51907
51785
|
}
|
|
51908
51786
|
};
|
|
51909
51787
|
const setColumnRenders = (column) => {
|
|
51910
|
-
if (props.renderHeader) {
|
|
51911
|
-
debugWarn("TableColumn", "Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.");
|
|
51912
|
-
} else if (column.type !== "selection") {
|
|
51788
|
+
if (props.renderHeader) ; else if (column.type !== "selection") {
|
|
51913
51789
|
column.renderHeader = (scope) => {
|
|
51914
51790
|
instance.columnConfig.value["label"];
|
|
51915
51791
|
if (slots.header) {
|
|
@@ -52151,7 +52027,7 @@ var ElTableColumn$1 = defineComponent({
|
|
|
52151
52027
|
registerNormalWatchers();
|
|
52152
52028
|
registerComplexWatchers();
|
|
52153
52029
|
});
|
|
52154
|
-
onMounted
|
|
52030
|
+
onMounted(() => {
|
|
52155
52031
|
var _a, _b;
|
|
52156
52032
|
const parent2 = columnOrTableParent.value;
|
|
52157
52033
|
const children = isSubColumn.value ? (_a = parent2.vnode.el) == null ? void 0 : _a.children : (_b = parent2.refs.hiddenColumns) == null ? void 0 : _b.children;
|
|
@@ -52184,7 +52060,7 @@ var ElTableColumn$1 = defineComponent({
|
|
|
52184
52060
|
children.push(childNode);
|
|
52185
52061
|
} else if (childNode.type === Fragment && isArray$1(childNode.children)) {
|
|
52186
52062
|
childNode.children.forEach((vnode2) => {
|
|
52187
|
-
if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString$
|
|
52063
|
+
if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString$1(vnode2 == null ? void 0 : vnode2.children)) {
|
|
52188
52064
|
children.push(vnode2);
|
|
52189
52065
|
}
|
|
52190
52066
|
});
|
|
@@ -52415,7 +52291,7 @@ const useRow = (props, {
|
|
|
52415
52291
|
const leftTableHeights = shallowRef({});
|
|
52416
52292
|
const mainTableHeights = shallowRef({});
|
|
52417
52293
|
const rightTableHeights = shallowRef({});
|
|
52418
|
-
const isDynamic = computed(() => isNumber
|
|
52294
|
+
const isDynamic = computed(() => isNumber(props.estimatedRowHeight));
|
|
52419
52295
|
function onRowsRendered(params) {
|
|
52420
52296
|
var _a;
|
|
52421
52297
|
(_a = props.onRowsRendered) == null ? void 0 : _a.call(props, params);
|
|
@@ -52576,7 +52452,7 @@ const sum = (listLike) => {
|
|
|
52576
52452
|
return isArray$1(listLike) ? listLike.reduce(sumReducer, 0) : listLike;
|
|
52577
52453
|
};
|
|
52578
52454
|
const tryCall = (fLike, params, defaultRet = {}) => {
|
|
52579
|
-
return isFunction$
|
|
52455
|
+
return isFunction$1(fLike) ? fLike(params) : fLike != null ? fLike : defaultRet;
|
|
52580
52456
|
};
|
|
52581
52457
|
const enforceUnit = (style) => {
|
|
52582
52458
|
["width", "maxWidth", "minWidth", "height"].forEach((key) => {
|
|
@@ -52611,7 +52487,7 @@ const useStyles = (props, {
|
|
|
52611
52487
|
const fixedTableHeight = computed(() => {
|
|
52612
52488
|
const { maxHeight } = props;
|
|
52613
52489
|
const tableHeight = unref(mainTableHeight);
|
|
52614
|
-
if (isNumber
|
|
52490
|
+
if (isNumber(maxHeight) && maxHeight > 0)
|
|
52615
52491
|
return tableHeight;
|
|
52616
52492
|
const totalHeight = unref(rowsHeight) + unref(headerHeight) + unref(fixedRowsHeight);
|
|
52617
52493
|
return Math.min(tableHeight, totalHeight);
|
|
@@ -52660,7 +52536,7 @@ const useAutoResize = (props) => {
|
|
|
52660
52536
|
const width$ = ref(0);
|
|
52661
52537
|
const height$ = ref(0);
|
|
52662
52538
|
let resizerStopper;
|
|
52663
|
-
onMounted
|
|
52539
|
+
onMounted(() => {
|
|
52664
52540
|
resizerStopper = useResizeObserver(sizer, ([entry]) => {
|
|
52665
52541
|
const { width, height } = entry.contentRect;
|
|
52666
52542
|
const { paddingLeft, paddingRight, paddingTop, paddingBottom } = getComputedStyle(entry.target);
|
|
@@ -52747,7 +52623,7 @@ function useTable(props) {
|
|
|
52747
52623
|
const rowsHeight = computed(() => {
|
|
52748
52624
|
const { estimatedRowHeight, rowHeight } = props;
|
|
52749
52625
|
const _data = unref(data);
|
|
52750
|
-
if (isNumber
|
|
52626
|
+
if (isNumber(estimatedRowHeight)) {
|
|
52751
52627
|
return Object.values(unref(rowHeights)).reduce((acc, curr) => acc + curr, 0);
|
|
52752
52628
|
}
|
|
52753
52629
|
return _data.length * rowHeight;
|
|
@@ -53257,7 +53133,7 @@ const useTableRow = (props) => {
|
|
|
53257
53133
|
const measured = ref(false);
|
|
53258
53134
|
const rowRef = ref();
|
|
53259
53135
|
const measurable = computed(() => {
|
|
53260
|
-
return isNumber
|
|
53136
|
+
return isNumber(props.estimatedRowHeight) && props.rowIndex >= 0;
|
|
53261
53137
|
});
|
|
53262
53138
|
const doMeasure = (isInit = false) => {
|
|
53263
53139
|
const $rowRef = unref(rowRef);
|
|
@@ -53296,7 +53172,7 @@ const useTableRow = (props) => {
|
|
|
53296
53172
|
const handlers = props.rowEventHandlers || {};
|
|
53297
53173
|
const eventHandlers2 = {};
|
|
53298
53174
|
Object.entries(handlers).forEach(([eventName, handler]) => {
|
|
53299
|
-
if (isFunction$
|
|
53175
|
+
if (isFunction$1(handler)) {
|
|
53300
53176
|
eventHandlers2[eventName] = (event) => {
|
|
53301
53177
|
handler({
|
|
53302
53178
|
event,
|
|
@@ -53347,7 +53223,7 @@ const useTableRow = (props) => {
|
|
|
53347
53223
|
rowKey
|
|
53348
53224
|
});
|
|
53349
53225
|
};
|
|
53350
|
-
onMounted
|
|
53226
|
+
onMounted(() => {
|
|
53351
53227
|
if (unref(measurable)) {
|
|
53352
53228
|
doMeasure(true);
|
|
53353
53229
|
}
|
|
@@ -53571,7 +53447,7 @@ const useTableGrid = (props) => {
|
|
|
53571
53447
|
}
|
|
53572
53448
|
watch(() => props.bodyWidth, () => {
|
|
53573
53449
|
var _a;
|
|
53574
|
-
if (isNumber
|
|
53450
|
+
if (isNumber(props.estimatedRowHeight))
|
|
53575
53451
|
(_a = bodyRef.value) == null ? void 0 : _a.resetAfter({
|
|
53576
53452
|
columnIndex: 0
|
|
53577
53453
|
}, false);
|
|
@@ -53657,7 +53533,7 @@ const TableGrid = defineComponent({
|
|
|
53657
53533
|
getRowHeight,
|
|
53658
53534
|
onScroll
|
|
53659
53535
|
} = props;
|
|
53660
|
-
const isDynamicRowEnabled = isNumber
|
|
53536
|
+
const isDynamicRowEnabled = isNumber(estimatedRowHeight);
|
|
53661
53537
|
const Grid = isDynamicRowEnabled ? DynamicSizeGrid$1 : FixedSizeGrid$1;
|
|
53662
53538
|
const _headerHeight = unref(headerHeight);
|
|
53663
53539
|
return createVNode("div", {
|
|
@@ -53888,7 +53764,7 @@ const CellRenderer = ({
|
|
|
53888
53764
|
dataKey,
|
|
53889
53765
|
dataGetter
|
|
53890
53766
|
} = column;
|
|
53891
|
-
const cellData = isFunction$
|
|
53767
|
+
const cellData = isFunction$1(dataGetter) ? dataGetter({
|
|
53892
53768
|
columns,
|
|
53893
53769
|
column,
|
|
53894
53770
|
columnIndex,
|
|
@@ -54386,7 +54262,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
54386
54262
|
const props = __props;
|
|
54387
54263
|
const rootTabs = inject(tabsRootContextKey);
|
|
54388
54264
|
if (!rootTabs)
|
|
54389
|
-
throwError
|
|
54265
|
+
throwError(COMPONENT_NAME$4, "<el-tabs><el-tab-bar /></el-tabs>");
|
|
54390
54266
|
const ns = useNamespace("tabs");
|
|
54391
54267
|
const barRef = ref();
|
|
54392
54268
|
const barStyle = ref();
|
|
@@ -54496,7 +54372,7 @@ const TabNav = defineComponent({
|
|
|
54496
54372
|
}) {
|
|
54497
54373
|
const rootTabs = inject(tabsRootContextKey);
|
|
54498
54374
|
if (!rootTabs)
|
|
54499
|
-
throwError
|
|
54375
|
+
throwError(COMPONENT_NAME$3, `<el-tabs><tab-nav /></el-tabs>`);
|
|
54500
54376
|
const ns = useNamespace("tabs");
|
|
54501
54377
|
const visibility = useDocumentVisibility();
|
|
54502
54378
|
const focused = useWindowFocus();
|
|
@@ -54676,7 +54552,7 @@ const TabNav = defineComponent({
|
|
|
54676
54552
|
}
|
|
54677
54553
|
});
|
|
54678
54554
|
useResizeObserver(el$, update);
|
|
54679
|
-
onMounted
|
|
54555
|
+
onMounted(() => setTimeout(() => scrollToActiveTab(), 0));
|
|
54680
54556
|
onUpdated(() => update());
|
|
54681
54557
|
expose({
|
|
54682
54558
|
scrollToActiveTab,
|
|
@@ -54789,7 +54665,7 @@ const tabsProps = buildProps({
|
|
|
54789
54665
|
default: 0
|
|
54790
54666
|
}
|
|
54791
54667
|
});
|
|
54792
|
-
const isPaneName = (value) => isString$
|
|
54668
|
+
const isPaneName = (value) => isString$1(value) || isNumber(value);
|
|
54793
54669
|
const tabsEmits = {
|
|
54794
54670
|
[UPDATE_MODEL_EVENT]: (name) => isPaneName(name),
|
|
54795
54671
|
tabClick: (pane, ev) => ev instanceof Event,
|
|
@@ -54965,7 +54841,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
54965
54841
|
const slots = useSlots();
|
|
54966
54842
|
const tabsRoot = inject(tabsRootContextKey);
|
|
54967
54843
|
if (!tabsRoot)
|
|
54968
|
-
throwError
|
|
54844
|
+
throwError(COMPONENT_NAME$2, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
54969
54845
|
const ns = useNamespace("tab-pane");
|
|
54970
54846
|
const paneRef = ref();
|
|
54971
54847
|
const index = ref();
|
|
@@ -55101,7 +54977,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
55101
54977
|
(_g = textRef.value) == null ? void 0 : _g.removeAttribute("title");
|
|
55102
54978
|
}
|
|
55103
54979
|
};
|
|
55104
|
-
onMounted
|
|
54980
|
+
onMounted(bindTitle);
|
|
55105
54981
|
onUpdated(bindTitle);
|
|
55106
54982
|
return (_ctx, _cache) => {
|
|
55107
54983
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
@@ -55593,7 +55469,7 @@ const useCheck$1 = (props, panelState, emit) => {
|
|
|
55593
55469
|
const propsAlias = usePropsAlias(props);
|
|
55594
55470
|
const filteredData = computed(() => {
|
|
55595
55471
|
return props.data.filter((item) => {
|
|
55596
|
-
if (isFunction$
|
|
55472
|
+
if (isFunction$1(props.filterMethod)) {
|
|
55597
55473
|
return props.filterMethod(panelState.query, item);
|
|
55598
55474
|
} else {
|
|
55599
55475
|
const label = String(item[propsAlias.value.label] || item[propsAlias.value.key]);
|
|
@@ -55908,7 +55784,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
55908
55784
|
watch(() => props.modelValue, () => {
|
|
55909
55785
|
var _a;
|
|
55910
55786
|
if (props.validateEvent) {
|
|
55911
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(
|
|
55787
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
55912
55788
|
}
|
|
55913
55789
|
});
|
|
55914
55790
|
const optionRender = computed(() => (option) => {
|
|
@@ -56097,9 +55973,9 @@ const getPropertyFromData = function(node, prop) {
|
|
|
56097
55973
|
const props = node.store.props;
|
|
56098
55974
|
const data = node.data || {};
|
|
56099
55975
|
const config = props[prop];
|
|
56100
|
-
if (isFunction$
|
|
55976
|
+
if (isFunction$1(config)) {
|
|
56101
55977
|
return config(data, node);
|
|
56102
|
-
} else if (isString$
|
|
55978
|
+
} else if (isString$1(config)) {
|
|
56103
55979
|
return data[config];
|
|
56104
55980
|
} else if (isUndefined(config)) {
|
|
56105
55981
|
const dataProp = data[prop];
|
|
@@ -56887,7 +56763,7 @@ function useDragNodeHandler({
|
|
|
56887
56763
|
const treeNodeDragStart = ({ event, treeNode }) => {
|
|
56888
56764
|
if (!event.dataTransfer)
|
|
56889
56765
|
return;
|
|
56890
|
-
if (isFunction$
|
|
56766
|
+
if (isFunction$1(props.allowDrag) && !props.allowDrag(treeNode.node)) {
|
|
56891
56767
|
event.preventDefault();
|
|
56892
56768
|
return false;
|
|
56893
56769
|
}
|
|
@@ -56914,7 +56790,7 @@ function useDragNodeHandler({
|
|
|
56914
56790
|
let dropInner = true;
|
|
56915
56791
|
let dropNext = true;
|
|
56916
56792
|
let userAllowDropInner = true;
|
|
56917
|
-
if (isFunction$
|
|
56793
|
+
if (isFunction$1(props.allowDrop)) {
|
|
56918
56794
|
dropPrev = props.allowDrop(draggingNode.node, dropNode.node, "prev");
|
|
56919
56795
|
userAllowDropInner = dropInner = props.allowDrop(draggingNode.node, dropNode.node, "inner");
|
|
56920
56796
|
dropNext = props.allowDrop(draggingNode.node, dropNode.node, "next");
|
|
@@ -57070,9 +56946,6 @@ const _sfc_main$o = defineComponent({
|
|
|
57070
56946
|
const dragEvents = inject(dragEventsKey);
|
|
57071
56947
|
const instance = getCurrentInstance();
|
|
57072
56948
|
provide(NODE_INSTANCE_INJECTION_KEY, instance);
|
|
57073
|
-
if (!tree) {
|
|
57074
|
-
debugWarn("Tree", "Can not find node's tree.");
|
|
57075
|
-
}
|
|
57076
56949
|
if (props.node.expanded) {
|
|
57077
56950
|
expanded.value = true;
|
|
57078
56951
|
childNodeRendered.value = true;
|
|
@@ -57107,13 +56980,13 @@ const _sfc_main$o = defineComponent({
|
|
|
57107
56980
|
return {};
|
|
57108
56981
|
}
|
|
57109
56982
|
let className;
|
|
57110
|
-
if (isFunction$
|
|
56983
|
+
if (isFunction$1(nodeClassFunc)) {
|
|
57111
56984
|
const { data } = node;
|
|
57112
56985
|
className = nodeClassFunc(data, node);
|
|
57113
56986
|
} else {
|
|
57114
56987
|
className = nodeClassFunc;
|
|
57115
56988
|
}
|
|
57116
|
-
if (isString$
|
|
56989
|
+
if (isString$1(className)) {
|
|
57117
56990
|
return { [className]: true };
|
|
57118
56991
|
} else {
|
|
57119
56992
|
return className;
|
|
@@ -57344,7 +57217,7 @@ var ElTreeNode$1 = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
|
|
|
57344
57217
|
|
|
57345
57218
|
function useKeydown({ el$ }, store) {
|
|
57346
57219
|
const ns = useNamespace("tree");
|
|
57347
|
-
onMounted
|
|
57220
|
+
onMounted(() => {
|
|
57348
57221
|
initTabIndex();
|
|
57349
57222
|
});
|
|
57350
57223
|
onUpdated(() => {
|
|
@@ -57793,7 +57666,7 @@ const useSelect = (props, { attrs, emit }, {
|
|
|
57793
57666
|
return;
|
|
57794
57667
|
}
|
|
57795
57668
|
};
|
|
57796
|
-
onMounted
|
|
57669
|
+
onMounted(() => {
|
|
57797
57670
|
useEventListener(() => {
|
|
57798
57671
|
var _a;
|
|
57799
57672
|
return (_a = select.value) == null ? void 0 : _a.$el;
|
|
@@ -57935,7 +57808,7 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
57935
57808
|
const getNodeValByProp = (prop, data) => {
|
|
57936
57809
|
var _a;
|
|
57937
57810
|
const propVal = propsMap.value[prop];
|
|
57938
|
-
if (isFunction$
|
|
57811
|
+
if (isFunction$1(propVal)) {
|
|
57939
57812
|
return propVal(data, (_a = tree.value) == null ? void 0 : _a.getNode(getNodeValByProp("value", data)));
|
|
57940
57813
|
} else {
|
|
57941
57814
|
return data[propVal];
|
|
@@ -58109,7 +57982,7 @@ const _sfc_main$m = defineComponent({
|
|
|
58109
57982
|
});
|
|
58110
57983
|
const methods = reactive({});
|
|
58111
57984
|
expose(methods);
|
|
58112
|
-
onMounted
|
|
57985
|
+
onMounted(() => {
|
|
58113
57986
|
Object.assign(methods, {
|
|
58114
57987
|
...pick(tree.value, [
|
|
58115
57988
|
"filter",
|
|
@@ -58477,7 +58350,7 @@ function useFilter(props, tree) {
|
|
|
58477
58350
|
const hiddenNodeKeySet = ref(/* @__PURE__ */ new Set([]));
|
|
58478
58351
|
const hiddenExpandIconKeySet = ref(/* @__PURE__ */ new Set([]));
|
|
58479
58352
|
const filterable = computed(() => {
|
|
58480
|
-
return isFunction$
|
|
58353
|
+
return isFunction$1(props.filterMethod);
|
|
58481
58354
|
});
|
|
58482
58355
|
function doFilter(query) {
|
|
58483
58356
|
var _a;
|
|
@@ -58869,13 +58742,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
58869
58742
|
if (!nodeClassFunc)
|
|
58870
58743
|
return {};
|
|
58871
58744
|
let className;
|
|
58872
|
-
if (isFunction$
|
|
58745
|
+
if (isFunction$1(nodeClassFunc)) {
|
|
58873
58746
|
const { data } = node;
|
|
58874
58747
|
className = nodeClassFunc(data, node);
|
|
58875
58748
|
} else {
|
|
58876
58749
|
className = nodeClassFunc;
|
|
58877
58750
|
}
|
|
58878
|
-
return isString$
|
|
58751
|
+
return isString$1(className) ? { [className]: true } : className;
|
|
58879
58752
|
};
|
|
58880
58753
|
const handleClick = (e) => {
|
|
58881
58754
|
emit("click", props.node, e);
|
|
@@ -59100,7 +58973,7 @@ const ElTreeV2 = withInstall(TreeV2);
|
|
|
59100
58973
|
|
|
59101
58974
|
const uploadContextKey = Symbol("uploadContextKey");
|
|
59102
58975
|
|
|
59103
|
-
const SCOPE$
|
|
58976
|
+
const SCOPE$2 = "ElUpload";
|
|
59104
58977
|
class UploadAjaxError extends Error {
|
|
59105
58978
|
constructor(message, status, method, url) {
|
|
59106
58979
|
super(message);
|
|
@@ -59134,7 +59007,7 @@ function getBody(xhr) {
|
|
|
59134
59007
|
}
|
|
59135
59008
|
const ajaxUpload = (option) => {
|
|
59136
59009
|
if (typeof XMLHttpRequest === "undefined")
|
|
59137
|
-
throwError
|
|
59010
|
+
throwError(SCOPE$2, "XMLHttpRequest is undefined");
|
|
59138
59011
|
const xhr = new XMLHttpRequest();
|
|
59139
59012
|
const action = option.action;
|
|
59140
59013
|
if (xhr.upload) {
|
|
@@ -59495,7 +59368,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
59495
59368
|
setup(__props, { emit }) {
|
|
59496
59369
|
const uploaderContext = inject(uploadContextKey);
|
|
59497
59370
|
if (!uploaderContext) {
|
|
59498
|
-
throwError
|
|
59371
|
+
throwError(COMPONENT_NAME$1, "usage: <el-upload><el-upload-dragger /></el-upload>");
|
|
59499
59372
|
}
|
|
59500
59373
|
const ns = useNamespace("upload");
|
|
59501
59374
|
const dragover = ref(false);
|
|
@@ -59640,7 +59513,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
59640
59513
|
}), beforeData);
|
|
59641
59514
|
};
|
|
59642
59515
|
const resolveData = async (data, rawFile) => {
|
|
59643
|
-
if (isFunction$
|
|
59516
|
+
if (isFunction$1(data)) {
|
|
59644
59517
|
return data(rawFile);
|
|
59645
59518
|
}
|
|
59646
59519
|
return data;
|
|
@@ -59761,7 +59634,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
59761
59634
|
});
|
|
59762
59635
|
var UploadContent = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "upload-content.vue"]]);
|
|
59763
59636
|
|
|
59764
|
-
const SCOPE$
|
|
59637
|
+
const SCOPE$1 = "ElUpload";
|
|
59765
59638
|
const revokeFileObjectURL = (file) => {
|
|
59766
59639
|
var _a;
|
|
59767
59640
|
if ((_a = file.url) == null ? void 0 : _a.startsWith("blob:")) {
|
|
@@ -59826,7 +59699,7 @@ const useHandlers = (props, uploadRef) => {
|
|
|
59826
59699
|
try {
|
|
59827
59700
|
uploadFile.url = URL.createObjectURL(file);
|
|
59828
59701
|
} catch (err) {
|
|
59829
|
-
debugWarn(SCOPE$
|
|
59702
|
+
debugWarn(SCOPE$1, err.message);
|
|
59830
59703
|
props.onError(err, uploadFile, uploadFiles.value);
|
|
59831
59704
|
}
|
|
59832
59705
|
}
|
|
@@ -59836,7 +59709,7 @@ const useHandlers = (props, uploadRef) => {
|
|
|
59836
59709
|
const handleRemove = async (file) => {
|
|
59837
59710
|
const uploadFile = file instanceof File ? getFile(file) : file;
|
|
59838
59711
|
if (!uploadFile)
|
|
59839
|
-
throwError
|
|
59712
|
+
throwError(SCOPE$1, "file to be removed not found");
|
|
59840
59713
|
const doRemove = (file2) => {
|
|
59841
59714
|
abort(file2);
|
|
59842
59715
|
removeFile(file2);
|
|
@@ -60344,7 +60217,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
60344
60217
|
}
|
|
60345
60218
|
}
|
|
60346
60219
|
};
|
|
60347
|
-
onMounted
|
|
60220
|
+
onMounted(() => {
|
|
60348
60221
|
renderWatermark();
|
|
60349
60222
|
});
|
|
60350
60223
|
watch(() => props, () => {
|
|
@@ -61089,7 +60962,7 @@ function getUAString() {
|
|
|
61089
60962
|
function isHTMLElement(value) {
|
|
61090
60963
|
return value instanceof getWindow(value).HTMLElement;
|
|
61091
60964
|
}
|
|
61092
|
-
function isElement
|
|
60965
|
+
function isElement(value) {
|
|
61093
60966
|
return value instanceof getWindow(value).Element;
|
|
61094
60967
|
}
|
|
61095
60968
|
function isNode(value) {
|
|
@@ -61159,7 +61032,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
|
61159
61032
|
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
61160
61033
|
}
|
|
61161
61034
|
|
|
61162
|
-
const win = isElement
|
|
61035
|
+
const win = isElement(element) ? getWindow(element) : window;
|
|
61163
61036
|
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
61164
61037
|
const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
|
|
61165
61038
|
const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
|
|
@@ -61182,7 +61055,7 @@ function getDocumentElement(node) {
|
|
|
61182
61055
|
}
|
|
61183
61056
|
|
|
61184
61057
|
function getNodeScroll(element) {
|
|
61185
|
-
if (isElement
|
|
61058
|
+
if (isElement(element)) {
|
|
61186
61059
|
return {
|
|
61187
61060
|
scrollLeft: element.scrollLeft,
|
|
61188
61061
|
scrollTop: element.scrollTop
|
|
@@ -61536,7 +61409,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
|
61536
61409
|
return rectToClientRect(getViewportRect(element, strategy));
|
|
61537
61410
|
}
|
|
61538
61411
|
|
|
61539
|
-
if (isElement
|
|
61412
|
+
if (isElement(clippingParent)) {
|
|
61540
61413
|
return getInnerBoundingClientRect(clippingParent, strategy);
|
|
61541
61414
|
}
|
|
61542
61415
|
|
|
@@ -61551,12 +61424,12 @@ function getClippingAncestors(element) {
|
|
|
61551
61424
|
const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);
|
|
61552
61425
|
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
61553
61426
|
|
|
61554
|
-
if (!isElement
|
|
61427
|
+
if (!isElement(clipperElement)) {
|
|
61555
61428
|
return [];
|
|
61556
61429
|
} // @ts-ignore isElement check ensures we return Array<Element>
|
|
61557
61430
|
|
|
61558
61431
|
|
|
61559
|
-
return clippingAncestors.filter(clippingAncestors => isElement
|
|
61432
|
+
return clippingAncestors.filter(clippingAncestors => isElement(clippingAncestors) && contains(clippingAncestors, clipperElement) && getNodeName(clippingAncestors) !== 'body');
|
|
61560
61433
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
61561
61434
|
// clipping ancestors
|
|
61562
61435
|
|
|
@@ -61590,7 +61463,7 @@ function getClippingRect(_ref) {
|
|
|
61590
61463
|
const platform = {
|
|
61591
61464
|
getClippingRect,
|
|
61592
61465
|
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
61593
|
-
isElement
|
|
61466
|
+
isElement,
|
|
61594
61467
|
getDimensions,
|
|
61595
61468
|
getOffsetParent,
|
|
61596
61469
|
getDocumentElement,
|
|
@@ -61629,7 +61502,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
61629
61502
|
} = options;
|
|
61630
61503
|
const ancestorScroll = _ancestorScroll && !animationFrame;
|
|
61631
61504
|
const ancestorResize = _ancestorResize && !animationFrame;
|
|
61632
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(isElement
|
|
61505
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)] : [];
|
|
61633
61506
|
ancestors.forEach(ancestor => {
|
|
61634
61507
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
61635
61508
|
passive: true
|
|
@@ -61647,7 +61520,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
61647
61520
|
|
|
61648
61521
|
initialUpdate = false;
|
|
61649
61522
|
});
|
|
61650
|
-
isElement
|
|
61523
|
+
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
61651
61524
|
observer.observe(floating);
|
|
61652
61525
|
}
|
|
61653
61526
|
|
|
@@ -61701,9 +61574,9 @@ const useTarget = (target, open, gap, mergedMask, scrollIntoViewOptions) => {
|
|
|
61701
61574
|
const posInfo = ref(null);
|
|
61702
61575
|
const getTargetEl = () => {
|
|
61703
61576
|
let targetEl;
|
|
61704
|
-
if (isString$
|
|
61577
|
+
if (isString$1(target.value)) {
|
|
61705
61578
|
targetEl = document.querySelector(target.value);
|
|
61706
|
-
} else if (isFunction$
|
|
61579
|
+
} else if (isFunction$1(target.value)) {
|
|
61707
61580
|
targetEl = target.value();
|
|
61708
61581
|
} else {
|
|
61709
61582
|
targetEl = target.value;
|
|
@@ -61728,7 +61601,7 @@ const useTarget = (target, open, gap, mergedMask, scrollIntoViewOptions) => {
|
|
|
61728
61601
|
radius: 0
|
|
61729
61602
|
};
|
|
61730
61603
|
};
|
|
61731
|
-
onMounted
|
|
61604
|
+
onMounted(() => {
|
|
61732
61605
|
watch([open, target], () => {
|
|
61733
61606
|
updatePosInfo();
|
|
61734
61607
|
}, {
|
|
@@ -61858,7 +61731,7 @@ const useFloating = (referenceRef, contentRef, arrowRef, placement, strategy, of
|
|
|
61858
61731
|
};
|
|
61859
61732
|
});
|
|
61860
61733
|
let cleanup;
|
|
61861
|
-
onMounted
|
|
61734
|
+
onMounted(() => {
|
|
61862
61735
|
const referenceEl = unref(referenceRef);
|
|
61863
61736
|
const contentEl = unref(contentRef);
|
|
61864
61737
|
if (referenceEl && contentEl) {
|
|
@@ -62179,10 +62052,10 @@ const tourProps = buildProps({
|
|
|
62179
62052
|
});
|
|
62180
62053
|
const tourEmits = {
|
|
62181
62054
|
[UPDATE_MODEL_EVENT]: (value) => isBoolean(value),
|
|
62182
|
-
["update:current"]: (current) => isNumber
|
|
62183
|
-
close: (current) => isNumber
|
|
62055
|
+
["update:current"]: (current) => isNumber(current),
|
|
62056
|
+
close: (current) => isNumber(current),
|
|
62184
62057
|
finish: () => true,
|
|
62185
|
-
change: (current) => isNumber
|
|
62058
|
+
change: (current) => isNumber(current)
|
|
62186
62059
|
};
|
|
62187
62060
|
|
|
62188
62061
|
const __default__$b = defineComponent({
|
|
@@ -62459,7 +62332,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
62459
62332
|
break;
|
|
62460
62333
|
}
|
|
62461
62334
|
};
|
|
62462
|
-
onMounted
|
|
62335
|
+
onMounted(() => {
|
|
62463
62336
|
window.addEventListener("keydown", handleKeydown);
|
|
62464
62337
|
});
|
|
62465
62338
|
onBeforeUnmount(() => {
|
|
@@ -62593,8 +62466,8 @@ const anchorProps = buildProps({
|
|
|
62593
62466
|
selectScrollTop: Boolean
|
|
62594
62467
|
});
|
|
62595
62468
|
const anchorEmits = {
|
|
62596
|
-
change: (href) => isString$
|
|
62597
|
-
click: (e, href) => e instanceof MouseEvent && (isString$
|
|
62469
|
+
change: (href) => isString$1(href),
|
|
62470
|
+
click: (e, href) => e instanceof MouseEvent && (isString$1(href) || isUndefined(href))
|
|
62598
62471
|
};
|
|
62599
62472
|
|
|
62600
62473
|
const anchorKey = Symbol("anchor");
|
|
@@ -62753,7 +62626,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
62753
62626
|
var _a;
|
|
62754
62627
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
62755
62628
|
}, updateMarkerStyle);
|
|
62756
|
-
onMounted
|
|
62629
|
+
onMounted(() => {
|
|
62757
62630
|
getContainer();
|
|
62758
62631
|
const hash = decodeURIComponent(window.location.hash);
|
|
62759
62632
|
const target = getElement(hash);
|
|
@@ -62842,7 +62715,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
62842
62715
|
}
|
|
62843
62716
|
});
|
|
62844
62717
|
});
|
|
62845
|
-
onMounted
|
|
62718
|
+
onMounted(() => {
|
|
62846
62719
|
const { href } = props;
|
|
62847
62720
|
if (href) {
|
|
62848
62721
|
addLink({
|
|
@@ -62926,8 +62799,8 @@ const segmentedProps = buildProps({
|
|
|
62926
62799
|
...useAriaProps(["ariaLabel"])
|
|
62927
62800
|
});
|
|
62928
62801
|
const segmentedEmits = {
|
|
62929
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
62930
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
62802
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
|
|
62803
|
+
[CHANGE_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
|
|
62931
62804
|
};
|
|
62932
62805
|
|
|
62933
62806
|
const __default__$7 = defineComponent({
|
|
@@ -63038,7 +62911,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
63038
62911
|
var _a;
|
|
63039
62912
|
updateSelect();
|
|
63040
62913
|
if (props.validateEvent) {
|
|
63041
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(
|
|
62914
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
63042
62915
|
}
|
|
63043
62916
|
}, {
|
|
63044
62917
|
flush: "post"
|
|
@@ -63250,9 +63123,9 @@ const mentionProps = buildProps({
|
|
|
63250
63123
|
type: definePropType([String, Array]),
|
|
63251
63124
|
default: "@",
|
|
63252
63125
|
validator: (val) => {
|
|
63253
|
-
if (isString$
|
|
63126
|
+
if (isString$1(val))
|
|
63254
63127
|
return val.length === 1;
|
|
63255
|
-
return val.every((v) => isString$
|
|
63128
|
+
return val.every((v) => isString$1(v) && v.length === 1);
|
|
63256
63129
|
}
|
|
63257
63130
|
},
|
|
63258
63131
|
split: {
|
|
@@ -63266,7 +63139,7 @@ const mentionProps = buildProps({
|
|
|
63266
63139
|
validator: (val) => {
|
|
63267
63140
|
if (val === false)
|
|
63268
63141
|
return true;
|
|
63269
|
-
return isFunction$
|
|
63142
|
+
return isFunction$1(val);
|
|
63270
63143
|
}
|
|
63271
63144
|
},
|
|
63272
63145
|
placement: {
|
|
@@ -63296,11 +63169,11 @@ const mentionProps = buildProps({
|
|
|
63296
63169
|
}
|
|
63297
63170
|
});
|
|
63298
63171
|
const mentionEmits = {
|
|
63299
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
63300
|
-
"whole-remove": (pattern, prefix) => isString$
|
|
63301
|
-
input: (value) => isString$
|
|
63302
|
-
search: (pattern, prefix) => isString$
|
|
63303
|
-
select: (option, prefix) => isObject$1(option) && isString$
|
|
63172
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$1(value),
|
|
63173
|
+
"whole-remove": (pattern, prefix) => isString$1(pattern) && isString$1(prefix),
|
|
63174
|
+
input: (value) => isString$1(value),
|
|
63175
|
+
search: (pattern, prefix) => isString$1(pattern) && isString$1(prefix),
|
|
63176
|
+
select: (option, prefix) => isObject$1(option) && isString$1(prefix),
|
|
63304
63177
|
focus: (evt) => evt instanceof FocusEvent,
|
|
63305
63178
|
blur: (evt) => evt instanceof FocusEvent
|
|
63306
63179
|
};
|
|
@@ -63321,7 +63194,7 @@ const mentionDropdownProps = buildProps({
|
|
|
63321
63194
|
ariaLabel: String
|
|
63322
63195
|
});
|
|
63323
63196
|
const mentionDropdownEmits = {
|
|
63324
|
-
select: (option) => isString$
|
|
63197
|
+
select: (option) => isString$1(option.value)
|
|
63325
63198
|
};
|
|
63326
63199
|
|
|
63327
63200
|
const __default__$6 = defineComponent({
|
|
@@ -63581,7 +63454,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
63581
63454
|
return;
|
|
63582
63455
|
const inputValue = inputEl.value;
|
|
63583
63456
|
const matchOption = options.value.find((item) => item.value === pattern);
|
|
63584
|
-
const isWhole = isFunction$
|
|
63457
|
+
const isWhole = isFunction$1(props.checkIsWhole) ? props.checkIsWhole(pattern, prefix) : matchOption;
|
|
63585
63458
|
if (isWhole && splitIndex !== -1 && splitIndex + 1 === selectionEnd) {
|
|
63586
63459
|
event.preventDefault();
|
|
63587
63460
|
const newValue = inputValue.slice(0, prefixIndex) + inputValue.slice(splitIndex + 1);
|
|
@@ -63796,10 +63669,10 @@ function getPx(str) {
|
|
|
63796
63669
|
return Number(str.slice(0, -2));
|
|
63797
63670
|
}
|
|
63798
63671
|
function isPct(itemSize) {
|
|
63799
|
-
return isString$
|
|
63672
|
+
return isString$1(itemSize) && itemSize.endsWith("%");
|
|
63800
63673
|
}
|
|
63801
63674
|
function isPx(itemSize) {
|
|
63802
|
-
return isString$
|
|
63675
|
+
return isString$1(itemSize) && itemSize.endsWith("px");
|
|
63803
63676
|
}
|
|
63804
63677
|
function useSize(panels, containerSize) {
|
|
63805
63678
|
const propSizes = computed(() => panels.value.map((i) => i.size));
|
|
@@ -64261,7 +64134,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
64261
64134
|
const ns = useNamespace("splitter-panel");
|
|
64262
64135
|
const splitterContext = inject(splitterRootContextKey);
|
|
64263
64136
|
if (!splitterContext)
|
|
64264
|
-
throwError
|
|
64137
|
+
throwError(COMPONENT_NAME, "usage: <el-splitter><el-splitter-panel /></el-splitter/>");
|
|
64265
64138
|
const { panels, layout, lazy, containerSize, pxSizes } = toRefs(splitterContext);
|
|
64266
64139
|
const {
|
|
64267
64140
|
registerPanel,
|
|
@@ -64517,7 +64390,7 @@ var Components = [
|
|
|
64517
64390
|
ElSplitterPanel
|
|
64518
64391
|
];
|
|
64519
64392
|
|
|
64520
|
-
const SCOPE
|
|
64393
|
+
const SCOPE = "ElInfiniteScroll";
|
|
64521
64394
|
const CHECK_INTERVAL = 50;
|
|
64522
64395
|
const DEFAULT_DELAY = 200;
|
|
64523
64396
|
const DEFAULT_DISTANCE = 0;
|
|
@@ -64552,18 +64425,18 @@ const getScrollOptions = (el, instance) => {
|
|
|
64552
64425
|
}, {});
|
|
64553
64426
|
};
|
|
64554
64427
|
const destroyObserver = (el) => {
|
|
64555
|
-
const { observer } = el[SCOPE
|
|
64428
|
+
const { observer } = el[SCOPE];
|
|
64556
64429
|
if (observer) {
|
|
64557
64430
|
observer.disconnect();
|
|
64558
|
-
delete el[SCOPE
|
|
64431
|
+
delete el[SCOPE].observer;
|
|
64559
64432
|
}
|
|
64560
64433
|
};
|
|
64561
64434
|
const handleScroll = (el, cb) => {
|
|
64562
|
-
const { container, containerEl, instance, observer, lastScrollTop } = el[SCOPE
|
|
64435
|
+
const { container, containerEl, instance, observer, lastScrollTop } = el[SCOPE];
|
|
64563
64436
|
const { disabled, distance } = getScrollOptions(el, instance);
|
|
64564
64437
|
const { clientHeight, scrollHeight, scrollTop } = containerEl;
|
|
64565
64438
|
const delta = scrollTop - lastScrollTop;
|
|
64566
|
-
el[SCOPE
|
|
64439
|
+
el[SCOPE].lastScrollTop = scrollTop;
|
|
64567
64440
|
if (observer || disabled || delta < 0)
|
|
64568
64441
|
return;
|
|
64569
64442
|
let shouldTrigger = false;
|
|
@@ -64579,7 +64452,7 @@ const handleScroll = (el, cb) => {
|
|
|
64579
64452
|
}
|
|
64580
64453
|
};
|
|
64581
64454
|
function checkFull(el, cb) {
|
|
64582
|
-
const { containerEl, instance } = el[SCOPE
|
|
64455
|
+
const { containerEl, instance } = el[SCOPE];
|
|
64583
64456
|
const { disabled } = getScrollOptions(el, instance);
|
|
64584
64457
|
if (disabled || containerEl.clientHeight === 0)
|
|
64585
64458
|
return;
|
|
@@ -64593,14 +64466,14 @@ const InfiniteScroll = {
|
|
|
64593
64466
|
async mounted(el, binding) {
|
|
64594
64467
|
const { instance, value: cb } = binding;
|
|
64595
64468
|
useDeprecated({
|
|
64596
|
-
scope: SCOPE
|
|
64469
|
+
scope: SCOPE,
|
|
64597
64470
|
from: "the directive v-infinite-scroll",
|
|
64598
64471
|
replacement: "the el-scrollbar infinite scroll",
|
|
64599
64472
|
version: "3.0.0",
|
|
64600
64473
|
ref: "https://element-plus.org/en-US/component/scrollbar#infinite-scroll"
|
|
64601
64474
|
}, true);
|
|
64602
|
-
if (!isFunction$
|
|
64603
|
-
throwError
|
|
64475
|
+
if (!isFunction$1(cb)) {
|
|
64476
|
+
throwError(SCOPE, "'v-infinite-scroll' binding value must be a function");
|
|
64604
64477
|
}
|
|
64605
64478
|
await nextTick();
|
|
64606
64479
|
const { delay, immediate } = getScrollOptions(el, instance);
|
|
@@ -64609,7 +64482,7 @@ const InfiniteScroll = {
|
|
|
64609
64482
|
const onScroll = throttle(handleScroll.bind(null, el, cb), delay);
|
|
64610
64483
|
if (!container)
|
|
64611
64484
|
return;
|
|
64612
|
-
el[SCOPE
|
|
64485
|
+
el[SCOPE] = {
|
|
64613
64486
|
instance,
|
|
64614
64487
|
container,
|
|
64615
64488
|
containerEl,
|
|
@@ -64620,24 +64493,24 @@ const InfiniteScroll = {
|
|
|
64620
64493
|
};
|
|
64621
64494
|
if (immediate) {
|
|
64622
64495
|
const observer = new MutationObserver(throttle(checkFull.bind(null, el, cb), CHECK_INTERVAL));
|
|
64623
|
-
el[SCOPE
|
|
64496
|
+
el[SCOPE].observer = observer;
|
|
64624
64497
|
observer.observe(el, { childList: true, subtree: true });
|
|
64625
64498
|
checkFull(el, cb);
|
|
64626
64499
|
}
|
|
64627
64500
|
container.addEventListener("scroll", onScroll);
|
|
64628
64501
|
},
|
|
64629
64502
|
unmounted(el) {
|
|
64630
|
-
if (!el[SCOPE
|
|
64503
|
+
if (!el[SCOPE])
|
|
64631
64504
|
return;
|
|
64632
|
-
const { container, onScroll } = el[SCOPE
|
|
64505
|
+
const { container, onScroll } = el[SCOPE];
|
|
64633
64506
|
container == null ? void 0 : container.removeEventListener("scroll", onScroll);
|
|
64634
64507
|
destroyObserver(el);
|
|
64635
64508
|
},
|
|
64636
64509
|
async updated(el) {
|
|
64637
|
-
if (!el[SCOPE
|
|
64510
|
+
if (!el[SCOPE]) {
|
|
64638
64511
|
await nextTick();
|
|
64639
64512
|
} else {
|
|
64640
|
-
const { containerEl, cb, observer } = el[SCOPE
|
|
64513
|
+
const { containerEl, cb, observer } = el[SCOPE];
|
|
64641
64514
|
if (containerEl.clientHeight && observer) {
|
|
64642
64515
|
checkFull(el, cb);
|
|
64643
64516
|
}
|
|
@@ -64804,7 +64677,7 @@ const Loading = function(options = {}, context) {
|
|
|
64804
64677
|
const resolveOptions = (options) => {
|
|
64805
64678
|
var _a, _b, _c, _d;
|
|
64806
64679
|
let target;
|
|
64807
|
-
if (isString$
|
|
64680
|
+
if (isString$1(options.target)) {
|
|
64808
64681
|
target = (_a = document.querySelector(options.target)) != null ? _a : document.body;
|
|
64809
64682
|
} else {
|
|
64810
64683
|
target = options.target || document.body;
|
|
@@ -64874,7 +64747,7 @@ const createInstance = (el, binding) => {
|
|
|
64874
64747
|
const vm = binding.instance;
|
|
64875
64748
|
const getBindingProp = (key) => isObject$1(binding.value) ? binding.value[key] : void 0;
|
|
64876
64749
|
const resolveExpression = (key) => {
|
|
64877
|
-
const data = isString$
|
|
64750
|
+
const data = isString$1(key) && (vm == null ? void 0 : vm[key]) || key;
|
|
64878
64751
|
return ref(data);
|
|
64879
64752
|
};
|
|
64880
64753
|
const getProp = (name) => resolveExpression(getBindingProp(name) || el.getAttribute(getAttributeName(name)));
|
|
@@ -65152,7 +65025,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
65152
65025
|
close();
|
|
65153
65026
|
}
|
|
65154
65027
|
}
|
|
65155
|
-
onMounted
|
|
65028
|
+
onMounted(() => {
|
|
65156
65029
|
startTimer();
|
|
65157
65030
|
nextZIndex();
|
|
65158
65031
|
visible.value = true;
|
|
@@ -65250,17 +65123,16 @@ const normalizeAppendTo = (normalized) => {
|
|
|
65250
65123
|
const appendTo = normalized.appendTo;
|
|
65251
65124
|
if (!appendTo) {
|
|
65252
65125
|
normalized.appendTo = document.body;
|
|
65253
|
-
} else if (isString$
|
|
65126
|
+
} else if (isString$1(normalized.appendTo)) {
|
|
65254
65127
|
let appendTo2 = document.querySelector(normalized.appendTo);
|
|
65255
|
-
if (!isElement$
|
|
65256
|
-
debugWarn("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
65128
|
+
if (!isElement$2(appendTo2)) {
|
|
65257
65129
|
appendTo2 = document.body;
|
|
65258
65130
|
}
|
|
65259
65131
|
normalized.appendTo = appendTo2;
|
|
65260
65132
|
}
|
|
65261
65133
|
};
|
|
65262
65134
|
const normalizePlacement = (normalized) => {
|
|
65263
|
-
if (!normalized.placement && isString$
|
|
65135
|
+
if (!normalized.placement && isString$1(messageConfig.placement) && messageConfig.placement) {
|
|
65264
65136
|
normalized.placement = messageConfig.placement;
|
|
65265
65137
|
}
|
|
65266
65138
|
if (!normalized.placement) {
|
|
@@ -65272,7 +65144,7 @@ const normalizePlacement = (normalized) => {
|
|
|
65272
65144
|
}
|
|
65273
65145
|
};
|
|
65274
65146
|
const normalizeOptions = (params) => {
|
|
65275
|
-
const options = !params || isString$
|
|
65147
|
+
const options = !params || isString$1(params) || isVNode(params) || isFunction$1(params) ? { message: params } : params;
|
|
65276
65148
|
const normalized = {
|
|
65277
65149
|
...messageDefaults,
|
|
65278
65150
|
...options
|
|
@@ -65282,10 +65154,10 @@ const normalizeOptions = (params) => {
|
|
|
65282
65154
|
if (isBoolean(messageConfig.grouping) && !normalized.grouping) {
|
|
65283
65155
|
normalized.grouping = messageConfig.grouping;
|
|
65284
65156
|
}
|
|
65285
|
-
if (isNumber
|
|
65157
|
+
if (isNumber(messageConfig.duration) && normalized.duration === 3e3) {
|
|
65286
65158
|
normalized.duration = messageConfig.duration;
|
|
65287
65159
|
}
|
|
65288
|
-
if (isNumber
|
|
65160
|
+
if (isNumber(messageConfig.offset) && normalized.offset === 16) {
|
|
65289
65161
|
normalized.offset = messageConfig.offset;
|
|
65290
65162
|
}
|
|
65291
65163
|
if (isBoolean(messageConfig.showClose) && !normalized.showClose) {
|
|
@@ -65321,8 +65193,8 @@ const createMessage = ({ appendTo, ...options }, context) => {
|
|
|
65321
65193
|
render(null, container);
|
|
65322
65194
|
}
|
|
65323
65195
|
};
|
|
65324
|
-
const vnode = createVNode(MessageConstructor, props, isFunction$
|
|
65325
|
-
default: isFunction$
|
|
65196
|
+
const vnode = createVNode(MessageConstructor, props, isFunction$1(props.message) || isVNode(props.message) ? {
|
|
65197
|
+
default: isFunction$1(props.message) ? props.message : () => props.message
|
|
65326
65198
|
} : null);
|
|
65327
65199
|
vnode.appContext = context || message._context;
|
|
65328
65200
|
render(vnode, container);
|
|
@@ -65358,7 +65230,7 @@ const message = (options = {}, context) => {
|
|
|
65358
65230
|
return instance2.handler;
|
|
65359
65231
|
}
|
|
65360
65232
|
}
|
|
65361
|
-
if (isNumber
|
|
65233
|
+
if (isNumber(messageConfig.max) && instances.length >= messageConfig.max) {
|
|
65362
65234
|
return { close: () => void 0 };
|
|
65363
65235
|
}
|
|
65364
65236
|
const instance = createMessage(normalized, context);
|
|
@@ -65557,7 +65429,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
65557
65429
|
const draggable = computed(() => props.draggable);
|
|
65558
65430
|
const overflow = computed(() => props.overflow);
|
|
65559
65431
|
const { isDragging } = useDraggable(rootRef, headerRef, draggable, overflow);
|
|
65560
|
-
onMounted
|
|
65432
|
+
onMounted(async () => {
|
|
65561
65433
|
await nextTick();
|
|
65562
65434
|
if (props.closeOnHashChange) {
|
|
65563
65435
|
window.addEventListener("hashchange", doClose);
|
|
@@ -65610,14 +65482,14 @@ const _sfc_main$1 = defineComponent({
|
|
|
65610
65482
|
return false;
|
|
65611
65483
|
}
|
|
65612
65484
|
const inputValidator = state.inputValidator;
|
|
65613
|
-
if (isFunction$
|
|
65485
|
+
if (isFunction$1(inputValidator)) {
|
|
65614
65486
|
const validateResult = inputValidator(state.inputValue);
|
|
65615
65487
|
if (validateResult === false) {
|
|
65616
65488
|
state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
|
|
65617
65489
|
state.validateError = true;
|
|
65618
65490
|
return false;
|
|
65619
65491
|
}
|
|
65620
|
-
if (isString$
|
|
65492
|
+
if (isString$1(validateResult)) {
|
|
65621
65493
|
state.editorErrorMessage = validateResult;
|
|
65622
65494
|
state.validateError = true;
|
|
65623
65495
|
return false;
|
|
@@ -65874,22 +65746,21 @@ const messageInstance = /* @__PURE__ */ new Map();
|
|
|
65874
65746
|
const getAppendToElement = (props) => {
|
|
65875
65747
|
let appendTo = document.body;
|
|
65876
65748
|
if (props.appendTo) {
|
|
65877
|
-
if (isString$
|
|
65749
|
+
if (isString$1(props.appendTo)) {
|
|
65878
65750
|
appendTo = document.querySelector(props.appendTo);
|
|
65879
65751
|
}
|
|
65880
|
-
if (isElement$
|
|
65752
|
+
if (isElement$2(props.appendTo)) {
|
|
65881
65753
|
appendTo = props.appendTo;
|
|
65882
65754
|
}
|
|
65883
|
-
if (!isElement$
|
|
65884
|
-
debugWarn("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
65755
|
+
if (!isElement$2(appendTo)) {
|
|
65885
65756
|
appendTo = document.body;
|
|
65886
65757
|
}
|
|
65887
65758
|
}
|
|
65888
65759
|
return appendTo;
|
|
65889
65760
|
};
|
|
65890
65761
|
const initInstance = (props, container, appContext = null) => {
|
|
65891
|
-
const vnode = createVNode(MessageBoxConstructor, props, isFunction$
|
|
65892
|
-
default: isFunction$
|
|
65762
|
+
const vnode = createVNode(MessageBoxConstructor, props, isFunction$1(props.message) || isVNode(props.message) ? {
|
|
65763
|
+
default: isFunction$1(props.message) ? props.message : () => props.message
|
|
65893
65764
|
} : null);
|
|
65894
65765
|
vnode.appContext = appContext;
|
|
65895
65766
|
render(vnode, container);
|
|
@@ -65945,7 +65816,7 @@ function MessageBox(options, appContext = null) {
|
|
|
65945
65816
|
if (!isClient)
|
|
65946
65817
|
return Promise.reject();
|
|
65947
65818
|
let callback;
|
|
65948
|
-
if (isString$
|
|
65819
|
+
if (isString$1(options) || isVNode(options)) {
|
|
65949
65820
|
options = {
|
|
65950
65821
|
message: options
|
|
65951
65822
|
};
|
|
@@ -66145,7 +66016,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66145
66016
|
break;
|
|
66146
66017
|
}
|
|
66147
66018
|
}
|
|
66148
|
-
onMounted
|
|
66019
|
+
onMounted(() => {
|
|
66149
66020
|
startTimer();
|
|
66150
66021
|
nextZIndex();
|
|
66151
66022
|
visible.value = true;
|
|
@@ -66234,7 +66105,7 @@ let seed = 1;
|
|
|
66234
66105
|
const notify = function(options = {}, context) {
|
|
66235
66106
|
if (!isClient)
|
|
66236
66107
|
return { close: () => void 0 };
|
|
66237
|
-
if (isString$
|
|
66108
|
+
if (isString$1(options) || isVNode(options)) {
|
|
66238
66109
|
options = { message: options };
|
|
66239
66110
|
}
|
|
66240
66111
|
const position = options.position || "top-right";
|
|
@@ -66255,17 +66126,16 @@ const notify = function(options = {}, context) {
|
|
|
66255
66126
|
}
|
|
66256
66127
|
};
|
|
66257
66128
|
let appendTo = document.body;
|
|
66258
|
-
if (isElement$
|
|
66129
|
+
if (isElement$2(options.appendTo)) {
|
|
66259
66130
|
appendTo = options.appendTo;
|
|
66260
|
-
} else if (isString$
|
|
66131
|
+
} else if (isString$1(options.appendTo)) {
|
|
66261
66132
|
appendTo = document.querySelector(options.appendTo);
|
|
66262
66133
|
}
|
|
66263
|
-
if (!isElement$
|
|
66264
|
-
debugWarn("ElNotification", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
66134
|
+
if (!isElement$2(appendTo)) {
|
|
66265
66135
|
appendTo = document.body;
|
|
66266
66136
|
}
|
|
66267
66137
|
const container = document.createElement("div");
|
|
66268
|
-
const vm = createVNode(NotificationConstructor, props, isFunction$
|
|
66138
|
+
const vm = createVNode(NotificationConstructor, props, isFunction$1(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
|
|
66269
66139
|
vm.appContext = isUndefined(context) ? notify._context : context;
|
|
66270
66140
|
vm.props.onDestroy = () => {
|
|
66271
66141
|
render(null, container);
|
|
@@ -66281,7 +66151,7 @@ const notify = function(options = {}, context) {
|
|
|
66281
66151
|
};
|
|
66282
66152
|
notificationTypes.forEach((type) => {
|
|
66283
66153
|
notify[type] = (options = {}, appContext) => {
|
|
66284
|
-
if (isString$
|
|
66154
|
+
if (isString$1(options) || isVNode(options)) {
|
|
66285
66155
|
options = {
|
|
66286
66156
|
message: options
|
|
66287
66157
|
};
|
|
@@ -66349,4 +66219,4 @@ var installer = makeInstaller([...Components, ...Plugins]);
|
|
|
66349
66219
|
const install = installer.install;
|
|
66350
66220
|
const version = installer.version;
|
|
66351
66221
|
|
|
66352
|
-
export { BAR_MAP, BORDER_HORIZONTAL_WIDTH, CAROUSEL_ITEM_NAME, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_DIALOG_TRANSITION, DEFAULT_EMPTY_VALUES, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, DEFAULT_VALUE_ON_CLEAR, DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY, DefaultProps, DynamicSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, EVENT_CODE, Effect, ElAffix, ElAlert, ElAnchor, ElAnchorLink, ElAside, ElAutoResizer, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElColorPickerPanel, ElConfigProvider, ElContainer, ElCountdown, ElDatePicker, ElDatePickerPanel, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElInputTag, ElLink, ElLoading, vLoading$1 as ElLoadingDirective, Loading$1 as ElLoadingService, ElMain, ElMention, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSegmented, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElSplitter, ElSplitterPanel, ElStatistic, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTableV2, ElTabs, ElTag, ElText, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTour, ElTourStep, ElTransfer, ElTree, ElTreeSelect, ElTreeV2, ElUpload, ElWatermark, FIRST_KEYS, FIRST_LAST_KEYS, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$1 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, GAP, ID_INJECTION_KEY, INPUT_EVENT, INSTALLED_KEY, IconComponentMap, IconMap, LAST_KEYS, LEFT_CHECK_CHANGE_EVENT, MENU_INJECTION_KEY, MESSAGE_DEFAULT_PLACEMENT, MINIMUM_INPUT_WIDTH, Mousewheel, NODE_INSTANCE_INJECTION_KEY, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, RIGHT_CHECK_CHANGE_EVENT, ROOT_COMMON_COLOR_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY, ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, ROOT_TREE_INJECTION_KEY$1 as ROOT_TREE_INJECTION_KEY, RowAlign, RowJustify, SCOPE$
|
|
66222
|
+
export { BAR_MAP, BORDER_HORIZONTAL_WIDTH, CAROUSEL_ITEM_NAME, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_DIALOG_TRANSITION, DEFAULT_EMPTY_VALUES, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, DEFAULT_VALUE_ON_CLEAR, DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY, DefaultProps, DynamicSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, EVENT_CODE, Effect, ElAffix, ElAlert, ElAnchor, ElAnchorLink, ElAside, ElAutoResizer, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElColorPickerPanel, ElConfigProvider, ElContainer, ElCountdown, ElDatePicker, ElDatePickerPanel, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElInputTag, ElLink, ElLoading, vLoading$1 as ElLoadingDirective, Loading$1 as ElLoadingService, ElMain, ElMention, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSegmented, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElSplitter, ElSplitterPanel, ElStatistic, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTableV2, ElTabs, ElTag, ElText, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTour, ElTourStep, ElTransfer, ElTree, ElTreeSelect, ElTreeV2, ElUpload, ElWatermark, FIRST_KEYS, FIRST_LAST_KEYS, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$1 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, GAP, ID_INJECTION_KEY, INPUT_EVENT, INSTALLED_KEY, IconComponentMap, IconMap, LAST_KEYS, LEFT_CHECK_CHANGE_EVENT, MENU_INJECTION_KEY, MESSAGE_DEFAULT_PLACEMENT, MINIMUM_INPUT_WIDTH, Mousewheel, NODE_INSTANCE_INJECTION_KEY, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, RIGHT_CHECK_CHANGE_EVENT, ROOT_COMMON_COLOR_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY, ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY, ROOT_TREE_INJECTION_KEY$1 as ROOT_TREE_INJECTION_KEY, RowAlign, RowJustify, SCOPE$6 as SCOPE, SIZE_INJECTION_KEY, STEPS_INJECTION_KEY, SUB_MENU_INJECTION_KEY, TIMELINE_INJECTION_KEY, TOOLTIP_INJECTION_KEY, TREE_NODE_MAP_INJECTION_KEY, TableV2$1 as TableV2, Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, placeholderSign as TableV2Placeholder, SortOrder as TableV2SortOrder, TimePickPanel, TrapFocus, UPDATE_MODEL_EVENT, WEEK_DAYS, ZINDEX_INJECTION_KEY, affixEmits, affixProps, alertEffects, alertEmits, alertProps, anchorEmits, anchorProps, ariaProps, arrowMiddleware, autoResizerProps, autocompleteEmits, autocompleteProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbKey, breadcrumbProps, buildLocaleContext, buildTimeList, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeTypes, buttonProps, buttonTypes, calendarEmits, calendarProps, cardContextKey, cardProps, carouselContextKey, carouselEmits, carouselItemProps, carouselProps, cascaderEmits, cascaderPanelEmits, cascaderPanelProps, cascaderProps, checkTagEmits, checkTagProps, checkboxDefaultProps, checkboxEmits, checkboxGroupContextKey, checkboxGroupEmits, checkboxGroupProps, checkboxProps, colProps, collapseContextKey, collapseEmits, collapseItemProps, collapseProps, colorPickerEmits, colorPickerPanelContextKey, colorPickerPanelEmits, colorPickerPanelProps, colorPickerProps, columnAlignment, componentSizeMap, componentSizes, configProviderContextKey, configProviderProps, countdownEmits, countdownProps, createModelToggleComposable, dateEquals, datePickTypes, datePickerPanelProps, datePickerProps, dayOrDaysToDate, dayjs, installer as default, defaultInitialZIndex, defaultNamespace, defaultProps, descriptionItemProps, descriptionProps, dialogContextKey, dialogEmits, dialogInjectionKey, dialogProps, dividerProps, drawerEmits, drawerProps, dropdownItemProps, dropdownMenuProps, dropdownProps, elPaginationKey, emitChangeFn, emptyProps, emptyValuesContextKey, extractDateFormat, extractTimeFormat, formContextKey, formEmits, formItemContextKey, formItemProps, formItemValidateStates, formMetaProps, formProps, formatter, genFileId, getPositionDataWithUnit, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, inputTagEmits, inputTagProps, install, linkEmits, linkProps, localeContextKey, makeInstaller, makeList, mentionDefaultProps, mentionEmits, mentionProps, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageDefaults, messageEmits, messagePlacement, messageProps, messageTypes, namespaceContextKey, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, parseDate, popconfirmEmits, popconfirmProps, popoverEmits, popoverProps, popperArrowProps, popperContentEmits, popperContentProps, popperCoreConfigProps, popperProps, popperTriggerProps, progressProps, provideGlobalConfig, radioButtonProps, radioDefaultProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, roleTypes, rowContextKey, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, segmentedEmits, segmentedProps, selectEmits, selectGroupKey, selectKey, selectProps, selectV2InjectionKey, skeletonItemProps, skeletonProps, sliderContextKey, sliderEmits, sliderProps, spaceItemProps, spaceProps, splitterEmits, splitterPanelEmits, splitterPanelProps, splitterProps, statisticProps, stepProps, stepsEmits, stepsProps, subMenuProps, switchEmits, switchProps, tabBarProps, tabNavEmits, tabNavProps, tabPaneProps, tableV2Props, tableV2RowProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, textProps, thumbProps, timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps, timeSelectProps, timeUnits$1 as timeUnits, timelineItemProps, tooltipEmits, tourContentEmits, tourContentProps, tourEmits, tourPlacements, tourProps, tourStepEmits, tourStepProps, tourStrategies, transferCheckedChangeFn, transferEmits, transferProps, translate, treeEmits$1 as treeEmits, uploadBaseProps, uploadContentProps, uploadContextKey, uploadDraggerEmits, uploadDraggerProps, uploadListEmits, uploadListProps, uploadListTypes, uploadProps, useAriaProps, useAttrs, useCalcInputWidth, useCascaderConfig, useComposition, useCursor, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDeprecated, useDialog, useDisabled, useDraggable, useEmptyValues, useEmptyValuesProps, useEscapeKeydown, useFloating$1 as useFloating, useFloatingProps, useFocus, useFocusController, useFormDisabled, useFormItem, useFormItemInputId, useFormSize, useForwardRef, useForwardRefDirective, useGetDerivedNamespace, useGlobalComponentSettings, useGlobalConfig, useGlobalSize, useId, useIdInjection, useLocale, useLockscreen, useModal, useModelToggle, useModelToggleEmits, useModelToggleProps, useNamespace, useOrderedChildren, usePopper, usePopperArrowProps, usePopperContainer, usePopperContainerId, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useSameTarget, useSize$1 as useSize, useSizeProp, useSizeProps, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, useZIndex, vLoading$1 as vLoading, vRepeatClick, valueEquals, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps, watermarkProps, zIndexContextKey };
|