@element-plus/nightly 0.0.20250429 → 0.0.20250430
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.full.js +402 -290
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +403 -291
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +24 -119
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +119 -24
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +32 -71
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +71 -32
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +134 -16
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +16 -134
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +2 -2
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +18 -90
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +90 -18
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +21 -79
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +79 -21
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description-item.d.ts +1 -1
- package/es/components/descriptions/src/description.mjs +26 -127
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +127 -26
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +6 -63
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +63 -6
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +68 -226
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +226 -68
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +16 -16
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +73 -215
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +215 -73
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/mention/src/mention.vue.d.ts +1 -1
- package/es/components/pagination/src/components/pager.mjs +210 -16
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +16 -210
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +28 -62
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +62 -28
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select-v2/src/defaults.mjs +2 -2
- package/es/components/slider/src/button.mjs +91 -19
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +19 -91
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +38 -35
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +35 -38
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +228 -72
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +72 -228
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.mjs +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +27 -99
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +99 -27
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +132 -54
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +54 -132
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/content.mjs +29 -193
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs +193 -29
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +168 -44
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +44 -168
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.d.ts +2 -2
- package/es/components/visual-hidden/index.mjs +3 -3
- package/es/components/visual-hidden/src/visual-hidden.mjs +6 -35
- package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
- package/es/components/visual-hidden/src/visual-hidden2.mjs +35 -6
- package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
- package/es/index.mjs +16 -16
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +25 -119
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +119 -25
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +32 -71
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +71 -32
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +134 -17
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +17 -134
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +2 -2
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +18 -90
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +90 -18
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +22 -79
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +79 -22
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description-item.d.ts +1 -1
- package/lib/components/descriptions/src/description.js +26 -127
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +127 -26
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +6 -63
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +63 -6
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +68 -225
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +225 -68
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +16 -16
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +73 -214
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +214 -73
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/pager.js +210 -16
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +16 -210
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +30 -62
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +62 -30
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select-v2/src/defaults.js +2 -2
- package/lib/components/slider/src/button.js +91 -20
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +20 -91
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +38 -36
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +36 -38
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +227 -72
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +72 -227
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/src/filter-panel.js +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +28 -99
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +99 -28
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +137 -54
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +54 -137
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/content.js +29 -193
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content2.js +193 -29
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip-v2/src/content2.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +167 -44
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +44 -167
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.d.ts +2 -2
- package/lib/components/visual-hidden/index.js +2 -2
- package/lib/components/visual-hidden/src/visual-hidden.js +6 -35
- package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
- package/lib/components/visual-hidden/src/visual-hidden2.js +35 -6
- package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
- package/lib/index.js +16 -16
- 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/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.20250430 */
|
2
2
|
|
3
|
-
import { readonly, shallowRef, watchEffect, getCurrentScope, onScopeDispose,
|
3
|
+
import { unref, readonly, shallowRef, watchEffect, getCurrentScope, onScopeDispose, isRef, ref, watch, getCurrentInstance, onMounted, nextTick, computed, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, inject, onUnmounted, h as h$1, Teleport as Teleport$1, onBeforeMount, provide, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, onActivated, cloneVNode, Text as Text$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRaw, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, vModelText, toHandlers, markRaw, effectScope, resolveDirective, toHandlerKey, render, createApp, shallowReactive } from 'vue';
|
4
4
|
|
5
5
|
const FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])`;
|
6
6
|
const isVisible = (element) => {
|
@@ -77,99 +77,121 @@ const whenMouse = (handler) => {
|
|
77
77
|
return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
|
78
78
|
};
|
79
79
|
|
80
|
-
var __defProp$9 = Object.defineProperty;
|
81
|
-
var __defProps$6 = Object.defineProperties;
|
82
|
-
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
83
|
-
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
84
|
-
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
85
|
-
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
86
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
87
|
-
var __spreadValues$9 = (a, b) => {
|
88
|
-
for (var prop in b || (b = {}))
|
89
|
-
if (__hasOwnProp$b.call(b, prop))
|
90
|
-
__defNormalProp$9(a, prop, b[prop]);
|
91
|
-
if (__getOwnPropSymbols$b)
|
92
|
-
for (var prop of __getOwnPropSymbols$b(b)) {
|
93
|
-
if (__propIsEnum$b.call(b, prop))
|
94
|
-
__defNormalProp$9(a, prop, b[prop]);
|
95
|
-
}
|
96
|
-
return a;
|
97
|
-
};
|
98
|
-
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
99
80
|
function computedEager(fn, options) {
|
100
81
|
var _a;
|
101
82
|
const result = shallowRef();
|
102
83
|
watchEffect(() => {
|
103
84
|
result.value = fn();
|
104
|
-
},
|
85
|
+
}, {
|
86
|
+
...options,
|
105
87
|
flush: (_a = options == null ? void 0 : options.flush) != null ? _a : "sync"
|
106
|
-
})
|
88
|
+
});
|
107
89
|
return readonly(result);
|
108
90
|
}
|
109
91
|
|
110
|
-
|
111
|
-
|
92
|
+
function tryOnScopeDispose(fn) {
|
93
|
+
if (getCurrentScope()) {
|
94
|
+
onScopeDispose(fn);
|
95
|
+
return true;
|
96
|
+
}
|
97
|
+
return false;
|
98
|
+
}
|
99
|
+
|
100
|
+
function toValue(r) {
|
101
|
+
return typeof r === "function" ? r() : unref(r);
|
102
|
+
}
|
103
|
+
|
104
|
+
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
105
|
+
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
112
106
|
const isDef = (val) => typeof val !== "undefined";
|
113
|
-
const
|
107
|
+
const notNullish = (val) => val != null;
|
108
|
+
const toString$1 = Object.prototype.toString;
|
109
|
+
const isObject$2 = (val) => toString$1.call(val) === "[object Object]";
|
114
110
|
const noop$1 = () => {
|
115
111
|
};
|
116
|
-
const isIOS =
|
117
|
-
|
118
|
-
|
119
|
-
return
|
112
|
+
const isIOS = /* @__PURE__ */ getIsIOS();
|
113
|
+
function getIsIOS() {
|
114
|
+
var _a, _b;
|
115
|
+
return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
120
116
|
}
|
121
117
|
|
122
118
|
function createFilterWrapper(filter, fn) {
|
123
119
|
function wrapper(...args) {
|
124
|
-
|
120
|
+
return new Promise((resolve, reject) => {
|
121
|
+
Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);
|
122
|
+
});
|
125
123
|
}
|
126
124
|
return wrapper;
|
127
125
|
}
|
128
126
|
function debounceFilter(ms, options = {}) {
|
129
127
|
let timer;
|
130
128
|
let maxTimer;
|
129
|
+
let lastRejector = noop$1;
|
130
|
+
const _clearTimeout = (timer2) => {
|
131
|
+
clearTimeout(timer2);
|
132
|
+
lastRejector();
|
133
|
+
lastRejector = noop$1;
|
134
|
+
};
|
131
135
|
const filter = (invoke) => {
|
132
|
-
const duration =
|
133
|
-
const maxDuration =
|
136
|
+
const duration = toValue(ms);
|
137
|
+
const maxDuration = toValue(options.maxWait);
|
134
138
|
if (timer)
|
135
|
-
|
139
|
+
_clearTimeout(timer);
|
136
140
|
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
137
141
|
if (maxTimer) {
|
138
|
-
|
142
|
+
_clearTimeout(maxTimer);
|
139
143
|
maxTimer = null;
|
140
144
|
}
|
141
|
-
return invoke();
|
145
|
+
return Promise.resolve(invoke());
|
142
146
|
}
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
+
return new Promise((resolve, reject) => {
|
148
|
+
lastRejector = options.rejectOnCancel ? reject : resolve;
|
149
|
+
if (maxDuration && !maxTimer) {
|
150
|
+
maxTimer = setTimeout(() => {
|
151
|
+
if (timer)
|
152
|
+
_clearTimeout(timer);
|
153
|
+
maxTimer = null;
|
154
|
+
resolve(invoke());
|
155
|
+
}, maxDuration);
|
156
|
+
}
|
157
|
+
timer = setTimeout(() => {
|
158
|
+
if (maxTimer)
|
159
|
+
_clearTimeout(maxTimer);
|
147
160
|
maxTimer = null;
|
148
|
-
invoke();
|
149
|
-
},
|
150
|
-
}
|
151
|
-
timer = setTimeout(() => {
|
152
|
-
if (maxTimer)
|
153
|
-
clearTimeout(maxTimer);
|
154
|
-
maxTimer = null;
|
155
|
-
invoke();
|
156
|
-
}, duration);
|
161
|
+
resolve(invoke());
|
162
|
+
}, duration);
|
163
|
+
});
|
157
164
|
};
|
158
165
|
return filter;
|
159
166
|
}
|
160
|
-
function throttleFilter(
|
167
|
+
function throttleFilter(...args) {
|
161
168
|
let lastExec = 0;
|
162
169
|
let timer;
|
163
170
|
let isLeading = true;
|
171
|
+
let lastRejector = noop$1;
|
172
|
+
let lastValue;
|
173
|
+
let ms;
|
174
|
+
let trailing;
|
175
|
+
let leading;
|
176
|
+
let rejectOnCancel;
|
177
|
+
if (!isRef(args[0]) && typeof args[0] === "object")
|
178
|
+
({ delay: ms, trailing = true, leading = true, rejectOnCancel = false } = args[0]);
|
179
|
+
else
|
180
|
+
[ms, trailing = true, leading = true, rejectOnCancel = false] = args;
|
164
181
|
const clear = () => {
|
165
182
|
if (timer) {
|
166
183
|
clearTimeout(timer);
|
167
184
|
timer = void 0;
|
185
|
+
lastRejector();
|
186
|
+
lastRejector = noop$1;
|
168
187
|
}
|
169
188
|
};
|
170
|
-
const filter = (
|
171
|
-
const duration =
|
189
|
+
const filter = (_invoke) => {
|
190
|
+
const duration = toValue(ms);
|
172
191
|
const elapsed = Date.now() - lastExec;
|
192
|
+
const invoke = () => {
|
193
|
+
return lastValue = _invoke();
|
194
|
+
};
|
173
195
|
clear();
|
174
196
|
if (duration <= 0) {
|
175
197
|
lastExec = Date.now();
|
@@ -179,38 +201,35 @@ function throttleFilter(ms, trailing = true, leading = true) {
|
|
179
201
|
lastExec = Date.now();
|
180
202
|
invoke();
|
181
203
|
} else if (trailing) {
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
204
|
+
lastValue = new Promise((resolve, reject) => {
|
205
|
+
lastRejector = rejectOnCancel ? reject : resolve;
|
206
|
+
timer = setTimeout(() => {
|
207
|
+
lastExec = Date.now();
|
208
|
+
isLeading = true;
|
209
|
+
resolve(invoke());
|
210
|
+
clear();
|
211
|
+
}, Math.max(0, duration - elapsed));
|
212
|
+
});
|
188
213
|
}
|
189
214
|
if (!leading && !timer)
|
190
215
|
timer = setTimeout(() => isLeading = true, duration);
|
191
216
|
isLeading = false;
|
217
|
+
return lastValue;
|
192
218
|
};
|
193
219
|
return filter;
|
194
220
|
}
|
195
|
-
function
|
196
|
-
return
|
197
|
-
}
|
198
|
-
|
199
|
-
function tryOnScopeDispose(fn) {
|
200
|
-
if (getCurrentScope()) {
|
201
|
-
onScopeDispose(fn);
|
202
|
-
return true;
|
203
|
-
}
|
204
|
-
return false;
|
221
|
+
function getLifeCycleTarget(target) {
|
222
|
+
return target || getCurrentInstance();
|
205
223
|
}
|
206
224
|
|
207
225
|
function useDebounceFn(fn, ms = 200, options = {}) {
|
208
|
-
return createFilterWrapper(
|
226
|
+
return createFilterWrapper(
|
227
|
+
debounceFilter(ms, options),
|
228
|
+
fn
|
229
|
+
);
|
209
230
|
}
|
210
231
|
|
211
232
|
function refDebounced(value, ms = 200, options = {}) {
|
212
|
-
if (ms <= 0)
|
213
|
-
return value;
|
214
233
|
const debounced = ref(value.value);
|
215
234
|
const updater = useDebounceFn(() => {
|
216
235
|
debounced.value = value.value;
|
@@ -219,13 +238,17 @@ function refDebounced(value, ms = 200, options = {}) {
|
|
219
238
|
return debounced;
|
220
239
|
}
|
221
240
|
|
222
|
-
function useThrottleFn(fn, ms = 200, trailing = false, leading = true) {
|
223
|
-
return createFilterWrapper(
|
241
|
+
function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
|
242
|
+
return createFilterWrapper(
|
243
|
+
throttleFilter(ms, trailing, leading, rejectOnCancel),
|
244
|
+
fn
|
245
|
+
);
|
224
246
|
}
|
225
247
|
|
226
|
-
function tryOnMounted(fn, sync = true) {
|
227
|
-
|
228
|
-
|
248
|
+
function tryOnMounted(fn, sync = true, target) {
|
249
|
+
const instance = getLifeCycleTarget();
|
250
|
+
if (instance)
|
251
|
+
onMounted(fn, target);
|
229
252
|
else if (sync)
|
230
253
|
fn();
|
231
254
|
else
|
@@ -255,7 +278,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
|
255
278
|
isPending.value = false;
|
256
279
|
timer = null;
|
257
280
|
cb(...args);
|
258
|
-
},
|
281
|
+
}, toValue(interval));
|
259
282
|
}
|
260
283
|
if (immediate) {
|
261
284
|
isPending.value = true;
|
@@ -264,7 +287,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
|
264
287
|
}
|
265
288
|
tryOnScopeDispose(stop);
|
266
289
|
return {
|
267
|
-
isPending,
|
290
|
+
isPending: readonly(isPending),
|
268
291
|
start,
|
269
292
|
stop
|
270
293
|
};
|
@@ -272,7 +295,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
|
272
295
|
|
273
296
|
function unrefElement(elRef) {
|
274
297
|
var _a;
|
275
|
-
const plain =
|
298
|
+
const plain = toValue(elRef);
|
276
299
|
return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
|
277
300
|
}
|
278
301
|
|
@@ -281,28 +304,45 @@ const defaultDocument = isClient ? window.document : void 0;
|
|
281
304
|
|
282
305
|
function useEventListener(...args) {
|
283
306
|
let target;
|
284
|
-
let
|
285
|
-
let
|
307
|
+
let events;
|
308
|
+
let listeners;
|
286
309
|
let options;
|
287
|
-
if (
|
288
|
-
[
|
310
|
+
if (typeof args[0] === "string" || Array.isArray(args[0])) {
|
311
|
+
[events, listeners, options] = args;
|
289
312
|
target = defaultWindow;
|
290
313
|
} else {
|
291
|
-
[target,
|
314
|
+
[target, events, listeners, options] = args;
|
292
315
|
}
|
293
316
|
if (!target)
|
294
317
|
return noop$1;
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
318
|
+
if (!Array.isArray(events))
|
319
|
+
events = [events];
|
320
|
+
if (!Array.isArray(listeners))
|
321
|
+
listeners = [listeners];
|
322
|
+
const cleanups = [];
|
323
|
+
const cleanup = () => {
|
324
|
+
cleanups.forEach((fn) => fn());
|
325
|
+
cleanups.length = 0;
|
326
|
+
};
|
327
|
+
const register = (el, event, listener, options2) => {
|
328
|
+
el.addEventListener(event, listener, options2);
|
329
|
+
return () => el.removeEventListener(event, listener, options2);
|
330
|
+
};
|
331
|
+
const stopWatch = watch(
|
332
|
+
() => [unrefElement(target), toValue(options)],
|
333
|
+
([el, options2]) => {
|
334
|
+
cleanup();
|
335
|
+
if (!el)
|
336
|
+
return;
|
337
|
+
const optionsClone = isObject$2(options2) ? { ...options2 } : options2;
|
338
|
+
cleanups.push(
|
339
|
+
...events.flatMap((event) => {
|
340
|
+
return listeners.map((listener) => register(el, event, listener, optionsClone));
|
341
|
+
})
|
342
|
+
);
|
343
|
+
},
|
344
|
+
{ immediate: true, flush: "post" }
|
345
|
+
);
|
306
346
|
const stop = () => {
|
307
347
|
stopWatch();
|
308
348
|
cleanup();
|
@@ -311,24 +351,36 @@ function useEventListener(...args) {
|
|
311
351
|
return stop;
|
312
352
|
}
|
313
353
|
|
354
|
+
let _iOSWorkaround = false;
|
314
355
|
function onClickOutside(target, handler, options = {}) {
|
315
|
-
const { window = defaultWindow, ignore, capture = true, detectIframe = false } = options;
|
356
|
+
const { window = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;
|
316
357
|
if (!window)
|
317
|
-
return;
|
318
|
-
|
319
|
-
|
358
|
+
return noop$1;
|
359
|
+
if (isIOS && !_iOSWorkaround) {
|
360
|
+
_iOSWorkaround = true;
|
361
|
+
Array.from(window.document.body.children).forEach((el) => el.addEventListener("click", noop$1));
|
362
|
+
window.document.documentElement.addEventListener("click", noop$1);
|
363
|
+
}
|
364
|
+
let shouldListen = true;
|
365
|
+
const shouldIgnore = (event) => {
|
366
|
+
return ignore.some((target2) => {
|
367
|
+
if (typeof target2 === "string") {
|
368
|
+
return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));
|
369
|
+
} else {
|
370
|
+
const el = unrefElement(target2);
|
371
|
+
return el && (event.target === el || event.composedPath().includes(el));
|
372
|
+
}
|
373
|
+
});
|
374
|
+
};
|
320
375
|
const listener = (event) => {
|
321
|
-
window.clearTimeout(fallback);
|
322
376
|
const el = unrefElement(target);
|
323
|
-
|
324
|
-
|
377
|
+
if (!el || el === event.target || event.composedPath().includes(el))
|
378
|
+
return;
|
379
|
+
if (event.detail === 0)
|
380
|
+
shouldListen = !shouldIgnore(event);
|
381
|
+
if (!shouldListen) {
|
382
|
+
shouldListen = true;
|
325
383
|
return;
|
326
|
-
if (ignore && ignore.length > 0) {
|
327
|
-
if (ignore.some((target2) => {
|
328
|
-
const el2 = unrefElement(target2);
|
329
|
-
return el2 && (event.target === el2 || composedPath.includes(el2));
|
330
|
-
}))
|
331
|
-
return;
|
332
384
|
}
|
333
385
|
handler(event);
|
334
386
|
};
|
@@ -336,74 +388,205 @@ function onClickOutside(target, handler, options = {}) {
|
|
336
388
|
useEventListener(window, "click", listener, { passive: true, capture }),
|
337
389
|
useEventListener(window, "pointerdown", (e) => {
|
338
390
|
const el = unrefElement(target);
|
339
|
-
shouldListen
|
340
|
-
}, { passive: true }),
|
341
|
-
useEventListener(window, "pointerup", (e) => {
|
342
|
-
if (e.button === 0) {
|
343
|
-
const path = e.composedPath();
|
344
|
-
e.composedPath = () => path;
|
345
|
-
fallback = window.setTimeout(() => listener(e), 50);
|
346
|
-
}
|
391
|
+
shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));
|
347
392
|
}, { passive: true }),
|
348
393
|
detectIframe && useEventListener(window, "blur", (event) => {
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
394
|
+
setTimeout(() => {
|
395
|
+
var _a;
|
396
|
+
const el = unrefElement(target);
|
397
|
+
if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window.document.activeElement))) {
|
398
|
+
handler(event);
|
399
|
+
}
|
400
|
+
}, 0);
|
353
401
|
})
|
354
402
|
].filter(Boolean);
|
355
403
|
const stop = () => cleanup.forEach((fn) => fn());
|
356
404
|
return stop;
|
357
405
|
}
|
358
406
|
|
359
|
-
function
|
360
|
-
const
|
361
|
-
const
|
362
|
-
if (
|
363
|
-
|
364
|
-
|
407
|
+
function useMounted() {
|
408
|
+
const isMounted = ref(false);
|
409
|
+
const instance = getCurrentInstance();
|
410
|
+
if (instance) {
|
411
|
+
onMounted(() => {
|
412
|
+
isMounted.value = true;
|
413
|
+
}, instance);
|
365
414
|
}
|
415
|
+
return isMounted;
|
416
|
+
}
|
417
|
+
|
418
|
+
function useSupported(callback) {
|
419
|
+
const isMounted = useMounted();
|
366
420
|
return computed(() => {
|
367
|
-
|
368
|
-
return
|
421
|
+
isMounted.value;
|
422
|
+
return Boolean(callback());
|
369
423
|
});
|
370
424
|
}
|
371
425
|
|
372
|
-
function
|
373
|
-
const
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
426
|
+
function useMutationObserver(target, callback, options = {}) {
|
427
|
+
const { window = defaultWindow, ...mutationOptions } = options;
|
428
|
+
let observer;
|
429
|
+
const isSupported = useSupported(() => window && "MutationObserver" in window);
|
430
|
+
const cleanup = () => {
|
431
|
+
if (observer) {
|
432
|
+
observer.disconnect();
|
433
|
+
observer = void 0;
|
434
|
+
}
|
435
|
+
};
|
436
|
+
const targets = computed(() => {
|
437
|
+
const value = toValue(target);
|
438
|
+
const items = (Array.isArray(value) ? value : [value]).map(unrefElement).filter(notNullish);
|
439
|
+
return new Set(items);
|
440
|
+
});
|
441
|
+
const stopWatch = watch(
|
442
|
+
() => targets.value,
|
443
|
+
(targets2) => {
|
444
|
+
cleanup();
|
445
|
+
if (isSupported.value && targets2.size) {
|
446
|
+
observer = new MutationObserver(callback);
|
447
|
+
targets2.forEach((el) => observer.observe(el, mutationOptions));
|
448
|
+
}
|
449
|
+
},
|
450
|
+
{ immediate: true, flush: "post" }
|
451
|
+
);
|
452
|
+
const takeRecords = () => {
|
453
|
+
return observer == null ? void 0 : observer.takeRecords();
|
454
|
+
};
|
455
|
+
const stop = () => {
|
456
|
+
cleanup();
|
457
|
+
stopWatch();
|
458
|
+
};
|
459
|
+
tryOnScopeDispose(stop);
|
460
|
+
return {
|
461
|
+
isSupported,
|
462
|
+
stop,
|
463
|
+
takeRecords
|
464
|
+
};
|
378
465
|
}
|
379
466
|
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
467
|
+
function useActiveElement(options = {}) {
|
468
|
+
var _a;
|
469
|
+
const {
|
470
|
+
window = defaultWindow,
|
471
|
+
deep = true,
|
472
|
+
triggerOnRemoval = false
|
473
|
+
} = options;
|
474
|
+
const document = (_a = options.document) != null ? _a : window == null ? void 0 : window.document;
|
475
|
+
const getDeepActiveElement = () => {
|
476
|
+
var _a2;
|
477
|
+
let element = document == null ? void 0 : document.activeElement;
|
478
|
+
if (deep) {
|
479
|
+
while (element == null ? void 0 : element.shadowRoot)
|
480
|
+
element = (_a2 = element == null ? void 0 : element.shadowRoot) == null ? void 0 : _a2.activeElement;
|
481
|
+
}
|
482
|
+
return element;
|
483
|
+
};
|
484
|
+
const activeElement = ref();
|
485
|
+
const trigger = () => {
|
486
|
+
activeElement.value = getDeepActiveElement();
|
487
|
+
};
|
488
|
+
if (window) {
|
489
|
+
useEventListener(window, "blur", (event) => {
|
490
|
+
if (event.relatedTarget !== null)
|
491
|
+
return;
|
492
|
+
trigger();
|
493
|
+
}, true);
|
494
|
+
useEventListener(window, "focus", trigger, true);
|
495
|
+
}
|
496
|
+
if (triggerOnRemoval) {
|
497
|
+
useMutationObserver(document, (mutations) => {
|
498
|
+
mutations.filter((m) => m.removedNodes.length).map((n) => Array.from(n.removedNodes)).flat().forEach((node) => {
|
499
|
+
if (node === activeElement.value)
|
500
|
+
trigger();
|
501
|
+
});
|
502
|
+
}, {
|
503
|
+
childList: true,
|
504
|
+
subtree: true
|
505
|
+
});
|
506
|
+
}
|
507
|
+
trigger();
|
508
|
+
return activeElement;
|
509
|
+
}
|
384
510
|
|
385
|
-
function
|
511
|
+
function useMediaQuery(query, options = {}) {
|
512
|
+
const { window = defaultWindow } = options;
|
513
|
+
const isSupported = useSupported(() => window && "matchMedia" in window && typeof window.matchMedia === "function");
|
514
|
+
let mediaQuery;
|
515
|
+
const matches = ref(false);
|
516
|
+
const handler = (event) => {
|
517
|
+
matches.value = event.matches;
|
518
|
+
};
|
519
|
+
const cleanup = () => {
|
520
|
+
if (!mediaQuery)
|
521
|
+
return;
|
522
|
+
if ("removeEventListener" in mediaQuery)
|
523
|
+
mediaQuery.removeEventListener("change", handler);
|
524
|
+
else
|
525
|
+
mediaQuery.removeListener(handler);
|
526
|
+
};
|
527
|
+
const stopWatch = watchEffect(() => {
|
528
|
+
if (!isSupported.value)
|
529
|
+
return;
|
530
|
+
cleanup();
|
531
|
+
mediaQuery = window.matchMedia(toValue(query));
|
532
|
+
if ("addEventListener" in mediaQuery)
|
533
|
+
mediaQuery.addEventListener("change", handler);
|
534
|
+
else
|
535
|
+
mediaQuery.addListener(handler);
|
536
|
+
matches.value = mediaQuery.matches;
|
537
|
+
});
|
538
|
+
tryOnScopeDispose(() => {
|
539
|
+
stopWatch();
|
540
|
+
cleanup();
|
541
|
+
mediaQuery = void 0;
|
542
|
+
});
|
543
|
+
return matches;
|
544
|
+
}
|
545
|
+
|
546
|
+
function cloneFnJSON(source) {
|
547
|
+
return JSON.parse(JSON.stringify(source));
|
548
|
+
}
|
549
|
+
|
550
|
+
function useCssVar(prop, target, options = {}) {
|
551
|
+
const { window = defaultWindow, initialValue = "", observe = false } = options;
|
386
552
|
const variable = ref(initialValue);
|
387
553
|
const elRef = computed(() => {
|
388
554
|
var _a;
|
389
555
|
return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
|
390
556
|
});
|
391
|
-
|
557
|
+
function updateCssVar() {
|
392
558
|
var _a;
|
559
|
+
const key = toValue(prop);
|
560
|
+
const el = toValue(elRef);
|
393
561
|
if (el && window) {
|
394
|
-
const value = (_a = window.getComputedStyle(el).getPropertyValue(
|
562
|
+
const value = (_a = window.getComputedStyle(el).getPropertyValue(key)) == null ? void 0 : _a.trim();
|
395
563
|
variable.value = value || initialValue;
|
396
564
|
}
|
397
|
-
}
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
565
|
+
}
|
566
|
+
if (observe) {
|
567
|
+
useMutationObserver(elRef, updateCssVar, {
|
568
|
+
attributeFilter: ["style", "class"],
|
569
|
+
window
|
570
|
+
});
|
571
|
+
}
|
572
|
+
watch(
|
573
|
+
[elRef, () => toValue(prop)],
|
574
|
+
updateCssVar,
|
575
|
+
{ immediate: true }
|
576
|
+
);
|
577
|
+
watch(
|
578
|
+
variable,
|
579
|
+
(val) => {
|
580
|
+
var _a;
|
581
|
+
if ((_a = elRef.value) == null ? void 0 : _a.style)
|
582
|
+
elRef.value.style.setProperty(toValue(prop), val);
|
583
|
+
}
|
584
|
+
);
|
403
585
|
return variable;
|
404
586
|
}
|
405
587
|
|
406
|
-
function useDocumentVisibility(
|
588
|
+
function useDocumentVisibility(options = {}) {
|
589
|
+
const { document = defaultDocument } = options;
|
407
590
|
if (!document)
|
408
591
|
return ref("visible");
|
409
592
|
const visibility = ref(document.visibilityState);
|
@@ -413,23 +596,8 @@ function useDocumentVisibility({ document = defaultDocument } = {}) {
|
|
413
596
|
return visibility;
|
414
597
|
}
|
415
598
|
|
416
|
-
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
417
|
-
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
418
|
-
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
419
|
-
var __objRest$2 = (source, exclude) => {
|
420
|
-
var target = {};
|
421
|
-
for (var prop in source)
|
422
|
-
if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
|
423
|
-
target[prop] = source[prop];
|
424
|
-
if (source != null && __getOwnPropSymbols$f)
|
425
|
-
for (var prop of __getOwnPropSymbols$f(source)) {
|
426
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
|
427
|
-
target[prop] = source[prop];
|
428
|
-
}
|
429
|
-
return target;
|
430
|
-
};
|
431
599
|
function useResizeObserver(target, callback, options = {}) {
|
432
|
-
const
|
600
|
+
const { window = defaultWindow, ...observerOptions } = options;
|
433
601
|
let observer;
|
434
602
|
const isSupported = useSupported(() => window && "ResizeObserver" in window);
|
435
603
|
const cleanup = () => {
|
@@ -438,13 +606,19 @@ function useResizeObserver(target, callback, options = {}) {
|
|
438
606
|
observer = void 0;
|
439
607
|
}
|
440
608
|
};
|
441
|
-
const
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
609
|
+
const targets = computed(() => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]);
|
610
|
+
const stopWatch = watch(
|
611
|
+
targets,
|
612
|
+
(els) => {
|
613
|
+
cleanup();
|
614
|
+
if (isSupported.value && window) {
|
615
|
+
observer = new ResizeObserver(callback);
|
616
|
+
for (const _el of els)
|
617
|
+
_el && observer.observe(_el, observerOptions);
|
618
|
+
}
|
619
|
+
},
|
620
|
+
{ immediate: true, flush: "post" }
|
621
|
+
);
|
448
622
|
const stop = () => {
|
449
623
|
cleanup();
|
450
624
|
stopWatch();
|
@@ -498,8 +672,11 @@ function useElementBounding(target, options = {}) {
|
|
498
672
|
}
|
499
673
|
useResizeObserver(target, update);
|
500
674
|
watch(() => unrefElement(target), (ele) => !ele && update());
|
675
|
+
useMutationObserver(target, update, {
|
676
|
+
attributeFilter: ["style", "class"]
|
677
|
+
});
|
501
678
|
if (windowScroll)
|
502
|
-
useEventListener("scroll", update, { passive: true });
|
679
|
+
useEventListener("scroll", update, { capture: true, passive: true });
|
503
680
|
if (windowResize)
|
504
681
|
useEventListener("resize", update, { passive: true });
|
505
682
|
tryOnMounted(() => {
|
@@ -519,111 +696,15 @@ function useElementBounding(target, options = {}) {
|
|
519
696
|
};
|
520
697
|
}
|
521
698
|
|
522
|
-
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
523
|
-
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
524
|
-
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
525
|
-
var __objRest$1 = (source, exclude) => {
|
526
|
-
var target = {};
|
527
|
-
for (var prop in source)
|
528
|
-
if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
|
529
|
-
target[prop] = source[prop];
|
530
|
-
if (source != null && __getOwnPropSymbols$7)
|
531
|
-
for (var prop of __getOwnPropSymbols$7(source)) {
|
532
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
|
533
|
-
target[prop] = source[prop];
|
534
|
-
}
|
535
|
-
return target;
|
536
|
-
};
|
537
|
-
function useMutationObserver(target, callback, options = {}) {
|
538
|
-
const _a = options, { window = defaultWindow } = _a, mutationOptions = __objRest$1(_a, ["window"]);
|
539
|
-
let observer;
|
540
|
-
const isSupported = useSupported(() => window && "MutationObserver" in window);
|
541
|
-
const cleanup = () => {
|
542
|
-
if (observer) {
|
543
|
-
observer.disconnect();
|
544
|
-
observer = void 0;
|
545
|
-
}
|
546
|
-
};
|
547
|
-
const stopWatch = watch(() => unrefElement(target), (el) => {
|
548
|
-
cleanup();
|
549
|
-
if (isSupported.value && window && el) {
|
550
|
-
observer = new MutationObserver(callback);
|
551
|
-
observer.observe(el, mutationOptions);
|
552
|
-
}
|
553
|
-
}, { immediate: true });
|
554
|
-
const stop = () => {
|
555
|
-
cleanup();
|
556
|
-
stopWatch();
|
557
|
-
};
|
558
|
-
tryOnScopeDispose(stop);
|
559
|
-
return {
|
560
|
-
isSupported,
|
561
|
-
stop
|
562
|
-
};
|
563
|
-
}
|
564
|
-
|
565
|
-
var SwipeDirection;
|
566
|
-
(function(SwipeDirection2) {
|
567
|
-
SwipeDirection2["UP"] = "UP";
|
568
|
-
SwipeDirection2["RIGHT"] = "RIGHT";
|
569
|
-
SwipeDirection2["DOWN"] = "DOWN";
|
570
|
-
SwipeDirection2["LEFT"] = "LEFT";
|
571
|
-
SwipeDirection2["NONE"] = "NONE";
|
572
|
-
})(SwipeDirection || (SwipeDirection = {}));
|
573
|
-
|
574
|
-
var __defProp = Object.defineProperty;
|
575
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
576
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
577
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
578
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
579
|
-
var __spreadValues = (a, b) => {
|
580
|
-
for (var prop in b || (b = {}))
|
581
|
-
if (__hasOwnProp.call(b, prop))
|
582
|
-
__defNormalProp(a, prop, b[prop]);
|
583
|
-
if (__getOwnPropSymbols)
|
584
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
585
|
-
if (__propIsEnum.call(b, prop))
|
586
|
-
__defNormalProp(a, prop, b[prop]);
|
587
|
-
}
|
588
|
-
return a;
|
589
|
-
};
|
590
|
-
const _TransitionPresets = {
|
591
|
-
easeInSine: [0.12, 0, 0.39, 0],
|
592
|
-
easeOutSine: [0.61, 1, 0.88, 1],
|
593
|
-
easeInOutSine: [0.37, 0, 0.63, 1],
|
594
|
-
easeInQuad: [0.11, 0, 0.5, 0],
|
595
|
-
easeOutQuad: [0.5, 1, 0.89, 1],
|
596
|
-
easeInOutQuad: [0.45, 0, 0.55, 1],
|
597
|
-
easeInCubic: [0.32, 0, 0.67, 0],
|
598
|
-
easeOutCubic: [0.33, 1, 0.68, 1],
|
599
|
-
easeInOutCubic: [0.65, 0, 0.35, 1],
|
600
|
-
easeInQuart: [0.5, 0, 0.75, 0],
|
601
|
-
easeOutQuart: [0.25, 1, 0.5, 1],
|
602
|
-
easeInOutQuart: [0.76, 0, 0.24, 1],
|
603
|
-
easeInQuint: [0.64, 0, 0.78, 0],
|
604
|
-
easeOutQuint: [0.22, 1, 0.36, 1],
|
605
|
-
easeInOutQuint: [0.83, 0, 0.17, 1],
|
606
|
-
easeInExpo: [0.7, 0, 0.84, 0],
|
607
|
-
easeOutExpo: [0.16, 1, 0.3, 1],
|
608
|
-
easeInOutExpo: [0.87, 0, 0.13, 1],
|
609
|
-
easeInCirc: [0.55, 0, 1, 0.45],
|
610
|
-
easeOutCirc: [0, 0.55, 0.45, 1],
|
611
|
-
easeInOutCirc: [0.85, 0, 0.15, 1],
|
612
|
-
easeInBack: [0.36, 0, 0.66, -0.56],
|
613
|
-
easeOutBack: [0.34, 1.56, 0.64, 1],
|
614
|
-
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
615
|
-
};
|
616
|
-
__spreadValues({
|
617
|
-
linear: identity$1
|
618
|
-
}, _TransitionPresets);
|
619
|
-
|
620
699
|
function useVModel(props, key, emit, options = {}) {
|
621
700
|
var _a, _b, _c;
|
622
701
|
const {
|
702
|
+
clone = false,
|
623
703
|
passive = false,
|
624
704
|
eventName,
|
625
705
|
deep = false,
|
626
|
-
defaultValue
|
706
|
+
defaultValue,
|
707
|
+
shouldEmit
|
627
708
|
} = options;
|
628
709
|
const vm = getCurrentInstance();
|
629
710
|
const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));
|
@@ -633,17 +714,39 @@ function useVModel(props, key, emit, options = {}) {
|
|
633
714
|
key = "modelValue";
|
634
715
|
}
|
635
716
|
}
|
636
|
-
event =
|
637
|
-
const
|
717
|
+
event = event || `update:${key.toString()}`;
|
718
|
+
const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val);
|
719
|
+
const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
|
720
|
+
const triggerEmit = (value) => {
|
721
|
+
if (shouldEmit) {
|
722
|
+
if (shouldEmit(value))
|
723
|
+
_emit(event, value);
|
724
|
+
} else {
|
725
|
+
_emit(event, value);
|
726
|
+
}
|
727
|
+
};
|
638
728
|
if (passive) {
|
639
|
-
const
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
729
|
+
const initialValue = getValue();
|
730
|
+
const proxy = ref(initialValue);
|
731
|
+
let isUpdating = false;
|
732
|
+
watch(
|
733
|
+
() => props[key],
|
734
|
+
(v) => {
|
735
|
+
if (!isUpdating) {
|
736
|
+
isUpdating = true;
|
737
|
+
proxy.value = cloneFn(v);
|
738
|
+
nextTick(() => isUpdating = false);
|
739
|
+
}
|
740
|
+
}
|
741
|
+
);
|
742
|
+
watch(
|
743
|
+
proxy,
|
744
|
+
(v) => {
|
745
|
+
if (!isUpdating && (v !== props[key] || deep))
|
746
|
+
triggerEmit(v);
|
747
|
+
},
|
748
|
+
{ deep }
|
749
|
+
);
|
647
750
|
return proxy;
|
648
751
|
} else {
|
649
752
|
return computed({
|
@@ -651,13 +754,14 @@ function useVModel(props, key, emit, options = {}) {
|
|
651
754
|
return getValue();
|
652
755
|
},
|
653
756
|
set(value) {
|
654
|
-
|
757
|
+
triggerEmit(value);
|
655
758
|
}
|
656
759
|
});
|
657
760
|
}
|
658
761
|
}
|
659
762
|
|
660
|
-
function useWindowFocus(
|
763
|
+
function useWindowFocus(options = {}) {
|
764
|
+
const { window = defaultWindow } = options;
|
661
765
|
if (!window)
|
662
766
|
return ref(false);
|
663
767
|
const focused = ref(window.document.hasFocus());
|
@@ -673,23 +777,31 @@ function useWindowFocus({ window = defaultWindow } = {}) {
|
|
673
777
|
function useWindowSize(options = {}) {
|
674
778
|
const {
|
675
779
|
window = defaultWindow,
|
676
|
-
initialWidth =
|
677
|
-
initialHeight =
|
678
|
-
listenOrientation = true
|
780
|
+
initialWidth = Number.POSITIVE_INFINITY,
|
781
|
+
initialHeight = Number.POSITIVE_INFINITY,
|
782
|
+
listenOrientation = true,
|
783
|
+
includeScrollbar = true
|
679
784
|
} = options;
|
680
785
|
const width = ref(initialWidth);
|
681
786
|
const height = ref(initialHeight);
|
682
787
|
const update = () => {
|
683
788
|
if (window) {
|
684
|
-
|
685
|
-
|
789
|
+
if (includeScrollbar) {
|
790
|
+
width.value = window.innerWidth;
|
791
|
+
height.value = window.innerHeight;
|
792
|
+
} else {
|
793
|
+
width.value = window.document.documentElement.clientWidth;
|
794
|
+
height.value = window.document.documentElement.clientHeight;
|
795
|
+
}
|
686
796
|
}
|
687
797
|
};
|
688
798
|
update();
|
689
799
|
tryOnMounted(update);
|
690
800
|
useEventListener("resize", update, { passive: true });
|
691
|
-
if (listenOrientation)
|
692
|
-
|
801
|
+
if (listenOrientation) {
|
802
|
+
const matches = useMediaQuery("(orientation: portrait)");
|
803
|
+
watch(matches, () => update());
|
804
|
+
}
|
693
805
|
return { width, height };
|
694
806
|
}
|
695
807
|
|
@@ -11606,7 +11718,7 @@ const ConfigProvider = defineComponent({
|
|
11606
11718
|
|
11607
11719
|
const ElConfigProvider = withInstall(ConfigProvider);
|
11608
11720
|
|
11609
|
-
const version$1 = "0.0.
|
11721
|
+
const version$1 = "0.0.20250430";
|
11610
11722
|
|
11611
11723
|
const makeInstaller = (components = []) => {
|
11612
11724
|
const install = (app, options) => {
|