@element-plus/nightly 0.0.20250104 → 0.0.20250105

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. package/dist/index.full.js +4 -4
  2. package/dist/index.full.min.js +2 -2
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +2 -2
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +4 -4
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/ms.js +1 -1
  152. package/dist/locale/ms.min.js +1 -1
  153. package/dist/locale/ms.min.mjs +1 -1
  154. package/dist/locale/ms.mjs +1 -1
  155. package/dist/locale/my.js +1 -1
  156. package/dist/locale/my.min.js +1 -1
  157. package/dist/locale/my.min.mjs +1 -1
  158. package/dist/locale/my.mjs +1 -1
  159. package/dist/locale/nb-no.js +1 -1
  160. package/dist/locale/nb-no.min.js +1 -1
  161. package/dist/locale/nb-no.min.mjs +1 -1
  162. package/dist/locale/nb-no.mjs +1 -1
  163. package/dist/locale/nl.js +1 -1
  164. package/dist/locale/nl.min.js +1 -1
  165. package/dist/locale/nl.min.mjs +1 -1
  166. package/dist/locale/nl.mjs +1 -1
  167. package/dist/locale/pa.js +1 -1
  168. package/dist/locale/pa.min.js +1 -1
  169. package/dist/locale/pa.min.mjs +1 -1
  170. package/dist/locale/pa.mjs +1 -1
  171. package/dist/locale/pl.js +1 -1
  172. package/dist/locale/pl.min.js +1 -1
  173. package/dist/locale/pl.min.mjs +1 -1
  174. package/dist/locale/pl.mjs +1 -1
  175. package/dist/locale/pt-br.js +1 -1
  176. package/dist/locale/pt-br.min.js +1 -1
  177. package/dist/locale/pt-br.min.mjs +1 -1
  178. package/dist/locale/pt-br.mjs +1 -1
  179. package/dist/locale/pt.js +1 -1
  180. package/dist/locale/pt.min.js +1 -1
  181. package/dist/locale/pt.min.mjs +1 -1
  182. package/dist/locale/pt.mjs +1 -1
  183. package/dist/locale/ro.js +1 -1
  184. package/dist/locale/ro.min.js +1 -1
  185. package/dist/locale/ro.min.mjs +1 -1
  186. package/dist/locale/ro.mjs +1 -1
  187. package/dist/locale/ru.js +1 -1
  188. package/dist/locale/ru.min.js +1 -1
  189. package/dist/locale/ru.min.mjs +1 -1
  190. package/dist/locale/ru.mjs +1 -1
  191. package/dist/locale/sk.js +1 -1
  192. package/dist/locale/sk.min.js +1 -1
  193. package/dist/locale/sk.min.mjs +1 -1
  194. package/dist/locale/sk.mjs +1 -1
  195. package/dist/locale/sl.js +1 -1
  196. package/dist/locale/sl.min.js +1 -1
  197. package/dist/locale/sl.min.mjs +1 -1
  198. package/dist/locale/sl.mjs +1 -1
  199. package/dist/locale/sr.js +1 -1
  200. package/dist/locale/sr.min.js +1 -1
  201. package/dist/locale/sr.min.mjs +1 -1
  202. package/dist/locale/sr.mjs +1 -1
  203. package/dist/locale/sv.js +1 -1
  204. package/dist/locale/sv.min.js +1 -1
  205. package/dist/locale/sv.min.mjs +1 -1
  206. package/dist/locale/sv.mjs +1 -1
  207. package/dist/locale/sw.js +1 -1
  208. package/dist/locale/sw.min.js +1 -1
  209. package/dist/locale/sw.min.mjs +1 -1
  210. package/dist/locale/sw.mjs +1 -1
  211. package/dist/locale/ta.js +1 -1
  212. package/dist/locale/ta.min.js +1 -1
  213. package/dist/locale/ta.min.mjs +1 -1
  214. package/dist/locale/ta.mjs +1 -1
  215. package/dist/locale/th.js +1 -1
  216. package/dist/locale/th.min.js +1 -1
  217. package/dist/locale/th.min.mjs +1 -1
  218. package/dist/locale/th.mjs +1 -1
  219. package/dist/locale/tk.js +1 -1
  220. package/dist/locale/tk.min.js +1 -1
  221. package/dist/locale/tk.min.mjs +1 -1
  222. package/dist/locale/tk.mjs +1 -1
  223. package/dist/locale/tr.js +1 -1
  224. package/dist/locale/tr.min.js +1 -1
  225. package/dist/locale/tr.min.mjs +1 -1
  226. package/dist/locale/tr.mjs +1 -1
  227. package/dist/locale/ug-cn.js +1 -1
  228. package/dist/locale/ug-cn.min.js +1 -1
  229. package/dist/locale/ug-cn.min.mjs +1 -1
  230. package/dist/locale/ug-cn.mjs +1 -1
  231. package/dist/locale/uk.js +1 -1
  232. package/dist/locale/uk.min.js +1 -1
  233. package/dist/locale/uk.min.mjs +1 -1
  234. package/dist/locale/uk.mjs +1 -1
  235. package/dist/locale/uz-uz.js +1 -1
  236. package/dist/locale/uz-uz.min.js +1 -1
  237. package/dist/locale/uz-uz.min.mjs +1 -1
  238. package/dist/locale/uz-uz.mjs +1 -1
  239. package/dist/locale/vi.js +1 -1
  240. package/dist/locale/vi.min.js +1 -1
  241. package/dist/locale/vi.min.mjs +1 -1
  242. package/dist/locale/vi.mjs +1 -1
  243. package/dist/locale/zh-cn.js +1 -1
  244. package/dist/locale/zh-cn.min.js +1 -1
  245. package/dist/locale/zh-cn.min.mjs +1 -1
  246. package/dist/locale/zh-cn.mjs +1 -1
  247. package/dist/locale/zh-tw.js +1 -1
  248. package/dist/locale/zh-tw.min.js +1 -1
  249. package/dist/locale/zh-tw.min.mjs +1 -1
  250. package/dist/locale/zh-tw.mjs +1 -1
  251. package/es/components/anchor/index.mjs +1 -1
  252. package/es/components/anchor/src/anchor-link.mjs +81 -5
  253. package/es/components/anchor/src/anchor-link.mjs.map +1 -1
  254. package/es/components/anchor/src/anchor-link2.mjs +5 -81
  255. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  256. package/es/components/autocomplete/index.mjs +2 -2
  257. package/es/components/autocomplete/src/autocomplete.mjs +364 -79
  258. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  259. package/es/components/autocomplete/src/autocomplete2.mjs +79 -364
  260. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  261. package/es/components/button/index.mjs +1 -1
  262. package/es/components/button/src/button-group.mjs +6 -29
  263. package/es/components/button/src/button-group.mjs.map +1 -1
  264. package/es/components/button/src/button-group2.mjs +29 -6
  265. package/es/components/button/src/button-group2.mjs.map +1 -1
  266. package/es/components/card/index.mjs +2 -2
  267. package/es/components/card/src/card.mjs +42 -20
  268. package/es/components/card/src/card.mjs.map +1 -1
  269. package/es/components/card/src/card2.mjs +20 -42
  270. package/es/components/card/src/card2.mjs.map +1 -1
  271. package/es/components/cascader/src/cascader.mjs +1 -1
  272. package/es/components/checkbox/index.mjs +4 -4
  273. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  274. package/es/components/checkbox/src/checkbox-group.mjs +71 -29
  275. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  276. package/es/components/checkbox/src/checkbox-group2.mjs +29 -71
  277. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  278. package/es/components/checkbox/src/checkbox.mjs +119 -59
  279. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  280. package/es/components/checkbox/src/checkbox2.mjs +59 -119
  281. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  282. package/es/components/col/index.mjs +2 -2
  283. package/es/components/col/src/col.mjs +64 -43
  284. package/es/components/col/src/col.mjs.map +1 -1
  285. package/es/components/col/src/col2.mjs +43 -64
  286. package/es/components/col/src/col2.mjs.map +1 -1
  287. package/es/components/collection/index.mjs +1 -1
  288. package/es/components/collection/src/collection.mjs +62 -10
  289. package/es/components/collection/src/collection.mjs.map +1 -1
  290. package/es/components/collection/src/collection2.mjs +10 -62
  291. package/es/components/collection/src/collection2.mjs.map +1 -1
  292. package/es/components/countdown/index.mjs +2 -2
  293. package/es/components/countdown/src/countdown.mjs +22 -79
  294. package/es/components/countdown/src/countdown.mjs.map +1 -1
  295. package/es/components/countdown/src/countdown2.mjs +79 -22
  296. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  297. package/es/components/dialog/src/dialog-content.mjs +26 -87
  298. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  299. package/es/components/dialog/src/dialog-content2.mjs +87 -26
  300. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  301. package/es/components/dialog/src/dialog.mjs +1 -1
  302. package/es/components/dialog/src/dialog2.mjs +1 -1
  303. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  304. package/es/components/dropdown/src/dropdown.mjs +1 -1
  305. package/es/components/empty/index.mjs +2 -2
  306. package/es/components/empty/src/empty.mjs +11 -52
  307. package/es/components/empty/src/empty.mjs.map +1 -1
  308. package/es/components/empty/src/empty2.mjs +52 -11
  309. package/es/components/empty/src/empty2.mjs.map +1 -1
  310. package/es/components/index.mjs +16 -16
  311. package/es/components/input/index.mjs +2 -2
  312. package/es/components/input/src/input.mjs +431 -102
  313. package/es/components/input/src/input.mjs.map +1 -1
  314. package/es/components/input/src/input2.mjs +102 -431
  315. package/es/components/input/src/input2.mjs.map +1 -1
  316. package/es/components/input-tag/index.mjs +2 -2
  317. package/es/components/input-tag/src/input-tag.mjs +65 -215
  318. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  319. package/es/components/input-tag/src/input-tag2.mjs +215 -65
  320. package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
  321. package/es/components/mention/src/mention.mjs +1 -1
  322. package/es/components/mention/src/mention2.mjs +1 -1
  323. package/es/components/pagination/src/components/pager.mjs +209 -16
  324. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  325. package/es/components/pagination/src/components/pager2.mjs +16 -209
  326. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  327. package/es/components/pagination/src/pagination.mjs +1 -1
  328. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  329. package/es/components/select/src/select.mjs +1 -1
  330. package/es/components/select-v2/src/defaults.mjs +1 -1
  331. package/es/components/slider/src/button.mjs +19 -89
  332. package/es/components/slider/src/button.mjs.map +1 -1
  333. package/es/components/slider/src/button2.mjs +89 -19
  334. package/es/components/slider/src/button2.mjs.map +1 -1
  335. package/es/components/slider/src/slider2.mjs +1 -1
  336. package/es/components/statistic/index.mjs +2 -2
  337. package/es/components/statistic/src/statistic.mjs +69 -25
  338. package/es/components/statistic/src/statistic.mjs.map +1 -1
  339. package/es/components/statistic/src/statistic2.mjs +25 -69
  340. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  341. package/es/components/switch/index.mjs +2 -2
  342. package/es/components/switch/src/switch.mjs +228 -72
  343. package/es/components/switch/src/switch.mjs.map +1 -1
  344. package/es/components/switch/src/switch2.mjs +72 -228
  345. package/es/components/switch/src/switch2.mjs.map +1 -1
  346. package/es/components/tabs/index.mjs +2 -2
  347. package/es/components/tabs/src/tab-pane.mjs +71 -13
  348. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  349. package/es/components/tabs/src/tab-pane2.mjs +13 -71
  350. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  351. package/es/components/tag/index.mjs +2 -2
  352. package/es/components/tag/src/tag.mjs +27 -99
  353. package/es/components/tag/src/tag.mjs.map +1 -1
  354. package/es/components/tag/src/tag2.mjs +99 -27
  355. package/es/components/tag/src/tag2.mjs.map +1 -1
  356. package/es/components/text/index.mjs +2 -2
  357. package/es/components/text/src/text.mjs +21 -36
  358. package/es/components/text/src/text.mjs.map +1 -1
  359. package/es/components/text/src/text2.mjs +36 -21
  360. package/es/components/text/src/text2.mjs.map +1 -1
  361. package/es/components/tooltip-v2/index.mjs +2 -2
  362. package/es/components/tooltip-v2/src/tooltip.mjs +19 -77
  363. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  364. package/es/components/tooltip-v2/src/tooltip2.mjs +77 -19
  365. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  366. package/es/components/tour/index.mjs +1 -1
  367. package/es/components/tour/src/content.mjs +43 -67
  368. package/es/components/tour/src/content.mjs.map +1 -1
  369. package/es/components/tour/src/content2.mjs +67 -43
  370. package/es/components/tour/src/content2.mjs.map +1 -1
  371. package/es/components/tour/src/step.mjs +1 -1
  372. package/es/components/tour/src/tour.mjs +1 -1
  373. package/es/components/tour/src/tour2.mjs +1 -1
  374. package/es/components/watermark/index.mjs +2 -2
  375. package/es/components/watermark/src/watermark.mjs +210 -27
  376. package/es/components/watermark/src/watermark.mjs.map +1 -1
  377. package/es/components/watermark/src/watermark2.mjs +27 -210
  378. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  379. package/es/hooks/use-lockscreen/index.mjs +3 -3
  380. package/es/hooks/use-lockscreen/index.mjs.map +1 -1
  381. package/es/index.mjs +16 -16
  382. package/es/version.d.ts +1 -1
  383. package/es/version.mjs +1 -1
  384. package/es/version.mjs.map +1 -1
  385. package/lib/components/anchor/index.js +1 -1
  386. package/lib/components/anchor/src/anchor-link.js +81 -5
  387. package/lib/components/anchor/src/anchor-link.js.map +1 -1
  388. package/lib/components/anchor/src/anchor-link2.js +5 -81
  389. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  390. package/lib/components/autocomplete/index.js +2 -2
  391. package/lib/components/autocomplete/src/autocomplete.js +363 -79
  392. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  393. package/lib/components/autocomplete/src/autocomplete2.js +79 -363
  394. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  395. package/lib/components/button/index.js +1 -1
  396. package/lib/components/button/src/button-group.js +6 -29
  397. package/lib/components/button/src/button-group.js.map +1 -1
  398. package/lib/components/button/src/button-group2.js +29 -6
  399. package/lib/components/button/src/button-group2.js.map +1 -1
  400. package/lib/components/card/index.js +2 -2
  401. package/lib/components/card/src/card.js +42 -20
  402. package/lib/components/card/src/card.js.map +1 -1
  403. package/lib/components/card/src/card2.js +20 -42
  404. package/lib/components/card/src/card2.js.map +1 -1
  405. package/lib/components/cascader/src/cascader.js +1 -1
  406. package/lib/components/checkbox/index.js +4 -4
  407. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  408. package/lib/components/checkbox/src/checkbox-group.js +71 -30
  409. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  410. package/lib/components/checkbox/src/checkbox-group2.js +30 -71
  411. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  412. package/lib/components/checkbox/src/checkbox.js +119 -60
  413. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  414. package/lib/components/checkbox/src/checkbox2.js +60 -119
  415. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  416. package/lib/components/col/index.js +2 -2
  417. package/lib/components/col/src/col.js +64 -43
  418. package/lib/components/col/src/col.js.map +1 -1
  419. package/lib/components/col/src/col2.js +43 -64
  420. package/lib/components/col/src/col2.js.map +1 -1
  421. package/lib/components/collection/index.js +1 -1
  422. package/lib/components/collection/src/collection.js +62 -9
  423. package/lib/components/collection/src/collection.js.map +1 -1
  424. package/lib/components/collection/src/collection2.js +9 -62
  425. package/lib/components/collection/src/collection2.js.map +1 -1
  426. package/lib/components/countdown/index.js +2 -2
  427. package/lib/components/countdown/src/countdown.js +23 -79
  428. package/lib/components/countdown/src/countdown.js.map +1 -1
  429. package/lib/components/countdown/src/countdown2.js +79 -23
  430. package/lib/components/countdown/src/countdown2.js.map +1 -1
  431. package/lib/components/dialog/src/dialog-content.js +26 -86
  432. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  433. package/lib/components/dialog/src/dialog-content2.js +86 -26
  434. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  435. package/lib/components/dialog/src/dialog.js +1 -1
  436. package/lib/components/dialog/src/dialog2.js +1 -1
  437. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  438. package/lib/components/dropdown/src/dropdown.js +1 -1
  439. package/lib/components/empty/index.js +2 -2
  440. package/lib/components/empty/src/empty.js +11 -52
  441. package/lib/components/empty/src/empty.js.map +1 -1
  442. package/lib/components/empty/src/empty2.js +52 -11
  443. package/lib/components/empty/src/empty2.js.map +1 -1
  444. package/lib/components/index.js +16 -16
  445. package/lib/components/input/index.js +2 -2
  446. package/lib/components/input/src/input.js +430 -102
  447. package/lib/components/input/src/input.js.map +1 -1
  448. package/lib/components/input/src/input2.js +102 -430
  449. package/lib/components/input/src/input2.js.map +1 -1
  450. package/lib/components/input-tag/index.js +2 -2
  451. package/lib/components/input-tag/src/input-tag.js +65 -214
  452. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  453. package/lib/components/input-tag/src/input-tag2.js +214 -65
  454. package/lib/components/input-tag/src/input-tag2.js.map +1 -1
  455. package/lib/components/mention/src/mention.js +1 -1
  456. package/lib/components/mention/src/mention2.js +1 -1
  457. package/lib/components/pagination/src/components/pager.js +209 -16
  458. package/lib/components/pagination/src/components/pager.js.map +1 -1
  459. package/lib/components/pagination/src/components/pager2.js +16 -209
  460. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  461. package/lib/components/pagination/src/pagination.js +1 -1
  462. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  463. package/lib/components/select/src/select.js +1 -1
  464. package/lib/components/select-v2/src/defaults.js +1 -1
  465. package/lib/components/slider/src/button.js +20 -89
  466. package/lib/components/slider/src/button.js.map +1 -1
  467. package/lib/components/slider/src/button2.js +89 -20
  468. package/lib/components/slider/src/button2.js.map +1 -1
  469. package/lib/components/slider/src/slider2.js +1 -1
  470. package/lib/components/statistic/index.js +2 -2
  471. package/lib/components/statistic/src/statistic.js +69 -25
  472. package/lib/components/statistic/src/statistic.js.map +1 -1
  473. package/lib/components/statistic/src/statistic2.js +25 -69
  474. package/lib/components/statistic/src/statistic2.js.map +1 -1
  475. package/lib/components/switch/index.js +2 -2
  476. package/lib/components/switch/src/switch.js +227 -72
  477. package/lib/components/switch/src/switch.js.map +1 -1
  478. package/lib/components/switch/src/switch2.js +72 -227
  479. package/lib/components/switch/src/switch2.js.map +1 -1
  480. package/lib/components/tabs/index.js +2 -2
  481. package/lib/components/tabs/src/tab-pane.js +71 -13
  482. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  483. package/lib/components/tabs/src/tab-pane2.js +13 -71
  484. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  485. package/lib/components/tag/index.js +2 -2
  486. package/lib/components/tag/src/tag.js +28 -99
  487. package/lib/components/tag/src/tag.js.map +1 -1
  488. package/lib/components/tag/src/tag2.js +99 -28
  489. package/lib/components/tag/src/tag2.js.map +1 -1
  490. package/lib/components/text/index.js +2 -2
  491. package/lib/components/text/src/text.js +21 -36
  492. package/lib/components/text/src/text.js.map +1 -1
  493. package/lib/components/text/src/text2.js +36 -21
  494. package/lib/components/text/src/text2.js.map +1 -1
  495. package/lib/components/tooltip-v2/index.js +2 -2
  496. package/lib/components/tooltip-v2/src/tooltip.js +19 -77
  497. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  498. package/lib/components/tooltip-v2/src/tooltip2.js +77 -19
  499. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  500. package/lib/components/tour/index.js +1 -1
  501. package/lib/components/tour/src/content.js +46 -67
  502. package/lib/components/tour/src/content.js.map +1 -1
  503. package/lib/components/tour/src/content2.js +67 -46
  504. package/lib/components/tour/src/content2.js.map +1 -1
  505. package/lib/components/tour/src/step.js +1 -1
  506. package/lib/components/tour/src/tour.js +1 -1
  507. package/lib/components/tour/src/tour2.js +1 -1
  508. package/lib/components/watermark/index.js +2 -2
  509. package/lib/components/watermark/src/watermark.js +210 -27
  510. package/lib/components/watermark/src/watermark.js.map +1 -1
  511. package/lib/components/watermark/src/watermark2.js +27 -210
  512. package/lib/components/watermark/src/watermark2.js.map +1 -1
  513. package/lib/hooks/use-lockscreen/index.js +2 -2
  514. package/lib/hooks/use-lockscreen/index.js.map +1 -1
  515. package/lib/index.js +16 -16
  516. package/lib/version.d.ts +1 -1
  517. package/lib/version.js +1 -1
  518. package/lib/version.js.map +1 -1
  519. package/package.json +2 -2
  520. package/web-types.json +1 -1
@@ -1,436 +1,107 @@
1
- import { defineComponent, useAttrs, useSlots, computed, shallowRef, ref, watch, nextTick, onMounted, toRef, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createCommentVNode, Fragment, renderSlot, createElementVNode, createBlock, withCtx, resolveDynamicComponent, mergeProps, withModifiers, createVNode, toDisplayString } from 'vue';
2
- import { useResizeObserver, isClient } from '@vueuse/core';
3
- import { isNil } from 'lodash-unified';
4
- import { ElIcon } from '../../icon/index.mjs';
5
- import { View, Hide, CircleClose } from '@element-plus/icons-vue';
6
- import { calcTextareaHeight } from './utils.mjs';
7
- import { inputProps, inputEmits } from './input.mjs';
8
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
- import { useAttrs as useAttrs$1 } from '../../../hooks/use-attrs/index.mjs';
10
- import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
11
- import { useFormSize, useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
12
- import { useFocusController } from '../../../hooks/use-focus-controller/index.mjs';
13
- import { ValidateComponentsMap } from '../../../utils/vue/icon.mjs';
14
- import { useComposition } from '../../../hooks/use-composition/index.mjs';
15
- import { useCursor } from '../../../hooks/use-cursor/index.mjs';
16
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
17
- import { debugWarn } from '../../../utils/error.mjs';
18
- import { NOOP, isObject } from '@vue/shared';
1
+ import { useSizeProp } from '../../../hooks/use-size/index.mjs';
2
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
3
+ import { mutable } from '../../../utils/typescript.mjs';
4
+ import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
19
5
  import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
6
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
7
+ import { isString } from '@vue/shared';
20
8
 
21
- const __default__ = defineComponent({
22
- name: "ElInput",
23
- inheritAttrs: false
9
+ const inputProps = buildProps({
10
+ id: {
11
+ type: String,
12
+ default: void 0
13
+ },
14
+ size: useSizeProp,
15
+ disabled: Boolean,
16
+ modelValue: {
17
+ type: definePropType([
18
+ String,
19
+ Number,
20
+ Object
21
+ ]),
22
+ default: ""
23
+ },
24
+ maxlength: {
25
+ type: [String, Number]
26
+ },
27
+ minlength: {
28
+ type: [String, Number]
29
+ },
30
+ type: {
31
+ type: String,
32
+ default: "text"
33
+ },
34
+ resize: {
35
+ type: String,
36
+ values: ["none", "both", "horizontal", "vertical"]
37
+ },
38
+ autosize: {
39
+ type: definePropType([Boolean, Object]),
40
+ default: false
41
+ },
42
+ autocomplete: {
43
+ type: String,
44
+ default: "off"
45
+ },
46
+ formatter: {
47
+ type: Function
48
+ },
49
+ parser: {
50
+ type: Function
51
+ },
52
+ placeholder: {
53
+ type: String
54
+ },
55
+ form: {
56
+ type: String
57
+ },
58
+ readonly: Boolean,
59
+ clearable: Boolean,
60
+ showPassword: Boolean,
61
+ showWordLimit: Boolean,
62
+ suffixIcon: {
63
+ type: iconPropType
64
+ },
65
+ prefixIcon: {
66
+ type: iconPropType
67
+ },
68
+ containerRole: {
69
+ type: String,
70
+ default: void 0
71
+ },
72
+ tabindex: {
73
+ type: [String, Number],
74
+ default: 0
75
+ },
76
+ validateEvent: {
77
+ type: Boolean,
78
+ default: true
79
+ },
80
+ inputStyle: {
81
+ type: definePropType([Object, Array, String]),
82
+ default: () => mutable({})
83
+ },
84
+ autofocus: Boolean,
85
+ rows: {
86
+ type: Number,
87
+ default: 2
88
+ },
89
+ ...useAriaProps(["ariaLabel"])
24
90
  });
25
- const _sfc_main = /* @__PURE__ */ defineComponent({
26
- ...__default__,
27
- props: inputProps,
28
- emits: inputEmits,
29
- setup(__props, { expose, emit }) {
30
- const props = __props;
31
- const rawAttrs = useAttrs();
32
- const attrs = useAttrs$1();
33
- const slots = useSlots();
34
- const containerKls = computed(() => [
35
- props.type === "textarea" ? nsTextarea.b() : nsInput.b(),
36
- nsInput.m(inputSize.value),
37
- nsInput.is("disabled", inputDisabled.value),
38
- nsInput.is("exceed", inputExceed.value),
39
- {
40
- [nsInput.b("group")]: slots.prepend || slots.append,
41
- [nsInput.m("prefix")]: slots.prefix || props.prefixIcon,
42
- [nsInput.m("suffix")]: slots.suffix || props.suffixIcon || props.clearable || props.showPassword,
43
- [nsInput.bm("suffix", "password-clear")]: showClear.value && showPwdVisible.value,
44
- [nsInput.b("hidden")]: props.type === "hidden"
45
- },
46
- rawAttrs.class
47
- ]);
48
- const wrapperKls = computed(() => [
49
- nsInput.e("wrapper"),
50
- nsInput.is("focus", isFocused.value)
51
- ]);
52
- const { form: elForm, formItem: elFormItem } = useFormItem();
53
- const { inputId } = useFormItemInputId(props, {
54
- formItemContext: elFormItem
55
- });
56
- const inputSize = useFormSize();
57
- const inputDisabled = useFormDisabled();
58
- const nsInput = useNamespace("input");
59
- const nsTextarea = useNamespace("textarea");
60
- const input = shallowRef();
61
- const textarea = shallowRef();
62
- const hovering = ref(false);
63
- const passwordVisible = ref(false);
64
- const countStyle = ref();
65
- const textareaCalcStyle = shallowRef(props.inputStyle);
66
- const _ref = computed(() => input.value || textarea.value);
67
- const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(_ref, {
68
- beforeFocus() {
69
- return inputDisabled.value;
70
- },
71
- afterBlur() {
72
- var _a;
73
- if (props.validateEvent) {
74
- (_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => debugWarn(err));
75
- }
76
- }
77
- });
78
- const needStatusIcon = computed(() => {
79
- var _a;
80
- return (_a = elForm == null ? void 0 : elForm.statusIcon) != null ? _a : false;
81
- });
82
- const validateState = computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
83
- const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
84
- const passwordIcon = computed(() => passwordVisible.value ? View : Hide);
85
- const containerStyle = computed(() => [
86
- rawAttrs.style
87
- ]);
88
- const textareaStyle = computed(() => [
89
- props.inputStyle,
90
- textareaCalcStyle.value,
91
- { resize: props.resize }
92
- ]);
93
- const nativeInputValue = computed(() => isNil(props.modelValue) ? "" : String(props.modelValue));
94
- const showClear = computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
95
- const showPwdVisible = computed(() => props.showPassword && !inputDisabled.value && !!nativeInputValue.value && (!!nativeInputValue.value || isFocused.value));
96
- const isWordLimitVisible = computed(() => props.showWordLimit && !!props.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
97
- const textLength = computed(() => nativeInputValue.value.length);
98
- const inputExceed = computed(() => !!isWordLimitVisible.value && textLength.value > Number(props.maxlength));
99
- const suffixVisible = computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
100
- const [recordCursor, setCursor] = useCursor(input);
101
- useResizeObserver(textarea, (entries) => {
102
- onceInitSizeTextarea();
103
- if (!isWordLimitVisible.value || props.resize !== "both")
104
- return;
105
- const entry = entries[0];
106
- const { width } = entry.contentRect;
107
- countStyle.value = {
108
- right: `calc(100% - ${width + 15 + 6}px)`
109
- };
110
- });
111
- const resizeTextarea = () => {
112
- const { type, autosize } = props;
113
- if (!isClient || type !== "textarea" || !textarea.value)
114
- return;
115
- if (autosize) {
116
- const minRows = isObject(autosize) ? autosize.minRows : void 0;
117
- const maxRows = isObject(autosize) ? autosize.maxRows : void 0;
118
- const textareaStyle2 = calcTextareaHeight(textarea.value, minRows, maxRows);
119
- textareaCalcStyle.value = {
120
- overflowY: "hidden",
121
- ...textareaStyle2
122
- };
123
- nextTick(() => {
124
- textarea.value.offsetHeight;
125
- textareaCalcStyle.value = textareaStyle2;
126
- });
127
- } else {
128
- textareaCalcStyle.value = {
129
- minHeight: calcTextareaHeight(textarea.value).minHeight
130
- };
131
- }
132
- };
133
- const createOnceInitResize = (resizeTextarea2) => {
134
- let isInit = false;
135
- return () => {
136
- var _a;
137
- if (isInit || !props.autosize)
138
- return;
139
- const isElHidden = ((_a = textarea.value) == null ? void 0 : _a.offsetParent) === null;
140
- if (!isElHidden) {
141
- resizeTextarea2();
142
- isInit = true;
143
- }
144
- };
145
- };
146
- const onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
147
- const setNativeInputValue = () => {
148
- const input2 = _ref.value;
149
- const formatterValue = props.formatter ? props.formatter(nativeInputValue.value) : nativeInputValue.value;
150
- if (!input2 || input2.value === formatterValue)
151
- return;
152
- input2.value = formatterValue;
153
- };
154
- const handleInput = async (event) => {
155
- recordCursor();
156
- let { value } = event.target;
157
- if (props.formatter) {
158
- value = props.parser ? props.parser(value) : value;
159
- }
160
- if (isComposing.value)
161
- return;
162
- if (value === nativeInputValue.value) {
163
- setNativeInputValue();
164
- return;
165
- }
166
- emit(UPDATE_MODEL_EVENT, value);
167
- emit("input", value);
168
- await nextTick();
169
- setNativeInputValue();
170
- setCursor();
171
- };
172
- const handleChange = (event) => {
173
- emit("change", event.target.value);
174
- };
175
- const {
176
- isComposing,
177
- handleCompositionStart,
178
- handleCompositionUpdate,
179
- handleCompositionEnd
180
- } = useComposition({ emit, afterComposition: handleInput });
181
- const handlePasswordVisible = () => {
182
- recordCursor();
183
- passwordVisible.value = !passwordVisible.value;
184
- setTimeout(setCursor);
185
- };
186
- const focus = () => {
187
- var _a;
188
- return (_a = _ref.value) == null ? void 0 : _a.focus();
189
- };
190
- const blur = () => {
191
- var _a;
192
- return (_a = _ref.value) == null ? void 0 : _a.blur();
193
- };
194
- const handleMouseLeave = (evt) => {
195
- hovering.value = false;
196
- emit("mouseleave", evt);
197
- };
198
- const handleMouseEnter = (evt) => {
199
- hovering.value = true;
200
- emit("mouseenter", evt);
201
- };
202
- const handleKeydown = (evt) => {
203
- emit("keydown", evt);
204
- };
205
- const select = () => {
206
- var _a;
207
- (_a = _ref.value) == null ? void 0 : _a.select();
208
- };
209
- const clear = () => {
210
- emit(UPDATE_MODEL_EVENT, "");
211
- emit("change", "");
212
- emit("clear");
213
- emit("input", "");
214
- };
215
- watch(() => props.modelValue, () => {
216
- var _a;
217
- nextTick(() => resizeTextarea());
218
- if (props.validateEvent) {
219
- (_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(err));
220
- }
221
- });
222
- watch(nativeInputValue, () => setNativeInputValue());
223
- watch(() => props.type, async () => {
224
- await nextTick();
225
- setNativeInputValue();
226
- resizeTextarea();
227
- });
228
- onMounted(() => {
229
- if (!props.formatter && props.parser) {
230
- debugWarn("ElInput", "If you set the parser, you also need to set the formatter.");
231
- }
232
- setNativeInputValue();
233
- nextTick(resizeTextarea);
234
- });
235
- expose({
236
- input,
237
- textarea,
238
- ref: _ref,
239
- textareaStyle,
240
- autosize: toRef(props, "autosize"),
241
- isComposing,
242
- focus,
243
- blur,
244
- select,
245
- clear,
246
- resizeTextarea
247
- });
248
- return (_ctx, _cache) => {
249
- return openBlock(), createElementBlock("div", {
250
- class: normalizeClass([
251
- unref(containerKls),
252
- {
253
- [unref(nsInput).bm("group", "append")]: _ctx.$slots.append,
254
- [unref(nsInput).bm("group", "prepend")]: _ctx.$slots.prepend
255
- }
256
- ]),
257
- style: normalizeStyle(unref(containerStyle)),
258
- onMouseenter: handleMouseEnter,
259
- onMouseleave: handleMouseLeave
260
- }, [
261
- createCommentVNode(" input "),
262
- _ctx.type !== "textarea" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
263
- createCommentVNode(" prepend slot "),
264
- _ctx.$slots.prepend ? (openBlock(), createElementBlock("div", {
265
- key: 0,
266
- class: normalizeClass(unref(nsInput).be("group", "prepend"))
267
- }, [
268
- renderSlot(_ctx.$slots, "prepend")
269
- ], 2)) : createCommentVNode("v-if", true),
270
- createElementVNode("div", {
271
- ref_key: "wrapperRef",
272
- ref: wrapperRef,
273
- class: normalizeClass(unref(wrapperKls))
274
- }, [
275
- createCommentVNode(" prefix slot "),
276
- _ctx.$slots.prefix || _ctx.prefixIcon ? (openBlock(), createElementBlock("span", {
277
- key: 0,
278
- class: normalizeClass(unref(nsInput).e("prefix"))
279
- }, [
280
- createElementVNode("span", {
281
- class: normalizeClass(unref(nsInput).e("prefix-inner"))
282
- }, [
283
- renderSlot(_ctx.$slots, "prefix"),
284
- _ctx.prefixIcon ? (openBlock(), createBlock(unref(ElIcon), {
285
- key: 0,
286
- class: normalizeClass(unref(nsInput).e("icon"))
287
- }, {
288
- default: withCtx(() => [
289
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.prefixIcon)))
290
- ]),
291
- _: 1
292
- }, 8, ["class"])) : createCommentVNode("v-if", true)
293
- ], 2)
294
- ], 2)) : createCommentVNode("v-if", true),
295
- createElementVNode("input", mergeProps({
296
- id: unref(inputId),
297
- ref_key: "input",
298
- ref: input,
299
- class: unref(nsInput).e("inner")
300
- }, unref(attrs), {
301
- minlength: _ctx.minlength,
302
- maxlength: _ctx.maxlength,
303
- type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
304
- disabled: unref(inputDisabled),
305
- readonly: _ctx.readonly,
306
- autocomplete: _ctx.autocomplete,
307
- tabindex: _ctx.tabindex,
308
- "aria-label": _ctx.ariaLabel,
309
- placeholder: _ctx.placeholder,
310
- style: _ctx.inputStyle,
311
- form: _ctx.form,
312
- autofocus: _ctx.autofocus,
313
- role: _ctx.containerRole,
314
- onCompositionstart: unref(handleCompositionStart),
315
- onCompositionupdate: unref(handleCompositionUpdate),
316
- onCompositionend: unref(handleCompositionEnd),
317
- onInput: handleInput,
318
- onChange: handleChange,
319
- onKeydown: handleKeydown
320
- }), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
321
- createCommentVNode(" suffix slot "),
322
- unref(suffixVisible) ? (openBlock(), createElementBlock("span", {
323
- key: 1,
324
- class: normalizeClass(unref(nsInput).e("suffix"))
325
- }, [
326
- createElementVNode("span", {
327
- class: normalizeClass(unref(nsInput).e("suffix-inner"))
328
- }, [
329
- !unref(showClear) || !unref(showPwdVisible) || !unref(isWordLimitVisible) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
330
- renderSlot(_ctx.$slots, "suffix"),
331
- _ctx.suffixIcon ? (openBlock(), createBlock(unref(ElIcon), {
332
- key: 0,
333
- class: normalizeClass(unref(nsInput).e("icon"))
334
- }, {
335
- default: withCtx(() => [
336
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.suffixIcon)))
337
- ]),
338
- _: 1
339
- }, 8, ["class"])) : createCommentVNode("v-if", true)
340
- ], 64)) : createCommentVNode("v-if", true),
341
- unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
342
- key: 1,
343
- class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("clear")]),
344
- onMousedown: withModifiers(unref(NOOP), ["prevent"]),
345
- onClick: clear
346
- }, {
347
- default: withCtx(() => [
348
- createVNode(unref(CircleClose))
349
- ]),
350
- _: 1
351
- }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true),
352
- unref(showPwdVisible) ? (openBlock(), createBlock(unref(ElIcon), {
353
- key: 2,
354
- class: normalizeClass([unref(nsInput).e("icon"), unref(nsInput).e("password")]),
355
- onClick: handlePasswordVisible
356
- }, {
357
- default: withCtx(() => [
358
- (openBlock(), createBlock(resolveDynamicComponent(unref(passwordIcon))))
359
- ]),
360
- _: 1
361
- }, 8, ["class"])) : createCommentVNode("v-if", true),
362
- unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
363
- key: 3,
364
- class: normalizeClass(unref(nsInput).e("count"))
365
- }, [
366
- createElementVNode("span", {
367
- class: normalizeClass(unref(nsInput).e("count-inner"))
368
- }, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 3)
369
- ], 2)) : createCommentVNode("v-if", true),
370
- unref(validateState) && unref(validateIcon) && unref(needStatusIcon) ? (openBlock(), createBlock(unref(ElIcon), {
371
- key: 4,
372
- class: normalizeClass([
373
- unref(nsInput).e("icon"),
374
- unref(nsInput).e("validateIcon"),
375
- unref(nsInput).is("loading", unref(validateState) === "validating")
376
- ])
377
- }, {
378
- default: withCtx(() => [
379
- (openBlock(), createBlock(resolveDynamicComponent(unref(validateIcon))))
380
- ]),
381
- _: 1
382
- }, 8, ["class"])) : createCommentVNode("v-if", true)
383
- ], 2)
384
- ], 2)) : createCommentVNode("v-if", true)
385
- ], 2),
386
- createCommentVNode(" append slot "),
387
- _ctx.$slots.append ? (openBlock(), createElementBlock("div", {
388
- key: 1,
389
- class: normalizeClass(unref(nsInput).be("group", "append"))
390
- }, [
391
- renderSlot(_ctx.$slots, "append")
392
- ], 2)) : createCommentVNode("v-if", true)
393
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
394
- createCommentVNode(" textarea "),
395
- createElementVNode("textarea", mergeProps({
396
- id: unref(inputId),
397
- ref_key: "textarea",
398
- ref: textarea,
399
- class: [unref(nsTextarea).e("inner"), unref(nsInput).is("focus", unref(isFocused))]
400
- }, unref(attrs), {
401
- minlength: _ctx.minlength,
402
- maxlength: _ctx.maxlength,
403
- tabindex: _ctx.tabindex,
404
- disabled: unref(inputDisabled),
405
- readonly: _ctx.readonly,
406
- autocomplete: _ctx.autocomplete,
407
- style: unref(textareaStyle),
408
- "aria-label": _ctx.ariaLabel,
409
- placeholder: _ctx.placeholder,
410
- form: _ctx.form,
411
- autofocus: _ctx.autofocus,
412
- rows: _ctx.rows,
413
- role: _ctx.containerRole,
414
- onCompositionstart: unref(handleCompositionStart),
415
- onCompositionupdate: unref(handleCompositionUpdate),
416
- onCompositionend: unref(handleCompositionEnd),
417
- onInput: handleInput,
418
- onFocus: unref(handleFocus),
419
- onBlur: unref(handleBlur),
420
- onChange: handleChange,
421
- onKeydown: handleKeydown
422
- }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
423
- unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
424
- key: 0,
425
- style: normalizeStyle(countStyle.value),
426
- class: normalizeClass(unref(nsInput).e("count"))
427
- }, toDisplayString(unref(textLength)) + " / " + toDisplayString(_ctx.maxlength), 7)) : createCommentVNode("v-if", true)
428
- ], 64))
429
- ], 38);
430
- };
431
- }
432
- });
433
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input.vue"]]);
91
+ const inputEmits = {
92
+ [UPDATE_MODEL_EVENT]: (value) => isString(value),
93
+ input: (value) => isString(value),
94
+ change: (value) => isString(value),
95
+ focus: (evt) => evt instanceof FocusEvent,
96
+ blur: (evt) => evt instanceof FocusEvent,
97
+ clear: () => true,
98
+ mouseleave: (evt) => evt instanceof MouseEvent,
99
+ mouseenter: (evt) => evt instanceof MouseEvent,
100
+ keydown: (evt) => evt instanceof Event,
101
+ compositionstart: (evt) => evt instanceof CompositionEvent,
102
+ compositionupdate: (evt) => evt instanceof CompositionEvent,
103
+ compositionend: (evt) => evt instanceof CompositionEvent
104
+ };
434
105
 
435
- export { Input as default };
106
+ export { inputEmits, inputProps };
436
107
  //# sourceMappingURL=input2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"input2.mjs","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n containerKls,\n {\n [nsInput.bm('group', 'append')]: $slots.append,\n [nsInput.bm('group', 'prepend')]: $slots.prepend,\n },\n ]\"\n :style=\"containerStyle\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n >\n <!-- input -->\n <template v-if=\"type !== 'textarea'\">\n <!-- prepend slot -->\n <div v-if=\"$slots.prepend\" :class=\"nsInput.be('group', 'prepend')\">\n <slot name=\"prepend\" />\n </div>\n\n <div ref=\"wrapperRef\" :class=\"wrapperKls\">\n <!-- prefix slot -->\n <span v-if=\"$slots.prefix || prefixIcon\" :class=\"nsInput.e('prefix')\">\n <span :class=\"nsInput.e('prefix-inner')\">\n <slot name=\"prefix\" />\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </span>\n </span>\n\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"nsInput.e('inner')\"\n v-bind=\"attrs\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :type=\"showPassword ? (passwordVisible ? 'text' : 'password') : type\"\n :disabled=\"inputDisabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n :aria-label=\"ariaLabel\"\n :placeholder=\"placeholder\"\n :style=\"inputStyle\"\n :form=\"form\"\n :autofocus=\"autofocus\"\n :role=\"containerRole\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @change=\"handleChange\"\n @keydown=\"handleKeydown\"\n />\n\n <!-- suffix slot -->\n <span v-if=\"suffixVisible\" :class=\"nsInput.e('suffix')\">\n <span :class=\"nsInput.e('suffix-inner')\">\n <template\n v-if=\"!showClear || !showPwdVisible || !isWordLimitVisible\"\n >\n <slot name=\"suffix\" />\n <el-icon v-if=\"suffixIcon\" :class=\"nsInput.e('icon')\">\n <component :is=\"suffixIcon\" />\n </el-icon>\n </template>\n <el-icon\n v-if=\"showClear\"\n :class=\"[nsInput.e('icon'), nsInput.e('clear')]\"\n @mousedown.prevent=\"NOOP\"\n @click=\"clear\"\n >\n <circle-close />\n </el-icon>\n <el-icon\n v-if=\"showPwdVisible\"\n :class=\"[nsInput.e('icon'), nsInput.e('password')]\"\n @click=\"handlePasswordVisible\"\n >\n <component :is=\"passwordIcon\" />\n </el-icon>\n <span v-if=\"isWordLimitVisible\" :class=\"nsInput.e('count')\">\n <span :class=\"nsInput.e('count-inner')\">\n {{ textLength }} / {{ maxlength }}\n </span>\n </span>\n <el-icon\n v-if=\"validateState && validateIcon && needStatusIcon\"\n :class=\"[\n nsInput.e('icon'),\n nsInput.e('validateIcon'),\n nsInput.is('loading', validateState === 'validating'),\n ]\"\n >\n <component :is=\"validateIcon\" />\n </el-icon>\n </span>\n </span>\n </div>\n\n <!-- append slot -->\n <div v-if=\"$slots.append\" :class=\"nsInput.be('group', 'append')\">\n <slot name=\"append\" />\n </div>\n </template>\n\n <!-- textarea -->\n <template v-else>\n <textarea\n :id=\"inputId\"\n ref=\"textarea\"\n :class=\"[nsTextarea.e('inner'), nsInput.is('focus', isFocused)]\"\n v-bind=\"attrs\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :tabindex=\"tabindex\"\n :disabled=\"inputDisabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :style=\"textareaStyle\"\n :aria-label=\"ariaLabel\"\n :placeholder=\"placeholder\"\n :form=\"form\"\n :autofocus=\"autofocus\"\n :rows=\"rows\"\n :role=\"containerRole\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @keydown=\"handleKeydown\"\n />\n <span\n v-if=\"isWordLimitVisible\"\n :style=\"countStyle\"\n :class=\"nsInput.e('count')\"\n >\n {{ textLength }} / {{ maxlength }}\n </span>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n ref,\n shallowRef,\n toRef,\n useAttrs as useRawAttrs,\n useSlots,\n watch,\n} from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n CircleClose,\n Hide as IconHide,\n View as IconView,\n} from '@element-plus/icons-vue'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport {\n NOOP,\n ValidateComponentsMap,\n debugWarn,\n isClient,\n isObject,\n} from '@element-plus/utils'\nimport {\n useAttrs,\n useComposition,\n useCursor,\n useFocusController,\n useNamespace,\n} from '@element-plus/hooks'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { calcTextareaHeight } from './utils'\nimport { inputEmits, inputProps } from './input'\nimport type { StyleValue } from 'vue'\n\ntype TargetElement = HTMLInputElement | HTMLTextAreaElement\n\ndefineOptions({\n name: 'ElInput',\n inheritAttrs: false,\n})\nconst props = defineProps(inputProps)\nconst emit = defineEmits(inputEmits)\n\nconst rawAttrs = useRawAttrs()\nconst attrs = useAttrs()\nconst slots = useSlots()\n\nconst containerKls = computed(() => [\n props.type === 'textarea' ? nsTextarea.b() : nsInput.b(),\n nsInput.m(inputSize.value),\n nsInput.is('disabled', inputDisabled.value),\n nsInput.is('exceed', inputExceed.value),\n {\n [nsInput.b('group')]: slots.prepend || slots.append,\n [nsInput.m('prefix')]: slots.prefix || props.prefixIcon,\n [nsInput.m('suffix')]:\n slots.suffix || props.suffixIcon || props.clearable || props.showPassword,\n [nsInput.bm('suffix', 'password-clear')]:\n showClear.value && showPwdVisible.value,\n [nsInput.b('hidden')]: props.type === 'hidden',\n },\n rawAttrs.class,\n])\n\nconst wrapperKls = computed(() => [\n nsInput.e('wrapper'),\n nsInput.is('focus', isFocused.value),\n])\n\nconst { form: elForm, formItem: elFormItem } = useFormItem()\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n})\nconst inputSize = useFormSize()\nconst inputDisabled = useFormDisabled()\nconst nsInput = useNamespace('input')\nconst nsTextarea = useNamespace('textarea')\n\nconst input = shallowRef<HTMLInputElement>()\nconst textarea = shallowRef<HTMLTextAreaElement>()\n\nconst hovering = ref(false)\nconst passwordVisible = ref(false)\nconst countStyle = ref<StyleValue>()\nconst textareaCalcStyle = shallowRef(props.inputStyle)\n\nconst _ref = computed(() => input.value || textarea.value)\n\n// wrapperRef for type=\"text\", handleFocus and handleBlur for type=\"textarea\"\nconst { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(\n _ref,\n {\n beforeFocus() {\n return inputDisabled.value\n },\n afterBlur() {\n if (props.validateEvent) {\n elFormItem?.validate?.('blur').catch((err) => debugWarn(err))\n }\n },\n }\n)\n\nconst needStatusIcon = computed(() => elForm?.statusIcon ?? false)\nconst validateState = computed(() => elFormItem?.validateState || '')\nconst validateIcon = computed(\n () => validateState.value && ValidateComponentsMap[validateState.value]\n)\nconst passwordIcon = computed(() =>\n passwordVisible.value ? IconView : IconHide\n)\nconst containerStyle = computed<StyleValue>(() => [\n rawAttrs.style as StyleValue,\n])\nconst textareaStyle = computed<StyleValue>(() => [\n props.inputStyle,\n textareaCalcStyle.value,\n { resize: props.resize },\n])\nconst nativeInputValue = computed(() =>\n isNil(props.modelValue) ? '' : String(props.modelValue)\n)\nconst showClear = computed(\n () =>\n props.clearable &&\n !inputDisabled.value &&\n !props.readonly &&\n !!nativeInputValue.value &&\n (isFocused.value || hovering.value)\n)\nconst showPwdVisible = computed(\n () =>\n props.showPassword &&\n !inputDisabled.value &&\n !!nativeInputValue.value &&\n (!!nativeInputValue.value || isFocused.value)\n)\nconst isWordLimitVisible = computed(\n () =>\n props.showWordLimit &&\n !!props.maxlength &&\n (props.type === 'text' || props.type === 'textarea') &&\n !inputDisabled.value &&\n !props.readonly &&\n !props.showPassword\n)\nconst textLength = computed(() => nativeInputValue.value.length)\nconst inputExceed = computed(\n () =>\n // show exceed style if length of initial value greater then maxlength\n !!isWordLimitVisible.value && textLength.value > Number(props.maxlength)\n)\nconst suffixVisible = computed(\n () =>\n !!slots.suffix ||\n !!props.suffixIcon ||\n showClear.value ||\n props.showPassword ||\n isWordLimitVisible.value ||\n (!!validateState.value && needStatusIcon.value)\n)\n\nconst [recordCursor, setCursor] = useCursor(input)\n\nuseResizeObserver(textarea, (entries) => {\n onceInitSizeTextarea()\n if (!isWordLimitVisible.value || props.resize !== 'both') return\n const entry = entries[0]\n const { width } = entry.contentRect\n countStyle.value = {\n /** right: 100% - width + padding(15) + right(6) */\n right: `calc(100% - ${width + 15 + 6}px)`,\n }\n})\n\nconst resizeTextarea = () => {\n const { type, autosize } = props\n\n if (!isClient || type !== 'textarea' || !textarea.value) return\n\n if (autosize) {\n const minRows = isObject(autosize) ? autosize.minRows : undefined\n const maxRows = isObject(autosize) ? autosize.maxRows : undefined\n const textareaStyle = calcTextareaHeight(textarea.value, minRows, maxRows)\n\n // If the scrollbar is displayed, the height of the textarea needs more space than the calculated height.\n // If set textarea height in this case, the scrollbar will not hide.\n // So we need to hide scrollbar first, and reset it in next tick.\n // see https://github.com/element-plus/element-plus/issues/8825\n textareaCalcStyle.value = {\n overflowY: 'hidden',\n ...textareaStyle,\n }\n\n nextTick(() => {\n // NOTE: Force repaint to make sure the style set above is applied.\n textarea.value!.offsetHeight\n textareaCalcStyle.value = textareaStyle\n })\n } else {\n textareaCalcStyle.value = {\n minHeight: calcTextareaHeight(textarea.value).minHeight,\n }\n }\n}\n\nconst createOnceInitResize = (resizeTextarea: () => void) => {\n let isInit = false\n return () => {\n if (isInit || !props.autosize) return\n const isElHidden = textarea.value?.offsetParent === null\n if (!isElHidden) {\n resizeTextarea()\n isInit = true\n }\n }\n}\n// fix: https://github.com/element-plus/element-plus/issues/12074\nconst onceInitSizeTextarea = createOnceInitResize(resizeTextarea)\n\nconst setNativeInputValue = () => {\n const input = _ref.value\n const formatterValue = props.formatter\n ? props.formatter(nativeInputValue.value)\n : nativeInputValue.value\n if (!input || input.value === formatterValue) return\n input.value = formatterValue\n}\n\nconst handleInput = async (event: Event) => {\n recordCursor()\n\n let { value } = event.target as TargetElement\n\n if (props.formatter) {\n value = props.parser ? props.parser(value) : value\n }\n\n // should not emit input during composition\n // see: https://github.com/ElemeFE/element/issues/10516\n if (isComposing.value) return\n\n // hack for https://github.com/ElemeFE/element/issues/8548\n // should remove the following line when we don't support IE\n if (value === nativeInputValue.value) {\n setNativeInputValue()\n return\n }\n\n emit(UPDATE_MODEL_EVENT, value)\n emit('input', value)\n\n // ensure native input value is controlled\n // see: https://github.com/ElemeFE/element/issues/12850\n await nextTick()\n setNativeInputValue()\n setCursor()\n}\n\nconst handleChange = (event: Event) => {\n emit('change', (event.target as TargetElement).value)\n}\n\nconst {\n isComposing,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\n} = useComposition({ emit, afterComposition: handleInput })\n\nconst handlePasswordVisible = () => {\n recordCursor()\n passwordVisible.value = !passwordVisible.value\n // The native input needs a little time to regain focus\n setTimeout(setCursor)\n}\n\nconst focus = () => _ref.value?.focus()\n\nconst blur = () => _ref.value?.blur()\n\nconst handleMouseLeave = (evt: MouseEvent) => {\n hovering.value = false\n emit('mouseleave', evt)\n}\n\nconst handleMouseEnter = (evt: MouseEvent) => {\n hovering.value = true\n emit('mouseenter', evt)\n}\n\nconst handleKeydown = (evt: KeyboardEvent) => {\n emit('keydown', evt)\n}\n\nconst select = () => {\n _ref.value?.select()\n}\n\nconst clear = () => {\n emit(UPDATE_MODEL_EVENT, '')\n emit('change', '')\n emit('clear')\n emit('input', '')\n}\n\nwatch(\n () => props.modelValue,\n () => {\n nextTick(() => resizeTextarea())\n if (props.validateEvent) {\n elFormItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n }\n)\n\n// native input value is set explicitly\n// do not use v-model / :value in template\n// see: https://github.com/ElemeFE/element/issues/14521\nwatch(nativeInputValue, () => setNativeInputValue())\n\n// when change between <input> and <textarea>,\n// update DOM dependent value and styles\n// https://github.com/ElemeFE/element/issues/14857\nwatch(\n () => props.type,\n async () => {\n await nextTick()\n setNativeInputValue()\n resizeTextarea()\n }\n)\n\nonMounted(() => {\n if (!props.formatter && props.parser) {\n debugWarn(\n 'ElInput',\n 'If you set the parser, you also need to set the formatter.'\n )\n }\n setNativeInputValue()\n nextTick(resizeTextarea)\n})\n\ndefineExpose({\n /** @description HTML input element */\n input,\n /** @description HTML textarea element */\n textarea,\n /** @description HTML element, input or textarea */\n ref: _ref,\n /** @description style of textarea. */\n textareaStyle,\n\n /** @description from props (used on unit test) */\n autosize: toRef(props, 'autosize'),\n\n /** @description is input composing */\n isComposing,\n\n /** @description HTML input element native method */\n focus,\n /** @description HTML input element native method */\n blur,\n /** @description HTML input element native method */\n select,\n /** @description clear input value */\n clear,\n /** @description resize textarea. */\n resizeTextarea,\n})\n</script>\n"],"names":["useRawAttrs","useAttrs","IconView","IconHide","textareaStyle","resizeTextarea","input","_openBlock","_createElementBlock","_normalizeClass","_unref","_normalizeStyle","_createCommentVNode","_Fragment","_renderSlot","_createElementVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;mCAmMc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,WAAWA,QAAY,EAAA,CAAA;AAC7B,IAAA,MAAM,QAAQC,UAAS,EAAA,CAAA;AACvB,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAAA,MAClC,MAAM,IAAS,KAAA,UAAA,GAAa,WAAW,CAAE,EAAA,GAAI,QAAQ,CAAE,EAAA;AAAA,MACvD,OAAA,CAAQ,CAAE,CAAA,SAAA,CAAU,KAAK,CAAA;AAAA,MACzB,OAAQ,CAAA,EAAA,CAAG,UAAY,EAAA,aAAA,CAAc,KAAK,CAAA;AAAA,MAC1C,OAAQ,CAAA,EAAA,CAAG,QAAU,EAAA,WAAA,CAAY,KAAK,CAAA;AAAA,MACtC;AAAA,QACE,CAAC,QAAQ,CAAE,CAAA,OAAO,CAAC,GAAG,KAAA,CAAM,WAAW,KAAM,CAAA,MAAA;AAAA,QAC7C,CAAC,QAAQ,CAAE,CAAA,QAAQ,CAAC,GAAG,KAAA,CAAM,UAAU,KAAM,CAAA,UAAA;AAAA,QAC7C,CAAC,OAAA,CAAQ,CAAE,CAAA,QAAQ,CAAC,GAClB,KAAM,CAAA,MAAA,IAAU,KAAM,CAAA,UAAA,IAAc,KAAM,CAAA,SAAA,IAAa,KAAM,CAAA,YAAA;AAAA,QAC/D,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AA,EAAAC,cAAA,CAAAC,KAAA,CAAA,OAAA,CAAA,CAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,CAAA;AAAA,WAEA,EAAA;AAAA,YAAAI,UAAA,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,WAEA,EAAA,CAAA,CAAA,IAAAF,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA,UAAAG,kBAAA,CAAA,KAAA,EAAA;AAAA,YAEA,OAAA,EAAA,YAAA;AAAA,YACD,GAAA,EAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"input2.mjs","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isString,\n mutable,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\n\nexport type InputAutoSize = { minRows?: number; maxRows?: number } | boolean\n\nexport const inputProps = buildProps({\n /**\n * @description native input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description input box size\n */\n size: useSizeProp,\n /**\n * @description whether to disable\n */\n disabled: Boolean,\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n Object,\n ]),\n default: '',\n },\n /**\n * @description same as `maxlength` in native input\n */\n maxlength: {\n type: [String, Number],\n },\n /**\n * @description same as `minlength` in native input\n */\n minlength: {\n type: [String, Number],\n },\n /**\n * @description type of input\n */\n type: {\n type: String,\n default: 'text',\n },\n /**\n * @description control the resizability\n */\n resize: {\n type: String,\n values: ['none', 'both', 'horizontal', 'vertical'],\n },\n /**\n * @description whether textarea has an adaptive height\n */\n autosize: {\n type: definePropType<InputAutoSize>([Boolean, Object]),\n default: false,\n },\n /**\n * @description native input autocomplete\n */\n autocomplete: {\n type: String,\n default: 'off',\n },\n /**\n * @description format content\n */\n formatter: {\n type: Function,\n },\n /**\n * @description parse content\n */\n parser: {\n type: Function,\n },\n /**\n * @description placeholder\n */\n placeholder: {\n type: String,\n },\n /**\n * @description native input form\n */\n form: {\n type: String,\n },\n /**\n * @description native input readonly\n */\n readonly: Boolean,\n /**\n * @description native input readonly\n */\n clearable: Boolean,\n /**\n * @description toggleable password input\n */\n showPassword: Boolean,\n /**\n * @description word count\n */\n showWordLimit: Boolean,\n /**\n * @description suffix icon\n */\n suffixIcon: {\n type: iconPropType,\n },\n /**\n * @description prefix icon\n */\n prefixIcon: {\n type: iconPropType,\n },\n /**\n * @description container role, internal properties provided for use by the picker component\n */\n containerRole: {\n type: String,\n default: undefined,\n },\n /**\n * @description input tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description input or textarea element style\n */\n inputStyle: {\n type: definePropType<StyleValue>([Object, Array, String]),\n default: () => mutable({} as const),\n },\n /**\n * @description native input autofocus\n */\n autofocus: Boolean,\n rows: {\n type: Number,\n default: 2,\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport type InputProps = ExtractPropTypes<typeof inputProps>\n\nexport const inputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n input: (value: string) => isString(value),\n change: (value: string) => isString(value),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n // NOTE: when autofill by browser, the keydown event is instanceof Event, not KeyboardEvent\n // relative bug report https://github.com/element-plus/element-plus/issues/6665\n keydown: (evt: KeyboardEvent | Event) => evt instanceof Event,\n compositionstart: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n compositionupdate: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n compositionend: (evt: CompositionEvent) => evt instanceof CompositionEvent,\n}\nexport type InputEmits = typeof inputEmits\n"],"names":[],"mappings":";;;;;;;;AASY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC;AACtD,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,I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AC,UAAU,GAAG;AAC1B,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACnC,EAAE,MAAM,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACpC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC1C,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,UAAU,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAChD,EAAE,UAAU,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAChD,EAAE,OAAO,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACxC,EAAE,gBAAgB,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,gBAAgB;AAC5D,EAAE,iBAAiB,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,gBAAgB;AAC7D,EAAE,cAAc,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,gBAAgB;AAC1D;;;;"}
@@ -1,5 +1,5 @@
1
- import InputTag from './src/input-tag.mjs';
2
- export { inputTagEmits, inputTagProps } from './src/input-tag2.mjs';
1
+ import InputTag from './src/input-tag2.mjs';
2
+ export { inputTagEmits, inputTagProps } from './src/input-tag.mjs';
3
3
  import { withInstall } from '../../utils/vue/install.mjs';
4
4
 
5
5
  const ElInputTag = withInstall(InputTag);