@element-plus/nightly 0.0.20250605 → 0.0.20250607
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 +109 -68
- 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 +99 -69
- 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/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +42 -22
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +22 -42
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +38 -14
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +14 -38
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +43 -64
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +64 -43
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +3 -3
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/collapse/src/use-collapse-item.d.ts +2 -2
- package/es/components/collapse/src/use-collapse-item.mjs +9 -2
- package/es/components/collapse/src/use-collapse-item.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +21 -79
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +79 -21
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/date-picker/index.mjs +1 -1
- package/es/components/date-picker/src/composables/use-panel-date-range.mjs +2 -1
- package/es/components/date-picker/src/composables/use-panel-date-range.mjs.map +1 -1
- package/es/components/date-picker/src/constants.d.ts +1 -0
- package/es/components/date-picker/src/constants.mjs +2 -1
- package/es/components/date-picker/src/constants.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +4 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs +4 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs +4 -2
- package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-year-range.mjs +4 -3
- package/es/components/date-picker/src/date-picker-com/panel-year-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker.mjs +4 -4
- package/es/components/date-picker/src/date-picker.mjs.map +1 -1
- package/es/components/dialog/index.mjs +2 -2
- package/es/components/dialog/src/dialog-content.mjs +88 -29
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +29 -88
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +68 -172
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog2.mjs +172 -68
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/src/drawer.mjs +1 -1
- package/es/components/dropdown/index.mjs +3 -3
- package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
- package/es/components/dropdown/src/dropdown.mjs +299 -108
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +108 -299
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/dropdown/src/tokens.d.ts +1 -0
- package/es/components/dropdown/src/tokens.mjs +2 -1
- package/es/components/dropdown/src/tokens.mjs.map +1 -1
- package/es/components/dropdown/src/useDropdown.mjs +2 -1
- package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +3 -2
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/index.mjs +23 -19
- 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 +62 -348
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +348 -62
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/menu/index.d.ts +1 -0
- package/es/components/menu/index.mjs +1 -0
- package/es/components/menu/index.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +3 -2
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/menu/src/menu.mjs +3 -2
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/menu/src/sub-menu.mjs +4 -3
- package/es/components/menu/src/sub-menu.mjs.map +1 -1
- package/es/components/menu/src/tokens.d.ts +2 -0
- package/es/components/menu/src/tokens.mjs +5 -0
- package/es/components/menu/src/tokens.mjs.map +1 -0
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -140
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +140 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/jumper.mjs +58 -7
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +7 -58
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/components/total.mjs +6 -26
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +26 -6
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +258 -83
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +83 -258
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/roving-focus-group/index.mjs +3 -3
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
- package/es/components/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +44 -28
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +28 -44
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +1 -1
- package/es/components/scrollbar/src/bar.mjs +64 -10
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +10 -64
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/scrollbar/src/thumb.mjs +139 -11
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb2.mjs +11 -133
- package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select/src/select2.mjs +17 -19
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/space/src/space.mjs +2 -0
- package/es/components/space/src/space.mjs.map +1 -1
- package/es/components/splitter-panel/style/css.d.ts +1 -1
- package/es/components/splitter-panel/style/css.mjs +1 -1
- package/es/components/steps/index.d.ts +1 -0
- package/es/components/steps/index.mjs +3 -2
- package/es/components/steps/index.mjs.map +1 -1
- package/es/components/steps/src/item.mjs +19 -190
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item.vue.d.ts +2 -10
- package/es/components/steps/src/item2.mjs +191 -19
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +2 -1
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/steps/src/tokens.d.ts +1 -0
- package/es/components/steps/src/tokens.mjs +4 -0
- package/es/components/steps/src/tokens.mjs.map +1 -0
- package/es/components/table-v2/src/components/header.mjs +2 -1
- package/es/components/table-v2/src/components/header.mjs.map +1 -1
- package/es/components/table-v2/src/table-grid.mjs +2 -2
- package/es/components/table-v2/src/table-grid.mjs.map +1 -1
- package/es/components/table-v2/src/tokens.d.ts +1 -0
- package/es/components/table-v2/src/tokens.mjs +2 -1
- package/es/components/table-v2/src/tokens.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +99 -27
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +27 -99
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +67 -21
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +21 -67
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-picker/index.mjs +1 -1
- package/es/components/time-picker/src/common/picker.mjs +3 -2
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/constants.d.ts +2 -0
- package/es/components/time-picker/src/constants.mjs +3 -1
- package/es/components/time-picker/src/constants.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +2 -2
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs +2 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs +2 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-range.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker.mjs +2 -2
- package/es/components/time-picker/src/time-picker.mjs.map +1 -1
- package/es/components/timeline/index.d.ts +1 -0
- package/es/components/timeline/index.mjs +1 -0
- package/es/components/timeline/index.mjs.map +1 -1
- package/es/components/timeline/src/timeline.mjs +2 -1
- package/es/components/timeline/src/timeline.mjs.map +1 -1
- package/es/components/timeline/src/tokens.d.ts +1 -0
- package/es/components/timeline/src/tokens.mjs +4 -0
- package/es/components/timeline/src/tokens.mjs.map +1 -0
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/arrow.mjs +21 -37
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +37 -21
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.mjs +48 -110
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.vue.d.ts +2 -1
- package/es/components/tooltip-v2/src/content2.mjs +110 -48
- package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +3 -3
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
- package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/tour/index.mjs +1 -1
- package/es/components/tour/src/content.mjs +67 -43
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +43 -67
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +19 -130
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +130 -19
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/tree/index.d.ts +1 -0
- package/es/components/tree/index.mjs +1 -0
- package/es/components/tree/index.mjs.map +1 -1
- package/es/components/tree/src/model/useNodeExpandEventBroadcast.mjs +3 -2
- package/es/components/tree/src/model/useNodeExpandEventBroadcast.mjs.map +1 -1
- package/es/components/tree/src/tokens.d.ts +3 -0
- package/es/components/tree/src/tokens.mjs +6 -0
- package/es/components/tree/src/tokens.mjs.map +1 -0
- package/es/components/tree/src/tree-node-content.mjs +3 -2
- package/es/components/tree/src/tree-node-content.mjs.map +1 -1
- package/es/components/tree/src/tree-node.mjs +3 -2
- package/es/components/tree/src/tree-node.mjs.map +1 -1
- package/es/components/tree/src/tree.mjs +2 -1
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree-select/src/tree.mjs +1 -1
- package/es/components/tree-select/src/tree.mjs.map +1 -1
- package/es/components/visual-hidden/index.mjs +3 -3
- package/es/components/visual-hidden/src/visual-hidden.mjs +35 -6
- package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
- package/es/components/visual-hidden/src/visual-hidden2.mjs +6 -35
- package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
- package/es/index.d.ts +11 -0
- package/es/index.mjs +23 -19
- 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/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +42 -22
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +22 -42
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +38 -15
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +15 -38
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +43 -64
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +64 -43
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +3 -3
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/collapse/src/use-collapse-item.d.ts +2 -2
- package/lib/components/collapse/src/use-collapse-item.js +9 -2
- package/lib/components/collapse/src/use-collapse-item.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +22 -79
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +79 -22
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/date-picker/index.js +1 -0
- package/lib/components/date-picker/index.js.map +1 -1
- package/lib/components/date-picker/src/composables/use-panel-date-range.js +2 -1
- package/lib/components/date-picker/src/composables/use-panel-date-range.js.map +1 -1
- package/lib/components/date-picker/src/constants.d.ts +1 -0
- package/lib/components/date-picker/src/constants.js +2 -0
- package/lib/components/date-picker/src/constants.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +6 -4
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js +4 -2
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.js +4 -2
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-year-range.js +3 -2
- package/lib/components/date-picker/src/date-picker-com/panel-year-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker.js +2 -2
- package/lib/components/date-picker/src/date-picker.js.map +1 -1
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/src/dialog-content.js +87 -29
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +29 -87
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +68 -171
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog2.js +171 -68
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/src/drawer.js +1 -1
- package/lib/components/dropdown/index.js +3 -2
- package/lib/components/dropdown/index.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +2 -2
- package/lib/components/dropdown/src/dropdown.js +299 -117
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +117 -299
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/dropdown/src/tokens.d.ts +1 -0
- package/lib/components/dropdown/src/tokens.js +2 -0
- package/lib/components/dropdown/src/tokens.js.map +1 -1
- package/lib/components/dropdown/src/useDropdown.js +2 -1
- package/lib/components/dropdown/src/useDropdown.js.map +1 -1
- package/lib/components/form/src/form2.js +3 -2
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/index.js +31 -16
- 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 +61 -346
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +346 -61
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/menu/index.d.ts +1 -0
- package/lib/components/menu/index.js +3 -0
- package/lib/components/menu/index.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +3 -2
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/menu/src/menu.js +3 -2
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/src/sub-menu.js +4 -3
- package/lib/components/menu/src/sub-menu.js.map +1 -1
- package/lib/components/menu/src/tokens.d.ts +2 -0
- package/lib/components/menu/src/tokens.js +10 -0
- package/lib/components/menu/src/tokens.js.map +1 -0
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -139
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +139 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/jumper.js +58 -7
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +7 -58
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/components/total.js +6 -26
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +26 -6
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +257 -83
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +83 -257
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/roving-focus-group/index.js +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +31 -27
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -31
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
- package/lib/components/row/index.js +2 -2
- package/lib/components/row/src/row.js +44 -30
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +30 -44
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/src/bar.js +64 -10
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +10 -64
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/scrollbar/src/thumb.js +139 -11
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/scrollbar/src/thumb2.js +11 -133
- package/lib/components/scrollbar/src/thumb2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select/src/select2.js +16 -18
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/space/src/space.js +2 -0
- package/lib/components/space/src/space.js.map +1 -1
- package/lib/components/splitter-panel/style/css.d.ts +1 -1
- package/lib/components/splitter-panel/style/css.js +1 -1
- package/lib/components/steps/index.d.ts +1 -0
- package/lib/components/steps/index.js +4 -2
- package/lib/components/steps/index.js.map +1 -1
- package/lib/components/steps/src/item.js +19 -190
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item.vue.d.ts +2 -10
- package/lib/components/steps/src/item2.js +191 -19
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/steps/src/steps2.js +2 -1
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/steps/src/tokens.d.ts +1 -0
- package/lib/components/steps/src/tokens.js +8 -0
- package/lib/components/steps/src/tokens.js.map +1 -0
- package/lib/components/table-v2/src/components/header.js +2 -1
- package/lib/components/table-v2/src/components/header.js.map +1 -1
- package/lib/components/table-v2/src/table-grid.js +1 -1
- package/lib/components/table-v2/src/table-grid.js.map +1 -1
- package/lib/components/table-v2/src/tokens.d.ts +1 -0
- package/lib/components/table-v2/src/tokens.js +2 -0
- package/lib/components/table-v2/src/tokens.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +99 -28
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +28 -99
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +67 -21
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +21 -67
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-picker/index.js +2 -0
- package/lib/components/time-picker/index.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +3 -2
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/constants.d.ts +2 -0
- package/lib/components/time-picker/src/constants.js +4 -0
- package/lib/components/time-picker/src/constants.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js +2 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js +2 -1
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.js.map +1 -1
- package/lib/components/time-picker/src/time-picker.js +1 -1
- package/lib/components/time-picker/src/time-picker.js.map +1 -1
- package/lib/components/timeline/index.d.ts +1 -0
- package/lib/components/timeline/index.js +2 -0
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/src/timeline.js +2 -1
- package/lib/components/timeline/src/timeline.js.map +1 -1
- package/lib/components/timeline/src/tokens.d.ts +1 -0
- package/lib/components/timeline/src/tokens.js +8 -0
- package/lib/components/timeline/src/tokens.js.map +1 -0
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/arrow.js +22 -37
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +37 -22
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.js +48 -110
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.vue.d.ts +2 -1
- package/lib/components/tooltip-v2/src/content2.js +110 -48
- package/lib/components/tooltip-v2/src/content2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +3 -3
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
- package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/tour/index.js +1 -1
- package/lib/components/tour/src/content.js +67 -46
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +46 -67
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +21 -130
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +130 -21
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/tree/index.d.ts +1 -0
- package/lib/components/tree/index.js +4 -0
- package/lib/components/tree/index.js.map +1 -1
- package/lib/components/tree/src/model/useNodeExpandEventBroadcast.js +3 -2
- package/lib/components/tree/src/model/useNodeExpandEventBroadcast.js.map +1 -1
- package/lib/components/tree/src/tokens.d.ts +3 -0
- package/lib/components/tree/src/tokens.js +12 -0
- package/lib/components/tree/src/tokens.js.map +1 -0
- package/lib/components/tree/src/tree-node-content.js +3 -2
- package/lib/components/tree/src/tree-node-content.js.map +1 -1
- package/lib/components/tree/src/tree-node.js +3 -2
- package/lib/components/tree/src/tree-node.js.map +1 -1
- package/lib/components/tree/src/tree.js +2 -1
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree-select/src/tree.js +1 -1
- package/lib/components/tree-select/src/tree.js.map +1 -1
- package/lib/components/visual-hidden/index.js +2 -2
- package/lib/components/visual-hidden/src/visual-hidden.js +35 -6
- package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
- package/lib/components/visual-hidden/src/visual-hidden2.js +6 -35
- package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
- package/lib/index.d.ts +11 -0
- package/lib/index.js +31 -16
- 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/web-types.json +1 -1
package/es/components/index.mjs
CHANGED
@@ -92,23 +92,23 @@ export { avatarEmits, avatarProps } from './avatar/src/avatar.mjs';
|
|
92
92
|
export { backtopEmits, backtopProps } from './backtop/src/backtop.mjs';
|
93
93
|
export { badgeProps } from './badge/src/badge.mjs';
|
94
94
|
export { breadcrumbProps } from './breadcrumb/src/breadcrumb.mjs';
|
95
|
-
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-
|
95
|
+
export { breadcrumbItemProps } from './breadcrumb/src/breadcrumb-item.mjs';
|
96
96
|
export { breadcrumbKey } from './breadcrumb/src/constants.mjs';
|
97
97
|
export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './button/src/button.mjs';
|
98
98
|
export { buttonGroupContextKey } from './button/src/constants.mjs';
|
99
99
|
export { calendarEmits, calendarProps } from './calendar/src/calendar.mjs';
|
100
|
-
export { cardProps } from './card/src/
|
100
|
+
export { cardProps } from './card/src/card2.mjs';
|
101
101
|
export { carouselEmits, carouselProps } from './carousel/src/carousel.mjs';
|
102
102
|
export { carouselItemProps } from './carousel/src/carousel-item.mjs';
|
103
103
|
export { CAROUSEL_ITEM_NAME, carouselContextKey } from './carousel/src/constants.mjs';
|
104
104
|
export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
|
105
105
|
export { CASCADER_PANEL_INJECTION_KEY } from './cascader-panel/src/types.mjs';
|
106
106
|
export { CommonProps, DefaultProps, useCascaderConfig } from './cascader-panel/src/config.mjs';
|
107
|
-
export { checkTagEmits, checkTagProps } from './check-tag/src/check-
|
107
|
+
export { checkTagEmits, checkTagProps } from './check-tag/src/check-tag2.mjs';
|
108
108
|
export { checkboxGroupEmits, checkboxGroupProps } from './checkbox/src/checkbox-group.mjs';
|
109
109
|
export { checkboxEmits, checkboxProps } from './checkbox/src/checkbox.mjs';
|
110
110
|
export { checkboxGroupContextKey } from './checkbox/src/constants.mjs';
|
111
|
-
export { colProps } from './col/src/
|
111
|
+
export { colProps } from './col/src/col.mjs';
|
112
112
|
export { collapseEmits, collapseProps, emitChangeFn } from './collapse/src/collapse.mjs';
|
113
113
|
export { collapseItemProps } from './collapse/src/collapse-item.mjs';
|
114
114
|
export { collapseContextKey } from './collapse/src/constants.mjs';
|
@@ -117,18 +117,18 @@ export { messageConfig } from './config-provider/src/config-provider.mjs';
|
|
117
117
|
export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
|
118
118
|
export { configProviderContextKey } from './config-provider/src/constants.mjs';
|
119
119
|
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from './config-provider/src/hooks/use-global-config.mjs';
|
120
|
-
export { countdownEmits, countdownProps } from './countdown/src/
|
121
|
-
export { ROOT_PICKER_INJECTION_KEY } from './date-picker/src/constants.mjs';
|
120
|
+
export { countdownEmits, countdownProps } from './countdown/src/countdown.mjs';
|
121
|
+
export { ROOT_PICKER_INJECTION_KEY, ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY } from './date-picker/src/constants.mjs';
|
122
122
|
export { datePickerProps } from './date-picker/src/props/date-picker.mjs';
|
123
123
|
export { descriptionProps } from './descriptions/src/description.mjs';
|
124
124
|
export { descriptionItemProps } from './descriptions/src/description-item.mjs';
|
125
125
|
export { useDialog } from './dialog/src/use-dialog.mjs';
|
126
|
-
export { dialogEmits, dialogProps } from './dialog/src/
|
126
|
+
export { dialogEmits, dialogProps } from './dialog/src/dialog.mjs';
|
127
127
|
export { dialogInjectionKey } from './dialog/src/constants.mjs';
|
128
128
|
export { dividerProps } from './divider/src/divider.mjs';
|
129
129
|
export { drawerEmits, drawerProps } from './drawer/src/drawer.mjs';
|
130
|
-
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './dropdown/src/
|
131
|
-
export { DROPDOWN_INJECTION_KEY } from './dropdown/src/tokens.mjs';
|
130
|
+
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './dropdown/src/dropdown2.mjs';
|
131
|
+
export { DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY } from './dropdown/src/tokens.mjs';
|
132
132
|
export { emptyProps } from './empty/src/empty.mjs';
|
133
133
|
export { formEmits, formMetaProps, formProps } from './form/src/form.mjs';
|
134
134
|
export { formItemProps, formItemValidateStates } from './form/src/form-item.mjs';
|
@@ -139,13 +139,14 @@ export { iconProps } from './icon/src/icon.mjs';
|
|
139
139
|
export { imageEmits, imageProps } from './image/src/image.mjs';
|
140
140
|
export { imageViewerEmits, imageViewerProps } from './image-viewer/src/image-viewer.mjs';
|
141
141
|
export { inputEmits, inputProps } from './input/src/input.mjs';
|
142
|
-
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-
|
142
|
+
export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
|
143
143
|
export { inputTagEmits, inputTagProps } from './input-tag/src/input-tag.mjs';
|
144
144
|
export { linkEmits, linkProps } from './link/src/link.mjs';
|
145
145
|
export { menuEmits, menuProps } from './menu/src/menu.mjs';
|
146
146
|
export { menuItemEmits, menuItemProps } from './menu/src/menu-item.mjs';
|
147
147
|
export { menuItemGroupProps } from './menu/src/menu-item-group.mjs';
|
148
148
|
export { subMenuProps } from './menu/src/sub-menu.mjs';
|
149
|
+
export { MENU_INJECTION_KEY, SUB_MENU_INJECTION_KEY } from './menu/src/tokens.mjs';
|
149
150
|
export { overlayEmits, overlayProps } from './overlay/src/overlay.mjs';
|
150
151
|
export { pageHeaderEmits, pageHeaderProps } from './page-header/src/page-header.mjs';
|
151
152
|
export { paginationEmits, paginationProps } from './pagination/src/pagination.mjs';
|
@@ -164,13 +165,13 @@ export { radioEmits, radioProps, radioPropsBase } from './radio/src/radio.mjs';
|
|
164
165
|
export { radioGroupEmits, radioGroupProps } from './radio/src/radio-group.mjs';
|
165
166
|
export { radioButtonProps } from './radio/src/radio-button.mjs';
|
166
167
|
export { radioGroupKey } from './radio/src/constants.mjs';
|
167
|
-
export { rateEmits, rateProps } from './rate/src/
|
168
|
+
export { rateEmits, rateProps } from './rate/src/rate2.mjs';
|
168
169
|
export { IconComponentMap, IconMap, resultProps } from './result/src/result.mjs';
|
169
|
-
export { RowAlign, RowJustify, rowProps } from './row/src/
|
170
|
+
export { RowAlign, RowJustify, rowProps } from './row/src/row2.mjs';
|
170
171
|
export { rowContextKey } from './row/src/constants.mjs';
|
171
172
|
export { BAR_MAP, GAP, renderThumbStyle } from './scrollbar/src/util.mjs';
|
172
173
|
export { scrollbarEmits, scrollbarProps } from './scrollbar/src/scrollbar.mjs';
|
173
|
-
export { thumbProps } from './scrollbar/src/
|
174
|
+
export { thumbProps } from './scrollbar/src/thumb2.mjs';
|
174
175
|
export { scrollbarContextKey } from './scrollbar/src/constants.mjs';
|
175
176
|
export { selectGroupKey, selectKey } from './select/src/token.mjs';
|
176
177
|
export { selectEmits, selectProps } from './select/src/select.mjs';
|
@@ -183,8 +184,9 @@ export { spaceProps } from './space/src/space.mjs';
|
|
183
184
|
export { spaceItemProps } from './space/src/item.mjs';
|
184
185
|
export { useSpace } from './space/src/use-space.mjs';
|
185
186
|
export { statisticProps } from './statistic/src/statistic.mjs';
|
186
|
-
export { stepProps } from './steps/src/
|
187
|
+
export { stepProps } from './steps/src/item.mjs';
|
187
188
|
export { stepsEmits, stepsProps } from './steps/src/steps.mjs';
|
189
|
+
export { STEPS_INJECTION_KEY } from './steps/src/tokens.mjs';
|
188
190
|
export { switchEmits, switchProps } from './switch/src/switch2.mjs';
|
189
191
|
export { Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, SortOrder as TableV2SortOrder } from './table-v2/src/constants.mjs';
|
190
192
|
export { default as TableV2 } from './table-v2/src/table-v2.mjs';
|
@@ -197,20 +199,22 @@ export { tabBarProps } from './tabs/src/tab-bar.mjs';
|
|
197
199
|
export { tabNavEmits, tabNavProps } from './tabs/src/tab-nav.mjs';
|
198
200
|
export { tabPaneProps } from './tabs/src/tab-pane.mjs';
|
199
201
|
export { tabsRootContextKey } from './tabs/src/constants.mjs';
|
200
|
-
export { tagEmits, tagProps } from './tag/src/
|
201
|
-
export { textProps } from './text/src/
|
202
|
+
export { tagEmits, tagProps } from './tag/src/tag2.mjs';
|
203
|
+
export { textProps } from './text/src/text2.mjs';
|
202
204
|
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from './time-picker/src/utils.mjs';
|
203
|
-
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, timeUnits } from './time-picker/src/constants.mjs';
|
205
|
+
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, timeUnits } from './time-picker/src/constants.mjs';
|
204
206
|
export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps } from './time-picker/src/common/props.mjs';
|
205
207
|
export { default as CommonPicker } from './time-picker/src/common/picker.mjs';
|
206
208
|
export { default as TimePickPanel } from './time-picker/src/time-picker-com/panel-time-pick.mjs';
|
207
209
|
export { timeSelectProps } from './time-select/src/time-select.mjs';
|
208
210
|
export { timelineItemProps } from './timeline/src/timeline-item.mjs';
|
211
|
+
export { TIMELINE_INJECTION_KEY } from './timeline/src/tokens.mjs';
|
209
212
|
export { tooltipEmits, useTooltipModelToggle, useTooltipModelToggleEmits, useTooltipModelToggleProps, useTooltipProps } from './tooltip/src/tooltip.mjs';
|
210
213
|
export { useTooltipTriggerProps } from './tooltip/src/trigger.mjs';
|
211
214
|
export { useTooltipContentProps } from './tooltip/src/content.mjs';
|
212
215
|
export { TOOLTIP_INJECTION_KEY } from './tooltip/src/constants.mjs';
|
213
216
|
export { LEFT_CHECK_CHANGE_EVENT, RIGHT_CHECK_CHANGE_EVENT, transferCheckedChangeFn, transferEmits, transferProps } from './transfer/src/transfer.mjs';
|
217
|
+
export { NODE_INSTANCE_INJECTION_KEY, ROOT_TREE_INJECTION_KEY, TREE_NODE_MAP_INJECTION_KEY } from './tree/src/tokens.mjs';
|
214
218
|
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './upload/src/upload.mjs';
|
215
219
|
export { uploadContentProps } from './upload/src/upload-content.mjs';
|
216
220
|
export { uploadListEmits, uploadListProps } from './upload/src/upload-list.mjs';
|
@@ -222,13 +226,13 @@ export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualiz
|
|
222
226
|
export { watermarkProps } from './watermark/src/watermark2.mjs';
|
223
227
|
export { tourEmits, tourProps } from './tour/src/tour.mjs';
|
224
228
|
export { tourStepEmits, tourStepProps } from './tour/src/step.mjs';
|
225
|
-
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/
|
229
|
+
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './tour/src/content2.mjs';
|
226
230
|
export { anchorEmits, anchorProps } from './anchor/src/anchor.mjs';
|
227
231
|
export { defaultProps, segmentedEmits, segmentedProps } from './segmented/src/segmented.mjs';
|
228
232
|
export { mentionEmits, mentionProps } from './mention/src/mention.mjs';
|
229
233
|
export { splitterProps } from './splitter/src/splitter.mjs';
|
230
234
|
export { splitterPanelProps } from './splitter/src/split-panel.mjs';
|
231
235
|
export { messageDefaults, messageEmits, messageProps, messageTypes } from './message/src/message.mjs';
|
232
|
-
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/
|
236
|
+
export { notificationEmits, notificationProps, notificationTypes } from './notification/src/notification.mjs';
|
233
237
|
export { popoverEmits, popoverProps } from './popover/src/popover.mjs';
|
234
238
|
//# sourceMappingURL=index.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import InputNumber from './src/input-
|
2
|
-
export { inputNumberEmits, inputNumberProps } from './src/input-
|
1
|
+
import InputNumber from './src/input-number2.mjs';
|
2
|
+
export { inputNumberEmits, inputNumberProps } from './src/input-number.mjs';
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
4
4
|
|
5
5
|
const ElInputNumber = withInstall(InputNumber);
|
@@ -1,353 +1,67 @@
|
|
1
|
-
import { defineComponent, ref, reactive, computed, watch, onMounted, onUpdated, openBlock, createElementBlock, normalizeClass, unref, withModifiers, withDirectives, withKeys, renderSlot, createVNode, withCtx, createBlock, createCommentVNode, createSlots } from 'vue';
|
2
1
|
import { isNil } from 'lodash-unified';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import
|
8
|
-
import { vRepeatClick } from '../../../directives/repeat-click/index.mjs';
|
9
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
10
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
11
|
-
import { useFormItem } from '../../form/src/hooks/use-form-item.mjs';
|
12
|
-
import { isNumber, isUndefined } from '../../../utils/types.mjs';
|
13
|
-
import { debugWarn, throwError } from '../../../utils/error.mjs';
|
14
|
-
import { useFormSize, useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
15
|
-
import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
16
|
-
import { isString } from '@vue/shared';
|
2
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
3
|
+
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
4
|
+
import { isNumber } from '../../../utils/types.mjs';
|
5
|
+
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
6
|
+
import { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
17
7
|
|
18
|
-
const
|
19
|
-
|
8
|
+
const inputNumberProps = buildProps({
|
9
|
+
id: {
|
10
|
+
type: String,
|
11
|
+
default: void 0
|
12
|
+
},
|
13
|
+
step: {
|
14
|
+
type: Number,
|
15
|
+
default: 1
|
16
|
+
},
|
17
|
+
stepStrictly: Boolean,
|
18
|
+
max: {
|
19
|
+
type: Number,
|
20
|
+
default: Number.POSITIVE_INFINITY
|
21
|
+
},
|
22
|
+
min: {
|
23
|
+
type: Number,
|
24
|
+
default: Number.NEGATIVE_INFINITY
|
25
|
+
},
|
26
|
+
modelValue: {
|
27
|
+
type: [Number, null]
|
28
|
+
},
|
29
|
+
readonly: Boolean,
|
30
|
+
disabled: Boolean,
|
31
|
+
size: useSizeProp,
|
32
|
+
controls: {
|
33
|
+
type: Boolean,
|
34
|
+
default: true
|
35
|
+
},
|
36
|
+
controlsPosition: {
|
37
|
+
type: String,
|
38
|
+
default: "",
|
39
|
+
values: ["", "right"]
|
40
|
+
},
|
41
|
+
valueOnClear: {
|
42
|
+
type: [String, Number, null],
|
43
|
+
validator: (val) => val === null || isNumber(val) || ["min", "max"].includes(val),
|
44
|
+
default: null
|
45
|
+
},
|
46
|
+
name: String,
|
47
|
+
placeholder: String,
|
48
|
+
precision: {
|
49
|
+
type: Number,
|
50
|
+
validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
|
51
|
+
},
|
52
|
+
validateEvent: {
|
53
|
+
type: Boolean,
|
54
|
+
default: true
|
55
|
+
},
|
56
|
+
...useAriaProps(["ariaLabel"])
|
20
57
|
});
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
const ns = useNamespace("input-number");
|
29
|
-
const input = ref();
|
30
|
-
const data = reactive({
|
31
|
-
currentValue: props.modelValue,
|
32
|
-
userInput: null
|
33
|
-
});
|
34
|
-
const { formItem } = useFormItem();
|
35
|
-
const minDisabled = computed(() => isNumber(props.modelValue) && props.modelValue <= props.min);
|
36
|
-
const maxDisabled = computed(() => isNumber(props.modelValue) && props.modelValue >= props.max);
|
37
|
-
const numPrecision = computed(() => {
|
38
|
-
const stepPrecision = getPrecision(props.step);
|
39
|
-
if (!isUndefined(props.precision)) {
|
40
|
-
if (stepPrecision > props.precision) {
|
41
|
-
debugWarn("InputNumber", "precision should not be less than the decimal places of step");
|
42
|
-
}
|
43
|
-
return props.precision;
|
44
|
-
} else {
|
45
|
-
return Math.max(getPrecision(props.modelValue), stepPrecision);
|
46
|
-
}
|
47
|
-
});
|
48
|
-
const controlsAtRight = computed(() => {
|
49
|
-
return props.controls && props.controlsPosition === "right";
|
50
|
-
});
|
51
|
-
const inputNumberSize = useFormSize();
|
52
|
-
const inputNumberDisabled = useFormDisabled();
|
53
|
-
const displayValue = computed(() => {
|
54
|
-
if (data.userInput !== null) {
|
55
|
-
return data.userInput;
|
56
|
-
}
|
57
|
-
let currentValue = data.currentValue;
|
58
|
-
if (isNil(currentValue))
|
59
|
-
return "";
|
60
|
-
if (isNumber(currentValue)) {
|
61
|
-
if (Number.isNaN(currentValue))
|
62
|
-
return "";
|
63
|
-
if (!isUndefined(props.precision)) {
|
64
|
-
currentValue = currentValue.toFixed(props.precision);
|
65
|
-
}
|
66
|
-
}
|
67
|
-
return currentValue;
|
68
|
-
});
|
69
|
-
const toPrecision = (num, pre) => {
|
70
|
-
if (isUndefined(pre))
|
71
|
-
pre = numPrecision.value;
|
72
|
-
if (pre === 0)
|
73
|
-
return Math.round(num);
|
74
|
-
let snum = String(num);
|
75
|
-
const pointPos = snum.indexOf(".");
|
76
|
-
if (pointPos === -1)
|
77
|
-
return num;
|
78
|
-
const nums = snum.replace(".", "").split("");
|
79
|
-
const datum = nums[pointPos + pre];
|
80
|
-
if (!datum)
|
81
|
-
return num;
|
82
|
-
const length = snum.length;
|
83
|
-
if (snum.charAt(length - 1) === "5") {
|
84
|
-
snum = `${snum.slice(0, Math.max(0, length - 1))}6`;
|
85
|
-
}
|
86
|
-
return Number.parseFloat(Number(snum).toFixed(pre));
|
87
|
-
};
|
88
|
-
const getPrecision = (value) => {
|
89
|
-
if (isNil(value))
|
90
|
-
return 0;
|
91
|
-
const valueString = value.toString();
|
92
|
-
const dotPosition = valueString.indexOf(".");
|
93
|
-
let precision = 0;
|
94
|
-
if (dotPosition !== -1) {
|
95
|
-
precision = valueString.length - dotPosition - 1;
|
96
|
-
}
|
97
|
-
return precision;
|
98
|
-
};
|
99
|
-
const ensurePrecision = (val, coefficient = 1) => {
|
100
|
-
if (!isNumber(val))
|
101
|
-
return data.currentValue;
|
102
|
-
return toPrecision(val + props.step * coefficient);
|
103
|
-
};
|
104
|
-
const increase = () => {
|
105
|
-
if (props.readonly || inputNumberDisabled.value || maxDisabled.value)
|
106
|
-
return;
|
107
|
-
const value = Number(displayValue.value) || 0;
|
108
|
-
const newVal = ensurePrecision(value);
|
109
|
-
setCurrentValue(newVal);
|
110
|
-
emit(INPUT_EVENT, data.currentValue);
|
111
|
-
setCurrentValueToModelValue();
|
112
|
-
};
|
113
|
-
const decrease = () => {
|
114
|
-
if (props.readonly || inputNumberDisabled.value || minDisabled.value)
|
115
|
-
return;
|
116
|
-
const value = Number(displayValue.value) || 0;
|
117
|
-
const newVal = ensurePrecision(value, -1);
|
118
|
-
setCurrentValue(newVal);
|
119
|
-
emit(INPUT_EVENT, data.currentValue);
|
120
|
-
setCurrentValueToModelValue();
|
121
|
-
};
|
122
|
-
const verifyValue = (value, update) => {
|
123
|
-
const { max, min, step, precision, stepStrictly, valueOnClear } = props;
|
124
|
-
if (max < min) {
|
125
|
-
throwError("InputNumber", "min should not be greater than max.");
|
126
|
-
}
|
127
|
-
let newVal = Number(value);
|
128
|
-
if (isNil(value) || Number.isNaN(newVal)) {
|
129
|
-
return null;
|
130
|
-
}
|
131
|
-
if (value === "") {
|
132
|
-
if (valueOnClear === null) {
|
133
|
-
return null;
|
134
|
-
}
|
135
|
-
newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
136
|
-
}
|
137
|
-
if (stepStrictly) {
|
138
|
-
newVal = toPrecision(Math.round(newVal / step) * step, precision);
|
139
|
-
if (newVal !== value) {
|
140
|
-
update && emit(UPDATE_MODEL_EVENT, newVal);
|
141
|
-
}
|
142
|
-
}
|
143
|
-
if (!isUndefined(precision)) {
|
144
|
-
newVal = toPrecision(newVal, precision);
|
145
|
-
}
|
146
|
-
if (newVal > max || newVal < min) {
|
147
|
-
newVal = newVal > max ? max : min;
|
148
|
-
update && emit(UPDATE_MODEL_EVENT, newVal);
|
149
|
-
}
|
150
|
-
return newVal;
|
151
|
-
};
|
152
|
-
const setCurrentValue = (value, emitChange = true) => {
|
153
|
-
var _a;
|
154
|
-
const oldVal = data.currentValue;
|
155
|
-
const newVal = verifyValue(value);
|
156
|
-
if (!emitChange) {
|
157
|
-
emit(UPDATE_MODEL_EVENT, newVal);
|
158
|
-
return;
|
159
|
-
}
|
160
|
-
if (oldVal === newVal && value)
|
161
|
-
return;
|
162
|
-
data.userInput = null;
|
163
|
-
emit(UPDATE_MODEL_EVENT, newVal);
|
164
|
-
if (oldVal !== newVal) {
|
165
|
-
emit(CHANGE_EVENT, newVal, oldVal);
|
166
|
-
}
|
167
|
-
if (props.validateEvent) {
|
168
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
|
169
|
-
}
|
170
|
-
data.currentValue = newVal;
|
171
|
-
};
|
172
|
-
const handleInput = (value) => {
|
173
|
-
data.userInput = value;
|
174
|
-
const newVal = value === "" ? null : Number(value);
|
175
|
-
emit(INPUT_EVENT, newVal);
|
176
|
-
setCurrentValue(newVal, false);
|
177
|
-
};
|
178
|
-
const handleInputChange = (value) => {
|
179
|
-
const newVal = value !== "" ? Number(value) : "";
|
180
|
-
if (isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
|
181
|
-
setCurrentValue(newVal);
|
182
|
-
}
|
183
|
-
setCurrentValueToModelValue();
|
184
|
-
data.userInput = null;
|
185
|
-
};
|
186
|
-
const focus = () => {
|
187
|
-
var _a, _b;
|
188
|
-
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
189
|
-
};
|
190
|
-
const blur = () => {
|
191
|
-
var _a, _b;
|
192
|
-
(_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
193
|
-
};
|
194
|
-
const handleFocus = (event) => {
|
195
|
-
emit("focus", event);
|
196
|
-
};
|
197
|
-
const handleBlur = (event) => {
|
198
|
-
var _a, _b;
|
199
|
-
data.userInput = null;
|
200
|
-
if (data.currentValue === null && ((_a = input.value) == null ? void 0 : _a.input)) {
|
201
|
-
input.value.input.value = "";
|
202
|
-
}
|
203
|
-
emit("blur", event);
|
204
|
-
if (props.validateEvent) {
|
205
|
-
(_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn(err));
|
206
|
-
}
|
207
|
-
};
|
208
|
-
const setCurrentValueToModelValue = () => {
|
209
|
-
if (data.currentValue !== props.modelValue) {
|
210
|
-
data.currentValue = props.modelValue;
|
211
|
-
}
|
212
|
-
};
|
213
|
-
const handleWheel = (e) => {
|
214
|
-
if (document.activeElement === e.target)
|
215
|
-
e.preventDefault();
|
216
|
-
};
|
217
|
-
watch(() => props.modelValue, (value, oldValue) => {
|
218
|
-
const newValue = verifyValue(value, true);
|
219
|
-
if (data.userInput === null && newValue !== oldValue) {
|
220
|
-
data.currentValue = newValue;
|
221
|
-
}
|
222
|
-
}, { immediate: true });
|
223
|
-
onMounted(() => {
|
224
|
-
var _a;
|
225
|
-
const { min, max, modelValue } = props;
|
226
|
-
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
227
|
-
innerInput.setAttribute("role", "spinbutton");
|
228
|
-
if (Number.isFinite(max)) {
|
229
|
-
innerInput.setAttribute("aria-valuemax", String(max));
|
230
|
-
} else {
|
231
|
-
innerInput.removeAttribute("aria-valuemax");
|
232
|
-
}
|
233
|
-
if (Number.isFinite(min)) {
|
234
|
-
innerInput.setAttribute("aria-valuemin", String(min));
|
235
|
-
} else {
|
236
|
-
innerInput.removeAttribute("aria-valuemin");
|
237
|
-
}
|
238
|
-
innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
|
239
|
-
innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
|
240
|
-
if (!isNumber(modelValue) && modelValue != null) {
|
241
|
-
let val = Number(modelValue);
|
242
|
-
if (Number.isNaN(val)) {
|
243
|
-
val = null;
|
244
|
-
}
|
245
|
-
emit(UPDATE_MODEL_EVENT, val);
|
246
|
-
}
|
247
|
-
innerInput.addEventListener("wheel", handleWheel, { passive: false });
|
248
|
-
});
|
249
|
-
onUpdated(() => {
|
250
|
-
var _a, _b;
|
251
|
-
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
252
|
-
innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${(_b = data.currentValue) != null ? _b : ""}`);
|
253
|
-
});
|
254
|
-
expose({
|
255
|
-
focus,
|
256
|
-
blur
|
257
|
-
});
|
258
|
-
return (_ctx, _cache) => {
|
259
|
-
return openBlock(), createElementBlock("div", {
|
260
|
-
class: normalizeClass([
|
261
|
-
unref(ns).b(),
|
262
|
-
unref(ns).m(unref(inputNumberSize)),
|
263
|
-
unref(ns).is("disabled", unref(inputNumberDisabled)),
|
264
|
-
unref(ns).is("without-controls", !_ctx.controls),
|
265
|
-
unref(ns).is("controls-right", unref(controlsAtRight))
|
266
|
-
]),
|
267
|
-
onDragstart: withModifiers(() => {
|
268
|
-
}, ["prevent"])
|
269
|
-
}, [
|
270
|
-
_ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
|
271
|
-
key: 0,
|
272
|
-
role: "button",
|
273
|
-
"aria-label": unref(t)("el.inputNumber.decrease"),
|
274
|
-
class: normalizeClass([unref(ns).e("decrease"), unref(ns).is("disabled", unref(minDisabled))]),
|
275
|
-
onKeydown: withKeys(decrease, ["enter"])
|
276
|
-
}, [
|
277
|
-
renderSlot(_ctx.$slots, "decrease-icon", {}, () => [
|
278
|
-
createVNode(unref(ElIcon), null, {
|
279
|
-
default: withCtx(() => [
|
280
|
-
unref(controlsAtRight) ? (openBlock(), createBlock(unref(ArrowDown), { key: 0 })) : (openBlock(), createBlock(unref(Minus), { key: 1 }))
|
281
|
-
]),
|
282
|
-
_: 1
|
283
|
-
})
|
284
|
-
])
|
285
|
-
], 42, ["aria-label", "onKeydown"])), [
|
286
|
-
[unref(vRepeatClick), decrease]
|
287
|
-
]) : createCommentVNode("v-if", true),
|
288
|
-
_ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
|
289
|
-
key: 1,
|
290
|
-
role: "button",
|
291
|
-
"aria-label": unref(t)("el.inputNumber.increase"),
|
292
|
-
class: normalizeClass([unref(ns).e("increase"), unref(ns).is("disabled", unref(maxDisabled))]),
|
293
|
-
onKeydown: withKeys(increase, ["enter"])
|
294
|
-
}, [
|
295
|
-
renderSlot(_ctx.$slots, "increase-icon", {}, () => [
|
296
|
-
createVNode(unref(ElIcon), null, {
|
297
|
-
default: withCtx(() => [
|
298
|
-
unref(controlsAtRight) ? (openBlock(), createBlock(unref(ArrowUp), { key: 0 })) : (openBlock(), createBlock(unref(Plus), { key: 1 }))
|
299
|
-
]),
|
300
|
-
_: 1
|
301
|
-
})
|
302
|
-
])
|
303
|
-
], 42, ["aria-label", "onKeydown"])), [
|
304
|
-
[unref(vRepeatClick), increase]
|
305
|
-
]) : createCommentVNode("v-if", true),
|
306
|
-
createVNode(unref(ElInput), {
|
307
|
-
id: _ctx.id,
|
308
|
-
ref_key: "input",
|
309
|
-
ref: input,
|
310
|
-
type: "number",
|
311
|
-
step: _ctx.step,
|
312
|
-
"model-value": unref(displayValue),
|
313
|
-
placeholder: _ctx.placeholder,
|
314
|
-
readonly: _ctx.readonly,
|
315
|
-
disabled: unref(inputNumberDisabled),
|
316
|
-
size: unref(inputNumberSize),
|
317
|
-
max: _ctx.max,
|
318
|
-
min: _ctx.min,
|
319
|
-
name: _ctx.name,
|
320
|
-
"aria-label": _ctx.ariaLabel,
|
321
|
-
"validate-event": false,
|
322
|
-
onKeydown: [
|
323
|
-
withKeys(withModifiers(increase, ["prevent"]), ["up"]),
|
324
|
-
withKeys(withModifiers(decrease, ["prevent"]), ["down"])
|
325
|
-
],
|
326
|
-
onBlur: handleBlur,
|
327
|
-
onFocus: handleFocus,
|
328
|
-
onInput: handleInput,
|
329
|
-
onChange: handleInputChange
|
330
|
-
}, createSlots({
|
331
|
-
_: 2
|
332
|
-
}, [
|
333
|
-
_ctx.$slots.prefix ? {
|
334
|
-
name: "prefix",
|
335
|
-
fn: withCtx(() => [
|
336
|
-
renderSlot(_ctx.$slots, "prefix")
|
337
|
-
])
|
338
|
-
} : void 0,
|
339
|
-
_ctx.$slots.suffix ? {
|
340
|
-
name: "suffix",
|
341
|
-
fn: withCtx(() => [
|
342
|
-
renderSlot(_ctx.$slots, "suffix")
|
343
|
-
])
|
344
|
-
} : void 0
|
345
|
-
]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "onKeydown"])
|
346
|
-
], 42, ["onDragstart"]);
|
347
|
-
};
|
348
|
-
}
|
349
|
-
});
|
350
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-number.vue"]]);
|
58
|
+
const inputNumberEmits = {
|
59
|
+
[CHANGE_EVENT]: (cur, prev) => prev !== cur,
|
60
|
+
blur: (e) => e instanceof FocusEvent,
|
61
|
+
focus: (e) => e instanceof FocusEvent,
|
62
|
+
[INPUT_EVENT]: (val) => isNumber(val) || isNil(val),
|
63
|
+
[UPDATE_MODEL_EVENT]: (val) => isNumber(val) || isNil(val)
|
64
|
+
};
|
351
65
|
|
352
|
-
export {
|
66
|
+
export { inputNumberEmits, inputNumberProps };
|
353
67
|
//# sourceMappingURL=input-number.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input-number.mjs","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 ]\"\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 @keydown.up.prevent=\"increase\"\n @keydown.down.prevent=\"decrease\"\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 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 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 // Solve the accuracy problem of JS decimal calculation by converting the value to integer.\n return toPrecision(val + props.step * coefficient)\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(Math.round(newVal / step) * step, precision)\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 if (oldVal === newVal && value) return\n data.userInput = null\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)\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":[],"mappings":";;;;;;;;;;;;;;;;;mCAsGc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,cAAc,CAAA,CAAA;AACtC,IAAA,MAAM,QAAQ,GAAmB,EAAA,CAAA;AAMjC,IAAA,MAAM,OAAO,QAAe,CAAA;AAAA,MAC1B,cAAc,KAAM,CAAA,UAAA;AAAA,MACpB,SAAW,EAAA,IAAA;AAAA,KACZ,CAAA,CAAA;AAED,IAAM,MAAA,EAAE,QAAS,EAAA,GAAI,WAAY,EAAA,CAAA;AAEjC,IAAA,MAAM,WAAc,GAAA,QAAA,CAAA,MAAA,QAAA,CAAA,KAAA,CAAA,UAAA,CAAA,IAAA,KAAA,CAAA,UAAA,IAAA,KAAA,CAAA,GAAA,CAAA,CAAA;AAAA,IAAA,iBACH,GAAA,eAAqB,QAAA,CAAM,gBAAoB,CAAA,IAAA,KAAA,CAAA,UAAA,IAAA,KAAA,CAAA,GAAA,CAAA,CAAA;AAAA,IAChE,MAAA,YAAA,GAAA,QAAA,CAAA,MAAA;AACA,MAAA,MAAoB,aAAA,GAAA,YAAA,CAAA,KAAA,CAAA,IAAA,CAAA,CAAA;AAAA,MAClB,gBAAe,CAAA,eAAqB,CAAA,EAAA;AAA0B,QAChE,IAAA,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AA;AACrB,MAAM,IAAA,CAAA,QAAA,CAAA,UAAA,CAAA,IAAA,UAAA,IAAA,IAAA,EAAA;AAAA,QACR,IAAA,GAAA,GAAA,MAAA,CAAA,UAAA,CAAA,CAAA;AACA,QAAA,IAAA;AAA6B,UAC/B,GAAA,GAAA,IAAA,CAAA;AACA,SAAA;AAAoE,QACrE,IAAA,CAAA,kBAAA,EAAA,GAAA,CAAA,CAAA;AACD,OAAA;AACE,MAAM,UAAA,CAAA,gBAA0B,CAAA,OAAA,EAAA,WAAA,EAAA,EAAA,OAAA,EAAA,KAAA,EAAA,CAAA,CAAA;AAChC,KAAA,CAAA,CAAA;AAAsE,IACxE,SAAC,CAAA,MAAA;AACD,MAAa,IAAA,EAAA,EAAA,EAAA,CAAA;AAAA,MAAA,MAAA,UAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,CAAA;AAAA,MAEX,UAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,YAAA,CAAA,eAAA,EAAA,CAAA,EAAA,CAAA,EAAA,GAAA,IAAA,CAAA,YAAA,KAAA,IAAA,GAAA,EAAA,GAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,KAAA,CAAA,CAAA;AAAA,IAEA,MAAA,CAAA;AAAA,MACD,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"input-number.mjs","sources":["../../../../../../packages/components/input-number/src/input-number.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, isNumber } from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport type { ExtractPropTypes } 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.POSITIVE_INFINITY,\n },\n /**\n * @description the minimum allowed value\n */\n min: {\n type: Number,\n default: Number.NEGATIVE_INFINITY,\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: Boolean,\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: [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} as const)\nexport type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>\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":[],"mappings":";;;;;;;AAQY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM,CAAC,iBAAiB;AACrC,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM,CAAC,iBAAiB;AACrC,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;AACxB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,MAAM,EAAE,CAAC,EAAE,EAAE,OAAO,CAAC;AACzB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC;AAChC,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,GAAG,KAAK,IAAI,IAAI,QAAQ,CAAC,GAAG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