element-plus 1.3.0-beta.7 → 1.3.0-beta.8

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 (558) hide show
  1. package/dist/index.full.js +612 -462
  2. package/dist/index.full.min.js +6 -6
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +6 -6
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +612 -462
  7. package/dist/locale/af.js +6 -8
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.js.map +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar.js +6 -8
  13. package/dist/locale/ar.min.js +1 -1
  14. package/dist/locale/ar.min.js.map +1 -1
  15. package/dist/locale/ar.min.mjs +1 -1
  16. package/dist/locale/ar.mjs +1 -1
  17. package/dist/locale/bg.js +6 -8
  18. package/dist/locale/bg.min.js +1 -1
  19. package/dist/locale/bg.min.js.map +1 -1
  20. package/dist/locale/bg.min.mjs +1 -1
  21. package/dist/locale/bg.mjs +1 -1
  22. package/dist/locale/bn.js +6 -8
  23. package/dist/locale/bn.min.js +1 -1
  24. package/dist/locale/bn.min.js.map +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +6 -8
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.js.map +1 -1
  30. package/dist/locale/ca.min.mjs +1 -1
  31. package/dist/locale/ca.mjs +1 -1
  32. package/dist/locale/cs.js +6 -8
  33. package/dist/locale/cs.min.js +1 -1
  34. package/dist/locale/cs.min.js.map +1 -1
  35. package/dist/locale/cs.min.mjs +1 -1
  36. package/dist/locale/cs.mjs +1 -1
  37. package/dist/locale/da.js +6 -8
  38. package/dist/locale/da.min.js +1 -1
  39. package/dist/locale/da.min.js.map +1 -1
  40. package/dist/locale/da.min.mjs +1 -1
  41. package/dist/locale/da.mjs +1 -1
  42. package/dist/locale/de.js +6 -8
  43. package/dist/locale/de.min.js +1 -1
  44. package/dist/locale/de.min.js.map +1 -1
  45. package/dist/locale/de.min.mjs +1 -1
  46. package/dist/locale/de.mjs +1 -1
  47. package/dist/locale/el.js +6 -8
  48. package/dist/locale/el.min.js +1 -1
  49. package/dist/locale/el.min.js.map +1 -1
  50. package/dist/locale/el.min.mjs +1 -1
  51. package/dist/locale/el.mjs +1 -1
  52. package/dist/locale/en.js +6 -8
  53. package/dist/locale/en.min.js +1 -1
  54. package/dist/locale/en.min.js.map +1 -1
  55. package/dist/locale/en.min.mjs +1 -1
  56. package/dist/locale/en.mjs +1 -1
  57. package/dist/locale/eo.js +6 -8
  58. package/dist/locale/eo.min.js +1 -1
  59. package/dist/locale/eo.min.js.map +1 -1
  60. package/dist/locale/eo.min.mjs +1 -1
  61. package/dist/locale/eo.mjs +1 -1
  62. package/dist/locale/es.js +6 -8
  63. package/dist/locale/es.min.js +1 -1
  64. package/dist/locale/es.min.js.map +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 +6 -8
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.js.map +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +6 -8
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.js.map +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +6 -8
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.js.map +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 +6 -8
  83. package/dist/locale/fi.min.js +1 -1
  84. package/dist/locale/fi.min.js.map +1 -1
  85. package/dist/locale/fi.min.mjs +1 -1
  86. package/dist/locale/fi.mjs +1 -1
  87. package/dist/locale/fr.js +6 -8
  88. package/dist/locale/fr.min.js +1 -1
  89. package/dist/locale/fr.min.js.map +1 -1
  90. package/dist/locale/fr.min.mjs +1 -1
  91. package/dist/locale/fr.mjs +1 -1
  92. package/dist/locale/he.js +6 -8
  93. package/dist/locale/he.min.js +1 -1
  94. package/dist/locale/he.min.js.map +1 -1
  95. package/dist/locale/he.min.mjs +1 -1
  96. package/dist/locale/he.mjs +1 -1
  97. package/dist/locale/hr.js +6 -8
  98. package/dist/locale/hr.min.js +1 -1
  99. package/dist/locale/hr.min.js.map +1 -1
  100. package/dist/locale/hr.min.mjs +1 -1
  101. package/dist/locale/hr.mjs +1 -1
  102. package/dist/locale/hu.js +6 -8
  103. package/dist/locale/hu.min.js +1 -1
  104. package/dist/locale/hu.min.js.map +1 -1
  105. package/dist/locale/hu.min.mjs +1 -1
  106. package/dist/locale/hu.mjs +1 -1
  107. package/dist/locale/hy-am.js +6 -8
  108. package/dist/locale/hy-am.min.js +1 -1
  109. package/dist/locale/hy-am.min.js.map +1 -1
  110. package/dist/locale/hy-am.min.mjs +1 -1
  111. package/dist/locale/hy-am.mjs +1 -1
  112. package/dist/locale/id.js +6 -8
  113. package/dist/locale/id.min.js +1 -1
  114. package/dist/locale/id.min.js.map +1 -1
  115. package/dist/locale/id.min.mjs +1 -1
  116. package/dist/locale/id.mjs +1 -1
  117. package/dist/locale/it.js +6 -8
  118. package/dist/locale/it.min.js +1 -1
  119. package/dist/locale/it.min.js.map +1 -1
  120. package/dist/locale/it.min.mjs +1 -1
  121. package/dist/locale/it.mjs +1 -1
  122. package/dist/locale/ja.js +6 -8
  123. package/dist/locale/ja.min.js +1 -1
  124. package/dist/locale/ja.min.js.map +1 -1
  125. package/dist/locale/ja.min.mjs +1 -1
  126. package/dist/locale/ja.mjs +1 -1
  127. package/dist/locale/kk.js +6 -8
  128. package/dist/locale/kk.min.js +1 -1
  129. package/dist/locale/kk.min.js.map +1 -1
  130. package/dist/locale/kk.min.mjs +1 -1
  131. package/dist/locale/kk.mjs +1 -1
  132. package/dist/locale/km.js +6 -8
  133. package/dist/locale/km.min.js +1 -1
  134. package/dist/locale/km.min.js.map +1 -1
  135. package/dist/locale/km.min.mjs +1 -1
  136. package/dist/locale/km.mjs +1 -1
  137. package/dist/locale/ko.js +6 -8
  138. package/dist/locale/ko.min.js +1 -1
  139. package/dist/locale/ko.min.js.map +1 -1
  140. package/dist/locale/ko.min.mjs +1 -1
  141. package/dist/locale/ko.mjs +1 -1
  142. package/dist/locale/ku.js +6 -8
  143. package/dist/locale/ku.min.js +1 -1
  144. package/dist/locale/ku.min.js.map +1 -1
  145. package/dist/locale/ku.min.mjs +1 -1
  146. package/dist/locale/ku.mjs +1 -1
  147. package/dist/locale/ky.js +6 -8
  148. package/dist/locale/ky.min.js +1 -1
  149. package/dist/locale/ky.min.js.map +1 -1
  150. package/dist/locale/ky.min.mjs +1 -1
  151. package/dist/locale/ky.mjs +1 -1
  152. package/dist/locale/lt.js +6 -8
  153. package/dist/locale/lt.min.js +1 -1
  154. package/dist/locale/lt.min.js.map +1 -1
  155. package/dist/locale/lt.min.mjs +1 -1
  156. package/dist/locale/lt.mjs +1 -1
  157. package/dist/locale/lv.js +6 -8
  158. package/dist/locale/lv.min.js +1 -1
  159. package/dist/locale/lv.min.js.map +1 -1
  160. package/dist/locale/lv.min.mjs +1 -1
  161. package/dist/locale/lv.mjs +1 -1
  162. package/dist/locale/mn.js +6 -8
  163. package/dist/locale/mn.min.js +1 -1
  164. package/dist/locale/mn.min.js.map +1 -1
  165. package/dist/locale/mn.min.mjs +1 -1
  166. package/dist/locale/mn.mjs +1 -1
  167. package/dist/locale/nb-no.js +6 -8
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.js.map +1 -1
  170. package/dist/locale/nb-no.min.mjs +1 -1
  171. package/dist/locale/nb-no.mjs +1 -1
  172. package/dist/locale/nl.js +6 -8
  173. package/dist/locale/nl.min.js +1 -1
  174. package/dist/locale/nl.min.js.map +1 -1
  175. package/dist/locale/nl.min.mjs +1 -1
  176. package/dist/locale/nl.mjs +1 -1
  177. package/dist/locale/pa.js +6 -8
  178. package/dist/locale/pa.min.js +1 -1
  179. package/dist/locale/pa.min.js.map +1 -1
  180. package/dist/locale/pa.min.mjs +1 -1
  181. package/dist/locale/pa.mjs +1 -1
  182. package/dist/locale/pl.js +6 -8
  183. package/dist/locale/pl.min.js +1 -1
  184. package/dist/locale/pl.min.js.map +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +6 -8
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.js.map +1 -1
  190. package/dist/locale/pt-br.min.mjs +1 -1
  191. package/dist/locale/pt-br.mjs +1 -1
  192. package/dist/locale/pt.js +6 -8
  193. package/dist/locale/pt.min.js +1 -1
  194. package/dist/locale/pt.min.js.map +1 -1
  195. package/dist/locale/pt.min.mjs +1 -1
  196. package/dist/locale/pt.mjs +1 -1
  197. package/dist/locale/ro.js +6 -8
  198. package/dist/locale/ro.min.js +1 -1
  199. package/dist/locale/ro.min.js.map +1 -1
  200. package/dist/locale/ro.min.mjs +1 -1
  201. package/dist/locale/ro.mjs +1 -1
  202. package/dist/locale/ru.js +6 -8
  203. package/dist/locale/ru.min.js +1 -1
  204. package/dist/locale/ru.min.js.map +1 -1
  205. package/dist/locale/ru.min.mjs +1 -1
  206. package/dist/locale/ru.mjs +1 -1
  207. package/dist/locale/sk.js +6 -8
  208. package/dist/locale/sk.min.js +1 -1
  209. package/dist/locale/sk.min.js.map +1 -1
  210. package/dist/locale/sk.min.mjs +1 -1
  211. package/dist/locale/sk.mjs +1 -1
  212. package/dist/locale/sl.js +6 -8
  213. package/dist/locale/sl.min.js +1 -1
  214. package/dist/locale/sl.min.js.map +1 -1
  215. package/dist/locale/sl.min.mjs +1 -1
  216. package/dist/locale/sl.mjs +1 -1
  217. package/dist/locale/sr.js +6 -8
  218. package/dist/locale/sr.min.js +1 -1
  219. package/dist/locale/sr.min.js.map +1 -1
  220. package/dist/locale/sr.min.mjs +1 -1
  221. package/dist/locale/sr.mjs +1 -1
  222. package/dist/locale/sv.js +6 -8
  223. package/dist/locale/sv.min.js +1 -1
  224. package/dist/locale/sv.min.js.map +1 -1
  225. package/dist/locale/sv.min.mjs +1 -1
  226. package/dist/locale/sv.mjs +1 -1
  227. package/dist/locale/ta.js +6 -8
  228. package/dist/locale/ta.min.js +1 -1
  229. package/dist/locale/ta.min.js.map +1 -1
  230. package/dist/locale/ta.min.mjs +1 -1
  231. package/dist/locale/ta.mjs +1 -1
  232. package/dist/locale/th.js +6 -8
  233. package/dist/locale/th.min.js +1 -1
  234. package/dist/locale/th.min.js.map +1 -1
  235. package/dist/locale/th.min.mjs +1 -1
  236. package/dist/locale/th.mjs +1 -1
  237. package/dist/locale/tk.js +6 -8
  238. package/dist/locale/tk.min.js +1 -1
  239. package/dist/locale/tk.min.js.map +1 -1
  240. package/dist/locale/tk.min.mjs +1 -1
  241. package/dist/locale/tk.mjs +1 -1
  242. package/dist/locale/tr.js +6 -8
  243. package/dist/locale/tr.min.js +1 -1
  244. package/dist/locale/tr.min.js.map +1 -1
  245. package/dist/locale/tr.min.mjs +1 -1
  246. package/dist/locale/tr.mjs +1 -1
  247. package/dist/locale/ug-cn.js +6 -8
  248. package/dist/locale/ug-cn.min.js +1 -1
  249. package/dist/locale/ug-cn.min.js.map +1 -1
  250. package/dist/locale/ug-cn.min.mjs +1 -1
  251. package/dist/locale/ug-cn.mjs +1 -1
  252. package/dist/locale/uk.js +6 -8
  253. package/dist/locale/uk.min.js +1 -1
  254. package/dist/locale/uk.min.js.map +1 -1
  255. package/dist/locale/uk.min.mjs +1 -1
  256. package/dist/locale/uk.mjs +1 -1
  257. package/dist/locale/uz-uz.js +6 -8
  258. package/dist/locale/uz-uz.min.js +1 -1
  259. package/dist/locale/uz-uz.min.js.map +1 -1
  260. package/dist/locale/uz-uz.min.mjs +1 -1
  261. package/dist/locale/uz-uz.mjs +1 -1
  262. package/dist/locale/vi.js +6 -8
  263. package/dist/locale/vi.min.js +1 -1
  264. package/dist/locale/vi.min.js.map +1 -1
  265. package/dist/locale/vi.min.mjs +1 -1
  266. package/dist/locale/vi.mjs +1 -1
  267. package/dist/locale/zh-cn.js +6 -8
  268. package/dist/locale/zh-cn.min.js +1 -1
  269. package/dist/locale/zh-cn.min.js.map +1 -1
  270. package/dist/locale/zh-cn.min.mjs +1 -1
  271. package/dist/locale/zh-cn.mjs +1 -1
  272. package/dist/locale/zh-tw.js +6 -8
  273. package/dist/locale/zh-tw.min.js +1 -1
  274. package/dist/locale/zh-tw.min.js.map +1 -1
  275. package/dist/locale/zh-tw.min.mjs +1 -1
  276. package/dist/locale/zh-tw.mjs +1 -1
  277. package/es/components/affix/src/affix2.mjs +2 -1
  278. package/es/components/affix/src/affix2.mjs.map +1 -1
  279. package/es/components/autocomplete/index.d.ts +22 -0
  280. package/es/components/autocomplete/src/index.mjs +17 -16
  281. package/es/components/autocomplete/src/index.mjs.map +1 -1
  282. package/es/components/autocomplete/src/index.vue.d.ts +11 -0
  283. package/es/components/backtop/index.d.ts +11 -0
  284. package/es/components/backtop/src/backtop.vue.d.ts +11 -0
  285. package/es/components/backtop/src/backtop2.mjs +18 -9
  286. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  287. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +2 -2
  288. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  289. package/es/components/button/src/button2.mjs +11 -7
  290. package/es/components/button/src/button2.mjs.map +1 -1
  291. package/es/components/carousel/src/item.mjs +4 -2
  292. package/es/components/carousel/src/item.mjs.map +1 -1
  293. package/es/components/cascader/src/index.mjs +38 -21
  294. package/es/components/cascader/src/index.mjs.map +1 -1
  295. package/es/components/cascader-panel/src/index.mjs +16 -13
  296. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  297. package/es/components/cascader-panel/src/menu.mjs +25 -22
  298. package/es/components/cascader-panel/src/menu.mjs.map +1 -1
  299. package/es/components/cascader-panel/src/node2.mjs +6 -2
  300. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  301. package/es/components/checkbox/index.d.ts +33 -0
  302. package/es/components/checkbox/src/checkbox-button.mjs +21 -15
  303. package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
  304. package/es/components/checkbox/src/checkbox-button.vue.d.ts +11 -0
  305. package/es/components/checkbox/src/checkbox-group.mjs +5 -2
  306. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  307. package/es/components/checkbox/src/checkbox.mjs +36 -28
  308. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  309. package/es/components/checkbox/src/checkbox.vue.d.ts +11 -0
  310. package/es/components/collapse/src/collapse-item.mjs +3 -3
  311. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  312. package/es/components/color-picker/src/index.mjs +8 -5
  313. package/es/components/color-picker/src/index.mjs.map +1 -1
  314. package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +2 -1
  315. package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs.map +1 -1
  316. package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs +2 -1
  317. package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs.map +1 -1
  318. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +1 -1
  319. package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
  320. package/es/components/descriptions/src/index.mjs +7 -2
  321. package/es/components/descriptions/src/index.mjs.map +1 -1
  322. package/es/components/dialog/src/dialog.mjs +1 -3
  323. package/es/components/dialog/src/dialog.mjs.map +1 -1
  324. package/es/components/dropdown/src/dropdown-item.mjs +12 -6
  325. package/es/components/dropdown/src/dropdown-item.mjs.map +1 -1
  326. package/es/components/dropdown/src/dropdown-menu.mjs +2 -1
  327. package/es/components/dropdown/src/dropdown-menu.mjs.map +1 -1
  328. package/es/components/dropdown/src/dropdown2.mjs +9 -5
  329. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  330. package/es/components/focus-trap/src/focus-trap.mjs +1 -1
  331. package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
  332. package/es/components/form/src/form-item.mjs +6 -4
  333. package/es/components/form/src/form-item.mjs.map +1 -1
  334. package/es/components/image/src/image2.mjs +3 -2
  335. package/es/components/image/src/image2.mjs.map +1 -1
  336. package/es/components/image-viewer/src/image-viewer2.mjs +3 -2
  337. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  338. package/es/components/input/src/input2.mjs +17 -8
  339. package/es/components/input/src/input2.mjs.map +1 -1
  340. package/es/components/input-number/src/input-number2.mjs +12 -6
  341. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  342. package/es/components/message/src/message2.mjs +1 -1
  343. package/es/components/message-box/src/index.mjs +4 -2
  344. package/es/components/message-box/src/index.mjs.map +1 -1
  345. package/es/components/notification/src/notification2.mjs +1 -1
  346. package/es/components/pagination/src/components/jumper.mjs +5 -2
  347. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  348. package/es/components/pagination/src/components/sizes.mjs +2 -1
  349. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  350. package/es/components/popconfirm/src/popconfirm2.mjs +6 -3
  351. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  352. package/es/components/popover/src/index.mjs +4 -2
  353. package/es/components/popover/src/index.mjs.map +1 -1
  354. package/es/components/popper/src/content.mjs +5 -3
  355. package/es/components/popper/src/content.mjs.map +1 -1
  356. package/es/components/popper/src/trigger.mjs +1 -1
  357. package/es/components/popper/src/trigger.mjs.map +1 -1
  358. package/es/components/progress/src/progress2.mjs +2 -1
  359. package/es/components/progress/src/progress2.mjs.map +1 -1
  360. package/es/components/radio/src/radio-button2.mjs +4 -4
  361. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  362. package/es/components/radio/src/radio-group2.mjs +1 -1
  363. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  364. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +10 -6
  365. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -1
  366. package/es/components/scrollbar/src/bar2.mjs +2 -1
  367. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  368. package/es/components/scrollbar/src/scrollbar2.mjs +2 -2
  369. package/es/components/select/src/option-group.mjs +2 -1
  370. package/es/components/select/src/option-group.mjs.map +1 -1
  371. package/es/components/select/src/select-dropdown.mjs +2 -1
  372. package/es/components/select/src/select-dropdown.mjs.map +1 -1
  373. package/es/components/select/src/select.mjs +2 -1
  374. package/es/components/select/src/select.mjs.map +1 -1
  375. package/es/components/select-v2/src/select-dropdown.mjs +2 -1
  376. package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
  377. package/es/components/select-v2/src/select.mjs +192 -186
  378. package/es/components/select-v2/src/select.mjs.map +1 -1
  379. package/es/components/slider/src/index.mjs +3 -2
  380. package/es/components/slider/src/index.mjs.map +1 -1
  381. package/es/components/slider/src/marker.mjs +2 -1
  382. package/es/components/slider/src/marker.mjs.map +1 -1
  383. package/es/components/steps/src/item.mjs +2 -1
  384. package/es/components/steps/src/item.mjs.map +1 -1
  385. package/es/components/switch/src/switch2.mjs +4 -2
  386. package/es/components/switch/src/switch2.mjs.map +1 -1
  387. package/es/components/table/src/filter-panel.mjs +7 -3
  388. package/es/components/table/src/filter-panel.mjs.map +1 -1
  389. package/es/components/tabs/src/tab-bar2.mjs +3 -2
  390. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  391. package/es/components/time-picker/src/common/picker.mjs +16 -8
  392. package/es/components/time-picker/src/common/picker.mjs.map +1 -1
  393. package/es/components/time-select/src/time-select.mjs +4 -2
  394. package/es/components/time-select/src/time-select.mjs.map +1 -1
  395. package/es/components/tooltip/src/content.mjs +9 -4
  396. package/es/components/tooltip/src/content.mjs.map +1 -1
  397. package/es/components/tooltip/src/tooltip2.mjs +2 -1
  398. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  399. package/es/components/transfer/src/index.mjs +2 -1
  400. package/es/components/transfer/src/index.mjs.map +1 -1
  401. package/es/components/tree/src/tree.mjs +2 -1
  402. package/es/components/tree/src/tree.mjs.map +1 -1
  403. package/es/components/tree-v2/src/tree-node.mjs +11 -7
  404. package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
  405. package/es/components/tree-v2/src/tree.mjs +2 -1
  406. package/es/components/tree-v2/src/tree.mjs.map +1 -1
  407. package/es/components/upload/src/index.mjs +3 -2
  408. package/es/components/upload/src/index.mjs.map +1 -1
  409. package/es/components/upload/src/upload-dragger.mjs +2 -1
  410. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  411. package/es/utils/validators.d.ts +0 -1
  412. package/es/utils/validators.mjs +1 -9
  413. package/es/utils/validators.mjs.map +1 -1
  414. package/es/version.d.ts +1 -1
  415. package/es/version.mjs +1 -1
  416. package/es/version.mjs.map +1 -1
  417. package/lib/components/affix/src/affix2.js +2 -1
  418. package/lib/components/affix/src/affix2.js.map +1 -1
  419. package/lib/components/autocomplete/index.d.ts +22 -0
  420. package/lib/components/autocomplete/src/index.js +19 -18
  421. package/lib/components/autocomplete/src/index.js.map +1 -1
  422. package/lib/components/autocomplete/src/index.vue.d.ts +11 -0
  423. package/lib/components/backtop/index.d.ts +11 -0
  424. package/lib/components/backtop/src/backtop.vue.d.ts +11 -0
  425. package/lib/components/backtop/src/backtop2.js +17 -8
  426. package/lib/components/backtop/src/backtop2.js.map +1 -1
  427. package/lib/components/breadcrumb/src/breadcrumb-item2.js +2 -2
  428. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  429. package/lib/components/button/src/button2.js +11 -7
  430. package/lib/components/button/src/button2.js.map +1 -1
  431. package/lib/components/carousel/src/item.js +4 -2
  432. package/lib/components/carousel/src/item.js.map +1 -1
  433. package/lib/components/cascader/src/index.js +38 -21
  434. package/lib/components/cascader/src/index.js.map +1 -1
  435. package/lib/components/cascader-panel/src/index.js +16 -13
  436. package/lib/components/cascader-panel/src/index.js.map +1 -1
  437. package/lib/components/cascader-panel/src/menu.js +25 -22
  438. package/lib/components/cascader-panel/src/menu.js.map +1 -1
  439. package/lib/components/cascader-panel/src/node2.js +6 -2
  440. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  441. package/lib/components/checkbox/index.d.ts +33 -0
  442. package/lib/components/checkbox/src/checkbox-button.js +21 -15
  443. package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
  444. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +11 -0
  445. package/lib/components/checkbox/src/checkbox-group.js +5 -2
  446. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  447. package/lib/components/checkbox/src/checkbox.js +35 -27
  448. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  449. package/lib/components/checkbox/src/checkbox.vue.d.ts +11 -0
  450. package/lib/components/collapse/src/collapse-item.js +3 -3
  451. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  452. package/lib/components/color-picker/src/index.js +8 -5
  453. package/lib/components/color-picker/src/index.js.map +1 -1
  454. package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +2 -1
  455. package/lib/components/date-picker/src/date-picker-com/basic-date-table.js.map +1 -1
  456. package/lib/components/date-picker/src/date-picker-com/basic-month-table.js +2 -1
  457. package/lib/components/date-picker/src/date-picker-com/basic-month-table.js.map +1 -1
  458. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +1 -1
  459. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
  460. package/lib/components/descriptions/src/index.js +7 -2
  461. package/lib/components/descriptions/src/index.js.map +1 -1
  462. package/lib/components/dialog/src/dialog.js +1 -3
  463. package/lib/components/dialog/src/dialog.js.map +1 -1
  464. package/lib/components/dropdown/src/dropdown-item.js +12 -6
  465. package/lib/components/dropdown/src/dropdown-item.js.map +1 -1
  466. package/lib/components/dropdown/src/dropdown-menu.js +2 -1
  467. package/lib/components/dropdown/src/dropdown-menu.js.map +1 -1
  468. package/lib/components/dropdown/src/dropdown2.js +9 -5
  469. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  470. package/lib/components/focus-trap/src/focus-trap.js +1 -1
  471. package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
  472. package/lib/components/form/src/form-item.js +6 -4
  473. package/lib/components/form/src/form-item.js.map +1 -1
  474. package/lib/components/image/src/image2.js +3 -2
  475. package/lib/components/image/src/image2.js.map +1 -1
  476. package/lib/components/image-viewer/src/image-viewer2.js +3 -2
  477. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  478. package/lib/components/input/src/input2.js +17 -8
  479. package/lib/components/input/src/input2.js.map +1 -1
  480. package/lib/components/input-number/src/input-number2.js +12 -6
  481. package/lib/components/input-number/src/input-number2.js.map +1 -1
  482. package/lib/components/message/src/message2.js +1 -1
  483. package/lib/components/message-box/src/index.js +4 -2
  484. package/lib/components/message-box/src/index.js.map +1 -1
  485. package/lib/components/notification/src/notification2.js +1 -1
  486. package/lib/components/pagination/src/components/jumper.js +5 -2
  487. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  488. package/lib/components/pagination/src/components/sizes.js +2 -1
  489. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  490. package/lib/components/popconfirm/src/popconfirm2.js +6 -3
  491. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  492. package/lib/components/popover/src/index.js +4 -2
  493. package/lib/components/popover/src/index.js.map +1 -1
  494. package/lib/components/popper/src/content.js +5 -3
  495. package/lib/components/popper/src/content.js.map +1 -1
  496. package/lib/components/popper/src/trigger.js +1 -1
  497. package/lib/components/popper/src/trigger.js.map +1 -1
  498. package/lib/components/progress/src/progress2.js +2 -1
  499. package/lib/components/progress/src/progress2.js.map +1 -1
  500. package/lib/components/radio/src/radio-button2.js +4 -4
  501. package/lib/components/radio/src/radio-button2.js.map +1 -1
  502. package/lib/components/radio/src/radio-group2.js +1 -1
  503. package/lib/components/radio/src/radio-group2.js.map +1 -1
  504. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +10 -6
  505. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -1
  506. package/lib/components/scrollbar/src/bar2.js +2 -1
  507. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  508. package/lib/components/scrollbar/src/scrollbar2.js +2 -2
  509. package/lib/components/select/src/option-group.js +2 -1
  510. package/lib/components/select/src/option-group.js.map +1 -1
  511. package/lib/components/select/src/select-dropdown.js +2 -1
  512. package/lib/components/select/src/select-dropdown.js.map +1 -1
  513. package/lib/components/select/src/select.js +2 -1
  514. package/lib/components/select/src/select.js.map +1 -1
  515. package/lib/components/select-v2/src/select-dropdown.js +2 -1
  516. package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
  517. package/lib/components/select-v2/src/select.js +192 -186
  518. package/lib/components/select-v2/src/select.js.map +1 -1
  519. package/lib/components/slider/src/index.js +3 -2
  520. package/lib/components/slider/src/index.js.map +1 -1
  521. package/lib/components/slider/src/marker.js +2 -1
  522. package/lib/components/slider/src/marker.js.map +1 -1
  523. package/lib/components/steps/src/item.js +2 -1
  524. package/lib/components/steps/src/item.js.map +1 -1
  525. package/lib/components/switch/src/switch2.js +4 -2
  526. package/lib/components/switch/src/switch2.js.map +1 -1
  527. package/lib/components/table/src/filter-panel.js +7 -3
  528. package/lib/components/table/src/filter-panel.js.map +1 -1
  529. package/lib/components/tabs/src/tab-bar2.js +3 -2
  530. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  531. package/lib/components/time-picker/src/common/picker.js +16 -8
  532. package/lib/components/time-picker/src/common/picker.js.map +1 -1
  533. package/lib/components/time-select/src/time-select.js +4 -2
  534. package/lib/components/time-select/src/time-select.js.map +1 -1
  535. package/lib/components/tooltip/src/content.js +9 -4
  536. package/lib/components/tooltip/src/content.js.map +1 -1
  537. package/lib/components/tooltip/src/tooltip2.js +2 -1
  538. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  539. package/lib/components/transfer/src/index.js +2 -1
  540. package/lib/components/transfer/src/index.js.map +1 -1
  541. package/lib/components/tree/src/tree.js +2 -1
  542. package/lib/components/tree/src/tree.js.map +1 -1
  543. package/lib/components/tree-v2/src/tree-node.js +11 -7
  544. package/lib/components/tree-v2/src/tree-node.js.map +1 -1
  545. package/lib/components/tree-v2/src/tree.js +2 -1
  546. package/lib/components/tree-v2/src/tree.js.map +1 -1
  547. package/lib/components/upload/src/index.js +3 -2
  548. package/lib/components/upload/src/index.js.map +1 -1
  549. package/lib/components/upload/src/upload-dragger.js +2 -1
  550. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  551. package/lib/utils/validators.d.ts +0 -1
  552. package/lib/utils/validators.js +0 -9
  553. package/lib/utils/validators.js.map +1 -1
  554. package/lib/version.d.ts +1 -1
  555. package/lib/version.js +1 -1
  556. package/lib/version.js.map +1 -1
  557. package/package.json +2 -2
  558. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v1.3.0-beta.7 */
1
+ /*! Element Plus v1.3.0-beta.8 */
2
2
 
3
3
  import { getCurrentInstance, computed, warn, getCurrentScope, onScopeDispose, readonly, shallowRef, watchSyncEffect, ref, unref, watch, inject, provide, isRef, onMounted, onUnmounted, h as h$1, Teleport, onBeforeUnmount, onBeforeMount, nextTick, defineComponent, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, mergeProps, resolveComponent, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, Fragment, createVNode, vShow, onUpdated, withModifiers, toRef, cloneVNode, Text, Comment, resolveDirective, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRefs, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, watchEffect, isVNode, camelize as camelize$1, markRaw, effectScope, toRaw, triggerRef, TransitionGroup, createApp, render } from 'vue';
4
4
 
@@ -4540,7 +4540,7 @@ if (isClient) {
4540
4540
  });
4541
4541
  }
4542
4542
 
4543
- const version$1 = "1.3.0-beta.7";
4543
+ const version$1 = "1.3.0-beta.8";
4544
4544
 
4545
4545
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
4546
4546
  const makeInstaller = (components = []) => {
@@ -4693,8 +4693,9 @@ const _sfc_main$2L = defineComponent({
4693
4693
  emit("change", state.fixed);
4694
4694
  });
4695
4695
  onMounted(() => {
4696
+ var _a;
4696
4697
  if (props.target) {
4697
- target.value = document.querySelector(props.target) ?? void 0;
4698
+ target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
4698
4699
  if (!target.value) {
4699
4700
  throw new Error(`Target is not existed: ${props.target}`);
4700
4701
  }
@@ -5106,13 +5107,13 @@ const _hoisted_4$n = /* @__PURE__ */ createElementVNode("path", {
5106
5107
  fill: "currentColor",
5107
5108
  d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"
5108
5109
  }, null, -1);
5109
- const _hoisted_5$g = [
5110
+ const _hoisted_5$f = [
5110
5111
  _hoisted_2$1g,
5111
5112
  _hoisted_3$10,
5112
5113
  _hoisted_4$n
5113
5114
  ];
5114
5115
  function _sfc_render$2r(_ctx, _cache, $props, $setup, $data, $options) {
5115
- return openBlock(), createElementBlock("svg", _hoisted_1$1E, _hoisted_5$g);
5116
+ return openBlock(), createElementBlock("svg", _hoisted_1$1E, _hoisted_5$f);
5116
5117
  }
5117
5118
  var clock = /* @__PURE__ */ _export_sfc(_sfc_main$2w, [["render", _sfc_render$2r]]);
5118
5119
 
@@ -6523,8 +6524,11 @@ const _sfc_main$26 = defineComponent({
6523
6524
  const passwordVisible = ref(false);
6524
6525
  const _textareaCalcStyle = shallowRef(props.inputStyle);
6525
6526
  const inputOrTextarea = computed(() => input.value || textarea.value);
6526
- const needStatusIcon = computed(() => form?.statusIcon ?? false);
6527
- const validateState = computed(() => formItem?.validateState || "");
6527
+ const needStatusIcon = computed(() => {
6528
+ var _a;
6529
+ return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
6530
+ });
6531
+ const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
6528
6532
  const validateIcon = computed(() => ValidateComponentsMap[validateState.value]);
6529
6533
  const containerStyle = computed(() => rawAttrs.style);
6530
6534
  const computedTextareaStyle = computed(() => [
@@ -6594,33 +6598,38 @@ const _sfc_main$26 = defineComponent({
6594
6598
  };
6595
6599
  const focus = () => {
6596
6600
  nextTick(() => {
6597
- inputOrTextarea.value?.focus();
6601
+ var _a;
6602
+ (_a = inputOrTextarea.value) == null ? void 0 : _a.focus();
6598
6603
  });
6599
6604
  };
6600
6605
  const blur = () => {
6601
- inputOrTextarea.value?.blur();
6606
+ var _a;
6607
+ (_a = inputOrTextarea.value) == null ? void 0 : _a.blur();
6602
6608
  };
6603
6609
  const handleFocus = (event) => {
6604
6610
  focused.value = true;
6605
6611
  emit("focus", event);
6606
6612
  };
6607
6613
  const handleBlur = (event) => {
6614
+ var _a;
6608
6615
  focused.value = false;
6609
6616
  emit("blur", event);
6610
6617
  if (props.validateEvent) {
6611
- formItem?.validate?.("blur");
6618
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
6612
6619
  }
6613
6620
  };
6614
6621
  const select = () => {
6615
- inputOrTextarea.value?.select();
6622
+ var _a;
6623
+ (_a = inputOrTextarea.value) == null ? void 0 : _a.select();
6616
6624
  };
6617
6625
  const handleCompositionStart = (event) => {
6618
6626
  emit("compositionstart", event);
6619
6627
  isComposing.value = true;
6620
6628
  };
6621
6629
  const handleCompositionUpdate = (event) => {
6630
+ var _a;
6622
6631
  emit("compositionupdate", event);
6623
- const text = event.target?.value;
6632
+ const text = (_a = event.target) == null ? void 0 : _a.value;
6624
6633
  const lastCharacter = text[text.length - 1] || "";
6625
6634
  isComposing.value = !isKorean(lastCharacter);
6626
6635
  };
@@ -6643,9 +6652,10 @@ const _sfc_main$26 = defineComponent({
6643
6652
  };
6644
6653
  const suffixVisible = computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
6645
6654
  watch(() => props.modelValue, () => {
6655
+ var _a;
6646
6656
  nextTick(resizeTextarea);
6647
6657
  if (props.validateEvent) {
6648
- formItem?.validate?.("change");
6658
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
6649
6659
  }
6650
6660
  });
6651
6661
  watch(nativeInputValue, () => setNativeInputValue());
@@ -6956,10 +6966,11 @@ const _sfc_main$25 = defineComponent({
6956
6966
  }));
6957
6967
  const offsetRatio = computed(() => instance.value[bar.value.offset] ** 2 / scrollbar.wrapElement[bar.value.scrollSize] / props.ratio / thumb.value[bar.value.offset]);
6958
6968
  const clickThumbHandler = (e) => {
6969
+ var _a;
6959
6970
  e.stopPropagation();
6960
6971
  if (e.ctrlKey || [1, 2].includes(e.button))
6961
6972
  return;
6962
- window.getSelection()?.removeAllRanges();
6973
+ (_a = window.getSelection()) == null ? void 0 : _a.removeAllRanges();
6963
6974
  startDrag(e);
6964
6975
  const el = e.currentTarget;
6965
6976
  if (!el)
@@ -7174,8 +7185,8 @@ const _sfc_main$24 = defineComponent({
7174
7185
  };
7175
7186
  watch(() => props.noresize, (noresize) => {
7176
7187
  if (noresize) {
7177
- stopResizeObserver?.();
7178
- stopResizeListener?.();
7188
+ stopResizeObserver == null ? void 0 : stopResizeObserver();
7189
+ stopResizeListener == null ? void 0 : stopResizeListener();
7179
7190
  } else {
7180
7191
  ({ stop: stopResizeObserver } = useResizeObserver(resize$, update));
7181
7192
  stopResizeListener = useEventListener("resize", update);
@@ -9347,7 +9358,7 @@ const _sfc_main$21 = defineComponent({
9347
9358
  const handler = props[eventName];
9348
9359
  if (handler) {
9349
9360
  el.addEventListener(eventName.slice(2).toLowerCase(), handler);
9350
- prevEl?.removeEventListener(eventName.slice(2).toLowerCase(), handler);
9361
+ prevEl == null ? void 0 : prevEl.removeEventListener(eventName.slice(2).toLowerCase(), handler);
9351
9362
  }
9352
9363
  });
9353
9364
  }
@@ -9407,15 +9418,17 @@ const _sfc_main$20 = defineComponent({
9407
9418
  return createPopper(referenceEl, popperContentEl, options);
9408
9419
  };
9409
9420
  const updatePopper = () => {
9410
- unref(popperInstanceRef)?.update();
9421
+ var _a;
9422
+ (_a = unref(popperInstanceRef)) == null ? void 0 : _a.update();
9411
9423
  contentZIndex.value = props.zIndex || PopupManager.nextZIndex();
9412
9424
  };
9413
9425
  onMounted(() => {
9414
9426
  let updateHandle;
9415
9427
  watch(() => unwrapMeasurableEl(props.referenceEl) || unref(triggerRef), (val) => {
9416
- updateHandle?.();
9428
+ var _a;
9429
+ updateHandle == null ? void 0 : updateHandle();
9417
9430
  if (val) {
9418
- popperInstanceRef.value?.destroy();
9431
+ (_a = popperInstanceRef.value) == null ? void 0 : _a.destroy();
9419
9432
  const popperContentEl = unref(popperContentRef);
9420
9433
  contentRef.value = popperContentEl;
9421
9434
  const arrowEl = unref(arrowRef);
@@ -9582,7 +9595,10 @@ const _sfc_main$1_ = defineComponent({
9582
9595
  const shouldShow = computed(() => {
9583
9596
  return props.disabled ? false : unref(open);
9584
9597
  });
9585
- const contentStyle = computed(() => props.style ?? {});
9598
+ const contentStyle = computed(() => {
9599
+ var _a;
9600
+ return (_a = props.style) != null ? _a : {};
9601
+ });
9586
9602
  const ariaHidden = computed(() => !unref(open));
9587
9603
  useEscapeKeydown(onClose);
9588
9604
  const onTransitionLeave = () => {
@@ -9603,7 +9619,8 @@ const _sfc_main$1_ = defineComponent({
9603
9619
  }
9604
9620
  });
9605
9621
  const onBeforeEnter = () => {
9606
- contentRef.value?.updatePopper?.();
9622
+ var _a, _b;
9623
+ (_b = (_a = contentRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
9607
9624
  };
9608
9625
  const onAfterShow = () => {
9609
9626
  onShow();
@@ -9612,7 +9629,8 @@ const _sfc_main$1_ = defineComponent({
9612
9629
  watch(() => unref(open), (val) => {
9613
9630
  if (val) {
9614
9631
  stopHandle = onClickOutside(computed(() => {
9615
- return contentRef.value?.popperContentRef;
9632
+ var _a;
9633
+ return (_a = contentRef.value) == null ? void 0 : _a.popperContentRef;
9616
9634
  }), () => {
9617
9635
  if (unref(controlled))
9618
9636
  return;
@@ -9622,7 +9640,7 @@ const _sfc_main$1_ = defineComponent({
9622
9640
  }
9623
9641
  });
9624
9642
  } else {
9625
- stopHandle?.();
9643
+ stopHandle == null ? void 0 : stopHandle();
9626
9644
  }
9627
9645
  }, {
9628
9646
  flush: "post"
@@ -9819,9 +9837,10 @@ const _sfc_main$1Y = defineComponent({
9819
9837
  const id = useId();
9820
9838
  const popperRef = ref(null);
9821
9839
  const updatePopper = () => {
9840
+ var _a;
9822
9841
  const popperComponent = unref(popperRef);
9823
9842
  if (popperComponent) {
9824
- popperComponent.popperInstanceRef?.update();
9843
+ (_a = popperComponent.popperInstanceRef) == null ? void 0 : _a.update();
9825
9844
  }
9826
9845
  };
9827
9846
  const open = ref(false);
@@ -10015,6 +10034,7 @@ const _sfc_main$1X = defineComponent({
10015
10034
  "select"
10016
10035
  ],
10017
10036
  setup(props, ctx) {
10037
+ const ns = useNamespace("autocomplete");
10018
10038
  const attrs = useAttrs();
10019
10039
  const suggestions = ref([]);
10020
10040
  const highlightedIndex = ref(-1);
@@ -10026,7 +10046,7 @@ const _sfc_main$1X = defineComponent({
10026
10046
  const regionRef = ref(null);
10027
10047
  const popper = ref(null);
10028
10048
  const id = computed(() => {
10029
- return `el-autocomplete-${generateId()}`;
10049
+ return ns.b(String(generateId()));
10030
10050
  });
10031
10051
  const suggestionVisible = computed(() => {
10032
10052
  const isValidData = isArray$9(suggestions.value) && suggestions.value.length > 0;
@@ -10111,7 +10131,8 @@ const _sfc_main$1X = defineComponent({
10111
10131
  activated.value = false;
10112
10132
  };
10113
10133
  const focus = () => {
10114
- inputRef.value?.focus();
10134
+ var _a;
10135
+ (_a = inputRef.value) == null ? void 0 : _a.focus();
10115
10136
  };
10116
10137
  const select = (item) => {
10117
10138
  ctx.emit("input", item[props.valueKey]);
@@ -10133,8 +10154,8 @@ const _sfc_main$1X = defineComponent({
10133
10154
  if (index >= suggestions.value.length) {
10134
10155
  index = suggestions.value.length - 1;
10135
10156
  }
10136
- const suggestion = regionRef.value.querySelector(".el-autocomplete-suggestion__wrap");
10137
- const suggestionList = suggestion.querySelectorAll(".el-autocomplete-suggestion__list li");
10157
+ const suggestion = regionRef.value.querySelector(`.${ns.be("suggestion", "wrap")}`);
10158
+ const suggestionList = suggestion.querySelectorAll(`.${ns.be("suggestion", "list")} li`);
10138
10159
  const highlightItem = suggestionList[index];
10139
10160
  const scrollTop = suggestion.scrollTop;
10140
10161
  const { offsetTop, scrollHeight } = highlightItem;
@@ -10172,7 +10193,8 @@ const _sfc_main$1X = defineComponent({
10172
10193
  focus,
10173
10194
  select,
10174
10195
  highlight,
10175
- onSuggestionShow
10196
+ onSuggestionShow,
10197
+ ns
10176
10198
  };
10177
10199
  }
10178
10200
  });
@@ -10192,32 +10214,29 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
10192
10214
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.suggestionVisible = $event),
10193
10215
  placement: _ctx.placement,
10194
10216
  "fallback-placements": ["bottom-start", "top-start"],
10195
- "popper-class": `el-autocomplete__popper ${_ctx.popperClass}`,
10217
+ "popper-class": `${_ctx.ns.e("popper")} ${_ctx.popperClass}`,
10196
10218
  "append-to-body": _ctx.popperAppendToBody,
10197
10219
  "gpu-acceleration": false,
10198
10220
  pure: "",
10199
10221
  "manual-mode": "",
10200
10222
  effect: "light",
10201
10223
  trigger: "click",
10202
- transition: "el-zoom-in-top",
10224
+ transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
10203
10225
  persistent: "",
10204
10226
  onShow: _ctx.onSuggestionShow
10205
10227
  }, {
10206
10228
  content: withCtx(() => [
10207
10229
  createElementVNode("div", {
10208
10230
  ref: "regionRef",
10209
- class: normalizeClass([
10210
- "el-autocomplete-suggestion",
10211
- _ctx.suggestionLoading && "is-loading"
10212
- ]),
10231
+ class: normalizeClass([_ctx.ns.b("suggestion"), _ctx.ns.is("loading", _ctx.suggestionLoading)]),
10213
10232
  style: normalizeStyle({ minWidth: _ctx.dropdownWidth, outline: "none" }),
10214
10233
  role: "region"
10215
10234
  }, [
10216
10235
  createVNode(_component_el_scrollbar, {
10217
10236
  id: _ctx.id,
10218
10237
  tag: "ul",
10219
- "wrap-class": "el-autocomplete-suggestion__wrap",
10220
- "view-class": "el-autocomplete-suggestion__list",
10238
+ "wrap-class": _ctx.ns.be("suggestion", "wrap"),
10239
+ "view-class": _ctx.ns.be("suggestion", "list"),
10221
10240
  role: "listbox"
10222
10241
  }, {
10223
10242
  default: withCtx(() => [
@@ -10244,12 +10263,12 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
10244
10263
  }), 128))
10245
10264
  ]),
10246
10265
  _: 3
10247
- }, 8, ["id"])
10266
+ }, 8, ["id", "wrap-class", "view-class"])
10248
10267
  ], 6)
10249
10268
  ]),
10250
10269
  default: withCtx(() => [
10251
10270
  withDirectives((openBlock(), createElementBlock("div", {
10252
- class: normalizeClass(["el-autocomplete", _ctx.$attrs.class]),
10271
+ class: normalizeClass([_ctx.ns.b(), _ctx.$attrs.class]),
10253
10272
  style: normalizeStyle(_ctx.$attrs.style),
10254
10273
  role: "combobox",
10255
10274
  "aria-haspopup": "listbox",
@@ -10300,7 +10319,7 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
10300
10319
  ])
10301
10320
  ]),
10302
10321
  _: 3
10303
- }, 8, ["visible", "placement", "popper-class", "append-to-body", "onShow"]);
10322
+ }, 8, ["visible", "placement", "popper-class", "append-to-body", "transition", "onShow"]);
10304
10323
  }
10305
10324
  var Autocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$1X, [["render", _sfc_render$1S]]);
10306
10325
 
@@ -10445,6 +10464,7 @@ const _sfc_main$1V = defineComponent({
10445
10464
  props: backtopProps,
10446
10465
  emits: backtopEmits,
10447
10466
  setup(props, { emit }) {
10467
+ const ns = useNamespace("backtop");
10448
10468
  const el = shallowRef(document.documentElement);
10449
10469
  const container = shallowRef(document);
10450
10470
  const visible = ref(false);
@@ -10478,8 +10498,9 @@ const _sfc_main$1V = defineComponent({
10478
10498
  };
10479
10499
  const handleScrollThrottled = useThrottleFn(handleScroll, 300);
10480
10500
  onMounted(() => {
10501
+ var _a;
10481
10502
  if (props.target) {
10482
- el.value = document.querySelector(props.target) ?? void 0;
10503
+ el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
10483
10504
  if (!el.value) {
10484
10505
  throwError(COMPONENT_NAME$8, `target is not existed: ${props.target}`);
10485
10506
  }
@@ -10491,14 +10512,17 @@ const _sfc_main$1V = defineComponent({
10491
10512
  visible,
10492
10513
  styleBottom,
10493
10514
  styleRight,
10494
- handleClick
10515
+ handleClick,
10516
+ ns
10495
10517
  };
10496
10518
  }
10497
10519
  });
10498
10520
  function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
10499
10521
  const _component_caret_top = resolveComponent("caret-top");
10500
10522
  const _component_el_icon = resolveComponent("el-icon");
10501
- return openBlock(), createBlock(Transition, { name: "el-fade-in" }, {
10523
+ return openBlock(), createBlock(Transition, {
10524
+ name: `${_ctx.ns.namespace.value}-fade-in`
10525
+ }, {
10502
10526
  default: withCtx(() => [
10503
10527
  _ctx.visible ? (openBlock(), createElementBlock("div", {
10504
10528
  key: 0,
@@ -10506,21 +10530,23 @@ function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
10506
10530
  right: _ctx.styleRight,
10507
10531
  bottom: _ctx.styleBottom
10508
10532
  }),
10509
- class: "el-backtop",
10533
+ class: normalizeClass(_ctx.ns.b()),
10510
10534
  onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
10511
10535
  }, [
10512
10536
  renderSlot(_ctx.$slots, "default", {}, () => [
10513
- createVNode(_component_el_icon, { class: "el-backtop__icon" }, {
10537
+ createVNode(_component_el_icon, {
10538
+ class: normalizeClass(_ctx.ns.e("icon"))
10539
+ }, {
10514
10540
  default: withCtx(() => [
10515
10541
  createVNode(_component_caret_top)
10516
10542
  ]),
10517
10543
  _: 1
10518
- })
10544
+ }, 8, ["class"])
10519
10545
  ])
10520
- ], 4)) : createCommentVNode("v-if", true)
10546
+ ], 6)) : createCommentVNode("v-if", true)
10521
10547
  ]),
10522
10548
  _: 3
10523
- });
10549
+ }, 8, ["name"]);
10524
10550
  }
10525
10551
  var Backtop = /* @__PURE__ */ _export_sfc$1(_sfc_main$1V, [["render", _sfc_render$1Q]]);
10526
10552
 
@@ -10668,8 +10694,8 @@ const _sfc_main$1S = defineComponent({
10668
10694
  return {
10669
10695
  ns,
10670
10696
  link,
10671
- separator: parent?.separator,
10672
- separatorIcon: parent?.separatorIcon
10697
+ separator: parent == null ? void 0 : parent.separator,
10698
+ separatorIcon: parent == null ? void 0 : parent.separatorIcon
10673
10699
  };
10674
10700
  }
10675
10701
  });
@@ -11884,12 +11910,16 @@ const _sfc_main$1R = defineComponent({
11884
11910
  const buttonGroupContext = inject(buttonGroupContextKey, void 0);
11885
11911
  const globalConfig = useGlobalConfig("button");
11886
11912
  const ns = useNamespace("button");
11887
- const autoInsertSpace = computed(() => props.autoInsertSpace ?? globalConfig.value?.autoInsertSpace ?? false);
11913
+ const autoInsertSpace = computed(() => {
11914
+ var _a, _b, _c;
11915
+ return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
11916
+ });
11888
11917
  const shouldAddSpace = computed(() => {
11889
- const defaultSlot = slots.default?.();
11890
- if (autoInsertSpace.value && defaultSlot?.length === 1) {
11918
+ var _a;
11919
+ const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
11920
+ if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
11891
11921
  const slot = defaultSlot[0];
11892
- if (slot?.type === Text) {
11922
+ if ((slot == null ? void 0 : slot.type) === Text) {
11893
11923
  const text = slot.children;
11894
11924
  return /^\p{Unified_Ideograph}{2}$/u.test(text);
11895
11925
  }
@@ -11897,9 +11927,9 @@ const _sfc_main$1R = defineComponent({
11897
11927
  return false;
11898
11928
  });
11899
11929
  const { form } = useFormItem();
11900
- const buttonSize = useSize(computed(() => buttonGroupContext?.size));
11930
+ const buttonSize = useSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
11901
11931
  const buttonDisabled = useDisabled$1();
11902
- const buttonType = computed(() => props.type || buttonGroupContext?.type || "");
11932
+ const buttonType = computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
11903
11933
  const typeColor = computed(() => useCssVar(`--el-color-${props.type}`).value);
11904
11934
  const buttonStyle = computed(() => {
11905
11935
  let styles = {};
@@ -11938,7 +11968,7 @@ const _sfc_main$1R = defineComponent({
11938
11968
  });
11939
11969
  const handleClick = (evt) => {
11940
11970
  if (props.nativeType === "reset") {
11941
- form?.resetFields();
11971
+ form == null ? void 0 : form.resetFields();
11942
11972
  }
11943
11973
  emit("click", evt);
11944
11974
  };
@@ -12107,12 +12137,6 @@ function isEqual$1(value, other) {
12107
12137
 
12108
12138
  var isEqual_1 = isEqual$1;
12109
12139
 
12110
- const isValidWidthUnit = (val) => {
12111
- if (isNumber(val)) {
12112
- return true;
12113
- }
12114
- return ["px", "rem", "em", "vw", "%", "vmin", "vmax"].some((unit) => val.endsWith(unit)) || val.startsWith("calc");
12115
- };
12116
12140
  const isValidComponentSize = (val) => ["", "large", "default", "small"].includes(val);
12117
12141
  const isValidDatePickType = (val) => [
12118
12142
  "year",
@@ -12297,6 +12321,7 @@ const _sfc_main$1P = defineComponent({
12297
12321
  const pickerActualVisible = ref(false);
12298
12322
  const valueOnOpen = ref(null);
12299
12323
  watch(pickerVisible, (val) => {
12324
+ var _a;
12300
12325
  if (!val) {
12301
12326
  userInput.value = null;
12302
12327
  nextTick(() => {
@@ -12304,15 +12329,16 @@ const _sfc_main$1P = defineComponent({
12304
12329
  });
12305
12330
  ctx.emit("blur");
12306
12331
  blurInput();
12307
- props.validateEvent && elFormItem.validate?.("blur");
12332
+ props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur"));
12308
12333
  } else {
12309
12334
  valueOnOpen.value = props.modelValue;
12310
12335
  }
12311
12336
  });
12312
12337
  const emitChange = (val, isClear) => {
12338
+ var _a;
12313
12339
  if (isClear || !valueEquals(val, valueOnOpen.value)) {
12314
12340
  ctx.emit("change", val);
12315
- props.validateEvent && elFormItem.validate?.("change");
12341
+ props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change"));
12316
12342
  }
12317
12343
  };
12318
12344
  const emitInput = (val) => {
@@ -12334,10 +12360,10 @@ const _sfc_main$1P = defineComponent({
12334
12360
  return [];
12335
12361
  });
12336
12362
  const refStartInput = computed(() => {
12337
- return refInput?.value[0];
12363
+ return refInput == null ? void 0 : refInput.value[0];
12338
12364
  });
12339
12365
  const refEndInput = computed(() => {
12340
- return refInput?.value[1];
12366
+ return refInput == null ? void 0 : refInput.value[1];
12341
12367
  });
12342
12368
  const setSelectionRange = (start, end, pos) => {
12343
12369
  const _inputs = refInput.value;
@@ -12378,7 +12404,8 @@ const _sfc_main$1P = defineComponent({
12378
12404
  ctx.emit("focus", e);
12379
12405
  };
12380
12406
  const handleBlur = () => {
12381
- refPopper.value?.onClose();
12407
+ var _a;
12408
+ (_a = refPopper.value) == null ? void 0 : _a.onClose();
12382
12409
  blurInput();
12383
12410
  };
12384
12411
  const pickerDisabled = computed(() => {
@@ -12465,14 +12492,19 @@ const _sfc_main$1P = defineComponent({
12465
12492
  });
12466
12493
  const pickerSize = useSize();
12467
12494
  const popperPaneRef = computed(() => {
12468
- return refPopper.value?.popperRef?.contentRef;
12495
+ var _a, _b;
12496
+ return (_b = (_a = refPopper.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
12497
+ });
12498
+ const popperEl = computed(() => {
12499
+ var _a, _b;
12500
+ return (_b = (_a = unref(refPopper)) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
12469
12501
  });
12470
- const popperEl = computed(() => unref(refPopper)?.popperRef?.contentRef);
12471
12502
  const actualInputRef = computed(() => {
12503
+ var _a;
12472
12504
  if (unref(isRangeInput)) {
12473
12505
  return unref(inputRef);
12474
12506
  }
12475
- return unref(inputRef)?.$el;
12507
+ return (_a = unref(inputRef)) == null ? void 0 : _a.$el;
12476
12508
  });
12477
12509
  onClickOutside(actualInputRef, (e) => {
12478
12510
  const unrefedPopperEl = unref(popperEl);
@@ -14244,8 +14276,8 @@ const _hoisted_1$14 = {
14244
14276
  const _hoisted_2$N = { class: "el-time-range-picker__content" };
14245
14277
  const _hoisted_3$A = { class: "el-time-range-picker__cell" };
14246
14278
  const _hoisted_4$m = { class: "el-time-range-picker__header" };
14247
- const _hoisted_5$f = { class: "el-time-range-picker__cell" };
14248
- const _hoisted_6$d = { class: "el-time-range-picker__header" };
14279
+ const _hoisted_5$e = { class: "el-time-range-picker__cell" };
14280
+ const _hoisted_6$c = { class: "el-time-range-picker__header" };
14249
14281
  const _hoisted_7$9 = { class: "el-time-panel__footer" };
14250
14282
  const _hoisted_8$8 = ["disabled"];
14251
14283
  function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
@@ -14273,8 +14305,8 @@ function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
14273
14305
  }, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "onChange", "onSetOption", "onSelectRange"])
14274
14306
  ], 2)
14275
14307
  ]),
14276
- createElementVNode("div", _hoisted_5$f, [
14277
- createElementVNode("div", _hoisted_6$d, toDisplayString(_ctx.t("el.datepicker.endTime")), 1),
14308
+ createElementVNode("div", _hoisted_5$e, [
14309
+ createElementVNode("div", _hoisted_6$c, toDisplayString(_ctx.t("el.datepicker.endTime")), 1),
14278
14310
  createElementVNode("div", {
14279
14311
  class: normalizeClass([{ "has-seconds": _ctx.showSeconds, "is-arrow": _ctx.arrowControl }, "el-time-range-picker__body el-time-panel__content"])
14280
14312
  }, [
@@ -15323,7 +15355,8 @@ const _sfc_main$1H = defineComponent({
15323
15355
  return index;
15324
15356
  }
15325
15357
  function calcCardTranslate(index, activeIndex) {
15326
- const parentWidth = injectCarouselScope.root.value?.offsetWidth || 0;
15358
+ var _a;
15359
+ const parentWidth = ((_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetWidth) || 0;
15327
15360
  if (data.inStage) {
15328
15361
  return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
15329
15362
  } else if (index < activeIndex) {
@@ -15333,7 +15366,8 @@ const _sfc_main$1H = defineComponent({
15333
15366
  }
15334
15367
  }
15335
15368
  function calcTranslate(index, activeIndex, isVertical) {
15336
- const distance = (isVertical ? injectCarouselScope.root.value?.offsetHeight : injectCarouselScope.root.value?.offsetWidth) || 0;
15369
+ var _a, _b;
15370
+ const distance = (isVertical ? (_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetHeight : (_b = injectCarouselScope.root.value) == null ? void 0 : _b.offsetWidth) || 0;
15337
15371
  return distance * (index - activeIndex);
15338
15372
  }
15339
15373
  const translateItem = (index, activeIndex, oldIndex) => {
@@ -15649,45 +15683,48 @@ const _sfc_main$1G = defineComponent({
15649
15683
  },
15650
15684
  emits: [UPDATE_MODEL_EVENT, "change"],
15651
15685
  setup(props) {
15652
- return useCheckbox(props);
15686
+ const ns = useNamespace("checkbox");
15687
+ return {
15688
+ ns,
15689
+ ...useCheckbox(props)
15690
+ };
15653
15691
  }
15654
15692
  });
15655
15693
  const _hoisted_1$10 = ["id", "aria-controls"];
15656
15694
  const _hoisted_2$K = ["tabindex", "role", "aria-checked"];
15657
- const _hoisted_3$y = /* @__PURE__ */ createElementVNode("span", { class: "el-checkbox__inner" }, null, -1);
15658
- const _hoisted_4$l = ["aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
15659
- const _hoisted_5$e = ["aria-hidden", "disabled", "value", "name", "tabindex"];
15660
- const _hoisted_6$c = {
15661
- key: 0,
15662
- class: "el-checkbox__label"
15663
- };
15695
+ const _hoisted_3$y = ["aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
15696
+ const _hoisted_4$l = ["aria-hidden", "disabled", "value", "name", "tabindex"];
15664
15697
  function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
15665
15698
  return openBlock(), createElementBlock("label", {
15666
15699
  id: _ctx.id,
15667
- class: normalizeClass(["el-checkbox", [
15668
- _ctx.checkboxSize ? "el-checkbox--" + _ctx.checkboxSize : "",
15669
- { "is-disabled": _ctx.isDisabled },
15670
- { "is-bordered": _ctx.border },
15671
- { "is-checked": _ctx.isChecked }
15672
- ]]),
15700
+ class: normalizeClass([
15701
+ _ctx.ns.b(),
15702
+ _ctx.ns.m(_ctx.checkboxSize),
15703
+ _ctx.ns.is("disabled", _ctx.isDisabled),
15704
+ _ctx.ns.is("bordered", _ctx.border),
15705
+ _ctx.ns.is("checked", _ctx.isChecked)
15706
+ ]),
15673
15707
  "aria-controls": _ctx.indeterminate ? _ctx.controls : null
15674
15708
  }, [
15675
15709
  createElementVNode("span", {
15676
- class: normalizeClass(["el-checkbox__input", {
15677
- "is-disabled": _ctx.isDisabled,
15678
- "is-checked": _ctx.isChecked,
15679
- "is-indeterminate": _ctx.indeterminate,
15680
- "is-focus": _ctx.focus
15681
- }]),
15710
+ class: normalizeClass([
15711
+ _ctx.ns.e("input"),
15712
+ _ctx.ns.is("disabled", _ctx.isDisabled),
15713
+ _ctx.ns.is("checked", _ctx.isChecked),
15714
+ _ctx.ns.is("indeterminate", _ctx.indeterminate),
15715
+ _ctx.ns.is("focus", _ctx.focus)
15716
+ ]),
15682
15717
  tabindex: _ctx.indeterminate ? 0 : void 0,
15683
15718
  role: _ctx.indeterminate ? "checkbox" : void 0,
15684
15719
  "aria-checked": _ctx.indeterminate ? "mixed" : false
15685
15720
  }, [
15686
- _hoisted_3$y,
15721
+ createElementVNode("span", {
15722
+ class: normalizeClass(_ctx.ns.e("inner"))
15723
+ }, null, 2),
15687
15724
  _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
15688
15725
  key: 0,
15689
15726
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
15690
- class: "el-checkbox__original",
15727
+ class: normalizeClass(_ctx.ns.e("original")),
15691
15728
  type: "checkbox",
15692
15729
  "aria-hidden": _ctx.indeterminate ? "true" : "false",
15693
15730
  name: _ctx.name,
@@ -15698,12 +15735,12 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
15698
15735
  onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
15699
15736
  onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
15700
15737
  onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
15701
- }, null, 40, _hoisted_4$l)), [
15738
+ }, null, 42, _hoisted_3$y)), [
15702
15739
  [vModelCheckbox, _ctx.model]
15703
15740
  ]) : withDirectives((openBlock(), createElementBlock("input", {
15704
15741
  key: 1,
15705
15742
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
15706
- class: "el-checkbox__original",
15743
+ class: normalizeClass(_ctx.ns.e("original")),
15707
15744
  type: "checkbox",
15708
15745
  "aria-hidden": _ctx.indeterminate ? "true" : "false",
15709
15746
  disabled: _ctx.isDisabled,
@@ -15713,16 +15750,19 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
15713
15750
  onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
15714
15751
  onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
15715
15752
  onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
15716
- }, null, 40, _hoisted_5$e)), [
15753
+ }, null, 42, _hoisted_4$l)), [
15717
15754
  [vModelCheckbox, _ctx.model]
15718
15755
  ])
15719
15756
  ], 10, _hoisted_2$K),
15720
- _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_6$c, [
15757
+ _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
15758
+ key: 0,
15759
+ class: normalizeClass(_ctx.ns.e("label"))
15760
+ }, [
15721
15761
  renderSlot(_ctx.$slots, "default"),
15722
15762
  !_ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
15723
15763
  createTextVNode(toDisplayString(_ctx.label), 1)
15724
15764
  ], 2112)) : createCommentVNode("v-if", true)
15725
- ])) : createCommentVNode("v-if", true)
15765
+ ], 2)) : createCommentVNode("v-if", true)
15726
15766
  ], 10, _hoisted_1$10);
15727
15767
  }
15728
15768
  var Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1G, [["render", _sfc_render$1B]]);
@@ -15734,12 +15774,14 @@ const _sfc_main$1F = defineComponent({
15734
15774
  setup(props) {
15735
15775
  const { focus, isChecked, isDisabled, size, model, handleChange } = useCheckbox(props);
15736
15776
  const { checkboxGroup } = useCheckboxGroup();
15777
+ const ns = useNamespace("checkbox");
15737
15778
  const activeStyle = computed(() => {
15738
- const fillValue = checkboxGroup?.fill?.value ?? "";
15779
+ var _a, _b, _c, _d;
15780
+ const fillValue = (_b = (_a = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a.value) != null ? _b : "";
15739
15781
  return {
15740
15782
  backgroundColor: fillValue,
15741
15783
  borderColor: fillValue,
15742
- color: checkboxGroup?.textColor?.value ?? "",
15784
+ color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
15743
15785
  boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : null
15744
15786
  };
15745
15787
  });
@@ -15750,7 +15792,8 @@ const _sfc_main$1F = defineComponent({
15750
15792
  model,
15751
15793
  handleChange,
15752
15794
  activeStyle,
15753
- size
15795
+ size,
15796
+ ns
15754
15797
  };
15755
15798
  }
15756
15799
  });
@@ -15759,12 +15802,13 @@ const _hoisted_2$J = ["name", "tabindex", "disabled", "true-value", "false-value
15759
15802
  const _hoisted_3$x = ["name", "tabindex", "disabled", "value"];
15760
15803
  function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
15761
15804
  return openBlock(), createElementBlock("label", {
15762
- class: normalizeClass(["el-checkbox-button", [
15763
- _ctx.size ? "el-checkbox-button--" + _ctx.size : "",
15764
- { "is-disabled": _ctx.isDisabled },
15765
- { "is-checked": _ctx.isChecked },
15766
- { "is-focus": _ctx.focus }
15767
- ]]),
15805
+ class: normalizeClass([
15806
+ _ctx.ns.b("button"),
15807
+ _ctx.ns.bm("button", _ctx.size),
15808
+ _ctx.ns.is("disabled", _ctx.isDisabled),
15809
+ _ctx.ns.is("checked", _ctx.isChecked),
15810
+ _ctx.ns.is("focus", _ctx.focus)
15811
+ ]),
15768
15812
  role: "checkbox",
15769
15813
  "aria-checked": _ctx.isChecked,
15770
15814
  "aria-disabled": _ctx.isDisabled
@@ -15772,7 +15816,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
15772
15816
  _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
15773
15817
  key: 0,
15774
15818
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
15775
- class: "el-checkbox-button__original",
15819
+ class: normalizeClass(_ctx.ns.be("button", "original")),
15776
15820
  type: "checkbox",
15777
15821
  name: _ctx.name,
15778
15822
  tabindex: _ctx.tabindex,
@@ -15782,12 +15826,12 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
15782
15826
  onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
15783
15827
  onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
15784
15828
  onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
15785
- }, null, 40, _hoisted_2$J)), [
15829
+ }, null, 42, _hoisted_2$J)), [
15786
15830
  [vModelCheckbox, _ctx.model]
15787
15831
  ]) : withDirectives((openBlock(), createElementBlock("input", {
15788
15832
  key: 1,
15789
15833
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
15790
- class: "el-checkbox-button__original",
15834
+ class: normalizeClass(_ctx.ns.be("button", "original")),
15791
15835
  type: "checkbox",
15792
15836
  name: _ctx.name,
15793
15837
  tabindex: _ctx.tabindex,
@@ -15796,18 +15840,18 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
15796
15840
  onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
15797
15841
  onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
15798
15842
  onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
15799
- }, null, 40, _hoisted_3$x)), [
15843
+ }, null, 42, _hoisted_3$x)), [
15800
15844
  [vModelCheckbox, _ctx.model]
15801
15845
  ]),
15802
15846
  _ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
15803
15847
  key: 2,
15804
- class: "el-checkbox-button__inner",
15848
+ class: normalizeClass(_ctx.ns.be("button", "inner")),
15805
15849
  style: normalizeStyle(_ctx.isChecked ? _ctx.activeStyle : null)
15806
15850
  }, [
15807
15851
  renderSlot(_ctx.$slots, "default", {}, () => [
15808
15852
  createTextVNode(toDisplayString(_ctx.label), 1)
15809
15853
  ])
15810
- ], 4)) : createCommentVNode("v-if", true)
15854
+ ], 6)) : createCommentVNode("v-if", true)
15811
15855
  ], 10, _hoisted_1$$);
15812
15856
  }
15813
15857
  var CheckboxButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1F, [["render", _sfc_render$1A]]);
@@ -15849,6 +15893,7 @@ const _sfc_main$1E = defineComponent({
15849
15893
  setup(props, { emit, slots }) {
15850
15894
  const { elFormItem } = useCheckboxGroup();
15851
15895
  const checkboxGroupSize = useSize();
15896
+ const ns = useNamespace("checkbox");
15852
15897
  const changeEvent = (value) => {
15853
15898
  emit(UPDATE_MODEL_EVENT, value);
15854
15899
  nextTick(() => {
@@ -15871,11 +15916,12 @@ const _sfc_main$1E = defineComponent({
15871
15916
  changeEvent
15872
15917
  });
15873
15918
  watch(() => props.modelValue, () => {
15874
- elFormItem.validate?.("change");
15919
+ var _a;
15920
+ (_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
15875
15921
  });
15876
15922
  return () => {
15877
15923
  return h$1(props.tag, {
15878
- class: "el-checkbox-group",
15924
+ class: ns.b("group"),
15879
15925
  role: "group",
15880
15926
  "aria-label": "checkbox-group"
15881
15927
  }, [renderSlot(slots, "default")]);
@@ -16050,10 +16096,10 @@ const _sfc_main$1C = defineComponent({
16050
16096
  } = useRadio(props, emit);
16051
16097
  const activeStyle = computed(() => {
16052
16098
  return {
16053
- backgroundColor: radioGroup?.fill || "",
16054
- borderColor: radioGroup?.fill || "",
16055
- boxShadow: radioGroup?.fill ? `-1px 0 0 0 ${radioGroup.fill}` : "",
16056
- color: radioGroup?.textColor || ""
16099
+ backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
16100
+ borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
16101
+ boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
16102
+ color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
16057
16103
  };
16058
16104
  });
16059
16105
  return {
@@ -16183,7 +16229,7 @@ const _sfc_main$1B = defineComponent({
16183
16229
  ...toRefs(props),
16184
16230
  changeEvent
16185
16231
  }));
16186
- watch(() => props.modelValue, () => formItem?.validate("change"));
16232
+ watch(() => props.modelValue, () => formItem == null ? void 0 : formItem.validate("change"));
16187
16233
  return {
16188
16234
  radioGroupRef,
16189
16235
  handleKeydown
@@ -16250,15 +16296,19 @@ const _sfc_main$1A = defineComponent({
16250
16296
  const isHoverMenu = computed(() => panel.isHoverMenu);
16251
16297
  const multiple = computed(() => panel.config.multiple);
16252
16298
  const checkStrictly = computed(() => panel.config.checkStrictly);
16253
- const checkedNodeId = computed(() => panel.checkedNodes[0]?.uid);
16299
+ const checkedNodeId = computed(() => {
16300
+ var _a;
16301
+ return (_a = panel.checkedNodes[0]) == null ? void 0 : _a.uid;
16302
+ });
16254
16303
  const isDisabled = computed(() => props.node.isDisabled);
16255
16304
  const isLeaf = computed(() => props.node.isLeaf);
16256
16305
  const expandable = computed(() => checkStrictly.value && !isLeaf.value || !isDisabled.value);
16257
16306
  const inExpandingPath = computed(() => isInPath(panel.expandingNode));
16258
16307
  const inCheckedPath = computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
16259
16308
  const isInPath = (node) => {
16309
+ var _a;
16260
16310
  const { level, uid } = props.node;
16261
- return node?.pathNodes[level - 1]?.uid === uid;
16311
+ return ((_a = node == null ? void 0 : node.pathNodes[level - 1]) == null ? void 0 : _a.uid) === uid;
16262
16312
  };
16263
16313
  const doExpand = () => {
16264
16314
  if (inExpandingPath.value)
@@ -16526,28 +16576,31 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
16526
16576
  onMousemove: _ctx.handleMouseMove,
16527
16577
  onMouseleave: _ctx.clearHoverZone
16528
16578
  }, {
16529
- default: withCtx(() => [
16530
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.nodes, (node) => {
16531
- return openBlock(), createBlock(_component_el_cascader_node, {
16532
- key: node.uid,
16533
- node,
16534
- "menu-id": _ctx.menuId,
16535
- onExpand: _ctx.handleExpand
16536
- }, null, 8, ["node", "menu-id", "onExpand"]);
16537
- }), 128)),
16538
- _ctx.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
16539
- createVNode(_component_el_icon, {
16540
- size: "14",
16541
- class: "is-loading"
16542
- }, {
16543
- default: withCtx(() => [
16544
- createVNode(_component_loading)
16545
- ]),
16546
- _: 1
16547
- }),
16548
- createTextVNode(" " + toDisplayString(_ctx.t("el.cascader.loading")), 1)
16549
- ])) : _ctx.isEmpty ? (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(_ctx.t("el.cascader.noData")), 1)) : _ctx.panel?.isHoverMenu ? (openBlock(), createElementBlock("svg", _hoisted_3$v, null, 512)) : createCommentVNode("v-if", true)
16550
- ]),
16579
+ default: withCtx(() => {
16580
+ var _a;
16581
+ return [
16582
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.nodes, (node) => {
16583
+ return openBlock(), createBlock(_component_el_cascader_node, {
16584
+ key: node.uid,
16585
+ node,
16586
+ "menu-id": _ctx.menuId,
16587
+ onExpand: _ctx.handleExpand
16588
+ }, null, 8, ["node", "menu-id", "onExpand"]);
16589
+ }), 128)),
16590
+ _ctx.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
16591
+ createVNode(_component_el_icon, {
16592
+ size: "14",
16593
+ class: "is-loading"
16594
+ }, {
16595
+ default: withCtx(() => [
16596
+ createVNode(_component_loading)
16597
+ ]),
16598
+ _: 1
16599
+ }),
16600
+ createTextVNode(" " + toDisplayString(_ctx.t("el.cascader.loading")), 1)
16601
+ ])) : _ctx.isEmpty ? (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(_ctx.t("el.cascader.noData")), 1)) : ((_a = _ctx.panel) == null ? void 0 : _a.isHoverMenu) ? (openBlock(), createElementBlock("svg", _hoisted_3$v, null, 512)) : createCommentVNode("v-if", true)
16602
+ ];
16603
+ }),
16551
16604
  _: 1
16552
16605
  }, 8, ["view-class", "onMousemove", "onMouseleave"]);
16553
16606
  }
@@ -16839,7 +16892,7 @@ const _sfc_main$1y = defineComponent({
16839
16892
  const resolve = (dataList) => {
16840
16893
  const _node = node;
16841
16894
  const parent = _node.root ? null : _node;
16842
- dataList && store?.appendNodes(dataList, parent);
16895
+ dataList && (store == null ? void 0 : store.appendNodes(dataList, parent));
16843
16896
  _node.loading = false;
16844
16897
  _node.loaded = true;
16845
16898
  _node.childrenData = _node.childrenData || [];
@@ -16848,6 +16901,7 @@ const _sfc_main$1y = defineComponent({
16848
16901
  cfg.lazyLoad(node, resolve);
16849
16902
  };
16850
16903
  const expandNode = (node, silent) => {
16904
+ var _a;
16851
16905
  const { level } = node;
16852
16906
  const newMenus = menus.value.slice(0, level);
16853
16907
  let newExpandingNode;
@@ -16857,17 +16911,17 @@ const _sfc_main$1y = defineComponent({
16857
16911
  newExpandingNode = node;
16858
16912
  newMenus.push(node.children);
16859
16913
  }
16860
- if (expandingNode.value?.uid !== newExpandingNode?.uid) {
16914
+ if (((_a = expandingNode.value) == null ? void 0 : _a.uid) !== (newExpandingNode == null ? void 0 : newExpandingNode.uid)) {
16861
16915
  expandingNode.value = node;
16862
16916
  menus.value = newMenus;
16863
- !silent && emit("expand-change", node?.pathValues || []);
16917
+ !silent && emit("expand-change", (node == null ? void 0 : node.pathValues) || []);
16864
16918
  }
16865
16919
  };
16866
16920
  const handleCheckChange = (node, checked, emitClose = true) => {
16867
16921
  const { checkStrictly, multiple } = config.value;
16868
16922
  const oldNode = checkedNodes.value[0];
16869
16923
  manualChecked = true;
16870
- !multiple && oldNode?.doCheck(false);
16924
+ !multiple && (oldNode == null ? void 0 : oldNode.doCheck(false));
16871
16925
  node.doCheck(checked);
16872
16926
  calculateCheckedValue();
16873
16927
  emitClose && !multiple && !checkStrictly && emit("close");
@@ -16881,23 +16935,25 @@ const _sfc_main$1y = defineComponent({
16881
16935
  node && expandNode(node);
16882
16936
  };
16883
16937
  const getFlattedNodes = (leafOnly) => {
16884
- return store?.getFlattedNodes(leafOnly);
16938
+ return store == null ? void 0 : store.getFlattedNodes(leafOnly);
16885
16939
  };
16886
16940
  const getCheckedNodes = (leafOnly) => {
16887
- return getFlattedNodes(leafOnly)?.filter((node) => node.checked !== false);
16941
+ var _a;
16942
+ return (_a = getFlattedNodes(leafOnly)) == null ? void 0 : _a.filter((node) => node.checked !== false);
16888
16943
  };
16889
16944
  const clearCheckedNodes = () => {
16890
16945
  checkedNodes.value.forEach((node) => node.doCheck(false));
16891
16946
  calculateCheckedValue();
16892
16947
  };
16893
16948
  const calculateCheckedValue = () => {
16949
+ var _a;
16894
16950
  const { checkStrictly, multiple } = config.value;
16895
16951
  const oldNodes = checkedNodes.value;
16896
16952
  const newNodes = getCheckedNodes(!checkStrictly);
16897
16953
  const nodes = sortByOriginalOrder(oldNodes, newNodes);
16898
16954
  const values = nodes.map((node) => node.valueByOption);
16899
16955
  checkedNodes.value = nodes;
16900
- checkedValue.value = multiple ? values : values[0] ?? null;
16956
+ checkedValue.value = multiple ? values : (_a = values[0]) != null ? _a : null;
16901
16957
  };
16902
16958
  const syncCheckedValue = (loaded = false, forced = false) => {
16903
16959
  const { modelValue } = props;
@@ -16907,7 +16963,7 @@ const _sfc_main$1y = defineComponent({
16907
16963
  return;
16908
16964
  if (lazy && !loaded) {
16909
16965
  const values = deduplicate(arrayFlat(coerceTruthyValueToArray(modelValue)));
16910
- const nodes = values.map((val) => store?.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
16966
+ const nodes = values.map((val) => store == null ? void 0 : store.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
16911
16967
  if (nodes.length) {
16912
16968
  nodes.forEach((node) => {
16913
16969
  lazyLoad(node, () => syncCheckedValue(false, forced));
@@ -16917,7 +16973,7 @@ const _sfc_main$1y = defineComponent({
16917
16973
  }
16918
16974
  } else {
16919
16975
  const values = multiple ? coerceTruthyValueToArray(modelValue) : [modelValue];
16920
- const nodes = deduplicate(values.map((val) => store?.getNodeByValue(val, leafOnly)));
16976
+ const nodes = deduplicate(values.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
16921
16977
  syncMenuState(nodes, false);
16922
16978
  checkedValue.value = modelValue;
16923
16979
  }
@@ -16926,7 +16982,7 @@ const _sfc_main$1y = defineComponent({
16926
16982
  const { checkStrictly } = config.value;
16927
16983
  const oldNodes = checkedNodes.value;
16928
16984
  const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
16929
- const oldExpandingNode = store?.getSameNode(expandingNode.value);
16985
+ const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
16930
16986
  const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
16931
16987
  if (newExpandingNode) {
16932
16988
  newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
@@ -16942,7 +16998,7 @@ const _sfc_main$1y = defineComponent({
16942
16998
  if (!isClient)
16943
16999
  return;
16944
17000
  menuList.value.forEach((menu) => {
16945
- const menuElement = menu?.$el;
17001
+ const menuElement = menu == null ? void 0 : menu.$el;
16946
17002
  if (menuElement) {
16947
17003
  const container = menuElement.querySelector(".el-scrollbar__wrap");
16948
17004
  const activeNode = menuElement.querySelector(".el-cascader-node.is-active") || menuElement.querySelector(".el-cascader-node.in-active-path");
@@ -16964,14 +17020,14 @@ const _sfc_main$1y = defineComponent({
16964
17020
  case EVENT_CODE.left: {
16965
17021
  e.preventDefault();
16966
17022
  const preMenu = menuList.value[getMenuIndex(target) - 1];
16967
- const expandedNode = preMenu?.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
17023
+ const expandedNode = preMenu == null ? void 0 : preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
16968
17024
  focusNode(expandedNode);
16969
17025
  break;
16970
17026
  }
16971
17027
  case EVENT_CODE.right: {
16972
17028
  e.preventDefault();
16973
17029
  const nextMenu = menuList.value[getMenuIndex(target) + 1];
16974
- const firstNode = nextMenu?.$el.querySelector('.el-cascader-node[tabindex="-1"]');
17030
+ const firstNode = nextMenu == null ? void 0 : nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]');
16975
17031
  focusNode(firstNode);
16976
17032
  break;
16977
17033
  }
@@ -17281,7 +17337,10 @@ const _sfc_main$1w = defineComponent({
17281
17337
  const multiple = computed(() => !!props.props.multiple);
17282
17338
  const readonly = computed(() => !props.filterable || multiple.value);
17283
17339
  const searchKeyword = computed(() => multiple.value ? searchInputValue.value : inputValue.value);
17284
- const checkedNodes = computed(() => panel.value?.checkedNodes || []);
17340
+ const checkedNodes = computed(() => {
17341
+ var _a;
17342
+ return ((_a = panel.value) == null ? void 0 : _a.checkedNodes) || [];
17343
+ });
17285
17344
  const clearBtnVisible = computed(() => {
17286
17345
  if (!props.clearable || isDisabled.value || filtering.value || !inputHover.value)
17287
17346
  return false;
@@ -17297,24 +17356,27 @@ const _sfc_main$1w = defineComponent({
17297
17356
  return props.modelValue;
17298
17357
  },
17299
17358
  set(val) {
17359
+ var _a;
17300
17360
  emit(UPDATE_MODEL_EVENT, val);
17301
17361
  emit(CHANGE_EVENT, val);
17302
- elFormItem.validate?.("change");
17362
+ (_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
17303
17363
  }
17304
17364
  });
17305
17365
  const popperPaneRef = computed(() => {
17306
- return tooltipRef.value?.popperRef?.contentRef;
17366
+ var _a, _b;
17367
+ return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
17307
17368
  });
17308
17369
  const togglePopperVisible = (visible) => {
17370
+ var _a, _b, _c;
17309
17371
  if (isDisabled.value)
17310
17372
  return;
17311
- visible = visible ?? !popperVisible.value;
17373
+ visible = visible != null ? visible : !popperVisible.value;
17312
17374
  if (visible !== popperVisible.value) {
17313
17375
  popperVisible.value = visible;
17314
- input.value?.input?.setAttribute("aria-expanded", `${visible}`);
17376
+ (_b = (_a = input.value) == null ? void 0 : _a.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
17315
17377
  if (visible) {
17316
17378
  updatePopperPosition();
17317
- nextTick(panel.value?.scrollToExpandingNode);
17379
+ nextTick((_c = panel.value) == null ? void 0 : _c.scrollToExpandingNode);
17318
17380
  } else if (props.filterable) {
17319
17381
  const { value } = presentText;
17320
17382
  inputValue.value = value;
@@ -17325,7 +17387,8 @@ const _sfc_main$1w = defineComponent({
17325
17387
  };
17326
17388
  const updatePopperPosition = () => {
17327
17389
  nextTick(() => {
17328
- tooltipRef.value?.updatePopper();
17390
+ var _a;
17391
+ (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper();
17329
17392
  });
17330
17393
  };
17331
17394
  const hideSuggestionPanel = () => {
@@ -17342,9 +17405,10 @@ const _sfc_main$1w = defineComponent({
17342
17405
  };
17343
17406
  };
17344
17407
  const deleteTag = (tag) => {
17408
+ var _a;
17345
17409
  const node = tag.node;
17346
17410
  node.doCheck(false);
17347
- panel.value?.calculateCheckedValue();
17411
+ (_a = panel.value) == null ? void 0 : _a.calculateCheckedValue();
17348
17412
  emit("remove-tag", node.valueByOption);
17349
17413
  };
17350
17414
  const calculatePresentTags = () => {
@@ -17371,8 +17435,9 @@ const _sfc_main$1w = defineComponent({
17371
17435
  presentTags.value = tags;
17372
17436
  };
17373
17437
  const calculateSuggestions = () => {
17438
+ var _a, _b;
17374
17439
  const { filterMethod, showAllLevels, separator } = props;
17375
- const res = panel.value?.getFlattedNodes(!props.props.checkStrictly)?.filter((node) => {
17440
+ const res = (_b = (_a = panel.value) == null ? void 0 : _a.getFlattedNodes(!props.props.checkStrictly)) == null ? void 0 : _b.filter((node) => {
17376
17441
  if (node.isDisabled)
17377
17442
  return false;
17378
17443
  node.calcText(showAllLevels, separator);
@@ -17388,11 +17453,12 @@ const _sfc_main$1w = defineComponent({
17388
17453
  updatePopperPosition();
17389
17454
  };
17390
17455
  const focusFirstNode = () => {
17456
+ var _a;
17391
17457
  let firstNode;
17392
17458
  if (filtering.value && suggestionPanel.value) {
17393
17459
  firstNode = suggestionPanel.value.$el.querySelector(".el-cascader__suggestion-item");
17394
17460
  } else {
17395
- firstNode = panel.value?.$el.querySelector('.el-cascader-node[tabindex="-1"]');
17461
+ firstNode = (_a = panel.value) == null ? void 0 : _a.$el.querySelector('.el-cascader-node[tabindex="-1"]');
17396
17462
  }
17397
17463
  if (firstNode) {
17398
17464
  firstNode.focus();
@@ -17400,9 +17466,10 @@ const _sfc_main$1w = defineComponent({
17400
17466
  }
17401
17467
  };
17402
17468
  const updateStyle = () => {
17403
- const inputInner = input.value?.input;
17469
+ var _a, _b;
17470
+ const inputInner = (_a = input.value) == null ? void 0 : _a.input;
17404
17471
  const tagWrapperEl = tagWrapper.value;
17405
- const suggestionPanelEl = suggestionPanel.value?.$el;
17472
+ const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
17406
17473
  if (!isClient || !inputInner)
17407
17474
  return;
17408
17475
  if (suggestionPanelEl) {
@@ -17417,14 +17484,16 @@ const _sfc_main$1w = defineComponent({
17417
17484
  }
17418
17485
  };
17419
17486
  const getCheckedNodes = (leafOnly) => {
17420
- return panel.value?.getCheckedNodes(leafOnly);
17487
+ var _a;
17488
+ return (_a = panel.value) == null ? void 0 : _a.getCheckedNodes(leafOnly);
17421
17489
  };
17422
17490
  const handleExpandChange = (value) => {
17423
17491
  updatePopperPosition();
17424
17492
  emit("expand-change", value);
17425
17493
  };
17426
17494
  const handleComposition = (event) => {
17427
- const text = event.target?.value;
17495
+ var _a;
17496
+ const text = (_a = event.target) == null ? void 0 : _a.value;
17428
17497
  if (event.type === "compositionend") {
17429
17498
  isOnComposition.value = false;
17430
17499
  nextTick(() => handleInput(text));
@@ -17452,15 +17521,17 @@ const _sfc_main$1w = defineComponent({
17452
17521
  }
17453
17522
  };
17454
17523
  const handleClear = () => {
17455
- panel.value?.clearCheckedNodes();
17524
+ var _a;
17525
+ (_a = panel.value) == null ? void 0 : _a.clearCheckedNodes();
17456
17526
  togglePopperVisible(false);
17457
17527
  };
17458
17528
  const handleSuggestionClick = (node) => {
17529
+ var _a, _b;
17459
17530
  const { checked } = node;
17460
17531
  if (multiple.value) {
17461
- panel.value?.handleCheckChange(node, !checked, false);
17532
+ (_a = panel.value) == null ? void 0 : _a.handleCheckChange(node, !checked, false);
17462
17533
  } else {
17463
- !checked && panel.value?.handleCheckChange(node, true, false);
17534
+ !checked && ((_b = panel.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
17464
17535
  togglePopperVisible(false);
17465
17536
  }
17466
17537
  };
@@ -17511,7 +17582,7 @@ const _sfc_main$1w = defineComponent({
17511
17582
  }, props.debounce);
17512
17583
  const handleInput = (val, e) => {
17513
17584
  !popperVisible.value && togglePopperVisible(true);
17514
- if (e?.isComposing)
17585
+ if (e == null ? void 0 : e.isComposing)
17515
17586
  return;
17516
17587
  val ? handleFilter() : hideSuggestionPanel();
17517
17588
  };
@@ -17522,12 +17593,14 @@ const _sfc_main$1w = defineComponent({
17522
17593
  });
17523
17594
  watch(presentText, (val) => inputValue.value = val, { immediate: true });
17524
17595
  onMounted(() => {
17525
- const inputEl = input.value?.$el;
17526
- inputInitialHeight = inputEl?.offsetHeight || INPUT_HEIGHT_MAP[realSize.value] || DEFAULT_INPUT_HEIGHT;
17596
+ var _a;
17597
+ const inputEl = (_a = input.value) == null ? void 0 : _a.$el;
17598
+ inputInitialHeight = (inputEl == null ? void 0 : inputEl.offsetHeight) || INPUT_HEIGHT_MAP[realSize.value] || DEFAULT_INPUT_HEIGHT;
17527
17599
  addResizeListener(inputEl, updateStyle);
17528
17600
  });
17529
17601
  onBeforeUnmount(() => {
17530
- removeResizeListener(input.value?.$el, updateStyle);
17602
+ var _a;
17603
+ removeResizeListener((_a = input.value) == null ? void 0 : _a.$el, updateStyle);
17531
17604
  });
17532
17605
  return {
17533
17606
  popperOptions,
@@ -18069,7 +18142,7 @@ const _sfc_main$1s = defineComponent({
18069
18142
  const isClick = ref(false);
18070
18143
  const id = ref(generateId());
18071
18144
  const isActive = computed(() => {
18072
- return collapse?.activeNames.value.indexOf(props.name) > -1;
18145
+ return (collapse == null ? void 0 : collapse.activeNames.value.indexOf(props.name)) > -1;
18073
18146
  });
18074
18147
  const handleFocus = () => {
18075
18148
  setTimeout(() => {
@@ -18083,12 +18156,12 @@ const _sfc_main$1s = defineComponent({
18083
18156
  const handleHeaderClick = () => {
18084
18157
  if (props.disabled)
18085
18158
  return;
18086
- collapse?.handleItemClick(props.name);
18159
+ collapse == null ? void 0 : collapse.handleItemClick(props.name);
18087
18160
  focusing.value = false;
18088
18161
  isClick.value = true;
18089
18162
  };
18090
18163
  const handleEnterClick = () => {
18091
- collapse?.handleItemClick(props.name);
18164
+ collapse == null ? void 0 : collapse.handleItemClick(props.name);
18092
18165
  };
18093
18166
  return {
18094
18167
  isActive,
@@ -18988,10 +19061,11 @@ const _sfc_main$1n = defineComponent({
18988
19061
  color.fromString(customInput.value);
18989
19062
  }
18990
19063
  function confirmValue() {
19064
+ var _a;
18991
19065
  const value = color.value;
18992
19066
  emit(UPDATE_MODEL_EVENT, value);
18993
19067
  emit("change", value);
18994
- elFormItem.validate?.("change");
19068
+ (_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
18995
19069
  debounceSetShowPicker(false);
18996
19070
  nextTick(() => {
18997
19071
  const newColor = new Color({
@@ -19005,11 +19079,12 @@ const _sfc_main$1n = defineComponent({
19005
19079
  });
19006
19080
  }
19007
19081
  function clear() {
19082
+ var _a;
19008
19083
  debounceSetShowPicker(false);
19009
19084
  emit(UPDATE_MODEL_EVENT, null);
19010
19085
  emit("change", null);
19011
19086
  if (props.modelValue !== null) {
19012
- elFormItem.validate?.("change");
19087
+ (_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
19013
19088
  }
19014
19089
  resetColor();
19015
19090
  }
@@ -19020,9 +19095,10 @@ const _sfc_main$1n = defineComponent({
19020
19095
  });
19021
19096
  watch(() => showPicker.value, () => {
19022
19097
  nextTick(() => {
19023
- hue.value?.update();
19024
- svPanel.value?.update();
19025
- alpha.value?.update();
19098
+ var _a, _b, _c;
19099
+ (_a = hue.value) == null ? void 0 : _a.update();
19100
+ (_b = svPanel.value) == null ? void 0 : _b.update();
19101
+ (_c = alpha.value) == null ? void 0 : _c.update();
19026
19102
  });
19027
19103
  });
19028
19104
  provide(OPTIONS_KEY, {
@@ -19530,6 +19606,7 @@ const _sfc_main$1h = defineComponent({
19530
19606
  return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek, firstDayOfWeek + 7);
19531
19607
  });
19532
19608
  const rows = computed(() => {
19609
+ var _a;
19533
19610
  const startOfMonth = props.date.startOf("month");
19534
19611
  const startOfMonthDay = startOfMonth.day() || 7;
19535
19612
  const dateCountOfMonth = startOfMonth.daysInMonth();
@@ -19569,7 +19646,7 @@ const _sfc_main$1h = defineComponent({
19569
19646
  cell.type = "normal";
19570
19647
  const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
19571
19648
  cell.inRange = props.minDate && calTime.isSameOrAfter(props.minDate, "day") && calEndDate && calTime.isSameOrBefore(calEndDate, "day") || props.minDate && calTime.isSameOrBefore(props.minDate, "day") && calEndDate && calTime.isSameOrAfter(calEndDate, "day");
19572
- if (props.minDate?.isSameOrAfter(calEndDate)) {
19649
+ if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
19573
19650
  cell.start = calEndDate && calTime.isSame(calEndDate, "day");
19574
19651
  cell.end = props.minDate && calTime.isSame(props.minDate, "day");
19575
19652
  } else {
@@ -19838,6 +19915,7 @@ const _sfc_main$1g = defineComponent({
19838
19915
  const lastRow = ref(null);
19839
19916
  const lastColumn = ref(null);
19840
19917
  const rows = computed(() => {
19918
+ var _a;
19841
19919
  const rows2 = tableRows.value;
19842
19920
  const now = dayjs().locale(lang.value).startOf("month");
19843
19921
  for (let i = 0; i < 3; i++) {
@@ -19859,7 +19937,7 @@ const _sfc_main$1g = defineComponent({
19859
19937
  const calTime = props.date.startOf("year").month(index);
19860
19938
  const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
19861
19939
  cell.inRange = props.minDate && calTime.isSameOrAfter(props.minDate, "month") && calEndDate && calTime.isSameOrBefore(calEndDate, "month") || props.minDate && calTime.isSameOrBefore(props.minDate, "month") && calEndDate && calTime.isSameOrAfter(calEndDate, "month");
19862
- if (props.minDate?.isSameOrAfter(calEndDate)) {
19940
+ if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
19863
19941
  cell.start = calEndDate && calTime.isSame(calEndDate, "month");
19864
19942
  cell.end = props.minDate && calTime.isSame(props.minDate, "month");
19865
19943
  } else {
@@ -20277,7 +20355,7 @@ const _sfc_main$1e = defineComponent({
20277
20355
  currentView.value = "date";
20278
20356
  }, { immediate: true });
20279
20357
  watch(() => currentView.value, () => {
20280
- popper?.updatePopper();
20358
+ popper == null ? void 0 : popper.updatePopper();
20281
20359
  });
20282
20360
  const hasShortcuts = computed(() => !!shortcuts.length);
20283
20361
  const handleMonthPick = (month2) => {
@@ -22111,13 +22189,18 @@ const _sfc_main$1a = defineComponent({
22111
22189
  return node;
22112
22190
  };
22113
22191
  const getRows = () => {
22114
- const children = flattedChildren(slots.default?.()).filter((node) => node?.type?.name === "ElDescriptionsItem");
22192
+ var _a;
22193
+ const children = flattedChildren((_a = slots.default) == null ? void 0 : _a.call(slots)).filter((node) => {
22194
+ var _a2;
22195
+ return ((_a2 = node == null ? void 0 : node.type) == null ? void 0 : _a2.name) === "ElDescriptionsItem";
22196
+ });
22115
22197
  const rows = [];
22116
22198
  let temp = [];
22117
22199
  let count = props.column;
22118
22200
  let totalSpan = 0;
22119
22201
  children.forEach((node, index) => {
22120
- const span = node.props?.span || 1;
22202
+ var _a2;
22203
+ const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
22121
22204
  if (index < children.length - 1) {
22122
22205
  totalSpan += span > count ? count : span;
22123
22206
  }
@@ -22360,8 +22443,7 @@ const dialogProps = buildProps({
22360
22443
  },
22361
22444
  modalClass: String,
22362
22445
  width: {
22363
- type: [String, Number],
22364
- validator: isValidWidthUnit
22446
+ type: [String, Number]
22365
22447
  },
22366
22448
  zIndex: {
22367
22449
  type: Number
@@ -23030,7 +23112,7 @@ const _sfc_main$16 = defineComponent({
23030
23112
  on(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
23031
23113
  trapContainer.dispatchEvent(unmountEvent);
23032
23114
  if (!unmountEvent.defaultPrevented) {
23033
- tryFocus(lastFocusBeforeMounted ?? document.body, true);
23115
+ tryFocus(lastFocusBeforeMounted != null ? lastFocusBeforeMounted : document.body, true);
23034
23116
  }
23035
23117
  off(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
23036
23118
  focusableStack.remove(focusLayer);
@@ -23207,7 +23289,8 @@ const _sfc_main$13 = defineComponent({
23207
23289
  props: rovingFocusGroupProps,
23208
23290
  emits: [CURRENT_TAB_ID_CHANGE_EVT, "entryFocus"],
23209
23291
  setup(props, { emit }) {
23210
- const currentTabbedId = ref((props.currentTabId || props.defaultCurrentTabId) ?? null);
23292
+ var _a;
23293
+ const currentTabbedId = ref((_a = props.currentTabId || props.defaultCurrentTabId) != null ? _a : null);
23211
23294
  const isBackingOut = ref(false);
23212
23295
  const isClickFocus = ref(false);
23213
23296
  const rovingFocusGroupRef = ref(null);
@@ -23227,18 +23310,20 @@ const _sfc_main$13 = defineComponent({
23227
23310
  isBackingOut.value = true;
23228
23311
  };
23229
23312
  const onMousedown = composeEventHandlers((e) => {
23230
- props.onMousedown?.(e);
23313
+ var _a2;
23314
+ (_a2 = props.onMousedown) == null ? void 0 : _a2.call(props, e);
23231
23315
  }, () => {
23232
23316
  isClickFocus.value = true;
23233
23317
  });
23234
23318
  const onFocus = composeEventHandlers((e) => {
23235
- props.onFocus?.(e);
23319
+ var _a2;
23320
+ (_a2 = props.onFocus) == null ? void 0 : _a2.call(props, e);
23236
23321
  }, (e) => {
23237
23322
  const isKeyboardFocus = !unref(isClickFocus);
23238
23323
  const { target, currentTarget } = e;
23239
23324
  if (target === currentTarget && isKeyboardFocus && !unref(isBackingOut)) {
23240
23325
  const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);
23241
- currentTarget?.dispatchEvent(entryFocusEvt);
23326
+ currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);
23242
23327
  if (!entryFocusEvt.defaultPrevented) {
23243
23328
  const items = getItems().filter((item) => item.focusable);
23244
23329
  const activeItem = items.find((item) => item.active);
@@ -23251,7 +23336,8 @@ const _sfc_main$13 = defineComponent({
23251
23336
  isClickFocus.value = false;
23252
23337
  });
23253
23338
  const onBlur = composeEventHandlers((e) => {
23254
- props.onBlur?.(e);
23339
+ var _a2;
23340
+ (_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);
23255
23341
  }, () => {
23256
23342
  isBackingOut.value = false;
23257
23343
  });
@@ -23275,7 +23361,7 @@ const _sfc_main$13 = defineComponent({
23275
23361
  onMousedown
23276
23362
  });
23277
23363
  watch(() => props.currentTabId, (val) => {
23278
- currentTabbedId.value = val ?? null;
23364
+ currentTabbedId.value = val != null ? val : null;
23279
23365
  });
23280
23366
  onMounted(() => {
23281
23367
  const rovingFocusGroupEl = unref(rovingFocusGroupRef);
@@ -23534,10 +23620,12 @@ const _sfc_main$10 = defineComponent({
23534
23620
  handleClose();
23535
23621
  }
23536
23622
  function handleClose() {
23537
- popperRef.value?.onClose();
23623
+ var _a;
23624
+ (_a = popperRef.value) == null ? void 0 : _a.onClose();
23538
23625
  }
23539
23626
  function handleOpen() {
23540
- popperRef.value?.onOpen();
23627
+ var _a;
23628
+ (_a = popperRef.value) == null ? void 0 : _a.onOpen();
23541
23629
  }
23542
23630
  const dropdownSize = useSize();
23543
23631
  function commandHandler(...args) {
@@ -23547,7 +23635,7 @@ const _sfc_main$10 = defineComponent({
23547
23635
  }
23548
23636
  function onItemLeave() {
23549
23637
  const contentEl = unref(contentRef);
23550
- contentEl?.focus();
23638
+ contentEl == null ? void 0 : contentEl.focus();
23551
23639
  currentTabId.value = null;
23552
23640
  }
23553
23641
  function handleCurrentTabIdChange(id) {
@@ -23574,8 +23662,9 @@ const _sfc_main$10 = defineComponent({
23574
23662
  hideOnClick: toRef(props, "hideOnClick")
23575
23663
  });
23576
23664
  const onMountOnFocus = (e) => {
23665
+ var _a, _b;
23577
23666
  e.preventDefault();
23578
- contentRef.value?.focus?.({
23667
+ (_b = (_a = contentRef.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a, {
23579
23668
  preventScroll: true
23580
23669
  });
23581
23670
  };
@@ -23602,6 +23691,7 @@ const _sfc_main$10 = defineComponent({
23602
23691
  });
23603
23692
  const _hoisted_1$G = { class: "el-dropdown" };
23604
23693
  function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
23694
+ var _a;
23605
23695
  const _component_el_dropdown_collection = resolveComponent("el-dropdown-collection");
23606
23696
  const _component_el_roving_focus_group = resolveComponent("el-roving-focus-group");
23607
23697
  const _component_el_focus_trap = resolveComponent("el-focus-trap");
@@ -23622,7 +23712,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
23622
23712
  "manual-mode": true,
23623
23713
  placement: _ctx.placement,
23624
23714
  "popper-class": `el-dropdown__popper ${_ctx.popperClass}`,
23625
- "reference-element": _ctx.referenceElementRef?.$el,
23715
+ "reference-element": (_a = _ctx.referenceElementRef) == null ? void 0 : _a.$el,
23626
23716
  trigger: _ctx.trigger,
23627
23717
  "show-after": _ctx.showTimeout,
23628
23718
  "stop-popper-mouse-event": false,
@@ -23818,18 +23908,22 @@ const _sfc_main$_ = defineComponent({
23818
23908
  const { elDropdown } = useDropdown();
23819
23909
  const _instance = getCurrentInstance();
23820
23910
  const itemRef = ref(null);
23821
- const textContent = computed(() => unref(itemRef)?.textContent ?? "");
23911
+ const textContent = computed(() => {
23912
+ var _a, _b;
23913
+ return (_b = (_a = unref(itemRef)) == null ? void 0 : _a.textContent) != null ? _b : "";
23914
+ });
23822
23915
  const { onItemEnter, onItemLeave } = inject(DROPDOWN_INJECTION_KEY, void 0);
23823
23916
  const handlePointerMove = composeEventHandlers((e) => {
23824
23917
  emit("pointermove", e);
23825
23918
  return e.defaultPrevented;
23826
23919
  }, whenMouse((e) => {
23920
+ var _a;
23827
23921
  if (props.disabled) {
23828
23922
  onItemLeave(e);
23829
23923
  } else {
23830
23924
  onItemEnter(e);
23831
23925
  if (!e.defaultPrevented) {
23832
- e.currentTarget?.focus();
23926
+ (_a = e.currentTarget) == null ? void 0 : _a.focus();
23833
23927
  }
23834
23928
  }
23835
23929
  }));
@@ -23843,14 +23937,15 @@ const _sfc_main$_ = defineComponent({
23843
23937
  emit("click", e);
23844
23938
  return e.defaultPrevented;
23845
23939
  }, (e) => {
23940
+ var _a, _b, _c;
23846
23941
  if (props.disabled) {
23847
23942
  e.stopImmediatePropagation();
23848
23943
  return;
23849
23944
  }
23850
- if (elDropdown?.hideOnClick?.value) {
23851
- elDropdown.handleClick?.();
23945
+ if ((_a = elDropdown == null ? void 0 : elDropdown.hideOnClick) == null ? void 0 : _a.value) {
23946
+ (_b = elDropdown.handleClick) == null ? void 0 : _b.call(elDropdown);
23852
23947
  }
23853
- elDropdown.commandHandler?.(props.command, _instance, e);
23948
+ (_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props.command, _instance, e);
23854
23949
  });
23855
23950
  return {
23856
23951
  handleClick,
@@ -23861,12 +23956,13 @@ const _sfc_main$_ = defineComponent({
23861
23956
  }
23862
23957
  });
23863
23958
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
23959
+ var _a;
23864
23960
  const _component_el_dropdown_item_impl = resolveComponent("el-dropdown-item-impl");
23865
23961
  const _component_el_roving_focus_item = resolveComponent("el-roving-focus-item");
23866
23962
  const _component_el_dropdown_collection_item = resolveComponent("el-dropdown-collection-item");
23867
23963
  return openBlock(), createBlock(_component_el_dropdown_collection_item, {
23868
23964
  disabled: _ctx.disabled,
23869
- "text-value": _ctx.textValue ?? _ctx.textContent
23965
+ "text-value": (_a = _ctx.textValue) != null ? _a : _ctx.textContent
23870
23966
  }, {
23871
23967
  default: withCtx(() => [
23872
23968
  createVNode(_component_el_roving_focus_item, {
@@ -23918,7 +24014,8 @@ const _sfc_main$Z = defineComponent({
23918
24014
  });
23919
24015
  const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
23920
24016
  const composedKeydown = composeEventHandlers((e) => {
23921
- props.onKeydown?.(e);
24017
+ var _a;
24018
+ (_a = props.onKeydown) == null ? void 0 : _a.call(props, e);
23922
24019
  }, (e) => {
23923
24020
  const { currentTarget, code, target } = e;
23924
24021
  currentTarget.contains(target);
@@ -25907,10 +26004,11 @@ const _sfc_main$V = defineComponent({
25907
26004
  const model = {};
25908
26005
  model[props.prop] = fieldValue.value;
25909
26006
  validator.validate(model, { firstFields: true }, (errors, fields) => {
26007
+ var _a;
25910
26008
  validateState.value = !errors ? "success" : "error";
25911
26009
  validateMessage.value = errors ? errors[0].message || `${props.prop} is required` : "";
25912
26010
  callback(validateMessage.value, errors ? fields : {});
25913
- elForm.emit?.("validate", props.prop, !errors, validateMessage.value || null);
26011
+ (_a = elForm.emit) == null ? void 0 : _a.call(elForm, "validate", props.prop, !errors, validateMessage.value || null);
25914
26012
  });
25915
26013
  };
25916
26014
  const clearValidate = () => {
@@ -25955,7 +26053,8 @@ const _sfc_main$V = defineComponent({
25955
26053
  }).map((rule) => ({ ...rule }));
25956
26054
  };
25957
26055
  const evaluateValidationEnabled = () => {
25958
- isValidationEnabled.value = !!getRules()?.length;
26056
+ var _a;
26057
+ isValidationEnabled.value = !!((_a = getRules()) == null ? void 0 : _a.length);
25959
26058
  };
25960
26059
  const updateComputedLabelWidth = (width) => {
25961
26060
  computedLabelWidth.value = width ? `${width}px` : "";
@@ -25973,14 +26072,14 @@ const _sfc_main$V = defineComponent({
25973
26072
  });
25974
26073
  onMounted(() => {
25975
26074
  if (props.prop) {
25976
- elForm?.addField(elFormItem);
26075
+ elForm == null ? void 0 : elForm.addField(elFormItem);
25977
26076
  const value = fieldValue.value;
25978
26077
  initialValue = Array.isArray(value) ? [...value] : value;
25979
26078
  evaluateValidationEnabled();
25980
26079
  }
25981
26080
  });
25982
26081
  onBeforeUnmount(() => {
25983
- elForm?.removeField(elFormItem);
26082
+ elForm == null ? void 0 : elForm.removeField(elFormItem);
25984
26083
  });
25985
26084
  provide(elFormItemKey, elFormItem);
25986
26085
  const formItemClass = computed(() => [
@@ -26308,7 +26407,7 @@ const _sfc_main$U = defineComponent({
26308
26407
  watch(currentImg, () => {
26309
26408
  nextTick(() => {
26310
26409
  const $img = img.value;
26311
- if (!$img?.complete) {
26410
+ if (!($img == null ? void 0 : $img.complete)) {
26312
26411
  loading.value = true;
26313
26412
  }
26314
26413
  });
@@ -26318,8 +26417,9 @@ const _sfc_main$U = defineComponent({
26318
26417
  emit("switch", val);
26319
26418
  });
26320
26419
  onMounted(() => {
26420
+ var _a, _b;
26321
26421
  registerEventListener();
26322
- wrapper.value?.focus?.();
26422
+ (_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
26323
26423
  });
26324
26424
  return {
26325
26425
  index,
@@ -26626,6 +26726,7 @@ const _sfc_main$T = defineComponent({
26626
26726
  }
26627
26727
  const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200);
26628
26728
  async function addLazyLoadListener() {
26729
+ var _a;
26629
26730
  if (!isClient)
26630
26731
  return;
26631
26732
  await nextTick();
@@ -26633,7 +26734,7 @@ const _sfc_main$T = defineComponent({
26633
26734
  if (isHtmlElement(scrollContainer)) {
26634
26735
  _scrollContainer.value = scrollContainer;
26635
26736
  } else if (isString$1(scrollContainer) && scrollContainer !== "") {
26636
- _scrollContainer.value = document.querySelector(scrollContainer) ?? void 0;
26737
+ _scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
26637
26738
  } else if (container.value) {
26638
26739
  _scrollContainer.value = getScrollContainer(container.value);
26639
26740
  }
@@ -26670,7 +26771,7 @@ const _sfc_main$T = defineComponent({
26670
26771
  showViewer.value = true;
26671
26772
  }
26672
26773
  function closeViewer() {
26673
- stopWheelListener?.();
26774
+ stopWheelListener == null ? void 0 : stopWheelListener();
26674
26775
  document.body.style.overflow = prevOverflow;
26675
26776
  showViewer.value = false;
26676
26777
  emit("close");
@@ -26916,6 +27017,7 @@ const _sfc_main$S = defineComponent({
26916
27017
  setCurrentValue(newVal);
26917
27018
  };
26918
27019
  const setCurrentValue = (newVal) => {
27020
+ var _a;
26919
27021
  const oldVal = data.currentValue;
26920
27022
  if (typeof newVal === "number" && props.precision !== void 0) {
26921
27023
  newVal = toPrecision(newVal, props.precision);
@@ -26933,7 +27035,7 @@ const _sfc_main$S = defineComponent({
26933
27035
  emit("update:modelValue", newVal);
26934
27036
  emit("input", newVal);
26935
27037
  emit("change", newVal, oldVal);
26936
- formItem?.validate?.("change");
27038
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
26937
27039
  data.currentValue = newVal;
26938
27040
  };
26939
27041
  const handleInput = (value) => {
@@ -26947,17 +27049,20 @@ const _sfc_main$S = defineComponent({
26947
27049
  data.userInput = null;
26948
27050
  };
26949
27051
  const focus = () => {
26950
- input.value?.focus?.();
27052
+ var _a, _b;
27053
+ (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
26951
27054
  };
26952
27055
  const blur = () => {
26953
- input.value?.blur?.();
27056
+ var _a, _b;
27057
+ (_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
26954
27058
  };
26955
27059
  const handleFocus = (event) => {
26956
27060
  emit("focus", event);
26957
27061
  };
26958
27062
  const handleBlur = (event) => {
27063
+ var _a;
26959
27064
  emit("blur", event);
26960
- formItem?.validate?.("blur");
27065
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
26961
27066
  };
26962
27067
  watch(() => props.modelValue, (value) => {
26963
27068
  let newVal = Number(value);
@@ -26986,7 +27091,8 @@ const _sfc_main$S = defineComponent({
26986
27091
  data.userInput = null;
26987
27092
  }, { immediate: true });
26988
27093
  onMounted(() => {
26989
- const innerInput = input.value?.input;
27094
+ var _a;
27095
+ const innerInput = (_a = input.value) == null ? void 0 : _a.input;
26990
27096
  innerInput.setAttribute("role", "spinbutton");
26991
27097
  innerInput.setAttribute("aria-valuemax", String(props.max));
26992
27098
  innerInput.setAttribute("aria-valuemin", String(props.min));
@@ -27001,7 +27107,8 @@ const _sfc_main$S = defineComponent({
27001
27107
  }
27002
27108
  });
27003
27109
  onUpdated(() => {
27004
- const innerInput = input.value?.input;
27110
+ var _a;
27111
+ const innerInput = (_a = input.value) == null ? void 0 : _a.input;
27005
27112
  innerInput.setAttribute("aria-valuenow", data.currentValue);
27006
27113
  });
27007
27114
  return {
@@ -28477,7 +28584,8 @@ const _sfc_main$J = defineComponent({
28477
28584
  const isFitInputWidth = computed(() => select.props.fitInputWidth);
28478
28585
  const minWidth = ref("");
28479
28586
  function updateMinWidth() {
28480
- minWidth.value = `${select.selectWrapper?.getBoundingClientRect().width}px`;
28587
+ var _a;
28588
+ minWidth.value = `${(_a = select.selectWrapper) == null ? void 0 : _a.getBoundingClientRect().width}px`;
28481
28589
  }
28482
28590
  onMounted(() => {
28483
28591
  updateMinWidth();
@@ -29401,7 +29509,8 @@ const _sfc_main$I = defineComponent({
29401
29509
  ctx.emit(UPDATE_MODEL_EVENT, "");
29402
29510
  }
29403
29511
  const popperPaneRef = computed(() => {
29404
- return tooltipRef.value?.popperRef?.contentRef;
29512
+ var _a, _b;
29513
+ return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
29405
29514
  });
29406
29515
  return {
29407
29516
  tagInMultiLine,
@@ -29746,9 +29855,10 @@ const _sfc_main$H = defineComponent({
29746
29855
  const children2 = [];
29747
29856
  if (Array.isArray(node.children)) {
29748
29857
  node.children.forEach((child) => {
29858
+ var _a;
29749
29859
  if (child.type && child.type.name === "ElOption" && child.component && child.component.proxy) {
29750
29860
  children2.push(child.component.proxy);
29751
- } else if (child.children?.length) {
29861
+ } else if ((_a = child.children) == null ? void 0 : _a.length) {
29752
29862
  children2.push(...flattedChildren(child));
29753
29863
  }
29754
29864
  });
@@ -29830,9 +29940,10 @@ const _sfc_main$G = defineComponent({
29830
29940
  });
29831
29941
  const innerPagesizes = computed(() => props.pageSizes);
29832
29942
  function handleChange(val) {
29943
+ var _a;
29833
29944
  if (val !== innerPageSize.value) {
29834
29945
  innerPageSize.value = val;
29835
- pagination.handleSizeChange?.(Number(val));
29946
+ (_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
29836
29947
  }
29837
29948
  }
29838
29949
  return {
@@ -29879,13 +29990,16 @@ const _sfc_main$F = defineComponent({
29879
29990
  const { t } = useLocale();
29880
29991
  const { pageCount, disabled, currentPage, changeEvent } = usePagination();
29881
29992
  const userInput = ref();
29882
- const innerValue = computed(() => userInput.value ?? currentPage?.value);
29993
+ const innerValue = computed(() => {
29994
+ var _a;
29995
+ return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
29996
+ });
29883
29997
  function handleInput(val) {
29884
29998
  userInput.value = +val;
29885
29999
  }
29886
30000
  function handleChange(val) {
29887
30001
  val = Math.trunc(+val);
29888
- changeEvent?.(+val);
30002
+ changeEvent == null ? void 0 : changeEvent(+val);
29889
30003
  userInput.value = void 0;
29890
30004
  }
29891
30005
  return {
@@ -30420,17 +30534,20 @@ const _sfc_main$C = defineComponent({
30420
30534
  const { t } = useLocale();
30421
30535
  const tooltipRef = ref();
30422
30536
  const hidePopper = () => {
30423
- unref(tooltipRef)?.onClose?.();
30537
+ var _a, _b;
30538
+ (_b = (_a = unref(tooltipRef)) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
30424
30539
  };
30425
30540
  const handleCallback = () => {
30426
30541
  hidePopper();
30427
30542
  };
30428
30543
  const confirm = (e) => {
30429
- props.onConfirm?.(e);
30544
+ var _a;
30545
+ (_a = props.onConfirm) == null ? void 0 : _a.call(props, e);
30430
30546
  handleCallback();
30431
30547
  };
30432
30548
  const cancel = (e) => {
30433
- props.onCancel?.(e);
30549
+ var _a;
30550
+ (_a = props.onCancel) == null ? void 0 : _a.call(props, e);
30434
30551
  handleCallback();
30435
30552
  };
30436
30553
  const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
@@ -30546,7 +30663,8 @@ const _sfc_main$B = defineComponent({
30546
30663
  setup(props) {
30547
30664
  const tooltipRef = ref(null);
30548
30665
  const popperRef = computed(() => {
30549
- return unref(tooltipRef)?.popperRef;
30666
+ var _a;
30667
+ return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
30550
30668
  });
30551
30669
  const width = computed(() => {
30552
30670
  if (isString$1(props.width)) {
@@ -30570,7 +30688,8 @@ const _sfc_main$B = defineComponent({
30570
30688
  ];
30571
30689
  });
30572
30690
  const hide = () => {
30573
- tooltipRef.value?.hide();
30691
+ var _a;
30692
+ (_a = tooltipRef.value) == null ? void 0 : _a.hide();
30574
30693
  };
30575
30694
  return {
30576
30695
  kls,
@@ -30783,6 +30902,7 @@ const _sfc_main$A = defineComponent({
30783
30902
  });
30784
30903
  const content = computed(() => props.format(props.percentage));
30785
30904
  const getCurrentColor = (percentage) => {
30905
+ var _a;
30786
30906
  const { color } = props;
30787
30907
  if (typeof color === "function") {
30788
30908
  return color(percentage);
@@ -30804,7 +30924,7 @@ const _sfc_main$A = defineComponent({
30804
30924
  if (color2.percentage > percentage)
30805
30925
  return color2.color;
30806
30926
  }
30807
- return colors[colors.length - 1]?.color;
30927
+ return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
30808
30928
  }
30809
30929
  };
30810
30930
  const slotData = computed(() => {
@@ -33354,6 +33474,7 @@ const _sfc_main$v = defineComponent({
33354
33474
  };
33355
33475
  },
33356
33476
  render(_ctx, _cache) {
33477
+ var _a;
33357
33478
  const {
33358
33479
  $slots,
33359
33480
  data,
@@ -33380,7 +33501,7 @@ const _sfc_main$v = defineComponent({
33380
33501
  style: {
33381
33502
  width: `${width}px`
33382
33503
  }
33383
- }, $slots.empty?.());
33504
+ }, (_a = $slots.empty) == null ? void 0 : _a.call($slots));
33384
33505
  }
33385
33506
  const ListItem = withCtx((scoped) => {
33386
33507
  const { index, data: data2 } = scoped;
@@ -34255,67 +34376,49 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
34255
34376
  onShow: _ctx.handleMenuEnter,
34256
34377
  onHide: _cache[23] || (_cache[23] = ($event) => _ctx.states.inputValue = _ctx.states.displayInputValue)
34257
34378
  }, {
34258
- default: withCtx(() => [
34259
- createElementVNode("div", {
34260
- ref: "selectionRef",
34261
- class: normalizeClass(["el-select-v2__wrapper", {
34262
- "is-focused": _ctx.states.isComposing,
34263
- "is-hovering": _ctx.states.comboBoxHovering,
34264
- "is-filterable": _ctx.filterable,
34265
- "is-disabled": _ctx.disabled
34266
- }])
34267
- }, [
34268
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
34269
- renderSlot(_ctx.$slots, "prefix")
34270
- ])) : createCommentVNode("v-if", true),
34271
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
34272
- _ctx.collapseTags && _ctx.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
34273
- createVNode(_component_el_tag, {
34274
- closable: !_ctx.selectDisabled && !_ctx.states.cachedOptions[0]?.disable,
34275
- size: _ctx.collapseTagSize,
34276
- type: "info",
34277
- "disable-transitions": "",
34278
- onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
34279
- }, {
34280
- default: withCtx(() => [
34281
- createElementVNode("span", {
34282
- class: "el-select-v2__tags-text",
34283
- style: normalizeStyle({
34284
- maxWidth: `${_ctx.tagMaxWidth}px`
34285
- })
34286
- }, toDisplayString(_ctx.states.cachedOptions[0]?.label), 5)
34287
- ]),
34288
- _: 1
34289
- }, 8, ["closable", "size"]),
34290
- _ctx.modelValue.length > 1 ? (openBlock(), createBlock(_component_el_tag, {
34291
- key: 0,
34292
- closable: false,
34293
- size: _ctx.collapseTagSize,
34294
- type: "info",
34295
- "disable-transitions": ""
34296
- }, {
34297
- default: withCtx(() => [
34298
- createElementVNode("span", {
34299
- class: "el-select-v2__tags-text",
34300
- style: normalizeStyle({
34301
- maxWidth: `${_ctx.tagMaxWidth}px`
34302
- })
34303
- }, "+ " + toDisplayString(_ctx.modelValue.length - 1), 5)
34304
- ]),
34305
- _: 1
34306
- }, 8, ["size"])) : createCommentVNode("v-if", true)
34307
- ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.states.cachedOptions, (selected, idx) => {
34308
- return openBlock(), createElementBlock("div", {
34309
- key: idx,
34310
- class: "el-select-v2__selected-item"
34311
- }, [
34312
- (openBlock(), createBlock(_component_el_tag, {
34313
- key: _ctx.getValueKey(selected),
34314
- closable: !_ctx.selectDisabled && !selected.disabled,
34379
+ default: withCtx(() => {
34380
+ var _a;
34381
+ return [
34382
+ createElementVNode("div", {
34383
+ ref: "selectionRef",
34384
+ class: normalizeClass(["el-select-v2__wrapper", {
34385
+ "is-focused": _ctx.states.isComposing,
34386
+ "is-hovering": _ctx.states.comboBoxHovering,
34387
+ "is-filterable": _ctx.filterable,
34388
+ "is-disabled": _ctx.disabled
34389
+ }])
34390
+ }, [
34391
+ _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
34392
+ renderSlot(_ctx.$slots, "prefix")
34393
+ ])) : createCommentVNode("v-if", true),
34394
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
34395
+ _ctx.collapseTags && _ctx.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
34396
+ createVNode(_component_el_tag, {
34397
+ closable: !_ctx.selectDisabled && !((_a = _ctx.states.cachedOptions[0]) == null ? void 0 : _a.disable),
34315
34398
  size: _ctx.collapseTagSize,
34316
34399
  type: "info",
34317
34400
  "disable-transitions": "",
34318
- onClose: ($event) => _ctx.deleteTag($event, selected)
34401
+ onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
34402
+ }, {
34403
+ default: withCtx(() => {
34404
+ var _a2;
34405
+ return [
34406
+ createElementVNode("span", {
34407
+ class: "el-select-v2__tags-text",
34408
+ style: normalizeStyle({
34409
+ maxWidth: `${_ctx.tagMaxWidth}px`
34410
+ })
34411
+ }, toDisplayString((_a2 = _ctx.states.cachedOptions[0]) == null ? void 0 : _a2.label), 5)
34412
+ ];
34413
+ }),
34414
+ _: 1
34415
+ }, 8, ["closable", "size"]),
34416
+ _ctx.modelValue.length > 1 ? (openBlock(), createBlock(_component_el_tag, {
34417
+ key: 0,
34418
+ closable: false,
34419
+ size: _ctx.collapseTagSize,
34420
+ type: "info",
34421
+ "disable-transitions": ""
34319
34422
  }, {
34320
34423
  default: withCtx(() => [
34321
34424
  createElementVNode("span", {
@@ -34323,141 +34426,165 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
34323
34426
  style: normalizeStyle({
34324
34427
  maxWidth: `${_ctx.tagMaxWidth}px`
34325
34428
  })
34326
- }, toDisplayString(_ctx.getLabel(selected)), 5)
34429
+ }, "+ " + toDisplayString(_ctx.modelValue.length - 1), 5)
34327
34430
  ]),
34328
- _: 2
34329
- }, 1032, ["closable", "size", "onClose"]))
34330
- ]);
34331
- }), 128)),
34332
- createElementVNode("div", {
34333
- class: "el-select-v2__selected-item el-select-v2__input-wrapper",
34334
- style: normalizeStyle(_ctx.inputWrapperStyle)
34335
- }, [
34336
- withDirectives(createElementVNode("input", {
34337
- id: _ctx.id,
34338
- ref: "inputRef",
34339
- autocomplete: _ctx.autocomplete,
34340
- "aria-autocomplete": "list",
34341
- "aria-haspopup": "listbox",
34342
- autocapitalize: "off",
34343
- "aria-expanded": _ctx.expanded,
34344
- "aria-labelledby": _ctx.label,
34345
- class: normalizeClass(["el-select-v2__combobox-input", [_ctx.selectSize ? `is-${_ctx.selectSize}` : ""]]),
34346
- disabled: _ctx.disabled,
34347
- role: "combobox",
34348
- readonly: !_ctx.filterable,
34349
- spellcheck: "false",
34350
- type: "text",
34351
- name: _ctx.name,
34352
- unselectable: _ctx.expanded ? "on" : void 0,
34353
- "onUpdate:modelValue": _cache[1] || (_cache[1] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args)),
34354
- onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
34355
- onInput: _cache[3] || (_cache[3] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
34356
- onCompositionstart: _cache[4] || (_cache[4] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
34357
- onCompositionupdate: _cache[5] || (_cache[5] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
34358
- onCompositionend: _cache[6] || (_cache[6] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
34359
- onKeydown: [
34360
- _cache[7] || (_cache[7] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
34361
- _cache[8] || (_cache[8] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
34362
- _cache[9] || (_cache[9] = withKeys(withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
34363
- _cache[10] || (_cache[10] = withKeys(withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"])),
34364
- _cache[11] || (_cache[11] = withKeys(withModifiers((...args) => _ctx.handleDel && _ctx.handleDel(...args), ["stop"]), ["delete"]))
34365
- ]
34366
- }, null, 42, _hoisted_4$6), [
34367
- [_directive_model_text, _ctx.states.displayInputValue]
34431
+ _: 1
34432
+ }, 8, ["size"])) : createCommentVNode("v-if", true)
34433
+ ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.states.cachedOptions, (selected, idx) => {
34434
+ return openBlock(), createElementBlock("div", {
34435
+ key: idx,
34436
+ class: "el-select-v2__selected-item"
34437
+ }, [
34438
+ (openBlock(), createBlock(_component_el_tag, {
34439
+ key: _ctx.getValueKey(selected),
34440
+ closable: !_ctx.selectDisabled && !selected.disabled,
34441
+ size: _ctx.collapseTagSize,
34442
+ type: "info",
34443
+ "disable-transitions": "",
34444
+ onClose: ($event) => _ctx.deleteTag($event, selected)
34445
+ }, {
34446
+ default: withCtx(() => [
34447
+ createElementVNode("span", {
34448
+ class: "el-select-v2__tags-text",
34449
+ style: normalizeStyle({
34450
+ maxWidth: `${_ctx.tagMaxWidth}px`
34451
+ })
34452
+ }, toDisplayString(_ctx.getLabel(selected)), 5)
34453
+ ]),
34454
+ _: 2
34455
+ }, 1032, ["closable", "size", "onClose"]))
34456
+ ]);
34457
+ }), 128)),
34458
+ createElementVNode("div", {
34459
+ class: "el-select-v2__selected-item el-select-v2__input-wrapper",
34460
+ style: normalizeStyle(_ctx.inputWrapperStyle)
34461
+ }, [
34462
+ withDirectives(createElementVNode("input", {
34463
+ id: _ctx.id,
34464
+ ref: "inputRef",
34465
+ autocomplete: _ctx.autocomplete,
34466
+ "aria-autocomplete": "list",
34467
+ "aria-haspopup": "listbox",
34468
+ autocapitalize: "off",
34469
+ "aria-expanded": _ctx.expanded,
34470
+ "aria-labelledby": _ctx.label,
34471
+ class: normalizeClass(["el-select-v2__combobox-input", [_ctx.selectSize ? `is-${_ctx.selectSize}` : ""]]),
34472
+ disabled: _ctx.disabled,
34473
+ role: "combobox",
34474
+ readonly: !_ctx.filterable,
34475
+ spellcheck: "false",
34476
+ type: "text",
34477
+ name: _ctx.name,
34478
+ unselectable: _ctx.expanded ? "on" : void 0,
34479
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args)),
34480
+ onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
34481
+ onInput: _cache[3] || (_cache[3] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
34482
+ onCompositionstart: _cache[4] || (_cache[4] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
34483
+ onCompositionupdate: _cache[5] || (_cache[5] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
34484
+ onCompositionend: _cache[6] || (_cache[6] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
34485
+ onKeydown: [
34486
+ _cache[7] || (_cache[7] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
34487
+ _cache[8] || (_cache[8] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
34488
+ _cache[9] || (_cache[9] = withKeys(withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
34489
+ _cache[10] || (_cache[10] = withKeys(withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"])),
34490
+ _cache[11] || (_cache[11] = withKeys(withModifiers((...args) => _ctx.handleDel && _ctx.handleDel(...args), ["stop"]), ["delete"]))
34491
+ ]
34492
+ }, null, 42, _hoisted_4$6), [
34493
+ [_directive_model_text, _ctx.states.displayInputValue]
34494
+ ]),
34495
+ _ctx.filterable ? (openBlock(), createElementBlock("span", {
34496
+ key: 0,
34497
+ ref: "calculatorRef",
34498
+ "aria-hidden": "true",
34499
+ class: "el-select-v2__input-calculator",
34500
+ textContent: toDisplayString(_ctx.states.displayInputValue)
34501
+ }, null, 8, _hoisted_5$4)) : createCommentVNode("v-if", true)
34502
+ ], 4)
34503
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
34504
+ createElementVNode("div", _hoisted_6$3, [
34505
+ withDirectives(createElementVNode("input", {
34506
+ id: _ctx.id,
34507
+ ref: "inputRef",
34508
+ "aria-autocomplete": "list",
34509
+ "aria-haspopup": "listbox",
34510
+ "aria-labelledby": _ctx.label,
34511
+ "aria-expanded": _ctx.expanded,
34512
+ autocapitalize: "off",
34513
+ autocomplete: _ctx.autocomplete,
34514
+ class: "el-select-v2__combobox-input",
34515
+ disabled: _ctx.disabled,
34516
+ name: _ctx.name,
34517
+ role: "combobox",
34518
+ readonly: !_ctx.filterable,
34519
+ spellcheck: "false",
34520
+ type: "text",
34521
+ unselectable: _ctx.expanded ? "on" : void 0,
34522
+ onCompositionstart: _cache[12] || (_cache[12] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
34523
+ onCompositionupdate: _cache[13] || (_cache[13] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
34524
+ onCompositionend: _cache[14] || (_cache[14] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
34525
+ onFocus: _cache[15] || (_cache[15] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
34526
+ onInput: _cache[16] || (_cache[16] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
34527
+ onKeydown: [
34528
+ _cache[17] || (_cache[17] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
34529
+ _cache[18] || (_cache[18] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
34530
+ _cache[19] || (_cache[19] = withKeys(withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
34531
+ _cache[20] || (_cache[20] = withKeys(withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"]))
34532
+ ],
34533
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args))
34534
+ }, null, 40, _hoisted_7$2), [
34535
+ [_directive_model_text, _ctx.states.displayInputValue]
34536
+ ])
34368
34537
  ]),
34369
34538
  _ctx.filterable ? (openBlock(), createElementBlock("span", {
34370
34539
  key: 0,
34371
34540
  ref: "calculatorRef",
34372
34541
  "aria-hidden": "true",
34373
- class: "el-select-v2__input-calculator",
34542
+ class: "el-select-v2__selected-item el-select-v2__input-calculator",
34374
34543
  textContent: toDisplayString(_ctx.states.displayInputValue)
34375
- }, null, 8, _hoisted_5$4)) : createCommentVNode("v-if", true)
34376
- ], 4)
34377
- ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
34378
- createElementVNode("div", _hoisted_6$3, [
34379
- withDirectives(createElementVNode("input", {
34380
- id: _ctx.id,
34381
- ref: "inputRef",
34382
- "aria-autocomplete": "list",
34383
- "aria-haspopup": "listbox",
34384
- "aria-labelledby": _ctx.label,
34385
- "aria-expanded": _ctx.expanded,
34386
- autocapitalize: "off",
34387
- autocomplete: _ctx.autocomplete,
34388
- class: "el-select-v2__combobox-input",
34389
- disabled: _ctx.disabled,
34390
- name: _ctx.name,
34391
- role: "combobox",
34392
- readonly: !_ctx.filterable,
34393
- spellcheck: "false",
34394
- type: "text",
34395
- unselectable: _ctx.expanded ? "on" : void 0,
34396
- onCompositionstart: _cache[12] || (_cache[12] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
34397
- onCompositionupdate: _cache[13] || (_cache[13] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
34398
- onCompositionend: _cache[14] || (_cache[14] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
34399
- onFocus: _cache[15] || (_cache[15] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
34400
- onInput: _cache[16] || (_cache[16] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
34401
- onKeydown: [
34402
- _cache[17] || (_cache[17] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
34403
- _cache[18] || (_cache[18] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
34404
- _cache[19] || (_cache[19] = withKeys(withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
34405
- _cache[20] || (_cache[20] = withKeys(withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"]))
34406
- ],
34407
- "onUpdate:modelValue": _cache[21] || (_cache[21] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args))
34408
- }, null, 40, _hoisted_7$2), [
34409
- [_directive_model_text, _ctx.states.displayInputValue]
34410
- ])
34411
- ]),
34412
- _ctx.filterable ? (openBlock(), createElementBlock("span", {
34413
- key: 0,
34414
- ref: "calculatorRef",
34415
- "aria-hidden": "true",
34416
- class: "el-select-v2__selected-item el-select-v2__input-calculator",
34417
- textContent: toDisplayString(_ctx.states.displayInputValue)
34418
- }, null, 8, _hoisted_8$2)) : createCommentVNode("v-if", true)
34419
- ], 64)),
34420
- _ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("span", {
34421
- key: 3,
34422
- class: normalizeClass({
34423
- "el-select-v2__placeholder": true,
34424
- "is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
34425
- })
34426
- }, toDisplayString(_ctx.currentPlaceholder), 3)) : createCommentVNode("v-if", true),
34427
- createElementVNode("span", _hoisted_9$1, [
34428
- _ctx.iconComponent ? withDirectives((openBlock(), createBlock(_component_el_icon, {
34429
- key: 0,
34430
- class: normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
34431
- }, {
34432
- default: withCtx(() => [
34433
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
34434
- ]),
34435
- _: 1
34436
- }, 8, ["class"])), [
34437
- [vShow, !_ctx.showClearBtn]
34438
- ]) : createCommentVNode("v-if", true),
34439
- _ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
34440
- key: 1,
34441
- class: "el-select-v2__caret el-input__icon",
34442
- onClick: withModifiers(_ctx.handleClear, ["prevent", "stop"])
34443
- }, {
34444
- default: withCtx(() => [
34445
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
34446
- ]),
34447
- _: 1
34448
- }, 8, ["onClick"])) : createCommentVNode("v-if", true),
34449
- _ctx.validateState && _ctx.validateIcon ? (openBlock(), createBlock(_component_el_icon, {
34450
- key: 2,
34451
- class: "el-input__icon el-input__validateIcon"
34452
- }, {
34453
- default: withCtx(() => [
34454
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
34455
- ]),
34456
- _: 1
34457
- })) : createCommentVNode("v-if", true)
34458
- ])
34459
- ], 2)
34460
- ]),
34544
+ }, null, 8, _hoisted_8$2)) : createCommentVNode("v-if", true)
34545
+ ], 64)),
34546
+ _ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("span", {
34547
+ key: 3,
34548
+ class: normalizeClass({
34549
+ "el-select-v2__placeholder": true,
34550
+ "is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
34551
+ })
34552
+ }, toDisplayString(_ctx.currentPlaceholder), 3)) : createCommentVNode("v-if", true),
34553
+ createElementVNode("span", _hoisted_9$1, [
34554
+ _ctx.iconComponent ? withDirectives((openBlock(), createBlock(_component_el_icon, {
34555
+ key: 0,
34556
+ class: normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
34557
+ }, {
34558
+ default: withCtx(() => [
34559
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
34560
+ ]),
34561
+ _: 1
34562
+ }, 8, ["class"])), [
34563
+ [vShow, !_ctx.showClearBtn]
34564
+ ]) : createCommentVNode("v-if", true),
34565
+ _ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
34566
+ key: 1,
34567
+ class: "el-select-v2__caret el-input__icon",
34568
+ onClick: withModifiers(_ctx.handleClear, ["prevent", "stop"])
34569
+ }, {
34570
+ default: withCtx(() => [
34571
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
34572
+ ]),
34573
+ _: 1
34574
+ }, 8, ["onClick"])) : createCommentVNode("v-if", true),
34575
+ _ctx.validateState && _ctx.validateIcon ? (openBlock(), createBlock(_component_el_icon, {
34576
+ key: 2,
34577
+ class: "el-input__icon el-input__validateIcon"
34578
+ }, {
34579
+ default: withCtx(() => [
34580
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
34581
+ ]),
34582
+ _: 1
34583
+ })) : createCommentVNode("v-if", true)
34584
+ ])
34585
+ ], 2)
34586
+ ];
34587
+ }),
34461
34588
  content: withCtx(() => [
34462
34589
  createVNode(_component_el_select_menu, {
34463
34590
  ref: "menuRef",
@@ -34921,9 +35048,10 @@ const _sfc_main$p = defineComponent({
34921
35048
  };
34922
35049
  },
34923
35050
  render() {
35051
+ var _a;
34924
35052
  return h$1("div", {
34925
35053
  class: "el-slider__marks-text",
34926
- style: this.mark?.style
35054
+ style: (_a = this.mark) == null ? void 0 : _a.style
34927
35055
  }, this.label);
34928
35056
  }
34929
35057
  });
@@ -35255,6 +35383,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
35255
35383
  }
35256
35384
  };
35257
35385
  const setValues = () => {
35386
+ var _a, _b;
35258
35387
  if (props.min > props.max) {
35259
35388
  throwError("Slider", "min should not be greater than max.");
35260
35389
  return;
@@ -35273,7 +35402,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
35273
35402
  initData.firstValue = val[0];
35274
35403
  initData.secondValue = val[1];
35275
35404
  if (valueChanged()) {
35276
- elFormItem.validate?.("change");
35405
+ (_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
35277
35406
  initData.oldValue = val.slice();
35278
35407
  }
35279
35408
  }
@@ -35285,7 +35414,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
35285
35414
  } else {
35286
35415
  initData.firstValue = val;
35287
35416
  if (valueChanged()) {
35288
- elFormItem.validate?.("change");
35417
+ (_b = elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change");
35289
35418
  initData.oldValue = val;
35290
35419
  }
35291
35420
  }
@@ -35768,7 +35897,8 @@ const _sfc_main$l = defineComponent({
35768
35897
  return parent.steps.value.length;
35769
35898
  });
35770
35899
  const isLast = computed(() => {
35771
- return parent.steps.value[stepsCount.value - 1]?.uid === currentInstance.uid;
35900
+ var _a;
35901
+ return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === currentInstance.uid;
35772
35902
  });
35773
35903
  const space = computed(() => {
35774
35904
  return isSimple.value ? "" : parent.props.space;
@@ -36045,12 +36175,13 @@ const _sfc_main$k = defineComponent({
36045
36175
  emit(INPUT_EVENT, props.inactiveValue);
36046
36176
  }
36047
36177
  watch(checked, () => {
36178
+ var _a;
36048
36179
  input.value.checked = checked.value;
36049
36180
  if (props.activeColor || props.inactiveColor) {
36050
36181
  setBackgroundColor();
36051
36182
  }
36052
36183
  if (props.validateEvent) {
36053
- formItem?.validate?.("change");
36184
+ (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
36054
36185
  }
36055
36186
  });
36056
36187
  const handleChange = () => {
@@ -36097,7 +36228,8 @@ const _sfc_main$k = defineComponent({
36097
36228
  coreEl.children[0].style.color = newColor;
36098
36229
  };
36099
36230
  const focus = () => {
36100
- input.value?.focus?.();
36231
+ var _a, _b;
36232
+ (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
36101
36233
  };
36102
36234
  onMounted(() => {
36103
36235
  if (props.activeColor || props.inactiveColor || props.borderColor) {
@@ -37837,7 +37969,7 @@ const _sfc_main$j = defineComponent({
37837
37969
  const instance = getCurrentInstance();
37838
37970
  const { t } = useLocale();
37839
37971
  const ns = useNamespace("table-filter");
37840
- const parent = instance?.parent;
37972
+ const parent = instance == null ? void 0 : instance.parent;
37841
37973
  if (!parent.filterPanels.value[props.column.id]) {
37842
37974
  parent.filterPanels.value[props.column.id] = instance;
37843
37975
  }
@@ -37847,7 +37979,10 @@ const _sfc_main$j = defineComponent({
37847
37979
  return props.column && props.column.filters;
37848
37980
  });
37849
37981
  const filterValue = computed({
37850
- get: () => (props.column?.filteredValue || [])[0],
37982
+ get: () => {
37983
+ var _a;
37984
+ return (((_a = props.column) == null ? void 0 : _a.filteredValue) || [])[0];
37985
+ },
37851
37986
  set: (value) => {
37852
37987
  if (filteredValue.value) {
37853
37988
  if (typeof value !== "undefined" && value !== null) {
@@ -37923,7 +38058,8 @@ const _sfc_main$j = defineComponent({
37923
38058
  immediate: true
37924
38059
  });
37925
38060
  const popperPaneRef = computed(() => {
37926
- return tooltip.value?.popperRef?.contentRef;
38061
+ var _a, _b;
38062
+ return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
37927
38063
  });
37928
38064
  return {
37929
38065
  tooltipVisible,
@@ -40514,7 +40650,8 @@ const _sfc_main$h = defineComponent({
40514
40650
  const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
40515
40651
  const sizeDir = sizeName === "width" ? "x" : "y";
40516
40652
  props.tabs.every((tab) => {
40517
- const $el = instance.parent?.refs?.[`tab-${tab.paneName}`];
40653
+ var _a, _b, _c, _d;
40654
+ const $el = (_b = (_a = instance.parent) == null ? void 0 : _a.refs) == null ? void 0 : _b[`tab-${tab.paneName}`];
40518
40655
  if (!$el)
40519
40656
  return false;
40520
40657
  if (!tab.active) {
@@ -40522,7 +40659,7 @@ const _sfc_main$h = defineComponent({
40522
40659
  }
40523
40660
  tabSize = $el[`client${capitalize(sizeName)}`];
40524
40661
  const position = sizeDir === "x" ? "left" : "top";
40525
- offset = $el.getBoundingClientRect()[position] - ($el.parentElement?.getBoundingClientRect()[position] ?? 0);
40662
+ offset = $el.getBoundingClientRect()[position] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c.getBoundingClientRect()[position]) != null ? _d : 0);
40526
40663
  const tabStyles = window.getComputedStyle($el);
40527
40664
  if (sizeName === "width") {
40528
40665
  if (props.tabs.length > 1) {
@@ -41222,10 +41359,12 @@ const _sfc_main$f = defineComponent({
41222
41359
  return result;
41223
41360
  });
41224
41361
  const blur = () => {
41225
- select.value?.blur?.();
41362
+ var _a, _b;
41363
+ (_b = (_a = select.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
41226
41364
  };
41227
41365
  const focus = () => {
41228
- select.value?.focus?.();
41366
+ var _a, _b;
41367
+ (_b = (_a = select.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
41229
41368
  };
41230
41369
  return {
41231
41370
  select,
@@ -41828,7 +41967,8 @@ const _sfc_main$c = defineComponent({
41828
41967
  const rightPanelTitle = computed(() => props.titles[1] || t("el.transfer.titles.1"));
41829
41968
  const panelFilterPlaceholder = computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
41830
41969
  watch(() => props.modelValue, () => {
41831
- elFormItem.validate?.("change");
41970
+ var _a;
41971
+ (_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
41832
41972
  });
41833
41973
  const optionRender = computed(() => (option) => {
41834
41974
  if (props.renderContent)
@@ -43519,6 +43659,7 @@ const _hoisted_3$4 = {
43519
43659
  class: "el-tree__drop-indicator"
43520
43660
  };
43521
43661
  function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
43662
+ var _a;
43522
43663
  const _component_el_tree_node = resolveComponent("el-tree-node");
43523
43664
  return openBlock(), createElementBlock("div", {
43524
43665
  ref: "el$",
@@ -43543,7 +43684,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
43543
43684
  }, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]);
43544
43685
  }), 128)),
43545
43686
  _ctx.isEmpty ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
43546
- createElementVNode("span", _hoisted_2$5, toDisplayString(_ctx.emptyText ?? _ctx.t("el.tree.emptyText")), 1)
43687
+ createElementVNode("span", _hoisted_2$5, toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 1)
43547
43688
  ])) : createCommentVNode("v-if", true),
43548
43689
  withDirectives(createElementVNode("div", _hoisted_3$4, null, 512), [
43549
43690
  [vShow, _ctx.dragState.showDropIndicator]
@@ -44218,10 +44359,12 @@ const _sfc_main$8 = defineComponent({
44218
44359
  setup(props, { emit }) {
44219
44360
  const tree = inject(ROOT_TREE_INJECTION_KEY);
44220
44361
  const indent = computed(() => {
44221
- return tree?.props.indent ?? 16;
44362
+ var _a;
44363
+ return (_a = tree == null ? void 0 : tree.props.indent) != null ? _a : 16;
44222
44364
  });
44223
44365
  const icon = computed(() => {
44224
- return tree?.props.icon ?? DEFAULT_ICON;
44366
+ var _a;
44367
+ return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : DEFAULT_ICON;
44225
44368
  });
44226
44369
  const handleClick = (e) => {
44227
44370
  emit("click", props.node, e);
@@ -44233,11 +44376,12 @@ const _sfc_main$8 = defineComponent({
44233
44376
  emit("check", props.node, value);
44234
44377
  };
44235
44378
  const handleContextMenu = (event) => {
44236
- if (tree?.instance?.vnode?.props?.["onNodeContextmenu"]) {
44379
+ var _a, _b, _c, _d;
44380
+ if ((_c = (_b = (_a = tree == null ? void 0 : tree.instance) == null ? void 0 : _a.vnode) == null ? void 0 : _b.props) == null ? void 0 : _c["onNodeContextmenu"]) {
44237
44381
  event.stopPropagation();
44238
44382
  event.preventDefault();
44239
44383
  }
44240
- tree?.ctx.emit(NODE_CONTEXTMENU, event, props.node?.data, props.node);
44384
+ tree == null ? void 0 : tree.ctx.emit(NODE_CONTEXTMENU, event, (_d = props.node) == null ? void 0 : _d.data, props.node);
44241
44385
  };
44242
44386
  return {
44243
44387
  indent,
@@ -44251,6 +44395,7 @@ const _sfc_main$8 = defineComponent({
44251
44395
  });
44252
44396
  const _hoisted_1$6 = ["aria-expanded", "aria-disabled", "aria-checked", "data-key"];
44253
44397
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
44398
+ var _a, _b, _c;
44254
44399
  const _component_el_icon = resolveComponent("el-icon");
44255
44400
  const _component_el_checkbox = resolveComponent("el-checkbox");
44256
44401
  const _component_el_node_content = resolveComponent("el-node-content");
@@ -44267,7 +44412,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
44267
44412
  "aria-expanded": _ctx.expanded,
44268
44413
  "aria-disabled": _ctx.disabled,
44269
44414
  "aria-checked": _ctx.checked,
44270
- "data-key": _ctx.node?.key,
44415
+ "data-key": (_a = _ctx.node) == null ? void 0 : _a.key,
44271
44416
  onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
44272
44417
  onContextmenu: _cache[2] || (_cache[2] = (...args) => _ctx.handleContextMenu && _ctx.handleContextMenu(...args))
44273
44418
  }, [
@@ -44279,9 +44424,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
44279
44424
  key: 0,
44280
44425
  class: normalizeClass([
44281
44426
  {
44282
- "is-leaf": _ctx.node?.isLeaf,
44427
+ "is-leaf": (_b = _ctx.node) == null ? void 0 : _b.isLeaf,
44283
44428
  "is-hidden": _ctx.hiddenExpandIcon,
44284
- expanded: !_ctx.node?.isLeaf && _ctx.expanded
44429
+ expanded: !((_c = _ctx.node) == null ? void 0 : _c.isLeaf) && _ctx.expanded
44285
44430
  },
44286
44431
  "el-tree-node__expand-icon"
44287
44432
  ]),
@@ -44384,6 +44529,7 @@ const _hoisted_1$5 = {
44384
44529
  };
44385
44530
  const _hoisted_2$4 = { class: "el-tree__empty-text" };
44386
44531
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
44532
+ var _a;
44387
44533
  const _component_el_tree_node = resolveComponent("el-tree-node");
44388
44534
  const _component_fixed_size_list = resolveComponent("fixed-size-list");
44389
44535
  return openBlock(), createElementBlock("div", {
@@ -44420,7 +44566,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
44420
44566
  ]),
44421
44567
  _: 1
44422
44568
  }, 8, ["data", "total", "height", "item-size", "perf-mode"])) : (openBlock(), createElementBlock("div", _hoisted_1$5, [
44423
- createElementVNode("span", _hoisted_2$4, toDisplayString(_ctx.emptyText ?? _ctx.t("el.tree.emptyText")), 1)
44569
+ createElementVNode("span", _hoisted_2$4, toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 1)
44424
44570
  ]))
44425
44571
  ], 2);
44426
44572
  }
@@ -44707,9 +44853,10 @@ const _sfc_main$5 = defineComponent({
44707
44853
  const uploader = inject("uploader", {});
44708
44854
  const dragover = ref(false);
44709
44855
  function onDrop(e) {
44856
+ var _a;
44710
44857
  if (props.disabled || !uploader)
44711
44858
  return;
44712
- const accept = uploader.props?.accept || uploader.accept;
44859
+ const accept = ((_a = uploader.props) == null ? void 0 : _a.accept) || uploader.accept;
44713
44860
  dragover.value = false;
44714
44861
  if (!accept) {
44715
44862
  emit("file", e.dataTransfer.files);
@@ -46236,6 +46383,7 @@ const _sfc_main$3 = defineComponent({
46236
46383
  };
46237
46384
  },
46238
46385
  render() {
46386
+ var _a, _b;
46239
46387
  let uploadList;
46240
46388
  if (this.showFileList) {
46241
46389
  uploadList = h$1(UploadList, {
@@ -46283,12 +46431,12 @@ const _sfc_main$3 = defineComponent({
46283
46431
  };
46284
46432
  const trigger = this.$slots.trigger || this.$slots.default;
46285
46433
  const uploadComponent = h$1(Upload$1, uploadData, {
46286
- default: () => trigger?.()
46434
+ default: () => trigger == null ? void 0 : trigger()
46287
46435
  });
46288
46436
  return h$1("div", [
46289
46437
  this.listType === "picture-card" ? uploadList : null,
46290
46438
  this.$slots.trigger ? [uploadComponent, this.$slots.default()] : uploadComponent,
46291
- this.$slots.tip?.(),
46439
+ (_b = (_a = this.$slots).tip) == null ? void 0 : _b.call(_a),
46292
46440
  this.listType !== "picture-card" ? uploadList : null
46293
46441
  ]);
46294
46442
  }
@@ -46893,7 +47041,7 @@ const _sfc_main$2 = defineComponent({
46893
47041
  }
46894
47042
  }
46895
47043
  function clearTimer() {
46896
- stopTimer?.();
47044
+ stopTimer == null ? void 0 : stopTimer();
46897
47045
  }
46898
47046
  function close() {
46899
47047
  visible.value = false;
@@ -47221,7 +47369,8 @@ const _sfc_main$1 = defineComponent({
47221
47369
  if (val) {
47222
47370
  if (props.boxType === "alert" || props.boxType === "confirm") {
47223
47371
  nextTick().then(() => {
47224
- confirmRef.value?.$el?.focus?.();
47372
+ var _a, _b, _c;
47373
+ (_c = (_b = (_a = confirmRef.value) == null ? void 0 : _a.$el) == null ? void 0 : _b.focus) == null ? void 0 : _c.call(_b);
47225
47374
  });
47226
47375
  }
47227
47376
  state.zIndex = PopupManager.nextZIndex();
@@ -47270,12 +47419,13 @@ const _sfc_main$1 = defineComponent({
47270
47419
  }
47271
47420
  };
47272
47421
  const handleAction = (action) => {
47422
+ var _a;
47273
47423
  if (props.boxType === "prompt" && action === "confirm" && !validate()) {
47274
47424
  return;
47275
47425
  }
47276
47426
  state.action = action;
47277
47427
  if (state.beforeClose) {
47278
- state.beforeClose?.(action, state, doClose);
47428
+ (_a = state.beforeClose) == null ? void 0 : _a.call(state, action, state, doClose);
47279
47429
  } else {
47280
47430
  doClose();
47281
47431
  }
@@ -47757,7 +47907,7 @@ const _sfc_main = defineComponent({
47757
47907
  }
47758
47908
  }
47759
47909
  function clearTimer() {
47760
- timer?.();
47910
+ timer == null ? void 0 : timer();
47761
47911
  }
47762
47912
  function close() {
47763
47913
  visible.value = false;