element-plus-secondary 1.2.3 → 1.2.5

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 (488) hide show
  1. package/dist/index.full.js +3 -3
  2. package/dist/index.full.min.js +1 -1
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +14 -14
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +3 -3
  7. package/es/components/anchor/index.mjs +2 -2
  8. package/es/components/anchor/src/anchor.mjs +192 -42
  9. package/es/components/anchor/src/anchor.mjs.map +1 -1
  10. package/es/components/anchor/src/anchor2.mjs +42 -192
  11. package/es/components/anchor/src/anchor2.mjs.map +1 -1
  12. package/es/components/badge/index.mjs +2 -2
  13. package/es/components/badge/src/badge.mjs +71 -32
  14. package/es/components/badge/src/badge.mjs.map +1 -1
  15. package/es/components/badge/src/badge2.mjs +32 -71
  16. package/es/components/badge/src/badge2.mjs.map +1 -1
  17. package/es/components/breadcrumb/index.mjs +2 -2
  18. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -8
  19. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  20. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +8 -56
  21. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  22. package/es/components/button/index.mjs +1 -1
  23. package/es/components/button/src/button-group.mjs +29 -6
  24. package/es/components/button/src/button-group.mjs.map +1 -1
  25. package/es/components/button/src/button-group2.mjs +6 -29
  26. package/es/components/button/src/button-group2.mjs.map +1 -1
  27. package/es/components/calendar/index.mjs +2 -2
  28. package/es/components/calendar/src/calendar.mjs +16 -134
  29. package/es/components/calendar/src/calendar.mjs.map +1 -1
  30. package/es/components/calendar/src/calendar2.mjs +134 -16
  31. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  32. package/es/components/carousel/index.mjs +4 -4
  33. package/es/components/carousel/src/carousel-item.mjs +69 -7
  34. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  35. package/es/components/carousel/src/carousel-item2.mjs +7 -69
  36. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  37. package/es/components/carousel/src/carousel.mjs +61 -204
  38. package/es/components/carousel/src/carousel.mjs.map +1 -1
  39. package/es/components/carousel/src/carousel2.mjs +204 -61
  40. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  41. package/es/components/check-tag/index.mjs +2 -2
  42. package/es/components/check-tag/src/check-tag.mjs +14 -38
  43. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  44. package/es/components/check-tag/src/check-tag2.mjs +38 -14
  45. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  46. package/es/components/checkbox/index.mjs +2 -2
  47. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  48. package/es/components/checkbox/src/checkbox.mjs +63 -125
  49. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  50. package/es/components/checkbox/src/checkbox2.mjs +125 -63
  51. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  52. package/es/components/collapse/index.mjs +2 -2
  53. package/es/components/collapse/src/collapse-item.mjs +102 -22
  54. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  55. package/es/components/collapse/src/collapse-item2.mjs +22 -102
  56. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  57. package/es/components/collection/index.mjs +1 -1
  58. package/es/components/collection/src/collection.mjs +62 -10
  59. package/es/components/collection/src/collection.mjs.map +1 -1
  60. package/es/components/collection/src/collection2.mjs +10 -62
  61. package/es/components/collection/src/collection2.mjs.map +1 -1
  62. package/es/components/color-picker/index.mjs +2 -2
  63. package/es/components/color-picker/src/color-picker.mjs +49 -477
  64. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  65. package/es/components/color-picker/src/color-picker2.mjs +477 -49
  66. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  67. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  68. package/es/components/countdown/index.mjs +2 -2
  69. package/es/components/countdown/src/countdown.mjs +79 -22
  70. package/es/components/countdown/src/countdown.mjs.map +1 -1
  71. package/es/components/countdown/src/countdown2.mjs +22 -79
  72. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  73. package/es/components/dialog/src/dialog-content.mjs +29 -88
  74. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  75. package/es/components/dialog/src/dialog-content2.mjs +88 -29
  76. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  77. package/es/components/dialog/src/dialog.mjs +1 -1
  78. package/es/components/dialog/src/dialog2.mjs +1 -1
  79. package/es/components/divider/index.mjs +2 -2
  80. package/es/components/divider/src/divider.mjs +34 -16
  81. package/es/components/divider/src/divider.mjs.map +1 -1
  82. package/es/components/divider/src/divider2.mjs +16 -34
  83. package/es/components/divider/src/divider2.mjs.map +1 -1
  84. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  85. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  86. package/es/components/dropdown/src/dropdown.mjs +1 -1
  87. package/es/components/dropdown/src/dropdown2.mjs +2 -2
  88. package/es/components/icon/index.mjs +2 -2
  89. package/es/components/icon/src/icon.mjs +8 -35
  90. package/es/components/icon/src/icon.mjs.map +1 -1
  91. package/es/components/icon/src/icon2.mjs +35 -8
  92. package/es/components/icon/src/icon2.mjs.map +1 -1
  93. package/es/components/image/index.mjs +2 -2
  94. package/es/components/image/src/image.mjs +68 -222
  95. package/es/components/image/src/image.mjs.map +1 -1
  96. package/es/components/image/src/image2.mjs +222 -68
  97. package/es/components/image/src/image2.mjs.map +1 -1
  98. package/es/components/index.mjs +36 -36
  99. package/es/components/input/index.mjs +2 -2
  100. package/es/components/input/src/input.mjs +478 -106
  101. package/es/components/input/src/input.mjs.map +1 -1
  102. package/es/components/input/src/input2.mjs +106 -478
  103. package/es/components/input/src/input2.mjs.map +1 -1
  104. package/es/components/input-number/index.mjs +2 -2
  105. package/es/components/input-number/src/input-number.mjs +64 -374
  106. package/es/components/input-number/src/input-number.mjs.map +1 -1
  107. package/es/components/input-number/src/input-number2.mjs +374 -64
  108. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  109. package/es/components/link/index.mjs +2 -2
  110. package/es/components/link/src/link.mjs +24 -49
  111. package/es/components/link/src/link.mjs.map +1 -1
  112. package/es/components/link/src/link2.mjs +49 -24
  113. package/es/components/link/src/link2.mjs.map +1 -1
  114. package/es/components/mention/index.mjs +2 -2
  115. package/es/components/mention/src/mention.mjs +283 -63
  116. package/es/components/mention/src/mention.mjs.map +1 -1
  117. package/es/components/mention/src/mention2.mjs +63 -283
  118. package/es/components/mention/src/mention2.mjs.map +1 -1
  119. package/es/components/menu/index.mjs +2 -2
  120. package/es/components/menu/src/menu-item-group.mjs +33 -4
  121. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  122. package/es/components/menu/src/menu-item-group2.mjs +4 -33
  123. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  124. package/es/components/page-header/index.mjs +2 -2
  125. package/es/components/page-header/src/page-header.mjs +97 -16
  126. package/es/components/page-header/src/page-header.mjs.map +1 -1
  127. package/es/components/page-header/src/page-header2.mjs +16 -97
  128. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  129. package/es/components/pagination/src/components/prev.mjs +38 -17
  130. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  131. package/es/components/pagination/src/components/prev2.mjs +17 -38
  132. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  133. package/es/components/pagination/src/components/sizes.mjs +23 -71
  134. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  135. package/es/components/pagination/src/components/sizes2.mjs +71 -23
  136. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  137. package/es/components/pagination/src/components/total.mjs +6 -26
  138. package/es/components/pagination/src/components/total.mjs.map +1 -1
  139. package/es/components/pagination/src/components/total2.mjs +26 -6
  140. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  141. package/es/components/pagination/src/pagination.mjs +3 -3
  142. package/es/components/popconfirm/index.mjs +2 -2
  143. package/es/components/popconfirm/src/popconfirm.mjs +114 -45
  144. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  145. package/es/components/popconfirm/src/popconfirm2.mjs +45 -114
  146. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  147. package/es/components/popover/index.mjs +2 -2
  148. package/es/components/popover/src/popover.mjs +64 -110
  149. package/es/components/popover/src/popover.mjs.map +1 -1
  150. package/es/components/popover/src/popover2.mjs +110 -64
  151. package/es/components/popover/src/popover2.mjs.map +1 -1
  152. package/es/components/popper/index.mjs +2 -2
  153. package/es/components/popper/src/popper.mjs +22 -32
  154. package/es/components/popper/src/popper.mjs.map +1 -1
  155. package/es/components/popper/src/popper2.mjs +32 -22
  156. package/es/components/popper/src/popper2.mjs.map +1 -1
  157. package/es/components/radio/index.mjs +2 -2
  158. package/es/components/radio/src/radio-button.mjs +65 -5
  159. package/es/components/radio/src/radio-button.mjs.map +1 -1
  160. package/es/components/radio/src/radio-button2.mjs +5 -65
  161. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  162. package/es/components/roving-focus-group/index.mjs +3 -3
  163. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  164. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -27
  165. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  166. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -27
  167. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  168. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  169. package/es/components/scrollbar/index.mjs +3 -3
  170. package/es/components/scrollbar/src/bar.mjs +64 -10
  171. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  172. package/es/components/scrollbar/src/bar2.mjs +10 -64
  173. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  174. package/es/components/scrollbar/src/scrollbar.mjs +55 -170
  175. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  176. package/es/components/scrollbar/src/scrollbar2.mjs +170 -55
  177. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  178. package/es/components/scrollbar/src/thumb.mjs +129 -11
  179. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  180. package/es/components/scrollbar/src/thumb2.mjs +11 -129
  181. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  182. package/es/components/segmented/index.mjs +2 -2
  183. package/es/components/segmented/src/segmented.mjs +33 -167
  184. package/es/components/segmented/src/segmented.mjs.map +1 -1
  185. package/es/components/segmented/src/segmented2.mjs +167 -33
  186. package/es/components/segmented/src/segmented2.mjs.map +1 -1
  187. package/es/components/skeleton/index.mjs +2 -2
  188. package/es/components/skeleton/src/skeleton.mjs +48 -21
  189. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  190. package/es/components/skeleton/src/skeleton2.mjs +21 -48
  191. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  192. package/es/components/statistic/index.mjs +2 -2
  193. package/es/components/statistic/src/statistic.mjs +25 -69
  194. package/es/components/statistic/src/statistic.mjs.map +1 -1
  195. package/es/components/statistic/src/statistic2.mjs +69 -25
  196. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  197. package/es/components/tabs/index.mjs +3 -3
  198. package/es/components/tabs/src/tab-bar.mjs +95 -7
  199. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  200. package/es/components/tabs/src/tab-bar2.mjs +7 -95
  201. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  202. package/es/components/tabs/src/tab-nav.mjs +1 -1
  203. package/es/components/tabs/src/tab-pane.mjs +71 -13
  204. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  205. package/es/components/tabs/src/tab-pane2.mjs +13 -71
  206. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  207. package/es/components/timeline/index.mjs +2 -2
  208. package/es/components/timeline/src/timeline-item.mjs +33 -72
  209. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  210. package/es/components/timeline/src/timeline-item2.mjs +72 -33
  211. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  212. package/es/components/tooltip/src/tooltip.mjs +1 -1
  213. package/es/components/tooltip-v2/index.mjs +3 -3
  214. package/es/components/tooltip-v2/src/root.mjs +17 -79
  215. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  216. package/es/components/tooltip-v2/src/root2.mjs +79 -17
  217. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  218. package/es/components/tooltip-v2/src/tooltip.mjs +19 -77
  219. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  220. package/es/components/tooltip-v2/src/tooltip2.mjs +77 -19
  221. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  222. package/es/components/tour/index.mjs +2 -2
  223. package/es/components/tour/src/tour.mjs +68 -153
  224. package/es/components/tour/src/tour.mjs.map +1 -1
  225. package/es/components/tour/src/tour2.mjs +153 -68
  226. package/es/components/tour/src/tour2.mjs.map +1 -1
  227. package/es/components/upload/index.mjs +3 -3
  228. package/es/components/upload/src/upload-content.mjs +196 -33
  229. package/es/components/upload/src/upload-content.mjs.map +1 -1
  230. package/es/components/upload/src/upload-content2.mjs +33 -196
  231. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  232. package/es/components/upload/src/upload-dragger.mjs +10 -47
  233. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  234. package/es/components/upload/src/upload-dragger2.mjs +47 -10
  235. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  236. package/es/components/upload/src/upload-list.mjs +28 -173
  237. package/es/components/upload/src/upload-list.mjs.map +1 -1
  238. package/es/components/upload/src/upload-list2.mjs +173 -28
  239. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  240. package/es/components/upload/src/upload2.mjs +2 -2
  241. package/es/directives/click-outside/index.mjs +1 -1
  242. package/es/hooks/use-focus-controller/index.mjs +1 -1
  243. package/es/hooks/use-lockscreen/index.mjs +1 -1
  244. package/es/hooks/use-z-index/index.mjs +3 -3
  245. package/es/hooks/use-z-index/index.mjs.map +1 -1
  246. package/es/index.mjs +37 -37
  247. package/lib/components/anchor/index.js +2 -2
  248. package/lib/components/anchor/src/anchor.js +191 -42
  249. package/lib/components/anchor/src/anchor.js.map +1 -1
  250. package/lib/components/anchor/src/anchor2.js +42 -191
  251. package/lib/components/anchor/src/anchor2.js.map +1 -1
  252. package/lib/components/badge/index.js +2 -2
  253. package/lib/components/badge/src/badge.js +71 -32
  254. package/lib/components/badge/src/badge.js.map +1 -1
  255. package/lib/components/badge/src/badge2.js +32 -71
  256. package/lib/components/badge/src/badge2.js.map +1 -1
  257. package/lib/components/breadcrumb/index.js +2 -2
  258. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -8
  259. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  260. package/lib/components/breadcrumb/src/breadcrumb-item2.js +8 -56
  261. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  262. package/lib/components/button/index.js +1 -1
  263. package/lib/components/button/src/button-group.js +29 -6
  264. package/lib/components/button/src/button-group.js.map +1 -1
  265. package/lib/components/button/src/button-group2.js +6 -29
  266. package/lib/components/button/src/button-group2.js.map +1 -1
  267. package/lib/components/calendar/index.js +2 -2
  268. package/lib/components/calendar/src/calendar.js +17 -134
  269. package/lib/components/calendar/src/calendar.js.map +1 -1
  270. package/lib/components/calendar/src/calendar2.js +134 -17
  271. package/lib/components/calendar/src/calendar2.js.map +1 -1
  272. package/lib/components/carousel/index.js +4 -4
  273. package/lib/components/carousel/src/carousel-item.js +69 -7
  274. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  275. package/lib/components/carousel/src/carousel-item2.js +7 -69
  276. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  277. package/lib/components/carousel/src/carousel.js +62 -204
  278. package/lib/components/carousel/src/carousel.js.map +1 -1
  279. package/lib/components/carousel/src/carousel2.js +204 -62
  280. package/lib/components/carousel/src/carousel2.js.map +1 -1
  281. package/lib/components/check-tag/index.js +2 -2
  282. package/lib/components/check-tag/src/check-tag.js +15 -38
  283. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  284. package/lib/components/check-tag/src/check-tag2.js +38 -15
  285. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  286. package/lib/components/checkbox/index.js +2 -2
  287. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  288. package/lib/components/checkbox/src/checkbox.js +64 -125
  289. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  290. package/lib/components/checkbox/src/checkbox2.js +125 -64
  291. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  292. package/lib/components/collapse/index.js +2 -2
  293. package/lib/components/collapse/src/collapse-item.js +102 -22
  294. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  295. package/lib/components/collapse/src/collapse-item2.js +22 -102
  296. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  297. package/lib/components/collection/index.js +1 -1
  298. package/lib/components/collection/src/collection.js +62 -9
  299. package/lib/components/collection/src/collection.js.map +1 -1
  300. package/lib/components/collection/src/collection2.js +9 -62
  301. package/lib/components/collection/src/collection2.js.map +1 -1
  302. package/lib/components/color-picker/index.js +2 -2
  303. package/lib/components/color-picker/src/color-picker.js +49 -475
  304. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  305. package/lib/components/color-picker/src/color-picker2.js +475 -49
  306. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  307. package/lib/components/color-picker/src/components/predefine.js +1 -1
  308. package/lib/components/countdown/index.js +2 -2
  309. package/lib/components/countdown/src/countdown.js +79 -23
  310. package/lib/components/countdown/src/countdown.js.map +1 -1
  311. package/lib/components/countdown/src/countdown2.js +23 -79
  312. package/lib/components/countdown/src/countdown2.js.map +1 -1
  313. package/lib/components/dialog/src/dialog-content.js +29 -87
  314. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  315. package/lib/components/dialog/src/dialog-content2.js +87 -29
  316. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  317. package/lib/components/dialog/src/dialog.js +1 -1
  318. package/lib/components/dialog/src/dialog2.js +1 -1
  319. package/lib/components/divider/index.js +2 -2
  320. package/lib/components/divider/src/divider.js +34 -16
  321. package/lib/components/divider/src/divider.js.map +1 -1
  322. package/lib/components/divider/src/divider2.js +16 -34
  323. package/lib/components/divider/src/divider2.js.map +1 -1
  324. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  325. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  326. package/lib/components/dropdown/src/dropdown.js +1 -1
  327. package/lib/components/dropdown/src/dropdown2.js +2 -2
  328. package/lib/components/icon/index.js +2 -2
  329. package/lib/components/icon/src/icon.js +8 -35
  330. package/lib/components/icon/src/icon.js.map +1 -1
  331. package/lib/components/icon/src/icon2.js +35 -8
  332. package/lib/components/icon/src/icon2.js.map +1 -1
  333. package/lib/components/image/index.js +2 -2
  334. package/lib/components/image/src/image.js +68 -221
  335. package/lib/components/image/src/image.js.map +1 -1
  336. package/lib/components/image/src/image2.js +221 -68
  337. package/lib/components/image/src/image2.js.map +1 -1
  338. package/lib/components/index.js +36 -36
  339. package/lib/components/input/index.js +2 -2
  340. package/lib/components/input/src/input.js +477 -106
  341. package/lib/components/input/src/input.js.map +1 -1
  342. package/lib/components/input/src/input2.js +106 -477
  343. package/lib/components/input/src/input2.js.map +1 -1
  344. package/lib/components/input-number/index.js +2 -2
  345. package/lib/components/input-number/src/input-number.js +63 -372
  346. package/lib/components/input-number/src/input-number.js.map +1 -1
  347. package/lib/components/input-number/src/input-number2.js +372 -63
  348. package/lib/components/input-number/src/input-number2.js.map +1 -1
  349. package/lib/components/link/index.js +2 -2
  350. package/lib/components/link/src/link.js +25 -49
  351. package/lib/components/link/src/link.js.map +1 -1
  352. package/lib/components/link/src/link2.js +49 -25
  353. package/lib/components/link/src/link2.js.map +1 -1
  354. package/lib/components/mention/index.js +2 -2
  355. package/lib/components/mention/src/mention.js +281 -62
  356. package/lib/components/mention/src/mention.js.map +1 -1
  357. package/lib/components/mention/src/mention2.js +62 -281
  358. package/lib/components/mention/src/mention2.js.map +1 -1
  359. package/lib/components/menu/index.js +2 -2
  360. package/lib/components/menu/src/menu-item-group.js +33 -4
  361. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  362. package/lib/components/menu/src/menu-item-group2.js +4 -33
  363. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  364. package/lib/components/page-header/index.js +2 -2
  365. package/lib/components/page-header/src/page-header.js +97 -17
  366. package/lib/components/page-header/src/page-header.js.map +1 -1
  367. package/lib/components/page-header/src/page-header2.js +17 -97
  368. package/lib/components/page-header/src/page-header2.js.map +1 -1
  369. package/lib/components/pagination/src/components/prev.js +38 -18
  370. package/lib/components/pagination/src/components/prev.js.map +1 -1
  371. package/lib/components/pagination/src/components/prev2.js +18 -38
  372. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  373. package/lib/components/pagination/src/components/sizes.js +23 -71
  374. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  375. package/lib/components/pagination/src/components/sizes2.js +71 -23
  376. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  377. package/lib/components/pagination/src/components/total.js +6 -26
  378. package/lib/components/pagination/src/components/total.js.map +1 -1
  379. package/lib/components/pagination/src/components/total2.js +26 -6
  380. package/lib/components/pagination/src/components/total2.js.map +1 -1
  381. package/lib/components/pagination/src/pagination.js +3 -3
  382. package/lib/components/popconfirm/index.js +2 -2
  383. package/lib/components/popconfirm/src/popconfirm.js +114 -46
  384. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  385. package/lib/components/popconfirm/src/popconfirm2.js +46 -114
  386. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  387. package/lib/components/popover/index.js +2 -2
  388. package/lib/components/popover/src/popover.js +65 -110
  389. package/lib/components/popover/src/popover.js.map +1 -1
  390. package/lib/components/popover/src/popover2.js +110 -65
  391. package/lib/components/popover/src/popover2.js.map +1 -1
  392. package/lib/components/popper/index.js +2 -2
  393. package/lib/components/popper/src/popper.js +25 -32
  394. package/lib/components/popper/src/popper.js.map +1 -1
  395. package/lib/components/popper/src/popper2.js +32 -25
  396. package/lib/components/popper/src/popper2.js.map +1 -1
  397. package/lib/components/radio/index.js +2 -2
  398. package/lib/components/radio/src/radio-button.js +65 -5
  399. package/lib/components/radio/src/radio-button.js.map +1 -1
  400. package/lib/components/radio/src/radio-button2.js +5 -65
  401. package/lib/components/radio/src/radio-button2.js.map +1 -1
  402. package/lib/components/roving-focus-group/index.js +2 -2
  403. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  404. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -31
  405. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  406. package/lib/components/roving-focus-group/src/roving-focus-group2.js +31 -27
  407. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  408. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  409. package/lib/components/scrollbar/index.js +3 -3
  410. package/lib/components/scrollbar/src/bar.js +64 -10
  411. package/lib/components/scrollbar/src/bar.js.map +1 -1
  412. package/lib/components/scrollbar/src/bar2.js +10 -64
  413. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  414. package/lib/components/scrollbar/src/scrollbar.js +56 -170
  415. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  416. package/lib/components/scrollbar/src/scrollbar2.js +170 -56
  417. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  418. package/lib/components/scrollbar/src/thumb.js +129 -11
  419. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  420. package/lib/components/scrollbar/src/thumb2.js +11 -129
  421. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  422. package/lib/components/segmented/index.js +2 -2
  423. package/lib/components/segmented/src/segmented.js +34 -167
  424. package/lib/components/segmented/src/segmented.js.map +1 -1
  425. package/lib/components/segmented/src/segmented2.js +167 -34
  426. package/lib/components/segmented/src/segmented2.js.map +1 -1
  427. package/lib/components/skeleton/index.js +2 -2
  428. package/lib/components/skeleton/src/skeleton.js +48 -21
  429. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  430. package/lib/components/skeleton/src/skeleton2.js +21 -48
  431. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  432. package/lib/components/statistic/index.js +2 -2
  433. package/lib/components/statistic/src/statistic.js +25 -69
  434. package/lib/components/statistic/src/statistic.js.map +1 -1
  435. package/lib/components/statistic/src/statistic2.js +69 -25
  436. package/lib/components/statistic/src/statistic2.js.map +1 -1
  437. package/lib/components/tabs/index.js +3 -3
  438. package/lib/components/tabs/src/tab-bar.js +95 -7
  439. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  440. package/lib/components/tabs/src/tab-bar2.js +7 -95
  441. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  442. package/lib/components/tabs/src/tab-nav.js +1 -1
  443. package/lib/components/tabs/src/tab-pane.js +71 -13
  444. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  445. package/lib/components/tabs/src/tab-pane2.js +13 -71
  446. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  447. package/lib/components/timeline/index.js +2 -2
  448. package/lib/components/timeline/src/timeline-item.js +33 -72
  449. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  450. package/lib/components/timeline/src/timeline-item2.js +72 -33
  451. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  452. package/lib/components/tooltip/src/tooltip.js +1 -1
  453. package/lib/components/tooltip-v2/index.js +3 -3
  454. package/lib/components/tooltip-v2/src/root.js +17 -79
  455. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  456. package/lib/components/tooltip-v2/src/root2.js +79 -17
  457. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  458. package/lib/components/tooltip-v2/src/tooltip.js +19 -77
  459. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  460. package/lib/components/tooltip-v2/src/tooltip2.js +77 -19
  461. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  462. package/lib/components/tour/index.js +2 -2
  463. package/lib/components/tour/src/tour.js +68 -152
  464. package/lib/components/tour/src/tour.js.map +1 -1
  465. package/lib/components/tour/src/tour2.js +152 -68
  466. package/lib/components/tour/src/tour2.js.map +1 -1
  467. package/lib/components/upload/index.js +3 -3
  468. package/lib/components/upload/src/upload-content.js +194 -31
  469. package/lib/components/upload/src/upload-content.js.map +1 -1
  470. package/lib/components/upload/src/upload-content2.js +31 -194
  471. package/lib/components/upload/src/upload-content2.js.map +1 -1
  472. package/lib/components/upload/src/upload-dragger.js +11 -47
  473. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  474. package/lib/components/upload/src/upload-dragger2.js +47 -11
  475. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  476. package/lib/components/upload/src/upload-list.js +29 -173
  477. package/lib/components/upload/src/upload-list.js.map +1 -1
  478. package/lib/components/upload/src/upload-list2.js +173 -29
  479. package/lib/components/upload/src/upload-list2.js.map +1 -1
  480. package/lib/components/upload/src/upload2.js +2 -2
  481. package/lib/directives/click-outside/index.js +1 -1
  482. package/lib/hooks/use-focus-controller/index.js +1 -1
  483. package/lib/hooks/use-lockscreen/index.js +1 -1
  484. package/lib/hooks/use-z-index/index.js +3 -3
  485. package/lib/hooks/use-z-index/index.js.map +1 -1
  486. package/lib/index.js +38 -38
  487. package/package.json +1 -1
  488. package/web-types.json +1 -1
@@ -2,33 +2,40 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var constants = require('./constants.js');
7
+ var popper = require('./popper.js');
8
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
6
9
 
7
- const Effect = {
8
- LIGHT: "light",
9
- DARK: "dark"
10
- };
11
- const roleTypes = [
12
- "dialog",
13
- "grid",
14
- "group",
15
- "listbox",
16
- "menu",
17
- "navigation",
18
- "tooltip",
19
- "tree"
20
- ];
21
- const popperProps = runtime.buildProps({
22
- role: {
23
- type: String,
24
- values: roleTypes,
25
- default: "tooltip"
10
+ const __default__ = vue.defineComponent({
11
+ name: "ElPopper",
12
+ inheritAttrs: false
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ ...__default__,
16
+ props: popper.popperProps,
17
+ setup(__props, { expose }) {
18
+ const props = __props;
19
+ const triggerRef = vue.ref();
20
+ const popperInstanceRef = vue.ref();
21
+ const contentRef = vue.ref();
22
+ const referenceRef = vue.ref();
23
+ const role = vue.computed(() => props.role);
24
+ const popperProvides = {
25
+ triggerRef,
26
+ popperInstanceRef,
27
+ contentRef,
28
+ referenceRef,
29
+ role
30
+ };
31
+ expose(popperProvides);
32
+ vue.provide(constants.POPPER_INJECTION_KEY, popperProvides);
33
+ return (_ctx, _cache) => {
34
+ return vue.renderSlot(_ctx.$slots, "default");
35
+ };
26
36
  }
27
37
  });
28
- const usePopperProps = popperProps;
38
+ var Popper = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "popper.vue"]]);
29
39
 
30
- exports.Effect = Effect;
31
- exports.popperProps = popperProps;
32
- exports.roleTypes = roleTypes;
33
- exports.usePopperProps = usePopperProps;
40
+ exports["default"] = Popper;
34
41
  //# sourceMappingURL=popper2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popper2.js","sources":["../../../../../../packages/components/popper/src/popper.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\nimport { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Popper from './popper.vue'\n\nconst effects = ['light', 'dark'] as const\nconst triggers = ['click', 'contextmenu', 'hover', 'focus'] as const\n\nexport const Effect = {\n LIGHT: 'light',\n DARK: 'dark',\n} as const\n\nexport const roleTypes = [\n 'dialog',\n 'grid',\n 'group',\n 'listbox',\n 'menu',\n 'navigation',\n 'tooltip',\n 'tree',\n] as const\n\nexport type PopperEffect =\n | typeof effects[number]\n | (string & NonNullable<unknown>)\nexport type PopperTrigger = typeof triggers[number]\n\nexport const popperProps = buildProps({\n role: {\n type: String,\n values: roleTypes,\n default: 'tooltip',\n },\n} as const)\n\nexport type PopperProps = ExtractPropTypes<typeof popperProps>\n\nexport type PopperInstance = InstanceType<typeof Popper>\n\n/** @deprecated use `popperProps` instead, and it will be deprecated in the next major version */\nexport const usePopperProps = popperProps\n\n/** @deprecated use `PopperProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperProps = PopperProps\n"],"names":["buildProps"],"mappings":";;;;;;AAGY,MAAC,MAAM,GAAG;AACtB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE;AACU,MAAC,SAAS,GAAG;AACzB,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,OAAO;AACT,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,YAAY;AACd,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE;AACU,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;;;;;;;"}
1
+ {"version":3,"file":"popper2.js","sources":["../../../../../../packages/components/popper/src/popper.vue"],"sourcesContent":["<template>\n <slot />\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref } from 'vue'\nimport { POPPER_INJECTION_KEY } from './constants'\nimport { popperProps } from './popper'\n\nimport type { Instance as PopperInstance } from '@popperjs/core'\nimport type { ElPopperInjectionContext } from './constants'\n\ndefineOptions({\n name: 'ElPopper',\n inheritAttrs: false,\n})\nconst props = defineProps(popperProps)\n\nconst triggerRef = ref<HTMLElement>()\nconst popperInstanceRef = ref<PopperInstance>()\nconst contentRef = ref<HTMLElement>()\nconst referenceRef = ref<HTMLElement>()\nconst role = computed(() => props.role)\n\nconst popperProvides = {\n /**\n * @description trigger element\n */\n triggerRef,\n /**\n * @description popperjs instance\n */\n popperInstanceRef,\n /**\n * @description popper content element\n */\n contentRef,\n /**\n * @description popper reference element\n */\n referenceRef,\n /**\n * @description role determines how aria attributes are distributed\n */\n role,\n} as ElPopperInjectionContext\n\ndefineExpose(popperProvides)\n\nprovide(POPPER_INJECTION_KEY, popperProvides)\n</script>\n"],"names":["ref","computed","provide","POPPER_INJECTION_KEY","_renderSlot","_export_sfc"],"mappings":";;;;;;;;;uCAYc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAGA,IAAA,MAAM,aAAaA,OAAiB,EAAA,CAAA;AACpC,IAAA,MAAM,oBAAoBA,OAAoB,EAAA,CAAA;AAC9C,IAAA,MAAM,aAAaA,OAAiB,EAAA,CAAA;AACpC,IAAA,MAAM,eAAeA,OAAiB,EAAA,CAAA;AACtC,IAAA,MAAM,IAAO,GAAAC,YAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA,CAAA;AAEtC,IAAA,MAAM,cAAiB,GAAA;AAAA,MAAA,UAAA;AAAA,MAAA,iBAAA;AAAA,MAAA,UAAA;AAAA,MAIrB,YAAA;AAAA,MAAA,IAAA;AAAA,KAAA,CAAA;AAAA,IAAA,MAAA,CAAA,cAAA,CAAA,CAAA;AAAA,IAIAC,WAAA,CAAAC,8BAAA,EAAA,cAAA,CAAA,CAAA;AAAA,IAAA,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MAAA,OAAAC,cAAA,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GAIA;AAAA,CAAA,CAAA,CAAA;AAAA,aAAA,gBAAAC,iCAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,EAAA,YAAA,CAAA,CAAA,CAAA;;;;"}
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var radio$1 = require('./src/radio2.js');
6
- var radioButton$1 = require('./src/radio-button2.js');
6
+ var radioButton$1 = require('./src/radio-button.js');
7
7
  var radioGroup$1 = require('./src/radio-group2.js');
8
8
  var radio = require('./src/radio.js');
9
9
  var radioGroup = require('./src/radio-group.js');
10
- var radioButton = require('./src/radio-button.js');
10
+ var radioButton = require('./src/radio-button2.js');
11
11
  var constants = require('./src/constants.js');
12
12
  var install = require('../../utils/vue/install.js');
13
13
 
@@ -2,12 +2,72 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var radio = require('./radio.js');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var useRadio = require('./use-radio.js');
7
+ var radioButton = require('./radio-button2.js');
8
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
+ var index = require('../../../hooks/use-namespace/index.js');
7
10
 
8
- const radioButtonProps = runtime.buildProps({
9
- ...radio.radioPropsBase
11
+ const __default__ = vue.defineComponent({
12
+ name: "ElRadioButton"
10
13
  });
14
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ ...__default__,
16
+ props: radioButton.radioButtonProps,
17
+ setup(__props) {
18
+ const props = __props;
19
+ const ns = index.useNamespace("radio");
20
+ const { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } = useRadio.useRadio(props);
21
+ const activeStyle = vue.computed(() => {
22
+ return {
23
+ backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
24
+ borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
25
+ boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
26
+ color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
27
+ };
28
+ });
29
+ return (_ctx, _cache) => {
30
+ var _a;
31
+ return vue.openBlock(), vue.createElementBlock("label", {
32
+ class: vue.normalizeClass([
33
+ vue.unref(ns).b("button"),
34
+ vue.unref(ns).is("active", vue.unref(modelValue) === vue.unref(actualValue)),
35
+ vue.unref(ns).is("disabled", vue.unref(disabled)),
36
+ vue.unref(ns).is("focus", vue.unref(focus)),
37
+ vue.unref(ns).bm("button", vue.unref(size))
38
+ ])
39
+ }, [
40
+ vue.withDirectives(vue.createElementVNode("input", {
41
+ ref_key: "radioRef",
42
+ ref: radioRef,
43
+ "onUpdate:modelValue": ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null,
44
+ class: vue.normalizeClass(vue.unref(ns).be("button", "original-radio")),
45
+ value: vue.unref(actualValue),
46
+ type: "radio",
47
+ name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
48
+ disabled: vue.unref(disabled),
49
+ onFocus: ($event) => focus.value = true,
50
+ onBlur: ($event) => focus.value = false,
51
+ onClick: vue.withModifiers(() => {
52
+ }, ["stop"])
53
+ }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
54
+ [vue.vModelRadio, vue.unref(modelValue)]
55
+ ]),
56
+ vue.createElementVNode("span", {
57
+ class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
58
+ style: vue.normalizeStyle(vue.unref(modelValue) === vue.unref(actualValue) ? vue.unref(activeStyle) : {}),
59
+ onKeydown: vue.withModifiers(() => {
60
+ }, ["stop"])
61
+ }, [
62
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
63
+ vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
64
+ ])
65
+ ], 46, ["onKeydown"])
66
+ ], 2);
67
+ };
68
+ }
69
+ });
70
+ var RadioButton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "radio-button.vue"]]);
11
71
 
12
- exports.radioButtonProps = radioButtonProps;
72
+ exports["default"] = RadioButton;
13
73
  //# sourceMappingURL=radio-button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.js","sources":["../../../../../../packages/components/radio/src/radio-button.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { radioPropsBase } from './radio'\nimport type { ExtractPropTypes } from 'vue'\nimport type RadioButton from './radio-button.vue'\n\nexport const radioButtonProps = buildProps({\n ...radioPropsBase,\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton>\n"],"names":["buildProps","radioPropsBase"],"mappings":";;;;;;;AAEY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,GAAGC,oBAAc;AACnB,CAAC;;;;"}
1
+ {"version":3,"file":"radio-button.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 { radioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = defineProps(radioButtonProps)\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"],"mappings":";;;;;;;;;;uCAyCc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA,EAAE,QAAU,EAAA,KAAA,EAAO,IAAM,EAAA,QAAA,EAAU,YAAY,UAAY,EAAA,WAAA,EAC/D,GAAAC,iBAAA,CAAS,KAAK,CAAA,CAAA;AAEhB,IAAM,MAAA,WAAA,GAAcC,aAAwB,MAAM;AAChD,MAAO,OAAA;AAAA,QACL,eAAA,EAAiB,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACrC,WAAA,EAAa,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACjC,WAAW,CAAY,UAAA,IAAA,IAAO,GAAc,KAAA,CAAA,GAAA,UAAA,CAAA,QAAoB,CAAA,WAAA,EAAA,UAAA,CAAA,IAAA,CAAA,CAAA,GAAA,EAAA;AAAA,QAChE,KAAA,EAAO,eAAyB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,SAAA,KAAA,EAAA;AAAA,OAClC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,72 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var useRadio = require('./use-radio.js');
7
- var radioButton = require('./radio-button.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
- var index = require('../../../hooks/use-namespace/index.js');
5
+ var radio = require('./radio.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
10
7
 
11
- const __default__ = vue.defineComponent({
12
- name: "ElRadioButton"
8
+ const radioButtonProps = runtime.buildProps({
9
+ ...radio.radioPropsBase
13
10
  });
14
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
- ...__default__,
16
- props: radioButton.radioButtonProps,
17
- setup(__props) {
18
- const props = __props;
19
- const ns = index.useNamespace("radio");
20
- const { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } = useRadio.useRadio(props);
21
- const activeStyle = vue.computed(() => {
22
- return {
23
- backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
24
- borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
25
- boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
26
- color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
27
- };
28
- });
29
- return (_ctx, _cache) => {
30
- var _a;
31
- return vue.openBlock(), vue.createElementBlock("label", {
32
- class: vue.normalizeClass([
33
- vue.unref(ns).b("button"),
34
- vue.unref(ns).is("active", vue.unref(modelValue) === vue.unref(actualValue)),
35
- vue.unref(ns).is("disabled", vue.unref(disabled)),
36
- vue.unref(ns).is("focus", vue.unref(focus)),
37
- vue.unref(ns).bm("button", vue.unref(size))
38
- ])
39
- }, [
40
- vue.withDirectives(vue.createElementVNode("input", {
41
- ref_key: "radioRef",
42
- ref: radioRef,
43
- "onUpdate:modelValue": ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null,
44
- class: vue.normalizeClass(vue.unref(ns).be("button", "original-radio")),
45
- value: vue.unref(actualValue),
46
- type: "radio",
47
- name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
48
- disabled: vue.unref(disabled),
49
- onFocus: ($event) => focus.value = true,
50
- onBlur: ($event) => focus.value = false,
51
- onClick: vue.withModifiers(() => {
52
- }, ["stop"])
53
- }, null, 42, ["onUpdate:modelValue", "value", "name", "disabled", "onFocus", "onBlur", "onClick"]), [
54
- [vue.vModelRadio, vue.unref(modelValue)]
55
- ]),
56
- vue.createElementVNode("span", {
57
- class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
58
- style: vue.normalizeStyle(vue.unref(modelValue) === vue.unref(actualValue) ? vue.unref(activeStyle) : {}),
59
- onKeydown: vue.withModifiers(() => {
60
- }, ["stop"])
61
- }, [
62
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
63
- vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
64
- ])
65
- ], 46, ["onKeydown"])
66
- ], 2);
67
- };
68
- }
69
- });
70
- var RadioButton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "radio-button.vue"]]);
71
11
 
72
- exports["default"] = RadioButton;
12
+ exports.radioButtonProps = radioButtonProps;
73
13
  //# sourceMappingURL=radio-button2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button2.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 { radioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = defineProps(radioButtonProps)\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"],"mappings":";;;;;;;;;;uCAyCc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA,EAAE,QAAU,EAAA,KAAA,EAAO,IAAM,EAAA,QAAA,EAAU,YAAY,UAAY,EAAA,WAAA,EAC/D,GAAAC,iBAAA,CAAS,KAAK,CAAA,CAAA;AAEhB,IAAM,MAAA,WAAA,GAAcC,aAAwB,MAAM;AAChD,MAAO,OAAA;AAAA,QACL,eAAA,EAAiB,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACrC,WAAA,EAAa,eAAoB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,IAAA,KAAA,EAAA;AAAA,QACjC,WAAW,CAAY,UAAA,IAAA,IAAO,GAAc,KAAA,CAAA,GAAA,UAAA,CAAA,QAAoB,CAAA,WAAA,EAAA,UAAA,CAAA,IAAA,CAAA,CAAA,GAAA,EAAA;AAAA,QAChE,KAAA,EAAO,eAAyB,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAA,SAAA,KAAA,EAAA;AAAA,OAClC,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio-button2.js","sources":["../../../../../../packages/components/radio/src/radio-button.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { radioPropsBase } from './radio'\nimport type { ExtractPropTypes } from 'vue'\nimport type RadioButton from './radio-button.vue'\n\nexport const radioButtonProps = buildProps({\n ...radioPropsBase,\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton>\n"],"names":["buildProps","radioPropsBase"],"mappings":";;;;;;;AAEY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,GAAGC,oBAAc;AACnB,CAAC;;;;"}
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var rovingFocusGroup = require('./src/roving-focus-group2.js');
5
+ var rovingFocusGroup = require('./src/roving-focus-group.js');
6
6
  var rovingFocusItem = require('./src/roving-focus-item.js');
7
7
  var tokens = require('./src/tokens.js');
8
8
  var utils = require('./src/utils.js');
9
- var rovingFocusGroup$1 = require('./src/roving-focus-group.js');
9
+ var rovingFocusGroup$1 = require('./src/roving-focus-group2.js');
10
10
 
11
11
 
12
12
 
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var core = require('@vueuse/core');
7
- var rovingFocusGroup = require('./roving-focus-group.js');
7
+ var rovingFocusGroup = require('./roving-focus-group2.js');
8
8
  var tokens = require('./tokens.js');
9
9
  var utils = require('./utils.js');
10
10
  var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
@@ -2,38 +2,34 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var collection = require('../../collection/src/collection2.js');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var rovingFocusGroupImpl = require('./roving-focus-group-impl.js');
7
+ var rovingFocusGroup = require('./roving-focus-group2.js');
8
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
7
9
 
8
- const rovingFocusGroupProps = runtime.buildProps({
9
- style: { type: runtime.definePropType([String, Array, Object]) },
10
- currentTabId: {
11
- type: runtime.definePropType(String)
12
- },
13
- defaultCurrentTabId: String,
14
- loop: Boolean,
15
- dir: {
16
- type: String,
17
- values: ["ltr", "rtl"],
18
- default: "ltr"
19
- },
20
- orientation: {
21
- type: runtime.definePropType(String)
22
- },
23
- onBlur: Function,
24
- onFocus: Function,
25
- onMousedown: Function
10
+ const _sfc_main = vue.defineComponent({
11
+ name: "ElRovingFocusGroup",
12
+ components: {
13
+ ElFocusGroupCollection: rovingFocusGroup.ElCollection,
14
+ ElRovingFocusGroupImpl: rovingFocusGroupImpl["default"]
15
+ }
26
16
  });
27
- const {
28
- ElCollection,
29
- ElCollectionItem,
30
- COLLECTION_INJECTION_KEY,
31
- COLLECTION_ITEM_INJECTION_KEY
32
- } = collection.createCollectionWithScope("RovingFocusGroup");
17
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
18
+ const _component_el_roving_focus_group_impl = vue.resolveComponent("el-roving-focus-group-impl");
19
+ const _component_el_focus_group_collection = vue.resolveComponent("el-focus-group-collection");
20
+ return vue.openBlock(), vue.createBlock(_component_el_focus_group_collection, null, {
21
+ default: vue.withCtx(() => [
22
+ vue.createVNode(_component_el_roving_focus_group_impl, vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), {
23
+ default: vue.withCtx(() => [
24
+ vue.renderSlot(_ctx.$slots, "default")
25
+ ]),
26
+ _: 3
27
+ }, 16)
28
+ ]),
29
+ _: 3
30
+ });
31
+ }
32
+ var ElRovingFocusGroup = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "roving-focus-group.vue"]]);
33
33
 
34
- exports.ElCollection = ElCollection;
35
- exports.ElCollectionItem = ElCollectionItem;
36
- exports.ROVING_FOCUS_COLLECTION_INJECTION_KEY = COLLECTION_INJECTION_KEY;
37
- exports.ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY = COLLECTION_ITEM_INJECTION_KEY;
38
- exports.rovingFocusGroupProps = rovingFocusGroupProps;
34
+ exports["default"] = ElRovingFocusGroup;
39
35
  //# sourceMappingURL=roving-focus-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group.js","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { createCollectionWithScope } from '@element-plus/components/collection'\nimport type { ExtractPropTypes, HTMLAttributes, StyleValue } from 'vue'\n\nexport const rovingFocusGroupProps = buildProps({\n style: { type: definePropType<StyleValue>([String, Array, Object]) },\n currentTabId: {\n type: definePropType<string | null>(String),\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String, // left for direction support\n values: ['ltr', 'rtl'],\n default: 'ltr',\n },\n orientation: {\n // left for orientation support\n type: definePropType<HTMLAttributes['aria-orientation']>(String),\n },\n\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function,\n})\n\nexport type ElRovingFocusGroupProps = ExtractPropTypes<\n typeof rovingFocusGroupProps\n>\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('RovingFocusGroup')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n}\n"],"names":["buildProps","definePropType","createCollectionWithScope"],"mappings":";;;;;;;AAEY,MAAC,qBAAqB,GAAGA,kBAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,WAAW,EAAE,QAAQ;AACvB,CAAC,EAAE;AACE,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAGC,oCAAyB,CAAC,kBAAkB;;;;;;;;"}
1
+ {"version":3,"file":"roving-focus-group.js","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.vue"],"sourcesContent":["<template>\n <el-focus-group-collection>\n <el-roving-focus-group-impl v-bind=\"$attrs\">\n <slot />\n </el-roving-focus-group-impl>\n </el-focus-group-collection>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.vue'\nimport { ElCollection as ElFocusGroupCollection } from './roving-focus-group'\n\nexport default defineComponent({\n name: 'ElRovingFocusGroup',\n components: {\n ElFocusGroupCollection,\n ElRovingFocusGroupImpl,\n },\n})\n</script>\n"],"names":["defineComponent","ElFocusGroupCollection","ElRovingFocusGroupImpl","_createBlock","_withCtx","_createVNode","_normalizeProps","_guardReactiveProps","_renderSlot"],"mappings":";;;;;;;;;AAaA,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVC,6BAAA;AAAA,4BACAC,+BAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;0BAlBCC,eAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,WAAA,CAH1B,MAE6B;AAAA,MAF7BC,eAAA,CAAA,qCAAA,EAAAC,kBAAA,CAAAC,sBAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAE6B,OAAA,EAAAH,WAAA,CAAA,MAAA;AAAA,UAAAI,cAAA,CAAA,IAAA,CAAA,MAAA,EAAA,SAFO,CAAM;AAAA,SAAA,CAAA;AAAA,QAAA,CAAA,EAAA,CAAA;AAChC,OAAA,EAAA,EAAA,CAAR;AAAQ,KAAA,CAAA;;;;;;;;"}
@@ -2,34 +2,38 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var rovingFocusGroupImpl = require('./roving-focus-group-impl.js');
7
- var rovingFocusGroup = require('./roving-focus-group.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
5
+ var collection = require('../../collection/src/collection.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
9
7
 
10
- const _sfc_main = vue.defineComponent({
11
- name: "ElRovingFocusGroup",
12
- components: {
13
- ElFocusGroupCollection: rovingFocusGroup.ElCollection,
14
- ElRovingFocusGroupImpl: rovingFocusGroupImpl["default"]
15
- }
8
+ const rovingFocusGroupProps = runtime.buildProps({
9
+ style: { type: runtime.definePropType([String, Array, Object]) },
10
+ currentTabId: {
11
+ type: runtime.definePropType(String)
12
+ },
13
+ defaultCurrentTabId: String,
14
+ loop: Boolean,
15
+ dir: {
16
+ type: String,
17
+ values: ["ltr", "rtl"],
18
+ default: "ltr"
19
+ },
20
+ orientation: {
21
+ type: runtime.definePropType(String)
22
+ },
23
+ onBlur: Function,
24
+ onFocus: Function,
25
+ onMousedown: Function
16
26
  });
17
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
18
- const _component_el_roving_focus_group_impl = vue.resolveComponent("el-roving-focus-group-impl");
19
- const _component_el_focus_group_collection = vue.resolveComponent("el-focus-group-collection");
20
- return vue.openBlock(), vue.createBlock(_component_el_focus_group_collection, null, {
21
- default: vue.withCtx(() => [
22
- vue.createVNode(_component_el_roving_focus_group_impl, vue.normalizeProps(vue.guardReactiveProps(_ctx.$attrs)), {
23
- default: vue.withCtx(() => [
24
- vue.renderSlot(_ctx.$slots, "default")
25
- ]),
26
- _: 3
27
- }, 16)
28
- ]),
29
- _: 3
30
- });
31
- }
32
- var ElRovingFocusGroup = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "roving-focus-group.vue"]]);
27
+ const {
28
+ ElCollection,
29
+ ElCollectionItem,
30
+ COLLECTION_INJECTION_KEY,
31
+ COLLECTION_ITEM_INJECTION_KEY
32
+ } = collection.createCollectionWithScope("RovingFocusGroup");
33
33
 
34
- exports["default"] = ElRovingFocusGroup;
34
+ exports.ElCollection = ElCollection;
35
+ exports.ElCollectionItem = ElCollectionItem;
36
+ exports.ROVING_FOCUS_COLLECTION_INJECTION_KEY = COLLECTION_INJECTION_KEY;
37
+ exports.ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY = COLLECTION_ITEM_INJECTION_KEY;
38
+ exports.rovingFocusGroupProps = rovingFocusGroupProps;
35
39
  //# sourceMappingURL=roving-focus-group2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group2.js","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.vue"],"sourcesContent":["<template>\n <el-focus-group-collection>\n <el-roving-focus-group-impl v-bind=\"$attrs\">\n <slot />\n </el-roving-focus-group-impl>\n </el-focus-group-collection>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.vue'\nimport { ElCollection as ElFocusGroupCollection } from './roving-focus-group'\n\nexport default defineComponent({\n name: 'ElRovingFocusGroup',\n components: {\n ElFocusGroupCollection,\n ElRovingFocusGroupImpl,\n },\n})\n</script>\n"],"names":["defineComponent","ElFocusGroupCollection","ElRovingFocusGroupImpl","_createBlock","_withCtx","_createVNode","_normalizeProps","_guardReactiveProps","_renderSlot"],"mappings":";;;;;;;;;AAaA,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVC,6BAAA;AAAA,4BACAC,+BAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;0BAlBCC,eAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,WAAA,CAH1B,MAE6B;AAAA,MAF7BC,eAAA,CAAA,qCAAA,EAAAC,kBAAA,CAAAC,sBAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAE6B,OAAA,EAAAH,WAAA,CAAA,MAAA;AAAA,UAAAI,cAAA,CAAA,IAAA,CAAA,MAAA,EAAA,SAFO,CAAM;AAAA,SAAA,CAAA;AAAA,QAAA,CAAA,EAAA,CAAA;AAChC,OAAA,EAAA,EAAA,CAAR;AAAQ,KAAA,CAAA;;;;;;;;"}
1
+ {"version":3,"file":"roving-focus-group2.js","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { createCollectionWithScope } from '@element-plus/components/collection'\nimport type { ExtractPropTypes, HTMLAttributes, StyleValue } from 'vue'\n\nexport const rovingFocusGroupProps = buildProps({\n style: { type: definePropType<StyleValue>([String, Array, Object]) },\n currentTabId: {\n type: definePropType<string | null>(String),\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String, // left for direction support\n values: ['ltr', 'rtl'],\n default: 'ltr',\n },\n orientation: {\n // left for orientation support\n type: definePropType<HTMLAttributes['aria-orientation']>(String),\n },\n\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function,\n})\n\nexport type ElRovingFocusGroupProps = ExtractPropTypes<\n typeof rovingFocusGroupProps\n>\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('RovingFocusGroup')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n}\n"],"names":["buildProps","definePropType","createCollectionWithScope"],"mappings":";;;;;;;AAEY,MAAC,qBAAqB,GAAGA,kBAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,WAAW,EAAE,QAAQ;AACvB,CAAC,EAAE;AACE,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAGC,oCAAyB,CAAC,kBAAkB;;;;;;;;"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
- var rovingFocusGroup = require('./roving-focus-group.js');
6
+ var rovingFocusGroup = require('./roving-focus-group2.js');
7
7
  var tokens = require('./tokens.js');
8
8
  var utils = require('./utils.js');
9
9
  var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var scrollbar$1 = require('./src/scrollbar.js');
5
+ var scrollbar$1 = require('./src/scrollbar2.js');
6
6
  var util = require('./src/util.js');
7
- var scrollbar = require('./src/scrollbar2.js');
8
- var thumb = require('./src/thumb.js');
7
+ var scrollbar = require('./src/scrollbar.js');
8
+ var thumb = require('./src/thumb2.js');
9
9
  var constants = require('./src/constants.js');
10
10
  var install = require('../../utils/vue/install.js');
11
11
 
@@ -2,18 +2,72 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ var util = require('./util.js');
7
+ var thumb = require('./thumb.js');
8
+ var bar = require('./bar2.js');
9
+ var constants = require('./constants.js');
10
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
6
11
 
7
- const barProps = runtime.buildProps({
8
- always: {
9
- type: Boolean,
10
- default: true
11
- },
12
- minSize: {
13
- type: Number,
14
- required: true
12
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
+ __name: "bar",
14
+ props: bar.barProps,
15
+ setup(__props, { expose }) {
16
+ const props = __props;
17
+ const scrollbar = vue.inject(constants.scrollbarContextKey);
18
+ const moveX = vue.ref(0);
19
+ const moveY = vue.ref(0);
20
+ const sizeWidth = vue.ref("");
21
+ const sizeHeight = vue.ref("");
22
+ const ratioY = vue.ref(1);
23
+ const ratioX = vue.ref(1);
24
+ const handleScroll = (wrap) => {
25
+ if (wrap) {
26
+ const offsetHeight = wrap.offsetHeight - util.GAP;
27
+ const offsetWidth = wrap.offsetWidth - util.GAP;
28
+ moveY.value = wrap.scrollTop * 100 / offsetHeight * ratioY.value;
29
+ moveX.value = wrap.scrollLeft * 100 / offsetWidth * ratioX.value;
30
+ }
31
+ };
32
+ const update = () => {
33
+ const wrap = scrollbar == null ? void 0 : scrollbar.wrapElement;
34
+ if (!wrap)
35
+ return;
36
+ const offsetHeight = wrap.offsetHeight - util.GAP;
37
+ const offsetWidth = wrap.offsetWidth - util.GAP;
38
+ const originalHeight = offsetHeight ** 2 / wrap.scrollHeight;
39
+ const originalWidth = offsetWidth ** 2 / wrap.scrollWidth;
40
+ const height = Math.max(originalHeight, props.minSize);
41
+ const width = Math.max(originalWidth, props.minSize);
42
+ ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
43
+ ratioX.value = originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width));
44
+ sizeHeight.value = height + util.GAP < offsetHeight ? `${height}px` : "";
45
+ sizeWidth.value = width + util.GAP < offsetWidth ? `${width}px` : "";
46
+ };
47
+ expose({
48
+ handleScroll,
49
+ update
50
+ });
51
+ return (_ctx, _cache) => {
52
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
53
+ vue.createVNode(thumb["default"], {
54
+ move: moveX.value,
55
+ ratio: ratioX.value,
56
+ size: sizeWidth.value,
57
+ always: _ctx.always
58
+ }, null, 8, ["move", "ratio", "size", "always"]),
59
+ vue.createVNode(thumb["default"], {
60
+ move: moveY.value,
61
+ ratio: ratioY.value,
62
+ size: sizeHeight.value,
63
+ vertical: "",
64
+ always: _ctx.always
65
+ }, null, 8, ["move", "ratio", "size", "always"])
66
+ ], 64);
67
+ };
15
68
  }
16
69
  });
70
+ var Bar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "bar.vue"]]);
17
71
 
18
- exports.barProps = barProps;
72
+ exports["default"] = Bar;
19
73
  //# sourceMappingURL=bar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bar.js","sources":["../../../../../../packages/components/scrollbar/src/bar.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Bar from './bar.vue'\n\nexport const barProps = buildProps({\n always: {\n type: Boolean,\n default: true,\n },\n minSize: {\n type: Number,\n required: true,\n },\n} as const)\nexport type BarProps = ExtractPropTypes<typeof barProps>\n\nexport type BarInstance = InstanceType<typeof Bar>\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,QAAQ,GAAGA,kBAAU,CAAC;AACnC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"bar.js","sources":["../../../../../../packages/components/scrollbar/src/bar.vue"],"sourcesContent":["<template>\n <thumb :move=\"moveX\" :ratio=\"ratioX\" :size=\"sizeWidth\" :always=\"always\" />\n <thumb\n :move=\"moveY\"\n :ratio=\"ratioY\"\n :size=\"sizeHeight\"\n vertical\n :always=\"always\"\n />\n</template>\n<script lang=\"ts\" setup>\nimport { inject, ref } from 'vue'\nimport { GAP } from './util'\nimport Thumb from './thumb.vue'\nimport { barProps } from './bar'\nimport { scrollbarContextKey } from './constants'\n\nconst props = defineProps(barProps)\n\nconst scrollbar = inject(scrollbarContextKey)\n\nconst moveX = ref(0)\nconst moveY = ref(0)\nconst sizeWidth = ref('')\nconst sizeHeight = ref('')\nconst ratioY = ref(1)\nconst ratioX = ref(1)\n\nconst handleScroll = (wrap: HTMLDivElement) => {\n if (wrap) {\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n\n moveY.value = ((wrap.scrollTop * 100) / offsetHeight) * ratioY.value\n moveX.value = ((wrap.scrollLeft * 100) / offsetWidth) * ratioX.value\n }\n}\n\nconst update = () => {\n const wrap = scrollbar?.wrapElement\n if (!wrap) return\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n\n const originalHeight = offsetHeight ** 2 / wrap.scrollHeight\n const originalWidth = offsetWidth ** 2 / wrap.scrollWidth\n const height = Math.max(originalHeight, props.minSize)\n const width = Math.max(originalWidth, props.minSize)\n\n ratioY.value =\n originalHeight /\n (offsetHeight - originalHeight) /\n (height / (offsetHeight - height))\n ratioX.value =\n originalWidth /\n (offsetWidth - originalWidth) /\n (width / (offsetWidth - width))\n\n sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : ''\n sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : ''\n}\n\ndefineExpose({\n handleScroll,\n update,\n})\n</script>\n"],"names":["inject","scrollbarContextKey","ref","GAP"],"mappings":";;;;;;;;;;;;;;;;AAmBA,IAAM,MAAA,SAAA,GAAYA,WAAOC,6BAAmB,CAAA,CAAA;AAE5C,IAAM,MAAA,KAAA,GAAQC,QAAI,CAAC,CAAA,CAAA;AACnB,IAAM,MAAA,KAAA,GAAQA,QAAI,CAAC,CAAA,CAAA;AACnB,IAAM,MAAA,SAAA,GAAYA,QAAI,EAAE,CAAA,CAAA;AACxB,IAAM,MAAA,UAAA,GAAaA,QAAI,EAAE,CAAA,CAAA;AACzB,IAAM,MAAA,MAAA,GAASA,QAAI,CAAC,CAAA,CAAA;AACpB,IAAM,MAAA,MAAA,GAASA,QAAI,CAAC,CAAA,CAAA;AAEpB,IAAM,MAAA,YAAA,GAAe,CAAC,IAAyB,KAAA;AAC7C,MAAA,IAAI,IAAM,EAAA;AACR,QAAM,MAAA,YAAA,GAAe,KAAK,YAAe,GAAAC,QAAA,CAAA;AACzC,QAAM,MAAA,WAAA,GAAc,KAAK,WAAc,GAAAA,QAAA,CAAA;AAEvC,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,SAAY,GAAA,GAAA,GAAO,eAAgB,MAAO,CAAA,KAAA,CAAA;AAC/D,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,UAAa,GAAA,GAAA,GAAO,cAAe,MAAO,CAAA,KAAA,CAAA;AAAA,OACjE;AAAA,KACF,CAAA;AAEA,IAAA,MAAM,SAAS,MAAM;AACnB,MAAA,MAAM,OAAO,SAAW,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,SAAA,CAAA,WAAA,CAAA;AACxB,MAAA,IAAI,CAAC,IAAM;AACX,QAAM,OAAA;AACN,MAAM,MAAA,YAAA,OAAmB,CAAc,YAAA,GAAAA,QAAA,CAAA;AAEvC,MAAM,MAAA,WAAA,GAAA,IAAiC,CAAA,WAAA,GAAAA,QAAA,CAAI;AAC3C,MAAM,MAAA,cAAA,GAA+B,YAAA,IAAA,CAAA,GAAS,IAAA,CAAA,YAAA,CAAA;AAC9C,MAAA,MAAM,aAAS,GAAS,WAAA,IAAA,CAAA,QAAsB,WAAO,CAAA;AACrD,MAAA,MAAM,MAAQ,GAAA,IAAK,CAAI,GAAA,CAAA,cAAe,OAAa,CAAA,OAAA,CAAA,CAAA;AAEnD,MAAA,MAAA,KACE,GAAA,IAAA,CAAA,GAAA,CAAA,aACgB,EAAA,KAAA,CAAA,OAAA,CAAA,CAAA;AAElB,MAAA,MAAA,CAAO,KACL,GAAA,cAAA,IACe,YAAA,GAAA,cAAA,CAAA,UACL,IAAc,YAAA,GAAA,MAAA,CAAA,CAAA,CAAA;AAE1B,MAAA,MAAA,CAAA,qBAA4B,IAAA,WAAqB,GAAA,aAAgB,CAAA,IAAA,KAAA,IAAA,WAAA,GAAA,KAAA,CAAA,CAAA,CAAA;AACjE,MAAA,UAAU,SAAgB,MAAA,GAAAA,QAAA,GAAoB,YAAA,GAAG,SAAY,CAAA,EAAA,CAAA,GAAA,EAAA,CAAA;AAAA,MAC/D,SAAA,CAAA,KAAA,GAAA,KAAA,GAAAA,QAAA,GAAA,WAAA,GAAA,CAAA,EAAA,KAAA,CAAA,EAAA,CAAA,GAAA,EAAA,CAAA;AAEA,KAAa,CAAA;AAAA,IACX,MAAA,CAAA;AAAA,MACA,YAAA;AAAA,MACD,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;"}