@element-plus/nightly 0.0.20240125 → 0.0.20240128

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 (415) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +6 -8
  3. package/dist/index.full.min.js +8 -8
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +8 -8
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +6 -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/hr.js +1 -1
  93. package/dist/locale/hr.min.js +1 -1
  94. package/dist/locale/hr.min.mjs +1 -1
  95. package/dist/locale/hr.mjs +1 -1
  96. package/dist/locale/hu.js +1 -1
  97. package/dist/locale/hu.min.js +1 -1
  98. package/dist/locale/hu.min.mjs +1 -1
  99. package/dist/locale/hu.mjs +1 -1
  100. package/dist/locale/hy-am.js +1 -1
  101. package/dist/locale/hy-am.min.js +1 -1
  102. package/dist/locale/hy-am.min.mjs +1 -1
  103. package/dist/locale/hy-am.mjs +1 -1
  104. package/dist/locale/id.js +1 -1
  105. package/dist/locale/id.min.js +1 -1
  106. package/dist/locale/id.min.mjs +1 -1
  107. package/dist/locale/id.mjs +1 -1
  108. package/dist/locale/it.js +1 -1
  109. package/dist/locale/it.min.js +1 -1
  110. package/dist/locale/it.min.mjs +1 -1
  111. package/dist/locale/it.mjs +1 -1
  112. package/dist/locale/ja.js +1 -1
  113. package/dist/locale/ja.min.js +1 -1
  114. package/dist/locale/ja.min.mjs +1 -1
  115. package/dist/locale/ja.mjs +1 -1
  116. package/dist/locale/kk.js +1 -1
  117. package/dist/locale/kk.min.js +1 -1
  118. package/dist/locale/kk.min.mjs +1 -1
  119. package/dist/locale/kk.mjs +1 -1
  120. package/dist/locale/km.js +1 -1
  121. package/dist/locale/km.min.js +1 -1
  122. package/dist/locale/km.min.mjs +1 -1
  123. package/dist/locale/km.mjs +1 -1
  124. package/dist/locale/ko.js +1 -1
  125. package/dist/locale/ko.min.js +1 -1
  126. package/dist/locale/ko.min.mjs +1 -1
  127. package/dist/locale/ko.mjs +1 -1
  128. package/dist/locale/ku.js +1 -1
  129. package/dist/locale/ku.min.js +1 -1
  130. package/dist/locale/ku.min.mjs +1 -1
  131. package/dist/locale/ku.mjs +1 -1
  132. package/dist/locale/ky.js +1 -1
  133. package/dist/locale/ky.min.js +1 -1
  134. package/dist/locale/ky.min.mjs +1 -1
  135. package/dist/locale/ky.mjs +1 -1
  136. package/dist/locale/lt.js +1 -1
  137. package/dist/locale/lt.min.js +1 -1
  138. package/dist/locale/lt.min.mjs +1 -1
  139. package/dist/locale/lt.mjs +1 -1
  140. package/dist/locale/lv.js +1 -1
  141. package/dist/locale/lv.min.js +1 -1
  142. package/dist/locale/lv.min.mjs +1 -1
  143. package/dist/locale/lv.mjs +1 -1
  144. package/dist/locale/mg.js +1 -1
  145. package/dist/locale/mg.min.js +1 -1
  146. package/dist/locale/mg.min.mjs +1 -1
  147. package/dist/locale/mg.mjs +1 -1
  148. package/dist/locale/mn.js +1 -1
  149. package/dist/locale/mn.min.js +1 -1
  150. package/dist/locale/mn.min.mjs +1 -1
  151. package/dist/locale/mn.mjs +1 -1
  152. package/dist/locale/nb-no.js +1 -1
  153. package/dist/locale/nb-no.min.js +1 -1
  154. package/dist/locale/nb-no.min.mjs +1 -1
  155. package/dist/locale/nb-no.mjs +1 -1
  156. package/dist/locale/nl.js +1 -1
  157. package/dist/locale/nl.min.js +1 -1
  158. package/dist/locale/nl.min.mjs +1 -1
  159. package/dist/locale/nl.mjs +1 -1
  160. package/dist/locale/pa.js +1 -1
  161. package/dist/locale/pa.min.js +1 -1
  162. package/dist/locale/pa.min.mjs +1 -1
  163. package/dist/locale/pa.mjs +1 -1
  164. package/dist/locale/pl.js +1 -1
  165. package/dist/locale/pl.min.js +1 -1
  166. package/dist/locale/pl.min.mjs +1 -1
  167. package/dist/locale/pl.mjs +1 -1
  168. package/dist/locale/pt-br.js +1 -1
  169. package/dist/locale/pt-br.min.js +1 -1
  170. package/dist/locale/pt-br.min.mjs +1 -1
  171. package/dist/locale/pt-br.mjs +1 -1
  172. package/dist/locale/pt.js +1 -1
  173. package/dist/locale/pt.min.js +1 -1
  174. package/dist/locale/pt.min.mjs +1 -1
  175. package/dist/locale/pt.mjs +1 -1
  176. package/dist/locale/ro.js +1 -1
  177. package/dist/locale/ro.min.js +1 -1
  178. package/dist/locale/ro.min.mjs +1 -1
  179. package/dist/locale/ro.mjs +1 -1
  180. package/dist/locale/ru.js +1 -1
  181. package/dist/locale/ru.min.js +1 -1
  182. package/dist/locale/ru.min.mjs +1 -1
  183. package/dist/locale/ru.mjs +1 -1
  184. package/dist/locale/sk.js +1 -1
  185. package/dist/locale/sk.min.js +1 -1
  186. package/dist/locale/sk.min.mjs +1 -1
  187. package/dist/locale/sk.mjs +1 -1
  188. package/dist/locale/sl.js +1 -1
  189. package/dist/locale/sl.min.js +1 -1
  190. package/dist/locale/sl.min.mjs +1 -1
  191. package/dist/locale/sl.mjs +1 -1
  192. package/dist/locale/sr.js +1 -1
  193. package/dist/locale/sr.min.js +1 -1
  194. package/dist/locale/sr.min.mjs +1 -1
  195. package/dist/locale/sr.mjs +1 -1
  196. package/dist/locale/sv.js +1 -1
  197. package/dist/locale/sv.min.js +1 -1
  198. package/dist/locale/sv.min.mjs +1 -1
  199. package/dist/locale/sv.mjs +1 -1
  200. package/dist/locale/sw.js +1 -1
  201. package/dist/locale/sw.min.js +1 -1
  202. package/dist/locale/sw.min.mjs +1 -1
  203. package/dist/locale/sw.mjs +1 -1
  204. package/dist/locale/ta.js +1 -1
  205. package/dist/locale/ta.min.js +1 -1
  206. package/dist/locale/ta.min.mjs +1 -1
  207. package/dist/locale/ta.mjs +1 -1
  208. package/dist/locale/th.js +1 -1
  209. package/dist/locale/th.min.js +1 -1
  210. package/dist/locale/th.min.mjs +1 -1
  211. package/dist/locale/th.mjs +1 -1
  212. package/dist/locale/tk.js +1 -1
  213. package/dist/locale/tk.min.js +1 -1
  214. package/dist/locale/tk.min.mjs +1 -1
  215. package/dist/locale/tk.mjs +1 -1
  216. package/dist/locale/tr.js +1 -1
  217. package/dist/locale/tr.min.js +1 -1
  218. package/dist/locale/tr.min.mjs +1 -1
  219. package/dist/locale/tr.mjs +1 -1
  220. package/dist/locale/ug-cn.js +1 -1
  221. package/dist/locale/ug-cn.min.js +1 -1
  222. package/dist/locale/ug-cn.min.mjs +1 -1
  223. package/dist/locale/ug-cn.mjs +1 -1
  224. package/dist/locale/uk.js +1 -1
  225. package/dist/locale/uk.min.js +1 -1
  226. package/dist/locale/uk.min.mjs +1 -1
  227. package/dist/locale/uk.mjs +1 -1
  228. package/dist/locale/uz-uz.js +1 -1
  229. package/dist/locale/uz-uz.min.js +1 -1
  230. package/dist/locale/uz-uz.min.mjs +1 -1
  231. package/dist/locale/uz-uz.mjs +1 -1
  232. package/dist/locale/vi.js +1 -1
  233. package/dist/locale/vi.min.js +1 -1
  234. package/dist/locale/vi.min.mjs +1 -1
  235. package/dist/locale/vi.mjs +1 -1
  236. package/dist/locale/zh-cn.js +1 -1
  237. package/dist/locale/zh-cn.min.js +1 -1
  238. package/dist/locale/zh-cn.min.mjs +1 -1
  239. package/dist/locale/zh-cn.mjs +1 -1
  240. package/dist/locale/zh-tw.js +1 -1
  241. package/dist/locale/zh-tw.min.js +1 -1
  242. package/dist/locale/zh-tw.min.mjs +1 -1
  243. package/dist/locale/zh-tw.mjs +1 -1
  244. package/es/components/icon/index.mjs +2 -2
  245. package/es/components/icon/src/icon.mjs +36 -8
  246. package/es/components/icon/src/icon.mjs.map +1 -1
  247. package/es/components/icon/src/icon2.mjs +8 -36
  248. package/es/components/icon/src/icon2.mjs.map +1 -1
  249. package/es/components/index.mjs +9 -9
  250. package/es/components/input/index.mjs +2 -2
  251. package/es/components/input/src/input.mjs +115 -454
  252. package/es/components/input/src/input.mjs.map +1 -1
  253. package/es/components/input/src/input2.mjs +454 -115
  254. package/es/components/input/src/input2.mjs.map +1 -1
  255. package/es/components/menu/index.mjs +2 -2
  256. package/es/components/menu/src/menu-item-group.mjs +35 -4
  257. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  258. package/es/components/menu/src/menu-item-group2.mjs +4 -35
  259. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  260. package/es/components/message-box/src/index.mjs +4 -2
  261. package/es/components/message-box/src/index.mjs.map +1 -1
  262. package/es/components/message-box/src/index.vue.d.ts +1855 -2
  263. package/es/components/message-box/src/message-box.type.d.ts +2 -0
  264. package/es/components/page-header/index.mjs +2 -2
  265. package/es/components/page-header/src/page-header.mjs +103 -17
  266. package/es/components/page-header/src/page-header.mjs.map +1 -1
  267. package/es/components/page-header/src/page-header2.mjs +17 -103
  268. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  269. package/es/components/pagination/src/components/total.mjs +28 -7
  270. package/es/components/pagination/src/components/total.mjs.map +1 -1
  271. package/es/components/pagination/src/components/total2.mjs +7 -28
  272. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  273. package/es/components/pagination/src/pagination.mjs +1 -1
  274. package/es/components/radio/index.mjs +2 -2
  275. package/es/components/radio/src/radio-button.mjs +66 -9
  276. package/es/components/radio/src/radio-button.mjs.map +1 -1
  277. package/es/components/radio/src/radio-button2.mjs +9 -66
  278. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  279. package/es/components/result/index.mjs +2 -2
  280. package/es/components/result/src/result.mjs +63 -29
  281. package/es/components/result/src/result.mjs.map +1 -1
  282. package/es/components/result/src/result2.mjs +29 -63
  283. package/es/components/result/src/result2.mjs.map +1 -1
  284. package/es/components/scrollbar/index.mjs +1 -1
  285. package/es/components/scrollbar/src/bar2.mjs +1 -1
  286. package/es/components/scrollbar/src/thumb.mjs +130 -11
  287. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  288. package/es/components/scrollbar/src/thumb2.mjs +11 -130
  289. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  290. package/es/components/select/src/useSelect.mjs +0 -2
  291. package/es/components/select/src/useSelect.mjs.map +1 -1
  292. package/es/components/select-v2/src/useSelect.mjs +0 -2
  293. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  294. package/es/components/slider/src/button.mjs +93 -21
  295. package/es/components/slider/src/button.mjs.map +1 -1
  296. package/es/components/slider/src/button2.mjs +21 -93
  297. package/es/components/slider/src/button2.mjs.map +1 -1
  298. package/es/components/slider/src/slider2.mjs +1 -1
  299. package/es/components/steps/index.mjs +2 -2
  300. package/es/components/steps/src/steps.mjs +39 -36
  301. package/es/components/steps/src/steps.mjs.map +1 -1
  302. package/es/components/steps/src/steps2.mjs +36 -39
  303. package/es/components/steps/src/steps2.mjs.map +1 -1
  304. package/es/components/tour/src/content.mjs +63 -44
  305. package/es/components/tour/src/content.mjs.map +1 -1
  306. package/es/components/tour/src/content2.mjs +44 -63
  307. package/es/components/tour/src/content2.mjs.map +1 -1
  308. package/es/components/tour/src/step.mjs +1 -1
  309. package/es/components/tour/src/tour.mjs +1 -1
  310. package/es/components/tour/src/tour2.mjs +1 -1
  311. package/es/components/transfer/index.mjs +2 -2
  312. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  313. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  314. package/es/components/transfer/src/transfer-panel.mjs +128 -19
  315. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  316. package/es/components/transfer/src/transfer-panel2.mjs +19 -128
  317. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  318. package/es/components/transfer/src/transfer.mjs +69 -160
  319. package/es/components/transfer/src/transfer.mjs.map +1 -1
  320. package/es/components/transfer/src/transfer2.mjs +160 -69
  321. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  322. package/es/index.mjs +9 -9
  323. package/es/version.d.ts +1 -1
  324. package/es/version.mjs +1 -1
  325. package/es/version.mjs.map +1 -1
  326. package/lib/components/icon/index.js +2 -2
  327. package/lib/components/icon/src/icon.js +36 -8
  328. package/lib/components/icon/src/icon.js.map +1 -1
  329. package/lib/components/icon/src/icon2.js +8 -36
  330. package/lib/components/icon/src/icon2.js.map +1 -1
  331. package/lib/components/index.js +9 -9
  332. package/lib/components/input/index.js +2 -2
  333. package/lib/components/input/src/input.js +115 -453
  334. package/lib/components/input/src/input.js.map +1 -1
  335. package/lib/components/input/src/input2.js +453 -115
  336. package/lib/components/input/src/input2.js.map +1 -1
  337. package/lib/components/menu/index.js +2 -2
  338. package/lib/components/menu/src/menu-item-group.js +35 -4
  339. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  340. package/lib/components/menu/src/menu-item-group2.js +4 -35
  341. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  342. package/lib/components/message-box/src/index.js +4 -2
  343. package/lib/components/message-box/src/index.js.map +1 -1
  344. package/lib/components/message-box/src/index.vue.d.ts +1855 -2
  345. package/lib/components/message-box/src/message-box.type.d.ts +2 -0
  346. package/lib/components/page-header/index.js +2 -2
  347. package/lib/components/page-header/src/page-header.js +103 -18
  348. package/lib/components/page-header/src/page-header.js.map +1 -1
  349. package/lib/components/page-header/src/page-header2.js +18 -103
  350. package/lib/components/page-header/src/page-header2.js.map +1 -1
  351. package/lib/components/pagination/src/components/total.js +28 -7
  352. package/lib/components/pagination/src/components/total.js.map +1 -1
  353. package/lib/components/pagination/src/components/total2.js +7 -28
  354. package/lib/components/pagination/src/components/total2.js.map +1 -1
  355. package/lib/components/pagination/src/pagination.js +1 -1
  356. package/lib/components/radio/index.js +2 -2
  357. package/lib/components/radio/src/radio-button.js +66 -9
  358. package/lib/components/radio/src/radio-button.js.map +1 -1
  359. package/lib/components/radio/src/radio-button2.js +9 -66
  360. package/lib/components/radio/src/radio-button2.js.map +1 -1
  361. package/lib/components/result/index.js +2 -2
  362. package/lib/components/result/src/result.js +63 -31
  363. package/lib/components/result/src/result.js.map +1 -1
  364. package/lib/components/result/src/result2.js +31 -63
  365. package/lib/components/result/src/result2.js.map +1 -1
  366. package/lib/components/scrollbar/index.js +1 -1
  367. package/lib/components/scrollbar/src/bar2.js +1 -1
  368. package/lib/components/scrollbar/src/thumb.js +130 -11
  369. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  370. package/lib/components/scrollbar/src/thumb2.js +11 -130
  371. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  372. package/lib/components/select/src/useSelect.js +0 -2
  373. package/lib/components/select/src/useSelect.js.map +1 -1
  374. package/lib/components/select-v2/src/useSelect.js +0 -2
  375. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  376. package/lib/components/slider/src/button.js +93 -22
  377. package/lib/components/slider/src/button.js.map +1 -1
  378. package/lib/components/slider/src/button2.js +22 -93
  379. package/lib/components/slider/src/button2.js.map +1 -1
  380. package/lib/components/slider/src/slider2.js +1 -1
  381. package/lib/components/steps/index.js +2 -2
  382. package/lib/components/steps/src/steps.js +39 -37
  383. package/lib/components/steps/src/steps.js.map +1 -1
  384. package/lib/components/steps/src/steps2.js +37 -39
  385. package/lib/components/steps/src/steps2.js.map +1 -1
  386. package/lib/components/tour/src/content.js +63 -45
  387. package/lib/components/tour/src/content.js.map +1 -1
  388. package/lib/components/tour/src/content2.js +45 -63
  389. package/lib/components/tour/src/content2.js.map +1 -1
  390. package/lib/components/tour/src/step.js +1 -1
  391. package/lib/components/tour/src/tour.js +1 -1
  392. package/lib/components/tour/src/tour2.js +1 -1
  393. package/lib/components/transfer/index.js +2 -2
  394. package/lib/components/transfer/src/composables/use-check.js +1 -1
  395. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  396. package/lib/components/transfer/src/transfer-panel.js +128 -21
  397. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  398. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  399. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  400. package/lib/components/transfer/src/transfer.js +73 -160
  401. package/lib/components/transfer/src/transfer.js.map +1 -1
  402. package/lib/components/transfer/src/transfer2.js +160 -73
  403. package/lib/components/transfer/src/transfer2.js.map +1 -1
  404. package/lib/index.js +9 -9
  405. package/lib/version.d.ts +1 -1
  406. package/lib/version.js +1 -1
  407. package/lib/version.js.map +1 -1
  408. package/package.json +2 -2
  409. package/theme-chalk/el-dialog.css +1 -1
  410. package/theme-chalk/el-message-box.css +1 -1
  411. package/theme-chalk/index.css +1 -1
  412. package/theme-chalk/src/common/var.scss +3 -1
  413. package/theme-chalk/src/dialog.scss +1 -0
  414. package/theme-chalk/src/message-box.scss +29 -65
  415. package/web-types.json +1 -1
@@ -2,127 +2,465 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var shared = require('@vue/shared');
5
+ var vue = require('vue');
6
+ var core = require('@vueuse/core');
7
+ var lodashUnified = require('lodash-unified');
8
+ var index$4 = require('../../icon/index.js');
9
+ var iconsVue = require('@element-plus/icons-vue');
10
+ require('../../form/index.js');
6
11
  require('../../../utils/index.js');
7
- require('../../../constants/index.js');
8
12
  require('../../../hooks/index.js');
9
- var runtime = require('../../../utils/vue/props/runtime.js');
10
- var index = require('../../../hooks/use-size/index.js');
13
+ require('../../../constants/index.js');
14
+ var utils = require('./utils.js');
15
+ var input = require('./input.js');
16
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
17
+ var index = require('../../../hooks/use-attrs/index.js');
18
+ var useFormItem = require('../../form/src/hooks/use-form-item.js');
19
+ var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
20
+ var index$1 = require('../../../hooks/use-namespace/index.js');
21
+ var index$2 = require('../../../hooks/use-focus-controller/index.js');
22
+ var error = require('../../../utils/error.js');
11
23
  var icon = require('../../../utils/vue/icon.js');
12
- var typescript = require('../../../utils/typescript.js');
24
+ var index$3 = require('../../../hooks/use-cursor/index.js');
25
+ var shared = require('@vue/shared');
13
26
  var event = require('../../../constants/event.js');
27
+ var i18n = require('../../../utils/i18n.js');
14
28
 
15
- const inputProps = runtime.buildProps({
16
- id: {
17
- type: String,
18
- default: void 0
19
- },
20
- size: index.useSizeProp,
21
- disabled: Boolean,
22
- modelValue: {
23
- type: runtime.definePropType([
24
- String,
25
- Number,
26
- Object
27
- ]),
28
- default: ""
29
- },
30
- maxlength: {
31
- type: [String, Number]
32
- },
33
- minlength: {
34
- type: [String, Number]
35
- },
36
- type: {
37
- type: String,
38
- default: "text"
39
- },
40
- resize: {
41
- type: String,
42
- values: ["none", "both", "horizontal", "vertical"]
43
- },
44
- autosize: {
45
- type: runtime.definePropType([Boolean, Object]),
46
- default: false
47
- },
48
- autocomplete: {
49
- type: String,
50
- default: "off"
51
- },
52
- formatter: {
53
- type: Function
54
- },
55
- parser: {
56
- type: Function
57
- },
58
- placeholder: {
59
- type: String
60
- },
61
- form: {
62
- type: String
63
- },
64
- readonly: {
65
- type: Boolean,
66
- default: false
67
- },
68
- clearable: {
69
- type: Boolean,
70
- default: false
71
- },
72
- showPassword: {
73
- type: Boolean,
74
- default: false
75
- },
76
- showWordLimit: {
77
- type: Boolean,
78
- default: false
79
- },
80
- suffixIcon: {
81
- type: icon.iconPropType
82
- },
83
- prefixIcon: {
84
- type: icon.iconPropType
85
- },
86
- containerRole: {
87
- type: String,
88
- default: void 0
89
- },
90
- label: {
91
- type: String,
92
- default: void 0
93
- },
94
- tabindex: {
95
- type: [String, Number],
96
- default: 0
97
- },
98
- validateEvent: {
99
- type: Boolean,
100
- default: true
101
- },
102
- inputStyle: {
103
- type: runtime.definePropType([Object, Array, String]),
104
- default: () => typescript.mutable({})
105
- },
106
- autofocus: {
107
- type: Boolean,
108
- default: false
29
+ const _hoisted_1 = ["role"];
30
+ const _hoisted_2 = ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus"];
31
+ const _hoisted_3 = ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus"];
32
+ const __default__ = vue.defineComponent({
33
+ name: "ElInput",
34
+ inheritAttrs: false
35
+ });
36
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
37
+ ...__default__,
38
+ props: input.inputProps,
39
+ emits: input.inputEmits,
40
+ setup(__props, { expose, emit }) {
41
+ const props = __props;
42
+ const rawAttrs = vue.useAttrs();
43
+ const slots = vue.useSlots();
44
+ const containerAttrs = vue.computed(() => {
45
+ const comboBoxAttrs = {};
46
+ if (props.containerRole === "combobox") {
47
+ comboBoxAttrs["aria-haspopup"] = rawAttrs["aria-haspopup"];
48
+ comboBoxAttrs["aria-owns"] = rawAttrs["aria-owns"];
49
+ comboBoxAttrs["aria-expanded"] = rawAttrs["aria-expanded"];
50
+ }
51
+ return comboBoxAttrs;
52
+ });
53
+ const containerKls = vue.computed(() => [
54
+ props.type === "textarea" ? nsTextarea.b() : nsInput.b(),
55
+ nsInput.m(inputSize.value),
56
+ nsInput.is("disabled", inputDisabled.value),
57
+ nsInput.is("exceed", inputExceed.value),
58
+ {
59
+ [nsInput.b("group")]: slots.prepend || slots.append,
60
+ [nsInput.bm("group", "append")]: slots.append,
61
+ [nsInput.bm("group", "prepend")]: slots.prepend,
62
+ [nsInput.m("prefix")]: slots.prefix || props.prefixIcon,
63
+ [nsInput.m("suffix")]: slots.suffix || props.suffixIcon || props.clearable || props.showPassword,
64
+ [nsInput.bm("suffix", "password-clear")]: showClear.value && showPwdVisible.value
65
+ },
66
+ rawAttrs.class
67
+ ]);
68
+ const wrapperKls = vue.computed(() => [
69
+ nsInput.e("wrapper"),
70
+ nsInput.is("focus", isFocused.value)
71
+ ]);
72
+ const attrs = index.useAttrs({
73
+ excludeKeys: vue.computed(() => {
74
+ return Object.keys(containerAttrs.value);
75
+ })
76
+ });
77
+ const { form: elForm, formItem: elFormItem } = useFormItem.useFormItem();
78
+ const { inputId } = useFormItem.useFormItemInputId(props, {
79
+ formItemContext: elFormItem
80
+ });
81
+ const inputSize = useFormCommonProps.useFormSize();
82
+ const inputDisabled = useFormCommonProps.useFormDisabled();
83
+ const nsInput = index$1.useNamespace("input");
84
+ const nsTextarea = index$1.useNamespace("textarea");
85
+ const input = vue.shallowRef();
86
+ const textarea = vue.shallowRef();
87
+ const hovering = vue.ref(false);
88
+ const isComposing = vue.ref(false);
89
+ const passwordVisible = vue.ref(false);
90
+ const countStyle = vue.ref();
91
+ const textareaCalcStyle = vue.shallowRef(props.inputStyle);
92
+ const _ref = vue.computed(() => input.value || textarea.value);
93
+ const { wrapperRef, isFocused, handleFocus, handleBlur } = index$2.useFocusController(_ref, {
94
+ afterBlur() {
95
+ var _a;
96
+ if (props.validateEvent) {
97
+ (_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur").catch((err) => error.debugWarn(err));
98
+ }
99
+ }
100
+ });
101
+ const needStatusIcon = vue.computed(() => {
102
+ var _a;
103
+ return (_a = elForm == null ? void 0 : elForm.statusIcon) != null ? _a : false;
104
+ });
105
+ const validateState = vue.computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
106
+ const validateIcon = vue.computed(() => validateState.value && icon.ValidateComponentsMap[validateState.value]);
107
+ const passwordIcon = vue.computed(() => passwordVisible.value ? iconsVue.View : iconsVue.Hide);
108
+ const containerStyle = vue.computed(() => [
109
+ rawAttrs.style
110
+ ]);
111
+ const textareaStyle = vue.computed(() => [
112
+ props.inputStyle,
113
+ textareaCalcStyle.value,
114
+ { resize: props.resize }
115
+ ]);
116
+ const nativeInputValue = vue.computed(() => lodashUnified.isNil(props.modelValue) ? "" : String(props.modelValue));
117
+ const showClear = vue.computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
118
+ const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (!!nativeInputValue.value || isFocused.value));
119
+ const isWordLimitVisible = vue.computed(() => props.showWordLimit && !!props.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
120
+ const textLength = vue.computed(() => nativeInputValue.value.length);
121
+ const inputExceed = vue.computed(() => !!isWordLimitVisible.value && textLength.value > Number(props.maxlength));
122
+ const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
123
+ const [recordCursor, setCursor] = index$3.useCursor(input);
124
+ core.useResizeObserver(textarea, (entries) => {
125
+ onceInitSizeTextarea();
126
+ if (!isWordLimitVisible.value || props.resize !== "both")
127
+ return;
128
+ const entry = entries[0];
129
+ const { width } = entry.contentRect;
130
+ countStyle.value = {
131
+ right: `calc(100% - ${width + 15 + 6}px)`
132
+ };
133
+ });
134
+ const resizeTextarea = () => {
135
+ const { type, autosize } = props;
136
+ if (!core.isClient || type !== "textarea" || !textarea.value)
137
+ return;
138
+ if (autosize) {
139
+ const minRows = shared.isObject(autosize) ? autosize.minRows : void 0;
140
+ const maxRows = shared.isObject(autosize) ? autosize.maxRows : void 0;
141
+ const textareaStyle2 = utils.calcTextareaHeight(textarea.value, minRows, maxRows);
142
+ textareaCalcStyle.value = {
143
+ overflowY: "hidden",
144
+ ...textareaStyle2
145
+ };
146
+ vue.nextTick(() => {
147
+ textarea.value.offsetHeight;
148
+ textareaCalcStyle.value = textareaStyle2;
149
+ });
150
+ } else {
151
+ textareaCalcStyle.value = {
152
+ minHeight: utils.calcTextareaHeight(textarea.value).minHeight
153
+ };
154
+ }
155
+ };
156
+ const createOnceInitResize = (resizeTextarea2) => {
157
+ let isInit = false;
158
+ return () => {
159
+ var _a;
160
+ if (isInit || !props.autosize)
161
+ return;
162
+ const isElHidden = ((_a = textarea.value) == null ? void 0 : _a.offsetParent) === null;
163
+ if (!isElHidden) {
164
+ resizeTextarea2();
165
+ isInit = true;
166
+ }
167
+ };
168
+ };
169
+ const onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
170
+ const setNativeInputValue = () => {
171
+ const input2 = _ref.value;
172
+ const formatterValue = props.formatter ? props.formatter(nativeInputValue.value) : nativeInputValue.value;
173
+ if (!input2 || input2.value === formatterValue)
174
+ return;
175
+ input2.value = formatterValue;
176
+ };
177
+ const handleInput = async (event$1) => {
178
+ recordCursor();
179
+ let { value } = event$1.target;
180
+ if (props.formatter) {
181
+ value = props.parser ? props.parser(value) : value;
182
+ }
183
+ if (isComposing.value)
184
+ return;
185
+ if (value === nativeInputValue.value) {
186
+ setNativeInputValue();
187
+ return;
188
+ }
189
+ emit(event.UPDATE_MODEL_EVENT, value);
190
+ emit("input", value);
191
+ await vue.nextTick();
192
+ setNativeInputValue();
193
+ setCursor();
194
+ };
195
+ const handleChange = (event) => {
196
+ emit("change", event.target.value);
197
+ };
198
+ const handleCompositionStart = (event) => {
199
+ emit("compositionstart", event);
200
+ isComposing.value = true;
201
+ };
202
+ const handleCompositionUpdate = (event) => {
203
+ var _a;
204
+ emit("compositionupdate", event);
205
+ const text = (_a = event.target) == null ? void 0 : _a.value;
206
+ const lastCharacter = text[text.length - 1] || "";
207
+ isComposing.value = !i18n.isKorean(lastCharacter);
208
+ };
209
+ const handleCompositionEnd = (event) => {
210
+ emit("compositionend", event);
211
+ if (isComposing.value) {
212
+ isComposing.value = false;
213
+ handleInput(event);
214
+ }
215
+ };
216
+ const handlePasswordVisible = () => {
217
+ passwordVisible.value = !passwordVisible.value;
218
+ focus();
219
+ };
220
+ const focus = async () => {
221
+ var _a;
222
+ await vue.nextTick();
223
+ (_a = _ref.value) == null ? void 0 : _a.focus();
224
+ };
225
+ const blur = () => {
226
+ var _a;
227
+ return (_a = _ref.value) == null ? void 0 : _a.blur();
228
+ };
229
+ const handleMouseLeave = (evt) => {
230
+ hovering.value = false;
231
+ emit("mouseleave", evt);
232
+ };
233
+ const handleMouseEnter = (evt) => {
234
+ hovering.value = true;
235
+ emit("mouseenter", evt);
236
+ };
237
+ const handleKeydown = (evt) => {
238
+ emit("keydown", evt);
239
+ };
240
+ const select = () => {
241
+ var _a;
242
+ (_a = _ref.value) == null ? void 0 : _a.select();
243
+ };
244
+ const clear = () => {
245
+ emit(event.UPDATE_MODEL_EVENT, "");
246
+ emit("change", "");
247
+ emit("clear");
248
+ emit("input", "");
249
+ };
250
+ vue.watch(() => props.modelValue, () => {
251
+ var _a;
252
+ vue.nextTick(() => resizeTextarea());
253
+ if (props.validateEvent) {
254
+ (_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => error.debugWarn(err));
255
+ }
256
+ });
257
+ vue.watch(nativeInputValue, () => setNativeInputValue());
258
+ vue.watch(() => props.type, async () => {
259
+ await vue.nextTick();
260
+ setNativeInputValue();
261
+ resizeTextarea();
262
+ });
263
+ vue.onMounted(() => {
264
+ if (!props.formatter && props.parser) {
265
+ error.debugWarn("ElInput", "If you set the parser, you also need to set the formatter.");
266
+ }
267
+ setNativeInputValue();
268
+ vue.nextTick(resizeTextarea);
269
+ });
270
+ expose({
271
+ input,
272
+ textarea,
273
+ ref: _ref,
274
+ textareaStyle,
275
+ autosize: vue.toRef(props, "autosize"),
276
+ focus,
277
+ blur,
278
+ select,
279
+ clear,
280
+ resizeTextarea
281
+ });
282
+ return (_ctx, _cache) => {
283
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(vue.unref(containerAttrs), {
284
+ class: vue.unref(containerKls),
285
+ style: vue.unref(containerStyle),
286
+ role: _ctx.containerRole,
287
+ onMouseenter: handleMouseEnter,
288
+ onMouseleave: handleMouseLeave
289
+ }), [
290
+ vue.createCommentVNode(" input "),
291
+ _ctx.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
292
+ vue.createCommentVNode(" prepend slot "),
293
+ _ctx.$slots.prepend ? (vue.openBlock(), vue.createElementBlock("div", {
294
+ key: 0,
295
+ class: vue.normalizeClass(vue.unref(nsInput).be("group", "prepend"))
296
+ }, [
297
+ vue.renderSlot(_ctx.$slots, "prepend")
298
+ ], 2)) : vue.createCommentVNode("v-if", true),
299
+ vue.createElementVNode("div", {
300
+ ref_key: "wrapperRef",
301
+ ref: wrapperRef,
302
+ class: vue.normalizeClass(vue.unref(wrapperKls))
303
+ }, [
304
+ vue.createCommentVNode(" prefix slot "),
305
+ _ctx.$slots.prefix || _ctx.prefixIcon ? (vue.openBlock(), vue.createElementBlock("span", {
306
+ key: 0,
307
+ class: vue.normalizeClass(vue.unref(nsInput).e("prefix"))
308
+ }, [
309
+ vue.createElementVNode("span", {
310
+ class: vue.normalizeClass(vue.unref(nsInput).e("prefix-inner"))
311
+ }, [
312
+ vue.renderSlot(_ctx.$slots, "prefix"),
313
+ _ctx.prefixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
314
+ key: 0,
315
+ class: vue.normalizeClass(vue.unref(nsInput).e("icon"))
316
+ }, {
317
+ default: vue.withCtx(() => [
318
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.prefixIcon)))
319
+ ]),
320
+ _: 1
321
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
322
+ ], 2)
323
+ ], 2)) : vue.createCommentVNode("v-if", true),
324
+ vue.createElementVNode("input", vue.mergeProps({
325
+ id: vue.unref(inputId),
326
+ ref_key: "input",
327
+ ref: input,
328
+ class: vue.unref(nsInput).e("inner")
329
+ }, vue.unref(attrs), {
330
+ minlength: _ctx.minlength,
331
+ maxlength: _ctx.maxlength,
332
+ type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
333
+ disabled: vue.unref(inputDisabled),
334
+ readonly: _ctx.readonly,
335
+ autocomplete: _ctx.autocomplete,
336
+ tabindex: _ctx.tabindex,
337
+ "aria-label": _ctx.label,
338
+ placeholder: _ctx.placeholder,
339
+ style: _ctx.inputStyle,
340
+ form: _ctx.form,
341
+ autofocus: _ctx.autofocus,
342
+ onCompositionstart: handleCompositionStart,
343
+ onCompositionupdate: handleCompositionUpdate,
344
+ onCompositionend: handleCompositionEnd,
345
+ onInput: handleInput,
346
+ onFocus: _cache[0] || (_cache[0] = (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args)),
347
+ onBlur: _cache[1] || (_cache[1] = (...args) => vue.unref(handleBlur) && vue.unref(handleBlur)(...args)),
348
+ onChange: handleChange,
349
+ onKeydown: handleKeydown
350
+ }), null, 16, _hoisted_2),
351
+ vue.createCommentVNode(" suffix slot "),
352
+ vue.unref(suffixVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
353
+ key: 1,
354
+ class: vue.normalizeClass(vue.unref(nsInput).e("suffix"))
355
+ }, [
356
+ vue.createElementVNode("span", {
357
+ class: vue.normalizeClass(vue.unref(nsInput).e("suffix-inner"))
358
+ }, [
359
+ !vue.unref(showClear) || !vue.unref(showPwdVisible) || !vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
360
+ vue.renderSlot(_ctx.$slots, "suffix"),
361
+ _ctx.suffixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
362
+ key: 0,
363
+ class: vue.normalizeClass(vue.unref(nsInput).e("icon"))
364
+ }, {
365
+ default: vue.withCtx(() => [
366
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.suffixIcon)))
367
+ ]),
368
+ _: 1
369
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
370
+ ], 64)) : vue.createCommentVNode("v-if", true),
371
+ vue.unref(showClear) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
372
+ key: 1,
373
+ class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("clear")]),
374
+ onMousedown: vue.withModifiers(vue.unref(shared.NOOP), ["prevent"]),
375
+ onClick: clear
376
+ }, {
377
+ default: vue.withCtx(() => [
378
+ vue.createVNode(vue.unref(iconsVue.CircleClose))
379
+ ]),
380
+ _: 1
381
+ }, 8, ["class", "onMousedown"])) : vue.createCommentVNode("v-if", true),
382
+ vue.unref(showPwdVisible) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
383
+ key: 2,
384
+ class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("password")]),
385
+ onClick: handlePasswordVisible
386
+ }, {
387
+ default: vue.withCtx(() => [
388
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(passwordIcon))))
389
+ ]),
390
+ _: 1
391
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
392
+ vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
393
+ key: 3,
394
+ class: vue.normalizeClass(vue.unref(nsInput).e("count"))
395
+ }, [
396
+ vue.createElementVNode("span", {
397
+ class: vue.normalizeClass(vue.unref(nsInput).e("count-inner"))
398
+ }, vue.toDisplayString(vue.unref(textLength)) + " / " + vue.toDisplayString(_ctx.maxlength), 3)
399
+ ], 2)) : vue.createCommentVNode("v-if", true),
400
+ vue.unref(validateState) && vue.unref(validateIcon) && vue.unref(needStatusIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
401
+ key: 4,
402
+ class: vue.normalizeClass([
403
+ vue.unref(nsInput).e("icon"),
404
+ vue.unref(nsInput).e("validateIcon"),
405
+ vue.unref(nsInput).is("loading", vue.unref(validateState) === "validating")
406
+ ])
407
+ }, {
408
+ default: vue.withCtx(() => [
409
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(validateIcon))))
410
+ ]),
411
+ _: 1
412
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
413
+ ], 2)
414
+ ], 2)) : vue.createCommentVNode("v-if", true)
415
+ ], 2),
416
+ vue.createCommentVNode(" append slot "),
417
+ _ctx.$slots.append ? (vue.openBlock(), vue.createElementBlock("div", {
418
+ key: 1,
419
+ class: vue.normalizeClass(vue.unref(nsInput).be("group", "append"))
420
+ }, [
421
+ vue.renderSlot(_ctx.$slots, "append")
422
+ ], 2)) : vue.createCommentVNode("v-if", true)
423
+ ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
424
+ vue.createCommentVNode(" textarea "),
425
+ vue.createElementVNode("textarea", vue.mergeProps({
426
+ id: vue.unref(inputId),
427
+ ref_key: "textarea",
428
+ ref: textarea,
429
+ class: vue.unref(nsTextarea).e("inner")
430
+ }, vue.unref(attrs), {
431
+ minlength: _ctx.minlength,
432
+ maxlength: _ctx.maxlength,
433
+ tabindex: _ctx.tabindex,
434
+ disabled: vue.unref(inputDisabled),
435
+ readonly: _ctx.readonly,
436
+ autocomplete: _ctx.autocomplete,
437
+ style: vue.unref(textareaStyle),
438
+ "aria-label": _ctx.label,
439
+ placeholder: _ctx.placeholder,
440
+ form: _ctx.form,
441
+ autofocus: _ctx.autofocus,
442
+ onCompositionstart: handleCompositionStart,
443
+ onCompositionupdate: handleCompositionUpdate,
444
+ onCompositionend: handleCompositionEnd,
445
+ onInput: handleInput,
446
+ onFocus: _cache[2] || (_cache[2] = (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args)),
447
+ onBlur: _cache[3] || (_cache[3] = (...args) => vue.unref(handleBlur) && vue.unref(handleBlur)(...args)),
448
+ onChange: handleChange,
449
+ onKeydown: handleKeydown
450
+ }), null, 16, _hoisted_3),
451
+ vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
452
+ key: 0,
453
+ style: vue.normalizeStyle(countStyle.value),
454
+ class: vue.normalizeClass(vue.unref(nsInput).e("count"))
455
+ }, vue.toDisplayString(vue.unref(textLength)) + " / " + vue.toDisplayString(_ctx.maxlength), 7)) : vue.createCommentVNode("v-if", true)
456
+ ], 64))
457
+ ], 16, _hoisted_1)), [
458
+ [vue.vShow, _ctx.type !== "hidden"]
459
+ ]);
460
+ };
109
461
  }
110
462
  });
111
- const inputEmits = {
112
- [event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value),
113
- input: (value) => shared.isString(value),
114
- change: (value) => shared.isString(value),
115
- focus: (evt) => evt instanceof FocusEvent,
116
- blur: (evt) => evt instanceof FocusEvent,
117
- clear: () => true,
118
- mouseleave: (evt) => evt instanceof MouseEvent,
119
- mouseenter: (evt) => evt instanceof MouseEvent,
120
- keydown: (evt) => evt instanceof Event,
121
- compositionstart: (evt) => evt instanceof CompositionEvent,
122
- compositionupdate: (evt) => evt instanceof CompositionEvent,
123
- compositionend: (evt) => evt instanceof CompositionEvent
124
- };
463
+ var Input = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "input.vue"]]);
125
464
 
126
- exports.inputEmits = inputEmits;
127
- exports.inputProps = inputProps;
465
+ exports["default"] = Input;
128
466
  //# sourceMappingURL=input2.js.map