@element-plus/nightly 0.0.20231207 → 0.0.20231208
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 +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- 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.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/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/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/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/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/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-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/alert/index.d.ts +4 -4
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.mjs +96 -36
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert.vue.d.ts +4 -4
- package/es/components/alert/src/alert2.mjs +36 -96
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +65 -65
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
- package/es/components/button/index.d.ts +5 -5
- package/es/components/button/src/button.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +5 -5
- package/es/components/button/src/use-button.d.ts +1 -1
- package/es/components/calendar/index.d.ts +5 -5
- package/es/components/calendar/src/calendar.vue.d.ts +5 -5
- package/es/components/carousel/index.d.ts +5 -5
- package/es/components/carousel/src/carousel.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +5 -5
- package/es/components/cascader/index.d.ts +128 -128
- package/es/components/cascader/src/cascader.vue.d.ts +64 -64
- package/es/components/color-picker/index.d.ts +38 -38
- package/es/components/color-picker/src/color-picker.vue.d.ts +38 -38
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
- package/es/components/date-picker/src/panel-utils.d.ts +34 -34
- package/es/components/dialog/index.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +14 -14
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +12 -12
- package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/es/components/form/index.d.ts +12 -12
- package/es/components/form/src/form-item.d.ts +1 -1
- package/es/components/form/src/form-item.vue.d.ts +5 -5
- package/es/components/image/index.d.ts +1 -1
- package/es/components/image/src/image.vue.d.ts +1 -1
- package/es/components/index.mjs +4 -4
- package/es/components/input/index.d.ts +12 -12
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +453 -109
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +12 -12
- package/es/components/input/src/input2.mjs +109 -453
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +45 -45
- package/es/components/input-number/src/input-number.vue.d.ts +45 -45
- package/es/components/menu/index.d.ts +3 -3
- package/es/components/menu/src/menu.d.ts +4 -4
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +4 -4
- package/es/components/pagination/src/components/jumper.vue.d.ts +12 -12
- package/es/components/pagination/src/components/sizes.vue.d.ts +26 -26
- package/es/components/popconfirm/index.d.ts +23 -23
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
- package/es/components/popover/index.d.ts +18 -18
- package/es/components/popover/src/popover.vue.d.ts +18 -18
- package/es/components/popper/src/content.vue.d.ts +6 -6
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +66 -9
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +9 -66
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/result/index.d.ts +4 -4
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/result/src/result.vue.d.ts +4 -4
- package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +26 -26
- package/es/components/select/src/select.vue.d.ts +26 -26
- package/es/components/select/src/useSelect.d.ts +24 -24
- package/es/components/select-v2/index.d.ts +30 -30
- package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +15 -15
- package/es/components/select-v2/src/useSelect.d.ts +13 -13
- package/es/components/slider/index.d.ts +75 -75
- package/es/components/slider/src/button.vue.d.ts +6 -6
- package/es/components/slider/src/composables/use-slide.d.ts +24 -24
- package/es/components/slider/src/slider.vue.d.ts +75 -75
- package/es/components/steps/index.d.ts +16 -16
- package/es/components/steps/src/item.d.ts +1 -1
- package/es/components/steps/src/item.vue.d.ts +4 -4
- package/es/components/steps/src/steps.d.ts +2 -2
- package/es/components/steps/src/steps.vue.d.ts +8 -8
- package/es/components/table/index.d.ts +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +12 -12
- package/es/components/table/src/table.vue.d.ts +1 -1
- package/es/components/tag/index.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +34 -34
- package/es/components/time-select/index.d.ts +110 -110
- package/es/components/time-select/src/time-select.vue.d.ts +55 -55
- package/es/components/tooltip/index.d.ts +6 -6
- package/es/components/tooltip/src/content.vue.d.ts +6 -6
- package/es/components/tooltip/src/tooltip.vue.d.ts +6 -6
- package/es/components/tooltip-v2/index.d.ts +4 -4
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/arrow.mjs +22 -37
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/transfer/index.d.ts +65 -65
- package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
- package/es/components/transfer/src/transfer.vue.d.ts +65 -65
- package/es/components/tree-v2/index.d.ts +1 -1
- package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/es/components/upload/index.d.ts +5 -5
- package/es/components/upload/src/upload-content.vue.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +5 -5
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +209 -28
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +28 -209
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +4 -4
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.d.ts +4 -4
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.js +95 -37
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +4 -4
- package/lib/components/alert/src/alert2.js +37 -95
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +65 -65
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
- package/lib/components/button/index.d.ts +5 -5
- package/lib/components/button/src/button.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +5 -5
- package/lib/components/button/src/use-button.d.ts +1 -1
- package/lib/components/calendar/index.d.ts +5 -5
- package/lib/components/calendar/src/calendar.vue.d.ts +5 -5
- package/lib/components/carousel/index.d.ts +5 -5
- package/lib/components/carousel/src/carousel.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +5 -5
- package/lib/components/cascader/index.d.ts +128 -128
- package/lib/components/cascader/src/cascader.vue.d.ts +64 -64
- package/lib/components/color-picker/index.d.ts +38 -38
- package/lib/components/color-picker/src/color-picker.vue.d.ts +38 -38
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
- package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
- package/lib/components/dialog/index.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +14 -14
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +12 -12
- package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/lib/components/form/index.d.ts +12 -12
- package/lib/components/form/src/form-item.d.ts +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +5 -5
- package/lib/components/image/index.d.ts +1 -1
- package/lib/components/image/src/image.vue.d.ts +1 -1
- package/lib/components/index.js +4 -4
- package/lib/components/input/index.d.ts +12 -12
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +452 -109
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +12 -12
- package/lib/components/input/src/input2.js +109 -452
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +45 -45
- package/lib/components/input-number/src/input-number.vue.d.ts +45 -45
- package/lib/components/menu/index.d.ts +3 -3
- package/lib/components/menu/src/menu.d.ts +4 -4
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +4 -4
- package/lib/components/pagination/src/components/jumper.vue.d.ts +12 -12
- package/lib/components/pagination/src/components/sizes.vue.d.ts +26 -26
- package/lib/components/popconfirm/index.d.ts +23 -23
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
- package/lib/components/popover/index.d.ts +18 -18
- package/lib/components/popover/src/popover.vue.d.ts +18 -18
- package/lib/components/popper/src/content.vue.d.ts +6 -6
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +66 -9
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +9 -66
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/result/index.d.ts +4 -4
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/result/src/result.vue.d.ts +4 -4
- package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +26 -26
- package/lib/components/select/src/select.vue.d.ts +26 -26
- package/lib/components/select/src/useSelect.d.ts +24 -24
- package/lib/components/select-v2/index.d.ts +30 -30
- package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +15 -15
- package/lib/components/select-v2/src/useSelect.d.ts +13 -13
- package/lib/components/slider/index.d.ts +75 -75
- package/lib/components/slider/src/button.vue.d.ts +6 -6
- package/lib/components/slider/src/composables/use-slide.d.ts +24 -24
- package/lib/components/slider/src/slider.vue.d.ts +75 -75
- package/lib/components/steps/index.d.ts +16 -16
- package/lib/components/steps/src/item.d.ts +1 -1
- package/lib/components/steps/src/item.vue.d.ts +4 -4
- package/lib/components/steps/src/steps.d.ts +2 -2
- package/lib/components/steps/src/steps.vue.d.ts +8 -8
- package/lib/components/table/index.d.ts +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +12 -12
- package/lib/components/table/src/table.vue.d.ts +1 -1
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +34 -34
- package/lib/components/time-select/index.d.ts +110 -110
- package/lib/components/time-select/src/time-select.vue.d.ts +55 -55
- package/lib/components/tooltip/index.d.ts +6 -6
- package/lib/components/tooltip/src/content.vue.d.ts +6 -6
- package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -6
- package/lib/components/tooltip-v2/index.d.ts +4 -4
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/arrow.js +23 -37
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +37 -23
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/transfer/index.d.ts +65 -65
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
- package/lib/components/transfer/src/transfer.vue.d.ts +65 -65
- package/lib/components/tree-v2/index.d.ts +1 -1
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/lib/components/upload/index.d.ts +5 -5
- package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +5 -5
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +209 -28
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +28 -209
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +4 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,117 +1,461 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, useAttrs, useSlots, computed, shallowRef, ref, nextTick, watch, onMounted, toRef, withDirectives, openBlock, createElementBlock, mergeProps, unref, createCommentVNode, Fragment, normalizeClass, renderSlot, createElementVNode, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow } from 'vue';
|
|
2
|
+
import { useResizeObserver, isClient } from '@vueuse/core';
|
|
3
|
+
import { isNil } from 'lodash-unified';
|
|
4
|
+
import { ElIcon } from '../../icon/index.mjs';
|
|
5
|
+
import { View, Hide, CircleClose } from '@element-plus/icons-vue';
|
|
6
|
+
import '../../form/index.mjs';
|
|
2
7
|
import '../../../utils/index.mjs';
|
|
3
|
-
import '../../../constants/index.mjs';
|
|
4
8
|
import '../../../hooks/index.mjs';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
+
import '../../../constants/index.mjs';
|
|
10
|
+
import { calcTextareaHeight } from './utils.mjs';
|
|
11
|
+
import { inputProps, inputEmits } from './input2.mjs';
|
|
12
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
13
|
+
import { useAttrs as useAttrs$1 } from '../../../hooks/use-attrs/index.mjs';
|
|
14
|
+
import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
|
|
15
|
+
import { useFormSize, useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
16
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
17
|
+
import { useFocusController } from '../../../hooks/use-focus-controller/index.mjs';
|
|
18
|
+
import { debugWarn } from '../../../utils/error.mjs';
|
|
19
|
+
import { ValidateComponentsMap } from '../../../utils/vue/icon.mjs';
|
|
20
|
+
import { useCursor } from '../../../hooks/use-cursor/index.mjs';
|
|
21
|
+
import { isObject, NOOP } from '@vue/shared';
|
|
9
22
|
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
|
23
|
+
import { isKorean } from '../../../utils/i18n.mjs';
|
|
10
24
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
25
|
+
const _hoisted_1 = ["role"];
|
|
26
|
+
const _hoisted_2 = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus"];
|
|
27
|
+
const _hoisted_3 = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus"];
|
|
28
|
+
const __default__ = defineComponent({
|
|
29
|
+
name: "ElInput",
|
|
30
|
+
inheritAttrs: false
|
|
31
|
+
});
|
|
32
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
|
+
...__default__,
|
|
34
|
+
props: inputProps,
|
|
35
|
+
emits: inputEmits,
|
|
36
|
+
setup(__props, { expose, emit }) {
|
|
37
|
+
const props = __props;
|
|
38
|
+
const rawAttrs = useAttrs();
|
|
39
|
+
const slots = useSlots();
|
|
40
|
+
const containerAttrs = computed(() => {
|
|
41
|
+
const comboBoxAttrs = {};
|
|
42
|
+
if (props.containerRole === "combobox") {
|
|
43
|
+
comboBoxAttrs["aria-haspopup"] = rawAttrs["aria-haspopup"];
|
|
44
|
+
comboBoxAttrs["aria-owns"] = rawAttrs["aria-owns"];
|
|
45
|
+
comboBoxAttrs["aria-expanded"] = rawAttrs["aria-expanded"];
|
|
46
|
+
}
|
|
47
|
+
return comboBoxAttrs;
|
|
48
|
+
});
|
|
49
|
+
const containerKls = computed(() => [
|
|
50
|
+
props.type === "textarea" ? nsTextarea.b() : nsInput.b(),
|
|
51
|
+
nsInput.m(inputSize.value),
|
|
52
|
+
nsInput.is("disabled", inputDisabled.value),
|
|
53
|
+
nsInput.is("exceed", inputExceed.value),
|
|
54
|
+
{
|
|
55
|
+
[nsInput.b("group")]: slots.prepend || slots.append,
|
|
56
|
+
[nsInput.bm("group", "append")]: slots.append,
|
|
57
|
+
[nsInput.bm("group", "prepend")]: slots.prepend,
|
|
58
|
+
[nsInput.m("prefix")]: slots.prefix || props.prefixIcon,
|
|
59
|
+
[nsInput.m("suffix")]: slots.suffix || props.suffixIcon || props.clearable || props.showPassword,
|
|
60
|
+
[nsInput.bm("suffix", "password-clear")]: showClear.value && showPwdVisible.value
|
|
61
|
+
},
|
|
62
|
+
rawAttrs.class
|
|
63
|
+
]);
|
|
64
|
+
const wrapperKls = computed(() => [
|
|
65
|
+
nsInput.e("wrapper"),
|
|
66
|
+
nsInput.is("focus", isFocused.value)
|
|
67
|
+
]);
|
|
68
|
+
const attrs = useAttrs$1({
|
|
69
|
+
excludeKeys: computed(() => {
|
|
70
|
+
return Object.keys(containerAttrs.value);
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
const { form, formItem } = useFormItem();
|
|
74
|
+
const { inputId } = useFormItemInputId(props, {
|
|
75
|
+
formItemContext: formItem
|
|
76
|
+
});
|
|
77
|
+
const inputSize = useFormSize();
|
|
78
|
+
const inputDisabled = useFormDisabled();
|
|
79
|
+
const nsInput = useNamespace("input");
|
|
80
|
+
const nsTextarea = useNamespace("textarea");
|
|
81
|
+
const input = shallowRef();
|
|
82
|
+
const textarea = shallowRef();
|
|
83
|
+
const hovering = ref(false);
|
|
84
|
+
const isComposing = ref(false);
|
|
85
|
+
const passwordVisible = ref(false);
|
|
86
|
+
const countStyle = ref();
|
|
87
|
+
const textareaCalcStyle = shallowRef(props.inputStyle);
|
|
88
|
+
const _ref = computed(() => input.value || textarea.value);
|
|
89
|
+
const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(_ref, {
|
|
90
|
+
afterBlur() {
|
|
91
|
+
var _a;
|
|
92
|
+
if (props.validateEvent) {
|
|
93
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
const needStatusIcon = computed(() => {
|
|
98
|
+
var _a;
|
|
99
|
+
return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
|
|
100
|
+
});
|
|
101
|
+
const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
102
|
+
const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
|
|
103
|
+
const passwordIcon = computed(() => passwordVisible.value ? View : Hide);
|
|
104
|
+
const containerStyle = computed(() => [
|
|
105
|
+
rawAttrs.style,
|
|
106
|
+
props.inputStyle
|
|
107
|
+
]);
|
|
108
|
+
const textareaStyle = computed(() => [
|
|
109
|
+
props.inputStyle,
|
|
110
|
+
textareaCalcStyle.value,
|
|
111
|
+
{ resize: props.resize }
|
|
112
|
+
]);
|
|
113
|
+
const nativeInputValue = computed(() => isNil(props.modelValue) ? "" : String(props.modelValue));
|
|
114
|
+
const showClear = computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
|
|
115
|
+
const showPwdVisible = computed(() => props.showPassword && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (!!nativeInputValue.value || isFocused.value));
|
|
116
|
+
const isWordLimitVisible = computed(() => props.showWordLimit && !!attrs.value.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
|
|
117
|
+
const textLength = computed(() => nativeInputValue.value.length);
|
|
118
|
+
const inputExceed = computed(() => !!isWordLimitVisible.value && textLength.value > Number(attrs.value.maxlength));
|
|
119
|
+
const suffixVisible = computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
|
120
|
+
const [recordCursor, setCursor] = useCursor(input);
|
|
121
|
+
useResizeObserver(textarea, (entries) => {
|
|
122
|
+
onceInitSizeTextarea();
|
|
123
|
+
if (!isWordLimitVisible.value || props.resize !== "both")
|
|
124
|
+
return;
|
|
125
|
+
const entry = entries[0];
|
|
126
|
+
const { width } = entry.contentRect;
|
|
127
|
+
countStyle.value = {
|
|
128
|
+
right: `calc(100% - ${width + 15 + 6}px)`
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
const resizeTextarea = () => {
|
|
132
|
+
const { type, autosize } = props;
|
|
133
|
+
if (!isClient || type !== "textarea" || !textarea.value)
|
|
134
|
+
return;
|
|
135
|
+
if (autosize) {
|
|
136
|
+
const minRows = isObject(autosize) ? autosize.minRows : void 0;
|
|
137
|
+
const maxRows = isObject(autosize) ? autosize.maxRows : void 0;
|
|
138
|
+
const textareaStyle2 = calcTextareaHeight(textarea.value, minRows, maxRows);
|
|
139
|
+
textareaCalcStyle.value = {
|
|
140
|
+
overflowY: "hidden",
|
|
141
|
+
...textareaStyle2
|
|
142
|
+
};
|
|
143
|
+
nextTick(() => {
|
|
144
|
+
textarea.value.offsetHeight;
|
|
145
|
+
textareaCalcStyle.value = textareaStyle2;
|
|
146
|
+
});
|
|
147
|
+
} else {
|
|
148
|
+
textareaCalcStyle.value = {
|
|
149
|
+
minHeight: calcTextareaHeight(textarea.value).minHeight
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const createOnceInitResize = (resizeTextarea2) => {
|
|
154
|
+
let isInit = false;
|
|
155
|
+
return () => {
|
|
156
|
+
var _a;
|
|
157
|
+
if (isInit || !props.autosize)
|
|
158
|
+
return;
|
|
159
|
+
const isElHidden = ((_a = textarea.value) == null ? void 0 : _a.offsetParent) === null;
|
|
160
|
+
if (!isElHidden) {
|
|
161
|
+
resizeTextarea2();
|
|
162
|
+
isInit = true;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
const onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
|
|
167
|
+
const setNativeInputValue = () => {
|
|
168
|
+
const input2 = _ref.value;
|
|
169
|
+
const formatterValue = props.formatter ? props.formatter(nativeInputValue.value) : nativeInputValue.value;
|
|
170
|
+
if (!input2 || input2.value === formatterValue)
|
|
171
|
+
return;
|
|
172
|
+
input2.value = formatterValue;
|
|
173
|
+
};
|
|
174
|
+
const handleInput = async (event) => {
|
|
175
|
+
recordCursor();
|
|
176
|
+
let { value } = event.target;
|
|
177
|
+
if (props.formatter) {
|
|
178
|
+
value = props.parser ? props.parser(value) : value;
|
|
179
|
+
}
|
|
180
|
+
if (isComposing.value)
|
|
181
|
+
return;
|
|
182
|
+
if (value === nativeInputValue.value) {
|
|
183
|
+
setNativeInputValue();
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
emit(UPDATE_MODEL_EVENT, value);
|
|
187
|
+
emit("input", value);
|
|
188
|
+
await nextTick();
|
|
189
|
+
setNativeInputValue();
|
|
190
|
+
setCursor();
|
|
191
|
+
};
|
|
192
|
+
const handleChange = (event) => {
|
|
193
|
+
emit("change", event.target.value);
|
|
194
|
+
};
|
|
195
|
+
const handleCompositionStart = (event) => {
|
|
196
|
+
emit("compositionstart", event);
|
|
197
|
+
isComposing.value = true;
|
|
198
|
+
};
|
|
199
|
+
const handleCompositionUpdate = (event) => {
|
|
200
|
+
var _a;
|
|
201
|
+
emit("compositionupdate", event);
|
|
202
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
203
|
+
const lastCharacter = text[text.length - 1] || "";
|
|
204
|
+
isComposing.value = !isKorean(lastCharacter);
|
|
205
|
+
};
|
|
206
|
+
const handleCompositionEnd = (event) => {
|
|
207
|
+
emit("compositionend", event);
|
|
208
|
+
if (isComposing.value) {
|
|
209
|
+
isComposing.value = false;
|
|
210
|
+
handleInput(event);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const handlePasswordVisible = () => {
|
|
214
|
+
passwordVisible.value = !passwordVisible.value;
|
|
215
|
+
focus();
|
|
216
|
+
};
|
|
217
|
+
const focus = async () => {
|
|
218
|
+
var _a;
|
|
219
|
+
await nextTick();
|
|
220
|
+
(_a = _ref.value) == null ? void 0 : _a.focus();
|
|
221
|
+
};
|
|
222
|
+
const blur = () => {
|
|
223
|
+
var _a;
|
|
224
|
+
return (_a = _ref.value) == null ? void 0 : _a.blur();
|
|
225
|
+
};
|
|
226
|
+
const handleMouseLeave = (evt) => {
|
|
227
|
+
hovering.value = false;
|
|
228
|
+
emit("mouseleave", evt);
|
|
229
|
+
};
|
|
230
|
+
const handleMouseEnter = (evt) => {
|
|
231
|
+
hovering.value = true;
|
|
232
|
+
emit("mouseenter", evt);
|
|
233
|
+
};
|
|
234
|
+
const handleKeydown = (evt) => {
|
|
235
|
+
emit("keydown", evt);
|
|
236
|
+
};
|
|
237
|
+
const select = () => {
|
|
238
|
+
var _a;
|
|
239
|
+
(_a = _ref.value) == null ? void 0 : _a.select();
|
|
240
|
+
};
|
|
241
|
+
const clear = () => {
|
|
242
|
+
emit(UPDATE_MODEL_EVENT, "");
|
|
243
|
+
emit("change", "");
|
|
244
|
+
emit("clear");
|
|
245
|
+
emit("input", "");
|
|
246
|
+
};
|
|
247
|
+
watch(() => props.modelValue, () => {
|
|
248
|
+
var _a;
|
|
249
|
+
nextTick(() => resizeTextarea());
|
|
250
|
+
if (props.validateEvent) {
|
|
251
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
watch(nativeInputValue, () => setNativeInputValue());
|
|
255
|
+
watch(() => props.type, async () => {
|
|
256
|
+
await nextTick();
|
|
257
|
+
setNativeInputValue();
|
|
258
|
+
resizeTextarea();
|
|
259
|
+
});
|
|
260
|
+
onMounted(() => {
|
|
261
|
+
if (!props.formatter && props.parser) {
|
|
262
|
+
debugWarn("ElInput", "If you set the parser, you also need to set the formatter.");
|
|
263
|
+
}
|
|
264
|
+
setNativeInputValue();
|
|
265
|
+
nextTick(resizeTextarea);
|
|
266
|
+
});
|
|
267
|
+
expose({
|
|
268
|
+
input,
|
|
269
|
+
textarea,
|
|
270
|
+
ref: _ref,
|
|
271
|
+
textareaStyle,
|
|
272
|
+
autosize: toRef(props, "autosize"),
|
|
273
|
+
focus,
|
|
274
|
+
blur,
|
|
275
|
+
select,
|
|
276
|
+
clear,
|
|
277
|
+
resizeTextarea
|
|
278
|
+
});
|
|
279
|
+
return (_ctx, _cache) => {
|
|
280
|
+
return withDirectives((openBlock(), createElementBlock("div", mergeProps(unref(containerAttrs), {
|
|
281
|
+
class: unref(containerKls),
|
|
282
|
+
style: unref(containerStyle),
|
|
283
|
+
role: _ctx.containerRole,
|
|
284
|
+
onMouseenter: handleMouseEnter,
|
|
285
|
+
onMouseleave: handleMouseLeave
|
|
286
|
+
}), [
|
|
287
|
+
createCommentVNode(" input "),
|
|
288
|
+
_ctx.type !== "textarea" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
289
|
+
createCommentVNode(" prepend slot "),
|
|
290
|
+
_ctx.$slots.prepend ? (openBlock(), createElementBlock("div", {
|
|
291
|
+
key: 0,
|
|
292
|
+
class: normalizeClass(unref(nsInput).be("group", "prepend"))
|
|
293
|
+
}, [
|
|
294
|
+
renderSlot(_ctx.$slots, "prepend")
|
|
295
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
296
|
+
createElementVNode("div", {
|
|
297
|
+
ref_key: "wrapperRef",
|
|
298
|
+
ref: wrapperRef,
|
|
299
|
+
class: normalizeClass(unref(wrapperKls))
|
|
300
|
+
}, [
|
|
301
|
+
createCommentVNode(" prefix slot "),
|
|
302
|
+
_ctx.$slots.prefix || _ctx.prefixIcon ? (openBlock(), createElementBlock("span", {
|
|
303
|
+
key: 0,
|
|
304
|
+
class: normalizeClass(unref(nsInput).e("prefix"))
|
|
305
|
+
}, [
|
|
306
|
+
createElementVNode("span", {
|
|
307
|
+
class: normalizeClass(unref(nsInput).e("prefix-inner"))
|
|
308
|
+
}, [
|
|
309
|
+
renderSlot(_ctx.$slots, "prefix"),
|
|
310
|
+
_ctx.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
311
|
+
key: 0,
|
|
312
|
+
class: normalizeClass(unref(nsInput).e("icon"))
|
|
313
|
+
}, {
|
|
314
|
+
default: withCtx(() => [
|
|
315
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.prefixIcon)))
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
319
|
+
], 2)
|
|
320
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
321
|
+
createElementVNode("input", mergeProps({
|
|
322
|
+
id: unref(inputId),
|
|
323
|
+
ref_key: "input",
|
|
324
|
+
ref: input,
|
|
325
|
+
class: unref(nsInput).e("inner")
|
|
326
|
+
}, unref(attrs), {
|
|
327
|
+
type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
|
|
328
|
+
disabled: unref(inputDisabled),
|
|
329
|
+
formatter: _ctx.formatter,
|
|
330
|
+
parser: _ctx.parser,
|
|
331
|
+
readonly: _ctx.readonly,
|
|
332
|
+
autocomplete: _ctx.autocomplete,
|
|
333
|
+
tabindex: _ctx.tabindex,
|
|
334
|
+
"aria-label": _ctx.label,
|
|
335
|
+
placeholder: _ctx.placeholder,
|
|
336
|
+
style: _ctx.inputStyle,
|
|
337
|
+
form: props.form,
|
|
338
|
+
autofocus: props.autofocus,
|
|
339
|
+
onCompositionstart: handleCompositionStart,
|
|
340
|
+
onCompositionupdate: handleCompositionUpdate,
|
|
341
|
+
onCompositionend: handleCompositionEnd,
|
|
342
|
+
onInput: handleInput,
|
|
343
|
+
onFocus: _cache[0] || (_cache[0] = (...args) => unref(handleFocus) && unref(handleFocus)(...args)),
|
|
344
|
+
onBlur: _cache[1] || (_cache[1] = (...args) => unref(handleBlur) && unref(handleBlur)(...args)),
|
|
345
|
+
onChange: handleChange,
|
|
346
|
+
onKeydown: handleKeydown
|
|
347
|
+
}), null, 16, _hoisted_2),
|
|
348
|
+
createCommentVNode(" suffix slot "),
|
|
349
|
+
unref(suffixVisible) ? (openBlock(), createElementBlock("span", {
|
|
350
|
+
key: 1,
|
|
351
|
+
class: normalizeClass(unref(nsInput).e("suffix"))
|
|
352
|
+
}, [
|
|
353
|
+
createElementVNode("span", {
|
|
354
|
+
class: normalizeClass(unref(nsInput).e("suffix-inner"))
|
|
355
|
+
}, [
|
|
356
|
+
!unref(showClear) || !unref(showPwdVisible) || !unref(isWordLimitVisible) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
357
|
+
renderSlot(_ctx.$slots, "suffix"),
|
|
358
|
+
_ctx.suffixIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
359
|
+
key: 0,
|
|
360
|
+
class: normalizeClass(unref(nsInput).e("icon"))
|
|
361
|
+
}, {
|
|
362
|
+
default: withCtx(() => [
|
|
363
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.suffixIcon)))
|
|
364
|
+
]),
|
|
365
|
+
_: 1
|
|
366
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
367
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
368
|
+
unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
369
|
+
key: 1,
|
|
370
|
+
class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("clear")]),
|
|
371
|
+
onMousedown: withModifiers(unref(NOOP), ["prevent"]),
|
|
372
|
+
onClick: clear
|
|
373
|
+
}, {
|
|
374
|
+
default: withCtx(() => [
|
|
375
|
+
createVNode(unref(CircleClose))
|
|
376
|
+
]),
|
|
377
|
+
_: 1
|
|
378
|
+
}, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true),
|
|
379
|
+
unref(showPwdVisible) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
380
|
+
key: 2,
|
|
381
|
+
class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("password")]),
|
|
382
|
+
onClick: handlePasswordVisible
|
|
383
|
+
}, {
|
|
384
|
+
default: withCtx(() => [
|
|
385
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(passwordIcon))))
|
|
386
|
+
]),
|
|
387
|
+
_: 1
|
|
388
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
389
|
+
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
|
390
|
+
key: 3,
|
|
391
|
+
class: normalizeClass(unref(nsInput).e("count"))
|
|
392
|
+
}, [
|
|
393
|
+
createElementVNode("span", {
|
|
394
|
+
class: normalizeClass(unref(nsInput).e("count-inner"))
|
|
395
|
+
}, toDisplayString(unref(textLength)) + " / " + toDisplayString(unref(attrs).maxlength), 3)
|
|
396
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
397
|
+
unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
|
|
398
|
+
key: 4,
|
|
399
|
+
class: normalizeClass([
|
|
400
|
+
unref(nsInput).e("icon"),
|
|
401
|
+
unref(nsInput).e("validateIcon"),
|
|
402
|
+
unref(nsInput).is("loading", unref(validateState) === "validating")
|
|
403
|
+
])
|
|
404
|
+
}, {
|
|
405
|
+
default: withCtx(() => [
|
|
406
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
|
|
407
|
+
]),
|
|
408
|
+
_: 1
|
|
409
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
410
|
+
], 2)
|
|
411
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
412
|
+
], 2),
|
|
413
|
+
createCommentVNode(" append slot "),
|
|
414
|
+
_ctx.$slots.append ? (openBlock(), createElementBlock("div", {
|
|
415
|
+
key: 1,
|
|
416
|
+
class: normalizeClass(unref(nsInput).be("group", "append"))
|
|
417
|
+
}, [
|
|
418
|
+
renderSlot(_ctx.$slots, "append")
|
|
419
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
420
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
421
|
+
createCommentVNode(" textarea "),
|
|
422
|
+
createElementVNode("textarea", mergeProps({
|
|
423
|
+
id: unref(inputId),
|
|
424
|
+
ref_key: "textarea",
|
|
425
|
+
ref: textarea,
|
|
426
|
+
class: unref(nsTextarea).e("inner")
|
|
427
|
+
}, unref(attrs), {
|
|
428
|
+
tabindex: _ctx.tabindex,
|
|
429
|
+
disabled: unref(inputDisabled),
|
|
430
|
+
readonly: _ctx.readonly,
|
|
431
|
+
autocomplete: _ctx.autocomplete,
|
|
432
|
+
style: unref(textareaStyle),
|
|
433
|
+
"aria-label": _ctx.label,
|
|
434
|
+
placeholder: _ctx.placeholder,
|
|
435
|
+
form: props.form,
|
|
436
|
+
autofocus: props.autofocus,
|
|
437
|
+
onCompositionstart: handleCompositionStart,
|
|
438
|
+
onCompositionupdate: handleCompositionUpdate,
|
|
439
|
+
onCompositionend: handleCompositionEnd,
|
|
440
|
+
onInput: handleInput,
|
|
441
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => unref(handleFocus) && unref(handleFocus)(...args)),
|
|
442
|
+
onBlur: _cache[3] || (_cache[3] = (...args) => unref(handleBlur) && unref(handleBlur)(...args)),
|
|
443
|
+
onChange: handleChange,
|
|
444
|
+
onKeydown: handleKeydown
|
|
445
|
+
}), null, 16, _hoisted_3),
|
|
446
|
+
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
|
447
|
+
key: 0,
|
|
448
|
+
style: normalizeStyle(countStyle.value),
|
|
449
|
+
class: normalizeClass(unref(nsInput).e("count"))
|
|
450
|
+
}, toDisplayString(unref(textLength)) + " / " + toDisplayString(unref(attrs).maxlength), 7)) : createCommentVNode("v-if", true)
|
|
451
|
+
], 64))
|
|
452
|
+
], 16, _hoisted_1)), [
|
|
453
|
+
[vShow, _ctx.type !== "hidden"]
|
|
454
|
+
]);
|
|
455
|
+
};
|
|
99
456
|
}
|
|
100
457
|
});
|
|
101
|
-
|
|
102
|
-
[UPDATE_MODEL_EVENT]: (value) => isString(value),
|
|
103
|
-
input: (value) => isString(value),
|
|
104
|
-
change: (value) => isString(value),
|
|
105
|
-
focus: (evt) => evt instanceof FocusEvent,
|
|
106
|
-
blur: (evt) => evt instanceof FocusEvent,
|
|
107
|
-
clear: () => true,
|
|
108
|
-
mouseleave: (evt) => evt instanceof MouseEvent,
|
|
109
|
-
mouseenter: (evt) => evt instanceof MouseEvent,
|
|
110
|
-
keydown: (evt) => evt instanceof Event,
|
|
111
|
-
compositionstart: (evt) => evt instanceof CompositionEvent,
|
|
112
|
-
compositionupdate: (evt) => evt instanceof CompositionEvent,
|
|
113
|
-
compositionend: (evt) => evt instanceof CompositionEvent
|
|
114
|
-
};
|
|
458
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);
|
|
115
459
|
|
|
116
|
-
export {
|
|
460
|
+
export { Input as default };
|
|
117
461
|
//# sourceMappingURL=input.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.mjs","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import { isString } from '@vue/shared'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n mutable,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useSizeProp } from '@element-plus/hooks'\nimport type Input from './input.vue'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\n\nexport type InputAutoSize = { minRows?: number; maxRows?: number } | boolean\n\nexport const inputProps = buildProps({\n /**\n * @description native input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description input box size\n */\n size: useSizeProp,\n /**\n * @description whether to disable\n */\n disabled: Boolean,\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n Object,\n ]),\n default: '',\n },\n /**\n * @description type of input\n */\n type: {\n type: String,\n default: 'text',\n },\n /**\n * @description control the resizability\n */\n resize: {\n type: String,\n values: ['none', 'both', 'horizontal', 'vertical'],\n },\n /**\n * @description whether textarea has an adaptive height\n */\n autosize: {\n type: definePropType<InputAutoSize>([Boolean, Object]),\n default: false,\n },\n /**\n * @description native input autocomplete\n */\n autocomplete: {\n type: String,\n default: 'off',\n },\n /**\n * @description format content\n */\n formatter: {\n type: Function,\n },\n /**\n * @description parse content\n */\n parser: {\n type: Function,\n },\n /**\n * @description placeholder\n */\n placeholder: {\n type: String,\n },\n /**\n * @description native input form\n */\n form: {\n type: String,\n },\n /**\n * @description native input readonly\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * @description native input readonly\n */\n clearable: {\n type: Boolean,\n default: false,\n },\n /**\n * @description toggleable password input\n */\n showPassword: {\n type: Boolean,\n default: false,\n },\n /**\n * @description word count\n */\n showWordLimit: {\n type: Boolean,\n default: false,\n },\n /**\n * @description suffix icon\n */\n suffixIcon: {\n type: iconPropType,\n },\n /**\n * @description prefix icon\n */\n prefixIcon: {\n type: iconPropType,\n },\n /**\n * @description container role, internal properties provided for use by the picker component\n */\n containerRole: {\n type: String,\n default: undefined,\n },\n /**\n * @description native input aria-label\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description input or textarea element style\n */\n inputStyle: {\n type: definePropType<StyleValue>([Object, Array, String]),\n default: () => mutable({} as const),\n },\n /**\n * @description native input autofocus\n */\n autofocus: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type InputProps = ExtractPropTypes<typeof inputProps>\n\nexport const inputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n input: (value: string) => isString(value),\n change: (value: string) => isString(value),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n // NOTE: when autofill by browser, the keydown event is instanceof Event, not KeyboardEvent\n // relative bug report https://github.com/element-plus/element-plus/issues/6665\n keydown: (evt: KeyboardEvent | Event) => evt instanceof Event,\n compositionstart: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n compositionupdate: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n compositionend: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n}\nexport type InputEmits = typeof inputEmits\n\nexport type InputInstance = InstanceType<typeof Input>\n"],"names":[],"mappings":";;;;;;;;;;AASY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI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EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,gBAAgB;AAC7D,EAAE,cAAc,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,gBAAgB;AAC1D;;;;"}
|
|
1
|
+
{"version":3,"file":"input.mjs","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <div\n v-show=\"type !== 'hidden'\"\n v-bind=\"containerAttrs\"\n :class=\"containerKls\"\n :style=\"containerStyle\"\n :role=\"containerRole\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n >\n <!-- input -->\n <template v-if=\"type !== 'textarea'\">\n <!-- prepend slot -->\n <div v-if=\"$slots.prepend\" :class=\"nsInput.be('group', 'prepend')\">\n <slot name=\"prepend\" />\n </div>\n\n <div ref=\"wrapperRef\" :class=\"wrapperKls\">\n <!-- prefix slot -->\n <span v-if=\"$slots.prefix || prefixIcon\" :class=\"nsInput.e('prefix')\">\n <span :class=\"nsInput.e('prefix-inner')\">\n <slot name=\"prefix\" />\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </span>\n </span>\n\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"nsInput.e('inner')\"\n v-bind=\"attrs\"\n :type=\"showPassword ? (passwordVisible ? 'text' : 'password') : type\"\n :disabled=\"inputDisabled\"\n :formatter=\"formatter\"\n :parser=\"parser\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n :aria-label=\"label\"\n :placeholder=\"placeholder\"\n :style=\"inputStyle\"\n :form=\"props.form\"\n :autofocus=\"props.autofocus\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @keydown=\"handleKeydown\"\n />\n\n <!-- suffix slot -->\n <span v-if=\"suffixVisible\" :class=\"nsInput.e('suffix')\">\n <span :class=\"nsInput.e('suffix-inner')\">\n <template\n v-if=\"!showClear || !showPwdVisible || !isWordLimitVisible\"\n >\n <slot name=\"suffix\" />\n <el-icon v-if=\"suffixIcon\" :class=\"nsInput.e('icon')\">\n <component :is=\"suffixIcon\" />\n </el-icon>\n </template>\n <el-icon\n v-if=\"showClear\"\n :class=\"[nsInput.e('icon'), nsInput.e('clear')]\"\n @mousedown.prevent=\"NOOP\"\n @click=\"clear\"\n >\n <circle-close />\n </el-icon>\n <el-icon\n v-if=\"showPwdVisible\"\n :class=\"[nsInput.e('icon'), nsInput.e('password')]\"\n @click=\"handlePasswordVisible\"\n >\n <component :is=\"passwordIcon\" />\n </el-icon>\n <span v-if=\"isWordLimitVisible\" :class=\"nsInput.e('count')\">\n <span :class=\"nsInput.e('count-inner')\">\n {{ textLength }} / {{ attrs.maxlength }}\n </span>\n </span>\n <el-icon\n v-if=\"validateState && validateIcon && needStatusIcon\"\n :class=\"[\n nsInput.e('icon'),\n nsInput.e('validateIcon'),\n nsInput.is('loading', validateState === 'validating'),\n ]\"\n >\n <component :is=\"validateIcon\" />\n </el-icon>\n </span>\n </span>\n </div>\n\n <!-- append slot -->\n <div v-if=\"$slots.append\" :class=\"nsInput.be('group', 'append')\">\n <slot name=\"append\" />\n </div>\n </template>\n\n <!-- textarea -->\n <template v-else>\n <textarea\n :id=\"inputId\"\n ref=\"textarea\"\n :class=\"nsTextarea.e('inner')\"\n v-bind=\"attrs\"\n :tabindex=\"tabindex\"\n :disabled=\"inputDisabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :style=\"textareaStyle\"\n :aria-label=\"label\"\n :placeholder=\"placeholder\"\n :form=\"props.form\"\n :autofocus=\"props.autofocus\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @keydown=\"handleKeydown\"\n />\n <span\n v-if=\"isWordLimitVisible\"\n :style=\"countStyle\"\n :class=\"nsInput.e('count')\"\n >\n {{ textLength }} / {{ attrs.maxlength }}\n </span>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n ref,\n shallowRef,\n toRef,\n useAttrs as useRawAttrs,\n useSlots,\n watch,\n} from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n CircleClose,\n Hide as IconHide,\n View as IconView,\n} from '@element-plus/icons-vue'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport {\n NOOP,\n ValidateComponentsMap,\n debugWarn,\n isClient,\n isKorean,\n isObject,\n} from '@element-plus/utils'\nimport {\n useAttrs,\n useCursor,\n useFocusController,\n useNamespace,\n} from '@element-plus/hooks'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { calcTextareaHeight } from './utils'\nimport { inputEmits, inputProps } from './input'\nimport type { StyleValue } from 'vue'\n\ntype TargetElement = HTMLInputElement | HTMLTextAreaElement\n\ndefineOptions({\n name: 'ElInput',\n inheritAttrs: false,\n})\nconst props = defineProps(inputProps)\nconst emit = defineEmits(inputEmits)\n\nconst rawAttrs = useRawAttrs()\nconst slots = useSlots()\n\nconst containerAttrs = computed(() => {\n const comboBoxAttrs: Record<string, unknown> = {}\n if (props.containerRole === 'combobox') {\n comboBoxAttrs['aria-haspopup'] = rawAttrs['aria-haspopup']\n comboBoxAttrs['aria-owns'] = rawAttrs['aria-owns']\n comboBoxAttrs['aria-expanded'] = rawAttrs['aria-expanded']\n }\n return comboBoxAttrs\n})\n\nconst containerKls = computed(() => [\n props.type === 'textarea' ? nsTextarea.b() : nsInput.b(),\n nsInput.m(inputSize.value),\n nsInput.is('disabled', inputDisabled.value),\n nsInput.is('exceed', inputExceed.value),\n {\n [nsInput.b('group')]: slots.prepend || slots.append,\n [nsInput.bm('group', 'append')]: slots.append,\n [nsInput.bm('group', 'prepend')]: slots.prepend,\n [nsInput.m('prefix')]: slots.prefix || props.prefixIcon,\n [nsInput.m('suffix')]:\n slots.suffix || props.suffixIcon || props.clearable || props.showPassword,\n [nsInput.bm('suffix', 'password-clear')]:\n showClear.value && showPwdVisible.value,\n },\n rawAttrs.class,\n])\n\nconst wrapperKls = computed(() => [\n nsInput.e('wrapper'),\n nsInput.is('focus', isFocused.value),\n])\n\nconst attrs = useAttrs({\n excludeKeys: computed<string[]>(() => {\n return Object.keys(containerAttrs.value)\n }),\n})\nconst { form, formItem } = useFormItem()\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\nconst inputSize = useFormSize()\nconst inputDisabled = useFormDisabled()\nconst nsInput = useNamespace('input')\nconst nsTextarea = useNamespace('textarea')\n\nconst input = shallowRef<HTMLInputElement>()\nconst textarea = shallowRef<HTMLTextAreaElement>()\n\nconst hovering = ref(false)\nconst isComposing = ref(false)\nconst passwordVisible = ref(false)\nconst countStyle = ref<StyleValue>()\nconst textareaCalcStyle = shallowRef(props.inputStyle)\n\nconst _ref = computed(() => input.value || textarea.value)\n\nconst { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(\n _ref,\n {\n afterBlur() {\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch((err) => debugWarn(err))\n }\n },\n }\n)\n\nconst needStatusIcon = computed(() => form?.statusIcon ?? false)\nconst validateState = computed(() => formItem?.validateState || '')\nconst validateIcon = computed(\n () => validateState.value && ValidateComponentsMap[validateState.value]\n)\nconst passwordIcon = computed(() =>\n passwordVisible.value ? IconView : IconHide\n)\nconst containerStyle = computed<StyleValue>(() => [\n rawAttrs.style as StyleValue,\n props.inputStyle,\n])\nconst textareaStyle = computed<StyleValue>(() => [\n props.inputStyle,\n textareaCalcStyle.value,\n { resize: props.resize },\n])\nconst nativeInputValue = computed(() =>\n isNil(props.modelValue) ? '' : String(props.modelValue)\n)\nconst showClear = computed(\n () =>\n props.clearable &&\n !inputDisabled.value &&\n !props.readonly &&\n !!nativeInputValue.value &&\n (isFocused.value || hovering.value)\n)\nconst showPwdVisible = computed(\n () =>\n props.showPassword &&\n !inputDisabled.value &&\n !props.readonly &&\n !!nativeInputValue.value &&\n (!!nativeInputValue.value || isFocused.value)\n)\nconst isWordLimitVisible = computed(\n () =>\n props.showWordLimit &&\n !!attrs.value.maxlength &&\n (props.type === 'text' || props.type === 'textarea') &&\n !inputDisabled.value &&\n !props.readonly &&\n !props.showPassword\n)\nconst textLength = computed(() => nativeInputValue.value.length)\nconst inputExceed = computed(\n () =>\n // show exceed style if length of initial value greater then maxlength\n !!isWordLimitVisible.value &&\n textLength.value > Number(attrs.value.maxlength)\n)\nconst suffixVisible = computed(\n () =>\n !!slots.suffix ||\n !!props.suffixIcon ||\n showClear.value ||\n props.showPassword ||\n isWordLimitVisible.value ||\n (!!validateState.value && needStatusIcon.value)\n)\n\nconst [recordCursor, setCursor] = useCursor(input)\n\nuseResizeObserver(textarea, (entries) => {\n onceInitSizeTextarea()\n if (!isWordLimitVisible.value || props.resize !== 'both') return\n const entry = entries[0]\n const { width } = entry.contentRect\n countStyle.value = {\n /** right: 100% - width + padding(15) + right(6) */\n right: `calc(100% - ${width + 15 + 6}px)`,\n }\n})\n\nconst resizeTextarea = () => {\n const { type, autosize } = props\n\n if (!isClient || type !== 'textarea' || !textarea.value) return\n\n if (autosize) {\n const minRows = isObject(autosize) ? autosize.minRows : undefined\n const maxRows = isObject(autosize) ? autosize.maxRows : undefined\n const textareaStyle = calcTextareaHeight(textarea.value, minRows, maxRows)\n\n // If the scrollbar is displayed, the height of the textarea needs more space than the calculated height.\n // If set textarea height in this case, the scrollbar will not hide.\n // So we need to hide scrollbar first, and reset it in next tick.\n // see https://github.com/element-plus/element-plus/issues/8825\n textareaCalcStyle.value = {\n overflowY: 'hidden',\n ...textareaStyle,\n }\n\n nextTick(() => {\n // NOTE: Force repaint to make sure the style set above is applied.\n textarea.value!.offsetHeight\n textareaCalcStyle.value = textareaStyle\n })\n } else {\n textareaCalcStyle.value = {\n minHeight: calcTextareaHeight(textarea.value).minHeight,\n }\n }\n}\n\nconst createOnceInitResize = (resizeTextarea: () => void) => {\n let isInit = false\n return () => {\n if (isInit || !props.autosize) return\n const isElHidden = textarea.value?.offsetParent === null\n if (!isElHidden) {\n resizeTextarea()\n isInit = true\n }\n }\n}\n// fix: https://github.com/element-plus/element-plus/issues/12074\nconst onceInitSizeTextarea = createOnceInitResize(resizeTextarea)\n\nconst setNativeInputValue = () => {\n const input = _ref.value\n const formatterValue = props.formatter\n ? props.formatter(nativeInputValue.value)\n : nativeInputValue.value\n if (!input || input.value === formatterValue) return\n input.value = formatterValue\n}\n\nconst handleInput = async (event: Event) => {\n recordCursor()\n\n let { value } = event.target as TargetElement\n\n if (props.formatter) {\n value = props.parser ? props.parser(value) : value\n }\n\n // should not emit input during composition\n // see: https://github.com/ElemeFE/element/issues/10516\n if (isComposing.value) return\n\n // hack for https://github.com/ElemeFE/element/issues/8548\n // should remove the following line when we don't support IE\n if (value === nativeInputValue.value) {\n setNativeInputValue()\n return\n }\n\n emit(UPDATE_MODEL_EVENT, value)\n emit('input', value)\n\n // ensure native input value is controlled\n // see: https://github.com/ElemeFE/element/issues/12850\n await nextTick()\n setNativeInputValue()\n setCursor()\n}\n\nconst handleChange = (event: Event) => {\n emit('change', (event.target as TargetElement).value)\n}\n\nconst handleCompositionStart = (event: CompositionEvent) => {\n emit('compositionstart', event)\n isComposing.value = true\n}\n\nconst handleCompositionUpdate = (event: CompositionEvent) => {\n emit('compositionupdate', event)\n const text = (event.target as HTMLInputElement)?.value\n const lastCharacter = text[text.length - 1] || ''\n isComposing.value = !isKorean(lastCharacter)\n}\n\nconst handleCompositionEnd = (event: CompositionEvent) => {\n emit('compositionend', event)\n if (isComposing.value) {\n isComposing.value = false\n handleInput(event)\n }\n}\n\nconst handlePasswordVisible = () => {\n passwordVisible.value = !passwordVisible.value\n focus()\n}\n\nconst focus = async () => {\n // see: https://github.com/ElemeFE/element/issues/18573\n await nextTick()\n _ref.value?.focus()\n}\n\nconst blur = () => _ref.value?.blur()\n\nconst handleMouseLeave = (evt: MouseEvent) => {\n hovering.value = false\n emit('mouseleave', evt)\n}\n\nconst handleMouseEnter = (evt: MouseEvent) => {\n hovering.value = true\n emit('mouseenter', evt)\n}\n\nconst handleKeydown = (evt: KeyboardEvent) => {\n emit('keydown', evt)\n}\n\nconst select = () => {\n _ref.value?.select()\n}\n\nconst clear = () => {\n emit(UPDATE_MODEL_EVENT, '')\n emit('change', '')\n emit('clear')\n emit('input', '')\n}\n\nwatch(\n () => props.modelValue,\n () => {\n nextTick(() => resizeTextarea())\n if (props.validateEvent) {\n formItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n }\n)\n\n// native input value is set explicitly\n// do not use v-model / :value in template\n// see: https://github.com/ElemeFE/element/issues/14521\nwatch(nativeInputValue, () => setNativeInputValue())\n\n// when change between <input> and <textarea>,\n// update DOM dependent value and styles\n// https://github.com/ElemeFE/element/issues/14857\nwatch(\n () => props.type,\n async () => {\n await nextTick()\n setNativeInputValue()\n resizeTextarea()\n }\n)\n\nonMounted(() => {\n if (!props.formatter && props.parser) {\n debugWarn(\n 'ElInput',\n 'If you set the parser, you also need to set the formatter.'\n )\n }\n setNativeInputValue()\n nextTick(resizeTextarea)\n})\n\ndefineExpose({\n /** @description HTML input element */\n input,\n /** @description HTML textarea element */\n textarea,\n /** @description HTML element, input or textarea */\n ref: _ref,\n /** @description style of textarea. */\n textareaStyle,\n\n /** @description from props (used on unit test) */\n autosize: toRef(props, 'autosize'),\n\n /** @description HTML input element native method */\n focus,\n /** @description HTML input element native method */\n blur,\n /** @description HTML input element native method */\n select,\n /** @description clear input value */\n clear,\n /** @description resize textarea. */\n resizeTextarea,\n})\n</script>\n"],"names":["useRawAttrs","useAttrs","IconView","IconHide"],"mappings":";;;;;;;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