beyond-webui 1.1.34 → 1.1.35

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 (527) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/alert/index.mjs +2 -2
  3. package/es/components/alert/src/alert.mjs +96 -36
  4. package/es/components/alert/src/alert.mjs.map +1 -1
  5. package/es/components/alert/src/alert2.mjs +36 -96
  6. package/es/components/alert/src/alert2.mjs.map +1 -1
  7. package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
  8. package/es/components/badge/index.mjs +2 -2
  9. package/es/components/badge/src/badge.mjs +17 -55
  10. package/es/components/badge/src/badge.mjs.map +1 -1
  11. package/es/components/badge/src/badge2.mjs +55 -17
  12. package/es/components/badge/src/badge2.mjs.map +1 -1
  13. package/es/components/breadcrumb/index.mjs +2 -2
  14. package/es/components/breadcrumb/src/breadcrumb.mjs +36 -11
  15. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  16. package/es/components/breadcrumb/src/breadcrumb2.mjs +11 -36
  17. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  18. package/es/components/button/index.mjs +1 -1
  19. package/es/components/button/src/button-group.mjs +30 -6
  20. package/es/components/button/src/button-group.mjs.map +1 -1
  21. package/es/components/button/src/button-group2.mjs +6 -30
  22. package/es/components/button/src/button-group2.mjs.map +1 -1
  23. package/es/components/calendar/src/calendar.mjs +1 -1
  24. package/es/components/calendar/src/date-table.mjs +33 -87
  25. package/es/components/calendar/src/date-table.mjs.map +1 -1
  26. package/es/components/calendar/src/date-table2.mjs +87 -33
  27. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  28. package/es/components/calendar/src/use-date-table.mjs +1 -1
  29. package/es/components/card/index.mjs +2 -2
  30. package/es/components/card/src/card.mjs +16 -35
  31. package/es/components/card/src/card.mjs.map +1 -1
  32. package/es/components/card/src/card2.mjs +35 -16
  33. package/es/components/card/src/card2.mjs.map +1 -1
  34. package/es/components/cascader/index.mjs +2 -2
  35. package/es/components/cascader/src/cascader.mjs +619 -61
  36. package/es/components/cascader/src/cascader.mjs.map +1 -1
  37. package/es/components/cascader/src/cascader2.mjs +61 -619
  38. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  39. package/es/components/cascader-panel/src/index.mjs +1 -1
  40. package/es/components/cascader-panel/src/menu.mjs +1 -1
  41. package/es/components/cascader-panel/src/node.mjs +209 -116
  42. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  43. package/es/components/cascader-panel/src/node2.mjs +116 -209
  44. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  45. package/es/components/cascader-panel/src/store.mjs +1 -1
  46. package/es/components/check-tag/index.mjs +2 -2
  47. package/es/components/check-tag/src/check-tag.mjs +30 -12
  48. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  49. package/es/components/check-tag/src/check-tag2.mjs +12 -30
  50. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  51. package/es/components/checkbox/index.mjs +2 -2
  52. package/es/components/checkbox/src/checkbox-group.mjs +72 -28
  53. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  54. package/es/components/checkbox/src/checkbox-group2.mjs +28 -72
  55. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  56. package/es/components/collection/index.mjs +1 -1
  57. package/es/components/collection/src/collection.mjs +10 -62
  58. package/es/components/collection/src/collection.mjs.map +1 -1
  59. package/es/components/collection/src/collection2.mjs +62 -10
  60. package/es/components/collection/src/collection2.mjs.map +1 -1
  61. package/es/components/descriptions/index.mjs +2 -2
  62. package/es/components/descriptions/src/description.mjs +111 -25
  63. package/es/components/descriptions/src/description.mjs.map +1 -1
  64. package/es/components/descriptions/src/description2.mjs +25 -111
  65. package/es/components/descriptions/src/description2.mjs.map +1 -1
  66. package/es/components/dialog/index.mjs +2 -2
  67. package/es/components/dialog/src/dialog-content.mjs +37 -95
  68. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  69. package/es/components/dialog/src/dialog-content2.mjs +95 -37
  70. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  71. package/es/components/dialog/src/dialog.mjs +74 -172
  72. package/es/components/dialog/src/dialog.mjs.map +1 -1
  73. package/es/components/dialog/src/dialog2.mjs +172 -74
  74. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  75. package/es/components/divider/index.mjs +2 -2
  76. package/es/components/divider/src/divider.mjs +35 -17
  77. package/es/components/divider/src/divider.mjs.map +1 -1
  78. package/es/components/divider/src/divider2.mjs +17 -35
  79. package/es/components/divider/src/divider2.mjs.map +1 -1
  80. package/es/components/drawer/src/drawer2.mjs +1 -1
  81. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  82. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  83. package/es/components/dropdown/src/dropdown.mjs +2 -2
  84. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  85. package/es/components/empty/index.mjs +2 -2
  86. package/es/components/empty/src/empty.mjs +55 -11
  87. package/es/components/empty/src/empty.mjs.map +1 -1
  88. package/es/components/empty/src/empty2.mjs +11 -55
  89. package/es/components/empty/src/empty2.mjs.map +1 -1
  90. package/es/components/form/index.mjs +2 -2
  91. package/es/components/form/src/form-item.mjs +43 -317
  92. package/es/components/form/src/form-item.mjs.map +1 -1
  93. package/es/components/form/src/form-item2.mjs +317 -43
  94. package/es/components/form/src/form-item2.mjs.map +1 -1
  95. package/es/components/icon/index.mjs +2 -2
  96. package/es/components/icon/src/icon.mjs +8 -36
  97. package/es/components/icon/src/icon.mjs.map +1 -1
  98. package/es/components/icon/src/icon2.mjs +36 -8
  99. package/es/components/icon/src/icon2.mjs.map +1 -1
  100. package/es/components/image/index.mjs +2 -2
  101. package/es/components/image/src/image.mjs +220 -62
  102. package/es/components/image/src/image.mjs.map +1 -1
  103. package/es/components/image/src/image2.mjs +62 -220
  104. package/es/components/image/src/image2.mjs.map +1 -1
  105. package/es/components/image-viewer/index.mjs +2 -2
  106. package/es/components/image-viewer/src/image-viewer.mjs +396 -39
  107. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  108. package/es/components/image-viewer/src/image-viewer2.mjs +39 -396
  109. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  110. package/es/components/index.mjs +40 -40
  111. package/es/components/menu/index.mjs +2 -2
  112. package/es/components/menu/src/menu-item.mjs +97 -14
  113. package/es/components/menu/src/menu-item.mjs.map +1 -1
  114. package/es/components/menu/src/menu-item2.mjs +14 -97
  115. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  116. package/es/components/notification/index.mjs +1 -1
  117. package/es/components/notification/src/notification.mjs +69 -147
  118. package/es/components/notification/src/notification.mjs.map +1 -1
  119. package/es/components/notification/src/notification2.mjs +147 -69
  120. package/es/components/notification/src/notification2.mjs.map +1 -1
  121. package/es/components/notification/src/notify.mjs +2 -2
  122. package/es/components/pagination/src/components/prev.mjs +58 -18
  123. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  124. package/es/components/pagination/src/components/prev2.mjs +18 -58
  125. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  126. package/es/components/pagination/src/components/sizes.mjs +22 -68
  127. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  128. package/es/components/pagination/src/components/sizes2.mjs +68 -22
  129. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  130. package/es/components/pagination/src/components/total.mjs +28 -7
  131. package/es/components/pagination/src/components/total.mjs.map +1 -1
  132. package/es/components/pagination/src/components/total2.mjs +7 -28
  133. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  134. package/es/components/pagination/src/pagination.mjs +3 -3
  135. package/es/components/popconfirm/index.mjs +2 -2
  136. package/es/components/popconfirm/src/popconfirm.mjs +47 -110
  137. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  138. package/es/components/popconfirm/src/popconfirm2.mjs +110 -47
  139. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  140. package/es/components/popover/src/popover.mjs +1 -1
  141. package/es/components/popper/index.mjs +6 -6
  142. package/es/components/popper/src/arrow.mjs +37 -8
  143. package/es/components/popper/src/arrow.mjs.map +1 -1
  144. package/es/components/popper/src/arrow2.mjs +8 -37
  145. package/es/components/popper/src/arrow2.mjs.map +1 -1
  146. package/es/components/popper/src/content.mjs +137 -94
  147. package/es/components/popper/src/content.mjs.map +1 -1
  148. package/es/components/popper/src/content2.mjs +94 -137
  149. package/es/components/popper/src/content2.mjs.map +1 -1
  150. package/es/components/popper/src/popper.mjs +25 -32
  151. package/es/components/popper/src/popper.mjs.map +1 -1
  152. package/es/components/popper/src/popper2.mjs +32 -25
  153. package/es/components/popper/src/popper2.mjs.map +1 -1
  154. package/es/components/progress/index.mjs +2 -2
  155. package/es/components/progress/src/progress.mjs +57 -202
  156. package/es/components/progress/src/progress.mjs.map +1 -1
  157. package/es/components/progress/src/progress2.mjs +202 -57
  158. package/es/components/progress/src/progress2.mjs.map +1 -1
  159. package/es/components/radio/index.mjs +4 -4
  160. package/es/components/radio/src/radio-button.mjs +64 -9
  161. package/es/components/radio/src/radio-button.mjs.map +1 -1
  162. package/es/components/radio/src/radio-button2.mjs +9 -64
  163. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  164. package/es/components/radio/src/radio-group.mjs +36 -68
  165. package/es/components/radio/src/radio-group.mjs.map +1 -1
  166. package/es/components/radio/src/radio-group2.mjs +68 -36
  167. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  168. package/es/components/roving-focus-group/index.mjs +3 -3
  169. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  170. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  171. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  172. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  173. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  174. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  175. package/es/components/scrollbar/index.mjs +3 -3
  176. package/es/components/scrollbar/src/bar2.mjs +1 -1
  177. package/es/components/scrollbar/src/scrollbar.mjs +46 -174
  178. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  179. package/es/components/scrollbar/src/scrollbar2.mjs +174 -46
  180. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  181. package/es/components/scrollbar/src/thumb.mjs +11 -130
  182. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  183. package/es/components/scrollbar/src/thumb2.mjs +130 -11
  184. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  185. package/es/components/select/src/select.mjs +2 -2
  186. package/es/components/select-v2/src/defaults.mjs +1 -1
  187. package/es/components/skeleton/index.mjs +2 -2
  188. package/es/components/skeleton/src/skeleton.mjs +22 -49
  189. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  190. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  191. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  192. package/es/components/slider/index.mjs +2 -2
  193. package/es/components/slider/src/slider.mjs +91 -233
  194. package/es/components/slider/src/slider.mjs.map +1 -1
  195. package/es/components/slider/src/slider2.mjs +233 -91
  196. package/es/components/slider/src/slider2.mjs.map +1 -1
  197. package/es/components/switch/index.mjs +2 -2
  198. package/es/components/switch/src/switch.mjs +88 -241
  199. package/es/components/switch/src/switch.mjs.map +1 -1
  200. package/es/components/switch/src/switch2.mjs +241 -88
  201. package/es/components/switch/src/switch2.mjs.map +1 -1
  202. package/es/components/tabs/index.mjs +3 -3
  203. package/es/components/tabs/src/tab-bar.mjs +7 -75
  204. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  205. package/es/components/tabs/src/tab-bar2.mjs +75 -7
  206. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  207. package/es/components/tabs/src/tab-nav.mjs +1 -1
  208. package/es/components/tabs/src/tab-pane.mjs +13 -72
  209. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  210. package/es/components/tabs/src/tab-pane2.mjs +72 -13
  211. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  212. package/es/components/tag/index.mjs +2 -2
  213. package/es/components/tag/src/tag.mjs +94 -33
  214. package/es/components/tag/src/tag.mjs.map +1 -1
  215. package/es/components/tag/src/tag2.mjs +33 -94
  216. package/es/components/tag/src/tag2.mjs.map +1 -1
  217. package/es/components/text/index.mjs +2 -2
  218. package/es/components/text/src/text.mjs +22 -35
  219. package/es/components/text/src/text.mjs.map +1 -1
  220. package/es/components/text/src/text2.mjs +35 -22
  221. package/es/components/text/src/text2.mjs.map +1 -1
  222. package/es/components/tooltip/index.mjs +3 -3
  223. package/es/components/tooltip/src/content.mjs +177 -31
  224. package/es/components/tooltip/src/content.mjs.map +1 -1
  225. package/es/components/tooltip/src/content2.mjs +31 -177
  226. package/es/components/tooltip/src/content2.mjs.map +1 -1
  227. package/es/components/tooltip/src/tooltip.mjs +169 -31
  228. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  229. package/es/components/tooltip/src/tooltip2.mjs +31 -169
  230. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  231. package/es/components/tooltip-v2/index.mjs +2 -2
  232. package/es/components/tooltip-v2/src/root.mjs +17 -80
  233. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  234. package/es/components/tooltip-v2/src/root2.mjs +80 -17
  235. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  236. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  237. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  238. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  239. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  240. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  241. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  242. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  243. package/es/components/transfer/src/transfer-panel.mjs +128 -19
  244. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  245. package/es/components/transfer/src/transfer-panel2.mjs +19 -128
  246. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  247. package/es/components/transfer/src/transfer2.mjs +1 -1
  248. package/es/components/upload/index.mjs +3 -3
  249. package/es/components/upload/src/upload-content.mjs +173 -33
  250. package/es/components/upload/src/upload-content.mjs.map +1 -1
  251. package/es/components/upload/src/upload-content2.mjs +33 -173
  252. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  253. package/es/components/upload/src/upload-dragger.mjs +72 -11
  254. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  255. package/es/components/upload/src/upload-dragger2.mjs +11 -72
  256. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  257. package/es/components/upload/src/upload-list.mjs +26 -173
  258. package/es/components/upload/src/upload-list.mjs.map +1 -1
  259. package/es/components/upload/src/upload-list2.mjs +173 -26
  260. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  261. package/es/components/upload/src/upload.mjs +2 -2
  262. package/es/index.mjs +40 -40
  263. package/lib/components/alert/index.js +2 -2
  264. package/lib/components/alert/src/alert.js +95 -37
  265. package/lib/components/alert/src/alert.js.map +1 -1
  266. package/lib/components/alert/src/alert2.js +37 -95
  267. package/lib/components/alert/src/alert2.js.map +1 -1
  268. package/lib/components/autocomplete/src/autocomplete2.js +1 -1
  269. package/lib/components/badge/index.js +2 -2
  270. package/lib/components/badge/src/badge.js +17 -55
  271. package/lib/components/badge/src/badge.js.map +1 -1
  272. package/lib/components/badge/src/badge2.js +55 -17
  273. package/lib/components/badge/src/badge2.js.map +1 -1
  274. package/lib/components/breadcrumb/index.js +2 -2
  275. package/lib/components/breadcrumb/src/breadcrumb.js +36 -11
  276. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  277. package/lib/components/breadcrumb/src/breadcrumb2.js +11 -36
  278. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  279. package/lib/components/button/index.js +1 -1
  280. package/lib/components/button/src/button-group.js +30 -6
  281. package/lib/components/button/src/button-group.js.map +1 -1
  282. package/lib/components/button/src/button-group2.js +6 -30
  283. package/lib/components/button/src/button-group2.js.map +1 -1
  284. package/lib/components/calendar/src/calendar.js +1 -1
  285. package/lib/components/calendar/src/date-table.js +37 -87
  286. package/lib/components/calendar/src/date-table.js.map +1 -1
  287. package/lib/components/calendar/src/date-table2.js +87 -37
  288. package/lib/components/calendar/src/date-table2.js.map +1 -1
  289. package/lib/components/calendar/src/use-date-table.js +1 -1
  290. package/lib/components/card/index.js +2 -2
  291. package/lib/components/card/src/card.js +16 -35
  292. package/lib/components/card/src/card.js.map +1 -1
  293. package/lib/components/card/src/card2.js +35 -16
  294. package/lib/components/card/src/card2.js.map +1 -1
  295. package/lib/components/cascader/index.js +2 -2
  296. package/lib/components/cascader/src/cascader.js +619 -62
  297. package/lib/components/cascader/src/cascader.js.map +1 -1
  298. package/lib/components/cascader/src/cascader2.js +62 -619
  299. package/lib/components/cascader/src/cascader2.js.map +1 -1
  300. package/lib/components/cascader-panel/src/index.js +1 -1
  301. package/lib/components/cascader-panel/src/menu.js +1 -1
  302. package/lib/components/cascader-panel/src/node.js +209 -116
  303. package/lib/components/cascader-panel/src/node.js.map +1 -1
  304. package/lib/components/cascader-panel/src/node2.js +116 -209
  305. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  306. package/lib/components/cascader-panel/src/store.js +1 -1
  307. package/lib/components/check-tag/index.js +2 -2
  308. package/lib/components/check-tag/src/check-tag.js +30 -13
  309. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  310. package/lib/components/check-tag/src/check-tag2.js +13 -30
  311. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  312. package/lib/components/checkbox/index.js +2 -2
  313. package/lib/components/checkbox/src/checkbox-group.js +72 -29
  314. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  315. package/lib/components/checkbox/src/checkbox-group2.js +29 -72
  316. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  317. package/lib/components/collection/index.js +1 -1
  318. package/lib/components/collection/src/collection.js +9 -62
  319. package/lib/components/collection/src/collection.js.map +1 -1
  320. package/lib/components/collection/src/collection2.js +62 -9
  321. package/lib/components/collection/src/collection2.js.map +1 -1
  322. package/lib/components/descriptions/index.js +2 -2
  323. package/lib/components/descriptions/src/description.js +111 -25
  324. package/lib/components/descriptions/src/description.js.map +1 -1
  325. package/lib/components/descriptions/src/description2.js +25 -111
  326. package/lib/components/descriptions/src/description2.js.map +1 -1
  327. package/lib/components/dialog/index.js +2 -2
  328. package/lib/components/dialog/src/dialog-content.js +37 -94
  329. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  330. package/lib/components/dialog/src/dialog-content2.js +94 -37
  331. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  332. package/lib/components/dialog/src/dialog.js +74 -171
  333. package/lib/components/dialog/src/dialog.js.map +1 -1
  334. package/lib/components/dialog/src/dialog2.js +171 -74
  335. package/lib/components/dialog/src/dialog2.js.map +1 -1
  336. package/lib/components/divider/index.js +2 -2
  337. package/lib/components/divider/src/divider.js +35 -17
  338. package/lib/components/divider/src/divider.js.map +1 -1
  339. package/lib/components/divider/src/divider2.js +17 -35
  340. package/lib/components/divider/src/divider2.js.map +1 -1
  341. package/lib/components/drawer/src/drawer2.js +1 -1
  342. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  343. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  344. package/lib/components/dropdown/src/dropdown.js +2 -2
  345. package/lib/components/dropdown/src/dropdown2.js +1 -1
  346. package/lib/components/empty/index.js +2 -2
  347. package/lib/components/empty/src/empty.js +55 -11
  348. package/lib/components/empty/src/empty.js.map +1 -1
  349. package/lib/components/empty/src/empty2.js +11 -55
  350. package/lib/components/empty/src/empty2.js.map +1 -1
  351. package/lib/components/form/index.js +2 -2
  352. package/lib/components/form/src/form-item.js +44 -321
  353. package/lib/components/form/src/form-item.js.map +1 -1
  354. package/lib/components/form/src/form-item2.js +321 -44
  355. package/lib/components/form/src/form-item2.js.map +1 -1
  356. package/lib/components/icon/index.js +2 -2
  357. package/lib/components/icon/src/icon.js +8 -36
  358. package/lib/components/icon/src/icon.js.map +1 -1
  359. package/lib/components/icon/src/icon2.js +36 -8
  360. package/lib/components/icon/src/icon2.js.map +1 -1
  361. package/lib/components/image/index.js +2 -2
  362. package/lib/components/image/src/image.js +219 -62
  363. package/lib/components/image/src/image.js.map +1 -1
  364. package/lib/components/image/src/image2.js +62 -219
  365. package/lib/components/image/src/image2.js.map +1 -1
  366. package/lib/components/image-viewer/index.js +2 -2
  367. package/lib/components/image-viewer/src/image-viewer.js +396 -40
  368. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  369. package/lib/components/image-viewer/src/image-viewer2.js +40 -396
  370. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  371. package/lib/components/index.js +40 -40
  372. package/lib/components/menu/index.js +2 -2
  373. package/lib/components/menu/src/menu-item.js +97 -15
  374. package/lib/components/menu/src/menu-item.js.map +1 -1
  375. package/lib/components/menu/src/menu-item2.js +15 -97
  376. package/lib/components/menu/src/menu-item2.js.map +1 -1
  377. package/lib/components/notification/index.js +1 -1
  378. package/lib/components/notification/src/notification.js +70 -146
  379. package/lib/components/notification/src/notification.js.map +1 -1
  380. package/lib/components/notification/src/notification2.js +146 -70
  381. package/lib/components/notification/src/notification2.js.map +1 -1
  382. package/lib/components/notification/src/notify.js +2 -2
  383. package/lib/components/pagination/src/components/prev.js +58 -19
  384. package/lib/components/pagination/src/components/prev.js.map +1 -1
  385. package/lib/components/pagination/src/components/prev2.js +19 -58
  386. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  387. package/lib/components/pagination/src/components/sizes.js +22 -68
  388. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  389. package/lib/components/pagination/src/components/sizes2.js +68 -22
  390. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  391. package/lib/components/pagination/src/components/total.js +28 -7
  392. package/lib/components/pagination/src/components/total.js.map +1 -1
  393. package/lib/components/pagination/src/components/total2.js +7 -28
  394. package/lib/components/pagination/src/components/total2.js.map +1 -1
  395. package/lib/components/pagination/src/pagination.js +3 -3
  396. package/lib/components/popconfirm/index.js +2 -2
  397. package/lib/components/popconfirm/src/popconfirm.js +48 -110
  398. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  399. package/lib/components/popconfirm/src/popconfirm2.js +110 -48
  400. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  401. package/lib/components/popover/src/popover.js +1 -1
  402. package/lib/components/popper/index.js +6 -6
  403. package/lib/components/popper/src/arrow.js +37 -9
  404. package/lib/components/popper/src/arrow.js.map +1 -1
  405. package/lib/components/popper/src/arrow2.js +9 -37
  406. package/lib/components/popper/src/arrow2.js.map +1 -1
  407. package/lib/components/popper/src/content.js +137 -99
  408. package/lib/components/popper/src/content.js.map +1 -1
  409. package/lib/components/popper/src/content2.js +99 -137
  410. package/lib/components/popper/src/content2.js.map +1 -1
  411. package/lib/components/popper/src/popper.js +28 -32
  412. package/lib/components/popper/src/popper.js.map +1 -1
  413. package/lib/components/popper/src/popper2.js +32 -28
  414. package/lib/components/popper/src/popper2.js.map +1 -1
  415. package/lib/components/progress/index.js +2 -2
  416. package/lib/components/progress/src/progress.js +57 -202
  417. package/lib/components/progress/src/progress.js.map +1 -1
  418. package/lib/components/progress/src/progress2.js +202 -57
  419. package/lib/components/progress/src/progress2.js.map +1 -1
  420. package/lib/components/radio/index.js +4 -4
  421. package/lib/components/radio/src/radio-button.js +64 -9
  422. package/lib/components/radio/src/radio-button.js.map +1 -1
  423. package/lib/components/radio/src/radio-button2.js +9 -64
  424. package/lib/components/radio/src/radio-button2.js.map +1 -1
  425. package/lib/components/radio/src/radio-group.js +37 -68
  426. package/lib/components/radio/src/radio-group.js.map +1 -1
  427. package/lib/components/radio/src/radio-group2.js +68 -37
  428. package/lib/components/radio/src/radio-group2.js.map +1 -1
  429. package/lib/components/roving-focus-group/index.js +2 -2
  430. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  431. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  432. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  433. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  434. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  435. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  436. package/lib/components/scrollbar/index.js +3 -3
  437. package/lib/components/scrollbar/src/bar2.js +1 -1
  438. package/lib/components/scrollbar/src/scrollbar.js +47 -174
  439. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  440. package/lib/components/scrollbar/src/scrollbar2.js +174 -47
  441. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  442. package/lib/components/scrollbar/src/thumb.js +11 -130
  443. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  444. package/lib/components/scrollbar/src/thumb2.js +130 -11
  445. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  446. package/lib/components/select/src/select.js +2 -2
  447. package/lib/components/select-v2/src/defaults.js +1 -1
  448. package/lib/components/skeleton/index.js +2 -2
  449. package/lib/components/skeleton/src/skeleton.js +22 -49
  450. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  451. package/lib/components/skeleton/src/skeleton2.js +49 -22
  452. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  453. package/lib/components/slider/index.js +2 -2
  454. package/lib/components/slider/src/slider.js +92 -233
  455. package/lib/components/slider/src/slider.js.map +1 -1
  456. package/lib/components/slider/src/slider2.js +233 -92
  457. package/lib/components/slider/src/slider2.js.map +1 -1
  458. package/lib/components/switch/index.js +2 -2
  459. package/lib/components/switch/src/switch.js +88 -240
  460. package/lib/components/switch/src/switch.js.map +1 -1
  461. package/lib/components/switch/src/switch2.js +240 -88
  462. package/lib/components/switch/src/switch2.js.map +1 -1
  463. package/lib/components/tabs/index.js +3 -3
  464. package/lib/components/tabs/src/tab-bar.js +7 -75
  465. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  466. package/lib/components/tabs/src/tab-bar2.js +75 -7
  467. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  468. package/lib/components/tabs/src/tab-nav.js +1 -1
  469. package/lib/components/tabs/src/tab-pane.js +13 -72
  470. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  471. package/lib/components/tabs/src/tab-pane2.js +72 -13
  472. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  473. package/lib/components/tag/index.js +2 -2
  474. package/lib/components/tag/src/tag.js +94 -34
  475. package/lib/components/tag/src/tag.js.map +1 -1
  476. package/lib/components/tag/src/tag2.js +34 -94
  477. package/lib/components/tag/src/tag2.js.map +1 -1
  478. package/lib/components/text/index.js +2 -2
  479. package/lib/components/text/src/text.js +22 -35
  480. package/lib/components/text/src/text.js.map +1 -1
  481. package/lib/components/text/src/text2.js +35 -22
  482. package/lib/components/text/src/text2.js.map +1 -1
  483. package/lib/components/tooltip/index.js +3 -3
  484. package/lib/components/tooltip/src/content.js +177 -31
  485. package/lib/components/tooltip/src/content.js.map +1 -1
  486. package/lib/components/tooltip/src/content2.js +31 -177
  487. package/lib/components/tooltip/src/content2.js.map +1 -1
  488. package/lib/components/tooltip/src/tooltip.js +167 -33
  489. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  490. package/lib/components/tooltip/src/tooltip2.js +33 -167
  491. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  492. package/lib/components/tooltip-v2/index.js +2 -2
  493. package/lib/components/tooltip-v2/src/root.js +17 -80
  494. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  495. package/lib/components/tooltip-v2/src/root2.js +80 -17
  496. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  497. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  498. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  499. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  500. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  501. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  502. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  503. package/lib/components/transfer/src/composables/use-check.js +1 -1
  504. package/lib/components/transfer/src/transfer-panel.js +128 -21
  505. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  506. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  507. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  508. package/lib/components/transfer/src/transfer2.js +1 -1
  509. package/lib/components/upload/index.js +3 -3
  510. package/lib/components/upload/src/upload-content.js +172 -32
  511. package/lib/components/upload/src/upload-content.js.map +1 -1
  512. package/lib/components/upload/src/upload-content2.js +32 -172
  513. package/lib/components/upload/src/upload-content2.js.map +1 -1
  514. package/lib/components/upload/src/upload-dragger.js +72 -12
  515. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  516. package/lib/components/upload/src/upload-dragger2.js +12 -72
  517. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  518. package/lib/components/upload/src/upload-list.js +27 -173
  519. package/lib/components/upload/src/upload-list.js.map +1 -1
  520. package/lib/components/upload/src/upload-list2.js +173 -27
  521. package/lib/components/upload/src/upload-list2.js.map +1 -1
  522. package/lib/components/upload/src/upload.js +2 -2
  523. package/lib/index.js +40 -40
  524. package/package.json +1 -1
  525. package/theme-chalk/el-select.css +1 -1
  526. package/theme-chalk/index.css +1 -1
  527. package/theme-chalk/src/select.scss +4 -6
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.mjs","sources":["../../../../../../packages/components/radio/src/radio-group.vue"],"sourcesContent":["<template>\n <div\n :id=\"groupId\"\n ref=\"radioGroupRef\"\n :class=\"ns.b('group')\"\n role=\"radiogroup\"\n :aria-label=\"!isLabeledByFormItem ? label || 'radio-group' : undefined\"\n :aria-labelledby=\"isLabeledByFormItem ? formItem!.labelId : undefined\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n provide,\n reactive,\n ref,\n toRefs,\n watch,\n} from 'vue'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useId, useNamespace } from '@element-plus/hooks'\nimport { debugWarn } from '@element-plus/utils'\nimport { radioGroupEmits, radioGroupProps } from './radio-group'\nimport { radioGroupKey } from './constants'\n\nimport type { RadioGroupProps } from './radio-group'\n\ndefineOptions({\n name: 'ElRadioGroup',\n})\n\nconst props = defineProps(radioGroupProps)\nconst emit = defineEmits(radioGroupEmits)\n\nconst ns = useNamespace('radio')\nconst radioId = useId()\nconst radioGroupRef = ref<HTMLDivElement>()\nconst { formItem } = useFormItem()\nconst { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst changeEvent = (value: RadioGroupProps['modelValue']) => {\n emit(UPDATE_MODEL_EVENT, value)\n nextTick(() => emit('change', value))\n}\n\nonMounted(() => {\n const radios =\n radioGroupRef.value!.querySelectorAll<HTMLInputElement>('[type=radio]')\n const firstLabel = radios[0]\n if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {\n firstLabel.tabIndex = 0\n }\n})\n\nconst name = computed(() => {\n return props.name || radioId.value\n})\n\nprovide(\n radioGroupKey,\n reactive({\n ...toRefs(props),\n changeEvent,\n name,\n })\n)\n\nwatch(\n () => props.modelValue,\n () => {\n if (props.validateEvent) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;mCAiCc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,UAAU,KAAM,EAAA,CAAA;AACtB,IAAA,MAAM,gBAAgB,GAAoB,EAAA,CAAA;AAC1C,IAAM,MAAA,EAAE,aAAa,WAAY,EAAA,CAAA;AACjC,IAAA,MAAM,EAAE,OAAA,EAAS,OAAS,EAAA,mBAAA,EAAA,GAAwB,mBAAmB,KAAO,EAAA;AAAA,MAC1E,eAAiB,EAAA,QAAA;AAAA,KAClB,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAc,CAAC,KAAyC,KAAA;AAC5D,MAAA,IAAA,CAAK,oBAAoB,KAAK,CAAA,CAAA;AAC9B,MAAA,QAAA,CAAS,MAAM,IAAA,CAAK,QAAU,EAAA,KAAK,CAAC,CAAA,CAAA;AAAA,KACtC,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAA,MAAM,MACJ,GAAA,aAAA,CAAc,KAAO,CAAA,gBAAA,CAAmC,cAAc,CAAA,CAAA;AACxE,MAAA,MAAM,aAAa,MAAO,CAAA,CAAA,CAAA,CAAA;AAC1B,MAAI,IAAA,CAAC,KAAM,CAAA,IAAA,CAAK,MAAM,CAAA,CAAE,IAAK,CAAA,CAAC,KAAU,KAAA,KAAA,CAAM,OAAO,CAAA,IAAK,UAAY,EAAA;AACpE,QAAA,UAAA,CAAW,QAAW,GAAA,CAAA,CAAA;AAAA,OACxB;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,IAAA,GAAO,SAAS,MAAM;AAC1B,MAAO,OAAA,KAAA,CAAM,QAAQ,OAAQ,CAAA,KAAA,CAAA;AAAA,KAC9B,CAAA,CAAA;AAED,IAAA,OAAA,CACE,eACA,QAAS,CAAA;AAAA,MACP,GAAG,OAAO,KAAK,CAAA;AAAA,MACf,WAAA;AAAA,MACA,IAAA;AAAA,KACD,CACH,CAAA,CAAA;AAEA,IACE,KAAA,CAAA,MAAM,KAAM,CAAA,UAAA,EACZ,MAAM;AACJ,MAAA,IAAI,MAAM,aAAe,EAAA;AACvB,QAAU,QAAA,IAAA,IAAA,GAAS,SAAU,QAAO,CAAQ,QAAA,CAAA,QAAU,OAAI,CAAA,CAAA,GAAA,KAAA,SAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AAAA,OAC5D;AAAA,KAEJ,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio-group.mjs","sources":["../../../../../../packages/components/radio/src/radio-group.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { radioEmits } from './radio'\nimport type { ExtractPropTypes } from '@vue/runtime-core'\nimport type RadioGroup from './radio-group.vue'\n\nexport const radioGroupProps = buildProps({\n /**\n * @description native `id` attribute\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description the size of radio buttons or bordered radios\n */\n size: useSizeProp,\n /**\n * @description whether the nesting radios are disabled\n */\n disabled: Boolean,\n /**\n * @description binding value\n */\n modelValue: {\n type: [String, Number, Boolean],\n default: '',\n },\n /**\n * @description border and background color when button is active\n */\n fill: {\n type: String,\n default: '',\n },\n /**\n * @description same as `aria-label` in RadioGroup\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description font color when button is active\n */\n textColor: {\n type: String,\n default: '',\n },\n /**\n * @description native `name` attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>\n\nexport const radioGroupEmits = radioEmits\nexport type RadioGroupEmits = typeof radioGroupEmits\nexport type RadioGroupInstance = InstanceType<typeof RadioGroup>\n"],"names":[],"mappings":";;;;;;AAGY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;;;;"}
@@ -1,42 +1,74 @@
1
- import '../../../utils/index.mjs';
1
+ import { defineComponent, ref, nextTick, onMounted, computed, provide, reactive, toRefs, watch, openBlock, createElementBlock, unref, normalizeClass, renderSlot } from 'vue';
2
+ import '../../form/index.mjs';
3
+ import '../../../constants/index.mjs';
2
4
  import '../../../hooks/index.mjs';
3
- import { radioEmits } from './radio.mjs';
4
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
- import { useSizeProp } from '../../../hooks/use-size/index.mjs';
5
+ import '../../../utils/index.mjs';
6
+ import { radioGroupProps, radioGroupEmits } from './radio-group.mjs';
7
+ import { radioGroupKey } from './constants.mjs';
8
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
10
+ import { useId } from '../../../hooks/use-id/index.mjs';
11
+ import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
12
+ import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
13
+ import { debugWarn } from '../../../utils/error.mjs';
6
14
 
7
- const radioGroupProps = buildProps({
8
- id: {
9
- type: String,
10
- default: void 0
11
- },
12
- size: useSizeProp,
13
- disabled: Boolean,
14
- modelValue: {
15
- type: [String, Number, Boolean],
16
- default: ""
17
- },
18
- fill: {
19
- type: String,
20
- default: ""
21
- },
22
- label: {
23
- type: String,
24
- default: void 0
25
- },
26
- textColor: {
27
- type: String,
28
- default: ""
29
- },
30
- name: {
31
- type: String,
32
- default: void 0
33
- },
34
- validateEvent: {
35
- type: Boolean,
36
- default: true
15
+ const _hoisted_1 = ["id", "aria-label", "aria-labelledby"];
16
+ const __default__ = defineComponent({
17
+ name: "ElRadioGroup"
18
+ });
19
+ const _sfc_main = /* @__PURE__ */ defineComponent({
20
+ ...__default__,
21
+ props: radioGroupProps,
22
+ emits: radioGroupEmits,
23
+ setup(__props, { emit }) {
24
+ const props = __props;
25
+ const ns = useNamespace("radio");
26
+ const radioId = useId();
27
+ const radioGroupRef = ref();
28
+ const { formItem } = useFormItem();
29
+ const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {
30
+ formItemContext: formItem
31
+ });
32
+ const changeEvent = (value) => {
33
+ emit(UPDATE_MODEL_EVENT, value);
34
+ nextTick(() => emit("change", value));
35
+ };
36
+ onMounted(() => {
37
+ const radios = radioGroupRef.value.querySelectorAll("[type=radio]");
38
+ const firstLabel = radios[0];
39
+ if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {
40
+ firstLabel.tabIndex = 0;
41
+ }
42
+ });
43
+ const name = computed(() => {
44
+ return props.name || radioId.value;
45
+ });
46
+ provide(radioGroupKey, reactive({
47
+ ...toRefs(props),
48
+ changeEvent,
49
+ name
50
+ }));
51
+ watch(() => props.modelValue, () => {
52
+ if (props.validateEvent) {
53
+ formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
54
+ }
55
+ });
56
+ return (_ctx, _cache) => {
57
+ return openBlock(), createElementBlock("div", {
58
+ id: unref(groupId),
59
+ ref_key: "radioGroupRef",
60
+ ref: radioGroupRef,
61
+ class: normalizeClass(unref(ns).b("group")),
62
+ role: "radiogroup",
63
+ "aria-label": !unref(isLabeledByFormItem) ? _ctx.label || "radio-group" : void 0,
64
+ "aria-labelledby": unref(isLabeledByFormItem) ? unref(formItem).labelId : void 0
65
+ }, [
66
+ renderSlot(_ctx.$slots, "default")
67
+ ], 10, _hoisted_1);
68
+ };
37
69
  }
38
70
  });
39
- const radioGroupEmits = radioEmits;
71
+ var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\radio\\src\\radio-group.vue"]]);
40
72
 
41
- export { radioGroupEmits, radioGroupProps };
73
+ export { RadioGroup as default };
42
74
  //# sourceMappingURL=radio-group2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group2.mjs","sources":["../../../../../../packages/components/radio/src/radio-group.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { useSizeProp } from '@element-plus/hooks'\nimport { radioEmits } from './radio'\nimport type { ExtractPropTypes } from '@vue/runtime-core'\nimport type RadioGroup from './radio-group.vue'\n\nexport const radioGroupProps = buildProps({\n /**\n * @description native `id` attribute\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description the size of radio buttons or bordered radios\n */\n size: useSizeProp,\n /**\n * @description whether the nesting radios are disabled\n */\n disabled: Boolean,\n /**\n * @description binding value\n */\n modelValue: {\n type: [String, Number, Boolean],\n default: '',\n },\n /**\n * @description border and background color when button is active\n */\n fill: {\n type: String,\n default: '',\n },\n /**\n * @description same as `aria-label` in RadioGroup\n */\n label: {\n type: String,\n default: undefined,\n },\n /**\n * @description font color when button is active\n */\n textColor: {\n type: String,\n default: '',\n },\n /**\n * @description native `name` attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>\n\nexport const radioGroupEmits = radioEmits\nexport type RadioGroupEmits = typeof radioGroupEmits\nexport type RadioGroupInstance = InstanceType<typeof RadioGroup>\n"],"names":[],"mappings":";;;;;;AAGY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;;;;"}
1
+ {"version":3,"file":"radio-group2.mjs","sources":["../../../../../../packages/components/radio/src/radio-group.vue"],"sourcesContent":["<template>\n <div\n :id=\"groupId\"\n ref=\"radioGroupRef\"\n :class=\"ns.b('group')\"\n role=\"radiogroup\"\n :aria-label=\"!isLabeledByFormItem ? label || 'radio-group' : undefined\"\n :aria-labelledby=\"isLabeledByFormItem ? formItem!.labelId : undefined\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n provide,\n reactive,\n ref,\n toRefs,\n watch,\n} from 'vue'\nimport { useFormItem, useFormItemInputId } from '@element-plus/components/form'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useId, useNamespace } from '@element-plus/hooks'\nimport { debugWarn } from '@element-plus/utils'\nimport { radioGroupEmits, radioGroupProps } from './radio-group'\nimport { radioGroupKey } from './constants'\n\nimport type { RadioGroupProps } from './radio-group'\n\ndefineOptions({\n name: 'ElRadioGroup',\n})\n\nconst props = defineProps(radioGroupProps)\nconst emit = defineEmits(radioGroupEmits)\n\nconst ns = useNamespace('radio')\nconst radioId = useId()\nconst radioGroupRef = ref<HTMLDivElement>()\nconst { formItem } = useFormItem()\nconst { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst changeEvent = (value: RadioGroupProps['modelValue']) => {\n emit(UPDATE_MODEL_EVENT, value)\n nextTick(() => emit('change', value))\n}\n\nonMounted(() => {\n const radios =\n radioGroupRef.value!.querySelectorAll<HTMLInputElement>('[type=radio]')\n const firstLabel = radios[0]\n if (!Array.from(radios).some((radio) => radio.checked) && firstLabel) {\n firstLabel.tabIndex = 0\n }\n})\n\nconst name = computed(() => {\n return props.name || radioId.value\n})\n\nprovide(\n radioGroupKey,\n reactive({\n ...toRefs(props),\n changeEvent,\n name,\n })\n)\n\nwatch(\n () => props.modelValue,\n () => {\n if (props.validateEvent) {\n formItem?.validate('change').catch((err) => debugWarn(err))\n }\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;mCAiCc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAA,MAAM,UAAU,KAAM,EAAA,CAAA;AACtB,IAAA,MAAM,gBAAgB,GAAoB,EAAA,CAAA;AAC1C,IAAM,MAAA,EAAE,aAAa,WAAY,EAAA,CAAA;AACjC,IAAA,MAAM,EAAE,OAAA,EAAS,OAAS,EAAA,mBAAA,EAAA,GAAwB,mBAAmB,KAAO,EAAA;AAAA,MAC1E,eAAiB,EAAA,QAAA;AAAA,KAClB,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAc,CAAC,KAAyC,KAAA;AAC5D,MAAA,IAAA,CAAK,oBAAoB,KAAK,CAAA,CAAA;AAC9B,MAAA,QAAA,CAAS,MAAM,IAAA,CAAK,QAAU,EAAA,KAAK,CAAC,CAAA,CAAA;AAAA,KACtC,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAA,MAAM,MACJ,GAAA,aAAA,CAAc,KAAO,CAAA,gBAAA,CAAmC,cAAc,CAAA,CAAA;AACxE,MAAA,MAAM,aAAa,MAAO,CAAA,CAAA,CAAA,CAAA;AAC1B,MAAI,IAAA,CAAC,KAAM,CAAA,IAAA,CAAK,MAAM,CAAA,CAAE,IAAK,CAAA,CAAC,KAAU,KAAA,KAAA,CAAM,OAAO,CAAA,IAAK,UAAY,EAAA;AACpE,QAAA,UAAA,CAAW,QAAW,GAAA,CAAA,CAAA;AAAA,OACxB;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,IAAA,GAAO,SAAS,MAAM;AAC1B,MAAO,OAAA,KAAA,CAAM,QAAQ,OAAQ,CAAA,KAAA,CAAA;AAAA,KAC9B,CAAA,CAAA;AAED,IAAA,OAAA,CACE,eACA,QAAS,CAAA;AAAA,MACP,GAAG,OAAO,KAAK,CAAA;AAAA,MACf,WAAA;AAAA,MACA,IAAA;AAAA,KACD,CACH,CAAA,CAAA;AAEA,IACE,KAAA,CAAA,MAAM,KAAM,CAAA,UAAA,EACZ,MAAM;AACJ,MAAA,IAAI,MAAM,aAAe,EAAA;AACvB,QAAU,QAAA,IAAA,IAAA,GAAS,SAAU,QAAO,CAAQ,QAAA,CAAA,QAAU,OAAI,CAAA,CAAA,GAAA,KAAA,SAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AAAA,OAC5D;AAAA,KAEJ,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
- import ElRovingFocusGroup from './src/roving-focus-group.mjs';
2
- export { default as ElRovingFocusGroup, default } from './src/roving-focus-group.mjs';
1
+ import ElRovingFocusGroup from './src/roving-focus-group2.mjs';
2
+ export { default as ElRovingFocusGroup, default } from './src/roving-focus-group2.mjs';
3
3
  export { default as ElRovingFocusItem } from './src/roving-focus-item.mjs';
4
4
  export { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './src/tokens.mjs';
5
5
  export { focusFirst, getFocusIntent, reorderArray } from './src/utils.mjs';
6
- export { ROVING_FOCUS_COLLECTION_INJECTION_KEY, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY } from './src/roving-focus-group2.mjs';
6
+ export { ROVING_FOCUS_COLLECTION_INJECTION_KEY, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY } from './src/roving-focus-group.mjs';
7
7
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, inject, computed, unref, provide, readonly, toRef, watch, renderSlot } from 'vue';
2
2
  import { useEventListener } from '@vueuse/core';
3
3
  import '../../../utils/index.mjs';
4
- import { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group2.mjs';
4
+ import { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';
5
5
  import { ROVING_FOCUS_GROUP_INJECTION_KEY } from './tokens.mjs';
6
6
  import { focusFirst } from './utils.mjs';
7
7
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,31 +1,33 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';
2
- import ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';
3
- import { ElCollection } from './roving-focus-group2.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import '../../collection/index.mjs';
3
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
+ import { createCollectionWithScope } from '../../collection/src/collection2.mjs';
5
5
 
6
- const _sfc_main = defineComponent({
7
- name: "ElRovingFocusGroup",
8
- components: {
9
- ElFocusGroupCollection: ElCollection,
10
- ElRovingFocusGroupImpl
11
- }
6
+ const rovingFocusGroupProps = buildProps({
7
+ style: { type: definePropType([String, Array, Object]) },
8
+ currentTabId: {
9
+ type: definePropType(String)
10
+ },
11
+ defaultCurrentTabId: String,
12
+ loop: Boolean,
13
+ dir: {
14
+ type: String,
15
+ values: ["ltr", "rtl"],
16
+ default: "ltr"
17
+ },
18
+ orientation: {
19
+ type: definePropType(String)
20
+ },
21
+ onBlur: Function,
22
+ onFocus: Function,
23
+ onMousedown: Function
12
24
  });
13
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
- const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
15
- const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
16
- return openBlock(), createBlock(_component_el_focus_group_collection, null, {
17
- default: withCtx(() => [
18
- createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
- default: withCtx(() => [
20
- renderSlot(_ctx.$slots, "default")
21
- ]),
22
- _: 3
23
- }, 16)
24
- ]),
25
- _: 3
26
- });
27
- }
28
- var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\roving-focus-group\\src\\roving-focus-group.vue"]]);
25
+ const {
26
+ ElCollection,
27
+ ElCollectionItem,
28
+ COLLECTION_INJECTION_KEY,
29
+ COLLECTION_ITEM_INJECTION_KEY
30
+ } = createCollectionWithScope("RovingFocusGroup");
29
31
 
30
- export { ElRovingFocusGroup as default };
32
+ export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
31
33
  //# sourceMappingURL=roving-focus-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group.mjs","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":["ElFocusGroupCollection","_createBlock","_withCtx","_createVNode","_renderSlot"],"mappings":";;;;;AAaA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVA,YAAA;AAAA,IACA,sBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;sBAlBCC,WAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CAH1B,MAE6B;AAAA,MAF7BC,WAAA,CAE6B,yEAFO,IAAM,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAAA,OAAA,EAAAD,OAAA,CACxC,MAAQ;AAAA,UAARE,UAAQ,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA,CAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"roving-focus-group.mjs","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":[],"mappings":";;;;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,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,EAAE,cAAc,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,GAAG,yBAAyB,CAAC,kBAAkB;;;;"}
@@ -1,33 +1,31 @@
1
- import '../../../utils/index.mjs';
2
- import '../../collection/index.mjs';
3
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
- import { createCollectionWithScope } from '../../collection/src/collection.mjs';
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';
2
+ import ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';
3
+ import { ElCollection } from './roving-focus-group.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
5
 
6
- const rovingFocusGroupProps = buildProps({
7
- style: { type: definePropType([String, Array, Object]) },
8
- currentTabId: {
9
- type: definePropType(String)
10
- },
11
- defaultCurrentTabId: String,
12
- loop: Boolean,
13
- dir: {
14
- type: String,
15
- values: ["ltr", "rtl"],
16
- default: "ltr"
17
- },
18
- orientation: {
19
- type: definePropType(String)
20
- },
21
- onBlur: Function,
22
- onFocus: Function,
23
- onMousedown: Function
6
+ const _sfc_main = defineComponent({
7
+ name: "ElRovingFocusGroup",
8
+ components: {
9
+ ElFocusGroupCollection: ElCollection,
10
+ ElRovingFocusGroupImpl
11
+ }
24
12
  });
25
- const {
26
- ElCollection,
27
- ElCollectionItem,
28
- COLLECTION_INJECTION_KEY,
29
- COLLECTION_ITEM_INJECTION_KEY
30
- } = createCollectionWithScope("RovingFocusGroup");
13
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
+ const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
15
+ const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
16
+ return openBlock(), createBlock(_component_el_focus_group_collection, null, {
17
+ default: withCtx(() => [
18
+ createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
+ default: withCtx(() => [
20
+ renderSlot(_ctx.$slots, "default")
21
+ ]),
22
+ _: 3
23
+ }, 16)
24
+ ]),
25
+ _: 3
26
+ });
27
+ }
28
+ var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\roving-focus-group\\src\\roving-focus-group.vue"]]);
31
29
 
32
- export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
30
+ export { ElRovingFocusGroup as default };
33
31
  //# sourceMappingURL=roving-focus-group2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group2.mjs","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":[],"mappings":";;;;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,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,EAAE,cAAc,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,GAAG,yBAAyB,CAAC,kBAAkB;;;;"}
1
+ {"version":3,"file":"roving-focus-group2.mjs","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":["ElFocusGroupCollection","_createBlock","_withCtx","_createVNode","_renderSlot"],"mappings":";;;;;AAaA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVA,YAAA;AAAA,IACA,sBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;sBAlBCC,WAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CAH1B,MAE6B;AAAA,MAF7BC,WAAA,CAE6B,yEAFO,IAAM,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAAA,OAAA,EAAAD,OAAA,CACxC,MAAQ;AAAA,UAARE,UAAQ,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA,CAAA;;;;;;;;;;;"}
@@ -2,7 +2,7 @@ import { defineComponent, inject, ref, unref, nextTick, computed, provide, resol
2
2
  import '../../../hooks/index.mjs';
3
3
  import '../../../utils/index.mjs';
4
4
  import '../../../constants/index.mjs';
5
- import { ElCollectionItem, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group2.mjs';
5
+ import { ElCollectionItem, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';
6
6
  import { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './tokens.mjs';
7
7
  import { getFocusIntent, reorderArray, focusFirst } from './utils.mjs';
8
8
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,8 +1,8 @@
1
1
  import '../../utils/index.mjs';
2
- import Scrollbar from './src/scrollbar.mjs';
2
+ import Scrollbar from './src/scrollbar2.mjs';
3
3
  export { BAR_MAP, GAP, renderThumbStyle } from './src/util.mjs';
4
- export { scrollbarEmits, scrollbarProps } from './src/scrollbar2.mjs';
5
- export { thumbProps } from './src/thumb2.mjs';
4
+ export { scrollbarEmits, scrollbarProps } from './src/scrollbar.mjs';
5
+ export { thumbProps } from './src/thumb.mjs';
6
6
  export { scrollbarContextKey } from './src/constants.mjs';
7
7
  import { withInstall } from '../../utils/vue/install.mjs';
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, openBlock, createElementBlock, Fragment, createVNode } from 'vue';
2
2
  import { GAP } from './util.mjs';
3
- import Thumb from './thumb.mjs';
3
+ import Thumb from './thumb2.mjs';
4
4
  import { barProps } from './bar.mjs';
5
5
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
6
 
@@ -1,181 +1,53 @@
1
- import { defineComponent, ref, computed, watch, nextTick, provide, reactive, onMounted, onUpdated, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, renderSlot, createCommentVNode } from 'vue';
2
- import { useResizeObserver, useEventListener } from '@vueuse/core';
3
1
  import '../../../utils/index.mjs';
4
- import '../../../hooks/index.mjs';
5
- import { GAP } from './util.mjs';
6
- import Bar from './bar2.mjs';
7
- import { scrollbarContextKey } from './constants.mjs';
8
- import { scrollbarProps, scrollbarEmits } from './scrollbar2.mjs';
9
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
10
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
11
- import { addUnit } from '../../../utils/dom/style.mjs';
12
- import { isObject } from '@vue/shared';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
13
3
  import { isNumber } from '../../../utils/types.mjs';
14
- import { debugWarn } from '../../../utils/error.mjs';
15
4
 
16
- const COMPONENT_NAME = "ElScrollbar";
17
- const __default__ = defineComponent({
18
- name: COMPONENT_NAME
19
- });
20
- const _sfc_main = /* @__PURE__ */ defineComponent({
21
- ...__default__,
22
- props: scrollbarProps,
23
- emits: scrollbarEmits,
24
- setup(__props, { expose, emit }) {
25
- const props = __props;
26
- const ns = useNamespace("scrollbar");
27
- let stopResizeObserver = void 0;
28
- let stopResizeListener = void 0;
29
- const scrollbarRef = ref();
30
- const wrapRef = ref();
31
- const resizeRef = ref();
32
- const sizeWidth = ref("0");
33
- const sizeHeight = ref("0");
34
- const barRef = ref();
35
- const ratioY = ref(1);
36
- const ratioX = ref(1);
37
- const style = computed(() => {
38
- const style2 = {};
39
- if (props.height)
40
- style2.height = addUnit(props.height);
41
- if (props.maxHeight)
42
- style2.maxHeight = addUnit(props.maxHeight);
43
- return [props.wrapStyle, style2];
44
- });
45
- const wrapKls = computed(() => {
46
- return [
47
- props.wrapClass,
48
- ns.e("wrap"),
49
- { [ns.em("wrap", "hidden-default")]: !props.native }
50
- ];
51
- });
52
- const resizeKls = computed(() => {
53
- return [ns.e("view"), props.viewClass];
54
- });
55
- const handleScroll = () => {
56
- var _a;
57
- if (wrapRef.value) {
58
- (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
59
- emit("scroll", {
60
- scrollTop: wrapRef.value.scrollTop,
61
- scrollLeft: wrapRef.value.scrollLeft
62
- });
63
- }
64
- };
65
- function scrollTo(arg1, arg2) {
66
- if (isObject(arg1)) {
67
- wrapRef.value.scrollTo(arg1);
68
- } else if (isNumber(arg1) && isNumber(arg2)) {
69
- wrapRef.value.scrollTo(arg1, arg2);
70
- }
71
- }
72
- const setScrollTop = (value) => {
73
- if (!isNumber(value)) {
74
- debugWarn(COMPONENT_NAME, "value must be a number");
75
- return;
76
- }
77
- wrapRef.value.scrollTop = value;
78
- };
79
- const setScrollLeft = (value) => {
80
- if (!isNumber(value)) {
81
- debugWarn(COMPONENT_NAME, "value must be a number");
82
- return;
83
- }
84
- wrapRef.value.scrollLeft = value;
85
- };
86
- const update = () => {
87
- if (!wrapRef.value)
88
- return;
89
- const offsetHeight = wrapRef.value.offsetHeight - GAP;
90
- const offsetWidth = wrapRef.value.offsetWidth - GAP;
91
- const originalHeight = offsetHeight ** 2 / wrapRef.value.scrollHeight;
92
- const originalWidth = offsetWidth ** 2 / wrapRef.value.scrollWidth;
93
- const height = Math.max(originalHeight, props.minSize);
94
- const width = Math.max(originalWidth, props.minSize);
95
- ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
96
- ratioX.value = originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width));
97
- sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : "";
98
- sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : "";
99
- };
100
- watch(() => props.noresize, (noresize) => {
101
- if (noresize) {
102
- stopResizeObserver == null ? void 0 : stopResizeObserver();
103
- stopResizeListener == null ? void 0 : stopResizeListener();
104
- } else {
105
- ;
106
- ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
107
- stopResizeListener = useEventListener("resize", update);
108
- }
109
- }, { immediate: true });
110
- watch(() => [props.maxHeight, props.height], () => {
111
- if (!props.native)
112
- nextTick(() => {
113
- var _a;
114
- update();
115
- if (wrapRef.value) {
116
- (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
117
- }
118
- });
119
- });
120
- provide(scrollbarContextKey, reactive({
121
- scrollbarElement: scrollbarRef,
122
- wrapElement: wrapRef
123
- }));
124
- onMounted(() => {
125
- if (!props.native)
126
- nextTick(() => {
127
- update();
128
- });
129
- });
130
- onUpdated(() => update());
131
- expose({
132
- wrapRef,
133
- update,
134
- scrollTo,
135
- setScrollTop,
136
- setScrollLeft,
137
- handleScroll
138
- });
139
- return (_ctx, _cache) => {
140
- return openBlock(), createElementBlock("div", {
141
- ref_key: "scrollbarRef",
142
- ref: scrollbarRef,
143
- class: normalizeClass(unref(ns).b())
144
- }, [
145
- createElementVNode("div", {
146
- ref_key: "wrapRef",
147
- ref: wrapRef,
148
- class: normalizeClass(unref(wrapKls)),
149
- style: normalizeStyle(unref(style)),
150
- onScroll: handleScroll
151
- }, [
152
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
153
- ref_key: "resizeRef",
154
- ref: resizeRef,
155
- class: normalizeClass(unref(resizeKls)),
156
- style: normalizeStyle(_ctx.viewStyle)
157
- }, {
158
- default: withCtx(() => [
159
- renderSlot(_ctx.$slots, "default")
160
- ]),
161
- _: 3
162
- }, 8, ["class", "style"]))
163
- ], 38),
164
- !_ctx.native ? (openBlock(), createBlock(Bar, {
165
- key: 0,
166
- ref_key: "barRef",
167
- ref: barRef,
168
- height: sizeHeight.value,
169
- width: sizeWidth.value,
170
- always: _ctx.always,
171
- "ratio-x": ratioX.value,
172
- "ratio-y": ratioY.value
173
- }, null, 8, ["height", "width", "always", "ratio-x", "ratio-y"])) : createCommentVNode("v-if", true)
174
- ], 2);
175
- };
5
+ const scrollbarProps = buildProps({
6
+ height: {
7
+ type: [String, Number],
8
+ default: ""
9
+ },
10
+ maxHeight: {
11
+ type: [String, Number],
12
+ default: ""
13
+ },
14
+ native: {
15
+ type: Boolean,
16
+ default: false
17
+ },
18
+ wrapStyle: {
19
+ type: definePropType([String, Object, Array]),
20
+ default: ""
21
+ },
22
+ wrapClass: {
23
+ type: [String, Array],
24
+ default: ""
25
+ },
26
+ viewClass: {
27
+ type: [String, Array],
28
+ default: ""
29
+ },
30
+ viewStyle: {
31
+ type: [String, Array, Object],
32
+ default: ""
33
+ },
34
+ noresize: Boolean,
35
+ tag: {
36
+ type: String,
37
+ default: "div"
38
+ },
39
+ always: Boolean,
40
+ minSize: {
41
+ type: Number,
42
+ default: 20
176
43
  }
177
44
  });
178
- var Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\scrollbar\\src\\scrollbar.vue"]]);
45
+ const scrollbarEmits = {
46
+ scroll: ({
47
+ scrollTop,
48
+ scrollLeft
49
+ }) => [scrollTop, scrollLeft].every(isNumber)
50
+ };
179
51
 
180
- export { Scrollbar as default };
52
+ export { scrollbarEmits, scrollbarProps };
181
53
  //# sourceMappingURL=scrollbar.mjs.map