@element-plus/nightly 0.0.20260723 → 0.0.20260725
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 -0
- package/dist/index.full.js +57397 -0
- package/dist/index.full.min.js +49 -0
- package/dist/index.full.min.js.map +1 -0
- package/dist/index.full.min.mjs +49 -0
- package/dist/index.full.min.mjs.map +1 -0
- package/dist/index.full.mjs +56848 -0
- package/dist/locale/af.js +193 -0
- package/dist/locale/af.min.js +3 -0
- package/dist/locale/af.min.js.map +1 -0
- package/dist/locale/af.min.mjs +3 -0
- package/dist/locale/af.min.mjs.map +1 -0
- package/dist/locale/af.mjs +186 -0
- package/dist/locale/ar-eg.js +193 -0
- package/dist/locale/ar-eg.min.js +3 -0
- package/dist/locale/ar-eg.min.js.map +1 -0
- package/dist/locale/ar-eg.min.mjs +3 -0
- package/dist/locale/ar-eg.min.mjs.map +1 -0
- package/dist/locale/ar-eg.mjs +186 -0
- package/dist/locale/ar.js +193 -0
- package/dist/locale/ar.min.js +3 -0
- package/dist/locale/ar.min.js.map +1 -0
- package/dist/locale/ar.min.mjs +3 -0
- package/dist/locale/ar.min.mjs.map +1 -0
- package/dist/locale/ar.mjs +186 -0
- package/dist/locale/az.js +194 -0
- package/dist/locale/az.min.js +3 -0
- package/dist/locale/az.min.js.map +1 -0
- package/dist/locale/az.min.mjs +3 -0
- package/dist/locale/az.min.mjs.map +1 -0
- package/dist/locale/az.mjs +187 -0
- package/dist/locale/bg.js +193 -0
- package/dist/locale/bg.min.js +3 -0
- package/dist/locale/bg.min.js.map +1 -0
- package/dist/locale/bg.min.mjs +3 -0
- package/dist/locale/bg.min.mjs.map +1 -0
- package/dist/locale/bg.mjs +186 -0
- package/dist/locale/bn.js +193 -0
- package/dist/locale/bn.min.js +3 -0
- package/dist/locale/bn.min.js.map +1 -0
- package/dist/locale/bn.min.mjs +3 -0
- package/dist/locale/bn.min.mjs.map +1 -0
- package/dist/locale/bn.mjs +186 -0
- package/dist/locale/ca.js +193 -0
- package/dist/locale/ca.min.js +3 -0
- package/dist/locale/ca.min.js.map +1 -0
- package/dist/locale/ca.min.mjs +3 -0
- package/dist/locale/ca.min.mjs.map +1 -0
- package/dist/locale/ca.mjs +186 -0
- package/dist/locale/ckb.js +193 -0
- package/dist/locale/ckb.min.js +3 -0
- package/dist/locale/ckb.min.js.map +1 -0
- package/dist/locale/ckb.min.mjs +3 -0
- package/dist/locale/ckb.min.mjs.map +1 -0
- package/dist/locale/ckb.mjs +186 -0
- package/dist/locale/cs.js +195 -0
- package/dist/locale/cs.min.js +3 -0
- package/dist/locale/cs.min.js.map +1 -0
- package/dist/locale/cs.min.mjs +3 -0
- package/dist/locale/cs.min.mjs.map +1 -0
- package/dist/locale/cs.mjs +188 -0
- package/dist/locale/da.js +193 -0
- package/dist/locale/da.min.js +3 -0
- package/dist/locale/da.min.js.map +1 -0
- package/dist/locale/da.min.mjs +3 -0
- package/dist/locale/da.min.mjs.map +1 -0
- package/dist/locale/da.mjs +186 -0
- package/dist/locale/de.js +195 -0
- package/dist/locale/de.min.js +3 -0
- package/dist/locale/de.min.js.map +1 -0
- package/dist/locale/de.min.mjs +3 -0
- package/dist/locale/de.min.mjs.map +1 -0
- package/dist/locale/de.mjs +188 -0
- package/dist/locale/el.js +193 -0
- package/dist/locale/el.min.js +3 -0
- package/dist/locale/el.min.js.map +1 -0
- package/dist/locale/el.min.mjs +3 -0
- package/dist/locale/el.min.mjs.map +1 -0
- package/dist/locale/el.mjs +186 -0
- package/dist/locale/en.js +193 -0
- package/dist/locale/en.min.js +3 -0
- package/dist/locale/en.min.js.map +1 -0
- package/dist/locale/en.min.mjs +3 -0
- package/dist/locale/en.min.mjs.map +1 -0
- package/dist/locale/en.mjs +186 -0
- package/dist/locale/eo.js +193 -0
- package/dist/locale/eo.min.js +3 -0
- package/dist/locale/eo.min.js.map +1 -0
- package/dist/locale/eo.min.mjs +3 -0
- package/dist/locale/eo.min.mjs.map +1 -0
- package/dist/locale/eo.mjs +186 -0
- package/dist/locale/es.js +193 -0
- package/dist/locale/es.min.js +3 -0
- package/dist/locale/es.min.js.map +1 -0
- package/dist/locale/es.min.mjs +3 -0
- package/dist/locale/es.min.mjs.map +1 -0
- package/dist/locale/es.mjs +186 -0
- package/dist/locale/et.js +193 -0
- package/dist/locale/et.min.js +3 -0
- package/dist/locale/et.min.js.map +1 -0
- package/dist/locale/et.min.mjs +3 -0
- package/dist/locale/et.min.mjs.map +1 -0
- package/dist/locale/et.mjs +186 -0
- package/dist/locale/eu.js +193 -0
- package/dist/locale/eu.min.js +3 -0
- package/dist/locale/eu.min.js.map +1 -0
- package/dist/locale/eu.min.mjs +3 -0
- package/dist/locale/eu.min.mjs.map +1 -0
- package/dist/locale/eu.mjs +186 -0
- package/dist/locale/fa.js +193 -0
- package/dist/locale/fa.min.js +3 -0
- package/dist/locale/fa.min.js.map +1 -0
- package/dist/locale/fa.min.mjs +3 -0
- package/dist/locale/fa.min.mjs.map +1 -0
- package/dist/locale/fa.mjs +186 -0
- package/dist/locale/fi.js +193 -0
- package/dist/locale/fi.min.js +3 -0
- package/dist/locale/fi.min.js.map +1 -0
- package/dist/locale/fi.min.mjs +3 -0
- package/dist/locale/fi.min.mjs.map +1 -0
- package/dist/locale/fi.mjs +186 -0
- package/dist/locale/fr.js +193 -0
- package/dist/locale/fr.min.js +3 -0
- package/dist/locale/fr.min.js.map +1 -0
- package/dist/locale/fr.min.mjs +3 -0
- package/dist/locale/fr.min.mjs.map +1 -0
- package/dist/locale/fr.mjs +186 -0
- package/dist/locale/he.js +193 -0
- package/dist/locale/he.min.js +3 -0
- package/dist/locale/he.min.js.map +1 -0
- package/dist/locale/he.min.mjs +3 -0
- package/dist/locale/he.min.mjs.map +1 -0
- package/dist/locale/he.mjs +186 -0
- package/dist/locale/hi.js +193 -0
- package/dist/locale/hi.min.js +3 -0
- package/dist/locale/hi.min.js.map +1 -0
- package/dist/locale/hi.min.mjs +3 -0
- package/dist/locale/hi.min.mjs.map +1 -0
- package/dist/locale/hi.mjs +186 -0
- package/dist/locale/hr.js +193 -0
- package/dist/locale/hr.min.js +3 -0
- package/dist/locale/hr.min.js.map +1 -0
- package/dist/locale/hr.min.mjs +3 -0
- package/dist/locale/hr.min.mjs.map +1 -0
- package/dist/locale/hr.mjs +186 -0
- package/dist/locale/hu.js +193 -0
- package/dist/locale/hu.min.js +3 -0
- package/dist/locale/hu.min.js.map +1 -0
- package/dist/locale/hu.min.mjs +3 -0
- package/dist/locale/hu.min.mjs.map +1 -0
- package/dist/locale/hu.mjs +186 -0
- package/dist/locale/hy-am.js +193 -0
- package/dist/locale/hy-am.min.js +3 -0
- package/dist/locale/hy-am.min.js.map +1 -0
- package/dist/locale/hy-am.min.mjs +3 -0
- package/dist/locale/hy-am.min.mjs.map +1 -0
- package/dist/locale/hy-am.mjs +186 -0
- package/dist/locale/id.js +193 -0
- package/dist/locale/id.min.js +3 -0
- package/dist/locale/id.min.js.map +1 -0
- package/dist/locale/id.min.mjs +3 -0
- package/dist/locale/id.min.mjs.map +1 -0
- package/dist/locale/id.mjs +186 -0
- package/dist/locale/it.js +193 -0
- package/dist/locale/it.min.js +3 -0
- package/dist/locale/it.min.js.map +1 -0
- package/dist/locale/it.min.mjs +3 -0
- package/dist/locale/it.min.mjs.map +1 -0
- package/dist/locale/it.mjs +186 -0
- package/dist/locale/ja.js +193 -0
- package/dist/locale/ja.min.js +3 -0
- package/dist/locale/ja.min.js.map +1 -0
- package/dist/locale/ja.min.mjs +3 -0
- package/dist/locale/ja.min.mjs.map +1 -0
- package/dist/locale/ja.mjs +186 -0
- package/dist/locale/kk.js +193 -0
- package/dist/locale/kk.min.js +3 -0
- package/dist/locale/kk.min.js.map +1 -0
- package/dist/locale/kk.min.mjs +3 -0
- package/dist/locale/kk.min.mjs.map +1 -0
- package/dist/locale/kk.mjs +186 -0
- package/dist/locale/km.js +193 -0
- package/dist/locale/km.min.js +3 -0
- package/dist/locale/km.min.js.map +1 -0
- package/dist/locale/km.min.mjs +3 -0
- package/dist/locale/km.min.mjs.map +1 -0
- package/dist/locale/km.mjs +186 -0
- package/dist/locale/ko.js +193 -0
- package/dist/locale/ko.min.js +3 -0
- package/dist/locale/ko.min.js.map +1 -0
- package/dist/locale/ko.min.mjs +3 -0
- package/dist/locale/ko.min.mjs.map +1 -0
- package/dist/locale/ko.mjs +186 -0
- package/dist/locale/ku.js +193 -0
- package/dist/locale/ku.min.js +3 -0
- package/dist/locale/ku.min.js.map +1 -0
- package/dist/locale/ku.min.mjs +3 -0
- package/dist/locale/ku.min.mjs.map +1 -0
- package/dist/locale/ku.mjs +186 -0
- package/dist/locale/ky.js +193 -0
- package/dist/locale/ky.min.js +3 -0
- package/dist/locale/ky.min.js.map +1 -0
- package/dist/locale/ky.min.mjs +3 -0
- package/dist/locale/ky.min.mjs.map +1 -0
- package/dist/locale/ky.mjs +186 -0
- package/dist/locale/lo.js +193 -0
- package/dist/locale/lo.min.js +3 -0
- package/dist/locale/lo.min.js.map +1 -0
- package/dist/locale/lo.min.mjs +3 -0
- package/dist/locale/lo.min.mjs.map +1 -0
- package/dist/locale/lo.mjs +186 -0
- package/dist/locale/lt.js +193 -0
- package/dist/locale/lt.min.js +3 -0
- package/dist/locale/lt.min.js.map +1 -0
- package/dist/locale/lt.min.mjs +3 -0
- package/dist/locale/lt.min.mjs.map +1 -0
- package/dist/locale/lt.mjs +186 -0
- package/dist/locale/lv.js +193 -0
- package/dist/locale/lv.min.js +3 -0
- package/dist/locale/lv.min.js.map +1 -0
- package/dist/locale/lv.min.mjs +3 -0
- package/dist/locale/lv.min.mjs.map +1 -0
- package/dist/locale/lv.mjs +186 -0
- package/dist/locale/mg.js +193 -0
- package/dist/locale/mg.min.js +3 -0
- package/dist/locale/mg.min.js.map +1 -0
- package/dist/locale/mg.min.mjs +3 -0
- package/dist/locale/mg.min.mjs.map +1 -0
- package/dist/locale/mg.mjs +186 -0
- package/dist/locale/mn.js +193 -0
- package/dist/locale/mn.min.js +3 -0
- package/dist/locale/mn.min.js.map +1 -0
- package/dist/locale/mn.min.mjs +3 -0
- package/dist/locale/mn.min.mjs.map +1 -0
- package/dist/locale/mn.mjs +186 -0
- package/dist/locale/ms.js +195 -0
- package/dist/locale/ms.min.js +3 -0
- package/dist/locale/ms.min.js.map +1 -0
- package/dist/locale/ms.min.mjs +3 -0
- package/dist/locale/ms.min.mjs.map +1 -0
- package/dist/locale/ms.mjs +188 -0
- package/dist/locale/my.js +193 -0
- package/dist/locale/my.min.js +3 -0
- package/dist/locale/my.min.js.map +1 -0
- package/dist/locale/my.min.mjs +3 -0
- package/dist/locale/my.min.mjs.map +1 -0
- package/dist/locale/my.mjs +186 -0
- package/dist/locale/nb-no.js +193 -0
- package/dist/locale/nb-no.min.js +3 -0
- package/dist/locale/nb-no.min.js.map +1 -0
- package/dist/locale/nb-no.min.mjs +3 -0
- package/dist/locale/nb-no.min.mjs.map +1 -0
- package/dist/locale/nb-no.mjs +186 -0
- package/dist/locale/nl.js +193 -0
- package/dist/locale/nl.min.js +3 -0
- package/dist/locale/nl.min.js.map +1 -0
- package/dist/locale/nl.min.mjs +3 -0
- package/dist/locale/nl.min.mjs.map +1 -0
- package/dist/locale/nl.mjs +186 -0
- package/dist/locale/no.js +193 -0
- package/dist/locale/no.min.js +3 -0
- package/dist/locale/no.min.js.map +1 -0
- package/dist/locale/no.min.mjs +3 -0
- package/dist/locale/no.min.mjs.map +1 -0
- package/dist/locale/no.mjs +186 -0
- package/dist/locale/pa.js +193 -0
- package/dist/locale/pa.min.js +3 -0
- package/dist/locale/pa.min.js.map +1 -0
- package/dist/locale/pa.min.mjs +3 -0
- package/dist/locale/pa.min.mjs.map +1 -0
- package/dist/locale/pa.mjs +186 -0
- package/dist/locale/pl.js +193 -0
- package/dist/locale/pl.min.js +3 -0
- package/dist/locale/pl.min.js.map +1 -0
- package/dist/locale/pl.min.mjs +3 -0
- package/dist/locale/pl.min.mjs.map +1 -0
- package/dist/locale/pl.mjs +186 -0
- package/dist/locale/pt-br.js +193 -0
- package/dist/locale/pt-br.min.js +3 -0
- package/dist/locale/pt-br.min.js.map +1 -0
- package/dist/locale/pt-br.min.mjs +3 -0
- package/dist/locale/pt-br.min.mjs.map +1 -0
- package/dist/locale/pt-br.mjs +186 -0
- package/dist/locale/pt.js +193 -0
- package/dist/locale/pt.min.js +3 -0
- package/dist/locale/pt.min.js.map +1 -0
- package/dist/locale/pt.min.mjs +3 -0
- package/dist/locale/pt.min.mjs.map +1 -0
- package/dist/locale/pt.mjs +186 -0
- package/dist/locale/ro.js +193 -0
- package/dist/locale/ro.min.js +3 -0
- package/dist/locale/ro.min.js.map +1 -0
- package/dist/locale/ro.min.mjs +3 -0
- package/dist/locale/ro.min.mjs.map +1 -0
- package/dist/locale/ro.mjs +186 -0
- package/dist/locale/ru.js +193 -0
- package/dist/locale/ru.min.js +3 -0
- package/dist/locale/ru.min.js.map +1 -0
- package/dist/locale/ru.min.mjs +3 -0
- package/dist/locale/ru.min.mjs.map +1 -0
- package/dist/locale/ru.mjs +186 -0
- package/dist/locale/sk.js +195 -0
- package/dist/locale/sk.min.js +3 -0
- package/dist/locale/sk.min.js.map +1 -0
- package/dist/locale/sk.min.mjs +3 -0
- package/dist/locale/sk.min.mjs.map +1 -0
- package/dist/locale/sk.mjs +188 -0
- package/dist/locale/sl.js +193 -0
- package/dist/locale/sl.min.js +3 -0
- package/dist/locale/sl.min.js.map +1 -0
- package/dist/locale/sl.min.mjs +3 -0
- package/dist/locale/sl.min.mjs.map +1 -0
- package/dist/locale/sl.mjs +186 -0
- package/dist/locale/sr.js +193 -0
- package/dist/locale/sr.min.js +3 -0
- package/dist/locale/sr.min.js.map +1 -0
- package/dist/locale/sr.min.mjs +3 -0
- package/dist/locale/sr.min.mjs.map +1 -0
- package/dist/locale/sr.mjs +186 -0
- package/dist/locale/sv.js +193 -0
- package/dist/locale/sv.min.js +3 -0
- package/dist/locale/sv.min.js.map +1 -0
- package/dist/locale/sv.min.mjs +3 -0
- package/dist/locale/sv.min.mjs.map +1 -0
- package/dist/locale/sv.mjs +186 -0
- package/dist/locale/sw.js +193 -0
- package/dist/locale/sw.min.js +3 -0
- package/dist/locale/sw.min.js.map +1 -0
- package/dist/locale/sw.min.mjs +3 -0
- package/dist/locale/sw.min.mjs.map +1 -0
- package/dist/locale/sw.mjs +186 -0
- package/dist/locale/ta.js +193 -0
- package/dist/locale/ta.min.js +3 -0
- package/dist/locale/ta.min.js.map +1 -0
- package/dist/locale/ta.min.mjs +3 -0
- package/dist/locale/ta.min.mjs.map +1 -0
- package/dist/locale/ta.mjs +186 -0
- package/dist/locale/te.js +193 -0
- package/dist/locale/te.min.js +3 -0
- package/dist/locale/te.min.js.map +1 -0
- package/dist/locale/te.min.mjs +3 -0
- package/dist/locale/te.min.mjs.map +1 -0
- package/dist/locale/te.mjs +186 -0
- package/dist/locale/th.js +193 -0
- package/dist/locale/th.min.js +3 -0
- package/dist/locale/th.min.js.map +1 -0
- package/dist/locale/th.min.mjs +3 -0
- package/dist/locale/th.min.mjs.map +1 -0
- package/dist/locale/th.mjs +186 -0
- package/dist/locale/tk.js +193 -0
- package/dist/locale/tk.min.js +3 -0
- package/dist/locale/tk.min.js.map +1 -0
- package/dist/locale/tk.min.mjs +3 -0
- package/dist/locale/tk.min.mjs.map +1 -0
- package/dist/locale/tk.mjs +186 -0
- package/dist/locale/tr.js +193 -0
- package/dist/locale/tr.min.js +3 -0
- package/dist/locale/tr.min.js.map +1 -0
- package/dist/locale/tr.min.mjs +3 -0
- package/dist/locale/tr.min.mjs.map +1 -0
- package/dist/locale/tr.mjs +186 -0
- package/dist/locale/ug-cn.js +193 -0
- package/dist/locale/ug-cn.min.js +3 -0
- package/dist/locale/ug-cn.min.js.map +1 -0
- package/dist/locale/ug-cn.min.mjs +3 -0
- package/dist/locale/ug-cn.min.mjs.map +1 -0
- package/dist/locale/ug-cn.mjs +186 -0
- package/dist/locale/uk.js +193 -0
- package/dist/locale/uk.min.js +3 -0
- package/dist/locale/uk.min.js.map +1 -0
- package/dist/locale/uk.min.mjs +3 -0
- package/dist/locale/uk.min.mjs.map +1 -0
- package/dist/locale/uk.mjs +186 -0
- package/dist/locale/uz-uz.js +193 -0
- package/dist/locale/uz-uz.min.js +3 -0
- package/dist/locale/uz-uz.min.js.map +1 -0
- package/dist/locale/uz-uz.min.mjs +3 -0
- package/dist/locale/uz-uz.min.mjs.map +1 -0
- package/dist/locale/uz-uz.mjs +186 -0
- package/dist/locale/vi.js +193 -0
- package/dist/locale/vi.min.js +3 -0
- package/dist/locale/vi.min.js.map +1 -0
- package/dist/locale/vi.min.mjs +3 -0
- package/dist/locale/vi.min.mjs.map +1 -0
- package/dist/locale/vi.mjs +186 -0
- package/dist/locale/zh-cn.js +193 -0
- package/dist/locale/zh-cn.min.js +3 -0
- package/dist/locale/zh-cn.min.js.map +1 -0
- package/dist/locale/zh-cn.min.mjs +3 -0
- package/dist/locale/zh-cn.min.mjs.map +1 -0
- package/dist/locale/zh-cn.mjs +186 -0
- package/dist/locale/zh-hk.js +193 -0
- package/dist/locale/zh-hk.min.js +3 -0
- package/dist/locale/zh-hk.min.js.map +1 -0
- package/dist/locale/zh-hk.min.mjs +3 -0
- package/dist/locale/zh-hk.min.mjs.map +1 -0
- package/dist/locale/zh-hk.mjs +186 -0
- package/dist/locale/zh-mo.js +193 -0
- package/dist/locale/zh-mo.min.js +3 -0
- package/dist/locale/zh-mo.min.js.map +1 -0
- package/dist/locale/zh-mo.min.mjs +3 -0
- package/dist/locale/zh-mo.min.mjs.map +1 -0
- package/dist/locale/zh-mo.mjs +186 -0
- package/dist/locale/zh-tw.js +193 -0
- package/dist/locale/zh-tw.min.js +3 -0
- package/dist/locale/zh-tw.min.js.map +1 -0
- package/dist/locale/zh-tw.min.mjs +3 -0
- package/dist/locale/zh-tw.min.mjs.map +1 -0
- package/dist/locale/zh-tw.mjs +186 -0
- package/es/component.mjs +3 -3
- package/es/components/anchor/src/anchor.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/button/src/use-button.d.ts +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/checkbox/src/checkbox.d.ts +3 -3
- package/es/components/color-picker/src/color-picker.vue.d.ts +1 -1
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/es/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +3 -3
- package/es/components/date-picker/src/props.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +3 -3
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +2 -2
- package/es/components/drawer/src/drawer.vue.d.ts +3 -3
- package/es/components/dropdown/src/dropdown.vue.d.ts +18 -18
- package/es/components/index.d.ts +2 -2
- package/es/components/index.mjs +6 -6
- package/es/components/menu/src/menu.d.ts +1 -1
- package/es/components/menu/src/utils/menu-item.mjs +1 -1
- package/es/components/menu/src/utils/submenu.mjs +1 -1
- package/es/components/message/src/message.vue.d.ts +1 -1
- package/es/components/message-box/src/index.vue.d.ts +4 -4
- package/es/components/notification/index.d.ts +2 -2
- package/es/components/notification/src/notification.d.ts +23 -2
- package/es/components/notification/src/notification.mjs +14 -0
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +4 -2
- package/es/components/notification/src/notification.vue_vue_type_script_setup_true_lang.mjs +83 -27
- package/es/components/notification/src/notification.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/notification/style/css.mjs +1 -0
- package/es/components/notification/style/index.mjs +1 -0
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
- package/es/components/popover/src/popover.vue.d.ts +3 -3
- package/es/components/radio/src/radio-button.d.ts +3 -3
- package/es/components/radio/src/radio.d.ts +6 -6
- package/es/components/segmented/src/segmented.d.ts +1 -1
- package/es/components/select/src/option.d.ts +1 -1
- package/es/components/select/src/option.vue.d.ts +2 -2
- package/es/components/select/src/select.d.ts +1 -1
- package/es/components/select/src/select.vue.d.ts +24 -24
- package/es/components/select/src/useSelect.d.ts +4 -4
- package/es/components/select-v2/src/select.vue.d.ts +15 -15
- package/es/components/table/src/filter-panel.vue.d.ts +14 -14
- package/es/components/table/src/table-column/defaults.d.ts +2 -2
- package/es/components/table/src/table.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +3 -3
- package/es/components/time-picker/src/common/props.d.ts +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker.d.ts +3 -3
- package/es/components/tooltip/src/content.vue.d.ts +3 -3
- package/es/components/tooltip/src/tooltip.vue.d.ts +5 -5
- package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/es/components/tree-select/src/tree-select.vue.d.ts +4 -4
- package/es/constants/index.mjs +2 -2
- package/es/directives/trap-focus/index.mjs +1 -1
- package/es/index.d.ts +2 -2
- package/es/index.mjs +9 -9
- package/es/plugin.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/component.js +109 -109
- package/lib/components/anchor/src/anchor.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +1 -1
- package/lib/components/button/src/use-button.d.ts +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +14 -14
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js +12 -12
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.d.ts +3 -3
- package/lib/components/color-picker/src/color-picker.vue.d.ts +1 -1
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/lib/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +3 -3
- package/lib/components/date-picker/src/props.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +3 -3
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +2 -2
- package/lib/components/drawer/src/drawer.vue.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown.vue.d.ts +18 -18
- package/lib/components/index.d.ts +2 -2
- package/lib/components/index.js +125 -125
- package/lib/components/menu/src/menu.d.ts +1 -1
- package/lib/components/menu/src/utils/menu-item.js +11 -11
- package/lib/components/menu/src/utils/menu-item.js.map +1 -1
- package/lib/components/menu/src/utils/submenu.js +9 -9
- package/lib/components/menu/src/utils/submenu.js.map +1 -1
- package/lib/components/message/src/message.vue.d.ts +1 -1
- package/lib/components/message-box/src/index.vue.d.ts +4 -4
- package/lib/components/notification/index.d.ts +2 -2
- package/lib/components/notification/src/notification.d.ts +23 -2
- package/lib/components/notification/src/notification.js +14 -0
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +4 -2
- package/lib/components/notification/src/notification.vue_vue_type_script_setup_true_lang.js +81 -25
- package/lib/components/notification/src/notification.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/notification/style/css.js +1 -0
- package/lib/components/notification/style/index.js +1 -0
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
- package/lib/components/popover/src/popover.vue.d.ts +3 -3
- package/lib/components/radio/src/radio-button.d.ts +3 -3
- package/lib/components/radio/src/radio.d.ts +6 -6
- package/lib/components/segmented/src/segmented.d.ts +1 -1
- package/lib/components/select/src/option.d.ts +1 -1
- package/lib/components/select/src/option.vue.d.ts +2 -2
- package/lib/components/select/src/select.d.ts +1 -1
- package/lib/components/select/src/select.vue.d.ts +24 -24
- package/lib/components/select/src/useSelect.d.ts +4 -4
- package/lib/components/select-v2/src/select.vue.d.ts +15 -15
- package/lib/components/table/src/filter-panel.vue.d.ts +14 -14
- package/lib/components/table/src/table-column/defaults.d.ts +2 -2
- package/lib/components/table/src/table.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +3 -3
- package/lib/components/time-picker/src/common/props.d.ts +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker.d.ts +3 -3
- package/lib/components/tooltip/src/content.vue.d.ts +3 -3
- package/lib/components/tooltip/src/tooltip.vue.d.ts +5 -5
- package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/lib/components/tree-select/src/tree-select.vue.d.ts +4 -4
- package/lib/constants/index.js +2 -2
- package/lib/directives/trap-focus/index.js +5 -5
- package/lib/directives/trap-focus/index.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +128 -128
- package/lib/plugin.js +12 -12
- package/lib/plugin.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 +15 -3
- package/theme-chalk/el-notification.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/notification.scss +11 -0
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.mjs","names":[],"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 { AppContext, ExtractPublicPropTypes, VNode } from 'vue'\nimport type { ClassValue, IconPropType } from '@element-plus/utils'\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 type NotificationType = (typeof notificationTypes)[number] | ''\n\nexport type NotificationPosition =\n 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'\n\nexport interface NotificationProps {\n /**\n * @description custom class name for Notification\n */\n customClass?: ClassValue\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?: number\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon?: IconPropType\n /**\n * @description notification dom id\n */\n id?: string\n /**\n * @description description text\n */\n message?: string | VNode | (() => VNode)\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?: number\n /**\n * @description callback function when notification clicked\n */\n onClick?: () => void\n /**\n * @description callback function when closed\n */\n onClose: () => void\n /**\n * @description custom position\n */\n position?: NotificationPosition\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description title\n */\n title?: string\n /**\n * @description notification type\n */\n type?: NotificationType\n /**\n * @description initial zIndex\n */\n zIndex?: number\n /**\n * @description custom close icon, default is Close\n */\n closeIcon?: IconPropType\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\nexport const notificationProps = buildProps({\n /**\n * @description custom class name for Notification\n */\n customClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\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)\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\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> | string | 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"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"notification.mjs","names":[],"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 { AppContext, ExtractPublicPropTypes, Ref, VNode } from 'vue'\nimport type { ClassValue, IconPropType } from '@element-plus/utils'\nimport type { ProgressProps } from '@element-plus/components/progress'\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 type NotificationType = (typeof notificationTypes)[number] | ''\n\nexport type NotificationPosition =\n 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'\n\n/**\n * Progress bar configuration. `percentage`, `type`, `duration`, `indeterminate`\n * and `width` are excluded: the bar is always a countdown-driven line.\n */\nexport type NotificationProgress = Omit<\n Partial<ProgressProps>,\n 'percentage' | 'type' | 'duration' | 'indeterminate' | 'width'\n>\n\nexport interface NotificationProps {\n /**\n * @description custom class name for Notification\n */\n customClass?: ClassValue\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?: number\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon?: IconPropType\n /**\n * @description notification dom id\n */\n id?: string\n /**\n * @description description text\n */\n message?: string | VNode | (() => VNode)\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?: number\n /**\n * @description callback function when notification clicked\n */\n onClick?: () => void\n /**\n * @description callback function when closed\n */\n onClose: () => void\n /**\n * @description custom position\n */\n position?: NotificationPosition\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description title\n */\n title?: string\n /**\n * @description notification type\n */\n type?: NotificationType\n /**\n * @description initial zIndex\n */\n zIndex?: number\n /**\n * @description custom close icon, default is Close\n */\n closeIcon?: IconPropType\n /**\n * @description progress bar indicating auto-close countdown. Set `true` to show a default progress bar, or pass an object to customize it (options of `ElProgress`)\n */\n progress?: boolean | NotificationProgress\n /**\n * @description whether to pause the timer when hovering over the notification\n */\n pauseOnHover?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\nexport const notificationProps = buildProps({\n /**\n * @description custom class name for Notification\n */\n customClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\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 /**\n * @description progress bar indicating auto-close countdown. Set `true` to show a default progress bar, or pass an object to customize it (options of `ElProgress`)\n */\n progress: {\n type: definePropType<boolean | NotificationProgress>([Boolean, Object]),\n default: false,\n },\n /**\n * @description whether to pause the timer when hovering over the notification\n */\n pauseOnHover: {\n type: Boolean,\n default: true,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\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 interface NotificationExposed {\n /** @description close notification */\n close: () => void\n visible: Ref<boolean>\n}\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> | string | 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"],"mappings":";;;;AAQA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACD;;;;AA0FD,MAAa,oBAAoB,WAAW;;;;CAI1C,aAAa;EACX,MAAM,eAA2B;GAAC;GAAQ;GAAO;GAAQ;GAAQ,CAAC;EAClE,SAAS;EACV;;;;CAID,0BAA0B;;;;CAI1B,UAAU;EACR,MAAM;EACN,SAAS;EACV;;;;CAID,MAAM,EACJ,MAAM,cACP;;;;CAID,IAAI;EACF,MAAM;EACN,SAAS;EACV;;;;CAID,SAAS;EACP,MAAM,eAA+C;GACnD;GACA;GACA;GACD,CAAC;EACF,SAAS;EACV;;;;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,SAAS;EACP,MAAM,eAA2B,SAAS;EAC1C,eAAe,KAAA;EAChB;;;;CAID,SAAS;EACP,MAAM,eAA2B,SAAS;EAC1C,UAAU;EACX;;;;CAID,UAAU;EACR,MAAM;EACN,QAAQ;GAAC;GAAa;GAAY;GAAgB;GAAc;EAChE,SAAS;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,OAAO;EACL,MAAM;EACN,SAAS;EACV;;;;CAID,MAAM;EACJ,MAAM;EACN,QAAQ,CAAC,GAAG,mBAAmB,GAAG;EAClC,SAAS;EACV;;;;CAID,QAAQ;;;;CAIR,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,UAAU;EACR,MAAM,eAA+C,CAAC,SAAS,OAAO,CAAC;EACvE,SAAS;EACV;;;;CAID,cAAc;EACZ,MAAM;EACN,SAAS;EACV;CACF,CAAU;AASX,MAAa,oBAAoB,EAC/B,eAAe,MAChB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconPropType } from "../../../utils/vue/icon.js";
|
|
2
2
|
import { ClassValue } from "../../../utils/typescript.js";
|
|
3
|
-
import { NotificationPosition, NotificationProps, NotificationType } from "./notification.js";
|
|
3
|
+
import { NotificationPosition, NotificationProgress, NotificationProps, NotificationType } from "./notification.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region ../../packages/components/notification/src/notification.vue.d.ts
|
|
@@ -18,12 +18,14 @@ declare const __VLS_base: _$vue.DefineComponent<NotificationProps, {
|
|
|
18
18
|
onDestroy?: (() => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
type: NotificationType;
|
|
21
|
-
message: string | _$vue.VNode | (() => _$vue.VNode);
|
|
22
21
|
offset: number;
|
|
23
22
|
position: NotificationPosition;
|
|
23
|
+
message: string | _$vue.VNode | (() => _$vue.VNode);
|
|
24
24
|
title: string;
|
|
25
25
|
id: string;
|
|
26
26
|
onClick: () => void;
|
|
27
|
+
progress: boolean | NotificationProgress;
|
|
28
|
+
pauseOnHover: boolean;
|
|
27
29
|
closeIcon: IconPropType;
|
|
28
30
|
showClose: boolean;
|
|
29
31
|
duration: number;
|
|
@@ -3,9 +3,10 @@ import { getEventCode } from "../../../utils/dom/event.mjs";
|
|
|
3
3
|
import { TypeComponentsMap } from "../../../utils/vue/icon.mjs";
|
|
4
4
|
import { ElIcon } from "../../icon/index.mjs";
|
|
5
5
|
import { useGlobalComponentSettings } from "../../config-provider/src/hooks/use-global-config.mjs";
|
|
6
|
+
import { ElProgress } from "../../progress/index.mjs";
|
|
6
7
|
import { notificationEmits, notificationProps } from "./notification.mjs";
|
|
7
|
-
import { useEventListener, useTimeoutFn } from "@vueuse/core";
|
|
8
|
-
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, vShow, withCtx, withDirectives, withModifiers } from "vue";
|
|
8
|
+
import { useEventListener, useIntervalFn, useTimeoutFn } from "@vueuse/core";
|
|
9
|
+
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, vShow, withCtx, withDirectives, withModifiers } from "vue";
|
|
9
10
|
//#region ../../packages/components/notification/src/notification.vue?vue&type=script&setup=true&lang.ts
|
|
10
11
|
const _hoisted_1 = ["id"];
|
|
11
12
|
const _hoisted_2 = ["textContent"];
|
|
@@ -22,10 +23,28 @@ var notification_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ d
|
|
|
22
23
|
const { nextZIndex, currentZIndex } = zIndex;
|
|
23
24
|
const visible = ref(false);
|
|
24
25
|
let timer = void 0;
|
|
26
|
+
const percentage = ref(100);
|
|
27
|
+
let elapsed = 0;
|
|
28
|
+
let startedAt = 0;
|
|
25
29
|
const typeClass = computed(() => {
|
|
26
30
|
const type = props.type;
|
|
27
31
|
return type && TypeComponentsMap[props.type] ? ns.m(type) : "";
|
|
28
32
|
});
|
|
33
|
+
const showProgressBar = computed(() => !!props.progress && props.duration > 0);
|
|
34
|
+
const progressStatus = computed(() => {
|
|
35
|
+
switch (props.type) {
|
|
36
|
+
case "success": return "success";
|
|
37
|
+
case "warning": return "warning";
|
|
38
|
+
case "error": return "exception";
|
|
39
|
+
default: return;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const progressProps = computed(() => ({
|
|
43
|
+
status: progressStatus.value,
|
|
44
|
+
strokeWidth: 3,
|
|
45
|
+
showText: false,
|
|
46
|
+
...typeof props.progress === "object" ? props.progress : void 0
|
|
47
|
+
}));
|
|
29
48
|
const iconComponent = computed(() => {
|
|
30
49
|
if (!props.type) return props.icon;
|
|
31
50
|
return TypeComponentsMap[props.type] || props.icon;
|
|
@@ -38,16 +57,43 @@ var notification_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ d
|
|
|
38
57
|
zIndex: props.zIndex ?? currentZIndex.value
|
|
39
58
|
};
|
|
40
59
|
});
|
|
60
|
+
const { pause: pauseProgress, resume: resumeProgress } = useIntervalFn(() => {
|
|
61
|
+
percentage.value = Math.max(0, 100 - (elapsed + Date.now() - startedAt) / props.duration * 100);
|
|
62
|
+
}, 100, { immediate: false });
|
|
41
63
|
function startTimer() {
|
|
42
|
-
if (props.duration
|
|
64
|
+
if (props.duration <= 0) return;
|
|
65
|
+
timer?.();
|
|
66
|
+
pauseProgress();
|
|
67
|
+
startedAt = Date.now();
|
|
68
|
+
const remaining = Math.max(0, props.duration - elapsed);
|
|
69
|
+
({stop: timer} = useTimeoutFn(() => {
|
|
43
70
|
if (visible.value) close();
|
|
44
|
-
},
|
|
71
|
+
}, remaining));
|
|
72
|
+
if (showProgressBar.value) {
|
|
73
|
+
percentage.value = remaining / props.duration * 100;
|
|
74
|
+
resumeProgress();
|
|
75
|
+
}
|
|
45
76
|
}
|
|
46
77
|
function clearTimer() {
|
|
47
78
|
timer?.();
|
|
79
|
+
pauseProgress();
|
|
80
|
+
if (startedAt > 0) {
|
|
81
|
+
elapsed += Date.now() - startedAt;
|
|
82
|
+
startedAt = 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
let isHovered = false;
|
|
86
|
+
function onMouseEnter() {
|
|
87
|
+
isHovered = true;
|
|
88
|
+
if (props.pauseOnHover) clearTimer();
|
|
89
|
+
}
|
|
90
|
+
function onMouseLeave() {
|
|
91
|
+
isHovered = false;
|
|
92
|
+
if (props.pauseOnHover) startTimer();
|
|
48
93
|
}
|
|
49
94
|
function close() {
|
|
50
95
|
visible.value = false;
|
|
96
|
+
clearTimer();
|
|
51
97
|
}
|
|
52
98
|
function onKeydown(event) {
|
|
53
99
|
switch (getEventCode(event)) {
|
|
@@ -59,6 +105,8 @@ var notification_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ d
|
|
|
59
105
|
if (visible.value) close();
|
|
60
106
|
break;
|
|
61
107
|
default:
|
|
108
|
+
if (isHovered && props.pauseOnHover) break;
|
|
109
|
+
clearTimer();
|
|
62
110
|
startTimer();
|
|
63
111
|
break;
|
|
64
112
|
}
|
|
@@ -90,33 +138,41 @@ var notification_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ d
|
|
|
90
138
|
]),
|
|
91
139
|
style: normalizeStyle(positionStyle.value),
|
|
92
140
|
role: "alert",
|
|
93
|
-
onMouseenter:
|
|
94
|
-
onMouseleave:
|
|
141
|
+
onMouseenter: onMouseEnter,
|
|
142
|
+
onMouseleave: onMouseLeave,
|
|
95
143
|
onClick: _cache[0] || (_cache[0] = (...args) => __props.onClick && __props.onClick(...args))
|
|
96
|
-
}, [
|
|
97
|
-
|
|
98
|
-
class: normalizeClass([unref(ns).e("icon"), typeClass.value])
|
|
99
|
-
}, {
|
|
100
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(iconComponent.value)))]),
|
|
101
|
-
_: 1
|
|
102
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true), createElementVNode("div", { class: normalizeClass(unref(ns).e("group")) }, [
|
|
103
|
-
createElementVNode("h2", {
|
|
104
|
-
class: normalizeClass(unref(ns).e("title")),
|
|
105
|
-
textContent: toDisplayString(__props.title)
|
|
106
|
-
}, null, 10, _hoisted_2),
|
|
107
|
-
withDirectives(createElementVNode("div", {
|
|
108
|
-
class: normalizeClass(unref(ns).e("content")),
|
|
109
|
-
style: normalizeStyle(!!__props.title ? void 0 : { margin: 0 })
|
|
110
|
-
}, [renderSlot(_ctx.$slots, "default", {}, () => [!__props.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(__props.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "), createElementVNode("p", { innerHTML: __props.message }, null, 8, _hoisted_4)], 2112))])], 6), [[vShow, __props.message]]),
|
|
111
|
-
__props.showClose ? (openBlock(), createBlock(unref(ElIcon), {
|
|
144
|
+
}, [
|
|
145
|
+
iconComponent.value ? (openBlock(), createBlock(unref(ElIcon), {
|
|
112
146
|
key: 0,
|
|
113
|
-
class: normalizeClass(unref(ns).e("
|
|
114
|
-
onClick: withModifiers(close, ["stop"])
|
|
147
|
+
class: normalizeClass([unref(ns).e("icon"), typeClass.value])
|
|
115
148
|
}, {
|
|
116
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(
|
|
149
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(iconComponent.value)))]),
|
|
117
150
|
_: 1
|
|
118
|
-
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
119
|
-
|
|
151
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
152
|
+
createElementVNode("div", { class: normalizeClass(unref(ns).e("group")) }, [
|
|
153
|
+
createElementVNode("h2", {
|
|
154
|
+
class: normalizeClass(unref(ns).e("title")),
|
|
155
|
+
textContent: toDisplayString(__props.title)
|
|
156
|
+
}, null, 10, _hoisted_2),
|
|
157
|
+
withDirectives(createElementVNode("div", {
|
|
158
|
+
class: normalizeClass(unref(ns).e("content")),
|
|
159
|
+
style: normalizeStyle(!!__props.title ? void 0 : { margin: 0 })
|
|
160
|
+
}, [renderSlot(_ctx.$slots, "default", {}, () => [!__props.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(__props.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "), createElementVNode("p", { innerHTML: __props.message }, null, 8, _hoisted_4)], 2112))])], 6), [[vShow, __props.message]]),
|
|
161
|
+
__props.showClose ? (openBlock(), createBlock(unref(ElIcon), {
|
|
162
|
+
key: 0,
|
|
163
|
+
class: normalizeClass(unref(ns).e("closeBtn")),
|
|
164
|
+
onClick: withModifiers(close, ["stop"])
|
|
165
|
+
}, {
|
|
166
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(__props.closeIcon)))]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
169
|
+
], 2),
|
|
170
|
+
showProgressBar.value ? (openBlock(), createElementBlock("div", {
|
|
171
|
+
key: 1,
|
|
172
|
+
class: normalizeClass(unref(ns).e("progress")),
|
|
173
|
+
"aria-hidden": "true"
|
|
174
|
+
}, [createVNode(unref(ElProgress), mergeProps(progressProps.value, { percentage: percentage.value }), null, 16, ["percentage"])], 2)) : createCommentVNode("v-if", true)
|
|
175
|
+
], 46, _hoisted_1), [[vShow, visible.value]])]),
|
|
120
176
|
_: 3
|
|
121
177
|
}, 8, ["name", "onBeforeLeave"]);
|
|
122
178
|
};
|
package/es/components/notification/src/notification.vue_vue_type_script_setup_true_lang.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.vue_vue_type_script_setup_true_lang.mjs","names":["$emit"],"sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"
|
|
1
|
+
{"version":3,"file":"notification.vue_vue_type_script_setup_true_lang.mjs","names":["$emit"],"sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"onMouseEnter\"\n @mouseleave=\"onMouseLeave\"\n @click=\"onClick\"\n >\n <el-icon v-if=\"iconComponent\" :class=\"[ns.e('icon'), typeClass]\">\n <component :is=\"iconComponent\" />\n </el-icon>\n <div :class=\"ns.e('group')\">\n <h2 :class=\"ns.e('title')\" v-text=\"title\" />\n <div\n v-show=\"message\"\n :class=\"ns.e('content')\"\n :style=\"!!title ? undefined : { margin: 0 }\"\n >\n <slot>\n <p v-if=\"!dangerouslyUseHTMLString\">{{ message }}</p>\n <!-- Caution here, message could've been compromised, never use user's input as message -->\n <p v-else v-html=\"message\" />\n </slot>\n </div>\n <el-icon v-if=\"showClose\" :class=\"ns.e('closeBtn')\" @click.stop=\"close\">\n <component :is=\"closeIcon\" />\n </el-icon>\n </div>\n <div v-if=\"showProgressBar\" :class=\"ns.e('progress')\" aria-hidden=\"true\">\n <el-progress v-bind=\"progressProps\" :percentage=\"percentage\" />\n </div>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, markRaw, onMounted, ref } from 'vue'\nimport { useEventListener, useIntervalFn, useTimeoutFn } from '@vueuse/core'\nimport { TypeComponentsMap, getEventCode } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElProgress } from '@element-plus/components/progress'\nimport { useGlobalComponentSettings } from '@element-plus/components/config-provider'\nimport { notificationEmits } from './notification'\nimport { Close } from '@element-plus/icons-vue'\n\nimport type { CSSProperties } from 'vue'\nimport type { NotificationProps } from './notification'\n\ndefineOptions({\n name: 'ElNotification',\n})\n\nconst props = withDefaults(defineProps<NotificationProps>(), {\n customClass: '',\n duration: 4500,\n id: '',\n message: '',\n offset: 0,\n onClick: () => undefined,\n position: 'top-right',\n showClose: true,\n title: '',\n type: '',\n closeIcon: markRaw(Close),\n progress: false,\n pauseOnHover: true,\n})\ndefineEmits(notificationEmits)\n\nconst { ns, zIndex } = useGlobalComponentSettings('notification')\nconst { nextZIndex, currentZIndex } = zIndex\n\nconst visible = ref(false)\nlet timer: (() => void) | undefined = undefined\nconst percentage = ref(100)\nlet elapsed = 0\nlet startedAt = 0\n\nconst typeClass = computed(() => {\n const type = props.type\n return type && TypeComponentsMap[props.type] ? ns.m(type) : ''\n})\n\nconst showProgressBar = computed(() => !!props.progress && props.duration > 0)\n\nconst progressStatus = computed<\n 'success' | 'warning' | 'exception' | undefined\n>(() => {\n switch (props.type) {\n case 'success':\n return 'success'\n case 'warning':\n return 'warning'\n case 'error':\n return 'exception'\n default:\n return undefined\n }\n})\n\nconst progressProps = computed(() => ({\n status: progressStatus.value,\n strokeWidth: 3,\n showText: false,\n ...(typeof props.progress === 'object' ? props.progress : undefined),\n}))\n\nconst iconComponent = computed(() => {\n if (!props.type) return props.icon\n return TypeComponentsMap[props.type] || props.icon\n})\n\nconst horizontalClass = computed(() =>\n props.position.endsWith('right') ? 'right' : 'left'\n)\n\nconst verticalProperty = computed(() =>\n props.position.startsWith('top') ? 'top' : 'bottom'\n)\n\nconst positionStyle = computed<CSSProperties>(() => {\n return {\n [verticalProperty.value]: `${props.offset}px`,\n zIndex: props.zIndex ?? currentZIndex.value,\n }\n})\n\n// tick interval matches the 0.1s width transition in the style, keeping the bar smooth\nconst { pause: pauseProgress, resume: resumeProgress } = useIntervalFn(\n () => {\n percentage.value = Math.max(\n 0,\n 100 - ((elapsed + Date.now() - startedAt) / props.duration) * 100\n )\n },\n 100,\n { immediate: false }\n)\n\nfunction startTimer() {\n if (props.duration <= 0) return\n\n timer?.()\n pauseProgress()\n startedAt = Date.now()\n\n const remaining = Math.max(0, props.duration - elapsed)\n\n // close timer with remaining duration\n ;({ stop: timer } = useTimeoutFn(() => {\n if (visible.value) close()\n }, remaining))\n\n // progress bar resumes from current position\n if (showProgressBar.value) {\n percentage.value = (remaining / props.duration) * 100\n resumeProgress()\n }\n}\n\nfunction clearTimer() {\n timer?.()\n pauseProgress()\n if (startedAt > 0) {\n elapsed += Date.now() - startedAt\n startedAt = 0\n }\n}\n\nlet isHovered = false\n\nfunction onMouseEnter() {\n isHovered = true\n if (props.pauseOnHover) clearTimer()\n}\n\nfunction onMouseLeave() {\n isHovered = false\n if (props.pauseOnHover) startTimer()\n}\n\nfunction close() {\n visible.value = false\n clearTimer()\n}\n\nfunction onKeydown(event: KeyboardEvent) {\n const code = getEventCode(event)\n\n switch (code) {\n case EVENT_CODE.delete:\n case EVENT_CODE.backspace:\n clearTimer() // press delete/backspace clear timer\n break\n case EVENT_CODE.esc:\n // press esc to close the notification\n if (visible.value) {\n close()\n }\n break\n default: // resume timer\n // keep the timer paused while the pointer is still over the notification\n if (isHovered && props.pauseOnHover) break\n clearTimer()\n startTimer()\n break\n }\n}\n\n// lifecycle\nonMounted(() => {\n startTimer()\n nextZIndex()\n visible.value = true\n})\n\nuseEventListener(document, 'keydown', onKeydown)\n\ndefineExpose({\n visible,\n /** @description close notification */\n close,\n})\n</script>\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification2.mjs","names":[],"sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"
|
|
1
|
+
{"version":3,"file":"notification2.mjs","names":[],"sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"onMouseEnter\"\n @mouseleave=\"onMouseLeave\"\n @click=\"onClick\"\n >\n <el-icon v-if=\"iconComponent\" :class=\"[ns.e('icon'), typeClass]\">\n <component :is=\"iconComponent\" />\n </el-icon>\n <div :class=\"ns.e('group')\">\n <h2 :class=\"ns.e('title')\" v-text=\"title\" />\n <div\n v-show=\"message\"\n :class=\"ns.e('content')\"\n :style=\"!!title ? undefined : { margin: 0 }\"\n >\n <slot>\n <p v-if=\"!dangerouslyUseHTMLString\">{{ message }}</p>\n <!-- Caution here, message could've been compromised, never use user's input as message -->\n <p v-else v-html=\"message\" />\n </slot>\n </div>\n <el-icon v-if=\"showClose\" :class=\"ns.e('closeBtn')\" @click.stop=\"close\">\n <component :is=\"closeIcon\" />\n </el-icon>\n </div>\n <div v-if=\"showProgressBar\" :class=\"ns.e('progress')\" aria-hidden=\"true\">\n <el-progress v-bind=\"progressProps\" :percentage=\"percentage\" />\n </div>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, markRaw, onMounted, ref } from 'vue'\nimport { useEventListener, useIntervalFn, useTimeoutFn } from '@vueuse/core'\nimport { TypeComponentsMap, getEventCode } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElProgress } from '@element-plus/components/progress'\nimport { useGlobalComponentSettings } from '@element-plus/components/config-provider'\nimport { notificationEmits } from './notification'\nimport { Close } from '@element-plus/icons-vue'\n\nimport type { CSSProperties } from 'vue'\nimport type { NotificationProps } from './notification'\n\ndefineOptions({\n name: 'ElNotification',\n})\n\nconst props = withDefaults(defineProps<NotificationProps>(), {\n customClass: '',\n duration: 4500,\n id: '',\n message: '',\n offset: 0,\n onClick: () => undefined,\n position: 'top-right',\n showClose: true,\n title: '',\n type: '',\n closeIcon: markRaw(Close),\n progress: false,\n pauseOnHover: true,\n})\ndefineEmits(notificationEmits)\n\nconst { ns, zIndex } = useGlobalComponentSettings('notification')\nconst { nextZIndex, currentZIndex } = zIndex\n\nconst visible = ref(false)\nlet timer: (() => void) | undefined = undefined\nconst percentage = ref(100)\nlet elapsed = 0\nlet startedAt = 0\n\nconst typeClass = computed(() => {\n const type = props.type\n return type && TypeComponentsMap[props.type] ? ns.m(type) : ''\n})\n\nconst showProgressBar = computed(() => !!props.progress && props.duration > 0)\n\nconst progressStatus = computed<\n 'success' | 'warning' | 'exception' | undefined\n>(() => {\n switch (props.type) {\n case 'success':\n return 'success'\n case 'warning':\n return 'warning'\n case 'error':\n return 'exception'\n default:\n return undefined\n }\n})\n\nconst progressProps = computed(() => ({\n status: progressStatus.value,\n strokeWidth: 3,\n showText: false,\n ...(typeof props.progress === 'object' ? props.progress : undefined),\n}))\n\nconst iconComponent = computed(() => {\n if (!props.type) return props.icon\n return TypeComponentsMap[props.type] || props.icon\n})\n\nconst horizontalClass = computed(() =>\n props.position.endsWith('right') ? 'right' : 'left'\n)\n\nconst verticalProperty = computed(() =>\n props.position.startsWith('top') ? 'top' : 'bottom'\n)\n\nconst positionStyle = computed<CSSProperties>(() => {\n return {\n [verticalProperty.value]: `${props.offset}px`,\n zIndex: props.zIndex ?? currentZIndex.value,\n }\n})\n\n// tick interval matches the 0.1s width transition in the style, keeping the bar smooth\nconst { pause: pauseProgress, resume: resumeProgress } = useIntervalFn(\n () => {\n percentage.value = Math.max(\n 0,\n 100 - ((elapsed + Date.now() - startedAt) / props.duration) * 100\n )\n },\n 100,\n { immediate: false }\n)\n\nfunction startTimer() {\n if (props.duration <= 0) return\n\n timer?.()\n pauseProgress()\n startedAt = Date.now()\n\n const remaining = Math.max(0, props.duration - elapsed)\n\n // close timer with remaining duration\n ;({ stop: timer } = useTimeoutFn(() => {\n if (visible.value) close()\n }, remaining))\n\n // progress bar resumes from current position\n if (showProgressBar.value) {\n percentage.value = (remaining / props.duration) * 100\n resumeProgress()\n }\n}\n\nfunction clearTimer() {\n timer?.()\n pauseProgress()\n if (startedAt > 0) {\n elapsed += Date.now() - startedAt\n startedAt = 0\n }\n}\n\nlet isHovered = false\n\nfunction onMouseEnter() {\n isHovered = true\n if (props.pauseOnHover) clearTimer()\n}\n\nfunction onMouseLeave() {\n isHovered = false\n if (props.pauseOnHover) startTimer()\n}\n\nfunction close() {\n visible.value = false\n clearTimer()\n}\n\nfunction onKeydown(event: KeyboardEvent) {\n const code = getEventCode(event)\n\n switch (code) {\n case EVENT_CODE.delete:\n case EVENT_CODE.backspace:\n clearTimer() // press delete/backspace clear timer\n break\n case EVENT_CODE.esc:\n // press esc to close the notification\n if (visible.value) {\n close()\n }\n break\n default: // resume timer\n // keep the timer paused while the pointer is still over the notification\n if (isHovered && props.pauseOnHover) break\n clearTimer()\n startTimer()\n break\n }\n}\n\n// lifecycle\nonMounted(() => {\n startTimer()\n nextZIndex()\n visible.value = true\n})\n\nuseEventListener(document, 'keydown', onKeydown)\n\ndefineExpose({\n visible,\n /** @description close notification */\n close,\n})\n</script>\n"],"mappings":""}
|
|
@@ -49,7 +49,7 @@ const notify = function(options = {}, context) {
|
|
|
49
49
|
notifications[position].push({ vm });
|
|
50
50
|
appendTo.appendChild(container.firstElementChild);
|
|
51
51
|
return { close: () => {
|
|
52
|
-
vm.component.exposed.
|
|
52
|
+
vm.component.exposed.close();
|
|
53
53
|
} };
|
|
54
54
|
};
|
|
55
55
|
notificationTypes.forEach((type) => {
|
|
@@ -89,7 +89,7 @@ function close(id, position, userOnClose) {
|
|
|
89
89
|
}
|
|
90
90
|
function closeAll() {
|
|
91
91
|
for (const orientedNotifications of Object.values(notifications)) orientedNotifications.forEach(({ vm }) => {
|
|
92
|
-
vm.component.exposed.
|
|
92
|
+
vm.component.exposed.close();
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
function updateOffsets(position = "top-right") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.mjs","names":["NotificationConstructor"],"sources":["../../../../../../packages/components/notification/src/notify.ts"],"sourcesContent":["import { createVNode, isVNode, render } from 'vue'\nimport {\n debugWarn,\n isClient,\n isElement,\n isFunction,\n isString,\n isUndefined,\n} from '@element-plus/utils'\nimport NotificationConstructor from './notification.vue'\nimport { notificationTypes } from './notification'\n\nimport type {
|
|
1
|
+
{"version":3,"file":"notify.mjs","names":["NotificationConstructor"],"sources":["../../../../../../packages/components/notification/src/notify.ts"],"sourcesContent":["import { createVNode, isVNode, render } from 'vue'\nimport {\n debugWarn,\n isClient,\n isElement,\n isFunction,\n isString,\n isUndefined,\n} from '@element-plus/utils'\nimport NotificationConstructor from './notification.vue'\nimport { notificationTypes } from './notification'\n\nimport type { VNode } from 'vue'\nimport type {\n NotificationExposed,\n NotificationPosition,\n NotificationProps,\n NotificationQueue,\n Notify,\n NotifyFn,\n} from './notification'\n\n// This should be a queue but considering there were `non-autoclosable` notifications.\nconst notifications: Record<NotificationPosition, NotificationQueue> = {\n 'top-left': [],\n 'top-right': [],\n 'bottom-left': [],\n 'bottom-right': [],\n}\n\n// the gap size between each notification\nconst GAP_SIZE = 16\nlet seed = 1\n\nconst notify: NotifyFn & Partial<Notify> = function (options = {}, context) {\n if (!isClient) return { close: () => undefined }\n\n if (isString(options) || isVNode(options)) {\n options = { message: options }\n }\n\n const position = options.position || 'top-right'\n\n let verticalOffset = options.offset || 0\n notifications[position].forEach(({ vm }) => {\n verticalOffset += (vm.el?.offsetHeight || 0) + GAP_SIZE\n })\n verticalOffset += GAP_SIZE\n\n const id = `notification_${seed++}`\n const userOnClose = options.onClose\n const props: Partial<NotificationProps> = {\n ...options,\n offset: verticalOffset,\n id,\n onClose: () => {\n close(id, position, userOnClose)\n },\n }\n\n let appendTo: HTMLElement | null = document.body\n if (isElement(options.appendTo)) {\n appendTo = options.appendTo\n } else if (isString(options.appendTo)) {\n appendTo = document.querySelector(options.appendTo)\n }\n\n // should fallback to default value with a warning\n if (!isElement(appendTo)) {\n debugWarn(\n 'ElNotification',\n 'the appendTo option is not an HTMLElement. Falling back to document.body.'\n )\n appendTo = document.body\n }\n\n const container = document.createElement('div')\n\n const vm = createVNode(\n NotificationConstructor,\n props,\n isFunction(props.message)\n ? props.message\n : isVNode(props.message)\n ? () => props.message\n : null\n )\n vm.appContext = isUndefined(context) ? notify._context : context\n\n // clean notification element preventing mem leak\n vm.props!.onDestroy = () => {\n render(null, container)\n }\n\n // instances will remove this item when close function gets called. So we do not need to worry about it.\n render(vm, container)\n notifications[position].push({ vm })\n appendTo.appendChild(container.firstElementChild!)\n\n return {\n // instead of calling the onClose function directly, setting this value so that we can have the full lifecycle\n // for out component, so that all closing steps will not be skipped.\n // UPDATE: call the exposed close() here rather than setting visible.value = false,\n // because close() also runs clearTimer() to stop the progress tick and close timeout.\n close: () => {\n ;(vm.component!.exposed as NotificationExposed).close()\n },\n }\n}\nnotificationTypes.forEach((type) => {\n notify[type] = (options = {}, appContext) => {\n if (isString(options) || isVNode(options)) {\n options = {\n message: options,\n }\n }\n return notify({ ...options, type }, appContext)\n }\n})\n\n/**\n * This function gets called when user click `x` button or press `esc` or the time reached its limitation.\n * Emitted by transition@before-leave event so that we can fetch the current notification.offsetHeight, if this was called\n * by @after-leave the DOM element will be removed from the page thus we can no longer fetch the offsetHeight.\n * @param {String} id notification id to be closed\n * @param {Position} position the positioning strategy\n * @param {Function} userOnClose the callback called when close passed by user\n */\nexport function close(\n id: string,\n position: NotificationPosition,\n userOnClose?: (vm: VNode) => void\n): void {\n // maybe we can store the index when inserting the vm to notification list.\n const orientedNotifications = notifications[position]\n const idx = orientedNotifications.findIndex(\n ({ vm }) => vm.component?.props.id === id\n )\n if (idx === -1) return\n const { vm } = orientedNotifications[idx]\n if (!vm) return\n // calling user's on close function before notification gets removed from DOM.\n userOnClose?.(vm)\n\n // note that this is called @before-leave, that's why we were able to fetch this property.\n const removedHeight = vm.el!.offsetHeight\n const verticalPos = position.split('-')[0]\n orientedNotifications.splice(idx, 1)\n const len = orientedNotifications.length\n if (len < 1) return\n // starting from the removing item.\n for (let i = idx; i < len; i++) {\n // new position equals the current offsetTop minus removed height plus 16px(the gap size between each item)\n const { el, component } = orientedNotifications[i].vm\n const pos =\n Number.parseInt(el!.style[verticalPos], 10) - removedHeight - GAP_SIZE\n component!.props.offset = pos\n }\n}\n\nexport function closeAll(): void {\n // loop through all directions, close them at once.\n for (const orientedNotifications of Object.values(notifications)) {\n orientedNotifications.forEach(({ vm }) => {\n // same as the previous close method, we'd like to make sure lifecycle gets handle properly.\n // UPDATE: call exposed close() so that clearTimer() also runs.\n ;(vm.component!.exposed as NotificationExposed).close()\n })\n }\n}\n\nexport function updateOffsets(position: NotificationPosition = 'top-right') {\n let verticalOffset =\n notifications[position][0]?.vm.component?.props?.offset || 0\n\n for (const { vm } of notifications[position]) {\n vm.component!.props.offset = verticalOffset\n verticalOffset += (vm.el?.offsetHeight || 0) + GAP_SIZE\n }\n}\n\nnotify.closeAll = closeAll\nnotify.updateOffsets = updateOffsets\nnotify._context = null\n\nexport default notify as Notify\n"],"mappings":"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"}
|
|
@@ -25,9 +25,9 @@ declare const __VLS_base: _$vue.DefineComponent<PopconfirmProps, {
|
|
|
25
25
|
onCancel?: ((e: MouseEvent) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
teleported: boolean;
|
|
28
|
+
hideAfter: number;
|
|
28
29
|
effect: PopperEffect;
|
|
29
30
|
icon: IconPropType;
|
|
30
|
-
hideAfter: number;
|
|
31
31
|
width: string | number;
|
|
32
32
|
confirmButtonType: ButtonType;
|
|
33
33
|
cancelButtonType: ButtonType;
|
|
@@ -32,6 +32,9 @@ declare const __VLS_base: _$vue.DefineComponent<PopoverProps, {
|
|
|
32
32
|
}>, {
|
|
33
33
|
offset: number;
|
|
34
34
|
teleported: boolean;
|
|
35
|
+
showAfter: number;
|
|
36
|
+
hideAfter: number;
|
|
37
|
+
autoClose: number;
|
|
35
38
|
effect: PopperEffect;
|
|
36
39
|
tabindex: string | number;
|
|
37
40
|
visible: boolean | null;
|
|
@@ -43,9 +46,6 @@ declare const __VLS_base: _$vue.DefineComponent<PopoverProps, {
|
|
|
43
46
|
popperOptions: Partial<Options>;
|
|
44
47
|
showArrow: boolean;
|
|
45
48
|
persistent: boolean;
|
|
46
|
-
showAfter: number;
|
|
47
|
-
hideAfter: number;
|
|
48
|
-
autoClose: number;
|
|
49
49
|
trigger: Arrayable<TooltipTriggerType>;
|
|
50
50
|
triggerKeys: string[];
|
|
51
51
|
width: string | number;
|
|
@@ -10,7 +10,7 @@ interface RadioButtonProps extends RadioPropsBase {}
|
|
|
10
10
|
* @deprecated Removed after 3.0.0, Use `RadioButtonProps` instead.
|
|
11
11
|
*/
|
|
12
12
|
declare const radioButtonProps: {
|
|
13
|
-
readonly modelValue: EpPropFinalized<(
|
|
13
|
+
readonly modelValue: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
14
14
|
readonly size: {
|
|
15
15
|
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
16
16
|
readonly required: false;
|
|
@@ -18,8 +18,8 @@ declare const radioButtonProps: {
|
|
|
18
18
|
__epPropKey: true;
|
|
19
19
|
};
|
|
20
20
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
21
|
-
readonly label: EpPropFinalized<(
|
|
22
|
-
readonly value: EpPropFinalized<(
|
|
21
|
+
readonly label: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
22
|
+
readonly value: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
23
23
|
readonly name: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
@@ -41,7 +41,7 @@ interface RadioProps extends RadioPropsBase {
|
|
|
41
41
|
* @deprecated Removed after 3.0.0, Use `RadioPropsBase` instead.
|
|
42
42
|
*/
|
|
43
43
|
declare const radioPropsBase: {
|
|
44
|
-
modelValue: EpPropFinalized<(
|
|
44
|
+
modelValue: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
45
45
|
size: {
|
|
46
46
|
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
47
47
|
readonly required: false;
|
|
@@ -49,8 +49,8 @@ declare const radioPropsBase: {
|
|
|
49
49
|
__epPropKey: true;
|
|
50
50
|
};
|
|
51
51
|
disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
52
|
-
label: EpPropFinalized<(
|
|
53
|
-
value: EpPropFinalized<(
|
|
52
|
+
label: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
53
|
+
value: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
54
54
|
name: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
@@ -58,7 +58,7 @@ declare const radioPropsBase: {
|
|
|
58
58
|
*/
|
|
59
59
|
declare const radioProps: {
|
|
60
60
|
readonly border: BooleanConstructor;
|
|
61
|
-
readonly modelValue: EpPropFinalized<(
|
|
61
|
+
readonly modelValue: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
62
62
|
readonly size: {
|
|
63
63
|
readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
64
64
|
readonly required: false;
|
|
@@ -66,8 +66,8 @@ declare const radioProps: {
|
|
|
66
66
|
__epPropKey: true;
|
|
67
67
|
};
|
|
68
68
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
69
|
-
readonly label: EpPropFinalized<(
|
|
70
|
-
readonly value: EpPropFinalized<(
|
|
69
|
+
readonly label: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
70
|
+
readonly value: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
71
71
|
readonly name: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
72
72
|
};
|
|
73
73
|
declare const radioEmits: {
|
|
@@ -63,7 +63,7 @@ declare const segmentedProps: {
|
|
|
63
63
|
ariaLabel: StringConstructor;
|
|
64
64
|
direction: EpPropFinalized<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical") | (((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical")) | null)[], unknown, unknown, string, boolean>;
|
|
65
65
|
options: EpPropFinalized<(new (...args: any[]) => Option[]) | (() => Option[]) | (((new (...args: any[]) => Option[]) | (() => Option[])) | null)[], unknown, unknown, () => never[], boolean>;
|
|
66
|
-
modelValue: EpPropFinalized<(
|
|
66
|
+
modelValue: EpPropFinalized<(StringConstructor | BooleanConstructor | NumberConstructor)[], unknown, unknown, undefined, boolean>;
|
|
67
67
|
props: EpPropFinalized<(new (...args: any[]) => Props) | (() => Props) | (((new (...args: any[]) => Props) | (() => Props)) | null)[], unknown, unknown, () => Required<Props>, boolean>;
|
|
68
68
|
block: BooleanConstructor;
|
|
69
69
|
size: {
|
|
@@ -5,7 +5,7 @@ import * as _$vue from "vue";
|
|
|
5
5
|
declare const COMPONENT_NAME = "ElOption";
|
|
6
6
|
declare const optionProps: {
|
|
7
7
|
value: {
|
|
8
|
-
readonly type: _$vue.PropType<EpPropMergeType<(
|
|
8
|
+
readonly type: _$vue.PropType<EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown>>;
|
|
9
9
|
readonly required: true;
|
|
10
10
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
11
11
|
__epPropKey: true;
|
|
@@ -6,7 +6,7 @@ import * as _$vue from "vue";
|
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
8
8
|
value: {
|
|
9
|
-
readonly type: _$vue.PropType<EpPropMergeType<(
|
|
9
|
+
readonly type: _$vue.PropType<EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown>>;
|
|
10
10
|
readonly required: true;
|
|
11
11
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
12
|
__epPropKey: true;
|
|
@@ -59,7 +59,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
59
59
|
selectOptionClick: () => void;
|
|
60
60
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
61
61
|
value: {
|
|
62
|
-
readonly type: _$vue.PropType<EpPropMergeType<(
|
|
62
|
+
readonly type: _$vue.PropType<EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown>>;
|
|
63
63
|
readonly required: true;
|
|
64
64
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
65
65
|
__epPropKey: true;
|
|
@@ -34,7 +34,7 @@ declare const selectProps: {
|
|
|
34
34
|
valueOnClear: EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
35
35
|
name: StringConstructor;
|
|
36
36
|
id: StringConstructor;
|
|
37
|
-
modelValue: EpPropFinalized<(new (...args: any[]) => string | number | boolean | Record<string, any> | EpPropMergeType<(
|
|
37
|
+
modelValue: EpPropFinalized<(new (...args: any[]) => string | number | boolean | Record<string, any> | EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown>[]) | (() => EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown> | EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown>[] | null) | (((new (...args: any[]) => string | number | boolean | Record<string, any> | EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown>[]) | (() => EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown> | EpPropMergeType<(StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[], unknown, unknown>[] | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
38
38
|
autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
39
39
|
automaticDropdown: BooleanConstructor;
|
|
40
40
|
size: {
|