@element-plus/nightly 0.0.20231225 → 0.0.20231227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +2084 -817
- package/dist/index.full.min.js +22 -22
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +22 -22
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2081 -818
- 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 +6 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.js.map +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.min.mjs.map +1 -1
- package/dist/locale/de.mjs +6 -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 +6 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.js.map +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.min.mjs.map +1 -1
- package/dist/locale/en.mjs +6 -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 +6 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.js.map +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.min.mjs.map +1 -1
- package/dist/locale/eu.mjs +6 -1
- package/dist/locale/fa.js +6 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.js.map +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.min.mjs.map +1 -1
- package/dist/locale/fa.mjs +6 -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 +6 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.js.map +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.min.mjs.map +1 -1
- package/dist/locale/ja.mjs +6 -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 +6 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.js.map +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.min.mjs.map +1 -1
- package/dist/locale/ko.mjs +6 -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 +6 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.js.map +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.min.mjs.map +1 -1
- package/dist/locale/lt.mjs +6 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +6 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.js.map +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.min.mjs.map +1 -1
- package/dist/locale/pl.mjs +6 -1
- package/dist/locale/pt-br.js +6 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.js.map +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.min.mjs.map +1 -1
- package/dist/locale/pt-br.mjs +6 -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 +6 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.js.map +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.min.mjs.map +1 -1
- package/dist/locale/ru.mjs +6 -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 +6 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.js.map +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.min.mjs.map +1 -1
- package/dist/locale/sv.mjs +6 -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 +6 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.js.map +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.min.mjs.map +1 -1
- package/dist/locale/th.mjs +6 -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 +6 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.js.map +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.min.mjs.map +1 -1
- package/dist/locale/uk.mjs +6 -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 +6 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.js.map +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.min.mjs.map +1 -1
- package/dist/locale/vi.mjs +6 -1
- package/dist/locale/zh-cn.js +6 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.js.map +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.min.mjs.map +1 -1
- package/dist/locale/zh-cn.mjs +6 -1
- package/dist/locale/zh-tw.js +6 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.js.map +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.min.mjs.map +1 -1
- package/dist/locale/zh-tw.mjs +6 -1
- package/es/component.mjs +4 -1
- package/es/component.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +6 -0
- package/es/components/carousel/src/carousel-item.vue.d.ts +3 -0
- package/es/components/carousel/src/carousel-item2.mjs +12 -11
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +4 -2
- package/es/components/index.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +9 -66
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +66 -9
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/tour/index.d.ts +7626 -0
- package/es/components/tour/index.mjs +13 -0
- package/es/components/tour/index.mjs.map +1 -0
- package/es/components/tour/src/content.d.ts +15 -0
- package/es/components/tour/src/content.mjs +49 -0
- package/es/components/tour/src/content.mjs.map +1 -0
- package/es/components/tour/src/content.vue.d.ts +95 -0
- package/es/components/tour/src/content2.mjs +65 -0
- package/es/components/tour/src/content2.mjs.map +1 -0
- package/es/components/tour/src/helper.d.ts +37 -0
- package/es/components/tour/src/helper.mjs +234 -0
- package/es/components/tour/src/helper.mjs.map +1 -0
- package/es/components/tour/src/mask.d.ts +15 -0
- package/es/components/tour/src/mask.mjs +24 -0
- package/es/components/tour/src/mask.mjs.map +1 -0
- package/es/components/tour/src/mask.vue.d.ts +68 -0
- package/es/components/tour/src/mask2.mjs +117 -0
- package/es/components/tour/src/mask2.mjs.map +1 -0
- package/es/components/tour/src/step.d.ts +62 -0
- package/es/components/tour/src/step.mjs +48 -0
- package/es/components/tour/src/step.mjs.map +1 -0
- package/es/components/tour/src/step.vue.d.ts +545 -0
- package/es/components/tour/src/step2.mjs +163 -0
- package/es/components/tour/src/step2.mjs.map +1 -0
- package/es/components/tour/src/steps.d.ts +19 -0
- package/es/components/tour/src/steps.mjs +52 -0
- package/es/components/tour/src/steps.mjs.map +1 -0
- package/es/components/tour/src/tour.d.ts +55 -0
- package/es/components/tour/src/tour.mjs +75 -0
- package/es/components/tour/src/tour.mjs.map +1 -0
- package/es/components/tour/src/tour.vue.d.ts +6535 -0
- package/es/components/tour/src/tour2.mjs +152 -0
- package/es/components/tour/src/tour2.mjs.map +1 -0
- package/es/components/tour/src/types.d.ts +32 -0
- package/es/components/tour/src/types.mjs +2 -0
- package/es/components/tour/src/types.mjs.map +1 -0
- package/es/components/tour/style/css.d.ts +3 -0
- package/es/components/tour/style/css.mjs +4 -0
- package/es/components/tour/style/css.mjs.map +1 -0
- package/es/components/tour/style/index.d.ts +3 -0
- package/es/components/tour/style/index.mjs +4 -0
- package/es/components/tour/style/index.mjs.map +1 -0
- package/es/components/tour-step/style/css.d.ts +0 -0
- package/es/components/tour-step/style/css.mjs +2 -0
- package/es/components/tour-step/style/css.mjs.map +1 -0
- package/es/components/tour-step/style/index.d.ts +0 -0
- package/es/components/tour-step/style/index.mjs +2 -0
- package/es/components/tour-step/style/index.mjs.map +1 -0
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-content.mjs +33 -194
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +194 -33
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +4 -2
- package/es/index.mjs.map +1 -1
- package/es/locale/lang/de.d.ts +5 -0
- package/es/locale/lang/de.mjs +5 -0
- package/es/locale/lang/de.mjs.map +1 -1
- package/es/locale/lang/en.d.ts +5 -0
- package/es/locale/lang/en.mjs +5 -0
- package/es/locale/lang/en.mjs.map +1 -1
- package/es/locale/lang/eu.d.ts +5 -0
- package/es/locale/lang/eu.mjs +5 -0
- package/es/locale/lang/eu.mjs.map +1 -1
- package/es/locale/lang/fa.d.ts +5 -0
- package/es/locale/lang/fa.mjs +5 -0
- package/es/locale/lang/fa.mjs.map +1 -1
- package/es/locale/lang/ja.d.ts +5 -0
- package/es/locale/lang/ja.mjs +5 -0
- package/es/locale/lang/ja.mjs.map +1 -1
- package/es/locale/lang/ko.d.ts +5 -0
- package/es/locale/lang/ko.mjs +5 -0
- package/es/locale/lang/ko.mjs.map +1 -1
- package/es/locale/lang/lt.d.ts +5 -0
- package/es/locale/lang/lt.mjs +5 -0
- package/es/locale/lang/lt.mjs.map +1 -1
- package/es/locale/lang/pl.d.ts +5 -0
- package/es/locale/lang/pl.mjs +5 -0
- package/es/locale/lang/pl.mjs.map +1 -1
- package/es/locale/lang/pt-br.d.ts +5 -0
- package/es/locale/lang/pt-br.mjs +5 -0
- package/es/locale/lang/pt-br.mjs.map +1 -1
- package/es/locale/lang/ru.d.ts +5 -0
- package/es/locale/lang/ru.mjs +5 -0
- package/es/locale/lang/ru.mjs.map +1 -1
- package/es/locale/lang/sv.d.ts +5 -0
- package/es/locale/lang/sv.mjs +5 -0
- package/es/locale/lang/sv.mjs.map +1 -1
- package/es/locale/lang/th.d.ts +5 -0
- package/es/locale/lang/th.mjs +5 -0
- package/es/locale/lang/th.mjs.map +1 -1
- package/es/locale/lang/uk.d.ts +5 -0
- package/es/locale/lang/uk.mjs +5 -0
- package/es/locale/lang/uk.mjs.map +1 -1
- package/es/locale/lang/vi.d.ts +5 -0
- package/es/locale/lang/vi.mjs +5 -0
- package/es/locale/lang/vi.mjs.map +1 -1
- package/es/locale/lang/zh-cn.d.ts +5 -0
- package/es/locale/lang/zh-cn.mjs +5 -0
- package/es/locale/lang/zh-cn.mjs.map +1 -1
- package/es/locale/lang/zh-tw.d.ts +5 -0
- package/es/locale/lang/zh-tw.mjs +5 -0
- package/es/locale/lang/zh-tw.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/component.js +4 -1
- package/lib/component.js.map +1 -1
- package/lib/components/carousel/index.d.ts +6 -0
- package/lib/components/carousel/src/carousel-item.vue.d.ts +3 -0
- package/lib/components/carousel/src/carousel-item2.js +12 -11
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +21 -15
- package/lib/components/index.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +9 -66
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +66 -9
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/tour/index.d.ts +7626 -0
- package/lib/components/tour/index.js +21 -0
- package/lib/components/tour/index.js.map +1 -0
- package/lib/components/tour/src/content.d.ts +15 -0
- package/lib/components/tour/src/content.js +54 -0
- package/lib/components/tour/src/content.js.map +1 -0
- package/lib/components/tour/src/content.vue.d.ts +95 -0
- package/lib/components/tour/src/content2.js +69 -0
- package/lib/components/tour/src/content2.js.map +1 -0
- package/lib/components/tour/src/helper.d.ts +37 -0
- package/lib/components/tour/src/helper.js +242 -0
- package/lib/components/tour/src/helper.js.map +1 -0
- package/lib/components/tour/src/mask.d.ts +15 -0
- package/lib/components/tour/src/mask.js +28 -0
- package/lib/components/tour/src/mask.js.map +1 -0
- package/lib/components/tour/src/mask.vue.d.ts +68 -0
- package/lib/components/tour/src/mask2.js +121 -0
- package/lib/components/tour/src/mask2.js.map +1 -0
- package/lib/components/tour/src/step.d.ts +62 -0
- package/lib/components/tour/src/step.js +53 -0
- package/lib/components/tour/src/step.js.map +1 -0
- package/lib/components/tour/src/step.vue.d.ts +545 -0
- package/lib/components/tour/src/step2.js +167 -0
- package/lib/components/tour/src/step2.js.map +1 -0
- package/lib/components/tour/src/steps.d.ts +19 -0
- package/lib/components/tour/src/steps.js +56 -0
- package/lib/components/tour/src/steps.js.map +1 -0
- package/lib/components/tour/src/tour.d.ts +55 -0
- package/lib/components/tour/src/tour.js +80 -0
- package/lib/components/tour/src/tour.js.map +1 -0
- package/lib/components/tour/src/tour.vue.d.ts +6535 -0
- package/lib/components/tour/src/tour2.js +156 -0
- package/lib/components/tour/src/tour2.js.map +1 -0
- package/lib/components/tour/src/types.d.ts +32 -0
- package/lib/components/tour/src/types.js +3 -0
- package/lib/components/tour/src/types.js.map +1 -0
- package/lib/components/tour/style/css.d.ts +3 -0
- package/lib/components/tour/style/css.js +7 -0
- package/lib/components/tour/style/css.js.map +1 -0
- package/lib/components/tour/style/index.d.ts +3 -0
- package/lib/components/tour/style/index.js +7 -0
- package/lib/components/tour/style/index.js.map +1 -0
- package/lib/components/tour-step/style/css.d.ts +0 -0
- package/lib/components/tour-step/style/css.js +3 -0
- package/lib/components/tour-step/style/css.js.map +1 -0
- package/lib/components/tour-step/style/index.d.ts +0 -0
- package/lib/components/tour-step/style/index.js +3 -0
- package/lib/components/tour-step/style/index.js.map +1 -0
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-content.js +31 -192
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +192 -31
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +112 -106
- package/lib/index.js.map +1 -1
- package/lib/locale/lang/de.d.ts +5 -0
- package/lib/locale/lang/de.js +5 -0
- package/lib/locale/lang/de.js.map +1 -1
- package/lib/locale/lang/en.d.ts +5 -0
- package/lib/locale/lang/en.js +5 -0
- package/lib/locale/lang/en.js.map +1 -1
- package/lib/locale/lang/eu.d.ts +5 -0
- package/lib/locale/lang/eu.js +5 -0
- package/lib/locale/lang/eu.js.map +1 -1
- package/lib/locale/lang/fa.d.ts +5 -0
- package/lib/locale/lang/fa.js +5 -0
- package/lib/locale/lang/fa.js.map +1 -1
- package/lib/locale/lang/ja.d.ts +5 -0
- package/lib/locale/lang/ja.js +5 -0
- package/lib/locale/lang/ja.js.map +1 -1
- package/lib/locale/lang/ko.d.ts +5 -0
- package/lib/locale/lang/ko.js +5 -0
- package/lib/locale/lang/ko.js.map +1 -1
- package/lib/locale/lang/lt.d.ts +5 -0
- package/lib/locale/lang/lt.js +5 -0
- package/lib/locale/lang/lt.js.map +1 -1
- package/lib/locale/lang/pl.d.ts +5 -0
- package/lib/locale/lang/pl.js +5 -0
- package/lib/locale/lang/pl.js.map +1 -1
- package/lib/locale/lang/pt-br.d.ts +5 -0
- package/lib/locale/lang/pt-br.js +5 -0
- package/lib/locale/lang/pt-br.js.map +1 -1
- package/lib/locale/lang/ru.d.ts +5 -0
- package/lib/locale/lang/ru.js +5 -0
- package/lib/locale/lang/ru.js.map +1 -1
- package/lib/locale/lang/sv.d.ts +5 -0
- package/lib/locale/lang/sv.js +5 -0
- package/lib/locale/lang/sv.js.map +1 -1
- package/lib/locale/lang/th.d.ts +5 -0
- package/lib/locale/lang/th.js +5 -0
- package/lib/locale/lang/th.js.map +1 -1
- package/lib/locale/lang/uk.d.ts +5 -0
- package/lib/locale/lang/uk.js +5 -0
- package/lib/locale/lang/uk.js.map +1 -1
- package/lib/locale/lang/vi.d.ts +5 -0
- package/lib/locale/lang/vi.js +5 -0
- package/lib/locale/lang/vi.js.map +1 -1
- package/lib/locale/lang/zh-cn.d.ts +5 -0
- package/lib/locale/lang/zh-cn.js +5 -0
- package/lib/locale/lang/zh-cn.js.map +1 -1
- package/lib/locale/lang/zh-tw.d.ts +5 -0
- package/lib/locale/lang/zh-tw.js +5 -0
- package/lib/locale/lang/zh-tw.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-tour.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +20 -0
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/tour.scss +166 -0
- package/web-types.json +1 -1
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$2 = require('../../button/index.js');
|
|
7
|
+
var index$1 = require('../../icon/index.js');
|
|
8
|
+
require('../../../utils/index.js');
|
|
9
|
+
require('../../../hooks/index.js');
|
|
10
|
+
var step = require('./step.js');
|
|
11
|
+
var helper = require('./helper.js');
|
|
12
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
+
var icon = require('../../../utils/vue/icon.js');
|
|
14
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
15
|
+
|
|
16
|
+
const __default__ = vue.defineComponent({
|
|
17
|
+
name: "ElTourStep"
|
|
18
|
+
});
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
20
|
+
...__default__,
|
|
21
|
+
props: step.tourStepProps,
|
|
22
|
+
emits: step.tourStepEmits,
|
|
23
|
+
setup(__props, { emit }) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const { Close } = icon.CloseComponents;
|
|
26
|
+
const { t } = index.useLocale();
|
|
27
|
+
const {
|
|
28
|
+
current,
|
|
29
|
+
total,
|
|
30
|
+
showClose,
|
|
31
|
+
closeIcon,
|
|
32
|
+
mergedType,
|
|
33
|
+
ns,
|
|
34
|
+
slots: tourSlots,
|
|
35
|
+
updateModelValue,
|
|
36
|
+
onClose: tourOnClose,
|
|
37
|
+
onFinish: tourOnFinish,
|
|
38
|
+
onChange
|
|
39
|
+
} = vue.inject(helper.tourKey);
|
|
40
|
+
const mergedShowClose = vue.computed(() => {
|
|
41
|
+
var _a;
|
|
42
|
+
return (_a = props.showClose) != null ? _a : showClose.value;
|
|
43
|
+
});
|
|
44
|
+
const mergedCloseIcon = vue.computed(() => {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
return (_b = (_a = props.closeIcon) != null ? _a : closeIcon.value) != null ? _b : Close;
|
|
47
|
+
});
|
|
48
|
+
const onPrev = () => {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
current.value -= 1;
|
|
51
|
+
if ((_a = props.prevButtonProps) == null ? void 0 : _a.onClick) {
|
|
52
|
+
(_b = props.prevButtonProps) == null ? void 0 : _b.onClick();
|
|
53
|
+
}
|
|
54
|
+
onChange();
|
|
55
|
+
};
|
|
56
|
+
const onNext = () => {
|
|
57
|
+
var _a;
|
|
58
|
+
if (current.value >= total.value - 1) {
|
|
59
|
+
onFinish();
|
|
60
|
+
} else {
|
|
61
|
+
current.value += 1;
|
|
62
|
+
}
|
|
63
|
+
if ((_a = props.nextButtonProps) == null ? void 0 : _a.onClick) {
|
|
64
|
+
props.nextButtonProps.onClick();
|
|
65
|
+
}
|
|
66
|
+
onChange();
|
|
67
|
+
};
|
|
68
|
+
const onFinish = () => {
|
|
69
|
+
onClose();
|
|
70
|
+
tourOnFinish();
|
|
71
|
+
};
|
|
72
|
+
const onClose = () => {
|
|
73
|
+
updateModelValue(false);
|
|
74
|
+
tourOnClose();
|
|
75
|
+
emit("close");
|
|
76
|
+
};
|
|
77
|
+
return (_ctx, _cache) => {
|
|
78
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
79
|
+
vue.unref(mergedShowClose) ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
80
|
+
key: 0,
|
|
81
|
+
"aria-label": "Close",
|
|
82
|
+
class: vue.normalizeClass(vue.unref(ns).e("closebtn")),
|
|
83
|
+
type: "button",
|
|
84
|
+
onClick: onClose
|
|
85
|
+
}, [
|
|
86
|
+
vue.createVNode(vue.unref(index$1.ElIcon), {
|
|
87
|
+
class: vue.normalizeClass(vue.unref(ns).e("close"))
|
|
88
|
+
}, {
|
|
89
|
+
default: vue.withCtx(() => [
|
|
90
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(mergedCloseIcon))))
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 8, ["class"])
|
|
94
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
95
|
+
vue.createElementVNode("header", {
|
|
96
|
+
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
97
|
+
}, [
|
|
98
|
+
vue.renderSlot(_ctx.$slots, "header", {}, () => [
|
|
99
|
+
vue.createElementVNode("span", {
|
|
100
|
+
role: "heading",
|
|
101
|
+
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
102
|
+
}, vue.toDisplayString(_ctx.title), 3)
|
|
103
|
+
])
|
|
104
|
+
], 2),
|
|
105
|
+
vue.createElementVNode("div", {
|
|
106
|
+
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
107
|
+
}, [
|
|
108
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
109
|
+
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.description), 1)
|
|
110
|
+
])
|
|
111
|
+
], 2),
|
|
112
|
+
vue.createElementVNode("footer", {
|
|
113
|
+
class: vue.normalizeClass(vue.unref(ns).e("footer"))
|
|
114
|
+
}, [
|
|
115
|
+
vue.createElementVNode("div", {
|
|
116
|
+
class: vue.normalizeClass(vue.unref(ns).b("indicators"))
|
|
117
|
+
}, [
|
|
118
|
+
vue.unref(tourSlots).indicators ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tourSlots).indicators), {
|
|
119
|
+
key: 0,
|
|
120
|
+
current: vue.unref(current),
|
|
121
|
+
total: vue.unref(total)
|
|
122
|
+
}, null, 8, ["current", "total"])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(vue.unref(total), (item, index) => {
|
|
123
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
124
|
+
key: item,
|
|
125
|
+
class: vue.normalizeClass([vue.unref(ns).b("indicator"), index === vue.unref(current) ? "is-active" : ""])
|
|
126
|
+
}, null, 2);
|
|
127
|
+
}), 128))
|
|
128
|
+
], 2),
|
|
129
|
+
vue.createElementVNode("div", {
|
|
130
|
+
class: vue.normalizeClass(vue.unref(ns).b("buttons"))
|
|
131
|
+
}, [
|
|
132
|
+
vue.unref(current) > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElButton), vue.mergeProps({
|
|
133
|
+
key: 0,
|
|
134
|
+
size: "small",
|
|
135
|
+
type: vue.unref(mergedType)
|
|
136
|
+
}, _ctx.prevButtonProps, { onClick: onPrev }), {
|
|
137
|
+
default: vue.withCtx(() => {
|
|
138
|
+
var _a, _b;
|
|
139
|
+
return [
|
|
140
|
+
vue.createTextVNode(vue.toDisplayString((_b = (_a = _ctx.prevButtonProps) == null ? void 0 : _a.children) != null ? _b : vue.unref(t)("el.tour.previous")), 1)
|
|
141
|
+
];
|
|
142
|
+
}),
|
|
143
|
+
_: 1
|
|
144
|
+
}, 16, ["type"])) : vue.createCommentVNode("v-if", true),
|
|
145
|
+
vue.unref(current) <= vue.unref(total) - 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElButton), vue.mergeProps({
|
|
146
|
+
key: 1,
|
|
147
|
+
size: "small",
|
|
148
|
+
type: vue.unref(mergedType) === "primary" ? "default" : "primary"
|
|
149
|
+
}, _ctx.nextButtonProps, { onClick: onNext }), {
|
|
150
|
+
default: vue.withCtx(() => {
|
|
151
|
+
var _a, _b;
|
|
152
|
+
return [
|
|
153
|
+
vue.createTextVNode(vue.toDisplayString(((_b = (_a = _ctx.nextButtonProps) == null ? void 0 : _a.children) != null ? _b : vue.unref(current) === vue.unref(total) - 1) ? vue.unref(t)("el.tour.finish") : vue.unref(t)("el.tour.next")), 1)
|
|
154
|
+
];
|
|
155
|
+
}),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 16, ["type"])) : vue.createCommentVNode("v-if", true)
|
|
158
|
+
], 2)
|
|
159
|
+
], 2)
|
|
160
|
+
], 64);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
var TourStep = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "step.vue"]]);
|
|
165
|
+
|
|
166
|
+
exports["default"] = TourStep;
|
|
167
|
+
//# sourceMappingURL=step2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step2.js","sources":["../../../../../../packages/components/tour/src/step.vue"],"sourcesContent":["<template>\n <button\n v-if=\"mergedShowClose\"\n aria-label=\"Close\"\n :class=\"ns.e('closebtn')\"\n type=\"button\"\n @click=\"onClose\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"mergedCloseIcon\" />\n </el-icon>\n </button>\n <header :class=\"ns.e('header')\">\n <slot name=\"header\">\n <span role=\"heading\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n </header>\n <div :class=\"ns.e('body')\">\n <slot>\n <span>{{ description }}</span>\n </slot>\n </div>\n <footer :class=\"ns.e('footer')\">\n <div :class=\"ns.b('indicators')\">\n <component\n :is=\"tourSlots.indicators\"\n v-if=\"tourSlots.indicators\"\n :current=\"current\"\n :total=\"total\"\n />\n <template v-else>\n <span\n v-for=\"(item, index) in total\"\n :key=\"item\"\n :class=\"[ns.b('indicator'), index === current ? 'is-active' : '']\"\n />\n </template>\n </div>\n <div :class=\"ns.b('buttons')\">\n <el-button\n v-if=\"current > 0\"\n size=\"small\"\n :type=\"mergedType\"\n v-bind=\"prevButtonProps\"\n @click=\"onPrev\"\n >\n {{ prevButtonProps?.children ?? t('el.tour.previous') }}\n </el-button>\n <el-button\n v-if=\"current <= total - 1\"\n size=\"small\"\n :type=\"mergedType === 'primary' ? 'default' : 'primary'\"\n v-bind=\"nextButtonProps\"\n @click=\"onNext\"\n >\n {{\n nextButtonProps?.children ?? current === total - 1\n ? t('el.tour.finish')\n : t('el.tour.next')\n }}\n </el-button>\n </div>\n </footer>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElButton } from '@element-plus/components/button'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CloseComponents } from '@element-plus/utils'\nimport { useLocale } from '@element-plus/hooks'\nimport { tourStepEmits, tourStepProps } from './step'\nimport { tourKey } from './helper'\n\ndefineOptions({\n name: 'ElTourStep',\n})\n\nconst props = defineProps(tourStepProps)\nconst emit = defineEmits(tourStepEmits)\n\nconst { Close } = CloseComponents\n\nconst { t } = useLocale()\n\nconst {\n current,\n total,\n showClose,\n closeIcon,\n mergedType,\n ns,\n slots: tourSlots,\n updateModelValue,\n onClose: tourOnClose,\n onFinish: tourOnFinish,\n onChange,\n} = inject(tourKey)!\n\nconst mergedShowClose = computed(() => props.showClose ?? showClose.value)\nconst mergedCloseIcon = computed(\n () => props.closeIcon ?? closeIcon.value ?? Close\n)\n\nconst onPrev = () => {\n current.value -= 1\n if (props.prevButtonProps?.onClick) {\n props.prevButtonProps?.onClick()\n }\n onChange()\n}\n\nconst onNext = () => {\n if (current.value >= total.value - 1) {\n onFinish()\n } else {\n current.value += 1\n }\n if (props.nextButtonProps?.onClick) {\n props.nextButtonProps.onClick()\n }\n onChange()\n}\n\nconst onFinish = () => {\n onClose()\n tourOnFinish()\n}\n\nconst onClose = () => {\n updateModelValue(false)\n tourOnClose()\n emit('close')\n}\n</script>\n"],"names":["CloseComponents","useLocale","inject","tourKey","computed"],"mappings":";;;;;;;;;;;;;;;uCA4Ec,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,EAAE,KAAU,EAAA,GAAAA,oBAAA,CAAA;AAElB,IAAM,MAAA,EAAE,MAAMC,eAAU,EAAA,CAAA;AAExB,IAAM,MAAA;AAAA,MACJ,OAAA;AAAA,MACA,KAAA;AAAA,MACA,SAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,EAAA;AAAA,MACA,KAAO,EAAA,SAAA;AAAA,MACP,gBAAA;AAAA,MACA,OAAS,EAAA,WAAA;AAAA,MACT,QAAU,EAAA,YAAA;AAAA,MACV,QAAA;AAAA,KAAA,GACEC,WAAOC,cAAO,CAAA,CAAA;AAElB,IAAA,MAAM,kBAAkBC,YAAS,CAAA,MAAM;AACvC,MAAA,IAAM;AAIN,MAAA,aAAe,KAAM,CAAA,SAAA,KAAA,IAAA,GAAA,EAAA,GAAA,SAAA,CAAA,KAAA,CAAA;AACnB,KAAA,CAAA,CAAA;AACA,IAAI,MAAA,8BAAgC,CAAA,MAAA;AAClC,MAAA,IAAA,EAAA,EAAM;AAAyB,MACjC,OAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,SAAA,KAAA,IAAA,GAAA,EAAA,GAAA,SAAA,CAAA,KAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA;AACA,KAAS,CAAA,CAAA;AAAA,IACX,MAAA,MAAA,GAAA,MAAA;AAEA,MAAA,IAAM;AACJ,MAAA,OAAY,CAAA,KAAA,IAAA,CAAA,CAAA;AACV,MAAS,IAAA,CAAA,EAAA,GAAA,KAAA,CAAA,eAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,OAAA,EAAA;AAAA,QACJ,CAAA,EAAA,GAAA,KAAA,CAAA,eAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,OAAA,EAAA,CAAA;AACL,OAAA;AAAiB,MACnB,QAAA,EAAA,CAAA;AACA,KAAI,CAAA;AACF,IAAA,MAAA;AAA8B,MAChC,IAAA,EAAA,CAAA;AACA,MAAS,IAAA,OAAA,CAAA,KAAA,IAAA,KAAA,CAAA,KAAA,GAAA,CAAA,EAAA;AAAA,QACX,QAAA,EAAA,CAAA;AAEA,OAAA;AACE,QAAQ,OAAA,CAAA,KAAA,IAAA,CAAA,CAAA;AACR,OAAa;AAAA,MACf,IAAA,CAAA,EAAA,GAAA,KAAA,CAAA,eAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,OAAA,EAAA;AAEA,QAAA,qBAAsB,CAAA,OAAA,EAAA,CAAA;AACpB,OAAA;AACA,MAAY,QAAA,EAAA,CAAA;AACZ,KAAA,CAAA;AAAY,IACd,MAAA,QAAA,GAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
current: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}> | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update-steps"[], "update-steps", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
current: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
}>> & {
|
|
15
|
+
"onUpdate-steps"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
current: number;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../utils/index.js');
|
|
7
|
+
var helper = require('./helper.js');
|
|
8
|
+
var shared = require('@vue/shared');
|
|
9
|
+
var vnode = require('../../../utils/vue/vnode.js');
|
|
10
|
+
|
|
11
|
+
var ElTourSteps = vue.defineComponent({
|
|
12
|
+
name: "ElTourSteps",
|
|
13
|
+
props: {
|
|
14
|
+
current: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: 0
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["update-steps"],
|
|
20
|
+
setup(props, { slots, emit }) {
|
|
21
|
+
let cachedSteps = [];
|
|
22
|
+
return () => {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
25
|
+
const filteredSteps = [];
|
|
26
|
+
const result = [];
|
|
27
|
+
function filterSteps(children2) {
|
|
28
|
+
if (!shared.isArray(children2))
|
|
29
|
+
return;
|
|
30
|
+
children2.forEach((item) => {
|
|
31
|
+
var _a2;
|
|
32
|
+
const name = (_a2 = (item == null ? void 0 : item.type) || {}) == null ? void 0 : _a2.name;
|
|
33
|
+
if (name === "ElTourStep") {
|
|
34
|
+
const booleanKeys = ["showArrow", "mask", "scrollIntoViewOptions"];
|
|
35
|
+
filteredSteps.push(helper.getNormalizedProps(item, booleanKeys));
|
|
36
|
+
result.push(item);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (children.length) {
|
|
41
|
+
filterSteps(vnode.flattedChildren((_b = children[0]) == null ? void 0 : _b.children));
|
|
42
|
+
}
|
|
43
|
+
if (!helper.isSameSteps(filteredSteps, cachedSteps)) {
|
|
44
|
+
cachedSteps = filteredSteps;
|
|
45
|
+
emit("update-steps", filteredSteps);
|
|
46
|
+
}
|
|
47
|
+
if (result.length) {
|
|
48
|
+
return result[props.current];
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
exports["default"] = ElTourSteps;
|
|
56
|
+
//# sourceMappingURL=steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.js","sources":["../../../../../../packages/components/tour/src/steps.ts"],"sourcesContent":["import { defineComponent } from 'vue'\nimport { flattedChildren, isArray } from '@element-plus/utils'\nimport { getNormalizedProps, isSameSteps } from './helper'\nimport type { FlattenVNodes } from '@element-plus/utils'\nimport type { Component, VNode } from 'vue'\n\nexport default defineComponent({\n name: 'ElTourSteps',\n props: {\n current: {\n type: Number,\n default: 0,\n },\n },\n emits: ['update-steps'],\n setup(props, { slots, emit }) {\n let cachedSteps: any[] = []\n\n return () => {\n const children = slots.default?.()!\n const filteredSteps: any[] = []\n const result: VNode[] = []\n\n function filterSteps(children?: FlattenVNodes) {\n if (!isArray(children)) return\n ;(children as VNode[]).forEach((item) => {\n const name = ((item?.type || {}) as Component)?.name\n\n if (name === 'ElTourStep') {\n const booleanKeys = ['showArrow', 'mask', 'scrollIntoViewOptions']\n filteredSteps.push(getNormalizedProps(item, booleanKeys))\n result.push(item)\n }\n })\n }\n\n if (children.length) {\n filterSteps(flattedChildren(children![0]?.children))\n }\n\n if (!isSameSteps(filteredSteps, cachedSteps)) {\n cachedSteps = filteredSteps\n emit('update-steps', filteredSteps)\n }\n\n if (result.length) {\n return result[props.current]\n }\n return null\n }\n },\n})\n"],"names":["defineComponent","isArray","getNormalizedProps","flattedChildren","isSameSteps"],"mappings":";;;;;;;;;;AAGA,kBAAeA,mBAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,aAAa;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,OAAO,EAAE;AACb,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,OAAO,EAAE,CAAC;AAChB,KAAK;AACL,GAAG;AACH,EAAE,KAAK,EAAE,CAAC,cAAc,CAAC;AACzB,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;AAChC,IAAI,IAAI,WAAW,GAAG,EAAE,CAAC;AACzB,IAAI,OAAO,MAAM;AACjB,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;AACjB,MAAM,MAAM,QAAQ,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC9E,MAAM,MAAM,aAAa,GAAG,EAAE,CAAC;AAC/B,MAAM,MAAM,MAAM,GAAG,EAAE,CAAC;AACxB,MAAM,SAAS,WAAW,CAAC,SAAS,EAAE;AACtC,QAAQ,IAAI,CAACC,cAAO,CAAC,SAAS,CAAC;AAC/B,UAAU,OAAO;AACjB,QAAQ,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK;AACpC,UAAU,IAAI,GAAG,CAAC;AAClB,UAAU,MAAM,IAAI,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,KAAK,EAAE,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC;AACrG,UAAU,IAAI,IAAI,KAAK,YAAY,EAAE;AACrC,YAAY,MAAM,WAAW,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAC/E,YAAY,aAAa,CAAC,IAAI,CAACC,yBAAkB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;AACtE,YAAY,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9B,WAAW;AACX,SAAS,CAAC,CAAC;AACX,OAAO;AACP,MAAM,IAAI,QAAQ,CAAC,MAAM,EAAE;AAC3B,QAAQ,WAAW,CAACC,qBAAe,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACxF,OAAO;AACP,MAAM,IAAI,CAACC,kBAAW,CAAC,aAAa,EAAE,WAAW,CAAC,EAAE;AACpD,QAAQ,WAAW,GAAG,aAAa,CAAC;AACpC,QAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;AAC5C,OAAO;AACP,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE;AACzB,QAAQ,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACrC,OAAO;AACP,MAAM,OAAO,IAAI,CAAC;AAClB,KAAK,CAAC;AACN,GAAG;AACH,CAAC,CAAC;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { CSSProperties, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type Tour from './tour.vue';
|
|
3
|
+
import type { TourGap, TourMask } from './types';
|
|
4
|
+
export declare const tourProps: {
|
|
5
|
+
modelValue: BooleanConstructor;
|
|
6
|
+
current: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
7
|
+
showArrow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
8
|
+
showClose: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
9
|
+
closeIcon: {
|
|
10
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
|
+
__epPropKey: true;
|
|
14
|
+
};
|
|
15
|
+
placement: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement) | ((new (...args: any[]) => import("@floating-ui/core").Placement & {}) | (() => import("@floating-ui/core").Placement))[], "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
|
|
16
|
+
contentStyle: {
|
|
17
|
+
readonly type: import("vue").PropType<CSSProperties>;
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
|
+
__epPropKey: true;
|
|
21
|
+
};
|
|
22
|
+
mask: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => TourMask & {}) | (() => TourMask) | ((new (...args: any[]) => TourMask & {}) | (() => TourMask))[], unknown, unknown, boolean, boolean>;
|
|
23
|
+
gap: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => TourGap) | (() => TourGap) | ((new (...args: any[]) => TourGap) | (() => TourGap))[], unknown, unknown, () => {
|
|
24
|
+
offset: number;
|
|
25
|
+
radius: number;
|
|
26
|
+
}, boolean>;
|
|
27
|
+
zIndex: {
|
|
28
|
+
readonly type: import("vue").PropType<number>;
|
|
29
|
+
readonly required: false;
|
|
30
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
31
|
+
__epPropKey: true;
|
|
32
|
+
};
|
|
33
|
+
scrollIntoViewOptions: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (boolean | ScrollIntoViewOptions) & {}) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => (boolean | ScrollIntoViewOptions) & {}) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, () => {
|
|
34
|
+
block: string;
|
|
35
|
+
}, boolean>;
|
|
36
|
+
type: {
|
|
37
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => ("primary" | "defalut") & {}) | (() => "primary" | "defalut") | ((new (...args: any[]) => ("primary" | "defalut") & {}) | (() => "primary" | "defalut"))[], unknown, unknown>>;
|
|
38
|
+
readonly required: false;
|
|
39
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
|
+
__epPropKey: true;
|
|
41
|
+
};
|
|
42
|
+
appendTo: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown, string, boolean>;
|
|
43
|
+
closeOnPressEscape: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
44
|
+
targetAreaClickable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
45
|
+
};
|
|
46
|
+
export declare type TourProps = ExtractPropTypes<typeof tourProps>;
|
|
47
|
+
export declare type TourInstance = InstanceType<typeof Tour>;
|
|
48
|
+
export declare const tourEmits: {
|
|
49
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
50
|
+
"update:current": (current: number) => boolean;
|
|
51
|
+
close: (current: number) => boolean;
|
|
52
|
+
finish: () => boolean;
|
|
53
|
+
change: (current: number) => boolean;
|
|
54
|
+
};
|
|
55
|
+
export declare type TourEmits = typeof tourEmits;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
require('../../../constants/index.js');
|
|
7
|
+
var content = require('./content.js');
|
|
8
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
9
|
+
var icon = require('../../../utils/vue/icon.js');
|
|
10
|
+
var event = require('../../../constants/event.js');
|
|
11
|
+
var types = require('../../../utils/types.js');
|
|
12
|
+
|
|
13
|
+
const tourProps = runtime.buildProps({
|
|
14
|
+
modelValue: Boolean,
|
|
15
|
+
current: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 0
|
|
18
|
+
},
|
|
19
|
+
showArrow: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: true
|
|
22
|
+
},
|
|
23
|
+
showClose: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
closeIcon: {
|
|
28
|
+
type: icon.iconPropType
|
|
29
|
+
},
|
|
30
|
+
placement: content.tourContentProps.placement,
|
|
31
|
+
contentStyle: {
|
|
32
|
+
type: runtime.definePropType([Object])
|
|
33
|
+
},
|
|
34
|
+
mask: {
|
|
35
|
+
type: runtime.definePropType([Boolean, Object]),
|
|
36
|
+
default: true
|
|
37
|
+
},
|
|
38
|
+
gap: {
|
|
39
|
+
type: runtime.definePropType(Object),
|
|
40
|
+
default: () => ({
|
|
41
|
+
offset: 6,
|
|
42
|
+
radius: 2
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
zIndex: {
|
|
46
|
+
type: Number
|
|
47
|
+
},
|
|
48
|
+
scrollIntoViewOptions: {
|
|
49
|
+
type: runtime.definePropType([Boolean, Object]),
|
|
50
|
+
default: () => ({
|
|
51
|
+
block: "center"
|
|
52
|
+
})
|
|
53
|
+
},
|
|
54
|
+
type: {
|
|
55
|
+
type: runtime.definePropType(String)
|
|
56
|
+
},
|
|
57
|
+
appendTo: {
|
|
58
|
+
type: runtime.definePropType([String, Object]),
|
|
59
|
+
default: "body"
|
|
60
|
+
},
|
|
61
|
+
closeOnPressEscape: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: true
|
|
64
|
+
},
|
|
65
|
+
targetAreaClickable: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: true
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
const tourEmits = {
|
|
71
|
+
[event.UPDATE_MODEL_EVENT]: (value) => types.isBoolean(value),
|
|
72
|
+
["update:current"]: (current) => types.isNumber(current),
|
|
73
|
+
close: (current) => types.isNumber(current),
|
|
74
|
+
finish: () => true,
|
|
75
|
+
change: (current) => types.isNumber(current)
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
exports.tourEmits = tourEmits;
|
|
79
|
+
exports.tourProps = tourProps;
|
|
80
|
+
//# sourceMappingURL=tour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tour.js","sources":["../../../../../../packages/components/tour/src/tour.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isBoolean,\n isNumber,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { tourContentProps } from './content'\nimport type { CSSProperties, ExtractPropTypes } from 'vue'\nimport type Tour from './tour.vue'\nimport type { TourGap, TourMask } from './types'\n\nexport const tourProps = buildProps({\n /**\n * @description open tour\n */\n modelValue: Boolean,\n /**\n * @description what is the current step\n */\n current: {\n type: Number,\n default: 0,\n },\n /**\n * @description whether to show the arrow\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description custom close icon\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description position of the guide card relative to the target element\n */\n placement: tourContentProps.placement,\n /**\n * @description custom style for content\n */\n contentStyle: {\n type: definePropType<CSSProperties>([Object]),\n },\n /**\n * @description whether to enable masking, change mask style and fill color by pass custom props\n */\n mask: {\n type: definePropType<TourMask>([Boolean, Object]),\n default: true,\n },\n /**\n * @description transparent gap between mask and target\n */\n gap: {\n type: definePropType<TourGap>(Object),\n default: () => ({\n offset: 6,\n radius: 2,\n }),\n },\n /**\n * @description tour's zIndex\n */\n zIndex: {\n type: Number,\n },\n /**\n * @description support pass custom scrollIntoView options\n */\n scrollIntoViewOptions: {\n type: definePropType<boolean | ScrollIntoViewOptions>([Boolean, Object]),\n default: () => ({\n block: 'center',\n }),\n },\n /**\n * @description type, affects the background color and text color\n */\n type: {\n type: definePropType<'defalut' | 'primary'>(String),\n },\n /**\n * @description which element the TourContent appends to\n */\n appendTo: {\n type: definePropType<string | HTMLElement>([String, Object]),\n default: 'body',\n },\n /**\n * @description whether the Tour can be closed by pressing ESC\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the target element can be clickable, when using mask\n */\n targetAreaClickable: {\n type: Boolean,\n default: true,\n },\n})\n\nexport type TourProps = ExtractPropTypes<typeof tourProps>\nexport type TourInstance = InstanceType<typeof Tour>\n\nexport const tourEmits = {\n [UPDATE_MODEL_EVENT]: (value: boolean) => isBoolean(value),\n ['update:current']: (current: number) => isNumber(current),\n close: (current: number) => isNumber(current),\n finish: () => true,\n change: (current: number) => isNumber(current),\n}\nexport type TourEmits = typeof tourEmits\n"],"names":["buildProps","iconPropType","tourContentProps","definePropType","UPDATE_MODEL_EVENT","isBoolean","isNumber"],"mappings":";;;;;;;;;;;;AASY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,SAAS,EAAEC,wBAAgB,CAAC,SAAS;AACvC,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAClC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,MAAM,MAAM,EAAE,CAAC;AACf,MAAM,MAAM,EAAE,CAAC;AACf,KAAK,CAAC;AACN,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,qBAAqB,EAAE;AACzB,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,OAAO;AACpB,MAAM,KAAK,EAAE,QAAQ;AACrB,KAAK,CAAC;AACN,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,mBAAmB,EAAE;AACvB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAS,CAAC,KAAK,CAAC;AACnD,EAAE,CAAC,gBAAgB,GAAG,CAAC,OAAO,KAAKC,cAAQ,CAAC,OAAO,CAAC;AACpD,EAAE,KAAK,EAAE,CAAC,OAAO,KAAKA,cAAQ,CAAC,OAAO,CAAC;AACvC,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,MAAM,EAAE,CAAC,OAAO,KAAKA,cAAQ,CAAC,OAAO,CAAC;AACxC;;;;;"}
|