@element-plus/nightly 0.0.20251203 → 0.0.20251204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/dist/index.full.js +3 -3
  2. package/dist/index.full.min.js +3 -3
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +3 -3
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +3 -3
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/autocomplete/index.mjs +2 -2
  276. package/es/components/autocomplete/src/autocomplete.mjs +61 -445
  277. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  278. package/es/components/autocomplete/src/autocomplete2.mjs +445 -61
  279. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  280. package/es/components/breadcrumb/index.mjs +2 -2
  281. package/es/components/breadcrumb/src/breadcrumb-item.mjs +8 -56
  282. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  283. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -8
  284. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  285. package/es/components/card/index.mjs +2 -2
  286. package/es/components/card/src/card.mjs +23 -48
  287. package/es/components/card/src/card.mjs.map +1 -1
  288. package/es/components/card/src/card2.mjs +48 -23
  289. package/es/components/card/src/card2.mjs.map +1 -1
  290. package/es/components/cascader-panel/src/index.mjs +1 -1
  291. package/es/components/cascader-panel/src/menu.mjs +1 -1
  292. package/es/components/cascader-panel/src/node.mjs +115 -177
  293. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  294. package/es/components/cascader-panel/src/node2.mjs +177 -115
  295. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  296. package/es/components/cascader-panel/src/store.mjs +1 -1
  297. package/es/components/collection/index.mjs +1 -1
  298. package/es/components/collection/src/collection.mjs +62 -10
  299. package/es/components/collection/src/collection.mjs.map +1 -1
  300. package/es/components/collection/src/collection2.mjs +10 -62
  301. package/es/components/collection/src/collection2.mjs.map +1 -1
  302. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  303. package/es/components/dropdown/src/dropdown.mjs +2 -2
  304. package/es/components/index.mjs +16 -16
  305. package/es/components/input/index.mjs +2 -2
  306. package/es/components/input/src/input.mjs +125 -484
  307. package/es/components/input/src/input.mjs.map +1 -1
  308. package/es/components/input/src/input2.mjs +484 -125
  309. package/es/components/input/src/input2.mjs.map +1 -1
  310. package/es/components/mention/src/mention.mjs +1 -1
  311. package/es/components/mention/src/mention2.mjs +1 -1
  312. package/es/components/notification/index.mjs +1 -1
  313. package/es/components/notification/src/notification.mjs +73 -147
  314. package/es/components/notification/src/notification.mjs.map +1 -1
  315. package/es/components/notification/src/notification2.mjs +147 -73
  316. package/es/components/notification/src/notification2.mjs.map +1 -1
  317. package/es/components/notification/src/notify.mjs +2 -2
  318. package/es/components/pagination/src/components/next.mjs +35 -18
  319. package/es/components/pagination/src/components/next.mjs.map +1 -1
  320. package/es/components/pagination/src/components/next2.mjs +18 -35
  321. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  322. package/es/components/pagination/src/components/sizes.mjs +72 -26
  323. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  324. package/es/components/pagination/src/components/sizes2.mjs +26 -72
  325. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  326. package/es/components/pagination/src/pagination.mjs +2 -2
  327. package/es/components/popconfirm/index.mjs +2 -2
  328. package/es/components/popconfirm/src/popconfirm.mjs +50 -135
  329. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  330. package/es/components/popconfirm/src/popconfirm2.mjs +135 -50
  331. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  332. package/es/components/popover/src/popover.mjs +1 -1
  333. package/es/components/popper/index.mjs +4 -4
  334. package/es/components/popper/src/content.mjs +132 -89
  335. package/es/components/popper/src/content.mjs.map +1 -1
  336. package/es/components/popper/src/content2.mjs +89 -132
  337. package/es/components/popper/src/content2.mjs.map +1 -1
  338. package/es/components/popper/src/popper.mjs +22 -32
  339. package/es/components/popper/src/popper.mjs.map +1 -1
  340. package/es/components/popper/src/popper2.mjs +32 -22
  341. package/es/components/popper/src/popper2.mjs.map +1 -1
  342. package/es/components/radio/index.mjs +2 -2
  343. package/es/components/radio/src/radio-button.mjs +1 -1
  344. package/es/components/radio/src/radio-group.mjs +1 -1
  345. package/es/components/radio/src/radio-group2.mjs +1 -1
  346. package/es/components/radio/src/radio.mjs +35 -74
  347. package/es/components/radio/src/radio.mjs.map +1 -1
  348. package/es/components/radio/src/radio2.mjs +74 -35
  349. package/es/components/radio/src/radio2.mjs.map +1 -1
  350. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  351. package/es/components/scrollbar/index.mjs +1 -1
  352. package/es/components/scrollbar/src/bar2.mjs +1 -1
  353. package/es/components/scrollbar/src/thumb.mjs +11 -139
  354. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  355. package/es/components/scrollbar/src/thumb2.mjs +139 -11
  356. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  357. package/es/components/select/index.mjs +2 -2
  358. package/es/components/select/src/select.mjs +152 -553
  359. package/es/components/select/src/select.mjs.map +1 -1
  360. package/es/components/select/src/select2.mjs +553 -152
  361. package/es/components/select/src/select2.mjs.map +1 -1
  362. package/es/components/steps/index.mjs +2 -2
  363. package/es/components/steps/src/steps.mjs +35 -41
  364. package/es/components/steps/src/steps.mjs.map +1 -1
  365. package/es/components/steps/src/steps2.mjs +41 -35
  366. package/es/components/steps/src/steps2.mjs.map +1 -1
  367. package/es/components/table/src/store/tree.mjs +1 -1
  368. package/es/components/table/src/store/tree.mjs.map +1 -1
  369. package/es/components/tabs/index.mjs +2 -2
  370. package/es/components/tabs/src/tab-pane.mjs +16 -85
  371. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  372. package/es/components/tabs/src/tab-pane2.mjs +85 -16
  373. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  374. package/es/components/tooltip/index.mjs +1 -1
  375. package/es/components/tooltip/src/content.mjs +1 -1
  376. package/es/components/tooltip/src/content2.mjs +1 -1
  377. package/es/components/tooltip/src/tooltip.mjs +2 -2
  378. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  379. package/es/components/tooltip/src/trigger.mjs +16 -81
  380. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  381. package/es/components/tooltip/src/trigger2.mjs +81 -16
  382. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  383. package/es/components/tour/index.mjs +2 -2
  384. package/es/components/tour/src/tour.mjs +154 -69
  385. package/es/components/tour/src/tour.mjs.map +1 -1
  386. package/es/components/tour/src/tour2.mjs +69 -154
  387. package/es/components/tour/src/tour2.mjs.map +1 -1
  388. package/es/index.mjs +16 -16
  389. package/es/version.d.ts +1 -1
  390. package/es/version.mjs +1 -1
  391. package/es/version.mjs.map +1 -1
  392. package/lib/components/autocomplete/index.js +2 -2
  393. package/lib/components/autocomplete/src/autocomplete.js +60 -443
  394. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  395. package/lib/components/autocomplete/src/autocomplete2.js +443 -60
  396. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  397. package/lib/components/breadcrumb/index.js +2 -2
  398. package/lib/components/breadcrumb/src/breadcrumb-item.js +8 -56
  399. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  400. package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -8
  401. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  402. package/lib/components/card/index.js +2 -2
  403. package/lib/components/card/src/card.js +24 -48
  404. package/lib/components/card/src/card.js.map +1 -1
  405. package/lib/components/card/src/card2.js +48 -24
  406. package/lib/components/card/src/card2.js.map +1 -1
  407. package/lib/components/cascader-panel/src/index.js +1 -1
  408. package/lib/components/cascader-panel/src/menu.js +1 -1
  409. package/lib/components/cascader-panel/src/node.js +115 -177
  410. package/lib/components/cascader-panel/src/node.js.map +1 -1
  411. package/lib/components/cascader-panel/src/node2.js +177 -115
  412. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  413. package/lib/components/cascader-panel/src/store.js +1 -1
  414. package/lib/components/collection/index.js +1 -1
  415. package/lib/components/collection/src/collection.js +62 -9
  416. package/lib/components/collection/src/collection.js.map +1 -1
  417. package/lib/components/collection/src/collection2.js +9 -62
  418. package/lib/components/collection/src/collection2.js.map +1 -1
  419. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  420. package/lib/components/dropdown/src/dropdown.js +2 -2
  421. package/lib/components/index.js +16 -16
  422. package/lib/components/input/index.js +2 -2
  423. package/lib/components/input/src/input.js +122 -480
  424. package/lib/components/input/src/input.js.map +1 -1
  425. package/lib/components/input/src/input2.js +480 -122
  426. package/lib/components/input/src/input2.js.map +1 -1
  427. package/lib/components/mention/src/mention.js +1 -1
  428. package/lib/components/mention/src/mention2.js +1 -1
  429. package/lib/components/notification/index.js +1 -1
  430. package/lib/components/notification/src/notification.js +74 -146
  431. package/lib/components/notification/src/notification.js.map +1 -1
  432. package/lib/components/notification/src/notification2.js +146 -74
  433. package/lib/components/notification/src/notification2.js.map +1 -1
  434. package/lib/components/notification/src/notify.js +2 -2
  435. package/lib/components/pagination/src/components/next.js +35 -18
  436. package/lib/components/pagination/src/components/next.js.map +1 -1
  437. package/lib/components/pagination/src/components/next2.js +18 -35
  438. package/lib/components/pagination/src/components/next2.js.map +1 -1
  439. package/lib/components/pagination/src/components/sizes.js +72 -26
  440. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  441. package/lib/components/pagination/src/components/sizes2.js +26 -72
  442. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  443. package/lib/components/pagination/src/pagination.js +2 -2
  444. package/lib/components/popconfirm/index.js +2 -2
  445. package/lib/components/popconfirm/src/popconfirm.js +51 -135
  446. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  447. package/lib/components/popconfirm/src/popconfirm2.js +135 -51
  448. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  449. package/lib/components/popover/src/popover.js +1 -1
  450. package/lib/components/popper/index.js +4 -4
  451. package/lib/components/popper/src/content.js +132 -94
  452. package/lib/components/popper/src/content.js.map +1 -1
  453. package/lib/components/popper/src/content2.js +94 -132
  454. package/lib/components/popper/src/content2.js.map +1 -1
  455. package/lib/components/popper/src/popper.js +25 -32
  456. package/lib/components/popper/src/popper.js.map +1 -1
  457. package/lib/components/popper/src/popper2.js +32 -25
  458. package/lib/components/popper/src/popper2.js.map +1 -1
  459. package/lib/components/radio/index.js +2 -2
  460. package/lib/components/radio/src/radio-button.js +1 -1
  461. package/lib/components/radio/src/radio-group.js +1 -1
  462. package/lib/components/radio/src/radio-group2.js +1 -1
  463. package/lib/components/radio/src/radio.js +36 -73
  464. package/lib/components/radio/src/radio.js.map +1 -1
  465. package/lib/components/radio/src/radio2.js +73 -36
  466. package/lib/components/radio/src/radio2.js.map +1 -1
  467. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  468. package/lib/components/scrollbar/index.js +1 -1
  469. package/lib/components/scrollbar/src/bar2.js +1 -1
  470. package/lib/components/scrollbar/src/thumb.js +11 -139
  471. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  472. package/lib/components/scrollbar/src/thumb2.js +139 -11
  473. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  474. package/lib/components/select/index.js +2 -2
  475. package/lib/components/select/src/select.js +152 -552
  476. package/lib/components/select/src/select.js.map +1 -1
  477. package/lib/components/select/src/select2.js +552 -152
  478. package/lib/components/select/src/select2.js.map +1 -1
  479. package/lib/components/steps/index.js +2 -2
  480. package/lib/components/steps/src/steps.js +36 -41
  481. package/lib/components/steps/src/steps.js.map +1 -1
  482. package/lib/components/steps/src/steps2.js +41 -36
  483. package/lib/components/steps/src/steps2.js.map +1 -1
  484. package/lib/components/table/src/store/tree.js +1 -1
  485. package/lib/components/table/src/store/tree.js.map +1 -1
  486. package/lib/components/tabs/index.js +2 -2
  487. package/lib/components/tabs/src/tab-pane.js +16 -85
  488. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  489. package/lib/components/tabs/src/tab-pane2.js +85 -16
  490. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  491. package/lib/components/tooltip/index.js +1 -1
  492. package/lib/components/tooltip/src/content.js +1 -1
  493. package/lib/components/tooltip/src/content2.js +1 -1
  494. package/lib/components/tooltip/src/tooltip.js +2 -2
  495. package/lib/components/tooltip/src/tooltip2.js +1 -1
  496. package/lib/components/tooltip/src/trigger.js +16 -81
  497. package/lib/components/tooltip/src/trigger.js.map +1 -1
  498. package/lib/components/tooltip/src/trigger2.js +81 -16
  499. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  500. package/lib/components/tour/index.js +2 -2
  501. package/lib/components/tour/src/tour.js +153 -69
  502. package/lib/components/tour/src/tour.js.map +1 -1
  503. package/lib/components/tour/src/tour2.js +69 -153
  504. package/lib/components/tour/src/tour2.js.map +1 -1
  505. package/lib/index.js +16 -16
  506. package/lib/version.d.ts +1 -1
  507. package/lib/version.js +1 -1
  508. package/lib/version.js.map +1 -1
  509. package/package.json +2 -2
  510. package/web-types.json +1 -1
@@ -1,559 +1,158 @@
1
- import { defineComponent, getCurrentInstance, computed, reactive, toRefs, watch, provide, onBeforeUnmount, resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, toHandlerKey, createVNode, withCtx, createElementVNode, withModifiers, renderSlot, createCommentVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, createBlock, vModelText, resolveDynamicComponent, mergeProps, normalizeProps, vShow } from 'vue';
2
- import { ElTooltip } from '../../tooltip/index.mjs';
3
- import { ElScrollbar } from '../../scrollbar/index.mjs';
4
- import { ElTag } from '../../tag/index.mjs';
5
- import { ElIcon } from '../../icon/index.mjs';
6
- import { useProps } from '../../select-v2/src/useProps.mjs';
7
- import Option from './option2.mjs';
8
- import ElSelectMenu from './select-dropdown.mjs';
9
- import { useSelect } from './useSelect.mjs';
10
- import { selectKey } from './token.mjs';
11
- import ElOptions from './options.mjs';
12
- import { selectProps } from './select2.mjs';
13
- import OptionGroup from './option-group.mjs';
14
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
15
- import ClickOutside from '../../../directives/click-outside/index.mjs';
1
+ import { placements } from '@popperjs/core';
2
+ import { CircleClose, ArrowDown } from '@element-plus/icons-vue';
3
+ import { defaultProps } from '../../select-v2/src/useProps.mjs';
4
+ import { scrollbarEmits } from '../../scrollbar/src/scrollbar.mjs';
5
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
6
+ import { useSizeProp } from '../../../hooks/use-size/index.mjs';
7
+ import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
8
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
9
+ import { tagProps } from '../../tag/src/tag.mjs';
10
+ import { useEmptyValuesProps } from '../../../hooks/use-empty-values/index.mjs';
11
+ import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
16
12
  import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
17
- import { isArray, isObject } from '@vue/shared';
18
- import { useCalcInputWidth } from '../../../hooks/use-calc-input-width/index.mjs';
19
- import { flattedChildren } from '../../../utils/vue/vnode.mjs';
20
13
 
21
- const COMPONENT_NAME = "ElSelect";
22
- const warnHandlerMap = /* @__PURE__ */ new WeakMap();
23
- const createSelectWarnHandler = (appContext) => {
24
- return (...args) => {
25
- var _a, _b;
26
- const message = args[0];
27
- if (!message || message.includes('Slot "default" invoked outside of the render function') && ((_a = args[2]) == null ? void 0 : _a.includes("ElTreeSelect")))
28
- return;
29
- const original = (_b = warnHandlerMap.get(appContext)) == null ? void 0 : _b.originalWarnHandler;
30
- if (original) {
31
- original(...args);
32
- return;
33
- }
34
- console.warn(...args);
35
- };
36
- };
37
- const getWarnHandlerRecord = (appContext) => {
38
- let record = warnHandlerMap.get(appContext);
39
- if (!record) {
40
- record = {
41
- originalWarnHandler: appContext.config.warnHandler,
42
- handler: createSelectWarnHandler(appContext),
43
- count: 0
44
- };
45
- warnHandlerMap.set(appContext, record);
46
- }
47
- return record;
48
- };
49
- const _sfc_main = defineComponent({
50
- name: COMPONENT_NAME,
51
- componentName: COMPONENT_NAME,
52
- components: {
53
- ElSelectMenu,
54
- ElOption: Option,
55
- ElOptions,
56
- ElOptionGroup: OptionGroup,
57
- ElTag,
58
- ElScrollbar,
59
- ElTooltip,
60
- ElIcon
14
+ const selectProps = buildProps({
15
+ name: String,
16
+ id: String,
17
+ modelValue: {
18
+ type: definePropType([
19
+ Array,
20
+ String,
21
+ Number,
22
+ Boolean,
23
+ Object
24
+ ]),
25
+ default: void 0
26
+ },
27
+ autocomplete: {
28
+ type: String,
29
+ default: "off"
30
+ },
31
+ automaticDropdown: Boolean,
32
+ size: useSizeProp,
33
+ effect: {
34
+ type: definePropType(String),
35
+ default: "light"
36
+ },
37
+ disabled: {
38
+ type: Boolean,
39
+ default: void 0
40
+ },
41
+ clearable: Boolean,
42
+ filterable: Boolean,
43
+ allowCreate: Boolean,
44
+ loading: Boolean,
45
+ popperClass: {
46
+ type: String,
47
+ default: ""
48
+ },
49
+ popperStyle: {
50
+ type: definePropType([String, Object])
51
+ },
52
+ popperOptions: {
53
+ type: definePropType(Object),
54
+ default: () => ({})
55
+ },
56
+ remote: Boolean,
57
+ debounce: {
58
+ type: Number,
59
+ default: 300
60
+ },
61
+ loadingText: String,
62
+ noMatchText: String,
63
+ noDataText: String,
64
+ remoteMethod: {
65
+ type: definePropType(Function)
66
+ },
67
+ filterMethod: {
68
+ type: definePropType(Function)
69
+ },
70
+ multiple: Boolean,
71
+ multipleLimit: {
72
+ type: Number,
73
+ default: 0
74
+ },
75
+ placeholder: {
76
+ type: String
77
+ },
78
+ defaultFirstOption: Boolean,
79
+ reserveKeyword: {
80
+ type: Boolean,
81
+ default: true
61
82
  },
62
- directives: { ClickOutside },
63
- props: selectProps,
64
- emits: [
65
- UPDATE_MODEL_EVENT,
66
- CHANGE_EVENT,
67
- "remove-tag",
68
- "clear",
69
- "visible-change",
70
- "focus",
71
- "blur",
72
- "popup-scroll"
73
- ],
74
- setup(props, { emit, slots }) {
75
- const instance = getCurrentInstance();
76
- const warnRecord = getWarnHandlerRecord(instance.appContext);
77
- warnRecord.count += 1;
78
- instance.appContext.config.warnHandler = warnRecord.handler;
79
- const modelValue = computed(() => {
80
- const { modelValue: rawModelValue, multiple } = props;
81
- const fallback = multiple ? [] : void 0;
82
- if (isArray(rawModelValue)) {
83
- return multiple ? rawModelValue : fallback;
84
- }
85
- return multiple ? fallback : rawModelValue;
86
- });
87
- const _props = reactive({
88
- ...toRefs(props),
89
- modelValue
90
- });
91
- const API = useSelect(_props, emit);
92
- const { calculatorRef, inputStyle } = useCalcInputWidth();
93
- const { getLabel, getValue, getOptions, getDisabled } = useProps(props);
94
- const getOptionProps = (option) => ({
95
- label: getLabel(option),
96
- value: getValue(option),
97
- disabled: getDisabled(option)
98
- });
99
- const flatTreeSelectData = (data) => {
100
- return data.reduce((acc, item) => {
101
- acc.push(item);
102
- if (item.children && item.children.length > 0) {
103
- acc.push(...flatTreeSelectData(item.children));
104
- }
105
- return acc;
106
- }, []);
107
- };
108
- const manuallyRenderSlots = (vnodes) => {
109
- const children = flattedChildren(vnodes || []);
110
- children.forEach((item) => {
111
- var _a;
112
- if (isObject(item) && (item.type.name === "ElOption" || item.type.name === "ElTree")) {
113
- const _name = item.type.name;
114
- if (_name === "ElTree") {
115
- const treeData = ((_a = item.props) == null ? void 0 : _a.data) || [];
116
- const flatData = flatTreeSelectData(treeData);
117
- flatData.forEach((treeItem) => {
118
- treeItem.currentLabel = treeItem.label || (isObject(treeItem.value) ? "" : treeItem.value);
119
- API.onOptionCreate(treeItem);
120
- });
121
- } else if (_name === "ElOption") {
122
- const obj = { ...item.props };
123
- obj.currentLabel = obj.label || (isObject(obj.value) ? "" : obj.value);
124
- API.onOptionCreate(obj);
125
- }
126
- }
127
- });
128
- };
129
- watch(() => {
130
- var _a;
131
- return [(_a = slots.default) == null ? void 0 : _a.call(slots), modelValue.value];
132
- }, () => {
133
- var _a;
134
- if (props.persistent || API.expanded.value) {
135
- return;
136
- }
137
- API.states.options.clear();
138
- manuallyRenderSlots((_a = slots.default) == null ? void 0 : _a.call(slots));
139
- }, {
140
- immediate: true
141
- });
142
- provide(selectKey, reactive({
143
- props: _props,
144
- states: API.states,
145
- selectRef: API.selectRef,
146
- optionsArray: API.optionsArray,
147
- setSelected: API.setSelected,
148
- handleOptionSelect: API.handleOptionSelect,
149
- onOptionCreate: API.onOptionCreate,
150
- onOptionDestroy: API.onOptionDestroy
151
- }));
152
- const selectedLabel = computed(() => {
153
- if (!props.multiple) {
154
- return API.states.selectedLabel;
155
- }
156
- return API.states.selected.map((i) => i.currentLabel);
157
- });
158
- onBeforeUnmount(() => {
159
- const record = warnHandlerMap.get(instance.appContext);
160
- if (!record)
161
- return;
162
- record.count -= 1;
163
- if (record.count <= 0) {
164
- instance.appContext.config.warnHandler = record.originalWarnHandler;
165
- warnHandlerMap.delete(instance.appContext);
166
- }
167
- });
168
- return {
169
- ...API,
170
- modelValue,
171
- selectedLabel,
172
- calculatorRef,
173
- inputStyle,
174
- getLabel,
175
- getValue,
176
- getOptions,
177
- getDisabled,
178
- getOptionProps
179
- };
180
- }
83
+ valueKey: {
84
+ type: String,
85
+ default: "value"
86
+ },
87
+ collapseTags: Boolean,
88
+ collapseTagsTooltip: Boolean,
89
+ maxCollapseTags: {
90
+ type: Number,
91
+ default: 1
92
+ },
93
+ teleported: useTooltipContentProps.teleported,
94
+ persistent: {
95
+ type: Boolean,
96
+ default: true
97
+ },
98
+ clearIcon: {
99
+ type: iconPropType,
100
+ default: CircleClose
101
+ },
102
+ fitInputWidth: Boolean,
103
+ suffixIcon: {
104
+ type: iconPropType,
105
+ default: ArrowDown
106
+ },
107
+ tagType: { ...tagProps.type, default: "info" },
108
+ tagEffect: { ...tagProps.effect, default: "light" },
109
+ validateEvent: {
110
+ type: Boolean,
111
+ default: true
112
+ },
113
+ remoteShowSuffix: Boolean,
114
+ showArrow: {
115
+ type: Boolean,
116
+ default: true
117
+ },
118
+ offset: {
119
+ type: Number,
120
+ default: 12
121
+ },
122
+ placement: {
123
+ type: definePropType(String),
124
+ values: placements,
125
+ default: "bottom-start"
126
+ },
127
+ fallbackPlacements: {
128
+ type: definePropType(Array),
129
+ default: ["bottom-start", "top-start", "right", "left"]
130
+ },
131
+ tabindex: {
132
+ type: [String, Number],
133
+ default: 0
134
+ },
135
+ appendTo: useTooltipContentProps.appendTo,
136
+ options: {
137
+ type: definePropType(Array)
138
+ },
139
+ props: {
140
+ type: definePropType(Object),
141
+ default: () => defaultProps
142
+ },
143
+ ...useEmptyValuesProps,
144
+ ...useAriaProps(["ariaLabel"])
181
145
  });
182
- function _sfc_render(_ctx, _cache) {
183
- const _component_el_tag = resolveComponent("el-tag");
184
- const _component_el_tooltip = resolveComponent("el-tooltip");
185
- const _component_el_icon = resolveComponent("el-icon");
186
- const _component_el_option = resolveComponent("el-option");
187
- const _component_el_option_group = resolveComponent("el-option-group");
188
- const _component_el_options = resolveComponent("el-options");
189
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
190
- const _component_el_select_menu = resolveComponent("el-select-menu");
191
- const _directive_click_outside = resolveDirective("click-outside");
192
- return withDirectives((openBlock(), createElementBlock("div", {
193
- ref: "selectRef",
194
- class: normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
195
- [toHandlerKey(_ctx.mouseEnterEventName)]: ($event) => _ctx.states.inputHovering = true,
196
- onMouseleave: ($event) => _ctx.states.inputHovering = false
197
- }, [
198
- createVNode(_component_el_tooltip, {
199
- ref: "tooltipRef",
200
- visible: _ctx.dropdownMenuVisible,
201
- placement: _ctx.placement,
202
- teleported: _ctx.teleported,
203
- "popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
204
- "popper-style": _ctx.popperStyle,
205
- "popper-options": _ctx.popperOptions,
206
- "fallback-placements": _ctx.fallbackPlacements,
207
- effect: _ctx.effect,
208
- pure: "",
209
- trigger: "click",
210
- transition: `${_ctx.nsSelect.namespace.value}-zoom-in-top`,
211
- "stop-popper-mouse-event": false,
212
- "gpu-acceleration": false,
213
- persistent: _ctx.persistent,
214
- "append-to": _ctx.appendTo,
215
- "show-arrow": _ctx.showArrow,
216
- offset: _ctx.offset,
217
- onBeforeShow: _ctx.handleMenuEnter,
218
- onHide: ($event) => _ctx.states.isBeforeHide = false
219
- }, {
220
- default: withCtx(() => {
221
- var _a;
222
- return [
223
- createElementVNode("div", {
224
- ref: "wrapperRef",
225
- class: normalizeClass([
226
- _ctx.nsSelect.e("wrapper"),
227
- _ctx.nsSelect.is("focused", _ctx.isFocused),
228
- _ctx.nsSelect.is("hovering", _ctx.states.inputHovering),
229
- _ctx.nsSelect.is("filterable", _ctx.filterable),
230
- _ctx.nsSelect.is("disabled", _ctx.selectDisabled)
231
- ]),
232
- onClick: withModifiers(_ctx.toggleMenu, ["prevent"])
233
- }, [
234
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
235
- key: 0,
236
- ref: "prefixRef",
237
- class: normalizeClass(_ctx.nsSelect.e("prefix"))
238
- }, [
239
- renderSlot(_ctx.$slots, "prefix")
240
- ], 2)) : createCommentVNode("v-if", true),
241
- createElementVNode("div", {
242
- ref: "selectionRef",
243
- class: normalizeClass([
244
- _ctx.nsSelect.e("selection"),
245
- _ctx.nsSelect.is("near", _ctx.multiple && !_ctx.$slots.prefix && !!_ctx.states.selected.length)
246
- ])
247
- }, [
248
- _ctx.multiple ? renderSlot(_ctx.$slots, "tag", {
249
- key: 0,
250
- data: _ctx.states.selected,
251
- deleteTag: _ctx.deleteTag,
252
- selectDisabled: _ctx.selectDisabled
253
- }, () => [
254
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showTagList, (item) => {
255
- return openBlock(), createElementBlock("div", {
256
- key: _ctx.getValueKey(item),
257
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
258
- }, [
259
- createVNode(_component_el_tag, {
260
- closable: !_ctx.selectDisabled && !item.isDisabled,
261
- size: _ctx.collapseTagSize,
262
- type: _ctx.tagType,
263
- effect: _ctx.tagEffect,
264
- "disable-transitions": "",
265
- style: normalizeStyle(_ctx.tagStyle),
266
- onClose: ($event) => _ctx.deleteTag($event, item)
267
- }, {
268
- default: withCtx(() => [
269
- createElementVNode("span", {
270
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
271
- }, [
272
- renderSlot(_ctx.$slots, "label", {
273
- index: item.index,
274
- label: item.currentLabel,
275
- value: item.value
276
- }, () => [
277
- createTextVNode(toDisplayString(item.currentLabel), 1)
278
- ])
279
- ], 2)
280
- ]),
281
- _: 2
282
- }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
283
- ], 2);
284
- }), 128)),
285
- _ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
286
- key: 0,
287
- ref: "tagTooltipRef",
288
- disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
289
- "fallback-placements": ["bottom", "top", "right", "left"],
290
- effect: _ctx.effect,
291
- placement: "bottom",
292
- "popper-class": _ctx.popperClass,
293
- "popper-style": _ctx.popperStyle,
294
- teleported: _ctx.teleported
295
- }, {
296
- default: withCtx(() => [
297
- createElementVNode("div", {
298
- ref: "collapseItemRef",
299
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
300
- }, [
301
- createVNode(_component_el_tag, {
302
- closable: false,
303
- size: _ctx.collapseTagSize,
304
- type: _ctx.tagType,
305
- effect: _ctx.tagEffect,
306
- "disable-transitions": "",
307
- style: normalizeStyle(_ctx.collapseTagStyle)
308
- }, {
309
- default: withCtx(() => [
310
- createElementVNode("span", {
311
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
312
- }, " + " + toDisplayString(_ctx.states.selected.length - _ctx.maxCollapseTags), 3)
313
- ]),
314
- _: 1
315
- }, 8, ["size", "type", "effect", "style"])
316
- ], 2)
317
- ]),
318
- content: withCtx(() => [
319
- createElementVNode("div", {
320
- ref: "tagMenuRef",
321
- class: normalizeClass(_ctx.nsSelect.e("selection"))
322
- }, [
323
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.collapseTagList, (item) => {
324
- return openBlock(), createElementBlock("div", {
325
- key: _ctx.getValueKey(item),
326
- class: normalizeClass(_ctx.nsSelect.e("selected-item"))
327
- }, [
328
- createVNode(_component_el_tag, {
329
- class: "in-tooltip",
330
- closable: !_ctx.selectDisabled && !item.isDisabled,
331
- size: _ctx.collapseTagSize,
332
- type: _ctx.tagType,
333
- effect: _ctx.tagEffect,
334
- "disable-transitions": "",
335
- onClose: ($event) => _ctx.deleteTag($event, item)
336
- }, {
337
- default: withCtx(() => [
338
- createElementVNode("span", {
339
- class: normalizeClass(_ctx.nsSelect.e("tags-text"))
340
- }, [
341
- renderSlot(_ctx.$slots, "label", {
342
- index: item.index,
343
- label: item.currentLabel,
344
- value: item.value
345
- }, () => [
346
- createTextVNode(toDisplayString(item.currentLabel), 1)
347
- ])
348
- ], 2)
349
- ]),
350
- _: 2
351
- }, 1032, ["closable", "size", "type", "effect", "onClose"])
352
- ], 2);
353
- }), 128))
354
- ], 2)
355
- ]),
356
- _: 3
357
- }, 8, ["disabled", "effect", "popper-class", "popper-style", "teleported"])) : createCommentVNode("v-if", true)
358
- ]) : createCommentVNode("v-if", true),
359
- createElementVNode("div", {
360
- class: normalizeClass([
361
- _ctx.nsSelect.e("selected-item"),
362
- _ctx.nsSelect.e("input-wrapper"),
363
- _ctx.nsSelect.is("hidden", !_ctx.filterable || _ctx.selectDisabled)
364
- ])
365
- }, [
366
- withDirectives(createElementVNode("input", {
367
- id: _ctx.inputId,
368
- ref: "inputRef",
369
- "onUpdate:modelValue": ($event) => _ctx.states.inputValue = $event,
370
- type: "text",
371
- name: _ctx.name,
372
- class: normalizeClass([_ctx.nsSelect.e("input"), _ctx.nsSelect.is(_ctx.selectSize)]),
373
- disabled: _ctx.selectDisabled,
374
- autocomplete: _ctx.autocomplete,
375
- style: normalizeStyle(_ctx.inputStyle),
376
- tabindex: _ctx.tabindex,
377
- role: "combobox",
378
- readonly: !_ctx.filterable,
379
- spellcheck: "false",
380
- "aria-activedescendant": ((_a = _ctx.hoverOption) == null ? void 0 : _a.id) || "",
381
- "aria-controls": _ctx.contentId,
382
- "aria-expanded": _ctx.dropdownMenuVisible,
383
- "aria-label": _ctx.ariaLabel,
384
- "aria-autocomplete": "none",
385
- "aria-haspopup": "listbox",
386
- onKeydown: _ctx.handleKeydown,
387
- onCompositionstart: _ctx.handleCompositionStart,
388
- onCompositionupdate: _ctx.handleCompositionUpdate,
389
- onCompositionend: _ctx.handleCompositionEnd,
390
- onInput: _ctx.onInput,
391
- onClick: withModifiers(_ctx.toggleMenu, ["stop"])
392
- }, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
393
- [vModelText, _ctx.states.inputValue]
394
- ]),
395
- _ctx.filterable ? (openBlock(), createElementBlock("span", {
396
- key: 0,
397
- ref: "calculatorRef",
398
- "aria-hidden": "true",
399
- class: normalizeClass(_ctx.nsSelect.e("input-calculator")),
400
- textContent: toDisplayString(_ctx.states.inputValue)
401
- }, null, 10, ["textContent"])) : createCommentVNode("v-if", true)
402
- ], 2),
403
- _ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("div", {
404
- key: 1,
405
- class: normalizeClass([
406
- _ctx.nsSelect.e("selected-item"),
407
- _ctx.nsSelect.e("placeholder"),
408
- _ctx.nsSelect.is("transparent", !_ctx.hasModelValue || _ctx.expanded && !_ctx.states.inputValue)
409
- ])
410
- }, [
411
- _ctx.hasModelValue ? renderSlot(_ctx.$slots, "label", {
412
- key: 0,
413
- index: _ctx.getOption(_ctx.modelValue).index,
414
- label: _ctx.currentPlaceholder,
415
- value: _ctx.modelValue
416
- }, () => [
417
- createElementVNode("span", null, toDisplayString(_ctx.currentPlaceholder), 1)
418
- ]) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.currentPlaceholder), 1))
419
- ], 2)) : createCommentVNode("v-if", true)
420
- ], 2),
421
- createElementVNode("div", {
422
- ref: "suffixRef",
423
- class: normalizeClass(_ctx.nsSelect.e("suffix"))
424
- }, [
425
- _ctx.iconComponent && !_ctx.showClearBtn ? (openBlock(), createBlock(_component_el_icon, {
426
- key: 0,
427
- class: normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon"), _ctx.iconReverse])
428
- }, {
429
- default: withCtx(() => [
430
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
431
- ]),
432
- _: 1
433
- }, 8, ["class"])) : createCommentVNode("v-if", true),
434
- _ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
435
- key: 1,
436
- class: normalizeClass([
437
- _ctx.nsSelect.e("caret"),
438
- _ctx.nsSelect.e("icon"),
439
- _ctx.nsSelect.e("clear")
440
- ]),
441
- onClick: _ctx.handleClearClick
442
- }, {
443
- default: withCtx(() => [
444
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
445
- ]),
446
- _: 1
447
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
448
- _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (openBlock(), createBlock(_component_el_icon, {
449
- key: 2,
450
- class: normalizeClass([
451
- _ctx.nsInput.e("icon"),
452
- _ctx.nsInput.e("validateIcon"),
453
- _ctx.nsInput.is("loading", _ctx.validateState === "validating")
454
- ])
455
- }, {
456
- default: withCtx(() => [
457
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
458
- ]),
459
- _: 1
460
- }, 8, ["class"])) : createCommentVNode("v-if", true)
461
- ], 2)
462
- ], 10, ["onClick"])
463
- ];
464
- }),
465
- content: withCtx(() => [
466
- createVNode(_component_el_select_menu, { ref: "menuRef" }, {
467
- default: withCtx(() => [
468
- _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
469
- key: 0,
470
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "header")),
471
- onClick: withModifiers(() => {
472
- }, ["stop"])
473
- }, [
474
- renderSlot(_ctx.$slots, "header")
475
- ], 10, ["onClick"])) : createCommentVNode("v-if", true),
476
- withDirectives(createVNode(_component_el_scrollbar, {
477
- id: _ctx.contentId,
478
- ref: "scrollbarRef",
479
- tag: "ul",
480
- "wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
481
- "view-class": _ctx.nsSelect.be("dropdown", "list"),
482
- class: normalizeClass([_ctx.nsSelect.is("empty", _ctx.filteredOptionsCount === 0)]),
483
- role: "listbox",
484
- "aria-label": _ctx.ariaLabel,
485
- "aria-orientation": "vertical",
486
- onScroll: _ctx.popupScroll
487
- }, {
488
- default: withCtx(() => [
489
- _ctx.showNewOption ? (openBlock(), createBlock(_component_el_option, {
490
- key: 0,
491
- value: _ctx.states.inputValue,
492
- created: true
493
- }, null, 8, ["value"])) : createCommentVNode("v-if", true),
494
- createVNode(_component_el_options, null, {
495
- default: withCtx(() => [
496
- renderSlot(_ctx.$slots, "default", {}, () => [
497
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
498
- var _a;
499
- return openBlock(), createElementBlock(Fragment, { key: index }, [
500
- ((_a = _ctx.getOptions(option)) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_el_option_group, {
501
- key: 0,
502
- label: _ctx.getLabel(option),
503
- disabled: _ctx.getDisabled(option)
504
- }, {
505
- default: withCtx(() => [
506
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getOptions(option), (item) => {
507
- return openBlock(), createBlock(_component_el_option, mergeProps({
508
- key: _ctx.getValue(item)
509
- }, _ctx.getOptionProps(item)), null, 16);
510
- }), 128))
511
- ]),
512
- _: 2
513
- }, 1032, ["label", "disabled"])) : (openBlock(), createBlock(_component_el_option, normalizeProps(mergeProps({ key: 1 }, _ctx.getOptionProps(option))), null, 16))
514
- ], 64);
515
- }), 128))
516
- ])
517
- ]),
518
- _: 3
519
- })
520
- ]),
521
- _: 3
522
- }, 8, ["id", "wrap-class", "view-class", "class", "aria-label", "onScroll"]), [
523
- [vShow, _ctx.states.options.size > 0 && !_ctx.loading]
524
- ]),
525
- _ctx.$slots.loading && _ctx.loading ? (openBlock(), createElementBlock("div", {
526
- key: 1,
527
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
528
- }, [
529
- renderSlot(_ctx.$slots, "loading")
530
- ], 2)) : _ctx.loading || _ctx.filteredOptionsCount === 0 ? (openBlock(), createElementBlock("div", {
531
- key: 2,
532
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
533
- }, [
534
- renderSlot(_ctx.$slots, "empty", {}, () => [
535
- createElementVNode("span", null, toDisplayString(_ctx.emptyText), 1)
536
- ])
537
- ], 2)) : createCommentVNode("v-if", true),
538
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
539
- key: 3,
540
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer")),
541
- onClick: withModifiers(() => {
542
- }, ["stop"])
543
- }, [
544
- renderSlot(_ctx.$slots, "footer")
545
- ], 10, ["onClick"])) : createCommentVNode("v-if", true)
546
- ]),
547
- _: 3
548
- }, 512)
549
- ]),
550
- _: 3
551
- }, 8, ["visible", "placement", "teleported", "popper-class", "popper-style", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
552
- ], 16, ["onMouseleave"])), [
553
- [_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
554
- ]);
555
- }
556
- var Select = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "select.vue"]]);
146
+ const selectEmits = {
147
+ [UPDATE_MODEL_EVENT]: (val) => true,
148
+ [CHANGE_EVENT]: (val) => true,
149
+ "popup-scroll": scrollbarEmits.scroll,
150
+ "remove-tag": (val) => true,
151
+ "visible-change": (visible) => true,
152
+ focus: (evt) => evt instanceof FocusEvent,
153
+ blur: (evt) => evt instanceof FocusEvent,
154
+ clear: () => true
155
+ };
557
156
 
558
- export { Select as default };
157
+ export { selectEmits, selectProps };
559
158
  //# sourceMappingURL=select.mjs.map