@element-plus/nightly 0.0.20241226 → 0.0.20241227
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.full.js +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- 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/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/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/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/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/autocomplete/src/autocomplete.vue.d.ts +12 -6775
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/button/index.mjs +3 -3
- package/es/components/button/src/button-group.mjs +29 -6
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +6 -29
- package/es/components/button/src/button-group2.mjs.map +1 -1
- package/es/components/button/src/button.mjs +77 -56
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +56 -77
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/src/calendar.mjs +1 -1
- package/es/components/calendar/src/date-table.mjs +31 -89
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +89 -31
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/src/use-date-table.mjs +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +204 -61
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +61 -204
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +115 -206
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +206 -115
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +14 -38
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +38 -14
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +10 -62
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +62 -10
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +40 -402
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +402 -40
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +26 -178
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +178 -26
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +6 -5270
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +52 -11
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +11 -52
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/index.mjs +18 -18
- package/es/components/mention/src/mention-dropdown.mjs +166 -15
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +15 -166
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention.vue.d.ts +6 -6758
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/mention/src/mention2.mjs.map +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +142 -68
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +68 -142
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/total.mjs +26 -6
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +6 -26
- package/es/components/pagination/src/components/total2.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/popper/index.mjs +4 -4
- package/es/components/popper/src/arrow.mjs +36 -7
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +7 -36
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/trigger.mjs +31 -127
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +127 -31
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +258 -83
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +83 -258
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
- package/es/components/scrollbar/src/bar.mjs +10 -64
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +64 -10
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/skeleton/index.mjs +4 -4
- package/es/components/skeleton/src/skeleton-item.mjs +22 -17
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs +21 -48
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +48 -21
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/button.mjs +19 -89
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +89 -19
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider.mjs +238 -88
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +88 -238
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +6 -5270
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +6 -2656
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/tooltip/src/trigger2.mjs +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/root.mjs +17 -79
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +79 -17
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +44 -168
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +168 -44
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +4 -277
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/upload/index.mjs +3 -3
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +2 -2
- package/es/components/upload/src/upload-dragger.mjs +10 -47
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +47 -10
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +97 -125
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +125 -97
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/index.mjs +18 -18
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +12 -6775
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/button/index.js +3 -3
- package/lib/components/button/src/button-group.js +29 -6
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group2.js +6 -29
- package/lib/components/button/src/button-group2.js.map +1 -1
- package/lib/components/button/src/button.js +77 -59
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +59 -77
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/src/calendar.js +1 -1
- package/lib/components/calendar/src/date-table.js +35 -89
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +89 -35
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/src/use-date-table.js +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +204 -62
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +62 -204
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +115 -206
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +206 -115
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +15 -38
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +38 -15
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +9 -62
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +62 -9
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +40 -400
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +400 -40
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +27 -178
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +178 -27
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +6 -5270
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +52 -11
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +11 -52
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/index.js +18 -18
- package/lib/components/mention/src/mention-dropdown.js +166 -16
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +16 -166
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +6 -6758
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/mention/src/mention2.js.map +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +141 -69
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +69 -141
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/total.js +26 -6
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +6 -26
- package/lib/components/pagination/src/components/total2.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/popper/index.js +4 -4
- package/lib/components/popper/src/arrow.js +36 -8
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +8 -36
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/trigger.js +32 -127
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +127 -32
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +257 -83
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +83 -257
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
- package/lib/components/scrollbar/src/bar.js +10 -64
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +64 -10
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/skeleton/index.js +4 -4
- package/lib/components/skeleton/src/skeleton-item.js +22 -17
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +17 -22
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js +21 -48
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +48 -21
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/button.js +20 -89
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +89 -20
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider.js +238 -89
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider2.js +89 -238
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +6 -5270
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -2656
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip/src/trigger2.js +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/root.js +17 -79
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +79 -17
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +44 -167
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +167 -44
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +4 -277
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/upload/index.js +3 -3
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +2 -2
- package/lib/components/upload/src/upload-dragger.js +11 -47
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +47 -11
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +100 -125
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +125 -100
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/index.js +18 -18
- 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
@@ -1,6 +1,6 @@
|
|
1
1
|
import { isVNode, createVNode, render } from 'vue';
|
2
|
-
import NotificationConstructor from './
|
3
|
-
import { notificationTypes } from './
|
2
|
+
import NotificationConstructor from './notification.mjs';
|
3
|
+
import { notificationTypes } from './notification2.mjs';
|
4
4
|
import { isClient } from '@vueuse/core';
|
5
5
|
import { isString, isFunction } from '@vue/shared';
|
6
6
|
import { isElement, isUndefined } from '../../../utils/types.mjs';
|
@@ -1,11 +1,31 @@
|
|
1
|
-
import {
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, toDisplayString } from 'vue';
|
2
|
+
import { usePagination } from '../usePagination.mjs';
|
3
|
+
import { paginationTotalProps } from './total2.mjs';
|
4
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
+
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
6
|
+
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
2
7
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
8
|
+
const __default__ = defineComponent({
|
9
|
+
name: "ElPaginationTotal"
|
10
|
+
});
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
+
...__default__,
|
13
|
+
props: paginationTotalProps,
|
14
|
+
setup(__props) {
|
15
|
+
const { t } = useLocale();
|
16
|
+
const ns = useNamespace("pagination");
|
17
|
+
const { disabled } = usePagination();
|
18
|
+
return (_ctx, _cache) => {
|
19
|
+
return openBlock(), createElementBlock("span", {
|
20
|
+
class: normalizeClass(unref(ns).e("total")),
|
21
|
+
disabled: unref(disabled)
|
22
|
+
}, toDisplayString(unref(t)("el.pagination.total", {
|
23
|
+
total: _ctx.total
|
24
|
+
})), 11, ["disabled"]);
|
25
|
+
};
|
7
26
|
}
|
8
27
|
});
|
28
|
+
var Total = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "total.vue"]]);
|
9
29
|
|
10
|
-
export {
|
30
|
+
export { Total as default };
|
11
31
|
//# sourceMappingURL=total.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"total.mjs","sources":["../../../../../../../packages/components/pagination/src/components/total.
|
1
|
+
{"version":3,"file":"total.mjs","sources":["../../../../../../../packages/components/pagination/src/components/total.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('total')\" :disabled=\"disabled\">\n {{\n t('el.pagination.total', {\n total,\n })\n }}\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { usePagination } from '../usePagination'\nimport { paginationTotalProps } from './total'\n\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { disabled } = usePagination()\n\ndefineOptions({\n name: 'ElPaginationTotal',\n})\n\ndefineProps(paginationTotalProps)\n</script>\n"],"names":[],"mappings":";;;;;;;mCAmBc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;AANA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAM,MAAA,EAAE,QAAS,EAAA,GAAI,aAAc,EAAA,CAAA;;;;;;;;;;;;;;;"}
|
@@ -1,31 +1,11 @@
|
|
1
|
-
import {
|
2
|
-
import { usePagination } from '../usePagination.mjs';
|
3
|
-
import { paginationTotalProps } from './total.mjs';
|
4
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
-
import { useLocale } from '../../../../hooks/use-locale/index.mjs';
|
6
|
-
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
1
|
+
import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
|
7
2
|
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
...__default__,
|
13
|
-
props: paginationTotalProps,
|
14
|
-
setup(__props) {
|
15
|
-
const { t } = useLocale();
|
16
|
-
const ns = useNamespace("pagination");
|
17
|
-
const { disabled } = usePagination();
|
18
|
-
return (_ctx, _cache) => {
|
19
|
-
return openBlock(), createElementBlock("span", {
|
20
|
-
class: normalizeClass(unref(ns).e("total")),
|
21
|
-
disabled: unref(disabled)
|
22
|
-
}, toDisplayString(unref(t)("el.pagination.total", {
|
23
|
-
total: _ctx.total
|
24
|
-
})), 11, ["disabled"]);
|
25
|
-
};
|
3
|
+
const paginationTotalProps = buildProps({
|
4
|
+
total: {
|
5
|
+
type: Number,
|
6
|
+
default: 1e3
|
26
7
|
}
|
27
8
|
});
|
28
|
-
var Total = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "total.vue"]]);
|
29
9
|
|
30
|
-
export {
|
10
|
+
export { paginationTotalProps };
|
31
11
|
//# sourceMappingURL=total2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"total2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/total.
|
1
|
+
{"version":3,"file":"total2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/total.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type Total from './total.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const paginationTotalProps = buildProps({\n total: {\n type: Number,\n default: 1000,\n },\n} as const)\n\nexport type PaginationTotalProps = ExtractPropTypes<typeof paginationTotalProps>\n\nexport type TotalInstance = InstanceType<typeof Total>\n"],"names":[],"mappings":";;AACY,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC;;;;"}
|
@@ -5,7 +5,7 @@ import Prev from './components/prev2.mjs';
|
|
5
5
|
import Next from './components/next2.mjs';
|
6
6
|
import Sizes from './components/sizes2.mjs';
|
7
7
|
import Jumper from './components/jumper2.mjs';
|
8
|
-
import Total from './components/
|
8
|
+
import Total from './components/total.mjs';
|
9
9
|
import Pager from './components/pager2.mjs';
|
10
10
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
11
11
|
import { isNumber } from '../../../utils/types.mjs';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { QuestionFilled } from '@element-plus/icons-vue';
|
2
|
-
import { buttonTypes } from '../../button/src/
|
2
|
+
import { buttonTypes } from '../../button/src/button2.mjs';
|
3
3
|
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
4
4
|
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
5
5
|
import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import Popper from './src/popper2.mjs';
|
2
|
-
export { default as ElPopperArrow } from './src/
|
3
|
-
export { default as ElPopperTrigger } from './src/
|
2
|
+
export { default as ElPopperArrow } from './src/arrow.mjs';
|
3
|
+
export { default as ElPopperTrigger } from './src/trigger2.mjs';
|
4
4
|
export { default as ElPopperContent } from './src/content2.mjs';
|
5
5
|
export { Effect, popperProps, roleTypes, usePopperProps } from './src/popper.mjs';
|
6
|
-
export { popperTriggerProps, usePopperTriggerProps } from './src/
|
6
|
+
export { popperTriggerProps, usePopperTriggerProps } from './src/trigger.mjs';
|
7
7
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './src/content.mjs';
|
8
|
-
export { popperArrowProps, usePopperArrowProps } from './src/
|
8
|
+
export { popperArrowProps, usePopperArrowProps } from './src/arrow2.mjs';
|
9
9
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './src/constants.mjs';
|
10
10
|
import { withInstall } from '../../utils/vue/install.mjs';
|
11
11
|
|
@@ -1,12 +1,41 @@
|
|
1
|
-
import {
|
1
|
+
import { defineComponent, inject, watch, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle } from 'vue';
|
2
|
+
import { POPPER_CONTENT_INJECTION_KEY } from './constants.mjs';
|
3
|
+
import { popperArrowProps } from './arrow2.mjs';
|
4
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
2
6
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
+
const __default__ = defineComponent({
|
8
|
+
name: "ElPopperArrow",
|
9
|
+
inheritAttrs: false
|
10
|
+
});
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
+
...__default__,
|
13
|
+
props: popperArrowProps,
|
14
|
+
setup(__props, { expose }) {
|
15
|
+
const props = __props;
|
16
|
+
const ns = useNamespace("popper");
|
17
|
+
const { arrowOffset, arrowRef, arrowStyle } = inject(POPPER_CONTENT_INJECTION_KEY, void 0);
|
18
|
+
watch(() => props.arrowOffset, (val) => {
|
19
|
+
arrowOffset.value = val;
|
20
|
+
});
|
21
|
+
onBeforeUnmount(() => {
|
22
|
+
arrowRef.value = void 0;
|
23
|
+
});
|
24
|
+
expose({
|
25
|
+
arrowRef
|
26
|
+
});
|
27
|
+
return (_ctx, _cache) => {
|
28
|
+
return openBlock(), createElementBlock("span", {
|
29
|
+
ref_key: "arrowRef",
|
30
|
+
ref: arrowRef,
|
31
|
+
class: normalizeClass(unref(ns).e("arrow")),
|
32
|
+
style: normalizeStyle(unref(arrowStyle)),
|
33
|
+
"data-popper-arrow": ""
|
34
|
+
}, null, 6);
|
35
|
+
};
|
7
36
|
}
|
8
37
|
});
|
9
|
-
|
38
|
+
var ElPopperArrow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "arrow.vue"]]);
|
10
39
|
|
11
|
-
export {
|
40
|
+
export { ElPopperArrow as default };
|
12
41
|
//# sourceMappingURL=arrow.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"arrow.mjs","sources":["../../../../../../packages/components/popper/src/arrow.
|
1
|
+
{"version":3,"file":"arrow.mjs","sources":["../../../../../../packages/components/popper/src/arrow.vue"],"sourcesContent":["<template>\n <span\n ref=\"arrowRef\"\n :class=\"ns.e('arrow')\"\n :style=\"arrowStyle\"\n data-popper-arrow\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, onBeforeUnmount, watch } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { POPPER_CONTENT_INJECTION_KEY } from './constants'\nimport { popperArrowProps } from './arrow'\n\ndefineOptions({\n name: 'ElPopperArrow',\n inheritAttrs: false,\n})\n\nconst props = defineProps(popperArrowProps)\n\nconst ns = useNamespace('popper')\nconst { arrowOffset, arrowRef, arrowStyle } = inject(\n POPPER_CONTENT_INJECTION_KEY,\n undefined\n)!\n\nwatch(\n () => props.arrowOffset,\n (val) => {\n arrowOffset.value = val\n }\n)\nonBeforeUnmount(() => {\n arrowRef.value = undefined\n})\n\ndefineExpose({\n /**\n * @description Arrow element\n */\n arrowRef,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_normalizeStyle"],"mappings":";;;;;;mCAec,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAChC,IAAA,MAAM,EAAE,WAAA,EAAa,QAAU,EAAA,UAAA,EAAe,GAAA,MAAA,CAAA,4BAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IAC5C,KAAA,CAAA,MAAA,KAAA,CAAA,WAAA,EAAA,CAAA,GAAA,KAAA;AAAA,MACA,WAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAEA,IAAA,eAAA,CAAA,MAAA;AAAA,MACE,QAAY,CAAA,KAAA,GAAA,KAAA,CAAA,CAAA;AAAA,KAAA,CACZ,CAAC;AACC,IAAA,MAAA,CAAA;AAAoB,MACtB,QAAA;AAAA,KACF,CAAA,CAAA;AACA,IAAA,OAAA,CAAA,IAAA,EAAA,MAAsB,KAAA;AACpB,MAAA,OAAAA,SAAiB,EAAA,EAAAC,kBAAA,CAAA,MAAA,EAAA;AAAA,QAClB,OAAA,EAAA,UAAA;AAED,QAAa,GAAA,EAAA,QAAA;AAAA,QAAA,KAAA,EAAAC,cAAA,CAAAC,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA;AAAA,QAAA,KAAA,EAAAC,cAAA,CAAAD,KAAA,CAAA,UAAA,CAAA,CAAA;AAAA,QAAA,mBAAA,EAAA,EAAA;AAAA,OAIX,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA;AAAA,KACD,CAAA;;;;;;;"}
|
@@ -1,41 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
import { POPPER_CONTENT_INJECTION_KEY } from './constants.mjs';
|
3
|
-
import { popperArrowProps } from './arrow.mjs';
|
4
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
5
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
1
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
6
2
|
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
-
...__default__,
|
13
|
-
props: popperArrowProps,
|
14
|
-
setup(__props, { expose }) {
|
15
|
-
const props = __props;
|
16
|
-
const ns = useNamespace("popper");
|
17
|
-
const { arrowOffset, arrowRef, arrowStyle } = inject(POPPER_CONTENT_INJECTION_KEY, void 0);
|
18
|
-
watch(() => props.arrowOffset, (val) => {
|
19
|
-
arrowOffset.value = val;
|
20
|
-
});
|
21
|
-
onBeforeUnmount(() => {
|
22
|
-
arrowRef.value = void 0;
|
23
|
-
});
|
24
|
-
expose({
|
25
|
-
arrowRef
|
26
|
-
});
|
27
|
-
return (_ctx, _cache) => {
|
28
|
-
return openBlock(), createElementBlock("span", {
|
29
|
-
ref_key: "arrowRef",
|
30
|
-
ref: arrowRef,
|
31
|
-
class: normalizeClass(unref(ns).e("arrow")),
|
32
|
-
style: normalizeStyle(unref(arrowStyle)),
|
33
|
-
"data-popper-arrow": ""
|
34
|
-
}, null, 6);
|
35
|
-
};
|
3
|
+
const popperArrowProps = buildProps({
|
4
|
+
arrowOffset: {
|
5
|
+
type: Number,
|
6
|
+
default: 5
|
36
7
|
}
|
37
8
|
});
|
38
|
-
|
9
|
+
const usePopperArrowProps = popperArrowProps;
|
39
10
|
|
40
|
-
export {
|
11
|
+
export { popperArrowProps, usePopperArrowProps };
|
41
12
|
//# sourceMappingURL=arrow2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"arrow2.mjs","sources":["../../../../../../packages/components/popper/src/arrow.
|
1
|
+
{"version":3,"file":"arrow2.mjs","sources":["../../../../../../packages/components/popper/src/arrow.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Arrow from './arrow.vue'\n\nexport const popperArrowProps = buildProps({\n arrowOffset: {\n type: Number,\n default: 5,\n },\n} as const)\nexport type PopperArrowProps = ExtractPropTypes<typeof popperArrowProps>\n\nexport type PopperArrowInstance = InstanceType<typeof Arrow>\n\n/** @deprecated use `popperArrowProps` instead, and it will be deprecated in the next major version */\nexport const usePopperArrowProps = popperArrowProps\n\n/** @deprecated use `PopperArrowProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperArrowProps = PopperArrowProps\n\n/** @deprecated use `PopperArrowInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowInstance = PopperArrowInstance\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC,EAAE;AACS,MAAC,mBAAmB,GAAG;;;;"}
|
@@ -1,131 +1,35 @@
|
|
1
|
-
import {
|
2
|
-
import { isNil } from 'lodash-unified';
|
3
|
-
import { unrefElement } from '@vueuse/core';
|
4
|
-
import { POPPER_INJECTION_KEY } from './constants.mjs';
|
5
|
-
import { popperTriggerProps } from './trigger2.mjs';
|
6
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
7
|
-
import { useForwardRef } from '../../../hooks/use-forward-ref/index.mjs';
|
8
|
-
import { isFocusable } from '../../../utils/dom/aria.mjs';
|
9
|
-
import { OnlyChild } from '../../slot/src/only-child.mjs';
|
10
|
-
import { isElement } from '../../../utils/types.mjs';
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
11
2
|
|
12
|
-
const
|
13
|
-
|
14
|
-
|
3
|
+
const popperTriggerProps = buildProps({
|
4
|
+
virtualRef: {
|
5
|
+
type: definePropType(Object)
|
6
|
+
},
|
7
|
+
virtualTriggering: Boolean,
|
8
|
+
onMouseenter: {
|
9
|
+
type: definePropType(Function)
|
10
|
+
},
|
11
|
+
onMouseleave: {
|
12
|
+
type: definePropType(Function)
|
13
|
+
},
|
14
|
+
onClick: {
|
15
|
+
type: definePropType(Function)
|
16
|
+
},
|
17
|
+
onKeydown: {
|
18
|
+
type: definePropType(Function)
|
19
|
+
},
|
20
|
+
onFocus: {
|
21
|
+
type: definePropType(Function)
|
22
|
+
},
|
23
|
+
onBlur: {
|
24
|
+
type: definePropType(Function)
|
25
|
+
},
|
26
|
+
onContextmenu: {
|
27
|
+
type: definePropType(Function)
|
28
|
+
},
|
29
|
+
id: String,
|
30
|
+
open: Boolean
|
15
31
|
});
|
16
|
-
const
|
17
|
-
...__default__,
|
18
|
-
props: popperTriggerProps,
|
19
|
-
setup(__props, { expose }) {
|
20
|
-
const props = __props;
|
21
|
-
const { role, triggerRef } = inject(POPPER_INJECTION_KEY, void 0);
|
22
|
-
useForwardRef(triggerRef);
|
23
|
-
const ariaControls = computed(() => {
|
24
|
-
return ariaHaspopup.value ? props.id : void 0;
|
25
|
-
});
|
26
|
-
const ariaDescribedby = computed(() => {
|
27
|
-
if (role && role.value === "tooltip") {
|
28
|
-
return props.open && props.id ? props.id : void 0;
|
29
|
-
}
|
30
|
-
return void 0;
|
31
|
-
});
|
32
|
-
const ariaHaspopup = computed(() => {
|
33
|
-
if (role && role.value !== "tooltip") {
|
34
|
-
return role.value;
|
35
|
-
}
|
36
|
-
return void 0;
|
37
|
-
});
|
38
|
-
const ariaExpanded = computed(() => {
|
39
|
-
return ariaHaspopup.value ? `${props.open}` : void 0;
|
40
|
-
});
|
41
|
-
let virtualTriggerAriaStopWatch = void 0;
|
42
|
-
const TRIGGER_ELE_EVENTS = [
|
43
|
-
"onMouseenter",
|
44
|
-
"onMouseleave",
|
45
|
-
"onClick",
|
46
|
-
"onKeydown",
|
47
|
-
"onFocus",
|
48
|
-
"onBlur",
|
49
|
-
"onContextmenu"
|
50
|
-
];
|
51
|
-
onMounted(() => {
|
52
|
-
watch(() => props.virtualRef, (virtualEl) => {
|
53
|
-
if (virtualEl) {
|
54
|
-
triggerRef.value = unrefElement(virtualEl);
|
55
|
-
}
|
56
|
-
}, {
|
57
|
-
immediate: true
|
58
|
-
});
|
59
|
-
watch(triggerRef, (el, prevEl) => {
|
60
|
-
virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
|
61
|
-
virtualTriggerAriaStopWatch = void 0;
|
62
|
-
if (isElement(el)) {
|
63
|
-
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
64
|
-
var _a;
|
65
|
-
const handler = props[eventName];
|
66
|
-
if (handler) {
|
67
|
-
el.addEventListener(eventName.slice(2).toLowerCase(), handler);
|
68
|
-
(_a = prevEl == null ? void 0 : prevEl.removeEventListener) == null ? void 0 : _a.call(prevEl, eventName.slice(2).toLowerCase(), handler);
|
69
|
-
}
|
70
|
-
});
|
71
|
-
if (isFocusable(el)) {
|
72
|
-
virtualTriggerAriaStopWatch = watch([ariaControls, ariaDescribedby, ariaHaspopup, ariaExpanded], (watches) => {
|
73
|
-
[
|
74
|
-
"aria-controls",
|
75
|
-
"aria-describedby",
|
76
|
-
"aria-haspopup",
|
77
|
-
"aria-expanded"
|
78
|
-
].forEach((key, idx) => {
|
79
|
-
isNil(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
|
80
|
-
});
|
81
|
-
}, { immediate: true });
|
82
|
-
}
|
83
|
-
}
|
84
|
-
if (isElement(prevEl) && isFocusable(prevEl)) {
|
85
|
-
[
|
86
|
-
"aria-controls",
|
87
|
-
"aria-describedby",
|
88
|
-
"aria-haspopup",
|
89
|
-
"aria-expanded"
|
90
|
-
].forEach((key) => prevEl.removeAttribute(key));
|
91
|
-
}
|
92
|
-
}, {
|
93
|
-
immediate: true
|
94
|
-
});
|
95
|
-
});
|
96
|
-
onBeforeUnmount(() => {
|
97
|
-
virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
|
98
|
-
virtualTriggerAriaStopWatch = void 0;
|
99
|
-
if (triggerRef.value && isElement(triggerRef.value)) {
|
100
|
-
const el = triggerRef.value;
|
101
|
-
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
102
|
-
const handler = props[eventName];
|
103
|
-
if (handler) {
|
104
|
-
el.removeEventListener(eventName.slice(2).toLowerCase(), handler);
|
105
|
-
}
|
106
|
-
});
|
107
|
-
triggerRef.value = void 0;
|
108
|
-
}
|
109
|
-
});
|
110
|
-
expose({
|
111
|
-
triggerRef
|
112
|
-
});
|
113
|
-
return (_ctx, _cache) => {
|
114
|
-
return !_ctx.virtualTriggering ? (openBlock(), createBlock(unref(OnlyChild), mergeProps({ key: 0 }, _ctx.$attrs, {
|
115
|
-
"aria-controls": unref(ariaControls),
|
116
|
-
"aria-describedby": unref(ariaDescribedby),
|
117
|
-
"aria-expanded": unref(ariaExpanded),
|
118
|
-
"aria-haspopup": unref(ariaHaspopup)
|
119
|
-
}), {
|
120
|
-
default: withCtx(() => [
|
121
|
-
renderSlot(_ctx.$slots, "default")
|
122
|
-
]),
|
123
|
-
_: 3
|
124
|
-
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"])) : createCommentVNode("v-if", true);
|
125
|
-
};
|
126
|
-
}
|
127
|
-
});
|
128
|
-
var ElPopperTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "trigger.vue"]]);
|
32
|
+
const usePopperTriggerProps = popperTriggerProps;
|
129
33
|
|
130
|
-
export {
|
34
|
+
export { popperTriggerProps, usePopperTriggerProps };
|
131
35
|
//# sourceMappingURL=trigger.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"trigger.mjs","sources":["../../../../../../packages/components/popper/src/trigger.
|
1
|
+
{"version":3,"file":"trigger.mjs","sources":["../../../../../../packages/components/popper/src/trigger.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { Measurable } from './constants'\nimport type Trigger from './trigger.vue'\n\nexport const popperTriggerProps = buildProps({\n virtualRef: {\n type: definePropType<Measurable>(Object),\n },\n virtualTriggering: Boolean,\n onMouseenter: {\n type: definePropType<(e: Event) => void>(Function),\n },\n onMouseleave: {\n type: definePropType<(e: Event) => void>(Function),\n },\n onClick: {\n type: definePropType<(e: Event) => void>(Function),\n },\n onKeydown: {\n type: definePropType<(e: Event) => void>(Function),\n },\n onFocus: {\n type: definePropType<(e: Event) => void>(Function),\n },\n onBlur: {\n type: definePropType<(e: Event) => void>(Function),\n },\n onContextmenu: {\n type: definePropType<(e: Event) => void>(Function),\n },\n id: String,\n open: Boolean,\n} as const)\n\nexport type PopperTriggerProps = typeof popperTriggerProps\n\nexport type PopperTriggerInstance = InstanceType<typeof Trigger>\n\n/** @deprecated use `popperTriggerProps` instead, and it will be deprecated in the next major version */\nexport const usePopperTriggerProps = popperTriggerProps\n\n/** @deprecated use `PopperTriggerInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowTrigger = PopperTriggerInstance\n"],"names":[],"mappings":";;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,IAAI,EAAE,OAAO;AACf,CAAC,EAAE;AACS,MAAC,qBAAqB,GAAG;;;;"}
|
@@ -1,35 +1,131 @@
|
|
1
|
-
import {
|
1
|
+
import { defineComponent, inject, computed, onMounted, watch, onBeforeUnmount, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createCommentVNode } from 'vue';
|
2
|
+
import { isNil } from 'lodash-unified';
|
3
|
+
import { unrefElement } from '@vueuse/core';
|
4
|
+
import { POPPER_INJECTION_KEY } from './constants.mjs';
|
5
|
+
import { popperTriggerProps } from './trigger.mjs';
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
7
|
+
import { useForwardRef } from '../../../hooks/use-forward-ref/index.mjs';
|
8
|
+
import { isFocusable } from '../../../utils/dom/aria.mjs';
|
9
|
+
import { OnlyChild } from '../../slot/src/only-child.mjs';
|
10
|
+
import { isElement } from '../../../utils/types.mjs';
|
2
11
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
},
|
7
|
-
virtualTriggering: Boolean,
|
8
|
-
onMouseenter: {
|
9
|
-
type: definePropType(Function)
|
10
|
-
},
|
11
|
-
onMouseleave: {
|
12
|
-
type: definePropType(Function)
|
13
|
-
},
|
14
|
-
onClick: {
|
15
|
-
type: definePropType(Function)
|
16
|
-
},
|
17
|
-
onKeydown: {
|
18
|
-
type: definePropType(Function)
|
19
|
-
},
|
20
|
-
onFocus: {
|
21
|
-
type: definePropType(Function)
|
22
|
-
},
|
23
|
-
onBlur: {
|
24
|
-
type: definePropType(Function)
|
25
|
-
},
|
26
|
-
onContextmenu: {
|
27
|
-
type: definePropType(Function)
|
28
|
-
},
|
29
|
-
id: String,
|
30
|
-
open: Boolean
|
12
|
+
const __default__ = defineComponent({
|
13
|
+
name: "ElPopperTrigger",
|
14
|
+
inheritAttrs: false
|
31
15
|
});
|
32
|
-
const
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
|
+
...__default__,
|
18
|
+
props: popperTriggerProps,
|
19
|
+
setup(__props, { expose }) {
|
20
|
+
const props = __props;
|
21
|
+
const { role, triggerRef } = inject(POPPER_INJECTION_KEY, void 0);
|
22
|
+
useForwardRef(triggerRef);
|
23
|
+
const ariaControls = computed(() => {
|
24
|
+
return ariaHaspopup.value ? props.id : void 0;
|
25
|
+
});
|
26
|
+
const ariaDescribedby = computed(() => {
|
27
|
+
if (role && role.value === "tooltip") {
|
28
|
+
return props.open && props.id ? props.id : void 0;
|
29
|
+
}
|
30
|
+
return void 0;
|
31
|
+
});
|
32
|
+
const ariaHaspopup = computed(() => {
|
33
|
+
if (role && role.value !== "tooltip") {
|
34
|
+
return role.value;
|
35
|
+
}
|
36
|
+
return void 0;
|
37
|
+
});
|
38
|
+
const ariaExpanded = computed(() => {
|
39
|
+
return ariaHaspopup.value ? `${props.open}` : void 0;
|
40
|
+
});
|
41
|
+
let virtualTriggerAriaStopWatch = void 0;
|
42
|
+
const TRIGGER_ELE_EVENTS = [
|
43
|
+
"onMouseenter",
|
44
|
+
"onMouseleave",
|
45
|
+
"onClick",
|
46
|
+
"onKeydown",
|
47
|
+
"onFocus",
|
48
|
+
"onBlur",
|
49
|
+
"onContextmenu"
|
50
|
+
];
|
51
|
+
onMounted(() => {
|
52
|
+
watch(() => props.virtualRef, (virtualEl) => {
|
53
|
+
if (virtualEl) {
|
54
|
+
triggerRef.value = unrefElement(virtualEl);
|
55
|
+
}
|
56
|
+
}, {
|
57
|
+
immediate: true
|
58
|
+
});
|
59
|
+
watch(triggerRef, (el, prevEl) => {
|
60
|
+
virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
|
61
|
+
virtualTriggerAriaStopWatch = void 0;
|
62
|
+
if (isElement(el)) {
|
63
|
+
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
64
|
+
var _a;
|
65
|
+
const handler = props[eventName];
|
66
|
+
if (handler) {
|
67
|
+
el.addEventListener(eventName.slice(2).toLowerCase(), handler);
|
68
|
+
(_a = prevEl == null ? void 0 : prevEl.removeEventListener) == null ? void 0 : _a.call(prevEl, eventName.slice(2).toLowerCase(), handler);
|
69
|
+
}
|
70
|
+
});
|
71
|
+
if (isFocusable(el)) {
|
72
|
+
virtualTriggerAriaStopWatch = watch([ariaControls, ariaDescribedby, ariaHaspopup, ariaExpanded], (watches) => {
|
73
|
+
[
|
74
|
+
"aria-controls",
|
75
|
+
"aria-describedby",
|
76
|
+
"aria-haspopup",
|
77
|
+
"aria-expanded"
|
78
|
+
].forEach((key, idx) => {
|
79
|
+
isNil(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
|
80
|
+
});
|
81
|
+
}, { immediate: true });
|
82
|
+
}
|
83
|
+
}
|
84
|
+
if (isElement(prevEl) && isFocusable(prevEl)) {
|
85
|
+
[
|
86
|
+
"aria-controls",
|
87
|
+
"aria-describedby",
|
88
|
+
"aria-haspopup",
|
89
|
+
"aria-expanded"
|
90
|
+
].forEach((key) => prevEl.removeAttribute(key));
|
91
|
+
}
|
92
|
+
}, {
|
93
|
+
immediate: true
|
94
|
+
});
|
95
|
+
});
|
96
|
+
onBeforeUnmount(() => {
|
97
|
+
virtualTriggerAriaStopWatch == null ? void 0 : virtualTriggerAriaStopWatch();
|
98
|
+
virtualTriggerAriaStopWatch = void 0;
|
99
|
+
if (triggerRef.value && isElement(triggerRef.value)) {
|
100
|
+
const el = triggerRef.value;
|
101
|
+
TRIGGER_ELE_EVENTS.forEach((eventName) => {
|
102
|
+
const handler = props[eventName];
|
103
|
+
if (handler) {
|
104
|
+
el.removeEventListener(eventName.slice(2).toLowerCase(), handler);
|
105
|
+
}
|
106
|
+
});
|
107
|
+
triggerRef.value = void 0;
|
108
|
+
}
|
109
|
+
});
|
110
|
+
expose({
|
111
|
+
triggerRef
|
112
|
+
});
|
113
|
+
return (_ctx, _cache) => {
|
114
|
+
return !_ctx.virtualTriggering ? (openBlock(), createBlock(unref(OnlyChild), mergeProps({ key: 0 }, _ctx.$attrs, {
|
115
|
+
"aria-controls": unref(ariaControls),
|
116
|
+
"aria-describedby": unref(ariaDescribedby),
|
117
|
+
"aria-expanded": unref(ariaExpanded),
|
118
|
+
"aria-haspopup": unref(ariaHaspopup)
|
119
|
+
}), {
|
120
|
+
default: withCtx(() => [
|
121
|
+
renderSlot(_ctx.$slots, "default")
|
122
|
+
]),
|
123
|
+
_: 3
|
124
|
+
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"])) : createCommentVNode("v-if", true);
|
125
|
+
};
|
126
|
+
}
|
127
|
+
});
|
128
|
+
var ElPopperTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "trigger.vue"]]);
|
33
129
|
|
34
|
-
export {
|
130
|
+
export { ElPopperTrigger as default };
|
35
131
|
//# sourceMappingURL=trigger2.mjs.map
|