@element-plus/nightly 0.0.20261011 → 0.0.20261013

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 (752) hide show
  1. package/dist/index.full.js +2 -2
  2. package/dist/index.full.min.js +2 -2
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +2 -2
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +2 -2
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/gl.js +1 -1
  88. package/dist/locale/gl.min.js +1 -1
  89. package/dist/locale/gl.min.mjs +1 -1
  90. package/dist/locale/gl.mjs +1 -1
  91. package/dist/locale/he.js +1 -1
  92. package/dist/locale/he.min.js +1 -1
  93. package/dist/locale/he.min.mjs +1 -1
  94. package/dist/locale/he.mjs +1 -1
  95. package/dist/locale/hi.js +1 -1
  96. package/dist/locale/hi.min.js +1 -1
  97. package/dist/locale/hi.min.mjs +1 -1
  98. package/dist/locale/hi.mjs +1 -1
  99. package/dist/locale/hr.js +1 -1
  100. package/dist/locale/hr.min.js +1 -1
  101. package/dist/locale/hr.min.mjs +1 -1
  102. package/dist/locale/hr.mjs +1 -1
  103. package/dist/locale/hu.js +1 -1
  104. package/dist/locale/hu.min.js +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 +1 -1
  108. package/dist/locale/hy-am.min.js +1 -1
  109. package/dist/locale/hy-am.min.mjs +1 -1
  110. package/dist/locale/hy-am.mjs +1 -1
  111. package/dist/locale/id.js +1 -1
  112. package/dist/locale/id.min.js +1 -1
  113. package/dist/locale/id.min.mjs +1 -1
  114. package/dist/locale/id.mjs +1 -1
  115. package/dist/locale/it.js +1 -1
  116. package/dist/locale/it.min.js +1 -1
  117. package/dist/locale/it.min.mjs +1 -1
  118. package/dist/locale/it.mjs +1 -1
  119. package/dist/locale/ja.js +1 -1
  120. package/dist/locale/ja.min.js +1 -1
  121. package/dist/locale/ja.min.mjs +1 -1
  122. package/dist/locale/ja.mjs +1 -1
  123. package/dist/locale/kk.js +1 -1
  124. package/dist/locale/kk.min.js +1 -1
  125. package/dist/locale/kk.min.mjs +1 -1
  126. package/dist/locale/kk.mjs +1 -1
  127. package/dist/locale/km.js +1 -1
  128. package/dist/locale/km.min.js +1 -1
  129. package/dist/locale/km.min.mjs +1 -1
  130. package/dist/locale/km.mjs +1 -1
  131. package/dist/locale/ko.js +1 -1
  132. package/dist/locale/ko.min.js +1 -1
  133. package/dist/locale/ko.min.mjs +1 -1
  134. package/dist/locale/ko.mjs +1 -1
  135. package/dist/locale/ku.js +1 -1
  136. package/dist/locale/ku.min.js +1 -1
  137. package/dist/locale/ku.min.mjs +1 -1
  138. package/dist/locale/ku.mjs +1 -1
  139. package/dist/locale/ky.js +1 -1
  140. package/dist/locale/ky.min.js +1 -1
  141. package/dist/locale/ky.min.mjs +1 -1
  142. package/dist/locale/ky.mjs +1 -1
  143. package/dist/locale/lo.js +1 -1
  144. package/dist/locale/lo.min.js +1 -1
  145. package/dist/locale/lo.min.mjs +1 -1
  146. package/dist/locale/lo.mjs +1 -1
  147. package/dist/locale/lt.js +1 -1
  148. package/dist/locale/lt.min.js +1 -1
  149. package/dist/locale/lt.min.mjs +1 -1
  150. package/dist/locale/lt.mjs +1 -1
  151. package/dist/locale/lv.js +1 -1
  152. package/dist/locale/lv.min.js +1 -1
  153. package/dist/locale/lv.min.mjs +1 -1
  154. package/dist/locale/lv.mjs +1 -1
  155. package/dist/locale/mg.js +1 -1
  156. package/dist/locale/mg.min.js +1 -1
  157. package/dist/locale/mg.min.mjs +1 -1
  158. package/dist/locale/mg.mjs +1 -1
  159. package/dist/locale/mn.js +1 -1
  160. package/dist/locale/mn.min.js +1 -1
  161. package/dist/locale/mn.min.mjs +1 -1
  162. package/dist/locale/mn.mjs +1 -1
  163. package/dist/locale/ms.js +1 -1
  164. package/dist/locale/ms.min.js +1 -1
  165. package/dist/locale/ms.min.mjs +1 -1
  166. package/dist/locale/ms.mjs +1 -1
  167. package/dist/locale/my.js +1 -1
  168. package/dist/locale/my.min.js +1 -1
  169. package/dist/locale/my.min.mjs +1 -1
  170. package/dist/locale/my.mjs +1 -1
  171. package/dist/locale/nb-no.js +1 -1
  172. package/dist/locale/nb-no.min.js +1 -1
  173. package/dist/locale/nb-no.min.mjs +1 -1
  174. package/dist/locale/nb-no.mjs +1 -1
  175. package/dist/locale/nl.js +1 -1
  176. package/dist/locale/nl.min.js +1 -1
  177. package/dist/locale/nl.min.mjs +1 -1
  178. package/dist/locale/nl.mjs +1 -1
  179. package/dist/locale/no.js +1 -1
  180. package/dist/locale/no.min.js +1 -1
  181. package/dist/locale/no.min.mjs +1 -1
  182. package/dist/locale/no.mjs +1 -1
  183. package/dist/locale/pa.js +1 -1
  184. package/dist/locale/pa.min.js +1 -1
  185. package/dist/locale/pa.min.mjs +1 -1
  186. package/dist/locale/pa.mjs +1 -1
  187. package/dist/locale/pl.js +1 -1
  188. package/dist/locale/pl.min.js +1 -1
  189. package/dist/locale/pl.min.mjs +1 -1
  190. package/dist/locale/pl.mjs +1 -1
  191. package/dist/locale/pt-br.js +1 -1
  192. package/dist/locale/pt-br.min.js +1 -1
  193. package/dist/locale/pt-br.min.mjs +1 -1
  194. package/dist/locale/pt-br.mjs +1 -1
  195. package/dist/locale/pt.js +1 -1
  196. package/dist/locale/pt.min.js +1 -1
  197. package/dist/locale/pt.min.mjs +1 -1
  198. package/dist/locale/pt.mjs +1 -1
  199. package/dist/locale/ro.js +1 -1
  200. package/dist/locale/ro.min.js +1 -1
  201. package/dist/locale/ro.min.mjs +1 -1
  202. package/dist/locale/ro.mjs +1 -1
  203. package/dist/locale/ru.js +1 -1
  204. package/dist/locale/ru.min.js +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 +1 -1
  208. package/dist/locale/sk.min.js +1 -1
  209. package/dist/locale/sk.min.mjs +1 -1
  210. package/dist/locale/sk.mjs +1 -1
  211. package/dist/locale/sl.js +1 -1
  212. package/dist/locale/sl.min.js +1 -1
  213. package/dist/locale/sl.min.mjs +1 -1
  214. package/dist/locale/sl.mjs +1 -1
  215. package/dist/locale/sr.js +1 -1
  216. package/dist/locale/sr.min.js +1 -1
  217. package/dist/locale/sr.min.mjs +1 -1
  218. package/dist/locale/sr.mjs +1 -1
  219. package/dist/locale/sv.js +1 -1
  220. package/dist/locale/sv.min.js +1 -1
  221. package/dist/locale/sv.min.mjs +1 -1
  222. package/dist/locale/sv.mjs +1 -1
  223. package/dist/locale/sw.js +1 -1
  224. package/dist/locale/sw.min.js +1 -1
  225. package/dist/locale/sw.min.mjs +1 -1
  226. package/dist/locale/sw.mjs +1 -1
  227. package/dist/locale/ta.js +1 -1
  228. package/dist/locale/ta.min.js +1 -1
  229. package/dist/locale/ta.min.mjs +1 -1
  230. package/dist/locale/ta.mjs +1 -1
  231. package/dist/locale/te.js +1 -1
  232. package/dist/locale/te.min.js +1 -1
  233. package/dist/locale/te.min.mjs +1 -1
  234. package/dist/locale/te.mjs +1 -1
  235. package/dist/locale/th.js +1 -1
  236. package/dist/locale/th.min.js +1 -1
  237. package/dist/locale/th.min.mjs +1 -1
  238. package/dist/locale/th.mjs +1 -1
  239. package/dist/locale/tk.js +1 -1
  240. package/dist/locale/tk.min.js +1 -1
  241. package/dist/locale/tk.min.mjs +1 -1
  242. package/dist/locale/tk.mjs +1 -1
  243. package/dist/locale/tr.js +1 -1
  244. package/dist/locale/tr.min.js +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 +1 -1
  248. package/dist/locale/ug-cn.min.js +1 -1
  249. package/dist/locale/ug-cn.min.mjs +1 -1
  250. package/dist/locale/ug-cn.mjs +1 -1
  251. package/dist/locale/uk.js +1 -1
  252. package/dist/locale/uk.min.js +1 -1
  253. package/dist/locale/uk.min.mjs +1 -1
  254. package/dist/locale/uk.mjs +1 -1
  255. package/dist/locale/uz-uz.js +1 -1
  256. package/dist/locale/uz-uz.min.js +1 -1
  257. package/dist/locale/uz-uz.min.mjs +1 -1
  258. package/dist/locale/uz-uz.mjs +1 -1
  259. package/dist/locale/vi.js +1 -1
  260. package/dist/locale/vi.min.js +1 -1
  261. package/dist/locale/vi.min.mjs +1 -1
  262. package/dist/locale/vi.mjs +1 -1
  263. package/dist/locale/zh-cn.js +1 -1
  264. package/dist/locale/zh-cn.min.js +1 -1
  265. package/dist/locale/zh-cn.min.mjs +1 -1
  266. package/dist/locale/zh-cn.mjs +1 -1
  267. package/dist/locale/zh-hk.js +1 -1
  268. package/dist/locale/zh-hk.min.js +1 -1
  269. package/dist/locale/zh-hk.min.mjs +1 -1
  270. package/dist/locale/zh-hk.mjs +1 -1
  271. package/dist/locale/zh-mo.js +1 -1
  272. package/dist/locale/zh-mo.min.js +1 -1
  273. package/dist/locale/zh-mo.min.mjs +1 -1
  274. package/dist/locale/zh-mo.mjs +1 -1
  275. package/dist/locale/zh-tw.js +1 -1
  276. package/dist/locale/zh-tw.min.js +1 -1
  277. package/dist/locale/zh-tw.min.mjs +1 -1
  278. package/dist/locale/zh-tw.mjs +1 -1
  279. package/es/component.mjs +3 -3
  280. package/es/components/affix/src/affix.vue.d.ts +2 -2
  281. package/es/components/alert/src/alert.d.ts +1 -1
  282. package/es/components/alert/src/alert.vue.d.ts +2 -2
  283. package/es/components/anchor/src/anchor.d.ts +1 -1
  284. package/es/components/anchor/src/anchor.vue.d.ts +2 -2
  285. package/es/components/autocomplete/src/autocomplete.d.ts +4 -4
  286. package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
  287. package/es/components/avatar/src/avatar-group.d.ts +1 -1
  288. package/es/components/avatar/src/avatar.d.ts +1 -1
  289. package/es/components/avatar/src/avatar.vue.d.ts +1 -1
  290. package/es/components/backtop/src/backtop.vue.d.ts +1 -1
  291. package/es/components/badge/src/badge.vue.d.ts +2 -2
  292. package/es/components/button/src/button-group.d.ts +2 -2
  293. package/es/components/button/src/button-group.vue.d.ts +2 -2
  294. package/es/components/button/src/button.d.ts +1 -1
  295. package/es/components/button/src/button.vue.d.ts +3 -3
  296. package/es/components/button/src/use-button.d.ts +1 -1
  297. package/es/components/calendar/src/select-controller.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  298. package/es/components/calendar/src/select-controller2.mjs.map +1 -1
  299. package/es/components/card/src/card.d.ts +1 -1
  300. package/es/components/card/src/card.vue.d.ts +3 -3
  301. package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
  302. package/es/components/carousel/src/carousel.d.ts +3 -3
  303. package/es/components/carousel/src/carousel.vue.d.ts +3 -3
  304. package/es/components/cascader/src/cascader.d.ts +2 -2
  305. package/es/components/cascader/src/cascader.vue.d.ts +16 -16
  306. package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +2 -2
  307. package/es/components/cascader-panel/src/index.vue.d.ts +4 -4
  308. package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs +1 -1
  309. package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
  310. package/es/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
  311. package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
  312. package/es/components/checkbox/src/checkbox-group.vue.d.ts +6 -6
  313. package/es/components/checkbox/src/checkbox.d.ts +8 -8
  314. package/es/components/checkbox/src/checkbox.vue.d.ts +6 -6
  315. package/es/components/col/src/col.vue.d.ts +1 -1
  316. package/es/components/collapse/src/collapse.d.ts +1 -1
  317. package/es/components/collapse/src/collapse.vue.d.ts +2 -2
  318. package/es/components/color-picker/src/color-picker.vue.d.ts +10 -10
  319. package/es/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.mjs +1 -1
  320. package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  321. package/es/components/config-provider/src/config-provider.d.ts +1 -1
  322. package/es/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.mjs +1 -1
  323. package/es/components/date-picker/src/date-picker.d.ts +15 -15
  324. package/es/components/date-picker/src/props.d.ts +2 -2
  325. package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  326. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +4 -4
  327. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.mjs +1 -1
  328. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +5 -5
  329. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +1 -1
  330. package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  331. package/es/components/date-picker-panel/src/date-picker-com/panel-quarter-range.vue.d.ts +1 -1
  332. package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
  333. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
  334. package/es/components/date-picker-panel/src/panel-utils.d.ts +150 -150
  335. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  336. package/es/components/descriptions/src/description-item.d.ts +19 -19
  337. package/es/components/descriptions/src/description.d.ts +1 -1
  338. package/es/components/descriptions/src/description.vue.d.ts +1 -1
  339. package/es/components/dialog/src/dialog.vue.d.ts +5 -5
  340. package/es/components/divider/src/divider.d.ts +2 -2
  341. package/es/components/divider/src/divider.vue.d.ts +2 -2
  342. package/es/components/drawer/src/drawer.vue.d.ts +5 -5
  343. package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  344. package/es/components/dropdown/src/dropdown.d.ts +4 -4
  345. package/es/components/dropdown/src/dropdown.vue.d.ts +74 -74
  346. package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  347. package/es/components/form/src/form-item.d.ts +2 -2
  348. package/es/components/form/src/form-item.vue.d.ts +2 -2
  349. package/es/components/form/src/form.d.ts +2 -2
  350. package/es/components/form/src/form.vue.d.ts +2 -2
  351. package/es/components/image/src/image.vue.d.ts +4 -4
  352. package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  353. package/es/components/index.mjs +6 -6
  354. package/es/components/input/src/input.d.ts +3 -3
  355. package/es/components/input/src/input.vue.d.ts +17 -17
  356. package/es/components/input-number/src/input-number.d.ts +3 -3
  357. package/es/components/input-number/src/input-number.vue.d.ts +11 -11
  358. package/es/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs +1 -1
  359. package/es/components/input-otp/src/input-otp.vue.d.ts +7 -7
  360. package/es/components/input-tag/src/input-tag.d.ts +1 -1
  361. package/es/components/input-tag/src/input-tag.vue.d.ts +9 -9
  362. package/es/components/link/src/link.d.ts +1 -1
  363. package/es/components/link/src/link.vue.d.ts +1 -1
  364. package/es/components/mention/src/mention.d.ts +3 -3
  365. package/es/components/mention/src/mention.vue.d.ts +3 -3
  366. package/es/components/menu/src/menu.d.ts +11 -11
  367. package/es/components/menu/src/menu.mjs +1 -1
  368. package/es/components/menu/src/sub-menu.d.ts +1 -1
  369. package/es/components/menu/src/utils/menu-item.mjs +1 -1
  370. package/es/components/menu/src/utils/submenu.mjs +1 -1
  371. package/es/components/message/src/message.d.ts +1 -1
  372. package/es/components/message/src/message.vue.d.ts +9 -9
  373. package/es/components/message-box/src/index.vue.d.ts +59 -59
  374. package/es/components/message-box/src/index.vue_vue_type_script_lang.mjs +1 -1
  375. package/es/components/notification/src/notification.d.ts +1 -1
  376. package/es/components/notification/src/notification.vue.d.ts +8 -8
  377. package/es/components/pagination/src/components/next.vue.d.ts +1 -1
  378. package/es/components/pagination/src/components/pager.vue.d.ts +1 -1
  379. package/es/components/pagination/src/components/sizes.vue.d.ts +2 -2
  380. package/es/components/pagination/src/pagination.d.ts +4 -4
  381. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  382. package/es/components/popconfirm/src/popconfirm.vue.d.ts +5 -5
  383. package/es/components/popover/src/popover.d.ts +22 -22
  384. package/es/components/popover/src/popover.vue.d.ts +9 -9
  385. package/es/components/popper/src/composables/use-content.d.ts +3 -3
  386. package/es/components/popper/src/composables/use-focus-trap.d.ts +1 -1
  387. package/es/components/popper/src/content.vue.d.ts +11 -11
  388. package/es/components/popper/src/popper.d.ts +2 -2
  389. package/es/components/popper/src/popper.vue.d.ts +1 -1
  390. package/es/components/progress/src/progress.d.ts +1 -1
  391. package/es/components/progress/src/progress.vue.d.ts +3 -3
  392. package/es/components/radio/src/radio-button.d.ts +3 -3
  393. package/es/components/radio/src/radio-button.vue.d.ts +3 -3
  394. package/es/components/radio/src/radio-group.vue.d.ts +8 -8
  395. package/es/components/radio/src/radio.d.ts +6 -6
  396. package/es/components/radio/src/radio.vue.d.ts +5 -5
  397. package/es/components/rate/src/rate.vue.d.ts +4 -4
  398. package/es/components/result/src/result.d.ts +1 -1
  399. package/es/components/result/src/result.vue.d.ts +1 -1
  400. package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
  401. package/es/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
  402. package/es/components/roving-focus-group/src/roving-focus-group.vue.d.ts +2 -2
  403. package/es/components/row/src/row.d.ts +1 -1
  404. package/es/components/row/src/row.vue.d.ts +1 -1
  405. package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
  406. package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  407. package/es/components/segmented/index.d.ts +4 -4
  408. package/es/components/segmented/src/segmented.d.ts +2 -2
  409. package/es/components/segmented/src/segmented.vue.d.ts +2 -2
  410. package/es/components/select/src/option.d.ts +2 -2
  411. package/es/components/select/src/option.vue.d.ts +5 -5
  412. package/es/components/select/src/select.d.ts +3 -3
  413. package/es/components/select/src/select.vue.d.ts +80 -80
  414. package/es/components/select/src/select.vue_vue_type_script_lang.mjs +1 -1
  415. package/es/components/select/src/useOption.d.ts +2 -2
  416. package/es/components/select/src/useSelect.d.ts +6 -6
  417. package/es/components/select-v2/src/defaults.d.ts +1 -1
  418. package/es/components/select-v2/src/select.vue.d.ts +64 -64
  419. package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs +1 -1
  420. package/es/components/select-v2/src/useSelect.d.ts +1 -1
  421. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  422. package/es/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
  423. package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
  424. package/es/components/slider/src/button.vue.d.ts +2 -2
  425. package/es/components/slider/src/slider.vue.d.ts +12 -12
  426. package/es/components/space/src/space.d.ts +5 -5
  427. package/es/components/splitter/src/split-bar.vue.d.ts +1 -1
  428. package/es/components/splitter/src/splitter.d.ts +1 -1
  429. package/es/components/splitter/src/splitter.vue.d.ts +2 -2
  430. package/es/components/statistic/src/statistic.vue.d.ts +1 -1
  431. package/es/components/steps/src/item.d.ts +1 -1
  432. package/es/components/steps/src/item.vue.d.ts +2 -2
  433. package/es/components/steps/src/steps.d.ts +3 -3
  434. package/es/components/steps/src/steps.vue.d.ts +1 -1
  435. package/es/components/switch/src/switch.vue.d.ts +4 -4
  436. package/es/components/table/src/filter-panel.vue.d.ts +76 -76
  437. package/es/components/table/src/store/index.mjs.map +1 -1
  438. package/es/components/table/src/table/defaults.d.ts +5 -5
  439. package/es/components/table/src/table-body/index.d.ts +1 -1
  440. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  441. package/es/components/table/src/table-body/td-wrapper.vue.d.ts +1 -1
  442. package/es/components/table/src/table-column/defaults.d.ts +2 -2
  443. package/es/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  444. package/es/components/table/src/table-column/index2.mjs.map +1 -1
  445. package/es/components/table/src/table-footer/index.d.ts +1 -1
  446. package/es/components/table/src/table-header/index.d.ts +18 -18
  447. package/es/components/table/src/table.vue.d.ts +3 -3
  448. package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs +1 -1
  449. package/es/components/table/src/util.d.ts +3 -2
  450. package/es/components/table/src/util.mjs.map +1 -1
  451. package/es/components/table-v2/src/components/row.d.ts +1 -1
  452. package/es/components/table-v2/src/table-grid.d.ts +3 -3
  453. package/es/components/table-v2/src/table-v2.d.ts +3 -3
  454. package/es/components/tabs/src/tab-nav.d.ts +2 -2
  455. package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
  456. package/es/components/tabs/src/tabs.d.ts +7 -7
  457. package/es/components/tag/src/tag.vue.d.ts +2 -2
  458. package/es/components/text/src/text.vue.d.ts +1 -1
  459. package/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
  460. package/es/components/time-picker/src/common/picker.vue.d.ts +19 -19
  461. package/es/components/time-picker/src/common/props.d.ts +2 -2
  462. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +1 -1
  463. package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.mjs +1 -1
  464. package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  465. package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  466. package/es/components/time-picker/src/time-picker.d.ts +15 -15
  467. package/es/components/time-select/src/time-select.vue.d.ts +13 -13
  468. package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
  469. package/es/components/timeline/src/timeline.d.ts +4 -4
  470. package/es/components/tooltip/src/content.vue.d.ts +7 -7
  471. package/es/components/tooltip/src/tooltip.d.ts +2 -2
  472. package/es/components/tooltip/src/tooltip.vue.d.ts +14 -14
  473. package/es/components/tooltip/src/trigger.d.ts +1 -1
  474. package/es/components/tour/src/content.d.ts +1 -1
  475. package/es/components/tour/src/content.vue.d.ts +1 -1
  476. package/es/components/tour/src/mask.vue.d.ts +1 -1
  477. package/es/components/tour/src/step.d.ts +1 -1
  478. package/es/components/tour/src/tour.d.ts +1 -1
  479. package/es/components/tour/src/tour.vue.d.ts +3 -3
  480. package/es/components/transfer/src/transfer.vue.d.ts +2 -2
  481. package/es/components/tree/src/tree-node.vue.d.ts +18 -18
  482. package/es/components/tree/src/tree.vue.d.ts +22 -22
  483. package/es/components/tree-select/src/tree-select-option.d.ts +5 -5
  484. package/es/components/tree-select/src/tree-select.vue.d.ts +25 -25
  485. package/es/components/tree-v2/src/composables/useTree.d.ts +10 -10
  486. package/es/components/tree-v2/src/tree.vue.d.ts +4 -4
  487. package/es/components/upload/src/upload.vue.d.ts +1 -1
  488. package/es/components/virtual-list/src/builders/build-grid.d.ts +3 -3
  489. package/es/components/virtual-list/src/builders/build-list.d.ts +5 -5
  490. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
  491. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +5 -5
  492. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
  493. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +5 -5
  494. package/es/components/virtual-list/src/components/scrollbar.d.ts +3 -3
  495. package/es/components/virtual-list/src/props.d.ts +2 -2
  496. package/es/constants/index.mjs +2 -2
  497. package/es/directives/trap-focus/index.mjs +1 -1
  498. package/es/hooks/use-floating/index.d.ts +4 -4
  499. package/es/hooks/use-popper/index.d.ts +3 -3
  500. package/es/index.mjs +13 -13
  501. package/es/plugin.mjs +1 -1
  502. package/es/utils/vue/size.d.ts +1 -1
  503. package/es/utils/vue/vnode.d.ts +4 -4
  504. package/es/version.d.ts +1 -1
  505. package/es/version.mjs +1 -1
  506. package/es/version.mjs.map +1 -1
  507. package/lib/component.js +109 -109
  508. package/lib/components/affix/src/affix.vue.d.ts +2 -2
  509. package/lib/components/alert/src/alert.d.ts +1 -1
  510. package/lib/components/alert/src/alert.vue.d.ts +2 -2
  511. package/lib/components/anchor/src/anchor.d.ts +1 -1
  512. package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
  513. package/lib/components/autocomplete/src/autocomplete.d.ts +4 -4
  514. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
  515. package/lib/components/avatar/src/avatar-group.d.ts +1 -1
  516. package/lib/components/avatar/src/avatar.d.ts +1 -1
  517. package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
  518. package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
  519. package/lib/components/badge/src/badge.vue.d.ts +2 -2
  520. package/lib/components/button/src/button-group.d.ts +2 -2
  521. package/lib/components/button/src/button-group.vue.d.ts +2 -2
  522. package/lib/components/button/src/button.d.ts +1 -1
  523. package/lib/components/button/src/button.vue.d.ts +3 -3
  524. package/lib/components/button/src/use-button.d.ts +1 -1
  525. package/lib/components/calendar/src/select-controller.vue_vue_type_script_setup_true_lang.js.map +1 -1
  526. package/lib/components/calendar/src/select-controller2.js.map +1 -1
  527. package/lib/components/card/src/card.d.ts +1 -1
  528. package/lib/components/card/src/card.vue.d.ts +3 -3
  529. package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
  530. package/lib/components/carousel/src/carousel.d.ts +3 -3
  531. package/lib/components/carousel/src/carousel.vue.d.ts +3 -3
  532. package/lib/components/cascader/src/cascader.d.ts +2 -2
  533. package/lib/components/cascader/src/cascader.vue.d.ts +16 -16
  534. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +40 -40
  535. package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  536. package/lib/components/cascader-panel/src/index.vue.d.ts +4 -4
  537. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js +12 -12
  538. package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
  539. package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
  540. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +6 -6
  541. package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
  542. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +6 -6
  543. package/lib/components/checkbox/src/checkbox.d.ts +8 -8
  544. package/lib/components/checkbox/src/checkbox.vue.d.ts +6 -6
  545. package/lib/components/col/src/col.vue.d.ts +1 -1
  546. package/lib/components/collapse/src/collapse.d.ts +1 -1
  547. package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
  548. package/lib/components/color-picker/src/color-picker.vue.d.ts +10 -10
  549. package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js +18 -18
  550. package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  551. package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
  552. package/lib/components/config-provider/src/config-provider.d.ts +1 -1
  553. package/lib/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.js +1 -1
  554. package/lib/components/date-picker/src/date-picker.d.ts +15 -15
  555. package/lib/components/date-picker/src/props.d.ts +2 -2
  556. package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  557. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +4 -4
  558. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.js +18 -18
  559. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.js.map +1 -1
  560. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +5 -5
  561. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js +23 -23
  562. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js.map +1 -1
  563. package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
  564. package/lib/components/date-picker-panel/src/date-picker-com/panel-quarter-range.vue.d.ts +1 -1
  565. package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
  566. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +8 -8
  567. package/lib/components/date-picker-panel/src/panel-utils.d.ts +150 -150
  568. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  569. package/lib/components/descriptions/src/description-item.d.ts +19 -19
  570. package/lib/components/descriptions/src/description.d.ts +1 -1
  571. package/lib/components/descriptions/src/description.vue.d.ts +1 -1
  572. package/lib/components/dialog/src/dialog.vue.d.ts +5 -5
  573. package/lib/components/divider/src/divider.d.ts +2 -2
  574. package/lib/components/divider/src/divider.vue.d.ts +2 -2
  575. package/lib/components/drawer/src/drawer.vue.d.ts +5 -5
  576. package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
  577. package/lib/components/dropdown/src/dropdown.d.ts +4 -4
  578. package/lib/components/dropdown/src/dropdown.vue.d.ts +74 -74
  579. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  580. package/lib/components/form/src/form-item.d.ts +2 -2
  581. package/lib/components/form/src/form-item.vue.d.ts +2 -2
  582. package/lib/components/form/src/form.d.ts +2 -2
  583. package/lib/components/form/src/form.vue.d.ts +2 -2
  584. package/lib/components/image/src/image.vue.d.ts +4 -4
  585. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  586. package/lib/components/index.js +125 -125
  587. package/lib/components/input/src/input.d.ts +3 -3
  588. package/lib/components/input/src/input.vue.d.ts +17 -17
  589. package/lib/components/input-number/src/input-number.d.ts +3 -3
  590. package/lib/components/input-number/src/input-number.vue.d.ts +11 -11
  591. package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js +12 -12
  592. package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js.map +1 -1
  593. package/lib/components/input-otp/src/input-otp.vue.d.ts +7 -7
  594. package/lib/components/input-tag/src/input-tag.d.ts +1 -1
  595. package/lib/components/input-tag/src/input-tag.vue.d.ts +9 -9
  596. package/lib/components/link/src/link.d.ts +1 -1
  597. package/lib/components/link/src/link.vue.d.ts +1 -1
  598. package/lib/components/mention/src/mention.d.ts +3 -3
  599. package/lib/components/mention/src/mention.vue.d.ts +3 -3
  600. package/lib/components/menu/src/menu.d.ts +11 -11
  601. package/lib/components/menu/src/menu.js +7 -7
  602. package/lib/components/menu/src/menu.js.map +1 -1
  603. package/lib/components/menu/src/sub-menu.d.ts +1 -1
  604. package/lib/components/menu/src/utils/menu-item.js +11 -11
  605. package/lib/components/menu/src/utils/menu-item.js.map +1 -1
  606. package/lib/components/menu/src/utils/submenu.js +9 -9
  607. package/lib/components/menu/src/utils/submenu.js.map +1 -1
  608. package/lib/components/message/src/message.d.ts +1 -1
  609. package/lib/components/message/src/message.vue.d.ts +9 -9
  610. package/lib/components/message-box/src/index.vue.d.ts +59 -59
  611. package/lib/components/message-box/src/index.vue_vue_type_script_lang.js +19 -19
  612. package/lib/components/message-box/src/index.vue_vue_type_script_lang.js.map +1 -1
  613. package/lib/components/notification/src/notification.d.ts +1 -1
  614. package/lib/components/notification/src/notification.vue.d.ts +8 -8
  615. package/lib/components/pagination/src/components/next.vue.d.ts +1 -1
  616. package/lib/components/pagination/src/components/pager.vue.d.ts +1 -1
  617. package/lib/components/pagination/src/components/sizes.vue.d.ts +2 -2
  618. package/lib/components/pagination/src/pagination.d.ts +4 -4
  619. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  620. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +5 -5
  621. package/lib/components/popover/src/popover.d.ts +22 -22
  622. package/lib/components/popover/src/popover.vue.d.ts +9 -9
  623. package/lib/components/popper/src/composables/use-content.d.ts +3 -3
  624. package/lib/components/popper/src/composables/use-focus-trap.d.ts +1 -1
  625. package/lib/components/popper/src/content.vue.d.ts +11 -11
  626. package/lib/components/popper/src/popper.d.ts +2 -2
  627. package/lib/components/popper/src/popper.vue.d.ts +1 -1
  628. package/lib/components/progress/src/progress.d.ts +1 -1
  629. package/lib/components/progress/src/progress.vue.d.ts +3 -3
  630. package/lib/components/radio/src/radio-button.d.ts +3 -3
  631. package/lib/components/radio/src/radio-button.vue.d.ts +3 -3
  632. package/lib/components/radio/src/radio-group.vue.d.ts +8 -8
  633. package/lib/components/radio/src/radio.d.ts +6 -6
  634. package/lib/components/radio/src/radio.vue.d.ts +5 -5
  635. package/lib/components/rate/src/rate.vue.d.ts +4 -4
  636. package/lib/components/result/src/result.d.ts +1 -1
  637. package/lib/components/result/src/result.vue.d.ts +1 -1
  638. package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
  639. package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
  640. package/lib/components/roving-focus-group/src/roving-focus-group.vue.d.ts +2 -2
  641. package/lib/components/row/src/row.d.ts +1 -1
  642. package/lib/components/row/src/row.vue.d.ts +1 -1
  643. package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
  644. package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
  645. package/lib/components/segmented/index.d.ts +4 -4
  646. package/lib/components/segmented/src/segmented.d.ts +2 -2
  647. package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
  648. package/lib/components/select/src/option.d.ts +2 -2
  649. package/lib/components/select/src/option.vue.d.ts +5 -5
  650. package/lib/components/select/src/select.d.ts +3 -3
  651. package/lib/components/select/src/select.vue.d.ts +80 -80
  652. package/lib/components/select/src/select.vue_vue_type_script_lang.js +10 -10
  653. package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
  654. package/lib/components/select/src/useOption.d.ts +2 -2
  655. package/lib/components/select/src/useSelect.d.ts +6 -6
  656. package/lib/components/select-v2/src/defaults.d.ts +1 -1
  657. package/lib/components/select-v2/src/select.vue.d.ts +64 -64
  658. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js +10 -10
  659. package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
  660. package/lib/components/select-v2/src/useSelect.d.ts +1 -1
  661. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  662. package/lib/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
  663. package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
  664. package/lib/components/slider/src/button.vue.d.ts +2 -2
  665. package/lib/components/slider/src/slider.vue.d.ts +12 -12
  666. package/lib/components/space/src/space.d.ts +5 -5
  667. package/lib/components/splitter/src/split-bar.vue.d.ts +1 -1
  668. package/lib/components/splitter/src/splitter.d.ts +1 -1
  669. package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
  670. package/lib/components/statistic/src/statistic.vue.d.ts +1 -1
  671. package/lib/components/steps/src/item.d.ts +1 -1
  672. package/lib/components/steps/src/item.vue.d.ts +2 -2
  673. package/lib/components/steps/src/steps.d.ts +3 -3
  674. package/lib/components/steps/src/steps.vue.d.ts +1 -1
  675. package/lib/components/switch/src/switch.vue.d.ts +4 -4
  676. package/lib/components/table/src/filter-panel.vue.d.ts +76 -76
  677. package/lib/components/table/src/store/index.js.map +1 -1
  678. package/lib/components/table/src/table/defaults.d.ts +5 -5
  679. package/lib/components/table/src/table-body/index.d.ts +1 -1
  680. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  681. package/lib/components/table/src/table-body/td-wrapper.vue.d.ts +1 -1
  682. package/lib/components/table/src/table-column/defaults.d.ts +2 -2
  683. package/lib/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
  684. package/lib/components/table/src/table-column/index2.js.map +1 -1
  685. package/lib/components/table/src/table-footer/index.d.ts +1 -1
  686. package/lib/components/table/src/table-header/index.d.ts +18 -18
  687. package/lib/components/table/src/table.vue.d.ts +3 -3
  688. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js +9 -9
  689. package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js.map +1 -1
  690. package/lib/components/table/src/util.d.ts +3 -2
  691. package/lib/components/table/src/util.js.map +1 -1
  692. package/lib/components/table-v2/src/components/row.d.ts +1 -1
  693. package/lib/components/table-v2/src/table-grid.d.ts +3 -3
  694. package/lib/components/table-v2/src/table-v2.d.ts +3 -3
  695. package/lib/components/tabs/src/tab-nav.d.ts +2 -2
  696. package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
  697. package/lib/components/tabs/src/tabs.d.ts +7 -7
  698. package/lib/components/tag/src/tag.vue.d.ts +2 -2
  699. package/lib/components/text/src/text.vue.d.ts +1 -1
  700. package/lib/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
  701. package/lib/components/time-picker/src/common/picker.vue.d.ts +19 -19
  702. package/lib/components/time-picker/src/common/props.d.ts +2 -2
  703. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +1 -1
  704. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js +10 -10
  705. package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  706. package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  707. package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  708. package/lib/components/time-picker/src/time-picker.d.ts +15 -15
  709. package/lib/components/time-select/src/time-select.vue.d.ts +13 -13
  710. package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
  711. package/lib/components/timeline/src/timeline.d.ts +4 -4
  712. package/lib/components/tooltip/src/content.vue.d.ts +7 -7
  713. package/lib/components/tooltip/src/tooltip.d.ts +2 -2
  714. package/lib/components/tooltip/src/tooltip.vue.d.ts +14 -14
  715. package/lib/components/tooltip/src/trigger.d.ts +1 -1
  716. package/lib/components/tour/src/content.d.ts +1 -1
  717. package/lib/components/tour/src/content.vue.d.ts +1 -1
  718. package/lib/components/tour/src/mask.vue.d.ts +1 -1
  719. package/lib/components/tour/src/step.d.ts +1 -1
  720. package/lib/components/tour/src/tour.d.ts +1 -1
  721. package/lib/components/tour/src/tour.vue.d.ts +3 -3
  722. package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
  723. package/lib/components/tree/src/tree-node.vue.d.ts +18 -18
  724. package/lib/components/tree/src/tree.vue.d.ts +22 -22
  725. package/lib/components/tree-select/src/tree-select-option.d.ts +5 -5
  726. package/lib/components/tree-select/src/tree-select.vue.d.ts +25 -25
  727. package/lib/components/tree-v2/src/composables/useTree.d.ts +10 -10
  728. package/lib/components/tree-v2/src/tree.vue.d.ts +4 -4
  729. package/lib/components/upload/src/upload.vue.d.ts +1 -1
  730. package/lib/components/virtual-list/src/builders/build-grid.d.ts +3 -3
  731. package/lib/components/virtual-list/src/builders/build-list.d.ts +5 -5
  732. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
  733. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +5 -5
  734. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
  735. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +5 -5
  736. package/lib/components/virtual-list/src/components/scrollbar.d.ts +3 -3
  737. package/lib/components/virtual-list/src/props.d.ts +2 -2
  738. package/lib/constants/index.js +2 -2
  739. package/lib/directives/trap-focus/index.js +5 -5
  740. package/lib/directives/trap-focus/index.js.map +1 -1
  741. package/lib/hooks/use-floating/index.d.ts +4 -4
  742. package/lib/hooks/use-popper/index.d.ts +3 -3
  743. package/lib/index.js +269 -269
  744. package/lib/plugin.js +12 -12
  745. package/lib/plugin.js.map +1 -1
  746. package/lib/utils/vue/size.d.ts +1 -1
  747. package/lib/utils/vue/vnode.d.ts +4 -4
  748. package/lib/version.d.ts +1 -1
  749. package/lib/version.js +1 -1
  750. package/lib/version.js.map +1 -1
  751. package/package.json +2 -2
  752. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"menu.js","names":["buildProps","definePropType","mutable","iconPropType","More","isArray","isString","isObject","isUndefined","defineComponent","getCurrentInstance","ref","useNamespace","computed","isNil","unrefElement","useResizeObserver","MENU_INJECTION_KEY","reactive","SUB_MENU_INJECTION_KEY","Menubar","useMenuCssVar","flattedChildren","h","ElSubMenu","ElIcon","vClickoutside","withDirectives","ElMenuCollapseTransition"],"sources":["../../../../../../packages/components/menu/src/menu.ts"],"sourcesContent":["import {\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n nextTick,\n onMounted,\n provide,\n reactive,\n ref,\n watch,\n watchEffect,\n withDirectives,\n} from 'vue'\nimport { unrefElement, useResizeObserver } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport ElIcon from '@element-plus/components/icon'\nimport { More } from '@element-plus/icons-vue'\nimport {\n buildProps,\n definePropType,\n flattedChildren,\n iconPropType,\n isArray,\n isObject,\n isString,\n isUndefined,\n mutable,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ClickOutside as vClickoutside } from '@element-plus/directives'\nimport Menubar from './utils/menu-bar'\nimport ElMenuCollapseTransition from './menu-collapse-transition.vue'\nimport ElSubMenu from './sub-menu'\nimport { useMenuCssVar } from './use-menu-css-var'\nimport { MENU_INJECTION_KEY, SUB_MENU_INJECTION_KEY } from './tokens'\n\nimport type { ClassValue } from '@element-plus/utils'\nimport type { PopperEffect } from '@element-plus/components/popper'\nimport type { MenuItemClicked, MenuProvider, SubMenuProvider } from './types'\nimport type { NavigationFailure, Router } from 'vue-router'\nimport type {\n Component,\n DirectiveArguments,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n StyleValue,\n VNode,\n VNodeArrayChildren,\n} from 'vue'\nimport type { UseResizeObserverReturn } from '@vueuse/core'\n\nexport const menuProps = buildProps({\n /**\n * @description menu display mode\n */\n mode: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'vertical',\n },\n /**\n * @description index of active menu on page load\n */\n defaultActive: {\n type: String,\n default: '',\n },\n /**\n * @description array that contains indexes of currently active sub-menus\n */\n defaultOpeneds: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether only one sub-menu can be active\n */\n uniqueOpened: Boolean,\n /**\n * @description whether `vue-router` mode is activated. If true, index will be used as 'path' to activate the route action. Use with `default-active` to set the active item on load.\n */\n router: Boolean,\n /**\n * @description how sub-menus are triggered, only works when `mode` is 'horizontal'\n */\n menuTrigger: {\n type: String,\n values: ['hover', 'click'],\n default: 'hover',\n },\n /**\n * @description whether the menu is collapsed (available only in vertical mode)\n */\n collapse: Boolean,\n /**\n * @description background color of Menu (hex format) (deprecated, use `--bg-color` instead)\n * @deprecated use `--bg-color` instead\n */\n backgroundColor: String,\n /**\n * @description text color of Menu (hex format) (deprecated, use `--text-color` instead)\n * @deprecated use `--text-color` instead\n */\n textColor: String,\n /**\n * @description text color of currently active menu item (hex format) (deprecated, use `--active-color` instead)\n * @deprecated use `--active-color` instead\n */\n activeTextColor: String,\n /**\n * @description optional, whether menu is collapsed when clicking outside\n */\n closeOnClickOutside: Boolean,\n /**\n * @description whether to enable the collapse transition\n */\n collapseTransition: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the menu is ellipsis (available only in horizontal mode)\n */\n ellipsis: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the popper (effective for all submenus)\n */\n popperOffset: {\n type: Number,\n default: 6,\n },\n /**\n * @description custom ellipsis icon (available only in horizontal mode and ellipsis is true)\n */\n ellipsisIcon: {\n type: iconPropType,\n default: () => More,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light` when menu is collapsed\n */\n popperEffect: {\n type: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n /**\n * @description custom class name for all popup menus\n */\n popperClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: undefined,\n },\n /**\n * @description custom style for all popup menus\n */\n popperStyle: {\n type: definePropType<StyleValue>([String, Array, Object, Boolean]),\n default: undefined,\n },\n /**\n * @description control timeout for all menus before showing\n */\n showTimeout: {\n type: Number,\n default: 300,\n },\n /**\n * @description control timeout for all menus before hiding\n */\n hideTimeout: {\n type: Number,\n default: 300,\n },\n /**\n * @description when menu inactive and `persistent` is `false` , dropdown menu will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type MenuProps = ExtractPropTypes<typeof menuProps>\nexport type MenuPropsPublic = ExtractPublicPropTypes<typeof menuProps>\n\nconst checkIndexPath = (indexPath: unknown): indexPath is string[] =>\n isArray(indexPath) && indexPath.every((path) => isString(path))\n\nexport const menuEmits = {\n close: (index: string, indexPath: string[]) =>\n isString(index) && checkIndexPath(indexPath),\n\n open: (index: string, indexPath: string[]) =>\n isString(index) && checkIndexPath(indexPath),\n\n select: (\n index: string,\n indexPath: string[],\n item: MenuItemClicked,\n routerResult?: Promise<void | NavigationFailure>\n ) =>\n isString(index) &&\n checkIndexPath(indexPath) &&\n isObject(item) &&\n (isUndefined(routerResult) || routerResult instanceof Promise),\n}\nexport type MenuEmits = typeof menuEmits\n\nconst DEFAULT_MORE_ITEM_WIDTH = 64\n\nexport default defineComponent({\n name: 'ElMenu',\n\n props: menuProps,\n emits: menuEmits,\n\n setup(props, { emit, slots, expose }) {\n const instance = getCurrentInstance()!\n const router = instance.appContext.config.globalProperties.$router as Router\n const menu = ref<HTMLUListElement>()\n const subMenu = ref<HTMLElement>()\n const nsMenu = useNamespace('menu')\n const nsSubMenu = useNamespace('sub-menu')\n let moreItemWidth = DEFAULT_MORE_ITEM_WIDTH\n\n // data\n const sliceIndex = ref(-1)\n\n const openedMenus = ref<MenuProvider['openedMenus']>(\n props.defaultOpeneds && !props.collapse\n ? props.defaultOpeneds.slice(0)\n : []\n )\n const activeIndex = ref<MenuProvider['activeIndex']>(props.defaultActive)\n const items = ref<MenuProvider['items']>({})\n const subMenus = ref<MenuProvider['subMenus']>({})\n\n // computed\n const isMenuPopup = computed<MenuProvider['isMenuPopup']>(\n () =>\n props.mode === 'horizontal' ||\n (props.mode === 'vertical' && props.collapse)\n )\n\n // methods\n const initMenu = () => {\n const activeItem = activeIndex.value && items.value[activeIndex.value]\n if (!activeItem || props.mode === 'horizontal' || props.collapse) return\n\n const indexPath = activeItem.indexPath\n\n // 展开该菜单项的路径上所有子菜单\n // expand all subMenus of the menu item\n indexPath.forEach((index) => {\n const subMenu = subMenus.value[index]\n subMenu && openMenu(index, subMenu.indexPath)\n })\n }\n\n const openMenu: MenuProvider['openMenu'] = (index, indexPath) => {\n if (openedMenus.value.includes(index)) return\n // 将不在该菜单路径下的其余菜单收起\n // collapse all menu that are not under current menu item\n if (props.uniqueOpened) {\n openedMenus.value = openedMenus.value.filter((index: string) =>\n indexPath.includes(index)\n )\n }\n openedMenus.value.push(index)\n emit('open', index, indexPath)\n }\n\n const close = (index: string) => {\n const i = openedMenus.value.indexOf(index)\n if (i !== -1) {\n openedMenus.value.splice(i, 1)\n }\n }\n\n const closeMenu: MenuProvider['closeMenu'] = (index, indexPath) => {\n close(index)\n emit('close', index, indexPath)\n }\n\n const handleSubMenuClick: MenuProvider['handleSubMenuClick'] = ({\n index,\n indexPath,\n }) => {\n const isOpened = openedMenus.value.includes(index)\n\n isOpened ? closeMenu(index, indexPath) : openMenu(index, indexPath)\n }\n\n const handleMenuItemClick: MenuProvider['handleMenuItemClick'] = (\n menuItem\n ) => {\n if (props.mode === 'horizontal' || props.collapse) {\n openedMenus.value = []\n }\n const { index, indexPath } = menuItem\n if (isNil(index) || isNil(indexPath)) return\n\n if (props.router && router) {\n const route = menuItem.route || index\n const routerResult = router.push(route).then((res) => {\n if (!res) activeIndex.value = index\n return res\n })\n emit(\n 'select',\n index,\n indexPath,\n { index, indexPath, route },\n routerResult\n )\n } else {\n activeIndex.value = index\n emit('select', index, indexPath, { index, indexPath })\n }\n }\n\n const updateActiveIndex = (val: string) => {\n const itemsInData = items.value\n const item =\n itemsInData[val] ||\n (activeIndex.value && itemsInData[activeIndex.value]) ||\n itemsInData[props.defaultActive]\n\n activeIndex.value = item?.index ?? val\n }\n\n const calcMenuItemWidth = (menuItem: HTMLElement) => {\n const computedStyle = getComputedStyle(menuItem)\n const marginLeft = Number.parseInt(computedStyle.marginLeft, 10)\n const marginRight = Number.parseInt(computedStyle.marginRight, 10)\n return menuItem.offsetWidth + marginLeft + marginRight || 0\n }\n\n const calcSliceIndex = () => {\n if (!menu.value) return -1\n\n const items = Array.from(menu.value.childNodes).filter(\n (item) =>\n item.nodeName !== '#comment' &&\n (item.nodeName !== '#text' || item.nodeValue)\n ) as HTMLElement[]\n\n const computedMenuStyle = getComputedStyle(menu.value)\n const paddingLeft = Number.parseInt(computedMenuStyle.paddingLeft, 10)\n const paddingRight = Number.parseInt(computedMenuStyle.paddingRight, 10)\n const menuWidth = menu.value.clientWidth - paddingLeft - paddingRight\n\n let calcWidth = 0\n let sliceIndex = 0\n items.forEach((item, index) => {\n calcWidth += calcMenuItemWidth(item)\n if (calcWidth <= menuWidth - moreItemWidth) {\n sliceIndex = index + 1\n }\n })\n return sliceIndex === items.length ? -1 : sliceIndex\n }\n\n const getIndexPath = (index: string) => subMenus.value[index].indexPath\n\n // Common computer monitor FPS is 60Hz, which means 60 redraws per second. Calculation formula: 1000ms/60 ≈ 16.67ms, In order to avoid a certain chance of repeated triggering when `resize`, set wait to 16.67 * 2 = 33.34\n const debounce = (fn: () => void, wait = 33.34) => {\n let timer: ReturnType<typeof setTimeout> | null\n return () => {\n timer && clearTimeout(timer)\n timer = setTimeout(() => {\n fn()\n }, wait)\n }\n }\n\n let isFirstTimeRender = true\n const handleResize = () => {\n const el = unrefElement(subMenu)\n if (el) moreItemWidth = calcMenuItemWidth(el) || DEFAULT_MORE_ITEM_WIDTH\n if (sliceIndex.value === calcSliceIndex()) return\n const callback = () => {\n sliceIndex.value = -1\n nextTick(() => {\n sliceIndex.value = calcSliceIndex()\n })\n }\n // execute callback directly when first time resize to avoid shaking\n isFirstTimeRender ? callback() : debounce(callback)()\n isFirstTimeRender = false\n }\n\n watch(\n () => props.defaultActive,\n (currentActive) => {\n if (!items.value[currentActive]) {\n activeIndex.value = ''\n }\n updateActiveIndex(currentActive)\n }\n )\n\n watch(\n () => props.collapse,\n (value) => {\n if (value) openedMenus.value = []\n }\n )\n\n watch(items.value, initMenu)\n\n let resizeStopper: UseResizeObserverReturn['stop']\n watchEffect(() => {\n if (props.mode === 'horizontal' && props.ellipsis)\n resizeStopper = useResizeObserver(menu, handleResize).stop\n else resizeStopper?.()\n })\n\n const mouseInChild = ref(false)\n\n // provide\n {\n const addSubMenu: MenuProvider['addSubMenu'] = (item) => {\n subMenus.value[item.index] = item\n }\n\n const removeSubMenu: MenuProvider['removeSubMenu'] = (item) => {\n delete subMenus.value[item.index]\n }\n\n const addMenuItem: MenuProvider['addMenuItem'] = (item) => {\n items.value[item.index] = item\n }\n\n const removeMenuItem: MenuProvider['removeMenuItem'] = (item) => {\n delete items.value[item.index]\n }\n\n provide<MenuProvider>(\n MENU_INJECTION_KEY,\n reactive({\n props,\n openedMenus,\n items,\n subMenus,\n activeIndex,\n isMenuPopup,\n\n addMenuItem,\n removeMenuItem,\n addSubMenu,\n removeSubMenu,\n openMenu,\n closeMenu,\n handleMenuItemClick,\n handleSubMenuClick,\n }) as unknown as MenuProvider // Avoid TS2589\n )\n\n provide<SubMenuProvider>(`${SUB_MENU_INJECTION_KEY}${instance.uid}`, {\n addSubMenu,\n removeSubMenu,\n mouseInChild,\n level: 0,\n })\n }\n\n // lifecycle\n onMounted(() => {\n if (props.mode === 'horizontal') {\n new Menubar(instance.vnode.el!, nsMenu.namespace.value)\n }\n })\n\n {\n const open = (index: string) => {\n const { indexPath } = subMenus.value[index]\n indexPath.forEach((i) => openMenu(i, indexPath))\n }\n\n expose({\n open,\n close,\n updateActiveIndex,\n handleResize,\n })\n }\n\n const ulStyle = useMenuCssVar(props, 0)\n\n return () => {\n let slot: VNodeArrayChildren = slots.default?.() ?? []\n const vShowMore: VNode[] = []\n\n if (props.mode === 'horizontal' && menu.value) {\n const originalSlot = (\n flattedChildren(slot) as VNodeArrayChildren\n ).filter((vnode) => {\n // Filter text and comment nodes (https://github.com/vuejs/core/blob/c875019d49b4c36a88d929ccadc31ad414747c7b/packages/shared/src/shapeFlags.ts#L5)\n return (vnode as VNode)?.shapeFlag !== 8\n })\n const slotDefault =\n sliceIndex.value === -1\n ? originalSlot\n : originalSlot.slice(0, sliceIndex.value)\n\n const slotMore =\n sliceIndex.value === -1 ? [] : originalSlot.slice(sliceIndex.value)\n\n if (slotMore?.length && props.ellipsis) {\n slot = slotDefault\n vShowMore.push(\n h(\n ElSubMenu,\n {\n ref: subMenu,\n index: 'sub-menu-more',\n class: nsSubMenu.e('hide-arrow'),\n popperOffset: props.popperOffset,\n },\n {\n title: () =>\n h(\n ElIcon,\n {\n class: nsSubMenu.e('icon-more'),\n },\n {\n default: () => h(props.ellipsisIcon as Component),\n }\n ),\n default: () => slotMore,\n }\n )\n )\n }\n }\n\n const directives: DirectiveArguments = props.closeOnClickOutside\n ? [\n [\n vClickoutside,\n () => {\n if (!openedMenus.value.length) return\n\n if (!mouseInChild.value) {\n openedMenus.value.forEach((openedMenu) =>\n emit('close', openedMenu, getIndexPath(openedMenu))\n )\n\n openedMenus.value = []\n }\n },\n ],\n ]\n : []\n\n const vMenu = withDirectives(\n h(\n 'ul',\n {\n key: String(props.collapse),\n role: 'menubar',\n ref: menu,\n style: ulStyle.value,\n class: {\n [nsMenu.b()]: true,\n [nsMenu.m(props.mode)]: true,\n [nsMenu.m('collapse')]: props.collapse,\n },\n },\n [...slot, ...vShowMore]\n ),\n directives\n )\n\n if (props.collapseTransition && props.mode === 'vertical') {\n return h(ElMenuCollapseTransition, () => vMenu)\n }\n\n return vMenu\n }\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAoDA,MAAa,YAAYA,gBAAAA,WAAW;;;;CAIlC,MAAM;EACJ,MAAM;EACN,QAAQ,CAAC,cAAc,UAAU;EACjC,SAAS;CACX;;;;CAIA,eAAe;EACb,MAAM;EACN,SAAS;CACX;;;;CAIA,gBAAgB;EACd,MAAMC,gBAAAA,eAAyB,KAAK;EACpC,eAAeC,mBAAAA,QAAQ,CAAC,CAAU;CACpC;;;;CAIA,cAAc;;;;CAId,QAAQ;;;;CAIR,aAAa;EACX,MAAM;EACN,QAAQ,CAAC,SAAS,OAAO;EACzB,SAAS;CACX;;;;CAIA,UAAU;;;;;CAKV,iBAAiB;;;;;CAKjB,WAAW;;;;;CAKX,iBAAiB;;;;CAIjB,qBAAqB;;;;CAIrB,oBAAoB;EAClB,MAAM;EACN,SAAS;CACX;;;;CAIA,UAAU;EACR,MAAM;EACN,SAAS;CACX;;;;CAIA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;;;;CAIA,cAAc;EACZ,MAAMC,aAAAA;EACN,eAAeC,wBAAAA;CACjB;;;;CAIA,cAAc;EACZ,MAAMH,gBAAAA,eAA6B,MAAM;EACzC,SAAS;CACX;;;;CAIA,aAAa;EACX,MAAMA,gBAAAA,eAA2B;GAAC;GAAQ;GAAO;GAAQ;EAAO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["buildProps","definePropType","mutable","iconPropType","More","isArray","isString","isObject","isUndefined","defineComponent","getCurrentInstance","ref","useNamespace","computed","isNil","unrefElement","useResizeObserver","MENU_INJECTION_KEY","reactive","SUB_MENU_INJECTION_KEY","Menubar","useMenuCssVar","flattedChildren","h","ElSubMenu","ElIcon","vClickoutside","withDirectives","ElMenuCollapseTransition"],"sources":["../../../../../../packages/components/menu/src/menu.ts"],"sourcesContent":["import {\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n nextTick,\n onMounted,\n provide,\n reactive,\n ref,\n watch,\n watchEffect,\n withDirectives,\n} from 'vue'\nimport { unrefElement, useResizeObserver } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport ElIcon from '@element-plus/components/icon'\nimport { More } from '@element-plus/icons-vue'\nimport {\n buildProps,\n definePropType,\n flattedChildren,\n iconPropType,\n isArray,\n isObject,\n isString,\n isUndefined,\n mutable,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ClickOutside as vClickoutside } from '@element-plus/directives'\nimport Menubar from './utils/menu-bar'\nimport ElMenuCollapseTransition from './menu-collapse-transition.vue'\nimport ElSubMenu from './sub-menu'\nimport { useMenuCssVar } from './use-menu-css-var'\nimport { MENU_INJECTION_KEY, SUB_MENU_INJECTION_KEY } from './tokens'\n\nimport type { ClassValue } from '@element-plus/utils'\nimport type { PopperEffect } from '@element-plus/components/popper'\nimport type { MenuItemClicked, MenuProvider, SubMenuProvider } from './types'\nimport type { NavigationFailure, Router } from 'vue-router'\nimport type {\n Component,\n DirectiveArguments,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n StyleValue,\n VNode,\n VNodeArrayChildren,\n} from 'vue'\nimport type { UseResizeObserverReturn } from '@vueuse/core'\n\nexport const menuProps = buildProps({\n /**\n * @description menu display mode\n */\n mode: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'vertical',\n },\n /**\n * @description index of active menu on page load\n */\n defaultActive: {\n type: String,\n default: '',\n },\n /**\n * @description array that contains indexes of currently active sub-menus\n */\n defaultOpeneds: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether only one sub-menu can be active\n */\n uniqueOpened: Boolean,\n /**\n * @description whether `vue-router` mode is activated. If true, index will be used as 'path' to activate the route action. Use with `default-active` to set the active item on load.\n */\n router: Boolean,\n /**\n * @description how sub-menus are triggered, only works when `mode` is 'horizontal'\n */\n menuTrigger: {\n type: String,\n values: ['hover', 'click'],\n default: 'hover',\n },\n /**\n * @description whether the menu is collapsed (available only in vertical mode)\n */\n collapse: Boolean,\n /**\n * @description background color of Menu (hex format) (deprecated, use `--bg-color` instead)\n * @deprecated use `--bg-color` instead\n */\n backgroundColor: String,\n /**\n * @description text color of Menu (hex format) (deprecated, use `--text-color` instead)\n * @deprecated use `--text-color` instead\n */\n textColor: String,\n /**\n * @description text color of currently active menu item (hex format) (deprecated, use `--active-color` instead)\n * @deprecated use `--active-color` instead\n */\n activeTextColor: String,\n /**\n * @description optional, whether menu is collapsed when clicking outside\n */\n closeOnClickOutside: Boolean,\n /**\n * @description whether to enable the collapse transition\n */\n collapseTransition: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the menu is ellipsis (available only in horizontal mode)\n */\n ellipsis: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the popper (effective for all submenus)\n */\n popperOffset: {\n type: Number,\n default: 6,\n },\n /**\n * @description custom ellipsis icon (available only in horizontal mode and ellipsis is true)\n */\n ellipsisIcon: {\n type: iconPropType,\n default: () => More,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light` when menu is collapsed\n */\n popperEffect: {\n type: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n /**\n * @description custom class name for all popup menus\n */\n popperClass: {\n type: definePropType<ClassValue>([String, Array, Object, Boolean]),\n default: undefined,\n },\n /**\n * @description custom style for all popup menus\n */\n popperStyle: {\n type: definePropType<StyleValue>([String, Array, Object, Boolean]),\n default: undefined,\n },\n /**\n * @description control timeout for all menus before showing\n */\n showTimeout: {\n type: Number,\n default: 300,\n },\n /**\n * @description control timeout for all menus before hiding\n */\n hideTimeout: {\n type: Number,\n default: 300,\n },\n /**\n * @description when menu inactive and `persistent` is `false` , dropdown menu will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type MenuProps = ExtractPropTypes<typeof menuProps>\nexport type MenuPropsPublic = ExtractPublicPropTypes<typeof menuProps>\n\nconst checkIndexPath = (indexPath: unknown): indexPath is string[] =>\n isArray(indexPath) && indexPath.every((path) => isString(path))\n\nexport const menuEmits = {\n close: (index: string, indexPath: string[]) =>\n isString(index) && checkIndexPath(indexPath),\n\n open: (index: string, indexPath: string[]) =>\n isString(index) && checkIndexPath(indexPath),\n\n select: (\n index: string,\n indexPath: string[],\n item: MenuItemClicked,\n routerResult?: Promise<void | NavigationFailure>\n ) =>\n isString(index) &&\n checkIndexPath(indexPath) &&\n isObject(item) &&\n (isUndefined(routerResult) || routerResult instanceof Promise),\n}\nexport type MenuEmits = typeof menuEmits\n\nconst DEFAULT_MORE_ITEM_WIDTH = 64\n\nexport default defineComponent({\n name: 'ElMenu',\n\n props: menuProps,\n emits: menuEmits,\n\n setup(props, { emit, slots, expose }) {\n const instance = getCurrentInstance()!\n const router = instance.appContext.config.globalProperties.$router as Router\n const menu = ref<HTMLUListElement>()\n const subMenu = ref<HTMLElement>()\n const nsMenu = useNamespace('menu')\n const nsSubMenu = useNamespace('sub-menu')\n let moreItemWidth = DEFAULT_MORE_ITEM_WIDTH\n\n // data\n const sliceIndex = ref(-1)\n\n const openedMenus = ref<MenuProvider['openedMenus']>(\n props.defaultOpeneds && !props.collapse\n ? props.defaultOpeneds.slice(0)\n : []\n )\n const activeIndex = ref<MenuProvider['activeIndex']>(props.defaultActive)\n const items = ref<MenuProvider['items']>({})\n const subMenus = ref<MenuProvider['subMenus']>({})\n\n // computed\n const isMenuPopup = computed<MenuProvider['isMenuPopup']>(\n () =>\n props.mode === 'horizontal' ||\n (props.mode === 'vertical' && props.collapse)\n )\n\n // methods\n const initMenu = () => {\n const activeItem = activeIndex.value && items.value[activeIndex.value]\n if (!activeItem || props.mode === 'horizontal' || props.collapse) return\n\n const indexPath = activeItem.indexPath\n\n // 展开该菜单项的路径上所有子菜单\n // expand all subMenus of the menu item\n indexPath.forEach((index) => {\n const subMenu = subMenus.value[index]\n subMenu && openMenu(index, subMenu.indexPath)\n })\n }\n\n const openMenu: MenuProvider['openMenu'] = (index, indexPath) => {\n if (openedMenus.value.includes(index)) return\n // 将不在该菜单路径下的其余菜单收起\n // collapse all menu that are not under current menu item\n if (props.uniqueOpened) {\n openedMenus.value = openedMenus.value.filter((index: string) =>\n indexPath.includes(index)\n )\n }\n openedMenus.value.push(index)\n emit('open', index, indexPath)\n }\n\n const close = (index: string) => {\n const i = openedMenus.value.indexOf(index)\n if (i !== -1) {\n openedMenus.value.splice(i, 1)\n }\n }\n\n const closeMenu: MenuProvider['closeMenu'] = (index, indexPath) => {\n close(index)\n emit('close', index, indexPath)\n }\n\n const handleSubMenuClick: MenuProvider['handleSubMenuClick'] = ({\n index,\n indexPath,\n }) => {\n const isOpened = openedMenus.value.includes(index)\n\n isOpened ? closeMenu(index, indexPath) : openMenu(index, indexPath)\n }\n\n const handleMenuItemClick: MenuProvider['handleMenuItemClick'] = (\n menuItem\n ) => {\n if (props.mode === 'horizontal' || props.collapse) {\n openedMenus.value = []\n }\n const { index, indexPath } = menuItem\n if (isNil(index) || isNil(indexPath)) return\n\n if (props.router && router) {\n const route = menuItem.route || index\n const routerResult = router.push(route).then((res) => {\n if (!res) activeIndex.value = index\n return res\n })\n emit(\n 'select',\n index,\n indexPath,\n { index, indexPath, route },\n routerResult\n )\n } else {\n activeIndex.value = index\n emit('select', index, indexPath, { index, indexPath })\n }\n }\n\n const updateActiveIndex = (val: string) => {\n const itemsInData = items.value\n const item =\n itemsInData[val] ||\n (activeIndex.value && itemsInData[activeIndex.value]) ||\n itemsInData[props.defaultActive]\n\n activeIndex.value = item?.index ?? val\n }\n\n const calcMenuItemWidth = (menuItem: HTMLElement) => {\n const computedStyle = getComputedStyle(menuItem)\n const marginLeft = Number.parseInt(computedStyle.marginLeft, 10)\n const marginRight = Number.parseInt(computedStyle.marginRight, 10)\n return menuItem.offsetWidth + marginLeft + marginRight || 0\n }\n\n const calcSliceIndex = () => {\n if (!menu.value) return -1\n\n const items = Array.from(menu.value.childNodes).filter(\n (item) =>\n item.nodeName !== '#comment' &&\n (item.nodeName !== '#text' || item.nodeValue)\n ) as HTMLElement[]\n\n const computedMenuStyle = getComputedStyle(menu.value)\n const paddingLeft = Number.parseInt(computedMenuStyle.paddingLeft, 10)\n const paddingRight = Number.parseInt(computedMenuStyle.paddingRight, 10)\n const menuWidth = menu.value.clientWidth - paddingLeft - paddingRight\n\n let calcWidth = 0\n let sliceIndex = 0\n items.forEach((item, index) => {\n calcWidth += calcMenuItemWidth(item)\n if (calcWidth <= menuWidth - moreItemWidth) {\n sliceIndex = index + 1\n }\n })\n return sliceIndex === items.length ? -1 : sliceIndex\n }\n\n const getIndexPath = (index: string) => subMenus.value[index].indexPath\n\n // Common computer monitor FPS is 60Hz, which means 60 redraws per second. Calculation formula: 1000ms/60 ≈ 16.67ms, In order to avoid a certain chance of repeated triggering when `resize`, set wait to 16.67 * 2 = 33.34\n const debounce = (fn: () => void, wait = 33.34) => {\n let timer: ReturnType<typeof setTimeout> | null\n return () => {\n timer && clearTimeout(timer)\n timer = setTimeout(() => {\n fn()\n }, wait)\n }\n }\n\n let isFirstTimeRender = true\n const handleResize = () => {\n const el = unrefElement(subMenu)\n if (el) moreItemWidth = calcMenuItemWidth(el) || DEFAULT_MORE_ITEM_WIDTH\n if (sliceIndex.value === calcSliceIndex()) return\n const callback = () => {\n sliceIndex.value = -1\n nextTick(() => {\n sliceIndex.value = calcSliceIndex()\n })\n }\n // execute callback directly when first time resize to avoid shaking\n isFirstTimeRender ? callback() : debounce(callback)()\n isFirstTimeRender = false\n }\n\n watch(\n () => props.defaultActive,\n (currentActive) => {\n if (!items.value[currentActive]) {\n activeIndex.value = ''\n }\n updateActiveIndex(currentActive)\n }\n )\n\n watch(\n () => props.collapse,\n (value) => {\n if (value) openedMenus.value = []\n }\n )\n\n watch(items.value, initMenu)\n\n let resizeStopper: UseResizeObserverReturn['stop']\n watchEffect(() => {\n if (props.mode === 'horizontal' && props.ellipsis)\n resizeStopper = useResizeObserver(menu, handleResize).stop\n else resizeStopper?.()\n })\n\n const mouseInChild = ref(false)\n\n // provide\n {\n const addSubMenu: MenuProvider['addSubMenu'] = (item) => {\n subMenus.value[item.index] = item\n }\n\n const removeSubMenu: MenuProvider['removeSubMenu'] = (item) => {\n delete subMenus.value[item.index]\n }\n\n const addMenuItem: MenuProvider['addMenuItem'] = (item) => {\n items.value[item.index] = item\n }\n\n const removeMenuItem: MenuProvider['removeMenuItem'] = (item) => {\n delete items.value[item.index]\n }\n\n provide<MenuProvider>(\n MENU_INJECTION_KEY,\n reactive({\n props,\n openedMenus,\n items,\n subMenus,\n activeIndex,\n isMenuPopup,\n\n addMenuItem,\n removeMenuItem,\n addSubMenu,\n removeSubMenu,\n openMenu,\n closeMenu,\n handleMenuItemClick,\n handleSubMenuClick,\n }) as unknown as MenuProvider // Avoid TS2589\n )\n\n provide<SubMenuProvider>(`${SUB_MENU_INJECTION_KEY}${instance.uid}`, {\n addSubMenu,\n removeSubMenu,\n mouseInChild,\n level: 0,\n })\n }\n\n // lifecycle\n onMounted(() => {\n if (props.mode === 'horizontal') {\n new Menubar(instance.vnode.el!, nsMenu.namespace.value)\n }\n })\n\n {\n const open = (index: string) => {\n const { indexPath } = subMenus.value[index]\n indexPath.forEach((i) => openMenu(i, indexPath))\n }\n\n expose({\n open,\n close,\n updateActiveIndex,\n handleResize,\n })\n }\n\n const ulStyle = useMenuCssVar(props, 0)\n\n return () => {\n let slot: VNodeArrayChildren = slots.default?.() ?? []\n const vShowMore: VNode[] = []\n\n if (props.mode === 'horizontal' && menu.value) {\n const originalSlot = (\n flattedChildren(slot) as VNodeArrayChildren\n ).filter((vnode) => {\n // Filter text and comment nodes (https://github.com/vuejs/core/blob/c875019d49b4c36a88d929ccadc31ad414747c7b/packages/shared/src/shapeFlags.ts#L5)\n return (vnode as VNode)?.shapeFlag !== 8\n })\n const slotDefault =\n sliceIndex.value === -1\n ? originalSlot\n : originalSlot.slice(0, sliceIndex.value)\n\n const slotMore =\n sliceIndex.value === -1 ? [] : originalSlot.slice(sliceIndex.value)\n\n if (slotMore?.length && props.ellipsis) {\n slot = slotDefault\n vShowMore.push(\n h(\n ElSubMenu,\n {\n ref: subMenu,\n index: 'sub-menu-more',\n class: nsSubMenu.e('hide-arrow'),\n popperOffset: props.popperOffset,\n },\n {\n title: () =>\n h(\n ElIcon,\n {\n class: nsSubMenu.e('icon-more'),\n },\n {\n default: () => h(props.ellipsisIcon as Component),\n }\n ),\n default: () => slotMore,\n }\n )\n )\n }\n }\n\n const directives: DirectiveArguments = props.closeOnClickOutside\n ? [\n [\n vClickoutside,\n () => {\n if (!openedMenus.value.length) return\n\n if (!mouseInChild.value) {\n openedMenus.value.forEach((openedMenu) =>\n emit('close', openedMenu, getIndexPath(openedMenu))\n )\n\n openedMenus.value = []\n }\n },\n ],\n ]\n : []\n\n const vMenu = withDirectives(\n h(\n 'ul',\n {\n key: String(props.collapse),\n role: 'menubar',\n ref: menu,\n style: ulStyle.value,\n class: {\n [nsMenu.b()]: true,\n [nsMenu.m(props.mode)]: true,\n [nsMenu.m('collapse')]: props.collapse,\n },\n },\n [...slot, ...vShowMore]\n ),\n directives\n )\n\n if (props.collapseTransition && props.mode === 'vertical') {\n return h(ElMenuCollapseTransition, () => vMenu)\n }\n\n return vMenu\n }\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAoDA,MAAa,YAAYA,gBAAAA,WAAW;;;;CAIlC,MAAM;EACJ,MAAM;EACN,QAAQ,CAAC,cAAc,UAAU;EACjC,SAAS;CACX;;;;CAIA,eAAe;EACb,MAAM;EACN,S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AE/B,IAAI,CAAC,aAAa,OAAO;KACvB,YAAY,MAAM,SAAS,eACzB,KAAK,SAAS,YAAY,aAAa,UAAU,CAAC,CACpD;KAEA,YAAY,QAAQ,CAAC;IACvB;GACF,CACF,CACF,IACA,CAAC;GAEL,MAAM,SAAA,GAAQC,IAAAA,eAAAA,EAAAA,GACZJ,IAAAA,EAAAA,CACE,MACA;IACE,KAAK,OAAO,MAAM,QAAQ;IAC1B,MAAM;IACN,KAAK;IACL,OAAO,QAAQ;IACf,OAAO;MACJ,OAAO,EAAE,IAAI;MACb,OAAO,EAAE,MAAM,IAAI,IAAI;MACvB,OAAO,EAAE,UAAU,IAAI,MAAM;IAChC;GACF,GACA,CAAC,GAAG,MAAM,GAAG,SAAS,CACxB,GACA,UACF;GAEA,IAAI,MAAM,sBAAsB,MAAM,SAAS,YAC7C,QAAA,GAAOA,IAAAA,EAAAA,CAAEK,iCAAAA,eAAgC,KAAK;GAGhD,OAAO;EACT;CACF;AACF,CAAC"}
@@ -124,10 +124,10 @@ declare const _default: _$vue.DefineComponent<ExtractPropTypes<{
124
124
  __epPropKey: true;
125
125
  };
126
126
  }>> & Readonly<{}>, {
127
- readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
128
127
  readonly disabled: boolean;
129
128
  readonly popperClass: ClassValue;
130
129
  readonly popperStyle: StyleValue;
130
+ readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
131
131
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
132
132
  //#endregion
133
133
  export { SubMenuProps, SubMenuPropsPublic, _default as default, subMenuProps };
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_aria = require("../../../../constants/aria.js");
6
- const require_aria$1 = require("../../../../utils/dom/aria.js");
5
+ const require_aria = require("../../../../utils/dom/aria.js");
6
+ const require_aria$1 = require("../../../../constants/aria.js");
7
7
  const require_event = require("../../../../utils/dom/event.js");
8
8
  const require_submenu = require("./submenu.js");
9
9
  //#region ../../packages/components/menu/src/utils/menu-item.ts
@@ -24,22 +24,22 @@ var MenuItem = class {
24
24
  const code = require_event.getEventCode(event);
25
25
  let prevDef = false;
26
26
  switch (code) {
27
- case require_aria.EVENT_CODE.down:
28
- require_aria$1.triggerEvent(event.currentTarget, "mouseenter");
27
+ case require_aria$1.EVENT_CODE.down:
28
+ require_aria.triggerEvent(event.currentTarget, "mouseenter");
29
29
  this.submenu?.gotoSubIndex(0);
30
30
  prevDef = true;
31
31
  break;
32
- case require_aria.EVENT_CODE.up:
33
- require_aria$1.triggerEvent(event.currentTarget, "mouseenter");
32
+ case require_aria$1.EVENT_CODE.up:
33
+ require_aria.triggerEvent(event.currentTarget, "mouseenter");
34
34
  this.submenu?.gotoSubIndex(this.submenu.subMenuItems.length - 1);
35
35
  prevDef = true;
36
36
  break;
37
- case require_aria.EVENT_CODE.tab:
38
- require_aria$1.triggerEvent(event.currentTarget, "mouseleave");
37
+ case require_aria$1.EVENT_CODE.tab:
38
+ require_aria.triggerEvent(event.currentTarget, "mouseleave");
39
39
  break;
40
- case require_aria.EVENT_CODE.enter:
41
- case require_aria.EVENT_CODE.numpadEnter:
42
- case require_aria.EVENT_CODE.space:
40
+ case require_aria$1.EVENT_CODE.enter:
41
+ case require_aria$1.EVENT_CODE.numpadEnter:
42
+ case require_aria$1.EVENT_CODE.space:
43
43
  prevDef = true;
44
44
  event.currentTarget.click();
45
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.js","names":["SubMenu","getEventCode","EVENT_CODE"],"sources":["../../../../../../../packages/components/menu/src/utils/menu-item.ts"],"sourcesContent":["import { getEventCode, triggerEvent } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport SubMenu from './submenu'\n\nclass MenuItem {\n public submenu: SubMenu | null\n constructor(\n public domNode: HTMLElement,\n namespace: string\n ) {\n this.submenu = null\n this.init(namespace)\n }\n\n init(namespace: string): void {\n this.domNode.setAttribute('tabindex', '0')\n const menuChild = this.domNode.querySelector(`.${namespace}-menu`)\n if (menuChild) {\n this.submenu = new SubMenu(this, menuChild)\n }\n this.addListeners()\n }\n\n addListeners() {\n this.domNode.addEventListener('keydown', (event: KeyboardEvent) => {\n const code = getEventCode(event)\n let prevDef = false\n\n switch (code) {\n case EVENT_CODE.down: {\n triggerEvent(event.currentTarget as HTMLElement, 'mouseenter')\n this.submenu?.gotoSubIndex(0)\n prevDef = true\n break\n }\n case EVENT_CODE.up: {\n triggerEvent(event.currentTarget as HTMLElement, 'mouseenter')\n this.submenu?.gotoSubIndex(this.submenu.subMenuItems.length - 1)\n prevDef = true\n break\n }\n case EVENT_CODE.tab: {\n triggerEvent(event.currentTarget as HTMLElement, 'mouseleave')\n break\n }\n case EVENT_CODE.enter:\n case EVENT_CODE.numpadEnter:\n case EVENT_CODE.space: {\n prevDef = true\n ;(event.currentTarget as HTMLElement).click()\n break\n }\n }\n if (prevDef) {\n event.preventDefault()\n }\n })\n }\n}\n\nexport default MenuItem\n"],"mappings":";;;;;;;;;AAIA,IAAM,WAAN,MAAe;CAEb,YACE,SACA,WACA;EAFO,KAAA,UAAA;EAGP,KAAK,UAAU;EACf,KAAK,KAAK,SAAS;CACrB;CAEA,KAAK,WAAyB;EAC5B,KAAK,QAAQ,aAAa,YAAY,GAAG;EACzC,MAAM,YAAY,KAAK,QAAQ,cAAc,IAAI,UAAU,MAAM;EACjE,IAAI,WACF,KAAK,UAAU,IAAIA,gBAAAA,QAAQ,MAAM,SAAS;EAE5C,KAAK,aAAa;CACpB;CAEA,eAAe;EACb,KAAK,QAAQ,iBAAiB,YAAY,UAAyB;GACjE,MAAM,OAAOC,cAAAA,aAAa,KAAK;GAC/B,IAAI,UAAU;GAEd,QAAQ,MAAR;IACE,KAAKC,aAAAA,WAAW;KACd,eAAA,aAAa,MAAM,eAA8B,YAAY;KAC7D,KAAK,SAAS,aAAa,CAAC;KAC5B,UAAU;KACV;IAEF,KAAKA,aAAAA,WAAW;KACd,eAAA,aAAa,MAAM,eAA8B,YAAY;KAC7D,KAAK,SAAS,aAAa,KAAK,QAAQ,aAAa,SAAS,CAAC;KAC/D,UAAU;KACV;IAEF,KAAKA,aAAAA,WAAW;KACd,eAAA,aAAa,MAAM,eAA8B,YAAY;KAC7D;IAEF,KAAKA,aAAAA,WAAW;IAChB,KAAKA,aAAAA,WAAW;IAChB,KAAKA,aAAAA,WAAW;KACd,UAAU;KACT,MAAO,cAA8B,MAAM;GAGhD;GACA,IAAI,SACF,MAAM,eAAe;EAEzB,CAAC;CACH;AACF"}
1
+ {"version":3,"file":"menu-item.js","names":["SubMenu","getEventCode","EVENT_CODE"],"sources":["../../../../../../../packages/components/menu/src/utils/menu-item.ts"],"sourcesContent":["import { getEventCode, triggerEvent } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport SubMenu from './submenu'\n\nclass MenuItem {\n public submenu: SubMenu | null\n constructor(\n public domNode: HTMLElement,\n namespace: string\n ) {\n this.submenu = null\n this.init(namespace)\n }\n\n init(namespace: string): void {\n this.domNode.setAttribute('tabindex', '0')\n const menuChild = this.domNode.querySelector(`.${namespace}-menu`)\n if (menuChild) {\n this.submenu = new SubMenu(this, menuChild)\n }\n this.addListeners()\n }\n\n addListeners() {\n this.domNode.addEventListener('keydown', (event: KeyboardEvent) => {\n const code = getEventCode(event)\n let prevDef = false\n\n switch (code) {\n case EVENT_CODE.down: {\n triggerEvent(event.currentTarget as HTMLElement, 'mouseenter')\n this.submenu?.gotoSubIndex(0)\n prevDef = true\n break\n }\n case EVENT_CODE.up: {\n triggerEvent(event.currentTarget as HTMLElement, 'mouseenter')\n this.submenu?.gotoSubIndex(this.submenu.subMenuItems.length - 1)\n prevDef = true\n break\n }\n case EVENT_CODE.tab: {\n triggerEvent(event.currentTarget as HTMLElement, 'mouseleave')\n break\n }\n case EVENT_CODE.enter:\n case EVENT_CODE.numpadEnter:\n case EVENT_CODE.space: {\n prevDef = true\n ;(event.currentTarget as HTMLElement).click()\n break\n }\n }\n if (prevDef) {\n event.preventDefault()\n }\n })\n }\n}\n\nexport default MenuItem\n"],"mappings":";;;;;;;;;AAIA,IAAM,WAAN,MAAe;CAEb,YACE,SACA,WACA;EAFO,KAAA,UAAA;EAGP,KAAK,UAAU;EACf,KAAK,KAAK,SAAS;CACrB;CAEA,KAAK,WAAyB;EAC5B,KAAK,QAAQ,aAAa,YAAY,GAAG;EACzC,MAAM,YAAY,KAAK,QAAQ,cAAc,IAAI,UAAU,MAAM;EACjE,IAAI,WACF,KAAK,UAAU,IAAIA,gBAAAA,QAAQ,MAAM,SAAS;EAE5C,KAAK,aAAa;CACpB;CAEA,eAAe;EACb,KAAK,QAAQ,iBAAiB,YAAY,UAAyB;GACjE,MAAM,OAAOC,cAAAA,aAAa,KAAK;GAC/B,IAAI,UAAU;GAEd,QAAQ,MAAR;IACE,KAAKC,eAAAA,WAAW;KACd,aAAA,aAAa,MAAM,eAA8B,YAAY;KAC7D,KAAK,SAAS,aAAa,CAAC;KAC5B,UAAU;KACV;IAEF,KAAKA,eAAAA,WAAW;KACd,aAAA,aAAa,MAAM,eAA8B,YAAY;KAC7D,KAAK,SAAS,aAAa,KAAK,QAAQ,aAAa,SAAS,CAAC;KAC/D,UAAU;KACV;IAEF,KAAKA,eAAAA,WAAW;KACd,aAAA,aAAa,MAAM,eAA8B,YAAY;KAC7D;IAEF,KAAKA,eAAAA,WAAW;IAChB,KAAKA,eAAAA,WAAW;IAChB,KAAKA,eAAAA,WAAW;KACd,UAAU;KACT,MAAO,cAA8B,MAAM;GAGhD;GACA,IAAI,SACF,MAAM,eAAe;EAEzB,CAAC;CACH;AACF"}
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_aria = require("../../../../constants/aria.js");
6
- const require_aria$1 = require("../../../../utils/dom/aria.js");
5
+ const require_aria = require("../../../../utils/dom/aria.js");
6
+ const require_aria$1 = require("../../../../constants/aria.js");
7
7
  const require_event = require("../../../../utils/dom/event.js");
8
8
  //#region ../../packages/components/menu/src/utils/submenu.ts
9
9
  var SubMenu = class {
@@ -27,20 +27,20 @@ var SubMenu = class {
27
27
  const code = require_event.getEventCode(event);
28
28
  let prevDef = false;
29
29
  switch (code) {
30
- case require_aria.EVENT_CODE.down:
30
+ case require_aria$1.EVENT_CODE.down:
31
31
  this.gotoSubIndex(this.subIndex + 1);
32
32
  prevDef = true;
33
33
  break;
34
- case require_aria.EVENT_CODE.up:
34
+ case require_aria$1.EVENT_CODE.up:
35
35
  this.gotoSubIndex(this.subIndex - 1);
36
36
  prevDef = true;
37
37
  break;
38
- case require_aria.EVENT_CODE.tab:
39
- require_aria$1.triggerEvent(parentNode, "mouseleave");
38
+ case require_aria$1.EVENT_CODE.tab:
39
+ require_aria.triggerEvent(parentNode, "mouseleave");
40
40
  break;
41
- case require_aria.EVENT_CODE.enter:
42
- case require_aria.EVENT_CODE.numpadEnter:
43
- case require_aria.EVENT_CODE.space:
41
+ case require_aria$1.EVENT_CODE.enter:
42
+ case require_aria$1.EVENT_CODE.numpadEnter:
43
+ case require_aria$1.EVENT_CODE.space:
44
44
  prevDef = true;
45
45
  event.currentTarget.click();
46
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"submenu.js","names":["getEventCode","EVENT_CODE"],"sources":["../../../../../../../packages/components/menu/src/utils/submenu.ts"],"sourcesContent":["import { getEventCode, triggerEvent } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\n\nimport type MenuItem from './menu-item'\n\nclass SubMenu {\n public subMenuItems: NodeListOf<HTMLLIElement>\n public subIndex: number\n constructor(\n public parent: MenuItem,\n public domNode: ParentNode\n ) {\n this.subIndex = 0\n this.subMenuItems = this.domNode.querySelectorAll('li')\n this.addListeners()\n }\n\n gotoSubIndex(idx: number) {\n if (idx === this.subMenuItems.length) {\n idx = 0\n } else if (idx < 0) {\n idx = this.subMenuItems.length - 1\n }\n this.subMenuItems[idx].focus()\n this.subIndex = idx\n }\n\n addListeners() {\n const parentNode = this.parent.domNode\n this.subMenuItems.forEach((el) => {\n el.addEventListener('keydown', (event: KeyboardEvent) => {\n const code = getEventCode(event)\n let prevDef = false\n\n switch (code) {\n case EVENT_CODE.down: {\n this.gotoSubIndex(this.subIndex + 1)\n prevDef = true\n break\n }\n case EVENT_CODE.up: {\n this.gotoSubIndex(this.subIndex - 1)\n prevDef = true\n break\n }\n case EVENT_CODE.tab: {\n triggerEvent(parentNode, 'mouseleave')\n break\n }\n case EVENT_CODE.enter:\n case EVENT_CODE.numpadEnter:\n case EVENT_CODE.space: {\n prevDef = true\n ;(event.currentTarget as HTMLElement).click()\n break\n }\n }\n if (prevDef) {\n event.preventDefault()\n event.stopPropagation()\n }\n return false\n })\n })\n }\n}\n\nexport default SubMenu\n"],"mappings":";;;;;;;;AAKA,IAAM,UAAN,MAAc;CAGZ,YACE,QACA,SACA;EAFO,KAAA,SAAA;EACA,KAAA,UAAA;EAEP,KAAK,WAAW;EAChB,KAAK,eAAe,KAAK,QAAQ,iBAAiB,IAAI;EACtD,KAAK,aAAa;CACpB;CAEA,aAAa,KAAa;EACxB,IAAI,QAAQ,KAAK,aAAa,QAC5B,MAAM;OACD,IAAI,MAAM,GACf,MAAM,KAAK,aAAa,SAAS;EAEnC,KAAK,aAAa,IAAI,CAAC,MAAM;EAC7B,KAAK,WAAW;CAClB;CAEA,eAAe;EACb,MAAM,aAAa,KAAK,OAAO;EAC/B,KAAK,aAAa,SAAS,OAAO;GAChC,GAAG,iBAAiB,YAAY,UAAyB;IACvD,MAAM,OAAOA,cAAAA,aAAa,KAAK;IAC/B,IAAI,UAAU;IAEd,QAAQ,MAAR;KACE,KAAKC,aAAAA,WAAW;MACd,KAAK,aAAa,KAAK,WAAW,CAAC;MACnC,UAAU;MACV;KAEF,KAAKA,aAAAA,WAAW;MACd,KAAK,aAAa,KAAK,WAAW,CAAC;MACnC,UAAU;MACV;KAEF,KAAKA,aAAAA,WAAW;MACd,eAAA,aAAa,YAAY,YAAY;MACrC;KAEF,KAAKA,aAAAA,WAAW;KAChB,KAAKA,aAAAA,WAAW;KAChB,KAAKA,aAAAA,WAAW;MACd,UAAU;MACT,MAAO,cAA8B,MAAM;IAGhD;IACA,IAAI,SAAS;KACX,MAAM,eAAe;KACrB,MAAM,gBAAgB;IACxB;IACA,OAAO;GACT,CAAC;EACH,CAAC;CACH;AACF"}
1
+ {"version":3,"file":"submenu.js","names":["getEventCode","EVENT_CODE"],"sources":["../../../../../../../packages/components/menu/src/utils/submenu.ts"],"sourcesContent":["import { getEventCode, triggerEvent } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\n\nimport type MenuItem from './menu-item'\n\nclass SubMenu {\n public subMenuItems: NodeListOf<HTMLLIElement>\n public subIndex: number\n constructor(\n public parent: MenuItem,\n public domNode: ParentNode\n ) {\n this.subIndex = 0\n this.subMenuItems = this.domNode.querySelectorAll('li')\n this.addListeners()\n }\n\n gotoSubIndex(idx: number) {\n if (idx === this.subMenuItems.length) {\n idx = 0\n } else if (idx < 0) {\n idx = this.subMenuItems.length - 1\n }\n this.subMenuItems[idx].focus()\n this.subIndex = idx\n }\n\n addListeners() {\n const parentNode = this.parent.domNode\n this.subMenuItems.forEach((el) => {\n el.addEventListener('keydown', (event: KeyboardEvent) => {\n const code = getEventCode(event)\n let prevDef = false\n\n switch (code) {\n case EVENT_CODE.down: {\n this.gotoSubIndex(this.subIndex + 1)\n prevDef = true\n break\n }\n case EVENT_CODE.up: {\n this.gotoSubIndex(this.subIndex - 1)\n prevDef = true\n break\n }\n case EVENT_CODE.tab: {\n triggerEvent(parentNode, 'mouseleave')\n break\n }\n case EVENT_CODE.enter:\n case EVENT_CODE.numpadEnter:\n case EVENT_CODE.space: {\n prevDef = true\n ;(event.currentTarget as HTMLElement).click()\n break\n }\n }\n if (prevDef) {\n event.preventDefault()\n event.stopPropagation()\n }\n return false\n })\n })\n }\n}\n\nexport default SubMenu\n"],"mappings":";;;;;;;;AAKA,IAAM,UAAN,MAAc;CAGZ,YACE,QACA,SACA;EAFO,KAAA,SAAA;EACA,KAAA,UAAA;EAEP,KAAK,WAAW;EAChB,KAAK,eAAe,KAAK,QAAQ,iBAAiB,IAAI;EACtD,KAAK,aAAa;CACpB;CAEA,aAAa,KAAa;EACxB,IAAI,QAAQ,KAAK,aAAa,QAC5B,MAAM;OACD,IAAI,MAAM,GACf,MAAM,KAAK,aAAa,SAAS;EAEnC,KAAK,aAAa,IAAI,CAAC,MAAM;EAC7B,KAAK,WAAW;CAClB;CAEA,eAAe;EACb,MAAM,aAAa,KAAK,OAAO;EAC/B,KAAK,aAAa,SAAS,OAAO;GAChC,GAAG,iBAAiB,YAAY,UAAyB;IACvD,MAAM,OAAOA,cAAAA,aAAa,KAAK;IAC/B,IAAI,UAAU;IAEd,QAAQ,MAAR;KACE,KAAKC,eAAAA,WAAW;MACd,KAAK,aAAa,KAAK,WAAW,CAAC;MACnC,UAAU;MACV;KAEF,KAAKA,eAAAA,WAAW;MACd,KAAK,aAAa,KAAK,WAAW,CAAC;MACnC,UAAU;MACV;KAEF,KAAKA,eAAAA,WAAW;MACd,aAAA,aAAa,YAAY,YAAY;MACrC;KAEF,KAAKA,eAAAA,WAAW;KAChB,KAAKA,eAAAA,WAAW;KAChB,KAAKA,eAAAA,WAAW;MACd,UAAU;MACT,MAAO,cAA8B,MAAM;IAGhD;IACA,IAAI,SAAS;KACX,MAAM,eAAe;KACrB,MAAM,gBAAgB;IACxB;IACA,OAAO;GACT,CAAC;EACH,CAAC;CACH;AACF"}
@@ -130,7 +130,7 @@ declare const messageProps: {
130
130
  readonly prototype: any;
131
131
  }) | null)[], unknown, unknown, undefined, boolean>;
132
132
  readonly showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
133
- readonly type: EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "error" | "info", unknown, "info", boolean>;
133
+ readonly type: EpPropFinalized<StringConstructor, "error" | "primary" | "success" | "warning" | "info", unknown, "info", boolean>;
134
134
  readonly plain: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
135
135
  readonly offset: EpPropFinalized<NumberConstructor, unknown, unknown, 16, boolean>;
136
136
  readonly placement: EpPropFinalized<StringConstructor, "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right", unknown, undefined, boolean>;
@@ -18,20 +18,20 @@ declare const __VLS_base: _$vue.DefineComponent<MessageProps, {
18
18
  }, string, _$vue.PublicProps, Readonly<MessageProps> & Readonly<{
19
19
  onDestroy?: (() => any) | undefined;
20
20
  }>, {
21
- type: "primary" | "success" | "warning" | "error" | "info";
22
- message: string | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
23
- [key: string]: any;
24
- }> | (() => _$vue.VNode);
21
+ id: string;
22
+ type: "error" | "primary" | "success" | "warning" | "info";
23
+ customClass: string | false | Record<string, any> | ClassValue[] | null;
24
+ onClose: () => void;
25
+ placement: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
25
26
  zIndex: number;
26
27
  offset: number;
27
- onClose: () => void;
28
- id: string;
29
28
  icon: IconPropType;
30
- placement: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
29
+ message: string | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
30
+ [key: string]: any;
31
+ }> | (() => _$vue.VNode);
32
+ duration: number;
31
33
  plain: boolean;
32
34
  showClose: boolean;
33
- duration: number;
34
- customClass: string | false | Record<string, any> | ClassValue[] | null;
35
35
  dangerouslyUseHTMLString: boolean;
36
36
  grouping: boolean;
37
37
  repeatNum: number;
@@ -230,7 +230,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
230
230
  autofocus: _$vue.Ref<boolean, boolean>;
231
231
  title: _$vue.Ref<string | undefined, string | undefined>;
232
232
  message: _$vue.Ref<string, string>;
233
- type: _$vue.Ref<"" | "primary" | "success" | "warning" | "error" | "info", "" | "primary" | "success" | "warning" | "error" | "info">;
233
+ type: _$vue.Ref<"" | "error" | "primary" | "success" | "warning" | "info", "" | "error" | "primary" | "success" | "warning" | "info">;
234
234
  icon: _$vue.Ref<string | _$vue.FunctionalComponent<any, {}, any, {}> | {
235
235
  new (...args: any[]): any;
236
236
  __isFragment?: never;
@@ -4032,8 +4032,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4032
4032
  dangerouslyUseHTMLString: _$vue.Ref<boolean, boolean>;
4033
4033
  confirmButtonText: _$vue.Ref<string, string>;
4034
4034
  cancelButtonText: _$vue.Ref<string, string>;
4035
- confirmButtonType: _$vue.Ref<"" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger", "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger">;
4036
- cancelButtonType: _$vue.Ref<"" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger", "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger">;
4035
+ confirmButtonType: _$vue.Ref<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger", "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
4036
+ cancelButtonType: _$vue.Ref<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger", "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
4037
4037
  confirmButtonLoading: _$vue.Ref<boolean, boolean>;
4038
4038
  cancelButtonLoading: _$vue.Ref<boolean, boolean>;
4039
4039
  confirmButtonLoadingIcon: _$vue.Ref<string | _$vue.FunctionalComponent<any, {}, any, {}> | {
@@ -4602,14 +4602,15 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4602
4602
  }>, {
4603
4603
  ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
4604
4604
  size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
4605
- type: _$vue.ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger">;
4605
+ type: _$vue.ComputedRef<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
4606
4606
  disabled: _$vue.ComputedRef<boolean>;
4607
4607
  shouldAddSpace: _$vue.ComputedRef<boolean>;
4608
4608
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
4609
4609
  click: (evt: MouseEvent) => void;
4610
4610
  }, _$vue.PublicProps, {
4611
- type: "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger";
4612
4611
  disabled: boolean;
4612
+ type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
4613
+ tag: string | _$vue.Component;
4613
4614
  text: boolean;
4614
4615
  round: boolean;
4615
4616
  dashed: boolean;
@@ -4617,7 +4618,6 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4617
4618
  loadingIcon: IconPropType;
4618
4619
  plain: boolean;
4619
4620
  autoInsertSpace: boolean;
4620
- tag: string | _$vue.Component;
4621
4621
  }, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
4622
4622
  P: {};
4623
4623
  B: {};
@@ -4630,12 +4630,13 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4630
4630
  }>, {
4631
4631
  ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
4632
4632
  size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
4633
- type: _$vue.ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger">;
4633
+ type: _$vue.ComputedRef<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
4634
4634
  disabled: _$vue.ComputedRef<boolean>;
4635
4635
  shouldAddSpace: _$vue.ComputedRef<boolean>;
4636
4636
  }, {}, {}, {}, {
4637
- type: "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger";
4638
4637
  disabled: boolean;
4638
+ type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
4639
+ tag: string | _$vue.Component;
4639
4640
  text: boolean;
4640
4641
  round: boolean;
4641
4642
  dashed: boolean;
@@ -4643,7 +4644,6 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4643
4644
  loadingIcon: IconPropType;
4644
4645
  plain: boolean;
4645
4646
  autoInsertSpace: boolean;
4646
- tag: string | _$vue.Component;
4647
4647
  }>;
4648
4648
  __isFragment?: never;
4649
4649
  __isTeleport?: never;
@@ -4653,14 +4653,15 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4653
4653
  }>, {
4654
4654
  ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
4655
4655
  size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
4656
- type: _$vue.ComputedRef<"" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger">;
4656
+ type: _$vue.ComputedRef<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
4657
4657
  disabled: _$vue.ComputedRef<boolean>;
4658
4658
  shouldAddSpace: _$vue.ComputedRef<boolean>;
4659
4659
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
4660
4660
  click: (evt: MouseEvent) => void;
4661
4661
  }, string, {
4662
- type: "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger";
4663
4662
  disabled: boolean;
4663
+ type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
4664
+ tag: string | _$vue.Component;
4664
4665
  text: boolean;
4665
4666
  round: boolean;
4666
4667
  dashed: boolean;
@@ -4668,7 +4669,6 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4668
4669
  loadingIcon: IconPropType;
4669
4670
  plain: boolean;
4670
4671
  autoInsertSpace: boolean;
4671
- tag: string | _$vue.Component;
4672
4672
  }, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
4673
4673
  $slots: {
4674
4674
  loading?: (props: {}) => any;
@@ -4681,7 +4681,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4681
4681
  setPropsDefaults: (defaults: {
4682
4682
  readonly size?: "" | "default" | "small" | "large" | (() => "" | "default" | "small" | "large") | undefined;
4683
4683
  readonly disabled?: boolean | (() => boolean) | undefined;
4684
- readonly type?: "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger" | (() => "" | "default" | "primary" | "success" | "warning" | "info" | "text" | "danger") | undefined;
4684
+ readonly type?: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger" | (() => "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
4685
4685
  readonly icon?: string | _$vue.FunctionalComponent<any, {}, any, {}> | {
4686
4686
  new (...args: any[]): any;
4687
4687
  __isFragment?: never;
@@ -4745,22 +4745,22 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4745
4745
  }>, {
4746
4746
  loop: boolean;
4747
4747
  trapped: boolean;
4748
- focusStartEl: HTMLElement | "first" | "container";
4748
+ focusStartEl: HTMLElement | "container" | "first";
4749
4749
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
4750
4750
  ElInput: SFCWithInstall<{
4751
4751
  new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<InputProps> & Readonly<{
4752
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
4752
4753
  onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
4753
4754
  onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
4754
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
4755
4755
  onInput?: ((value: string) => any) | undefined;
4756
- onFocus?: ((evt: FocusEvent) => any) | undefined;
4757
4756
  onBlur?: ((evt: FocusEvent) => any) | undefined;
4758
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
4759
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
4760
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
4757
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
4758
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
4761
4759
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
4762
4760
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
4763
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
4761
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
4762
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
4763
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
4764
4764
  }>, {
4765
4765
  input: _$vue.ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
4766
4766
  textarea: _$vue.ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
@@ -4775,28 +4775,28 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4775
4775
  clear: (evt?: MouseEvent) => void;
4776
4776
  resizeTextarea: () => void;
4777
4777
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
4778
+ "update:modelValue": (value: string) => void;
4778
4779
  change: (value: string, evt?: Event | undefined) => void;
4779
4780
  clear: (evt: MouseEvent | undefined) => void;
4780
- "update:modelValue": (value: string) => void;
4781
4781
  input: (value: string) => void;
4782
- focus: (evt: FocusEvent) => void;
4783
4782
  blur: (evt: FocusEvent) => void;
4784
- mouseleave: (evt: MouseEvent) => void;
4785
- mouseenter: (evt: MouseEvent) => void;
4786
- keydown: (evt: Event | KeyboardEvent) => void;
4783
+ focus: (evt: FocusEvent) => void;
4784
+ compositionend: (evt: CompositionEvent) => void;
4787
4785
  compositionstart: (evt: CompositionEvent) => void;
4788
4786
  compositionupdate: (evt: CompositionEvent) => void;
4789
- compositionend: (evt: CompositionEvent) => void;
4787
+ keydown: (evt: Event | KeyboardEvent) => void;
4788
+ mouseenter: (evt: MouseEvent) => void;
4789
+ mouseleave: (evt: MouseEvent) => void;
4790
4790
  }, _$vue.PublicProps, {
4791
- type: InputType;
4792
- disabled: boolean;
4791
+ validateEvent: boolean;
4793
4792
  modelValue: string | number | null;
4793
+ disabled: boolean;
4794
+ tabindex: string | number;
4795
+ type: InputType;
4796
+ clearIcon: IconPropType;
4794
4797
  modelModifiers: InputModelModifiers;
4795
4798
  autocomplete: string;
4796
- clearIcon: IconPropType;
4797
4799
  wordLimitPosition: "inside" | "outside";
4798
- tabindex: string | number;
4799
- validateEvent: boolean;
4800
4800
  inputStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
4801
4801
  rows: number;
4802
4802
  }, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
@@ -4807,18 +4807,18 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4807
4807
  M: {};
4808
4808
  Defaults: {};
4809
4809
  }, Readonly<InputProps> & Readonly<{
4810
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
4810
4811
  onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
4811
4812
  onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
4812
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
4813
4813
  onInput?: ((value: string) => any) | undefined;
4814
- onFocus?: ((evt: FocusEvent) => any) | undefined;
4815
4814
  onBlur?: ((evt: FocusEvent) => any) | undefined;
4816
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
4817
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
4818
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
4815
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
4816
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
4819
4817
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
4820
4818
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
4821
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
4819
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
4820
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
4821
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
4822
4822
  }>, {
4823
4823
  input: _$vue.ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
4824
4824
  textarea: _$vue.ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
@@ -4833,15 +4833,15 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4833
4833
  clear: (evt?: MouseEvent) => void;
4834
4834
  resizeTextarea: () => void;
4835
4835
  }, {}, {}, {}, {
4836
- type: InputType;
4837
- disabled: boolean;
4836
+ validateEvent: boolean;
4838
4837
  modelValue: string | number | null;
4838
+ disabled: boolean;
4839
+ tabindex: string | number;
4840
+ type: InputType;
4841
+ clearIcon: IconPropType;
4839
4842
  modelModifiers: InputModelModifiers;
4840
4843
  autocomplete: string;
4841
- clearIcon: IconPropType;
4842
4844
  wordLimitPosition: "inside" | "outside";
4843
- tabindex: string | number;
4844
- validateEvent: boolean;
4845
4845
  inputStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
4846
4846
  rows: number;
4847
4847
  }>;
@@ -4849,18 +4849,18 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4849
4849
  __isTeleport?: never;
4850
4850
  __isSuspense?: never;
4851
4851
  } & _$vue.ComponentOptionsBase<Readonly<InputProps> & Readonly<{
4852
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
4852
4853
  onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
4853
4854
  onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
4854
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
4855
4855
  onInput?: ((value: string) => any) | undefined;
4856
- onFocus?: ((evt: FocusEvent) => any) | undefined;
4857
4856
  onBlur?: ((evt: FocusEvent) => any) | undefined;
4858
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
4859
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
4860
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
4857
+ onFocus?: ((evt: FocusEvent) => any) | undefined;
4858
+ onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
4861
4859
  onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
4862
4860
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
4863
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
4861
+ onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
4862
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
4863
+ onMouseleave?: ((evt: MouseEvent) => any) | undefined;
4864
4864
  }>, {
4865
4865
  input: _$vue.ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
4866
4866
  textarea: _$vue.ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
@@ -4875,28 +4875,28 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
4875
4875
  clear: (evt?: MouseEvent) => void;
4876
4876
  resizeTextarea: () => void;
4877
4877
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
4878
+ "update:modelValue": (value: string) => void;
4878
4879
  change: (value: string, evt?: Event | undefined) => void;
4879
4880
  clear: (evt: MouseEvent | undefined) => void;
4880
- "update:modelValue": (value: string) => void;
4881
4881
  input: (value: string) => void;
4882
- focus: (evt: FocusEvent) => void;
4883
4882
  blur: (evt: FocusEvent) => void;
4884
- mouseleave: (evt: MouseEvent) => void;
4885
- mouseenter: (evt: MouseEvent) => void;
4886
- keydown: (evt: Event | KeyboardEvent) => void;
4883
+ focus: (evt: FocusEvent) => void;
4884
+ compositionend: (evt: CompositionEvent) => void;
4887
4885
  compositionstart: (evt: CompositionEvent) => void;
4888
4886
  compositionupdate: (evt: CompositionEvent) => void;
4889
- compositionend: (evt: CompositionEvent) => void;
4887
+ keydown: (evt: Event | KeyboardEvent) => void;
4888
+ mouseenter: (evt: MouseEvent) => void;
4889
+ mouseleave: (evt: MouseEvent) => void;
4890
4890
  }, string, {
4891
- type: InputType;
4892
- disabled: boolean;
4891
+ validateEvent: boolean;
4893
4892
  modelValue: string | number | null;
4893
+ disabled: boolean;
4894
+ tabindex: string | number;
4895
+ type: InputType;
4896
+ clearIcon: IconPropType;
4894
4897
  modelModifiers: InputModelModifiers;
4895
4898
  autocomplete: string;
4896
- clearIcon: IconPropType;
4897
4899
  wordLimitPosition: "inside" | "outside";
4898
- tabindex: string | number;
4899
- validateEvent: boolean;
4900
4900
  inputStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
4901
4901
  rows: number;
4902
4902
  }, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {