beyond-webui 1.0.52 → 1.0.53

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 (482) hide show
  1. package/attributes.json +4 -0
  2. package/dist/index.full.js +8 -2
  3. package/dist/index.full.min.js +1 -1
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +1 -1
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +8 -2
  8. package/es/components/autocomplete/index.mjs +2 -2
  9. package/es/components/autocomplete/src/autocomplete.mjs +85 -377
  10. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  11. package/es/components/autocomplete/src/autocomplete2.mjs +377 -85
  12. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  13. package/es/components/avatar/index.mjs +2 -2
  14. package/es/components/avatar/src/avatar.mjs +32 -67
  15. package/es/components/avatar/src/avatar.mjs.map +1 -1
  16. package/es/components/avatar/src/avatar2.mjs +67 -32
  17. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  18. package/es/components/backtop/index.mjs +2 -2
  19. package/es/components/backtop/src/backtop.mjs +54 -21
  20. package/es/components/backtop/src/backtop.mjs.map +1 -1
  21. package/es/components/backtop/src/backtop2.mjs +21 -54
  22. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  23. package/es/components/breadcrumb/index.mjs +2 -2
  24. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -36
  25. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  26. package/es/components/breadcrumb/src/breadcrumb2.mjs +36 -11
  27. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  28. package/es/components/button/index.mjs +1 -1
  29. package/es/components/button/src/button-group.mjs +30 -6
  30. package/es/components/button/src/button-group.mjs.map +1 -1
  31. package/es/components/button/src/button-group2.mjs +6 -30
  32. package/es/components/button/src/button-group2.mjs.map +1 -1
  33. package/es/components/carousel/index.mjs +4 -4
  34. package/es/components/carousel/src/carousel-item.mjs +63 -8
  35. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  36. package/es/components/carousel/src/carousel-item2.mjs +8 -63
  37. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  38. package/es/components/carousel/src/carousel.mjs +56 -159
  39. package/es/components/carousel/src/carousel.mjs.map +1 -1
  40. package/es/components/carousel/src/carousel2.mjs +159 -56
  41. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  42. package/es/components/checkbox/index.mjs +2 -2
  43. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  44. package/es/components/checkbox/src/checkbox.mjs +117 -49
  45. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  46. package/es/components/checkbox/src/checkbox2.mjs +49 -117
  47. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  48. package/es/components/col/index.mjs +2 -2
  49. package/es/components/col/src/col.mjs +66 -43
  50. package/es/components/col/src/col.mjs.map +1 -1
  51. package/es/components/col/src/col2.mjs +43 -66
  52. package/es/components/col/src/col2.mjs.map +1 -1
  53. package/es/components/collapse/index.mjs +4 -4
  54. package/es/components/collapse/src/collapse-item.mjs +96 -14
  55. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  56. package/es/components/collapse/src/collapse-item2.mjs +14 -96
  57. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  58. package/es/components/collapse/src/collapse.mjs +30 -17
  59. package/es/components/collapse/src/collapse.mjs.map +1 -1
  60. package/es/components/collapse/src/collapse2.mjs +17 -30
  61. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  62. package/es/components/collection/index.mjs +1 -1
  63. package/es/components/collection/src/collection.mjs +10 -62
  64. package/es/components/collection/src/collection.mjs.map +1 -1
  65. package/es/components/collection/src/collection2.mjs +62 -10
  66. package/es/components/collection/src/collection2.mjs.map +1 -1
  67. package/es/components/color-picker/index.mjs +2 -2
  68. package/es/components/color-picker/src/color-picker.mjs +38 -321
  69. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  70. package/es/components/color-picker/src/color-picker2.mjs +321 -38
  71. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  72. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  73. package/es/components/countdown/index.mjs +2 -2
  74. package/es/components/countdown/src/countdown.mjs +74 -23
  75. package/es/components/countdown/src/countdown.mjs.map +1 -1
  76. package/es/components/countdown/src/countdown2.mjs +23 -74
  77. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  78. package/es/components/descriptions/index.mjs +2 -2
  79. package/es/components/descriptions/src/description.mjs +111 -25
  80. package/es/components/descriptions/src/description.mjs.map +1 -1
  81. package/es/components/descriptions/src/description2.mjs +25 -111
  82. package/es/components/descriptions/src/description2.mjs.map +1 -1
  83. package/es/components/dialog/index.mjs +2 -2
  84. package/es/components/dialog/src/dialog.mjs +172 -74
  85. package/es/components/dialog/src/dialog.mjs.map +1 -1
  86. package/es/components/dialog/src/dialog2.mjs +74 -172
  87. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  88. package/es/components/drawer/index.mjs +2 -2
  89. package/es/components/drawer/src/drawer.mjs +22 -176
  90. package/es/components/drawer/src/drawer.mjs.map +1 -1
  91. package/es/components/drawer/src/drawer2.mjs +176 -22
  92. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  93. package/es/components/dropdown/index.mjs +2 -2
  94. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  95. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  96. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  97. package/es/components/dropdown/src/dropdown.mjs +307 -97
  98. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  99. package/es/components/dropdown/src/dropdown2.mjs +97 -307
  100. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  101. package/es/components/form/index.mjs +2 -2
  102. package/es/components/form/src/form-item.mjs +43 -316
  103. package/es/components/form/src/form-item.mjs.map +1 -1
  104. package/es/components/form/src/form-item2.mjs +316 -43
  105. package/es/components/form/src/form-item2.mjs.map +1 -1
  106. package/es/components/icon/index.mjs +2 -2
  107. package/es/components/icon/src/icon.mjs +8 -36
  108. package/es/components/icon/src/icon.mjs.map +1 -1
  109. package/es/components/icon/src/icon2.mjs +36 -8
  110. package/es/components/icon/src/icon2.mjs.map +1 -1
  111. package/es/components/index.mjs +35 -35
  112. package/es/components/input/index.mjs +2 -2
  113. package/es/components/input/src/input.mjs +516 -131
  114. package/es/components/input/src/input.mjs.map +1 -1
  115. package/es/components/input/src/input2.mjs +131 -516
  116. package/es/components/input/src/input2.mjs.map +1 -1
  117. package/es/components/input-number/index.mjs +2 -2
  118. package/es/components/input-number/src/input-number.mjs +57 -311
  119. package/es/components/input-number/src/input-number.mjs.map +1 -1
  120. package/es/components/input-number/src/input-number2.mjs +311 -57
  121. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  122. package/es/components/link/index.mjs +2 -2
  123. package/es/components/link/src/link.mjs +50 -21
  124. package/es/components/link/src/link.mjs.map +1 -1
  125. package/es/components/link/src/link2.mjs +21 -50
  126. package/es/components/link/src/link2.mjs.map +1 -1
  127. package/es/components/menu/index.mjs +2 -2
  128. package/es/components/menu/src/menu-item-group.mjs +4 -35
  129. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  130. package/es/components/menu/src/menu-item-group2.mjs +35 -4
  131. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  132. package/es/components/pagination/src/components/jumper.mjs +60 -9
  133. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  134. package/es/components/pagination/src/components/jumper2.mjs +9 -60
  135. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  136. package/es/components/pagination/src/components/next.mjs +38 -19
  137. package/es/components/pagination/src/components/next.mjs.map +1 -1
  138. package/es/components/pagination/src/components/next2.mjs +19 -38
  139. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  140. package/es/components/pagination/src/components/pager.mjs +214 -17
  141. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  142. package/es/components/pagination/src/components/pager2.mjs +17 -214
  143. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  144. package/es/components/pagination/src/components/sizes.mjs +22 -68
  145. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  146. package/es/components/pagination/src/components/sizes2.mjs +68 -22
  147. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  148. package/es/components/pagination/src/pagination.mjs +4 -4
  149. package/es/components/popover/src/popover2.mjs +2 -2
  150. package/es/components/popper/index.mjs +4 -4
  151. package/es/components/popper/src/arrow.mjs +8 -37
  152. package/es/components/popper/src/arrow.mjs.map +1 -1
  153. package/es/components/popper/src/arrow2.mjs +37 -8
  154. package/es/components/popper/src/arrow2.mjs.map +1 -1
  155. package/es/components/popper/src/popper.mjs +32 -25
  156. package/es/components/popper/src/popper.mjs.map +1 -1
  157. package/es/components/popper/src/popper2.mjs +25 -32
  158. package/es/components/popper/src/popper2.mjs.map +1 -1
  159. package/es/components/radio/index.mjs +2 -2
  160. package/es/components/radio/src/radio-group.mjs +68 -36
  161. package/es/components/radio/src/radio-group.mjs.map +1 -1
  162. package/es/components/radio/src/radio-group2.mjs +36 -68
  163. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  164. package/es/components/result/index.mjs +2 -2
  165. package/es/components/result/src/result.mjs +29 -63
  166. package/es/components/result/src/result.mjs.map +1 -1
  167. package/es/components/result/src/result2.mjs +63 -29
  168. package/es/components/result/src/result2.mjs.map +1 -1
  169. package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
  170. package/es/components/scrollbar/index.mjs +1 -1
  171. package/es/components/scrollbar/src/bar.mjs +1 -1
  172. package/es/components/scrollbar/src/thumb.mjs +130 -11
  173. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  174. package/es/components/scrollbar/src/thumb2.mjs +11 -130
  175. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  176. package/es/components/slider/index.mjs +2 -2
  177. package/es/components/slider/src/button.mjs +93 -21
  178. package/es/components/slider/src/button.mjs.map +1 -1
  179. package/es/components/slider/src/button2.mjs +21 -93
  180. package/es/components/slider/src/button2.mjs.map +1 -1
  181. package/es/components/slider/src/slider.mjs +91 -233
  182. package/es/components/slider/src/slider.mjs.map +1 -1
  183. package/es/components/slider/src/slider2.mjs +233 -91
  184. package/es/components/slider/src/slider2.mjs.map +1 -1
  185. package/es/components/statistic/index.mjs +2 -2
  186. package/es/components/statistic/src/statistic.mjs +25 -70
  187. package/es/components/statistic/src/statistic.mjs.map +1 -1
  188. package/es/components/statistic/src/statistic2.mjs +70 -25
  189. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  190. package/es/components/switch/index.mjs +2 -2
  191. package/es/components/switch/src/switch.mjs +241 -88
  192. package/es/components/switch/src/switch.mjs.map +1 -1
  193. package/es/components/switch/src/switch2.mjs +88 -241
  194. package/es/components/switch/src/switch2.mjs.map +1 -1
  195. package/es/components/table/index.d.ts +9 -0
  196. package/es/components/table/src/table/defaults.d.ts +5 -0
  197. package/es/components/table/src/table/defaults.mjs +4 -0
  198. package/es/components/table/src/table/defaults.mjs.map +1 -1
  199. package/es/components/table/src/table-layout.d.ts +1 -0
  200. package/es/components/table/src/table-layout.mjs +3 -2
  201. package/es/components/table/src/table-layout.mjs.map +1 -1
  202. package/es/components/table/src/table.mjs +1 -0
  203. package/es/components/table/src/table.mjs.map +1 -1
  204. package/es/components/table/src/table.vue.d.ts +9 -0
  205. package/es/components/teleport/index.mjs +2 -2
  206. package/es/components/teleport/src/teleport.mjs +44 -18
  207. package/es/components/teleport/src/teleport.mjs.map +1 -1
  208. package/es/components/teleport/src/teleport2.mjs +18 -44
  209. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  210. package/es/components/timeline/index.mjs +2 -2
  211. package/es/components/timeline/src/timeline-item.mjs +70 -42
  212. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  213. package/es/components/timeline/src/timeline-item2.mjs +42 -70
  214. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  215. package/es/components/tooltip/index.mjs +3 -3
  216. package/es/components/tooltip/src/tooltip.mjs +169 -31
  217. package/es/components/tooltip/src/tooltip.mjs.map +1 -1
  218. package/es/components/tooltip/src/tooltip2.mjs +31 -169
  219. package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
  220. package/es/components/tooltip/src/trigger.mjs +16 -73
  221. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  222. package/es/components/tooltip/src/trigger2.mjs +73 -16
  223. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  224. package/es/components/tooltip-v2/index.mjs +1 -1
  225. package/es/components/tooltip-v2/src/arrow.mjs +22 -37
  226. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  227. package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
  228. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  229. package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
  230. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  231. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  232. package/es/components/transfer/src/transfer-panel.mjs +128 -19
  233. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  234. package/es/components/transfer/src/transfer-panel2.mjs +19 -128
  235. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  236. package/es/components/transfer/src/transfer2.mjs +1 -1
  237. package/es/components/upload/index.mjs +1 -1
  238. package/es/components/upload/src/upload-content.mjs +173 -33
  239. package/es/components/upload/src/upload-content.mjs.map +1 -1
  240. package/es/components/upload/src/upload-content2.mjs +33 -173
  241. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  242. package/es/components/upload/src/upload2.mjs +1 -1
  243. package/es/index.mjs +35 -35
  244. package/lib/components/autocomplete/index.js +2 -2
  245. package/lib/components/autocomplete/src/autocomplete.js +85 -376
  246. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  247. package/lib/components/autocomplete/src/autocomplete2.js +376 -85
  248. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  249. package/lib/components/avatar/index.js +2 -2
  250. package/lib/components/avatar/src/avatar.js +33 -67
  251. package/lib/components/avatar/src/avatar.js.map +1 -1
  252. package/lib/components/avatar/src/avatar2.js +67 -33
  253. package/lib/components/avatar/src/avatar2.js.map +1 -1
  254. package/lib/components/backtop/index.js +2 -2
  255. package/lib/components/backtop/src/backtop.js +54 -22
  256. package/lib/components/backtop/src/backtop.js.map +1 -1
  257. package/lib/components/backtop/src/backtop2.js +22 -54
  258. package/lib/components/backtop/src/backtop2.js.map +1 -1
  259. package/lib/components/breadcrumb/index.js +2 -2
  260. package/lib/components/breadcrumb/src/breadcrumb.js +11 -36
  261. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  262. package/lib/components/breadcrumb/src/breadcrumb2.js +36 -11
  263. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  264. package/lib/components/button/index.js +1 -1
  265. package/lib/components/button/src/button-group.js +30 -6
  266. package/lib/components/button/src/button-group.js.map +1 -1
  267. package/lib/components/button/src/button-group2.js +6 -30
  268. package/lib/components/button/src/button-group2.js.map +1 -1
  269. package/lib/components/carousel/index.js +4 -4
  270. package/lib/components/carousel/src/carousel-item.js +63 -8
  271. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  272. package/lib/components/carousel/src/carousel-item2.js +8 -63
  273. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  274. package/lib/components/carousel/src/carousel.js +57 -159
  275. package/lib/components/carousel/src/carousel.js.map +1 -1
  276. package/lib/components/carousel/src/carousel2.js +159 -57
  277. package/lib/components/carousel/src/carousel2.js.map +1 -1
  278. package/lib/components/checkbox/index.js +2 -2
  279. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  280. package/lib/components/checkbox/src/checkbox.js +117 -50
  281. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  282. package/lib/components/checkbox/src/checkbox2.js +50 -117
  283. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  284. package/lib/components/col/index.js +2 -2
  285. package/lib/components/col/src/col.js +66 -43
  286. package/lib/components/col/src/col.js.map +1 -1
  287. package/lib/components/col/src/col2.js +43 -66
  288. package/lib/components/col/src/col2.js.map +1 -1
  289. package/lib/components/collapse/index.js +4 -4
  290. package/lib/components/collapse/src/collapse-item.js +96 -14
  291. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  292. package/lib/components/collapse/src/collapse-item2.js +14 -96
  293. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  294. package/lib/components/collapse/src/collapse.js +30 -19
  295. package/lib/components/collapse/src/collapse.js.map +1 -1
  296. package/lib/components/collapse/src/collapse2.js +19 -30
  297. package/lib/components/collapse/src/collapse2.js.map +1 -1
  298. package/lib/components/collection/index.js +1 -1
  299. package/lib/components/collection/src/collection.js +9 -62
  300. package/lib/components/collection/src/collection.js.map +1 -1
  301. package/lib/components/collection/src/collection2.js +62 -9
  302. package/lib/components/collection/src/collection2.js.map +1 -1
  303. package/lib/components/color-picker/index.js +2 -2
  304. package/lib/components/color-picker/src/color-picker.js +38 -319
  305. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  306. package/lib/components/color-picker/src/color-picker2.js +319 -38
  307. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  308. package/lib/components/color-picker/src/components/predefine.js +1 -1
  309. package/lib/components/countdown/index.js +2 -2
  310. package/lib/components/countdown/src/countdown.js +74 -24
  311. package/lib/components/countdown/src/countdown.js.map +1 -1
  312. package/lib/components/countdown/src/countdown2.js +24 -74
  313. package/lib/components/countdown/src/countdown2.js.map +1 -1
  314. package/lib/components/descriptions/index.js +2 -2
  315. package/lib/components/descriptions/src/description.js +111 -25
  316. package/lib/components/descriptions/src/description.js.map +1 -1
  317. package/lib/components/descriptions/src/description2.js +25 -111
  318. package/lib/components/descriptions/src/description2.js.map +1 -1
  319. package/lib/components/dialog/index.js +2 -2
  320. package/lib/components/dialog/src/dialog.js +172 -75
  321. package/lib/components/dialog/src/dialog.js.map +1 -1
  322. package/lib/components/dialog/src/dialog2.js +75 -172
  323. package/lib/components/dialog/src/dialog2.js.map +1 -1
  324. package/lib/components/drawer/index.js +2 -2
  325. package/lib/components/drawer/src/drawer.js +23 -176
  326. package/lib/components/drawer/src/drawer.js.map +1 -1
  327. package/lib/components/drawer/src/drawer2.js +176 -23
  328. package/lib/components/drawer/src/drawer2.js.map +1 -1
  329. package/lib/components/dropdown/index.js +2 -2
  330. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  331. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  332. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  333. package/lib/components/dropdown/src/dropdown.js +307 -106
  334. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  335. package/lib/components/dropdown/src/dropdown2.js +106 -307
  336. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  337. package/lib/components/form/index.js +2 -2
  338. package/lib/components/form/src/form-item.js +44 -320
  339. package/lib/components/form/src/form-item.js.map +1 -1
  340. package/lib/components/form/src/form-item2.js +320 -44
  341. package/lib/components/form/src/form-item2.js.map +1 -1
  342. package/lib/components/icon/index.js +2 -2
  343. package/lib/components/icon/src/icon.js +8 -36
  344. package/lib/components/icon/src/icon.js.map +1 -1
  345. package/lib/components/icon/src/icon2.js +36 -8
  346. package/lib/components/icon/src/icon2.js.map +1 -1
  347. package/lib/components/index.js +35 -35
  348. package/lib/components/input/index.js +2 -2
  349. package/lib/components/input/src/input.js +515 -131
  350. package/lib/components/input/src/input.js.map +1 -1
  351. package/lib/components/input/src/input2.js +131 -515
  352. package/lib/components/input/src/input2.js.map +1 -1
  353. package/lib/components/input-number/index.js +2 -2
  354. package/lib/components/input-number/src/input-number.js +57 -310
  355. package/lib/components/input-number/src/input-number.js.map +1 -1
  356. package/lib/components/input-number/src/input-number2.js +310 -57
  357. package/lib/components/input-number/src/input-number2.js.map +1 -1
  358. package/lib/components/link/index.js +2 -2
  359. package/lib/components/link/src/link.js +50 -22
  360. package/lib/components/link/src/link.js.map +1 -1
  361. package/lib/components/link/src/link2.js +22 -50
  362. package/lib/components/link/src/link2.js.map +1 -1
  363. package/lib/components/menu/index.js +2 -2
  364. package/lib/components/menu/src/menu-item-group.js +4 -35
  365. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  366. package/lib/components/menu/src/menu-item-group2.js +35 -4
  367. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  368. package/lib/components/pagination/src/components/jumper.js +60 -9
  369. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  370. package/lib/components/pagination/src/components/jumper2.js +9 -60
  371. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  372. package/lib/components/pagination/src/components/next.js +38 -19
  373. package/lib/components/pagination/src/components/next.js.map +1 -1
  374. package/lib/components/pagination/src/components/next2.js +19 -38
  375. package/lib/components/pagination/src/components/next2.js.map +1 -1
  376. package/lib/components/pagination/src/components/pager.js +214 -17
  377. package/lib/components/pagination/src/components/pager.js.map +1 -1
  378. package/lib/components/pagination/src/components/pager2.js +17 -214
  379. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  380. package/lib/components/pagination/src/components/sizes.js +22 -68
  381. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  382. package/lib/components/pagination/src/components/sizes2.js +68 -22
  383. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  384. package/lib/components/pagination/src/pagination.js +4 -4
  385. package/lib/components/popover/src/popover2.js +2 -2
  386. package/lib/components/popper/index.js +4 -4
  387. package/lib/components/popper/src/arrow.js +9 -37
  388. package/lib/components/popper/src/arrow.js.map +1 -1
  389. package/lib/components/popper/src/arrow2.js +37 -9
  390. package/lib/components/popper/src/arrow2.js.map +1 -1
  391. package/lib/components/popper/src/popper.js +32 -28
  392. package/lib/components/popper/src/popper.js.map +1 -1
  393. package/lib/components/popper/src/popper2.js +28 -32
  394. package/lib/components/popper/src/popper2.js.map +1 -1
  395. package/lib/components/radio/index.js +2 -2
  396. package/lib/components/radio/src/radio-group.js +68 -37
  397. package/lib/components/radio/src/radio-group.js.map +1 -1
  398. package/lib/components/radio/src/radio-group2.js +37 -68
  399. package/lib/components/radio/src/radio-group2.js.map +1 -1
  400. package/lib/components/result/index.js +2 -2
  401. package/lib/components/result/src/result.js +31 -63
  402. package/lib/components/result/src/result.js.map +1 -1
  403. package/lib/components/result/src/result2.js +63 -31
  404. package/lib/components/result/src/result2.js.map +1 -1
  405. package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
  406. package/lib/components/scrollbar/index.js +1 -1
  407. package/lib/components/scrollbar/src/bar.js +1 -1
  408. package/lib/components/scrollbar/src/thumb.js +130 -11
  409. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  410. package/lib/components/scrollbar/src/thumb2.js +11 -130
  411. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  412. package/lib/components/slider/index.js +2 -2
  413. package/lib/components/slider/src/button.js +93 -22
  414. package/lib/components/slider/src/button.js.map +1 -1
  415. package/lib/components/slider/src/button2.js +22 -93
  416. package/lib/components/slider/src/button2.js.map +1 -1
  417. package/lib/components/slider/src/slider.js +92 -233
  418. package/lib/components/slider/src/slider.js.map +1 -1
  419. package/lib/components/slider/src/slider2.js +233 -92
  420. package/lib/components/slider/src/slider2.js.map +1 -1
  421. package/lib/components/statistic/index.js +2 -2
  422. package/lib/components/statistic/src/statistic.js +25 -70
  423. package/lib/components/statistic/src/statistic.js.map +1 -1
  424. package/lib/components/statistic/src/statistic2.js +70 -25
  425. package/lib/components/statistic/src/statistic2.js.map +1 -1
  426. package/lib/components/switch/index.js +2 -2
  427. package/lib/components/switch/src/switch.js +240 -88
  428. package/lib/components/switch/src/switch.js.map +1 -1
  429. package/lib/components/switch/src/switch2.js +88 -240
  430. package/lib/components/switch/src/switch2.js.map +1 -1
  431. package/lib/components/table/index.d.ts +9 -0
  432. package/lib/components/table/src/table/defaults.d.ts +5 -0
  433. package/lib/components/table/src/table/defaults.js +4 -0
  434. package/lib/components/table/src/table/defaults.js.map +1 -1
  435. package/lib/components/table/src/table-layout.d.ts +1 -0
  436. package/lib/components/table/src/table-layout.js +3 -2
  437. package/lib/components/table/src/table-layout.js.map +1 -1
  438. package/lib/components/table/src/table.js +1 -0
  439. package/lib/components/table/src/table.js.map +1 -1
  440. package/lib/components/table/src/table.vue.d.ts +9 -0
  441. package/lib/components/teleport/index.js +2 -2
  442. package/lib/components/teleport/src/teleport.js +44 -18
  443. package/lib/components/teleport/src/teleport.js.map +1 -1
  444. package/lib/components/teleport/src/teleport2.js +18 -44
  445. package/lib/components/teleport/src/teleport2.js.map +1 -1
  446. package/lib/components/timeline/index.js +2 -2
  447. package/lib/components/timeline/src/timeline-item.js +70 -42
  448. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  449. package/lib/components/timeline/src/timeline-item2.js +42 -70
  450. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  451. package/lib/components/tooltip/index.js +3 -3
  452. package/lib/components/tooltip/src/tooltip.js +167 -33
  453. package/lib/components/tooltip/src/tooltip.js.map +1 -1
  454. package/lib/components/tooltip/src/tooltip2.js +33 -167
  455. package/lib/components/tooltip/src/tooltip2.js.map +1 -1
  456. package/lib/components/tooltip/src/trigger.js +16 -73
  457. package/lib/components/tooltip/src/trigger.js.map +1 -1
  458. package/lib/components/tooltip/src/trigger2.js +73 -16
  459. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  460. package/lib/components/tooltip-v2/index.js +1 -1
  461. package/lib/components/tooltip-v2/src/arrow.js +23 -37
  462. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  463. package/lib/components/tooltip-v2/src/arrow2.js +37 -23
  464. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  465. package/lib/components/tooltip-v2/src/tooltip.js +1 -1
  466. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  467. package/lib/components/transfer/src/composables/use-check.js +1 -1
  468. package/lib/components/transfer/src/transfer-panel.js +128 -21
  469. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  470. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  471. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  472. package/lib/components/transfer/src/transfer2.js +1 -1
  473. package/lib/components/upload/index.js +1 -1
  474. package/lib/components/upload/src/upload-content.js +172 -32
  475. package/lib/components/upload/src/upload-content.js.map +1 -1
  476. package/lib/components/upload/src/upload-content2.js +32 -172
  477. package/lib/components/upload/src/upload-content2.js.map +1 -1
  478. package/lib/components/upload/src/upload2.js +1 -1
  479. package/lib/index.js +35 -35
  480. package/package.json +1 -1
  481. package/tags.json +1 -0
  482. package/web-types.json +9 -0
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.mjs","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n @error=\"handleError\"\n />\n <el-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber, isString } from '@element-plus/utils'\nimport { avatarEmits, avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElAvatar',\n})\n\nconst props = defineProps(avatarProps)\nconst emit = defineEmits(avatarEmits)\n\nconst ns = useNamespace('avatar')\n\nconst hasLoadError = ref(false)\n\nconst avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n})\n\nconst sizeStyle = computed(() => {\n const { size } = props\n return isNumber(size)\n ? (ns.cssVarBlock({\n size: addUnit(size) || '',\n }) as CSSProperties)\n : undefined\n})\n\nconst fitStyle = computed<CSSProperties>(() => ({\n objectFit: props.fit,\n}))\n\n// need reset hasLoadError to false if src changed\nwatch(\n () => props.src,\n () => (hasLoadError.value = false)\n)\n\nfunction handleError(e: Event) {\n hasLoadError.value = true\n emit('error', e)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA0Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,YAAA,GAAe,IAAI,KAAK,CAAA,CAAA;AAE9B,IAAM,MAAA,WAAA,GAAc,SAAS,MAAM;AACjC,MAAM,MAAA,EAAE,IAAM,EAAA,IAAA,EAAM,KAAU,EAAA,GAAA,KAAA,CAAA;AAC9B,MAAA,MAAM,SAAY,GAAA,CAAC,EAAG,CAAA,CAAA,EAAG,CAAA,CAAA;AACzB,MAAA,IAAI,SAAS,IAAI,CAAA;AAAG,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,IAAI,CAAC,CAAA,CAAA;AAC7C,MAAI,IAAA,IAAA;AAAM,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,MAAM,CAAC,CAAA,CAAA;AACrC,MAAI,IAAA,KAAA;AAAO,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,KAAK,CAAC,CAAA,CAAA;AACrC,MAAO,OAAA,SAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAA,MAAM,EAAE,IAAS,EAAA,GAAA,KAAA,CAAA;AACjB,MAAA,OAAO,QAAS,CAAA,IAAI,CACf,GAAA,EAAA,CAAG,WAAY,CAAA;AAAA,QACd,IAAA,EAAM,OAAQ,CAAA,IAAI,CAAK,IAAA,EAAA;AAAA,OACxB,CACD,GAAA,KAAA,CAAA,CAAA;AAAA,KACL,CAAA,CAAA;AAED,IAAM,MAAA,QAAA,GAAW,SAAwB,OAAO;AAAA,MAC9C,WAAW,KAAM,CAAA,GAAA;AAAA,KACjB,CAAA,CAAA,CAAA;AAGF,IAAA,KAAA,CACE,MAAM,KAAM,CAAA,GAAA,EACZ,MAAO,YAAA,CAAa,QAAQ,KAC9B,CAAA,CAAA;AAEA,IAAA,SAAA,WAAA,CAAqB,CAAU,EAAA;AAC7B,MAAA,YAAA,CAAa,KAAQ,GAAA,IAAA,CAAA;AACrB,MAAA,IAAA,CAAK,SAAS,CAAC,CAAA,CAAA;AAAA,KACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"avatar.mjs","sources":["../../../../../../packages/components/avatar/src/avatar.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n} from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ObjectFitProperty } from 'csstype'\n\nexport const avatarProps = buildProps({\n /**\n * @description avatar size.\n */\n size: {\n type: [Number, String],\n values: componentSizes,\n default: '',\n validator: (val: unknown): val is number => isNumber(val),\n },\n /**\n * @description avatar shape.\n */\n shape: {\n type: String,\n values: ['circle', 'square'],\n default: 'circle',\n },\n /**\n * @description representation type to icon, more info on icon component.\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description the source of the image for an image avatar.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description native attribute `alt` of image avatar.\n */\n alt: String,\n /**\n * @description native attribute srcset of image avatar.\n */\n srcSet: String,\n /**\n * @description set how the image fit its container for an image avatar.\n */\n fit: {\n type: definePropType<ObjectFitProperty>(String),\n default: 'cover',\n },\n} as const)\nexport type AvatarProps = ExtractPropTypes<typeof avatarProps>\n\nexport const avatarEmits = {\n error: (evt: Event) => evt instanceof Event,\n}\nexport type AvatarEmits = typeof avatarEmits\n"],"names":[],"mappings":";;;;;;;AAOY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AACrC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC;;;;"}
@@ -1,39 +1,74 @@
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createBlock, withCtx, resolveDynamicComponent, renderSlot } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import '../../../hooks/index.mjs';
1
4
  import '../../../utils/index.mjs';
2
- import '../../../constants/index.mjs';
3
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
- import { componentSizes } from '../../../constants/size.mjs';
5
+ import { avatarProps, avatarEmits } from './avatar.mjs';
6
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
8
+ import { isString } from '@vue/shared';
5
9
  import { isNumber } from '@vueuse/core';
6
- import { iconPropType } from '../../../utils/vue/icon.mjs';
10
+ import { addUnit } from '../../../utils/dom/style.mjs';
7
11
 
8
- const avatarProps = buildProps({
9
- size: {
10
- type: [Number, String],
11
- values: componentSizes,
12
- default: "",
13
- validator: (val) => isNumber(val)
14
- },
15
- shape: {
16
- type: String,
17
- values: ["circle", "square"],
18
- default: "circle"
19
- },
20
- icon: {
21
- type: iconPropType
22
- },
23
- src: {
24
- type: String,
25
- default: ""
26
- },
27
- alt: String,
28
- srcSet: String,
29
- fit: {
30
- type: definePropType(String),
31
- default: "cover"
12
+ const _hoisted_1 = ["src", "alt", "srcset"];
13
+ const __default__ = defineComponent({
14
+ name: "ElAvatar"
15
+ });
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ ...__default__,
18
+ props: avatarProps,
19
+ emits: avatarEmits,
20
+ setup(__props, { emit }) {
21
+ const props = __props;
22
+ const ns = useNamespace("avatar");
23
+ const hasLoadError = ref(false);
24
+ const avatarClass = computed(() => {
25
+ const { size, icon, shape } = props;
26
+ const classList = [ns.b()];
27
+ if (isString(size))
28
+ classList.push(ns.m(size));
29
+ if (icon)
30
+ classList.push(ns.m("icon"));
31
+ if (shape)
32
+ classList.push(ns.m(shape));
33
+ return classList;
34
+ });
35
+ const sizeStyle = computed(() => {
36
+ const { size } = props;
37
+ return isNumber(size) ? ns.cssVarBlock({
38
+ size: addUnit(size) || ""
39
+ }) : void 0;
40
+ });
41
+ const fitStyle = computed(() => ({
42
+ objectFit: props.fit
43
+ }));
44
+ watch(() => props.src, () => hasLoadError.value = false);
45
+ function handleError(e) {
46
+ hasLoadError.value = true;
47
+ emit("error", e);
48
+ }
49
+ return (_ctx, _cache) => {
50
+ return openBlock(), createElementBlock("span", {
51
+ class: normalizeClass(unref(avatarClass)),
52
+ style: normalizeStyle(unref(sizeStyle))
53
+ }, [
54
+ (_ctx.src || _ctx.srcSet) && !hasLoadError.value ? (openBlock(), createElementBlock("img", {
55
+ key: 0,
56
+ src: _ctx.src,
57
+ alt: _ctx.alt,
58
+ srcset: _ctx.srcSet,
59
+ style: normalizeStyle(unref(fitStyle)),
60
+ onError: handleError
61
+ }, null, 44, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
62
+ default: withCtx(() => [
63
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
64
+ ]),
65
+ _: 1
66
+ })) : renderSlot(_ctx.$slots, "default", { key: 2 })
67
+ ], 6);
68
+ };
32
69
  }
33
70
  });
34
- const avatarEmits = {
35
- error: (evt) => evt instanceof Event
36
- };
71
+ var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\avatar\\src\\avatar.vue"]]);
37
72
 
38
- export { avatarEmits, avatarProps };
73
+ export { Avatar as default };
39
74
  //# sourceMappingURL=avatar2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar2.mjs","sources":["../../../../../../packages/components/avatar/src/avatar.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n} from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ObjectFitProperty } from 'csstype'\n\nexport const avatarProps = buildProps({\n /**\n * @description avatar size.\n */\n size: {\n type: [Number, String],\n values: componentSizes,\n default: '',\n validator: (val: unknown): val is number => isNumber(val),\n },\n /**\n * @description avatar shape.\n */\n shape: {\n type: String,\n values: ['circle', 'square'],\n default: 'circle',\n },\n /**\n * @description representation type to icon, more info on icon component.\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description the source of the image for an image avatar.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description native attribute `alt` of image avatar.\n */\n alt: String,\n /**\n * @description native attribute srcset of image avatar.\n */\n srcSet: String,\n /**\n * @description set how the image fit its container for an image avatar.\n */\n fit: {\n type: definePropType<ObjectFitProperty>(String),\n default: 'cover',\n },\n} as const)\nexport type AvatarProps = ExtractPropTypes<typeof avatarProps>\n\nexport const avatarEmits = {\n error: (evt: Event) => evt instanceof Event,\n}\nexport type AvatarEmits = typeof avatarEmits\n"],"names":[],"mappings":";;;;;;;AAOY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC;AACrC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC;;;;"}
1
+ {"version":3,"file":"avatar2.mjs","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n @error=\"handleError\"\n />\n <el-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isNumber, isString } from '@element-plus/utils'\nimport { avatarEmits, avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElAvatar',\n})\n\nconst props = defineProps(avatarProps)\nconst emit = defineEmits(avatarEmits)\n\nconst ns = useNamespace('avatar')\n\nconst hasLoadError = ref(false)\n\nconst avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n})\n\nconst sizeStyle = computed(() => {\n const { size } = props\n return isNumber(size)\n ? (ns.cssVarBlock({\n size: addUnit(size) || '',\n }) as CSSProperties)\n : undefined\n})\n\nconst fitStyle = computed<CSSProperties>(() => ({\n objectFit: props.fit,\n}))\n\n// need reset hasLoadError to false if src changed\nwatch(\n () => props.src,\n () => (hasLoadError.value = false)\n)\n\nfunction handleError(e: Event) {\n hasLoadError.value = true\n emit('error', e)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA0Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,YAAA,GAAe,IAAI,KAAK,CAAA,CAAA;AAE9B,IAAM,MAAA,WAAA,GAAc,SAAS,MAAM;AACjC,MAAM,MAAA,EAAE,IAAM,EAAA,IAAA,EAAM,KAAU,EAAA,GAAA,KAAA,CAAA;AAC9B,MAAA,MAAM,SAAY,GAAA,CAAC,EAAG,CAAA,CAAA,EAAG,CAAA,CAAA;AACzB,MAAA,IAAI,SAAS,IAAI,CAAA;AAAG,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,IAAI,CAAC,CAAA,CAAA;AAC7C,MAAI,IAAA,IAAA;AAAM,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,MAAM,CAAC,CAAA,CAAA;AACrC,MAAI,IAAA,KAAA;AAAO,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,KAAK,CAAC,CAAA,CAAA;AACrC,MAAO,OAAA,SAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAA,MAAM,EAAE,IAAS,EAAA,GAAA,KAAA,CAAA;AACjB,MAAA,OAAO,QAAS,CAAA,IAAI,CACf,GAAA,EAAA,CAAG,WAAY,CAAA;AAAA,QACd,IAAA,EAAM,OAAQ,CAAA,IAAI,CAAK,IAAA,EAAA;AAAA,OACxB,CACD,GAAA,KAAA,CAAA,CAAA;AAAA,KACL,CAAA,CAAA;AAED,IAAM,MAAA,QAAA,GAAW,SAAwB,OAAO;AAAA,MAC9C,WAAW,KAAM,CAAA,GAAA;AAAA,KACjB,CAAA,CAAA,CAAA;AAGF,IAAA,KAAA,CACE,MAAM,KAAM,CAAA,GAAA,EACZ,MAAO,YAAA,CAAa,QAAQ,KAC9B,CAAA,CAAA;AAEA,IAAA,SAAA,WAAA,CAAqB,CAAU,EAAA;AAC7B,MAAA,YAAA,CAAa,KAAQ,GAAA,IAAA,CAAA;AACrB,MAAA,IAAA,CAAK,SAAS,CAAC,CAAA,CAAA;AAAA,KACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Backtop from './src/backtop2.mjs';
3
- export { backtopEmits, backtopProps } from './src/backtop.mjs';
2
+ import Backtop from './src/backtop.mjs';
3
+ export { backtopEmits, backtopProps } from './src/backtop2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElBacktop = withInstall(Backtop);
@@ -1,24 +1,57 @@
1
- const backtopProps = {
2
- visibilityHeight: {
3
- type: Number,
4
- default: 200
5
- },
6
- target: {
7
- type: String,
8
- default: ""
9
- },
10
- right: {
11
- type: Number,
12
- default: 40
13
- },
14
- bottom: {
15
- type: Number,
16
- default: 40
1
+ import { defineComponent, computed, openBlock, createBlock, Transition, unref, withCtx, createElementBlock, normalizeStyle, normalizeClass, withModifiers, renderSlot, createVNode, createCommentVNode } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import { CaretTop } from '@element-plus/icons-vue';
4
+ import '../../../hooks/index.mjs';
5
+ import { backtopProps, backtopEmits } from './backtop2.mjs';
6
+ import { useBackTop } from './use-backtop.mjs';
7
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
+
10
+ const COMPONENT_NAME = "ElBacktop";
11
+ const __default__ = defineComponent({
12
+ name: COMPONENT_NAME
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: backtopProps,
17
+ emits: backtopEmits,
18
+ setup(__props, { emit }) {
19
+ const props = __props;
20
+ const ns = useNamespace("backtop");
21
+ const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME);
22
+ const backTopStyle = computed(() => ({
23
+ right: `${props.right}px`,
24
+ bottom: `${props.bottom}px`
25
+ }));
26
+ return (_ctx, _cache) => {
27
+ return openBlock(), createBlock(Transition, {
28
+ name: `${unref(ns).namespace.value}-fade-in`
29
+ }, {
30
+ default: withCtx(() => [
31
+ unref(visible) ? (openBlock(), createElementBlock("div", {
32
+ key: 0,
33
+ style: normalizeStyle(unref(backTopStyle)),
34
+ class: normalizeClass(unref(ns).b()),
35
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => unref(handleClick) && unref(handleClick)(...args), ["stop"]))
36
+ }, [
37
+ renderSlot(_ctx.$slots, "default", {}, () => [
38
+ createVNode(unref(ElIcon), {
39
+ class: normalizeClass(unref(ns).e("icon"))
40
+ }, {
41
+ default: withCtx(() => [
42
+ createVNode(unref(CaretTop))
43
+ ]),
44
+ _: 1
45
+ }, 8, ["class"])
46
+ ])
47
+ ], 6)) : createCommentVNode("v-if", true)
48
+ ]),
49
+ _: 3
50
+ }, 8, ["name"]);
51
+ };
17
52
  }
18
- };
19
- const backtopEmits = {
20
- click: (evt) => evt instanceof MouseEvent
21
- };
53
+ });
54
+ var Backtop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\backtop\\src\\backtop.vue"]]);
22
55
 
23
- export { backtopEmits, backtopProps };
56
+ export { Backtop as default };
24
57
  //# sourceMappingURL=backtop.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const backtopProps = {\n /**\n * @description the button will not show until the scroll height reaches this value.\n */\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n /**\n * @description the target to trigger scroll.\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description right distance.\n */\n right: {\n type: Number,\n default: 40,\n },\n /**\n * @description bottom distance.\n */\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"names":[],"mappings":"AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE;AACU,MAAC,YAAY,GAAG;AAC5B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
1
+ {"version":3,"file":"backtop.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\nimport { useBackTop } from './use-backtop'\n\nconst COMPONENT_NAME = 'ElBacktop'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\n\nconst { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAyBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AAEjC,IAAA,MAAM,EAAE,WAAa,EAAA,OAAA,EAAA,GAAY,UAAW,CAAA,KAAA,EAAO,MAAM,cAAc,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAe,SAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,57 +1,24 @@
1
- import { defineComponent, computed, openBlock, createBlock, Transition, unref, withCtx, createElementBlock, normalizeStyle, normalizeClass, withModifiers, renderSlot, createVNode, createCommentVNode } from 'vue';
2
- import { ElIcon } from '../../icon/index.mjs';
3
- import { CaretTop } from '@element-plus/icons-vue';
4
- import '../../../hooks/index.mjs';
5
- import { backtopProps, backtopEmits } from './backtop.mjs';
6
- import { useBackTop } from './use-backtop.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
-
10
- const COMPONENT_NAME = "ElBacktop";
11
- const __default__ = defineComponent({
12
- name: COMPONENT_NAME
13
- });
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: backtopProps,
17
- emits: backtopEmits,
18
- setup(__props, { emit }) {
19
- const props = __props;
20
- const ns = useNamespace("backtop");
21
- const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME);
22
- const backTopStyle = computed(() => ({
23
- right: `${props.right}px`,
24
- bottom: `${props.bottom}px`
25
- }));
26
- return (_ctx, _cache) => {
27
- return openBlock(), createBlock(Transition, {
28
- name: `${unref(ns).namespace.value}-fade-in`
29
- }, {
30
- default: withCtx(() => [
31
- unref(visible) ? (openBlock(), createElementBlock("div", {
32
- key: 0,
33
- style: normalizeStyle(unref(backTopStyle)),
34
- class: normalizeClass(unref(ns).b()),
35
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => unref(handleClick) && unref(handleClick)(...args), ["stop"]))
36
- }, [
37
- renderSlot(_ctx.$slots, "default", {}, () => [
38
- createVNode(unref(ElIcon), {
39
- class: normalizeClass(unref(ns).e("icon"))
40
- }, {
41
- default: withCtx(() => [
42
- createVNode(unref(CaretTop))
43
- ]),
44
- _: 1
45
- }, 8, ["class"])
46
- ])
47
- ], 6)) : createCommentVNode("v-if", true)
48
- ]),
49
- _: 3
50
- }, 8, ["name"]);
51
- };
1
+ const backtopProps = {
2
+ visibilityHeight: {
3
+ type: Number,
4
+ default: 200
5
+ },
6
+ target: {
7
+ type: String,
8
+ default: ""
9
+ },
10
+ right: {
11
+ type: Number,
12
+ default: 40
13
+ },
14
+ bottom: {
15
+ type: Number,
16
+ default: 40
52
17
  }
53
- });
54
- var Backtop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\backtop\\src\\backtop.vue"]]);
18
+ };
19
+ const backtopEmits = {
20
+ click: (evt) => evt instanceof MouseEvent
21
+ };
55
22
 
56
- export { Backtop as default };
23
+ export { backtopEmits, backtopProps };
57
24
  //# sourceMappingURL=backtop2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop2.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\nimport { useBackTop } from './use-backtop'\n\nconst COMPONENT_NAME = 'ElBacktop'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\n\nconst { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAyBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AAEjC,IAAA,MAAM,EAAE,WAAa,EAAA,OAAA,EAAA,GAAY,UAAW,CAAA,KAAA,EAAO,MAAM,cAAc,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAe,SAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"backtop2.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const backtopProps = {\n /**\n * @description the button will not show until the scroll height reaches this value.\n */\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n /**\n * @description the target to trigger scroll.\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description right distance.\n */\n right: {\n type: Number,\n default: 40,\n },\n /**\n * @description bottom distance.\n */\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"names":[],"mappings":"AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE;AACU,MAAC,YAAY,GAAG;AAC5B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
@@ -1,7 +1,7 @@
1
1
  import '../../utils/index.mjs';
2
- import Breadcrumb from './src/breadcrumb.mjs';
2
+ import Breadcrumb from './src/breadcrumb2.mjs';
3
3
  import BreadcrumbItem from './src/breadcrumb-item2.mjs';
4
- export { breadcrumbProps } from './src/breadcrumb2.mjs';
4
+ export { breadcrumbProps } from './src/breadcrumb.mjs';
5
5
  export { breadcrumbItemProps } from './src/breadcrumb-item.mjs';
6
6
  export { breadcrumbKey } from './src/constants.mjs';
7
7
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
@@ -1,41 +1,16 @@
1
- import { defineComponent, ref, provide, onMounted, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import { breadcrumbKey } from './constants.mjs';
4
- import { breadcrumbProps } from './breadcrumb2.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 { buildProps } from '../../../utils/vue/props/runtime.mjs';
3
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
7
4
 
8
- const __default__ = defineComponent({
9
- name: "ElBreadcrumb"
10
- });
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- ...__default__,
13
- props: breadcrumbProps,
14
- setup(__props) {
15
- const props = __props;
16
- const ns = useNamespace("breadcrumb");
17
- const breadcrumb = ref();
18
- provide(breadcrumbKey, props);
19
- onMounted(() => {
20
- const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
21
- if (items.length) {
22
- items[items.length - 1].setAttribute("aria-current", "page");
23
- }
24
- });
25
- return (_ctx, _cache) => {
26
- return openBlock(), createElementBlock("div", {
27
- ref_key: "breadcrumb",
28
- ref: breadcrumb,
29
- class: normalizeClass(unref(ns).b()),
30
- "aria-label": "Breadcrumb",
31
- role: "navigation"
32
- }, [
33
- renderSlot(_ctx.$slots, "default")
34
- ], 2);
35
- };
5
+ const breadcrumbProps = buildProps({
6
+ separator: {
7
+ type: String,
8
+ default: "/"
9
+ },
10
+ separatorIcon: {
11
+ type: iconPropType
36
12
  }
37
13
  });
38
- var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\breadcrumb\\src\\breadcrumb.vue"]]);
39
14
 
40
- export { Breadcrumb as default };
15
+ export { breadcrumbProps };
41
16
  //# sourceMappingURL=breadcrumb.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n <div\n ref=\"breadcrumb\"\n :class=\"ns.b()\"\n aria-label=\"Breadcrumb\"\n role=\"navigation\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { onMounted, provide, ref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbProps } from './breadcrumb'\n\ndefineOptions({\n name: 'ElBreadcrumb',\n})\n\nconst props = defineProps(breadcrumbProps)\n\nconst ns = useNamespace('breadcrumb')\nconst breadcrumb = ref<HTMLDivElement>()\n\nprovide(breadcrumbKey, props)\n\nonMounted(() => {\n const items = breadcrumb.value!.querySelectorAll(`.${ns.e('item')}`)\n if (items.length) {\n items[items.length - 1].setAttribute('aria-current', 'page')\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,GAAoB,EAAA,CAAA;AAEvC,IAAA,OAAA,CAAQ,eAAe,KAAK,CAAA,CAAA;AAE5B,IAAA,SAAA,CAAU,MAAM;AACd,MAAM,MAAA,KAAA,GAAQ,WAAW,KAAO,CAAA,gBAAA,CAAiB,IAAI,EAAG,CAAA,CAAA,CAAE,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA;AACnE,MAAA,IAAI,MAAM,MAAQ,EAAA;AAChB,QAAA,KAAA,CAAM,KAAM,CAAA,MAAA,GAAS,CAAG,CAAA,CAAA,YAAA,CAAa,gBAAgB,MAAM,CAAA,CAAA;AAAA,OAC7D;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"breadcrumb.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const breadcrumbProps = buildProps({\n /**\n * @description separator character\n */\n separator: {\n type: String,\n default: '/',\n },\n /**\n * @description icon component of icon separator\n */\n separatorIcon: {\n type: iconPropType,\n },\n} as const)\nexport type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>\n"],"names":[],"mappings":";;;;AACY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,CAAC;;;;"}
@@ -1,16 +1,41 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
3
- import { iconPropType } from '../../../utils/vue/icon.mjs';
1
+ import { defineComponent, ref, provide, onMounted, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import { breadcrumbKey } from './constants.mjs';
4
+ import { breadcrumbProps } from './breadcrumb.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 breadcrumbProps = buildProps({
6
- separator: {
7
- type: String,
8
- default: "/"
9
- },
10
- separatorIcon: {
11
- type: iconPropType
8
+ const __default__ = defineComponent({
9
+ name: "ElBreadcrumb"
10
+ });
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...__default__,
13
+ props: breadcrumbProps,
14
+ setup(__props) {
15
+ const props = __props;
16
+ const ns = useNamespace("breadcrumb");
17
+ const breadcrumb = ref();
18
+ provide(breadcrumbKey, props);
19
+ onMounted(() => {
20
+ const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
21
+ if (items.length) {
22
+ items[items.length - 1].setAttribute("aria-current", "page");
23
+ }
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createElementBlock("div", {
27
+ ref_key: "breadcrumb",
28
+ ref: breadcrumb,
29
+ class: normalizeClass(unref(ns).b()),
30
+ "aria-label": "Breadcrumb",
31
+ role: "navigation"
32
+ }, [
33
+ renderSlot(_ctx.$slots, "default")
34
+ ], 2);
35
+ };
12
36
  }
13
37
  });
38
+ var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\breadcrumb\\src\\breadcrumb.vue"]]);
14
39
 
15
- export { breadcrumbProps };
40
+ export { Breadcrumb as default };
16
41
  //# sourceMappingURL=breadcrumb2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const breadcrumbProps = buildProps({\n /**\n * @description separator character\n */\n separator: {\n type: String,\n default: '/',\n },\n /**\n * @description icon component of icon separator\n */\n separatorIcon: {\n type: iconPropType,\n },\n} as const)\nexport type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>\n"],"names":[],"mappings":";;;;AACY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"breadcrumb2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n <div\n ref=\"breadcrumb\"\n :class=\"ns.b()\"\n aria-label=\"Breadcrumb\"\n role=\"navigation\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { onMounted, provide, ref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbProps } from './breadcrumb'\n\ndefineOptions({\n name: 'ElBreadcrumb',\n})\n\nconst props = defineProps(breadcrumbProps)\n\nconst ns = useNamespace('breadcrumb')\nconst breadcrumb = ref<HTMLDivElement>()\n\nprovide(breadcrumbKey, props)\n\nonMounted(() => {\n const items = breadcrumb.value!.querySelectorAll(`.${ns.e('item')}`)\n if (items.length) {\n items[items.length - 1].setAttribute('aria-current', 'page')\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,GAAoB,EAAA,CAAA;AAEvC,IAAA,OAAA,CAAQ,eAAe,KAAK,CAAA,CAAA;AAE5B,IAAA,SAAA,CAAU,MAAM;AACd,MAAM,MAAA,KAAA,GAAQ,WAAW,KAAO,CAAA,gBAAA,CAAiB,IAAI,EAAG,CAAA,CAAA,CAAE,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA;AACnE,MAAA,IAAI,MAAM,MAAQ,EAAA;AAChB,QAAA,KAAA,CAAM,KAAM,CAAA,MAAA,GAAS,CAAG,CAAA,CAAA,YAAA,CAAa,gBAAgB,MAAM,CAAA,CAAA;AAAA,OAC7D;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
2
  import Button from './src/button2.mjs';
3
- import ButtonGroup from './src/button-group2.mjs';
3
+ import ButtonGroup from './src/button-group.mjs';
4
4
  export { buttonEmits, buttonNativeTypes, buttonProps, buttonTypes } from './src/button.mjs';
5
5
  export { buttonGroupContextKey } from './src/constants.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
@@ -1,9 +1,33 @@
1
- import { buttonProps } from './button.mjs';
1
+ import { defineComponent, provide, reactive, toRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import { buttonGroupProps } from './button-group2.mjs';
4
+ import { buttonGroupContextKey } from './constants.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
7
 
3
- const buttonGroupProps = {
4
- size: buttonProps.size,
5
- type: buttonProps.type
6
- };
8
+ const __default__ = defineComponent({
9
+ name: "ElButtonGroup"
10
+ });
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...__default__,
13
+ props: buttonGroupProps,
14
+ setup(__props) {
15
+ const props = __props;
16
+ provide(buttonGroupContextKey, reactive({
17
+ size: toRef(props, "size"),
18
+ type: toRef(props, "type")
19
+ }));
20
+ const ns = useNamespace("button");
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createElementBlock("div", {
23
+ class: normalizeClass(`${unref(ns).b("group")}`)
24
+ }, [
25
+ renderSlot(_ctx.$slots, "default")
26
+ ], 2);
27
+ };
28
+ }
29
+ });
30
+ var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\button\\src\\button-group.vue"]]);
7
31
 
8
- export { buttonGroupProps };
32
+ export { ButtonGroup as default };
9
33
  //# sourceMappingURL=button-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { buttonProps } from './button'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const buttonGroupProps = {\n /**\n * @description control the size of buttons in this button-group\n */\n size: buttonProps.size,\n /**\n * @description control the type of buttons in this button-group\n */\n type: buttonProps.type,\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG;AAChC,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB;;;;"}
1
+ {"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.vue"],"sourcesContent":["<template>\n <div :class=\"`${ns.b('group')}`\">\n <slot />\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { provide, reactive, toRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { buttonGroupProps } from './button-group'\nimport { buttonGroupContextKey } from './constants'\n\ndefineOptions({\n name: 'ElButtonGroup',\n})\nconst props = defineProps(buttonGroupProps)\nprovide(\n buttonGroupContextKey,\n reactive({\n size: toRef(props, 'size'),\n type: toRef(props, 'type'),\n })\n)\nconst ns = useNamespace('button')\n</script>\n"],"names":[],"mappings":";;;;;;;mCAWc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAA,OAAA,CACE,uBACA,QAAS,CAAA;AAAA,MACP,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,MACzB,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,KAC1B,CACH,CAAA,CAAA;AACA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -1,33 +1,9 @@
1
- import { defineComponent, provide, reactive, toRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import { buttonGroupProps } from './button-group.mjs';
4
- import { buttonGroupContextKey } from './constants.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { buttonProps } from './button.mjs';
7
2
 
8
- const __default__ = defineComponent({
9
- name: "ElButtonGroup"
10
- });
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- ...__default__,
13
- props: buttonGroupProps,
14
- setup(__props) {
15
- const props = __props;
16
- provide(buttonGroupContextKey, reactive({
17
- size: toRef(props, "size"),
18
- type: toRef(props, "type")
19
- }));
20
- const ns = useNamespace("button");
21
- return (_ctx, _cache) => {
22
- return openBlock(), createElementBlock("div", {
23
- class: normalizeClass(`${unref(ns).b("group")}`)
24
- }, [
25
- renderSlot(_ctx.$slots, "default")
26
- ], 2);
27
- };
28
- }
29
- });
30
- var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\Haulistix\\beyond-ui\\packages\\components\\button\\src\\button-group.vue"]]);
3
+ const buttonGroupProps = {
4
+ size: buttonProps.size,
5
+ type: buttonProps.type
6
+ };
31
7
 
32
- export { ButtonGroup as default };
8
+ export { buttonGroupProps };
33
9
  //# sourceMappingURL=button-group2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group2.mjs","sources":["../../../../../../packages/components/button/src/button-group.vue"],"sourcesContent":["<template>\n <div :class=\"`${ns.b('group')}`\">\n <slot />\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { provide, reactive, toRef } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { buttonGroupProps } from './button-group'\nimport { buttonGroupContextKey } from './constants'\n\ndefineOptions({\n name: 'ElButtonGroup',\n})\nconst props = defineProps(buttonGroupProps)\nprovide(\n buttonGroupContextKey,\n reactive({\n size: toRef(props, 'size'),\n type: toRef(props, 'type'),\n })\n)\nconst ns = useNamespace('button')\n</script>\n"],"names":[],"mappings":";;;;;;;mCAWc,CAAA;AAAA,EACZ,IAAM,EAAA,eAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAA,OAAA,CACE,uBACA,QAAS,CAAA;AAAA,MACP,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,MACzB,IAAA,EAAM,KAAM,CAAA,KAAA,EAAO,MAAM,CAAA;AAAA,KAC1B,CACH,CAAA,CAAA;AACA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button-group2.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { buttonProps } from './button'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const buttonGroupProps = {\n /**\n * @description control the size of buttons in this button-group\n */\n size: buttonProps.size,\n /**\n * @description control the type of buttons in this button-group\n */\n type: buttonProps.type,\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG;AAChC,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB;;;;"}