element-plus 2.5.0 → 2.5.2

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 (497) hide show
  1. package/README.md +0 -5
  2. package/attributes.json +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.full.js +542 -528
  5. package/dist/index.full.min.js +21 -27
  6. package/dist/index.full.min.js.map +1 -1
  7. package/dist/index.full.min.mjs +21 -27
  8. package/dist/index.full.min.mjs.map +1 -1
  9. package/dist/index.full.mjs +543 -529
  10. package/dist/locale/af.js +1 -1
  11. package/dist/locale/af.min.js +1 -1
  12. package/dist/locale/af.min.mjs +1 -1
  13. package/dist/locale/af.mjs +1 -1
  14. package/dist/locale/ar-eg.js +1 -1
  15. package/dist/locale/ar-eg.min.js +1 -1
  16. package/dist/locale/ar-eg.min.mjs +1 -1
  17. package/dist/locale/ar-eg.mjs +1 -1
  18. package/dist/locale/ar.js +1 -1
  19. package/dist/locale/ar.min.js +1 -1
  20. package/dist/locale/ar.min.mjs +1 -1
  21. package/dist/locale/ar.mjs +1 -1
  22. package/dist/locale/az.js +1 -1
  23. package/dist/locale/az.min.js +1 -1
  24. package/dist/locale/az.min.mjs +1 -1
  25. package/dist/locale/az.mjs +1 -1
  26. package/dist/locale/bg.js +1 -1
  27. package/dist/locale/bg.min.js +1 -1
  28. package/dist/locale/bg.min.mjs +1 -1
  29. package/dist/locale/bg.mjs +1 -1
  30. package/dist/locale/bn.js +1 -1
  31. package/dist/locale/bn.min.js +1 -1
  32. package/dist/locale/bn.min.mjs +1 -1
  33. package/dist/locale/bn.mjs +1 -1
  34. package/dist/locale/ca.js +1 -1
  35. package/dist/locale/ca.min.js +1 -1
  36. package/dist/locale/ca.min.mjs +1 -1
  37. package/dist/locale/ca.mjs +1 -1
  38. package/dist/locale/ckb.js +1 -1
  39. package/dist/locale/ckb.min.js +1 -1
  40. package/dist/locale/ckb.min.mjs +1 -1
  41. package/dist/locale/ckb.mjs +1 -1
  42. package/dist/locale/cs.js +1 -1
  43. package/dist/locale/cs.min.js +1 -1
  44. package/dist/locale/cs.min.mjs +1 -1
  45. package/dist/locale/cs.mjs +1 -1
  46. package/dist/locale/da.js +1 -1
  47. package/dist/locale/da.min.js +1 -1
  48. package/dist/locale/da.min.mjs +1 -1
  49. package/dist/locale/da.mjs +1 -1
  50. package/dist/locale/de.js +1 -1
  51. package/dist/locale/de.min.js +1 -1
  52. package/dist/locale/de.min.mjs +1 -1
  53. package/dist/locale/de.mjs +1 -1
  54. package/dist/locale/el.js +1 -1
  55. package/dist/locale/el.min.js +1 -1
  56. package/dist/locale/el.min.mjs +1 -1
  57. package/dist/locale/el.mjs +1 -1
  58. package/dist/locale/en.js +1 -1
  59. package/dist/locale/en.min.js +1 -1
  60. package/dist/locale/en.min.mjs +1 -1
  61. package/dist/locale/en.mjs +1 -1
  62. package/dist/locale/eo.js +1 -1
  63. package/dist/locale/eo.min.js +1 -1
  64. package/dist/locale/eo.min.mjs +1 -1
  65. package/dist/locale/eo.mjs +1 -1
  66. package/dist/locale/es.js +1 -1
  67. package/dist/locale/es.min.js +1 -1
  68. package/dist/locale/es.min.mjs +1 -1
  69. package/dist/locale/es.mjs +1 -1
  70. package/dist/locale/et.js +1 -1
  71. package/dist/locale/et.min.js +1 -1
  72. package/dist/locale/et.min.mjs +1 -1
  73. package/dist/locale/et.mjs +1 -1
  74. package/dist/locale/eu.js +1 -1
  75. package/dist/locale/eu.min.js +1 -1
  76. package/dist/locale/eu.min.mjs +1 -1
  77. package/dist/locale/eu.mjs +1 -1
  78. package/dist/locale/fa.js +1 -1
  79. package/dist/locale/fa.min.js +1 -1
  80. package/dist/locale/fa.min.mjs +1 -1
  81. package/dist/locale/fa.mjs +1 -1
  82. package/dist/locale/fi.js +1 -1
  83. package/dist/locale/fi.min.js +1 -1
  84. package/dist/locale/fi.min.mjs +1 -1
  85. package/dist/locale/fi.mjs +1 -1
  86. package/dist/locale/fr.js +1 -1
  87. package/dist/locale/fr.min.js +1 -1
  88. package/dist/locale/fr.min.mjs +1 -1
  89. package/dist/locale/fr.mjs +1 -1
  90. package/dist/locale/he.js +1 -1
  91. package/dist/locale/he.min.js +1 -1
  92. package/dist/locale/he.min.mjs +1 -1
  93. package/dist/locale/he.mjs +1 -1
  94. package/dist/locale/hr.js +1 -1
  95. package/dist/locale/hr.min.js +1 -1
  96. package/dist/locale/hr.min.mjs +1 -1
  97. package/dist/locale/hr.mjs +1 -1
  98. package/dist/locale/hu.js +1 -1
  99. package/dist/locale/hu.min.js +1 -1
  100. package/dist/locale/hu.min.mjs +1 -1
  101. package/dist/locale/hu.mjs +1 -1
  102. package/dist/locale/hy-am.js +1 -1
  103. package/dist/locale/hy-am.min.js +1 -1
  104. package/dist/locale/hy-am.min.mjs +1 -1
  105. package/dist/locale/hy-am.mjs +1 -1
  106. package/dist/locale/id.js +1 -1
  107. package/dist/locale/id.min.js +1 -1
  108. package/dist/locale/id.min.mjs +1 -1
  109. package/dist/locale/id.mjs +1 -1
  110. package/dist/locale/it.js +1 -1
  111. package/dist/locale/it.min.js +1 -1
  112. package/dist/locale/it.min.mjs +1 -1
  113. package/dist/locale/it.mjs +1 -1
  114. package/dist/locale/ja.js +1 -1
  115. package/dist/locale/ja.min.js +1 -1
  116. package/dist/locale/ja.min.mjs +1 -1
  117. package/dist/locale/ja.mjs +1 -1
  118. package/dist/locale/kk.js +1 -1
  119. package/dist/locale/kk.min.js +1 -1
  120. package/dist/locale/kk.min.mjs +1 -1
  121. package/dist/locale/kk.mjs +1 -1
  122. package/dist/locale/km.js +1 -1
  123. package/dist/locale/km.min.js +1 -1
  124. package/dist/locale/km.min.mjs +1 -1
  125. package/dist/locale/km.mjs +1 -1
  126. package/dist/locale/ko.js +1 -1
  127. package/dist/locale/ko.min.js +1 -1
  128. package/dist/locale/ko.min.mjs +1 -1
  129. package/dist/locale/ko.mjs +1 -1
  130. package/dist/locale/ku.js +1 -1
  131. package/dist/locale/ku.min.js +1 -1
  132. package/dist/locale/ku.min.mjs +1 -1
  133. package/dist/locale/ku.mjs +1 -1
  134. package/dist/locale/ky.js +1 -1
  135. package/dist/locale/ky.min.js +1 -1
  136. package/dist/locale/ky.min.mjs +1 -1
  137. package/dist/locale/ky.mjs +1 -1
  138. package/dist/locale/lt.js +1 -1
  139. package/dist/locale/lt.min.js +1 -1
  140. package/dist/locale/lt.min.mjs +1 -1
  141. package/dist/locale/lt.mjs +1 -1
  142. package/dist/locale/lv.js +1 -1
  143. package/dist/locale/lv.min.js +1 -1
  144. package/dist/locale/lv.min.mjs +1 -1
  145. package/dist/locale/lv.mjs +1 -1
  146. package/dist/locale/mg.js +1 -1
  147. package/dist/locale/mg.min.js +1 -1
  148. package/dist/locale/mg.min.mjs +1 -1
  149. package/dist/locale/mg.mjs +1 -1
  150. package/dist/locale/mn.js +1 -1
  151. package/dist/locale/mn.min.js +1 -1
  152. package/dist/locale/mn.min.mjs +1 -1
  153. package/dist/locale/mn.mjs +1 -1
  154. package/dist/locale/nb-no.js +1 -1
  155. package/dist/locale/nb-no.min.js +1 -1
  156. package/dist/locale/nb-no.min.mjs +1 -1
  157. package/dist/locale/nb-no.mjs +1 -1
  158. package/dist/locale/nl.js +1 -1
  159. package/dist/locale/nl.min.js +1 -1
  160. package/dist/locale/nl.min.mjs +1 -1
  161. package/dist/locale/nl.mjs +1 -1
  162. package/dist/locale/pa.js +1 -1
  163. package/dist/locale/pa.min.js +1 -1
  164. package/dist/locale/pa.min.mjs +1 -1
  165. package/dist/locale/pa.mjs +1 -1
  166. package/dist/locale/pl.js +1 -1
  167. package/dist/locale/pl.min.js +1 -1
  168. package/dist/locale/pl.min.mjs +1 -1
  169. package/dist/locale/pl.mjs +1 -1
  170. package/dist/locale/pt-br.js +1 -1
  171. package/dist/locale/pt-br.min.js +1 -1
  172. package/dist/locale/pt-br.min.mjs +1 -1
  173. package/dist/locale/pt-br.mjs +1 -1
  174. package/dist/locale/pt.js +1 -1
  175. package/dist/locale/pt.min.js +1 -1
  176. package/dist/locale/pt.min.mjs +1 -1
  177. package/dist/locale/pt.mjs +1 -1
  178. package/dist/locale/ro.js +1 -1
  179. package/dist/locale/ro.min.js +1 -1
  180. package/dist/locale/ro.min.mjs +1 -1
  181. package/dist/locale/ro.mjs +1 -1
  182. package/dist/locale/ru.js +1 -1
  183. package/dist/locale/ru.min.js +1 -1
  184. package/dist/locale/ru.min.mjs +1 -1
  185. package/dist/locale/ru.mjs +1 -1
  186. package/dist/locale/sk.js +1 -1
  187. package/dist/locale/sk.min.js +1 -1
  188. package/dist/locale/sk.min.mjs +1 -1
  189. package/dist/locale/sk.mjs +1 -1
  190. package/dist/locale/sl.js +1 -1
  191. package/dist/locale/sl.min.js +1 -1
  192. package/dist/locale/sl.min.mjs +1 -1
  193. package/dist/locale/sl.mjs +1 -1
  194. package/dist/locale/sr.js +1 -1
  195. package/dist/locale/sr.min.js +1 -1
  196. package/dist/locale/sr.min.mjs +1 -1
  197. package/dist/locale/sr.mjs +1 -1
  198. package/dist/locale/sv.js +1 -1
  199. package/dist/locale/sv.min.js +1 -1
  200. package/dist/locale/sv.min.mjs +1 -1
  201. package/dist/locale/sv.mjs +1 -1
  202. package/dist/locale/sw.js +1 -1
  203. package/dist/locale/sw.min.js +1 -1
  204. package/dist/locale/sw.min.mjs +1 -1
  205. package/dist/locale/sw.mjs +1 -1
  206. package/dist/locale/ta.js +1 -1
  207. package/dist/locale/ta.min.js +1 -1
  208. package/dist/locale/ta.min.mjs +1 -1
  209. package/dist/locale/ta.mjs +1 -1
  210. package/dist/locale/th.js +1 -1
  211. package/dist/locale/th.min.js +1 -1
  212. package/dist/locale/th.min.mjs +1 -1
  213. package/dist/locale/th.mjs +1 -1
  214. package/dist/locale/tk.js +1 -1
  215. package/dist/locale/tk.min.js +1 -1
  216. package/dist/locale/tk.min.mjs +1 -1
  217. package/dist/locale/tk.mjs +1 -1
  218. package/dist/locale/tr.js +1 -1
  219. package/dist/locale/tr.min.js +1 -1
  220. package/dist/locale/tr.min.mjs +1 -1
  221. package/dist/locale/tr.mjs +1 -1
  222. package/dist/locale/ug-cn.js +1 -1
  223. package/dist/locale/ug-cn.min.js +1 -1
  224. package/dist/locale/ug-cn.min.mjs +1 -1
  225. package/dist/locale/ug-cn.mjs +1 -1
  226. package/dist/locale/uk.js +1 -1
  227. package/dist/locale/uk.min.js +1 -1
  228. package/dist/locale/uk.min.mjs +1 -1
  229. package/dist/locale/uk.mjs +1 -1
  230. package/dist/locale/uz-uz.js +1 -1
  231. package/dist/locale/uz-uz.min.js +1 -1
  232. package/dist/locale/uz-uz.min.mjs +1 -1
  233. package/dist/locale/uz-uz.mjs +1 -1
  234. package/dist/locale/vi.js +1 -1
  235. package/dist/locale/vi.min.js +1 -1
  236. package/dist/locale/vi.min.mjs +1 -1
  237. package/dist/locale/vi.mjs +1 -1
  238. package/dist/locale/zh-cn.js +1 -1
  239. package/dist/locale/zh-cn.min.js +1 -1
  240. package/dist/locale/zh-cn.min.mjs +1 -1
  241. package/dist/locale/zh-cn.mjs +1 -1
  242. package/dist/locale/zh-tw.js +1 -1
  243. package/dist/locale/zh-tw.min.js +1 -1
  244. package/dist/locale/zh-tw.min.mjs +1 -1
  245. package/dist/locale/zh-tw.mjs +1 -1
  246. package/es/components/autocomplete/index.d.ts +1 -1
  247. package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  248. package/es/components/autocomplete/src/autocomplete2.mjs +2 -2
  249. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  250. package/es/components/cascader-panel/src/menu.mjs +3 -4
  251. package/es/components/cascader-panel/src/menu.mjs.map +1 -1
  252. package/es/components/checkbox/src/composables/use-checkbox-model.mjs +1 -1
  253. package/es/components/checkbox/src/composables/use-checkbox-model.mjs.map +1 -1
  254. package/es/components/collapse/index.d.ts +8 -8
  255. package/es/components/collapse/src/collapse-item.d.ts +1 -1
  256. package/es/components/collapse/src/collapse-item.mjs +1 -2
  257. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  258. package/es/components/collapse/src/collapse-item.vue.d.ts +4 -4
  259. package/es/components/collapse/src/use-collapse-item.d.ts +1 -1
  260. package/es/components/collapse/src/use-collapse-item.mjs +11 -6
  261. package/es/components/collapse/src/use-collapse-item.mjs.map +1 -1
  262. package/es/components/collection/index.mjs +1 -1
  263. package/es/components/collection/src/collection.mjs +62 -10
  264. package/es/components/collection/src/collection.mjs.map +1 -1
  265. package/es/components/collection/src/collection2.mjs +10 -62
  266. package/es/components/collection/src/collection2.mjs.map +1 -1
  267. package/es/components/config-provider/index.d.ts +1 -1
  268. package/es/components/config-provider/src/config-provider.d.ts +1 -1
  269. package/es/components/countdown/index.mjs +2 -2
  270. package/es/components/countdown/src/countdown.mjs +23 -74
  271. package/es/components/countdown/src/countdown.mjs.map +1 -1
  272. package/es/components/countdown/src/countdown2.mjs +74 -23
  273. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  274. package/es/components/descriptions/index.mjs +2 -2
  275. package/es/components/descriptions/src/description.mjs +25 -112
  276. package/es/components/descriptions/src/description.mjs.map +1 -1
  277. package/es/components/descriptions/src/description2.mjs +112 -25
  278. package/es/components/descriptions/src/description2.mjs.map +1 -1
  279. package/es/components/dialog/src/dialog-content.mjs +29 -89
  280. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  281. package/es/components/dialog/src/dialog-content2.mjs +89 -29
  282. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  283. package/es/components/dialog/src/dialog.mjs +1 -1
  284. package/es/components/dialog/src/dialog2.mjs +1 -1
  285. package/es/components/drawer/index.d.ts +209 -16
  286. package/es/components/drawer/src/drawer.vue.d.ts +209 -16
  287. package/es/components/drawer/src/drawer2.mjs +137 -132
  288. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  289. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  290. package/es/components/dropdown/src/dropdown.mjs +1 -1
  291. package/es/components/dropdown/src/useDropdown.mjs +2 -2
  292. package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
  293. package/es/components/image/index.d.ts +37 -11
  294. package/es/components/image/index.mjs +2 -2
  295. package/es/components/image/src/image.d.ts +6 -1
  296. package/es/components/image/src/image.mjs +226 -65
  297. package/es/components/image/src/image.mjs.map +1 -1
  298. package/es/components/image/src/image.vue.d.ts +37 -11
  299. package/es/components/image/src/image2.mjs +64 -227
  300. package/es/components/image/src/image2.mjs.map +1 -1
  301. package/es/components/image-viewer/index.d.ts +19 -6
  302. package/es/components/image-viewer/src/image-viewer.d.ts +6 -1
  303. package/es/components/image-viewer/src/image-viewer.mjs +1 -2
  304. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  305. package/es/components/image-viewer/src/image-viewer.vue.d.ts +19 -6
  306. package/es/components/image-viewer/src/image-viewer2.mjs +6 -9
  307. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  308. package/es/components/index.mjs +3 -3
  309. package/es/components/input/src/input2.mjs +3 -1
  310. package/es/components/input/src/input2.mjs.map +1 -1
  311. package/es/components/pagination/src/components/sizes.vue.d.ts +5 -0
  312. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  313. package/es/components/select/index.d.ts +5 -0
  314. package/es/components/select/src/select.vue.d.ts +5 -0
  315. package/es/components/select/src/select2.mjs +41 -33
  316. package/es/components/select/src/select2.mjs.map +1 -1
  317. package/es/components/select/src/useSelect.d.ts +5 -0
  318. package/es/components/select/src/useSelect.mjs +41 -13
  319. package/es/components/select/src/useSelect.mjs.map +1 -1
  320. package/es/components/select-v2/index.d.ts +22 -12
  321. package/es/components/select-v2/src/defaults.d.ts +2 -2
  322. package/es/components/select-v2/src/defaults.mjs +2 -8
  323. package/es/components/select-v2/src/defaults.mjs.map +1 -1
  324. package/es/components/select-v2/src/select-dropdown.d.ts +5 -1
  325. package/es/components/select-v2/src/select-dropdown.mjs +6 -5
  326. package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
  327. package/es/components/select-v2/src/select.mjs +55 -19
  328. package/es/components/select-v2/src/select.mjs.map +1 -1
  329. package/es/components/select-v2/src/select.vue.d.ts +11 -6
  330. package/es/components/select-v2/src/useSelect.d.ts +5 -0
  331. package/es/components/select-v2/src/useSelect.mjs +42 -3
  332. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  333. package/es/components/space/src/use-space.mjs +7 -8
  334. package/es/components/space/src/use-space.mjs.map +1 -1
  335. package/es/components/table/index.d.ts +10 -10
  336. package/es/components/table/src/table/defaults.d.ts +2 -2
  337. package/es/components/table/src/table-body/defaults.d.ts +1 -1
  338. package/es/components/table/src/table-body/events-helper.mjs +1 -4
  339. package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
  340. package/es/components/table/src/table-body/index.d.ts +2 -2
  341. package/es/components/table/src/table-column/defaults.d.ts +1 -1
  342. package/es/components/table/src/table-column/index.d.ts +3 -3
  343. package/es/components/table/src/table.vue.d.ts +4 -4
  344. package/es/components/table/src/util.d.ts +9 -76
  345. package/es/components/table/src/util.mjs +36 -105
  346. package/es/components/table/src/util.mjs.map +1 -1
  347. package/es/components/time-select/index.d.ts +20 -0
  348. package/es/components/time-select/src/time-select.vue.d.ts +10 -0
  349. package/es/components/tour/index.d.ts +9 -9
  350. package/es/components/tour/src/helper.d.ts +1 -1
  351. package/es/components/tour/src/helper.mjs +20 -7
  352. package/es/components/tour/src/helper.mjs.map +1 -1
  353. package/es/components/tour/src/step.d.ts +1 -1
  354. package/es/components/tour/src/step.mjs +1 -1
  355. package/es/components/tour/src/step.mjs.map +1 -1
  356. package/es/components/tour/src/step.vue.d.ts +3 -3
  357. package/es/components/tour/src/tour.vue.d.ts +3 -3
  358. package/es/components/tour/src/types.d.ts +1 -1
  359. package/es/components/tree/src/model/tree-store.mjs +12 -5
  360. package/es/components/tree/src/model/tree-store.mjs.map +1 -1
  361. package/es/index.mjs +3 -3
  362. package/es/utils/rand.d.ts +2 -0
  363. package/es/utils/rand.mjs.map +1 -1
  364. package/es/version.d.ts +1 -1
  365. package/es/version.mjs +1 -1
  366. package/es/version.mjs.map +1 -1
  367. package/lib/components/autocomplete/index.d.ts +1 -1
  368. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  369. package/lib/components/autocomplete/src/autocomplete2.js +10 -10
  370. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  371. package/lib/components/cascader-panel/src/menu.js +3 -4
  372. package/lib/components/cascader-panel/src/menu.js.map +1 -1
  373. package/lib/components/checkbox/src/composables/use-checkbox-model.js +1 -1
  374. package/lib/components/checkbox/src/composables/use-checkbox-model.js.map +1 -1
  375. package/lib/components/collapse/index.d.ts +8 -8
  376. package/lib/components/collapse/src/collapse-item.d.ts +1 -1
  377. package/lib/components/collapse/src/collapse-item.js +1 -2
  378. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  379. package/lib/components/collapse/src/collapse-item.vue.d.ts +4 -4
  380. package/lib/components/collapse/src/use-collapse-item.d.ts +1 -1
  381. package/lib/components/collapse/src/use-collapse-item.js +11 -6
  382. package/lib/components/collapse/src/use-collapse-item.js.map +1 -1
  383. package/lib/components/collection/index.js +1 -1
  384. package/lib/components/collection/src/collection.js +62 -9
  385. package/lib/components/collection/src/collection.js.map +1 -1
  386. package/lib/components/collection/src/collection2.js +9 -62
  387. package/lib/components/collection/src/collection2.js.map +1 -1
  388. package/lib/components/config-provider/index.d.ts +1 -1
  389. package/lib/components/config-provider/src/config-provider.d.ts +1 -1
  390. package/lib/components/countdown/index.js +2 -2
  391. package/lib/components/countdown/src/countdown.js +24 -74
  392. package/lib/components/countdown/src/countdown.js.map +1 -1
  393. package/lib/components/countdown/src/countdown2.js +74 -24
  394. package/lib/components/countdown/src/countdown2.js.map +1 -1
  395. package/lib/components/descriptions/index.js +2 -2
  396. package/lib/components/descriptions/src/description.js +25 -112
  397. package/lib/components/descriptions/src/description.js.map +1 -1
  398. package/lib/components/descriptions/src/description2.js +112 -25
  399. package/lib/components/descriptions/src/description2.js.map +1 -1
  400. package/lib/components/dialog/src/dialog-content.js +29 -88
  401. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  402. package/lib/components/dialog/src/dialog-content2.js +88 -29
  403. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  404. package/lib/components/dialog/src/dialog.js +1 -1
  405. package/lib/components/dialog/src/dialog2.js +1 -1
  406. package/lib/components/drawer/index.d.ts +209 -16
  407. package/lib/components/drawer/src/drawer.vue.d.ts +209 -16
  408. package/lib/components/drawer/src/drawer2.js +145 -140
  409. package/lib/components/drawer/src/drawer2.js.map +1 -1
  410. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  411. package/lib/components/dropdown/src/dropdown.js +1 -1
  412. package/lib/components/dropdown/src/useDropdown.js +2 -2
  413. package/lib/components/dropdown/src/useDropdown.js.map +1 -1
  414. package/lib/components/image/index.d.ts +37 -11
  415. package/lib/components/image/index.js +2 -2
  416. package/lib/components/image/src/image.d.ts +6 -1
  417. package/lib/components/image/src/image.js +225 -65
  418. package/lib/components/image/src/image.js.map +1 -1
  419. package/lib/components/image/src/image.vue.d.ts +37 -11
  420. package/lib/components/image/src/image2.js +64 -226
  421. package/lib/components/image/src/image2.js.map +1 -1
  422. package/lib/components/image-viewer/index.d.ts +19 -6
  423. package/lib/components/image-viewer/src/image-viewer.d.ts +6 -1
  424. package/lib/components/image-viewer/src/image-viewer.js +1 -2
  425. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  426. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +19 -6
  427. package/lib/components/image-viewer/src/image-viewer2.js +6 -9
  428. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  429. package/lib/components/index.js +3 -3
  430. package/lib/components/input/src/input2.js +3 -1
  431. package/lib/components/input/src/input2.js.map +1 -1
  432. package/lib/components/pagination/src/components/sizes.vue.d.ts +5 -0
  433. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  434. package/lib/components/select/index.d.ts +5 -0
  435. package/lib/components/select/src/select.vue.d.ts +5 -0
  436. package/lib/components/select/src/select2.js +40 -32
  437. package/lib/components/select/src/select2.js.map +1 -1
  438. package/lib/components/select/src/useSelect.d.ts +5 -0
  439. package/lib/components/select/src/useSelect.js +39 -11
  440. package/lib/components/select/src/useSelect.js.map +1 -1
  441. package/lib/components/select-v2/index.d.ts +22 -12
  442. package/lib/components/select-v2/src/defaults.d.ts +2 -2
  443. package/lib/components/select-v2/src/defaults.js +2 -8
  444. package/lib/components/select-v2/src/defaults.js.map +1 -1
  445. package/lib/components/select-v2/src/select-dropdown.d.ts +5 -1
  446. package/lib/components/select-v2/src/select-dropdown.js +6 -5
  447. package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
  448. package/lib/components/select-v2/src/select.js +54 -18
  449. package/lib/components/select-v2/src/select.js.map +1 -1
  450. package/lib/components/select-v2/src/select.vue.d.ts +11 -6
  451. package/lib/components/select-v2/src/useSelect.d.ts +5 -0
  452. package/lib/components/select-v2/src/useSelect.js +42 -3
  453. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  454. package/lib/components/space/src/use-space.js +7 -8
  455. package/lib/components/space/src/use-space.js.map +1 -1
  456. package/lib/components/table/index.d.ts +10 -10
  457. package/lib/components/table/src/table/defaults.d.ts +2 -2
  458. package/lib/components/table/src/table-body/defaults.d.ts +1 -1
  459. package/lib/components/table/src/table-body/events-helper.js +1 -4
  460. package/lib/components/table/src/table-body/events-helper.js.map +1 -1
  461. package/lib/components/table/src/table-body/index.d.ts +2 -2
  462. package/lib/components/table/src/table-column/defaults.d.ts +1 -1
  463. package/lib/components/table/src/table-column/index.d.ts +3 -3
  464. package/lib/components/table/src/table.vue.d.ts +4 -4
  465. package/lib/components/table/src/util.d.ts +9 -76
  466. package/lib/components/table/src/util.js +35 -108
  467. package/lib/components/table/src/util.js.map +1 -1
  468. package/lib/components/time-select/index.d.ts +20 -0
  469. package/lib/components/time-select/src/time-select.vue.d.ts +10 -0
  470. package/lib/components/tour/index.d.ts +9 -9
  471. package/lib/components/tour/src/helper.d.ts +1 -1
  472. package/lib/components/tour/src/helper.js +19 -6
  473. package/lib/components/tour/src/helper.js.map +1 -1
  474. package/lib/components/tour/src/step.d.ts +1 -1
  475. package/lib/components/tour/src/step.js +1 -1
  476. package/lib/components/tour/src/step.js.map +1 -1
  477. package/lib/components/tour/src/step.vue.d.ts +3 -3
  478. package/lib/components/tour/src/tour.vue.d.ts +3 -3
  479. package/lib/components/tour/src/types.d.ts +1 -1
  480. package/lib/components/tree/src/model/tree-store.js +12 -5
  481. package/lib/components/tree/src/model/tree-store.js.map +1 -1
  482. package/lib/index.js +3 -3
  483. package/lib/utils/rand.d.ts +2 -0
  484. package/lib/utils/rand.js.map +1 -1
  485. package/lib/version.d.ts +1 -1
  486. package/lib/version.js +1 -1
  487. package/lib/version.js.map +1 -1
  488. package/package.json +2 -2
  489. package/tags.json +1 -1
  490. package/theme-chalk/el-select-dropdown-v2.css +1 -1
  491. package/theme-chalk/el-select-dropdown.css +1 -1
  492. package/theme-chalk/el-select-v2.css +1 -1
  493. package/theme-chalk/el-select.css +1 -1
  494. package/theme-chalk/index.css +1 -1
  495. package/theme-chalk/src/select-dropdown.scss +8 -0
  496. package/theme-chalk/src/select.scss +2 -1
  497. package/web-types.json +1 -1
@@ -1,6 +1,6 @@
1
- /*! Element Plus v2.5.0 */
1
+ /*! Element Plus v2.5.2 */
2
2
 
3
- import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, isRef, inject, onUnmounted, h as h$1, Teleport, onBeforeMount, provide, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, cloneVNode, Text as Text$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, vModelText, toHandlers, guardReactiveProps, markRaw, effectScope, resolveDirective, camelize as camelize$1, createApp, shallowReactive, render } from 'vue';
3
+ import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, isRef, inject, onUnmounted, h as h$1, Teleport, onBeforeMount, provide, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, cloneVNode, Text as Text$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, vModelText, toHandlers, guardReactiveProps, markRaw, effectScope, resolveDirective, render, camelize as camelize$1, createApp, shallowReactive } from 'vue';
4
4
 
5
5
  const FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])`;
6
6
  const isVisible = (element) => {
@@ -8691,8 +8691,6 @@ const isKorean = (text) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(text);
8691
8691
  const rAF = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16);
8692
8692
  const cAF = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle);
8693
8693
 
8694
- const generateId = () => Math.floor(Math.random() * 1e4);
8695
-
8696
8694
  const mutable = (val) => val;
8697
8695
 
8698
8696
  const DEFAULT_EXCLUDE_KEYS = ["class", "style"];
@@ -11561,7 +11559,7 @@ const ConfigProvider = defineComponent({
11561
11559
 
11562
11560
  const ElConfigProvider = withInstall(ConfigProvider);
11563
11561
 
11564
- const version$1 = "2.5.0";
11562
+ const version$1 = "2.5.2";
11565
11563
 
11566
11564
  const makeInstaller = (components = []) => {
11567
11565
  const install = (app, options) => {
@@ -11611,11 +11609,11 @@ var _export_sfc = (sfc, props) => {
11611
11609
  };
11612
11610
 
11613
11611
  const COMPONENT_NAME$n = "ElAffix";
11614
- const __default__$1H = defineComponent({
11612
+ const __default__$1I = defineComponent({
11615
11613
  name: COMPONENT_NAME$n
11616
11614
  });
11617
11615
  const _sfc_main$2n = /* @__PURE__ */ defineComponent({
11618
- ...__default__$1H,
11616
+ ...__default__$1I,
11619
11617
  props: affixProps,
11620
11618
  emits: affixEmits,
11621
11619
  setup(__props, { expose, emit }) {
@@ -11731,12 +11729,12 @@ const iconProps = buildProps({
11731
11729
  }
11732
11730
  });
11733
11731
 
11734
- const __default__$1G = defineComponent({
11732
+ const __default__$1H = defineComponent({
11735
11733
  name: "ElIcon",
11736
11734
  inheritAttrs: false
11737
11735
  });
11738
11736
  const _sfc_main$2m = /* @__PURE__ */ defineComponent({
11739
- ...__default__$1G,
11737
+ ...__default__$1H,
11740
11738
  props: iconProps,
11741
11739
  setup(__props) {
11742
11740
  const props = __props;
@@ -11799,11 +11797,11 @@ const alertEmits = {
11799
11797
  close: (evt) => evt instanceof MouseEvent
11800
11798
  };
11801
11799
 
11802
- const __default__$1F = defineComponent({
11800
+ const __default__$1G = defineComponent({
11803
11801
  name: "ElAlert"
11804
11802
  });
11805
11803
  const _sfc_main$2l = /* @__PURE__ */ defineComponent({
11806
- ...__default__$1F,
11804
+ ...__default__$1G,
11807
11805
  props: alertProps,
11808
11806
  emits: alertEmits,
11809
11807
  setup(__props, { emit }) {
@@ -12053,11 +12051,11 @@ const filterFields = (fields, props) => {
12053
12051
  };
12054
12052
 
12055
12053
  const COMPONENT_NAME$m = "ElForm";
12056
- const __default__$1E = defineComponent({
12054
+ const __default__$1F = defineComponent({
12057
12055
  name: COMPONENT_NAME$m
12058
12056
  });
12059
12057
  const _sfc_main$2k = /* @__PURE__ */ defineComponent({
12060
- ...__default__$1E,
12058
+ ...__default__$1F,
12061
12059
  props: formProps,
12062
12060
  emits: formEmits,
12063
12061
  setup(__props, { expose, emit }) {
@@ -13369,11 +13367,11 @@ var FormLabelWrap = defineComponent({
13369
13367
  });
13370
13368
 
13371
13369
  const _hoisted_1$15 = ["role", "aria-labelledby"];
13372
- const __default__$1D = defineComponent({
13370
+ const __default__$1E = defineComponent({
13373
13371
  name: "ElFormItem"
13374
13372
  });
13375
13373
  const _sfc_main$2j = /* @__PURE__ */ defineComponent({
13376
- ...__default__$1D,
13374
+ ...__default__$1E,
13377
13375
  props: formItemProps,
13378
13376
  setup(__props, { expose }) {
13379
13377
  const props = __props;
@@ -13863,13 +13861,13 @@ const inputEmits = {
13863
13861
 
13864
13862
  const _hoisted_1$14 = ["role"];
13865
13863
  const _hoisted_2$I = ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus"];
13866
- const _hoisted_3$i = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus"];
13867
- const __default__$1C = defineComponent({
13864
+ const _hoisted_3$i = ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus"];
13865
+ const __default__$1D = defineComponent({
13868
13866
  name: "ElInput",
13869
13867
  inheritAttrs: false
13870
13868
  });
13871
13869
  const _sfc_main$2i = /* @__PURE__ */ defineComponent({
13872
- ...__default__$1C,
13870
+ ...__default__$1D,
13873
13871
  props: inputProps,
13874
13872
  emits: inputEmits,
13875
13873
  setup(__props, { expose, emit }) {
@@ -14261,6 +14259,8 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
14261
14259
  ref: textarea,
14262
14260
  class: unref(nsTextarea).e("inner")
14263
14261
  }, unref(attrs), {
14262
+ minlength: _ctx.minlength,
14263
+ maxlength: _ctx.maxlength,
14264
14264
  tabindex: _ctx.tabindex,
14265
14265
  disabled: unref(inputDisabled),
14266
14266
  readonly: _ctx.readonly,
@@ -14573,11 +14573,11 @@ const scrollbarEmits = {
14573
14573
  };
14574
14574
 
14575
14575
  const COMPONENT_NAME$j = "ElScrollbar";
14576
- const __default__$1B = defineComponent({
14576
+ const __default__$1C = defineComponent({
14577
14577
  name: COMPONENT_NAME$j
14578
14578
  });
14579
14579
  const _sfc_main$2f = /* @__PURE__ */ defineComponent({
14580
- ...__default__$1B,
14580
+ ...__default__$1C,
14581
14581
  props: scrollbarProps,
14582
14582
  emits: scrollbarEmits,
14583
14583
  setup(__props, { expose, emit }) {
@@ -14765,12 +14765,12 @@ const popperProps = buildProps({
14765
14765
  });
14766
14766
  const usePopperProps = popperProps;
14767
14767
 
14768
- const __default__$1A = defineComponent({
14768
+ const __default__$1B = defineComponent({
14769
14769
  name: "ElPopper",
14770
14770
  inheritAttrs: false
14771
14771
  });
14772
14772
  const _sfc_main$2e = /* @__PURE__ */ defineComponent({
14773
- ...__default__$1A,
14773
+ ...__default__$1B,
14774
14774
  props: popperProps,
14775
14775
  setup(__props, { expose }) {
14776
14776
  const props = __props;
@@ -14803,12 +14803,12 @@ const popperArrowProps = buildProps({
14803
14803
  });
14804
14804
  const usePopperArrowProps = popperArrowProps;
14805
14805
 
14806
- const __default__$1z = defineComponent({
14806
+ const __default__$1A = defineComponent({
14807
14807
  name: "ElPopperArrow",
14808
14808
  inheritAttrs: false
14809
14809
  });
14810
14810
  const _sfc_main$2d = /* @__PURE__ */ defineComponent({
14811
- ...__default__$1z,
14811
+ ...__default__$1A,
14812
14812
  props: popperArrowProps,
14813
14813
  setup(__props, { expose }) {
14814
14814
  const props = __props;
@@ -14922,12 +14922,12 @@ const popperTriggerProps = buildProps({
14922
14922
  });
14923
14923
  const usePopperTriggerProps = popperTriggerProps;
14924
14924
 
14925
- const __default__$1y = defineComponent({
14925
+ const __default__$1z = defineComponent({
14926
14926
  name: "ElPopperTrigger",
14927
14927
  inheritAttrs: false
14928
14928
  });
14929
14929
  const _sfc_main$2c = /* @__PURE__ */ defineComponent({
14930
- ...__default__$1y,
14930
+ ...__default__$1z,
14931
14931
  props: popperTriggerProps,
14932
14932
  setup(__props, { expose }) {
14933
14933
  const props = __props;
@@ -15411,10 +15411,10 @@ const _sfc_main$2b = defineComponent({
15411
15411
  };
15412
15412
  }
15413
15413
  });
15414
- function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
15414
+ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
15415
15415
  return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
15416
15416
  }
15417
- var ElFocusTrap = /* @__PURE__ */ _export_sfc(_sfc_main$2b, [["render", _sfc_render$v], ["__file", "focus-trap.vue"]]);
15417
+ var ElFocusTrap = /* @__PURE__ */ _export_sfc(_sfc_main$2b, [["render", _sfc_render$u], ["__file", "focus-trap.vue"]]);
15418
15418
 
15419
15419
  const POSITIONING_STRATEGIES = ["fixed", "absolute"];
15420
15420
  const popperCoreConfigProps = buildProps({
@@ -15708,11 +15708,11 @@ const usePopperContentFocusTrap = (props, emit) => {
15708
15708
  };
15709
15709
  };
15710
15710
 
15711
- const __default__$1x = defineComponent({
15711
+ const __default__$1y = defineComponent({
15712
15712
  name: "ElPopperContent"
15713
15713
  });
15714
15714
  const _sfc_main$2a = /* @__PURE__ */ defineComponent({
15715
- ...__default__$1x,
15715
+ ...__default__$1y,
15716
15716
  props: popperContentProps,
15717
15717
  emits: popperContentEmits,
15718
15718
  setup(__props, { expose, emit }) {
@@ -15913,11 +15913,11 @@ const whenTrigger = (trigger, type, handler) => {
15913
15913
  };
15914
15914
  };
15915
15915
 
15916
- const __default__$1w = defineComponent({
15916
+ const __default__$1x = defineComponent({
15917
15917
  name: "ElTooltipTrigger"
15918
15918
  });
15919
15919
  const _sfc_main$29 = /* @__PURE__ */ defineComponent({
15920
- ...__default__$1w,
15920
+ ...__default__$1x,
15921
15921
  props: useTooltipTriggerProps,
15922
15922
  setup(__props, { expose }) {
15923
15923
  const props = __props;
@@ -15978,12 +15978,12 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
15978
15978
  });
15979
15979
  var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$29, [["__file", "trigger.vue"]]);
15980
15980
 
15981
- const __default__$1v = defineComponent({
15981
+ const __default__$1w = defineComponent({
15982
15982
  name: "ElTooltipContent",
15983
15983
  inheritAttrs: false
15984
15984
  });
15985
15985
  const _sfc_main$28 = /* @__PURE__ */ defineComponent({
15986
- ...__default__$1v,
15986
+ ...__default__$1w,
15987
15987
  props: useTooltipContentProps,
15988
15988
  setup(__props, { expose }) {
15989
15989
  const props = __props;
@@ -16145,11 +16145,11 @@ var ElTooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main$28, [["__file", "co
16145
16145
 
16146
16146
  const _hoisted_1$13 = ["innerHTML"];
16147
16147
  const _hoisted_2$H = { key: 1 };
16148
- const __default__$1u = defineComponent({
16148
+ const __default__$1v = defineComponent({
16149
16149
  name: "ElTooltip"
16150
16150
  });
16151
16151
  const _sfc_main$27 = /* @__PURE__ */ defineComponent({
16152
- ...__default__$1u,
16152
+ ...__default__$1v,
16153
16153
  props: useTooltipProps,
16154
16154
  emits: tooltipEmits,
16155
16155
  setup(__props, { expose, emit }) {
@@ -16386,12 +16386,12 @@ const _hoisted_1$12 = ["aria-expanded", "aria-owns"];
16386
16386
  const _hoisted_2$G = { key: 0 };
16387
16387
  const _hoisted_3$h = ["id", "aria-selected", "onClick"];
16388
16388
  const COMPONENT_NAME$i = "ElAutocomplete";
16389
- const __default__$1t = defineComponent({
16389
+ const __default__$1u = defineComponent({
16390
16390
  name: COMPONENT_NAME$i,
16391
16391
  inheritAttrs: false
16392
16392
  });
16393
16393
  const _sfc_main$26 = /* @__PURE__ */ defineComponent({
16394
- ...__default__$1t,
16394
+ ...__default__$1u,
16395
16395
  props: autocompleteProps,
16396
16396
  emits: autocompleteEmits,
16397
16397
  setup(__props, { expose, emit }) {
@@ -16412,7 +16412,7 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
16412
16412
  const activated = ref(false);
16413
16413
  const suggestionDisabled = ref(false);
16414
16414
  const loading = ref(false);
16415
- const listboxId = computed$1(() => ns.b(String(generateId())));
16415
+ const listboxId = useId();
16416
16416
  const styles = computed$1(() => rawAttrs.style);
16417
16417
  const suggestionVisible = computed$1(() => {
16418
16418
  const isValidData = suggestions.value.length > 0;
@@ -16759,11 +16759,11 @@ const avatarEmits = {
16759
16759
  };
16760
16760
 
16761
16761
  const _hoisted_1$11 = ["src", "alt", "srcset"];
16762
- const __default__$1s = defineComponent({
16762
+ const __default__$1t = defineComponent({
16763
16763
  name: "ElAvatar"
16764
16764
  });
16765
16765
  const _sfc_main$25 = /* @__PURE__ */ defineComponent({
16766
- ...__default__$1s,
16766
+ ...__default__$1t,
16767
16767
  props: avatarProps,
16768
16768
  emits: avatarEmits,
16769
16769
  setup(__props, { emit }) {
@@ -16878,11 +16878,11 @@ const useBackTop = (props, emit, componentName) => {
16878
16878
  };
16879
16879
 
16880
16880
  const COMPONENT_NAME$h = "ElBacktop";
16881
- const __default__$1r = defineComponent({
16881
+ const __default__$1s = defineComponent({
16882
16882
  name: COMPONENT_NAME$h
16883
16883
  });
16884
16884
  const _sfc_main$24 = /* @__PURE__ */ defineComponent({
16885
- ...__default__$1r,
16885
+ ...__default__$1s,
16886
16886
  props: backtopProps,
16887
16887
  emits: backtopEmits,
16888
16888
  setup(__props, { emit }) {
@@ -16944,11 +16944,11 @@ const badgeProps = buildProps({
16944
16944
  });
16945
16945
 
16946
16946
  const _hoisted_1$10 = ["textContent"];
16947
- const __default__$1q = defineComponent({
16947
+ const __default__$1r = defineComponent({
16948
16948
  name: "ElBadge"
16949
16949
  });
16950
16950
  const _sfc_main$23 = /* @__PURE__ */ defineComponent({
16951
- ...__default__$1q,
16951
+ ...__default__$1r,
16952
16952
  props: badgeProps,
16953
16953
  setup(__props, { expose }) {
16954
16954
  const props = __props;
@@ -17008,11 +17008,11 @@ const breadcrumbProps = buildProps({
17008
17008
  }
17009
17009
  });
17010
17010
 
17011
- const __default__$1p = defineComponent({
17011
+ const __default__$1q = defineComponent({
17012
17012
  name: "ElBreadcrumb"
17013
17013
  });
17014
17014
  const _sfc_main$22 = /* @__PURE__ */ defineComponent({
17015
- ...__default__$1p,
17015
+ ...__default__$1q,
17016
17016
  props: breadcrumbProps,
17017
17017
  setup(__props) {
17018
17018
  const props = __props;
@@ -17051,11 +17051,11 @@ const breadcrumbItemProps = buildProps({
17051
17051
  }
17052
17052
  });
17053
17053
 
17054
- const __default__$1o = defineComponent({
17054
+ const __default__$1p = defineComponent({
17055
17055
  name: "ElBreadcrumbItem"
17056
17056
  });
17057
17057
  const _sfc_main$21 = /* @__PURE__ */ defineComponent({
17058
- ...__default__$1o,
17058
+ ...__default__$1p,
17059
17059
  props: breadcrumbItemProps,
17060
17060
  setup(__props) {
17061
17061
  const props = __props;
@@ -18150,11 +18150,11 @@ function useButtonCustomStyle(props) {
18150
18150
  });
18151
18151
  }
18152
18152
 
18153
- const __default__$1n = defineComponent({
18153
+ const __default__$1o = defineComponent({
18154
18154
  name: "ElButton"
18155
18155
  });
18156
18156
  const _sfc_main$20 = /* @__PURE__ */ defineComponent({
18157
- ...__default__$1n,
18157
+ ...__default__$1o,
18158
18158
  props: buttonProps,
18159
18159
  emits: buttonEmits,
18160
18160
  setup(__props, { expose, emit }) {
@@ -18226,11 +18226,11 @@ const buttonGroupProps = {
18226
18226
  type: buttonProps.type
18227
18227
  };
18228
18228
 
18229
- const __default__$1m = defineComponent({
18229
+ const __default__$1n = defineComponent({
18230
18230
  name: "ElButtonGroup"
18231
18231
  });
18232
18232
  const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
18233
- ...__default__$1m,
18233
+ ...__default__$1n,
18234
18234
  props: buttonGroupProps,
18235
18235
  setup(__props) {
18236
18236
  const props = __props;
@@ -18792,11 +18792,11 @@ const timePickerDefaultProps = buildProps({
18792
18792
 
18793
18793
  const _hoisted_1$$ = ["id", "name", "placeholder", "value", "disabled", "readonly"];
18794
18794
  const _hoisted_2$F = ["id", "name", "placeholder", "value", "disabled", "readonly"];
18795
- const __default__$1l = defineComponent({
18795
+ const __default__$1m = defineComponent({
18796
18796
  name: "Picker"
18797
18797
  });
18798
18798
  const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
18799
- ...__default__$1l,
18799
+ ...__default__$1m,
18800
18800
  props: timePickerDefaultProps,
18801
18801
  emits: [
18802
18802
  "update:modelValue",
@@ -20705,11 +20705,11 @@ const useDateTable = (props, emit) => {
20705
20705
 
20706
20706
  const _hoisted_1$Y = { key: 0 };
20707
20707
  const _hoisted_2$D = ["onClick"];
20708
- const __default__$1k = defineComponent({
20708
+ const __default__$1l = defineComponent({
20709
20709
  name: "DateTable"
20710
20710
  });
20711
20711
  const _sfc_main$1W = /* @__PURE__ */ defineComponent({
20712
- ...__default__$1k,
20712
+ ...__default__$1l,
20713
20713
  props: dateTableProps,
20714
20714
  emits: dateTableEmits,
20715
20715
  setup(__props, { expose, emit }) {
@@ -20923,11 +20923,11 @@ const calendarEmits = {
20923
20923
  };
20924
20924
 
20925
20925
  const COMPONENT_NAME$g = "ElCalendar";
20926
- const __default__$1j = defineComponent({
20926
+ const __default__$1k = defineComponent({
20927
20927
  name: COMPONENT_NAME$g
20928
20928
  });
20929
20929
  const _sfc_main$1V = /* @__PURE__ */ defineComponent({
20930
- ...__default__$1j,
20930
+ ...__default__$1k,
20931
20931
  props: calendarProps,
20932
20932
  emits: calendarEmits,
20933
20933
  setup(__props, { expose, emit }) {
@@ -21069,11 +21069,11 @@ const cardProps = buildProps({
21069
21069
  }
21070
21070
  });
21071
21071
 
21072
- const __default__$1i = defineComponent({
21072
+ const __default__$1j = defineComponent({
21073
21073
  name: "ElCard"
21074
21074
  });
21075
21075
  const _sfc_main$1U = /* @__PURE__ */ defineComponent({
21076
- ...__default__$1i,
21076
+ ...__default__$1j,
21077
21077
  props: cardProps,
21078
21078
  setup(__props) {
21079
21079
  const ns = useNamespace("card");
@@ -21422,11 +21422,11 @@ const useCarousel = (props, emit, componentName) => {
21422
21422
  const _hoisted_1$X = ["onMouseenter", "onClick"];
21423
21423
  const _hoisted_2$C = { key: 0 };
21424
21424
  const COMPONENT_NAME$f = "ElCarousel";
21425
- const __default__$1h = defineComponent({
21425
+ const __default__$1i = defineComponent({
21426
21426
  name: COMPONENT_NAME$f
21427
21427
  });
21428
21428
  const _sfc_main$1T = /* @__PURE__ */ defineComponent({
21429
- ...__default__$1h,
21429
+ ...__default__$1i,
21430
21430
  props: carouselProps,
21431
21431
  emits: carouselEmits,
21432
21432
  setup(__props, { expose, emit }) {
@@ -21702,11 +21702,11 @@ const useCarouselItem = (props, componentName) => {
21702
21702
  };
21703
21703
  };
21704
21704
 
21705
- const __default__$1g = defineComponent({
21705
+ const __default__$1h = defineComponent({
21706
21706
  name: "ElCarouselItem"
21707
21707
  });
21708
21708
  const _sfc_main$1S = /* @__PURE__ */ defineComponent({
21709
- ...__default__$1g,
21709
+ ...__default__$1h,
21710
21710
  props: carouselItemProps,
21711
21711
  setup(__props) {
21712
21712
  const props = __props;
@@ -21899,7 +21899,7 @@ const useCheckboxModel = (props) => {
21899
21899
  set(val) {
21900
21900
  var _a, _b;
21901
21901
  if (isGroup.value && isArray$1(val)) {
21902
- isLimitExceeded.value = ((_a = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a.value) !== void 0 && val.length > (checkboxGroup == null ? void 0 : checkboxGroup.max.value);
21902
+ isLimitExceeded.value = ((_a = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a.value) !== void 0 && val.length > (checkboxGroup == null ? void 0 : checkboxGroup.max.value) && val.length > model.value.length;
21903
21903
  isLimitExceeded.value === false && ((_b = checkboxGroup == null ? void 0 : checkboxGroup.changeEvent) == null ? void 0 : _b.call(checkboxGroup, val));
21904
21904
  } else {
21905
21905
  emit(UPDATE_MODEL_EVENT, val);
@@ -22006,11 +22006,11 @@ const useCheckbox = (props, slots) => {
22006
22006
 
22007
22007
  const _hoisted_1$W = ["id", "indeterminate", "name", "tabindex", "disabled", "true-value", "false-value"];
22008
22008
  const _hoisted_2$B = ["id", "indeterminate", "disabled", "value", "name", "tabindex"];
22009
- const __default__$1f = defineComponent({
22009
+ const __default__$1g = defineComponent({
22010
22010
  name: "ElCheckbox"
22011
22011
  });
22012
22012
  const _sfc_main$1R = /* @__PURE__ */ defineComponent({
22013
- ...__default__$1f,
22013
+ ...__default__$1g,
22014
22014
  props: checkboxProps,
22015
22015
  emits: checkboxEmits,
22016
22016
  setup(__props) {
@@ -22118,11 +22118,11 @@ var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["__file", "checkbox.v
22118
22118
 
22119
22119
  const _hoisted_1$V = ["name", "tabindex", "disabled", "true-value", "false-value"];
22120
22120
  const _hoisted_2$A = ["name", "tabindex", "disabled", "value"];
22121
- const __default__$1e = defineComponent({
22121
+ const __default__$1f = defineComponent({
22122
22122
  name: "ElCheckboxButton"
22123
22123
  });
22124
22124
  const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
22125
- ...__default__$1e,
22125
+ ...__default__$1f,
22126
22126
  props: checkboxProps,
22127
22127
  emits: checkboxEmits,
22128
22128
  setup(__props) {
@@ -22236,11 +22236,11 @@ const checkboxGroupEmits = {
22236
22236
  change: (val) => isArray$1(val)
22237
22237
  };
22238
22238
 
22239
- const __default__$1d = defineComponent({
22239
+ const __default__$1e = defineComponent({
22240
22240
  name: "ElCheckboxGroup"
22241
22241
  });
22242
22242
  const _sfc_main$1P = /* @__PURE__ */ defineComponent({
22243
- ...__default__$1d,
22243
+ ...__default__$1e,
22244
22244
  props: checkboxGroupProps,
22245
22245
  emits: checkboxGroupEmits,
22246
22246
  setup(__props, { emit }) {
@@ -22370,11 +22370,11 @@ const useRadio = (props, emit) => {
22370
22370
  };
22371
22371
 
22372
22372
  const _hoisted_1$U = ["value", "name", "disabled"];
22373
- const __default__$1c = defineComponent({
22373
+ const __default__$1d = defineComponent({
22374
22374
  name: "ElRadio"
22375
22375
  });
22376
22376
  const _sfc_main$1O = /* @__PURE__ */ defineComponent({
22377
- ...__default__$1c,
22377
+ ...__default__$1d,
22378
22378
  props: radioProps,
22379
22379
  emits: radioEmits,
22380
22380
  setup(__props, { emit }) {
@@ -22448,11 +22448,11 @@ const radioButtonProps = buildProps({
22448
22448
  });
22449
22449
 
22450
22450
  const _hoisted_1$T = ["value", "name", "disabled"];
22451
- const __default__$1b = defineComponent({
22451
+ const __default__$1c = defineComponent({
22452
22452
  name: "ElRadioButton"
22453
22453
  });
22454
22454
  const _sfc_main$1N = /* @__PURE__ */ defineComponent({
22455
- ...__default__$1b,
22455
+ ...__default__$1c,
22456
22456
  props: radioButtonProps,
22457
22457
  setup(__props) {
22458
22458
  const props = __props;
@@ -22544,11 +22544,11 @@ const radioGroupProps = buildProps({
22544
22544
  const radioGroupEmits = radioEmits;
22545
22545
 
22546
22546
  const _hoisted_1$S = ["id", "aria-label", "aria-labelledby"];
22547
- const __default__$1a = defineComponent({
22547
+ const __default__$1b = defineComponent({
22548
22548
  name: "ElRadioGroup"
22549
22549
  });
22550
22550
  const _sfc_main$1M = /* @__PURE__ */ defineComponent({
22551
- ...__default__$1a,
22551
+ ...__default__$1b,
22552
22552
  props: radioGroupProps,
22553
22553
  emits: radioGroupEmits,
22554
22554
  setup(__props, { emit }) {
@@ -22744,7 +22744,7 @@ const _sfc_main$1L = defineComponent({
22744
22744
  });
22745
22745
  const _hoisted_1$R = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"];
22746
22746
  const _hoisted_2$z = /* @__PURE__ */ createElementVNode("span", null, null, -1);
22747
- function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
22747
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
22748
22748
  const _component_el_checkbox = resolveComponent("el-checkbox");
22749
22749
  const _component_el_radio = resolveComponent("el-radio");
22750
22750
  const _component_check = resolveComponent("check");
@@ -22827,7 +22827,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
22827
22827
  ], 64)) : createCommentVNode("v-if", true)
22828
22828
  ], 42, _hoisted_1$R);
22829
22829
  }
22830
- var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$u], ["__file", "node.vue"]]);
22830
+ var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$t], ["__file", "node.vue"]]);
22831
22831
 
22832
22832
  const _sfc_main$1K = defineComponent({
22833
22833
  name: "ElCascaderMenu",
@@ -22851,14 +22851,14 @@ const _sfc_main$1K = defineComponent({
22851
22851
  const instance = getCurrentInstance();
22852
22852
  const ns = useNamespace("cascader-menu");
22853
22853
  const { t } = useLocale();
22854
- const id = generateId();
22854
+ const id = useId();
22855
22855
  let activeNode = null;
22856
22856
  let hoverTimer = null;
22857
22857
  const panel = inject(CASCADER_PANEL_INJECTION_KEY);
22858
22858
  const hoverZone = ref(null);
22859
22859
  const isEmpty = computed$1(() => !props.nodes.length);
22860
22860
  const isLoading = computed$1(() => !panel.initialLoaded);
22861
- const menuId = computed$1(() => `cascader-menu-${id}-${props.index}`);
22861
+ const menuId = computed$1(() => `${id.value}-${props.index}`);
22862
22862
  const handleExpand = (e) => {
22863
22863
  activeNode = e.target;
22864
22864
  };
@@ -22907,7 +22907,7 @@ const _sfc_main$1K = defineComponent({
22907
22907
  };
22908
22908
  }
22909
22909
  });
22910
- function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
22910
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
22911
22911
  const _component_el_cascader_node = resolveComponent("el-cascader-node");
22912
22912
  const _component_loading = resolveComponent("loading");
22913
22913
  const _component_el_icon = resolveComponent("el-icon");
@@ -22960,7 +22960,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
22960
22960
  _: 1
22961
22961
  }, 8, ["class", "wrap-class", "view-class", "onMousemove", "onMouseleave"]);
22962
22962
  }
22963
- var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$t], ["__file", "menu.vue"]]);
22963
+ var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$s], ["__file", "menu.vue"]]);
22964
22964
 
22965
22965
  let uid = 0;
22966
22966
  const calculatePathNodes = (node) => {
@@ -23442,7 +23442,7 @@ const _sfc_main$1J = defineComponent({
23442
23442
  };
23443
23443
  }
23444
23444
  });
23445
- function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
23445
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
23446
23446
  const _component_el_cascader_menu = resolveComponent("el-cascader-menu");
23447
23447
  return openBlock(), createElementBlock("div", {
23448
23448
  class: normalizeClass([_ctx.ns.b("panel"), _ctx.ns.is("bordered", _ctx.border)]),
@@ -23459,7 +23459,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
23459
23459
  }), 128))
23460
23460
  ], 34);
23461
23461
  }
23462
- var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["render", _sfc_render$s], ["__file", "index.vue"]]);
23462
+ var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["render", _sfc_render$r], ["__file", "index.vue"]]);
23463
23463
 
23464
23464
  CascaderPanel.install = (app) => {
23465
23465
  app.component(CascaderPanel.name, CascaderPanel);
@@ -23497,11 +23497,11 @@ const tagEmits = {
23497
23497
  click: (evt) => evt instanceof MouseEvent
23498
23498
  };
23499
23499
 
23500
- const __default__$19 = defineComponent({
23500
+ const __default__$1a = defineComponent({
23501
23501
  name: "ElTag"
23502
23502
  });
23503
23503
  const _sfc_main$1I = /* @__PURE__ */ defineComponent({
23504
- ...__default__$19,
23504
+ ...__default__$1a,
23505
23505
  props: tagProps,
23506
23506
  emits: tagEmits,
23507
23507
  setup(__props, { emit }) {
@@ -23646,11 +23646,11 @@ const _hoisted_1$Q = { key: 0 };
23646
23646
  const _hoisted_2$y = ["placeholder", "onKeydown"];
23647
23647
  const _hoisted_3$g = ["onClick"];
23648
23648
  const COMPONENT_NAME$e = "ElCascader";
23649
- const __default__$18 = defineComponent({
23649
+ const __default__$19 = defineComponent({
23650
23650
  name: COMPONENT_NAME$e
23651
23651
  });
23652
23652
  const _sfc_main$1H = /* @__PURE__ */ defineComponent({
23653
- ...__default__$18,
23653
+ ...__default__$19,
23654
23654
  props: cascaderProps,
23655
23655
  emits: cascaderEmits,
23656
23656
  setup(__props, { expose, emit }) {
@@ -24262,11 +24262,11 @@ const checkTagEmits = {
24262
24262
  [CHANGE_EVENT]: (value) => isBoolean(value)
24263
24263
  };
24264
24264
 
24265
- const __default__$17 = defineComponent({
24265
+ const __default__$18 = defineComponent({
24266
24266
  name: "ElCheckTag"
24267
24267
  });
24268
24268
  const _sfc_main$1G = /* @__PURE__ */ defineComponent({
24269
- ...__default__$17,
24269
+ ...__default__$18,
24270
24270
  props: checkTagProps,
24271
24271
  emits: checkTagEmits,
24272
24272
  setup(__props, { emit }) {
@@ -24323,11 +24323,11 @@ const rowProps = buildProps({
24323
24323
  }
24324
24324
  });
24325
24325
 
24326
- const __default__$16 = defineComponent({
24326
+ const __default__$17 = defineComponent({
24327
24327
  name: "ElRow"
24328
24328
  });
24329
24329
  const _sfc_main$1F = /* @__PURE__ */ defineComponent({
24330
- ...__default__$16,
24330
+ ...__default__$17,
24331
24331
  props: rowProps,
24332
24332
  setup(__props) {
24333
24333
  const props = __props;
@@ -24409,11 +24409,11 @@ const colProps = buildProps({
24409
24409
  }
24410
24410
  });
24411
24411
 
24412
- const __default__$15 = defineComponent({
24412
+ const __default__$16 = defineComponent({
24413
24413
  name: "ElCol"
24414
24414
  });
24415
24415
  const _sfc_main$1E = /* @__PURE__ */ defineComponent({
24416
- ...__default__$15,
24416
+ ...__default__$16,
24417
24417
  props: colProps,
24418
24418
  setup(__props) {
24419
24419
  const props = __props;
@@ -24525,11 +24525,11 @@ const useCollapseDOM = () => {
24525
24525
  };
24526
24526
  };
24527
24527
 
24528
- const __default__$14 = defineComponent({
24528
+ const __default__$15 = defineComponent({
24529
24529
  name: "ElCollapse"
24530
24530
  });
24531
24531
  const _sfc_main$1D = /* @__PURE__ */ defineComponent({
24532
- ...__default__$14,
24532
+ ...__default__$15,
24533
24533
  props: collapseProps,
24534
24534
  emits: collapseEmits,
24535
24535
  setup(__props, { expose, emit }) {
@@ -24551,11 +24551,11 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
24551
24551
  });
24552
24552
  var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["__file", "collapse.vue"]]);
24553
24553
 
24554
- const __default__$13 = defineComponent({
24554
+ const __default__$14 = defineComponent({
24555
24555
  name: "ElCollapseTransition"
24556
24556
  });
24557
24557
  const _sfc_main$1C = /* @__PURE__ */ defineComponent({
24558
- ...__default__$13,
24558
+ ...__default__$14,
24559
24559
  setup(__props) {
24560
24560
  const ns = useNamespace("collapse-transition");
24561
24561
  const reset = (el) => {
@@ -24648,17 +24648,23 @@ const collapseItemProps = buildProps({
24648
24648
  },
24649
24649
  name: {
24650
24650
  type: definePropType([String, Number]),
24651
- default: () => generateId()
24651
+ default: void 0
24652
24652
  },
24653
24653
  disabled: Boolean
24654
24654
  });
24655
24655
 
24656
24656
  const useCollapseItem = (props) => {
24657
24657
  const collapse = inject(collapseContextKey);
24658
+ const { namespace } = useNamespace("collapse");
24658
24659
  const focusing = ref(false);
24659
24660
  const isClick = ref(false);
24660
- const id = ref(generateId());
24661
- const isActive = computed$1(() => collapse == null ? void 0 : collapse.activeNames.value.includes(props.name));
24661
+ const idInjection = useIdInjection();
24662
+ const id = computed$1(() => idInjection.current++);
24663
+ const name = computed$1(() => {
24664
+ var _a;
24665
+ return (_a = props.name) != null ? _a : `${namespace.value}-id-${idInjection.prefix}-${unref(id)}`;
24666
+ });
24667
+ const isActive = computed$1(() => collapse == null ? void 0 : collapse.activeNames.value.includes(unref(name)));
24662
24668
  const handleFocus = () => {
24663
24669
  setTimeout(() => {
24664
24670
  if (!isClick.value) {
@@ -24671,12 +24677,12 @@ const useCollapseItem = (props) => {
24671
24677
  const handleHeaderClick = () => {
24672
24678
  if (props.disabled)
24673
24679
  return;
24674
- collapse == null ? void 0 : collapse.handleItemClick(props.name);
24680
+ collapse == null ? void 0 : collapse.handleItemClick(unref(name));
24675
24681
  focusing.value = false;
24676
24682
  isClick.value = true;
24677
24683
  };
24678
24684
  const handleEnterClick = () => {
24679
- collapse == null ? void 0 : collapse.handleItemClick(props.name);
24685
+ collapse == null ? void 0 : collapse.handleItemClick(unref(name));
24680
24686
  };
24681
24687
  return {
24682
24688
  focusing,
@@ -24720,11 +24726,11 @@ const useCollapseItemDOM = (props, { focusing, isActive, id }) => {
24720
24726
 
24721
24727
  const _hoisted_1$P = ["id", "aria-expanded", "aria-controls", "aria-describedby", "tabindex"];
24722
24728
  const _hoisted_2$x = ["id", "aria-hidden", "aria-labelledby"];
24723
- const __default__$12 = defineComponent({
24729
+ const __default__$13 = defineComponent({
24724
24730
  name: "ElCollapseItem"
24725
24731
  });
24726
24732
  const _sfc_main$1B = /* @__PURE__ */ defineComponent({
24727
- ...__default__$12,
24733
+ ...__default__$13,
24728
24734
  props: collapseItemProps,
24729
24735
  setup(__props, { expose }) {
24730
24736
  const props = __props;
@@ -24964,11 +24970,11 @@ const useAlphaSliderDOM = (props, {
24964
24970
  };
24965
24971
 
24966
24972
  const COMPONENT_NAME$d = "ElColorAlphaSlider";
24967
- const __default__$11 = defineComponent({
24973
+ const __default__$12 = defineComponent({
24968
24974
  name: COMPONENT_NAME$d
24969
24975
  });
24970
24976
  const _sfc_main$1A = /* @__PURE__ */ defineComponent({
24971
- ...__default__$11,
24977
+ ...__default__$12,
24972
24978
  props: alphaSliderProps,
24973
24979
  setup(__props, { expose }) {
24974
24980
  const props = __props;
@@ -25107,7 +25113,7 @@ const _sfc_main$1z = defineComponent({
25107
25113
  };
25108
25114
  }
25109
25115
  });
25110
- function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
25116
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
25111
25117
  return openBlock(), createElementBlock("div", {
25112
25118
  class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.vertical)])
25113
25119
  }, [
@@ -25126,7 +25132,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
25126
25132
  }, null, 6)
25127
25133
  ], 2);
25128
25134
  }
25129
- var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$r], ["__file", "hue-slider.vue"]]);
25135
+ var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", _sfc_render$q], ["__file", "hue-slider.vue"]]);
25130
25136
 
25131
25137
  const colorPickerProps = buildProps({
25132
25138
  modelValue: String,
@@ -25494,7 +25500,7 @@ const _sfc_main$1y = defineComponent({
25494
25500
  }
25495
25501
  });
25496
25502
  const _hoisted_1$O = ["onClick"];
25497
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
25503
+ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
25498
25504
  return openBlock(), createElementBlock("div", {
25499
25505
  class: normalizeClass(_ctx.ns.b())
25500
25506
  }, [
@@ -25519,7 +25525,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
25519
25525
  ], 2)
25520
25526
  ], 2);
25521
25527
  }
25522
- var Predefine = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$q], ["__file", "predefine.vue"]]);
25528
+ var Predefine = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$p], ["__file", "predefine.vue"]]);
25523
25529
 
25524
25530
  const _sfc_main$1x = defineComponent({
25525
25531
  name: "ElSlPanel",
@@ -25595,7 +25601,7 @@ const _hoisted_1$N = /* @__PURE__ */ createElementVNode("div", null, null, -1);
25595
25601
  const _hoisted_2$w = [
25596
25602
  _hoisted_1$N
25597
25603
  ];
25598
- function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
25604
+ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
25599
25605
  return openBlock(), createElementBlock("div", {
25600
25606
  class: normalizeClass(_ctx.ns.b()),
25601
25607
  style: normalizeStyle({
@@ -25617,15 +25623,15 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
25617
25623
  }, _hoisted_2$w, 6)
25618
25624
  ], 6);
25619
25625
  }
25620
- var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$p], ["__file", "sv-panel.vue"]]);
25626
+ var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["render", _sfc_render$o], ["__file", "sv-panel.vue"]]);
25621
25627
 
25622
25628
  const _hoisted_1$M = ["onKeydown"];
25623
25629
  const _hoisted_2$v = ["id", "aria-label", "aria-labelledby", "aria-description", "aria-disabled", "tabindex"];
25624
- const __default__$10 = defineComponent({
25630
+ const __default__$11 = defineComponent({
25625
25631
  name: "ElColorPicker"
25626
25632
  });
25627
25633
  const _sfc_main$1w = /* @__PURE__ */ defineComponent({
25628
- ...__default__$10,
25634
+ ...__default__$11,
25629
25635
  props: colorPickerProps,
25630
25636
  emits: colorPickerEmits,
25631
25637
  setup(__props, { expose, emit }) {
@@ -25999,11 +26005,11 @@ var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__file", "color-p
25999
26005
 
26000
26006
  const ElColorPicker = withInstall(ColorPicker);
26001
26007
 
26002
- const __default__$$ = defineComponent({
26008
+ const __default__$10 = defineComponent({
26003
26009
  name: "ElContainer"
26004
26010
  });
26005
26011
  const _sfc_main$1v = /* @__PURE__ */ defineComponent({
26006
- ...__default__$$,
26012
+ ...__default__$10,
26007
26013
  props: {
26008
26014
  direction: {
26009
26015
  type: String
@@ -26040,11 +26046,11 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
26040
26046
  });
26041
26047
  var Container = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["__file", "container.vue"]]);
26042
26048
 
26043
- const __default__$_ = defineComponent({
26049
+ const __default__$$ = defineComponent({
26044
26050
  name: "ElAside"
26045
26051
  });
26046
26052
  const _sfc_main$1u = /* @__PURE__ */ defineComponent({
26047
- ...__default__$_,
26053
+ ...__default__$$,
26048
26054
  props: {
26049
26055
  width: {
26050
26056
  type: String,
@@ -26067,11 +26073,11 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
26067
26073
  });
26068
26074
  var Aside = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["__file", "aside.vue"]]);
26069
26075
 
26070
- const __default__$Z = defineComponent({
26076
+ const __default__$_ = defineComponent({
26071
26077
  name: "ElFooter"
26072
26078
  });
26073
26079
  const _sfc_main$1t = /* @__PURE__ */ defineComponent({
26074
- ...__default__$Z,
26080
+ ...__default__$_,
26075
26081
  props: {
26076
26082
  height: {
26077
26083
  type: String,
@@ -26094,11 +26100,11 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
26094
26100
  });
26095
26101
  var Footer$2 = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["__file", "footer.vue"]]);
26096
26102
 
26097
- const __default__$Y = defineComponent({
26103
+ const __default__$Z = defineComponent({
26098
26104
  name: "ElHeader"
26099
26105
  });
26100
26106
  const _sfc_main$1s = /* @__PURE__ */ defineComponent({
26101
- ...__default__$Y,
26107
+ ...__default__$Z,
26102
26108
  props: {
26103
26109
  height: {
26104
26110
  type: String,
@@ -26125,11 +26131,11 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
26125
26131
  });
26126
26132
  var Header$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["__file", "header.vue"]]);
26127
26133
 
26128
- const __default__$X = defineComponent({
26134
+ const __default__$Y = defineComponent({
26129
26135
  name: "ElMain"
26130
26136
  });
26131
26137
  const _sfc_main$1r = /* @__PURE__ */ defineComponent({
26132
- ...__default__$X,
26138
+ ...__default__$Y,
26133
26139
  setup(__props) {
26134
26140
  const ns = useNamespace("main");
26135
26141
  return (_ctx, _cache) => {
@@ -28685,11 +28691,11 @@ const _hoisted_1$G = ["onClick"];
28685
28691
  const _hoisted_2$p = ["disabled"];
28686
28692
  const _hoisted_3$a = ["disabled"];
28687
28693
  const unit = "year";
28688
- const __default__$W = defineComponent({
28694
+ const __default__$X = defineComponent({
28689
28695
  name: "DatePickerMonthRange"
28690
28696
  });
28691
28697
  const _sfc_main$1l = /* @__PURE__ */ defineComponent({
28692
- ...__default__$W,
28698
+ ...__default__$X,
28693
28699
  props: panelMonthRangeProps,
28694
28700
  emits: panelMonthRangeEmits,
28695
28701
  setup(__props, { emit }) {
@@ -29072,11 +29078,11 @@ const descriptionsRowProps = buildProps({
29072
29078
  });
29073
29079
 
29074
29080
  const _hoisted_1$F = { key: 1 };
29075
- const __default__$V = defineComponent({
29081
+ const __default__$W = defineComponent({
29076
29082
  name: "ElDescriptionsRow"
29077
29083
  });
29078
29084
  const _sfc_main$1k = /* @__PURE__ */ defineComponent({
29079
- ...__default__$V,
29085
+ ...__default__$W,
29080
29086
  props: descriptionsRowProps,
29081
29087
  setup(__props) {
29082
29088
  const descriptions = inject(descriptionsKey, {});
@@ -29157,11 +29163,11 @@ const descriptionProps = buildProps({
29157
29163
  }
29158
29164
  });
29159
29165
 
29160
- const __default__$U = defineComponent({
29166
+ const __default__$V = defineComponent({
29161
29167
  name: "ElDescriptions"
29162
29168
  });
29163
29169
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
29164
- ...__default__$U,
29170
+ ...__default__$V,
29165
29171
  props: descriptionProps,
29166
29172
  setup(__props) {
29167
29173
  const props = __props;
@@ -29401,9 +29407,9 @@ const dialogContentEmits = {
29401
29407
  const _hoisted_1$E = ["aria-level"];
29402
29408
  const _hoisted_2$o = ["aria-label"];
29403
29409
  const _hoisted_3$9 = ["id"];
29404
- const __default__$T = defineComponent({ name: "ElDialogContent" });
29410
+ const __default__$U = defineComponent({ name: "ElDialogContent" });
29405
29411
  const _sfc_main$1i = /* @__PURE__ */ defineComponent({
29406
- ...__default__$T,
29412
+ ...__default__$U,
29407
29413
  props: dialogContentProps,
29408
29414
  emits: dialogContentEmits,
29409
29415
  setup(__props) {
@@ -29712,12 +29718,12 @@ const useDialog = (props, targetRef) => {
29712
29718
  };
29713
29719
 
29714
29720
  const _hoisted_1$D = ["aria-label", "aria-labelledby", "aria-describedby"];
29715
- const __default__$S = defineComponent({
29721
+ const __default__$T = defineComponent({
29716
29722
  name: "ElDialog",
29717
29723
  inheritAttrs: false
29718
29724
  });
29719
29725
  const _sfc_main$1h = /* @__PURE__ */ defineComponent({
29720
- ...__default__$S,
29726
+ ...__default__$T,
29721
29727
  props: dialogProps,
29722
29728
  emits: dialogEmits,
29723
29729
  setup(__props, { expose }) {
@@ -29889,11 +29895,11 @@ const dividerProps = buildProps({
29889
29895
  }
29890
29896
  });
29891
29897
 
29892
- const __default__$R = defineComponent({
29898
+ const __default__$S = defineComponent({
29893
29899
  name: "ElDivider"
29894
29900
  });
29895
29901
  const _sfc_main$1g = /* @__PURE__ */ defineComponent({
29896
- ...__default__$R,
29902
+ ...__default__$S,
29897
29903
  props: dividerProps,
29898
29904
  setup(__props) {
29899
29905
  const props = __props;
@@ -29949,18 +29955,21 @@ const drawerProps = buildProps({
29949
29955
  });
29950
29956
  const drawerEmits = dialogEmits;
29951
29957
 
29952
- const _sfc_main$1f = defineComponent({
29958
+ const _hoisted_1$C = ["aria-label", "aria-labelledby", "aria-describedby"];
29959
+ const _hoisted_2$n = ["id", "aria-level"];
29960
+ const _hoisted_3$8 = ["aria-label"];
29961
+ const _hoisted_4$6 = ["id"];
29962
+ const __default__$R = defineComponent({
29953
29963
  name: "ElDrawer",
29954
- components: {
29955
- ElOverlay,
29956
- ElFocusTrap,
29957
- ElIcon,
29958
- Close: close_default
29959
- },
29960
- inheritAttrs: false,
29964
+ inheritAttrs: false
29965
+ });
29966
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
29967
+ ...__default__$R,
29961
29968
  props: drawerProps,
29962
29969
  emits: drawerEmits,
29963
- setup(props, { slots }) {
29970
+ setup(__props, { expose }) {
29971
+ const props = __props;
29972
+ const slots = useSlots();
29964
29973
  useDeprecated({
29965
29974
  scope: "el-drawer",
29966
29975
  from: "the title slot",
@@ -29980,138 +29989,140 @@ const _sfc_main$1f = defineComponent({
29980
29989
  const focusStartRef = ref();
29981
29990
  const ns = useNamespace("drawer");
29982
29991
  const { t } = useLocale();
29992
+ const {
29993
+ afterEnter,
29994
+ afterLeave,
29995
+ beforeLeave,
29996
+ visible,
29997
+ rendered,
29998
+ titleId,
29999
+ bodyId,
30000
+ onModalClick,
30001
+ onCloseRequested,
30002
+ handleClose
30003
+ } = useDialog(props, drawerRef);
29983
30004
  const isHorizontal = computed$1(() => props.direction === "rtl" || props.direction === "ltr");
29984
30005
  const drawerSize = computed$1(() => addUnit(props.size));
29985
- return {
29986
- ...useDialog(props, drawerRef),
29987
- drawerRef,
29988
- focusStartRef,
29989
- isHorizontal,
29990
- drawerSize,
29991
- ns,
29992
- t
29993
- };
29994
- }
29995
- });
29996
- const _hoisted_1$C = ["aria-label", "aria-labelledby", "aria-describedby"];
29997
- const _hoisted_2$n = ["id", "aria-level"];
29998
- const _hoisted_3$8 = ["aria-label"];
29999
- const _hoisted_4$6 = ["id"];
30000
- function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
30001
- const _component_close = resolveComponent("close");
30002
- const _component_el_icon = resolveComponent("el-icon");
30003
- const _component_el_focus_trap = resolveComponent("el-focus-trap");
30004
- const _component_el_overlay = resolveComponent("el-overlay");
30005
- return openBlock(), createBlock(Teleport, {
30006
- to: "body",
30007
- disabled: !_ctx.appendToBody
30008
- }, [
30009
- createVNode(Transition, {
30010
- name: _ctx.ns.b("fade"),
30011
- onAfterEnter: _ctx.afterEnter,
30012
- onAfterLeave: _ctx.afterLeave,
30013
- onBeforeLeave: _ctx.beforeLeave,
30014
- persisted: ""
30015
- }, {
30016
- default: withCtx(() => [
30017
- withDirectives(createVNode(_component_el_overlay, {
30018
- mask: _ctx.modal,
30019
- "overlay-class": _ctx.modalClass,
30020
- "z-index": _ctx.zIndex,
30021
- onClick: _ctx.onModalClick
30006
+ expose({
30007
+ handleClose,
30008
+ afterEnter,
30009
+ afterLeave
30010
+ });
30011
+ return (_ctx, _cache) => {
30012
+ return openBlock(), createBlock(Teleport, {
30013
+ to: "body",
30014
+ disabled: !_ctx.appendToBody
30015
+ }, [
30016
+ createVNode(Transition, {
30017
+ name: unref(ns).b("fade"),
30018
+ onAfterEnter: unref(afterEnter),
30019
+ onAfterLeave: unref(afterLeave),
30020
+ onBeforeLeave: unref(beforeLeave),
30021
+ persisted: ""
30022
30022
  }, {
30023
30023
  default: withCtx(() => [
30024
- createVNode(_component_el_focus_trap, {
30025
- loop: "",
30026
- trapped: _ctx.visible,
30027
- "focus-trap-el": _ctx.drawerRef,
30028
- "focus-start-el": _ctx.focusStartRef,
30029
- onReleaseRequested: _ctx.onCloseRequested
30024
+ withDirectives(createVNode(unref(ElOverlay), {
30025
+ mask: _ctx.modal,
30026
+ "overlay-class": _ctx.modalClass,
30027
+ "z-index": _ctx.zIndex,
30028
+ onClick: unref(onModalClick)
30030
30029
  }, {
30031
30030
  default: withCtx(() => [
30032
- createElementVNode("div", mergeProps({
30033
- ref: "drawerRef",
30034
- "aria-modal": "true",
30035
- "aria-label": _ctx.title || void 0,
30036
- "aria-labelledby": !_ctx.title ? _ctx.titleId : void 0,
30037
- "aria-describedby": _ctx.bodyId
30038
- }, _ctx.$attrs, {
30039
- class: [_ctx.ns.b(), _ctx.direction, _ctx.visible && "open", _ctx.customClass],
30040
- style: _ctx.isHorizontal ? "width: " + _ctx.drawerSize : "height: " + _ctx.drawerSize,
30041
- role: "dialog",
30042
- onClick: _cache[1] || (_cache[1] = withModifiers(() => {
30043
- }, ["stop"]))
30044
- }), [
30045
- createElementVNode("span", {
30046
- ref: "focusStartRef",
30047
- class: normalizeClass(_ctx.ns.e("sr-focus")),
30048
- tabindex: "-1"
30049
- }, null, 2),
30050
- _ctx.withHeader ? (openBlock(), createElementBlock("header", {
30051
- key: 0,
30052
- class: normalizeClass(_ctx.ns.e("header"))
30053
- }, [
30054
- !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
30055
- key: 0,
30056
- close: _ctx.handleClose,
30057
- titleId: _ctx.titleId,
30058
- titleClass: _ctx.ns.e("title")
30059
- }, () => [
30060
- !_ctx.$slots.title ? (openBlock(), createElementBlock("span", {
30031
+ createVNode(unref(ElFocusTrap), {
30032
+ loop: "",
30033
+ trapped: unref(visible),
30034
+ "focus-trap-el": drawerRef.value,
30035
+ "focus-start-el": focusStartRef.value,
30036
+ onReleaseRequested: unref(onCloseRequested)
30037
+ }, {
30038
+ default: withCtx(() => [
30039
+ createElementVNode("div", mergeProps({
30040
+ ref_key: "drawerRef",
30041
+ ref: drawerRef,
30042
+ "aria-modal": "true",
30043
+ "aria-label": _ctx.title || void 0,
30044
+ "aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
30045
+ "aria-describedby": unref(bodyId)
30046
+ }, _ctx.$attrs, {
30047
+ class: [unref(ns).b(), _ctx.direction, unref(visible) && "open", _ctx.customClass],
30048
+ style: unref(isHorizontal) ? "width: " + unref(drawerSize) : "height: " + unref(drawerSize),
30049
+ role: "dialog",
30050
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {
30051
+ }, ["stop"]))
30052
+ }), [
30053
+ createElementVNode("span", {
30054
+ ref_key: "focusStartRef",
30055
+ ref: focusStartRef,
30056
+ class: normalizeClass(unref(ns).e("sr-focus")),
30057
+ tabindex: "-1"
30058
+ }, null, 2),
30059
+ _ctx.withHeader ? (openBlock(), createElementBlock("header", {
30061
30060
  key: 0,
30062
- id: _ctx.titleId,
30063
- role: "heading",
30064
- "aria-level": _ctx.headerAriaLevel,
30065
- class: normalizeClass(_ctx.ns.e("title"))
30066
- }, toDisplayString(_ctx.title), 11, _hoisted_2$n)) : createCommentVNode("v-if", true)
30067
- ]) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
30068
- createCommentVNode(" DEPRECATED SLOT ")
30069
- ]),
30070
- _ctx.showClose ? (openBlock(), createElementBlock("button", {
30071
- key: 2,
30072
- "aria-label": _ctx.t("el.drawer.close"),
30073
- class: normalizeClass(_ctx.ns.e("close-btn")),
30074
- type: "button",
30075
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClose && _ctx.handleClose(...args))
30076
- }, [
30077
- createVNode(_component_el_icon, {
30078
- class: normalizeClass(_ctx.ns.e("close"))
30079
- }, {
30080
- default: withCtx(() => [
30081
- createVNode(_component_close)
30061
+ class: normalizeClass(unref(ns).e("header"))
30062
+ }, [
30063
+ !_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
30064
+ key: 0,
30065
+ close: unref(handleClose),
30066
+ titleId: unref(titleId),
30067
+ titleClass: unref(ns).e("title")
30068
+ }, () => [
30069
+ !_ctx.$slots.title ? (openBlock(), createElementBlock("span", {
30070
+ key: 0,
30071
+ id: unref(titleId),
30072
+ role: "heading",
30073
+ "aria-level": _ctx.headerAriaLevel,
30074
+ class: normalizeClass(unref(ns).e("title"))
30075
+ }, toDisplayString(_ctx.title), 11, _hoisted_2$n)) : createCommentVNode("v-if", true)
30076
+ ]) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
30077
+ createCommentVNode(" DEPRECATED SLOT ")
30082
30078
  ]),
30083
- _: 1
30084
- }, 8, ["class"])
30085
- ], 10, _hoisted_3$8)) : createCommentVNode("v-if", true)
30086
- ], 2)) : createCommentVNode("v-if", true),
30087
- _ctx.rendered ? (openBlock(), createElementBlock("div", {
30088
- key: 1,
30089
- id: _ctx.bodyId,
30090
- class: normalizeClass(_ctx.ns.e("body"))
30091
- }, [
30092
- renderSlot(_ctx.$slots, "default")
30093
- ], 10, _hoisted_4$6)) : createCommentVNode("v-if", true),
30094
- _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
30095
- key: 2,
30096
- class: normalizeClass(_ctx.ns.e("footer"))
30097
- }, [
30098
- renderSlot(_ctx.$slots, "footer")
30099
- ], 2)) : createCommentVNode("v-if", true)
30100
- ], 16, _hoisted_1$C)
30079
+ _ctx.showClose ? (openBlock(), createElementBlock("button", {
30080
+ key: 2,
30081
+ "aria-label": unref(t)("el.drawer.close"),
30082
+ class: normalizeClass(unref(ns).e("close-btn")),
30083
+ type: "button",
30084
+ onClick: _cache[0] || (_cache[0] = (...args) => unref(handleClose) && unref(handleClose)(...args))
30085
+ }, [
30086
+ createVNode(unref(ElIcon), {
30087
+ class: normalizeClass(unref(ns).e("close"))
30088
+ }, {
30089
+ default: withCtx(() => [
30090
+ createVNode(unref(close_default))
30091
+ ]),
30092
+ _: 1
30093
+ }, 8, ["class"])
30094
+ ], 10, _hoisted_3$8)) : createCommentVNode("v-if", true)
30095
+ ], 2)) : createCommentVNode("v-if", true),
30096
+ unref(rendered) ? (openBlock(), createElementBlock("div", {
30097
+ key: 1,
30098
+ id: unref(bodyId),
30099
+ class: normalizeClass(unref(ns).e("body"))
30100
+ }, [
30101
+ renderSlot(_ctx.$slots, "default")
30102
+ ], 10, _hoisted_4$6)) : createCommentVNode("v-if", true),
30103
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
30104
+ key: 2,
30105
+ class: normalizeClass(unref(ns).e("footer"))
30106
+ }, [
30107
+ renderSlot(_ctx.$slots, "footer")
30108
+ ], 2)) : createCommentVNode("v-if", true)
30109
+ ], 16, _hoisted_1$C)
30110
+ ]),
30111
+ _: 3
30112
+ }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
30101
30113
  ]),
30102
30114
  _: 3
30103
- }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
30115
+ }, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
30116
+ [vShow, unref(visible)]
30117
+ ])
30104
30118
  ]),
30105
30119
  _: 3
30106
- }, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
30107
- [vShow, _ctx.visible]
30108
- ])
30109
- ]),
30110
- _: 3
30111
- }, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
30112
- ], 8, ["disabled"]);
30113
- }
30114
- var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["render", _sfc_render$o], ["__file", "drawer.vue"]]);
30120
+ }, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
30121
+ ], 8, ["disabled"]);
30122
+ };
30123
+ }
30124
+ });
30125
+ var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__file", "drawer.vue"]]);
30115
30126
 
30116
30127
  const ElDrawer = withInstall(Drawer);
30117
30128
 
@@ -31423,8 +31434,7 @@ const imageViewerProps = buildProps({
31423
31434
  default: 7
31424
31435
  },
31425
31436
  crossorigin: {
31426
- type: definePropType(String),
31427
- default: "anonymous"
31437
+ type: definePropType(String)
31428
31438
  }
31429
31439
  });
31430
31440
  const imageViewerEmits = {
@@ -31442,6 +31452,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31442
31452
  props: imageViewerProps,
31443
31453
  emits: imageViewerEmits,
31444
31454
  setup(__props, { expose, emit }) {
31455
+ var _a;
31445
31456
  const props = __props;
31446
31457
  const modes = {
31447
31458
  CONTAIN: {
@@ -31460,7 +31471,6 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31460
31471
  const imgRefs = ref([]);
31461
31472
  const scopeEventListener = effectScope();
31462
31473
  const loading = ref(true);
31463
- const crossorigin = ref(props.crossorigin);
31464
31474
  const activeIndex = ref(props.initialIndex);
31465
31475
  const mode = shallowRef(modes.CONTAIN);
31466
31476
  const transform = ref({
@@ -31470,6 +31480,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31470
31480
  offsetY: 0,
31471
31481
  enableTransition: false
31472
31482
  });
31483
+ const zIndex = ref((_a = props.zIndex) != null ? _a : nextZIndex());
31473
31484
  const isSingle = computed$1(() => {
31474
31485
  const { urlList } = props;
31475
31486
  return urlList.length <= 1;
@@ -31520,9 +31531,6 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31520
31531
  }
31521
31532
  return style;
31522
31533
  });
31523
- const computedZIndex = computed$1(() => {
31524
- return isNumber(props.zIndex) ? props.zIndex : nextZIndex();
31525
- });
31526
31534
  function hide() {
31527
31535
  unregisterEventListener();
31528
31536
  emit("close");
@@ -31671,9 +31679,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31671
31679
  emit("switch", val);
31672
31680
  });
31673
31681
  onMounted(() => {
31674
- var _a, _b;
31682
+ var _a2, _b;
31675
31683
  registerEventListener();
31676
- (_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
31684
+ (_b = (_a2 = wrapper.value) == null ? void 0 : _a2.focus) == null ? void 0 : _b.call(_a2);
31677
31685
  });
31678
31686
  expose({
31679
31687
  setActiveItem
@@ -31693,7 +31701,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31693
31701
  ref: wrapper,
31694
31702
  tabindex: -1,
31695
31703
  class: normalizeClass(unref(ns).e("wrapper")),
31696
- style: normalizeStyle({ zIndex: unref(computedZIndex) })
31704
+ style: normalizeStyle({ zIndex: zIndex.value })
31697
31705
  }, [
31698
31706
  createElementVNode("div", {
31699
31707
  class: normalizeClass(unref(ns).e("mask")),
@@ -31801,7 +31809,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
31801
31809
  src: url,
31802
31810
  style: normalizeStyle(unref(imgStyle)),
31803
31811
  class: normalizeClass(unref(ns).e("img")),
31804
- crossorigin: crossorigin.value,
31812
+ crossorigin: _ctx.crossorigin,
31805
31813
  onLoad: handleImgLoad,
31806
31814
  onError: handleImgError,
31807
31815
  onMousedown: handleMouseDown
@@ -31875,8 +31883,7 @@ const imageProps = buildProps({
31875
31883
  default: 7
31876
31884
  },
31877
31885
  crossorigin: {
31878
- type: definePropType(String),
31879
- default: "anonymous"
31886
+ type: definePropType(String)
31880
31887
  }
31881
31888
  });
31882
31889
  const imageEmits = {
@@ -31905,7 +31912,6 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
31905
31912
  const rawAttrs = useAttrs$1();
31906
31913
  const attrs = useAttrs();
31907
31914
  const imageSrc = ref();
31908
- const crossorigin = ref(props.crossorigin);
31909
31915
  const hasLoadError = ref(false);
31910
31916
  const isLoading = ref(true);
31911
31917
  const showViewer = ref(false);
@@ -32057,7 +32063,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
32057
32063
  loading: _ctx.loading,
32058
32064
  style: unref(imageStyle),
32059
32065
  class: unref(imageKls),
32060
- crossorigin: crossorigin.value,
32066
+ crossorigin: _ctx.crossorigin,
32061
32067
  onClick: clickHandler,
32062
32068
  onLoad: handleLoad,
32063
32069
  onError: handleError
@@ -34009,6 +34015,7 @@ const useSelect$3 = (props, emit) => {
34009
34015
  selected: props.multiple ? [] : {},
34010
34016
  selectionWidth: 0,
34011
34017
  calculatorWidth: 0,
34018
+ collapseItemWidth: 0,
34012
34019
  selectedLabel: "",
34013
34020
  hoveringIndex: -1,
34014
34021
  previousQuery: null,
@@ -34033,6 +34040,7 @@ const useSelect$3 = (props, emit) => {
34033
34040
  const suffixRef = ref(null);
34034
34041
  const menuRef = ref(null);
34035
34042
  const tagMenuRef = ref(null);
34043
+ const collapseItemRef = ref(null);
34036
34044
  const scrollbarRef = ref(null);
34037
34045
  const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(inputRef, {
34038
34046
  afterFocus() {
@@ -34235,7 +34243,7 @@ const useSelect$3 = (props, emit) => {
34235
34243
  const isUndefined2 = toRawType(value).toLowerCase() === "undefined";
34236
34244
  for (let i = states.cachedOptions.size - 1; i >= 0; i--) {
34237
34245
  const cachedOption = cachedOptionsArray.value[i];
34238
- const isEqualValue = isObjectValue ? getValueKey(cachedOption.value) === getValueKey(value) : cachedOption.value === value;
34246
+ const isEqualValue = isObjectValue ? get(cachedOption.value, props.valueKey) === get(value, props.valueKey) : cachedOption.value === value;
34239
34247
  if (isEqualValue) {
34240
34248
  option = {
34241
34249
  value,
@@ -34277,6 +34285,9 @@ const useSelect$3 = (props, emit) => {
34277
34285
  const resetCalculatorWidth = () => {
34278
34286
  states.calculatorWidth = calculatorRef.value.getBoundingClientRect().width;
34279
34287
  };
34288
+ const resetCollapseItemWidth = () => {
34289
+ states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
34290
+ };
34280
34291
  const updateTooltip = () => {
34281
34292
  var _a, _b;
34282
34293
  (_b = (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
@@ -34286,13 +34297,13 @@ const useSelect$3 = (props, emit) => {
34286
34297
  (_b = (_a = tagTooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
34287
34298
  };
34288
34299
  const onInputChange = () => {
34300
+ if (states.inputValue.length > 0 && !expanded.value) {
34301
+ expanded.value = true;
34302
+ }
34289
34303
  handleQueryChange(states.inputValue);
34290
34304
  };
34291
34305
  const onInput = (event) => {
34292
34306
  states.inputValue = event.target.value;
34293
- if (states.inputValue.length > 0 && !expanded.value) {
34294
- expanded.value = true;
34295
- }
34296
34307
  if (props.remote) {
34297
34308
  debouncedOnInputChange();
34298
34309
  } else {
@@ -34354,7 +34365,7 @@ const useSelect$3 = (props, emit) => {
34354
34365
  const handleOptionSelect = (option) => {
34355
34366
  if (props.multiple) {
34356
34367
  const value = (props.modelValue || []).slice();
34357
- const optionIndex = getValueIndex(value, getValueKey(option));
34368
+ const optionIndex = getValueIndex(value, option.value);
34358
34369
  if (optionIndex > -1) {
34359
34370
  value.splice(optionIndex, 1);
34360
34371
  } else if (props.multipleLimit <= 0 || value.length < props.multipleLimit) {
@@ -34383,9 +34394,16 @@ const useSelect$3 = (props, emit) => {
34383
34394
  const getValueIndex = (arr = [], value) => {
34384
34395
  if (!isObject$1(value))
34385
34396
  return arr.indexOf(value);
34386
- return arr.findIndex((item) => {
34387
- return isEqual$1(getValueKey(item), getValueKey(value));
34397
+ const valueKey = props.valueKey;
34398
+ let index = -1;
34399
+ arr.some((item, i) => {
34400
+ if (toRaw$1(get(item, valueKey)) === get(value, valueKey)) {
34401
+ index = i;
34402
+ return true;
34403
+ }
34404
+ return false;
34388
34405
  });
34406
+ return index;
34389
34407
  };
34390
34408
  const scrollToOption = (option) => {
34391
34409
  var _a, _b, _c, _d, _e;
@@ -34432,8 +34450,7 @@ const useSelect$3 = (props, emit) => {
34432
34450
  (_a = inputRef.value) == null ? void 0 : _a.focus();
34433
34451
  };
34434
34452
  const blur = () => {
34435
- var _a;
34436
- (_a = inputRef.value) == null ? void 0 : _a.blur();
34453
+ handleClickOutside();
34437
34454
  };
34438
34455
  const handleClearClick = (event) => {
34439
34456
  deleteSelected(event);
@@ -34442,7 +34459,7 @@ const useSelect$3 = (props, emit) => {
34442
34459
  expanded.value = false;
34443
34460
  if (isFocused.value) {
34444
34461
  const _event = new FocusEvent("focus", event);
34445
- handleBlur(_event);
34462
+ nextTick(() => handleBlur(_event));
34446
34463
  }
34447
34464
  };
34448
34465
  const handleEsc = () => {
@@ -34455,6 +34472,8 @@ const useSelect$3 = (props, emit) => {
34455
34472
  const toggleMenu = () => {
34456
34473
  if (selectDisabled.value)
34457
34474
  return;
34475
+ if (props.filterable && props.remote && isFunction$1(props.remoteMethod))
34476
+ return;
34458
34477
  if (states.menuVisibleOnFocus) {
34459
34478
  states.menuVisibleOnFocus = false;
34460
34479
  } else {
@@ -34512,7 +34531,18 @@ const useSelect$3 = (props, emit) => {
34512
34531
  nextTick(() => scrollToOption(hoverOption.value));
34513
34532
  }
34514
34533
  };
34534
+ const getGapWidth = () => {
34535
+ if (!selectionRef.value)
34536
+ return 0;
34537
+ const style = window.getComputedStyle(selectionRef.value);
34538
+ return Number.parseFloat(style.gap || "6px");
34539
+ };
34515
34540
  const tagStyle = computed$1(() => {
34541
+ const gapWidth = getGapWidth();
34542
+ const maxWidth = collapseItemRef.value && props.maxCollapseTags === 1 ? states.selectionWidth - states.collapseItemWidth - gapWidth : states.selectionWidth;
34543
+ return { maxWidth: `${maxWidth}px` };
34544
+ });
34545
+ const collapseTagStyle = computed$1(() => {
34516
34546
  return { maxWidth: `${states.selectionWidth}px` };
34517
34547
  });
34518
34548
  const inputStyle = computed$1(() => ({
@@ -34527,7 +34557,9 @@ const useSelect$3 = (props, emit) => {
34527
34557
  useResizeObserver(selectionRef, resetSelectionWidth);
34528
34558
  useResizeObserver(calculatorRef, resetCalculatorWidth);
34529
34559
  useResizeObserver(menuRef, updateTooltip);
34560
+ useResizeObserver(wrapperRef, updateTooltip);
34530
34561
  useResizeObserver(tagMenuRef, updateTagTooltip);
34562
+ useResizeObserver(collapseItemRef, resetCollapseItemWidth);
34531
34563
  onMounted(() => {
34532
34564
  setSelected();
34533
34565
  });
@@ -34588,6 +34620,7 @@ const useSelect$3 = (props, emit) => {
34588
34620
  showTagList,
34589
34621
  collapseTagList,
34590
34622
  tagStyle,
34623
+ collapseTagStyle,
34591
34624
  inputStyle,
34592
34625
  popperRef,
34593
34626
  inputRef,
@@ -34601,7 +34634,8 @@ const useSelect$3 = (props, emit) => {
34601
34634
  selectionRef,
34602
34635
  scrollbarRef,
34603
34636
  menuRef,
34604
- tagMenuRef
34637
+ tagMenuRef,
34638
+ collapseItemRef
34605
34639
  };
34606
34640
  };
34607
34641
 
@@ -34868,7 +34902,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
34868
34902
  _ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
34869
34903
  key: 0,
34870
34904
  ref: "tagTooltipRef",
34871
- disabled: !_ctx.collapseTagsTooltip,
34905
+ disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
34872
34906
  "fallback-placements": ["bottom", "top", "right", "left"],
34873
34907
  effect: _ctx.effect,
34874
34908
  placement: "bottom",
@@ -34876,6 +34910,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
34876
34910
  }, {
34877
34911
  default: withCtx(() => [
34878
34912
  createElementVNode("div", {
34913
+ ref: "collapseItemRef",
34879
34914
  class: normalizeClass(_ctx.nsSelect.e("selected-item"))
34880
34915
  }, [
34881
34916
  createVNode(_component_el_tag, {
@@ -34883,7 +34918,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
34883
34918
  size: _ctx.collapseTagSize,
34884
34919
  type: _ctx.tagType,
34885
34920
  "disable-transitions": "",
34886
- style: normalizeStyle(_ctx.tagStyle)
34921
+ style: normalizeStyle(_ctx.collapseTagStyle)
34887
34922
  }, {
34888
34923
  default: withCtx(() => [
34889
34924
  createElementVNode("span", {
@@ -34955,17 +34990,17 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
34955
34990
  onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
34956
34991
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
34957
34992
  onKeydown: [
34958
- _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
34959
- _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"])),
34960
- _cache[5] || (_cache[5] = withKeys((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["esc"])),
34993
+ _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"])),
34994
+ _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"])),
34995
+ _cache[5] || (_cache[5] = withKeys(withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"])),
34961
34996
  _cache[6] || (_cache[6] = withKeys(withModifiers((...args) => _ctx.selectOption && _ctx.selectOption(...args), ["stop", "prevent"]), ["enter"])),
34962
- _cache[7] || (_cache[7] = withKeys(withModifiers((...args) => _ctx.deletePrevTag && _ctx.deletePrevTag(...args), ["stop"]), ["delete"])),
34963
- _cache[8] || (_cache[8] = withKeys(($event) => _ctx.expanded = false, ["tab"]))
34997
+ _cache[7] || (_cache[7] = withKeys(withModifiers((...args) => _ctx.deletePrevTag && _ctx.deletePrevTag(...args), ["stop", "prevent"]), ["delete"]))
34964
34998
  ],
34965
- onCompositionstart: _cache[9] || (_cache[9] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
34966
- onCompositionupdate: _cache[10] || (_cache[10] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
34967
- onCompositionend: _cache[11] || (_cache[11] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
34968
- onInput: _cache[12] || (_cache[12] = (...args) => _ctx.onInput && _ctx.onInput(...args))
34999
+ onCompositionstart: _cache[8] || (_cache[8] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
35000
+ onCompositionupdate: _cache[9] || (_cache[9] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
35001
+ onCompositionend: _cache[10] || (_cache[10] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
35002
+ onInput: _cache[11] || (_cache[11] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
35003
+ onClick: _cache[12] || (_cache[12] = withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"]))
34969
35004
  }, null, 46, _hoisted_1$p), [
34970
35005
  [vModelText, _ctx.states.inputValue]
34971
35006
  ]),
@@ -35025,8 +35060,14 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
35025
35060
  ];
35026
35061
  }),
35027
35062
  content: withCtx(() => [
35028
- createVNode(_component_el_select_menu, { ref: "menuRef" }, createSlots({
35063
+ createVNode(_component_el_select_menu, { ref: "menuRef" }, {
35029
35064
  default: withCtx(() => [
35065
+ _ctx.$slots.header ? (openBlock(), createElementBlock("div", {
35066
+ key: 0,
35067
+ class: normalizeClass(_ctx.nsSelect.be("dropdown", "header"))
35068
+ }, [
35069
+ renderSlot(_ctx.$slots, "header")
35070
+ ], 2)) : createCommentVNode("v-if", true),
35030
35071
  withDirectives(createVNode(_component_el_scrollbar, {
35031
35072
  id: _ctx.contentId,
35032
35073
  ref: "scrollbarRef",
@@ -35055,27 +35096,28 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
35055
35096
  }, 8, ["id", "wrap-class", "view-class", "class", "aria-label"]), [
35056
35097
  [vShow, _ctx.states.options.size > 0 && !_ctx.loading]
35057
35098
  ]),
35058
- _ctx.loading || _ctx.filteredOptionsCount === 0 ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
35059
- createElementVNode("p", {
35060
- class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
35061
- }, toDisplayString(_ctx.emptyText), 3)
35062
- ]) : createCommentVNode("v-if", true)
35063
- ]),
35064
- _: 2
35065
- }, [
35066
- _ctx.$slots.header ? {
35067
- name: "header",
35068
- fn: withCtx(() => [
35069
- renderSlot(_ctx.$slots, "header")
35070
- ])
35071
- } : void 0,
35072
- _ctx.$slots.footer ? {
35073
- name: "footer",
35074
- fn: withCtx(() => [
35099
+ _ctx.$slots.loading && _ctx.loading ? (openBlock(), createElementBlock("div", {
35100
+ key: 1,
35101
+ class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
35102
+ }, [
35103
+ renderSlot(_ctx.$slots, "loading")
35104
+ ], 2)) : _ctx.loading || _ctx.filteredOptionsCount === 0 ? (openBlock(), createElementBlock("div", {
35105
+ key: 2,
35106
+ class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
35107
+ }, [
35108
+ renderSlot(_ctx.$slots, "empty", {}, () => [
35109
+ createElementVNode("span", null, toDisplayString(_ctx.emptyText), 1)
35110
+ ])
35111
+ ], 2)) : createCommentVNode("v-if", true),
35112
+ _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
35113
+ key: 3,
35114
+ class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer"))
35115
+ }, [
35075
35116
  renderSlot(_ctx.$slots, "footer")
35076
- ])
35077
- } : void 0
35078
- ]), 1536)
35117
+ ], 2)) : createCommentVNode("v-if", true)
35118
+ ]),
35119
+ _: 3
35120
+ }, 512)
35079
35121
  ]),
35080
35122
  _: 3
35081
35123
  }, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "effect", "transition", "persistent", "onBeforeShow"])
@@ -38734,10 +38776,7 @@ const SelectProps = buildProps({
38734
38776
  default: "light"
38735
38777
  },
38736
38778
  collapseTags: Boolean,
38737
- collapseTagsTooltip: {
38738
- type: Boolean,
38739
- default: false
38740
- },
38779
+ collapseTagsTooltip: Boolean,
38741
38780
  maxCollapseTags: {
38742
38781
  type: Number,
38743
38782
  default: 1
@@ -38807,10 +38846,7 @@ const SelectProps = buildProps({
38807
38846
  type: String,
38808
38847
  default: "value"
38809
38848
  },
38810
- scrollbarAlwaysOn: {
38811
- type: Boolean,
38812
- default: false
38813
- },
38849
+ scrollbarAlwaysOn: Boolean,
38814
38850
  validateEvent: {
38815
38851
  type: Boolean,
38816
38852
  default: true
@@ -38887,6 +38923,7 @@ var OptionItem = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
38887
38923
  var ElSelectMenu = defineComponent({
38888
38924
  name: "ElSelectDropdown",
38889
38925
  props: {
38926
+ loading: Boolean,
38890
38927
  data: {
38891
38928
  type: Array,
38892
38929
  required: true
@@ -39076,7 +39113,7 @@ var ElSelectMenu = defineComponent({
39076
39113
  }
39077
39114
  };
39078
39115
  return () => {
39079
- var _a;
39116
+ var _a, _b, _c, _d;
39080
39117
  const {
39081
39118
  data,
39082
39119
  width
@@ -39086,18 +39123,18 @@ var ElSelectMenu = defineComponent({
39086
39123
  multiple,
39087
39124
  scrollbarAlwaysOn
39088
39125
  } = select.props;
39089
- if (data.length === 0) {
39126
+ if (slots.loading || slots.empty) {
39090
39127
  return createVNode("div", {
39091
39128
  "class": ns.b("dropdown"),
39092
39129
  "style": {
39093
39130
  width: `${width}px`
39094
39131
  }
39095
- }, [(_a = slots.empty) == null ? void 0 : _a.call(slots)]);
39132
+ }, [((_a = slots.loading) == null ? void 0 : _a.call(slots)) || ((_b = slots.empty) == null ? void 0 : _b.call(slots))]);
39096
39133
  }
39097
39134
  const List = unref(isSized) ? FixedSizeList$1 : DynamicSizeList$1;
39098
39135
  return createVNode("div", {
39099
39136
  "class": [ns.b("dropdown"), ns.is("multiple", multiple)]
39100
- }, [createVNode(List, mergeProps({
39137
+ }, [(_c = slots.header) == null ? void 0 : _c.call(slots), createVNode(List, mergeProps({
39101
39138
  "ref": listRef
39102
39139
  }, unref(listProps), {
39103
39140
  "className": ns.be("dropdown", "list"),
@@ -39109,7 +39146,7 @@ var ElSelectMenu = defineComponent({
39109
39146
  "onKeydown": onKeydown
39110
39147
  }), {
39111
39148
  default: (props2) => createVNode(Item, props2, null)
39112
- })]);
39149
+ }), (_d = slots.footer) == null ? void 0 : _d.call(slots)]);
39113
39150
  };
39114
39151
  }
39115
39152
  });
@@ -39207,6 +39244,7 @@ const useSelect$1 = (props, emit) => {
39207
39244
  inputHovering: false,
39208
39245
  selectionWidth: 0,
39209
39246
  calculatorWidth: 0,
39247
+ collapseItemWidth: 0,
39210
39248
  previousQuery: null,
39211
39249
  previousValue: void 0,
39212
39250
  selectedLabel: "",
@@ -39225,6 +39263,7 @@ const useSelect$1 = (props, emit) => {
39225
39263
  const suffixRef = ref(null);
39226
39264
  const menuRef = ref(null);
39227
39265
  const tagMenuRef = ref(null);
39266
+ const collapseItemRef = ref(null);
39228
39267
  const { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(inputRef, {
39229
39268
  afterFocus() {
39230
39269
  if (props.automaticDropdown && !expanded.value) {
@@ -39323,7 +39362,18 @@ const useSelect$1 = (props, emit) => {
39323
39362
  var _a;
39324
39363
  popperSize.value = ((_a = selectRef.value) == null ? void 0 : _a.offsetWidth) || 200;
39325
39364
  };
39365
+ const getGapWidth = () => {
39366
+ if (!selectionRef.value)
39367
+ return 0;
39368
+ const style = window.getComputedStyle(selectionRef.value);
39369
+ return Number.parseFloat(style.gap || "6px");
39370
+ };
39326
39371
  const tagStyle = computed$1(() => {
39372
+ const gapWidth = getGapWidth();
39373
+ const maxWidth = collapseItemRef.value && props.maxCollapseTags === 1 ? states.selectionWidth - states.collapseItemWidth - gapWidth : states.selectionWidth;
39374
+ return { maxWidth: `${maxWidth}px` };
39375
+ });
39376
+ const collapseTagStyle = computed$1(() => {
39327
39377
  return { maxWidth: `${states.selectionWidth}px` };
39328
39378
  });
39329
39379
  const inputStyle = computed$1(() => ({
@@ -39393,6 +39443,8 @@ const useSelect$1 = (props, emit) => {
39393
39443
  const toggleMenu = () => {
39394
39444
  if (selectDisabled.value)
39395
39445
  return;
39446
+ if (props.filterable && props.remote && isFunction$1(props.remoteMethod))
39447
+ return;
39396
39448
  if (states.menuVisibleOnFocus) {
39397
39449
  states.menuVisibleOnFocus = false;
39398
39450
  } else {
@@ -39400,6 +39452,9 @@ const useSelect$1 = (props, emit) => {
39400
39452
  }
39401
39453
  };
39402
39454
  const onInputChange = () => {
39455
+ if (states.inputValue.length > 0 && !expanded.value) {
39456
+ expanded.value = true;
39457
+ }
39403
39458
  createNewOption(states.inputValue);
39404
39459
  handleQueryChange(states.inputValue);
39405
39460
  };
@@ -39463,6 +39518,9 @@ const useSelect$1 = (props, emit) => {
39463
39518
  const resetCalculatorWidth = () => {
39464
39519
  states.calculatorWidth = calculatorRef.value.getBoundingClientRect().width;
39465
39520
  };
39521
+ const resetCollapseItemWidth = () => {
39522
+ states.collapseItemWidth = collapseItemRef.value.getBoundingClientRect().width;
39523
+ };
39466
39524
  const updateTooltip = () => {
39467
39525
  var _a, _b;
39468
39526
  (_b = (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
@@ -39634,9 +39692,6 @@ const useSelect$1 = (props, emit) => {
39634
39692
  };
39635
39693
  const onInput = (event) => {
39636
39694
  states.inputValue = event.target.value;
39637
- if (states.inputValue.length > 0 && !expanded.value) {
39638
- expanded.value = true;
39639
- }
39640
39695
  if (props.remote) {
39641
39696
  debouncedOnInputChange();
39642
39697
  } else {
@@ -39740,6 +39795,22 @@ const useSelect$1 = (props, emit) => {
39740
39795
  return;
39741
39796
  updateOptions();
39742
39797
  });
39798
+ watchEffect(() => {
39799
+ const { valueKey, options } = props;
39800
+ const duplicateValue = /* @__PURE__ */ new Map();
39801
+ for (const item of options) {
39802
+ const optionValue = getValue(item);
39803
+ let v = optionValue;
39804
+ if (isObject$1(v)) {
39805
+ v = get(optionValue, valueKey);
39806
+ }
39807
+ if (duplicateValue.get(v)) {
39808
+ break;
39809
+ } else {
39810
+ duplicateValue.set(v, true);
39811
+ }
39812
+ }
39813
+ });
39743
39814
  onMounted(() => {
39744
39815
  initStates();
39745
39816
  });
@@ -39747,7 +39818,9 @@ const useSelect$1 = (props, emit) => {
39747
39818
  useResizeObserver(selectionRef, resetSelectionWidth);
39748
39819
  useResizeObserver(calculatorRef, resetCalculatorWidth);
39749
39820
  useResizeObserver(menuRef, updateTooltip);
39821
+ useResizeObserver(wrapperRef, updateTooltip);
39750
39822
  useResizeObserver(tagMenuRef, updateTagTooltip);
39823
+ useResizeObserver(collapseItemRef, resetCollapseItemWidth);
39751
39824
  return {
39752
39825
  inputId,
39753
39826
  collapseTagSize,
@@ -39761,6 +39834,7 @@ const useSelect$1 = (props, emit) => {
39761
39834
  iconComponent,
39762
39835
  iconReverse,
39763
39836
  tagStyle,
39837
+ collapseTagStyle,
39764
39838
  inputStyle,
39765
39839
  popperSize,
39766
39840
  dropdownMenuVisible,
@@ -39784,6 +39858,7 @@ const useSelect$1 = (props, emit) => {
39784
39858
  selectionRef,
39785
39859
  prefixRef,
39786
39860
  suffixRef,
39861
+ collapseItemRef,
39787
39862
  popperRef,
39788
39863
  validateState,
39789
39864
  validateIcon,
@@ -39874,7 +39949,7 @@ const _sfc_main$G = defineComponent({
39874
39949
  };
39875
39950
  }
39876
39951
  });
39877
- const _hoisted_1$i = ["id", "autocomplete", "aria-expanded", "aria-label", "disabled", "readonly", "name", "unselectable"];
39952
+ const _hoisted_1$i = ["id", "autocomplete", "aria-expanded", "aria-label", "disabled", "readonly", "name"];
39878
39953
  const _hoisted_2$c = ["textContent"];
39879
39954
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
39880
39955
  const _component_el_tag = resolveComponent("el-tag");
@@ -39885,9 +39960,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
39885
39960
  return withDirectives((openBlock(), createElementBlock("div", {
39886
39961
  ref: "selectRef",
39887
39962
  class: normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
39888
- onMouseenter: _cache[13] || (_cache[13] = ($event) => _ctx.states.inputHovering = true),
39889
- onMouseleave: _cache[14] || (_cache[14] = ($event) => _ctx.states.inputHovering = false),
39890
- onClick: _cache[15] || (_cache[15] = withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"]))
39963
+ onMouseenter: _cache[14] || (_cache[14] = ($event) => _ctx.states.inputHovering = true),
39964
+ onMouseleave: _cache[15] || (_cache[15] = ($event) => _ctx.states.inputHovering = false),
39965
+ onClick: _cache[16] || (_cache[16] = withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"]))
39891
39966
  }, [
39892
39967
  createVNode(_component_el_tooltip, {
39893
39968
  ref: "tooltipRef",
@@ -39905,7 +39980,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
39905
39980
  trigger: "click",
39906
39981
  persistent: _ctx.persistent,
39907
39982
  onBeforeShow: _ctx.handleMenuEnter,
39908
- onHide: _cache[12] || (_cache[12] = ($event) => _ctx.states.isBeforeHide = false)
39983
+ onHide: _cache[13] || (_cache[13] = ($event) => _ctx.states.isBeforeHide = false)
39909
39984
  }, {
39910
39985
  default: withCtx(() => [
39911
39986
  createElementVNode("div", {
@@ -39958,7 +40033,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
39958
40033
  _ctx.collapseTags && _ctx.modelValue.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
39959
40034
  key: 0,
39960
40035
  ref: "tagTooltipRef",
39961
- disabled: !_ctx.collapseTagsTooltip,
40036
+ disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
39962
40037
  "fallback-placements": ["bottom", "top", "right", "left"],
39963
40038
  effect: _ctx.effect,
39964
40039
  placement: "bottom",
@@ -39966,13 +40041,14 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
39966
40041
  }, {
39967
40042
  default: withCtx(() => [
39968
40043
  createElementVNode("div", {
40044
+ ref: "collapseItemRef",
39969
40045
  class: normalizeClass(_ctx.nsSelect.e("selected-item"))
39970
40046
  }, [
39971
40047
  createVNode(_component_el_tag, {
39972
40048
  closable: false,
39973
40049
  size: _ctx.collapseTagSize,
39974
40050
  type: _ctx.tagType,
39975
- style: normalizeStyle(_ctx.tagStyle),
40051
+ style: normalizeStyle(_ctx.collapseTagStyle),
39976
40052
  "disable-transitions": ""
39977
40053
  }, {
39978
40054
  default: withCtx(() => [
@@ -40042,7 +40118,6 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
40042
40118
  spellcheck: "false",
40043
40119
  type: "text",
40044
40120
  name: _ctx.name,
40045
- unselectable: _ctx.expanded ? "on" : void 0,
40046
40121
  onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
40047
40122
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
40048
40123
  onInput: _cache[3] || (_cache[3] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
@@ -40054,8 +40129,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
40054
40129
  _cache[8] || (_cache[8] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
40055
40130
  _cache[9] || (_cache[9] = withKeys(withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
40056
40131
  _cache[10] || (_cache[10] = withKeys(withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"])),
40057
- _cache[11] || (_cache[11] = withKeys(withModifiers((...args) => _ctx.handleDel && _ctx.handleDel(...args), ["stop"]), ["delete"]))
40058
- ]
40132
+ _cache[11] || (_cache[11] = withKeys(withModifiers((...args) => _ctx.handleDel && _ctx.handleDel(...args), ["stop", "prevent"]), ["delete"]))
40133
+ ],
40134
+ onClick: _cache[12] || (_cache[12] = withModifiers((...args) => _ctx.toggleMenu && _ctx.toggleMenu(...args), ["stop"]))
40059
40135
  }, null, 46, _hoisted_1$i), [
40060
40136
  [vModelText, _ctx.states.inputValue]
40061
40137
  ]),
@@ -40122,19 +40198,54 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
40122
40198
  width: _ctx.popperSize,
40123
40199
  "hovering-index": _ctx.states.hoveringIndex,
40124
40200
  "scrollbar-always-on": _ctx.scrollbarAlwaysOn
40125
- }, {
40201
+ }, createSlots({
40126
40202
  default: withCtx((scope) => [
40127
40203
  renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(scope)))
40128
40204
  ]),
40129
- empty: withCtx(() => [
40130
- renderSlot(_ctx.$slots, "empty", {}, () => [
40131
- createElementVNode("p", {
40205
+ _: 2
40206
+ }, [
40207
+ _ctx.$slots.header ? {
40208
+ name: "header",
40209
+ fn: withCtx(() => [
40210
+ createElementVNode("div", {
40211
+ class: normalizeClass(_ctx.nsSelect.be("dropdown", "header"))
40212
+ }, [
40213
+ renderSlot(_ctx.$slots, "header")
40214
+ ], 2)
40215
+ ])
40216
+ } : void 0,
40217
+ _ctx.$slots.loading && _ctx.loading ? {
40218
+ name: "loading",
40219
+ fn: withCtx(() => [
40220
+ createElementVNode("div", {
40221
+ class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
40222
+ }, [
40223
+ renderSlot(_ctx.$slots, "loading")
40224
+ ], 2)
40225
+ ])
40226
+ } : _ctx.loading || _ctx.filteredOptions.length === 0 ? {
40227
+ name: "empty",
40228
+ fn: withCtx(() => [
40229
+ createElementVNode("div", {
40132
40230
  class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
40133
- }, toDisplayString(_ctx.emptyText ? _ctx.emptyText : ""), 3)
40231
+ }, [
40232
+ renderSlot(_ctx.$slots, "empty", {}, () => [
40233
+ createElementVNode("span", null, toDisplayString(_ctx.emptyText), 1)
40234
+ ])
40235
+ ], 2)
40134
40236
  ])
40135
- ]),
40136
- _: 3
40137
- }, 8, ["data", "width", "hovering-index", "scrollbar-always-on"])
40237
+ } : void 0,
40238
+ _ctx.$slots.footer ? {
40239
+ name: "footer",
40240
+ fn: withCtx(() => [
40241
+ createElementVNode("div", {
40242
+ class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer"))
40243
+ }, [
40244
+ renderSlot(_ctx.$slots, "footer")
40245
+ ], 2)
40246
+ ])
40247
+ } : void 0
40248
+ ]), 1032, ["data", "width", "hovering-index", "scrollbar-always-on"])
40138
40249
  ]),
40139
40250
  _: 3
40140
40251
  }, 8, ["visible", "teleported", "popper-class", "popper-options", "effect", "placement", "transition", "persistent", "onBeforeShow"])
@@ -41218,19 +41329,18 @@ function useSpace(props) {
41218
41329
  const horizontalSize = ref(0);
41219
41330
  const verticalSize = ref(0);
41220
41331
  const containerStyle = computed$1(() => {
41221
- const wrapKls = props.wrap || props.fill ? { flexWrap: "wrap", marginBottom: `-${verticalSize.value}px` } : {};
41332
+ const wrapKls = props.wrap || props.fill ? { flexWrap: "wrap" } : {};
41222
41333
  const alignment = {
41223
41334
  alignItems: props.alignment
41224
41335
  };
41225
- return [wrapKls, alignment, props.style];
41336
+ const gap = {
41337
+ rowGap: `${verticalSize.value}px`,
41338
+ columnGap: `${horizontalSize.value}px`
41339
+ };
41340
+ return [wrapKls, alignment, gap, props.style];
41226
41341
  });
41227
41342
  const itemStyle = computed$1(() => {
41228
- const itemBaseStyle = {
41229
- paddingBottom: `${verticalSize.value}px`,
41230
- marginRight: `${horizontalSize.value}px`
41231
- };
41232
- const fillStyle = props.fill ? { flexGrow: 1, minWidth: `${props.fillRatio}%` } : {};
41233
- return [itemBaseStyle, fillStyle];
41343
+ return props.fill ? { flexGrow: 1, minWidth: `${props.fillRatio}%` } : {};
41234
41344
  });
41235
41345
  watchEffect(() => {
41236
41346
  const { size = "small", wrap, direction: dir, fill } = props;
@@ -42226,54 +42336,6 @@ var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__file", "switch.vue"]]
42226
42336
 
42227
42337
  const ElSwitch = withInstall(Switch);
42228
42338
 
42229
- var matchHtmlRegExp = /["'&<>]/;
42230
- var escapeHtml_1 = escapeHtml;
42231
- function escapeHtml(string) {
42232
- var str = "" + string;
42233
- var match = matchHtmlRegExp.exec(str);
42234
- if (!match) {
42235
- return str;
42236
- }
42237
- var escape;
42238
- var html = "";
42239
- var index = 0;
42240
- var lastIndex = 0;
42241
- for (index = match.index; index < str.length; index++) {
42242
- switch (str.charCodeAt(index)) {
42243
- case 34:
42244
- escape = "&quot;";
42245
- break;
42246
- case 38:
42247
- escape = "&amp;";
42248
- break;
42249
- case 39:
42250
- escape = "&#39;";
42251
- break;
42252
- case 60:
42253
- escape = "&lt;";
42254
- break;
42255
- case 62:
42256
- escape = "&gt;";
42257
- break;
42258
- default:
42259
- continue;
42260
- }
42261
- if (lastIndex !== index) {
42262
- html += str.substring(lastIndex, index);
42263
- }
42264
- lastIndex = index + 1;
42265
- html += escape;
42266
- }
42267
- return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
42268
- }
42269
- /*!
42270
- * escape-html
42271
- * Copyright(c) 2012-2013 TJ Holowaychuk
42272
- * Copyright(c) 2015 Andreas Lubbe
42273
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
42274
- * MIT Licensed
42275
- */
42276
-
42277
42339
  const getCell = function(event) {
42278
42340
  var _a;
42279
42341
  return (_a = event.target) == null ? void 0 : _a.closest("td");
@@ -42501,112 +42563,45 @@ function walkTreeNode(root, cb, childrenKey = "children", lazyKey = "hasChildren
42501
42563
  }
42502
42564
  });
42503
42565
  }
42504
- let removePopper;
42505
- function createTablePopper(parentNode, trigger, popperContent, nextZIndex, tooltipOptions) {
42506
- tooltipOptions = merge({
42507
- enterable: true,
42508
- showArrow: true
42509
- }, tooltipOptions);
42510
- const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
42511
- const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
42512
- function renderContent() {
42513
- const isLight = tooltipOptions.effect === "light";
42514
- const content2 = document.createElement("div");
42515
- content2.className = [
42516
- `${ns}-popper`,
42517
- isLight ? "is-light" : "is-dark",
42518
- tooltipOptions.popperClass || ""
42519
- ].join(" ");
42520
- popperContent = escapeHtml_1(popperContent);
42521
- content2.innerHTML = popperContent;
42522
- content2.style.zIndex = String(nextZIndex());
42523
- parentNode == null ? void 0 : parentNode.appendChild(content2);
42524
- return content2;
42525
- }
42526
- function renderArrow() {
42527
- const arrow = document.createElement("div");
42528
- arrow.className = `${ns}-popper__arrow`;
42529
- return arrow;
42530
- }
42531
- function togglePopperVisible(display) {
42532
- return {
42533
- name: "updateState",
42534
- enabled: true,
42535
- phase: "beforeWrite",
42536
- fn: ({ state }) => {
42537
- state.styles.popper.display = display;
42538
- },
42539
- requires: ["computeStyles"]
42540
- };
42541
- }
42542
- function showPopper() {
42543
- if (tooltipOptions.showAfter) {
42544
- popperInstance == null ? void 0 : popperInstance.setOptions({
42545
- modifiers: [togglePopperVisible("block")]
42546
- });
42547
- }
42548
- popperInstance == null ? void 0 : popperInstance.update();
42566
+ let removePopper = null;
42567
+ function createTablePopper(props, popperContent, trigger, table) {
42568
+ if ((removePopper == null ? void 0 : removePopper.trigger) === trigger) {
42569
+ return;
42549
42570
  }
42550
- const triggerChanged = (removePopper == null ? void 0 : removePopper.trigger) !== trigger;
42551
42571
  removePopper == null ? void 0 : removePopper();
42552
- removePopper = () => {
42553
- try {
42554
- popperInstance && popperInstance.destroy();
42555
- content && (parentNode == null ? void 0 : parentNode.removeChild(content));
42556
- trigger.removeEventListener("mouseenter", onOpen);
42557
- trigger.removeEventListener("mouseleave", onClose);
42558
- scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
42559
- removePopper = void 0;
42560
- } catch (e) {
42572
+ const parentNode = table == null ? void 0 : table.refs.tableWrapper;
42573
+ const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
42574
+ const popperOptions = {
42575
+ strategy: "fixed",
42576
+ ...props.popperOptions
42577
+ };
42578
+ const vm = createVNode(ElTooltip, {
42579
+ content: popperContent,
42580
+ virtualTriggering: true,
42581
+ virtualRef: trigger,
42582
+ appendTo: parentNode,
42583
+ placement: "top",
42584
+ transition: "none",
42585
+ offset: 0,
42586
+ hideAfter: 0,
42587
+ ...props,
42588
+ popperOptions,
42589
+ onHide: () => {
42590
+ removePopper == null ? void 0 : removePopper();
42561
42591
  }
42592
+ });
42593
+ vm.appContext = table.appContext;
42594
+ const container = document.createElement("div");
42595
+ render(vm, container);
42596
+ vm.component.exposed.onOpen();
42597
+ const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
42598
+ removePopper = () => {
42599
+ render(null, container);
42600
+ scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
42601
+ removePopper = null;
42562
42602
  };
42563
42603
  removePopper.trigger = trigger;
42564
- let popperInstance = null;
42565
- const { onOpen, onClose } = useDelayedToggle({
42566
- showAfter: tooltipOptions.showAfter,
42567
- hideAfter: tooltipOptions.hideAfter,
42568
- open: showPopper,
42569
- close: removePopper
42570
- });
42571
- const content = renderContent();
42572
- if (tooltipOptions.enterable) {
42573
- content.onmouseenter = onOpen;
42574
- content.onmouseleave = onClose;
42575
- }
42576
- const modifiers = [];
42577
- if (tooltipOptions.offset) {
42578
- modifiers.push({
42579
- name: "offset",
42580
- options: {
42581
- offset: [0, tooltipOptions.offset]
42582
- }
42583
- });
42584
- }
42585
- if (tooltipOptions.showArrow) {
42586
- const arrow = content.appendChild(renderArrow());
42587
- modifiers.push({
42588
- name: "arrow",
42589
- options: {
42590
- element: arrow,
42591
- padding: 10
42592
- }
42593
- });
42594
- }
42595
- if (tooltipOptions.showAfter && triggerChanged) {
42596
- modifiers.push(togglePopperVisible("none"));
42597
- }
42598
- const popperOptions = tooltipOptions.popperOptions || {};
42599
- popperInstance = yn(trigger, content, {
42600
- placement: tooltipOptions.placement || "top",
42601
- strategy: "fixed",
42602
- ...popperOptions,
42603
- modifiers: popperOptions.modifiers ? modifiers.concat(popperOptions.modifiers) : modifiers
42604
- });
42605
- trigger.addEventListener("mouseenter", onOpen);
42606
- trigger.addEventListener("mouseleave", onClose);
42607
42604
  scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
42608
- onOpen();
42609
- return popperInstance;
42610
42605
  }
42611
42606
  function getCurrentColumns(column) {
42612
42607
  if (column.children) {
@@ -44692,7 +44687,6 @@ function useEvents(props) {
44692
44687
  const parent = inject(TABLE_INJECTION_KEY);
44693
44688
  const tooltipContent = ref("");
44694
44689
  const tooltipTrigger = ref(h$1("div"));
44695
- const { nextZIndex } = useZIndex();
44696
44690
  const handleEvent = (event, row, name) => {
44697
44691
  var _a;
44698
44692
  const table = parent;
@@ -44774,7 +44768,7 @@ function useEvents(props) {
44774
44768
  const horizontalPadding = left + right;
44775
44769
  const verticalPadding = top + bottom;
44776
44770
  if (rangeWidth + horizontalPadding > cellChild.offsetWidth || rangeHeight + verticalPadding > cellChild.offsetHeight || cellChild.scrollWidth > cellChild.offsetWidth) {
44777
- createTablePopper(parent == null ? void 0 : parent.refs.tableWrapper, cell, cell.innerText || cell.textContent, nextZIndex, tooltipOptions);
44771
+ createTablePopper(tooltipOptions, cell.innerText || cell.textContent, cell, table);
44778
44772
  }
44779
44773
  };
44780
44774
  const handleCellMouseLeave = (event) => {
@@ -51556,10 +51550,19 @@ class TreeStore {
51556
51550
  }
51557
51551
  }
51558
51552
  _setCheckedKeys(key, leafOnly = false, checkedKeys) {
51559
- const allNodes = this._getAllNodes().sort((a, b) => b.level - a.level);
51553
+ const allNodes = this._getAllNodes().sort((a, b) => a.level - b.level);
51560
51554
  const cache = /* @__PURE__ */ Object.create(null);
51561
51555
  const keys = Object.keys(checkedKeys);
51562
51556
  allNodes.forEach((node) => node.setChecked(false, false));
51557
+ const cacheCheckedChild = (node) => {
51558
+ node.childNodes.forEach((child) => {
51559
+ var _a;
51560
+ cache[child.data[key]] = true;
51561
+ if ((_a = child.childNodes) == null ? void 0 : _a.length) {
51562
+ cacheCheckedChild(child);
51563
+ }
51564
+ });
51565
+ };
51563
51566
  for (let i = 0, j = allNodes.length; i < j; i++) {
51564
51567
  const node = allNodes[i];
51565
51568
  const nodeKey = node.data[key].toString();
@@ -51570,10 +51573,8 @@ class TreeStore {
51570
51573
  }
51571
51574
  continue;
51572
51575
  }
51573
- let parent = node.parent;
51574
- while (parent && parent.level > 0) {
51575
- cache[parent.data[key]] = true;
51576
- parent = parent.parent;
51576
+ if (node.childNodes.length) {
51577
+ cacheCheckedChild(node);
51577
51578
  }
51578
51579
  if (node.isLeaf || this.checkStrictly) {
51579
51580
  node.setChecked(true, false);
@@ -55017,15 +55018,27 @@ const maskProps = buildProps({
55017
55018
 
55018
55019
  const useTarget = (target, open, gap, mergedMask, scrollIntoViewOptions) => {
55019
55020
  const posInfo = ref(null);
55021
+ const getTargetEl = () => {
55022
+ let targetEl;
55023
+ if (isString$1(target.value)) {
55024
+ targetEl = document.querySelector(target.value);
55025
+ } else if (isFunction$1(target.value)) {
55026
+ targetEl = target.value();
55027
+ } else {
55028
+ targetEl = target.value;
55029
+ }
55030
+ return targetEl;
55031
+ };
55020
55032
  const updatePosInfo = () => {
55021
- if (!target.value || !open.value) {
55033
+ const targetEl = getTargetEl();
55034
+ if (!targetEl || !open.value) {
55022
55035
  posInfo.value = null;
55023
55036
  return;
55024
55037
  }
55025
- if (!isInViewPort(target.value) && open.value) {
55026
- target.value.scrollIntoView(scrollIntoViewOptions.value);
55038
+ if (!isInViewPort(targetEl) && open.value) {
55039
+ targetEl.scrollIntoView(scrollIntoViewOptions.value);
55027
55040
  }
55028
- const { left, top, width, height } = target.value.getBoundingClientRect();
55041
+ const { left, top, width, height } = targetEl.getBoundingClientRect();
55029
55042
  posInfo.value = {
55030
55043
  left,
55031
55044
  top,
@@ -55065,8 +55078,9 @@ const useTarget = (target, open, gap, mergedMask, scrollIntoViewOptions) => {
55065
55078
  };
55066
55079
  });
55067
55080
  const triggerTarget = computed$1(() => {
55068
- if (!mergedMask.value || !target.value || !window.DOMRect) {
55069
- return target.value || void 0;
55081
+ const targetEl = getTargetEl();
55082
+ if (!mergedMask.value || !targetEl || !window.DOMRect) {
55083
+ return targetEl || void 0;
55070
55084
  }
55071
55085
  return {
55072
55086
  getBoundingClientRect() {
@@ -55660,7 +55674,7 @@ var Tour = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "tour.vue"]]);
55660
55674
 
55661
55675
  const tourStepProps = buildProps({
55662
55676
  target: {
55663
- type: definePropType(Object)
55677
+ type: definePropType([String, Object, Function])
55664
55678
  },
55665
55679
  title: String,
55666
55680
  description: String,