@element-plus/nightly 0.0.20241113 → 0.0.20241114

Sign up to get free protection for your applications and to get access to all the features.
Files changed (408) hide show
  1. package/dist/index.full.js +129 -111
  2. package/dist/index.full.min.js +11 -11
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +11 -11
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +129 -111
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/my.js +1 -1
  152. package/dist/locale/my.min.js +1 -1
  153. package/dist/locale/my.min.mjs +1 -1
  154. package/dist/locale/my.mjs +1 -1
  155. package/dist/locale/nb-no.js +1 -1
  156. package/dist/locale/nb-no.min.js +1 -1
  157. package/dist/locale/nb-no.min.mjs +1 -1
  158. package/dist/locale/nb-no.mjs +1 -1
  159. package/dist/locale/nl.js +1 -1
  160. package/dist/locale/nl.min.js +1 -1
  161. package/dist/locale/nl.min.mjs +1 -1
  162. package/dist/locale/nl.mjs +1 -1
  163. package/dist/locale/pa.js +1 -1
  164. package/dist/locale/pa.min.js +1 -1
  165. package/dist/locale/pa.min.mjs +1 -1
  166. package/dist/locale/pa.mjs +1 -1
  167. package/dist/locale/pl.js +1 -1
  168. package/dist/locale/pl.min.js +1 -1
  169. package/dist/locale/pl.min.mjs +1 -1
  170. package/dist/locale/pl.mjs +1 -1
  171. package/dist/locale/pt-br.js +1 -1
  172. package/dist/locale/pt-br.min.js +1 -1
  173. package/dist/locale/pt-br.min.mjs +1 -1
  174. package/dist/locale/pt-br.mjs +1 -1
  175. package/dist/locale/pt.js +1 -1
  176. package/dist/locale/pt.min.js +1 -1
  177. package/dist/locale/pt.min.mjs +1 -1
  178. package/dist/locale/pt.mjs +1 -1
  179. package/dist/locale/ro.js +1 -1
  180. package/dist/locale/ro.min.js +1 -1
  181. package/dist/locale/ro.min.mjs +1 -1
  182. package/dist/locale/ro.mjs +1 -1
  183. package/dist/locale/ru.js +1 -1
  184. package/dist/locale/ru.min.js +1 -1
  185. package/dist/locale/ru.min.mjs +1 -1
  186. package/dist/locale/ru.mjs +1 -1
  187. package/dist/locale/sk.js +1 -1
  188. package/dist/locale/sk.min.js +1 -1
  189. package/dist/locale/sk.min.mjs +1 -1
  190. package/dist/locale/sk.mjs +1 -1
  191. package/dist/locale/sl.js +1 -1
  192. package/dist/locale/sl.min.js +1 -1
  193. package/dist/locale/sl.min.mjs +1 -1
  194. package/dist/locale/sl.mjs +1 -1
  195. package/dist/locale/sr.js +1 -1
  196. package/dist/locale/sr.min.js +1 -1
  197. package/dist/locale/sr.min.mjs +1 -1
  198. package/dist/locale/sr.mjs +1 -1
  199. package/dist/locale/sv.js +1 -1
  200. package/dist/locale/sv.min.js +1 -1
  201. package/dist/locale/sv.min.mjs +1 -1
  202. package/dist/locale/sv.mjs +1 -1
  203. package/dist/locale/sw.js +1 -1
  204. package/dist/locale/sw.min.js +1 -1
  205. package/dist/locale/sw.min.mjs +1 -1
  206. package/dist/locale/sw.mjs +1 -1
  207. package/dist/locale/ta.js +1 -1
  208. package/dist/locale/ta.min.js +1 -1
  209. package/dist/locale/ta.min.mjs +1 -1
  210. package/dist/locale/ta.mjs +1 -1
  211. package/dist/locale/th.js +1 -1
  212. package/dist/locale/th.min.js +1 -1
  213. package/dist/locale/th.min.mjs +1 -1
  214. package/dist/locale/th.mjs +1 -1
  215. package/dist/locale/tk.js +1 -1
  216. package/dist/locale/tk.min.js +1 -1
  217. package/dist/locale/tk.min.mjs +1 -1
  218. package/dist/locale/tk.mjs +1 -1
  219. package/dist/locale/tr.js +1 -1
  220. package/dist/locale/tr.min.js +1 -1
  221. package/dist/locale/tr.min.mjs +1 -1
  222. package/dist/locale/tr.mjs +1 -1
  223. package/dist/locale/ug-cn.js +1 -1
  224. package/dist/locale/ug-cn.min.js +1 -1
  225. package/dist/locale/ug-cn.min.mjs +1 -1
  226. package/dist/locale/ug-cn.mjs +1 -1
  227. package/dist/locale/uk.js +1 -1
  228. package/dist/locale/uk.min.js +1 -1
  229. package/dist/locale/uk.min.mjs +1 -1
  230. package/dist/locale/uk.mjs +1 -1
  231. package/dist/locale/uz-uz.js +1 -1
  232. package/dist/locale/uz-uz.min.js +1 -1
  233. package/dist/locale/uz-uz.min.mjs +1 -1
  234. package/dist/locale/uz-uz.mjs +1 -1
  235. package/dist/locale/vi.js +1 -1
  236. package/dist/locale/vi.min.js +1 -1
  237. package/dist/locale/vi.min.mjs +1 -1
  238. package/dist/locale/vi.mjs +1 -1
  239. package/dist/locale/zh-cn.js +1 -1
  240. package/dist/locale/zh-cn.min.js +1 -1
  241. package/dist/locale/zh-cn.min.mjs +1 -1
  242. package/dist/locale/zh-cn.mjs +1 -1
  243. package/dist/locale/zh-tw.js +1 -1
  244. package/dist/locale/zh-tw.min.js +1 -1
  245. package/dist/locale/zh-tw.min.mjs +1 -1
  246. package/dist/locale/zh-tw.mjs +1 -1
  247. package/es/components/carousel/index.mjs +2 -2
  248. package/es/components/carousel/src/carousel-item.mjs +8 -70
  249. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  250. package/es/components/carousel/src/carousel-item2.mjs +70 -8
  251. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  252. package/es/components/cascader/index.mjs +2 -2
  253. package/es/components/cascader/src/cascader.mjs +83 -627
  254. package/es/components/cascader/src/cascader.mjs.map +1 -1
  255. package/es/components/cascader/src/cascader2.mjs +629 -83
  256. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  257. package/es/components/cascader-panel/src/index.mjs +1 -0
  258. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  259. package/es/components/collapse/index.mjs +2 -2
  260. package/es/components/collapse/src/collapse.mjs +18 -28
  261. package/es/components/collapse/src/collapse.mjs.map +1 -1
  262. package/es/components/collapse/src/collapse2.mjs +28 -18
  263. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  264. package/es/components/color-picker/src/color-picker2.mjs +1 -0
  265. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  266. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -3
  267. package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -1
  268. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  269. package/es/components/dropdown/src/dropdown2.mjs +7 -2
  270. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  271. package/es/components/dropdown/src/useDropdown.mjs +1 -1
  272. package/es/components/dropdown/src/useDropdown.mjs.map +1 -1
  273. package/es/components/focus-trap/src/focus-trap.mjs +2 -2
  274. package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
  275. package/es/components/index.mjs +5 -5
  276. package/es/components/mention/src/mention2.mjs +51 -45
  277. package/es/components/mention/src/mention2.mjs.map +1 -1
  278. package/es/components/menu/src/utils/menu-item.mjs +1 -0
  279. package/es/components/menu/src/utils/menu-item.mjs.map +1 -1
  280. package/es/components/menu/src/utils/submenu.mjs +1 -0
  281. package/es/components/menu/src/utils/submenu.mjs.map +1 -1
  282. package/es/components/pagination/src/components/next.mjs +36 -19
  283. package/es/components/pagination/src/components/next.mjs.map +1 -1
  284. package/es/components/pagination/src/components/next2.mjs +19 -36
  285. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  286. package/es/components/pagination/src/pagination.mjs +1 -1
  287. package/es/components/roving-focus-group/index.mjs +3 -3
  288. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  289. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  290. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  291. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  292. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  293. package/es/components/roving-focus-group/src/roving-focus-item.mjs +3 -3
  294. package/es/components/roving-focus-group/src/roving-focus-item.mjs.map +1 -1
  295. package/es/components/roving-focus-group/src/utils.mjs +1 -1
  296. package/es/components/roving-focus-group/src/utils.mjs.map +1 -1
  297. package/es/components/scrollbar/index.mjs +2 -2
  298. package/es/components/scrollbar/src/scrollbar.mjs +55 -171
  299. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  300. package/es/components/scrollbar/src/scrollbar2.mjs +171 -55
  301. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  302. package/es/components/segmented/index.mjs +2 -2
  303. package/es/components/segmented/src/segmented.mjs +34 -169
  304. package/es/components/segmented/src/segmented.mjs.map +1 -1
  305. package/es/components/segmented/src/segmented2.mjs +169 -34
  306. package/es/components/segmented/src/segmented2.mjs.map +1 -1
  307. package/es/components/select-v2/src/select-dropdown.mjs +7 -9
  308. package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
  309. package/es/components/select-v2/src/useSelect.mjs +2 -1
  310. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  311. package/es/components/slider/src/composables/use-slider-button.mjs +24 -15
  312. package/es/components/slider/src/composables/use-slider-button.mjs.map +1 -1
  313. package/es/components/tabs/src/tab-nav.mjs +21 -25
  314. package/es/components/tabs/src/tab-nav.mjs.map +1 -1
  315. package/es/components/tabs/src/tabs.mjs +1 -1
  316. package/es/components/tabs/src/tabs.mjs.map +1 -1
  317. package/es/components/tooltip/src/trigger.mjs +1 -1
  318. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  319. package/es/components/tree/src/model/useKeydown.mjs +1 -1
  320. package/es/components/tree/src/model/useKeydown.mjs.map +1 -1
  321. package/es/hooks/use-escape-keydown/index.mjs +2 -3
  322. package/es/hooks/use-escape-keydown/index.mjs.map +1 -1
  323. package/es/index.mjs +5 -5
  324. package/es/version.d.ts +1 -1
  325. package/es/version.mjs +1 -1
  326. package/es/version.mjs.map +1 -1
  327. package/lib/components/carousel/index.js +2 -2
  328. package/lib/components/carousel/src/carousel-item.js +8 -70
  329. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  330. package/lib/components/carousel/src/carousel-item2.js +70 -8
  331. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  332. package/lib/components/cascader/index.js +2 -2
  333. package/lib/components/cascader/src/cascader.js +84 -627
  334. package/lib/components/cascader/src/cascader.js.map +1 -1
  335. package/lib/components/cascader/src/cascader2.js +629 -84
  336. package/lib/components/cascader/src/cascader2.js.map +1 -1
  337. package/lib/components/cascader-panel/src/index.js +1 -0
  338. package/lib/components/cascader-panel/src/index.js.map +1 -1
  339. package/lib/components/collapse/index.js +2 -2
  340. package/lib/components/collapse/src/collapse.js +20 -28
  341. package/lib/components/collapse/src/collapse.js.map +1 -1
  342. package/lib/components/collapse/src/collapse2.js +28 -20
  343. package/lib/components/collapse/src/collapse2.js.map +1 -1
  344. package/lib/components/color-picker/src/color-picker2.js +1 -0
  345. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  346. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -3
  347. package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -1
  348. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  349. package/lib/components/dropdown/src/dropdown2.js +7 -2
  350. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  351. package/lib/components/dropdown/src/useDropdown.js +1 -1
  352. package/lib/components/dropdown/src/useDropdown.js.map +1 -1
  353. package/lib/components/focus-trap/src/focus-trap.js +2 -2
  354. package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
  355. package/lib/components/index.js +5 -5
  356. package/lib/components/mention/src/mention2.js +51 -45
  357. package/lib/components/mention/src/mention2.js.map +1 -1
  358. package/lib/components/menu/src/utils/menu-item.js +1 -0
  359. package/lib/components/menu/src/utils/menu-item.js.map +1 -1
  360. package/lib/components/menu/src/utils/submenu.js +1 -0
  361. package/lib/components/menu/src/utils/submenu.js.map +1 -1
  362. package/lib/components/pagination/src/components/next.js +36 -19
  363. package/lib/components/pagination/src/components/next.js.map +1 -1
  364. package/lib/components/pagination/src/components/next2.js +19 -36
  365. package/lib/components/pagination/src/components/next2.js.map +1 -1
  366. package/lib/components/pagination/src/pagination.js +1 -1
  367. package/lib/components/roving-focus-group/index.js +2 -2
  368. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  369. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  370. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  371. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  372. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  373. package/lib/components/roving-focus-group/src/roving-focus-item.js +3 -3
  374. package/lib/components/roving-focus-group/src/roving-focus-item.js.map +1 -1
  375. package/lib/components/roving-focus-group/src/utils.js +1 -1
  376. package/lib/components/roving-focus-group/src/utils.js.map +1 -1
  377. package/lib/components/scrollbar/index.js +2 -2
  378. package/lib/components/scrollbar/src/scrollbar.js +56 -171
  379. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  380. package/lib/components/scrollbar/src/scrollbar2.js +171 -56
  381. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  382. package/lib/components/segmented/index.js +2 -2
  383. package/lib/components/segmented/src/segmented.js +34 -168
  384. package/lib/components/segmented/src/segmented.js.map +1 -1
  385. package/lib/components/segmented/src/segmented2.js +168 -34
  386. package/lib/components/segmented/src/segmented2.js.map +1 -1
  387. package/lib/components/select-v2/src/select-dropdown.js +7 -9
  388. package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
  389. package/lib/components/select-v2/src/useSelect.js +2 -1
  390. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  391. package/lib/components/slider/src/composables/use-slider-button.js +24 -15
  392. package/lib/components/slider/src/composables/use-slider-button.js.map +1 -1
  393. package/lib/components/tabs/src/tab-nav.js +21 -25
  394. package/lib/components/tabs/src/tab-nav.js.map +1 -1
  395. package/lib/components/tabs/src/tabs.js +1 -1
  396. package/lib/components/tabs/src/tabs.js.map +1 -1
  397. package/lib/components/tooltip/src/trigger.js +1 -1
  398. package/lib/components/tooltip/src/trigger.js.map +1 -1
  399. package/lib/components/tree/src/model/useKeydown.js +1 -1
  400. package/lib/components/tree/src/model/useKeydown.js.map +1 -1
  401. package/lib/hooks/use-escape-keydown/index.js +2 -3
  402. package/lib/hooks/use-escape-keydown/index.js.map +1 -1
  403. package/lib/index.js +5 -5
  404. package/lib/version.d.ts +1 -1
  405. package/lib/version.js +1 -1
  406. package/lib/version.js.map +1 -1
  407. package/package.json +2 -2
  408. package/web-types.json +1 -1
@@ -2,95 +2,640 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var core = require('@popperjs/core');
6
- require('../../cascader-panel/index.js');
5
+ var vue = require('vue');
6
+ var lodashUnified = require('lodash-unified');
7
+ var core = require('@vueuse/core');
7
8
  require('../../../utils/index.js');
9
+ var index$9 = require('../../cascader-panel/index.js');
10
+ var index$5 = require('../../input/index.js');
11
+ var index$4 = require('../../tooltip/index.js');
12
+ var index$a = require('../../scrollbar/index.js');
13
+ var index$7 = require('../../tag/index.js');
14
+ var index$6 = require('../../icon/index.js');
15
+ require('../../form/index.js');
16
+ require('../../../directives/index.js');
8
17
  require('../../../hooks/index.js');
9
- require('../../tooltip/index.js');
10
- require('../../tag/index.js');
11
18
  require('../../../constants/index.js');
12
- var runtime = require('../../../utils/vue/props/runtime.js');
13
- var config = require('../../cascader-panel/src/config.js');
14
- var index = require('../../../hooks/use-size/index.js');
15
- var content = require('../../tooltip/src/content.js');
16
- var tag = require('../../tag/src/tag.js');
17
- var index$1 = require('../../../hooks/use-empty-values/index.js');
19
+ var iconsVue = require('@element-plus/icons-vue');
20
+ var cascader = require('./cascader.js');
21
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
22
+ var index = require('../../../hooks/use-namespace/index.js');
23
+ var index$1 = require('../../../hooks/use-locale/index.js');
24
+ var useFormItem = require('../../form/src/hooks/use-form-item.js');
25
+ var index$2 = require('../../../hooks/use-empty-values/index.js');
26
+ var index$3 = require('../../../hooks/use-composition/index.js');
27
+ var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
18
28
  var event = require('../../../constants/event.js');
19
- var types = require('../../../utils/types.js');
29
+ var error = require('../../../utils/error.js');
30
+ var aria = require('../../../constants/aria.js');
31
+ var aria$1 = require('../../../utils/dom/aria.js');
32
+ var shared = require('@vue/shared');
33
+ var index$8 = require('../../../directives/click-outside/index.js');
20
34
 
21
- const cascaderProps = runtime.buildProps({
22
- ...config.CommonProps,
23
- size: index.useSizeProp,
24
- placeholder: String,
25
- disabled: Boolean,
26
- clearable: Boolean,
27
- filterable: Boolean,
28
- filterMethod: {
29
- type: runtime.definePropType(Function),
30
- default: (node, keyword) => node.text.includes(keyword)
31
- },
32
- separator: {
33
- type: String,
34
- default: " / "
35
- },
36
- showAllLevels: {
37
- type: Boolean,
38
- default: true
39
- },
40
- collapseTags: Boolean,
41
- maxCollapseTags: {
42
- type: Number,
43
- default: 1
44
- },
45
- collapseTagsTooltip: {
46
- type: Boolean,
47
- default: false
48
- },
49
- debounce: {
50
- type: Number,
51
- default: 300
52
- },
53
- beforeFilter: {
54
- type: runtime.definePropType(Function),
55
- default: () => true
56
- },
57
- placement: {
58
- type: runtime.definePropType(String),
59
- values: core.placements,
60
- default: "bottom-start"
61
- },
62
- fallbackPlacements: {
63
- type: runtime.definePropType(Array),
64
- default: ["bottom-start", "bottom", "top-start", "top", "right", "left"]
65
- },
66
- popperClass: {
67
- type: String,
68
- default: ""
69
- },
70
- teleported: content.useTooltipContentProps.teleported,
71
- tagType: { ...tag.tagProps.type, default: "info" },
72
- tagEffect: { ...tag.tagProps.effect, default: "light" },
73
- validateEvent: {
74
- type: Boolean,
75
- default: true
76
- },
77
- persistent: {
78
- type: Boolean,
79
- default: true
80
- },
81
- ...index$1.useEmptyValuesProps
35
+ const COMPONENT_NAME = "ElCascader";
36
+ const __default__ = vue.defineComponent({
37
+ name: COMPONENT_NAME
82
38
  });
83
- const cascaderEmits = {
84
- [event.UPDATE_MODEL_EVENT]: (_) => true,
85
- [event.CHANGE_EVENT]: (_) => true,
86
- focus: (evt) => evt instanceof FocusEvent,
87
- blur: (evt) => evt instanceof FocusEvent,
88
- clear: () => true,
89
- visibleChange: (val) => types.isBoolean(val),
90
- expandChange: (val) => !!val,
91
- removeTag: (val) => !!val
92
- };
39
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
40
+ ...__default__,
41
+ props: cascader.cascaderProps,
42
+ emits: cascader.cascaderEmits,
43
+ setup(__props, { expose, emit }) {
44
+ const props = __props;
45
+ const popperOptions = {
46
+ modifiers: [
47
+ {
48
+ name: "arrowPosition",
49
+ enabled: true,
50
+ phase: "main",
51
+ fn: ({ state }) => {
52
+ const { modifiersData, placement } = state;
53
+ if (["right", "left", "bottom", "top"].includes(placement))
54
+ return;
55
+ modifiersData.arrow.x = 35;
56
+ },
57
+ requires: ["arrow"]
58
+ }
59
+ ]
60
+ };
61
+ const attrs = vue.useAttrs();
62
+ let inputInitialHeight = 0;
63
+ let pressDeleteCount = 0;
64
+ const nsCascader = index.useNamespace("cascader");
65
+ const nsInput = index.useNamespace("input");
66
+ const { t } = index$1.useLocale();
67
+ const { form, formItem } = useFormItem.useFormItem();
68
+ const { valueOnClear } = index$2.useEmptyValues(props);
69
+ const { isComposing, handleComposition } = index$3.useComposition({
70
+ afterComposition(event) {
71
+ var _a;
72
+ const text = (_a = event.target) == null ? void 0 : _a.value;
73
+ handleInput(text);
74
+ }
75
+ });
76
+ const tooltipRef = vue.ref(null);
77
+ const input = vue.ref(null);
78
+ const tagWrapper = vue.ref(null);
79
+ const cascaderPanelRef = vue.ref(null);
80
+ const suggestionPanel = vue.ref(null);
81
+ const popperVisible = vue.ref(false);
82
+ const inputHover = vue.ref(false);
83
+ const filtering = vue.ref(false);
84
+ const filterFocus = vue.ref(false);
85
+ const inputValue = vue.ref("");
86
+ const searchInputValue = vue.ref("");
87
+ const presentTags = vue.ref([]);
88
+ const allPresentTags = vue.ref([]);
89
+ const suggestions = vue.ref([]);
90
+ const cascaderStyle = vue.computed(() => {
91
+ return attrs.style;
92
+ });
93
+ const isDisabled = vue.computed(() => props.disabled || (form == null ? void 0 : form.disabled));
94
+ const inputPlaceholder = vue.computed(() => props.placeholder || t("el.cascader.placeholder"));
95
+ const currentPlaceholder = vue.computed(() => searchInputValue.value || presentTags.value.length > 0 || isComposing.value ? "" : inputPlaceholder.value);
96
+ const realSize = useFormCommonProps.useFormSize();
97
+ const tagSize = vue.computed(() => ["small"].includes(realSize.value) ? "small" : "default");
98
+ const multiple = vue.computed(() => !!props.props.multiple);
99
+ const readonly = vue.computed(() => !props.filterable || multiple.value);
100
+ const searchKeyword = vue.computed(() => multiple.value ? searchInputValue.value : inputValue.value);
101
+ const checkedNodes = vue.computed(() => {
102
+ var _a;
103
+ return ((_a = cascaderPanelRef.value) == null ? void 0 : _a.checkedNodes) || [];
104
+ });
105
+ const clearBtnVisible = vue.computed(() => {
106
+ if (!props.clearable || isDisabled.value || filtering.value || !inputHover.value)
107
+ return false;
108
+ return !!checkedNodes.value.length;
109
+ });
110
+ const presentText = vue.computed(() => {
111
+ const { showAllLevels, separator } = props;
112
+ const nodes = checkedNodes.value;
113
+ return nodes.length ? multiple.value ? "" : nodes[0].calcText(showAllLevels, separator) : "";
114
+ });
115
+ const validateState = vue.computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
116
+ const checkedValue = vue.computed({
117
+ get() {
118
+ return lodashUnified.cloneDeep(props.modelValue);
119
+ },
120
+ set(val) {
121
+ const value = val != null ? val : valueOnClear.value;
122
+ emit(event.UPDATE_MODEL_EVENT, value);
123
+ emit(event.CHANGE_EVENT, value);
124
+ if (props.validateEvent) {
125
+ formItem == null ? void 0 : formItem.validate("change").catch((err) => error.debugWarn(err));
126
+ }
127
+ }
128
+ });
129
+ const cascaderKls = vue.computed(() => {
130
+ return [
131
+ nsCascader.b(),
132
+ nsCascader.m(realSize.value),
133
+ nsCascader.is("disabled", isDisabled.value),
134
+ attrs.class
135
+ ];
136
+ });
137
+ const cascaderIconKls = vue.computed(() => {
138
+ return [
139
+ nsInput.e("icon"),
140
+ "icon-arrow-down",
141
+ nsCascader.is("reverse", popperVisible.value)
142
+ ];
143
+ });
144
+ const inputClass = vue.computed(() => {
145
+ return nsCascader.is("focus", popperVisible.value || filterFocus.value);
146
+ });
147
+ const contentRef = vue.computed(() => {
148
+ var _a, _b;
149
+ return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
150
+ });
151
+ const togglePopperVisible = (visible) => {
152
+ var _a, _b, _c;
153
+ if (isDisabled.value)
154
+ return;
155
+ visible = visible != null ? visible : !popperVisible.value;
156
+ if (visible !== popperVisible.value) {
157
+ popperVisible.value = visible;
158
+ (_b = (_a = input.value) == null ? void 0 : _a.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
159
+ if (visible) {
160
+ updatePopperPosition();
161
+ vue.nextTick((_c = cascaderPanelRef.value) == null ? void 0 : _c.scrollToExpandingNode);
162
+ } else if (props.filterable) {
163
+ syncPresentTextValue();
164
+ }
165
+ emit("visibleChange", visible);
166
+ }
167
+ };
168
+ const updatePopperPosition = () => {
169
+ vue.nextTick(() => {
170
+ var _a;
171
+ (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper();
172
+ });
173
+ };
174
+ const hideSuggestionPanel = () => {
175
+ filtering.value = false;
176
+ };
177
+ const genTag = (node) => {
178
+ const { showAllLevels, separator } = props;
179
+ return {
180
+ node,
181
+ key: node.uid,
182
+ text: node.calcText(showAllLevels, separator),
183
+ hitState: false,
184
+ closable: !isDisabled.value && !node.isDisabled,
185
+ isCollapseTag: false
186
+ };
187
+ };
188
+ const deleteTag = (tag) => {
189
+ var _a;
190
+ const node = tag.node;
191
+ node.doCheck(false);
192
+ (_a = cascaderPanelRef.value) == null ? void 0 : _a.calculateCheckedValue();
193
+ emit("removeTag", node.valueByOption);
194
+ };
195
+ const calculatePresentTags = () => {
196
+ if (!multiple.value)
197
+ return;
198
+ const nodes = checkedNodes.value;
199
+ const tags = [];
200
+ const allTags = [];
201
+ nodes.forEach((node) => allTags.push(genTag(node)));
202
+ allPresentTags.value = allTags;
203
+ if (nodes.length) {
204
+ nodes.slice(0, props.maxCollapseTags).forEach((node) => tags.push(genTag(node)));
205
+ const rest = nodes.slice(props.maxCollapseTags);
206
+ const restCount = rest.length;
207
+ if (restCount) {
208
+ if (props.collapseTags) {
209
+ tags.push({
210
+ key: -1,
211
+ text: `+ ${restCount}`,
212
+ closable: false,
213
+ isCollapseTag: true
214
+ });
215
+ } else {
216
+ rest.forEach((node) => tags.push(genTag(node)));
217
+ }
218
+ }
219
+ }
220
+ presentTags.value = tags;
221
+ };
222
+ const calculateSuggestions = () => {
223
+ var _a, _b;
224
+ const { filterMethod, showAllLevels, separator } = props;
225
+ const res = (_b = (_a = cascaderPanelRef.value) == null ? void 0 : _a.getFlattedNodes(!props.props.checkStrictly)) == null ? void 0 : _b.filter((node) => {
226
+ if (node.isDisabled)
227
+ return false;
228
+ node.calcText(showAllLevels, separator);
229
+ return filterMethod(node, searchKeyword.value);
230
+ });
231
+ if (multiple.value) {
232
+ presentTags.value.forEach((tag) => {
233
+ tag.hitState = false;
234
+ });
235
+ allPresentTags.value.forEach((tag) => {
236
+ tag.hitState = false;
237
+ });
238
+ }
239
+ filtering.value = true;
240
+ suggestions.value = res;
241
+ updatePopperPosition();
242
+ };
243
+ const focusFirstNode = () => {
244
+ var _a;
245
+ let firstNode;
246
+ if (filtering.value && suggestionPanel.value) {
247
+ firstNode = suggestionPanel.value.$el.querySelector(`.${nsCascader.e("suggestion-item")}`);
248
+ } else {
249
+ firstNode = (_a = cascaderPanelRef.value) == null ? void 0 : _a.$el.querySelector(`.${nsCascader.b("node")}[tabindex="-1"]`);
250
+ }
251
+ if (firstNode) {
252
+ firstNode.focus();
253
+ !filtering.value && firstNode.click();
254
+ }
255
+ };
256
+ const updateStyle = () => {
257
+ var _a, _b;
258
+ const inputInner = (_a = input.value) == null ? void 0 : _a.input;
259
+ const tagWrapperEl = tagWrapper.value;
260
+ const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
261
+ if (!core.isClient || !inputInner)
262
+ return;
263
+ if (suggestionPanelEl) {
264
+ const suggestionList = suggestionPanelEl.querySelector(`.${nsCascader.e("suggestion-list")}`);
265
+ suggestionList.style.minWidth = `${inputInner.offsetWidth}px`;
266
+ }
267
+ if (tagWrapperEl) {
268
+ const { offsetHeight } = tagWrapperEl;
269
+ const height = presentTags.value.length > 0 ? `${Math.max(offsetHeight + 6, inputInitialHeight)}px` : `${inputInitialHeight}px`;
270
+ inputInner.style.height = height;
271
+ updatePopperPosition();
272
+ }
273
+ };
274
+ const getCheckedNodes = (leafOnly) => {
275
+ var _a;
276
+ return (_a = cascaderPanelRef.value) == null ? void 0 : _a.getCheckedNodes(leafOnly);
277
+ };
278
+ const handleExpandChange = (value) => {
279
+ updatePopperPosition();
280
+ emit("expandChange", value);
281
+ };
282
+ const handleKeyDown = (e) => {
283
+ if (isComposing.value)
284
+ return;
285
+ switch (e.code) {
286
+ case aria.EVENT_CODE.enter:
287
+ case aria.EVENT_CODE.numpadEnter:
288
+ togglePopperVisible();
289
+ break;
290
+ case aria.EVENT_CODE.down:
291
+ togglePopperVisible(true);
292
+ vue.nextTick(focusFirstNode);
293
+ e.preventDefault();
294
+ break;
295
+ case aria.EVENT_CODE.esc:
296
+ if (popperVisible.value === true) {
297
+ e.preventDefault();
298
+ e.stopPropagation();
299
+ togglePopperVisible(false);
300
+ }
301
+ break;
302
+ case aria.EVENT_CODE.tab:
303
+ togglePopperVisible(false);
304
+ break;
305
+ }
306
+ };
307
+ const handleClear = () => {
308
+ var _a;
309
+ (_a = cascaderPanelRef.value) == null ? void 0 : _a.clearCheckedNodes();
310
+ if (!popperVisible.value && props.filterable) {
311
+ syncPresentTextValue();
312
+ }
313
+ togglePopperVisible(false);
314
+ emit("clear");
315
+ };
316
+ const syncPresentTextValue = () => {
317
+ const { value } = presentText;
318
+ inputValue.value = value;
319
+ searchInputValue.value = value;
320
+ };
321
+ const handleSuggestionClick = (node) => {
322
+ var _a, _b;
323
+ const { checked } = node;
324
+ if (multiple.value) {
325
+ (_a = cascaderPanelRef.value) == null ? void 0 : _a.handleCheckChange(node, !checked, false);
326
+ } else {
327
+ !checked && ((_b = cascaderPanelRef.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
328
+ togglePopperVisible(false);
329
+ }
330
+ };
331
+ const handleSuggestionKeyDown = (e) => {
332
+ const target = e.target;
333
+ const { code } = e;
334
+ switch (code) {
335
+ case aria.EVENT_CODE.up:
336
+ case aria.EVENT_CODE.down: {
337
+ const distance = code === aria.EVENT_CODE.up ? -1 : 1;
338
+ aria$1.focusNode(aria$1.getSibling(target, distance, `.${nsCascader.e("suggestion-item")}[tabindex="-1"]`));
339
+ break;
340
+ }
341
+ case aria.EVENT_CODE.enter:
342
+ case aria.EVENT_CODE.numpadEnter:
343
+ target.click();
344
+ break;
345
+ }
346
+ };
347
+ const handleDelete = () => {
348
+ const tags = presentTags.value;
349
+ const lastTag = tags[tags.length - 1];
350
+ pressDeleteCount = searchInputValue.value ? 0 : pressDeleteCount + 1;
351
+ if (!lastTag || !pressDeleteCount || props.collapseTags && tags.length > 1)
352
+ return;
353
+ if (lastTag.hitState) {
354
+ deleteTag(lastTag);
355
+ } else {
356
+ lastTag.hitState = true;
357
+ }
358
+ };
359
+ const handleFocus = (e) => {
360
+ const el = e.target;
361
+ const name = nsCascader.e("search-input");
362
+ if (el.className === name) {
363
+ filterFocus.value = true;
364
+ }
365
+ emit("focus", e);
366
+ };
367
+ const handleBlur = (e) => {
368
+ filterFocus.value = false;
369
+ emit("blur", e);
370
+ };
371
+ const handleFilter = lodashUnified.debounce(() => {
372
+ const { value } = searchKeyword;
373
+ if (!value)
374
+ return;
375
+ const passed = props.beforeFilter(value);
376
+ if (shared.isPromise(passed)) {
377
+ passed.then(calculateSuggestions).catch(() => {
378
+ });
379
+ } else if (passed !== false) {
380
+ calculateSuggestions();
381
+ } else {
382
+ hideSuggestionPanel();
383
+ }
384
+ }, props.debounce);
385
+ const handleInput = (val, e) => {
386
+ !popperVisible.value && togglePopperVisible(true);
387
+ if (e == null ? void 0 : e.isComposing)
388
+ return;
389
+ val ? handleFilter() : hideSuggestionPanel();
390
+ };
391
+ const getInputInnerHeight = (inputInner) => Number.parseFloat(core.useCssVar(nsInput.cssVarName("input-height"), inputInner).value) - 2;
392
+ vue.watch(filtering, updatePopperPosition);
393
+ vue.watch([checkedNodes, isDisabled, () => props.collapseTags], calculatePresentTags);
394
+ vue.watch(presentTags, () => {
395
+ vue.nextTick(() => updateStyle());
396
+ });
397
+ vue.watch(realSize, async () => {
398
+ await vue.nextTick();
399
+ const inputInner = input.value.input;
400
+ inputInitialHeight = getInputInnerHeight(inputInner) || inputInitialHeight;
401
+ updateStyle();
402
+ });
403
+ vue.watch(presentText, syncPresentTextValue, { immediate: true });
404
+ vue.onMounted(() => {
405
+ const inputInner = input.value.input;
406
+ const inputInnerHeight = getInputInnerHeight(inputInner);
407
+ inputInitialHeight = inputInner.offsetHeight || inputInnerHeight;
408
+ core.useResizeObserver(inputInner, updateStyle);
409
+ });
410
+ expose({
411
+ getCheckedNodes,
412
+ cascaderPanelRef,
413
+ togglePopperVisible,
414
+ contentRef,
415
+ presentText
416
+ });
417
+ return (_ctx, _cache) => {
418
+ return vue.openBlock(), vue.createBlock(vue.unref(index$4.ElTooltip), {
419
+ ref_key: "tooltipRef",
420
+ ref: tooltipRef,
421
+ visible: popperVisible.value,
422
+ teleported: _ctx.teleported,
423
+ "popper-class": [vue.unref(nsCascader).e("dropdown"), _ctx.popperClass],
424
+ "popper-options": popperOptions,
425
+ "fallback-placements": _ctx.fallbackPlacements,
426
+ "stop-popper-mouse-event": false,
427
+ "gpu-acceleration": false,
428
+ placement: _ctx.placement,
429
+ transition: `${vue.unref(nsCascader).namespace.value}-zoom-in-top`,
430
+ effect: "light",
431
+ pure: "",
432
+ persistent: _ctx.persistent,
433
+ onHide: hideSuggestionPanel
434
+ }, {
435
+ default: vue.withCtx(() => [
436
+ vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
437
+ class: vue.normalizeClass(vue.unref(cascaderKls)),
438
+ style: vue.normalizeStyle(vue.unref(cascaderStyle)),
439
+ onClick: () => togglePopperVisible(vue.unref(readonly) ? void 0 : true),
440
+ onKeydown: handleKeyDown,
441
+ onMouseenter: ($event) => inputHover.value = true,
442
+ onMouseleave: ($event) => inputHover.value = false
443
+ }, [
444
+ vue.createVNode(vue.unref(index$5.ElInput), {
445
+ ref_key: "input",
446
+ ref: input,
447
+ modelValue: inputValue.value,
448
+ "onUpdate:modelValue": ($event) => inputValue.value = $event,
449
+ placeholder: vue.unref(currentPlaceholder),
450
+ readonly: vue.unref(readonly),
451
+ disabled: vue.unref(isDisabled),
452
+ "validate-event": false,
453
+ size: vue.unref(realSize),
454
+ class: vue.normalizeClass(vue.unref(inputClass)),
455
+ tabindex: vue.unref(multiple) && _ctx.filterable && !vue.unref(isDisabled) ? -1 : void 0,
456
+ onCompositionstart: vue.unref(handleComposition),
457
+ onCompositionupdate: vue.unref(handleComposition),
458
+ onCompositionend: vue.unref(handleComposition),
459
+ onFocus: handleFocus,
460
+ onBlur: handleBlur,
461
+ onInput: handleInput
462
+ }, {
463
+ suffix: vue.withCtx(() => [
464
+ vue.unref(clearBtnVisible) ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.ElIcon), {
465
+ key: "clear",
466
+ class: vue.normalizeClass([vue.unref(nsInput).e("icon"), "icon-circle-close"]),
467
+ onClick: vue.withModifiers(handleClear, ["stop"])
468
+ }, {
469
+ default: vue.withCtx(() => [
470
+ vue.createVNode(vue.unref(iconsVue.CircleClose))
471
+ ]),
472
+ _: 1
473
+ }, 8, ["class", "onClick"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$6.ElIcon), {
474
+ key: "arrow-down",
475
+ class: vue.normalizeClass(vue.unref(cascaderIconKls)),
476
+ onClick: vue.withModifiers(($event) => togglePopperVisible(), ["stop"])
477
+ }, {
478
+ default: vue.withCtx(() => [
479
+ vue.createVNode(vue.unref(iconsVue.ArrowDown))
480
+ ]),
481
+ _: 1
482
+ }, 8, ["class", "onClick"]))
483
+ ]),
484
+ _: 1
485
+ }, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "readonly", "disabled", "size", "class", "tabindex", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
486
+ vue.unref(multiple) ? (vue.openBlock(), vue.createElementBlock("div", {
487
+ key: 0,
488
+ ref_key: "tagWrapper",
489
+ ref: tagWrapper,
490
+ class: vue.normalizeClass([
491
+ vue.unref(nsCascader).e("tags"),
492
+ vue.unref(nsCascader).is("validate", Boolean(vue.unref(validateState)))
493
+ ])
494
+ }, [
495
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(presentTags.value, (tag) => {
496
+ return vue.openBlock(), vue.createBlock(vue.unref(index$7.ElTag), {
497
+ key: tag.key,
498
+ type: _ctx.tagType,
499
+ size: vue.unref(tagSize),
500
+ effect: _ctx.tagEffect,
501
+ hit: tag.hitState,
502
+ closable: tag.closable,
503
+ "disable-transitions": "",
504
+ onClose: ($event) => deleteTag(tag)
505
+ }, {
506
+ default: vue.withCtx(() => [
507
+ tag.isCollapseTag === false ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(tag.text), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElTooltip), {
508
+ key: 1,
509
+ disabled: popperVisible.value || !_ctx.collapseTagsTooltip,
510
+ "fallback-placements": ["bottom", "top", "right", "left"],
511
+ placement: "bottom",
512
+ effect: "light"
513
+ }, {
514
+ default: vue.withCtx(() => [
515
+ vue.createElementVNode("span", null, vue.toDisplayString(tag.text), 1)
516
+ ]),
517
+ content: vue.withCtx(() => [
518
+ vue.createElementVNode("div", {
519
+ class: vue.normalizeClass(vue.unref(nsCascader).e("collapse-tags"))
520
+ }, [
521
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(allPresentTags.value.slice(_ctx.maxCollapseTags), (tag2, idx) => {
522
+ return vue.openBlock(), vue.createElementBlock("div", {
523
+ key: idx,
524
+ class: vue.normalizeClass(vue.unref(nsCascader).e("collapse-tag"))
525
+ }, [
526
+ (vue.openBlock(), vue.createBlock(vue.unref(index$7.ElTag), {
527
+ key: tag2.key,
528
+ class: "in-tooltip",
529
+ type: _ctx.tagType,
530
+ size: vue.unref(tagSize),
531
+ effect: _ctx.tagEffect,
532
+ hit: tag2.hitState,
533
+ closable: tag2.closable,
534
+ "disable-transitions": "",
535
+ onClose: ($event) => deleteTag(tag2)
536
+ }, {
537
+ default: vue.withCtx(() => [
538
+ vue.createElementVNode("span", null, vue.toDisplayString(tag2.text), 1)
539
+ ]),
540
+ _: 2
541
+ }, 1032, ["type", "size", "effect", "hit", "closable", "onClose"]))
542
+ ], 2);
543
+ }), 128))
544
+ ], 2)
545
+ ]),
546
+ _: 2
547
+ }, 1032, ["disabled"]))
548
+ ]),
549
+ _: 2
550
+ }, 1032, ["type", "size", "effect", "hit", "closable", "onClose"]);
551
+ }), 128)),
552
+ _ctx.filterable && !vue.unref(isDisabled) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
553
+ key: 0,
554
+ "onUpdate:modelValue": ($event) => searchInputValue.value = $event,
555
+ type: "text",
556
+ class: vue.normalizeClass(vue.unref(nsCascader).e("search-input")),
557
+ placeholder: vue.unref(presentText) ? "" : vue.unref(inputPlaceholder),
558
+ onInput: (e) => handleInput(searchInputValue.value, e),
559
+ onClick: vue.withModifiers(($event) => togglePopperVisible(true), ["stop"]),
560
+ onKeydown: vue.withKeys(handleDelete, ["delete"]),
561
+ onCompositionstart: vue.unref(handleComposition),
562
+ onCompositionupdate: vue.unref(handleComposition),
563
+ onCompositionend: vue.unref(handleComposition),
564
+ onFocus: handleFocus,
565
+ onBlur: handleBlur
566
+ }, null, 42, ["onUpdate:modelValue", "placeholder", "onInput", "onClick", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend"])), [
567
+ [vue.vModelText, searchInputValue.value]
568
+ ]) : vue.createCommentVNode("v-if", true)
569
+ ], 2)) : vue.createCommentVNode("v-if", true)
570
+ ], 46, ["onClick", "onMouseenter", "onMouseleave"])), [
571
+ [vue.unref(index$8["default"]), () => togglePopperVisible(false), vue.unref(contentRef)]
572
+ ])
573
+ ]),
574
+ content: vue.withCtx(() => [
575
+ vue.withDirectives(vue.createVNode(vue.unref(index$9.ElCascaderPanel), {
576
+ ref_key: "cascaderPanelRef",
577
+ ref: cascaderPanelRef,
578
+ modelValue: vue.unref(checkedValue),
579
+ "onUpdate:modelValue": ($event) => vue.isRef(checkedValue) ? checkedValue.value = $event : null,
580
+ options: _ctx.options,
581
+ props: props.props,
582
+ border: false,
583
+ "render-label": _ctx.$slots.default,
584
+ onExpandChange: handleExpandChange,
585
+ onClose: ($event) => _ctx.$nextTick(() => togglePopperVisible(false))
586
+ }, {
587
+ empty: vue.withCtx(() => [
588
+ vue.renderSlot(_ctx.$slots, "empty")
589
+ ]),
590
+ _: 3
591
+ }, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "render-label", "onClose"]), [
592
+ [vue.vShow, !filtering.value]
593
+ ]),
594
+ _ctx.filterable ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$a.ElScrollbar), {
595
+ key: 0,
596
+ ref_key: "suggestionPanel",
597
+ ref: suggestionPanel,
598
+ tag: "ul",
599
+ class: vue.normalizeClass(vue.unref(nsCascader).e("suggestion-panel")),
600
+ "view-class": vue.unref(nsCascader).e("suggestion-list"),
601
+ onKeydown: handleSuggestionKeyDown
602
+ }, {
603
+ default: vue.withCtx(() => [
604
+ suggestions.value.length ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(suggestions.value, (item) => {
605
+ return vue.openBlock(), vue.createElementBlock("li", {
606
+ key: item.uid,
607
+ class: vue.normalizeClass([
608
+ vue.unref(nsCascader).e("suggestion-item"),
609
+ vue.unref(nsCascader).is("checked", item.checked)
610
+ ]),
611
+ tabindex: -1,
612
+ onClick: ($event) => handleSuggestionClick(item)
613
+ }, [
614
+ vue.createElementVNode("span", null, vue.toDisplayString(item.text), 1),
615
+ item.checked ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.ElIcon), { key: 0 }, {
616
+ default: vue.withCtx(() => [
617
+ vue.createVNode(vue.unref(iconsVue.Check))
618
+ ]),
619
+ _: 1
620
+ })) : vue.createCommentVNode("v-if", true)
621
+ ], 10, ["onClick"]);
622
+ }), 128)) : vue.renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
623
+ vue.createElementVNode("li", {
624
+ class: vue.normalizeClass(vue.unref(nsCascader).e("empty-text"))
625
+ }, vue.toDisplayString(vue.unref(t)("el.cascader.noMatch")), 3)
626
+ ])
627
+ ]),
628
+ _: 3
629
+ }, 8, ["class", "view-class"])), [
630
+ [vue.vShow, filtering.value]
631
+ ]) : vue.createCommentVNode("v-if", true)
632
+ ]),
633
+ _: 3
634
+ }, 8, ["visible", "teleported", "popper-class", "fallback-placements", "placement", "transition", "persistent"]);
635
+ };
636
+ }
637
+ });
638
+ var Cascader = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "cascader.vue"]]);
93
639
 
94
- exports.cascaderEmits = cascaderEmits;
95
- exports.cascaderProps = cascaderProps;
640
+ exports["default"] = Cascader;
96
641
  //# sourceMappingURL=cascader2.js.map