@element-plus/nightly 0.0.20250823 → 0.0.20250825
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.full.js +29 -26
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +29 -26
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
- package/es/components/calendar/src/calendar2.mjs +1 -1
- package/es/components/calendar/src/date-table.mjs +89 -31
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +31 -89
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/src/use-date-table.mjs +1 -1
- package/es/components/cascader/src/cascader.d.ts +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +2 -2
- package/es/components/cascader-panel/src/config.d.ts +2 -2
- package/es/components/cascader-panel/src/config.mjs +1 -1
- package/es/components/cascader-panel/src/config.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue.d.ts +2 -2
- package/es/components/cascader-panel/src/node.d.ts +1 -1
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +2 -4
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/types.d.ts +1 -1
- package/es/components/cascader-panel/src/types.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +28 -23
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +23 -28
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +79 -21
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +21 -79
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/date-picker-panel/src/composables/use-range-picker.d.ts +3 -3
- package/es/components/date-picker-panel/src/composables/use-range-picker.mjs +6 -6
- package/es/components/date-picker-panel/src/composables/use-range-picker.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs +6 -5
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.mjs +4 -4
- package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.mjs +4 -4
- package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +26 -127
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +127 -26
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +27 -202
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +202 -27
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +52 -11
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +11 -52
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/form/src/types.d.ts +1 -62
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +227 -65
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +65 -227
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +16 -16
- package/es/components/input-tag/style/css.d.ts +1 -0
- package/es/components/input-tag/style/css.mjs +1 -0
- package/es/components/input-tag/style/css.mjs.map +1 -1
- package/es/components/input-tag/style/index.d.ts +2 -1
- package/es/components/input-tag/style/index.mjs +1 -0
- package/es/components/input-tag/style/index.mjs.map +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +100 -15
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +15 -100
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -140
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +140 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +97 -16
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +16 -97
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +207 -53
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +53 -207
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.mjs +64 -10
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +10 -64
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/split-panel2.mjs +4 -0
- package/es/components/splitter/src/split-panel2.mjs.map +1 -1
- package/es/components/splitter/src/splitter.mjs +99 -9
- package/es/components/splitter/src/splitter.mjs.map +1 -1
- package/es/components/splitter/src/splitter2.mjs +9 -99
- package/es/components/splitter/src/splitter2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +193 -19
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +19 -193
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +87 -11
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +11 -87
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs +14 -72
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger2.mjs +72 -14
- package/es/components/tooltip/src/trigger2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/mask.mjs +74 -18
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +18 -74
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +189 -44
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +44 -189
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +68 -164
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +164 -68
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/hooks/use-locale/index.d.ts +5 -2
- package/es/hooks/use-locale/index.mjs.map +1 -1
- package/es/index.d.ts +445 -265
- package/es/index.mjs +16 -16
- package/es/utils/typescript.d.ts +61 -0
- package/es/utils/typescript.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/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
- package/lib/components/calendar/src/calendar2.js +1 -1
- package/lib/components/calendar/src/date-table.js +89 -35
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +35 -89
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/src/use-date-table.js +1 -1
- package/lib/components/cascader/src/cascader.d.ts +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +2 -2
- package/lib/components/cascader-panel/src/config.d.ts +2 -2
- package/lib/components/cascader-panel/src/config.js +1 -1
- package/lib/components/cascader-panel/src/config.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue.d.ts +2 -2
- package/lib/components/cascader-panel/src/node.d.ts +1 -1
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +2 -4
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/types.d.ts +1 -1
- package/lib/components/cascader-panel/src/types.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +28 -25
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +25 -28
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +79 -22
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +22 -79
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/date-picker-panel/src/composables/use-range-picker.d.ts +3 -3
- package/lib/components/date-picker-panel/src/composables/use-range-picker.js +6 -6
- package/lib/components/date-picker-panel/src/composables/use-range-picker.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js +6 -5
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.js +4 -4
- package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.js +4 -4
- package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +26 -127
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +127 -26
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +28 -202
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +202 -28
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +52 -11
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +11 -52
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/form/src/types.d.ts +1 -62
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +226 -65
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +65 -226
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +16 -16
- package/lib/components/input-tag/style/css.d.ts +1 -0
- package/lib/components/input-tag/style/css.js +1 -0
- package/lib/components/input-tag/style/css.js.map +1 -1
- package/lib/components/input-tag/style/index.d.ts +2 -1
- package/lib/components/input-tag/style/index.js +1 -0
- package/lib/components/input-tag/style/index.js.map +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +100 -16
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +16 -100
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -139
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +139 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +97 -17
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +17 -97
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +207 -53
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +53 -207
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/scrollbar/src/bar.js +64 -10
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +10 -64
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/split-panel2.js +4 -0
- package/lib/components/splitter/src/split-panel2.js.map +1 -1
- package/lib/components/splitter/src/splitter.js +99 -9
- package/lib/components/splitter/src/splitter.js.map +1 -1
- package/lib/components/splitter/src/splitter2.js +9 -99
- package/lib/components/splitter/src/splitter2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +193 -19
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +19 -193
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +87 -11
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +11 -87
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tooltip/src/trigger.js +14 -72
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger2.js +72 -14
- package/lib/components/tooltip/src/trigger2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/mask.js +74 -18
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +18 -74
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +188 -44
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +44 -188
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer.js +72 -164
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +164 -72
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/hooks/use-locale/index.d.ts +5 -2
- package/lib/hooks/use-locale/index.js.map +1 -1
- package/lib/index.d.ts +445 -265
- package/lib/index.js +16 -16
- package/lib/utils/typescript.d.ts +61 -0
- package/lib/utils/typescript.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/web-types.json +1 -1
@@ -1,49 +1,194 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { defineComponent, inject, watch, computed, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, unref, normalizeClass, createVNode, withCtx, createBlock, resolveDynamicComponent, createCommentVNode, createElementVNode, renderSlot, toDisplayString, renderList, mergeProps, createTextVNode } from 'vue';
|
2
|
+
import { omit } from 'lodash-unified';
|
3
|
+
import { ElButton } from '../../button/index.mjs';
|
4
|
+
import { ElIcon } from '../../icon/index.mjs';
|
5
|
+
import { tourStepProps, tourStepEmits } from './step2.mjs';
|
6
|
+
import { tourKey } from './helper.mjs';
|
7
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
8
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
9
|
+
import { CloseComponents } from '../../../utils/vue/icon.mjs';
|
10
|
+
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
4
11
|
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
12
|
+
const __default__ = defineComponent({
|
13
|
+
name: "ElTourStep"
|
14
|
+
});
|
15
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
16
|
+
...__default__,
|
17
|
+
props: tourStepProps,
|
18
|
+
emits: tourStepEmits,
|
19
|
+
setup(__props, { emit }) {
|
20
|
+
const props = __props;
|
21
|
+
const { Close } = CloseComponents;
|
22
|
+
const { t } = useLocale();
|
23
|
+
const {
|
24
|
+
currentStep,
|
25
|
+
current,
|
26
|
+
total,
|
27
|
+
showClose,
|
28
|
+
closeIcon,
|
29
|
+
mergedType,
|
30
|
+
ns,
|
31
|
+
slots: tourSlots,
|
32
|
+
updateModelValue,
|
33
|
+
onClose: tourOnClose,
|
34
|
+
onFinish: tourOnFinish,
|
35
|
+
onChange
|
36
|
+
} = inject(tourKey);
|
37
|
+
watch(props, (val) => {
|
38
|
+
currentStep.value = val;
|
39
|
+
}, {
|
40
|
+
immediate: true
|
41
|
+
});
|
42
|
+
const mergedShowClose = computed(() => {
|
43
|
+
var _a;
|
44
|
+
return (_a = props.showClose) != null ? _a : showClose.value;
|
45
|
+
});
|
46
|
+
const mergedCloseIcon = computed(() => {
|
47
|
+
var _a, _b;
|
48
|
+
return (_b = (_a = props.closeIcon) != null ? _a : closeIcon.value) != null ? _b : Close;
|
49
|
+
});
|
50
|
+
const filterButtonProps = (btnProps) => {
|
51
|
+
if (!btnProps)
|
52
|
+
return;
|
53
|
+
return omit(btnProps, ["children", "onClick"]);
|
54
|
+
};
|
55
|
+
const onPrev = () => {
|
56
|
+
var _a, _b;
|
57
|
+
current.value -= 1;
|
58
|
+
if ((_a = props.prevButtonProps) == null ? void 0 : _a.onClick) {
|
59
|
+
(_b = props.prevButtonProps) == null ? void 0 : _b.onClick();
|
60
|
+
}
|
61
|
+
onChange();
|
62
|
+
};
|
63
|
+
const onNext = () => {
|
64
|
+
var _a;
|
65
|
+
if (current.value >= total.value - 1) {
|
66
|
+
onFinish();
|
67
|
+
} else {
|
68
|
+
current.value += 1;
|
69
|
+
}
|
70
|
+
if ((_a = props.nextButtonProps) == null ? void 0 : _a.onClick) {
|
71
|
+
props.nextButtonProps.onClick();
|
72
|
+
}
|
73
|
+
onChange();
|
74
|
+
};
|
75
|
+
const onFinish = () => {
|
76
|
+
onClose();
|
77
|
+
tourOnFinish();
|
78
|
+
};
|
79
|
+
const onClose = () => {
|
80
|
+
updateModelValue(false);
|
81
|
+
tourOnClose();
|
82
|
+
emit("close");
|
83
|
+
};
|
84
|
+
const handleKeydown = (e) => {
|
85
|
+
const target = e.target;
|
86
|
+
if (target == null ? void 0 : target.isContentEditable)
|
87
|
+
return;
|
88
|
+
const actions = {
|
89
|
+
[EVENT_CODE.left]: () => current.value > 0 && onPrev(),
|
90
|
+
[EVENT_CODE.right]: onNext
|
91
|
+
};
|
92
|
+
const action = actions[e.code];
|
93
|
+
if (action) {
|
94
|
+
e.preventDefault();
|
95
|
+
action();
|
96
|
+
}
|
97
|
+
};
|
98
|
+
onMounted(() => {
|
99
|
+
window.addEventListener("keydown", handleKeydown);
|
100
|
+
});
|
101
|
+
onBeforeUnmount(() => {
|
102
|
+
window.removeEventListener("keydown", handleKeydown);
|
103
|
+
});
|
104
|
+
return (_ctx, _cache) => {
|
105
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
106
|
+
unref(mergedShowClose) ? (openBlock(), createElementBlock("button", {
|
107
|
+
key: 0,
|
108
|
+
"aria-label": "Close",
|
109
|
+
class: normalizeClass(unref(ns).e("closebtn")),
|
110
|
+
type: "button",
|
111
|
+
onClick: onClose
|
112
|
+
}, [
|
113
|
+
createVNode(unref(ElIcon), {
|
114
|
+
class: normalizeClass(unref(ns).e("close"))
|
115
|
+
}, {
|
116
|
+
default: withCtx(() => [
|
117
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(mergedCloseIcon))))
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
}, 8, ["class"])
|
121
|
+
], 2)) : createCommentVNode("v-if", true),
|
122
|
+
createElementVNode("header", {
|
123
|
+
class: normalizeClass([unref(ns).e("header"), { "show-close": unref(showClose) }])
|
124
|
+
}, [
|
125
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
126
|
+
createElementVNode("span", {
|
127
|
+
role: "heading",
|
128
|
+
class: normalizeClass(unref(ns).e("title"))
|
129
|
+
}, toDisplayString(_ctx.title), 3)
|
130
|
+
])
|
131
|
+
], 2),
|
132
|
+
createElementVNode("div", {
|
133
|
+
class: normalizeClass(unref(ns).e("body"))
|
134
|
+
}, [
|
135
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
136
|
+
createElementVNode("span", null, toDisplayString(_ctx.description), 1)
|
137
|
+
])
|
138
|
+
], 2),
|
139
|
+
createElementVNode("footer", {
|
140
|
+
class: normalizeClass(unref(ns).e("footer"))
|
141
|
+
}, [
|
142
|
+
createElementVNode("div", {
|
143
|
+
class: normalizeClass(unref(ns).b("indicators"))
|
144
|
+
}, [
|
145
|
+
unref(tourSlots).indicators ? (openBlock(), createBlock(resolveDynamicComponent(unref(tourSlots).indicators), {
|
146
|
+
key: 0,
|
147
|
+
current: unref(current),
|
148
|
+
total: unref(total)
|
149
|
+
}, null, 8, ["current", "total"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(total), (item, index) => {
|
150
|
+
return openBlock(), createElementBlock("span", {
|
151
|
+
key: item,
|
152
|
+
class: normalizeClass([unref(ns).b("indicator"), index === unref(current) ? "is-active" : ""])
|
153
|
+
}, null, 2);
|
154
|
+
}), 128))
|
155
|
+
], 2),
|
156
|
+
createElementVNode("div", {
|
157
|
+
class: normalizeClass(unref(ns).b("buttons"))
|
158
|
+
}, [
|
159
|
+
unref(current) > 0 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
160
|
+
key: 0,
|
161
|
+
size: "small",
|
162
|
+
type: unref(mergedType)
|
163
|
+
}, filterButtonProps(_ctx.prevButtonProps), { onClick: onPrev }), {
|
164
|
+
default: withCtx(() => {
|
165
|
+
var _a, _b;
|
166
|
+
return [
|
167
|
+
createTextVNode(toDisplayString((_b = (_a = _ctx.prevButtonProps) == null ? void 0 : _a.children) != null ? _b : unref(t)("el.tour.previous")), 1)
|
168
|
+
];
|
169
|
+
}),
|
170
|
+
_: 1
|
171
|
+
}, 16, ["type"])) : createCommentVNode("v-if", true),
|
172
|
+
unref(current) <= unref(total) - 1 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
173
|
+
key: 1,
|
174
|
+
size: "small",
|
175
|
+
type: unref(mergedType) === "primary" ? "default" : "primary"
|
176
|
+
}, filterButtonProps(_ctx.nextButtonProps), { onClick: onNext }), {
|
177
|
+
default: withCtx(() => {
|
178
|
+
var _a, _b;
|
179
|
+
return [
|
180
|
+
createTextVNode(toDisplayString((_b = (_a = _ctx.nextButtonProps) == null ? void 0 : _a.children) != null ? _b : unref(current) === unref(total) - 1 ? unref(t)("el.tour.finish") : unref(t)("el.tour.next")), 1)
|
181
|
+
];
|
182
|
+
}),
|
183
|
+
_: 1
|
184
|
+
}, 16, ["type"])) : createCommentVNode("v-if", true)
|
185
|
+
], 2)
|
186
|
+
], 2)
|
187
|
+
], 64);
|
188
|
+
};
|
42
189
|
}
|
43
190
|
});
|
44
|
-
|
45
|
-
close: () => true
|
46
|
-
};
|
191
|
+
var TourStep = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "step.vue"]]);
|
47
192
|
|
48
|
-
export {
|
193
|
+
export { TourStep as default };
|
49
194
|
//# sourceMappingURL=step.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"step.mjs","sources":["../../../../../../packages/components/tour/src/step.
|
1
|
+
{"version":3,"file":"step.mjs","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'), { 'show-close': showClose }]\">\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=\"filterButtonProps(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=\"filterButtonProps(nextButtonProps)\"\n @click=\"onNext\"\n >\n {{\n nextButtonProps?.children ??\n (current === total - 1 ? t('el.tour.finish') : t('el.tour.next'))\n }}\n </el-button>\n </div>\n </footer>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, onBeforeUnmount, onMounted, watch } from 'vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { omit } from 'lodash-unified'\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\nimport type { TourBtnProps } from './types'\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 currentStep,\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\nwatch(\n props,\n (val) => {\n currentStep.value = val\n },\n {\n immediate: true,\n }\n)\n\nconst mergedShowClose = computed(() => props.showClose ?? showClose.value)\nconst mergedCloseIcon = computed(\n () => props.closeIcon ?? closeIcon.value ?? Close\n)\n\nconst filterButtonProps = (btnProps?: TourBtnProps) => {\n if (!btnProps) return\n return omit(btnProps, ['children', 'onClick'])\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\nconst handleKeydown = (e: KeyboardEvent) => {\n const target = e.target as HTMLElement | null\n if (target?.isContentEditable) return\n\n const actions: Record<string, () => void> = {\n [EVENT_CODE.left]: () => current.value > 0 && onPrev(),\n [EVENT_CODE.right]: onNext,\n }\n\n const action = actions[e.code]\n if (action) {\n e.preventDefault()\n action()\n }\n}\n\nonMounted(() => {\n window.addEventListener('keydown', handleKeydown)\n})\n\nonBeforeUnmount(() => {\n window.removeEventListener('keydown', handleKeydown)\n})\n</script>\n"],"names":[],"mappings":"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"}
|
@@ -1,194 +1,49 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import { ElIcon } from '../../icon/index.mjs';
|
5
|
-
import { tourStepProps, tourStepEmits } from './step.mjs';
|
6
|
-
import { tourKey } from './helper.mjs';
|
7
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
8
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
9
|
-
import { CloseComponents } from '../../../utils/vue/icon.mjs';
|
10
|
-
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
1
|
+
import { tourContentProps } from './content.mjs';
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
3
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
11
4
|
|
12
|
-
const
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
});
|
50
|
-
const filterButtonProps = (btnProps) => {
|
51
|
-
if (!btnProps)
|
52
|
-
return;
|
53
|
-
return omit(btnProps, ["children", "onClick"]);
|
54
|
-
};
|
55
|
-
const onPrev = () => {
|
56
|
-
var _a, _b;
|
57
|
-
current.value -= 1;
|
58
|
-
if ((_a = props.prevButtonProps) == null ? void 0 : _a.onClick) {
|
59
|
-
(_b = props.prevButtonProps) == null ? void 0 : _b.onClick();
|
60
|
-
}
|
61
|
-
onChange();
|
62
|
-
};
|
63
|
-
const onNext = () => {
|
64
|
-
var _a;
|
65
|
-
if (current.value >= total.value - 1) {
|
66
|
-
onFinish();
|
67
|
-
} else {
|
68
|
-
current.value += 1;
|
69
|
-
}
|
70
|
-
if ((_a = props.nextButtonProps) == null ? void 0 : _a.onClick) {
|
71
|
-
props.nextButtonProps.onClick();
|
72
|
-
}
|
73
|
-
onChange();
|
74
|
-
};
|
75
|
-
const onFinish = () => {
|
76
|
-
onClose();
|
77
|
-
tourOnFinish();
|
78
|
-
};
|
79
|
-
const onClose = () => {
|
80
|
-
updateModelValue(false);
|
81
|
-
tourOnClose();
|
82
|
-
emit("close");
|
83
|
-
};
|
84
|
-
const handleKeydown = (e) => {
|
85
|
-
const target = e.target;
|
86
|
-
if (target == null ? void 0 : target.isContentEditable)
|
87
|
-
return;
|
88
|
-
const actions = {
|
89
|
-
[EVENT_CODE.left]: () => current.value > 0 && onPrev(),
|
90
|
-
[EVENT_CODE.right]: onNext
|
91
|
-
};
|
92
|
-
const action = actions[e.code];
|
93
|
-
if (action) {
|
94
|
-
e.preventDefault();
|
95
|
-
action();
|
96
|
-
}
|
97
|
-
};
|
98
|
-
onMounted(() => {
|
99
|
-
window.addEventListener("keydown", handleKeydown);
|
100
|
-
});
|
101
|
-
onBeforeUnmount(() => {
|
102
|
-
window.removeEventListener("keydown", handleKeydown);
|
103
|
-
});
|
104
|
-
return (_ctx, _cache) => {
|
105
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
106
|
-
unref(mergedShowClose) ? (openBlock(), createElementBlock("button", {
|
107
|
-
key: 0,
|
108
|
-
"aria-label": "Close",
|
109
|
-
class: normalizeClass(unref(ns).e("closebtn")),
|
110
|
-
type: "button",
|
111
|
-
onClick: onClose
|
112
|
-
}, [
|
113
|
-
createVNode(unref(ElIcon), {
|
114
|
-
class: normalizeClass(unref(ns).e("close"))
|
115
|
-
}, {
|
116
|
-
default: withCtx(() => [
|
117
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(mergedCloseIcon))))
|
118
|
-
]),
|
119
|
-
_: 1
|
120
|
-
}, 8, ["class"])
|
121
|
-
], 2)) : createCommentVNode("v-if", true),
|
122
|
-
createElementVNode("header", {
|
123
|
-
class: normalizeClass([unref(ns).e("header"), { "show-close": unref(showClose) }])
|
124
|
-
}, [
|
125
|
-
renderSlot(_ctx.$slots, "header", {}, () => [
|
126
|
-
createElementVNode("span", {
|
127
|
-
role: "heading",
|
128
|
-
class: normalizeClass(unref(ns).e("title"))
|
129
|
-
}, toDisplayString(_ctx.title), 3)
|
130
|
-
])
|
131
|
-
], 2),
|
132
|
-
createElementVNode("div", {
|
133
|
-
class: normalizeClass(unref(ns).e("body"))
|
134
|
-
}, [
|
135
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
136
|
-
createElementVNode("span", null, toDisplayString(_ctx.description), 1)
|
137
|
-
])
|
138
|
-
], 2),
|
139
|
-
createElementVNode("footer", {
|
140
|
-
class: normalizeClass(unref(ns).e("footer"))
|
141
|
-
}, [
|
142
|
-
createElementVNode("div", {
|
143
|
-
class: normalizeClass(unref(ns).b("indicators"))
|
144
|
-
}, [
|
145
|
-
unref(tourSlots).indicators ? (openBlock(), createBlock(resolveDynamicComponent(unref(tourSlots).indicators), {
|
146
|
-
key: 0,
|
147
|
-
current: unref(current),
|
148
|
-
total: unref(total)
|
149
|
-
}, null, 8, ["current", "total"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(total), (item, index) => {
|
150
|
-
return openBlock(), createElementBlock("span", {
|
151
|
-
key: item,
|
152
|
-
class: normalizeClass([unref(ns).b("indicator"), index === unref(current) ? "is-active" : ""])
|
153
|
-
}, null, 2);
|
154
|
-
}), 128))
|
155
|
-
], 2),
|
156
|
-
createElementVNode("div", {
|
157
|
-
class: normalizeClass(unref(ns).b("buttons"))
|
158
|
-
}, [
|
159
|
-
unref(current) > 0 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
160
|
-
key: 0,
|
161
|
-
size: "small",
|
162
|
-
type: unref(mergedType)
|
163
|
-
}, filterButtonProps(_ctx.prevButtonProps), { onClick: onPrev }), {
|
164
|
-
default: withCtx(() => {
|
165
|
-
var _a, _b;
|
166
|
-
return [
|
167
|
-
createTextVNode(toDisplayString((_b = (_a = _ctx.prevButtonProps) == null ? void 0 : _a.children) != null ? _b : unref(t)("el.tour.previous")), 1)
|
168
|
-
];
|
169
|
-
}),
|
170
|
-
_: 1
|
171
|
-
}, 16, ["type"])) : createCommentVNode("v-if", true),
|
172
|
-
unref(current) <= unref(total) - 1 ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
173
|
-
key: 1,
|
174
|
-
size: "small",
|
175
|
-
type: unref(mergedType) === "primary" ? "default" : "primary"
|
176
|
-
}, filterButtonProps(_ctx.nextButtonProps), { onClick: onNext }), {
|
177
|
-
default: withCtx(() => {
|
178
|
-
var _a, _b;
|
179
|
-
return [
|
180
|
-
createTextVNode(toDisplayString((_b = (_a = _ctx.nextButtonProps) == null ? void 0 : _a.children) != null ? _b : unref(current) === unref(total) - 1 ? unref(t)("el.tour.finish") : unref(t)("el.tour.next")), 1)
|
181
|
-
];
|
182
|
-
}),
|
183
|
-
_: 1
|
184
|
-
}, 16, ["type"])) : createCommentVNode("v-if", true)
|
185
|
-
], 2)
|
186
|
-
], 2)
|
187
|
-
], 64);
|
188
|
-
};
|
5
|
+
const tourStepProps = buildProps({
|
6
|
+
target: {
|
7
|
+
type: definePropType([String, Object, Function])
|
8
|
+
},
|
9
|
+
title: String,
|
10
|
+
description: String,
|
11
|
+
showClose: {
|
12
|
+
type: Boolean,
|
13
|
+
default: void 0
|
14
|
+
},
|
15
|
+
closeIcon: {
|
16
|
+
type: iconPropType
|
17
|
+
},
|
18
|
+
showArrow: {
|
19
|
+
type: Boolean,
|
20
|
+
default: void 0
|
21
|
+
},
|
22
|
+
placement: tourContentProps.placement,
|
23
|
+
mask: {
|
24
|
+
type: definePropType([Boolean, Object]),
|
25
|
+
default: void 0
|
26
|
+
},
|
27
|
+
contentStyle: {
|
28
|
+
type: definePropType([Object])
|
29
|
+
},
|
30
|
+
prevButtonProps: {
|
31
|
+
type: definePropType(Object)
|
32
|
+
},
|
33
|
+
nextButtonProps: {
|
34
|
+
type: definePropType(Object)
|
35
|
+
},
|
36
|
+
scrollIntoViewOptions: {
|
37
|
+
type: definePropType([Boolean, Object]),
|
38
|
+
default: void 0
|
39
|
+
},
|
40
|
+
type: {
|
41
|
+
type: definePropType(String)
|
189
42
|
}
|
190
43
|
});
|
191
|
-
|
44
|
+
const tourStepEmits = {
|
45
|
+
close: () => true
|
46
|
+
};
|
192
47
|
|
193
|
-
export {
|
48
|
+
export { tourStepEmits, tourStepProps };
|
194
49
|
//# sourceMappingURL=step2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"step2.mjs","sources":["../../../../../../packages/components/tour/src/step.
|
1
|
+
{"version":3,"file":"step2.mjs","sources":["../../../../../../packages/components/tour/src/step.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { tourContentProps } from './content'\n\nimport type {\n CSSProperties,\n ExtractPropTypes,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type { TourBtnProps, TourMask } from './types'\n\nexport const tourStepProps = buildProps({\n /**\n * @description get the element the guide card points to. empty makes it show in center of screen\n */\n target: {\n type: definePropType<\n string | HTMLElement | (() => HTMLElement | null) | null\n >([String, Object, Function]),\n },\n /**\n * @description the title of the tour content\n */\n title: String,\n /**\n * @description description\n */\n description: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description whether to show the arrow\n */\n showArrow: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description position of the guide card relative to the target element\n */\n placement: tourContentProps.placement,\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: undefined,\n },\n /**\n * @description custom style for content\n */\n contentStyle: {\n type: definePropType<CSSProperties>([Object]),\n },\n /**\n * @description properties of the previous button\n */\n prevButtonProps: {\n type: definePropType<TourBtnProps>(Object),\n },\n /**\n * @description properties of the Next button\n */\n nextButtonProps: {\n type: definePropType<TourBtnProps>(Object),\n },\n /**\n * @description support pass custom scrollIntoView options\n */\n scrollIntoViewOptions: {\n type: definePropType<boolean | ScrollIntoViewOptions>([Boolean, Object]),\n default: undefined,\n },\n /**\n * @description type, affects the background color and text color\n */\n type: {\n type: definePropType<'default' | 'primary'>(String),\n },\n})\n\nexport type TourStepProps = ExtractPropTypes<typeof tourStepProps>\nexport type TourStepPropsPublic = __ExtractPublicPropTypes<typeof tourStepProps>\n\nexport const tourStepEmits = {\n close: () => true,\n}\nexport type TourStepEmits = typeof tourStepEmits\n"],"names":[],"mappings":";;;;AAEY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AACpD,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE,gBAAgB,CAAC,SAAS;AACvC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAClC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,qBAAqB,EAAE;AACzB,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, useSlots, provide, openBlock, createElementBlock, Fragment, createVNode, unref, withCtx, createElementVNode, mergeProps, normalizeStyle, createBlock, renderSlot, createCommentVNode } from 'vue';
|
2
2
|
import { useVModel } from '@vueuse/core';
|
3
3
|
import { ElTeleport } from '../../teleport/index.mjs';
|
4
|
-
import ElTourMask from './
|
4
|
+
import ElTourMask from './mask.mjs';
|
5
5
|
import ElTourContent from './content2.mjs';
|
6
6
|
import ElTourSteps from './steps.mjs';
|
7
7
|
import { tourProps, tourEmits } from './tour.mjs';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import Transfer from './src/
|
2
|
-
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './src/
|
1
|
+
import Transfer from './src/transfer2.mjs';
|
2
|
+
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './src/transfer.mjs';
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
4
4
|
|
5
5
|
const ElTransfer = withInstall(Transfer);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT } from '../
|
1
|
+
import { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT } from '../transfer.mjs';
|
2
2
|
|
3
3
|
const useCheckedChange = (checkedState, emit) => {
|
4
4
|
const onSourceCheckedChange = (val, movedKeys) => {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { transferProps, transferCheckedChangeFn } from './
|
1
|
+
import { transferProps, transferCheckedChangeFn } from './transfer.mjs';
|
2
2
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
3
3
|
|
4
4
|
const CHECKED_CHANGE_EVENT = "checked-change";
|