@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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20251209 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
return e instanceof Element;
|
|
14
14
|
};
|
|
15
15
|
const isVisible = (element) => {
|
|
16
|
-
if (typeof process !== "undefined" && false)
|
|
17
|
-
return true;
|
|
18
16
|
const computed = getComputedStyle(element);
|
|
19
17
|
return computed.position === "fixed" ? false : element.offsetParent !== null;
|
|
20
18
|
};
|
|
@@ -1116,11 +1114,11 @@
|
|
|
1116
1114
|
const hasOwn = (val, key) => hasOwnProperty$p.call(val, key);
|
|
1117
1115
|
const isArray$1 = Array.isArray;
|
|
1118
1116
|
const isDate$1 = (val) => toTypeString(val) === "[object Date]";
|
|
1119
|
-
const isFunction$
|
|
1120
|
-
const isString$
|
|
1117
|
+
const isFunction$1 = (val) => typeof val === "function";
|
|
1118
|
+
const isString$1 = (val) => typeof val === "string";
|
|
1121
1119
|
const isObject$1 = (val) => val !== null && typeof val === "object";
|
|
1122
1120
|
const isPromise = (val) => {
|
|
1123
|
-
return isObject$1(val) && isFunction$
|
|
1121
|
+
return isObject$1(val) && isFunction$1(val.then) && isFunction$1(val.catch);
|
|
1124
1122
|
};
|
|
1125
1123
|
const objectToString$1 = Object.prototype.toString;
|
|
1126
1124
|
const toTypeString = (value) => objectToString$1.call(value);
|
|
@@ -1344,7 +1342,7 @@
|
|
|
1344
1342
|
var funcTag$2 = "[object Function]";
|
|
1345
1343
|
var genTag$1 = "[object GeneratorFunction]";
|
|
1346
1344
|
var proxyTag = "[object Proxy]";
|
|
1347
|
-
function isFunction
|
|
1345
|
+
function isFunction(value) {
|
|
1348
1346
|
if (!isObject(value)) {
|
|
1349
1347
|
return false;
|
|
1350
1348
|
}
|
|
@@ -1389,7 +1387,7 @@
|
|
|
1389
1387
|
if (!isObject(value) || isMasked(value)) {
|
|
1390
1388
|
return false;
|
|
1391
1389
|
}
|
|
1392
|
-
var pattern = isFunction
|
|
1390
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
1393
1391
|
return pattern.test(toSource(value));
|
|
1394
1392
|
}
|
|
1395
1393
|
|
|
@@ -2100,7 +2098,7 @@
|
|
|
2100
2098
|
}
|
|
2101
2099
|
|
|
2102
2100
|
function isArrayLike(value) {
|
|
2103
|
-
return value != null && isLength(value.length) && !isFunction
|
|
2101
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
2104
2102
|
}
|
|
2105
2103
|
|
|
2106
2104
|
function isIterateeCall(value, index, object) {
|
|
@@ -4327,7 +4325,7 @@
|
|
|
4327
4325
|
newValue = objValue;
|
|
4328
4326
|
if (isArguments(objValue)) {
|
|
4329
4327
|
newValue = toPlainObject(objValue);
|
|
4330
|
-
} else if (!isObject(objValue) || isFunction
|
|
4328
|
+
} else if (!isObject(objValue) || isFunction(objValue)) {
|
|
4331
4329
|
newValue = initCloneObject(srcValue);
|
|
4332
4330
|
}
|
|
4333
4331
|
} else {
|
|
@@ -4873,7 +4871,7 @@
|
|
|
4873
4871
|
|
|
4874
4872
|
function baseFunctions(object, props) {
|
|
4875
4873
|
return arrayFilter(props, function(key) {
|
|
4876
|
-
return isFunction
|
|
4874
|
+
return isFunction(object[key]);
|
|
4877
4875
|
});
|
|
4878
4876
|
}
|
|
4879
4877
|
|
|
@@ -4944,7 +4942,7 @@
|
|
|
4944
4942
|
}
|
|
4945
4943
|
|
|
4946
4944
|
var stringTag = "[object String]";
|
|
4947
|
-
function isString
|
|
4945
|
+
function isString(value) {
|
|
4948
4946
|
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
4949
4947
|
}
|
|
4950
4948
|
|
|
@@ -4966,7 +4964,7 @@
|
|
|
4966
4964
|
if (fromIndex < 0) {
|
|
4967
4965
|
fromIndex = nativeMax$7(length + fromIndex, 0);
|
|
4968
4966
|
}
|
|
4969
|
-
return isString
|
|
4967
|
+
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
4970
4968
|
}
|
|
4971
4969
|
|
|
4972
4970
|
var nativeMax$6 = Math.max;
|
|
@@ -5127,7 +5125,7 @@
|
|
|
5127
5125
|
var nodeIsDate = nodeUtil && nodeUtil.isDate;
|
|
5128
5126
|
var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
|
|
5129
5127
|
|
|
5130
|
-
function isElement$
|
|
5128
|
+
function isElement$3(value) {
|
|
5131
5129
|
return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
|
|
5132
5130
|
}
|
|
5133
5131
|
|
|
@@ -5186,15 +5184,15 @@
|
|
|
5186
5184
|
}
|
|
5187
5185
|
|
|
5188
5186
|
var numberTag = "[object Number]";
|
|
5189
|
-
function isNumber$
|
|
5187
|
+
function isNumber$1(value) {
|
|
5190
5188
|
return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
|
|
5191
5189
|
}
|
|
5192
5190
|
|
|
5193
5191
|
function isNaN$1(value) {
|
|
5194
|
-
return isNumber$
|
|
5192
|
+
return isNumber$1(value) && value != +value;
|
|
5195
5193
|
}
|
|
5196
5194
|
|
|
5197
|
-
var isMaskable = coreJsData ? isFunction
|
|
5195
|
+
var isMaskable = coreJsData ? isFunction : stubFalse;
|
|
5198
5196
|
|
|
5199
5197
|
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";
|
|
5200
5198
|
function isNative(value) {
|
|
@@ -5397,7 +5395,7 @@
|
|
|
5397
5395
|
|
|
5398
5396
|
function mixin$1(object, source, options) {
|
|
5399
5397
|
var props = keys(source), methodNames = baseFunctions(source, props);
|
|
5400
|
-
var chain = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction
|
|
5398
|
+
var chain = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object);
|
|
5401
5399
|
arrayEach(methodNames, function(methodName) {
|
|
5402
5400
|
var func = source[methodName];
|
|
5403
5401
|
object[methodName] = func;
|
|
@@ -5458,7 +5456,7 @@
|
|
|
5458
5456
|
return [];
|
|
5459
5457
|
}
|
|
5460
5458
|
if (isArrayLike(value)) {
|
|
5461
|
-
return isString
|
|
5459
|
+
return isString(value) ? stringToArray(value) : copyArray(value);
|
|
5462
5460
|
}
|
|
5463
5461
|
if (symIterator$1 && value[symIterator$1]) {
|
|
5464
5462
|
return iteratorToArray(value[symIterator$1]());
|
|
@@ -6095,7 +6093,7 @@
|
|
|
6095
6093
|
index = length;
|
|
6096
6094
|
value = defaultValue;
|
|
6097
6095
|
}
|
|
6098
|
-
object = isFunction
|
|
6096
|
+
object = isFunction(value) ? value.call(object) : value;
|
|
6099
6097
|
}
|
|
6100
6098
|
return object;
|
|
6101
6099
|
}
|
|
@@ -6182,7 +6180,7 @@
|
|
|
6182
6180
|
return 0;
|
|
6183
6181
|
}
|
|
6184
6182
|
if (isArrayLike(collection)) {
|
|
6185
|
-
return isString
|
|
6183
|
+
return isString(collection) ? stringSize(collection) : collection.length;
|
|
6186
6184
|
}
|
|
6187
6185
|
var tag = getTag$1(collection);
|
|
6188
6186
|
if (tag == mapTag || tag == setTag) {
|
|
@@ -6636,7 +6634,7 @@
|
|
|
6636
6634
|
if (isArrLike) {
|
|
6637
6635
|
accumulator = isArr ? new Ctor() : [];
|
|
6638
6636
|
} else if (isObject(object)) {
|
|
6639
|
-
accumulator = isFunction
|
|
6637
|
+
accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
|
|
6640
6638
|
} else {
|
|
6641
6639
|
accumulator = {};
|
|
6642
6640
|
}
|
|
@@ -7166,13 +7164,13 @@
|
|
|
7166
7164
|
isBoolean: isBoolean$1,
|
|
7167
7165
|
isBuffer,
|
|
7168
7166
|
isDate,
|
|
7169
|
-
isElement: isElement$
|
|
7167
|
+
isElement: isElement$3,
|
|
7170
7168
|
isEmpty: isEmpty$1,
|
|
7171
7169
|
isEqual: isEqual$1,
|
|
7172
7170
|
isEqualWith,
|
|
7173
7171
|
isError,
|
|
7174
7172
|
isFinite,
|
|
7175
|
-
isFunction
|
|
7173
|
+
isFunction,
|
|
7176
7174
|
isInteger,
|
|
7177
7175
|
isLength,
|
|
7178
7176
|
isMap,
|
|
@@ -7182,14 +7180,14 @@
|
|
|
7182
7180
|
isNative,
|
|
7183
7181
|
isNil,
|
|
7184
7182
|
isNull,
|
|
7185
|
-
isNumber: isNumber$
|
|
7183
|
+
isNumber: isNumber$1,
|
|
7186
7184
|
isObject,
|
|
7187
7185
|
isObjectLike,
|
|
7188
7186
|
isPlainObject,
|
|
7189
7187
|
isRegExp,
|
|
7190
7188
|
isSafeInteger,
|
|
7191
7189
|
isSet,
|
|
7192
|
-
isString
|
|
7190
|
+
isString,
|
|
7193
7191
|
isSymbol,
|
|
7194
7192
|
isTypedArray,
|
|
7195
7193
|
isUndefined: isUndefined$1,
|
|
@@ -7952,16 +7950,16 @@
|
|
|
7952
7950
|
|
|
7953
7951
|
const isUndefined = (val) => val === void 0;
|
|
7954
7952
|
const isBoolean = (val) => typeof val === "boolean";
|
|
7955
|
-
const isNumber
|
|
7953
|
+
const isNumber = (val) => typeof val === "number";
|
|
7956
7954
|
const isEmpty = (val) => !val && val !== 0 || isArray$1(val) && val.length === 0 || isObject$1(val) && !Object.keys(val).length;
|
|
7957
|
-
const isElement$
|
|
7955
|
+
const isElement$2 = (e) => {
|
|
7958
7956
|
if (typeof Element === "undefined")
|
|
7959
7957
|
return false;
|
|
7960
7958
|
return e instanceof Element;
|
|
7961
7959
|
};
|
|
7962
7960
|
const isPropAbsent = (prop) => isNil(prop);
|
|
7963
7961
|
const isStringNumber = (val) => {
|
|
7964
|
-
if (!isString$
|
|
7962
|
+
if (!isString$1(val)) {
|
|
7965
7963
|
return false;
|
|
7966
7964
|
}
|
|
7967
7965
|
return !Number.isNaN(Number(val));
|
|
@@ -7993,17 +7991,12 @@
|
|
|
7993
7991
|
this.name = "ElementPlusError";
|
|
7994
7992
|
}
|
|
7995
7993
|
}
|
|
7996
|
-
function throwError
|
|
7994
|
+
function throwError(scope, m) {
|
|
7997
7995
|
throw new ElementPlusError(`[${scope}] ${m}`);
|
|
7998
7996
|
}
|
|
7999
7997
|
function debugWarn(scope, message) {
|
|
8000
|
-
if (typeof process !== "undefined" && false) {
|
|
8001
|
-
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
|
8002
|
-
console.warn(error);
|
|
8003
|
-
}
|
|
8004
7998
|
}
|
|
8005
7999
|
|
|
8006
|
-
const SCOPE$a = "utils/dom/style";
|
|
8007
8000
|
const classNameToArray = (cls = "") => cls.split(" ").filter((item) => !!item.trim());
|
|
8008
8001
|
const hasClass = (el, cls) => {
|
|
8009
8002
|
if (!el || !cls)
|
|
@@ -8052,12 +8045,11 @@
|
|
|
8052
8045
|
function addUnit(value, defaultUnit = "px") {
|
|
8053
8046
|
if (!value && value !== 0)
|
|
8054
8047
|
return "";
|
|
8055
|
-
if (isNumber
|
|
8048
|
+
if (isNumber(value) || isStringNumber(value)) {
|
|
8056
8049
|
return `${value}${defaultUnit}`;
|
|
8057
|
-
} else if (isString$
|
|
8050
|
+
} else if (isString$1(value)) {
|
|
8058
8051
|
return value;
|
|
8059
8052
|
}
|
|
8060
|
-
debugWarn(SCOPE$a, "binding value must be a string or number");
|
|
8061
8053
|
}
|
|
8062
8054
|
|
|
8063
8055
|
const isScroll = (el, isVertical) => {
|
|
@@ -8145,7 +8137,7 @@
|
|
|
8145
8137
|
}
|
|
8146
8138
|
if (time < duration) {
|
|
8147
8139
|
handle = rAF(scroll);
|
|
8148
|
-
} else if (isFunction$
|
|
8140
|
+
} else if (isFunction$1(callback)) {
|
|
8149
8141
|
callback();
|
|
8150
8142
|
}
|
|
8151
8143
|
};
|
|
@@ -8170,7 +8162,7 @@
|
|
|
8170
8162
|
const getElement = (target) => {
|
|
8171
8163
|
if (!isClient || target === "")
|
|
8172
8164
|
return null;
|
|
8173
|
-
if (isString$
|
|
8165
|
+
if (isString$1(target)) {
|
|
8174
8166
|
try {
|
|
8175
8167
|
return document.querySelector(target);
|
|
8176
8168
|
} catch (e) {
|
|
@@ -9002,7 +8994,6 @@
|
|
|
9002
8994
|
|
|
9003
8995
|
const isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
|
|
9004
8996
|
|
|
9005
|
-
const SCOPE$9 = "utils/vue/vnode";
|
|
9006
8997
|
var PatchFlags = /* @__PURE__ */ ((PatchFlags2) => {
|
|
9007
8998
|
PatchFlags2[PatchFlags2["TEXT"] = 1] = "TEXT";
|
|
9008
8999
|
PatchFlags2[PatchFlags2["CLASS"] = 2] = "CLASS";
|
|
@@ -9030,7 +9021,6 @@
|
|
|
9030
9021
|
}
|
|
9031
9022
|
const getNormalizedProps = (node) => {
|
|
9032
9023
|
if (!vue.isVNode(node)) {
|
|
9033
|
-
debugWarn(SCOPE$9, "[getNormalizedProps] must be a VNode");
|
|
9034
9024
|
return {};
|
|
9035
9025
|
}
|
|
9036
9026
|
const raw = node.props || {};
|
|
@@ -9107,7 +9097,6 @@
|
|
|
9107
9097
|
});
|
|
9108
9098
|
const instance = vue.getCurrentInstance();
|
|
9109
9099
|
if (!instance) {
|
|
9110
|
-
debugWarn("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function");
|
|
9111
9100
|
return vue.computed(() => ({}));
|
|
9112
9101
|
}
|
|
9113
9102
|
return vue.computed(() => {
|
|
@@ -9136,11 +9125,6 @@
|
|
|
9136
9125
|
|
|
9137
9126
|
const useDeprecated = ({ from, replacement, scope, version, ref, type = "API" }, condition) => {
|
|
9138
9127
|
vue.watch(() => vue.unref(condition), (val) => {
|
|
9139
|
-
if (val) {
|
|
9140
|
-
debugWarn(scope, `[${type}] ${from} is about to be deprecated in version ${version}, please use ${replacement} instead.
|
|
9141
|
-
For more detail, please visit: ${ref}
|
|
9142
|
-
`);
|
|
9143
|
-
}
|
|
9144
9128
|
}, {
|
|
9145
9129
|
immediate: true
|
|
9146
9130
|
});
|
|
@@ -9536,7 +9520,7 @@ For more detail, please visit: ${ref}
|
|
|
9536
9520
|
|
|
9537
9521
|
const useLockscreen = (trigger, options = {}) => {
|
|
9538
9522
|
if (!vue.isRef(trigger)) {
|
|
9539
|
-
throwError
|
|
9523
|
+
throwError("[useLockscreen]", "You need to pass a ref param to this function");
|
|
9540
9524
|
}
|
|
9541
9525
|
const ns = options.ns || useNamespace("popup");
|
|
9542
9526
|
const hiddenCls = vue.computed(() => ns.bm("parent", "hidden"));
|
|
@@ -9622,7 +9606,7 @@ For more detail, please visit: ${ref}
|
|
|
9622
9606
|
const instance = vue.getCurrentInstance();
|
|
9623
9607
|
const { emit } = instance;
|
|
9624
9608
|
const props = instance.props;
|
|
9625
|
-
const hasUpdateHandler = vue.computed(() => isFunction$
|
|
9609
|
+
const hasUpdateHandler = vue.computed(() => isFunction$1(props[updateEventKeyRaw]));
|
|
9626
9610
|
const isModelBindingAbsent = vue.computed(() => props[name] === null);
|
|
9627
9611
|
const doShow = (event) => {
|
|
9628
9612
|
if (indicator.value === true) {
|
|
@@ -9632,7 +9616,7 @@ For more detail, please visit: ${ref}
|
|
|
9632
9616
|
if (toggleReason) {
|
|
9633
9617
|
toggleReason.value = event;
|
|
9634
9618
|
}
|
|
9635
|
-
if (isFunction$
|
|
9619
|
+
if (isFunction$1(onShow)) {
|
|
9636
9620
|
onShow(event);
|
|
9637
9621
|
}
|
|
9638
9622
|
};
|
|
@@ -9644,12 +9628,12 @@ For more detail, please visit: ${ref}
|
|
|
9644
9628
|
if (toggleReason) {
|
|
9645
9629
|
toggleReason.value = event;
|
|
9646
9630
|
}
|
|
9647
|
-
if (isFunction$
|
|
9631
|
+
if (isFunction$1(onHide)) {
|
|
9648
9632
|
onHide(event);
|
|
9649
9633
|
}
|
|
9650
9634
|
};
|
|
9651
9635
|
const show = (event) => {
|
|
9652
|
-
if (props.disabled === true || isFunction$
|
|
9636
|
+
if (props.disabled === true || isFunction$1(shouldProceed) && !shouldProceed())
|
|
9653
9637
|
return;
|
|
9654
9638
|
const shouldEmit = hasUpdateHandler.value && isClient;
|
|
9655
9639
|
if (shouldEmit) {
|
|
@@ -9911,7 +9895,7 @@ For more detail, please visit: ${ref}
|
|
|
9911
9895
|
};
|
|
9912
9896
|
const dispatcher = (type) => {
|
|
9913
9897
|
if (type === "leading") {
|
|
9914
|
-
if (isNumber
|
|
9898
|
+
if (isNumber(throttle)) {
|
|
9915
9899
|
dispatchThrottling(throttle);
|
|
9916
9900
|
} else {
|
|
9917
9901
|
dispatchThrottling(throttle.leading);
|
|
@@ -10015,13 +9999,6 @@ For more detail, please visit: ${ref}
|
|
|
10015
9999
|
};
|
|
10016
10000
|
const useId = (deterministicId) => {
|
|
10017
10001
|
const idInjection = useIdInjection();
|
|
10018
|
-
if (!isClient && idInjection === defaultIdInjection) {
|
|
10019
|
-
debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
10020
|
-
usage: app.provide(ID_INJECTION_KEY, {
|
|
10021
|
-
prefix: number,
|
|
10022
|
-
current: number,
|
|
10023
|
-
})`);
|
|
10024
|
-
}
|
|
10025
10002
|
const namespace = useGetDerivedNamespace();
|
|
10026
10003
|
const idRef = computedEager(() => vue.unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`);
|
|
10027
10004
|
return idRef;
|
|
@@ -10074,7 +10051,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
10074
10051
|
vue.onBeforeMount(() => {
|
|
10075
10052
|
if (!isClient)
|
|
10076
10053
|
return;
|
|
10077
|
-
if (
|
|
10054
|
+
if (!document.body.querySelector(selector.value)) {
|
|
10078
10055
|
createContainer(id.value);
|
|
10079
10056
|
}
|
|
10080
10057
|
});
|
|
@@ -10153,7 +10130,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
10153
10130
|
registerTimeout(() => {
|
|
10154
10131
|
open(event);
|
|
10155
10132
|
const _autoClose = vue.unref(autoClose);
|
|
10156
|
-
if (isNumber
|
|
10133
|
+
if (isNumber(_autoClose) && _autoClose > 0) {
|
|
10157
10134
|
registerTimeoutForAutoClose(() => {
|
|
10158
10135
|
close(event);
|
|
10159
10136
|
}, _autoClose);
|
|
@@ -10207,7 +10184,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
10207
10184
|
const zIndexInjection = zIndexOverrides || (vue.getCurrentInstance() ? vue.inject(zIndexContextKey, void 0) : void 0);
|
|
10208
10185
|
const initialZIndex = vue.computed(() => {
|
|
10209
10186
|
const zIndexFromInjection = vue.unref(zIndexInjection);
|
|
10210
|
-
return isNumber
|
|
10187
|
+
return isNumber(zIndexFromInjection) ? zIndexFromInjection : defaultInitialZIndex;
|
|
10211
10188
|
});
|
|
10212
10189
|
const currentZIndex = vue.computed(() => initialZIndex.value + zIndex.value);
|
|
10213
10190
|
const nextZIndex = () => {
|
|
@@ -10215,10 +10192,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
10215
10192
|
zIndex.value = increasingInjection.current;
|
|
10216
10193
|
return currentZIndex.value;
|
|
10217
10194
|
};
|
|
10218
|
-
if (!isClient && !vue.inject(ZINDEX_INJECTION_KEY))
|
|
10219
|
-
debugWarn("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
10220
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
10221
|
-
}
|
|
10195
|
+
if (!isClient && !vue.inject(ZINDEX_INJECTION_KEY)) ;
|
|
10222
10196
|
return {
|
|
10223
10197
|
initialZIndex,
|
|
10224
10198
|
currentZIndex,
|
|
@@ -11414,7 +11388,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11414
11388
|
function isNode$1(value) {
|
|
11415
11389
|
return value instanceof Node || value instanceof getWindow$1(value).Node;
|
|
11416
11390
|
}
|
|
11417
|
-
function isElement$
|
|
11391
|
+
function isElement$1(value) {
|
|
11418
11392
|
return value instanceof Element || value instanceof getWindow$1(value).Element;
|
|
11419
11393
|
}
|
|
11420
11394
|
function isHTMLElement$1(value) {
|
|
@@ -11450,7 +11424,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11450
11424
|
}
|
|
11451
11425
|
function isContainingBlock$1(elementOrCss) {
|
|
11452
11426
|
const webkit = isWebKit();
|
|
11453
|
-
const css = isElement$
|
|
11427
|
+
const css = isElement$1(elementOrCss) ? getComputedStyle$2(elementOrCss) : elementOrCss;
|
|
11454
11428
|
|
|
11455
11429
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
11456
11430
|
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));
|
|
@@ -11478,7 +11452,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11478
11452
|
return getWindow$1(element).getComputedStyle(element);
|
|
11479
11453
|
}
|
|
11480
11454
|
function getNodeScroll$1(element) {
|
|
11481
|
-
if (isElement$
|
|
11455
|
+
if (isElement$1(element)) {
|
|
11482
11456
|
return {
|
|
11483
11457
|
scrollLeft: element.scrollLeft,
|
|
11484
11458
|
scrollTop: element.scrollTop
|
|
@@ -11553,7 +11527,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11553
11527
|
}
|
|
11554
11528
|
|
|
11555
11529
|
function unwrapElement(element) {
|
|
11556
|
-
return !isElement$
|
|
11530
|
+
return !isElement$1(element) ? element.contextElement : element;
|
|
11557
11531
|
}
|
|
11558
11532
|
|
|
11559
11533
|
function getScale(element) {
|
|
@@ -11617,7 +11591,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11617
11591
|
let scale = createCoords(1);
|
|
11618
11592
|
if (includeScale) {
|
|
11619
11593
|
if (offsetParent) {
|
|
11620
|
-
if (isElement$
|
|
11594
|
+
if (isElement$1(offsetParent)) {
|
|
11621
11595
|
scale = getScale(offsetParent);
|
|
11622
11596
|
}
|
|
11623
11597
|
} else {
|
|
@@ -11631,7 +11605,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11631
11605
|
let height = clientRect.height / scale.y;
|
|
11632
11606
|
if (domElement) {
|
|
11633
11607
|
const win = getWindow$1(domElement);
|
|
11634
|
-
const offsetWin = offsetParent && isElement$
|
|
11608
|
+
const offsetWin = offsetParent && isElement$1(offsetParent) ? getWindow$1(offsetParent) : offsetParent;
|
|
11635
11609
|
let currentWin = win;
|
|
11636
11610
|
let currentIFrame = currentWin.frameElement;
|
|
11637
11611
|
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
@@ -11776,7 +11750,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11776
11750
|
rect = getViewportRect$1(element, strategy);
|
|
11777
11751
|
} else if (clippingAncestor === 'document') {
|
|
11778
11752
|
rect = getDocumentRect$1(getDocumentElement$1(element));
|
|
11779
|
-
} else if (isElement$
|
|
11753
|
+
} else if (isElement$1(clippingAncestor)) {
|
|
11780
11754
|
rect = getInnerBoundingClientRect$1(clippingAncestor, strategy);
|
|
11781
11755
|
} else {
|
|
11782
11756
|
const visualOffsets = getVisualOffsets(element);
|
|
@@ -11790,7 +11764,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11790
11764
|
}
|
|
11791
11765
|
function hasFixedPositionAncestor(element, stopNode) {
|
|
11792
11766
|
const parentNode = getParentNode$1(element);
|
|
11793
|
-
if (parentNode === stopNode || !isElement$
|
|
11767
|
+
if (parentNode === stopNode || !isElement$1(parentNode) || isLastTraversableNode(parentNode)) {
|
|
11794
11768
|
return false;
|
|
11795
11769
|
}
|
|
11796
11770
|
return getComputedStyle$2(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
|
|
@@ -11804,13 +11778,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11804
11778
|
if (cachedResult) {
|
|
11805
11779
|
return cachedResult;
|
|
11806
11780
|
}
|
|
11807
|
-
let result = getOverflowAncestors$1(element, [], false).filter(el => isElement$
|
|
11781
|
+
let result = getOverflowAncestors$1(element, [], false).filter(el => isElement$1(el) && getNodeName$1(el) !== 'body');
|
|
11808
11782
|
let currentContainingBlockComputedStyle = null;
|
|
11809
11783
|
const elementIsFixed = getComputedStyle$2(element).position === 'fixed';
|
|
11810
11784
|
let currentNode = elementIsFixed ? getParentNode$1(element) : element;
|
|
11811
11785
|
|
|
11812
11786
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
11813
|
-
while (isElement$
|
|
11787
|
+
while (isElement$1(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
11814
11788
|
const computedStyle = getComputedStyle$2(currentNode);
|
|
11815
11789
|
const currentNodeIsContaining = isContainingBlock$1(currentNode);
|
|
11816
11790
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
@@ -11925,7 +11899,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11925
11899
|
if (!isHTMLElement$1(element)) {
|
|
11926
11900
|
let svgOffsetParent = getParentNode$1(element);
|
|
11927
11901
|
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
11928
|
-
if (isElement$
|
|
11902
|
+
if (isElement$1(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
11929
11903
|
return svgOffsetParent;
|
|
11930
11904
|
}
|
|
11931
11905
|
svgOffsetParent = getParentNode$1(svgOffsetParent);
|
|
@@ -11970,7 +11944,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
11970
11944
|
getClientRects,
|
|
11971
11945
|
getDimensions: getDimensions$1,
|
|
11972
11946
|
getScale,
|
|
11973
|
-
isElement: isElement$
|
|
11947
|
+
isElement: isElement$1,
|
|
11974
11948
|
isRTL: isRTL$1
|
|
11975
11949
|
};
|
|
11976
11950
|
|
|
@@ -12279,7 +12253,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12279
12253
|
const wrapperRef = vue.shallowRef();
|
|
12280
12254
|
const isFocused = vue.ref(false);
|
|
12281
12255
|
const handleFocus = (event) => {
|
|
12282
|
-
const cancelFocus = isFunction$
|
|
12256
|
+
const cancelFocus = isFunction$1(beforeFocus) ? beforeFocus(event) : false;
|
|
12283
12257
|
if (vue.unref(disabled) || isFocused.value || cancelFocus)
|
|
12284
12258
|
return;
|
|
12285
12259
|
isFocused.value = true;
|
|
@@ -12288,7 +12262,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12288
12262
|
};
|
|
12289
12263
|
const handleBlur = (event) => {
|
|
12290
12264
|
var _a;
|
|
12291
|
-
const cancelBlur = isFunction$
|
|
12265
|
+
const cancelBlur = isFunction$1(beforeBlur) ? beforeBlur(event) : false;
|
|
12292
12266
|
if (vue.unref(disabled) || event.relatedTarget && ((_a = wrapperRef.value) == null ? void 0 : _a.contains(event.relatedTarget)) || cancelBlur)
|
|
12293
12267
|
return;
|
|
12294
12268
|
isFocused.value = false;
|
|
@@ -12313,15 +12287,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12313
12287
|
useEventListener(wrapperRef, "focus", handleFocus, true);
|
|
12314
12288
|
useEventListener(wrapperRef, "blur", handleBlur, true);
|
|
12315
12289
|
useEventListener(wrapperRef, "click", handleClick, true);
|
|
12316
|
-
if (typeof process !== "undefined" && false) {
|
|
12317
|
-
onMounted(() => {
|
|
12318
|
-
const targetEl = isElement(target.value) ? target.value : document.querySelector("input,textarea");
|
|
12319
|
-
if (targetEl) {
|
|
12320
|
-
useEventListener(targetEl, "focus", handleFocus, true);
|
|
12321
|
-
useEventListener(targetEl, "blur", handleBlur, true);
|
|
12322
|
-
}
|
|
12323
|
-
});
|
|
12324
|
-
}
|
|
12325
12290
|
return {
|
|
12326
12291
|
isFocused,
|
|
12327
12292
|
wrapperRef,
|
|
@@ -12366,7 +12331,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12366
12331
|
}
|
|
12367
12332
|
|
|
12368
12333
|
const emptyValuesContextKey = Symbol("emptyValuesContextKey");
|
|
12369
|
-
const SCOPE$
|
|
12334
|
+
const SCOPE$6 = "use-empty-values";
|
|
12370
12335
|
const DEFAULT_EMPTY_VALUES = ["", void 0, null];
|
|
12371
12336
|
const DEFAULT_VALUE_ON_CLEAR = void 0;
|
|
12372
12337
|
const useEmptyValuesProps = buildProps({
|
|
@@ -12380,7 +12345,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12380
12345
|
]),
|
|
12381
12346
|
default: void 0,
|
|
12382
12347
|
validator: (val) => {
|
|
12383
|
-
val = isFunction$
|
|
12348
|
+
val = isFunction$1(val) ? val() : val;
|
|
12384
12349
|
if (isArray$1(val)) {
|
|
12385
12350
|
return val.every((item) => !item);
|
|
12386
12351
|
}
|
|
@@ -12392,11 +12357,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12392
12357
|
const config = vue.getCurrentInstance() ? vue.inject(emptyValuesContextKey, vue.ref({})) : vue.ref({});
|
|
12393
12358
|
const emptyValues = vue.computed(() => props.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES);
|
|
12394
12359
|
const valueOnClear = vue.computed(() => {
|
|
12395
|
-
if (isFunction$
|
|
12360
|
+
if (isFunction$1(props.valueOnClear)) {
|
|
12396
12361
|
return props.valueOnClear();
|
|
12397
12362
|
} else if (props.valueOnClear !== void 0) {
|
|
12398
12363
|
return props.valueOnClear;
|
|
12399
|
-
} else if (isFunction$
|
|
12364
|
+
} else if (isFunction$1(config.value.valueOnClear)) {
|
|
12400
12365
|
return config.value.valueOnClear();
|
|
12401
12366
|
} else if (config.value.valueOnClear !== void 0) {
|
|
12402
12367
|
return config.value.valueOnClear;
|
|
@@ -12414,9 +12379,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12414
12379
|
}
|
|
12415
12380
|
return result;
|
|
12416
12381
|
};
|
|
12417
|
-
if (!isEmptyValue(valueOnClear.value))
|
|
12418
|
-
debugWarn(SCOPE$8, "value-on-clear should be a value of empty-values");
|
|
12419
|
-
}
|
|
12382
|
+
if (!isEmptyValue(valueOnClear.value)) ;
|
|
12420
12383
|
return {
|
|
12421
12384
|
emptyValues,
|
|
12422
12385
|
valueOnClear,
|
|
@@ -12482,7 +12445,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12482
12445
|
const oldConfig = inSetup ? useGlobalConfig() : void 0;
|
|
12483
12446
|
const provideFn = (_a = app == null ? void 0 : app.provide) != null ? _a : inSetup ? vue.provide : void 0;
|
|
12484
12447
|
if (!provideFn) {
|
|
12485
|
-
debugWarn("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
12486
12448
|
return;
|
|
12487
12449
|
}
|
|
12488
12450
|
const context = vue.computed(() => {
|
|
@@ -12573,7 +12535,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12573
12535
|
|
|
12574
12536
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
12575
12537
|
|
|
12576
|
-
const version$1 = "0.0.
|
|
12538
|
+
const version$1 = "0.0.20251209";
|
|
12577
12539
|
|
|
12578
12540
|
const makeInstaller = (components = []) => {
|
|
12579
12541
|
const install = (app, options) => {
|
|
@@ -12610,7 +12572,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12610
12572
|
}
|
|
12611
12573
|
});
|
|
12612
12574
|
const affixEmits = {
|
|
12613
|
-
scroll: ({ scrollTop, fixed }) => isNumber
|
|
12575
|
+
scroll: ({ scrollTop, fixed }) => isNumber(scrollTop) && isBoolean(fixed),
|
|
12614
12576
|
[CHANGE_EVENT]: (fixed) => isBoolean(fixed)
|
|
12615
12577
|
};
|
|
12616
12578
|
|
|
@@ -12622,9 +12584,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12622
12584
|
return target;
|
|
12623
12585
|
};
|
|
12624
12586
|
|
|
12625
|
-
const COMPONENT_NAME$
|
|
12587
|
+
const COMPONENT_NAME$o = "ElAffix";
|
|
12626
12588
|
const __default__$1Y = vue.defineComponent({
|
|
12627
|
-
name: COMPONENT_NAME$
|
|
12589
|
+
name: COMPONENT_NAME$o
|
|
12628
12590
|
});
|
|
12629
12591
|
const _sfc_main$2v = /* @__PURE__ */ vue.defineComponent({
|
|
12630
12592
|
...__default__$1Y,
|
|
@@ -12713,7 +12675,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12713
12675
|
if (props.target) {
|
|
12714
12676
|
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
12715
12677
|
if (!target.value)
|
|
12716
|
-
throwError
|
|
12678
|
+
throwError(COMPONENT_NAME$o, `Target does not exist: ${props.target}`);
|
|
12717
12679
|
} else {
|
|
12718
12680
|
target.value = document.documentElement;
|
|
12719
12681
|
}
|
|
@@ -12847,9 +12809,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
12847
12809
|
visible.value = false;
|
|
12848
12810
|
emit("close", evt);
|
|
12849
12811
|
};
|
|
12850
|
-
if (props.showAfter || props.hideAfter || props.autoClose)
|
|
12851
|
-
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");
|
|
12852
|
-
}
|
|
12812
|
+
if (props.showAfter || props.hideAfter || props.autoClose) ;
|
|
12853
12813
|
return (_ctx, _cache) => {
|
|
12854
12814
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
12855
12815
|
name: vue.unref(ns).b("fade"),
|
|
@@ -13057,10 +13017,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
13057
13017
|
}
|
|
13058
13018
|
});
|
|
13059
13019
|
const formEmits = {
|
|
13060
|
-
validate: (prop, isValid, message) => (isArray$1(prop) || isString$
|
|
13020
|
+
validate: (prop, isValid, message) => (isArray$1(prop) || isString$1(prop)) && isBoolean(isValid) && isString$1(message)
|
|
13061
13021
|
};
|
|
13062
13022
|
|
|
13063
|
-
const SCOPE$7 = "ElForm";
|
|
13064
13023
|
function useFormLabelWidth() {
|
|
13065
13024
|
const potentialLabelWidthArr = vue.ref([]);
|
|
13066
13025
|
const autoLabelWidth = vue.computed(() => {
|
|
@@ -13071,9 +13030,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
13071
13030
|
});
|
|
13072
13031
|
function getLabelWidthIndex(width) {
|
|
13073
13032
|
const index = potentialLabelWidthArr.value.indexOf(width);
|
|
13074
|
-
if (index === -1 && autoLabelWidth.value === "0")
|
|
13075
|
-
debugWarn(SCOPE$7, `unexpected width ${width}`);
|
|
13076
|
-
}
|
|
13033
|
+
if (index === -1 && autoLabelWidth.value === "0") ;
|
|
13077
13034
|
return index;
|
|
13078
13035
|
}
|
|
13079
13036
|
function registerLabelWidth(val, oldVal) {
|
|
@@ -13101,9 +13058,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
13101
13058
|
return normalized.length > 0 ? fields.filter((field) => field.propString && normalized.includes(field.propString)) : fields;
|
|
13102
13059
|
};
|
|
13103
13060
|
|
|
13104
|
-
const COMPONENT_NAME$
|
|
13061
|
+
const COMPONENT_NAME$n = "ElForm";
|
|
13105
13062
|
const __default__$1V = vue.defineComponent({
|
|
13106
|
-
name: COMPONENT_NAME$
|
|
13063
|
+
name: COMPONENT_NAME$n
|
|
13107
13064
|
});
|
|
13108
13065
|
const _sfc_main$2s = /* @__PURE__ */ vue.defineComponent({
|
|
13109
13066
|
...__default__$1V,
|
|
@@ -13139,7 +13096,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
13139
13096
|
};
|
|
13140
13097
|
const resetFields = (properties = []) => {
|
|
13141
13098
|
if (!props.model) {
|
|
13142
|
-
debugWarn(COMPONENT_NAME$o, "model is required for resetFields to work.");
|
|
13143
13099
|
return;
|
|
13144
13100
|
}
|
|
13145
13101
|
filterFields(fields, properties).forEach((field) => field.resetField());
|
|
@@ -13149,9 +13105,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
13149
13105
|
};
|
|
13150
13106
|
const isValidatable = vue.computed(() => {
|
|
13151
13107
|
const hasModel = !!props.model;
|
|
13152
|
-
if (!hasModel) {
|
|
13153
|
-
debugWarn(COMPONENT_NAME$o, "model is required for validate to work.");
|
|
13154
|
-
}
|
|
13155
13108
|
return hasModel;
|
|
13156
13109
|
});
|
|
13157
13110
|
const obtainValidateFields = (props2) => {
|
|
@@ -13159,7 +13112,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
13159
13112
|
return [];
|
|
13160
13113
|
const filteredFields = filterFields(fields, props2);
|
|
13161
13114
|
if (!filteredFields.length) {
|
|
13162
|
-
debugWarn(COMPONENT_NAME$o, "please pass correct props!");
|
|
13163
13115
|
return [];
|
|
13164
13116
|
}
|
|
13165
13117
|
return filteredFields;
|
|
@@ -13190,7 +13142,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
13190
13142
|
};
|
|
13191
13143
|
const validateField = async (modelProps = [], callback) => {
|
|
13192
13144
|
let result = false;
|
|
13193
|
-
const shouldThrow = !isFunction$
|
|
13145
|
+
const shouldThrow = !isFunction$1(callback);
|
|
13194
13146
|
try {
|
|
13195
13147
|
result = await doValidateField(modelProps);
|
|
13196
13148
|
if (result === true) {
|
|
@@ -13220,7 +13172,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
13220
13172
|
};
|
|
13221
13173
|
vue.watch(() => props.rules, () => {
|
|
13222
13174
|
if (props.validateOnRuleChange) {
|
|
13223
|
-
validate().catch((err) => debugWarn(
|
|
13175
|
+
validate().catch((err) => debugWarn());
|
|
13224
13176
|
}
|
|
13225
13177
|
}, { deep: true, flush: "post" });
|
|
13226
13178
|
vue.provide(formContextKey, vue.reactive({
|
|
@@ -14350,9 +14302,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
14350
14302
|
}
|
|
14351
14303
|
});
|
|
14352
14304
|
|
|
14353
|
-
const COMPONENT_NAME$
|
|
14305
|
+
const COMPONENT_NAME$m = "ElLabelWrap";
|
|
14354
14306
|
var FormLabelWrap = vue.defineComponent({
|
|
14355
|
-
name: COMPONENT_NAME$
|
|
14307
|
+
name: COMPONENT_NAME$m,
|
|
14356
14308
|
props: {
|
|
14357
14309
|
isAutoWidth: Boolean,
|
|
14358
14310
|
updateAll: Boolean
|
|
@@ -14363,7 +14315,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
14363
14315
|
const formContext = vue.inject(formContextKey, void 0);
|
|
14364
14316
|
const formItemContext = vue.inject(formItemContextKey);
|
|
14365
14317
|
if (!formItemContext)
|
|
14366
|
-
throwError
|
|
14318
|
+
throwError(COMPONENT_NAME$m, "usage: <el-form-item><label-wrap /></el-form-item>");
|
|
14367
14319
|
const ns = useNamespace("form");
|
|
14368
14320
|
const el = vue.ref();
|
|
14369
14321
|
const computedWidth = vue.ref(0);
|
|
@@ -14603,7 +14555,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
14603
14555
|
if (isResettingField || !props.prop) {
|
|
14604
14556
|
return false;
|
|
14605
14557
|
}
|
|
14606
|
-
const hasCallback = isFunction$
|
|
14558
|
+
const hasCallback = isFunction$1(callback);
|
|
14607
14559
|
if (!validateEnabled.value) {
|
|
14608
14560
|
callback == null ? void 0 : callback(false);
|
|
14609
14561
|
return false;
|
|
@@ -14813,7 +14765,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
14813
14765
|
}
|
|
14814
14766
|
hiddenTextarea.value = "";
|
|
14815
14767
|
const singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
|
14816
|
-
if (isNumber
|
|
14768
|
+
if (isNumber(minRows)) {
|
|
14817
14769
|
let minHeight = singleRowHeight * minRows;
|
|
14818
14770
|
if (boxSizing === "border-box") {
|
|
14819
14771
|
minHeight = minHeight + paddingSize + borderSize;
|
|
@@ -14821,7 +14773,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
14821
14773
|
height = Math.max(minHeight, height);
|
|
14822
14774
|
result.minHeight = `${minHeight}px`;
|
|
14823
14775
|
}
|
|
14824
|
-
if (isNumber
|
|
14776
|
+
if (isNumber(maxRows)) {
|
|
14825
14777
|
let maxHeight = singleRowHeight * maxRows;
|
|
14826
14778
|
if (boxSizing === "border-box") {
|
|
14827
14779
|
maxHeight = maxHeight + paddingSize + borderSize;
|
|
@@ -14938,9 +14890,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
14938
14890
|
name: String
|
|
14939
14891
|
});
|
|
14940
14892
|
const inputEmits = {
|
|
14941
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
14942
|
-
input: (value) => isString$
|
|
14943
|
-
change: (value, evt) => isString$
|
|
14893
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$1(value),
|
|
14894
|
+
input: (value) => isString$1(value),
|
|
14895
|
+
change: (value, evt) => isString$1(value) && (evt instanceof Event || evt === void 0),
|
|
14944
14896
|
focus: (evt) => evt instanceof FocusEvent,
|
|
14945
14897
|
blur: (evt) => evt instanceof FocusEvent,
|
|
14946
14898
|
clear: () => true,
|
|
@@ -14952,9 +14904,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
14952
14904
|
compositionend: (evt) => evt instanceof CompositionEvent
|
|
14953
14905
|
};
|
|
14954
14906
|
|
|
14955
|
-
const COMPONENT_NAME$
|
|
14907
|
+
const COMPONENT_NAME$l = "ElInput";
|
|
14956
14908
|
const __default__$1T = vue.defineComponent({
|
|
14957
|
-
name: COMPONENT_NAME$
|
|
14909
|
+
name: COMPONENT_NAME$l,
|
|
14958
14910
|
inheritAttrs: false
|
|
14959
14911
|
});
|
|
14960
14912
|
const _sfc_main$2q = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -15004,7 +14956,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
15004
14956
|
afterBlur() {
|
|
15005
14957
|
var _a;
|
|
15006
14958
|
if (props.validateEvent) {
|
|
15007
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(
|
|
14959
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn());
|
|
15008
14960
|
}
|
|
15009
14961
|
}
|
|
15010
14962
|
});
|
|
@@ -15175,7 +15127,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
15175
15127
|
var _a;
|
|
15176
15128
|
vue.nextTick(() => resizeTextarea());
|
|
15177
15129
|
if (props.validateEvent) {
|
|
15178
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(
|
|
15130
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
15179
15131
|
}
|
|
15180
15132
|
});
|
|
15181
15133
|
vue.watch(nativeInputValue, (newValue) => {
|
|
@@ -15201,9 +15153,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
15201
15153
|
resizeTextarea();
|
|
15202
15154
|
});
|
|
15203
15155
|
vue.onMounted(() => {
|
|
15204
|
-
if (!props.formatter && props.parser)
|
|
15205
|
-
debugWarn(COMPONENT_NAME$m, "If you set the parser, you also need to set the formatter.");
|
|
15206
|
-
}
|
|
15156
|
+
if (!props.formatter && props.parser) ;
|
|
15207
15157
|
setNativeInputValue();
|
|
15208
15158
|
vue.nextTick(resizeTextarea);
|
|
15209
15159
|
});
|
|
@@ -15465,7 +15415,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
15465
15415
|
always: Boolean
|
|
15466
15416
|
});
|
|
15467
15417
|
|
|
15468
|
-
const COMPONENT_NAME$
|
|
15418
|
+
const COMPONENT_NAME$k = "Thumb";
|
|
15469
15419
|
const _sfc_main$2p = /* @__PURE__ */ vue.defineComponent({
|
|
15470
15420
|
__name: "thumb",
|
|
15471
15421
|
props: thumbProps,
|
|
@@ -15474,7 +15424,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
15474
15424
|
const scrollbar = vue.inject(scrollbarContextKey);
|
|
15475
15425
|
const ns = useNamespace("scrollbar");
|
|
15476
15426
|
if (!scrollbar)
|
|
15477
|
-
throwError
|
|
15427
|
+
throwError(COMPONENT_NAME$k, "can not inject scrollbar context");
|
|
15478
15428
|
const instance = vue.ref();
|
|
15479
15429
|
const thumb = vue.ref();
|
|
15480
15430
|
const thumbState = vue.ref({});
|
|
@@ -15721,12 +15671,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
15721
15671
|
scroll: ({
|
|
15722
15672
|
scrollTop,
|
|
15723
15673
|
scrollLeft
|
|
15724
|
-
}) => [scrollTop, scrollLeft].every(isNumber
|
|
15674
|
+
}) => [scrollTop, scrollLeft].every(isNumber)
|
|
15725
15675
|
};
|
|
15726
15676
|
|
|
15727
|
-
const COMPONENT_NAME$
|
|
15677
|
+
const COMPONENT_NAME$j = "ElScrollbar";
|
|
15728
15678
|
const __default__$1S = vue.defineComponent({
|
|
15729
|
-
name: COMPONENT_NAME$
|
|
15679
|
+
name: COMPONENT_NAME$j
|
|
15730
15680
|
});
|
|
15731
15681
|
const _sfc_main$2n = /* @__PURE__ */ vue.defineComponent({
|
|
15732
15682
|
...__default__$1S,
|
|
@@ -15831,20 +15781,18 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
15831
15781
|
function scrollTo(arg1, arg2) {
|
|
15832
15782
|
if (isObject$1(arg1)) {
|
|
15833
15783
|
wrapRef.value.scrollTo(arg1);
|
|
15834
|
-
} else if (isNumber
|
|
15784
|
+
} else if (isNumber(arg1) && isNumber(arg2)) {
|
|
15835
15785
|
wrapRef.value.scrollTo(arg1, arg2);
|
|
15836
15786
|
}
|
|
15837
15787
|
}
|
|
15838
15788
|
const setScrollTop = (value) => {
|
|
15839
|
-
if (!isNumber
|
|
15840
|
-
debugWarn(COMPONENT_NAME$k, "value must be a number");
|
|
15789
|
+
if (!isNumber(value)) {
|
|
15841
15790
|
return;
|
|
15842
15791
|
}
|
|
15843
15792
|
wrapRef.value.scrollTop = value;
|
|
15844
15793
|
};
|
|
15845
15794
|
const setScrollLeft = (value) => {
|
|
15846
|
-
if (!isNumber
|
|
15847
|
-
debugWarn(COMPONENT_NAME$k, "value must be a number");
|
|
15795
|
+
if (!isNumber(value)) {
|
|
15848
15796
|
return;
|
|
15849
15797
|
}
|
|
15850
15798
|
wrapRef.value.scrollLeft = value;
|
|
@@ -16046,12 +15994,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16046
15994
|
return null;
|
|
16047
15995
|
const [firstLegitNode, length] = findFirstLegitChild(defaultSlot);
|
|
16048
15996
|
if (!firstLegitNode) {
|
|
16049
|
-
debugWarn(NAME, "no valid child node found");
|
|
16050
15997
|
return null;
|
|
16051
15998
|
}
|
|
16052
|
-
if (length > 1) {
|
|
16053
|
-
debugWarn(NAME, "requires exact only one valid child.");
|
|
16054
|
-
}
|
|
16055
15999
|
return vue.withDirectives(vue.cloneVNode(firstLegitNode, attrs), [[forwardRefDirective]]);
|
|
16056
16000
|
};
|
|
16057
16001
|
}
|
|
@@ -16167,7 +16111,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16167
16111
|
vue.watch(triggerRef, (el, prevEl) => {
|
|
16168
16112
|
virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
|
|
16169
16113
|
virtualTriggerAriaStopWatch = void 0;
|
|
16170
|
-
if (isElement$
|
|
16114
|
+
if (isElement$2(prevEl)) {
|
|
16171
16115
|
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
|
16172
16116
|
const handler = props[eventName];
|
|
16173
16117
|
if (handler) {
|
|
@@ -16175,7 +16119,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16175
16119
|
}
|
|
16176
16120
|
});
|
|
16177
16121
|
}
|
|
16178
|
-
if (isElement$
|
|
16122
|
+
if (isElement$2(el)) {
|
|
16179
16123
|
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
|
16180
16124
|
const handler = props[eventName];
|
|
16181
16125
|
if (handler) {
|
|
@@ -16195,7 +16139,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16195
16139
|
}, { immediate: true });
|
|
16196
16140
|
}
|
|
16197
16141
|
}
|
|
16198
|
-
if (isElement$
|
|
16142
|
+
if (isElement$2(prevEl) && isFocusable(prevEl)) {
|
|
16199
16143
|
[
|
|
16200
16144
|
"aria-controls",
|
|
16201
16145
|
"aria-describedby",
|
|
@@ -16210,7 +16154,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16210
16154
|
vue.onBeforeUnmount(() => {
|
|
16211
16155
|
virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
|
|
16212
16156
|
virtualTriggerAriaStopWatch = void 0;
|
|
16213
|
-
if (triggerRef.value && isElement$
|
|
16157
|
+
if (triggerRef.value && isElement$2(triggerRef.value)) {
|
|
16214
16158
|
const el = triggerRef.value;
|
|
16215
16159
|
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
|
16216
16160
|
const handler = props[eventName];
|
|
@@ -16281,8 +16225,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16281
16225
|
}
|
|
16282
16226
|
};
|
|
16283
16227
|
const isHidden = (element, container) => {
|
|
16284
|
-
if (typeof process !== "undefined" && false)
|
|
16285
|
-
return false;
|
|
16286
16228
|
if (getComputedStyle(element).visibility === "hidden")
|
|
16287
16229
|
return true;
|
|
16288
16230
|
while (element) {
|
|
@@ -16570,7 +16512,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16570
16512
|
if (!focusEvent.defaultPrevented) {
|
|
16571
16513
|
vue.nextTick(() => {
|
|
16572
16514
|
let focusStartEl = props.focusStartEl;
|
|
16573
|
-
if (!isString$
|
|
16515
|
+
if (!isString$1(focusStartEl)) {
|
|
16574
16516
|
tryFocus(focusStartEl);
|
|
16575
16517
|
if (document.activeElement !== focusStartEl) {
|
|
16576
16518
|
focusStartEl = "first";
|
|
@@ -16867,7 +16809,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16867
16809
|
const { nextZIndex } = useZIndex();
|
|
16868
16810
|
const ns = useNamespace("popper");
|
|
16869
16811
|
const contentAttrs = vue.computed(() => vue.unref(attributes).popper);
|
|
16870
|
-
const contentZIndex = vue.ref(isNumber
|
|
16812
|
+
const contentZIndex = vue.ref(isNumber(props.zIndex) ? props.zIndex : nextZIndex());
|
|
16871
16813
|
const contentClass = vue.computed(() => [
|
|
16872
16814
|
ns.b(),
|
|
16873
16815
|
ns.is("pure", props.pure),
|
|
@@ -16884,7 +16826,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
16884
16826
|
const ariaModal = vue.computed(() => role.value === "dialog" ? "false" : void 0);
|
|
16885
16827
|
const arrowStyle = vue.computed(() => vue.unref(styles).arrow || {});
|
|
16886
16828
|
const updateZIndex = () => {
|
|
16887
|
-
contentZIndex.value = isNumber
|
|
16829
|
+
contentZIndex.value = isNumber(props.zIndex) ? props.zIndex : nextZIndex();
|
|
16888
16830
|
};
|
|
16889
16831
|
return {
|
|
16890
16832
|
ariaModal,
|
|
@@ -17006,14 +16948,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
17006
16948
|
triggerTargetAriaStopWatch = void 0;
|
|
17007
16949
|
const el = vue.unref(triggerTargetEl || contentRef.value);
|
|
17008
16950
|
const prevEl = vue.unref(prevTriggerTargetEl || contentRef.value);
|
|
17009
|
-
if (isElement$
|
|
16951
|
+
if (isElement$2(el)) {
|
|
17010
16952
|
triggerTargetAriaStopWatch = vue.watch([role, () => props.ariaLabel, ariaModal, () => props.id], (watches) => {
|
|
17011
16953
|
["role", "aria-label", "aria-modal", "id"].forEach((key, idx) => {
|
|
17012
16954
|
isNil(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
|
|
17013
16955
|
});
|
|
17014
16956
|
}, { immediate: true });
|
|
17015
16957
|
}
|
|
17016
|
-
if (prevEl !== el && isElement$
|
|
16958
|
+
if (prevEl !== el && isElement$2(prevEl)) {
|
|
17017
16959
|
["role", "aria-label", "aria-modal", "id"].forEach((key) => {
|
|
17018
16960
|
prevEl.removeAttribute(key);
|
|
17019
16961
|
});
|
|
@@ -17640,18 +17582,18 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
17640
17582
|
}
|
|
17641
17583
|
});
|
|
17642
17584
|
const autocompleteEmits = {
|
|
17643
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
17644
|
-
[INPUT_EVENT]: (value) => isString$
|
|
17645
|
-
[CHANGE_EVENT]: (value) => isString$
|
|
17585
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$1(value) || isNumber(value),
|
|
17586
|
+
[INPUT_EVENT]: (value) => isString$1(value) || isNumber(value),
|
|
17587
|
+
[CHANGE_EVENT]: (value) => isString$1(value) || isNumber(value),
|
|
17646
17588
|
focus: (evt) => evt instanceof FocusEvent,
|
|
17647
17589
|
blur: (evt) => evt instanceof FocusEvent,
|
|
17648
17590
|
clear: () => true,
|
|
17649
17591
|
select: (item) => isObject$1(item)
|
|
17650
17592
|
};
|
|
17651
17593
|
|
|
17652
|
-
const COMPONENT_NAME$
|
|
17594
|
+
const COMPONENT_NAME$i = "ElAutocomplete";
|
|
17653
17595
|
const __default__$1K = vue.defineComponent({
|
|
17654
|
-
name: COMPONENT_NAME$
|
|
17596
|
+
name: COMPONENT_NAME$i,
|
|
17655
17597
|
inheritAttrs: false
|
|
17656
17598
|
});
|
|
17657
17599
|
const _sfc_main$2d = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -17708,7 +17650,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
17708
17650
|
suggestions.value = suggestionList;
|
|
17709
17651
|
highlightedIndex.value = props.highlightFirstItem ? 0 : -1;
|
|
17710
17652
|
} else {
|
|
17711
|
-
throwError
|
|
17653
|
+
throwError(COMPONENT_NAME$i, "autocomplete suggestions must be an array");
|
|
17712
17654
|
}
|
|
17713
17655
|
};
|
|
17714
17656
|
loading.value = true;
|
|
@@ -18084,7 +18026,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
18084
18026
|
type: [Number, String],
|
|
18085
18027
|
values: componentSizes,
|
|
18086
18028
|
default: "",
|
|
18087
|
-
validator: (val) => isNumber
|
|
18029
|
+
validator: (val) => isNumber(val)
|
|
18088
18030
|
},
|
|
18089
18031
|
shape: {
|
|
18090
18032
|
type: String,
|
|
@@ -18123,7 +18065,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
18123
18065
|
const avatarClass = vue.computed(() => {
|
|
18124
18066
|
const { size, icon, shape } = props;
|
|
18125
18067
|
const classList = [ns.b()];
|
|
18126
|
-
if (isString$
|
|
18068
|
+
if (isString$1(size))
|
|
18127
18069
|
classList.push(ns.m(size));
|
|
18128
18070
|
if (icon)
|
|
18129
18071
|
classList.push(ns.m("icon"));
|
|
@@ -18133,7 +18075,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
18133
18075
|
});
|
|
18134
18076
|
const sizeStyle = vue.computed(() => {
|
|
18135
18077
|
const { size } = props;
|
|
18136
|
-
return isNumber
|
|
18078
|
+
return isNumber(size) ? ns.cssVarBlock({
|
|
18137
18079
|
size: addUnit(size)
|
|
18138
18080
|
}) : void 0;
|
|
18139
18081
|
});
|
|
@@ -18215,7 +18157,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
18215
18157
|
if (props.target) {
|
|
18216
18158
|
el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
18217
18159
|
if (!el.value) {
|
|
18218
|
-
throwError
|
|
18160
|
+
throwError(componentName, `target does not exist: ${props.target}`);
|
|
18219
18161
|
}
|
|
18220
18162
|
container.value = el.value;
|
|
18221
18163
|
}
|
|
@@ -18227,9 +18169,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
18227
18169
|
};
|
|
18228
18170
|
};
|
|
18229
18171
|
|
|
18230
|
-
const COMPONENT_NAME$
|
|
18172
|
+
const COMPONENT_NAME$h = "ElBacktop";
|
|
18231
18173
|
const __default__$1I = vue.defineComponent({
|
|
18232
|
-
name: COMPONENT_NAME$
|
|
18174
|
+
name: COMPONENT_NAME$h
|
|
18233
18175
|
});
|
|
18234
18176
|
const _sfc_main$2b = /* @__PURE__ */ vue.defineComponent({
|
|
18235
18177
|
...__default__$1I,
|
|
@@ -18238,7 +18180,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
18238
18180
|
setup(__props, { emit }) {
|
|
18239
18181
|
const props = __props;
|
|
18240
18182
|
const ns = useNamespace("backtop");
|
|
18241
|
-
const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$
|
|
18183
|
+
const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$h);
|
|
18242
18184
|
const backTopStyle = vue.computed(() => ({
|
|
18243
18185
|
right: `${props.right}px`,
|
|
18244
18186
|
bottom: `${props.bottom}px`
|
|
@@ -18320,7 +18262,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
18320
18262
|
const content = vue.computed(() => {
|
|
18321
18263
|
if (props.isDot)
|
|
18322
18264
|
return "";
|
|
18323
|
-
if (isNumber
|
|
18265
|
+
if (isNumber(props.value) && isNumber(props.max)) {
|
|
18324
18266
|
return props.max < props.value ? `${props.max}+` : `${props.value}`;
|
|
18325
18267
|
}
|
|
18326
18268
|
return `${props.value}`;
|
|
@@ -20366,7 +20308,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
20366
20308
|
},
|
|
20367
20309
|
size: useSizeProp,
|
|
20368
20310
|
readonly: Boolean,
|
|
20369
|
-
disabled:
|
|
20311
|
+
disabled: {
|
|
20312
|
+
type: Boolean,
|
|
20313
|
+
default: void 0
|
|
20314
|
+
},
|
|
20370
20315
|
placeholder: {
|
|
20371
20316
|
type: String,
|
|
20372
20317
|
default: ""
|
|
@@ -20634,7 +20579,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
20634
20579
|
handleChange();
|
|
20635
20580
|
pickerVisible.value = false;
|
|
20636
20581
|
hasJustTabExitedInput = false;
|
|
20637
|
-
props.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn(
|
|
20582
|
+
props.validateEvent && (formItem == null ? void 0 : formItem.validate("blur").catch((err) => debugWarn()));
|
|
20638
20583
|
}
|
|
20639
20584
|
});
|
|
20640
20585
|
const hovering = vue.ref(false);
|
|
@@ -20671,7 +20616,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
20671
20616
|
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
|
20672
20617
|
emit(CHANGE_EVENT, val);
|
|
20673
20618
|
isClear && (valueOnOpen.value = val);
|
|
20674
|
-
props.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
20619
|
+
props.validateEvent && (formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn()));
|
|
20675
20620
|
}
|
|
20676
20621
|
};
|
|
20677
20622
|
const emitKeydown = (e) => {
|
|
@@ -21259,7 +21204,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21259
21204
|
let excludes = [];
|
|
21260
21205
|
if (isArray$1(binding.arg)) {
|
|
21261
21206
|
excludes = binding.arg;
|
|
21262
|
-
} else if (isElement$
|
|
21207
|
+
} else if (isElement$2(binding.arg)) {
|
|
21263
21208
|
excludes.push(binding.arg);
|
|
21264
21209
|
}
|
|
21265
21210
|
return function(mouseup, mousedown) {
|
|
@@ -21311,14 +21256,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21311
21256
|
|
|
21312
21257
|
const REPEAT_INTERVAL = 100;
|
|
21313
21258
|
const REPEAT_DELAY = 600;
|
|
21314
|
-
const SCOPE$
|
|
21259
|
+
const SCOPE$5 = "_RepeatClick";
|
|
21315
21260
|
const vRepeatClick = {
|
|
21316
21261
|
beforeMount(el, binding) {
|
|
21317
21262
|
const value = binding.value;
|
|
21318
|
-
const { interval = REPEAT_INTERVAL, delay = REPEAT_DELAY } = isFunction$
|
|
21263
|
+
const { interval = REPEAT_INTERVAL, delay = REPEAT_DELAY } = isFunction$1(value) ? {} : value;
|
|
21319
21264
|
let intervalId;
|
|
21320
21265
|
let delayId;
|
|
21321
|
-
const handler = () => isFunction$
|
|
21266
|
+
const handler = () => isFunction$1(value) ? value() : value.handler();
|
|
21322
21267
|
const clear = () => {
|
|
21323
21268
|
if (delayId) {
|
|
21324
21269
|
clearTimeout(delayId);
|
|
@@ -21341,13 +21286,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21341
21286
|
}, interval);
|
|
21342
21287
|
}, delay);
|
|
21343
21288
|
};
|
|
21344
|
-
el[SCOPE$
|
|
21289
|
+
el[SCOPE$5] = { start, clear };
|
|
21345
21290
|
el.addEventListener("mousedown", start);
|
|
21346
21291
|
},
|
|
21347
21292
|
unmounted(el) {
|
|
21348
|
-
if (!el[SCOPE$
|
|
21293
|
+
if (!el[SCOPE$5])
|
|
21349
21294
|
return;
|
|
21350
|
-
const { start, clear } = el[SCOPE$
|
|
21295
|
+
const { start, clear } = el[SCOPE$5];
|
|
21351
21296
|
if (start) {
|
|
21352
21297
|
el.removeEventListener("mousedown", start);
|
|
21353
21298
|
}
|
|
@@ -21355,7 +21300,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21355
21300
|
clear();
|
|
21356
21301
|
document.removeEventListener("mouseup", clear);
|
|
21357
21302
|
}
|
|
21358
|
-
el[SCOPE$
|
|
21303
|
+
el[SCOPE$5] = null;
|
|
21359
21304
|
}
|
|
21360
21305
|
};
|
|
21361
21306
|
|
|
@@ -21385,12 +21330,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21385
21330
|
e.preventDefault();
|
|
21386
21331
|
focusableElement[0].focus();
|
|
21387
21332
|
}
|
|
21388
|
-
if (typeof process !== "undefined" && false) {
|
|
21389
|
-
const index = focusableElement.indexOf(e.target);
|
|
21390
|
-
if (index !== -1) {
|
|
21391
|
-
(_a = focusableElement[goingBackward ? index - 1 : index + 1]) == null ? void 0 : _a.focus();
|
|
21392
|
-
}
|
|
21393
|
-
}
|
|
21394
21333
|
}
|
|
21395
21334
|
};
|
|
21396
21335
|
const TrapFocus = {
|
|
@@ -21429,7 +21368,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21429
21368
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
21430
21369
|
*/
|
|
21431
21370
|
|
|
21432
|
-
const SCOPE$
|
|
21371
|
+
const SCOPE$4 = "_Mousewheel";
|
|
21433
21372
|
const mousewheel = function(element, callback) {
|
|
21434
21373
|
if (element && element.addEventListener) {
|
|
21435
21374
|
removeWheelHandler(element);
|
|
@@ -21437,15 +21376,15 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21437
21376
|
const normalized = Y(event);
|
|
21438
21377
|
callback && Reflect.apply(callback, this, [event, normalized]);
|
|
21439
21378
|
};
|
|
21440
|
-
element[SCOPE$
|
|
21379
|
+
element[SCOPE$4] = { wheelHandler: fn };
|
|
21441
21380
|
element.addEventListener("wheel", fn, { passive: true });
|
|
21442
21381
|
}
|
|
21443
21382
|
};
|
|
21444
21383
|
const removeWheelHandler = (element) => {
|
|
21445
21384
|
var _a;
|
|
21446
|
-
if ((_a = element[SCOPE$
|
|
21447
|
-
element.removeEventListener("wheel", element[SCOPE$
|
|
21448
|
-
element[SCOPE$
|
|
21385
|
+
if ((_a = element[SCOPE$4]) == null ? void 0 : _a.wheelHandler) {
|
|
21386
|
+
element.removeEventListener("wheel", element[SCOPE$4].wheelHandler);
|
|
21387
|
+
element[SCOPE$4] = null;
|
|
21449
21388
|
}
|
|
21450
21389
|
};
|
|
21451
21390
|
const Mousewheel = {
|
|
@@ -21770,7 +21709,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21770
21709
|
vue.unref(ns).is("disabled", vue.unref(timeList)[item][time])
|
|
21771
21710
|
])
|
|
21772
21711
|
}, [
|
|
21773
|
-
vue.unref(isNumber
|
|
21712
|
+
vue.unref(isNumber)(time) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
21774
21713
|
item === "hours" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
21775
21714
|
vue.createTextVNode(vue.toDisplayString(("0" + (_ctx.amPmMode ? time % 12 || 12 : time)).slice(-2)) + vue.toDisplayString(getAmPmFlag(time)), 1)
|
|
21776
21715
|
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -22609,14 +22548,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22609
22548
|
const rangeArrDayjs = props.range.map((_) => dayjs(_).locale(lang.value));
|
|
22610
22549
|
const [startDayjs, endDayjs] = rangeArrDayjs;
|
|
22611
22550
|
if (startDayjs.isAfter(endDayjs)) {
|
|
22612
|
-
debugWarn(componentName, "end time should be greater than start time");
|
|
22613
22551
|
return [];
|
|
22614
22552
|
}
|
|
22615
22553
|
if (startDayjs.isSame(endDayjs, "month")) {
|
|
22616
22554
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
22617
22555
|
} else {
|
|
22618
22556
|
if (startDayjs.add(1, "month").month() !== endDayjs.month()) {
|
|
22619
|
-
debugWarn(componentName, "start time and end time interval must not exceed two months");
|
|
22620
22557
|
return [];
|
|
22621
22558
|
}
|
|
22622
22559
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
@@ -22645,7 +22582,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22645
22582
|
} else if (firstMonth + 2 === lastMonth || (firstMonth + 1) % 11 === lastMonth) {
|
|
22646
22583
|
return threeConsecutiveMonth(firstDay, lastDay);
|
|
22647
22584
|
} else {
|
|
22648
|
-
debugWarn(componentName, "start time and end time interval must not exceed two months");
|
|
22649
22585
|
return [];
|
|
22650
22586
|
}
|
|
22651
22587
|
};
|
|
@@ -22690,9 +22626,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22690
22626
|
[INPUT_EVENT]: (value) => isDate$1(value)
|
|
22691
22627
|
};
|
|
22692
22628
|
|
|
22693
|
-
const COMPONENT_NAME$
|
|
22629
|
+
const COMPONENT_NAME$g = "ElCalendar";
|
|
22694
22630
|
const __default__$1z = vue.defineComponent({
|
|
22695
|
-
name: COMPONENT_NAME$
|
|
22631
|
+
name: COMPONENT_NAME$g
|
|
22696
22632
|
});
|
|
22697
22633
|
const _sfc_main$1$ = /* @__PURE__ */ vue.defineComponent({
|
|
22698
22634
|
...__default__$1z,
|
|
@@ -22708,7 +22644,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22708
22644
|
realSelectedDay,
|
|
22709
22645
|
selectDate,
|
|
22710
22646
|
validatedRange
|
|
22711
|
-
} = useCalendar(props, emit
|
|
22647
|
+
} = useCalendar(props, emit);
|
|
22712
22648
|
const { t } = useLocale();
|
|
22713
22649
|
const i18nDate = vue.computed(() => {
|
|
22714
22650
|
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
@@ -22948,7 +22884,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22948
22884
|
motionBlur: Boolean
|
|
22949
22885
|
});
|
|
22950
22886
|
const carouselEmits = {
|
|
22951
|
-
change: (current, prev) => [current, prev].every(isNumber
|
|
22887
|
+
change: (current, prev) => [current, prev].every(isNumber)
|
|
22952
22888
|
};
|
|
22953
22889
|
|
|
22954
22890
|
const carouselContextKey = Symbol("carouselContextKey");
|
|
@@ -23016,7 +22952,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23016
22952
|
}
|
|
23017
22953
|
};
|
|
23018
22954
|
function setActiveItem(index) {
|
|
23019
|
-
if (isString$
|
|
22955
|
+
if (isString$1(index)) {
|
|
23020
22956
|
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
23021
22957
|
if (filteredItems.length > 0) {
|
|
23022
22958
|
index = items.value.indexOf(filteredItems[0]);
|
|
@@ -23024,7 +22960,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23024
22960
|
}
|
|
23025
22961
|
index = Number(index);
|
|
23026
22962
|
if (Number.isNaN(index) || index !== Math.floor(index)) {
|
|
23027
|
-
debugWarn(componentName, "index must be integer.");
|
|
23028
22963
|
return;
|
|
23029
22964
|
}
|
|
23030
22965
|
const itemCount = items.value.length;
|
|
@@ -23215,9 +23150,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23215
23150
|
};
|
|
23216
23151
|
};
|
|
23217
23152
|
|
|
23218
|
-
const COMPONENT_NAME$
|
|
23153
|
+
const COMPONENT_NAME$f = "ElCarousel";
|
|
23219
23154
|
const __default__$1x = vue.defineComponent({
|
|
23220
|
-
name: COMPONENT_NAME$
|
|
23155
|
+
name: COMPONENT_NAME$f
|
|
23221
23156
|
});
|
|
23222
23157
|
const _sfc_main$1Z = /* @__PURE__ */ vue.defineComponent({
|
|
23223
23158
|
...__default__$1x,
|
|
@@ -23249,7 +23184,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23249
23184
|
ItemsSorter,
|
|
23250
23185
|
throttledArrowClick,
|
|
23251
23186
|
throttledIndicatorHover
|
|
23252
|
-
} = useCarousel(props, emit
|
|
23187
|
+
} = useCarousel(props, emit);
|
|
23253
23188
|
const ns = useNamespace("carousel");
|
|
23254
23189
|
const { t } = useLocale();
|
|
23255
23190
|
const carouselClasses = vue.computed(() => {
|
|
@@ -23431,12 +23366,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23431
23366
|
const useCarouselItem = (props) => {
|
|
23432
23367
|
const carouselContext = vue.inject(carouselContextKey);
|
|
23433
23368
|
const instance = vue.getCurrentInstance();
|
|
23434
|
-
if (!carouselContext) {
|
|
23435
|
-
debugWarn(CAROUSEL_ITEM_NAME, "usage: <el-carousel></el-carousel-item></el-carousel>");
|
|
23436
|
-
}
|
|
23437
|
-
if (!instance) {
|
|
23438
|
-
debugWarn(CAROUSEL_ITEM_NAME, "compositional hook can only be invoked inside setups");
|
|
23439
|
-
}
|
|
23440
23369
|
const carouselItemRef = vue.ref();
|
|
23441
23370
|
const hover = vue.ref(false);
|
|
23442
23371
|
const translate = vue.ref(0);
|
|
@@ -23669,8 +23598,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23669
23598
|
...useAriaProps(["ariaControls"])
|
|
23670
23599
|
};
|
|
23671
23600
|
const checkboxEmits = {
|
|
23672
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
23673
|
-
change: (val) => isString$
|
|
23601
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
|
|
23602
|
+
change: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
|
|
23674
23603
|
};
|
|
23675
23604
|
|
|
23676
23605
|
const checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
|
|
@@ -23740,7 +23669,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
23740
23669
|
const validateEvent = vue.computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.validateEvent) || props.validateEvent);
|
|
23741
23670
|
vue.watch(() => props.modelValue, () => {
|
|
23742
23671
|
if (validateEvent.value) {
|
|
23743
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
23672
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
23744
23673
|
}
|
|
23745
23674
|
});
|
|
23746
23675
|
return {
|
|
@@ -24195,7 +24124,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
24195
24124
|
});
|
|
24196
24125
|
vue.watch(() => props.modelValue, (newVal, oldValue) => {
|
|
24197
24126
|
if (props.validateEvent && !isEqual$1(newVal, oldValue)) {
|
|
24198
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
24127
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
24199
24128
|
}
|
|
24200
24129
|
});
|
|
24201
24130
|
return (_ctx, _cache) => {
|
|
@@ -24256,8 +24185,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
24256
24185
|
border: Boolean
|
|
24257
24186
|
});
|
|
24258
24187
|
const radioEmits = {
|
|
24259
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
24260
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
24188
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
|
|
24189
|
+
[CHANGE_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
|
|
24261
24190
|
};
|
|
24262
24191
|
|
|
24263
24192
|
const radioGroupKey = Symbol("radioGroupKey");
|
|
@@ -24548,7 +24477,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
24548
24477
|
}));
|
|
24549
24478
|
vue.watch(() => props.modelValue, (newVal, oldValue) => {
|
|
24550
24479
|
if (props.validateEvent && !isEqual$1(newVal, oldValue)) {
|
|
24551
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
24480
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
24552
24481
|
}
|
|
24553
24482
|
});
|
|
24554
24483
|
return (_ctx, _cache) => {
|
|
@@ -24951,13 +24880,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
24951
24880
|
get isDisabled() {
|
|
24952
24881
|
const { data, parent, config } = this;
|
|
24953
24882
|
const { disabled, checkStrictly } = config;
|
|
24954
|
-
const isDisabled = isFunction$
|
|
24883
|
+
const isDisabled = isFunction$1(disabled) ? disabled(data, this) : !!data[disabled];
|
|
24955
24884
|
return isDisabled || !checkStrictly && !!(parent == null ? void 0 : parent.isDisabled);
|
|
24956
24885
|
}
|
|
24957
24886
|
get isLeaf() {
|
|
24958
24887
|
const { data, config, childrenData, loaded } = this;
|
|
24959
24888
|
const { lazy, leaf } = config;
|
|
24960
|
-
const isLeaf = isFunction$
|
|
24889
|
+
const isLeaf = isFunction$1(leaf) ? leaf(data, this) : data[leaf];
|
|
24961
24890
|
return isUndefined(isLeaf) ? lazy && !loaded ? false : !(isArray$1(childrenData) && childrenData.length) : !!isLeaf;
|
|
24962
24891
|
}
|
|
24963
24892
|
get valueByOption() {
|
|
@@ -25781,7 +25710,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
25781
25710
|
afterBlur() {
|
|
25782
25711
|
var _a;
|
|
25783
25712
|
if (props.validateEvent) {
|
|
25784
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
25713
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
25785
25714
|
}
|
|
25786
25715
|
}
|
|
25787
25716
|
});
|
|
@@ -25805,7 +25734,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
25805
25734
|
emit(UPDATE_MODEL_EVENT, value);
|
|
25806
25735
|
emit(CHANGE_EVENT, value);
|
|
25807
25736
|
if (props.validateEvent) {
|
|
25808
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
25737
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
25809
25738
|
}
|
|
25810
25739
|
}
|
|
25811
25740
|
});
|
|
@@ -26572,7 +26501,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26572
26501
|
const pos = ["span", "offset", "pull", "push"];
|
|
26573
26502
|
pos.forEach((prop) => {
|
|
26574
26503
|
const size = props[prop];
|
|
26575
|
-
if (isNumber
|
|
26504
|
+
if (isNumber(size)) {
|
|
26576
26505
|
if (prop === "span")
|
|
26577
26506
|
classes.push(ns.b(`${props[prop]}`));
|
|
26578
26507
|
else if (size > 0)
|
|
@@ -26581,7 +26510,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26581
26510
|
});
|
|
26582
26511
|
const sizes = ["xs", "sm", "md", "lg", "xl"];
|
|
26583
26512
|
sizes.forEach((size) => {
|
|
26584
|
-
if (isNumber
|
|
26513
|
+
if (isNumber(props[size])) {
|
|
26585
26514
|
classes.push(ns.b(`${size}-${props[size]}`));
|
|
26586
26515
|
} else if (isObject$1(props[size])) {
|
|
26587
26516
|
Object.entries(props[size]).forEach(([prop, sizeProp]) => {
|
|
@@ -26611,7 +26540,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26611
26540
|
|
|
26612
26541
|
const ElCol = withInstall(Col);
|
|
26613
26542
|
|
|
26614
|
-
const emitChangeFn = (value) => isNumber
|
|
26543
|
+
const emitChangeFn = (value) => isNumber(value) || isString$1(value) || isArray$1(value);
|
|
26615
26544
|
const collapseProps = buildProps({
|
|
26616
26545
|
accordion: Boolean,
|
|
26617
26546
|
modelValue: {
|
|
@@ -26633,7 +26562,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26633
26562
|
|
|
26634
26563
|
const collapseContextKey = Symbol("collapseContextKey");
|
|
26635
26564
|
|
|
26636
|
-
const SCOPE$
|
|
26565
|
+
const SCOPE$3 = "ElCollapse";
|
|
26637
26566
|
const useCollapse = (props, emit) => {
|
|
26638
26567
|
const activeNames = vue.ref(castArray$1(props.modelValue));
|
|
26639
26568
|
const setActiveNames = (_activeNames) => {
|
|
@@ -26668,7 +26597,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26668
26597
|
isBoolean(shouldChange)
|
|
26669
26598
|
].includes(true);
|
|
26670
26599
|
if (!isPromiseOrBool) {
|
|
26671
|
-
throwError
|
|
26600
|
+
throwError(SCOPE$3, "beforeCollapse must return type `Promise<boolean>` or `boolean`");
|
|
26672
26601
|
}
|
|
26673
26602
|
if (isPromise(shouldChange)) {
|
|
26674
26603
|
shouldChange.then((result) => {
|
|
@@ -26676,7 +26605,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
26676
26605
|
handleChange(name);
|
|
26677
26606
|
}
|
|
26678
26607
|
}).catch((e) => {
|
|
26679
|
-
debugWarn(SCOPE$4, `some error occurred: ${e}`);
|
|
26680
26608
|
});
|
|
26681
26609
|
} else if (shouldChange) {
|
|
26682
26610
|
handleChange(name);
|
|
@@ -27394,7 +27322,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
27394
27322
|
}
|
|
27395
27323
|
});
|
|
27396
27324
|
const colorPickerPanelEmits = {
|
|
27397
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
27325
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNil(val)
|
|
27398
27326
|
};
|
|
27399
27327
|
const ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
|
|
27400
27328
|
const colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
|
|
@@ -27840,7 +27768,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
27840
27768
|
function handleFocusout() {
|
|
27841
27769
|
var _a;
|
|
27842
27770
|
if (props.validateEvent) {
|
|
27843
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
27771
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
27844
27772
|
}
|
|
27845
27773
|
}
|
|
27846
27774
|
function update() {
|
|
@@ -27864,7 +27792,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
27864
27792
|
emit(UPDATE_MODEL_EVENT, val);
|
|
27865
27793
|
customInput.value = val;
|
|
27866
27794
|
if (props.validateEvent) {
|
|
27867
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
27795
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
27868
27796
|
}
|
|
27869
27797
|
});
|
|
27870
27798
|
vue.provide(colorPickerPanelContextKey, {
|
|
@@ -27972,9 +27900,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
27972
27900
|
...useAriaProps(["ariaLabel"])
|
|
27973
27901
|
});
|
|
27974
27902
|
const colorPickerEmits = {
|
|
27975
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
27976
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
27977
|
-
activeChange: (val) => isString$
|
|
27903
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNil(val),
|
|
27904
|
+
[CHANGE_EVENT]: (val) => isString$1(val) || isNil(val),
|
|
27905
|
+
activeChange: (val) => isString$1(val) || isNil(val),
|
|
27978
27906
|
focus: (evt) => evt instanceof FocusEvent,
|
|
27979
27907
|
blur: (evt) => evt instanceof FocusEvent
|
|
27980
27908
|
};
|
|
@@ -28015,7 +27943,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
28015
27943
|
setShowPicker(false);
|
|
28016
27944
|
resetColor();
|
|
28017
27945
|
if (props.validateEvent) {
|
|
28018
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
27946
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
28019
27947
|
}
|
|
28020
27948
|
}
|
|
28021
27949
|
});
|
|
@@ -28089,7 +28017,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
28089
28017
|
emit(UPDATE_MODEL_EVENT, value);
|
|
28090
28018
|
emit(CHANGE_EVENT, value);
|
|
28091
28019
|
if (props.validateEvent) {
|
|
28092
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
28020
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
28093
28021
|
}
|
|
28094
28022
|
debounceSetShowPicker(false);
|
|
28095
28023
|
vue.nextTick(() => {
|
|
@@ -28108,7 +28036,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
28108
28036
|
emit(UPDATE_MODEL_EVENT, valueOnClear.value);
|
|
28109
28037
|
emit(CHANGE_EVENT, valueOnClear.value);
|
|
28110
28038
|
if (props.modelValue !== valueOnClear.value && props.validateEvent) {
|
|
28111
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
28039
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
28112
28040
|
}
|
|
28113
28041
|
resetColor();
|
|
28114
28042
|
}
|
|
@@ -28865,7 +28793,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
28865
28793
|
if (isArray$1(value)) {
|
|
28866
28794
|
return value.map((v) => correctlyParseUserInput(v, format, lang, defaultFormat));
|
|
28867
28795
|
}
|
|
28868
|
-
if (isString$
|
|
28796
|
+
if (isString$1(value)) {
|
|
28869
28797
|
const dayjsValue = (defaultFormat == null ? void 0 : defaultFormat.value) ? dayjs(value) : dayjs(value, format);
|
|
28870
28798
|
if (!dayjsValue.isValid()) {
|
|
28871
28799
|
return dayjsValue;
|
|
@@ -29880,7 +29808,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
29880
29808
|
return `${year.value} ${yearTranslation}`;
|
|
29881
29809
|
});
|
|
29882
29810
|
const handleShortcutClick = (shortcut) => {
|
|
29883
|
-
const shortcutValue = isFunction$
|
|
29811
|
+
const shortcutValue = isFunction$1(shortcut.value) ? shortcut.value() : shortcut.value;
|
|
29884
29812
|
if (shortcutValue) {
|
|
29885
29813
|
isShortcut = true;
|
|
29886
29814
|
emit(dayjs(shortcutValue).locale(lang.value));
|
|
@@ -30161,7 +30089,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
30161
30089
|
const map = mapping[keyboardMode.value];
|
|
30162
30090
|
if (!map)
|
|
30163
30091
|
return;
|
|
30164
|
-
map.offset(newDate, isFunction$
|
|
30092
|
+
map.offset(newDate, isFunction$1(map[code]) ? map[code](newDate) : (_a = map[code]) != null ? _a : 0);
|
|
30165
30093
|
if (disabledDate && disabledDate(newDate)) {
|
|
30166
30094
|
break;
|
|
30167
30095
|
}
|
|
@@ -30482,7 +30410,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
30482
30410
|
const attrs = vue.useAttrs();
|
|
30483
30411
|
const slots = vue.useSlots();
|
|
30484
30412
|
const handleShortcutClick = (shortcut) => {
|
|
30485
|
-
const shortcutValues = isFunction$
|
|
30413
|
+
const shortcutValues = isFunction$1(shortcut.value) ? shortcut.value() : shortcut.value;
|
|
30486
30414
|
if (shortcutValues) {
|
|
30487
30415
|
emit("pick", [
|
|
30488
30416
|
dayjs(shortcutValues[0]).locale(lang.value),
|
|
@@ -32294,6 +32222,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
32294
32222
|
"onUpdate:modelValue": onModelValueUpdated
|
|
32295
32223
|
}), {
|
|
32296
32224
|
default: (scopedProps) => vue.createVNode(ElDatePickerPanel, vue.mergeProps({
|
|
32225
|
+
"disabled": props.disabled,
|
|
32297
32226
|
"border": false
|
|
32298
32227
|
}, scopedProps), _isSlot$6(slots) ? slots : {
|
|
32299
32228
|
default: () => [slots]
|
|
@@ -32505,7 +32434,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
32505
32434
|
}
|
|
32506
32435
|
});
|
|
32507
32436
|
|
|
32508
|
-
const COMPONENT_NAME$
|
|
32437
|
+
const COMPONENT_NAME$e = "ElDescriptionsItem";
|
|
32509
32438
|
|
|
32510
32439
|
const __default__$10 = vue.defineComponent({
|
|
32511
32440
|
name: "ElDescriptions"
|
|
@@ -32537,7 +32466,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
32537
32466
|
return [];
|
|
32538
32467
|
const children = flattedChildren(slots.default()).filter((node) => {
|
|
32539
32468
|
var _a;
|
|
32540
|
-
return ((_a = node == null ? void 0 : node.type) == null ? void 0 : _a.name) === COMPONENT_NAME$
|
|
32469
|
+
return ((_a = node == null ? void 0 : node.type) == null ? void 0 : _a.name) === COMPONENT_NAME$e;
|
|
32541
32470
|
});
|
|
32542
32471
|
const rows = [];
|
|
32543
32472
|
let temp = [];
|
|
@@ -32670,7 +32599,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
32670
32599
|
}
|
|
32671
32600
|
});
|
|
32672
32601
|
const DescriptionItem = vue.defineComponent({
|
|
32673
|
-
name: COMPONENT_NAME$
|
|
32602
|
+
name: COMPONENT_NAME$e,
|
|
32674
32603
|
props: descriptionItemProps
|
|
32675
32604
|
});
|
|
32676
32605
|
|
|
@@ -32929,7 +32858,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
32929
32858
|
};
|
|
32930
32859
|
const dialogContextKey = Symbol("dialogContextKey");
|
|
32931
32860
|
|
|
32932
|
-
const COMPONENT_NAME$e = "ElDialog";
|
|
32933
32861
|
const useDialog = (props, targetRef) => {
|
|
32934
32862
|
var _a;
|
|
32935
32863
|
const instance = vue.getCurrentInstance();
|
|
@@ -33000,10 +32928,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
33000
32928
|
return (el) => {
|
|
33001
32929
|
if (isArray$1(userHook)) {
|
|
33002
32930
|
userHook.forEach((fn) => {
|
|
33003
|
-
if (isFunction$
|
|
32931
|
+
if (isFunction$1(fn))
|
|
33004
32932
|
fn(el);
|
|
33005
32933
|
});
|
|
33006
|
-
} else if (isFunction$
|
|
32934
|
+
} else if (isFunction$1(userHook)) {
|
|
33007
32935
|
userHook(el);
|
|
33008
32936
|
}
|
|
33009
32937
|
defaultHook();
|
|
@@ -33014,7 +32942,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
33014
32942
|
config2.onAfterLeave = _mergeHook(config2.onAfterLeave, afterLeave);
|
|
33015
32943
|
if (!config2.name) {
|
|
33016
32944
|
config2.name = DEFAULT_DIALOG_TRANSITION;
|
|
33017
|
-
debugWarn(COMPONENT_NAME$e, `transition.name is missing when using object syntax, fallback to '${DEFAULT_DIALOG_TRANSITION}'`);
|
|
33018
32945
|
}
|
|
33019
32946
|
return config2;
|
|
33020
32947
|
}
|
|
@@ -34889,8 +34816,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
34889
34816
|
const imageViewerEmits = {
|
|
34890
34817
|
close: () => true,
|
|
34891
34818
|
error: (evt) => evt instanceof Event,
|
|
34892
|
-
switch: (index) => isNumber
|
|
34893
|
-
rotate: (deg) => isNumber
|
|
34819
|
+
switch: (index) => isNumber(index),
|
|
34820
|
+
rotate: (deg) => isNumber(deg)
|
|
34894
34821
|
};
|
|
34895
34822
|
|
|
34896
34823
|
const __default__$V = vue.defineComponent({
|
|
@@ -35428,7 +35355,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35428
35355
|
const imageEmits = {
|
|
35429
35356
|
load: (evt) => evt instanceof Event,
|
|
35430
35357
|
error: (evt) => evt instanceof Event,
|
|
35431
|
-
switch: (val) => isNumber
|
|
35358
|
+
switch: (val) => isNumber(val),
|
|
35432
35359
|
close: () => true,
|
|
35433
35360
|
show: () => true
|
|
35434
35361
|
};
|
|
@@ -35522,9 +35449,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35522
35449
|
return;
|
|
35523
35450
|
await vue.nextTick();
|
|
35524
35451
|
const { scrollContainer } = props;
|
|
35525
|
-
if (isElement$
|
|
35452
|
+
if (isElement$2(scrollContainer)) {
|
|
35526
35453
|
_scrollContainer.value = scrollContainer;
|
|
35527
|
-
} else if (isString$
|
|
35454
|
+
} else if (isString$1(scrollContainer) && scrollContainer !== "") {
|
|
35528
35455
|
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
35529
35456
|
} else if (container.value) {
|
|
35530
35457
|
const scrollContainer2 = getScrollContainer(container.value);
|
|
@@ -35697,7 +35624,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35697
35624
|
},
|
|
35698
35625
|
valueOnClear: {
|
|
35699
35626
|
type: [String, Number, null],
|
|
35700
|
-
validator: (val) => val === null || isNumber
|
|
35627
|
+
validator: (val) => val === null || isNumber(val) || ["min", "max"].includes(val),
|
|
35701
35628
|
default: null
|
|
35702
35629
|
},
|
|
35703
35630
|
name: String,
|
|
@@ -35725,8 +35652,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35725
35652
|
[CHANGE_EVENT]: (cur, prev) => prev !== cur,
|
|
35726
35653
|
blur: (e) => e instanceof FocusEvent,
|
|
35727
35654
|
focus: (e) => e instanceof FocusEvent,
|
|
35728
|
-
[INPUT_EVENT]: (val) => isNumber
|
|
35729
|
-
[UPDATE_MODEL_EVENT]: (val) => isNumber
|
|
35655
|
+
[INPUT_EVENT]: (val) => isNumber(val) || isNil(val),
|
|
35656
|
+
[UPDATE_MODEL_EVENT]: (val) => isNumber(val) || isNil(val)
|
|
35730
35657
|
};
|
|
35731
35658
|
|
|
35732
35659
|
const __default__$T = vue.defineComponent({
|
|
@@ -35746,14 +35673,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35746
35673
|
userInput: null
|
|
35747
35674
|
});
|
|
35748
35675
|
const { formItem } = useFormItem();
|
|
35749
|
-
const minDisabled = vue.computed(() => isNumber
|
|
35750
|
-
const maxDisabled = vue.computed(() => isNumber
|
|
35676
|
+
const minDisabled = vue.computed(() => isNumber(props.modelValue) && props.modelValue <= props.min);
|
|
35677
|
+
const maxDisabled = vue.computed(() => isNumber(props.modelValue) && props.modelValue >= props.max);
|
|
35751
35678
|
const numPrecision = vue.computed(() => {
|
|
35752
35679
|
const stepPrecision = getPrecision(props.step);
|
|
35753
35680
|
if (!isUndefined(props.precision)) {
|
|
35754
|
-
if (stepPrecision > props.precision)
|
|
35755
|
-
debugWarn("InputNumber", "precision should not be less than the decimal places of step");
|
|
35756
|
-
}
|
|
35681
|
+
if (stepPrecision > props.precision) ;
|
|
35757
35682
|
return props.precision;
|
|
35758
35683
|
} else {
|
|
35759
35684
|
return Math.max(getPrecision(props.modelValue), stepPrecision);
|
|
@@ -35771,7 +35696,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35771
35696
|
let currentValue = data.currentValue;
|
|
35772
35697
|
if (isNil(currentValue))
|
|
35773
35698
|
return "";
|
|
35774
|
-
if (isNumber
|
|
35699
|
+
if (isNumber(currentValue)) {
|
|
35775
35700
|
if (Number.isNaN(currentValue))
|
|
35776
35701
|
return "";
|
|
35777
35702
|
if (!isUndefined(props.precision)) {
|
|
@@ -35811,13 +35736,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35811
35736
|
return precision;
|
|
35812
35737
|
};
|
|
35813
35738
|
const ensurePrecision = (val, coefficient = 1) => {
|
|
35814
|
-
if (!isNumber
|
|
35739
|
+
if (!isNumber(val))
|
|
35815
35740
|
return data.currentValue;
|
|
35816
35741
|
if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
|
|
35817
|
-
debugWarn("InputNumber", "The value has reached the maximum safe integer limit.");
|
|
35818
35742
|
return val;
|
|
35819
35743
|
} else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
|
|
35820
|
-
debugWarn("InputNumber", "The value has reached the minimum safe integer limit.");
|
|
35821
35744
|
return val;
|
|
35822
35745
|
}
|
|
35823
35746
|
return toPrecision(val + props.step * coefficient);
|
|
@@ -35863,7 +35786,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35863
35786
|
const verifyValue = (value, update) => {
|
|
35864
35787
|
const { max, min, step, precision, stepStrictly, valueOnClear } = props;
|
|
35865
35788
|
if (max < min) {
|
|
35866
|
-
throwError
|
|
35789
|
+
throwError("InputNumber", "min should not be greater than max.");
|
|
35867
35790
|
}
|
|
35868
35791
|
let newVal = Number(value);
|
|
35869
35792
|
if (isNil(value) || Number.isNaN(newVal)) {
|
|
@@ -35873,7 +35796,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35873
35796
|
if (valueOnClear === null) {
|
|
35874
35797
|
return null;
|
|
35875
35798
|
}
|
|
35876
|
-
newVal = isString$
|
|
35799
|
+
newVal = isString$1(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
|
35877
35800
|
}
|
|
35878
35801
|
if (stepStrictly) {
|
|
35879
35802
|
newVal = toPrecision(Math.round(toPrecision(newVal / step)) * step, precision);
|
|
@@ -35906,7 +35829,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35906
35829
|
emit(CHANGE_EVENT, newVal, oldVal);
|
|
35907
35830
|
}
|
|
35908
35831
|
if (props.validateEvent) {
|
|
35909
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(
|
|
35832
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
35910
35833
|
}
|
|
35911
35834
|
data.currentValue = newVal;
|
|
35912
35835
|
};
|
|
@@ -35918,7 +35841,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35918
35841
|
};
|
|
35919
35842
|
const handleInputChange = (value) => {
|
|
35920
35843
|
const newVal = value !== "" ? Number(value) : "";
|
|
35921
|
-
if (isNumber
|
|
35844
|
+
if (isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
|
|
35922
35845
|
setCurrentValue(newVal);
|
|
35923
35846
|
}
|
|
35924
35847
|
setCurrentValueToModelValue();
|
|
@@ -35943,7 +35866,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35943
35866
|
}
|
|
35944
35867
|
emit("blur", event);
|
|
35945
35868
|
if (props.validateEvent) {
|
|
35946
|
-
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn(
|
|
35869
|
+
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn());
|
|
35947
35870
|
}
|
|
35948
35871
|
};
|
|
35949
35872
|
const setCurrentValueToModelValue = () => {
|
|
@@ -35981,7 +35904,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
35981
35904
|
}
|
|
35982
35905
|
innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
|
|
35983
35906
|
innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
|
|
35984
|
-
if (!isNumber
|
|
35907
|
+
if (!isNumber(modelValue) && modelValue != null) {
|
|
35985
35908
|
let val = Number(modelValue);
|
|
35986
35909
|
if (Number.isNaN(val)) {
|
|
35987
35910
|
val = null;
|
|
@@ -36160,10 +36083,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
36160
36083
|
const inputTagEmits = {
|
|
36161
36084
|
[UPDATE_MODEL_EVENT]: (value) => isArray$1(value) || isUndefined(value),
|
|
36162
36085
|
[CHANGE_EVENT]: (value) => isArray$1(value) || isUndefined(value),
|
|
36163
|
-
[INPUT_EVENT]: (value) => isString$
|
|
36164
|
-
"add-tag": (value) => isString$
|
|
36165
|
-
"remove-tag": (value, index) => isString$
|
|
36166
|
-
"drag-tag": (oldIndex, newIndex, value) => isNumber
|
|
36086
|
+
[INPUT_EVENT]: (value) => isString$1(value),
|
|
36087
|
+
"add-tag": (value) => isString$1(value) || isArray$1(value),
|
|
36088
|
+
"remove-tag": (value, index) => isString$1(value) && isNumber(index),
|
|
36089
|
+
"drag-tag": (oldIndex, newIndex, value) => isNumber(oldIndex) && isNumber(newIndex) && isString$1(value),
|
|
36167
36090
|
focus: (evt) => evt instanceof FocusEvent,
|
|
36168
36091
|
blur: (evt) => evt instanceof FocusEvent,
|
|
36169
36092
|
clear: () => true
|
|
@@ -36421,7 +36344,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
36421
36344
|
inputValue.value = void 0;
|
|
36422
36345
|
}
|
|
36423
36346
|
if (props.validateEvent) {
|
|
36424
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
36347
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
36425
36348
|
}
|
|
36426
36349
|
}
|
|
36427
36350
|
});
|
|
@@ -36434,7 +36357,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
36434
36357
|
vue.watch(() => props.modelValue, () => {
|
|
36435
36358
|
var _a;
|
|
36436
36359
|
if (props.validateEvent) {
|
|
36437
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, CHANGE_EVENT).catch((err) => debugWarn(
|
|
36360
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, CHANGE_EVENT).catch((err) => debugWarn());
|
|
36438
36361
|
}
|
|
36439
36362
|
});
|
|
36440
36363
|
return {
|
|
@@ -37183,10 +37106,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
37183
37106
|
const nsSubMenu = useNamespace("sub-menu");
|
|
37184
37107
|
const rootMenu = vue.inject(MENU_INJECTION_KEY);
|
|
37185
37108
|
if (!rootMenu)
|
|
37186
|
-
throwError
|
|
37109
|
+
throwError(COMPONENT_NAME$d, "can not inject root menu");
|
|
37187
37110
|
const subMenu = vue.inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
|
|
37188
37111
|
if (!subMenu)
|
|
37189
|
-
throwError
|
|
37112
|
+
throwError(COMPONENT_NAME$d, "can not inject sub menu");
|
|
37190
37113
|
const items = vue.ref({});
|
|
37191
37114
|
const subMenus = vue.ref({});
|
|
37192
37115
|
let timeout;
|
|
@@ -37351,7 +37274,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
37351
37274
|
transform: opened.value ? props.expandCloseIcon && props.expandOpenIcon || props.collapseCloseIcon && props.collapseOpenIcon && rootMenu.props.collapse ? "none" : "rotateZ(180deg)" : "none"
|
|
37352
37275
|
}
|
|
37353
37276
|
}, {
|
|
37354
|
-
default: () => isString$
|
|
37277
|
+
default: () => isString$1(subMenuTitleIcon.value) ? vue.h(instance.appContext.components[subMenuTitleIcon.value]) : vue.h(subMenuTitleIcon.value)
|
|
37355
37278
|
})
|
|
37356
37279
|
];
|
|
37357
37280
|
const child = rootMenu.isMenuPopup ? vue.h(ElTooltip, {
|
|
@@ -37494,11 +37417,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
37494
37417
|
default: true
|
|
37495
37418
|
}
|
|
37496
37419
|
});
|
|
37497
|
-
const checkIndexPath = (indexPath) => isArray$1(indexPath) && indexPath.every((path) => isString$
|
|
37420
|
+
const checkIndexPath = (indexPath) => isArray$1(indexPath) && indexPath.every((path) => isString$1(path));
|
|
37498
37421
|
const menuEmits = {
|
|
37499
|
-
close: (index, indexPath) => isString$
|
|
37500
|
-
open: (index, indexPath) => isString$
|
|
37501
|
-
select: (index, indexPath, item, routerResult) => isString$
|
|
37422
|
+
close: (index, indexPath) => isString$1(index) && checkIndexPath(indexPath),
|
|
37423
|
+
open: (index, indexPath) => isString$1(index) && checkIndexPath(indexPath),
|
|
37424
|
+
select: (index, indexPath, item, routerResult) => isString$1(index) && checkIndexPath(indexPath) && isObject$1(item) && (isUndefined(routerResult) || routerResult instanceof Promise)
|
|
37502
37425
|
};
|
|
37503
37426
|
const DEFAULT_MORE_ITEM_WIDTH = 64;
|
|
37504
37427
|
var Menu = vue.defineComponent({
|
|
@@ -37774,7 +37697,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
37774
37697
|
disabled: Boolean
|
|
37775
37698
|
});
|
|
37776
37699
|
const menuItemEmits = {
|
|
37777
|
-
click: (item) => isString$
|
|
37700
|
+
click: (item) => isString$1(item.index) && isArray$1(item.indexPath)
|
|
37778
37701
|
};
|
|
37779
37702
|
|
|
37780
37703
|
const COMPONENT_NAME$c = "ElMenuItem";
|
|
@@ -37787,17 +37710,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
37787
37710
|
emits: menuItemEmits,
|
|
37788
37711
|
setup(__props, { expose, emit }) {
|
|
37789
37712
|
const props = __props;
|
|
37790
|
-
isPropAbsent(props.index) && debugWarn(
|
|
37713
|
+
isPropAbsent(props.index) && debugWarn();
|
|
37791
37714
|
const instance = vue.getCurrentInstance();
|
|
37792
37715
|
const rootMenu = vue.inject(MENU_INJECTION_KEY);
|
|
37793
37716
|
const nsMenu = useNamespace("menu");
|
|
37794
37717
|
const nsMenuItem = useNamespace("menu-item");
|
|
37795
37718
|
if (!rootMenu)
|
|
37796
|
-
throwError
|
|
37719
|
+
throwError(COMPONENT_NAME$c, "can not inject root menu");
|
|
37797
37720
|
const { parentMenu, indexPath } = useMenu(instance, vue.toRef(props, "index"));
|
|
37798
37721
|
const subMenu = vue.inject(`${SUB_MENU_INJECTION_KEY}${parentMenu.value.uid}`);
|
|
37799
37722
|
if (!subMenu)
|
|
37800
|
-
throwError
|
|
37723
|
+
throwError(COMPONENT_NAME$c, "can not inject sub menu");
|
|
37801
37724
|
const active = vue.computed(() => props.index === rootMenu.activeIndex);
|
|
37802
37725
|
const item = vue.reactive({
|
|
37803
37726
|
index: props.index,
|
|
@@ -38170,7 +38093,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
38170
38093
|
function useOption$1(props, states) {
|
|
38171
38094
|
const select = vue.inject(selectKey);
|
|
38172
38095
|
if (!select) {
|
|
38173
|
-
throwError
|
|
38096
|
+
throwError(COMPONENT_NAME$b, "usage: <el-select><el-option /></el-select/>");
|
|
38174
38097
|
}
|
|
38175
38098
|
const selectGroup = vue.inject(selectGroupKey, { disabled: false });
|
|
38176
38099
|
const itemSelected = vue.computed(() => {
|
|
@@ -38320,12 +38243,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
38320
38243
|
"aria-disabled": _ctx.isDisabled || void 0,
|
|
38321
38244
|
"aria-selected": _ctx.itemSelected,
|
|
38322
38245
|
onMousemove: _ctx.hoverItem,
|
|
38323
|
-
onClick: vue.withModifiers(_ctx.selectOptionClick, ["stop"])
|
|
38246
|
+
onClick: vue.withModifiers(_ctx.selectOptionClick, ["stop"]),
|
|
38247
|
+
onMousedown: vue.withModifiers(() => {
|
|
38248
|
+
}, ["prevent"])
|
|
38324
38249
|
}, [
|
|
38325
38250
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
38326
38251
|
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.currentLabel), 1)
|
|
38327
38252
|
])
|
|
38328
|
-
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick"])), [
|
|
38253
|
+
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick", "onMousedown"])), [
|
|
38329
38254
|
[vue.vShow, _ctx.visible]
|
|
38330
38255
|
]);
|
|
38331
38256
|
}
|
|
@@ -38450,7 +38375,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
38450
38375
|
expanded.value = false;
|
|
38451
38376
|
states.menuVisibleOnFocus = false;
|
|
38452
38377
|
if (props.validateEvent) {
|
|
38453
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(
|
|
38378
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
38454
38379
|
}
|
|
38455
38380
|
}
|
|
38456
38381
|
});
|
|
@@ -38505,9 +38430,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
38505
38430
|
return props.filterable && props.allowCreate && states.inputValue !== "" && !hasExistingOption;
|
|
38506
38431
|
});
|
|
38507
38432
|
const updateOptions = () => {
|
|
38508
|
-
if (props.filterable && isFunction$
|
|
38433
|
+
if (props.filterable && isFunction$1(props.filterMethod))
|
|
38509
38434
|
return;
|
|
38510
|
-
if (props.filterable && props.remote && isFunction$
|
|
38435
|
+
if (props.filterable && props.remote && isFunction$1(props.remoteMethod))
|
|
38511
38436
|
return;
|
|
38512
38437
|
optionsArray.value.forEach((option) => {
|
|
38513
38438
|
var _a;
|
|
@@ -38546,7 +38471,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
38546
38471
|
}
|
|
38547
38472
|
setSelected();
|
|
38548
38473
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
38549
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(
|
|
38474
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
38550
38475
|
}
|
|
38551
38476
|
}, {
|
|
38552
38477
|
flush: "post",
|
|
@@ -38572,7 +38497,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
38572
38497
|
flush: "post"
|
|
38573
38498
|
});
|
|
38574
38499
|
vue.watch([() => states.hoveringIndex, optionsArray], ([val]) => {
|
|
38575
|
-
if (isNumber
|
|
38500
|
+
if (isNumber(val) && val > -1) {
|
|
38576
38501
|
hoverOption.value = optionsArray.value[val] || {};
|
|
38577
38502
|
} else {
|
|
38578
38503
|
hoverOption.value = {};
|
|
@@ -38591,9 +38516,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
38591
38516
|
return;
|
|
38592
38517
|
}
|
|
38593
38518
|
states.previousQuery = val;
|
|
38594
|
-
if (props.filterable && isFunction$
|
|
38519
|
+
if (props.filterable && isFunction$1(props.filterMethod)) {
|
|
38595
38520
|
props.filterMethod(val);
|
|
38596
|
-
} else if (props.filterable && props.remote && isFunction$
|
|
38521
|
+
} else if (props.filterable && props.remote && isFunction$1(props.remoteMethod)) {
|
|
38597
38522
|
props.remoteMethod(val);
|
|
38598
38523
|
}
|
|
38599
38524
|
if (props.defaultFirstOption && (props.filterable || props.remote) && filteredOptionsCount.value) {
|
|
@@ -39129,7 +39054,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
39129
39054
|
var _a2, _b2, _c, _d;
|
|
39130
39055
|
const name = (_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name;
|
|
39131
39056
|
if (name === "ElOptionGroup") {
|
|
39132
|
-
filterOptions(!isString$
|
|
39057
|
+
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);
|
|
39133
39058
|
} else if (name === "ElOption") {
|
|
39134
39059
|
valueList.push((_d = item.props) == null ? void 0 : _d.value);
|
|
39135
39060
|
} else if (isArray$1(item.children)) {
|
|
@@ -40322,7 +40247,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
40322
40247
|
pagerCount: {
|
|
40323
40248
|
type: Number,
|
|
40324
40249
|
validator: (value) => {
|
|
40325
|
-
return isNumber
|
|
40250
|
+
return isNumber(value) && Math.trunc(value) === value && value > 4 && value < 22 && value % 2 === 1;
|
|
40326
40251
|
},
|
|
40327
40252
|
default: 7
|
|
40328
40253
|
},
|
|
@@ -40371,13 +40296,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
40371
40296
|
appendSizeTo: String
|
|
40372
40297
|
});
|
|
40373
40298
|
const paginationEmits = {
|
|
40374
|
-
"update:current-page": (val) => isNumber
|
|
40375
|
-
"update:page-size": (val) => isNumber
|
|
40376
|
-
"size-change": (val) => isNumber
|
|
40377
|
-
change: (currentPage, pageSize) => isNumber
|
|
40378
|
-
"current-change": (val) => isNumber
|
|
40379
|
-
"prev-click": (val) => isNumber
|
|
40380
|
-
"next-click": (val) => isNumber
|
|
40299
|
+
"update:current-page": (val) => isNumber(val),
|
|
40300
|
+
"update:page-size": (val) => isNumber(val),
|
|
40301
|
+
"size-change": (val) => isNumber(val),
|
|
40302
|
+
change: (currentPage, pageSize) => isNumber(currentPage) && isNumber(pageSize),
|
|
40303
|
+
"current-change": (val) => isNumber(val),
|
|
40304
|
+
"prev-click": (val) => isNumber(val),
|
|
40305
|
+
"next-click": (val) => isNumber(val)
|
|
40381
40306
|
};
|
|
40382
40307
|
const componentName = "ElPagination";
|
|
40383
40308
|
var Pagination = vue.defineComponent({
|
|
@@ -41102,7 +41027,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
41102
41027
|
function getColors(color) {
|
|
41103
41028
|
const span = 100 / color.length;
|
|
41104
41029
|
const seriesColors = color.map((seriesColor, index) => {
|
|
41105
|
-
if (isString$
|
|
41030
|
+
if (isString$1(seriesColor)) {
|
|
41106
41031
|
return {
|
|
41107
41032
|
color: seriesColor,
|
|
41108
41033
|
percentage: (index + 1) * span
|
|
@@ -41115,9 +41040,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
41115
41040
|
const getCurrentColor = (percentage) => {
|
|
41116
41041
|
var _a;
|
|
41117
41042
|
const { color } = props;
|
|
41118
|
-
if (isFunction$
|
|
41043
|
+
if (isFunction$1(color)) {
|
|
41119
41044
|
return color(percentage);
|
|
41120
|
-
} else if (isString$
|
|
41045
|
+
} else if (isString$1(color)) {
|
|
41121
41046
|
return color;
|
|
41122
41047
|
} else {
|
|
41123
41048
|
const colors = getColors(color);
|
|
@@ -41295,8 +41220,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
41295
41220
|
...useAriaProps(["ariaLabel"])
|
|
41296
41221
|
});
|
|
41297
41222
|
const rateEmits = {
|
|
41298
|
-
[CHANGE_EVENT]: (value) => isNumber
|
|
41299
|
-
[UPDATE_MODEL_EVENT]: (value) => isNumber
|
|
41223
|
+
[CHANGE_EVENT]: (value) => isNumber(value),
|
|
41224
|
+
[UPDATE_MODEL_EVENT]: (value) => isNumber(value)
|
|
41300
41225
|
};
|
|
41301
41226
|
|
|
41302
41227
|
const __default__$D = vue.defineComponent({
|
|
@@ -41382,7 +41307,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
41382
41307
|
} : icons;
|
|
41383
41308
|
});
|
|
41384
41309
|
const decimalIconComponent = vue.computed(() => getValueFromMap(props.modelValue, componentMap.value));
|
|
41385
|
-
const voidComponent = vue.computed(() => rateDisabled.value ? isString$
|
|
41310
|
+
const voidComponent = vue.computed(() => rateDisabled.value ? isString$1(props.disabledVoidIcon) ? props.disabledVoidIcon : vue.markRaw(props.disabledVoidIcon) : isString$1(props.voidIcon) ? props.voidIcon : vue.markRaw(props.voidIcon));
|
|
41386
41311
|
const activeComponent = vue.computed(() => getValueFromMap(currentValue.value, componentMap.value));
|
|
41387
41312
|
function showDecimalIcon(item) {
|
|
41388
41313
|
const showWhenDisabled = rateDisabled.value && valueDecimal.value > 0 && item - 1 < props.modelValue && item > props.modelValue;
|
|
@@ -42103,7 +42028,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42103
42028
|
const states = vue.ref({
|
|
42104
42029
|
isScrolling: false,
|
|
42105
42030
|
scrollDir: "forward",
|
|
42106
|
-
scrollOffset: isNumber
|
|
42031
|
+
scrollOffset: isNumber(props.initScrollOffset) ? props.initScrollOffset : 0,
|
|
42107
42032
|
updateRequested: false,
|
|
42108
42033
|
isScrollbarDragging: false,
|
|
42109
42034
|
scrollbarAlwaysOn: props.scrollbarAlwaysOn
|
|
@@ -42136,8 +42061,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42136
42061
|
},
|
|
42137
42062
|
{
|
|
42138
42063
|
direction: props.direction,
|
|
42139
|
-
height: isNumber
|
|
42140
|
-
width: isNumber
|
|
42064
|
+
height: isNumber(props.height) ? `${props.height}px` : props.height,
|
|
42065
|
+
width: isNumber(props.width) ? `${props.width}px` : props.width
|
|
42141
42066
|
},
|
|
42142
42067
|
props.style
|
|
42143
42068
|
]);
|
|
@@ -42286,7 +42211,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42286
42211
|
return;
|
|
42287
42212
|
const { initScrollOffset } = props;
|
|
42288
42213
|
const windowElement = vue.unref(windowRef);
|
|
42289
|
-
if (isNumber
|
|
42214
|
+
if (isNumber(initScrollOffset) && windowElement) {
|
|
42290
42215
|
if (vue.unref(_isHorizontal)) {
|
|
42291
42216
|
windowElement.scrollLeft = initScrollOffset;
|
|
42292
42217
|
} else {
|
|
@@ -42397,7 +42322,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42397
42322
|
vue.h(Inner, vue.mergeProps(ctx.innerProps, {
|
|
42398
42323
|
style: innerStyle,
|
|
42399
42324
|
ref: "innerRef"
|
|
42400
|
-
}), !isString$
|
|
42325
|
+
}), !isString$1(Inner) ? {
|
|
42401
42326
|
default: () => children
|
|
42402
42327
|
} : children)
|
|
42403
42328
|
];
|
|
@@ -42417,7 +42342,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42417
42342
|
onScroll,
|
|
42418
42343
|
ref: "windowRef",
|
|
42419
42344
|
key: 0
|
|
42420
|
-
}, !isString$
|
|
42345
|
+
}, !isString$1(Container) ? { default: () => [InnerNode] } : [InnerNode]);
|
|
42421
42346
|
return vue.h("div", {
|
|
42422
42347
|
key: 0,
|
|
42423
42348
|
class: [ns.e("wrapper"), states.scrollbarAlwaysOn ? "always-on" : ""]
|
|
@@ -42434,14 +42359,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42434
42359
|
getEstimatedTotalSize: ({ total, itemSize }) => itemSize * total,
|
|
42435
42360
|
getOffset: ({ height, total, itemSize, layout, width }, index, alignment, scrollOffset) => {
|
|
42436
42361
|
const size = isHorizontal(layout) ? width : height;
|
|
42437
|
-
if (typeof process !== "undefined" && false) {
|
|
42438
|
-
throwError("[ElVirtualList]", `
|
|
42439
|
-
You should set
|
|
42440
|
-
width/height
|
|
42441
|
-
to number when your layout is
|
|
42442
|
-
horizontal/vertical
|
|
42443
|
-
`);
|
|
42444
|
-
}
|
|
42445
42362
|
const lastItemOffset = Math.max(0, total * itemSize - size);
|
|
42446
42363
|
const maxOffset = Math.min(lastItemOffset, index * itemSize);
|
|
42447
42364
|
const minOffset = Math.max(0, (index + 1) * itemSize - size);
|
|
@@ -42635,13 +42552,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42635
42552
|
},
|
|
42636
42553
|
clearCache: false,
|
|
42637
42554
|
validateProps: ({ itemSize }) => {
|
|
42638
|
-
if (typeof process !== "undefined" && false) {
|
|
42639
|
-
if (typeof itemSize !== "function") {
|
|
42640
|
-
throwError(SCOPE, `
|
|
42641
|
-
itemSize is required as function, but the given value was ${typeof itemSize}
|
|
42642
|
-
`);
|
|
42643
|
-
}
|
|
42644
|
-
}
|
|
42645
42555
|
}
|
|
42646
42556
|
});
|
|
42647
42557
|
var DynamicSizeList$1 = DynamicSizeList;
|
|
@@ -42765,8 +42675,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42765
42675
|
const innerRef = vue.ref();
|
|
42766
42676
|
const states = vue.ref({
|
|
42767
42677
|
isScrolling: false,
|
|
42768
|
-
scrollLeft: isNumber
|
|
42769
|
-
scrollTop: isNumber
|
|
42678
|
+
scrollLeft: isNumber(props.initScrollLeft) ? props.initScrollLeft : 0,
|
|
42679
|
+
scrollTop: isNumber(props.initScrollTop) ? props.initScrollTop : 0,
|
|
42770
42680
|
updateRequested: false,
|
|
42771
42681
|
xAxisScrollDir: FORWARD,
|
|
42772
42682
|
yAxisScrollDir: FORWARD
|
|
@@ -42821,8 +42731,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
42821
42731
|
},
|
|
42822
42732
|
{
|
|
42823
42733
|
direction: props.direction,
|
|
42824
|
-
height: isNumber
|
|
42825
|
-
width: isNumber
|
|
42734
|
+
height: isNumber(props.height) ? `${props.height}px` : props.height,
|
|
42735
|
+
width: isNumber(props.width) ? `${props.width}px` : props.width
|
|
42826
42736
|
},
|
|
42827
42737
|
(_a = props.style) != null ? _a : {}
|
|
42828
42738
|
];
|
|
@@ -43015,10 +42925,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43015
42925
|
const { initScrollLeft, initScrollTop } = props;
|
|
43016
42926
|
const windowElement = vue.unref(windowRef);
|
|
43017
42927
|
if (windowElement) {
|
|
43018
|
-
if (isNumber
|
|
42928
|
+
if (isNumber(initScrollLeft)) {
|
|
43019
42929
|
windowElement.scrollLeft = initScrollLeft;
|
|
43020
42930
|
}
|
|
43021
|
-
if (isNumber
|
|
42931
|
+
if (isNumber(initScrollTop)) {
|
|
43022
42932
|
windowElement.scrollTop = initScrollTop;
|
|
43023
42933
|
}
|
|
43024
42934
|
}
|
|
@@ -43142,7 +43052,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43142
43052
|
vue.h(Inner, vue.mergeProps(props.innerProps, {
|
|
43143
43053
|
style: vue.unref(innerStyle),
|
|
43144
43054
|
ref: innerRef
|
|
43145
|
-
}), !isString$
|
|
43055
|
+
}), !isString$1(Inner) ? {
|
|
43146
43056
|
default: () => children
|
|
43147
43057
|
} : children)
|
|
43148
43058
|
];
|
|
@@ -43161,7 +43071,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43161
43071
|
style: vue.unref(windowStyle),
|
|
43162
43072
|
onScroll,
|
|
43163
43073
|
ref: windowRef
|
|
43164
|
-
}, !isString$
|
|
43074
|
+
}, !isString$1(Container) ? { default: () => Inner } : Inner),
|
|
43165
43075
|
horizontalScrollbar,
|
|
43166
43076
|
verticalScrollbar
|
|
43167
43077
|
]);
|
|
@@ -43279,20 +43189,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43279
43189
|
initCache: () => void 0,
|
|
43280
43190
|
clearCache: true,
|
|
43281
43191
|
validateProps: ({ columnWidth, rowHeight }) => {
|
|
43282
|
-
if (typeof process !== "undefined" && false) {
|
|
43283
|
-
if (!isNumber(columnWidth)) {
|
|
43284
|
-
throwError(SCOPE, `
|
|
43285
|
-
"columnWidth" must be passed as number,
|
|
43286
|
-
instead ${typeof columnWidth} was given.
|
|
43287
|
-
`);
|
|
43288
|
-
}
|
|
43289
|
-
if (!isNumber(rowHeight)) {
|
|
43290
|
-
throwError(SCOPE, `
|
|
43291
|
-
"columnWidth" must be passed as number,
|
|
43292
|
-
instead ${typeof rowHeight} was given.
|
|
43293
|
-
`);
|
|
43294
|
-
}
|
|
43295
|
-
}
|
|
43296
43192
|
}
|
|
43297
43193
|
});
|
|
43298
43194
|
var FixedSizeGrid$1 = FixedSizeGrid;
|
|
@@ -43477,10 +43373,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43477
43373
|
const resetAfter = ({ columnIndex, rowIndex }, forceUpdate) => {
|
|
43478
43374
|
var _a, _b;
|
|
43479
43375
|
forceUpdate = isUndefined(forceUpdate) ? true : forceUpdate;
|
|
43480
|
-
if (isNumber
|
|
43376
|
+
if (isNumber(columnIndex)) {
|
|
43481
43377
|
cache.value.lastVisitedColumnIndex = Math.min(cache.value.lastVisitedColumnIndex, columnIndex - 1);
|
|
43482
43378
|
}
|
|
43483
|
-
if (isNumber
|
|
43379
|
+
if (isNumber(rowIndex)) {
|
|
43484
43380
|
cache.value.lastVisitedRowIndex = Math.min(cache.value.lastVisitedRowIndex, rowIndex - 1);
|
|
43485
43381
|
}
|
|
43486
43382
|
(_a = instance.exposed) == null ? void 0 : _a.getItemStyleCache.value(-1, null, null);
|
|
@@ -43519,20 +43415,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43519
43415
|
},
|
|
43520
43416
|
clearCache: false,
|
|
43521
43417
|
validateProps: ({ columnWidth, rowHeight }) => {
|
|
43522
|
-
if (typeof process !== "undefined" && false) {
|
|
43523
|
-
if (!isFunction(columnWidth)) {
|
|
43524
|
-
throwError(SCOPE, `
|
|
43525
|
-
"columnWidth" must be passed as function,
|
|
43526
|
-
instead ${typeof columnWidth} was given.
|
|
43527
|
-
`);
|
|
43528
|
-
}
|
|
43529
|
-
if (!isFunction(rowHeight)) {
|
|
43530
|
-
throwError(SCOPE, `
|
|
43531
|
-
"rowHeight" must be passed as function,
|
|
43532
|
-
instead ${typeof rowHeight} was given.
|
|
43533
|
-
`);
|
|
43534
|
-
}
|
|
43535
|
-
}
|
|
43536
43418
|
}
|
|
43537
43419
|
});
|
|
43538
43420
|
var DynamicSizeGrid$1 = DynamicSizeGrid;
|
|
@@ -43709,7 +43591,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43709
43591
|
type: [Boolean, Number],
|
|
43710
43592
|
default: true,
|
|
43711
43593
|
validator(val) {
|
|
43712
|
-
return isBoolean(val) || isNumber
|
|
43594
|
+
return isBoolean(val) || isNumber(val);
|
|
43713
43595
|
}
|
|
43714
43596
|
},
|
|
43715
43597
|
suffixIcon: {
|
|
@@ -43742,7 +43624,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43742
43624
|
clear: () => true
|
|
43743
43625
|
};
|
|
43744
43626
|
const optionV2Emits = {
|
|
43745
|
-
hover: (index) => isNumber
|
|
43627
|
+
hover: (index) => isNumber(index),
|
|
43746
43628
|
select: (val, index) => true
|
|
43747
43629
|
};
|
|
43748
43630
|
|
|
@@ -43781,7 +43663,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43781
43663
|
_ctx.ns.is("hovering", _ctx.hovering)
|
|
43782
43664
|
]),
|
|
43783
43665
|
onMousemove: _ctx.hoverItem,
|
|
43784
|
-
onClick: vue.withModifiers(_ctx.selectOptionClick, ["stop"])
|
|
43666
|
+
onClick: vue.withModifiers(_ctx.selectOptionClick, ["stop"]),
|
|
43667
|
+
onMousedown: vue.withModifiers(() => {
|
|
43668
|
+
}, ["prevent"])
|
|
43785
43669
|
}, [
|
|
43786
43670
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
43787
43671
|
item: _ctx.item,
|
|
@@ -43790,7 +43674,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
43790
43674
|
}, () => [
|
|
43791
43675
|
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.getLabel(_ctx.item)), 1)
|
|
43792
43676
|
])
|
|
43793
|
-
], 46, ["id", "aria-selected", "aria-disabled", "onMousemove", "onClick"]);
|
|
43677
|
+
], 46, ["id", "aria-selected", "aria-disabled", "onMousemove", "onClick", "onMousedown"]);
|
|
43794
43678
|
}
|
|
43795
43679
|
var OptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$6], ["__file", "option-item.vue"]]);
|
|
43796
43680
|
|
|
@@ -44168,7 +44052,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44168
44052
|
expanded.value = false;
|
|
44169
44053
|
states.menuVisibleOnFocus = false;
|
|
44170
44054
|
if (props.validateEvent) {
|
|
44171
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(
|
|
44055
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn());
|
|
44172
44056
|
}
|
|
44173
44057
|
}
|
|
44174
44058
|
});
|
|
@@ -44217,8 +44101,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44217
44101
|
}
|
|
44218
44102
|
return null;
|
|
44219
44103
|
});
|
|
44220
|
-
const isFilterMethodValid = vue.computed(() => props.filterable && isFunction$
|
|
44221
|
-
const isRemoteMethodValid = vue.computed(() => props.filterable && props.remote && isFunction$
|
|
44104
|
+
const isFilterMethodValid = vue.computed(() => props.filterable && isFunction$1(props.filterMethod));
|
|
44105
|
+
const isRemoteMethodValid = vue.computed(() => props.filterable && props.remote && isFunction$1(props.remoteMethod));
|
|
44222
44106
|
const filterOptions = (query) => {
|
|
44223
44107
|
const regexp = new RegExp(escapeStringRegexp(query), "i");
|
|
44224
44108
|
const isValidOption = (o) => {
|
|
@@ -44267,7 +44151,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44267
44151
|
const collapseTagSize = vue.computed(() => selectSize.value === "small" ? "small" : "default");
|
|
44268
44152
|
const calculatePopperSize = () => {
|
|
44269
44153
|
var _a;
|
|
44270
|
-
if (isNumber
|
|
44154
|
+
if (isNumber(props.fitInputWidth)) {
|
|
44271
44155
|
popperSize.value = props.fitInputWidth;
|
|
44272
44156
|
return;
|
|
44273
44157
|
}
|
|
@@ -44397,9 +44281,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44397
44281
|
return;
|
|
44398
44282
|
}
|
|
44399
44283
|
states.previousQuery = val;
|
|
44400
|
-
if (props.filterable && isFunction$
|
|
44284
|
+
if (props.filterable && isFunction$1(props.filterMethod)) {
|
|
44401
44285
|
props.filterMethod(val);
|
|
44402
|
-
} else if (props.filterable && props.remote && isFunction$
|
|
44286
|
+
} else if (props.filterable && props.remote && isFunction$1(props.remoteMethod)) {
|
|
44403
44287
|
props.remoteMethod(val);
|
|
44404
44288
|
}
|
|
44405
44289
|
if (props.defaultFirstOption && (props.filterable || props.remote) && filteredOptions.value.length) {
|
|
@@ -44741,7 +44625,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44741
44625
|
initStates(true);
|
|
44742
44626
|
}
|
|
44743
44627
|
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
44744
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(
|
|
44628
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
44745
44629
|
}
|
|
44746
44630
|
}, {
|
|
44747
44631
|
deep: true
|
|
@@ -44774,7 +44658,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
44774
44658
|
v = get(optionValue, valueKey);
|
|
44775
44659
|
}
|
|
44776
44660
|
if (duplicateValue.get(v)) {
|
|
44777
|
-
debugWarn("ElSelectV2", `The option values you provided seem to be duplicated, which may cause some problems, please check.`);
|
|
44778
44661
|
break;
|
|
44779
44662
|
} else {
|
|
44780
44663
|
duplicateValue.set(v, true);
|
|
@@ -45477,7 +45360,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
45477
45360
|
},
|
|
45478
45361
|
...useAriaProps(["ariaLabel"])
|
|
45479
45362
|
});
|
|
45480
|
-
const isValidValue$1 = (value) => isNumber
|
|
45363
|
+
const isValidValue$1 = (value) => isNumber(value) || isArray$1(value) && value.every(isNumber);
|
|
45481
45364
|
const sliderEmits = {
|
|
45482
45365
|
[UPDATE_MODEL_EVENT]: isValidValue$1,
|
|
45483
45366
|
[INPUT_EVENT]: isValidValue$1,
|
|
@@ -45497,7 +45380,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
45497
45380
|
}
|
|
45498
45381
|
initData.oldValue = [initData.firstValue, initData.secondValue];
|
|
45499
45382
|
} else {
|
|
45500
|
-
if (!isNumber
|
|
45383
|
+
if (!isNumber(props.modelValue) || Number.isNaN(props.modelValue)) {
|
|
45501
45384
|
initData.firstValue = props.min;
|
|
45502
45385
|
} else {
|
|
45503
45386
|
initData.firstValue = Math.min(props.max, Math.max(props.min, props.modelValue));
|
|
@@ -45918,7 +45801,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
45918
45801
|
if (!props.showStops || props.min > props.max)
|
|
45919
45802
|
return [];
|
|
45920
45803
|
if (props.step === 0) {
|
|
45921
|
-
debugWarn("ElSlider", "step should not be 0.");
|
|
45922
45804
|
return [];
|
|
45923
45805
|
}
|
|
45924
45806
|
const stopCount = Math.ceil((props.max - props.min) / props.step);
|
|
@@ -45956,7 +45838,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
45956
45838
|
const setValues = () => {
|
|
45957
45839
|
var _a, _b;
|
|
45958
45840
|
if (props.min > props.max) {
|
|
45959
|
-
throwError
|
|
45841
|
+
throwError("Slider", "min should not be greater than max.");
|
|
45960
45842
|
}
|
|
45961
45843
|
const val = props.modelValue;
|
|
45962
45844
|
if (props.range && isArray$1(val)) {
|
|
@@ -45973,12 +45855,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
45973
45855
|
initData.secondValue = val[1];
|
|
45974
45856
|
if (valueChanged()) {
|
|
45975
45857
|
if (props.validateEvent) {
|
|
45976
|
-
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(
|
|
45858
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
45977
45859
|
}
|
|
45978
45860
|
initData.oldValue = val.slice();
|
|
45979
45861
|
}
|
|
45980
45862
|
}
|
|
45981
|
-
} else if (!props.range && isNumber
|
|
45863
|
+
} else if (!props.range && isNumber(val) && !Number.isNaN(val)) {
|
|
45982
45864
|
if (val < props.min) {
|
|
45983
45865
|
_emit(props.min);
|
|
45984
45866
|
} else if (val > props.max) {
|
|
@@ -45987,7 +45869,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
45987
45869
|
initData.firstValue = val;
|
|
45988
45870
|
if (valueChanged()) {
|
|
45989
45871
|
if (props.validateEvent) {
|
|
45990
|
-
(_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn(
|
|
45872
|
+
(_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn());
|
|
45991
45873
|
}
|
|
45992
45874
|
initData.oldValue = val;
|
|
45993
45875
|
}
|
|
@@ -46027,7 +45909,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46027
45909
|
}
|
|
46028
45910
|
});
|
|
46029
45911
|
const sliderButtonEmits = {
|
|
46030
|
-
[UPDATE_MODEL_EVENT]: (value) => isNumber
|
|
45912
|
+
[UPDATE_MODEL_EVENT]: (value) => isNumber(value)
|
|
46031
45913
|
};
|
|
46032
45914
|
|
|
46033
45915
|
const __default__$z = vue.defineComponent({
|
|
@@ -46129,9 +46011,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46129
46011
|
setup(props) {
|
|
46130
46012
|
const ns = useNamespace("slider");
|
|
46131
46013
|
const label = vue.computed(() => {
|
|
46132
|
-
return isString$
|
|
46014
|
+
return isString$1(props.mark) ? props.mark : props.mark.label;
|
|
46133
46015
|
});
|
|
46134
|
-
const style = vue.computed(() => isString$
|
|
46016
|
+
const style = vue.computed(() => isString$1(props.mark) ? void 0 : props.mark.style);
|
|
46135
46017
|
return () => vue.h("div", {
|
|
46136
46018
|
class: ns.e("marks-text"),
|
|
46137
46019
|
style: style.value
|
|
@@ -46409,7 +46291,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46409
46291
|
verticalSize.value = v;
|
|
46410
46292
|
} else {
|
|
46411
46293
|
let val;
|
|
46412
|
-
if (isNumber
|
|
46294
|
+
if (isNumber(size)) {
|
|
46413
46295
|
val = size;
|
|
46414
46296
|
} else {
|
|
46415
46297
|
val = SIZE_MAP[size || "small"] || SIZE_MAP.small;
|
|
@@ -46462,7 +46344,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46462
46344
|
spacer: {
|
|
46463
46345
|
type: definePropType([Object, String, Number, Array]),
|
|
46464
46346
|
default: null,
|
|
46465
|
-
validator: (val) => vue.isVNode(val) || isNumber
|
|
46347
|
+
validator: (val) => vue.isVNode(val) || isNumber(val) || isString$1(val)
|
|
46466
46348
|
},
|
|
46467
46349
|
wrap: Boolean,
|
|
46468
46350
|
fill: Boolean,
|
|
@@ -46474,7 +46356,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46474
46356
|
type: [String, Array, Number],
|
|
46475
46357
|
values: componentSizes,
|
|
46476
46358
|
validator: (val) => {
|
|
46477
|
-
return isNumber
|
|
46359
|
+
return isNumber(val) || isArray$1(val) && val.length === 2 && val.every(isNumber);
|
|
46478
46360
|
}
|
|
46479
46361
|
}
|
|
46480
46362
|
});
|
|
@@ -46593,9 +46475,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46593
46475
|
const ns = useNamespace("statistic");
|
|
46594
46476
|
const displayValue = vue.computed(() => {
|
|
46595
46477
|
const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
|
|
46596
|
-
if (isFunction$
|
|
46478
|
+
if (isFunction$1(formatter))
|
|
46597
46479
|
return formatter(value);
|
|
46598
|
-
if (!isNumber
|
|
46480
|
+
if (!isNumber(value) || Number.isNaN(value))
|
|
46599
46481
|
return value;
|
|
46600
46482
|
let [integer, decimal = ""] = String(value).split(".");
|
|
46601
46483
|
decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
|
|
@@ -46667,7 +46549,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46667
46549
|
});
|
|
46668
46550
|
const countdownEmits = {
|
|
46669
46551
|
finish: () => true,
|
|
46670
|
-
[CHANGE_EVENT]: (value) => isNumber
|
|
46552
|
+
[CHANGE_EVENT]: (value) => isNumber(value)
|
|
46671
46553
|
};
|
|
46672
46554
|
|
|
46673
46555
|
const timeUnits = [
|
|
@@ -46680,7 +46562,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46680
46562
|
["S", 1]
|
|
46681
46563
|
];
|
|
46682
46564
|
const getTime = (value) => {
|
|
46683
|
-
return isNumber
|
|
46565
|
+
return isNumber(value) ? new Date(value).getTime() : value.valueOf();
|
|
46684
46566
|
};
|
|
46685
46567
|
const formatTime$1 = (timestamp, format) => {
|
|
46686
46568
|
let timeLeft = timestamp;
|
|
@@ -46806,7 +46688,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46806
46688
|
}
|
|
46807
46689
|
});
|
|
46808
46690
|
const stepsEmits = {
|
|
46809
|
-
[CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber
|
|
46691
|
+
[CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
|
|
46810
46692
|
};
|
|
46811
46693
|
|
|
46812
46694
|
const STEPS_INJECTION_KEY = "ElSteps";
|
|
@@ -46930,7 +46812,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
46930
46812
|
});
|
|
46931
46813
|
const style = vue.computed(() => {
|
|
46932
46814
|
const style2 = {
|
|
46933
|
-
flexBasis: isNumber
|
|
46815
|
+
flexBasis: isNumber(space.value) ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
|
|
46934
46816
|
};
|
|
46935
46817
|
if (isVertical.value)
|
|
46936
46818
|
return style2;
|
|
@@ -47129,9 +47011,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47129
47011
|
...useAriaProps(["ariaLabel"])
|
|
47130
47012
|
});
|
|
47131
47013
|
const switchEmits = {
|
|
47132
|
-
[UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$
|
|
47133
|
-
[CHANGE_EVENT]: (val) => isBoolean(val) || isString$
|
|
47134
|
-
[INPUT_EVENT]: (val) => isBoolean(val) || isString$
|
|
47014
|
+
[UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val),
|
|
47015
|
+
[CHANGE_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val),
|
|
47016
|
+
[INPUT_EVENT]: (val) => isBoolean(val) || isString$1(val) || isNumber(val)
|
|
47135
47017
|
};
|
|
47136
47018
|
|
|
47137
47019
|
const COMPONENT_NAME$9 = "ElSwitch";
|
|
@@ -47193,7 +47075,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47193
47075
|
var _a;
|
|
47194
47076
|
input.value.checked = val;
|
|
47195
47077
|
if (props.validateEvent) {
|
|
47196
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(
|
|
47078
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
47197
47079
|
}
|
|
47198
47080
|
});
|
|
47199
47081
|
const handleChange = () => {
|
|
@@ -47219,7 +47101,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47219
47101
|
isBoolean(shouldChange)
|
|
47220
47102
|
].includes(true);
|
|
47221
47103
|
if (!isPromiseOrBool) {
|
|
47222
|
-
throwError
|
|
47104
|
+
throwError(COMPONENT_NAME$9, "beforeChange must return type `Promise<boolean>` or `boolean`");
|
|
47223
47105
|
}
|
|
47224
47106
|
if (isPromise(shouldChange)) {
|
|
47225
47107
|
shouldChange.then((result) => {
|
|
@@ -47227,7 +47109,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47227
47109
|
handleChange();
|
|
47228
47110
|
}
|
|
47229
47111
|
}).catch((e) => {
|
|
47230
|
-
debugWarn(COMPONENT_NAME$9, `some error occurred: ${e}`);
|
|
47231
47112
|
});
|
|
47232
47113
|
} else if (shouldChange) {
|
|
47233
47114
|
handleChange();
|
|
@@ -47363,7 +47244,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47363
47244
|
if (!sortKey && !sortMethod && (!sortBy || isArray$1(sortBy) && !sortBy.length)) {
|
|
47364
47245
|
return array;
|
|
47365
47246
|
}
|
|
47366
|
-
if (isString$
|
|
47247
|
+
if (isString$1(reverse)) {
|
|
47367
47248
|
reverse = reverse === "descending" ? -1 : 1;
|
|
47368
47249
|
} else {
|
|
47369
47250
|
reverse = reverse && reverse < 0 ? -1 : 1;
|
|
@@ -47371,7 +47252,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47371
47252
|
const getKey = sortMethod ? null : function(value, index) {
|
|
47372
47253
|
if (sortBy) {
|
|
47373
47254
|
return flatMap(castArray$1(sortBy), (by) => {
|
|
47374
|
-
if (isString$
|
|
47255
|
+
if (isString$1(by)) {
|
|
47375
47256
|
return get(value, by);
|
|
47376
47257
|
} else {
|
|
47377
47258
|
return by(value, index, array);
|
|
@@ -47434,7 +47315,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47434
47315
|
}
|
|
47435
47316
|
}
|
|
47436
47317
|
if (!column)
|
|
47437
|
-
throwError
|
|
47318
|
+
throwError("ElTable", `No column matching with column-key: ${columnKey}`);
|
|
47438
47319
|
return column;
|
|
47439
47320
|
};
|
|
47440
47321
|
const getColumnByCell = function(table, cell, namespace) {
|
|
@@ -47447,7 +47328,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47447
47328
|
const getRowIdentity = (row, rowKey) => {
|
|
47448
47329
|
if (!row)
|
|
47449
47330
|
throw new Error("Row is required when get row identity");
|
|
47450
|
-
if (isString$
|
|
47331
|
+
if (isString$1(rowKey)) {
|
|
47451
47332
|
if (!rowKey.includes(".")) {
|
|
47452
47333
|
return `${row[rowKey]}`;
|
|
47453
47334
|
}
|
|
@@ -47457,7 +47338,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47457
47338
|
current = current[element];
|
|
47458
47339
|
}
|
|
47459
47340
|
return `${current}`;
|
|
47460
|
-
} else if (isFunction$
|
|
47341
|
+
} else if (isFunction$1(rowKey)) {
|
|
47461
47342
|
return rowKey.call(null, row);
|
|
47462
47343
|
}
|
|
47463
47344
|
return "";
|
|
@@ -47515,10 +47396,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47515
47396
|
return minWidth;
|
|
47516
47397
|
}
|
|
47517
47398
|
function parseHeight(height) {
|
|
47518
|
-
if (isNumber
|
|
47399
|
+
if (isNumber(height)) {
|
|
47519
47400
|
return height;
|
|
47520
47401
|
}
|
|
47521
|
-
if (isString$
|
|
47402
|
+
if (isString$1(height)) {
|
|
47522
47403
|
if (/^\d+(?:px)?$/.test(height)) {
|
|
47523
47404
|
return Number.parseInt(height, 10);
|
|
47524
47405
|
} else {
|
|
@@ -47621,7 +47502,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
47621
47502
|
strategy: "fixed",
|
|
47622
47503
|
...props.popperOptions
|
|
47623
47504
|
};
|
|
47624
|
-
const tooltipFormatterContent = isFunction$
|
|
47505
|
+
const tooltipFormatterContent = isFunction$1(column == null ? void 0 : column.tooltipFormatter) ? column.tooltipFormatter({
|
|
47625
47506
|
row,
|
|
47626
47507
|
column,
|
|
47627
47508
|
cellValue: getProp(row, column.property).value
|
|
@@ -48137,7 +48018,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
48137
48018
|
|
|
48138
48019
|
const sortData = (data, states) => {
|
|
48139
48020
|
const sortingColumn = states.sortingColumn;
|
|
48140
|
-
if (!sortingColumn || isString$
|
|
48021
|
+
if (!sortingColumn || isString$1(sortingColumn.sortable)) {
|
|
48141
48022
|
return data;
|
|
48142
48023
|
}
|
|
48143
48024
|
return orderBy(data, states.sortProp, states.sortOrder, sortingColumn.sortMethod, sortingColumn.sortBy);
|
|
@@ -48424,7 +48305,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
48424
48305
|
const keys = Object.keys(panels);
|
|
48425
48306
|
if (!keys.length)
|
|
48426
48307
|
return;
|
|
48427
|
-
if (isString$
|
|
48308
|
+
if (isString$1(columnKeys)) {
|
|
48428
48309
|
columnKeys = [columnKeys];
|
|
48429
48310
|
}
|
|
48430
48311
|
if (isArray$1(columnKeys)) {
|
|
@@ -48878,10 +48759,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
48878
48759
|
vue.nextTick(() => this.setHeight(value, prop));
|
|
48879
48760
|
return;
|
|
48880
48761
|
}
|
|
48881
|
-
if (el && isNumber
|
|
48762
|
+
if (el && isNumber(value)) {
|
|
48882
48763
|
el.style[prop] = `${value}px`;
|
|
48883
48764
|
this.updateElsHeight();
|
|
48884
|
-
} else if (el && isString$
|
|
48765
|
+
} else if (el && isString$1(value)) {
|
|
48885
48766
|
el.style[prop] = value;
|
|
48886
48767
|
this.updateElsHeight();
|
|
48887
48768
|
}
|
|
@@ -48925,9 +48806,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
48925
48806
|
const bodyWidth = (_a = this.table.vnode.el) == null ? void 0 : _a.clientWidth;
|
|
48926
48807
|
let bodyMinWidth = 0;
|
|
48927
48808
|
const flattenColumns = this.getFlattenColumns();
|
|
48928
|
-
const flexColumns = flattenColumns.filter((column) => !isNumber
|
|
48809
|
+
const flexColumns = flattenColumns.filter((column) => !isNumber(column.width));
|
|
48929
48810
|
flattenColumns.forEach((column) => {
|
|
48930
|
-
if (isNumber
|
|
48811
|
+
if (isNumber(column.width) && column.realWidth)
|
|
48931
48812
|
column.realWidth = null;
|
|
48932
48813
|
});
|
|
48933
48814
|
if (flexColumns.length > 0 && fit) {
|
|
@@ -49504,7 +49385,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
49504
49385
|
if (!props.border || column.children && column.children.length > 0)
|
|
49505
49386
|
return;
|
|
49506
49387
|
const el = event.target;
|
|
49507
|
-
const target = isElement$
|
|
49388
|
+
const target = isElement$2(el) ? el.closest("th") : null;
|
|
49508
49389
|
if (!target) {
|
|
49509
49390
|
return;
|
|
49510
49391
|
}
|
|
@@ -49596,7 +49477,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
49596
49477
|
const ns = useNamespace("table");
|
|
49597
49478
|
const getHeaderRowStyle = (rowIndex) => {
|
|
49598
49479
|
const headerRowStyle = parent == null ? void 0 : parent.props.headerRowStyle;
|
|
49599
|
-
if (isFunction$
|
|
49480
|
+
if (isFunction$1(headerRowStyle)) {
|
|
49600
49481
|
return headerRowStyle.call(null, { rowIndex });
|
|
49601
49482
|
}
|
|
49602
49483
|
return headerRowStyle;
|
|
@@ -49604,9 +49485,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
49604
49485
|
const getHeaderRowClass = (rowIndex) => {
|
|
49605
49486
|
const classes = [];
|
|
49606
49487
|
const headerRowClassName = parent == null ? void 0 : parent.props.headerRowClassName;
|
|
49607
|
-
if (isString$
|
|
49488
|
+
if (isString$1(headerRowClassName)) {
|
|
49608
49489
|
classes.push(headerRowClassName);
|
|
49609
|
-
} else if (isFunction$
|
|
49490
|
+
} else if (isFunction$1(headerRowClassName)) {
|
|
49610
49491
|
classes.push(headerRowClassName.call(null, { rowIndex }));
|
|
49611
49492
|
}
|
|
49612
49493
|
return classes.join(" ");
|
|
@@ -49614,7 +49495,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
49614
49495
|
const getHeaderCellStyle = (rowIndex, columnIndex, row, column) => {
|
|
49615
49496
|
var _a;
|
|
49616
49497
|
let headerCellStyles = (_a = parent == null ? void 0 : parent.props.headerCellStyle) != null ? _a : {};
|
|
49617
|
-
if (isFunction$
|
|
49498
|
+
if (isFunction$1(headerCellStyles)) {
|
|
49618
49499
|
headerCellStyles = headerCellStyles.call(null, {
|
|
49619
49500
|
rowIndex,
|
|
49620
49501
|
columnIndex,
|
|
@@ -49644,9 +49525,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
49644
49525
|
classes.push("is-sortable");
|
|
49645
49526
|
}
|
|
49646
49527
|
const headerCellClassName = parent == null ? void 0 : parent.props.headerCellClassName;
|
|
49647
|
-
if (isString$
|
|
49528
|
+
if (isString$1(headerCellClassName)) {
|
|
49648
49529
|
classes.push(headerCellClassName);
|
|
49649
|
-
} else if (isFunction$
|
|
49530
|
+
} else if (isFunction$1(headerCellClassName)) {
|
|
49650
49531
|
classes.push(headerCellClassName.call(null, {
|
|
49651
49532
|
rowIndex,
|
|
49652
49533
|
columnIndex,
|
|
@@ -50104,7 +49985,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50104
49985
|
const ns = useNamespace("table");
|
|
50105
49986
|
const getRowStyle = (row, rowIndex) => {
|
|
50106
49987
|
const rowStyle = parent == null ? void 0 : parent.props.rowStyle;
|
|
50107
|
-
if (isFunction$
|
|
49988
|
+
if (isFunction$1(rowStyle)) {
|
|
50108
49989
|
return rowStyle.call(null, {
|
|
50109
49990
|
row,
|
|
50110
49991
|
rowIndex
|
|
@@ -50122,9 +50003,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50122
50003
|
classes.push(ns.em("row", "striped"));
|
|
50123
50004
|
}
|
|
50124
50005
|
const rowClassName = parent == null ? void 0 : parent.props.rowClassName;
|
|
50125
|
-
if (isString$
|
|
50006
|
+
if (isString$1(rowClassName)) {
|
|
50126
50007
|
classes.push(rowClassName);
|
|
50127
|
-
} else if (isFunction$
|
|
50008
|
+
} else if (isFunction$1(rowClassName)) {
|
|
50128
50009
|
classes.push(rowClassName.call(null, {
|
|
50129
50010
|
row,
|
|
50130
50011
|
rowIndex
|
|
@@ -50135,7 +50016,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50135
50016
|
const getCellStyle = (rowIndex, columnIndex, row, column) => {
|
|
50136
50017
|
const cellStyle = parent == null ? void 0 : parent.props.cellStyle;
|
|
50137
50018
|
let cellStyles = cellStyle != null ? cellStyle : {};
|
|
50138
|
-
if (isFunction$
|
|
50019
|
+
if (isFunction$1(cellStyle)) {
|
|
50139
50020
|
cellStyles = cellStyle.call(null, {
|
|
50140
50021
|
rowIndex,
|
|
50141
50022
|
columnIndex,
|
|
@@ -50152,9 +50033,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50152
50033
|
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
|
|
50153
50034
|
const classes = [column.id, column.align, column.className, ...fixedClasses];
|
|
50154
50035
|
const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
|
|
50155
|
-
if (isString$
|
|
50036
|
+
if (isString$1(cellClassName)) {
|
|
50156
50037
|
classes.push(cellClassName);
|
|
50157
|
-
} else if (isFunction$
|
|
50038
|
+
} else if (isFunction$1(cellClassName)) {
|
|
50158
50039
|
classes.push(cellClassName.call(null, {
|
|
50159
50040
|
rowIndex,
|
|
50160
50041
|
columnIndex,
|
|
@@ -50169,7 +50050,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
50169
50050
|
let rowspan = 1;
|
|
50170
50051
|
let colspan = 1;
|
|
50171
50052
|
const fn = parent == null ? void 0 : parent.props.spanMethod;
|
|
50172
|
-
if (isFunction$
|
|
50053
|
+
if (isFunction$1(fn)) {
|
|
50173
50054
|
const result = fn({
|
|
50174
50055
|
row,
|
|
50175
50056
|
column,
|
|
@@ -51173,7 +51054,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
51173
51054
|
};
|
|
51174
51055
|
const setScrollPosition = (position, offset) => {
|
|
51175
51056
|
const scrollbar = scrollBarRef.value;
|
|
51176
|
-
if (scrollbar && isNumber
|
|
51057
|
+
if (scrollbar && isNumber(offset) && ["Top", "Left"].includes(position)) {
|
|
51177
51058
|
scrollbar[`setScroll${position}`](offset);
|
|
51178
51059
|
}
|
|
51179
51060
|
};
|
|
@@ -51615,9 +51496,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
51615
51496
|
}) {
|
|
51616
51497
|
let i = $index + 1;
|
|
51617
51498
|
const index = column.index;
|
|
51618
|
-
if (isNumber
|
|
51499
|
+
if (isNumber(index)) {
|
|
51619
51500
|
i = $index + index;
|
|
51620
|
-
} else if (isFunction$
|
|
51501
|
+
} else if (isFunction$1(index)) {
|
|
51621
51502
|
i = index($index);
|
|
51622
51503
|
}
|
|
51623
51504
|
return vue.h("div", {}, [i]);
|
|
@@ -51908,9 +51789,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
51908
51789
|
}
|
|
51909
51790
|
};
|
|
51910
51791
|
const setColumnRenders = (column) => {
|
|
51911
|
-
if (props.renderHeader) {
|
|
51912
|
-
debugWarn("TableColumn", "Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.");
|
|
51913
|
-
} else if (column.type !== "selection") {
|
|
51792
|
+
if (props.renderHeader) ; else if (column.type !== "selection") {
|
|
51914
51793
|
column.renderHeader = (scope) => {
|
|
51915
51794
|
instance.columnConfig.value["label"];
|
|
51916
51795
|
if (slots.header) {
|
|
@@ -52185,7 +52064,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
52185
52064
|
children.push(childNode);
|
|
52186
52065
|
} else if (childNode.type === vue.Fragment && isArray$1(childNode.children)) {
|
|
52187
52066
|
childNode.children.forEach((vnode2) => {
|
|
52188
|
-
if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString$
|
|
52067
|
+
if ((vnode2 == null ? void 0 : vnode2.patchFlag) !== 1024 && !isString$1(vnode2 == null ? void 0 : vnode2.children)) {
|
|
52189
52068
|
children.push(vnode2);
|
|
52190
52069
|
}
|
|
52191
52070
|
});
|
|
@@ -52416,7 +52295,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
52416
52295
|
const leftTableHeights = vue.shallowRef({});
|
|
52417
52296
|
const mainTableHeights = vue.shallowRef({});
|
|
52418
52297
|
const rightTableHeights = vue.shallowRef({});
|
|
52419
|
-
const isDynamic = vue.computed(() => isNumber
|
|
52298
|
+
const isDynamic = vue.computed(() => isNumber(props.estimatedRowHeight));
|
|
52420
52299
|
function onRowsRendered(params) {
|
|
52421
52300
|
var _a;
|
|
52422
52301
|
(_a = props.onRowsRendered) == null ? void 0 : _a.call(props, params);
|
|
@@ -52577,7 +52456,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
52577
52456
|
return isArray$1(listLike) ? listLike.reduce(sumReducer, 0) : listLike;
|
|
52578
52457
|
};
|
|
52579
52458
|
const tryCall = (fLike, params, defaultRet = {}) => {
|
|
52580
|
-
return isFunction$
|
|
52459
|
+
return isFunction$1(fLike) ? fLike(params) : fLike != null ? fLike : defaultRet;
|
|
52581
52460
|
};
|
|
52582
52461
|
const enforceUnit = (style) => {
|
|
52583
52462
|
["width", "maxWidth", "minWidth", "height"].forEach((key) => {
|
|
@@ -52612,7 +52491,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
52612
52491
|
const fixedTableHeight = vue.computed(() => {
|
|
52613
52492
|
const { maxHeight } = props;
|
|
52614
52493
|
const tableHeight = vue.unref(mainTableHeight);
|
|
52615
|
-
if (isNumber
|
|
52494
|
+
if (isNumber(maxHeight) && maxHeight > 0)
|
|
52616
52495
|
return tableHeight;
|
|
52617
52496
|
const totalHeight = vue.unref(rowsHeight) + vue.unref(headerHeight) + vue.unref(fixedRowsHeight);
|
|
52618
52497
|
return Math.min(tableHeight, totalHeight);
|
|
@@ -52748,7 +52627,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
52748
52627
|
const rowsHeight = vue.computed(() => {
|
|
52749
52628
|
const { estimatedRowHeight, rowHeight } = props;
|
|
52750
52629
|
const _data = vue.unref(data);
|
|
52751
|
-
if (isNumber
|
|
52630
|
+
if (isNumber(estimatedRowHeight)) {
|
|
52752
52631
|
return Object.values(vue.unref(rowHeights)).reduce((acc, curr) => acc + curr, 0);
|
|
52753
52632
|
}
|
|
52754
52633
|
return _data.length * rowHeight;
|
|
@@ -53258,7 +53137,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53258
53137
|
const measured = vue.ref(false);
|
|
53259
53138
|
const rowRef = vue.ref();
|
|
53260
53139
|
const measurable = vue.computed(() => {
|
|
53261
|
-
return isNumber
|
|
53140
|
+
return isNumber(props.estimatedRowHeight) && props.rowIndex >= 0;
|
|
53262
53141
|
});
|
|
53263
53142
|
const doMeasure = (isInit = false) => {
|
|
53264
53143
|
const $rowRef = vue.unref(rowRef);
|
|
@@ -53297,7 +53176,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53297
53176
|
const handlers = props.rowEventHandlers || {};
|
|
53298
53177
|
const eventHandlers2 = {};
|
|
53299
53178
|
Object.entries(handlers).forEach(([eventName, handler]) => {
|
|
53300
|
-
if (isFunction$
|
|
53179
|
+
if (isFunction$1(handler)) {
|
|
53301
53180
|
eventHandlers2[eventName] = (event) => {
|
|
53302
53181
|
handler({
|
|
53303
53182
|
event,
|
|
@@ -53572,7 +53451,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53572
53451
|
}
|
|
53573
53452
|
vue.watch(() => props.bodyWidth, () => {
|
|
53574
53453
|
var _a;
|
|
53575
|
-
if (isNumber
|
|
53454
|
+
if (isNumber(props.estimatedRowHeight))
|
|
53576
53455
|
(_a = bodyRef.value) == null ? void 0 : _a.resetAfter({
|
|
53577
53456
|
columnIndex: 0
|
|
53578
53457
|
}, false);
|
|
@@ -53658,7 +53537,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53658
53537
|
getRowHeight,
|
|
53659
53538
|
onScroll
|
|
53660
53539
|
} = props;
|
|
53661
|
-
const isDynamicRowEnabled = isNumber
|
|
53540
|
+
const isDynamicRowEnabled = isNumber(estimatedRowHeight);
|
|
53662
53541
|
const Grid = isDynamicRowEnabled ? DynamicSizeGrid$1 : FixedSizeGrid$1;
|
|
53663
53542
|
const _headerHeight = vue.unref(headerHeight);
|
|
53664
53543
|
return vue.createVNode("div", {
|
|
@@ -53889,7 +53768,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
53889
53768
|
dataKey,
|
|
53890
53769
|
dataGetter
|
|
53891
53770
|
} = column;
|
|
53892
|
-
const cellData = isFunction$
|
|
53771
|
+
const cellData = isFunction$1(dataGetter) ? dataGetter({
|
|
53893
53772
|
columns,
|
|
53894
53773
|
column,
|
|
53895
53774
|
columnIndex,
|
|
@@ -54387,7 +54266,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
54387
54266
|
const props = __props;
|
|
54388
54267
|
const rootTabs = vue.inject(tabsRootContextKey);
|
|
54389
54268
|
if (!rootTabs)
|
|
54390
|
-
throwError
|
|
54269
|
+
throwError(COMPONENT_NAME$4, "<el-tabs><el-tab-bar /></el-tabs>");
|
|
54391
54270
|
const ns = useNamespace("tabs");
|
|
54392
54271
|
const barRef = vue.ref();
|
|
54393
54272
|
const barStyle = vue.ref();
|
|
@@ -54497,7 +54376,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
54497
54376
|
}) {
|
|
54498
54377
|
const rootTabs = vue.inject(tabsRootContextKey);
|
|
54499
54378
|
if (!rootTabs)
|
|
54500
|
-
throwError
|
|
54379
|
+
throwError(COMPONENT_NAME$3, `<el-tabs><tab-nav /></el-tabs>`);
|
|
54501
54380
|
const ns = useNamespace("tabs");
|
|
54502
54381
|
const visibility = useDocumentVisibility();
|
|
54503
54382
|
const focused = useWindowFocus();
|
|
@@ -54790,7 +54669,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
54790
54669
|
default: 0
|
|
54791
54670
|
}
|
|
54792
54671
|
});
|
|
54793
|
-
const isPaneName = (value) => isString$
|
|
54672
|
+
const isPaneName = (value) => isString$1(value) || isNumber(value);
|
|
54794
54673
|
const tabsEmits = {
|
|
54795
54674
|
[UPDATE_MODEL_EVENT]: (name) => isPaneName(name),
|
|
54796
54675
|
tabClick: (pane, ev) => ev instanceof Event,
|
|
@@ -54966,7 +54845,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
54966
54845
|
const slots = vue.useSlots();
|
|
54967
54846
|
const tabsRoot = vue.inject(tabsRootContextKey);
|
|
54968
54847
|
if (!tabsRoot)
|
|
54969
|
-
throwError
|
|
54848
|
+
throwError(COMPONENT_NAME$2, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
54970
54849
|
const ns = useNamespace("tab-pane");
|
|
54971
54850
|
const paneRef = vue.ref();
|
|
54972
54851
|
const index = vue.ref();
|
|
@@ -55594,7 +55473,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
55594
55473
|
const propsAlias = usePropsAlias(props);
|
|
55595
55474
|
const filteredData = vue.computed(() => {
|
|
55596
55475
|
return props.data.filter((item) => {
|
|
55597
|
-
if (isFunction$
|
|
55476
|
+
if (isFunction$1(props.filterMethod)) {
|
|
55598
55477
|
return props.filterMethod(panelState.query, item);
|
|
55599
55478
|
} else {
|
|
55600
55479
|
const label = String(item[propsAlias.value.label] || item[propsAlias.value.key]);
|
|
@@ -55909,7 +55788,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
55909
55788
|
vue.watch(() => props.modelValue, () => {
|
|
55910
55789
|
var _a;
|
|
55911
55790
|
if (props.validateEvent) {
|
|
55912
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(
|
|
55791
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
55913
55792
|
}
|
|
55914
55793
|
});
|
|
55915
55794
|
const optionRender = vue.computed(() => (option) => {
|
|
@@ -56098,9 +55977,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
56098
55977
|
const props = node.store.props;
|
|
56099
55978
|
const data = node.data || {};
|
|
56100
55979
|
const config = props[prop];
|
|
56101
|
-
if (isFunction$
|
|
55980
|
+
if (isFunction$1(config)) {
|
|
56102
55981
|
return config(data, node);
|
|
56103
|
-
} else if (isString$
|
|
55982
|
+
} else if (isString$1(config)) {
|
|
56104
55983
|
return data[config];
|
|
56105
55984
|
} else if (isUndefined(config)) {
|
|
56106
55985
|
const dataProp = data[prop];
|
|
@@ -56888,7 +56767,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
56888
56767
|
const treeNodeDragStart = ({ event, treeNode }) => {
|
|
56889
56768
|
if (!event.dataTransfer)
|
|
56890
56769
|
return;
|
|
56891
|
-
if (isFunction$
|
|
56770
|
+
if (isFunction$1(props.allowDrag) && !props.allowDrag(treeNode.node)) {
|
|
56892
56771
|
event.preventDefault();
|
|
56893
56772
|
return false;
|
|
56894
56773
|
}
|
|
@@ -56915,7 +56794,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
56915
56794
|
let dropInner = true;
|
|
56916
56795
|
let dropNext = true;
|
|
56917
56796
|
let userAllowDropInner = true;
|
|
56918
|
-
if (isFunction$
|
|
56797
|
+
if (isFunction$1(props.allowDrop)) {
|
|
56919
56798
|
dropPrev = props.allowDrop(draggingNode.node, dropNode.node, "prev");
|
|
56920
56799
|
userAllowDropInner = dropInner = props.allowDrop(draggingNode.node, dropNode.node, "inner");
|
|
56921
56800
|
dropNext = props.allowDrop(draggingNode.node, dropNode.node, "next");
|
|
@@ -57071,9 +56950,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
57071
56950
|
const dragEvents = vue.inject(dragEventsKey);
|
|
57072
56951
|
const instance = vue.getCurrentInstance();
|
|
57073
56952
|
vue.provide(NODE_INSTANCE_INJECTION_KEY, instance);
|
|
57074
|
-
if (!tree) {
|
|
57075
|
-
debugWarn("Tree", "Can not find node's tree.");
|
|
57076
|
-
}
|
|
57077
56953
|
if (props.node.expanded) {
|
|
57078
56954
|
expanded.value = true;
|
|
57079
56955
|
childNodeRendered.value = true;
|
|
@@ -57108,13 +56984,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
57108
56984
|
return {};
|
|
57109
56985
|
}
|
|
57110
56986
|
let className;
|
|
57111
|
-
if (isFunction$
|
|
56987
|
+
if (isFunction$1(nodeClassFunc)) {
|
|
57112
56988
|
const { data } = node;
|
|
57113
56989
|
className = nodeClassFunc(data, node);
|
|
57114
56990
|
} else {
|
|
57115
56991
|
className = nodeClassFunc;
|
|
57116
56992
|
}
|
|
57117
|
-
if (isString$
|
|
56993
|
+
if (isString$1(className)) {
|
|
57118
56994
|
return { [className]: true };
|
|
57119
56995
|
} else {
|
|
57120
56996
|
return className;
|
|
@@ -57936,7 +57812,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
57936
57812
|
const getNodeValByProp = (prop, data) => {
|
|
57937
57813
|
var _a;
|
|
57938
57814
|
const propVal = propsMap.value[prop];
|
|
57939
|
-
if (isFunction$
|
|
57815
|
+
if (isFunction$1(propVal)) {
|
|
57940
57816
|
return propVal(data, (_a = tree.value) == null ? void 0 : _a.getNode(getNodeValByProp("value", data)));
|
|
57941
57817
|
} else {
|
|
57942
57818
|
return data[propVal];
|
|
@@ -58478,7 +58354,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
58478
58354
|
const hiddenNodeKeySet = vue.ref(/* @__PURE__ */ new Set([]));
|
|
58479
58355
|
const hiddenExpandIconKeySet = vue.ref(/* @__PURE__ */ new Set([]));
|
|
58480
58356
|
const filterable = vue.computed(() => {
|
|
58481
|
-
return isFunction$
|
|
58357
|
+
return isFunction$1(props.filterMethod);
|
|
58482
58358
|
});
|
|
58483
58359
|
function doFilter(query) {
|
|
58484
58360
|
var _a;
|
|
@@ -58870,13 +58746,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
58870
58746
|
if (!nodeClassFunc)
|
|
58871
58747
|
return {};
|
|
58872
58748
|
let className;
|
|
58873
|
-
if (isFunction$
|
|
58749
|
+
if (isFunction$1(nodeClassFunc)) {
|
|
58874
58750
|
const { data } = node;
|
|
58875
58751
|
className = nodeClassFunc(data, node);
|
|
58876
58752
|
} else {
|
|
58877
58753
|
className = nodeClassFunc;
|
|
58878
58754
|
}
|
|
58879
|
-
return isString$
|
|
58755
|
+
return isString$1(className) ? { [className]: true } : className;
|
|
58880
58756
|
};
|
|
58881
58757
|
const handleClick = (e) => {
|
|
58882
58758
|
emit("click", props.node, e);
|
|
@@ -59101,7 +58977,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
59101
58977
|
|
|
59102
58978
|
const uploadContextKey = Symbol("uploadContextKey");
|
|
59103
58979
|
|
|
59104
|
-
const SCOPE$
|
|
58980
|
+
const SCOPE$2 = "ElUpload";
|
|
59105
58981
|
class UploadAjaxError extends Error {
|
|
59106
58982
|
constructor(message, status, method, url) {
|
|
59107
58983
|
super(message);
|
|
@@ -59135,7 +59011,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
59135
59011
|
}
|
|
59136
59012
|
const ajaxUpload = (option) => {
|
|
59137
59013
|
if (typeof XMLHttpRequest === "undefined")
|
|
59138
|
-
throwError
|
|
59014
|
+
throwError(SCOPE$2, "XMLHttpRequest is undefined");
|
|
59139
59015
|
const xhr = new XMLHttpRequest();
|
|
59140
59016
|
const action = option.action;
|
|
59141
59017
|
if (xhr.upload) {
|
|
@@ -59496,7 +59372,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
59496
59372
|
setup(__props, { emit }) {
|
|
59497
59373
|
const uploaderContext = vue.inject(uploadContextKey);
|
|
59498
59374
|
if (!uploaderContext) {
|
|
59499
|
-
throwError
|
|
59375
|
+
throwError(COMPONENT_NAME$1, "usage: <el-upload><el-upload-dragger /></el-upload>");
|
|
59500
59376
|
}
|
|
59501
59377
|
const ns = useNamespace("upload");
|
|
59502
59378
|
const dragover = vue.ref(false);
|
|
@@ -59641,7 +59517,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
59641
59517
|
}), beforeData);
|
|
59642
59518
|
};
|
|
59643
59519
|
const resolveData = async (data, rawFile) => {
|
|
59644
|
-
if (isFunction$
|
|
59520
|
+
if (isFunction$1(data)) {
|
|
59645
59521
|
return data(rawFile);
|
|
59646
59522
|
}
|
|
59647
59523
|
return data;
|
|
@@ -59762,7 +59638,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
59762
59638
|
});
|
|
59763
59639
|
var UploadContent = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "upload-content.vue"]]);
|
|
59764
59640
|
|
|
59765
|
-
const SCOPE$
|
|
59641
|
+
const SCOPE$1 = "ElUpload";
|
|
59766
59642
|
const revokeFileObjectURL = (file) => {
|
|
59767
59643
|
var _a;
|
|
59768
59644
|
if ((_a = file.url) == null ? void 0 : _a.startsWith("blob:")) {
|
|
@@ -59827,7 +59703,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
59827
59703
|
try {
|
|
59828
59704
|
uploadFile.url = URL.createObjectURL(file);
|
|
59829
59705
|
} catch (err) {
|
|
59830
|
-
debugWarn(SCOPE$
|
|
59706
|
+
debugWarn(SCOPE$1, err.message);
|
|
59831
59707
|
props.onError(err, uploadFile, uploadFiles.value);
|
|
59832
59708
|
}
|
|
59833
59709
|
}
|
|
@@ -59837,7 +59713,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
59837
59713
|
const handleRemove = async (file) => {
|
|
59838
59714
|
const uploadFile = file instanceof File ? getFile(file) : file;
|
|
59839
59715
|
if (!uploadFile)
|
|
59840
|
-
throwError
|
|
59716
|
+
throwError(SCOPE$1, "file to be removed not found");
|
|
59841
59717
|
const doRemove = (file2) => {
|
|
59842
59718
|
abort(file2);
|
|
59843
59719
|
removeFile(file2);
|
|
@@ -61090,7 +60966,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61090
60966
|
function isHTMLElement(value) {
|
|
61091
60967
|
return value instanceof getWindow(value).HTMLElement;
|
|
61092
60968
|
}
|
|
61093
|
-
function isElement
|
|
60969
|
+
function isElement(value) {
|
|
61094
60970
|
return value instanceof getWindow(value).Element;
|
|
61095
60971
|
}
|
|
61096
60972
|
function isNode(value) {
|
|
@@ -61160,7 +61036,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61160
61036
|
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
61161
61037
|
}
|
|
61162
61038
|
|
|
61163
|
-
const win = isElement
|
|
61039
|
+
const win = isElement(element) ? getWindow(element) : window;
|
|
61164
61040
|
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
61165
61041
|
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;
|
|
61166
61042
|
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;
|
|
@@ -61183,7 +61059,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61183
61059
|
}
|
|
61184
61060
|
|
|
61185
61061
|
function getNodeScroll(element) {
|
|
61186
|
-
if (isElement
|
|
61062
|
+
if (isElement(element)) {
|
|
61187
61063
|
return {
|
|
61188
61064
|
scrollLeft: element.scrollLeft,
|
|
61189
61065
|
scrollTop: element.scrollTop
|
|
@@ -61537,7 +61413,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61537
61413
|
return rectToClientRect(getViewportRect(element, strategy));
|
|
61538
61414
|
}
|
|
61539
61415
|
|
|
61540
|
-
if (isElement
|
|
61416
|
+
if (isElement(clippingParent)) {
|
|
61541
61417
|
return getInnerBoundingClientRect(clippingParent, strategy);
|
|
61542
61418
|
}
|
|
61543
61419
|
|
|
@@ -61552,12 +61428,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61552
61428
|
const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);
|
|
61553
61429
|
const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
61554
61430
|
|
|
61555
|
-
if (!isElement
|
|
61431
|
+
if (!isElement(clipperElement)) {
|
|
61556
61432
|
return [];
|
|
61557
61433
|
} // @ts-ignore isElement check ensures we return Array<Element>
|
|
61558
61434
|
|
|
61559
61435
|
|
|
61560
|
-
return clippingAncestors.filter(clippingAncestors => isElement
|
|
61436
|
+
return clippingAncestors.filter(clippingAncestors => isElement(clippingAncestors) && contains(clippingAncestors, clipperElement) && getNodeName(clippingAncestors) !== 'body');
|
|
61561
61437
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
61562
61438
|
// clipping ancestors
|
|
61563
61439
|
|
|
@@ -61591,7 +61467,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61591
61467
|
const platform = {
|
|
61592
61468
|
getClippingRect,
|
|
61593
61469
|
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
61594
|
-
isElement
|
|
61470
|
+
isElement,
|
|
61595
61471
|
getDimensions,
|
|
61596
61472
|
getOffsetParent,
|
|
61597
61473
|
getDocumentElement,
|
|
@@ -61630,7 +61506,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61630
61506
|
} = options;
|
|
61631
61507
|
const ancestorScroll = _ancestorScroll && !animationFrame;
|
|
61632
61508
|
const ancestorResize = _ancestorResize && !animationFrame;
|
|
61633
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(isElement
|
|
61509
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)] : [];
|
|
61634
61510
|
ancestors.forEach(ancestor => {
|
|
61635
61511
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
61636
61512
|
passive: true
|
|
@@ -61648,7 +61524,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61648
61524
|
|
|
61649
61525
|
initialUpdate = false;
|
|
61650
61526
|
});
|
|
61651
|
-
isElement
|
|
61527
|
+
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
61652
61528
|
observer.observe(floating);
|
|
61653
61529
|
}
|
|
61654
61530
|
|
|
@@ -61702,9 +61578,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
61702
61578
|
const posInfo = vue.ref(null);
|
|
61703
61579
|
const getTargetEl = () => {
|
|
61704
61580
|
let targetEl;
|
|
61705
|
-
if (isString$
|
|
61581
|
+
if (isString$1(target.value)) {
|
|
61706
61582
|
targetEl = document.querySelector(target.value);
|
|
61707
|
-
} else if (isFunction$
|
|
61583
|
+
} else if (isFunction$1(target.value)) {
|
|
61708
61584
|
targetEl = target.value();
|
|
61709
61585
|
} else {
|
|
61710
61586
|
targetEl = target.value;
|
|
@@ -62180,10 +62056,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
62180
62056
|
});
|
|
62181
62057
|
const tourEmits = {
|
|
62182
62058
|
[UPDATE_MODEL_EVENT]: (value) => isBoolean(value),
|
|
62183
|
-
["update:current"]: (current) => isNumber
|
|
62184
|
-
close: (current) => isNumber
|
|
62059
|
+
["update:current"]: (current) => isNumber(current),
|
|
62060
|
+
close: (current) => isNumber(current),
|
|
62185
62061
|
finish: () => true,
|
|
62186
|
-
change: (current) => isNumber
|
|
62062
|
+
change: (current) => isNumber(current)
|
|
62187
62063
|
};
|
|
62188
62064
|
|
|
62189
62065
|
const __default__$b = vue.defineComponent({
|
|
@@ -62594,8 +62470,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
62594
62470
|
selectScrollTop: Boolean
|
|
62595
62471
|
});
|
|
62596
62472
|
const anchorEmits = {
|
|
62597
|
-
change: (href) => isString$
|
|
62598
|
-
click: (e, href) => e instanceof MouseEvent && (isString$
|
|
62473
|
+
change: (href) => isString$1(href),
|
|
62474
|
+
click: (e, href) => e instanceof MouseEvent && (isString$1(href) || isUndefined(href))
|
|
62599
62475
|
};
|
|
62600
62476
|
|
|
62601
62477
|
const anchorKey = Symbol("anchor");
|
|
@@ -62927,8 +62803,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
62927
62803
|
...useAriaProps(["ariaLabel"])
|
|
62928
62804
|
});
|
|
62929
62805
|
const segmentedEmits = {
|
|
62930
|
-
[UPDATE_MODEL_EVENT]: (val) => isString$
|
|
62931
|
-
[CHANGE_EVENT]: (val) => isString$
|
|
62806
|
+
[UPDATE_MODEL_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val),
|
|
62807
|
+
[CHANGE_EVENT]: (val) => isString$1(val) || isNumber(val) || isBoolean(val)
|
|
62932
62808
|
};
|
|
62933
62809
|
|
|
62934
62810
|
const __default__$7 = vue.defineComponent({
|
|
@@ -63039,7 +62915,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
63039
62915
|
var _a;
|
|
63040
62916
|
updateSelect();
|
|
63041
62917
|
if (props.validateEvent) {
|
|
63042
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(
|
|
62918
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
63043
62919
|
}
|
|
63044
62920
|
}, {
|
|
63045
62921
|
flush: "post"
|
|
@@ -63251,9 +63127,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
63251
63127
|
type: definePropType([String, Array]),
|
|
63252
63128
|
default: "@",
|
|
63253
63129
|
validator: (val) => {
|
|
63254
|
-
if (isString$
|
|
63130
|
+
if (isString$1(val))
|
|
63255
63131
|
return val.length === 1;
|
|
63256
|
-
return val.every((v) => isString$
|
|
63132
|
+
return val.every((v) => isString$1(v) && v.length === 1);
|
|
63257
63133
|
}
|
|
63258
63134
|
},
|
|
63259
63135
|
split: {
|
|
@@ -63267,7 +63143,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
63267
63143
|
validator: (val) => {
|
|
63268
63144
|
if (val === false)
|
|
63269
63145
|
return true;
|
|
63270
|
-
return isFunction$
|
|
63146
|
+
return isFunction$1(val);
|
|
63271
63147
|
}
|
|
63272
63148
|
},
|
|
63273
63149
|
placement: {
|
|
@@ -63297,11 +63173,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
63297
63173
|
}
|
|
63298
63174
|
});
|
|
63299
63175
|
const mentionEmits = {
|
|
63300
|
-
[UPDATE_MODEL_EVENT]: (value) => isString$
|
|
63301
|
-
"whole-remove": (pattern, prefix) => isString$
|
|
63302
|
-
input: (value) => isString$
|
|
63303
|
-
search: (pattern, prefix) => isString$
|
|
63304
|
-
select: (option, prefix) => isObject$1(option) && isString$
|
|
63176
|
+
[UPDATE_MODEL_EVENT]: (value) => isString$1(value),
|
|
63177
|
+
"whole-remove": (pattern, prefix) => isString$1(pattern) && isString$1(prefix),
|
|
63178
|
+
input: (value) => isString$1(value),
|
|
63179
|
+
search: (pattern, prefix) => isString$1(pattern) && isString$1(prefix),
|
|
63180
|
+
select: (option, prefix) => isObject$1(option) && isString$1(prefix),
|
|
63305
63181
|
focus: (evt) => evt instanceof FocusEvent,
|
|
63306
63182
|
blur: (evt) => evt instanceof FocusEvent
|
|
63307
63183
|
};
|
|
@@ -63322,7 +63198,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
63322
63198
|
ariaLabel: String
|
|
63323
63199
|
});
|
|
63324
63200
|
const mentionDropdownEmits = {
|
|
63325
|
-
select: (option) => isString$
|
|
63201
|
+
select: (option) => isString$1(option.value)
|
|
63326
63202
|
};
|
|
63327
63203
|
|
|
63328
63204
|
const __default__$6 = vue.defineComponent({
|
|
@@ -63582,7 +63458,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
63582
63458
|
return;
|
|
63583
63459
|
const inputValue = inputEl.value;
|
|
63584
63460
|
const matchOption = options.value.find((item) => item.value === pattern);
|
|
63585
|
-
const isWhole = isFunction$
|
|
63461
|
+
const isWhole = isFunction$1(props.checkIsWhole) ? props.checkIsWhole(pattern, prefix) : matchOption;
|
|
63586
63462
|
if (isWhole && splitIndex !== -1 && splitIndex + 1 === selectionEnd) {
|
|
63587
63463
|
event.preventDefault();
|
|
63588
63464
|
const newValue = inputValue.slice(0, prefixIndex) + inputValue.slice(splitIndex + 1);
|
|
@@ -63797,10 +63673,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
63797
63673
|
return Number(str.slice(0, -2));
|
|
63798
63674
|
}
|
|
63799
63675
|
function isPct(itemSize) {
|
|
63800
|
-
return isString$
|
|
63676
|
+
return isString$1(itemSize) && itemSize.endsWith("%");
|
|
63801
63677
|
}
|
|
63802
63678
|
function isPx(itemSize) {
|
|
63803
|
-
return isString$
|
|
63679
|
+
return isString$1(itemSize) && itemSize.endsWith("px");
|
|
63804
63680
|
}
|
|
63805
63681
|
function useSize(panels, containerSize) {
|
|
63806
63682
|
const propSizes = vue.computed(() => panels.value.map((i) => i.size));
|
|
@@ -64262,7 +64138,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64262
64138
|
const ns = useNamespace("splitter-panel");
|
|
64263
64139
|
const splitterContext = vue.inject(splitterRootContextKey);
|
|
64264
64140
|
if (!splitterContext)
|
|
64265
|
-
throwError
|
|
64141
|
+
throwError(COMPONENT_NAME, "usage: <el-splitter><el-splitter-panel /></el-splitter/>");
|
|
64266
64142
|
const { panels, layout, lazy, containerSize, pxSizes } = vue.toRefs(splitterContext);
|
|
64267
64143
|
const {
|
|
64268
64144
|
registerPanel,
|
|
@@ -64518,7 +64394,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64518
64394
|
ElSplitterPanel
|
|
64519
64395
|
];
|
|
64520
64396
|
|
|
64521
|
-
const SCOPE
|
|
64397
|
+
const SCOPE = "ElInfiniteScroll";
|
|
64522
64398
|
const CHECK_INTERVAL = 50;
|
|
64523
64399
|
const DEFAULT_DELAY = 200;
|
|
64524
64400
|
const DEFAULT_DISTANCE = 0;
|
|
@@ -64553,18 +64429,18 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64553
64429
|
}, {});
|
|
64554
64430
|
};
|
|
64555
64431
|
const destroyObserver = (el) => {
|
|
64556
|
-
const { observer } = el[SCOPE
|
|
64432
|
+
const { observer } = el[SCOPE];
|
|
64557
64433
|
if (observer) {
|
|
64558
64434
|
observer.disconnect();
|
|
64559
|
-
delete el[SCOPE
|
|
64435
|
+
delete el[SCOPE].observer;
|
|
64560
64436
|
}
|
|
64561
64437
|
};
|
|
64562
64438
|
const handleScroll = (el, cb) => {
|
|
64563
|
-
const { container, containerEl, instance, observer, lastScrollTop } = el[SCOPE
|
|
64439
|
+
const { container, containerEl, instance, observer, lastScrollTop } = el[SCOPE];
|
|
64564
64440
|
const { disabled, distance } = getScrollOptions(el, instance);
|
|
64565
64441
|
const { clientHeight, scrollHeight, scrollTop } = containerEl;
|
|
64566
64442
|
const delta = scrollTop - lastScrollTop;
|
|
64567
|
-
el[SCOPE
|
|
64443
|
+
el[SCOPE].lastScrollTop = scrollTop;
|
|
64568
64444
|
if (observer || disabled || delta < 0)
|
|
64569
64445
|
return;
|
|
64570
64446
|
let shouldTrigger = false;
|
|
@@ -64580,7 +64456,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64580
64456
|
}
|
|
64581
64457
|
};
|
|
64582
64458
|
function checkFull(el, cb) {
|
|
64583
|
-
const { containerEl, instance } = el[SCOPE
|
|
64459
|
+
const { containerEl, instance } = el[SCOPE];
|
|
64584
64460
|
const { disabled } = getScrollOptions(el, instance);
|
|
64585
64461
|
if (disabled || containerEl.clientHeight === 0)
|
|
64586
64462
|
return;
|
|
@@ -64594,14 +64470,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64594
64470
|
async mounted(el, binding) {
|
|
64595
64471
|
const { instance, value: cb } = binding;
|
|
64596
64472
|
useDeprecated({
|
|
64597
|
-
scope: SCOPE
|
|
64473
|
+
scope: SCOPE,
|
|
64598
64474
|
from: "the directive v-infinite-scroll",
|
|
64599
64475
|
replacement: "the el-scrollbar infinite scroll",
|
|
64600
64476
|
version: "3.0.0",
|
|
64601
64477
|
ref: "https://element-plus.org/en-US/component/scrollbar#infinite-scroll"
|
|
64602
64478
|
}, true);
|
|
64603
|
-
if (!isFunction$
|
|
64604
|
-
throwError
|
|
64479
|
+
if (!isFunction$1(cb)) {
|
|
64480
|
+
throwError(SCOPE, "'v-infinite-scroll' binding value must be a function");
|
|
64605
64481
|
}
|
|
64606
64482
|
await vue.nextTick();
|
|
64607
64483
|
const { delay, immediate } = getScrollOptions(el, instance);
|
|
@@ -64610,7 +64486,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64610
64486
|
const onScroll = throttle(handleScroll.bind(null, el, cb), delay);
|
|
64611
64487
|
if (!container)
|
|
64612
64488
|
return;
|
|
64613
|
-
el[SCOPE
|
|
64489
|
+
el[SCOPE] = {
|
|
64614
64490
|
instance,
|
|
64615
64491
|
container,
|
|
64616
64492
|
containerEl,
|
|
@@ -64621,24 +64497,24 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64621
64497
|
};
|
|
64622
64498
|
if (immediate) {
|
|
64623
64499
|
const observer = new MutationObserver(throttle(checkFull.bind(null, el, cb), CHECK_INTERVAL));
|
|
64624
|
-
el[SCOPE
|
|
64500
|
+
el[SCOPE].observer = observer;
|
|
64625
64501
|
observer.observe(el, { childList: true, subtree: true });
|
|
64626
64502
|
checkFull(el, cb);
|
|
64627
64503
|
}
|
|
64628
64504
|
container.addEventListener("scroll", onScroll);
|
|
64629
64505
|
},
|
|
64630
64506
|
unmounted(el) {
|
|
64631
|
-
if (!el[SCOPE
|
|
64507
|
+
if (!el[SCOPE])
|
|
64632
64508
|
return;
|
|
64633
|
-
const { container, onScroll } = el[SCOPE
|
|
64509
|
+
const { container, onScroll } = el[SCOPE];
|
|
64634
64510
|
container == null ? void 0 : container.removeEventListener("scroll", onScroll);
|
|
64635
64511
|
destroyObserver(el);
|
|
64636
64512
|
},
|
|
64637
64513
|
async updated(el) {
|
|
64638
|
-
if (!el[SCOPE
|
|
64514
|
+
if (!el[SCOPE]) {
|
|
64639
64515
|
await vue.nextTick();
|
|
64640
64516
|
} else {
|
|
64641
|
-
const { containerEl, cb, observer } = el[SCOPE
|
|
64517
|
+
const { containerEl, cb, observer } = el[SCOPE];
|
|
64642
64518
|
if (containerEl.clientHeight && observer) {
|
|
64643
64519
|
checkFull(el, cb);
|
|
64644
64520
|
}
|
|
@@ -64805,7 +64681,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64805
64681
|
const resolveOptions = (options) => {
|
|
64806
64682
|
var _a, _b, _c, _d;
|
|
64807
64683
|
let target;
|
|
64808
|
-
if (isString$
|
|
64684
|
+
if (isString$1(options.target)) {
|
|
64809
64685
|
target = (_a = document.querySelector(options.target)) != null ? _a : document.body;
|
|
64810
64686
|
} else {
|
|
64811
64687
|
target = options.target || document.body;
|
|
@@ -64875,7 +64751,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
64875
64751
|
const vm = binding.instance;
|
|
64876
64752
|
const getBindingProp = (key) => isObject$1(binding.value) ? binding.value[key] : void 0;
|
|
64877
64753
|
const resolveExpression = (key) => {
|
|
64878
|
-
const data = isString$
|
|
64754
|
+
const data = isString$1(key) && (vm == null ? void 0 : vm[key]) || key;
|
|
64879
64755
|
return vue.ref(data);
|
|
64880
64756
|
};
|
|
64881
64757
|
const getProp = (name) => resolveExpression(getBindingProp(name) || el.getAttribute(getAttributeName(name)));
|
|
@@ -65251,17 +65127,16 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65251
65127
|
const appendTo = normalized.appendTo;
|
|
65252
65128
|
if (!appendTo) {
|
|
65253
65129
|
normalized.appendTo = document.body;
|
|
65254
|
-
} else if (isString$
|
|
65130
|
+
} else if (isString$1(normalized.appendTo)) {
|
|
65255
65131
|
let appendTo2 = document.querySelector(normalized.appendTo);
|
|
65256
|
-
if (!isElement$
|
|
65257
|
-
debugWarn("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
65132
|
+
if (!isElement$2(appendTo2)) {
|
|
65258
65133
|
appendTo2 = document.body;
|
|
65259
65134
|
}
|
|
65260
65135
|
normalized.appendTo = appendTo2;
|
|
65261
65136
|
}
|
|
65262
65137
|
};
|
|
65263
65138
|
const normalizePlacement = (normalized) => {
|
|
65264
|
-
if (!normalized.placement && isString$
|
|
65139
|
+
if (!normalized.placement && isString$1(messageConfig.placement) && messageConfig.placement) {
|
|
65265
65140
|
normalized.placement = messageConfig.placement;
|
|
65266
65141
|
}
|
|
65267
65142
|
if (!normalized.placement) {
|
|
@@ -65273,7 +65148,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65273
65148
|
}
|
|
65274
65149
|
};
|
|
65275
65150
|
const normalizeOptions = (params) => {
|
|
65276
|
-
const options = !params || isString$
|
|
65151
|
+
const options = !params || isString$1(params) || vue.isVNode(params) || isFunction$1(params) ? { message: params } : params;
|
|
65277
65152
|
const normalized = {
|
|
65278
65153
|
...messageDefaults,
|
|
65279
65154
|
...options
|
|
@@ -65283,10 +65158,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65283
65158
|
if (isBoolean(messageConfig.grouping) && !normalized.grouping) {
|
|
65284
65159
|
normalized.grouping = messageConfig.grouping;
|
|
65285
65160
|
}
|
|
65286
|
-
if (isNumber
|
|
65161
|
+
if (isNumber(messageConfig.duration) && normalized.duration === 3e3) {
|
|
65287
65162
|
normalized.duration = messageConfig.duration;
|
|
65288
65163
|
}
|
|
65289
|
-
if (isNumber
|
|
65164
|
+
if (isNumber(messageConfig.offset) && normalized.offset === 16) {
|
|
65290
65165
|
normalized.offset = messageConfig.offset;
|
|
65291
65166
|
}
|
|
65292
65167
|
if (isBoolean(messageConfig.showClose) && !normalized.showClose) {
|
|
@@ -65322,8 +65197,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65322
65197
|
vue.render(null, container);
|
|
65323
65198
|
}
|
|
65324
65199
|
};
|
|
65325
|
-
const vnode = vue.createVNode(MessageConstructor, props, isFunction$
|
|
65326
|
-
default: isFunction$
|
|
65200
|
+
const vnode = vue.createVNode(MessageConstructor, props, isFunction$1(props.message) || vue.isVNode(props.message) ? {
|
|
65201
|
+
default: isFunction$1(props.message) ? props.message : () => props.message
|
|
65327
65202
|
} : null);
|
|
65328
65203
|
vnode.appContext = context || message._context;
|
|
65329
65204
|
vue.render(vnode, container);
|
|
@@ -65359,7 +65234,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65359
65234
|
return instance2.handler;
|
|
65360
65235
|
}
|
|
65361
65236
|
}
|
|
65362
|
-
if (isNumber
|
|
65237
|
+
if (isNumber(messageConfig.max) && instances.length >= messageConfig.max) {
|
|
65363
65238
|
return { close: () => void 0 };
|
|
65364
65239
|
}
|
|
65365
65240
|
const instance = createMessage(normalized, context);
|
|
@@ -65611,14 +65486,14 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65611
65486
|
return false;
|
|
65612
65487
|
}
|
|
65613
65488
|
const inputValidator = state.inputValidator;
|
|
65614
|
-
if (isFunction$
|
|
65489
|
+
if (isFunction$1(inputValidator)) {
|
|
65615
65490
|
const validateResult = inputValidator(state.inputValue);
|
|
65616
65491
|
if (validateResult === false) {
|
|
65617
65492
|
state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
|
|
65618
65493
|
state.validateError = true;
|
|
65619
65494
|
return false;
|
|
65620
65495
|
}
|
|
65621
|
-
if (isString$
|
|
65496
|
+
if (isString$1(validateResult)) {
|
|
65622
65497
|
state.editorErrorMessage = validateResult;
|
|
65623
65498
|
state.validateError = true;
|
|
65624
65499
|
return false;
|
|
@@ -65875,22 +65750,21 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65875
65750
|
const getAppendToElement = (props) => {
|
|
65876
65751
|
let appendTo = document.body;
|
|
65877
65752
|
if (props.appendTo) {
|
|
65878
|
-
if (isString$
|
|
65753
|
+
if (isString$1(props.appendTo)) {
|
|
65879
65754
|
appendTo = document.querySelector(props.appendTo);
|
|
65880
65755
|
}
|
|
65881
|
-
if (isElement$
|
|
65756
|
+
if (isElement$2(props.appendTo)) {
|
|
65882
65757
|
appendTo = props.appendTo;
|
|
65883
65758
|
}
|
|
65884
|
-
if (!isElement$
|
|
65885
|
-
debugWarn("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
65759
|
+
if (!isElement$2(appendTo)) {
|
|
65886
65760
|
appendTo = document.body;
|
|
65887
65761
|
}
|
|
65888
65762
|
}
|
|
65889
65763
|
return appendTo;
|
|
65890
65764
|
};
|
|
65891
65765
|
const initInstance = (props, container, appContext = null) => {
|
|
65892
|
-
const vnode = vue.createVNode(MessageBoxConstructor, props, isFunction$
|
|
65893
|
-
default: isFunction$
|
|
65766
|
+
const vnode = vue.createVNode(MessageBoxConstructor, props, isFunction$1(props.message) || vue.isVNode(props.message) ? {
|
|
65767
|
+
default: isFunction$1(props.message) ? props.message : () => props.message
|
|
65894
65768
|
} : null);
|
|
65895
65769
|
vnode.appContext = appContext;
|
|
65896
65770
|
vue.render(vnode, container);
|
|
@@ -65946,7 +65820,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
65946
65820
|
if (!isClient)
|
|
65947
65821
|
return Promise.reject();
|
|
65948
65822
|
let callback;
|
|
65949
|
-
if (isString$
|
|
65823
|
+
if (isString$1(options) || vue.isVNode(options)) {
|
|
65950
65824
|
options = {
|
|
65951
65825
|
message: options
|
|
65952
65826
|
};
|
|
@@ -66235,7 +66109,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
66235
66109
|
const notify = function(options = {}, context) {
|
|
66236
66110
|
if (!isClient)
|
|
66237
66111
|
return { close: () => void 0 };
|
|
66238
|
-
if (isString$
|
|
66112
|
+
if (isString$1(options) || vue.isVNode(options)) {
|
|
66239
66113
|
options = { message: options };
|
|
66240
66114
|
}
|
|
66241
66115
|
const position = options.position || "top-right";
|
|
@@ -66256,17 +66130,16 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
66256
66130
|
}
|
|
66257
66131
|
};
|
|
66258
66132
|
let appendTo = document.body;
|
|
66259
|
-
if (isElement$
|
|
66133
|
+
if (isElement$2(options.appendTo)) {
|
|
66260
66134
|
appendTo = options.appendTo;
|
|
66261
|
-
} else if (isString$
|
|
66135
|
+
} else if (isString$1(options.appendTo)) {
|
|
66262
66136
|
appendTo = document.querySelector(options.appendTo);
|
|
66263
66137
|
}
|
|
66264
|
-
if (!isElement$
|
|
66265
|
-
debugWarn("ElNotification", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
66138
|
+
if (!isElement$2(appendTo)) {
|
|
66266
66139
|
appendTo = document.body;
|
|
66267
66140
|
}
|
|
66268
66141
|
const container = document.createElement("div");
|
|
66269
|
-
const vm = vue.createVNode(NotificationConstructor, props, isFunction$
|
|
66142
|
+
const vm = vue.createVNode(NotificationConstructor, props, isFunction$1(props.message) ? props.message : vue.isVNode(props.message) ? () => props.message : null);
|
|
66270
66143
|
vm.appContext = isUndefined(context) ? notify._context : context;
|
|
66271
66144
|
vm.props.onDestroy = () => {
|
|
66272
66145
|
vue.render(null, container);
|
|
@@ -66282,7 +66155,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
66282
66155
|
};
|
|
66283
66156
|
notificationTypes.forEach((type) => {
|
|
66284
66157
|
notify[type] = (options = {}, appContext) => {
|
|
66285
|
-
if (isString$
|
|
66158
|
+
if (isString$1(options) || vue.isVNode(options)) {
|
|
66286
66159
|
options = {
|
|
66287
66160
|
message: options
|
|
66288
66161
|
};
|
|
@@ -66522,7 +66395,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
66522
66395
|
exports.ROOT_TREE_INJECTION_KEY = ROOT_TREE_INJECTION_KEY$1;
|
|
66523
66396
|
exports.RowAlign = RowAlign;
|
|
66524
66397
|
exports.RowJustify = RowJustify;
|
|
66525
|
-
exports.SCOPE = SCOPE$
|
|
66398
|
+
exports.SCOPE = SCOPE$6;
|
|
66526
66399
|
exports.SIZE_INJECTION_KEY = SIZE_INJECTION_KEY;
|
|
66527
66400
|
exports.STEPS_INJECTION_KEY = STEPS_INJECTION_KEY;
|
|
66528
66401
|
exports.SUB_MENU_INJECTION_KEY = SUB_MENU_INJECTION_KEY;
|