@element-plus/nightly 0.0.20220722 → 0.0.20220726
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 +332 -143
- package/dist/index.full.min.js +14 -14
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +942 -753
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +16 -230
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +230 -16
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +1 -0
- package/es/components/carousel/src/carousel.vue.d.ts +1 -0
- package/es/components/carousel/src/carousel2.mjs +3 -2
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/src/index.mjs +0 -1
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +4 -4
- package/es/components/checkbox/src/checkbox-group.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +10 -9
- package/es/components/color-picker/src/draggable.mjs +10 -12
- package/es/components/color-picker/src/draggable.mjs.map +1 -1
- package/es/components/color-picker/src/index.mjs +0 -1
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/dropdown/src/useDropdown.mjs +3 -3
- package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
- package/es/components/dropdown/style/css.d.ts +2 -1
- package/es/components/dropdown/style/css.mjs +2 -1
- package/es/components/dropdown/style/css.mjs.map +1 -1
- package/es/components/dropdown/style/index.d.ts +2 -1
- package/es/components/dropdown/style/index.mjs +2 -1
- package/es/components/dropdown/style/index.mjs.map +1 -1
- package/es/components/image/index.d.ts +4 -1
- package/es/components/image/src/image.d.ts +1 -0
- package/es/components/image/src/image.mjs +2 -1
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +4 -1
- package/es/components/image/src/image2.mjs +1 -0
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +3 -3
- package/es/components/menu/src/menu.mjs +0 -5
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/message-box/src/index.mjs +2 -3
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/content.mjs +87 -207
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +207 -87
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +4 -10
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -2
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +4 -5
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +8 -9
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.mjs +0 -1
- package/es/components/table/src/filter-panel.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.mjs +12 -9
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table.mjs +1 -0
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +2 -1
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/transfer/index.d.ts +20 -20
- package/es/components/transfer/src/transfer-panel.vue.d.ts +4 -4
- package/es/components/transfer/src/transfer.vue.d.ts +20 -20
- package/es/components/tree/src/model/useKeydown.mjs +3 -7
- package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs +1 -1
- package/es/components/virtual-list/src/builders/build-grid.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.mjs +9 -5
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/index.mjs +3 -3
- package/es/make-installer.mjs.map +1 -1
- package/es/utils/dom/event.d.ts +0 -6
- package/es/utils/dom/event.mjs +1 -20
- package/es/utils/dom/event.mjs.map +1 -1
- package/es/utils/dom/index.mjs +1 -1
- package/es/utils/dom/scroll.d.ts +1 -1
- package/es/utils/dom/scroll.mjs +2 -2
- package/es/utils/dom/scroll.mjs.map +1 -1
- package/es/utils/index.mjs +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/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +16 -233
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +233 -16
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/carousel/index.d.ts +1 -0
- package/lib/components/carousel/src/carousel.vue.d.ts +1 -0
- package/lib/components/carousel/src/carousel2.js +3 -2
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/src/index.js +0 -1
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +4 -4
- package/lib/components/checkbox/src/checkbox-group.js +1 -1
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +10 -9
- package/lib/components/color-picker/src/draggable.js +15 -17
- package/lib/components/color-picker/src/draggable.js.map +1 -1
- package/lib/components/color-picker/src/index.js +0 -1
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/dropdown/src/useDropdown.js +3 -3
- package/lib/components/dropdown/src/useDropdown.js.map +1 -1
- package/lib/components/dropdown/style/css.d.ts +2 -1
- package/lib/components/dropdown/style/css.js +2 -1
- package/lib/components/dropdown/style/css.js.map +1 -1
- package/lib/components/dropdown/style/index.d.ts +2 -1
- package/lib/components/dropdown/style/index.js +2 -1
- package/lib/components/dropdown/style/index.js.map +1 -1
- package/lib/components/image/index.d.ts +4 -1
- package/lib/components/image/src/image.d.ts +1 -0
- package/lib/components/image/src/image.js +2 -1
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +4 -1
- package/lib/components/image/src/image2.js +1 -0
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/components/menu/src/menu.js +0 -5
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/message-box/src/index.js +2 -3
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/content.js +88 -206
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +206 -88
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +2 -8
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -1
- package/lib/components/select/src/select.js +1 -2
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.js +4 -5
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/slider/src/button2.js +7 -8
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/table/src/filter-panel.js +0 -1
- package/lib/components/table/src/filter-panel.js.map +1 -1
- package/lib/components/table/src/table/style-helper.js +12 -9
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table.js +1 -0
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +2 -1
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/transfer/index.d.ts +20 -20
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +4 -4
- package/lib/components/transfer/src/transfer.vue.d.ts +20 -20
- package/lib/components/tree/src/model/useKeydown.js +2 -6
- package/lib/components/tree/src/model/useKeydown.js.map +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.js +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.js +9 -5
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/index.js +3 -3
- package/lib/make-installer.js.map +1 -1
- package/lib/utils/dom/event.d.ts +0 -6
- package/lib/utils/dom/event.js +0 -22
- package/lib/utils/dom/event.js.map +1 -1
- package/lib/utils/dom/index.js +0 -3
- package/lib/utils/dom/index.js.map +1 -1
- package/lib/utils/dom/scroll.d.ts +1 -1
- package/lib/utils/dom/scroll.js +2 -2
- package/lib/utils/dom/scroll.js.map +1 -1
- package/lib/utils/index.js +0 -3
- package/lib/utils/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/theme-chalk/el-date-picker.css +1 -1
- package/theme-chalk/el-table-v2.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/date-picker/picker.scss +4 -5
- package/theme-chalk/src/table-v2.scss +3 -0
- package/web-types.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220726 */
|
|
2
2
|
|
|
3
|
-
import { getCurrentScope, onScopeDispose, readonly, shallowRef, watchEffect, ref, watch, unref, getCurrentInstance, onMounted, nextTick, computed, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, inject, provide, onBeforeUnmount, toRef, onUnmounted, isRef, h as h$1, Teleport, onBeforeMount, defineComponent, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, useAttrs as useAttrs$1, onUpdated, withModifiers, reactive, cloneVNode, Text, toRefs, resolveComponent, onDeactivated, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, vModelCheckbox, vModelRadio, onBeforeUpdate, resolveDirective, vModelText, toHandlers, markRaw, effectScope, toRaw, triggerRef, TransitionGroup, createApp, shallowReactive, render } from 'vue';
|
|
3
|
+
import { getCurrentScope, onScopeDispose, readonly, shallowRef, watchEffect, ref, watch, unref, getCurrentInstance, onMounted, nextTick, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, inject, provide, onBeforeUnmount, toRef, onUnmounted, isRef, h as h$1, Teleport, onBeforeMount, defineComponent, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, useAttrs as useAttrs$1, onUpdated, withModifiers, reactive, cloneVNode, Text, toRefs, resolveComponent, onDeactivated, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, vModelCheckbox, vModelRadio, onBeforeUpdate, resolveDirective, vModelText, toHandlers, markRaw, effectScope, toRaw as toRaw$1, triggerRef, TransitionGroup, createApp, shallowReactive, render } from 'vue';
|
|
4
4
|
|
|
5
5
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
6
6
|
|
|
@@ -6874,16 +6874,6 @@ const focusNode = (el) => {
|
|
|
6874
6874
|
!isLeaf(el) && el.click();
|
|
6875
6875
|
};
|
|
6876
6876
|
|
|
6877
|
-
const on$1 = (element, event, handler, useCapture = false) => {
|
|
6878
|
-
if (element && event && handler) {
|
|
6879
|
-
element == null ? void 0 : element.addEventListener(event, handler, useCapture);
|
|
6880
|
-
}
|
|
6881
|
-
};
|
|
6882
|
-
const off = (element, event, handler, useCapture = false) => {
|
|
6883
|
-
if (element && event && handler) {
|
|
6884
|
-
element == null ? void 0 : element.removeEventListener(event, handler, useCapture);
|
|
6885
|
-
}
|
|
6886
|
-
};
|
|
6887
6877
|
const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
|
|
6888
6878
|
const handleEvent = (event) => {
|
|
6889
6879
|
const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
|
|
@@ -7324,7 +7314,7 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
7324
7314
|
});
|
|
7325
7315
|
return proxy;
|
|
7326
7316
|
} else {
|
|
7327
|
-
return computed({
|
|
7317
|
+
return computed$1({
|
|
7328
7318
|
get() {
|
|
7329
7319
|
return getValue();
|
|
7330
7320
|
},
|
|
@@ -7551,14 +7541,14 @@ const getScrollContainer = (el, isVertical) => {
|
|
|
7551
7541
|
return parent;
|
|
7552
7542
|
};
|
|
7553
7543
|
let scrollBarWidth;
|
|
7554
|
-
const getScrollBarWidth = () => {
|
|
7544
|
+
const getScrollBarWidth = (namespace) => {
|
|
7555
7545
|
var _a;
|
|
7556
7546
|
if (!isClient)
|
|
7557
7547
|
return 0;
|
|
7558
7548
|
if (scrollBarWidth !== void 0)
|
|
7559
7549
|
return scrollBarWidth;
|
|
7560
7550
|
const outer = document.createElement("div");
|
|
7561
|
-
outer.className =
|
|
7551
|
+
outer.className = `${namespace}-scrollbar__wrap`;
|
|
7562
7552
|
outer.style.visibility = "hidden";
|
|
7563
7553
|
outer.style.width = "100px";
|
|
7564
7554
|
outer.style.position = "absolute";
|
|
@@ -8649,14 +8639,14 @@ const DEFAULT_EXCLUDE_KEYS = ["class", "style"];
|
|
|
8649
8639
|
const LISTENER_PREFIX = /^on[A-Z]/;
|
|
8650
8640
|
const useAttrs = (params = {}) => {
|
|
8651
8641
|
const { excludeListeners = false, excludeKeys } = params;
|
|
8652
|
-
const allExcludeKeys = computed(() => {
|
|
8642
|
+
const allExcludeKeys = computed$1(() => {
|
|
8653
8643
|
return ((excludeKeys == null ? void 0 : excludeKeys.value) || []).concat(DEFAULT_EXCLUDE_KEYS);
|
|
8654
8644
|
});
|
|
8655
8645
|
const instance = getCurrentInstance();
|
|
8656
8646
|
if (!instance) {
|
|
8657
|
-
return computed(() => ({}));
|
|
8647
|
+
return computed$1(() => ({}));
|
|
8658
8648
|
}
|
|
8659
|
-
return computed(() => {
|
|
8649
|
+
return computed$1(() => {
|
|
8660
8650
|
var _a;
|
|
8661
8651
|
return fromPairs(Object.entries((_a = instance.proxy) == null ? void 0 : _a.$attrs).filter(([key]) => !allExcludeKeys.value.includes(key) && !(excludeListeners && LISTENER_PREFIX.test(key))));
|
|
8662
8652
|
});
|
|
@@ -8702,7 +8692,7 @@ const ROOT_PICKER_INJECTION_KEY = Symbol();
|
|
|
8702
8692
|
|
|
8703
8693
|
const useProp = (name) => {
|
|
8704
8694
|
const vm = getCurrentInstance();
|
|
8705
|
-
return computed(() => {
|
|
8695
|
+
return computed$1(() => {
|
|
8706
8696
|
var _a, _b;
|
|
8707
8697
|
return (_b = ((_a = vm.proxy) == null ? void 0 : _a.$props)[name]) != null ? _b : void 0;
|
|
8708
8698
|
});
|
|
@@ -8712,7 +8702,7 @@ const globalConfig = ref();
|
|
|
8712
8702
|
function useGlobalConfig(key, defaultValue = void 0) {
|
|
8713
8703
|
const config = getCurrentInstance() ? inject(configProviderContextKey, globalConfig) : globalConfig;
|
|
8714
8704
|
if (key) {
|
|
8715
|
-
return computed(() => {
|
|
8705
|
+
return computed$1(() => {
|
|
8716
8706
|
var _a, _b;
|
|
8717
8707
|
return (_b = (_a = config.value) == null ? void 0 : _a[key]) != null ? _b : defaultValue;
|
|
8718
8708
|
});
|
|
@@ -8728,7 +8718,7 @@ const provideGlobalConfig = (config, app, global = false) => {
|
|
|
8728
8718
|
if (!provideFn) {
|
|
8729
8719
|
return;
|
|
8730
8720
|
}
|
|
8731
|
-
const context = computed(() => {
|
|
8721
|
+
const context = computed$1(() => {
|
|
8732
8722
|
const cfg = unref(config);
|
|
8733
8723
|
if (!(oldConfig == null ? void 0 : oldConfig.value))
|
|
8734
8724
|
return cfg;
|
|
@@ -8761,12 +8751,12 @@ const useSize = (fallback, ignore = {}) => {
|
|
|
8761
8751
|
const globalConfig = ignore.global ? emptyRef : useGlobalConfig("size");
|
|
8762
8752
|
const form = ignore.form ? { size: void 0 } : inject(formContextKey, void 0);
|
|
8763
8753
|
const formItem = ignore.formItem ? { size: void 0 } : inject(formItemContextKey, void 0);
|
|
8764
|
-
return computed(() => size.value || unref(fallback) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || globalConfig.value || "");
|
|
8754
|
+
return computed$1(() => size.value || unref(fallback) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || globalConfig.value || "");
|
|
8765
8755
|
};
|
|
8766
8756
|
const useDisabled$1 = (fallback) => {
|
|
8767
8757
|
const disabled = useProp("disabled");
|
|
8768
8758
|
const form = inject(formContextKey, void 0);
|
|
8769
|
-
return computed(() => disabled.value || unref(fallback) || (form == null ? void 0 : form.disabled) || false);
|
|
8759
|
+
return computed$1(() => disabled.value || unref(fallback) || (form == null ? void 0 : form.disabled) || false);
|
|
8770
8760
|
};
|
|
8771
8761
|
|
|
8772
8762
|
const useDeprecated = ({ from, replacement, scope, version, ref, type = "API" }, condition) => {
|
|
@@ -8852,7 +8842,7 @@ const defaultIdInjection = {
|
|
|
8852
8842
|
const ID_INJECTION_KEY = Symbol("elIdInjection");
|
|
8853
8843
|
const useId = (deterministicId) => {
|
|
8854
8844
|
const idInjection = inject(ID_INJECTION_KEY, defaultIdInjection);
|
|
8855
|
-
const idRef = computed(() => unref(deterministicId) || `el-id-${idInjection.prefix}-${idInjection.current++}`);
|
|
8845
|
+
const idRef = computed$1(() => unref(deterministicId) || `el-id-${idInjection.prefix}-${idInjection.current++}`);
|
|
8856
8846
|
return idRef;
|
|
8857
8847
|
};
|
|
8858
8848
|
|
|
@@ -8877,7 +8867,7 @@ const useFormItemInputId = (props, {
|
|
|
8877
8867
|
}
|
|
8878
8868
|
const inputId = ref();
|
|
8879
8869
|
let idUnwatch = void 0;
|
|
8880
|
-
const isLabeledByFormItem = computed(() => {
|
|
8870
|
+
const isLabeledByFormItem = computed$1(() => {
|
|
8881
8871
|
var _a;
|
|
8882
8872
|
return !!(!props.label && formItemContext && formItemContext.inputIds && ((_a = formItemContext.inputIds) == null ? void 0 : _a.length) <= 1);
|
|
8883
8873
|
});
|
|
@@ -9070,7 +9060,7 @@ const translate = (path, option, locale) => get(locale, path, path).replace(/\{(
|
|
|
9070
9060
|
return `${(_a = option == null ? void 0 : option[key]) != null ? _a : `{${key}}`}`;
|
|
9071
9061
|
});
|
|
9072
9062
|
const buildLocaleContext = (locale) => {
|
|
9073
|
-
const lang = computed(() => unref(locale).name);
|
|
9063
|
+
const lang = computed$1(() => unref(locale).name);
|
|
9074
9064
|
const localeRef = isRef(locale) ? locale : ref(locale);
|
|
9075
9065
|
return {
|
|
9076
9066
|
lang,
|
|
@@ -9080,14 +9070,288 @@ const buildLocaleContext = (locale) => {
|
|
|
9080
9070
|
};
|
|
9081
9071
|
const useLocale = () => {
|
|
9082
9072
|
const locale = useGlobalConfig("locale");
|
|
9083
|
-
return buildLocaleContext(computed(() => locale.value || English));
|
|
9073
|
+
return buildLocaleContext(computed$1(() => locale.value || English));
|
|
9074
|
+
};
|
|
9075
|
+
|
|
9076
|
+
let activeEffectScope;
|
|
9077
|
+
function recordEffectScope(effect2, scope = activeEffectScope) {
|
|
9078
|
+
if (scope && scope.active) {
|
|
9079
|
+
scope.effects.push(effect2);
|
|
9080
|
+
}
|
|
9081
|
+
}
|
|
9082
|
+
const createDep = (effects) => {
|
|
9083
|
+
const dep = new Set(effects);
|
|
9084
|
+
dep.w = 0;
|
|
9085
|
+
dep.n = 0;
|
|
9086
|
+
return dep;
|
|
9087
|
+
};
|
|
9088
|
+
const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
|
|
9089
|
+
const newTracked = (dep) => (dep.n & trackOpBit) > 0;
|
|
9090
|
+
const initDepMarkers = ({ deps }) => {
|
|
9091
|
+
if (deps.length) {
|
|
9092
|
+
for (let i = 0; i < deps.length; i++) {
|
|
9093
|
+
deps[i].w |= trackOpBit;
|
|
9094
|
+
}
|
|
9095
|
+
}
|
|
9096
|
+
};
|
|
9097
|
+
const finalizeDepMarkers = (effect2) => {
|
|
9098
|
+
const { deps } = effect2;
|
|
9099
|
+
if (deps.length) {
|
|
9100
|
+
let ptr = 0;
|
|
9101
|
+
for (let i = 0; i < deps.length; i++) {
|
|
9102
|
+
const dep = deps[i];
|
|
9103
|
+
if (wasTracked(dep) && !newTracked(dep)) {
|
|
9104
|
+
dep.delete(effect2);
|
|
9105
|
+
} else {
|
|
9106
|
+
deps[ptr++] = dep;
|
|
9107
|
+
}
|
|
9108
|
+
dep.w &= ~trackOpBit;
|
|
9109
|
+
dep.n &= ~trackOpBit;
|
|
9110
|
+
}
|
|
9111
|
+
deps.length = ptr;
|
|
9112
|
+
}
|
|
9113
|
+
};
|
|
9114
|
+
let effectTrackDepth = 0;
|
|
9115
|
+
let trackOpBit = 1;
|
|
9116
|
+
const maxMarkerBits = 30;
|
|
9117
|
+
let activeEffect;
|
|
9118
|
+
class ReactiveEffect {
|
|
9119
|
+
constructor(fn, scheduler2 = null, scope) {
|
|
9120
|
+
this.fn = fn;
|
|
9121
|
+
this.scheduler = scheduler2;
|
|
9122
|
+
this.active = true;
|
|
9123
|
+
this.deps = [];
|
|
9124
|
+
this.parent = void 0;
|
|
9125
|
+
recordEffectScope(this, scope);
|
|
9126
|
+
}
|
|
9127
|
+
run() {
|
|
9128
|
+
if (!this.active) {
|
|
9129
|
+
return this.fn();
|
|
9130
|
+
}
|
|
9131
|
+
let parent = activeEffect;
|
|
9132
|
+
let lastShouldTrack = shouldTrack;
|
|
9133
|
+
while (parent) {
|
|
9134
|
+
if (parent === this) {
|
|
9135
|
+
return;
|
|
9136
|
+
}
|
|
9137
|
+
parent = parent.parent;
|
|
9138
|
+
}
|
|
9139
|
+
try {
|
|
9140
|
+
this.parent = activeEffect;
|
|
9141
|
+
activeEffect = this;
|
|
9142
|
+
shouldTrack = true;
|
|
9143
|
+
trackOpBit = 1 << ++effectTrackDepth;
|
|
9144
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
9145
|
+
initDepMarkers(this);
|
|
9146
|
+
} else {
|
|
9147
|
+
cleanupEffect(this);
|
|
9148
|
+
}
|
|
9149
|
+
return this.fn();
|
|
9150
|
+
} finally {
|
|
9151
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
9152
|
+
finalizeDepMarkers(this);
|
|
9153
|
+
}
|
|
9154
|
+
trackOpBit = 1 << --effectTrackDepth;
|
|
9155
|
+
activeEffect = this.parent;
|
|
9156
|
+
shouldTrack = lastShouldTrack;
|
|
9157
|
+
this.parent = void 0;
|
|
9158
|
+
if (this.deferStop) {
|
|
9159
|
+
this.stop();
|
|
9160
|
+
}
|
|
9161
|
+
}
|
|
9162
|
+
}
|
|
9163
|
+
stop() {
|
|
9164
|
+
if (activeEffect === this) {
|
|
9165
|
+
this.deferStop = true;
|
|
9166
|
+
} else if (this.active) {
|
|
9167
|
+
cleanupEffect(this);
|
|
9168
|
+
if (this.onStop) {
|
|
9169
|
+
this.onStop();
|
|
9170
|
+
}
|
|
9171
|
+
this.active = false;
|
|
9172
|
+
}
|
|
9173
|
+
}
|
|
9174
|
+
}
|
|
9175
|
+
function cleanupEffect(effect2) {
|
|
9176
|
+
const { deps } = effect2;
|
|
9177
|
+
if (deps.length) {
|
|
9178
|
+
for (let i = 0; i < deps.length; i++) {
|
|
9179
|
+
deps[i].delete(effect2);
|
|
9180
|
+
}
|
|
9181
|
+
deps.length = 0;
|
|
9182
|
+
}
|
|
9183
|
+
}
|
|
9184
|
+
let shouldTrack = true;
|
|
9185
|
+
function trackEffects(dep, debuggerEventExtraInfo) {
|
|
9186
|
+
let shouldTrack2 = false;
|
|
9187
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
9188
|
+
if (!newTracked(dep)) {
|
|
9189
|
+
dep.n |= trackOpBit;
|
|
9190
|
+
shouldTrack2 = !wasTracked(dep);
|
|
9191
|
+
}
|
|
9192
|
+
} else {
|
|
9193
|
+
shouldTrack2 = !dep.has(activeEffect);
|
|
9194
|
+
}
|
|
9195
|
+
if (shouldTrack2) {
|
|
9196
|
+
dep.add(activeEffect);
|
|
9197
|
+
activeEffect.deps.push(dep);
|
|
9198
|
+
}
|
|
9199
|
+
}
|
|
9200
|
+
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
9201
|
+
const effects = isArray(dep) ? dep : [...dep];
|
|
9202
|
+
for (const effect2 of effects) {
|
|
9203
|
+
if (effect2.computed) {
|
|
9204
|
+
triggerEffect(effect2);
|
|
9205
|
+
}
|
|
9206
|
+
}
|
|
9207
|
+
for (const effect2 of effects) {
|
|
9208
|
+
if (!effect2.computed) {
|
|
9209
|
+
triggerEffect(effect2);
|
|
9210
|
+
}
|
|
9211
|
+
}
|
|
9212
|
+
}
|
|
9213
|
+
function triggerEffect(effect2, debuggerEventExtraInfo) {
|
|
9214
|
+
if (effect2 !== activeEffect || effect2.allowRecurse) {
|
|
9215
|
+
if (effect2.scheduler) {
|
|
9216
|
+
effect2.scheduler();
|
|
9217
|
+
} else {
|
|
9218
|
+
effect2.run();
|
|
9219
|
+
}
|
|
9220
|
+
}
|
|
9221
|
+
}
|
|
9222
|
+
function toRaw(observed) {
|
|
9223
|
+
const raw = observed && observed["__v_raw"];
|
|
9224
|
+
return raw ? toRaw(raw) : observed;
|
|
9225
|
+
}
|
|
9226
|
+
function trackRefValue(ref2) {
|
|
9227
|
+
if (shouldTrack && activeEffect) {
|
|
9228
|
+
ref2 = toRaw(ref2);
|
|
9229
|
+
{
|
|
9230
|
+
trackEffects(ref2.dep || (ref2.dep = createDep()));
|
|
9231
|
+
}
|
|
9232
|
+
}
|
|
9233
|
+
}
|
|
9234
|
+
function triggerRefValue(ref2, newVal) {
|
|
9235
|
+
ref2 = toRaw(ref2);
|
|
9236
|
+
if (ref2.dep) {
|
|
9237
|
+
{
|
|
9238
|
+
triggerEffects(ref2.dep);
|
|
9239
|
+
}
|
|
9240
|
+
}
|
|
9241
|
+
}
|
|
9242
|
+
class ComputedRefImpl {
|
|
9243
|
+
constructor(getter, _setter, isReadonly2, isSSR) {
|
|
9244
|
+
this._setter = _setter;
|
|
9245
|
+
this.dep = void 0;
|
|
9246
|
+
this.__v_isRef = true;
|
|
9247
|
+
this._dirty = true;
|
|
9248
|
+
this.effect = new ReactiveEffect(getter, () => {
|
|
9249
|
+
if (!this._dirty) {
|
|
9250
|
+
this._dirty = true;
|
|
9251
|
+
triggerRefValue(this);
|
|
9252
|
+
}
|
|
9253
|
+
});
|
|
9254
|
+
this.effect.computed = this;
|
|
9255
|
+
this.effect.active = this._cacheable = !isSSR;
|
|
9256
|
+
this["__v_isReadonly"] = isReadonly2;
|
|
9257
|
+
}
|
|
9258
|
+
get value() {
|
|
9259
|
+
const self = toRaw(this);
|
|
9260
|
+
trackRefValue(self);
|
|
9261
|
+
if (self._dirty || !self._cacheable) {
|
|
9262
|
+
self._dirty = false;
|
|
9263
|
+
self._value = self.effect.run();
|
|
9264
|
+
}
|
|
9265
|
+
return self._value;
|
|
9266
|
+
}
|
|
9267
|
+
set value(newValue) {
|
|
9268
|
+
this._setter(newValue);
|
|
9269
|
+
}
|
|
9270
|
+
}
|
|
9271
|
+
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
9272
|
+
let getter;
|
|
9273
|
+
let setter;
|
|
9274
|
+
const onlyGetter = isFunction(getterOrOptions);
|
|
9275
|
+
if (onlyGetter) {
|
|
9276
|
+
getter = getterOrOptions;
|
|
9277
|
+
setter = NOOP;
|
|
9278
|
+
} else {
|
|
9279
|
+
getter = getterOrOptions.get;
|
|
9280
|
+
setter = getterOrOptions.set;
|
|
9281
|
+
}
|
|
9282
|
+
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
|
|
9283
|
+
return cRef;
|
|
9284
|
+
}
|
|
9285
|
+
|
|
9286
|
+
const defaultNamespace = "el";
|
|
9287
|
+
const statePrefix = "is-";
|
|
9288
|
+
const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
9289
|
+
let cls = `${namespace}-${block}`;
|
|
9290
|
+
if (blockSuffix) {
|
|
9291
|
+
cls += `-${blockSuffix}`;
|
|
9292
|
+
}
|
|
9293
|
+
if (element) {
|
|
9294
|
+
cls += `__${element}`;
|
|
9295
|
+
}
|
|
9296
|
+
if (modifier) {
|
|
9297
|
+
cls += `--${modifier}`;
|
|
9298
|
+
}
|
|
9299
|
+
return cls;
|
|
9300
|
+
};
|
|
9301
|
+
const useNamespace = (block) => {
|
|
9302
|
+
const globalConfig = useGlobalConfig("namespace");
|
|
9303
|
+
const namespace = computed$1(() => globalConfig.value || defaultNamespace);
|
|
9304
|
+
const b = (blockSuffix = "") => _bem(unref(namespace), block, blockSuffix, "", "");
|
|
9305
|
+
const e = (element) => element ? _bem(unref(namespace), block, "", element, "") : "";
|
|
9306
|
+
const m = (modifier) => modifier ? _bem(unref(namespace), block, "", "", modifier) : "";
|
|
9307
|
+
const be = (blockSuffix, element) => blockSuffix && element ? _bem(unref(namespace), block, blockSuffix, element, "") : "";
|
|
9308
|
+
const em = (element, modifier) => element && modifier ? _bem(unref(namespace), block, "", element, modifier) : "";
|
|
9309
|
+
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(unref(namespace), block, blockSuffix, "", modifier) : "";
|
|
9310
|
+
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(unref(namespace), block, blockSuffix, element, modifier) : "";
|
|
9311
|
+
const is = (name, ...args) => {
|
|
9312
|
+
const state = args.length >= 1 ? args[0] : true;
|
|
9313
|
+
return name && state ? `${statePrefix}${name}` : "";
|
|
9314
|
+
};
|
|
9315
|
+
const cssVar = (object) => {
|
|
9316
|
+
const styles = {};
|
|
9317
|
+
for (const key in object) {
|
|
9318
|
+
styles[`--${namespace.value}-${key}`] = object[key];
|
|
9319
|
+
}
|
|
9320
|
+
return styles;
|
|
9321
|
+
};
|
|
9322
|
+
const cssVarBlock = (object) => {
|
|
9323
|
+
const styles = {};
|
|
9324
|
+
for (const key in object) {
|
|
9325
|
+
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
9326
|
+
}
|
|
9327
|
+
return styles;
|
|
9328
|
+
};
|
|
9329
|
+
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
|
9330
|
+
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
|
9331
|
+
return {
|
|
9332
|
+
namespace,
|
|
9333
|
+
b,
|
|
9334
|
+
e,
|
|
9335
|
+
m,
|
|
9336
|
+
be,
|
|
9337
|
+
em,
|
|
9338
|
+
bm,
|
|
9339
|
+
bem,
|
|
9340
|
+
is,
|
|
9341
|
+
cssVar,
|
|
9342
|
+
cssVarName,
|
|
9343
|
+
cssVarBlock,
|
|
9344
|
+
cssVarBlockName
|
|
9345
|
+
};
|
|
9084
9346
|
};
|
|
9085
9347
|
|
|
9086
9348
|
const useLockscreen = (trigger) => {
|
|
9087
9349
|
if (!isRef(trigger)) {
|
|
9088
9350
|
throwError("[useLockscreen]", "You need to pass a ref param to this function");
|
|
9089
9351
|
}
|
|
9090
|
-
|
|
9352
|
+
const ns = useNamespace("popup");
|
|
9353
|
+
const hiddenCls = computed(() => ns.bm("parent", "hidden"));
|
|
9354
|
+
if (!isClient || hasClass(document.body, hiddenCls.value)) {
|
|
9091
9355
|
return;
|
|
9092
9356
|
}
|
|
9093
9357
|
let scrollBarWidth = 0;
|
|
@@ -9095,7 +9359,7 @@ const useLockscreen = (trigger) => {
|
|
|
9095
9359
|
let bodyPaddingRight = "0";
|
|
9096
9360
|
let computedBodyPaddingRight = 0;
|
|
9097
9361
|
const cleanup = () => {
|
|
9098
|
-
removeClass(document.body,
|
|
9362
|
+
removeClass(document.body, hiddenCls.value);
|
|
9099
9363
|
if (withoutHiddenClass) {
|
|
9100
9364
|
document.body.style.paddingRight = bodyPaddingRight;
|
|
9101
9365
|
}
|
|
@@ -9105,18 +9369,18 @@ const useLockscreen = (trigger) => {
|
|
|
9105
9369
|
cleanup();
|
|
9106
9370
|
return;
|
|
9107
9371
|
}
|
|
9108
|
-
withoutHiddenClass = !hasClass(document.body,
|
|
9372
|
+
withoutHiddenClass = !hasClass(document.body, hiddenCls.value);
|
|
9109
9373
|
if (withoutHiddenClass) {
|
|
9110
9374
|
bodyPaddingRight = document.body.style.paddingRight;
|
|
9111
9375
|
computedBodyPaddingRight = Number.parseInt(getStyle(document.body, "paddingRight"), 10);
|
|
9112
9376
|
}
|
|
9113
|
-
scrollBarWidth = getScrollBarWidth();
|
|
9377
|
+
scrollBarWidth = getScrollBarWidth(ns.namespace.value);
|
|
9114
9378
|
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
9115
9379
|
const bodyOverflowY = getStyle(document.body, "overflowY");
|
|
9116
9380
|
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
9117
9381
|
document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
|
|
9118
9382
|
}
|
|
9119
|
-
addClass(document.body,
|
|
9383
|
+
addClass(document.body, hiddenCls.value);
|
|
9120
9384
|
});
|
|
9121
9385
|
onScopeDispose(() => cleanup());
|
|
9122
9386
|
};
|
|
@@ -9169,8 +9433,8 @@ const createModelToggleComposable = (name) => {
|
|
|
9169
9433
|
const instance = getCurrentInstance();
|
|
9170
9434
|
const { emit } = instance;
|
|
9171
9435
|
const props = instance.props;
|
|
9172
|
-
const hasUpdateHandler = computed(() => isFunction(props[updateEventKeyRaw]));
|
|
9173
|
-
const isModelBindingAbsent = computed(() => props[name] === null);
|
|
9436
|
+
const hasUpdateHandler = computed$1(() => isFunction(props[updateEventKeyRaw]));
|
|
9437
|
+
const isModelBindingAbsent = computed$1(() => props[name] === null);
|
|
9174
9438
|
const doShow = (event) => {
|
|
9175
9439
|
if (indicator.value === true) {
|
|
9176
9440
|
return;
|
|
@@ -9592,72 +9856,10 @@ const useForwardRefDirective = (setForwardRef) => {
|
|
|
9592
9856
|
};
|
|
9593
9857
|
};
|
|
9594
9858
|
|
|
9595
|
-
const defaultNamespace = "el";
|
|
9596
|
-
const statePrefix = "is-";
|
|
9597
|
-
const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
9598
|
-
let cls = `${namespace}-${block}`;
|
|
9599
|
-
if (blockSuffix) {
|
|
9600
|
-
cls += `-${blockSuffix}`;
|
|
9601
|
-
}
|
|
9602
|
-
if (element) {
|
|
9603
|
-
cls += `__${element}`;
|
|
9604
|
-
}
|
|
9605
|
-
if (modifier) {
|
|
9606
|
-
cls += `--${modifier}`;
|
|
9607
|
-
}
|
|
9608
|
-
return cls;
|
|
9609
|
-
};
|
|
9610
|
-
const useNamespace = (block) => {
|
|
9611
|
-
const globalConfig = useGlobalConfig("namespace");
|
|
9612
|
-
const namespace = computed(() => globalConfig.value || defaultNamespace);
|
|
9613
|
-
const b = (blockSuffix = "") => _bem(unref(namespace), block, blockSuffix, "", "");
|
|
9614
|
-
const e = (element) => element ? _bem(unref(namespace), block, "", element, "") : "";
|
|
9615
|
-
const m = (modifier) => modifier ? _bem(unref(namespace), block, "", "", modifier) : "";
|
|
9616
|
-
const be = (blockSuffix, element) => blockSuffix && element ? _bem(unref(namespace), block, blockSuffix, element, "") : "";
|
|
9617
|
-
const em = (element, modifier) => element && modifier ? _bem(unref(namespace), block, "", element, modifier) : "";
|
|
9618
|
-
const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(unref(namespace), block, blockSuffix, "", modifier) : "";
|
|
9619
|
-
const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(unref(namespace), block, blockSuffix, element, modifier) : "";
|
|
9620
|
-
const is = (name, ...args) => {
|
|
9621
|
-
const state = args.length >= 1 ? args[0] : true;
|
|
9622
|
-
return name && state ? `${statePrefix}${name}` : "";
|
|
9623
|
-
};
|
|
9624
|
-
const cssVar = (object) => {
|
|
9625
|
-
const styles = {};
|
|
9626
|
-
for (const key in object) {
|
|
9627
|
-
styles[`--${namespace.value}-${key}`] = object[key];
|
|
9628
|
-
}
|
|
9629
|
-
return styles;
|
|
9630
|
-
};
|
|
9631
|
-
const cssVarBlock = (object) => {
|
|
9632
|
-
const styles = {};
|
|
9633
|
-
for (const key in object) {
|
|
9634
|
-
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
9635
|
-
}
|
|
9636
|
-
return styles;
|
|
9637
|
-
};
|
|
9638
|
-
const cssVarName = (name) => `--${namespace.value}-${name}`;
|
|
9639
|
-
const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
|
|
9640
|
-
return {
|
|
9641
|
-
namespace,
|
|
9642
|
-
b,
|
|
9643
|
-
e,
|
|
9644
|
-
m,
|
|
9645
|
-
be,
|
|
9646
|
-
em,
|
|
9647
|
-
bm,
|
|
9648
|
-
bem,
|
|
9649
|
-
is,
|
|
9650
|
-
cssVar,
|
|
9651
|
-
cssVarName,
|
|
9652
|
-
cssVarBlock,
|
|
9653
|
-
cssVarBlockName
|
|
9654
|
-
};
|
|
9655
|
-
};
|
|
9656
|
-
|
|
9657
9859
|
const zIndex = ref(0);
|
|
9658
9860
|
const useZIndex = () => {
|
|
9659
9861
|
const initialZIndex = useGlobalConfig("zIndex", 2e3);
|
|
9660
|
-
const currentZIndex = computed(() => initialZIndex.value + zIndex.value);
|
|
9862
|
+
const currentZIndex = computed$1(() => initialZIndex.value + zIndex.value);
|
|
9661
9863
|
const nextZIndex = () => {
|
|
9662
9864
|
zIndex.value++;
|
|
9663
9865
|
return currentZIndex.value;
|
|
@@ -10692,7 +10894,7 @@ function useCursor(input) {
|
|
|
10692
10894
|
return [recordCursor, setCursor];
|
|
10693
10895
|
}
|
|
10694
10896
|
|
|
10695
|
-
const version$1 = "0.0.
|
|
10897
|
+
const version$1 = "0.0.20220726";
|
|
10696
10898
|
|
|
10697
10899
|
const makeInstaller = (components = []) => {
|
|
10698
10900
|
const install = (app, options) => {
|
|
@@ -10767,13 +10969,13 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
|
|
|
10767
10969
|
const fixed = ref(false);
|
|
10768
10970
|
const scrollTop = ref(0);
|
|
10769
10971
|
const transform = ref(0);
|
|
10770
|
-
const rootStyle = computed(() => {
|
|
10972
|
+
const rootStyle = computed$1(() => {
|
|
10771
10973
|
return {
|
|
10772
10974
|
height: fixed.value ? `${rootHeight.value}px` : "",
|
|
10773
10975
|
width: fixed.value ? `${rootWidth.value}px` : ""
|
|
10774
10976
|
};
|
|
10775
10977
|
});
|
|
10776
|
-
const affixStyle = computed(() => {
|
|
10978
|
+
const affixStyle = computed$1(() => {
|
|
10777
10979
|
if (!fixed.value)
|
|
10778
10980
|
return {};
|
|
10779
10981
|
const offset = props.offset ? `${props.offset}px` : 0;
|
|
@@ -10870,7 +11072,7 @@ const _sfc_main$2e = /* @__PURE__ */ defineComponent({
|
|
|
10870
11072
|
setup(__props) {
|
|
10871
11073
|
const props = __props;
|
|
10872
11074
|
const ns = useNamespace("icon");
|
|
10873
|
-
const style = computed(() => {
|
|
11075
|
+
const style = computed$1(() => {
|
|
10874
11076
|
if (!props.size && !props.color)
|
|
10875
11077
|
return {};
|
|
10876
11078
|
return {
|
|
@@ -10940,12 +11142,12 @@ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
|
10940
11142
|
const slots = useSlots();
|
|
10941
11143
|
const ns = useNamespace("alert");
|
|
10942
11144
|
const visible = ref(true);
|
|
10943
|
-
const iconComponent = computed(() => TypeComponentsMap[props.type]);
|
|
10944
|
-
const iconClass = computed(() => [
|
|
11145
|
+
const iconComponent = computed$1(() => TypeComponentsMap[props.type]);
|
|
11146
|
+
const iconClass = computed$1(() => [
|
|
10945
11147
|
ns.e("icon"),
|
|
10946
11148
|
{ [ns.is("big")]: !!props.description || !!slots.default }
|
|
10947
11149
|
]);
|
|
10948
|
-
const isBoldTitle = computed(() => props.description || { [ns.is("bold")]: slots.default });
|
|
11150
|
+
const isBoldTitle = computed$1(() => props.description || { [ns.is("bold")]: slots.default });
|
|
10949
11151
|
const close = (evt) => {
|
|
10950
11152
|
visible.value = false;
|
|
10951
11153
|
emit("close", evt);
|
|
@@ -11216,7 +11418,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
11216
11418
|
const instance = getCurrentInstance();
|
|
11217
11419
|
const rawAttrs = useAttrs$1();
|
|
11218
11420
|
const slots = useSlots();
|
|
11219
|
-
const containerAttrs = computed(() => {
|
|
11421
|
+
const containerAttrs = computed$1(() => {
|
|
11220
11422
|
const comboBoxAttrs = {};
|
|
11221
11423
|
if (props.containerRole === "combobox") {
|
|
11222
11424
|
comboBoxAttrs["aria-haspopup"] = rawAttrs["aria-haspopup"];
|
|
@@ -11226,7 +11428,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
11226
11428
|
return comboBoxAttrs;
|
|
11227
11429
|
});
|
|
11228
11430
|
const attrs = useAttrs({
|
|
11229
|
-
excludeKeys: computed(() => {
|
|
11431
|
+
excludeKeys: computed$1(() => {
|
|
11230
11432
|
return Object.keys(containerAttrs.value);
|
|
11231
11433
|
})
|
|
11232
11434
|
});
|
|
@@ -11246,30 +11448,30 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
11246
11448
|
const passwordVisible = ref(false);
|
|
11247
11449
|
const countStyle = ref();
|
|
11248
11450
|
const textareaCalcStyle = shallowRef(props.inputStyle);
|
|
11249
|
-
const _ref = computed(() => input.value || textarea.value);
|
|
11250
|
-
const needStatusIcon = computed(() => {
|
|
11451
|
+
const _ref = computed$1(() => input.value || textarea.value);
|
|
11452
|
+
const needStatusIcon = computed$1(() => {
|
|
11251
11453
|
var _a;
|
|
11252
11454
|
return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
|
|
11253
11455
|
});
|
|
11254
|
-
const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
11255
|
-
const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
|
|
11256
|
-
const passwordIcon = computed(() => passwordVisible.value ? view_default : hide_default);
|
|
11257
|
-
const containerStyle = computed(() => [
|
|
11456
|
+
const validateState = computed$1(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
11457
|
+
const validateIcon = computed$1(() => validateState.value && ValidateComponentsMap[validateState.value]);
|
|
11458
|
+
const passwordIcon = computed$1(() => passwordVisible.value ? view_default : hide_default);
|
|
11459
|
+
const containerStyle = computed$1(() => [
|
|
11258
11460
|
rawAttrs.style,
|
|
11259
11461
|
props.inputStyle
|
|
11260
11462
|
]);
|
|
11261
|
-
const textareaStyle = computed(() => [
|
|
11463
|
+
const textareaStyle = computed$1(() => [
|
|
11262
11464
|
props.inputStyle,
|
|
11263
11465
|
textareaCalcStyle.value,
|
|
11264
11466
|
{ resize: props.resize }
|
|
11265
11467
|
]);
|
|
11266
|
-
const nativeInputValue = computed(() => isNil(props.modelValue) ? "" : String(props.modelValue));
|
|
11267
|
-
const showClear = computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (focused.value || hovering.value));
|
|
11268
|
-
const showPwdVisible = computed(() => props.showPassword && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (!!nativeInputValue.value || focused.value));
|
|
11269
|
-
const isWordLimitVisible = computed(() => props.showWordLimit && !!attrs.value.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
|
|
11270
|
-
const textLength = computed(() => Array.from(nativeInputValue.value).length);
|
|
11271
|
-
const inputExceed = computed(() => !!isWordLimitVisible.value && textLength.value > Number(attrs.value.maxlength));
|
|
11272
|
-
const suffixVisible = computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
|
11468
|
+
const nativeInputValue = computed$1(() => isNil(props.modelValue) ? "" : String(props.modelValue));
|
|
11469
|
+
const showClear = computed$1(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (focused.value || hovering.value));
|
|
11470
|
+
const showPwdVisible = computed$1(() => props.showPassword && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (!!nativeInputValue.value || focused.value));
|
|
11471
|
+
const isWordLimitVisible = computed$1(() => props.showWordLimit && !!attrs.value.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
|
|
11472
|
+
const textLength = computed$1(() => Array.from(nativeInputValue.value).length);
|
|
11473
|
+
const inputExceed = computed$1(() => !!isWordLimitVisible.value && textLength.value > Number(attrs.value.maxlength));
|
|
11474
|
+
const suffixVisible = computed$1(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
|
11273
11475
|
const [recordCursor, setCursor] = useCursor(input);
|
|
11274
11476
|
useResizeObserver(textarea, (entries) => {
|
|
11275
11477
|
if (!isWordLimitVisible.value || props.resize !== "both")
|
|
@@ -11693,13 +11895,13 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
|
11693
11895
|
let cursorDown = false;
|
|
11694
11896
|
let cursorLeave = false;
|
|
11695
11897
|
let originalOnSelectStart = isClient ? document.onselectstart : null;
|
|
11696
|
-
const bar = computed(() => BAR_MAP[props.vertical ? "vertical" : "horizontal"]);
|
|
11697
|
-
const thumbStyle = computed(() => renderThumbStyle$1({
|
|
11898
|
+
const bar = computed$1(() => BAR_MAP[props.vertical ? "vertical" : "horizontal"]);
|
|
11899
|
+
const thumbStyle = computed$1(() => renderThumbStyle$1({
|
|
11698
11900
|
size: props.size,
|
|
11699
11901
|
move: props.move,
|
|
11700
11902
|
bar: bar.value
|
|
11701
11903
|
}));
|
|
11702
|
-
const offsetRatio = computed(() => instance.value[bar.value.offset] ** 2 / scrollbar.wrapElement[bar.value.scrollSize] / props.ratio / thumb.value[bar.value.offset]);
|
|
11904
|
+
const offsetRatio = computed$1(() => instance.value[bar.value.offset] ** 2 / scrollbar.wrapElement[bar.value.scrollSize] / props.ratio / thumb.value[bar.value.offset]);
|
|
11703
11905
|
const clickThumbHandler = (e) => {
|
|
11704
11906
|
var _a;
|
|
11705
11907
|
e.stopPropagation();
|
|
@@ -11918,7 +12120,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
11918
12120
|
const barRef = ref();
|
|
11919
12121
|
const ratioY = ref(1);
|
|
11920
12122
|
const ratioX = ref(1);
|
|
11921
|
-
const style = computed(() => {
|
|
12123
|
+
const style = computed$1(() => {
|
|
11922
12124
|
const style2 = {};
|
|
11923
12125
|
if (props.height)
|
|
11924
12126
|
style2.height = addUnit(props.height);
|
|
@@ -12078,7 +12280,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
12078
12280
|
const popperInstanceRef = ref();
|
|
12079
12281
|
const contentRef = ref();
|
|
12080
12282
|
const referenceRef = ref();
|
|
12081
|
-
const role = computed(() => props.role);
|
|
12283
|
+
const role = computed$1(() => props.role);
|
|
12082
12284
|
const popperProvides = {
|
|
12083
12285
|
triggerRef,
|
|
12084
12286
|
popperInstanceRef,
|
|
@@ -12215,22 +12417,22 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
12215
12417
|
const props = __props;
|
|
12216
12418
|
const { role, triggerRef } = inject(POPPER_INJECTION_KEY, void 0);
|
|
12217
12419
|
useForwardRef(triggerRef);
|
|
12218
|
-
const ariaControls = computed(() => {
|
|
12420
|
+
const ariaControls = computed$1(() => {
|
|
12219
12421
|
return ariaHaspopup.value ? props.id : void 0;
|
|
12220
12422
|
});
|
|
12221
|
-
const ariaDescribedby = computed(() => {
|
|
12423
|
+
const ariaDescribedby = computed$1(() => {
|
|
12222
12424
|
if (role && role.value === "tooltip") {
|
|
12223
12425
|
return props.open && props.id ? props.id : void 0;
|
|
12224
12426
|
}
|
|
12225
12427
|
return void 0;
|
|
12226
12428
|
});
|
|
12227
|
-
const ariaHaspopup = computed(() => {
|
|
12429
|
+
const ariaHaspopup = computed$1(() => {
|
|
12228
12430
|
if (role && role.value !== "tooltip") {
|
|
12229
12431
|
return role.value;
|
|
12230
12432
|
}
|
|
12231
12433
|
return void 0;
|
|
12232
12434
|
});
|
|
12233
|
-
const ariaExpanded = computed(() => {
|
|
12435
|
+
const ariaExpanded = computed$1(() => {
|
|
12234
12436
|
return ariaHaspopup.value ? `${props.open}` : void 0;
|
|
12235
12437
|
});
|
|
12236
12438
|
let virtualTriggerAriaStopWatch = void 0;
|
|
@@ -12802,15 +13004,15 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
12802
13004
|
const contentZIndex = ref(props.zIndex || nextZIndex());
|
|
12803
13005
|
const trapped = ref(false);
|
|
12804
13006
|
let triggerTargetAriaStopWatch = void 0;
|
|
12805
|
-
const computedReference = computed(() => unwrapMeasurableEl(props.referenceEl) || unref(triggerRef));
|
|
12806
|
-
const contentStyle = computed(() => [{ zIndex: unref(contentZIndex) }, props.popperStyle]);
|
|
12807
|
-
const contentClass = computed(() => [
|
|
13007
|
+
const computedReference = computed$1(() => unwrapMeasurableEl(props.referenceEl) || unref(triggerRef));
|
|
13008
|
+
const contentStyle = computed$1(() => [{ zIndex: unref(contentZIndex) }, props.popperStyle]);
|
|
13009
|
+
const contentClass = computed$1(() => [
|
|
12808
13010
|
ns.b(),
|
|
12809
13011
|
ns.is("pure", props.pure),
|
|
12810
13012
|
ns.is(props.effect),
|
|
12811
13013
|
props.popperClass
|
|
12812
13014
|
]);
|
|
12813
|
-
const ariaModal = computed(() => {
|
|
13015
|
+
const ariaModal = computed$1(() => {
|
|
12814
13016
|
return role && role.value === "dialog" ? "false" : void 0;
|
|
12815
13017
|
});
|
|
12816
13018
|
const createPopperInstance = ({ referenceEl, popperContentEl, arrowEl }) => {
|
|
@@ -13054,23 +13256,23 @@ const _sfc_main$23 = defineComponent({
|
|
|
13054
13256
|
onBeforeShow,
|
|
13055
13257
|
onBeforeHide
|
|
13056
13258
|
} = inject(TOOLTIP_INJECTION_KEY, void 0);
|
|
13057
|
-
const persistentRef = computed(() => {
|
|
13259
|
+
const persistentRef = computed$1(() => {
|
|
13058
13260
|
return props.persistent;
|
|
13059
13261
|
});
|
|
13060
13262
|
onBeforeUnmount(() => {
|
|
13061
13263
|
destroyed.value = true;
|
|
13062
13264
|
});
|
|
13063
|
-
const shouldRender = computed(() => {
|
|
13265
|
+
const shouldRender = computed$1(() => {
|
|
13064
13266
|
return unref(persistentRef) ? true : unref(open);
|
|
13065
13267
|
});
|
|
13066
|
-
const shouldShow = computed(() => {
|
|
13268
|
+
const shouldShow = computed$1(() => {
|
|
13067
13269
|
return props.disabled ? false : unref(open);
|
|
13068
13270
|
});
|
|
13069
|
-
const contentStyle = computed(() => {
|
|
13271
|
+
const contentStyle = computed$1(() => {
|
|
13070
13272
|
var _a;
|
|
13071
13273
|
return (_a = props.style) != null ? _a : {};
|
|
13072
13274
|
});
|
|
13073
|
-
const ariaHidden = computed(() => !unref(open));
|
|
13275
|
+
const ariaHidden = computed$1(() => !unref(open));
|
|
13074
13276
|
const onTransitionLeave = () => {
|
|
13075
13277
|
onHide();
|
|
13076
13278
|
};
|
|
@@ -13098,7 +13300,7 @@ const _sfc_main$23 = defineComponent({
|
|
|
13098
13300
|
};
|
|
13099
13301
|
const onAfterShow = () => {
|
|
13100
13302
|
onShow();
|
|
13101
|
-
stopHandle = onClickOutside(computed(() => {
|
|
13303
|
+
stopHandle = onClickOutside(computed$1(() => {
|
|
13102
13304
|
var _a;
|
|
13103
13305
|
return (_a = contentRef.value) == null ? void 0 : _a.popperContentRef;
|
|
13104
13306
|
}), () => {
|
|
@@ -13318,11 +13520,11 @@ const _sfc_main$21 = defineComponent({
|
|
|
13318
13520
|
],
|
|
13319
13521
|
setup(props, { emit }) {
|
|
13320
13522
|
usePopperContainer();
|
|
13321
|
-
const compatShowAfter = computed(() => {
|
|
13523
|
+
const compatShowAfter = computed$1(() => {
|
|
13322
13524
|
if (!isUndefined(props.openDelay)) ;
|
|
13323
13525
|
return props.openDelay || props.showAfter;
|
|
13324
13526
|
});
|
|
13325
|
-
const compatShowArrow = computed(() => {
|
|
13527
|
+
const compatShowArrow = computed$1(() => {
|
|
13326
13528
|
if (!isUndefined(props.visibleArrow)) ;
|
|
13327
13529
|
return isBoolean(props.visibleArrow) ? props.visibleArrow : props.showArrow;
|
|
13328
13530
|
});
|
|
@@ -13348,7 +13550,7 @@ const _sfc_main$21 = defineComponent({
|
|
|
13348
13550
|
open: show,
|
|
13349
13551
|
close: hide
|
|
13350
13552
|
});
|
|
13351
|
-
const controlled = computed(() => isBoolean(props.visible) && !hasUpdateHandler.value);
|
|
13553
|
+
const controlled = computed$1(() => isBoolean(props.visible) && !hasUpdateHandler.value);
|
|
13352
13554
|
provide(TOOLTIP_INJECTION_KEY, {
|
|
13353
13555
|
controlled,
|
|
13354
13556
|
id,
|
|
@@ -13578,14 +13780,14 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
13578
13780
|
const activated = ref(false);
|
|
13579
13781
|
const suggestionDisabled = ref(false);
|
|
13580
13782
|
const loading = ref(false);
|
|
13581
|
-
const listboxId = computed(() => ns.b(String(generateId())));
|
|
13582
|
-
const styles = computed(() => rawAttrs.style);
|
|
13583
|
-
const suggestionVisible = computed(() => {
|
|
13783
|
+
const listboxId = computed$1(() => ns.b(String(generateId())));
|
|
13784
|
+
const styles = computed$1(() => rawAttrs.style);
|
|
13785
|
+
const suggestionVisible = computed$1(() => {
|
|
13584
13786
|
const isValidData = suggestions.value.length > 0;
|
|
13585
13787
|
return (isValidData || loading.value) && activated.value;
|
|
13586
13788
|
});
|
|
13587
|
-
const suggestionLoading = computed(() => !props.hideLoading && loading.value);
|
|
13588
|
-
const refInput = computed(() => {
|
|
13789
|
+
const suggestionLoading = computed$1(() => !props.hideLoading && loading.value);
|
|
13790
|
+
const refInput = computed$1(() => {
|
|
13589
13791
|
if (inputRef.value) {
|
|
13590
13792
|
return Array.from(inputRef.value.$el.querySelectorAll("input"));
|
|
13591
13793
|
}
|
|
@@ -13927,7 +14129,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
|
13927
14129
|
const props = __props;
|
|
13928
14130
|
const ns = useNamespace("avatar");
|
|
13929
14131
|
const hasLoadError = ref(false);
|
|
13930
|
-
const avatarClass = computed(() => {
|
|
14132
|
+
const avatarClass = computed$1(() => {
|
|
13931
14133
|
const { size, icon, shape } = props;
|
|
13932
14134
|
const classList = [ns.b()];
|
|
13933
14135
|
if (isString(size))
|
|
@@ -13938,13 +14140,13 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
|
13938
14140
|
classList.push(ns.m(shape));
|
|
13939
14141
|
return classList;
|
|
13940
14142
|
});
|
|
13941
|
-
const sizeStyle = computed(() => {
|
|
14143
|
+
const sizeStyle = computed$1(() => {
|
|
13942
14144
|
const { size } = props;
|
|
13943
14145
|
return isNumber(size) ? ns.cssVarBlock({
|
|
13944
14146
|
size: addUnit(size) || ""
|
|
13945
14147
|
}) : void 0;
|
|
13946
14148
|
});
|
|
13947
|
-
const fitStyle = computed(() => ({
|
|
14149
|
+
const fitStyle = computed$1(() => ({
|
|
13948
14150
|
objectFit: props.fit
|
|
13949
14151
|
}));
|
|
13950
14152
|
watch(() => props.src, () => hasLoadError.value = false);
|
|
@@ -14015,7 +14217,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
14015
14217
|
const el = shallowRef();
|
|
14016
14218
|
const container = shallowRef();
|
|
14017
14219
|
const visible = ref(false);
|
|
14018
|
-
const backTopStyle = computed(() => ({
|
|
14220
|
+
const backTopStyle = computed$1(() => ({
|
|
14019
14221
|
right: `${props.right}px`,
|
|
14020
14222
|
bottom: `${props.bottom}px`
|
|
14021
14223
|
}));
|
|
@@ -14119,7 +14321,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
|
14119
14321
|
setup(__props, { expose }) {
|
|
14120
14322
|
const props = __props;
|
|
14121
14323
|
const ns = useNamespace("badge");
|
|
14122
|
-
const content = computed(() => {
|
|
14324
|
+
const content = computed$1(() => {
|
|
14123
14325
|
if (props.isDot)
|
|
14124
14326
|
return "";
|
|
14125
14327
|
if (isNumber(props.value) && isNumber(props.max)) {
|
|
@@ -15202,7 +15404,7 @@ function darken(color, amount = 20) {
|
|
|
15202
15404
|
function useButtonCustomStyle(props) {
|
|
15203
15405
|
const _disabled = useDisabled$1();
|
|
15204
15406
|
const ns = useNamespace("button");
|
|
15205
|
-
return computed(() => {
|
|
15407
|
+
return computed$1(() => {
|
|
15206
15408
|
let styles = {};
|
|
15207
15409
|
const buttonColor = props.color;
|
|
15208
15410
|
if (buttonColor) {
|
|
@@ -15267,20 +15469,20 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
15267
15469
|
version: "3.0.0",
|
|
15268
15470
|
scope: "props",
|
|
15269
15471
|
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
15270
|
-
}, computed(() => props.type === "text"));
|
|
15472
|
+
}, computed$1(() => props.type === "text"));
|
|
15271
15473
|
const buttonGroupContext = inject(buttonGroupContextKey, void 0);
|
|
15272
15474
|
const globalConfig = useGlobalConfig("button");
|
|
15273
15475
|
const ns = useNamespace("button");
|
|
15274
15476
|
const { form } = useFormItem();
|
|
15275
|
-
const _size = useSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
15477
|
+
const _size = useSize(computed$1(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
15276
15478
|
const _disabled = useDisabled$1();
|
|
15277
15479
|
const _ref = ref();
|
|
15278
|
-
const _type = computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
|
|
15279
|
-
const autoInsertSpace = computed(() => {
|
|
15480
|
+
const _type = computed$1(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
|
|
15481
|
+
const autoInsertSpace = computed$1(() => {
|
|
15280
15482
|
var _a, _b, _c;
|
|
15281
15483
|
return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
|
|
15282
15484
|
});
|
|
15283
|
-
const shouldAddSpace = computed(() => {
|
|
15485
|
+
const shouldAddSpace = computed$1(() => {
|
|
15284
15486
|
var _a;
|
|
15285
15487
|
const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
15286
15488
|
if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
|
|
@@ -16082,7 +16284,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16082
16284
|
const emitKeydown = (e) => {
|
|
16083
16285
|
emit("keydown", e);
|
|
16084
16286
|
};
|
|
16085
|
-
const refInput = computed(() => {
|
|
16287
|
+
const refInput = computed$1(() => {
|
|
16086
16288
|
if (inputRef.value) {
|
|
16087
16289
|
const _r = isRangeInput.value ? inputRef.value : inputRef.value.$el;
|
|
16088
16290
|
return Array.from(_r.querySelectorAll("input"));
|
|
@@ -16176,10 +16378,10 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16176
16378
|
currentHandleBlurDeferCallback = handleBlurDefer;
|
|
16177
16379
|
handleBlurDefer();
|
|
16178
16380
|
};
|
|
16179
|
-
const pickerDisabled = computed(() => {
|
|
16381
|
+
const pickerDisabled = computed$1(() => {
|
|
16180
16382
|
return props.disabled || elForm.disabled;
|
|
16181
16383
|
});
|
|
16182
|
-
const parsedValue = computed(() => {
|
|
16384
|
+
const parsedValue = computed$1(() => {
|
|
16183
16385
|
let dayOrDays;
|
|
16184
16386
|
if (valueIsEmpty.value) {
|
|
16185
16387
|
if (pickerOptions.value.getDefaultValue) {
|
|
@@ -16204,7 +16406,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16204
16406
|
}
|
|
16205
16407
|
return dayOrDays;
|
|
16206
16408
|
});
|
|
16207
|
-
const displayValue = computed(() => {
|
|
16409
|
+
const displayValue = computed$1(() => {
|
|
16208
16410
|
if (!pickerOptions.value.panelReady)
|
|
16209
16411
|
return "";
|
|
16210
16412
|
const formattedValue = formatDayjsToString(parsedValue.value);
|
|
@@ -16225,10 +16427,10 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16225
16427
|
}
|
|
16226
16428
|
return "";
|
|
16227
16429
|
});
|
|
16228
|
-
const isTimeLikePicker = computed(() => props.type.includes("time"));
|
|
16229
|
-
const isTimePicker = computed(() => props.type.startsWith("time"));
|
|
16230
|
-
const isDatesPicker = computed(() => props.type === "dates");
|
|
16231
|
-
const triggerIcon = computed(() => props.prefixIcon || (isTimeLikePicker.value ? clock_default : calendar_default));
|
|
16430
|
+
const isTimeLikePicker = computed$1(() => props.type.includes("time"));
|
|
16431
|
+
const isTimePicker = computed$1(() => props.type.startsWith("time"));
|
|
16432
|
+
const isDatesPicker = computed$1(() => props.type === "dates");
|
|
16433
|
+
const triggerIcon = computed$1(() => props.prefixIcon || (isTimeLikePicker.value ? clock_default : calendar_default));
|
|
16232
16434
|
const showClose = ref(false);
|
|
16233
16435
|
const onClearIconClick = (event) => {
|
|
16234
16436
|
if (props.readonly || pickerDisabled.value)
|
|
@@ -16243,7 +16445,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16243
16445
|
pickerOptions.value.handleClear && pickerOptions.value.handleClear();
|
|
16244
16446
|
}
|
|
16245
16447
|
};
|
|
16246
|
-
const valueIsEmpty = computed(() => {
|
|
16448
|
+
const valueIsEmpty = computed$1(() => {
|
|
16247
16449
|
const { modelValue } = props;
|
|
16248
16450
|
return !modelValue || isArray(modelValue) && !modelValue.filter(Boolean).length;
|
|
16249
16451
|
});
|
|
@@ -16271,15 +16473,15 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16271
16473
|
pickerVisible.value = true;
|
|
16272
16474
|
}
|
|
16273
16475
|
};
|
|
16274
|
-
const isRangeInput = computed(() => {
|
|
16476
|
+
const isRangeInput = computed$1(() => {
|
|
16275
16477
|
return props.type.includes("range");
|
|
16276
16478
|
});
|
|
16277
16479
|
const pickerSize = useSize();
|
|
16278
|
-
const popperEl = computed(() => {
|
|
16480
|
+
const popperEl = computed$1(() => {
|
|
16279
16481
|
var _a, _b;
|
|
16280
16482
|
return (_b = (_a = unref(refPopper)) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
16281
16483
|
});
|
|
16282
|
-
const actualInputRef = computed(() => {
|
|
16484
|
+
const actualInputRef = computed$1(() => {
|
|
16283
16485
|
var _a;
|
|
16284
16486
|
if (unref(isRangeInput)) {
|
|
16285
16487
|
return unref(inputRef);
|
|
@@ -16541,7 +16743,6 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16541
16743
|
]),
|
|
16542
16744
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
16543
16745
|
onClick: handleFocusInput,
|
|
16544
|
-
onMousedown: onMouseDownInput,
|
|
16545
16746
|
onMouseenter: onMouseEnter,
|
|
16546
16747
|
onMouseleave: onMouseLeave,
|
|
16547
16748
|
onTouchstart: onTouchStartInput,
|
|
@@ -16567,6 +16768,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16567
16768
|
disabled: unref(pickerDisabled),
|
|
16568
16769
|
readonly: !_ctx.editable || _ctx.readonly,
|
|
16569
16770
|
class: normalizeClass(unref(nsRange).b("input")),
|
|
16771
|
+
onMousedown: onMouseDownInput,
|
|
16570
16772
|
onInput: handleStartInput,
|
|
16571
16773
|
onChange: handleStartChange,
|
|
16572
16774
|
onFocus: handleFocusInput,
|
|
@@ -16586,6 +16788,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16586
16788
|
disabled: unref(pickerDisabled),
|
|
16587
16789
|
readonly: !_ctx.editable || _ctx.readonly,
|
|
16588
16790
|
class: normalizeClass(unref(nsRange).b("input")),
|
|
16791
|
+
onMousedown: onMouseDownInput,
|
|
16589
16792
|
onFocus: handleFocusInput,
|
|
16590
16793
|
onBlur: handleBlurInput,
|
|
16591
16794
|
onInput: handleEndInput,
|
|
@@ -16951,17 +17154,17 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
16951
17154
|
minutes: listMinutesRef,
|
|
16952
17155
|
seconds: listSecondsRef
|
|
16953
17156
|
};
|
|
16954
|
-
const spinnerItems = computed(() => {
|
|
17157
|
+
const spinnerItems = computed$1(() => {
|
|
16955
17158
|
return props.showSeconds ? timeUnits : timeUnits.slice(0, 2);
|
|
16956
17159
|
});
|
|
16957
|
-
const timePartials = computed(() => {
|
|
17160
|
+
const timePartials = computed$1(() => {
|
|
16958
17161
|
const { spinnerDate } = props;
|
|
16959
17162
|
const hours = spinnerDate.hour();
|
|
16960
17163
|
const minutes = spinnerDate.minute();
|
|
16961
17164
|
const seconds = spinnerDate.second();
|
|
16962
17165
|
return { hours, minutes, seconds };
|
|
16963
17166
|
});
|
|
16964
|
-
const timeList = computed(() => {
|
|
17167
|
+
const timeList = computed$1(() => {
|
|
16965
17168
|
const { hours, minutes } = unref(timePartials);
|
|
16966
17169
|
return {
|
|
16967
17170
|
hours: getHoursList(props.role),
|
|
@@ -16969,7 +17172,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
16969
17172
|
seconds: getSecondsList(hours, minutes, props.role)
|
|
16970
17173
|
};
|
|
16971
17174
|
});
|
|
16972
|
-
const arrowControlTimeList = computed(() => {
|
|
17175
|
+
const arrowControlTimeList = computed$1(() => {
|
|
16973
17176
|
const { hours, minutes, seconds } = unref(timePartials);
|
|
16974
17177
|
return {
|
|
16975
17178
|
hours: buildTimeList(hours, 23),
|
|
@@ -17228,13 +17431,13 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
17228
17431
|
const { t, lang } = useLocale();
|
|
17229
17432
|
const selectionRange = ref([0, 2]);
|
|
17230
17433
|
const oldValue = useOldValue(props);
|
|
17231
|
-
const transitionName = computed(() => {
|
|
17434
|
+
const transitionName = computed$1(() => {
|
|
17232
17435
|
return isUndefined(props.actualVisible) ? `${ns.namespace.value}-zoom-in-top` : "";
|
|
17233
17436
|
});
|
|
17234
|
-
const showSeconds = computed(() => {
|
|
17437
|
+
const showSeconds = computed$1(() => {
|
|
17235
17438
|
return props.format.includes("ss");
|
|
17236
17439
|
});
|
|
17237
|
-
const amPmMode = computed(() => {
|
|
17440
|
+
const amPmMode = computed$1(() => {
|
|
17238
17441
|
if (props.format.includes("A"))
|
|
17239
17442
|
return "A";
|
|
17240
17443
|
if (props.format.includes("a"))
|
|
@@ -17395,16 +17598,16 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
17395
17598
|
disabledSeconds,
|
|
17396
17599
|
defaultValue
|
|
17397
17600
|
} = pickerBase.props;
|
|
17398
|
-
const startTime = computed(() => props.parsedValue[0]);
|
|
17399
|
-
const endTime = computed(() => props.parsedValue[1]);
|
|
17601
|
+
const startTime = computed$1(() => props.parsedValue[0]);
|
|
17602
|
+
const endTime = computed$1(() => props.parsedValue[1]);
|
|
17400
17603
|
const oldValue = useOldValue(props);
|
|
17401
17604
|
const handleCancel = () => {
|
|
17402
17605
|
emit("pick", oldValue.value, false);
|
|
17403
17606
|
};
|
|
17404
|
-
const showSeconds = computed(() => {
|
|
17607
|
+
const showSeconds = computed$1(() => {
|
|
17405
17608
|
return props.format.includes("ss");
|
|
17406
17609
|
});
|
|
17407
|
-
const amPmMode = computed(() => {
|
|
17610
|
+
const amPmMode = computed$1(() => {
|
|
17408
17611
|
if (props.format.includes("A"))
|
|
17409
17612
|
return "A";
|
|
17410
17613
|
if (props.format.includes("a"))
|
|
@@ -17428,7 +17631,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
17428
17631
|
const handleChange = (start, end) => {
|
|
17429
17632
|
emit("pick", [start, end], true);
|
|
17430
17633
|
};
|
|
17431
|
-
const btnConfirmDisabled = computed(() => {
|
|
17634
|
+
const btnConfirmDisabled = computed$1(() => {
|
|
17432
17635
|
return startTime.value > endTime.value;
|
|
17433
17636
|
});
|
|
17434
17637
|
const selectionRange = ref([0, 2]);
|
|
@@ -17436,7 +17639,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
17436
17639
|
emit("select-range", start, end, "min");
|
|
17437
17640
|
selectionRange.value = [start, end];
|
|
17438
17641
|
};
|
|
17439
|
-
const offset = computed(() => showSeconds.value ? 11 : 8);
|
|
17642
|
+
const offset = computed$1(() => showSeconds.value ? 11 : 8);
|
|
17440
17643
|
const setMaxSelectionRange = (start, end) => {
|
|
17441
17644
|
emit("select-range", start, end, "max");
|
|
17442
17645
|
const _offset = unref(offset);
|
|
@@ -17735,8 +17938,8 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
17735
17938
|
const nsDay = useNamespace("calendar-day");
|
|
17736
17939
|
const now = dayjs().locale(lang.value);
|
|
17737
17940
|
const firstDayOfWeek = now.$locale().weekStart || 0;
|
|
17738
|
-
const isInRange = computed(() => !!props.range && !!props.range.length);
|
|
17739
|
-
const rows = computed(() => {
|
|
17941
|
+
const isInRange = computed$1(() => !!props.range && !!props.range.length);
|
|
17942
|
+
const rows = computed$1(() => {
|
|
17740
17943
|
let days = [];
|
|
17741
17944
|
if (isInRange.value) {
|
|
17742
17945
|
const [start, end] = props.range;
|
|
@@ -17771,7 +17974,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
17771
17974
|
}
|
|
17772
17975
|
return toNestedArr(days);
|
|
17773
17976
|
});
|
|
17774
|
-
const weekDays = computed(() => {
|
|
17977
|
+
const weekDays = computed$1(() => {
|
|
17775
17978
|
const start = firstDayOfWeek;
|
|
17776
17979
|
if (start === 0) {
|
|
17777
17980
|
return WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`));
|
|
@@ -17892,7 +18095,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
17892
18095
|
const { t, lang } = useLocale();
|
|
17893
18096
|
const selectedDay = ref();
|
|
17894
18097
|
const now = dayjs().locale(lang.value);
|
|
17895
|
-
const realSelectedDay = computed({
|
|
18098
|
+
const realSelectedDay = computed$1({
|
|
17896
18099
|
get() {
|
|
17897
18100
|
if (!props.modelValue)
|
|
17898
18101
|
return selectedDay.value;
|
|
@@ -17907,7 +18110,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
17907
18110
|
emit(UPDATE_MODEL_EVENT, result);
|
|
17908
18111
|
}
|
|
17909
18112
|
});
|
|
17910
|
-
const validatedRange = computed(() => {
|
|
18113
|
+
const validatedRange = computed$1(() => {
|
|
17911
18114
|
if (!props.range)
|
|
17912
18115
|
return [];
|
|
17913
18116
|
const rangeArrDayjs = props.range.map((_) => dayjs(_).locale(lang.value));
|
|
@@ -17924,7 +18127,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
17924
18127
|
return calculateValidatedDateRange(startDayjs, endDayjs);
|
|
17925
18128
|
}
|
|
17926
18129
|
});
|
|
17927
|
-
const date = computed(() => {
|
|
18130
|
+
const date = computed$1(() => {
|
|
17928
18131
|
if (!props.modelValue) {
|
|
17929
18132
|
if (realSelectedDay.value) {
|
|
17930
18133
|
return realSelectedDay.value;
|
|
@@ -17936,11 +18139,11 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
17936
18139
|
return dayjs(props.modelValue).locale(lang.value);
|
|
17937
18140
|
}
|
|
17938
18141
|
});
|
|
17939
|
-
const prevMonthDayjs = computed(() => date.value.subtract(1, "month").date(1));
|
|
17940
|
-
const nextMonthDayjs = computed(() => date.value.add(1, "month").date(1));
|
|
17941
|
-
const prevYearDayjs = computed(() => date.value.subtract(1, "year").date(1));
|
|
17942
|
-
const nextYearDayjs = computed(() => date.value.add(1, "year").date(1));
|
|
17943
|
-
const i18nDate = computed(() => {
|
|
18142
|
+
const prevMonthDayjs = computed$1(() => date.value.subtract(1, "month").date(1));
|
|
18143
|
+
const nextMonthDayjs = computed$1(() => date.value.add(1, "month").date(1));
|
|
18144
|
+
const prevYearDayjs = computed$1(() => date.value.subtract(1, "year").date(1));
|
|
18145
|
+
const nextYearDayjs = computed$1(() => date.value.add(1, "year").date(1));
|
|
18146
|
+
const i18nDate = computed$1(() => {
|
|
17944
18147
|
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
17945
18148
|
return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
|
|
17946
18149
|
});
|
|
@@ -18226,18 +18429,19 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18226
18429
|
const hover = ref(false);
|
|
18227
18430
|
const root = ref();
|
|
18228
18431
|
const items = ref([]);
|
|
18229
|
-
const arrowDisplay = computed(() => props.arrow !== "never" && !unref(isVertical));
|
|
18230
|
-
const
|
|
18432
|
+
const arrowDisplay = computed$1(() => props.arrow !== "never" && !unref(isVertical));
|
|
18433
|
+
const interval = computed$1(() => props.interval);
|
|
18434
|
+
const hasLabel = computed$1(() => {
|
|
18231
18435
|
return items.value.some((item) => item.props.label.toString().length > 0);
|
|
18232
18436
|
});
|
|
18233
|
-
const carouselClasses = computed(() => {
|
|
18437
|
+
const carouselClasses = computed$1(() => {
|
|
18234
18438
|
const classes = [ns.b(), ns.m(props.direction)];
|
|
18235
18439
|
if (unref(isCardType)) {
|
|
18236
18440
|
classes.push(ns.m("card"));
|
|
18237
18441
|
}
|
|
18238
18442
|
return classes;
|
|
18239
18443
|
});
|
|
18240
|
-
const indicatorsClasses = computed(() => {
|
|
18444
|
+
const indicatorsClasses = computed$1(() => {
|
|
18241
18445
|
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
18242
18446
|
if (hasLabel.value) {
|
|
18243
18447
|
classes.push(ns.em("indicators", "labels"));
|
|
@@ -18247,8 +18451,8 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18247
18451
|
}
|
|
18248
18452
|
return classes;
|
|
18249
18453
|
});
|
|
18250
|
-
const isCardType = computed(() => props.type === "card");
|
|
18251
|
-
const isVertical = computed(() => props.direction === "vertical");
|
|
18454
|
+
const isCardType = computed$1(() => props.type === "card");
|
|
18455
|
+
const isVertical = computed$1(() => props.direction === "vertical");
|
|
18252
18456
|
const throttledArrowClick = throttle((index) => {
|
|
18253
18457
|
setActiveItem(index);
|
|
18254
18458
|
}, THROTTLE_TIME, { trailing: true });
|
|
@@ -18262,9 +18466,9 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18262
18466
|
}
|
|
18263
18467
|
}
|
|
18264
18468
|
function startTimer() {
|
|
18265
|
-
if (
|
|
18469
|
+
if (interval.value <= 0 || !props.autoplay || timer.value)
|
|
18266
18470
|
return;
|
|
18267
|
-
timer.value = setInterval(() => playSlides(),
|
|
18471
|
+
timer.value = setInterval(() => playSlides(), interval.value);
|
|
18268
18472
|
}
|
|
18269
18473
|
const playSlides = () => {
|
|
18270
18474
|
if (activeIndex.value < items.value.length - 1) {
|
|
@@ -18543,7 +18747,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
18543
18747
|
const inStage = ref(false);
|
|
18544
18748
|
const animating = ref(false);
|
|
18545
18749
|
const { isCardType, isVertical } = carouselContext;
|
|
18546
|
-
const itemStyle = computed(() => {
|
|
18750
|
+
const itemStyle = computed$1(() => {
|
|
18547
18751
|
const translateType = `translate${unref(isVertical) ? "Y" : "X"}`;
|
|
18548
18752
|
const _translate = `${translateType}(${unref(translate)}px)`;
|
|
18549
18753
|
const _scale = `scale(${unref(scale)})`;
|
|
@@ -18749,8 +18953,8 @@ const useCheckboxGroup = () => {
|
|
|
18749
18953
|
const elForm = inject(formContextKey, {});
|
|
18750
18954
|
const elFormItem = inject(formItemContextKey, {});
|
|
18751
18955
|
const checkboxGroup = inject("CheckboxGroup", {});
|
|
18752
|
-
const isGroup = computed(() => checkboxGroup && (checkboxGroup == null ? void 0 : checkboxGroup.name) === "ElCheckboxGroup");
|
|
18753
|
-
const elFormItemSize = computed(() => {
|
|
18956
|
+
const isGroup = computed$1(() => checkboxGroup && (checkboxGroup == null ? void 0 : checkboxGroup.name) === "ElCheckboxGroup");
|
|
18957
|
+
const elFormItemSize = computed$1(() => {
|
|
18754
18958
|
return elFormItem.size;
|
|
18755
18959
|
});
|
|
18756
18960
|
return {
|
|
@@ -18775,7 +18979,7 @@ const useModel = (props) => {
|
|
|
18775
18979
|
const { emit } = getCurrentInstance();
|
|
18776
18980
|
const { isGroup, checkboxGroup, elFormItem } = useCheckboxGroup();
|
|
18777
18981
|
const isLimitExceeded = ref(false);
|
|
18778
|
-
const model = computed({
|
|
18982
|
+
const model = computed$1({
|
|
18779
18983
|
get() {
|
|
18780
18984
|
var _a, _b;
|
|
18781
18985
|
return isGroup.value ? (_a = checkboxGroup.modelValue) == null ? void 0 : _a.value : (_b = props.modelValue) != null ? _b : selfModel.value;
|
|
@@ -18802,7 +19006,7 @@ const useCheckboxStatus = (props, slots, { model }) => {
|
|
|
18802
19006
|
const { isGroup, checkboxGroup } = useCheckboxGroup();
|
|
18803
19007
|
const focus = ref(false);
|
|
18804
19008
|
const size = useSize(checkboxGroup == null ? void 0 : checkboxGroup.checkboxGroupSize, { prop: true });
|
|
18805
|
-
const isChecked = computed(() => {
|
|
19009
|
+
const isChecked = computed$1(() => {
|
|
18806
19010
|
const value = model.value;
|
|
18807
19011
|
if (toTypeString(value) === "[object Boolean]") {
|
|
18808
19012
|
return value;
|
|
@@ -18814,11 +19018,11 @@ const useCheckboxStatus = (props, slots, { model }) => {
|
|
|
18814
19018
|
return !!value;
|
|
18815
19019
|
}
|
|
18816
19020
|
});
|
|
18817
|
-
const checkboxSize = useSize(computed(() => {
|
|
19021
|
+
const checkboxSize = useSize(computed$1(() => {
|
|
18818
19022
|
var _a;
|
|
18819
19023
|
return isGroup.value ? (_a = checkboxGroup == null ? void 0 : checkboxGroup.checkboxGroupSize) == null ? void 0 : _a.value : void 0;
|
|
18820
19024
|
}));
|
|
18821
|
-
const hasOwnLabel = computed(() => {
|
|
19025
|
+
const hasOwnLabel = computed$1(() => {
|
|
18822
19026
|
return !!(slots.default || props.label);
|
|
18823
19027
|
});
|
|
18824
19028
|
return {
|
|
@@ -18834,13 +19038,13 @@ const useDisabled = (props, {
|
|
|
18834
19038
|
isChecked
|
|
18835
19039
|
}) => {
|
|
18836
19040
|
const { elForm, isGroup, checkboxGroup } = useCheckboxGroup();
|
|
18837
|
-
const isLimitDisabled = computed(() => {
|
|
19041
|
+
const isLimitDisabled = computed$1(() => {
|
|
18838
19042
|
var _a, _b;
|
|
18839
19043
|
const max = (_a = checkboxGroup.max) == null ? void 0 : _a.value;
|
|
18840
19044
|
const min = (_b = checkboxGroup.min) == null ? void 0 : _b.value;
|
|
18841
19045
|
return !!(max || min) && model.value.length >= max && !isChecked.value || model.value.length <= min && isChecked.value;
|
|
18842
19046
|
});
|
|
18843
|
-
const isDisabled = computed(() => {
|
|
19047
|
+
const isDisabled = computed$1(() => {
|
|
18844
19048
|
var _a, _b;
|
|
18845
19049
|
const disabled = props.disabled || (elForm == null ? void 0 : elForm.disabled);
|
|
18846
19050
|
return (_b = isGroup.value ? ((_a = checkboxGroup.disabled) == null ? void 0 : _a.value) || disabled || isLimitDisabled.value : disabled) != null ? _b : false;
|
|
@@ -18891,7 +19095,7 @@ const useEvent$1 = (props, {
|
|
|
18891
19095
|
emitChangeEvent(model.value, e);
|
|
18892
19096
|
}
|
|
18893
19097
|
}
|
|
18894
|
-
const validateEvent = computed(() => {
|
|
19098
|
+
const validateEvent = computed$1(() => {
|
|
18895
19099
|
var _a;
|
|
18896
19100
|
return ((_a = checkboxGroup.validateEvent) == null ? void 0 : _a.value) || props.validateEvent;
|
|
18897
19101
|
});
|
|
@@ -19071,7 +19275,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
19071
19275
|
const { focus, isChecked, isDisabled, size, model, handleChange } = useCheckbox(props, slots);
|
|
19072
19276
|
const { checkboxGroup } = useCheckboxGroup();
|
|
19073
19277
|
const ns = useNamespace("checkbox");
|
|
19074
|
-
const activeStyle = computed(() => {
|
|
19278
|
+
const activeStyle = computed$1(() => {
|
|
19075
19279
|
var _a, _b, _c, _d;
|
|
19076
19280
|
const fillValue = (_b = (_a = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a.value) != null ? _b : "";
|
|
19077
19281
|
return {
|
|
@@ -19157,7 +19361,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
19157
19361
|
emit("change", value);
|
|
19158
19362
|
});
|
|
19159
19363
|
};
|
|
19160
|
-
const modelValue = computed({
|
|
19364
|
+
const modelValue = computed$1({
|
|
19161
19365
|
get() {
|
|
19162
19366
|
return props.modelValue;
|
|
19163
19367
|
},
|
|
@@ -19167,8 +19371,8 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
19167
19371
|
});
|
|
19168
19372
|
provide("CheckboxGroup", {
|
|
19169
19373
|
name: "ElCheckboxGroup",
|
|
19170
|
-
modelValue,
|
|
19171
19374
|
...toRefs(props),
|
|
19375
|
+
modelValue,
|
|
19172
19376
|
checkboxGroupSize,
|
|
19173
19377
|
changeEvent
|
|
19174
19378
|
});
|
|
@@ -19231,8 +19435,8 @@ const radioEmits = {
|
|
|
19231
19435
|
const useRadio = (props, emit) => {
|
|
19232
19436
|
const radioRef = ref();
|
|
19233
19437
|
const radioGroup = inject(radioGroupKey, void 0);
|
|
19234
|
-
const isGroup = computed(() => !!radioGroup);
|
|
19235
|
-
const modelValue = computed({
|
|
19438
|
+
const isGroup = computed$1(() => !!radioGroup);
|
|
19439
|
+
const modelValue = computed$1({
|
|
19236
19440
|
get() {
|
|
19237
19441
|
return isGroup.value ? radioGroup.modelValue : props.modelValue;
|
|
19238
19442
|
},
|
|
@@ -19245,10 +19449,10 @@ const useRadio = (props, emit) => {
|
|
|
19245
19449
|
radioRef.value.checked = props.modelValue === props.label;
|
|
19246
19450
|
}
|
|
19247
19451
|
});
|
|
19248
|
-
const size = useSize(computed(() => radioGroup == null ? void 0 : radioGroup.size));
|
|
19249
|
-
const disabled = useDisabled$1(computed(() => radioGroup == null ? void 0 : radioGroup.disabled));
|
|
19452
|
+
const size = useSize(computed$1(() => radioGroup == null ? void 0 : radioGroup.size));
|
|
19453
|
+
const disabled = useDisabled$1(computed$1(() => radioGroup == null ? void 0 : radioGroup.disabled));
|
|
19250
19454
|
const focus = ref(false);
|
|
19251
|
-
const tabIndex = computed(() => {
|
|
19455
|
+
const tabIndex = computed$1(() => {
|
|
19252
19456
|
return disabled.value || isGroup.value && modelValue.value !== props.label ? -1 : 0;
|
|
19253
19457
|
});
|
|
19254
19458
|
return {
|
|
@@ -19350,7 +19554,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
19350
19554
|
const props = __props;
|
|
19351
19555
|
const ns = useNamespace("radio");
|
|
19352
19556
|
const { radioRef, focus, size, disabled, modelValue, radioGroup } = useRadio(props);
|
|
19353
|
-
const activeStyle = computed(() => {
|
|
19557
|
+
const activeStyle = computed$1(() => {
|
|
19354
19558
|
return {
|
|
19355
19559
|
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
19356
19560
|
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
@@ -19461,7 +19665,7 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
19461
19665
|
firstLabel.tabIndex = 0;
|
|
19462
19666
|
}
|
|
19463
19667
|
});
|
|
19464
|
-
const name = computed(() => {
|
|
19668
|
+
const name = computed$1(() => {
|
|
19465
19669
|
return props.name || radioId.value;
|
|
19466
19670
|
});
|
|
19467
19671
|
provide(radioGroupKey, reactive({
|
|
@@ -19544,18 +19748,18 @@ const _sfc_main$1F = defineComponent({
|
|
|
19544
19748
|
setup(props, { emit }) {
|
|
19545
19749
|
const panel = inject(CASCADER_PANEL_INJECTION_KEY);
|
|
19546
19750
|
const ns = useNamespace("cascader-node");
|
|
19547
|
-
const isHoverMenu = computed(() => panel.isHoverMenu);
|
|
19548
|
-
const multiple = computed(() => panel.config.multiple);
|
|
19549
|
-
const checkStrictly = computed(() => panel.config.checkStrictly);
|
|
19550
|
-
const checkedNodeId = computed(() => {
|
|
19751
|
+
const isHoverMenu = computed$1(() => panel.isHoverMenu);
|
|
19752
|
+
const multiple = computed$1(() => panel.config.multiple);
|
|
19753
|
+
const checkStrictly = computed$1(() => panel.config.checkStrictly);
|
|
19754
|
+
const checkedNodeId = computed$1(() => {
|
|
19551
19755
|
var _a;
|
|
19552
19756
|
return (_a = panel.checkedNodes[0]) == null ? void 0 : _a.uid;
|
|
19553
19757
|
});
|
|
19554
|
-
const isDisabled = computed(() => props.node.isDisabled);
|
|
19555
|
-
const isLeaf = computed(() => props.node.isLeaf);
|
|
19556
|
-
const expandable = computed(() => checkStrictly.value && !isLeaf.value || !isDisabled.value);
|
|
19557
|
-
const inExpandingPath = computed(() => isInPath(panel.expandingNode));
|
|
19558
|
-
const inCheckedPath = computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
|
|
19758
|
+
const isDisabled = computed$1(() => props.node.isDisabled);
|
|
19759
|
+
const isLeaf = computed$1(() => props.node.isLeaf);
|
|
19760
|
+
const expandable = computed$1(() => checkStrictly.value && !isLeaf.value || !isDisabled.value);
|
|
19761
|
+
const inExpandingPath = computed$1(() => isInPath(panel.expandingNode));
|
|
19762
|
+
const inCheckedPath = computed$1(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
|
|
19559
19763
|
const isInPath = (node) => {
|
|
19560
19764
|
var _a;
|
|
19561
19765
|
const { level, uid } = props.node;
|
|
@@ -19751,9 +19955,9 @@ const _sfc_main$1E = defineComponent({
|
|
|
19751
19955
|
let hoverTimer = null;
|
|
19752
19956
|
const panel = inject(CASCADER_PANEL_INJECTION_KEY);
|
|
19753
19957
|
const hoverZone = ref(null);
|
|
19754
|
-
const isEmpty = computed(() => !props.nodes.length);
|
|
19755
|
-
const isLoading = computed(() => !panel.initialLoaded);
|
|
19756
|
-
const menuId = computed(() => `cascader-menu-${id}-${props.index}`);
|
|
19958
|
+
const isEmpty = computed$1(() => !props.nodes.length);
|
|
19959
|
+
const isLoading = computed$1(() => !panel.initialLoaded);
|
|
19960
|
+
const menuId = computed$1(() => `cascader-menu-${id}-${props.index}`);
|
|
19757
19961
|
const handleExpand = (e) => {
|
|
19758
19962
|
activeNode = e.target;
|
|
19759
19963
|
};
|
|
@@ -20052,7 +20256,7 @@ const DefaultProps = {
|
|
|
20052
20256
|
hoverThreshold: 500
|
|
20053
20257
|
};
|
|
20054
20258
|
const useCascaderConfig = (props) => {
|
|
20055
|
-
return computed(() => ({
|
|
20259
|
+
return computed$1(() => ({
|
|
20056
20260
|
...DefaultProps,
|
|
20057
20261
|
...props.props
|
|
20058
20262
|
}));
|
|
@@ -20115,8 +20319,8 @@ const _sfc_main$1D = defineComponent({
|
|
|
20115
20319
|
const menus = ref([]);
|
|
20116
20320
|
const expandingNode = ref(null);
|
|
20117
20321
|
const checkedNodes = ref([]);
|
|
20118
|
-
const isHoverMenu = computed(() => config.value.expandTrigger === ExpandTrigger.HOVER);
|
|
20119
|
-
const renderLabelFn = computed(() => props.renderLabel || slots.default);
|
|
20322
|
+
const isHoverMenu = computed$1(() => config.value.expandTrigger === ExpandTrigger.HOVER);
|
|
20323
|
+
const renderLabelFn = computed$1(() => props.renderLabel || slots.default);
|
|
20120
20324
|
const initStore = () => {
|
|
20121
20325
|
const { options } = props;
|
|
20122
20326
|
const cfg = config.value;
|
|
@@ -20396,7 +20600,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
20396
20600
|
const props = __props;
|
|
20397
20601
|
const tagSize = useSize();
|
|
20398
20602
|
const ns = useNamespace("tag");
|
|
20399
|
-
const classes = computed(() => {
|
|
20603
|
+
const classes = computed$1(() => {
|
|
20400
20604
|
const { type, hit, effect, closable, round } = props;
|
|
20401
20605
|
return [
|
|
20402
20606
|
ns.b(),
|
|
@@ -20591,28 +20795,28 @@ const _sfc_main$1B = defineComponent({
|
|
|
20591
20795
|
const allPresentTags = ref([]);
|
|
20592
20796
|
const suggestions = ref([]);
|
|
20593
20797
|
const isOnComposition = ref(false);
|
|
20594
|
-
const isDisabled = computed(() => props.disabled || elForm.disabled);
|
|
20595
|
-
const inputPlaceholder = computed(() => props.placeholder || t("el.cascader.placeholder"));
|
|
20798
|
+
const isDisabled = computed$1(() => props.disabled || elForm.disabled);
|
|
20799
|
+
const inputPlaceholder = computed$1(() => props.placeholder || t("el.cascader.placeholder"));
|
|
20596
20800
|
const realSize = useSize();
|
|
20597
|
-
const tagSize = computed(() => ["small"].includes(realSize.value) ? "small" : "default");
|
|
20598
|
-
const multiple = computed(() => !!props.props.multiple);
|
|
20599
|
-
const readonly = computed(() => !props.filterable || multiple.value);
|
|
20600
|
-
const searchKeyword = computed(() => multiple.value ? searchInputValue.value : inputValue.value);
|
|
20601
|
-
const checkedNodes = computed(() => {
|
|
20801
|
+
const tagSize = computed$1(() => ["small"].includes(realSize.value) ? "small" : "default");
|
|
20802
|
+
const multiple = computed$1(() => !!props.props.multiple);
|
|
20803
|
+
const readonly = computed$1(() => !props.filterable || multiple.value);
|
|
20804
|
+
const searchKeyword = computed$1(() => multiple.value ? searchInputValue.value : inputValue.value);
|
|
20805
|
+
const checkedNodes = computed$1(() => {
|
|
20602
20806
|
var _a;
|
|
20603
20807
|
return ((_a = panel.value) == null ? void 0 : _a.checkedNodes) || [];
|
|
20604
20808
|
});
|
|
20605
|
-
const clearBtnVisible = computed(() => {
|
|
20809
|
+
const clearBtnVisible = computed$1(() => {
|
|
20606
20810
|
if (!props.clearable || isDisabled.value || filtering.value || !inputHover.value)
|
|
20607
20811
|
return false;
|
|
20608
20812
|
return !!checkedNodes.value.length;
|
|
20609
20813
|
});
|
|
20610
|
-
const presentText = computed(() => {
|
|
20814
|
+
const presentText = computed$1(() => {
|
|
20611
20815
|
const { showAllLevels, separator } = props;
|
|
20612
20816
|
const nodes = checkedNodes.value;
|
|
20613
20817
|
return nodes.length ? multiple.value ? " " : nodes[0].calcText(showAllLevels, separator) : "";
|
|
20614
20818
|
});
|
|
20615
|
-
const checkedValue = computed({
|
|
20819
|
+
const checkedValue = computed$1({
|
|
20616
20820
|
get() {
|
|
20617
20821
|
return props.modelValue;
|
|
20618
20822
|
},
|
|
@@ -20625,7 +20829,7 @@ const _sfc_main$1B = defineComponent({
|
|
|
20625
20829
|
}
|
|
20626
20830
|
}
|
|
20627
20831
|
});
|
|
20628
|
-
const popperPaneRef = computed(() => {
|
|
20832
|
+
const popperPaneRef = computed$1(() => {
|
|
20629
20833
|
var _a, _b;
|
|
20630
20834
|
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
20631
20835
|
});
|
|
@@ -20933,7 +21137,6 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20933
21137
|
return openBlock(), createBlock(_component_el_tooltip, {
|
|
20934
21138
|
ref: "tooltipRef",
|
|
20935
21139
|
visible: _ctx.popperVisible,
|
|
20936
|
-
"onUpdate:visible": _cache[17] || (_cache[17] = ($event) => _ctx.popperVisible = $event),
|
|
20937
21140
|
teleported: _ctx.teleported,
|
|
20938
21141
|
"popper-class": [_ctx.nsCascader.e("dropdown"), _ctx.popperClass],
|
|
20939
21142
|
"popper-options": _ctx.popperOptions,
|
|
@@ -21247,16 +21450,16 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
21247
21450
|
props: colProps,
|
|
21248
21451
|
setup(__props) {
|
|
21249
21452
|
const props = __props;
|
|
21250
|
-
const { gutter } = inject(rowContextKey, { gutter: computed(() => 0) });
|
|
21453
|
+
const { gutter } = inject(rowContextKey, { gutter: computed$1(() => 0) });
|
|
21251
21454
|
const ns = useNamespace("col");
|
|
21252
|
-
const style = computed(() => {
|
|
21455
|
+
const style = computed$1(() => {
|
|
21253
21456
|
const styles = {};
|
|
21254
21457
|
if (gutter.value) {
|
|
21255
21458
|
styles.paddingLeft = styles.paddingRight = `${gutter.value / 2}px`;
|
|
21256
21459
|
}
|
|
21257
21460
|
return styles;
|
|
21258
21461
|
});
|
|
21259
|
-
const classes = computed(() => {
|
|
21462
|
+
const classes = computed$1(() => {
|
|
21260
21463
|
const classes2 = [];
|
|
21261
21464
|
const pos = ["span", "offset", "pull", "push"];
|
|
21262
21465
|
pos.forEach((prop) => {
|
|
@@ -21473,7 +21676,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
21473
21676
|
const focusing = ref(false);
|
|
21474
21677
|
const isClick = ref(false);
|
|
21475
21678
|
const id = ref(generateId());
|
|
21476
|
-
const isActive = computed(() => collapse == null ? void 0 : collapse.activeNames.value.includes(props.name));
|
|
21679
|
+
const isActive = computed$1(() => collapse == null ? void 0 : collapse.activeNames.value.includes(props.name));
|
|
21477
21680
|
const handleFocus = () => {
|
|
21478
21681
|
setTimeout(() => {
|
|
21479
21682
|
if (!isClick.value) {
|
|
@@ -21578,10 +21781,10 @@ function draggable(element, options) {
|
|
|
21578
21781
|
};
|
|
21579
21782
|
const upFn = function(event) {
|
|
21580
21783
|
var _a;
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
21584
|
-
|
|
21784
|
+
document.removeEventListener("mousemove", moveFn);
|
|
21785
|
+
document.removeEventListener("mouseup", upFn);
|
|
21786
|
+
document.removeEventListener("touchmove", moveFn);
|
|
21787
|
+
document.removeEventListener("touchend", upFn);
|
|
21585
21788
|
document.onselectstart = null;
|
|
21586
21789
|
document.ondragstart = null;
|
|
21587
21790
|
isDragging = false;
|
|
@@ -21594,15 +21797,15 @@ function draggable(element, options) {
|
|
|
21594
21797
|
event.preventDefault();
|
|
21595
21798
|
document.onselectstart = () => false;
|
|
21596
21799
|
document.ondragstart = () => false;
|
|
21597
|
-
|
|
21598
|
-
|
|
21599
|
-
|
|
21600
|
-
|
|
21800
|
+
document.addEventListener("mousemove", moveFn);
|
|
21801
|
+
document.addEventListener("mouseup", upFn);
|
|
21802
|
+
document.addEventListener("touchmove", moveFn);
|
|
21803
|
+
document.addEventListener("touchend", upFn);
|
|
21601
21804
|
isDragging = true;
|
|
21602
21805
|
(_a = options.start) == null ? void 0 : _a.call(options, event);
|
|
21603
21806
|
};
|
|
21604
|
-
|
|
21605
|
-
|
|
21807
|
+
document.addEventListener("mousedown", downFn);
|
|
21808
|
+
document.addEventListener("touchstart", downFn);
|
|
21606
21809
|
}
|
|
21607
21810
|
|
|
21608
21811
|
const _sfc_main$1v = defineComponent({
|
|
@@ -21748,7 +21951,7 @@ const _sfc_main$1u = defineComponent({
|
|
|
21748
21951
|
const bar = ref(null);
|
|
21749
21952
|
const thumbLeft = ref(0);
|
|
21750
21953
|
const thumbTop = ref(0);
|
|
21751
|
-
const hueValue = computed(() => {
|
|
21954
|
+
const hueValue = computed$1(() => {
|
|
21752
21955
|
return props.color.get("hue");
|
|
21753
21956
|
});
|
|
21754
21957
|
watch(() => hueValue.value, () => {
|
|
@@ -22206,7 +22409,7 @@ const _sfc_main$1s = defineComponent({
|
|
|
22206
22409
|
const cursorTop = ref(0);
|
|
22207
22410
|
const cursorLeft = ref(0);
|
|
22208
22411
|
const background = ref("hsl(0, 100%, 50%)");
|
|
22209
|
-
const colorValue = computed(() => {
|
|
22412
|
+
const colorValue = computed$1(() => {
|
|
22210
22413
|
const hue = props.color.get("hue");
|
|
22211
22414
|
const value = props.color.get("value");
|
|
22212
22415
|
return { hue, value };
|
|
@@ -22354,23 +22557,23 @@ const _sfc_main$1r = defineComponent({
|
|
|
22354
22557
|
const showPicker = ref(false);
|
|
22355
22558
|
const showPanelColor = ref(false);
|
|
22356
22559
|
const customInput = ref("");
|
|
22357
|
-
const displayedColor = computed(() => {
|
|
22560
|
+
const displayedColor = computed$1(() => {
|
|
22358
22561
|
if (!props.modelValue && !showPanelColor.value) {
|
|
22359
22562
|
return "transparent";
|
|
22360
22563
|
}
|
|
22361
22564
|
return displayedRgb(color, props.showAlpha);
|
|
22362
22565
|
});
|
|
22363
22566
|
const colorSize = useSize();
|
|
22364
|
-
const colorDisabled = computed(() => {
|
|
22567
|
+
const colorDisabled = computed$1(() => {
|
|
22365
22568
|
return !!(props.disabled || elForm.disabled);
|
|
22366
22569
|
});
|
|
22367
|
-
const currentColor = computed(() => {
|
|
22570
|
+
const currentColor = computed$1(() => {
|
|
22368
22571
|
return !props.modelValue && !showPanelColor.value ? "" : color.value;
|
|
22369
22572
|
});
|
|
22370
|
-
const buttonAriaLabel = computed(() => {
|
|
22573
|
+
const buttonAriaLabel = computed$1(() => {
|
|
22371
22574
|
return !isLabeledByFormItem.value ? props.label || t("el.colorpicker.defaultLabel") : void 0;
|
|
22372
22575
|
});
|
|
22373
|
-
const buttonAriaLabelledby = computed(() => {
|
|
22576
|
+
const buttonAriaLabelledby = computed$1(() => {
|
|
22374
22577
|
return isLabeledByFormItem.value ? elFormItem.labelId : void 0;
|
|
22375
22578
|
});
|
|
22376
22579
|
watch(() => props.modelValue, (newVal) => {
|
|
@@ -22513,7 +22716,6 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22513
22716
|
return openBlock(), createBlock(_component_el_tooltip, {
|
|
22514
22717
|
ref: "popper",
|
|
22515
22718
|
visible: _ctx.showPicker,
|
|
22516
|
-
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => _ctx.showPicker = $event),
|
|
22517
22719
|
"show-arrow": false,
|
|
22518
22720
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
22519
22721
|
offset: 0,
|
|
@@ -22718,7 +22920,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
22718
22920
|
const props = __props;
|
|
22719
22921
|
const slots = useSlots();
|
|
22720
22922
|
const ns = useNamespace("container");
|
|
22721
|
-
const isVertical = computed(() => {
|
|
22923
|
+
const isVertical = computed$1(() => {
|
|
22722
22924
|
if (props.direction === "vertical") {
|
|
22723
22925
|
return true;
|
|
22724
22926
|
} else if (props.direction === "horizontal") {
|
|
@@ -22759,7 +22961,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
22759
22961
|
setup(__props) {
|
|
22760
22962
|
const props = __props;
|
|
22761
22963
|
const ns = useNamespace("aside");
|
|
22762
|
-
const style = computed(() => props.width ? ns.cssVarBlock({ width: props.width }) : {});
|
|
22964
|
+
const style = computed$1(() => props.width ? ns.cssVarBlock({ width: props.width }) : {});
|
|
22763
22965
|
return (_ctx, _cache) => {
|
|
22764
22966
|
return openBlock(), createElementBlock("aside", {
|
|
22765
22967
|
class: normalizeClass(unref(ns).b()),
|
|
@@ -22786,7 +22988,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
22786
22988
|
setup(__props) {
|
|
22787
22989
|
const props = __props;
|
|
22788
22990
|
const ns = useNamespace("footer");
|
|
22789
|
-
const style = computed(() => props.height ? ns.cssVarBlock({ height: props.height }) : {});
|
|
22991
|
+
const style = computed$1(() => props.height ? ns.cssVarBlock({ height: props.height }) : {});
|
|
22790
22992
|
return (_ctx, _cache) => {
|
|
22791
22993
|
return openBlock(), createElementBlock("footer", {
|
|
22792
22994
|
class: normalizeClass(unref(ns).b()),
|
|
@@ -22813,7 +23015,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
22813
23015
|
setup(__props) {
|
|
22814
23016
|
const props = __props;
|
|
22815
23017
|
const ns = useNamespace("header");
|
|
22816
|
-
const style = computed(() => {
|
|
23018
|
+
const style = computed$1(() => {
|
|
22817
23019
|
return props.height ? ns.cssVarBlock({
|
|
22818
23020
|
height: props.height
|
|
22819
23021
|
}) : {};
|
|
@@ -23210,22 +23412,22 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
23210
23412
|
let focusWithClick = false;
|
|
23211
23413
|
const firstDayOfWeek = props.date.$locale().weekStart || 7;
|
|
23212
23414
|
const WEEKS_CONSTANT = props.date.locale("en").localeData().weekdaysShort().map((_) => _.toLowerCase());
|
|
23213
|
-
const offsetDay = computed(() => {
|
|
23415
|
+
const offsetDay = computed$1(() => {
|
|
23214
23416
|
return firstDayOfWeek > 3 ? 7 - firstDayOfWeek : -firstDayOfWeek;
|
|
23215
23417
|
});
|
|
23216
|
-
const startDate = computed(() => {
|
|
23418
|
+
const startDate = computed$1(() => {
|
|
23217
23419
|
const startDayOfMonth = props.date.startOf("month");
|
|
23218
23420
|
return startDayOfMonth.subtract(startDayOfMonth.day() || 7, "day");
|
|
23219
23421
|
});
|
|
23220
|
-
const WEEKS = computed(() => {
|
|
23422
|
+
const WEEKS = computed$1(() => {
|
|
23221
23423
|
return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek, firstDayOfWeek + 7);
|
|
23222
23424
|
});
|
|
23223
|
-
const hasCurrent = computed(() => {
|
|
23425
|
+
const hasCurrent = computed$1(() => {
|
|
23224
23426
|
return rows.value.flat().some((row) => {
|
|
23225
23427
|
return row.isCurrent;
|
|
23226
23428
|
});
|
|
23227
23429
|
});
|
|
23228
|
-
const days = computed(() => {
|
|
23430
|
+
const days = computed$1(() => {
|
|
23229
23431
|
const startOfMonth = props.date.startOf("month");
|
|
23230
23432
|
const startOfMonthDay = startOfMonth.day() || 7;
|
|
23231
23433
|
const dateCountOfMonth = startOfMonth.daysInMonth();
|
|
@@ -23236,7 +23438,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
23236
23438
|
dateCountOfLastMonth
|
|
23237
23439
|
};
|
|
23238
23440
|
});
|
|
23239
|
-
const selectedDate = computed(() => {
|
|
23441
|
+
const selectedDate = computed$1(() => {
|
|
23240
23442
|
return props.selectionMode === "dates" ? castArray(props.parsedValue) : [];
|
|
23241
23443
|
});
|
|
23242
23444
|
const setDateText = (cell, {
|
|
@@ -23291,7 +23493,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
23291
23493
|
row[end].end = isActive;
|
|
23292
23494
|
}
|
|
23293
23495
|
};
|
|
23294
|
-
const rows = computed(() => {
|
|
23496
|
+
const rows = computed$1(() => {
|
|
23295
23497
|
const { minDate, maxDate, rangeState, showWeekNumber } = props;
|
|
23296
23498
|
const offset = offsetDay.value;
|
|
23297
23499
|
const rows_ = tableRows.value;
|
|
@@ -23572,7 +23774,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
23572
23774
|
]);
|
|
23573
23775
|
const lastRow = ref();
|
|
23574
23776
|
const lastColumn = ref();
|
|
23575
|
-
const rows = computed(() => {
|
|
23777
|
+
const rows = computed$1(() => {
|
|
23576
23778
|
var _a, _b;
|
|
23577
23779
|
const rows2 = tableRows.value;
|
|
23578
23780
|
const now = dayjs().locale(lang.value).startOf("month");
|
|
@@ -23771,7 +23973,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
23771
23973
|
const { t, lang } = useLocale();
|
|
23772
23974
|
const tbodyRef = ref();
|
|
23773
23975
|
const currentCellRef = ref();
|
|
23774
|
-
const startYear = computed(() => {
|
|
23976
|
+
const startYear = computed$1(() => {
|
|
23775
23977
|
return Math.floor(props.date.year() / 10) * 10;
|
|
23776
23978
|
});
|
|
23777
23979
|
const focus = () => {
|
|
@@ -23874,13 +24076,13 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
23874
24076
|
const defaultValue = toRef(pickerBase.props, "defaultValue");
|
|
23875
24077
|
const currentViewRef = ref();
|
|
23876
24078
|
const innerDate = ref(dayjs().locale(lang.value));
|
|
23877
|
-
const defaultTimeD = computed(() => {
|
|
24079
|
+
const defaultTimeD = computed$1(() => {
|
|
23878
24080
|
return dayjs(defaultTime).locale(lang.value);
|
|
23879
24081
|
});
|
|
23880
|
-
const month = computed(() => {
|
|
24082
|
+
const month = computed$1(() => {
|
|
23881
24083
|
return innerDate.value.month();
|
|
23882
24084
|
});
|
|
23883
|
-
const year = computed(() => {
|
|
24085
|
+
const year = computed$1(() => {
|
|
23884
24086
|
return innerDate.value.year();
|
|
23885
24087
|
});
|
|
23886
24088
|
const selectableRange = ref([]);
|
|
@@ -23936,7 +24138,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
23936
24138
|
handlePanelChange("year");
|
|
23937
24139
|
};
|
|
23938
24140
|
const currentView = ref("date");
|
|
23939
|
-
const yearLabel = computed(() => {
|
|
24141
|
+
const yearLabel = computed$1(() => {
|
|
23940
24142
|
const yearTranslation = t("el.datepicker.year");
|
|
23941
24143
|
if (currentView.value === "year") {
|
|
23942
24144
|
const startYear = Math.floor(year.value / 10) * 10;
|
|
@@ -23961,16 +24163,16 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
23961
24163
|
});
|
|
23962
24164
|
}
|
|
23963
24165
|
};
|
|
23964
|
-
const selectionMode = computed(() => {
|
|
24166
|
+
const selectionMode = computed$1(() => {
|
|
23965
24167
|
const { type } = props;
|
|
23966
24168
|
if (["week", "month", "year", "dates"].includes(type))
|
|
23967
24169
|
return type;
|
|
23968
24170
|
return "date";
|
|
23969
24171
|
});
|
|
23970
|
-
const keyboardMode = computed(() => {
|
|
24172
|
+
const keyboardMode = computed$1(() => {
|
|
23971
24173
|
return selectionMode.value === "date" ? currentView.value : selectionMode.value;
|
|
23972
24174
|
});
|
|
23973
|
-
const hasShortcuts = computed(() => !!shortcuts.length);
|
|
24175
|
+
const hasShortcuts = computed$1(() => !!shortcuts.length);
|
|
23974
24176
|
const handleMonthPick = async (month2) => {
|
|
23975
24177
|
innerDate.value = innerDate.value.startOf("month").month(month2);
|
|
23976
24178
|
if (selectionMode.value === "month") {
|
|
@@ -24005,8 +24207,8 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
24005
24207
|
await nextTick();
|
|
24006
24208
|
handleFocusPicker();
|
|
24007
24209
|
};
|
|
24008
|
-
const showTime = computed(() => props.type === "datetime" || props.type === "datetimerange");
|
|
24009
|
-
const footerVisible = computed(() => {
|
|
24210
|
+
const showTime = computed$1(() => props.type === "datetime" || props.type === "datetimerange");
|
|
24211
|
+
const footerVisible = computed$1(() => {
|
|
24010
24212
|
return showTime.value || selectionMode.value === "dates";
|
|
24011
24213
|
});
|
|
24012
24214
|
const onConfirm = () => {
|
|
@@ -24031,20 +24233,20 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
24031
24233
|
emit(innerDate.value);
|
|
24032
24234
|
}
|
|
24033
24235
|
};
|
|
24034
|
-
const timeFormat = computed(() => {
|
|
24236
|
+
const timeFormat = computed$1(() => {
|
|
24035
24237
|
return extractTimeFormat(props.format);
|
|
24036
24238
|
});
|
|
24037
|
-
const dateFormat = computed(() => {
|
|
24239
|
+
const dateFormat = computed$1(() => {
|
|
24038
24240
|
return extractDateFormat(props.format);
|
|
24039
24241
|
});
|
|
24040
|
-
const visibleTime = computed(() => {
|
|
24242
|
+
const visibleTime = computed$1(() => {
|
|
24041
24243
|
if (userInputTime.value)
|
|
24042
24244
|
return userInputTime.value;
|
|
24043
24245
|
if (!props.parsedValue && !defaultValue.value)
|
|
24044
24246
|
return;
|
|
24045
24247
|
return (props.parsedValue || innerDate.value).format(timeFormat.value);
|
|
24046
24248
|
});
|
|
24047
|
-
const visibleDate = computed(() => {
|
|
24249
|
+
const visibleDate = computed$1(() => {
|
|
24048
24250
|
if (userInputDate.value)
|
|
24049
24251
|
return userInputDate.value;
|
|
24050
24252
|
if (!props.parsedValue && !defaultValue.value)
|
|
@@ -24633,57 +24835,57 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
24633
24835
|
min: null,
|
|
24634
24836
|
max: null
|
|
24635
24837
|
});
|
|
24636
|
-
const leftLabel = computed(() => {
|
|
24838
|
+
const leftLabel = computed$1(() => {
|
|
24637
24839
|
return `${leftDate.value.year()} ${t("el.datepicker.year")} ${t(`el.datepicker.month${leftDate.value.month() + 1}`)}`;
|
|
24638
24840
|
});
|
|
24639
|
-
const rightLabel = computed(() => {
|
|
24841
|
+
const rightLabel = computed$1(() => {
|
|
24640
24842
|
return `${rightDate.value.year()} ${t("el.datepicker.year")} ${t(`el.datepicker.month${rightDate.value.month() + 1}`)}`;
|
|
24641
24843
|
});
|
|
24642
|
-
const leftYear = computed(() => {
|
|
24844
|
+
const leftYear = computed$1(() => {
|
|
24643
24845
|
return leftDate.value.year();
|
|
24644
24846
|
});
|
|
24645
|
-
const leftMonth = computed(() => {
|
|
24847
|
+
const leftMonth = computed$1(() => {
|
|
24646
24848
|
return leftDate.value.month();
|
|
24647
24849
|
});
|
|
24648
|
-
const rightYear = computed(() => {
|
|
24850
|
+
const rightYear = computed$1(() => {
|
|
24649
24851
|
return rightDate.value.year();
|
|
24650
24852
|
});
|
|
24651
|
-
const rightMonth = computed(() => {
|
|
24853
|
+
const rightMonth = computed$1(() => {
|
|
24652
24854
|
return rightDate.value.month();
|
|
24653
24855
|
});
|
|
24654
|
-
const hasShortcuts = computed(() => !!shortcuts.value.length);
|
|
24655
|
-
const minVisibleDate = computed(() => {
|
|
24856
|
+
const hasShortcuts = computed$1(() => !!shortcuts.value.length);
|
|
24857
|
+
const minVisibleDate = computed$1(() => {
|
|
24656
24858
|
if (dateUserInput.value.min !== null)
|
|
24657
24859
|
return dateUserInput.value.min;
|
|
24658
24860
|
if (minDate.value)
|
|
24659
24861
|
return minDate.value.format(dateFormat.value);
|
|
24660
24862
|
return "";
|
|
24661
24863
|
});
|
|
24662
|
-
const maxVisibleDate = computed(() => {
|
|
24864
|
+
const maxVisibleDate = computed$1(() => {
|
|
24663
24865
|
if (dateUserInput.value.max !== null)
|
|
24664
24866
|
return dateUserInput.value.max;
|
|
24665
24867
|
if (maxDate.value || minDate.value)
|
|
24666
24868
|
return (maxDate.value || minDate.value).format(dateFormat.value);
|
|
24667
24869
|
return "";
|
|
24668
24870
|
});
|
|
24669
|
-
const minVisibleTime = computed(() => {
|
|
24871
|
+
const minVisibleTime = computed$1(() => {
|
|
24670
24872
|
if (timeUserInput.value.min !== null)
|
|
24671
24873
|
return timeUserInput.value.min;
|
|
24672
24874
|
if (minDate.value)
|
|
24673
24875
|
return minDate.value.format(timeFormat.value);
|
|
24674
24876
|
return "";
|
|
24675
24877
|
});
|
|
24676
|
-
const maxVisibleTime = computed(() => {
|
|
24878
|
+
const maxVisibleTime = computed$1(() => {
|
|
24677
24879
|
if (timeUserInput.value.max !== null)
|
|
24678
24880
|
return timeUserInput.value.max;
|
|
24679
24881
|
if (maxDate.value || minDate.value)
|
|
24680
24882
|
return (maxDate.value || minDate.value).format(timeFormat.value);
|
|
24681
24883
|
return "";
|
|
24682
24884
|
});
|
|
24683
|
-
const timeFormat = computed(() => {
|
|
24885
|
+
const timeFormat = computed$1(() => {
|
|
24684
24886
|
return extractTimeFormat(format);
|
|
24685
24887
|
});
|
|
24686
|
-
const dateFormat = computed(() => {
|
|
24888
|
+
const dateFormat = computed$1(() => {
|
|
24687
24889
|
return extractDateFormat(format);
|
|
24688
24890
|
});
|
|
24689
24891
|
const leftPrevYear = () => {
|
|
@@ -24737,18 +24939,18 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
24737
24939
|
const handlePanelChange = (mode) => {
|
|
24738
24940
|
emit("panel-change", [leftDate.value.toDate(), rightDate.value.toDate()], mode);
|
|
24739
24941
|
};
|
|
24740
|
-
const enableMonthArrow = computed(() => {
|
|
24942
|
+
const enableMonthArrow = computed$1(() => {
|
|
24741
24943
|
const nextMonth = (leftMonth.value + 1) % 12;
|
|
24742
24944
|
const yearOffset = leftMonth.value + 1 >= 12 ? 1 : 0;
|
|
24743
24945
|
return props.unlinkPanels && new Date(leftYear.value + yearOffset, nextMonth) < new Date(rightYear.value, rightMonth.value);
|
|
24744
24946
|
});
|
|
24745
|
-
const enableYearArrow = computed(() => {
|
|
24947
|
+
const enableYearArrow = computed$1(() => {
|
|
24746
24948
|
return props.unlinkPanels && rightYear.value * 12 + rightMonth.value - (leftYear.value * 12 + leftMonth.value + 1) >= 12;
|
|
24747
24949
|
});
|
|
24748
|
-
const btnDisabled = computed(() => {
|
|
24950
|
+
const btnDisabled = computed$1(() => {
|
|
24749
24951
|
return !(minDate.value && maxDate.value && !rangeState.value.selecting && isValidRange([minDate.value, maxDate.value]));
|
|
24750
24952
|
});
|
|
24751
|
-
const showTime = computed(() => props.type === "datetime" || props.type === "datetimerange");
|
|
24953
|
+
const showTime = computed$1(() => props.type === "datetime" || props.type === "datetimerange");
|
|
24752
24954
|
const formatEmit = (emitDayjs, index) => {
|
|
24753
24955
|
if (!emitDayjs)
|
|
24754
24956
|
return;
|
|
@@ -25248,16 +25450,16 @@ const useMonthRangeHeader = ({
|
|
|
25248
25450
|
const rightPrevYear = () => {
|
|
25249
25451
|
rightDate.value = rightDate.value.subtract(1, "year");
|
|
25250
25452
|
};
|
|
25251
|
-
const leftLabel = computed(() => {
|
|
25453
|
+
const leftLabel = computed$1(() => {
|
|
25252
25454
|
return `${leftDate.value.year()} ${t("el.datepicker.year")}`;
|
|
25253
25455
|
});
|
|
25254
|
-
const rightLabel = computed(() => {
|
|
25456
|
+
const rightLabel = computed$1(() => {
|
|
25255
25457
|
return `${rightDate.value.year()} ${t("el.datepicker.year")}`;
|
|
25256
25458
|
});
|
|
25257
|
-
const leftYear = computed(() => {
|
|
25459
|
+
const leftYear = computed$1(() => {
|
|
25258
25460
|
return leftDate.value.year();
|
|
25259
25461
|
});
|
|
25260
|
-
const rightYear = computed(() => {
|
|
25462
|
+
const rightYear = computed$1(() => {
|
|
25261
25463
|
return rightDate.value.year() === leftDate.value.year() ? leftDate.value.year() + 1 : rightDate.value.year();
|
|
25262
25464
|
});
|
|
25263
25465
|
return {
|
|
@@ -25308,7 +25510,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
25308
25510
|
unit,
|
|
25309
25511
|
onParsedValueChanged
|
|
25310
25512
|
});
|
|
25311
|
-
const hasShortcuts = computed(() => !!shortcuts.length);
|
|
25513
|
+
const hasShortcuts = computed$1(() => !!shortcuts.length);
|
|
25312
25514
|
const {
|
|
25313
25515
|
leftPrevYear,
|
|
25314
25516
|
rightNextYear,
|
|
@@ -25323,7 +25525,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
25323
25525
|
leftDate,
|
|
25324
25526
|
rightDate
|
|
25325
25527
|
});
|
|
25326
|
-
const enableYearArrow = computed(() => {
|
|
25528
|
+
const enableYearArrow = computed$1(() => {
|
|
25327
25529
|
return props.unlinkPanels && rightYear.value > leftYear.value + 1;
|
|
25328
25530
|
});
|
|
25329
25531
|
const handleRangePick = (val, close = true) => {
|
|
@@ -25749,7 +25951,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
25749
25951
|
const descriptionsSize = useSize();
|
|
25750
25952
|
const slots = useSlots();
|
|
25751
25953
|
provide(descriptionsKey, props);
|
|
25752
|
-
const descriptionKls = computed(() => [ns.b(), ns.m(descriptionsSize.value)]);
|
|
25954
|
+
const descriptionKls = computed$1(() => [ns.b(), ns.m(descriptionsSize.value)]);
|
|
25753
25955
|
const flattedChildren = (children) => {
|
|
25754
25956
|
const temp = Array.isArray(children) ? children : [children];
|
|
25755
25957
|
const res = [];
|
|
@@ -26003,7 +26205,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
26003
26205
|
const { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey);
|
|
26004
26206
|
const { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY);
|
|
26005
26207
|
const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
|
|
26006
|
-
const draggable = computed(() => props.draggable);
|
|
26208
|
+
const draggable = computed$1(() => props.draggable);
|
|
26007
26209
|
useDraggable(dialogRef, headerRef, draggable);
|
|
26008
26210
|
return (_ctx, _cache) => {
|
|
26009
26211
|
return openBlock(), createElementBlock("div", {
|
|
@@ -26146,7 +26348,7 @@ const useDialog = (props, targetRef) => {
|
|
|
26146
26348
|
let openTimer = void 0;
|
|
26147
26349
|
let closeTimer = void 0;
|
|
26148
26350
|
const namespace = useGlobalConfig("namespace", defaultNamespace);
|
|
26149
|
-
const style = computed(() => {
|
|
26351
|
+
const style = computed$1(() => {
|
|
26150
26352
|
const style2 = {};
|
|
26151
26353
|
const varPrefix = `--${namespace.value}-dialog`;
|
|
26152
26354
|
if (!props.fullscreen) {
|
|
@@ -26303,7 +26505,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
26303
26505
|
replacement: "the header slot",
|
|
26304
26506
|
version: "3.0.0",
|
|
26305
26507
|
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
26306
|
-
}, computed(() => !!slots.title));
|
|
26508
|
+
}, computed$1(() => !!slots.title));
|
|
26307
26509
|
const ns = useNamespace("dialog");
|
|
26308
26510
|
const dialogRef = ref();
|
|
26309
26511
|
const headerRef = ref();
|
|
@@ -26333,7 +26535,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
26333
26535
|
style
|
|
26334
26536
|
});
|
|
26335
26537
|
const overlayEvent = useSameTarget(onModalClick);
|
|
26336
|
-
const draggable = computed(() => props.draggable && !props.fullscreen);
|
|
26538
|
+
const draggable = computed$1(() => props.draggable && !props.fullscreen);
|
|
26337
26539
|
expose({
|
|
26338
26540
|
visible,
|
|
26339
26541
|
dialogContentRef
|
|
@@ -26457,7 +26659,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
26457
26659
|
setup(__props) {
|
|
26458
26660
|
const props = __props;
|
|
26459
26661
|
const ns = useNamespace("divider");
|
|
26460
|
-
const dividerStyle = computed(() => {
|
|
26662
|
+
const dividerStyle = computed$1(() => {
|
|
26461
26663
|
return ns.cssVar({
|
|
26462
26664
|
"border-style": props.borderStyle
|
|
26463
26665
|
});
|
|
@@ -26521,13 +26723,13 @@ const _sfc_main$1a = defineComponent({
|
|
|
26521
26723
|
replacement: "the header slot",
|
|
26522
26724
|
version: "3.0.0",
|
|
26523
26725
|
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
26524
|
-
}, computed(() => !!slots.title));
|
|
26726
|
+
}, computed$1(() => !!slots.title));
|
|
26525
26727
|
const drawerRef = ref();
|
|
26526
26728
|
const focusStartRef = ref();
|
|
26527
26729
|
const ns = useNamespace("drawer");
|
|
26528
26730
|
const { t } = useLocale();
|
|
26529
|
-
const isHorizontal = computed(() => props.direction === "rtl" || props.direction === "ltr");
|
|
26530
|
-
const drawerSize = computed(() => addUnit(props.size));
|
|
26731
|
+
const isHorizontal = computed$1(() => props.direction === "rtl" || props.direction === "ltr");
|
|
26732
|
+
const drawerSize = computed$1(() => addUnit(props.size));
|
|
26531
26733
|
return {
|
|
26532
26734
|
...useDialog(props, drawerRef),
|
|
26533
26735
|
drawerRef,
|
|
@@ -26823,7 +27025,7 @@ const _sfc_main$17 = defineComponent({
|
|
|
26823
27025
|
const isClickFocus = ref(false);
|
|
26824
27026
|
const rovingFocusGroupRef = ref(null);
|
|
26825
27027
|
const { getItems } = inject(COLLECTION_INJECTION_KEY$1, void 0);
|
|
26826
|
-
const rovingFocusGroupRootStyle = computed(() => {
|
|
27028
|
+
const rovingFocusGroupRootStyle = computed$1(() => {
|
|
26827
27029
|
return [
|
|
26828
27030
|
{
|
|
26829
27031
|
outline: "none"
|
|
@@ -26875,7 +27077,7 @@ const _sfc_main$17 = defineComponent({
|
|
|
26875
27077
|
provide(ROVING_FOCUS_GROUP_INJECTION_KEY, {
|
|
26876
27078
|
currentTabbedId: readonly(currentTabbedId),
|
|
26877
27079
|
loop: toRef(props, "loop"),
|
|
26878
|
-
tabIndex: computed(() => {
|
|
27080
|
+
tabIndex: computed$1(() => {
|
|
26879
27081
|
return unref(isBackingOut) ? -1 : 0;
|
|
26880
27082
|
}),
|
|
26881
27083
|
rovingFocusGroupRef,
|
|
@@ -26891,14 +27093,7 @@ const _sfc_main$17 = defineComponent({
|
|
|
26891
27093
|
watch(() => props.currentTabId, (val) => {
|
|
26892
27094
|
currentTabbedId.value = val != null ? val : null;
|
|
26893
27095
|
});
|
|
26894
|
-
|
|
26895
|
-
const rovingFocusGroupEl = unref(rovingFocusGroupRef);
|
|
26896
|
-
on$1(rovingFocusGroupEl, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
26897
|
-
});
|
|
26898
|
-
onBeforeUnmount(() => {
|
|
26899
|
-
const rovingFocusGroupEl = unref(rovingFocusGroupRef);
|
|
26900
|
-
off(rovingFocusGroupEl, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
26901
|
-
});
|
|
27096
|
+
useEventListener(rovingFocusGroupRef, ENTRY_FOCUS_EVT, handleEntryFocus);
|
|
26902
27097
|
}
|
|
26903
27098
|
});
|
|
26904
27099
|
function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -26999,10 +27194,10 @@ const _sfc_main$15 = defineComponent({
|
|
|
26999
27194
|
});
|
|
27000
27195
|
}
|
|
27001
27196
|
});
|
|
27002
|
-
const isCurrentTab = computed(() => currentTabbedId.value === unref(id));
|
|
27197
|
+
const isCurrentTab = computed$1(() => currentTabbedId.value === unref(id));
|
|
27003
27198
|
provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, {
|
|
27004
27199
|
rovingFocusGroupItemRef,
|
|
27005
|
-
tabIndex: computed(() => unref(isCurrentTab) ? 0 : -1),
|
|
27200
|
+
tabIndex: computed$1(() => unref(isCurrentTab) ? 0 : -1),
|
|
27006
27201
|
handleMousedown,
|
|
27007
27202
|
handleFocus,
|
|
27008
27203
|
handleKeydown
|
|
@@ -27152,12 +27347,12 @@ const _sfc_main$14 = defineComponent({
|
|
|
27152
27347
|
const currentTabId = ref(null);
|
|
27153
27348
|
const isUsingKeyboard = ref(false);
|
|
27154
27349
|
const triggerKeys = [EVENT_CODE.enter, EVENT_CODE.space, EVENT_CODE.down];
|
|
27155
|
-
const wrapStyle = computed(() => ({
|
|
27350
|
+
const wrapStyle = computed$1(() => ({
|
|
27156
27351
|
maxHeight: addUnit(props.maxHeight)
|
|
27157
27352
|
}));
|
|
27158
|
-
const dropdownTriggerKls = computed(() => [ns.m(dropdownSize.value)]);
|
|
27353
|
+
const dropdownTriggerKls = computed$1(() => [ns.m(dropdownSize.value)]);
|
|
27159
27354
|
const defaultTriggerId = useId().value;
|
|
27160
|
-
const triggerId = computed(() => {
|
|
27355
|
+
const triggerId = computed$1(() => {
|
|
27161
27356
|
return props.id || defaultTriggerId;
|
|
27162
27357
|
});
|
|
27163
27358
|
function handleClick() {
|
|
@@ -27204,7 +27399,7 @@ const _sfc_main$14 = defineComponent({
|
|
|
27204
27399
|
}
|
|
27205
27400
|
provide(DROPDOWN_INJECTION_KEY, {
|
|
27206
27401
|
contentRef,
|
|
27207
|
-
role: computed(() => props.role),
|
|
27402
|
+
role: computed$1(() => props.role),
|
|
27208
27403
|
triggerId,
|
|
27209
27404
|
isUsingKeyboard,
|
|
27210
27405
|
onItemEnter,
|
|
@@ -27408,7 +27603,7 @@ const _sfc_main$13 = defineComponent({
|
|
|
27408
27603
|
handleMousedown
|
|
27409
27604
|
} = inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, void 0);
|
|
27410
27605
|
const itemRef = composeRefs(dropdownCollectionItemRef, rovingFocusCollectionItemRef, rovingFocusGroupItemRef);
|
|
27411
|
-
const role = computed(() => {
|
|
27606
|
+
const role = computed$1(() => {
|
|
27412
27607
|
if (menuRole.value === "menu") {
|
|
27413
27608
|
return "menuitem";
|
|
27414
27609
|
} else if (menuRole.value === "navigation") {
|
|
@@ -27474,7 +27669,7 @@ var ElDropdownItemImpl = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _
|
|
|
27474
27669
|
|
|
27475
27670
|
const useDropdown = () => {
|
|
27476
27671
|
const elDropdown = inject("elDropdown", {});
|
|
27477
|
-
const _elDropdownSize = computed(() => elDropdown == null ? void 0 : elDropdown.dropdownSize);
|
|
27672
|
+
const _elDropdownSize = computed$1(() => elDropdown == null ? void 0 : elDropdown.dropdownSize);
|
|
27478
27673
|
return {
|
|
27479
27674
|
elDropdown,
|
|
27480
27675
|
_elDropdownSize
|
|
@@ -27495,7 +27690,7 @@ const _sfc_main$12 = defineComponent({
|
|
|
27495
27690
|
const { elDropdown } = useDropdown();
|
|
27496
27691
|
const _instance = getCurrentInstance();
|
|
27497
27692
|
const itemRef = ref(null);
|
|
27498
|
-
const textContent = computed(() => {
|
|
27693
|
+
const textContent = computed$1(() => {
|
|
27499
27694
|
var _a, _b;
|
|
27500
27695
|
return (_b = (_a = unref(itemRef)) == null ? void 0 : _a.textContent) != null ? _b : "";
|
|
27501
27696
|
});
|
|
@@ -27534,7 +27729,7 @@ const _sfc_main$12 = defineComponent({
|
|
|
27534
27729
|
}
|
|
27535
27730
|
(_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props.command, _instance, e);
|
|
27536
27731
|
});
|
|
27537
|
-
const propsAndAttrs = computed(() => {
|
|
27732
|
+
const propsAndAttrs = computed$1(() => {
|
|
27538
27733
|
return { ...props, ...attrs };
|
|
27539
27734
|
});
|
|
27540
27735
|
return {
|
|
@@ -27598,7 +27793,7 @@ const _sfc_main$11 = defineComponent({
|
|
|
27598
27793
|
onMousedown
|
|
27599
27794
|
} = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);
|
|
27600
27795
|
const { collectionRef: rovingFocusGroupCollectionRef } = inject(COLLECTION_INJECTION_KEY$1, void 0);
|
|
27601
|
-
const dropdownKls = computed(() => {
|
|
27796
|
+
const dropdownKls = computed$1(() => {
|
|
27602
27797
|
return [ns.b("menu"), ns.bm("menu", size == null ? void 0 : size.value)];
|
|
27603
27798
|
});
|
|
27604
27799
|
const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
|
|
@@ -27870,8 +28065,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
27870
28065
|
const props = __props;
|
|
27871
28066
|
const { t } = useLocale();
|
|
27872
28067
|
const ns = useNamespace("empty");
|
|
27873
|
-
const emptyDescription = computed(() => props.description || t("el.table.emptyText"));
|
|
27874
|
-
const imageStyle = computed(() => ({
|
|
28068
|
+
const emptyDescription = computed$1(() => props.description || t("el.table.emptyText"));
|
|
28069
|
+
const imageStyle = computed$1(() => ({
|
|
27875
28070
|
width: props.imageSize ? `${props.imageSize}px` : ""
|
|
27876
28071
|
}));
|
|
27877
28072
|
return (_ctx, _cache) => {
|
|
@@ -27955,7 +28150,7 @@ const formEmits = {
|
|
|
27955
28150
|
|
|
27956
28151
|
function useFormLabelWidth() {
|
|
27957
28152
|
const potentialLabelWidthArr = ref([]);
|
|
27958
|
-
const autoLabelWidth = computed(() => {
|
|
28153
|
+
const autoLabelWidth = computed$1(() => {
|
|
27959
28154
|
if (!potentialLabelWidthArr.value.length)
|
|
27960
28155
|
return "0";
|
|
27961
28156
|
const max = Math.max(...potentialLabelWidthArr.value);
|
|
@@ -28002,7 +28197,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
28002
28197
|
const fields = [];
|
|
28003
28198
|
const formSize = useSize();
|
|
28004
28199
|
const ns = useNamespace("form");
|
|
28005
|
-
const formClasses = computed(() => {
|
|
28200
|
+
const formClasses = computed$1(() => {
|
|
28006
28201
|
const { labelPosition, inline } = props;
|
|
28007
28202
|
return [
|
|
28008
28203
|
ns.b(),
|
|
@@ -28030,7 +28225,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
28030
28225
|
const clearValidate = (props2 = []) => {
|
|
28031
28226
|
filterFields(fields, props2).forEach((field) => field.clearValidate());
|
|
28032
28227
|
};
|
|
28033
|
-
const isValidatable = computed(() => {
|
|
28228
|
+
const isValidatable = computed$1(() => {
|
|
28034
28229
|
const hasModel = !!props.model;
|
|
28035
28230
|
return hasModel;
|
|
28036
28231
|
});
|
|
@@ -29263,7 +29458,7 @@ var FormLabelWrap = defineComponent({
|
|
|
29263
29458
|
formContext == null ? void 0 : formContext.registerLabelWidth(val, oldVal);
|
|
29264
29459
|
}
|
|
29265
29460
|
});
|
|
29266
|
-
useResizeObserver(computed(() => {
|
|
29461
|
+
useResizeObserver(computed$1(() => {
|
|
29267
29462
|
var _a, _b;
|
|
29268
29463
|
return (_b = (_a = el.value) == null ? void 0 : _a.firstElementChild) != null ? _b : null;
|
|
29269
29464
|
}), updateLabelWidthFn);
|
|
@@ -29320,7 +29515,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
29320
29515
|
const formItemRef = ref();
|
|
29321
29516
|
let initialValue = void 0;
|
|
29322
29517
|
let isResettingField = false;
|
|
29323
|
-
const labelStyle = computed(() => {
|
|
29518
|
+
const labelStyle = computed$1(() => {
|
|
29324
29519
|
if ((formContext == null ? void 0 : formContext.labelPosition) === "top") {
|
|
29325
29520
|
return {};
|
|
29326
29521
|
}
|
|
@@ -29329,7 +29524,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
29329
29524
|
return { width: labelWidth };
|
|
29330
29525
|
return {};
|
|
29331
29526
|
});
|
|
29332
|
-
const contentStyle = computed(() => {
|
|
29527
|
+
const contentStyle = computed$1(() => {
|
|
29333
29528
|
if ((formContext == null ? void 0 : formContext.labelPosition) === "top" || (formContext == null ? void 0 : formContext.inline)) {
|
|
29334
29529
|
return {};
|
|
29335
29530
|
}
|
|
@@ -29342,7 +29537,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
29342
29537
|
}
|
|
29343
29538
|
return {};
|
|
29344
29539
|
});
|
|
29345
|
-
const formItemClasses = computed(() => [
|
|
29540
|
+
const formItemClasses = computed$1(() => [
|
|
29346
29541
|
ns.b(),
|
|
29347
29542
|
ns.m(_size.value),
|
|
29348
29543
|
ns.is("error", validateState.value === "error"),
|
|
@@ -29352,34 +29547,34 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
29352
29547
|
ns.is("no-asterisk", formContext == null ? void 0 : formContext.hideRequiredAsterisk),
|
|
29353
29548
|
{ [ns.m("feedback")]: formContext == null ? void 0 : formContext.statusIcon }
|
|
29354
29549
|
]);
|
|
29355
|
-
const _inlineMessage = computed(() => isBoolean(props.inlineMessage) ? props.inlineMessage : (formContext == null ? void 0 : formContext.inlineMessage) || false);
|
|
29356
|
-
const validateClasses = computed(() => [
|
|
29550
|
+
const _inlineMessage = computed$1(() => isBoolean(props.inlineMessage) ? props.inlineMessage : (formContext == null ? void 0 : formContext.inlineMessage) || false);
|
|
29551
|
+
const validateClasses = computed$1(() => [
|
|
29357
29552
|
ns.e("error"),
|
|
29358
29553
|
{ [ns.em("error", "inline")]: _inlineMessage.value }
|
|
29359
29554
|
]);
|
|
29360
|
-
const propString = computed(() => {
|
|
29555
|
+
const propString = computed$1(() => {
|
|
29361
29556
|
if (!props.prop)
|
|
29362
29557
|
return "";
|
|
29363
29558
|
return isString(props.prop) ? props.prop : props.prop.join(".");
|
|
29364
29559
|
});
|
|
29365
|
-
const hasLabel = computed(() => {
|
|
29560
|
+
const hasLabel = computed$1(() => {
|
|
29366
29561
|
return !!(props.label || slots.label);
|
|
29367
29562
|
});
|
|
29368
|
-
const labelFor = computed(() => {
|
|
29563
|
+
const labelFor = computed$1(() => {
|
|
29369
29564
|
return props.for || inputIds.value.length === 1 ? inputIds.value[0] : void 0;
|
|
29370
29565
|
});
|
|
29371
|
-
const isGroup = computed(() => {
|
|
29566
|
+
const isGroup = computed$1(() => {
|
|
29372
29567
|
return !labelFor.value && hasLabel.value;
|
|
29373
29568
|
});
|
|
29374
29569
|
const isNested = !!parentFormItemContext;
|
|
29375
|
-
const fieldValue = computed(() => {
|
|
29570
|
+
const fieldValue = computed$1(() => {
|
|
29376
29571
|
const model = formContext == null ? void 0 : formContext.model;
|
|
29377
29572
|
if (!model || !props.prop) {
|
|
29378
29573
|
return;
|
|
29379
29574
|
}
|
|
29380
29575
|
return getProp(model, props.prop).value;
|
|
29381
29576
|
});
|
|
29382
|
-
const _rules = computed(() => {
|
|
29577
|
+
const _rules = computed$1(() => {
|
|
29383
29578
|
const rules = props.rules ? castArray$1(props.rules) : [];
|
|
29384
29579
|
const formRules = formContext == null ? void 0 : formContext.rules;
|
|
29385
29580
|
if (formRules && props.prop) {
|
|
@@ -29393,7 +29588,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
29393
29588
|
}
|
|
29394
29589
|
return rules;
|
|
29395
29590
|
});
|
|
29396
|
-
const validateEnabled = computed(() => _rules.value.length > 0);
|
|
29591
|
+
const validateEnabled = computed$1(() => _rules.value.length > 0);
|
|
29397
29592
|
const getFilteredRule = (trigger) => {
|
|
29398
29593
|
const rules = _rules.value;
|
|
29399
29594
|
return rules.filter((rule) => {
|
|
@@ -29406,12 +29601,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
29406
29601
|
}
|
|
29407
29602
|
}).map(({ trigger: trigger2, ...rule }) => rule);
|
|
29408
29603
|
};
|
|
29409
|
-
const isRequired = computed(() => _rules.value.some((rule) => rule.required === true));
|
|
29410
|
-
const shouldShowError = computed(() => {
|
|
29604
|
+
const isRequired = computed$1(() => _rules.value.some((rule) => rule.required === true));
|
|
29605
|
+
const shouldShowError = computed$1(() => {
|
|
29411
29606
|
var _a;
|
|
29412
29607
|
return validateStateDebounced.value === "error" && props.showMessage && ((_a = formContext == null ? void 0 : formContext.showMessage) != null ? _a : true);
|
|
29413
29608
|
});
|
|
29414
|
-
const currentLabel = computed(() => `${props.label || ""}${(formContext == null ? void 0 : formContext.labelSuffix) || ""}`);
|
|
29609
|
+
const currentLabel = computed$1(() => `${props.label || ""}${(formContext == null ? void 0 : formContext.labelSuffix) || ""}`);
|
|
29415
29610
|
const setValidationState = (state) => {
|
|
29416
29611
|
validateState.value = state;
|
|
29417
29612
|
};
|
|
@@ -29662,20 +29857,20 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
29662
29857
|
offsetY: 0,
|
|
29663
29858
|
enableTransition: false
|
|
29664
29859
|
});
|
|
29665
|
-
const isSingle = computed(() => {
|
|
29860
|
+
const isSingle = computed$1(() => {
|
|
29666
29861
|
const { urlList } = props;
|
|
29667
29862
|
return urlList.length <= 1;
|
|
29668
29863
|
});
|
|
29669
|
-
const isFirst = computed(() => {
|
|
29864
|
+
const isFirst = computed$1(() => {
|
|
29670
29865
|
return index.value === 0;
|
|
29671
29866
|
});
|
|
29672
|
-
const isLast = computed(() => {
|
|
29867
|
+
const isLast = computed$1(() => {
|
|
29673
29868
|
return index.value === props.urlList.length - 1;
|
|
29674
29869
|
});
|
|
29675
|
-
const currentImg = computed(() => {
|
|
29870
|
+
const currentImg = computed$1(() => {
|
|
29676
29871
|
return props.urlList[index.value];
|
|
29677
29872
|
});
|
|
29678
|
-
const imgStyle = computed(() => {
|
|
29873
|
+
const imgStyle = computed$1(() => {
|
|
29679
29874
|
const { scale, deg, offsetX, offsetY, enableTransition } = transform.value;
|
|
29680
29875
|
let translateX = offsetX / scale;
|
|
29681
29876
|
let translateY = offsetY / scale;
|
|
@@ -29702,7 +29897,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
29702
29897
|
}
|
|
29703
29898
|
return style;
|
|
29704
29899
|
});
|
|
29705
|
-
const computedZIndex = computed(() => {
|
|
29900
|
+
const computedZIndex = computed$1(() => {
|
|
29706
29901
|
return isNumber(props.zIndex) ? props.zIndex : nextZIndex();
|
|
29707
29902
|
});
|
|
29708
29903
|
function hide() {
|
|
@@ -30064,7 +30259,8 @@ const imageEmits = {
|
|
|
30064
30259
|
load: (evt) => evt instanceof Event,
|
|
30065
30260
|
error: (evt) => evt instanceof Event,
|
|
30066
30261
|
switch: (val) => isNumber(val),
|
|
30067
|
-
close: () => true
|
|
30262
|
+
close: () => true,
|
|
30263
|
+
show: () => true
|
|
30068
30264
|
};
|
|
30069
30265
|
|
|
30070
30266
|
const _hoisted_1$r = ["src", "loading"];
|
|
@@ -30093,19 +30289,19 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
30093
30289
|
const supportLoading = isClient && "loading" in HTMLImageElement.prototype;
|
|
30094
30290
|
let stopScrollListener;
|
|
30095
30291
|
let stopWheelListener;
|
|
30096
|
-
const containerStyle = computed(() => rawAttrs.style);
|
|
30097
|
-
const imageStyle = computed(() => {
|
|
30292
|
+
const containerStyle = computed$1(() => rawAttrs.style);
|
|
30293
|
+
const imageStyle = computed$1(() => {
|
|
30098
30294
|
const { fit } = props;
|
|
30099
30295
|
if (isClient && fit) {
|
|
30100
30296
|
return { objectFit: fit };
|
|
30101
30297
|
}
|
|
30102
30298
|
return {};
|
|
30103
30299
|
});
|
|
30104
|
-
const preview = computed(() => {
|
|
30300
|
+
const preview = computed$1(() => {
|
|
30105
30301
|
const { previewSrcList } = props;
|
|
30106
30302
|
return Array.isArray(previewSrcList) && previewSrcList.length > 0;
|
|
30107
30303
|
});
|
|
30108
|
-
const imageIndex = computed(() => {
|
|
30304
|
+
const imageIndex = computed$1(() => {
|
|
30109
30305
|
const { previewSrcList, initialIndex } = props;
|
|
30110
30306
|
let previewIndex = initialIndex;
|
|
30111
30307
|
if (initialIndex > previewSrcList.length - 1) {
|
|
@@ -30113,7 +30309,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
30113
30309
|
}
|
|
30114
30310
|
return previewIndex;
|
|
30115
30311
|
});
|
|
30116
|
-
const isManual = computed(() => {
|
|
30312
|
+
const isManual = computed$1(() => {
|
|
30117
30313
|
if (props.loading === "eager")
|
|
30118
30314
|
return false;
|
|
30119
30315
|
return !supportLoading && props.loading === "lazy" || props.lazy;
|
|
@@ -30186,6 +30382,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
30186
30382
|
prevOverflow = document.body.style.overflow;
|
|
30187
30383
|
document.body.style.overflow = "hidden";
|
|
30188
30384
|
showViewer.value = true;
|
|
30385
|
+
emit("show");
|
|
30189
30386
|
}
|
|
30190
30387
|
function closeViewer() {
|
|
30191
30388
|
stopWheelListener == null ? void 0 : stopWheelListener();
|
|
@@ -30350,9 +30547,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
30350
30547
|
userInput: null
|
|
30351
30548
|
});
|
|
30352
30549
|
const { formItem } = useFormItem();
|
|
30353
|
-
const minDisabled = computed(() => isNumber(props.modelValue) && ensurePrecision(props.modelValue, -1) < props.min);
|
|
30354
|
-
const maxDisabled = computed(() => isNumber(props.modelValue) && ensurePrecision(props.modelValue) > props.max);
|
|
30355
|
-
const numPrecision = computed(() => {
|
|
30550
|
+
const minDisabled = computed$1(() => isNumber(props.modelValue) && ensurePrecision(props.modelValue, -1) < props.min);
|
|
30551
|
+
const maxDisabled = computed$1(() => isNumber(props.modelValue) && ensurePrecision(props.modelValue) > props.max);
|
|
30552
|
+
const numPrecision = computed$1(() => {
|
|
30356
30553
|
const stepPrecision = getPrecision(props.step);
|
|
30357
30554
|
if (!isUndefined(props.precision)) {
|
|
30358
30555
|
if (stepPrecision > props.precision) ;
|
|
@@ -30361,12 +30558,12 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
30361
30558
|
return Math.max(getPrecision(props.modelValue), stepPrecision);
|
|
30362
30559
|
}
|
|
30363
30560
|
});
|
|
30364
|
-
const controlsAtRight = computed(() => {
|
|
30561
|
+
const controlsAtRight = computed$1(() => {
|
|
30365
30562
|
return props.controls && props.controlsPosition === "right";
|
|
30366
30563
|
});
|
|
30367
30564
|
const inputNumberSize = useSize();
|
|
30368
30565
|
const inputNumberDisabled = useDisabled$1();
|
|
30369
|
-
const displayValue = computed(() => {
|
|
30566
|
+
const displayValue = computed$1(() => {
|
|
30370
30567
|
if (data.userInput !== null) {
|
|
30371
30568
|
return data.userInput;
|
|
30372
30569
|
}
|
|
@@ -30859,7 +31056,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30859
31056
|
var ElMenuCollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$h], ["__file", "menu-collapse-transition.vue"]]);
|
|
30860
31057
|
|
|
30861
31058
|
function useMenu(instance, currentIndex) {
|
|
30862
|
-
const indexPath = computed(() => {
|
|
31059
|
+
const indexPath = computed$1(() => {
|
|
30863
31060
|
let parent = instance.parent;
|
|
30864
31061
|
const path = [currentIndex.value];
|
|
30865
31062
|
while (parent.type.name !== "ElMenu") {
|
|
@@ -30870,7 +31067,7 @@ function useMenu(instance, currentIndex) {
|
|
|
30870
31067
|
}
|
|
30871
31068
|
return path;
|
|
30872
31069
|
});
|
|
30873
|
-
const parentMenu = computed(() => {
|
|
31070
|
+
const parentMenu = computed$1(() => {
|
|
30874
31071
|
let parent = instance.parent;
|
|
30875
31072
|
while (parent && !["ElMenu", "ElSubMenu"].includes(parent.type.name)) {
|
|
30876
31073
|
parent = parent.parent;
|
|
@@ -30884,7 +31081,7 @@ function useMenu(instance, currentIndex) {
|
|
|
30884
31081
|
}
|
|
30885
31082
|
|
|
30886
31083
|
function useMenuColor(props) {
|
|
30887
|
-
const menuBarColor = computed(() => {
|
|
31084
|
+
const menuBarColor = computed$1(() => {
|
|
30888
31085
|
const color = props.backgroundColor;
|
|
30889
31086
|
if (!color) {
|
|
30890
31087
|
return "";
|
|
@@ -30897,7 +31094,7 @@ function useMenuColor(props) {
|
|
|
30897
31094
|
|
|
30898
31095
|
const useMenuCssVar = (props, level) => {
|
|
30899
31096
|
const ns = useNamespace("menu");
|
|
30900
|
-
return computed(() => {
|
|
31097
|
+
return computed$1(() => {
|
|
30901
31098
|
return ns.cssVarBlock({
|
|
30902
31099
|
"text-color": props.textColor || "",
|
|
30903
31100
|
"hover-text-color": props.textColor || "",
|
|
@@ -30939,7 +31136,7 @@ var SubMenu = defineComponent({
|
|
|
30939
31136
|
props: subMenuProps,
|
|
30940
31137
|
setup(props, { slots, expose }) {
|
|
30941
31138
|
const instance = getCurrentInstance();
|
|
30942
|
-
const { indexPath, parentMenu } = useMenu(instance, computed(() => props.index));
|
|
31139
|
+
const { indexPath, parentMenu } = useMenu(instance, computed$1(() => props.index));
|
|
30943
31140
|
const nsMenu = useNamespace("menu");
|
|
30944
31141
|
const nsSubMenu = useNamespace("sub-menu");
|
|
30945
31142
|
const rootMenu = inject("rootMenu");
|
|
@@ -30954,18 +31151,18 @@ var SubMenu = defineComponent({
|
|
|
30954
31151
|
const mouseInChild = ref(false);
|
|
30955
31152
|
const verticalTitleRef = ref();
|
|
30956
31153
|
const vPopper = ref(null);
|
|
30957
|
-
const currentPlacement = computed(() => mode.value === "horizontal" && isFirstLevel.value ? "bottom-start" : "right-start");
|
|
30958
|
-
const subMenuTitleIcon = computed(() => {
|
|
31154
|
+
const currentPlacement = computed$1(() => mode.value === "horizontal" && isFirstLevel.value ? "bottom-start" : "right-start");
|
|
31155
|
+
const subMenuTitleIcon = computed$1(() => {
|
|
30959
31156
|
return mode.value === "horizontal" && isFirstLevel.value || mode.value === "vertical" && !rootMenu.props.collapse ? arrow_down_default : arrow_right_default;
|
|
30960
31157
|
});
|
|
30961
|
-
const isFirstLevel = computed(() => {
|
|
31158
|
+
const isFirstLevel = computed$1(() => {
|
|
30962
31159
|
return subMenu.level === 0;
|
|
30963
31160
|
});
|
|
30964
|
-
const appendToBody = computed(() => {
|
|
31161
|
+
const appendToBody = computed$1(() => {
|
|
30965
31162
|
return props.popperAppendToBody === void 0 ? isFirstLevel.value : Boolean(props.popperAppendToBody);
|
|
30966
31163
|
});
|
|
30967
|
-
const menuTransitionName = computed(() => rootMenu.props.collapse ? `${nsMenu.namespace.value}-zoom-in-left` : `${nsMenu.namespace.value}-zoom-in-top`);
|
|
30968
|
-
const fallbackPlacements = computed(() => mode.value === "horizontal" && isFirstLevel.value ? [
|
|
31164
|
+
const menuTransitionName = computed$1(() => rootMenu.props.collapse ? `${nsMenu.namespace.value}-zoom-in-left` : `${nsMenu.namespace.value}-zoom-in-top`);
|
|
31165
|
+
const fallbackPlacements = computed$1(() => mode.value === "horizontal" && isFirstLevel.value ? [
|
|
30969
31166
|
"bottom-start",
|
|
30970
31167
|
"bottom-end",
|
|
30971
31168
|
"top-start",
|
|
@@ -30980,8 +31177,8 @@ var SubMenu = defineComponent({
|
|
|
30980
31177
|
"top-start",
|
|
30981
31178
|
"top-end"
|
|
30982
31179
|
]);
|
|
30983
|
-
const opened = computed(() => rootMenu.openedMenus.includes(props.index));
|
|
30984
|
-
const active = computed(() => {
|
|
31180
|
+
const opened = computed$1(() => rootMenu.openedMenus.includes(props.index));
|
|
31181
|
+
const active = computed$1(() => {
|
|
30985
31182
|
let isActive = false;
|
|
30986
31183
|
Object.values(items.value).forEach((item2) => {
|
|
30987
31184
|
if (item2.active) {
|
|
@@ -30995,16 +31192,16 @@ var SubMenu = defineComponent({
|
|
|
30995
31192
|
});
|
|
30996
31193
|
return isActive;
|
|
30997
31194
|
});
|
|
30998
|
-
const backgroundColor = computed(() => rootMenu.props.backgroundColor || "");
|
|
30999
|
-
const activeTextColor = computed(() => rootMenu.props.activeTextColor || "");
|
|
31000
|
-
const textColor = computed(() => rootMenu.props.textColor || "");
|
|
31001
|
-
const mode = computed(() => rootMenu.props.mode);
|
|
31195
|
+
const backgroundColor = computed$1(() => rootMenu.props.backgroundColor || "");
|
|
31196
|
+
const activeTextColor = computed$1(() => rootMenu.props.activeTextColor || "");
|
|
31197
|
+
const textColor = computed$1(() => rootMenu.props.textColor || "");
|
|
31198
|
+
const mode = computed$1(() => rootMenu.props.mode);
|
|
31002
31199
|
const item = reactive({
|
|
31003
31200
|
index: props.index,
|
|
31004
31201
|
indexPath,
|
|
31005
31202
|
active
|
|
31006
31203
|
});
|
|
31007
|
-
const titleStyle = computed(() => {
|
|
31204
|
+
const titleStyle = computed$1(() => {
|
|
31008
31205
|
if (mode.value !== "horizontal") {
|
|
31009
31206
|
return {
|
|
31010
31207
|
color: textColor.value
|
|
@@ -31238,7 +31435,7 @@ var Menu = defineComponent({
|
|
|
31238
31435
|
const activeIndex = ref(props.defaultActive);
|
|
31239
31436
|
const items = ref({});
|
|
31240
31437
|
const subMenus = ref({});
|
|
31241
|
-
const isMenuPopup = computed(() => {
|
|
31438
|
+
const isMenuPopup = computed$1(() => {
|
|
31242
31439
|
return props.mode === "horizontal" || props.mode === "vertical" && props.collapse;
|
|
31243
31440
|
});
|
|
31244
31441
|
const initMenu = () => {
|
|
@@ -31317,11 +31514,6 @@ var Menu = defineComponent({
|
|
|
31317
31514
|
}
|
|
31318
31515
|
updateActiveIndex(currentActive);
|
|
31319
31516
|
});
|
|
31320
|
-
watch(items.value, () => {
|
|
31321
|
-
initMenu();
|
|
31322
|
-
if (props.mode === "horizontal" && props.ellipsis)
|
|
31323
|
-
handleResize();
|
|
31324
|
-
});
|
|
31325
31517
|
watch(() => props.collapse, (value) => {
|
|
31326
31518
|
if (value)
|
|
31327
31519
|
openedMenus.value = [];
|
|
@@ -31485,7 +31677,7 @@ const _sfc_main$T = defineComponent({
|
|
|
31485
31677
|
const subMenu = inject(`subMenu:${parentMenu.value.uid}`);
|
|
31486
31678
|
if (!subMenu)
|
|
31487
31679
|
throwError(COMPONENT_NAME$7, "can not inject sub menu");
|
|
31488
|
-
const active = computed(() => props.index === rootMenu.activeIndex);
|
|
31680
|
+
const active = computed$1(() => props.index === rootMenu.activeIndex);
|
|
31489
31681
|
const item = reactive({
|
|
31490
31682
|
index: props.index,
|
|
31491
31683
|
indexPath,
|
|
@@ -31697,7 +31889,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
31697
31889
|
emits: paginationPrevEmits,
|
|
31698
31890
|
setup(__props) {
|
|
31699
31891
|
const props = __props;
|
|
31700
|
-
const internalDisabled = computed(() => props.disabled || props.currentPage <= 1);
|
|
31892
|
+
const internalDisabled = computed$1(() => props.disabled || props.currentPage <= 1);
|
|
31701
31893
|
return (_ctx, _cache) => {
|
|
31702
31894
|
return openBlock(), createElementBlock("button", {
|
|
31703
31895
|
type: "button",
|
|
@@ -31744,7 +31936,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
31744
31936
|
emits: ["click"],
|
|
31745
31937
|
setup(__props) {
|
|
31746
31938
|
const props = __props;
|
|
31747
|
-
const internalDisabled = computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
|
|
31939
|
+
const internalDisabled = computed$1(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
|
|
31748
31940
|
return (_ctx, _cache) => {
|
|
31749
31941
|
return openBlock(), createElementBlock("button", {
|
|
31750
31942
|
type: "button",
|
|
@@ -31771,17 +31963,17 @@ const selectKey = "ElSelect";
|
|
|
31771
31963
|
function useOption$1(props, states) {
|
|
31772
31964
|
const select = inject(selectKey);
|
|
31773
31965
|
const selectGroup = inject(selectGroupKey, { disabled: false });
|
|
31774
|
-
const isObject = computed(() => {
|
|
31966
|
+
const isObject = computed$1(() => {
|
|
31775
31967
|
return Object.prototype.toString.call(props.value).toLowerCase() === "[object object]";
|
|
31776
31968
|
});
|
|
31777
|
-
const itemSelected = computed(() => {
|
|
31969
|
+
const itemSelected = computed$1(() => {
|
|
31778
31970
|
if (!select.props.multiple) {
|
|
31779
31971
|
return isEqual(props.value, select.props.modelValue);
|
|
31780
31972
|
} else {
|
|
31781
31973
|
return contains(select.props.modelValue, props.value);
|
|
31782
31974
|
}
|
|
31783
31975
|
});
|
|
31784
|
-
const limitReached = computed(() => {
|
|
31976
|
+
const limitReached = computed$1(() => {
|
|
31785
31977
|
if (select.props.multiple) {
|
|
31786
31978
|
const modelValue = select.props.modelValue || [];
|
|
31787
31979
|
return !itemSelected.value && modelValue.length >= select.props.multipleLimit && select.props.multipleLimit > 0;
|
|
@@ -31789,13 +31981,13 @@ function useOption$1(props, states) {
|
|
|
31789
31981
|
return false;
|
|
31790
31982
|
}
|
|
31791
31983
|
});
|
|
31792
|
-
const currentLabel = computed(() => {
|
|
31984
|
+
const currentLabel = computed$1(() => {
|
|
31793
31985
|
return props.label || (isObject.value ? "" : props.value);
|
|
31794
31986
|
});
|
|
31795
|
-
const currentValue = computed(() => {
|
|
31987
|
+
const currentValue = computed$1(() => {
|
|
31796
31988
|
return props.value || props.label || "";
|
|
31797
31989
|
});
|
|
31798
|
-
const isDisabled = computed(() => {
|
|
31990
|
+
const isDisabled = computed$1(() => {
|
|
31799
31991
|
return props.disabled || states.groupDisabled || limitReached.value;
|
|
31800
31992
|
});
|
|
31801
31993
|
const instance = getCurrentInstance();
|
|
@@ -31838,7 +32030,7 @@ function useOption$1(props, states) {
|
|
|
31838
32030
|
watch(() => selectGroup.disabled, () => {
|
|
31839
32031
|
states.groupDisabled = selectGroup.disabled;
|
|
31840
32032
|
}, { immediate: true });
|
|
31841
|
-
const { queryChange } = toRaw(select);
|
|
32033
|
+
const { queryChange } = toRaw$1(select);
|
|
31842
32034
|
watch(queryChange, (changes) => {
|
|
31843
32035
|
const { query } = unref(changes);
|
|
31844
32036
|
const regexp = new RegExp(escapeStringRegexp(query), "i");
|
|
@@ -31946,9 +32138,9 @@ const _sfc_main$N = defineComponent({
|
|
|
31946
32138
|
setup() {
|
|
31947
32139
|
const select = inject(selectKey);
|
|
31948
32140
|
const ns = useNamespace("select");
|
|
31949
|
-
const popperClass = computed(() => select.props.popperClass);
|
|
31950
|
-
const isMultiple = computed(() => select.props.multiple);
|
|
31951
|
-
const isFitInputWidth = computed(() => select.props.fitInputWidth);
|
|
32141
|
+
const popperClass = computed$1(() => select.props.popperClass);
|
|
32142
|
+
const isMultiple = computed$1(() => select.props.multiple);
|
|
32143
|
+
const isFitInputWidth = computed$1(() => select.props.fitInputWidth);
|
|
31952
32144
|
const minWidth = ref("");
|
|
31953
32145
|
function updateMinWidth() {
|
|
31954
32146
|
var _a;
|
|
@@ -32019,17 +32211,17 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
32019
32211
|
const groupQueryChange = shallowRef("");
|
|
32020
32212
|
const elForm = inject(formContextKey, {});
|
|
32021
32213
|
const elFormItem = inject(formItemContextKey, {});
|
|
32022
|
-
const readonly = computed(() => !props.filterable || props.multiple || !states.visible);
|
|
32023
|
-
const selectDisabled = computed(() => props.disabled || elForm.disabled);
|
|
32024
|
-
const showClose = computed(() => {
|
|
32214
|
+
const readonly = computed$1(() => !props.filterable || props.multiple || !states.visible);
|
|
32215
|
+
const selectDisabled = computed$1(() => props.disabled || elForm.disabled);
|
|
32216
|
+
const showClose = computed$1(() => {
|
|
32025
32217
|
const hasValue = props.multiple ? Array.isArray(props.modelValue) && props.modelValue.length > 0 : props.modelValue !== void 0 && props.modelValue !== null && props.modelValue !== "";
|
|
32026
32218
|
const criteria = props.clearable && !selectDisabled.value && states.inputHovering && hasValue;
|
|
32027
32219
|
return criteria;
|
|
32028
32220
|
});
|
|
32029
|
-
const iconComponent = computed(() => props.remote && props.filterable ? "" : props.suffixIcon);
|
|
32030
|
-
const iconReverse = computed(() => ns.is("reverse", iconComponent.value && states.visible));
|
|
32031
|
-
const debounce$1 = computed(() => props.remote ? 300 : 0);
|
|
32032
|
-
const emptyText = computed(() => {
|
|
32221
|
+
const iconComponent = computed$1(() => props.remote && props.filterable ? "" : props.suffixIcon);
|
|
32222
|
+
const iconReverse = computed$1(() => ns.is("reverse", iconComponent.value && states.visible));
|
|
32223
|
+
const debounce$1 = computed$1(() => props.remote ? 300 : 0);
|
|
32224
|
+
const emptyText = computed$1(() => {
|
|
32033
32225
|
if (props.loading) {
|
|
32034
32226
|
return props.loadingText || t("el.select.loading");
|
|
32035
32227
|
} else {
|
|
@@ -32044,9 +32236,9 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
32044
32236
|
}
|
|
32045
32237
|
return null;
|
|
32046
32238
|
});
|
|
32047
|
-
const optionsArray = computed(() => Array.from(states.options.values()));
|
|
32048
|
-
const cachedOptionsArray = computed(() => Array.from(states.cachedOptions.values()));
|
|
32049
|
-
const showNewOption = computed(() => {
|
|
32239
|
+
const optionsArray = computed$1(() => Array.from(states.options.values()));
|
|
32240
|
+
const cachedOptionsArray = computed$1(() => Array.from(states.cachedOptions.values()));
|
|
32241
|
+
const showNewOption = computed$1(() => {
|
|
32050
32242
|
const hasExistingOption = optionsArray.value.filter((option) => {
|
|
32051
32243
|
return !option.created;
|
|
32052
32244
|
}).some((option) => {
|
|
@@ -32055,8 +32247,8 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
32055
32247
|
return props.filterable && props.allowCreate && states.query !== "" && !hasExistingOption;
|
|
32056
32248
|
});
|
|
32057
32249
|
const selectSize = useSize();
|
|
32058
|
-
const collapseTagSize = computed(() => ["small"].includes(selectSize.value) ? "small" : "default");
|
|
32059
|
-
const dropMenuVisible = computed({
|
|
32250
|
+
const collapseTagSize = computed$1(() => ["small"].includes(selectSize.value) ? "small" : "default");
|
|
32251
|
+
const dropMenuVisible = computed$1({
|
|
32060
32252
|
get() {
|
|
32061
32253
|
return states.visible && emptyText.value !== false;
|
|
32062
32254
|
},
|
|
@@ -32565,7 +32757,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
32565
32757
|
const getValueKey = (item) => {
|
|
32566
32758
|
return isObject$1(item.value) ? get(item.value, props.valueKey) : item.value;
|
|
32567
32759
|
};
|
|
32568
|
-
const optionsAllDisabled = computed(() => optionsArray.value.filter((option) => option.visible).every((option) => option.disabled));
|
|
32760
|
+
const optionsAllDisabled = computed$1(() => optionsArray.value.filter((option) => option.visible).every((option) => option.disabled));
|
|
32569
32761
|
const navigateOptions = (direction) => {
|
|
32570
32762
|
if (!states.visible) {
|
|
32571
32763
|
states.visible = true;
|
|
@@ -32822,7 +33014,7 @@ const _sfc_main$M = defineComponent({
|
|
|
32822
33014
|
prefixWidth,
|
|
32823
33015
|
tagInMultiLine
|
|
32824
33016
|
} = toRefs(states);
|
|
32825
|
-
const wrapperKls = computed(() => {
|
|
33017
|
+
const wrapperKls = computed$1(() => {
|
|
32826
33018
|
const classList = [nsSelect.b()];
|
|
32827
33019
|
const _selectSize = unref(selectSize);
|
|
32828
33020
|
if (_selectSize) {
|
|
@@ -32833,7 +33025,7 @@ const _sfc_main$M = defineComponent({
|
|
|
32833
33025
|
}
|
|
32834
33026
|
return classList;
|
|
32835
33027
|
});
|
|
32836
|
-
const selectTagsStyle = computed(() => ({
|
|
33028
|
+
const selectTagsStyle = computed$1(() => ({
|
|
32837
33029
|
maxWidth: `${unref(inputWidth) - 32}px`,
|
|
32838
33030
|
width: "100%"
|
|
32839
33031
|
}));
|
|
@@ -32881,7 +33073,7 @@ const _sfc_main$M = defineComponent({
|
|
|
32881
33073
|
if (!props.multiple && Array.isArray(props.modelValue)) {
|
|
32882
33074
|
ctx.emit(UPDATE_MODEL_EVENT, "");
|
|
32883
33075
|
}
|
|
32884
|
-
const popperPaneRef = computed(() => {
|
|
33076
|
+
const popperPaneRef = computed$1(() => {
|
|
32885
33077
|
var _a, _b;
|
|
32886
33078
|
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
32887
33079
|
});
|
|
@@ -32966,12 +33158,11 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32966
33158
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
32967
33159
|
ref: "selectWrapper",
|
|
32968
33160
|
class: normalizeClass(_ctx.wrapperKls),
|
|
32969
|
-
onClick: _cache[
|
|
33161
|
+
onClick: _cache[22] || (_cache[22] = withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"]))
|
|
32970
33162
|
}, [
|
|
32971
33163
|
createVNode(_component_el_tooltip, {
|
|
32972
33164
|
ref: "tooltipRef",
|
|
32973
33165
|
visible: _ctx.dropMenuVisible,
|
|
32974
|
-
"onUpdate:visible": _cache[22] || (_cache[22] = ($event) => _ctx.dropMenuVisible = $event),
|
|
32975
33166
|
placement: "bottom-start",
|
|
32976
33167
|
teleported: _ctx.teleported,
|
|
32977
33168
|
"popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
|
|
@@ -33294,7 +33485,7 @@ const _sfc_main$L = defineComponent({
|
|
|
33294
33485
|
}
|
|
33295
33486
|
return children2;
|
|
33296
33487
|
};
|
|
33297
|
-
const { groupQueryChange } = toRaw(select);
|
|
33488
|
+
const { groupQueryChange } = toRaw$1(select);
|
|
33298
33489
|
watch(groupQueryChange, () => {
|
|
33299
33490
|
visible.value = children.value.some((option) => option.visible === true);
|
|
33300
33491
|
});
|
|
@@ -33376,7 +33567,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
33376
33567
|
watch(() => props.pageSize, (newVal) => {
|
|
33377
33568
|
innerPageSize.value = newVal;
|
|
33378
33569
|
});
|
|
33379
|
-
const innerPageSizes = computed(() => props.pageSizes);
|
|
33570
|
+
const innerPageSizes = computed$1(() => props.pageSizes);
|
|
33380
33571
|
function handleChange(val) {
|
|
33381
33572
|
var _a;
|
|
33382
33573
|
if (val !== innerPageSize.value) {
|
|
@@ -33423,7 +33614,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
33423
33614
|
const ns = useNamespace("pagination");
|
|
33424
33615
|
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
33425
33616
|
const userInput = ref();
|
|
33426
|
-
const innerValue = computed(() => {
|
|
33617
|
+
const innerValue = computed$1(() => {
|
|
33427
33618
|
var _a;
|
|
33428
33619
|
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
33429
33620
|
});
|
|
@@ -33528,7 +33719,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
33528
33719
|
const quickNextHover = ref(false);
|
|
33529
33720
|
const quickPrevFocus = ref(false);
|
|
33530
33721
|
const quickNextFocus = ref(false);
|
|
33531
|
-
const pagers = computed(() => {
|
|
33722
|
+
const pagers = computed$1(() => {
|
|
33532
33723
|
const pagerCount = props.pagerCount;
|
|
33533
33724
|
const halfPagerCount = (pagerCount - 1) / 2;
|
|
33534
33725
|
const currentPage = Number(props.currentPage);
|
|
@@ -33565,7 +33756,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
33565
33756
|
}
|
|
33566
33757
|
return array;
|
|
33567
33758
|
});
|
|
33568
|
-
const tabindex = computed(() => props.disabled ? -1 : 0);
|
|
33759
|
+
const tabindex = computed$1(() => props.disabled ? -1 : 0);
|
|
33569
33760
|
watchEffect(() => {
|
|
33570
33761
|
const halfPagerCount = (props.pagerCount - 1) / 2;
|
|
33571
33762
|
showPrevMore.value = false;
|
|
@@ -33766,7 +33957,7 @@ var Pagination = defineComponent({
|
|
|
33766
33957
|
const vnodeProps = getCurrentInstance().vnode.props || {};
|
|
33767
33958
|
const hasCurrentPageListener = "onUpdate:currentPage" in vnodeProps || "onUpdate:current-page" in vnodeProps || "onCurrentChange" in vnodeProps;
|
|
33768
33959
|
const hasPageSizeListener = "onUpdate:pageSize" in vnodeProps || "onUpdate:page-size" in vnodeProps || "onSizeChange" in vnodeProps;
|
|
33769
|
-
const assertValidUsage = computed(() => {
|
|
33960
|
+
const assertValidUsage = computed$1(() => {
|
|
33770
33961
|
if (isAbsent(props.total) && isAbsent(props.pageCount))
|
|
33771
33962
|
return false;
|
|
33772
33963
|
if (!isAbsent(props.currentPage) && !hasCurrentPageListener)
|
|
@@ -33787,7 +33978,7 @@ var Pagination = defineComponent({
|
|
|
33787
33978
|
});
|
|
33788
33979
|
const innerPageSize = ref(isAbsent(props.defaultPageSize) ? 10 : props.defaultPageSize);
|
|
33789
33980
|
const innerCurrentPage = ref(isAbsent(props.defaultCurrentPage) ? 1 : props.defaultCurrentPage);
|
|
33790
|
-
const pageSizeBridge = computed({
|
|
33981
|
+
const pageSizeBridge = computed$1({
|
|
33791
33982
|
get() {
|
|
33792
33983
|
return isAbsent(props.pageSize) ? innerPageSize.value : props.pageSize;
|
|
33793
33984
|
},
|
|
@@ -33801,7 +33992,7 @@ var Pagination = defineComponent({
|
|
|
33801
33992
|
}
|
|
33802
33993
|
}
|
|
33803
33994
|
});
|
|
33804
|
-
const pageCountBridge = computed(() => {
|
|
33995
|
+
const pageCountBridge = computed$1(() => {
|
|
33805
33996
|
let pageCount = 0;
|
|
33806
33997
|
if (!isAbsent(props.pageCount)) {
|
|
33807
33998
|
pageCount = props.pageCount;
|
|
@@ -33810,7 +34001,7 @@ var Pagination = defineComponent({
|
|
|
33810
34001
|
}
|
|
33811
34002
|
return pageCount;
|
|
33812
34003
|
});
|
|
33813
|
-
const currentPageBridge = computed({
|
|
34004
|
+
const currentPageBridge = computed$1({
|
|
33814
34005
|
get() {
|
|
33815
34006
|
return isAbsent(props.currentPage) ? innerCurrentPage.value : props.currentPage;
|
|
33816
34007
|
},
|
|
@@ -33866,7 +34057,7 @@ var Pagination = defineComponent({
|
|
|
33866
34057
|
}
|
|
33867
34058
|
provide(elPaginationKey, {
|
|
33868
34059
|
pageCount: pageCountBridge,
|
|
33869
|
-
disabled: computed(() => props.disabled),
|
|
34060
|
+
disabled: computed$1(() => props.disabled),
|
|
33870
34061
|
currentPage: currentPageBridge,
|
|
33871
34062
|
changeEvent: handleCurrentChange,
|
|
33872
34063
|
handleSizeChange
|
|
@@ -34018,8 +34209,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
34018
34209
|
(_a = props.onCancel) == null ? void 0 : _a.call(props, e);
|
|
34019
34210
|
hidePopper();
|
|
34020
34211
|
};
|
|
34021
|
-
const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
34022
|
-
const finalCancelButtonText = computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
|
|
34212
|
+
const finalConfirmButtonText = computed$1(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
34213
|
+
const finalCancelButtonText = computed$1(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
|
|
34023
34214
|
return (_ctx, _cache) => {
|
|
34024
34215
|
return openBlock(), createBlock(unref(ElTooltip), {
|
|
34025
34216
|
ref_key: "tooltipRef",
|
|
@@ -34162,16 +34353,16 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
34162
34353
|
setup(__props, { expose, emit }) {
|
|
34163
34354
|
const props = __props;
|
|
34164
34355
|
const updateEventKeyRaw = `onUpdate:visible`;
|
|
34165
|
-
const onUpdateVisible = computed(() => {
|
|
34356
|
+
const onUpdateVisible = computed$1(() => {
|
|
34166
34357
|
return props[updateEventKeyRaw];
|
|
34167
34358
|
});
|
|
34168
34359
|
const ns = useNamespace("popover");
|
|
34169
34360
|
const tooltipRef = ref();
|
|
34170
|
-
const popperRef = computed(() => {
|
|
34361
|
+
const popperRef = computed$1(() => {
|
|
34171
34362
|
var _a;
|
|
34172
34363
|
return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
|
34173
34364
|
});
|
|
34174
|
-
const style = computed(() => {
|
|
34365
|
+
const style = computed$1(() => {
|
|
34175
34366
|
return [
|
|
34176
34367
|
{
|
|
34177
34368
|
width: addUnit(props.width)
|
|
@@ -34179,10 +34370,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
34179
34370
|
props.popperStyle
|
|
34180
34371
|
];
|
|
34181
34372
|
});
|
|
34182
|
-
const kls = computed(() => {
|
|
34373
|
+
const kls = computed$1(() => {
|
|
34183
34374
|
return [ns.b(), props.popperClass, { [ns.m("plain")]: !!props.content }];
|
|
34184
34375
|
});
|
|
34185
|
-
const gpuAcceleration = computed(() => {
|
|
34376
|
+
const gpuAcceleration = computed$1(() => {
|
|
34186
34377
|
return props.transition === "el-fade-in-linear";
|
|
34187
34378
|
});
|
|
34188
34379
|
const hide = () => {
|
|
@@ -34358,19 +34549,19 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
34358
34549
|
default: "#20a0ff"
|
|
34359
34550
|
};
|
|
34360
34551
|
const ns = useNamespace("progress");
|
|
34361
|
-
const barStyle = computed(() => ({
|
|
34552
|
+
const barStyle = computed$1(() => ({
|
|
34362
34553
|
width: `${props.percentage}%`,
|
|
34363
34554
|
animationDuration: `${props.duration}s`,
|
|
34364
34555
|
backgroundColor: getCurrentColor(props.percentage)
|
|
34365
34556
|
}));
|
|
34366
|
-
const relativeStrokeWidth = computed(() => (props.strokeWidth / props.width * 100).toFixed(1));
|
|
34367
|
-
const radius = computed(() => {
|
|
34557
|
+
const relativeStrokeWidth = computed$1(() => (props.strokeWidth / props.width * 100).toFixed(1));
|
|
34558
|
+
const radius = computed$1(() => {
|
|
34368
34559
|
if (["circle", "dashboard"].includes(props.type)) {
|
|
34369
34560
|
return Number.parseInt(`${50 - Number.parseFloat(relativeStrokeWidth.value) / 2}`, 10);
|
|
34370
34561
|
}
|
|
34371
34562
|
return 0;
|
|
34372
34563
|
});
|
|
34373
|
-
const trackPath = computed(() => {
|
|
34564
|
+
const trackPath = computed$1(() => {
|
|
34374
34565
|
const r = radius.value;
|
|
34375
34566
|
const isDashboard = props.type === "dashboard";
|
|
34376
34567
|
return `
|
|
@@ -34380,22 +34571,22 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
34380
34571
|
a ${r} ${r} 0 1 1 0 ${isDashboard ? "" : "-"}${r * 2}
|
|
34381
34572
|
`;
|
|
34382
34573
|
});
|
|
34383
|
-
const perimeter = computed(() => 2 * Math.PI * radius.value);
|
|
34384
|
-
const rate = computed(() => props.type === "dashboard" ? 0.75 : 1);
|
|
34385
|
-
const strokeDashoffset = computed(() => {
|
|
34574
|
+
const perimeter = computed$1(() => 2 * Math.PI * radius.value);
|
|
34575
|
+
const rate = computed$1(() => props.type === "dashboard" ? 0.75 : 1);
|
|
34576
|
+
const strokeDashoffset = computed$1(() => {
|
|
34386
34577
|
const offset = -1 * perimeter.value * (1 - rate.value) / 2;
|
|
34387
34578
|
return `${offset}px`;
|
|
34388
34579
|
});
|
|
34389
|
-
const trailPathStyle = computed(() => ({
|
|
34580
|
+
const trailPathStyle = computed$1(() => ({
|
|
34390
34581
|
strokeDasharray: `${perimeter.value * rate.value}px, ${perimeter.value}px`,
|
|
34391
34582
|
strokeDashoffset: strokeDashoffset.value
|
|
34392
34583
|
}));
|
|
34393
|
-
const circlePathStyle = computed(() => ({
|
|
34584
|
+
const circlePathStyle = computed$1(() => ({
|
|
34394
34585
|
strokeDasharray: `${perimeter.value * rate.value * (props.percentage / 100)}px, ${perimeter.value}px`,
|
|
34395
34586
|
strokeDashoffset: strokeDashoffset.value,
|
|
34396
34587
|
transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
|
|
34397
34588
|
}));
|
|
34398
|
-
const stroke = computed(() => {
|
|
34589
|
+
const stroke = computed$1(() => {
|
|
34399
34590
|
let ret;
|
|
34400
34591
|
if (props.color) {
|
|
34401
34592
|
ret = getCurrentColor(props.percentage);
|
|
@@ -34404,7 +34595,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
34404
34595
|
}
|
|
34405
34596
|
return ret;
|
|
34406
34597
|
});
|
|
34407
|
-
const statusIcon = computed(() => {
|
|
34598
|
+
const statusIcon = computed$1(() => {
|
|
34408
34599
|
if (props.status === "warning") {
|
|
34409
34600
|
return warning_filled_default;
|
|
34410
34601
|
}
|
|
@@ -34414,10 +34605,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
34414
34605
|
return props.status === "success" ? check_default : close_default;
|
|
34415
34606
|
}
|
|
34416
34607
|
});
|
|
34417
|
-
const progressTextSize = computed(() => {
|
|
34608
|
+
const progressTextSize = computed$1(() => {
|
|
34418
34609
|
return props.type === "line" ? 12 + props.strokeWidth * 0.4 : props.width * 0.111111 + 2;
|
|
34419
34610
|
});
|
|
34420
|
-
const content = computed(() => props.format(props.percentage));
|
|
34611
|
+
const content = computed$1(() => props.format(props.percentage));
|
|
34421
34612
|
function getColors(color) {
|
|
34422
34613
|
const span = 100 / color.length;
|
|
34423
34614
|
const seriesColors = color.map((seriesColor, index) => {
|
|
@@ -34656,16 +34847,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
34656
34847
|
const currentValue = ref(props.modelValue);
|
|
34657
34848
|
const hoverIndex = ref(-1);
|
|
34658
34849
|
const pointerAtLeftHalf = ref(true);
|
|
34659
|
-
const rateClasses = computed(() => [ns.b(), ns.m(rateSize.value)]);
|
|
34660
|
-
const rateDisabled = computed(() => props.disabled || (formContext == null ? void 0 : formContext.disabled));
|
|
34661
|
-
const rateStyles = computed(() => {
|
|
34850
|
+
const rateClasses = computed$1(() => [ns.b(), ns.m(rateSize.value)]);
|
|
34851
|
+
const rateDisabled = computed$1(() => props.disabled || (formContext == null ? void 0 : formContext.disabled));
|
|
34852
|
+
const rateStyles = computed$1(() => {
|
|
34662
34853
|
return ns.cssVarBlock({
|
|
34663
34854
|
"void-color": props.voidColor,
|
|
34664
34855
|
"disabled-void-color": props.disabledVoidColor,
|
|
34665
34856
|
"fill-color": activeColor.value
|
|
34666
34857
|
});
|
|
34667
34858
|
});
|
|
34668
|
-
const text = computed(() => {
|
|
34859
|
+
const text = computed$1(() => {
|
|
34669
34860
|
let result = "";
|
|
34670
34861
|
if (props.showScore) {
|
|
34671
34862
|
result = props.scoreTemplate.replace(/\{\s*value\s*\}/, rateDisabled.value ? `${props.modelValue}` : `${currentValue.value}`);
|
|
@@ -34674,17 +34865,17 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
34674
34865
|
}
|
|
34675
34866
|
return result;
|
|
34676
34867
|
});
|
|
34677
|
-
const valueDecimal = computed(() => props.modelValue * 100 - Math.floor(props.modelValue) * 100);
|
|
34678
|
-
const colorMap = computed(() => isArray(props.colors) ? {
|
|
34868
|
+
const valueDecimal = computed$1(() => props.modelValue * 100 - Math.floor(props.modelValue) * 100);
|
|
34869
|
+
const colorMap = computed$1(() => isArray(props.colors) ? {
|
|
34679
34870
|
[props.lowThreshold]: props.colors[0],
|
|
34680
34871
|
[props.highThreshold]: { value: props.colors[1], excluded: true },
|
|
34681
34872
|
[props.max]: props.colors[2]
|
|
34682
34873
|
} : props.colors);
|
|
34683
|
-
const activeColor = computed(() => {
|
|
34874
|
+
const activeColor = computed$1(() => {
|
|
34684
34875
|
const color = getValueFromMap(currentValue.value, colorMap.value);
|
|
34685
34876
|
return isObject$1(color) ? "" : color;
|
|
34686
34877
|
});
|
|
34687
|
-
const decimalStyle = computed(() => {
|
|
34878
|
+
const decimalStyle = computed$1(() => {
|
|
34688
34879
|
let width = "";
|
|
34689
34880
|
if (rateDisabled.value) {
|
|
34690
34881
|
width = `${valueDecimal.value}%`;
|
|
@@ -34696,7 +34887,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
34696
34887
|
width
|
|
34697
34888
|
};
|
|
34698
34889
|
});
|
|
34699
|
-
const componentMap = computed(() => isArray(props.icons) ? {
|
|
34890
|
+
const componentMap = computed$1(() => isArray(props.icons) ? {
|
|
34700
34891
|
[props.lowThreshold]: props.icons[0],
|
|
34701
34892
|
[props.highThreshold]: {
|
|
34702
34893
|
value: props.icons[1],
|
|
@@ -34704,10 +34895,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
34704
34895
|
},
|
|
34705
34896
|
[props.max]: props.icons[2]
|
|
34706
34897
|
} : props.icons);
|
|
34707
|
-
const decimalIconComponent = computed(() => getValueFromMap(props.modelValue, componentMap.value));
|
|
34708
|
-
const voidComponent = computed(() => rateDisabled.value ? props.disabledVoidIcon : props.voidIcon);
|
|
34709
|
-
const activeComponent = computed(() => getValueFromMap(currentValue.value, componentMap.value));
|
|
34710
|
-
const iconComponents = computed(() => {
|
|
34898
|
+
const decimalIconComponent = computed$1(() => getValueFromMap(props.modelValue, componentMap.value));
|
|
34899
|
+
const voidComponent = computed$1(() => rateDisabled.value ? props.disabledVoidIcon : props.voidIcon);
|
|
34900
|
+
const activeComponent = computed$1(() => getValueFromMap(currentValue.value, componentMap.value));
|
|
34901
|
+
const iconComponents = computed$1(() => {
|
|
34711
34902
|
const result = Array.from({ length: props.max });
|
|
34712
34903
|
const threshold = currentValue.value;
|
|
34713
34904
|
result.fill(activeComponent.value, 0, threshold);
|
|
@@ -34901,7 +35092,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
34901
35092
|
setup(__props) {
|
|
34902
35093
|
const props = __props;
|
|
34903
35094
|
const ns = useNamespace("result");
|
|
34904
|
-
const resultIcon = computed(() => {
|
|
35095
|
+
const resultIcon = computed$1(() => {
|
|
34905
35096
|
const icon = props.icon;
|
|
34906
35097
|
const iconClass = icon && IconMap[icon] ? IconMap[icon] : "icon-info";
|
|
34907
35098
|
const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
|
|
@@ -34993,11 +35184,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
34993
35184
|
setup(__props) {
|
|
34994
35185
|
const props = __props;
|
|
34995
35186
|
const ns = useNamespace("row");
|
|
34996
|
-
const gutter = computed(() => props.gutter);
|
|
35187
|
+
const gutter = computed$1(() => props.gutter);
|
|
34997
35188
|
provide(rowContextKey, {
|
|
34998
35189
|
gutter
|
|
34999
35190
|
});
|
|
35000
|
-
const style = computed(() => {
|
|
35191
|
+
const style = computed$1(() => {
|
|
35001
35192
|
const styles = {};
|
|
35002
35193
|
if (!props.gutter) {
|
|
35003
35194
|
return styles;
|
|
@@ -35079,7 +35270,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
35079
35270
|
const useCache = () => {
|
|
35080
35271
|
const vm = getCurrentInstance();
|
|
35081
35272
|
const props = vm.proxy.$props;
|
|
35082
|
-
return computed(() => {
|
|
35273
|
+
return computed$1(() => {
|
|
35083
35274
|
const _getItemStyleCache = (_, __, ___) => ({});
|
|
35084
35275
|
return props.perfMode ? memoize(_getItemStyleCache) : memoizeOne(_getItemStyleCache);
|
|
35085
35276
|
});
|
|
@@ -35323,7 +35514,7 @@ const ScrollBar = defineComponent({
|
|
|
35323
35514
|
props: virtualizedScrollbarProps,
|
|
35324
35515
|
emits: ["scroll", "start-move", "stop-move"],
|
|
35325
35516
|
setup(props, { emit }) {
|
|
35326
|
-
const GAP = computed(() => props.startGap + props.endGap);
|
|
35517
|
+
const GAP = computed$1(() => props.startGap + props.endGap);
|
|
35327
35518
|
const nsVirtualScrollbar = useNamespace("virtual-scrollbar");
|
|
35328
35519
|
const nsScrollbar = useNamespace("scrollbar");
|
|
35329
35520
|
const trackRef = ref();
|
|
@@ -35334,9 +35525,9 @@ const ScrollBar = defineComponent({
|
|
|
35334
35525
|
isDragging: false,
|
|
35335
35526
|
traveled: 0
|
|
35336
35527
|
});
|
|
35337
|
-
const bar = computed(() => BAR_MAP[props.layout]);
|
|
35338
|
-
const trackSize = computed(() => props.clientSize - unref(GAP));
|
|
35339
|
-
const trackStyle = computed(() => ({
|
|
35528
|
+
const bar = computed$1(() => BAR_MAP[props.layout]);
|
|
35529
|
+
const trackSize = computed$1(() => props.clientSize - unref(GAP));
|
|
35530
|
+
const trackStyle = computed$1(() => ({
|
|
35340
35531
|
position: "absolute",
|
|
35341
35532
|
width: `${HORIZONTAL === props.layout ? trackSize.value : props.scrollbarSize}px`,
|
|
35342
35533
|
height: `${HORIZONTAL === props.layout ? props.scrollbarSize : trackSize.value}px`,
|
|
@@ -35345,7 +35536,7 @@ const ScrollBar = defineComponent({
|
|
|
35345
35536
|
bottom: "2px",
|
|
35346
35537
|
borderRadius: "4px"
|
|
35347
35538
|
}));
|
|
35348
|
-
const thumbSize = computed(() => {
|
|
35539
|
+
const thumbSize = computed$1(() => {
|
|
35349
35540
|
const ratio = props.ratio;
|
|
35350
35541
|
const clientSize = props.clientSize;
|
|
35351
35542
|
if (ratio >= 100) {
|
|
@@ -35357,7 +35548,7 @@ const ScrollBar = defineComponent({
|
|
|
35357
35548
|
const SCROLLBAR_MAX_SIZE = clientSize / 3;
|
|
35358
35549
|
return Math.floor(Math.min(Math.max(ratio * clientSize, SCROLLBAR_MIN_SIZE), SCROLLBAR_MAX_SIZE));
|
|
35359
35550
|
});
|
|
35360
|
-
const thumbStyle = computed(() => {
|
|
35551
|
+
const thumbStyle = computed$1(() => {
|
|
35361
35552
|
if (!Number.isFinite(thumbSize.value)) {
|
|
35362
35553
|
return {
|
|
35363
35554
|
display: "none"
|
|
@@ -35371,7 +35562,7 @@ const ScrollBar = defineComponent({
|
|
|
35371
35562
|
}, props.layout);
|
|
35372
35563
|
return style;
|
|
35373
35564
|
});
|
|
35374
|
-
const totalSteps = computed(() => Math.floor(props.clientSize - thumbSize.value - unref(GAP)));
|
|
35565
|
+
const totalSteps = computed$1(() => Math.floor(props.clientSize - thumbSize.value - unref(GAP)));
|
|
35375
35566
|
const attachEvents = () => {
|
|
35376
35567
|
window.addEventListener("mousemove", onMouseMove);
|
|
35377
35568
|
window.addEventListener("mouseup", onMouseUp);
|
|
@@ -35499,7 +35690,7 @@ const createList = ({
|
|
|
35499
35690
|
isScrollbarDragging: false,
|
|
35500
35691
|
scrollbarAlwaysOn: props.scrollbarAlwaysOn
|
|
35501
35692
|
});
|
|
35502
|
-
const itemsToRender = computed(() => {
|
|
35693
|
+
const itemsToRender = computed$1(() => {
|
|
35503
35694
|
const { total, cache } = props;
|
|
35504
35695
|
const { isScrolling, scrollDir, scrollOffset } = unref(states);
|
|
35505
35696
|
if (total === 0) {
|
|
@@ -35516,9 +35707,9 @@ const createList = ({
|
|
|
35516
35707
|
stopIndex
|
|
35517
35708
|
];
|
|
35518
35709
|
});
|
|
35519
|
-
const estimatedTotalSize = computed(() => getEstimatedTotalSize(props, unref(dynamicSizeCache)));
|
|
35520
|
-
const _isHorizontal = computed(() => isHorizontal(props.layout));
|
|
35521
|
-
const windowStyle = computed(() => [
|
|
35710
|
+
const estimatedTotalSize = computed$1(() => getEstimatedTotalSize(props, unref(dynamicSizeCache)));
|
|
35711
|
+
const _isHorizontal = computed$1(() => isHorizontal(props.layout));
|
|
35712
|
+
const windowStyle = computed$1(() => [
|
|
35522
35713
|
{
|
|
35523
35714
|
position: "relative",
|
|
35524
35715
|
[`overflow-${_isHorizontal.value ? "x" : "y"}`]: "scroll",
|
|
@@ -35532,7 +35723,7 @@ const createList = ({
|
|
|
35532
35723
|
},
|
|
35533
35724
|
props.style
|
|
35534
35725
|
]);
|
|
35535
|
-
const innerStyle = computed(() => {
|
|
35726
|
+
const innerStyle = computed$1(() => {
|
|
35536
35727
|
const size = unref(estimatedTotalSize);
|
|
35537
35728
|
const horizontal = unref(_isHorizontal);
|
|
35538
35729
|
return {
|
|
@@ -35541,11 +35732,11 @@ const createList = ({
|
|
|
35541
35732
|
width: horizontal ? `${size}px` : "100%"
|
|
35542
35733
|
};
|
|
35543
35734
|
});
|
|
35544
|
-
const clientSize = computed(() => _isHorizontal.value ? props.width : props.height);
|
|
35735
|
+
const clientSize = computed$1(() => _isHorizontal.value ? props.width : props.height);
|
|
35545
35736
|
const { onWheel } = useWheel$1({
|
|
35546
|
-
atStartEdge: computed(() => states.value.scrollOffset <= 0),
|
|
35547
|
-
atEndEdge: computed(() => states.value.scrollOffset >= estimatedTotalSize.value),
|
|
35548
|
-
layout: computed(() => props.layout)
|
|
35737
|
+
atStartEdge: computed$1(() => states.value.scrollOffset <= 0),
|
|
35738
|
+
atEndEdge: computed$1(() => states.value.scrollOffset >= estimatedTotalSize.value),
|
|
35739
|
+
layout: computed$1(() => props.layout)
|
|
35549
35740
|
}, (offset) => {
|
|
35550
35741
|
var _a, _b;
|
|
35551
35742
|
(_b = (_a = scrollbarRef.value).onMouseUp) == null ? void 0 : _b.call(_a);
|
|
@@ -36097,9 +36288,9 @@ const createGrid = ({
|
|
|
36097
36288
|
yAxisScrollDir: FORWARD
|
|
36098
36289
|
});
|
|
36099
36290
|
const getItemStyleCache = useCache();
|
|
36100
|
-
const parsedHeight = computed(() => Number.parseInt(`${props.height}`, 10));
|
|
36101
|
-
const parsedWidth = computed(() => Number.parseInt(`${props.width}`, 10));
|
|
36102
|
-
const columnsToRender = computed(() => {
|
|
36291
|
+
const parsedHeight = computed$1(() => Number.parseInt(`${props.height}`, 10));
|
|
36292
|
+
const parsedWidth = computed$1(() => Number.parseInt(`${props.width}`, 10));
|
|
36293
|
+
const columnsToRender = computed$1(() => {
|
|
36103
36294
|
const { totalColumn, totalRow, columnCache } = props;
|
|
36104
36295
|
const { isScrolling, xAxisScrollDir, scrollLeft } = unref(states);
|
|
36105
36296
|
if (totalColumn === 0 || totalRow === 0) {
|
|
@@ -36116,7 +36307,7 @@ const createGrid = ({
|
|
|
36116
36307
|
stopIndex
|
|
36117
36308
|
];
|
|
36118
36309
|
});
|
|
36119
|
-
const rowsToRender = computed(() => {
|
|
36310
|
+
const rowsToRender = computed$1(() => {
|
|
36120
36311
|
const { totalColumn, totalRow, rowCache } = props;
|
|
36121
36312
|
const { isScrolling, yAxisScrollDir, scrollTop } = unref(states);
|
|
36122
36313
|
if (totalColumn === 0 || totalRow === 0) {
|
|
@@ -36133,9 +36324,9 @@ const createGrid = ({
|
|
|
36133
36324
|
stopIndex
|
|
36134
36325
|
];
|
|
36135
36326
|
});
|
|
36136
|
-
const estimatedTotalHeight = computed(() => getEstimatedTotalHeight(props, unref(cache)));
|
|
36137
|
-
const estimatedTotalWidth = computed(() => getEstimatedTotalWidth(props, unref(cache)));
|
|
36138
|
-
const windowStyle = computed(() => {
|
|
36327
|
+
const estimatedTotalHeight = computed$1(() => getEstimatedTotalHeight(props, unref(cache)));
|
|
36328
|
+
const estimatedTotalWidth = computed$1(() => getEstimatedTotalWidth(props, unref(cache)));
|
|
36329
|
+
const windowStyle = computed$1(() => {
|
|
36139
36330
|
var _a;
|
|
36140
36331
|
return [
|
|
36141
36332
|
{
|
|
@@ -36152,7 +36343,7 @@ const createGrid = ({
|
|
|
36152
36343
|
(_a = props.style) != null ? _a : {}
|
|
36153
36344
|
];
|
|
36154
36345
|
});
|
|
36155
|
-
const innerStyle = computed(() => {
|
|
36346
|
+
const innerStyle = computed$1(() => {
|
|
36156
36347
|
const width = `${unref(estimatedTotalWidth)}px`;
|
|
36157
36348
|
const height = `${unref(estimatedTotalHeight)}px`;
|
|
36158
36349
|
return {
|
|
@@ -36249,10 +36440,10 @@ const createGrid = ({
|
|
|
36249
36440
|
});
|
|
36250
36441
|
};
|
|
36251
36442
|
const { onWheel } = useGridWheel({
|
|
36252
|
-
atXStartEdge: computed(() => states.value.scrollLeft <= 0),
|
|
36253
|
-
atXEndEdge: computed(() => states.value.scrollLeft >= estimatedTotalWidth.value),
|
|
36254
|
-
atYStartEdge: computed(() => states.value.scrollTop <= 0),
|
|
36255
|
-
atYEndEdge: computed(() => states.value.scrollTop >= estimatedTotalHeight.value)
|
|
36443
|
+
atXStartEdge: computed$1(() => states.value.scrollLeft <= 0),
|
|
36444
|
+
atXEndEdge: computed$1(() => states.value.scrollLeft >= estimatedTotalWidth.value),
|
|
36445
|
+
atYStartEdge: computed$1(() => states.value.scrollTop <= 0),
|
|
36446
|
+
atYEndEdge: computed$1(() => states.value.scrollTop >= estimatedTotalHeight.value)
|
|
36256
36447
|
}, (x, y) => {
|
|
36257
36448
|
var _a, _b, _c, _d;
|
|
36258
36449
|
(_b = (_a = hScrollbar.value) == null ? void 0 : _a.onMouseUp) == null ? void 0 : _b.call(_a);
|
|
@@ -36290,7 +36481,7 @@ const createGrid = ({
|
|
|
36290
36481
|
const _states = unref(states);
|
|
36291
36482
|
columnIdx = Math.max(0, Math.min(columnIdx, props.totalColumn - 1));
|
|
36292
36483
|
rowIndex = Math.max(0, Math.min(rowIndex, props.totalRow - 1));
|
|
36293
|
-
const scrollBarWidth = getScrollBarWidth();
|
|
36484
|
+
const scrollBarWidth = getScrollBarWidth(ns.namespace.value);
|
|
36294
36485
|
const _cache = unref(cache);
|
|
36295
36486
|
const estimatedHeight = getEstimatedTotalHeight(props, _cache);
|
|
36296
36487
|
const estimatedWidth = getEstimatedTotalWidth(props, _cache);
|
|
@@ -37036,8 +37227,8 @@ var ElSelectMenu = defineComponent({
|
|
|
37036
37227
|
const ns = useNamespace("select");
|
|
37037
37228
|
const cachedHeights = ref([]);
|
|
37038
37229
|
const listRef = ref();
|
|
37039
|
-
const isSized = computed(() => isUndefined(select.props.estimatedOptionHeight));
|
|
37040
|
-
const listProps = computed(() => {
|
|
37230
|
+
const isSized = computed$1(() => isUndefined(select.props.estimatedOptionHeight));
|
|
37231
|
+
const listProps = computed$1(() => {
|
|
37041
37232
|
if (isSized.value) {
|
|
37042
37233
|
return {
|
|
37043
37234
|
itemSize: select.props.itemHeight
|
|
@@ -37244,7 +37435,7 @@ var ElSelectMenu = defineComponent({
|
|
|
37244
37435
|
function useAllowCreate(props, states) {
|
|
37245
37436
|
const createOptionCount = ref(0);
|
|
37246
37437
|
const cachedSelectedOption = ref(null);
|
|
37247
|
-
const enableAllowCreateMode = computed(() => {
|
|
37438
|
+
const enableAllowCreateMode = computed$1(() => {
|
|
37248
37439
|
return props.allowCreate && props.filterable;
|
|
37249
37440
|
});
|
|
37250
37441
|
function hasExistingOption(query) {
|
|
@@ -37406,25 +37597,25 @@ const useSelect$1 = (props, emit) => {
|
|
|
37406
37597
|
const selectionRef = ref(null);
|
|
37407
37598
|
const calculatorRef = ref(null);
|
|
37408
37599
|
const expanded = ref(false);
|
|
37409
|
-
const selectDisabled = computed(() => props.disabled || (elForm == null ? void 0 : elForm.disabled));
|
|
37410
|
-
const popupHeight = computed(() => {
|
|
37600
|
+
const selectDisabled = computed$1(() => props.disabled || (elForm == null ? void 0 : elForm.disabled));
|
|
37601
|
+
const popupHeight = computed$1(() => {
|
|
37411
37602
|
const totalHeight = filteredOptions.value.length * 34;
|
|
37412
37603
|
return totalHeight > props.height ? props.height : totalHeight;
|
|
37413
37604
|
});
|
|
37414
|
-
const hasModelValue = computed(() => {
|
|
37605
|
+
const hasModelValue = computed$1(() => {
|
|
37415
37606
|
return props.modelValue !== void 0 && props.modelValue !== null && props.modelValue !== "";
|
|
37416
37607
|
});
|
|
37417
|
-
const showClearBtn = computed(() => {
|
|
37608
|
+
const showClearBtn = computed$1(() => {
|
|
37418
37609
|
const hasValue = props.multiple ? Array.isArray(props.modelValue) && props.modelValue.length > 0 : hasModelValue.value;
|
|
37419
37610
|
const criteria = props.clearable && !selectDisabled.value && states.comboBoxHovering && hasValue;
|
|
37420
37611
|
return criteria;
|
|
37421
37612
|
});
|
|
37422
|
-
const iconComponent = computed(() => props.remote && props.filterable ? "" : arrow_up_default);
|
|
37423
|
-
const iconReverse = computed(() => iconComponent.value && nsSelectV2.is("reverse", expanded.value));
|
|
37424
|
-
const validateState = computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
|
|
37425
|
-
const validateIcon = computed(() => ValidateComponentsMap[validateState.value]);
|
|
37426
|
-
const debounce$1 = computed(() => props.remote ? 300 : 0);
|
|
37427
|
-
const emptyText = computed(() => {
|
|
37613
|
+
const iconComponent = computed$1(() => props.remote && props.filterable ? "" : arrow_up_default);
|
|
37614
|
+
const iconReverse = computed$1(() => iconComponent.value && nsSelectV2.is("reverse", expanded.value));
|
|
37615
|
+
const validateState = computed$1(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
|
|
37616
|
+
const validateIcon = computed$1(() => ValidateComponentsMap[validateState.value]);
|
|
37617
|
+
const debounce$1 = computed$1(() => props.remote ? 300 : 0);
|
|
37618
|
+
const emptyText = computed$1(() => {
|
|
37428
37619
|
const options = filteredOptions.value;
|
|
37429
37620
|
if (props.loading) {
|
|
37430
37621
|
return props.loadingText || t("el.select.loading");
|
|
@@ -37440,7 +37631,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
37440
37631
|
}
|
|
37441
37632
|
return null;
|
|
37442
37633
|
});
|
|
37443
|
-
const filteredOptions = computed(() => {
|
|
37634
|
+
const filteredOptions = computed$1(() => {
|
|
37444
37635
|
const isValidOption = (o) => {
|
|
37445
37636
|
var _a;
|
|
37446
37637
|
const query = states.inputValue;
|
|
@@ -37467,10 +37658,10 @@ const useSelect$1 = (props, emit) => {
|
|
|
37467
37658
|
return null;
|
|
37468
37659
|
}).filter((v) => v !== null));
|
|
37469
37660
|
});
|
|
37470
|
-
const optionsAllDisabled = computed(() => filteredOptions.value.every((option) => option.disabled));
|
|
37661
|
+
const optionsAllDisabled = computed$1(() => filteredOptions.value.every((option) => option.disabled));
|
|
37471
37662
|
const selectSize = useSize();
|
|
37472
|
-
const collapseTagSize = computed(() => selectSize.value === "small" ? "small" : "default");
|
|
37473
|
-
const tagMaxWidth = computed(() => {
|
|
37663
|
+
const collapseTagSize = computed$1(() => selectSize.value === "small" ? "small" : "default");
|
|
37664
|
+
const tagMaxWidth = computed$1(() => {
|
|
37474
37665
|
const select = selectionRef.value;
|
|
37475
37666
|
const size = collapseTagSize.value || "default";
|
|
37476
37667
|
const paddingLeft = select ? Number.parseInt(getComputedStyle(select).paddingLeft) : 0;
|
|
@@ -37481,26 +37672,26 @@ const useSelect$1 = (props, emit) => {
|
|
|
37481
37672
|
var _a;
|
|
37482
37673
|
popperSize.value = ((_a = selectRef.value) == null ? void 0 : _a.offsetWidth) || 200;
|
|
37483
37674
|
};
|
|
37484
|
-
const inputWrapperStyle = computed(() => {
|
|
37675
|
+
const inputWrapperStyle = computed$1(() => {
|
|
37485
37676
|
return {
|
|
37486
37677
|
width: `${states.calculatedWidth === 0 ? MINIMUM_INPUT_WIDTH : Math.ceil(states.calculatedWidth) + MINIMUM_INPUT_WIDTH}px`
|
|
37487
37678
|
};
|
|
37488
37679
|
});
|
|
37489
|
-
const shouldShowPlaceholder = computed(() => {
|
|
37680
|
+
const shouldShowPlaceholder = computed$1(() => {
|
|
37490
37681
|
if (isArray(props.modelValue)) {
|
|
37491
37682
|
return props.modelValue.length === 0 && !states.displayInputValue;
|
|
37492
37683
|
}
|
|
37493
37684
|
return props.filterable ? states.displayInputValue.length === 0 : true;
|
|
37494
37685
|
});
|
|
37495
|
-
const currentPlaceholder = computed(() => {
|
|
37686
|
+
const currentPlaceholder = computed$1(() => {
|
|
37496
37687
|
const _placeholder = props.placeholder || t("el.select.placeholder");
|
|
37497
37688
|
return props.multiple ? _placeholder : states.selectedLabel || _placeholder;
|
|
37498
37689
|
});
|
|
37499
|
-
const popperRef = computed(() => {
|
|
37690
|
+
const popperRef = computed$1(() => {
|
|
37500
37691
|
var _a, _b;
|
|
37501
37692
|
return (_b = (_a = popper.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
37502
37693
|
});
|
|
37503
|
-
const indexRef = computed(() => {
|
|
37694
|
+
const indexRef = computed$1(() => {
|
|
37504
37695
|
if (props.multiple) {
|
|
37505
37696
|
const len = props.modelValue.length;
|
|
37506
37697
|
if (props.modelValue.length > 0) {
|
|
@@ -37513,7 +37704,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
37513
37704
|
}
|
|
37514
37705
|
return -1;
|
|
37515
37706
|
});
|
|
37516
|
-
const dropdownMenuVisible = computed({
|
|
37707
|
+
const dropdownMenuVisible = computed$1({
|
|
37517
37708
|
get() {
|
|
37518
37709
|
return expanded.value && emptyText.value !== false;
|
|
37519
37710
|
},
|
|
@@ -38031,14 +38222,13 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38031
38222
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
38032
38223
|
ref: "selectRef",
|
|
38033
38224
|
class: normalizeClass([_ctx.nsSelectV2.b(), _ctx.nsSelectV2.m(_ctx.selectSize)]),
|
|
38034
|
-
onClick: _cache[
|
|
38035
|
-
onMouseenter: _cache[
|
|
38036
|
-
onMouseleave: _cache[
|
|
38225
|
+
onClick: _cache[23] || (_cache[23] = withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"])),
|
|
38226
|
+
onMouseenter: _cache[24] || (_cache[24] = ($event) => _ctx.states.comboBoxHovering = true),
|
|
38227
|
+
onMouseleave: _cache[25] || (_cache[25] = ($event) => _ctx.states.comboBoxHovering = false)
|
|
38037
38228
|
}, [
|
|
38038
38229
|
createVNode(_component_el_tooltip, {
|
|
38039
38230
|
ref: "popper",
|
|
38040
38231
|
visible: _ctx.dropdownMenuVisible,
|
|
38041
|
-
"onUpdate:visible": _cache[22] || (_cache[22] = ($event) => _ctx.dropdownMenuVisible = $event),
|
|
38042
38232
|
teleported: _ctx.teleported,
|
|
38043
38233
|
"popper-class": [_ctx.nsSelectV2.e("popper"), _ctx.popperClass],
|
|
38044
38234
|
"gpu-acceleration": false,
|
|
@@ -38052,7 +38242,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38052
38242
|
trigger: "click",
|
|
38053
38243
|
persistent: _ctx.persistent,
|
|
38054
38244
|
onBeforeShow: _ctx.handleMenuEnter,
|
|
38055
|
-
onHide: _cache[
|
|
38245
|
+
onHide: _cache[22] || (_cache[22] = ($event) => _ctx.states.inputValue = _ctx.states.displayInputValue)
|
|
38056
38246
|
}, {
|
|
38057
38247
|
default: withCtx(() => {
|
|
38058
38248
|
var _a;
|
|
@@ -38594,7 +38784,7 @@ const useLifecycle = (props, initData, resetSize) => {
|
|
|
38594
38784
|
};
|
|
38595
38785
|
|
|
38596
38786
|
const useMarks = (props) => {
|
|
38597
|
-
return computed(() => {
|
|
38787
|
+
return computed$1(() => {
|
|
38598
38788
|
if (!props.marks) {
|
|
38599
38789
|
return [];
|
|
38600
38790
|
}
|
|
@@ -38616,25 +38806,25 @@ const useSlide = (props, initData, emit) => {
|
|
|
38616
38806
|
firstButton,
|
|
38617
38807
|
secondButton
|
|
38618
38808
|
};
|
|
38619
|
-
const sliderDisabled = computed(() => {
|
|
38809
|
+
const sliderDisabled = computed$1(() => {
|
|
38620
38810
|
return props.disabled || (elForm == null ? void 0 : elForm.disabled) || false;
|
|
38621
38811
|
});
|
|
38622
|
-
const minValue = computed(() => {
|
|
38812
|
+
const minValue = computed$1(() => {
|
|
38623
38813
|
return Math.min(initData.firstValue, initData.secondValue);
|
|
38624
38814
|
});
|
|
38625
|
-
const maxValue = computed(() => {
|
|
38815
|
+
const maxValue = computed$1(() => {
|
|
38626
38816
|
return Math.max(initData.firstValue, initData.secondValue);
|
|
38627
38817
|
});
|
|
38628
|
-
const barSize = computed(() => {
|
|
38818
|
+
const barSize = computed$1(() => {
|
|
38629
38819
|
return props.range ? `${100 * (maxValue.value - minValue.value) / (props.max - props.min)}%` : `${100 * (initData.firstValue - props.min) / (props.max - props.min)}%`;
|
|
38630
38820
|
});
|
|
38631
|
-
const barStart = computed(() => {
|
|
38821
|
+
const barStart = computed$1(() => {
|
|
38632
38822
|
return props.range ? `${100 * (minValue.value - props.min) / (props.max - props.min)}%` : "0%";
|
|
38633
38823
|
});
|
|
38634
|
-
const runwayStyle = computed(() => {
|
|
38824
|
+
const runwayStyle = computed$1(() => {
|
|
38635
38825
|
return props.vertical ? { height: props.height } : {};
|
|
38636
38826
|
});
|
|
38637
|
-
const barStyle = computed(() => {
|
|
38827
|
+
const barStyle = computed$1(() => {
|
|
38638
38828
|
return props.vertical ? {
|
|
38639
38829
|
height: barSize.value,
|
|
38640
38830
|
bottom: barStart.value
|
|
@@ -38747,10 +38937,10 @@ const { left, down, right, up, home, end, pageUp, pageDown } = EVENT_CODE;
|
|
|
38747
38937
|
const useTooltip = (props, formatTooltip, showTooltip) => {
|
|
38748
38938
|
const tooltip = ref();
|
|
38749
38939
|
const tooltipVisible = ref(false);
|
|
38750
|
-
const enableFormat = computed(() => {
|
|
38940
|
+
const enableFormat = computed$1(() => {
|
|
38751
38941
|
return formatTooltip.value instanceof Function;
|
|
38752
38942
|
});
|
|
38753
|
-
const formatValue = computed(() => {
|
|
38943
|
+
const formatValue = computed$1(() => {
|
|
38754
38944
|
return enableFormat.value && formatTooltip.value(props.modelValue) || props.modelValue;
|
|
38755
38945
|
});
|
|
38756
38946
|
const displayTooltip = debounce(() => {
|
|
@@ -38783,10 +38973,10 @@ const useSliderButton = (props, initData, emit) => {
|
|
|
38783
38973
|
} = inject(sliderContextKey);
|
|
38784
38974
|
const { tooltip, tooltipVisible, formatValue, displayTooltip, hideTooltip } = useTooltip(props, formatTooltip, showTooltip);
|
|
38785
38975
|
const button = ref();
|
|
38786
|
-
const currentPosition = computed(() => {
|
|
38976
|
+
const currentPosition = computed$1(() => {
|
|
38787
38977
|
return `${(props.modelValue - min.value) / (max.value - min.value) * 100}%`;
|
|
38788
38978
|
});
|
|
38789
|
-
const wrapperStyle = computed(() => {
|
|
38979
|
+
const wrapperStyle = computed$1(() => {
|
|
38790
38980
|
return props.vertical ? { bottom: currentPosition.value } : { left: currentPosition.value };
|
|
38791
38981
|
});
|
|
38792
38982
|
const handleMouseEnter = () => {
|
|
@@ -38966,7 +39156,7 @@ const useSliderButton = (props, initData, emit) => {
|
|
|
38966
39156
|
};
|
|
38967
39157
|
|
|
38968
39158
|
const useStops = (props, initData, minValue, maxValue) => {
|
|
38969
|
-
const stops = computed(() => {
|
|
39159
|
+
const stops = computed$1(() => {
|
|
38970
39160
|
if (!props.showStops || props.min > props.max)
|
|
38971
39161
|
return [];
|
|
38972
39162
|
if (props.step === 0) {
|
|
@@ -39132,19 +39322,18 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
39132
39322
|
class: normalizeClass([unref(ns).e("button-wrapper"), { hover: unref(hovering), dragging: unref(dragging) }]),
|
|
39133
39323
|
style: normalizeStyle(unref(wrapperStyle)),
|
|
39134
39324
|
tabindex: "0",
|
|
39135
|
-
onMouseenter: _cache[
|
|
39136
|
-
onMouseleave: _cache[
|
|
39137
|
-
onMousedown: _cache[
|
|
39138
|
-
onTouchstart: _cache[
|
|
39139
|
-
onFocus: _cache[
|
|
39140
|
-
onBlur: _cache[
|
|
39141
|
-
onKeydown: _cache[
|
|
39325
|
+
onMouseenter: _cache[0] || (_cache[0] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
|
|
39326
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args)),
|
|
39327
|
+
onMousedown: _cache[2] || (_cache[2] = (...args) => unref(onButtonDown) && unref(onButtonDown)(...args)),
|
|
39328
|
+
onTouchstart: _cache[3] || (_cache[3] = (...args) => unref(onButtonDown) && unref(onButtonDown)(...args)),
|
|
39329
|
+
onFocus: _cache[4] || (_cache[4] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
|
|
39330
|
+
onBlur: _cache[5] || (_cache[5] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args)),
|
|
39331
|
+
onKeydown: _cache[6] || (_cache[6] = (...args) => unref(onKeyDown) && unref(onKeyDown)(...args))
|
|
39142
39332
|
}, [
|
|
39143
39333
|
createVNode(unref(ElTooltip), {
|
|
39144
39334
|
ref_key: "tooltip",
|
|
39145
39335
|
ref: tooltip,
|
|
39146
39336
|
visible: unref(tooltipVisible),
|
|
39147
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isRef(tooltipVisible) ? tooltipVisible.value = $event : null),
|
|
39148
39337
|
placement: _ctx.placement,
|
|
39149
39338
|
"fallback-placements": ["top", "bottom", "right", "left"],
|
|
39150
39339
|
"stop-popper-mouse-event": false,
|
|
@@ -39179,10 +39368,10 @@ var SliderMarker = defineComponent({
|
|
|
39179
39368
|
props: sliderMarkerProps,
|
|
39180
39369
|
setup(props) {
|
|
39181
39370
|
const ns = useNamespace("slider");
|
|
39182
|
-
const label = computed(() => {
|
|
39371
|
+
const label = computed$1(() => {
|
|
39183
39372
|
return isString(props.mark) ? props.mark : props.mark.label;
|
|
39184
39373
|
});
|
|
39185
|
-
const style = computed(() => isString(props.mark) ? void 0 : props.mark.style);
|
|
39374
|
+
const style = computed$1(() => isString(props.mark) ? void 0 : props.mark.style);
|
|
39186
39375
|
return () => h$1("div", {
|
|
39187
39376
|
class: ns.e("marks-text"),
|
|
39188
39377
|
style: style.value
|
|
@@ -39233,30 +39422,30 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
39233
39422
|
formItemContext: elFormItem
|
|
39234
39423
|
});
|
|
39235
39424
|
const sliderWrapperSize = useSize();
|
|
39236
|
-
const sliderInputSize = computed(() => props.inputSize || sliderWrapperSize.value);
|
|
39237
|
-
const groupLabel = computed(() => {
|
|
39425
|
+
const sliderInputSize = computed$1(() => props.inputSize || sliderWrapperSize.value);
|
|
39426
|
+
const groupLabel = computed$1(() => {
|
|
39238
39427
|
return props.label || t("el.slider.defaultLabel", {
|
|
39239
39428
|
min: props.min,
|
|
39240
39429
|
max: props.max
|
|
39241
39430
|
});
|
|
39242
39431
|
});
|
|
39243
|
-
const firstButtonLabel = computed(() => {
|
|
39432
|
+
const firstButtonLabel = computed$1(() => {
|
|
39244
39433
|
if (props.range) {
|
|
39245
39434
|
return props.rangeStartLabel || t("el.slider.defaultRangeStartLabel");
|
|
39246
39435
|
} else {
|
|
39247
39436
|
return groupLabel.value;
|
|
39248
39437
|
}
|
|
39249
39438
|
});
|
|
39250
|
-
const firstValueText = computed(() => {
|
|
39439
|
+
const firstValueText = computed$1(() => {
|
|
39251
39440
|
return props.formatValueText ? props.formatValueText(firstValue.value) : `${firstValue.value}`;
|
|
39252
39441
|
});
|
|
39253
|
-
const secondButtonLabel = computed(() => {
|
|
39442
|
+
const secondButtonLabel = computed$1(() => {
|
|
39254
39443
|
return props.rangeEndLabel || t("el.slider.defaultRangeEndLabel");
|
|
39255
39444
|
});
|
|
39256
|
-
const secondValueText = computed(() => {
|
|
39445
|
+
const secondValueText = computed$1(() => {
|
|
39257
39446
|
return props.formatValueText ? props.formatValueText(secondValue.value) : `${secondValue.value}`;
|
|
39258
39447
|
});
|
|
39259
|
-
const sliderKls = computed(() => [
|
|
39448
|
+
const sliderKls = computed$1(() => [
|
|
39260
39449
|
ns.b(),
|
|
39261
39450
|
ns.m(sliderWrapperSize.value),
|
|
39262
39451
|
ns.is("vertical", props.vertical),
|
|
@@ -39264,7 +39453,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
39264
39453
|
]);
|
|
39265
39454
|
const markList = useMarks(props);
|
|
39266
39455
|
useWatch(props, initData, minValue, maxValue, emit, elFormItem);
|
|
39267
|
-
const precision = computed(() => {
|
|
39456
|
+
const precision = computed$1(() => {
|
|
39268
39457
|
const precisions = [props.min, props.max, props.step].map((item) => {
|
|
39269
39458
|
const decimal = `${item}`.split(".")[1];
|
|
39270
39459
|
return decimal ? decimal.length : 0;
|
|
@@ -39419,7 +39608,7 @@ const SpaceItem = defineComponent({
|
|
|
39419
39608
|
props: spaceItemProps,
|
|
39420
39609
|
setup(props, { slots }) {
|
|
39421
39610
|
const ns = useNamespace("space");
|
|
39422
|
-
const classes = computed(() => `${props.prefixCls || ns.b()}__item`);
|
|
39611
|
+
const classes = computed$1(() => `${props.prefixCls || ns.b()}__item`);
|
|
39423
39612
|
return () => h$1("div", { class: classes.value }, renderSlot(slots, "default"));
|
|
39424
39613
|
}
|
|
39425
39614
|
});
|
|
@@ -39432,17 +39621,17 @@ const SIZE_MAP = {
|
|
|
39432
39621
|
};
|
|
39433
39622
|
function useSpace(props) {
|
|
39434
39623
|
const ns = useNamespace("space");
|
|
39435
|
-
const classes = computed(() => [ns.b(), ns.m(props.direction), props.class]);
|
|
39624
|
+
const classes = computed$1(() => [ns.b(), ns.m(props.direction), props.class]);
|
|
39436
39625
|
const horizontalSize = ref(0);
|
|
39437
39626
|
const verticalSize = ref(0);
|
|
39438
|
-
const containerStyle = computed(() => {
|
|
39627
|
+
const containerStyle = computed$1(() => {
|
|
39439
39628
|
const wrapKls = props.wrap || props.fill ? { flexWrap: "wrap", marginBottom: `-${verticalSize.value}px` } : {};
|
|
39440
39629
|
const alignment = {
|
|
39441
39630
|
alignItems: props.alignment
|
|
39442
39631
|
};
|
|
39443
39632
|
return [wrapKls, alignment, props.style];
|
|
39444
39633
|
});
|
|
39445
|
-
const itemStyle = computed(() => {
|
|
39634
|
+
const itemStyle = computed$1(() => {
|
|
39446
39635
|
const itemBaseStyle = {
|
|
39447
39636
|
paddingBottom: `${verticalSize.value}px`,
|
|
39448
39637
|
marginRight: `${horizontalSize.value}px`
|
|
@@ -39704,33 +39893,33 @@ const _sfc_main$s = defineComponent({
|
|
|
39704
39893
|
onBeforeUnmount(() => {
|
|
39705
39894
|
parent.steps.value = parent.steps.value.filter((instance) => instance.uid !== (currentInstance == null ? void 0 : currentInstance.uid));
|
|
39706
39895
|
});
|
|
39707
|
-
const currentStatus = computed(() => {
|
|
39896
|
+
const currentStatus = computed$1(() => {
|
|
39708
39897
|
return props.status || internalStatus.value;
|
|
39709
39898
|
});
|
|
39710
|
-
const prevStatus = computed(() => {
|
|
39899
|
+
const prevStatus = computed$1(() => {
|
|
39711
39900
|
const prevStep = parent.steps.value[index.value - 1];
|
|
39712
39901
|
return prevStep ? prevStep.currentStatus : "wait";
|
|
39713
39902
|
});
|
|
39714
|
-
const isCenter = computed(() => {
|
|
39903
|
+
const isCenter = computed$1(() => {
|
|
39715
39904
|
return parent.props.alignCenter;
|
|
39716
39905
|
});
|
|
39717
|
-
const isVertical = computed(() => {
|
|
39906
|
+
const isVertical = computed$1(() => {
|
|
39718
39907
|
return parent.props.direction === "vertical";
|
|
39719
39908
|
});
|
|
39720
|
-
const isSimple = computed(() => {
|
|
39909
|
+
const isSimple = computed$1(() => {
|
|
39721
39910
|
return parent.props.simple;
|
|
39722
39911
|
});
|
|
39723
|
-
const stepsCount = computed(() => {
|
|
39912
|
+
const stepsCount = computed$1(() => {
|
|
39724
39913
|
return parent.steps.value.length;
|
|
39725
39914
|
});
|
|
39726
|
-
const isLast = computed(() => {
|
|
39915
|
+
const isLast = computed$1(() => {
|
|
39727
39916
|
var _a;
|
|
39728
39917
|
return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === (currentInstance == null ? void 0 : currentInstance.uid);
|
|
39729
39918
|
});
|
|
39730
|
-
const space = computed(() => {
|
|
39919
|
+
const space = computed$1(() => {
|
|
39731
39920
|
return isSimple.value ? "" : parent.props.space;
|
|
39732
39921
|
});
|
|
39733
|
-
const style = computed(() => {
|
|
39922
|
+
const style = computed$1(() => {
|
|
39734
39923
|
const style2 = {
|
|
39735
39924
|
flexBasis: typeof space.value === "number" ? `${space.value}px` : space.value ? space.value : `${100 / (stepsCount.value - (isCenter.value ? 0 : 1))}%`
|
|
39736
39925
|
};
|
|
@@ -39771,7 +39960,7 @@ const _sfc_main$s = defineComponent({
|
|
|
39771
39960
|
prevChild.calcProgress(internalStatus.value);
|
|
39772
39961
|
};
|
|
39773
39962
|
const stepItemState = reactive({
|
|
39774
|
-
uid: computed(() => currentInstance == null ? void 0 : currentInstance.uid),
|
|
39963
|
+
uid: computed$1(() => currentInstance == null ? void 0 : currentInstance.uid),
|
|
39775
39964
|
currentStatus,
|
|
39776
39965
|
setIndex,
|
|
39777
39966
|
calcProgress
|
|
@@ -39976,24 +40165,24 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
39976
40165
|
version: "2.3.0",
|
|
39977
40166
|
ref: "https://element-plus.org/en-US/component/switch.html#attributes",
|
|
39978
40167
|
type: "Attribute"
|
|
39979
|
-
}, computed(() => {
|
|
40168
|
+
}, computed$1(() => {
|
|
39980
40169
|
var _a;
|
|
39981
40170
|
return !!((_a = vm.vnode.props) == null ? void 0 : _a.value);
|
|
39982
40171
|
}));
|
|
39983
40172
|
const { inputId } = useFormItemInputId(props, {
|
|
39984
40173
|
formItemContext: formItem
|
|
39985
40174
|
});
|
|
39986
|
-
const switchDisabled = useDisabled$1(computed(() => props.loading));
|
|
40175
|
+
const switchDisabled = useDisabled$1(computed$1(() => props.loading));
|
|
39987
40176
|
const isControlled = ref(props.modelValue !== false);
|
|
39988
40177
|
const input = ref();
|
|
39989
40178
|
const core = ref();
|
|
39990
|
-
const switchKls = computed(() => [
|
|
40179
|
+
const switchKls = computed$1(() => [
|
|
39991
40180
|
ns.b(),
|
|
39992
40181
|
ns.m(switchSize.value),
|
|
39993
40182
|
ns.is("disabled", switchDisabled.value),
|
|
39994
40183
|
ns.is("checked", checked.value)
|
|
39995
40184
|
]);
|
|
39996
|
-
const coreStyle = computed(() => ({
|
|
40185
|
+
const coreStyle = computed$1(() => ({
|
|
39997
40186
|
width: addUnit(props.width)
|
|
39998
40187
|
}));
|
|
39999
40188
|
watch(() => props.modelValue, () => {
|
|
@@ -40002,10 +40191,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
40002
40191
|
watch(() => props.value, () => {
|
|
40003
40192
|
isControlled.value = false;
|
|
40004
40193
|
});
|
|
40005
|
-
const actualValue = computed(() => {
|
|
40194
|
+
const actualValue = computed$1(() => {
|
|
40006
40195
|
return isControlled.value ? props.modelValue : props.value;
|
|
40007
40196
|
});
|
|
40008
|
-
const checked = computed(() => actualValue.value === props.activeValue);
|
|
40197
|
+
const checked = computed$1(() => actualValue.value === props.activeValue);
|
|
40009
40198
|
if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
|
|
40010
40199
|
emit(UPDATE_MODEL_EVENT, props.inactiveValue);
|
|
40011
40200
|
emit(CHANGE_EVENT, props.inactiveValue);
|
|
@@ -40054,7 +40243,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
40054
40243
|
handleChange();
|
|
40055
40244
|
}
|
|
40056
40245
|
};
|
|
40057
|
-
const styles = computed(() => {
|
|
40246
|
+
const styles = computed$1(() => {
|
|
40058
40247
|
return ns.cssVarBlock({
|
|
40059
40248
|
...props.activeColor ? { "on-color": props.activeColor } : null,
|
|
40060
40249
|
...props.inactiveColor ? { "off-color": props.inactiveColor } : null,
|
|
@@ -40749,13 +40938,13 @@ function useTree$2(watcherData) {
|
|
|
40749
40938
|
const lazyColumnIdentifier = ref("hasChildren");
|
|
40750
40939
|
const childrenColumnName = ref("children");
|
|
40751
40940
|
const instance = getCurrentInstance();
|
|
40752
|
-
const normalizedData = computed(() => {
|
|
40941
|
+
const normalizedData = computed$1(() => {
|
|
40753
40942
|
if (!watcherData.rowKey.value)
|
|
40754
40943
|
return {};
|
|
40755
40944
|
const data = watcherData.data.value || [];
|
|
40756
40945
|
return normalize(data);
|
|
40757
40946
|
});
|
|
40758
|
-
const normalizedLazyNode = computed(() => {
|
|
40947
|
+
const normalizedLazyNode = computed$1(() => {
|
|
40759
40948
|
const rowKey = watcherData.rowKey.value;
|
|
40760
40949
|
const keys = Object.keys(lazyTreeNodeMap.value);
|
|
40761
40950
|
const res = {};
|
|
@@ -41804,10 +41993,10 @@ const _sfc_main$q = defineComponent({
|
|
|
41804
41993
|
}
|
|
41805
41994
|
const tooltipVisible = ref(false);
|
|
41806
41995
|
const tooltip = ref(null);
|
|
41807
|
-
const filters = computed(() => {
|
|
41996
|
+
const filters = computed$1(() => {
|
|
41808
41997
|
return props.column && props.column.filters;
|
|
41809
41998
|
});
|
|
41810
|
-
const filterValue = computed({
|
|
41999
|
+
const filterValue = computed$1({
|
|
41811
42000
|
get: () => {
|
|
41812
42001
|
var _a;
|
|
41813
42002
|
return (((_a = props.column) == null ? void 0 : _a.filteredValue) || [])[0];
|
|
@@ -41822,7 +42011,7 @@ const _sfc_main$q = defineComponent({
|
|
|
41822
42011
|
}
|
|
41823
42012
|
}
|
|
41824
42013
|
});
|
|
41825
|
-
const filteredValue = computed({
|
|
42014
|
+
const filteredValue = computed$1({
|
|
41826
42015
|
get() {
|
|
41827
42016
|
if (props.column) {
|
|
41828
42017
|
return props.column.filteredValue || [];
|
|
@@ -41835,7 +42024,7 @@ const _sfc_main$q = defineComponent({
|
|
|
41835
42024
|
}
|
|
41836
42025
|
}
|
|
41837
42026
|
});
|
|
41838
|
-
const multiple = computed(() => {
|
|
42027
|
+
const multiple = computed$1(() => {
|
|
41839
42028
|
if (props.column) {
|
|
41840
42029
|
return props.column.filterMultiple;
|
|
41841
42030
|
}
|
|
@@ -41886,7 +42075,7 @@ const _sfc_main$q = defineComponent({
|
|
|
41886
42075
|
}, {
|
|
41887
42076
|
immediate: true
|
|
41888
42077
|
});
|
|
41889
|
-
const popperPaneRef = computed(() => {
|
|
42078
|
+
const popperPaneRef = computed$1(() => {
|
|
41890
42079
|
var _a, _b;
|
|
41891
42080
|
return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
41892
42081
|
});
|
|
@@ -41924,7 +42113,6 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41924
42113
|
return openBlock(), createBlock(_component_el_tooltip, {
|
|
41925
42114
|
ref: "tooltip",
|
|
41926
42115
|
visible: _ctx.tooltipVisible,
|
|
41927
|
-
"onUpdate:visible": _cache[5] || (_cache[5] = ($event) => _ctx.tooltipVisible = $event),
|
|
41928
42116
|
offset: 0,
|
|
41929
42117
|
placement: _ctx.placement,
|
|
41930
42118
|
"show-arrow": false,
|
|
@@ -42044,7 +42232,7 @@ function useLayoutObserver(root) {
|
|
|
42044
42232
|
onUnmounted(() => {
|
|
42045
42233
|
tableLayout.value.removeObserver(instance);
|
|
42046
42234
|
});
|
|
42047
|
-
const tableLayout = computed(() => {
|
|
42235
|
+
const tableLayout = computed$1(() => {
|
|
42048
42236
|
const layout = root.layout;
|
|
42049
42237
|
if (!layout) {
|
|
42050
42238
|
throw new Error("Can not find table layout.");
|
|
@@ -42384,10 +42572,10 @@ const convertToRows = (originColumns) => {
|
|
|
42384
42572
|
};
|
|
42385
42573
|
function useUtils$1(props) {
|
|
42386
42574
|
const parent = inject(TABLE_INJECTION_KEY);
|
|
42387
|
-
const columnRows = computed(() => {
|
|
42575
|
+
const columnRows = computed$1(() => {
|
|
42388
42576
|
return convertToRows(props.store.states.originColumns.value);
|
|
42389
42577
|
});
|
|
42390
|
-
const isGroup = computed(() => {
|
|
42578
|
+
const isGroup = computed$1(() => {
|
|
42391
42579
|
const result = columnRows.value.length > 1;
|
|
42392
42580
|
if (result && parent) {
|
|
42393
42581
|
parent.state.isGroup.value = true;
|
|
@@ -42774,7 +42962,7 @@ function useRender$1(props) {
|
|
|
42774
42962
|
getSpan,
|
|
42775
42963
|
getColspanRealWidth
|
|
42776
42964
|
} = useStyles$1(props);
|
|
42777
|
-
const firstDefaultColumnIndex = computed(() => {
|
|
42965
|
+
const firstDefaultColumnIndex = computed$1(() => {
|
|
42778
42966
|
return props.store.states.columns.value.findIndex(({ type }) => type === "default");
|
|
42779
42967
|
});
|
|
42780
42968
|
const getKeyOfRow = (row, index) => {
|
|
@@ -43064,19 +43252,19 @@ hColgroup.props = ["columns", "tableLayout"];
|
|
|
43064
43252
|
function useMapState() {
|
|
43065
43253
|
const table = inject(TABLE_INJECTION_KEY);
|
|
43066
43254
|
const store = table == null ? void 0 : table.store;
|
|
43067
|
-
const leftFixedLeafCount = computed(() => {
|
|
43255
|
+
const leftFixedLeafCount = computed$1(() => {
|
|
43068
43256
|
return store.states.fixedLeafColumnsLength.value;
|
|
43069
43257
|
});
|
|
43070
|
-
const rightFixedLeafCount = computed(() => {
|
|
43258
|
+
const rightFixedLeafCount = computed$1(() => {
|
|
43071
43259
|
return store.states.rightFixedColumns.value.length;
|
|
43072
43260
|
});
|
|
43073
|
-
const columnsCount = computed(() => {
|
|
43261
|
+
const columnsCount = computed$1(() => {
|
|
43074
43262
|
return store.states.columns.value.length;
|
|
43075
43263
|
});
|
|
43076
|
-
const leftFixedCount = computed(() => {
|
|
43264
|
+
const leftFixedCount = computed$1(() => {
|
|
43077
43265
|
return store.states.fixedColumns.value.length;
|
|
43078
43266
|
});
|
|
43079
|
-
const rightFixedCount = computed(() => {
|
|
43267
|
+
const rightFixedCount = computed$1(() => {
|
|
43080
43268
|
return store.states.rightFixedColumns.value.length;
|
|
43081
43269
|
});
|
|
43082
43270
|
return {
|
|
@@ -43294,6 +43482,7 @@ function useStyle(props, layout, store, table) {
|
|
|
43294
43482
|
const tableScrollHeight = ref(0);
|
|
43295
43483
|
const bodyScrollHeight = ref(0);
|
|
43296
43484
|
const headerScrollHeight = ref(0);
|
|
43485
|
+
const footerScrollHeight = ref(0);
|
|
43297
43486
|
watchEffect(() => {
|
|
43298
43487
|
layout.setHeight(props.height);
|
|
43299
43488
|
});
|
|
@@ -43329,10 +43518,10 @@ function useStyle(props, layout, store, table) {
|
|
|
43329
43518
|
table.refs.bodyWrapper.scrollLeft += data.pixelX / 5;
|
|
43330
43519
|
}
|
|
43331
43520
|
};
|
|
43332
|
-
const shouldUpdateHeight = computed(() => {
|
|
43521
|
+
const shouldUpdateHeight = computed$1(() => {
|
|
43333
43522
|
return props.height || props.maxHeight || store.states.fixedColumns.value.length > 0 || store.states.rightFixedColumns.value.length > 0;
|
|
43334
43523
|
});
|
|
43335
|
-
const tableBodyStyles = computed(() => {
|
|
43524
|
+
const tableBodyStyles = computed$1(() => {
|
|
43336
43525
|
return {
|
|
43337
43526
|
width: layout.bodyWidth.value ? `${layout.bodyWidth.value}px` : ""
|
|
43338
43527
|
};
|
|
@@ -43428,7 +43617,7 @@ function useStyle(props, layout, store, table) {
|
|
|
43428
43617
|
}
|
|
43429
43618
|
};
|
|
43430
43619
|
const resizeListener = () => {
|
|
43431
|
-
var _a;
|
|
43620
|
+
var _a, _b;
|
|
43432
43621
|
if (!table.$ready)
|
|
43433
43622
|
return;
|
|
43434
43623
|
let shouldUpdateLayout = false;
|
|
@@ -43447,32 +43636,33 @@ function useStyle(props, layout, store, table) {
|
|
|
43447
43636
|
shouldUpdateLayout = true;
|
|
43448
43637
|
}
|
|
43449
43638
|
const tableHeader = table.refs.headerWrapper;
|
|
43450
|
-
if (props.showHeader && tableHeader.offsetHeight !== oldHeaderHeight) {
|
|
43639
|
+
if (props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) !== oldHeaderHeight) {
|
|
43451
43640
|
shouldUpdateLayout = true;
|
|
43452
43641
|
}
|
|
43453
|
-
tableScrollHeight.value = table.refs.tableWrapper.scrollHeight;
|
|
43454
|
-
headerScrollHeight.value = (
|
|
43455
|
-
|
|
43642
|
+
tableScrollHeight.value = ((_a = table.refs.tableWrapper) == null ? void 0 : _a.scrollHeight) || 0;
|
|
43643
|
+
headerScrollHeight.value = (tableHeader == null ? void 0 : tableHeader.scrollHeight) || 0;
|
|
43644
|
+
footerScrollHeight.value = ((_b = table.refs.footerWrapper) == null ? void 0 : _b.scrollHeight) || 0;
|
|
43645
|
+
bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value;
|
|
43456
43646
|
if (shouldUpdateLayout) {
|
|
43457
43647
|
resizeState.value = {
|
|
43458
43648
|
width,
|
|
43459
43649
|
height,
|
|
43460
|
-
headerHeight: props.showHeader ? tableHeader.offsetHeight
|
|
43650
|
+
headerHeight: props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
|
|
43461
43651
|
};
|
|
43462
43652
|
doLayout();
|
|
43463
43653
|
}
|
|
43464
43654
|
};
|
|
43465
43655
|
const tableSize = useSize();
|
|
43466
|
-
const bodyWidth = computed(() => {
|
|
43656
|
+
const bodyWidth = computed$1(() => {
|
|
43467
43657
|
const { bodyWidth: bodyWidth_, scrollY, gutterWidth } = layout;
|
|
43468
43658
|
return bodyWidth_.value ? `${bodyWidth_.value - (scrollY.value ? gutterWidth : 0)}px` : "";
|
|
43469
43659
|
});
|
|
43470
|
-
const tableLayout = computed(() => {
|
|
43660
|
+
const tableLayout = computed$1(() => {
|
|
43471
43661
|
if (props.maxHeight)
|
|
43472
43662
|
return "fixed";
|
|
43473
43663
|
return props.tableLayout;
|
|
43474
43664
|
});
|
|
43475
|
-
const emptyBlockStyle = computed(() => {
|
|
43665
|
+
const emptyBlockStyle = computed$1(() => {
|
|
43476
43666
|
if (props.data && props.data.length)
|
|
43477
43667
|
return null;
|
|
43478
43668
|
let height = "100%";
|
|
@@ -43485,7 +43675,7 @@ function useStyle(props, layout, store, table) {
|
|
|
43485
43675
|
height
|
|
43486
43676
|
};
|
|
43487
43677
|
});
|
|
43488
|
-
const tableInnerStyle = computed(() => {
|
|
43678
|
+
const tableInnerStyle = computed$1(() => {
|
|
43489
43679
|
if (props.height) {
|
|
43490
43680
|
return {
|
|
43491
43681
|
height: !Number.isNaN(Number(props.height)) ? `${props.height}px` : props.height
|
|
@@ -43498,8 +43688,8 @@ function useStyle(props, layout, store, table) {
|
|
|
43498
43688
|
}
|
|
43499
43689
|
return {};
|
|
43500
43690
|
});
|
|
43501
|
-
const scrollbarStyle = computed(() => {
|
|
43502
|
-
var _a;
|
|
43691
|
+
const scrollbarStyle = computed$1(() => {
|
|
43692
|
+
var _a, _b;
|
|
43503
43693
|
if (props.height) {
|
|
43504
43694
|
return {
|
|
43505
43695
|
height: "100%"
|
|
@@ -43508,16 +43698,17 @@ function useStyle(props, layout, store, table) {
|
|
|
43508
43698
|
if (props.maxHeight) {
|
|
43509
43699
|
if (!Number.isNaN(Number(props.maxHeight))) {
|
|
43510
43700
|
const headerHeight = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
|
|
43701
|
+
const footerHeight = ((_b = table.refs.footerWrapper) == null ? void 0 : _b.scrollHeight) || 0;
|
|
43511
43702
|
const maxHeight = props.maxHeight;
|
|
43512
43703
|
const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
|
|
43513
43704
|
if (reachMaxHeight) {
|
|
43514
43705
|
return {
|
|
43515
|
-
maxHeight: `${tableScrollHeight.value - headerHeight}px`
|
|
43706
|
+
maxHeight: `${tableScrollHeight.value - headerHeight - footerHeight}px`
|
|
43516
43707
|
};
|
|
43517
43708
|
}
|
|
43518
43709
|
} else {
|
|
43519
43710
|
return {
|
|
43520
|
-
maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value}px)`
|
|
43711
|
+
maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value + footerScrollHeight.value}px)`
|
|
43521
43712
|
};
|
|
43522
43713
|
}
|
|
43523
43714
|
}
|
|
@@ -43711,7 +43902,7 @@ const _sfc_main$p = defineComponent({
|
|
|
43711
43902
|
showHeader: props.showHeader
|
|
43712
43903
|
});
|
|
43713
43904
|
table.layout = layout;
|
|
43714
|
-
const isEmpty = computed(() => (store.states.data.value || []).length === 0);
|
|
43905
|
+
const isEmpty = computed$1(() => (store.states.data.value || []).length === 0);
|
|
43715
43906
|
const {
|
|
43716
43907
|
setCurrentRow,
|
|
43717
43908
|
getSelectionRows,
|
|
@@ -43753,8 +43944,8 @@ const _sfc_main$p = defineComponent({
|
|
|
43753
43944
|
doLayout,
|
|
43754
43945
|
debouncedUpdateLayout
|
|
43755
43946
|
};
|
|
43756
|
-
const computedSumText = computed(() => props.sumText || t("el.table.sumText"));
|
|
43757
|
-
const computedEmptyText = computed(() => {
|
|
43947
|
+
const computedSumText = computed$1(() => props.sumText || t("el.table.sumText"));
|
|
43948
|
+
const computedEmptyText = computed$1(() => {
|
|
43758
43949
|
return props.emptyText || t("el.table.emptyText");
|
|
43759
43950
|
});
|
|
43760
43951
|
return {
|
|
@@ -43902,6 +44093,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43902
44093
|
}, null, 8, ["columns", "table-layout"]),
|
|
43903
44094
|
_ctx.showHeader && _ctx.tableLayout === "auto" ? (openBlock(), createBlock(_component_table_header, {
|
|
43904
44095
|
key: 0,
|
|
44096
|
+
ref: "tableHeaderRef",
|
|
43905
44097
|
border: _ctx.border,
|
|
43906
44098
|
"default-sort": _ctx.defaultSort,
|
|
43907
44099
|
store: _ctx.store,
|
|
@@ -44244,14 +44436,14 @@ function useRender(props, slots, owner) {
|
|
|
44244
44436
|
realHeaderAlign.value = props.headerAlign ? `is-${props.headerAlign}` : realAlign.value;
|
|
44245
44437
|
realHeaderAlign.value;
|
|
44246
44438
|
});
|
|
44247
|
-
const columnOrTableParent = computed(() => {
|
|
44439
|
+
const columnOrTableParent = computed$1(() => {
|
|
44248
44440
|
let parent = instance.vnode.vParent || instance.parent;
|
|
44249
44441
|
while (parent && !parent.tableId && !parent.columnId) {
|
|
44250
44442
|
parent = parent.vnode.vParent || parent.parent;
|
|
44251
44443
|
}
|
|
44252
44444
|
return parent;
|
|
44253
44445
|
});
|
|
44254
|
-
const hasTreeColumn = computed(() => {
|
|
44446
|
+
const hasTreeColumn = computed$1(() => {
|
|
44255
44447
|
const { store } = instance.parent;
|
|
44256
44448
|
if (!store)
|
|
44257
44449
|
return false;
|
|
@@ -44442,7 +44634,7 @@ var ElTableColumn$1 = defineComponent({
|
|
|
44442
44634
|
setup(props, { slots }) {
|
|
44443
44635
|
const instance = getCurrentInstance();
|
|
44444
44636
|
const columnConfig = ref({});
|
|
44445
|
-
const owner = computed(() => {
|
|
44637
|
+
const owner = computed$1(() => {
|
|
44446
44638
|
let parent2 = instance.parent;
|
|
44447
44639
|
while (parent2 && !parent2.tableId) {
|
|
44448
44640
|
parent2 = parent2.parent;
|
|
@@ -44617,13 +44809,13 @@ const calcColumnStyle = (column, fixedColumn, fixed) => {
|
|
|
44617
44809
|
};
|
|
44618
44810
|
|
|
44619
44811
|
function useColumns(props, columns, fixed) {
|
|
44620
|
-
const visibleColumns = computed(() => {
|
|
44812
|
+
const visibleColumns = computed$1(() => {
|
|
44621
44813
|
return unref(columns).filter((column) => !column.hidden);
|
|
44622
44814
|
});
|
|
44623
|
-
const fixedColumnsOnLeft = computed(() => unref(visibleColumns).filter((column) => column.fixed === "left" || column.fixed === true));
|
|
44624
|
-
const fixedColumnsOnRight = computed(() => unref(visibleColumns).filter((column) => column.fixed === "right"));
|
|
44625
|
-
const normalColumns = computed(() => unref(visibleColumns).filter((column) => !column.fixed));
|
|
44626
|
-
const mainColumns = computed(() => {
|
|
44815
|
+
const fixedColumnsOnLeft = computed$1(() => unref(visibleColumns).filter((column) => column.fixed === "left" || column.fixed === true));
|
|
44816
|
+
const fixedColumnsOnRight = computed$1(() => unref(visibleColumns).filter((column) => column.fixed === "right"));
|
|
44817
|
+
const normalColumns = computed$1(() => unref(visibleColumns).filter((column) => !column.fixed));
|
|
44818
|
+
const mainColumns = computed$1(() => {
|
|
44627
44819
|
const ret = [];
|
|
44628
44820
|
unref(fixedColumnsOnLeft).forEach((column) => {
|
|
44629
44821
|
ret.push({
|
|
@@ -44642,17 +44834,17 @@ function useColumns(props, columns, fixed) {
|
|
|
44642
44834
|
});
|
|
44643
44835
|
return ret;
|
|
44644
44836
|
});
|
|
44645
|
-
const hasFixedColumns = computed(() => {
|
|
44837
|
+
const hasFixedColumns = computed$1(() => {
|
|
44646
44838
|
return unref(fixedColumnsOnLeft).length || unref(fixedColumnsOnRight).length;
|
|
44647
44839
|
});
|
|
44648
|
-
const columnsStyles = computed(() => {
|
|
44840
|
+
const columnsStyles = computed$1(() => {
|
|
44649
44841
|
const _columns = unref(columns);
|
|
44650
44842
|
return _columns.reduce((style, column) => {
|
|
44651
44843
|
style[column.key] = calcColumnStyle(column, unref(fixed), props.fixed);
|
|
44652
44844
|
return style;
|
|
44653
44845
|
}, {});
|
|
44654
44846
|
});
|
|
44655
|
-
const columnsTotalWidth = computed(() => {
|
|
44847
|
+
const columnsTotalWidth = computed$1(() => {
|
|
44656
44848
|
return unref(visibleColumns).reduce((width, column) => width + column.width, 0);
|
|
44657
44849
|
});
|
|
44658
44850
|
const getColumn = (key) => {
|
|
@@ -44764,7 +44956,7 @@ const useRow = (props, { mainTableRef, leftTableRef, rightTableRef, onMaybeEndRe
|
|
|
44764
44956
|
const leftTableHeights = shallowRef({});
|
|
44765
44957
|
const mainTableHeights = shallowRef({});
|
|
44766
44958
|
const rightTableHeights = shallowRef({});
|
|
44767
|
-
const isDynamic = computed(() => isNumber(props.estimatedRowHeight));
|
|
44959
|
+
const isDynamic = computed$1(() => isNumber(props.estimatedRowHeight));
|
|
44768
44960
|
function onRowsRendered(params) {
|
|
44769
44961
|
var _a;
|
|
44770
44962
|
(_a = props.onRowsRendered) == null ? void 0 : _a.call(props, params);
|
|
@@ -44868,7 +45060,7 @@ const useRow = (props, { mainTableRef, leftTableRef, rightTableRef, onMaybeEndRe
|
|
|
44868
45060
|
|
|
44869
45061
|
const useData = (props, { expandedRowKeys, lastRenderedRowIndex, resetAfterIndex }) => {
|
|
44870
45062
|
const depthMap = ref({});
|
|
44871
|
-
const flattenedData = computed(() => {
|
|
45063
|
+
const flattenedData = computed$1(() => {
|
|
44872
45064
|
const depths = {};
|
|
44873
45065
|
const { data: data2, rowKey } = props;
|
|
44874
45066
|
const _expandedRowKeys = unref(expandedRowKeys);
|
|
@@ -44890,7 +45082,7 @@ const useData = (props, { expandedRowKeys, lastRenderedRowIndex, resetAfterIndex
|
|
|
44890
45082
|
depthMap.value = depths;
|
|
44891
45083
|
return array;
|
|
44892
45084
|
});
|
|
44893
|
-
const data = computed(() => {
|
|
45085
|
+
const data = computed$1(() => {
|
|
44894
45086
|
const { data: data2, expandColumnKey } = props;
|
|
44895
45087
|
return expandColumnKey ? unref(flattenedData) : data2;
|
|
44896
45088
|
});
|
|
@@ -44927,13 +45119,13 @@ const useStyles = (props, {
|
|
|
44927
45119
|
fixedColumnsOnLeft,
|
|
44928
45120
|
fixedColumnsOnRight
|
|
44929
45121
|
}) => {
|
|
44930
|
-
const bodyWidth = computed(() => {
|
|
45122
|
+
const bodyWidth = computed$1(() => {
|
|
44931
45123
|
const { fixed, width, vScrollbarSize } = props;
|
|
44932
45124
|
const ret = width - vScrollbarSize;
|
|
44933
45125
|
return fixed ? Math.max(Math.round(unref(columnsTotalWidth)), ret) : ret;
|
|
44934
45126
|
});
|
|
44935
|
-
const headerWidth = computed(() => unref(bodyWidth) + (props.fixed ? props.vScrollbarSize : 0));
|
|
44936
|
-
const mainTableHeight = computed(() => {
|
|
45127
|
+
const headerWidth = computed$1(() => unref(bodyWidth) + (props.fixed ? props.vScrollbarSize : 0));
|
|
45128
|
+
const mainTableHeight = computed$1(() => {
|
|
44937
45129
|
const { height = 0, maxHeight = 0, footerHeight: footerHeight2, hScrollbarSize } = props;
|
|
44938
45130
|
if (maxHeight > 0) {
|
|
44939
45131
|
const _fixedRowsHeight = unref(fixedRowsHeight);
|
|
@@ -44944,7 +45136,7 @@ const useStyles = (props, {
|
|
|
44944
45136
|
}
|
|
44945
45137
|
return height - footerHeight2;
|
|
44946
45138
|
});
|
|
44947
|
-
const rowsHeight = computed(() => {
|
|
45139
|
+
const rowsHeight = computed$1(() => {
|
|
44948
45140
|
const { rowHeight, estimatedRowHeight } = props;
|
|
44949
45141
|
const _data = unref(data);
|
|
44950
45142
|
if (isNumber(estimatedRowHeight)) {
|
|
@@ -44952,7 +45144,7 @@ const useStyles = (props, {
|
|
|
44952
45144
|
}
|
|
44953
45145
|
return _data.length * rowHeight;
|
|
44954
45146
|
});
|
|
44955
|
-
const fixedTableHeight = computed(() => {
|
|
45147
|
+
const fixedTableHeight = computed$1(() => {
|
|
44956
45148
|
const { maxHeight } = props;
|
|
44957
45149
|
const tableHeight = unref(mainTableHeight);
|
|
44958
45150
|
if (isNumber(maxHeight) && maxHeight > 0)
|
|
@@ -44961,17 +45153,17 @@ const useStyles = (props, {
|
|
|
44961
45153
|
return Math.min(tableHeight, totalHeight);
|
|
44962
45154
|
});
|
|
44963
45155
|
const mapColumn = (column) => column.width;
|
|
44964
|
-
const leftTableWidth = computed(() => sum(unref(fixedColumnsOnLeft).map(mapColumn)));
|
|
44965
|
-
const rightTableWidth = computed(() => sum(unref(fixedColumnsOnRight).map(mapColumn)));
|
|
44966
|
-
const headerHeight = computed(() => sum(props.headerHeight));
|
|
44967
|
-
const fixedRowsHeight = computed(() => {
|
|
45156
|
+
const leftTableWidth = computed$1(() => sum(unref(fixedColumnsOnLeft).map(mapColumn)));
|
|
45157
|
+
const rightTableWidth = computed$1(() => sum(unref(fixedColumnsOnRight).map(mapColumn)));
|
|
45158
|
+
const headerHeight = computed$1(() => sum(props.headerHeight));
|
|
45159
|
+
const fixedRowsHeight = computed$1(() => {
|
|
44968
45160
|
var _a;
|
|
44969
45161
|
return (((_a = props.fixedData) == null ? void 0 : _a.length) || 0) * props.rowHeight;
|
|
44970
45162
|
});
|
|
44971
|
-
const windowHeight = computed(() => {
|
|
45163
|
+
const windowHeight = computed$1(() => {
|
|
44972
45164
|
return unref(mainTableHeight) - unref(headerHeight) - unref(fixedRowsHeight);
|
|
44973
45165
|
});
|
|
44974
|
-
const rootStyle = computed(() => {
|
|
45166
|
+
const rootStyle = computed$1(() => {
|
|
44975
45167
|
const { style = {}, height, width } = props;
|
|
44976
45168
|
return enforceUnit({
|
|
44977
45169
|
...style,
|
|
@@ -44979,8 +45171,8 @@ const useStyles = (props, {
|
|
|
44979
45171
|
width
|
|
44980
45172
|
});
|
|
44981
45173
|
});
|
|
44982
|
-
const footerHeight = computed(() => enforceUnit({ height: props.footerHeight }));
|
|
44983
|
-
const emptyStyle = computed(() => ({
|
|
45174
|
+
const footerHeight = computed$1(() => enforceUnit({ height: props.footerHeight }));
|
|
45175
|
+
const emptyStyle = computed$1(() => ({
|
|
44984
45176
|
top: addUnit(unref(headerHeight)),
|
|
44985
45177
|
bottom: addUnit(props.footerHeight),
|
|
44986
45178
|
width: addUnit(props.width)
|
|
@@ -45105,7 +45297,7 @@ function useTable(props) {
|
|
|
45105
45297
|
});
|
|
45106
45298
|
const isScrolling = shallowRef(false);
|
|
45107
45299
|
const containerRef = ref();
|
|
45108
|
-
const showEmpty = computed(() => {
|
|
45300
|
+
const showEmpty = computed$1(() => {
|
|
45109
45301
|
const noData = unref(data).length === 0;
|
|
45110
45302
|
return isArray(props.fixedData) ? props.fixedData.length === 0 && noData : noData;
|
|
45111
45303
|
});
|
|
@@ -45495,15 +45687,15 @@ const TableV2Header = defineComponent({
|
|
|
45495
45687
|
}) {
|
|
45496
45688
|
const ns = useNamespace("table-v2");
|
|
45497
45689
|
const headerRef = ref();
|
|
45498
|
-
const headerStyle = computed(() => enforceUnit({
|
|
45690
|
+
const headerStyle = computed$1(() => enforceUnit({
|
|
45499
45691
|
width: props.width,
|
|
45500
45692
|
height: props.height
|
|
45501
45693
|
}));
|
|
45502
|
-
const rowStyle = computed(() => enforceUnit({
|
|
45694
|
+
const rowStyle = computed$1(() => enforceUnit({
|
|
45503
45695
|
width: props.rowWidth,
|
|
45504
45696
|
height: props.height
|
|
45505
45697
|
}));
|
|
45506
|
-
const headerHeights = computed(() => castArray$1(unref(props.headerHeight)));
|
|
45698
|
+
const headerHeights = computed$1(() => castArray$1(unref(props.headerHeight)));
|
|
45507
45699
|
const scrollToLeft = (left) => {
|
|
45508
45700
|
const headerEl = unref(headerRef);
|
|
45509
45701
|
nextTick(() => {
|
|
@@ -45578,7 +45770,7 @@ const useTableRow = (props) => {
|
|
|
45578
45770
|
} = inject(TableV2InjectionKey);
|
|
45579
45771
|
const measured = ref(false);
|
|
45580
45772
|
const rowRef = ref();
|
|
45581
|
-
const measurable = computed(() => {
|
|
45773
|
+
const measurable = computed$1(() => {
|
|
45582
45774
|
return isNumber(props.estimatedRowHeight) && props.rowIndex >= 0;
|
|
45583
45775
|
});
|
|
45584
45776
|
const doMeasure = (isInit = false) => {
|
|
@@ -45608,7 +45800,7 @@ const useTableRow = (props) => {
|
|
|
45608
45800
|
}
|
|
45609
45801
|
});
|
|
45610
45802
|
};
|
|
45611
|
-
const eventHandlers = computed(() => {
|
|
45803
|
+
const eventHandlers = computed$1(() => {
|
|
45612
45804
|
const {
|
|
45613
45805
|
rowData,
|
|
45614
45806
|
rowIndex,
|
|
@@ -45807,7 +45999,7 @@ const COMPONENT_NAME$2 = "ElTableV2Grid";
|
|
|
45807
45999
|
const useTableGrid = (props) => {
|
|
45808
46000
|
const headerRef = ref();
|
|
45809
46001
|
const bodyRef = ref();
|
|
45810
|
-
const totalHeight = computed(() => {
|
|
46002
|
+
const totalHeight = computed$1(() => {
|
|
45811
46003
|
const {
|
|
45812
46004
|
data,
|
|
45813
46005
|
rowHeight,
|
|
@@ -45818,21 +46010,21 @@ const useTableGrid = (props) => {
|
|
|
45818
46010
|
}
|
|
45819
46011
|
return data.length * rowHeight;
|
|
45820
46012
|
});
|
|
45821
|
-
const fixedRowHeight = computed(() => {
|
|
46013
|
+
const fixedRowHeight = computed$1(() => {
|
|
45822
46014
|
const {
|
|
45823
46015
|
fixedData,
|
|
45824
46016
|
rowHeight
|
|
45825
46017
|
} = props;
|
|
45826
46018
|
return ((fixedData == null ? void 0 : fixedData.length) || 0) * rowHeight;
|
|
45827
46019
|
});
|
|
45828
|
-
const headerHeight = computed(() => sum(props.headerHeight));
|
|
45829
|
-
const gridHeight = computed(() => {
|
|
46020
|
+
const headerHeight = computed$1(() => sum(props.headerHeight));
|
|
46021
|
+
const gridHeight = computed$1(() => {
|
|
45830
46022
|
const {
|
|
45831
46023
|
height
|
|
45832
46024
|
} = props;
|
|
45833
46025
|
return Math.max(0, height - unref(headerHeight) - unref(fixedRowHeight));
|
|
45834
46026
|
});
|
|
45835
|
-
const hasHeader = computed(() => {
|
|
46027
|
+
const hasHeader = computed$1(() => {
|
|
45836
46028
|
return unref(headerHeight) + unref(fixedRowHeight) > 0;
|
|
45837
46029
|
});
|
|
45838
46030
|
const itemKey = ({
|
|
@@ -46767,8 +46959,8 @@ const TabNav = defineComponent({
|
|
|
46767
46959
|
const navOffset = ref(0);
|
|
46768
46960
|
const isFocus = ref(false);
|
|
46769
46961
|
const focusable = ref(true);
|
|
46770
|
-
const sizeName = computed(() => ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height");
|
|
46771
|
-
const navStyle = computed(() => {
|
|
46962
|
+
const sizeName = computed$1(() => ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height");
|
|
46963
|
+
const navStyle = computed$1(() => {
|
|
46772
46964
|
const dir = sizeName.value === "width" ? "X" : "Y";
|
|
46773
46965
|
return {
|
|
46774
46966
|
transform: `translate${dir}(-${navOffset.value}px)`
|
|
@@ -47066,7 +47258,7 @@ var Tabs = defineComponent({
|
|
|
47066
47258
|
version: "2.3.0",
|
|
47067
47259
|
ref: "https://element-plus.org/en-US/component/tabs.html#attributes",
|
|
47068
47260
|
type: "Attribute"
|
|
47069
|
-
}, computed(() => !!props.activeName));
|
|
47261
|
+
}, computed$1(() => !!props.activeName));
|
|
47070
47262
|
watch(() => props.activeName, (modelValue) => setCurrentName(modelValue));
|
|
47071
47263
|
watch(() => props.modelValue, (modelValue) => setCurrentName(modelValue));
|
|
47072
47264
|
watch(currentName, async () => {
|
|
@@ -47156,13 +47348,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
47156
47348
|
throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
|
|
47157
47349
|
const ns = useNamespace("tab-pane");
|
|
47158
47350
|
const index = ref();
|
|
47159
|
-
const isClosable = computed(() => props.closable || tabsRoot.props.closable);
|
|
47351
|
+
const isClosable = computed$1(() => props.closable || tabsRoot.props.closable);
|
|
47160
47352
|
const active = computedEager(() => {
|
|
47161
47353
|
var _a;
|
|
47162
47354
|
return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index.value);
|
|
47163
47355
|
});
|
|
47164
47356
|
const loaded = ref(active.value);
|
|
47165
|
-
const paneName = computed(() => {
|
|
47357
|
+
const paneName = computed$1(() => {
|
|
47166
47358
|
var _a;
|
|
47167
47359
|
return (_a = props.name) != null ? _a : index.value;
|
|
47168
47360
|
});
|
|
@@ -47324,28 +47516,28 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
47324
47516
|
const { Option: ElOption } = ElSelect;
|
|
47325
47517
|
const nsInput = useNamespace("input");
|
|
47326
47518
|
const select = ref();
|
|
47327
|
-
const value = computed(() => props.modelValue);
|
|
47328
|
-
const start = computed(() => {
|
|
47519
|
+
const value = computed$1(() => props.modelValue);
|
|
47520
|
+
const start = computed$1(() => {
|
|
47329
47521
|
const time = parseTime(props.start);
|
|
47330
47522
|
return time ? formatTime(time) : null;
|
|
47331
47523
|
});
|
|
47332
|
-
const end = computed(() => {
|
|
47524
|
+
const end = computed$1(() => {
|
|
47333
47525
|
const time = parseTime(props.end);
|
|
47334
47526
|
return time ? formatTime(time) : null;
|
|
47335
47527
|
});
|
|
47336
|
-
const step = computed(() => {
|
|
47528
|
+
const step = computed$1(() => {
|
|
47337
47529
|
const time = parseTime(props.step);
|
|
47338
47530
|
return time ? formatTime(time) : null;
|
|
47339
47531
|
});
|
|
47340
|
-
const minTime = computed(() => {
|
|
47532
|
+
const minTime = computed$1(() => {
|
|
47341
47533
|
const time = parseTime(props.minTime || "");
|
|
47342
47534
|
return time ? formatTime(time) : null;
|
|
47343
47535
|
});
|
|
47344
|
-
const maxTime = computed(() => {
|
|
47536
|
+
const maxTime = computed$1(() => {
|
|
47345
47537
|
const time = parseTime(props.maxTime || "");
|
|
47346
47538
|
return time ? formatTime(time) : null;
|
|
47347
47539
|
});
|
|
47348
|
-
const items = computed(() => {
|
|
47540
|
+
const items = computed$1(() => {
|
|
47349
47541
|
const result = [];
|
|
47350
47542
|
if (props.start && props.end && props.step) {
|
|
47351
47543
|
let current = start.value;
|
|
@@ -47692,7 +47884,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
47692
47884
|
const props = __props;
|
|
47693
47885
|
const _open = ref(props.defaultOpen);
|
|
47694
47886
|
const triggerRef = ref(null);
|
|
47695
|
-
const open = computed({
|
|
47887
|
+
const open = computed$1({
|
|
47696
47888
|
get: () => isPropAbsent(props.open) ? _open.value : props.open,
|
|
47697
47889
|
set: (open2) => {
|
|
47698
47890
|
var _a;
|
|
@@ -47700,10 +47892,10 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
47700
47892
|
(_a = props["onUpdate:open"]) == null ? void 0 : _a.call(props, open2);
|
|
47701
47893
|
}
|
|
47702
47894
|
});
|
|
47703
|
-
const isOpenDelayed = computed(() => isNumber(props.delayDuration) && props.delayDuration > 0);
|
|
47895
|
+
const isOpenDelayed = computed$1(() => isNumber(props.delayDuration) && props.delayDuration > 0);
|
|
47704
47896
|
const { start: onDelayedOpen, stop: clearTimer } = useTimeoutFn(() => {
|
|
47705
47897
|
open.value = true;
|
|
47706
|
-
}, computed(() => props.delayDuration), {
|
|
47898
|
+
}, computed$1(() => props.delayDuration), {
|
|
47707
47899
|
immediate: false
|
|
47708
47900
|
});
|
|
47709
47901
|
const ns = useNamespace("tooltip-v2");
|
|
@@ -47768,7 +47960,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
47768
47960
|
const props = __props;
|
|
47769
47961
|
const { ns } = inject(tooltipV2RootKey);
|
|
47770
47962
|
const { arrowRef } = inject(tooltipV2ContentKey);
|
|
47771
|
-
const arrowStyle = computed(() => {
|
|
47963
|
+
const arrowStyle = computed$1(() => {
|
|
47772
47964
|
const { style, width, height } = props;
|
|
47773
47965
|
const namespace = ns.namespace.value;
|
|
47774
47966
|
return {
|
|
@@ -47806,7 +47998,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
47806
47998
|
props: visualHiddenProps,
|
|
47807
47999
|
setup(__props) {
|
|
47808
48000
|
const props = __props;
|
|
47809
|
-
const computedStyle = computed(() => {
|
|
48001
|
+
const computedStyle = computed$1(() => {
|
|
47810
48002
|
return [
|
|
47811
48003
|
props.style,
|
|
47812
48004
|
{
|
|
@@ -47848,7 +48040,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
47848
48040
|
const { referenceRef, contentRef, middlewareData, x, y, update } = useFloating({
|
|
47849
48041
|
placement,
|
|
47850
48042
|
strategy,
|
|
47851
|
-
middleware: computed(() => {
|
|
48043
|
+
middleware: computed$1(() => {
|
|
47852
48044
|
const middleware = [offset(props.offset)];
|
|
47853
48045
|
if (props.showArrow) {
|
|
47854
48046
|
middleware.push(arrowMiddleware({
|
|
@@ -47860,10 +48052,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
47860
48052
|
});
|
|
47861
48053
|
const zIndex = useZIndex().nextZIndex();
|
|
47862
48054
|
const ns = useNamespace("tooltip-v2");
|
|
47863
|
-
const side = computed(() => {
|
|
48055
|
+
const side = computed$1(() => {
|
|
47864
48056
|
return placement.value.split("-")[0];
|
|
47865
48057
|
});
|
|
47866
|
-
const contentStyle = computed(() => {
|
|
48058
|
+
const contentStyle = computed$1(() => {
|
|
47867
48059
|
return {
|
|
47868
48060
|
position: unref(strategy),
|
|
47869
48061
|
top: `${unref(y) || 0}px`,
|
|
@@ -47871,7 +48063,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
47871
48063
|
zIndex
|
|
47872
48064
|
};
|
|
47873
48065
|
});
|
|
47874
|
-
const arrowStyle = computed(() => {
|
|
48066
|
+
const arrowStyle = computed$1(() => {
|
|
47875
48067
|
if (!props.showArrow)
|
|
47876
48068
|
return {};
|
|
47877
48069
|
const { arrow } = unref(middlewareData);
|
|
@@ -47880,7 +48072,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
47880
48072
|
[`--${ns.namespace.value}-tooltip-v2-arrow-y`]: `${arrow == null ? void 0 : arrow.y}px` || ""
|
|
47881
48073
|
};
|
|
47882
48074
|
});
|
|
47883
|
-
const contentClass = computed(() => [
|
|
48075
|
+
const contentClass = computed$1(() => [
|
|
47884
48076
|
ns.e("content"),
|
|
47885
48077
|
ns.is("dark", props.effect === "dark"),
|
|
47886
48078
|
ns.is(unref(strategy)),
|
|
@@ -48204,7 +48396,7 @@ const usePropsAlias = (props) => {
|
|
|
48204
48396
|
key: "key",
|
|
48205
48397
|
disabled: "disabled"
|
|
48206
48398
|
};
|
|
48207
|
-
return computed(() => ({
|
|
48399
|
+
return computed$1(() => ({
|
|
48208
48400
|
...initProps,
|
|
48209
48401
|
...props.props
|
|
48210
48402
|
}));
|
|
@@ -48212,7 +48404,7 @@ const usePropsAlias = (props) => {
|
|
|
48212
48404
|
|
|
48213
48405
|
const useCheck$1 = (props, panelState, emit) => {
|
|
48214
48406
|
const propsAlias = usePropsAlias(props);
|
|
48215
|
-
const filteredData = computed(() => {
|
|
48407
|
+
const filteredData = computed$1(() => {
|
|
48216
48408
|
return props.data.filter((item) => {
|
|
48217
48409
|
if (isFunction(props.filterMethod)) {
|
|
48218
48410
|
return props.filterMethod(panelState.query, item);
|
|
@@ -48222,8 +48414,8 @@ const useCheck$1 = (props, panelState, emit) => {
|
|
|
48222
48414
|
}
|
|
48223
48415
|
});
|
|
48224
48416
|
});
|
|
48225
|
-
const checkableData = computed(() => filteredData.value.filter((item) => !item[propsAlias.value.disabled]));
|
|
48226
|
-
const checkedSummary = computed(() => {
|
|
48417
|
+
const checkableData = computed$1(() => filteredData.value.filter((item) => !item[propsAlias.value.disabled]));
|
|
48418
|
+
const checkedSummary = computed$1(() => {
|
|
48227
48419
|
const checkedLength = panelState.checked.length;
|
|
48228
48420
|
const dataLength = props.data.length;
|
|
48229
48421
|
const { noChecked, hasChecked } = props.format;
|
|
@@ -48233,7 +48425,7 @@ const useCheck$1 = (props, panelState, emit) => {
|
|
|
48233
48425
|
return `${checkedLength}/${dataLength}`;
|
|
48234
48426
|
}
|
|
48235
48427
|
});
|
|
48236
|
-
const isIndeterminate = computed(() => {
|
|
48428
|
+
const isIndeterminate = computed$1(() => {
|
|
48237
48429
|
const checkedLength = panelState.checked.length;
|
|
48238
48430
|
return checkedLength > 0 && checkedLength < checkableData.value.length;
|
|
48239
48431
|
});
|
|
@@ -48314,9 +48506,9 @@ const useCheckedChange = (checkedState, emit) => {
|
|
|
48314
48506
|
|
|
48315
48507
|
const useComputedData = (props) => {
|
|
48316
48508
|
const propsAlias = usePropsAlias(props);
|
|
48317
|
-
const dataObj = computed(() => props.data.reduce((o, cur) => (o[cur[propsAlias.value.key]] = cur) && o, {}));
|
|
48318
|
-
const sourceData = computed(() => props.data.filter((item) => !props.modelValue.includes(item[propsAlias.value.key])));
|
|
48319
|
-
const targetData = computed(() => {
|
|
48509
|
+
const dataObj = computed$1(() => props.data.reduce((o, cur) => (o[cur[propsAlias.value.key]] = cur) && o, {}));
|
|
48510
|
+
const sourceData = computed$1(() => props.data.filter((item) => !props.modelValue.includes(item[propsAlias.value.key])));
|
|
48511
|
+
const targetData = computed$1(() => {
|
|
48320
48512
|
if (props.targetOrder === "original") {
|
|
48321
48513
|
return props.data.filter((item) => props.modelValue.includes(item[propsAlias.value.key]));
|
|
48322
48514
|
} else {
|
|
@@ -48396,8 +48588,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
48396
48588
|
isIndeterminate,
|
|
48397
48589
|
handleAllCheckedChange
|
|
48398
48590
|
} = useCheck$1(props, panelState, emit);
|
|
48399
|
-
const hasNoMatch = computed(() => !isEmpty(panelState.query) && isEmpty(filteredData.value));
|
|
48400
|
-
const hasFooter = computed(() => !isEmpty(slots.default()[0].children));
|
|
48591
|
+
const hasNoMatch = computed$1(() => !isEmpty(panelState.query) && isEmpty(filteredData.value));
|
|
48592
|
+
const hasFooter = computed$1(() => !isEmpty(slots.default()[0].children));
|
|
48401
48593
|
const { checked, allChecked, query, inputHover } = toRefs(panelState);
|
|
48402
48594
|
expose({
|
|
48403
48595
|
query
|
|
@@ -48519,17 +48711,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
48519
48711
|
break;
|
|
48520
48712
|
}
|
|
48521
48713
|
};
|
|
48522
|
-
const hasButtonTexts = computed(() => props.buttonTexts.length === 2);
|
|
48523
|
-
const leftPanelTitle = computed(() => props.titles[0] || t("el.transfer.titles.0"));
|
|
48524
|
-
const rightPanelTitle = computed(() => props.titles[1] || t("el.transfer.titles.1"));
|
|
48525
|
-
const panelFilterPlaceholder = computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
48714
|
+
const hasButtonTexts = computed$1(() => props.buttonTexts.length === 2);
|
|
48715
|
+
const leftPanelTitle = computed$1(() => props.titles[0] || t("el.transfer.titles.0"));
|
|
48716
|
+
const rightPanelTitle = computed$1(() => props.titles[1] || t("el.transfer.titles.1"));
|
|
48717
|
+
const panelFilterPlaceholder = computed$1(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
48526
48718
|
watch(() => props.modelValue, () => {
|
|
48527
48719
|
var _a;
|
|
48528
48720
|
if (props.validateEvent) {
|
|
48529
48721
|
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
48530
48722
|
}
|
|
48531
48723
|
});
|
|
48532
|
-
const optionRender = computed(() => (option) => {
|
|
48724
|
+
const optionRender = computed$1(() => (option) => {
|
|
48533
48725
|
if (props.renderContent)
|
|
48534
48726
|
return props.renderContent(h$1, option);
|
|
48535
48727
|
if (slots.default)
|
|
@@ -49855,10 +50047,6 @@ function useKeydown({ el$ }, store) {
|
|
|
49855
50047
|
const checkboxItems = shallowRef([]);
|
|
49856
50048
|
onMounted(() => {
|
|
49857
50049
|
initTabIndex();
|
|
49858
|
-
on$1(el$.value, "keydown", handleKeydown);
|
|
49859
|
-
});
|
|
49860
|
-
onBeforeUnmount(() => {
|
|
49861
|
-
off(el$.value, "keydown", handleKeydown);
|
|
49862
50050
|
});
|
|
49863
50051
|
onUpdated(() => {
|
|
49864
50052
|
treeItems.value = Array.from(el$.value.querySelectorAll("[role=treeitem]"));
|
|
@@ -49922,6 +50110,7 @@ function useKeydown({ el$ }, store) {
|
|
|
49922
50110
|
hasInput.click();
|
|
49923
50111
|
}
|
|
49924
50112
|
};
|
|
50113
|
+
useEventListener(el$, "keydown", handleKeydown);
|
|
49925
50114
|
const initTabIndex = () => {
|
|
49926
50115
|
var _a;
|
|
49927
50116
|
treeItems.value = Array.from(el$.value.querySelectorAll(`.${ns.is("focusable")}[role=treeitem]`));
|
|
@@ -50049,7 +50238,7 @@ const _sfc_main$a = defineComponent({
|
|
|
50049
50238
|
store
|
|
50050
50239
|
});
|
|
50051
50240
|
useKeydown({ el$ }, store);
|
|
50052
|
-
const isEmpty = computed(() => {
|
|
50241
|
+
const isEmpty = computed$1(() => {
|
|
50053
50242
|
const { childNodes } = root.value;
|
|
50054
50243
|
return !childNodes || childNodes.length === 0 || childNodes.every(({ visible }) => !visible);
|
|
50055
50244
|
});
|
|
@@ -50258,7 +50447,7 @@ const useSelect = (props, { attrs }, {
|
|
|
50258
50447
|
...pick(toRefs(props), Object.keys(ElSelect.props)),
|
|
50259
50448
|
...attrs,
|
|
50260
50449
|
valueKey: key,
|
|
50261
|
-
popperClass: computed(() => {
|
|
50450
|
+
popperClass: computed$1(() => {
|
|
50262
50451
|
const classes = [ns.e("popper")];
|
|
50263
50452
|
if (props.popperClass)
|
|
50264
50453
|
classes.push(props.popperClass);
|
|
@@ -50347,7 +50536,7 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
50347
50536
|
immediate: true,
|
|
50348
50537
|
deep: true
|
|
50349
50538
|
});
|
|
50350
|
-
const propsMap = computed(() => ({
|
|
50539
|
+
const propsMap = computed$1(() => ({
|
|
50351
50540
|
value: key.value,
|
|
50352
50541
|
...props.props
|
|
50353
50542
|
}));
|
|
@@ -50367,10 +50556,10 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
50367
50556
|
...pick(toRefs(props), Object.keys(_Tree.props)),
|
|
50368
50557
|
...attrs,
|
|
50369
50558
|
nodeKey: key,
|
|
50370
|
-
expandOnClickNode: computed(() => {
|
|
50559
|
+
expandOnClickNode: computed$1(() => {
|
|
50371
50560
|
return !props.checkStrictly;
|
|
50372
50561
|
}),
|
|
50373
|
-
defaultExpandedKeys: computed(() => {
|
|
50562
|
+
defaultExpandedKeys: computed$1(() => {
|
|
50374
50563
|
return props.defaultExpandedKeys ? props.defaultExpandedKeys.concat(defaultExpandedParentKeys) : defaultExpandedParentKeys;
|
|
50375
50564
|
}),
|
|
50376
50565
|
renderContent: (h, { node, data, store }) => {
|
|
@@ -50433,7 +50622,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
50433
50622
|
const { slots, expose } = context;
|
|
50434
50623
|
const select = ref();
|
|
50435
50624
|
const tree = ref();
|
|
50436
|
-
const key = computed(() => props.nodeKey || props.valueKey || "value");
|
|
50625
|
+
const key = computed$1(() => props.nodeKey || props.valueKey || "value");
|
|
50437
50626
|
const selectProps = useSelect(props, context, { select, tree, key });
|
|
50438
50627
|
const treeProps = useTree$1(props, context, { select, tree, key });
|
|
50439
50628
|
const methods = reactive({});
|
|
@@ -50810,7 +50999,7 @@ function useCheck(props, tree) {
|
|
|
50810
50999
|
function useFilter(props, tree) {
|
|
50811
51000
|
const hiddenNodeKeySet = ref(/* @__PURE__ */ new Set([]));
|
|
50812
51001
|
const hiddenExpandIconKeySet = ref(/* @__PURE__ */ new Set([]));
|
|
50813
|
-
const filterable = computed(() => {
|
|
51002
|
+
const filterable = computed$1(() => {
|
|
50814
51003
|
return isFunction(props.filterMethod);
|
|
50815
51004
|
});
|
|
50816
51005
|
function doFilter(query) {
|
|
@@ -50900,23 +51089,23 @@ function useTree(props, emit) {
|
|
|
50900
51089
|
setCheckedKeys
|
|
50901
51090
|
} = useCheck(props, tree);
|
|
50902
51091
|
const { doFilter, hiddenNodeKeySet, isForceHiddenExpandIcon } = useFilter(props, tree);
|
|
50903
|
-
const valueKey = computed(() => {
|
|
51092
|
+
const valueKey = computed$1(() => {
|
|
50904
51093
|
var _a;
|
|
50905
51094
|
return ((_a = props.props) == null ? void 0 : _a.value) || TreeOptionsEnum.KEY;
|
|
50906
51095
|
});
|
|
50907
|
-
const childrenKey = computed(() => {
|
|
51096
|
+
const childrenKey = computed$1(() => {
|
|
50908
51097
|
var _a;
|
|
50909
51098
|
return ((_a = props.props) == null ? void 0 : _a.children) || TreeOptionsEnum.CHILDREN;
|
|
50910
51099
|
});
|
|
50911
|
-
const disabledKey = computed(() => {
|
|
51100
|
+
const disabledKey = computed$1(() => {
|
|
50912
51101
|
var _a;
|
|
50913
51102
|
return ((_a = props.props) == null ? void 0 : _a.disabled) || TreeOptionsEnum.DISABLED;
|
|
50914
51103
|
});
|
|
50915
|
-
const labelKey = computed(() => {
|
|
51104
|
+
const labelKey = computed$1(() => {
|
|
50916
51105
|
var _a;
|
|
50917
51106
|
return ((_a = props.props) == null ? void 0 : _a.label) || TreeOptionsEnum.LABEL;
|
|
50918
51107
|
});
|
|
50919
|
-
const flattenTree = computed(() => {
|
|
51108
|
+
const flattenTree = computed$1(() => {
|
|
50920
51109
|
const expandedKeys = expandedKeySet.value;
|
|
50921
51110
|
const hiddenKeys = hiddenNodeKeySet.value;
|
|
50922
51111
|
const flattenNodes = [];
|
|
@@ -50947,7 +51136,7 @@ function useTree(props, emit) {
|
|
|
50947
51136
|
traverse();
|
|
50948
51137
|
return flattenNodes;
|
|
50949
51138
|
});
|
|
50950
|
-
const isNotEmpty = computed(() => {
|
|
51139
|
+
const isNotEmpty = computed$1(() => {
|
|
50951
51140
|
return flattenTree.value.length > 0;
|
|
50952
51141
|
});
|
|
50953
51142
|
function createTree(data) {
|
|
@@ -51141,11 +51330,11 @@ const _sfc_main$8 = defineComponent({
|
|
|
51141
51330
|
setup(props, { emit }) {
|
|
51142
51331
|
const tree = inject(ROOT_TREE_INJECTION_KEY);
|
|
51143
51332
|
const ns = useNamespace("tree");
|
|
51144
|
-
const indent = computed(() => {
|
|
51333
|
+
const indent = computed$1(() => {
|
|
51145
51334
|
var _a;
|
|
51146
51335
|
return (_a = tree == null ? void 0 : tree.props.indent) != null ? _a : 16;
|
|
51147
51336
|
});
|
|
51148
|
-
const icon = computed(() => {
|
|
51337
|
+
const icon = computed$1(() => {
|
|
51149
51338
|
var _a;
|
|
51150
51339
|
return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : DEFAULT_ICON;
|
|
51151
51340
|
});
|
|
@@ -52150,8 +52339,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
52150
52339
|
handleSuccess,
|
|
52151
52340
|
handleProgress
|
|
52152
52341
|
} = useHandlers(props, uploadRef);
|
|
52153
|
-
const isPictureCard = computed(() => props.listType === "picture-card");
|
|
52154
|
-
const uploadContentProps = computed(() => ({
|
|
52342
|
+
const isPictureCard = computed$1(() => props.listType === "picture-card");
|
|
52343
|
+
const uploadContentProps = computed$1(() => ({
|
|
52155
52344
|
...props,
|
|
52156
52345
|
onStart: handleStart,
|
|
52157
52346
|
onProgress: handleProgress,
|
|
@@ -52863,16 +53052,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
52863
53052
|
const visible = ref(false);
|
|
52864
53053
|
const height = ref(0);
|
|
52865
53054
|
let stopTimer = void 0;
|
|
52866
|
-
const badgeType = computed(() => props.type ? props.type === "error" ? "danger" : props.type : "info");
|
|
52867
|
-
const typeClass = computed(() => {
|
|
53055
|
+
const badgeType = computed$1(() => props.type ? props.type === "error" ? "danger" : props.type : "info");
|
|
53056
|
+
const typeClass = computed$1(() => {
|
|
52868
53057
|
const type = props.type;
|
|
52869
53058
|
return { [ns.bm("icon", type)]: type && TypeComponentsMap[type] };
|
|
52870
53059
|
});
|
|
52871
|
-
const iconComponent = computed(() => props.icon || TypeComponentsMap[props.type] || "");
|
|
52872
|
-
const lastOffset = computed(() => getLastOffset(props.id));
|
|
52873
|
-
const offset = computed(() => props.offset + lastOffset.value);
|
|
52874
|
-
const bottom = computed(() => height.value + offset.value);
|
|
52875
|
-
const customStyle = computed(() => ({
|
|
53060
|
+
const iconComponent = computed$1(() => props.icon || TypeComponentsMap[props.type] || "");
|
|
53061
|
+
const lastOffset = computed$1(() => getLastOffset(props.id));
|
|
53062
|
+
const offset = computed$1(() => props.offset + lastOffset.value);
|
|
53063
|
+
const bottom = computed$1(() => height.value + offset.value);
|
|
53064
|
+
const customStyle = computed$1(() => ({
|
|
52876
53065
|
top: `${offset.value}px`,
|
|
52877
53066
|
zIndex: props.zIndex
|
|
52878
53067
|
}));
|
|
@@ -53185,21 +53374,21 @@ const _sfc_main$1 = defineComponent({
|
|
|
53185
53374
|
validateError: false,
|
|
53186
53375
|
zIndex: nextZIndex()
|
|
53187
53376
|
});
|
|
53188
|
-
const typeClass = computed(() => {
|
|
53377
|
+
const typeClass = computed$1(() => {
|
|
53189
53378
|
const type = state.type;
|
|
53190
53379
|
return { [ns.bm("icon", type)]: type && TypeComponentsMap[type] };
|
|
53191
53380
|
});
|
|
53192
53381
|
const contentId = useId();
|
|
53193
53382
|
const inputId = useId();
|
|
53194
|
-
const btnSize = useSize(computed(() => props.buttonSize), { prop: true, form: true, formItem: true });
|
|
53195
|
-
const iconComponent = computed(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
53196
|
-
const hasMessage = computed(() => !!state.message);
|
|
53383
|
+
const btnSize = useSize(computed$1(() => props.buttonSize), { prop: true, form: true, formItem: true });
|
|
53384
|
+
const iconComponent = computed$1(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
53385
|
+
const hasMessage = computed$1(() => !!state.message);
|
|
53197
53386
|
const rootRef = ref();
|
|
53198
53387
|
const headerRef = ref();
|
|
53199
53388
|
const focusStartRef = ref();
|
|
53200
53389
|
const inputRef = ref();
|
|
53201
53390
|
const confirmRef = ref();
|
|
53202
|
-
const confirmButtonClasses = computed(() => state.confirmButtonClass);
|
|
53391
|
+
const confirmButtonClasses = computed$1(() => state.confirmButtonClass);
|
|
53203
53392
|
watch(() => state.inputValue, async (val) => {
|
|
53204
53393
|
await nextTick();
|
|
53205
53394
|
if (props.boxType === "prompt" && val !== null) {
|
|
@@ -53236,17 +53425,17 @@ const _sfc_main$1 = defineComponent({
|
|
|
53236
53425
|
state.validateError = false;
|
|
53237
53426
|
}
|
|
53238
53427
|
});
|
|
53239
|
-
const draggable = computed(() => props.draggable);
|
|
53428
|
+
const draggable = computed$1(() => props.draggable);
|
|
53240
53429
|
useDraggable(rootRef, headerRef, draggable);
|
|
53241
53430
|
onMounted(async () => {
|
|
53242
53431
|
await nextTick();
|
|
53243
53432
|
if (props.closeOnHashChange) {
|
|
53244
|
-
|
|
53433
|
+
window.addEventListener("hashchange", doClose);
|
|
53245
53434
|
}
|
|
53246
53435
|
});
|
|
53247
53436
|
onBeforeUnmount(() => {
|
|
53248
53437
|
if (props.closeOnHashChange) {
|
|
53249
|
-
|
|
53438
|
+
window.removeEventListener("hashchange", doClose);
|
|
53250
53439
|
}
|
|
53251
53440
|
});
|
|
53252
53441
|
function doClose() {
|
|
@@ -53765,16 +53954,16 @@ const _sfc_main = defineComponent({
|
|
|
53765
53954
|
const ns = useNamespace("notification");
|
|
53766
53955
|
const visible = ref(false);
|
|
53767
53956
|
let timer = void 0;
|
|
53768
|
-
const typeClass = computed(() => {
|
|
53957
|
+
const typeClass = computed$1(() => {
|
|
53769
53958
|
const type = props.type;
|
|
53770
53959
|
return type && TypeComponentsMap[props.type] ? ns.m(type) : "";
|
|
53771
53960
|
});
|
|
53772
|
-
const iconComponent = computed(() => {
|
|
53961
|
+
const iconComponent = computed$1(() => {
|
|
53773
53962
|
return TypeComponentsMap[props.type] || props.icon || "";
|
|
53774
53963
|
});
|
|
53775
|
-
const horizontalClass = computed(() => props.position.endsWith("right") ? "right" : "left");
|
|
53776
|
-
const verticalProperty = computed(() => props.position.startsWith("top") ? "top" : "bottom");
|
|
53777
|
-
const positionStyle = computed(() => {
|
|
53964
|
+
const horizontalClass = computed$1(() => props.position.endsWith("right") ? "right" : "left");
|
|
53965
|
+
const verticalProperty = computed$1(() => props.position.startsWith("top") ? "top" : "bottom");
|
|
53966
|
+
const positionStyle = computed$1(() => {
|
|
53778
53967
|
return {
|
|
53779
53968
|
[verticalProperty.value]: `${props.offset}px`,
|
|
53780
53969
|
zIndex: props.zIndex
|