@element-plus/nightly 0.0.20251023 → 0.0.20251025
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.full.js +6 -6
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +12 -12
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +6 -6
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +129 -24
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +24 -129
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/anchor/index.mjs +2 -2
- package/es/components/anchor/src/anchor.mjs +40 -207
- package/es/components/anchor/src/anchor.mjs.map +1 -1
- package/es/components/anchor/src/anchor2.mjs +207 -40
- package/es/components/anchor/src/anchor2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +4 -4
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.mjs +10 -37
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -10
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +61 -212
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +212 -61
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/basic-date-table.mjs +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/basic-date-table.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +26 -127
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +127 -26
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/dialog/index.mjs +2 -2
- package/es/components/dialog/src/dialog.mjs +174 -74
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog2.mjs +74 -174
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +27 -198
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +198 -27
- 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-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +1 -1
- package/es/components/index.mjs +15 -15
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -147
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +147 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/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/total.mjs +26 -6
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +6 -26
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +5 -65
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +65 -5
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +83 -256
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +256 -83
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/select/src/useSelect.mjs +2 -2
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +224 -72
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +72 -224
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +16 -85
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +85 -16
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs +3 -2
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/mask.mjs +18 -76
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +76 -18
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +192 -44
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +44 -192
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/tree/index.mjs +2 -2
- package/es/components/tree/src/tree.mjs +17 -336
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree/src/tree2.mjs +336 -17
- package/es/components/tree/src/tree2.mjs.map +1 -1
- package/es/index.mjs +15 -15
- 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 +129 -25
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +25 -129
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/anchor/index.js +2 -2
- package/lib/components/anchor/src/anchor.js +40 -206
- package/lib/components/anchor/src/anchor.js.map +1 -1
- package/lib/components/anchor/src/anchor2.js +206 -40
- package/lib/components/anchor/src/anchor2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +4 -4
- package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.js +10 -37
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +37 -10
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +62 -212
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +212 -62
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/basic-date-table.js +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/basic-date-table.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +26 -127
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +127 -26
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/src/dialog.js +174 -76
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog2.js +76 -174
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +28 -198
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +198 -28
- 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-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown2.js +1 -1
- package/lib/components/index.js +15 -15
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -146
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +146 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/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/total.js +26 -6
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +6 -26
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +5 -65
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +65 -5
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +83 -255
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +255 -83
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -31
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +31 -27
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/select/src/useSelect.js +1 -1
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +223 -72
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +72 -223
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +16 -85
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +85 -16
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tooltip/src/content2.js +3 -2
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/mask.js +18 -76
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +76 -18
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +191 -44
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +44 -191
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/tree/index.js +2 -2
- package/lib/components/tree/src/tree.js +17 -336
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree/src/tree2.js +336 -17
- package/lib/components/tree/src/tree2.js.map +1 -1
- package/lib/index.js +15 -15
- 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,182 +2,84 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var constants = require('./constants.js');
|
|
11
|
-
var dialog = require('./dialog.js');
|
|
12
|
-
var useDialog = require('./use-dialog.js');
|
|
13
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
-
var index = require('../../../hooks/use-deprecated/index.js');
|
|
15
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
16
|
-
var index$4 = require('../../../hooks/use-same-target/index.js');
|
|
5
|
+
var dialogContent = require('./dialog-content.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
|
+
var teleport = require('../../teleport/src/teleport.js');
|
|
8
|
+
var event = require('../../../constants/event.js');
|
|
9
|
+
var types = require('../../../utils/types.js');
|
|
17
10
|
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
resetPosition,
|
|
77
|
-
handleClose
|
|
78
|
-
});
|
|
79
|
-
return (_ctx, _cache) => {
|
|
80
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElTeleport), {
|
|
81
|
-
to: _ctx.appendTo,
|
|
82
|
-
disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
|
|
83
|
-
}, {
|
|
84
|
-
default: vue.withCtx(() => [
|
|
85
|
-
vue.createVNode(vue.Transition, vue.mergeProps(vue.unref(transitionConfig), { persisted: "" }), {
|
|
86
|
-
default: vue.withCtx(() => {
|
|
87
|
-
var _a;
|
|
88
|
-
return [
|
|
89
|
-
vue.withDirectives(vue.createVNode(vue.unref(index$3.ElOverlay), {
|
|
90
|
-
"custom-mask-event": "",
|
|
91
|
-
mask: _ctx.modal,
|
|
92
|
-
"overlay-class": [
|
|
93
|
-
(_a = _ctx.modalClass) != null ? _a : "",
|
|
94
|
-
`${vue.unref(ns).namespace.value}-modal-dialog`,
|
|
95
|
-
vue.unref(ns).is("penetrable", vue.unref(penetrable))
|
|
96
|
-
],
|
|
97
|
-
"z-index": vue.unref(zIndex)
|
|
98
|
-
}, {
|
|
99
|
-
default: vue.withCtx(() => [
|
|
100
|
-
vue.createElementVNode("div", {
|
|
101
|
-
role: "dialog",
|
|
102
|
-
"aria-modal": "true",
|
|
103
|
-
"aria-label": _ctx.title || void 0,
|
|
104
|
-
"aria-labelledby": !_ctx.title ? vue.unref(titleId) : void 0,
|
|
105
|
-
"aria-describedby": vue.unref(bodyId),
|
|
106
|
-
class: vue.normalizeClass(`${vue.unref(ns).namespace.value}-overlay-dialog`),
|
|
107
|
-
style: vue.normalizeStyle(vue.unref(overlayDialogStyle)),
|
|
108
|
-
onClick: vue.unref(overlayEvent).onClick,
|
|
109
|
-
onMousedown: vue.unref(overlayEvent).onMousedown,
|
|
110
|
-
onMouseup: vue.unref(overlayEvent).onMouseup
|
|
111
|
-
}, [
|
|
112
|
-
vue.createVNode(vue.unref(focusTrap["default"]), {
|
|
113
|
-
loop: "",
|
|
114
|
-
trapped: vue.unref(visible),
|
|
115
|
-
"focus-start-el": "container",
|
|
116
|
-
onFocusAfterTrapped: vue.unref(onOpenAutoFocus),
|
|
117
|
-
onFocusAfterReleased: vue.unref(onCloseAutoFocus),
|
|
118
|
-
onFocusoutPrevented: vue.unref(onFocusoutPrevented),
|
|
119
|
-
onReleaseRequested: vue.unref(onCloseRequested)
|
|
120
|
-
}, {
|
|
121
|
-
default: vue.withCtx(() => [
|
|
122
|
-
vue.unref(rendered) ? (vue.openBlock(), vue.createBlock(dialogContent["default"], vue.mergeProps({
|
|
123
|
-
key: 0,
|
|
124
|
-
ref_key: "dialogContentRef",
|
|
125
|
-
ref: dialogContentRef
|
|
126
|
-
}, _ctx.$attrs, {
|
|
127
|
-
center: _ctx.center,
|
|
128
|
-
"align-center": vue.unref(_alignCenter),
|
|
129
|
-
"close-icon": _ctx.closeIcon,
|
|
130
|
-
draggable: vue.unref(_draggable),
|
|
131
|
-
overflow: vue.unref(_overflow),
|
|
132
|
-
fullscreen: _ctx.fullscreen,
|
|
133
|
-
"header-class": _ctx.headerClass,
|
|
134
|
-
"body-class": _ctx.bodyClass,
|
|
135
|
-
"footer-class": _ctx.footerClass,
|
|
136
|
-
"show-close": _ctx.showClose,
|
|
137
|
-
title: _ctx.title,
|
|
138
|
-
"aria-level": _ctx.headerAriaLevel,
|
|
139
|
-
onClose: vue.unref(handleClose)
|
|
140
|
-
}), vue.createSlots({
|
|
141
|
-
header: vue.withCtx(() => [
|
|
142
|
-
!_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "header", {
|
|
143
|
-
key: 0,
|
|
144
|
-
close: vue.unref(handleClose),
|
|
145
|
-
titleId: vue.unref(titleId),
|
|
146
|
-
titleClass: vue.unref(ns).e("title")
|
|
147
|
-
}) : vue.renderSlot(_ctx.$slots, "title", { key: 1 })
|
|
148
|
-
]),
|
|
149
|
-
default: vue.withCtx(() => [
|
|
150
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
151
|
-
]),
|
|
152
|
-
_: 2
|
|
153
|
-
}, [
|
|
154
|
-
_ctx.$slots.footer ? {
|
|
155
|
-
name: "footer",
|
|
156
|
-
fn: vue.withCtx(() => [
|
|
157
|
-
vue.renderSlot(_ctx.$slots, "footer")
|
|
158
|
-
])
|
|
159
|
-
} : void 0
|
|
160
|
-
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : vue.createCommentVNode("v-if", true)
|
|
161
|
-
]),
|
|
162
|
-
_: 3
|
|
163
|
-
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
164
|
-
], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
|
|
165
|
-
]),
|
|
166
|
-
_: 3
|
|
167
|
-
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
168
|
-
[vue.vShow, vue.unref(visible)]
|
|
169
|
-
])
|
|
170
|
-
];
|
|
171
|
-
}),
|
|
172
|
-
_: 3
|
|
173
|
-
}, 16)
|
|
174
|
-
]),
|
|
175
|
-
_: 3
|
|
176
|
-
}, 8, ["to", "disabled"]);
|
|
177
|
-
};
|
|
11
|
+
const dialogProps = runtime.buildProps({
|
|
12
|
+
...dialogContent.dialogContentProps,
|
|
13
|
+
appendToBody: Boolean,
|
|
14
|
+
appendTo: {
|
|
15
|
+
type: teleport.teleportProps.to.type,
|
|
16
|
+
default: "body"
|
|
17
|
+
},
|
|
18
|
+
beforeClose: {
|
|
19
|
+
type: runtime.definePropType(Function)
|
|
20
|
+
},
|
|
21
|
+
destroyOnClose: Boolean,
|
|
22
|
+
closeOnClickModal: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
25
|
+
},
|
|
26
|
+
closeOnPressEscape: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: true
|
|
29
|
+
},
|
|
30
|
+
lockScroll: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
modal: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: true
|
|
37
|
+
},
|
|
38
|
+
modalPenetrable: Boolean,
|
|
39
|
+
openDelay: {
|
|
40
|
+
type: Number,
|
|
41
|
+
default: 0
|
|
42
|
+
},
|
|
43
|
+
closeDelay: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 0
|
|
46
|
+
},
|
|
47
|
+
top: {
|
|
48
|
+
type: String
|
|
49
|
+
},
|
|
50
|
+
modelValue: Boolean,
|
|
51
|
+
modalClass: String,
|
|
52
|
+
headerClass: String,
|
|
53
|
+
bodyClass: String,
|
|
54
|
+
footerClass: String,
|
|
55
|
+
width: {
|
|
56
|
+
type: [String, Number]
|
|
57
|
+
},
|
|
58
|
+
zIndex: {
|
|
59
|
+
type: Number
|
|
60
|
+
},
|
|
61
|
+
trapFocus: Boolean,
|
|
62
|
+
headerAriaLevel: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "2"
|
|
65
|
+
},
|
|
66
|
+
transition: {
|
|
67
|
+
type: runtime.definePropType([String, Object]),
|
|
68
|
+
default: void 0
|
|
178
69
|
}
|
|
179
70
|
});
|
|
180
|
-
|
|
71
|
+
const dialogEmits = {
|
|
72
|
+
open: () => true,
|
|
73
|
+
opened: () => true,
|
|
74
|
+
close: () => true,
|
|
75
|
+
closed: () => true,
|
|
76
|
+
[event.UPDATE_MODEL_EVENT]: (value) => types.isBoolean(value),
|
|
77
|
+
openAutoFocus: () => true,
|
|
78
|
+
closeAutoFocus: () => true
|
|
79
|
+
};
|
|
80
|
+
const dialogContextKey = Symbol("dialogContextKey");
|
|
181
81
|
|
|
182
|
-
exports
|
|
82
|
+
exports.dialogContextKey = dialogContextKey;
|
|
83
|
+
exports.dialogEmits = dialogEmits;
|
|
84
|
+
exports.dialogProps = dialogProps;
|
|
183
85
|
//# sourceMappingURL=dialog2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog2.js","sources":["../../../../../../packages/components/dialog/src/dialog.
|
|
1
|
+
{"version":3,"file":"dialog2.js","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { teleportProps } from '@element-plus/components/teleport'\nimport { dialogContentProps } from './dialog-content'\n\nimport type {\n ExtractPropTypes,\n InjectionKey,\n TransitionProps,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type Dialog from './dialog.vue'\n\ntype DoneFn = (cancel?: boolean) => void\n\nexport type DialogBeforeCloseFn = (done: DoneFn) => void\n\nexport type DialogTransition = string | TransitionProps\n\nexport const dialogProps = buildProps({\n ...dialogContentProps,\n /**\n * @description whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true`\n */\n appendToBody: Boolean,\n /**\n * @description which element the Dialog appends to\n */\n appendTo: {\n type: teleportProps.to.type,\n default: 'body',\n },\n /**\n * @description callback before Dialog closes, and it will prevent Dialog from closing, use done to close the dialog\n */\n beforeClose: {\n type: definePropType<DialogBeforeCloseFn>(Function),\n },\n /**\n * @description destroy elements in Dialog when closed\n */\n destroyOnClose: Boolean,\n /**\n * @description whether the Dialog can be closed by clicking the mask\n */\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the Dialog can be closed by pressing ESC\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether scroll of body is disabled while Dialog is displayed\n */\n lockScroll: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether a mask is displayed\n */\n modal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the mask is penetrable\n */\n modalPenetrable: Boolean,\n /**\n * @description the Time(milliseconds) before open\n */\n openDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description the Time(milliseconds) before close\n */\n closeDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description value for `margin-top` of Dialog CSS, default is 15vh\n */\n top: {\n type: String,\n },\n /**\n * @description visibility of Dialog\n */\n modelValue: Boolean,\n /**\n * @description custom class names for mask\n */\n modalClass: String,\n /**\n * @description custom class names for header wrapper\n */\n headerClass: String,\n /**\n * @description custom class names for body wrapper\n */\n bodyClass: String,\n /**\n * @description custom class names for footer wrapper\n */\n footerClass: String,\n /**\n * @description width of Dialog, default is 50%\n */\n width: {\n type: [String, Number],\n },\n /**\n * @description same as z-index in native CSS, z-order of dialog\n */\n zIndex: {\n type: Number,\n },\n trapFocus: Boolean,\n /**\n * @description header's aria-level attribute\n */\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n /**\n * @description custom transition configuration for dialog animation, it can be a string (transition name) or an object with Vue transition props\n */\n transition: {\n type: definePropType<DialogTransition>([String, Object]),\n default: undefined,\n },\n} as const)\n\nexport type DialogProps = ExtractPropTypes<typeof dialogProps>\nexport type DialogPropsPublic = __ExtractPublicPropTypes<typeof dialogProps>\n\nexport const dialogEmits = {\n open: () => true,\n opened: () => true,\n close: () => true,\n closed: () => true,\n [UPDATE_MODEL_EVENT]: (value: boolean) => isBoolean(value),\n openAutoFocus: () => true,\n closeAutoFocus: () => true,\n}\nexport type DialogEmits = typeof dialogEmits\nexport type DialogInstance = InstanceType<typeof Dialog> & unknown\nexport interface DialogConfigContext {\n alignCenter?: boolean\n draggable?: boolean\n overflow?: boolean\n transition?: DialogTransition\n}\n\nexport const dialogContextKey: InjectionKey<DialogConfigContext> =\n Symbol('dialogContextKey')\n"],"names":["buildProps","dialogContentProps","teleportProps","definePropType","UPDATE_MODEL_EVENT","isBoolean"],"mappings":";;;;;;;;;;AAIY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,GAAGC,gCAAkB;AACvB,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,sBAAa,CAAC,EAAE,CAAC,IAAI;AAC/B,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEC,sBAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,eAAe,EAAE,OAAO;AAC1B,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAS,CAAC,KAAK,CAAC;AACnD,EAAE,aAAa,EAAE,MAAM,IAAI;AAC3B,EAAE,cAAc,EAAE,MAAM,IAAI;AAC5B,EAAE;AACU,MAAC,gBAAgB,GAAG,MAAM,CAAC,kBAAkB;;;;;;"}
|
|
@@ -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,206 +2,36 @@
|
|
|
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 useResizable = require('./composables/useResizable.js');
|
|
13
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
-
var useDialog = require('../../dialog/src/use-dialog.js');
|
|
15
|
-
var index = require('../../../hooks/use-deprecated/index.js');
|
|
16
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
17
|
-
var index$2 = require('../../../hooks/use-locale/index.js');
|
|
5
|
+
var dialog = require('../../dialog/src/dialog2.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
|
-
|
|
42
|
-
const {
|
|
43
|
-
afterEnter,
|
|
44
|
-
afterLeave,
|
|
45
|
-
beforeLeave,
|
|
46
|
-
visible,
|
|
47
|
-
rendered,
|
|
48
|
-
titleId,
|
|
49
|
-
bodyId,
|
|
50
|
-
zIndex,
|
|
51
|
-
onModalClick,
|
|
52
|
-
onOpenAutoFocus,
|
|
53
|
-
onCloseAutoFocus,
|
|
54
|
-
onFocusoutPrevented,
|
|
55
|
-
onCloseRequested,
|
|
56
|
-
handleClose
|
|
57
|
-
} = useDialog.useDialog(props, drawerRef);
|
|
58
|
-
const { isHorizontal, size, isResizing } = useResizable.useResizable(props, draggerRef);
|
|
59
|
-
const penetrable = vue.computed(() => props.modalPenetrable && !props.modal);
|
|
60
|
-
expose({
|
|
61
|
-
handleClose,
|
|
62
|
-
afterEnter,
|
|
63
|
-
afterLeave
|
|
64
|
-
});
|
|
65
|
-
return (_ctx, _cache) => {
|
|
66
|
-
return vue.openBlock(), vue.createBlock(vue.unref(index$3.ElTeleport), {
|
|
67
|
-
to: _ctx.appendTo,
|
|
68
|
-
disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
|
|
69
|
-
}, {
|
|
70
|
-
default: vue.withCtx(() => [
|
|
71
|
-
vue.createVNode(vue.Transition, {
|
|
72
|
-
name: vue.unref(ns).b("fade"),
|
|
73
|
-
onAfterEnter: vue.unref(afterEnter),
|
|
74
|
-
onAfterLeave: vue.unref(afterLeave),
|
|
75
|
-
onBeforeLeave: vue.unref(beforeLeave),
|
|
76
|
-
persisted: ""
|
|
77
|
-
}, {
|
|
78
|
-
default: vue.withCtx(() => {
|
|
79
|
-
var _a;
|
|
80
|
-
return [
|
|
81
|
-
vue.withDirectives(vue.createVNode(vue.unref(index$4.ElOverlay), {
|
|
82
|
-
mask: _ctx.modal,
|
|
83
|
-
"overlay-class": [
|
|
84
|
-
vue.unref(ns).is("drawer"),
|
|
85
|
-
(_a = _ctx.modalClass) != null ? _a : "",
|
|
86
|
-
`${vue.unref(ns).namespace.value}-modal-drawer`,
|
|
87
|
-
vue.unref(ns).is("penetrable", vue.unref(penetrable))
|
|
88
|
-
],
|
|
89
|
-
"z-index": vue.unref(zIndex),
|
|
90
|
-
onClick: vue.unref(onModalClick)
|
|
91
|
-
}, {
|
|
92
|
-
default: vue.withCtx(() => [
|
|
93
|
-
vue.createVNode(vue.unref(focusTrap["default"]), {
|
|
94
|
-
loop: "",
|
|
95
|
-
trapped: vue.unref(visible),
|
|
96
|
-
"focus-trap-el": drawerRef.value,
|
|
97
|
-
"focus-start-el": focusStartRef.value,
|
|
98
|
-
onFocusAfterTrapped: vue.unref(onOpenAutoFocus),
|
|
99
|
-
onFocusAfterReleased: vue.unref(onCloseAutoFocus),
|
|
100
|
-
onFocusoutPrevented: vue.unref(onFocusoutPrevented),
|
|
101
|
-
onReleaseRequested: vue.unref(onCloseRequested)
|
|
102
|
-
}, {
|
|
103
|
-
default: vue.withCtx(() => [
|
|
104
|
-
vue.createElementVNode("div", vue.mergeProps({
|
|
105
|
-
ref_key: "drawerRef",
|
|
106
|
-
ref: drawerRef,
|
|
107
|
-
"aria-modal": "true",
|
|
108
|
-
"aria-label": _ctx.title || void 0,
|
|
109
|
-
"aria-labelledby": !_ctx.title ? vue.unref(titleId) : void 0,
|
|
110
|
-
"aria-describedby": vue.unref(bodyId)
|
|
111
|
-
}, _ctx.$attrs, {
|
|
112
|
-
class: [
|
|
113
|
-
vue.unref(ns).b(),
|
|
114
|
-
_ctx.direction,
|
|
115
|
-
vue.unref(visible) && "open",
|
|
116
|
-
vue.unref(ns).is("dragging", vue.unref(isResizing))
|
|
117
|
-
],
|
|
118
|
-
style: { [vue.unref(isHorizontal) ? "width" : "height"]: vue.unref(size) },
|
|
119
|
-
role: "dialog",
|
|
120
|
-
onClick: vue.withModifiers(() => {
|
|
121
|
-
}, ["stop"])
|
|
122
|
-
}), [
|
|
123
|
-
vue.createElementVNode("span", {
|
|
124
|
-
ref_key: "focusStartRef",
|
|
125
|
-
ref: focusStartRef,
|
|
126
|
-
class: vue.normalizeClass(vue.unref(ns).e("sr-focus")),
|
|
127
|
-
tabindex: "-1"
|
|
128
|
-
}, null, 2),
|
|
129
|
-
_ctx.withHeader ? (vue.openBlock(), vue.createElementBlock("header", {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: vue.normalizeClass([vue.unref(ns).e("header"), _ctx.headerClass])
|
|
132
|
-
}, [
|
|
133
|
-
!_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "header", {
|
|
134
|
-
key: 0,
|
|
135
|
-
close: vue.unref(handleClose),
|
|
136
|
-
titleId: vue.unref(titleId),
|
|
137
|
-
titleClass: vue.unref(ns).e("title")
|
|
138
|
-
}, () => [
|
|
139
|
-
vue.createElementVNode("span", {
|
|
140
|
-
id: vue.unref(titleId),
|
|
141
|
-
role: "heading",
|
|
142
|
-
"aria-level": _ctx.headerAriaLevel,
|
|
143
|
-
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
144
|
-
}, vue.toDisplayString(_ctx.title), 11, ["id", "aria-level"])
|
|
145
|
-
]) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
146
|
-
vue.createCommentVNode(" DEPRECATED SLOT ")
|
|
147
|
-
]),
|
|
148
|
-
_ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
149
|
-
key: 2,
|
|
150
|
-
"aria-label": vue.unref(t)("el.drawer.close"),
|
|
151
|
-
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
|
152
|
-
type: "button",
|
|
153
|
-
onClick: vue.unref(handleClose)
|
|
154
|
-
}, [
|
|
155
|
-
vue.createVNode(vue.unref(index$5.ElIcon), {
|
|
156
|
-
class: vue.normalizeClass(vue.unref(ns).e("close"))
|
|
157
|
-
}, {
|
|
158
|
-
default: vue.withCtx(() => [
|
|
159
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}, 8, ["class"])
|
|
163
|
-
], 10, ["aria-label", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
164
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
165
|
-
vue.unref(rendered) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
166
|
-
key: 1,
|
|
167
|
-
id: vue.unref(bodyId),
|
|
168
|
-
class: vue.normalizeClass([vue.unref(ns).e("body"), _ctx.bodyClass])
|
|
169
|
-
}, [
|
|
170
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
171
|
-
], 10, ["id"])) : vue.createCommentVNode("v-if", true),
|
|
172
|
-
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
173
|
-
key: 2,
|
|
174
|
-
class: vue.normalizeClass([vue.unref(ns).e("footer"), _ctx.footerClass])
|
|
175
|
-
}, [
|
|
176
|
-
vue.renderSlot(_ctx.$slots, "footer")
|
|
177
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
178
|
-
_ctx.resizable ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
179
|
-
key: 3,
|
|
180
|
-
ref_key: "draggerRef",
|
|
181
|
-
ref: draggerRef,
|
|
182
|
-
style: vue.normalizeStyle({ zIndex: vue.unref(zIndex) }),
|
|
183
|
-
class: vue.normalizeClass(vue.unref(ns).e("dragger"))
|
|
184
|
-
}, null, 6)) : vue.createCommentVNode("v-if", true)
|
|
185
|
-
], 16, ["aria-label", "aria-labelledby", "aria-describedby", "onClick"])
|
|
186
|
-
]),
|
|
187
|
-
_: 3
|
|
188
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
189
|
-
]),
|
|
190
|
-
_: 3
|
|
191
|
-
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
192
|
-
[vue.vShow, vue.unref(visible)]
|
|
193
|
-
])
|
|
194
|
-
];
|
|
195
|
-
}),
|
|
196
|
-
_: 3
|
|
197
|
-
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
198
|
-
]),
|
|
199
|
-
_: 3
|
|
200
|
-
}, 8, ["to", "disabled"]);
|
|
201
|
-
};
|
|
8
|
+
const drawerProps = runtime.buildProps({
|
|
9
|
+
...dialog.dialogProps,
|
|
10
|
+
direction: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "rtl",
|
|
13
|
+
values: ["ltr", "rtl", "ttb", "btt"]
|
|
14
|
+
},
|
|
15
|
+
resizable: Boolean,
|
|
16
|
+
size: {
|
|
17
|
+
type: [String, Number],
|
|
18
|
+
default: "30%"
|
|
19
|
+
},
|
|
20
|
+
withHeader: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: true
|
|
23
|
+
},
|
|
24
|
+
modalFade: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
headerAriaLevel: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "2"
|
|
202
31
|
}
|
|
203
32
|
});
|
|
204
|
-
|
|
33
|
+
const drawerEmits = dialog.dialogEmits;
|
|
205
34
|
|
|
206
|
-
exports
|
|
35
|
+
exports.drawerEmits = drawerEmits;
|
|
36
|
+
exports.drawerProps = drawerProps;
|
|
207
37
|
//# 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'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } 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 resizable: Boolean,\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>\nexport type DrawerPropsPublic = __ExtractPublicPropTypes<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,SAAS,EAAE,OAAO;AACpB,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;;;;;"}
|