@element-plus/nightly 0.0.20250105 → 0.0.20250107
Sign up to get free protection for your applications and to get access to all the features.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +56 -13
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +12 -12
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +56 -13
- 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 +191 -0
- package/dist/locale/hi.min.js +2 -0
- package/dist/locale/hi.min.js.map +1 -0
- package/dist/locale/hi.min.mjs +2 -0
- package/dist/locale/hi.min.mjs.map +1 -0
- package/dist/locale/hi.mjs +183 -0
- 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/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +118 -25
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +25 -118
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +79 -364
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +364 -79
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +53 -21
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +21 -53
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb.mjs +37 -10
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +10 -37
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +20 -42
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +42 -20
- package/es/components/card/src/card2.mjs.map +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/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +59 -119
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +119 -59
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +43 -64
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +64 -43
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.d.ts +3 -0
- package/es/components/dialog/src/dialog-content.mjs +3 -0
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +6 -0
- package/es/components/dialog/src/dialog-content2.mjs +3 -3
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +3 -0
- package/es/components/dialog/src/dialog.mjs +3 -0
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +6 -0
- package/es/components/dialog/src/dialog2.mjs +4 -1
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/src/drawer.d.ts +3 -0
- package/es/components/drawer/src/drawer.vue.d.ts +6 -0
- package/es/components/drawer/src/drawer2.mjs +3 -3
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/form/index.mjs +4 -4
- package/es/components/form/src/form-item.mjs +319 -47
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +47 -319
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.mjs +153 -53
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +53 -151
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +45 -412
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +412 -45
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +20 -20
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +102 -431
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +431 -102
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +24 -49
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +49 -24
- package/es/components/link/src/link2.mjs.map +1 -1
- 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.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +2 -2
- 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/pager.mjs +16 -209
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +209 -16
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +48 -21
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +21 -48
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/slider/index.mjs +2 -2
- 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/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +25 -69
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +69 -25
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +72 -228
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +228 -72
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +13 -71
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +71 -13
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs +9 -3
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +27 -1
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/tooltip.mjs +77 -19
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +19 -77
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +130 -19
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +19 -130
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +27 -210
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +210 -27
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +20 -20
- package/es/locale/lang/hi.d.ts +180 -0
- package/es/locale/lang/hi.mjs +182 -0
- package/es/locale/lang/hi.mjs.map +1 -0
- 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 +118 -26
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +26 -118
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +79 -363
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +363 -79
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +53 -22
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +22 -53
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.js +37 -10
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +10 -37
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +20 -42
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +42 -20
- package/lib/components/card/src/card2.js.map +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/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +60 -119
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +119 -60
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +43 -64
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +64 -43
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.d.ts +3 -0
- package/lib/components/dialog/src/dialog-content.js +3 -0
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +6 -0
- package/lib/components/dialog/src/dialog-content2.js +3 -3
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +3 -0
- package/lib/components/dialog/src/dialog.js +3 -0
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +6 -0
- package/lib/components/dialog/src/dialog2.js +4 -1
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/src/drawer.d.ts +3 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +6 -0
- package/lib/components/drawer/src/drawer2.js +3 -3
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/form/index.js +4 -4
- package/lib/components/form/src/form-item.js +323 -48
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +48 -323
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.js +152 -54
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +54 -150
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +46 -412
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +412 -46
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +20 -20
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +102 -430
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +430 -102
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +25 -49
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +49 -25
- package/lib/components/link/src/link2.js.map +1 -1
- 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.js +1 -1
- package/lib/components/mention/src/mention2.js +2 -2
- 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/pager.js +16 -209
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +209 -16
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +48 -21
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +21 -48
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/slider/index.js +2 -2
- 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/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +25 -69
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +69 -25
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +72 -227
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +227 -72
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +13 -71
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +71 -13
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tabs/src/tabs.js +9 -3
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/text/src/text2.js +26 -0
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/tooltip.js +77 -19
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +19 -77
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +130 -21
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +21 -130
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +27 -210
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +210 -27
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +20 -20
- package/lib/locale/lang/hi.d.ts +180 -0
- package/lib/locale/lang/hi.js +186 -0
- package/lib/locale/lang/hi.js.map +1 -0
- 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/tags.json +1 -1
- package/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/select.scss +1 -0
- package/web-types.json +1 -1
@@ -2,69 +2,211 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var index$2 = require('../../icon/index.js');
|
7
|
+
var iconsVue = require('@element-plus/icons-vue');
|
8
|
+
var carousel = require('./carousel2.js');
|
9
|
+
var useCarousel = require('./use-carousel.js');
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
12
|
+
var index$1 = require('../../../hooks/use-locale/index.js');
|
7
13
|
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
default: 0
|
12
|
-
},
|
13
|
-
height: {
|
14
|
-
type: String,
|
15
|
-
default: ""
|
16
|
-
},
|
17
|
-
trigger: {
|
18
|
-
type: String,
|
19
|
-
values: ["hover", "click"],
|
20
|
-
default: "hover"
|
21
|
-
},
|
22
|
-
autoplay: {
|
23
|
-
type: Boolean,
|
24
|
-
default: true
|
25
|
-
},
|
26
|
-
interval: {
|
27
|
-
type: Number,
|
28
|
-
default: 3e3
|
29
|
-
},
|
30
|
-
indicatorPosition: {
|
31
|
-
type: String,
|
32
|
-
values: ["", "none", "outside"],
|
33
|
-
default: ""
|
34
|
-
},
|
35
|
-
arrow: {
|
36
|
-
type: String,
|
37
|
-
values: ["always", "hover", "never"],
|
38
|
-
default: "hover"
|
39
|
-
},
|
40
|
-
type: {
|
41
|
-
type: String,
|
42
|
-
values: ["", "card"],
|
43
|
-
default: ""
|
44
|
-
},
|
45
|
-
cardScale: {
|
46
|
-
type: Number,
|
47
|
-
default: 0.83
|
48
|
-
},
|
49
|
-
loop: {
|
50
|
-
type: Boolean,
|
51
|
-
default: true
|
52
|
-
},
|
53
|
-
direction: {
|
54
|
-
type: String,
|
55
|
-
values: ["horizontal", "vertical"],
|
56
|
-
default: "horizontal"
|
57
|
-
},
|
58
|
-
pauseOnHover: {
|
59
|
-
type: Boolean,
|
60
|
-
default: true
|
61
|
-
},
|
62
|
-
motionBlur: Boolean
|
14
|
+
const COMPONENT_NAME = "ElCarousel";
|
15
|
+
const __default__ = vue.defineComponent({
|
16
|
+
name: COMPONENT_NAME
|
63
17
|
});
|
64
|
-
const
|
65
|
-
|
66
|
-
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
19
|
+
...__default__,
|
20
|
+
props: carousel.carouselProps,
|
21
|
+
emits: carousel.carouselEmits,
|
22
|
+
setup(__props, { expose, emit }) {
|
23
|
+
const props = __props;
|
24
|
+
const {
|
25
|
+
root,
|
26
|
+
activeIndex,
|
27
|
+
arrowDisplay,
|
28
|
+
hasLabel,
|
29
|
+
hover,
|
30
|
+
isCardType,
|
31
|
+
items,
|
32
|
+
isVertical,
|
33
|
+
containerStyle,
|
34
|
+
handleButtonEnter,
|
35
|
+
handleButtonLeave,
|
36
|
+
isTransitioning,
|
37
|
+
handleIndicatorClick,
|
38
|
+
handleMouseEnter,
|
39
|
+
handleMouseLeave,
|
40
|
+
handleTransitionEnd,
|
41
|
+
setActiveItem,
|
42
|
+
prev,
|
43
|
+
next,
|
44
|
+
PlaceholderItem,
|
45
|
+
isTwoLengthShow,
|
46
|
+
throttledArrowClick,
|
47
|
+
throttledIndicatorHover
|
48
|
+
} = useCarousel.useCarousel(props, emit, COMPONENT_NAME);
|
49
|
+
const ns = index.useNamespace("carousel");
|
50
|
+
const { t } = index$1.useLocale();
|
51
|
+
const carouselClasses = vue.computed(() => {
|
52
|
+
const classes = [ns.b(), ns.m(props.direction)];
|
53
|
+
if (vue.unref(isCardType)) {
|
54
|
+
classes.push(ns.m("card"));
|
55
|
+
}
|
56
|
+
return classes;
|
57
|
+
});
|
58
|
+
const carouselContainer = vue.computed(() => {
|
59
|
+
const classes = [ns.e("container")];
|
60
|
+
if (props.motionBlur && vue.unref(isTransitioning) && items.value.length > 1) {
|
61
|
+
classes.push(vue.unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`);
|
62
|
+
}
|
63
|
+
return classes;
|
64
|
+
});
|
65
|
+
const indicatorsClasses = vue.computed(() => {
|
66
|
+
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
67
|
+
if (vue.unref(hasLabel)) {
|
68
|
+
classes.push(ns.em("indicators", "labels"));
|
69
|
+
}
|
70
|
+
if (props.indicatorPosition === "outside") {
|
71
|
+
classes.push(ns.em("indicators", "outside"));
|
72
|
+
}
|
73
|
+
if (vue.unref(isVertical)) {
|
74
|
+
classes.push(ns.em("indicators", "right"));
|
75
|
+
}
|
76
|
+
return classes;
|
77
|
+
});
|
78
|
+
expose({
|
79
|
+
activeIndex,
|
80
|
+
setActiveItem,
|
81
|
+
prev,
|
82
|
+
next
|
83
|
+
});
|
84
|
+
return (_ctx, _cache) => {
|
85
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
86
|
+
ref_key: "root",
|
87
|
+
ref: root,
|
88
|
+
class: vue.normalizeClass(vue.unref(carouselClasses)),
|
89
|
+
onMouseenter: vue.withModifiers(vue.unref(handleMouseEnter), ["stop"]),
|
90
|
+
onMouseleave: vue.withModifiers(vue.unref(handleMouseLeave), ["stop"])
|
91
|
+
}, [
|
92
|
+
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
93
|
+
key: 0,
|
94
|
+
name: "carousel-arrow-left",
|
95
|
+
persisted: ""
|
96
|
+
}, {
|
97
|
+
default: vue.withCtx(() => [
|
98
|
+
vue.withDirectives(vue.createElementVNode("button", {
|
99
|
+
type: "button",
|
100
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")]),
|
101
|
+
"aria-label": vue.unref(t)("el.carousel.leftArrow"),
|
102
|
+
onMouseenter: ($event) => vue.unref(handleButtonEnter)("left"),
|
103
|
+
onMouseleave: vue.unref(handleButtonLeave),
|
104
|
+
onClick: vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) - 1), ["stop"])
|
105
|
+
}, [
|
106
|
+
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
107
|
+
default: vue.withCtx(() => [
|
108
|
+
vue.createVNode(vue.unref(iconsVue.ArrowLeft))
|
109
|
+
]),
|
110
|
+
_: 1
|
111
|
+
})
|
112
|
+
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
113
|
+
[
|
114
|
+
vue.vShow,
|
115
|
+
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) > 0)
|
116
|
+
]
|
117
|
+
])
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
})) : vue.createCommentVNode("v-if", true),
|
121
|
+
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
122
|
+
key: 1,
|
123
|
+
name: "carousel-arrow-right",
|
124
|
+
persisted: ""
|
125
|
+
}, {
|
126
|
+
default: vue.withCtx(() => [
|
127
|
+
vue.withDirectives(vue.createElementVNode("button", {
|
128
|
+
type: "button",
|
129
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")]),
|
130
|
+
"aria-label": vue.unref(t)("el.carousel.rightArrow"),
|
131
|
+
onMouseenter: ($event) => vue.unref(handleButtonEnter)("right"),
|
132
|
+
onMouseleave: vue.unref(handleButtonLeave),
|
133
|
+
onClick: vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) + 1), ["stop"])
|
134
|
+
}, [
|
135
|
+
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
136
|
+
default: vue.withCtx(() => [
|
137
|
+
vue.createVNode(vue.unref(iconsVue.ArrowRight))
|
138
|
+
]),
|
139
|
+
_: 1
|
140
|
+
})
|
141
|
+
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
142
|
+
[
|
143
|
+
vue.vShow,
|
144
|
+
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) < vue.unref(items).length - 1)
|
145
|
+
]
|
146
|
+
])
|
147
|
+
]),
|
148
|
+
_: 1
|
149
|
+
})) : vue.createCommentVNode("v-if", true),
|
150
|
+
vue.createElementVNode("div", {
|
151
|
+
class: vue.normalizeClass(vue.unref(carouselContainer)),
|
152
|
+
style: vue.normalizeStyle(vue.unref(containerStyle)),
|
153
|
+
onTransitionend: vue.unref(handleTransitionEnd)
|
154
|
+
}, [
|
155
|
+
vue.createVNode(vue.unref(PlaceholderItem)),
|
156
|
+
vue.renderSlot(_ctx.$slots, "default")
|
157
|
+
], 46, ["onTransitionend"]),
|
158
|
+
_ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
159
|
+
key: 2,
|
160
|
+
class: vue.normalizeClass(vue.unref(indicatorsClasses))
|
161
|
+
}, [
|
162
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(items), (item, index) => {
|
163
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
|
164
|
+
key: index,
|
165
|
+
class: vue.normalizeClass([
|
166
|
+
vue.unref(ns).e("indicator"),
|
167
|
+
vue.unref(ns).em("indicator", _ctx.direction),
|
168
|
+
vue.unref(ns).is("active", index === vue.unref(activeIndex))
|
169
|
+
]),
|
170
|
+
onMouseenter: ($event) => vue.unref(throttledIndicatorHover)(index),
|
171
|
+
onClick: vue.withModifiers(($event) => vue.unref(handleIndicatorClick)(index), ["stop"])
|
172
|
+
}, [
|
173
|
+
vue.createElementVNode("button", {
|
174
|
+
class: vue.normalizeClass(vue.unref(ns).e("button")),
|
175
|
+
"aria-label": vue.unref(t)("el.carousel.indicator", { index: index + 1 })
|
176
|
+
}, [
|
177
|
+
vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
|
178
|
+
], 10, ["aria-label"])
|
179
|
+
], 42, ["onMouseenter", "onClick"])), [
|
180
|
+
[vue.vShow, vue.unref(isTwoLengthShow)(index)]
|
181
|
+
]);
|
182
|
+
}), 128))
|
183
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
184
|
+
props.motionBlur ? (vue.openBlock(), vue.createElementBlock("svg", {
|
185
|
+
key: 3,
|
186
|
+
xmlns: "http://www.w3.org/2000/svg",
|
187
|
+
version: "1.1",
|
188
|
+
style: { "display": "none" }
|
189
|
+
}, [
|
190
|
+
vue.createElementVNode("defs", null, [
|
191
|
+
vue.createElementVNode("filter", { id: "elCarouselHorizontal" }, [
|
192
|
+
vue.createElementVNode("feGaussianBlur", {
|
193
|
+
in: "SourceGraphic",
|
194
|
+
stdDeviation: "12,0"
|
195
|
+
})
|
196
|
+
]),
|
197
|
+
vue.createElementVNode("filter", { id: "elCarouselVertical" }, [
|
198
|
+
vue.createElementVNode("feGaussianBlur", {
|
199
|
+
in: "SourceGraphic",
|
200
|
+
stdDeviation: "0,10"
|
201
|
+
})
|
202
|
+
])
|
203
|
+
])
|
204
|
+
])) : vue.createCommentVNode("v-if", true)
|
205
|
+
], 42, ["onMouseenter", "onMouseleave"]);
|
206
|
+
};
|
207
|
+
}
|
208
|
+
});
|
209
|
+
var Carousel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "carousel.vue"]]);
|
67
210
|
|
68
|
-
exports
|
69
|
-
exports.carouselProps = carouselProps;
|
211
|
+
exports["default"] = Carousel;
|
70
212
|
//# sourceMappingURL=carousel.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"carousel.js","sources":["../../../../../../packages/components/carousel/src/carousel.
|
1
|
+
{"version":3,"file":"carousel.js","sources":["../../../../../../packages/components/carousel/src/carousel.vue"],"sourcesContent":["<template>\n <div\n ref=\"root\"\n :class=\"carouselClasses\"\n @mouseenter.stop=\"handleMouseEnter\"\n @mouseleave.stop=\"handleMouseLeave\"\n >\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-left\">\n <button\n v-show=\"\n (arrow === 'always' || hover) && (props.loop || activeIndex > 0)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'left')]\"\n :aria-label=\"t('el.carousel.leftArrow')\"\n @mouseenter=\"handleButtonEnter('left')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(activeIndex - 1)\"\n >\n <ElIcon>\n <ArrowLeft />\n </ElIcon>\n </button>\n </transition>\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-right\">\n <button\n v-show=\"\n (arrow === 'always' || hover) &&\n (props.loop || activeIndex < items.length - 1)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'right')]\"\n :aria-label=\"t('el.carousel.rightArrow')\"\n @mouseenter=\"handleButtonEnter('right')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(activeIndex + 1)\"\n >\n <ElIcon>\n <ArrowRight />\n </ElIcon>\n </button>\n </transition>\n <div\n :class=\"carouselContainer\"\n :style=\"containerStyle\"\n @transitionend=\"handleTransitionEnd\"\n >\n <PlaceholderItem />\n <slot />\n </div>\n <ul v-if=\"indicatorPosition !== 'none'\" :class=\"indicatorsClasses\">\n <li\n v-for=\"(item, index) in items\"\n v-show=\"isTwoLengthShow(index)\"\n :key=\"index\"\n :class=\"[\n ns.e('indicator'),\n ns.em('indicator', direction),\n ns.is('active', index === activeIndex),\n ]\"\n @mouseenter=\"throttledIndicatorHover(index)\"\n @click.stop=\"handleIndicatorClick(index)\"\n >\n <button\n :class=\"ns.e('button')\"\n :aria-label=\"t('el.carousel.indicator', { index: index + 1 })\"\n >\n <span v-if=\"hasLabel\">{{ item.props.label }}</span>\n </button>\n </li>\n </ul>\n <svg\n v-if=\"props.motionBlur\"\n xmlns=\"http://www.w3.org/2000/svg\"\n version=\"1.1\"\n style=\"display: none\"\n >\n <defs>\n <filter id=\"elCarouselHorizontal\">\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"12,0\" />\n </filter>\n <filter id=\"elCarouselVertical\">\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"0,10\" />\n </filter>\n </defs>\n </svg>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { carouselEmits, carouselProps } from './carousel'\nimport { useCarousel } from './use-carousel'\n\nconst COMPONENT_NAME = 'ElCarousel'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(carouselProps)\nconst emit = defineEmits(carouselEmits)\nconst {\n root,\n activeIndex,\n arrowDisplay,\n hasLabel,\n hover,\n isCardType,\n items,\n isVertical,\n containerStyle,\n handleButtonEnter,\n handleButtonLeave,\n isTransitioning,\n handleIndicatorClick,\n handleMouseEnter,\n handleMouseLeave,\n handleTransitionEnd,\n setActiveItem,\n prev,\n next,\n PlaceholderItem,\n isTwoLengthShow,\n throttledArrowClick,\n throttledIndicatorHover,\n} = useCarousel(props, emit, COMPONENT_NAME)\nconst ns = useNamespace('carousel')\n\nconst { t } = useLocale()\n\nconst carouselClasses = computed(() => {\n const classes = [ns.b(), ns.m(props.direction)]\n if (unref(isCardType)) {\n classes.push(ns.m('card'))\n }\n return classes\n})\n\nconst carouselContainer = computed(() => {\n const classes = [ns.e('container')]\n if (props.motionBlur && unref(isTransitioning) && items.value.length > 1) {\n classes.push(\n unref(isVertical)\n ? `${ns.namespace.value}-transitioning-vertical`\n : `${ns.namespace.value}-transitioning`\n )\n }\n return classes\n})\n\nconst indicatorsClasses = computed(() => {\n const classes = [ns.e('indicators'), ns.em('indicators', props.direction)]\n if (unref(hasLabel)) {\n classes.push(ns.em('indicators', 'labels'))\n }\n if (props.indicatorPosition === 'outside') {\n classes.push(ns.em('indicators', 'outside'))\n }\n if (unref(isVertical)) {\n classes.push(ns.em('indicators', 'right'))\n }\n return classes\n})\n\ndefineExpose({\n /** @description active slide index */\n activeIndex,\n /** @description manually switch slide, index of the slide to be switched to, starting from 0; or the `name` of corresponding `el-carousel-item` */\n setActiveItem,\n /** @description switch to the previous slide */\n prev,\n /** @description switch to the next slide */\n next,\n})\n</script>\n"],"names":["useCarousel","useNamespace","useLocale","computed","unref","_openBlock","_createElementBlock","_normalizeClass","_unref","_withModifiers"],"mappings":"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"}
|
@@ -2,211 +2,69 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
7
|
-
var iconsVue = require('@element-plus/icons-vue');
|
8
|
-
var carousel = require('./carousel.js');
|
9
|
-
var useCarousel = require('./use-carousel.js');
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
12
|
-
var index$1 = require('../../../hooks/use-locale/index.js');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
6
|
+
var types = require('../../../utils/types.js');
|
13
7
|
|
14
|
-
const
|
15
|
-
|
16
|
-
|
8
|
+
const carouselProps = runtime.buildProps({
|
9
|
+
initialIndex: {
|
10
|
+
type: Number,
|
11
|
+
default: 0
|
12
|
+
},
|
13
|
+
height: {
|
14
|
+
type: String,
|
15
|
+
default: ""
|
16
|
+
},
|
17
|
+
trigger: {
|
18
|
+
type: String,
|
19
|
+
values: ["hover", "click"],
|
20
|
+
default: "hover"
|
21
|
+
},
|
22
|
+
autoplay: {
|
23
|
+
type: Boolean,
|
24
|
+
default: true
|
25
|
+
},
|
26
|
+
interval: {
|
27
|
+
type: Number,
|
28
|
+
default: 3e3
|
29
|
+
},
|
30
|
+
indicatorPosition: {
|
31
|
+
type: String,
|
32
|
+
values: ["", "none", "outside"],
|
33
|
+
default: ""
|
34
|
+
},
|
35
|
+
arrow: {
|
36
|
+
type: String,
|
37
|
+
values: ["always", "hover", "never"],
|
38
|
+
default: "hover"
|
39
|
+
},
|
40
|
+
type: {
|
41
|
+
type: String,
|
42
|
+
values: ["", "card"],
|
43
|
+
default: ""
|
44
|
+
},
|
45
|
+
cardScale: {
|
46
|
+
type: Number,
|
47
|
+
default: 0.83
|
48
|
+
},
|
49
|
+
loop: {
|
50
|
+
type: Boolean,
|
51
|
+
default: true
|
52
|
+
},
|
53
|
+
direction: {
|
54
|
+
type: String,
|
55
|
+
values: ["horizontal", "vertical"],
|
56
|
+
default: "horizontal"
|
57
|
+
},
|
58
|
+
pauseOnHover: {
|
59
|
+
type: Boolean,
|
60
|
+
default: true
|
61
|
+
},
|
62
|
+
motionBlur: Boolean
|
17
63
|
});
|
18
|
-
const
|
19
|
-
|
20
|
-
|
21
|
-
emits: carousel.carouselEmits,
|
22
|
-
setup(__props, { expose, emit }) {
|
23
|
-
const props = __props;
|
24
|
-
const {
|
25
|
-
root,
|
26
|
-
activeIndex,
|
27
|
-
arrowDisplay,
|
28
|
-
hasLabel,
|
29
|
-
hover,
|
30
|
-
isCardType,
|
31
|
-
items,
|
32
|
-
isVertical,
|
33
|
-
containerStyle,
|
34
|
-
handleButtonEnter,
|
35
|
-
handleButtonLeave,
|
36
|
-
isTransitioning,
|
37
|
-
handleIndicatorClick,
|
38
|
-
handleMouseEnter,
|
39
|
-
handleMouseLeave,
|
40
|
-
handleTransitionEnd,
|
41
|
-
setActiveItem,
|
42
|
-
prev,
|
43
|
-
next,
|
44
|
-
PlaceholderItem,
|
45
|
-
isTwoLengthShow,
|
46
|
-
throttledArrowClick,
|
47
|
-
throttledIndicatorHover
|
48
|
-
} = useCarousel.useCarousel(props, emit, COMPONENT_NAME);
|
49
|
-
const ns = index.useNamespace("carousel");
|
50
|
-
const { t } = index$1.useLocale();
|
51
|
-
const carouselClasses = vue.computed(() => {
|
52
|
-
const classes = [ns.b(), ns.m(props.direction)];
|
53
|
-
if (vue.unref(isCardType)) {
|
54
|
-
classes.push(ns.m("card"));
|
55
|
-
}
|
56
|
-
return classes;
|
57
|
-
});
|
58
|
-
const carouselContainer = vue.computed(() => {
|
59
|
-
const classes = [ns.e("container")];
|
60
|
-
if (props.motionBlur && vue.unref(isTransitioning) && items.value.length > 1) {
|
61
|
-
classes.push(vue.unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`);
|
62
|
-
}
|
63
|
-
return classes;
|
64
|
-
});
|
65
|
-
const indicatorsClasses = vue.computed(() => {
|
66
|
-
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
67
|
-
if (vue.unref(hasLabel)) {
|
68
|
-
classes.push(ns.em("indicators", "labels"));
|
69
|
-
}
|
70
|
-
if (props.indicatorPosition === "outside") {
|
71
|
-
classes.push(ns.em("indicators", "outside"));
|
72
|
-
}
|
73
|
-
if (vue.unref(isVertical)) {
|
74
|
-
classes.push(ns.em("indicators", "right"));
|
75
|
-
}
|
76
|
-
return classes;
|
77
|
-
});
|
78
|
-
expose({
|
79
|
-
activeIndex,
|
80
|
-
setActiveItem,
|
81
|
-
prev,
|
82
|
-
next
|
83
|
-
});
|
84
|
-
return (_ctx, _cache) => {
|
85
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
86
|
-
ref_key: "root",
|
87
|
-
ref: root,
|
88
|
-
class: vue.normalizeClass(vue.unref(carouselClasses)),
|
89
|
-
onMouseenter: vue.withModifiers(vue.unref(handleMouseEnter), ["stop"]),
|
90
|
-
onMouseleave: vue.withModifiers(vue.unref(handleMouseLeave), ["stop"])
|
91
|
-
}, [
|
92
|
-
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
93
|
-
key: 0,
|
94
|
-
name: "carousel-arrow-left",
|
95
|
-
persisted: ""
|
96
|
-
}, {
|
97
|
-
default: vue.withCtx(() => [
|
98
|
-
vue.withDirectives(vue.createElementVNode("button", {
|
99
|
-
type: "button",
|
100
|
-
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")]),
|
101
|
-
"aria-label": vue.unref(t)("el.carousel.leftArrow"),
|
102
|
-
onMouseenter: ($event) => vue.unref(handleButtonEnter)("left"),
|
103
|
-
onMouseleave: vue.unref(handleButtonLeave),
|
104
|
-
onClick: vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) - 1), ["stop"])
|
105
|
-
}, [
|
106
|
-
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
107
|
-
default: vue.withCtx(() => [
|
108
|
-
vue.createVNode(vue.unref(iconsVue.ArrowLeft))
|
109
|
-
]),
|
110
|
-
_: 1
|
111
|
-
})
|
112
|
-
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
113
|
-
[
|
114
|
-
vue.vShow,
|
115
|
-
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) > 0)
|
116
|
-
]
|
117
|
-
])
|
118
|
-
]),
|
119
|
-
_: 1
|
120
|
-
})) : vue.createCommentVNode("v-if", true),
|
121
|
-
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
122
|
-
key: 1,
|
123
|
-
name: "carousel-arrow-right",
|
124
|
-
persisted: ""
|
125
|
-
}, {
|
126
|
-
default: vue.withCtx(() => [
|
127
|
-
vue.withDirectives(vue.createElementVNode("button", {
|
128
|
-
type: "button",
|
129
|
-
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")]),
|
130
|
-
"aria-label": vue.unref(t)("el.carousel.rightArrow"),
|
131
|
-
onMouseenter: ($event) => vue.unref(handleButtonEnter)("right"),
|
132
|
-
onMouseleave: vue.unref(handleButtonLeave),
|
133
|
-
onClick: vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) + 1), ["stop"])
|
134
|
-
}, [
|
135
|
-
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
136
|
-
default: vue.withCtx(() => [
|
137
|
-
vue.createVNode(vue.unref(iconsVue.ArrowRight))
|
138
|
-
]),
|
139
|
-
_: 1
|
140
|
-
})
|
141
|
-
], 42, ["aria-label", "onMouseenter", "onMouseleave", "onClick"]), [
|
142
|
-
[
|
143
|
-
vue.vShow,
|
144
|
-
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) < vue.unref(items).length - 1)
|
145
|
-
]
|
146
|
-
])
|
147
|
-
]),
|
148
|
-
_: 1
|
149
|
-
})) : vue.createCommentVNode("v-if", true),
|
150
|
-
vue.createElementVNode("div", {
|
151
|
-
class: vue.normalizeClass(vue.unref(carouselContainer)),
|
152
|
-
style: vue.normalizeStyle(vue.unref(containerStyle)),
|
153
|
-
onTransitionend: vue.unref(handleTransitionEnd)
|
154
|
-
}, [
|
155
|
-
vue.createVNode(vue.unref(PlaceholderItem)),
|
156
|
-
vue.renderSlot(_ctx.$slots, "default")
|
157
|
-
], 46, ["onTransitionend"]),
|
158
|
-
_ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
159
|
-
key: 2,
|
160
|
-
class: vue.normalizeClass(vue.unref(indicatorsClasses))
|
161
|
-
}, [
|
162
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(items), (item, index) => {
|
163
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
|
164
|
-
key: index,
|
165
|
-
class: vue.normalizeClass([
|
166
|
-
vue.unref(ns).e("indicator"),
|
167
|
-
vue.unref(ns).em("indicator", _ctx.direction),
|
168
|
-
vue.unref(ns).is("active", index === vue.unref(activeIndex))
|
169
|
-
]),
|
170
|
-
onMouseenter: ($event) => vue.unref(throttledIndicatorHover)(index),
|
171
|
-
onClick: vue.withModifiers(($event) => vue.unref(handleIndicatorClick)(index), ["stop"])
|
172
|
-
}, [
|
173
|
-
vue.createElementVNode("button", {
|
174
|
-
class: vue.normalizeClass(vue.unref(ns).e("button")),
|
175
|
-
"aria-label": vue.unref(t)("el.carousel.indicator", { index: index + 1 })
|
176
|
-
}, [
|
177
|
-
vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
|
178
|
-
], 10, ["aria-label"])
|
179
|
-
], 42, ["onMouseenter", "onClick"])), [
|
180
|
-
[vue.vShow, vue.unref(isTwoLengthShow)(index)]
|
181
|
-
]);
|
182
|
-
}), 128))
|
183
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
184
|
-
props.motionBlur ? (vue.openBlock(), vue.createElementBlock("svg", {
|
185
|
-
key: 3,
|
186
|
-
xmlns: "http://www.w3.org/2000/svg",
|
187
|
-
version: "1.1",
|
188
|
-
style: { "display": "none" }
|
189
|
-
}, [
|
190
|
-
vue.createElementVNode("defs", null, [
|
191
|
-
vue.createElementVNode("filter", { id: "elCarouselHorizontal" }, [
|
192
|
-
vue.createElementVNode("feGaussianBlur", {
|
193
|
-
in: "SourceGraphic",
|
194
|
-
stdDeviation: "12,0"
|
195
|
-
})
|
196
|
-
]),
|
197
|
-
vue.createElementVNode("filter", { id: "elCarouselVertical" }, [
|
198
|
-
vue.createElementVNode("feGaussianBlur", {
|
199
|
-
in: "SourceGraphic",
|
200
|
-
stdDeviation: "0,10"
|
201
|
-
})
|
202
|
-
])
|
203
|
-
])
|
204
|
-
])) : vue.createCommentVNode("v-if", true)
|
205
|
-
], 42, ["onMouseenter", "onMouseleave"]);
|
206
|
-
};
|
207
|
-
}
|
208
|
-
});
|
209
|
-
var Carousel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "carousel.vue"]]);
|
64
|
+
const carouselEmits = {
|
65
|
+
change: (current, prev) => [current, prev].every(types.isNumber)
|
66
|
+
};
|
210
67
|
|
211
|
-
exports
|
68
|
+
exports.carouselEmits = carouselEmits;
|
69
|
+
exports.carouselProps = carouselProps;
|
212
70
|
//# sourceMappingURL=carousel2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"carousel2.js","sources":["../../../../../../packages/components/carousel/src/carousel.
|
1
|
+
{"version":3,"file":"carousel2.js","sources":["../../../../../../packages/components/carousel/src/carousel.ts"],"sourcesContent":["import { buildProps, isNumber } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const carouselProps = buildProps({\n /**\n * @description index of the initially active slide (starting from 0)\n */\n initialIndex: {\n type: Number,\n default: 0,\n },\n /**\n * @description height of the carousel\n */\n height: {\n type: String,\n default: '',\n },\n /**\n * @description how indicators are triggered\n */\n trigger: {\n type: String,\n values: ['hover', 'click'],\n default: 'hover',\n },\n /**\n * @description whether automatically loop the slides\n */\n autoplay: {\n type: Boolean,\n default: true,\n },\n /**\n * @description interval of the auto loop, in milliseconds\n */\n interval: {\n type: Number,\n default: 3000,\n },\n /**\n * @description position of the indicators\n */\n indicatorPosition: {\n type: String,\n values: ['', 'none', 'outside'],\n default: '',\n },\n /**\n * @description when arrows are shown\n */\n arrow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: 'hover',\n },\n /**\n * @description type of the Carousel\n */\n type: {\n type: String,\n values: ['', 'card'],\n default: '',\n },\n /**\n * @description when type is card, scaled size of secondary cards\n */\n cardScale: {\n type: Number,\n default: 0.83,\n },\n /**\n * @description display the items in loop\n */\n loop: {\n type: Boolean,\n default: true,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n /**\n * @description pause autoplay when hover\n */\n pauseOnHover: {\n type: Boolean,\n default: true,\n },\n /**\n * @description infuse dynamism and smoothness into the carousel\n */\n motionBlur: Boolean,\n} as const)\n\nexport const carouselEmits = {\n /**\n * @description triggers when the active slide switches\n * @param current index of the new active slide\n * @param prev index of the old active slide\n */\n change: (current: number, prev: number) => [current, prev].every(isNumber),\n}\n\nexport type CarouselProps = ExtractPropTypes<typeof carouselProps>\nexport type CarouselEmits = typeof carouselEmits\n"],"names":["buildProps","isNumber"],"mappings":";;;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAC9B,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;AACxC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC;AACxB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,YAAY;AACzB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,KAAK,CAACC,cAAQ,CAAC;AAC5D;;;;;"}
|