@element-plus/nightly 0.0.20250831 → 0.0.20250901

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 (542) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +10 -8
  3. package/dist/index.full.min.js +9 -9
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +9 -9
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +10 -8
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar-eg.js +1 -1
  13. package/dist/locale/ar-eg.min.js +1 -1
  14. package/dist/locale/ar-eg.min.mjs +1 -1
  15. package/dist/locale/ar-eg.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.mjs +1 -1
  20. package/dist/locale/az.js +1 -1
  21. package/dist/locale/az.min.js +1 -1
  22. package/dist/locale/az.min.mjs +1 -1
  23. package/dist/locale/az.mjs +1 -1
  24. package/dist/locale/bg.js +1 -1
  25. package/dist/locale/bg.min.js +1 -1
  26. package/dist/locale/bg.min.mjs +1 -1
  27. package/dist/locale/bg.mjs +1 -1
  28. package/dist/locale/bn.js +1 -1
  29. package/dist/locale/bn.min.js +1 -1
  30. package/dist/locale/bn.min.mjs +1 -1
  31. package/dist/locale/bn.mjs +1 -1
  32. package/dist/locale/ca.js +1 -1
  33. package/dist/locale/ca.min.js +1 -1
  34. package/dist/locale/ca.min.mjs +1 -1
  35. package/dist/locale/ca.mjs +1 -1
  36. package/dist/locale/ckb.js +1 -1
  37. package/dist/locale/ckb.min.js +1 -1
  38. package/dist/locale/ckb.min.mjs +1 -1
  39. package/dist/locale/ckb.mjs +1 -1
  40. package/dist/locale/cs.js +1 -1
  41. package/dist/locale/cs.min.js +1 -1
  42. package/dist/locale/cs.min.mjs +1 -1
  43. package/dist/locale/cs.mjs +1 -1
  44. package/dist/locale/da.js +1 -1
  45. package/dist/locale/da.min.js +1 -1
  46. package/dist/locale/da.min.mjs +1 -1
  47. package/dist/locale/da.mjs +1 -1
  48. package/dist/locale/de.js +1 -1
  49. package/dist/locale/de.min.js +1 -1
  50. package/dist/locale/de.min.mjs +1 -1
  51. package/dist/locale/de.mjs +1 -1
  52. package/dist/locale/el.js +1 -1
  53. package/dist/locale/el.min.js +1 -1
  54. package/dist/locale/el.min.mjs +1 -1
  55. package/dist/locale/el.mjs +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/en.min.js +1 -1
  58. package/dist/locale/en.min.mjs +1 -1
  59. package/dist/locale/en.mjs +1 -1
  60. package/dist/locale/eo.js +1 -1
  61. package/dist/locale/eo.min.js +1 -1
  62. package/dist/locale/eo.min.mjs +1 -1
  63. package/dist/locale/eo.mjs +1 -1
  64. package/dist/locale/es.js +1 -1
  65. package/dist/locale/es.min.js +1 -1
  66. package/dist/locale/es.min.mjs +1 -1
  67. package/dist/locale/es.mjs +1 -1
  68. package/dist/locale/et.js +1 -1
  69. package/dist/locale/et.min.js +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +1 -1
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.mjs +1 -1
  75. package/dist/locale/eu.mjs +1 -1
  76. package/dist/locale/fa.js +1 -1
  77. package/dist/locale/fa.min.js +1 -1
  78. package/dist/locale/fa.min.mjs +1 -1
  79. package/dist/locale/fa.mjs +1 -1
  80. package/dist/locale/fi.js +1 -1
  81. package/dist/locale/fi.min.js +1 -1
  82. package/dist/locale/fi.min.mjs +1 -1
  83. package/dist/locale/fi.mjs +1 -1
  84. package/dist/locale/fr.js +1 -1
  85. package/dist/locale/fr.min.js +1 -1
  86. package/dist/locale/fr.min.mjs +1 -1
  87. package/dist/locale/fr.mjs +1 -1
  88. package/dist/locale/he.js +1 -1
  89. package/dist/locale/he.min.js +1 -1
  90. package/dist/locale/he.min.mjs +1 -1
  91. package/dist/locale/he.mjs +1 -1
  92. package/dist/locale/hi.js +1 -1
  93. package/dist/locale/hi.min.js +1 -1
  94. package/dist/locale/hi.min.mjs +1 -1
  95. package/dist/locale/hi.mjs +1 -1
  96. package/dist/locale/hr.js +1 -1
  97. package/dist/locale/hr.min.js +1 -1
  98. package/dist/locale/hr.min.mjs +1 -1
  99. package/dist/locale/hr.mjs +1 -1
  100. package/dist/locale/hu.js +1 -1
  101. package/dist/locale/hu.min.js +1 -1
  102. package/dist/locale/hu.min.mjs +1 -1
  103. package/dist/locale/hu.mjs +1 -1
  104. package/dist/locale/hy-am.js +1 -1
  105. package/dist/locale/hy-am.min.js +1 -1
  106. package/dist/locale/hy-am.min.mjs +1 -1
  107. package/dist/locale/hy-am.mjs +1 -1
  108. package/dist/locale/id.js +1 -1
  109. package/dist/locale/id.min.js +1 -1
  110. package/dist/locale/id.min.mjs +1 -1
  111. package/dist/locale/id.mjs +1 -1
  112. package/dist/locale/it.js +1 -1
  113. package/dist/locale/it.min.js +1 -1
  114. package/dist/locale/it.min.mjs +1 -1
  115. package/dist/locale/it.mjs +1 -1
  116. package/dist/locale/ja.js +1 -1
  117. package/dist/locale/ja.min.js +1 -1
  118. package/dist/locale/ja.min.mjs +1 -1
  119. package/dist/locale/ja.mjs +1 -1
  120. package/dist/locale/kk.js +1 -1
  121. package/dist/locale/kk.min.js +1 -1
  122. package/dist/locale/kk.min.mjs +1 -1
  123. package/dist/locale/kk.mjs +1 -1
  124. package/dist/locale/km.js +1 -1
  125. package/dist/locale/km.min.js +1 -1
  126. package/dist/locale/km.min.mjs +1 -1
  127. package/dist/locale/km.mjs +1 -1
  128. package/dist/locale/ko.js +1 -1
  129. package/dist/locale/ko.min.js +1 -1
  130. package/dist/locale/ko.min.mjs +1 -1
  131. package/dist/locale/ko.mjs +1 -1
  132. package/dist/locale/ku.js +1 -1
  133. package/dist/locale/ku.min.js +1 -1
  134. package/dist/locale/ku.min.mjs +1 -1
  135. package/dist/locale/ku.mjs +1 -1
  136. package/dist/locale/ky.js +1 -1
  137. package/dist/locale/ky.min.js +1 -1
  138. package/dist/locale/ky.min.mjs +1 -1
  139. package/dist/locale/ky.mjs +1 -1
  140. package/dist/locale/lo.js +1 -1
  141. package/dist/locale/lo.min.js +1 -1
  142. package/dist/locale/lo.min.mjs +1 -1
  143. package/dist/locale/lo.mjs +1 -1
  144. package/dist/locale/lt.js +1 -1
  145. package/dist/locale/lt.min.js +1 -1
  146. package/dist/locale/lt.min.mjs +1 -1
  147. package/dist/locale/lt.mjs +1 -1
  148. package/dist/locale/lv.js +1 -1
  149. package/dist/locale/lv.min.js +1 -1
  150. package/dist/locale/lv.min.mjs +1 -1
  151. package/dist/locale/lv.mjs +1 -1
  152. package/dist/locale/mg.js +1 -1
  153. package/dist/locale/mg.min.js +1 -1
  154. package/dist/locale/mg.min.mjs +1 -1
  155. package/dist/locale/mg.mjs +1 -1
  156. package/dist/locale/mn.js +1 -1
  157. package/dist/locale/mn.min.js +1 -1
  158. package/dist/locale/mn.min.mjs +1 -1
  159. package/dist/locale/mn.mjs +1 -1
  160. package/dist/locale/ms.js +1 -1
  161. package/dist/locale/ms.min.js +1 -1
  162. package/dist/locale/ms.min.mjs +1 -1
  163. package/dist/locale/ms.mjs +1 -1
  164. package/dist/locale/my.js +1 -1
  165. package/dist/locale/my.min.js +1 -1
  166. package/dist/locale/my.min.mjs +1 -1
  167. package/dist/locale/my.mjs +1 -1
  168. package/dist/locale/nb-no.js +1 -1
  169. package/dist/locale/nb-no.min.js +1 -1
  170. package/dist/locale/nb-no.min.mjs +1 -1
  171. package/dist/locale/nb-no.mjs +1 -1
  172. package/dist/locale/nl.js +1 -1
  173. package/dist/locale/nl.min.js +1 -1
  174. package/dist/locale/nl.min.mjs +1 -1
  175. package/dist/locale/nl.mjs +1 -1
  176. package/dist/locale/no.js +1 -1
  177. package/dist/locale/no.min.js +1 -1
  178. package/dist/locale/no.min.mjs +1 -1
  179. package/dist/locale/no.mjs +1 -1
  180. package/dist/locale/pa.js +1 -1
  181. package/dist/locale/pa.min.js +1 -1
  182. package/dist/locale/pa.min.mjs +1 -1
  183. package/dist/locale/pa.mjs +1 -1
  184. package/dist/locale/pl.js +1 -1
  185. package/dist/locale/pl.min.js +1 -1
  186. package/dist/locale/pl.min.mjs +1 -1
  187. package/dist/locale/pl.mjs +1 -1
  188. package/dist/locale/pt-br.js +1 -1
  189. package/dist/locale/pt-br.min.js +1 -1
  190. package/dist/locale/pt-br.min.mjs +1 -1
  191. package/dist/locale/pt-br.mjs +1 -1
  192. package/dist/locale/pt.js +1 -1
  193. package/dist/locale/pt.min.js +1 -1
  194. package/dist/locale/pt.min.mjs +1 -1
  195. package/dist/locale/pt.mjs +1 -1
  196. package/dist/locale/ro.js +1 -1
  197. package/dist/locale/ro.min.js +1 -1
  198. package/dist/locale/ro.min.mjs +1 -1
  199. package/dist/locale/ro.mjs +1 -1
  200. package/dist/locale/ru.js +1 -1
  201. package/dist/locale/ru.min.js +1 -1
  202. package/dist/locale/ru.min.mjs +1 -1
  203. package/dist/locale/ru.mjs +1 -1
  204. package/dist/locale/sk.js +1 -1
  205. package/dist/locale/sk.min.js +1 -1
  206. package/dist/locale/sk.min.mjs +1 -1
  207. package/dist/locale/sk.mjs +1 -1
  208. package/dist/locale/sl.js +1 -1
  209. package/dist/locale/sl.min.js +1 -1
  210. package/dist/locale/sl.min.mjs +1 -1
  211. package/dist/locale/sl.mjs +1 -1
  212. package/dist/locale/sr.js +1 -1
  213. package/dist/locale/sr.min.js +1 -1
  214. package/dist/locale/sr.min.mjs +1 -1
  215. package/dist/locale/sr.mjs +1 -1
  216. package/dist/locale/sv.js +1 -1
  217. package/dist/locale/sv.min.js +1 -1
  218. package/dist/locale/sv.min.mjs +1 -1
  219. package/dist/locale/sv.mjs +1 -1
  220. package/dist/locale/sw.js +1 -1
  221. package/dist/locale/sw.min.js +1 -1
  222. package/dist/locale/sw.min.mjs +1 -1
  223. package/dist/locale/sw.mjs +1 -1
  224. package/dist/locale/ta.js +1 -1
  225. package/dist/locale/ta.min.js +1 -1
  226. package/dist/locale/ta.min.mjs +1 -1
  227. package/dist/locale/ta.mjs +1 -1
  228. package/dist/locale/te.js +1 -1
  229. package/dist/locale/te.min.js +1 -1
  230. package/dist/locale/te.min.mjs +1 -1
  231. package/dist/locale/te.mjs +1 -1
  232. package/dist/locale/th.js +1 -1
  233. package/dist/locale/th.min.js +1 -1
  234. package/dist/locale/th.min.mjs +1 -1
  235. package/dist/locale/th.mjs +1 -1
  236. package/dist/locale/tk.js +1 -1
  237. package/dist/locale/tk.min.js +1 -1
  238. package/dist/locale/tk.min.mjs +1 -1
  239. package/dist/locale/tk.mjs +1 -1
  240. package/dist/locale/tr.js +1 -1
  241. package/dist/locale/tr.min.js +1 -1
  242. package/dist/locale/tr.min.mjs +1 -1
  243. package/dist/locale/tr.mjs +1 -1
  244. package/dist/locale/ug-cn.js +1 -1
  245. package/dist/locale/ug-cn.min.js +1 -1
  246. package/dist/locale/ug-cn.min.mjs +1 -1
  247. package/dist/locale/ug-cn.mjs +1 -1
  248. package/dist/locale/uk.js +1 -1
  249. package/dist/locale/uk.min.js +1 -1
  250. package/dist/locale/uk.min.mjs +1 -1
  251. package/dist/locale/uk.mjs +1 -1
  252. package/dist/locale/uz-uz.js +1 -1
  253. package/dist/locale/uz-uz.min.js +1 -1
  254. package/dist/locale/uz-uz.min.mjs +1 -1
  255. package/dist/locale/uz-uz.mjs +1 -1
  256. package/dist/locale/vi.js +1 -1
  257. package/dist/locale/vi.min.js +1 -1
  258. package/dist/locale/vi.min.mjs +1 -1
  259. package/dist/locale/vi.mjs +1 -1
  260. package/dist/locale/zh-cn.js +1 -1
  261. package/dist/locale/zh-cn.min.js +1 -1
  262. package/dist/locale/zh-cn.min.mjs +1 -1
  263. package/dist/locale/zh-cn.mjs +1 -1
  264. package/dist/locale/zh-hk.js +1 -1
  265. package/dist/locale/zh-hk.min.js +1 -1
  266. package/dist/locale/zh-hk.min.mjs +1 -1
  267. package/dist/locale/zh-hk.mjs +1 -1
  268. package/dist/locale/zh-mo.js +1 -1
  269. package/dist/locale/zh-mo.min.js +1 -1
  270. package/dist/locale/zh-mo.min.mjs +1 -1
  271. package/dist/locale/zh-mo.mjs +1 -1
  272. package/dist/locale/zh-tw.js +1 -1
  273. package/dist/locale/zh-tw.min.js +1 -1
  274. package/dist/locale/zh-tw.min.mjs +1 -1
  275. package/dist/locale/zh-tw.mjs +1 -1
  276. package/es/components/alert/index.mjs +2 -2
  277. package/es/components/alert/src/alert.mjs +41 -108
  278. package/es/components/alert/src/alert.mjs.map +1 -1
  279. package/es/components/alert/src/alert2.mjs +108 -41
  280. package/es/components/alert/src/alert2.mjs.map +1 -1
  281. package/es/components/anchor/index.mjs +1 -1
  282. package/es/components/anchor/src/anchor-link.mjs +81 -5
  283. package/es/components/anchor/src/anchor-link.mjs.map +1 -1
  284. package/es/components/anchor/src/anchor-link2.mjs +5 -81
  285. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  286. package/es/components/breadcrumb/index.mjs +4 -4
  287. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -8
  288. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  289. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +8 -56
  290. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  291. package/es/components/breadcrumb/src/breadcrumb.mjs +10 -37
  292. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  293. package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -10
  294. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  295. package/es/components/button/index.mjs +1 -1
  296. package/es/components/button/src/button-group.mjs +29 -6
  297. package/es/components/button/src/button-group.mjs.map +1 -1
  298. package/es/components/button/src/button-group2.mjs +6 -29
  299. package/es/components/button/src/button-group2.mjs.map +1 -1
  300. package/es/components/check-tag/index.mjs +2 -2
  301. package/es/components/check-tag/src/check-tag.mjs +38 -14
  302. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  303. package/es/components/check-tag/src/check-tag2.mjs +14 -38
  304. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  305. package/es/components/collapse/index.mjs +2 -2
  306. package/es/components/collapse/src/collapse.mjs +23 -28
  307. package/es/components/collapse/src/collapse.mjs.map +1 -1
  308. package/es/components/collapse/src/collapse2.mjs +28 -23
  309. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  310. package/es/components/color-picker/index.mjs +2 -2
  311. package/es/components/color-picker/src/color-picker.mjs +48 -330
  312. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  313. package/es/components/color-picker/src/color-picker2.mjs +330 -48
  314. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  315. package/es/components/dialog/src/dialog.mjs +1 -1
  316. package/es/components/drawer/index.mjs +2 -2
  317. package/es/components/drawer/src/drawer.mjs +201 -27
  318. package/es/components/drawer/src/drawer.mjs.map +1 -1
  319. package/es/components/drawer/src/drawer2.mjs +27 -201
  320. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  321. package/es/components/dropdown/index.mjs +2 -2
  322. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  323. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  324. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  325. package/es/components/dropdown/src/dropdown.mjs +108 -303
  326. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  327. package/es/components/dropdown/src/dropdown2.mjs +303 -108
  328. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  329. package/es/components/form/index.mjs +2 -2
  330. package/es/components/form/src/form.mjs +156 -54
  331. package/es/components/form/src/form.mjs.map +1 -1
  332. package/es/components/form/src/form2.mjs +54 -156
  333. package/es/components/form/src/form2.mjs.map +1 -1
  334. package/es/components/index.mjs +18 -18
  335. package/es/components/input-number/index.mjs +2 -2
  336. package/es/components/input-number/src/input-number.mjs +71 -373
  337. package/es/components/input-number/src/input-number.mjs.map +1 -1
  338. package/es/components/input-number/src/input-number2.mjs +373 -71
  339. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  340. package/es/components/menu/index.mjs +2 -2
  341. package/es/components/menu/src/menu-item.mjs +15 -100
  342. package/es/components/menu/src/menu-item.mjs.map +1 -1
  343. package/es/components/menu/src/menu-item2.mjs +100 -15
  344. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  345. package/es/components/notification/index.mjs +1 -1
  346. package/es/components/notification/src/notification.mjs +140 -73
  347. package/es/components/notification/src/notification.mjs.map +1 -1
  348. package/es/components/notification/src/notification2.mjs +73 -140
  349. package/es/components/notification/src/notification2.mjs.map +1 -1
  350. package/es/components/notification/src/notify.mjs +2 -2
  351. package/es/components/pagination/src/components/sizes.mjs +23 -71
  352. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  353. package/es/components/pagination/src/components/sizes2.mjs +71 -23
  354. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  355. package/es/components/pagination/src/pagination.mjs +1 -1
  356. package/es/components/popover/src/popover.mjs +1 -1
  357. package/es/components/popper/index.mjs +2 -2
  358. package/es/components/popper/src/arrow.mjs +30 -7
  359. package/es/components/popper/src/arrow.mjs.map +1 -1
  360. package/es/components/popper/src/arrow2.mjs +7 -30
  361. package/es/components/popper/src/arrow2.mjs.map +1 -1
  362. package/es/components/popper/src/content.mjs +1 -1
  363. package/es/components/popper/src/trigger2.mjs +3 -3
  364. package/es/components/popper/src/trigger2.mjs.map +1 -1
  365. package/es/components/radio/index.mjs +2 -2
  366. package/es/components/radio/src/radio-button.mjs +1 -1
  367. package/es/components/radio/src/radio-group.mjs +1 -1
  368. package/es/components/radio/src/radio.mjs +74 -32
  369. package/es/components/radio/src/radio.mjs.map +1 -1
  370. package/es/components/radio/src/radio2.mjs +32 -74
  371. package/es/components/radio/src/radio2.mjs.map +1 -1
  372. package/es/components/splitter/src/split-bar.mjs +1 -1
  373. package/es/components/splitter/src/split-bar.mjs.map +1 -1
  374. package/es/components/teleport/index.mjs +2 -2
  375. package/es/components/teleport/src/teleport.mjs +18 -8
  376. package/es/components/teleport/src/teleport.mjs.map +1 -1
  377. package/es/components/teleport/src/teleport2.mjs +8 -18
  378. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  379. package/es/components/tooltip/index.mjs +2 -2
  380. package/es/components/tooltip/src/content.mjs +1 -1
  381. package/es/components/tooltip/src/content2.mjs +5 -2
  382. package/es/components/tooltip/src/content2.mjs.map +1 -1
  383. package/es/components/tooltip/src/tooltip.mjs +165 -30
  384. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  385. package/es/components/tooltip/src/tooltip2.mjs +30 -165
  386. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  387. package/es/components/tour/index.mjs +2 -2
  388. package/es/components/tour/src/tour.mjs +154 -69
  389. package/es/components/tour/src/tour.mjs.map +1 -1
  390. package/es/components/tour/src/tour2.mjs +69 -154
  391. package/es/components/tour/src/tour2.mjs.map +1 -1
  392. package/es/components/transfer/index.mjs +2 -2
  393. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  394. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  395. package/es/components/transfer/src/transfer-panel.mjs +19 -130
  396. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  397. package/es/components/transfer/src/transfer-panel2.mjs +130 -19
  398. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  399. package/es/components/transfer/src/transfer.mjs +164 -68
  400. package/es/components/transfer/src/transfer.mjs.map +1 -1
  401. package/es/components/transfer/src/transfer2.mjs +68 -164
  402. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  403. package/es/index.mjs +18 -18
  404. package/es/version.d.ts +1 -1
  405. package/es/version.mjs +1 -1
  406. package/es/version.mjs.map +1 -1
  407. package/lib/components/alert/index.js +2 -2
  408. package/lib/components/alert/src/alert.js +42 -107
  409. package/lib/components/alert/src/alert.js.map +1 -1
  410. package/lib/components/alert/src/alert2.js +107 -42
  411. package/lib/components/alert/src/alert2.js.map +1 -1
  412. package/lib/components/anchor/index.js +1 -1
  413. package/lib/components/anchor/src/anchor-link.js +81 -5
  414. package/lib/components/anchor/src/anchor-link.js.map +1 -1
  415. package/lib/components/anchor/src/anchor-link2.js +5 -81
  416. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  417. package/lib/components/breadcrumb/index.js +4 -4
  418. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -8
  419. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  420. package/lib/components/breadcrumb/src/breadcrumb-item2.js +8 -56
  421. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  422. package/lib/components/breadcrumb/src/breadcrumb.js +10 -37
  423. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  424. package/lib/components/breadcrumb/src/breadcrumb2.js +37 -10
  425. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  426. package/lib/components/button/index.js +1 -1
  427. package/lib/components/button/src/button-group.js +29 -6
  428. package/lib/components/button/src/button-group.js.map +1 -1
  429. package/lib/components/button/src/button-group2.js +6 -29
  430. package/lib/components/button/src/button-group2.js.map +1 -1
  431. package/lib/components/check-tag/index.js +2 -2
  432. package/lib/components/check-tag/src/check-tag.js +38 -15
  433. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  434. package/lib/components/check-tag/src/check-tag2.js +15 -38
  435. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  436. package/lib/components/collapse/index.js +2 -2
  437. package/lib/components/collapse/src/collapse.js +25 -28
  438. package/lib/components/collapse/src/collapse.js.map +1 -1
  439. package/lib/components/collapse/src/collapse2.js +28 -25
  440. package/lib/components/collapse/src/collapse2.js.map +1 -1
  441. package/lib/components/color-picker/index.js +2 -2
  442. package/lib/components/color-picker/src/color-picker.js +48 -329
  443. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  444. package/lib/components/color-picker/src/color-picker2.js +329 -48
  445. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  446. package/lib/components/dialog/src/dialog.js +1 -1
  447. package/lib/components/drawer/index.js +2 -2
  448. package/lib/components/drawer/src/drawer.js +201 -28
  449. package/lib/components/drawer/src/drawer.js.map +1 -1
  450. package/lib/components/drawer/src/drawer2.js +28 -201
  451. package/lib/components/drawer/src/drawer2.js.map +1 -1
  452. package/lib/components/dropdown/index.js +2 -2
  453. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  454. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  455. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  456. package/lib/components/dropdown/src/dropdown.js +117 -303
  457. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  458. package/lib/components/dropdown/src/dropdown2.js +303 -117
  459. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  460. package/lib/components/form/index.js +2 -2
  461. package/lib/components/form/src/form.js +155 -55
  462. package/lib/components/form/src/form.js.map +1 -1
  463. package/lib/components/form/src/form2.js +55 -155
  464. package/lib/components/form/src/form2.js.map +1 -1
  465. package/lib/components/index.js +18 -18
  466. package/lib/components/input-number/index.js +2 -2
  467. package/lib/components/input-number/src/input-number.js +70 -371
  468. package/lib/components/input-number/src/input-number.js.map +1 -1
  469. package/lib/components/input-number/src/input-number2.js +371 -70
  470. package/lib/components/input-number/src/input-number2.js.map +1 -1
  471. package/lib/components/menu/index.js +2 -2
  472. package/lib/components/menu/src/menu-item.js +16 -100
  473. package/lib/components/menu/src/menu-item.js.map +1 -1
  474. package/lib/components/menu/src/menu-item2.js +100 -16
  475. package/lib/components/menu/src/menu-item2.js.map +1 -1
  476. package/lib/components/notification/index.js +1 -1
  477. package/lib/components/notification/src/notification.js +139 -74
  478. package/lib/components/notification/src/notification.js.map +1 -1
  479. package/lib/components/notification/src/notification2.js +74 -139
  480. package/lib/components/notification/src/notification2.js.map +1 -1
  481. package/lib/components/notification/src/notify.js +2 -2
  482. package/lib/components/pagination/src/components/sizes.js +23 -71
  483. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  484. package/lib/components/pagination/src/components/sizes2.js +71 -23
  485. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  486. package/lib/components/pagination/src/pagination.js +1 -1
  487. package/lib/components/popover/src/popover.js +1 -1
  488. package/lib/components/popper/index.js +2 -2
  489. package/lib/components/popper/src/arrow.js +30 -8
  490. package/lib/components/popper/src/arrow.js.map +1 -1
  491. package/lib/components/popper/src/arrow2.js +8 -30
  492. package/lib/components/popper/src/arrow2.js.map +1 -1
  493. package/lib/components/popper/src/content.js +1 -1
  494. package/lib/components/popper/src/trigger2.js +3 -3
  495. package/lib/components/popper/src/trigger2.js.map +1 -1
  496. package/lib/components/radio/index.js +2 -2
  497. package/lib/components/radio/src/radio-button.js +1 -1
  498. package/lib/components/radio/src/radio-group.js +1 -1
  499. package/lib/components/radio/src/radio.js +73 -33
  500. package/lib/components/radio/src/radio.js.map +1 -1
  501. package/lib/components/radio/src/radio2.js +33 -73
  502. package/lib/components/radio/src/radio2.js.map +1 -1
  503. package/lib/components/splitter/src/split-bar.js +1 -1
  504. package/lib/components/splitter/src/split-bar.js.map +1 -1
  505. package/lib/components/teleport/index.js +2 -2
  506. package/lib/components/teleport/src/teleport.js +18 -8
  507. package/lib/components/teleport/src/teleport.js.map +1 -1
  508. package/lib/components/teleport/src/teleport2.js +8 -18
  509. package/lib/components/teleport/src/teleport2.js.map +1 -1
  510. package/lib/components/tooltip/index.js +2 -2
  511. package/lib/components/tooltip/src/content.js +1 -1
  512. package/lib/components/tooltip/src/content2.js +5 -2
  513. package/lib/components/tooltip/src/content2.js.map +1 -1
  514. package/lib/components/tooltip/src/tooltip.js +164 -33
  515. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  516. package/lib/components/tooltip/src/tooltip2.js +33 -164
  517. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  518. package/lib/components/tour/index.js +2 -2
  519. package/lib/components/tour/src/tour.js +153 -69
  520. package/lib/components/tour/src/tour.js.map +1 -1
  521. package/lib/components/tour/src/tour2.js +69 -153
  522. package/lib/components/tour/src/tour2.js.map +1 -1
  523. package/lib/components/transfer/index.js +2 -2
  524. package/lib/components/transfer/src/composables/use-check.js +1 -1
  525. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  526. package/lib/components/transfer/src/transfer-panel.js +21 -130
  527. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  528. package/lib/components/transfer/src/transfer-panel2.js +130 -21
  529. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  530. package/lib/components/transfer/src/transfer.js +164 -72
  531. package/lib/components/transfer/src/transfer.js.map +1 -1
  532. package/lib/components/transfer/src/transfer2.js +72 -164
  533. package/lib/components/transfer/src/transfer2.js.map +1 -1
  534. package/lib/index.js +18 -18
  535. package/lib/version.d.ts +1 -1
  536. package/lib/version.js +1 -1
  537. package/lib/version.js.map +1 -1
  538. package/package.json +2 -2
  539. package/theme-chalk/el-splitter.css +1 -1
  540. package/theme-chalk/index.css +1 -1
  541. package/theme-chalk/src/splitter.scss +2 -2
  542. package/web-types.json +1 -1
@@ -2,381 +2,80 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
5
  var lodashUnified = require('lodash-unified');
7
- var index$4 = require('../../input/index.js');
8
- var index$2 = require('../../icon/index.js');
9
- var iconsVue = require('@element-plus/icons-vue');
10
- var inputNumber = require('./input-number2.js');
11
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
12
- var index$3 = require('../../../directives/repeat-click/index.js');
13
- var index = require('../../../hooks/use-locale/index.js');
14
- var index$1 = require('../../../hooks/use-namespace/index.js');
15
- var useFormItem = require('../../form/src/hooks/use-form-item.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
7
+ var index = require('../../../hooks/use-size/index.js');
16
8
  var types = require('../../../utils/types.js');
17
- var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
9
+ var index$1 = require('../../../hooks/use-aria/index.js');
18
10
  var event = require('../../../constants/event.js');
19
- var aria = require('../../../constants/aria.js');
20
- var error = require('../../../utils/error.js');
21
- var shared = require('@vue/shared');
22
11
 
23
- const __default__ = vue.defineComponent({
24
- name: "ElInputNumber"
12
+ const inputNumberProps = runtime.buildProps({
13
+ id: {
14
+ type: String,
15
+ default: void 0
16
+ },
17
+ step: {
18
+ type: Number,
19
+ default: 1
20
+ },
21
+ stepStrictly: Boolean,
22
+ max: {
23
+ type: Number,
24
+ default: Number.MAX_SAFE_INTEGER
25
+ },
26
+ min: {
27
+ type: Number,
28
+ default: Number.MIN_SAFE_INTEGER
29
+ },
30
+ modelValue: {
31
+ type: [Number, null]
32
+ },
33
+ readonly: Boolean,
34
+ disabled: Boolean,
35
+ size: index.useSizeProp,
36
+ controls: {
37
+ type: Boolean,
38
+ default: true
39
+ },
40
+ controlsPosition: {
41
+ type: String,
42
+ default: "",
43
+ values: ["", "right"]
44
+ },
45
+ valueOnClear: {
46
+ type: [String, Number, null],
47
+ validator: (val) => val === null || types.isNumber(val) || ["min", "max"].includes(val),
48
+ default: null
49
+ },
50
+ name: String,
51
+ placeholder: String,
52
+ precision: {
53
+ type: Number,
54
+ validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
55
+ },
56
+ validateEvent: {
57
+ type: Boolean,
58
+ default: true
59
+ },
60
+ ...index$1.useAriaProps(["ariaLabel"]),
61
+ inputmode: {
62
+ type: runtime.definePropType(String),
63
+ default: void 0
64
+ },
65
+ align: {
66
+ type: runtime.definePropType(String),
67
+ default: "center"
68
+ },
69
+ disabledScientific: Boolean
25
70
  });
26
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
27
- ...__default__,
28
- props: inputNumber.inputNumberProps,
29
- emits: inputNumber.inputNumberEmits,
30
- setup(__props, { expose, emit }) {
31
- const props = __props;
32
- const { t } = index.useLocale();
33
- const ns = index$1.useNamespace("input-number");
34
- const input = vue.ref();
35
- const data = vue.reactive({
36
- currentValue: props.modelValue,
37
- userInput: null
38
- });
39
- const { formItem } = useFormItem.useFormItem();
40
- const minDisabled = vue.computed(() => types.isNumber(props.modelValue) && props.modelValue <= props.min);
41
- const maxDisabled = vue.computed(() => types.isNumber(props.modelValue) && props.modelValue >= props.max);
42
- const numPrecision = vue.computed(() => {
43
- const stepPrecision = getPrecision(props.step);
44
- if (!types.isUndefined(props.precision)) {
45
- if (stepPrecision > props.precision) ;
46
- return props.precision;
47
- } else {
48
- return Math.max(getPrecision(props.modelValue), stepPrecision);
49
- }
50
- });
51
- const controlsAtRight = vue.computed(() => {
52
- return props.controls && props.controlsPosition === "right";
53
- });
54
- const inputNumberSize = useFormCommonProps.useFormSize();
55
- const inputNumberDisabled = useFormCommonProps.useFormDisabled();
56
- const displayValue = vue.computed(() => {
57
- if (data.userInput !== null) {
58
- return data.userInput;
59
- }
60
- let currentValue = data.currentValue;
61
- if (lodashUnified.isNil(currentValue))
62
- return "";
63
- if (types.isNumber(currentValue)) {
64
- if (Number.isNaN(currentValue))
65
- return "";
66
- if (!types.isUndefined(props.precision)) {
67
- currentValue = currentValue.toFixed(props.precision);
68
- }
69
- }
70
- return currentValue;
71
- });
72
- const toPrecision = (num, pre) => {
73
- if (types.isUndefined(pre))
74
- pre = numPrecision.value;
75
- if (pre === 0)
76
- return Math.round(num);
77
- let snum = String(num);
78
- const pointPos = snum.indexOf(".");
79
- if (pointPos === -1)
80
- return num;
81
- const nums = snum.replace(".", "").split("");
82
- const datum = nums[pointPos + pre];
83
- if (!datum)
84
- return num;
85
- const length = snum.length;
86
- if (snum.charAt(length - 1) === "5") {
87
- snum = `${snum.slice(0, Math.max(0, length - 1))}6`;
88
- }
89
- return Number.parseFloat(Number(snum).toFixed(pre));
90
- };
91
- const getPrecision = (value) => {
92
- if (lodashUnified.isNil(value))
93
- return 0;
94
- const valueString = value.toString();
95
- const dotPosition = valueString.indexOf(".");
96
- let precision = 0;
97
- if (dotPosition !== -1) {
98
- precision = valueString.length - dotPosition - 1;
99
- }
100
- return precision;
101
- };
102
- const ensurePrecision = (val, coefficient = 1) => {
103
- if (!types.isNumber(val))
104
- return data.currentValue;
105
- if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {
106
- return val;
107
- } else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {
108
- return val;
109
- }
110
- return toPrecision(val + props.step * coefficient);
111
- };
112
- const handleKeydown = (event) => {
113
- var _a;
114
- const e = event;
115
- if (props.disabledScientific && ["e", "E"].includes(e.key)) {
116
- e.preventDefault();
117
- return;
118
- }
119
- const keyHandlers = {
120
- [aria.EVENT_CODE.up]: () => {
121
- e.preventDefault();
122
- increase();
123
- },
124
- [aria.EVENT_CODE.down]: () => {
125
- e.preventDefault();
126
- decrease();
127
- }
128
- };
129
- (_a = keyHandlers[e.key]) == null ? void 0 : _a.call(keyHandlers);
130
- };
131
- const increase = () => {
132
- if (props.readonly || inputNumberDisabled.value || maxDisabled.value)
133
- return;
134
- const value = Number(displayValue.value) || 0;
135
- const newVal = ensurePrecision(value);
136
- setCurrentValue(newVal);
137
- emit(event.INPUT_EVENT, data.currentValue);
138
- setCurrentValueToModelValue();
139
- };
140
- const decrease = () => {
141
- if (props.readonly || inputNumberDisabled.value || minDisabled.value)
142
- return;
143
- const value = Number(displayValue.value) || 0;
144
- const newVal = ensurePrecision(value, -1);
145
- setCurrentValue(newVal);
146
- emit(event.INPUT_EVENT, data.currentValue);
147
- setCurrentValueToModelValue();
148
- };
149
- const verifyValue = (value, update) => {
150
- const { max, min, step, precision, stepStrictly, valueOnClear } = props;
151
- if (max < min) {
152
- error.throwError("InputNumber", "min should not be greater than max.");
153
- }
154
- let newVal = Number(value);
155
- if (lodashUnified.isNil(value) || Number.isNaN(newVal)) {
156
- return null;
157
- }
158
- if (value === "") {
159
- if (valueOnClear === null) {
160
- return null;
161
- }
162
- newVal = shared.isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
163
- }
164
- if (stepStrictly) {
165
- newVal = toPrecision(Math.round(newVal / step) * step, precision);
166
- if (newVal !== value) {
167
- update && emit(event.UPDATE_MODEL_EVENT, newVal);
168
- }
169
- }
170
- if (!types.isUndefined(precision)) {
171
- newVal = toPrecision(newVal, precision);
172
- }
173
- if (newVal > max || newVal < min) {
174
- newVal = newVal > max ? max : min;
175
- update && emit(event.UPDATE_MODEL_EVENT, newVal);
176
- }
177
- return newVal;
178
- };
179
- const setCurrentValue = (value, emitChange = true) => {
180
- var _a;
181
- const oldVal = data.currentValue;
182
- const newVal = verifyValue(value);
183
- if (!emitChange) {
184
- emit(event.UPDATE_MODEL_EVENT, newVal);
185
- return;
186
- }
187
- if (oldVal === newVal && value)
188
- return;
189
- data.userInput = null;
190
- emit(event.UPDATE_MODEL_EVENT, newVal);
191
- if (oldVal !== newVal) {
192
- emit(event.CHANGE_EVENT, newVal, oldVal);
193
- }
194
- if (props.validateEvent) {
195
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => error.debugWarn());
196
- }
197
- data.currentValue = newVal;
198
- };
199
- const handleInput = (value) => {
200
- data.userInput = value;
201
- const newVal = value === "" ? null : Number(value);
202
- emit(event.INPUT_EVENT, newVal);
203
- setCurrentValue(newVal, false);
204
- };
205
- const handleInputChange = (value) => {
206
- const newVal = value !== "" ? Number(value) : "";
207
- if (types.isNumber(newVal) && !Number.isNaN(newVal) || value === "") {
208
- setCurrentValue(newVal);
209
- }
210
- setCurrentValueToModelValue();
211
- data.userInput = null;
212
- };
213
- const focus = () => {
214
- var _a, _b;
215
- (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
216
- };
217
- const blur = () => {
218
- var _a, _b;
219
- (_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
220
- };
221
- const handleFocus = (event) => {
222
- emit("focus", event);
223
- };
224
- const handleBlur = (event) => {
225
- var _a, _b;
226
- data.userInput = null;
227
- if (data.currentValue === null && ((_a = input.value) == null ? void 0 : _a.input)) {
228
- input.value.input.value = "";
229
- }
230
- emit("blur", event);
231
- if (props.validateEvent) {
232
- (_b = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _b.call(formItem, "blur").catch((err) => error.debugWarn());
233
- }
234
- };
235
- const setCurrentValueToModelValue = () => {
236
- if (data.currentValue !== props.modelValue) {
237
- data.currentValue = props.modelValue;
238
- }
239
- };
240
- const handleWheel = (e) => {
241
- if (document.activeElement === e.target)
242
- e.preventDefault();
243
- };
244
- vue.watch(() => props.modelValue, (value, oldValue) => {
245
- const newValue = verifyValue(value, true);
246
- if (data.userInput === null && newValue !== oldValue) {
247
- data.currentValue = newValue;
248
- }
249
- }, { immediate: true });
250
- vue.watch(() => props.precision, () => {
251
- data.currentValue = verifyValue(props.modelValue);
252
- });
253
- vue.onMounted(() => {
254
- var _a;
255
- const { min, max, modelValue } = props;
256
- const innerInput = (_a = input.value) == null ? void 0 : _a.input;
257
- innerInput.setAttribute("role", "spinbutton");
258
- if (Number.isFinite(max)) {
259
- innerInput.setAttribute("aria-valuemax", String(max));
260
- } else {
261
- innerInput.removeAttribute("aria-valuemax");
262
- }
263
- if (Number.isFinite(min)) {
264
- innerInput.setAttribute("aria-valuemin", String(min));
265
- } else {
266
- innerInput.removeAttribute("aria-valuemin");
267
- }
268
- innerInput.setAttribute("aria-valuenow", data.currentValue || data.currentValue === 0 ? String(data.currentValue) : "");
269
- innerInput.setAttribute("aria-disabled", String(inputNumberDisabled.value));
270
- if (!types.isNumber(modelValue) && modelValue != null) {
271
- let val = Number(modelValue);
272
- if (Number.isNaN(val)) {
273
- val = null;
274
- }
275
- emit(event.UPDATE_MODEL_EVENT, val);
276
- }
277
- innerInput.addEventListener("wheel", handleWheel, { passive: false });
278
- });
279
- vue.onUpdated(() => {
280
- var _a, _b;
281
- const innerInput = (_a = input.value) == null ? void 0 : _a.input;
282
- innerInput == null ? void 0 : innerInput.setAttribute("aria-valuenow", `${(_b = data.currentValue) != null ? _b : ""}`);
283
- });
284
- expose({
285
- focus,
286
- blur
287
- });
288
- return (_ctx, _cache) => {
289
- return vue.openBlock(), vue.createElementBlock("div", {
290
- class: vue.normalizeClass([
291
- vue.unref(ns).b(),
292
- vue.unref(ns).m(vue.unref(inputNumberSize)),
293
- vue.unref(ns).is("disabled", vue.unref(inputNumberDisabled)),
294
- vue.unref(ns).is("without-controls", !_ctx.controls),
295
- vue.unref(ns).is("controls-right", vue.unref(controlsAtRight)),
296
- vue.unref(ns).is(_ctx.align, !!_ctx.align)
297
- ]),
298
- onDragstart: vue.withModifiers(() => {
299
- }, ["prevent"])
300
- }, [
301
- _ctx.controls ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
302
- key: 0,
303
- role: "button",
304
- "aria-label": vue.unref(t)("el.inputNumber.decrease"),
305
- class: vue.normalizeClass([vue.unref(ns).e("decrease"), vue.unref(ns).is("disabled", vue.unref(minDisabled))]),
306
- onKeydown: vue.withKeys(decrease, ["enter"])
307
- }, [
308
- vue.renderSlot(_ctx.$slots, "decrease-icon", {}, () => [
309
- vue.createVNode(vue.unref(index$2.ElIcon), null, {
310
- default: vue.withCtx(() => [
311
- vue.unref(controlsAtRight) ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.ArrowDown), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.Minus), { key: 1 }))
312
- ]),
313
- _: 1
314
- })
315
- ])
316
- ], 42, ["aria-label", "onKeydown"])), [
317
- [vue.unref(index$3.vRepeatClick), decrease]
318
- ]) : vue.createCommentVNode("v-if", true),
319
- _ctx.controls ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
320
- key: 1,
321
- role: "button",
322
- "aria-label": vue.unref(t)("el.inputNumber.increase"),
323
- class: vue.normalizeClass([vue.unref(ns).e("increase"), vue.unref(ns).is("disabled", vue.unref(maxDisabled))]),
324
- onKeydown: vue.withKeys(increase, ["enter"])
325
- }, [
326
- vue.renderSlot(_ctx.$slots, "increase-icon", {}, () => [
327
- vue.createVNode(vue.unref(index$2.ElIcon), null, {
328
- default: vue.withCtx(() => [
329
- vue.unref(controlsAtRight) ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.ArrowUp), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.Plus), { key: 1 }))
330
- ]),
331
- _: 1
332
- })
333
- ])
334
- ], 42, ["aria-label", "onKeydown"])), [
335
- [vue.unref(index$3.vRepeatClick), increase]
336
- ]) : vue.createCommentVNode("v-if", true),
337
- vue.createVNode(vue.unref(index$4.ElInput), {
338
- id: _ctx.id,
339
- ref_key: "input",
340
- ref: input,
341
- type: "number",
342
- step: _ctx.step,
343
- "model-value": vue.unref(displayValue),
344
- placeholder: _ctx.placeholder,
345
- readonly: _ctx.readonly,
346
- disabled: vue.unref(inputNumberDisabled),
347
- size: vue.unref(inputNumberSize),
348
- max: _ctx.max,
349
- min: _ctx.min,
350
- name: _ctx.name,
351
- "aria-label": _ctx.ariaLabel,
352
- "validate-event": false,
353
- inputmode: _ctx.inputmode,
354
- onKeydown: handleKeydown,
355
- onBlur: handleBlur,
356
- onFocus: handleFocus,
357
- onInput: handleInput,
358
- onChange: handleInputChange
359
- }, vue.createSlots({
360
- _: 2
361
- }, [
362
- _ctx.$slots.prefix ? {
363
- name: "prefix",
364
- fn: vue.withCtx(() => [
365
- vue.renderSlot(_ctx.$slots, "prefix")
366
- ])
367
- } : void 0,
368
- _ctx.$slots.suffix ? {
369
- name: "suffix",
370
- fn: vue.withCtx(() => [
371
- vue.renderSlot(_ctx.$slots, "suffix")
372
- ])
373
- } : void 0
374
- ]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "inputmode"])
375
- ], 42, ["onDragstart"]);
376
- };
377
- }
378
- });
379
- var InputNumber = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "input-number.vue"]]);
71
+ const inputNumberEmits = {
72
+ [event.CHANGE_EVENT]: (cur, prev) => prev !== cur,
73
+ blur: (e) => e instanceof FocusEvent,
74
+ focus: (e) => e instanceof FocusEvent,
75
+ [event.INPUT_EVENT]: (val) => types.isNumber(val) || lodashUnified.isNil(val),
76
+ [event.UPDATE_MODEL_EVENT]: (val) => types.isNumber(val) || lodashUnified.isNil(val)
77
+ };
380
78
 
381
- exports["default"] = InputNumber;
79
+ exports.inputNumberEmits = inputNumberEmits;
80
+ exports.inputNumberProps = inputNumberProps;
382
81
  //# sourceMappingURL=input-number.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-number.js","sources":["../../../../../../packages/components/input-number/src/input-number.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.m(inputNumberSize),\n ns.is('disabled', inputNumberDisabled),\n ns.is('without-controls', !controls),\n ns.is('controls-right', controlsAtRight),\n ns.is(align, !!align),\n ]\"\n @dragstart.prevent\n >\n <span\n v-if=\"controls\"\n v-repeat-click=\"decrease\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.decrease')\"\n :class=\"[ns.e('decrease'), ns.is('disabled', minDisabled)]\"\n @keydown.enter=\"decrease\"\n >\n <slot name=\"decrease-icon\">\n <el-icon>\n <arrow-down v-if=\"controlsAtRight\" />\n <minus v-else />\n </el-icon>\n </slot>\n </span>\n <span\n v-if=\"controls\"\n v-repeat-click=\"increase\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.increase')\"\n :class=\"[ns.e('increase'), ns.is('disabled', maxDisabled)]\"\n @keydown.enter=\"increase\"\n >\n <slot name=\"increase-icon\">\n <el-icon>\n <arrow-up v-if=\"controlsAtRight\" />\n <plus v-else />\n </el-icon>\n </slot>\n </span>\n <el-input\n :id=\"id\"\n ref=\"input\"\n type=\"number\"\n :step=\"step\"\n :model-value=\"displayValue\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :disabled=\"inputNumberDisabled\"\n :size=\"inputNumberSize\"\n :max=\"max\"\n :min=\"min\"\n :name=\"name\"\n :aria-label=\"ariaLabel\"\n :validate-event=\"false\"\n :inputmode=\"inputmode\"\n @keydown=\"handleKeydown\"\n @blur=\"handleBlur\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @change=\"handleInputChange\"\n >\n <template v-if=\"$slots.prefix\" #prefix>\n <slot name=\"prefix\" />\n </template>\n <template v-if=\"$slots.suffix\" #suffix>\n <slot name=\"suffix\" />\n </template>\n </el-input>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, onUpdated, reactive, ref, watch } from 'vue'\nimport { isNil } from 'lodash-unified'\nimport { ElInput } from '@element-plus/components/input'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormSize,\n} from '@element-plus/components/form'\nimport { vRepeatClick } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport {\n debugWarn,\n 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: Event) => {\n const e = event as KeyboardEvent\n if (props.disabledScientific && ['e', 'E'].includes(e.key)) {\n e.preventDefault()\n return\n }\n const keyHandlers = {\n [EVENT_CODE.up]: () => {\n e.preventDefault()\n increase()\n },\n [EVENT_CODE.down]: () => {\n e.preventDefault()\n decrease()\n },\n }\n keyHandlers[e.key]?.()\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)\n\nwatch(\n () => props.precision,\n () => {\n data.currentValue = verifyValue(props.modelValue)\n }\n)\nonMounted(() => {\n const { min, max, modelValue } = props\n const innerInput = input.value?.input as HTMLInputElement\n innerInput.setAttribute('role', 'spinbutton')\n if (Number.isFinite(max)) {\n innerInput.setAttribute('aria-valuemax', String(max))\n } else {\n innerInput.removeAttribute('aria-valuemax')\n }\n if (Number.isFinite(min)) {\n innerInput.setAttribute('aria-valuemin', String(min))\n } else {\n innerInput.removeAttribute('aria-valuemin')\n }\n innerInput.setAttribute(\n 'aria-valuenow',\n data.currentValue || data.currentValue === 0\n ? String(data.currentValue)\n : ''\n )\n innerInput.setAttribute('aria-disabled', String(inputNumberDisabled.value))\n if (!isNumber(modelValue) && modelValue != null) {\n let val: number | null = Number(modelValue)\n if (Number.isNaN(val)) {\n val = null\n }\n emit(UPDATE_MODEL_EVENT, val!)\n }\n innerInput.addEventListener('wheel', handleWheel, { passive: false })\n})\nonUpdated(() => {\n const innerInput = input.value?.input\n innerInput?.setAttribute('aria-valuenow', `${data.currentValue ?? ''}`)\n})\ndefineExpose({\n /** @description get focus the input component */\n focus,\n /** @description remove focus the input component */\n blur,\n})\n</script>\n"],"names":["useLocale","useNamespace","ref","reactive","useFormItem","computed","isNumber","useFormSize","useFormDisabled","isNil","isUndefined","EVENT_CODE","INPUT_EVENT","throwError","isString","UPDATE_MODEL_EVENT","CHANGE_EVENT","debugWarn","watch","onMounted","onUpdated","_openBlock","_createElementBlock","_normalizeClass","_unref"],"mappings":";;;;;;;;;;;;;;;;;;;;;;uCAwGc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,cAAc,CAAA,CAAA;AACtC,IAAA,MAAM,QAAQC,OAAmB,EAAA,CAAA;AAMjC,IAAA,MAAM,OAAOC,YAAe,CAAA;AAAA,MAC1B,cAAc,KAAM,CAAA,UAAA;AAAA,MACpB,SAAW,EAAA,IAAA;AAAA,KACZ,CAAA,CAAA;AAED,IAAM,MAAA,EAAE,QAAS,EAAA,GAAIC,uBAAY,EAAA,CAAA;AAEjC,IAAA,MAAM,WAAc,G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AAA;AAAA,QAEX,KAAA,EAAAC,kBAAA,CAAA;AAAA,UAAAC,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA;AAAA,UAEAA,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAAA,SAAA,CAAA,eAAA,CAAA,CAAA;AAAA,UACDA,SAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,UAAA,EAAAA,SAAA,CAAA,mBAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"input-number.js","sources":["../../../../../../packages/components/input-number/src/input-number.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\n\nimport type {\n ExtractPropTypes,\n HTMLAttributes,\n __ExtractPublicPropTypes,\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: 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 /**\n * @description native input mode for virtual keyboards\n */\n inputmode: {\n type: definePropType<HTMLAttributes['inputmode']>(String),\n default: undefined,\n },\n /**\n * @description alignment for the inner input text\n */\n align: {\n type: definePropType<'left' | 'right' | 'center'>(String),\n default: 'center',\n },\n /**\n * @description whether to disable scientific notation input (e.g. 'e', 'E')\n */\n disabledScientific: Boolean,\n} as const)\nexport type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>\nexport type InputNumberPropsPublic = __ExtractPublicPropTypes<\n typeof inputNumberProps\n>\n\nexport const inputNumberEmits = {\n [CHANGE_EVENT]: (cur: number | undefined, prev: number | undefined) =>\n prev !== cur,\n blur: (e: FocusEvent) => e instanceof FocusEvent,\n focus: (e: FocusEvent) => e instanceof FocusEvent,\n [INPUT_EVENT]: (val: number | null | undefined) =>\n isNumber(val) || isNil(val),\n [UPDATE_MODEL_EVENT]: (val: number | undefined) =>\n isNumber(val) || isNil(val),\n}\nexport type InputNumberEmits = typeof inputNumberEmits\n\nexport type InputNumberInstance = InstanceType<typeof InputNumber> & unknown\n"],"names":["buildProps","useSizeProp","isNumber","useAriaProps","definePropType","CHANGE_EVENT","INPUT_EVENT","isNil","UPDATE_MODEL_EVENT"],"mappings":";;;;;;;;;;;AAQY,MAAC,gBAAgB,GAAGA,kBA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