@element-plus/nightly 0.0.20251217 → 0.0.20251219
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/README.md +6 -2
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +8 -13
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +8 -13
- 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 +29 -153
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +153 -29
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +486 -60
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +60 -486
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +61 -20
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +20 -61
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +31 -83
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +83 -31
- 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 +15 -180
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +180 -15
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +14 -43
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +43 -14
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs +1 -6
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +24 -169
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +169 -24
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +6 -94
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +94 -6
- package/es/components/descriptions/src/descriptions-row2.mjs.map +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 +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form.mjs +54 -174
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +174 -54
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/index.mjs +19 -19
- 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/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +4 -51
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +51 -4
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.mjs +7 -69
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +69 -7
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +65 -120
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +120 -65
- package/es/components/popover/src/popover2.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/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +27 -43
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +43 -27
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +27 -17
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +17 -27
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +18 -257
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +257 -18
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +4 -1
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +20 -66
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +66 -20
- 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 +66 -138
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +138 -66
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/mask.mjs +82 -17
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +17 -82
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +43 -255
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +255 -43
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/tree/src/model/useKeydown.mjs +2 -4
- package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +206 -27
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +27 -206
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/directives/mousewheel/index.d.ts +2 -2
- package/es/directives/mousewheel/index.mjs.map +1 -1
- package/es/index.mjs +19 -19
- 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 +30 -153
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +153 -30
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +484 -59
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +59 -484
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +61 -21
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +21 -61
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +31 -83
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +83 -31
- 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 +16 -180
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +180 -16
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +15 -43
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +43 -15
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js +1 -6
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +24 -169
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +169 -24
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +6 -94
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +94 -6
- package/lib/components/descriptions/src/descriptions-row2.js.map +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 +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form.js +55 -173
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +173 -55
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/index.js +19 -19
- 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/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +4 -51
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +51 -4
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.js +7 -69
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +69 -7
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +66 -120
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +120 -66
- package/lib/components/popover/src/popover2.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/row/index.js +2 -2
- package/lib/components/row/src/row.js +29 -43
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +43 -29
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +27 -17
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +17 -27
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +18 -257
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +257 -18
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +4 -1
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +20 -66
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +66 -20
- 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 +66 -143
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +143 -66
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/mask.js +82 -17
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +17 -82
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +43 -254
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +254 -43
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/tree/src/model/useKeydown.js +2 -4
- package/lib/components/tree/src/model/useKeydown.js.map +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-list.js +206 -28
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +28 -206
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/directives/mousewheel/index.d.ts +2 -2
- package/lib/directives/mousewheel/index.js.map +1 -1
- package/lib/index.js +19 -19
- 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/tags.json +1 -1
- package/theme-chalk/el-checkbox.css +1 -1
- package/theme-chalk/el-date-picker-panel.css +1 -1
- package/theme-chalk/el-form-item.css +1 -0
- package/theme-chalk/el-form.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/checkbox.scss +1 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +5 -0
- package/theme-chalk/src/form-item.scss +232 -0
- package/theme-chalk/src/form.scss +0 -229
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge2.js","sources":["../../../../../../packages/components/badge/src/badge.
|
|
1
|
+
{"version":3,"file":"badge2.js","sources":["../../../../../../packages/components/badge/src/badge.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <slot />\n <transition :name=\"`${ns.namespace.value}-zoom-in-center`\">\n <sup\n v-show=\"!hidden && (content || isDot || $slots.content)\"\n :class=\"[\n ns.e('content'),\n ns.em('content', type),\n ns.is('fixed', !!$slots.default),\n ns.is('dot', isDot),\n ns.is('hide-zero', !showZero && value === 0),\n badgeClass,\n ]\"\n :style=\"style\"\n >\n <slot name=\"content\" :value=\"content\">\n {{ content }}\n </slot>\n </sup>\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber } from '@element-plus/utils'\nimport { badgeProps } from './badge'\n\nimport type { StyleValue } from 'vue'\n\ndefineOptions({\n name: 'ElBadge',\n})\n\nconst props = defineProps(badgeProps)\n\nconst ns = useNamespace('badge')\n\nconst content = computed<string>(() => {\n if (props.isDot) return ''\n if (isNumber(props.value) && isNumber(props.max)) {\n return props.max < props.value ? `${props.max}+` : `${props.value}`\n }\n return `${props.value}`\n})\n\nconst style = computed<StyleValue>(() => {\n return [\n {\n backgroundColor: props.color,\n marginRight: addUnit(-props.offset[0]),\n marginTop: addUnit(props.offset[1]),\n },\n props.badgeStyle ?? {},\n ]\n})\n\ndefineExpose({\n /** @description badge content */\n content,\n})\n</script>\n"],"names":["useNamespace","computed","isNumber","style","addUnit","_openBlock","_createElementBlock","_normalizeClass","_unref","_renderSlot","_createVNode","_Transition","_withDirectives","_createElementVNode","type","$slots","isDot","showZero","value","badgeClass","_normalizeStyle","_createTextVNode","hidden"],"mappings":";;;;;;;;;;;;;;;;;;AAoCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAER,IAAA,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAEzB,IAAA,MAAA,OAAA,GAAUC,aAAiB,MAAM;AACjC,MAAA,IAAA,KAAM,CAAA,KAAA;AAAc,QAAA,OAAA,EAAA,CAAA;AACxB,MAAA,IAAIC,eAAS,KAAM,CAAA,KAAK,KAAKA,cAAS,CAAA,KAAA,CAAM,GAAG,CAAG,EAAA;AACzC,QAAA,OAAA,KAAA,CAAM,MAAM,KAAM,CAAA,KAAA,GAAQ,GAAG,KAAM,CAAA,GAAA,CAAA,CAAA,CAAA,GAAS,GAAG,KAAM,CAAA,KAAA,CAAA,CAAA,CAAA;AAAA,OAC9D;AACO,MAAA,OAAA,GAAG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,CAAA,EAAA,CAAE,SAAYO,CAAAA,CAAAA,IAAAA,CAAAA,MAAAA,CAAO,OAAO,CAAA;AAAA,oBAAaP,UAAA,EAAA,CAAA,CAAG,EAAE,CAAA,KAAA,EAAQQ,KAAK,KAAA,CAAA;AAAA,oBAAaR,SAAA,CAAG,EAAA,CAAA,CAAA,EAAE,CAAA,WAAA,EAAeS,CAAAA,IAAAA,CAAAA,QAAAA,IAAYC,IAAK,CAAA,KAAA,KAAA,CAAA,CAAA;AAAA,oBAAmBC,IAAAA,CAAAA,UAAAA;AAAAA,mBAAAA,CAAAA;AAAAA,kBAQnN,KAAA,EAAKC,kBAAE,CAAAjB,OAAA,CAAK,KAAA,CAAA;AAAA,iBAAA;AAAA;kBAEbM,cAAA,CAEO,KAFe,MAAA,EAAA,SAAA,EAAA,EAAA,KAAO,EAAA,OAAA,CAAO,KAAA,EAAA,EAApC,MAEO;AAAA,oBAAAY,mBAAA;AAAA,0CADF,QAAO,KAAA,CAAA;AAAA,sBAAA,CAAA;AAAA,qBAAA;AAAA,mBAAA,CAAA;AAAA;;;6BAZHC,IAAW,CAAA,MAAA,KAAA,OAAA,CAAA,KAAA,IAAWN,IAASD,CAAAA,KAAAA,IAAAA,IAAAA,CAAAA,MAAAA,CAAO,OAAO,CAAA,CAAA;AAAA,eAAA,CAAA;AAAA;;;;;;;;;;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var calendar$1 = require('./src/
|
|
6
|
-
var calendar = require('./src/
|
|
5
|
+
var calendar$1 = require('./src/calendar2.js');
|
|
6
|
+
var calendar = require('./src/calendar.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElCalendar = install.withInstall(calendar$1["default"]);
|
|
@@ -2,189 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var useCalendar = require('./use-calendar.js');
|
|
9
|
-
var calendar = require('./calendar2.js');
|
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
12
|
-
var index$1 = require('../../../hooks/use-locale/index.js');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
6
|
+
var event = require('../../../constants/event.js');
|
|
7
|
+
var shared = require('@vue/shared');
|
|
13
8
|
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
const isValidRange = (range) => shared.isArray(range) && range.length === 2 && range.every((item) => shared.isDate(item));
|
|
10
|
+
const calendarProps = runtime.buildProps({
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: Date
|
|
18
13
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
23
|
-
const ns = index.useNamespace("calendar");
|
|
24
|
-
const props = __props;
|
|
25
|
-
const emit = __emit;
|
|
26
|
-
const {
|
|
27
|
-
calculateValidatedDateRange,
|
|
28
|
-
date,
|
|
29
|
-
pickDay,
|
|
30
|
-
realSelectedDay,
|
|
31
|
-
selectDate,
|
|
32
|
-
validatedRange
|
|
33
|
-
} = useCalendar.useCalendar(props, emit, COMPONENT_NAME);
|
|
34
|
-
const { t } = index$1.useLocale();
|
|
35
|
-
const i18nDate = vue.computed(() => {
|
|
36
|
-
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
37
|
-
return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
|
|
38
|
-
});
|
|
39
|
-
__expose({
|
|
40
|
-
selectedDay: realSelectedDay,
|
|
41
|
-
pickDay,
|
|
42
|
-
selectDate,
|
|
43
|
-
calculateValidatedDateRange
|
|
44
|
-
});
|
|
45
|
-
return (_ctx, _cache) => {
|
|
46
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
47
|
-
"div",
|
|
48
|
-
{
|
|
49
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
|
50
|
-
},
|
|
51
|
-
[
|
|
52
|
-
vue.createElementVNode(
|
|
53
|
-
"div",
|
|
54
|
-
{
|
|
55
|
-
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
56
|
-
},
|
|
57
|
-
[
|
|
58
|
-
vue.renderSlot(_ctx.$slots, "header", { date: i18nDate.value }, () => [
|
|
59
|
-
vue.createElementVNode(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
63
|
-
},
|
|
64
|
-
vue.toDisplayString(i18nDate.value),
|
|
65
|
-
3
|
|
66
|
-
),
|
|
67
|
-
vue.unref(validatedRange).length === 0 ? (vue.openBlock(), vue.createElementBlock(
|
|
68
|
-
"div",
|
|
69
|
-
{
|
|
70
|
-
key: 0,
|
|
71
|
-
class: vue.normalizeClass(vue.unref(ns).e("button-group"))
|
|
72
|
-
},
|
|
73
|
-
[
|
|
74
|
-
vue.createVNode(vue.unref(index$2.ElButtonGroup), null, {
|
|
75
|
-
default: vue.withCtx(() => [
|
|
76
|
-
vue.createVNode(vue.unref(index$2.ElButton), {
|
|
77
|
-
size: "small",
|
|
78
|
-
onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(selectDate)("prev-month"))
|
|
79
|
-
}, {
|
|
80
|
-
default: vue.withCtx(() => [
|
|
81
|
-
vue.createTextVNode(
|
|
82
|
-
vue.toDisplayString(vue.unref(t)("el.datepicker.prevMonth")),
|
|
83
|
-
1
|
|
84
|
-
)
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
}),
|
|
88
|
-
vue.createVNode(vue.unref(index$2.ElButton), {
|
|
89
|
-
size: "small",
|
|
90
|
-
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(selectDate)("today"))
|
|
91
|
-
}, {
|
|
92
|
-
default: vue.withCtx(() => [
|
|
93
|
-
vue.createTextVNode(
|
|
94
|
-
vue.toDisplayString(vue.unref(t)("el.datepicker.today")),
|
|
95
|
-
1
|
|
96
|
-
)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}),
|
|
100
|
-
vue.createVNode(vue.unref(index$2.ElButton), {
|
|
101
|
-
size: "small",
|
|
102
|
-
onClick: _cache[2] || (_cache[2] = ($event) => vue.unref(selectDate)("next-month"))
|
|
103
|
-
}, {
|
|
104
|
-
default: vue.withCtx(() => [
|
|
105
|
-
vue.createTextVNode(
|
|
106
|
-
vue.toDisplayString(vue.unref(t)("el.datepicker.nextMonth")),
|
|
107
|
-
1
|
|
108
|
-
)
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
})
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
})
|
|
115
|
-
],
|
|
116
|
-
2
|
|
117
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
118
|
-
])
|
|
119
|
-
],
|
|
120
|
-
2
|
|
121
|
-
),
|
|
122
|
-
vue.unref(validatedRange).length === 0 ? (vue.openBlock(), vue.createElementBlock(
|
|
123
|
-
"div",
|
|
124
|
-
{
|
|
125
|
-
key: 0,
|
|
126
|
-
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
127
|
-
},
|
|
128
|
-
[
|
|
129
|
-
vue.createVNode(dateTable["default"], {
|
|
130
|
-
date: vue.unref(date),
|
|
131
|
-
"selected-day": vue.unref(realSelectedDay),
|
|
132
|
-
onPick: vue.unref(pickDay)
|
|
133
|
-
}, vue.createSlots({
|
|
134
|
-
_: 2
|
|
135
|
-
}, [
|
|
136
|
-
_ctx.$slots["date-cell"] ? {
|
|
137
|
-
name: "date-cell",
|
|
138
|
-
fn: vue.withCtx((data) => [
|
|
139
|
-
vue.renderSlot(_ctx.$slots, "date-cell", vue.normalizeProps(vue.guardReactiveProps(data)))
|
|
140
|
-
]),
|
|
141
|
-
key: "0"
|
|
142
|
-
} : void 0
|
|
143
|
-
]), 1032, ["date", "selected-day", "onPick"])
|
|
144
|
-
],
|
|
145
|
-
2
|
|
146
|
-
)) : (vue.openBlock(), vue.createElementBlock(
|
|
147
|
-
"div",
|
|
148
|
-
{
|
|
149
|
-
key: 1,
|
|
150
|
-
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
151
|
-
},
|
|
152
|
-
[
|
|
153
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
154
|
-
vue.Fragment,
|
|
155
|
-
null,
|
|
156
|
-
vue.renderList(vue.unref(validatedRange), (range_, index) => {
|
|
157
|
-
return vue.openBlock(), vue.createBlock(dateTable["default"], {
|
|
158
|
-
key: index,
|
|
159
|
-
date: range_[0],
|
|
160
|
-
"selected-day": vue.unref(realSelectedDay),
|
|
161
|
-
range: range_,
|
|
162
|
-
"hide-header": index !== 0,
|
|
163
|
-
onPick: vue.unref(pickDay)
|
|
164
|
-
}, vue.createSlots({
|
|
165
|
-
_: 2
|
|
166
|
-
}, [
|
|
167
|
-
_ctx.$slots["date-cell"] ? {
|
|
168
|
-
name: "date-cell",
|
|
169
|
-
fn: vue.withCtx((data) => [
|
|
170
|
-
vue.renderSlot(_ctx.$slots, "date-cell", vue.mergeProps({ ref_for: true }, data))
|
|
171
|
-
]),
|
|
172
|
-
key: "0"
|
|
173
|
-
} : void 0
|
|
174
|
-
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
175
|
-
}),
|
|
176
|
-
128
|
|
177
|
-
))
|
|
178
|
-
],
|
|
179
|
-
2
|
|
180
|
-
))
|
|
181
|
-
],
|
|
182
|
-
2
|
|
183
|
-
);
|
|
184
|
-
};
|
|
14
|
+
range: {
|
|
15
|
+
type: runtime.definePropType(Array),
|
|
16
|
+
validator: isValidRange
|
|
185
17
|
}
|
|
186
18
|
});
|
|
187
|
-
|
|
19
|
+
const calendarEmits = {
|
|
20
|
+
[event.UPDATE_MODEL_EVENT]: (value) => shared.isDate(value),
|
|
21
|
+
[event.INPUT_EVENT]: (value) => shared.isDate(value)
|
|
22
|
+
};
|
|
188
23
|
|
|
189
|
-
exports
|
|
24
|
+
exports.calendarEmits = calendarEmits;
|
|
25
|
+
exports.calendarProps = calendarProps;
|
|
190
26
|
//# sourceMappingURL=calendar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sources":["../../../../../../packages/components/calendar/src/calendar.
|
|
1
|
+
{"version":3,"file":"calendar.js","sources":["../../../../../../packages/components/calendar/src/calendar.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isArray,\n isDate,\n} from '@element-plus/utils'\nimport { INPUT_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport type CalendarDateType =\n | 'prev-month'\n | 'next-month'\n | 'prev-year'\n | 'next-year'\n | 'today'\n\nconst isValidRange = (range: unknown): range is [Date, Date] =>\n isArray(range) && range.length === 2 && range.every((item) => isDate(item))\n\nexport const calendarProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: Date,\n },\n /**\n * @description time range, including start time and end time.\n * Start time must be start day of week, end time must be end day of week, the time span cannot exceed two months.\n */\n range: {\n type: definePropType<[Date, Date]>(Array),\n validator: isValidRange,\n },\n} as const)\nexport type CalendarProps = ExtractPropTypes<typeof calendarProps>\nexport type CalendarPropsPublic = ExtractPublicPropTypes<typeof calendarProps>\n\nexport const calendarEmits = {\n [UPDATE_MODEL_EVENT]: (value: Date) => isDate(value),\n [INPUT_EVENT]: (value: Date) => isDate(value),\n}\nexport type CalendarEmits = typeof calendarEmits\n"],"names":["isArray","isDate","buildProps","definePropType","UPDATE_MODEL_EVENT","INPUT_EVENT"],"mappings":";;;;;;;;AAiBA,MAAM,YAAe,GAAA,CAAC,KACpB,KAAAA,cAAA,CAAQ,KAAK,CAAK,IAAA,KAAA,CAAM,MAAW,KAAA,CAAA,IAAK,MAAM,KAAM,CAAA,CAAC,IAAS,KAAAC,aAAA,CAAO,IAAI,CAAC,CAAA,CAAA;AAErE,MAAM,gBAAgBC,kBAAW,CAAA;AAAA,EAItC,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,IAAA;AAAA,GACR;AAAA,EAKA,KAAO,EAAA;AAAA,IACL,IAAA,EAAMC,uBAA6B,KAAK,CAAA;AAAA,IACxC,SAAW,EAAA,YAAA;AAAA,GACb;AACF,CAAU,EAAA;AAIH,MAAM,aAAgB,GAAA;AAAA,EAC3B,CAACC,wBAAA,GAAqB,CAAC,KAAA,KAAgBH,cAAO,KAAK,CAAA;AAAA,EACnD,CAACI,iBAAA,GAAc,CAAC,KAAA,KAAgBJ,cAAO,KAAK,CAAA;AAC9C;;;;;"}
|
|
@@ -2,25 +2,189 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$2 = require('../../button/index.js');
|
|
7
|
+
var dateTable = require('./date-table2.js');
|
|
8
|
+
var useCalendar = require('./use-calendar.js');
|
|
9
|
+
var calendar = require('./calendar.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
12
|
+
var index$1 = require('../../../hooks/use-locale/index.js');
|
|
8
13
|
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
const COMPONENT_NAME = "ElCalendar";
|
|
15
|
+
const _sfc_main = vue.defineComponent({
|
|
16
|
+
...{
|
|
17
|
+
name: COMPONENT_NAME
|
|
13
18
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
__name: "calendar",
|
|
20
|
+
props: calendar.calendarProps,
|
|
21
|
+
emits: calendar.calendarEmits,
|
|
22
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
23
|
+
const ns = index.useNamespace("calendar");
|
|
24
|
+
const props = __props;
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const {
|
|
27
|
+
calculateValidatedDateRange,
|
|
28
|
+
date,
|
|
29
|
+
pickDay,
|
|
30
|
+
realSelectedDay,
|
|
31
|
+
selectDate,
|
|
32
|
+
validatedRange
|
|
33
|
+
} = useCalendar.useCalendar(props, emit, COMPONENT_NAME);
|
|
34
|
+
const { t } = index$1.useLocale();
|
|
35
|
+
const i18nDate = vue.computed(() => {
|
|
36
|
+
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
37
|
+
return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
|
|
38
|
+
});
|
|
39
|
+
__expose({
|
|
40
|
+
selectedDay: realSelectedDay,
|
|
41
|
+
pickDay,
|
|
42
|
+
selectDate,
|
|
43
|
+
calculateValidatedDateRange
|
|
44
|
+
});
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
50
|
+
},
|
|
51
|
+
[
|
|
52
|
+
vue.createElementVNode(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
56
|
+
},
|
|
57
|
+
[
|
|
58
|
+
vue.renderSlot(_ctx.$slots, "header", { date: i18nDate.value }, () => [
|
|
59
|
+
vue.createElementVNode(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
63
|
+
},
|
|
64
|
+
vue.toDisplayString(i18nDate.value),
|
|
65
|
+
3
|
|
66
|
+
),
|
|
67
|
+
vue.unref(validatedRange).length === 0 ? (vue.openBlock(), vue.createElementBlock(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
key: 0,
|
|
71
|
+
class: vue.normalizeClass(vue.unref(ns).e("button-group"))
|
|
72
|
+
},
|
|
73
|
+
[
|
|
74
|
+
vue.createVNode(vue.unref(index$2.ElButtonGroup), null, {
|
|
75
|
+
default: vue.withCtx(() => [
|
|
76
|
+
vue.createVNode(vue.unref(index$2.ElButton), {
|
|
77
|
+
size: "small",
|
|
78
|
+
onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(selectDate)("prev-month"))
|
|
79
|
+
}, {
|
|
80
|
+
default: vue.withCtx(() => [
|
|
81
|
+
vue.createTextVNode(
|
|
82
|
+
vue.toDisplayString(vue.unref(t)("el.datepicker.prevMonth")),
|
|
83
|
+
1
|
|
84
|
+
)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}),
|
|
88
|
+
vue.createVNode(vue.unref(index$2.ElButton), {
|
|
89
|
+
size: "small",
|
|
90
|
+
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(selectDate)("today"))
|
|
91
|
+
}, {
|
|
92
|
+
default: vue.withCtx(() => [
|
|
93
|
+
vue.createTextVNode(
|
|
94
|
+
vue.toDisplayString(vue.unref(t)("el.datepicker.today")),
|
|
95
|
+
1
|
|
96
|
+
)
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}),
|
|
100
|
+
vue.createVNode(vue.unref(index$2.ElButton), {
|
|
101
|
+
size: "small",
|
|
102
|
+
onClick: _cache[2] || (_cache[2] = ($event) => vue.unref(selectDate)("next-month"))
|
|
103
|
+
}, {
|
|
104
|
+
default: vue.withCtx(() => [
|
|
105
|
+
vue.createTextVNode(
|
|
106
|
+
vue.toDisplayString(vue.unref(t)("el.datepicker.nextMonth")),
|
|
107
|
+
1
|
|
108
|
+
)
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
})
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
})
|
|
115
|
+
],
|
|
116
|
+
2
|
|
117
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
118
|
+
])
|
|
119
|
+
],
|
|
120
|
+
2
|
|
121
|
+
),
|
|
122
|
+
vue.unref(validatedRange).length === 0 ? (vue.openBlock(), vue.createElementBlock(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
key: 0,
|
|
126
|
+
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
127
|
+
},
|
|
128
|
+
[
|
|
129
|
+
vue.createVNode(dateTable["default"], {
|
|
130
|
+
date: vue.unref(date),
|
|
131
|
+
"selected-day": vue.unref(realSelectedDay),
|
|
132
|
+
onPick: vue.unref(pickDay)
|
|
133
|
+
}, vue.createSlots({
|
|
134
|
+
_: 2
|
|
135
|
+
}, [
|
|
136
|
+
_ctx.$slots["date-cell"] ? {
|
|
137
|
+
name: "date-cell",
|
|
138
|
+
fn: vue.withCtx((data) => [
|
|
139
|
+
vue.renderSlot(_ctx.$slots, "date-cell", vue.normalizeProps(vue.guardReactiveProps(data)))
|
|
140
|
+
]),
|
|
141
|
+
key: "0"
|
|
142
|
+
} : void 0
|
|
143
|
+
]), 1032, ["date", "selected-day", "onPick"])
|
|
144
|
+
],
|
|
145
|
+
2
|
|
146
|
+
)) : (vue.openBlock(), vue.createElementBlock(
|
|
147
|
+
"div",
|
|
148
|
+
{
|
|
149
|
+
key: 1,
|
|
150
|
+
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
151
|
+
},
|
|
152
|
+
[
|
|
153
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
154
|
+
vue.Fragment,
|
|
155
|
+
null,
|
|
156
|
+
vue.renderList(vue.unref(validatedRange), (range_, index) => {
|
|
157
|
+
return vue.openBlock(), vue.createBlock(dateTable["default"], {
|
|
158
|
+
key: index,
|
|
159
|
+
date: range_[0],
|
|
160
|
+
"selected-day": vue.unref(realSelectedDay),
|
|
161
|
+
range: range_,
|
|
162
|
+
"hide-header": index !== 0,
|
|
163
|
+
onPick: vue.unref(pickDay)
|
|
164
|
+
}, vue.createSlots({
|
|
165
|
+
_: 2
|
|
166
|
+
}, [
|
|
167
|
+
_ctx.$slots["date-cell"] ? {
|
|
168
|
+
name: "date-cell",
|
|
169
|
+
fn: vue.withCtx((data) => [
|
|
170
|
+
vue.renderSlot(_ctx.$slots, "date-cell", vue.mergeProps({ ref_for: true }, data))
|
|
171
|
+
]),
|
|
172
|
+
key: "0"
|
|
173
|
+
} : void 0
|
|
174
|
+
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
175
|
+
}),
|
|
176
|
+
128
|
|
177
|
+
))
|
|
178
|
+
],
|
|
179
|
+
2
|
|
180
|
+
))
|
|
181
|
+
],
|
|
182
|
+
2
|
|
183
|
+
);
|
|
184
|
+
};
|
|
17
185
|
}
|
|
18
186
|
});
|
|
19
|
-
|
|
20
|
-
[event.UPDATE_MODEL_EVENT]: (value) => shared.isDate(value),
|
|
21
|
-
[event.INPUT_EVENT]: (value) => shared.isDate(value)
|
|
22
|
-
};
|
|
187
|
+
var Calendar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);
|
|
23
188
|
|
|
24
|
-
exports
|
|
25
|
-
exports.calendarProps = calendarProps;
|
|
189
|
+
exports["default"] = Calendar;
|
|
26
190
|
//# sourceMappingURL=calendar2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar2.js","sources":["../../../../../../packages/components/calendar/src/calendar.
|
|
1
|
+
{"version":3,"file":"calendar2.js","sources":["../../../../../../packages/components/calendar/src/calendar.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('header')\">\n <slot name=\"header\" :date=\"i18nDate\">\n <div :class=\"ns.e('title')\">{{ i18nDate }}</div>\n <div v-if=\"validatedRange.length === 0\" :class=\"ns.e('button-group')\">\n <el-button-group>\n <el-button size=\"small\" @click=\"selectDate('prev-month')\">\n {{ t('el.datepicker.prevMonth') }}\n </el-button>\n <el-button size=\"small\" @click=\"selectDate('today')\">\n {{ t('el.datepicker.today') }}\n </el-button>\n <el-button size=\"small\" @click=\"selectDate('next-month')\">\n {{ t('el.datepicker.nextMonth') }}\n </el-button>\n </el-button-group>\n </div>\n </slot>\n </div>\n <div v-if=\"validatedRange.length === 0\" :class=\"ns.e('body')\">\n <date-table :date=\"date\" :selected-day=\"realSelectedDay\" @pick=\"pickDay\">\n <template v-if=\"$slots['date-cell']\" #date-cell=\"data\">\n <slot name=\"date-cell\" v-bind=\"data\" />\n </template>\n </date-table>\n </div>\n <div v-else :class=\"ns.e('body')\">\n <date-table\n v-for=\"(range_, index) in validatedRange\"\n :key=\"index\"\n :date=\"range_[0]\"\n :selected-day=\"realSelectedDay\"\n :range=\"range_\"\n :hide-header=\"index !== 0\"\n @pick=\"pickDay\"\n >\n <template v-if=\"$slots['date-cell']\" #date-cell=\"data\">\n <slot name=\"date-cell\" v-bind=\"data\" />\n </template>\n </date-table>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElButton, ElButtonGroup } from '@element-plus/components/button'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport DateTable from './date-table.vue'\nimport { useCalendar } from './use-calendar'\nimport { calendarEmits, calendarProps } from './calendar'\n\nconst ns = useNamespace('calendar')\n\nconst COMPONENT_NAME = 'ElCalendar'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(calendarProps)\nconst emit = defineEmits(calendarEmits)\n\nconst {\n calculateValidatedDateRange,\n date,\n pickDay,\n realSelectedDay,\n selectDate,\n validatedRange,\n} = useCalendar(props, emit, COMPONENT_NAME)\n\nconst { t } = useLocale()\n\nconst i18nDate = computed(() => {\n const pickedMonth = `el.datepicker.month${date.value.format('M')}`\n return `${date.value.year()} ${t('el.datepicker.year')} ${t(pickedMonth)}`\n})\n\ndefineExpose({\n /** @description currently selected date */\n selectedDay: realSelectedDay,\n /** @description select a specific date */\n pickDay,\n /** @description select date */\n selectDate,\n /** @description Calculate the validate date range according to the start and end dates */\n calculateValidatedDateRange,\n})\n</script>\n"],"names":["useNamespace","useCalendar","useLocale","computed","_openBlock","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_renderSlot","_createVNode","ElButtonGroup","_withCtx","ElButton","_createTextVNode","DateTable","_createSlots","$slots","_Fragment","_renderList","_createBlock","_mergeProps"],"mappings":";;;;;;;;;;;;;AAuDA,MAAM,cAAiB,GAAA,YAAA,CAAA;;;;;;;;;AAFjB,IAAA,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AAOlC,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA;AAAA,MACJ,2BAAA;AAAA,MACA,IAAA;AAAA,MACA,OAAA;AAAA,MACA,eAAA;AAAA,MACA,UAAA;AAAA,MACA,cAAA;AAAA,KACE,GAAAC,uBAAA,CAAY,KAAO,EAAA,IAAA,EAAM,cAAc,CAAA,CAAA;AAErC,IAAA,MAAA,EAAE,CAAE,EAAA,GAAIC,iBAAU,EAAA,CAAA;AAElB,IAAA,MAAA,QAAA,GAAWC,aAAS,MAAM;AAC9B,MAAA,MAAM,WAAc,GAAA,CAAA,mBAAA,EAAsB,IAAK,CAAA,KAAA,CAAM,OAAO,GAAG,CAAA,CAAA,CAAA,CAAA;AAC/D,MAAO,OAAA,CAAA,EAAG,KAAK,KAAM,CAAA,IAAA,MAAU,CAAE,CAAA,oBAAoB,CAAK,CAAA,CAAA,EAAA,CAAA,CAAE,WAAW,CAAA,CAAA,CAAA,CAAA;AAAA,KACxE,CAAA,CAAA;AAEY,IAAA,QAAA,CAAA;AAAA,MAEX,WAAa,EAAA,eAAA;AAAA,MAEb,OAAA;AAAA,MAEA,UAAA;AAAA,MAEA,2BAAA;AAAA,KACD,CAAA,CAAA;;AAvFC,MAA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A,IAAI,CAAA,CAAA;AAAA,uBAAA,CAAA;AAAA;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var checkTag$1 = require('./src/check-
|
|
6
|
-
var checkTag = require('./src/check-
|
|
5
|
+
var checkTag$1 = require('./src/check-tag2.js');
|
|
6
|
+
var checkTag = require('./src/check-tag.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElCheckTag = install.withInstall(checkTag$1["default"]);
|
|
@@ -2,52 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
8
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
6
|
+
var types = require('../../../utils/types.js');
|
|
9
7
|
var event = require('../../../constants/event.js');
|
|
10
8
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
setup(__props, { emit: __emit }) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const emit = __emit;
|
|
21
|
-
const ns = index.useNamespace("check-tag");
|
|
22
|
-
const containerKls = vue.computed(() => [
|
|
23
|
-
ns.b(),
|
|
24
|
-
ns.is("checked", props.checked),
|
|
25
|
-
ns.is("disabled", props.disabled),
|
|
26
|
-
ns.m(props.type || "primary")
|
|
27
|
-
]);
|
|
28
|
-
const handleChange = () => {
|
|
29
|
-
if (props.disabled)
|
|
30
|
-
return;
|
|
31
|
-
const checked = !props.checked;
|
|
32
|
-
emit(event.CHANGE_EVENT, checked);
|
|
33
|
-
emit("update:checked", checked);
|
|
34
|
-
};
|
|
35
|
-
return (_ctx, _cache) => {
|
|
36
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
37
|
-
"span",
|
|
38
|
-
{
|
|
39
|
-
class: vue.normalizeClass(containerKls.value),
|
|
40
|
-
onClick: handleChange
|
|
41
|
-
},
|
|
42
|
-
[
|
|
43
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
44
|
-
],
|
|
45
|
-
2
|
|
46
|
-
);
|
|
47
|
-
};
|
|
9
|
+
const checkTagProps = runtime.buildProps({
|
|
10
|
+
checked: Boolean,
|
|
11
|
+
disabled: Boolean,
|
|
12
|
+
type: {
|
|
13
|
+
type: String,
|
|
14
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
15
|
+
default: "primary"
|
|
48
16
|
}
|
|
49
17
|
});
|
|
50
|
-
|
|
18
|
+
const checkTagEmits = {
|
|
19
|
+
"update:checked": (value) => types.isBoolean(value),
|
|
20
|
+
[event.CHANGE_EVENT]: (value) => types.isBoolean(value)
|
|
21
|
+
};
|
|
51
22
|
|
|
52
|
-
exports
|
|
23
|
+
exports.checkTagEmits = checkTagEmits;
|
|
24
|
+
exports.checkTagProps = checkTagProps;
|
|
53
25
|
//# sourceMappingURL=check-tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-tag.js","sources":["../../../../../../packages/components/check-tag/src/check-tag.
|
|
1
|
+
{"version":3,"file":"check-tag.js","sources":["../../../../../../packages/components/check-tag/src/check-tag.ts"],"sourcesContent":["import { buildProps, isBoolean } from '@element-plus/utils'\nimport { CHANGE_EVENT } from '@element-plus/constants'\n\nimport type CheckTag from './check-tag.vue'\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const checkTagProps = buildProps({\n /**\n * @description is checked\n */\n checked: Boolean,\n /**\n * @description whether the check-tag is disabled\n */\n disabled: Boolean,\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger'],\n default: 'primary',\n },\n} as const)\nexport type CheckTagProps = ExtractPropTypes<typeof checkTagProps>\nexport type CheckTagPropsPublic = ExtractPublicPropTypes<typeof checkTagProps>\n\nexport const checkTagEmits = {\n 'update:checked': (value: boolean) => isBoolean(value),\n [CHANGE_EVENT]: (value: boolean) => isBoolean(value),\n}\nexport type CheckTagEmits = typeof checkTagEmits\n\nexport type CheckTagInstance = InstanceType<typeof CheckTag> & unknown\n"],"names":["buildProps","isBoolean","CHANGE_EVENT"],"mappings":";;;;;;;;AAMO,MAAM,gBAAgBA,kBAAW,CAAA;AAAA,EAItC,OAAS,EAAA,OAAA;AAAA,EAIT,QAAU,EAAA,OAAA;AAAA,EAIV,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,SAAW,EAAA,MAAA,EAAQ,WAAW,QAAQ,CAAA;AAAA,IAC1D,OAAS,EAAA,SAAA;AAAA,GACX;AACF,CAAU,EAAA;AAIH,MAAM,aAAgB,GAAA;AAAA,EAC3B,gBAAkB,EAAA,CAAC,KAAmB,KAAAC,eAAA,CAAU,KAAK,CAAA;AAAA,EACrD,CAACC,kBAAA,GAAe,CAAC,KAAA,KAAmBD,gBAAU,KAAK,CAAA;AACrD;;;;;"}
|