@element-plus/nightly 0.0.20260105 → 0.0.20260106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +4 -5
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +10 -10
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +4 -5
- 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/src/affix.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +39 -135
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +135 -39
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +60 -486
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +486 -60
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +83 -31
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +31 -83
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +196 -23
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +23 -196
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/dialog/src/dialog-content.mjs +38 -112
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +112 -38
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +2 -2
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +43 -15
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +15 -43
- 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 +31 -225
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +225 -31
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/index.mjs +20 -20
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +586 -124
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +124 -586
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/pagination/src/components/jumper.mjs +69 -7
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +7 -69
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +229 -15
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +15 -229
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +120 -65
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +65 -120
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +38 -7
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +7 -38
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +256 -52
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +52 -256
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +295 -85
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +85 -295
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +96 -29
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +29 -96
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +244 -56
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +56 -244
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +67 -17
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +17 -67
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/splitter.mjs +14 -114
- package/es/components/splitter/src/splitter.mjs.map +1 -1
- package/es/components/splitter/src/splitter2.mjs +114 -14
- package/es/components/splitter/src/splitter2.mjs.map +1 -1
- package/es/components/table/src/store/current.mjs +2 -4
- package/es/components/table/src/store/current.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +131 -26
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +26 -131
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -8
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +8 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +66 -20
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +20 -66
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +138 -66
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +66 -138
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +255 -43
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +43 -255
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +173 -20
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +20 -173
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/index.mjs +20 -20
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.js +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +40 -134
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +134 -40
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +59 -484
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +484 -59
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +83 -31
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +31 -83
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +196 -24
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +24 -196
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/dialog/src/dialog-content.js +38 -111
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +111 -38
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +2 -2
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +43 -15
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +15 -43
- 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 +32 -225
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +225 -32
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/index.js +20 -20
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +582 -121
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +121 -582
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/pagination/src/components/jumper.js +69 -7
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +7 -69
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +229 -15
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +15 -229
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +120 -66
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +66 -120
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +38 -8
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +8 -38
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +256 -52
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +52 -256
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +294 -85
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +85 -294
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +96 -31
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +31 -96
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +244 -57
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +57 -244
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +67 -17
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +17 -67
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/splitter.js +15 -114
- package/lib/components/splitter/src/splitter.js.map +1 -1
- package/lib/components/splitter/src/splitter2.js +114 -15
- package/lib/components/splitter/src/splitter2.js.map +1 -1
- package/lib/components/table/src/store/current.js +2 -4
- package/lib/components/table/src/store/current.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +131 -27
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +27 -131
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -8
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +8 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +66 -20
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +20 -66
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +143 -66
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +66 -143
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +254 -43
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +43 -254
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +173 -22
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +22 -173
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/index.js +20 -20
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.
|
|
1
|
+
{"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.vue"],"sourcesContent":["<template>\n <div :ref=\"composedDialogRef\" :class=\"dialogKls\" :style=\"style\" tabindex=\"-1\">\n <header\n ref=\"headerRef\"\n :class=\"[ns.e('header'), headerClass, { 'show-close': showClose }]\"\n >\n <slot name=\"header\">\n <span role=\"heading\" :aria-level=\"ariaLevel\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.dialog.close')\"\n :class=\"ns.e('headerbtn')\"\n type=\"button\"\n @click=\"$emit('close')\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"closeIcon || Close\" />\n </el-icon>\n </button>\n </header>\n <div :id=\"bodyId\" :class=\"[ns.e('body'), bodyClass]\">\n <slot />\n </div>\n <footer v-if=\"$slots.footer\" :class=\"[ns.e('footer'), footerClass]\">\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { FOCUS_TRAP_INJECTION_KEY } from '@element-plus/components/focus-trap'\nimport { useDraggable, useLocale } from '@element-plus/hooks'\nimport { CloseComponents, composeRefs } from '@element-plus/utils'\nimport { dialogInjectionKey } from './constants'\nimport { dialogContentEmits, dialogContentProps } from './dialog-content'\n\nconst { t } = useLocale()\nconst { Close } = CloseComponents\n\ndefineOptions({ name: 'ElDialogContent' })\nconst props = defineProps(dialogContentProps)\ndefineEmits(dialogContentEmits)\n\nconst { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey)!\nconst { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY)!\n\nconst composedDialogRef = composeRefs(focusTrapRef, dialogRef)\n\nconst draggable = computed(() => !!props.draggable)\nconst overflow = computed(() => !!props.overflow)\nconst { resetPosition, updatePosition, isDragging } = useDraggable(\n dialogRef,\n headerRef,\n draggable,\n overflow\n)\n\nconst dialogKls = computed(() => [\n ns.b(),\n ns.is('fullscreen', props.fullscreen),\n ns.is('draggable', draggable.value),\n ns.is('dragging', isDragging.value),\n ns.is('align-center', !!props.alignCenter),\n { [ns.m('center')]: props.center },\n])\n\ndefineExpose({\n resetPosition,\n updatePosition,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_unref","_normalizeClass","_normalizeStyle","_createElementVNode","headerClass","showClose","_renderSlot","ariaLevel","_toDisplayString","title","$emit","_createVNode","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;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { dialogContentProps } from './dialog-
|
|
1
|
+
import { dialogContentProps } from './dialog-content.mjs';
|
|
2
2
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
3
|
-
import { teleportProps } from '../../teleport/src/
|
|
3
|
+
import { teleportProps } from '../../teleport/src/teleport2.mjs';
|
|
4
4
|
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
|
5
5
|
import { isBoolean } from '../../../utils/types.mjs';
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import { defineComponent, useSlots, computed, ref, provide, openBlock, createBlo
|
|
|
2
2
|
import { ElOverlay } from '../../overlay/index.mjs';
|
|
3
3
|
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
|
4
4
|
import { ElTeleport } from '../../teleport/index.mjs';
|
|
5
|
-
import ElDialogContent from './dialog-
|
|
5
|
+
import ElDialogContent from './dialog-content2.mjs';
|
|
6
6
|
import { dialogInjectionKey } from './constants.mjs';
|
|
7
7
|
import { dialogProps, dialogEmits } from './dialog.mjs';
|
|
8
8
|
import { useDialog } from './use-dialog.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Divider from './src/
|
|
2
|
-
export { dividerProps } from './src/
|
|
1
|
+
import Divider from './src/divider.mjs';
|
|
2
|
+
export { dividerProps } from './src/divider2.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElDivider = withInstall(Divider);
|
|
@@ -1,21 +1,49 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot, createCommentVNode } from 'vue';
|
|
2
|
+
import { dividerProps } from './divider2.mjs';
|
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
2
5
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
values: ["horizontal", "vertical"],
|
|
7
|
-
default: "horizontal"
|
|
6
|
+
const _sfc_main = defineComponent({
|
|
7
|
+
...{
|
|
8
|
+
name: "ElDivider"
|
|
8
9
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
__name: "divider",
|
|
11
|
+
props: dividerProps,
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const ns = useNamespace("divider");
|
|
15
|
+
const dividerStyle = computed(() => {
|
|
16
|
+
return ns.cssVar({
|
|
17
|
+
"border-style": props.borderStyle
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return openBlock(), createElementBlock(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.direction)]),
|
|
25
|
+
style: normalizeStyle(dividerStyle.value),
|
|
26
|
+
role: "separator"
|
|
27
|
+
},
|
|
28
|
+
[
|
|
29
|
+
_ctx.$slots.default && _ctx.direction !== "vertical" ? (openBlock(), createElementBlock(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
key: 0,
|
|
33
|
+
class: normalizeClass([unref(ns).e("text"), unref(ns).is(_ctx.contentPosition)])
|
|
34
|
+
},
|
|
35
|
+
[
|
|
36
|
+
renderSlot(_ctx.$slots, "default")
|
|
37
|
+
],
|
|
38
|
+
2
|
|
39
|
+
)) : createCommentVNode("v-if", true)
|
|
40
|
+
],
|
|
41
|
+
6
|
|
42
|
+
);
|
|
43
|
+
};
|
|
17
44
|
}
|
|
18
45
|
});
|
|
46
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
|
|
19
47
|
|
|
20
|
-
export {
|
|
48
|
+
export { Divider as default };
|
|
21
49
|
//# sourceMappingURL=divider.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.mjs","sources":["../../../../../../packages/components/divider/src/divider.
|
|
1
|
+
{"version":3,"file":"divider.mjs","sources":["../../../../../../packages/components/divider/src/divider.vue"],"sourcesContent":["<template>\n <div\n :class=\"[ns.b(), ns.m(direction)]\"\n :style=\"dividerStyle\"\n role=\"separator\"\n >\n <div\n v-if=\"$slots.default && direction !== 'vertical'\"\n :class=\"[ns.e('text'), ns.is(contentPosition)]\"\n >\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { dividerProps } from './divider'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElDivider',\n})\nconst props = defineProps(dividerProps)\nconst ns = useNamespace('divider')\nconst dividerStyle = computed(() => {\n return ns.cssVar({\n 'border-style': props.borderStyle,\n }) as CSSProperties\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","direction","_normalizeStyle","$slots","contentPosition","_renderSlot"],"mappings":";;;;;;;;;;;;AAyBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACR,IAAA,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AAC3B,IAAA,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,OAAO,GAAG,MAAO,CAAA;AAAA,QACf,gBAAgB,KAAM,CAAA,WAAA;AAAA,OACvB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;;AA9BC,MAAA,OAAAA,WAAA,EAAAC,kBAAA;AAAA,QAWM,KAAA;AAAA,QAAA;AAAA,UAVH,KAAK,EAAAC,cAAA,CAAG,CAAAC,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,EAAK,EAAAA,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAEC,IAAS,CAAA,SAAA,CAAA,CAAA,CAAA;AAAA,UAC9B,KAAA,EAAKC,cAAE,CAAA,YAAA,CAAY,KAAA,CAAA;AAAA,UACpB,IAAK,EAAA,WAAA;AAAA,SAAA;AAAA;UAGGC,KAAO,MAAA,CAAA,OAAA,IAAWF,cAAS,KAAA,UAAA,IADnCJ,WAAA,EAAAC,kBAAA;AAAA,YAKM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAHH,OAAKC,gBAAGC,KAAG,CAAA,EAAA,EAAA,CAAC,CAAA,MAAU,CAAA,EAAAA,KAAA,CAAA,EAAA,CAAG,CAAA,EAAA,CAAGI,IAAe,CAAA,eAAA,CAAA,CAAA,CAAA;AAAA,aAAA;AAAA;cAE5CC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,aAAA;AAAA;;;;;;;;;;;;"}
|
|
@@ -1,49 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { dividerProps } from './divider.mjs';
|
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
5
2
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const dividerProps = buildProps({
|
|
4
|
+
direction: {
|
|
5
|
+
type: String,
|
|
6
|
+
values: ["horizontal", "vertical"],
|
|
7
|
+
default: "horizontal"
|
|
9
8
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
return (_ctx, _cache) => {
|
|
21
|
-
return openBlock(), createElementBlock(
|
|
22
|
-
"div",
|
|
23
|
-
{
|
|
24
|
-
class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.direction)]),
|
|
25
|
-
style: normalizeStyle(dividerStyle.value),
|
|
26
|
-
role: "separator"
|
|
27
|
-
},
|
|
28
|
-
[
|
|
29
|
-
_ctx.$slots.default && _ctx.direction !== "vertical" ? (openBlock(), createElementBlock(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
key: 0,
|
|
33
|
-
class: normalizeClass([unref(ns).e("text"), unref(ns).is(_ctx.contentPosition)])
|
|
34
|
-
},
|
|
35
|
-
[
|
|
36
|
-
renderSlot(_ctx.$slots, "default")
|
|
37
|
-
],
|
|
38
|
-
2
|
|
39
|
-
)) : createCommentVNode("v-if", true)
|
|
40
|
-
],
|
|
41
|
-
6
|
|
42
|
-
);
|
|
43
|
-
};
|
|
9
|
+
contentPosition: {
|
|
10
|
+
type: String,
|
|
11
|
+
values: ["left", "center", "right"],
|
|
12
|
+
default: "center"
|
|
13
|
+
},
|
|
14
|
+
borderStyle: {
|
|
15
|
+
type: definePropType(String),
|
|
16
|
+
default: "solid"
|
|
44
17
|
}
|
|
45
18
|
});
|
|
46
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
|
|
47
19
|
|
|
48
|
-
export {
|
|
20
|
+
export { dividerProps };
|
|
49
21
|
//# sourceMappingURL=divider2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider2.mjs","sources":["../../../../../../packages/components/divider/src/divider.
|
|
1
|
+
{"version":3,"file":"divider2.mjs","sources":["../../../../../../packages/components/divider/src/divider.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Divider from './divider.vue'\n\nexport type BorderStyle = CSSStyleDeclaration['borderStyle']\n\nexport const dividerProps = buildProps({\n /**\n * @description Set divider's direction\n */\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n /**\n * @description Set the style of divider\n */\n contentPosition: {\n type: String,\n values: ['left', 'center', 'right'],\n default: 'center',\n },\n /**\n * @description the position of the customized content on the divider line\n */\n borderStyle: {\n type: definePropType<BorderStyle>(String),\n default: 'solid',\n },\n} as const)\nexport type DividerProps = ExtractPropTypes<typeof dividerProps>\nexport type DividerPropsPublic = ExtractPublicPropTypes<typeof dividerProps>\n\nexport type DividerInstance = InstanceType<typeof Divider> & unknown\n"],"names":[],"mappings":";;AAOO,MAAM,eAAe,UAAW,CAAA;AAAA,EAIrC,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,MAAA,EAAQ,CAAC,YAAA,EAAc,UAAU,CAAA;AAAA,IACjC,OAAS,EAAA,YAAA;AAAA,GACX;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,CAAC,MAAQ,EAAA,QAAA,EAAU,OAAO,CAAA;AAAA,IAClC,OAAS,EAAA,QAAA;AAAA,GACX;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAA4B,MAAM,CAAA;AAAA,IACxC,OAAS,EAAA,OAAA;AAAA,GACX;AACF,CAAU;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Drawer from './src/
|
|
2
|
-
export { drawerEmits, drawerProps } from './src/
|
|
1
|
+
import Drawer from './src/drawer2.mjs';
|
|
2
|
+
export { drawerEmits, drawerProps } from './src/drawer.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElDrawer = withInstall(Drawer);
|
|
@@ -1,231 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ElOverlay } from '../../overlay/index.mjs';
|
|
4
|
-
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
|
5
|
-
import { ElTeleport } from '../../teleport/index.mjs';
|
|
6
|
-
import { ElIcon } from '../../icon/index.mjs';
|
|
7
|
-
import { drawerProps, drawerEmits } from './drawer2.mjs';
|
|
8
|
-
import { useResizable } from './composables/useResizable.mjs';
|
|
9
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
10
|
-
import { useDialog } from '../../dialog/src/use-dialog.mjs';
|
|
11
|
-
import { useDeprecated } from '../../../hooks/use-deprecated/index.mjs';
|
|
12
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
13
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
1
|
+
import { dialogProps, dialogEmits } from '../../dialog/src/dialog.mjs';
|
|
2
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
14
3
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
name: "ElDrawer",
|
|
22
|
-
inheritAttrs: false
|
|
4
|
+
const drawerProps = buildProps({
|
|
5
|
+
...dialogProps,
|
|
6
|
+
direction: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "rtl",
|
|
9
|
+
values: ["ltr", "rtl", "ttb", "btt"]
|
|
23
10
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
);
|
|
41
|
-
const drawerRef = ref();
|
|
42
|
-
const focusStartRef = ref();
|
|
43
|
-
const draggerRef = ref();
|
|
44
|
-
const ns = useNamespace("drawer");
|
|
45
|
-
const { t } = useLocale();
|
|
46
|
-
const {
|
|
47
|
-
afterEnter,
|
|
48
|
-
afterLeave,
|
|
49
|
-
beforeLeave,
|
|
50
|
-
visible,
|
|
51
|
-
rendered,
|
|
52
|
-
titleId,
|
|
53
|
-
bodyId,
|
|
54
|
-
zIndex,
|
|
55
|
-
onModalClick,
|
|
56
|
-
onOpenAutoFocus,
|
|
57
|
-
onCloseAutoFocus,
|
|
58
|
-
onFocusoutPrevented,
|
|
59
|
-
onCloseRequested,
|
|
60
|
-
handleClose
|
|
61
|
-
} = useDialog(props, drawerRef);
|
|
62
|
-
const { isHorizontal, size, isResizing } = useResizable(props, draggerRef, emit);
|
|
63
|
-
const penetrable = computed(() => props.modalPenetrable && !props.modal);
|
|
64
|
-
__expose({
|
|
65
|
-
handleClose,
|
|
66
|
-
afterEnter,
|
|
67
|
-
afterLeave
|
|
68
|
-
});
|
|
69
|
-
return (_ctx, _cache) => {
|
|
70
|
-
return openBlock(), createBlock(unref(ElTeleport), {
|
|
71
|
-
to: _ctx.appendTo,
|
|
72
|
-
disabled: _ctx.appendTo !== "body" ? false : !_ctx.appendToBody
|
|
73
|
-
}, {
|
|
74
|
-
default: withCtx(() => [
|
|
75
|
-
createVNode(Transition, {
|
|
76
|
-
name: unref(ns).b("fade"),
|
|
77
|
-
onAfterEnter: unref(afterEnter),
|
|
78
|
-
onAfterLeave: unref(afterLeave),
|
|
79
|
-
onBeforeLeave: unref(beforeLeave),
|
|
80
|
-
persisted: ""
|
|
81
|
-
}, {
|
|
82
|
-
default: withCtx(() => {
|
|
83
|
-
var _a;
|
|
84
|
-
return [
|
|
85
|
-
withDirectives(createVNode(unref(ElOverlay), {
|
|
86
|
-
mask: _ctx.modal,
|
|
87
|
-
"overlay-class": [
|
|
88
|
-
unref(ns).is("drawer"),
|
|
89
|
-
(_a = _ctx.modalClass) != null ? _a : "",
|
|
90
|
-
`${unref(ns).namespace.value}-modal-drawer`,
|
|
91
|
-
unref(ns).is("penetrable", penetrable.value)
|
|
92
|
-
],
|
|
93
|
-
"z-index": unref(zIndex),
|
|
94
|
-
onClick: unref(onModalClick)
|
|
95
|
-
}, {
|
|
96
|
-
default: withCtx(() => [
|
|
97
|
-
createVNode(unref(ElFocusTrap), {
|
|
98
|
-
loop: "",
|
|
99
|
-
trapped: unref(visible),
|
|
100
|
-
"focus-trap-el": drawerRef.value,
|
|
101
|
-
"focus-start-el": focusStartRef.value,
|
|
102
|
-
onFocusAfterTrapped: unref(onOpenAutoFocus),
|
|
103
|
-
onFocusAfterReleased: unref(onCloseAutoFocus),
|
|
104
|
-
onFocusoutPrevented: unref(onFocusoutPrevented),
|
|
105
|
-
onReleaseRequested: unref(onCloseRequested)
|
|
106
|
-
}, {
|
|
107
|
-
default: withCtx(() => [
|
|
108
|
-
createElementVNode("div", mergeProps({
|
|
109
|
-
ref_key: "drawerRef",
|
|
110
|
-
ref: drawerRef,
|
|
111
|
-
"aria-modal": "true",
|
|
112
|
-
"aria-label": _ctx.title || void 0,
|
|
113
|
-
"aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
|
|
114
|
-
"aria-describedby": unref(bodyId)
|
|
115
|
-
}, _ctx.$attrs, {
|
|
116
|
-
class: [
|
|
117
|
-
unref(ns).b(),
|
|
118
|
-
_ctx.direction,
|
|
119
|
-
unref(visible) && "open",
|
|
120
|
-
unref(ns).is("dragging", unref(isResizing))
|
|
121
|
-
],
|
|
122
|
-
style: { [unref(isHorizontal) ? "width" : "height"]: unref(size) },
|
|
123
|
-
role: "dialog",
|
|
124
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
125
|
-
}, ["stop"]))
|
|
126
|
-
}), [
|
|
127
|
-
createElementVNode(
|
|
128
|
-
"span",
|
|
129
|
-
{
|
|
130
|
-
ref_key: "focusStartRef",
|
|
131
|
-
ref: focusStartRef,
|
|
132
|
-
class: normalizeClass(unref(ns).e("sr-focus")),
|
|
133
|
-
tabindex: "-1"
|
|
134
|
-
},
|
|
135
|
-
null,
|
|
136
|
-
2
|
|
137
|
-
),
|
|
138
|
-
_ctx.withHeader ? (openBlock(), createElementBlock(
|
|
139
|
-
"header",
|
|
140
|
-
{
|
|
141
|
-
key: 0,
|
|
142
|
-
class: normalizeClass([unref(ns).e("header"), _ctx.headerClass])
|
|
143
|
-
},
|
|
144
|
-
[
|
|
145
|
-
!_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
|
|
146
|
-
key: 0,
|
|
147
|
-
close: unref(handleClose),
|
|
148
|
-
titleId: unref(titleId),
|
|
149
|
-
titleClass: unref(ns).e("title")
|
|
150
|
-
}, () => [
|
|
151
|
-
createElementVNode("span", {
|
|
152
|
-
id: unref(titleId),
|
|
153
|
-
role: "heading",
|
|
154
|
-
"aria-level": _ctx.headerAriaLevel,
|
|
155
|
-
class: normalizeClass(unref(ns).e("title"))
|
|
156
|
-
}, toDisplayString(_ctx.title), 11, _hoisted_2)
|
|
157
|
-
]) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
158
|
-
createCommentVNode(" DEPRECATED SLOT ")
|
|
159
|
-
]),
|
|
160
|
-
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
161
|
-
key: 2,
|
|
162
|
-
"aria-label": unref(t)("el.drawer.close"),
|
|
163
|
-
class: normalizeClass(unref(ns).e("close-btn")),
|
|
164
|
-
type: "button",
|
|
165
|
-
onClick: _cache[0] || (_cache[0] = (...args) => unref(handleClose) && unref(handleClose)(...args))
|
|
166
|
-
}, [
|
|
167
|
-
createVNode(unref(ElIcon), {
|
|
168
|
-
class: normalizeClass(unref(ns).e("close"))
|
|
169
|
-
}, {
|
|
170
|
-
default: withCtx(() => [
|
|
171
|
-
createVNode(unref(Close))
|
|
172
|
-
]),
|
|
173
|
-
_: 1
|
|
174
|
-
}, 8, ["class"])
|
|
175
|
-
], 10, _hoisted_3)) : createCommentVNode("v-if", true)
|
|
176
|
-
],
|
|
177
|
-
2
|
|
178
|
-
)) : createCommentVNode("v-if", true),
|
|
179
|
-
unref(rendered) ? (openBlock(), createElementBlock("div", {
|
|
180
|
-
key: 1,
|
|
181
|
-
id: unref(bodyId),
|
|
182
|
-
class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass])
|
|
183
|
-
}, [
|
|
184
|
-
renderSlot(_ctx.$slots, "default")
|
|
185
|
-
], 10, _hoisted_4)) : createCommentVNode("v-if", true),
|
|
186
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock(
|
|
187
|
-
"div",
|
|
188
|
-
{
|
|
189
|
-
key: 2,
|
|
190
|
-
class: normalizeClass([unref(ns).e("footer"), _ctx.footerClass])
|
|
191
|
-
},
|
|
192
|
-
[
|
|
193
|
-
renderSlot(_ctx.$slots, "footer")
|
|
194
|
-
],
|
|
195
|
-
2
|
|
196
|
-
)) : createCommentVNode("v-if", true),
|
|
197
|
-
_ctx.resizable ? (openBlock(), createElementBlock(
|
|
198
|
-
"div",
|
|
199
|
-
{
|
|
200
|
-
key: 3,
|
|
201
|
-
ref_key: "draggerRef",
|
|
202
|
-
ref: draggerRef,
|
|
203
|
-
style: normalizeStyle({ zIndex: unref(zIndex) }),
|
|
204
|
-
class: normalizeClass(unref(ns).e("dragger"))
|
|
205
|
-
},
|
|
206
|
-
null,
|
|
207
|
-
6
|
|
208
|
-
)) : createCommentVNode("v-if", true)
|
|
209
|
-
], 16, _hoisted_1)
|
|
210
|
-
]),
|
|
211
|
-
_: 3
|
|
212
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
213
|
-
]),
|
|
214
|
-
_: 3
|
|
215
|
-
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
216
|
-
[vShow, unref(visible)]
|
|
217
|
-
])
|
|
218
|
-
];
|
|
219
|
-
}),
|
|
220
|
-
_: 3
|
|
221
|
-
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
222
|
-
]),
|
|
223
|
-
_: 3
|
|
224
|
-
}, 8, ["to", "disabled"]);
|
|
225
|
-
};
|
|
11
|
+
resizable: Boolean,
|
|
12
|
+
size: {
|
|
13
|
+
type: [String, Number],
|
|
14
|
+
default: "30%"
|
|
15
|
+
},
|
|
16
|
+
withHeader: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true
|
|
19
|
+
},
|
|
20
|
+
modalFade: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: true
|
|
23
|
+
},
|
|
24
|
+
headerAriaLevel: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "2"
|
|
226
27
|
}
|
|
227
28
|
});
|
|
228
|
-
|
|
29
|
+
const drawerEmits = {
|
|
30
|
+
...dialogEmits,
|
|
31
|
+
"resize-start": (evt, size) => evt instanceof MouseEvent && typeof size === "number",
|
|
32
|
+
resize: (evt, size) => evt instanceof MouseEvent && typeof size === "number",
|
|
33
|
+
"resize-end": (evt, size) => evt instanceof MouseEvent && typeof size === "number"
|
|
34
|
+
};
|
|
229
35
|
|
|
230
|
-
export {
|
|
36
|
+
export { drawerEmits, drawerProps };
|
|
231
37
|
//# sourceMappingURL=drawer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.mjs","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=\"[\n ns.is('drawer'),\n modalClass ?? '',\n `${ns.namespace.value}-modal-drawer`,\n ns.is('penetrable', penetrable),\n ]\"\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=\"[\n ns.b(),\n direction,\n visible && 'open',\n ns.is('dragging', isResizing),\n ]\"\n :style=\"{ [isHorizontal ? 'width' : 'height']: size }\"\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'), headerClass]\">\n <template v-if=\"!$slots.title\">\n <slot\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n >\n <span\n :id=\"titleId\"\n role=\"heading\"\n :aria-level=\"headerAriaLevel\"\n :class=\"ns.e('title')\"\n >\n {{ title }}\n </span>\n </slot>\n </template>\n <template v-else>\n <slot name=\"title\">\n <!-- DEPRECATED SLOT -->\n </slot>\n </template>\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')\">\n <close />\n </el-icon>\n </button>\n </header>\n <template v-if=\"rendered\">\n <div :id=\"bodyId\" :class=\"[ns.e('body'), bodyClass]\">\n <slot />\n </div>\n </template>\n <div v-if=\"$slots.footer\" :class=\"[ns.e('footer'), footerClass]\">\n <slot name=\"footer\" />\n </div>\n <div\n v-if=\"resizable\"\n ref=\"draggerRef\"\n :style=\"{ zIndex }\"\n :class=\"ns.e('dragger')\"\n />\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'\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 ElIcon from '@element-plus/components/icon'\nimport { useDeprecated, useLocale, useNamespace } from '@element-plus/hooks'\nimport { drawerEmits, drawerProps } from './drawer'\nimport { useResizable } from './composables/useResizable'\n\ndefineOptions({\n name: 'ElDrawer',\n inheritAttrs: false,\n})\n\nconst props = defineProps(drawerProps)\nconst emit = defineEmits(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 draggerRef = ref<HTMLElement>()\nconst ns = useNamespace('drawer')\nconst { t } = useLocale()\n\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, size, isResizing } = useResizable(props, draggerRef, emit)\n\nconst penetrable = computed(() => props.modalPenetrable && !props.modal)\n\ndefineExpose({\n handleClose,\n afterEnter,\n afterLeave,\n})\n</script>\n"],"names":["_createBlock","_unref","appendTo","appendToBody","_createVNode","_Transition","_withDirectives","modal","modalClass","_createElementVNode","_mergeProps","title","$attrs","direction","_withModifiers","_normalizeClass","withHeader","_openBlock","_createElementBlock","headerClass","$slots","_renderSlot","headerAriaLevel","_toDisplayString","_createCommentVNode","showClose","bodyClass","footerClass","resizable","_normalizeStyle"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACb,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,aAAA;AAAA,MACE;AAAA,QACE,KAAO,EAAA,WAAA;AAA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IAAAH,SAAA,EAAA,EAAAC,kBAAA;AAAA,4BAEM,KAAA;AAAA,4BAAA;AAAA,8BAAA,GAAA,EAAA,CAAA;AAAA,8BAFqB,KAAA,EAAKH,cAAG,CAAA,CAAAd,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,EAAY0B,IAAW,CAAA,WAAA,CAAA,CAAA;AAAA,6BAAA;AAAA;8BAC5DN,UAAA,CAAsB,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,6BAAA;AAAA;;0BAGhBO,IAAAA,CADR,SAAA,IAAAX,SAAA,EAAA,EAAAC,kBAAA;AAAA,4BAKE,KAAA;AAAA,4BAAA;AAAA,8BAAA,GAAA,EAAA,CAAA;AAAA,8BAHI,OAAA,EAAA,YAAA;AAAA,8BAAJ,GAAI,EAAA,UAAA;AAAA,8BACH,OAAKW,yBAAI5B,KAAM,CAAA,MAAA,GAAA,CAAA;AAAA,8BACf,OAAKc,cAAE,CAAAd,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,SAAA,CAAA,CAAA;AAAA,6BAAA;AAAA;;;;;;;;;;0BAtFVA,KAAO,CAAA,OAAA,CAAA,CAAA;AAAA,iBAAA,CAAA;AAAA;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"drawer.mjs","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 = {\n ...dialogEmits,\n 'resize-start': (evt: MouseEvent, size: number) =>\n evt instanceof MouseEvent && typeof size === 'number',\n resize: (evt: MouseEvent, size: number) =>\n evt instanceof MouseEvent && typeof size === 'number',\n 'resize-end': (evt: MouseEvent, size: number) =>\n evt instanceof MouseEvent && typeof size === 'number',\n}\n\nexport type DrawerEmits = typeof drawerEmits\n"],"names":[],"mappings":";;;AAKO,MAAM,cAAc,UAAW,CAAA;AAAA,EACpC,GAAG,WAAA;AAAA,EACH,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,IACT,MAAQ,EAAA,CAAC,KAAO,EAAA,KAAA,EAAO,OAAO,KAAK,CAAA;AAAA,GACrC;AAAA,EACA,SAAW,EAAA,OAAA;AAAA,EACX,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AACF,CAAU,EAAA;AAKH,MAAM,WAAc,GAAA;AAAA,EACzB,GAAG,WAAA;AAAA,EACH,gBAAgB,CAAC,GAAA,EAAiB,SAChC,GAAe,YAAA,UAAA,IAAc,OAAO,IAAS,KAAA,QAAA;AAAA,EAC/C,QAAQ,CAAC,GAAA,EAAiB,SACxB,GAAe,YAAA,UAAA,IAAc,OAAO,IAAS,KAAA,QAAA;AAAA,EAC/C,cAAc,CAAC,GAAA,EAAiB,SAC9B,GAAe,YAAA,UAAA,IAAc,OAAO,IAAS,KAAA,QAAA;AACjD;;;;"}
|