@element-plus/nightly 0.0.20241225 → 0.0.20241227

Sign up to get free protection for your applications and to get access to all the features.
Files changed (642) hide show
  1. package/dist/index.full.js +4 -4
  2. package/dist/index.full.min.js +3 -3
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +3 -3
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +4 -4
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/ms.js +1 -1
  152. package/dist/locale/ms.min.js +1 -1
  153. package/dist/locale/ms.min.mjs +1 -1
  154. package/dist/locale/ms.mjs +1 -1
  155. package/dist/locale/my.js +1 -1
  156. package/dist/locale/my.min.js +1 -1
  157. package/dist/locale/my.min.mjs +1 -1
  158. package/dist/locale/my.mjs +1 -1
  159. package/dist/locale/nb-no.js +1 -1
  160. package/dist/locale/nb-no.min.js +1 -1
  161. package/dist/locale/nb-no.min.mjs +1 -1
  162. package/dist/locale/nb-no.mjs +1 -1
  163. package/dist/locale/nl.js +1 -1
  164. package/dist/locale/nl.min.js +1 -1
  165. package/dist/locale/nl.min.mjs +1 -1
  166. package/dist/locale/nl.mjs +1 -1
  167. package/dist/locale/pa.js +1 -1
  168. package/dist/locale/pa.min.js +1 -1
  169. package/dist/locale/pa.min.mjs +1 -1
  170. package/dist/locale/pa.mjs +1 -1
  171. package/dist/locale/pl.js +1 -1
  172. package/dist/locale/pl.min.js +1 -1
  173. package/dist/locale/pl.min.mjs +1 -1
  174. package/dist/locale/pl.mjs +1 -1
  175. package/dist/locale/pt-br.js +1 -1
  176. package/dist/locale/pt-br.min.js +1 -1
  177. package/dist/locale/pt-br.min.mjs +1 -1
  178. package/dist/locale/pt-br.mjs +1 -1
  179. package/dist/locale/pt.js +1 -1
  180. package/dist/locale/pt.min.js +1 -1
  181. package/dist/locale/pt.min.mjs +1 -1
  182. package/dist/locale/pt.mjs +1 -1
  183. package/dist/locale/ro.js +1 -1
  184. package/dist/locale/ro.min.js +1 -1
  185. package/dist/locale/ro.min.mjs +1 -1
  186. package/dist/locale/ro.mjs +1 -1
  187. package/dist/locale/ru.js +1 -1
  188. package/dist/locale/ru.min.js +1 -1
  189. package/dist/locale/ru.min.mjs +1 -1
  190. package/dist/locale/ru.mjs +1 -1
  191. package/dist/locale/sk.js +1 -1
  192. package/dist/locale/sk.min.js +1 -1
  193. package/dist/locale/sk.min.mjs +1 -1
  194. package/dist/locale/sk.mjs +1 -1
  195. package/dist/locale/sl.js +1 -1
  196. package/dist/locale/sl.min.js +1 -1
  197. package/dist/locale/sl.min.mjs +1 -1
  198. package/dist/locale/sl.mjs +1 -1
  199. package/dist/locale/sr.js +1 -1
  200. package/dist/locale/sr.min.js +1 -1
  201. package/dist/locale/sr.min.mjs +1 -1
  202. package/dist/locale/sr.mjs +1 -1
  203. package/dist/locale/sv.js +1 -1
  204. package/dist/locale/sv.min.js +1 -1
  205. package/dist/locale/sv.min.mjs +1 -1
  206. package/dist/locale/sv.mjs +1 -1
  207. package/dist/locale/sw.js +1 -1
  208. package/dist/locale/sw.min.js +1 -1
  209. package/dist/locale/sw.min.mjs +1 -1
  210. package/dist/locale/sw.mjs +1 -1
  211. package/dist/locale/ta.js +1 -1
  212. package/dist/locale/ta.min.js +1 -1
  213. package/dist/locale/ta.min.mjs +1 -1
  214. package/dist/locale/ta.mjs +1 -1
  215. package/dist/locale/th.js +1 -1
  216. package/dist/locale/th.min.js +1 -1
  217. package/dist/locale/th.min.mjs +1 -1
  218. package/dist/locale/th.mjs +1 -1
  219. package/dist/locale/tk.js +1 -1
  220. package/dist/locale/tk.min.js +1 -1
  221. package/dist/locale/tk.min.mjs +1 -1
  222. package/dist/locale/tk.mjs +1 -1
  223. package/dist/locale/tr.js +1 -1
  224. package/dist/locale/tr.min.js +1 -1
  225. package/dist/locale/tr.min.mjs +1 -1
  226. package/dist/locale/tr.mjs +1 -1
  227. package/dist/locale/ug-cn.js +1 -1
  228. package/dist/locale/ug-cn.min.js +1 -1
  229. package/dist/locale/ug-cn.min.mjs +1 -1
  230. package/dist/locale/ug-cn.mjs +1 -1
  231. package/dist/locale/uk.js +1 -1
  232. package/dist/locale/uk.min.js +1 -1
  233. package/dist/locale/uk.min.mjs +1 -1
  234. package/dist/locale/uk.mjs +1 -1
  235. package/dist/locale/uz-uz.js +1 -1
  236. package/dist/locale/uz-uz.min.js +1 -1
  237. package/dist/locale/uz-uz.min.mjs +1 -1
  238. package/dist/locale/uz-uz.mjs +1 -1
  239. package/dist/locale/vi.js +1 -1
  240. package/dist/locale/vi.min.js +1 -1
  241. package/dist/locale/vi.min.mjs +1 -1
  242. package/dist/locale/vi.mjs +1 -1
  243. package/dist/locale/zh-cn.js +1 -1
  244. package/dist/locale/zh-cn.min.js +1 -1
  245. package/dist/locale/zh-cn.min.mjs +1 -1
  246. package/dist/locale/zh-cn.mjs +1 -1
  247. package/dist/locale/zh-tw.js +1 -1
  248. package/dist/locale/zh-tw.min.js +1 -1
  249. package/dist/locale/zh-tw.min.mjs +1 -1
  250. package/dist/locale/zh-tw.mjs +1 -1
  251. package/es/components/affix/index.mjs +2 -2
  252. package/es/components/affix/src/affix.mjs +25 -118
  253. package/es/components/affix/src/affix.mjs.map +1 -1
  254. package/es/components/affix/src/affix2.mjs +118 -25
  255. package/es/components/affix/src/affix2.mjs.map +1 -1
  256. package/es/components/alert/index.mjs +2 -2
  257. package/es/components/alert/src/alert.mjs +36 -89
  258. package/es/components/alert/src/alert.mjs.map +1 -1
  259. package/es/components/alert/src/alert2.mjs +89 -36
  260. package/es/components/alert/src/alert2.mjs.map +1 -1
  261. package/es/components/anchor/index.mjs +1 -1
  262. package/es/components/anchor/src/anchor-link.mjs +5 -81
  263. package/es/components/anchor/src/anchor-link.mjs.map +1 -1
  264. package/es/components/anchor/src/anchor-link2.mjs +81 -5
  265. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  266. package/es/components/anchor/src/anchor.d.ts +1 -1
  267. package/es/components/anchor/src/anchor.mjs +1 -1
  268. package/es/components/anchor/src/anchor.mjs.map +1 -1
  269. package/es/components/anchor/src/anchor.vue.d.ts +3 -3
  270. package/es/components/anchor/src/anchor2.mjs +1 -1
  271. package/es/components/anchor/src/anchor2.mjs.map +1 -1
  272. package/es/components/autocomplete/src/autocomplete.vue.d.ts +12 -6775
  273. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  274. package/es/components/badge/index.mjs +2 -2
  275. package/es/components/badge/src/badge.mjs +32 -71
  276. package/es/components/badge/src/badge.mjs.map +1 -1
  277. package/es/components/badge/src/badge2.mjs +71 -32
  278. package/es/components/badge/src/badge2.mjs.map +1 -1
  279. package/es/components/button/index.mjs +3 -3
  280. package/es/components/button/src/button-group.mjs +29 -6
  281. package/es/components/button/src/button-group.mjs.map +1 -1
  282. package/es/components/button/src/button-group2.mjs +6 -29
  283. package/es/components/button/src/button-group2.mjs.map +1 -1
  284. package/es/components/button/src/button.mjs +77 -56
  285. package/es/components/button/src/button.mjs.map +1 -1
  286. package/es/components/button/src/button2.mjs +56 -77
  287. package/es/components/button/src/button2.mjs.map +1 -1
  288. package/es/components/calendar/index.mjs +2 -2
  289. package/es/components/calendar/src/calendar.mjs +134 -16
  290. package/es/components/calendar/src/calendar.mjs.map +1 -1
  291. package/es/components/calendar/src/calendar2.mjs +16 -134
  292. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  293. package/es/components/calendar/src/date-table.mjs +31 -89
  294. package/es/components/calendar/src/date-table.mjs.map +1 -1
  295. package/es/components/calendar/src/date-table2.mjs +89 -31
  296. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  297. package/es/components/calendar/src/use-date-table.mjs +1 -1
  298. package/es/components/carousel/index.mjs +2 -2
  299. package/es/components/carousel/src/carousel.mjs +204 -61
  300. package/es/components/carousel/src/carousel.mjs.map +1 -1
  301. package/es/components/carousel/src/carousel2.mjs +61 -204
  302. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  303. package/es/components/col/index.mjs +2 -2
  304. package/es/components/col/src/col.mjs +43 -64
  305. package/es/components/col/src/col.mjs.map +1 -1
  306. package/es/components/col/src/col2.mjs +64 -43
  307. package/es/components/col/src/col2.mjs.map +1 -1
  308. package/es/components/collection/index.mjs +1 -1
  309. package/es/components/collection/src/collection.mjs +10 -62
  310. package/es/components/collection/src/collection.mjs.map +1 -1
  311. package/es/components/collection/src/collection2.mjs +62 -10
  312. package/es/components/collection/src/collection2.mjs.map +1 -1
  313. package/es/components/descriptions/index.mjs +2 -2
  314. package/es/components/descriptions/src/description.mjs +26 -126
  315. package/es/components/descriptions/src/description.mjs.map +1 -1
  316. package/es/components/descriptions/src/description2.mjs +126 -26
  317. package/es/components/descriptions/src/description2.mjs.map +1 -1
  318. package/es/components/divider/index.mjs +2 -2
  319. package/es/components/divider/src/divider.mjs +16 -34
  320. package/es/components/divider/src/divider.mjs.map +1 -1
  321. package/es/components/divider/src/divider2.mjs +34 -16
  322. package/es/components/divider/src/divider2.mjs.map +1 -1
  323. package/es/components/drawer/index.mjs +2 -2
  324. package/es/components/drawer/src/drawer.mjs +26 -178
  325. package/es/components/drawer/src/drawer.mjs.map +1 -1
  326. package/es/components/drawer/src/drawer2.mjs +178 -26
  327. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  328. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  329. package/es/components/dropdown/src/dropdown.mjs +2 -2
  330. package/es/components/dropdown/src/dropdown.vue.d.ts +6 -5270
  331. package/es/components/empty/index.mjs +2 -2
  332. package/es/components/empty/src/empty.mjs +52 -11
  333. package/es/components/empty/src/empty.mjs.map +1 -1
  334. package/es/components/empty/src/empty2.mjs +11 -52
  335. package/es/components/empty/src/empty2.mjs.map +1 -1
  336. package/es/components/index.mjs +24 -24
  337. package/es/components/mention/src/mention-dropdown.mjs +166 -15
  338. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  339. package/es/components/mention/src/mention-dropdown2.mjs +15 -166
  340. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  341. package/es/components/mention/src/mention.vue.d.ts +6 -6758
  342. package/es/components/mention/src/mention2.mjs +1 -1
  343. package/es/components/mention/src/mention2.mjs.map +1 -1
  344. package/es/components/notification/index.mjs +1 -1
  345. package/es/components/notification/src/notification.mjs +142 -68
  346. package/es/components/notification/src/notification.mjs.map +1 -1
  347. package/es/components/notification/src/notification2.mjs +68 -142
  348. package/es/components/notification/src/notification2.mjs.map +1 -1
  349. package/es/components/notification/src/notify.mjs +2 -2
  350. package/es/components/pagination/src/components/next.mjs +18 -35
  351. package/es/components/pagination/src/components/next.mjs.map +1 -1
  352. package/es/components/pagination/src/components/next2.mjs +35 -18
  353. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  354. package/es/components/pagination/src/components/prev.mjs +17 -35
  355. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  356. package/es/components/pagination/src/components/prev2.mjs +35 -17
  357. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  358. package/es/components/pagination/src/components/total.mjs +26 -6
  359. package/es/components/pagination/src/components/total.mjs.map +1 -1
  360. package/es/components/pagination/src/components/total2.mjs +6 -26
  361. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  362. package/es/components/pagination/src/pagination.mjs +3 -3
  363. package/es/components/popconfirm/index.mjs +2 -2
  364. package/es/components/popconfirm/src/popconfirm.mjs +45 -114
  365. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  366. package/es/components/popconfirm/src/popconfirm2.mjs +114 -45
  367. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  368. package/es/components/popover/src/popover.mjs +1 -1
  369. package/es/components/popper/index.mjs +4 -4
  370. package/es/components/popper/src/arrow.mjs +36 -7
  371. package/es/components/popper/src/arrow.mjs.map +1 -1
  372. package/es/components/popper/src/arrow2.mjs +7 -36
  373. package/es/components/popper/src/arrow2.mjs.map +1 -1
  374. package/es/components/popper/src/trigger.mjs +31 -127
  375. package/es/components/popper/src/trigger.mjs.map +1 -1
  376. package/es/components/popper/src/trigger2.mjs +127 -31
  377. package/es/components/popper/src/trigger2.mjs.map +1 -1
  378. package/es/components/rate/index.mjs +2 -2
  379. package/es/components/rate/src/rate.mjs +258 -83
  380. package/es/components/rate/src/rate.mjs.map +1 -1
  381. package/es/components/rate/src/rate2.mjs +83 -258
  382. package/es/components/rate/src/rate2.mjs.map +1 -1
  383. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  384. package/es/components/scrollbar/index.mjs +2 -2
  385. package/es/components/scrollbar/src/bar.mjs +10 -64
  386. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  387. package/es/components/scrollbar/src/bar2.mjs +64 -10
  388. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  389. package/es/components/scrollbar/src/scrollbar.mjs +55 -170
  390. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  391. package/es/components/scrollbar/src/scrollbar2.mjs +170 -55
  392. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  393. package/es/components/segmented/index.mjs +2 -2
  394. package/es/components/segmented/src/segmented.mjs +33 -167
  395. package/es/components/segmented/src/segmented.mjs.map +1 -1
  396. package/es/components/segmented/src/segmented2.mjs +167 -33
  397. package/es/components/segmented/src/segmented2.mjs.map +1 -1
  398. package/es/components/select/index.mjs +1 -1
  399. package/es/components/select/src/select.mjs +113 -419
  400. package/es/components/select/src/select.mjs.map +1 -1
  401. package/es/components/select/src/select2.mjs +419 -113
  402. package/es/components/select/src/select2.mjs.map +1 -1
  403. package/es/components/slider/index.mjs +2 -2
  404. package/es/components/slider/src/slider.mjs +238 -88
  405. package/es/components/slider/src/slider.mjs.map +1 -1
  406. package/es/components/slider/src/slider2.mjs +88 -238
  407. package/es/components/slider/src/slider2.mjs.map +1 -1
  408. package/es/components/table/src/filter-panel.vue.d.ts +6 -5270
  409. package/es/components/text/index.mjs +2 -2
  410. package/es/components/text/src/text.mjs +21 -36
  411. package/es/components/text/src/text.mjs.map +1 -1
  412. package/es/components/text/src/text2.mjs +36 -21
  413. package/es/components/text/src/text2.mjs.map +1 -1
  414. package/es/components/tooltip/index.mjs +1 -1
  415. package/es/components/tooltip/src/tooltip.mjs +2 -2
  416. package/es/components/tooltip/src/tooltip.vue.d.ts +6 -2656
  417. package/es/components/tooltip/src/tooltip2.mjs +2 -2
  418. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  419. package/es/components/tooltip/src/trigger.mjs +14 -72
  420. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  421. package/es/components/tooltip/src/trigger2.mjs +72 -14
  422. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  423. package/es/components/tooltip-v2/index.mjs +2 -2
  424. package/es/components/tooltip-v2/src/arrow.mjs +21 -37
  425. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  426. package/es/components/tooltip-v2/src/arrow2.mjs +37 -21
  427. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  428. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  429. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  430. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  431. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  432. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  433. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  434. package/es/components/transfer/src/transfer.vue.d.ts +4 -277
  435. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  436. package/es/components/upload/index.mjs +1 -1
  437. package/es/components/upload/src/upload-list.mjs +28 -173
  438. package/es/components/upload/src/upload-list.mjs.map +1 -1
  439. package/es/components/upload/src/upload-list2.mjs +173 -28
  440. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  441. package/es/components/upload/src/upload2.mjs +1 -1
  442. package/es/index.mjs +24 -24
  443. package/es/version.d.ts +1 -1
  444. package/es/version.mjs +1 -1
  445. package/es/version.mjs.map +1 -1
  446. package/lib/components/affix/index.js +2 -2
  447. package/lib/components/affix/src/affix.js +26 -118
  448. package/lib/components/affix/src/affix.js.map +1 -1
  449. package/lib/components/affix/src/affix2.js +118 -26
  450. package/lib/components/affix/src/affix2.js.map +1 -1
  451. package/lib/components/alert/index.js +2 -2
  452. package/lib/components/alert/src/alert.js +37 -88
  453. package/lib/components/alert/src/alert.js.map +1 -1
  454. package/lib/components/alert/src/alert2.js +88 -37
  455. package/lib/components/alert/src/alert2.js.map +1 -1
  456. package/lib/components/anchor/index.js +1 -1
  457. package/lib/components/anchor/src/anchor-link.js +5 -81
  458. package/lib/components/anchor/src/anchor-link.js.map +1 -1
  459. package/lib/components/anchor/src/anchor-link2.js +81 -5
  460. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  461. package/lib/components/anchor/src/anchor.d.ts +1 -1
  462. package/lib/components/anchor/src/anchor.js +1 -1
  463. package/lib/components/anchor/src/anchor.js.map +1 -1
  464. package/lib/components/anchor/src/anchor.vue.d.ts +3 -3
  465. package/lib/components/anchor/src/anchor2.js +1 -1
  466. package/lib/components/anchor/src/anchor2.js.map +1 -1
  467. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +12 -6775
  468. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  469. package/lib/components/badge/index.js +2 -2
  470. package/lib/components/badge/src/badge.js +32 -71
  471. package/lib/components/badge/src/badge.js.map +1 -1
  472. package/lib/components/badge/src/badge2.js +71 -32
  473. package/lib/components/badge/src/badge2.js.map +1 -1
  474. package/lib/components/button/index.js +3 -3
  475. package/lib/components/button/src/button-group.js +29 -6
  476. package/lib/components/button/src/button-group.js.map +1 -1
  477. package/lib/components/button/src/button-group2.js +6 -29
  478. package/lib/components/button/src/button-group2.js.map +1 -1
  479. package/lib/components/button/src/button.js +77 -59
  480. package/lib/components/button/src/button.js.map +1 -1
  481. package/lib/components/button/src/button2.js +59 -77
  482. package/lib/components/button/src/button2.js.map +1 -1
  483. package/lib/components/calendar/index.js +2 -2
  484. package/lib/components/calendar/src/calendar.js +134 -17
  485. package/lib/components/calendar/src/calendar.js.map +1 -1
  486. package/lib/components/calendar/src/calendar2.js +17 -134
  487. package/lib/components/calendar/src/calendar2.js.map +1 -1
  488. package/lib/components/calendar/src/date-table.js +35 -89
  489. package/lib/components/calendar/src/date-table.js.map +1 -1
  490. package/lib/components/calendar/src/date-table2.js +89 -35
  491. package/lib/components/calendar/src/date-table2.js.map +1 -1
  492. package/lib/components/calendar/src/use-date-table.js +1 -1
  493. package/lib/components/carousel/index.js +2 -2
  494. package/lib/components/carousel/src/carousel.js +204 -62
  495. package/lib/components/carousel/src/carousel.js.map +1 -1
  496. package/lib/components/carousel/src/carousel2.js +62 -204
  497. package/lib/components/carousel/src/carousel2.js.map +1 -1
  498. package/lib/components/col/index.js +2 -2
  499. package/lib/components/col/src/col.js +43 -64
  500. package/lib/components/col/src/col.js.map +1 -1
  501. package/lib/components/col/src/col2.js +64 -43
  502. package/lib/components/col/src/col2.js.map +1 -1
  503. package/lib/components/collection/index.js +1 -1
  504. package/lib/components/collection/src/collection.js +9 -62
  505. package/lib/components/collection/src/collection.js.map +1 -1
  506. package/lib/components/collection/src/collection2.js +62 -9
  507. package/lib/components/collection/src/collection2.js.map +1 -1
  508. package/lib/components/descriptions/index.js +2 -2
  509. package/lib/components/descriptions/src/description.js +26 -126
  510. package/lib/components/descriptions/src/description.js.map +1 -1
  511. package/lib/components/descriptions/src/description2.js +126 -26
  512. package/lib/components/descriptions/src/description2.js.map +1 -1
  513. package/lib/components/divider/index.js +2 -2
  514. package/lib/components/divider/src/divider.js +16 -34
  515. package/lib/components/divider/src/divider.js.map +1 -1
  516. package/lib/components/divider/src/divider2.js +34 -16
  517. package/lib/components/divider/src/divider2.js.map +1 -1
  518. package/lib/components/drawer/index.js +2 -2
  519. package/lib/components/drawer/src/drawer.js +27 -178
  520. package/lib/components/drawer/src/drawer.js.map +1 -1
  521. package/lib/components/drawer/src/drawer2.js +178 -27
  522. package/lib/components/drawer/src/drawer2.js.map +1 -1
  523. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  524. package/lib/components/dropdown/src/dropdown.js +2 -2
  525. package/lib/components/dropdown/src/dropdown.vue.d.ts +6 -5270
  526. package/lib/components/empty/index.js +2 -2
  527. package/lib/components/empty/src/empty.js +52 -11
  528. package/lib/components/empty/src/empty.js.map +1 -1
  529. package/lib/components/empty/src/empty2.js +11 -52
  530. package/lib/components/empty/src/empty2.js.map +1 -1
  531. package/lib/components/index.js +24 -24
  532. package/lib/components/mention/src/mention-dropdown.js +166 -16
  533. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  534. package/lib/components/mention/src/mention-dropdown2.js +16 -166
  535. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  536. package/lib/components/mention/src/mention.vue.d.ts +6 -6758
  537. package/lib/components/mention/src/mention2.js +1 -1
  538. package/lib/components/mention/src/mention2.js.map +1 -1
  539. package/lib/components/notification/index.js +1 -1
  540. package/lib/components/notification/src/notification.js +141 -69
  541. package/lib/components/notification/src/notification.js.map +1 -1
  542. package/lib/components/notification/src/notification2.js +69 -141
  543. package/lib/components/notification/src/notification2.js.map +1 -1
  544. package/lib/components/notification/src/notify.js +2 -2
  545. package/lib/components/pagination/src/components/next.js +18 -35
  546. package/lib/components/pagination/src/components/next.js.map +1 -1
  547. package/lib/components/pagination/src/components/next2.js +35 -18
  548. package/lib/components/pagination/src/components/next2.js.map +1 -1
  549. package/lib/components/pagination/src/components/prev.js +18 -35
  550. package/lib/components/pagination/src/components/prev.js.map +1 -1
  551. package/lib/components/pagination/src/components/prev2.js +35 -18
  552. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  553. package/lib/components/pagination/src/components/total.js +26 -6
  554. package/lib/components/pagination/src/components/total.js.map +1 -1
  555. package/lib/components/pagination/src/components/total2.js +6 -26
  556. package/lib/components/pagination/src/components/total2.js.map +1 -1
  557. package/lib/components/pagination/src/pagination.js +3 -3
  558. package/lib/components/popconfirm/index.js +2 -2
  559. package/lib/components/popconfirm/src/popconfirm.js +46 -114
  560. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  561. package/lib/components/popconfirm/src/popconfirm2.js +114 -46
  562. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  563. package/lib/components/popover/src/popover.js +1 -1
  564. package/lib/components/popper/index.js +4 -4
  565. package/lib/components/popper/src/arrow.js +36 -8
  566. package/lib/components/popper/src/arrow.js.map +1 -1
  567. package/lib/components/popper/src/arrow2.js +8 -36
  568. package/lib/components/popper/src/arrow2.js.map +1 -1
  569. package/lib/components/popper/src/trigger.js +32 -127
  570. package/lib/components/popper/src/trigger.js.map +1 -1
  571. package/lib/components/popper/src/trigger2.js +127 -32
  572. package/lib/components/popper/src/trigger2.js.map +1 -1
  573. package/lib/components/rate/index.js +2 -2
  574. package/lib/components/rate/src/rate.js +257 -83
  575. package/lib/components/rate/src/rate.js.map +1 -1
  576. package/lib/components/rate/src/rate2.js +83 -257
  577. package/lib/components/rate/src/rate2.js.map +1 -1
  578. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  579. package/lib/components/scrollbar/index.js +2 -2
  580. package/lib/components/scrollbar/src/bar.js +10 -64
  581. package/lib/components/scrollbar/src/bar.js.map +1 -1
  582. package/lib/components/scrollbar/src/bar2.js +64 -10
  583. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  584. package/lib/components/scrollbar/src/scrollbar.js +56 -170
  585. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  586. package/lib/components/scrollbar/src/scrollbar2.js +170 -56
  587. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  588. package/lib/components/segmented/index.js +2 -2
  589. package/lib/components/segmented/src/segmented.js +34 -167
  590. package/lib/components/segmented/src/segmented.js.map +1 -1
  591. package/lib/components/segmented/src/segmented2.js +167 -34
  592. package/lib/components/segmented/src/segmented2.js.map +1 -1
  593. package/lib/components/select/index.js +1 -1
  594. package/lib/components/select/src/select.js +113 -419
  595. package/lib/components/select/src/select.js.map +1 -1
  596. package/lib/components/select/src/select2.js +419 -113
  597. package/lib/components/select/src/select2.js.map +1 -1
  598. package/lib/components/slider/index.js +2 -2
  599. package/lib/components/slider/src/slider.js +238 -89
  600. package/lib/components/slider/src/slider.js.map +1 -1
  601. package/lib/components/slider/src/slider2.js +89 -238
  602. package/lib/components/slider/src/slider2.js.map +1 -1
  603. package/lib/components/table/src/filter-panel.vue.d.ts +6 -5270
  604. package/lib/components/text/index.js +2 -2
  605. package/lib/components/text/src/text.js +21 -36
  606. package/lib/components/text/src/text.js.map +1 -1
  607. package/lib/components/text/src/text2.js +36 -21
  608. package/lib/components/text/src/text2.js.map +1 -1
  609. package/lib/components/tooltip/index.js +1 -1
  610. package/lib/components/tooltip/src/tooltip.js +2 -2
  611. package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -2656
  612. package/lib/components/tooltip/src/tooltip2.js +2 -2
  613. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  614. package/lib/components/tooltip/src/trigger.js +14 -72
  615. package/lib/components/tooltip/src/trigger.js.map +1 -1
  616. package/lib/components/tooltip/src/trigger2.js +72 -14
  617. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  618. package/lib/components/tooltip-v2/index.js +2 -2
  619. package/lib/components/tooltip-v2/src/arrow.js +22 -37
  620. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  621. package/lib/components/tooltip-v2/src/arrow2.js +37 -22
  622. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  623. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  624. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  625. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  626. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  627. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  628. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  629. package/lib/components/transfer/src/transfer.vue.d.ts +4 -277
  630. package/lib/components/transfer/src/transfer2.js.map +1 -1
  631. package/lib/components/upload/index.js +1 -1
  632. package/lib/components/upload/src/upload-list.js +29 -173
  633. package/lib/components/upload/src/upload-list.js.map +1 -1
  634. package/lib/components/upload/src/upload-list2.js +173 -29
  635. package/lib/components/upload/src/upload-list2.js.map +1 -1
  636. package/lib/components/upload/src/upload2.js +1 -1
  637. package/lib/index.js +24 -24
  638. package/lib/version.d.ts +1 -1
  639. package/lib/version.js +1 -1
  640. package/lib/version.js.map +1 -1
  641. package/package.json +2 -2
  642. package/web-types.json +1 -1
@@ -2,427 +2,121 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$2 = require('../../tooltip/index.js');
7
- var index$1 = require('../../scrollbar/index.js');
8
- var index = require('../../tag/index.js');
9
- var index$3 = require('../../icon/index.js');
10
- var option = require('./option.js');
11
- var selectDropdown = require('./select-dropdown.js');
12
- var useSelect = require('./useSelect.js');
13
- var token = require('./token.js');
14
- var options = require('./options.js');
15
- var select = require('./select2.js');
16
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
17
- var index$4 = require('../../../directives/click-outside/index.js');
18
- var event = require('../../../constants/event.js');
19
- var shared = require('@vue/shared');
5
+ var core = require('@popperjs/core');
6
+ var iconsVue = require('@element-plus/icons-vue');
7
+ var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var index = require('../../../hooks/use-size/index.js');
9
+ var content = require('../../tooltip/src/content.js');
10
+ var icon = require('../../../utils/vue/icon.js');
11
+ var tag = require('../../tag/src/tag.js');
12
+ var index$1 = require('../../../hooks/use-empty-values/index.js');
13
+ var index$2 = require('../../../hooks/use-aria/index.js');
20
14
 
21
- const COMPONENT_NAME = "ElSelect";
22
- const _sfc_main = vue.defineComponent({
23
- name: COMPONENT_NAME,
24
- componentName: COMPONENT_NAME,
25
- components: {
26
- ElSelectMenu: selectDropdown["default"],
27
- ElOption: option["default"],
28
- ElOptions: options["default"],
29
- ElTag: index.ElTag,
30
- ElScrollbar: index$1.ElScrollbar,
31
- ElTooltip: index$2.ElTooltip,
32
- ElIcon: index$3.ElIcon
15
+ const SelectProps = runtime.buildProps({
16
+ name: String,
17
+ id: String,
18
+ modelValue: {
19
+ type: [Array, String, Number, Boolean, Object],
20
+ default: void 0
33
21
  },
34
- directives: { ClickOutside: index$4["default"] },
35
- props: select.SelectProps,
36
- emits: [
37
- event.UPDATE_MODEL_EVENT,
38
- event.CHANGE_EVENT,
39
- "remove-tag",
40
- "clear",
41
- "visible-change",
42
- "focus",
43
- "blur"
44
- ],
45
- setup(props, { emit }) {
46
- const modelValue = vue.computed(() => {
47
- const { modelValue: rawModelValue, multiple } = props;
48
- const fallback = multiple ? [] : void 0;
49
- if (shared.isArray(rawModelValue)) {
50
- return multiple ? rawModelValue : fallback;
51
- }
52
- return multiple ? fallback : rawModelValue;
53
- });
54
- const _props = vue.reactive({
55
- ...vue.toRefs(props),
56
- modelValue
57
- });
58
- const API = useSelect.useSelect(_props, emit);
59
- vue.provide(token.selectKey, vue.reactive({
60
- props: _props,
61
- states: API.states,
62
- optionsArray: API.optionsArray,
63
- handleOptionSelect: API.handleOptionSelect,
64
- onOptionCreate: API.onOptionCreate,
65
- onOptionDestroy: API.onOptionDestroy,
66
- selectRef: API.selectRef,
67
- setSelected: API.setSelected
68
- }));
69
- const selectedLabel = vue.computed(() => {
70
- if (!props.multiple) {
71
- return API.states.selectedLabel;
72
- }
73
- return API.states.selected.map((i) => i.currentLabel);
74
- });
75
- return {
76
- ...API,
77
- modelValue,
78
- selectedLabel
79
- };
80
- }
22
+ autocomplete: {
23
+ type: String,
24
+ default: "off"
25
+ },
26
+ automaticDropdown: Boolean,
27
+ size: index.useSizeProp,
28
+ effect: {
29
+ type: runtime.definePropType(String),
30
+ default: "light"
31
+ },
32
+ disabled: Boolean,
33
+ clearable: Boolean,
34
+ filterable: Boolean,
35
+ allowCreate: Boolean,
36
+ loading: Boolean,
37
+ popperClass: {
38
+ type: String,
39
+ default: ""
40
+ },
41
+ popperOptions: {
42
+ type: runtime.definePropType(Object),
43
+ default: () => ({})
44
+ },
45
+ remote: Boolean,
46
+ loadingText: String,
47
+ noMatchText: String,
48
+ noDataText: String,
49
+ remoteMethod: Function,
50
+ filterMethod: Function,
51
+ multiple: Boolean,
52
+ multipleLimit: {
53
+ type: Number,
54
+ default: 0
55
+ },
56
+ placeholder: {
57
+ type: String
58
+ },
59
+ defaultFirstOption: Boolean,
60
+ reserveKeyword: {
61
+ type: Boolean,
62
+ default: true
63
+ },
64
+ valueKey: {
65
+ type: String,
66
+ default: "value"
67
+ },
68
+ collapseTags: Boolean,
69
+ collapseTagsTooltip: Boolean,
70
+ maxCollapseTags: {
71
+ type: Number,
72
+ default: 1
73
+ },
74
+ teleported: content.useTooltipContentProps.teleported,
75
+ persistent: {
76
+ type: Boolean,
77
+ default: true
78
+ },
79
+ clearIcon: {
80
+ type: icon.iconPropType,
81
+ default: iconsVue.CircleClose
82
+ },
83
+ fitInputWidth: Boolean,
84
+ suffixIcon: {
85
+ type: icon.iconPropType,
86
+ default: iconsVue.ArrowDown
87
+ },
88
+ tagType: { ...tag.tagProps.type, default: "info" },
89
+ tagEffect: { ...tag.tagProps.effect, default: "light" },
90
+ validateEvent: {
91
+ type: Boolean,
92
+ default: true
93
+ },
94
+ remoteShowSuffix: Boolean,
95
+ showArrow: {
96
+ type: Boolean,
97
+ default: true
98
+ },
99
+ offset: {
100
+ type: Number,
101
+ default: 12
102
+ },
103
+ placement: {
104
+ type: runtime.definePropType(String),
105
+ values: core.placements,
106
+ default: "bottom-start"
107
+ },
108
+ fallbackPlacements: {
109
+ type: runtime.definePropType(Array),
110
+ default: ["bottom-start", "top-start", "right", "left"]
111
+ },
112
+ tabindex: {
113
+ type: [String, Number],
114
+ default: 0
115
+ },
116
+ appendTo: String,
117
+ ...index$1.useEmptyValuesProps,
118
+ ...index$2.useAriaProps(["ariaLabel"])
81
119
  });
82
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
83
- const _component_el_tag = vue.resolveComponent("el-tag");
84
- const _component_el_tooltip = vue.resolveComponent("el-tooltip");
85
- const _component_el_icon = vue.resolveComponent("el-icon");
86
- const _component_el_option = vue.resolveComponent("el-option");
87
- const _component_el_options = vue.resolveComponent("el-options");
88
- const _component_el_scrollbar = vue.resolveComponent("el-scrollbar");
89
- const _component_el_select_menu = vue.resolveComponent("el-select-menu");
90
- const _directive_click_outside = vue.resolveDirective("click-outside");
91
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
92
- ref: "selectRef",
93
- class: vue.normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
94
- [vue.toHandlerKey(_ctx.mouseEnterEventName)]: ($event) => _ctx.states.inputHovering = true,
95
- onMouseleave: ($event) => _ctx.states.inputHovering = false
96
- }, [
97
- vue.createVNode(_component_el_tooltip, {
98
- ref: "tooltipRef",
99
- visible: _ctx.dropdownMenuVisible,
100
- placement: _ctx.placement,
101
- teleported: _ctx.teleported,
102
- "popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
103
- "popper-options": _ctx.popperOptions,
104
- "fallback-placements": _ctx.fallbackPlacements,
105
- effect: _ctx.effect,
106
- pure: "",
107
- trigger: "click",
108
- transition: `${_ctx.nsSelect.namespace.value}-zoom-in-top`,
109
- "stop-popper-mouse-event": false,
110
- "gpu-acceleration": false,
111
- persistent: _ctx.persistent,
112
- "append-to": _ctx.appendTo,
113
- "show-arrow": _ctx.showArrow,
114
- offset: _ctx.offset,
115
- onBeforeShow: _ctx.handleMenuEnter,
116
- onHide: ($event) => _ctx.states.isBeforeHide = false
117
- }, {
118
- default: vue.withCtx(() => {
119
- var _a;
120
- return [
121
- vue.createElementVNode("div", {
122
- ref: "wrapperRef",
123
- class: vue.normalizeClass([
124
- _ctx.nsSelect.e("wrapper"),
125
- _ctx.nsSelect.is("focused", _ctx.isFocused),
126
- _ctx.nsSelect.is("hovering", _ctx.states.inputHovering),
127
- _ctx.nsSelect.is("filterable", _ctx.filterable),
128
- _ctx.nsSelect.is("disabled", _ctx.selectDisabled)
129
- ]),
130
- onClick: vue.withModifiers(_ctx.toggleMenu, ["prevent"])
131
- }, [
132
- _ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", {
133
- key: 0,
134
- ref: "prefixRef",
135
- class: vue.normalizeClass(_ctx.nsSelect.e("prefix"))
136
- }, [
137
- vue.renderSlot(_ctx.$slots, "prefix")
138
- ], 2)) : vue.createCommentVNode("v-if", true),
139
- vue.createElementVNode("div", {
140
- ref: "selectionRef",
141
- class: vue.normalizeClass([
142
- _ctx.nsSelect.e("selection"),
143
- _ctx.nsSelect.is("near", _ctx.multiple && !_ctx.$slots.prefix && !!_ctx.states.selected.length)
144
- ])
145
- }, [
146
- _ctx.multiple ? vue.renderSlot(_ctx.$slots, "tag", { key: 0 }, () => [
147
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.showTagList, (item) => {
148
- return vue.openBlock(), vue.createElementBlock("div", {
149
- key: _ctx.getValueKey(item),
150
- class: vue.normalizeClass(_ctx.nsSelect.e("selected-item"))
151
- }, [
152
- vue.createVNode(_component_el_tag, {
153
- closable: !_ctx.selectDisabled && !item.isDisabled,
154
- size: _ctx.collapseTagSize,
155
- type: _ctx.tagType,
156
- effect: _ctx.tagEffect,
157
- "disable-transitions": "",
158
- style: vue.normalizeStyle(_ctx.tagStyle),
159
- onClose: ($event) => _ctx.deleteTag($event, item)
160
- }, {
161
- default: vue.withCtx(() => [
162
- vue.createElementVNode("span", {
163
- class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
164
- }, [
165
- vue.renderSlot(_ctx.$slots, "label", {
166
- label: item.currentLabel,
167
- value: item.value
168
- }, () => [
169
- vue.createTextVNode(vue.toDisplayString(item.currentLabel), 1)
170
- ])
171
- ], 2)
172
- ]),
173
- _: 2
174
- }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
175
- ], 2);
176
- }), 128)),
177
- _ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
178
- key: 0,
179
- ref: "tagTooltipRef",
180
- disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
181
- "fallback-placements": ["bottom", "top", "right", "left"],
182
- effect: _ctx.effect,
183
- placement: "bottom",
184
- teleported: _ctx.teleported
185
- }, {
186
- default: vue.withCtx(() => [
187
- vue.createElementVNode("div", {
188
- ref: "collapseItemRef",
189
- class: vue.normalizeClass(_ctx.nsSelect.e("selected-item"))
190
- }, [
191
- vue.createVNode(_component_el_tag, {
192
- closable: false,
193
- size: _ctx.collapseTagSize,
194
- type: _ctx.tagType,
195
- effect: _ctx.tagEffect,
196
- "disable-transitions": "",
197
- style: vue.normalizeStyle(_ctx.collapseTagStyle)
198
- }, {
199
- default: vue.withCtx(() => [
200
- vue.createElementVNode("span", {
201
- class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
202
- }, " + " + vue.toDisplayString(_ctx.states.selected.length - _ctx.maxCollapseTags), 3)
203
- ]),
204
- _: 1
205
- }, 8, ["size", "type", "effect", "style"])
206
- ], 2)
207
- ]),
208
- content: vue.withCtx(() => [
209
- vue.createElementVNode("div", {
210
- ref: "tagMenuRef",
211
- class: vue.normalizeClass(_ctx.nsSelect.e("selection"))
212
- }, [
213
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.collapseTagList, (item) => {
214
- return vue.openBlock(), vue.createElementBlock("div", {
215
- key: _ctx.getValueKey(item),
216
- class: vue.normalizeClass(_ctx.nsSelect.e("selected-item"))
217
- }, [
218
- vue.createVNode(_component_el_tag, {
219
- class: "in-tooltip",
220
- closable: !_ctx.selectDisabled && !item.isDisabled,
221
- size: _ctx.collapseTagSize,
222
- type: _ctx.tagType,
223
- effect: _ctx.tagEffect,
224
- "disable-transitions": "",
225
- onClose: ($event) => _ctx.deleteTag($event, item)
226
- }, {
227
- default: vue.withCtx(() => [
228
- vue.createElementVNode("span", {
229
- class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
230
- }, [
231
- vue.renderSlot(_ctx.$slots, "label", {
232
- label: item.currentLabel,
233
- value: item.value
234
- }, () => [
235
- vue.createTextVNode(vue.toDisplayString(item.currentLabel), 1)
236
- ])
237
- ], 2)
238
- ]),
239
- _: 2
240
- }, 1032, ["closable", "size", "type", "effect", "onClose"])
241
- ], 2);
242
- }), 128))
243
- ], 2)
244
- ]),
245
- _: 3
246
- }, 8, ["disabled", "effect", "teleported"])) : vue.createCommentVNode("v-if", true)
247
- ]) : vue.createCommentVNode("v-if", true),
248
- vue.createElementVNode("div", {
249
- class: vue.normalizeClass([
250
- _ctx.nsSelect.e("selected-item"),
251
- _ctx.nsSelect.e("input-wrapper"),
252
- _ctx.nsSelect.is("hidden", !_ctx.filterable)
253
- ])
254
- }, [
255
- vue.withDirectives(vue.createElementVNode("input", {
256
- id: _ctx.inputId,
257
- ref: "inputRef",
258
- "onUpdate:modelValue": ($event) => _ctx.states.inputValue = $event,
259
- type: "text",
260
- name: _ctx.name,
261
- class: vue.normalizeClass([_ctx.nsSelect.e("input"), _ctx.nsSelect.is(_ctx.selectSize)]),
262
- disabled: _ctx.selectDisabled,
263
- autocomplete: _ctx.autocomplete,
264
- style: vue.normalizeStyle(_ctx.inputStyle),
265
- tabindex: _ctx.tabindex,
266
- role: "combobox",
267
- readonly: !_ctx.filterable,
268
- spellcheck: "false",
269
- "aria-activedescendant": ((_a = _ctx.hoverOption) == null ? void 0 : _a.id) || "",
270
- "aria-controls": _ctx.contentId,
271
- "aria-expanded": _ctx.dropdownMenuVisible,
272
- "aria-label": _ctx.ariaLabel,
273
- "aria-autocomplete": "none",
274
- "aria-haspopup": "listbox",
275
- onKeydown: [
276
- vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
277
- vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
278
- vue.withKeys(vue.withModifiers(_ctx.handleEsc, ["stop", "prevent"]), ["esc"]),
279
- vue.withKeys(vue.withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
280
- vue.withKeys(vue.withModifiers(_ctx.deletePrevTag, ["stop"]), ["delete"])
281
- ],
282
- onCompositionstart: _ctx.handleCompositionStart,
283
- onCompositionupdate: _ctx.handleCompositionUpdate,
284
- onCompositionend: _ctx.handleCompositionEnd,
285
- onInput: _ctx.onInput,
286
- onClick: vue.withModifiers(_ctx.toggleMenu, ["stop"])
287
- }, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
288
- [vue.vModelText, _ctx.states.inputValue]
289
- ]),
290
- _ctx.filterable ? (vue.openBlock(), vue.createElementBlock("span", {
291
- key: 0,
292
- ref: "calculatorRef",
293
- "aria-hidden": "true",
294
- class: vue.normalizeClass(_ctx.nsSelect.e("input-calculator")),
295
- textContent: vue.toDisplayString(_ctx.states.inputValue)
296
- }, null, 10, ["textContent"])) : vue.createCommentVNode("v-if", true)
297
- ], 2),
298
- _ctx.shouldShowPlaceholder ? (vue.openBlock(), vue.createElementBlock("div", {
299
- key: 1,
300
- class: vue.normalizeClass([
301
- _ctx.nsSelect.e("selected-item"),
302
- _ctx.nsSelect.e("placeholder"),
303
- _ctx.nsSelect.is("transparent", !_ctx.hasModelValue || _ctx.expanded && !_ctx.states.inputValue)
304
- ])
305
- }, [
306
- _ctx.hasModelValue ? vue.renderSlot(_ctx.$slots, "label", {
307
- key: 0,
308
- label: _ctx.currentPlaceholder,
309
- value: _ctx.modelValue
310
- }, () => [
311
- vue.createElementVNode("span", null, vue.toDisplayString(_ctx.currentPlaceholder), 1)
312
- ]) : (vue.openBlock(), vue.createElementBlock("span", { key: 1 }, vue.toDisplayString(_ctx.currentPlaceholder), 1))
313
- ], 2)) : vue.createCommentVNode("v-if", true)
314
- ], 2),
315
- vue.createElementVNode("div", {
316
- ref: "suffixRef",
317
- class: vue.normalizeClass(_ctx.nsSelect.e("suffix"))
318
- }, [
319
- _ctx.iconComponent && !_ctx.showClose ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
320
- key: 0,
321
- class: vue.normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon"), _ctx.iconReverse])
322
- }, {
323
- default: vue.withCtx(() => [
324
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
325
- ]),
326
- _: 1
327
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
328
- _ctx.showClose && _ctx.clearIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
329
- key: 1,
330
- class: vue.normalizeClass([
331
- _ctx.nsSelect.e("caret"),
332
- _ctx.nsSelect.e("icon"),
333
- _ctx.nsSelect.e("clear")
334
- ]),
335
- onClick: _ctx.handleClearClick
336
- }, {
337
- default: vue.withCtx(() => [
338
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
339
- ]),
340
- _: 1
341
- }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
342
- _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
343
- key: 2,
344
- class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("validateIcon")])
345
- }, {
346
- default: vue.withCtx(() => [
347
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.validateIcon)))
348
- ]),
349
- _: 1
350
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
351
- ], 2)
352
- ], 10, ["onClick"])
353
- ];
354
- }),
355
- content: vue.withCtx(() => [
356
- vue.createVNode(_component_el_select_menu, { ref: "menuRef" }, {
357
- default: vue.withCtx(() => [
358
- _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", {
359
- key: 0,
360
- class: vue.normalizeClass(_ctx.nsSelect.be("dropdown", "header")),
361
- onClick: vue.withModifiers(() => {
362
- }, ["stop"])
363
- }, [
364
- vue.renderSlot(_ctx.$slots, "header")
365
- ], 10, ["onClick"])) : vue.createCommentVNode("v-if", true),
366
- vue.withDirectives(vue.createVNode(_component_el_scrollbar, {
367
- id: _ctx.contentId,
368
- ref: "scrollbarRef",
369
- tag: "ul",
370
- "wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
371
- "view-class": _ctx.nsSelect.be("dropdown", "list"),
372
- class: vue.normalizeClass([_ctx.nsSelect.is("empty", _ctx.filteredOptionsCount === 0)]),
373
- role: "listbox",
374
- "aria-label": _ctx.ariaLabel,
375
- "aria-orientation": "vertical"
376
- }, {
377
- default: vue.withCtx(() => [
378
- _ctx.showNewOption ? (vue.openBlock(), vue.createBlock(_component_el_option, {
379
- key: 0,
380
- value: _ctx.states.inputValue,
381
- created: true
382
- }, null, 8, ["value"])) : vue.createCommentVNode("v-if", true),
383
- vue.createVNode(_component_el_options, null, {
384
- default: vue.withCtx(() => [
385
- vue.renderSlot(_ctx.$slots, "default")
386
- ]),
387
- _: 3
388
- })
389
- ]),
390
- _: 3
391
- }, 8, ["id", "wrap-class", "view-class", "class", "aria-label"]), [
392
- [vue.vShow, _ctx.states.options.size > 0 && !_ctx.loading]
393
- ]),
394
- _ctx.$slots.loading && _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", {
395
- key: 1,
396
- class: vue.normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
397
- }, [
398
- vue.renderSlot(_ctx.$slots, "loading")
399
- ], 2)) : _ctx.loading || _ctx.filteredOptionsCount === 0 ? (vue.openBlock(), vue.createElementBlock("div", {
400
- key: 2,
401
- class: vue.normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
402
- }, [
403
- vue.renderSlot(_ctx.$slots, "empty", {}, () => [
404
- vue.createElementVNode("span", null, vue.toDisplayString(_ctx.emptyText), 1)
405
- ])
406
- ], 2)) : vue.createCommentVNode("v-if", true),
407
- _ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
408
- key: 3,
409
- class: vue.normalizeClass(_ctx.nsSelect.be("dropdown", "footer")),
410
- onClick: vue.withModifiers(() => {
411
- }, ["stop"])
412
- }, [
413
- vue.renderSlot(_ctx.$slots, "footer")
414
- ], 10, ["onClick"])) : vue.createCommentVNode("v-if", true)
415
- ]),
416
- _: 3
417
- }, 512)
418
- ]),
419
- _: 3
420
- }, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
421
- ], 16, ["onMouseleave"])), [
422
- [_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
423
- ]);
424
- }
425
- var Select = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "select.vue"]]);
426
120
 
427
- exports["default"] = Select;
121
+ exports.SelectProps = SelectProps;
428
122
  //# sourceMappingURL=select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sources":["../../../../../../packages/components/select/src/select.vue"],"sourcesContent":["<template>\n <div\n ref=\"selectRef\"\n v-click-outside:[popperRef]=\"handleClickOutside\"\n :class=\"[nsSelect.b(), nsSelect.m(selectSize)]\"\n @[mouseEnterEventName]=\"states.inputHovering = true\"\n @mouseleave=\"states.inputHovering = false\"\n >\n <el-tooltip\n ref=\"tooltipRef\"\n :visible=\"dropdownMenuVisible\"\n :placement=\"placement\"\n :teleported=\"teleported\"\n :popper-class=\"[nsSelect.e('popper'), popperClass]\"\n :popper-options=\"popperOptions\"\n :fallback-placements=\"fallbackPlacements\"\n :effect=\"effect\"\n pure\n trigger=\"click\"\n :transition=\"`${nsSelect.namespace.value}-zoom-in-top`\"\n :stop-popper-mouse-event=\"false\"\n :gpu-acceleration=\"false\"\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 && !!states.selected.length\n ),\n ]\"\n >\n <slot v-if=\"multiple\" name=\"tag\">\n <div\n v-for=\"item in showTagList\"\n :key=\"getValueKey(item)\"\n :class=\"nsSelect.e('selected-item')\"\n >\n <el-tag\n :closable=\"!selectDisabled && !item.isDisabled\"\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=\"item.currentLabel\"\n :value=\"item.value\"\n >\n {{ item.currentLabel }}\n </slot>\n </span>\n </el-tag>\n </div>\n\n <el-tooltip\n v-if=\"collapseTags && states.selected.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 disable-transitions\n :style=\"collapseTagStyle\"\n >\n <span :class=\"nsSelect.e('tags-text')\">\n + {{ states.selected.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=\"item in collapseTagList\"\n :key=\"getValueKey(item)\"\n :class=\"nsSelect.e('selected-item')\"\n >\n <el-tag\n class=\"in-tooltip\"\n :closable=\"!selectDisabled && !item.isDisabled\"\n :size=\"collapseTagSize\"\n :type=\"tagType\"\n :effect=\"tagEffect\"\n disable-transitions\n @close=\"deleteTag($event, item)\"\n >\n <span :class=\"nsSelect.e('tags-text')\">\n <slot\n name=\"label\"\n :label=\"item.currentLabel\"\n :value=\"item.value\"\n >\n {{ item.currentLabel }}\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 type=\"text\"\n :name=\"name\"\n :class=\"[nsSelect.e('input'), nsSelect.is(selectSize)]\"\n :disabled=\"selectDisabled\"\n :autocomplete=\"autocomplete\"\n :style=\"inputStyle\"\n :tabindex=\"tabindex\"\n role=\"combobox\"\n :readonly=\"!filterable\"\n spellcheck=\"false\"\n :aria-activedescendant=\"hoverOption?.id || ''\"\n :aria-controls=\"contentId\"\n :aria-expanded=\"dropdownMenuVisible\"\n :aria-label=\"ariaLabel\"\n aria-autocomplete=\"none\"\n aria-haspopup=\"listbox\"\n @keydown.down.stop.prevent=\"navigateOptions('next')\"\n @keydown.up.stop.prevent=\"navigateOptions('prev')\"\n @keydown.esc.stop.prevent=\"handleEsc\"\n @keydown.enter.stop.prevent=\"selectOption\"\n @keydown.delete.stop=\"deletePrevTag\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"onInput\"\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 && !showClose\"\n :class=\"[nsSelect.e('caret'), nsSelect.e('icon'), iconReverse]\"\n >\n <component :is=\"iconComponent\" />\n </el-icon>\n <el-icon\n v-if=\"showClose && clearIcon\"\n :class=\"[\n nsSelect.e('caret'),\n nsSelect.e('icon'),\n nsSelect.e('clear'),\n ]\"\n @click=\"handleClearClick\"\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 ref=\"menuRef\">\n <div\n v-if=\"$slots.header\"\n :class=\"nsSelect.be('dropdown', 'header')\"\n @click.stop\n >\n <slot name=\"header\" />\n </div>\n <el-scrollbar\n v-show=\"states.options.size > 0 && !loading\"\n :id=\"contentId\"\n ref=\"scrollbarRef\"\n tag=\"ul\"\n :wrap-class=\"nsSelect.be('dropdown', 'wrap')\"\n :view-class=\"nsSelect.be('dropdown', 'list')\"\n :class=\"[nsSelect.is('empty', filteredOptionsCount === 0)]\"\n role=\"listbox\"\n :aria-label=\"ariaLabel\"\n aria-orientation=\"vertical\"\n >\n <el-option\n v-if=\"showNewOption\"\n :value=\"states.inputValue\"\n :created=\"true\"\n />\n <el-options>\n <slot />\n </el-options>\n </el-scrollbar>\n <div\n v-if=\"$slots.loading && loading\"\n :class=\"nsSelect.be('dropdown', 'loading')\"\n >\n <slot name=\"loading\" />\n </div>\n <div\n v-else-if=\"loading || filteredOptionsCount === 0\"\n :class=\"nsSelect.be('dropdown', 'empty')\"\n >\n <slot name=\"empty\">\n <span>{{ emptyText }}</span>\n </slot>\n </div>\n <div\n v-if=\"$slots.footer\"\n :class=\"nsSelect.be('dropdown', 'footer')\"\n @click.stop\n >\n <slot name=\"footer\" />\n </div>\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 { ClickOutside } from '@element-plus/directives'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport ElScrollbar from '@element-plus/components/scrollbar'\nimport ElTag from '@element-plus/components/tag'\nimport ElIcon from '@element-plus/components/icon'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { isArray } from '@element-plus/utils'\nimport ElOption from './option.vue'\nimport ElSelectMenu from './select-dropdown.vue'\nimport { useSelect } from './useSelect'\nimport { selectKey } from './token'\nimport ElOptions from './options'\n\nimport { SelectProps } from './select'\nimport type { SelectContext } from './token'\n\nconst COMPONENT_NAME = 'ElSelect'\nexport default defineComponent({\n name: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n components: {\n ElSelectMenu,\n ElOption,\n ElOptions,\n ElTag,\n ElScrollbar,\n ElTooltip,\n ElIcon,\n },\n directives: { ClickOutside },\n props: SelectProps,\n emits: [\n UPDATE_MODEL_EVENT,\n CHANGE_EVENT,\n 'remove-tag',\n 'clear',\n 'visible-change',\n 'focus',\n 'blur',\n ],\n\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\n return multiple ? fallback : rawModelValue\n })\n\n const _props = reactive({\n ...toRefs(props),\n modelValue,\n })\n\n const API = useSelect(_props, emit)\n\n provide(\n selectKey,\n reactive({\n props: _props,\n states: API.states,\n optionsArray: API.optionsArray,\n handleOptionSelect: API.handleOptionSelect,\n onOptionCreate: API.onOptionCreate,\n onOptionDestroy: API.onOptionDestroy,\n selectRef: API.selectRef,\n setSelected: API.setSelected,\n }) as unknown as SelectContext\n )\n\n const selectedLabel = computed(() => {\n if (!props.multiple) {\n return API.states.selectedLabel\n }\n return API.states.selected.map((i: any) => i.currentLabel as string)\n })\n\n return {\n ...API,\n modelValue,\n selectedLabel,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ElSelectMenu","ElOption","ElOptions","ElTag","ElScrollbar","ElTooltip","ElIcon","ClickOutside","SelectProps","UPDATE_MODEL_EVENT","CHANGE_EVENT","computed","isArray","reactive","toRefs","useSelect","provide","selectKey","_resolveComponent","_createVNode","_withCtx","_createElementVNode","_normalizeClass","_withModifiers","_openBlock","_createElementBlock","_renderSlot","_createCommentVNode","_Fragment","_renderList","_createTextVNode","_toDisplayString","_createBlock","_withKeys","_vModelText","_resolveDynamicComponent","_withDirectives","_export_sfc"],"mappings":";;;;;;;;;;;;;;;;;;;;AA0TA,MAAM,cAAiB,GAAA,UAAA,CAAA;AACvB,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,cAAA;AAAA,EACN,aAAe,EAAA,cAAA;AAAA,EACf,UAAY,EAAA;AAAA,kBACVC,yBAAA;AAAA,cACAC,iBAAA;AAAA,eACAC,kBA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I,cAAA,CAAA,IAAA,CAAA,MAAA,EAAA,OAAA,EAAA,EAAA,EAAA,MAAA;AAAA,gBAAAL,sBAAA,CAAA,MAAA,EAAA,IAAA,EAAAU,mBAAA,CAAA,IAAA,CAAA,SAAA,CAAA,EAAA,CAAA,CAAA;AAAA,eAAA,CAAA;AAAV,aAAA,EAAA,CAAA,CAAA,IAAAJ,sBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA,YAAA,IAAA,CAAA,MAAA,CAAA,MAAA,IAAAH,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAE7B,KAAA,EAAAH,kBAAA,CAAA,IAAA,CAAA,QAAA,CAAA,EAAA,CAAA,UAAA,EAAA,QAAA,CAAA,CAAA;AAAA,cAA4C,OAAA,EAAAC,iBAAA,CAAA,MAAA;AAAA,eAAA,EAAA,CAAA,MAAA,CAAA,CAAA;AAAA,aAAA,EAAA;AAAV,cAAAG,cAAA,CAAA,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,aAAA,EAAA,EAAA,EAAA,CAAA,SAAA,CAAA,CAAA,IAAAC,sBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;AAAA,WAAA,CAAA;AAAA,UAAA,CAAA,EAAA,CAAA;;;;;;;;AAGtC,CAAA;AAwBM,aAAA,gBAAAU,iCAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,QAAA,EAAA,YAAA,CAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"select.js","sources":["../../../../../../packages/components/select/src/select.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { ArrowDown, CircleClose } from '@element-plus/icons-vue'\nimport { tagProps } from '@element-plus/components/tag'\nimport type {\n Options,\n Placement,\n PopperEffect,\n} from '@element-plus/components/popper'\n\nexport const SelectProps = buildProps({\n /**\n * @description the name attribute of select input\n */\n name: String,\n /**\n * @description native input id\n */\n id: String,\n /**\n * @description binding value\n */\n modelValue: {\n type: [Array, String, Number, Boolean, Object],\n default: undefined,\n },\n /**\n * @description the autocomplete attribute of select input\n */\n autocomplete: {\n type: String,\n default: 'off',\n },\n /**\n * @description for non-filterable Select, this prop decides if the option menu pops up when the input is focused\n */\n automaticDropdown: Boolean,\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether Select is disabled\n */\n disabled: Boolean,\n /**\n * @description whether select can be cleared\n */\n clearable: Boolean,\n /**\n * @description whether Select is filterable\n */\n filterable: Boolean,\n /**\n * @description whether creating new items is allowed. To use this, `filterable` must be true\n */\n allowCreate: Boolean,\n /**\n * @description whether Select is loading data from server\n */\n loading: Boolean,\n /**\n * @description custom class name for Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({} as Partial<Options>),\n },\n /**\n * @description whether options are loaded from server\n */\n remote: Boolean,\n /**\n * @description displayed text while loading data from server, default is 'Loading'\n */\n loadingText: String,\n /**\n * @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'\n */\n noMatchText: String,\n /**\n * @description displayed text when there is no options, you can also use slot `empty`, default is 'No data'\n */\n noDataText: String,\n /**\n * @description custom remote search method\n */\n remoteMethod: Function,\n /**\n * @description custom filter method\n */\n filterMethod: Function,\n /**\n * @description whether multiple-select is activated\n */\n multiple: Boolean,\n /**\n * @description maximum number of options user can select when `multiple` is `true`. No limit when set to 0\n */\n multipleLimit: {\n type: Number,\n default: 0,\n },\n /**\n * @description placeholder, default is 'Select'\n */\n placeholder: {\n type: String,\n },\n /**\n * @description select first matching option on enter key. Use with `filterable` or `remote`\n */\n defaultFirstOption: Boolean,\n /**\n * @description when `multiple` and `filter` is true, whether to reserve current keyword after selecting an option\n */\n reserveKeyword: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unique identity key name for value, required when value is an object\n */\n valueKey: {\n type: String,\n default: 'value',\n },\n /**\n * @description whether to collapse tags to a text when multiple selecting\n */\n collapseTags: Boolean,\n /**\n * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n */\n collapseTagsTooltip: Boolean,\n /**\n * @description the max tags number to be shown. To use this, `collapse-tags` must be true\n */\n maxCollapseTags: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether select dropdown is teleported, if `true` it will be teleported to where `append-to` sets\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description whether the width of the dropdown is the same as the input\n */\n fitInputWidth: Boolean,\n /**\n * @description custom suffix icon component\n */\n suffixIcon: {\n type: iconPropType,\n default: ArrowDown,\n },\n /**\n * @description tag type\n */\n // eslint-disable-next-line vue/require-prop-types\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: { ...tagProps.effect, default: 'light' },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description in remote search method show suffix icon\n */\n remoteShowSuffix: Boolean,\n /**\n * @description determines whether the arrow is displayed\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the dropdown\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of dropdown\n */\n placement: {\n type: definePropType<Placement>(String),\n values: placements,\n default: 'bottom-start',\n },\n /**\n * @description list of possible positions for dropdown\n */\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: ['bottom-start', 'top-start', 'right', 'left'],\n },\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description which element the selection dropdown appends to\n */\n appendTo: String,\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n})\n"],"names":["buildProps","useSizeProp","definePropType","useTooltipContentProps","iconPropType","CircleClose","ArrowDown","tagProps","placements","useEmptyValuesProps","useAriaProps"],"mappings":";;;;;;;;;;;;;;AAUY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;AAClD,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE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