@element-plus/nightly 0.0.20240302 → 0.0.20240304

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