@element-plus/nightly 0.0.20250713 → 0.0.20250714

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 (640) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.full.js +20 -12
  3. package/dist/index.full.min.js +9 -9
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +10 -10
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +20 -12
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar-eg.js +1 -1
  13. package/dist/locale/ar-eg.min.js +1 -1
  14. package/dist/locale/ar-eg.min.mjs +1 -1
  15. package/dist/locale/ar-eg.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.mjs +1 -1
  20. package/dist/locale/az.js +1 -1
  21. package/dist/locale/az.min.js +1 -1
  22. package/dist/locale/az.min.mjs +1 -1
  23. package/dist/locale/az.mjs +1 -1
  24. package/dist/locale/bg.js +1 -1
  25. package/dist/locale/bg.min.js +1 -1
  26. package/dist/locale/bg.min.mjs +1 -1
  27. package/dist/locale/bg.mjs +1 -1
  28. package/dist/locale/bn.js +1 -1
  29. package/dist/locale/bn.min.js +1 -1
  30. package/dist/locale/bn.min.mjs +1 -1
  31. package/dist/locale/bn.mjs +1 -1
  32. package/dist/locale/ca.js +1 -1
  33. package/dist/locale/ca.min.js +1 -1
  34. package/dist/locale/ca.min.mjs +1 -1
  35. package/dist/locale/ca.mjs +1 -1
  36. package/dist/locale/ckb.js +1 -1
  37. package/dist/locale/ckb.min.js +1 -1
  38. package/dist/locale/ckb.min.mjs +1 -1
  39. package/dist/locale/ckb.mjs +1 -1
  40. package/dist/locale/cs.js +1 -1
  41. package/dist/locale/cs.min.js +1 -1
  42. package/dist/locale/cs.min.mjs +1 -1
  43. package/dist/locale/cs.mjs +1 -1
  44. package/dist/locale/da.js +1 -1
  45. package/dist/locale/da.min.js +1 -1
  46. package/dist/locale/da.min.mjs +1 -1
  47. package/dist/locale/da.mjs +1 -1
  48. package/dist/locale/de.js +1 -1
  49. package/dist/locale/de.min.js +1 -1
  50. package/dist/locale/de.min.mjs +1 -1
  51. package/dist/locale/de.mjs +1 -1
  52. package/dist/locale/el.js +1 -1
  53. package/dist/locale/el.min.js +1 -1
  54. package/dist/locale/el.min.mjs +1 -1
  55. package/dist/locale/el.mjs +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/en.min.js +1 -1
  58. package/dist/locale/en.min.mjs +1 -1
  59. package/dist/locale/en.mjs +1 -1
  60. package/dist/locale/eo.js +1 -1
  61. package/dist/locale/eo.min.js +1 -1
  62. package/dist/locale/eo.min.mjs +1 -1
  63. package/dist/locale/eo.mjs +1 -1
  64. package/dist/locale/es.js +1 -1
  65. package/dist/locale/es.min.js +1 -1
  66. package/dist/locale/es.min.mjs +1 -1
  67. package/dist/locale/es.mjs +1 -1
  68. package/dist/locale/et.js +1 -1
  69. package/dist/locale/et.min.js +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +1 -1
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.mjs +1 -1
  75. package/dist/locale/eu.mjs +1 -1
  76. package/dist/locale/fa.js +1 -1
  77. package/dist/locale/fa.min.js +1 -1
  78. package/dist/locale/fa.min.mjs +1 -1
  79. package/dist/locale/fa.mjs +1 -1
  80. package/dist/locale/fi.js +1 -1
  81. package/dist/locale/fi.min.js +1 -1
  82. package/dist/locale/fi.min.mjs +1 -1
  83. package/dist/locale/fi.mjs +1 -1
  84. package/dist/locale/fr.js +1 -1
  85. package/dist/locale/fr.min.js +1 -1
  86. package/dist/locale/fr.min.mjs +1 -1
  87. package/dist/locale/fr.mjs +1 -1
  88. package/dist/locale/he.js +1 -1
  89. package/dist/locale/he.min.js +1 -1
  90. package/dist/locale/he.min.mjs +1 -1
  91. package/dist/locale/he.mjs +1 -1
  92. package/dist/locale/hi.js +1 -1
  93. package/dist/locale/hi.min.js +1 -1
  94. package/dist/locale/hi.min.mjs +1 -1
  95. package/dist/locale/hi.mjs +1 -1
  96. package/dist/locale/hr.js +1 -1
  97. package/dist/locale/hr.min.js +1 -1
  98. package/dist/locale/hr.min.mjs +1 -1
  99. package/dist/locale/hr.mjs +1 -1
  100. package/dist/locale/hu.js +1 -1
  101. package/dist/locale/hu.min.js +1 -1
  102. package/dist/locale/hu.min.mjs +1 -1
  103. package/dist/locale/hu.mjs +1 -1
  104. package/dist/locale/hy-am.js +1 -1
  105. package/dist/locale/hy-am.min.js +1 -1
  106. package/dist/locale/hy-am.min.mjs +1 -1
  107. package/dist/locale/hy-am.mjs +1 -1
  108. package/dist/locale/id.js +1 -1
  109. package/dist/locale/id.min.js +1 -1
  110. package/dist/locale/id.min.mjs +1 -1
  111. package/dist/locale/id.mjs +1 -1
  112. package/dist/locale/it.js +1 -1
  113. package/dist/locale/it.min.js +1 -1
  114. package/dist/locale/it.min.mjs +1 -1
  115. package/dist/locale/it.mjs +1 -1
  116. package/dist/locale/ja.js +1 -1
  117. package/dist/locale/ja.min.js +1 -1
  118. package/dist/locale/ja.min.mjs +1 -1
  119. package/dist/locale/ja.mjs +1 -1
  120. package/dist/locale/kk.js +1 -1
  121. package/dist/locale/kk.min.js +1 -1
  122. package/dist/locale/kk.min.mjs +1 -1
  123. package/dist/locale/kk.mjs +1 -1
  124. package/dist/locale/km.js +1 -1
  125. package/dist/locale/km.min.js +1 -1
  126. package/dist/locale/km.min.mjs +1 -1
  127. package/dist/locale/km.mjs +1 -1
  128. package/dist/locale/ko.js +1 -1
  129. package/dist/locale/ko.min.js +1 -1
  130. package/dist/locale/ko.min.mjs +1 -1
  131. package/dist/locale/ko.mjs +1 -1
  132. package/dist/locale/ku.js +1 -1
  133. package/dist/locale/ku.min.js +1 -1
  134. package/dist/locale/ku.min.mjs +1 -1
  135. package/dist/locale/ku.mjs +1 -1
  136. package/dist/locale/ky.js +1 -1
  137. package/dist/locale/ky.min.js +1 -1
  138. package/dist/locale/ky.min.mjs +1 -1
  139. package/dist/locale/ky.mjs +1 -1
  140. package/dist/locale/lo.js +1 -1
  141. package/dist/locale/lo.min.js +1 -1
  142. package/dist/locale/lo.min.mjs +1 -1
  143. package/dist/locale/lo.mjs +1 -1
  144. package/dist/locale/lt.js +1 -1
  145. package/dist/locale/lt.min.js +1 -1
  146. package/dist/locale/lt.min.mjs +1 -1
  147. package/dist/locale/lt.mjs +1 -1
  148. package/dist/locale/lv.js +1 -1
  149. package/dist/locale/lv.min.js +1 -1
  150. package/dist/locale/lv.min.mjs +1 -1
  151. package/dist/locale/lv.mjs +1 -1
  152. package/dist/locale/mg.js +1 -1
  153. package/dist/locale/mg.min.js +1 -1
  154. package/dist/locale/mg.min.mjs +1 -1
  155. package/dist/locale/mg.mjs +1 -1
  156. package/dist/locale/mn.js +1 -1
  157. package/dist/locale/mn.min.js +1 -1
  158. package/dist/locale/mn.min.mjs +1 -1
  159. package/dist/locale/mn.mjs +1 -1
  160. package/dist/locale/ms.js +1 -1
  161. package/dist/locale/ms.min.js +1 -1
  162. package/dist/locale/ms.min.mjs +1 -1
  163. package/dist/locale/ms.mjs +1 -1
  164. package/dist/locale/my.js +1 -1
  165. package/dist/locale/my.min.js +1 -1
  166. package/dist/locale/my.min.mjs +1 -1
  167. package/dist/locale/my.mjs +1 -1
  168. package/dist/locale/nb-no.js +1 -1
  169. package/dist/locale/nb-no.min.js +1 -1
  170. package/dist/locale/nb-no.min.mjs +1 -1
  171. package/dist/locale/nb-no.mjs +1 -1
  172. package/dist/locale/nl.js +1 -1
  173. package/dist/locale/nl.min.js +1 -1
  174. package/dist/locale/nl.min.mjs +1 -1
  175. package/dist/locale/nl.mjs +1 -1
  176. package/dist/locale/no.js +1 -1
  177. package/dist/locale/no.min.js +1 -1
  178. package/dist/locale/no.min.mjs +1 -1
  179. package/dist/locale/no.mjs +1 -1
  180. package/dist/locale/pa.js +1 -1
  181. package/dist/locale/pa.min.js +1 -1
  182. package/dist/locale/pa.min.mjs +1 -1
  183. package/dist/locale/pa.mjs +1 -1
  184. package/dist/locale/pl.js +1 -1
  185. package/dist/locale/pl.min.js +1 -1
  186. package/dist/locale/pl.min.mjs +1 -1
  187. package/dist/locale/pl.mjs +1 -1
  188. package/dist/locale/pt-br.js +1 -1
  189. package/dist/locale/pt-br.min.js +1 -1
  190. package/dist/locale/pt-br.min.mjs +1 -1
  191. package/dist/locale/pt-br.mjs +1 -1
  192. package/dist/locale/pt.js +1 -1
  193. package/dist/locale/pt.min.js +1 -1
  194. package/dist/locale/pt.min.mjs +1 -1
  195. package/dist/locale/pt.mjs +1 -1
  196. package/dist/locale/ro.js +1 -1
  197. package/dist/locale/ro.min.js +1 -1
  198. package/dist/locale/ro.min.mjs +1 -1
  199. package/dist/locale/ro.mjs +1 -1
  200. package/dist/locale/ru.js +1 -1
  201. package/dist/locale/ru.min.js +1 -1
  202. package/dist/locale/ru.min.mjs +1 -1
  203. package/dist/locale/ru.mjs +1 -1
  204. package/dist/locale/sk.js +1 -1
  205. package/dist/locale/sk.min.js +1 -1
  206. package/dist/locale/sk.min.mjs +1 -1
  207. package/dist/locale/sk.mjs +1 -1
  208. package/dist/locale/sl.js +1 -1
  209. package/dist/locale/sl.min.js +1 -1
  210. package/dist/locale/sl.min.mjs +1 -1
  211. package/dist/locale/sl.mjs +1 -1
  212. package/dist/locale/sr.js +1 -1
  213. package/dist/locale/sr.min.js +1 -1
  214. package/dist/locale/sr.min.mjs +1 -1
  215. package/dist/locale/sr.mjs +1 -1
  216. package/dist/locale/sv.js +1 -1
  217. package/dist/locale/sv.min.js +1 -1
  218. package/dist/locale/sv.min.mjs +1 -1
  219. package/dist/locale/sv.mjs +1 -1
  220. package/dist/locale/sw.js +1 -1
  221. package/dist/locale/sw.min.js +1 -1
  222. package/dist/locale/sw.min.mjs +1 -1
  223. package/dist/locale/sw.mjs +1 -1
  224. package/dist/locale/ta.js +1 -1
  225. package/dist/locale/ta.min.js +1 -1
  226. package/dist/locale/ta.min.mjs +1 -1
  227. package/dist/locale/ta.mjs +1 -1
  228. package/dist/locale/te.js +1 -1
  229. package/dist/locale/te.min.js +1 -1
  230. package/dist/locale/te.min.mjs +1 -1
  231. package/dist/locale/te.mjs +1 -1
  232. package/dist/locale/th.js +1 -1
  233. package/dist/locale/th.min.js +1 -1
  234. package/dist/locale/th.min.mjs +1 -1
  235. package/dist/locale/th.mjs +1 -1
  236. package/dist/locale/tk.js +1 -1
  237. package/dist/locale/tk.min.js +1 -1
  238. package/dist/locale/tk.min.mjs +1 -1
  239. package/dist/locale/tk.mjs +1 -1
  240. package/dist/locale/tr.js +1 -1
  241. package/dist/locale/tr.min.js +1 -1
  242. package/dist/locale/tr.min.mjs +1 -1
  243. package/dist/locale/tr.mjs +1 -1
  244. package/dist/locale/ug-cn.js +1 -1
  245. package/dist/locale/ug-cn.min.js +1 -1
  246. package/dist/locale/ug-cn.min.mjs +1 -1
  247. package/dist/locale/ug-cn.mjs +1 -1
  248. package/dist/locale/uk.js +1 -1
  249. package/dist/locale/uk.min.js +1 -1
  250. package/dist/locale/uk.min.mjs +1 -1
  251. package/dist/locale/uk.mjs +1 -1
  252. package/dist/locale/uz-uz.js +1 -1
  253. package/dist/locale/uz-uz.min.js +1 -1
  254. package/dist/locale/uz-uz.min.mjs +1 -1
  255. package/dist/locale/uz-uz.mjs +1 -1
  256. package/dist/locale/vi.js +1 -1
  257. package/dist/locale/vi.min.js +1 -1
  258. package/dist/locale/vi.min.mjs +1 -1
  259. package/dist/locale/vi.mjs +1 -1
  260. package/dist/locale/zh-cn.js +1 -1
  261. package/dist/locale/zh-cn.min.js +1 -1
  262. package/dist/locale/zh-cn.min.mjs +1 -1
  263. package/dist/locale/zh-cn.mjs +1 -1
  264. package/dist/locale/zh-hk.js +1 -1
  265. package/dist/locale/zh-hk.min.js +1 -1
  266. package/dist/locale/zh-hk.min.mjs +1 -1
  267. package/dist/locale/zh-hk.mjs +1 -1
  268. package/dist/locale/zh-mo.js +1 -1
  269. package/dist/locale/zh-mo.min.js +1 -1
  270. package/dist/locale/zh-mo.min.mjs +1 -1
  271. package/dist/locale/zh-mo.mjs +1 -1
  272. package/dist/locale/zh-tw.js +1 -1
  273. package/dist/locale/zh-tw.min.js +1 -1
  274. package/dist/locale/zh-tw.min.mjs +1 -1
  275. package/dist/locale/zh-tw.mjs +1 -1
  276. package/es/components/alert/index.mjs +2 -2
  277. package/es/components/alert/src/alert.mjs +41 -108
  278. package/es/components/alert/src/alert.mjs.map +1 -1
  279. package/es/components/alert/src/alert2.mjs +108 -41
  280. package/es/components/alert/src/alert2.mjs.map +1 -1
  281. package/es/components/anchor/index.mjs +1 -1
  282. package/es/components/anchor/src/anchor-link.mjs +5 -81
  283. package/es/components/anchor/src/anchor-link.mjs.map +1 -1
  284. package/es/components/anchor/src/anchor-link2.mjs +81 -5
  285. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  286. package/es/components/autocomplete/index.mjs +2 -2
  287. package/es/components/autocomplete/src/autocomplete.mjs +58 -366
  288. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  289. package/es/components/autocomplete/src/autocomplete2.mjs +366 -58
  290. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  291. package/es/components/avatar/index.mjs +2 -2
  292. package/es/components/avatar/src/avatar.mjs +31 -65
  293. package/es/components/avatar/src/avatar.mjs.map +1 -1
  294. package/es/components/avatar/src/avatar2.mjs +65 -31
  295. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  296. package/es/components/backtop/index.mjs +2 -2
  297. package/es/components/backtop/src/backtop.mjs +21 -53
  298. package/es/components/backtop/src/backtop.mjs.map +1 -1
  299. package/es/components/backtop/src/backtop2.mjs +53 -21
  300. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  301. package/es/components/badge/index.mjs +2 -2
  302. package/es/components/badge/src/badge.mjs +71 -32
  303. package/es/components/badge/src/badge.mjs.map +1 -1
  304. package/es/components/badge/src/badge2.mjs +32 -71
  305. package/es/components/badge/src/badge2.mjs.map +1 -1
  306. package/es/components/carousel/index.mjs +2 -2
  307. package/es/components/carousel/src/carousel-item.mjs +7 -69
  308. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  309. package/es/components/carousel/src/carousel-item2.mjs +69 -7
  310. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  311. package/es/components/check-tag/index.mjs +2 -2
  312. package/es/components/check-tag/src/check-tag.mjs +14 -38
  313. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  314. package/es/components/check-tag/src/check-tag2.mjs +38 -14
  315. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  316. package/es/components/checkbox/src/checkbox-group2.mjs +3 -3
  317. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  318. package/es/components/col/index.mjs +2 -2
  319. package/es/components/col/src/col.mjs +43 -64
  320. package/es/components/col/src/col.mjs.map +1 -1
  321. package/es/components/col/src/col2.mjs +64 -43
  322. package/es/components/col/src/col2.mjs.map +1 -1
  323. package/es/components/empty/index.mjs +2 -2
  324. package/es/components/empty/src/empty.mjs +11 -52
  325. package/es/components/empty/src/empty.mjs.map +1 -1
  326. package/es/components/empty/src/empty2.mjs +52 -11
  327. package/es/components/empty/src/empty2.mjs.map +1 -1
  328. package/es/components/form/index.mjs +2 -2
  329. package/es/components/form/src/form.mjs +161 -54
  330. package/es/components/form/src/form.mjs.map +1 -1
  331. package/es/components/form/src/form2.mjs +54 -161
  332. package/es/components/form/src/form2.mjs.map +1 -1
  333. package/es/components/icon/index.mjs +2 -2
  334. package/es/components/icon/src/icon.mjs +8 -35
  335. package/es/components/icon/src/icon.mjs.map +1 -1
  336. package/es/components/icon/src/icon2.mjs +35 -8
  337. package/es/components/icon/src/icon2.mjs.map +1 -1
  338. package/es/components/image/index.mjs +2 -2
  339. package/es/components/image/src/image.mjs +65 -226
  340. package/es/components/image/src/image.mjs.map +1 -1
  341. package/es/components/image/src/image2.mjs +226 -65
  342. package/es/components/image/src/image2.mjs.map +1 -1
  343. package/es/components/index.mjs +25 -25
  344. package/es/components/link/index.mjs +2 -2
  345. package/es/components/link/src/link.mjs +71 -25
  346. package/es/components/link/src/link.mjs.map +1 -1
  347. package/es/components/link/src/link2.mjs +25 -71
  348. package/es/components/link/src/link2.mjs.map +1 -1
  349. package/es/components/mention/src/mention-dropdown.mjs +15 -166
  350. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  351. package/es/components/mention/src/mention-dropdown2.mjs +166 -15
  352. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  353. package/es/components/mention/src/mention2.mjs +1 -1
  354. package/es/components/notification/index.mjs +1 -1
  355. package/es/components/notification/src/notification.mjs +140 -73
  356. package/es/components/notification/src/notification.mjs.map +1 -1
  357. package/es/components/notification/src/notification2.mjs +73 -140
  358. package/es/components/notification/src/notification2.mjs.map +1 -1
  359. package/es/components/notification/src/notify.mjs +2 -2
  360. package/es/components/pagination/src/components/jumper.mjs +7 -58
  361. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  362. package/es/components/pagination/src/components/jumper2.mjs +58 -7
  363. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  364. package/es/components/pagination/src/components/total.mjs +26 -6
  365. package/es/components/pagination/src/components/total.mjs.map +1 -1
  366. package/es/components/pagination/src/components/total2.mjs +6 -26
  367. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  368. package/es/components/pagination/src/pagination.mjs +2 -2
  369. package/es/components/popper/index.mjs +4 -4
  370. package/es/components/popper/src/arrow.mjs +30 -7
  371. package/es/components/popper/src/arrow.mjs.map +1 -1
  372. package/es/components/popper/src/arrow2.mjs +7 -30
  373. package/es/components/popper/src/arrow2.mjs.map +1 -1
  374. package/es/components/popper/src/content.mjs +1 -1
  375. package/es/components/popper/src/trigger.mjs +31 -127
  376. package/es/components/popper/src/trigger.mjs.map +1 -1
  377. package/es/components/popper/src/trigger2.mjs +127 -31
  378. package/es/components/popper/src/trigger2.mjs.map +1 -1
  379. package/es/components/rate/index.mjs +2 -2
  380. package/es/components/rate/src/rate.mjs +258 -83
  381. package/es/components/rate/src/rate.mjs.map +1 -1
  382. package/es/components/rate/src/rate2.mjs +83 -258
  383. package/es/components/rate/src/rate2.mjs.map +1 -1
  384. package/es/components/scrollbar/index.mjs +2 -2
  385. package/es/components/scrollbar/src/bar.mjs +10 -64
  386. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  387. package/es/components/scrollbar/src/bar2.mjs +64 -10
  388. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  389. package/es/components/scrollbar/src/scrollbar.mjs +187 -53
  390. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  391. package/es/components/scrollbar/src/scrollbar2.mjs +53 -187
  392. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  393. package/es/components/select/src/option2.mjs +4 -4
  394. package/es/components/select/src/option2.mjs.map +1 -1
  395. package/es/components/select/src/select.d.ts +12 -2
  396. package/es/components/select/src/select.mjs +7 -3
  397. package/es/components/select/src/select.mjs.map +1 -1
  398. package/es/components/select/src/select.vue.d.ts +24 -4
  399. package/es/components/select-v2/src/defaults.d.ts +12 -2
  400. package/es/components/select-v2/src/defaults.mjs +6 -2
  401. package/es/components/select-v2/src/defaults.mjs.map +1 -1
  402. package/es/components/select-v2/src/select.vue.d.ts +24 -4
  403. package/es/components/steps/index.mjs +2 -2
  404. package/es/components/steps/src/steps.mjs +35 -41
  405. package/es/components/steps/src/steps.mjs.map +1 -1
  406. package/es/components/steps/src/steps2.mjs +41 -35
  407. package/es/components/steps/src/steps2.mjs.map +1 -1
  408. package/es/components/tabs/index.mjs +2 -2
  409. package/es/components/tabs/src/tab-pane.mjs +82 -13
  410. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  411. package/es/components/tabs/src/tab-pane2.mjs +13 -82
  412. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  413. package/es/components/tooltip/src/tooltip.mjs +1 -1
  414. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  415. package/es/components/tooltip/src/trigger.mjs +1 -1
  416. package/es/components/tooltip/src/trigger2.mjs +1 -1
  417. package/es/components/tooltip-v2/index.mjs +4 -4
  418. package/es/components/tooltip-v2/src/content.mjs +110 -48
  419. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  420. package/es/components/tooltip-v2/src/content2.mjs +48 -110
  421. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  422. package/es/components/tooltip-v2/src/tooltip.mjs +20 -78
  423. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  424. package/es/components/tooltip-v2/src/tooltip2.mjs +78 -20
  425. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  426. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  427. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  428. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  429. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  430. package/es/components/tour/index.mjs +2 -2
  431. package/es/components/tour/src/tour.mjs +154 -69
  432. package/es/components/tour/src/tour.mjs.map +1 -1
  433. package/es/components/tour/src/tour2.mjs +69 -154
  434. package/es/components/tour/src/tour2.mjs.map +1 -1
  435. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  436. package/es/components/transfer/src/transfer-panel.mjs +130 -19
  437. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  438. package/es/components/transfer/src/transfer-panel2.mjs +19 -130
  439. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  440. package/es/components/transfer/src/transfer2.mjs +1 -1
  441. package/es/components/upload/index.mjs +2 -2
  442. package/es/components/upload/src/upload-content2.mjs +1 -1
  443. package/es/components/upload/src/upload-dragger.mjs +61 -8
  444. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  445. package/es/components/upload/src/upload-dragger2.mjs +8 -61
  446. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  447. package/es/components/upload/src/upload-list.mjs +173 -25
  448. package/es/components/upload/src/upload-list.mjs.map +1 -1
  449. package/es/components/upload/src/upload-list2.mjs +25 -173
  450. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  451. package/es/components/upload/src/upload2.mjs +1 -1
  452. package/es/index.d.ts +72 -12
  453. package/es/index.mjs +25 -25
  454. package/es/version.d.ts +1 -1
  455. package/es/version.mjs +1 -1
  456. package/es/version.mjs.map +1 -1
  457. package/lib/components/alert/index.js +2 -2
  458. package/lib/components/alert/src/alert.js +42 -107
  459. package/lib/components/alert/src/alert.js.map +1 -1
  460. package/lib/components/alert/src/alert2.js +107 -42
  461. package/lib/components/alert/src/alert2.js.map +1 -1
  462. package/lib/components/anchor/index.js +1 -1
  463. package/lib/components/anchor/src/anchor-link.js +5 -81
  464. package/lib/components/anchor/src/anchor-link.js.map +1 -1
  465. package/lib/components/anchor/src/anchor-link2.js +81 -5
  466. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  467. package/lib/components/autocomplete/index.js +2 -2
  468. package/lib/components/autocomplete/src/autocomplete.js +57 -364
  469. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  470. package/lib/components/autocomplete/src/autocomplete2.js +364 -57
  471. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  472. package/lib/components/avatar/index.js +2 -2
  473. package/lib/components/avatar/src/avatar.js +32 -65
  474. package/lib/components/avatar/src/avatar.js.map +1 -1
  475. package/lib/components/avatar/src/avatar2.js +65 -32
  476. package/lib/components/avatar/src/avatar2.js.map +1 -1
  477. package/lib/components/backtop/index.js +2 -2
  478. package/lib/components/backtop/src/backtop.js +22 -53
  479. package/lib/components/backtop/src/backtop.js.map +1 -1
  480. package/lib/components/backtop/src/backtop2.js +53 -22
  481. package/lib/components/backtop/src/backtop2.js.map +1 -1
  482. package/lib/components/badge/index.js +2 -2
  483. package/lib/components/badge/src/badge.js +71 -32
  484. package/lib/components/badge/src/badge.js.map +1 -1
  485. package/lib/components/badge/src/badge2.js +32 -71
  486. package/lib/components/badge/src/badge2.js.map +1 -1
  487. package/lib/components/carousel/index.js +2 -2
  488. package/lib/components/carousel/src/carousel-item.js +7 -69
  489. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  490. package/lib/components/carousel/src/carousel-item2.js +69 -7
  491. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  492. package/lib/components/check-tag/index.js +2 -2
  493. package/lib/components/check-tag/src/check-tag.js +15 -38
  494. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  495. package/lib/components/check-tag/src/check-tag2.js +38 -15
  496. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  497. package/lib/components/checkbox/src/checkbox-group2.js +2 -2
  498. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  499. package/lib/components/col/index.js +2 -2
  500. package/lib/components/col/src/col.js +43 -64
  501. package/lib/components/col/src/col.js.map +1 -1
  502. package/lib/components/col/src/col2.js +64 -43
  503. package/lib/components/col/src/col2.js.map +1 -1
  504. package/lib/components/empty/index.js +2 -2
  505. package/lib/components/empty/src/empty.js +11 -52
  506. package/lib/components/empty/src/empty.js.map +1 -1
  507. package/lib/components/empty/src/empty2.js +52 -11
  508. package/lib/components/empty/src/empty2.js.map +1 -1
  509. package/lib/components/form/index.js +2 -2
  510. package/lib/components/form/src/form.js +160 -55
  511. package/lib/components/form/src/form.js.map +1 -1
  512. package/lib/components/form/src/form2.js +55 -160
  513. package/lib/components/form/src/form2.js.map +1 -1
  514. package/lib/components/icon/index.js +2 -2
  515. package/lib/components/icon/src/icon.js +8 -35
  516. package/lib/components/icon/src/icon.js.map +1 -1
  517. package/lib/components/icon/src/icon2.js +35 -8
  518. package/lib/components/icon/src/icon2.js.map +1 -1
  519. package/lib/components/image/index.js +2 -2
  520. package/lib/components/image/src/image.js +65 -225
  521. package/lib/components/image/src/image.js.map +1 -1
  522. package/lib/components/image/src/image2.js +225 -65
  523. package/lib/components/image/src/image2.js.map +1 -1
  524. package/lib/components/index.js +25 -25
  525. package/lib/components/link/index.js +2 -2
  526. package/lib/components/link/src/link.js +71 -26
  527. package/lib/components/link/src/link.js.map +1 -1
  528. package/lib/components/link/src/link2.js +26 -71
  529. package/lib/components/link/src/link2.js.map +1 -1
  530. package/lib/components/mention/src/mention-dropdown.js +16 -166
  531. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  532. package/lib/components/mention/src/mention-dropdown2.js +166 -16
  533. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  534. package/lib/components/mention/src/mention2.js +1 -1
  535. package/lib/components/notification/index.js +1 -1
  536. package/lib/components/notification/src/notification.js +139 -74
  537. package/lib/components/notification/src/notification.js.map +1 -1
  538. package/lib/components/notification/src/notification2.js +74 -139
  539. package/lib/components/notification/src/notification2.js.map +1 -1
  540. package/lib/components/notification/src/notify.js +2 -2
  541. package/lib/components/pagination/src/components/jumper.js +7 -58
  542. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  543. package/lib/components/pagination/src/components/jumper2.js +58 -7
  544. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  545. package/lib/components/pagination/src/components/total.js +26 -6
  546. package/lib/components/pagination/src/components/total.js.map +1 -1
  547. package/lib/components/pagination/src/components/total2.js +6 -26
  548. package/lib/components/pagination/src/components/total2.js.map +1 -1
  549. package/lib/components/pagination/src/pagination.js +2 -2
  550. package/lib/components/popper/index.js +4 -4
  551. package/lib/components/popper/src/arrow.js +30 -8
  552. package/lib/components/popper/src/arrow.js.map +1 -1
  553. package/lib/components/popper/src/arrow2.js +8 -30
  554. package/lib/components/popper/src/arrow2.js.map +1 -1
  555. package/lib/components/popper/src/content.js +1 -1
  556. package/lib/components/popper/src/trigger.js +32 -127
  557. package/lib/components/popper/src/trigger.js.map +1 -1
  558. package/lib/components/popper/src/trigger2.js +127 -32
  559. package/lib/components/popper/src/trigger2.js.map +1 -1
  560. package/lib/components/rate/index.js +2 -2
  561. package/lib/components/rate/src/rate.js +257 -83
  562. package/lib/components/rate/src/rate.js.map +1 -1
  563. package/lib/components/rate/src/rate2.js +83 -257
  564. package/lib/components/rate/src/rate2.js.map +1 -1
  565. package/lib/components/scrollbar/index.js +2 -2
  566. package/lib/components/scrollbar/src/bar.js +10 -64
  567. package/lib/components/scrollbar/src/bar.js.map +1 -1
  568. package/lib/components/scrollbar/src/bar2.js +64 -10
  569. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  570. package/lib/components/scrollbar/src/scrollbar.js +187 -54
  571. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  572. package/lib/components/scrollbar/src/scrollbar2.js +54 -187
  573. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  574. package/lib/components/select/src/option2.js +4 -4
  575. package/lib/components/select/src/option2.js.map +1 -1
  576. package/lib/components/select/src/select.d.ts +12 -2
  577. package/lib/components/select/src/select.js +7 -3
  578. package/lib/components/select/src/select.js.map +1 -1
  579. package/lib/components/select/src/select.vue.d.ts +24 -4
  580. package/lib/components/select-v2/src/defaults.d.ts +12 -2
  581. package/lib/components/select-v2/src/defaults.js +6 -2
  582. package/lib/components/select-v2/src/defaults.js.map +1 -1
  583. package/lib/components/select-v2/src/select.vue.d.ts +24 -4
  584. package/lib/components/steps/index.js +2 -2
  585. package/lib/components/steps/src/steps.js +36 -41
  586. package/lib/components/steps/src/steps.js.map +1 -1
  587. package/lib/components/steps/src/steps2.js +41 -36
  588. package/lib/components/steps/src/steps2.js.map +1 -1
  589. package/lib/components/tabs/index.js +2 -2
  590. package/lib/components/tabs/src/tab-pane.js +82 -13
  591. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  592. package/lib/components/tabs/src/tab-pane2.js +13 -82
  593. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  594. package/lib/components/tooltip/src/tooltip.js +1 -1
  595. package/lib/components/tooltip/src/tooltip2.js +1 -1
  596. package/lib/components/tooltip/src/trigger.js +1 -1
  597. package/lib/components/tooltip/src/trigger2.js +1 -1
  598. package/lib/components/tooltip-v2/index.js +4 -4
  599. package/lib/components/tooltip-v2/src/content.js +110 -48
  600. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  601. package/lib/components/tooltip-v2/src/content2.js +48 -110
  602. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  603. package/lib/components/tooltip-v2/src/tooltip.js +20 -78
  604. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  605. package/lib/components/tooltip-v2/src/tooltip2.js +78 -20
  606. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  607. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  608. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  609. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  610. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  611. package/lib/components/tour/index.js +2 -2
  612. package/lib/components/tour/src/tour.js +153 -69
  613. package/lib/components/tour/src/tour.js.map +1 -1
  614. package/lib/components/tour/src/tour2.js +69 -153
  615. package/lib/components/tour/src/tour2.js.map +1 -1
  616. package/lib/components/transfer/src/composables/use-check.js +1 -1
  617. package/lib/components/transfer/src/transfer-panel.js +130 -21
  618. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  619. package/lib/components/transfer/src/transfer-panel2.js +21 -130
  620. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  621. package/lib/components/transfer/src/transfer2.js +1 -1
  622. package/lib/components/upload/index.js +2 -2
  623. package/lib/components/upload/src/upload-content2.js +1 -1
  624. package/lib/components/upload/src/upload-dragger.js +61 -9
  625. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  626. package/lib/components/upload/src/upload-dragger2.js +9 -61
  627. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  628. package/lib/components/upload/src/upload-list.js +173 -26
  629. package/lib/components/upload/src/upload-list.js.map +1 -1
  630. package/lib/components/upload/src/upload-list2.js +26 -173
  631. package/lib/components/upload/src/upload-list2.js.map +1 -1
  632. package/lib/components/upload/src/upload2.js +1 -1
  633. package/lib/index.d.ts +72 -12
  634. package/lib/index.js +25 -25
  635. package/lib/version.d.ts +1 -1
  636. package/lib/version.js +1 -1
  637. package/lib/version.js.map +1 -1
  638. package/package.json +2 -2
  639. package/tags.json +1 -1
  640. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"select.mjs","sources":["../../../../../../packages/components/select/src/select.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { scrollbarEmits } from '@element-plus/components/scrollbar'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport {\n EmitFn,\n buildProps,\n definePropType,\n iconPropType,\n} from '@element-plus/utils'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { ArrowDown, CircleClose } from '@element-plus/icons-vue'\nimport { tagProps } from '@element-plus/components/tag'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type Select from './select.vue'\nimport type {\n Options,\n Placement,\n PopperEffect,\n} from '@element-plus/components/popper'\nimport type { OptionValue } from './type'\n\nexport const selectProps = buildProps({\n /**\n * @description the name attribute of select input\n */\n name: String,\n /**\n * @description native input id\n */\n id: String,\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<OptionValue | OptionValue[]>([\n Array,\n String,\n Number,\n Boolean,\n Object,\n ]),\n default: undefined,\n },\n /**\n * @description the autocomplete attribute of select input\n */\n autocomplete: {\n type: String,\n default: 'off',\n },\n /**\n * @description for non-filterable Select, this prop decides if the option menu pops up when the input is focused\n */\n automaticDropdown: Boolean,\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether Select is disabled\n */\n disabled: Boolean,\n /**\n * @description whether select can be cleared\n */\n clearable: Boolean,\n /**\n * @description whether Select is filterable\n */\n filterable: Boolean,\n /**\n * @description whether creating new items is allowed. To use this, `filterable` must be true\n */\n allowCreate: Boolean,\n /**\n * @description whether Select is loading data from server\n */\n loading: Boolean,\n /**\n * @description custom class name for Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({} as Partial<Options>),\n },\n /**\n * @description whether options are loaded from server\n */\n remote: Boolean,\n /**\n * @description displayed text while loading data from server, default is 'Loading'\n */\n loadingText: String,\n /**\n * @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'\n */\n noMatchText: String,\n /**\n * @description displayed text when there is no options, you can also use slot `empty`, default is 'No data'\n */\n noDataText: String,\n /**\n * @description custom remote search method\n */\n remoteMethod: Function,\n /**\n * @description custom filter method\n */\n filterMethod: Function,\n /**\n * @description whether multiple-select is activated\n */\n multiple: Boolean,\n /**\n * @description maximum number of options user can select when `multiple` is `true`. No limit when set to 0\n */\n multipleLimit: {\n type: Number,\n default: 0,\n },\n /**\n * @description placeholder, default is 'Select'\n */\n placeholder: {\n type: String,\n },\n /**\n * @description select first matching option on enter key. Use with `filterable` or `remote`\n */\n defaultFirstOption: Boolean,\n /**\n * @description when `multiple` and `filter` is true, whether to reserve current keyword after selecting an option\n */\n reserveKeyword: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unique identity key name for value, required when value is an object\n */\n valueKey: {\n type: String,\n default: 'value',\n },\n /**\n * @description whether to collapse tags to a text when multiple selecting\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 whether select dropdown is teleported, if `true` it will be teleported to where `append-to` sets\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description whether the width of the dropdown is the same as the input\n */\n fitInputWidth: Boolean,\n /**\n * @description custom suffix icon component\n */\n suffixIcon: {\n type: iconPropType,\n default: ArrowDown,\n },\n /**\n * @description tag type\n */\n // eslint-disable-next-line vue/require-prop-types\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: { ...tagProps.effect, default: 'light' },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description in remote search method show suffix icon\n */\n remoteShowSuffix: Boolean,\n /**\n * @description determines whether the arrow is displayed\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the dropdown\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of dropdown\n */\n placement: {\n type: definePropType<Placement>(String),\n values: placements,\n default: 'bottom-start',\n },\n /**\n * @description list of possible positions for dropdown\n */\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: ['bottom-start', 'top-start', 'right', 'left'],\n },\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description which element the selection dropdown appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n})\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const selectEmits = {\n [UPDATE_MODEL_EVENT]: (val: SelectProps['modelValue']) => true,\n [CHANGE_EVENT]: (val: SelectProps['modelValue']) => true,\n 'popup-scroll': scrollbarEmits.scroll,\n 'remove-tag': (val: unknown) => true,\n 'visible-change': (visible: boolean) => true,\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SelectProps = ExtractPropTypes<typeof selectProps>\nexport type SelectPropsPublic = __ExtractPublicPropTypes<typeof selectProps>\nexport type SelectEmits = EmitFn<typeof selectEmits>\nexport type SelectInstance = InstanceType<typeof Select> & unknown\n"],"names":[],"mappings":";;;;;;;;;;;;AAgBY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC;AACzB,MAAM,KAAK;AACX,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,OAAO;AACb,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO,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AAK,IAAI;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC1C,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
1
+ {"version":3,"file":"select.mjs","sources":["../../../../../../packages/components/select/src/select.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { scrollbarEmits } from '@element-plus/components/scrollbar'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport {\n EmitFn,\n buildProps,\n definePropType,\n iconPropType,\n} from '@element-plus/utils'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { ArrowDown, CircleClose } from '@element-plus/icons-vue'\nimport { tagProps } from '@element-plus/components/tag'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type Select from './select.vue'\nimport type {\n Options,\n Placement,\n PopperEffect,\n} from '@element-plus/components/popper'\nimport type { OptionValue } from './type'\n\nexport const selectProps = buildProps({\n /**\n * @description the name attribute of select input\n */\n name: String,\n /**\n * @description native input id\n */\n id: String,\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<OptionValue | OptionValue[]>([\n Array,\n String,\n Number,\n Boolean,\n Object,\n ]),\n default: undefined,\n },\n /**\n * @description the autocomplete attribute of select input\n */\n autocomplete: {\n type: String,\n default: 'off',\n },\n /**\n * @description for non-filterable Select, this prop decides if the option menu pops up when the input is focused\n */\n automaticDropdown: Boolean,\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether Select is disabled\n */\n disabled: Boolean,\n /**\n * @description whether select can be cleared\n */\n clearable: Boolean,\n /**\n * @description whether Select is filterable\n */\n filterable: Boolean,\n /**\n * @description whether creating new items is allowed. To use this, `filterable` must be true\n */\n allowCreate: Boolean,\n /**\n * @description whether Select is loading data from server\n */\n loading: Boolean,\n /**\n * @description custom class name for Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({} as Partial<Options>),\n },\n /**\n * @description whether options are loaded from server\n */\n remote: Boolean,\n /**\n * @description displayed text while loading data from server, default is 'Loading'\n */\n loadingText: String,\n /**\n * @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'\n */\n noMatchText: String,\n /**\n * @description displayed text when there is no options, you can also use slot `empty`, default is 'No data'\n */\n noDataText: String,\n /**\n * @description function that gets called when the input value changes. Its parameter is the current input value. To use this, `filterable` must be true\n */\n remoteMethod: {\n type: definePropType<(query: string) => void>(Function),\n },\n /**\n * @description custom filter method, the first parameter is the current input value. To use this, `filterable` must be true\n */\n filterMethod: {\n type: definePropType<(query: string) => void>(Function),\n },\n /**\n * @description whether multiple-select is activated\n */\n multiple: Boolean,\n /**\n * @description maximum number of options user can select when `multiple` is `true`. No limit when set to 0\n */\n multipleLimit: {\n type: Number,\n default: 0,\n },\n /**\n * @description placeholder, default is 'Select'\n */\n placeholder: {\n type: String,\n },\n /**\n * @description select first matching option on enter key. Use with `filterable` or `remote`\n */\n defaultFirstOption: Boolean,\n /**\n * @description when `multiple` and `filter` is true, whether to reserve current keyword after selecting an option\n */\n reserveKeyword: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unique identity key name for value, required when value is an object\n */\n valueKey: {\n type: String,\n default: 'value',\n },\n /**\n * @description whether to collapse tags to a text when multiple selecting\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 whether select dropdown is teleported, if `true` it will be teleported to where `append-to` sets\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description whether the width of the dropdown is the same as the input\n */\n fitInputWidth: Boolean,\n /**\n * @description custom suffix icon component\n */\n suffixIcon: {\n type: iconPropType,\n default: ArrowDown,\n },\n /**\n * @description tag type\n */\n // eslint-disable-next-line vue/require-prop-types\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: { ...tagProps.effect, default: 'light' },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description in remote search method show suffix icon\n */\n remoteShowSuffix: Boolean,\n /**\n * @description determines whether the arrow is displayed\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the dropdown\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of dropdown\n */\n placement: {\n type: definePropType<Placement>(String),\n values: placements,\n default: 'bottom-start',\n },\n /**\n * @description list of possible positions for dropdown\n */\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: ['bottom-start', 'top-start', 'right', 'left'],\n },\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description which element the selection dropdown appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n})\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const selectEmits = {\n [UPDATE_MODEL_EVENT]: (val: SelectProps['modelValue']) => true,\n [CHANGE_EVENT]: (val: SelectProps['modelValue']) => true,\n 'popup-scroll': scrollbarEmits.scroll,\n 'remove-tag': (val: unknown) => true,\n 'visible-change': (visible: boolean) => true,\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SelectProps = ExtractPropTypes<typeof selectProps>\nexport type SelectPropsPublic = __ExtractPublicPropTypes<typeof selectProps>\nexport type SelectEmits = EmitFn<typeof selectEmits>\nexport type SelectInstance = InstanceType<typeof Select> & unknown\n"],"names":[],"mappings":";;;;;;;;;;;;AAgBY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC;AACzB,MAAM,KAAK;AACX,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,OAAO;AACb,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EA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c,EAAE,cAAc,CAAC,MAAM;AACvC,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,IAAI;AAC7B,EAAE,gBAAgB,EAAE,CAAC,OAAO,KAAK,IAAI;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC1C,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
@@ -25,8 +25,18 @@ declare const _default: import("vue").DefineComponent<{
25
25
  loadingText: StringConstructor;
26
26
  noMatchText: StringConstructor;
27
27
  noDataText: StringConstructor;
28
- remoteMethod: FunctionConstructor;
29
- filterMethod: FunctionConstructor;
28
+ remoteMethod: {
29
+ readonly type: import("vue").PropType<(query: string) => void>;
30
+ readonly required: false;
31
+ readonly validator: ((val: unknown) => boolean) | undefined;
32
+ __epPropKey: true;
33
+ };
34
+ filterMethod: {
35
+ readonly type: import("vue").PropType<(query: string) => void>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
30
40
  multiple: BooleanConstructor;
31
41
  multipleLimit: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
32
42
  placeholder: {
@@ -254,8 +264,18 @@ declare const _default: import("vue").DefineComponent<{
254
264
  loadingText: StringConstructor;
255
265
  noMatchText: StringConstructor;
256
266
  noDataText: StringConstructor;
257
- remoteMethod: FunctionConstructor;
258
- filterMethod: FunctionConstructor;
267
+ remoteMethod: {
268
+ readonly type: import("vue").PropType<(query: string) => void>;
269
+ readonly required: false;
270
+ readonly validator: ((val: unknown) => boolean) | undefined;
271
+ __epPropKey: true;
272
+ };
273
+ filterMethod: {
274
+ readonly type: import("vue").PropType<(query: string) => void>;
275
+ readonly required: false;
276
+ readonly validator: ((val: unknown) => boolean) | undefined;
277
+ __epPropKey: true;
278
+ };
259
279
  multiple: BooleanConstructor;
260
280
  multipleLimit: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
261
281
  placeholder: {
@@ -26,7 +26,12 @@ export declare const selectV2Props: {
26
26
  readonly disabled: BooleanConstructor;
27
27
  readonly estimatedOptionHeight: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
28
28
  readonly filterable: BooleanConstructor;
29
- readonly filterMethod: FunctionConstructor;
29
+ readonly filterMethod: {
30
+ readonly type: import("vue").PropType<(query: string) => void>;
31
+ readonly required: false;
32
+ readonly validator: ((val: unknown) => boolean) | undefined;
33
+ __epPropKey: true;
34
+ };
30
35
  readonly height: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 274, boolean>;
31
36
  readonly itemHeight: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 34, boolean>;
32
37
  readonly id: StringConstructor;
@@ -43,7 +48,12 @@ export declare const selectV2Props: {
43
48
  readonly name: StringConstructor;
44
49
  readonly noDataText: StringConstructor;
45
50
  readonly noMatchText: StringConstructor;
46
- readonly remoteMethod: FunctionConstructor;
51
+ readonly remoteMethod: {
52
+ readonly type: import("vue").PropType<(query: string) => void>;
53
+ readonly required: false;
54
+ readonly validator: ((val: unknown) => boolean) | undefined;
55
+ __epPropKey: true;
56
+ };
47
57
  readonly reserveKeyword: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
48
58
  readonly options: {
49
59
  readonly type: import("vue").PropType<OptionType[]>;
@@ -40,7 +40,9 @@ const selectV2Props = buildProps({
40
40
  default: void 0
41
41
  },
42
42
  filterable: Boolean,
43
- filterMethod: Function,
43
+ filterMethod: {
44
+ type: definePropType(Function)
45
+ },
44
46
  height: {
45
47
  type: Number,
46
48
  default: 274
@@ -63,7 +65,9 @@ const selectV2Props = buildProps({
63
65
  name: String,
64
66
  noDataText: String,
65
67
  noMatchText: String,
66
- remoteMethod: Function,
68
+ remoteMethod: {
69
+ type: definePropType(Function)
70
+ },
67
71
  reserveKeyword: {
68
72
  type: Boolean,
69
73
  default: true
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.mjs","sources":["../../../../../../packages/components/select-v2/src/defaults.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n isBoolean,\n isNumber,\n} from '@element-plus/utils'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { ArrowDown, CircleClose } from '@element-plus/icons-vue'\nimport { tagProps } from '../../tag'\nimport { defaultProps } from './useProps'\nimport SelectV2 from './select.vue'\n\nimport type { Option, OptionType } from './select.types'\nimport type { Props } from './useProps'\nimport type { EmitFn } from '@element-plus/utils/vue/typescript'\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type {\n Options,\n Placement,\n PopperEffect,\n} from '@element-plus/components/popper'\n\nexport const selectV2Props = buildProps({\n /**\n * @description whether creating new items is allowed. To use this, `filterable` must be true\n */\n allowCreate: Boolean,\n /**\n * @description autocomplete of select input\n */\n autocomplete: {\n type: definePropType<'none' | 'both' | 'list' | 'inline'>(String),\n default: 'none',\n },\n /**\n * @description for non-filterable Select, this prop decides if the option menu pops up when the input is focused\n */\n automaticDropdown: Boolean,\n /**\n * @description whether select can be cleared\n */\n clearable: Boolean,\n /**\n * @description custom clear icon\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether to collapse tags to a text when multiple selecting\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\n */\n defaultFirstOption: Boolean,\n /**\n * @description is disabled\n */\n disabled: Boolean,\n /**\n * @description\n */\n estimatedOptionHeight: {\n type: Number,\n default: undefined,\n },\n /**\n * @description is filterable\n */\n filterable: Boolean,\n /**\n * @description\n */\n filterMethod: Function,\n /**\n * @description The height of the dropdown panel, 34px for each item\n */\n height: {\n type: Number,\n default: 274, // same as select dropdown menu\n },\n /**\n * @description The height of the dropdown item\n */\n itemHeight: {\n type: Number,\n default: 34,\n },\n /**\n * @description\n */\n id: String,\n /**\n * @description whether Select is loading data from server\n */\n loading: Boolean,\n /**\n * @description displayed text while loading data from server, default is 'Loading'\n */\n loadingText: String,\n /**\n * @description biding value\n */\n modelValue: {\n // eslint-disable-next-line prettier/prettier\n type: definePropType<\n any[] | string | number | boolean | Record<string, any> | any\n >([Array, String, Number, Boolean, Object]),\n },\n /**\n * @description is multiple\n */\n multiple: Boolean,\n /**\n * @description maximum number of options user can select when multiple is true. No limit when set to 0\n */\n multipleLimit: {\n type: Number,\n default: 0,\n },\n /**\n * @description the name attribute of select input\n */\n name: String,\n /**\n * @description displayed text when there is no options, you can also use slot empty, the default is 'No Data'\n */\n noDataText: String,\n /**\n * @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'\n */\n noMatchText: String,\n /**\n * @description function that gets called when the input value changes. Its parameter is the current input value. To use this, `filterable` must be true\n */\n remoteMethod: Function,\n /**\n * @description whether reserve the keyword after select filtered option.\n */\n reserveKeyword: {\n type: Boolean,\n default: true,\n },\n /**\n * @description data of the options, the key of `value` and `label` can be customize by `props`\n */\n options: {\n type: definePropType<OptionType[]>(Array),\n required: true,\n },\n /**\n * @description placeholder, the default is 'Please select'\n */\n placeholder: {\n type: String,\n },\n /**\n * @description whether select dropdown is teleported, if `true` it will be teleported to where `append-to` sets\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description custom class name for Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({} as Partial<Options>),\n },\n /**\n * @description whether search data from server\n */\n remote: Boolean,\n /**\n * @description size of component\n */\n size: useSizeProp,\n /**\n * @description configuration options, see the following table\n */\n props: {\n type: definePropType<Props>(Object),\n default: () => defaultProps,\n },\n /**\n * @description unique identity key name for value, required when value is an object\n */\n valueKey: {\n type: String,\n default: 'value',\n },\n /**\n * @description Controls whether the scrollbar is always displayed\n */\n scrollbarAlwaysOn: Boolean,\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the dropdown\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description Determines whether the arrow is displayed\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description position of dropdown\n */\n placement: {\n type: definePropType<Placement>(String),\n values: placements,\n default: 'bottom-start',\n },\n /**\n * @description list of possible positions for dropdown\n */\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: ['bottom-start', 'top-start', 'right', 'left'],\n },\n /**\n * @description tag type\n */\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: { ...tagProps.effect, default: 'light' },\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description which element the select dropdown appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n /**\n * @description if it is `true`, the width of the dropdown panel is the same as the input box.\n * if it is `false`, the width is automatically calculated based on the value of `label`,\n * or it can be set to a number to make it a fixed width\n */\n fitInputWidth: {\n type: [Boolean, Number],\n default: true,\n validator(val) {\n return isBoolean(val) || isNumber(val)\n },\n },\n suffixIcon: {\n type: iconPropType,\n default: ArrowDown,\n },\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport const optionV2Props = buildProps({\n data: Array,\n disabled: Boolean,\n hovering: Boolean,\n item: {\n type: definePropType<Option>(Object),\n required: true,\n },\n index: Number,\n style: Object,\n selected: Boolean,\n created: Boolean,\n} as const)\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const selectV2Emits = {\n [UPDATE_MODEL_EVENT]: (val: SelectV2Props['modelValue']) => true,\n [CHANGE_EVENT]: (val: SelectV2Props['modelValue']) => true,\n 'remove-tag': (val: unknown) => true,\n 'visible-change': (visible: boolean) => true,\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\nexport const optionV2Emits = {\n hover: (index?: number) => isNumber(index),\n select: (val: Option, index?: number) => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SelectV2Props = ExtractPropTypes<typeof selectV2Props>\nexport type SelectV2PropsPublic = __ExtractPublicPropTypes<typeof selectV2Props>\nexport type OptionV2Props = ExtractPropTypes<typeof optionV2Props>\nexport type OptionV2PropsPublic = __ExtractPublicPropTypes<typeof optionV2Props>\nexport type SelectV2EmitFn = EmitFn<typeof selectV2Emits>\nexport type OptionV2EmitFn = EmitFn<typeof optionV2Emits>\n\nexport type SelectV2Instance = InstanceType<typeof SelectV2> & unknown\n"],"names":[],"mappings":";;;;;;;;;;;;;AAkBY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,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AE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,IAAI;AACrC,EAAE,CAAC,YAAY,GAAG,CAAC,GAAG,KAAK,IAAI;AAC/B,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,IAAI;AAC7B,EAAE,gBAAgB,EAAE,CAAC,OAAO,KAAK,IAAI;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC1C,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACnC,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI;AAC9B;;;;"}
1
+ {"version":3,"file":"defaults.mjs","sources":["../../../../../../packages/components/select-v2/src/defaults.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport {\n buildProps,\n definePropType,\n iconPropType,\n isBoolean,\n isNumber,\n} from '@element-plus/utils'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { ArrowDown, CircleClose } from '@element-plus/icons-vue'\nimport { tagProps } from '../../tag'\nimport { defaultProps } from './useProps'\nimport SelectV2 from './select.vue'\n\nimport type { Option, OptionType } from './select.types'\nimport type { Props } from './useProps'\nimport type { EmitFn } from '@element-plus/utils/vue/typescript'\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type {\n Options,\n Placement,\n PopperEffect,\n} from '@element-plus/components/popper'\n\nexport const selectV2Props = buildProps({\n /**\n * @description whether creating new items is allowed. To use this, `filterable` must be true\n */\n allowCreate: Boolean,\n /**\n * @description autocomplete of select input\n */\n autocomplete: {\n type: definePropType<'none' | 'both' | 'list' | 'inline'>(String),\n default: 'none',\n },\n /**\n * @description for non-filterable Select, this prop decides if the option menu pops up when the input is focused\n */\n automaticDropdown: Boolean,\n /**\n * @description whether select can be cleared\n */\n clearable: Boolean,\n /**\n * @description custom clear icon\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether to collapse tags to a text when multiple selecting\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\n */\n defaultFirstOption: Boolean,\n /**\n * @description is disabled\n */\n disabled: Boolean,\n /**\n * @description\n */\n estimatedOptionHeight: {\n type: Number,\n default: undefined,\n },\n /**\n * @description whether Select is filterable\n */\n filterable: Boolean,\n /**\n * @description custom filter method, the first parameter is the current input value. To use this, `filterable` must be true\n */\n filterMethod: {\n type: definePropType<(query: string) => void>(Function),\n },\n /**\n * @description The height of the dropdown panel, 34px for each item\n */\n height: {\n type: Number,\n default: 274, // same as select dropdown menu\n },\n /**\n * @description The height of the dropdown item\n */\n itemHeight: {\n type: Number,\n default: 34,\n },\n /**\n * @description native input id\n */\n id: String,\n /**\n * @description whether Select is loading data from server\n */\n loading: Boolean,\n /**\n * @description displayed text while loading data from server, default is 'Loading'\n */\n loadingText: String,\n /**\n * @description biding value\n */\n modelValue: {\n // eslint-disable-next-line prettier/prettier\n type: definePropType<\n any[] | string | number | boolean | Record<string, any> | any\n >([Array, String, Number, Boolean, Object]),\n },\n /**\n * @description is multiple\n */\n multiple: Boolean,\n /**\n * @description maximum number of options user can select when multiple is true. No limit when set to 0\n */\n multipleLimit: {\n type: Number,\n default: 0,\n },\n /**\n * @description the name attribute of select input\n */\n name: String,\n /**\n * @description displayed text when there is no options, you can also use slot empty, the default is 'No Data'\n */\n noDataText: String,\n /**\n * @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'\n */\n noMatchText: String,\n /**\n * @description function that gets called when the input value changes. Its parameter is the current input value. To use this, `filterable` must be true\n */\n remoteMethod: {\n type: definePropType<(query: string) => void>(Function),\n },\n /**\n * @description whether reserve the keyword after select filtered option.\n */\n reserveKeyword: {\n type: Boolean,\n default: true,\n },\n /**\n * @description data of the options, the key of `value` and `label` can be customize by `props`\n */\n options: {\n type: definePropType<OptionType[]>(Array),\n required: true,\n },\n /**\n * @description placeholder, the default is 'Please select'\n */\n placeholder: {\n type: String,\n },\n /**\n * @description whether select dropdown is teleported, if `true` it will be teleported to where `append-to` sets\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description custom class name for Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({} as Partial<Options>),\n },\n /**\n * @description whether search data from server\n */\n remote: Boolean,\n /**\n * @description size of component\n */\n size: useSizeProp,\n /**\n * @description configuration options, see the following table\n */\n props: {\n type: definePropType<Props>(Object),\n default: () => defaultProps,\n },\n /**\n * @description unique identity key name for value, required when value is an object\n */\n valueKey: {\n type: String,\n default: 'value',\n },\n /**\n * @description Controls whether the scrollbar is always displayed\n */\n scrollbarAlwaysOn: Boolean,\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the dropdown\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description Determines whether the arrow is displayed\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description position of dropdown\n */\n placement: {\n type: definePropType<Placement>(String),\n values: placements,\n default: 'bottom-start',\n },\n /**\n * @description list of possible positions for dropdown\n */\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: ['bottom-start', 'top-start', 'right', 'left'],\n },\n /**\n * @description tag type\n */\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: { ...tagProps.effect, default: 'light' },\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description which element the select dropdown appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n /**\n * @description if it is `true`, the width of the dropdown panel is the same as the input box.\n * if it is `false`, the width is automatically calculated based on the value of `label`,\n * or it can be set to a number to make it a fixed width\n */\n fitInputWidth: {\n type: [Boolean, Number],\n default: true,\n validator(val) {\n return isBoolean(val) || isNumber(val)\n },\n },\n suffixIcon: {\n type: iconPropType,\n default: ArrowDown,\n },\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport const optionV2Props = buildProps({\n data: Array,\n disabled: Boolean,\n hovering: Boolean,\n item: {\n type: definePropType<Option>(Object),\n required: true,\n },\n index: Number,\n style: Object,\n selected: Boolean,\n created: Boolean,\n} as const)\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const selectV2Emits = {\n [UPDATE_MODEL_EVENT]: (val: SelectV2Props['modelValue']) => true,\n [CHANGE_EVENT]: (val: SelectV2Props['modelValue']) => true,\n 'remove-tag': (val: unknown) => true,\n 'visible-change': (visible: boolean) => true,\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\nexport const optionV2Emits = {\n hover: (index?: number) => isNumber(index),\n select: (val: Option, index?: number) => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SelectV2Props = ExtractPropTypes<typeof selectV2Props>\nexport type SelectV2PropsPublic = __ExtractPublicPropTypes<typeof selectV2Props>\nexport type OptionV2Props = ExtractPropTypes<typeof optionV2Props>\nexport type OptionV2PropsPublic = __ExtractPublicPropTypes<typeof optionV2Props>\nexport type SelectV2EmitFn = EmitFn<typeof selectV2Emits>\nexport type OptionV2EmitFn = EmitFn<typeof optionV2Emits>\n\nexport type SelectV2Instance = InstanceType<typeof SelectV2> & unknown\n"],"names":[],"mappings":";;;;;;;;;;;;;AAkBY,MAAC,aAAa,GAAG,UAAU,CAAC;AACxC,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,mBAAmB,EAAE,OAAO;AAC9B,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,qBAAqB,EAAE;AACzB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,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AAE,CAAC,GAAG,KAAK,IAAI;AAC7B,EAAE,gBAAgB,EAAE,CAAC,OAAO,KAAK,IAAI;AACrC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC1C,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,KAAK,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK,CAAC;AACnC,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI;AAC9B;;;;"}
@@ -20,7 +20,12 @@ declare const _default: import("vue").DefineComponent<{
20
20
  readonly disabled: BooleanConstructor;
21
21
  readonly estimatedOptionHeight: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
22
22
  readonly filterable: BooleanConstructor;
23
- readonly filterMethod: FunctionConstructor;
23
+ readonly filterMethod: {
24
+ readonly type: import("vue").PropType<(query: string) => void>;
25
+ readonly required: false;
26
+ readonly validator: ((val: unknown) => boolean) | undefined;
27
+ __epPropKey: true;
28
+ };
24
29
  readonly height: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 274, boolean>;
25
30
  readonly itemHeight: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 34, boolean>;
26
31
  readonly id: StringConstructor;
@@ -37,7 +42,12 @@ declare const _default: import("vue").DefineComponent<{
37
42
  readonly name: StringConstructor;
38
43
  readonly noDataText: StringConstructor;
39
44
  readonly noMatchText: StringConstructor;
40
- readonly remoteMethod: FunctionConstructor;
45
+ readonly remoteMethod: {
46
+ readonly type: import("vue").PropType<(query: string) => void>;
47
+ readonly required: false;
48
+ readonly validator: ((val: unknown) => boolean) | undefined;
49
+ __epPropKey: true;
50
+ };
41
51
  readonly reserveKeyword: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
42
52
  readonly options: {
43
53
  readonly type: import("vue").PropType<import("./select.types").OptionType[]>;
@@ -247,7 +257,12 @@ declare const _default: import("vue").DefineComponent<{
247
257
  readonly disabled: BooleanConstructor;
248
258
  readonly estimatedOptionHeight: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
249
259
  readonly filterable: BooleanConstructor;
250
- readonly filterMethod: FunctionConstructor;
260
+ readonly filterMethod: {
261
+ readonly type: import("vue").PropType<(query: string) => void>;
262
+ readonly required: false;
263
+ readonly validator: ((val: unknown) => boolean) | undefined;
264
+ __epPropKey: true;
265
+ };
251
266
  readonly height: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 274, boolean>;
252
267
  readonly itemHeight: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 34, boolean>;
253
268
  readonly id: StringConstructor;
@@ -264,7 +279,12 @@ declare const _default: import("vue").DefineComponent<{
264
279
  readonly name: StringConstructor;
265
280
  readonly noDataText: StringConstructor;
266
281
  readonly noMatchText: StringConstructor;
267
- readonly remoteMethod: FunctionConstructor;
282
+ readonly remoteMethod: {
283
+ readonly type: import("vue").PropType<(query: string) => void>;
284
+ readonly required: false;
285
+ readonly validator: ((val: unknown) => boolean) | undefined;
286
+ __epPropKey: true;
287
+ };
268
288
  readonly reserveKeyword: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
269
289
  readonly options: {
270
290
  readonly type: import("vue").PropType<import("./select.types").OptionType[]>;
@@ -1,7 +1,7 @@
1
- import Steps from './src/steps.mjs';
1
+ import Steps from './src/steps2.mjs';
2
2
  import Step from './src/item2.mjs';
3
3
  export { stepProps } from './src/item.mjs';
4
- export { stepsEmits, stepsProps } from './src/steps2.mjs';
4
+ export { stepsEmits, stepsProps } from './src/steps.mjs';
5
5
  export { STEPS_INJECTION_KEY } from './src/tokens.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
7
7
 
@@ -1,47 +1,41 @@
1
- import { defineComponent, getCurrentInstance, watch, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createVNode } from 'vue';
2
- import { stepsProps, stepsEmits } from './steps2.mjs';
3
- import { STEPS_INJECTION_KEY } from './tokens.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
6
- import { useOrderedChildren } from '../../../hooks/use-ordered-children/index.mjs';
1
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
7
2
  import { CHANGE_EVENT } from '../../../constants/event.mjs';
3
+ import { isNumber } from '../../../utils/types.mjs';
8
4
 
9
- const __default__ = defineComponent({
10
- name: "ElSteps"
11
- });
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- props: stepsProps,
15
- emits: stepsEmits,
16
- setup(__props, { emit }) {
17
- const props = __props;
18
- const ns = useNamespace("steps");
19
- const {
20
- children: steps,
21
- addChild: addStep,
22
- removeChild: removeStep,
23
- ChildrenSorter: StepsSorter
24
- } = useOrderedChildren(getCurrentInstance(), "ElStep");
25
- watch(steps, () => {
26
- steps.value.forEach((instance, index) => {
27
- instance.setIndex(index);
28
- });
29
- });
30
- provide(STEPS_INJECTION_KEY, { props, steps, addStep, removeStep });
31
- watch(() => props.active, (newVal, oldVal) => {
32
- emit(CHANGE_EVENT, newVal, oldVal);
33
- });
34
- return (_ctx, _cache) => {
35
- return openBlock(), createElementBlock("div", {
36
- class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
37
- }, [
38
- renderSlot(_ctx.$slots, "default"),
39
- createVNode(unref(StepsSorter))
40
- ], 2);
41
- };
5
+ const stepsProps = buildProps({
6
+ space: {
7
+ type: [Number, String],
8
+ default: ""
9
+ },
10
+ active: {
11
+ type: Number,
12
+ default: 0
13
+ },
14
+ direction: {
15
+ type: String,
16
+ default: "horizontal",
17
+ values: ["horizontal", "vertical"]
18
+ },
19
+ alignCenter: {
20
+ type: Boolean
21
+ },
22
+ simple: {
23
+ type: Boolean
24
+ },
25
+ finishStatus: {
26
+ type: String,
27
+ values: ["wait", "process", "finish", "error", "success"],
28
+ default: "finish"
29
+ },
30
+ processStatus: {
31
+ type: String,
32
+ values: ["wait", "process", "finish", "error", "success"],
33
+ default: "process"
42
34
  }
43
35
  });
44
- var Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "steps.vue"]]);
36
+ const stepsEmits = {
37
+ [CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
38
+ };
45
39
 
46
- export { Steps as default };
40
+ export { stepsEmits, stepsProps };
47
41
  //# sourceMappingURL=steps.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps.mjs","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n <steps-sorter />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, provide, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\nimport { STEPS_INJECTION_KEY } from './tokens'\n\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\nconst {\n children: steps,\n addChild: addStep,\n removeChild: removeStep,\n ChildrenSorter: StepsSorter,\n} = useOrderedChildren<StepItemState>(getCurrentInstance()!, 'ElStep')\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide(STEPS_INJECTION_KEY, { props, steps, addStep, removeStep })\n\nwatch(\n () => props.active,\n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,CAAA;;;;;;;;;;;;"}
1
+ {"version":3,"file":"steps.mjs","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\n\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n /**\n * @description the spacing of each step, will be responsive if omitted. Supports percentage.\n */\n space: {\n type: [Number, String],\n default: '',\n },\n /**\n * @description current activation step\n */\n active: {\n type: Number,\n default: 0,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n /**\n * @description center title and description\n */\n alignCenter: {\n type: Boolean,\n },\n /**\n * @description whether to apply simple theme\n */\n simple: {\n type: Boolean,\n },\n /**\n * @description status of end step\n */\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n /**\n * @description status of current step\n */\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\nexport type StepsPropsPublic = __ExtractPublicPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps> & unknown\n"],"names":[],"mappings":";;;;AAEY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAAC,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AACtE;;;;"}
@@ -1,41 +1,47 @@
1
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, getCurrentInstance, watch, provide, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createVNode } from 'vue';
2
+ import { stepsProps, stepsEmits } from './steps.mjs';
3
+ import { STEPS_INJECTION_KEY } from './tokens.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
6
+ import { useOrderedChildren } from '../../../hooks/use-ordered-children/index.mjs';
2
7
  import { CHANGE_EVENT } from '../../../constants/event.mjs';
3
- import { isNumber } from '../../../utils/types.mjs';
4
8
 
5
- const stepsProps = buildProps({
6
- space: {
7
- type: [Number, String],
8
- default: ""
9
- },
10
- active: {
11
- type: Number,
12
- default: 0
13
- },
14
- direction: {
15
- type: String,
16
- default: "horizontal",
17
- values: ["horizontal", "vertical"]
18
- },
19
- alignCenter: {
20
- type: Boolean
21
- },
22
- simple: {
23
- type: Boolean
24
- },
25
- finishStatus: {
26
- type: String,
27
- values: ["wait", "process", "finish", "error", "success"],
28
- default: "finish"
29
- },
30
- processStatus: {
31
- type: String,
32
- values: ["wait", "process", "finish", "error", "success"],
33
- default: "process"
9
+ const __default__ = defineComponent({
10
+ name: "ElSteps"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: stepsProps,
15
+ emits: stepsEmits,
16
+ setup(__props, { emit }) {
17
+ const props = __props;
18
+ const ns = useNamespace("steps");
19
+ const {
20
+ children: steps,
21
+ addChild: addStep,
22
+ removeChild: removeStep,
23
+ ChildrenSorter: StepsSorter
24
+ } = useOrderedChildren(getCurrentInstance(), "ElStep");
25
+ watch(steps, () => {
26
+ steps.value.forEach((instance, index) => {
27
+ instance.setIndex(index);
28
+ });
29
+ });
30
+ provide(STEPS_INJECTION_KEY, { props, steps, addStep, removeStep });
31
+ watch(() => props.active, (newVal, oldVal) => {
32
+ emit(CHANGE_EVENT, newVal, oldVal);
33
+ });
34
+ return (_ctx, _cache) => {
35
+ return openBlock(), createElementBlock("div", {
36
+ class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.simple ? "simple" : _ctx.direction)])
37
+ }, [
38
+ renderSlot(_ctx.$slots, "default"),
39
+ createVNode(unref(StepsSorter))
40
+ ], 2);
41
+ };
34
42
  }
35
43
  });
36
- const stepsEmits = {
37
- [CHANGE_EVENT]: (newVal, oldVal) => [newVal, oldVal].every(isNumber)
38
- };
44
+ var Steps = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "steps.vue"]]);
39
45
 
40
- export { stepsEmits, stepsProps };
46
+ export { Steps as default };
41
47
  //# sourceMappingURL=steps2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"steps2.mjs","sources":["../../../../../../packages/components/steps/src/steps.ts"],"sourcesContent":["import { CHANGE_EVENT } from '@element-plus/constants'\nimport { buildProps, isNumber } from '@element-plus/utils'\n\nimport type Steps from './steps.vue'\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\n\nexport const stepsProps = buildProps({\n /**\n * @description the spacing of each step, will be responsive if omitted. Supports percentage.\n */\n space: {\n type: [Number, String],\n default: '',\n },\n /**\n * @description current activation step\n */\n active: {\n type: Number,\n default: 0,\n },\n /**\n * @description display direction\n */\n direction: {\n type: String,\n default: 'horizontal',\n values: ['horizontal', 'vertical'],\n },\n /**\n * @description center title and description\n */\n alignCenter: {\n type: Boolean,\n },\n /**\n * @description whether to apply simple theme\n */\n simple: {\n type: Boolean,\n },\n /**\n * @description status of end step\n */\n finishStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'finish',\n },\n /**\n * @description status of current step\n */\n processStatus: {\n type: String,\n values: ['wait', 'process', 'finish', 'error', 'success'],\n default: 'process',\n },\n} as const)\nexport type StepsProps = ExtractPropTypes<typeof stepsProps>\nexport type StepsPropsPublic = __ExtractPublicPropTypes<typeof stepsProps>\n\nexport const stepsEmits = {\n [CHANGE_EVENT]: (newVal: number, oldVal: number) =>\n [newVal, oldVal].every(isNumber),\n}\nexport type StepsEmits = typeof stepsEmits\n\nexport type StepsInstance = InstanceType<typeof Steps> & unknown\n"],"names":[],"mappings":";;;;AAEY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;AAC7D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,CAAC,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AACtE;;;;"}
1
+ {"version":3,"file":"steps2.mjs","sources":["../../../../../../packages/components/steps/src/steps.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.m(simple ? 'simple' : direction)]\">\n <slot />\n <steps-sorter />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, provide, watch } from 'vue'\nimport { CHANGE_EVENT } from '@element-plus/constants'\nimport { useNamespace, useOrderedChildren } from '@element-plus/hooks'\nimport { stepsEmits, stepsProps } from './steps'\nimport { STEPS_INJECTION_KEY } from './tokens'\n\nimport type { StepItemState } from './item.vue'\n\ndefineOptions({\n name: 'ElSteps',\n})\n\nconst props = defineProps(stepsProps)\nconst emit = defineEmits(stepsEmits)\n\nconst ns = useNamespace('steps')\nconst {\n children: steps,\n addChild: addStep,\n removeChild: removeStep,\n ChildrenSorter: StepsSorter,\n} = useOrderedChildren<StepItemState>(getCurrentInstance()!, 'ElStep')\n\nwatch(steps, () => {\n steps.value.forEach((instance: StepItemState, index: number) => {\n instance.setIndex(index)\n })\n})\n\nprovide(STEPS_INJECTION_KEY, { props, steps, addStep, removeStep })\n\nwatch(\n () => props.active,\n (newVal: number, oldVal: number) => {\n emit(CHANGE_EVENT, newVal, oldVal)\n }\n)\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref"],"mappings":";;;;;;;;mCAgBc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA;AAAA,MACJ,QAAU,EAAA,KAAA;AAAA,MACV,QAAU,EAAA,OAAA;AAAA,MACV,WAAa,EAAA,UAAA;AAAA,MACb,cAAgB,EAAA,WAAA;AAAA,KACd,GAAA,kBAAA,CAAkC,kBAAmB,EAAA,EAAI,QAAQ,CAAA,CAAA;AAErE,IAAA,KAAA,CAAM,OAAO,MAAM;AACjB,MAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,CAAC,QAAA,EAAyB,KAAkB,KAAA;AAC9D,QAAA,QAAA,CAAS,SAAS,KAAK,CAAA,CAAA;AAAA,OACxB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAED,IAAA,OAAA,CAAQ,qBAAqB,EAAE,KAAA,EAAO,KAAO,EAAA,OAAA,EAAS,YAAY,CAAA,CAAA;AAElE,IAAA,KAAA,CAAA,MAAA,KAAA,CAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,KAAA;AAAA,MACE,iBAAY,EAAA,MAAA,EAAA,MAAA,CAAA,CAAA;AAAA,KACZ,CAAA,CAAC;AACC,IAAK,OAAA,CAAA,IAAA,EAAA,MAAA;AAA4B,MACnC,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA;AAAA,QACF,KAAA,EAAAC,cAAA,CAAA,CAAAC,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,EAAAA,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,MAAA,GAAA,QAAA,GAAA,IAAA,CAAA,SAAA,CAAA,CAAA,CAAA;;;;;;;;;;;;"}
@@ -1,9 +1,9 @@
1
1
  import Tabs from './src/tabs.mjs';
2
2
  export { tabsEmits, tabsProps } from './src/tabs.mjs';
3
- import TabPane from './src/tab-pane2.mjs';
3
+ import TabPane from './src/tab-pane.mjs';
4
4
  export { tabBarProps } from './src/tab-bar.mjs';
5
5
  export { tabNavEmits, tabNavProps } from './src/tab-nav.mjs';
6
- export { tabPaneProps } from './src/tab-pane.mjs';
6
+ export { tabPaneProps } from './src/tab-pane2.mjs';
7
7
  export { tabsRootContextKey } from './src/constants.mjs';
8
8
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
9
9
 
@@ -1,17 +1,86 @@
1
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, getCurrentInstance, useSlots, inject, ref, computed, watch, reactive, onBeforeUnmount, onBeforeUpdate, unref, withDirectives, openBlock, createElementBlock, normalizeClass, renderSlot, vShow, createCommentVNode } from 'vue';
2
+ import { eagerComputed } from '@vueuse/core';
3
+ import { tabsRootContextKey } from './constants.mjs';
4
+ import { tabPaneProps } from './tab-pane2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { throwError } from '../../../utils/error.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
8
 
3
- const tabPaneProps = buildProps({
4
- label: {
5
- type: String,
6
- default: ""
7
- },
8
- name: {
9
- type: [String, Number]
10
- },
11
- closable: Boolean,
12
- disabled: Boolean,
13
- lazy: Boolean
9
+ const COMPONENT_NAME = "ElTabPane";
10
+ const __default__ = defineComponent({
11
+ name: COMPONENT_NAME
14
12
  });
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ props: tabPaneProps,
16
+ setup(__props) {
17
+ const props = __props;
18
+ const instance = getCurrentInstance();
19
+ const slots = useSlots();
20
+ const tabsRoot = inject(tabsRootContextKey);
21
+ if (!tabsRoot)
22
+ throwError(COMPONENT_NAME, "usage: <el-tabs><el-tab-pane /></el-tabs/>");
23
+ const ns = useNamespace("tab-pane");
24
+ const paneRef = ref();
25
+ const index = ref();
26
+ const isClosable = computed(() => props.closable || tabsRoot.props.closable);
27
+ const active = eagerComputed(() => {
28
+ var _a;
29
+ return tabsRoot.currentName.value === ((_a = props.name) != null ? _a : index.value);
30
+ });
31
+ const loaded = ref(active.value);
32
+ const paneName = computed(() => {
33
+ var _a;
34
+ return (_a = props.name) != null ? _a : index.value;
35
+ });
36
+ const shouldBeRender = eagerComputed(() => !props.lazy || loaded.value || active.value);
37
+ const isFocusInsidePane = () => {
38
+ var _a;
39
+ return (_a = paneRef.value) == null ? void 0 : _a.contains(document.activeElement);
40
+ };
41
+ watch(active, (val) => {
42
+ if (val)
43
+ loaded.value = true;
44
+ });
45
+ const pane = reactive({
46
+ uid: instance.uid,
47
+ getVnode: () => instance.vnode,
48
+ slots,
49
+ props,
50
+ paneName,
51
+ active,
52
+ index,
53
+ isClosable,
54
+ isFocusInsidePane
55
+ });
56
+ tabsRoot.registerPane(pane);
57
+ onBeforeUnmount(() => {
58
+ tabsRoot.unregisterPane(pane);
59
+ });
60
+ onBeforeUpdate(() => {
61
+ var _a;
62
+ if (slots.label)
63
+ (_a = tabsRoot.nav$.value) == null ? void 0 : _a.scheduleRender();
64
+ });
65
+ return (_ctx, _cache) => {
66
+ return unref(shouldBeRender) ? withDirectives((openBlock(), createElementBlock("div", {
67
+ key: 0,
68
+ id: `pane-${unref(paneName)}`,
69
+ ref_key: "paneRef",
70
+ ref: paneRef,
71
+ class: normalizeClass(unref(ns).b()),
72
+ role: "tabpanel",
73
+ "aria-hidden": !unref(active),
74
+ "aria-labelledby": `tab-${unref(paneName)}`
75
+ }, [
76
+ renderSlot(_ctx.$slots, "default")
77
+ ], 10, ["id", "aria-hidden", "aria-labelledby"])), [
78
+ [vShow, unref(active)]
79
+ ]) : createCommentVNode("v-if", true);
80
+ };
81
+ }
82
+ });
83
+ var TabPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "tab-pane.vue"]]);
15
84
 
16
- export { tabPaneProps };
85
+ export { TabPane as default };
17
86
  //# sourceMappingURL=tab-pane.mjs.map