@element-plus/nightly 0.0.20241231 → 0.0.20250102

Sign up to get free protection for your applications and to get access to all the features.
Files changed (703) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +28 -44
  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 +28 -44
  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 +2 -2
  253. package/es/components/anchor/src/anchor.mjs +42 -192
  254. package/es/components/anchor/src/anchor.mjs.map +1 -1
  255. package/es/components/anchor/src/anchor2.mjs +192 -42
  256. package/es/components/anchor/src/anchor2.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/button/index.mjs +1 -1
  267. package/es/components/button/src/button-group.mjs +29 -6
  268. package/es/components/button/src/button-group.mjs.map +1 -1
  269. package/es/components/button/src/button-group2.mjs +6 -29
  270. package/es/components/button/src/button-group2.mjs.map +1 -1
  271. package/es/components/calendar/index.mjs +2 -2
  272. package/es/components/calendar/src/calendar.mjs +134 -16
  273. package/es/components/calendar/src/calendar.mjs.map +1 -1
  274. package/es/components/calendar/src/calendar2.mjs +16 -134
  275. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  276. package/es/components/carousel/index.mjs +2 -2
  277. package/es/components/carousel/src/carousel-item.mjs +69 -7
  278. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  279. package/es/components/carousel/src/carousel-item2.mjs +7 -69
  280. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  281. package/es/components/cascader/src/cascader.mjs +1 -1
  282. package/es/components/cascader-panel/src/index.mjs +1 -1
  283. package/es/components/cascader-panel/src/menu.mjs +1 -1
  284. package/es/components/cascader-panel/src/node.mjs +206 -115
  285. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  286. package/es/components/cascader-panel/src/node2.mjs +115 -206
  287. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  288. package/es/components/cascader-panel/src/store.mjs +1 -1
  289. package/es/components/check-tag/index.mjs +2 -2
  290. package/es/components/check-tag/src/check-tag.mjs +38 -14
  291. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  292. package/es/components/check-tag/src/check-tag2.mjs +14 -38
  293. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  294. package/es/components/countdown/index.mjs +2 -2
  295. package/es/components/countdown/src/countdown.mjs +22 -79
  296. package/es/components/countdown/src/countdown.mjs.map +1 -1
  297. package/es/components/countdown/src/countdown2.mjs +79 -22
  298. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  299. package/es/components/descriptions/src/description.mjs +1 -1
  300. package/es/components/descriptions/src/descriptions-row.mjs +6 -63
  301. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  302. package/es/components/descriptions/src/descriptions-row2.mjs +63 -6
  303. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  304. package/es/components/divider/index.mjs +2 -2
  305. package/es/components/divider/src/divider.mjs +16 -34
  306. package/es/components/divider/src/divider.mjs.map +1 -1
  307. package/es/components/divider/src/divider2.mjs +34 -16
  308. package/es/components/divider/src/divider2.mjs.map +1 -1
  309. package/es/components/dropdown/index.mjs +2 -2
  310. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  311. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  312. package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
  313. package/es/components/dropdown/src/dropdown.mjs +298 -102
  314. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  315. package/es/components/dropdown/src/dropdown2.mjs +102 -298
  316. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  317. package/es/components/image/index.mjs +2 -2
  318. package/es/components/image/src/image.mjs +64 -232
  319. package/es/components/image/src/image.mjs.map +1 -1
  320. package/es/components/image/src/image2.mjs +232 -64
  321. package/es/components/image/src/image2.mjs.map +1 -1
  322. package/es/components/index.mjs +28 -28
  323. package/es/components/input-tag/src/input-tag.mjs +1 -1
  324. package/es/components/mention/src/mention-dropdown.mjs +15 -166
  325. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  326. package/es/components/mention/src/mention-dropdown2.mjs +166 -15
  327. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  328. package/es/components/mention/src/mention2.mjs +1 -1
  329. package/es/components/menu/index.mjs +2 -2
  330. package/es/components/menu/src/menu-item-group.mjs +34 -4
  331. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  332. package/es/components/menu/src/menu-item-group2.mjs +4 -34
  333. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  334. package/es/components/message/index.mjs +1 -1
  335. package/es/components/message/src/message.mjs +91 -145
  336. package/es/components/message/src/message.mjs.map +1 -1
  337. package/es/components/message/src/message2.mjs +145 -91
  338. package/es/components/message/src/message2.mjs.map +1 -1
  339. package/es/components/message/src/method.mjs +2 -2
  340. package/es/components/page-header/src/page-header2.mjs +9 -13
  341. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  342. package/es/components/pagination/src/components/jumper.mjs +58 -7
  343. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  344. package/es/components/pagination/src/components/jumper2.mjs +7 -58
  345. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  346. package/es/components/pagination/src/components/next.mjs +18 -35
  347. package/es/components/pagination/src/components/next.mjs.map +1 -1
  348. package/es/components/pagination/src/components/next2.mjs +35 -18
  349. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  350. package/es/components/pagination/src/pagination.mjs +2 -2
  351. package/es/components/popconfirm/index.mjs +2 -2
  352. package/es/components/popconfirm/src/popconfirm.mjs +45 -114
  353. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  354. package/es/components/popconfirm/src/popconfirm2.mjs +114 -45
  355. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  356. package/es/components/popover/src/popover.mjs +1 -1
  357. package/es/components/popper/index.mjs +4 -4
  358. package/es/components/popper/src/popper.mjs +32 -22
  359. package/es/components/popper/src/popper.mjs.map +1 -1
  360. package/es/components/popper/src/popper2.mjs +22 -32
  361. package/es/components/popper/src/popper2.mjs.map +1 -1
  362. package/es/components/popper/src/trigger.mjs +127 -31
  363. package/es/components/popper/src/trigger.mjs.map +1 -1
  364. package/es/components/popper/src/trigger2.mjs +31 -127
  365. package/es/components/popper/src/trigger2.mjs.map +1 -1
  366. package/es/components/radio/index.mjs +2 -2
  367. package/es/components/radio/src/radio-button.mjs +1 -1
  368. package/es/components/radio/src/radio-group2.mjs +1 -1
  369. package/es/components/radio/src/radio.mjs +73 -32
  370. package/es/components/radio/src/radio.mjs.map +1 -1
  371. package/es/components/radio/src/radio2.mjs +32 -73
  372. package/es/components/radio/src/radio2.mjs.map +1 -1
  373. package/es/components/rate/index.mjs +2 -2
  374. package/es/components/rate/src/rate.mjs +83 -258
  375. package/es/components/rate/src/rate.mjs.map +1 -1
  376. package/es/components/rate/src/rate2.mjs +258 -83
  377. package/es/components/rate/src/rate2.mjs.map +1 -1
  378. package/es/components/roving-focus-group/index.mjs +3 -3
  379. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  380. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
  381. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  382. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
  383. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  384. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  385. package/es/components/row/index.mjs +2 -2
  386. package/es/components/row/src/row.mjs +44 -28
  387. package/es/components/row/src/row.mjs.map +1 -1
  388. package/es/components/row/src/row2.mjs +28 -44
  389. package/es/components/row/src/row2.mjs.map +1 -1
  390. package/es/components/segmented/index.mjs +2 -2
  391. package/es/components/segmented/src/segmented.mjs +33 -167
  392. package/es/components/segmented/src/segmented.mjs.map +1 -1
  393. package/es/components/segmented/src/segmented2.mjs +167 -33
  394. package/es/components/segmented/src/segmented2.mjs.map +1 -1
  395. package/es/components/select/src/select.mjs +1 -1
  396. package/es/components/select/src/select.vue.d.ts +4 -2
  397. package/es/components/select/src/select2.mjs +10 -2
  398. package/es/components/select/src/select2.mjs.map +1 -1
  399. package/es/components/select/src/useSelect.mjs +0 -13
  400. package/es/components/select/src/useSelect.mjs.map +1 -1
  401. package/es/components/select-v2/src/defaults.mjs +1 -1
  402. package/es/components/select-v2/src/select.mjs +10 -2
  403. package/es/components/select-v2/src/select.mjs.map +1 -1
  404. package/es/components/select-v2/src/select.types.d.ts +0 -1
  405. package/es/components/select-v2/src/select.vue.d.ts +4 -5
  406. package/es/components/select-v2/src/useSelect.d.ts +0 -5
  407. package/es/components/select-v2/src/useSelect.mjs +0 -13
  408. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  409. package/es/components/skeleton/index.mjs +2 -2
  410. package/es/components/skeleton/src/skeleton-item.mjs +22 -17
  411. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  412. package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
  413. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  414. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  415. package/es/components/steps/index.mjs +2 -2
  416. package/es/components/steps/src/item.mjs +19 -190
  417. package/es/components/steps/src/item.mjs.map +1 -1
  418. package/es/components/steps/src/item2.mjs +190 -19
  419. package/es/components/steps/src/item2.mjs.map +1 -1
  420. package/es/components/tabs/index.mjs +1 -1
  421. package/es/components/tabs/src/tab-bar.mjs +95 -7
  422. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  423. package/es/components/tabs/src/tab-bar2.mjs +7 -95
  424. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  425. package/es/components/tabs/src/tab-nav.mjs +1 -1
  426. package/es/components/tag/index.mjs +2 -2
  427. package/es/components/tag/src/tag.mjs +27 -99
  428. package/es/components/tag/src/tag.mjs.map +1 -1
  429. package/es/components/tag/src/tag2.mjs +99 -27
  430. package/es/components/tag/src/tag2.mjs.map +1 -1
  431. package/es/components/tooltip/index.mjs +2 -2
  432. package/es/components/tooltip/src/tooltip.mjs +166 -30
  433. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  434. package/es/components/tooltip/src/tooltip2.mjs +30 -166
  435. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  436. package/es/components/tooltip/src/trigger.mjs +1 -1
  437. package/es/components/tooltip/src/trigger2.mjs +1 -1
  438. package/es/components/tooltip-v2/index.mjs +2 -2
  439. package/es/components/tooltip-v2/src/content2.mjs +1 -1
  440. package/es/components/tooltip-v2/src/root.mjs +79 -17
  441. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  442. package/es/components/tooltip-v2/src/root2.mjs +17 -79
  443. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  444. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  445. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  446. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  447. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  448. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  449. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  450. package/es/components/tour/index.mjs +2 -2
  451. package/es/components/tour/src/tour.mjs +68 -153
  452. package/es/components/tour/src/tour.mjs.map +1 -1
  453. package/es/components/tour/src/tour2.mjs +153 -68
  454. package/es/components/tour/src/tour2.mjs.map +1 -1
  455. package/es/components/upload/index.mjs +1 -1
  456. package/es/components/upload/src/upload-list.mjs +28 -173
  457. package/es/components/upload/src/upload-list.mjs.map +1 -1
  458. package/es/components/upload/src/upload-list2.mjs +173 -28
  459. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  460. package/es/components/upload/src/upload2.mjs +1 -1
  461. package/es/components/visual-hidden/index.mjs +3 -3
  462. package/es/components/visual-hidden/src/visual-hidden.mjs +35 -6
  463. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  464. package/es/components/visual-hidden/src/visual-hidden2.mjs +6 -35
  465. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  466. package/es/components/watermark/index.mjs +2 -2
  467. package/es/components/watermark/src/watermark.mjs +27 -210
  468. package/es/components/watermark/src/watermark.mjs.map +1 -1
  469. package/es/components/watermark/src/watermark2.mjs +210 -27
  470. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  471. package/es/index.mjs +28 -28
  472. package/es/version.d.ts +1 -1
  473. package/es/version.mjs +1 -1
  474. package/es/version.mjs.map +1 -1
  475. package/lib/components/anchor/index.js +2 -2
  476. package/lib/components/anchor/src/anchor.js +42 -191
  477. package/lib/components/anchor/src/anchor.js.map +1 -1
  478. package/lib/components/anchor/src/anchor2.js +191 -42
  479. package/lib/components/anchor/src/anchor2.js.map +1 -1
  480. package/lib/components/breadcrumb/index.js +4 -4
  481. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -8
  482. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  483. package/lib/components/breadcrumb/src/breadcrumb-item2.js +8 -56
  484. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  485. package/lib/components/breadcrumb/src/breadcrumb.js +37 -10
  486. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  487. package/lib/components/breadcrumb/src/breadcrumb2.js +10 -37
  488. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  489. package/lib/components/button/index.js +1 -1
  490. package/lib/components/button/src/button-group.js +29 -6
  491. package/lib/components/button/src/button-group.js.map +1 -1
  492. package/lib/components/button/src/button-group2.js +6 -29
  493. package/lib/components/button/src/button-group2.js.map +1 -1
  494. package/lib/components/calendar/index.js +2 -2
  495. package/lib/components/calendar/src/calendar.js +134 -17
  496. package/lib/components/calendar/src/calendar.js.map +1 -1
  497. package/lib/components/calendar/src/calendar2.js +17 -134
  498. package/lib/components/calendar/src/calendar2.js.map +1 -1
  499. package/lib/components/carousel/index.js +2 -2
  500. package/lib/components/carousel/src/carousel-item.js +69 -7
  501. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  502. package/lib/components/carousel/src/carousel-item2.js +7 -69
  503. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  504. package/lib/components/cascader/src/cascader.js +1 -1
  505. package/lib/components/cascader-panel/src/index.js +1 -1
  506. package/lib/components/cascader-panel/src/menu.js +1 -1
  507. package/lib/components/cascader-panel/src/node.js +206 -115
  508. package/lib/components/cascader-panel/src/node.js.map +1 -1
  509. package/lib/components/cascader-panel/src/node2.js +115 -206
  510. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  511. package/lib/components/cascader-panel/src/store.js +1 -1
  512. package/lib/components/check-tag/index.js +2 -2
  513. package/lib/components/check-tag/src/check-tag.js +38 -15
  514. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  515. package/lib/components/check-tag/src/check-tag2.js +15 -38
  516. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  517. package/lib/components/countdown/index.js +2 -2
  518. package/lib/components/countdown/src/countdown.js +23 -79
  519. package/lib/components/countdown/src/countdown.js.map +1 -1
  520. package/lib/components/countdown/src/countdown2.js +79 -23
  521. package/lib/components/countdown/src/countdown2.js.map +1 -1
  522. package/lib/components/descriptions/src/description.js +1 -1
  523. package/lib/components/descriptions/src/descriptions-row.js +6 -63
  524. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  525. package/lib/components/descriptions/src/descriptions-row2.js +63 -6
  526. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  527. package/lib/components/divider/index.js +2 -2
  528. package/lib/components/divider/src/divider.js +16 -34
  529. package/lib/components/divider/src/divider.js.map +1 -1
  530. package/lib/components/divider/src/divider2.js +34 -16
  531. package/lib/components/divider/src/divider2.js.map +1 -1
  532. package/lib/components/dropdown/index.js +2 -2
  533. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  534. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  535. package/lib/components/dropdown/src/dropdown-menu.js +2 -2
  536. package/lib/components/dropdown/src/dropdown.js +298 -111
  537. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  538. package/lib/components/dropdown/src/dropdown2.js +111 -298
  539. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  540. package/lib/components/image/index.js +2 -2
  541. package/lib/components/image/src/image.js +64 -231
  542. package/lib/components/image/src/image.js.map +1 -1
  543. package/lib/components/image/src/image2.js +231 -64
  544. package/lib/components/image/src/image2.js.map +1 -1
  545. package/lib/components/index.js +28 -28
  546. package/lib/components/input-tag/src/input-tag.js +1 -1
  547. package/lib/components/mention/src/mention-dropdown.js +16 -166
  548. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  549. package/lib/components/mention/src/mention-dropdown2.js +166 -16
  550. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  551. package/lib/components/mention/src/mention2.js +1 -1
  552. package/lib/components/menu/index.js +2 -2
  553. package/lib/components/menu/src/menu-item-group.js +34 -4
  554. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  555. package/lib/components/menu/src/menu-item-group2.js +4 -34
  556. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  557. package/lib/components/message/index.js +1 -1
  558. package/lib/components/message/src/message.js +93 -144
  559. package/lib/components/message/src/message.js.map +1 -1
  560. package/lib/components/message/src/message2.js +144 -93
  561. package/lib/components/message/src/message2.js.map +1 -1
  562. package/lib/components/message/src/method.js +2 -2
  563. package/lib/components/page-header/src/page-header2.js +8 -12
  564. package/lib/components/page-header/src/page-header2.js.map +1 -1
  565. package/lib/components/pagination/src/components/jumper.js +58 -7
  566. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  567. package/lib/components/pagination/src/components/jumper2.js +7 -58
  568. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  569. package/lib/components/pagination/src/components/next.js +18 -35
  570. package/lib/components/pagination/src/components/next.js.map +1 -1
  571. package/lib/components/pagination/src/components/next2.js +35 -18
  572. package/lib/components/pagination/src/components/next2.js.map +1 -1
  573. package/lib/components/pagination/src/pagination.js +2 -2
  574. package/lib/components/popconfirm/index.js +2 -2
  575. package/lib/components/popconfirm/src/popconfirm.js +46 -114
  576. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  577. package/lib/components/popconfirm/src/popconfirm2.js +114 -46
  578. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  579. package/lib/components/popover/src/popover.js +1 -1
  580. package/lib/components/popper/index.js +4 -4
  581. package/lib/components/popper/src/popper.js +32 -25
  582. package/lib/components/popper/src/popper.js.map +1 -1
  583. package/lib/components/popper/src/popper2.js +25 -32
  584. package/lib/components/popper/src/popper2.js.map +1 -1
  585. package/lib/components/popper/src/trigger.js +127 -32
  586. package/lib/components/popper/src/trigger.js.map +1 -1
  587. package/lib/components/popper/src/trigger2.js +32 -127
  588. package/lib/components/popper/src/trigger2.js.map +1 -1
  589. package/lib/components/radio/index.js +2 -2
  590. package/lib/components/radio/src/radio-button.js +1 -1
  591. package/lib/components/radio/src/radio-group2.js +1 -1
  592. package/lib/components/radio/src/radio.js +73 -34
  593. package/lib/components/radio/src/radio.js.map +1 -1
  594. package/lib/components/radio/src/radio2.js +34 -73
  595. package/lib/components/radio/src/radio2.js.map +1 -1
  596. package/lib/components/rate/index.js +2 -2
  597. package/lib/components/rate/src/rate.js +83 -257
  598. package/lib/components/rate/src/rate.js.map +1 -1
  599. package/lib/components/rate/src/rate2.js +257 -83
  600. package/lib/components/rate/src/rate2.js.map +1 -1
  601. package/lib/components/roving-focus-group/index.js +2 -2
  602. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  603. package/lib/components/roving-focus-group/src/roving-focus-group.js +31 -27
  604. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  605. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -31
  606. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  607. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  608. package/lib/components/row/index.js +2 -2
  609. package/lib/components/row/src/row.js +44 -30
  610. package/lib/components/row/src/row.js.map +1 -1
  611. package/lib/components/row/src/row2.js +30 -44
  612. package/lib/components/row/src/row2.js.map +1 -1
  613. package/lib/components/segmented/index.js +2 -2
  614. package/lib/components/segmented/src/segmented.js +34 -167
  615. package/lib/components/segmented/src/segmented.js.map +1 -1
  616. package/lib/components/segmented/src/segmented2.js +167 -34
  617. package/lib/components/segmented/src/segmented2.js.map +1 -1
  618. package/lib/components/select/src/select.js +1 -1
  619. package/lib/components/select/src/select.vue.d.ts +4 -2
  620. package/lib/components/select/src/select2.js +10 -2
  621. package/lib/components/select/src/select2.js.map +1 -1
  622. package/lib/components/select/src/useSelect.js +0 -13
  623. package/lib/components/select/src/useSelect.js.map +1 -1
  624. package/lib/components/select-v2/src/defaults.js +1 -1
  625. package/lib/components/select-v2/src/select.js +10 -2
  626. package/lib/components/select-v2/src/select.js.map +1 -1
  627. package/lib/components/select-v2/src/select.types.d.ts +0 -1
  628. package/lib/components/select-v2/src/select.vue.d.ts +4 -5
  629. package/lib/components/select-v2/src/useSelect.d.ts +0 -5
  630. package/lib/components/select-v2/src/useSelect.js +0 -13
  631. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  632. package/lib/components/skeleton/index.js +2 -2
  633. package/lib/components/skeleton/src/skeleton-item.js +22 -17
  634. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  635. package/lib/components/skeleton/src/skeleton-item2.js +17 -22
  636. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  637. package/lib/components/skeleton/src/skeleton2.js +1 -1
  638. package/lib/components/steps/index.js +2 -2
  639. package/lib/components/steps/src/item.js +19 -190
  640. package/lib/components/steps/src/item.js.map +1 -1
  641. package/lib/components/steps/src/item2.js +190 -19
  642. package/lib/components/steps/src/item2.js.map +1 -1
  643. package/lib/components/tabs/index.js +1 -1
  644. package/lib/components/tabs/src/tab-bar.js +95 -7
  645. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  646. package/lib/components/tabs/src/tab-bar2.js +7 -95
  647. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  648. package/lib/components/tabs/src/tab-nav.js +1 -1
  649. package/lib/components/tag/index.js +2 -2
  650. package/lib/components/tag/src/tag.js +28 -99
  651. package/lib/components/tag/src/tag.js.map +1 -1
  652. package/lib/components/tag/src/tag2.js +99 -28
  653. package/lib/components/tag/src/tag2.js.map +1 -1
  654. package/lib/components/tooltip/index.js +2 -2
  655. package/lib/components/tooltip/src/tooltip.js +166 -34
  656. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  657. package/lib/components/tooltip/src/tooltip2.js +34 -166
  658. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  659. package/lib/components/tooltip/src/trigger.js +1 -1
  660. package/lib/components/tooltip/src/trigger2.js +1 -1
  661. package/lib/components/tooltip-v2/index.js +2 -2
  662. package/lib/components/tooltip-v2/src/content2.js +1 -1
  663. package/lib/components/tooltip-v2/src/root.js +79 -17
  664. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  665. package/lib/components/tooltip-v2/src/root2.js +17 -79
  666. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  667. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  668. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  669. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  670. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  671. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  672. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  673. package/lib/components/tour/index.js +2 -2
  674. package/lib/components/tour/src/tour.js +68 -152
  675. package/lib/components/tour/src/tour.js.map +1 -1
  676. package/lib/components/tour/src/tour2.js +152 -68
  677. package/lib/components/tour/src/tour2.js.map +1 -1
  678. package/lib/components/upload/index.js +1 -1
  679. package/lib/components/upload/src/upload-list.js +29 -173
  680. package/lib/components/upload/src/upload-list.js.map +1 -1
  681. package/lib/components/upload/src/upload-list2.js +173 -29
  682. package/lib/components/upload/src/upload-list2.js.map +1 -1
  683. package/lib/components/upload/src/upload2.js +1 -1
  684. package/lib/components/visual-hidden/index.js +2 -2
  685. package/lib/components/visual-hidden/src/visual-hidden.js +35 -6
  686. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  687. package/lib/components/visual-hidden/src/visual-hidden2.js +6 -35
  688. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  689. package/lib/components/watermark/index.js +2 -2
  690. package/lib/components/watermark/src/watermark.js +27 -210
  691. package/lib/components/watermark/src/watermark.js.map +1 -1
  692. package/lib/components/watermark/src/watermark2.js +210 -27
  693. package/lib/components/watermark/src/watermark2.js.map +1 -1
  694. package/lib/index.js +28 -28
  695. package/lib/version.d.ts +1 -1
  696. package/lib/version.js +1 -1
  697. package/lib/version.js.map +1 -1
  698. package/package.json +2 -2
  699. package/theme-chalk/el-select-v2.css +1 -1
  700. package/theme-chalk/el-select.css +1 -1
  701. package/theme-chalk/index.css +1 -1
  702. package/theme-chalk/src/select.scss +3 -2
  703. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useSelect.mjs","sources":["../../../../../../packages/components/select/src/useSelect.ts"],"sourcesContent":["// @ts-nocheck\nimport {\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 ensureArray,\n isArray,\n isClient,\n isFunction,\n isIOS,\n isNumber,\n isObject,\n isPlainObject,\n isUndefined,\n scrollIntoView,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport {\n useComposition,\n useEmptyValues,\n useFocusController,\n useId,\n useLocale,\n useNamespace,\n} from '@element-plus/hooks'\nimport {\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\n\nimport type ElTooltip from '@element-plus/components/tooltip'\nimport type { ISelectProps, SelectOptionProxy } from './token'\n\nconst MINIMUM_INPUT_WIDTH = 11\n\ntype useSelectType = (\n props: ISelectProps,\n emit: any\n) => {\n inputId: Ref<string | undefined>\n contentId: Ref<string | undefined>\n nsSelect: Ref<string | undefined>\n nsInput: Ref<string | undefined>\n states: Reactive<Record<string, any>>\n isFocused: Ref<boolean>\n expanded: Ref<boolean>\n optionsArray: ComputedRef<any[]>\n hoverOption: Ref<unknown>\n selectSize: ComputedRef<'' | 'default' | 'small' | 'large'>\n filteredOptionsCount: ComputedRef<number>\n resetCalculatorWidth: () => void\n updateTooltip: () => void\n updateTagTooltip: () => void\n debouncedOnInputChange: DebouncedFunc<() => void>\n onInput: (event: Event) => void\n deletePrevTag: (event: Event) => void\n deleteTag: (event: Event, tag: any) => void\n deleteSelected: (event: Event) => void\n handleOptionSelect: (option: any) => void\n scrollToOption: (option: any) => void\n hasModelValue: ComputedRef<boolean>\n shouldShowPlaceholder: ComputedRef<boolean>\n currentPlaceholder: ComputedRef<string>\n mouseEnterEventName: Ref<string | null>\n needStatusIcon: ComputedRef<boolean>\n showClose: ComputedRef<boolean>\n iconComponent: ComputedRef<string>\n iconReverse: ComputedRef<boolean>\n validateState: ComputedRef<string>\n\n validateIcon: ComputedRef<unknown>\n showNewOption: ComputedRef<boolean>\n updateOptions: () => void\n collapseTagSize: ComputedRef<'default' | 'small'>\n setSelected: () => void\n selectDisabled: ComputedRef<boolean>\n emptyText: ComputedRef<string | null>\n handleCompositionStart: (e: Event) => void\n handleCompositionUpdate: (e: Event) => void\n handleCompositionEnd: (e: Event) => void\n onOptionCreate: (vm: SelectOptionProxy) => void\n onOptionDestroy: (key: any, vm: SelectOptionProxy) => void\n handleMenuEnter: () => void\n focus: () => void\n blur: () => void\n handleClearClick: (event: Event) => void\n handleClickOutside: (event: Event) => void\n handleEsc: () => void\n toggleMenu: () => void\n selectOption: () => void\n getValueKey: (item: any) => any\n navigateOptions: (direction: string) => void\n dropdownMenuVisible: WritableComputedRef<boolean>\n showTagList: ComputedRef<unknown[]>\n collapseTagList: ComputedRef<unknown[]>\n tagStyle: ComputedRef<unknown>\n collapseTagStyle: ComputedRef<unknown>\n inputStyle: ComputedRef<unknown>\n popperRef: ComputedRef<unknown>\n inputRef: Ref<HTMLInputElement | null>\n tooltipRef: Ref<InstanceType<typeof ElTooltip> | null>\n tagTooltipRef: Ref<InstanceType<typeof ElTooltip> | null>\n calculatorRef: Ref<HTMLElement>\n prefixRef: Ref<HTMLElement>\n suffixRef: Ref<HTMLElement>\n selectRef: Ref<HTMLElement>\n wrapperRef: Ref<HTMLElement>\n selectionRef: Ref<HTMLElement>\n scrollbarRef: Ref<{\n handleScroll: () => void\n } | null>\n menuRef: Ref<HTMLElement>\n tagMenuRef: Ref<HTMLElement>\n collapseItemRef: Ref<HTMLElement>\n}\n\nexport const useSelect: useSelectType = (props: ISelectProps, emit) => {\n const { t } = useLocale()\n const contentId = useId()\n const nsSelect = useNamespace('select')\n const nsInput = useNamespace('input')\n\n const states = reactive({\n inputValue: '',\n options: new Map(),\n cachedOptions: new Map(),\n optionValues: [] as any[], // sorted value of options\n selected: [] as any[],\n selectionWidth: 0,\n calculatorWidth: 0,\n collapseItemWidth: 0,\n selectedLabel: '',\n hoveringIndex: -1,\n previousQuery: null,\n inputHovering: false,\n menuVisibleOnFocus: false,\n isBeforeHide: false,\n })\n\n // template refs\n const selectRef = ref<HTMLElement>(null)\n const selectionRef = ref<HTMLElement>(null)\n const tooltipRef = ref<InstanceType<typeof ElTooltip> | null>(null)\n const tagTooltipRef = ref<InstanceType<typeof ElTooltip> | null>(null)\n const inputRef = ref<HTMLInputElement | null>(null)\n const calculatorRef = ref<HTMLElement>(null)\n const prefixRef = ref<HTMLElement>(null)\n const suffixRef = ref<HTMLElement>(null)\n const menuRef = ref<HTMLElement>(null)\n const tagMenuRef = ref<HTMLElement>(null)\n const collapseItemRef = ref<HTMLElement>(null)\n const scrollbarRef = ref<{\n handleScroll: () => void\n } | null>(null)\n\n const {\n isComposing,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\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 // the controller of the expanded popup\n const expanded = ref(false)\n const hoverOption = ref()\n\n const { form, formItem } = useFormItem()\n const { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n })\n const { valueOnClear, isEmptyValue } = useEmptyValues(props)\n\n const selectDisabled = computed(() => props.disabled || form?.disabled)\n\n const hasModelValue = computed(() => {\n return isArray(props.modelValue)\n ? props.modelValue.length > 0\n : !isEmptyValue(props.modelValue)\n })\n\n const needStatusIcon = computed(() => form?.statusIcon ?? false)\n\n const showClose = computed(() => {\n return (\n props.clearable &&\n !selectDisabled.value &&\n states.inputHovering &&\n hasModelValue.value\n )\n })\n const iconComponent = computed(() =>\n props.remote && props.filterable && !props.remoteShowSuffix\n ? ''\n : props.suffixIcon\n )\n const iconReverse = computed(() =>\n nsSelect.is('reverse', iconComponent.value && expanded.value)\n )\n\n const validateState = computed(() => formItem?.validateState || '')\n const validateIcon = computed(\n () => ValidateComponentsMap[validateState.value]\n )\n\n const debounce = computed(() => (props.remote ? 300 : 0))\n\n const isRemoteSearchEmpty = computed(\n () => props.remote && !states.inputValue && states.options.size === 0\n )\n\n const emptyText = computed(() => {\n if (props.loading) {\n return props.loadingText || t('el.select.loading')\n } else {\n if (\n props.filterable &&\n states.inputValue &&\n states.options.size > 0 &&\n filteredOptionsCount.value === 0\n ) {\n return props.noMatchText || t('el.select.noMatch')\n }\n if (states.options.size === 0) {\n return props.noDataText || t('el.select.noData')\n }\n }\n return null\n })\n\n const filteredOptionsCount = computed(\n () => optionsArray.value.filter((option) => option.visible).length\n )\n\n const optionsArray = computed(() => {\n const list = Array.from(states.options.values())\n const newList = []\n states.optionValues.forEach((item) => {\n const index = list.findIndex((i) => i.value === item)\n if (index > -1) {\n newList.push(list[index])\n }\n })\n return newList.length >= list.length ? newList : list\n })\n\n const cachedOptionsArray = computed(() =>\n Array.from(states.cachedOptions.values())\n )\n\n const showNewOption = computed(() => {\n const hasExistingOption = optionsArray.value\n .filter((option) => {\n return !option.created\n })\n .some((option) => {\n return option.currentLabel === states.inputValue\n })\n return (\n props.filterable &&\n props.allowCreate &&\n states.inputValue !== '' &&\n !hasExistingOption\n )\n })\n\n const updateOptions = () => {\n if (props.filterable && isFunction(props.filterMethod)) return\n if (props.filterable && props.remote && isFunction(props.remoteMethod))\n return\n optionsArray.value.forEach((option) => {\n option.updateOption?.(states.inputValue)\n })\n }\n\n const selectSize = useFormSize()\n\n const collapseTagSize = computed(() =>\n ['small'].includes(selectSize.value) ? 'small' : 'default'\n )\n\n const dropdownMenuVisible = computed({\n get() {\n return expanded.value && !isRemoteSearchEmpty.value\n },\n set(val: boolean) {\n expanded.value = val\n },\n })\n\n const shouldShowPlaceholder = computed(() => {\n if (props.multiple && !isUndefined(props.modelValue)) {\n return ensureArray(props.modelValue).length === 0 && !states.inputValue\n }\n const value = isArray(props.modelValue)\n ? props.modelValue[0]\n : props.modelValue\n return props.filterable || isUndefined(value) ? !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 // iOS Safari does not handle click events when a mouseenter event is registered and a DOM-change happens in a child\n // We use a Vue custom event binding to only register the event on non-iOS devices\n // ref.: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html\n // Github Issue: https://github.com/vuejs/vue/issues/9859\n const mouseEnterEventName = computed(() => (isIOS ? null : 'mouseenter'))\n\n watch(\n () => props.modelValue,\n (val, oldVal) => {\n if (props.multiple) {\n if (props.filterable && !props.reserveKeyword) {\n states.inputValue = ''\n handleQueryChange('')\n }\n }\n setSelected()\n if (!isEqual(val, oldVal) && props.validateEvent) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n },\n {\n flush: 'post',\n deep: true,\n }\n )\n\n watch(\n () => expanded.value,\n (val) => {\n if (val) {\n handleQueryChange(states.inputValue)\n } else {\n states.inputValue = ''\n states.previousQuery = null\n states.isBeforeHide = true\n }\n emit('visible-change', val)\n }\n )\n\n watch(\n // fix `Array.prototype.push/splice/..` cannot trigger non-deep watcher\n // https://github.com/vuejs/vue-next/issues/2116\n () => states.options.entries(),\n () => {\n if (!isClient) return\n // tooltipRef.value?.updatePopper?.()\n setSelected()\n if (\n props.defaultFirstOption &&\n (props.filterable || props.remote) &&\n filteredOptionsCount.value\n ) {\n checkDefaultFirstOption()\n }\n },\n {\n flush: 'post',\n }\n )\n\n watch(\n () => states.hoveringIndex,\n (val) => {\n if (isNumber(val) && val > -1) {\n hoverOption.value = optionsArray.value[val] || {}\n } else {\n hoverOption.value = {}\n }\n optionsArray.value.forEach((option) => {\n option.hover = hoverOption.value === option\n })\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 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 filteredOptionsCount.value\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 = optionsArray.value.filter(\n (n) => n.visible && !n.disabled && !n.states.groupDisabled\n )\n const userCreatedOption = optionsInDropdown.find((n) => n.created)\n const firstOriginOption = optionsInDropdown[0]\n const valueList = optionsArray.value.map((item) => item.value)\n states.hoveringIndex = getValueIndex(\n valueList,\n userCreatedOption || firstOriginOption\n )\n }\n\n const setSelected = () => {\n if (!props.multiple) {\n const value = isArray(props.modelValue)\n ? props.modelValue[0]\n : props.modelValue\n const option = getOption(value)\n states.selectedLabel = option.currentLabel\n states.selected = [option]\n return\n } else {\n states.selectedLabel = ''\n }\n const result: any[] = []\n if (!isUndefined(props.modelValue)) {\n ensureArray(props.modelValue).forEach((value) => {\n result.push(getOption(value))\n })\n }\n states.selected = result\n }\n\n const getOption = (value) => {\n let option\n const isObjectValue = isPlainObject(value)\n\n for (let i = states.cachedOptions.size - 1; i >= 0; i--) {\n const cachedOption = cachedOptionsArray.value[i]\n const isEqualValue = isObjectValue\n ? get(cachedOption.value, props.valueKey) === get(value, props.valueKey)\n : cachedOption.value === value\n if (isEqualValue) {\n option = {\n value,\n currentLabel: cachedOption.currentLabel,\n get isDisabled() {\n return cachedOption.isDisabled\n },\n }\n break\n }\n }\n if (option) return option\n const label = isObjectValue ? value.label : value ?? ''\n const newOption = {\n value,\n currentLabel: label,\n }\n return newOption\n }\n\n const updateHoveringIndex = () => {\n states.hoveringIndex = optionsArray.value.findIndex((item) =>\n states.selected.some(\n (selected) => getValueKey(selected) === getValueKey(item)\n )\n )\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 onInputChange = () => {\n if (states.inputValue.length > 0 && !expanded.value) {\n expanded.value = true\n }\n handleQueryChange(states.inputValue)\n }\n\n const onInput = (event) => {\n states.inputValue = event.target.value\n if (props.remote) {\n debouncedOnInputChange()\n } else {\n return onInputChange()\n }\n }\n\n const debouncedOnInputChange = lodashDebounce(() => {\n onInputChange()\n }, debounce.value)\n\n const emitChange = (val) => {\n if (!isEqual(props.modelValue, val)) {\n emit(CHANGE_EVENT, val)\n }\n }\n\n const getLastNotDisabledIndex = (value) =>\n findLastIndex(value, (it) => {\n const option = states.cachedOptions.get(it)\n return option && !option.disabled && !option.states.groupDisabled\n })\n\n const deletePrevTag = (e) => {\n if (!props.multiple) return\n if (e.code === EVENT_CODE.delete) return\n if (e.target.value.length <= 0) {\n const value = ensureArray(props.modelValue).slice()\n const lastNotDisabledIndex = getLastNotDisabledIndex(value)\n if (lastNotDisabledIndex < 0) return\n const removeTagValue = value[lastNotDisabledIndex]\n value.splice(lastNotDisabledIndex, 1)\n emit(UPDATE_MODEL_EVENT, value)\n emitChange(value)\n emit('remove-tag', removeTagValue)\n }\n }\n\n const deleteTag = (event, tag) => {\n const index = states.selected.indexOf(tag)\n if (index > -1 && !selectDisabled.value) {\n const value = ensureArray(props.modelValue).slice()\n value.splice(index, 1)\n emit(UPDATE_MODEL_EVENT, value)\n emitChange(value)\n emit('remove-tag', tag.value)\n }\n event.stopPropagation()\n focus()\n }\n\n const deleteSelected = (event) => {\n event.stopPropagation()\n const value: string | any[] = props.multiple ? [] : valueOnClear.value\n if (props.multiple) {\n for (const item of states.selected) {\n if (item.isDisabled) value.push(item.value)\n }\n }\n emit(UPDATE_MODEL_EVENT, value)\n emitChange(value)\n states.hoveringIndex = -1\n expanded.value = false\n emit('clear')\n focus()\n }\n\n const handleOptionSelect = (option) => {\n if (props.multiple) {\n const value = ensureArray(props.modelValue ?? []).slice()\n const optionIndex = getValueIndex(value, option)\n if (optionIndex > -1) {\n value.splice(optionIndex, 1)\n } else if (\n props.multipleLimit <= 0 ||\n value.length < props.multipleLimit\n ) {\n value.push(option.value)\n }\n emit(UPDATE_MODEL_EVENT, value)\n emitChange(value)\n if (option.created) {\n handleQueryChange('')\n }\n if (props.filterable && !props.reserveKeyword) {\n states.inputValue = ''\n }\n } else {\n emit(UPDATE_MODEL_EVENT, option.value)\n emitChange(option.value)\n expanded.value = false\n }\n focus()\n if (expanded.value) return\n nextTick(() => {\n scrollToOption(option)\n })\n }\n\n const getValueIndex = (arr: any[] = [], option) => {\n if (isUndefined(option)) return -1\n if (!isObject(option.value)) return arr.indexOf(option.value)\n\n return arr.findIndex((item) => {\n return isEqual(get(item, props.valueKey), getValueKey(option))\n })\n }\n\n const scrollToOption = (option) => {\n const targetOption = isArray(option) ? option[0] : option\n let target = null\n\n if (targetOption?.value) {\n const options = optionsArray.value.filter(\n (item) => item.value === targetOption.value\n )\n if (options.length > 0) {\n target = options[0].$el\n }\n }\n\n if (tooltipRef.value && target) {\n const menu = tooltipRef.value?.popperRef?.contentRef?.querySelector?.(\n `.${nsSelect.be('dropdown', 'wrap')}`\n )\n if (menu) {\n scrollIntoView(menu as HTMLElement, target)\n }\n }\n scrollbarRef.value?.handleScroll()\n }\n\n const onOptionCreate = (vm: SelectOptionProxy) => {\n states.options.set(vm.value, vm)\n states.cachedOptions.set(vm.value, vm)\n }\n\n const onOptionDestroy = (key, vm: SelectOptionProxy) => {\n if (states.options.get(key) === vm) {\n states.options.delete(key)\n }\n }\n\n const popperRef = computed(() => {\n return tooltipRef.value?.popperRef?.contentRef\n })\n\n const handleMenuEnter = () => {\n states.isBeforeHide = false\n nextTick(() => scrollToOption(states.selected))\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 const handleClearClick = (event: Event) => {\n deleteSelected(event)\n }\n\n const handleClickOutside = (event: Event) => {\n expanded.value = false\n\n if (isFocused.value) {\n const _event = new FocusEvent('focus', event)\n nextTick(() => handleBlur(_event))\n }\n }\n\n const handleEsc = () => {\n if (states.inputValue.length > 0) {\n states.inputValue = ''\n } else {\n expanded.value = false\n }\n }\n\n const toggleMenu = () => {\n if (selectDisabled.value) return\n\n // We only set the inputHovering state to true on mouseenter event on iOS devices\n // To keep the state updated we set it here to true\n if (isIOS) states.inputHovering = true\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 selectOption = () => {\n if (!expanded.value) {\n toggleMenu()\n } else {\n const option = optionsArray.value[states.hoveringIndex]\n if (option && !option.isDisabled) {\n handleOptionSelect(option)\n }\n }\n }\n\n const getValueKey = (item) => {\n return isObject(item.value) ? get(item.value, props.valueKey) : item.value\n }\n\n const optionsAllDisabled = computed(() =>\n optionsArray.value\n .filter((option) => option.visible)\n .every((option) => option.isDisabled)\n )\n\n const showTagList = computed(() => {\n if (!props.multiple) {\n return []\n }\n return props.collapseTags\n ? states.selected.slice(0, props.maxCollapseTags)\n : states.selected\n })\n\n const collapseTagList = computed(() => {\n if (!props.multiple) {\n return []\n }\n return props.collapseTags\n ? states.selected.slice(props.maxCollapseTags)\n : []\n })\n\n const navigateOptions = (direction) => {\n if (!expanded.value) {\n expanded.value = true\n return\n }\n if (\n states.options.size === 0 ||\n filteredOptionsCount.value === 0 ||\n isComposing.value\n )\n return\n\n if (!optionsAllDisabled.value) {\n if (direction === 'next') {\n states.hoveringIndex++\n if (states.hoveringIndex === states.options.size) {\n states.hoveringIndex = 0\n }\n } else if (direction === 'prev') {\n states.hoveringIndex--\n if (states.hoveringIndex < 0) {\n states.hoveringIndex = states.options.size - 1\n }\n }\n const option = optionsArray.value[states.hoveringIndex]\n if (option.isDisabled || !option.visible) {\n navigateOptions(direction)\n }\n nextTick(() => scrollToOption(hoverOption.value))\n }\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 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 onMounted(() => {\n setSelected()\n })\n\n return {\n inputId,\n contentId,\n nsSelect,\n nsInput,\n states,\n isFocused,\n expanded,\n optionsArray,\n hoverOption,\n selectSize,\n filteredOptionsCount,\n resetCalculatorWidth,\n updateTooltip,\n updateTagTooltip,\n debouncedOnInputChange,\n onInput,\n deletePrevTag,\n deleteTag,\n deleteSelected,\n handleOptionSelect,\n scrollToOption,\n hasModelValue,\n shouldShowPlaceholder,\n currentPlaceholder,\n mouseEnterEventName,\n needStatusIcon,\n showClose,\n iconComponent,\n iconReverse,\n validateState,\n validateIcon,\n showNewOption,\n updateOptions,\n collapseTagSize,\n setSelected,\n selectDisabled,\n emptyText,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\n onOptionCreate,\n onOptionDestroy,\n handleMenuEnter,\n focus,\n blur,\n handleClearClick,\n handleClickOutside,\n handleEsc,\n toggleMenu,\n selectOption,\n getValueKey,\n navigateOptions,\n dropdownMenuVisible,\n showTagList,\n collapseTagList,\n\n // computed style\n tagStyle,\n collapseTagStyle,\n inputStyle,\n\n // DOM ref\n popperRef,\n inputRef,\n tooltipRef,\n tagTooltipRef,\n calculatorRef,\n prefixRef,\n suffixRef,\n selectRef,\n wrapperRef,\n selectionRef,\n scrollbarRef,\n menuRef,\n tagMenuRef,\n collapseItemRef,\n }\n}\n"],"names":["debounce","ensureArray","lodashDebounce"],"mappings":";;;;;;;;;;;;;;;;;;;AAgDA,MAAM,mBAAmB,GAAG,EAAE,CAAC;AACnB,MAAC,SAAS,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AAC1C,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,EAAE,CAAC;AAC5B,EAAE,MAAM,SAAS,GAAG,KAAK,EAAE,CAAC;AAC5B,EAAE,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC1C,EAAE,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AACxC,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC1B,IAAI,UAAU,EAAE,EAAE;AAClB,IAAI,OAAO,kBAAkB,IAAI,GAAG,EAAE;AACtC,IAAI,aAAa,kBAAkB,IAAI,GAAG,EAAE;AAC5C,IAAI,YAAY,EAAE,EAAE;AACpB,IAAI,QAAQ,EAAE,EAAE;AAChB,IAAI,cAAc,EAAE,CAAC;AACrB,IAAI,eAAe,EAAE,CAAC;AACtB,IAAI,iBAAiB,EAAE,CAAC;AACxB,IAAI,aAAa,EAAE,EAAE;AACrB,IAAI,aAAa,EAAE,CAAC,CAAC;AACrB,IAAI,aAAa,EAAE,IAAI;AACvB,IAAI,aAAa,EAAE,KAAK;AACxB,IAAI,kBAAkB,EAAE,KAAK;AAC7B,IAAI,YAAY,EAAE,KAAK;AACvB,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;AAC9B,EAAE,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;AACjC,EAAE,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,CAAC,CAA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I,gBAAgB;AACpB,IAAI,sBAAsB;AAC1B,IAAI,OAAO;AACX,IAAI,aAAa;AACjB,IAAI,SAAS;AACb,IAAI,cAAc;AAClB,IAAI,kBAAkB;AACtB,IAAI,cAAc;AAClB,IAAI,aAAa;AACjB,IAAI,qBAAqB;AACzB,IAAI,kBAAkB;AACtB,IAAI,mBAAmB;AACvB,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,IAAI,aAAa;AACjB,IAAI,WAAW;AACf,IAAI,aAAa;AACjB,IAAI,YAAY;AAChB,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,IAAI,sBAAsB;AAC1B,IAAI,uBAAuB;AAC3B,IAAI,oBAAoB;AACxB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,eAAe;AACnB,IAAI,KAAK;AACT,IAAI,IAAI;AACR,IAAI,gBAAgB;AACpB,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,mBAAmB;AACvB,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,QAAQ;AACZ,IAAI,gBAAgB;AACpB,IAAI,UAAU;AACd,IAAI,SAAS;AACb,IAAI,QAAQ;AACZ,IAAI,UAAU;AACd,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,OAAO;AACX,IAAI,UAAU;AACd,IAAI,eAAe;AACnB,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"useSelect.mjs","sources":["../../../../../../packages/components/select/src/useSelect.ts"],"sourcesContent":["// @ts-nocheck\nimport {\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 ensureArray,\n isArray,\n isClient,\n isFunction,\n isIOS,\n isNumber,\n isObject,\n isPlainObject,\n isUndefined,\n scrollIntoView,\n} from '@element-plus/utils'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport {\n useComposition,\n useEmptyValues,\n useFocusController,\n useId,\n useLocale,\n useNamespace,\n} from '@element-plus/hooks'\nimport {\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\n\nimport type ElTooltip from '@element-plus/components/tooltip'\nimport type { ISelectProps, SelectOptionProxy } from './token'\n\ntype useSelectType = (\n props: ISelectProps,\n emit: any\n) => {\n inputId: Ref<string | undefined>\n contentId: Ref<string | undefined>\n nsSelect: Ref<string | undefined>\n nsInput: Ref<string | undefined>\n states: Reactive<Record<string, any>>\n isFocused: Ref<boolean>\n expanded: Ref<boolean>\n optionsArray: ComputedRef<any[]>\n hoverOption: Ref<unknown>\n selectSize: ComputedRef<'' | 'default' | 'small' | 'large'>\n filteredOptionsCount: ComputedRef<number>\n resetCalculatorWidth: () => void\n updateTooltip: () => void\n updateTagTooltip: () => void\n debouncedOnInputChange: DebouncedFunc<() => void>\n onInput: (event: Event) => void\n deletePrevTag: (event: Event) => void\n deleteTag: (event: Event, tag: any) => void\n deleteSelected: (event: Event) => void\n handleOptionSelect: (option: any) => void\n scrollToOption: (option: any) => void\n hasModelValue: ComputedRef<boolean>\n shouldShowPlaceholder: ComputedRef<boolean>\n currentPlaceholder: ComputedRef<string>\n mouseEnterEventName: Ref<string | null>\n needStatusIcon: ComputedRef<boolean>\n showClose: ComputedRef<boolean>\n iconComponent: ComputedRef<string>\n iconReverse: ComputedRef<boolean>\n validateState: ComputedRef<string>\n\n validateIcon: ComputedRef<unknown>\n showNewOption: ComputedRef<boolean>\n updateOptions: () => void\n collapseTagSize: ComputedRef<'default' | 'small'>\n setSelected: () => void\n selectDisabled: ComputedRef<boolean>\n emptyText: ComputedRef<string | null>\n handleCompositionStart: (e: Event) => void\n handleCompositionUpdate: (e: Event) => void\n handleCompositionEnd: (e: Event) => void\n onOptionCreate: (vm: SelectOptionProxy) => void\n onOptionDestroy: (key: any, vm: SelectOptionProxy) => void\n handleMenuEnter: () => void\n focus: () => void\n blur: () => void\n handleClearClick: (event: Event) => void\n handleClickOutside: (event: Event) => void\n handleEsc: () => void\n toggleMenu: () => void\n selectOption: () => void\n getValueKey: (item: any) => any\n navigateOptions: (direction: string) => void\n dropdownMenuVisible: WritableComputedRef<boolean>\n showTagList: ComputedRef<unknown[]>\n collapseTagList: ComputedRef<unknown[]>\n tagStyle: ComputedRef<unknown>\n collapseTagStyle: ComputedRef<unknown>\n inputStyle: ComputedRef<unknown>\n popperRef: ComputedRef<unknown>\n inputRef: Ref<HTMLInputElement | null>\n tooltipRef: Ref<InstanceType<typeof ElTooltip> | null>\n tagTooltipRef: Ref<InstanceType<typeof ElTooltip> | null>\n calculatorRef: Ref<HTMLElement>\n prefixRef: Ref<HTMLElement>\n suffixRef: Ref<HTMLElement>\n selectRef: Ref<HTMLElement>\n wrapperRef: Ref<HTMLElement>\n selectionRef: Ref<HTMLElement>\n scrollbarRef: Ref<{\n handleScroll: () => void\n } | null>\n menuRef: Ref<HTMLElement>\n tagMenuRef: Ref<HTMLElement>\n collapseItemRef: Ref<HTMLElement>\n}\n\nexport const useSelect: useSelectType = (props: ISelectProps, emit) => {\n const { t } = useLocale()\n const contentId = useId()\n const nsSelect = useNamespace('select')\n const nsInput = useNamespace('input')\n\n const states = reactive({\n inputValue: '',\n options: new Map(),\n cachedOptions: new Map(),\n optionValues: [] as any[], // sorted value of options\n selected: [] as any[],\n selectionWidth: 0,\n collapseItemWidth: 0,\n selectedLabel: '',\n hoveringIndex: -1,\n previousQuery: null,\n inputHovering: false,\n menuVisibleOnFocus: false,\n isBeforeHide: false,\n })\n\n // template refs\n const selectRef = ref<HTMLElement>(null)\n const selectionRef = ref<HTMLElement>(null)\n const tooltipRef = ref<InstanceType<typeof ElTooltip> | null>(null)\n const tagTooltipRef = ref<InstanceType<typeof ElTooltip> | null>(null)\n const inputRef = ref<HTMLInputElement | null>(null)\n const prefixRef = ref<HTMLElement>(null)\n const suffixRef = ref<HTMLElement>(null)\n const menuRef = ref<HTMLElement>(null)\n const tagMenuRef = ref<HTMLElement>(null)\n const collapseItemRef = ref<HTMLElement>(null)\n const scrollbarRef = ref<{\n handleScroll: () => void\n } | null>(null)\n\n const {\n isComposing,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\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 // the controller of the expanded popup\n const expanded = ref(false)\n const hoverOption = ref()\n\n const { form, formItem } = useFormItem()\n const { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n })\n const { valueOnClear, isEmptyValue } = useEmptyValues(props)\n\n const selectDisabled = computed(() => props.disabled || form?.disabled)\n\n const hasModelValue = computed(() => {\n return isArray(props.modelValue)\n ? props.modelValue.length > 0\n : !isEmptyValue(props.modelValue)\n })\n\n const needStatusIcon = computed(() => form?.statusIcon ?? false)\n\n const showClose = computed(() => {\n return (\n props.clearable &&\n !selectDisabled.value &&\n states.inputHovering &&\n hasModelValue.value\n )\n })\n const iconComponent = computed(() =>\n props.remote && props.filterable && !props.remoteShowSuffix\n ? ''\n : props.suffixIcon\n )\n const iconReverse = computed(() =>\n nsSelect.is('reverse', iconComponent.value && expanded.value)\n )\n\n const validateState = computed(() => formItem?.validateState || '')\n const validateIcon = computed(\n () => ValidateComponentsMap[validateState.value]\n )\n\n const debounce = computed(() => (props.remote ? 300 : 0))\n\n const isRemoteSearchEmpty = computed(\n () => props.remote && !states.inputValue && states.options.size === 0\n )\n\n const emptyText = computed(() => {\n if (props.loading) {\n return props.loadingText || t('el.select.loading')\n } else {\n if (\n props.filterable &&\n states.inputValue &&\n states.options.size > 0 &&\n filteredOptionsCount.value === 0\n ) {\n return props.noMatchText || t('el.select.noMatch')\n }\n if (states.options.size === 0) {\n return props.noDataText || t('el.select.noData')\n }\n }\n return null\n })\n\n const filteredOptionsCount = computed(\n () => optionsArray.value.filter((option) => option.visible).length\n )\n\n const optionsArray = computed(() => {\n const list = Array.from(states.options.values())\n const newList = []\n states.optionValues.forEach((item) => {\n const index = list.findIndex((i) => i.value === item)\n if (index > -1) {\n newList.push(list[index])\n }\n })\n return newList.length >= list.length ? newList : list\n })\n\n const cachedOptionsArray = computed(() =>\n Array.from(states.cachedOptions.values())\n )\n\n const showNewOption = computed(() => {\n const hasExistingOption = optionsArray.value\n .filter((option) => {\n return !option.created\n })\n .some((option) => {\n return option.currentLabel === states.inputValue\n })\n return (\n props.filterable &&\n props.allowCreate &&\n states.inputValue !== '' &&\n !hasExistingOption\n )\n })\n\n const updateOptions = () => {\n if (props.filterable && isFunction(props.filterMethod)) return\n if (props.filterable && props.remote && isFunction(props.remoteMethod))\n return\n optionsArray.value.forEach((option) => {\n option.updateOption?.(states.inputValue)\n })\n }\n\n const selectSize = useFormSize()\n\n const collapseTagSize = computed(() =>\n ['small'].includes(selectSize.value) ? 'small' : 'default'\n )\n\n const dropdownMenuVisible = computed({\n get() {\n return expanded.value && !isRemoteSearchEmpty.value\n },\n set(val: boolean) {\n expanded.value = val\n },\n })\n\n const shouldShowPlaceholder = computed(() => {\n if (props.multiple && !isUndefined(props.modelValue)) {\n return ensureArray(props.modelValue).length === 0 && !states.inputValue\n }\n const value = isArray(props.modelValue)\n ? props.modelValue[0]\n : props.modelValue\n return props.filterable || isUndefined(value) ? !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 // iOS Safari does not handle click events when a mouseenter event is registered and a DOM-change happens in a child\n // We use a Vue custom event binding to only register the event on non-iOS devices\n // ref.: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html\n // Github Issue: https://github.com/vuejs/vue/issues/9859\n const mouseEnterEventName = computed(() => (isIOS ? null : 'mouseenter'))\n\n watch(\n () => props.modelValue,\n (val, oldVal) => {\n if (props.multiple) {\n if (props.filterable && !props.reserveKeyword) {\n states.inputValue = ''\n handleQueryChange('')\n }\n }\n setSelected()\n if (!isEqual(val, oldVal) && props.validateEvent) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n },\n {\n flush: 'post',\n deep: true,\n }\n )\n\n watch(\n () => expanded.value,\n (val) => {\n if (val) {\n handleQueryChange(states.inputValue)\n } else {\n states.inputValue = ''\n states.previousQuery = null\n states.isBeforeHide = true\n }\n emit('visible-change', val)\n }\n )\n\n watch(\n // fix `Array.prototype.push/splice/..` cannot trigger non-deep watcher\n // https://github.com/vuejs/vue-next/issues/2116\n () => states.options.entries(),\n () => {\n if (!isClient) return\n // tooltipRef.value?.updatePopper?.()\n setSelected()\n if (\n props.defaultFirstOption &&\n (props.filterable || props.remote) &&\n filteredOptionsCount.value\n ) {\n checkDefaultFirstOption()\n }\n },\n {\n flush: 'post',\n }\n )\n\n watch(\n () => states.hoveringIndex,\n (val) => {\n if (isNumber(val) && val > -1) {\n hoverOption.value = optionsArray.value[val] || {}\n } else {\n hoverOption.value = {}\n }\n optionsArray.value.forEach((option) => {\n option.hover = hoverOption.value === option\n })\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 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 filteredOptionsCount.value\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 = optionsArray.value.filter(\n (n) => n.visible && !n.disabled && !n.states.groupDisabled\n )\n const userCreatedOption = optionsInDropdown.find((n) => n.created)\n const firstOriginOption = optionsInDropdown[0]\n const valueList = optionsArray.value.map((item) => item.value)\n states.hoveringIndex = getValueIndex(\n valueList,\n userCreatedOption || firstOriginOption\n )\n }\n\n const setSelected = () => {\n if (!props.multiple) {\n const value = isArray(props.modelValue)\n ? props.modelValue[0]\n : props.modelValue\n const option = getOption(value)\n states.selectedLabel = option.currentLabel\n states.selected = [option]\n return\n } else {\n states.selectedLabel = ''\n }\n const result: any[] = []\n if (!isUndefined(props.modelValue)) {\n ensureArray(props.modelValue).forEach((value) => {\n result.push(getOption(value))\n })\n }\n states.selected = result\n }\n\n const getOption = (value) => {\n let option\n const isObjectValue = isPlainObject(value)\n\n for (let i = states.cachedOptions.size - 1; i >= 0; i--) {\n const cachedOption = cachedOptionsArray.value[i]\n const isEqualValue = isObjectValue\n ? get(cachedOption.value, props.valueKey) === get(value, props.valueKey)\n : cachedOption.value === value\n if (isEqualValue) {\n option = {\n value,\n currentLabel: cachedOption.currentLabel,\n get isDisabled() {\n return cachedOption.isDisabled\n },\n }\n break\n }\n }\n if (option) return option\n const label = isObjectValue ? value.label : value ?? ''\n const newOption = {\n value,\n currentLabel: label,\n }\n return newOption\n }\n\n const updateHoveringIndex = () => {\n states.hoveringIndex = optionsArray.value.findIndex((item) =>\n states.selected.some(\n (selected) => getValueKey(selected) === getValueKey(item)\n )\n )\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 onInputChange = () => {\n if (states.inputValue.length > 0 && !expanded.value) {\n expanded.value = true\n }\n handleQueryChange(states.inputValue)\n }\n\n const onInput = (event) => {\n states.inputValue = event.target.value\n if (props.remote) {\n debouncedOnInputChange()\n } else {\n return onInputChange()\n }\n }\n\n const debouncedOnInputChange = lodashDebounce(() => {\n onInputChange()\n }, debounce.value)\n\n const emitChange = (val) => {\n if (!isEqual(props.modelValue, val)) {\n emit(CHANGE_EVENT, val)\n }\n }\n\n const getLastNotDisabledIndex = (value) =>\n findLastIndex(value, (it) => {\n const option = states.cachedOptions.get(it)\n return option && !option.disabled && !option.states.groupDisabled\n })\n\n const deletePrevTag = (e) => {\n if (!props.multiple) return\n if (e.code === EVENT_CODE.delete) return\n if (e.target.value.length <= 0) {\n const value = ensureArray(props.modelValue).slice()\n const lastNotDisabledIndex = getLastNotDisabledIndex(value)\n if (lastNotDisabledIndex < 0) return\n const removeTagValue = value[lastNotDisabledIndex]\n value.splice(lastNotDisabledIndex, 1)\n emit(UPDATE_MODEL_EVENT, value)\n emitChange(value)\n emit('remove-tag', removeTagValue)\n }\n }\n\n const deleteTag = (event, tag) => {\n const index = states.selected.indexOf(tag)\n if (index > -1 && !selectDisabled.value) {\n const value = ensureArray(props.modelValue).slice()\n value.splice(index, 1)\n emit(UPDATE_MODEL_EVENT, value)\n emitChange(value)\n emit('remove-tag', tag.value)\n }\n event.stopPropagation()\n focus()\n }\n\n const deleteSelected = (event) => {\n event.stopPropagation()\n const value: string | any[] = props.multiple ? [] : valueOnClear.value\n if (props.multiple) {\n for (const item of states.selected) {\n if (item.isDisabled) value.push(item.value)\n }\n }\n emit(UPDATE_MODEL_EVENT, value)\n emitChange(value)\n states.hoveringIndex = -1\n expanded.value = false\n emit('clear')\n focus()\n }\n\n const handleOptionSelect = (option) => {\n if (props.multiple) {\n const value = ensureArray(props.modelValue ?? []).slice()\n const optionIndex = getValueIndex(value, option)\n if (optionIndex > -1) {\n value.splice(optionIndex, 1)\n } else if (\n props.multipleLimit <= 0 ||\n value.length < props.multipleLimit\n ) {\n value.push(option.value)\n }\n emit(UPDATE_MODEL_EVENT, value)\n emitChange(value)\n if (option.created) {\n handleQueryChange('')\n }\n if (props.filterable && !props.reserveKeyword) {\n states.inputValue = ''\n }\n } else {\n emit(UPDATE_MODEL_EVENT, option.value)\n emitChange(option.value)\n expanded.value = false\n }\n focus()\n if (expanded.value) return\n nextTick(() => {\n scrollToOption(option)\n })\n }\n\n const getValueIndex = (arr: any[] = [], option) => {\n if (isUndefined(option)) return -1\n if (!isObject(option.value)) return arr.indexOf(option.value)\n\n return arr.findIndex((item) => {\n return isEqual(get(item, props.valueKey), getValueKey(option))\n })\n }\n\n const scrollToOption = (option) => {\n const targetOption = isArray(option) ? option[0] : option\n let target = null\n\n if (targetOption?.value) {\n const options = optionsArray.value.filter(\n (item) => item.value === targetOption.value\n )\n if (options.length > 0) {\n target = options[0].$el\n }\n }\n\n if (tooltipRef.value && target) {\n const menu = tooltipRef.value?.popperRef?.contentRef?.querySelector?.(\n `.${nsSelect.be('dropdown', 'wrap')}`\n )\n if (menu) {\n scrollIntoView(menu as HTMLElement, target)\n }\n }\n scrollbarRef.value?.handleScroll()\n }\n\n const onOptionCreate = (vm: SelectOptionProxy) => {\n states.options.set(vm.value, vm)\n states.cachedOptions.set(vm.value, vm)\n }\n\n const onOptionDestroy = (key, vm: SelectOptionProxy) => {\n if (states.options.get(key) === vm) {\n states.options.delete(key)\n }\n }\n\n const popperRef = computed(() => {\n return tooltipRef.value?.popperRef?.contentRef\n })\n\n const handleMenuEnter = () => {\n states.isBeforeHide = false\n nextTick(() => scrollToOption(states.selected))\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 const handleClearClick = (event: Event) => {\n deleteSelected(event)\n }\n\n const handleClickOutside = (event: Event) => {\n expanded.value = false\n\n if (isFocused.value) {\n const _event = new FocusEvent('focus', event)\n nextTick(() => handleBlur(_event))\n }\n }\n\n const handleEsc = () => {\n if (states.inputValue.length > 0) {\n states.inputValue = ''\n } else {\n expanded.value = false\n }\n }\n\n const toggleMenu = () => {\n if (selectDisabled.value) return\n\n // We only set the inputHovering state to true on mouseenter event on iOS devices\n // To keep the state updated we set it here to true\n if (isIOS) states.inputHovering = true\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 selectOption = () => {\n if (!expanded.value) {\n toggleMenu()\n } else {\n const option = optionsArray.value[states.hoveringIndex]\n if (option && !option.isDisabled) {\n handleOptionSelect(option)\n }\n }\n }\n\n const getValueKey = (item) => {\n return isObject(item.value) ? get(item.value, props.valueKey) : item.value\n }\n\n const optionsAllDisabled = computed(() =>\n optionsArray.value\n .filter((option) => option.visible)\n .every((option) => option.isDisabled)\n )\n\n const showTagList = computed(() => {\n if (!props.multiple) {\n return []\n }\n return props.collapseTags\n ? states.selected.slice(0, props.maxCollapseTags)\n : states.selected\n })\n\n const collapseTagList = computed(() => {\n if (!props.multiple) {\n return []\n }\n return props.collapseTags\n ? states.selected.slice(props.maxCollapseTags)\n : []\n })\n\n const navigateOptions = (direction) => {\n if (!expanded.value) {\n expanded.value = true\n return\n }\n if (\n states.options.size === 0 ||\n filteredOptionsCount.value === 0 ||\n isComposing.value\n )\n return\n\n if (!optionsAllDisabled.value) {\n if (direction === 'next') {\n states.hoveringIndex++\n if (states.hoveringIndex === states.options.size) {\n states.hoveringIndex = 0\n }\n } else if (direction === 'prev') {\n states.hoveringIndex--\n if (states.hoveringIndex < 0) {\n states.hoveringIndex = states.options.size - 1\n }\n }\n const option = optionsArray.value[states.hoveringIndex]\n if (option.isDisabled || !option.visible) {\n navigateOptions(direction)\n }\n nextTick(() => scrollToOption(hoverOption.value))\n }\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 useResizeObserver(selectionRef, resetSelectionWidth)\n useResizeObserver(menuRef, updateTooltip)\n useResizeObserver(wrapperRef, updateTooltip)\n useResizeObserver(tagMenuRef, updateTagTooltip)\n useResizeObserver(collapseItemRef, resetCollapseItemWidth)\n\n onMounted(() => {\n setSelected()\n })\n\n return {\n inputId,\n contentId,\n nsSelect,\n nsInput,\n states,\n isFocused,\n expanded,\n optionsArray,\n hoverOption,\n selectSize,\n filteredOptionsCount,\n updateTooltip,\n updateTagTooltip,\n debouncedOnInputChange,\n onInput,\n deletePrevTag,\n deleteTag,\n deleteSelected,\n handleOptionSelect,\n scrollToOption,\n hasModelValue,\n shouldShowPlaceholder,\n currentPlaceholder,\n mouseEnterEventName,\n needStatusIcon,\n showClose,\n iconComponent,\n iconReverse,\n validateState,\n validateIcon,\n showNewOption,\n updateOptions,\n collapseTagSize,\n setSelected,\n selectDisabled,\n emptyText,\n handleCompositionStart,\n handleCompositionUpdate,\n handleCompositionEnd,\n onOptionCreate,\n onOptionDestroy,\n handleMenuEnter,\n focus,\n blur,\n handleClearClick,\n handleClickOutside,\n handleEsc,\n toggleMenu,\n selectOption,\n getValueKey,\n navigateOptions,\n dropdownMenuVisible,\n showTagList,\n collapseTagList,\n\n // computed style\n tagStyle,\n collapseTagStyle,\n\n // DOM ref\n popperRef,\n inputRef,\n tooltipRef,\n tagTooltipRef,\n prefixRef,\n suffixRef,\n selectRef,\n wrapperRef,\n selectionRef,\n scrollbarRef,\n menuRef,\n tagMenuRef,\n collapseItemRef,\n }\n}\n"],"names":["debounce","ensureArray","lodashDebounce"],"mappings":";;;;;;;;;;;;;;;;;;;AAgDY,MAAC,SAAS,GAAG,CAAC,KAAK,EAAE,IAAI,KAAK;AAC1C,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,EAAE,CAAC;AAC5B,EAAE,MAAM,SAAS,GAAG,KAAK,EAAE,CAAC;AAC5B,EAAE,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC1C,EAAE,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AACxC,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC1B,IAAI,UAAU,EAAE,EAAE;AAClB,IAAI,OAAO,kBAAkB,IAAI,GAAG,EAAE;AACtC,IAAI,aAAa,kBAAkB,IAAI,GAAG,EAAE;AAC5C,IAAI,YAAY,EAAE,EAAE;AACpB,IAAI,QAAQ,EAAE,EAAE;AAChB,IAAI,cAAc,EAAE,CAAC;AACrB,IAAI,iBAAiB,EAAE,CAAC;AACxB,IAAI,aAAa,EAAE,EAAE;AACrB,IAAI,aAAa,EAAE,CAAC,CAAC;AACrB,IAAI,aAAa,EAAE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zB,IAAI,kBAAkB;AACtB,IAAI,mBAAmB;AACvB,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,IAAI,aAAa;AACjB,IAAI,WAAW;AACf,IAAI,aAAa;AACjB,IAAI,YAAY;AAChB,IAAI,aAAa;AACjB,IAAI,aAAa;AACjB,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,IAAI,sBAAsB;AAC1B,IAAI,uBAAuB;AAC3B,IAAI,oBAAoB;AACxB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,eAAe;AACnB,IAAI,KAAK;AACT,IAAI,IAAI;AACR,IAAI,gBAAgB;AACpB,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,mBAAmB;AACvB,IAAI,WAAW;AACf,IAAI,eAAe;AACnB,IAAI,QAAQ;AACZ,IAAI,gBAAgB;AACpB,IAAI,SAAS;AACb,IAAI,QAAQ;AACZ,IAAI,UAAU;AACd,IAAI,aAAa;AACjB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,YAAY;AAChB,IAAI,YAAY;AAChB,IAAI,OAAO;AACX,IAAI,UAAU;AACd,IAAI,eAAe;AACnB,GAAG,CAAC;AACJ;;;;"}
@@ -5,7 +5,7 @@ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs
5
5
  import { iconPropType } from '../../../utils/vue/icon.mjs';
6
6
  import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
7
7
  import { useSizeProp } from '../../../hooks/use-size/index.mjs';
8
- import { tagProps } from '../../tag/src/tag2.mjs';
8
+ import { tagProps } from '../../tag/src/tag.mjs';
9
9
  import { isBoolean, isNumber } from '../../../utils/types.mjs';
10
10
  import { useEmptyValuesProps } from '../../../hooks/use-empty-values/index.mjs';
11
11
  import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
@@ -9,6 +9,7 @@ import { selectV2InjectionKey } from './token.mjs';
9
9
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
10
10
  import ClickOutside from '../../../directives/click-outside/index.mjs';
11
11
  import { isArray } from '@vue/shared';
12
+ import { useCalcInputWidth } from '../../../hooks/use-calc-input-width/index.mjs';
12
13
 
13
14
  const _sfc_main = defineComponent({
14
15
  name: "ElSelectV2",
@@ -34,6 +35,7 @@ const _sfc_main = defineComponent({
34
35
  ...toRefs(props),
35
36
  modelValue
36
37
  }), emit);
38
+ const { calculatorRef, inputStyle } = useCalcInputWidth();
37
39
  provide(selectV2InjectionKey, {
38
40
  props: reactive({
39
41
  ...toRefs(props),
@@ -56,7 +58,9 @@ const _sfc_main = defineComponent({
56
58
  return {
57
59
  ...API,
58
60
  modelValue,
59
- selectedLabel
61
+ selectedLabel,
62
+ calculatorRef,
63
+ inputStyle
60
64
  };
61
65
  }
62
66
  });
@@ -318,7 +322,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
318
322
  }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
319
323
  _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (openBlock(), createBlock(_component_el_icon, {
320
324
  key: 2,
321
- class: normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("validateIcon")])
325
+ class: normalizeClass([
326
+ _ctx.nsInput.e("icon"),
327
+ _ctx.nsInput.e("validateIcon"),
328
+ _ctx.nsInput.is("loading", _ctx.validateState === "validating")
329
+ ])
322
330
  }, {
323
331
  default: withCtx(() => [
324
332
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
@@ -1 +1 @@
1
- {"version":3,"file":"select.mjs","sources":["../../../../../../packages/components/select-v2/src/select.vue"],"sourcesContent":["<template>\n <div\n ref=\"selectRef\"\n v-click-outside:[popperRef]=\"handleClickOutside\"\n :class=\"[nsSelect.b(), nsSelect.m(selectSize)]\"\n @mouseenter=\"states.inputHovering = true\"\n @mouseleave=\"states.inputHovering = false\"\n >\n <el-tooltip\n ref=\"tooltipRef\"\n :visible=\"dropdownMenuVisible\"\n :teleported=\"teleported\"\n :popper-class=\"[nsSelect.e('popper'), popperClass]\"\n :gpu-acceleration=\"false\"\n :stop-popper-mouse-event=\"false\"\n :popper-options=\"popperOptions\"\n :fallback-placements=\"fallbackPlacements\"\n :effect=\"effect\"\n :placement=\"placement\"\n pure\n :transition=\"`${nsSelect.namespace.value}-zoom-in-top`\"\n trigger=\"click\"\n :persistent=\"persistent\"\n :append-to=\"appendTo\"\n :show-arrow=\"showArrow\"\n :offset=\"offset\"\n @before-show=\"handleMenuEnter\"\n @hide=\"states.isBeforeHide = false\"\n >\n <template #default>\n <div\n ref=\"wrapperRef\"\n :class=\"[\n nsSelect.e('wrapper'),\n nsSelect.is('focused', isFocused),\n nsSelect.is('hovering', states.inputHovering),\n nsSelect.is('filterable', filterable),\n nsSelect.is('disabled', selectDisabled),\n ]\"\n @click.prevent=\"toggleMenu\"\n >\n <div\n v-if=\"$slots.prefix\"\n ref=\"prefixRef\"\n :class=\"nsSelect.e('prefix')\"\n >\n <slot name=\"prefix\" />\n </div>\n <div\n ref=\"selectionRef\"\n :class=\"[\n nsSelect.e('selection'),\n nsSelect.is(\n 'near',\n multiple && !$slots.prefix && !!modelValue.length\n ),\n ]\"\n >\n <slot v-if=\"multiple\" name=\"tag\">\n <div\n v-for=\"item in showTagList\"\n :key=\"getValueKey(getValue(item))\"\n :class=\"nsSelect.e('selected-item')\"\n >\n <el-tag\n :closable=\"!selectDisabled && !getDisabled(item)\"\n :size=\"collapseTagSize\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n disable-transitions\n :style=\"tagStyle\"\n @close=\"deleteTag($event, item)\"\n >\n <span :class=\"nsSelect.e('tags-text')\">\n <slot\n name=\"label\"\n :label=\"getLabel(item)\"\n :value=\"getValue(item)\"\n >\n {{ getLabel(item) }}\n </slot>\n </span>\n </el-tag>\n </div>\n\n <el-tooltip\n v-if=\"collapseTags && modelValue.length > maxCollapseTags\"\n ref=\"tagTooltipRef\"\n :disabled=\"dropdownMenuVisible || !collapseTagsTooltip\"\n :fallback-placements=\"['bottom', 'top', 'right', 'left']\"\n :effect=\"effect\"\n placement=\"bottom\"\n :teleported=\"teleported\"\n >\n <template #default>\n <div\n ref=\"collapseItemRef\"\n :class=\"nsSelect.e('selected-item')\"\n >\n <el-tag\n :closable=\"false\"\n :size=\"collapseTagSize\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n :style=\"collapseTagStyle\"\n disable-transitions\n >\n <span :class=\"nsSelect.e('tags-text')\">\n + {{ modelValue.length - maxCollapseTags }}\n </span>\n </el-tag>\n </div>\n </template>\n <template #content>\n <div ref=\"tagMenuRef\" :class=\"nsSelect.e('selection')\">\n <div\n v-for=\"selected in collapseTagList\"\n :key=\"getValueKey(getValue(selected))\"\n :class=\"nsSelect.e('selected-item')\"\n >\n <el-tag\n class=\"in-tooltip\"\n :closable=\"!selectDisabled && !getDisabled(selected)\"\n :size=\"collapseTagSize\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n disable-transitions\n @close=\"deleteTag($event, selected)\"\n >\n <span :class=\"nsSelect.e('tags-text')\">\n <slot\n name=\"label\"\n :label=\"getLabel(selected)\"\n :value=\"getValue(selected)\"\n >\n {{ getLabel(selected) }}\n </slot>\n </span>\n </el-tag>\n </div>\n </div>\n </template>\n </el-tooltip>\n </slot>\n <div\n :class=\"[\n nsSelect.e('selected-item'),\n nsSelect.e('input-wrapper'),\n nsSelect.is('hidden', !filterable),\n ]\"\n >\n <input\n :id=\"inputId\"\n ref=\"inputRef\"\n v-model=\"states.inputValue\"\n :style=\"inputStyle\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n autocapitalize=\"off\"\n :aria-expanded=\"expanded\"\n :aria-label=\"ariaLabel\"\n :class=\"[nsSelect.e('input'), nsSelect.is(selectSize)]\"\n :disabled=\"selectDisabled\"\n role=\"combobox\"\n :readonly=\"!filterable\"\n spellcheck=\"false\"\n type=\"text\"\n :name=\"name\"\n @input=\"onInput\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @keydown.up.stop.prevent=\"onKeyboardNavigate('backward')\"\n @keydown.down.stop.prevent=\"onKeyboardNavigate('forward')\"\n @keydown.enter.stop.prevent=\"onKeyboardSelect\"\n @keydown.esc.stop.prevent=\"handleEsc\"\n @keydown.delete.stop=\"handleDel\"\n @click.stop=\"toggleMenu\"\n />\n <span\n v-if=\"filterable\"\n ref=\"calculatorRef\"\n aria-hidden=\"true\"\n :class=\"nsSelect.e('input-calculator')\"\n v-text=\"states.inputValue\"\n />\n </div>\n <div\n v-if=\"shouldShowPlaceholder\"\n :class=\"[\n nsSelect.e('selected-item'),\n nsSelect.e('placeholder'),\n nsSelect.is(\n 'transparent',\n !hasModelValue || (expanded && !states.inputValue)\n ),\n ]\"\n >\n <slot\n v-if=\"hasModelValue\"\n name=\"label\"\n :label=\"currentPlaceholder\"\n :value=\"modelValue\"\n >\n <span>{{ currentPlaceholder }}</span>\n </slot>\n <span v-else>{{ currentPlaceholder }}</span>\n </div>\n </div>\n <div ref=\"suffixRef\" :class=\"nsSelect.e('suffix')\">\n <el-icon\n v-if=\"iconComponent\"\n v-show=\"!showClearBtn\"\n :class=\"[nsSelect.e('caret'), nsInput.e('icon'), iconReverse]\"\n >\n <component :is=\"iconComponent\" />\n </el-icon>\n <el-icon\n v-if=\"showClearBtn && clearIcon\"\n :class=\"[\n nsSelect.e('caret'),\n nsInput.e('icon'),\n nsSelect.e('clear'),\n ]\"\n @click.prevent.stop=\"handleClear\"\n >\n <component :is=\"clearIcon\" />\n </el-icon>\n <el-icon\n v-if=\"validateState && validateIcon && needStatusIcon\"\n :class=\"[nsInput.e('icon'), nsInput.e('validateIcon')]\"\n >\n <component :is=\"validateIcon\" />\n </el-icon>\n </div>\n </div>\n </template>\n <template #content>\n <el-select-menu\n ref=\"menuRef\"\n :data=\"filteredOptions\"\n :width=\"popperSize\"\n :hovering-index=\"states.hoveringIndex\"\n :scrollbar-always-on=\"scrollbarAlwaysOn\"\n >\n <template v-if=\"$slots.header\" #header>\n <div :class=\"nsSelect.be('dropdown', 'header')\">\n <slot name=\"header\" />\n </div>\n </template>\n <template #default=\"scope\">\n <slot v-bind=\"scope\" />\n </template>\n <template v-if=\"$slots.loading && loading\" #loading>\n <div :class=\"nsSelect.be('dropdown', 'loading')\">\n <slot name=\"loading\" />\n </div>\n </template>\n <template v-else-if=\"loading || filteredOptions.length === 0\" #empty>\n <div :class=\"nsSelect.be('dropdown', 'empty')\">\n <slot name=\"empty\">\n <span>{{ emptyText }}</span>\n </slot>\n </div>\n </template>\n <template v-if=\"$slots.footer\" #footer>\n <div :class=\"nsSelect.be('dropdown', 'footer')\">\n <slot name=\"footer\" />\n </div>\n </template>\n </el-select-menu>\n </template>\n </el-tooltip>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, provide, reactive, toRefs } from 'vue'\nimport { isArray } from '@element-plus/utils'\nimport { ClickOutside } from '@element-plus/directives'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport ElTag from '@element-plus/components/tag'\nimport ElIcon from '@element-plus/components/icon'\nimport ElSelectMenu from './select-dropdown'\nimport useSelect from './useSelect'\nimport { SelectProps, selectEmits } from './defaults'\nimport { selectV2InjectionKey } from './token'\n\nexport default defineComponent({\n name: 'ElSelectV2',\n components: {\n ElSelectMenu,\n ElTag,\n ElTooltip,\n ElIcon,\n },\n directives: { ClickOutside },\n props: SelectProps,\n emits: selectEmits,\n setup(props, { emit }) {\n const modelValue = computed(() => {\n const { modelValue: rawModelValue, multiple } = props\n const fallback = multiple ? [] : undefined\n // When it is array, we check if this is multi-select.\n // Based on the result we get\n if (isArray(rawModelValue)) {\n return multiple ? rawModelValue : fallback\n }\n return multiple ? fallback : rawModelValue\n })\n\n const API = useSelect(\n reactive({\n ...toRefs(props),\n modelValue,\n }),\n emit\n )\n provide(selectV2InjectionKey, {\n props: reactive({\n ...toRefs(props),\n height: API.popupHeight,\n modelValue,\n }),\n expanded: API.expanded,\n tooltipRef: API.tooltipRef,\n onSelect: API.onSelect,\n onHover: API.onHover,\n onKeyboardNavigate: API.onKeyboardNavigate,\n onKeyboardSelect: API.onKeyboardSelect,\n })\n\n const selectedLabel = computed(() => {\n if (!props.multiple) {\n return API.states.selectedLabel\n }\n return API.states.cachedOptions.map((i) => i.label as string)\n })\n\n return {\n ...API,\n modelValue,\n selectedLabel,\n }\n },\n})\n</script>\n"],"names":["_resolveComponent","_createVNode","_withCtx","_createElementVNode","_withModifiers","_openBlock","_createElementBlock","_normalizeClass","_renderSlot","_createCommentVNode","_createTextVNode","_toDisplayString","_createBlock","_normalizeStyle","_withKeys","_resolveDynamicComponent","_createSlots","_normalizeProps","_guardReactiveProps"],"mappings":";;;;;;;;;;;;AAkSA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,YAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,YAAA;AAAA,IACA,KAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA;AAAA,GACF;AAAA,EACA,UAAA,EAAY,EAAE,YAAa,EAAA;AAAA,EAC3B,KAAO,EAAA,WAAA;AAAA,EACP,KAAO,EAAA,WAAA;AAAA,EACP,KAAM,CAAA,KAAA,EAAO,EAAE,IAAA,EAAQ,EAAA;AACrB,IAAM,MAAA,UAAA,GAAa,SAAS,MAAM;AAChC,MAAA,MAAM,EAAE,UAAA,EAAY,aAAe,EAAA,QAAA,EAAa,GAAA,KAAA,CAAA;AAChD,MAAM,MAAA,QAAA,GAAW,QAAW,GAAA,EAAK,GAAA,KAAA,CAAA,CAAA;AAGjC,MAAI,IAAA,OAAA,CAAQ,aAAa,CAAG,EAAA;AAC1B,QAAA,OAAO,WAAW,aAAgB,G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AAA,UAAA,EAAA,QAAA,CAAA,CAAA;AAAA,eAAqC,EAAA;AAAA,gBAAAC,UAAA,CAAA,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,eAAA,EAAA,CAAA,CAAA;AAAV,aAAA,CAAA;AAAA,WAAA,GAAA,KAAA,CAAA;AAAA,SAAA,CAAA,EAAA,IAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,gBAAA,EAAA,qBAAA,CAAA,CAAA;AAAA,OAE7B,CAAA;AAAA,MAA4C,CAAA,EAAA,CAAA;AAAA,KAAA,EAAA,CAAA,EAAA,CAAA,SAAA,EAAA,YAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,YAAA,EAAA,YAAA,EAAA,WAAA,EAAA,YAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,CAAA,CAAA;AAAA,GAAA,EAAA,EAAA,EAAA,CAAA,cAAA,EAAA,cAAV,CAAA,CAAA,GAAA;AAAA,IAAA,CAAA,wBAAA,EAAA,IAAA,CAAA,kBAAA,EAAA,IAAA,CAAA,SAAA,CAAA;AAAA,GAAA,CAAA,CAAA;AAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"select.mjs","sources":["../../../../../../packages/components/select-v2/src/select.vue"],"sourcesContent":["<template>\n <div\n ref=\"selectRef\"\n v-click-outside:[popperRef]=\"handleClickOutside\"\n :class=\"[nsSelect.b(), nsSelect.m(selectSize)]\"\n @mouseenter=\"states.inputHovering = true\"\n @mouseleave=\"states.inputHovering = false\"\n >\n <el-tooltip\n ref=\"tooltipRef\"\n :visible=\"dropdownMenuVisible\"\n :teleported=\"teleported\"\n :popper-class=\"[nsSelect.e('popper'), popperClass]\"\n :gpu-acceleration=\"false\"\n :stop-popper-mouse-event=\"false\"\n :popper-options=\"popperOptions\"\n :fallback-placements=\"fallbackPlacements\"\n :effect=\"effect\"\n :placement=\"placement\"\n pure\n :transition=\"`${nsSelect.namespace.value}-zoom-in-top`\"\n trigger=\"click\"\n :persistent=\"persistent\"\n :append-to=\"appendTo\"\n :show-arrow=\"showArrow\"\n :offset=\"offset\"\n @before-show=\"handleMenuEnter\"\n @hide=\"states.isBeforeHide = false\"\n >\n <template #default>\n <div\n ref=\"wrapperRef\"\n :class=\"[\n nsSelect.e('wrapper'),\n nsSelect.is('focused', isFocused),\n nsSelect.is('hovering', states.inputHovering),\n nsSelect.is('filterable', filterable),\n nsSelect.is('disabled', selectDisabled),\n ]\"\n @click.prevent=\"toggleMenu\"\n >\n <div\n v-if=\"$slots.prefix\"\n ref=\"prefixRef\"\n :class=\"nsSelect.e('prefix')\"\n >\n <slot name=\"prefix\" />\n </div>\n <div\n ref=\"selectionRef\"\n :class=\"[\n nsSelect.e('selection'),\n nsSelect.is(\n 'near',\n multiple && !$slots.prefix && !!modelValue.length\n ),\n ]\"\n >\n <slot v-if=\"multiple\" name=\"tag\">\n <div\n v-for=\"item in showTagList\"\n :key=\"getValueKey(getValue(item))\"\n :class=\"nsSelect.e('selected-item')\"\n >\n <el-tag\n :closable=\"!selectDisabled && !getDisabled(item)\"\n :size=\"collapseTagSize\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n disable-transitions\n :style=\"tagStyle\"\n @close=\"deleteTag($event, item)\"\n >\n <span :class=\"nsSelect.e('tags-text')\">\n <slot\n name=\"label\"\n :label=\"getLabel(item)\"\n :value=\"getValue(item)\"\n >\n {{ getLabel(item) }}\n </slot>\n </span>\n </el-tag>\n </div>\n\n <el-tooltip\n v-if=\"collapseTags && modelValue.length > maxCollapseTags\"\n ref=\"tagTooltipRef\"\n :disabled=\"dropdownMenuVisible || !collapseTagsTooltip\"\n :fallback-placements=\"['bottom', 'top', 'right', 'left']\"\n :effect=\"effect\"\n placement=\"bottom\"\n :teleported=\"teleported\"\n >\n <template #default>\n <div\n ref=\"collapseItemRef\"\n :class=\"nsSelect.e('selected-item')\"\n >\n <el-tag\n :closable=\"false\"\n :size=\"collapseTagSize\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n :style=\"collapseTagStyle\"\n disable-transitions\n >\n <span :class=\"nsSelect.e('tags-text')\">\n + {{ modelValue.length - maxCollapseTags }}\n </span>\n </el-tag>\n </div>\n </template>\n <template #content>\n <div ref=\"tagMenuRef\" :class=\"nsSelect.e('selection')\">\n <div\n v-for=\"selected in collapseTagList\"\n :key=\"getValueKey(getValue(selected))\"\n :class=\"nsSelect.e('selected-item')\"\n >\n <el-tag\n class=\"in-tooltip\"\n :closable=\"!selectDisabled && !getDisabled(selected)\"\n :size=\"collapseTagSize\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n disable-transitions\n @close=\"deleteTag($event, selected)\"\n >\n <span :class=\"nsSelect.e('tags-text')\">\n <slot\n name=\"label\"\n :label=\"getLabel(selected)\"\n :value=\"getValue(selected)\"\n >\n {{ getLabel(selected) }}\n </slot>\n </span>\n </el-tag>\n </div>\n </div>\n </template>\n </el-tooltip>\n </slot>\n <div\n :class=\"[\n nsSelect.e('selected-item'),\n nsSelect.e('input-wrapper'),\n nsSelect.is('hidden', !filterable),\n ]\"\n >\n <input\n :id=\"inputId\"\n ref=\"inputRef\"\n v-model=\"states.inputValue\"\n :style=\"inputStyle\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n aria-autocomplete=\"list\"\n aria-haspopup=\"listbox\"\n autocapitalize=\"off\"\n :aria-expanded=\"expanded\"\n :aria-label=\"ariaLabel\"\n :class=\"[nsSelect.e('input'), nsSelect.is(selectSize)]\"\n :disabled=\"selectDisabled\"\n role=\"combobox\"\n :readonly=\"!filterable\"\n spellcheck=\"false\"\n type=\"text\"\n :name=\"name\"\n @input=\"onInput\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @keydown.up.stop.prevent=\"onKeyboardNavigate('backward')\"\n @keydown.down.stop.prevent=\"onKeyboardNavigate('forward')\"\n @keydown.enter.stop.prevent=\"onKeyboardSelect\"\n @keydown.esc.stop.prevent=\"handleEsc\"\n @keydown.delete.stop=\"handleDel\"\n @click.stop=\"toggleMenu\"\n />\n <span\n v-if=\"filterable\"\n ref=\"calculatorRef\"\n aria-hidden=\"true\"\n :class=\"nsSelect.e('input-calculator')\"\n v-text=\"states.inputValue\"\n />\n </div>\n <div\n v-if=\"shouldShowPlaceholder\"\n :class=\"[\n nsSelect.e('selected-item'),\n nsSelect.e('placeholder'),\n nsSelect.is(\n 'transparent',\n !hasModelValue || (expanded && !states.inputValue)\n ),\n ]\"\n >\n <slot\n v-if=\"hasModelValue\"\n name=\"label\"\n :label=\"currentPlaceholder\"\n :value=\"modelValue\"\n >\n <span>{{ currentPlaceholder }}</span>\n </slot>\n <span v-else>{{ currentPlaceholder }}</span>\n </div>\n </div>\n <div ref=\"suffixRef\" :class=\"nsSelect.e('suffix')\">\n <el-icon\n v-if=\"iconComponent\"\n v-show=\"!showClearBtn\"\n :class=\"[nsSelect.e('caret'), nsInput.e('icon'), iconReverse]\"\n >\n <component :is=\"iconComponent\" />\n </el-icon>\n <el-icon\n v-if=\"showClearBtn && clearIcon\"\n :class=\"[\n nsSelect.e('caret'),\n nsInput.e('icon'),\n nsSelect.e('clear'),\n ]\"\n @click.prevent.stop=\"handleClear\"\n >\n <component :is=\"clearIcon\" />\n </el-icon>\n <el-icon\n v-if=\"validateState && validateIcon && needStatusIcon\"\n :class=\"[\n nsInput.e('icon'),\n nsInput.e('validateIcon'),\n nsInput.is('loading', validateState === 'validating'),\n ]\"\n >\n <component :is=\"validateIcon\" />\n </el-icon>\n </div>\n </div>\n </template>\n <template #content>\n <el-select-menu\n ref=\"menuRef\"\n :data=\"filteredOptions\"\n :width=\"popperSize\"\n :hovering-index=\"states.hoveringIndex\"\n :scrollbar-always-on=\"scrollbarAlwaysOn\"\n >\n <template v-if=\"$slots.header\" #header>\n <div :class=\"nsSelect.be('dropdown', 'header')\">\n <slot name=\"header\" />\n </div>\n </template>\n <template #default=\"scope\">\n <slot v-bind=\"scope\" />\n </template>\n <template v-if=\"$slots.loading && loading\" #loading>\n <div :class=\"nsSelect.be('dropdown', 'loading')\">\n <slot name=\"loading\" />\n </div>\n </template>\n <template v-else-if=\"loading || filteredOptions.length === 0\" #empty>\n <div :class=\"nsSelect.be('dropdown', 'empty')\">\n <slot name=\"empty\">\n <span>{{ emptyText }}</span>\n </slot>\n </div>\n </template>\n <template v-if=\"$slots.footer\" #footer>\n <div :class=\"nsSelect.be('dropdown', 'footer')\">\n <slot name=\"footer\" />\n </div>\n </template>\n </el-select-menu>\n </template>\n </el-tooltip>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, provide, reactive, toRefs } from 'vue'\nimport { isArray } from '@element-plus/utils'\nimport { ClickOutside } from '@element-plus/directives'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport ElTag from '@element-plus/components/tag'\nimport ElIcon from '@element-plus/components/icon'\nimport { useCalcInputWidth } from '@element-plus/hooks'\nimport ElSelectMenu from './select-dropdown'\nimport useSelect from './useSelect'\nimport { SelectProps, selectEmits } from './defaults'\nimport { selectV2InjectionKey } from './token'\n\nexport default defineComponent({\n name: 'ElSelectV2',\n components: {\n ElSelectMenu,\n ElTag,\n ElTooltip,\n ElIcon,\n },\n directives: { ClickOutside },\n props: SelectProps,\n emits: selectEmits,\n setup(props, { emit }) {\n const modelValue = computed(() => {\n const { modelValue: rawModelValue, multiple } = props\n const fallback = multiple ? [] : undefined\n // When it is array, we check if this is multi-select.\n // Based on the result we get\n if (isArray(rawModelValue)) {\n return multiple ? rawModelValue : fallback\n }\n return multiple ? fallback : rawModelValue\n })\n\n const API = useSelect(\n reactive({\n ...toRefs(props),\n modelValue,\n }),\n emit\n )\n const { calculatorRef, inputStyle } = useCalcInputWidth()\n\n provide(selectV2InjectionKey, {\n props: reactive({\n ...toRefs(props),\n height: API.popupHeight,\n modelValue,\n }),\n expanded: API.expanded,\n tooltipRef: API.tooltipRef,\n onSelect: API.onSelect,\n onHover: API.onHover,\n onKeyboardNavigate: API.onKeyboardNavigate,\n onKeyboardSelect: API.onKeyboardSelect,\n })\n\n const selectedLabel = computed(() => {\n if (!props.multiple) {\n return API.states.selectedLabel\n }\n return API.states.cachedOptions.map((i) => i.label as string)\n })\n\n return {\n ...API,\n modelValue,\n selectedLabel,\n calculatorRef,\n inputStyle,\n }\n },\n})\n</script>\n"],"names":["_resolveComponent","_createVNode","_withCtx","_createElementVNode","_withModifiers","_openBlock","_createElementBlock","_normalizeClass","_renderSlot","_createCommentVNode","_createTextVNode","_toDisplayString","_createBlock","_normalizeStyle","_withKeys","_resolveDynamicComponent","_createSlots","_normalizeProps","_guardReactiveProps"],"mappings":";;;;;;;;;;;;;AAuSA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,YAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,YAAA;AAAA,IACA,KAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA;AAAA,GACF;AAAA,EACA,UAAA,EAAY,EAAE,YAAa,EAAA;AAAA,EAC3B,KAAO,EAAA,WAAA;AAAA,EACP,KAAO,EAAA,WAAA;AAAA,EACP,KAAM,CAAA,KAAA,EAAO,EAAE,IAAA,EAAQ,EAAA;AACrB,IAAM,MAAA,UAAA,GAAa,SAAS,MAAM;AAChC,MAAA,MAAM,EAAE,UAAA,EAAY,aAAe,EAAA,QAAA,EAAa,GAAA,KAAA,CAAA;AAChD,MAAM,MAAA,QAAA,GAAW,QAAW,GAAA,EAAK,GAAA,KAAA,CAAA,CAAA;AAGjC,MAAI,IAAA,OAAA,CAAQ,aAAa,CAAG,EAAA;AAC1B,QAAA,OAAO,WAAW,aAAgB,GAAA,QAAA,CAAA;AAAA,OACpC;AACA,MAAA,OAAO,WAAW,QAAW,GAAA,aAAA,CAAA;AAAA,KAC9B,CAAA,CAAA;AAED,IAAA,MAAM,GAAM,GAAA,SAAA,CAAA,QAAA,CAAA;AAAA,MACV,GAAS,MAAA,CAAA,KAAA,C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AAA,CAAA;AAAA,eAAA,EAAA;AAAA,gBAAAC,UAAA,CAAA,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,eAE7B,EAAA,CAAA,CAAA;AAAA,aAA4C,CAAA;AAAA,WAAA,GAAA,KAAA,CAAA;AAAA,SAAA,CAAA,EAAA,IAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,gBAAV,EAAA,qBAAA,CAAA,CAAA;AAAA,OAAA,CAAA;AAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KAAA,EAAA,CAAA,EAAA,CAAA,SAAA,EAAA,YAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,YAAA,EAAA,YAAA,EAAA,WAAA,EAAA,YAAA,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,CAAA,CAAA;AAAA,GAAA,EAAA,EAAA,EAAA,CAAA,cAAA,EAAA,cAAA,CAAA,CAAA,GAAA;;;;;;;;"}
@@ -16,7 +16,6 @@ export type SelectStates = {
16
16
  hoveringIndex: number;
17
17
  inputHovering: boolean;
18
18
  selectionWidth: number;
19
- calculatorWidth: number;
20
19
  collapseItemWidth: number;
21
20
  previousQuery: string | null;
22
21
  previousValue: unknown;
@@ -90,6 +90,10 @@ declare const _default: import("vue").DefineComponent<{
90
90
  }, {
91
91
  modelValue: import("vue").ComputedRef<any>;
92
92
  selectedLabel: import("vue").ComputedRef<string | string[]>;
93
+ calculatorRef: import("vue").ShallowRef<HTMLElement | undefined>;
94
+ inputStyle: import("vue").ComputedRef<{
95
+ minWidth: string;
96
+ }>;
93
97
  inputId: import("vue").Ref<string | undefined>;
94
98
  collapseTagSize: import("vue").ComputedRef<"default" | "small">;
95
99
  currentPlaceholder: import("vue").ComputedRef<string>;
@@ -107,9 +111,6 @@ declare const _default: import("vue").DefineComponent<{
107
111
  collapseTagStyle: import("vue").ComputedRef<{
108
112
  maxWidth: string;
109
113
  }>;
110
- inputStyle: import("vue").ComputedRef<{
111
- width: string;
112
- }>;
113
114
  popperSize: import("vue").Ref<number>;
114
115
  dropdownMenuVisible: import("vue").WritableComputedRef<boolean>;
115
116
  hasModelValue: import("vue").ComputedRef<boolean>;
@@ -122,7 +123,6 @@ declare const _default: import("vue").DefineComponent<{
122
123
  isFocused: import("vue").Ref<boolean>;
123
124
  nsSelect: ReturnType<typeof import("@element-plus/nightly/es/hooks").useNamespace>;
124
125
  nsInput: ReturnType<typeof import("@element-plus/nightly/es/hooks").useNamespace>;
125
- calculatorRef: import("vue").Ref<HTMLElement | undefined>;
126
126
  inputRef: import("vue").Ref<HTMLElement | undefined>;
127
127
  menuRef: import("vue").Ref<import("./select-dropdown").SelectDropdownInstance | undefined>;
128
128
  tagMenuRef: import("vue").Ref<HTMLElement | undefined>;
@@ -154,7 +154,6 @@ declare const _default: import("vue").DefineComponent<{
154
154
  handleMenuEnter: () => void;
155
155
  handleResize: () => void;
156
156
  resetSelectionWidth: () => void;
157
- resetCalculatorWidth: () => void;
158
157
  updateTooltip: () => void;
159
158
  updateTagTooltip: () => void;
160
159
  updateOptions: () => void;
@@ -23,9 +23,6 @@ type useSelectReturnType = (props: ISelectV2Props, emit: SelectEmitFn) => {
23
23
  collapseTagStyle: ComputedRef<{
24
24
  maxWidth: string;
25
25
  }>;
26
- inputStyle: ComputedRef<{
27
- width: string;
28
- }>;
29
26
  popperSize: Ref<number>;
30
27
  dropdownMenuVisible: WritableComputedRef<boolean>;
31
28
  hasModelValue: ComputedRef<boolean>;
@@ -38,7 +35,6 @@ type useSelectReturnType = (props: ISelectV2Props, emit: SelectEmitFn) => {
38
35
  isFocused: Ref<boolean>;
39
36
  nsSelect: ReturnType<typeof useNamespace>;
40
37
  nsInput: ReturnType<typeof useNamespace>;
41
- calculatorRef: Ref<HTMLElement | undefined>;
42
38
  inputRef: Ref<HTMLElement | undefined>;
43
39
  menuRef: Ref<SelectDropdownInstance | undefined>;
44
40
  tagMenuRef: Ref<HTMLElement | undefined>;
@@ -70,7 +66,6 @@ type useSelectReturnType = (props: ISelectV2Props, emit: SelectEmitFn) => {
70
66
  handleMenuEnter: () => void;
71
67
  handleResize: () => void;
72
68
  resetSelectionWidth: () => void;
73
- resetCalculatorWidth: () => void;
74
69
  updateTooltip: () => void;
75
70
  updateTagTooltip: () => void;
76
71
  updateOptions: () => void;
@@ -19,7 +19,6 @@ import { isNumber } from '../../../utils/types.mjs';
19
19
  import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
20
20
  import { escapeStringRegexp } from '../../../utils/strings.mjs';
21
21
 
22
- const MINIMUM_INPUT_WIDTH = 11;
23
22
  const useSelect = (props, emit) => {
24
23
  const { t } = useLocale();
25
24
  const nsSelect = useNamespace("select");
@@ -37,7 +36,6 @@ const useSelect = (props, emit) => {
37
36
  hoveringIndex: -1,
38
37
  inputHovering: false,
39
38
  selectionWidth: 0,
40
- calculatorWidth: 0,
41
39
  collapseItemWidth: 0,
42
40
  previousQuery: null,
43
41
  previousValue: void 0,
@@ -51,7 +49,6 @@ const useSelect = (props, emit) => {
51
49
  const tooltipRef = ref();
52
50
  const tagTooltipRef = ref();
53
51
  const inputRef = ref();
54
- const calculatorRef = ref();
55
52
  const prefixRef = ref();
56
53
  const suffixRef = ref();
57
54
  const menuRef = ref();
@@ -222,9 +219,6 @@ const useSelect = (props, emit) => {
222
219
  const collapseTagStyle = computed(() => {
223
220
  return { maxWidth: `${states.selectionWidth}px` };
224
221
  });
225
- const inputStyle = computed(() => ({
226
- width: `${Math.max(states.calculatorWidth, MINIMUM_INPUT_WIDTH)}px`
227
- }));
228
222
  const shouldShowPlaceholder = computed(() => {
229
223
  if (isArray(props.modelValue)) {
230
224
  return props.modelValue.length === 0 && !states.inputValue;
@@ -354,9 +348,6 @@ const useSelect = (props, emit) => {
354
348
  const resetSelectionWidth = () => {
355
349
  states.selectionWidth = selectionRef.value.getBoundingClientRect().width;
356
350
  };
357
- const resetCalculatorWidth = () => {
358
- states.calculatorWidth = calculatorRef.value.getBoundingClientRect().width;
359
- };
360
351
  const resetCollapseItemWidth = () => {
361
352
  states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
362
353
  };
@@ -676,7 +667,6 @@ const useSelect = (props, emit) => {
676
667
  });
677
668
  useResizeObserver(selectRef, handleResize);
678
669
  useResizeObserver(selectionRef, resetSelectionWidth);
679
- useResizeObserver(calculatorRef, resetCalculatorWidth);
680
670
  useResizeObserver(menuRef, updateTooltip);
681
671
  useResizeObserver(wrapperRef, updateTooltip);
682
672
  useResizeObserver(tagMenuRef, updateTagTooltip);
@@ -695,7 +685,6 @@ const useSelect = (props, emit) => {
695
685
  iconReverse,
696
686
  tagStyle,
697
687
  collapseTagStyle,
698
- inputStyle,
699
688
  popperSize,
700
689
  dropdownMenuVisible,
701
690
  hasModelValue,
@@ -708,7 +697,6 @@ const useSelect = (props, emit) => {
708
697
  isFocused,
709
698
  nsSelect,
710
699
  nsInput,
711
- calculatorRef,
712
700
  inputRef,
713
701
  menuRef,
714
702
  tagMenuRef,
@@ -740,7 +728,6 @@ const useSelect = (props, emit) => {
740
728
  handleMenuEnter,
741
729
  handleResize,
742
730
  resetSelectionWidth,
743
- resetCalculatorWidth,
744
731
  updateTooltip,
745
732
  updateTagTooltip,
746
733
  updateOptions,