@element-plus/nightly 0.0.20250808 → 0.0.20250810

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 (509) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.full.js +2735 -845
  3. package/dist/index.full.min.js +14 -14
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +15 -15
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +2735 -846
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar-eg.js +1 -1
  13. package/dist/locale/ar-eg.min.js +1 -1
  14. package/dist/locale/ar-eg.min.mjs +1 -1
  15. package/dist/locale/ar-eg.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.mjs +1 -1
  20. package/dist/locale/az.js +1 -1
  21. package/dist/locale/az.min.js +1 -1
  22. package/dist/locale/az.min.mjs +1 -1
  23. package/dist/locale/az.mjs +1 -1
  24. package/dist/locale/bg.js +1 -1
  25. package/dist/locale/bg.min.js +1 -1
  26. package/dist/locale/bg.min.mjs +1 -1
  27. package/dist/locale/bg.mjs +1 -1
  28. package/dist/locale/bn.js +1 -1
  29. package/dist/locale/bn.min.js +1 -1
  30. package/dist/locale/bn.min.mjs +1 -1
  31. package/dist/locale/bn.mjs +1 -1
  32. package/dist/locale/ca.js +1 -1
  33. package/dist/locale/ca.min.js +1 -1
  34. package/dist/locale/ca.min.mjs +1 -1
  35. package/dist/locale/ca.mjs +1 -1
  36. package/dist/locale/ckb.js +1 -1
  37. package/dist/locale/ckb.min.js +1 -1
  38. package/dist/locale/ckb.min.mjs +1 -1
  39. package/dist/locale/ckb.mjs +1 -1
  40. package/dist/locale/cs.js +1 -1
  41. package/dist/locale/cs.min.js +1 -1
  42. package/dist/locale/cs.min.mjs +1 -1
  43. package/dist/locale/cs.mjs +1 -1
  44. package/dist/locale/da.js +1 -1
  45. package/dist/locale/da.min.js +1 -1
  46. package/dist/locale/da.min.mjs +1 -1
  47. package/dist/locale/da.mjs +1 -1
  48. package/dist/locale/de.js +1 -1
  49. package/dist/locale/de.min.js +1 -1
  50. package/dist/locale/de.min.mjs +1 -1
  51. package/dist/locale/de.mjs +1 -1
  52. package/dist/locale/el.js +1 -1
  53. package/dist/locale/el.min.js +1 -1
  54. package/dist/locale/el.min.mjs +1 -1
  55. package/dist/locale/el.mjs +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/en.min.js +1 -1
  58. package/dist/locale/en.min.mjs +1 -1
  59. package/dist/locale/en.mjs +1 -1
  60. package/dist/locale/eo.js +1 -1
  61. package/dist/locale/eo.min.js +1 -1
  62. package/dist/locale/eo.min.mjs +1 -1
  63. package/dist/locale/eo.mjs +1 -1
  64. package/dist/locale/es.js +1 -1
  65. package/dist/locale/es.min.js +1 -1
  66. package/dist/locale/es.min.mjs +1 -1
  67. package/dist/locale/es.mjs +1 -1
  68. package/dist/locale/et.js +1 -1
  69. package/dist/locale/et.min.js +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +1 -1
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.mjs +1 -1
  75. package/dist/locale/eu.mjs +1 -1
  76. package/dist/locale/fa.js +1 -1
  77. package/dist/locale/fa.min.js +1 -1
  78. package/dist/locale/fa.min.mjs +1 -1
  79. package/dist/locale/fa.mjs +1 -1
  80. package/dist/locale/fi.js +1 -1
  81. package/dist/locale/fi.min.js +1 -1
  82. package/dist/locale/fi.min.mjs +1 -1
  83. package/dist/locale/fi.mjs +1 -1
  84. package/dist/locale/fr.js +1 -1
  85. package/dist/locale/fr.min.js +1 -1
  86. package/dist/locale/fr.min.mjs +1 -1
  87. package/dist/locale/fr.mjs +1 -1
  88. package/dist/locale/he.js +1 -1
  89. package/dist/locale/he.min.js +1 -1
  90. package/dist/locale/he.min.mjs +1 -1
  91. package/dist/locale/he.mjs +1 -1
  92. package/dist/locale/hi.js +1 -1
  93. package/dist/locale/hi.min.js +1 -1
  94. package/dist/locale/hi.min.mjs +1 -1
  95. package/dist/locale/hi.mjs +1 -1
  96. package/dist/locale/hr.js +1 -1
  97. package/dist/locale/hr.min.js +1 -1
  98. package/dist/locale/hr.min.mjs +1 -1
  99. package/dist/locale/hr.mjs +1 -1
  100. package/dist/locale/hu.js +1 -1
  101. package/dist/locale/hu.min.js +1 -1
  102. package/dist/locale/hu.min.mjs +1 -1
  103. package/dist/locale/hu.mjs +1 -1
  104. package/dist/locale/hy-am.js +1 -1
  105. package/dist/locale/hy-am.min.js +1 -1
  106. package/dist/locale/hy-am.min.mjs +1 -1
  107. package/dist/locale/hy-am.mjs +1 -1
  108. package/dist/locale/id.js +1 -1
  109. package/dist/locale/id.min.js +1 -1
  110. package/dist/locale/id.min.mjs +1 -1
  111. package/dist/locale/id.mjs +1 -1
  112. package/dist/locale/it.js +1 -1
  113. package/dist/locale/it.min.js +1 -1
  114. package/dist/locale/it.min.mjs +1 -1
  115. package/dist/locale/it.mjs +1 -1
  116. package/dist/locale/ja.js +1 -1
  117. package/dist/locale/ja.min.js +1 -1
  118. package/dist/locale/ja.min.mjs +1 -1
  119. package/dist/locale/ja.mjs +1 -1
  120. package/dist/locale/kk.js +1 -1
  121. package/dist/locale/kk.min.js +1 -1
  122. package/dist/locale/kk.min.mjs +1 -1
  123. package/dist/locale/kk.mjs +1 -1
  124. package/dist/locale/km.js +1 -1
  125. package/dist/locale/km.min.js +1 -1
  126. package/dist/locale/km.min.mjs +1 -1
  127. package/dist/locale/km.mjs +1 -1
  128. package/dist/locale/ko.js +1 -1
  129. package/dist/locale/ko.min.js +1 -1
  130. package/dist/locale/ko.min.mjs +1 -1
  131. package/dist/locale/ko.mjs +1 -1
  132. package/dist/locale/ku.js +1 -1
  133. package/dist/locale/ku.min.js +1 -1
  134. package/dist/locale/ku.min.mjs +1 -1
  135. package/dist/locale/ku.mjs +1 -1
  136. package/dist/locale/ky.js +1 -1
  137. package/dist/locale/ky.min.js +1 -1
  138. package/dist/locale/ky.min.mjs +1 -1
  139. package/dist/locale/ky.mjs +1 -1
  140. package/dist/locale/lo.js +1 -1
  141. package/dist/locale/lo.min.js +1 -1
  142. package/dist/locale/lo.min.mjs +1 -1
  143. package/dist/locale/lo.mjs +1 -1
  144. package/dist/locale/lt.js +1 -1
  145. package/dist/locale/lt.min.js +1 -1
  146. package/dist/locale/lt.min.mjs +1 -1
  147. package/dist/locale/lt.mjs +1 -1
  148. package/dist/locale/lv.js +1 -1
  149. package/dist/locale/lv.min.js +1 -1
  150. package/dist/locale/lv.min.mjs +1 -1
  151. package/dist/locale/lv.mjs +1 -1
  152. package/dist/locale/mg.js +1 -1
  153. package/dist/locale/mg.min.js +1 -1
  154. package/dist/locale/mg.min.mjs +1 -1
  155. package/dist/locale/mg.mjs +1 -1
  156. package/dist/locale/mn.js +1 -1
  157. package/dist/locale/mn.min.js +1 -1
  158. package/dist/locale/mn.min.mjs +1 -1
  159. package/dist/locale/mn.mjs +1 -1
  160. package/dist/locale/ms.js +1 -1
  161. package/dist/locale/ms.min.js +1 -1
  162. package/dist/locale/ms.min.mjs +1 -1
  163. package/dist/locale/ms.mjs +1 -1
  164. package/dist/locale/my.js +1 -1
  165. package/dist/locale/my.min.js +1 -1
  166. package/dist/locale/my.min.mjs +1 -1
  167. package/dist/locale/my.mjs +1 -1
  168. package/dist/locale/nb-no.js +1 -1
  169. package/dist/locale/nb-no.min.js +1 -1
  170. package/dist/locale/nb-no.min.mjs +1 -1
  171. package/dist/locale/nb-no.mjs +1 -1
  172. package/dist/locale/nl.js +1 -1
  173. package/dist/locale/nl.min.js +1 -1
  174. package/dist/locale/nl.min.mjs +1 -1
  175. package/dist/locale/nl.mjs +1 -1
  176. package/dist/locale/no.js +1 -1
  177. package/dist/locale/no.min.js +1 -1
  178. package/dist/locale/no.min.mjs +1 -1
  179. package/dist/locale/no.mjs +1 -1
  180. package/dist/locale/pa.js +1 -1
  181. package/dist/locale/pa.min.js +1 -1
  182. package/dist/locale/pa.min.mjs +1 -1
  183. package/dist/locale/pa.mjs +1 -1
  184. package/dist/locale/pl.js +1 -1
  185. package/dist/locale/pl.min.js +1 -1
  186. package/dist/locale/pl.min.mjs +1 -1
  187. package/dist/locale/pl.mjs +1 -1
  188. package/dist/locale/pt-br.js +1 -1
  189. package/dist/locale/pt-br.min.js +1 -1
  190. package/dist/locale/pt-br.min.mjs +1 -1
  191. package/dist/locale/pt-br.mjs +1 -1
  192. package/dist/locale/pt.js +1 -1
  193. package/dist/locale/pt.min.js +1 -1
  194. package/dist/locale/pt.min.mjs +1 -1
  195. package/dist/locale/pt.mjs +1 -1
  196. package/dist/locale/ro.js +1 -1
  197. package/dist/locale/ro.min.js +1 -1
  198. package/dist/locale/ro.min.mjs +1 -1
  199. package/dist/locale/ro.mjs +1 -1
  200. package/dist/locale/ru.js +1 -1
  201. package/dist/locale/ru.min.js +1 -1
  202. package/dist/locale/ru.min.mjs +1 -1
  203. package/dist/locale/ru.mjs +1 -1
  204. package/dist/locale/sk.js +1 -1
  205. package/dist/locale/sk.min.js +1 -1
  206. package/dist/locale/sk.min.mjs +1 -1
  207. package/dist/locale/sk.mjs +1 -1
  208. package/dist/locale/sl.js +1 -1
  209. package/dist/locale/sl.min.js +1 -1
  210. package/dist/locale/sl.min.mjs +1 -1
  211. package/dist/locale/sl.mjs +1 -1
  212. package/dist/locale/sr.js +1 -1
  213. package/dist/locale/sr.min.js +1 -1
  214. package/dist/locale/sr.min.mjs +1 -1
  215. package/dist/locale/sr.mjs +1 -1
  216. package/dist/locale/sv.js +1 -1
  217. package/dist/locale/sv.min.js +1 -1
  218. package/dist/locale/sv.min.mjs +1 -1
  219. package/dist/locale/sv.mjs +1 -1
  220. package/dist/locale/sw.js +1 -1
  221. package/dist/locale/sw.min.js +1 -1
  222. package/dist/locale/sw.min.mjs +1 -1
  223. package/dist/locale/sw.mjs +1 -1
  224. package/dist/locale/ta.js +1 -1
  225. package/dist/locale/ta.min.js +1 -1
  226. package/dist/locale/ta.min.mjs +1 -1
  227. package/dist/locale/ta.mjs +1 -1
  228. package/dist/locale/te.js +1 -1
  229. package/dist/locale/te.min.js +1 -1
  230. package/dist/locale/te.min.mjs +1 -1
  231. package/dist/locale/te.mjs +1 -1
  232. package/dist/locale/th.js +1 -1
  233. package/dist/locale/th.min.js +1 -1
  234. package/dist/locale/th.min.mjs +1 -1
  235. package/dist/locale/th.mjs +1 -1
  236. package/dist/locale/tk.js +1 -1
  237. package/dist/locale/tk.min.js +1 -1
  238. package/dist/locale/tk.min.mjs +1 -1
  239. package/dist/locale/tk.mjs +1 -1
  240. package/dist/locale/tr.js +1 -1
  241. package/dist/locale/tr.min.js +1 -1
  242. package/dist/locale/tr.min.mjs +1 -1
  243. package/dist/locale/tr.mjs +1 -1
  244. package/dist/locale/ug-cn.js +1 -1
  245. package/dist/locale/ug-cn.min.js +1 -1
  246. package/dist/locale/ug-cn.min.mjs +1 -1
  247. package/dist/locale/ug-cn.mjs +1 -1
  248. package/dist/locale/uk.js +1 -1
  249. package/dist/locale/uk.min.js +1 -1
  250. package/dist/locale/uk.min.mjs +1 -1
  251. package/dist/locale/uk.mjs +1 -1
  252. package/dist/locale/uz-uz.js +1 -1
  253. package/dist/locale/uz-uz.min.js +1 -1
  254. package/dist/locale/uz-uz.min.mjs +1 -1
  255. package/dist/locale/uz-uz.mjs +1 -1
  256. package/dist/locale/vi.js +1 -1
  257. package/dist/locale/vi.min.js +1 -1
  258. package/dist/locale/vi.min.mjs +1 -1
  259. package/dist/locale/vi.mjs +1 -1
  260. package/dist/locale/zh-cn.js +1 -1
  261. package/dist/locale/zh-cn.min.js +1 -1
  262. package/dist/locale/zh-cn.min.mjs +1 -1
  263. package/dist/locale/zh-cn.mjs +1 -1
  264. package/dist/locale/zh-hk.js +1 -1
  265. package/dist/locale/zh-hk.min.js +1 -1
  266. package/dist/locale/zh-hk.min.mjs +1 -1
  267. package/dist/locale/zh-hk.mjs +1 -1
  268. package/dist/locale/zh-mo.js +1 -1
  269. package/dist/locale/zh-mo.min.js +1 -1
  270. package/dist/locale/zh-mo.min.mjs +1 -1
  271. package/dist/locale/zh-mo.mjs +1 -1
  272. package/dist/locale/zh-tw.js +1 -1
  273. package/dist/locale/zh-tw.min.js +1 -1
  274. package/dist/locale/zh-tw.min.mjs +1 -1
  275. package/dist/locale/zh-tw.mjs +1 -1
  276. package/es/components/backtop/index.mjs +2 -2
  277. package/es/components/backtop/src/backtop.mjs +53 -21
  278. package/es/components/backtop/src/backtop.mjs.map +1 -1
  279. package/es/components/backtop/src/backtop2.mjs +21 -53
  280. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  281. package/es/components/badge/index.mjs +2 -2
  282. package/es/components/badge/src/badge.mjs +71 -32
  283. package/es/components/badge/src/badge.mjs.map +1 -1
  284. package/es/components/badge/src/badge2.mjs +32 -71
  285. package/es/components/badge/src/badge2.mjs.map +1 -1
  286. package/es/components/breadcrumb/index.mjs +2 -2
  287. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -8
  288. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  289. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +8 -56
  290. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  291. package/es/components/config-provider/src/config-provider-props.d.ts +7 -0
  292. package/es/components/config-provider/src/config-provider-props.mjs +3 -0
  293. package/es/components/config-provider/src/config-provider-props.mjs.map +1 -1
  294. package/es/components/config-provider/src/config-provider.d.ts +12 -0
  295. package/es/components/dialog/index.mjs +1 -1
  296. package/es/components/dialog/src/dialog-content.d.ts +3 -3
  297. package/es/components/dialog/src/dialog-content.mjs +12 -3
  298. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  299. package/es/components/dialog/src/dialog-content.vue.d.ts +9 -9
  300. package/es/components/dialog/src/dialog-content2.mjs +4 -4
  301. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  302. package/es/components/dialog/src/dialog.d.ts +12 -5
  303. package/es/components/dialog/src/dialog.mjs +3 -3
  304. package/es/components/dialog/src/dialog.mjs.map +1 -1
  305. package/es/components/dialog/src/dialog.vue.d.ts +11 -11
  306. package/es/components/dialog/src/dialog2.mjs +6 -4
  307. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  308. package/es/components/dialog/src/use-dialog.d.ts +4 -1
  309. package/es/components/dialog/src/use-dialog.mjs +37 -12
  310. package/es/components/dialog/src/use-dialog.mjs.map +1 -1
  311. package/es/components/drawer/src/drawer.d.ts +4 -4
  312. package/es/components/drawer/src/drawer.vue.d.ts +11 -11
  313. package/es/components/dropdown/src/dropdown.mjs +1 -1
  314. package/es/components/image/src/image.vue.d.ts +1 -1
  315. package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  316. package/es/components/index.mjs +13 -13
  317. package/es/components/input/src/utils.mjs +3 -3
  318. package/es/components/input/src/utils.mjs.map +1 -1
  319. package/es/components/input-tag/src/input-tag.vue.d.ts +1 -1
  320. package/es/components/menu/index.mjs +2 -2
  321. package/es/components/menu/src/menu-item.mjs +100 -15
  322. package/es/components/menu/src/menu-item.mjs.map +1 -1
  323. package/es/components/menu/src/menu-item2.mjs +15 -100
  324. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  325. package/es/components/message/src/message.vue.d.ts +1 -1
  326. package/es/components/message-box/src/index.vue.d.ts +1 -1
  327. package/es/components/notification/src/notification.vue.d.ts +1 -1
  328. package/es/components/pagination/src/components/pager.mjs +16 -210
  329. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  330. package/es/components/pagination/src/components/pager2.mjs +210 -16
  331. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  332. package/es/components/pagination/src/pagination.mjs +1 -1
  333. package/es/components/popper/index.mjs +4 -4
  334. package/es/components/popper/src/content.mjs +130 -88
  335. package/es/components/popper/src/content.mjs.map +1 -1
  336. package/es/components/popper/src/content2.mjs +88 -130
  337. package/es/components/popper/src/content2.mjs.map +1 -1
  338. package/es/components/popper/src/popper.mjs +32 -22
  339. package/es/components/popper/src/popper.mjs.map +1 -1
  340. package/es/components/popper/src/popper2.mjs +22 -32
  341. package/es/components/popper/src/popper2.mjs.map +1 -1
  342. package/es/components/radio/index.mjs +2 -2
  343. package/es/components/radio/src/radio-group.mjs +34 -65
  344. package/es/components/radio/src/radio-group.mjs.map +1 -1
  345. package/es/components/radio/src/radio-group2.mjs +65 -34
  346. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  347. package/es/components/slider/src/button.mjs +91 -19
  348. package/es/components/slider/src/button.mjs.map +1 -1
  349. package/es/components/slider/src/button2.mjs +19 -91
  350. package/es/components/slider/src/button2.mjs.map +1 -1
  351. package/es/components/slider/src/slider2.mjs +1 -1
  352. package/es/components/statistic/index.mjs +2 -2
  353. package/es/components/statistic/src/statistic.mjs +25 -69
  354. package/es/components/statistic/src/statistic.mjs.map +1 -1
  355. package/es/components/statistic/src/statistic2.mjs +69 -25
  356. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  357. package/es/components/switch/index.mjs +2 -2
  358. package/es/components/switch/src/switch.mjs +72 -227
  359. package/es/components/switch/src/switch.mjs.map +1 -1
  360. package/es/components/switch/src/switch2.mjs +227 -72
  361. package/es/components/switch/src/switch2.mjs.map +1 -1
  362. package/es/components/tabs/index.mjs +1 -1
  363. package/es/components/tabs/src/tab-bar.mjs +87 -11
  364. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  365. package/es/components/tabs/src/tab-bar2.mjs +11 -87
  366. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  367. package/es/components/tabs/src/tab-nav.mjs +1 -1
  368. package/es/components/tooltip/src/content.mjs +1 -1
  369. package/es/components/tooltip/src/content2.mjs +1 -1
  370. package/es/components/tooltip/src/tooltip.mjs +1 -1
  371. package/es/components/tooltip-v2/index.mjs +1 -1
  372. package/es/components/tooltip-v2/src/root.mjs +17 -79
  373. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  374. package/es/components/tooltip-v2/src/root2.mjs +79 -17
  375. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  376. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  377. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  378. package/es/components/tour/index.mjs +2 -2
  379. package/es/components/tour/src/tour.mjs +69 -154
  380. package/es/components/tour/src/tour.mjs.map +1 -1
  381. package/es/components/tour/src/tour.vue.d.ts +1 -1
  382. package/es/components/tour/src/tour2.mjs +154 -69
  383. package/es/components/tour/src/tour2.mjs.map +1 -1
  384. package/es/components/tree/src/tree.vue.d.ts +1 -1
  385. package/es/index.d.ts +66 -38
  386. package/es/index.mjs +13 -13
  387. package/es/version.d.ts +1 -1
  388. package/es/version.mjs +1 -1
  389. package/es/version.mjs.map +1 -1
  390. package/lib/components/backtop/index.js +2 -2
  391. package/lib/components/backtop/src/backtop.js +53 -22
  392. package/lib/components/backtop/src/backtop.js.map +1 -1
  393. package/lib/components/backtop/src/backtop2.js +22 -53
  394. package/lib/components/backtop/src/backtop2.js.map +1 -1
  395. package/lib/components/badge/index.js +2 -2
  396. package/lib/components/badge/src/badge.js +71 -32
  397. package/lib/components/badge/src/badge.js.map +1 -1
  398. package/lib/components/badge/src/badge2.js +32 -71
  399. package/lib/components/badge/src/badge2.js.map +1 -1
  400. package/lib/components/breadcrumb/index.js +2 -2
  401. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -8
  402. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  403. package/lib/components/breadcrumb/src/breadcrumb-item2.js +8 -56
  404. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  405. package/lib/components/config-provider/src/config-provider-props.d.ts +7 -0
  406. package/lib/components/config-provider/src/config-provider-props.js +3 -0
  407. package/lib/components/config-provider/src/config-provider-props.js.map +1 -1
  408. package/lib/components/config-provider/src/config-provider.d.ts +12 -0
  409. package/lib/components/dialog/index.js +1 -0
  410. package/lib/components/dialog/index.js.map +1 -1
  411. package/lib/components/dialog/src/dialog-content.d.ts +3 -3
  412. package/lib/components/dialog/src/dialog-content.js +12 -3
  413. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  414. package/lib/components/dialog/src/dialog-content.vue.d.ts +9 -9
  415. package/lib/components/dialog/src/dialog-content2.js +4 -4
  416. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  417. package/lib/components/dialog/src/dialog.d.ts +12 -5
  418. package/lib/components/dialog/src/dialog.js +3 -2
  419. package/lib/components/dialog/src/dialog.js.map +1 -1
  420. package/lib/components/dialog/src/dialog.vue.d.ts +11 -11
  421. package/lib/components/dialog/src/dialog2.js +6 -4
  422. package/lib/components/dialog/src/dialog2.js.map +1 -1
  423. package/lib/components/dialog/src/use-dialog.d.ts +4 -1
  424. package/lib/components/dialog/src/use-dialog.js +37 -12
  425. package/lib/components/dialog/src/use-dialog.js.map +1 -1
  426. package/lib/components/drawer/src/drawer.d.ts +4 -4
  427. package/lib/components/drawer/src/drawer.vue.d.ts +11 -11
  428. package/lib/components/dropdown/src/dropdown.js +1 -1
  429. package/lib/components/image/src/image.vue.d.ts +1 -1
  430. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  431. package/lib/components/index.js +13 -12
  432. package/lib/components/index.js.map +1 -1
  433. package/lib/components/input/src/utils.js +3 -3
  434. package/lib/components/input/src/utils.js.map +1 -1
  435. package/lib/components/input-tag/src/input-tag.vue.d.ts +1 -1
  436. package/lib/components/menu/index.js +2 -2
  437. package/lib/components/menu/src/menu-item.js +100 -16
  438. package/lib/components/menu/src/menu-item.js.map +1 -1
  439. package/lib/components/menu/src/menu-item2.js +16 -100
  440. package/lib/components/menu/src/menu-item2.js.map +1 -1
  441. package/lib/components/message/src/message.vue.d.ts +1 -1
  442. package/lib/components/message-box/src/index.vue.d.ts +1 -1
  443. package/lib/components/notification/src/notification.vue.d.ts +1 -1
  444. package/lib/components/pagination/src/components/pager.js +16 -210
  445. package/lib/components/pagination/src/components/pager.js.map +1 -1
  446. package/lib/components/pagination/src/components/pager2.js +210 -16
  447. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  448. package/lib/components/pagination/src/pagination.js +1 -1
  449. package/lib/components/popper/index.js +4 -4
  450. package/lib/components/popper/src/content.js +130 -93
  451. package/lib/components/popper/src/content.js.map +1 -1
  452. package/lib/components/popper/src/content2.js +93 -130
  453. package/lib/components/popper/src/content2.js.map +1 -1
  454. package/lib/components/popper/src/popper.js +32 -25
  455. package/lib/components/popper/src/popper.js.map +1 -1
  456. package/lib/components/popper/src/popper2.js +25 -32
  457. package/lib/components/popper/src/popper2.js.map +1 -1
  458. package/lib/components/radio/index.js +2 -2
  459. package/lib/components/radio/src/radio-group.js +35 -65
  460. package/lib/components/radio/src/radio-group.js.map +1 -1
  461. package/lib/components/radio/src/radio-group2.js +65 -35
  462. package/lib/components/radio/src/radio-group2.js.map +1 -1
  463. package/lib/components/slider/src/button.js +91 -20
  464. package/lib/components/slider/src/button.js.map +1 -1
  465. package/lib/components/slider/src/button2.js +20 -91
  466. package/lib/components/slider/src/button2.js.map +1 -1
  467. package/lib/components/slider/src/slider2.js +1 -1
  468. package/lib/components/statistic/index.js +2 -2
  469. package/lib/components/statistic/src/statistic.js +25 -69
  470. package/lib/components/statistic/src/statistic.js.map +1 -1
  471. package/lib/components/statistic/src/statistic2.js +69 -25
  472. package/lib/components/statistic/src/statistic2.js.map +1 -1
  473. package/lib/components/switch/index.js +2 -2
  474. package/lib/components/switch/src/switch.js +72 -226
  475. package/lib/components/switch/src/switch.js.map +1 -1
  476. package/lib/components/switch/src/switch2.js +226 -72
  477. package/lib/components/switch/src/switch2.js.map +1 -1
  478. package/lib/components/tabs/index.js +1 -1
  479. package/lib/components/tabs/src/tab-bar.js +87 -11
  480. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  481. package/lib/components/tabs/src/tab-bar2.js +11 -87
  482. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  483. package/lib/components/tabs/src/tab-nav.js +1 -1
  484. package/lib/components/tooltip/src/content.js +1 -1
  485. package/lib/components/tooltip/src/content2.js +1 -1
  486. package/lib/components/tooltip/src/tooltip.js +1 -1
  487. package/lib/components/tooltip-v2/index.js +1 -1
  488. package/lib/components/tooltip-v2/src/root.js +17 -79
  489. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  490. package/lib/components/tooltip-v2/src/root2.js +79 -17
  491. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  492. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  493. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  494. package/lib/components/tour/index.js +2 -2
  495. package/lib/components/tour/src/tour.js +69 -153
  496. package/lib/components/tour/src/tour.js.map +1 -1
  497. package/lib/components/tour/src/tour.vue.d.ts +1 -1
  498. package/lib/components/tour/src/tour2.js +153 -69
  499. package/lib/components/tour/src/tour2.js.map +1 -1
  500. package/lib/components/tree/src/tree.vue.d.ts +1 -1
  501. package/lib/index.d.ts +66 -38
  502. package/lib/index.js +13 -12
  503. package/lib/index.js.map +1 -1
  504. package/lib/version.d.ts +1 -1
  505. package/lib/version.js +1 -1
  506. package/lib/version.js.map +1 -1
  507. package/package.json +2 -2
  508. package/tags.json +1 -1
  509. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"badge.mjs","sources":["../../../../../../packages/components/badge/src/badge.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type {\n ExtractPropTypes,\n StyleValue,\n __ExtractPublicPropTypes,\n} from 'vue'\n\nexport const badgeProps = buildProps({\n /**\n * @description display value.\n */\n value: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description maximum value, shows `{max}+` when exceeded. Only works if value is a number.\n */\n max: {\n type: Number,\n default: 99,\n },\n /**\n * @description if a little dot is displayed.\n */\n isDot: Boolean,\n /**\n * @description hidden badge.\n */\n hidden: Boolean,\n /**\n * @description badge type.\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger'],\n default: 'danger',\n },\n /**\n * @description whether to show badge when value is zero.\n */\n showZero: {\n type: Boolean,\n default: true,\n },\n /**\n * @description customize dot background color\n */\n color: String,\n /**\n * @description CSS style of badge\n */\n badgeStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n /**\n * @description set offset of the badge\n */\n offset: {\n type: definePropType<[number, number]>(Array),\n default: [0, 0],\n },\n /**\n * @description custom class name of badge\n */\n badgeClass: {\n type: String,\n },\n} as const)\nexport type BadgeProps = ExtractPropTypes<typeof badgeProps>\nexport type BadgePropsPublic = __ExtractPublicPropTypes<typeof badgeProps>\n"],"names":[],"mappings":";;AACY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;AAC/D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"badge.mjs","sources":["../../../../../../packages/components/badge/src/badge.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <slot />\n <transition :name=\"`${ns.namespace.value}-zoom-in-center`\">\n <sup\n v-show=\"!hidden && (content || isDot || $slots.content)\"\n :class=\"[\n ns.e('content'),\n ns.em('content', type),\n ns.is('fixed', !!$slots.default),\n ns.is('dot', isDot),\n ns.is('hide-zero', !showZero && props.value === 0),\n badgeClass,\n ]\"\n :style=\"style\"\n >\n <slot name=\"content\" :value=\"content\">\n {{ content }}\n </slot>\n </sup>\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber } from '@element-plus/utils'\nimport { badgeProps } from './badge'\n\nimport type { StyleValue } from 'vue'\n\ndefineOptions({\n name: 'ElBadge',\n})\n\nconst props = defineProps(badgeProps)\n\nconst ns = useNamespace('badge')\n\nconst content = computed<string>(() => {\n if (props.isDot) return ''\n if (isNumber(props.value) && isNumber(props.max)) {\n return props.max < props.value ? `${props.max}+` : `${props.value}`\n }\n return `${props.value}`\n})\n\nconst style = computed<StyleValue>(() => {\n return [\n {\n backgroundColor: props.color,\n marginRight: addUnit(-(props.offset?.[0] ?? 0)),\n marginTop: addUnit(props.offset?.[1] ?? 0),\n },\n props.badgeStyle ?? {},\n ]\n})\n\ndefineExpose({\n /** @description badge content */\n content,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAgCc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,OAAA,GAAU,SAAiB,MAAM;AACrC,MAAI,IAAA,KAAA,CAAM;AACV,QAAA;AACE,MAAO,IAAA,QAAA,CAAA,KAAY,CAAA,KAAA,CAAA,IAAc,QAAA,CAAG,MAAM,GAAG,CAAA,EAAA;AAAoB,QACnE,OAAA,KAAA,CAAA,GAAA,GAAA,KAAA,CAAA,KAAA,GAAA,CAAA,EAAA,KAAA,CAAA,GAAA,CAAA,CAAA,CAAA,GAAA,CAAA,EAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AACA,OAAO;AAAc,MACtB,OAAA,CAAA,EAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAED,KAAM,CAAA,CAAA;AACJ,IAAO,MAAA,KAAA,GAAA,QAAA,CAAA,MAAA;AAAA,MACL,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AAAA,MAAA;AACyB,QAAA;AACuB,UAC9C,eAAmB,EAAA,KAAA,CAAA,KAAe;AAAO,UAC3C,WAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,MAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,CAAA,CAAA;AAAA,UACA,kBAAoB,CAAC,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,MAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,CAAA;AAAA,SACvB;AAAA,QACD,CAAA,EAAA,GAAA,KAAA,CAAA,UAAA,KAAA,IAAA,GAAA,EAAA,GAAA,EAAA;AAED,OAAa,CAAA;AAAA,KAAA,CAAA,CAAA;AAAA,IAEX,MAAA,CAAA;AAAA,MACD,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,76 +1,37 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeStyle, createTextVNode, toDisplayString, vShow } from 'vue';
2
- import { badgeProps } from './badge.mjs';
3
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
5
- import { isNumber } from '../../../utils/types.mjs';
6
- import { addUnit } from '../../../utils/dom/style.mjs';
1
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
7
2
 
8
- const __default__ = defineComponent({
9
- name: "ElBadge"
10
- });
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- ...__default__,
13
- props: badgeProps,
14
- setup(__props, { expose }) {
15
- const props = __props;
16
- const ns = useNamespace("badge");
17
- const content = computed(() => {
18
- if (props.isDot)
19
- return "";
20
- if (isNumber(props.value) && isNumber(props.max)) {
21
- return props.max < props.value ? `${props.max}+` : `${props.value}`;
22
- }
23
- return `${props.value}`;
24
- });
25
- const style = computed(() => {
26
- var _a, _b, _c, _d, _e;
27
- return [
28
- {
29
- backgroundColor: props.color,
30
- marginRight: addUnit(-((_b = (_a = props.offset) == null ? void 0 : _a[0]) != null ? _b : 0)),
31
- marginTop: addUnit((_d = (_c = props.offset) == null ? void 0 : _c[1]) != null ? _d : 0)
32
- },
33
- (_e = props.badgeStyle) != null ? _e : {}
34
- ];
35
- });
36
- expose({
37
- content
38
- });
39
- return (_ctx, _cache) => {
40
- return openBlock(), createElementBlock("div", {
41
- class: normalizeClass(unref(ns).b())
42
- }, [
43
- renderSlot(_ctx.$slots, "default"),
44
- createVNode(Transition, {
45
- name: `${unref(ns).namespace.value}-zoom-in-center`,
46
- persisted: ""
47
- }, {
48
- default: withCtx(() => [
49
- withDirectives(createElementVNode("sup", {
50
- class: normalizeClass([
51
- unref(ns).e("content"),
52
- unref(ns).em("content", _ctx.type),
53
- unref(ns).is("fixed", !!_ctx.$slots.default),
54
- unref(ns).is("dot", _ctx.isDot),
55
- unref(ns).is("hide-zero", !_ctx.showZero && props.value === 0),
56
- _ctx.badgeClass
57
- ]),
58
- style: normalizeStyle(unref(style))
59
- }, [
60
- renderSlot(_ctx.$slots, "content", { value: unref(content) }, () => [
61
- createTextVNode(toDisplayString(unref(content)), 1)
62
- ])
63
- ], 6), [
64
- [vShow, !_ctx.hidden && (unref(content) || _ctx.isDot || _ctx.$slots.content)]
65
- ])
66
- ]),
67
- _: 3
68
- }, 8, ["name"])
69
- ], 2);
70
- };
3
+ const badgeProps = buildProps({
4
+ value: {
5
+ type: [String, Number],
6
+ default: ""
7
+ },
8
+ max: {
9
+ type: Number,
10
+ default: 99
11
+ },
12
+ isDot: Boolean,
13
+ hidden: Boolean,
14
+ type: {
15
+ type: String,
16
+ values: ["primary", "success", "warning", "info", "danger"],
17
+ default: "danger"
18
+ },
19
+ showZero: {
20
+ type: Boolean,
21
+ default: true
22
+ },
23
+ color: String,
24
+ badgeStyle: {
25
+ type: definePropType([String, Object, Array])
26
+ },
27
+ offset: {
28
+ type: definePropType(Array),
29
+ default: [0, 0]
30
+ },
31
+ badgeClass: {
32
+ type: String
71
33
  }
72
34
  });
73
- var Badge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "badge.vue"]]);
74
35
 
75
- export { Badge as default };
36
+ export { badgeProps };
76
37
  //# sourceMappingURL=badge2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge2.mjs","sources":["../../../../../../packages/components/badge/src/badge.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <slot />\n <transition :name=\"`${ns.namespace.value}-zoom-in-center`\">\n <sup\n v-show=\"!hidden && (content || isDot || $slots.content)\"\n :class=\"[\n ns.e('content'),\n ns.em('content', type),\n ns.is('fixed', !!$slots.default),\n ns.is('dot', isDot),\n ns.is('hide-zero', !showZero && props.value === 0),\n badgeClass,\n ]\"\n :style=\"style\"\n >\n <slot name=\"content\" :value=\"content\">\n {{ content }}\n </slot>\n </sup>\n </transition>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber } from '@element-plus/utils'\nimport { badgeProps } from './badge'\n\nimport type { StyleValue } from 'vue'\n\ndefineOptions({\n name: 'ElBadge',\n})\n\nconst props = defineProps(badgeProps)\n\nconst ns = useNamespace('badge')\n\nconst content = computed<string>(() => {\n if (props.isDot) return ''\n if (isNumber(props.value) && isNumber(props.max)) {\n return props.max < props.value ? `${props.max}+` : `${props.value}`\n }\n return `${props.value}`\n})\n\nconst style = computed<StyleValue>(() => {\n return [\n {\n backgroundColor: props.color,\n marginRight: addUnit(-(props.offset?.[0] ?? 0)),\n marginTop: addUnit(props.offset?.[1] ?? 0),\n },\n props.badgeStyle ?? {},\n ]\n})\n\ndefineExpose({\n /** @description badge content */\n content,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAgCc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,OAAA,GAAU,SAAiB,MAAM;AACrC,MAAI,IAAA,KAAA,CAAM;AACV,QAAA;AACE,MAAO,IAAA,QAAA,CAAA,KAAY,CAAA,KAAA,CAAA,IAAc,QAAA,CAAG,MAAM,GAAG,CAAA,EAAA;AAAoB,QACnE,OAAA,KAAA,CAAA,GAAA,GAAA,KAAA,CAAA,KAAA,GAAA,CAAA,EAAA,KAAA,CAAA,GAAA,CAAA,CAAA,CAAA,GAAA,CAAA,EAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AACA,OAAO;AAAc,MACtB,OAAA,CAAA,EAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAED,KAAM,CAAA,CAAA;AACJ,IAAO,MAAA,KAAA,GAAA,QAAA,CAAA,MAAA;AAAA,MACL,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AAAA,MAAA;AACyB,QAAA;AACuB,UAC9C,eAAmB,EAAA,KAAA,CAAA,KAAe;AAAO,UAC3C,WAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,MAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,CAAA,CAAA;AAAA,UACA,kBAAoB,CAAC,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,MAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAA,CAAA,CAAA;AAAA,SACvB;AAAA,QACD,CAAA,EAAA,GAAA,KAAA,CAAA,UAAA,KAAA,IAAA,GAAA,EAAA,GAAA,EAAA;AAED,OAAa,CAAA;AAAA,KAAA,CAAA,CAAA;AAAA,IAEX,MAAA,CAAA;AAAA,MACD,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"badge2.mjs","sources":["../../../../../../packages/components/badge/src/badge.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type {\n ExtractPropTypes,\n StyleValue,\n __ExtractPublicPropTypes,\n} from 'vue'\n\nexport const badgeProps = buildProps({\n /**\n * @description display value.\n */\n value: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description maximum value, shows `{max}+` when exceeded. Only works if value is a number.\n */\n max: {\n type: Number,\n default: 99,\n },\n /**\n * @description if a little dot is displayed.\n */\n isDot: Boolean,\n /**\n * @description hidden badge.\n */\n hidden: Boolean,\n /**\n * @description badge type.\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger'],\n default: 'danger',\n },\n /**\n * @description whether to show badge when value is zero.\n */\n showZero: {\n type: Boolean,\n default: true,\n },\n /**\n * @description customize dot background color\n */\n color: String,\n /**\n * @description CSS style of badge\n */\n badgeStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n /**\n * @description set offset of the badge\n */\n offset: {\n type: definePropType<[number, number]>(Array),\n default: [0, 0],\n },\n /**\n * @description custom class name of badge\n */\n badgeClass: {\n type: String,\n },\n} as const)\nexport type BadgeProps = ExtractPropTypes<typeof badgeProps>\nexport type BadgePropsPublic = __ExtractPublicPropTypes<typeof badgeProps>\n"],"names":[],"mappings":";;AACY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;AAC/D,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
@@ -1,7 +1,7 @@
1
1
  import Breadcrumb from './src/breadcrumb2.mjs';
2
- import BreadcrumbItem from './src/breadcrumb-item2.mjs';
2
+ import BreadcrumbItem from './src/breadcrumb-item.mjs';
3
3
  export { breadcrumbProps } from './src/breadcrumb.mjs';
4
- export { breadcrumbItemProps } from './src/breadcrumb-item.mjs';
4
+ export { breadcrumbItemProps } from './src/breadcrumb-item2.mjs';
5
5
  export { breadcrumbKey } from './src/constants.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
7
7
 
@@ -1,12 +1,60 @@
1
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, getCurrentInstance, inject, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, withCtx, resolveDynamicComponent, toDisplayString } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import { breadcrumbKey } from './constants.mjs';
4
+ import { breadcrumbItemProps } from './breadcrumb-item2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
7
 
3
- const breadcrumbItemProps = buildProps({
4
- to: {
5
- type: definePropType([String, Object]),
6
- default: ""
7
- },
8
- replace: Boolean
8
+ const __default__ = defineComponent({
9
+ name: "ElBreadcrumbItem"
9
10
  });
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...__default__,
13
+ props: breadcrumbItemProps,
14
+ setup(__props) {
15
+ const props = __props;
16
+ const instance = getCurrentInstance();
17
+ const breadcrumbContext = inject(breadcrumbKey, void 0);
18
+ const ns = useNamespace("breadcrumb");
19
+ const router = instance.appContext.config.globalProperties.$router;
20
+ const link = ref();
21
+ const onClick = () => {
22
+ if (!props.to || !router)
23
+ return;
24
+ props.replace ? router.replace(props.to) : router.push(props.to);
25
+ };
26
+ return (_ctx, _cache) => {
27
+ var _a, _b;
28
+ return openBlock(), createElementBlock("span", {
29
+ class: normalizeClass(unref(ns).e("item"))
30
+ }, [
31
+ createElementVNode("span", {
32
+ ref_key: "link",
33
+ ref: link,
34
+ class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
35
+ role: "link",
36
+ onClick
37
+ }, [
38
+ renderSlot(_ctx.$slots, "default")
39
+ ], 2),
40
+ ((_a = unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
41
+ key: 0,
42
+ class: normalizeClass(unref(ns).e("separator"))
43
+ }, {
44
+ default: withCtx(() => [
45
+ (openBlock(), createBlock(resolveDynamicComponent(unref(breadcrumbContext).separatorIcon)))
46
+ ]),
47
+ _: 1
48
+ }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
49
+ key: 1,
50
+ class: normalizeClass(unref(ns).e("separator")),
51
+ role: "presentation"
52
+ }, toDisplayString((_b = unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
53
+ ], 2);
54
+ };
55
+ }
56
+ });
57
+ var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb-item.vue"]]);
10
58
 
11
- export { breadcrumbItemProps };
59
+ export { BreadcrumbItem as default };
12
60
  //# sourceMappingURL=breadcrumb-item.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\n\nexport const breadcrumbItemProps = buildProps({\n /**\n * @description target route of the link, same as `to` of `vue-router`\n */\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n /**\n * @description if `true`, the navigation will not leave a history record\n */\n replace: Boolean,\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\nexport type BreadcrumbItemPropsPublic = __ExtractPublicPropTypes<\n typeof breadcrumbItemProps\n>\n"],"names":[],"mappings":";;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,CAAC;;;;"}
1
+ {"version":3,"file":"breadcrumb-item.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n @click=\"onClick\"\n >\n <slot />\n </span>\n <el-icon v-if=\"breadcrumbContext?.separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"breadcrumbContext.separatorIcon\" />\n </el-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ breadcrumbContext?.separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, ref } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nimport type { Router } from 'vue-router'\n\ndefineOptions({\n name: 'ElBreadcrumbItem',\n})\n\nconst props = defineProps(breadcrumbItemProps)\n\nconst instance = getCurrentInstance()!\nconst breadcrumbContext = inject(breadcrumbKey, undefined)\nconst ns = useNamespace('breadcrumb')\n\nconst router = instance.appContext.config.globalProperties.$router as Router\n\nconst link = ref<HTMLSpanElement>()\n\nconst onClick = () => {\n if (!props.to || !router) return\n props.replace ? router.replace(props.to) : router.push(props.to)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;mCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,iBAAA,GAAoB,MAAO,CAAA,aAAA,EAAe,KAAS,CAAA,CAAA,CAAA;AACzD,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AAEpC,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,UAAW,CAAA,MAAA,CAAO,gBAAiB,CAAA,OAAA,CAAA;AAE3D,IAAA,MAAM,OAAO,GAAqB,EAAA,CAAA;AAElC,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAI,CAAC,KAAA,CAAM,EAAM,IAAA,CAAC,MAAQ;AAC1B,QAAM,OAAA;AAAyD,MACjE,KAAA,CAAA,OAAA,GAAA,MAAA,CAAA,OAAA,CAAA,KAAA,CAAA,EAAA,CAAA,GAAA,MAAA,CAAA,IAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,60 +1,12 @@
1
- import { defineComponent, getCurrentInstance, inject, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, withCtx, resolveDynamicComponent, toDisplayString } from 'vue';
2
- import { ElIcon } from '../../icon/index.mjs';
3
- import { breadcrumbKey } from './constants.mjs';
4
- import { breadcrumbItemProps } from './breadcrumb-item.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
7
2
 
8
- const __default__ = defineComponent({
9
- name: "ElBreadcrumbItem"
3
+ const breadcrumbItemProps = buildProps({
4
+ to: {
5
+ type: definePropType([String, Object]),
6
+ default: ""
7
+ },
8
+ replace: Boolean
10
9
  });
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- ...__default__,
13
- props: breadcrumbItemProps,
14
- setup(__props) {
15
- const props = __props;
16
- const instance = getCurrentInstance();
17
- const breadcrumbContext = inject(breadcrumbKey, void 0);
18
- const ns = useNamespace("breadcrumb");
19
- const router = instance.appContext.config.globalProperties.$router;
20
- const link = ref();
21
- const onClick = () => {
22
- if (!props.to || !router)
23
- return;
24
- props.replace ? router.replace(props.to) : router.push(props.to);
25
- };
26
- return (_ctx, _cache) => {
27
- var _a, _b;
28
- return openBlock(), createElementBlock("span", {
29
- class: normalizeClass(unref(ns).e("item"))
30
- }, [
31
- createElementVNode("span", {
32
- ref_key: "link",
33
- ref: link,
34
- class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
35
- role: "link",
36
- onClick
37
- }, [
38
- renderSlot(_ctx.$slots, "default")
39
- ], 2),
40
- ((_a = unref(breadcrumbContext)) == null ? void 0 : _a.separatorIcon) ? (openBlock(), createBlock(unref(ElIcon), {
41
- key: 0,
42
- class: normalizeClass(unref(ns).e("separator"))
43
- }, {
44
- default: withCtx(() => [
45
- (openBlock(), createBlock(resolveDynamicComponent(unref(breadcrumbContext).separatorIcon)))
46
- ]),
47
- _: 1
48
- }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
49
- key: 1,
50
- class: normalizeClass(unref(ns).e("separator")),
51
- role: "presentation"
52
- }, toDisplayString((_b = unref(breadcrumbContext)) == null ? void 0 : _b.separator), 3))
53
- ], 2);
54
- };
55
- }
56
- });
57
- var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "breadcrumb-item.vue"]]);
58
10
 
59
- export { BreadcrumbItem as default };
11
+ export { breadcrumbItemProps };
60
12
  //# sourceMappingURL=breadcrumb-item2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n @click=\"onClick\"\n >\n <slot />\n </span>\n <el-icon v-if=\"breadcrumbContext?.separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"breadcrumbContext.separatorIcon\" />\n </el-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ breadcrumbContext?.separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { getCurrentInstance, inject, ref } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbItemProps } from './breadcrumb-item'\n\nimport type { Router } from 'vue-router'\n\ndefineOptions({\n name: 'ElBreadcrumbItem',\n})\n\nconst props = defineProps(breadcrumbItemProps)\n\nconst instance = getCurrentInstance()!\nconst breadcrumbContext = inject(breadcrumbKey, undefined)\nconst ns = useNamespace('breadcrumb')\n\nconst router = instance.appContext.config.globalProperties.$router as Router\n\nconst link = ref<HTMLSpanElement>()\n\nconst onClick = () => {\n if (!props.to || !router) return\n props.replace ? router.replace(props.to) : router.push(props.to)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;mCA4Bc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,kBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,iBAAA,GAAoB,MAAO,CAAA,aAAA,EAAe,KAAS,CAAA,CAAA,CAAA;AACzD,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AAEpC,IAAA,MAAM,MAAS,GAAA,QAAA,CAAS,UAAW,CAAA,MAAA,CAAO,gBAAiB,CAAA,OAAA,CAAA;AAE3D,IAAA,MAAM,OAAO,GAAqB,EAAA,CAAA;AAElC,IAAA,MAAM,UAAU,MAAM;AACpB,MAAA,IAAI,CAAC,KAAA,CAAM,EAAM,IAAA,CAAC,MAAQ;AAC1B,QAAM,OAAA;AAAyD,MACjE,KAAA,CAAA,OAAA,GAAA,MAAA,CAAA,OAAA,CAAA,KAAA,CAAA,EAAA,CAAA,GAAA,MAAA,CAAA,IAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"breadcrumb-item2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\n\nexport const breadcrumbItemProps = buildProps({\n /**\n * @description target route of the link, same as `to` of `vue-router`\n */\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n /**\n * @description if `true`, the navigation will not leave a history record\n */\n replace: Boolean,\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\nexport type BreadcrumbItemPropsPublic = __ExtractPublicPropTypes<\n typeof breadcrumbItemProps\n>\n"],"names":[],"mappings":";;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,CAAC;;;;"}
@@ -2,6 +2,7 @@ import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
2
2
  import type { Language } from '@element-plus/nightly/es/locale';
3
3
  import type { ButtonConfigContext } from '@element-plus/nightly/es/components/button';
4
4
  import type { CardConfigContext } from '@element-plus/nightly/es/components/card';
5
+ import type { DialogConfigContext } from '@element-plus/nightly/es/components/dialog';
5
6
  import type { MessageConfigContext } from '@element-plus/nightly/es/components/message';
6
7
  import type { LinkConfigContext } from '@element-plus/nightly/es/components/link';
7
8
  export type ExperimentalFeatures = {};
@@ -33,6 +34,12 @@ export declare const configProviderProps: {
33
34
  readonly validator: ((val: unknown) => boolean) | undefined;
34
35
  __epPropKey: true;
35
36
  };
37
+ readonly dialog: {
38
+ readonly type: import("vue").PropType<DialogConfigContext>;
39
+ readonly required: false;
40
+ readonly validator: ((val: unknown) => boolean) | undefined;
41
+ __epPropKey: true;
42
+ };
36
43
  readonly link: {
37
44
  readonly type: import("vue").PropType<LinkConfigContext>;
38
45
  readonly required: false;
@@ -17,6 +17,9 @@ const configProviderProps = buildProps({
17
17
  card: {
18
18
  type: definePropType(Object)
19
19
  },
20
+ dialog: {
21
+ type: definePropType(Object)
22
+ },
20
23
  link: {
21
24
  type: definePropType(Object)
22
25
  },
@@ -1 +1 @@
1
- {"version":3,"file":"config-provider-props.mjs","sources":["../../../../../../packages/components/config-provider/src/config-provider-props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { Language } from '@element-plus/locale'\nimport type { ButtonConfigContext } from '@element-plus/components/button'\nimport type { CardConfigContext } from '@element-plus/components/card'\nimport type { MessageConfigContext } from '@element-plus/components/message'\nimport type { LinkConfigContext } from '@element-plus/components/link'\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type ExperimentalFeatures = {\n // TO BE Defined\n}\n\nexport const configProviderProps = buildProps({\n /**\n * @description Controlling if the users want a11y features\n */\n a11y: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Locale Object\n */\n locale: {\n type: definePropType<Language>(Object),\n },\n /**\n * @description global component size\n */\n size: useSizeProp,\n /**\n * @description button related configuration, [see the following table](#button-attributes)\n */\n button: {\n type: definePropType<ButtonConfigContext>(Object),\n },\n /**\n * @description card related configuration, [see the following table](link-attributes)\n */\n card: {\n type: definePropType<CardConfigContext>(Object),\n },\n /**\n * @description link related configuration, [see the following table](card-attributes)\n */\n link: {\n type: definePropType<LinkConfigContext>(Object),\n },\n /**\n * @description features at experimental stage to be added, all features are default to be set to false | ^[object]\n */\n experimentalFeatures: {\n type: definePropType<ExperimentalFeatures>(Object),\n },\n /**\n * @description Controls if we should handle keyboard navigation\n */\n keyboardNavigation: {\n type: Boolean,\n default: true,\n },\n /**\n * @description message related configuration, [see the following table](#message-attributes)\n */\n message: {\n type: definePropType<MessageConfigContext>(Object),\n },\n /**\n * @description global Initial zIndex\n */\n zIndex: Number,\n /**\n * @description global component className prefix (cooperated with [$namespace](https://github.com/element-plus/element-plus/blob/dev/packages/theme-chalk/src/mixins/config.scss#L1)) | ^[string]\n */\n namespace: {\n type: String,\n default: 'el',\n },\n ...useEmptyValuesProps,\n} as const)\nexport type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>\nexport type ConfigProviderPropsPublic = __ExtractPublicPropTypes<\n typeof configProviderProps\n>\n"],"names":[],"mappings":";;;;AAEY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,oBAAoB,EAAE;AACxB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAG,mBAAmB;AACxB,CAAC;;;;"}
1
+ {"version":3,"file":"config-provider-props.mjs","sources":["../../../../../../packages/components/config-provider/src/config-provider-props.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type { Language } from '@element-plus/locale'\nimport type { ButtonConfigContext } from '@element-plus/components/button'\nimport type { CardConfigContext } from '@element-plus/components/card'\nimport type { DialogConfigContext } from '@element-plus/components/dialog'\nimport type { MessageConfigContext } from '@element-plus/components/message'\nimport type { LinkConfigContext } from '@element-plus/components/link'\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type ExperimentalFeatures = {\n // TO BE Defined\n}\n\nexport const configProviderProps = buildProps({\n /**\n * @description Controlling if the users want a11y features\n */\n a11y: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Locale Object\n */\n locale: {\n type: definePropType<Language>(Object),\n },\n /**\n * @description global component size\n */\n size: useSizeProp,\n /**\n * @description button related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#button-attribute)\n */\n button: {\n type: definePropType<ButtonConfigContext>(Object),\n },\n /**\n * @description card related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#card-attribute)\n */\n card: {\n type: definePropType<CardConfigContext>(Object),\n },\n /**\n * @description dialog related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#dialog-attribute)\n */\n dialog: {\n type: definePropType<DialogConfigContext>(Object),\n },\n /**\n * @description link related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#link-attribute)\n */\n link: {\n type: definePropType<LinkConfigContext>(Object),\n },\n /**\n * @description features at experimental stage to be added, all features are default to be set to false, [see the following table](https://element-plus.org/en-US/component/config-provider.html#experimental-features) | ^[object]\n */\n experimentalFeatures: {\n type: definePropType<ExperimentalFeatures>(Object),\n },\n /**\n * @description Controls if we should handle keyboard navigation\n */\n keyboardNavigation: {\n type: Boolean,\n default: true,\n },\n /**\n * @description message related configuration, [see the following table](https://element-plus.org/en-US/component/config-provider.html#message-attribute)\n */\n message: {\n type: definePropType<MessageConfigContext>(Object),\n },\n /**\n * @description global Initial zIndex\n */\n zIndex: Number,\n /**\n * @description global component className prefix (cooperated with [$namespace](https://github.com/element-plus/element-plus/blob/dev/packages/theme-chalk/src/mixins/config.scss#L1)) | ^[string]\n */\n namespace: {\n type: String,\n default: 'el',\n },\n ...useEmptyValuesProps,\n} as const)\nexport type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>\nexport type ConfigProviderPropsPublic = __ExtractPublicPropTypes<\n typeof configProviderProps\n>\n"],"names":[],"mappings":";;;;AAEY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,oBAAoB,EAAE;AACxB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAG,mBAAmB;AACxB,CAAC;;;;"}
@@ -28,6 +28,12 @@ declare const ConfigProvider: import("vue").DefineComponent<{
28
28
  readonly validator: ((val: unknown) => boolean) | undefined;
29
29
  __epPropKey: true;
30
30
  };
31
+ readonly dialog: {
32
+ readonly type: import("vue").PropType<import("element-plus").DialogConfigContext>;
33
+ readonly required: false;
34
+ readonly validator: ((val: unknown) => boolean) | undefined;
35
+ __epPropKey: true;
36
+ };
31
37
  readonly link: {
32
38
  readonly type: import("vue").PropType<import("element-plus").LinkConfigContext>;
33
39
  readonly required: false;
@@ -79,6 +85,12 @@ declare const ConfigProvider: import("vue").DefineComponent<{
79
85
  readonly validator: ((val: unknown) => boolean) | undefined;
80
86
  __epPropKey: true;
81
87
  };
88
+ readonly dialog: {
89
+ readonly type: import("vue").PropType<import("element-plus").DialogConfigContext>;
90
+ readonly required: false;
91
+ readonly validator: ((val: unknown) => boolean) | undefined;
92
+ __epPropKey: true;
93
+ };
82
94
  readonly link: {
83
95
  readonly type: import("vue").PropType<import("element-plus").LinkConfigContext>;
84
96
  readonly required: false;
@@ -1,6 +1,6 @@
1
1
  import Dialog from './src/dialog2.mjs';
2
2
  export { useDialog } from './src/use-dialog.mjs';
3
- export { dialogEmits, dialogProps } from './src/dialog.mjs';
3
+ export { dialogContextKey, dialogEmits, dialogProps } from './src/dialog.mjs';
4
4
  export { DEFAULT_DIALOG_TRANSITION, dialogInjectionKey } from './src/constants.mjs';
5
5
  import { withInstall } from '../../utils/vue/install.mjs';
6
6
 
@@ -1,14 +1,14 @@
1
1
  export declare const dialogContentProps: {
2
2
  readonly center: BooleanConstructor;
3
- readonly alignCenter: BooleanConstructor;
3
+ readonly alignCenter: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
4
4
  readonly closeIcon: {
5
5
  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>>;
6
6
  readonly required: false;
7
7
  readonly validator: ((val: unknown) => boolean) | undefined;
8
8
  __epPropKey: true;
9
9
  };
10
- readonly draggable: BooleanConstructor;
11
- readonly overflow: BooleanConstructor;
10
+ readonly draggable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
11
+ readonly overflow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
12
12
  readonly fullscreen: BooleanConstructor;
13
13
  readonly headerClass: StringConstructor;
14
14
  readonly bodyClass: StringConstructor;
@@ -3,12 +3,21 @@ import { iconPropType } from '../../../utils/vue/icon.mjs';
3
3
 
4
4
  const dialogContentProps = buildProps({
5
5
  center: Boolean,
6
- alignCenter: Boolean,
6
+ alignCenter: {
7
+ type: Boolean,
8
+ default: void 0
9
+ },
7
10
  closeIcon: {
8
11
  type: iconPropType
9
12
  },
10
- draggable: Boolean,
11
- overflow: Boolean,
13
+ draggable: {
14
+ type: Boolean,
15
+ default: void 0
16
+ },
17
+ overflow: {
18
+ type: Boolean,
19
+ default: void 0
20
+ },
12
21
  fullscreen: Boolean,
13
22
  headerClass: String,
14
23
  bodyClass: String,
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nexport const dialogContentProps = buildProps({\n /**\n * @description whether to align the header and footer in center\n */\n center: Boolean,\n /**\n * @description whether to align the dialog both horizontally and vertically\n */\n alignCenter: Boolean,\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description enable dragging feature for Dialog\n */\n draggable: Boolean,\n /**\n * @description draggable Dialog can overflow the viewport\n */\n overflow: Boolean,\n /**\n * @description whether the Dialog takes up full screen\n */\n fullscreen: Boolean,\n /**\n * @description custom class names for header wrapper\n */\n headerClass: String,\n /**\n * @description custom class names for body wrapper\n */\n bodyClass: String,\n /**\n * @description custom class names for footer wrapper\n */\n footerClass: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title of Dialog. Can also be passed with a named slot (see the following table)\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description header's aria-level attribute\n */\n ariaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport const dialogContentEmits = {\n close: () => true,\n}\n"],"names":[],"mappings":";;;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,WAAW,EAAE,OAAO;AACtB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
1
+ {"version":3,"file":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nexport const dialogContentProps = buildProps({\n /**\n * @description whether to align the header and footer in center\n */\n center: Boolean,\n /**\n * @description whether to align the dialog both horizontally and vertically\n */\n alignCenter: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description enable dragging feature for Dialog\n */\n draggable: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description draggable Dialog can overflow the viewport\n */\n overflow: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether the Dialog takes up full screen\n */\n fullscreen: Boolean,\n /**\n * @description custom class names for header wrapper\n */\n headerClass: String,\n /**\n * @description custom class names for body wrapper\n */\n bodyClass: String,\n /**\n * @description custom class names for footer wrapper\n */\n footerClass: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title of Dialog. Can also be passed with a named slot (see the following table)\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description header's aria-level attribute\n */\n ariaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport const dialogContentEmits = {\n close: () => true,\n}\n"],"names":[],"mappings":";;;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
@@ -5,15 +5,15 @@ declare function __VLS_template(): {
5
5
  };
6
6
  declare const __VLS_component: import("vue").DefineComponent<{
7
7
  readonly center: BooleanConstructor;
8
- readonly alignCenter: BooleanConstructor;
8
+ readonly alignCenter: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
9
9
  readonly closeIcon: {
10
10
  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>>;
11
11
  readonly required: false;
12
12
  readonly validator: ((val: unknown) => boolean) | undefined;
13
13
  __epPropKey: true;
14
14
  };
15
- readonly draggable: BooleanConstructor;
16
- readonly overflow: BooleanConstructor;
15
+ readonly draggable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
16
+ readonly overflow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
17
17
  readonly fullscreen: BooleanConstructor;
18
18
  readonly headerClass: StringConstructor;
19
19
  readonly bodyClass: StringConstructor;
@@ -28,15 +28,15 @@ declare const __VLS_component: import("vue").DefineComponent<{
28
28
  close: () => void;
29
29
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
30
  readonly center: BooleanConstructor;
31
- readonly alignCenter: BooleanConstructor;
31
+ readonly alignCenter: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
32
32
  readonly closeIcon: {
33
33
  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>>;
34
34
  readonly required: false;
35
35
  readonly validator: ((val: unknown) => boolean) | undefined;
36
36
  __epPropKey: true;
37
37
  };
38
- readonly draggable: BooleanConstructor;
39
- readonly overflow: BooleanConstructor;
38
+ readonly draggable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
39
+ readonly overflow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
40
40
  readonly fullscreen: BooleanConstructor;
41
41
  readonly headerClass: StringConstructor;
42
42
  readonly bodyClass: StringConstructor;
@@ -49,11 +49,11 @@ declare const __VLS_component: import("vue").DefineComponent<{
49
49
  }, {
50
50
  readonly title: string;
51
51
  readonly center: boolean;
52
- readonly overflow: boolean;
52
+ readonly overflow: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
53
53
  readonly ariaLevel: string;
54
+ readonly alignCenter: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
55
+ readonly draggable: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
54
56
  readonly showClose: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
55
- readonly alignCenter: boolean;
56
- readonly draggable: boolean;
57
57
  readonly fullscreen: boolean;
58
58
  }>;
59
59
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -23,13 +23,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  const dialogKls = computed(() => [
24
24
  ns.b(),
25
25
  ns.is("fullscreen", props.fullscreen),
26
- ns.is("draggable", props.draggable),
27
- ns.is("align-center", props.alignCenter),
26
+ ns.is("draggable", !!props.draggable),
27
+ ns.is("align-center", !!props.alignCenter),
28
28
  { [ns.m("center")]: props.center }
29
29
  ]);
30
30
  const composedDialogRef = composeRefs(focusTrapRef, dialogRef);
31
- const draggable = computed(() => props.draggable);
32
- const overflow = computed(() => props.overflow);
31
+ const draggable = computed(() => !!props.draggable);
32
+ const overflow = computed(() => !!props.overflow);
33
33
  const { resetPosition, updatePosition } = useDraggable(dialogRef, headerRef, draggable, overflow);
34
34
  expose({
35
35
  resetPosition,
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.vue"],"sourcesContent":["<template>\n <div :ref=\"composedDialogRef\" :class=\"dialogKls\" :style=\"style\" tabindex=\"-1\">\n <header\n ref=\"headerRef\"\n :class=\"[ns.e('header'), headerClass, { 'show-close': showClose }]\"\n >\n <slot name=\"header\">\n <span role=\"heading\" :aria-level=\"ariaLevel\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.dialog.close')\"\n :class=\"ns.e('headerbtn')\"\n type=\"button\"\n @click=\"$emit('close')\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"closeIcon || Close\" />\n </el-icon>\n </button>\n </header>\n <div :id=\"bodyId\" :class=\"[ns.e('body'), bodyClass]\">\n <slot />\n </div>\n <footer v-if=\"$slots.footer\" :class=\"[ns.e('footer'), footerClass]\">\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { FOCUS_TRAP_INJECTION_KEY } from '@element-plus/components/focus-trap'\nimport { useDraggable, useLocale } from '@element-plus/hooks'\nimport { CloseComponents, composeRefs } from '@element-plus/utils'\nimport { dialogInjectionKey } from './constants'\nimport { dialogContentEmits, dialogContentProps } from './dialog-content'\n\nconst { t } = useLocale()\nconst { Close } = CloseComponents\n\ndefineOptions({ name: 'ElDialogContent' })\nconst props = defineProps(dialogContentProps)\ndefineEmits(dialogContentEmits)\n\nconst { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey)!\nconst { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY)!\n\nconst dialogKls = computed(() => [\n ns.b(),\n ns.is('fullscreen', props.fullscreen),\n ns.is('draggable', props.draggable),\n ns.is('align-center', props.alignCenter),\n { [ns.m('center')]: props.center },\n])\n\nconst composedDialogRef = composeRefs(focusTrapRef, dialogRef)\n\nconst draggable = computed(() => props.draggable)\nconst overflow = computed(() => props.overflow)\nconst { resetPosition, updatePosition } = useDraggable(\n dialogRef,\n headerRef,\n draggable,\n overflow\n)\n\ndefineExpose({\n resetPosition,\n updatePosition,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_unref","_normalizeClass","_normalizeStyle"],"mappings":";;;;;;;;;;;mCA4Cc,CAAA,EAAE,IAAM,EAAA,iBAAA,EAAkB,CAAA,CAAA;;;;;;;AAHxC,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAE,OAAU,GAAA,eAAA,CAAA;AAMlB,IAAM,MAAA,EAAE,WAAW,SAAW,EAAA,MAAA,EAAQ,IAAI,KAAM,EAAA,GAAI,OAAO,kBAAkB,CAAA,CAAA;AAC7E,IAAA,MAAM,EAAE,YAAA,EAAiB,GAAA,MAAA,CAAO,wBAAwB,CAAA,CAAA;AAExD,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAAA,MAC/B,GAAG,CAAE,EAAA;AAAA,MACL,EAAG,CAAA,EAAA,CAAG,YAAc,EAAA,KAAA,CAAM,UAAU,CAAA;AAAA,MACpC,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,KAAA,CAAM,SAAS,CAAA;AAAA,MAClC,EAAG,CAAA,EAAA,CAAG,cAAgB,EAAA,KAAA,CAAM,WAAW,CAAA;AAAA,MACvC,EAAE,CAAC,EAAG,CAAA,CAAA,CAAE,QAAQ,CAAC,GAAG,MAAM,MAAO,EAAA;AAAA,KAClC,CAAA,CAAA;AAED,IAAM,MAAA,iBAAA,GAAoB,WAAY,CAAA,YAAA,EAAc,SAAS,CAAA,CAAA;AAE7D,IAAA,MAAM,SAAY,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,SAAS,CAAA,CAAA;AAChD,IAAA,MAAM,QAAW,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,QAAQ,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAE,aAAe,EAAA,cAAA,EAAmB,GAAA,YAAA,CAAA,SAAA,EAAA,SAAA,EAAA,SAAA,EAAA,QAAA,CAAA,CAAA;AAAA,IACxC,MAAA,CAAA;AAAA,MACA,aAAA;AAAA,MACA,cAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACF,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAEA,MAAa,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA;AAAA,QACX,GAAA,EAAAC,KAAA,CAAA,iBAAA,CAAA;AAAA,QACA,KAAA,EAAAC,cAAA,CAAAD,KAAA,CAAA,SAAA,CAAA,CAAA;AAAA,QACD,KAAA,EAAAE,cAAA,CAAAF,KAAA,CAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.vue"],"sourcesContent":["<template>\n <div :ref=\"composedDialogRef\" :class=\"dialogKls\" :style=\"style\" tabindex=\"-1\">\n <header\n ref=\"headerRef\"\n :class=\"[ns.e('header'), headerClass, { 'show-close': showClose }]\"\n >\n <slot name=\"header\">\n <span role=\"heading\" :aria-level=\"ariaLevel\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.dialog.close')\"\n :class=\"ns.e('headerbtn')\"\n type=\"button\"\n @click=\"$emit('close')\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"closeIcon || Close\" />\n </el-icon>\n </button>\n </header>\n <div :id=\"bodyId\" :class=\"[ns.e('body'), bodyClass]\">\n <slot />\n </div>\n <footer v-if=\"$slots.footer\" :class=\"[ns.e('footer'), footerClass]\">\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { FOCUS_TRAP_INJECTION_KEY } from '@element-plus/components/focus-trap'\nimport { useDraggable, useLocale } from '@element-plus/hooks'\nimport { CloseComponents, composeRefs } from '@element-plus/utils'\nimport { dialogInjectionKey } from './constants'\nimport { dialogContentEmits, dialogContentProps } from './dialog-content'\n\nconst { t } = useLocale()\nconst { Close } = CloseComponents\n\ndefineOptions({ name: 'ElDialogContent' })\nconst props = defineProps(dialogContentProps)\ndefineEmits(dialogContentEmits)\n\nconst { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey)!\nconst { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY)!\n\nconst dialogKls = computed(() => [\n ns.b(),\n ns.is('fullscreen', props.fullscreen),\n ns.is('draggable', !!props.draggable),\n ns.is('align-center', !!props.alignCenter),\n { [ns.m('center')]: props.center },\n])\n\nconst composedDialogRef = composeRefs(focusTrapRef, dialogRef)\n\nconst draggable = computed(() => !!props.draggable)\nconst overflow = computed(() => !!props.overflow)\nconst { resetPosition, updatePosition } = useDraggable(\n dialogRef,\n headerRef,\n draggable,\n overflow\n)\n\ndefineExpose({\n resetPosition,\n updatePosition,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_unref","_normalizeClass","_normalizeStyle"],"mappings":";;;;;;;;;;;mCA4Cc,CAAA,EAAE,IAAM,EAAA,iBAAA,EAAkB,CAAA,CAAA;;;;;;;AAHxC,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAE,OAAU,GAAA,eAAA,CAAA;AAMlB,IAAM,MAAA,EAAE,WAAW,SAAW,EAAA,MAAA,EAAQ,IAAI,KAAM,EAAA,GAAI,OAAO,kBAAkB,CAAA,CAAA;AAC7E,IAAA,MAAM,EAAE,YAAA,EAAiB,GAAA,MAAA,CAAO,wBAAwB,CAAA,CAAA;AAExD,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAAA,MAC/B,GAAG,CAAE,EAAA;AAAA,MACL,EAAG,CAAA,EAAA,CAAG,YAAc,EAAA,KAAA,CAAM,UAAU,CAAA;AAAA,MACpC,GAAG,EAAG,CAAA,WAAA,EAAa,CAAC,CAAC,MAAM,SAAS,CAAA;AAAA,MACpC,GAAG,EAAG,CAAA,cAAA,EAAgB,CAAC,CAAC,MAAM,WAAW,CAAA;AAAA,MACzC,EAAE,CAAC,EAAG,CAAA,CAAA,CAAE,QAAQ,CAAC,GAAG,MAAM,MAAO,EAAA;AAAA,KAClC,CAAA,CAAA;AAED,IAAM,MAAA,iBAAA,GAAoB,WAAY,CAAA,YAAA,EAAc,SAAS,CAAA,CAAA;AAE7D,IAAA,MAAM,YAAY,QAAS,CAAA,MAAM,CAAC,CAAC,MAAM,SAAS,CAAA,CAAA;AAClD,IAAA,MAAM,WAAW,QAAS,CAAA,MAAM,CAAC,CAAC,MAAM,QAAQ,CAAA,CAAA;AAChD,IAAM,MAAA,EAAE,aAAe,EAAA,cAAA,EAAmB,GAAA,YAAA,CAAA,SAAA,EAAA,SAAA,EAAA,SAAA,EAAA,QAAA,CAAA,CAAA;AAAA,IACxC,MAAA,CAAA;AAAA,MACA,aAAA;AAAA,MACA,cAAA;AAAA,KACA,CAAA,CAAA;AAAA,IACF,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAEA,MAAa,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA;AAAA,QACX,GAAA,EAAAC,KAAA,CAAA,iBAAA,CAAA;AAAA,QACA,KAAA,EAAAC,cAAA,CAAAD,KAAA,CAAA,SAAA,CAAA,CAAA;AAAA,QACD,KAAA,EAAAE,cAAA,CAAAF,KAAA,CAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}