@element-plus/nightly 0.0.20260107 → 0.0.20260108
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +42 -17
- package/dist/index.full.min.js +14 -14
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +42 -18
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +83 -31
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +31 -83
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +73 -22
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +22 -73
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +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 +62 -134
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +134 -62
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +65 -42
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +42 -65
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +118 -17
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +17 -118
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +20 -83
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +83 -20
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +6 -4
- package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +12 -4
- package/es/components/dropdown/src/dropdown-item.mjs.map +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +10 -80
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +80 -10
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +7 -39
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +39 -7
- 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 +68 -279
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +279 -68
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +25 -24
- package/es/components/index.mjs.map +1 -1
- package/es/components/input-number/index.mjs +2 -2
- package/es/components/input-number/src/input-number.mjs +73 -414
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +414 -73
- 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 +82 -344
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +344 -82
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +24 -80
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +80 -24
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.mjs +14 -205
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +205 -14
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +72 -174
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +174 -72
- 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 +15 -149
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +149 -15
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +27 -6
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +6 -27
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +49 -163
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +163 -49
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +7 -38
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +38 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +85 -295
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +295 -85
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +56 -244
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +244 -56
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +152 -728
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +728 -152
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +17 -67
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +67 -17
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +26 -131
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +131 -26
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +1 -0
- package/es/components/timeline/index.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +11 -2
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/timeline/src/timeline.d.ts +14 -4
- package/es/components/timeline/src/timeline.mjs +15 -7
- package/es/components/timeline/src/timeline.mjs.map +1 -1
- package/es/components/timeline/src/tokens.d.ts +6 -0
- package/es/components/timeline/src/tokens.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +1 -1
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +20 -173
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +173 -20
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.mjs +69 -203
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +203 -69
- 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/index.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +206 -27
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +27 -206
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +25 -24
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +83 -31
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +31 -83
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +73 -23
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +23 -73
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +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 +63 -134
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +134 -63
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +65 -42
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +42 -65
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +118 -17
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +17 -118
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +21 -83
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +83 -21
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +5 -3
- package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +11 -3
- package/lib/components/dropdown/src/dropdown-item.js.map +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +10 -80
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +80 -10
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +7 -39
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +39 -7
- 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 +68 -278
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +278 -68
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +26 -24
- package/lib/components/index.js.map +1 -1
- package/lib/components/input-number/index.js +2 -2
- package/lib/components/input-number/src/input-number.js +72 -412
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +412 -72
- 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 +81 -342
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +342 -81
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +25 -80
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +80 -25
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.js +15 -205
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +205 -15
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +73 -173
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +173 -73
- 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 +16 -149
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +149 -16
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +27 -6
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +6 -27
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +50 -163
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +163 -50
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +8 -38
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +38 -8
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +85 -294
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +294 -85
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +57 -244
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +244 -57
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +152 -727
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +727 -152
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +17 -67
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +67 -17
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +27 -131
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +131 -27
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/timeline/index.js +1 -0
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +10 -1
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/timeline/src/timeline.d.ts +14 -4
- package/lib/components/timeline/src/timeline.js +14 -5
- package/lib/components/timeline/src/timeline.js.map +1 -1
- package/lib/components/timeline/src/tokens.d.ts +6 -0
- package/lib/components/timeline/src/tokens.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tooltip/src/tooltip2.js +1 -1
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +22 -173
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +173 -22
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer.js +73 -203
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +203 -73
- 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/index.js +1 -1
- package/lib/components/upload/src/upload-list.js +206 -28
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +28 -206
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +26 -24
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-timeline-item.css +1 -1
- package/theme-chalk/el-timeline.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/timeline-item.scss +55 -4
- package/theme-chalk/src/timeline.scss +55 -0
- package/web-types.json +1 -1
|
@@ -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-number.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-number2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number2.js","sources":["../../../../../../packages/components/input-number/src/input-number.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\n\nimport type {\n ExtractPropTypes,\n ExtractPublicPropTypes,\n HTMLAttributes,\n} from 'vue'\nimport type InputNumber from './input-number.vue'\n\nexport const inputNumberProps = buildProps({\n /**\n * @description same as `id` in native input\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description incremental step\n */\n step: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether input value can only be multiple of step\n */\n stepStrictly: Boolean,\n /**\n * @description the maximum allowed value\n */\n max: {\n type: Number,\n default: Number.MAX_SAFE_INTEGER,\n },\n /**\n * @description the minimum allowed value\n */\n min: {\n type: Number,\n default: Number.MIN_SAFE_INTEGER,\n },\n /**\n * @description binding value\n */\n modelValue: {\n type: [Number, null],\n },\n /**\n * @description same as `readonly` in native input\n */\n readonly: Boolean,\n /**\n * @description whether the component is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description size of the component\n */\n size: useSizeProp,\n /**\n * @description whether to enable the control buttons\n */\n controls: {\n type: Boolean,\n default: true,\n },\n /**\n * @description position of the control buttons\n */\n controlsPosition: {\n type: String,\n default: '',\n values: ['', 'right'],\n },\n /**\n * @description value should be set when input box is cleared\n */\n valueOnClear: {\n type: definePropType<'min' | 'max' | number | null>([String, Number, null]),\n validator: (val: 'min' | 'max' | number | null) =>\n val === null || isNumber(val) || ['min', 'max'].includes(val),\n default: null,\n },\n /**\n * @description same as `name` in native input\n */\n name: String,\n /**\n * @description same as `placeholder` in native input\n */\n placeholder: String,\n /**\n * @description precision of input value\n */\n precision: {\n type: Number,\n validator: (val: number) =>\n val >= 0 && val === Number.parseInt(`${val}`, 10),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\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 alignment for the inner input text\n */\n align: {\n type: definePropType<'left' | 'right' | 'center'>(String),\n default: 'center',\n },\n /**\n * @description whether to disable scientific notation input (e.g. 'e', 'E')\n */\n disabledScientific: Boolean,\n} as const)\nexport type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>\nexport type InputNumberPropsPublic = ExtractPublicPropTypes<\n typeof inputNumberProps\n>\n\nexport const inputNumberEmits = {\n [CHANGE_EVENT]: (cur: number | undefined, prev: number | undefined) =>\n prev !== cur,\n blur: (e: FocusEvent) => e instanceof FocusEvent,\n focus: (e: FocusEvent) => e instanceof FocusEvent,\n [INPUT_EVENT]: (val: number | null | undefined) =>\n isNumber(val) || isNil(val),\n [UPDATE_MODEL_EVENT]: (val: number | undefined) =>\n isNumber(val) || isNil(val),\n}\nexport type InputNumberEmits = typeof inputNumberEmits\n\nexport type InputNumberInstance = InstanceType<typeof InputNumber> & unknown\n"],"names":["buildProps","useSizeProp","definePropType","isNumber","useAriaProps","CHANGE_EVENT","INPUT_EVENT","isNil","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;;;;;AAgBO,MAAM,mBAAmBA,kBAAW,CAAA;AAAA,EAIzC,EAAI,EAAA;AAAA,IACF,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,GACX;AAAA,EAIA,YAAc,EAAA,OAAA;AAAA,EAId,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,SAAS,MAAO,CAAA,gBAAA;AAAA,GAClB;AAAA,EAIA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,SAAS,MAAO,CAAA,gBAAA;AAAA,GAClB;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,CAAC,MAAA,EAAQ,IAAI,CAAA;AAAA,GACrB;AAAA,EAIA,QAAU,E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IA,KAAO,EAAA;AAAA,IACL,IAAA,EAAMA,uBAA4C,MAAM,CAAA;AAAA,IACxD,OAAS,EAAA,QAAA;AAAA,GACX;AAAA,EAIA,kBAAoB,EAAA,OAAA;AACtB,CAAU,EAAA;AAMH,MAAM,gBAAmB,GAAA;AAAA,EAC9B,CAACG,kBAAA,GAAe,CAAC,GAAA,EAAyB,SACxC,IAAS,KAAA,GAAA;AAAA,EACX,IAAA,EAAM,CAAC,CAAA,KAAkB,CAAa,YAAA,UAAA;AAAA,EACtC,KAAA,EAAO,CAAC,CAAA,KAAkB,CAAa,YAAA,UAAA;AAAA,EACvC,CAACC,oBAAc,CAAC,GAAA,KACdH,eAAS,GAAG,CAAA,IAAKI,oBAAM,GAAG,CAAA;AAAA,EAC5B,CAACC,2BAAqB,CAAC,GAAA,KACrBL,eAAS,GAAG,CAAA,IAAKI,oBAAM,GAAG,CAAA;AAC9B;;;;;"}
|
|
1
|
+
{"version":3,"file":"input-number2.js","sources":["../../../../../../packages/components/input-number/src/input-number.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.m(inputNumberSize),\n ns.is('disabled', inputNumberDisabled),\n ns.is('without-controls', !controls),\n ns.is('controls-right', controlsAtRight),\n ns.is(align, !!align),\n ]\"\n @dragstart.prevent\n >\n <span\n v-if=\"controls\"\n v-repeat-click=\"decrease\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.decrease')\"\n :class=\"[ns.e('decrease'), ns.is('disabled', minDisabled)]\"\n @keydown.enter=\"decrease\"\n >\n <slot name=\"decrease-icon\">\n <el-icon>\n <arrow-down v-if=\"controlsAtRight\" />\n <minus v-else />\n </el-icon>\n </slot>\n </span>\n <span\n v-if=\"controls\"\n v-repeat-click=\"increase\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.increase')\"\n :class=\"[ns.e('increase'), ns.is('disabled', maxDisabled)]\"\n @keydown.enter=\"increase\"\n >\n <slot name=\"increase-icon\">\n <el-icon>\n <arrow-up v-if=\"controlsAtRight\" />\n <plus v-else />\n </el-icon>\n </slot>\n </span>\n <el-input\n :id=\"id\"\n ref=\"input\"\n type=\"number\"\n :step=\"step\"\n :model-value=\"displayValue\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :disabled=\"inputNumberDisabled\"\n :size=\"inputNumberSize\"\n :max=\"max\"\n :min=\"min\"\n :name=\"name\"\n :aria-label=\"ariaLabel\"\n :validate-event=\"false\"\n :inputmode=\"inputmode\"\n @keydown=\"handleKeydown\"\n @blur=\"handleBlur\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @change=\"handleInputChange\"\n >\n <template v-if=\"$slots.prefix\" #prefix>\n <slot name=\"prefix\" />\n </template>\n <template v-if=\"$slots.suffix\" #suffix>\n <slot name=\"suffix\" />\n </template>\n </el-input>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, onUpdated, reactive, ref, watch } from 'vue'\nimport { isNil } from 'lodash-unified'\nimport { ElInput } from '@element-plus/components/input'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormSize,\n} from '@element-plus/components/form'\nimport { vRepeatClick } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport {\n debugWarn,\n getEventCode,\n getEventKey,\n isNumber,\n isString,\n isUndefined,\n throwError,\n} from '@element-plus/utils'\nimport { ArrowDown, ArrowUp, Minus, Plus } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { inputNumberEmits, inputNumberProps } from './input-number'\n\nimport type { InputInstance } from '@element-plus/components/input'\n\ndefineOptions({\n name: 'ElInputNumber',\n})\n\nconst props = defineProps(inputNumberProps)\nconst emit = defineEmits(inputNumberEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('input-number')\nconst input = ref<InputInstance>()\n\ninterface Data {\n currentValue: number | null | undefined\n userInput: null | number | string\n}\nconst data = reactive<Data>({\n currentValue: props.modelValue,\n userInput: null,\n})\n\nconst { formItem } = useFormItem()\n\nconst minDisabled = computed(\n () => isNumber(props.modelValue) && props.modelValue <= props.min\n)\nconst maxDisabled = computed(\n () => isNumber(props.modelValue) && props.modelValue >= props.max\n)\n\nconst numPrecision = computed(() => {\n const stepPrecision = getPrecision(props.step)\n if (!isUndefined(props.precision)) {\n if (stepPrecision > props.precision) {\n debugWarn(\n 'InputNumber',\n 'precision should not be less than the decimal places of step'\n )\n }\n return props.precision\n } else {\n return Math.max(getPrecision(props.modelValue), stepPrecision)\n }\n})\nconst controlsAtRight = computed(() => {\n return props.controls && props.controlsPosition === 'right'\n})\n\nconst inputNumberSize = useFormSize()\nconst inputNumberDisabled = useFormDisabled()\n\nconst displayValue = computed(() => {\n if (data.userInput !== null) {\n return data.userInput\n }\n let currentValue: number | string | undefined | null = data.currentValue\n if (isNil(currentValue)) return ''\n if (isNumber(currentValue)) {\n if (Number.isNaN(currentValue)) return ''\n if (!isUndefined(props.precision)) {\n currentValue = currentValue.toFixed(props.precision)\n }\n }\n return currentValue\n})\nconst toPrecision = (num: number, pre?: number) => {\n if (isUndefined(pre)) pre = numPrecision.value\n if (pre === 0) return Math.round(num)\n let snum = String(num)\n const pointPos = snum.indexOf('.')\n if (pointPos === -1) return num\n const nums = snum.replace('.', '').split('')\n const datum = nums[pointPos + pre]\n if (!datum) return num\n const length = snum.length\n if (snum.charAt(length - 1) === '5') {\n snum = `${snum.slice(0, Math.max(0, length - 1))}6`\n }\n return Number.parseFloat(Number(snum).toFixed(pre))\n}\nconst getPrecision = (value: number | null | undefined) => {\n if (isNil(value)) return 0\n const valueString = value.toString()\n const dotPosition = valueString.indexOf('.')\n let precision = 0\n if (dotPosition !== -1) {\n precision = valueString.length - dotPosition - 1\n }\n return precision\n}\nconst ensurePrecision = (val: number, coefficient: 1 | -1 = 1) => {\n if (!isNumber(val)) return data.currentValue\n if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {\n debugWarn(\n 'InputNumber',\n 'The value has reached the maximum safe integer limit.'\n )\n return val\n } else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {\n debugWarn(\n 'InputNumber',\n 'The value has reached the minimum safe integer limit.'\n )\n return val\n }\n\n // Solve the accuracy problem of JS decimal calculation by converting the value to integer.\n return toPrecision(val + props.step * coefficient)\n}\nconst handleKeydown = (event: KeyboardEvent | Event) => {\n const code = getEventCode(event as KeyboardEvent)\n const key = getEventKey(event as KeyboardEvent)\n\n if (props.disabledScientific && ['e', 'E'].includes(key)) {\n event.preventDefault()\n return\n }\n\n switch (code) {\n case EVENT_CODE.up: {\n event.preventDefault()\n increase()\n break\n }\n case EVENT_CODE.down: {\n event.preventDefault()\n decrease()\n break\n }\n }\n}\nconst increase = () => {\n if (props.readonly || inputNumberDisabled.value || maxDisabled.value) return\n const value = Number(displayValue.value) || 0\n const newVal = ensurePrecision(value)\n setCurrentValue(newVal)\n emit(INPUT_EVENT, data.currentValue)\n setCurrentValueToModelValue()\n}\nconst decrease = () => {\n if (props.readonly || inputNumberDisabled.value || minDisabled.value) return\n const value = Number(displayValue.value) || 0\n const newVal = ensurePrecision(value, -1)\n setCurrentValue(newVal)\n emit(INPUT_EVENT, data.currentValue)\n setCurrentValueToModelValue()\n}\nconst verifyValue = (\n value: number | string | null | undefined,\n update?: boolean\n): number | null | undefined => {\n const { max, min, step, precision, stepStrictly, valueOnClear } = props\n if (max < min) {\n throwError('InputNumber', 'min should not be greater than max.')\n }\n let newVal = Number(value)\n if (isNil(value) || Number.isNaN(newVal)) {\n return null\n }\n if (value === '') {\n if (valueOnClear === null) {\n return null\n }\n newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear\n }\n if (stepStrictly) {\n newVal = toPrecision(\n Math.round(toPrecision(newVal / step)) * step,\n precision\n )\n if (newVal !== value) {\n update && emit(UPDATE_MODEL_EVENT, newVal)\n }\n }\n if (!isUndefined(precision)) {\n newVal = toPrecision(newVal, precision)\n }\n if (newVal > max || newVal < min) {\n newVal = newVal > max ? max : min\n update && emit(UPDATE_MODEL_EVENT, newVal)\n }\n return newVal\n}\nconst setCurrentValue = (\n value: number | string | null | undefined,\n emitChange = true\n) => {\n const oldVal = data.currentValue\n const newVal = verifyValue(value)\n if (!emitChange) {\n emit(UPDATE_MODEL_EVENT, newVal!)\n return\n }\n data.userInput = null\n if (oldVal === newVal && value) return\n emit(UPDATE_MODEL_EVENT, newVal!)\n if (oldVal !== newVal) {\n emit(CHANGE_EVENT, newVal!, oldVal!)\n }\n if (props.validateEvent) {\n formItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n data.currentValue = newVal\n}\nconst handleInput = (value: string) => {\n data.userInput = value\n const newVal = value === '' ? null : Number(value)\n emit(INPUT_EVENT, newVal)\n setCurrentValue(newVal, false)\n}\nconst handleInputChange = (value: string) => {\n const newVal = value !== '' ? Number(value) : ''\n if ((isNumber(newVal) && !Number.isNaN(newVal)) || value === '') {\n setCurrentValue(newVal)\n }\n setCurrentValueToModelValue()\n data.userInput = null\n}\n\nconst focus = () => {\n input.value?.focus?.()\n}\n\nconst blur = () => {\n input.value?.blur?.()\n}\n\nconst handleFocus = (event: MouseEvent | FocusEvent) => {\n emit('focus', event)\n}\n\nconst handleBlur = (event: MouseEvent | FocusEvent) => {\n data.userInput = null\n // When non-numeric content is entered into a numeric input box,\n // the content displayed on the page is not cleared after the value is cleared. #18533\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1398528\n if (data.currentValue === null && input.value?.input) {\n input.value.input.value = ''\n }\n emit('blur', event)\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch((err) => debugWarn(err))\n }\n}\n\nconst setCurrentValueToModelValue = () => {\n if (data.currentValue !== props.modelValue) {\n data.currentValue = props.modelValue\n }\n}\nconst handleWheel = (e: WheelEvent) => {\n if (document.activeElement === e.target) e.preventDefault()\n}\n\nwatch(\n () => props.modelValue,\n (value, oldValue) => {\n const newValue = verifyValue(value, true)\n if (data.userInput === null && newValue !== oldValue) {\n data.currentValue = newValue\n }\n },\n { immediate: true }\n)\n\nwatch(\n () => props.precision,\n () => {\n data.currentValue = verifyValue(props.modelValue)\n }\n)\nonMounted(() => {\n const { min, max, modelValue } = props\n const innerInput = input.value?.input as HTMLInputElement\n innerInput.setAttribute('role', 'spinbutton')\n if (Number.isFinite(max)) {\n innerInput.setAttribute('aria-valuemax', String(max))\n } else {\n innerInput.removeAttribute('aria-valuemax')\n }\n if (Number.isFinite(min)) {\n innerInput.setAttribute('aria-valuemin', String(min))\n } else {\n innerInput.removeAttribute('aria-valuemin')\n }\n innerInput.setAttribute(\n 'aria-valuenow',\n data.currentValue || data.currentValue === 0\n ? String(data.currentValue)\n : ''\n )\n innerInput.setAttribute('aria-disabled', String(inputNumberDisabled.value))\n if (!isNumber(modelValue) && modelValue != null) {\n let val: number | null = Number(modelValue)\n if (Number.isNaN(val)) {\n val = null\n }\n emit(UPDATE_MODEL_EVENT, val!)\n }\n innerInput.addEventListener('wheel', handleWheel, { passive: false })\n})\nonUpdated(() => {\n const innerInput = input.value?.input\n innerInput?.setAttribute('aria-valuenow', `${data.currentValue ?? ''}`)\n})\ndefineExpose({\n /** @description get focus the input component */\n focus,\n /** @description remove focus the input component */\n blur,\n})\n</script>\n"],"names":["useLocale","useNamespace","ref","reactive","useFormItem","computed","isNumber","isUndefined","debugWarn","useFormSize","useFormDisabled","isNil","getEventCode","getEventKey","EVENT_CODE","INPUT_EVENT","throwError","isString","UPDATE_MODEL_EVENT","CHANGE_EVENT","watch","onMounted","onUpdated","_openBlock","_createElementBlock","_normalizeClass","_unref","controls","align","_withModifiers","_withKeys","_renderSlot","_createVNode","ElIcon","_withCtx","_createBlock","ArrowDown","Minus","_createCommentVNode","ArrowUp","Plus","ElInput","id","step","placeholder","readonly","max","min","name","ariaLabel","inputmode","_createSlots","$slots"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA,IAAA,MAAM,KAAQ,GAA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AA,CAAAA,SAAAA;AAAAA,YACZ,gBAAgB,EAAA,KAAA;AAAA,YAChB,WAAWC,IAAAA,CAAAA,SAAAA;AAAAA,YACX,SAAS,EAAA,aAAA;AAAA,YACT,MAAM,EAAA,UAAA;AAAA,YACN,OAAO,EAAA,WAAA;AAAA,YACP,OAAO,EAAA,WAAA;AAAA,YACP,QAAQ,EAAA,iBAAA;AAAA,aAAAC,eAAA,CAAA;AAAA;;YAEOC,IAAAA,CAAO,OAAA,MAAA,GAAA;AAAA,cAAS,IAAA,EAAA,QAAA;AAAA,cAAA,EAAA,EAAAlB,YAC9B,MAAsB;AAAA,gBAAtBH,cAAA,CAAsB,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,eAAA,CAAA;AAAA;;YAERqB,IAAAA,CAAO,OAAA,MAAA,GAAA;AAAA,cAAS,IAAA,EAAA,QAAA;AAAA,cAAA,EAAA,EAAAlB,YAC9B,MAAsB;AAAA,gBAAtBH,cAAA,CAAsB,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,eAAA,CAAA;AAAA;;;;;;;;;;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var inputTag$1 = require('./src/input-
|
|
6
|
-
var inputTag = require('./src/input-
|
|
5
|
+
var inputTag$1 = require('./src/input-tag2.js');
|
|
6
|
+
var inputTag = require('./src/input-tag.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
9
|
const ElInputTag = install.withInstall(inputTag$1["default"]);
|