@element-plus/nightly 0.0.20260102 → 0.0.20260104
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 +11 -12
- package/dist/index.full.min.js +22 -22
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +24 -24
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +11 -12
- 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/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +485 -59
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +59 -485
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb.mjs +37 -9
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +9 -37
- package/es/components/breadcrumb/src/breadcrumb2.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/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +79 -7
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +7 -79
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/cascader/index.mjs +2 -2
- package/es/components/cascader/src/cascader.mjs +843 -103
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader2.mjs +103 -843
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +116 -192
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +192 -116
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/collapse/index.mjs +4 -4
- package/es/components/collapse/src/collapse-item.mjs +118 -17
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +17 -118
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/collapse/src/collapse.mjs +33 -24
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +24 -33
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +53 -391
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +391 -53
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker-panel/index.mjs +2 -2
- package/es/components/color-picker-panel/src/color-picker-panel.mjs +26 -157
- package/es/components/color-picker-panel/src/color-picker-panel.mjs.map +1 -1
- package/es/components/color-picker-panel/src/color-picker-panel2.mjs +157 -26
- package/es/components/color-picker-panel/src/color-picker-panel2.mjs.map +1 -1
- package/es/components/color-picker-panel/src/composables/use-predefine.mjs +1 -1
- package/es/components/dialog/src/dialog-content.mjs +112 -38
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +38 -112
- 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/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +68 -279
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +279 -68
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +557 -50
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +50 -557
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +21 -21
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +82 -344
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +344 -82
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/mention/index.mjs +2 -2
- package/es/components/mention/src/mention.mjs +326 -74
- package/es/components/mention/src/mention.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +74 -326
- package/es/components/mention/src/mention2.mjs.map +1 -1
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +49 -163
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +163 -49
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/content.mjs +88 -145
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +145 -88
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +209 -44
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +44 -209
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/select/src/useSelect.mjs +3 -2
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.mjs +3 -2
- package/es/components/select-v2/src/useSelect.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/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +34 -49
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +49 -34
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/table-v2/src/composables/utils.mjs +4 -7
- package/es/components/table-v2/src/composables/utils.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/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +20 -173
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +173 -20
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-dragger.mjs +69 -10
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +10 -69
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/virtual-list/src/hooks/use-wheel.mjs +1 -1
- package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
- package/es/index.mjs +21 -21
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +483 -58
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +58 -483
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.js +37 -9
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +9 -37
- package/lib/components/breadcrumb/src/breadcrumb2.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/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel-item.js +79 -7
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +7 -79
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/cascader/index.js +2 -2
- package/lib/components/cascader/src/cascader.js +842 -103
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader2.js +103 -842
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +116 -192
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +192 -116
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/collapse/index.js +4 -4
- package/lib/components/collapse/src/collapse-item.js +118 -17
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +17 -118
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/collapse/src/collapse.js +33 -26
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +26 -33
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +53 -390
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +390 -53
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker-panel/index.js +2 -2
- package/lib/components/color-picker-panel/src/color-picker-panel.js +29 -157
- package/lib/components/color-picker-panel/src/color-picker-panel.js.map +1 -1
- package/lib/components/color-picker-panel/src/color-picker-panel2.js +157 -29
- package/lib/components/color-picker-panel/src/color-picker-panel2.js.map +1 -1
- package/lib/components/color-picker-panel/src/composables/use-predefine.js +1 -1
- package/lib/components/dialog/src/dialog-content.js +111 -38
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +38 -111
- 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/image/index.js +2 -2
- package/lib/components/image/src/image.js +68 -278
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +278 -68
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +557 -51
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +51 -557
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +21 -21
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +81 -342
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +342 -81
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/mention/index.js +2 -2
- package/lib/components/mention/src/mention.js +324 -74
- package/lib/components/mention/src/mention.js.map +1 -1
- package/lib/components/mention/src/mention2.js +74 -324
- package/lib/components/mention/src/mention2.js.map +1 -1
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +50 -163
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +163 -50
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/content.js +93 -145
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +145 -93
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +208 -45
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +45 -208
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/select/src/useSelect.js +2 -1
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.js +2 -1
- package/lib/components/select-v2/src/useSelect.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/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +35 -49
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +49 -35
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/table-v2/src/composables/utils.js +4 -7
- package/lib/components/table-v2/src/composables/utils.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/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +22 -173
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +173 -22
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-dragger.js +69 -11
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +11 -69
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/virtual-list/src/hooks/use-wheel.js +1 -1
- package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
- package/lib/index.js +21 -21
- 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,15 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, ref, provide, onMounted, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
|
|
2
|
+
import { breadcrumbKey } from './constants.mjs';
|
|
3
|
+
import { breadcrumbProps } from './breadcrumb2.mjs';
|
|
4
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
6
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
3
7
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
const _hoisted_1 = ["aria-label"];
|
|
9
|
+
const _sfc_main = defineComponent({
|
|
10
|
+
...{
|
|
11
|
+
name: "ElBreadcrumb"
|
|
8
12
|
},
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
__name: "breadcrumb",
|
|
14
|
+
props: breadcrumbProps,
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const { t } = useLocale();
|
|
17
|
+
const props = __props;
|
|
18
|
+
const ns = useNamespace("breadcrumb");
|
|
19
|
+
const breadcrumb = ref();
|
|
20
|
+
provide(breadcrumbKey, props);
|
|
21
|
+
onMounted(() => {
|
|
22
|
+
const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
|
|
23
|
+
if (items.length) {
|
|
24
|
+
items[items.length - 1].setAttribute("aria-current", "page");
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock("div", {
|
|
29
|
+
ref_key: "breadcrumb",
|
|
30
|
+
ref: breadcrumb,
|
|
31
|
+
class: normalizeClass(unref(ns).b()),
|
|
32
|
+
"aria-label": unref(t)("el.breadcrumb.label"),
|
|
33
|
+
role: "navigation"
|
|
34
|
+
}, [
|
|
35
|
+
renderSlot(_ctx.$slots, "default")
|
|
36
|
+
], 10, _hoisted_1);
|
|
37
|
+
};
|
|
11
38
|
}
|
|
12
39
|
});
|
|
40
|
+
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);
|
|
13
41
|
|
|
14
|
-
export {
|
|
42
|
+
export { Breadcrumb as default };
|
|
15
43
|
//# sourceMappingURL=breadcrumb.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.
|
|
1
|
+
{"version":3,"file":"breadcrumb.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n <div\n ref=\"breadcrumb\"\n :class=\"ns.b()\"\n :aria-label=\"t('el.breadcrumb.label')\"\n role=\"navigation\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { onMounted, provide, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbProps } from './breadcrumb'\n\ndefineOptions({\n name: 'ElBreadcrumb',\n})\n\nconst { t } = useLocale()\nconst props = defineProps(breadcrumbProps)\n\nconst ns = useNamespace('breadcrumb')\nconst breadcrumb = ref<HTMLDivElement>()\n\nprovide(breadcrumbKey, props)\n\nonMounted(() => {\n const items = breadcrumb.value!.querySelectorAll(`.${ns.e('item')}`)\n if (items.length) {\n items[items.length - 1].setAttribute('aria-current', 'page')\n }\n})\n</script>\n"],"names":["_createElementBlock","_normalizeClass","_unref","_renderSlot"],"mappings":";;;;;;;;;;;;;;;AAqBM,IAAA,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAER,IAAA,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,GAAoB,EAAA,CAAA;AAEvC,IAAA,OAAA,CAAQ,eAAe,KAAK,CAAA,CAAA;AAE5B,IAAA,SAAA,CAAU,MAAM;AACR,MAAA,MAAA,KAAA,GAAQ,WAAW,KAAO,CAAA,gBAAA,CAAiB,IAAI,EAAG,CAAA,CAAA,CAAE,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA;AACnE,MAAA,IAAI,MAAM,MAAQ,EAAA;AAChB,QAAA,KAAA,CAAM,KAAM,CAAA,MAAA,GAAS,CAAG,CAAA,CAAA,YAAA,CAAa,gBAAgB,MAAM,CAAA,CAAA;AAAA,OAC7D;AAAA,KACD,CAAA,CAAA;;wBAjCC,EAAAA,kBAAA,CAOM,KAAA,EAAA;AAAA,QANA,OAAA,EAAA,YAAA;AAAA,QAAJ,GAAI,EAAA,UAAA;AAAA,QACH,OAAKC,cAAE,CAAAC,KAAA,CAAA,EAAA,CAAA,CAAG,GAAC,CAAA;AAAA,QACX,YAAY,EAAAA,KAAA,CAAC,CAAA,CAAA,CAAA,qBAAA,CAAA;AAAA,QACd,IAAK,EAAA,YAAA;AAAA,OAAA,EAAA;AAAA,QAELC,UAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,OAAA,EAAA,IAAA,UAAA,CAAA,CAAA;AAAA;;;;;;;"}
|
|
@@ -1,43 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { breadcrumbProps } from './breadcrumb.mjs';
|
|
4
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
6
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
2
|
+
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
7
3
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
const breadcrumbProps = buildProps({
|
|
5
|
+
separator: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "/"
|
|
12
8
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
setup(__props) {
|
|
16
|
-
const { t } = useLocale();
|
|
17
|
-
const props = __props;
|
|
18
|
-
const ns = useNamespace("breadcrumb");
|
|
19
|
-
const breadcrumb = ref();
|
|
20
|
-
provide(breadcrumbKey, props);
|
|
21
|
-
onMounted(() => {
|
|
22
|
-
const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
|
|
23
|
-
if (items.length) {
|
|
24
|
-
items[items.length - 1].setAttribute("aria-current", "page");
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createElementBlock("div", {
|
|
29
|
-
ref_key: "breadcrumb",
|
|
30
|
-
ref: breadcrumb,
|
|
31
|
-
class: normalizeClass(unref(ns).b()),
|
|
32
|
-
"aria-label": unref(t)("el.breadcrumb.label"),
|
|
33
|
-
role: "navigation"
|
|
34
|
-
}, [
|
|
35
|
-
renderSlot(_ctx.$slots, "default")
|
|
36
|
-
], 10, _hoisted_1);
|
|
37
|
-
};
|
|
9
|
+
separatorIcon: {
|
|
10
|
+
type: iconPropType
|
|
38
11
|
}
|
|
39
12
|
});
|
|
40
|
-
var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);
|
|
41
13
|
|
|
42
|
-
export {
|
|
14
|
+
export { breadcrumbProps };
|
|
43
15
|
//# sourceMappingURL=breadcrumb2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.
|
|
1
|
+
{"version":3,"file":"breadcrumb2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const breadcrumbProps = buildProps({\n /**\n * @description separator character\n */\n separator: {\n type: String,\n default: '/',\n },\n /**\n * @description icon component of icon separator\n */\n separatorIcon: {\n type: iconPropType,\n },\n} as const)\nexport type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>\nexport type BreadcrumbPropsPublic = ExtractPublicPropTypes<\n typeof breadcrumbProps\n>\n"],"names":[],"mappings":";;;AAIO,MAAM,kBAAkB,UAAW,CAAA;AAAA,EAIxC,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,GAAA;AAAA,GACX;AAAA,EAIA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,YAAA;AAAA,GACR;AACF,CAAU;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Calendar from './src/
|
|
2
|
-
export { calendarEmits, calendarProps } from './src/
|
|
1
|
+
import Calendar from './src/calendar.mjs';
|
|
2
|
+
export { calendarEmits, calendarProps } from './src/calendar2.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElCalendar = withInstall(Calendar);
|
|
@@ -1,29 +1,202 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, toDisplayString, createVNode, withCtx, createTextVNode, createCommentVNode, createSlots, normalizeProps, guardReactiveProps, Fragment, renderList, createBlock, mergeProps } from 'vue';
|
|
2
|
+
import { ElButtonGroup, ElButton } from '../../button/index.mjs';
|
|
3
|
+
import DateTable from './date-table2.mjs';
|
|
4
|
+
import { useCalendar } from './use-calendar.mjs';
|
|
5
|
+
import { calendarProps, calendarEmits } from './calendar2.mjs';
|
|
6
|
+
import SelectController from './select-controller2.mjs';
|
|
7
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
9
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
4
10
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
const COMPONENT_NAME = "ElCalendar";
|
|
12
|
+
const _sfc_main = defineComponent({
|
|
13
|
+
...{
|
|
14
|
+
name: COMPONENT_NAME
|
|
9
15
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
__name: "calendar",
|
|
17
|
+
props: calendarProps,
|
|
18
|
+
emits: calendarEmits,
|
|
19
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
20
|
+
const ns = useNamespace("calendar");
|
|
21
|
+
const props = __props;
|
|
22
|
+
const emit = __emit;
|
|
23
|
+
const {
|
|
24
|
+
calculateValidatedDateRange,
|
|
25
|
+
date,
|
|
26
|
+
pickDay,
|
|
27
|
+
realSelectedDay,
|
|
28
|
+
selectDate,
|
|
29
|
+
validatedRange,
|
|
30
|
+
handleDateChange
|
|
31
|
+
} = useCalendar(props, emit, COMPONENT_NAME);
|
|
32
|
+
const { t } = useLocale();
|
|
33
|
+
const i18nDate = computed(() => {
|
|
34
|
+
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
35
|
+
return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
|
|
36
|
+
});
|
|
37
|
+
__expose({
|
|
38
|
+
selectedDay: realSelectedDay,
|
|
39
|
+
pickDay,
|
|
40
|
+
selectDate,
|
|
41
|
+
calculateValidatedDateRange
|
|
42
|
+
});
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
class: normalizeClass(unref(ns).b())
|
|
48
|
+
},
|
|
49
|
+
[
|
|
50
|
+
createElementVNode(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
class: normalizeClass(unref(ns).e("header"))
|
|
54
|
+
},
|
|
55
|
+
[
|
|
56
|
+
renderSlot(_ctx.$slots, "header", { date: i18nDate.value }, () => [
|
|
57
|
+
createElementVNode(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
class: normalizeClass(unref(ns).e("title"))
|
|
61
|
+
},
|
|
62
|
+
toDisplayString(i18nDate.value),
|
|
63
|
+
3
|
|
64
|
+
),
|
|
65
|
+
unref(validatedRange).length === 0 && _ctx.controllerType === "button" ? (openBlock(), createElementBlock(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
key: 0,
|
|
69
|
+
class: normalizeClass(unref(ns).e("button-group"))
|
|
70
|
+
},
|
|
71
|
+
[
|
|
72
|
+
createVNode(unref(ElButtonGroup), null, {
|
|
73
|
+
default: withCtx(() => [
|
|
74
|
+
createVNode(unref(ElButton), {
|
|
75
|
+
size: "small",
|
|
76
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(selectDate)("prev-month"))
|
|
77
|
+
}, {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createTextVNode(
|
|
80
|
+
toDisplayString(unref(t)("el.datepicker.prevMonth")),
|
|
81
|
+
1
|
|
82
|
+
)
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}),
|
|
86
|
+
createVNode(unref(ElButton), {
|
|
87
|
+
size: "small",
|
|
88
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(selectDate)("today"))
|
|
89
|
+
}, {
|
|
90
|
+
default: withCtx(() => [
|
|
91
|
+
createTextVNode(
|
|
92
|
+
toDisplayString(unref(t)("el.datepicker.today")),
|
|
93
|
+
1
|
|
94
|
+
)
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}),
|
|
98
|
+
createVNode(unref(ElButton), {
|
|
99
|
+
size: "small",
|
|
100
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(selectDate)("next-month"))
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx(() => [
|
|
103
|
+
createTextVNode(
|
|
104
|
+
toDisplayString(unref(t)("el.datepicker.nextMonth")),
|
|
105
|
+
1
|
|
106
|
+
)
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
})
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
})
|
|
113
|
+
],
|
|
114
|
+
2
|
|
115
|
+
)) : unref(validatedRange).length === 0 && _ctx.controllerType === "select" ? (openBlock(), createElementBlock(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
key: 1,
|
|
119
|
+
class: normalizeClass(unref(ns).e("select-controller"))
|
|
120
|
+
},
|
|
121
|
+
[
|
|
122
|
+
createVNode(SelectController, {
|
|
123
|
+
date: unref(date),
|
|
124
|
+
formatter: _ctx.formatter,
|
|
125
|
+
onDateChange: unref(handleDateChange)
|
|
126
|
+
}, null, 8, ["date", "formatter", "onDateChange"])
|
|
127
|
+
],
|
|
128
|
+
2
|
|
129
|
+
)) : createCommentVNode("v-if", true)
|
|
130
|
+
])
|
|
131
|
+
],
|
|
132
|
+
2
|
|
133
|
+
),
|
|
134
|
+
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock(
|
|
135
|
+
"div",
|
|
136
|
+
{
|
|
137
|
+
key: 0,
|
|
138
|
+
class: normalizeClass(unref(ns).e("body"))
|
|
139
|
+
},
|
|
140
|
+
[
|
|
141
|
+
createVNode(DateTable, {
|
|
142
|
+
date: unref(date),
|
|
143
|
+
"selected-day": unref(realSelectedDay),
|
|
144
|
+
onPick: unref(pickDay)
|
|
145
|
+
}, createSlots({
|
|
146
|
+
_: 2
|
|
147
|
+
}, [
|
|
148
|
+
_ctx.$slots["date-cell"] ? {
|
|
149
|
+
name: "date-cell",
|
|
150
|
+
fn: withCtx((data) => [
|
|
151
|
+
renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
|
|
152
|
+
]),
|
|
153
|
+
key: "0"
|
|
154
|
+
} : void 0
|
|
155
|
+
]), 1032, ["date", "selected-day", "onPick"])
|
|
156
|
+
],
|
|
157
|
+
2
|
|
158
|
+
)) : (openBlock(), createElementBlock(
|
|
159
|
+
"div",
|
|
160
|
+
{
|
|
161
|
+
key: 1,
|
|
162
|
+
class: normalizeClass(unref(ns).e("body"))
|
|
163
|
+
},
|
|
164
|
+
[
|
|
165
|
+
(openBlock(true), createElementBlock(
|
|
166
|
+
Fragment,
|
|
167
|
+
null,
|
|
168
|
+
renderList(unref(validatedRange), (range_, index) => {
|
|
169
|
+
return openBlock(), createBlock(DateTable, {
|
|
170
|
+
key: index,
|
|
171
|
+
date: range_[0],
|
|
172
|
+
"selected-day": unref(realSelectedDay),
|
|
173
|
+
range: range_,
|
|
174
|
+
"hide-header": index !== 0,
|
|
175
|
+
onPick: unref(pickDay)
|
|
176
|
+
}, createSlots({
|
|
177
|
+
_: 2
|
|
178
|
+
}, [
|
|
179
|
+
_ctx.$slots["date-cell"] ? {
|
|
180
|
+
name: "date-cell",
|
|
181
|
+
fn: withCtx((data) => [
|
|
182
|
+
renderSlot(_ctx.$slots, "date-cell", mergeProps({ ref_for: true }, data))
|
|
183
|
+
]),
|
|
184
|
+
key: "0"
|
|
185
|
+
} : void 0
|
|
186
|
+
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
187
|
+
}),
|
|
188
|
+
128
|
|
189
|
+
))
|
|
190
|
+
],
|
|
191
|
+
2
|
|
192
|
+
))
|
|
193
|
+
],
|
|
194
|
+
2
|
|
195
|
+
);
|
|
196
|
+
};
|
|
21
197
|
}
|
|
22
198
|
});
|
|
23
|
-
|
|
24
|
-
[UPDATE_MODEL_EVENT]: (value) => isDate(value),
|
|
25
|
-
[INPUT_EVENT]: (value) => isDate(value)
|
|
26
|
-
};
|
|
199
|
+
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);
|
|
27
200
|
|
|
28
|
-
export {
|
|
201
|
+
export { Calendar as default };
|
|
29
202
|
//# sourceMappingURL=calendar.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.mjs","sources":["../../../../../../packages/components/calendar/src/calendar.
|
|
1
|
+
{"version":3,"file":"calendar.mjs","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\n v-if=\"validatedRange.length === 0 && controllerType === 'button'\"\n :class=\"ns.e('button-group')\"\n >\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 <div\n v-else-if=\"validatedRange.length === 0 && controllerType === 'select'\"\n :class=\"ns.e('select-controller')\"\n >\n <select-controller\n :date=\"date\"\n :formatter=\"formatter\"\n @date-change=\"handleDateChange\"\n />\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'\nimport SelectController from './select-controller.vue'\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 handleDateChange,\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":["_openBlock","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_renderSlot","controllerType","_createVNode","_withCtx","_createTextVNode","formatter","_createSlots","$slots","_Fragment","_renderList","_createBlock","_mergeProps"],"mappings":";;;;;;;;;;AAqEA,MAAM,cAAiB,GAAA,YAAA,CAAA;;;;;;;;;AAFjB,IAAA,MAAA,EAAA,GAAK,aAAa,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,MACA,gBAAA;AAAA,KACE,GAAA,WAAA,CAAY,KAAO,EAAA,IAAA,EAAM,cAAc,CAAA,CAAA;AAErC,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|
|
3
|
-
import
|
|
4
|
-
import { useCalendar } from './use-calendar.mjs';
|
|
5
|
-
import { calendarProps, calendarEmits } from './calendar.mjs';
|
|
6
|
-
import SelectController from './select-controller2.mjs';
|
|
7
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
8
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
9
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
2
|
+
import { UPDATE_MODEL_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
|
|
3
|
+
import { isDate, isArray } from '@vue/shared';
|
|
10
4
|
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
const isValidRange = (range) => isArray(range) && range.length === 2 && range.every((item) => isDate(item));
|
|
6
|
+
const calendarProps = buildProps({
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: Date
|
|
15
9
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
realSelectedDay,
|
|
28
|
-
selectDate,
|
|
29
|
-
validatedRange,
|
|
30
|
-
handleDateChange
|
|
31
|
-
} = useCalendar(props, emit, COMPONENT_NAME);
|
|
32
|
-
const { t } = useLocale();
|
|
33
|
-
const i18nDate = computed(() => {
|
|
34
|
-
const pickedMonth = `el.datepicker.month${date.value.format("M")}`;
|
|
35
|
-
return `${date.value.year()} ${t("el.datepicker.year")} ${t(pickedMonth)}`;
|
|
36
|
-
});
|
|
37
|
-
__expose({
|
|
38
|
-
selectedDay: realSelectedDay,
|
|
39
|
-
pickDay,
|
|
40
|
-
selectDate,
|
|
41
|
-
calculateValidatedDateRange
|
|
42
|
-
});
|
|
43
|
-
return (_ctx, _cache) => {
|
|
44
|
-
return openBlock(), createElementBlock(
|
|
45
|
-
"div",
|
|
46
|
-
{
|
|
47
|
-
class: normalizeClass(unref(ns).b())
|
|
48
|
-
},
|
|
49
|
-
[
|
|
50
|
-
createElementVNode(
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
class: normalizeClass(unref(ns).e("header"))
|
|
54
|
-
},
|
|
55
|
-
[
|
|
56
|
-
renderSlot(_ctx.$slots, "header", { date: i18nDate.value }, () => [
|
|
57
|
-
createElementVNode(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
class: normalizeClass(unref(ns).e("title"))
|
|
61
|
-
},
|
|
62
|
-
toDisplayString(i18nDate.value),
|
|
63
|
-
3
|
|
64
|
-
),
|
|
65
|
-
unref(validatedRange).length === 0 && _ctx.controllerType === "button" ? (openBlock(), createElementBlock(
|
|
66
|
-
"div",
|
|
67
|
-
{
|
|
68
|
-
key: 0,
|
|
69
|
-
class: normalizeClass(unref(ns).e("button-group"))
|
|
70
|
-
},
|
|
71
|
-
[
|
|
72
|
-
createVNode(unref(ElButtonGroup), null, {
|
|
73
|
-
default: withCtx(() => [
|
|
74
|
-
createVNode(unref(ElButton), {
|
|
75
|
-
size: "small",
|
|
76
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(selectDate)("prev-month"))
|
|
77
|
-
}, {
|
|
78
|
-
default: withCtx(() => [
|
|
79
|
-
createTextVNode(
|
|
80
|
-
toDisplayString(unref(t)("el.datepicker.prevMonth")),
|
|
81
|
-
1
|
|
82
|
-
)
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}),
|
|
86
|
-
createVNode(unref(ElButton), {
|
|
87
|
-
size: "small",
|
|
88
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(selectDate)("today"))
|
|
89
|
-
}, {
|
|
90
|
-
default: withCtx(() => [
|
|
91
|
-
createTextVNode(
|
|
92
|
-
toDisplayString(unref(t)("el.datepicker.today")),
|
|
93
|
-
1
|
|
94
|
-
)
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}),
|
|
98
|
-
createVNode(unref(ElButton), {
|
|
99
|
-
size: "small",
|
|
100
|
-
onClick: _cache[2] || (_cache[2] = ($event) => unref(selectDate)("next-month"))
|
|
101
|
-
}, {
|
|
102
|
-
default: withCtx(() => [
|
|
103
|
-
createTextVNode(
|
|
104
|
-
toDisplayString(unref(t)("el.datepicker.nextMonth")),
|
|
105
|
-
1
|
|
106
|
-
)
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
})
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
})
|
|
113
|
-
],
|
|
114
|
-
2
|
|
115
|
-
)) : unref(validatedRange).length === 0 && _ctx.controllerType === "select" ? (openBlock(), createElementBlock(
|
|
116
|
-
"div",
|
|
117
|
-
{
|
|
118
|
-
key: 1,
|
|
119
|
-
class: normalizeClass(unref(ns).e("select-controller"))
|
|
120
|
-
},
|
|
121
|
-
[
|
|
122
|
-
createVNode(SelectController, {
|
|
123
|
-
date: unref(date),
|
|
124
|
-
formatter: _ctx.formatter,
|
|
125
|
-
onDateChange: unref(handleDateChange)
|
|
126
|
-
}, null, 8, ["date", "formatter", "onDateChange"])
|
|
127
|
-
],
|
|
128
|
-
2
|
|
129
|
-
)) : createCommentVNode("v-if", true)
|
|
130
|
-
])
|
|
131
|
-
],
|
|
132
|
-
2
|
|
133
|
-
),
|
|
134
|
-
unref(validatedRange).length === 0 ? (openBlock(), createElementBlock(
|
|
135
|
-
"div",
|
|
136
|
-
{
|
|
137
|
-
key: 0,
|
|
138
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
139
|
-
},
|
|
140
|
-
[
|
|
141
|
-
createVNode(DateTable, {
|
|
142
|
-
date: unref(date),
|
|
143
|
-
"selected-day": unref(realSelectedDay),
|
|
144
|
-
onPick: unref(pickDay)
|
|
145
|
-
}, createSlots({
|
|
146
|
-
_: 2
|
|
147
|
-
}, [
|
|
148
|
-
_ctx.$slots["date-cell"] ? {
|
|
149
|
-
name: "date-cell",
|
|
150
|
-
fn: withCtx((data) => [
|
|
151
|
-
renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
|
|
152
|
-
]),
|
|
153
|
-
key: "0"
|
|
154
|
-
} : void 0
|
|
155
|
-
]), 1032, ["date", "selected-day", "onPick"])
|
|
156
|
-
],
|
|
157
|
-
2
|
|
158
|
-
)) : (openBlock(), createElementBlock(
|
|
159
|
-
"div",
|
|
160
|
-
{
|
|
161
|
-
key: 1,
|
|
162
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
163
|
-
},
|
|
164
|
-
[
|
|
165
|
-
(openBlock(true), createElementBlock(
|
|
166
|
-
Fragment,
|
|
167
|
-
null,
|
|
168
|
-
renderList(unref(validatedRange), (range_, index) => {
|
|
169
|
-
return openBlock(), createBlock(DateTable, {
|
|
170
|
-
key: index,
|
|
171
|
-
date: range_[0],
|
|
172
|
-
"selected-day": unref(realSelectedDay),
|
|
173
|
-
range: range_,
|
|
174
|
-
"hide-header": index !== 0,
|
|
175
|
-
onPick: unref(pickDay)
|
|
176
|
-
}, createSlots({
|
|
177
|
-
_: 2
|
|
178
|
-
}, [
|
|
179
|
-
_ctx.$slots["date-cell"] ? {
|
|
180
|
-
name: "date-cell",
|
|
181
|
-
fn: withCtx((data) => [
|
|
182
|
-
renderSlot(_ctx.$slots, "date-cell", mergeProps({ ref_for: true }, data))
|
|
183
|
-
]),
|
|
184
|
-
key: "0"
|
|
185
|
-
} : void 0
|
|
186
|
-
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
187
|
-
}),
|
|
188
|
-
128
|
|
189
|
-
))
|
|
190
|
-
],
|
|
191
|
-
2
|
|
192
|
-
))
|
|
193
|
-
],
|
|
194
|
-
2
|
|
195
|
-
);
|
|
196
|
-
};
|
|
10
|
+
range: {
|
|
11
|
+
type: definePropType(Array),
|
|
12
|
+
validator: isValidRange
|
|
13
|
+
},
|
|
14
|
+
controllerType: {
|
|
15
|
+
type: String,
|
|
16
|
+
values: ["button", "select"],
|
|
17
|
+
default: "button"
|
|
18
|
+
},
|
|
19
|
+
formatter: {
|
|
20
|
+
type: definePropType(Function)
|
|
197
21
|
}
|
|
198
22
|
});
|
|
199
|
-
|
|
23
|
+
const calendarEmits = {
|
|
24
|
+
[UPDATE_MODEL_EVENT]: (value) => isDate(value),
|
|
25
|
+
[INPUT_EVENT]: (value) => isDate(value)
|
|
26
|
+
};
|
|
200
27
|
|
|
201
|
-
export {
|
|
28
|
+
export { calendarEmits, calendarProps };
|
|
202
29
|
//# sourceMappingURL=calendar2.mjs.map
|