@element-plus/nightly 0.0.20251207 → 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 +434 -561
- 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 +504 -631
- 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/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +96 -40
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +40 -96
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +68 -88
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +88 -68
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.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/src/color-picker.mjs +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +3 -3
- 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/date-picker/src/props.d.ts +1 -1
- package/es/components/dialog/index.mjs +2 -2
- package/es/components/dialog/src/dialog.mjs +74 -174
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog2.mjs +174 -74
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/src/drawer.mjs +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 +11 -11
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +83 -283
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +283 -83
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +147 -73
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +73 -147
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.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/popconfirm/src/popconfirm.mjs +2 -2
- package/es/components/popover/src/popover.mjs +2 -2
- package/es/components/select/src/option2.mjs +4 -2
- package/es/components/select/src/option2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.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/table/src/filter-panel.mjs +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +11 -92
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +92 -11
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +21 -67
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +67 -21
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +3 -3
- package/es/components/time-picker/src/common/props.d.ts +1 -1
- package/es/components/time-picker/src/common/props.mjs +5 -2
- package/es/components/time-picker/src/common/props.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker.d.ts +3 -3
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/content.mjs +29 -203
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs +203 -29
- 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/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +100 -125
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +125 -100
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.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 +11 -11
- 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/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +95 -41
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +41 -95
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +71 -88
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +88 -71
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +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/src/color-picker.js +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +3 -3
- 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/date-picker/src/props.d.ts +1 -1
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/src/dialog.js +76 -174
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog2.js +174 -76
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/src/drawer.js +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 +11 -11
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +82 -281
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +281 -82
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +146 -74
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +74 -146
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.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/popconfirm/src/popconfirm.js +2 -2
- package/lib/components/popover/src/popover.js +2 -2
- package/lib/components/select/src/option2.js +4 -2
- package/lib/components/select/src/option2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.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/table/src/filter-panel.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +11 -92
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +92 -11
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +21 -67
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +67 -21
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +3 -3
- package/lib/components/time-picker/src/common/props.d.ts +1 -1
- package/lib/components/time-picker/src/common/props.js +5 -2
- package/lib/components/time-picker/src/common/props.js.map +1 -1
- package/lib/components/time-picker/src/time-picker.d.ts +3 -3
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/content.js +29 -203
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content2.js +203 -29
- 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/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +103 -125
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +125 -103
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.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 +11 -11
- 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");
|
|
@@ -20362,7 +20304,10 @@ const timePickerDefaultProps = buildProps({
|
|
|
20362
20304
|
},
|
|
20363
20305
|
size: useSizeProp,
|
|
20364
20306
|
readonly: Boolean,
|
|
20365
|
-
disabled:
|
|
20307
|
+
disabled: {
|
|
20308
|
+
type: Boolean,
|
|
20309
|
+
default: void 0
|
|
20310
|
+
},
|
|
20366
20311
|
placeholder: {
|
|
20367
20312
|
type: String,
|
|
20368
20313
|
default: ""
|
|
@@ -20630,7 +20575,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
20630
20575
|
handleChange();
|
|
20631
20576
|
pickerVisible.value = false;
|
|
20632
20577
|
hasJustTabExitedInput = false;
|
|
20633
|
-
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()));
|
|
20634
20579
|
}
|
|
20635
20580
|
});
|
|
20636
20581
|
const hovering = ref(false);
|
|
@@ -20667,7 +20612,7 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
20667
20612
|
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
|
20668
20613
|
emit(CHANGE_EVENT, val);
|
|
20669
20614
|
isClear && (valueOnOpen.value = val);
|
|
20670
|
-
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()));
|
|
20671
20616
|
}
|
|
20672
20617
|
};
|
|
20673
20618
|
const emitKeydown = (e) => {
|
|
@@ -21255,7 +21200,7 @@ function createDocumentHandler(el, binding) {
|
|
|
21255
21200
|
let excludes = [];
|
|
21256
21201
|
if (isArray$1(binding.arg)) {
|
|
21257
21202
|
excludes = binding.arg;
|
|
21258
|
-
} else if (isElement$
|
|
21203
|
+
} else if (isElement$2(binding.arg)) {
|
|
21259
21204
|
excludes.push(binding.arg);
|
|
21260
21205
|
}
|
|
21261
21206
|
return function(mouseup, mousedown) {
|
|
@@ -21307,14 +21252,14 @@ const ClickOutside = {
|
|
|
21307
21252
|
|
|
21308
21253
|
const REPEAT_INTERVAL = 100;
|
|
21309
21254
|
const REPEAT_DELAY = 600;
|
|
21310
|
-
const SCOPE$
|
|
21255
|
+
const SCOPE$5 = "_RepeatClick";
|
|
21311
21256
|
const vRepeatClick = {
|
|
21312
21257
|
beforeMount(el, binding) {
|
|
21313
21258
|
const value = binding.value;
|
|
21314
|
-
const { interval = REPEAT_INTERVAL, delay = REPEAT_DELAY } = isFunction$
|
|
21259
|
+
const { interval = REPEAT_INTERVAL, delay = REPEAT_DELAY } = isFunction$1(value) ? {} : value;
|
|
21315
21260
|
let intervalId;
|
|
21316
21261
|
let delayId;
|
|
21317
|
-
const handler = () => isFunction$
|
|
21262
|
+
const handler = () => isFunction$1(value) ? value() : value.handler();
|
|
21318
21263
|
const clear = () => {
|
|
21319
21264
|
if (delayId) {
|
|
21320
21265
|
clearTimeout(delayId);
|
|
@@ -21337,13 +21282,13 @@ const vRepeatClick = {
|
|
|
21337
21282
|
}, interval);
|
|
21338
21283
|
}, delay);
|
|
21339
21284
|
};
|
|
21340
|
-
el[SCOPE$
|
|
21285
|
+
el[SCOPE$5] = { start, clear };
|
|
21341
21286
|
el.addEventListener("mousedown", start);
|
|
21342
21287
|
},
|
|
21343
21288
|
unmounted(el) {
|
|
21344
|
-
if (!el[SCOPE$
|
|
21289
|
+
if (!el[SCOPE$5])
|
|
21345
21290
|
return;
|
|
21346
|
-
const { start, clear } = el[SCOPE$
|
|
21291
|
+
const { start, clear } = el[SCOPE$5];
|
|
21347
21292
|
if (start) {
|
|
21348
21293
|
el.removeEventListener("mousedown", start);
|
|
21349
21294
|
}
|
|
@@ -21351,7 +21296,7 @@ const vRepeatClick = {
|
|
|
21351
21296
|
clear();
|
|
21352
21297
|
document.removeEventListener("mouseup", clear);
|
|
21353
21298
|
}
|
|
21354
|
-
el[SCOPE$
|
|
21299
|
+
el[SCOPE$5] = null;
|
|
21355
21300
|
}
|
|
21356
21301
|
};
|
|
21357
21302
|
|
|
@@ -21381,12 +21326,6 @@ const FOCUS_HANDLER = (e) => {
|
|
|
21381
21326
|
e.preventDefault();
|
|
21382
21327
|
focusableElement[0].focus();
|
|
21383
21328
|
}
|
|
21384
|
-
if (typeof process !== "undefined" && false) {
|
|
21385
|
-
const index = focusableElement.indexOf(e.target);
|
|
21386
|
-
if (index !== -1) {
|
|
21387
|
-
(_a = focusableElement[goingBackward ? index - 1 : index + 1]) == null ? void 0 : _a.focus();
|
|
21388
|
-
}
|
|
21389
|
-
}
|
|
21390
21329
|
}
|
|
21391
21330
|
};
|
|
21392
21331
|
const TrapFocus = {
|
|
@@ -21425,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.
|
|
|
21425
21364
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
21426
21365
|
*/
|
|
21427
21366
|
|
|
21428
|
-
const SCOPE$
|
|
21367
|
+
const SCOPE$4 = "_Mousewheel";
|
|
21429
21368
|
const mousewheel = function(element, callback) {
|
|
21430
21369
|
if (element && element.addEventListener) {
|
|
21431
21370
|
removeWheelHandler(element);
|
|
@@ -21433,15 +21372,15 @@ const mousewheel = function(element, callback) {
|
|
|
21433
21372
|
const normalized = Y(event);
|
|
21434
21373
|
callback && Reflect.apply(callback, this, [event, normalized]);
|
|
21435
21374
|
};
|
|
21436
|
-
element[SCOPE$
|
|
21375
|
+
element[SCOPE$4] = { wheelHandler: fn };
|
|
21437
21376
|
element.addEventListener("wheel", fn, { passive: true });
|
|
21438
21377
|
}
|
|
21439
21378
|
};
|
|
21440
21379
|
const removeWheelHandler = (element) => {
|
|
21441
21380
|
var _a;
|
|
21442
|
-
if ((_a = element[SCOPE$
|
|
21443
|
-
element.removeEventListener("wheel", element[SCOPE$
|
|
21444
|
-
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;
|
|
21445
21384
|
}
|
|
21446
21385
|
};
|
|
21447
21386
|
const Mousewheel = {
|
|
@@ -21671,7 +21610,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
21671
21610
|
bindFunction("minutes");
|
|
21672
21611
|
bindFunction("seconds");
|
|
21673
21612
|
};
|
|
21674
|
-
onMounted
|
|
21613
|
+
onMounted(() => {
|
|
21675
21614
|
nextTick(() => {
|
|
21676
21615
|
!props.arrowControl && bindScrollEvent();
|
|
21677
21616
|
adjustSpinners();
|
|
@@ -21766,7 +21705,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
21766
21705
|
unref(ns).is("disabled", unref(timeList)[item][time])
|
|
21767
21706
|
])
|
|
21768
21707
|
}, [
|
|
21769
|
-
unref(isNumber
|
|
21708
|
+
unref(isNumber)(time) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
21770
21709
|
item === "hours" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
21771
21710
|
createTextVNode(toDisplayString(("0" + (_ctx.amPmMode ? time % 12 || 12 : time)).slice(-2)) + toDisplayString(getAmPmFlag(time)), 1)
|
|
21772
21711
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -22605,14 +22544,12 @@ const useCalendar = (props, emit, componentName) => {
|
|
|
22605
22544
|
const rangeArrDayjs = props.range.map((_) => dayjs(_).locale(lang.value));
|
|
22606
22545
|
const [startDayjs, endDayjs] = rangeArrDayjs;
|
|
22607
22546
|
if (startDayjs.isAfter(endDayjs)) {
|
|
22608
|
-
debugWarn(componentName, "end time should be greater than start time");
|
|
22609
22547
|
return [];
|
|
22610
22548
|
}
|
|
22611
22549
|
if (startDayjs.isSame(endDayjs, "month")) {
|
|
22612
22550
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
22613
22551
|
} else {
|
|
22614
22552
|
if (startDayjs.add(1, "month").month() !== endDayjs.month()) {
|
|
22615
|
-
debugWarn(componentName, "start time and end time interval must not exceed two months");
|
|
22616
22553
|
return [];
|
|
22617
22554
|
}
|
|
22618
22555
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
@@ -22641,7 +22578,6 @@ const useCalendar = (props, emit, componentName) => {
|
|
|
22641
22578
|
} else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
|
|
22642
22579
|
return threeConsecutiveMonth(firstDay, lastDay);
|
|
22643
22580
|
} else {
|
|
22644
|
-
debugWarn(componentName, "start time and end time interval must not exceed two months");
|
|
22645
22581
|
return [];
|
|
22646
22582
|
}
|
|
22647
22583
|
};
|
|
@@ -22686,9 +22622,9 @@ const calendarEmits = {
|
|
|
22686
22622
|
[INPUT_EVENT]: (value) => isDate$1(value)
|
|
22687
22623
|
};
|
|
22688
22624
|
|
|
22689
|
-
const COMPONENT_NAME$
|
|
22625
|
+
const COMPONENT_NAME$g = "ElCalendar";
|
|
22690
22626
|
const __default__$1z = defineComponent({
|
|
22691
|
-
name: COMPONENT_NAME$
|
|
22627
|
+
name: COMPONENT_NAME$g
|
|
22692
22628
|
});
|
|
22693
22629
|
const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
22694
22630
|
...__default__$1z,
|
|
@@ -22704,7 +22640,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
|
22704
22640
|
realSelectedDay,
|
|
22705
22641
|
selectDate,
|
|
22706
22642
|
validatedRange
|
|
22707
|
-
} = useCalendar(props, emit
|
|
22643
|
+
} = useCalendar(props, emit);
|
|
22708
22644
|
const { t } = useLocale();
|
|
22709
22645
|
const i18nDate = computed(() => {
|
|
22710
22646
|
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
@@ -22944,7 +22880,7 @@ const carouselProps = buildProps({
|
|
|
22944
22880
|
motionBlur: Boolean
|
|
22945
22881
|
});
|
|
22946
22882
|
const carouselEmits = {
|
|
22947
|
-
change: (current, prev) => [current, prev].every(isNumber
|
|
22883
|
+
change: (current, prev) => [current, prev].every(isNumber)
|
|
22948
22884
|
};
|
|
22949
22885
|
|
|
22950
22886
|
const carouselContextKey = Symbol("carouselContextKey");
|
|
@@ -23012,7 +22948,7 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
23012
22948
|
}
|
|
23013
22949
|
};
|
|
23014
22950
|
function setActiveItem(index) {
|
|
23015
|
-
if (isString$
|
|
22951
|
+
if (isString$1(index)) {
|
|
23016
22952
|
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
23017
22953
|
if (filteredItems.length > 0) {
|
|
23018
22954
|
index = items.value.indexOf(filteredItems[0]);
|
|
@@ -23020,7 +22956,6 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
23020
22956
|
}
|
|
23021
22957
|
index = Number(index);
|
|
23022
22958
|
if (Number.isNaN(index) || index !== Math.floor(index)) {
|
|
23023
|
-
debugWarn(componentName, "index must be integer.");
|
|
23024
22959
|
return;
|
|
23025
22960
|
}
|
|
23026
22961
|
const itemCount = items.value.length;
|
|
@@ -23154,7 +23089,7 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
23154
23089
|
resetTimer();
|
|
23155
23090
|
});
|
|
23156
23091
|
const resizeObserver = shallowRef();
|
|
23157
|
-
onMounted
|
|
23092
|
+
onMounted(() => {
|
|
23158
23093
|
watch(() => items.value, () => {
|
|
23159
23094
|
if (items.value.length > 0)
|
|
23160
23095
|
setActiveItem(props.initialIndex);
|
|
@@ -23211,9 +23146,9 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
23211
23146
|
};
|
|
23212
23147
|
};
|
|
23213
23148
|
|
|
23214
|
-
const COMPONENT_NAME$
|
|
23149
|
+
const COMPONENT_NAME$f = "ElCarousel";
|
|
23215
23150
|
const __default__$1x = defineComponent({
|
|
23216
|
-
name: COMPONENT_NAME$
|
|
23151
|
+
name: COMPONENT_NAME$f
|
|
23217
23152
|
});
|
|
23218
23153
|
const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
23219
23154
|
...__default__$1x,
|
|
@@ -23245,7 +23180,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
23245
23180
|
ItemsSorter,
|
|
23246
23181
|
throttledArrowClick,
|
|
23247
23182
|
throttledIndicatorHover
|
|
23248
|
-
} = useCarousel(props, emit
|
|
23183
|
+
} = useCarousel(props, emit);
|
|
23249
23184
|
const ns = useNamespace("carousel");
|
|
23250
23185
|
const { t } = useLocale();
|
|
23251
23186
|
const carouselClasses = computed(() => {
|
|
@@ -23427,12 +23362,6 @@ const carouselItemProps = buildProps({
|
|
|
23427
23362
|
const useCarouselItem = (props) => {
|
|
23428
23363
|
const carouselContext = inject(carouselContextKey);
|
|
23429
23364
|
const instance = getCurrentInstance();
|
|
23430
|
-
if (!carouselContext) {
|
|
23431
|
-
debugWarn(CAROUSEL_ITEM_NAME, "usage: <el-carousel></el-carousel-item></el-carousel>");
|
|
23432
|
-
}
|
|
23433
|
-
if (!instance) {
|
|
23434
|
-
debugWarn(CAROUSEL_ITEM_NAME, "compositional hook can only be invoked inside setups");
|
|
23435
|
-
}
|
|
23436
23365
|
const carouselItemRef = ref();
|
|
23437
23366
|
const hover = ref(false);
|
|
23438
23367
|
const translate = ref(0);
|
|
@@ -23665,8 +23594,8 @@ const checkboxProps = {
|
|
|
23665
23594
|
...useAriaProps(["ariaControls"])
|
|
23666
23595
|
};
|
|
23667
23596
|
const checkboxEmits = {
|
|
23668
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
23669
|
-
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)
|
|
23670
23599
|
};
|
|
23671
23600
|
|
|
23672
23601
|
const checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
|
|
@@ -23736,7 +23665,7 @@ const useCheckboxEvent = (props, {
|
|
|
23736
23665
|
const validateEvent = computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.validateEvent) || props.validateEvent);
|
|
23737
23666
|
watch(() => props.modelValue, () => {
|
|
23738
23667
|
if (validateEvent.value) {
|
|
23739
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
23668
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
23740
23669
|
}
|
|
23741
23670
|
});
|
|
23742
23671
|
return {
|
|
@@ -24191,7 +24120,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
24191
24120
|
});
|
|
24192
24121
|
watch(() => props.modelValue, (newVal, oldValue) => {
|
|
24193
24122
|
if (props.validateEvent && !isEqual$1(newVal, oldValue)) {
|
|
24194
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
24123
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
24195
24124
|
}
|
|
24196
24125
|
});
|
|
24197
24126
|
return (_ctx, _cache) => {
|
|
@@ -24252,8 +24181,8 @@ const radioProps = buildProps({
|
|
|
24252
24181
|
border: Boolean
|
|
24253
24182
|
});
|
|
24254
24183
|
const radioEmits = {
|
|
24255
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
24256
|
-
[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)
|
|
24257
24186
|
};
|
|
24258
24187
|
|
|
24259
24188
|
const radioGroupKey = Symbol("radioGroupKey");
|
|
@@ -24513,7 +24442,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
24513
24442
|
emit(UPDATE_MODEL_EVENT, value);
|
|
24514
24443
|
nextTick(() => emit(CHANGE_EVENT, value));
|
|
24515
24444
|
};
|
|
24516
|
-
onMounted
|
|
24445
|
+
onMounted(() => {
|
|
24517
24446
|
const radios = radioGroupRef.value.querySelectorAll("[type=radio]");
|
|
24518
24447
|
const firstLabel = radios[0];
|
|
24519
24448
|
if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {
|
|
@@ -24544,7 +24473,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
24544
24473
|
}));
|
|
24545
24474
|
watch(() => props.modelValue, (newVal, oldValue) => {
|
|
24546
24475
|
if (props.validateEvent && !isEqual$1(newVal, oldValue)) {
|
|
24547
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
24476
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
24548
24477
|
}
|
|
24549
24478
|
});
|
|
24550
24479
|
return (_ctx, _cache) => {
|
|
@@ -24947,13 +24876,13 @@ class Node$3 {
|
|
|
24947
24876
|
get isDisabled() {
|
|
24948
24877
|
const { data, parent, config } = this;
|
|
24949
24878
|
const { disabled, checkStrictly } = config;
|
|
24950
|
-
const isDisabled = isFunction$
|
|
24879
|
+
const isDisabled = isFunction$1(disabled) ? disabled(data, this) : !!data[disabled];
|
|
24951
24880
|
return isDisabled || !checkStrictly && !!(parent == null ? void 0 : parent.isDisabled);
|
|
24952
24881
|
}
|
|
24953
24882
|
get isLeaf() {
|
|
24954
24883
|
const { data, config, childrenData, loaded } = this;
|
|
24955
24884
|
const { lazy, leaf } = config;
|
|
24956
|
-
const isLeaf = isFunction$
|
|
24885
|
+
const isLeaf = isFunction$1(leaf) ? leaf(data, this) : data[leaf];
|
|
24957
24886
|
return isUndefined(isLeaf) ? lazy && !loaded ? false : !(isArray$1(childrenData) && childrenData.length) : !!isLeaf;
|
|
24958
24887
|
}
|
|
24959
24888
|
get valueByOption() {
|
|
@@ -25419,7 +25348,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
25419
25348
|
initStore();
|
|
25420
25349
|
};
|
|
25421
25350
|
onBeforeUpdate(() => menuList.value = []);
|
|
25422
|
-
onMounted
|
|
25351
|
+
onMounted(() => !isEmpty(props.modelValue) && syncCheckedValue());
|
|
25423
25352
|
expose({
|
|
25424
25353
|
menuList,
|
|
25425
25354
|
menus,
|
|
@@ -25777,7 +25706,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
25777
25706
|
afterBlur() {
|
|
25778
25707
|
var _a;
|
|
25779
25708
|
if (props.validateEvent) {
|
|
25780
|
-
(_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());
|
|
25781
25710
|
}
|
|
25782
25711
|
}
|
|
25783
25712
|
});
|
|
@@ -25801,7 +25730,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
25801
25730
|
emit(UPDATE_MODEL_EVENT, value);
|
|
25802
25731
|
emit(CHANGE_EVENT, value);
|
|
25803
25732
|
if (props.validateEvent) {
|
|
25804
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
25733
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
25805
25734
|
}
|
|
25806
25735
|
}
|
|
25807
25736
|
});
|
|
@@ -26085,7 +26014,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
26085
26014
|
(_a = cascaderPanelRef.value) == null ? void 0 : _a.loadLazyRootNodes();
|
|
26086
26015
|
}
|
|
26087
26016
|
});
|
|
26088
|
-
onMounted
|
|
26017
|
+
onMounted(() => {
|
|
26089
26018
|
const inputInner = inputRef.value.input;
|
|
26090
26019
|
const inputInnerHeight = getInputInnerHeight(inputInner);
|
|
26091
26020
|
inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
|
|
@@ -26568,7 +26497,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
26568
26497
|
const pos = ["span", "offset", "pull", "push"];
|
|
26569
26498
|
pos.forEach((prop) => {
|
|
26570
26499
|
const size = props[prop];
|
|
26571
|
-
if (isNumber
|
|
26500
|
+
if (isNumber(size)) {
|
|
26572
26501
|
if (prop === "span")
|
|
26573
26502
|
classes.push(ns.b(`${props[prop]}`));
|
|
26574
26503
|
else if (size > 0)
|
|
@@ -26577,7 +26506,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
26577
26506
|
});
|
|
26578
26507
|
const sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
26579
26508
|
sizes.forEach((size) => {
|
|
26580
|
-
if (isNumber
|
|
26509
|
+
if (isNumber(props[size])) {
|
|
26581
26510
|
classes.push(ns.b(`${size}-${props[size]}`));
|
|
26582
26511
|
} else if (isObject$1(props[size])) {
|
|
26583
26512
|
Object.entries(props[size]).forEach(([prop, sizeProp]) => {
|
|
@@ -26607,7 +26536,7 @@ var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["__file", "col.vue"]]);
|
|
|
26607
26536
|
|
|
26608
26537
|
const ElCol = withInstall(Col);
|
|
26609
26538
|
|
|
26610
|
-
const emitChangeFn = (value) => isNumber
|
|
26539
|
+
const emitChangeFn = (value) => isNumber(value) || isString$1(value) || isArray$1(value);
|
|
26611
26540
|
const collapseProps = buildProps({
|
|
26612
26541
|
accordion: Boolean,
|
|
26613
26542
|
modelValue: {
|
|
@@ -26629,7 +26558,7 @@ const collapseEmits = {
|
|
|
26629
26558
|
|
|
26630
26559
|
const collapseContextKey = Symbol("collapseContextKey");
|
|
26631
26560
|
|
|
26632
|
-
const SCOPE$
|
|
26561
|
+
const SCOPE$3 = "ElCollapse";
|
|
26633
26562
|
const useCollapse = (props, emit) => {
|
|
26634
26563
|
const activeNames = ref(castArray$1(props.modelValue));
|
|
26635
26564
|
const setActiveNames = (_activeNames) => {
|
|
@@ -26664,7 +26593,7 @@ const useCollapse = (props, emit) => {
|
|
|
26664
26593
|
isBoolean(shouldChange)
|
|
26665
26594
|
].includes(true);
|
|
26666
26595
|
if (!isPromiseOrBool) {
|
|
26667
|
-
throwError
|
|
26596
|
+
throwError(SCOPE$3, "beforeCollapse must return type `Promise<boolean>` or `boolean`");
|
|
26668
26597
|
}
|
|
26669
26598
|
if (isPromise(shouldChange)) {
|
|
26670
26599
|
shouldChange.then((result) => {
|
|
@@ -26672,7 +26601,6 @@ const useCollapse = (props, emit) => {
|
|
|
26672
26601
|
handleChange(name);
|
|
26673
26602
|
}
|
|
26674
26603
|
}).catch((e) => {
|
|
26675
|
-
debugWarn(SCOPE$4, `some error occurred: ${e}`);
|
|
26676
26604
|
});
|
|
26677
26605
|
} else if (shouldChange) {
|
|
26678
26606
|
handleChange(name);
|
|
@@ -27174,7 +27102,7 @@ const useSliderDOM = (props, {
|
|
|
27174
27102
|
thumbTop.value = getThumbTop();
|
|
27175
27103
|
background.value = getBackground == null ? void 0 : getBackground();
|
|
27176
27104
|
}
|
|
27177
|
-
onMounted
|
|
27105
|
+
onMounted(() => {
|
|
27178
27106
|
if (!bar.value || !thumb.value)
|
|
27179
27107
|
return;
|
|
27180
27108
|
const dragConfig = {
|
|
@@ -27390,7 +27318,7 @@ const colorPickerPanelProps = buildProps({
|
|
|
27390
27318
|
}
|
|
27391
27319
|
});
|
|
27392
27320
|
const colorPickerPanelEmits = {
|
|
27393
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
27321
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNil(val)
|
|
27394
27322
|
};
|
|
27395
27323
|
const ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
|
|
27396
27324
|
const colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
|
|
@@ -27694,7 +27622,7 @@ const useSvPanelDOM = (props, {
|
|
|
27694
27622
|
cursorTop.value = (100 - brightness) * height / 100;
|
|
27695
27623
|
background.value = `hsl(${props.color.get("hue")}, 100%, 50%)`;
|
|
27696
27624
|
}
|
|
27697
|
-
onMounted
|
|
27625
|
+
onMounted(() => {
|
|
27698
27626
|
draggable(instance.vnode.el, {
|
|
27699
27627
|
drag: (event) => {
|
|
27700
27628
|
handleDrag(event);
|
|
@@ -27836,7 +27764,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
27836
27764
|
function handleFocusout() {
|
|
27837
27765
|
var _a;
|
|
27838
27766
|
if (props.validateEvent) {
|
|
27839
|
-
(_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());
|
|
27840
27768
|
}
|
|
27841
27769
|
}
|
|
27842
27770
|
function update() {
|
|
@@ -27845,7 +27773,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
27845
27773
|
(_b = svRef.value) == null ? void 0 : _b.update();
|
|
27846
27774
|
(_c = alphaRef.value) == null ? void 0 : _c.update();
|
|
27847
27775
|
}
|
|
27848
|
-
onMounted
|
|
27776
|
+
onMounted(() => {
|
|
27849
27777
|
if (props.modelValue) {
|
|
27850
27778
|
customInput.value = color.value;
|
|
27851
27779
|
}
|
|
@@ -27860,7 +27788,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
27860
27788
|
emit(UPDATE_MODEL_EVENT, val);
|
|
27861
27789
|
customInput.value = val;
|
|
27862
27790
|
if (props.validateEvent) {
|
|
27863
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
27791
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
27864
27792
|
}
|
|
27865
27793
|
});
|
|
27866
27794
|
provide(colorPickerPanelContextKey, {
|
|
@@ -27968,9 +27896,9 @@ const colorPickerProps = buildProps({
|
|
|
27968
27896
|
...useAriaProps(["ariaLabel"])
|
|
27969
27897
|
});
|
|
27970
27898
|
const colorPickerEmits = {
|
|
27971
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
27972
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
27973
|
-
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),
|
|
27974
27902
|
focus: (evt) => evt instanceof FocusEvent,
|
|
27975
27903
|
blur: (evt) => evt instanceof FocusEvent
|
|
27976
27904
|
};
|
|
@@ -28011,7 +27939,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
28011
27939
|
setShowPicker(false);
|
|
28012
27940
|
resetColor();
|
|
28013
27941
|
if (props.validateEvent) {
|
|
28014
|
-
(_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());
|
|
28015
27943
|
}
|
|
28016
27944
|
}
|
|
28017
27945
|
});
|
|
@@ -28085,7 +28013,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
28085
28013
|
emit(UPDATE_MODEL_EVENT, value);
|
|
28086
28014
|
emit(CHANGE_EVENT, value);
|
|
28087
28015
|
if (props.validateEvent) {
|
|
28088
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
28016
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
28089
28017
|
}
|
|
28090
28018
|
debounceSetShowPicker(false);
|
|
28091
28019
|
nextTick(() => {
|
|
@@ -28104,7 +28032,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
28104
28032
|
emit(UPDATE_MODEL_EVENT, valueOnClear.value);
|
|
28105
28033
|
emit(CHANGE_EVENT, valueOnClear.value);
|
|
28106
28034
|
if (props.modelValue !== valueOnClear.value && props.validateEvent) {
|
|
28107
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
28035
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
28108
28036
|
}
|
|
28109
28037
|
resetColor();
|
|
28110
28038
|
}
|
|
@@ -28861,7 +28789,7 @@ const correctlyParseUserInput = (value, format, lang, defaultFormat) => {
|
|
|
28861
28789
|
if (isArray$1(value)) {
|
|
28862
28790
|
return value.map((v) => correctlyParseUserInput(v, format, lang, defaultFormat));
|
|
28863
28791
|
}
|
|
28864
|
-
if (isString$
|
|
28792
|
+
if (isString$1(value)) {
|
|
28865
28793
|
const dayjsValue = (defaultFormat == null ? void 0 : defaultFormat.value) ? dayjs(value) : dayjs(value, format);
|
|
28866
28794
|
if (!dayjsValue.isValid()) {
|
|
28867
28795
|
return dayjsValue;
|
|
@@ -29876,7 +29804,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
29876
29804
|
return `${year.value} ${yearTranslation}`;
|
|
29877
29805
|
});
|
|
29878
29806
|
const handleShortcutClick = (shortcut) => {
|
|
29879
|
-
const shortcutValue = isFunction$
|
|
29807
|
+
const shortcutValue = isFunction$1(shortcut.value) ? shortcut.value() : shortcut.value;
|
|
29880
29808
|
if (shortcutValue) {
|
|
29881
29809
|
isShortcut = true;
|
|
29882
29810
|
emit(dayjs(shortcutValue).locale(lang.value));
|
|
@@ -30157,7 +30085,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
30157
30085
|
const map = mapping[keyboardMode.value];
|
|
30158
30086
|
if (!map)
|
|
30159
30087
|
return;
|
|
30160
|
-
map.offset(newDate, isFunction$
|
|
30088
|
+
map.offset(newDate, isFunction$1(map[code]) ? map[code](newDate) : (_a = map[code]) != null ? _a : 0);
|
|
30161
30089
|
if (disabledDate && disabledDate(newDate)) {
|
|
30162
30090
|
break;
|
|
30163
30091
|
}
|
|
@@ -30478,7 +30406,7 @@ const useShortcut = (lang) => {
|
|
|
30478
30406
|
const attrs = useAttrs$1();
|
|
30479
30407
|
const slots = useSlots();
|
|
30480
30408
|
const handleShortcutClick = (shortcut) => {
|
|
30481
|
-
const shortcutValues = isFunction$
|
|
30409
|
+
const shortcutValues = isFunction$1(shortcut.value) ? shortcut.value() : shortcut.value;
|
|
30482
30410
|
if (shortcutValues) {
|
|
30483
30411
|
emit("pick", [
|
|
30484
30412
|
dayjs(shortcutValues[0]).locale(lang.value),
|
|
@@ -32290,6 +32218,7 @@ var DatePicker = defineComponent({
|
|
|
32290
32218
|
"onUpdate:modelValue": onModelValueUpdated
|
|
32291
32219
|
}), {
|
|
32292
32220
|
default: (scopedProps) => createVNode(ElDatePickerPanel, mergeProps({
|
|
32221
|
+
"disabled": props.disabled,
|
|
32293
32222
|
"border": false
|
|
32294
32223
|
}, scopedProps), _isSlot$6(slots) ? slots : {
|
|
32295
32224
|
default: () => [slots]
|
|
@@ -32501,7 +32430,7 @@ const descriptionProps = buildProps({
|
|
|
32501
32430
|
}
|
|
32502
32431
|
});
|
|
32503
32432
|
|
|
32504
|
-
const COMPONENT_NAME$
|
|
32433
|
+
const COMPONENT_NAME$e = "ElDescriptionsItem";
|
|
32505
32434
|
|
|
32506
32435
|
const __default__$10 = defineComponent({
|
|
32507
32436
|
name: "ElDescriptions"
|
|
@@ -32533,7 +32462,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
32533
32462
|
return [];
|
|
32534
32463
|
const children = flattedChildren(slots.default()).filter((node) => {
|
|
32535
32464
|
var _a;
|
|
32536
|
-
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;
|
|
32537
32466
|
});
|
|
32538
32467
|
const rows = [];
|
|
32539
32468
|
let temp = [];
|
|
@@ -32666,7 +32595,7 @@ const descriptionItemProps = buildProps({
|
|
|
32666
32595
|
}
|
|
32667
32596
|
});
|
|
32668
32597
|
const DescriptionItem = defineComponent({
|
|
32669
|
-
name: COMPONENT_NAME$
|
|
32598
|
+
name: COMPONENT_NAME$e,
|
|
32670
32599
|
props: descriptionItemProps
|
|
32671
32600
|
});
|
|
32672
32601
|
|
|
@@ -32925,7 +32854,6 @@ const dialogEmits = {
|
|
|
32925
32854
|
};
|
|
32926
32855
|
const dialogContextKey = Symbol("dialogContextKey");
|
|
32927
32856
|
|
|
32928
|
-
const COMPONENT_NAME$e = "ElDialog";
|
|
32929
32857
|
const useDialog = (props, targetRef) => {
|
|
32930
32858
|
var _a;
|
|
32931
32859
|
const instance = getCurrentInstance();
|
|
@@ -32996,10 +32924,10 @@ const useDialog = (props, targetRef) => {
|
|
|
32996
32924
|
return (el) => {
|
|
32997
32925
|
if (isArray$1(userHook)) {
|
|
32998
32926
|
userHook.forEach((fn) => {
|
|
32999
|
-
if (isFunction$
|
|
32927
|
+
if (isFunction$1(fn))
|
|
33000
32928
|
fn(el);
|
|
33001
32929
|
});
|
|
33002
|
-
} else if (isFunction$
|
|
32930
|
+
} else if (isFunction$1(userHook)) {
|
|
33003
32931
|
userHook(el);
|
|
33004
32932
|
}
|
|
33005
32933
|
defaultHook();
|
|
@@ -33010,7 +32938,6 @@ const useDialog = (props, targetRef) => {
|
|
|
33010
32938
|
config2.onAfterLeave = _mergeHook(config2.onAfterLeave, afterLeave);
|
|
33011
32939
|
if (!config2.name) {
|
|
33012
32940
|
config2.name = DEFAULT_DIALOG_TRANSITION;
|
|
33013
|
-
debugWarn(COMPONENT_NAME$e, `transition.name is missing when using object syntax, fallback to '${DEFAULT_DIALOG_TRANSITION}'`);
|
|
33014
32941
|
}
|
|
33015
32942
|
return config2;
|
|
33016
32943
|
}
|
|
@@ -33128,7 +33055,7 @@ const useDialog = (props, targetRef) => {
|
|
|
33128
33055
|
targetRef.value.style.transform = lastPosition;
|
|
33129
33056
|
}
|
|
33130
33057
|
});
|
|
33131
|
-
onMounted
|
|
33058
|
+
onMounted(() => {
|
|
33132
33059
|
if (props.modelValue) {
|
|
33133
33060
|
visible.value = true;
|
|
33134
33061
|
rendered.value = true;
|
|
@@ -33727,7 +33654,7 @@ const createCollectionWithScope = (name) => {
|
|
|
33727
33654
|
provide(COLLECTION_ITEM_INJECTION_KEY, {
|
|
33728
33655
|
collectionItemRef
|
|
33729
33656
|
});
|
|
33730
|
-
onMounted
|
|
33657
|
+
onMounted(() => {
|
|
33731
33658
|
const collectionItemEl = unref(collectionItemRef);
|
|
33732
33659
|
if (collectionItemEl) {
|
|
33733
33660
|
collectionInjection.itemMap.set(collectionItemEl, {
|
|
@@ -34885,8 +34812,8 @@ const imageViewerProps = buildProps({
|
|
|
34885
34812
|
const imageViewerEmits = {
|
|
34886
34813
|
close: () => true,
|
|
34887
34814
|
error: (evt) => evt instanceof Event,
|
|
34888
|
-
switch: (index) => isNumber
|
|
34889
|
-
rotate: (deg) => isNumber
|
|
34815
|
+
switch: (index) => isNumber(index),
|
|
34816
|
+
rotate: (deg) => isNumber(deg)
|
|
34890
34817
|
};
|
|
34891
34818
|
|
|
34892
34819
|
const __default__$V = defineComponent({
|
|
@@ -35170,7 +35097,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
35170
35097
|
reset();
|
|
35171
35098
|
emit("switch", val);
|
|
35172
35099
|
});
|
|
35173
|
-
onMounted
|
|
35100
|
+
onMounted(() => {
|
|
35174
35101
|
visible.value = true;
|
|
35175
35102
|
registerEventListener();
|
|
35176
35103
|
stopWheelListener = useEventListener("wheel", wheelHandler, {
|
|
@@ -35424,7 +35351,7 @@ const imageProps = buildProps({
|
|
|
35424
35351
|
const imageEmits = {
|
|
35425
35352
|
load: (evt) => evt instanceof Event,
|
|
35426
35353
|
error: (evt) => evt instanceof Event,
|
|
35427
|
-
switch: (val) => isNumber
|
|
35354
|
+
switch: (val) => isNumber(val),
|
|
35428
35355
|
close: () => true,
|
|
35429
35356
|
show: () => true
|
|
35430
35357
|
};
|
|
@@ -35518,9 +35445,9 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
35518
35445
|
return;
|
|
35519
35446
|
await nextTick();
|
|
35520
35447
|
const { scrollContainer } = props;
|
|
35521
|
-
if (isElement$
|
|
35448
|
+
if (isElement$2(scrollContainer)) {
|
|
35522
35449
|
_scrollContainer.value = scrollContainer;
|
|
35523
|
-
} else if (isString$
|
|
35450
|
+
} else if (isString$1(scrollContainer) && scrollContainer !== "") {
|
|
35524
35451
|
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
35525
35452
|
} else if (container.value) {
|
|
35526
35453
|
const scrollContainer2 = getScrollContainer(container.value);
|
|
@@ -35561,7 +35488,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
35561
35488
|
loadImage();
|
|
35562
35489
|
}
|
|
35563
35490
|
});
|
|
35564
|
-
onMounted
|
|
35491
|
+
onMounted(() => {
|
|
35565
35492
|
if (isManual.value) {
|
|
35566
35493
|
addLazyLoadListener();
|
|
35567
35494
|
} else {
|
|
@@ -35693,7 +35620,7 @@ const inputNumberProps = buildProps({
|
|
|
35693
35620
|
},
|
|
35694
35621
|
valueOnClear: {
|
|
35695
35622
|
type: [String, Number, null],
|
|
35696
|
-
validator: (val) => val === null || isNumber
|
|
35623
|
+
validator: (val) => val === null || isNumber(val) || ["min", "max"].includes(val),
|
|
35697
35624
|
default: null
|
|
35698
35625
|
},
|
|
35699
35626
|
name: String,
|
|
@@ -35721,8 +35648,8 @@ const inputNumberEmits = {
|
|
|
35721
35648
|
[CHANGE_EVENT]: (cur, prev) => prev !== cur,
|
|
35722
35649
|
blur: (e) => e instanceof FocusEvent,
|
|
35723
35650
|
focus: (e) => e instanceof FocusEvent,
|
|
35724
|
-
[INPUT_EVENT]: (val) => isNumber
|
|
35725
|
-
[UPDATE_MODEL_EVENT]: (val) => isNumber
|
|
35651
|
+
[INPUT_EVENT]: (val) => isNumber(val) || isNil(val),
|
|
35652
|
+
[UPDATE_MODEL_EVENT]: (val) => isNumber(val) || isNil(val)
|
|
35726
35653
|
};
|
|
35727
35654
|
|
|
35728
35655
|
const __default__$T = defineComponent({
|
|
@@ -35742,14 +35669,12 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35742
35669
|
userInput: null
|
|
35743
35670
|
});
|
|
35744
35671
|
const { formItem } = useFormItem();
|
|
35745
|
-
const minDisabled = computed(() => isNumber
|
|
35746
|
-
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);
|
|
35747
35674
|
const numPrecision = computed(() => {
|
|
35748
35675
|
const stepPrecision = getPrecision(props.step);
|
|
35749
35676
|
if (!isUndefined(props.precision)) {
|
|
35750
|
-
if (stepPrecision > props.precision)
|
|
35751
|
-
debugWarn("InputNumber", "precision should not be less than the decimal places of step");
|
|
35752
|
-
}
|
|
35677
|
+
if (stepPrecision > props.precision) ;
|
|
35753
35678
|
return props.precision;
|
|
35754
35679
|
} else {
|
|
35755
35680
|
return Math.max(getPrecision(props.modelValue), stepPrecision);
|
|
@@ -35767,7 +35692,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35767
35692
|
let currentValue = data.currentValue;
|
|
35768
35693
|
if (isNil(currentValue))
|
|
35769
35694
|
return "";
|
|
35770
|
-
if (isNumber
|
|
35695
|
+
if (isNumber(currentValue)) {
|
|
35771
35696
|
if (Number.isNaN(currentValue))
|
|
35772
35697
|
return "";
|
|
35773
35698
|
if (!isUndefined(props.precision)) {
|
|
@@ -35807,13 +35732,11 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35807
35732
|
return precision;
|
|
35808
35733
|
};
|
|
35809
35734
|
const ensurePrecision = (val, coefficient = 1) => {
|
|
35810
|
-
if (!isNumber
|
|
35735
|
+
if (!isNumber(val))
|
|
35811
35736
|
return data.currentValue;
|
|
35812
35737
|
if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
|
|
35813
|
-
debugWarn("InputNumber", "The value has reached the maximum safe integer limit.");
|
|
35814
35738
|
return val;
|
|
35815
35739
|
} else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
|
|
35816
|
-
debugWarn("InputNumber", "The value has reached the minimum safe integer limit.");
|
|
35817
35740
|
return val;
|
|
35818
35741
|
}
|
|
35819
35742
|
return toPrecision(val + props.step * coefficient);
|
|
@@ -35859,7 +35782,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35859
35782
|
const verifyValue = (value, update) => {
|
|
35860
35783
|
const { max, min, step, precision, stepStrictly, valueOnClear } = props;
|
|
35861
35784
|
if (max < min) {
|
|
35862
|
-
throwError
|
|
35785
|
+
throwError("InputNumber", "min should not be greater than max.");
|
|
35863
35786
|
}
|
|
35864
35787
|
let newVal = Number(value);
|
|
35865
35788
|
if (isNil(value) || Number.isNaN(newVal)) {
|
|
@@ -35869,7 +35792,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35869
35792
|
if (valueOnClear === null) {
|
|
35870
35793
|
return null;
|
|
35871
35794
|
}
|
|
35872
|
-
newVal = isString$
|
|
35795
|
+
newVal = isString$1(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
|
35873
35796
|
}
|
|
35874
35797
|
if (stepStrictly) {
|
|
35875
35798
|
newVal = toPrecision(Math.round(toPrecision(newVal / step)) * step, precision);
|
|
@@ -35902,7 +35825,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35902
35825
|
emit(CHANGE_EVENT, newVal, oldVal);
|
|
35903
35826
|
}
|
|
35904
35827
|
if (props.validateEvent) {
|
|
35905
|
-
(_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());
|
|
35906
35829
|
}
|
|
35907
35830
|
data.currentValue = newVal;
|
|
35908
35831
|
};
|
|
@@ -35914,7 +35837,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35914
35837
|
};
|
|
35915
35838
|
const handleInputChange = (value) => {
|
|
35916
35839
|
const newVal = value !== "" ? Number(value) : "";
|
|
35917
|
-
if (isNumber
|
|
35840
|
+
if (isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
|
|
35918
35841
|
setCurrentValue(newVal);
|
|
35919
35842
|
}
|
|
35920
35843
|
setCurrentValueToModelValue();
|
|
@@ -35939,7 +35862,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35939
35862
|
}
|
|
35940
35863
|
emit("blur", event);
|
|
35941
35864
|
if (props.validateEvent) {
|
|
35942
|
-
(_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());
|
|
35943
35866
|
}
|
|
35944
35867
|
};
|
|
35945
35868
|
const setCurrentValueToModelValue = () => {
|
|
@@ -35960,7 +35883,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35960
35883
|
watch(() => props.precision, () => {
|
|
35961
35884
|
data.currentValue = verifyValue(props.modelValue);
|
|
35962
35885
|
});
|
|
35963
|
-
onMounted
|
|
35886
|
+
onMounted(() => {
|
|
35964
35887
|
var _a;
|
|
35965
35888
|
const { min, max, modelValue } = props;
|
|
35966
35889
|
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
@@ -35977,7 +35900,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
35977
35900
|
}
|
|
35978
35901
|
innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
|
|
35979
35902
|
innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
|
|
35980
|
-
if (!isNumber
|
|
35903
|
+
if (!isNumber(modelValue) && modelValue != null) {
|
|
35981
35904
|
let val = Number(modelValue);
|
|
35982
35905
|
if (Number.isNaN(val)) {
|
|
35983
35906
|
val = null;
|
|
@@ -36156,10 +36079,10 @@ const inputTagProps = buildProps({
|
|
|
36156
36079
|
const inputTagEmits = {
|
|
36157
36080
|
[UPDATE_MODEL_EVENT]: (value) => isArray$1(value) || isUndefined(value),
|
|
36158
36081
|
[CHANGE_EVENT]: (value) => isArray$1(value) || isUndefined(value),
|
|
36159
|
-
[INPUT_EVENT]: (value) => isString$
|
|
36160
|
-
"add-tag": (value) => isString$
|
|
36161
|
-
"remove-tag": (value, index) => isString$
|
|
36162
|
-
"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),
|
|
36163
36086
|
focus: (evt) => evt instanceof FocusEvent,
|
|
36164
36087
|
blur: (evt) => evt instanceof FocusEvent,
|
|
36165
36088
|
clear: () => true
|
|
@@ -36417,7 +36340,7 @@ function useInputTag({ props, emit, formItem }) {
|
|
|
36417
36340
|
inputValue.value = void 0;
|
|
36418
36341
|
}
|
|
36419
36342
|
if (props.validateEvent) {
|
|
36420
|
-
(_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());
|
|
36421
36344
|
}
|
|
36422
36345
|
}
|
|
36423
36346
|
});
|
|
@@ -36430,7 +36353,7 @@ function useInputTag({ props, emit, formItem }) {
|
|
|
36430
36353
|
watch(() => props.modelValue, () => {
|
|
36431
36354
|
var _a;
|
|
36432
36355
|
if (props.validateEvent) {
|
|
36433
|
-
(_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());
|
|
36434
36357
|
}
|
|
36435
36358
|
});
|
|
36436
36359
|
return {
|
|
@@ -37179,10 +37102,10 @@ var SubMenu = defineComponent({
|
|
|
37179
37102
|
const nsSubMenu = useNamespace("sub-menu");
|
|
37180
37103
|
const rootMenu = inject(MENU_INJECTION_KEY);
|
|
37181
37104
|
if (!rootMenu)
|
|
37182
|
-
throwError
|
|
37105
|
+
throwError(COMPONENT_NAME$d, "can not inject root menu");
|
|
37183
37106
|
const subMenu = inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
|
|
37184
37107
|
if (!subMenu)
|
|
37185
|
-
throwError
|
|
37108
|
+
throwError(COMPONENT_NAME$d, "can not inject sub menu");
|
|
37186
37109
|
const items = ref({});
|
|
37187
37110
|
const subMenus = ref({});
|
|
37188
37111
|
let timeout;
|
|
@@ -37329,7 +37252,7 @@ var SubMenu = defineComponent({
|
|
|
37329
37252
|
expose({
|
|
37330
37253
|
opened
|
|
37331
37254
|
});
|
|
37332
|
-
onMounted
|
|
37255
|
+
onMounted(() => {
|
|
37333
37256
|
rootMenu.addSubMenu(item);
|
|
37334
37257
|
subMenu.addSubMenu(item);
|
|
37335
37258
|
});
|
|
@@ -37347,7 +37270,7 @@ var SubMenu = defineComponent({
|
|
|
37347
37270
|
transform: opened.value ? props.expandCloseIcon && props.expandOpenIcon || props.collapseCloseIcon && props.collapseOpenIcon && rootMenu.props.collapse ? "none" : "rotateZ(180deg)" : "none"
|
|
37348
37271
|
}
|
|
37349
37272
|
}, {
|
|
37350
|
-
default: () => isString$
|
|
37273
|
+
default: () => isString$1(subMenuTitleIcon.value) ? h$1(instance.appContext.components[subMenuTitleIcon.value]) : h$1(subMenuTitleIcon.value)
|
|
37351
37274
|
})
|
|
37352
37275
|
];
|
|
37353
37276
|
const child = rootMenu.isMenuPopup ? h$1(ElTooltip, {
|
|
@@ -37490,11 +37413,11 @@ const menuProps = buildProps({
|
|
|
37490
37413
|
default: true
|
|
37491
37414
|
}
|
|
37492
37415
|
});
|
|
37493
|
-
const checkIndexPath = (indexPath) => isArray$1(indexPath) && indexPath.every((path) => isString$
|
|
37416
|
+
const checkIndexPath = (indexPath) => isArray$1(indexPath) && indexPath.every((path) => isString$1(path));
|
|
37494
37417
|
const menuEmits = {
|
|
37495
|
-
close: (index, indexPath) => isString$
|
|
37496
|
-
open: (index, indexPath) => isString$
|
|
37497
|
-
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)
|
|
37498
37421
|
};
|
|
37499
37422
|
const DEFAULT_MORE_ITEM_WIDTH = 64;
|
|
37500
37423
|
var Menu = defineComponent({
|
|
@@ -37682,7 +37605,7 @@ var Menu = defineComponent({
|
|
|
37682
37605
|
level: 0
|
|
37683
37606
|
});
|
|
37684
37607
|
}
|
|
37685
|
-
onMounted
|
|
37608
|
+
onMounted(() => {
|
|
37686
37609
|
if (props.mode === "horizontal") {
|
|
37687
37610
|
new Menubar(instance.vnode.el, nsMenu.namespace.value);
|
|
37688
37611
|
}
|
|
@@ -37770,7 +37693,7 @@ const menuItemProps = buildProps({
|
|
|
37770
37693
|
disabled: Boolean
|
|
37771
37694
|
});
|
|
37772
37695
|
const menuItemEmits = {
|
|
37773
|
-
click: (item) => isString$
|
|
37696
|
+
click: (item) => isString$1(item.index) && isArray$1(item.indexPath)
|
|
37774
37697
|
};
|
|
37775
37698
|
|
|
37776
37699
|
const COMPONENT_NAME$c = "ElMenuItem";
|
|
@@ -37783,17 +37706,17 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
37783
37706
|
emits: menuItemEmits,
|
|
37784
37707
|
setup(__props, { expose, emit }) {
|
|
37785
37708
|
const props = __props;
|
|
37786
|
-
isPropAbsent(props.index) && debugWarn(
|
|
37709
|
+
isPropAbsent(props.index) && debugWarn();
|
|
37787
37710
|
const instance = getCurrentInstance();
|
|
37788
37711
|
const rootMenu = inject(MENU_INJECTION_KEY);
|
|
37789
37712
|
const nsMenu = useNamespace("menu");
|
|
37790
37713
|
const nsMenuItem = useNamespace("menu-item");
|
|
37791
37714
|
if (!rootMenu)
|
|
37792
|
-
throwError
|
|
37715
|
+
throwError(COMPONENT_NAME$c, "can not inject root menu");
|
|
37793
37716
|
const { parentMenu, indexPath } = useMenu(instance, toRef(props, "index"));
|
|
37794
37717
|
const subMenu = inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
|
|
37795
37718
|
if (!subMenu)
|
|
37796
|
-
throwError
|
|
37719
|
+
throwError(COMPONENT_NAME$c, "can not inject sub menu");
|
|
37797
37720
|
const active = computed(() => props.index === rootMenu.activeIndex);
|
|
37798
37721
|
const item = reactive({
|
|
37799
37722
|
index: props.index,
|
|
@@ -37810,7 +37733,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
37810
37733
|
emit("click", item);
|
|
37811
37734
|
}
|
|
37812
37735
|
};
|
|
37813
|
-
onMounted
|
|
37736
|
+
onMounted(() => {
|
|
37814
37737
|
subMenu.addSubMenu(item);
|
|
37815
37738
|
rootMenu.addMenuItem(item);
|
|
37816
37739
|
});
|
|
@@ -38166,7 +38089,7 @@ const optionProps = buildProps({
|
|
|
38166
38089
|
function useOption$1(props, states) {
|
|
38167
38090
|
const select = inject(selectKey);
|
|
38168
38091
|
if (!select) {
|
|
38169
|
-
throwError
|
|
38092
|
+
throwError(COMPONENT_NAME$b, "usage: <el-select><el-option /></el-select/>");
|
|
38170
38093
|
}
|
|
38171
38094
|
const selectGroup = inject(selectGroupKey, { disabled: false });
|
|
38172
38095
|
const itemSelected = computed(() => {
|
|
@@ -38316,12 +38239,14 @@ function _sfc_render$b(_ctx, _cache) {
|
|
|
38316
38239
|
"aria-disabled": _ctx.isDisabled || void 0,
|
|
38317
38240
|
"aria-selected": _ctx.itemSelected,
|
|
38318
38241
|
onMousemove: _ctx.hoverItem,
|
|
38319
|
-
onClick: withModifiers(_ctx.selectOptionClick, ["stop"])
|
|
38242
|
+
onClick: withModifiers(_ctx.selectOptionClick, ["stop"]),
|
|
38243
|
+
onMousedown: withModifiers(() => {
|
|
38244
|
+
}, ["prevent"])
|
|
38320
38245
|
}, [
|
|
38321
38246
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
38322
38247
|
createElementVNode("span", null, toDisplayString(_ctx.currentLabel), 1)
|
|
38323
38248
|
])
|
|
38324
|
-
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"])), [
|
|
38249
|
+
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick", "onMousedown"])), [
|
|
38325
38250
|
[vShow, _ctx.visible]
|
|
38326
38251
|
]);
|
|
38327
38252
|
}
|
|
@@ -38346,7 +38271,7 @@ const _sfc_main$X = defineComponent({
|
|
|
38346
38271
|
minWidth.value = "";
|
|
38347
38272
|
}
|
|
38348
38273
|
}
|
|
38349
|
-
onMounted
|
|
38274
|
+
onMounted(() => {
|
|
38350
38275
|
updateMinWidth();
|
|
38351
38276
|
useResizeObserver(select.selectRef, updateMinWidth);
|
|
38352
38277
|
});
|
|
@@ -38446,7 +38371,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
38446
38371
|
expanded.value = false;
|
|
38447
38372
|
states.menuVisibleOnFocus = false;
|
|
38448
38373
|
if (props.validateEvent) {
|
|
38449
|
-
(_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());
|
|
38450
38375
|
}
|
|
38451
38376
|
}
|
|
38452
38377
|
});
|
|
@@ -38501,9 +38426,9 @@ const useSelect$3 = (props, emit) => {
|
|
|
38501
38426
|
return props.filterable && props.allowCreate && states.inputValue !== "" && !hasExistingOption;
|
|
38502
38427
|
});
|
|
38503
38428
|
const updateOptions = () => {
|
|
38504
|
-
if (props.filterable && isFunction$
|
|
38429
|
+
if (props.filterable && isFunction$1(props.filterMethod))
|
|
38505
38430
|
return;
|
|
38506
|
-
if (props.filterable && props.remote && isFunction$
|
|
38431
|
+
if (props.filterable && props.remote && isFunction$1(props.remoteMethod))
|
|
38507
38432
|
return;
|
|
38508
38433
|
optionsArray.value.forEach((option) => {
|
|
38509
38434
|
var _a;
|
|
@@ -38542,7 +38467,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
38542
38467
|
}
|
|
38543
38468
|
setSelected();
|
|
38544
38469
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
38545
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
38470
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
38546
38471
|
}
|
|
38547
38472
|
}, {
|
|
38548
38473
|
flush: "post",
|
|
@@ -38568,7 +38493,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
38568
38493
|
flush: "post"
|
|
38569
38494
|
});
|
|
38570
38495
|
watch([() => states.hoveringIndex, optionsArray], ([val]) => {
|
|
38571
|
-
if (isNumber
|
|
38496
|
+
if (isNumber(val) && val > -1) {
|
|
38572
38497
|
hoverOption.value = optionsArray.value[val] || {};
|
|
38573
38498
|
} else {
|
|
38574
38499
|
hoverOption.value = {};
|
|
@@ -38587,9 +38512,9 @@ const useSelect$3 = (props, emit) => {
|
|
|
38587
38512
|
return;
|
|
38588
38513
|
}
|
|
38589
38514
|
states.previousQuery = val;
|
|
38590
|
-
if (props.filterable && isFunction$
|
|
38515
|
+
if (props.filterable && isFunction$1(props.filterMethod)) {
|
|
38591
38516
|
props.filterMethod(val);
|
|
38592
|
-
} else if (props.filterable && props.remote && isFunction$
|
|
38517
|
+
} else if (props.filterable && props.remote && isFunction$1(props.remoteMethod)) {
|
|
38593
38518
|
props.remoteMethod(val);
|
|
38594
38519
|
}
|
|
38595
38520
|
if (props.defaultFirstOption && (props.filterable || props.remote) && filteredOptionsCount.value) {
|
|
@@ -39030,7 +38955,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
39030
38955
|
}
|
|
39031
38956
|
emit("visible-change", newVal);
|
|
39032
38957
|
});
|
|
39033
|
-
onMounted
|
|
38958
|
+
onMounted(() => {
|
|
39034
38959
|
setSelected();
|
|
39035
38960
|
});
|
|
39036
38961
|
return {
|
|
@@ -39125,7 +39050,7 @@ var ElOptions = defineComponent({
|
|
|
39125
39050
|
var _a2, _b2, _c, _d;
|
|
39126
39051
|
const name = (_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name;
|
|
39127
39052
|
if (name === "ElOptionGroup") {
|
|
39128
|
-
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);
|
|
39129
39054
|
} else if (name === "ElOption") {
|
|
39130
39055
|
valueList.push((_d = item.props) == null ? void 0 : _d.value);
|
|
39131
39056
|
} else if (isArray$1(item.children)) {
|
|
@@ -39330,7 +39255,7 @@ const _sfc_main$W = defineComponent({
|
|
|
39330
39255
|
const updateChildren = () => {
|
|
39331
39256
|
children.value = flattedChildren(instance.subTree);
|
|
39332
39257
|
};
|
|
39333
|
-
onMounted
|
|
39258
|
+
onMounted(() => {
|
|
39334
39259
|
updateChildren();
|
|
39335
39260
|
});
|
|
39336
39261
|
useMutationObserver(groupRef, updateChildren, {
|
|
@@ -40318,7 +40243,7 @@ const paginationProps = buildProps({
|
|
|
40318
40243
|
pagerCount: {
|
|
40319
40244
|
type: Number,
|
|
40320
40245
|
validator: (value) => {
|
|
40321
|
-
return isNumber
|
|
40246
|
+
return isNumber(value) && Math.trunc(value) === value && value > 4 && value < 22 && value % 2 === 1;
|
|
40322
40247
|
},
|
|
40323
40248
|
default: 7
|
|
40324
40249
|
},
|
|
@@ -40367,13 +40292,13 @@ const paginationProps = buildProps({
|
|
|
40367
40292
|
appendSizeTo: String
|
|
40368
40293
|
});
|
|
40369
40294
|
const paginationEmits = {
|
|
40370
|
-
"update:current-page": (val) => isNumber
|
|
40371
|
-
"update:page-size": (val) => isNumber
|
|
40372
|
-
"size-change": (val) => isNumber
|
|
40373
|
-
change: (currentPage, pageSize) => isNumber
|
|
40374
|
-
"current-change": (val) => isNumber
|
|
40375
|
-
"prev-click": (val) => isNumber
|
|
40376
|
-
"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)
|
|
40377
40302
|
};
|
|
40378
40303
|
const componentName = "ElPagination";
|
|
40379
40304
|
var Pagination = defineComponent({
|
|
@@ -41098,7 +41023,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
41098
41023
|
function getColors(color) {
|
|
41099
41024
|
const span = 100 / color.length;
|
|
41100
41025
|
const seriesColors = color.map((seriesColor, index) => {
|
|
41101
|
-
if (isString$
|
|
41026
|
+
if (isString$1(seriesColor)) {
|
|
41102
41027
|
return {
|
|
41103
41028
|
color: seriesColor,
|
|
41104
41029
|
percentage: (index + 1) * span
|
|
@@ -41111,9 +41036,9 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
41111
41036
|
const getCurrentColor = (percentage) => {
|
|
41112
41037
|
var _a;
|
|
41113
41038
|
const { color } = props;
|
|
41114
|
-
if (isFunction$
|
|
41039
|
+
if (isFunction$1(color)) {
|
|
41115
41040
|
return color(percentage);
|
|
41116
|
-
} else if (isString$
|
|
41041
|
+
} else if (isString$1(color)) {
|
|
41117
41042
|
return color;
|
|
41118
41043
|
} else {
|
|
41119
41044
|
const colors = getColors(color);
|
|
@@ -41291,8 +41216,8 @@ const rateProps = buildProps({
|
|
|
41291
41216
|
...useAriaProps(["ariaLabel"])
|
|
41292
41217
|
});
|
|
41293
41218
|
const rateEmits = {
|
|
41294
|
-
[CHANGE_EVENT]: (value) => isNumber
|
|
41295
|
-
[UPDATE_MODEL_EVENT]: (value) => isNumber
|
|
41219
|
+
[CHANGE_EVENT]: (value) => isNumber(value),
|
|
41220
|
+
[UPDATE_MODEL_EVENT]: (value) => isNumber(value)
|
|
41296
41221
|
};
|
|
41297
41222
|
|
|
41298
41223
|
const __default__$D = defineComponent({
|
|
@@ -41378,7 +41303,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
41378
41303
|
} : icons;
|
|
41379
41304
|
});
|
|
41380
41305
|
const decimalIconComponent = computed(() => getValueFromMap(props.modelValue, componentMap.value));
|
|
41381
|
-
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));
|
|
41382
41307
|
const activeComponent = computed(() => getValueFromMap(currentValue.value, componentMap.value));
|
|
41383
41308
|
function showDecimalIcon(item) {
|
|
41384
41309
|
const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props.modelValue && item > props.modelValue;
|
|
@@ -42099,7 +42024,7 @@ const createList = ({
|
|
|
42099
42024
|
const states = ref({
|
|
42100
42025
|
isScrolling: false,
|
|
42101
42026
|
scrollDir: "forward",
|
|
42102
|
-
scrollOffset: isNumber
|
|
42027
|
+
scrollOffset: isNumber(props.initScrollOffset) ? props.initScrollOffset : 0,
|
|
42103
42028
|
updateRequested: false,
|
|
42104
42029
|
isScrollbarDragging: false,
|
|
42105
42030
|
scrollbarAlwaysOn: props.scrollbarAlwaysOn
|
|
@@ -42132,8 +42057,8 @@ const createList = ({
|
|
|
42132
42057
|
},
|
|
42133
42058
|
{
|
|
42134
42059
|
direction: props.direction,
|
|
42135
|
-
height: isNumber
|
|
42136
|
-
width: isNumber
|
|
42060
|
+
height: isNumber(props.height) ? `${props.height}px` : props.height,
|
|
42061
|
+
width: isNumber(props.width) ? `${props.width}px` : props.width
|
|
42137
42062
|
},
|
|
42138
42063
|
props.style
|
|
42139
42064
|
]);
|
|
@@ -42277,12 +42202,12 @@ const createList = ({
|
|
|
42277
42202
|
window.scrollTop = 0;
|
|
42278
42203
|
}
|
|
42279
42204
|
};
|
|
42280
|
-
onMounted
|
|
42205
|
+
onMounted(() => {
|
|
42281
42206
|
if (!isClient)
|
|
42282
42207
|
return;
|
|
42283
42208
|
const { initScrollOffset } = props;
|
|
42284
42209
|
const windowElement = unref(windowRef);
|
|
42285
|
-
if (isNumber
|
|
42210
|
+
if (isNumber(initScrollOffset) && windowElement) {
|
|
42286
42211
|
if (unref(_isHorizontal)) {
|
|
42287
42212
|
windowElement.scrollLeft = initScrollOffset;
|
|
42288
42213
|
} else {
|
|
@@ -42393,7 +42318,7 @@ const createList = ({
|
|
|
42393
42318
|
h$1(Inner, mergeProps(ctx.innerProps, {
|
|
42394
42319
|
style: innerStyle,
|
|
42395
42320
|
ref: "innerRef"
|
|
42396
|
-
}), !isString$
|
|
42321
|
+
}), !isString$1(Inner) ? {
|
|
42397
42322
|
default: () => children
|
|
42398
42323
|
} : children)
|
|
42399
42324
|
];
|
|
@@ -42413,7 +42338,7 @@ const createList = ({
|
|
|
42413
42338
|
onScroll,
|
|
42414
42339
|
ref: "windowRef",
|
|
42415
42340
|
key: 0
|
|
42416
|
-
}, !isString$
|
|
42341
|
+
}, !isString$1(Container) ? { default: () => [InnerNode] } : [InnerNode]);
|
|
42417
42342
|
return h$1("div", {
|
|
42418
42343
|
key: 0,
|
|
42419
42344
|
class: [ns.e("wrapper"), states.scrollbarAlwaysOn ? "always-on" : ""]
|
|
@@ -42430,14 +42355,6 @@ const FixedSizeList = createList$1({
|
|
|
42430
42355
|
getEstimatedTotalSize: ({ total, itemSize }) => itemSize * total,
|
|
42431
42356
|
getOffset: ({ height, total, itemSize, layout, width }, index, alignment, scrollOffset) => {
|
|
42432
42357
|
const size = isHorizontal(layout) ? width : height;
|
|
42433
|
-
if (typeof process !== "undefined" && false) {
|
|
42434
|
-
throwError("[ElVirtualList]", `
|
|
42435
|
-
You should set
|
|
42436
|
-
width/height
|
|
42437
|
-
to number when your layout is
|
|
42438
|
-
horizontal/vertical
|
|
42439
|
-
`);
|
|
42440
|
-
}
|
|
42441
42358
|
const lastItemOffset = Math.max(0, total * itemSize - size);
|
|
42442
42359
|
const maxOffset = Math.min(lastItemOffset, index * itemSize);
|
|
42443
42360
|
const minOffset = Math.max(0, (index + 1) * itemSize - size);
|
|
@@ -42631,13 +42548,6 @@ const DynamicSizeList = createList$1({
|
|
|
42631
42548
|
},
|
|
42632
42549
|
clearCache: false,
|
|
42633
42550
|
validateProps: ({ itemSize }) => {
|
|
42634
|
-
if (typeof process !== "undefined" && false) {
|
|
42635
|
-
if (typeof itemSize !== "function") {
|
|
42636
|
-
throwError(SCOPE, `
|
|
42637
|
-
itemSize is required as function, but the given value was ${typeof itemSize}
|
|
42638
|
-
`);
|
|
42639
|
-
}
|
|
42640
|
-
}
|
|
42641
42551
|
}
|
|
42642
42552
|
});
|
|
42643
42553
|
var DynamicSizeList$1 = DynamicSizeList;
|
|
@@ -42761,8 +42671,8 @@ const createGrid = ({
|
|
|
42761
42671
|
const innerRef = ref();
|
|
42762
42672
|
const states = ref({
|
|
42763
42673
|
isScrolling: false,
|
|
42764
|
-
scrollLeft: isNumber
|
|
42765
|
-
scrollTop: isNumber
|
|
42674
|
+
scrollLeft: isNumber(props.initScrollLeft) ? props.initScrollLeft : 0,
|
|
42675
|
+
scrollTop: isNumber(props.initScrollTop) ? props.initScrollTop : 0,
|
|
42766
42676
|
updateRequested: false,
|
|
42767
42677
|
xAxisScrollDir: FORWARD,
|
|
42768
42678
|
yAxisScrollDir: FORWARD
|
|
@@ -42817,8 +42727,8 @@ const createGrid = ({
|
|
|
42817
42727
|
},
|
|
42818
42728
|
{
|
|
42819
42729
|
direction: props.direction,
|
|
42820
|
-
height: isNumber
|
|
42821
|
-
width: isNumber
|
|
42730
|
+
height: isNumber(props.height) ? `${props.height}px` : props.height,
|
|
42731
|
+
width: isNumber(props.width) ? `${props.width}px` : props.width
|
|
42822
42732
|
},
|
|
42823
42733
|
(_a = props.style) != null ? _a : {}
|
|
42824
42734
|
];
|
|
@@ -43005,16 +42915,16 @@ const createGrid = ({
|
|
|
43005
42915
|
getItemStyleCache.value(-1, null, null);
|
|
43006
42916
|
});
|
|
43007
42917
|
};
|
|
43008
|
-
onMounted
|
|
42918
|
+
onMounted(() => {
|
|
43009
42919
|
if (!isClient)
|
|
43010
42920
|
return;
|
|
43011
42921
|
const { initScrollLeft, initScrollTop } = props;
|
|
43012
42922
|
const windowElement = unref(windowRef);
|
|
43013
42923
|
if (windowElement) {
|
|
43014
|
-
if (isNumber
|
|
42924
|
+
if (isNumber(initScrollLeft)) {
|
|
43015
42925
|
windowElement.scrollLeft = initScrollLeft;
|
|
43016
42926
|
}
|
|
43017
|
-
if (isNumber
|
|
42927
|
+
if (isNumber(initScrollTop)) {
|
|
43018
42928
|
windowElement.scrollTop = initScrollTop;
|
|
43019
42929
|
}
|
|
43020
42930
|
}
|
|
@@ -43138,7 +43048,7 @@ const createGrid = ({
|
|
|
43138
43048
|
h$1(Inner, mergeProps(props.innerProps, {
|
|
43139
43049
|
style: unref(innerStyle),
|
|
43140
43050
|
ref: innerRef
|
|
43141
|
-
}), !isString$
|
|
43051
|
+
}), !isString$1(Inner) ? {
|
|
43142
43052
|
default: () => children
|
|
43143
43053
|
} : children)
|
|
43144
43054
|
];
|
|
@@ -43157,7 +43067,7 @@ const createGrid = ({
|
|
|
43157
43067
|
style: unref(windowStyle),
|
|
43158
43068
|
onScroll,
|
|
43159
43069
|
ref: windowRef
|
|
43160
|
-
}, !isString$
|
|
43070
|
+
}, !isString$1(Container) ? { default: () => Inner } : Inner),
|
|
43161
43071
|
horizontalScrollbar,
|
|
43162
43072
|
verticalScrollbar
|
|
43163
43073
|
]);
|
|
@@ -43275,20 +43185,6 @@ const FixedSizeGrid = createGrid$1({
|
|
|
43275
43185
|
initCache: () => void 0,
|
|
43276
43186
|
clearCache: true,
|
|
43277
43187
|
validateProps: ({ columnWidth, rowHeight }) => {
|
|
43278
|
-
if (typeof process !== "undefined" && false) {
|
|
43279
|
-
if (!isNumber(columnWidth)) {
|
|
43280
|
-
throwError(SCOPE, `
|
|
43281
|
-
"columnWidth" must be passed as number,
|
|
43282
|
-
instead ${typeof columnWidth} was given.
|
|
43283
|
-
`);
|
|
43284
|
-
}
|
|
43285
|
-
if (!isNumber(rowHeight)) {
|
|
43286
|
-
throwError(SCOPE, `
|
|
43287
|
-
"columnWidth" must be passed as number,
|
|
43288
|
-
instead ${typeof rowHeight} was given.
|
|
43289
|
-
`);
|
|
43290
|
-
}
|
|
43291
|
-
}
|
|
43292
43188
|
}
|
|
43293
43189
|
});
|
|
43294
43190
|
var FixedSizeGrid$1 = FixedSizeGrid;
|
|
@@ -43473,10 +43369,10 @@ const DynamicSizeGrid = createGrid$1({
|
|
|
43473
43369
|
const resetAfter = ({ columnIndex, rowIndex }, forceUpdate) => {
|
|
43474
43370
|
var _a, _b;
|
|
43475
43371
|
forceUpdate = isUndefined(forceUpdate) ? true : forceUpdate;
|
|
43476
|
-
if (isNumber
|
|
43372
|
+
if (isNumber(columnIndex)) {
|
|
43477
43373
|
cache.value.lastVisitedColumnIndex = Math.min(cache.value.lastVisitedColumnIndex, columnIndex - 1);
|
|
43478
43374
|
}
|
|
43479
|
-
if (isNumber
|
|
43375
|
+
if (isNumber(rowIndex)) {
|
|
43480
43376
|
cache.value.lastVisitedRowIndex = Math.min(cache.value.lastVisitedRowIndex, rowIndex - 1);
|
|
43481
43377
|
}
|
|
43482
43378
|
(_a = instance.exposed) == null ? void 0 : _a.getItemStyleCache.value(-1, null, null);
|
|
@@ -43515,20 +43411,6 @@ const DynamicSizeGrid = createGrid$1({
|
|
|
43515
43411
|
},
|
|
43516
43412
|
clearCache: false,
|
|
43517
43413
|
validateProps: ({ columnWidth, rowHeight }) => {
|
|
43518
|
-
if (typeof process !== "undefined" && false) {
|
|
43519
|
-
if (!isFunction(columnWidth)) {
|
|
43520
|
-
throwError(SCOPE, `
|
|
43521
|
-
"columnWidth" must be passed as function,
|
|
43522
|
-
instead ${typeof columnWidth} was given.
|
|
43523
|
-
`);
|
|
43524
|
-
}
|
|
43525
|
-
if (!isFunction(rowHeight)) {
|
|
43526
|
-
throwError(SCOPE, `
|
|
43527
|
-
"rowHeight" must be passed as function,
|
|
43528
|
-
instead ${typeof rowHeight} was given.
|
|
43529
|
-
`);
|
|
43530
|
-
}
|
|
43531
|
-
}
|
|
43532
43414
|
}
|
|
43533
43415
|
});
|
|
43534
43416
|
var DynamicSizeGrid$1 = DynamicSizeGrid;
|
|
@@ -43705,7 +43587,7 @@ const selectV2Props = buildProps({
|
|
|
43705
43587
|
type: [Boolean, Number],
|
|
43706
43588
|
default: true,
|
|
43707
43589
|
validator(val) {
|
|
43708
|
-
return isBoolean(val) || isNumber
|
|
43590
|
+
return isBoolean(val) || isNumber(val);
|
|
43709
43591
|
}
|
|
43710
43592
|
},
|
|
43711
43593
|
suffixIcon: {
|
|
@@ -43738,7 +43620,7 @@ const selectV2Emits = {
|
|
|
43738
43620
|
clear: () => true
|
|
43739
43621
|
};
|
|
43740
43622
|
const optionV2Emits = {
|
|
43741
|
-
hover: (index) => isNumber
|
|
43623
|
+
hover: (index) => isNumber(index),
|
|
43742
43624
|
select: (val, index) => true
|
|
43743
43625
|
};
|
|
43744
43626
|
|
|
@@ -43777,7 +43659,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43777
43659
|
_ctx.ns.is("hovering", _ctx.hovering)
|
|
43778
43660
|
]),
|
|
43779
43661
|
onMousemove: _ctx.hoverItem,
|
|
43780
|
-
onClick: withModifiers(_ctx.selectOptionClick, ["stop"])
|
|
43662
|
+
onClick: withModifiers(_ctx.selectOptionClick, ["stop"]),
|
|
43663
|
+
onMousedown: withModifiers(() => {
|
|
43664
|
+
}, ["prevent"])
|
|
43781
43665
|
}, [
|
|
43782
43666
|
renderSlot(_ctx.$slots, "default", {
|
|
43783
43667
|
item: _ctx.item,
|
|
@@ -43786,7 +43670,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43786
43670
|
}, () => [
|
|
43787
43671
|
createElementVNode("span", null, toDisplayString(_ctx.getLabel(_ctx.item)), 1)
|
|
43788
43672
|
])
|
|
43789
|
-
], 46, ["id", "aria-selected", "aria-disabled", "onMousemove", "onClick"]);
|
|
43673
|
+
], 46, ["id", "aria-selected", "aria-disabled", "onMousemove", "onClick", "onMousedown"]);
|
|
43790
43674
|
}
|
|
43791
43675
|
var OptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$6], ["__file", "option-item.vue"]]);
|
|
43792
43676
|
|
|
@@ -44164,7 +44048,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
44164
44048
|
expanded.value = false;
|
|
44165
44049
|
states.menuVisibleOnFocus = false;
|
|
44166
44050
|
if (props.validateEvent) {
|
|
44167
|
-
(_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());
|
|
44168
44052
|
}
|
|
44169
44053
|
}
|
|
44170
44054
|
});
|
|
@@ -44213,8 +44097,8 @@ const useSelect$1 = (props, emit) => {
|
|
|
44213
44097
|
}
|
|
44214
44098
|
return null;
|
|
44215
44099
|
});
|
|
44216
|
-
const isFilterMethodValid = computed(() => props.filterable && isFunction$
|
|
44217
|
-
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));
|
|
44218
44102
|
const filterOptions = (query) => {
|
|
44219
44103
|
const regexp = new RegExp(escapeStringRegexp(query), "i");
|
|
44220
44104
|
const isValidOption = (o) => {
|
|
@@ -44263,7 +44147,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
44263
44147
|
const collapseTagSize = computed(() => selectSize.value === "small" ? "small" : "default");
|
|
44264
44148
|
const calculatePopperSize = () => {
|
|
44265
44149
|
var _a;
|
|
44266
|
-
if (isNumber
|
|
44150
|
+
if (isNumber(props.fitInputWidth)) {
|
|
44267
44151
|
popperSize.value = props.fitInputWidth;
|
|
44268
44152
|
return;
|
|
44269
44153
|
}
|
|
@@ -44393,9 +44277,9 @@ const useSelect$1 = (props, emit) => {
|
|
|
44393
44277
|
return;
|
|
44394
44278
|
}
|
|
44395
44279
|
states.previousQuery = val;
|
|
44396
|
-
if (props.filterable && isFunction$
|
|
44280
|
+
if (props.filterable && isFunction$1(props.filterMethod)) {
|
|
44397
44281
|
props.filterMethod(val);
|
|
44398
|
-
} else if (props.filterable && props.remote && isFunction$
|
|
44282
|
+
} else if (props.filterable && props.remote && isFunction$1(props.remoteMethod)) {
|
|
44399
44283
|
props.remoteMethod(val);
|
|
44400
44284
|
}
|
|
44401
44285
|
if (props.defaultFirstOption && (props.filterable || props.remote) && filteredOptions.value.length) {
|
|
@@ -44737,7 +44621,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
44737
44621
|
initStates(true);
|
|
44738
44622
|
}
|
|
44739
44623
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
44740
|
-
(_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());
|
|
44741
44625
|
}
|
|
44742
44626
|
}, {
|
|
44743
44627
|
deep: true
|
|
@@ -44770,14 +44654,13 @@ const useSelect$1 = (props, emit) => {
|
|
|
44770
44654
|
v = get(optionValue, valueKey);
|
|
44771
44655
|
}
|
|
44772
44656
|
if (duplicateValue.get(v)) {
|
|
44773
|
-
debugWarn("ElSelectV2", `The option values you provided seem to be duplicated, which may cause some problems, please check.`);
|
|
44774
44657
|
break;
|
|
44775
44658
|
} else {
|
|
44776
44659
|
duplicateValue.set(v, true);
|
|
44777
44660
|
}
|
|
44778
44661
|
}
|
|
44779
44662
|
});
|
|
44780
|
-
onMounted
|
|
44663
|
+
onMounted(() => {
|
|
44781
44664
|
initStates();
|
|
44782
44665
|
});
|
|
44783
44666
|
useResizeObserver(selectRef, handleResize);
|
|
@@ -45473,7 +45356,7 @@ const sliderProps = buildProps({
|
|
|
45473
45356
|
},
|
|
45474
45357
|
...useAriaProps(["ariaLabel"])
|
|
45475
45358
|
});
|
|
45476
|
-
const isValidValue$1 = (value) => isNumber
|
|
45359
|
+
const isValidValue$1 = (value) => isNumber(value) || isArray$1(value) && value.every(isNumber);
|
|
45477
45360
|
const sliderEmits = {
|
|
45478
45361
|
[UPDATE_MODEL_EVENT]: isValidValue$1,
|
|
45479
45362
|
[INPUT_EVENT]: isValidValue$1,
|
|
@@ -45482,7 +45365,7 @@ const sliderEmits = {
|
|
|
45482
45365
|
|
|
45483
45366
|
const useLifecycle = (props, initData, resetSize) => {
|
|
45484
45367
|
const sliderWrapper = ref();
|
|
45485
|
-
onMounted
|
|
45368
|
+
onMounted(async () => {
|
|
45486
45369
|
if (props.range) {
|
|
45487
45370
|
if (isArray$1(props.modelValue)) {
|
|
45488
45371
|
initData.firstValue = Math.max(props.min, props.modelValue[0]);
|
|
@@ -45493,7 +45376,7 @@ const useLifecycle = (props, initData, resetSize) => {
|
|
|
45493
45376
|
}
|
|
45494
45377
|
initData.oldValue = [initData.firstValue, initData.secondValue];
|
|
45495
45378
|
} else {
|
|
45496
|
-
if (!isNumber
|
|
45379
|
+
if (!isNumber(props.modelValue) || Number.isNaN(props.modelValue)) {
|
|
45497
45380
|
initData.firstValue = props.min;
|
|
45498
45381
|
} else {
|
|
45499
45382
|
initData.firstValue = Math.min(props.max, Math.max(props.min, props.modelValue));
|
|
@@ -45914,7 +45797,6 @@ const useStops = (props, initData, minValue, maxValue) => {
|
|
|
45914
45797
|
if (!props.showStops || props.min > props.max)
|
|
45915
45798
|
return [];
|
|
45916
45799
|
if (props.step === 0) {
|
|
45917
|
-
debugWarn("ElSlider", "step should not be 0.");
|
|
45918
45800
|
return [];
|
|
45919
45801
|
}
|
|
45920
45802
|
const stopCount = Math.ceil((props.max - props.min) / props.step);
|
|
@@ -45952,7 +45834,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
45952
45834
|
const setValues = () => {
|
|
45953
45835
|
var _a, _b;
|
|
45954
45836
|
if (props.min > props.max) {
|
|
45955
|
-
throwError
|
|
45837
|
+
throwError("Slider", "min should not be greater than max.");
|
|
45956
45838
|
}
|
|
45957
45839
|
const val = props.modelValue;
|
|
45958
45840
|
if (props.range && isArray$1(val)) {
|
|
@@ -45969,12 +45851,12 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
45969
45851
|
initData.secondValue = val[1];
|
|
45970
45852
|
if (valueChanged()) {
|
|
45971
45853
|
if (props.validateEvent) {
|
|
45972
|
-
(_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());
|
|
45973
45855
|
}
|
|
45974
45856
|
initData.oldValue = val.slice();
|
|
45975
45857
|
}
|
|
45976
45858
|
}
|
|
45977
|
-
} else if (!props.range && isNumber
|
|
45859
|
+
} else if (!props.range && isNumber(val) && !Number.isNaN(val)) {
|
|
45978
45860
|
if (val < props.min) {
|
|
45979
45861
|
_emit(props.min);
|
|
45980
45862
|
} else if (val > props.max) {
|
|
@@ -45983,7 +45865,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
45983
45865
|
initData.firstValue = val;
|
|
45984
45866
|
if (valueChanged()) {
|
|
45985
45867
|
if (props.validateEvent) {
|
|
45986
|
-
(_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());
|
|
45987
45869
|
}
|
|
45988
45870
|
initData.oldValue = val;
|
|
45989
45871
|
}
|
|
@@ -46023,7 +45905,7 @@ const sliderButtonProps = buildProps({
|
|
|
46023
45905
|
}
|
|
46024
45906
|
});
|
|
46025
45907
|
const sliderButtonEmits = {
|
|
46026
|
-
[UPDATE_MODEL_EVENT]: (value) => isNumber
|
|
45908
|
+
[UPDATE_MODEL_EVENT]: (value) => isNumber(value)
|
|
46027
45909
|
};
|
|
46028
45910
|
|
|
46029
45911
|
const __default__$z = defineComponent({
|
|
@@ -46125,9 +46007,9 @@ var SliderMarker = defineComponent({
|
|
|
46125
46007
|
setup(props) {
|
|
46126
46008
|
const ns = useNamespace("slider");
|
|
46127
46009
|
const label = computed(() => {
|
|
46128
|
-
return isString$
|
|
46010
|
+
return isString$1(props.mark) ? props.mark : props.mark.label;
|
|
46129
46011
|
});
|
|
46130
|
-
const style = computed(() => isString$
|
|
46012
|
+
const style = computed(() => isString$1(props.mark) ? void 0 : props.mark.style);
|
|
46131
46013
|
return () => h$1("div", {
|
|
46132
46014
|
class: ns.e("marks-text"),
|
|
46133
46015
|
style: style.value
|
|
@@ -46405,7 +46287,7 @@ function useSpace(props) {
|
|
|
46405
46287
|
verticalSize.value = v;
|
|
46406
46288
|
} else {
|
|
46407
46289
|
let val;
|
|
46408
|
-
if (isNumber
|
|
46290
|
+
if (isNumber(size)) {
|
|
46409
46291
|
val = size;
|
|
46410
46292
|
} else {
|
|
46411
46293
|
val = SIZE_MAP[size || "small"] || SIZE_MAP.small;
|
|
@@ -46458,7 +46340,7 @@ const spaceProps = buildProps({
|
|
|
46458
46340
|
spacer: {
|
|
46459
46341
|
type: definePropType([Object, String, Number, Array]),
|
|
46460
46342
|
default: null,
|
|
46461
|
-
validator: (val) => isVNode(val) || isNumber
|
|
46343
|
+
validator: (val) => isVNode(val) || isNumber(val) || isString$1(val)
|
|
46462
46344
|
},
|
|
46463
46345
|
wrap: Boolean,
|
|
46464
46346
|
fill: Boolean,
|
|
@@ -46470,7 +46352,7 @@ const spaceProps = buildProps({
|
|
|
46470
46352
|
type: [String, Array, Number],
|
|
46471
46353
|
values: componentSizes,
|
|
46472
46354
|
validator: (val) => {
|
|
46473
|
-
return isNumber
|
|
46355
|
+
return isNumber(val) || isArray$1(val) && val.length === 2 && val.every(isNumber);
|
|
46474
46356
|
}
|
|
46475
46357
|
}
|
|
46476
46358
|
});
|
|
@@ -46589,9 +46471,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
46589
46471
|
const ns = useNamespace("statistic");
|
|
46590
46472
|
const displayValue = computed(() => {
|
|
46591
46473
|
const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
|
|
46592
|
-
if (isFunction$
|
|
46474
|
+
if (isFunction$1(formatter))
|
|
46593
46475
|
return formatter(value);
|
|
46594
|
-
if (!isNumber
|
|
46476
|
+
if (!isNumber(value) || Number.isNaN(value))
|
|
46595
46477
|
return value;
|
|
46596
46478
|
let [integer, decimal = ""] = String(value).split(".");
|
|
46597
46479
|
decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
|
|
@@ -46663,7 +46545,7 @@ const countdownProps = buildProps({
|
|
|
46663
46545
|
});
|
|
46664
46546
|
const countdownEmits = {
|
|
46665
46547
|
finish: () => true,
|
|
46666
|
-
[CHANGE_EVENT]: (value) => isNumber
|
|
46548
|
+
[CHANGE_EVENT]: (value) => isNumber(value)
|
|
46667
46549
|
};
|
|
46668
46550
|
|
|
46669
46551
|
const timeUnits = [
|
|
@@ -46676,7 +46558,7 @@ const timeUnits = [
|
|
|
46676
46558
|
["S", 1]
|
|
46677
46559
|
];
|
|
46678
46560
|
const getTime = (value) => {
|
|
46679
|
-
return isNumber
|
|
46561
|
+
return isNumber(value) ? new Date(value).getTime() : value.valueOf();
|
|
46680
46562
|
};
|
|
46681
46563
|
const formatTime$1 = (timestamp, format) => {
|
|
46682
46564
|
let timeLeft = timestamp;
|
|
@@ -46728,7 +46610,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
46728
46610
|
};
|
|
46729
46611
|
timer = rAF(frameFunc);
|
|
46730
46612
|
};
|
|
46731
|
-
onMounted
|
|
46613
|
+
onMounted(() => {
|
|
46732
46614
|
rawValue.value = getTime(props.value) - Date.now();
|
|
46733
46615
|
watch(() => [props.value, props.format], () => {
|
|
46734
46616
|
stopTimer();
|
|
@@ -46802,7 +46684,7 @@ const stepsProps = buildProps({
|
|
|
46802
46684
|
}
|
|
46803
46685
|
});
|
|
46804
46686
|
const stepsEmits = {
|
|
46805
|
-
[CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber
|
|
46687
|
+
[CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
|
|
46806
46688
|
};
|
|
46807
46689
|
|
|
46808
46690
|
const STEPS_INJECTION_KEY = "ElSteps";
|
|
@@ -46879,7 +46761,7 @@ const _sfc_main$B = defineComponent({
|
|
|
46879
46761
|
const currentInstance = getCurrentInstance();
|
|
46880
46762
|
let stepDiff = 0;
|
|
46881
46763
|
let beforeActive = 0;
|
|
46882
|
-
onMounted
|
|
46764
|
+
onMounted(() => {
|
|
46883
46765
|
watch([
|
|
46884
46766
|
() => parent.props.active,
|
|
46885
46767
|
() => parent.props.processStatus,
|
|
@@ -46926,7 +46808,7 @@ const _sfc_main$B = defineComponent({
|
|
|
46926
46808
|
});
|
|
46927
46809
|
const style = computed(() => {
|
|
46928
46810
|
const style2 = {
|
|
46929
|
-
flexBasis: isNumber
|
|
46811
|
+
flexBasis: isNumber(space.value) ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
|
|
46930
46812
|
};
|
|
46931
46813
|
if (isVertical.value)
|
|
46932
46814
|
return style2;
|
|
@@ -47125,9 +47007,9 @@ const switchProps = buildProps({
|
|
|
47125
47007
|
...useAriaProps(["ariaLabel"])
|
|
47126
47008
|
});
|
|
47127
47009
|
const switchEmits = {
|
|
47128
|
-
[UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$
|
|
47129
|
-
[CHANGE_EVENT]: (val) => isBoolean(val) || isString$
|
|
47130
|
-
[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)
|
|
47131
47013
|
};
|
|
47132
47014
|
|
|
47133
47015
|
const COMPONENT_NAME$9 = "ElSwitch";
|
|
@@ -47189,7 +47071,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
47189
47071
|
var _a;
|
|
47190
47072
|
input.value.checked = val;
|
|
47191
47073
|
if (props.validateEvent) {
|
|
47192
|
-
(_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());
|
|
47193
47075
|
}
|
|
47194
47076
|
});
|
|
47195
47077
|
const handleChange = () => {
|
|
@@ -47215,7 +47097,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
47215
47097
|
isBoolean(shouldChange)
|
|
47216
47098
|
].includes(true);
|
|
47217
47099
|
if (!isPromiseOrBool) {
|
|
47218
|
-
throwError
|
|
47100
|
+
throwError(COMPONENT_NAME$9, "beforeChange must return type `Promise<boolean>` or `boolean`");
|
|
47219
47101
|
}
|
|
47220
47102
|
if (isPromise(shouldChange)) {
|
|
47221
47103
|
shouldChange.then((result) => {
|
|
@@ -47223,7 +47105,6 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
47223
47105
|
handleChange();
|
|
47224
47106
|
}
|
|
47225
47107
|
}).catch((e) => {
|
|
47226
|
-
debugWarn(COMPONENT_NAME$9, `some error occurred: ${e}`);
|
|
47227
47108
|
});
|
|
47228
47109
|
} else if (shouldChange) {
|
|
47229
47110
|
handleChange();
|
|
@@ -47233,7 +47114,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
47233
47114
|
var _a, _b;
|
|
47234
47115
|
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
47235
47116
|
};
|
|
47236
|
-
onMounted
|
|
47117
|
+
onMounted(() => {
|
|
47237
47118
|
input.value.checked = checked.value;
|
|
47238
47119
|
});
|
|
47239
47120
|
expose({
|
|
@@ -47359,7 +47240,7 @@ const orderBy = function(array, sortKey, reverse, sortMethod, sortBy) {
|
|
|
47359
47240
|
if (!sortKey && !sortMethod && (!sortBy || isArray$1(sortBy) && !sortBy.length)) {
|
|
47360
47241
|
return array;
|
|
47361
47242
|
}
|
|
47362
|
-
if (isString$
|
|
47243
|
+
if (isString$1(reverse)) {
|
|
47363
47244
|
reverse = reverse === "descending" ? -1 : 1;
|
|
47364
47245
|
} else {
|
|
47365
47246
|
reverse = reverse && reverse < 0 ? -1 : 1;
|
|
@@ -47367,7 +47248,7 @@ const orderBy = function(array, sortKey, reverse, sortMethod, sortBy) {
|
|
|
47367
47248
|
const getKey = sortMethod ? null : function(value, index) {
|
|
47368
47249
|
if (sortBy) {
|
|
47369
47250
|
return flatMap(castArray$1(sortBy), (by) => {
|
|
47370
|
-
if (isString$
|
|
47251
|
+
if (isString$1(by)) {
|
|
47371
47252
|
return get(value, by);
|
|
47372
47253
|
} else {
|
|
47373
47254
|
return by(value, index, array);
|
|
@@ -47430,7 +47311,7 @@ const getColumnByKey = function(table, columnKey) {
|
|
|
47430
47311
|
}
|
|
47431
47312
|
}
|
|
47432
47313
|
if (!column)
|
|
47433
|
-
throwError
|
|
47314
|
+
throwError("ElTable", `No column matching with column-key: ${columnKey}`);
|
|
47434
47315
|
return column;
|
|
47435
47316
|
};
|
|
47436
47317
|
const getColumnByCell = function(table, cell, namespace) {
|
|
@@ -47443,7 +47324,7 @@ const getColumnByCell = function(table, cell, namespace) {
|
|
|
47443
47324
|
const getRowIdentity = (row, rowKey) => {
|
|
47444
47325
|
if (!row)
|
|
47445
47326
|
throw new Error("Row is required when get row identity");
|
|
47446
|
-
if (isString$
|
|
47327
|
+
if (isString$1(rowKey)) {
|
|
47447
47328
|
if (!rowKey.includes(".")) {
|
|
47448
47329
|
return `${row[rowKey]}`;
|
|
47449
47330
|
}
|
|
@@ -47453,7 +47334,7 @@ const getRowIdentity = (row, rowKey) => {
|
|
|
47453
47334
|
current = current[element];
|
|
47454
47335
|
}
|
|
47455
47336
|
return `${current}`;
|
|
47456
|
-
} else if (isFunction$
|
|
47337
|
+
} else if (isFunction$1(rowKey)) {
|
|
47457
47338
|
return rowKey.call(null, row);
|
|
47458
47339
|
}
|
|
47459
47340
|
return "";
|
|
@@ -47511,10 +47392,10 @@ function parseMinWidth(minWidth) {
|
|
|
47511
47392
|
return minWidth;
|
|
47512
47393
|
}
|
|
47513
47394
|
function parseHeight(height) {
|
|
47514
|
-
if (isNumber
|
|
47395
|
+
if (isNumber(height)) {
|
|
47515
47396
|
return height;
|
|
47516
47397
|
}
|
|
47517
|
-
if (isString$
|
|
47398
|
+
if (isString$1(height)) {
|
|
47518
47399
|
if (/^\d+(?:px)?$/.test(height)) {
|
|
47519
47400
|
return Number.parseInt(height, 10);
|
|
47520
47401
|
} else {
|
|
@@ -47617,7 +47498,7 @@ const getTableOverflowTooltipProps = (props, innerText, row, column) => {
|
|
|
47617
47498
|
strategy: "fixed",
|
|
47618
47499
|
...props.popperOptions
|
|
47619
47500
|
};
|
|
47620
|
-
const tooltipFormatterContent = isFunction$
|
|
47501
|
+
const tooltipFormatterContent = isFunction$1(column == null ? void 0 : column.tooltipFormatter) ? column.tooltipFormatter({
|
|
47621
47502
|
row,
|
|
47622
47503
|
column,
|
|
47623
47504
|
cellValue: getProp(row, column.property).value
|
|
@@ -48133,7 +48014,7 @@ function useTree$2(watcherData) {
|
|
|
48133
48014
|
|
|
48134
48015
|
const sortData = (data, states) => {
|
|
48135
48016
|
const sortingColumn = states.sortingColumn;
|
|
48136
|
-
if (!sortingColumn || isString$
|
|
48017
|
+
if (!sortingColumn || isString$1(sortingColumn.sortable)) {
|
|
48137
48018
|
return data;
|
|
48138
48019
|
}
|
|
48139
48020
|
return orderBy(data, states.sortProp, states.sortOrder, sortingColumn.sortMethod, sortingColumn.sortBy);
|
|
@@ -48420,7 +48301,7 @@ function useWatcher$1() {
|
|
|
48420
48301
|
const keys = Object.keys(panels);
|
|
48421
48302
|
if (!keys.length)
|
|
48422
48303
|
return;
|
|
48423
|
-
if (isString$
|
|
48304
|
+
if (isString$1(columnKeys)) {
|
|
48424
48305
|
columnKeys = [columnKeys];
|
|
48425
48306
|
}
|
|
48426
48307
|
if (isArray$1(columnKeys)) {
|
|
@@ -48874,10 +48755,10 @@ class TableLayout {
|
|
|
48874
48755
|
nextTick(() => this.setHeight(value, prop));
|
|
48875
48756
|
return;
|
|
48876
48757
|
}
|
|
48877
|
-
if (el && isNumber
|
|
48758
|
+
if (el && isNumber(value)) {
|
|
48878
48759
|
el.style[prop] = `${value}px`;
|
|
48879
48760
|
this.updateElsHeight();
|
|
48880
|
-
} else if (el && isString$
|
|
48761
|
+
} else if (el && isString$1(value)) {
|
|
48881
48762
|
el.style[prop] = value;
|
|
48882
48763
|
this.updateElsHeight();
|
|
48883
48764
|
}
|
|
@@ -48921,9 +48802,9 @@ class TableLayout {
|
|
|
48921
48802
|
const bodyWidth = (_a = this.table.vnode.el) == null ? void 0 : _a.clientWidth;
|
|
48922
48803
|
let bodyMinWidth = 0;
|
|
48923
48804
|
const flattenColumns = this.getFlattenColumns();
|
|
48924
|
-
const flexColumns = flattenColumns.filter((column) => !isNumber
|
|
48805
|
+
const flexColumns = flattenColumns.filter((column) => !isNumber(column.width));
|
|
48925
48806
|
flattenColumns.forEach((column) => {
|
|
48926
|
-
if (isNumber
|
|
48807
|
+
if (isNumber(column.width) && column.realWidth)
|
|
48927
48808
|
column.realWidth = null;
|
|
48928
48809
|
});
|
|
48929
48810
|
if (flexColumns.length > 0 && fit) {
|
|
@@ -49351,7 +49232,7 @@ function useLayoutObserver(root) {
|
|
|
49351
49232
|
onBeforeMount(() => {
|
|
49352
49233
|
tableLayout.value.addObserver(instance);
|
|
49353
49234
|
});
|
|
49354
|
-
onMounted
|
|
49235
|
+
onMounted(() => {
|
|
49355
49236
|
onColumnsChange(tableLayout.value);
|
|
49356
49237
|
onScrollableChange(tableLayout.value);
|
|
49357
49238
|
});
|
|
@@ -49500,7 +49381,7 @@ function useEvent(props, emit) {
|
|
|
49500
49381
|
if (!props.border || column.children && column.children.length > 0)
|
|
49501
49382
|
return;
|
|
49502
49383
|
const el = event.target;
|
|
49503
|
-
const target = isElement$
|
|
49384
|
+
const target = isElement$2(el) ? el.closest("th") : null;
|
|
49504
49385
|
if (!target) {
|
|
49505
49386
|
return;
|
|
49506
49387
|
}
|
|
@@ -49592,7 +49473,7 @@ function useStyle$2(props) {
|
|
|
49592
49473
|
const ns = useNamespace("table");
|
|
49593
49474
|
const getHeaderRowStyle = (rowIndex) => {
|
|
49594
49475
|
const headerRowStyle = parent == null ? void 0 : parent.props.headerRowStyle;
|
|
49595
|
-
if (isFunction$
|
|
49476
|
+
if (isFunction$1(headerRowStyle)) {
|
|
49596
49477
|
return headerRowStyle.call(null, { rowIndex });
|
|
49597
49478
|
}
|
|
49598
49479
|
return headerRowStyle;
|
|
@@ -49600,9 +49481,9 @@ function useStyle$2(props) {
|
|
|
49600
49481
|
const getHeaderRowClass = (rowIndex) => {
|
|
49601
49482
|
const classes = [];
|
|
49602
49483
|
const headerRowClassName = parent == null ? void 0 : parent.props.headerRowClassName;
|
|
49603
|
-
if (isString$
|
|
49484
|
+
if (isString$1(headerRowClassName)) {
|
|
49604
49485
|
classes.push(headerRowClassName);
|
|
49605
|
-
} else if (isFunction$
|
|
49486
|
+
} else if (isFunction$1(headerRowClassName)) {
|
|
49606
49487
|
classes.push(headerRowClassName.call(null, { rowIndex }));
|
|
49607
49488
|
}
|
|
49608
49489
|
return classes.join(" ");
|
|
@@ -49610,7 +49491,7 @@ function useStyle$2(props) {
|
|
|
49610
49491
|
const getHeaderCellStyle = (rowIndex, columnIndex, row, column) => {
|
|
49611
49492
|
var _a;
|
|
49612
49493
|
let headerCellStyles = (_a = parent == null ? void 0 : parent.props.headerCellStyle) != null ? _a : {};
|
|
49613
|
-
if (isFunction$
|
|
49494
|
+
if (isFunction$1(headerCellStyles)) {
|
|
49614
49495
|
headerCellStyles = headerCellStyles.call(null, {
|
|
49615
49496
|
rowIndex,
|
|
49616
49497
|
columnIndex,
|
|
@@ -49640,9 +49521,9 @@ function useStyle$2(props) {
|
|
|
49640
49521
|
classes.push("is-sortable");
|
|
49641
49522
|
}
|
|
49642
49523
|
const headerCellClassName = parent == null ? void 0 : parent.props.headerCellClassName;
|
|
49643
|
-
if (isString$
|
|
49524
|
+
if (isString$1(headerCellClassName)) {
|
|
49644
49525
|
classes.push(headerCellClassName);
|
|
49645
|
-
} else if (isFunction$
|
|
49526
|
+
} else if (isFunction$1(headerCellClassName)) {
|
|
49646
49527
|
classes.push(headerCellClassName.call(null, {
|
|
49647
49528
|
rowIndex,
|
|
49648
49529
|
columnIndex,
|
|
@@ -49798,7 +49679,7 @@ var TableHeader = defineComponent({
|
|
|
49798
49679
|
delayId = void 0;
|
|
49799
49680
|
}
|
|
49800
49681
|
});
|
|
49801
|
-
onMounted
|
|
49682
|
+
onMounted(async () => {
|
|
49802
49683
|
await nextTick();
|
|
49803
49684
|
await nextTick();
|
|
49804
49685
|
const { prop, order } = props.defaultSort;
|
|
@@ -50100,7 +49981,7 @@ function useStyles$1(props) {
|
|
|
50100
49981
|
const ns = useNamespace("table");
|
|
50101
49982
|
const getRowStyle = (row, rowIndex) => {
|
|
50102
49983
|
const rowStyle = parent == null ? void 0 : parent.props.rowStyle;
|
|
50103
|
-
if (isFunction$
|
|
49984
|
+
if (isFunction$1(rowStyle)) {
|
|
50104
49985
|
return rowStyle.call(null, {
|
|
50105
49986
|
row,
|
|
50106
49987
|
rowIndex
|
|
@@ -50118,9 +49999,9 @@ function useStyles$1(props) {
|
|
|
50118
49999
|
classes.push(ns.em("row", "striped"));
|
|
50119
50000
|
}
|
|
50120
50001
|
const rowClassName = parent == null ? void 0 : parent.props.rowClassName;
|
|
50121
|
-
if (isString$
|
|
50002
|
+
if (isString$1(rowClassName)) {
|
|
50122
50003
|
classes.push(rowClassName);
|
|
50123
|
-
} else if (isFunction$
|
|
50004
|
+
} else if (isFunction$1(rowClassName)) {
|
|
50124
50005
|
classes.push(rowClassName.call(null, {
|
|
50125
50006
|
row,
|
|
50126
50007
|
rowIndex
|
|
@@ -50131,7 +50012,7 @@ function useStyles$1(props) {
|
|
|
50131
50012
|
const getCellStyle = (rowIndex, columnIndex, row, column) => {
|
|
50132
50013
|
const cellStyle = parent == null ? void 0 : parent.props.cellStyle;
|
|
50133
50014
|
let cellStyles = cellStyle != null ? cellStyle : {};
|
|
50134
|
-
if (isFunction$
|
|
50015
|
+
if (isFunction$1(cellStyle)) {
|
|
50135
50016
|
cellStyles = cellStyle.call(null, {
|
|
50136
50017
|
rowIndex,
|
|
50137
50018
|
columnIndex,
|
|
@@ -50148,9 +50029,9 @@ function useStyles$1(props) {
|
|
|
50148
50029
|
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
|
|
50149
50030
|
const classes = [column.id, column.align, column.className, ...fixedClasses];
|
|
50150
50031
|
const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
|
|
50151
|
-
if (isString$
|
|
50032
|
+
if (isString$1(cellClassName)) {
|
|
50152
50033
|
classes.push(cellClassName);
|
|
50153
|
-
} else if (isFunction$
|
|
50034
|
+
} else if (isFunction$1(cellClassName)) {
|
|
50154
50035
|
classes.push(cellClassName.call(null, {
|
|
50155
50036
|
rowIndex,
|
|
50156
50037
|
columnIndex,
|
|
@@ -50165,7 +50046,7 @@ function useStyles$1(props) {
|
|
|
50165
50046
|
let rowspan = 1;
|
|
50166
50047
|
let colspan = 1;
|
|
50167
50048
|
const fn = parent == null ? void 0 : parent.props.spanMethod;
|
|
50168
|
-
if (isFunction$
|
|
50049
|
+
if (isFunction$1(fn)) {
|
|
50169
50050
|
const result = fn({
|
|
50170
50051
|
row,
|
|
50171
50052
|
column,
|
|
@@ -50835,7 +50716,7 @@ function useStyle(props, layout, store, table) {
|
|
|
50835
50716
|
return;
|
|
50836
50717
|
requestAnimationFrame(syncPosition);
|
|
50837
50718
|
};
|
|
50838
|
-
onMounted
|
|
50719
|
+
onMounted(async () => {
|
|
50839
50720
|
await nextTick();
|
|
50840
50721
|
store.updateColumns();
|
|
50841
50722
|
bindEvents();
|
|
@@ -51034,7 +50915,7 @@ function useKeyRender(table) {
|
|
|
51034
50915
|
});
|
|
51035
50916
|
observer.value.observe(columnsWrapper, config);
|
|
51036
50917
|
};
|
|
51037
|
-
onMounted
|
|
50918
|
+
onMounted(() => {
|
|
51038
50919
|
initWatchDom();
|
|
51039
50920
|
});
|
|
51040
50921
|
onUnmounted(() => {
|
|
@@ -51169,7 +51050,7 @@ const useScrollbar$1 = () => {
|
|
|
51169
51050
|
};
|
|
51170
51051
|
const setScrollPosition = (position, offset) => {
|
|
51171
51052
|
const scrollbar = scrollBarRef.value;
|
|
51172
|
-
if (scrollbar && isNumber
|
|
51053
|
+
if (scrollbar && isNumber(offset) && ["Top", "Left"].includes(position)) {
|
|
51173
51054
|
scrollbar[`setScroll${position}`](offset);
|
|
51174
51055
|
}
|
|
51175
51056
|
};
|
|
@@ -51611,9 +51492,9 @@ const cellForced = {
|
|
|
51611
51492
|
}) {
|
|
51612
51493
|
let i = $index + 1;
|
|
51613
51494
|
const index = column.index;
|
|
51614
|
-
if (isNumber
|
|
51495
|
+
if (isNumber(index)) {
|
|
51615
51496
|
i = $index + index;
|
|
51616
|
-
} else if (isFunction$
|
|
51497
|
+
} else if (isFunction$1(index)) {
|
|
51617
51498
|
i = index($index);
|
|
51618
51499
|
}
|
|
51619
51500
|
return h$1("div", {}, [i]);
|
|
@@ -51904,9 +51785,7 @@ function useRender(props, slots, owner) {
|
|
|
51904
51785
|
}
|
|
51905
51786
|
};
|
|
51906
51787
|
const setColumnRenders = (column) => {
|
|
51907
|
-
if (props.renderHeader) {
|
|
51908
|
-
debugWarn("TableColumn", "Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.");
|
|
51909
|
-
} else if (column.type !== "selection") {
|
|
51788
|
+
if (props.renderHeader) ; else if (column.type !== "selection") {
|
|
51910
51789
|
column.renderHeader = (scope) => {
|
|
51911
51790
|
instance.columnConfig.value["label"];
|
|
51912
51791
|
if (slots.header) {
|
|
@@ -52148,7 +52027,7 @@ var ElTableColumn$1 = defineComponent({
|
|
|
52148
52027
|
registerNormalWatchers();
|
|
52149
52028
|
registerComplexWatchers();
|
|
52150
52029
|
});
|
|
52151
|
-
onMounted
|
|
52030
|
+
onMounted(() => {
|
|
52152
52031
|
var _a, _b;
|
|
52153
52032
|
const parent2 = columnOrTableParent.value;
|
|
52154
52033
|
const children = isSubColumn.value ? (_a = parent2.vnode.el) == null ? void 0 : _a.children : (_b = parent2.refs.hiddenColumns) == null ? void 0 : _b.children;
|
|
@@ -52181,7 +52060,7 @@ var ElTableColumn$1 = defineComponent({
|
|
|
52181
52060
|
children.push(childNode);
|
|
52182
52061
|
} else if (childNode.type === Fragment && isArray$1(childNode.children)) {
|
|
52183
52062
|
childNode.children.forEach((vnode2) => {
|
|
52184
|
-
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)) {
|
|
52185
52064
|
children.push(vnode2);
|
|
52186
52065
|
}
|
|
52187
52066
|
});
|
|
@@ -52412,7 +52291,7 @@ const useRow = (props, {
|
|
|
52412
52291
|
const leftTableHeights = shallowRef({});
|
|
52413
52292
|
const mainTableHeights = shallowRef({});
|
|
52414
52293
|
const rightTableHeights = shallowRef({});
|
|
52415
|
-
const isDynamic = computed(() => isNumber
|
|
52294
|
+
const isDynamic = computed(() => isNumber(props.estimatedRowHeight));
|
|
52416
52295
|
function onRowsRendered(params) {
|
|
52417
52296
|
var _a;
|
|
52418
52297
|
(_a = props.onRowsRendered) == null ? void 0 : _a.call(props, params);
|
|
@@ -52573,7 +52452,7 @@ const sum = (listLike) => {
|
|
|
52573
52452
|
return isArray$1(listLike) ? listLike.reduce(sumReducer, 0) : listLike;
|
|
52574
52453
|
};
|
|
52575
52454
|
const tryCall = (fLike, params, defaultRet = {}) => {
|
|
52576
|
-
return isFunction$
|
|
52455
|
+
return isFunction$1(fLike) ? fLike(params) : fLike != null ? fLike : defaultRet;
|
|
52577
52456
|
};
|
|
52578
52457
|
const enforceUnit = (style) => {
|
|
52579
52458
|
["width", "maxWidth", "minWidth", "height"].forEach((key) => {
|
|
@@ -52608,7 +52487,7 @@ const useStyles = (props, {
|
|
|
52608
52487
|
const fixedTableHeight = computed(() => {
|
|
52609
52488
|
const { maxHeight } = props;
|
|
52610
52489
|
const tableHeight = unref(mainTableHeight);
|
|
52611
|
-
if (isNumber
|
|
52490
|
+
if (isNumber(maxHeight) && maxHeight > 0)
|
|
52612
52491
|
return tableHeight;
|
|
52613
52492
|
const totalHeight = unref(rowsHeight) + unref(headerHeight) + unref(fixedRowsHeight);
|
|
52614
52493
|
return Math.min(tableHeight, totalHeight);
|
|
@@ -52657,7 +52536,7 @@ const useAutoResize = (props) => {
|
|
|
52657
52536
|
const width$ = ref(0);
|
|
52658
52537
|
const height$ = ref(0);
|
|
52659
52538
|
let resizerStopper;
|
|
52660
|
-
onMounted
|
|
52539
|
+
onMounted(() => {
|
|
52661
52540
|
resizerStopper = useResizeObserver(sizer, ([entry]) => {
|
|
52662
52541
|
const { width, height } = entry.contentRect;
|
|
52663
52542
|
const { paddingLeft, paddingRight, paddingTop, paddingBottom } = getComputedStyle(entry.target);
|
|
@@ -52744,7 +52623,7 @@ function useTable(props) {
|
|
|
52744
52623
|
const rowsHeight = computed(() => {
|
|
52745
52624
|
const { estimatedRowHeight, rowHeight } = props;
|
|
52746
52625
|
const _data = unref(data);
|
|
52747
|
-
if (isNumber
|
|
52626
|
+
if (isNumber(estimatedRowHeight)) {
|
|
52748
52627
|
return Object.values(unref(rowHeights)).reduce((acc, curr) => acc + curr, 0);
|
|
52749
52628
|
}
|
|
52750
52629
|
return _data.length * rowHeight;
|
|
@@ -53254,7 +53133,7 @@ const useTableRow = (props) => {
|
|
|
53254
53133
|
const measured = ref(false);
|
|
53255
53134
|
const rowRef = ref();
|
|
53256
53135
|
const measurable = computed(() => {
|
|
53257
|
-
return isNumber
|
|
53136
|
+
return isNumber(props.estimatedRowHeight) && props.rowIndex >= 0;
|
|
53258
53137
|
});
|
|
53259
53138
|
const doMeasure = (isInit = false) => {
|
|
53260
53139
|
const $rowRef = unref(rowRef);
|
|
@@ -53293,7 +53172,7 @@ const useTableRow = (props) => {
|
|
|
53293
53172
|
const handlers = props.rowEventHandlers || {};
|
|
53294
53173
|
const eventHandlers2 = {};
|
|
53295
53174
|
Object.entries(handlers).forEach(([eventName, handler]) => {
|
|
53296
|
-
if (isFunction$
|
|
53175
|
+
if (isFunction$1(handler)) {
|
|
53297
53176
|
eventHandlers2[eventName] = (event) => {
|
|
53298
53177
|
handler({
|
|
53299
53178
|
event,
|
|
@@ -53344,7 +53223,7 @@ const useTableRow = (props) => {
|
|
|
53344
53223
|
rowKey
|
|
53345
53224
|
});
|
|
53346
53225
|
};
|
|
53347
|
-
onMounted
|
|
53226
|
+
onMounted(() => {
|
|
53348
53227
|
if (unref(measurable)) {
|
|
53349
53228
|
doMeasure(true);
|
|
53350
53229
|
}
|
|
@@ -53568,7 +53447,7 @@ const useTableGrid = (props) => {
|
|
|
53568
53447
|
}
|
|
53569
53448
|
watch(() => props.bodyWidth, () => {
|
|
53570
53449
|
var _a;
|
|
53571
|
-
if (isNumber
|
|
53450
|
+
if (isNumber(props.estimatedRowHeight))
|
|
53572
53451
|
(_a = bodyRef.value) == null ? void 0 : _a.resetAfter({
|
|
53573
53452
|
columnIndex: 0
|
|
53574
53453
|
}, false);
|
|
@@ -53654,7 +53533,7 @@ const TableGrid = defineComponent({
|
|
|
53654
53533
|
getRowHeight,
|
|
53655
53534
|
onScroll
|
|
53656
53535
|
} = props;
|
|
53657
|
-
const isDynamicRowEnabled = isNumber
|
|
53536
|
+
const isDynamicRowEnabled = isNumber(estimatedRowHeight);
|
|
53658
53537
|
const Grid = isDynamicRowEnabled ? DynamicSizeGrid$1 : FixedSizeGrid$1;
|
|
53659
53538
|
const _headerHeight = unref(headerHeight);
|
|
53660
53539
|
return createVNode("div", {
|
|
@@ -53885,7 +53764,7 @@ const CellRenderer = ({
|
|
|
53885
53764
|
dataKey,
|
|
53886
53765
|
dataGetter
|
|
53887
53766
|
} = column;
|
|
53888
|
-
const cellData = isFunction$
|
|
53767
|
+
const cellData = isFunction$1(dataGetter) ? dataGetter({
|
|
53889
53768
|
columns,
|
|
53890
53769
|
column,
|
|
53891
53770
|
columnIndex,
|
|
@@ -54383,7 +54262,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
54383
54262
|
const props = __props;
|
|
54384
54263
|
const rootTabs = inject(tabsRootContextKey);
|
|
54385
54264
|
if (!rootTabs)
|
|
54386
|
-
throwError
|
|
54265
|
+
throwError(COMPONENT_NAME$4, "<el-tabs><el-tab-bar /></el-tabs>");
|
|
54387
54266
|
const ns = useNamespace("tabs");
|
|
54388
54267
|
const barRef = ref();
|
|
54389
54268
|
const barStyle = ref();
|
|
@@ -54493,7 +54372,7 @@ const TabNav = defineComponent({
|
|
|
54493
54372
|
}) {
|
|
54494
54373
|
const rootTabs = inject(tabsRootContextKey);
|
|
54495
54374
|
if (!rootTabs)
|
|
54496
|
-
throwError
|
|
54375
|
+
throwError(COMPONENT_NAME$3, `<el-tabs><tab-nav /></el-tabs>`);
|
|
54497
54376
|
const ns = useNamespace("tabs");
|
|
54498
54377
|
const visibility = useDocumentVisibility();
|
|
54499
54378
|
const focused = useWindowFocus();
|
|
@@ -54673,7 +54552,7 @@ const TabNav = defineComponent({
|
|
|
54673
54552
|
}
|
|
54674
54553
|
});
|
|
54675
54554
|
useResizeObserver(el$, update);
|
|
54676
|
-
onMounted
|
|
54555
|
+
onMounted(() => setTimeout(() => scrollToActiveTab(), 0));
|
|
54677
54556
|
onUpdated(() => update());
|
|
54678
54557
|
expose({
|
|
54679
54558
|
scrollToActiveTab,
|
|
@@ -54786,7 +54665,7 @@ const tabsProps = buildProps({
|
|
|
54786
54665
|
default: 0
|
|
54787
54666
|
}
|
|
54788
54667
|
});
|
|
54789
|
-
const isPaneName = (value) => isString$
|
|
54668
|
+
const isPaneName = (value) => isString$1(value) || isNumber(value);
|
|
54790
54669
|
const tabsEmits = {
|
|
54791
54670
|
[UPDATE_MODEL_EVENT]: (name) => isPaneName(name),
|
|
54792
54671
|
tabClick: (pane, ev) => ev instanceof Event,
|
|
@@ -54962,7 +54841,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
54962
54841
|
const slots = useSlots();
|
|
54963
54842
|
const tabsRoot = inject(tabsRootContextKey);
|
|
54964
54843
|
if (!tabsRoot)
|
|
54965
|
-
throwError
|
|
54844
|
+
throwError(COMPONENT_NAME$2, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
54966
54845
|
const ns = useNamespace("tab-pane");
|
|
54967
54846
|
const paneRef = ref();
|
|
54968
54847
|
const index = ref();
|
|
@@ -55098,7 +54977,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
55098
54977
|
(_g = textRef.value) == null ? void 0 : _g.removeAttribute("title");
|
|
55099
54978
|
}
|
|
55100
54979
|
};
|
|
55101
|
-
onMounted
|
|
54980
|
+
onMounted(bindTitle);
|
|
55102
54981
|
onUpdated(bindTitle);
|
|
55103
54982
|
return (_ctx, _cache) => {
|
|
55104
54983
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
@@ -55590,7 +55469,7 @@ const useCheck$1 = (props, panelState, emit) => {
|
|
|
55590
55469
|
const propsAlias = usePropsAlias(props);
|
|
55591
55470
|
const filteredData = computed(() => {
|
|
55592
55471
|
return props.data.filter((item) => {
|
|
55593
|
-
if (isFunction$
|
|
55472
|
+
if (isFunction$1(props.filterMethod)) {
|
|
55594
55473
|
return props.filterMethod(panelState.query, item);
|
|
55595
55474
|
} else {
|
|
55596
55475
|
const label = String(item[propsAlias.value.label] || item[propsAlias.value.key]);
|
|
@@ -55905,7 +55784,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
55905
55784
|
watch(() => props.modelValue, () => {
|
|
55906
55785
|
var _a;
|
|
55907
55786
|
if (props.validateEvent) {
|
|
55908
|
-
(_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());
|
|
55909
55788
|
}
|
|
55910
55789
|
});
|
|
55911
55790
|
const optionRender = computed(() => (option) => {
|
|
@@ -56094,9 +55973,9 @@ const getPropertyFromData = function(node, prop) {
|
|
|
56094
55973
|
const props = node.store.props;
|
|
56095
55974
|
const data = node.data || {};
|
|
56096
55975
|
const config = props[prop];
|
|
56097
|
-
if (isFunction$
|
|
55976
|
+
if (isFunction$1(config)) {
|
|
56098
55977
|
return config(data, node);
|
|
56099
|
-
} else if (isString$
|
|
55978
|
+
} else if (isString$1(config)) {
|
|
56100
55979
|
return data[config];
|
|
56101
55980
|
} else if (isUndefined(config)) {
|
|
56102
55981
|
const dataProp = data[prop];
|
|
@@ -56884,7 +56763,7 @@ function useDragNodeHandler({
|
|
|
56884
56763
|
const treeNodeDragStart = ({ event, treeNode }) => {
|
|
56885
56764
|
if (!event.dataTransfer)
|
|
56886
56765
|
return;
|
|
56887
|
-
if (isFunction$
|
|
56766
|
+
if (isFunction$1(props.allowDrag) && !props.allowDrag(treeNode.node)) {
|
|
56888
56767
|
event.preventDefault();
|
|
56889
56768
|
return false;
|
|
56890
56769
|
}
|
|
@@ -56911,7 +56790,7 @@ function useDragNodeHandler({
|
|
|
56911
56790
|
let dropInner = true;
|
|
56912
56791
|
let dropNext = true;
|
|
56913
56792
|
let userAllowDropInner = true;
|
|
56914
|
-
if (isFunction$
|
|
56793
|
+
if (isFunction$1(props.allowDrop)) {
|
|
56915
56794
|
dropPrev = props.allowDrop(draggingNode.node, dropNode.node, "prev");
|
|
56916
56795
|
userAllowDropInner = dropInner = props.allowDrop(draggingNode.node, dropNode.node, "inner");
|
|
56917
56796
|
dropNext = props.allowDrop(draggingNode.node, dropNode.node, "next");
|
|
@@ -57067,9 +56946,6 @@ const _sfc_main$o = defineComponent({
|
|
|
57067
56946
|
const dragEvents = inject(dragEventsKey);
|
|
57068
56947
|
const instance = getCurrentInstance();
|
|
57069
56948
|
provide(NODE_INSTANCE_INJECTION_KEY, instance);
|
|
57070
|
-
if (!tree) {
|
|
57071
|
-
debugWarn("Tree", "Can not find node's tree.");
|
|
57072
|
-
}
|
|
57073
56949
|
if (props.node.expanded) {
|
|
57074
56950
|
expanded.value = true;
|
|
57075
56951
|
childNodeRendered.value = true;
|
|
@@ -57104,13 +56980,13 @@ const _sfc_main$o = defineComponent({
|
|
|
57104
56980
|
return {};
|
|
57105
56981
|
}
|
|
57106
56982
|
let className;
|
|
57107
|
-
if (isFunction$
|
|
56983
|
+
if (isFunction$1(nodeClassFunc)) {
|
|
57108
56984
|
const { data } = node;
|
|
57109
56985
|
className = nodeClassFunc(data, node);
|
|
57110
56986
|
} else {
|
|
57111
56987
|
className = nodeClassFunc;
|
|
57112
56988
|
}
|
|
57113
|
-
if (isString$
|
|
56989
|
+
if (isString$1(className)) {
|
|
57114
56990
|
return { [className]: true };
|
|
57115
56991
|
} else {
|
|
57116
56992
|
return className;
|
|
@@ -57341,7 +57217,7 @@ var ElTreeNode$1 = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
|
|
|
57341
57217
|
|
|
57342
57218
|
function useKeydown({ el$ }, store) {
|
|
57343
57219
|
const ns = useNamespace("tree");
|
|
57344
|
-
onMounted
|
|
57220
|
+
onMounted(() => {
|
|
57345
57221
|
initTabIndex();
|
|
57346
57222
|
});
|
|
57347
57223
|
onUpdated(() => {
|
|
@@ -57790,7 +57666,7 @@ const useSelect = (props, { attrs, emit }, {
|
|
|
57790
57666
|
return;
|
|
57791
57667
|
}
|
|
57792
57668
|
};
|
|
57793
|
-
onMounted
|
|
57669
|
+
onMounted(() => {
|
|
57794
57670
|
useEventListener(() => {
|
|
57795
57671
|
var _a;
|
|
57796
57672
|
return (_a = select.value) == null ? void 0 : _a.$el;
|
|
@@ -57932,7 +57808,7 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
57932
57808
|
const getNodeValByProp = (prop, data) => {
|
|
57933
57809
|
var _a;
|
|
57934
57810
|
const propVal = propsMap.value[prop];
|
|
57935
|
-
if (isFunction$
|
|
57811
|
+
if (isFunction$1(propVal)) {
|
|
57936
57812
|
return propVal(data, (_a = tree.value) == null ? void 0 : _a.getNode(getNodeValByProp("value", data)));
|
|
57937
57813
|
} else {
|
|
57938
57814
|
return data[propVal];
|
|
@@ -58106,7 +57982,7 @@ const _sfc_main$m = defineComponent({
|
|
|
58106
57982
|
});
|
|
58107
57983
|
const methods = reactive({});
|
|
58108
57984
|
expose(methods);
|
|
58109
|
-
onMounted
|
|
57985
|
+
onMounted(() => {
|
|
58110
57986
|
Object.assign(methods, {
|
|
58111
57987
|
...pick(tree.value, [
|
|
58112
57988
|
"filter",
|
|
@@ -58474,7 +58350,7 @@ function useFilter(props, tree) {
|
|
|
58474
58350
|
const hiddenNodeKeySet = ref(/* @__PURE__ */ new Set([]));
|
|
58475
58351
|
const hiddenExpandIconKeySet = ref(/* @__PURE__ */ new Set([]));
|
|
58476
58352
|
const filterable = computed(() => {
|
|
58477
|
-
return isFunction$
|
|
58353
|
+
return isFunction$1(props.filterMethod);
|
|
58478
58354
|
});
|
|
58479
58355
|
function doFilter(query) {
|
|
58480
58356
|
var _a;
|
|
@@ -58866,13 +58742,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
58866
58742
|
if (!nodeClassFunc)
|
|
58867
58743
|
return {};
|
|
58868
58744
|
let className;
|
|
58869
|
-
if (isFunction$
|
|
58745
|
+
if (isFunction$1(nodeClassFunc)) {
|
|
58870
58746
|
const { data } = node;
|
|
58871
58747
|
className = nodeClassFunc(data, node);
|
|
58872
58748
|
} else {
|
|
58873
58749
|
className = nodeClassFunc;
|
|
58874
58750
|
}
|
|
58875
|
-
return isString$
|
|
58751
|
+
return isString$1(className) ? { [className]: true } : className;
|
|
58876
58752
|
};
|
|
58877
58753
|
const handleClick = (e) => {
|
|
58878
58754
|
emit("click", props.node, e);
|
|
@@ -59097,7 +58973,7 @@ const ElTreeV2 = withInstall(TreeV2);
|
|
|
59097
58973
|
|
|
59098
58974
|
const uploadContextKey = Symbol("uploadContextKey");
|
|
59099
58975
|
|
|
59100
|
-
const SCOPE$
|
|
58976
|
+
const SCOPE$2 = "ElUpload";
|
|
59101
58977
|
class UploadAjaxError extends Error {
|
|
59102
58978
|
constructor(message, status, method, url) {
|
|
59103
58979
|
super(message);
|
|
@@ -59131,7 +59007,7 @@ function getBody(xhr) {
|
|
|
59131
59007
|
}
|
|
59132
59008
|
const ajaxUpload = (option) => {
|
|
59133
59009
|
if (typeof XMLHttpRequest === "undefined")
|
|
59134
|
-
throwError
|
|
59010
|
+
throwError(SCOPE$2, "XMLHttpRequest is undefined");
|
|
59135
59011
|
const xhr = new XMLHttpRequest();
|
|
59136
59012
|
const action = option.action;
|
|
59137
59013
|
if (xhr.upload) {
|
|
@@ -59492,7 +59368,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
59492
59368
|
setup(__props, { emit }) {
|
|
59493
59369
|
const uploaderContext = inject(uploadContextKey);
|
|
59494
59370
|
if (!uploaderContext) {
|
|
59495
|
-
throwError
|
|
59371
|
+
throwError(COMPONENT_NAME$1, "usage: <el-upload><el-upload-dragger /></el-upload>");
|
|
59496
59372
|
}
|
|
59497
59373
|
const ns = useNamespace("upload");
|
|
59498
59374
|
const dragover = ref(false);
|
|
@@ -59637,7 +59513,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
59637
59513
|
}), beforeData);
|
|
59638
59514
|
};
|
|
59639
59515
|
const resolveData = async (data, rawFile) => {
|
|
59640
|
-
if (isFunction$
|
|
59516
|
+
if (isFunction$1(data)) {
|
|
59641
59517
|
return data(rawFile);
|
|
59642
59518
|
}
|
|
59643
59519
|
return data;
|
|
@@ -59758,7 +59634,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
59758
59634
|
});
|
|
59759
59635
|
var UploadContent = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "upload-content.vue"]]);
|
|
59760
59636
|
|
|
59761
|
-
const SCOPE$
|
|
59637
|
+
const SCOPE$1 = "ElUpload";
|
|
59762
59638
|
const revokeFileObjectURL = (file) => {
|
|
59763
59639
|
var _a;
|
|
59764
59640
|
if ((_a = file.url) == null ? void 0 : _a.startsWith("blob:")) {
|
|
@@ -59823,7 +59699,7 @@ const useHandlers = (props, uploadRef) => {
|
|
|
59823
59699
|
try {
|
|
59824
59700
|
uploadFile.url = URL.createObjectURL(file);
|
|
59825
59701
|
} catch (err) {
|
|
59826
|
-
debugWarn(SCOPE$
|
|
59702
|
+
debugWarn(SCOPE$1, err.message);
|
|
59827
59703
|
props.onError(err, uploadFile, uploadFiles.value);
|
|
59828
59704
|
}
|
|
59829
59705
|
}
|
|
@@ -59833,7 +59709,7 @@ const useHandlers = (props, uploadRef) => {
|
|
|
59833
59709
|
const handleRemove = async (file) => {
|
|
59834
59710
|
const uploadFile = file instanceof File ? getFile(file) : file;
|
|
59835
59711
|
if (!uploadFile)
|
|
59836
|
-
throwError
|
|
59712
|
+
throwError(SCOPE$1, "file to be removed not found");
|
|
59837
59713
|
const doRemove = (file2) => {
|
|
59838
59714
|
abort(file2);
|
|
59839
59715
|
removeFile(file2);
|
|
@@ -60341,7 +60217,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
60341
60217
|
}
|
|
60342
60218
|
}
|
|
60343
60219
|
};
|
|
60344
|
-
onMounted
|
|
60220
|
+
onMounted(() => {
|
|
60345
60221
|
renderWatermark();
|
|
60346
60222
|
});
|
|
60347
60223
|
watch(() => props, () => {
|
|
@@ -61086,7 +60962,7 @@ function getUAString() {
|
|
|
61086
60962
|
function isHTMLElement(value) {
|
|
61087
60963
|
return value instanceof getWindow(value).HTMLElement;
|
|
61088
60964
|
}
|
|
61089
|
-
function isElement
|
|
60965
|
+
function isElement(value) {
|
|
61090
60966
|
return value instanceof getWindow(value).Element;
|
|
61091
60967
|
}
|
|
61092
60968
|
function isNode(value) {
|
|
@@ -61156,7 +61032,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
|
61156
61032
|
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
61157
61033
|
}
|
|
61158
61034
|
|
|
61159
|
-
const win = isElement
|
|
61035
|
+
const win = isElement(element) ? getWindow(element) : window;
|
|
61160
61036
|
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
61161
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;
|
|
61162
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;
|
|
@@ -61179,7 +61055,7 @@ function getDocumentElement(node) {
|
|
|
61179
61055
|
}
|
|
61180
61056
|
|
|
61181
61057
|
function getNodeScroll(element) {
|
|
61182
|
-
if (isElement
|
|
61058
|
+
if (isElement(element)) {
|
|
61183
61059
|
return {
|
|
61184
61060
|
scrollLeft: element.scrollLeft,
|
|
61185
61061
|
scrollTop: element.scrollTop
|
|
@@ -61533,7 +61409,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
|
|
|
61533
61409
|
return rectToClientRect(getViewportRect(element, strategy));
|
|
61534
61410
|
}
|
|
61535
61411
|
|
|
61536
|
-
if (isElement
|
|
61412
|
+
if (isElement(clippingParent)) {
|
|
61537
61413
|
return getInnerBoundingClientRect(clippingParent, strategy);
|
|
61538
61414
|
}
|
|
61539
61415
|
|
|
@@ -61548,12 +61424,12 @@ function getClippingAncestors(element) {
|
|
|
61548
61424
|
const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);
|
|
61549
61425
|
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
61550
61426
|
|
|
61551
|
-
if (!isElement
|
|
61427
|
+
if (!isElement(clipperElement)) {
|
|
61552
61428
|
return [];
|
|
61553
61429
|
} // @ts-ignore isElement check ensures we return Array<Element>
|
|
61554
61430
|
|
|
61555
61431
|
|
|
61556
|
-
return clippingAncestors.filter(clippingAncestors => isElement
|
|
61432
|
+
return clippingAncestors.filter(clippingAncestors => isElement(clippingAncestors) && contains(clippingAncestors, clipperElement) && getNodeName(clippingAncestors) !== 'body');
|
|
61557
61433
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
61558
61434
|
// clipping ancestors
|
|
61559
61435
|
|
|
@@ -61587,7 +61463,7 @@ function getClippingRect(_ref) {
|
|
|
61587
61463
|
const platform = {
|
|
61588
61464
|
getClippingRect,
|
|
61589
61465
|
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
61590
|
-
isElement
|
|
61466
|
+
isElement,
|
|
61591
61467
|
getDimensions,
|
|
61592
61468
|
getOffsetParent,
|
|
61593
61469
|
getDocumentElement,
|
|
@@ -61626,7 +61502,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
61626
61502
|
} = options;
|
|
61627
61503
|
const ancestorScroll = _ancestorScroll && !animationFrame;
|
|
61628
61504
|
const ancestorResize = _ancestorResize && !animationFrame;
|
|
61629
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(isElement
|
|
61505
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)] : [];
|
|
61630
61506
|
ancestors.forEach(ancestor => {
|
|
61631
61507
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
61632
61508
|
passive: true
|
|
@@ -61644,7 +61520,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
61644
61520
|
|
|
61645
61521
|
initialUpdate = false;
|
|
61646
61522
|
});
|
|
61647
|
-
isElement
|
|
61523
|
+
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
61648
61524
|
observer.observe(floating);
|
|
61649
61525
|
}
|
|
61650
61526
|
|
|
@@ -61698,9 +61574,9 @@ const useTarget = (target, open, gap, mergedMask, scrollIntoViewOptions) => {
|
|
|
61698
61574
|
const posInfo = ref(null);
|
|
61699
61575
|
const getTargetEl = () => {
|
|
61700
61576
|
let targetEl;
|
|
61701
|
-
if (isString$
|
|
61577
|
+
if (isString$1(target.value)) {
|
|
61702
61578
|
targetEl = document.querySelector(target.value);
|
|
61703
|
-
} else if (isFunction$
|
|
61579
|
+
} else if (isFunction$1(target.value)) {
|
|
61704
61580
|
targetEl = target.value();
|
|
61705
61581
|
} else {
|
|
61706
61582
|
targetEl = target.value;
|
|
@@ -61725,7 +61601,7 @@ const useTarget = (target, open, gap, mergedMask, scrollIntoViewOptions) => {
|
|
|
61725
61601
|
radius: 0
|
|
61726
61602
|
};
|
|
61727
61603
|
};
|
|
61728
|
-
onMounted
|
|
61604
|
+
onMounted(() => {
|
|
61729
61605
|
watch([open, target], () => {
|
|
61730
61606
|
updatePosInfo();
|
|
61731
61607
|
}, {
|
|
@@ -61855,7 +61731,7 @@ const useFloating = (referenceRef, contentRef, arrowRef, placement, strategy, of
|
|
|
61855
61731
|
};
|
|
61856
61732
|
});
|
|
61857
61733
|
let cleanup;
|
|
61858
|
-
onMounted
|
|
61734
|
+
onMounted(() => {
|
|
61859
61735
|
const referenceEl = unref(referenceRef);
|
|
61860
61736
|
const contentEl = unref(contentRef);
|
|
61861
61737
|
if (referenceEl && contentEl) {
|
|
@@ -62176,10 +62052,10 @@ const tourProps = buildProps({
|
|
|
62176
62052
|
});
|
|
62177
62053
|
const tourEmits = {
|
|
62178
62054
|
[UPDATE_MODEL_EVENT]: (value) => isBoolean(value),
|
|
62179
|
-
["update:current"]: (current) => isNumber
|
|
62180
|
-
close: (current) => isNumber
|
|
62055
|
+
["update:current"]: (current) => isNumber(current),
|
|
62056
|
+
close: (current) => isNumber(current),
|
|
62181
62057
|
finish: () => true,
|
|
62182
|
-
change: (current) => isNumber
|
|
62058
|
+
change: (current) => isNumber(current)
|
|
62183
62059
|
};
|
|
62184
62060
|
|
|
62185
62061
|
const __default__$b = defineComponent({
|
|
@@ -62456,7 +62332,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
62456
62332
|
break;
|
|
62457
62333
|
}
|
|
62458
62334
|
};
|
|
62459
|
-
onMounted
|
|
62335
|
+
onMounted(() => {
|
|
62460
62336
|
window.addEventListener("keydown", handleKeydown);
|
|
62461
62337
|
});
|
|
62462
62338
|
onBeforeUnmount(() => {
|
|
@@ -62590,8 +62466,8 @@ const anchorProps = buildProps({
|
|
|
62590
62466
|
selectScrollTop: Boolean
|
|
62591
62467
|
});
|
|
62592
62468
|
const anchorEmits = {
|
|
62593
|
-
change: (href) => isString$
|
|
62594
|
-
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))
|
|
62595
62471
|
};
|
|
62596
62472
|
|
|
62597
62473
|
const anchorKey = Symbol("anchor");
|
|
@@ -62750,7 +62626,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
62750
62626
|
var _a;
|
|
62751
62627
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
62752
62628
|
}, updateMarkerStyle);
|
|
62753
|
-
onMounted
|
|
62629
|
+
onMounted(() => {
|
|
62754
62630
|
getContainer();
|
|
62755
62631
|
const hash = decodeURIComponent(window.location.hash);
|
|
62756
62632
|
const target = getElement(hash);
|
|
@@ -62839,7 +62715,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
62839
62715
|
}
|
|
62840
62716
|
});
|
|
62841
62717
|
});
|
|
62842
|
-
onMounted
|
|
62718
|
+
onMounted(() => {
|
|
62843
62719
|
const { href } = props;
|
|
62844
62720
|
if (href) {
|
|
62845
62721
|
addLink({
|
|
@@ -62923,8 +62799,8 @@ const segmentedProps = buildProps({
|
|
|
62923
62799
|
...useAriaProps(["ariaLabel"])
|
|
62924
62800
|
});
|
|
62925
62801
|
const segmentedEmits = {
|
|
62926
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
62927
|
-
[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)
|
|
62928
62804
|
};
|
|
62929
62805
|
|
|
62930
62806
|
const __default__$7 = defineComponent({
|
|
@@ -63035,7 +62911,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
63035
62911
|
var _a;
|
|
63036
62912
|
updateSelect();
|
|
63037
62913
|
if (props.validateEvent) {
|
|
63038
|
-
(_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());
|
|
63039
62915
|
}
|
|
63040
62916
|
}, {
|
|
63041
62917
|
flush: "post"
|
|
@@ -63247,9 +63123,9 @@ const mentionProps = buildProps({
|
|
|
63247
63123
|
type: definePropType([String, Array]),
|
|
63248
63124
|
default: "@",
|
|
63249
63125
|
validator: (val) => {
|
|
63250
|
-
if (isString$
|
|
63126
|
+
if (isString$1(val))
|
|
63251
63127
|
return val.length === 1;
|
|
63252
|
-
return val.every((v) => isString$
|
|
63128
|
+
return val.every((v) => isString$1(v) && v.length === 1);
|
|
63253
63129
|
}
|
|
63254
63130
|
},
|
|
63255
63131
|
split: {
|
|
@@ -63263,7 +63139,7 @@ const mentionProps = buildProps({
|
|
|
63263
63139
|
validator: (val) => {
|
|
63264
63140
|
if (val === false)
|
|
63265
63141
|
return true;
|
|
63266
|
-
return isFunction$
|
|
63142
|
+
return isFunction$1(val);
|
|
63267
63143
|
}
|
|
63268
63144
|
},
|
|
63269
63145
|
placement: {
|
|
@@ -63293,11 +63169,11 @@ const mentionProps = buildProps({
|
|
|
63293
63169
|
}
|
|
63294
63170
|
});
|
|
63295
63171
|
const mentionEmits = {
|
|
63296
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
63297
|
-
"whole-remove": (pattern, prefix) => isString$
|
|
63298
|
-
input: (value) => isString$
|
|
63299
|
-
search: (pattern, prefix) => isString$
|
|
63300
|
-
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),
|
|
63301
63177
|
focus: (evt) => evt instanceof FocusEvent,
|
|
63302
63178
|
blur: (evt) => evt instanceof FocusEvent
|
|
63303
63179
|
};
|
|
@@ -63318,7 +63194,7 @@ const mentionDropdownProps = buildProps({
|
|
|
63318
63194
|
ariaLabel: String
|
|
63319
63195
|
});
|
|
63320
63196
|
const mentionDropdownEmits = {
|
|
63321
|
-
select: (option) => isString$
|
|
63197
|
+
select: (option) => isString$1(option.value)
|
|
63322
63198
|
};
|
|
63323
63199
|
|
|
63324
63200
|
const __default__$6 = defineComponent({
|
|
@@ -63578,7 +63454,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
63578
63454
|
return;
|
|
63579
63455
|
const inputValue = inputEl.value;
|
|
63580
63456
|
const matchOption = options.value.find((item) => item.value === pattern);
|
|
63581
|
-
const isWhole = isFunction$
|
|
63457
|
+
const isWhole = isFunction$1(props.checkIsWhole) ? props.checkIsWhole(pattern, prefix) : matchOption;
|
|
63582
63458
|
if (isWhole && splitIndex !== -1 && splitIndex + 1 === selectionEnd) {
|
|
63583
63459
|
event.preventDefault();
|
|
63584
63460
|
const newValue = inputValue.slice(0, prefixIndex) + inputValue.slice(splitIndex + 1);
|
|
@@ -63793,10 +63669,10 @@ function getPx(str) {
|
|
|
63793
63669
|
return Number(str.slice(0, -2));
|
|
63794
63670
|
}
|
|
63795
63671
|
function isPct(itemSize) {
|
|
63796
|
-
return isString$
|
|
63672
|
+
return isString$1(itemSize) && itemSize.endsWith("%");
|
|
63797
63673
|
}
|
|
63798
63674
|
function isPx(itemSize) {
|
|
63799
|
-
return isString$
|
|
63675
|
+
return isString$1(itemSize) && itemSize.endsWith("px");
|
|
63800
63676
|
}
|
|
63801
63677
|
function useSize(panels, containerSize) {
|
|
63802
63678
|
const propSizes = computed(() => panels.value.map((i) => i.size));
|
|
@@ -64258,7 +64134,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
64258
64134
|
const ns = useNamespace("splitter-panel");
|
|
64259
64135
|
const splitterContext = inject(splitterRootContextKey);
|
|
64260
64136
|
if (!splitterContext)
|
|
64261
|
-
throwError
|
|
64137
|
+
throwError(COMPONENT_NAME, "usage: <el-splitter><el-splitter-panel /></el-splitter/>");
|
|
64262
64138
|
const { panels, layout, lazy, containerSize, pxSizes } = toRefs(splitterContext);
|
|
64263
64139
|
const {
|
|
64264
64140
|
registerPanel,
|
|
@@ -64514,7 +64390,7 @@ var Components = [
|
|
|
64514
64390
|
ElSplitterPanel
|
|
64515
64391
|
];
|
|
64516
64392
|
|
|
64517
|
-
const SCOPE
|
|
64393
|
+
const SCOPE = "ElInfiniteScroll";
|
|
64518
64394
|
const CHECK_INTERVAL = 50;
|
|
64519
64395
|
const DEFAULT_DELAY = 200;
|
|
64520
64396
|
const DEFAULT_DISTANCE = 0;
|
|
@@ -64549,18 +64425,18 @@ const getScrollOptions = (el, instance) => {
|
|
|
64549
64425
|
}, {});
|
|
64550
64426
|
};
|
|
64551
64427
|
const destroyObserver = (el) => {
|
|
64552
|
-
const { observer } = el[SCOPE
|
|
64428
|
+
const { observer } = el[SCOPE];
|
|
64553
64429
|
if (observer) {
|
|
64554
64430
|
observer.disconnect();
|
|
64555
|
-
delete el[SCOPE
|
|
64431
|
+
delete el[SCOPE].observer;
|
|
64556
64432
|
}
|
|
64557
64433
|
};
|
|
64558
64434
|
const handleScroll = (el, cb) => {
|
|
64559
|
-
const { container, containerEl, instance, observer, lastScrollTop } = el[SCOPE
|
|
64435
|
+
const { container, containerEl, instance, observer, lastScrollTop } = el[SCOPE];
|
|
64560
64436
|
const { disabled, distance } = getScrollOptions(el, instance);
|
|
64561
64437
|
const { clientHeight, scrollHeight, scrollTop } = containerEl;
|
|
64562
64438
|
const delta = scrollTop - lastScrollTop;
|
|
64563
|
-
el[SCOPE
|
|
64439
|
+
el[SCOPE].lastScrollTop = scrollTop;
|
|
64564
64440
|
if (observer || disabled || delta < 0)
|
|
64565
64441
|
return;
|
|
64566
64442
|
let shouldTrigger = false;
|
|
@@ -64576,7 +64452,7 @@ const handleScroll = (el, cb) => {
|
|
|
64576
64452
|
}
|
|
64577
64453
|
};
|
|
64578
64454
|
function checkFull(el, cb) {
|
|
64579
|
-
const { containerEl, instance } = el[SCOPE
|
|
64455
|
+
const { containerEl, instance } = el[SCOPE];
|
|
64580
64456
|
const { disabled } = getScrollOptions(el, instance);
|
|
64581
64457
|
if (disabled || containerEl.clientHeight === 0)
|
|
64582
64458
|
return;
|
|
@@ -64590,14 +64466,14 @@ const InfiniteScroll = {
|
|
|
64590
64466
|
async mounted(el, binding) {
|
|
64591
64467
|
const { instance, value: cb } = binding;
|
|
64592
64468
|
useDeprecated({
|
|
64593
|
-
scope: SCOPE
|
|
64469
|
+
scope: SCOPE,
|
|
64594
64470
|
from: "the directive v-infinite-scroll",
|
|
64595
64471
|
replacement: "the el-scrollbar infinite scroll",
|
|
64596
64472
|
version: "3.0.0",
|
|
64597
64473
|
ref: "https://element-plus.org/en-US/component/scrollbar#infinite-scroll"
|
|
64598
64474
|
}, true);
|
|
64599
|
-
if (!isFunction$
|
|
64600
|
-
throwError
|
|
64475
|
+
if (!isFunction$1(cb)) {
|
|
64476
|
+
throwError(SCOPE, "'v-infinite-scroll' binding value must be a function");
|
|
64601
64477
|
}
|
|
64602
64478
|
await nextTick();
|
|
64603
64479
|
const { delay, immediate } = getScrollOptions(el, instance);
|
|
@@ -64606,7 +64482,7 @@ const InfiniteScroll = {
|
|
|
64606
64482
|
const onScroll = throttle(handleScroll.bind(null, el, cb), delay);
|
|
64607
64483
|
if (!container)
|
|
64608
64484
|
return;
|
|
64609
|
-
el[SCOPE
|
|
64485
|
+
el[SCOPE] = {
|
|
64610
64486
|
instance,
|
|
64611
64487
|
container,
|
|
64612
64488
|
containerEl,
|
|
@@ -64617,24 +64493,24 @@ const InfiniteScroll = {
|
|
|
64617
64493
|
};
|
|
64618
64494
|
if (immediate) {
|
|
64619
64495
|
const observer = new MutationObserver(throttle(checkFull.bind(null, el, cb), CHECK_INTERVAL));
|
|
64620
|
-
el[SCOPE
|
|
64496
|
+
el[SCOPE].observer = observer;
|
|
64621
64497
|
observer.observe(el, { childList: true, subtree: true });
|
|
64622
64498
|
checkFull(el, cb);
|
|
64623
64499
|
}
|
|
64624
64500
|
container.addEventListener("scroll", onScroll);
|
|
64625
64501
|
},
|
|
64626
64502
|
unmounted(el) {
|
|
64627
|
-
if (!el[SCOPE
|
|
64503
|
+
if (!el[SCOPE])
|
|
64628
64504
|
return;
|
|
64629
|
-
const { container, onScroll } = el[SCOPE
|
|
64505
|
+
const { container, onScroll } = el[SCOPE];
|
|
64630
64506
|
container == null ? void 0 : container.removeEventListener("scroll", onScroll);
|
|
64631
64507
|
destroyObserver(el);
|
|
64632
64508
|
},
|
|
64633
64509
|
async updated(el) {
|
|
64634
|
-
if (!el[SCOPE
|
|
64510
|
+
if (!el[SCOPE]) {
|
|
64635
64511
|
await nextTick();
|
|
64636
64512
|
} else {
|
|
64637
|
-
const { containerEl, cb, observer } = el[SCOPE
|
|
64513
|
+
const { containerEl, cb, observer } = el[SCOPE];
|
|
64638
64514
|
if (containerEl.clientHeight && observer) {
|
|
64639
64515
|
checkFull(el, cb);
|
|
64640
64516
|
}
|
|
@@ -64801,7 +64677,7 @@ const Loading = function(options = {}, context) {
|
|
|
64801
64677
|
const resolveOptions = (options) => {
|
|
64802
64678
|
var _a, _b, _c, _d;
|
|
64803
64679
|
let target;
|
|
64804
|
-
if (isString$
|
|
64680
|
+
if (isString$1(options.target)) {
|
|
64805
64681
|
target = (_a = document.querySelector(options.target)) != null ? _a : document.body;
|
|
64806
64682
|
} else {
|
|
64807
64683
|
target = options.target || document.body;
|
|
@@ -64871,7 +64747,7 @@ const createInstance = (el, binding) => {
|
|
|
64871
64747
|
const vm = binding.instance;
|
|
64872
64748
|
const getBindingProp = (key) => isObject$1(binding.value) ? binding.value[key] : void 0;
|
|
64873
64749
|
const resolveExpression = (key) => {
|
|
64874
|
-
const data = isString$
|
|
64750
|
+
const data = isString$1(key) && (vm == null ? void 0 : vm[key]) || key;
|
|
64875
64751
|
return ref(data);
|
|
64876
64752
|
};
|
|
64877
64753
|
const getProp = (name) => resolveExpression(getBindingProp(name) || el.getAttribute(getAttributeName(name)));
|
|
@@ -65149,7 +65025,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
65149
65025
|
close();
|
|
65150
65026
|
}
|
|
65151
65027
|
}
|
|
65152
|
-
onMounted
|
|
65028
|
+
onMounted(() => {
|
|
65153
65029
|
startTimer();
|
|
65154
65030
|
nextZIndex();
|
|
65155
65031
|
visible.value = true;
|
|
@@ -65247,17 +65123,16 @@ const normalizeAppendTo = (normalized) => {
|
|
|
65247
65123
|
const appendTo = normalized.appendTo;
|
|
65248
65124
|
if (!appendTo) {
|
|
65249
65125
|
normalized.appendTo = document.body;
|
|
65250
|
-
} else if (isString$
|
|
65126
|
+
} else if (isString$1(normalized.appendTo)) {
|
|
65251
65127
|
let appendTo2 = document.querySelector(normalized.appendTo);
|
|
65252
|
-
if (!isElement$
|
|
65253
|
-
debugWarn("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
65128
|
+
if (!isElement$2(appendTo2)) {
|
|
65254
65129
|
appendTo2 = document.body;
|
|
65255
65130
|
}
|
|
65256
65131
|
normalized.appendTo = appendTo2;
|
|
65257
65132
|
}
|
|
65258
65133
|
};
|
|
65259
65134
|
const normalizePlacement = (normalized) => {
|
|
65260
|
-
if (!normalized.placement && isString$
|
|
65135
|
+
if (!normalized.placement && isString$1(messageConfig.placement) && messageConfig.placement) {
|
|
65261
65136
|
normalized.placement = messageConfig.placement;
|
|
65262
65137
|
}
|
|
65263
65138
|
if (!normalized.placement) {
|
|
@@ -65269,7 +65144,7 @@ const normalizePlacement = (normalized) => {
|
|
|
65269
65144
|
}
|
|
65270
65145
|
};
|
|
65271
65146
|
const normalizeOptions = (params) => {
|
|
65272
|
-
const options = !params || isString$
|
|
65147
|
+
const options = !params || isString$1(params) || isVNode(params) || isFunction$1(params) ? { message: params } : params;
|
|
65273
65148
|
const normalized = {
|
|
65274
65149
|
...messageDefaults,
|
|
65275
65150
|
...options
|
|
@@ -65279,10 +65154,10 @@ const normalizeOptions = (params) => {
|
|
|
65279
65154
|
if (isBoolean(messageConfig.grouping) && !normalized.grouping) {
|
|
65280
65155
|
normalized.grouping = messageConfig.grouping;
|
|
65281
65156
|
}
|
|
65282
|
-
if (isNumber
|
|
65157
|
+
if (isNumber(messageConfig.duration) && normalized.duration === 3e3) {
|
|
65283
65158
|
normalized.duration = messageConfig.duration;
|
|
65284
65159
|
}
|
|
65285
|
-
if (isNumber
|
|
65160
|
+
if (isNumber(messageConfig.offset) && normalized.offset === 16) {
|
|
65286
65161
|
normalized.offset = messageConfig.offset;
|
|
65287
65162
|
}
|
|
65288
65163
|
if (isBoolean(messageConfig.showClose) && !normalized.showClose) {
|
|
@@ -65318,8 +65193,8 @@ const createMessage = ({ appendTo, ...options }, context) => {
|
|
|
65318
65193
|
render(null, container);
|
|
65319
65194
|
}
|
|
65320
65195
|
};
|
|
65321
|
-
const vnode = createVNode(MessageConstructor, props, isFunction$
|
|
65322
|
-
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
|
|
65323
65198
|
} : null);
|
|
65324
65199
|
vnode.appContext = context || message._context;
|
|
65325
65200
|
render(vnode, container);
|
|
@@ -65355,7 +65230,7 @@ const message = (options = {}, context) => {
|
|
|
65355
65230
|
return instance2.handler;
|
|
65356
65231
|
}
|
|
65357
65232
|
}
|
|
65358
|
-
if (isNumber
|
|
65233
|
+
if (isNumber(messageConfig.max) && instances.length >= messageConfig.max) {
|
|
65359
65234
|
return { close: () => void 0 };
|
|
65360
65235
|
}
|
|
65361
65236
|
const instance = createMessage(normalized, context);
|
|
@@ -65554,7 +65429,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
65554
65429
|
const draggable = computed(() => props.draggable);
|
|
65555
65430
|
const overflow = computed(() => props.overflow);
|
|
65556
65431
|
const { isDragging } = useDraggable(rootRef, headerRef, draggable, overflow);
|
|
65557
|
-
onMounted
|
|
65432
|
+
onMounted(async () => {
|
|
65558
65433
|
await nextTick();
|
|
65559
65434
|
if (props.closeOnHashChange) {
|
|
65560
65435
|
window.addEventListener("hashchange", doClose);
|
|
@@ -65607,14 +65482,14 @@ const _sfc_main$1 = defineComponent({
|
|
|
65607
65482
|
return false;
|
|
65608
65483
|
}
|
|
65609
65484
|
const inputValidator = state.inputValidator;
|
|
65610
|
-
if (isFunction$
|
|
65485
|
+
if (isFunction$1(inputValidator)) {
|
|
65611
65486
|
const validateResult = inputValidator(state.inputValue);
|
|
65612
65487
|
if (validateResult === false) {
|
|
65613
65488
|
state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
|
|
65614
65489
|
state.validateError = true;
|
|
65615
65490
|
return false;
|
|
65616
65491
|
}
|
|
65617
|
-
if (isString$
|
|
65492
|
+
if (isString$1(validateResult)) {
|
|
65618
65493
|
state.editorErrorMessage = validateResult;
|
|
65619
65494
|
state.validateError = true;
|
|
65620
65495
|
return false;
|
|
@@ -65871,22 +65746,21 @@ const messageInstance = /* @__PURE__ */ new Map();
|
|
|
65871
65746
|
const getAppendToElement = (props) => {
|
|
65872
65747
|
let appendTo = document.body;
|
|
65873
65748
|
if (props.appendTo) {
|
|
65874
|
-
if (isString$
|
|
65749
|
+
if (isString$1(props.appendTo)) {
|
|
65875
65750
|
appendTo = document.querySelector(props.appendTo);
|
|
65876
65751
|
}
|
|
65877
|
-
if (isElement$
|
|
65752
|
+
if (isElement$2(props.appendTo)) {
|
|
65878
65753
|
appendTo = props.appendTo;
|
|
65879
65754
|
}
|
|
65880
|
-
if (!isElement$
|
|
65881
|
-
debugWarn("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
65755
|
+
if (!isElement$2(appendTo)) {
|
|
65882
65756
|
appendTo = document.body;
|
|
65883
65757
|
}
|
|
65884
65758
|
}
|
|
65885
65759
|
return appendTo;
|
|
65886
65760
|
};
|
|
65887
65761
|
const initInstance = (props, container, appContext = null) => {
|
|
65888
|
-
const vnode = createVNode(MessageBoxConstructor, props, isFunction$
|
|
65889
|
-
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
|
|
65890
65764
|
} : null);
|
|
65891
65765
|
vnode.appContext = appContext;
|
|
65892
65766
|
render(vnode, container);
|
|
@@ -65942,7 +65816,7 @@ function MessageBox(options, appContext = null) {
|
|
|
65942
65816
|
if (!isClient)
|
|
65943
65817
|
return Promise.reject();
|
|
65944
65818
|
let callback;
|
|
65945
|
-
if (isString$
|
|
65819
|
+
if (isString$1(options) || isVNode(options)) {
|
|
65946
65820
|
options = {
|
|
65947
65821
|
message: options
|
|
65948
65822
|
};
|
|
@@ -66142,7 +66016,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66142
66016
|
break;
|
|
66143
66017
|
}
|
|
66144
66018
|
}
|
|
66145
|
-
onMounted
|
|
66019
|
+
onMounted(() => {
|
|
66146
66020
|
startTimer();
|
|
66147
66021
|
nextZIndex();
|
|
66148
66022
|
visible.value = true;
|
|
@@ -66231,7 +66105,7 @@ let seed = 1;
|
|
|
66231
66105
|
const notify = function(options = {}, context) {
|
|
66232
66106
|
if (!isClient)
|
|
66233
66107
|
return { close: () => void 0 };
|
|
66234
|
-
if (isString$
|
|
66108
|
+
if (isString$1(options) || isVNode(options)) {
|
|
66235
66109
|
options = { message: options };
|
|
66236
66110
|
}
|
|
66237
66111
|
const position = options.position || "top-right";
|
|
@@ -66252,17 +66126,16 @@ const notify = function(options = {}, context) {
|
|
|
66252
66126
|
}
|
|
66253
66127
|
};
|
|
66254
66128
|
let appendTo = document.body;
|
|
66255
|
-
if (isElement$
|
|
66129
|
+
if (isElement$2(options.appendTo)) {
|
|
66256
66130
|
appendTo = options.appendTo;
|
|
66257
|
-
} else if (isString$
|
|
66131
|
+
} else if (isString$1(options.appendTo)) {
|
|
66258
66132
|
appendTo = document.querySelector(options.appendTo);
|
|
66259
66133
|
}
|
|
66260
|
-
if (!isElement$
|
|
66261
|
-
debugWarn("ElNotification", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
66134
|
+
if (!isElement$2(appendTo)) {
|
|
66262
66135
|
appendTo = document.body;
|
|
66263
66136
|
}
|
|
66264
66137
|
const container = document.createElement("div");
|
|
66265
|
-
const vm = createVNode(NotificationConstructor, props, isFunction$
|
|
66138
|
+
const vm = createVNode(NotificationConstructor, props, isFunction$1(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
|
|
66266
66139
|
vm.appContext = isUndefined(context) ? notify._context : context;
|
|
66267
66140
|
vm.props.onDestroy = () => {
|
|
66268
66141
|
render(null, container);
|
|
@@ -66278,7 +66151,7 @@ const notify = function(options = {}, context) {
|
|
|
66278
66151
|
};
|
|
66279
66152
|
notificationTypes.forEach((type) => {
|
|
66280
66153
|
notify[type] = (options = {}, appContext) => {
|
|
66281
|
-
if (isString$
|
|
66154
|
+
if (isString$1(options) || isVNode(options)) {
|
|
66282
66155
|
options = {
|
|
66283
66156
|
message: options
|
|
66284
66157
|
};
|
|
@@ -66346,4 +66219,4 @@ var installer = makeInstaller([...Components, ...Plugins]);
|
|
|
66346
66219
|
const install = installer.install;
|
|
66347
66220
|
const version = installer.version;
|
|
66348
66221
|
|
|
66349
|
-
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 };
|