@element-plus/nightly 0.0.20240509 → 0.0.20240510

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 (512) hide show
  1. package/dist/index.full.js +4 -4
  2. package/dist/index.full.min.js +5 -5
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +5 -5
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +4 -4
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/nb-no.js +1 -1
  152. package/dist/locale/nb-no.min.js +1 -1
  153. package/dist/locale/nb-no.min.mjs +1 -1
  154. package/dist/locale/nb-no.mjs +1 -1
  155. package/dist/locale/nl.js +1 -1
  156. package/dist/locale/nl.min.js +1 -1
  157. package/dist/locale/nl.min.mjs +1 -1
  158. package/dist/locale/nl.mjs +1 -1
  159. package/dist/locale/pa.js +1 -1
  160. package/dist/locale/pa.min.js +1 -1
  161. package/dist/locale/pa.min.mjs +1 -1
  162. package/dist/locale/pa.mjs +1 -1
  163. package/dist/locale/pl.js +1 -1
  164. package/dist/locale/pl.min.js +1 -1
  165. package/dist/locale/pl.min.mjs +1 -1
  166. package/dist/locale/pl.mjs +1 -1
  167. package/dist/locale/pt-br.js +1 -1
  168. package/dist/locale/pt-br.min.js +1 -1
  169. package/dist/locale/pt-br.min.mjs +1 -1
  170. package/dist/locale/pt-br.mjs +1 -1
  171. package/dist/locale/pt.js +1 -1
  172. package/dist/locale/pt.min.js +1 -1
  173. package/dist/locale/pt.min.mjs +1 -1
  174. package/dist/locale/pt.mjs +1 -1
  175. package/dist/locale/ro.js +1 -1
  176. package/dist/locale/ro.min.js +1 -1
  177. package/dist/locale/ro.min.mjs +1 -1
  178. package/dist/locale/ro.mjs +1 -1
  179. package/dist/locale/ru.js +1 -1
  180. package/dist/locale/ru.min.js +1 -1
  181. package/dist/locale/ru.min.mjs +1 -1
  182. package/dist/locale/ru.mjs +1 -1
  183. package/dist/locale/sk.js +1 -1
  184. package/dist/locale/sk.min.js +1 -1
  185. package/dist/locale/sk.min.mjs +1 -1
  186. package/dist/locale/sk.mjs +1 -1
  187. package/dist/locale/sl.js +1 -1
  188. package/dist/locale/sl.min.js +1 -1
  189. package/dist/locale/sl.min.mjs +1 -1
  190. package/dist/locale/sl.mjs +1 -1
  191. package/dist/locale/sr.js +1 -1
  192. package/dist/locale/sr.min.js +1 -1
  193. package/dist/locale/sr.min.mjs +1 -1
  194. package/dist/locale/sr.mjs +1 -1
  195. package/dist/locale/sv.js +1 -1
  196. package/dist/locale/sv.min.js +1 -1
  197. package/dist/locale/sv.min.mjs +1 -1
  198. package/dist/locale/sv.mjs +1 -1
  199. package/dist/locale/sw.js +1 -1
  200. package/dist/locale/sw.min.js +1 -1
  201. package/dist/locale/sw.min.mjs +1 -1
  202. package/dist/locale/sw.mjs +1 -1
  203. package/dist/locale/ta.js +1 -1
  204. package/dist/locale/ta.min.js +1 -1
  205. package/dist/locale/ta.min.mjs +1 -1
  206. package/dist/locale/ta.mjs +1 -1
  207. package/dist/locale/th.js +1 -1
  208. package/dist/locale/th.min.js +1 -1
  209. package/dist/locale/th.min.mjs +1 -1
  210. package/dist/locale/th.mjs +1 -1
  211. package/dist/locale/tk.js +1 -1
  212. package/dist/locale/tk.min.js +1 -1
  213. package/dist/locale/tk.min.mjs +1 -1
  214. package/dist/locale/tk.mjs +1 -1
  215. package/dist/locale/tr.js +1 -1
  216. package/dist/locale/tr.min.js +1 -1
  217. package/dist/locale/tr.min.mjs +1 -1
  218. package/dist/locale/tr.mjs +1 -1
  219. package/dist/locale/ug-cn.js +1 -1
  220. package/dist/locale/ug-cn.min.js +1 -1
  221. package/dist/locale/ug-cn.min.mjs +1 -1
  222. package/dist/locale/ug-cn.mjs +1 -1
  223. package/dist/locale/uk.js +1 -1
  224. package/dist/locale/uk.min.js +1 -1
  225. package/dist/locale/uk.min.mjs +1 -1
  226. package/dist/locale/uk.mjs +1 -1
  227. package/dist/locale/uz-uz.js +1 -1
  228. package/dist/locale/uz-uz.min.js +1 -1
  229. package/dist/locale/uz-uz.min.mjs +1 -1
  230. package/dist/locale/uz-uz.mjs +1 -1
  231. package/dist/locale/vi.js +1 -1
  232. package/dist/locale/vi.min.js +1 -1
  233. package/dist/locale/vi.min.mjs +1 -1
  234. package/dist/locale/vi.mjs +1 -1
  235. package/dist/locale/zh-cn.js +1 -1
  236. package/dist/locale/zh-cn.min.js +1 -1
  237. package/dist/locale/zh-cn.min.mjs +1 -1
  238. package/dist/locale/zh-cn.mjs +1 -1
  239. package/dist/locale/zh-tw.js +1 -1
  240. package/dist/locale/zh-tw.min.js +1 -1
  241. package/dist/locale/zh-tw.min.mjs +1 -1
  242. package/dist/locale/zh-tw.mjs +1 -1
  243. package/es/components/alert/index.d.ts +4 -4
  244. package/es/components/alert/src/alert.d.ts +1 -1
  245. package/es/components/alert/src/alert.vue.d.ts +4 -4
  246. package/es/components/autocomplete/index.d.ts +65 -65
  247. package/es/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
  248. package/es/components/button/index.d.ts +5 -5
  249. package/es/components/button/src/button.d.ts +1 -1
  250. package/es/components/button/src/button.vue.d.ts +5 -5
  251. package/es/components/button/src/use-button.d.ts +1 -1
  252. package/es/components/calendar/index.d.ts +5 -5
  253. package/es/components/calendar/src/calendar.vue.d.ts +5 -5
  254. package/es/components/card/index.mjs +2 -2
  255. package/es/components/card/src/card.mjs +21 -43
  256. package/es/components/card/src/card.mjs.map +1 -1
  257. package/es/components/card/src/card2.mjs +43 -21
  258. package/es/components/card/src/card2.mjs.map +1 -1
  259. package/es/components/carousel/index.d.ts +1 -1
  260. package/es/components/carousel/src/carousel.vue.d.ts +1 -1
  261. package/es/components/cascader/index.d.ts +130 -130
  262. package/es/components/cascader/src/cascader.vue.d.ts +65 -65
  263. package/es/components/check-tag/index.mjs +2 -2
  264. package/es/components/check-tag/src/check-tag.mjs +35 -17
  265. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  266. package/es/components/check-tag/src/check-tag2.mjs +17 -35
  267. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  268. package/es/components/color-picker/index.d.ts +38 -38
  269. package/es/components/color-picker/src/color-picker.vue.d.ts +38 -38
  270. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
  271. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
  272. package/es/components/date-picker/src/panel-utils.d.ts +34 -34
  273. package/es/components/dialog/index.d.ts +1 -1
  274. package/es/components/dialog/src/dialog.vue.d.ts +1 -1
  275. package/es/components/drawer/index.d.ts +1 -1
  276. package/es/components/drawer/src/drawer.vue.d.ts +1 -1
  277. package/es/components/dropdown/index.d.ts +14 -14
  278. package/es/components/dropdown/index.mjs +2 -2
  279. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  280. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  281. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  282. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  283. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  284. package/es/components/dropdown/src/dropdown.mjs +306 -97
  285. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  286. package/es/components/dropdown/src/dropdown.vue.d.ts +12 -12
  287. package/es/components/dropdown/src/dropdown2.mjs +97 -306
  288. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  289. package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  290. package/es/components/form/index.d.ts +12 -12
  291. package/es/components/form/src/form-item.d.ts +1 -1
  292. package/es/components/form/src/form-item.vue.d.ts +5 -5
  293. package/es/components/image/index.d.ts +1 -1
  294. package/es/components/image/src/image.vue.d.ts +1 -1
  295. package/es/components/index.mjs +6 -6
  296. package/es/components/input/index.d.ts +12 -12
  297. package/es/components/input/src/input.vue.d.ts +12 -12
  298. package/es/components/input-number/index.d.ts +45 -45
  299. package/es/components/input-number/src/input-number.vue.d.ts +45 -45
  300. package/es/components/message/src/message.d.ts +1 -1
  301. package/es/components/message/src/message.vue.d.ts +4 -4
  302. package/es/components/message-box/src/index.vue.d.ts +1 -1
  303. package/es/components/notification/src/notification.d.ts +1 -1
  304. package/es/components/notification/src/notification.vue.d.ts +4 -4
  305. package/es/components/pagination/src/components/jumper.vue.d.ts +12 -12
  306. package/es/components/pagination/src/components/sizes.vue.d.ts +27 -27
  307. package/es/components/popconfirm/index.d.ts +23 -23
  308. package/es/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
  309. package/es/components/popover/index.d.ts +18 -18
  310. package/es/components/popover/src/popover.mjs +1 -1
  311. package/es/components/popover/src/popover.vue.d.ts +18 -18
  312. package/es/components/popper/index.mjs +2 -2
  313. package/es/components/popper/src/content.mjs +93 -137
  314. package/es/components/popper/src/content.mjs.map +1 -1
  315. package/es/components/popper/src/content.vue.d.ts +6 -6
  316. package/es/components/popper/src/content2.mjs +137 -93
  317. package/es/components/popper/src/content2.mjs.map +1 -1
  318. package/es/components/result/index.d.ts +4 -4
  319. package/es/components/result/index.mjs +2 -2
  320. package/es/components/result/src/result.d.ts +1 -1
  321. package/es/components/result/src/result.mjs +63 -29
  322. package/es/components/result/src/result.mjs.map +1 -1
  323. package/es/components/result/src/result.vue.d.ts +4 -4
  324. package/es/components/result/src/result2.mjs +29 -63
  325. package/es/components/result/src/result2.mjs.map +1 -1
  326. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  327. package/es/components/select/index.d.ts +27 -27
  328. package/es/components/select/src/select.vue.d.ts +27 -27
  329. package/es/components/select/src/useSelect.d.ts +25 -25
  330. package/es/components/select-v2/index.d.ts +54 -54
  331. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  332. package/es/components/select-v2/src/select.vue.d.ts +27 -27
  333. package/es/components/select-v2/src/useSelect.d.ts +25 -25
  334. package/es/components/slider/index.d.ts +75 -75
  335. package/es/components/slider/src/button.vue.d.ts +6 -6
  336. package/es/components/slider/src/composables/use-slide.d.ts +24 -24
  337. package/es/components/slider/src/slider.vue.d.ts +75 -75
  338. package/es/components/steps/index.d.ts +16 -16
  339. package/es/components/steps/src/item.d.ts +1 -1
  340. package/es/components/steps/src/item.vue.d.ts +4 -4
  341. package/es/components/steps/src/steps.d.ts +2 -2
  342. package/es/components/steps/src/steps.vue.d.ts +8 -8
  343. package/es/components/table/index.d.ts +1 -1
  344. package/es/components/table/src/filter-panel.vue.d.ts +12 -12
  345. package/es/components/table/src/store/watcher.mjs +2 -2
  346. package/es/components/table/src/store/watcher.mjs.map +1 -1
  347. package/es/components/table/src/table.vue.d.ts +1 -1
  348. package/es/components/tag/index.d.ts +1 -1
  349. package/es/components/tag/src/tag.vue.d.ts +1 -1
  350. package/es/components/time-picker/src/common/picker.vue.d.ts +34 -34
  351. package/es/components/time-select/index.d.ts +114 -114
  352. package/es/components/time-select/src/time-select.vue.d.ts +57 -57
  353. package/es/components/tooltip/index.d.ts +6 -6
  354. package/es/components/tooltip/src/content.mjs +1 -1
  355. package/es/components/tooltip/src/content.vue.d.ts +6 -6
  356. package/es/components/tooltip/src/content2.mjs +1 -1
  357. package/es/components/tooltip/src/tooltip.vue.d.ts +6 -6
  358. package/es/components/tooltip-v2/index.d.ts +4 -4
  359. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
  360. package/es/components/tour/index.d.ts +11 -11
  361. package/es/components/tour/src/content.vue.d.ts +1 -1
  362. package/es/components/tour/src/step.vue.d.ts +5 -5
  363. package/es/components/tour/src/tour.vue.d.ts +1 -1
  364. package/es/components/transfer/index.d.ts +65 -65
  365. package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  366. package/es/components/transfer/src/transfer.vue.d.ts +65 -65
  367. package/es/components/tree-v2/index.d.ts +1 -1
  368. package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  369. package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
  370. package/es/components/upload/index.d.ts +5 -5
  371. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  372. package/es/components/upload/src/upload.vue.d.ts +5 -5
  373. package/es/index.mjs +6 -6
  374. package/es/version.d.ts +1 -1
  375. package/es/version.mjs +1 -1
  376. package/es/version.mjs.map +1 -1
  377. package/lib/components/alert/index.d.ts +4 -4
  378. package/lib/components/alert/src/alert.d.ts +1 -1
  379. package/lib/components/alert/src/alert.vue.d.ts +4 -4
  380. package/lib/components/autocomplete/index.d.ts +65 -65
  381. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
  382. package/lib/components/button/index.d.ts +5 -5
  383. package/lib/components/button/src/button.d.ts +1 -1
  384. package/lib/components/button/src/button.vue.d.ts +5 -5
  385. package/lib/components/button/src/use-button.d.ts +1 -1
  386. package/lib/components/calendar/index.d.ts +5 -5
  387. package/lib/components/calendar/src/calendar.vue.d.ts +5 -5
  388. package/lib/components/card/index.js +2 -2
  389. package/lib/components/card/src/card.js +21 -43
  390. package/lib/components/card/src/card.js.map +1 -1
  391. package/lib/components/card/src/card2.js +43 -21
  392. package/lib/components/card/src/card2.js.map +1 -1
  393. package/lib/components/carousel/index.d.ts +1 -1
  394. package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
  395. package/lib/components/cascader/index.d.ts +130 -130
  396. package/lib/components/cascader/src/cascader.vue.d.ts +65 -65
  397. package/lib/components/check-tag/index.js +2 -2
  398. package/lib/components/check-tag/src/check-tag.js +35 -18
  399. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  400. package/lib/components/check-tag/src/check-tag2.js +18 -35
  401. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  402. package/lib/components/color-picker/index.d.ts +38 -38
  403. package/lib/components/color-picker/src/color-picker.vue.d.ts +38 -38
  404. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
  405. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
  406. package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
  407. package/lib/components/dialog/index.d.ts +1 -1
  408. package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
  409. package/lib/components/drawer/index.d.ts +1 -1
  410. package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
  411. package/lib/components/dropdown/index.d.ts +14 -14
  412. package/lib/components/dropdown/index.js +2 -2
  413. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  414. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  415. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  416. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  417. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  418. package/lib/components/dropdown/src/dropdown.js +306 -106
  419. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  420. package/lib/components/dropdown/src/dropdown.vue.d.ts +12 -12
  421. package/lib/components/dropdown/src/dropdown2.js +106 -306
  422. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  423. package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
  424. package/lib/components/form/index.d.ts +12 -12
  425. package/lib/components/form/src/form-item.d.ts +1 -1
  426. package/lib/components/form/src/form-item.vue.d.ts +5 -5
  427. package/lib/components/image/index.d.ts +1 -1
  428. package/lib/components/image/src/image.vue.d.ts +1 -1
  429. package/lib/components/index.js +6 -6
  430. package/lib/components/input/index.d.ts +12 -12
  431. package/lib/components/input/src/input.vue.d.ts +12 -12
  432. package/lib/components/input-number/index.d.ts +45 -45
  433. package/lib/components/input-number/src/input-number.vue.d.ts +45 -45
  434. package/lib/components/message/src/message.d.ts +1 -1
  435. package/lib/components/message/src/message.vue.d.ts +4 -4
  436. package/lib/components/message-box/src/index.vue.d.ts +1 -1
  437. package/lib/components/notification/src/notification.d.ts +1 -1
  438. package/lib/components/notification/src/notification.vue.d.ts +4 -4
  439. package/lib/components/pagination/src/components/jumper.vue.d.ts +12 -12
  440. package/lib/components/pagination/src/components/sizes.vue.d.ts +27 -27
  441. package/lib/components/popconfirm/index.d.ts +23 -23
  442. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
  443. package/lib/components/popover/index.d.ts +18 -18
  444. package/lib/components/popover/src/popover.js +1 -1
  445. package/lib/components/popover/src/popover.vue.d.ts +18 -18
  446. package/lib/components/popper/index.js +2 -2
  447. package/lib/components/popper/src/content.js +98 -137
  448. package/lib/components/popper/src/content.js.map +1 -1
  449. package/lib/components/popper/src/content.vue.d.ts +6 -6
  450. package/lib/components/popper/src/content2.js +137 -98
  451. package/lib/components/popper/src/content2.js.map +1 -1
  452. package/lib/components/result/index.d.ts +4 -4
  453. package/lib/components/result/index.js +2 -2
  454. package/lib/components/result/src/result.d.ts +1 -1
  455. package/lib/components/result/src/result.js +63 -31
  456. package/lib/components/result/src/result.js.map +1 -1
  457. package/lib/components/result/src/result.vue.d.ts +4 -4
  458. package/lib/components/result/src/result2.js +31 -63
  459. package/lib/components/result/src/result2.js.map +1 -1
  460. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  461. package/lib/components/select/index.d.ts +27 -27
  462. package/lib/components/select/src/select.vue.d.ts +27 -27
  463. package/lib/components/select/src/useSelect.d.ts +25 -25
  464. package/lib/components/select-v2/index.d.ts +54 -54
  465. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  466. package/lib/components/select-v2/src/select.vue.d.ts +27 -27
  467. package/lib/components/select-v2/src/useSelect.d.ts +25 -25
  468. package/lib/components/slider/index.d.ts +75 -75
  469. package/lib/components/slider/src/button.vue.d.ts +6 -6
  470. package/lib/components/slider/src/composables/use-slide.d.ts +24 -24
  471. package/lib/components/slider/src/slider.vue.d.ts +75 -75
  472. package/lib/components/steps/index.d.ts +16 -16
  473. package/lib/components/steps/src/item.d.ts +1 -1
  474. package/lib/components/steps/src/item.vue.d.ts +4 -4
  475. package/lib/components/steps/src/steps.d.ts +2 -2
  476. package/lib/components/steps/src/steps.vue.d.ts +8 -8
  477. package/lib/components/table/index.d.ts +1 -1
  478. package/lib/components/table/src/filter-panel.vue.d.ts +12 -12
  479. package/lib/components/table/src/store/watcher.js +2 -2
  480. package/lib/components/table/src/store/watcher.js.map +1 -1
  481. package/lib/components/table/src/table.vue.d.ts +1 -1
  482. package/lib/components/tag/index.d.ts +1 -1
  483. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  484. package/lib/components/time-picker/src/common/picker.vue.d.ts +34 -34
  485. package/lib/components/time-select/index.d.ts +114 -114
  486. package/lib/components/time-select/src/time-select.vue.d.ts +57 -57
  487. package/lib/components/tooltip/index.d.ts +6 -6
  488. package/lib/components/tooltip/src/content.js +1 -1
  489. package/lib/components/tooltip/src/content.vue.d.ts +6 -6
  490. package/lib/components/tooltip/src/content2.js +1 -1
  491. package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -6
  492. package/lib/components/tooltip-v2/index.d.ts +4 -4
  493. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
  494. package/lib/components/tour/index.d.ts +11 -11
  495. package/lib/components/tour/src/content.vue.d.ts +1 -1
  496. package/lib/components/tour/src/step.vue.d.ts +5 -5
  497. package/lib/components/tour/src/tour.vue.d.ts +1 -1
  498. package/lib/components/transfer/index.d.ts +65 -65
  499. package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
  500. package/lib/components/transfer/src/transfer.vue.d.ts +65 -65
  501. package/lib/components/tree-v2/index.d.ts +1 -1
  502. package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
  503. package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
  504. package/lib/components/upload/index.d.ts +5 -5
  505. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  506. package/lib/components/upload/src/upload.vue.d.ts +5 -5
  507. package/lib/index.js +6 -6
  508. package/lib/version.d.ts +1 -1
  509. package/lib/version.js +1 -1
  510. package/lib/version.js.map +1 -1
  511. package/package.json +2 -2
  512. package/web-types.json +1 -1
@@ -246,7 +246,7 @@ declare const _default: import("vue").DefineComponent<{
246
246
  readonly popperOptions: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
247
247
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
248
248
  }, {
249
- emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
249
+ emit: ((event: "close") => void) & ((event: "focus") => void) & ((event: "blur") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void);
250
250
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
251
251
  readonly ariaLabel: StringConstructor;
252
252
  readonly id: StringConstructor;
@@ -496,10 +496,10 @@ declare const _default: import("vue").DefineComponent<{
496
496
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
497
497
  }>> & {
498
498
  onClose?: (() => any) | undefined;
499
- onBlur?: (() => any) | undefined;
500
499
  onFocus?: (() => any) | undefined;
501
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
500
+ onBlur?: (() => any) | undefined;
502
501
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
502
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
503
503
  }>>;
504
504
  focusStartRef: import("vue").Ref<HTMLElement | "container" | "first" | undefined>;
505
505
  trapped: import("vue").Ref<boolean>;
@@ -568,7 +568,7 @@ declare const _default: import("vue").DefineComponent<{
568
568
  };
569
569
  }, {
570
570
  onKeydown: (e: KeyboardEvent) => void;
571
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
571
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested")[], "focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
572
572
  loop: BooleanConstructor;
573
573
  trapped: BooleanConstructor;
574
574
  focusTrapEl: import("vue").PropType<HTMLElement>;
@@ -843,10 +843,10 @@ declare const _default: import("vue").DefineComponent<{
843
843
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
844
844
  }>> & {
845
845
  onClose?: (() => any) | undefined;
846
- onBlur?: (() => any) | undefined;
847
846
  onFocus?: (() => any) | undefined;
848
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
847
+ onBlur?: (() => any) | undefined;
849
848
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
849
+ onMouseenter?: ((evt: MouseEvent) => any) | undefined;
850
850
  }, {
851
851
  readonly offset: number;
852
852
  readonly effect: string;
@@ -1,99 +1,143 @@
1
- import { placements } from '@popperjs/core';
1
+ import { defineComponent, inject, ref, provide, onMounted, watch, unref, onBeforeUnmount, openBlock, createElementBlock, mergeProps, createVNode, withCtx, renderSlot } from 'vue';
2
+ import { NOOP } from '@vue/shared';
3
+ import { isNil } from 'lodash-unified';
4
+ import '../../focus-trap/index.mjs';
5
+ import '../../form/index.mjs';
2
6
  import '../../../utils/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
5
- import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
7
+ import { POPPER_CONTENT_INJECTION_KEY } from './constants.mjs';
8
+ import { popperContentProps, popperContentEmits } from './content.mjs';
9
+ import './composables/index.mjs';
10
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
11
+ import { usePopperContentFocusTrap } from './composables/use-focus-trap.mjs';
12
+ import { usePopperContent } from './composables/use-content.mjs';
13
+ import { usePopperContentDOM } from './composables/use-content-dom.mjs';
14
+ import { formItemContextKey } from '../../form/src/constants.mjs';
15
+ import { isElement } from '../../../utils/types.mjs';
16
+ import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
6
17
 
7
- const POSITIONING_STRATEGIES = ["fixed", "absolute"];
8
- const popperCoreConfigProps = buildProps({
9
- boundariesPadding: {
10
- type: Number,
11
- default: 0
12
- },
13
- fallbackPlacements: {
14
- type: definePropType(Array),
15
- default: void 0
16
- },
17
- gpuAcceleration: {
18
- type: Boolean,
19
- default: true
20
- },
21
- offset: {
22
- type: Number,
23
- default: 12
24
- },
25
- placement: {
26
- type: String,
27
- values: placements,
28
- default: "bottom"
29
- },
30
- popperOptions: {
31
- type: definePropType(Object),
32
- default: () => ({})
33
- },
34
- strategy: {
35
- type: String,
36
- values: POSITIONING_STRATEGIES,
37
- default: "absolute"
38
- }
18
+ const __default__ = defineComponent({
19
+ name: "ElPopperContent"
39
20
  });
40
- const popperContentProps = buildProps({
41
- ...popperCoreConfigProps,
42
- id: String,
43
- style: {
44
- type: definePropType([String, Array, Object])
45
- },
46
- className: {
47
- type: definePropType([String, Array, Object])
48
- },
49
- effect: {
50
- type: String,
51
- default: "dark"
52
- },
53
- visible: Boolean,
54
- enterable: {
55
- type: Boolean,
56
- default: true
57
- },
58
- pure: Boolean,
59
- focusOnShow: {
60
- type: Boolean,
61
- default: false
62
- },
63
- trapping: {
64
- type: Boolean,
65
- default: false
66
- },
67
- popperClass: {
68
- type: definePropType([String, Array, Object])
69
- },
70
- popperStyle: {
71
- type: definePropType([String, Array, Object])
72
- },
73
- referenceEl: {
74
- type: definePropType(Object)
75
- },
76
- triggerTargetEl: {
77
- type: definePropType(Object)
78
- },
79
- stopPopperMouseEvent: {
80
- type: Boolean,
81
- default: true
82
- },
83
- virtualTriggering: Boolean,
84
- zIndex: Number,
85
- ...useAriaProps(["ariaLabel"])
21
+ const _sfc_main = /* @__PURE__ */ defineComponent({
22
+ ...__default__,
23
+ props: popperContentProps,
24
+ emits: popperContentEmits,
25
+ setup(__props, { expose, emit }) {
26
+ const props = __props;
27
+ const {
28
+ focusStartRef,
29
+ trapped,
30
+ onFocusAfterReleased,
31
+ onFocusAfterTrapped,
32
+ onFocusInTrap,
33
+ onFocusoutPrevented,
34
+ onReleaseRequested
35
+ } = usePopperContentFocusTrap(props, emit);
36
+ const { attributes, arrowRef, contentRef, styles, instanceRef, role, update } = usePopperContent(props);
37
+ const {
38
+ ariaModal,
39
+ arrowStyle,
40
+ contentAttrs,
41
+ contentClass,
42
+ contentStyle,
43
+ updateZIndex
44
+ } = usePopperContentDOM(props, {
45
+ styles,
46
+ attributes,
47
+ role
48
+ });
49
+ const formItemContext = inject(formItemContextKey, void 0);
50
+ const arrowOffset = ref();
51
+ provide(POPPER_CONTENT_INJECTION_KEY, {
52
+ arrowStyle,
53
+ arrowRef,
54
+ arrowOffset
55
+ });
56
+ if (formItemContext && (formItemContext.addInputId || formItemContext.removeInputId)) {
57
+ provide(formItemContextKey, {
58
+ ...formItemContext,
59
+ addInputId: NOOP,
60
+ removeInputId: NOOP
61
+ });
62
+ }
63
+ let triggerTargetAriaStopWatch = void 0;
64
+ const updatePopper = (shouldUpdateZIndex = true) => {
65
+ update();
66
+ shouldUpdateZIndex && updateZIndex();
67
+ };
68
+ const togglePopperAlive = () => {
69
+ updatePopper(false);
70
+ if (props.visible && props.focusOnShow) {
71
+ trapped.value = true;
72
+ } else if (props.visible === false) {
73
+ trapped.value = false;
74
+ }
75
+ };
76
+ onMounted(() => {
77
+ watch(() => props.triggerTargetEl, (triggerTargetEl, prevTriggerTargetEl) => {
78
+ triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
79
+ triggerTargetAriaStopWatch = void 0;
80
+ const el = unref(triggerTargetEl || contentRef.value);
81
+ const prevEl = unref(prevTriggerTargetEl || contentRef.value);
82
+ if (isElement(el)) {
83
+ triggerTargetAriaStopWatch = watch([role, () => props.ariaLabel, ariaModal, () => props.id], (watches) => {
84
+ ;
85
+ ["role", "aria-label", "aria-modal", "id"].forEach((key, idx) => {
86
+ isNil(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
87
+ });
88
+ }, { immediate: true });
89
+ }
90
+ if (prevEl !== el && isElement(prevEl)) {
91
+ ;
92
+ ["role", "aria-label", "aria-modal", "id"].forEach((key) => {
93
+ prevEl.removeAttribute(key);
94
+ });
95
+ }
96
+ }, { immediate: true });
97
+ watch(() => props.visible, togglePopperAlive, { immediate: true });
98
+ });
99
+ onBeforeUnmount(() => {
100
+ triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
101
+ triggerTargetAriaStopWatch = void 0;
102
+ });
103
+ expose({
104
+ popperContentRef: contentRef,
105
+ popperInstanceRef: instanceRef,
106
+ updatePopper,
107
+ contentStyle
108
+ });
109
+ return (_ctx, _cache) => {
110
+ return openBlock(), createElementBlock("div", mergeProps({
111
+ ref_key: "contentRef",
112
+ ref: contentRef
113
+ }, unref(contentAttrs), {
114
+ style: unref(contentStyle),
115
+ class: unref(contentClass),
116
+ tabindex: "-1",
117
+ onMouseenter: _cache[0] || (_cache[0] = (e) => _ctx.$emit("mouseenter", e)),
118
+ onMouseleave: _cache[1] || (_cache[1] = (e) => _ctx.$emit("mouseleave", e))
119
+ }), [
120
+ createVNode(unref(ElFocusTrap), {
121
+ trapped: unref(trapped),
122
+ "trap-on-focus-in": true,
123
+ "focus-trap-el": unref(contentRef),
124
+ "focus-start-el": unref(focusStartRef),
125
+ onFocusAfterTrapped: unref(onFocusAfterTrapped),
126
+ onFocusAfterReleased: unref(onFocusAfterReleased),
127
+ onFocusin: unref(onFocusInTrap),
128
+ onFocusoutPrevented: unref(onFocusoutPrevented),
129
+ onReleaseRequested: unref(onReleaseRequested)
130
+ }, {
131
+ default: withCtx(() => [
132
+ renderSlot(_ctx.$slots, "default")
133
+ ]),
134
+ _: 3
135
+ }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
136
+ ], 16);
137
+ };
138
+ }
86
139
  });
87
- const popperContentEmits = {
88
- mouseenter: (evt) => evt instanceof MouseEvent,
89
- mouseleave: (evt) => evt instanceof MouseEvent,
90
- focus: () => true,
91
- blur: () => true,
92
- close: () => true
93
- };
94
- const usePopperCoreConfigProps = popperCoreConfigProps;
95
- const usePopperContentProps = popperContentProps;
96
- const usePopperContentEmits = popperContentEmits;
140
+ var ElPopperContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "content.vue"]]);
97
141
 
98
- export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps };
142
+ export { ElPopperContent as default };
99
143
  //# sourceMappingURL=content2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"content2.mjs","sources":["../../../../../../packages/components/popper/src/content.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, definePropType } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Options, Placement } from '@popperjs/core'\nimport type { Measurable } from './constants'\nimport type Content from './content.vue'\n\ntype ClassObjectType = Record<string, boolean>\ntype ClassType = string | ClassObjectType | ClassType[]\n\nconst POSITIONING_STRATEGIES = ['fixed', 'absolute'] as const\n\nexport interface CreatePopperInstanceParams {\n referenceEl: Measurable\n popperContentEl: HTMLElement\n arrowEl: HTMLElement | undefined\n}\n\nexport const popperCoreConfigProps = buildProps({\n boundariesPadding: {\n type: Number,\n default: 0,\n },\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: undefined,\n },\n gpuAcceleration: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the Tooltip\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of Tooltip\n */\n placement: {\n type: String,\n values: placements,\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n strategy: {\n type: String,\n values: POSITIONING_STRATEGIES,\n default: 'absolute',\n },\n} as const)\nexport type PopperCoreConfigProps = ExtractPropTypes<\n typeof popperCoreConfigProps\n>\n\nexport const popperContentProps = buildProps({\n ...popperCoreConfigProps,\n id: String,\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n className: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n effect: {\n type: String,\n default: 'dark',\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true,\n },\n pure: Boolean,\n focusOnShow: {\n type: Boolean,\n default: false,\n },\n trapping: {\n type: Boolean,\n default: false,\n },\n popperClass: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n popperStyle: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n referenceEl: {\n type: definePropType<HTMLElement>(Object),\n },\n triggerTargetEl: {\n type: definePropType<HTMLElement>(Object),\n },\n stopPopperMouseEvent: {\n type: Boolean,\n default: true,\n },\n virtualTriggering: Boolean,\n zIndex: Number,\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport type PopperContentProps = ExtractPropTypes<typeof popperContentProps>\n\nexport const popperContentEmits = {\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n focus: () => true,\n blur: () => true,\n close: () => true,\n}\nexport type PopperContentEmits = typeof popperContentEmits\n\nexport type PopperContentInstance = InstanceType<typeof Content>\n\n/** @deprecated use `popperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport const usePopperCoreConfigProps = popperCoreConfigProps\n\n/** @deprecated use `popperContentProps` instead, and it will be deprecated in the next major version */\nexport const usePopperContentProps = popperContentProps\n\n/** @deprecated use `popperContentEmits` instead, and it will be deprecated in the next major version */\nexport const usePopperContentEmits = popperContentEmits\n\n/** @deprecated use `PopperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperCoreConfigProps = PopperCoreConfigProps\n\n/** @deprecated use `PopperContentProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperContentProps = PopperContentProps\n\n/** @deprecated use `PopperContentInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowContent = PopperContentInstance\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"content2.mjs","sources":["../../../../../../packages/components/popper/src/content.vue"],"sourcesContent":["<template>\n <div\n ref=\"contentRef\"\n v-bind=\"contentAttrs\"\n :style=\"contentStyle\"\n :class=\"contentClass\"\n tabindex=\"-1\"\n @mouseenter=\"(e) => $emit('mouseenter', e)\"\n @mouseleave=\"(e) => $emit('mouseleave', e)\"\n >\n <el-focus-trap\n :trapped=\"trapped\"\n :trap-on-focus-in=\"true\"\n :focus-trap-el=\"contentRef\"\n :focus-start-el=\"focusStartRef\"\n @focus-after-trapped=\"onFocusAfterTrapped\"\n @focus-after-released=\"onFocusAfterReleased\"\n @focusin=\"onFocusInTrap\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onReleaseRequested\"\n >\n <slot />\n </el-focus-trap>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n inject,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n unref,\n watch,\n} from 'vue'\nimport { NOOP } from '@vue/shared'\nimport { isNil } from 'lodash-unified'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport { formItemContextKey } from '@element-plus/components/form'\nimport { isElement } from '@element-plus/utils'\nimport { POPPER_CONTENT_INJECTION_KEY } from './constants'\nimport { popperContentEmits, popperContentProps } from './content'\nimport {\n usePopperContent,\n usePopperContentDOM,\n usePopperContentFocusTrap,\n} from './composables'\n\nimport type { WatchStopHandle } from 'vue'\n\ndefineOptions({\n name: 'ElPopperContent',\n})\n\nconst emit = defineEmits(popperContentEmits)\n\nconst props = defineProps(popperContentProps)\n\nconst {\n focusStartRef,\n trapped,\n\n onFocusAfterReleased,\n onFocusAfterTrapped,\n onFocusInTrap,\n onFocusoutPrevented,\n onReleaseRequested,\n} = usePopperContentFocusTrap(props, emit)\n\nconst { attributes, arrowRef, contentRef, styles, instanceRef, role, update } =\n usePopperContent(props)\n\nconst {\n ariaModal,\n arrowStyle,\n contentAttrs,\n contentClass,\n contentStyle,\n updateZIndex,\n} = usePopperContentDOM(props, {\n styles,\n attributes,\n role,\n})\n\nconst formItemContext = inject(formItemContextKey, undefined)\nconst arrowOffset = ref<number>()\n\nprovide(POPPER_CONTENT_INJECTION_KEY, {\n arrowStyle,\n arrowRef,\n arrowOffset,\n})\n\nif (\n formItemContext &&\n (formItemContext.addInputId || formItemContext.removeInputId)\n) {\n // disallow auto-id from inside popper content\n provide(formItemContextKey, {\n ...formItemContext,\n addInputId: NOOP,\n removeInputId: NOOP,\n })\n}\n\nlet triggerTargetAriaStopWatch: WatchStopHandle | undefined = undefined\n\nconst updatePopper = (shouldUpdateZIndex = true) => {\n update()\n shouldUpdateZIndex && updateZIndex()\n}\n\nconst togglePopperAlive = () => {\n updatePopper(false)\n if (props.visible && props.focusOnShow) {\n trapped.value = true\n } else if (props.visible === false) {\n trapped.value = false\n }\n}\n\nonMounted(() => {\n watch(\n () => props.triggerTargetEl,\n (triggerTargetEl, prevTriggerTargetEl) => {\n triggerTargetAriaStopWatch?.()\n triggerTargetAriaStopWatch = undefined\n\n const el = unref(triggerTargetEl || contentRef.value)\n const prevEl = unref(prevTriggerTargetEl || contentRef.value)\n\n if (isElement(el)) {\n triggerTargetAriaStopWatch = watch(\n [role, () => props.ariaLabel, ariaModal, () => props.id],\n (watches) => {\n ;['role', 'aria-label', 'aria-modal', 'id'].forEach((key, idx) => {\n isNil(watches[idx])\n ? el.removeAttribute(key)\n : el.setAttribute(key, watches[idx]!)\n })\n },\n { immediate: true }\n )\n }\n if (prevEl !== el && isElement(prevEl)) {\n ;['role', 'aria-label', 'aria-modal', 'id'].forEach((key) => {\n prevEl.removeAttribute(key)\n })\n }\n },\n { immediate: true }\n )\n\n watch(() => props.visible, togglePopperAlive, { immediate: true })\n})\n\nonBeforeUnmount(() => {\n triggerTargetAriaStopWatch?.()\n triggerTargetAriaStopWatch = undefined\n})\n\ndefineExpose({\n /**\n * @description popper content element\n */\n popperContentRef: contentRef,\n /**\n * @description popperjs instance\n */\n popperInstanceRef: instanceRef,\n /**\n * @description method for updating popper\n */\n updatePopper,\n\n /**\n * @description content style\n */\n contentStyle,\n})\n</script>\n"],"names":[],"mappings":"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"}
@@ -1,12 +1,12 @@
1
1
  export declare const ElResult: import("@element-plus/nightly/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
2
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
3
3
  readonly subTitle: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
4
- readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "warning" | "info", unknown, "info", boolean>;
4
+ readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "warning" | "error" | "info", unknown, "info", boolean>;
5
5
  }, {
6
6
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
7
7
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
8
8
  readonly subTitle: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
9
- readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "warning" | "info", unknown, "info", boolean>;
9
+ readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "warning" | "error" | "info", unknown, "info", boolean>;
10
10
  }>> & {
11
11
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
12
12
  }>>;
@@ -35,10 +35,10 @@ export declare const ElResult: import("@element-plus/nightly/es/utils").SFCWithI
35
35
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
37
37
  readonly subTitle: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
38
- readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "warning" | "info", unknown, "info", boolean>;
38
+ readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "warning" | "error" | "info", unknown, "info", boolean>;
39
39
  }>>, {
40
40
  readonly title: string;
41
- readonly icon: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "error" | "success" | "warning" | "info", unknown>;
41
+ readonly icon: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "error" | "info", unknown>;
42
42
  readonly subTitle: string;
43
43
  }>> & Record<string, any>;
44
44
  export default ElResult;
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Result from './src/result2.mjs';
3
- export { IconComponentMap, IconMap, resultProps } from './src/result.mjs';
2
+ import Result from './src/result.mjs';
3
+ export { IconComponentMap, IconMap, resultProps } from './src/result2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElResult = withInstall(Result);
@@ -10,7 +10,7 @@ export declare const IconComponentMap: Record<typeof IconMap[keyof typeof IconMa
10
10
  export declare const resultProps: {
11
11
  readonly title: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
12
12
  readonly subTitle: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
13
- readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "error" | "success" | "warning" | "info", unknown, "info", boolean>;
13
+ readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "success" | "warning" | "error" | "info", unknown, "info", boolean>;
14
14
  };
15
15
  export declare type ResultProps = ExtractPropTypes<typeof resultProps>;
16
16
  export declare type ResultInstance = InstanceType<typeof Result>;
@@ -1,34 +1,68 @@
1
- import '../../../utils/index.mjs';
2
- import { CircleCheckFilled, WarningFilled, CircleCloseFilled, InfoFilled } from '@element-plus/icons-vue';
3
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import { resultProps, IconMap, IconComponentMap } from './result2.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
4
6
 
5
- const IconMap = {
6
- success: "icon-success",
7
- warning: "icon-warning",
8
- error: "icon-error",
9
- info: "icon-info"
10
- };
11
- const IconComponentMap = {
12
- [IconMap.success]: CircleCheckFilled,
13
- [IconMap.warning]: WarningFilled,
14
- [IconMap.error]: CircleCloseFilled,
15
- [IconMap.info]: InfoFilled
16
- };
17
- const resultProps = buildProps({
18
- title: {
19
- type: String,
20
- default: ""
21
- },
22
- subTitle: {
23
- type: String,
24
- default: ""
25
- },
26
- icon: {
27
- type: String,
28
- values: ["success", "warning", "info", "error"],
29
- default: "info"
7
+ const __default__ = defineComponent({
8
+ name: "ElResult"
9
+ });
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...__default__,
12
+ props: resultProps,
13
+ setup(__props) {
14
+ const props = __props;
15
+ const ns = useNamespace("result");
16
+ const resultIcon = computed(() => {
17
+ const icon = props.icon;
18
+ const iconClass = icon && IconMap[icon] ? IconMap[icon] : "icon-info";
19
+ const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
20
+ return {
21
+ class: iconClass,
22
+ component: iconComponent
23
+ };
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createElementBlock("div", {
27
+ class: normalizeClass(unref(ns).b())
28
+ }, [
29
+ createElementVNode("div", {
30
+ class: normalizeClass(unref(ns).e("icon"))
31
+ }, [
32
+ renderSlot(_ctx.$slots, "icon", {}, () => [
33
+ unref(resultIcon).component ? (openBlock(), createBlock(resolveDynamicComponent(unref(resultIcon).component), {
34
+ key: 0,
35
+ class: normalizeClass(unref(resultIcon).class)
36
+ }, null, 8, ["class"])) : createCommentVNode("v-if", true)
37
+ ])
38
+ ], 2),
39
+ _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
40
+ key: 0,
41
+ class: normalizeClass(unref(ns).e("title"))
42
+ }, [
43
+ renderSlot(_ctx.$slots, "title", {}, () => [
44
+ createElementVNode("p", null, toDisplayString(_ctx.title), 1)
45
+ ])
46
+ ], 2)) : createCommentVNode("v-if", true),
47
+ _ctx.subTitle || _ctx.$slots["sub-title"] ? (openBlock(), createElementBlock("div", {
48
+ key: 1,
49
+ class: normalizeClass(unref(ns).e("subtitle"))
50
+ }, [
51
+ renderSlot(_ctx.$slots, "sub-title", {}, () => [
52
+ createElementVNode("p", null, toDisplayString(_ctx.subTitle), 1)
53
+ ])
54
+ ], 2)) : createCommentVNode("v-if", true),
55
+ _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
56
+ key: 2,
57
+ class: normalizeClass(unref(ns).e("extra"))
58
+ }, [
59
+ renderSlot(_ctx.$slots, "extra")
60
+ ], 2)) : createCommentVNode("v-if", true)
61
+ ], 2);
62
+ };
30
63
  }
31
64
  });
65
+ var Result = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "result.vue"]]);
32
66
 
33
- export { IconComponentMap, IconMap, resultProps };
67
+ export { Result as default };
34
68
  //# sourceMappingURL=result.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"result.mjs","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport {\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n typeof IconMap[keyof typeof IconMap],\n Component\n> = {\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n /**\n * @description title of result\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description sub title of result\n */\n subTitle: {\n type: String,\n default: '',\n },\n /**\n * @description icon type of result\n */\n icon: {\n type: String,\n values: ['success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result>\n"],"names":[],"mappings":";;;;AAOY,MAAC,OAAO,GAAG;AACvB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE;AACU,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,iBAAiB;AACtC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,aAAa;AAClC,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,iBAAiB;AACpC,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,UAAU;AAC5B,EAAE;AACU,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;AACnD,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"result.mjs","sources":["../../../../../../packages/components/result/src/result.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('icon')\">\n <slot name=\"icon\">\n <component\n :is=\"resultIcon.component\"\n v-if=\"resultIcon.component\"\n :class=\"resultIcon.class\"\n />\n </slot>\n </div>\n <div v-if=\"title || $slots.title\" :class=\"ns.e('title')\">\n <slot name=\"title\">\n <p>{{ title }}</p>\n </slot>\n </div>\n <div v-if=\"subTitle || $slots['sub-title']\" :class=\"ns.e('subtitle')\">\n <slot name=\"sub-title\">\n <p>{{ subTitle }}</p>\n </slot>\n </div>\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { IconComponentMap, IconMap, resultProps } from './result'\n\ndefineOptions({\n name: 'ElResult',\n})\n\nconst props = defineProps(resultProps)\n\nconst ns = useNamespace('result')\n\nconst resultIcon = computed(() => {\n const icon = props.icon\n const iconClass = icon && IconMap[icon] ? IconMap[icon] : 'icon-info'\n const iconComponent =\n IconComponentMap[iconClass] || IconComponentMap['icon-info']\n\n return {\n class: iconClass,\n component: iconComponent,\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;mCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,UAAA,GAAa,SAAS,MAAM;AAChC,MAAA,MAAM,OAAO,KAAM,CAAA,IAAA,CAAA;AACnB,MAAA,MAAM,SAAY,GAAA,IAAA,IAAQ,OAAQ,CAAA,IAAA,CAAA,GAAQ,QAAQ,IAAQ,CAAA,GAAA,WAAA,CAAA;AAC1D,MAAM,MAAA,aAAA,GACJ,gBAAiB,CAAA,SAAA,CAAA,IAAc,gBAAiB,CAAA,WAAA,CAAA,CAAA;AAElD,MAAO,OAAA;AAAA,QACL,KAAO,EAAA,SAAA;AAAA,QACP,SAAW,EAAA,aAAA;AAAA,OACb,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,12 +1,12 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
2
  readonly title: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
3
3
  readonly subTitle: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
4
- readonly icon: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "warning" | "info", unknown, "info", boolean>;
4
+ readonly icon: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "warning" | "error" | "info", unknown, "info", boolean>;
5
5
  }, {
6
6
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
7
7
  readonly title: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
8
8
  readonly subTitle: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
9
- readonly icon: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "warning" | "info", unknown, "info", boolean>;
9
+ readonly icon: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "warning" | "error" | "info", unknown, "info", boolean>;
10
10
  }>> & {
11
11
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
12
12
  }>>;
@@ -35,10 +35,10 @@ declare const _default: import("vue").DefineComponent<{
35
35
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  readonly title: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
37
37
  readonly subTitle: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
38
- readonly icon: import("../../../utils").EpPropFinalized<StringConstructor, "error" | "success" | "warning" | "info", unknown, "info", boolean>;
38
+ readonly icon: import("../../../utils").EpPropFinalized<StringConstructor, "success" | "warning" | "error" | "info", unknown, "info", boolean>;
39
39
  }>>, {
40
40
  readonly title: string;
41
- readonly icon: import("../../../utils").EpPropMergeType<StringConstructor, "error" | "success" | "warning" | "info", unknown>;
41
+ readonly icon: import("../../../utils").EpPropMergeType<StringConstructor, "success" | "warning" | "error" | "info", unknown>;
42
42
  readonly subTitle: string;
43
43
  }>;
44
44
  export default _default;