@element-plus/nightly 0.0.20260103 → 0.0.20260104

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 (614) hide show
  1. package/dist/index.full.js +3 -3
  2. package/dist/index.full.min.js +3 -3
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +3 -3
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +3 -3
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/autocomplete/index.mjs +2 -2
  276. package/es/components/autocomplete/src/autocomplete.mjs +485 -59
  277. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  278. package/es/components/autocomplete/src/autocomplete2.mjs +59 -485
  279. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  280. package/es/components/avatar/index.mjs +2 -2
  281. package/es/components/avatar/src/avatar.mjs +30 -74
  282. package/es/components/avatar/src/avatar.mjs.map +1 -1
  283. package/es/components/avatar/src/avatar2.mjs +74 -30
  284. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  285. package/es/components/breadcrumb/index.mjs +2 -2
  286. package/es/components/breadcrumb/src/breadcrumb.mjs +37 -9
  287. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  288. package/es/components/breadcrumb/src/breadcrumb2.mjs +9 -37
  289. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  290. package/es/components/calendar/index.mjs +2 -2
  291. package/es/components/calendar/src/calendar.mjs +196 -23
  292. package/es/components/calendar/src/calendar.mjs.map +1 -1
  293. package/es/components/calendar/src/calendar2.mjs +23 -196
  294. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  295. package/es/components/carousel/index.mjs +2 -2
  296. package/es/components/carousel/src/carousel-item.mjs +79 -7
  297. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  298. package/es/components/carousel/src/carousel-item2.mjs +7 -79
  299. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  300. package/es/components/cascader/index.mjs +2 -2
  301. package/es/components/cascader/src/cascader.mjs +843 -103
  302. package/es/components/cascader/src/cascader.mjs.map +1 -1
  303. package/es/components/cascader/src/cascader2.mjs +103 -843
  304. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  305. package/es/components/cascader-panel/src/index.mjs +1 -1
  306. package/es/components/cascader-panel/src/menu.mjs +1 -1
  307. package/es/components/cascader-panel/src/node.mjs +116 -192
  308. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  309. package/es/components/cascader-panel/src/node2.mjs +192 -116
  310. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  311. package/es/components/cascader-panel/src/store.mjs +1 -1
  312. package/es/components/checkbox/index.mjs +2 -2
  313. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  314. package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
  315. package/es/components/checkbox/src/checkbox.mjs +62 -134
  316. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  317. package/es/components/checkbox/src/checkbox2.mjs +134 -62
  318. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  319. package/es/components/collapse/index.mjs +4 -4
  320. package/es/components/collapse/src/collapse-item.mjs +118 -17
  321. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  322. package/es/components/collapse/src/collapse-item2.mjs +17 -118
  323. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  324. package/es/components/collapse/src/collapse.mjs +33 -24
  325. package/es/components/collapse/src/collapse.mjs.map +1 -1
  326. package/es/components/collapse/src/collapse2.mjs +24 -33
  327. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  328. package/es/components/collection/index.mjs +1 -1
  329. package/es/components/collection/src/collection.mjs +64 -10
  330. package/es/components/collection/src/collection.mjs.map +1 -1
  331. package/es/components/collection/src/collection2.mjs +10 -64
  332. package/es/components/collection/src/collection2.mjs.map +1 -1
  333. package/es/components/descriptions/src/description2.mjs +1 -1
  334. package/es/components/descriptions/src/descriptions-row.mjs +6 -94
  335. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  336. package/es/components/descriptions/src/descriptions-row2.mjs +94 -6
  337. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  338. package/es/components/dialog/src/dialog-content.mjs +112 -38
  339. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  340. package/es/components/dialog/src/dialog-content2.mjs +38 -112
  341. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  342. package/es/components/dialog/src/dialog.mjs +1 -1
  343. package/es/components/dialog/src/dialog2.mjs +1 -1
  344. package/es/components/divider/index.mjs +2 -2
  345. package/es/components/divider/src/divider.mjs +15 -43
  346. package/es/components/divider/src/divider.mjs.map +1 -1
  347. package/es/components/divider/src/divider2.mjs +43 -15
  348. package/es/components/divider/src/divider2.mjs.map +1 -1
  349. package/es/components/drawer/index.mjs +2 -2
  350. package/es/components/drawer/src/drawer.mjs +31 -225
  351. package/es/components/drawer/src/drawer.mjs.map +1 -1
  352. package/es/components/drawer/src/drawer2.mjs +225 -31
  353. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  354. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  355. package/es/components/empty/index.mjs +2 -2
  356. package/es/components/empty/src/empty.mjs +10 -80
  357. package/es/components/empty/src/empty.mjs.map +1 -1
  358. package/es/components/empty/src/empty2.mjs +80 -10
  359. package/es/components/empty/src/empty2.mjs.map +1 -1
  360. package/es/components/form/index.mjs +2 -2
  361. package/es/components/form/src/form.mjs +54 -174
  362. package/es/components/form/src/form.mjs.map +1 -1
  363. package/es/components/form/src/form2.mjs +174 -54
  364. package/es/components/form/src/form2.mjs.map +1 -1
  365. package/es/components/image/index.mjs +2 -2
  366. package/es/components/image/src/image.mjs +68 -279
  367. package/es/components/image/src/image.mjs.map +1 -1
  368. package/es/components/image/src/image2.mjs +279 -68
  369. package/es/components/image/src/image2.mjs.map +1 -1
  370. package/es/components/image-viewer/index.mjs +2 -2
  371. package/es/components/image-viewer/src/image-viewer.mjs +557 -50
  372. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  373. package/es/components/image-viewer/src/image-viewer2.mjs +50 -557
  374. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  375. package/es/components/index.mjs +24 -24
  376. package/es/components/input-tag/index.mjs +2 -2
  377. package/es/components/input-tag/src/input-tag.mjs +82 -344
  378. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  379. package/es/components/input-tag/src/input-tag2.mjs +344 -82
  380. package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
  381. package/es/components/menu/index.mjs +2 -2
  382. package/es/components/menu/src/menu-item-group.mjs +51 -4
  383. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  384. package/es/components/menu/src/menu-item-group2.mjs +4 -51
  385. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  386. package/es/components/message/index.mjs +1 -1
  387. package/es/components/message/src/message.mjs +107 -190
  388. package/es/components/message/src/message.mjs.map +1 -1
  389. package/es/components/message/src/message2.mjs +190 -107
  390. package/es/components/message/src/message2.mjs.map +1 -1
  391. package/es/components/message/src/method.mjs +2 -2
  392. package/es/components/pagination/src/components/jumper.mjs +7 -69
  393. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  394. package/es/components/pagination/src/components/jumper2.mjs +69 -7
  395. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  396. package/es/components/pagination/src/components/next.mjs +17 -43
  397. package/es/components/pagination/src/components/next.mjs.map +1 -1
  398. package/es/components/pagination/src/components/next2.mjs +43 -17
  399. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  400. package/es/components/pagination/src/pagination.mjs +2 -2
  401. package/es/components/progress/index.mjs +2 -2
  402. package/es/components/progress/src/progress.mjs +52 -256
  403. package/es/components/progress/src/progress.mjs.map +1 -1
  404. package/es/components/progress/src/progress2.mjs +256 -52
  405. package/es/components/progress/src/progress2.mjs.map +1 -1
  406. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  407. package/es/components/segmented/index.mjs +2 -2
  408. package/es/components/segmented/src/segmented.mjs +209 -44
  409. package/es/components/segmented/src/segmented.mjs.map +1 -1
  410. package/es/components/segmented/src/segmented2.mjs +44 -209
  411. package/es/components/segmented/src/segmented2.mjs.map +1 -1
  412. package/es/components/text/index.mjs +2 -2
  413. package/es/components/text/src/text.mjs +66 -20
  414. package/es/components/text/src/text.mjs.map +1 -1
  415. package/es/components/text/src/text2.mjs +20 -66
  416. package/es/components/text/src/text2.mjs.map +1 -1
  417. package/es/components/tour/index.mjs +1 -1
  418. package/es/components/tour/src/content.mjs +42 -85
  419. package/es/components/tour/src/content.mjs.map +1 -1
  420. package/es/components/tour/src/content2.mjs +85 -42
  421. package/es/components/tour/src/content2.mjs.map +1 -1
  422. package/es/components/tour/src/step.mjs +1 -1
  423. package/es/components/tour/src/tour.mjs +1 -1
  424. package/es/components/tour/src/tour2.mjs +1 -1
  425. package/es/components/upload/index.mjs +3 -3
  426. package/es/components/upload/src/upload-content.mjs +1 -1
  427. package/es/components/upload/src/upload-content2.mjs +2 -2
  428. package/es/components/upload/src/upload-dragger.mjs +69 -10
  429. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  430. package/es/components/upload/src/upload-dragger2.mjs +10 -69
  431. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  432. package/es/components/upload/src/upload-list.mjs +1 -1
  433. package/es/components/upload/src/upload.mjs +101 -138
  434. package/es/components/upload/src/upload.mjs.map +1 -1
  435. package/es/components/upload/src/upload2.mjs +138 -101
  436. package/es/components/upload/src/upload2.mjs.map +1 -1
  437. package/es/components/upload/src/use-handlers.mjs +1 -1
  438. package/es/components/virtual-list/src/hooks/use-wheel.mjs +1 -1
  439. package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
  440. package/es/index.mjs +24 -24
  441. package/es/version.d.ts +1 -1
  442. package/es/version.mjs +1 -1
  443. package/es/version.mjs.map +1 -1
  444. package/lib/components/autocomplete/index.js +2 -2
  445. package/lib/components/autocomplete/src/autocomplete.js +483 -58
  446. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  447. package/lib/components/autocomplete/src/autocomplete2.js +58 -483
  448. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  449. package/lib/components/avatar/index.js +2 -2
  450. package/lib/components/avatar/src/avatar.js +31 -74
  451. package/lib/components/avatar/src/avatar.js.map +1 -1
  452. package/lib/components/avatar/src/avatar2.js +74 -31
  453. package/lib/components/avatar/src/avatar2.js.map +1 -1
  454. package/lib/components/breadcrumb/index.js +2 -2
  455. package/lib/components/breadcrumb/src/breadcrumb.js +37 -9
  456. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  457. package/lib/components/breadcrumb/src/breadcrumb2.js +9 -37
  458. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  459. package/lib/components/calendar/index.js +2 -2
  460. package/lib/components/calendar/src/calendar.js +196 -24
  461. package/lib/components/calendar/src/calendar.js.map +1 -1
  462. package/lib/components/calendar/src/calendar2.js +24 -196
  463. package/lib/components/calendar/src/calendar2.js.map +1 -1
  464. package/lib/components/carousel/index.js +2 -2
  465. package/lib/components/carousel/src/carousel-item.js +79 -7
  466. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  467. package/lib/components/carousel/src/carousel-item2.js +7 -79
  468. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  469. package/lib/components/cascader/index.js +2 -2
  470. package/lib/components/cascader/src/cascader.js +842 -103
  471. package/lib/components/cascader/src/cascader.js.map +1 -1
  472. package/lib/components/cascader/src/cascader2.js +103 -842
  473. package/lib/components/cascader/src/cascader2.js.map +1 -1
  474. package/lib/components/cascader-panel/src/index.js +1 -1
  475. package/lib/components/cascader-panel/src/menu.js +1 -1
  476. package/lib/components/cascader-panel/src/node.js +116 -192
  477. package/lib/components/cascader-panel/src/node.js.map +1 -1
  478. package/lib/components/cascader-panel/src/node2.js +192 -116
  479. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  480. package/lib/components/cascader-panel/src/store.js +1 -1
  481. package/lib/components/checkbox/index.js +2 -2
  482. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  483. package/lib/components/checkbox/src/checkbox-group2.js +1 -1
  484. package/lib/components/checkbox/src/checkbox.js +63 -134
  485. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  486. package/lib/components/checkbox/src/checkbox2.js +134 -63
  487. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  488. package/lib/components/collapse/index.js +4 -4
  489. package/lib/components/collapse/src/collapse-item.js +118 -17
  490. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  491. package/lib/components/collapse/src/collapse-item2.js +17 -118
  492. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  493. package/lib/components/collapse/src/collapse.js +33 -26
  494. package/lib/components/collapse/src/collapse.js.map +1 -1
  495. package/lib/components/collapse/src/collapse2.js +26 -33
  496. package/lib/components/collapse/src/collapse2.js.map +1 -1
  497. package/lib/components/collection/index.js +1 -1
  498. package/lib/components/collection/src/collection.js +64 -9
  499. package/lib/components/collection/src/collection.js.map +1 -1
  500. package/lib/components/collection/src/collection2.js +9 -64
  501. package/lib/components/collection/src/collection2.js.map +1 -1
  502. package/lib/components/descriptions/src/description2.js +1 -1
  503. package/lib/components/descriptions/src/descriptions-row.js +6 -94
  504. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  505. package/lib/components/descriptions/src/descriptions-row2.js +94 -6
  506. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  507. package/lib/components/dialog/src/dialog-content.js +111 -38
  508. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  509. package/lib/components/dialog/src/dialog-content2.js +38 -111
  510. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  511. package/lib/components/dialog/src/dialog.js +1 -1
  512. package/lib/components/dialog/src/dialog2.js +1 -1
  513. package/lib/components/divider/index.js +2 -2
  514. package/lib/components/divider/src/divider.js +15 -43
  515. package/lib/components/divider/src/divider.js.map +1 -1
  516. package/lib/components/divider/src/divider2.js +43 -15
  517. package/lib/components/divider/src/divider2.js.map +1 -1
  518. package/lib/components/drawer/index.js +2 -2
  519. package/lib/components/drawer/src/drawer.js +32 -225
  520. package/lib/components/drawer/src/drawer.js.map +1 -1
  521. package/lib/components/drawer/src/drawer2.js +225 -32
  522. package/lib/components/drawer/src/drawer2.js.map +1 -1
  523. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  524. package/lib/components/empty/index.js +2 -2
  525. package/lib/components/empty/src/empty.js +10 -80
  526. package/lib/components/empty/src/empty.js.map +1 -1
  527. package/lib/components/empty/src/empty2.js +80 -10
  528. package/lib/components/empty/src/empty2.js.map +1 -1
  529. package/lib/components/form/index.js +2 -2
  530. package/lib/components/form/src/form.js +55 -173
  531. package/lib/components/form/src/form.js.map +1 -1
  532. package/lib/components/form/src/form2.js +173 -55
  533. package/lib/components/form/src/form2.js.map +1 -1
  534. package/lib/components/image/index.js +2 -2
  535. package/lib/components/image/src/image.js +68 -278
  536. package/lib/components/image/src/image.js.map +1 -1
  537. package/lib/components/image/src/image2.js +278 -68
  538. package/lib/components/image/src/image2.js.map +1 -1
  539. package/lib/components/image-viewer/index.js +2 -2
  540. package/lib/components/image-viewer/src/image-viewer.js +557 -51
  541. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  542. package/lib/components/image-viewer/src/image-viewer2.js +51 -557
  543. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  544. package/lib/components/index.js +24 -24
  545. package/lib/components/input-tag/index.js +2 -2
  546. package/lib/components/input-tag/src/input-tag.js +81 -342
  547. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  548. package/lib/components/input-tag/src/input-tag2.js +342 -81
  549. package/lib/components/input-tag/src/input-tag2.js.map +1 -1
  550. package/lib/components/menu/index.js +2 -2
  551. package/lib/components/menu/src/menu-item-group.js +51 -4
  552. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  553. package/lib/components/menu/src/menu-item-group2.js +4 -51
  554. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  555. package/lib/components/message/index.js +1 -1
  556. package/lib/components/message/src/message.js +111 -189
  557. package/lib/components/message/src/message.js.map +1 -1
  558. package/lib/components/message/src/message2.js +189 -111
  559. package/lib/components/message/src/message2.js.map +1 -1
  560. package/lib/components/message/src/method.js +2 -2
  561. package/lib/components/pagination/src/components/jumper.js +7 -69
  562. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  563. package/lib/components/pagination/src/components/jumper2.js +69 -7
  564. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  565. package/lib/components/pagination/src/components/next.js +17 -43
  566. package/lib/components/pagination/src/components/next.js.map +1 -1
  567. package/lib/components/pagination/src/components/next2.js +43 -17
  568. package/lib/components/pagination/src/components/next2.js.map +1 -1
  569. package/lib/components/pagination/src/pagination.js +2 -2
  570. package/lib/components/progress/index.js +2 -2
  571. package/lib/components/progress/src/progress.js +52 -256
  572. package/lib/components/progress/src/progress.js.map +1 -1
  573. package/lib/components/progress/src/progress2.js +256 -52
  574. package/lib/components/progress/src/progress2.js.map +1 -1
  575. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  576. package/lib/components/segmented/index.js +2 -2
  577. package/lib/components/segmented/src/segmented.js +208 -45
  578. package/lib/components/segmented/src/segmented.js.map +1 -1
  579. package/lib/components/segmented/src/segmented2.js +45 -208
  580. package/lib/components/segmented/src/segmented2.js.map +1 -1
  581. package/lib/components/text/index.js +2 -2
  582. package/lib/components/text/src/text.js +66 -20
  583. package/lib/components/text/src/text.js.map +1 -1
  584. package/lib/components/text/src/text2.js +20 -66
  585. package/lib/components/text/src/text2.js.map +1 -1
  586. package/lib/components/tour/index.js +1 -1
  587. package/lib/components/tour/src/content.js +45 -85
  588. package/lib/components/tour/src/content.js.map +1 -1
  589. package/lib/components/tour/src/content2.js +85 -45
  590. package/lib/components/tour/src/content2.js.map +1 -1
  591. package/lib/components/tour/src/step.js +1 -1
  592. package/lib/components/tour/src/tour.js +1 -1
  593. package/lib/components/tour/src/tour2.js +1 -1
  594. package/lib/components/upload/index.js +3 -3
  595. package/lib/components/upload/src/upload-content.js +1 -1
  596. package/lib/components/upload/src/upload-content2.js +2 -2
  597. package/lib/components/upload/src/upload-dragger.js +69 -11
  598. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  599. package/lib/components/upload/src/upload-dragger2.js +11 -69
  600. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  601. package/lib/components/upload/src/upload-list.js +1 -1
  602. package/lib/components/upload/src/upload.js +104 -138
  603. package/lib/components/upload/src/upload.js.map +1 -1
  604. package/lib/components/upload/src/upload2.js +138 -104
  605. package/lib/components/upload/src/upload2.js.map +1 -1
  606. package/lib/components/upload/src/use-handlers.js +1 -1
  607. package/lib/components/virtual-list/src/hooks/use-wheel.js +1 -1
  608. package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
  609. package/lib/index.js +24 -24
  610. package/lib/version.d.ts +1 -1
  611. package/lib/version.js +1 -1
  612. package/lib/version.js.map +1 -1
  613. package/package.json +2 -2
  614. package/web-types.json +1 -1
@@ -1,349 +1,87 @@
1
- import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, createVNode, withDirectives, mergeProps, isRef, vModelText, vShow, resolveDynamicComponent } from 'vue';
2
- import { ElTooltip } from '../../tooltip/index.mjs';
3
- import { ElIcon } from '../../icon/index.mjs';
4
- import { ElTag } from '../../tag/index.mjs';
5
- import { inputTagProps, inputTagEmits } from './input-tag2.mjs';
6
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useInputTag } from './composables/use-input-tag.mjs';
8
- import { useHovering } from './composables/use-hovering.mjs';
9
- import { useDragTag } from './composables/use-drag-tag.mjs';
10
- import { useInputTagDom } from './composables/use-input-tag-dom.mjs';
11
- import { useAttrs } from '../../../hooks/use-attrs/index.mjs';
12
- import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
13
- import { ValidateComponentsMap } from '../../../utils/vue/icon.mjs';
14
- import { useCalcInputWidth } from '../../../hooks/use-calc-input-width/index.mjs';
15
- import { NOOP } from '@vue/shared';
1
+ import { tagProps } from '../../tag/src/tag.mjs';
2
+ import { CircleClose } from '@element-plus/icons-vue';
3
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
+ import { EVENT_CODE } from '../../../constants/aria.mjs';
5
+ import { useSizeProp } from '../../../hooks/use-size/index.mjs';
6
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
7
+ import { UPDATE_MODEL_EVENT, CHANGE_EVENT, INPUT_EVENT } from '../../../constants/event.mjs';
8
+ import { isArray, isString } from '@vue/shared';
9
+ import { isUndefined, isNumber } from '../../../utils/types.mjs';
16
10
 
17
- const _hoisted_1 = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplete", "tabindex", "placeholder", "autofocus", "ariaLabel"];
18
- const _hoisted_2 = ["textContent"];
19
- const _sfc_main = defineComponent({
20
- ...{
21
- name: "ElInputTag",
22
- inheritAttrs: false
11
+ const inputTagProps = buildProps({
12
+ modelValue: {
13
+ type: definePropType(Array)
23
14
  },
24
- __name: "input-tag",
25
- props: inputTagProps,
26
- emits: inputTagEmits,
27
- setup(__props, { expose: __expose, emit: __emit }) {
28
- const props = __props;
29
- const emit = __emit;
30
- const attrs = useAttrs();
31
- const slots = useSlots();
32
- const { form, formItem } = useFormItem();
33
- const { inputId } = useFormItemInputId(props, { formItemContext: formItem });
34
- const needStatusIcon = computed(() => {
35
- var _a;
36
- return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
37
- });
38
- const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
39
- const validateIcon = computed(() => {
40
- return validateState.value && ValidateComponentsMap[validateState.value];
41
- });
42
- const {
43
- inputRef,
44
- wrapperRef,
45
- tagTooltipRef,
46
- isFocused,
47
- inputValue,
48
- size,
49
- tagSize,
50
- placeholder,
51
- closable,
52
- disabled,
53
- showTagList,
54
- collapseTagList,
55
- handleDragged,
56
- handleInput,
57
- handleKeydown,
58
- handleKeyup,
59
- handleRemoveTag,
60
- handleClear,
61
- handleCompositionStart,
62
- handleCompositionUpdate,
63
- handleCompositionEnd,
64
- focus,
65
- blur
66
- } = useInputTag({ props, emit, formItem });
67
- const { hovering, handleMouseEnter, handleMouseLeave } = useHovering();
68
- const { calculatorRef, inputStyle } = useCalcInputWidth();
69
- const {
70
- dropIndicatorRef,
71
- showDropIndicator,
72
- handleDragStart,
73
- handleDragOver,
74
- handleDragEnd
75
- } = useDragTag({ wrapperRef, handleDragged, afterDragged: focus });
76
- const {
77
- ns,
78
- nsInput,
79
- containerKls,
80
- containerStyle,
81
- innerKls,
82
- showClear,
83
- showSuffix,
84
- tagStyle,
85
- collapseItemRef,
86
- innerRef
87
- } = useInputTagDom({
88
- props,
89
- hovering,
90
- isFocused,
91
- inputValue,
92
- disabled,
93
- size,
94
- validateState,
95
- validateIcon,
96
- needStatusIcon
97
- });
98
- __expose({
99
- focus,
100
- blur
101
- });
102
- return (_ctx, _cache) => {
103
- return openBlock(), createElementBlock(
104
- "div",
105
- {
106
- ref_key: "wrapperRef",
107
- ref: wrapperRef,
108
- class: normalizeClass(unref(containerKls)),
109
- style: normalizeStyle(unref(containerStyle)),
110
- onMouseenter: _cache[8] || (_cache[8] = (...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args)),
111
- onMouseleave: _cache[9] || (_cache[9] = (...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args))
112
- },
113
- [
114
- unref(slots).prefix ? (openBlock(), createElementBlock(
115
- "div",
116
- {
117
- key: 0,
118
- class: normalizeClass(unref(ns).e("prefix"))
119
- },
120
- [
121
- renderSlot(_ctx.$slots, "prefix")
122
- ],
123
- 2
124
- )) : createCommentVNode("v-if", true),
125
- createElementVNode(
126
- "div",
127
- {
128
- ref_key: "innerRef",
129
- ref: innerRef,
130
- class: normalizeClass(unref(innerKls))
131
- },
132
- [
133
- (openBlock(true), createElementBlock(
134
- Fragment,
135
- null,
136
- renderList(unref(showTagList), (item, index) => {
137
- return openBlock(), createBlock(unref(ElTag), {
138
- key: index,
139
- size: unref(tagSize),
140
- closable: unref(closable),
141
- type: _ctx.tagType,
142
- effect: _ctx.tagEffect,
143
- draggable: unref(closable) && _ctx.draggable,
144
- style: normalizeStyle(unref(tagStyle)),
145
- "disable-transitions": "",
146
- onClose: ($event) => unref(handleRemoveTag)(index),
147
- onDragstart: (event) => unref(handleDragStart)(event, index),
148
- onDragover: (event) => unref(handleDragOver)(event, index),
149
- onDragend: unref(handleDragEnd),
150
- onDrop: _cache[0] || (_cache[0] = withModifiers(() => {
151
- }, ["stop"]))
152
- }, {
153
- default: withCtx(() => [
154
- renderSlot(_ctx.$slots, "tag", {
155
- value: item,
156
- index
157
- }, () => [
158
- createTextVNode(
159
- toDisplayString(item),
160
- 1
161
- )
162
- ])
163
- ]),
164
- _: 2
165
- }, 1032, ["size", "closable", "type", "effect", "draggable", "style", "onClose", "onDragstart", "onDragover", "onDragend"]);
166
- }),
167
- 128
168
- )),
169
- _ctx.collapseTags && _ctx.modelValue && _ctx.modelValue.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(unref(ElTooltip), {
170
- key: 0,
171
- ref_key: "tagTooltipRef",
172
- ref: tagTooltipRef,
173
- disabled: !_ctx.collapseTagsTooltip,
174
- "fallback-placements": ["bottom", "top", "right", "left"],
175
- effect: _ctx.tagEffect,
176
- placement: "bottom"
177
- }, {
178
- default: withCtx(() => [
179
- createElementVNode(
180
- "div",
181
- {
182
- ref_key: "collapseItemRef",
183
- ref: collapseItemRef
184
- },
185
- [
186
- createVNode(unref(ElTag), {
187
- closable: false,
188
- size: unref(tagSize),
189
- type: _ctx.tagType,
190
- effect: _ctx.tagEffect,
191
- "disable-transitions": ""
192
- }, {
193
- default: withCtx(() => [
194
- createTextVNode(
195
- " + " + toDisplayString(_ctx.modelValue.length - _ctx.maxCollapseTags),
196
- 1
197
- )
198
- ]),
199
- _: 1
200
- }, 8, ["size", "type", "effect"])
201
- ],
202
- 512
203
- )
204
- ]),
205
- content: withCtx(() => [
206
- createElementVNode(
207
- "div",
208
- {
209
- class: normalizeClass(unref(ns).e("input-tag-list"))
210
- },
211
- [
212
- (openBlock(true), createElementBlock(
213
- Fragment,
214
- null,
215
- renderList(unref(collapseTagList), (item, index) => {
216
- return openBlock(), createBlock(unref(ElTag), {
217
- key: index,
218
- size: unref(tagSize),
219
- closable: unref(closable),
220
- type: _ctx.tagType,
221
- effect: _ctx.tagEffect,
222
- "disable-transitions": "",
223
- onClose: ($event) => unref(handleRemoveTag)(index + _ctx.maxCollapseTags)
224
- }, {
225
- default: withCtx(() => [
226
- renderSlot(_ctx.$slots, "tag", {
227
- value: item,
228
- index: index + _ctx.maxCollapseTags
229
- }, () => [
230
- createTextVNode(
231
- toDisplayString(item),
232
- 1
233
- )
234
- ])
235
- ]),
236
- _: 2
237
- }, 1032, ["size", "closable", "type", "effect", "onClose"]);
238
- }),
239
- 128
240
- ))
241
- ],
242
- 2
243
- )
244
- ]),
245
- _: 3
246
- }, 8, ["disabled", "effect"])) : createCommentVNode("v-if", true),
247
- createElementVNode(
248
- "div",
249
- {
250
- class: normalizeClass(unref(ns).e("input-wrapper"))
251
- },
252
- [
253
- withDirectives(createElementVNode("input", mergeProps({
254
- id: unref(inputId),
255
- ref_key: "inputRef",
256
- ref: inputRef,
257
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(inputValue) ? inputValue.value = $event : null)
258
- }, unref(attrs), {
259
- type: "text",
260
- minlength: _ctx.minlength,
261
- maxlength: _ctx.maxlength,
262
- disabled: unref(disabled),
263
- readonly: _ctx.readonly,
264
- autocomplete: _ctx.autocomplete,
265
- tabindex: _ctx.tabindex,
266
- placeholder: unref(placeholder),
267
- autofocus: _ctx.autofocus,
268
- ariaLabel: _ctx.ariaLabel,
269
- class: unref(ns).e("input"),
270
- style: unref(inputStyle),
271
- onCompositionstart: _cache[2] || (_cache[2] = (...args) => unref(handleCompositionStart) && unref(handleCompositionStart)(...args)),
272
- onCompositionupdate: _cache[3] || (_cache[3] = (...args) => unref(handleCompositionUpdate) && unref(handleCompositionUpdate)(...args)),
273
- onCompositionend: _cache[4] || (_cache[4] = (...args) => unref(handleCompositionEnd) && unref(handleCompositionEnd)(...args)),
274
- onInput: _cache[5] || (_cache[5] = (...args) => unref(handleInput) && unref(handleInput)(...args)),
275
- onKeydown: _cache[6] || (_cache[6] = (...args) => unref(handleKeydown) && unref(handleKeydown)(...args)),
276
- onKeyup: _cache[7] || (_cache[7] = (...args) => unref(handleKeyup) && unref(handleKeyup)(...args))
277
- }), null, 16, _hoisted_1), [
278
- [vModelText, unref(inputValue)]
279
- ]),
280
- createElementVNode("span", {
281
- ref_key: "calculatorRef",
282
- ref: calculatorRef,
283
- "aria-hidden": "true",
284
- class: normalizeClass(unref(ns).e("input-calculator")),
285
- textContent: toDisplayString(unref(inputValue))
286
- }, null, 10, _hoisted_2)
287
- ],
288
- 2
289
- ),
290
- withDirectives(createElementVNode(
291
- "div",
292
- {
293
- ref_key: "dropIndicatorRef",
294
- ref: dropIndicatorRef,
295
- class: normalizeClass(unref(ns).e("drop-indicator"))
296
- },
297
- null,
298
- 2
299
- ), [
300
- [vShow, unref(showDropIndicator)]
301
- ])
302
- ],
303
- 2
304
- ),
305
- unref(showSuffix) ? (openBlock(), createElementBlock(
306
- "div",
307
- {
308
- key: 1,
309
- class: normalizeClass(unref(ns).e("suffix"))
310
- },
311
- [
312
- renderSlot(_ctx.$slots, "suffix"),
313
- unref(showClear) ? (openBlock(), createBlock(unref(ElIcon), {
314
- key: 0,
315
- class: normalizeClass([unref(ns).e("icon"), unref(ns).e("clear")]),
316
- onMousedown: withModifiers(unref(NOOP), ["prevent"]),
317
- onClick: unref(handleClear)
318
- }, {
319
- default: withCtx(() => [
320
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
321
- ]),
322
- _: 1
323
- }, 8, ["class", "onMousedown", "onClick"])) : createCommentVNode("v-if", true),
324
- validateState.value && validateIcon.value && needStatusIcon.value ? (openBlock(), createBlock(unref(ElIcon), {
325
- key: 1,
326
- class: normalizeClass([
327
- unref(nsInput).e("icon"),
328
- unref(nsInput).e("validateIcon"),
329
- unref(nsInput).is("loading", validateState.value === "validating")
330
- ])
331
- }, {
332
- default: withCtx(() => [
333
- (openBlock(), createBlock(resolveDynamicComponent(validateIcon.value)))
334
- ]),
335
- _: 1
336
- }, 8, ["class"])) : createCommentVNode("v-if", true)
337
- ],
338
- 2
339
- )) : createCommentVNode("v-if", true)
340
- ],
341
- 38
342
- );
343
- };
344
- }
15
+ max: Number,
16
+ tagType: { ...tagProps.type, default: "info" },
17
+ tagEffect: tagProps.effect,
18
+ trigger: {
19
+ type: definePropType(String),
20
+ default: EVENT_CODE.enter
21
+ },
22
+ draggable: Boolean,
23
+ delimiter: {
24
+ type: [String, RegExp],
25
+ default: ""
26
+ },
27
+ size: useSizeProp,
28
+ clearable: Boolean,
29
+ clearIcon: {
30
+ type: iconPropType,
31
+ default: CircleClose
32
+ },
33
+ disabled: {
34
+ type: Boolean,
35
+ default: void 0
36
+ },
37
+ validateEvent: {
38
+ type: Boolean,
39
+ default: true
40
+ },
41
+ readonly: Boolean,
42
+ autofocus: Boolean,
43
+ id: {
44
+ type: String,
45
+ default: void 0
46
+ },
47
+ tabindex: {
48
+ type: [String, Number],
49
+ default: 0
50
+ },
51
+ maxlength: {
52
+ type: [String, Number]
53
+ },
54
+ minlength: {
55
+ type: [String, Number]
56
+ },
57
+ placeholder: String,
58
+ autocomplete: {
59
+ type: definePropType(String),
60
+ default: "off"
61
+ },
62
+ saveOnBlur: {
63
+ type: Boolean,
64
+ default: true
65
+ },
66
+ collapseTags: Boolean,
67
+ collapseTagsTooltip: Boolean,
68
+ maxCollapseTags: {
69
+ type: Number,
70
+ default: 1
71
+ },
72
+ ariaLabel: String
345
73
  });
346
- var InputTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input-tag/src/input-tag.vue"]]);
74
+ const inputTagEmits = {
75
+ [UPDATE_MODEL_EVENT]: (value) => isArray(value) || isUndefined(value),
76
+ [CHANGE_EVENT]: (value) => isArray(value) || isUndefined(value),
77
+ [INPUT_EVENT]: (value) => isString(value),
78
+ "add-tag": (value) => isString(value) || isArray(value),
79
+ "remove-tag": (value, index) => isString(value) && isNumber(index),
80
+ "drag-tag": (oldIndex, newIndex, value) => isNumber(oldIndex) && isNumber(newIndex) && isString(value),
81
+ focus: (evt) => evt instanceof FocusEvent,
82
+ blur: (evt) => evt instanceof FocusEvent,
83
+ clear: () => true
84
+ };
347
85
 
348
- export { InputTag as default };
86
+ export { inputTagEmits, inputTagProps };
349
87
  //# sourceMappingURL=input-tag.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-tag.mjs","sources":["../../../../../../packages/components/input-tag/src/input-tag.vue"],"sourcesContent":["<template>\n <div\n ref=\"wrapperRef\"\n :class=\"containerKls\"\n :style=\"containerStyle\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n >\n <div v-if=\"slots.prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\" />\n </div>\n <div ref=\"innerRef\" :class=\"innerKls\">\n <el-tag\n v-for=\"(item, index) in showTagList\"\n :key=\"index\"\n :size=\"tagSize\"\n :closable=\"closable\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n :draggable=\"closable && draggable\"\n :style=\"tagStyle\"\n disable-transitions\n @close=\"handleRemoveTag(index)\"\n @dragstart=\"(event: DragEvent) => handleDragStart(event, index)\"\n @dragover=\"(event: DragEvent) => handleDragOver(event, index)\"\n @dragend=\"handleDragEnd\"\n @drop.stop\n >\n <slot name=\"tag\" :value=\"item\" :index=\"index\">\n {{ item }}\n </slot>\n </el-tag>\n <el-tooltip\n v-if=\"collapseTags && modelValue && modelValue.length > maxCollapseTags\"\n ref=\"tagTooltipRef\"\n :disabled=\"!collapseTagsTooltip\"\n :fallback-placements=\"['bottom', 'top', 'right', 'left']\"\n :effect=\"tagEffect\"\n placement=\"bottom\"\n >\n <template #default>\n <div ref=\"collapseItemRef\">\n <el-tag\n :closable=\"false\"\n :size=\"tagSize\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n disable-transitions\n >\n + {{ modelValue.length - maxCollapseTags }}\n </el-tag>\n </div>\n </template>\n <template #content>\n <div :class=\"ns.e('input-tag-list')\">\n <el-tag\n v-for=\"(item, index) in collapseTagList\"\n :key=\"index\"\n :size=\"tagSize\"\n :closable=\"closable\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n disable-transitions\n @close=\"handleRemoveTag(index + maxCollapseTags)\"\n >\n <slot name=\"tag\" :value=\"item\" :index=\"index + maxCollapseTags\">\n {{ item }}\n </slot>\n </el-tag>\n </div>\n </template>\n </el-tooltip>\n <div :class=\"ns.e('input-wrapper')\">\n <input\n :id=\"inputId\"\n ref=\"inputRef\"\n v-model=\"inputValue\"\n v-bind=\"attrs\"\n type=\"text\"\n :minlength=\"minlength\"\n :maxlength=\"maxlength\"\n :disabled=\"disabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n :placeholder=\"placeholder\"\n :autofocus=\"autofocus\"\n :ariaLabel=\"ariaLabel\"\n :class=\"ns.e('input')\"\n :style=\"inputStyle\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @keydown=\"handleKeydown\"\n @keyup=\"handleKeyup\"\n />\n <span\n ref=\"calculatorRef\"\n aria-hidden=\"true\"\n :class=\"ns.e('input-calculator')\"\n v-text=\"inputValue\"\n />\n </div>\n <div\n v-show=\"showDropIndicator\"\n ref=\"dropIndicatorRef\"\n :class=\"ns.e('drop-indicator')\"\n />\n </div>\n <div v-if=\"showSuffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\" />\n <el-icon\n v-if=\"showClear\"\n :class=\"[ns.e('icon'), ns.e('clear')]\"\n @mousedown.prevent=\"NOOP\"\n @click=\"handleClear\"\n >\n <component :is=\"clearIcon\" />\n </el-icon>\n <el-icon\n v-if=\"validateState && validateIcon && needStatusIcon\"\n :class=\"[\n nsInput.e('icon'),\n nsInput.e('validateIcon'),\n nsInput.is('loading', validateState === 'validating'),\n ]\"\n >\n <component :is=\"validateIcon\" />\n </el-icon>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { useAttrs, useCalcInputWidth } from '@element-plus/hooks'\nimport { NOOP, ValidateComponentsMap } from '@element-plus/utils'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport ElIcon from '@element-plus/components/icon'\nimport ElTag from '@element-plus/components/tag'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { inputTagEmits, inputTagProps } from './input-tag'\nimport {\n useDragTag,\n useHovering,\n useInputTag,\n useInputTagDom,\n} from './composables'\n\ndefineOptions({\n name: 'ElInputTag',\n inheritAttrs: false,\n})\n\nconst props = defineProps(inputTagProps)\nconst emit = defineEmits(inputTagEmits)\n\nconst attrs = useAttrs()\nconst slots = useSlots()\nconst { form, formItem } = useFormItem()\nconst { inputId } = useFormItemInputId(props, { formItemContext: formItem })\n\nconst needStatusIcon = computed(() => form?.statusIcon ?? false)\nconst validateState = computed(() => formItem?.validateState || '')\nconst validateIcon = computed(() => {\n return validateState.value && ValidateComponentsMap[validateState.value]\n})\n\nconst {\n inputRef,\n wrapperRef,\n tagTooltipRef,\n isFocused,\n inputValue,\n size,\n tagSize,\n placeholder,\n closable,\n disabled,\n showTagList,\n collapseTagList,\n handleDragged,\n handleInput,\n handleKeydown,\n handleKeyup,\n handleRemoveTag,\n handleClear,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\n focus,\n blur,\n} = useInputTag({ props, emit, formItem })\nconst { hovering, handleMouseEnter, handleMouseLeave } = useHovering()\nconst { calculatorRef, inputStyle } = useCalcInputWidth()\nconst {\n dropIndicatorRef,\n showDropIndicator,\n handleDragStart,\n handleDragOver,\n handleDragEnd,\n} = useDragTag({ wrapperRef, handleDragged, afterDragged: focus })\nconst {\n ns,\n nsInput,\n containerKls,\n containerStyle,\n innerKls,\n showClear,\n showSuffix,\n tagStyle,\n collapseItemRef,\n innerRef,\n} = useInputTagDom({\n props,\n hovering,\n isFocused,\n inputValue,\n disabled,\n size,\n validateState,\n validateIcon,\n needStatusIcon,\n})\n\ndefineExpose({\n focus,\n blur,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_normalizeStyle","_renderSlot","_createElementVNode","_Fragment","_renderList","_createBlock","tagType","tagEffect","draggable","_withModifiers","_createTextVNode","collapseTags","modelValue","maxCollapseTags","collapseTagsTooltip","_withCtx","_createVNode","_toDisplayString","_withDirectives","_mergeProps","_isRef","minlength","maxlength","readonly","autocomplete","tabindex","autofocus","ariaLabel","_resolveDynamicComponent","clearIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA2JA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,IAAA,MAAM,EAAE,IAAA,EAAM,QAAS,EAAA,GAAI,WAAY,EAAA,CAAA;AACjC,IAAA,MAAA,EAAE,SAAY,GAAA,kBAAA,CAAmB,OAAO,EAAE,eAAA,EAAiB,UAAU,CAAA,CAAA;AAE3E,IAAM,MAAA,cAAA,GAAiB,SAAS,MAAM;;AAAA,MAAA,OAAA,CAAA,EAAA,GAAA,IAAA,IAAA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,CAAG,CAAA,CAAA,CAAC,MAAA,CAAA,EAAUA,UAAG,CAAC,CAAA,OAAA,CAAA,CAAA,CAAA;AAAA,gBAC1B,aAASU,aAAU,CAAAV,KAAA,CAAI,IAAA,CAAA,EAAA,CAAA,SAAA,CAAA,CAAA;AAAA,gBACvB,OAAA,EAAOA,MAAA,WAAA,CAAA;AAAA,eAAA,EAAA;AAAA,iCAER,MAA6B;AAAA,mBAA7BH,WAAA,EAAAS,WAAA,CAA6BuB,uBAAbC,CAAAA,IAAAA,CAAS,SAAA,CAAA,CAAA;AAAA,iBAAA,CAAA;AAAA;;cAGnB,aAAA,CAAiB,KAAA,IAAA,YAAA,CAAA,KAAgB,IAAA,cAAA,qBADzC,EAAAxB,WAAA,CASUN,KAAA,CAAA,MAAA,CAAA,EAAA;AAAA,gBAAA,GAAA,EAAA,CAAA;AAAA,gBAPP,OAAKD,cAAA,CAAA;AAAA,kBAAcC,cAAQ,CAAA,CAAA,CAAC,MAAA,CAAA;AAAA,kBAAoBA,cAAQ,CAAA,CAAA,CAAC,cAAA,CAAA;AAAA,kBAA4BA,MAAA,OAAA,CAAA,CAAQ,GAAE,SAAY,EAAA,aAAA,CAAa,UAAA,YAAA,CAAA;AAAA,iBAAA,CAAA;AAAA;iCAMzH,MAAgC;AAAA,mBAAhCH,WAAA,EAAAS,WAAA,CAAgCuB,uBAAhB,CAAA,YAAA,CAAY,KAAA,CAAA,CAAA;AAAA,iBAAA,CAAA;AAAA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"input-tag.mjs","sources":["../../../../../../packages/components/input-tag/src/input-tag.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isArray,\n isNumber,\n isString,\n isUndefined,\n} from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { tagProps } from '@element-plus/components/tag/src/tag'\nimport { CircleClose } from '@element-plus/icons-vue'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\n\nexport const inputTagProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description max number tags that can be enter\n */\n max: Number,\n /**\n * @description tag type\n */\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: tagProps.effect,\n /**\n * @description the key to trigger input tag\n */\n trigger: {\n type: definePropType<'Enter' | 'Space'>(String),\n default: EVENT_CODE.enter,\n },\n /**\n * @description whether tags can be dragged\n */\n draggable: Boolean,\n /**\n * @description add a tag when a delimiter is matched\n */\n delimiter: {\n type: [String, RegExp],\n default: '',\n },\n /**\n * @description input box size\n */\n size: useSizeProp,\n /**\n * @description whether to show clear button\n */\n clearable: Boolean,\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description whether to disable input-tag\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description native input readonly\n */\n readonly: Boolean,\n /**\n * @description native input autofocus\n */\n autofocus: Boolean,\n /**\n * @description same as `id` in native input\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description same as `tabindex` in native input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description same as `maxlength` in native input\n */\n maxlength: {\n type: [String, Number],\n },\n /**\n * @description same as `minlength` in native input\n */\n minlength: {\n type: [String, Number],\n },\n /**\n * @description placeholder of input\n */\n placeholder: String,\n /**\n * @description native input autocomplete\n */\n autocomplete: {\n type: definePropType<HTMLInputElement['autocomplete']>(String),\n default: 'off',\n },\n /**\n * @description whether to save the input value when the input loses focus\n */\n saveOnBlur: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to collapse tags to a text\n */\n collapseTags: Boolean,\n /**\n * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n */\n collapseTagsTooltip: Boolean,\n /**\n * @description the max tags number to be shown. To use this, `collapse-tags` must be true\n */\n maxCollapseTags: {\n type: Number,\n default: 1,\n },\n /**\n * @description native `aria-label` attribute\n */\n ariaLabel: String,\n} as const)\nexport type InputTagProps = ExtractPropTypes<typeof inputTagProps>\nexport type InputTagPropsPublic = ExtractPublicPropTypes<typeof inputTagProps>\n\nexport const inputTagEmits = {\n [UPDATE_MODEL_EVENT]: (value?: string[]) =>\n isArray(value) || isUndefined(value),\n [CHANGE_EVENT]: (value?: string[]) => isArray(value) || isUndefined(value),\n [INPUT_EVENT]: (value: string) => isString(value),\n 'add-tag': (value: string | string[]) => isString(value) || isArray(value),\n 'remove-tag': (value: string, index: number) =>\n isString(value) && isNumber(index),\n 'drag-tag': (oldIndex: number, newIndex: number, value: string) =>\n isNumber(oldIndex) && isNumber(newIndex) && isString(value),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\nexport type InputTagEmits = typeof inputTagEmits\n"],"names":[],"mappings":";;;;;;;;;;AAqBO,MAAM,gBAAgB,UAAW,CAAA;AAAA,EAItC,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,eAAyB,KAAK,CAAA;AAAA,GACtC;AAAA,EAIA,GAAK,EAAA,MAAA;AAAA,EAIL,SAAS,EAAE,GAAG,QAAS,CAAA,IAAA,EAAM,SAAS,MAAO,EAAA;AAAA,EAI7C,WAAW,QAAS,CAAA,MAAA;AAAA,EAIpB,OAAS,EAAA;AAAA,IACP,IAAA,EAAM,eAAkC,MAAM,CAAA;AAAA,IAC9C,SAAS,UAAW,CAAA,KAAA;AAAA,GACtB;AAAA,EAIA,SAAW,EAAA,OAAA;AAAA,EAIX,SAAW,EAAA;AAAA,IACT,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,EAAA;AAAA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