beyond-webui 1.1.36 → 1.1.38

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 (451) hide show
  1. package/dist/index.full.js +2 -2
  2. package/dist/index.full.min.js +2 -2
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +2 -2
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +2 -2
  7. package/es/components/affix/index.mjs +2 -2
  8. package/es/components/affix/src/affix.mjs +26 -117
  9. package/es/components/affix/src/affix.mjs.map +1 -1
  10. package/es/components/affix/src/affix2.mjs +117 -26
  11. package/es/components/affix/src/affix2.mjs.map +1 -1
  12. package/es/components/alert/index.mjs +2 -2
  13. package/es/components/alert/src/alert.mjs +96 -36
  14. package/es/components/alert/src/alert.mjs.map +1 -1
  15. package/es/components/alert/src/alert2.mjs +36 -96
  16. package/es/components/alert/src/alert2.mjs.map +1 -1
  17. package/es/components/avatar/index.mjs +2 -2
  18. package/es/components/avatar/src/avatar.mjs +32 -67
  19. package/es/components/avatar/src/avatar.mjs.map +1 -1
  20. package/es/components/avatar/src/avatar2.mjs +67 -32
  21. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  22. package/es/components/button/index.mjs +3 -3
  23. package/es/components/button/src/button-group.mjs +6 -30
  24. package/es/components/button/src/button-group.mjs.map +1 -1
  25. package/es/components/button/src/button-group2.mjs +30 -6
  26. package/es/components/button/src/button-group2.mjs.map +1 -1
  27. package/es/components/button/src/button.mjs +76 -57
  28. package/es/components/button/src/button.mjs.map +1 -1
  29. package/es/components/button/src/button2.mjs +57 -76
  30. package/es/components/button/src/button2.mjs.map +1 -1
  31. package/es/components/calendar/src/calendar.mjs +1 -1
  32. package/es/components/calendar/src/date-table.mjs +87 -33
  33. package/es/components/calendar/src/date-table.mjs.map +1 -1
  34. package/es/components/calendar/src/date-table2.mjs +33 -87
  35. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  36. package/es/components/calendar/src/use-date-table.mjs +1 -1
  37. package/es/components/card/index.mjs +2 -2
  38. package/es/components/card/src/card.mjs +35 -16
  39. package/es/components/card/src/card.mjs.map +1 -1
  40. package/es/components/card/src/card2.mjs +16 -35
  41. package/es/components/card/src/card2.mjs.map +1 -1
  42. package/es/components/carousel/index.mjs +2 -2
  43. package/es/components/carousel/src/carousel-item.mjs +8 -63
  44. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  45. package/es/components/carousel/src/carousel-item2.mjs +63 -8
  46. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  47. package/es/components/cascader-panel/src/index.mjs +1 -1
  48. package/es/components/cascader-panel/src/menu.mjs +1 -1
  49. package/es/components/cascader-panel/src/node.mjs +116 -209
  50. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  51. package/es/components/cascader-panel/src/node2.mjs +209 -116
  52. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  53. package/es/components/cascader-panel/src/store.mjs +1 -1
  54. package/es/components/check-tag/index.mjs +2 -2
  55. package/es/components/check-tag/src/check-tag.mjs +30 -12
  56. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  57. package/es/components/check-tag/src/check-tag2.mjs +12 -30
  58. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  59. package/es/components/checkbox/index.mjs +2 -2
  60. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  61. package/es/components/checkbox/src/checkbox.mjs +117 -49
  62. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  63. package/es/components/checkbox/src/checkbox2.mjs +49 -117
  64. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  65. package/es/components/collection/index.mjs +1 -1
  66. package/es/components/collection/src/collection.mjs +62 -10
  67. package/es/components/collection/src/collection.mjs.map +1 -1
  68. package/es/components/collection/src/collection2.mjs +10 -62
  69. package/es/components/collection/src/collection2.mjs.map +1 -1
  70. package/es/components/color-picker/index.mjs +2 -2
  71. package/es/components/color-picker/src/color-picker.mjs +38 -321
  72. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  73. package/es/components/color-picker/src/color-picker2.mjs +321 -38
  74. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  75. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  76. package/es/components/descriptions/src/description2.mjs +1 -1
  77. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  78. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  79. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  80. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  81. package/es/components/divider/index.mjs +2 -2
  82. package/es/components/divider/src/divider.mjs +35 -17
  83. package/es/components/divider/src/divider.mjs.map +1 -1
  84. package/es/components/divider/src/divider2.mjs +17 -35
  85. package/es/components/divider/src/divider2.mjs.map +1 -1
  86. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  87. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  88. package/es/components/dropdown/src/dropdown.mjs +1 -1
  89. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  90. package/es/components/form/index.mjs +4 -4
  91. package/es/components/form/src/form-item.mjs +317 -43
  92. package/es/components/form/src/form-item.mjs.map +1 -1
  93. package/es/components/form/src/form-item2.mjs +43 -317
  94. package/es/components/form/src/form-item2.mjs.map +1 -1
  95. package/es/components/form/src/form.mjs +55 -152
  96. package/es/components/form/src/form.mjs.map +1 -1
  97. package/es/components/form/src/form2.mjs +152 -55
  98. package/es/components/form/src/form2.mjs.map +1 -1
  99. package/es/components/icon/index.mjs +2 -2
  100. package/es/components/icon/src/icon.mjs +36 -8
  101. package/es/components/icon/src/icon.mjs.map +1 -1
  102. package/es/components/icon/src/icon2.mjs +8 -36
  103. package/es/components/icon/src/icon2.mjs.map +1 -1
  104. package/es/components/image-viewer/index.mjs +2 -2
  105. package/es/components/image-viewer/src/image-viewer.mjs +396 -39
  106. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  107. package/es/components/image-viewer/src/image-viewer2.mjs +39 -396
  108. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  109. package/es/components/index.mjs +28 -28
  110. package/es/components/input-number/index.mjs +2 -2
  111. package/es/components/input-number/src/input-number.mjs +311 -58
  112. package/es/components/input-number/src/input-number.mjs.map +1 -1
  113. package/es/components/input-number/src/input-number2.mjs +58 -311
  114. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  115. package/es/components/page-header/index.mjs +2 -2
  116. package/es/components/page-header/src/page-header.mjs +103 -17
  117. package/es/components/page-header/src/page-header.mjs.map +1 -1
  118. package/es/components/page-header/src/page-header2.mjs +17 -103
  119. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  120. package/es/components/pagination/src/components/next.mjs +19 -58
  121. package/es/components/pagination/src/components/next.mjs.map +1 -1
  122. package/es/components/pagination/src/components/next2.mjs +58 -19
  123. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  124. package/es/components/pagination/src/components/pager.mjs +17 -214
  125. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  126. package/es/components/pagination/src/components/pager2.mjs +214 -17
  127. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  128. package/es/components/pagination/src/components/total.mjs +7 -28
  129. package/es/components/pagination/src/components/total.mjs.map +1 -1
  130. package/es/components/pagination/src/components/total2.mjs +28 -7
  131. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  132. package/es/components/pagination/src/pagination.mjs +3 -3
  133. package/es/components/popconfirm/index.mjs +2 -2
  134. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  135. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  136. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  137. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  138. package/es/components/popover/index.mjs +2 -2
  139. package/es/components/popover/src/popover.mjs +111 -66
  140. package/es/components/popover/src/popover.mjs.map +1 -1
  141. package/es/components/popover/src/popover2.mjs +66 -111
  142. package/es/components/popover/src/popover2.mjs.map +1 -1
  143. package/es/components/popper/index.mjs +2 -2
  144. package/es/components/popper/src/popper.mjs +32 -25
  145. package/es/components/popper/src/popper.mjs.map +1 -1
  146. package/es/components/popper/src/popper2.mjs +25 -32
  147. package/es/components/popper/src/popper2.mjs.map +1 -1
  148. package/es/components/radio/index.mjs +2 -2
  149. package/es/components/radio/src/radio-button.mjs +64 -9
  150. package/es/components/radio/src/radio-button.mjs.map +1 -1
  151. package/es/components/radio/src/radio-button2.mjs +9 -64
  152. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  153. package/es/components/result/index.mjs +2 -2
  154. package/es/components/result/src/result.mjs +29 -63
  155. package/es/components/result/src/result.mjs.map +1 -1
  156. package/es/components/result/src/result2.mjs +63 -29
  157. package/es/components/result/src/result2.mjs.map +1 -1
  158. package/es/components/roving-focus-group/index.mjs +3 -3
  159. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  160. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  161. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  162. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  163. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  164. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  165. package/es/components/row/index.mjs +2 -2
  166. package/es/components/row/src/row.mjs +30 -45
  167. package/es/components/row/src/row.mjs.map +1 -1
  168. package/es/components/row/src/row2.mjs +45 -30
  169. package/es/components/row/src/row2.mjs.map +1 -1
  170. package/es/components/scrollbar/src/thumb.mjs +1 -1
  171. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  172. package/es/components/skeleton/index.mjs +4 -4
  173. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  174. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  175. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  176. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  177. package/es/components/skeleton/src/skeleton.mjs +49 -22
  178. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  179. package/es/components/skeleton/src/skeleton2.mjs +22 -49
  180. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  181. package/es/components/slider/index.mjs +2 -2
  182. package/es/components/slider/src/button.mjs +21 -93
  183. package/es/components/slider/src/button.mjs.map +1 -1
  184. package/es/components/slider/src/button2.mjs +93 -21
  185. package/es/components/slider/src/button2.mjs.map +1 -1
  186. package/es/components/slider/src/slider.mjs +233 -91
  187. package/es/components/slider/src/slider.mjs.map +1 -1
  188. package/es/components/slider/src/slider2.mjs +91 -233
  189. package/es/components/slider/src/slider2.mjs.map +1 -1
  190. package/es/components/steps/index.mjs +2 -2
  191. package/es/components/steps/src/item.mjs +188 -19
  192. package/es/components/steps/src/item.mjs.map +1 -1
  193. package/es/components/steps/src/item2.mjs +19 -188
  194. package/es/components/steps/src/item2.mjs.map +1 -1
  195. package/es/components/table/src/table-header/event-helper.mjs +1 -1
  196. package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
  197. package/es/components/tabs/index.mjs +1 -1
  198. package/es/components/tabs/src/tab-bar.mjs +75 -7
  199. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  200. package/es/components/tabs/src/tab-bar2.mjs +7 -75
  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/tooltip/src/tooltip.mjs +1 -1
  204. package/es/components/tooltip-v2/index.mjs +3 -3
  205. package/es/components/tooltip-v2/src/root.mjs +17 -80
  206. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  207. package/es/components/tooltip-v2/src/root2.mjs +80 -17
  208. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  209. package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
  210. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  211. package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
  212. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  213. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  214. package/es/components/transfer/src/transfer-panel.mjs +128 -19
  215. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  216. package/es/components/transfer/src/transfer-panel2.mjs +19 -128
  217. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  218. package/es/components/transfer/src/transfer2.mjs +1 -1
  219. package/es/components/upload/index.mjs +2 -2
  220. package/es/components/upload/src/upload-content.mjs +1 -1
  221. package/es/components/upload/src/upload-content2.mjs +1 -1
  222. package/es/components/upload/src/upload-list.mjs +1 -1
  223. package/es/components/upload/src/upload.mjs +105 -119
  224. package/es/components/upload/src/upload.mjs.map +1 -1
  225. package/es/components/upload/src/upload2.mjs +119 -105
  226. package/es/components/upload/src/upload2.mjs.map +1 -1
  227. package/es/components/upload/src/use-handlers.mjs +1 -1
  228. package/es/index.mjs +28 -28
  229. package/lib/components/affix/index.js +2 -2
  230. package/lib/components/affix/src/affix.js +27 -117
  231. package/lib/components/affix/src/affix.js.map +1 -1
  232. package/lib/components/affix/src/affix2.js +117 -27
  233. package/lib/components/affix/src/affix2.js.map +1 -1
  234. package/lib/components/alert/index.js +2 -2
  235. package/lib/components/alert/src/alert.js +95 -37
  236. package/lib/components/alert/src/alert.js.map +1 -1
  237. package/lib/components/alert/src/alert2.js +37 -95
  238. package/lib/components/alert/src/alert2.js.map +1 -1
  239. package/lib/components/avatar/index.js +2 -2
  240. package/lib/components/avatar/src/avatar.js +33 -67
  241. package/lib/components/avatar/src/avatar.js.map +1 -1
  242. package/lib/components/avatar/src/avatar2.js +67 -33
  243. package/lib/components/avatar/src/avatar2.js.map +1 -1
  244. package/lib/components/button/index.js +3 -3
  245. package/lib/components/button/src/button-group.js +6 -30
  246. package/lib/components/button/src/button-group.js.map +1 -1
  247. package/lib/components/button/src/button-group2.js +30 -6
  248. package/lib/components/button/src/button-group2.js.map +1 -1
  249. package/lib/components/button/src/button.js +76 -60
  250. package/lib/components/button/src/button.js.map +1 -1
  251. package/lib/components/button/src/button2.js +60 -76
  252. package/lib/components/button/src/button2.js.map +1 -1
  253. package/lib/components/calendar/src/calendar.js +1 -1
  254. package/lib/components/calendar/src/date-table.js +87 -37
  255. package/lib/components/calendar/src/date-table.js.map +1 -1
  256. package/lib/components/calendar/src/date-table2.js +37 -87
  257. package/lib/components/calendar/src/date-table2.js.map +1 -1
  258. package/lib/components/calendar/src/use-date-table.js +1 -1
  259. package/lib/components/card/index.js +2 -2
  260. package/lib/components/card/src/card.js +35 -16
  261. package/lib/components/card/src/card.js.map +1 -1
  262. package/lib/components/card/src/card2.js +16 -35
  263. package/lib/components/card/src/card2.js.map +1 -1
  264. package/lib/components/carousel/index.js +2 -2
  265. package/lib/components/carousel/src/carousel-item.js +8 -63
  266. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  267. package/lib/components/carousel/src/carousel-item2.js +63 -8
  268. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  269. package/lib/components/cascader-panel/src/index.js +1 -1
  270. package/lib/components/cascader-panel/src/menu.js +1 -1
  271. package/lib/components/cascader-panel/src/node.js +116 -209
  272. package/lib/components/cascader-panel/src/node.js.map +1 -1
  273. package/lib/components/cascader-panel/src/node2.js +209 -116
  274. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  275. package/lib/components/cascader-panel/src/store.js +1 -1
  276. package/lib/components/check-tag/index.js +2 -2
  277. package/lib/components/check-tag/src/check-tag.js +30 -13
  278. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  279. package/lib/components/check-tag/src/check-tag2.js +13 -30
  280. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  281. package/lib/components/checkbox/index.js +2 -2
  282. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  283. package/lib/components/checkbox/src/checkbox.js +117 -50
  284. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  285. package/lib/components/checkbox/src/checkbox2.js +50 -117
  286. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  287. package/lib/components/collection/index.js +1 -1
  288. package/lib/components/collection/src/collection.js +62 -9
  289. package/lib/components/collection/src/collection.js.map +1 -1
  290. package/lib/components/collection/src/collection2.js +9 -62
  291. package/lib/components/collection/src/collection2.js.map +1 -1
  292. package/lib/components/color-picker/index.js +2 -2
  293. package/lib/components/color-picker/src/color-picker.js +38 -319
  294. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  295. package/lib/components/color-picker/src/color-picker2.js +319 -38
  296. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  297. package/lib/components/color-picker/src/components/predefine.js +1 -1
  298. package/lib/components/descriptions/src/description2.js +1 -1
  299. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  300. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  301. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  302. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  303. package/lib/components/divider/index.js +2 -2
  304. package/lib/components/divider/src/divider.js +35 -17
  305. package/lib/components/divider/src/divider.js.map +1 -1
  306. package/lib/components/divider/src/divider2.js +17 -35
  307. package/lib/components/divider/src/divider2.js.map +1 -1
  308. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  309. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  310. package/lib/components/dropdown/src/dropdown.js +1 -1
  311. package/lib/components/dropdown/src/dropdown2.js +1 -1
  312. package/lib/components/form/index.js +4 -4
  313. package/lib/components/form/src/form-item.js +321 -44
  314. package/lib/components/form/src/form-item.js.map +1 -1
  315. package/lib/components/form/src/form-item2.js +44 -321
  316. package/lib/components/form/src/form-item2.js.map +1 -1
  317. package/lib/components/form/src/form.js +55 -151
  318. package/lib/components/form/src/form.js.map +1 -1
  319. package/lib/components/form/src/form2.js +151 -55
  320. package/lib/components/form/src/form2.js.map +1 -1
  321. package/lib/components/icon/index.js +2 -2
  322. package/lib/components/icon/src/icon.js +36 -8
  323. package/lib/components/icon/src/icon.js.map +1 -1
  324. package/lib/components/icon/src/icon2.js +8 -36
  325. package/lib/components/icon/src/icon2.js.map +1 -1
  326. package/lib/components/image-viewer/index.js +2 -2
  327. package/lib/components/image-viewer/src/image-viewer.js +396 -40
  328. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  329. package/lib/components/image-viewer/src/image-viewer2.js +40 -396
  330. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  331. package/lib/components/index.js +28 -28
  332. package/lib/components/input-number/index.js +2 -2
  333. package/lib/components/input-number/src/input-number.js +309 -57
  334. package/lib/components/input-number/src/input-number.js.map +1 -1
  335. package/lib/components/input-number/src/input-number2.js +57 -309
  336. package/lib/components/input-number/src/input-number2.js.map +1 -1
  337. package/lib/components/page-header/index.js +2 -2
  338. package/lib/components/page-header/src/page-header.js +103 -18
  339. package/lib/components/page-header/src/page-header.js.map +1 -1
  340. package/lib/components/page-header/src/page-header2.js +18 -103
  341. package/lib/components/page-header/src/page-header2.js.map +1 -1
  342. package/lib/components/pagination/src/components/next.js +19 -58
  343. package/lib/components/pagination/src/components/next.js.map +1 -1
  344. package/lib/components/pagination/src/components/next2.js +58 -19
  345. package/lib/components/pagination/src/components/next2.js.map +1 -1
  346. package/lib/components/pagination/src/components/pager.js +17 -214
  347. package/lib/components/pagination/src/components/pager.js.map +1 -1
  348. package/lib/components/pagination/src/components/pager2.js +214 -17
  349. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  350. package/lib/components/pagination/src/components/total.js +7 -28
  351. package/lib/components/pagination/src/components/total.js.map +1 -1
  352. package/lib/components/pagination/src/components/total2.js +28 -7
  353. package/lib/components/pagination/src/components/total2.js.map +1 -1
  354. package/lib/components/pagination/src/pagination.js +3 -3
  355. package/lib/components/popconfirm/index.js +2 -2
  356. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  357. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  358. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  359. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  360. package/lib/components/popover/index.js +2 -2
  361. package/lib/components/popover/src/popover.js +111 -67
  362. package/lib/components/popover/src/popover.js.map +1 -1
  363. package/lib/components/popover/src/popover2.js +67 -111
  364. package/lib/components/popover/src/popover2.js.map +1 -1
  365. package/lib/components/popper/index.js +2 -2
  366. package/lib/components/popper/src/popper.js +32 -28
  367. package/lib/components/popper/src/popper.js.map +1 -1
  368. package/lib/components/popper/src/popper2.js +28 -32
  369. package/lib/components/popper/src/popper2.js.map +1 -1
  370. package/lib/components/radio/index.js +2 -2
  371. package/lib/components/radio/src/radio-button.js +64 -9
  372. package/lib/components/radio/src/radio-button.js.map +1 -1
  373. package/lib/components/radio/src/radio-button2.js +9 -64
  374. package/lib/components/radio/src/radio-button2.js.map +1 -1
  375. package/lib/components/result/index.js +2 -2
  376. package/lib/components/result/src/result.js +31 -63
  377. package/lib/components/result/src/result.js.map +1 -1
  378. package/lib/components/result/src/result2.js +63 -31
  379. package/lib/components/result/src/result2.js.map +1 -1
  380. package/lib/components/roving-focus-group/index.js +2 -2
  381. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  382. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  383. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  384. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  385. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  386. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  387. package/lib/components/row/index.js +2 -2
  388. package/lib/components/row/src/row.js +32 -45
  389. package/lib/components/row/src/row.js.map +1 -1
  390. package/lib/components/row/src/row2.js +45 -32
  391. package/lib/components/row/src/row2.js.map +1 -1
  392. package/lib/components/scrollbar/src/thumb.js +1 -1
  393. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  394. package/lib/components/skeleton/index.js +4 -4
  395. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  396. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  397. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  398. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  399. package/lib/components/skeleton/src/skeleton.js +49 -22
  400. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  401. package/lib/components/skeleton/src/skeleton2.js +22 -49
  402. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  403. package/lib/components/slider/index.js +2 -2
  404. package/lib/components/slider/src/button.js +22 -93
  405. package/lib/components/slider/src/button.js.map +1 -1
  406. package/lib/components/slider/src/button2.js +93 -22
  407. package/lib/components/slider/src/button2.js.map +1 -1
  408. package/lib/components/slider/src/slider.js +233 -92
  409. package/lib/components/slider/src/slider.js.map +1 -1
  410. package/lib/components/slider/src/slider2.js +92 -233
  411. package/lib/components/slider/src/slider2.js.map +1 -1
  412. package/lib/components/steps/index.js +2 -2
  413. package/lib/components/steps/src/item.js +188 -19
  414. package/lib/components/steps/src/item.js.map +1 -1
  415. package/lib/components/steps/src/item2.js +19 -188
  416. package/lib/components/steps/src/item2.js.map +1 -1
  417. package/lib/components/table/src/table-header/event-helper.js +1 -1
  418. package/lib/components/table/src/table-header/event-helper.js.map +1 -1
  419. package/lib/components/tabs/index.js +1 -1
  420. package/lib/components/tabs/src/tab-bar.js +75 -7
  421. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  422. package/lib/components/tabs/src/tab-bar2.js +7 -75
  423. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  424. package/lib/components/tabs/src/tab-nav.js +1 -1
  425. package/lib/components/tooltip/src/tooltip.js +1 -1
  426. package/lib/components/tooltip-v2/index.js +3 -3
  427. package/lib/components/tooltip-v2/src/root.js +17 -80
  428. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  429. package/lib/components/tooltip-v2/src/root2.js +80 -17
  430. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  431. package/lib/components/tooltip-v2/src/tooltip.js +73 -20
  432. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  433. package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
  434. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  435. package/lib/components/transfer/src/composables/use-check.js +1 -1
  436. package/lib/components/transfer/src/transfer-panel.js +128 -21
  437. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  438. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  439. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  440. package/lib/components/transfer/src/transfer2.js +1 -1
  441. package/lib/components/upload/index.js +2 -2
  442. package/lib/components/upload/src/upload-content.js +1 -1
  443. package/lib/components/upload/src/upload-content2.js +1 -1
  444. package/lib/components/upload/src/upload-list.js +1 -1
  445. package/lib/components/upload/src/upload.js +108 -119
  446. package/lib/components/upload/src/upload.js.map +1 -1
  447. package/lib/components/upload/src/upload2.js +119 -108
  448. package/lib/components/upload/src/upload2.js.map +1 -1
  449. package/lib/components/upload/src/use-handlers.js +1 -1
  450. package/lib/index.js +28 -28
  451. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"popover2.mjs","sources":["../../../../../../packages/components/popover/src/popover.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n v-bind=\"$attrs\"\n :trigger=\"trigger\"\n :placement=\"placement\"\n :disabled=\"disabled\"\n :visible=\"visible\"\n :transition=\"transition\"\n :popper-options=\"popperOptions\"\n :tabindex=\"tabindex\"\n :content=\"content\"\n :offset=\"offset\"\n :show-after=\"showAfter\"\n :hide-after=\"hideAfter\"\n :auto-close=\"autoClose\"\n :show-arrow=\"showArrow\"\n :aria-label=\"title\"\n :effect=\"effect\"\n :enterable=\"enterable\"\n :popper-class=\"kls\"\n :popper-style=\"style\"\n :teleported=\"teleported\"\n :persistent=\"persistent\"\n :gpu-acceleration=\"gpuAcceleration\"\n @update:visible=\"onUpdateVisible\"\n @before-show=\"beforeEnter\"\n @before-hide=\"beforeLeave\"\n @show=\"afterEnter\"\n @hide=\"afterLeave\"\n >\n <template v-if=\"$slots.reference\">\n <slot name=\"reference\" />\n </template>\n\n <template #content>\n <div v-if=\"title\" :class=\"ns.e('title')\" role=\"title\">\n {{ title }}\n </div>\n <slot>\n {{ content }}\n </slot>\n </template>\n </el-tooltip>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, unref } from 'vue'\nimport { ElTooltip } from '@element-plus/components/tooltip'\nimport { addUnit } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { popoverEmits, popoverProps } from './popover'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\n\ndefineOptions({\n name: 'ElPopover',\n})\n\nconst props = defineProps(popoverProps)\nconst emit = defineEmits(popoverEmits)\n\nconst updateEventKeyRaw = `onUpdate:visible` as const\n\nconst onUpdateVisible = computed(() => {\n return props[updateEventKeyRaw]\n})\n\nconst ns = useNamespace('popover')\nconst tooltipRef = ref<TooltipInstance>()\nconst popperRef = computed(() => {\n return unref(tooltipRef)?.popperRef\n})\n\nconst style = computed(() => {\n return [\n {\n width: addUnit(props.width),\n },\n props.popperStyle!,\n ]\n})\n\nconst kls = computed(() => {\n return [ns.b(), props.popperClass!, { [ns.m('plain')]: !!props.content }]\n})\n\nconst gpuAcceleration = computed(() => {\n return props.transition === `${ns.namespace.value}-fade-in-linear`\n})\n\nconst hide = () => {\n tooltipRef.value?.hide()\n}\n\nconst beforeEnter = () => {\n emit('before-enter')\n}\nconst beforeLeave = () => {\n emit('before-leave')\n}\n\nconst afterEnter = () => {\n emit('after-enter')\n}\n\nconst afterLeave = () => {\n emit('update:visible', false)\n emit('after-leave')\n}\n\ndefineExpose({\n /** @description popper ref */\n popperRef,\n /** @description hide popover */\n hide,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAqDc,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR;;;;;;;AAOA,IAAM,MAAA,eAAA,GAAkB,SAAS,MAAM;AACrC,MAAA,OAAO,KAAM,CAAA,iBAAA,CAAA,CAAA;AAAA,KACd,CAAA,CAAA;AAED,IAAM,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AACjC,IAAA,MAAM,aAAa,GAAqB,EAAA,CAAA;AACxC,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAO,IAAA,EAAA,CAAA;AAAmB,MAC3B,OAAA,CAAA,EAAA,GAAA,KAAA,CAAA,UAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,SAAA,CAAA;AAED,KAAM,CAAA,CAAA;AACJ,IAAO,MAAA,KAAA,GAAA,QAAA,CAAA,MAAA;AAAA,MACL,OAAA;AAAA,QACE;AAA0B,UAC5B,KAAA,EAAA,OAAA,CAAA,KAAA,CAAA,KAAA,CAAA;AAAA,SACM;AAAA,QACR,KAAA,CAAA,WAAA;AAAA,OACD,CAAA;AAED,KAAM,CAAA,CAAA;AACJ,IAAA,MAAA,GAAO,GAAI,QAAK,CAAA;AAAwD,MACzE,OAAA,CAAA,EAAA,CAAA,CAAA,EAAA,EAAA,KAAA,CAAA,WAAA,EAAA,EAAA,CAAA,EAAA,CAAA,CAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,KAAA,CAAA,OAAA,EAAA,CAAA,CAAA;AAED,KAAM,CAAA,CAAA;AACJ,IAAA,MAAA,eAAa,GAAA,QAAkB,CAAA,MAAa;AAAA,MAC7C,OAAA,KAAA,CAAA,UAAA,KAAA,CAAA,EAAA,EAAA,CAAA,SAAA,CAAA,KAAA,CAAA,eAAA,CAAA,CAAA;AAED,KAAA,CAAA,CAAA;AACE,IAAA,MAAA,IAAA,GAAW;AAAY,MACzB,IAAA,EAAA,CAAA;AAEA,MAAA,CAAA,EAAA,mBAA0B,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,EAAA,CAAA;AACxB,KAAA,CAAA;AAAmB,IACrB,MAAA,WAAA,GAAA,MAAA;AACA,MAAA,IAAM,eAAoB,CAAA,CAAA;AACxB,KAAA,CAAA;AAAmB,IACrB,MAAA,WAAA,GAAA,MAAA;AAEA,MAAA,IAAM,eAAmB,CAAA,CAAA;AACvB,KAAA,CAAA;AAAkB,IACpB,MAAA,UAAA,GAAA,MAAA;AAEA,MAAA,IAAM,cAAmB,CAAA,CAAA;AACvB,KAAA,CAAA;AACA,IAAA,MAAA,UAAkB,GAAA,MAAA;AAAA,MACpB,IAAA,CAAA,gBAAA,EAAA,KAAA,CAAA,CAAA;AAEA,MAAa,IAAA,CAAA,aAAA,CAAA,CAAA;AAAA,KAEX,CAAA;AAAA,IAEA,MAAA,CAAA;AAAA,MACD,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"popover2.mjs","sources":["../../../../../../packages/components/popover/src/popover.ts"],"sourcesContent":["import { buildProps, isBoolean } from '@element-plus/utils'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport { dropdownProps } from '@element-plus/components/dropdown'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type Popover from './popover.vue'\n\nexport const popoverProps = buildProps({\n trigger: useTooltipTriggerProps.trigger,\n placement: dropdownProps.placement,\n disabled: useTooltipTriggerProps.disabled,\n visible: useTooltipContentProps.visible,\n transition: useTooltipContentProps.transition,\n popperOptions: dropdownProps.popperOptions,\n tabindex: dropdownProps.tabindex,\n content: useTooltipContentProps.content,\n popperStyle: useTooltipContentProps.popperStyle,\n popperClass: useTooltipContentProps.popperClass,\n enterable: {\n ...useTooltipContentProps.enterable,\n default: true,\n },\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n teleported: useTooltipContentProps.teleported,\n title: String,\n\n width: {\n type: [String, Number],\n default: 150,\n },\n offset: {\n type: Number,\n default: undefined,\n },\n showAfter: {\n type: Number,\n default: 0,\n },\n hideAfter: {\n type: Number,\n default: 200,\n },\n autoClose: {\n type: Number,\n default: 0,\n },\n showArrow: {\n type: Boolean,\n default: false,\n },\n persistent: {\n type: Boolean,\n default: true,\n },\n 'onUpdate:visible': {\n type: Function as PropType<(visible: boolean) => void>,\n },\n} as const)\nexport type PopoverProps = ExtractPropTypes<typeof popoverProps>\n\nexport const popoverEmits = {\n 'update:visible': (value: boolean) => isBoolean(value),\n 'before-enter': () => true,\n 'before-leave': () => true,\n 'after-enter': () => true,\n 'after-leave': () => true,\n}\nexport type PopoverEmits = typeof popoverEmits\n\nexport type PopoverInstance = InstanceType<typeof Popover>\n"],"names":[],"mappings":";;;;;;;;;AAMY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,OAAO,EAAE,sBAAsB,CAAC,OAAO;AACzC,EAAE,SAAS,EAAE,aAAa,CAAC,SAAS;AACpC,EAAE,QAAQ,EAAE,sBAAsB,CAAC,QAAQ;AAC3C,EAAE,OAAO,EAAE,sBAAsB,CAAC,OAAO;AACzC,EAAE,UAAU,EAAE,sBAAsB,CAAC,UAAU;AAC/C,EAAE,aAAa,EAAE,aAAa,CAAC,aAAa;AAC5C,EAAE,QAAQ,EAAE,aAAa,CAAC,QAAQ;AAClC,EAAE,OAAO,EAAE,sBAAsB,CAAC,OAAO;AACzC,EAAE,WAAW,EAAE,sBAAsB,CAAC,WAAW;AACjD,EAAE,WAAW,EAAE,sBAAsB,CAAC,WAAW;AACjD,EAAE,SAAS,EAAE;AACb,IAAI,GAAG,sBAAsB,CAAC,SAAS;AACvC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,GAAG,sBAAsB,CAAC,MAAM;AACpC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,UAAU,EAAE,sBAAsB,CAAC,UAAU;AAC/C,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,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,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,CAAC;AAC/C,EAAE,cAAc,EAAE,MAAM,IAAI;AAC5B,EAAE,cAAc,EAAE,MAAM,IAAI;AAC5B,EAAE,aAAa,EAAE,MAAM,IAAI;AAC3B,EAAE,aAAa,EAAE,MAAM,IAAI;AAC3B;;;;"}
@@ -1,9 +1,9 @@
1
1
  import '../../utils/index.mjs';
2
- import Popper from './src/popper2.mjs';
2
+ import Popper from './src/popper.mjs';
3
3
  export { default as ElPopperArrow } from './src/arrow2.mjs';
4
4
  export { default as ElPopperTrigger } from './src/trigger2.mjs';
5
5
  export { default as ElPopperContent } from './src/content.mjs';
6
- export { Effect, popperProps, roleTypes, usePopperProps } from './src/popper.mjs';
6
+ export { Effect, popperProps, roleTypes, usePopperProps } from './src/popper2.mjs';
7
7
  export { popperTriggerProps, usePopperTriggerProps } from './src/trigger.mjs';
8
8
  export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './src/content2.mjs';
9
9
  export { popperArrowProps, usePopperArrowProps } from './src/arrow.mjs';
@@ -1,30 +1,37 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, ref, computed, provide, renderSlot } from 'vue';
2
+ import { POPPER_INJECTION_KEY } from './constants.mjs';
3
+ import { popperProps } from './popper2.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
3
5
 
4
- const effects = ["light", "dark"];
5
- const triggers = ["click", "contextmenu", "hover", "focus"];
6
- const Effect = {
7
- LIGHT: "light",
8
- DARK: "dark"
9
- };
10
- const roleTypes = [
11
- "dialog",
12
- "grid",
13
- "group",
14
- "listbox",
15
- "menu",
16
- "navigation",
17
- "tooltip",
18
- "tree"
19
- ];
20
- const popperProps = buildProps({
21
- role: {
22
- type: String,
23
- values: roleTypes,
24
- default: "tooltip"
6
+ const __default__ = defineComponent({
7
+ name: "ElPopper",
8
+ inheritAttrs: false
9
+ });
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...__default__,
12
+ props: popperProps,
13
+ setup(__props, { expose }) {
14
+ const props = __props;
15
+ const triggerRef = ref();
16
+ const popperInstanceRef = ref();
17
+ const contentRef = ref();
18
+ const referenceRef = ref();
19
+ const role = computed(() => props.role);
20
+ const popperProvides = {
21
+ triggerRef,
22
+ popperInstanceRef,
23
+ contentRef,
24
+ referenceRef,
25
+ role
26
+ };
27
+ expose(popperProvides);
28
+ provide(POPPER_INJECTION_KEY, popperProvides);
29
+ return (_ctx, _cache) => {
30
+ return renderSlot(_ctx.$slots, "default");
31
+ };
25
32
  }
26
33
  });
27
- const usePopperProps = popperProps;
34
+ var Popper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\popper\\src\\popper.vue"]]);
28
35
 
29
- export { Effect, popperProps, roleTypes, usePopperProps };
36
+ export { Popper as default };
30
37
  //# sourceMappingURL=popper.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popper.mjs","sources":["../../../../../../packages/components/popper/src/popper.ts"],"sourcesContent":["import { 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 = typeof effects[number]\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":[],"mappings":";;;AACA,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAClC,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAChD,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,GAAG,UAAU,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":"popper.mjs","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":[],"mappings":";;;;;mCAYc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAGA,IAAA,MAAM,aAAa,GAAiB,EAAA,CAAA;AACpC,IAAA,MAAM,oBAAoB,GAAoB,EAAA,CAAA;AAC9C,IAAA,MAAM,aAAa,GAAiB,EAAA,CAAA;AACpC,IAAA,MAAM,eAAe,GAAiB,EAAA,CAAA;AACtC,IAAA,MAAM,IAAO,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA,CAAA;AAEtC,IAAA,MAAM,cAAiB,GAAA;AAAA,MAIrB,UAAA;AAAA,MAIA,iBAAA;AAAA,MAIA,UAAA;AAAA,MAIA,YAAA;AAAA,MAIA,IAAA;AAAA,KACF,CAAA;AAEA,IAAA,MAAA,CAAa,cAAc,CAAA,CAAA;AAE3B,IAAA,OAAA,CAAQ,sBAAsB,cAAc,CAAA,CAAA;;;;;;;;;;"}
@@ -1,37 +1,30 @@
1
- import { defineComponent, ref, computed, provide, renderSlot } from 'vue';
2
- import { POPPER_INJECTION_KEY } from './constants.mjs';
3
- import { popperProps } from './popper.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
3
 
6
- const __default__ = defineComponent({
7
- name: "ElPopper",
8
- inheritAttrs: false
9
- });
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- ...__default__,
12
- props: popperProps,
13
- setup(__props, { expose }) {
14
- const props = __props;
15
- const triggerRef = ref();
16
- const popperInstanceRef = ref();
17
- const contentRef = ref();
18
- const referenceRef = ref();
19
- const role = computed(() => props.role);
20
- const popperProvides = {
21
- triggerRef,
22
- popperInstanceRef,
23
- contentRef,
24
- referenceRef,
25
- role
26
- };
27
- expose(popperProvides);
28
- provide(POPPER_INJECTION_KEY, popperProvides);
29
- return (_ctx, _cache) => {
30
- return renderSlot(_ctx.$slots, "default");
31
- };
4
+ const effects = ["light", "dark"];
5
+ const triggers = ["click", "contextmenu", "hover", "focus"];
6
+ const Effect = {
7
+ LIGHT: "light",
8
+ DARK: "dark"
9
+ };
10
+ const roleTypes = [
11
+ "dialog",
12
+ "grid",
13
+ "group",
14
+ "listbox",
15
+ "menu",
16
+ "navigation",
17
+ "tooltip",
18
+ "tree"
19
+ ];
20
+ const popperProps = buildProps({
21
+ role: {
22
+ type: String,
23
+ values: roleTypes,
24
+ default: "tooltip"
32
25
  }
33
26
  });
34
- var Popper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\popper\\src\\popper.vue"]]);
27
+ const usePopperProps = popperProps;
35
28
 
36
- export { Popper as default };
29
+ export { Effect, popperProps, roleTypes, usePopperProps };
37
30
  //# sourceMappingURL=popper2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popper2.mjs","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":[],"mappings":";;;;;mCAYc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAGA,IAAA,MAAM,aAAa,GAAiB,EAAA,CAAA;AACpC,IAAA,MAAM,oBAAoB,GAAoB,EAAA,CAAA;AAC9C,IAAA,MAAM,aAAa,GAAiB,EAAA,CAAA;AACpC,IAAA,MAAM,eAAe,GAAiB,EAAA,CAAA;AACtC,IAAA,MAAM,IAAO,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,IAAI,CAAA,CAAA;AAEtC,IAAA,MAAM,cAAiB,GAAA;AAAA,MAIrB,UAAA;AAAA,MAIA,iBAAA;AAAA,MAIA,UAAA;AAAA,MAIA,YAAA;AAAA,MAIA,IAAA;AAAA,KACF,CAAA;AAEA,IAAA,MAAA,CAAa,cAAc,CAAA,CAAA;AAE3B,IAAA,OAAA,CAAQ,sBAAsB,cAAc,CAAA,CAAA;;;;;;;;;;"}
1
+ {"version":3,"file":"popper2.mjs","sources":["../../../../../../packages/components/popper/src/popper.ts"],"sourcesContent":["import { 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 = typeof effects[number]\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":[],"mappings":";;;AACA,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAClC,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAChD,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,GAAG,UAAU,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,10 +1,10 @@
1
1
  import '../../utils/index.mjs';
2
2
  import Radio from './src/radio2.mjs';
3
- import RadioButton from './src/radio-button2.mjs';
3
+ import RadioButton from './src/radio-button.mjs';
4
4
  import RadioGroup from './src/radio-group2.mjs';
5
5
  export { radioEmits, radioProps, radioPropsBase } from './src/radio.mjs';
6
6
  export { radioGroupEmits, radioGroupProps } from './src/radio-group.mjs';
7
- export { radioButtonProps } from './src/radio-button.mjs';
7
+ export { radioButtonProps } from './src/radio-button2.mjs';
8
8
  export { radioGroupKey } from './src/constants.mjs';
9
9
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
10
10
 
@@ -1,14 +1,69 @@
1
- import '../../../utils/index.mjs';
2
- import { radioPropsBase } from './radio.mjs';
3
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, withDirectives, createElementVNode, isRef, vModelRadio, normalizeStyle, withModifiers, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import { useRadio } from './use-radio.mjs';
4
+ import { radioButtonProps } from './radio-button2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
4
7
 
5
- const radioButtonProps = buildProps({
6
- ...radioPropsBase,
7
- name: {
8
- type: String,
9
- default: ""
8
+ const _hoisted_1 = ["value", "name", "disabled"];
9
+ const __default__ = defineComponent({
10
+ name: "ElRadioButton"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: radioButtonProps,
15
+ setup(__props) {
16
+ const props = __props;
17
+ const ns = useNamespace("radio");
18
+ const { radioRef, focus, size, disabled, modelValue, radioGroup } = useRadio(props);
19
+ const activeStyle = computed(() => {
20
+ return {
21
+ backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
22
+ borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
23
+ boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
24
+ color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
25
+ };
26
+ });
27
+ return (_ctx, _cache) => {
28
+ var _a;
29
+ return openBlock(), createElementBlock("label", {
30
+ class: normalizeClass([
31
+ unref(ns).b("button"),
32
+ unref(ns).is("active", unref(modelValue) === _ctx.label),
33
+ unref(ns).is("disabled", unref(disabled)),
34
+ unref(ns).is("focus", unref(focus)),
35
+ unref(ns).bm("button", unref(size))
36
+ ])
37
+ }, [
38
+ withDirectives(createElementVNode("input", {
39
+ ref_key: "radioRef",
40
+ ref: radioRef,
41
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
42
+ class: normalizeClass(unref(ns).be("button", "original-radio")),
43
+ value: _ctx.label,
44
+ type: "radio",
45
+ name: _ctx.name || ((_a = unref(radioGroup)) == null ? void 0 : _a.name),
46
+ disabled: unref(disabled),
47
+ onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
48
+ onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false)
49
+ }, null, 42, _hoisted_1), [
50
+ [vModelRadio, unref(modelValue)]
51
+ ]),
52
+ createElementVNode("span", {
53
+ class: normalizeClass(unref(ns).be("button", "inner")),
54
+ style: normalizeStyle(unref(modelValue) === _ctx.label ? unref(activeStyle) : {}),
55
+ onKeydown: _cache[3] || (_cache[3] = withModifiers(() => {
56
+ }, ["stop"]))
57
+ }, [
58
+ renderSlot(_ctx.$slots, "default", {}, () => [
59
+ createTextVNode(toDisplayString(_ctx.label), 1)
60
+ ])
61
+ ], 38)
62
+ ], 2);
63
+ };
10
64
  }
11
65
  });
66
+ var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\radio\\src\\radio-button.vue"]]);
12
67
 
13
- export { radioButtonProps };
68
+ export { RadioButton as default };
14
69
  //# sourceMappingURL=radio-button.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.mjs","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 /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton>\n"],"names":[],"mappings":";;;;AAEY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,GAAG,cAAc;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"radio-button.mjs","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === label),\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=\"label\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === label ? 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 } =\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":[],"mappings":";;;;;;;;mCAwCc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA,EAAE,UAAU,KAAO,EAAA,IAAA,EAAM,UAAU,UAAY,EAAA,UAAA,EAAA,GACnD,SAAS,KAAK,CAAA,CAAA;AAEhB,IAAM,MAAA,WAAA,GAAc,SAAwB,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,SAAW,EAAA,CAAA,UAAA,IAAmB,IAAA,GAAA,KAAA,CAAA,GAAA,eAAkC,IAAA,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,69 +1,14 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, withDirectives, createElementVNode, isRef, vModelRadio, normalizeStyle, withModifiers, renderSlot, createTextVNode, toDisplayString } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import { useRadio } from './use-radio.mjs';
4
- import { radioButtonProps } from './radio-button.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { radioPropsBase } from './radio.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
7
4
 
8
- const _hoisted_1 = ["value", "name", "disabled"];
9
- const __default__ = defineComponent({
10
- name: "ElRadioButton"
11
- });
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- props: radioButtonProps,
15
- setup(__props) {
16
- const props = __props;
17
- const ns = useNamespace("radio");
18
- const { radioRef, focus, size, disabled, modelValue, radioGroup } = useRadio(props);
19
- const activeStyle = computed(() => {
20
- return {
21
- backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
22
- borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
23
- boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
24
- color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
25
- };
26
- });
27
- return (_ctx, _cache) => {
28
- var _a;
29
- return openBlock(), createElementBlock("label", {
30
- class: normalizeClass([
31
- unref(ns).b("button"),
32
- unref(ns).is("active", unref(modelValue) === _ctx.label),
33
- unref(ns).is("disabled", unref(disabled)),
34
- unref(ns).is("focus", unref(focus)),
35
- unref(ns).bm("button", unref(size))
36
- ])
37
- }, [
38
- withDirectives(createElementVNode("input", {
39
- ref_key: "radioRef",
40
- ref: radioRef,
41
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
42
- class: normalizeClass(unref(ns).be("button", "original-radio")),
43
- value: _ctx.label,
44
- type: "radio",
45
- name: _ctx.name || ((_a = unref(radioGroup)) == null ? void 0 : _a.name),
46
- disabled: unref(disabled),
47
- onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
48
- onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false)
49
- }, null, 42, _hoisted_1), [
50
- [vModelRadio, unref(modelValue)]
51
- ]),
52
- createElementVNode("span", {
53
- class: normalizeClass(unref(ns).be("button", "inner")),
54
- style: normalizeStyle(unref(modelValue) === _ctx.label ? unref(activeStyle) : {}),
55
- onKeydown: _cache[3] || (_cache[3] = withModifiers(() => {
56
- }, ["stop"]))
57
- }, [
58
- renderSlot(_ctx.$slots, "default", {}, () => [
59
- createTextVNode(toDisplayString(_ctx.label), 1)
60
- ])
61
- ], 38)
62
- ], 2);
63
- };
5
+ const radioButtonProps = buildProps({
6
+ ...radioPropsBase,
7
+ name: {
8
+ type: String,
9
+ default: ""
64
10
  }
65
11
  });
66
- var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\radio\\src\\radio-button.vue"]]);
67
12
 
68
- export { RadioButton as default };
13
+ export { radioButtonProps };
69
14
  //# sourceMappingURL=radio-button2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button2.mjs","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === label),\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=\"label\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === label ? 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 } =\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":[],"mappings":";;;;;;;;mCAwCc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,OAAO,CAAA,CAAA;AAC/B,IAAM,MAAA,EAAE,UAAU,KAAO,EAAA,IAAA,EAAM,UAAU,UAAY,EAAA,UAAA,EAAA,GACnD,SAAS,KAAK,CAAA,CAAA;AAEhB,IAAM,MAAA,WAAA,GAAc,SAAwB,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,SAAW,EAAA,CAAA,UAAA,IAAmB,IAAA,GAAA,KAAA,CAAA,GAAA,eAAkC,IAAA,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.mjs","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 /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: '',\n },\n} as const)\n\nexport type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>\nexport type RadioButtonInstance = InstanceType<typeof RadioButton>\n"],"names":[],"mappings":";;;;AAEY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,GAAG,cAAc;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Result from './src/result.mjs';
3
- export { IconComponentMap, IconMap, resultProps } from './src/result2.mjs';
2
+ import Result from './src/result2.mjs';
3
+ export { IconComponentMap, IconMap, resultProps } from './src/result.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElResult = withInstall(Result);
@@ -1,68 +1,34 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import { resultProps, IconMap, IconComponentMap } from './result2.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { CircleCheckFilled, WarningFilled, CircleCloseFilled, InfoFilled } from '@element-plus/icons-vue';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
6
4
 
7
- const __default__ = defineComponent({
8
- name: "ElResult"
9
- });
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- ...__default__,
12
- props: resultProps,
13
- setup(__props) {
14
- const props = __props;
15
- const ns = useNamespace("result");
16
- const resultIcon = computed(() => {
17
- const icon = props.icon;
18
- const iconClass = icon && IconMap[icon] ? IconMap[icon] : "icon-info";
19
- const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
20
- return {
21
- class: iconClass,
22
- component: iconComponent
23
- };
24
- });
25
- return (_ctx, _cache) => {
26
- return openBlock(), createElementBlock("div", {
27
- class: normalizeClass(unref(ns).b())
28
- }, [
29
- createElementVNode("div", {
30
- class: normalizeClass(unref(ns).e("icon"))
31
- }, [
32
- renderSlot(_ctx.$slots, "icon", {}, () => [
33
- unref(resultIcon).component ? (openBlock(), createBlock(resolveDynamicComponent(unref(resultIcon).component), {
34
- key: 0,
35
- class: normalizeClass(unref(resultIcon).class)
36
- }, null, 8, ["class"])) : createCommentVNode("v-if", true)
37
- ])
38
- ], 2),
39
- _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
40
- key: 0,
41
- class: normalizeClass(unref(ns).e("title"))
42
- }, [
43
- renderSlot(_ctx.$slots, "title", {}, () => [
44
- createElementVNode("p", null, toDisplayString(_ctx.title), 1)
45
- ])
46
- ], 2)) : createCommentVNode("v-if", true),
47
- _ctx.subTitle || _ctx.$slots["sub-title"] ? (openBlock(), createElementBlock("div", {
48
- key: 1,
49
- class: normalizeClass(unref(ns).e("subtitle"))
50
- }, [
51
- renderSlot(_ctx.$slots, "sub-title", {}, () => [
52
- createElementVNode("p", null, toDisplayString(_ctx.subTitle), 1)
53
- ])
54
- ], 2)) : createCommentVNode("v-if", true),
55
- _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
56
- key: 2,
57
- class: normalizeClass(unref(ns).e("extra"))
58
- }, [
59
- renderSlot(_ctx.$slots, "extra")
60
- ], 2)) : createCommentVNode("v-if", true)
61
- ], 2);
62
- };
5
+ const IconMap = {
6
+ success: "icon-success",
7
+ warning: "icon-warning",
8
+ error: "icon-error",
9
+ info: "icon-info"
10
+ };
11
+ const IconComponentMap = {
12
+ [IconMap.success]: CircleCheckFilled,
13
+ [IconMap.warning]: WarningFilled,
14
+ [IconMap.error]: CircleCloseFilled,
15
+ [IconMap.info]: InfoFilled
16
+ };
17
+ const resultProps = buildProps({
18
+ title: {
19
+ type: String,
20
+ default: ""
21
+ },
22
+ subTitle: {
23
+ type: String,
24
+ default: ""
25
+ },
26
+ icon: {
27
+ type: String,
28
+ values: ["success", "warning", "info", "error"],
29
+ default: "info"
63
30
  }
64
31
  });
65
- var Result = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\result\\src\\result.vue"]]);
66
32
 
67
- export { Result as default };
33
+ export { IconComponentMap, IconMap, resultProps };
68
34
  //# sourceMappingURL=result.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"result.mjs","sources":["../../../../../../packages/components/result/src/result.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('icon')\">\n <slot name=\"icon\">\n <component\n :is=\"resultIcon.component\"\n v-if=\"resultIcon.component\"\n :class=\"resultIcon.class\"\n />\n </slot>\n </div>\n <div v-if=\"title || $slots.title\" :class=\"ns.e('title')\">\n <slot name=\"title\">\n <p>{{ title }}</p>\n </slot>\n </div>\n <div v-if=\"subTitle || $slots['sub-title']\" :class=\"ns.e('subtitle')\">\n <slot name=\"sub-title\">\n <p>{{ subTitle }}</p>\n </slot>\n </div>\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { IconComponentMap, IconMap, resultProps } from './result'\n\ndefineOptions({\n name: 'ElResult',\n})\n\nconst props = defineProps(resultProps)\n\nconst ns = useNamespace('result')\n\nconst resultIcon = computed(() => {\n const icon = props.icon\n const iconClass = icon && IconMap[icon] ? IconMap[icon] : 'icon-info'\n const iconComponent =\n IconComponentMap[iconClass] || IconComponentMap['icon-info']\n\n return {\n class: iconClass,\n component: iconComponent,\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;mCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,UAAA,GAAa,SAAS,MAAM;AAChC,MAAA,MAAM,OAAO,KAAM,CAAA,IAAA,CAAA;AACnB,MAAA,MAAM,SAAY,GAAA,IAAA,IAAQ,OAAQ,CAAA,IAAA,CAAA,GAAQ,QAAQ,IAAQ,CAAA,GAAA,WAAA,CAAA;AAC1D,MAAM,MAAA,aAAA,GACJ,gBAAiB,CAAA,SAAA,CAAA,IAAc,gBAAiB,CAAA,WAAA,CAAA,CAAA;AAElD,MAAO,OAAA;AAAA,QACL,KAAO,EAAA,SAAA;AAAA,QACP,SAAW,EAAA,aAAA;AAAA,OACb,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"result.mjs","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport {\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n typeof IconMap[keyof typeof IconMap],\n Component\n> = {\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n title: {\n type: String,\n default: '',\n },\n subTitle: {\n type: String,\n default: '',\n },\n icon: {\n type: String,\n values: ['success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result>\n"],"names":[],"mappings":";;;;AAOY,MAAC,OAAO,GAAG;AACvB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE;AACU,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,iBAAiB;AACtC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,aAAa;AAClC,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,iBAAiB;AACpC,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,UAAU;AAC5B,EAAE;AACU,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;AACnD,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}