@element-plus/nightly 0.0.20241221 → 0.0.20241222
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.full.js +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- 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/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +25 -118
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +118 -25
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +364 -79
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +79 -364
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb.mjs +37 -10
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +10 -37
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +14 -38
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +38 -14
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +59 -119
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +119 -59
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +43 -64
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +64 -43
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +62 -10
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +10 -62
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +22 -79
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +79 -22
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +63 -6
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +6 -63
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +16 -34
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +34 -16
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +26 -178
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +178 -26
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/form/index.mjs +4 -4
- package/es/components/form/src/form-item.mjs +47 -319
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +319 -47
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.mjs +53 -151
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +151 -53
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +412 -45
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +45 -412
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +22 -22
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +65 -215
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +215 -65
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.mjs +58 -7
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +7 -58
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +71 -23
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes2.mjs +23 -71
- 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/trigger.mjs +127 -31
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +31 -127
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-group.mjs +65 -34
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +34 -65
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +258 -83
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +83 -258
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
- package/es/components/scrollbar/index.mjs +3 -3
- package/es/components/scrollbar/src/bar2.mjs +1 -1
- package/es/components/scrollbar/src/scrollbar.mjs +170 -55
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +55 -170
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb.mjs +11 -129
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +129 -11
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +22 -17
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/slider/src/button.mjs +19 -89
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +89 -19
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/tooltip/src/trigger2.mjs +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-dragger.mjs +47 -10
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +10 -47
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +27 -210
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +210 -27
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +22 -22
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +26 -118
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +118 -26
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +363 -79
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +79 -363
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.js +37 -10
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +10 -37
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +15 -38
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +38 -15
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +60 -119
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +119 -60
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +43 -64
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +64 -43
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +62 -9
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +9 -62
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +23 -79
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +79 -23
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +63 -6
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +6 -63
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +16 -34
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +34 -16
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +27 -178
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +178 -27
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/form/index.js +4 -4
- package/lib/components/form/src/form-item.js +48 -323
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +323 -48
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.js +54 -150
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +150 -54
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +412 -46
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +46 -412
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +22 -22
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +65 -214
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +214 -65
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.js +58 -7
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +7 -58
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +71 -23
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/pagination/src/components/sizes2.js +23 -71
- 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/trigger.js +127 -32
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +32 -127
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-group.js +65 -35
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +35 -65
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +257 -83
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +83 -257
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
- package/lib/components/scrollbar/index.js +3 -3
- package/lib/components/scrollbar/src/bar2.js +1 -1
- package/lib/components/scrollbar/src/scrollbar.js +170 -56
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +56 -170
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/scrollbar/src/thumb.js +11 -129
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +129 -11
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +22 -17
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +17 -22
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/slider/src/button.js +20 -89
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +89 -20
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip/src/trigger2.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-dragger.js +47 -11
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +11 -47
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +27 -210
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +210 -27
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +22 -22
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var drawer$1 = require('./src/
|
6
|
-
var drawer = require('./src/
|
5
|
+
var drawer$1 = require('./src/drawer2.js');
|
6
|
+
var drawer = require('./src/drawer.js');
|
7
7
|
var install = require('../../utils/vue/install.js');
|
8
8
|
|
9
9
|
const ElDrawer = install.withInstall(drawer$1["default"]);
|
@@ -2,186 +2,35 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
7
|
-
var index$4 = require('../../overlay/index.js');
|
8
|
-
var focusTrap = require('../../focus-trap/src/focus-trap.js');
|
9
|
-
var index$3 = require('../../teleport/index.js');
|
10
|
-
var index$5 = require('../../icon/index.js');
|
11
|
-
var drawer = require('./drawer2.js');
|
12
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
13
|
-
var useDialog = require('../../dialog/src/use-dialog.js');
|
14
|
-
var index = require('../../../hooks/use-deprecated/index.js');
|
15
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
16
|
-
var index$2 = require('../../../hooks/use-locale/index.js');
|
17
|
-
var style = require('../../../utils/dom/style.js');
|
5
|
+
var dialog = require('../../dialog/src/dialog.js');
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
18
7
|
|
19
|
-
const
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
const {
|
42
|
-
afterEnter,
|
43
|
-
afterLeave,
|
44
|
-
beforeLeave,
|
45
|
-
visible,
|
46
|
-
rendered,
|
47
|
-
titleId,
|
48
|
-
bodyId,
|
49
|
-
zIndex,
|
50
|
-
onModalClick,
|
51
|
-
onOpenAutoFocus,
|
52
|
-
onCloseAutoFocus,
|
53
|
-
onFocusoutPrevented,
|
54
|
-
onCloseRequested,
|
55
|
-
handleClose
|
56
|
-
} = useDialog.useDialog(props, drawerRef);
|
57
|
-
const isHorizontal = vue.computed(() => props.direction === "rtl" || props.direction === "ltr");
|
58
|
-
const drawerSize = vue.computed(() => style.addUnit(props.size));
|
59
|
-
expose({
|
60
|
-
handleClose,
|
61
|
-
afterEnter,
|
62
|
-
afterLeave
|
63
|
-
});
|
64
|
-
return (_ctx, _cache) => {
|
65
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index$3.ElTeleport), {
|
66
|
-
to: _ctx.appendTo,
|
67
|
-
disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
|
68
|
-
}, {
|
69
|
-
default: vue.withCtx(() => [
|
70
|
-
vue.createVNode(vue.Transition, {
|
71
|
-
name: vue.unref(ns).b("fade"),
|
72
|
-
onAfterEnter: vue.unref(afterEnter),
|
73
|
-
onAfterLeave: vue.unref(afterLeave),
|
74
|
-
onBeforeLeave: vue.unref(beforeLeave),
|
75
|
-
persisted: ""
|
76
|
-
}, {
|
77
|
-
default: vue.withCtx(() => [
|
78
|
-
vue.withDirectives(vue.createVNode(vue.unref(index$4.ElOverlay), {
|
79
|
-
mask: _ctx.modal,
|
80
|
-
"overlay-class": _ctx.modalClass,
|
81
|
-
"z-index": vue.unref(zIndex),
|
82
|
-
onClick: vue.unref(onModalClick)
|
83
|
-
}, {
|
84
|
-
default: vue.withCtx(() => [
|
85
|
-
vue.createVNode(vue.unref(focusTrap["default"]), {
|
86
|
-
loop: "",
|
87
|
-
trapped: vue.unref(visible),
|
88
|
-
"focus-trap-el": drawerRef.value,
|
89
|
-
"focus-start-el": focusStartRef.value,
|
90
|
-
onFocusAfterTrapped: vue.unref(onOpenAutoFocus),
|
91
|
-
onFocusAfterReleased: vue.unref(onCloseAutoFocus),
|
92
|
-
onFocusoutPrevented: vue.unref(onFocusoutPrevented),
|
93
|
-
onReleaseRequested: vue.unref(onCloseRequested)
|
94
|
-
}, {
|
95
|
-
default: vue.withCtx(() => [
|
96
|
-
vue.createElementVNode("div", vue.mergeProps({
|
97
|
-
ref_key: "drawerRef",
|
98
|
-
ref: drawerRef,
|
99
|
-
"aria-modal": "true",
|
100
|
-
"aria-label": _ctx.title || void 0,
|
101
|
-
"aria-labelledby": !_ctx.title ? vue.unref(titleId) : void 0,
|
102
|
-
"aria-describedby": vue.unref(bodyId)
|
103
|
-
}, _ctx.$attrs, {
|
104
|
-
class: [vue.unref(ns).b(), _ctx.direction, vue.unref(visible) && "open"],
|
105
|
-
style: vue.unref(isHorizontal) ? "width: " + vue.unref(drawerSize) : "height: " + vue.unref(drawerSize),
|
106
|
-
role: "dialog",
|
107
|
-
onClick: vue.withModifiers(() => {
|
108
|
-
}, ["stop"])
|
109
|
-
}), [
|
110
|
-
vue.createElementVNode("span", {
|
111
|
-
ref_key: "focusStartRef",
|
112
|
-
ref: focusStartRef,
|
113
|
-
class: vue.normalizeClass(vue.unref(ns).e("sr-focus")),
|
114
|
-
tabindex: "-1"
|
115
|
-
}, null, 2),
|
116
|
-
_ctx.withHeader ? (vue.openBlock(), vue.createElementBlock("header", {
|
117
|
-
key: 0,
|
118
|
-
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
119
|
-
}, [
|
120
|
-
!_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "header", {
|
121
|
-
key: 0,
|
122
|
-
close: vue.unref(handleClose),
|
123
|
-
titleId: vue.unref(titleId),
|
124
|
-
titleClass: vue.unref(ns).e("title")
|
125
|
-
}, () => [
|
126
|
-
!_ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
127
|
-
key: 0,
|
128
|
-
id: vue.unref(titleId),
|
129
|
-
role: "heading",
|
130
|
-
"aria-level": _ctx.headerAriaLevel,
|
131
|
-
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
132
|
-
}, vue.toDisplayString(_ctx.title), 11, ["id", "aria-level"])) : vue.createCommentVNode("v-if", true)
|
133
|
-
]) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
134
|
-
vue.createCommentVNode(" DEPRECATED SLOT ")
|
135
|
-
]),
|
136
|
-
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
|
137
|
-
key: 2,
|
138
|
-
"aria-label": vue.unref(t)("el.drawer.close"),
|
139
|
-
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
140
|
-
type: "button",
|
141
|
-
onClick: vue.unref(handleClose)
|
142
|
-
}, [
|
143
|
-
vue.createVNode(vue.unref(index$5.ElIcon), {
|
144
|
-
class: vue.normalizeClass(vue.unref(ns).e("close"))
|
145
|
-
}, {
|
146
|
-
default: vue.withCtx(() => [
|
147
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
148
|
-
]),
|
149
|
-
_: 1
|
150
|
-
}, 8, ["class"])
|
151
|
-
], 10, ["aria-label", "onClick"])) : vue.createCommentVNode("v-if", true)
|
152
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
153
|
-
vue.unref(rendered) ? (vue.openBlock(), vue.createElementBlock("div", {
|
154
|
-
key: 1,
|
155
|
-
id: vue.unref(bodyId),
|
156
|
-
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
157
|
-
}, [
|
158
|
-
vue.renderSlot(_ctx.$slots, "default")
|
159
|
-
], 10, ["id"])) : vue.createCommentVNode("v-if", true),
|
160
|
-
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
161
|
-
key: 2,
|
162
|
-
class: vue.normalizeClass(vue.unref(ns).e("footer"))
|
163
|
-
}, [
|
164
|
-
vue.renderSlot(_ctx.$slots, "footer")
|
165
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
166
|
-
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
167
|
-
]),
|
168
|
-
_: 3
|
169
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
170
|
-
]),
|
171
|
-
_: 3
|
172
|
-
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
173
|
-
[vue.vShow, vue.unref(visible)]
|
174
|
-
])
|
175
|
-
]),
|
176
|
-
_: 3
|
177
|
-
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
178
|
-
]),
|
179
|
-
_: 3
|
180
|
-
}, 8, ["to", "disabled"]);
|
181
|
-
};
|
8
|
+
const drawerProps = runtime.buildProps({
|
9
|
+
...dialog.dialogProps,
|
10
|
+
direction: {
|
11
|
+
type: String,
|
12
|
+
default: "rtl",
|
13
|
+
values: ["ltr", "rtl", "ttb", "btt"]
|
14
|
+
},
|
15
|
+
size: {
|
16
|
+
type: [String, Number],
|
17
|
+
default: "30%"
|
18
|
+
},
|
19
|
+
withHeader: {
|
20
|
+
type: Boolean,
|
21
|
+
default: true
|
22
|
+
},
|
23
|
+
modalFade: {
|
24
|
+
type: Boolean,
|
25
|
+
default: true
|
26
|
+
},
|
27
|
+
headerAriaLevel: {
|
28
|
+
type: String,
|
29
|
+
default: "2"
|
182
30
|
}
|
183
31
|
});
|
184
|
-
|
32
|
+
const drawerEmits = dialog.dialogEmits;
|
185
33
|
|
186
|
-
exports
|
34
|
+
exports.drawerEmits = drawerEmits;
|
35
|
+
exports.drawerProps = drawerProps;
|
187
36
|
//# sourceMappingURL=drawer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"drawer.js","sources":["../../../../../../packages/components/drawer/src/drawer.
|
1
|
+
{"version":3,"file":"drawer.js","sources":["../../../../../../packages/components/drawer/src/drawer.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { dialogEmits, dialogProps } from '@element-plus/components/dialog'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const drawerProps = buildProps({\n ...dialogProps,\n direction: {\n type: String,\n default: 'rtl',\n values: ['ltr', 'rtl', 'ttb', 'btt'],\n },\n size: {\n type: [String, Number],\n default: '30%',\n },\n withHeader: {\n type: Boolean,\n default: true,\n },\n modalFade: {\n type: Boolean,\n default: true,\n },\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport type DrawerProps = ExtractPropTypes<typeof drawerProps>\n\nexport const drawerEmits = dialogEmits\n"],"names":["buildProps","dialogProps","dialogEmits"],"mappings":";;;;;;;AAEY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,GAAGC,kBAAW;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AACxC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAGC;;;;;"}
|
@@ -2,35 +2,186 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var iconsVue = require('@element-plus/icons-vue');
|
7
|
+
var index$4 = require('../../overlay/index.js');
|
8
|
+
var focusTrap = require('../../focus-trap/src/focus-trap.js');
|
9
|
+
var index$3 = require('../../teleport/index.js');
|
10
|
+
var index$5 = require('../../icon/index.js');
|
11
|
+
var drawer = require('./drawer.js');
|
12
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
13
|
+
var useDialog = require('../../dialog/src/use-dialog.js');
|
14
|
+
var index = require('../../../hooks/use-deprecated/index.js');
|
15
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
16
|
+
var index$2 = require('../../../hooks/use-locale/index.js');
|
17
|
+
var style = require('../../../utils/dom/style.js');
|
7
18
|
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
19
|
+
const __default__ = vue.defineComponent({
|
20
|
+
name: "ElDrawer",
|
21
|
+
inheritAttrs: false
|
22
|
+
});
|
23
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
24
|
+
...__default__,
|
25
|
+
props: drawer.drawerProps,
|
26
|
+
emits: drawer.drawerEmits,
|
27
|
+
setup(__props, { expose }) {
|
28
|
+
const props = __props;
|
29
|
+
const slots = vue.useSlots();
|
30
|
+
index.useDeprecated({
|
31
|
+
scope: "el-drawer",
|
32
|
+
from: "the title slot",
|
33
|
+
replacement: "the header slot",
|
34
|
+
version: "3.0.0",
|
35
|
+
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
36
|
+
}, vue.computed(() => !!slots.title));
|
37
|
+
const drawerRef = vue.ref();
|
38
|
+
const focusStartRef = vue.ref();
|
39
|
+
const ns = index$1.useNamespace("drawer");
|
40
|
+
const { t } = index$2.useLocale();
|
41
|
+
const {
|
42
|
+
afterEnter,
|
43
|
+
afterLeave,
|
44
|
+
beforeLeave,
|
45
|
+
visible,
|
46
|
+
rendered,
|
47
|
+
titleId,
|
48
|
+
bodyId,
|
49
|
+
zIndex,
|
50
|
+
onModalClick,
|
51
|
+
onOpenAutoFocus,
|
52
|
+
onCloseAutoFocus,
|
53
|
+
onFocusoutPrevented,
|
54
|
+
onCloseRequested,
|
55
|
+
handleClose
|
56
|
+
} = useDialog.useDialog(props, drawerRef);
|
57
|
+
const isHorizontal = vue.computed(() => props.direction === "rtl" || props.direction === "ltr");
|
58
|
+
const drawerSize = vue.computed(() => style.addUnit(props.size));
|
59
|
+
expose({
|
60
|
+
handleClose,
|
61
|
+
afterEnter,
|
62
|
+
afterLeave
|
63
|
+
});
|
64
|
+
return (_ctx, _cache) => {
|
65
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$3.ElTeleport), {
|
66
|
+
to: _ctx.appendTo,
|
67
|
+
disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
|
68
|
+
}, {
|
69
|
+
default: vue.withCtx(() => [
|
70
|
+
vue.createVNode(vue.Transition, {
|
71
|
+
name: vue.unref(ns).b("fade"),
|
72
|
+
onAfterEnter: vue.unref(afterEnter),
|
73
|
+
onAfterLeave: vue.unref(afterLeave),
|
74
|
+
onBeforeLeave: vue.unref(beforeLeave),
|
75
|
+
persisted: ""
|
76
|
+
}, {
|
77
|
+
default: vue.withCtx(() => [
|
78
|
+
vue.withDirectives(vue.createVNode(vue.unref(index$4.ElOverlay), {
|
79
|
+
mask: _ctx.modal,
|
80
|
+
"overlay-class": _ctx.modalClass,
|
81
|
+
"z-index": vue.unref(zIndex),
|
82
|
+
onClick: vue.unref(onModalClick)
|
83
|
+
}, {
|
84
|
+
default: vue.withCtx(() => [
|
85
|
+
vue.createVNode(vue.unref(focusTrap["default"]), {
|
86
|
+
loop: "",
|
87
|
+
trapped: vue.unref(visible),
|
88
|
+
"focus-trap-el": drawerRef.value,
|
89
|
+
"focus-start-el": focusStartRef.value,
|
90
|
+
onFocusAfterTrapped: vue.unref(onOpenAutoFocus),
|
91
|
+
onFocusAfterReleased: vue.unref(onCloseAutoFocus),
|
92
|
+
onFocusoutPrevented: vue.unref(onFocusoutPrevented),
|
93
|
+
onReleaseRequested: vue.unref(onCloseRequested)
|
94
|
+
}, {
|
95
|
+
default: vue.withCtx(() => [
|
96
|
+
vue.createElementVNode("div", vue.mergeProps({
|
97
|
+
ref_key: "drawerRef",
|
98
|
+
ref: drawerRef,
|
99
|
+
"aria-modal": "true",
|
100
|
+
"aria-label": _ctx.title || void 0,
|
101
|
+
"aria-labelledby": !_ctx.title ? vue.unref(titleId) : void 0,
|
102
|
+
"aria-describedby": vue.unref(bodyId)
|
103
|
+
}, _ctx.$attrs, {
|
104
|
+
class: [vue.unref(ns).b(), _ctx.direction, vue.unref(visible) && "open"],
|
105
|
+
style: vue.unref(isHorizontal) ? "width: " + vue.unref(drawerSize) : "height: " + vue.unref(drawerSize),
|
106
|
+
role: "dialog",
|
107
|
+
onClick: vue.withModifiers(() => {
|
108
|
+
}, ["stop"])
|
109
|
+
}), [
|
110
|
+
vue.createElementVNode("span", {
|
111
|
+
ref_key: "focusStartRef",
|
112
|
+
ref: focusStartRef,
|
113
|
+
class: vue.normalizeClass(vue.unref(ns).e("sr-focus")),
|
114
|
+
tabindex: "-1"
|
115
|
+
}, null, 2),
|
116
|
+
_ctx.withHeader ? (vue.openBlock(), vue.createElementBlock("header", {
|
117
|
+
key: 0,
|
118
|
+
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
119
|
+
}, [
|
120
|
+
!_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "header", {
|
121
|
+
key: 0,
|
122
|
+
close: vue.unref(handleClose),
|
123
|
+
titleId: vue.unref(titleId),
|
124
|
+
titleClass: vue.unref(ns).e("title")
|
125
|
+
}, () => [
|
126
|
+
!_ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
127
|
+
key: 0,
|
128
|
+
id: vue.unref(titleId),
|
129
|
+
role: "heading",
|
130
|
+
"aria-level": _ctx.headerAriaLevel,
|
131
|
+
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
132
|
+
}, vue.toDisplayString(_ctx.title), 11, ["id", "aria-level"])) : vue.createCommentVNode("v-if", true)
|
133
|
+
]) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
134
|
+
vue.createCommentVNode(" DEPRECATED SLOT ")
|
135
|
+
]),
|
136
|
+
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
|
137
|
+
key: 2,
|
138
|
+
"aria-label": vue.unref(t)("el.drawer.close"),
|
139
|
+
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
140
|
+
type: "button",
|
141
|
+
onClick: vue.unref(handleClose)
|
142
|
+
}, [
|
143
|
+
vue.createVNode(vue.unref(index$5.ElIcon), {
|
144
|
+
class: vue.normalizeClass(vue.unref(ns).e("close"))
|
145
|
+
}, {
|
146
|
+
default: vue.withCtx(() => [
|
147
|
+
vue.createVNode(vue.unref(iconsVue.Close))
|
148
|
+
]),
|
149
|
+
_: 1
|
150
|
+
}, 8, ["class"])
|
151
|
+
], 10, ["aria-label", "onClick"])) : vue.createCommentVNode("v-if", true)
|
152
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
153
|
+
vue.unref(rendered) ? (vue.openBlock(), vue.createElementBlock("div", {
|
154
|
+
key: 1,
|
155
|
+
id: vue.unref(bodyId),
|
156
|
+
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
157
|
+
}, [
|
158
|
+
vue.renderSlot(_ctx.$slots, "default")
|
159
|
+
], 10, ["id"])) : vue.createCommentVNode("v-if", true),
|
160
|
+
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
161
|
+
key: 2,
|
162
|
+
class: vue.normalizeClass(vue.unref(ns).e("footer"))
|
163
|
+
}, [
|
164
|
+
vue.renderSlot(_ctx.$slots, "footer")
|
165
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
166
|
+
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
167
|
+
]),
|
168
|
+
_: 3
|
169
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
170
|
+
]),
|
171
|
+
_: 3
|
172
|
+
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
173
|
+
[vue.vShow, vue.unref(visible)]
|
174
|
+
])
|
175
|
+
]),
|
176
|
+
_: 3
|
177
|
+
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
178
|
+
]),
|
179
|
+
_: 3
|
180
|
+
}, 8, ["to", "disabled"]);
|
181
|
+
};
|
30
182
|
}
|
31
183
|
});
|
32
|
-
|
184
|
+
var Drawer = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "drawer.vue"]]);
|
33
185
|
|
34
|
-
exports
|
35
|
-
exports.drawerProps = drawerProps;
|
186
|
+
exports["default"] = Drawer;
|
36
187
|
//# sourceMappingURL=drawer2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"drawer2.js","sources":["../../../../../../packages/components/drawer/src/drawer.
|
1
|
+
{"version":3,"file":"drawer2.js","sources":["../../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <el-teleport\n :to=\"appendTo\"\n :disabled=\"appendTo !== 'body' ? false : !appendToBody\"\n >\n <transition\n :name=\"ns.b('fade')\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n @click=\"onModalClick\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n :focus-trap-el=\"drawerRef\"\n :focus-start-el=\"focusStartRef\"\n @focus-after-trapped=\"onOpenAutoFocus\"\n @focus-after-released=\"onCloseAutoFocus\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onCloseRequested\"\n >\n <div\n ref=\"drawerRef\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n v-bind=\"$attrs\"\n :class=\"[ns.b(), direction, visible && 'open']\"\n :style=\"\n isHorizontal ? 'width: ' + drawerSize : 'height: ' + drawerSize\n \"\n role=\"dialog\"\n @click.stop\n >\n <span ref=\"focusStartRef\" :class=\"ns.e('sr-focus')\" tabindex=\"-1\" />\n <header v-if=\"withHeader\" :class=\"ns.e('header')\">\n <slot\n v-if=\"!$slots.title\"\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n >\n <span\n v-if=\"!$slots.title\"\n :id=\"titleId\"\n role=\"heading\"\n :aria-level=\"headerAriaLevel\"\n :class=\"ns.e('title')\"\n >\n {{ title }}\n </span>\n </slot>\n <slot v-else name=\"title\">\n <!-- DEPRECATED SLOT -->\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.drawer.close')\"\n :class=\"ns.e('close-btn')\"\n type=\"button\"\n @click=\"handleClose\"\n >\n <el-icon :class=\"ns.e('close')\"><close /></el-icon>\n </button>\n </header>\n <template v-if=\"rendered\">\n <div :id=\"bodyId\" :class=\"ns.e('body')\">\n <slot />\n </div>\n </template>\n <div v-if=\"$slots.footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\" />\n </div>\n </div>\n </el-focus-trap>\n </el-overlay>\n </transition>\n </el-teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { Close } from '@element-plus/icons-vue'\n\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElTeleport from '@element-plus/components/teleport'\nimport { useDialog } from '@element-plus/components/dialog'\nimport { addUnit } from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport { useDeprecated, useLocale, useNamespace } from '@element-plus/hooks'\nimport { drawerEmits, drawerProps } from './drawer'\n\ndefineOptions({\n name: 'ElDrawer',\n inheritAttrs: false,\n})\n\nconst props = defineProps(drawerProps)\ndefineEmits(drawerEmits)\nconst slots = useSlots()\n\nuseDeprecated(\n {\n scope: 'el-drawer',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/drawer.html#slots',\n },\n computed(() => !!slots.title)\n)\n\nconst drawerRef = ref<HTMLElement>()\nconst focusStartRef = ref<HTMLElement>()\nconst ns = useNamespace('drawer')\nconst { t } = useLocale()\nconst {\n afterEnter,\n afterLeave,\n beforeLeave,\n visible,\n rendered,\n titleId,\n bodyId,\n zIndex,\n onModalClick,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onFocusoutPrevented,\n onCloseRequested,\n handleClose,\n} = useDialog(props, drawerRef)\n\nconst isHorizontal = computed(\n () => props.direction === 'rtl' || props.direction === 'ltr'\n)\nconst drawerSize = computed(() => addUnit(props.size))\n\ndefineExpose({\n handleClose,\n afterEnter,\n afterLeave,\n})\n</script>\n"],"names":["useSlots","useDeprecated","computed","ref","useNamespace","useDialog","addUnit","_openBlock","_createBlock","_unref","ElTeleport"],"mappings":";;;;;;;;;;;;;;;;;;uCAsGc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAAC,mBAAA,CAAA;AAAA,MACE,KAAA,EAAA,WAAA;AAAA,MAAA,IACS,EAAA,gBAAA;AAAA,MAAA,WACD,EAAA,iBAAA;AAAA,MAAA,OACO,EAAA,OAAA;AAAA,MAAA,GACJ,EAAA,4DAAA;AAAA,KAAA,EAAAC,YACJ,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACP,MAAA,SAAA,GAAAC,OAAA,EAAA,CAAA;AAAA,IAAA,MACS,aAAQ,UAAM,EAAK,CAAA;AAAA,IAC9B,MAAA,EAAA,GAAAC,oBAAA,CAAA,QAAA,CAAA,CAAA;AAEA,IAAA,MAAM,yBAA6B,EAAA,CAAA;AACnC,IAAA,MAAM;AACN,MAAM;AACN,MAAM,UAAI;AACV,MAAM,WAAA;AAAA,MACJ,OAAA;AAAA,MACA,QAAA;AAAA,MACA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,YAAA;AAAA,MACA,eAAA;AAAA,MACA,gBAAA;AAAA,MACA,mBAAA;AAAA,MACA,gBAAA;AAAA,MACA,WAAA;AAAA,KACA,GAAAC,mBAAA,CAAA,KAAA,EAAA,SAAA,CAAA,CAAA;AAAA,IACA,MAAA,YAAA,GAAAH,YAAA,CAAA,MAAA,KAAA,CAAA,SAAA,KAAA,KAAA,IAAA,KAAA,CAAA,SAAA,KAAA,KAAA,CAAA,CAAA;AAAA,IACA,MAAA,UAAA,GAAAA,YAAA,CAAA,MAAAI,aAAA,CAAA,KAAA,CAAA,IAAA,CAAA,CAAA,CAAA;AAAA,IACF,MAAc,CAAA;AAEd,MAAA,WAAqB;AAAA,MACnB,UAAM;AAAiD,MACzD,UAAA;AACA,KAAA,CAAA,CAAA;AAEA,IAAa,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACX,OAAAC,aAAA,EAAA,EAAAC,eAAA,CAAAC,SAAA,CAAAC,kBAAA,CAAA,EAAA;AAAA,QACA,EAAA,EAAA,IAAA,CAAA,QAAA;AAAA,QACA,QAAA,EAAA,IAAA,CAAA,QAAA,KAAA,MAAA,GAAA,KAAA,GAAA,CAAA,IAAA,CAAA,YAAA;AAAA,OACD,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -9,7 +9,7 @@ var tokens = require('./tokens.js');
|
|
9
9
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
10
10
|
var rovingFocusGroup = require('../../roving-focus-group/src/roving-focus-group.js');
|
11
11
|
var tokens$1 = require('../../roving-focus-group/src/tokens.js');
|
12
|
-
var collection = require('../../collection/src/
|
12
|
+
var collection = require('../../collection/src/collection.js');
|
13
13
|
var index$1 = require('../../../hooks/use-namespace/index.js');
|
14
14
|
var refs = require('../../../utils/vue/refs.js');
|
15
15
|
var event = require('../../../utils/dom/event.js');
|
@@ -7,7 +7,7 @@ var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
7
|
var aria = require('../../../constants/aria.js');
|
8
8
|
var content = require('../../tooltip/src/content.js');
|
9
9
|
var icon = require('../../../utils/vue/icon.js');
|
10
|
-
var collection = require('../../collection/src/
|
10
|
+
var collection = require('../../collection/src/collection.js');
|
11
11
|
|
12
12
|
const dropdownProps = runtime.buildProps({
|
13
13
|
trigger: trigger.useTooltipTriggerProps.trigger,
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var form$1 = require('./src/
|
6
|
-
var formItem$1 = require('./src/form-
|
7
|
-
var form = require('./src/
|
8
|
-
var formItem = require('./src/form-
|
5
|
+
var form$1 = require('./src/form2.js');
|
6
|
+
var formItem$1 = require('./src/form-item2.js');
|
7
|
+
var form = require('./src/form.js');
|
8
|
+
var formItem = require('./src/form-item.js');
|
9
9
|
var constants = require('./src/constants.js');
|
10
10
|
var install = require('../../utils/vue/install.js');
|
11
11
|
var useFormCommonProps = require('./src/hooks/use-form-common-props.js');
|