@element-plus/nightly 0.0.20231207 → 0.0.20231208

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 (488) hide show
  1. package/dist/index.full.js +2 -2
  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 +2 -2
  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.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/ckb.js +1 -1
  32. package/dist/locale/ckb.min.js +1 -1
  33. package/dist/locale/ckb.min.mjs +1 -1
  34. package/dist/locale/ckb.mjs +1 -1
  35. package/dist/locale/cs.js +1 -1
  36. package/dist/locale/cs.min.js +1 -1
  37. package/dist/locale/cs.min.mjs +1 -1
  38. package/dist/locale/cs.mjs +1 -1
  39. package/dist/locale/da.js +1 -1
  40. package/dist/locale/da.min.js +1 -1
  41. package/dist/locale/da.min.mjs +1 -1
  42. package/dist/locale/da.mjs +1 -1
  43. package/dist/locale/de.js +1 -1
  44. package/dist/locale/de.min.js +1 -1
  45. package/dist/locale/de.min.mjs +1 -1
  46. package/dist/locale/de.mjs +1 -1
  47. package/dist/locale/el.js +1 -1
  48. package/dist/locale/el.min.js +1 -1
  49. package/dist/locale/el.min.mjs +1 -1
  50. package/dist/locale/el.mjs +1 -1
  51. package/dist/locale/en.js +1 -1
  52. package/dist/locale/en.min.js +1 -1
  53. package/dist/locale/en.min.mjs +1 -1
  54. package/dist/locale/en.mjs +1 -1
  55. package/dist/locale/eo.js +1 -1
  56. package/dist/locale/eo.min.js +1 -1
  57. package/dist/locale/eo.min.mjs +1 -1
  58. package/dist/locale/eo.mjs +1 -1
  59. package/dist/locale/es.js +1 -1
  60. package/dist/locale/es.min.js +1 -1
  61. package/dist/locale/es.min.mjs +1 -1
  62. package/dist/locale/es.mjs +1 -1
  63. package/dist/locale/et.js +1 -1
  64. package/dist/locale/et.min.js +1 -1
  65. package/dist/locale/et.min.mjs +1 -1
  66. package/dist/locale/et.mjs +1 -1
  67. package/dist/locale/eu.js +1 -1
  68. package/dist/locale/eu.min.js +1 -1
  69. package/dist/locale/eu.min.mjs +1 -1
  70. package/dist/locale/eu.mjs +1 -1
  71. package/dist/locale/fa.js +1 -1
  72. package/dist/locale/fa.min.js +1 -1
  73. package/dist/locale/fa.min.mjs +1 -1
  74. package/dist/locale/fa.mjs +1 -1
  75. package/dist/locale/fi.js +1 -1
  76. package/dist/locale/fi.min.js +1 -1
  77. package/dist/locale/fi.min.mjs +1 -1
  78. package/dist/locale/fi.mjs +1 -1
  79. package/dist/locale/fr.js +1 -1
  80. package/dist/locale/fr.min.js +1 -1
  81. package/dist/locale/fr.min.mjs +1 -1
  82. package/dist/locale/fr.mjs +1 -1
  83. package/dist/locale/he.js +1 -1
  84. package/dist/locale/he.min.js +1 -1
  85. package/dist/locale/he.min.mjs +1 -1
  86. package/dist/locale/he.mjs +1 -1
  87. package/dist/locale/hr.js +1 -1
  88. package/dist/locale/hr.min.js +1 -1
  89. package/dist/locale/hr.min.mjs +1 -1
  90. package/dist/locale/hr.mjs +1 -1
  91. package/dist/locale/hu.js +1 -1
  92. package/dist/locale/hu.min.js +1 -1
  93. package/dist/locale/hu.min.mjs +1 -1
  94. package/dist/locale/hu.mjs +1 -1
  95. package/dist/locale/hy-am.js +1 -1
  96. package/dist/locale/hy-am.min.js +1 -1
  97. package/dist/locale/hy-am.min.mjs +1 -1
  98. package/dist/locale/hy-am.mjs +1 -1
  99. package/dist/locale/id.js +1 -1
  100. package/dist/locale/id.min.js +1 -1
  101. package/dist/locale/id.min.mjs +1 -1
  102. package/dist/locale/id.mjs +1 -1
  103. package/dist/locale/it.js +1 -1
  104. package/dist/locale/it.min.js +1 -1
  105. package/dist/locale/it.min.mjs +1 -1
  106. package/dist/locale/it.mjs +1 -1
  107. package/dist/locale/ja.js +1 -1
  108. package/dist/locale/ja.min.js +1 -1
  109. package/dist/locale/ja.min.mjs +1 -1
  110. package/dist/locale/ja.mjs +1 -1
  111. package/dist/locale/kk.js +1 -1
  112. package/dist/locale/kk.min.js +1 -1
  113. package/dist/locale/kk.min.mjs +1 -1
  114. package/dist/locale/kk.mjs +1 -1
  115. package/dist/locale/km.js +1 -1
  116. package/dist/locale/km.min.js +1 -1
  117. package/dist/locale/km.min.mjs +1 -1
  118. package/dist/locale/km.mjs +1 -1
  119. package/dist/locale/ko.js +1 -1
  120. package/dist/locale/ko.min.js +1 -1
  121. package/dist/locale/ko.min.mjs +1 -1
  122. package/dist/locale/ko.mjs +1 -1
  123. package/dist/locale/ku.js +1 -1
  124. package/dist/locale/ku.min.js +1 -1
  125. package/dist/locale/ku.min.mjs +1 -1
  126. package/dist/locale/ku.mjs +1 -1
  127. package/dist/locale/ky.js +1 -1
  128. package/dist/locale/ky.min.js +1 -1
  129. package/dist/locale/ky.min.mjs +1 -1
  130. package/dist/locale/ky.mjs +1 -1
  131. package/dist/locale/lt.js +1 -1
  132. package/dist/locale/lt.min.js +1 -1
  133. package/dist/locale/lt.min.mjs +1 -1
  134. package/dist/locale/lt.mjs +1 -1
  135. package/dist/locale/lv.js +1 -1
  136. package/dist/locale/lv.min.js +1 -1
  137. package/dist/locale/lv.min.mjs +1 -1
  138. package/dist/locale/lv.mjs +1 -1
  139. package/dist/locale/mg.js +1 -1
  140. package/dist/locale/mg.min.js +1 -1
  141. package/dist/locale/mg.min.mjs +1 -1
  142. package/dist/locale/mg.mjs +1 -1
  143. package/dist/locale/mn.js +1 -1
  144. package/dist/locale/mn.min.js +1 -1
  145. package/dist/locale/mn.min.mjs +1 -1
  146. package/dist/locale/mn.mjs +1 -1
  147. package/dist/locale/nb-no.js +1 -1
  148. package/dist/locale/nb-no.min.js +1 -1
  149. package/dist/locale/nb-no.min.mjs +1 -1
  150. package/dist/locale/nb-no.mjs +1 -1
  151. package/dist/locale/nl.js +1 -1
  152. package/dist/locale/nl.min.js +1 -1
  153. package/dist/locale/nl.min.mjs +1 -1
  154. package/dist/locale/nl.mjs +1 -1
  155. package/dist/locale/pa.js +1 -1
  156. package/dist/locale/pa.min.js +1 -1
  157. package/dist/locale/pa.min.mjs +1 -1
  158. package/dist/locale/pa.mjs +1 -1
  159. package/dist/locale/pl.js +1 -1
  160. package/dist/locale/pl.min.js +1 -1
  161. package/dist/locale/pl.min.mjs +1 -1
  162. package/dist/locale/pl.mjs +1 -1
  163. package/dist/locale/pt-br.js +1 -1
  164. package/dist/locale/pt-br.min.js +1 -1
  165. package/dist/locale/pt-br.min.mjs +1 -1
  166. package/dist/locale/pt-br.mjs +1 -1
  167. package/dist/locale/pt.js +1 -1
  168. package/dist/locale/pt.min.js +1 -1
  169. package/dist/locale/pt.min.mjs +1 -1
  170. package/dist/locale/pt.mjs +1 -1
  171. package/dist/locale/ro.js +1 -1
  172. package/dist/locale/ro.min.js +1 -1
  173. package/dist/locale/ro.min.mjs +1 -1
  174. package/dist/locale/ro.mjs +1 -1
  175. package/dist/locale/ru.js +1 -1
  176. package/dist/locale/ru.min.js +1 -1
  177. package/dist/locale/ru.min.mjs +1 -1
  178. package/dist/locale/ru.mjs +1 -1
  179. package/dist/locale/sk.js +1 -1
  180. package/dist/locale/sk.min.js +1 -1
  181. package/dist/locale/sk.min.mjs +1 -1
  182. package/dist/locale/sk.mjs +1 -1
  183. package/dist/locale/sl.js +1 -1
  184. package/dist/locale/sl.min.js +1 -1
  185. package/dist/locale/sl.min.mjs +1 -1
  186. package/dist/locale/sl.mjs +1 -1
  187. package/dist/locale/sr.js +1 -1
  188. package/dist/locale/sr.min.js +1 -1
  189. package/dist/locale/sr.min.mjs +1 -1
  190. package/dist/locale/sr.mjs +1 -1
  191. package/dist/locale/sv.js +1 -1
  192. package/dist/locale/sv.min.js +1 -1
  193. package/dist/locale/sv.min.mjs +1 -1
  194. package/dist/locale/sv.mjs +1 -1
  195. package/dist/locale/sw.js +1 -1
  196. package/dist/locale/sw.min.js +1 -1
  197. package/dist/locale/sw.min.mjs +1 -1
  198. package/dist/locale/sw.mjs +1 -1
  199. package/dist/locale/ta.js +1 -1
  200. package/dist/locale/ta.min.js +1 -1
  201. package/dist/locale/ta.min.mjs +1 -1
  202. package/dist/locale/ta.mjs +1 -1
  203. package/dist/locale/th.js +1 -1
  204. package/dist/locale/th.min.js +1 -1
  205. package/dist/locale/th.min.mjs +1 -1
  206. package/dist/locale/th.mjs +1 -1
  207. package/dist/locale/tk.js +1 -1
  208. package/dist/locale/tk.min.js +1 -1
  209. package/dist/locale/tk.min.mjs +1 -1
  210. package/dist/locale/tk.mjs +1 -1
  211. package/dist/locale/tr.js +1 -1
  212. package/dist/locale/tr.min.js +1 -1
  213. package/dist/locale/tr.min.mjs +1 -1
  214. package/dist/locale/tr.mjs +1 -1
  215. package/dist/locale/ug-cn.js +1 -1
  216. package/dist/locale/ug-cn.min.js +1 -1
  217. package/dist/locale/ug-cn.min.mjs +1 -1
  218. package/dist/locale/ug-cn.mjs +1 -1
  219. package/dist/locale/uk.js +1 -1
  220. package/dist/locale/uk.min.js +1 -1
  221. package/dist/locale/uk.min.mjs +1 -1
  222. package/dist/locale/uk.mjs +1 -1
  223. package/dist/locale/uz-uz.js +1 -1
  224. package/dist/locale/uz-uz.min.js +1 -1
  225. package/dist/locale/uz-uz.min.mjs +1 -1
  226. package/dist/locale/uz-uz.mjs +1 -1
  227. package/dist/locale/vi.js +1 -1
  228. package/dist/locale/vi.min.js +1 -1
  229. package/dist/locale/vi.min.mjs +1 -1
  230. package/dist/locale/vi.mjs +1 -1
  231. package/dist/locale/zh-cn.js +1 -1
  232. package/dist/locale/zh-cn.min.js +1 -1
  233. package/dist/locale/zh-cn.min.mjs +1 -1
  234. package/dist/locale/zh-cn.mjs +1 -1
  235. package/dist/locale/zh-tw.js +1 -1
  236. package/dist/locale/zh-tw.min.js +1 -1
  237. package/dist/locale/zh-tw.min.mjs +1 -1
  238. package/dist/locale/zh-tw.mjs +1 -1
  239. package/es/components/alert/index.d.ts +4 -4
  240. package/es/components/alert/index.mjs +2 -2
  241. package/es/components/alert/src/alert.d.ts +1 -1
  242. package/es/components/alert/src/alert.mjs +96 -36
  243. package/es/components/alert/src/alert.mjs.map +1 -1
  244. package/es/components/alert/src/alert.vue.d.ts +4 -4
  245. package/es/components/alert/src/alert2.mjs +36 -96
  246. package/es/components/alert/src/alert2.mjs.map +1 -1
  247. package/es/components/autocomplete/index.d.ts +65 -65
  248. package/es/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
  249. package/es/components/button/index.d.ts +5 -5
  250. package/es/components/button/src/button.d.ts +1 -1
  251. package/es/components/button/src/button.vue.d.ts +5 -5
  252. package/es/components/button/src/use-button.d.ts +1 -1
  253. package/es/components/calendar/index.d.ts +5 -5
  254. package/es/components/calendar/src/calendar.vue.d.ts +5 -5
  255. package/es/components/carousel/index.d.ts +5 -5
  256. package/es/components/carousel/src/carousel.d.ts +1 -1
  257. package/es/components/carousel/src/carousel.vue.d.ts +5 -5
  258. package/es/components/cascader/index.d.ts +128 -128
  259. package/es/components/cascader/src/cascader.vue.d.ts +64 -64
  260. package/es/components/color-picker/index.d.ts +38 -38
  261. package/es/components/color-picker/src/color-picker.vue.d.ts +38 -38
  262. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
  263. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
  264. package/es/components/date-picker/src/panel-utils.d.ts +34 -34
  265. package/es/components/dialog/index.d.ts +1 -1
  266. package/es/components/dialog/src/dialog.vue.d.ts +1 -1
  267. package/es/components/dropdown/index.d.ts +14 -14
  268. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  269. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  270. package/es/components/dropdown/src/dropdown.vue.d.ts +12 -12
  271. package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  272. package/es/components/form/index.d.ts +12 -12
  273. package/es/components/form/src/form-item.d.ts +1 -1
  274. package/es/components/form/src/form-item.vue.d.ts +5 -5
  275. package/es/components/image/index.d.ts +1 -1
  276. package/es/components/image/src/image.vue.d.ts +1 -1
  277. package/es/components/index.mjs +4 -4
  278. package/es/components/input/index.d.ts +12 -12
  279. package/es/components/input/index.mjs +2 -2
  280. package/es/components/input/src/input.mjs +453 -109
  281. package/es/components/input/src/input.mjs.map +1 -1
  282. package/es/components/input/src/input.vue.d.ts +12 -12
  283. package/es/components/input/src/input2.mjs +109 -453
  284. package/es/components/input/src/input2.mjs.map +1 -1
  285. package/es/components/input-number/index.d.ts +45 -45
  286. package/es/components/input-number/src/input-number.vue.d.ts +45 -45
  287. package/es/components/menu/index.d.ts +3 -3
  288. package/es/components/menu/src/menu.d.ts +4 -4
  289. package/es/components/message/src/message.d.ts +1 -1
  290. package/es/components/message/src/message.vue.d.ts +4 -4
  291. package/es/components/notification/src/notification.d.ts +1 -1
  292. package/es/components/notification/src/notification.vue.d.ts +4 -4
  293. package/es/components/pagination/src/components/jumper.vue.d.ts +12 -12
  294. package/es/components/pagination/src/components/sizes.vue.d.ts +26 -26
  295. package/es/components/popconfirm/index.d.ts +23 -23
  296. package/es/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
  297. package/es/components/popover/index.d.ts +18 -18
  298. package/es/components/popover/src/popover.vue.d.ts +18 -18
  299. package/es/components/popper/src/content.vue.d.ts +6 -6
  300. package/es/components/radio/index.mjs +2 -2
  301. package/es/components/radio/src/radio-button.mjs +66 -9
  302. package/es/components/radio/src/radio-button.mjs.map +1 -1
  303. package/es/components/radio/src/radio-button2.mjs +9 -66
  304. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  305. package/es/components/result/index.d.ts +4 -4
  306. package/es/components/result/src/result.d.ts +1 -1
  307. package/es/components/result/src/result.vue.d.ts +4 -4
  308. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  309. package/es/components/select/index.d.ts +26 -26
  310. package/es/components/select/src/select.vue.d.ts +26 -26
  311. package/es/components/select/src/useSelect.d.ts +24 -24
  312. package/es/components/select-v2/index.d.ts +30 -30
  313. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  314. package/es/components/select-v2/src/select.vue.d.ts +15 -15
  315. package/es/components/select-v2/src/useSelect.d.ts +13 -13
  316. package/es/components/slider/index.d.ts +75 -75
  317. package/es/components/slider/src/button.vue.d.ts +6 -6
  318. package/es/components/slider/src/composables/use-slide.d.ts +24 -24
  319. package/es/components/slider/src/slider.vue.d.ts +75 -75
  320. package/es/components/steps/index.d.ts +16 -16
  321. package/es/components/steps/src/item.d.ts +1 -1
  322. package/es/components/steps/src/item.vue.d.ts +4 -4
  323. package/es/components/steps/src/steps.d.ts +2 -2
  324. package/es/components/steps/src/steps.vue.d.ts +8 -8
  325. package/es/components/table/index.d.ts +1 -1
  326. package/es/components/table/src/filter-panel.vue.d.ts +12 -12
  327. package/es/components/table/src/table.vue.d.ts +1 -1
  328. package/es/components/tag/index.d.ts +1 -1
  329. package/es/components/tag/src/tag.vue.d.ts +1 -1
  330. package/es/components/time-picker/src/common/picker.vue.d.ts +34 -34
  331. package/es/components/time-select/index.d.ts +110 -110
  332. package/es/components/time-select/src/time-select.vue.d.ts +55 -55
  333. package/es/components/tooltip/index.d.ts +6 -6
  334. package/es/components/tooltip/src/content.vue.d.ts +6 -6
  335. package/es/components/tooltip/src/tooltip.vue.d.ts +6 -6
  336. package/es/components/tooltip-v2/index.d.ts +4 -4
  337. package/es/components/tooltip-v2/index.mjs +1 -1
  338. package/es/components/tooltip-v2/src/arrow.mjs +22 -37
  339. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  340. package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
  341. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  342. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  343. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
  344. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  345. package/es/components/transfer/index.d.ts +65 -65
  346. package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  347. package/es/components/transfer/src/transfer.vue.d.ts +65 -65
  348. package/es/components/tree-v2/index.d.ts +1 -1
  349. package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  350. package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
  351. package/es/components/upload/index.d.ts +5 -5
  352. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  353. package/es/components/upload/src/upload.vue.d.ts +5 -5
  354. package/es/components/watermark/index.mjs +2 -2
  355. package/es/components/watermark/src/watermark.mjs +209 -28
  356. package/es/components/watermark/src/watermark.mjs.map +1 -1
  357. package/es/components/watermark/src/watermark2.mjs +28 -209
  358. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  359. package/es/index.mjs +4 -4
  360. package/es/version.d.ts +1 -1
  361. package/es/version.mjs +1 -1
  362. package/es/version.mjs.map +1 -1
  363. package/lib/components/alert/index.d.ts +4 -4
  364. package/lib/components/alert/index.js +2 -2
  365. package/lib/components/alert/src/alert.d.ts +1 -1
  366. package/lib/components/alert/src/alert.js +95 -37
  367. package/lib/components/alert/src/alert.js.map +1 -1
  368. package/lib/components/alert/src/alert.vue.d.ts +4 -4
  369. package/lib/components/alert/src/alert2.js +37 -95
  370. package/lib/components/alert/src/alert2.js.map +1 -1
  371. package/lib/components/autocomplete/index.d.ts +65 -65
  372. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
  373. package/lib/components/button/index.d.ts +5 -5
  374. package/lib/components/button/src/button.d.ts +1 -1
  375. package/lib/components/button/src/button.vue.d.ts +5 -5
  376. package/lib/components/button/src/use-button.d.ts +1 -1
  377. package/lib/components/calendar/index.d.ts +5 -5
  378. package/lib/components/calendar/src/calendar.vue.d.ts +5 -5
  379. package/lib/components/carousel/index.d.ts +5 -5
  380. package/lib/components/carousel/src/carousel.d.ts +1 -1
  381. package/lib/components/carousel/src/carousel.vue.d.ts +5 -5
  382. package/lib/components/cascader/index.d.ts +128 -128
  383. package/lib/components/cascader/src/cascader.vue.d.ts +64 -64
  384. package/lib/components/color-picker/index.d.ts +38 -38
  385. package/lib/components/color-picker/src/color-picker.vue.d.ts +38 -38
  386. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
  387. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
  388. package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
  389. package/lib/components/dialog/index.d.ts +1 -1
  390. package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
  391. package/lib/components/dropdown/index.d.ts +14 -14
  392. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  393. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  394. package/lib/components/dropdown/src/dropdown.vue.d.ts +12 -12
  395. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  396. package/lib/components/form/index.d.ts +12 -12
  397. package/lib/components/form/src/form-item.d.ts +1 -1
  398. package/lib/components/form/src/form-item.vue.d.ts +5 -5
  399. package/lib/components/image/index.d.ts +1 -1
  400. package/lib/components/image/src/image.vue.d.ts +1 -1
  401. package/lib/components/index.js +4 -4
  402. package/lib/components/input/index.d.ts +12 -12
  403. package/lib/components/input/index.js +2 -2
  404. package/lib/components/input/src/input.js +452 -109
  405. package/lib/components/input/src/input.js.map +1 -1
  406. package/lib/components/input/src/input.vue.d.ts +12 -12
  407. package/lib/components/input/src/input2.js +109 -452
  408. package/lib/components/input/src/input2.js.map +1 -1
  409. package/lib/components/input-number/index.d.ts +45 -45
  410. package/lib/components/input-number/src/input-number.vue.d.ts +45 -45
  411. package/lib/components/menu/index.d.ts +3 -3
  412. package/lib/components/menu/src/menu.d.ts +4 -4
  413. package/lib/components/message/src/message.d.ts +1 -1
  414. package/lib/components/message/src/message.vue.d.ts +4 -4
  415. package/lib/components/notification/src/notification.d.ts +1 -1
  416. package/lib/components/notification/src/notification.vue.d.ts +4 -4
  417. package/lib/components/pagination/src/components/jumper.vue.d.ts +12 -12
  418. package/lib/components/pagination/src/components/sizes.vue.d.ts +26 -26
  419. package/lib/components/popconfirm/index.d.ts +23 -23
  420. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
  421. package/lib/components/popover/index.d.ts +18 -18
  422. package/lib/components/popover/src/popover.vue.d.ts +18 -18
  423. package/lib/components/popper/src/content.vue.d.ts +6 -6
  424. package/lib/components/radio/index.js +2 -2
  425. package/lib/components/radio/src/radio-button.js +66 -9
  426. package/lib/components/radio/src/radio-button.js.map +1 -1
  427. package/lib/components/radio/src/radio-button2.js +9 -66
  428. package/lib/components/radio/src/radio-button2.js.map +1 -1
  429. package/lib/components/result/index.d.ts +4 -4
  430. package/lib/components/result/src/result.d.ts +1 -1
  431. package/lib/components/result/src/result.vue.d.ts +4 -4
  432. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  433. package/lib/components/select/index.d.ts +26 -26
  434. package/lib/components/select/src/select.vue.d.ts +26 -26
  435. package/lib/components/select/src/useSelect.d.ts +24 -24
  436. package/lib/components/select-v2/index.d.ts +30 -30
  437. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  438. package/lib/components/select-v2/src/select.vue.d.ts +15 -15
  439. package/lib/components/select-v2/src/useSelect.d.ts +13 -13
  440. package/lib/components/slider/index.d.ts +75 -75
  441. package/lib/components/slider/src/button.vue.d.ts +6 -6
  442. package/lib/components/slider/src/composables/use-slide.d.ts +24 -24
  443. package/lib/components/slider/src/slider.vue.d.ts +75 -75
  444. package/lib/components/steps/index.d.ts +16 -16
  445. package/lib/components/steps/src/item.d.ts +1 -1
  446. package/lib/components/steps/src/item.vue.d.ts +4 -4
  447. package/lib/components/steps/src/steps.d.ts +2 -2
  448. package/lib/components/steps/src/steps.vue.d.ts +8 -8
  449. package/lib/components/table/index.d.ts +1 -1
  450. package/lib/components/table/src/filter-panel.vue.d.ts +12 -12
  451. package/lib/components/table/src/table.vue.d.ts +1 -1
  452. package/lib/components/tag/index.d.ts +1 -1
  453. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  454. package/lib/components/time-picker/src/common/picker.vue.d.ts +34 -34
  455. package/lib/components/time-select/index.d.ts +110 -110
  456. package/lib/components/time-select/src/time-select.vue.d.ts +55 -55
  457. package/lib/components/tooltip/index.d.ts +6 -6
  458. package/lib/components/tooltip/src/content.vue.d.ts +6 -6
  459. package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -6
  460. package/lib/components/tooltip-v2/index.d.ts +4 -4
  461. package/lib/components/tooltip-v2/index.js +1 -1
  462. package/lib/components/tooltip-v2/src/arrow.js +23 -37
  463. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  464. package/lib/components/tooltip-v2/src/arrow2.js +37 -23
  465. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  466. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  467. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
  468. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  469. package/lib/components/transfer/index.d.ts +65 -65
  470. package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  471. package/lib/components/transfer/src/transfer.vue.d.ts +65 -65
  472. package/lib/components/tree-v2/index.d.ts +1 -1
  473. package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  474. package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
  475. package/lib/components/upload/index.d.ts +5 -5
  476. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  477. package/lib/components/upload/src/upload.vue.d.ts +5 -5
  478. package/lib/components/watermark/index.js +2 -2
  479. package/lib/components/watermark/src/watermark.js +209 -28
  480. package/lib/components/watermark/src/watermark.js.map +1 -1
  481. package/lib/components/watermark/src/watermark2.js +28 -209
  482. package/lib/components/watermark/src/watermark2.js.map +1 -1
  483. package/lib/index.js +4 -4
  484. package/lib/version.d.ts +1 -1
  485. package/lib/version.js +1 -1
  486. package/lib/version.js.map +1 -1
  487. package/package.json +1 -1
  488. package/web-types.json +1 -1
@@ -134,17 +134,17 @@ declare const _default: import("vue").DefineComponent<{
134
134
  onChange?: ((value: string) => any) | undefined;
135
135
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
136
136
  onInput?: ((value: string) => any) | undefined;
137
- onBlur?: ((evt: FocusEvent) => any) | undefined;
138
137
  onFocus?: ((evt: FocusEvent) => any) | undefined;
138
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
139
139
  onClear?: (() => any) | undefined;
140
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
140
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
141
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
142
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
141
143
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
142
144
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
143
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
144
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
145
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
145
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
146
146
  }>>;
147
- emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "clear") => void);
147
+ emit: ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "clear") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void);
148
148
  rawAttrs: {
149
149
  [x: string]: unknown;
150
150
  };
@@ -209,7 +209,7 @@ declare const _default: import("vue").DefineComponent<{
209
209
  handleFocus: (event: FocusEvent) => void;
210
210
  handleBlur: (event: FocusEvent) => void;
211
211
  needStatusIcon: import("vue").ComputedRef<boolean>;
212
- validateState: import("vue").ComputedRef<"" | "error" | "success" | "validating">;
212
+ validateState: import("vue").ComputedRef<"" | "success" | "error" | "validating">;
213
213
  validateIcon: import("vue").ComputedRef<any>;
214
214
  passwordIcon: import("vue").ComputedRef<any>;
215
215
  containerStyle: import("vue").ComputedRef<StyleValue>;
@@ -387,15 +387,15 @@ declare const _default: import("vue").DefineComponent<{
387
387
  onChange?: ((value: string) => any) | undefined;
388
388
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
389
389
  onInput?: ((value: string) => any) | undefined;
390
- onBlur?: ((evt: FocusEvent) => any) | undefined;
391
390
  onFocus?: ((evt: FocusEvent) => any) | undefined;
391
+ onBlur?: ((evt: FocusEvent) => any) | undefined;
392
392
  onClear?: (() => any) | undefined;
393
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
393
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
394
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
395
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
394
396
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
395
397
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
396
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
397
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
398
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
398
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
399
399
  }, {
400
400
  readonly type: string;
401
401
  readonly modelValue: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
@@ -1,461 +1,117 @@
1
- import { defineComponent, useAttrs, useSlots, computed, shallowRef, ref, nextTick, watch, onMounted, toRef, withDirectives, openBlock, createElementBlock, mergeProps, unref, createCommentVNode, Fragment, normalizeClass, renderSlot, createElementVNode, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow } 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';
1
+ import { isString } from '@vue/shared';
7
2
  import '../../../utils/index.mjs';
8
- import '../../../hooks/index.mjs';
9
3
  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';
4
+ 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';
22
9
  import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
23
- import { isKorean } from '../../../utils/i18n.mjs';
24
10
 
25
- const _hoisted_1 = ["role"];
26
- const _hoisted_2 = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus"];
27
- const _hoisted_3 = ["id", "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
- },
62
- rawAttrs.class
63
- ]);
64
- const wrapperKls = computed(() => [
65
- nsInput.e("wrapper"),
66
- nsInput.is("focus", isFocused.value)
67
- ]);
68
- const attrs = useAttrs$1({
69
- excludeKeys: computed(() => {
70
- return Object.keys(containerAttrs.value);
71
- })
72
- });
73
- const { form, formItem } = useFormItem();
74
- const { inputId } = useFormItemInputId(props, {
75
- formItemContext: formItem
76
- });
77
- const inputSize = useFormSize();
78
- const inputDisabled = useFormDisabled();
79
- const nsInput = useNamespace("input");
80
- const nsTextarea = useNamespace("textarea");
81
- const input = shallowRef();
82
- const textarea = shallowRef();
83
- const hovering = ref(false);
84
- const isComposing = ref(false);
85
- const passwordVisible = ref(false);
86
- const countStyle = ref();
87
- const textareaCalcStyle = shallowRef(props.inputStyle);
88
- const _ref = computed(() => input.value || textarea.value);
89
- const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(_ref, {
90
- afterBlur() {
91
- var _a;
92
- if (props.validateEvent) {
93
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn(err));
94
- }
95
- }
96
- });
97
- const needStatusIcon = computed(() => {
98
- var _a;
99
- return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
100
- });
101
- const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
102
- const validateIcon = computed(() => validateState.value && ValidateComponentsMap[validateState.value]);
103
- const passwordIcon = computed(() => passwordVisible.value ? View : Hide);
104
- const containerStyle = computed(() => [
105
- rawAttrs.style,
106
- props.inputStyle
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 && !!attrs.value.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(attrs.value.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 = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "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 withDirectives((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
- type: _ctx.showPassword ? passwordVisible.value ? "text" : "password" : _ctx.type,
328
- disabled: unref(inputDisabled),
329
- formatter: _ctx.formatter,
330
- parser: _ctx.parser,
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: props.form,
338
- autofocus: props.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(unref(attrs).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
- tabindex: _ctx.tabindex,
429
- disabled: unref(inputDisabled),
430
- readonly: _ctx.readonly,
431
- autocomplete: _ctx.autocomplete,
432
- style: unref(textareaStyle),
433
- "aria-label": _ctx.label,
434
- placeholder: _ctx.placeholder,
435
- form: props.form,
436
- autofocus: props.autofocus,
437
- onCompositionstart: handleCompositionStart,
438
- onCompositionupdate: handleCompositionUpdate,
439
- onCompositionend: handleCompositionEnd,
440
- onInput: handleInput,
441
- onFocus: _cache[2] || (_cache[2] = (...args) => unref(handleFocus) && unref(handleFocus)(...args)),
442
- onBlur: _cache[3] || (_cache[3] = (...args) => unref(handleBlur) && unref(handleBlur)(...args)),
443
- onChange: handleChange,
444
- onKeydown: handleKeydown
445
- }), null, 16, _hoisted_3),
446
- unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
447
- key: 0,
448
- style: normalizeStyle(countStyle.value),
449
- class: normalizeClass(unref(nsInput).e("count"))
450
- }, toDisplayString(unref(textLength)) + " / " + toDisplayString(unref(attrs).maxlength), 7)) : createCommentVNode("v-if", true)
451
- ], 64))
452
- ], 16, _hoisted_1)), [
453
- [vShow, _ctx.type !== "hidden"]
454
- ]);
455
- };
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
+ type: {
27
+ type: String,
28
+ default: "text"
29
+ },
30
+ resize: {
31
+ type: String,
32
+ values: ["none", "both", "horizontal", "vertical"]
33
+ },
34
+ autosize: {
35
+ type: definePropType([Boolean, Object]),
36
+ default: false
37
+ },
38
+ autocomplete: {
39
+ type: String,
40
+ default: "off"
41
+ },
42
+ formatter: {
43
+ type: Function
44
+ },
45
+ parser: {
46
+ type: Function
47
+ },
48
+ placeholder: {
49
+ type: String
50
+ },
51
+ form: {
52
+ type: String
53
+ },
54
+ readonly: {
55
+ type: Boolean,
56
+ default: false
57
+ },
58
+ clearable: {
59
+ type: Boolean,
60
+ default: false
61
+ },
62
+ showPassword: {
63
+ type: Boolean,
64
+ default: false
65
+ },
66
+ showWordLimit: {
67
+ type: Boolean,
68
+ default: false
69
+ },
70
+ suffixIcon: {
71
+ type: iconPropType
72
+ },
73
+ prefixIcon: {
74
+ type: iconPropType
75
+ },
76
+ containerRole: {
77
+ type: String,
78
+ default: void 0
79
+ },
80
+ label: {
81
+ type: String,
82
+ default: void 0
83
+ },
84
+ tabindex: {
85
+ type: [String, Number],
86
+ default: 0
87
+ },
88
+ validateEvent: {
89
+ type: Boolean,
90
+ default: true
91
+ },
92
+ inputStyle: {
93
+ type: definePropType([Object, Array, String]),
94
+ default: () => mutable({})
95
+ },
96
+ autofocus: {
97
+ type: Boolean,
98
+ default: false
456
99
  }
457
100
  });
458
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);
101
+ const inputEmits = {
102
+ [UPDATE_MODEL_EVENT]: (value) => isString(value),
103
+ input: (value) => isString(value),
104
+ change: (value) => isString(value),
105
+ focus: (evt) => evt instanceof FocusEvent,
106
+ blur: (evt) => evt instanceof FocusEvent,
107
+ clear: () => true,
108
+ mouseleave: (evt) => evt instanceof MouseEvent,
109
+ mouseenter: (evt) => evt instanceof MouseEvent,
110
+ keydown: (evt) => evt instanceof Event,
111
+ compositionstart: (evt) => evt instanceof CompositionEvent,
112
+ compositionupdate: (evt) => evt instanceof CompositionEvent,
113
+ compositionend: (evt) => evt instanceof CompositionEvent
114
+ };
459
115
 
460
- export { Input as default };
116
+ export { inputEmits, inputProps };
461
117
  //# sourceMappingURL=input2.mjs.map