@element-plus/nightly 0.0.20251121 → 0.0.20251122
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 +14 -6
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +14 -6
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +24 -129
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +129 -24
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +96 -40
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +40 -96
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +65 -88
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +88 -65
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +7 -69
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +69 -7
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +1 -1
- package/es/components/color-picker-panel/index.mjs +2 -2
- package/es/components/color-picker-panel/src/color-picker-panel.mjs +27 -132
- 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 +132 -27
- 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/index.mjs +12 -12
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +83 -283
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +283 -83
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +101 -15
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +15 -101
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +210 -16
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +16 -210
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +66 -112
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +112 -66
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.mjs +10 -64
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +64 -10
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +42 -170
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +170 -42
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/select/src/useOption.mjs +1 -1
- package/es/components/select/src/useOption.mjs.map +1 -1
- package/es/components/select/src/useSelect.mjs +1 -1
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.mjs +10 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/slider/src/button.mjs +91 -19
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +19 -91
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +21 -67
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +67 -21
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.mjs +167 -30
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +30 -167
- package/es/components/tooltip/src/tooltip2.mjs.map +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 +61 -8
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +8 -61
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/index.mjs +12 -12
- 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 +25 -129
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +129 -25
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +95 -41
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +41 -95
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +68 -88
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +88 -68
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel-item.js +7 -69
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +69 -7
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +1 -1
- package/lib/components/color-picker-panel/index.js +2 -2
- package/lib/components/color-picker-panel/src/color-picker-panel.js +30 -132
- 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 +132 -30
- 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/index.js +12 -12
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +82 -281
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +281 -82
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +101 -16
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +16 -101
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +210 -16
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +16 -210
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +67 -112
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +112 -67
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/scrollbar/src/bar.js +10 -64
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +64 -10
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +44 -170
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +170 -44
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/select/src/useOption.js +1 -1
- package/lib/components/select/src/useOption.js.map +1 -1
- package/lib/components/select/src/useSelect.js +1 -1
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.js +10 -2
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/slider/src/button.js +91 -20
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +20 -91
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +21 -67
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +67 -21
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/tooltip.js +167 -34
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +34 -167
- package/lib/components/tooltip/src/tooltip2.js.map +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 +61 -9
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +9 -61
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/index.js +12 -12
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -2,77 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var carouselItem = require('./carousel-item2.js');
|
|
7
|
-
var useCarouselItem = require('./use-carousel-item.js');
|
|
8
|
-
var constants = require('./constants.js');
|
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
11
6
|
|
|
12
|
-
const
|
|
13
|
-
name:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
props: carouselItem.carouselItemProps,
|
|
18
|
-
setup(__props) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const ns = index.useNamespace("carousel");
|
|
21
|
-
const {
|
|
22
|
-
carouselItemRef,
|
|
23
|
-
active,
|
|
24
|
-
animating,
|
|
25
|
-
hover,
|
|
26
|
-
inStage,
|
|
27
|
-
isVertical,
|
|
28
|
-
translate,
|
|
29
|
-
isCardType,
|
|
30
|
-
scale,
|
|
31
|
-
ready,
|
|
32
|
-
handleItemClick
|
|
33
|
-
} = useCarouselItem.useCarouselItem(props);
|
|
34
|
-
const itemKls = vue.computed(() => [
|
|
35
|
-
ns.e("item"),
|
|
36
|
-
ns.is("active", active.value),
|
|
37
|
-
ns.is("in-stage", inStage.value),
|
|
38
|
-
ns.is("hover", hover.value),
|
|
39
|
-
ns.is("animating", animating.value),
|
|
40
|
-
{
|
|
41
|
-
[ns.em("item", "card")]: isCardType.value,
|
|
42
|
-
[ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
|
|
43
|
-
}
|
|
44
|
-
]);
|
|
45
|
-
const itemStyle = vue.computed(() => {
|
|
46
|
-
const translateType = `translate${vue.unref(isVertical) ? "Y" : "X"}`;
|
|
47
|
-
const _translate = `${translateType}(${vue.unref(translate)}px)`;
|
|
48
|
-
const _scale = `scale(${vue.unref(scale)})`;
|
|
49
|
-
const transform = [_translate, _scale].join(" ");
|
|
50
|
-
return {
|
|
51
|
-
transform
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return (_ctx, _cache) => {
|
|
55
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
56
|
-
ref_key: "carouselItemRef",
|
|
57
|
-
ref: carouselItemRef,
|
|
58
|
-
class: vue.normalizeClass(vue.unref(itemKls)),
|
|
59
|
-
style: vue.normalizeStyle(vue.unref(itemStyle)),
|
|
60
|
-
onClick: vue.unref(handleItemClick)
|
|
61
|
-
}, [
|
|
62
|
-
vue.unref(isCardType) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
63
|
-
key: 0,
|
|
64
|
-
class: vue.normalizeClass(vue.unref(ns).e("mask"))
|
|
65
|
-
}, null, 2)), [
|
|
66
|
-
[vue.vShow, !vue.unref(active)]
|
|
67
|
-
]) : vue.createCommentVNode("v-if", true),
|
|
68
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
69
|
-
], 14, ["onClick"])), [
|
|
70
|
-
[vue.vShow, vue.unref(ready)]
|
|
71
|
-
]);
|
|
72
|
-
};
|
|
7
|
+
const carouselItemProps = runtime.buildProps({
|
|
8
|
+
name: { type: String, default: "" },
|
|
9
|
+
label: {
|
|
10
|
+
type: [String, Number],
|
|
11
|
+
default: ""
|
|
73
12
|
}
|
|
74
13
|
});
|
|
75
|
-
var CarouselItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "carousel-item.vue"]]);
|
|
76
14
|
|
|
77
|
-
exports
|
|
15
|
+
exports.carouselItemProps = carouselItemProps;
|
|
78
16
|
//# sourceMappingURL=carousel-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-item.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.
|
|
1
|
+
{"version":3,"file":"carousel-item.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\n\nexport const carouselItemProps = buildProps({\n /**\n * @description name of the item, can be used in `setActiveItem`\n */\n name: { type: String, default: '' },\n /**\n * @description text content for the corresponding indicator\n */\n label: {\n type: [String, Number],\n default: '',\n },\n} as const)\n\nexport type CarouselItemProps = ExtractPropTypes<typeof carouselItemProps>\nexport type CarouselItemPropsPublic = __ExtractPublicPropTypes<\n typeof carouselItemProps\n>\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
|
|
@@ -2,15 +2,77 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var carouselItem = require('./carousel-item.js');
|
|
7
|
+
var useCarouselItem = require('./use-carousel-item.js');
|
|
8
|
+
var constants = require('./constants.js');
|
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
6
11
|
|
|
7
|
-
const
|
|
8
|
-
name:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
const __default__ = vue.defineComponent({
|
|
13
|
+
name: constants.CAROUSEL_ITEM_NAME
|
|
14
|
+
});
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
16
|
+
...__default__,
|
|
17
|
+
props: carouselItem.carouselItemProps,
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const ns = index.useNamespace("carousel");
|
|
21
|
+
const {
|
|
22
|
+
carouselItemRef,
|
|
23
|
+
active,
|
|
24
|
+
animating,
|
|
25
|
+
hover,
|
|
26
|
+
inStage,
|
|
27
|
+
isVertical,
|
|
28
|
+
translate,
|
|
29
|
+
isCardType,
|
|
30
|
+
scale,
|
|
31
|
+
ready,
|
|
32
|
+
handleItemClick
|
|
33
|
+
} = useCarouselItem.useCarouselItem(props);
|
|
34
|
+
const itemKls = vue.computed(() => [
|
|
35
|
+
ns.e("item"),
|
|
36
|
+
ns.is("active", active.value),
|
|
37
|
+
ns.is("in-stage", inStage.value),
|
|
38
|
+
ns.is("hover", hover.value),
|
|
39
|
+
ns.is("animating", animating.value),
|
|
40
|
+
{
|
|
41
|
+
[ns.em("item", "card")]: isCardType.value,
|
|
42
|
+
[ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
|
|
43
|
+
}
|
|
44
|
+
]);
|
|
45
|
+
const itemStyle = vue.computed(() => {
|
|
46
|
+
const translateType = `translate${vue.unref(isVertical) ? "Y" : "X"}`;
|
|
47
|
+
const _translate = `${translateType}(${vue.unref(translate)}px)`;
|
|
48
|
+
const _scale = `scale(${vue.unref(scale)})`;
|
|
49
|
+
const transform = [_translate, _scale].join(" ");
|
|
50
|
+
return {
|
|
51
|
+
transform
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
56
|
+
ref_key: "carouselItemRef",
|
|
57
|
+
ref: carouselItemRef,
|
|
58
|
+
class: vue.normalizeClass(vue.unref(itemKls)),
|
|
59
|
+
style: vue.normalizeStyle(vue.unref(itemStyle)),
|
|
60
|
+
onClick: vue.unref(handleItemClick)
|
|
61
|
+
}, [
|
|
62
|
+
vue.unref(isCardType) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
63
|
+
key: 0,
|
|
64
|
+
class: vue.normalizeClass(vue.unref(ns).e("mask"))
|
|
65
|
+
}, null, 2)), [
|
|
66
|
+
[vue.vShow, !vue.unref(active)]
|
|
67
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
68
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
69
|
+
], 14, ["onClick"])), [
|
|
70
|
+
[vue.vShow, vue.unref(ready)]
|
|
71
|
+
]);
|
|
72
|
+
};
|
|
12
73
|
}
|
|
13
74
|
});
|
|
75
|
+
var CarouselItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "carousel-item.vue"]]);
|
|
14
76
|
|
|
15
|
-
exports
|
|
77
|
+
exports["default"] = CarouselItem;
|
|
16
78
|
//# sourceMappingURL=carousel-item2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-item2.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.
|
|
1
|
+
{"version":3,"file":"carousel-item2.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"ready\"\n ref=\"carouselItemRef\"\n :class=\"itemKls\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div v-if=\"isCardType\" v-show=\"!active\" :class=\"ns.e('mask')\" />\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { carouselItemProps } from './carousel-item'\nimport { useCarouselItem } from './use-carousel-item'\nimport { CAROUSEL_ITEM_NAME } from './constants'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: CAROUSEL_ITEM_NAME,\n})\n\nconst props = defineProps(carouselItemProps)\nconst ns = useNamespace('carousel')\n\n// inject\nconst {\n carouselItemRef,\n active,\n animating,\n hover,\n inStage,\n isVertical,\n translate,\n isCardType,\n scale,\n ready,\n handleItemClick,\n} = useCarouselItem(props)\n\nconst itemKls = computed(() => [\n ns.e('item'),\n ns.is('active', active.value),\n ns.is('in-stage', inStage.value),\n ns.is('hover', hover.value),\n ns.is('animating', animating.value),\n {\n [ns.em('item', 'card')]: isCardType.value,\n [ns.em('item', 'card-vertical')]: isCardType.value && isVertical.value,\n },\n])\n\nconst itemStyle = computed<CSSProperties>(() => {\n const translateType = `translate${unref(isVertical) ? 'Y' : 'X'}`\n const _translate = `${translateType}(${unref(translate)}px)`\n const _scale = `scale(${unref(scale)})`\n const transform = [_translate, _scale].join(' ')\n\n return {\n transform,\n }\n})\n</script>\n"],"names":["CAROUSEL_ITEM_NAME","useNamespace","useCarouselItem","computed","unref"],"mappings":";;;;;;;;;;;uCAsBc,CAAA;AAAA,EACZ,IAAM,EAAAA,4BAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKC,mBAAa,UAAU,CAAA,CAAA;AAGlC,IAAM,MAAA;AAAA,MACJ,eAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,KAAA;AAAA,MACA,OAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,KAAA;AAAA,MACA,KAAA;AAAA,MACA,eAAA;AAAA,KACF,GAAIC,gCAAgB,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA,OAAA,GAAUC,aAAS,MAAM;AAAA,MAC7B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAG,CAAA,EAAA,CAAG,QAAU,EAAA,MAAA,CAAO,KAAK,CAAA;AAAA,MAC5B,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,MAC/B,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAC1B,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,MAClC;AAAA,QACE,CAAC,EAAG,CAAA,EAAA,CAAG,QAAQ,MAAM,CAAC,GAAG,UAAW,CAAA,KAAA;AAAA,QACpC,CAAC,GAAG,EAAG,CAAA,MAAA,EAAQ,eAAe,CAAC,GAAG,UAAW,CAAA,KAAA,IAAS,UAAW,CAAA,KAAA;AAAA,OACnE;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAYA,aAAwB,MAAM;AAC9C,MAAA,MAAM,gBAAgB,CAAY,SAAA,EAAAC,SAAA,CAAM,UAAU,CAAA,GAAI,MAAM,GAAG,CAAA,CAAA,CAAA;AAC/D,MAAA,MAAM,aAAa,CAAG,EAAA,aAAa,CAAI,CAAA,EAAAA,SAAA,CAAM,SAAS,CAAC,CAAA,GAAA,CAAA,CAAA;AACvD,MAAA,MAAM,MAAS,GAAA,CAAA,MAAA,EAASA,SAAM,CAAA,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA;AACpC,MAAA,MAAM,YAAY,CAAC,UAAA,EAAY,MAAM,CAAA,CAAE,KAAK,GAAG,CAAA,CAAA;AAE/C,MAAO,OAAA;AAAA,QACL,SAAA;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,7 +14,7 @@ var index$5 = require('../../color-picker-panel/index.js');
|
|
|
14
14
|
var color = require('../../color-picker-panel/src/utils/color.js');
|
|
15
15
|
var useCommonColor = require('../../color-picker-panel/src/composables/use-common-color.js');
|
|
16
16
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
17
|
-
var colorPickerPanel = require('../../color-picker-panel/src/color-picker-
|
|
17
|
+
var colorPickerPanel = require('../../color-picker-panel/src/color-picker-panel.js');
|
|
18
18
|
var index$7 = require('../../../directives/click-outside/index.js');
|
|
19
19
|
var index = require('../../../hooks/use-locale/index.js');
|
|
20
20
|
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var colorPickerPanel$1 = require('./src/color-picker-
|
|
6
|
-
var colorPickerPanel = require('./src/color-picker-
|
|
5
|
+
var colorPickerPanel$1 = require('./src/color-picker-panel2.js');
|
|
6
|
+
var colorPickerPanel = require('./src/color-picker-panel.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElColorPickerPanel = install.withInstall(colorPickerPanel$1["default"]);
|
|
@@ -2,141 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var alphaSlider = require('./components/alpha-slider.js');
|
|
8
|
-
var hueSlider = require('./components/hue-slider.js');
|
|
9
|
-
var predefine = require('./components/predefine.js');
|
|
10
|
-
var svPanel = require('./components/sv-panel.js');
|
|
11
|
-
var colorPickerPanel = require('./color-picker-panel2.js');
|
|
12
|
-
var useCommonColor = require('./composables/use-common-color.js');
|
|
13
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
15
|
-
var useFormItem = require('../../form/src/hooks/use-form-item.js');
|
|
16
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
5
|
+
var lodashUnified = require('lodash-unified');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
17
7
|
var event = require('../../../constants/event.js');
|
|
18
|
-
var
|
|
8
|
+
var shared = require('@vue/shared');
|
|
19
9
|
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
function handleConfirm() {
|
|
39
|
-
color.fromString(customInput.value);
|
|
40
|
-
if (color.value !== customInput.value) {
|
|
41
|
-
customInput.value = color.value;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function handleFocusout() {
|
|
45
|
-
var _a;
|
|
46
|
-
if (props.validateEvent) {
|
|
47
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => error.debugWarn(err));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function update() {
|
|
51
|
-
var _a, _b, _c;
|
|
52
|
-
(_a = hueRef.value) == null ? void 0 : _a.update();
|
|
53
|
-
(_b = svRef.value) == null ? void 0 : _b.update();
|
|
54
|
-
(_c = alphaRef.value) == null ? void 0 : _c.update();
|
|
55
|
-
}
|
|
56
|
-
vue.onMounted(() => {
|
|
57
|
-
if (props.modelValue) {
|
|
58
|
-
customInput.value = color.value;
|
|
59
|
-
}
|
|
60
|
-
vue.nextTick(update);
|
|
61
|
-
});
|
|
62
|
-
vue.watch(() => props.modelValue, (newVal) => {
|
|
63
|
-
if (newVal !== color.value) {
|
|
64
|
-
newVal ? color.fromString(newVal) : color.clear();
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
vue.watch(() => color.value, (val) => {
|
|
68
|
-
emit(event.UPDATE_MODEL_EVENT, val);
|
|
69
|
-
customInput.value = val;
|
|
70
|
-
if (props.validateEvent) {
|
|
71
|
-
formItem == null ? void 0 : formItem.validate("change").catch((err) => error.debugWarn(err));
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
vue.provide(colorPickerPanel.colorPickerPanelContextKey, {
|
|
75
|
-
currentColor: vue.computed(() => color.value)
|
|
76
|
-
});
|
|
77
|
-
expose({
|
|
78
|
-
color,
|
|
79
|
-
inputRef,
|
|
80
|
-
update
|
|
81
|
-
});
|
|
82
|
-
return (_ctx, _cache) => {
|
|
83
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
84
|
-
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).is("disabled", vue.unref(disabled)), vue.unref(ns).is("border", _ctx.border)]),
|
|
85
|
-
onFocusout: handleFocusout
|
|
86
|
-
}, [
|
|
87
|
-
vue.createElementVNode("div", {
|
|
88
|
-
class: vue.normalizeClass(vue.unref(ns).e("wrapper"))
|
|
89
|
-
}, [
|
|
90
|
-
vue.createVNode(hueSlider["default"], {
|
|
91
|
-
ref_key: "hueRef",
|
|
92
|
-
ref: hueRef,
|
|
93
|
-
class: "hue-slider",
|
|
94
|
-
color: vue.unref(color),
|
|
95
|
-
vertical: "",
|
|
96
|
-
disabled: vue.unref(disabled)
|
|
97
|
-
}, null, 8, ["color", "disabled"]),
|
|
98
|
-
vue.createVNode(svPanel["default"], {
|
|
99
|
-
ref_key: "svRef",
|
|
100
|
-
ref: svRef,
|
|
101
|
-
color: vue.unref(color),
|
|
102
|
-
disabled: vue.unref(disabled)
|
|
103
|
-
}, null, 8, ["color", "disabled"])
|
|
104
|
-
], 2),
|
|
105
|
-
_ctx.showAlpha ? (vue.openBlock(), vue.createBlock(alphaSlider["default"], {
|
|
106
|
-
key: 0,
|
|
107
|
-
ref_key: "alphaRef",
|
|
108
|
-
ref: alphaRef,
|
|
109
|
-
color: vue.unref(color),
|
|
110
|
-
disabled: vue.unref(disabled)
|
|
111
|
-
}, null, 8, ["color", "disabled"])) : vue.createCommentVNode("v-if", true),
|
|
112
|
-
_ctx.predefine ? (vue.openBlock(), vue.createBlock(predefine["default"], {
|
|
113
|
-
key: 1,
|
|
114
|
-
ref: "predefine",
|
|
115
|
-
"enable-alpha": _ctx.showAlpha,
|
|
116
|
-
color: vue.unref(color),
|
|
117
|
-
colors: _ctx.predefine,
|
|
118
|
-
disabled: vue.unref(disabled)
|
|
119
|
-
}, null, 8, ["enable-alpha", "color", "colors", "disabled"])) : vue.createCommentVNode("v-if", true),
|
|
120
|
-
vue.createElementVNode("div", {
|
|
121
|
-
class: vue.normalizeClass(vue.unref(ns).e("footer"))
|
|
122
|
-
}, [
|
|
123
|
-
vue.createVNode(vue.unref(index$1.ElInput), {
|
|
124
|
-
ref_key: "inputRef",
|
|
125
|
-
ref: inputRef,
|
|
126
|
-
modelValue: customInput.value,
|
|
127
|
-
"onUpdate:modelValue": ($event) => customInput.value = $event,
|
|
128
|
-
"validate-event": false,
|
|
129
|
-
size: "small",
|
|
130
|
-
disabled: vue.unref(disabled),
|
|
131
|
-
onChange: handleConfirm
|
|
132
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
133
|
-
vue.renderSlot(_ctx.$slots, "footer")
|
|
134
|
-
], 2)
|
|
135
|
-
], 34);
|
|
136
|
-
};
|
|
10
|
+
const colorPickerPanelProps = runtime.buildProps({
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: runtime.definePropType(String),
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
border: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: true
|
|
18
|
+
},
|
|
19
|
+
showAlpha: Boolean,
|
|
20
|
+
colorFormat: String,
|
|
21
|
+
disabled: Boolean,
|
|
22
|
+
predefine: {
|
|
23
|
+
type: runtime.definePropType(Array)
|
|
24
|
+
},
|
|
25
|
+
validateEvent: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
137
28
|
}
|
|
138
29
|
});
|
|
139
|
-
|
|
30
|
+
const colorPickerPanelEmits = {
|
|
31
|
+
[event.UPDATE_MODEL_EVENT]: (val) => shared.isString(val) || lodashUnified.isNil(val)
|
|
32
|
+
};
|
|
33
|
+
const ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
|
|
34
|
+
const colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
|
|
140
35
|
|
|
141
|
-
exports
|
|
36
|
+
exports.ROOT_COMMON_COLOR_INJECTION_KEY = ROOT_COMMON_COLOR_INJECTION_KEY;
|
|
37
|
+
exports.colorPickerPanelContextKey = colorPickerPanelContextKey;
|
|
38
|
+
exports.colorPickerPanelEmits = colorPickerPanelEmits;
|
|
39
|
+
exports.colorPickerPanelProps = colorPickerPanelProps;
|
|
142
40
|
//# sourceMappingURL=color-picker-panel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-picker-panel.js","sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.
|
|
1
|
+
{"version":3,"file":"color-picker-panel.js","sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type {\n ComputedRef,\n ExtractPropTypes,\n InjectionKey,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type ColorPickerPanel from './color-picker-panel.vue'\nimport type Color from './utils/color'\n\nexport const colorPickerPanelProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description whether the color picker is bordered\n */\n border: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: String,\n /**\n * @description whether to disable the color picker\n */\n disabled: Boolean,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport const colorPickerPanelEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n}\n\nexport type ColorPickerPanelProps = ExtractPropTypes<\n typeof colorPickerPanelProps\n>\nexport type ColorPickerPanelPropsPublic = __ExtractPublicPropTypes<\n typeof colorPickerPanelProps\n>\nexport type ColorPickerPanelEmits = typeof colorPickerPanelEmits\nexport type ColorPickerPanelInstance = InstanceType<typeof ColorPickerPanel> &\n unknown\n\nexport interface ColorPickerPanelContext {\n currentColor: ComputedRef<string>\n}\n\nexport interface CommonColorContext {\n color: Color\n}\n\nexport const ROOT_COMMON_COLOR_INJECTION_KEY: InjectionKey<CommonColorContext> =\n Symbol('colorCommonPickerKey')\nexport const colorPickerPanelContextKey: InjectionKey<ColorPickerPanelContext> =\n Symbol('colorPickerPanelContextKey')\n"],"names":["buildProps","definePropType","UPDATE_MODEL_EVENT","isString","isNil"],"mappings":";;;;;;;;;AAGY,MAAC,qBAAqB,GAAGA,kBAAU,CAAC;AAChD,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAEA,sBAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,qBAAqB,GAAG;AACrC,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAQ,CAAC,GAAG,CAAC,IAAIC,mBAAK,CAAC,GAAG,CAAC;AAC5D,EAAE;AACU,MAAC,+BAA+B,GAAG,MAAM,CAAC,sBAAsB,EAAE;AAClE,MAAC,0BAA0B,GAAG,MAAM,CAAC,4BAA4B;;;;;;;"}
|
|
@@ -2,39 +2,141 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$1 = require('../../input/index.js');
|
|
7
|
+
var alphaSlider = require('./components/alpha-slider.js');
|
|
8
|
+
var hueSlider = require('./components/hue-slider.js');
|
|
9
|
+
var predefine = require('./components/predefine.js');
|
|
10
|
+
var svPanel = require('./components/sv-panel.js');
|
|
11
|
+
var colorPickerPanel = require('./color-picker-panel.js');
|
|
12
|
+
var useCommonColor = require('./composables/use-common-color.js');
|
|
13
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
15
|
+
var useFormItem = require('../../form/src/hooks/use-form-item.js');
|
|
16
|
+
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
7
17
|
var event = require('../../../constants/event.js');
|
|
8
|
-
var
|
|
18
|
+
var error = require('../../../utils/error.js');
|
|
9
19
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
const __default__ = vue.defineComponent({
|
|
21
|
+
name: "ElColorPickerPanel"
|
|
22
|
+
});
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
24
|
+
...__default__,
|
|
25
|
+
props: colorPickerPanel.colorPickerPanelProps,
|
|
26
|
+
emits: colorPickerPanel.colorPickerPanelEmits,
|
|
27
|
+
setup(__props, { expose, emit }) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const ns = index.useNamespace("color-picker-panel");
|
|
30
|
+
const { formItem } = useFormItem.useFormItem();
|
|
31
|
+
const disabled = useFormCommonProps.useFormDisabled();
|
|
32
|
+
const hueRef = vue.ref();
|
|
33
|
+
const svRef = vue.ref();
|
|
34
|
+
const alphaRef = vue.ref();
|
|
35
|
+
const inputRef = vue.ref();
|
|
36
|
+
const customInput = vue.ref("");
|
|
37
|
+
const { color } = vue.inject(colorPickerPanel.ROOT_COMMON_COLOR_INJECTION_KEY, () => useCommonColor.useCommonColor(props, emit), true);
|
|
38
|
+
function handleConfirm() {
|
|
39
|
+
color.fromString(customInput.value);
|
|
40
|
+
if (color.value !== customInput.value) {
|
|
41
|
+
customInput.value = color.value;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function handleFocusout() {
|
|
45
|
+
var _a;
|
|
46
|
+
if (props.validateEvent) {
|
|
47
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => error.debugWarn(err));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function update() {
|
|
51
|
+
var _a, _b, _c;
|
|
52
|
+
(_a = hueRef.value) == null ? void 0 : _a.update();
|
|
53
|
+
(_b = svRef.value) == null ? void 0 : _b.update();
|
|
54
|
+
(_c = alphaRef.value) == null ? void 0 : _c.update();
|
|
55
|
+
}
|
|
56
|
+
vue.onMounted(() => {
|
|
57
|
+
if (props.modelValue) {
|
|
58
|
+
customInput.value = color.value;
|
|
59
|
+
}
|
|
60
|
+
vue.nextTick(update);
|
|
61
|
+
});
|
|
62
|
+
vue.watch(() => props.modelValue, (newVal) => {
|
|
63
|
+
if (newVal !== color.value) {
|
|
64
|
+
newVal ? color.fromString(newVal) : color.clear();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
vue.watch(() => color.value, (val) => {
|
|
68
|
+
emit(event.UPDATE_MODEL_EVENT, val);
|
|
69
|
+
customInput.value = val;
|
|
70
|
+
if (props.validateEvent) {
|
|
71
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => error.debugWarn(err));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
vue.provide(colorPickerPanel.colorPickerPanelContextKey, {
|
|
75
|
+
currentColor: vue.computed(() => color.value)
|
|
76
|
+
});
|
|
77
|
+
expose({
|
|
78
|
+
color,
|
|
79
|
+
inputRef,
|
|
80
|
+
update
|
|
81
|
+
});
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
84
|
+
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).is("disabled", vue.unref(disabled)), vue.unref(ns).is("border", _ctx.border)]),
|
|
85
|
+
onFocusout: handleFocusout
|
|
86
|
+
}, [
|
|
87
|
+
vue.createElementVNode("div", {
|
|
88
|
+
class: vue.normalizeClass(vue.unref(ns).e("wrapper"))
|
|
89
|
+
}, [
|
|
90
|
+
vue.createVNode(hueSlider["default"], {
|
|
91
|
+
ref_key: "hueRef",
|
|
92
|
+
ref: hueRef,
|
|
93
|
+
class: "hue-slider",
|
|
94
|
+
color: vue.unref(color),
|
|
95
|
+
vertical: "",
|
|
96
|
+
disabled: vue.unref(disabled)
|
|
97
|
+
}, null, 8, ["color", "disabled"]),
|
|
98
|
+
vue.createVNode(svPanel["default"], {
|
|
99
|
+
ref_key: "svRef",
|
|
100
|
+
ref: svRef,
|
|
101
|
+
color: vue.unref(color),
|
|
102
|
+
disabled: vue.unref(disabled)
|
|
103
|
+
}, null, 8, ["color", "disabled"])
|
|
104
|
+
], 2),
|
|
105
|
+
_ctx.showAlpha ? (vue.openBlock(), vue.createBlock(alphaSlider["default"], {
|
|
106
|
+
key: 0,
|
|
107
|
+
ref_key: "alphaRef",
|
|
108
|
+
ref: alphaRef,
|
|
109
|
+
color: vue.unref(color),
|
|
110
|
+
disabled: vue.unref(disabled)
|
|
111
|
+
}, null, 8, ["color", "disabled"])) : vue.createCommentVNode("v-if", true),
|
|
112
|
+
_ctx.predefine ? (vue.openBlock(), vue.createBlock(predefine["default"], {
|
|
113
|
+
key: 1,
|
|
114
|
+
ref: "predefine",
|
|
115
|
+
"enable-alpha": _ctx.showAlpha,
|
|
116
|
+
color: vue.unref(color),
|
|
117
|
+
colors: _ctx.predefine,
|
|
118
|
+
disabled: vue.unref(disabled)
|
|
119
|
+
}, null, 8, ["enable-alpha", "color", "colors", "disabled"])) : vue.createCommentVNode("v-if", true),
|
|
120
|
+
vue.createElementVNode("div", {
|
|
121
|
+
class: vue.normalizeClass(vue.unref(ns).e("footer"))
|
|
122
|
+
}, [
|
|
123
|
+
vue.createVNode(vue.unref(index$1.ElInput), {
|
|
124
|
+
ref_key: "inputRef",
|
|
125
|
+
ref: inputRef,
|
|
126
|
+
modelValue: customInput.value,
|
|
127
|
+
"onUpdate:modelValue": ($event) => customInput.value = $event,
|
|
128
|
+
"validate-event": false,
|
|
129
|
+
size: "small",
|
|
130
|
+
disabled: vue.unref(disabled),
|
|
131
|
+
onChange: handleConfirm
|
|
132
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]),
|
|
133
|
+
vue.renderSlot(_ctx.$slots, "footer")
|
|
134
|
+
], 2)
|
|
135
|
+
], 34);
|
|
136
|
+
};
|
|
28
137
|
}
|
|
29
138
|
});
|
|
30
|
-
|
|
31
|
-
[event.UPDATE_MODEL_EVENT]: (val) => shared.isString(val) || lodashUnified.isNil(val)
|
|
32
|
-
};
|
|
33
|
-
const ROOT_COMMON_COLOR_INJECTION_KEY = Symbol("colorCommonPickerKey");
|
|
34
|
-
const colorPickerPanelContextKey = Symbol("colorPickerPanelContextKey");
|
|
139
|
+
var ColorPickerPanel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "color-picker-panel.vue"]]);
|
|
35
140
|
|
|
36
|
-
exports
|
|
37
|
-
exports.colorPickerPanelContextKey = colorPickerPanelContextKey;
|
|
38
|
-
exports.colorPickerPanelEmits = colorPickerPanelEmits;
|
|
39
|
-
exports.colorPickerPanelProps = colorPickerPanelProps;
|
|
141
|
+
exports["default"] = ColorPickerPanel;
|
|
40
142
|
//# sourceMappingURL=color-picker-panel2.js.map
|