@element-plus/nightly 0.0.20260106 → 0.0.20260107
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 +41 -7
- package/dist/index.full.min.js +16 -16
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +41 -7
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix.mjs +1 -1
- package/es/components/alert/src/alert2.mjs +11 -1
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +31 -83
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +83 -31
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/calendar/index.mjs +2 -2
- package/es/components/calendar/src/calendar.mjs +23 -196
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +196 -23
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +134 -62
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +62 -134
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +83 -20
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +20 -83
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +15 -43
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +43 -15
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +80 -10
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +10 -80
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/form/src/form-item.vue.d.ts +4 -0
- package/es/components/form/src/form-item2.mjs +8 -3
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +4 -0
- package/es/components/form/src/form2.mjs +26 -1
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/form/src/types.d.ts +2 -0
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +39 -7
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +7 -39
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +279 -68
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +68 -279
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +23 -23
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +124 -586
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +586 -124
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.mjs +2 -2
- package/es/components/input-number/src/input-number.mjs +414 -73
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +73 -414
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +344 -82
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +82 -344
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +80 -24
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +24 -80
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.mjs +205 -14
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +14 -205
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +2 -2
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +174 -72
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +72 -174
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +149 -15
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +15 -149
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.mjs +7 -69
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +69 -7
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +15 -229
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +229 -15
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +163 -49
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +49 -163
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +65 -120
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +120 -65
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +52 -256
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +256 -52
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +29 -96
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +96 -29
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +728 -152
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +152 -728
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/table-v2/src/components/expand-icon.d.ts +11 -8
- package/es/components/table-v2/src/components/expand-icon.mjs +1 -0
- package/es/components/table-v2/src/components/expand-icon.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +8 -18
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +18 -8
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +20 -66
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +66 -20
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +66 -138
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +138 -66
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +43 -255
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +255 -43
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +2 -1
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +203 -69
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +69 -203
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/tree-select/src/tree-select.mjs +1 -1
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/index.mjs +23 -23
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.js +1 -1
- package/lib/components/alert/src/alert2.js +11 -1
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +31 -83
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +83 -31
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/calendar/index.js +2 -2
- package/lib/components/calendar/src/calendar.js +24 -196
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +196 -24
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +134 -63
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +63 -134
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +83 -21
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +21 -83
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +15 -43
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +43 -15
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +80 -10
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +10 -80
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +4 -0
- package/lib/components/form/src/form-item2.js +8 -3
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +4 -0
- package/lib/components/form/src/form2.js +26 -1
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/form/src/types.d.ts +2 -0
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +39 -7
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +7 -39
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +278 -68
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +68 -278
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +23 -23
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +121 -582
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +582 -121
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.js +2 -2
- package/lib/components/input-number/src/input-number.js +412 -72
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +72 -412
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +342 -81
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +81 -342
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +80 -25
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +25 -80
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.js +205 -15
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +15 -205
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +2 -2
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +173 -73
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +73 -173
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +149 -16
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +16 -149
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.js +7 -69
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +69 -7
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +15 -229
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +229 -15
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +163 -50
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +50 -163
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +66 -120
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +120 -66
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +52 -256
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +256 -52
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +31 -96
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +96 -31
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +727 -152
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +152 -727
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/table-v2/src/components/expand-icon.d.ts +11 -8
- package/lib/components/table-v2/src/components/expand-icon.js +1 -0
- package/lib/components/table-v2/src/components/expand-icon.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +8 -18
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +18 -8
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +20 -66
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +66 -20
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +66 -143
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +143 -66
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +43 -254
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +254 -43
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +2 -1
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +1 -1
- package/lib/components/transfer/src/transfer.js +203 -73
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +73 -203
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/tree-select/src/tree-select.js +1 -1
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/index.js +23 -23
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input2.js","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isString,\n mutable,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { CircleClose } from '@element-plus/icons-vue'\n\nimport type {\n ExtractPropTypes,\n ExtractPublicPropTypes,\n HTMLAttributes,\n StyleValue,\n} from 'vue'\n\nexport type InputModelModifiers = {\n lazy?: boolean\n number?: boolean\n trim?: boolean\n}\nexport type InputAutoSize = { minRows?: number; maxRows?: number } | boolean\n// Some commonly used values for input type\nexport type InputType =\n | 'text'\n | 'textarea'\n | 'number'\n | 'password'\n | 'email'\n | 'search'\n | 'tel'\n | 'url'\n | (string & NonNullable<unknown>)\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: {\n type: Boolean,\n default: undefined,\n },\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 v-model modifiers, reference [Vue modifiers](https://vuejs.org/guide/essentials/forms.html#modifiers)\n */\n modelModifiers: {\n type: definePropType<InputModelModifiers>(Object),\n default: () => ({}),\n },\n /**\n * @description same as `maxlength` in native input\n */\n maxlength: {\n type: [String, Number],\n },\n /**\n * @description same as `minlength` in native input\n */\n minlength: {\n type: [String, Number],\n },\n /**\n * @description type of input, see more in [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types)\n */\n type: {\n type: definePropType<InputType>(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: definePropType<HTMLInputElement['autocomplete']>(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: Boolean,\n /**\n * @description whether to show clear button\n */\n clearable: Boolean,\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description toggleable password input\n */\n showPassword: Boolean,\n /**\n * @description word count\n */\n showWordLimit: Boolean,\n /**\n * @description word count position, valid when `show-word-limit` is true\n */\n wordLimitPosition: {\n type: String,\n values: ['inside', 'outside'],\n default: 'inside',\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 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: Boolean,\n rows: {\n type: Number,\n default: 2,\n },\n ...useAriaProps(['ariaLabel']),\n /**\n * @description native input mode for virtual keyboards\n */\n inputmode: {\n type: definePropType<HTMLAttributes['inputmode']>(String),\n default: undefined,\n },\n /**\n * @description same as `name` in native input\n */\n name: String,\n} as const)\nexport type InputProps = ExtractPropTypes<typeof inputProps>\nexport type InputPropsPublic = ExtractPublicPropTypes<typeof inputProps>\n\nexport const inputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n input: (value: string) => isString(value),\n change: (value: string, evt?: Event) =>\n isString(value) && (evt instanceof Event || evt === undefined),\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"],"names":["buildProps","useSizeProp","definePropType","iconPropType","CircleClose","mutable","useAriaProps","UPDATE_MODEL_EVENT","isString"],"mappings":";;;;;;;;;;;;;AAoCO,MAAM,aAAaA,kBAAW,CAAA;AAAA,EAInC,EAAI,EAAA;AAAA,IACF,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAAC,iBAAA;AAAA,EAIN,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,MAAMC,sBAAmD,CAAA;AAAA,MACvD,MAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA;AAAA,KACD,CAAA;AAAA,IACD,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,cAAgB,EAAA;AAAA,IACd,IAAA,EAAMA,uBAAoC,MAAM,CAAA;AAAA,IAChD,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ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,KAAA,IAAS,GAAQ,KAAA,KAAA,CAAA,CAAA;AAAA,EACtD,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAe,YAAA,UAAA;AAAA,EAC3C,IAAA,EAAM,CAAC,GAAA,KAAoB,GAAe,YAAA,UAAA;AAAA,EAC1C,OAAO,MAAM,IAAA;AAAA,EACb,UAAA,EAAY,CAAC,GAAA,KAAoB,GAAe,YAAA,UAAA;AAAA,EAChD,UAAA,EAAY,CAAC,GAAA,KAAoB,GAAe,YAAA,UAAA;AAAA,EAGhD,OAAA,EAAS,CAAC,GAAA,KAA+B,GAAe,YAAA,KAAA;AAAA,EACxD,gBAAA,EAAkB,CAAC,GAAA,KAA0B,GAAe,YAAA,gBAAA;AAAA,EAC5D,iBAAA,EAAmB,CAAC,GAAA,KAA0B,GAAe,YAAA,gBAAA;AAAA,EAC7D,cAAA,EAAgB,CAAC,GAAA,KAA0B,GAAe,YAAA,gBAAA;AAC5D;;;;;"}
|
|
1
|
+
{"version":3,"file":"input2.js","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n containerKls,\n {\n [nsInput.bm('group', 'append')]: $slots.append,\n [nsInput.bm('group', 'prepend')]: $slots.prepend,\n },\n ]\"\n :style=\"containerStyle\"\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 :name=\"name\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :type=\"showPassword ? (passwordVisible ? 'text' : 'password') : type\"\n :disabled=\"inputDisabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n :aria-label=\"ariaLabel\"\n :placeholder=\"placeholder\"\n :style=\"inputStyle\"\n :form=\"form\"\n :autofocus=\"autofocus\"\n :role=\"containerRole\"\n :inputmode=\"inputmode\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\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 <component :is=\"clearIcon\" />\n </el-icon>\n <el-icon\n v-if=\"showPwdVisible\"\n :class=\"[nsInput.e('icon'), nsInput.e('password')]\"\n @click=\"handlePasswordVisible\"\n @mousedown.prevent=\"NOOP\"\n @mouseup.prevent=\"NOOP\"\n >\n <component :is=\"passwordIcon\" />\n </el-icon>\n <span\n v-if=\"isWordLimitVisible\"\n :class=\"[\n nsInput.e('count'),\n nsInput.is('outside', wordLimitPosition === 'outside'),\n ]\"\n >\n <span :class=\"nsInput.e('count-inner')\">\n {{ textLength }} / {{ 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'), nsInput.is('focus', isFocused)]\"\n v-bind=\"attrs\"\n :name=\"name\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :tabindex=\"tabindex\"\n :disabled=\"inputDisabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :style=\"textareaStyle\"\n :aria-label=\"ariaLabel\"\n :placeholder=\"placeholder\"\n :form=\"form\"\n :autofocus=\"autofocus\"\n :rows=\"rows\"\n :role=\"containerRole\"\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=\"[\n nsInput.e('count'),\n nsInput.is('outside', wordLimitPosition === 'outside'),\n ]\"\n >\n {{ textLength }} / {{ 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 { Hide as IconHide, View as IconView } 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 isObject,\n} from '@element-plus/utils'\nimport {\n useAttrs,\n useComposition,\n useCursor,\n useFocusController,\n useNamespace,\n} from '@element-plus/hooks'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { calcTextareaHeight, looseToNumber } from './utils'\nimport { inputEmits, inputProps } from './input'\n\nimport type { StyleValue } from 'vue'\n\ntype TargetElement = HTMLInputElement | HTMLTextAreaElement\n\nconst COMPONENT_NAME = 'ElInput'\ndefineOptions({\n name: COMPONENT_NAME,\n inheritAttrs: false,\n})\nconst props = defineProps(inputProps)\nconst emit = defineEmits(inputEmits)\n\nconst rawAttrs = useRawAttrs()\nconst attrs = useAttrs()\nconst slots = useSlots()\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.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 [nsInput.b('hidden')]: props.type === 'hidden',\n },\n rawAttrs.class,\n])\n\nconst wrapperKls = computed(() => [\n nsInput.e('wrapper'),\n nsInput.is('focus', isFocused.value),\n])\n\nconst { form: elForm, formItem: elFormItem } = useFormItem()\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: elFormItem,\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 passwordVisible = ref(false)\nconst countStyle = ref<StyleValue>()\nconst textareaCalcStyle = shallowRef(props.inputStyle)\n\nconst _ref = computed(() => input.value || textarea.value)\n\n// wrapperRef for type=\"text\", handleFocus and handleBlur for type=\"textarea\"\nconst { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(\n _ref,\n {\n disabled: inputDisabled,\n afterBlur() {\n if (props.validateEvent) {\n elFormItem?.validate?.('blur').catch((err) => debugWarn(err))\n }\n },\n }\n)\n\nconst needStatusIcon = computed(() => elForm?.statusIcon ?? false)\nconst validateState = computed(() => elFormItem?.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])\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 () => props.showPassword && !inputDisabled.value && !!nativeInputValue.value\n)\nconst isWordLimitVisible = computed(\n () =>\n props.showWordLimit &&\n !!props.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 && textLength.value > Number(props.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)\nconst hasModelModifiers = computed(\n () => !!Object.keys(props.modelModifiers).length\n)\n\nconst [recordCursor, setCursor] = useCursor(input)\n\nuseResizeObserver(textarea, (entries) => {\n onceInitSizeTextarea()\n if (\n !isWordLimitVisible.value ||\n (props.resize !== 'both' && props.resize !== 'horizontal')\n )\n return\n const entry = entries[0]\n const { width } = entry.contentRect\n countStyle.value = {\n /** right: 100% - width + padding(22) - right(10) */\n right: `calc(100% - ${width + 22 - 10}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 setTimeout(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 || props.type === 'file') return\n input.value = formatterValue\n}\n\nconst formatValue = (value: string) => {\n const { trim, number } = props.modelModifiers\n if (trim) {\n value = value.trim()\n }\n if (number) {\n value = `${looseToNumber(value)}`\n }\n if (props.formatter && props.parser) {\n value = props.parser(value)\n }\n return value\n}\n\nconst handleInput = async (event: Event) => {\n // should not emit input during composition\n // see: https://github.com/ElemeFE/element/issues/10516\n if (isComposing.value) return\n\n const { lazy } = props.modelModifiers\n let { value } = event.target as TargetElement\n if (lazy) {\n emit(INPUT_EVENT, value)\n return\n }\n\n value = formatValue(value)\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 (String(value) === nativeInputValue.value) {\n // preserve native features while being compatible with #9501\n if (props.formatter) {\n setNativeInputValue()\n }\n return\n }\n\n recordCursor()\n emit(UPDATE_MODEL_EVENT, value)\n emit(INPUT_EVENT, value)\n\n // ensure native input value is controlled\n // see: https://github.com/ElemeFE/element/issues/12850\n await nextTick()\n\n if ((props.formatter && props.parser) || !hasModelModifiers.value) {\n setNativeInputValue()\n }\n setCursor()\n}\n\nconst handleChange = async (event: Event) => {\n let { value } = event.target as TargetElement\n\n value = formatValue(value)\n if (props.modelModifiers.lazy) {\n emit(UPDATE_MODEL_EVENT, value)\n }\n emit(CHANGE_EVENT, value, event)\n\n await nextTick()\n setNativeInputValue()\n}\n\nconst {\n isComposing,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\n} = useComposition({ emit, afterComposition: handleInput })\n\nconst handlePasswordVisible = () => {\n passwordVisible.value = !passwordVisible.value\n}\n\nconst focus = () => _ref.value?.focus()\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_EVENT, '')\n emit('clear')\n emit(INPUT_EVENT, '')\n}\n\nwatch(\n () => props.modelValue,\n () => {\n nextTick(() => resizeTextarea())\n if (props.validateEvent) {\n elFormItem?.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, (newValue) => {\n if (!_ref.value) {\n return\n }\n const { trim, number } = props.modelModifiers\n const elValue = _ref.value.value\n const displayValue =\n (number || props.type === 'number') && !/^0\\d/.test(elValue)\n ? `${looseToNumber(elValue)}`\n : elValue\n\n if (displayValue === newValue) {\n return\n }\n\n if (document.activeElement === _ref.value && _ref.value.type !== 'range') {\n if (trim && displayValue.trim() === newValue) {\n return\n }\n }\n\n setNativeInputValue()\n})\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 COMPONENT_NAME,\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 is input composing */\n isComposing,\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","useSlots","computed","useFormItem","useFormItemInputId","useFormSize","useFormDisabled","useNamespace","shallowRef","ref","useFocusController","debugWarn","ValidateComponentsMap","IconView","IconHide","isNil","useCursor","useResizeObserver","isClient","isObject","textareaStyle","calcTextareaHeight","nextTick","resizeTextarea","input","looseToNumber","event","INPUT_EVENT","UPDATE_MODEL_EVENT","CHANGE_EVENT","useComposition","watch","onMounted","toRef","_openBlock","_createElementBlock","_normalizeClass","_unref","$slots","_normalizeStyle","_createCommentVNode","type","_Fragment","_renderSlot","_createElementVNode","prefixIcon","_createBlock","ElIcon","_resolveDynamicComponent","_mergeProps","name","minlength","maxlength","showPassword","readonly","autocomplete","tabindex","ariaLabel","placeholder","inputStyle","form","autofocus","containerRole","inputmode","suffixIcon","_withModifiers","NOOP","clearIcon","wordLimitPosition","_toDisplayString","rows"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAkNA,MAAM,cAAiB,GAAA,SAAA,CAAA;;;;;;;;;;AAKvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAA,MAAM,WAAWA,YAAY,EAAA,CAAA;AAC7B,IAAA,MAAM,QAAQC,cAAS,EAAA,CAAA;AACvB,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEjB,IAAA,MAAA,YAAA,GAAeC,aAAS,MAAM;AAAA,MAClC,MAAM,IAAS,KAAA,UAAA,GAAa,WAAW,CAAE,EAAA,GAAI,QAAQ,CAAE,EAAA;AAAA,MACvD,OAAA,CAAQ,CAAE,CAAA,SAAA,CAAU,KAAK,CAAA;AAAA,MACzB,OAAQ,CAAA,EAAA,CAAG,UAAY,EAAA,aAAA,CAAc,KAAK,CAAA;AAAA,MAC1C,OAAQ,CAAA,EAAA,CAAG,QAAU,EAAA,WAAA,CAAY,KAAK,CAAA;AAAA,MACtC;AAAA,QACE,CAAC,OAAQ,CAAA,CAAA,CAAE,OAAO,CAAI,GAAA,KAAA,CAAM,WAAW,KAAM,CAAA,MAAA;AAAA,QAC7C,CAAC,OAAQ,CAAA,CAAA,CAAE,QAAQ,CAAI,GAAA,KAAA,CAAM,UAAU,KAAM,CAAA,UAAA;AAAA,QAC7C,CAAC,OAAQ,CAAA,CAAA,CAAE,QAAQ,CAAA,GACjB,KAAM,CAAA,MAAA,IAAU,KAAM,CAAA,UAAA,IAAc,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AAA;AAAA,gBAAA,CAAA;AAAA,eAAA,IAAAZ,sBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA;;;;;;;;;;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var inputNumber$1 = require('./src/input-
|
|
6
|
-
var inputNumber = require('./src/input-
|
|
5
|
+
var inputNumber$1 = require('./src/input-number.js');
|
|
6
|
+
var inputNumber = require('./src/input-number2.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElInputNumber = install.withInstall(inputNumber$1["default"]);
|
|
@@ -2,83 +2,423 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var vue = require('vue');
|
|
5
6
|
var lodashUnified = require('lodash-unified');
|
|
6
|
-
var
|
|
7
|
-
var index = require('
|
|
7
|
+
var index$4 = require('../../input/index.js');
|
|
8
|
+
var index$2 = require('../../icon/index.js');
|
|
9
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
10
|
+
var inputNumber = require('./input-number2.js');
|
|
11
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
12
|
+
var index$3 = require('../../../directives/repeat-click/index.js');
|
|
13
|
+
var event$1 = require('../../../utils/dom/event.js');
|
|
14
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
15
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
16
|
+
var useFormItem = require('../../form/src/hooks/use-form-item.js');
|
|
8
17
|
var types = require('../../../utils/types.js');
|
|
9
|
-
var
|
|
18
|
+
var error = require('../../../utils/error.js');
|
|
19
|
+
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
10
20
|
var event = require('../../../constants/event.js');
|
|
21
|
+
var aria = require('../../../constants/aria.js');
|
|
22
|
+
var shared = require('@vue/shared');
|
|
11
23
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
const _hoisted_1 = ["aria-label"];
|
|
25
|
+
const _hoisted_2 = ["aria-label"];
|
|
26
|
+
const _sfc_main = vue.defineComponent({
|
|
27
|
+
...{
|
|
28
|
+
name: "ElInputNumber"
|
|
16
29
|
},
|
|
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
|
-
|
|
30
|
+
__name: "input-number",
|
|
31
|
+
props: inputNumber.inputNumberProps,
|
|
32
|
+
emits: inputNumber.inputNumberEmits,
|
|
33
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const emit = __emit;
|
|
36
|
+
const { t } = index.useLocale();
|
|
37
|
+
const ns = index$1.useNamespace("input-number");
|
|
38
|
+
const input = vue.ref();
|
|
39
|
+
const data = vue.reactive({
|
|
40
|
+
currentValue: props.modelValue,
|
|
41
|
+
userInput: null
|
|
42
|
+
});
|
|
43
|
+
const { formItem } = useFormItem.useFormItem();
|
|
44
|
+
const minDisabled = vue.computed(
|
|
45
|
+
() => types.isNumber(props.modelValue) && props.modelValue <= props.min
|
|
46
|
+
);
|
|
47
|
+
const maxDisabled = vue.computed(
|
|
48
|
+
() => types.isNumber(props.modelValue) && props.modelValue >= props.max
|
|
49
|
+
);
|
|
50
|
+
const numPrecision = vue.computed(() => {
|
|
51
|
+
const stepPrecision = getPrecision(props.step);
|
|
52
|
+
if (!types.isUndefined(props.precision)) {
|
|
53
|
+
if (stepPrecision > props.precision) {
|
|
54
|
+
error.debugWarn(
|
|
55
|
+
"InputNumber",
|
|
56
|
+
"precision should not be less than the decimal places of step"
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
return props.precision;
|
|
60
|
+
} else {
|
|
61
|
+
return Math.max(getPrecision(props.modelValue), stepPrecision);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
const controlsAtRight = vue.computed(() => {
|
|
65
|
+
return props.controls && props.controlsPosition === "right";
|
|
66
|
+
});
|
|
67
|
+
const inputNumberSize = useFormCommonProps.useFormSize();
|
|
68
|
+
const inputNumberDisabled = useFormCommonProps.useFormDisabled();
|
|
69
|
+
const displayValue = vue.computed(() => {
|
|
70
|
+
if (data.userInput !== null) {
|
|
71
|
+
return data.userInput;
|
|
72
|
+
}
|
|
73
|
+
let currentValue = data.currentValue;
|
|
74
|
+
if (lodashUnified.isNil(currentValue))
|
|
75
|
+
return "";
|
|
76
|
+
if (types.isNumber(currentValue)) {
|
|
77
|
+
if (Number.isNaN(currentValue))
|
|
78
|
+
return "";
|
|
79
|
+
if (!types.isUndefined(props.precision)) {
|
|
80
|
+
currentValue = currentValue.toFixed(props.precision);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return currentValue;
|
|
84
|
+
});
|
|
85
|
+
const toPrecision = (num, pre) => {
|
|
86
|
+
if (types.isUndefined(pre))
|
|
87
|
+
pre = numPrecision.value;
|
|
88
|
+
if (pre === 0)
|
|
89
|
+
return Math.round(num);
|
|
90
|
+
let snum = String(num);
|
|
91
|
+
const pointPos = snum.indexOf(".");
|
|
92
|
+
if (pointPos === -1)
|
|
93
|
+
return num;
|
|
94
|
+
const nums = snum.replace(".", "").split("");
|
|
95
|
+
const datum = nums[pointPos + pre];
|
|
96
|
+
if (!datum)
|
|
97
|
+
return num;
|
|
98
|
+
const length = snum.length;
|
|
99
|
+
if (snum.charAt(length - 1) === "5") {
|
|
100
|
+
snum = `${snum.slice(0, Math.max(0, length - 1))}6`;
|
|
101
|
+
}
|
|
102
|
+
return Number.parseFloat(Number(snum).toFixed(pre));
|
|
103
|
+
};
|
|
104
|
+
const getPrecision = (value) => {
|
|
105
|
+
if (lodashUnified.isNil(value))
|
|
106
|
+
return 0;
|
|
107
|
+
const valueString = value.toString();
|
|
108
|
+
const dotPosition = valueString.indexOf(".");
|
|
109
|
+
let precision = 0;
|
|
110
|
+
if (dotPosition !== -1) {
|
|
111
|
+
precision = valueString.length - dotPosition - 1;
|
|
112
|
+
}
|
|
113
|
+
return precision;
|
|
114
|
+
};
|
|
115
|
+
const ensurePrecision = (val, coefficient = 1) => {
|
|
116
|
+
if (!types.isNumber(val))
|
|
117
|
+
return data.currentValue;
|
|
118
|
+
if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
|
|
119
|
+
error.debugWarn(
|
|
120
|
+
"InputNumber",
|
|
121
|
+
"The value has reached the maximum safe integer limit."
|
|
122
|
+
);
|
|
123
|
+
return val;
|
|
124
|
+
} else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
|
|
125
|
+
error.debugWarn(
|
|
126
|
+
"InputNumber",
|
|
127
|
+
"The value has reached the minimum safe integer limit."
|
|
128
|
+
);
|
|
129
|
+
return val;
|
|
130
|
+
}
|
|
131
|
+
return toPrecision(val + props.step * coefficient);
|
|
132
|
+
};
|
|
133
|
+
const handleKeydown = (event) => {
|
|
134
|
+
const code = event$1.getEventCode(event);
|
|
135
|
+
const key = event$1.getEventKey(event);
|
|
136
|
+
if (props.disabledScientific && ["e", "E"].includes(key)) {
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
switch (code) {
|
|
141
|
+
case aria.EVENT_CODE.up: {
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
increase();
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
case aria.EVENT_CODE.down: {
|
|
147
|
+
event.preventDefault();
|
|
148
|
+
decrease();
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const increase = () => {
|
|
154
|
+
if (props.readonly || inputNumberDisabled.value || maxDisabled.value)
|
|
155
|
+
return;
|
|
156
|
+
const value = Number(displayValue.value) || 0;
|
|
157
|
+
const newVal = ensurePrecision(value);
|
|
158
|
+
setCurrentValue(newVal);
|
|
159
|
+
emit(event.INPUT_EVENT, data.currentValue);
|
|
160
|
+
setCurrentValueToModelValue();
|
|
161
|
+
};
|
|
162
|
+
const decrease = () => {
|
|
163
|
+
if (props.readonly || inputNumberDisabled.value || minDisabled.value)
|
|
164
|
+
return;
|
|
165
|
+
const value = Number(displayValue.value) || 0;
|
|
166
|
+
const newVal = ensurePrecision(value, -1);
|
|
167
|
+
setCurrentValue(newVal);
|
|
168
|
+
emit(event.INPUT_EVENT, data.currentValue);
|
|
169
|
+
setCurrentValueToModelValue();
|
|
170
|
+
};
|
|
171
|
+
const verifyValue = (value, update) => {
|
|
172
|
+
const { max, min, step, precision, stepStrictly, valueOnClear } = props;
|
|
173
|
+
if (max < min) {
|
|
174
|
+
error.throwError("InputNumber", "min should not be greater than max.");
|
|
175
|
+
}
|
|
176
|
+
let newVal = Number(value);
|
|
177
|
+
if (lodashUnified.isNil(value) || Number.isNaN(newVal)) {
|
|
178
|
+
return null;
|
|
179
|
+
}
|
|
180
|
+
if (value === "") {
|
|
181
|
+
if (valueOnClear === null) {
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
newVal = shared.isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
|
185
|
+
}
|
|
186
|
+
if (stepStrictly) {
|
|
187
|
+
newVal = toPrecision(
|
|
188
|
+
Math.round(toPrecision(newVal / step)) * step,
|
|
189
|
+
precision
|
|
190
|
+
);
|
|
191
|
+
if (newVal !== value) {
|
|
192
|
+
update && emit(event.UPDATE_MODEL_EVENT, newVal);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if (!types.isUndefined(precision)) {
|
|
196
|
+
newVal = toPrecision(newVal, precision);
|
|
197
|
+
}
|
|
198
|
+
if (newVal > max || newVal < min) {
|
|
199
|
+
newVal = newVal > max ? max : min;
|
|
200
|
+
update && emit(event.UPDATE_MODEL_EVENT, newVal);
|
|
201
|
+
}
|
|
202
|
+
return newVal;
|
|
203
|
+
};
|
|
204
|
+
const setCurrentValue = (value, emitChange = true) => {
|
|
205
|
+
var _a;
|
|
206
|
+
const oldVal = data.currentValue;
|
|
207
|
+
const newVal = verifyValue(value);
|
|
208
|
+
if (!emitChange) {
|
|
209
|
+
emit(event.UPDATE_MODEL_EVENT, newVal);
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
data.userInput = null;
|
|
213
|
+
if (oldVal === newVal && value)
|
|
214
|
+
return;
|
|
215
|
+
emit(event.UPDATE_MODEL_EVENT, newVal);
|
|
216
|
+
if (oldVal !== newVal) {
|
|
217
|
+
emit(event.CHANGE_EVENT, newVal, oldVal);
|
|
218
|
+
}
|
|
219
|
+
if (props.validateEvent) {
|
|
220
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => error.debugWarn(err));
|
|
221
|
+
}
|
|
222
|
+
data.currentValue = newVal;
|
|
223
|
+
};
|
|
224
|
+
const handleInput = (value) => {
|
|
225
|
+
data.userInput = value;
|
|
226
|
+
const newVal = value === "" ? null : Number(value);
|
|
227
|
+
emit(event.INPUT_EVENT, newVal);
|
|
228
|
+
setCurrentValue(newVal, false);
|
|
229
|
+
};
|
|
230
|
+
const handleInputChange = (value) => {
|
|
231
|
+
const newVal = value !== "" ? Number(value) : "";
|
|
232
|
+
if (types.isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
|
|
233
|
+
setCurrentValue(newVal);
|
|
234
|
+
}
|
|
235
|
+
setCurrentValueToModelValue();
|
|
236
|
+
data.userInput = null;
|
|
237
|
+
};
|
|
238
|
+
const focus = () => {
|
|
239
|
+
var _a, _b;
|
|
240
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
241
|
+
};
|
|
242
|
+
const blur = () => {
|
|
243
|
+
var _a, _b;
|
|
244
|
+
(_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
245
|
+
};
|
|
246
|
+
const handleFocus = (event) => {
|
|
247
|
+
emit("focus", event);
|
|
248
|
+
};
|
|
249
|
+
const handleBlur = (event) => {
|
|
250
|
+
var _a, _b;
|
|
251
|
+
data.userInput = null;
|
|
252
|
+
if (data.currentValue === null && ((_a = input.value) == null ? void 0 : _a.input)) {
|
|
253
|
+
input.value.input.value = "";
|
|
254
|
+
}
|
|
255
|
+
emit("blur", event);
|
|
256
|
+
if (props.validateEvent) {
|
|
257
|
+
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => error.debugWarn(err));
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
const setCurrentValueToModelValue = () => {
|
|
261
|
+
if (data.currentValue !== props.modelValue) {
|
|
262
|
+
data.currentValue = props.modelValue;
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
const handleWheel = (e) => {
|
|
266
|
+
if (document.activeElement === e.target)
|
|
267
|
+
e.preventDefault();
|
|
268
|
+
};
|
|
269
|
+
vue.watch(
|
|
270
|
+
() => props.modelValue,
|
|
271
|
+
(value, oldValue) => {
|
|
272
|
+
const newValue = verifyValue(value, true);
|
|
273
|
+
if (data.userInput === null && newValue !== oldValue) {
|
|
274
|
+
data.currentValue = newValue;
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{ immediate: true }
|
|
278
|
+
);
|
|
279
|
+
vue.watch(
|
|
280
|
+
() => props.precision,
|
|
281
|
+
() => {
|
|
282
|
+
data.currentValue = verifyValue(props.modelValue);
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
vue.onMounted(() => {
|
|
286
|
+
var _a;
|
|
287
|
+
const { min, max, modelValue } = props;
|
|
288
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
289
|
+
innerInput.setAttribute("role", "spinbutton");
|
|
290
|
+
if (Number.isFinite(max)) {
|
|
291
|
+
innerInput.setAttribute("aria-valuemax", String(max));
|
|
292
|
+
} else {
|
|
293
|
+
innerInput.removeAttribute("aria-valuemax");
|
|
294
|
+
}
|
|
295
|
+
if (Number.isFinite(min)) {
|
|
296
|
+
innerInput.setAttribute("aria-valuemin", String(min));
|
|
297
|
+
} else {
|
|
298
|
+
innerInput.removeAttribute("aria-valuemin");
|
|
299
|
+
}
|
|
300
|
+
innerInput.setAttribute(
|
|
301
|
+
"aria-valuenow",
|
|
302
|
+
data.currentValue || data.currentValue === 0 ? String(data.currentValue) : ""
|
|
303
|
+
);
|
|
304
|
+
innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
|
|
305
|
+
if (!types.isNumber(modelValue) && modelValue != null) {
|
|
306
|
+
let val = Number(modelValue);
|
|
307
|
+
if (Number.isNaN(val)) {
|
|
308
|
+
val = null;
|
|
309
|
+
}
|
|
310
|
+
emit(event.UPDATE_MODEL_EVENT, val);
|
|
311
|
+
}
|
|
312
|
+
innerInput.addEventListener("wheel", handleWheel, { passive: false });
|
|
313
|
+
});
|
|
314
|
+
vue.onUpdated(() => {
|
|
315
|
+
var _a, _b;
|
|
316
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
317
|
+
innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${(_b = data.currentValue) != null ? _b : ""}`);
|
|
318
|
+
});
|
|
319
|
+
__expose({
|
|
320
|
+
focus,
|
|
321
|
+
blur
|
|
322
|
+
});
|
|
323
|
+
return (_ctx, _cache) => {
|
|
324
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
325
|
+
"div",
|
|
326
|
+
{
|
|
327
|
+
class: vue.normalizeClass([
|
|
328
|
+
vue.unref(ns).b(),
|
|
329
|
+
vue.unref(ns).m(vue.unref(inputNumberSize)),
|
|
330
|
+
vue.unref(ns).is("disabled", vue.unref(inputNumberDisabled)),
|
|
331
|
+
vue.unref(ns).is("without-controls", !_ctx.controls),
|
|
332
|
+
vue.unref(ns).is("controls-right", controlsAtRight.value),
|
|
333
|
+
vue.unref(ns).is(_ctx.align, !!_ctx.align)
|
|
334
|
+
]),
|
|
335
|
+
onDragstart: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
336
|
+
}, ["prevent"]))
|
|
337
|
+
},
|
|
338
|
+
[
|
|
339
|
+
_ctx.controls ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
|
|
340
|
+
key: 0,
|
|
341
|
+
role: "button",
|
|
342
|
+
"aria-label": vue.unref(t)("el.inputNumber.decrease"),
|
|
343
|
+
class: vue.normalizeClass([vue.unref(ns).e("decrease"), vue.unref(ns).is("disabled", minDisabled.value)]),
|
|
344
|
+
onKeydown: vue.withKeys(decrease, ["enter"])
|
|
345
|
+
}, [
|
|
346
|
+
vue.renderSlot(_ctx.$slots, "decrease-icon", {}, () => [
|
|
347
|
+
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
|
348
|
+
default: vue.withCtx(() => [
|
|
349
|
+
controlsAtRight.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.ArrowDown), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.Minus), { key: 1 }))
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
})
|
|
353
|
+
])
|
|
354
|
+
], 42, _hoisted_1)), [
|
|
355
|
+
[vue.unref(index$3.vRepeatClick), decrease]
|
|
356
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
357
|
+
_ctx.controls ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
|
|
358
|
+
key: 1,
|
|
359
|
+
role: "button",
|
|
360
|
+
"aria-label": vue.unref(t)("el.inputNumber.increase"),
|
|
361
|
+
class: vue.normalizeClass([vue.unref(ns).e("increase"), vue.unref(ns).is("disabled", maxDisabled.value)]),
|
|
362
|
+
onKeydown: vue.withKeys(increase, ["enter"])
|
|
363
|
+
}, [
|
|
364
|
+
vue.renderSlot(_ctx.$slots, "increase-icon", {}, () => [
|
|
365
|
+
vue.createVNode(vue.unref(index$2.ElIcon), null, {
|
|
366
|
+
default: vue.withCtx(() => [
|
|
367
|
+
controlsAtRight.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.ArrowUp), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.Plus), { key: 1 }))
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
})
|
|
371
|
+
])
|
|
372
|
+
], 42, _hoisted_2)), [
|
|
373
|
+
[vue.unref(index$3.vRepeatClick), increase]
|
|
374
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
375
|
+
vue.createVNode(vue.unref(index$4.ElInput), {
|
|
376
|
+
id: _ctx.id,
|
|
377
|
+
ref_key: "input",
|
|
378
|
+
ref: input,
|
|
379
|
+
type: "number",
|
|
380
|
+
step: _ctx.step,
|
|
381
|
+
"model-value": displayValue.value,
|
|
382
|
+
placeholder: _ctx.placeholder,
|
|
383
|
+
readonly: _ctx.readonly,
|
|
384
|
+
disabled: vue.unref(inputNumberDisabled),
|
|
385
|
+
size: vue.unref(inputNumberSize),
|
|
386
|
+
max: _ctx.max,
|
|
387
|
+
min: _ctx.min,
|
|
388
|
+
name: _ctx.name,
|
|
389
|
+
"aria-label": _ctx.ariaLabel,
|
|
390
|
+
"validate-event": false,
|
|
391
|
+
inputmode: _ctx.inputmode,
|
|
392
|
+
onKeydown: handleKeydown,
|
|
393
|
+
onBlur: handleBlur,
|
|
394
|
+
onFocus: handleFocus,
|
|
395
|
+
onInput: handleInput,
|
|
396
|
+
onChange: handleInputChange
|
|
397
|
+
}, vue.createSlots({
|
|
398
|
+
_: 2
|
|
399
|
+
}, [
|
|
400
|
+
_ctx.$slots.prefix ? {
|
|
401
|
+
name: "prefix",
|
|
402
|
+
fn: vue.withCtx(() => [
|
|
403
|
+
vue.renderSlot(_ctx.$slots, "prefix")
|
|
404
|
+
]),
|
|
405
|
+
key: "0"
|
|
406
|
+
} : void 0,
|
|
407
|
+
_ctx.$slots.suffix ? {
|
|
408
|
+
name: "suffix",
|
|
409
|
+
fn: vue.withCtx(() => [
|
|
410
|
+
vue.renderSlot(_ctx.$slots, "suffix")
|
|
411
|
+
]),
|
|
412
|
+
key: "1"
|
|
413
|
+
} : void 0
|
|
414
|
+
]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "inputmode"])
|
|
415
|
+
],
|
|
416
|
+
34
|
|
417
|
+
);
|
|
418
|
+
};
|
|
419
|
+
}
|
|
73
420
|
});
|
|
74
|
-
|
|
75
|
-
[event.CHANGE_EVENT]: (cur, prev) => prev !== cur,
|
|
76
|
-
blur: (e) => e instanceof FocusEvent,
|
|
77
|
-
focus: (e) => e instanceof FocusEvent,
|
|
78
|
-
[event.INPUT_EVENT]: (val) => types.isNumber(val) || lodashUnified.isNil(val),
|
|
79
|
-
[event.UPDATE_MODEL_EVENT]: (val) => types.isNumber(val) || lodashUnified.isNil(val)
|
|
80
|
-
};
|
|
421
|
+
var InputNumber = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);
|
|
81
422
|
|
|
82
|
-
exports
|
|
83
|
-
exports.inputNumberProps = inputNumberProps;
|
|
423
|
+
exports["default"] = InputNumber;
|
|
84
424
|
//# sourceMappingURL=input-number.js.map
|