@element-plus/nightly 0.0.20260131 → 0.0.20260202

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 (514) hide show
  1. package/dist/index.full.js +16 -8
  2. package/dist/index.full.min.js +15 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +15 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +16 -8
  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/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/alert/src/alert.mjs.map +1 -1
  276. package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  277. package/es/components/avatar/src/avatar.d.ts +4 -3
  278. package/es/components/avatar/src/avatar.mjs.map +1 -1
  279. package/es/components/breadcrumb/src/breadcrumb.d.ts +4 -3
  280. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  281. package/es/components/button/src/button.d.ts +3 -2
  282. package/es/components/button/src/button.mjs.map +1 -1
  283. package/es/components/button/src/button.vue.d.ts +1 -1
  284. package/es/components/calendar/src/calendar.mjs.map +1 -1
  285. package/es/components/calendar/src/date-table.mjs.map +1 -1
  286. package/es/components/calendar/src/select-controller.mjs.map +1 -1
  287. package/es/components/card/src/card.d.ts +3 -0
  288. package/es/components/card/src/card.mjs.map +1 -1
  289. package/es/components/carousel/src/use-carousel.mjs +1 -1
  290. package/es/components/carousel/src/use-carousel.mjs.map +1 -1
  291. package/es/components/cascader/src/cascader.d.ts +4 -3
  292. package/es/components/cascader/src/cascader.mjs.map +1 -1
  293. package/es/components/cascader/src/cascader.vue.d.ts +1 -1
  294. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  295. package/es/components/checkbox/src/checkbox.d.ts +1 -1
  296. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  297. package/es/components/collapse/src/collapse-item.d.ts +4 -3
  298. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  299. package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
  300. package/es/components/color-picker-panel/src/props/sv-panel.mjs.map +1 -1
  301. package/es/components/countdown/src/countdown.mjs.map +1 -1
  302. package/es/components/descriptions/src/descriptions-row.d.ts +1 -1
  303. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  304. package/es/components/dialog/src/dialog-content.d.ts +3 -3
  305. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  306. package/es/components/divider/src/divider.d.ts +6 -0
  307. package/es/components/divider/src/divider.mjs.map +1 -1
  308. package/es/components/drawer/src/drawer.vue.d.ts +2 -0
  309. package/es/components/drawer/src/drawer.vue2.mjs +2 -0
  310. package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
  311. package/es/components/input/src/input.d.ts +8 -7
  312. package/es/components/input/src/input.mjs.map +1 -1
  313. package/es/components/input/src/input.vue.d.ts +23 -23
  314. package/es/components/input/src/input.vue2.mjs +1 -3
  315. package/es/components/input/src/input.vue2.mjs.map +1 -1
  316. package/es/components/input-number/src/input-number.d.ts +3 -0
  317. package/es/components/input-number/src/input-number.mjs.map +1 -1
  318. package/es/components/input-tag/src/input-tag.d.ts +4 -3
  319. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  320. package/es/components/input-tag/src/input-tag.vue.d.ts +1 -1
  321. package/es/components/link/src/link.d.ts +4 -3
  322. package/es/components/link/src/link.mjs.map +1 -1
  323. package/es/components/mention/src/mention.mjs.map +1 -1
  324. package/es/components/mention/src/mention.vue.d.ts +1 -1
  325. package/es/components/message/src/message.d.ts +4 -4
  326. package/es/components/message/src/message.mjs.map +1 -1
  327. package/es/components/message/src/message.vue.d.ts +1 -1
  328. package/es/components/notification/src/notification.d.ts +6 -5
  329. package/es/components/notification/src/notification.mjs.map +1 -1
  330. package/es/components/notification/src/notification.vue.d.ts +1 -1
  331. package/es/components/page-header/src/page-header.d.ts +10 -3
  332. package/es/components/page-header/src/page-header.mjs.map +1 -1
  333. package/es/components/page-header/src/page-header.vue.d.ts +1 -1
  334. package/es/components/page-header/src/page-header.vue2.mjs.map +1 -1
  335. package/es/components/popconfirm/src/popconfirm.d.ts +4 -3
  336. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  337. package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
  338. package/es/components/popper/src/arrow.mjs.map +1 -1
  339. package/es/components/popper/src/content.mjs.map +1 -1
  340. package/es/components/radio/src/radio-button.vue.d.ts +10 -10
  341. package/es/components/radio/src/radio-button.vue2.mjs.map +1 -1
  342. package/es/components/radio/src/radio-group.vue.d.ts +18 -18
  343. package/es/components/radio/src/radio-group.vue2.mjs.map +1 -1
  344. package/es/components/radio/src/radio.vue.d.ts +12 -12
  345. package/es/components/radio/src/radio.vue2.mjs.map +1 -1
  346. package/es/components/rate/src/rate.d.ts +4 -3
  347. package/es/components/rate/src/rate.mjs.map +1 -1
  348. package/es/components/rate/src/rate.vue.d.ts +3 -4
  349. package/es/components/result/src/result.d.ts +6 -0
  350. package/es/components/result/src/result.mjs.map +1 -1
  351. package/es/components/scrollbar/src/bar.d.ts +3 -0
  352. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  353. package/es/components/scrollbar/src/scrollbar.d.ts +3 -0
  354. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  355. package/es/components/scrollbar/src/thumb.d.ts +3 -0
  356. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  357. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  358. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  359. package/es/components/steps/src/item.d.ts +7 -3
  360. package/es/components/steps/src/item.mjs.map +1 -1
  361. package/es/components/steps/src/item.vue.d.ts +1 -1
  362. package/es/components/switch/src/switch.d.ts +10 -9
  363. package/es/components/switch/src/switch.mjs.map +1 -1
  364. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  365. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  366. package/es/components/time-select/src/time-select.d.ts +6 -2
  367. package/es/components/time-select/src/time-select.mjs.map +1 -1
  368. package/es/components/time-select/src/time-select.vue.d.ts +2 -2
  369. package/es/components/time-select/src/time-select.vue2.mjs.map +1 -1
  370. package/es/components/timeline/src/timeline-item.d.ts +4 -3
  371. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  372. package/es/components/tooltip/src/tooltip.d.ts +3 -0
  373. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  374. package/es/components/tour/src/step.d.ts +4 -3
  375. package/es/components/tour/src/step.mjs.map +1 -1
  376. package/es/components/tour/src/tour.d.ts +4 -3
  377. package/es/components/tour/src/tour.mjs.map +1 -1
  378. package/es/components/tree-v2/src/types.d.ts +1 -1
  379. package/es/hooks/use-aria/index.d.ts +3 -0
  380. package/es/hooks/use-aria/index.mjs.map +1 -1
  381. package/es/utils/dom/aria.d.ts +1 -0
  382. package/es/utils/dom/aria.mjs +5 -1
  383. package/es/utils/dom/aria.mjs.map +1 -1
  384. package/es/utils/dom/index.mjs +1 -1
  385. package/es/utils/dom/scroll.mjs +6 -1
  386. package/es/utils/dom/scroll.mjs.map +1 -1
  387. package/es/utils/dom/style.mjs +2 -1
  388. package/es/utils/dom/style.mjs.map +1 -1
  389. package/es/utils/index.mjs +1 -1
  390. package/es/version.d.ts +1 -1
  391. package/es/version.mjs +1 -1
  392. package/es/version.mjs.map +1 -1
  393. package/lib/components/alert/src/alert.js.map +1 -1
  394. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  395. package/lib/components/avatar/src/avatar.d.ts +4 -3
  396. package/lib/components/avatar/src/avatar.js.map +1 -1
  397. package/lib/components/breadcrumb/src/breadcrumb.d.ts +4 -3
  398. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  399. package/lib/components/button/src/button.d.ts +3 -2
  400. package/lib/components/button/src/button.js.map +1 -1
  401. package/lib/components/button/src/button.vue.d.ts +1 -1
  402. package/lib/components/calendar/src/calendar.js.map +1 -1
  403. package/lib/components/calendar/src/date-table.js.map +1 -1
  404. package/lib/components/calendar/src/select-controller.js.map +1 -1
  405. package/lib/components/card/src/card.d.ts +3 -0
  406. package/lib/components/card/src/card.js.map +1 -1
  407. package/lib/components/carousel/src/use-carousel.js +1 -1
  408. package/lib/components/carousel/src/use-carousel.js.map +1 -1
  409. package/lib/components/cascader/src/cascader.d.ts +4 -3
  410. package/lib/components/cascader/src/cascader.js.map +1 -1
  411. package/lib/components/cascader/src/cascader.vue.d.ts +1 -1
  412. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  413. package/lib/components/checkbox/src/checkbox.d.ts +1 -1
  414. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  415. package/lib/components/collapse/src/collapse-item.d.ts +4 -3
  416. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  417. package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
  418. package/lib/components/color-picker-panel/src/props/sv-panel.js.map +1 -1
  419. package/lib/components/countdown/src/countdown.js.map +1 -1
  420. package/lib/components/descriptions/src/descriptions-row.d.ts +1 -1
  421. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  422. package/lib/components/dialog/src/dialog-content.d.ts +3 -3
  423. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  424. package/lib/components/divider/src/divider.d.ts +6 -0
  425. package/lib/components/divider/src/divider.js.map +1 -1
  426. package/lib/components/drawer/src/drawer.vue.d.ts +2 -0
  427. package/lib/components/drawer/src/drawer.vue2.js +2 -0
  428. package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
  429. package/lib/components/input/src/input.d.ts +8 -7
  430. package/lib/components/input/src/input.js.map +1 -1
  431. package/lib/components/input/src/input.vue.d.ts +23 -23
  432. package/lib/components/input/src/input.vue2.js +1 -3
  433. package/lib/components/input/src/input.vue2.js.map +1 -1
  434. package/lib/components/input-number/src/input-number.d.ts +3 -0
  435. package/lib/components/input-number/src/input-number.js.map +1 -1
  436. package/lib/components/input-tag/src/input-tag.d.ts +4 -3
  437. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  438. package/lib/components/input-tag/src/input-tag.vue.d.ts +1 -1
  439. package/lib/components/link/src/link.d.ts +4 -3
  440. package/lib/components/link/src/link.js.map +1 -1
  441. package/lib/components/mention/src/mention.js.map +1 -1
  442. package/lib/components/mention/src/mention.vue.d.ts +1 -1
  443. package/lib/components/message/src/message.d.ts +4 -4
  444. package/lib/components/message/src/message.js.map +1 -1
  445. package/lib/components/message/src/message.vue.d.ts +1 -1
  446. package/lib/components/notification/src/notification.d.ts +6 -5
  447. package/lib/components/notification/src/notification.js.map +1 -1
  448. package/lib/components/notification/src/notification.vue.d.ts +1 -1
  449. package/lib/components/page-header/src/page-header.d.ts +10 -3
  450. package/lib/components/page-header/src/page-header.js.map +1 -1
  451. package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
  452. package/lib/components/page-header/src/page-header.vue2.js.map +1 -1
  453. package/lib/components/popconfirm/src/popconfirm.d.ts +4 -3
  454. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  455. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
  456. package/lib/components/popper/src/arrow.js.map +1 -1
  457. package/lib/components/popper/src/content.js.map +1 -1
  458. package/lib/components/radio/src/radio-button.vue.d.ts +10 -10
  459. package/lib/components/radio/src/radio-button.vue2.js.map +1 -1
  460. package/lib/components/radio/src/radio-group.vue.d.ts +18 -18
  461. package/lib/components/radio/src/radio-group.vue2.js.map +1 -1
  462. package/lib/components/radio/src/radio.vue.d.ts +12 -12
  463. package/lib/components/radio/src/radio.vue2.js.map +1 -1
  464. package/lib/components/rate/src/rate.d.ts +4 -3
  465. package/lib/components/rate/src/rate.js.map +1 -1
  466. package/lib/components/rate/src/rate.vue.d.ts +3 -4
  467. package/lib/components/result/src/result.d.ts +6 -0
  468. package/lib/components/result/src/result.js.map +1 -1
  469. package/lib/components/scrollbar/src/bar.d.ts +3 -0
  470. package/lib/components/scrollbar/src/bar.js.map +1 -1
  471. package/lib/components/scrollbar/src/scrollbar.d.ts +3 -0
  472. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  473. package/lib/components/scrollbar/src/thumb.d.ts +3 -0
  474. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  475. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  476. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  477. package/lib/components/steps/src/item.d.ts +7 -3
  478. package/lib/components/steps/src/item.js.map +1 -1
  479. package/lib/components/steps/src/item.vue.d.ts +1 -1
  480. package/lib/components/switch/src/switch.d.ts +10 -9
  481. package/lib/components/switch/src/switch.js.map +1 -1
  482. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  483. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  484. package/lib/components/time-select/src/time-select.d.ts +6 -2
  485. package/lib/components/time-select/src/time-select.js.map +1 -1
  486. package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
  487. package/lib/components/time-select/src/time-select.vue2.js.map +1 -1
  488. package/lib/components/timeline/src/timeline-item.d.ts +4 -3
  489. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  490. package/lib/components/tooltip/src/tooltip.d.ts +3 -0
  491. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  492. package/lib/components/tour/src/step.d.ts +4 -3
  493. package/lib/components/tour/src/step.js.map +1 -1
  494. package/lib/components/tour/src/tour.d.ts +4 -3
  495. package/lib/components/tour/src/tour.js.map +1 -1
  496. package/lib/components/tree-v2/src/types.d.ts +1 -1
  497. package/lib/hooks/use-aria/index.d.ts +3 -0
  498. package/lib/hooks/use-aria/index.js.map +1 -1
  499. package/lib/utils/dom/aria.d.ts +1 -0
  500. package/lib/utils/dom/aria.js +5 -0
  501. package/lib/utils/dom/aria.js.map +1 -1
  502. package/lib/utils/dom/index.js +1 -0
  503. package/lib/utils/dom/index.js.map +1 -1
  504. package/lib/utils/dom/scroll.js +6 -1
  505. package/lib/utils/dom/scroll.js.map +1 -1
  506. package/lib/utils/dom/style.js +2 -1
  507. package/lib/utils/dom/style.js.map +1 -1
  508. package/lib/utils/index.js +1 -0
  509. package/lib/utils/index.js.map +1 -1
  510. package/lib/version.d.ts +1 -1
  511. package/lib/version.js +1 -1
  512. package/lib/version.js.map +1 -1
  513. package/package.json +2 -2
  514. package/web-types.json +1 -1
@@ -73,7 +73,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
73
73
  effect: import("element-plus").PopperEffect;
74
74
  trigger: "Enter" | "Space";
75
75
  autocomplete: string;
76
- clearIcon: string | import("vue").Component;
76
+ clearIcon: import("@element-plus/nightly/es/utils").IconPropType;
77
77
  validateEvent: boolean;
78
78
  maxCollapseTags: number;
79
79
  tagType: "primary" | "success" | "warning" | "info" | "danger";
@@ -1,4 +1,5 @@
1
- import type { Component, ExtractPublicPropTypes, PropType } from 'vue';
1
+ import type { ExtractPublicPropTypes, PropType } from 'vue';
2
+ import type { IconPropType } from '@element-plus/nightly/es/utils';
2
3
  import type Link from './link.vue';
3
4
  export interface LinkProps {
4
5
  /**
@@ -24,7 +25,7 @@ export interface LinkProps {
24
25
  /**
25
26
  * @description icon component
26
27
  */
27
- icon?: string | Component;
28
+ icon?: IconPropType;
28
29
  }
29
30
  /**
30
31
  * @deprecated Removed after 3.0.0, Use `LinkProps` instead.
@@ -36,7 +37,7 @@ export declare const linkProps: {
36
37
  readonly href: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
37
38
  readonly target: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "_self", boolean>;
38
39
  readonly icon: {
39
- readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
40
+ readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
40
41
  readonly required: false;
41
42
  readonly validator: ((val: unknown) => boolean) | undefined;
42
43
  __epPropKey: true;
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type { Component, ExtractPublicPropTypes, PropType } from 'vue'\nimport type Link from './link.vue'\n\nexport interface LinkProps {\n /**\n * @description type\n */\n type?: 'primary' | 'success' | 'warning' | 'info' | 'danger' | 'default'\n /**\n * @description when underlines should appear\n */\n underline?: boolean | 'always' | 'never' | 'hover'\n\n /**\n * @description whether the component is disabled\n */\n disabled?: boolean\n /**\n * @description same as native hyperlink's `href`\n */\n href?: string\n /**\n * @description same as native hyperlink's `target`\n */\n target?:\n | '_blank'\n | '_parent'\n | '_self'\n | '_top'\n | (string & NonNullable<unknown>)\n\n /**\n * @description icon component\n */\n icon?: string | Component\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `LinkProps` instead.\n */\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: undefined,\n },\n /**\n * @description when underlines should appear\n */\n underline: {\n type: [Boolean, String],\n values: [true, false, 'always', 'never', 'hover'],\n default: undefined,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `LinkProps` instead.\n */\nexport type LinkPropsPublic = ExtractPublicPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link> & unknown\nexport interface LinkConfigContext {\n type?: LinkProps['type']\n underline?: LinkProps['underline']\n}\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;AA0CO,MAAM,YAAYA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIlC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,WAAW,SAAA,EAAW,MAAA,EAAQ,UAAU,SAAS,CAAA;AAAA,IACrE,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,CAAC,OAAA,EAAS,MAAM,CAAA;AAAA,IACtB,QAAQ,CAAC,IAAA,EAAM,KAAA,EAAO,QAAA,EAAU,SAAS,OAAO,CAAA;AAAA,IAChD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,IAAA,EAAM,EAAE,IAAA,EAAM,MAAA,EAAQ,SAAS,EAAA,EAAG;AAAA;AAAA;AAAA;AAAA,EAIlC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC;AAAA;AAEV,CAAU;AAOH,MAAM,SAAA,GAAY;AAAA,EACvB,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAA,YAAe;AAC7C;;;;;"}
1
+ {"version":3,"file":"link.js","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes, PropType } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Link from './link.vue'\n\nexport interface LinkProps {\n /**\n * @description type\n */\n type?: 'primary' | 'success' | 'warning' | 'info' | 'danger' | 'default'\n /**\n * @description when underlines should appear\n */\n underline?: boolean | 'always' | 'never' | 'hover'\n\n /**\n * @description whether the component is disabled\n */\n disabled?: boolean\n /**\n * @description same as native hyperlink's `href`\n */\n href?: string\n /**\n * @description same as native hyperlink's `target`\n */\n target?:\n | '_blank'\n | '_parent'\n | '_self'\n | '_top'\n | (string & NonNullable<unknown>)\n\n /**\n * @description icon component\n */\n icon?: IconPropType\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `LinkProps` instead.\n */\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: undefined,\n },\n /**\n * @description when underlines should appear\n */\n underline: {\n type: [Boolean, String],\n values: [true, false, 'always', 'never', 'hover'],\n default: undefined,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `LinkProps` instead.\n */\nexport type LinkPropsPublic = ExtractPublicPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link> & unknown\nexport interface LinkConfigContext {\n type?: LinkProps['type']\n underline?: LinkProps['underline']\n}\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;AA2CO,MAAM,YAAYA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIlC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,WAAW,SAAA,EAAW,MAAA,EAAQ,UAAU,SAAS,CAAA;AAAA,IACrE,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,CAAC,OAAA,EAAS,MAAM,CAAA;AAAA,IACtB,QAAQ,CAAC,IAAA,EAAM,KAAA,EAAO,QAAA,EAAU,SAAS,OAAO,CAAA;AAAA,IAChD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,IAAA,EAAM,EAAE,IAAA,EAAM,MAAA,EAAQ,SAAS,EAAA,EAAG;AAAA;AAAA;AAAA;AAAA,EAIlC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC;AAAA;AAEV,CAAU;AAOH,MAAM,SAAA,GAAY;AAAA,EACvB,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAA,YAAe;AAC7C;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"mention.js","sources":["../../../../../../packages/components/mention/src/mention.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isFunction,\n isObject,\n isString,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { inputProps } from '@element-plus/components/input'\nimport { filterOption } from './helper'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Mention from './mention.vue'\nimport type { MentionOption } from './types'\nimport type { Options } from '@element-plus/components/popper'\nimport type { InputProps } from '@element-plus/components/input'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface MentionProps extends InputProps {\n /**\n * @description mention options list\n */\n options?: MentionOption[]\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix?: string | string[]\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split?: string\n /**\n * @description customize filter option logic.\n */\n filterOption?: false | typeof filterOption\n /**\n * @description set popup placement\n */\n placement?: 'bottom' | 'top'\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow?: boolean\n /**\n * @description offset of the dropdown panel\n */\n offset?: number\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole?: boolean\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole?: (pattern: string, prefix: string) => boolean\n /**\n * @description input value\n */\n modelValue?: string\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading?: boolean\n /**\n * @description custom class name for dropdown panel\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for dropdown panel\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n /**\n * @description configuration options\n */\n props?: MentionOptionProps\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport const mentionProps = buildProps({\n ...inputProps,\n /**\n * @description mention options list\n */\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix: {\n type: definePropType<string | string[]>([String, Array]),\n default: '@',\n validator: (val: string | string[]) => {\n if (isString(val)) return val.length === 1\n return val.every((v) => isString(v) && v.length === 1)\n },\n },\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split: {\n type: String,\n default: ' ',\n validator: (val: string) => val.length === 1,\n },\n /**\n * @description customize filter option logic.\n */\n filterOption: {\n type: definePropType<false | typeof filterOption>([Boolean, Function]),\n default: () => filterOption,\n validator: (val) => {\n if (val === false) return true\n return isFunction(val)\n },\n },\n /**\n * @description set popup placement\n */\n placement: {\n type: definePropType<'bottom' | 'top'>(String),\n default: 'bottom',\n },\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow: Boolean,\n /**\n * @description offset of the dropdown panel\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole: Boolean,\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole: {\n type: definePropType<(pattern: string, prefix: string) => boolean>(\n Function\n ),\n },\n /**\n * @description input value\n */\n modelValue: String,\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading: Boolean,\n /**\n * @description custom class name for dropdown panel\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for dropdown panel\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}) as Partial<Options>,\n },\n /**\n * @description configuration options\n */\n props: {\n type: definePropType<MentionOptionProps>(Object),\n default: () => mentionDefaultProps,\n },\n})\n\nexport const mentionEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n 'whole-remove': (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n input: (value: string) => isString(value),\n search: (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n select: (option: MentionOption, prefix: string) =>\n isObject(option) && isString(prefix),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type MentionEmits = typeof mentionEmits\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport type MentionPropsPublic = ExtractPublicPropTypes<typeof mentionProps>\nexport type MentionInstance = InstanceType<typeof Mention> & unknown\n\nexport type { MentionOption } from './types'\n\nexport type MentionOptionProps = {\n value?: string\n label?: string\n disabled?: string\n [key: string]: string | undefined\n}\n\nexport const mentionDefaultProps: Required<MentionOptionProps> = {\n value: 'value',\n label: 'label',\n disabled: 'disabled',\n}\n"],"names":["buildProps","inputProps","definePropType","isString","filterOption","isFunction","useTooltipContentProps","UPDATE_MODEL_EVENT","isObject"],"mappings":";;;;;;;;;AAqFO,MAAM,eAAeA,kBAAA,CAAW;AAAA,EACrC,GAAGC,gBAAA;AAAA;AAAA;AAAA;AAAA,EAIH,OAAA,EAAS;AAAA,IACP,IAAA,EAAMC,uBAAgC,KAAK,CAAA;AAAA,IAC3C,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAMA,sBAAA,CAAkC,CAAC,MAAA,EAAQ,KAAK,CAAC,CAAA;AAAA,IACvD,OAAA,EAAS,GAAA;AAAA,IACT,SAAA,EAAW,CAAC,GAAA,KAA2B;AACrC,MAAA,IAAIC,eAAA,CAAS,GAAG,CAAA,EAAG,OAAO,IAAI,MAAA,KAAW,CAAA;AACzC,MAAA,OAAO,GAAA,CAAI,MAAM,CAAC,CAAA,KAAMA,gBAAS,CAAC,CAAA,IAAK,CAAA,CAAE,MAAA,KAAW,CAAC,CAAA;AAAA,IACvD;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS,GAAA;AAAA,IACT,SAAA,EAAW,CAAC,GAAA,KAAgB,GAAA,CAAI,MAAA,KAAW;AAAA,GAC7C;AAAA;AAAA;AAAA;AAAA,EAIA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAMD,sBAAA,CAA4C,CAAC,OAAA,EAAS,QAAQ,CAAC,CAAA;AAAA,IACrE,SAAS,MAAME,mBAAA;AAAA,IACf,SAAA,EAAW,CAAC,GAAA,KAAQ;AAClB,MAAA,IAAI,GAAA,KAAQ,OAAO,OAAO,IAAA;AAC1B,MAAA,OAAOC,kBAAW,GAAG,CAAA;AAAA,IACvB;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,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AAA;AAAA,EACtC,MAAA,EAAQ,CAAC,MAAA,EAAuB,MAAA,KAC9BK,gBAAS,MAAM,CAAA,IAAKL,gBAAS,MAAM,CAAA;AAAA,EACrC,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAC3C,IAAA,EAAM,CAAC,GAAA,KAAoB,GAAA,YAAe;AAC5C;AAkBO,MAAM,mBAAA,GAAoD;AAAA,EAC/D,KAAA,EAAO,OAAA;AAAA,EACP,KAAA,EAAO,OAAA;AAAA,EACP,QAAA,EAAU;AACZ;;;;;;"}
1
+ {"version":3,"file":"mention.js","sources":["../../../../../../packages/components/mention/src/mention.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isFunction,\n isObject,\n isString,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { inputProps } from '@element-plus/components/input'\nimport { filterOption } from './helper'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Mention from './mention.vue'\nimport type { MentionOption } from './types'\nimport type { Options } from '@element-plus/components/popper'\nimport type { InputProps } from '@element-plus/components/input'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface MentionProps extends InputProps {\n /**\n * @description mention options list\n */\n options?: MentionOption[]\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix?: string | string[]\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split?: string\n /**\n * @description customize filter option logic.\n */\n filterOption?: false | typeof filterOption\n /**\n * @description set popup placement\n */\n placement?: 'bottom' | 'top'\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow?: boolean\n /**\n * @description offset of the dropdown panel\n */\n offset?: number\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole?: boolean\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole?: (pattern: string, prefix: string) => boolean\n /**\n * @description input value\n */\n modelValue?: string\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading?: boolean\n /**\n * @description custom class name for dropdown panel\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for dropdown panel\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n /**\n * @description configuration options\n */\n props?: MentionOptionProps\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport const mentionProps = buildProps({\n ...inputProps,\n /**\n * @description mention options list\n */\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix: {\n type: definePropType<string | string[]>([String, Array]),\n default: '@',\n validator: (val: string | string[]) => {\n if (isString(val)) return val.length === 1\n return val.every((v) => isString(v) && v.length === 1)\n },\n },\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split: {\n type: String,\n default: ' ',\n validator: (val: string) => val.length === 1,\n },\n /**\n * @description customize filter option logic.\n */\n filterOption: {\n type: definePropType<false | typeof filterOption>([Boolean, Function]),\n default: () => filterOption,\n validator: (val) => {\n if (val === false) return true\n return isFunction(val)\n },\n },\n /**\n * @description set popup placement\n */\n placement: {\n type: definePropType<'bottom' | 'top'>(String),\n default: 'bottom',\n },\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow: Boolean,\n /**\n * @description offset of the dropdown panel\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole: Boolean,\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole: {\n type: definePropType<(pattern: string, prefix: string) => boolean>(\n Function\n ),\n },\n /**\n * @description input value\n */\n modelValue: String,\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading: Boolean,\n /**\n * @description custom class name for dropdown panel\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for dropdown panel\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}) as Partial<Options>,\n },\n /**\n * @description configuration options\n */\n props: {\n type: definePropType<MentionOptionProps>(Object),\n default: () => mentionDefaultProps,\n },\n})\n\nexport const mentionEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n 'whole-remove': (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n input: (value: string) => isString(value),\n search: (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n select: (option: MentionOption, prefix: string) =>\n isObject(option) && isString(prefix),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type MentionEmits = typeof mentionEmits\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport type MentionPropsPublic = ExtractPublicPropTypes<typeof mentionProps>\nexport type MentionInstance = InstanceType<typeof Mention> & unknown\n\nexport type { MentionOption } from './types'\n\nexport type MentionOptionProps = {\n value?: string\n label?: string\n disabled?: string\n [key: string]: string | undefined\n}\n\nexport const mentionDefaultProps: Required<MentionOptionProps> = {\n value: 'value',\n label: 'label',\n disabled: 'disabled',\n}\n"],"names":["buildProps","inputProps","definePropType","isString","filterOption","isFunction","useTooltipContentProps","UPDATE_MODEL_EVENT","isObject"],"mappings":";;;;;;;;;AAqFO,MAAM,eAAeA,kBAAA,CAAW;AAAA,EACrC,GAAGC,gBAAA;AAAA;AAAA;AAAA;AAAA,EAIH,OAAA,EAAS;AAAA,IACP,IAAA,EAAMC,uBAAgC,KAAK,CAAA;AAAA,IAC3C,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAMA,sBAAA,CAAk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 +83,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
83
83
  prefix: string | string[];
84
84
  modelModifiers: import("@element-plus/nightly/es/components/input").InputModelModifiers;
85
85
  autocomplete: string;
86
- clearIcon: string | import("vue").Component;
86
+ clearIcon: import("@element-plus/nightly/es/utils").IconPropType;
87
87
  wordLimitPosition: "inside" | "outside";
88
88
  validateEvent: boolean;
89
89
  inputStyle: string | false | CSSProperties | import("vue").StyleValue[] | null;
@@ -1,5 +1,5 @@
1
- import type { AppContext, Component, ExtractPublicPropTypes, VNode } from 'vue';
2
- import type { Mutable } from '@element-plus/nightly/es/utils';
1
+ import type { AppContext, ExtractPublicPropTypes, VNode } from 'vue';
2
+ import type { IconPropType, Mutable } from '@element-plus/nightly/es/utils';
3
3
  import type MessageConstructor from './message.vue';
4
4
  export interface MessageProps {
5
5
  /**
@@ -17,7 +17,7 @@ export interface MessageProps {
17
17
  /**
18
18
  * @description custom icon component, overrides `type`
19
19
  */
20
- icon?: string | Component;
20
+ icon?: IconPropType;
21
21
  /**
22
22
  * @description message dom id
23
23
  */
@@ -104,7 +104,7 @@ export declare const messageProps: {
104
104
  readonly customClass: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
105
105
  readonly dangerouslyUseHTMLString: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
106
106
  readonly duration: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3000, boolean>;
107
- readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, undefined, boolean>;
107
+ readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, undefined, boolean>;
108
108
  readonly id: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
109
109
  readonly message: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
110
110
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"message.js","sources":["../../../../../../packages/components/message/src/message.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isClient,\n mutable,\n} from '@element-plus/utils'\n\nimport type { AppContext, Component, ExtractPublicPropTypes, VNode } from 'vue'\nimport type { Mutable } from '@element-plus/utils'\nimport type MessageConstructor from './message.vue'\n\nexport interface MessageProps {\n /**\n * @description custom class name for Message\n */\n customClass?: string\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString?: boolean\n /**\n * @description display duration, millisecond. If set to 0, it will not turn off automatically\n */\n duration?: number\n /**\n * @description custom icon component, overrides `type`\n */\n icon?: string | Component\n /**\n * @description message dom id\n */\n id?: string\n /**\n * @description message text\n */\n message?: string | VNode | (() => VNode)\n /**\n * @description callback function when closed with the message instance as the parameter\n */\n onClose?: () => void\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description message type\n */\n type?: MessageType\n /**\n * @description whether message is plain\n */\n plain?: boolean\n /**\n * @description set the distance to the top of viewport\n */\n offset?: number\n /**\n * @description message placement position\n */\n placement?: MessagePlacement\n /**\n * @description message element zIndex value\n */\n zIndex?: number\n /**\n * @description merge messages with the same content, type of VNode message is not supported\n */\n grouping?: boolean\n /**\n * @description The number of repetitions, similar to badge, is used as the initial number when used with `grouping`\n */\n repeatNum?: number\n}\n\nexport const messageTypes = [\n 'primary',\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport const messagePlacement = [\n 'top',\n 'top-left',\n 'top-right',\n 'bottom',\n 'bottom-left',\n 'bottom-right',\n] as const\n\nexport const MESSAGE_DEFAULT_PLACEMENT = 'top'\n\nexport type MessageType = (typeof messageTypes)[number]\nexport type MessagePlacement = (typeof messagePlacement)[number]\n/** @deprecated please use `MessageType` instead */\nexport type messageType = MessageType // will be removed in 3.0.0.\n\nexport interface MessageConfigContext {\n max?: number\n grouping?: boolean\n duration?: number\n offset?: number\n showClose?: boolean\n plain?: boolean\n placement?: string\n}\n\nexport const messageDefaults = mutable({\n customClass: '',\n dangerouslyUseHTMLString: false,\n duration: 3000,\n icon: undefined,\n id: '',\n message: '',\n onClose: undefined,\n showClose: false,\n type: 'info',\n plain: false,\n offset: 16,\n placement: undefined,\n zIndex: 0,\n grouping: false,\n repeatNum: 1,\n appendTo: isClient ? document.body : (undefined as never),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `MessageProps` instead.\n */\nexport const messageProps = buildProps({\n /**\n * @description custom class name for Message\n */\n customClass: {\n type: String,\n default: messageDefaults.customClass,\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: messageDefaults.dangerouslyUseHTMLString,\n },\n /**\n * @description display duration, millisecond. If set to 0, it will not turn off automatically\n */\n duration: {\n type: Number,\n default: messageDefaults.duration,\n },\n /**\n * @description custom icon component, overrides `type`\n */\n icon: {\n type: iconPropType,\n default: messageDefaults.icon,\n },\n /**\n * @description message dom id\n */\n id: {\n type: String,\n default: messageDefaults.id,\n },\n /**\n * @description message text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: messageDefaults.message,\n },\n /**\n * @description callback function when closed with the message instance as the parameter\n */\n onClose: {\n type: definePropType<() => void>(Function),\n default: messageDefaults.onClose,\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: messageDefaults.showClose,\n },\n /**\n * @description message type\n */\n type: {\n type: String,\n values: messageTypes,\n default: messageDefaults.type,\n },\n /**\n * @description whether message is plain\n */\n plain: {\n type: Boolean,\n default: messageDefaults.plain,\n },\n /**\n * @description set the distance to the top of viewport\n */\n offset: {\n type: Number,\n default: messageDefaults.offset,\n },\n /**\n * @description message placement position\n */\n placement: {\n type: String,\n values: messagePlacement,\n default: messageDefaults.placement,\n },\n /**\n * @description message element zIndex value\n */\n zIndex: {\n type: Number,\n default: messageDefaults.zIndex,\n },\n /**\n * @description merge messages with the same content, type of VNode message is not supported\n */\n grouping: {\n type: Boolean,\n default: messageDefaults.grouping,\n },\n /**\n * @description The number of repetitions, similar to badge, is used as the initial number when used with `grouping`\n */\n repeatNum: {\n type: Number,\n default: messageDefaults.repeatNum,\n },\n} as const)\n/**\n * @deprecated Removed after 3.0.0, Use `MessageProps` instead.\n */\nexport type MessagePropsPublic = ExtractPublicPropTypes<typeof messageProps>\n\nexport const messageEmits = {\n destroy: () => true,\n}\nexport type MessageEmits = typeof messageEmits\n\nexport type MessageInstance = InstanceType<typeof MessageConstructor> & unknown\n\nexport type MessageOptions = Partial<\n Mutable<\n Omit<MessageProps, 'id'> & {\n appendTo?: HTMLElement | string\n }\n >\n>\nexport type MessageParams = MessageOptions | MessageOptions['message']\nexport type MessageParamsNormalized = Omit<MessageProps, 'id'> & {\n /**\n * @description set the root element for the message, default to `document.body`\n */\n appendTo: HTMLElement\n}\nexport type MessageOptionsWithType = Omit<MessageOptions, 'type'>\nexport type MessageParamsWithType =\n | MessageOptionsWithType\n | MessageOptions['message']\n\nexport interface MessageHandler {\n /**\n * @description close the Message\n */\n close: () => void\n}\n\nexport type MessageFn = {\n (options?: MessageParams, appContext?: null | AppContext): MessageHandler\n closeAll(type?: MessageType): void\n closeAllByPlacement(position: MessagePlacement): void\n}\nexport type MessageTypedFn = (\n options?: MessageParamsWithType,\n appContext?: null | AppContext\n) => MessageHandler\n\nexport type Message = MessageFn & {\n primary: MessageTypedFn\n success: MessageTypedFn\n warning: MessageTypedFn\n info: MessageTypedFn\n error: MessageTypedFn\n}\n"],"names":["mutable","isClient","buildProps","iconPropType","definePropType"],"mappings":";;;;;;;AA2EO,MAAM,Y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AgB;AAAA,GAC3B;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,SAAS,eAAA,CAAgB;AAAA,GAC3B;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,SAAS,eAAA,CAAgB;AAAA;AAE7B,CAAU;AAMH,MAAM,YAAA,GAAe;AAAA,EAC1B,SAAS,MAAM;AACjB;;;;;;;;;"}
1
+ {"version":3,"file":"message.js","sources":["../../../../../../packages/components/message/src/message.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isClient,\n mutable,\n} from '@element-plus/utils'\n\nimport type { AppContext, ExtractPublicPropTypes, VNode } from 'vue'\nimport type { IconPropType, Mutable } from '@element-plus/utils'\nimport type MessageConstructor from './message.vue'\n\nexport interface MessageProps {\n /**\n * @description custom class name for Message\n */\n customClass?: string\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString?: boolean\n /**\n * @description display duration, millisecond. If set to 0, it will not turn off automatically\n */\n duration?: number\n /**\n * @description custom icon component, overrides `type`\n */\n icon?: IconPropType\n /**\n * @description message dom id\n */\n id?: string\n /**\n * @description message text\n */\n message?: string | VNode | (() => VNode)\n /**\n * @description callback function when closed with the message instance as the parameter\n */\n onClose?: () => void\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description message type\n */\n type?: MessageType\n /**\n * @description whether message is plain\n */\n plain?: boolean\n /**\n * @description set the distance to the top of viewport\n */\n offset?: number\n /**\n * @description message placement position\n */\n placement?: MessagePlacement\n /**\n * @description message element zIndex value\n */\n zIndex?: number\n /**\n * @description merge messages with the same content, type of VNode message is not supported\n */\n grouping?: boolean\n /**\n * @description The number of repetitions, similar to badge, is used as the initial number when used with `grouping`\n */\n repeatNum?: number\n}\n\nexport const messageTypes = [\n 'primary',\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport const messagePlacement = [\n 'top',\n 'top-left',\n 'top-right',\n 'bottom',\n 'bottom-left',\n 'bottom-right',\n] as const\n\nexport const MESSAGE_DEFAULT_PLACEMENT = 'top'\n\nexport type MessageType = (typeof messageTypes)[number]\nexport type MessagePlacement = (typeof messagePlacement)[number]\n/** @deprecated please use `MessageType` instead */\nexport type messageType = MessageType // will be removed in 3.0.0.\n\nexport interface MessageConfigContext {\n max?: number\n grouping?: boolean\n duration?: number\n offset?: number\n showClose?: boolean\n plain?: boolean\n placement?: string\n}\n\nexport const messageDefaults = mutable({\n customClass: '',\n dangerouslyUseHTMLString: false,\n duration: 3000,\n icon: undefined,\n id: '',\n message: '',\n onClose: undefined,\n showClose: false,\n type: 'info',\n plain: false,\n offset: 16,\n placement: undefined,\n zIndex: 0,\n grouping: false,\n repeatNum: 1,\n appendTo: isClient ? document.body : (undefined as never),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `MessageProps` instead.\n */\nexport const messageProps = buildProps({\n /**\n * @description custom class name for Message\n */\n customClass: {\n type: String,\n default: messageDefaults.customClass,\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: messageDefaults.dangerouslyUseHTMLString,\n },\n /**\n * @description display duration, millisecond. If set to 0, it will not turn off automatically\n */\n duration: {\n type: Number,\n default: messageDefaults.duration,\n },\n /**\n * @description custom icon component, overrides `type`\n */\n icon: {\n type: iconPropType,\n default: messageDefaults.icon,\n },\n /**\n * @description message dom id\n */\n id: {\n type: String,\n default: messageDefaults.id,\n },\n /**\n * @description message text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: messageDefaults.message,\n },\n /**\n * @description callback function when closed with the message instance as the parameter\n */\n onClose: {\n type: definePropType<() => void>(Function),\n default: messageDefaults.onClose,\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: messageDefaults.showClose,\n },\n /**\n * @description message type\n */\n type: {\n type: String,\n values: messageTypes,\n default: messageDefaults.type,\n },\n /**\n * @description whether message is plain\n */\n plain: {\n type: Boolean,\n default: messageDefaults.plain,\n },\n /**\n * @description set the distance to the top of viewport\n */\n offset: {\n type: Number,\n default: messageDefaults.offset,\n },\n /**\n * @description message placement position\n */\n placement: {\n type: String,\n values: messagePlacement,\n default: messageDefaults.placement,\n },\n /**\n * @description message element zIndex value\n */\n zIndex: {\n type: Number,\n default: messageDefaults.zIndex,\n },\n /**\n * @description merge messages with the same content, type of VNode message is not supported\n */\n grouping: {\n type: Boolean,\n default: messageDefaults.grouping,\n },\n /**\n * @description The number of repetitions, similar to badge, is used as the initial number when used with `grouping`\n */\n repeatNum: {\n type: Number,\n default: messageDefaults.repeatNum,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `MessageProps` instead.\n */\nexport type MessagePropsPublic = ExtractPublicPropTypes<typeof messageProps>\n\nexport const messageEmits = {\n destroy: () => true,\n}\nexport type MessageEmits = typeof messageEmits\n\nexport type MessageInstance = InstanceType<typeof MessageConstructor> & unknown\n\nexport type MessageOptions = Partial<\n Mutable<\n Omit<MessageProps, 'id'> & {\n appendTo?: HTMLElement | string\n }\n >\n>\nexport type MessageParams = MessageOptions | MessageOptions['message']\nexport type MessageParamsNormalized = Omit<MessageProps, 'id'> & {\n /**\n * @description set the root element for the message, default to `document.body`\n */\n appendTo: HTMLElement\n}\nexport type MessageOptionsWithType = Omit<MessageOptions, 'type'>\nexport type MessageParamsWithType =\n | MessageOptionsWithType\n | MessageOptions['message']\n\nexport interface MessageHandler {\n /**\n * @description close the Message\n */\n close: () => void\n}\n\nexport type MessageFn = {\n (options?: MessageParams, appContext?: null | AppContext): MessageHandler\n closeAll(type?: MessageType): void\n closeAllByPlacement(position: MessagePlacement): void\n}\nexport type MessageTypedFn = (\n options?: MessageParamsWithType,\n appContext?: null | AppContext\n) => MessageHandler\n\nexport type Message = MessageFn & {\n primary: MessageTypedFn\n success: MessageTypedFn\n warning: MessageTypedFn\n info: MessageTypedFn\n error: MessageTypedFn\n}\n"],"names":["mutable","isClient","buildProps","iconPropType","definePropType"],"mappings":";;;;;;;AA2EO,MAAM,YAAA,GAAe;AAAA,EAC1B,SAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA;AACF;AAEO,MAAM,gBAAA,GAAmB;AAAA,EAC9B,KAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,aAAA;AAAA,EACA;AACF;AAEO,MAAM,yBAAA,GAA4B;AAiBlC,MAAM,kBAAkBA,kBAAA,CAAQ;AAAA,EACrC,WAAA,EAAa,EAAA;AAAA,EACb,wBAAA,EAA0B,KAAA;AAAA,EAC1B,QAAA,EAAU,GAAA;AAAA,EACV,IAAA,EAAM,MAAA;AAAA,EACN,EAAA,EAAI,EAAA;AAAA,EACJ,OAAA,EAAS,EAAA;AAAA,EACT,OAAA,EAAS,MAAA;AAAA,EACT,SAAA,EAAW,KAAA;AAAA,EACX,IAAA,EAAM,MAAA;AAAA,EACN,KAAA,EAAO,KAAA;AAAA,EACP,MAAA,EAAQ,EAAA;AAAA,EACR,SAAA,EAAW,MAAA;AAAA,EACX,MAAA,EAAQ,CAAA;AAAA,EACR,QAAA,EAAU,KAAA;AAAA,EACV,SAAA,EAAW,CAAA;AAAA,EACX,QAAA,EAAUC,aAAA,GAAW,QAAA,CAAS,IAAA,GAAQ;AACxC,CAAU;AAKH,MAAM,eAAeC,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIrC,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,SAAS,eAAA,CAAgB;AAAA,GAC3B;AAAA;AAAA;AAAA;AAAA,EAIA,wBAAA,EAA0B;AAAA,IACxB,IAAA,EAAM,OAAA;AAAA,IACN,SAAS,eAAA,CAAgB;AAAA,GAC3B;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR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AA,GAC3B;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,SAAS,eAAA,CAAgB;AAAA,GAC3B;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,SAAS,eAAA,CAAgB;AAAA,GAC3B;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,SAAS,eAAA,CAAgB;AAAA;AAE7B,CAAU;AAOH,MAAM,YAAA,GAAe;AAAA,EAC1B,SAAS,MAAM;AACjB;;;;;;;;;"}
@@ -49,7 +49,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
49
49
  }, {
50
50
  zIndex: number;
51
51
  offset: number;
52
- icon: string | import("vue").Component;
52
+ icon: import("@element-plus/nightly/es/utils").IconPropType;
53
53
  id: string;
54
54
  type: import("./message").MessageType;
55
55
  message: string | import("vue").VNode | (() => import("vue").VNode);
@@ -1,4 +1,5 @@
1
- import type { AppContext, Component, ExtractPublicPropTypes, VNode } from 'vue';
1
+ import type { AppContext, ExtractPublicPropTypes, VNode } from 'vue';
2
+ import type { IconPropType } from '@element-plus/nightly/es/utils';
2
3
  import type Notification from './notification.vue';
3
4
  export declare const notificationTypes: readonly ["primary", "success", "info", "warning", "error"];
4
5
  export type NotificationType = (typeof notificationTypes)[number] | '';
@@ -19,7 +20,7 @@ export interface NotificationProps {
19
20
  /**
20
21
  * @description custom icon component. It will be overridden by `type`
21
22
  */
22
- icon?: string | Component;
23
+ icon?: IconPropType;
23
24
  /**
24
25
  * @description notification dom id
25
26
  */
@@ -63,7 +64,7 @@ export interface NotificationProps {
63
64
  /**
64
65
  * @description custom close icon, default is Close
65
66
  */
66
- closeIcon?: string | Component;
67
+ closeIcon?: IconPropType;
67
68
  }
68
69
  /**
69
70
  * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.
@@ -73,7 +74,7 @@ export declare const notificationProps: {
73
74
  readonly dangerouslyUseHTMLString: BooleanConstructor;
74
75
  readonly duration: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 4500, boolean>;
75
76
  readonly icon: {
76
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
77
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
77
78
  readonly required: false;
78
79
  readonly validator: ((val: unknown) => boolean) | undefined;
79
80
  __epPropKey: true;
@@ -110,7 +111,7 @@ export declare const notificationProps: {
110
111
  readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "primary" | "success" | "warning" | "info", unknown, "", boolean>;
111
112
  readonly zIndex: NumberConstructor;
112
113
  readonly closeIcon: {
113
- readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
114
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
114
115
  readonly required: false;
115
116
  readonly validator: ((val: unknown) => boolean) | undefined;
116
117
  __epPropKey: true;
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { Close } from '@element-plus/icons-vue'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\n\nimport type { AppContext, Component, ExtractPublicPropTypes, VNode } from 'vue'\nimport type Notification from './notification.vue'\n\nexport const notificationTypes = [\n 'primary',\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport type NotificationType = (typeof notificationTypes)[number] | ''\n\nexport type NotificationPosition =\n | 'top-right'\n | 'top-left'\n | 'bottom-right'\n | 'bottom-left'\n\nexport interface NotificationProps {\n /**\n * @description custom class name for Notification\n */\n customClass?: string\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString?: boolean\n /**\n * @description duration before close. It will not automatically close if set 0\n */\n duration?: number\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon?: string | Component\n /**\n * @description notification dom id\n */\n id?: string\n /**\n * @description description text\n */\n message?: string | VNode | (() => VNode)\n /**\n * @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset\n */\n offset?: number\n /**\n * @description callback function when notification clicked\n */\n onClick?: () => void\n /**\n * @description callback function when closed\n */\n onClose: () => void\n /**\n * @description custom position\n */\n position?: NotificationPosition\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description title\n */\n title?: string\n /**\n * @description notification type\n */\n type?: NotificationType\n /**\n * @description initial zIndex\n */\n zIndex?: number\n /**\n * @description custom close icon, default is Close\n */\n closeIcon?: string | Component\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\nexport const notificationProps = buildProps({\n /**\n * @description custom class name for Notification\n */\n customClass: {\n type: String,\n default: '',\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: Boolean,\n /**\n * @description duration before close. It will not automatically close if set 0\n */\n duration: {\n type: Number,\n default: 4500,\n },\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description notification dom id\n */\n id: {\n type: String,\n default: '',\n },\n /**\n * @description description text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: '',\n },\n /**\n * @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description callback function when notification clicked\n */\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n /**\n * @description callback function when closed\n */\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n /**\n * @description custom position\n */\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description notification type\n */\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n /**\n * @description initial zIndex\n */\n zIndex: Number,\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n default: Close,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\nexport type NotificationPropsPublic = ExtractPublicPropTypes<\n typeof notificationProps\n>\n\nexport const notificationEmits = {\n destroy: () => true,\n}\nexport type NotificationEmits = typeof notificationEmits\n\nexport type NotificationInstance = InstanceType<typeof Notification> & unknown\n\nexport type NotificationOptions = Omit<NotificationProps, 'id' | 'onClose'> & {\n /**\n * @description set the root element for the notification, default to `document.body`\n */\n appendTo?: HTMLElement | string\n /**\n * @description callback function when closed\n */\n onClose?(vm: VNode): void\n}\nexport type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>\n\nexport interface NotificationHandle {\n close: () => void\n}\n\nexport type NotificationParams = Partial<NotificationOptions> | string | VNode\nexport type NotificationParamsTyped =\n | Partial<NotificationOptionsTyped>\n | string\n | VNode\n\nexport interface NotifyFn {\n (\n options?: NotificationParams,\n appContext?: null | AppContext\n ): NotificationHandle\n closeAll(): void\n updateOffsets(position?: NotificationOptions['position']): void\n _context: AppContext | null\n}\n\nexport type NotifyTypedFn = (\n options?: NotificationParamsTyped,\n appContext?: null | AppContext\n) => NotificationHandle\n\nexport interface Notify extends NotifyFn {\n primary: NotifyTypedFn\n success: NotifyTypedFn\n warning: NotifyTypedFn\n error: NotifyTypedFn\n info: NotifyTypedFn\n}\n\nexport interface NotificationQueueItem {\n vm: VNode\n}\n\nexport type NotificationQueue = NotificationQueueItem[]\n"],"names":["buildProps","iconPropType","definePropType","Close"],"mappings":";;;;;;AAMO,MAAM,iBAAA,GAAoB;AAAA,EAC/B,SAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA;AACF;AA4EO,MAAM,oBAAoBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI1C,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,wBAAA,EAA0B,OAAA;AAAA;AAAA;AAAA;AAAA,EAI1B,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,EAAA,EAAI;AAAA,IACF,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,MAAMC,sBAAA,CAA+C;AAAA,MACnD,MAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAMA,uBAA2B,QAAQ,CAAA;AAAA,IACzC,SAAS,MAAM;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAMA,uBAA2B,QAAQ,CAAA;AAAA,IACzC,QAAA,EAAU;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,CAAC,WAAA,EAAa,UAAA,EAAY,gBAAgB,aAAa,CAAA;AAAA,IAC/D,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,CAAC,GAAG,iBAAA,EAAmB,EAAE,CAAA;AAAA,IACjC,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ,MAAA;AAAA;AAAA;AAAA;AAAA,EAIR,SAAA,EAAW;AAAA,IACT,IAAA,EAAMD,iBAAA;AAAA,IACN,OAAA,EAASE;AAAA;AAEb,CAAU;AASH,MAAM,iBAAA,GAAoB;AAAA,EAC/B,SAAS,MAAM;AACjB;;;;;;"}
1
+ {"version":3,"file":"notification.js","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { Close } from '@element-plus/icons-vue'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\n\nimport type { AppContext, ExtractPublicPropTypes, VNode } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Notification from './notification.vue'\n\nexport const notificationTypes = [\n 'primary',\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport type NotificationType = (typeof notificationTypes)[number] | ''\n\nexport type NotificationPosition =\n | 'top-right'\n | 'top-left'\n | 'bottom-right'\n | 'bottom-left'\n\nexport interface NotificationProps {\n /**\n * @description custom class name for Notification\n */\n customClass?: string\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString?: boolean\n /**\n * @description duration before close. It will not automatically close if set 0\n */\n duration?: number\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon?: IconPropType\n /**\n * @description notification dom id\n */\n id?: string\n /**\n * @description description text\n */\n message?: string | VNode | (() => VNode)\n /**\n * @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset\n */\n offset?: number\n /**\n * @description callback function when notification clicked\n */\n onClick?: () => void\n /**\n * @description callback function when closed\n */\n onClose: () => void\n /**\n * @description custom position\n */\n position?: NotificationPosition\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description title\n */\n title?: string\n /**\n * @description notification type\n */\n type?: NotificationType\n /**\n * @description initial zIndex\n */\n zIndex?: number\n /**\n * @description custom close icon, default is Close\n */\n closeIcon?: IconPropType\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\nexport const notificationProps = buildProps({\n /**\n * @description custom class name for Notification\n */\n customClass: {\n type: String,\n default: '',\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: Boolean,\n /**\n * @description duration before close. It will not automatically close if set 0\n */\n duration: {\n type: Number,\n default: 4500,\n },\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description notification dom id\n */\n id: {\n type: String,\n default: '',\n },\n /**\n * @description description text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: '',\n },\n /**\n * @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description callback function when notification clicked\n */\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n /**\n * @description callback function when closed\n */\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n /**\n * @description custom position\n */\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description notification type\n */\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n /**\n * @description initial zIndex\n */\n zIndex: Number,\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n default: Close,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\nexport type NotificationPropsPublic = ExtractPublicPropTypes<\n typeof notificationProps\n>\n\nexport const notificationEmits = {\n destroy: () => true,\n}\nexport type NotificationEmits = typeof notificationEmits\n\nexport type NotificationInstance = InstanceType<typeof Notification> & unknown\n\nexport type NotificationOptions = Omit<NotificationProps, 'id' | 'onClose'> & {\n /**\n * @description set the root element for the notification, default to `document.body`\n */\n appendTo?: HTMLElement | string\n /**\n * @description callback function when closed\n */\n onClose?(vm: VNode): void\n}\nexport type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>\n\nexport interface NotificationHandle {\n close: () => void\n}\n\nexport type NotificationParams = Partial<NotificationOptions> | string | VNode\nexport type NotificationParamsTyped =\n | Partial<NotificationOptionsTyped>\n | string\n | VNode\n\nexport interface NotifyFn {\n (\n options?: NotificationParams,\n appContext?: null | AppContext\n ): NotificationHandle\n closeAll(): void\n updateOffsets(position?: NotificationOptions['position']): void\n _context: AppContext | null\n}\n\nexport type NotifyTypedFn = (\n options?: NotificationParamsTyped,\n appContext?: null | AppContext\n) => NotificationHandle\n\nexport interface Notify extends NotifyFn {\n primary: NotifyTypedFn\n success: NotifyTypedFn\n warning: NotifyTypedFn\n error: NotifyTypedFn\n info: NotifyTypedFn\n}\n\nexport interface NotificationQueueItem {\n vm: VNode\n}\n\nexport type NotificationQueue = NotificationQueueItem[]\n"],"names":["buildProps","iconPropType","definePropType","Close"],"mappings":";;;;;;AAOO,MAAM,iBAAA,GAAoB;AAAA,EAC/B,SAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA;AACF;AA4EO,MAAM,oBAAoBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI1C,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,wBAAA,EAA0B,OAAA;AAAA;AAAA;AAAA;AAAA,EAI1B,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,EAAA,EAAI;AAAA,IACF,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,MAAMC,sBAAA,CAA+C;AAAA,MACnD,MAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAMA,uBAA2B,QAAQ,CAAA;AAAA,IACzC,SAAS,MAAM;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAMA,uBAA2B,QAAQ,CAAA;AAAA,IACzC,QAAA,EAAU;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,CAAC,WAAA,EAAa,UAAA,EAAY,gBAAgB,aAAa,CAAA;AAAA,IAC/D,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,CAAC,GAAG,iBAAA,EAAmB,EAAE,CAAA;AAAA,IACjC,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ,MAAA;AAAA;AAAA;AAAA;AAAA,EAIR,SAAA,EAAW;AAAA,IACT,IAAA,EAAMD,iBAAA;AAAA,IACN,OAAA,EAASE;AAAA;AAEb,CAAU;AASH,MAAM,iBAAA,GAAoB;AAAA,EAC/B,SAAS,MAAM;AACjB;;;;;;"}
@@ -44,7 +44,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
44
44
  type: import("./notification").NotificationType;
45
45
  message: string | import("vue").VNode | (() => import("vue").VNode);
46
46
  onClick: () => void;
47
- closeIcon: string | import("vue").Component;
47
+ closeIcon: import("@element-plus/nightly/es/utils").IconPropType;
48
48
  showClose: boolean;
49
49
  duration: number;
50
50
  customClass: string;
@@ -1,10 +1,11 @@
1
- import type { Component, ExtractPublicPropTypes } from 'vue';
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { IconPropType } from '@element-plus/nightly/es/utils';
2
3
  import type PageHeader from './page-header.vue';
3
4
  export interface PageHeaderProps {
4
5
  /**
5
6
  * @description icon component of page header
6
7
  */
7
- icon?: string | Component;
8
+ icon?: IconPropType;
8
9
  /**
9
10
  * @description main title of page header
10
11
  */
@@ -14,11 +15,17 @@ export interface PageHeaderProps {
14
15
  */
15
16
  content?: string;
16
17
  }
18
+ /**
19
+ * @deprecated Removed after 3.0.0, Use `PageHeaderProps` instead.
20
+ */
17
21
  export declare const pageHeaderProps: {
18
- readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>;
22
+ readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
19
23
  readonly title: StringConstructor;
20
24
  readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
21
25
  };
26
+ /**
27
+ * @deprecated Removed after 3.0.0, Use `PageHeaderProps` instead.
28
+ */
22
29
  export type PageHeaderPropsPublic = ExtractPublicPropTypes<typeof pageHeaderProps>;
23
30
  export declare const pageHeaderEmits: {
24
31
  back: () => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"page-header.js","sources":["../../../../../../packages/components/page-header/src/page-header.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport { Back } from '@element-plus/icons-vue'\n\nimport type { Component, ExtractPublicPropTypes } from 'vue'\nimport type PageHeader from './page-header.vue'\n\nexport interface PageHeaderProps {\n /**\n * @description icon component of page header\n */\n icon?: string | Component\n /**\n * @description main title of page header\n */\n title?: string\n /**\n * @description content of page header\n */\n content?: string\n}\n\nexport const pageHeaderProps = buildProps({\n /**\n * @description icon component of page header\n */\n icon: {\n type: iconPropType,\n default: () => Back,\n },\n /**\n * @description main title of page header\n */\n title: String,\n /**\n * @description content of page header\n */\n content: {\n type: String,\n default: '',\n },\n} as const)\nexport type PageHeaderPropsPublic = ExtractPublicPropTypes<\n typeof pageHeaderProps\n>\n\nexport const pageHeaderEmits = {\n back: () => true,\n}\nexport type PageHeaderEmits = typeof pageHeaderEmits\n\nexport type PageHeaderInstance = InstanceType<typeof PageHeader> & unknown\n"],"names":["buildProps","iconPropType","Back"],"mappings":";;;;;;AAqBO,MAAM,kBAAkBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC,iBAAA;AAAA,IACN,SAAS,MAAMC;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO,MAAA;AAAA;AAAA;AAAA;AAAA,EAIP,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;AAKH,MAAM,eAAA,GAAkB;AAAA,EAC7B,MAAM,MAAM;AACd;;;;;"}
1
+ {"version":3,"file":"page-header.js","sources":["../../../../../../packages/components/page-header/src/page-header.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport { Back } from '@element-plus/icons-vue'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type PageHeader from './page-header.vue'\n\nexport interface PageHeaderProps {\n /**\n * @description icon component of page header\n */\n icon?: IconPropType\n /**\n * @description main title of page header\n */\n title?: string\n /**\n * @description content of page header\n */\n content?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PageHeaderProps` instead.\n */\nexport const pageHeaderProps = buildProps({\n /**\n * @description icon component of page header\n */\n icon: {\n type: iconPropType,\n default: () => Back,\n },\n /**\n * @description main title of page header\n */\n title: String,\n /**\n * @description content of page header\n */\n content: {\n type: String,\n default: '',\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `PageHeaderProps` instead.\n */\nexport type PageHeaderPropsPublic = ExtractPublicPropTypes<\n typeof pageHeaderProps\n>\n\nexport const pageHeaderEmits = {\n back: () => true,\n}\nexport type PageHeaderEmits = typeof pageHeaderEmits\n\nexport type PageHeaderInstance = InstanceType<typeof PageHeader> & unknown\n"],"names":["buildProps","iconPropType","Back"],"mappings":";;;;;;AAyBO,MAAM,kBAAkBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC,iBAAA;AAAA,IACN,SAAS,MAAMC;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO,MAAA;AAAA;AAAA;AAAA;AAAA,EAIP,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;AASH,MAAM,eAAA,GAAkB;AAAA,EAC7B,MAAM,MAAM;AACd;;;;;"}
@@ -25,7 +25,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
25
25
  onBack?: (() => any) | undefined;
26
26
  }, {
27
27
  content: string;
28
- icon: string | import("vue").Component;
28
+ icon: import("@element-plus/nightly/es/utils").IconPropType;
29
29
  }, {}>;
30
30
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
31
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"page-header.vue2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.is('contentful', !!$slots.default),\n {\n [ns.m('has-breadcrumb')]: !!$slots.breadcrumb,\n [ns.m('has-extra')]: !!$slots.extra,\n },\n ]\"\n >\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { Back as IconBack } from '@element-plus/icons-vue'\nimport { pageHeaderEmits } from './page-header'\n\nimport type { PageHeaderProps } from './page-header'\n\ndefineOptions({\n name: 'ElPageHeader',\n})\n\nwithDefaults(defineProps<PageHeaderProps>(), {\n icon: () => IconBack,\n content: '',\n})\nconst emit = defineEmits(pageHeaderEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('page-header')\n\nfunction handleClick() {\n emit('back')\n}\n</script>\n"],"names":["useLocale","useNamespace","_createElementBlock","_normalizeClass","_unref","$slots","_renderSlot","_createElementVNode","_createBlock","ElIcon","_openBlock","_resolveDynamicComponent","_createTextVNode","_toDisplayString","_createVNode","ElDivider"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuEA,IAAA,MAAM,IAAA,GAAO,MAAA;AAEb,IAAA,MAAM,EAAE,CAAA,EAAE,GAAIA,eAAA,EAAU;AACxB,IAAA,MAAM,EAAA,GAAKC,qBAAa,aAAa,CAAA;AAErC,IAAA,SAAS,WAAA,GAAc;AACrB,MAAA,IAAA,CAAK,MAAM,CAAA;AAAA,IACb;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A;AAAA;AAAA;AAAA;;;;;;;;;cAIxBD,IAAAA,CAAAA,MAAAA,CAAO,KAAA,qBAAlBH,sBAAA;AAAA,gBAEM,KAAA;AAAA,gBAAA;AAAA;kBAFoB,OAAKC,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,OAAA,CAAA;AAAA;;kBACnCE,cAAA,CAAqB,IAAA,CAAA,MAAA,EAAA,OAAA;AAAA;;;;;;;;UAIdD,IAAAA,CAAAA,MAAAA,CAAO,OAAA,qBAAlBH,sBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA;cAFsB,OAAKC,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,MAAA,CAAA;AAAA;;cACrCE,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"page-header.vue2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.is('contentful', !!$slots.default),\n {\n [ns.m('has-breadcrumb')]: !!$slots.breadcrumb,\n [ns.m('has-extra')]: !!$slots.extra,\n },\n ]\"\n >\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { Back } from '@element-plus/icons-vue'\nimport { pageHeaderEmits } from './page-header'\n\nimport type { PageHeaderProps } from './page-header'\n\ndefineOptions({\n name: 'ElPageHeader',\n})\n\nwithDefaults(defineProps<PageHeaderProps>(), {\n icon: () => Back,\n content: '',\n})\nconst emit = defineEmits(pageHeaderEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('page-header')\n\nfunction handleClick() {\n emit('back')\n}\n</script>\n"],"names":["useLocale","useNamespace","_createElementBlock","_normalizeClass","_unref","$slots","_renderSlot","_createElementVNode","_createBlock","ElIcon","_openBlock","_resolveDynamicComponent","_createTextVNode","_toDisplayString","_createVNode","ElDivider"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuEA,IAAA,MAAM,IAAA,GAAO,MAAA;AAEb,IAAA,MAAM,EAAE,CAAA,EAAE,GAAIA,eAAA,EAAU;AACxB,IAAA,MAAM,EAAA,GAAKC,qBAAa,aAAa,CAAA;AAErC,IAAA,SAAS,WAAA,GAAc;AACrB,MAAA,IAAA,CAAK,MAAM,CAAA;AAAA,IACb;;8BA7EEC,sBAAA;AAAA,QAkDM,KAAA;AAAA,QAAA;AAAA,UAjDH,OAAKC,kBAAA,CAAA;AAAA,YAAUC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,EAAC;AAAA,YAAUA,SAAA,CAAA,EAAA,CAAA,CAAG,EAAA,CAAE,cAAA,CAAA,CAAiBC,IAAAA,CAAAA,MAAAA,CAAO,OAAO,CAAA;AAAA;cAAoB,CAAAD,SAAA,CAAA,EAAA,C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AAAA,CAAAA,MAAAA,CAAO,OAAA,qBAAlBH,sBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA;cAFsB,OAAKC,kBAAA,CAAEC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,MAAA,CAAA;AAAA;;cACrCE,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA;AAAA;;;;;;;;;;;;;;"}
@@ -1,6 +1,7 @@
1
- import type { Component, ExtractPublicPropTypes } from 'vue';
1
+ import type { ExtractPublicPropTypes } from 'vue';
2
2
  import type { ButtonType } from '@element-plus/nightly/es/components/button';
3
3
  import type { ElTooltipContentProps, ElTooltipTriggerProps } from '@element-plus/nightly/es/components/tooltip';
4
+ import type { IconPropType } from '@element-plus/nightly/es/utils';
4
5
  import type Popconfirm from './popconfirm.vue';
5
6
  export interface PopconfirmProps {
6
7
  /**
@@ -26,7 +27,7 @@ export interface PopconfirmProps {
26
27
  /**
27
28
  * @description Icon Component
28
29
  */
29
- icon?: string | Component;
30
+ icon?: IconPropType;
30
31
  /**
31
32
  * @description Icon color
32
33
  */
@@ -73,7 +74,7 @@ export declare const popconfirmProps: {
73
74
  readonly cancelButtonText: StringConstructor;
74
75
  readonly confirmButtonType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown, "primary", boolean>;
75
76
  readonly cancelButtonType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown, "text", boolean>;
76
- readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>;
77
+ readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
77
78
  readonly iconColor: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#f90", boolean>;
78
79
  readonly hideIcon: BooleanConstructor;
79
80
  readonly hideAfter: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"popconfirm.js","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { buttonTypes } from '@element-plus/components/button'\nimport { QuestionFilled } from '@element-plus/icons-vue'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\n\nimport type { Component, ExtractPublicPropTypes } from 'vue'\nimport type { ButtonType } from '@element-plus/components/button'\nimport type {\n ElTooltipContentProps,\n ElTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport type Popconfirm from './popconfirm.vue'\n\nexport interface PopconfirmProps {\n /**\n * @description Title\n */\n title?: string\n /**\n * @description Confirm button text\n */\n confirmButtonText?: string\n /**\n * @description Cancel button text\n */\n cancelButtonText?: string\n /**\n * @description Confirm button type\n */\n confirmButtonType?: ButtonType\n /**\n * @description Cancel button type\n */\n cancelButtonType?: ButtonType\n /**\n * @description Icon Component\n */\n icon?: string | Component\n /**\n * @description Icon color\n */\n iconColor?: string\n /**\n * @description is hide Icon\n */\n hideIcon?: boolean\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter?: number\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect?: ElTooltipContentProps['effect']\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported?: ElTooltipContentProps['teleported']\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent?: ElTooltipContentProps['persistent']\n /**\n * @description popconfirm width, min width 150px\n */\n width?: string | number\n /**\n * @description Indicates whether virtual triggering is enabled\n */\n virtualTriggering?: ElTooltipTriggerProps['virtualTriggering']\n /**\n * @description Indicates the reference element to which the popper is attached\n */\n virtualRef?: ElTooltipTriggerProps['virtualRef']\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopconfirmProps` instead.\n */\nexport const popconfirmProps = buildProps({\n /**\n * @description Title\n */\n title: String,\n /**\n * @description Confirm button text\n */\n confirmButtonText: String,\n /**\n * @description Cancel button text\n */\n cancelButtonText: String,\n /**\n * @description Confirm button type\n */\n confirmButtonType: {\n type: String,\n values: buttonTypes,\n default: 'primary',\n },\n /**\n * @description Cancel button type\n */\n cancelButtonType: {\n type: String,\n values: buttonTypes,\n default: 'text',\n },\n /**\n * @description Icon Component\n */\n icon: {\n type: iconPropType,\n default: () => QuestionFilled,\n },\n /**\n * @description Icon color\n */\n iconColor: {\n type: String,\n default: '#f90',\n },\n /**\n * @description is hide Icon\n */\n hideIcon: Boolean,\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter: {\n type: Number,\n default: 200,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent: useTooltipContentProps.persistent,\n /**\n * @description popconfirm width, min width 150px\n */\n width: {\n type: [String, Number],\n default: 150,\n },\n virtualTriggering: useTooltipTriggerProps.virtualTriggering,\n virtualRef: useTooltipTriggerProps.virtualRef,\n} as const)\n\nexport const popconfirmEmits = {\n /**\n * @description triggers when click confirm button\n */\n confirm: (e: MouseEvent) => e instanceof MouseEvent,\n /**\n * @description triggers when click cancel button\n */\n cancel: (e: MouseEvent) => e instanceof MouseEvent,\n}\n\nexport type PopconfirmEmits = typeof popconfirmEmits\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopconfirmProps` instead.\n */\nexport type PopconfirmPropsPublic = ExtractPublicPropTypes<\n typeof popconfirmProps\n>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm> & unknown\n"],"names":["buildProps","buttonTypes","iconPropType","QuestionFilled","useTooltipContentProps","useTooltipTriggerProps"],"mappings":";;;;;;;;;AAkFO,MAAM,kBAAkBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,KAAA,EAAO,MAAA;AAAA;AAAA;AAAA;AAAA,EAIP,iBAAA,EAAmB,MAAA;AAAA;AAAA;AAAA;AAAA,EAInB,gBAAA,EAAkB,MAAA;AAAA;AAAA;AAAA;AAAA,EAIlB,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQC,kBAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,gBAAA,EAAkB;AAAA,IAChB,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQA,kBAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC,iBAAA;AAAA,IACN,SAAS,MAAMC;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,GAAGC,8BAAA,CAAuB,MAAA;AAAA,IAC1B,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAYA,8BAAA,CAAuB,UAAA;AAAA;AAAA;AAAA;AAAA,EAInC,YAAYA,8BAAA,CAAuB,UAAA;AAAA;AAAA;AAAA;AAAA,EAInC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAA,EAAS;AAAA,GACX;AAAA,EACA,mBAAmBC,8BAAA,CAAuB,iBAAA;AAAA,EAC1C,YAAYA,8BAAA,CAAuB;AACrC,CAAU;AAEH,MAAM,eAAA,GAAkB;AAAA;AAAA;AAAA;AAAA,EAI7B,OAAA,EAAS,CAAC,CAAA,KAAkB,CAAA,YAAa,UAAA;AAAA;AAAA;AAAA;AAAA,EAIzC,MAAA,EAAQ,CAAC,CAAA,KAAkB,CAAA,YAAa;AAC1C;;;;;"}
1
+ {"version":3,"file":"popconfirm.js","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { buttonTypes } from '@element-plus/components/button'\nimport { QuestionFilled } from '@element-plus/icons-vue'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ButtonType } from '@element-plus/components/button'\nimport type {\n ElTooltipContentProps,\n ElTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Popconfirm from './popconfirm.vue'\n\nexport interface PopconfirmProps {\n /**\n * @description Title\n */\n title?: string\n /**\n * @description Confirm button text\n */\n confirmButtonText?: string\n /**\n * @description Cancel button text\n */\n cancelButtonText?: string\n /**\n * @description Confirm button type\n */\n confirmButtonType?: ButtonType\n /**\n * @description Cancel button type\n */\n cancelButtonType?: ButtonType\n /**\n * @description Icon Component\n */\n icon?: IconPropType\n /**\n * @description Icon color\n */\n iconColor?: string\n /**\n * @description is hide Icon\n */\n hideIcon?: boolean\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter?: number\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect?: ElTooltipContentProps['effect']\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported?: ElTooltipContentProps['teleported']\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent?: ElTooltipContentProps['persistent']\n /**\n * @description popconfirm width, min width 150px\n */\n width?: string | number\n /**\n * @description Indicates whether virtual triggering is enabled\n */\n virtualTriggering?: ElTooltipTriggerProps['virtualTriggering']\n /**\n * @description Indicates the reference element to which the popper is attached\n */\n virtualRef?: ElTooltipTriggerProps['virtualRef']\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopconfirmProps` instead.\n */\nexport const popconfirmProps = buildProps({\n /**\n * @description Title\n */\n title: String,\n /**\n * @description Confirm button text\n */\n confirmButtonText: String,\n /**\n * @description Cancel button text\n */\n cancelButtonText: String,\n /**\n * @description Confirm button type\n */\n confirmButtonType: {\n type: String,\n values: buttonTypes,\n default: 'primary',\n },\n /**\n * @description Cancel button type\n */\n cancelButtonType: {\n type: String,\n values: buttonTypes,\n default: 'text',\n },\n /**\n * @description Icon Component\n */\n icon: {\n type: iconPropType,\n default: () => QuestionFilled,\n },\n /**\n * @description Icon color\n */\n iconColor: {\n type: String,\n default: '#f90',\n },\n /**\n * @description is hide Icon\n */\n hideIcon: Boolean,\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter: {\n type: Number,\n default: 200,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent: useTooltipContentProps.persistent,\n /**\n * @description popconfirm width, min width 150px\n */\n width: {\n type: [String, Number],\n default: 150,\n },\n virtualTriggering: useTooltipTriggerProps.virtualTriggering,\n virtualRef: useTooltipTriggerProps.virtualRef,\n} as const)\n\nexport const popconfirmEmits = {\n /**\n * @description triggers when click confirm button\n */\n confirm: (e: MouseEvent) => e instanceof MouseEvent,\n /**\n * @description triggers when click cancel button\n */\n cancel: (e: MouseEvent) => e instanceof MouseEvent,\n}\n\nexport type PopconfirmEmits = typeof popconfirmEmits\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopconfirmProps` instead.\n */\nexport type PopconfirmPropsPublic = ExtractPublicPropTypes<\n typeof popconfirmProps\n>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm> & unknown\n"],"names":["buildProps","buttonTypes","iconPropType","QuestionFilled","useTooltipContentProps","useTooltipTriggerProps"],"mappings":";;;;;;;;;AAmFO,MAAM,kBAAkBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,KAAA,EAAO,MAAA;AAAA;AAAA;AAAA;AAAA,EAIP,iBAAA,EAAmB,MAAA;AAAA;AAAA;AAAA;AAAA,EAInB,gBAAA,EAAkB,MAAA;AAAA;AAAA;AAAA;AAAA,EAIlB,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQC,kBAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,gBAAA,EAAkB;AAAA,IAChB,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQA,kBAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC,iBAAA;AAAA,IACN,SAAS,MAAMC;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,GAAGC,8BAAA,CAAuB,MAAA;AAAA,IAC1B,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAYA,8BAAA,CAAuB,UAAA;AAAA;AAAA;AAAA;AAAA,EAInC,YAAYA,8BAAA,CAAuB,UAAA;AAAA;AAAA;AAAA;AAAA,EAInC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAA,EAAS;AAAA,GACX;AAAA,EACA,mBAAmBC,8BAAA,CAAuB,iBAAA;AAAA,EAC1C,YAAYA,8BAAA,CAAuB;AACrC,CAAU;AAEH,MAAM,eAAA,GAAkB;AAAA;AAAA;AAAA;AAAA,EAI7B,OAAA,EAAS,CAAC,CAAA,KAAkB,CAAA,YAAa,UAAA;AAAA;AAAA;AAAA;AAAA,EAIzC,MAAA,EAAQ,CAAC,CAAA,KAAkB,CAAA,YAAa;AAC1C;;;;;"}
@@ -37,7 +37,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
37
37
  onConfirm?: ((e: MouseEvent) => any) | undefined;
38
38
  }, {
39
39
  width: string | number;
40
- icon: string | import("vue").Component;
40
+ icon: import("@element-plus/nightly/es/utils").IconPropType;
41
41
  effect: import("element-plus").PopperEffect;
42
42
  hideAfter: number;
43
43
  teleported: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"arrow.js","sources":["../../../../../../packages/components/popper/src/arrow.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Arrow from './arrow.vue'\n\nexport interface PopperArrowProps {\n /**\n * @description arrow offset\n */\n arrowOffset?: number\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperArrowProps` instead.\n */\nexport const popperArrowProps = buildProps({\n arrowOffset: {\n type: Number,\n default: 5,\n },\n} as const)\n/**\n * @deprecated Removed after 3.0.0, Use `PopperArrowProps` instead.\n */\nexport type PopperArrowPropsPublic = ExtractPublicPropTypes<\n typeof popperArrowProps\n>\n\nexport const popperArrowPropsDefaults = {\n arrowOffset: 5,\n} as const\n\nexport type PopperArrowInstance = InstanceType<typeof Arrow> & unknown\n\n/** @deprecated use `popperArrowProps` instead, and it will be deprecated in the next major version */\nexport const usePopperArrowProps = popperArrowProps\n\n/** @deprecated use `PopperArrowProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperArrowProps = PopperArrowProps\n\n/** @deprecated use `PopperArrowInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowInstance = PopperArrowInstance\n"],"names":["buildProps"],"mappings":";;;;AAeO,MAAM,mBAAmBA,kBAAA,CAAW;AAAA,EACzC,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;AAQH,MAAM,wBAAA,GAA2B;AAAA,EACtC,WAAA,EAAa;AACf;AAKO,MAAM,mBAAA,GAAsB;;;;;;"}
1
+ {"version":3,"file":"arrow.js","sources":["../../../../../../packages/components/popper/src/arrow.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Arrow from './arrow.vue'\n\nexport interface PopperArrowProps {\n /**\n * @description arrow offset\n */\n arrowOffset?: number\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperArrowProps` instead.\n */\nexport const popperArrowProps = buildProps({\n arrowOffset: {\n type: Number,\n default: 5,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperArrowProps` instead.\n */\nexport type PopperArrowPropsPublic = ExtractPublicPropTypes<\n typeof popperArrowProps\n>\n\nexport const popperArrowPropsDefaults = {\n arrowOffset: 5,\n} as const\n\nexport type PopperArrowInstance = InstanceType<typeof Arrow> & unknown\n\n/** @deprecated use `popperArrowProps` instead, and it will be deprecated in the next major version */\nexport const usePopperArrowProps = popperArrowProps\n\n/** @deprecated use `PopperArrowProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperArrowProps = PopperArrowProps\n\n/** @deprecated use `PopperArrowInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowInstance = PopperArrowInstance\n"],"names":["buildProps"],"mappings":";;;;AAeO,MAAM,mBAAmBA,kBAAA,CAAW;AAAA,EACzC,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;AASH,MAAM,wBAAA,GAA2B;AAAA,EACtC,WAAA,EAAa;AACf;AAKO,MAAM,mBAAA,GAAsB;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","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'\nimport { popperArrowProps, popperArrowPropsDefaults } from './arrow'\n\nimport type { PopperEffect } from './popper'\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { Options, Placement } from '@popperjs/core'\nimport type { Measurable } from './constants'\nimport type Content from './content.vue'\nimport type { PopperArrowProps } from './arrow'\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 interface PopperCoreConfigProps {\n boundariesPadding?: number\n fallbackPlacements?: Placement[]\n gpuAcceleration?: boolean\n /**\n * @description offset of the Tooltip\n */\n offset?: number\n /**\n * @description position of Tooltip\n */\n placement?: Placement\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n strategy?: (typeof POSITIONING_STRATEGIES)[number]\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperCoreConfigProps` instead.\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)\n/**\n * @deprecated Removed after 3.0.0, Use `PopperCoreConfigProps` instead.\n */\nexport type PopperCoreConfigPropsPublic = ExtractPublicPropTypes<\n typeof popperCoreConfigProps\n>\n\nexport interface PopperContentProps\n extends PopperCoreConfigProps, PopperArrowProps {\n id?: string\n style?: StyleValue\n className?: ClassType\n effect?: PopperEffect\n visible?: boolean\n enterable?: boolean\n pure?: boolean\n focusOnShow?: boolean\n trapping?: boolean\n popperClass?: ClassType\n popperStyle?: StyleValue\n referenceEl?: HTMLElement\n triggerTargetEl?: HTMLElement\n stopPopperMouseEvent?: boolean\n virtualTriggering?: boolean\n zIndex?: number\n ariaLabel?: string\n loop?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperContentProps` instead.\n */\nexport const popperContentProps = buildProps({\n ...popperCoreConfigProps,\n ...popperArrowProps,\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: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true,\n },\n pure: Boolean,\n focusOnShow: Boolean,\n trapping: Boolean,\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 loop: Boolean,\n} as const)\n/**\n * @deprecated Removed after 3.0.0, Use `PopperContentProps` instead.\n */\nexport type PopperContentPropsPublic = ExtractPublicPropTypes<\n typeof popperContentProps\n>\n\nexport const popperCoreConfigPropsDefaults = {\n boundariesPadding: 0,\n gpuAcceleration: true,\n offset: 12,\n placement: 'bottom',\n popperOptions: () => ({}),\n strategy: 'absolute',\n} as const\n\nexport const popperContentPropsDefaults = {\n ...popperCoreConfigPropsDefaults,\n ...popperArrowPropsDefaults,\n effect: 'dark',\n enterable: true,\n stopPopperMouseEvent: true,\n visible: false,\n pure: false,\n focusOnShow: false,\n trapping: false,\n virtualTriggering: false,\n loop: false,\n style: undefined,\n popperStyle: undefined,\n} as const\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> & unknown\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":["buildProps","definePropType","placements","popperArrowProps","useAriaProps","popperArrowPropsDefaults"],"mappings":";;;;;;;AAeA,MAAM,sBAAA,GAAyB,CAAC,OAAA,EAAS,UAAU,CAAA;AA8B5C,MAAM,wBAAwBA,kBAAA,CAAW;AAAA,EAC9C,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,kBAAA,EAAoB;AAAA,IAClB,IAAA,EAAMC,uBAA4B,KAAK,CAAA;AAAA,IACvC,OAAA,EAAS;AAAA,GACX;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQC,eAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAMD,uBAAiC,MAAM,CAAA;AAAA,IAC7C,OAAA,EAAS,OAAO,EAAC;AAAA,GACnB;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,sBAAA;AAAA,IACR,OAAA,EAAS;AAAA;AAEb,CAAU;AAiCH,MAAM,qBAAqBD,kBAAA,CAAW;AAAA,EAC3C,GAAG,qBAAA;AAAA,EACH,GAAGG,sBAAA;AAAA,EACH,EAAA,EAAI,MAAA;AAAA,EACJ,KAAA,EAAO;AAAA,IACL,MAAMF,sBAAA,CAA2B,CAAC,MAAA,EAAQ,KAAA,EAAO,MAAM,CAAC;AAAA,GAC1D;AAAA,EACA,SAAA,EAAW;AA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O,MAAM,0BAAA,GAA6B;AAAA,EACxC,GAAG,6BAAA;AAAA,EACH,GAAGC,8BAAA;AAAA,EACH,MAAA,EAAQ,MAAA;AAAA,EACR,SAAA,EAAW,IAAA;AAAA,EACX,oBAAA,EAAsB,IAAA;AAAA,EACtB,OAAA,EAAS,KAAA;AAAA,EACT,IAAA,EAAM,KAAA;AAAA,EACN,WAAA,EAAa,KAAA;AAAA,EACb,QAAA,EAAU,KAAA;AAAA,EACV,iBAAA,EAAmB,KAAA;AAAA,EACnB,IAAA,EAAM,KAAA;AAAA,EACN,KAAA,EAAO,MAAA;AAAA,EACP,WAAA,EAAa;AACf;AAEO,MAAM,kBAAA,GAAqB;AAAA,EAChC,UAAA,EAAY,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAChD,UAAA,EAAY,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAChD,OAAO,MAAM,IAAA;AAAA,EACb,MAAM,MAAM,IAAA;AAAA,EACZ,OAAO,MAAM;AACf;AAMO,MAAM,wBAAA,GAA2B;AAGjC,MAAM,qBAAA,GAAwB;AAG9B,MAAM,qBAAA,GAAwB;;;;;;;;;;;"}
1
+ {"version":3,"file":"content.js","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'\nimport { popperArrowProps, popperArrowPropsDefaults } from './arrow'\n\nimport type { PopperEffect } from './popper'\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { Options, Placement } from '@popperjs/core'\nimport type { Measurable } from './constants'\nimport type Content from './content.vue'\nimport type { PopperArrowProps } from './arrow'\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 interface PopperCoreConfigProps {\n boundariesPadding?: number\n fallbackPlacements?: Placement[]\n gpuAcceleration?: boolean\n /**\n * @description offset of the Tooltip\n */\n offset?: number\n /**\n * @description position of Tooltip\n */\n placement?: Placement\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n strategy?: (typeof POSITIONING_STRATEGIES)[number]\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperCoreConfigProps` instead.\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)\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperCoreConfigProps` instead.\n */\nexport type PopperCoreConfigPropsPublic = ExtractPublicPropTypes<\n typeof popperCoreConfigProps\n>\n\nexport interface PopperContentProps\n extends PopperCoreConfigProps, PopperArrowProps {\n id?: string\n style?: StyleValue\n className?: ClassType\n effect?: PopperEffect\n visible?: boolean\n enterable?: boolean\n pure?: boolean\n focusOnShow?: boolean\n trapping?: boolean\n popperClass?: ClassType\n popperStyle?: StyleValue\n referenceEl?: HTMLElement\n triggerTargetEl?: HTMLElement\n stopPopperMouseEvent?: boolean\n virtualTriggering?: boolean\n zIndex?: number\n ariaLabel?: string\n loop?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperContentProps` instead.\n */\nexport const popperContentProps = buildProps({\n ...popperCoreConfigProps,\n ...popperArrowProps,\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: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true,\n },\n pure: Boolean,\n focusOnShow: Boolean,\n trapping: Boolean,\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 loop: Boolean,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperContentProps` instead.\n */\nexport type PopperContentPropsPublic = ExtractPublicPropTypes<\n typeof popperContentProps\n>\n\nexport const popperCoreConfigPropsDefaults = {\n boundariesPadding: 0,\n gpuAcceleration: true,\n offset: 12,\n placement: 'bottom',\n popperOptions: () => ({}),\n strategy: 'absolute',\n} as const\n\nexport const popperContentPropsDefaults = {\n ...popperCoreConfigPropsDefaults,\n ...popperArrowPropsDefaults,\n effect: 'dark',\n enterable: true,\n stopPopperMouseEvent: true,\n visible: false,\n pure: false,\n focusOnShow: false,\n trapping: false,\n virtualTriggering: false,\n loop: false,\n style: undefined,\n popperStyle: undefined,\n} as const\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> & unknown\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":["buildProps","definePropType","placements","popperArrowProps","useAriaProps","popperArrowPropsDefaults"],"mappings":";;;;;;;AAeA,MAAM,sBAAA,GAAyB,CAAC,OAAA,EAAS,UAAU,CAAA;AA8B5C,MAAM,wBAAwBA,kBAAA,CAAW;AAAA,EAC9C,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,kBAAA,EAAoB;AAAA,IAClB,IAAA,EAAMC,uBAA4B,KAAK,CAAA;AAAA,IACvC,OAAA,EAAS;AAAA,GACX;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQC,eAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAMD,uBAAiC,MAAM,CAAA;AAAA,IAC7C,OAAA,EAAS,OAAO,EAAC;AAAA,GACnB;AAAA,EACA,QAAA,EAAU;AAAA,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;AAAA,EACnB,MAAA,EAAQ,MAAA;AAAA,EACR,GAAGG,kBAAA,CAAa,CAAC,WAAW,CAAC,CAAA;AAAA,EAC7B,IAAA,EAAM;AACR,CAAU;AASH,MAAM,6BAAA,GAAgC;AAAA,EAC3C,iBAAA,EAAmB,CAAA;AAAA,EACnB,eAAA,EAAiB,IAAA;AAAA,EACjB,MAAA,EAAQ,EAAA;AAAA,EACR,SAAA,EAAW,QAAA;AAAA,EACX,aAAA,EAAe,OAAO,EAAC,CAAA;AAAA,EACvB,QAAA,EAAU;AACZ;AAEO,MAAM,0BAAA,GAA6B;AAAA,EACxC,GAAG,6BAAA;AAAA,EACH,GAAGC,8BAAA;AAAA,EACH,MAAA,EAAQ,MAAA;AAAA,EACR,SAAA,EAAW,IAAA;AAAA,EACX,oBAAA,EAAsB,IAAA;AAAA,EACtB,OAAA,EAAS,KAAA;AAAA,EACT,IAAA,EAAM,KAAA;AAAA,EACN,WAAA,EAAa,KAAA;AAAA,EACb,QAAA,EAAU,KAAA;AAAA,EACV,iBAAA,EAAmB,KAAA;AAAA,EACnB,IAAA,EAAM,KAAA;AAAA,EACN,KAAA,EAAO,MAAA;AAAA,EACP,WAAA,EAAa;AACf;AAEO,MAAM,kBAAA,GAAqB;AAAA,EAChC,UAAA,EAAY,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAChD,UAAA,EAAY,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAChD,OAAO,MAAM,IAAA;AAAA,EACb,MAAM,MAAM,IAAA;AAAA,EACZ,OAAO,MAAM;AACf;AAMO,MAAM,wBAAA,GAA2B;AAGjC,MAAM,qBAAA,GAAwB;AAG9B,MAAM,qBAAA,GAAwB;;;;;;;;;;;"}
@@ -4,17 +4,17 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RadioButtonProps>, {
7
- modelValue: undefined;
8
- disabled: undefined;
9
- label: undefined;
10
- value: undefined;
11
- name: undefined;
7
+ readonly modelValue: undefined;
8
+ readonly disabled: undefined;
9
+ readonly label: undefined;
10
+ readonly value: undefined;
11
+ readonly name: undefined;
12
12
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RadioButtonProps>, {
13
- modelValue: undefined;
14
- disabled: undefined;
15
- label: undefined;
16
- value: undefined;
17
- name: undefined;
13
+ readonly modelValue: undefined;
14
+ readonly disabled: undefined;
15
+ readonly label: undefined;
16
+ readonly value: undefined;
17
+ readonly name: undefined;
18
18
  }>>>, {
19
19
  label: string | number | boolean;
20
20
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.vue2.js","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === actualValue),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.bm('button', size),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.be('button', 'original-radio')\"\n :value=\"actualValue\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @click.stop\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === actualValue ? activeStyle : {}\"\n @keydown.stop\n >\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useRadio } from './use-radio'\nimport { radioButtonPropsDefaults } from './radio-button'\n\nimport type { RadioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = withDefaults(defineProps<RadioButtonProps>(), {\n ...radioButtonPropsDefaults,\n})\n\nconst ns = useNamespace('radio')\nconst { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } =\n useRadio(props)\n\nconst activeStyle = computed<CSSProperties>(() => {\n return {\n backgroundColor: radioGroup?.fill || '',\n borderColor: radioGroup?.fill || '',\n boxShadow: radioGroup?.fill ? `-1px 0 0 0 ${radioGroup.fill}` : '',\n color: radioGroup?.textColor || '',\n }\n})\n</script>\n"],"names":["useNamespace","useRadio","computed","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_normalizeStyle","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;AA+CA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAId,IAAA,MAAM,EAAA,GAAKA,mBAAa,OAAO,CAAA;AAC/B,IAAA,MAAM,EAAE,QAAA,EAAU,KAAA,EAAO,IAAA,EAAM,QAAA,EAAU,YAAY,UAAA,EAAY,WAAA,EAAY,GAC3EC,iBAAA,CAAS,KAAK,CAAA;AAEhB,IAAA,MAAM,WAAA,GAAcC,aAAwB,MAAM;AAChD,MAAA,OAAO;AAAA,QACL,eAAA,EAAA,CAAiB,yCAAY,IAAA,KAAQ,EAAA;AAAA,QACrC,WAAA,EAAA,CAAa,yCAAY,IAAA,KAAQ,EAAA;AAAA,QACjC,YAAW,UAAA,IAAA,IAAA,GAAA,MAAA,GAAA,UAAA,CAAY,IAAA,IAAO,CAAA,WAAA,EAAc,UAAA,CAAW,IAAI,CAAA,CAAA,GAAK,EAAA;AAAA,QAChE,KAAA,EAAA,CAAO,yCAAY,SAAA,KAAa;AAAA,OAClC;AAAA,IACF,CAAC,CAAA;;;8BA7DCC,sBAAA;AAAA,QA8BQ,OAAA;AAAA,QAAA;AAAA,UA7BL,OAAKC,kBAAA,CAAA;AAAA,YAAUC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,QAAA,CAAA;AAAA,YAAkBA,SAAA,CAAA,EAAA,CAA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cACZ,KAAA,EAAKE,kBAAA,CAAEF,SAAA,CAAA,UAAA,CAAA,KAAeA,SAAA,CAAA,WAAA,CAAA,GAAc,WAAA,CAAA,KAAA,GAAW,EAAA,CAAA;AAAA,cAC/C,SAAA,8CAAD,MAAA;AAAA,cAAA,CAAA,EAAa,CAAA,MAAA,CAAA,CAAA;AAAA;;cAEbG,eAEO,IAAA,wBAFP,MAEO;AAAA;sCADF,QAAA,KAAK,CAAA;AAAA,kBAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio-button.vue2.js","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === actualValue),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.bm('button', size),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.be('button', 'original-radio')\"\n :value=\"actualValue\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @click.stop\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === actualValue ? activeStyle : {}\"\n @keydown.stop\n >\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useRadio } from './use-radio'\nimport { radioButtonPropsDefaults } from './radio-button'\n\nimport type { RadioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = withDefaults(\n defineProps<RadioButtonProps>(),\n radioButtonPropsDefaults\n)\n\nconst ns = useNamespace('radio')\nconst { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } =\n useRadio(props)\n\nconst activeStyle = computed<CSSProperties>(() => {\n return {\n backgroundColor: radioGroup?.fill || '',\n borderColor: radioGroup?.fill || '',\n boxShadow: radioGroup?.fill ? `-1px 0 0 0 ${radioGroup.fill}` : '',\n color: radioGroup?.textColor || '',\n }\n})\n</script>\n"],"names":["useNamespace","useRadio","computed","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_normalizeStyle","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;AA+CA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAKd,IAAA,MAAM,EAAA,GAAKA,mBAAa,OAAO,CAAA;AAC/B,IAAA,MAAM,EAAE,QAAA,EAAU,KAAA,EAAO,IAAA,EAAM,QAAA,EAAU,YAAY,UAAA,EAAY,WAAA,EAAY,GAC3EC,iBAAA,CAAS,KAAK,CAAA;AAEhB,IAAA,MAAM,WAAA,GAAcC,aAAwB,MAAM;AAChD,MAAA,OAAO;AAAA,QACL,eAAA,EAAA,CAAiB,yCAAY,IAAA,KAAQ,EAAA;AAAA,QACrC,WAAA,EAAA,CAAa,yCAAY,IAAA,KAAQ,EAAA;AAAA,QACjC,YAAW,UAAA,IAAA,IAAA,GAAA,MAAA,GAAA,UAAA,CAAY,IAAA,IAAO,CAAA,WAAA,EAAc,UAAA,CAAW,IAAI,CAAA,CAAA,GAAK,EAAA;AAAA,QAChE,KAAA,EAAA,CAAO,yCAAY,SAAA,KAAa;AAAA,OAClC;AAAA,IACF,CAAC,CAAA;;;8BA9DCC,sBAAA;AAAA,QA8BQ,OAAA;AAAA,QAAA;AAAA,UA7BL,OAAKC,kBAAA,CAAA;AAAA,YAAUC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,QAAA,CAAA;AAAA,YAAkBA,SAAA,CAAA,EAAA,CAAA,CAAG,EAAA,CAAE,QAAA,EAAWA,UAAA,UAAA,CAAA,KAAeA,SAAA,CAAA,WAAA,CAAW,CAAA;AAAA,YAASA,UAAA,EAAA,CAAA,CAAG,GAAE,UAAA,EAAaA,SAAA,CAAA,QAAA,CAAQ,CAAA;AAAA,YAASA,UAAA,EAAA,CAAA,CAAG,GA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