@element-plus/nightly 0.0.20250101 → 0.0.20250102

Sign up to get free protection for your applications and to get access to all the features.
Files changed (645) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +20 -32
  3. package/dist/index.full.min.js +14 -14
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +15 -15
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +20 -32
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar-eg.js +1 -1
  13. package/dist/locale/ar-eg.min.js +1 -1
  14. package/dist/locale/ar-eg.min.mjs +1 -1
  15. package/dist/locale/ar-eg.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.mjs +1 -1
  20. package/dist/locale/az.js +1 -1
  21. package/dist/locale/az.min.js +1 -1
  22. package/dist/locale/az.min.mjs +1 -1
  23. package/dist/locale/az.mjs +1 -1
  24. package/dist/locale/bg.js +1 -1
  25. package/dist/locale/bg.min.js +1 -1
  26. package/dist/locale/bg.min.mjs +1 -1
  27. package/dist/locale/bg.mjs +1 -1
  28. package/dist/locale/bn.js +1 -1
  29. package/dist/locale/bn.min.js +1 -1
  30. package/dist/locale/bn.min.mjs +1 -1
  31. package/dist/locale/bn.mjs +1 -1
  32. package/dist/locale/ca.js +1 -1
  33. package/dist/locale/ca.min.js +1 -1
  34. package/dist/locale/ca.min.mjs +1 -1
  35. package/dist/locale/ca.mjs +1 -1
  36. package/dist/locale/ckb.js +1 -1
  37. package/dist/locale/ckb.min.js +1 -1
  38. package/dist/locale/ckb.min.mjs +1 -1
  39. package/dist/locale/ckb.mjs +1 -1
  40. package/dist/locale/cs.js +1 -1
  41. package/dist/locale/cs.min.js +1 -1
  42. package/dist/locale/cs.min.mjs +1 -1
  43. package/dist/locale/cs.mjs +1 -1
  44. package/dist/locale/da.js +1 -1
  45. package/dist/locale/da.min.js +1 -1
  46. package/dist/locale/da.min.mjs +1 -1
  47. package/dist/locale/da.mjs +1 -1
  48. package/dist/locale/de.js +1 -1
  49. package/dist/locale/de.min.js +1 -1
  50. package/dist/locale/de.min.mjs +1 -1
  51. package/dist/locale/de.mjs +1 -1
  52. package/dist/locale/el.js +1 -1
  53. package/dist/locale/el.min.js +1 -1
  54. package/dist/locale/el.min.mjs +1 -1
  55. package/dist/locale/el.mjs +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/en.min.js +1 -1
  58. package/dist/locale/en.min.mjs +1 -1
  59. package/dist/locale/en.mjs +1 -1
  60. package/dist/locale/eo.js +1 -1
  61. package/dist/locale/eo.min.js +1 -1
  62. package/dist/locale/eo.min.mjs +1 -1
  63. package/dist/locale/eo.mjs +1 -1
  64. package/dist/locale/es.js +1 -1
  65. package/dist/locale/es.min.js +1 -1
  66. package/dist/locale/es.min.mjs +1 -1
  67. package/dist/locale/es.mjs +1 -1
  68. package/dist/locale/et.js +1 -1
  69. package/dist/locale/et.min.js +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +1 -1
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.mjs +1 -1
  75. package/dist/locale/eu.mjs +1 -1
  76. package/dist/locale/fa.js +1 -1
  77. package/dist/locale/fa.min.js +1 -1
  78. package/dist/locale/fa.min.mjs +1 -1
  79. package/dist/locale/fa.mjs +1 -1
  80. package/dist/locale/fi.js +1 -1
  81. package/dist/locale/fi.min.js +1 -1
  82. package/dist/locale/fi.min.mjs +1 -1
  83. package/dist/locale/fi.mjs +1 -1
  84. package/dist/locale/fr.js +1 -1
  85. package/dist/locale/fr.min.js +1 -1
  86. package/dist/locale/fr.min.mjs +1 -1
  87. package/dist/locale/fr.mjs +1 -1
  88. package/dist/locale/he.js +1 -1
  89. package/dist/locale/he.min.js +1 -1
  90. package/dist/locale/he.min.mjs +1 -1
  91. package/dist/locale/he.mjs +1 -1
  92. package/dist/locale/hr.js +1 -1
  93. package/dist/locale/hr.min.js +1 -1
  94. package/dist/locale/hr.min.mjs +1 -1
  95. package/dist/locale/hr.mjs +1 -1
  96. package/dist/locale/hu.js +1 -1
  97. package/dist/locale/hu.min.js +1 -1
  98. package/dist/locale/hu.min.mjs +1 -1
  99. package/dist/locale/hu.mjs +1 -1
  100. package/dist/locale/hy-am.js +1 -1
  101. package/dist/locale/hy-am.min.js +1 -1
  102. package/dist/locale/hy-am.min.mjs +1 -1
  103. package/dist/locale/hy-am.mjs +1 -1
  104. package/dist/locale/id.js +1 -1
  105. package/dist/locale/id.min.js +1 -1
  106. package/dist/locale/id.min.mjs +1 -1
  107. package/dist/locale/id.mjs +1 -1
  108. package/dist/locale/it.js +1 -1
  109. package/dist/locale/it.min.js +1 -1
  110. package/dist/locale/it.min.mjs +1 -1
  111. package/dist/locale/it.mjs +1 -1
  112. package/dist/locale/ja.js +1 -1
  113. package/dist/locale/ja.min.js +1 -1
  114. package/dist/locale/ja.min.mjs +1 -1
  115. package/dist/locale/ja.mjs +1 -1
  116. package/dist/locale/kk.js +1 -1
  117. package/dist/locale/kk.min.js +1 -1
  118. package/dist/locale/kk.min.mjs +1 -1
  119. package/dist/locale/kk.mjs +1 -1
  120. package/dist/locale/km.js +1 -1
  121. package/dist/locale/km.min.js +1 -1
  122. package/dist/locale/km.min.mjs +1 -1
  123. package/dist/locale/km.mjs +1 -1
  124. package/dist/locale/ko.js +1 -1
  125. package/dist/locale/ko.min.js +1 -1
  126. package/dist/locale/ko.min.mjs +1 -1
  127. package/dist/locale/ko.mjs +1 -1
  128. package/dist/locale/ku.js +1 -1
  129. package/dist/locale/ku.min.js +1 -1
  130. package/dist/locale/ku.min.mjs +1 -1
  131. package/dist/locale/ku.mjs +1 -1
  132. package/dist/locale/ky.js +1 -1
  133. package/dist/locale/ky.min.js +1 -1
  134. package/dist/locale/ky.min.mjs +1 -1
  135. package/dist/locale/ky.mjs +1 -1
  136. package/dist/locale/lt.js +1 -1
  137. package/dist/locale/lt.min.js +1 -1
  138. package/dist/locale/lt.min.mjs +1 -1
  139. package/dist/locale/lt.mjs +1 -1
  140. package/dist/locale/lv.js +1 -1
  141. package/dist/locale/lv.min.js +1 -1
  142. package/dist/locale/lv.min.mjs +1 -1
  143. package/dist/locale/lv.mjs +1 -1
  144. package/dist/locale/mg.js +1 -1
  145. package/dist/locale/mg.min.js +1 -1
  146. package/dist/locale/mg.min.mjs +1 -1
  147. package/dist/locale/mg.mjs +1 -1
  148. package/dist/locale/mn.js +1 -1
  149. package/dist/locale/mn.min.js +1 -1
  150. package/dist/locale/mn.min.mjs +1 -1
  151. package/dist/locale/mn.mjs +1 -1
  152. package/dist/locale/ms.js +1 -1
  153. package/dist/locale/ms.min.js +1 -1
  154. package/dist/locale/ms.min.mjs +1 -1
  155. package/dist/locale/ms.mjs +1 -1
  156. package/dist/locale/my.js +1 -1
  157. package/dist/locale/my.min.js +1 -1
  158. package/dist/locale/my.min.mjs +1 -1
  159. package/dist/locale/my.mjs +1 -1
  160. package/dist/locale/nb-no.js +1 -1
  161. package/dist/locale/nb-no.min.js +1 -1
  162. package/dist/locale/nb-no.min.mjs +1 -1
  163. package/dist/locale/nb-no.mjs +1 -1
  164. package/dist/locale/nl.js +1 -1
  165. package/dist/locale/nl.min.js +1 -1
  166. package/dist/locale/nl.min.mjs +1 -1
  167. package/dist/locale/nl.mjs +1 -1
  168. package/dist/locale/pa.js +1 -1
  169. package/dist/locale/pa.min.js +1 -1
  170. package/dist/locale/pa.min.mjs +1 -1
  171. package/dist/locale/pa.mjs +1 -1
  172. package/dist/locale/pl.js +1 -1
  173. package/dist/locale/pl.min.js +1 -1
  174. package/dist/locale/pl.min.mjs +1 -1
  175. package/dist/locale/pl.mjs +1 -1
  176. package/dist/locale/pt-br.js +1 -1
  177. package/dist/locale/pt-br.min.js +1 -1
  178. package/dist/locale/pt-br.min.mjs +1 -1
  179. package/dist/locale/pt-br.mjs +1 -1
  180. package/dist/locale/pt.js +1 -1
  181. package/dist/locale/pt.min.js +1 -1
  182. package/dist/locale/pt.min.mjs +1 -1
  183. package/dist/locale/pt.mjs +1 -1
  184. package/dist/locale/ro.js +1 -1
  185. package/dist/locale/ro.min.js +1 -1
  186. package/dist/locale/ro.min.mjs +1 -1
  187. package/dist/locale/ro.mjs +1 -1
  188. package/dist/locale/ru.js +1 -1
  189. package/dist/locale/ru.min.js +1 -1
  190. package/dist/locale/ru.min.mjs +1 -1
  191. package/dist/locale/ru.mjs +1 -1
  192. package/dist/locale/sk.js +1 -1
  193. package/dist/locale/sk.min.js +1 -1
  194. package/dist/locale/sk.min.mjs +1 -1
  195. package/dist/locale/sk.mjs +1 -1
  196. package/dist/locale/sl.js +1 -1
  197. package/dist/locale/sl.min.js +1 -1
  198. package/dist/locale/sl.min.mjs +1 -1
  199. package/dist/locale/sl.mjs +1 -1
  200. package/dist/locale/sr.js +1 -1
  201. package/dist/locale/sr.min.js +1 -1
  202. package/dist/locale/sr.min.mjs +1 -1
  203. package/dist/locale/sr.mjs +1 -1
  204. package/dist/locale/sv.js +1 -1
  205. package/dist/locale/sv.min.js +1 -1
  206. package/dist/locale/sv.min.mjs +1 -1
  207. package/dist/locale/sv.mjs +1 -1
  208. package/dist/locale/sw.js +1 -1
  209. package/dist/locale/sw.min.js +1 -1
  210. package/dist/locale/sw.min.mjs +1 -1
  211. package/dist/locale/sw.mjs +1 -1
  212. package/dist/locale/ta.js +1 -1
  213. package/dist/locale/ta.min.js +1 -1
  214. package/dist/locale/ta.min.mjs +1 -1
  215. package/dist/locale/ta.mjs +1 -1
  216. package/dist/locale/th.js +1 -1
  217. package/dist/locale/th.min.js +1 -1
  218. package/dist/locale/th.min.mjs +1 -1
  219. package/dist/locale/th.mjs +1 -1
  220. package/dist/locale/tk.js +1 -1
  221. package/dist/locale/tk.min.js +1 -1
  222. package/dist/locale/tk.min.mjs +1 -1
  223. package/dist/locale/tk.mjs +1 -1
  224. package/dist/locale/tr.js +1 -1
  225. package/dist/locale/tr.min.js +1 -1
  226. package/dist/locale/tr.min.mjs +1 -1
  227. package/dist/locale/tr.mjs +1 -1
  228. package/dist/locale/ug-cn.js +1 -1
  229. package/dist/locale/ug-cn.min.js +1 -1
  230. package/dist/locale/ug-cn.min.mjs +1 -1
  231. package/dist/locale/ug-cn.mjs +1 -1
  232. package/dist/locale/uk.js +1 -1
  233. package/dist/locale/uk.min.js +1 -1
  234. package/dist/locale/uk.min.mjs +1 -1
  235. package/dist/locale/uk.mjs +1 -1
  236. package/dist/locale/uz-uz.js +1 -1
  237. package/dist/locale/uz-uz.min.js +1 -1
  238. package/dist/locale/uz-uz.min.mjs +1 -1
  239. package/dist/locale/uz-uz.mjs +1 -1
  240. package/dist/locale/vi.js +1 -1
  241. package/dist/locale/vi.min.js +1 -1
  242. package/dist/locale/vi.min.mjs +1 -1
  243. package/dist/locale/vi.mjs +1 -1
  244. package/dist/locale/zh-cn.js +1 -1
  245. package/dist/locale/zh-cn.min.js +1 -1
  246. package/dist/locale/zh-cn.min.mjs +1 -1
  247. package/dist/locale/zh-cn.mjs +1 -1
  248. package/dist/locale/zh-tw.js +1 -1
  249. package/dist/locale/zh-tw.min.js +1 -1
  250. package/dist/locale/zh-tw.min.mjs +1 -1
  251. package/dist/locale/zh-tw.mjs +1 -1
  252. package/es/components/anchor/index.mjs +1 -1
  253. package/es/components/anchor/src/anchor-link.mjs +5 -81
  254. package/es/components/anchor/src/anchor-link.mjs.map +1 -1
  255. package/es/components/anchor/src/anchor-link2.mjs +81 -5
  256. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  257. package/es/components/breadcrumb/index.mjs +4 -4
  258. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -8
  259. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  260. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +8 -56
  261. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  262. package/es/components/breadcrumb/src/breadcrumb.mjs +37 -10
  263. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  264. package/es/components/breadcrumb/src/breadcrumb2.mjs +10 -37
  265. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  266. package/es/components/calendar/index.mjs +2 -2
  267. package/es/components/calendar/src/calendar.mjs +134 -16
  268. package/es/components/calendar/src/calendar.mjs.map +1 -1
  269. package/es/components/calendar/src/calendar2.mjs +16 -134
  270. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  271. package/es/components/carousel/index.mjs +4 -4
  272. package/es/components/carousel/src/carousel-item.mjs +69 -7
  273. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  274. package/es/components/carousel/src/carousel-item2.mjs +7 -69
  275. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  276. package/es/components/carousel/src/carousel.mjs +61 -204
  277. package/es/components/carousel/src/carousel.mjs.map +1 -1
  278. package/es/components/carousel/src/carousel2.mjs +204 -61
  279. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  280. package/es/components/cascader-panel/src/index.mjs +1 -1
  281. package/es/components/cascader-panel/src/menu.mjs +1 -1
  282. package/es/components/cascader-panel/src/node.mjs +206 -115
  283. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  284. package/es/components/cascader-panel/src/node2.mjs +115 -206
  285. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  286. package/es/components/cascader-panel/src/store.mjs +1 -1
  287. package/es/components/check-tag/index.mjs +2 -2
  288. package/es/components/check-tag/src/check-tag.mjs +38 -14
  289. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  290. package/es/components/check-tag/src/check-tag2.mjs +14 -38
  291. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  292. package/es/components/checkbox/index.mjs +2 -2
  293. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  294. package/es/components/checkbox/src/checkbox.mjs +59 -119
  295. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  296. package/es/components/checkbox/src/checkbox2.mjs +119 -59
  297. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  298. package/es/components/color-picker/index.mjs +2 -2
  299. package/es/components/color-picker/src/color-picker.mjs +402 -40
  300. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  301. package/es/components/color-picker/src/color-picker2.mjs +40 -402
  302. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  303. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  304. package/es/components/descriptions/index.mjs +2 -2
  305. package/es/components/descriptions/src/description.mjs +126 -26
  306. package/es/components/descriptions/src/description.mjs.map +1 -1
  307. package/es/components/descriptions/src/description2.mjs +26 -126
  308. package/es/components/descriptions/src/description2.mjs.map +1 -1
  309. package/es/components/drawer/index.mjs +2 -2
  310. package/es/components/drawer/src/drawer.mjs +178 -26
  311. package/es/components/drawer/src/drawer.mjs.map +1 -1
  312. package/es/components/drawer/src/drawer2.mjs +26 -178
  313. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  314. package/es/components/dropdown/index.mjs +2 -2
  315. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  316. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  317. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  318. package/es/components/dropdown/src/dropdown.mjs +298 -102
  319. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  320. package/es/components/dropdown/src/dropdown2.mjs +102 -298
  321. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  322. package/es/components/index.mjs +29 -29
  323. package/es/components/link/index.mjs +2 -2
  324. package/es/components/link/src/link.mjs +24 -49
  325. package/es/components/link/src/link.mjs.map +1 -1
  326. package/es/components/link/src/link2.mjs +49 -24
  327. package/es/components/link/src/link2.mjs.map +1 -1
  328. package/es/components/menu/index.mjs +4 -4
  329. package/es/components/menu/src/menu-item-group.mjs +34 -4
  330. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  331. package/es/components/menu/src/menu-item-group2.mjs +4 -34
  332. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  333. package/es/components/menu/src/menu-item.mjs +14 -96
  334. package/es/components/menu/src/menu-item.mjs.map +1 -1
  335. package/es/components/menu/src/menu-item2.mjs +96 -14
  336. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  337. package/es/components/pagination/src/components/jumper.mjs +58 -7
  338. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  339. package/es/components/pagination/src/components/jumper2.mjs +7 -58
  340. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  341. package/es/components/pagination/src/pagination.mjs +1 -1
  342. package/es/components/popconfirm/index.mjs +2 -2
  343. package/es/components/popconfirm/src/popconfirm.mjs +45 -114
  344. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  345. package/es/components/popconfirm/src/popconfirm2.mjs +114 -45
  346. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  347. package/es/components/popover/src/popover.mjs +1 -1
  348. package/es/components/popper/index.mjs +4 -4
  349. package/es/components/popper/src/popper.mjs +32 -22
  350. package/es/components/popper/src/popper.mjs.map +1 -1
  351. package/es/components/popper/src/popper2.mjs +22 -32
  352. package/es/components/popper/src/popper2.mjs.map +1 -1
  353. package/es/components/popper/src/trigger.mjs +127 -31
  354. package/es/components/popper/src/trigger.mjs.map +1 -1
  355. package/es/components/popper/src/trigger2.mjs +31 -127
  356. package/es/components/popper/src/trigger2.mjs.map +1 -1
  357. package/es/components/progress/index.mjs +2 -2
  358. package/es/components/progress/src/progress.mjs +53 -207
  359. package/es/components/progress/src/progress.mjs.map +1 -1
  360. package/es/components/progress/src/progress2.mjs +207 -53
  361. package/es/components/progress/src/progress2.mjs.map +1 -1
  362. package/es/components/radio/index.mjs +4 -4
  363. package/es/components/radio/src/radio-button.mjs +1 -1
  364. package/es/components/radio/src/radio-group.mjs +65 -34
  365. package/es/components/radio/src/radio-group.mjs.map +1 -1
  366. package/es/components/radio/src/radio-group2.mjs +34 -65
  367. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  368. package/es/components/radio/src/radio.mjs +73 -32
  369. package/es/components/radio/src/radio.mjs.map +1 -1
  370. package/es/components/radio/src/radio2.mjs +32 -73
  371. package/es/components/radio/src/radio2.mjs.map +1 -1
  372. package/es/components/rate/index.mjs +2 -2
  373. package/es/components/rate/src/rate.mjs +83 -258
  374. package/es/components/rate/src/rate.mjs.map +1 -1
  375. package/es/components/rate/src/rate2.mjs +258 -83
  376. package/es/components/rate/src/rate2.mjs.map +1 -1
  377. package/es/components/select/src/select.vue.d.ts +4 -2
  378. package/es/components/select/src/select2.mjs +10 -2
  379. package/es/components/select/src/select2.mjs.map +1 -1
  380. package/es/components/select/src/useSelect.mjs +0 -13
  381. package/es/components/select/src/useSelect.mjs.map +1 -1
  382. package/es/components/select-v2/src/select.mjs +10 -2
  383. package/es/components/select-v2/src/select.mjs.map +1 -1
  384. package/es/components/select-v2/src/select.types.d.ts +0 -1
  385. package/es/components/select-v2/src/select.vue.d.ts +4 -5
  386. package/es/components/select-v2/src/useSelect.d.ts +0 -5
  387. package/es/components/select-v2/src/useSelect.mjs +0 -13
  388. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  389. package/es/components/skeleton/index.mjs +4 -4
  390. package/es/components/skeleton/src/skeleton-item.mjs +22 -17
  391. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  392. package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
  393. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  394. package/es/components/skeleton/src/skeleton.mjs +21 -48
  395. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  396. package/es/components/skeleton/src/skeleton2.mjs +48 -21
  397. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  398. package/es/components/steps/index.mjs +4 -4
  399. package/es/components/steps/src/item.mjs +19 -190
  400. package/es/components/steps/src/item.mjs.map +1 -1
  401. package/es/components/steps/src/item2.mjs +190 -19
  402. package/es/components/steps/src/item2.mjs.map +1 -1
  403. package/es/components/steps/src/steps.mjs +35 -38
  404. package/es/components/steps/src/steps.mjs.map +1 -1
  405. package/es/components/steps/src/steps2.mjs +38 -35
  406. package/es/components/steps/src/steps2.mjs.map +1 -1
  407. package/es/components/tabs/index.mjs +1 -1
  408. package/es/components/tabs/src/tab-bar.mjs +95 -7
  409. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  410. package/es/components/tabs/src/tab-bar2.mjs +7 -95
  411. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  412. package/es/components/tabs/src/tab-nav.mjs +1 -1
  413. package/es/components/tooltip/index.mjs +2 -2
  414. package/es/components/tooltip/src/tooltip.mjs +166 -30
  415. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  416. package/es/components/tooltip/src/tooltip2.mjs +30 -166
  417. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  418. package/es/components/tooltip/src/trigger.mjs +1 -1
  419. package/es/components/tooltip/src/trigger2.mjs +1 -1
  420. package/es/components/tooltip-v2/index.mjs +2 -2
  421. package/es/components/tooltip-v2/src/content.mjs +48 -110
  422. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  423. package/es/components/tooltip-v2/src/content2.mjs +110 -48
  424. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  425. package/es/components/tooltip-v2/src/root.mjs +79 -17
  426. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  427. package/es/components/tooltip-v2/src/root2.mjs +17 -79
  428. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  429. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  430. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  431. package/es/components/upload/index.mjs +1 -1
  432. package/es/components/upload/src/upload-content2.mjs +1 -1
  433. package/es/components/upload/src/upload-dragger.mjs +10 -47
  434. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  435. package/es/components/upload/src/upload-dragger2.mjs +47 -10
  436. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  437. package/es/components/visual-hidden/index.mjs +3 -3
  438. package/es/components/visual-hidden/src/visual-hidden.mjs +35 -6
  439. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  440. package/es/components/visual-hidden/src/visual-hidden2.mjs +6 -35
  441. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  442. package/es/index.mjs +29 -29
  443. package/es/version.d.ts +1 -1
  444. package/es/version.mjs +1 -1
  445. package/es/version.mjs.map +1 -1
  446. package/lib/components/anchor/index.js +1 -1
  447. package/lib/components/anchor/src/anchor-link.js +5 -81
  448. package/lib/components/anchor/src/anchor-link.js.map +1 -1
  449. package/lib/components/anchor/src/anchor-link2.js +81 -5
  450. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  451. package/lib/components/breadcrumb/index.js +4 -4
  452. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -8
  453. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  454. package/lib/components/breadcrumb/src/breadcrumb-item2.js +8 -56
  455. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  456. package/lib/components/breadcrumb/src/breadcrumb.js +37 -10
  457. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  458. package/lib/components/breadcrumb/src/breadcrumb2.js +10 -37
  459. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  460. package/lib/components/calendar/index.js +2 -2
  461. package/lib/components/calendar/src/calendar.js +134 -17
  462. package/lib/components/calendar/src/calendar.js.map +1 -1
  463. package/lib/components/calendar/src/calendar2.js +17 -134
  464. package/lib/components/calendar/src/calendar2.js.map +1 -1
  465. package/lib/components/carousel/index.js +4 -4
  466. package/lib/components/carousel/src/carousel-item.js +69 -7
  467. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  468. package/lib/components/carousel/src/carousel-item2.js +7 -69
  469. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  470. package/lib/components/carousel/src/carousel.js +62 -204
  471. package/lib/components/carousel/src/carousel.js.map +1 -1
  472. package/lib/components/carousel/src/carousel2.js +204 -62
  473. package/lib/components/carousel/src/carousel2.js.map +1 -1
  474. package/lib/components/cascader-panel/src/index.js +1 -1
  475. package/lib/components/cascader-panel/src/menu.js +1 -1
  476. package/lib/components/cascader-panel/src/node.js +206 -115
  477. package/lib/components/cascader-panel/src/node.js.map +1 -1
  478. package/lib/components/cascader-panel/src/node2.js +115 -206
  479. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  480. package/lib/components/cascader-panel/src/store.js +1 -1
  481. package/lib/components/check-tag/index.js +2 -2
  482. package/lib/components/check-tag/src/check-tag.js +38 -15
  483. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  484. package/lib/components/check-tag/src/check-tag2.js +15 -38
  485. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  486. package/lib/components/checkbox/index.js +2 -2
  487. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  488. package/lib/components/checkbox/src/checkbox.js +60 -119
  489. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  490. package/lib/components/checkbox/src/checkbox2.js +119 -60
  491. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  492. package/lib/components/color-picker/index.js +2 -2
  493. package/lib/components/color-picker/src/color-picker.js +400 -40
  494. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  495. package/lib/components/color-picker/src/color-picker2.js +40 -400
  496. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  497. package/lib/components/color-picker/src/components/predefine.js +1 -1
  498. package/lib/components/descriptions/index.js +2 -2
  499. package/lib/components/descriptions/src/description.js +126 -26
  500. package/lib/components/descriptions/src/description.js.map +1 -1
  501. package/lib/components/descriptions/src/description2.js +26 -126
  502. package/lib/components/descriptions/src/description2.js.map +1 -1
  503. package/lib/components/drawer/index.js +2 -2
  504. package/lib/components/drawer/src/drawer.js +178 -27
  505. package/lib/components/drawer/src/drawer.js.map +1 -1
  506. package/lib/components/drawer/src/drawer2.js +27 -178
  507. package/lib/components/drawer/src/drawer2.js.map +1 -1
  508. package/lib/components/dropdown/index.js +2 -2
  509. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  510. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  511. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  512. package/lib/components/dropdown/src/dropdown.js +298 -111
  513. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  514. package/lib/components/dropdown/src/dropdown2.js +111 -298
  515. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  516. package/lib/components/index.js +29 -29
  517. package/lib/components/link/index.js +2 -2
  518. package/lib/components/link/src/link.js +25 -49
  519. package/lib/components/link/src/link.js.map +1 -1
  520. package/lib/components/link/src/link2.js +49 -25
  521. package/lib/components/link/src/link2.js.map +1 -1
  522. package/lib/components/menu/index.js +4 -4
  523. package/lib/components/menu/src/menu-item-group.js +34 -4
  524. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  525. package/lib/components/menu/src/menu-item-group2.js +4 -34
  526. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  527. package/lib/components/menu/src/menu-item.js +15 -96
  528. package/lib/components/menu/src/menu-item.js.map +1 -1
  529. package/lib/components/menu/src/menu-item2.js +96 -15
  530. package/lib/components/menu/src/menu-item2.js.map +1 -1
  531. package/lib/components/pagination/src/components/jumper.js +58 -7
  532. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  533. package/lib/components/pagination/src/components/jumper2.js +7 -58
  534. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  535. package/lib/components/pagination/src/pagination.js +1 -1
  536. package/lib/components/popconfirm/index.js +2 -2
  537. package/lib/components/popconfirm/src/popconfirm.js +46 -114
  538. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  539. package/lib/components/popconfirm/src/popconfirm2.js +114 -46
  540. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  541. package/lib/components/popover/src/popover.js +1 -1
  542. package/lib/components/popper/index.js +4 -4
  543. package/lib/components/popper/src/popper.js +32 -25
  544. package/lib/components/popper/src/popper.js.map +1 -1
  545. package/lib/components/popper/src/popper2.js +25 -32
  546. package/lib/components/popper/src/popper2.js.map +1 -1
  547. package/lib/components/popper/src/trigger.js +127 -32
  548. package/lib/components/popper/src/trigger.js.map +1 -1
  549. package/lib/components/popper/src/trigger2.js +32 -127
  550. package/lib/components/popper/src/trigger2.js.map +1 -1
  551. package/lib/components/progress/index.js +2 -2
  552. package/lib/components/progress/src/progress.js +53 -207
  553. package/lib/components/progress/src/progress.js.map +1 -1
  554. package/lib/components/progress/src/progress2.js +207 -53
  555. package/lib/components/progress/src/progress2.js.map +1 -1
  556. package/lib/components/radio/index.js +4 -4
  557. package/lib/components/radio/src/radio-button.js +1 -1
  558. package/lib/components/radio/src/radio-group.js +65 -35
  559. package/lib/components/radio/src/radio-group.js.map +1 -1
  560. package/lib/components/radio/src/radio-group2.js +35 -65
  561. package/lib/components/radio/src/radio-group2.js.map +1 -1
  562. package/lib/components/radio/src/radio.js +73 -34
  563. package/lib/components/radio/src/radio.js.map +1 -1
  564. package/lib/components/radio/src/radio2.js +34 -73
  565. package/lib/components/radio/src/radio2.js.map +1 -1
  566. package/lib/components/rate/index.js +2 -2
  567. package/lib/components/rate/src/rate.js +83 -257
  568. package/lib/components/rate/src/rate.js.map +1 -1
  569. package/lib/components/rate/src/rate2.js +257 -83
  570. package/lib/components/rate/src/rate2.js.map +1 -1
  571. package/lib/components/select/src/select.vue.d.ts +4 -2
  572. package/lib/components/select/src/select2.js +10 -2
  573. package/lib/components/select/src/select2.js.map +1 -1
  574. package/lib/components/select/src/useSelect.js +0 -13
  575. package/lib/components/select/src/useSelect.js.map +1 -1
  576. package/lib/components/select-v2/src/select.js +10 -2
  577. package/lib/components/select-v2/src/select.js.map +1 -1
  578. package/lib/components/select-v2/src/select.types.d.ts +0 -1
  579. package/lib/components/select-v2/src/select.vue.d.ts +4 -5
  580. package/lib/components/select-v2/src/useSelect.d.ts +0 -5
  581. package/lib/components/select-v2/src/useSelect.js +0 -13
  582. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  583. package/lib/components/skeleton/index.js +4 -4
  584. package/lib/components/skeleton/src/skeleton-item.js +22 -17
  585. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  586. package/lib/components/skeleton/src/skeleton-item2.js +17 -22
  587. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  588. package/lib/components/skeleton/src/skeleton.js +21 -48
  589. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  590. package/lib/components/skeleton/src/skeleton2.js +48 -21
  591. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  592. package/lib/components/steps/index.js +4 -4
  593. package/lib/components/steps/src/item.js +19 -190
  594. package/lib/components/steps/src/item.js.map +1 -1
  595. package/lib/components/steps/src/item2.js +190 -19
  596. package/lib/components/steps/src/item2.js.map +1 -1
  597. package/lib/components/steps/src/steps.js +36 -38
  598. package/lib/components/steps/src/steps.js.map +1 -1
  599. package/lib/components/steps/src/steps2.js +38 -36
  600. package/lib/components/steps/src/steps2.js.map +1 -1
  601. package/lib/components/tabs/index.js +1 -1
  602. package/lib/components/tabs/src/tab-bar.js +95 -7
  603. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  604. package/lib/components/tabs/src/tab-bar2.js +7 -95
  605. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  606. package/lib/components/tabs/src/tab-nav.js +1 -1
  607. package/lib/components/tooltip/index.js +2 -2
  608. package/lib/components/tooltip/src/tooltip.js +166 -34
  609. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  610. package/lib/components/tooltip/src/tooltip2.js +34 -166
  611. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  612. package/lib/components/tooltip/src/trigger.js +1 -1
  613. package/lib/components/tooltip/src/trigger2.js +1 -1
  614. package/lib/components/tooltip-v2/index.js +2 -2
  615. package/lib/components/tooltip-v2/src/content.js +48 -110
  616. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  617. package/lib/components/tooltip-v2/src/content2.js +110 -48
  618. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  619. package/lib/components/tooltip-v2/src/root.js +79 -17
  620. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  621. package/lib/components/tooltip-v2/src/root2.js +17 -79
  622. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  623. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  624. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  625. package/lib/components/upload/index.js +1 -1
  626. package/lib/components/upload/src/upload-content2.js +1 -1
  627. package/lib/components/upload/src/upload-dragger.js +11 -47
  628. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  629. package/lib/components/upload/src/upload-dragger2.js +47 -11
  630. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  631. package/lib/components/visual-hidden/index.js +2 -2
  632. package/lib/components/visual-hidden/src/visual-hidden.js +35 -6
  633. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  634. package/lib/components/visual-hidden/src/visual-hidden2.js +6 -35
  635. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  636. package/lib/index.js +29 -29
  637. package/lib/version.d.ts +1 -1
  638. package/lib/version.js +1 -1
  639. package/lib/version.js.map +1 -1
  640. package/package.json +2 -2
  641. package/theme-chalk/el-select-v2.css +1 -1
  642. package/theme-chalk/el-select.css +1 -1
  643. package/theme-chalk/index.css +1 -1
  644. package/theme-chalk/src/select.scss +3 -2
  645. package/web-types.json +1 -1
@@ -23,7 +23,6 @@ var types = require('../../../utils/types.js');
23
23
  var event = require('../../../constants/event.js');
24
24
  var strings = require('../../../utils/strings.js');
25
25
 
26
- const MINIMUM_INPUT_WIDTH = 11;
27
26
  const useSelect = (props, emit) => {
28
27
  const { t } = index.useLocale();
29
28
  const nsSelect = index$1.useNamespace("select");
@@ -41,7 +40,6 @@ const useSelect = (props, emit) => {
41
40
  hoveringIndex: -1,
42
41
  inputHovering: false,
43
42
  selectionWidth: 0,
44
- calculatorWidth: 0,
45
43
  collapseItemWidth: 0,
46
44
  previousQuery: null,
47
45
  previousValue: void 0,
@@ -55,7 +53,6 @@ const useSelect = (props, emit) => {
55
53
  const tooltipRef = vue.ref();
56
54
  const tagTooltipRef = vue.ref();
57
55
  const inputRef = vue.ref();
58
- const calculatorRef = vue.ref();
59
56
  const prefixRef = vue.ref();
60
57
  const suffixRef = vue.ref();
61
58
  const menuRef = vue.ref();
@@ -226,9 +223,6 @@ const useSelect = (props, emit) => {
226
223
  const collapseTagStyle = vue.computed(() => {
227
224
  return { maxWidth: `${states.selectionWidth}px` };
228
225
  });
229
- const inputStyle = vue.computed(() => ({
230
- width: `${Math.max(states.calculatorWidth, MINIMUM_INPUT_WIDTH)}px`
231
- }));
232
226
  const shouldShowPlaceholder = vue.computed(() => {
233
227
  if (shared.isArray(props.modelValue)) {
234
228
  return props.modelValue.length === 0 && !states.inputValue;
@@ -358,9 +352,6 @@ const useSelect = (props, emit) => {
358
352
  const resetSelectionWidth = () => {
359
353
  states.selectionWidth = selectionRef.value.getBoundingClientRect().width;
360
354
  };
361
- const resetCalculatorWidth = () => {
362
- states.calculatorWidth = calculatorRef.value.getBoundingClientRect().width;
363
- };
364
355
  const resetCollapseItemWidth = () => {
365
356
  states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
366
357
  };
@@ -680,7 +671,6 @@ const useSelect = (props, emit) => {
680
671
  });
681
672
  core.useResizeObserver(selectRef, handleResize);
682
673
  core.useResizeObserver(selectionRef, resetSelectionWidth);
683
- core.useResizeObserver(calculatorRef, resetCalculatorWidth);
684
674
  core.useResizeObserver(menuRef, updateTooltip);
685
675
  core.useResizeObserver(wrapperRef, updateTooltip);
686
676
  core.useResizeObserver(tagMenuRef, updateTagTooltip);
@@ -699,7 +689,6 @@ const useSelect = (props, emit) => {
699
689
  iconReverse,
700
690
  tagStyle,
701
691
  collapseTagStyle,
702
- inputStyle,
703
692
  popperSize,
704
693
  dropdownMenuVisible,
705
694
  hasModelValue,
@@ -712,7 +701,6 @@ const useSelect = (props, emit) => {
712
701
  isFocused,
713
702
  nsSelect,
714
703
  nsInput,
715
- calculatorRef,
716
704
  inputRef,
717
705
  menuRef,
718
706
  tagMenuRef,
@@ -744,7 +732,6 @@ const useSelect = (props, emit) => {
744
732
  handleMenuEnter,
745
733
  handleResize,
746
734
  resetSelectionWidth,
747
- resetCalculatorWidth,
748
735
  updateTooltip,
749
736
  updateTagTooltip,
750
737
  updateOptions,
@@ -1 +1 @@
1
- {"version":3,"file":"useSelect.js","sources":["../../../../../../packages/components/select-v2/src/useSelect.ts"],"sourcesContent":["import {\n computed,\n nextTick,\n onMounted,\n reactive,\n ref,\n watch,\n watchEffect,\n} from 'vue'\nimport {\n findLastIndex,\n get,\n isEqual,\n debounce as lodashDebounce,\n} from 'lodash-unified'\nimport { useResizeObserver } from '@vueuse/core'\nimport {\n ValidateComponentsMap,\n debugWarn,\n escapeStringRegexp,\n isArray,\n isFunction,\n isNumber,\n isObject,\n} from '@element-plus/utils'\nimport {\n useComposition,\n useEmptyValues,\n useFocusController,\n useLocale,\n useNamespace,\n} from '@element-plus/hooks'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport {\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\n\nimport { ArrowDown } from '@element-plus/icons-vue'\nimport { useAllowCreate } from './useAllowCreate'\nimport { useProps } from './useProps'\n\nimport type { Option, OptionType, SelectStates } from './select.types'\nimport type { ISelectV2Props } from './token'\nimport type { SelectEmitFn } from './defaults'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\nimport type { SelectDropdownInstance } from './select-dropdown'\nimport type { Component, ComputedRef, Ref, WritableComputedRef } from 'vue'\n\nconst MINIMUM_INPUT_WIDTH = 11\n\ntype useSelectReturnType = (\n props: ISelectV2Props,\n emit: SelectEmitFn\n) => {\n inputId: Ref<string | undefined>\n collapseTagSize: ComputedRef<'default' | 'small'>\n currentPlaceholder: ComputedRef<string>\n expanded: Ref<boolean>\n emptyText: ComputedRef<string | false | null>\n popupHeight: ComputedRef<number>\n debounce: ComputedRef<0 | 300>\n allOptions: Ref<OptionType[]>\n filteredOptions: Ref<OptionType[]>\n iconComponent: ComputedRef<any>\n iconReverse: ComputedRef<any>\n tagStyle: ComputedRef<{ maxWidth: string }>\n collapseTagStyle: ComputedRef<{ maxWidth: string }>\n inputStyle: ComputedRef<{ width: string }>\n popperSize: Ref<number>\n dropdownMenuVisible: WritableComputedRef<boolean>\n hasModelValue: ComputedRef<boolean>\n shouldShowPlaceholder: ComputedRef<boolean>\n selectDisabled: ComputedRef<boolean | undefined>\n selectSize: ComputedRef<string>\n needStatusIcon: ComputedRef<boolean>\n showClearBtn: ComputedRef<boolean>\n states: SelectStates\n isFocused: Ref<boolean>\n nsSelect: ReturnType<typeof useNamespace>\n nsInput: ReturnType<typeof useNamespace>\n calculatorRef: Ref<HTMLElement | undefined>\n inputRef: Ref<HTMLElement | undefined>\n menuRef: Ref<SelectDropdownInstance | undefined>\n tagMenuRef: Ref<HTMLElement | undefined>\n tooltipRef: Ref<TooltipInstance | undefined>\n tagTooltipRef: Ref<TooltipInstance | undefined>\n selectRef: Ref<HTMLElement | undefined>\n wrapperRef: Ref<HTMLElement | undefined>\n selectionRef: Ref<HTMLElement | undefined>\n prefixRef: Ref<HTMLElement | undefined>\n suffixRef: Ref<HTMLElement | undefined>\n collapseItemRef: Ref<HTMLElement | undefined>\n popperRef: ComputedRef<HTMLElement | undefined>\n validateState: ComputedRef<string>\n validateIcon: ComputedRef<Component | undefined>\n showTagList: ComputedRef<Option[]>\n collapseTagList: ComputedRef<Option[]>\n debouncedOnInputChange: () => void\n deleteTag: (event: MouseEvent, option: Option) => void\n getLabel: (option: Option) => string\n getValue: (option: Option) => unknown\n getDisabled: (option: Option) => boolean\n getValueKey: (item: unknown) => any\n handleClear: () => void\n handleClickOutside: (event: Event) => void\n handleDel: (e: KeyboardEvent) => void\n handleEsc: () => void\n focus: () => void\n blur: () => void\n handleMenuEnter: () => void\n handleResize: () => void\n resetSelectionWidth: () => void\n resetCalculatorWidth: () => void\n updateTooltip: () => void\n updateTagTooltip: () => void\n updateOptions: () => void\n toggleMenu: () => void\n scrollTo: (index: number) => void\n onInput: (event: Event) => void\n onKeyboardNavigate: (\n direction: 'forward' | 'backward',\n hoveringIndex?: number\n ) => void\n onKeyboardSelect: () => void\n onSelect: (option: Option) => void\n onHover: (idx?: number) => void\n handleCompositionStart: (event: CompositionEvent) => void\n handleCompositionEnd: (event: CompositionEvent) => void\n handleCompositionUpdate: (event: CompositionEvent) => void\n}\n\nconst useSelect: useSelectReturnType = (\n props: ISelectV2Props,\n emit: SelectEmitFn\n) => {\n // inject\n const { t } = useLocale()\n const nsSelect = useNamespace('select')\n const nsInput = useNamespace('input')\n const { form: elForm, formItem: elFormItem } = useFormItem()\n const { inputId } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n })\n const { aliasProps, getLabel, getValue, getDisabled, getOptions } =\n useProps(props)\n const { valueOnClear, isEmptyValue } = useEmptyValues(props)\n\n const states: SelectStates = reactive({\n inputValue: '',\n cachedOptions: [],\n createdOptions: [],\n hoveringIndex: -1,\n inputHovering: false,\n selectionWidth: 0,\n calculatorWidth: 0,\n collapseItemWidth: 0,\n previousQuery: null,\n previousValue: undefined,\n selectedLabel: '',\n menuVisibleOnFocus: false,\n isBeforeHide: false,\n })\n\n // data refs\n const popperSize = ref(-1)\n\n // DOM & Component refs\n const selectRef = ref<HTMLElement>()\n const selectionRef = ref<HTMLElement>()\n const tooltipRef = ref<TooltipInstance>()\n const tagTooltipRef = ref<TooltipInstance>()\n const inputRef = ref<HTMLElement>()\n const calculatorRef = ref<HTMLElement>()\n const prefixRef = ref<HTMLElement>()\n const suffixRef = ref<HTMLElement>()\n const menuRef = ref<SelectDropdownInstance>()\n const tagMenuRef = ref<HTMLElement>()\n const collapseItemRef = ref<HTMLElement>()\n\n const {\n isComposing,\n handleCompositionStart,\n handleCompositionEnd,\n handleCompositionUpdate,\n } = useComposition({\n afterComposition: (e) => onInput(e),\n })\n\n const { wrapperRef, isFocused, handleBlur } = useFocusController(inputRef, {\n beforeFocus() {\n return selectDisabled.value\n },\n afterFocus() {\n if (props.automaticDropdown && !expanded.value) {\n expanded.value = true\n states.menuVisibleOnFocus = true\n }\n },\n beforeBlur(event) {\n return (\n tooltipRef.value?.isFocusInsideContent(event) ||\n tagTooltipRef.value?.isFocusInsideContent(event)\n )\n },\n afterBlur() {\n expanded.value = false\n states.menuVisibleOnFocus = false\n },\n })\n\n const allOptions = ref<OptionType[]>([])\n const filteredOptions = ref<OptionType[]>([])\n // the controller of the expanded popup\n const expanded = ref(false)\n\n const selectDisabled = computed(() => props.disabled || elForm?.disabled)\n\n const needStatusIcon = computed(() => elForm?.statusIcon ?? false)\n\n const popupHeight = computed(() => {\n const totalHeight = filteredOptions.value.length * props.itemHeight\n return totalHeight > props.height ? props.height : totalHeight\n })\n\n const hasModelValue = computed(() => {\n return props.multiple\n ? isArray(props.modelValue) && props.modelValue.length > 0\n : !isEmptyValue(props.modelValue)\n })\n\n const showClearBtn = computed(() => {\n return (\n props.clearable &&\n !selectDisabled.value &&\n states.inputHovering &&\n hasModelValue.value\n )\n })\n\n const iconComponent = computed(() =>\n props.remote && props.filterable ? '' : ArrowDown\n )\n\n const iconReverse = computed(\n () => iconComponent.value && nsSelect.is('reverse', expanded.value)\n )\n\n const validateState = computed(() => elFormItem?.validateState || '')\n const validateIcon = computed(() => {\n // When we use indexed access to get the type of an undeclared property,\n // the unsafe type `any` will be inferred, which TypeScript throws an error to emphasize it.\n // To avoid TypeScript complaining about it, we use truthiness narrowing to narrow the type of validateState.\n if (!validateState.value) return\n return ValidateComponentsMap[validateState.value]\n })\n\n const debounce = computed(() => (props.remote ? 300 : 0))\n\n // filteredOptions includes flatten the data into one dimensional array.\n const emptyText = computed(() => {\n if (props.loading) {\n return props.loadingText || t('el.select.loading')\n } else {\n if (props.remote && !states.inputValue && allOptions.value.length === 0)\n return false\n if (\n props.filterable &&\n states.inputValue &&\n allOptions.value.length > 0 &&\n filteredOptions.value.length === 0\n ) {\n return props.noMatchText || t('el.select.noMatch')\n }\n if (allOptions.value.length === 0) {\n return props.noDataText || t('el.select.noData')\n }\n }\n return null\n })\n\n const filterOptions = (query: string) => {\n const isValidOption = (o: Option): boolean => {\n if (props.filterable && isFunction(props.filterMethod)) return true\n if (props.filterable && props.remote && isFunction(props.remoteMethod))\n return true\n // when query was given, we should test on the label see whether the label contains the given query\n const regexp = new RegExp(escapeStringRegexp(query), 'i')\n return query ? regexp.test(getLabel(o) || '') : true\n }\n if (props.loading) {\n return []\n }\n\n return [...states.createdOptions, ...props.options].reduce((all, item) => {\n const options = getOptions(item)\n\n if (isArray(options)) {\n const filtered = options.filter(isValidOption)\n\n if (filtered.length > 0) {\n all.push(\n {\n label: getLabel(item),\n type: 'Group',\n },\n ...filtered\n )\n }\n } else if (props.remote || isValidOption(item)) {\n all.push(item)\n }\n\n return all\n }, []) as OptionType[]\n }\n\n const updateOptions = () => {\n allOptions.value = filterOptions('')\n filteredOptions.value = filterOptions(states.inputValue)\n }\n\n const allOptionsValueMap = computed(() => {\n const valueMap = new Map()\n\n allOptions.value.forEach((option, index) => {\n valueMap.set(getValueKey(getValue(option)), { option, index })\n })\n return valueMap\n })\n\n const filteredOptionsValueMap = computed(() => {\n const valueMap = new Map()\n\n filteredOptions.value.forEach((option, index) => {\n valueMap.set(getValueKey(getValue(option)), { option, index })\n })\n return valueMap\n })\n\n const optionsAllDisabled = computed(() =>\n filteredOptions.value.every((option) => getDisabled(option))\n )\n\n const selectSize = useFormSize()\n\n const collapseTagSize = computed(() =>\n 'small' === selectSize.value ? 'small' : 'default'\n )\n\n const calculatePopperSize = () => {\n if (isNumber(props.fitInputWidth)) {\n popperSize.value = props.fitInputWidth\n return\n }\n const width = selectRef.value?.offsetWidth || 200\n if (!props.fitInputWidth && allOptions.value.length > 0) {\n nextTick(() => {\n popperSize.value = Math.max(width, calculateLabelMaxWidth())\n })\n } else {\n popperSize.value = width\n }\n }\n\n // TODO Caching implementation\n // 1. There is no need to calculate options that have already been calculated\n // 2. Repeatedly expand and close when persistent is set to false, no need for repeated calculations\n const calculateLabelMaxWidth = () => {\n const canvas = document.createElement('canvas')\n const ctx = canvas.getContext('2d')\n const selector = nsSelect.be('dropdown', 'item')\n const dom = menuRef.value?.listRef?.innerRef || document\n const dropdownItemEl = dom.querySelector(`.${selector}`)\n if (dropdownItemEl === null || ctx === null) return 0\n const style = getComputedStyle(dropdownItemEl)\n const padding =\n Number.parseFloat(style.paddingLeft) +\n Number.parseFloat(style.paddingRight)\n ctx.font = style.font\n const maxWidth = filteredOptions.value.reduce((max, option) => {\n const metrics = ctx.measureText(getLabel(option))\n return Math.max(metrics.width, max)\n }, 0)\n return maxWidth + padding\n }\n\n const getGapWidth = () => {\n if (!selectionRef.value) return 0\n const style = window.getComputedStyle(selectionRef.value)\n return Number.parseFloat(style.gap || '6px')\n }\n\n // computed style\n const tagStyle = computed(() => {\n const gapWidth = getGapWidth()\n const maxWidth =\n collapseItemRef.value && props.maxCollapseTags === 1\n ? states.selectionWidth - states.collapseItemWidth - gapWidth\n : states.selectionWidth\n return { maxWidth: `${maxWidth}px` }\n })\n\n const collapseTagStyle = computed(() => {\n return { maxWidth: `${states.selectionWidth}px` }\n })\n\n const inputStyle = computed(() => ({\n width: `${Math.max(states.calculatorWidth, MINIMUM_INPUT_WIDTH)}px`,\n }))\n\n const shouldShowPlaceholder = computed(() => {\n if (isArray(props.modelValue)) {\n return props.modelValue.length === 0 && !states.inputValue\n }\n\n // when it's not multiple mode, we only determine this flag based on filterable and expanded\n // when filterable flag is true, which means we have input box on the screen\n return props.filterable ? !states.inputValue : true\n })\n\n const currentPlaceholder = computed(() => {\n const _placeholder = props.placeholder ?? t('el.select.placeholder')\n return props.multiple || !hasModelValue.value\n ? _placeholder\n : states.selectedLabel\n })\n\n // this obtains the actual popper DOM element.\n const popperRef = computed(() => tooltipRef.value?.popperRef?.contentRef)\n\n // the index with current value in options\n const indexRef = computed<number>(() => {\n if (props.multiple) {\n const len = (props.modelValue as []).length\n if (\n (props.modelValue as Array<any>).length > 0 &&\n filteredOptionsValueMap.value.has(props.modelValue[len - 1])\n ) {\n const { index } = filteredOptionsValueMap.value.get(\n props.modelValue[len - 1]\n )\n return index\n }\n } else {\n if (\n !isEmptyValue(props.modelValue) &&\n filteredOptionsValueMap.value.has(props.modelValue)\n ) {\n const { index } = filteredOptionsValueMap.value.get(props.modelValue)\n return index\n }\n }\n return -1\n })\n\n const dropdownMenuVisible = computed({\n get() {\n return expanded.value && emptyText.value !== false\n },\n set(val: boolean) {\n expanded.value = val\n },\n })\n\n const showTagList = computed(() => {\n if (!props.multiple) {\n return []\n }\n return props.collapseTags\n ? states.cachedOptions.slice(0, props.maxCollapseTags)\n : states.cachedOptions\n })\n\n const collapseTagList = computed(() => {\n if (!props.multiple) {\n return []\n }\n return props.collapseTags\n ? states.cachedOptions.slice(props.maxCollapseTags)\n : []\n })\n\n // hooks\n const {\n createNewOption,\n removeNewOption,\n selectNewOption,\n clearAllNewOption,\n } = useAllowCreate(props, states)\n\n // methods\n const toggleMenu = () => {\n if (selectDisabled.value) return\n\n if (states.menuVisibleOnFocus) {\n // controlled by automaticDropdown\n states.menuVisibleOnFocus = false\n } else {\n expanded.value = !expanded.value\n }\n }\n\n const onInputChange = () => {\n if (states.inputValue.length > 0 && !expanded.value) {\n expanded.value = true\n }\n createNewOption(states.inputValue)\n handleQueryChange(states.inputValue)\n }\n\n const debouncedOnInputChange = lodashDebounce(onInputChange, debounce.value)\n\n const handleQueryChange = (val: string) => {\n if (states.previousQuery === val || isComposing.value) {\n return\n }\n states.previousQuery = val\n if (props.filterable && isFunction(props.filterMethod)) {\n props.filterMethod(val)\n } else if (\n props.filterable &&\n props.remote &&\n isFunction(props.remoteMethod)\n ) {\n props.remoteMethod(val)\n }\n if (\n props.defaultFirstOption &&\n (props.filterable || props.remote) &&\n filteredOptions.value.length\n ) {\n nextTick(checkDefaultFirstOption)\n } else {\n nextTick(updateHoveringIndex)\n }\n }\n\n /**\n * find and highlight first option as default selected\n * @remark\n * - if the first option in dropdown list is user-created,\n * it would be at the end of the optionsArray\n * so find it and set hover.\n * (NOTE: there must be only one user-created option in dropdown list with query)\n * - if there's no user-created option in list, just find the first one as usual\n * (NOTE: exclude options that are disabled or in disabled-group)\n */\n const checkDefaultFirstOption = () => {\n const optionsInDropdown = filteredOptions.value.filter(\n (n) => !n.disabled && n.type !== 'Group'\n )\n const userCreatedOption = optionsInDropdown.find((n) => n.created)\n const firstOriginOption = optionsInDropdown[0]\n states.hoveringIndex = getValueIndex(\n filteredOptions.value,\n userCreatedOption || firstOriginOption\n )\n }\n\n const emitChange = (val: any | any[]) => {\n if (!isEqual(props.modelValue, val)) {\n emit(CHANGE_EVENT, val)\n }\n }\n\n const update = (val: any) => {\n emit(UPDATE_MODEL_EVENT, val)\n emitChange(val)\n states.previousValue = props.multiple ? String(val) : val\n }\n\n const getValueIndex = (arr: unknown[] = [], value: unknown) => {\n if (!isObject(value)) {\n return arr.indexOf(value)\n }\n const valueKey = props.valueKey\n let index = -1\n arr.some((item, i) => {\n if (get(item, valueKey) === get(value, valueKey)) {\n index = i\n return true\n }\n return false\n })\n return index\n }\n\n const getValueKey = (item: unknown) => {\n return isObject(item) ? get(item, props.valueKey) : item\n }\n\n const handleResize = () => {\n calculatePopperSize()\n }\n\n const resetSelectionWidth = () => {\n states.selectionWidth = selectionRef.value!.getBoundingClientRect().width\n }\n\n const resetCalculatorWidth = () => {\n states.calculatorWidth = calculatorRef.value!.getBoundingClientRect().width\n }\n\n const resetCollapseItemWidth = () => {\n states.collapseItemWidth =\n collapseItemRef.value!.getBoundingClientRect().width\n }\n\n const updateTooltip = () => {\n tooltipRef.value?.updatePopper?.()\n }\n\n const updateTagTooltip = () => {\n tagTooltipRef.value?.updatePopper?.()\n }\n\n const onSelect = (option: Option) => {\n if (props.multiple) {\n let selectedOptions = (props.modelValue as any[]).slice()\n\n const index = getValueIndex(selectedOptions, getValue(option))\n if (index > -1) {\n selectedOptions = [\n ...selectedOptions.slice(0, index),\n ...selectedOptions.slice(index + 1),\n ]\n states.cachedOptions.splice(index, 1)\n removeNewOption(option)\n } else if (\n props.multipleLimit <= 0 ||\n selectedOptions.length < props.multipleLimit\n ) {\n selectedOptions = [...selectedOptions, getValue(option)]\n states.cachedOptions.push(option)\n selectNewOption(option)\n }\n update(selectedOptions)\n if (option.created) {\n handleQueryChange('')\n }\n if (props.filterable && !props.reserveKeyword) {\n states.inputValue = ''\n }\n } else {\n states.selectedLabel = getLabel(option)\n update(getValue(option))\n expanded.value = false\n selectNewOption(option)\n if (!option.created) {\n clearAllNewOption()\n }\n }\n focus()\n }\n\n const deleteTag = (event: MouseEvent, option: Option) => {\n let selectedOptions = (props.modelValue as any[]).slice()\n\n const index = getValueIndex(selectedOptions, getValue(option))\n\n if (index > -1 && !selectDisabled.value) {\n selectedOptions = [\n ...(props.modelValue as Array<unknown>).slice(0, index),\n ...(props.modelValue as Array<unknown>).slice(index + 1),\n ]\n states.cachedOptions.splice(index, 1)\n update(selectedOptions)\n emit('remove-tag', getValue(option))\n removeNewOption(option)\n }\n event.stopPropagation()\n focus()\n }\n\n const focus = () => {\n inputRef.value?.focus()\n }\n\n const blur = () => {\n if (expanded.value) {\n expanded.value = false\n nextTick(() => inputRef.value?.blur())\n return\n }\n inputRef.value?.blur()\n }\n\n // keyboard handlers\n const handleEsc = () => {\n if (states.inputValue.length > 0) {\n states.inputValue = ''\n } else {\n expanded.value = false\n }\n }\n\n const getLastNotDisabledIndex = (value: unknown[]) =>\n findLastIndex(\n value,\n (it) =>\n !states.cachedOptions.some(\n (option) => getValue(option) === it && getDisabled(option)\n )\n )\n\n const handleDel = (e: KeyboardEvent) => {\n if (!props.multiple) return\n if (e.code === EVENT_CODE.delete) return\n if (states.inputValue.length === 0) {\n e.preventDefault()\n const selected = (props.modelValue as Array<any>).slice()\n const lastNotDisabledIndex = getLastNotDisabledIndex(selected)\n if (lastNotDisabledIndex < 0) return\n const removeTagValue = selected[lastNotDisabledIndex]\n selected.splice(lastNotDisabledIndex, 1)\n const option = states.cachedOptions[lastNotDisabledIndex]\n states.cachedOptions.splice(lastNotDisabledIndex, 1)\n removeNewOption(option)\n update(selected)\n emit('remove-tag', removeTagValue)\n }\n }\n\n const handleClear = () => {\n let emptyValue: string | any[]\n if (isArray(props.modelValue)) {\n emptyValue = []\n } else {\n emptyValue = valueOnClear.value\n }\n\n if (props.multiple) {\n states.cachedOptions = []\n } else {\n states.selectedLabel = ''\n }\n expanded.value = false\n update(emptyValue)\n emit('clear')\n clearAllNewOption()\n focus()\n }\n\n const onKeyboardNavigate = (\n direction: 'forward' | 'backward',\n hoveringIndex: number | undefined = undefined\n ): void => {\n const options = filteredOptions.value\n if (\n !['forward', 'backward'].includes(direction) ||\n selectDisabled.value ||\n options.length <= 0 ||\n optionsAllDisabled.value ||\n isComposing.value\n ) {\n return\n }\n if (!expanded.value) {\n return toggleMenu()\n }\n if (hoveringIndex === undefined) {\n hoveringIndex = states.hoveringIndex\n }\n let newIndex = -1\n if (direction === 'forward') {\n newIndex = hoveringIndex + 1\n if (newIndex >= options.length) {\n // return to the first option\n newIndex = 0\n }\n } else if (direction === 'backward') {\n newIndex = hoveringIndex - 1\n if (newIndex < 0 || newIndex >= options.length) {\n // navigate to the last one\n newIndex = options.length - 1\n }\n }\n const option = options[newIndex]\n if (getDisabled(option) || option.type === 'Group') {\n // prevent dispatching multiple nextTick callbacks.\n return onKeyboardNavigate(direction, newIndex)\n } else {\n states.hoveringIndex = newIndex\n scrollToItem(newIndex)\n }\n }\n\n const onKeyboardSelect = () => {\n if (!expanded.value) {\n return toggleMenu()\n } else if (\n ~states.hoveringIndex &&\n filteredOptions.value[states.hoveringIndex]\n ) {\n onSelect(filteredOptions.value[states.hoveringIndex])\n }\n }\n\n const onHoverOption = (idx?: number) => {\n states.hoveringIndex = idx ?? -1\n }\n\n const updateHoveringIndex = () => {\n if (!props.multiple) {\n states.hoveringIndex = filteredOptions.value.findIndex((item) => {\n return getValueKey(item) === getValueKey(props.modelValue)\n })\n } else {\n states.hoveringIndex = filteredOptions.value.findIndex((item) =>\n props.modelValue.some(\n (modelValue: unknown) => getValueKey(modelValue) === getValueKey(item)\n )\n )\n }\n }\n\n const onInput = (event: Event) => {\n states.inputValue = (event.target as HTMLInputElement).value\n if (props.remote) {\n debouncedOnInputChange()\n } else {\n return onInputChange()\n }\n }\n\n const handleClickOutside = (event: Event) => {\n expanded.value = false\n\n if (isFocused.value) {\n const _event = new FocusEvent('focus', event)\n handleBlur(_event)\n }\n }\n\n const handleMenuEnter = () => {\n states.isBeforeHide = false\n return nextTick(() => {\n if (~indexRef.value) {\n scrollToItem(states.hoveringIndex)\n }\n })\n }\n\n const scrollToItem = (index: number) => {\n menuRef.value!.scrollToItem(index)\n }\n\n const getOption = (value: unknown, cachedOptions?: Option[]) => {\n // match the option with the given value, if not found, create a new option\n const selectValue = getValueKey(value)\n\n if (allOptionsValueMap.value.has(selectValue)) {\n const { option } = allOptionsValueMap.value.get(selectValue)\n\n return option\n }\n if (cachedOptions && cachedOptions.length) {\n const option = cachedOptions.find(\n (option) => getValueKey(getValue(option)) === selectValue\n )\n if (option) {\n return option\n }\n }\n\n return {\n [aliasProps.value.value]: value,\n [aliasProps.value.label]: value,\n }\n }\n\n const initStates = (needUpdateSelectedLabel = false) => {\n if (props.multiple) {\n if ((props.modelValue as Array<any>).length > 0) {\n const cachedOptions = states.cachedOptions.slice()\n states.cachedOptions.length = 0\n states.previousValue = props.modelValue.toString()\n\n for (const value of props.modelValue) {\n const option = getOption(value, cachedOptions)\n states.cachedOptions.push(option)\n }\n } else {\n states.cachedOptions = []\n states.previousValue = undefined\n }\n } else {\n if (hasModelValue.value) {\n states.previousValue = props.modelValue\n const options = filteredOptions.value\n const selectedItemIndex = options.findIndex(\n (option) =>\n getValueKey(getValue(option)) === getValueKey(props.modelValue)\n )\n if (~selectedItemIndex) {\n states.selectedLabel = getLabel(options[selectedItemIndex])\n } else {\n if (!states.selectedLabel || needUpdateSelectedLabel) {\n states.selectedLabel = getValueKey(props.modelValue)\n }\n }\n } else {\n states.selectedLabel = ''\n states.previousValue = undefined\n }\n }\n clearAllNewOption()\n calculatePopperSize()\n }\n\n watch(\n () => props.fitInputWidth,\n () => {\n calculatePopperSize()\n }\n )\n\n // in order to track these individually, we need to turn them into refs instead of watching the entire\n // reactive object which could cause perf penalty when unnecessary field gets changed the watch method will\n // be invoked.\n\n watch(expanded, (val) => {\n if (val) {\n if (!props.persistent) {\n calculatePopperSize()\n }\n handleQueryChange('')\n } else {\n states.inputValue = ''\n states.previousQuery = null\n states.isBeforeHide = true\n createNewOption('')\n }\n emit('visible-change', val)\n })\n\n watch(\n () => props.modelValue,\n (val, oldVal) => {\n const isValEmpty = !val || (isArray(val) && val.length === 0)\n\n if (\n isValEmpty ||\n (props.multiple && !isEqual(val.toString(), states.previousValue)) ||\n (!props.multiple &&\n getValueKey(val) !== getValueKey(states.previousValue))\n ) {\n initStates(true)\n }\n if (!isEqual(val, oldVal) && props.validateEvent) {\n elFormItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n },\n {\n deep: true,\n }\n )\n\n watch(\n () => props.options,\n () => {\n const input = inputRef.value\n // filter or remote-search scenarios are not initialized\n if (!input || (input && document.activeElement !== input)) {\n initStates()\n }\n },\n {\n deep: true,\n flush: 'post',\n }\n )\n\n // fix the problem that scrollTop is not reset in filterable mode\n watch(\n () => filteredOptions.value,\n () => {\n calculatePopperSize()\n return menuRef.value && nextTick(menuRef.value.resetScrollTop)\n }\n )\n\n watchEffect(() => {\n // Anything could cause options changed, then update options\n // If you want to control it by condition, write here\n if (states.isBeforeHide) return\n updateOptions()\n })\n\n watchEffect(() => {\n const { valueKey, options } = props\n const duplicateValue = new Map()\n for (const item of options) {\n const optionValue = getValue(item)\n let v = optionValue\n if (isObject(v)) {\n v = get(optionValue, valueKey)\n }\n if (duplicateValue.get(v)) {\n debugWarn(\n 'ElSelectV2',\n `The option values you provided seem to be duplicated, which may cause some problems, please check.`\n )\n break\n } else {\n duplicateValue.set(v, true)\n }\n }\n })\n\n onMounted(() => {\n initStates()\n })\n useResizeObserver(selectRef, handleResize)\n useResizeObserver(selectionRef, resetSelectionWidth)\n useResizeObserver(calculatorRef, resetCalculatorWidth)\n useResizeObserver(menuRef, updateTooltip)\n useResizeObserver(wrapperRef, updateTooltip)\n useResizeObserver(tagMenuRef, updateTagTooltip)\n useResizeObserver(collapseItemRef, resetCollapseItemWidth)\n\n return {\n // data exports\n inputId,\n collapseTagSize,\n currentPlaceholder,\n expanded,\n emptyText,\n popupHeight,\n debounce,\n allOptions,\n filteredOptions,\n iconComponent,\n iconReverse,\n tagStyle,\n collapseTagStyle,\n inputStyle,\n popperSize,\n dropdownMenuVisible,\n hasModelValue,\n shouldShowPlaceholder,\n selectDisabled,\n selectSize,\n needStatusIcon,\n showClearBtn,\n states,\n isFocused,\n nsSelect,\n nsInput,\n\n // refs items exports\n calculatorRef,\n inputRef,\n menuRef,\n tagMenuRef,\n tooltipRef,\n tagTooltipRef,\n selectRef,\n wrapperRef,\n selectionRef,\n prefixRef,\n suffixRef,\n collapseItemRef,\n\n popperRef,\n\n validateState,\n validateIcon,\n showTagList,\n collapseTagList,\n\n // methods exports\n debouncedOnInputChange,\n deleteTag,\n getLabel,\n getValue,\n getDisabled,\n getValueKey,\n handleClear,\n handleClickOutside,\n handleDel,\n handleEsc,\n focus,\n blur,\n handleMenuEnter,\n handleResize,\n resetSelectionWidth,\n resetCalculatorWidth,\n updateTooltip,\n updateTagTooltip,\n updateOptions,\n toggleMenu,\n scrollTo: scrollToItem,\n onInput,\n onKeyboardNavigate,\n onKeyboardSelect,\n onSelect,\n onHover: onHoverOption,\n handleCompositionStart,\n handleCompositionEnd,\n handleCompositionUpdate,\n }\n}\n\nexport default useSelect\n"],"names":["useLocale","useNamespace","useFormItem","useFormItemInputId","useProps","useEmptyValues","reactive","ref","useComposition","useFocusController","computed","isArray","ArrowDown","ValidateComponentsMap","isFunction","escapeStringRegexp","useFormSize","isNumber","nextTick","useAllowCreate","lodashDebounce","isEqual","CHANGE_EVENT","UPDATE_MODEL_EVENT","isObject","get","findLastIndex","EVENT_CODE","watch","debugWarn","watchEffect","onMounted","useResizeObserver"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC1B,MAAC,SAAS,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AACnC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAGA,eAAS,EAAE,CAAC;AAC5B,EAAE,MAAM,QAAQ,GAAGC,oBAAY,CAAC,QAAQ,CAAC,CAAC;AAC1C,EAAE,MAAM,OAAO,GAAGA,oBAAY,CAAC,OAAO,CAAC,CAAC;AACxC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAGC,uBAAW,EAAE,CAAC;AAC/D,EAAE,MAAM,EAAE,OAAO,EAAE,GAAGC,8BAAkB,CAAC,KAAK,EAAE;AAChD,IAAI,eAAe,EAAE,UAAU;AAC/B,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,GAAGC,iBAAQ,CAAC,KAAK,CAAC,CAAC;AACtF,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAGC,sBAAc,CAAC,KAAK,CAAC,CAAC;AAC/D,EAAE,MAAM,MAAM,GAAGC,YAAQ,CAAC;AAC1B,IAAI,UAAU,EAAE,EAAE;AAClB,IAAI,aAAa,EAAE,EAAE;AACrB,IAAI,cAAc,EAAE,EAAE;AACtB,IAAI,aAAa,EAAE,CAAC,CAAC;AACrB,IAAI,aA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,IAAI,QAAQ;AACZ,IAAI,OAAO;AACX,IAAI,UAAU;AACd,IAAI,UAAU;AACd,IAAI,aAAa;AACjB,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,YAAY;AAChB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,SAAS;AACb,IAAI,aAAa;AACjB,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,sBAAsB;AAC1B,IAAI,SAAS;AACb,IAAI,QAAQ;AACZ,IAAI,QAAQ;AACZ,IAAI,WAAW;AACf,IAAI,WAAW;AACf,IAAI,WAAW;AACf,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,KAAK;AACT,IAAI,IAAI;AACR,IAAI,eAAe;AACnB,IAAI,YAAY;AAChB,IAAI,mBAAmB;AACvB,IAAI,oBAAoB;AACxB,IAAI,aAAa;AACjB,IAAI,gBAAgB;AACpB,IAAI,aAAa;AACjB,IAAI,UAAU;AACd,IAAI,QAAQ,EAAE,YAAY;AAC1B,IAAI,OAAO;AACX,IAAI,kBAAkB;AACtB,IAAI,gBAAgB;AACpB,IAAI,QAAQ;AACZ,IAAI,OAAO,EAAE,aAAa;AAC1B,IAAI,sBAAsB;AAC1B,IAAI,oBAAoB;AACxB,IAAI,uBAAuB;AAC3B,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"useSelect.js","sources":["../../../../../../packages/components/select-v2/src/useSelect.ts"],"sourcesContent":["import {\n computed,\n nextTick,\n onMounted,\n reactive,\n ref,\n watch,\n watchEffect,\n} from 'vue'\nimport {\n findLastIndex,\n get,\n isEqual,\n debounce as lodashDebounce,\n} from 'lodash-unified'\nimport { useResizeObserver } from '@vueuse/core'\nimport {\n ValidateComponentsMap,\n debugWarn,\n escapeStringRegexp,\n isArray,\n isFunction,\n isNumber,\n isObject,\n} from '@element-plus/utils'\nimport {\n useComposition,\n useEmptyValues,\n useFocusController,\n useLocale,\n useNamespace,\n} from '@element-plus/hooks'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport {\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\n\nimport { ArrowDown } from '@element-plus/icons-vue'\nimport { useAllowCreate } from './useAllowCreate'\nimport { useProps } from './useProps'\n\nimport type { Option, OptionType, SelectStates } from './select.types'\nimport type { ISelectV2Props } from './token'\nimport type { SelectEmitFn } from './defaults'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\nimport type { SelectDropdownInstance } from './select-dropdown'\nimport type { Component, ComputedRef, Ref, WritableComputedRef } from 'vue'\n\ntype useSelectReturnType = (\n props: ISelectV2Props,\n emit: SelectEmitFn\n) => {\n inputId: Ref<string | undefined>\n collapseTagSize: ComputedRef<'default' | 'small'>\n currentPlaceholder: ComputedRef<string>\n expanded: Ref<boolean>\n emptyText: ComputedRef<string | false | null>\n popupHeight: ComputedRef<number>\n debounce: ComputedRef<0 | 300>\n allOptions: Ref<OptionType[]>\n filteredOptions: Ref<OptionType[]>\n iconComponent: ComputedRef<any>\n iconReverse: ComputedRef<any>\n tagStyle: ComputedRef<{ maxWidth: string }>\n collapseTagStyle: ComputedRef<{ maxWidth: string }>\n popperSize: Ref<number>\n dropdownMenuVisible: WritableComputedRef<boolean>\n hasModelValue: ComputedRef<boolean>\n shouldShowPlaceholder: ComputedRef<boolean>\n selectDisabled: ComputedRef<boolean | undefined>\n selectSize: ComputedRef<string>\n needStatusIcon: ComputedRef<boolean>\n showClearBtn: ComputedRef<boolean>\n states: SelectStates\n isFocused: Ref<boolean>\n nsSelect: ReturnType<typeof useNamespace>\n nsInput: ReturnType<typeof useNamespace>\n inputRef: Ref<HTMLElement | undefined>\n menuRef: Ref<SelectDropdownInstance | undefined>\n tagMenuRef: Ref<HTMLElement | undefined>\n tooltipRef: Ref<TooltipInstance | undefined>\n tagTooltipRef: Ref<TooltipInstance | undefined>\n selectRef: Ref<HTMLElement | undefined>\n wrapperRef: Ref<HTMLElement | undefined>\n selectionRef: Ref<HTMLElement | undefined>\n prefixRef: Ref<HTMLElement | undefined>\n suffixRef: Ref<HTMLElement | undefined>\n collapseItemRef: Ref<HTMLElement | undefined>\n popperRef: ComputedRef<HTMLElement | undefined>\n validateState: ComputedRef<string>\n validateIcon: ComputedRef<Component | undefined>\n showTagList: ComputedRef<Option[]>\n collapseTagList: ComputedRef<Option[]>\n debouncedOnInputChange: () => void\n deleteTag: (event: MouseEvent, option: Option) => void\n getLabel: (option: Option) => string\n getValue: (option: Option) => unknown\n getDisabled: (option: Option) => boolean\n getValueKey: (item: unknown) => any\n handleClear: () => void\n handleClickOutside: (event: Event) => void\n handleDel: (e: KeyboardEvent) => void\n handleEsc: () => void\n focus: () => void\n blur: () => void\n handleMenuEnter: () => void\n handleResize: () => void\n resetSelectionWidth: () => void\n updateTooltip: () => void\n updateTagTooltip: () => void\n updateOptions: () => void\n toggleMenu: () => void\n scrollTo: (index: number) => void\n onInput: (event: Event) => void\n onKeyboardNavigate: (\n direction: 'forward' | 'backward',\n hoveringIndex?: number\n ) => void\n onKeyboardSelect: () => void\n onSelect: (option: Option) => void\n onHover: (idx?: number) => void\n handleCompositionStart: (event: CompositionEvent) => void\n handleCompositionEnd: (event: CompositionEvent) => void\n handleCompositionUpdate: (event: CompositionEvent) => void\n}\n\nconst useSelect: useSelectReturnType = (\n props: ISelectV2Props,\n emit: SelectEmitFn\n) => {\n // inject\n const { t } = useLocale()\n const nsSelect = useNamespace('select')\n const nsInput = useNamespace('input')\n const { form: elForm, formItem: elFormItem } = useFormItem()\n const { inputId } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n })\n const { aliasProps, getLabel, getValue, getDisabled, getOptions } =\n useProps(props)\n const { valueOnClear, isEmptyValue } = useEmptyValues(props)\n\n const states: SelectStates = reactive({\n inputValue: '',\n cachedOptions: [],\n createdOptions: [],\n hoveringIndex: -1,\n inputHovering: false,\n selectionWidth: 0,\n collapseItemWidth: 0,\n previousQuery: null,\n previousValue: undefined,\n selectedLabel: '',\n menuVisibleOnFocus: false,\n isBeforeHide: false,\n })\n\n // data refs\n const popperSize = ref(-1)\n\n // DOM & Component refs\n const selectRef = ref<HTMLElement>()\n const selectionRef = ref<HTMLElement>()\n const tooltipRef = ref<TooltipInstance>()\n const tagTooltipRef = ref<TooltipInstance>()\n const inputRef = ref<HTMLElement>()\n const prefixRef = ref<HTMLElement>()\n const suffixRef = ref<HTMLElement>()\n const menuRef = ref<SelectDropdownInstance>()\n const tagMenuRef = ref<HTMLElement>()\n const collapseItemRef = ref<HTMLElement>()\n\n const {\n isComposing,\n handleCompositionStart,\n handleCompositionEnd,\n handleCompositionUpdate,\n } = useComposition({\n afterComposition: (e) => onInput(e),\n })\n\n const { wrapperRef, isFocused, handleBlur } = useFocusController(inputRef, {\n beforeFocus() {\n return selectDisabled.value\n },\n afterFocus() {\n if (props.automaticDropdown && !expanded.value) {\n expanded.value = true\n states.menuVisibleOnFocus = true\n }\n },\n beforeBlur(event) {\n return (\n tooltipRef.value?.isFocusInsideContent(event) ||\n tagTooltipRef.value?.isFocusInsideContent(event)\n )\n },\n afterBlur() {\n expanded.value = false\n states.menuVisibleOnFocus = false\n },\n })\n\n const allOptions = ref<OptionType[]>([])\n const filteredOptions = ref<OptionType[]>([])\n // the controller of the expanded popup\n const expanded = ref(false)\n\n const selectDisabled = computed(() => props.disabled || elForm?.disabled)\n\n const needStatusIcon = computed(() => elForm?.statusIcon ?? false)\n\n const popupHeight = computed(() => {\n const totalHeight = filteredOptions.value.length * props.itemHeight\n return totalHeight > props.height ? props.height : totalHeight\n })\n\n const hasModelValue = computed(() => {\n return props.multiple\n ? isArray(props.modelValue) && props.modelValue.length > 0\n : !isEmptyValue(props.modelValue)\n })\n\n const showClearBtn = computed(() => {\n return (\n props.clearable &&\n !selectDisabled.value &&\n states.inputHovering &&\n hasModelValue.value\n )\n })\n\n const iconComponent = computed(() =>\n props.remote && props.filterable ? '' : ArrowDown\n )\n\n const iconReverse = computed(\n () => iconComponent.value && nsSelect.is('reverse', expanded.value)\n )\n\n const validateState = computed(() => elFormItem?.validateState || '')\n const validateIcon = computed(() => {\n // When we use indexed access to get the type of an undeclared property,\n // the unsafe type `any` will be inferred, which TypeScript throws an error to emphasize it.\n // To avoid TypeScript complaining about it, we use truthiness narrowing to narrow the type of validateState.\n if (!validateState.value) return\n return ValidateComponentsMap[validateState.value]\n })\n\n const debounce = computed(() => (props.remote ? 300 : 0))\n\n // filteredOptions includes flatten the data into one dimensional array.\n const emptyText = computed(() => {\n if (props.loading) {\n return props.loadingText || t('el.select.loading')\n } else {\n if (props.remote && !states.inputValue && allOptions.value.length === 0)\n return false\n if (\n props.filterable &&\n states.inputValue &&\n allOptions.value.length > 0 &&\n filteredOptions.value.length === 0\n ) {\n return props.noMatchText || t('el.select.noMatch')\n }\n if (allOptions.value.length === 0) {\n return props.noDataText || t('el.select.noData')\n }\n }\n return null\n })\n\n const filterOptions = (query: string) => {\n const isValidOption = (o: Option): boolean => {\n if (props.filterable && isFunction(props.filterMethod)) return true\n if (props.filterable && props.remote && isFunction(props.remoteMethod))\n return true\n // when query was given, we should test on the label see whether the label contains the given query\n const regexp = new RegExp(escapeStringRegexp(query), 'i')\n return query ? regexp.test(getLabel(o) || '') : true\n }\n if (props.loading) {\n return []\n }\n\n return [...states.createdOptions, ...props.options].reduce((all, item) => {\n const options = getOptions(item)\n\n if (isArray(options)) {\n const filtered = options.filter(isValidOption)\n\n if (filtered.length > 0) {\n all.push(\n {\n label: getLabel(item),\n type: 'Group',\n },\n ...filtered\n )\n }\n } else if (props.remote || isValidOption(item)) {\n all.push(item)\n }\n\n return all\n }, []) as OptionType[]\n }\n\n const updateOptions = () => {\n allOptions.value = filterOptions('')\n filteredOptions.value = filterOptions(states.inputValue)\n }\n\n const allOptionsValueMap = computed(() => {\n const valueMap = new Map()\n\n allOptions.value.forEach((option, index) => {\n valueMap.set(getValueKey(getValue(option)), { option, index })\n })\n return valueMap\n })\n\n const filteredOptionsValueMap = computed(() => {\n const valueMap = new Map()\n\n filteredOptions.value.forEach((option, index) => {\n valueMap.set(getValueKey(getValue(option)), { option, index })\n })\n return valueMap\n })\n\n const optionsAllDisabled = computed(() =>\n filteredOptions.value.every((option) => getDisabled(option))\n )\n\n const selectSize = useFormSize()\n\n const collapseTagSize = computed(() =>\n 'small' === selectSize.value ? 'small' : 'default'\n )\n\n const calculatePopperSize = () => {\n if (isNumber(props.fitInputWidth)) {\n popperSize.value = props.fitInputWidth\n return\n }\n const width = selectRef.value?.offsetWidth || 200\n if (!props.fitInputWidth && allOptions.value.length > 0) {\n nextTick(() => {\n popperSize.value = Math.max(width, calculateLabelMaxWidth())\n })\n } else {\n popperSize.value = width\n }\n }\n\n // TODO Caching implementation\n // 1. There is no need to calculate options that have already been calculated\n // 2. Repeatedly expand and close when persistent is set to false, no need for repeated calculations\n const calculateLabelMaxWidth = () => {\n const canvas = document.createElement('canvas')\n const ctx = canvas.getContext('2d')\n const selector = nsSelect.be('dropdown', 'item')\n const dom = menuRef.value?.listRef?.innerRef || document\n const dropdownItemEl = dom.querySelector(`.${selector}`)\n if (dropdownItemEl === null || ctx === null) return 0\n const style = getComputedStyle(dropdownItemEl)\n const padding =\n Number.parseFloat(style.paddingLeft) +\n Number.parseFloat(style.paddingRight)\n ctx.font = style.font\n const maxWidth = filteredOptions.value.reduce((max, option) => {\n const metrics = ctx.measureText(getLabel(option))\n return Math.max(metrics.width, max)\n }, 0)\n return maxWidth + padding\n }\n\n const getGapWidth = () => {\n if (!selectionRef.value) return 0\n const style = window.getComputedStyle(selectionRef.value)\n return Number.parseFloat(style.gap || '6px')\n }\n\n // computed style\n const tagStyle = computed(() => {\n const gapWidth = getGapWidth()\n const maxWidth =\n collapseItemRef.value && props.maxCollapseTags === 1\n ? states.selectionWidth - states.collapseItemWidth - gapWidth\n : states.selectionWidth\n return { maxWidth: `${maxWidth}px` }\n })\n\n const collapseTagStyle = computed(() => {\n return { maxWidth: `${states.selectionWidth}px` }\n })\n\n const shouldShowPlaceholder = computed(() => {\n if (isArray(props.modelValue)) {\n return props.modelValue.length === 0 && !states.inputValue\n }\n\n // when it's not multiple mode, we only determine this flag based on filterable and expanded\n // when filterable flag is true, which means we have input box on the screen\n return props.filterable ? !states.inputValue : true\n })\n\n const currentPlaceholder = computed(() => {\n const _placeholder = props.placeholder ?? t('el.select.placeholder')\n return props.multiple || !hasModelValue.value\n ? _placeholder\n : states.selectedLabel\n })\n\n // this obtains the actual popper DOM element.\n const popperRef = computed(() => tooltipRef.value?.popperRef?.contentRef)\n\n // the index with current value in options\n const indexRef = computed<number>(() => {\n if (props.multiple) {\n const len = (props.modelValue as []).length\n if (\n (props.modelValue as Array<any>).length > 0 &&\n filteredOptionsValueMap.value.has(props.modelValue[len - 1])\n ) {\n const { index } = filteredOptionsValueMap.value.get(\n props.modelValue[len - 1]\n )\n return index\n }\n } else {\n if (\n !isEmptyValue(props.modelValue) &&\n filteredOptionsValueMap.value.has(props.modelValue)\n ) {\n const { index } = filteredOptionsValueMap.value.get(props.modelValue)\n return index\n }\n }\n return -1\n })\n\n const dropdownMenuVisible = computed({\n get() {\n return expanded.value && emptyText.value !== false\n },\n set(val: boolean) {\n expanded.value = val\n },\n })\n\n const showTagList = computed(() => {\n if (!props.multiple) {\n return []\n }\n return props.collapseTags\n ? states.cachedOptions.slice(0, props.maxCollapseTags)\n : states.cachedOptions\n })\n\n const collapseTagList = computed(() => {\n if (!props.multiple) {\n return []\n }\n return props.collapseTags\n ? states.cachedOptions.slice(props.maxCollapseTags)\n : []\n })\n\n // hooks\n const {\n createNewOption,\n removeNewOption,\n selectNewOption,\n clearAllNewOption,\n } = useAllowCreate(props, states)\n\n // methods\n const toggleMenu = () => {\n if (selectDisabled.value) return\n\n if (states.menuVisibleOnFocus) {\n // controlled by automaticDropdown\n states.menuVisibleOnFocus = false\n } else {\n expanded.value = !expanded.value\n }\n }\n\n const onInputChange = () => {\n if (states.inputValue.length > 0 && !expanded.value) {\n expanded.value = true\n }\n createNewOption(states.inputValue)\n handleQueryChange(states.inputValue)\n }\n\n const debouncedOnInputChange = lodashDebounce(onInputChange, debounce.value)\n\n const handleQueryChange = (val: string) => {\n if (states.previousQuery === val || isComposing.value) {\n return\n }\n states.previousQuery = val\n if (props.filterable && isFunction(props.filterMethod)) {\n props.filterMethod(val)\n } else if (\n props.filterable &&\n props.remote &&\n isFunction(props.remoteMethod)\n ) {\n props.remoteMethod(val)\n }\n if (\n props.defaultFirstOption &&\n (props.filterable || props.remote) &&\n filteredOptions.value.length\n ) {\n nextTick(checkDefaultFirstOption)\n } else {\n nextTick(updateHoveringIndex)\n }\n }\n\n /**\n * find and highlight first option as default selected\n * @remark\n * - if the first option in dropdown list is user-created,\n * it would be at the end of the optionsArray\n * so find it and set hover.\n * (NOTE: there must be only one user-created option in dropdown list with query)\n * - if there's no user-created option in list, just find the first one as usual\n * (NOTE: exclude options that are disabled or in disabled-group)\n */\n const checkDefaultFirstOption = () => {\n const optionsInDropdown = filteredOptions.value.filter(\n (n) => !n.disabled && n.type !== 'Group'\n )\n const userCreatedOption = optionsInDropdown.find((n) => n.created)\n const firstOriginOption = optionsInDropdown[0]\n states.hoveringIndex = getValueIndex(\n filteredOptions.value,\n userCreatedOption || firstOriginOption\n )\n }\n\n const emitChange = (val: any | any[]) => {\n if (!isEqual(props.modelValue, val)) {\n emit(CHANGE_EVENT, val)\n }\n }\n\n const update = (val: any) => {\n emit(UPDATE_MODEL_EVENT, val)\n emitChange(val)\n states.previousValue = props.multiple ? String(val) : val\n }\n\n const getValueIndex = (arr: unknown[] = [], value: unknown) => {\n if (!isObject(value)) {\n return arr.indexOf(value)\n }\n const valueKey = props.valueKey\n let index = -1\n arr.some((item, i) => {\n if (get(item, valueKey) === get(value, valueKey)) {\n index = i\n return true\n }\n return false\n })\n return index\n }\n\n const getValueKey = (item: unknown) => {\n return isObject(item) ? get(item, props.valueKey) : item\n }\n\n const handleResize = () => {\n calculatePopperSize()\n }\n\n const resetSelectionWidth = () => {\n states.selectionWidth = selectionRef.value!.getBoundingClientRect().width\n }\n\n const resetCollapseItemWidth = () => {\n states.collapseItemWidth =\n collapseItemRef.value!.getBoundingClientRect().width\n }\n\n const updateTooltip = () => {\n tooltipRef.value?.updatePopper?.()\n }\n\n const updateTagTooltip = () => {\n tagTooltipRef.value?.updatePopper?.()\n }\n\n const onSelect = (option: Option) => {\n if (props.multiple) {\n let selectedOptions = (props.modelValue as any[]).slice()\n\n const index = getValueIndex(selectedOptions, getValue(option))\n if (index > -1) {\n selectedOptions = [\n ...selectedOptions.slice(0, index),\n ...selectedOptions.slice(index + 1),\n ]\n states.cachedOptions.splice(index, 1)\n removeNewOption(option)\n } else if (\n props.multipleLimit <= 0 ||\n selectedOptions.length < props.multipleLimit\n ) {\n selectedOptions = [...selectedOptions, getValue(option)]\n states.cachedOptions.push(option)\n selectNewOption(option)\n }\n update(selectedOptions)\n if (option.created) {\n handleQueryChange('')\n }\n if (props.filterable && !props.reserveKeyword) {\n states.inputValue = ''\n }\n } else {\n states.selectedLabel = getLabel(option)\n update(getValue(option))\n expanded.value = false\n selectNewOption(option)\n if (!option.created) {\n clearAllNewOption()\n }\n }\n focus()\n }\n\n const deleteTag = (event: MouseEvent, option: Option) => {\n let selectedOptions = (props.modelValue as any[]).slice()\n\n const index = getValueIndex(selectedOptions, getValue(option))\n\n if (index > -1 && !selectDisabled.value) {\n selectedOptions = [\n ...(props.modelValue as Array<unknown>).slice(0, index),\n ...(props.modelValue as Array<unknown>).slice(index + 1),\n ]\n states.cachedOptions.splice(index, 1)\n update(selectedOptions)\n emit('remove-tag', getValue(option))\n removeNewOption(option)\n }\n event.stopPropagation()\n focus()\n }\n\n const focus = () => {\n inputRef.value?.focus()\n }\n\n const blur = () => {\n if (expanded.value) {\n expanded.value = false\n nextTick(() => inputRef.value?.blur())\n return\n }\n inputRef.value?.blur()\n }\n\n // keyboard handlers\n const handleEsc = () => {\n if (states.inputValue.length > 0) {\n states.inputValue = ''\n } else {\n expanded.value = false\n }\n }\n\n const getLastNotDisabledIndex = (value: unknown[]) =>\n findLastIndex(\n value,\n (it) =>\n !states.cachedOptions.some(\n (option) => getValue(option) === it && getDisabled(option)\n )\n )\n\n const handleDel = (e: KeyboardEvent) => {\n if (!props.multiple) return\n if (e.code === EVENT_CODE.delete) return\n if (states.inputValue.length === 0) {\n e.preventDefault()\n const selected = (props.modelValue as Array<any>).slice()\n const lastNotDisabledIndex = getLastNotDisabledIndex(selected)\n if (lastNotDisabledIndex < 0) return\n const removeTagValue = selected[lastNotDisabledIndex]\n selected.splice(lastNotDisabledIndex, 1)\n const option = states.cachedOptions[lastNotDisabledIndex]\n states.cachedOptions.splice(lastNotDisabledIndex, 1)\n removeNewOption(option)\n update(selected)\n emit('remove-tag', removeTagValue)\n }\n }\n\n const handleClear = () => {\n let emptyValue: string | any[]\n if (isArray(props.modelValue)) {\n emptyValue = []\n } else {\n emptyValue = valueOnClear.value\n }\n\n if (props.multiple) {\n states.cachedOptions = []\n } else {\n states.selectedLabel = ''\n }\n expanded.value = false\n update(emptyValue)\n emit('clear')\n clearAllNewOption()\n focus()\n }\n\n const onKeyboardNavigate = (\n direction: 'forward' | 'backward',\n hoveringIndex: number | undefined = undefined\n ): void => {\n const options = filteredOptions.value\n if (\n !['forward', 'backward'].includes(direction) ||\n selectDisabled.value ||\n options.length <= 0 ||\n optionsAllDisabled.value ||\n isComposing.value\n ) {\n return\n }\n if (!expanded.value) {\n return toggleMenu()\n }\n if (hoveringIndex === undefined) {\n hoveringIndex = states.hoveringIndex\n }\n let newIndex = -1\n if (direction === 'forward') {\n newIndex = hoveringIndex + 1\n if (newIndex >= options.length) {\n // return to the first option\n newIndex = 0\n }\n } else if (direction === 'backward') {\n newIndex = hoveringIndex - 1\n if (newIndex < 0 || newIndex >= options.length) {\n // navigate to the last one\n newIndex = options.length - 1\n }\n }\n const option = options[newIndex]\n if (getDisabled(option) || option.type === 'Group') {\n // prevent dispatching multiple nextTick callbacks.\n return onKeyboardNavigate(direction, newIndex)\n } else {\n states.hoveringIndex = newIndex\n scrollToItem(newIndex)\n }\n }\n\n const onKeyboardSelect = () => {\n if (!expanded.value) {\n return toggleMenu()\n } else if (\n ~states.hoveringIndex &&\n filteredOptions.value[states.hoveringIndex]\n ) {\n onSelect(filteredOptions.value[states.hoveringIndex])\n }\n }\n\n const onHoverOption = (idx?: number) => {\n states.hoveringIndex = idx ?? -1\n }\n\n const updateHoveringIndex = () => {\n if (!props.multiple) {\n states.hoveringIndex = filteredOptions.value.findIndex((item) => {\n return getValueKey(item) === getValueKey(props.modelValue)\n })\n } else {\n states.hoveringIndex = filteredOptions.value.findIndex((item) =>\n props.modelValue.some(\n (modelValue: unknown) => getValueKey(modelValue) === getValueKey(item)\n )\n )\n }\n }\n\n const onInput = (event: Event) => {\n states.inputValue = (event.target as HTMLInputElement).value\n if (props.remote) {\n debouncedOnInputChange()\n } else {\n return onInputChange()\n }\n }\n\n const handleClickOutside = (event: Event) => {\n expanded.value = false\n\n if (isFocused.value) {\n const _event = new FocusEvent('focus', event)\n handleBlur(_event)\n }\n }\n\n const handleMenuEnter = () => {\n states.isBeforeHide = false\n return nextTick(() => {\n if (~indexRef.value) {\n scrollToItem(states.hoveringIndex)\n }\n })\n }\n\n const scrollToItem = (index: number) => {\n menuRef.value!.scrollToItem(index)\n }\n\n const getOption = (value: unknown, cachedOptions?: Option[]) => {\n // match the option with the given value, if not found, create a new option\n const selectValue = getValueKey(value)\n\n if (allOptionsValueMap.value.has(selectValue)) {\n const { option } = allOptionsValueMap.value.get(selectValue)\n\n return option\n }\n if (cachedOptions && cachedOptions.length) {\n const option = cachedOptions.find(\n (option) => getValueKey(getValue(option)) === selectValue\n )\n if (option) {\n return option\n }\n }\n\n return {\n [aliasProps.value.value]: value,\n [aliasProps.value.label]: value,\n }\n }\n\n const initStates = (needUpdateSelectedLabel = false) => {\n if (props.multiple) {\n if ((props.modelValue as Array<any>).length > 0) {\n const cachedOptions = states.cachedOptions.slice()\n states.cachedOptions.length = 0\n states.previousValue = props.modelValue.toString()\n\n for (const value of props.modelValue) {\n const option = getOption(value, cachedOptions)\n states.cachedOptions.push(option)\n }\n } else {\n states.cachedOptions = []\n states.previousValue = undefined\n }\n } else {\n if (hasModelValue.value) {\n states.previousValue = props.modelValue\n const options = filteredOptions.value\n const selectedItemIndex = options.findIndex(\n (option) =>\n getValueKey(getValue(option)) === getValueKey(props.modelValue)\n )\n if (~selectedItemIndex) {\n states.selectedLabel = getLabel(options[selectedItemIndex])\n } else {\n if (!states.selectedLabel || needUpdateSelectedLabel) {\n states.selectedLabel = getValueKey(props.modelValue)\n }\n }\n } else {\n states.selectedLabel = ''\n states.previousValue = undefined\n }\n }\n clearAllNewOption()\n calculatePopperSize()\n }\n\n watch(\n () => props.fitInputWidth,\n () => {\n calculatePopperSize()\n }\n )\n\n // in order to track these individually, we need to turn them into refs instead of watching the entire\n // reactive object which could cause perf penalty when unnecessary field gets changed the watch method will\n // be invoked.\n\n watch(expanded, (val) => {\n if (val) {\n if (!props.persistent) {\n calculatePopperSize()\n }\n handleQueryChange('')\n } else {\n states.inputValue = ''\n states.previousQuery = null\n states.isBeforeHide = true\n createNewOption('')\n }\n emit('visible-change', val)\n })\n\n watch(\n () => props.modelValue,\n (val, oldVal) => {\n const isValEmpty = !val || (isArray(val) && val.length === 0)\n\n if (\n isValEmpty ||\n (props.multiple && !isEqual(val.toString(), states.previousValue)) ||\n (!props.multiple &&\n getValueKey(val) !== getValueKey(states.previousValue))\n ) {\n initStates(true)\n }\n if (!isEqual(val, oldVal) && props.validateEvent) {\n elFormItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n },\n {\n deep: true,\n }\n )\n\n watch(\n () => props.options,\n () => {\n const input = inputRef.value\n // filter or remote-search scenarios are not initialized\n if (!input || (input && document.activeElement !== input)) {\n initStates()\n }\n },\n {\n deep: true,\n flush: 'post',\n }\n )\n\n // fix the problem that scrollTop is not reset in filterable mode\n watch(\n () => filteredOptions.value,\n () => {\n calculatePopperSize()\n return menuRef.value && nextTick(menuRef.value.resetScrollTop)\n }\n )\n\n watchEffect(() => {\n // Anything could cause options changed, then update options\n // If you want to control it by condition, write here\n if (states.isBeforeHide) return\n updateOptions()\n })\n\n watchEffect(() => {\n const { valueKey, options } = props\n const duplicateValue = new Map()\n for (const item of options) {\n const optionValue = getValue(item)\n let v = optionValue\n if (isObject(v)) {\n v = get(optionValue, valueKey)\n }\n if (duplicateValue.get(v)) {\n debugWarn(\n 'ElSelectV2',\n `The option values you provided seem to be duplicated, which may cause some problems, please check.`\n )\n break\n } else {\n duplicateValue.set(v, true)\n }\n }\n })\n\n onMounted(() => {\n initStates()\n })\n useResizeObserver(selectRef, handleResize)\n useResizeObserver(selectionRef, resetSelectionWidth)\n useResizeObserver(menuRef, updateTooltip)\n useResizeObserver(wrapperRef, updateTooltip)\n useResizeObserver(tagMenuRef, updateTagTooltip)\n useResizeObserver(collapseItemRef, resetCollapseItemWidth)\n\n return {\n // data exports\n inputId,\n collapseTagSize,\n currentPlaceholder,\n expanded,\n emptyText,\n popupHeight,\n debounce,\n allOptions,\n filteredOptions,\n iconComponent,\n iconReverse,\n tagStyle,\n collapseTagStyle,\n popperSize,\n dropdownMenuVisible,\n hasModelValue,\n shouldShowPlaceholder,\n selectDisabled,\n selectSize,\n needStatusIcon,\n showClearBtn,\n states,\n isFocused,\n nsSelect,\n nsInput,\n\n // refs items exports\n inputRef,\n menuRef,\n tagMenuRef,\n tooltipRef,\n tagTooltipRef,\n selectRef,\n wrapperRef,\n selectionRef,\n prefixRef,\n suffixRef,\n collapseItemRef,\n\n popperRef,\n\n validateState,\n validateIcon,\n showTagList,\n collapseTagList,\n\n // methods exports\n debouncedOnInputChange,\n deleteTag,\n getLabel,\n getValue,\n getDisabled,\n getValueKey,\n handleClear,\n handleClickOutside,\n handleDel,\n handleEsc,\n focus,\n blur,\n handleMenuEnter,\n handleResize,\n resetSelectionWidth,\n updateTooltip,\n updateTagTooltip,\n updateOptions,\n toggleMenu,\n scrollTo: scrollToItem,\n onInput,\n onKeyboardNavigate,\n onKeyboardSelect,\n onSelect,\n onHover: onHoverOption,\n handleCompositionStart,\n handleCompositionEnd,\n handleCompositionUpdate,\n }\n}\n\nexport default useSelect\n"],"names":["useLocale","useNamespace","useFormItem","useFormItemInputId","useProps","useEmptyValues","reactive","ref","useComposition","useFocusController","computed","isArray","ArrowDown","ValidateComponentsMap","isFunction","escapeStringRegexp","useFormSize","isNumber","nextTick","useAllowCreate","lodashDebounce","isEqual","CHANGE_EVENT","UPDATE_MODEL_EVENT","isObject","get","findLastIndex","EVENT_CODE","watch","debugWarn","watchEffect","onMounted","useResizeObserver"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA6CK,MAAC,SAAS,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AACnC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAGA,eAAS,EAAE,CAAC;AAC5B,EAAE,MAAM,QAAQ,GAAGC,oBAAY,CAAC,QAAQ,CAAC,CAAC;AAC1C,EAAE,MAAM,OAAO,GAAGA,oBAAY,CAAC,OAAO,CAAC,CAAC;AACxC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAGC,uBAAW,EAAE,CAAC;AAC/D,EAAE,MAAM,EAAE,OAAO,EAAE,GAAGC,8BAAkB,CAAC,KAAK,EAAE;AAChD,IAAI,eAAe,EAAE,UAAU;AAC/B,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,GAAGC,iBAAQ,CAAC,KAAK,CAAC,CAAC;AACtF,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAGC,sBAAc,CAAC,KAAK,CAAC,CAAC;AAC/D,EAAE,MAAM,MAAM,GAAGC,YAAQ,CAAC;AAC1B,IAAI,UAAU,EAAE,EAAE;AAClB,IA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B;AACtB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,KAAK;AACT,IAAI,IAAI;AACR,IAAI,eAAe;AACnB,IAAI,YAAY;AAChB,IAAI,mBAAmB;AACvB,IAAI,aAAa;AACjB,IAAI,gBAAgB;AACpB,IAAI,aAAa;AACjB,IAAI,UAAU;AACd,IAAI,QAAQ,EAAE,YAAY;AAC1B,IAAI,OAAO;AACX,IAAI,kBAAkB;AACtB,IAAI,gBAAgB;AACpB,IAAI,QAAQ;AACZ,IAAI,OAAO,EAAE,aAAa;AAC1B,IAAI,sBAAsB;AAC1B,IAAI,oBAAoB;AACxB,IAAI,uBAAuB;AAC3B,GAAG,CAAC;AACJ;;;;"}
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var skeleton$1 = require('./src/skeleton.js');
6
- var skeletonItem$1 = require('./src/skeleton-item2.js');
7
- var skeleton = require('./src/skeleton2.js');
8
- var skeletonItem = require('./src/skeleton-item.js');
5
+ var skeleton$1 = require('./src/skeleton2.js');
6
+ var skeletonItem$1 = require('./src/skeleton-item.js');
7
+ var skeleton = require('./src/skeleton.js');
8
+ var skeletonItem = require('./src/skeleton-item2.js');
9
9
  var install = require('../../utils/vue/install.js');
10
10
 
11
11
  const ElSkeleton = install.withInstall(skeleton$1["default"], {
@@ -2,25 +2,30 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var iconsVue = require('@element-plus/icons-vue');
7
+ var skeletonItem = require('./skeleton-item2.js');
8
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
+ var index = require('../../../hooks/use-namespace/index.js');
6
10
 
7
- const skeletonItemProps = runtime.buildProps({
8
- variant: {
9
- type: String,
10
- values: [
11
- "circle",
12
- "rect",
13
- "h1",
14
- "h3",
15
- "text",
16
- "caption",
17
- "p",
18
- "image",
19
- "button"
20
- ],
21
- default: "text"
11
+ const __default__ = vue.defineComponent({
12
+ name: "ElSkeletonItem"
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ ...__default__,
16
+ props: skeletonItem.skeletonItemProps,
17
+ setup(__props) {
18
+ const ns = index.useNamespace("skeleton");
19
+ return (_ctx, _cache) => {
20
+ return vue.openBlock(), vue.createElementBlock("div", {
21
+ class: vue.normalizeClass([vue.unref(ns).e("item"), vue.unref(ns).e(_ctx.variant)])
22
+ }, [
23
+ _ctx.variant === "image" ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.PictureFilled), { key: 0 })) : vue.createCommentVNode("v-if", true)
24
+ ], 2);
25
+ };
22
26
  }
23
27
  });
28
+ var SkeletonItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "skeleton-item.vue"]]);
24
29
 
25
- exports.skeletonItemProps = skeletonItemProps;
30
+ exports["default"] = SkeletonItem;
26
31
  //# sourceMappingURL=skeleton-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-item.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type SkeletonItem from './skeleton-item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const skeletonItemProps = buildProps({\n /**\n * @description the current rendering skeleton type\n */\n variant: {\n type: String,\n values: [\n 'circle',\n 'rect',\n 'h1',\n 'h3',\n 'text',\n 'caption',\n 'p',\n 'image',\n 'button',\n ],\n default: 'text',\n },\n} as const)\nexport type SkeletonItemProps = ExtractPropTypes<typeof skeletonItemProps>\n\nexport type SkeletonItemInstance = InstanceType<typeof SkeletonItem>\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE;AACZ,MAAM,QAAQ;AACd,MAAM,MAAM;AACZ,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,MAAM;AACZ,MAAM,SAAS;AACf,MAAM,GAAG;AACT,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,KAAK;AACL,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"skeleton-item.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.e('item'), ns.e(variant)]\">\n <picture-filled v-if=\"variant === 'image'\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { PictureFilled } from '@element-plus/icons-vue'\nimport { skeletonItemProps } from './skeleton-item'\n\ndefineOptions({\n name: 'ElSkeletonItem',\n})\ndefineProps(skeletonItemProps)\nconst ns = useNamespace('skeleton')\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;uCAWc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAEA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -2,30 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var iconsVue = require('@element-plus/icons-vue');
7
- var skeletonItem = require('./skeleton-item.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
- var index = require('../../../hooks/use-namespace/index.js');
5
+ var runtime = require('../../../utils/vue/props/runtime.js');
10
6
 
11
- const __default__ = vue.defineComponent({
12
- name: "ElSkeletonItem"
13
- });
14
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
- ...__default__,
16
- props: skeletonItem.skeletonItemProps,
17
- setup(__props) {
18
- const ns = index.useNamespace("skeleton");
19
- return (_ctx, _cache) => {
20
- return vue.openBlock(), vue.createElementBlock("div", {
21
- class: vue.normalizeClass([vue.unref(ns).e("item"), vue.unref(ns).e(_ctx.variant)])
22
- }, [
23
- _ctx.variant === "image" ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.PictureFilled), { key: 0 })) : vue.createCommentVNode("v-if", true)
24
- ], 2);
25
- };
7
+ const skeletonItemProps = runtime.buildProps({
8
+ variant: {
9
+ type: String,
10
+ values: [
11
+ "circle",
12
+ "rect",
13
+ "h1",
14
+ "h3",
15
+ "text",
16
+ "caption",
17
+ "p",
18
+ "image",
19
+ "button"
20
+ ],
21
+ default: "text"
26
22
  }
27
23
  });
28
- var SkeletonItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "skeleton-item.vue"]]);
29
24
 
30
- exports["default"] = SkeletonItem;
25
+ exports.skeletonItemProps = skeletonItemProps;
31
26
  //# sourceMappingURL=skeleton-item2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-item2.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.e('item'), ns.e(variant)]\">\n <picture-filled v-if=\"variant === 'image'\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { PictureFilled } from '@element-plus/icons-vue'\nimport { skeletonItemProps } from './skeleton-item'\n\ndefineOptions({\n name: 'ElSkeletonItem',\n})\ndefineProps(skeletonItemProps)\nconst ns = useNamespace('skeleton')\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;uCAWc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAEA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"skeleton-item2.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type SkeletonItem from './skeleton-item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const skeletonItemProps = buildProps({\n /**\n * @description the current rendering skeleton type\n */\n variant: {\n type: String,\n values: [\n 'circle',\n 'rect',\n 'h1',\n 'h3',\n 'text',\n 'caption',\n 'p',\n 'image',\n 'button',\n ],\n default: 'text',\n },\n} as const)\nexport type SkeletonItemProps = ExtractPropTypes<typeof skeletonItemProps>\n\nexport type SkeletonItemInstance = InstanceType<typeof SkeletonItem>\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE;AACZ,MAAM,QAAQ;AACd,MAAM,MAAM;AACZ,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,MAAM;AACZ,MAAM,SAAS;AACf,MAAM,GAAG;AACT,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,KAAK;AACL,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
@@ -2,56 +2,29 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var skeleton = require('./skeleton2.js');
7
- var skeletonItem = require('./skeleton-item2.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
- var index$1 = require('../../../hooks/use-throttle-render/index.js');
10
- var index = require('../../../hooks/use-namespace/index.js');
5
+ var runtime = require('../../../utils/vue/props/runtime.js');
11
6
 
12
- const __default__ = vue.defineComponent({
13
- name: "ElSkeleton"
14
- });
15
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
- ...__default__,
17
- props: skeleton.skeletonProps,
18
- setup(__props, { expose }) {
19
- const props = __props;
20
- const ns = index.useNamespace("skeleton");
21
- const uiLoading = index$1.useThrottleRender(vue.toRef(props, "loading"), props.throttle);
22
- expose({
23
- uiLoading
24
- });
25
- return (_ctx, _cache) => {
26
- return vue.unref(uiLoading) ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
27
- key: 0,
28
- class: [vue.unref(ns).b(), vue.unref(ns).is("animated", _ctx.animated)]
29
- }, _ctx.$attrs), [
30
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.count, (i) => {
31
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: i }, [
32
- vue.unref(uiLoading) ? vue.renderSlot(_ctx.$slots, "template", { key: i }, () => [
33
- vue.createVNode(skeletonItem["default"], {
34
- class: vue.normalizeClass(vue.unref(ns).is("first")),
35
- variant: "p"
36
- }, null, 8, ["class"]),
37
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.rows, (item) => {
38
- return vue.openBlock(), vue.createBlock(skeletonItem["default"], {
39
- key: item,
40
- class: vue.normalizeClass([
41
- vue.unref(ns).e("paragraph"),
42
- vue.unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
43
- ]),
44
- variant: "p"
45
- }, null, 8, ["class"]);
46
- }), 128))
47
- ]) : vue.createCommentVNode("v-if", true)
48
- ], 64);
49
- }), 128))
50
- ], 16)) : vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.mergeProps({ key: 1 }, _ctx.$attrs)));
51
- };
7
+ const skeletonProps = runtime.buildProps({
8
+ animated: {
9
+ type: Boolean,
10
+ default: false
11
+ },
12
+ count: {
13
+ type: Number,
14
+ default: 1
15
+ },
16
+ rows: {
17
+ type: Number,
18
+ default: 3
19
+ },
20
+ loading: {
21
+ type: Boolean,
22
+ default: true
23
+ },
24
+ throttle: {
25
+ type: runtime.definePropType([Number, Object])
52
26
  }
53
27
  });
54
- var Skeleton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "skeleton.vue"]]);
55
28
 
56
- exports["default"] = Skeleton;
29
+ exports.skeletonProps = skeletonProps;
57
30
  //# sourceMappingURL=skeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.vue"],"sourcesContent":["<template>\n <template v-if=\"uiLoading\">\n <div :class=\"[ns.b(), ns.is('animated', animated)]\" v-bind=\"$attrs\">\n <template v-for=\"i in count\" :key=\"i\">\n <slot v-if=\"uiLoading\" :key=\"i\" name=\"template\">\n <el-skeleton-item :class=\"ns.is('first')\" variant=\"p\" />\n <el-skeleton-item\n v-for=\"item in rows\"\n :key=\"item\"\n :class=\"[\n ns.e('paragraph'),\n ns.is('last', item === rows && rows > 1),\n ]\"\n variant=\"p\"\n />\n </slot>\n </template>\n </div>\n </template>\n <template v-else>\n <slot v-bind=\"$attrs\" />\n </template>\n</template>\n\n<script lang=\"ts\" setup>\nimport { toRef } from 'vue'\nimport { useNamespace, useThrottleRender } from '@element-plus/hooks'\nimport { skeletonProps } from './skeleton'\nimport ElSkeletonItem from './skeleton-item.vue'\n\ndefineOptions({\n name: 'ElSkeleton',\n})\nconst props = defineProps(skeletonProps)\n\nconst ns = useNamespace('skeleton')\nconst uiLoading = useThrottleRender(toRef(props, 'loading'), props.throttle)\n\ndefineExpose({\n /** @description loading state */\n uiLoading,\n})\n</script>\n"],"names":["useNamespace","useThrottleRender","toRef"],"mappings":";;;;;;;;;;;uCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AAClC,IAAA,MAAM,YAAYC,yBAAkB,CAAAC,SAAA,CAAM,OAAO,SAAS,CAAA,EAAG,MAAM,QAAQ,CAAA,CAAA;AAE3E,IAAa,MAAA,CAAA;AAAA,MAAA,SAAA;AAAA,KAEX,CAAA,CAAA;AAAA,IACF,OAAC,CAAA,IAAA,EAAA,MAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"skeleton.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ThrottleType } from '@element-plus/hooks'\n\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: {\n type: Boolean,\n default: false,\n },\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether showing the real DOM\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: definePropType<ThrottleType>([Number, Object]),\n },\n} as const)\nexport type SkeletonProps = ExtractPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,CAAC;;;;"}