@element-plus/nightly 0.0.20251202 → 0.0.20251204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.full.js +15 -3
- package/dist/index.full.min.js +9 -9
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +9 -9
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +15 -3
- 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/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +71 -32
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +32 -71
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +69 -7
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +7 -69
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +63 -111
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +111 -63
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +38 -89
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +89 -38
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/focus-trap/src/focus-trap.mjs +2 -0
- package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +8 -35
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +35 -8
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/index.mjs +13 -13
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -147
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +147 -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 +16 -97
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +97 -16
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/next.mjs +35 -18
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +18 -35
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +72 -26
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +26 -72
- package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/composables/use-content.mjs +4 -1
- package/es/components/popper/src/composables/use-content.mjs.map +1 -1
- package/es/components/popper/src/composables/use-focus-trap.mjs +4 -1
- package/es/components/popper/src/composables/use-focus-trap.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +132 -89
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +89 -131
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +30 -62
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +62 -30
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +28 -44
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +44 -28
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/table/src/store/tree.mjs +1 -1
- package/es/components/table/src/store/tree.mjs.map +1 -1
- package/es/components/tabs/index.mjs +3 -3
- package/es/components/tabs/src/tab-bar.mjs +11 -92
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +92 -11
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tabs/src/tab-pane.mjs +16 -85
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +85 -16
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +4 -1
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/tour.mjs +154 -69
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +69 -154
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +130 -19
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +19 -130
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/index.mjs +13 -13
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +71 -32
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +32 -71
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel-item.js +69 -7
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +7 -69
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +64 -111
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +111 -64
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +38 -88
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +88 -38
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/focus-trap/src/focus-trap.js +2 -0
- package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +8 -35
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +35 -8
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/index.js +13 -13
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -146
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +146 -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 +17 -97
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +97 -17
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/next.js +35 -18
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +18 -35
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +72 -26
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +26 -72
- package/lib/components/pagination/src/components/sizes2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/composables/use-content.js +3 -0
- package/lib/components/popper/src/composables/use-content.js.map +1 -1
- package/lib/components/popper/src/composables/use-focus-trap.js +3 -0
- package/lib/components/popper/src/composables/use-focus-trap.js.map +1 -1
- package/lib/components/popper/src/content.js +132 -94
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +94 -131
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +32 -62
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +62 -32
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/row/index.js +2 -2
- package/lib/components/row/src/row.js +30 -44
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +44 -30
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/table/src/store/tree.js +1 -1
- package/lib/components/table/src/store/tree.js.map +1 -1
- package/lib/components/tabs/index.js +3 -3
- package/lib/components/tabs/src/tab-bar.js +11 -92
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +92 -11
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tabs/src/tab-pane.js +16 -85
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +85 -16
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +3 -0
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/tour.js +153 -69
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +69 -153
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +130 -21
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +21 -130
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/index.js +13 -13
- 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/theme-chalk/el-tabs.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/tabs.scss +8 -0
- package/web-types.json +1 -1
package/es/components/index.mjs
CHANGED
|
@@ -92,7 +92,7 @@ export { alertEffects, alertEmits, alertProps } from './alert/src/alert.mjs';
|
|
|
92
92
|
export { autocompleteEmits, autocompleteProps } from './autocomplete/src/autocomplete.mjs';
|
|
93
93
|
export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
|
|
94
94
|
export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
|
|
95
|
-
export { badgeProps } from './badge/src/
|
|
95
|
+
export { badgeProps } from './badge/src/badge2.mjs';
|
|
96
96
|
export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
|
|
97
97
|
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item.mjs';
|
|
98
98
|
export { breadcrumbKey } from './breadcrumb/src/constants.mjs';
|
|
@@ -101,14 +101,14 @@ export { buttonGroupContextKey } from './button/src/constants.mjs';
|
|
|
101
101
|
export { calendarEmits, calendarProps } from './calendar/src/calendar.mjs';
|
|
102
102
|
export { cardContextKey, cardProps } from './card/src/card.mjs';
|
|
103
103
|
export { carouselEmits, carouselProps } from './carousel/src/carousel.mjs';
|
|
104
|
-
export { carouselItemProps } from './carousel/src/carousel-
|
|
104
|
+
export { carouselItemProps } from './carousel/src/carousel-item2.mjs';
|
|
105
105
|
export { CAROUSEL_ITEM_NAME, carouselContextKey } from './carousel/src/constants.mjs';
|
|
106
106
|
export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
|
|
107
107
|
export { CASCADER_PANEL_INJECTION_KEY } from './cascader-panel/src/types.mjs';
|
|
108
108
|
export { CommonProps, DefaultProps, cascaderPanelEmits, cascaderPanelProps, useCascaderConfig } from './cascader-panel/src/config.mjs';
|
|
109
109
|
export { checkTagEmits, checkTagProps } from './check-tag/src/check-tag.mjs';
|
|
110
110
|
export { checkboxDefaultProps, checkboxGroupEmits, checkboxGroupProps } from './checkbox/src/checkbox-group.mjs';
|
|
111
|
-
export { checkboxEmits, checkboxProps } from './checkbox/src/
|
|
111
|
+
export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox.mjs';
|
|
112
112
|
export { checkboxGroupContextKey } from './checkbox/src/constants.mjs';
|
|
113
113
|
export { colProps } from './col/src/col.mjs';
|
|
114
114
|
export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
|
|
@@ -139,7 +139,7 @@ export { formItemProps, formItemValidateStates } from './form/src/form-item.mjs'
|
|
|
139
139
|
export { formContextKey, formItemContextKey } from './form/src/constants.mjs';
|
|
140
140
|
export { useDisabled, useFormDisabled, useFormSize, useSize } from './form/src/hooks/use-form-common-props.mjs';
|
|
141
141
|
export { useFormItem, useFormItemInputId } from './form/src/hooks/use-form-item.mjs';
|
|
142
|
-
export { iconProps } from './icon/src/
|
|
142
|
+
export { iconProps } from './icon/src/icon.mjs';
|
|
143
143
|
export { imageEmits, imageProps } from './image/src/image.mjs';
|
|
144
144
|
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer.mjs';
|
|
145
145
|
export { inputEmits, inputProps } from './input/src/input.mjs';
|
|
@@ -152,26 +152,26 @@ export { menuItemGroupProps } from './menu/src/menu-item-group.mjs';
|
|
|
152
152
|
export { subMenuProps } from './menu/src/sub-menu.mjs';
|
|
153
153
|
export { MENU_INJECTION_KEY, SUB_MENU_INJECTION_KEY } from './menu/src/tokens.mjs';
|
|
154
154
|
export { overlayEmits, overlayProps } from './overlay/src/overlay.mjs';
|
|
155
|
-
export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-
|
|
155
|
+
export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-header.mjs';
|
|
156
156
|
export { paginationEmits, paginationProps } from './pagination/src/pagination.mjs';
|
|
157
157
|
export { elPaginationKey } from './pagination/src/constants.mjs';
|
|
158
158
|
export { popconfirmEmits, popconfirmProps } from './popconfirm/src/popconfirm.mjs';
|
|
159
159
|
export { Effect, popperProps, roleTypes, usePopperProps } from './popper/src/popper.mjs';
|
|
160
160
|
export { popperTriggerProps, usePopperTriggerProps } from './popper/src/trigger.mjs';
|
|
161
|
-
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/
|
|
161
|
+
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './popper/src/content2.mjs';
|
|
162
162
|
export { popperArrowProps, usePopperArrowProps } from './popper/src/arrow.mjs';
|
|
163
163
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './popper/src/constants.mjs';
|
|
164
164
|
export { default as ElPopperArrow } from './popper/src/arrow2.mjs';
|
|
165
165
|
export { default as ElPopperTrigger } from './popper/src/trigger2.mjs';
|
|
166
|
-
export { default as ElPopperContent } from './popper/src/
|
|
166
|
+
export { default as ElPopperContent } from './popper/src/content.mjs';
|
|
167
167
|
export { progressProps } from './progress/src/progress.mjs';
|
|
168
168
|
export { radioEmits, radioProps, radioPropsBase } from './radio/src/radio.mjs';
|
|
169
169
|
export { radioDefaultProps, radioGroupEmits, radioGroupProps } from './radio/src/radio-group.mjs';
|
|
170
170
|
export { radioButtonProps } from './radio/src/radio-button.mjs';
|
|
171
171
|
export { radioGroupKey } from './radio/src/constants.mjs';
|
|
172
172
|
export { rateEmits, rateProps } from './rate/src/rate.mjs';
|
|
173
|
-
export { IconComponentMap, IconMap, resultProps } from './result/src/
|
|
174
|
-
export { RowAlign, RowJustify, rowProps } from './row/src/
|
|
173
|
+
export { IconComponentMap, IconMap, resultProps } from './result/src/result.mjs';
|
|
174
|
+
export { RowAlign, RowJustify, rowProps } from './row/src/row.mjs';
|
|
175
175
|
export { rowContextKey } from './row/src/constants.mjs';
|
|
176
176
|
export { BAR_MAP, GAP, renderThumbStyle } from './scrollbar/src/util.mjs';
|
|
177
177
|
export { scrollbarEmits, scrollbarProps } from './scrollbar/src/scrollbar.mjs';
|
|
@@ -199,9 +199,9 @@ export { autoResizerProps } from './table-v2/src/auto-resizer.mjs';
|
|
|
199
199
|
export { tableV2Props } from './table-v2/src/table.mjs';
|
|
200
200
|
export { tableV2RowProps } from './table-v2/src/row.mjs';
|
|
201
201
|
export { tabsEmits, tabsProps } from './tabs/src/tabs.mjs';
|
|
202
|
-
export { tabBarProps } from './tabs/src/tab-
|
|
202
|
+
export { tabBarProps } from './tabs/src/tab-bar.mjs';
|
|
203
203
|
export { tabNavEmits, tabNavProps } from './tabs/src/tab-nav.mjs';
|
|
204
|
-
export { tabPaneProps } from './tabs/src/tab-
|
|
204
|
+
export { tabPaneProps } from './tabs/src/tab-pane.mjs';
|
|
205
205
|
export { tabsRootContextKey } from './tabs/src/constants.mjs';
|
|
206
206
|
export { tagEmits, tagProps } from './tag/src/tag.mjs';
|
|
207
207
|
export { textProps } from './text/src/text.mjs';
|
|
@@ -229,7 +229,7 @@ export { default as FixedSizeList } from './virtual-list/src/components/fixed-si
|
|
|
229
229
|
export { default as DynamicSizeList } from './virtual-list/src/components/dynamic-size-list.mjs';
|
|
230
230
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './virtual-list/src/props.mjs';
|
|
231
231
|
export { watermarkProps } from './watermark/src/watermark.mjs';
|
|
232
|
-
export { tourEmits, tourProps } from './tour/src/
|
|
232
|
+
export { tourEmits, tourProps } from './tour/src/tour2.mjs';
|
|
233
233
|
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
|
234
234
|
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content.mjs';
|
|
235
235
|
export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
|
|
@@ -238,6 +238,6 @@ export { mentionDefaultProps, mentionEmits, mentionProps } from './mention/src/m
|
|
|
238
238
|
export { splitterEmits, splitterProps } from './splitter/src/splitter.mjs';
|
|
239
239
|
export { splitterPanelEmits, splitterPanelProps } from './splitter/src/split-panel.mjs';
|
|
240
240
|
export { MESSAGE_DEFAULT_PLACEMENT, messageDefaults, messageEmits, messagePlacement, messageProps, messageTypes } from './message/src/message.mjs';
|
|
241
|
-
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/
|
|
241
|
+
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
|
|
242
242
|
export { popoverEmits, popoverProps } from './popover/src/popover.mjs';
|
|
243
243
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import notify from './src/notify.mjs';
|
|
2
|
-
export { notificationEmits, notificationProps, notificationTypes } from './src/
|
|
2
|
+
export { notificationEmits, notificationProps, notificationTypes } from './src/notification.mjs';
|
|
3
3
|
import { withInstallFunction } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElNotification = withInstallFunction(notify, "$notify");
|
|
@@ -1,152 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { notificationProps, notificationEmits } from './notification2.mjs';
|
|
5
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
-
import { useGlobalComponentSettings } from '../../config-provider/src/hooks/use-global-config.mjs';
|
|
7
|
-
import { TypeComponentsMap } from '../../../utils/vue/icon.mjs';
|
|
8
|
-
import { getEventCode } from '../../../utils/dom/event.mjs';
|
|
9
|
-
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
|
1
|
+
import { Close } from '@element-plus/icons-vue';
|
|
2
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
3
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
10
4
|
|
|
11
|
-
const
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
});
|
|
78
|
-
useEventListener(document, "keydown", onKeydown);
|
|
79
|
-
expose({
|
|
80
|
-
visible,
|
|
81
|
-
close
|
|
82
|
-
});
|
|
83
|
-
return (_ctx, _cache) => {
|
|
84
|
-
return openBlock(), createBlock(Transition, {
|
|
85
|
-
name: unref(ns).b("fade"),
|
|
86
|
-
onBeforeLeave: _ctx.onClose,
|
|
87
|
-
onAfterLeave: ($event) => _ctx.$emit("destroy"),
|
|
88
|
-
persisted: ""
|
|
89
|
-
}, {
|
|
90
|
-
default: withCtx(() => [
|
|
91
|
-
withDirectives(createElementVNode("div", {
|
|
92
|
-
id: _ctx.id,
|
|
93
|
-
class: normalizeClass([unref(ns).b(), _ctx.customClass, unref(horizontalClass)]),
|
|
94
|
-
style: normalizeStyle(unref(positionStyle)),
|
|
95
|
-
role: "alert",
|
|
96
|
-
onMouseenter: clearTimer,
|
|
97
|
-
onMouseleave: startTimer,
|
|
98
|
-
onClick: _ctx.onClick
|
|
99
|
-
}, [
|
|
100
|
-
unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
101
|
-
key: 0,
|
|
102
|
-
class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
|
|
103
|
-
}, {
|
|
104
|
-
default: withCtx(() => [
|
|
105
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
|
|
106
|
-
]),
|
|
107
|
-
_: 1
|
|
108
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
109
|
-
createElementVNode("div", {
|
|
110
|
-
class: normalizeClass(unref(ns).e("group"))
|
|
111
|
-
}, [
|
|
112
|
-
createElementVNode("h2", {
|
|
113
|
-
class: normalizeClass(unref(ns).e("title")),
|
|
114
|
-
textContent: toDisplayString(_ctx.title)
|
|
115
|
-
}, null, 10, ["textContent"]),
|
|
116
|
-
withDirectives(createElementVNode("div", {
|
|
117
|
-
class: normalizeClass(unref(ns).e("content")),
|
|
118
|
-
style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
|
|
119
|
-
}, [
|
|
120
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
121
|
-
!_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", { key: 0 }, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
122
|
-
createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
|
|
123
|
-
createElementVNode("p", { innerHTML: _ctx.message }, null, 8, ["innerHTML"])
|
|
124
|
-
], 2112))
|
|
125
|
-
])
|
|
126
|
-
], 6), [
|
|
127
|
-
[vShow, _ctx.message]
|
|
128
|
-
]),
|
|
129
|
-
_ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: normalizeClass(unref(ns).e("closeBtn")),
|
|
132
|
-
onClick: withModifiers(close, ["stop"])
|
|
133
|
-
}, {
|
|
134
|
-
default: withCtx(() => [
|
|
135
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon)))
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
139
|
-
], 2)
|
|
140
|
-
], 46, ["id", "onClick"]), [
|
|
141
|
-
[vShow, visible.value]
|
|
142
|
-
])
|
|
143
|
-
]),
|
|
144
|
-
_: 3
|
|
145
|
-
}, 8, ["name", "onBeforeLeave", "onAfterLeave"]);
|
|
146
|
-
};
|
|
5
|
+
const notificationTypes = [
|
|
6
|
+
"primary",
|
|
7
|
+
"success",
|
|
8
|
+
"info",
|
|
9
|
+
"warning",
|
|
10
|
+
"error"
|
|
11
|
+
];
|
|
12
|
+
const notificationProps = buildProps({
|
|
13
|
+
customClass: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
dangerouslyUseHTMLString: Boolean,
|
|
18
|
+
duration: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 4500
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
type: iconPropType
|
|
24
|
+
},
|
|
25
|
+
id: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
message: {
|
|
30
|
+
type: definePropType([
|
|
31
|
+
String,
|
|
32
|
+
Object,
|
|
33
|
+
Function
|
|
34
|
+
]),
|
|
35
|
+
default: ""
|
|
36
|
+
},
|
|
37
|
+
offset: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 0
|
|
40
|
+
},
|
|
41
|
+
onClick: {
|
|
42
|
+
type: definePropType(Function),
|
|
43
|
+
default: () => void 0
|
|
44
|
+
},
|
|
45
|
+
onClose: {
|
|
46
|
+
type: definePropType(Function),
|
|
47
|
+
required: true
|
|
48
|
+
},
|
|
49
|
+
position: {
|
|
50
|
+
type: String,
|
|
51
|
+
values: ["top-right", "top-left", "bottom-right", "bottom-left"],
|
|
52
|
+
default: "top-right"
|
|
53
|
+
},
|
|
54
|
+
showClose: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
57
|
+
},
|
|
58
|
+
title: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ""
|
|
61
|
+
},
|
|
62
|
+
type: {
|
|
63
|
+
type: String,
|
|
64
|
+
values: [...notificationTypes, ""],
|
|
65
|
+
default: ""
|
|
66
|
+
},
|
|
67
|
+
zIndex: Number,
|
|
68
|
+
closeIcon: {
|
|
69
|
+
type: iconPropType,
|
|
70
|
+
default: Close
|
|
147
71
|
}
|
|
148
72
|
});
|
|
149
|
-
|
|
73
|
+
const notificationEmits = {
|
|
74
|
+
destroy: () => true
|
|
75
|
+
};
|
|
150
76
|
|
|
151
|
-
export {
|
|
77
|
+
export { notificationEmits, notificationProps, notificationTypes };
|
|
152
78
|
//# sourceMappingURL=notification.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.mjs","sources":["../../../../../../packages/components/notification/src/notification.
|
|
1
|
+
{"version":3,"file":"notification.mjs","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { Close } from '@element-plus/icons-vue'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\n\nimport type {\n AppContext,\n ExtractPropTypes,\n VNode,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type Notification from './notification.vue'\n\nexport const notificationTypes = [\n 'primary',\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport const notificationProps = buildProps({\n /**\n * @description custom class name for Notification\n */\n customClass: {\n type: String,\n default: '',\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: Boolean,\n /**\n * @description duration before close. It will not automatically close if set 0\n */\n duration: {\n type: Number,\n default: 4500,\n },\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description notification dom id\n */\n id: {\n type: String,\n default: '',\n },\n /**\n * @description description text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: '',\n },\n /**\n * @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description callback function when notification clicked\n */\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n /**\n * @description callback function when closed\n */\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n /**\n * @description custom position\n */\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description notification type\n */\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n /**\n * @description initial zIndex\n */\n zIndex: Number,\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n default: Close,\n },\n} as const)\nexport type NotificationProps = ExtractPropTypes<typeof notificationProps>\nexport type NotificationPropsPublic = __ExtractPublicPropTypes<\n typeof notificationProps\n>\n\nexport const notificationEmits = {\n destroy: () => true,\n}\nexport type NotificationEmits = typeof notificationEmits\n\nexport type NotificationInstance = InstanceType<typeof Notification> & unknown\n\nexport type NotificationOptions = Omit<NotificationProps, 'id' | 'onClose'> & {\n /**\n * @description set the root element for the notification, default to `document.body`\n */\n appendTo?: HTMLElement | string\n /**\n * @description callback function when closed\n */\n onClose?(vm: VNode): void\n}\nexport type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>\n\nexport interface NotificationHandle {\n close: () => void\n}\n\nexport type NotificationParams = Partial<NotificationOptions> | string | VNode\nexport type NotificationParamsTyped =\n | Partial<NotificationOptionsTyped>\n | string\n | VNode\n\nexport interface NotifyFn {\n (\n options?: NotificationParams,\n appContext?: null | AppContext\n ): NotificationHandle\n closeAll(): void\n updateOffsets(position?: NotificationOptions['position']): void\n _context: AppContext | null\n}\n\nexport type NotifyTypedFn = (\n options?: NotificationParamsTyped,\n appContext?: null | AppContext\n) => NotificationHandle\n\nexport interface Notify extends NotifyFn {\n primary: NotifyTypedFn\n success: NotifyTypedFn\n warning: NotifyTypedFn\n error: NotifyTypedFn\n info: NotifyTypedFn\n}\n\nexport interface NotificationQueueItem {\n vm: VNode\n}\n\nexport type NotificationQueue = NotificationQueueItem[]\n"],"names":[],"mappings":";;;;AAEY,MAAC,iBAAiB,GAAG;AACjC,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,SAAS;AACX,EAAE,OAAO;AACT,EAAE;AACU,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,wBAAwB,EAAE,OAAO;AACnC,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,QAAQ;AACd,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,MAAM,KAAK,CAAC;AACzB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC;AACpE,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,CAAC;AACtC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG;AACjC,EAAE,OAAO,EAAE,MAAM,IAAI;AACrB;;;;"}
|
|
@@ -1,78 +1,152 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, openBlock, createBlock, Transition, unref, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, resolveDynamicComponent, createCommentVNode, toDisplayString, renderSlot, createElementBlock, Fragment, vShow, withModifiers } from 'vue';
|
|
2
|
+
import { useEventListener, useTimeoutFn } from '@vueuse/core';
|
|
3
|
+
import { ElIcon } from '../../icon/index.mjs';
|
|
4
|
+
import { notificationProps, notificationEmits } from './notification.mjs';
|
|
5
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
+
import { useGlobalComponentSettings } from '../../config-provider/src/hooks/use-global-config.mjs';
|
|
7
|
+
import { TypeComponentsMap } from '../../../utils/vue/icon.mjs';
|
|
8
|
+
import { getEventCode } from '../../../utils/dom/event.mjs';
|
|
9
|
+
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
|
4
10
|
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
11
|
+
const __default__ = defineComponent({
|
|
12
|
+
name: "ElNotification"
|
|
13
|
+
});
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
...__default__,
|
|
16
|
+
props: notificationProps,
|
|
17
|
+
emits: notificationEmits,
|
|
18
|
+
setup(__props, { expose }) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { ns, zIndex } = useGlobalComponentSettings("notification");
|
|
21
|
+
const { nextZIndex, currentZIndex } = zIndex;
|
|
22
|
+
const visible = ref(false);
|
|
23
|
+
let timer = void 0;
|
|
24
|
+
const typeClass = computed(() => {
|
|
25
|
+
const type = props.type;
|
|
26
|
+
return type && TypeComponentsMap[props.type] ? ns.m(type) : "";
|
|
27
|
+
});
|
|
28
|
+
const iconComponent = computed(() => {
|
|
29
|
+
if (!props.type)
|
|
30
|
+
return props.icon;
|
|
31
|
+
return TypeComponentsMap[props.type] || props.icon;
|
|
32
|
+
});
|
|
33
|
+
const horizontalClass = computed(() => props.position.endsWith("right") ? "right" : "left");
|
|
34
|
+
const verticalProperty = computed(() => props.position.startsWith("top") ? "top" : "bottom");
|
|
35
|
+
const positionStyle = computed(() => {
|
|
36
|
+
var _a;
|
|
37
|
+
return {
|
|
38
|
+
[verticalProperty.value]: `${props.offset}px`,
|
|
39
|
+
zIndex: (_a = props.zIndex) != null ? _a : currentZIndex.value
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
function startTimer() {
|
|
43
|
+
if (props.duration > 0) {
|
|
44
|
+
({ stop: timer } = useTimeoutFn(() => {
|
|
45
|
+
if (visible.value)
|
|
46
|
+
close();
|
|
47
|
+
}, props.duration));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function clearTimer() {
|
|
51
|
+
timer == null ? void 0 : timer();
|
|
52
|
+
}
|
|
53
|
+
function close() {
|
|
54
|
+
visible.value = false;
|
|
55
|
+
}
|
|
56
|
+
function onKeydown(event) {
|
|
57
|
+
const code = getEventCode(event);
|
|
58
|
+
switch (code) {
|
|
59
|
+
case EVENT_CODE.delete:
|
|
60
|
+
case EVENT_CODE.backspace:
|
|
61
|
+
clearTimer();
|
|
62
|
+
break;
|
|
63
|
+
case EVENT_CODE.esc:
|
|
64
|
+
if (visible.value) {
|
|
65
|
+
close();
|
|
66
|
+
}
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
startTimer();
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
onMounted(() => {
|
|
74
|
+
startTimer();
|
|
75
|
+
nextZIndex();
|
|
76
|
+
visible.value = true;
|
|
77
|
+
});
|
|
78
|
+
useEventListener(document, "keydown", onKeydown);
|
|
79
|
+
expose({
|
|
80
|
+
visible,
|
|
81
|
+
close
|
|
82
|
+
});
|
|
83
|
+
return (_ctx, _cache) => {
|
|
84
|
+
return openBlock(), createBlock(Transition, {
|
|
85
|
+
name: unref(ns).b("fade"),
|
|
86
|
+
onBeforeLeave: _ctx.onClose,
|
|
87
|
+
onAfterLeave: ($event) => _ctx.$emit("destroy"),
|
|
88
|
+
persisted: ""
|
|
89
|
+
}, {
|
|
90
|
+
default: withCtx(() => [
|
|
91
|
+
withDirectives(createElementVNode("div", {
|
|
92
|
+
id: _ctx.id,
|
|
93
|
+
class: normalizeClass([unref(ns).b(), _ctx.customClass, unref(horizontalClass)]),
|
|
94
|
+
style: normalizeStyle(unref(positionStyle)),
|
|
95
|
+
role: "alert",
|
|
96
|
+
onMouseenter: clearTimer,
|
|
97
|
+
onMouseleave: startTimer,
|
|
98
|
+
onClick: _ctx.onClick
|
|
99
|
+
}, [
|
|
100
|
+
unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
101
|
+
key: 0,
|
|
102
|
+
class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
|
|
103
|
+
}, {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
109
|
+
createElementVNode("div", {
|
|
110
|
+
class: normalizeClass(unref(ns).e("group"))
|
|
111
|
+
}, [
|
|
112
|
+
createElementVNode("h2", {
|
|
113
|
+
class: normalizeClass(unref(ns).e("title")),
|
|
114
|
+
textContent: toDisplayString(_ctx.title)
|
|
115
|
+
}, null, 10, ["textContent"]),
|
|
116
|
+
withDirectives(createElementVNode("div", {
|
|
117
|
+
class: normalizeClass(unref(ns).e("content")),
|
|
118
|
+
style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
|
|
119
|
+
}, [
|
|
120
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
121
|
+
!_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", { key: 0 }, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
122
|
+
createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
|
|
123
|
+
createElementVNode("p", { innerHTML: _ctx.message }, null, 8, ["innerHTML"])
|
|
124
|
+
], 2112))
|
|
125
|
+
])
|
|
126
|
+
], 6), [
|
|
127
|
+
[vShow, _ctx.message]
|
|
128
|
+
]),
|
|
129
|
+
_ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: normalizeClass(unref(ns).e("closeBtn")),
|
|
132
|
+
onClick: withModifiers(close, ["stop"])
|
|
133
|
+
}, {
|
|
134
|
+
default: withCtx(() => [
|
|
135
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.closeIcon)))
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
139
|
+
], 2)
|
|
140
|
+
], 46, ["id", "onClick"]), [
|
|
141
|
+
[vShow, visible.value]
|
|
142
|
+
])
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
}, 8, ["name", "onBeforeLeave", "onAfterLeave"]);
|
|
146
|
+
};
|
|
71
147
|
}
|
|
72
148
|
});
|
|
73
|
-
|
|
74
|
-
destroy: () => true
|
|
75
|
-
};
|
|
149
|
+
var NotificationConstructor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "notification.vue"]]);
|
|
76
150
|
|
|
77
|
-
export {
|
|
151
|
+
export { NotificationConstructor as default };
|
|
78
152
|
//# sourceMappingURL=notification2.mjs.map
|