@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.
Files changed (610) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +42 -17
  4. package/dist/index.full.min.js +14 -14
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +14 -14
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +42 -18
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hi.js +1 -1
  94. package/dist/locale/hi.min.js +1 -1
  95. package/dist/locale/hi.min.mjs +1 -1
  96. package/dist/locale/hi.mjs +1 -1
  97. package/dist/locale/hr.js +1 -1
  98. package/dist/locale/hr.min.js +1 -1
  99. package/dist/locale/hr.min.mjs +1 -1
  100. package/dist/locale/hr.mjs +1 -1
  101. package/dist/locale/hu.js +1 -1
  102. package/dist/locale/hu.min.js +1 -1
  103. package/dist/locale/hu.min.mjs +1 -1
  104. package/dist/locale/hu.mjs +1 -1
  105. package/dist/locale/hy-am.js +1 -1
  106. package/dist/locale/hy-am.min.js +1 -1
  107. package/dist/locale/hy-am.min.mjs +1 -1
  108. package/dist/locale/hy-am.mjs +1 -1
  109. package/dist/locale/id.js +1 -1
  110. package/dist/locale/id.min.js +1 -1
  111. package/dist/locale/id.min.mjs +1 -1
  112. package/dist/locale/id.mjs +1 -1
  113. package/dist/locale/it.js +1 -1
  114. package/dist/locale/it.min.js +1 -1
  115. package/dist/locale/it.min.mjs +1 -1
  116. package/dist/locale/it.mjs +1 -1
  117. package/dist/locale/ja.js +1 -1
  118. package/dist/locale/ja.min.js +1 -1
  119. package/dist/locale/ja.min.mjs +1 -1
  120. package/dist/locale/ja.mjs +1 -1
  121. package/dist/locale/kk.js +1 -1
  122. package/dist/locale/kk.min.js +1 -1
  123. package/dist/locale/kk.min.mjs +1 -1
  124. package/dist/locale/kk.mjs +1 -1
  125. package/dist/locale/km.js +1 -1
  126. package/dist/locale/km.min.js +1 -1
  127. package/dist/locale/km.min.mjs +1 -1
  128. package/dist/locale/km.mjs +1 -1
  129. package/dist/locale/ko.js +1 -1
  130. package/dist/locale/ko.min.js +1 -1
  131. package/dist/locale/ko.min.mjs +1 -1
  132. package/dist/locale/ko.mjs +1 -1
  133. package/dist/locale/ku.js +1 -1
  134. package/dist/locale/ku.min.js +1 -1
  135. package/dist/locale/ku.min.mjs +1 -1
  136. package/dist/locale/ku.mjs +1 -1
  137. package/dist/locale/ky.js +1 -1
  138. package/dist/locale/ky.min.js +1 -1
  139. package/dist/locale/ky.min.mjs +1 -1
  140. package/dist/locale/ky.mjs +1 -1
  141. package/dist/locale/lo.js +1 -1
  142. package/dist/locale/lo.min.js +1 -1
  143. package/dist/locale/lo.min.mjs +1 -1
  144. package/dist/locale/lo.mjs +1 -1
  145. package/dist/locale/lt.js +1 -1
  146. package/dist/locale/lt.min.js +1 -1
  147. package/dist/locale/lt.min.mjs +1 -1
  148. package/dist/locale/lt.mjs +1 -1
  149. package/dist/locale/lv.js +1 -1
  150. package/dist/locale/lv.min.js +1 -1
  151. package/dist/locale/lv.min.mjs +1 -1
  152. package/dist/locale/lv.mjs +1 -1
  153. package/dist/locale/mg.js +1 -1
  154. package/dist/locale/mg.min.js +1 -1
  155. package/dist/locale/mg.min.mjs +1 -1
  156. package/dist/locale/mg.mjs +1 -1
  157. package/dist/locale/mn.js +1 -1
  158. package/dist/locale/mn.min.js +1 -1
  159. package/dist/locale/mn.min.mjs +1 -1
  160. package/dist/locale/mn.mjs +1 -1
  161. package/dist/locale/ms.js +1 -1
  162. package/dist/locale/ms.min.js +1 -1
  163. package/dist/locale/ms.min.mjs +1 -1
  164. package/dist/locale/ms.mjs +1 -1
  165. package/dist/locale/my.js +1 -1
  166. package/dist/locale/my.min.js +1 -1
  167. package/dist/locale/my.min.mjs +1 -1
  168. package/dist/locale/my.mjs +1 -1
  169. package/dist/locale/nb-no.js +1 -1
  170. package/dist/locale/nb-no.min.js +1 -1
  171. package/dist/locale/nb-no.min.mjs +1 -1
  172. package/dist/locale/nb-no.mjs +1 -1
  173. package/dist/locale/nl.js +1 -1
  174. package/dist/locale/nl.min.js +1 -1
  175. package/dist/locale/nl.min.mjs +1 -1
  176. package/dist/locale/nl.mjs +1 -1
  177. package/dist/locale/no.js +1 -1
  178. package/dist/locale/no.min.js +1 -1
  179. package/dist/locale/no.min.mjs +1 -1
  180. package/dist/locale/no.mjs +1 -1
  181. package/dist/locale/pa.js +1 -1
  182. package/dist/locale/pa.min.js +1 -1
  183. package/dist/locale/pa.min.mjs +1 -1
  184. package/dist/locale/pa.mjs +1 -1
  185. package/dist/locale/pl.js +1 -1
  186. package/dist/locale/pl.min.js +1 -1
  187. package/dist/locale/pl.min.mjs +1 -1
  188. package/dist/locale/pl.mjs +1 -1
  189. package/dist/locale/pt-br.js +1 -1
  190. package/dist/locale/pt-br.min.js +1 -1
  191. package/dist/locale/pt-br.min.mjs +1 -1
  192. package/dist/locale/pt-br.mjs +1 -1
  193. package/dist/locale/pt.js +1 -1
  194. package/dist/locale/pt.min.js +1 -1
  195. package/dist/locale/pt.min.mjs +1 -1
  196. package/dist/locale/pt.mjs +1 -1
  197. package/dist/locale/ro.js +1 -1
  198. package/dist/locale/ro.min.js +1 -1
  199. package/dist/locale/ro.min.mjs +1 -1
  200. package/dist/locale/ro.mjs +1 -1
  201. package/dist/locale/ru.js +1 -1
  202. package/dist/locale/ru.min.js +1 -1
  203. package/dist/locale/ru.min.mjs +1 -1
  204. package/dist/locale/ru.mjs +1 -1
  205. package/dist/locale/sk.js +1 -1
  206. package/dist/locale/sk.min.js +1 -1
  207. package/dist/locale/sk.min.mjs +1 -1
  208. package/dist/locale/sk.mjs +1 -1
  209. package/dist/locale/sl.js +1 -1
  210. package/dist/locale/sl.min.js +1 -1
  211. package/dist/locale/sl.min.mjs +1 -1
  212. package/dist/locale/sl.mjs +1 -1
  213. package/dist/locale/sr.js +1 -1
  214. package/dist/locale/sr.min.js +1 -1
  215. package/dist/locale/sr.min.mjs +1 -1
  216. package/dist/locale/sr.mjs +1 -1
  217. package/dist/locale/sv.js +1 -1
  218. package/dist/locale/sv.min.js +1 -1
  219. package/dist/locale/sv.min.mjs +1 -1
  220. package/dist/locale/sv.mjs +1 -1
  221. package/dist/locale/sw.js +1 -1
  222. package/dist/locale/sw.min.js +1 -1
  223. package/dist/locale/sw.min.mjs +1 -1
  224. package/dist/locale/sw.mjs +1 -1
  225. package/dist/locale/ta.js +1 -1
  226. package/dist/locale/ta.min.js +1 -1
  227. package/dist/locale/ta.min.mjs +1 -1
  228. package/dist/locale/ta.mjs +1 -1
  229. package/dist/locale/te.js +1 -1
  230. package/dist/locale/te.min.js +1 -1
  231. package/dist/locale/te.min.mjs +1 -1
  232. package/dist/locale/te.mjs +1 -1
  233. package/dist/locale/th.js +1 -1
  234. package/dist/locale/th.min.js +1 -1
  235. package/dist/locale/th.min.mjs +1 -1
  236. package/dist/locale/th.mjs +1 -1
  237. package/dist/locale/tk.js +1 -1
  238. package/dist/locale/tk.min.js +1 -1
  239. package/dist/locale/tk.min.mjs +1 -1
  240. package/dist/locale/tk.mjs +1 -1
  241. package/dist/locale/tr.js +1 -1
  242. package/dist/locale/tr.min.js +1 -1
  243. package/dist/locale/tr.min.mjs +1 -1
  244. package/dist/locale/tr.mjs +1 -1
  245. package/dist/locale/ug-cn.js +1 -1
  246. package/dist/locale/ug-cn.min.js +1 -1
  247. package/dist/locale/ug-cn.min.mjs +1 -1
  248. package/dist/locale/ug-cn.mjs +1 -1
  249. package/dist/locale/uk.js +1 -1
  250. package/dist/locale/uk.min.js +1 -1
  251. package/dist/locale/uk.min.mjs +1 -1
  252. package/dist/locale/uk.mjs +1 -1
  253. package/dist/locale/uz-uz.js +1 -1
  254. package/dist/locale/uz-uz.min.js +1 -1
  255. package/dist/locale/uz-uz.min.mjs +1 -1
  256. package/dist/locale/uz-uz.mjs +1 -1
  257. package/dist/locale/vi.js +1 -1
  258. package/dist/locale/vi.min.js +1 -1
  259. package/dist/locale/vi.min.mjs +1 -1
  260. package/dist/locale/vi.mjs +1 -1
  261. package/dist/locale/zh-cn.js +1 -1
  262. package/dist/locale/zh-cn.min.js +1 -1
  263. package/dist/locale/zh-cn.min.mjs +1 -1
  264. package/dist/locale/zh-cn.mjs +1 -1
  265. package/dist/locale/zh-hk.js +1 -1
  266. package/dist/locale/zh-hk.min.js +1 -1
  267. package/dist/locale/zh-hk.min.mjs +1 -1
  268. package/dist/locale/zh-hk.mjs +1 -1
  269. package/dist/locale/zh-mo.js +1 -1
  270. package/dist/locale/zh-mo.min.js +1 -1
  271. package/dist/locale/zh-mo.min.mjs +1 -1
  272. package/dist/locale/zh-mo.mjs +1 -1
  273. package/dist/locale/zh-tw.js +1 -1
  274. package/dist/locale/zh-tw.min.js +1 -1
  275. package/dist/locale/zh-tw.min.mjs +1 -1
  276. package/dist/locale/zh-tw.mjs +1 -1
  277. package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
  278. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  279. package/es/components/badge/index.mjs +2 -2
  280. package/es/components/badge/src/badge.mjs +83 -31
  281. package/es/components/badge/src/badge.mjs.map +1 -1
  282. package/es/components/badge/src/badge2.mjs +31 -83
  283. package/es/components/badge/src/badge2.mjs.map +1 -1
  284. package/es/components/card/index.mjs +2 -2
  285. package/es/components/card/src/card.mjs +73 -22
  286. package/es/components/card/src/card.mjs.map +1 -1
  287. package/es/components/card/src/card2.mjs +22 -73
  288. package/es/components/card/src/card2.mjs.map +1 -1
  289. package/es/components/cascader/src/cascader.mjs +1 -1
  290. package/es/components/checkbox/index.mjs +2 -2
  291. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  292. package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
  293. package/es/components/checkbox/src/checkbox.mjs +62 -134
  294. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  295. package/es/components/checkbox/src/checkbox2.mjs +134 -62
  296. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  297. package/es/components/col/index.mjs +2 -2
  298. package/es/components/col/src/col.mjs +65 -42
  299. package/es/components/col/src/col.mjs.map +1 -1
  300. package/es/components/col/src/col2.mjs +42 -65
  301. package/es/components/col/src/col2.mjs.map +1 -1
  302. package/es/components/collapse/index.mjs +2 -2
  303. package/es/components/collapse/src/collapse-item.mjs +118 -17
  304. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  305. package/es/components/collapse/src/collapse-item2.mjs +17 -118
  306. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  307. package/es/components/countdown/index.mjs +2 -2
  308. package/es/components/countdown/src/countdown.mjs +20 -83
  309. package/es/components/countdown/src/countdown.mjs.map +1 -1
  310. package/es/components/countdown/src/countdown2.mjs +83 -20
  311. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  312. package/es/components/dropdown/src/dropdown-item-impl.mjs +6 -4
  313. package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -1
  314. package/es/components/dropdown/src/dropdown-item.mjs +12 -4
  315. package/es/components/dropdown/src/dropdown-item.mjs.map +1 -1
  316. package/es/components/empty/index.mjs +2 -2
  317. package/es/components/empty/src/empty.mjs +10 -80
  318. package/es/components/empty/src/empty.mjs.map +1 -1
  319. package/es/components/empty/src/empty2.mjs +80 -10
  320. package/es/components/empty/src/empty2.mjs.map +1 -1
  321. package/es/components/icon/index.mjs +2 -2
  322. package/es/components/icon/src/icon.mjs +7 -39
  323. package/es/components/icon/src/icon.mjs.map +1 -1
  324. package/es/components/icon/src/icon2.mjs +39 -7
  325. package/es/components/icon/src/icon2.mjs.map +1 -1
  326. package/es/components/image/index.mjs +2 -2
  327. package/es/components/image/src/image.mjs +68 -279
  328. package/es/components/image/src/image.mjs.map +1 -1
  329. package/es/components/image/src/image2.mjs +279 -68
  330. package/es/components/image/src/image2.mjs.map +1 -1
  331. package/es/components/index.mjs +25 -24
  332. package/es/components/index.mjs.map +1 -1
  333. package/es/components/input-number/index.mjs +2 -2
  334. package/es/components/input-number/src/input-number.mjs +73 -414
  335. package/es/components/input-number/src/input-number.mjs.map +1 -1
  336. package/es/components/input-number/src/input-number2.mjs +414 -73
  337. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  338. package/es/components/input-tag/index.mjs +2 -2
  339. package/es/components/input-tag/src/input-tag.mjs +82 -344
  340. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  341. package/es/components/input-tag/src/input-tag2.mjs +344 -82
  342. package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
  343. package/es/components/link/index.mjs +2 -2
  344. package/es/components/link/src/link.mjs +24 -80
  345. package/es/components/link/src/link.mjs.map +1 -1
  346. package/es/components/link/src/link2.mjs +80 -24
  347. package/es/components/link/src/link2.mjs.map +1 -1
  348. package/es/components/mention/src/mention-dropdown.mjs +14 -205
  349. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  350. package/es/components/mention/src/mention-dropdown2.mjs +205 -14
  351. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  352. package/es/components/mention/src/mention2.mjs +1 -1
  353. package/es/components/notification/index.mjs +1 -1
  354. package/es/components/notification/src/notification.mjs +72 -174
  355. package/es/components/notification/src/notification.mjs.map +1 -1
  356. package/es/components/notification/src/notification2.mjs +174 -72
  357. package/es/components/notification/src/notification2.mjs.map +1 -1
  358. package/es/components/notification/src/notify.mjs +2 -2
  359. package/es/components/page-header/index.mjs +2 -2
  360. package/es/components/page-header/src/page-header.mjs +15 -149
  361. package/es/components/page-header/src/page-header.mjs.map +1 -1
  362. package/es/components/page-header/src/page-header2.mjs +149 -15
  363. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  364. package/es/components/pagination/src/components/total.mjs +27 -6
  365. package/es/components/pagination/src/components/total.mjs.map +1 -1
  366. package/es/components/pagination/src/components/total2.mjs +6 -27
  367. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  368. package/es/components/pagination/src/pagination.mjs +1 -1
  369. package/es/components/popconfirm/index.mjs +2 -2
  370. package/es/components/popconfirm/src/popconfirm.mjs +49 -163
  371. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  372. package/es/components/popconfirm/src/popconfirm2.mjs +163 -49
  373. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  374. package/es/components/popper/index.mjs +2 -2
  375. package/es/components/popper/src/arrow.mjs +7 -38
  376. package/es/components/popper/src/arrow.mjs.map +1 -1
  377. package/es/components/popper/src/arrow2.mjs +38 -7
  378. package/es/components/popper/src/arrow2.mjs.map +1 -1
  379. package/es/components/popper/src/content.mjs +1 -1
  380. package/es/components/rate/index.mjs +2 -2
  381. package/es/components/rate/src/rate.mjs +85 -295
  382. package/es/components/rate/src/rate.mjs.map +1 -1
  383. package/es/components/rate/src/rate2.mjs +295 -85
  384. package/es/components/rate/src/rate2.mjs.map +1 -1
  385. package/es/components/scrollbar/index.mjs +2 -2
  386. package/es/components/scrollbar/src/scrollbar.mjs +56 -244
  387. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  388. package/es/components/scrollbar/src/scrollbar2.mjs +244 -56
  389. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  390. package/es/components/select/index.mjs +2 -2
  391. package/es/components/select/src/select.mjs +152 -728
  392. package/es/components/select/src/select.mjs.map +1 -1
  393. package/es/components/select/src/select2.mjs +728 -152
  394. package/es/components/select/src/select2.mjs.map +1 -1
  395. package/es/components/select-v2/src/defaults.mjs +1 -1
  396. package/es/components/skeleton/index.mjs +2 -2
  397. package/es/components/skeleton/src/skeleton.mjs +17 -67
  398. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  399. package/es/components/skeleton/src/skeleton2.mjs +67 -17
  400. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  401. package/es/components/tag/index.mjs +2 -2
  402. package/es/components/tag/src/tag.mjs +26 -131
  403. package/es/components/tag/src/tag.mjs.map +1 -1
  404. package/es/components/tag/src/tag2.mjs +131 -26
  405. package/es/components/tag/src/tag2.mjs.map +1 -1
  406. package/es/components/timeline/index.mjs +1 -0
  407. package/es/components/timeline/index.mjs.map +1 -1
  408. package/es/components/timeline/src/timeline-item2.mjs +11 -2
  409. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  410. package/es/components/timeline/src/timeline.d.ts +14 -4
  411. package/es/components/timeline/src/timeline.mjs +15 -7
  412. package/es/components/timeline/src/timeline.mjs.map +1 -1
  413. package/es/components/timeline/src/tokens.d.ts +6 -0
  414. package/es/components/timeline/src/tokens.mjs.map +1 -1
  415. package/es/components/tooltip/src/tooltip.mjs +1 -1
  416. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  417. package/es/components/transfer/index.mjs +2 -2
  418. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  419. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  420. package/es/components/transfer/src/transfer-panel.mjs +20 -173
  421. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  422. package/es/components/transfer/src/transfer-panel2.mjs +173 -20
  423. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  424. package/es/components/transfer/src/transfer.mjs +69 -203
  425. package/es/components/transfer/src/transfer.mjs.map +1 -1
  426. package/es/components/transfer/src/transfer2.mjs +203 -69
  427. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  428. package/es/components/tree-select/src/tree-select.mjs +1 -1
  429. package/es/components/upload/index.mjs +1 -1
  430. package/es/components/upload/src/upload-list.mjs +206 -27
  431. package/es/components/upload/src/upload-list.mjs.map +1 -1
  432. package/es/components/upload/src/upload-list2.mjs +27 -206
  433. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  434. package/es/components/upload/src/upload2.mjs +1 -1
  435. package/es/index.mjs +25 -24
  436. package/es/index.mjs.map +1 -1
  437. package/es/version.d.ts +1 -1
  438. package/es/version.mjs +1 -1
  439. package/es/version.mjs.map +1 -1
  440. package/lib/components/autocomplete/src/autocomplete2.js +1 -1
  441. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  442. package/lib/components/badge/index.js +2 -2
  443. package/lib/components/badge/src/badge.js +83 -31
  444. package/lib/components/badge/src/badge.js.map +1 -1
  445. package/lib/components/badge/src/badge2.js +31 -83
  446. package/lib/components/badge/src/badge2.js.map +1 -1
  447. package/lib/components/card/index.js +2 -2
  448. package/lib/components/card/src/card.js +73 -23
  449. package/lib/components/card/src/card.js.map +1 -1
  450. package/lib/components/card/src/card2.js +23 -73
  451. package/lib/components/card/src/card2.js.map +1 -1
  452. package/lib/components/cascader/src/cascader.js +1 -1
  453. package/lib/components/checkbox/index.js +2 -2
  454. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  455. package/lib/components/checkbox/src/checkbox-group2.js +1 -1
  456. package/lib/components/checkbox/src/checkbox.js +63 -134
  457. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  458. package/lib/components/checkbox/src/checkbox2.js +134 -63
  459. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  460. package/lib/components/col/index.js +2 -2
  461. package/lib/components/col/src/col.js +65 -42
  462. package/lib/components/col/src/col.js.map +1 -1
  463. package/lib/components/col/src/col2.js +42 -65
  464. package/lib/components/col/src/col2.js.map +1 -1
  465. package/lib/components/collapse/index.js +2 -2
  466. package/lib/components/collapse/src/collapse-item.js +118 -17
  467. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  468. package/lib/components/collapse/src/collapse-item2.js +17 -118
  469. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  470. package/lib/components/countdown/index.js +2 -2
  471. package/lib/components/countdown/src/countdown.js +21 -83
  472. package/lib/components/countdown/src/countdown.js.map +1 -1
  473. package/lib/components/countdown/src/countdown2.js +83 -21
  474. package/lib/components/countdown/src/countdown2.js.map +1 -1
  475. package/lib/components/dropdown/src/dropdown-item-impl.js +5 -3
  476. package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -1
  477. package/lib/components/dropdown/src/dropdown-item.js +11 -3
  478. package/lib/components/dropdown/src/dropdown-item.js.map +1 -1
  479. package/lib/components/empty/index.js +2 -2
  480. package/lib/components/empty/src/empty.js +10 -80
  481. package/lib/components/empty/src/empty.js.map +1 -1
  482. package/lib/components/empty/src/empty2.js +80 -10
  483. package/lib/components/empty/src/empty2.js.map +1 -1
  484. package/lib/components/icon/index.js +2 -2
  485. package/lib/components/icon/src/icon.js +7 -39
  486. package/lib/components/icon/src/icon.js.map +1 -1
  487. package/lib/components/icon/src/icon2.js +39 -7
  488. package/lib/components/icon/src/icon2.js.map +1 -1
  489. package/lib/components/image/index.js +2 -2
  490. package/lib/components/image/src/image.js +68 -278
  491. package/lib/components/image/src/image.js.map +1 -1
  492. package/lib/components/image/src/image2.js +278 -68
  493. package/lib/components/image/src/image2.js.map +1 -1
  494. package/lib/components/index.js +26 -24
  495. package/lib/components/index.js.map +1 -1
  496. package/lib/components/input-number/index.js +2 -2
  497. package/lib/components/input-number/src/input-number.js +72 -412
  498. package/lib/components/input-number/src/input-number.js.map +1 -1
  499. package/lib/components/input-number/src/input-number2.js +412 -72
  500. package/lib/components/input-number/src/input-number2.js.map +1 -1
  501. package/lib/components/input-tag/index.js +2 -2
  502. package/lib/components/input-tag/src/input-tag.js +81 -342
  503. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  504. package/lib/components/input-tag/src/input-tag2.js +342 -81
  505. package/lib/components/input-tag/src/input-tag2.js.map +1 -1
  506. package/lib/components/link/index.js +2 -2
  507. package/lib/components/link/src/link.js +25 -80
  508. package/lib/components/link/src/link.js.map +1 -1
  509. package/lib/components/link/src/link2.js +80 -25
  510. package/lib/components/link/src/link2.js.map +1 -1
  511. package/lib/components/mention/src/mention-dropdown.js +15 -205
  512. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  513. package/lib/components/mention/src/mention-dropdown2.js +205 -15
  514. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  515. package/lib/components/mention/src/mention2.js +1 -1
  516. package/lib/components/notification/index.js +1 -1
  517. package/lib/components/notification/src/notification.js +73 -173
  518. package/lib/components/notification/src/notification.js.map +1 -1
  519. package/lib/components/notification/src/notification2.js +173 -73
  520. package/lib/components/notification/src/notification2.js.map +1 -1
  521. package/lib/components/notification/src/notify.js +2 -2
  522. package/lib/components/page-header/index.js +2 -2
  523. package/lib/components/page-header/src/page-header.js +16 -149
  524. package/lib/components/page-header/src/page-header.js.map +1 -1
  525. package/lib/components/page-header/src/page-header2.js +149 -16
  526. package/lib/components/page-header/src/page-header2.js.map +1 -1
  527. package/lib/components/pagination/src/components/total.js +27 -6
  528. package/lib/components/pagination/src/components/total.js.map +1 -1
  529. package/lib/components/pagination/src/components/total2.js +6 -27
  530. package/lib/components/pagination/src/components/total2.js.map +1 -1
  531. package/lib/components/pagination/src/pagination.js +1 -1
  532. package/lib/components/popconfirm/index.js +2 -2
  533. package/lib/components/popconfirm/src/popconfirm.js +50 -163
  534. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  535. package/lib/components/popconfirm/src/popconfirm2.js +163 -50
  536. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  537. package/lib/components/popper/index.js +2 -2
  538. package/lib/components/popper/src/arrow.js +8 -38
  539. package/lib/components/popper/src/arrow.js.map +1 -1
  540. package/lib/components/popper/src/arrow2.js +38 -8
  541. package/lib/components/popper/src/arrow2.js.map +1 -1
  542. package/lib/components/popper/src/content.js +1 -1
  543. package/lib/components/rate/index.js +2 -2
  544. package/lib/components/rate/src/rate.js +85 -294
  545. package/lib/components/rate/src/rate.js.map +1 -1
  546. package/lib/components/rate/src/rate2.js +294 -85
  547. package/lib/components/rate/src/rate2.js.map +1 -1
  548. package/lib/components/scrollbar/index.js +2 -2
  549. package/lib/components/scrollbar/src/scrollbar.js +57 -244
  550. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  551. package/lib/components/scrollbar/src/scrollbar2.js +244 -57
  552. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  553. package/lib/components/select/index.js +2 -2
  554. package/lib/components/select/src/select.js +152 -727
  555. package/lib/components/select/src/select.js.map +1 -1
  556. package/lib/components/select/src/select2.js +727 -152
  557. package/lib/components/select/src/select2.js.map +1 -1
  558. package/lib/components/select-v2/src/defaults.js +1 -1
  559. package/lib/components/skeleton/index.js +2 -2
  560. package/lib/components/skeleton/src/skeleton.js +17 -67
  561. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  562. package/lib/components/skeleton/src/skeleton2.js +67 -17
  563. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  564. package/lib/components/tag/index.js +2 -2
  565. package/lib/components/tag/src/tag.js +27 -131
  566. package/lib/components/tag/src/tag.js.map +1 -1
  567. package/lib/components/tag/src/tag2.js +131 -27
  568. package/lib/components/tag/src/tag2.js.map +1 -1
  569. package/lib/components/timeline/index.js +1 -0
  570. package/lib/components/timeline/index.js.map +1 -1
  571. package/lib/components/timeline/src/timeline-item2.js +10 -1
  572. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  573. package/lib/components/timeline/src/timeline.d.ts +14 -4
  574. package/lib/components/timeline/src/timeline.js +14 -5
  575. package/lib/components/timeline/src/timeline.js.map +1 -1
  576. package/lib/components/timeline/src/tokens.d.ts +6 -0
  577. package/lib/components/timeline/src/tokens.js.map +1 -1
  578. package/lib/components/tooltip/src/tooltip.js +1 -1
  579. package/lib/components/tooltip/src/tooltip2.js +1 -1
  580. package/lib/components/transfer/index.js +2 -2
  581. package/lib/components/transfer/src/composables/use-check.js +1 -1
  582. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  583. package/lib/components/transfer/src/transfer-panel.js +22 -173
  584. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  585. package/lib/components/transfer/src/transfer-panel2.js +173 -22
  586. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  587. package/lib/components/transfer/src/transfer.js +73 -203
  588. package/lib/components/transfer/src/transfer.js.map +1 -1
  589. package/lib/components/transfer/src/transfer2.js +203 -73
  590. package/lib/components/transfer/src/transfer2.js.map +1 -1
  591. package/lib/components/tree-select/src/tree-select.js +1 -1
  592. package/lib/components/upload/index.js +1 -1
  593. package/lib/components/upload/src/upload-list.js +206 -28
  594. package/lib/components/upload/src/upload-list.js.map +1 -1
  595. package/lib/components/upload/src/upload-list2.js +28 -206
  596. package/lib/components/upload/src/upload-list2.js.map +1 -1
  597. package/lib/components/upload/src/upload2.js +1 -1
  598. package/lib/index.js +26 -24
  599. package/lib/index.js.map +1 -1
  600. package/lib/version.d.ts +1 -1
  601. package/lib/version.js +1 -1
  602. package/lib/version.js.map +1 -1
  603. package/package.json +2 -2
  604. package/tags.json +1 -1
  605. package/theme-chalk/el-timeline-item.css +1 -1
  606. package/theme-chalk/el-timeline.css +1 -1
  607. package/theme-chalk/index.css +1 -1
  608. package/theme-chalk/src/timeline-item.scss +55 -4
  609. package/theme-chalk/src/timeline.scss +55 -0
  610. package/web-types.json +1 -1
@@ -1,420 +1,79 @@
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 { ElInput } from '../../input/index.mjs';
4
- import { ElIcon } from '../../icon/index.mjs';
5
- import { ArrowDown, Minus, ArrowUp, Plus } from '@element-plus/icons-vue';
6
- import { inputNumberProps, inputNumberEmits } from './input-number2.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { vRepeatClick } from '../../../directives/repeat-click/index.mjs';
9
- import { getEventCode, getEventKey } from '../../../utils/dom/event.mjs';
10
- import { useLocale } from '../../../hooks/use-locale/index.mjs';
11
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
12
- import { useFormItem } from '../../form/src/hooks/use-form-item.mjs';
13
- import { isNumber, isUndefined } from '../../../utils/types.mjs';
14
- import { debugWarn, throwError } from '../../../utils/error.mjs';
15
- import { useFormSize, useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
16
- import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
17
- import { EVENT_CODE } from '../../../constants/aria.mjs';
18
- import { isString } from '@vue/shared';
2
+ import { buildProps, definePropType } 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';
19
7
 
20
- const _hoisted_1 = ["aria-label"];
21
- const _hoisted_2 = ["aria-label"];
22
- const _sfc_main = defineComponent({
23
- ...{
24
- name: "ElInputNumber"
8
+ const inputNumberProps = buildProps({
9
+ id: {
10
+ type: String,
11
+ default: void 0
25
12
  },
26
- __name: "input-number",
27
- props: inputNumberProps,
28
- emits: inputNumberEmits,
29
- setup(__props, { expose: __expose, emit: __emit }) {
30
- const props = __props;
31
- const emit = __emit;
32
- const { t } = useLocale();
33
- const ns = useNamespace("input-number");
34
- const input = ref();
35
- const data = reactive({
36
- currentValue: props.modelValue,
37
- userInput: null
38
- });
39
- const { formItem } = useFormItem();
40
- const minDisabled = computed(
41
- () => isNumber(props.modelValue) && props.modelValue <= props.min
42
- );
43
- const maxDisabled = computed(
44
- () => isNumber(props.modelValue) && props.modelValue >= props.max
45
- );
46
- const numPrecision = computed(() => {
47
- const stepPrecision = getPrecision(props.step);
48
- if (!isUndefined(props.precision)) {
49
- if (stepPrecision > props.precision) {
50
- debugWarn(
51
- "InputNumber",
52
- "precision should not be less than the decimal places of step"
53
- );
54
- }
55
- return props.precision;
56
- } else {
57
- return Math.max(getPrecision(props.modelValue), stepPrecision);
58
- }
59
- });
60
- const controlsAtRight = computed(() => {
61
- return props.controls && props.controlsPosition === "right";
62
- });
63
- const inputNumberSize = useFormSize();
64
- const inputNumberDisabled = useFormDisabled();
65
- const displayValue = computed(() => {
66
- if (data.userInput !== null) {
67
- return data.userInput;
68
- }
69
- let currentValue = data.currentValue;
70
- if (isNil(currentValue))
71
- return "";
72
- if (isNumber(currentValue)) {
73
- if (Number.isNaN(currentValue))
74
- return "";
75
- if (!isUndefined(props.precision)) {
76
- currentValue = currentValue.toFixed(props.precision);
77
- }
78
- }
79
- return currentValue;
80
- });
81
- const toPrecision = (num, pre) => {
82
- if (isUndefined(pre))
83
- pre = numPrecision.value;
84
- if (pre === 0)
85
- return Math.round(num);
86
- let snum = String(num);
87
- const pointPos = snum.indexOf(".");
88
- if (pointPos === -1)
89
- return num;
90
- const nums = snum.replace(".", "").split("");
91
- const datum = nums[pointPos + pre];
92
- if (!datum)
93
- return num;
94
- const length = snum.length;
95
- if (snum.charAt(length - 1) === "5") {
96
- snum = `${snum.slice(0, Math.max(0, length - 1))}6`;
97
- }
98
- return Number.parseFloat(Number(snum).toFixed(pre));
99
- };
100
- const getPrecision = (value) => {
101
- if (isNil(value))
102
- return 0;
103
- const valueString = value.toString();
104
- const dotPosition = valueString.indexOf(".");
105
- let precision = 0;
106
- if (dotPosition !== -1) {
107
- precision = valueString.length - dotPosition - 1;
108
- }
109
- return precision;
110
- };
111
- const ensurePrecision = (val, coefficient = 1) => {
112
- if (!isNumber(val))
113
- return data.currentValue;
114
- if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
115
- debugWarn(
116
- "InputNumber",
117
- "The value has reached the maximum safe integer limit."
118
- );
119
- return val;
120
- } else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
121
- debugWarn(
122
- "InputNumber",
123
- "The value has reached the minimum safe integer limit."
124
- );
125
- return val;
126
- }
127
- return toPrecision(val + props.step * coefficient);
128
- };
129
- const handleKeydown = (event) => {
130
- const code = getEventCode(event);
131
- const key = getEventKey(event);
132
- if (props.disabledScientific && ["e", "E"].includes(key)) {
133
- event.preventDefault();
134
- return;
135
- }
136
- switch (code) {
137
- case EVENT_CODE.up: {
138
- event.preventDefault();
139
- increase();
140
- break;
141
- }
142
- case EVENT_CODE.down: {
143
- event.preventDefault();
144
- decrease();
145
- break;
146
- }
147
- }
148
- };
149
- const increase = () => {
150
- if (props.readonly || inputNumberDisabled.value || maxDisabled.value)
151
- return;
152
- const value = Number(displayValue.value) || 0;
153
- const newVal = ensurePrecision(value);
154
- setCurrentValue(newVal);
155
- emit(INPUT_EVENT, data.currentValue);
156
- setCurrentValueToModelValue();
157
- };
158
- const decrease = () => {
159
- if (props.readonly || inputNumberDisabled.value || minDisabled.value)
160
- return;
161
- const value = Number(displayValue.value) || 0;
162
- const newVal = ensurePrecision(value, -1);
163
- setCurrentValue(newVal);
164
- emit(INPUT_EVENT, data.currentValue);
165
- setCurrentValueToModelValue();
166
- };
167
- const verifyValue = (value, update) => {
168
- const { max, min, step, precision, stepStrictly, valueOnClear } = props;
169
- if (max < min) {
170
- throwError("InputNumber", "min should not be greater than max.");
171
- }
172
- let newVal = Number(value);
173
- if (isNil(value) || Number.isNaN(newVal)) {
174
- return null;
175
- }
176
- if (value === "") {
177
- if (valueOnClear === null) {
178
- return null;
179
- }
180
- newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
181
- }
182
- if (stepStrictly) {
183
- newVal = toPrecision(
184
- Math.round(toPrecision(newVal / step)) * step,
185
- precision
186
- );
187
- if (newVal !== value) {
188
- update && emit(UPDATE_MODEL_EVENT, newVal);
189
- }
190
- }
191
- if (!isUndefined(precision)) {
192
- newVal = toPrecision(newVal, precision);
193
- }
194
- if (newVal > max || newVal < min) {
195
- newVal = newVal > max ? max : min;
196
- update && emit(UPDATE_MODEL_EVENT, newVal);
197
- }
198
- return newVal;
199
- };
200
- const setCurrentValue = (value, emitChange = true) => {
201
- var _a;
202
- const oldVal = data.currentValue;
203
- const newVal = verifyValue(value);
204
- if (!emitChange) {
205
- emit(UPDATE_MODEL_EVENT, newVal);
206
- return;
207
- }
208
- data.userInput = null;
209
- if (oldVal === newVal && value)
210
- return;
211
- emit(UPDATE_MODEL_EVENT, newVal);
212
- if (oldVal !== newVal) {
213
- emit(CHANGE_EVENT, newVal, oldVal);
214
- }
215
- if (props.validateEvent) {
216
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
217
- }
218
- data.currentValue = newVal;
219
- };
220
- const handleInput = (value) => {
221
- data.userInput = value;
222
- const newVal = value === "" ? null : Number(value);
223
- emit(INPUT_EVENT, newVal);
224
- setCurrentValue(newVal, false);
225
- };
226
- const handleInputChange = (value) => {
227
- const newVal = value !== "" ? Number(value) : "";
228
- if (isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
229
- setCurrentValue(newVal);
230
- }
231
- setCurrentValueToModelValue();
232
- data.userInput = null;
233
- };
234
- const focus = () => {
235
- var _a, _b;
236
- (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
237
- };
238
- const blur = () => {
239
- var _a, _b;
240
- (_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
241
- };
242
- const handleFocus = (event) => {
243
- emit("focus", event);
244
- };
245
- const handleBlur = (event) => {
246
- var _a, _b;
247
- data.userInput = null;
248
- if (data.currentValue === null && ((_a = input.value) == null ? void 0 : _a.input)) {
249
- input.value.input.value = "";
250
- }
251
- emit("blur", event);
252
- if (props.validateEvent) {
253
- (_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => debugWarn(err));
254
- }
255
- };
256
- const setCurrentValueToModelValue = () => {
257
- if (data.currentValue !== props.modelValue) {
258
- data.currentValue = props.modelValue;
259
- }
260
- };
261
- const handleWheel = (e) => {
262
- if (document.activeElement === e.target)
263
- e.preventDefault();
264
- };
265
- watch(
266
- () => props.modelValue,
267
- (value, oldValue) => {
268
- const newValue = verifyValue(value, true);
269
- if (data.userInput === null && newValue !== oldValue) {
270
- data.currentValue = newValue;
271
- }
272
- },
273
- { immediate: true }
274
- );
275
- watch(
276
- () => props.precision,
277
- () => {
278
- data.currentValue = verifyValue(props.modelValue);
279
- }
280
- );
281
- onMounted(() => {
282
- var _a;
283
- const { min, max, modelValue } = props;
284
- const innerInput = (_a = input.value) == null ? void 0 : _a.input;
285
- innerInput.setAttribute("role", "spinbutton");
286
- if (Number.isFinite(max)) {
287
- innerInput.setAttribute("aria-valuemax", String(max));
288
- } else {
289
- innerInput.removeAttribute("aria-valuemax");
290
- }
291
- if (Number.isFinite(min)) {
292
- innerInput.setAttribute("aria-valuemin", String(min));
293
- } else {
294
- innerInput.removeAttribute("aria-valuemin");
295
- }
296
- innerInput.setAttribute(
297
- "aria-valuenow",
298
- data.currentValue || data.currentValue === 0 ? String(data.currentValue) : ""
299
- );
300
- innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
301
- if (!isNumber(modelValue) && modelValue != null) {
302
- let val = Number(modelValue);
303
- if (Number.isNaN(val)) {
304
- val = null;
305
- }
306
- emit(UPDATE_MODEL_EVENT, val);
307
- }
308
- innerInput.addEventListener("wheel", handleWheel, { passive: false });
309
- });
310
- onUpdated(() => {
311
- var _a, _b;
312
- const innerInput = (_a = input.value) == null ? void 0 : _a.input;
313
- innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${(_b = data.currentValue) != null ? _b : ""}`);
314
- });
315
- __expose({
316
- focus,
317
- blur
318
- });
319
- return (_ctx, _cache) => {
320
- return openBlock(), createElementBlock(
321
- "div",
322
- {
323
- class: normalizeClass([
324
- unref(ns).b(),
325
- unref(ns).m(unref(inputNumberSize)),
326
- unref(ns).is("disabled", unref(inputNumberDisabled)),
327
- unref(ns).is("without-controls", !_ctx.controls),
328
- unref(ns).is("controls-right", controlsAtRight.value),
329
- unref(ns).is(_ctx.align, !!_ctx.align)
330
- ]),
331
- onDragstart: _cache[0] || (_cache[0] = withModifiers(() => {
332
- }, ["prevent"]))
333
- },
334
- [
335
- _ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
336
- key: 0,
337
- role: "button",
338
- "aria-label": unref(t)("el.inputNumber.decrease"),
339
- class: normalizeClass([unref(ns).e("decrease"), unref(ns).is("disabled", minDisabled.value)]),
340
- onKeydown: withKeys(decrease, ["enter"])
341
- }, [
342
- renderSlot(_ctx.$slots, "decrease-icon", {}, () => [
343
- createVNode(unref(ElIcon), null, {
344
- default: withCtx(() => [
345
- controlsAtRight.value ? (openBlock(), createBlock(unref(ArrowDown), { key: 0 })) : (openBlock(), createBlock(unref(Minus), { key: 1 }))
346
- ]),
347
- _: 1
348
- })
349
- ])
350
- ], 42, _hoisted_1)), [
351
- [unref(vRepeatClick), decrease]
352
- ]) : createCommentVNode("v-if", true),
353
- _ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
354
- key: 1,
355
- role: "button",
356
- "aria-label": unref(t)("el.inputNumber.increase"),
357
- class: normalizeClass([unref(ns).e("increase"), unref(ns).is("disabled", maxDisabled.value)]),
358
- onKeydown: withKeys(increase, ["enter"])
359
- }, [
360
- renderSlot(_ctx.$slots, "increase-icon", {}, () => [
361
- createVNode(unref(ElIcon), null, {
362
- default: withCtx(() => [
363
- controlsAtRight.value ? (openBlock(), createBlock(unref(ArrowUp), { key: 0 })) : (openBlock(), createBlock(unref(Plus), { key: 1 }))
364
- ]),
365
- _: 1
366
- })
367
- ])
368
- ], 42, _hoisted_2)), [
369
- [unref(vRepeatClick), increase]
370
- ]) : createCommentVNode("v-if", true),
371
- createVNode(unref(ElInput), {
372
- id: _ctx.id,
373
- ref_key: "input",
374
- ref: input,
375
- type: "number",
376
- step: _ctx.step,
377
- "model-value": displayValue.value,
378
- placeholder: _ctx.placeholder,
379
- readonly: _ctx.readonly,
380
- disabled: unref(inputNumberDisabled),
381
- size: unref(inputNumberSize),
382
- max: _ctx.max,
383
- min: _ctx.min,
384
- name: _ctx.name,
385
- "aria-label": _ctx.ariaLabel,
386
- "validate-event": false,
387
- inputmode: _ctx.inputmode,
388
- onKeydown: handleKeydown,
389
- onBlur: handleBlur,
390
- onFocus: handleFocus,
391
- onInput: handleInput,
392
- onChange: handleInputChange
393
- }, createSlots({
394
- _: 2
395
- }, [
396
- _ctx.$slots.prefix ? {
397
- name: "prefix",
398
- fn: withCtx(() => [
399
- renderSlot(_ctx.$slots, "prefix")
400
- ]),
401
- key: "0"
402
- } : void 0,
403
- _ctx.$slots.suffix ? {
404
- name: "suffix",
405
- fn: withCtx(() => [
406
- renderSlot(_ctx.$slots, "suffix")
407
- ]),
408
- key: "1"
409
- } : void 0
410
- ]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "inputmode"])
411
- ],
412
- 34
413
- );
414
- };
415
- }
13
+ step: {
14
+ type: Number,
15
+ default: 1
16
+ },
17
+ stepStrictly: Boolean,
18
+ max: {
19
+ type: Number,
20
+ default: Number.MAX_SAFE_INTEGER
21
+ },
22
+ min: {
23
+ type: Number,
24
+ default: Number.MIN_SAFE_INTEGER
25
+ },
26
+ modelValue: {
27
+ type: [Number, null]
28
+ },
29
+ readonly: Boolean,
30
+ disabled: {
31
+ type: Boolean,
32
+ default: void 0
33
+ },
34
+ size: useSizeProp,
35
+ controls: {
36
+ type: Boolean,
37
+ default: true
38
+ },
39
+ controlsPosition: {
40
+ type: String,
41
+ default: "",
42
+ values: ["", "right"]
43
+ },
44
+ valueOnClear: {
45
+ type: definePropType([String, Number, null]),
46
+ validator: (val) => val === null || isNumber(val) || ["min", "max"].includes(val),
47
+ default: null
48
+ },
49
+ name: String,
50
+ placeholder: String,
51
+ precision: {
52
+ type: Number,
53
+ validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
54
+ },
55
+ validateEvent: {
56
+ type: Boolean,
57
+ default: true
58
+ },
59
+ ...useAriaProps(["ariaLabel"]),
60
+ inputmode: {
61
+ type: definePropType(String),
62
+ default: void 0
63
+ },
64
+ align: {
65
+ type: definePropType(String),
66
+ default: "center"
67
+ },
68
+ disabledScientific: Boolean
416
69
  });
417
- var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);
70
+ const inputNumberEmits = {
71
+ [CHANGE_EVENT]: (cur, prev) => prev !== cur,
72
+ blur: (e) => e instanceof FocusEvent,
73
+ focus: (e) => e instanceof FocusEvent,
74
+ [INPUT_EVENT]: (val) => isNumber(val) || isNil(val),
75
+ [UPDATE_MODEL_EVENT]: (val) => isNumber(val) || isNil(val)
76
+ };
418
77
 
419
- export { InputNumber as default };
78
+ export { inputNumberEmits, inputNumberProps };
420
79
  //# 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 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":["_openBlock","_createElementBlock","_normalizeClass","_unref","controls","align","_withModifiers","_withKeys","_renderSlot","_createVNode","_withCtx","_createBlock","_createCommentVNode","id","step","placeholder","readonly","max","min","name","ariaLabel","inputmode","_createSlots","$slots"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAClB,IAAA,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;AAEK,IAAA,MAAA,EAAE,QAAS,EAAA,GAAI,WAAY,EAAA,CAAA;AAEjC,IAAA,MAAM,WAAc,GAAA,QAAA;AAAA,MAClB,MAAM,QAAS,CAAA,KAAA,CAAM,UAAU,CAAK,IAAA,KAAA,CAAM,cAAc,KAAM,CAAA,GAAA;AAAA,KAChE,CAAA;AACA,IAAA,MAAM,WAAc,GAAA,QAAA;AAAA,MAClB,MAAM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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, 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":[],"mappings":";;;;;;;AAgBO,MAAM,mBAAmB,UAAW,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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