element-pe 2.2.55 → 2.2.56

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 (528) hide show
  1. package/dist/index.full.js +1 -1
  2. package/dist/index.full.min.js +1 -1
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +1 -1
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +1 -1
  7. package/es/components/alert/index.mjs +2 -2
  8. package/es/components/alert/src/alert.mjs +38 -103
  9. package/es/components/alert/src/alert.mjs.map +1 -1
  10. package/es/components/alert/src/alert2.mjs +103 -38
  11. package/es/components/alert/src/alert2.mjs.map +1 -1
  12. package/es/components/autocomplete/src/autocomplete.mjs +1 -1
  13. package/es/components/avatar/index.mjs +2 -2
  14. package/es/components/avatar/src/avatar.mjs +76 -35
  15. package/es/components/avatar/src/avatar.mjs.map +1 -1
  16. package/es/components/avatar/src/avatar2.mjs +35 -76
  17. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  18. package/es/components/carousel/index.mjs +4 -4
  19. package/es/components/carousel/src/carousel-item.mjs +8 -63
  20. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  21. package/es/components/carousel/src/carousel-item2.mjs +63 -8
  22. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  23. package/es/components/carousel/src/carousel.mjs +56 -164
  24. package/es/components/carousel/src/carousel.mjs.map +1 -1
  25. package/es/components/carousel/src/carousel2.mjs +164 -56
  26. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  27. package/es/components/cascader/src/cascader.mjs +2 -2
  28. package/es/components/cascader-panel/src/index.mjs +1 -1
  29. package/es/components/cascader-panel/src/menu.mjs +1 -1
  30. package/es/components/cascader-panel/src/node.mjs +209 -116
  31. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  32. package/es/components/cascader-panel/src/node2.mjs +116 -209
  33. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  34. package/es/components/cascader-panel/src/store.mjs +1 -1
  35. package/es/components/check-tag/index.mjs +2 -2
  36. package/es/components/check-tag/src/check-tag.mjs +12 -30
  37. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  38. package/es/components/check-tag/src/check-tag2.mjs +30 -12
  39. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  40. package/es/components/checkbox/index.mjs +2 -2
  41. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  42. package/es/components/checkbox/src/checkbox.mjs +49 -117
  43. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  44. package/es/components/checkbox/src/checkbox2.mjs +117 -49
  45. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  46. package/es/components/collection/index.mjs +1 -1
  47. package/es/components/collection/src/collection.mjs +62 -10
  48. package/es/components/collection/src/collection.mjs.map +1 -1
  49. package/es/components/collection/src/collection2.mjs +10 -62
  50. package/es/components/collection/src/collection2.mjs.map +1 -1
  51. package/es/components/color-picker/index.mjs +2 -2
  52. package/es/components/color-picker/src/color-picker.mjs +46 -333
  53. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  54. package/es/components/color-picker/src/color-picker2.mjs +333 -46
  55. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  56. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  57. package/es/components/countdown/index.mjs +2 -2
  58. package/es/components/countdown/src/countdown.mjs +23 -76
  59. package/es/components/countdown/src/countdown.mjs.map +1 -1
  60. package/es/components/countdown/src/countdown2.mjs +76 -23
  61. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  62. package/es/components/descriptions/src/description2.mjs +1 -1
  63. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  64. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  65. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  66. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  67. package/es/components/dialog/index.mjs +2 -2
  68. package/es/components/dialog/src/dialog.mjs +73 -174
  69. package/es/components/dialog/src/dialog.mjs.map +1 -1
  70. package/es/components/dialog/src/dialog2.mjs +174 -73
  71. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  72. package/es/components/drawer/index.mjs +2 -2
  73. package/es/components/drawer/src/drawer.mjs +186 -25
  74. package/es/components/drawer/src/drawer.mjs.map +1 -1
  75. package/es/components/drawer/src/drawer2.mjs +25 -186
  76. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  77. package/es/components/dropdown/index.mjs +2 -2
  78. package/es/components/dropdown/src/dropdown-item-impl.mjs +3 -3
  79. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  80. package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
  81. package/es/components/dropdown/src/dropdown.mjs +310 -105
  82. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  83. package/es/components/dropdown/src/dropdown2.mjs +105 -310
  84. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  85. package/es/components/form/index.mjs +2 -2
  86. package/es/components/form/src/form.mjs +150 -57
  87. package/es/components/form/src/form.mjs.map +1 -1
  88. package/es/components/form/src/form2.mjs +57 -150
  89. package/es/components/form/src/form2.mjs.map +1 -1
  90. package/es/components/icon/index.mjs +2 -2
  91. package/es/components/icon/src/icon.mjs +36 -8
  92. package/es/components/icon/src/icon.mjs.map +1 -1
  93. package/es/components/icon/src/icon2.mjs +8 -36
  94. package/es/components/icon/src/icon2.mjs.map +1 -1
  95. package/es/components/index.mjs +36 -36
  96. package/es/components/input/index.mjs +2 -2
  97. package/es/components/input/src/input.mjs +108 -458
  98. package/es/components/input/src/input.mjs.map +1 -1
  99. package/es/components/input/src/input2.mjs +458 -108
  100. package/es/components/input/src/input2.mjs.map +1 -1
  101. package/es/components/link/index.mjs +2 -2
  102. package/es/components/link/src/link.mjs +50 -21
  103. package/es/components/link/src/link.mjs.map +1 -1
  104. package/es/components/link/src/link2.mjs +21 -50
  105. package/es/components/link/src/link2.mjs.map +1 -1
  106. package/es/components/menu/index.mjs +2 -2
  107. package/es/components/menu/src/menu-item.mjs +97 -14
  108. package/es/components/menu/src/menu-item.mjs.map +1 -1
  109. package/es/components/menu/src/menu-item2.mjs +14 -97
  110. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  111. package/es/components/pagination/src/components/jumper.mjs +9 -60
  112. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  113. package/es/components/pagination/src/components/jumper2.mjs +60 -9
  114. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  115. package/es/components/pagination/src/components/pager.mjs +216 -17
  116. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  117. package/es/components/pagination/src/components/pager2.mjs +17 -216
  118. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  119. package/es/components/pagination/src/components/prev.mjs +38 -18
  120. package/es/components/pagination/src/components/prev.mjs.map +1 -1
  121. package/es/components/pagination/src/components/prev2.mjs +18 -38
  122. package/es/components/pagination/src/components/prev2.mjs.map +1 -1
  123. package/es/components/pagination/src/components/total.mjs +28 -7
  124. package/es/components/pagination/src/components/total.mjs.map +1 -1
  125. package/es/components/pagination/src/components/total2.mjs +7 -28
  126. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  127. package/es/components/pagination/src/pagination.mjs +4 -4
  128. package/es/components/popconfirm/src/popconfirm.mjs +1 -1
  129. package/es/components/popover/index.mjs +2 -2
  130. package/es/components/popover/src/popover.mjs +66 -111
  131. package/es/components/popover/src/popover.mjs.map +1 -1
  132. package/es/components/popover/src/popover2.mjs +111 -66
  133. package/es/components/popover/src/popover2.mjs.map +1 -1
  134. package/es/components/popper/index.mjs +2 -2
  135. package/es/components/popper/src/content.mjs +94 -139
  136. package/es/components/popper/src/content.mjs.map +1 -1
  137. package/es/components/popper/src/content2.mjs +139 -94
  138. package/es/components/popper/src/content2.mjs.map +1 -1
  139. package/es/components/radio/index.mjs +2 -2
  140. package/es/components/radio/src/radio-button.mjs +9 -64
  141. package/es/components/radio/src/radio-button.mjs.map +1 -1
  142. package/es/components/radio/src/radio-button2.mjs +64 -9
  143. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  144. package/es/components/rate/index.mjs +2 -2
  145. package/es/components/rate/src/rate.mjs +257 -87
  146. package/es/components/rate/src/rate.mjs.map +1 -1
  147. package/es/components/rate/src/rate2.mjs +87 -257
  148. package/es/components/rate/src/rate2.mjs.map +1 -1
  149. package/es/components/result/index.mjs +2 -2
  150. package/es/components/result/src/result.mjs +63 -29
  151. package/es/components/result/src/result.mjs.map +1 -1
  152. package/es/components/result/src/result2.mjs +29 -63
  153. package/es/components/result/src/result2.mjs.map +1 -1
  154. package/es/components/roving-focus-group/index.mjs +3 -3
  155. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  156. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  157. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  158. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  159. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  160. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  161. package/es/components/scrollbar/index.mjs +3 -3
  162. package/es/components/scrollbar/src/bar.mjs +17 -42
  163. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  164. package/es/components/scrollbar/src/bar2.mjs +42 -17
  165. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  166. package/es/components/scrollbar/src/scrollbar.mjs +176 -46
  167. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  168. package/es/components/scrollbar/src/scrollbar2.mjs +46 -176
  169. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  170. package/es/components/scrollbar/src/thumb.mjs +134 -11
  171. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  172. package/es/components/scrollbar/src/thumb2.mjs +11 -134
  173. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  174. package/es/components/select/src/select.mjs +2 -2
  175. package/es/components/select-v2/src/defaults.mjs +1 -1
  176. package/es/components/skeleton/index.mjs +2 -2
  177. package/es/components/skeleton/src/skeleton.mjs +22 -49
  178. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  179. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  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 +93 -21
  183. package/es/components/slider/src/button.mjs.map +1 -1
  184. package/es/components/slider/src/button2.mjs +21 -93
  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 +4 -4
  191. package/es/components/steps/src/item.mjs +19 -190
  192. package/es/components/steps/src/item.mjs.map +1 -1
  193. package/es/components/steps/src/item2.mjs +190 -19
  194. package/es/components/steps/src/item2.mjs.map +1 -1
  195. package/es/components/steps/src/steps.mjs +36 -34
  196. package/es/components/steps/src/steps.mjs.map +1 -1
  197. package/es/components/steps/src/steps2.mjs +34 -36
  198. package/es/components/steps/src/steps2.mjs.map +1 -1
  199. package/es/components/tabs/index.mjs +2 -2
  200. package/es/components/tabs/src/tab-pane.mjs +14 -73
  201. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  202. package/es/components/tabs/src/tab-pane2.mjs +73 -14
  203. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  204. package/es/components/tag/index.mjs +2 -2
  205. package/es/components/tag/src/tag.mjs +33 -98
  206. package/es/components/tag/src/tag.mjs.map +1 -1
  207. package/es/components/tag/src/tag2.mjs +98 -33
  208. package/es/components/tag/src/tag2.mjs.map +1 -1
  209. package/es/components/teleport/index.mjs +2 -2
  210. package/es/components/teleport/src/teleport.mjs +44 -18
  211. package/es/components/teleport/src/teleport.mjs.map +1 -1
  212. package/es/components/teleport/src/teleport2.mjs +18 -44
  213. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  214. package/es/components/time-select/index.mjs +1 -1
  215. package/es/components/time-select/src/time-select.mjs +48 -118
  216. package/es/components/time-select/src/time-select.mjs.map +1 -1
  217. package/es/components/time-select/src/time-select2.mjs +118 -48
  218. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  219. package/es/components/tooltip/index.mjs +2 -2
  220. package/es/components/tooltip/src/content.mjs +31 -179
  221. package/es/components/tooltip/src/content.mjs.map +1 -1
  222. package/es/components/tooltip/src/content2.mjs +179 -31
  223. package/es/components/tooltip/src/content2.mjs.map +1 -1
  224. package/es/components/tooltip/src/tooltip.mjs +2 -2
  225. package/es/components/tooltip/src/tooltip2.mjs +2 -2
  226. package/es/components/tooltip/src/trigger.mjs +16 -73
  227. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  228. package/es/components/tooltip/src/trigger2.mjs +73 -16
  229. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  230. package/es/components/tooltip-v2/index.mjs +3 -3
  231. package/es/components/tooltip-v2/src/tooltip.mjs +20 -77
  232. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  233. package/es/components/tooltip-v2/src/tooltip2.mjs +77 -20
  234. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  235. package/es/components/tooltip-v2/src/trigger.mjs +12 -91
  236. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  237. package/es/components/tooltip-v2/src/trigger2.mjs +91 -12
  238. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  239. package/es/components/transfer/index.mjs +2 -2
  240. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  241. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  242. package/es/components/transfer/src/transfer-panel.mjs +19 -128
  243. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  244. package/es/components/transfer/src/transfer-panel2.mjs +128 -19
  245. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  246. package/es/components/transfer/src/transfer.mjs +162 -69
  247. package/es/components/transfer/src/transfer.mjs.map +1 -1
  248. package/es/components/transfer/src/transfer2.mjs +69 -162
  249. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  250. package/es/components/upload/index.mjs +3 -3
  251. package/es/components/upload/src/upload-content.mjs +33 -178
  252. package/es/components/upload/src/upload-content.mjs.map +1 -1
  253. package/es/components/upload/src/upload-content2.mjs +178 -33
  254. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  255. package/es/components/upload/src/upload-dragger.mjs +11 -72
  256. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  257. package/es/components/upload/src/upload-dragger2.mjs +72 -11
  258. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  259. package/es/components/upload/src/upload-list.mjs +177 -26
  260. package/es/components/upload/src/upload-list.mjs.map +1 -1
  261. package/es/components/upload/src/upload-list2.mjs +26 -177
  262. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  263. package/es/components/upload/src/upload2.mjs +2 -2
  264. package/es/index.mjs +36 -36
  265. package/es/utils/types.mjs +1 -1
  266. package/es/utils/types.mjs.map +1 -1
  267. package/lib/components/alert/index.js +2 -2
  268. package/lib/components/alert/src/alert.js +39 -102
  269. package/lib/components/alert/src/alert.js.map +1 -1
  270. package/lib/components/alert/src/alert2.js +102 -39
  271. package/lib/components/alert/src/alert2.js.map +1 -1
  272. package/lib/components/autocomplete/src/autocomplete.js +1 -1
  273. package/lib/components/avatar/index.js +2 -2
  274. package/lib/components/avatar/src/avatar.js +75 -35
  275. package/lib/components/avatar/src/avatar.js.map +1 -1
  276. package/lib/components/avatar/src/avatar2.js +35 -75
  277. package/lib/components/avatar/src/avatar2.js.map +1 -1
  278. package/lib/components/carousel/index.js +4 -4
  279. package/lib/components/carousel/src/carousel-item.js +8 -63
  280. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  281. package/lib/components/carousel/src/carousel-item2.js +63 -8
  282. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  283. package/lib/components/carousel/src/carousel.js +57 -164
  284. package/lib/components/carousel/src/carousel.js.map +1 -1
  285. package/lib/components/carousel/src/carousel2.js +164 -57
  286. package/lib/components/carousel/src/carousel2.js.map +1 -1
  287. package/lib/components/cascader/src/cascader.js +2 -2
  288. package/lib/components/cascader-panel/src/index.js +1 -1
  289. package/lib/components/cascader-panel/src/menu.js +1 -1
  290. package/lib/components/cascader-panel/src/node.js +209 -116
  291. package/lib/components/cascader-panel/src/node.js.map +1 -1
  292. package/lib/components/cascader-panel/src/node2.js +116 -209
  293. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  294. package/lib/components/cascader-panel/src/store.js +1 -1
  295. package/lib/components/check-tag/index.js +2 -2
  296. package/lib/components/check-tag/src/check-tag.js +13 -30
  297. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  298. package/lib/components/check-tag/src/check-tag2.js +30 -13
  299. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  300. package/lib/components/checkbox/index.js +2 -2
  301. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  302. package/lib/components/checkbox/src/checkbox.js +50 -117
  303. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  304. package/lib/components/checkbox/src/checkbox2.js +117 -50
  305. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  306. package/lib/components/collection/index.js +1 -1
  307. package/lib/components/collection/src/collection.js +62 -9
  308. package/lib/components/collection/src/collection.js.map +1 -1
  309. package/lib/components/collection/src/collection2.js +9 -62
  310. package/lib/components/collection/src/collection2.js.map +1 -1
  311. package/lib/components/color-picker/index.js +2 -2
  312. package/lib/components/color-picker/src/color-picker.js +46 -331
  313. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  314. package/lib/components/color-picker/src/color-picker2.js +331 -46
  315. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  316. package/lib/components/color-picker/src/components/predefine.js +1 -1
  317. package/lib/components/countdown/index.js +2 -2
  318. package/lib/components/countdown/src/countdown.js +24 -76
  319. package/lib/components/countdown/src/countdown.js.map +1 -1
  320. package/lib/components/countdown/src/countdown2.js +76 -24
  321. package/lib/components/countdown/src/countdown2.js.map +1 -1
  322. package/lib/components/descriptions/src/description2.js +1 -1
  323. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  324. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  325. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  326. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  327. package/lib/components/dialog/index.js +2 -2
  328. package/lib/components/dialog/src/dialog.js +74 -174
  329. package/lib/components/dialog/src/dialog.js.map +1 -1
  330. package/lib/components/dialog/src/dialog2.js +174 -74
  331. package/lib/components/dialog/src/dialog2.js.map +1 -1
  332. package/lib/components/drawer/index.js +2 -2
  333. package/lib/components/drawer/src/drawer.js +186 -26
  334. package/lib/components/drawer/src/drawer.js.map +1 -1
  335. package/lib/components/drawer/src/drawer2.js +26 -186
  336. package/lib/components/drawer/src/drawer2.js.map +1 -1
  337. package/lib/components/dropdown/index.js +2 -2
  338. package/lib/components/dropdown/src/dropdown-item-impl.js +3 -3
  339. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  340. package/lib/components/dropdown/src/dropdown-menu.js +2 -2
  341. package/lib/components/dropdown/src/dropdown.js +310 -114
  342. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  343. package/lib/components/dropdown/src/dropdown2.js +114 -310
  344. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  345. package/lib/components/form/index.js +2 -2
  346. package/lib/components/form/src/form.js +149 -57
  347. package/lib/components/form/src/form.js.map +1 -1
  348. package/lib/components/form/src/form2.js +57 -149
  349. package/lib/components/form/src/form2.js.map +1 -1
  350. package/lib/components/icon/index.js +2 -2
  351. package/lib/components/icon/src/icon.js +36 -8
  352. package/lib/components/icon/src/icon.js.map +1 -1
  353. package/lib/components/icon/src/icon2.js +8 -36
  354. package/lib/components/icon/src/icon2.js.map +1 -1
  355. package/lib/components/index.js +36 -36
  356. package/lib/components/input/index.js +2 -2
  357. package/lib/components/input/src/input.js +108 -457
  358. package/lib/components/input/src/input.js.map +1 -1
  359. package/lib/components/input/src/input2.js +457 -108
  360. package/lib/components/input/src/input2.js.map +1 -1
  361. package/lib/components/link/index.js +2 -2
  362. package/lib/components/link/src/link.js +50 -22
  363. package/lib/components/link/src/link.js.map +1 -1
  364. package/lib/components/link/src/link2.js +22 -50
  365. package/lib/components/link/src/link2.js.map +1 -1
  366. package/lib/components/menu/index.js +2 -2
  367. package/lib/components/menu/src/menu-item.js +97 -15
  368. package/lib/components/menu/src/menu-item.js.map +1 -1
  369. package/lib/components/menu/src/menu-item2.js +15 -97
  370. package/lib/components/menu/src/menu-item2.js.map +1 -1
  371. package/lib/components/pagination/src/components/jumper.js +9 -60
  372. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  373. package/lib/components/pagination/src/components/jumper2.js +60 -9
  374. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  375. package/lib/components/pagination/src/components/pager.js +216 -17
  376. package/lib/components/pagination/src/components/pager.js.map +1 -1
  377. package/lib/components/pagination/src/components/pager2.js +17 -216
  378. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  379. package/lib/components/pagination/src/components/prev.js +38 -19
  380. package/lib/components/pagination/src/components/prev.js.map +1 -1
  381. package/lib/components/pagination/src/components/prev2.js +19 -38
  382. package/lib/components/pagination/src/components/prev2.js.map +1 -1
  383. package/lib/components/pagination/src/components/total.js +28 -7
  384. package/lib/components/pagination/src/components/total.js.map +1 -1
  385. package/lib/components/pagination/src/components/total2.js +7 -28
  386. package/lib/components/pagination/src/components/total2.js.map +1 -1
  387. package/lib/components/pagination/src/pagination.js +4 -4
  388. package/lib/components/popconfirm/src/popconfirm.js +1 -1
  389. package/lib/components/popover/index.js +2 -2
  390. package/lib/components/popover/src/popover.js +67 -111
  391. package/lib/components/popover/src/popover.js.map +1 -1
  392. package/lib/components/popover/src/popover2.js +111 -67
  393. package/lib/components/popover/src/popover2.js.map +1 -1
  394. package/lib/components/popper/index.js +2 -2
  395. package/lib/components/popper/src/content.js +99 -139
  396. package/lib/components/popper/src/content.js.map +1 -1
  397. package/lib/components/popper/src/content2.js +139 -99
  398. package/lib/components/popper/src/content2.js.map +1 -1
  399. package/lib/components/radio/index.js +2 -2
  400. package/lib/components/radio/src/radio-button.js +9 -64
  401. package/lib/components/radio/src/radio-button.js.map +1 -1
  402. package/lib/components/radio/src/radio-button2.js +64 -9
  403. package/lib/components/radio/src/radio-button2.js.map +1 -1
  404. package/lib/components/rate/index.js +2 -2
  405. package/lib/components/rate/src/rate.js +256 -87
  406. package/lib/components/rate/src/rate.js.map +1 -1
  407. package/lib/components/rate/src/rate2.js +87 -256
  408. package/lib/components/rate/src/rate2.js.map +1 -1
  409. package/lib/components/result/index.js +2 -2
  410. package/lib/components/result/src/result.js +63 -31
  411. package/lib/components/result/src/result.js.map +1 -1
  412. package/lib/components/result/src/result2.js +31 -63
  413. package/lib/components/result/src/result2.js.map +1 -1
  414. package/lib/components/roving-focus-group/index.js +2 -2
  415. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  416. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  417. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  418. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  419. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  420. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  421. package/lib/components/scrollbar/index.js +3 -3
  422. package/lib/components/scrollbar/src/bar.js +17 -42
  423. package/lib/components/scrollbar/src/bar.js.map +1 -1
  424. package/lib/components/scrollbar/src/bar2.js +42 -17
  425. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  426. package/lib/components/scrollbar/src/scrollbar.js +176 -47
  427. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  428. package/lib/components/scrollbar/src/scrollbar2.js +47 -176
  429. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  430. package/lib/components/scrollbar/src/thumb.js +134 -11
  431. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  432. package/lib/components/scrollbar/src/thumb2.js +11 -134
  433. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  434. package/lib/components/select/src/select.js +2 -2
  435. package/lib/components/select-v2/src/defaults.js +1 -1
  436. package/lib/components/skeleton/index.js +2 -2
  437. package/lib/components/skeleton/src/skeleton.js +22 -49
  438. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  439. package/lib/components/skeleton/src/skeleton2.js +49 -22
  440. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  441. package/lib/components/slider/index.js +2 -2
  442. package/lib/components/slider/src/button.js +93 -22
  443. package/lib/components/slider/src/button.js.map +1 -1
  444. package/lib/components/slider/src/button2.js +22 -93
  445. package/lib/components/slider/src/button2.js.map +1 -1
  446. package/lib/components/slider/src/slider.js +233 -92
  447. package/lib/components/slider/src/slider.js.map +1 -1
  448. package/lib/components/slider/src/slider2.js +92 -233
  449. package/lib/components/slider/src/slider2.js.map +1 -1
  450. package/lib/components/steps/index.js +4 -4
  451. package/lib/components/steps/src/item.js +19 -190
  452. package/lib/components/steps/src/item.js.map +1 -1
  453. package/lib/components/steps/src/item2.js +190 -19
  454. package/lib/components/steps/src/item2.js.map +1 -1
  455. package/lib/components/steps/src/steps.js +37 -34
  456. package/lib/components/steps/src/steps.js.map +1 -1
  457. package/lib/components/steps/src/steps2.js +34 -37
  458. package/lib/components/steps/src/steps2.js.map +1 -1
  459. package/lib/components/tabs/index.js +2 -2
  460. package/lib/components/tabs/src/tab-pane.js +14 -73
  461. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  462. package/lib/components/tabs/src/tab-pane2.js +73 -14
  463. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  464. package/lib/components/tag/index.js +2 -2
  465. package/lib/components/tag/src/tag.js +34 -98
  466. package/lib/components/tag/src/tag.js.map +1 -1
  467. package/lib/components/tag/src/tag2.js +98 -34
  468. package/lib/components/tag/src/tag2.js.map +1 -1
  469. package/lib/components/teleport/index.js +2 -2
  470. package/lib/components/teleport/src/teleport.js +44 -18
  471. package/lib/components/teleport/src/teleport.js.map +1 -1
  472. package/lib/components/teleport/src/teleport2.js +18 -44
  473. package/lib/components/teleport/src/teleport2.js.map +1 -1
  474. package/lib/components/time-select/index.js +1 -1
  475. package/lib/components/time-select/src/time-select.js +48 -123
  476. package/lib/components/time-select/src/time-select.js.map +1 -1
  477. package/lib/components/time-select/src/time-select2.js +123 -48
  478. package/lib/components/time-select/src/time-select2.js.map +1 -1
  479. package/lib/components/tooltip/index.js +2 -2
  480. package/lib/components/tooltip/src/content.js +31 -179
  481. package/lib/components/tooltip/src/content.js.map +1 -1
  482. package/lib/components/tooltip/src/content2.js +179 -31
  483. package/lib/components/tooltip/src/content2.js.map +1 -1
  484. package/lib/components/tooltip/src/tooltip.js +2 -2
  485. package/lib/components/tooltip/src/tooltip2.js +2 -2
  486. package/lib/components/tooltip/src/trigger.js +16 -73
  487. package/lib/components/tooltip/src/trigger.js.map +1 -1
  488. package/lib/components/tooltip/src/trigger2.js +73 -16
  489. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  490. package/lib/components/tooltip-v2/index.js +3 -3
  491. package/lib/components/tooltip-v2/src/tooltip.js +20 -77
  492. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  493. package/lib/components/tooltip-v2/src/tooltip2.js +77 -20
  494. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  495. package/lib/components/tooltip-v2/src/trigger.js +12 -91
  496. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  497. package/lib/components/tooltip-v2/src/trigger2.js +91 -12
  498. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  499. package/lib/components/transfer/index.js +2 -2
  500. package/lib/components/transfer/src/composables/use-check.js +1 -1
  501. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  502. package/lib/components/transfer/src/transfer-panel.js +21 -128
  503. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  504. package/lib/components/transfer/src/transfer-panel2.js +128 -21
  505. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  506. package/lib/components/transfer/src/transfer.js +162 -73
  507. package/lib/components/transfer/src/transfer.js.map +1 -1
  508. package/lib/components/transfer/src/transfer2.js +73 -162
  509. package/lib/components/transfer/src/transfer2.js.map +1 -1
  510. package/lib/components/upload/index.js +3 -3
  511. package/lib/components/upload/src/upload-content.js +31 -176
  512. package/lib/components/upload/src/upload-content.js.map +1 -1
  513. package/lib/components/upload/src/upload-content2.js +176 -31
  514. package/lib/components/upload/src/upload-content2.js.map +1 -1
  515. package/lib/components/upload/src/upload-dragger.js +12 -72
  516. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  517. package/lib/components/upload/src/upload-dragger2.js +72 -12
  518. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  519. package/lib/components/upload/src/upload-list.js +177 -27
  520. package/lib/components/upload/src/upload-list.js.map +1 -1
  521. package/lib/components/upload/src/upload-list2.js +27 -177
  522. package/lib/components/upload/src/upload-list2.js.map +1 -1
  523. package/lib/components/upload/src/upload2.js +2 -2
  524. package/lib/index.js +36 -36
  525. package/lib/utils/types.js +1 -1
  526. package/lib/utils/types.js.map +1 -1
  527. package/package.json +1 -1
  528. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"result2.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":"result2.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;;;;"}
@@ -1,7 +1,7 @@
1
- import ElRovingFocusGroup from './src/roving-focus-group2.mjs';
2
- export { default as ElRovingFocusGroup, default } from './src/roving-focus-group2.mjs';
1
+ import ElRovingFocusGroup from './src/roving-focus-group.mjs';
2
+ export { default as ElRovingFocusGroup, default } from './src/roving-focus-group.mjs';
3
3
  export { default as ElRovingFocusItem } from './src/roving-focus-item.mjs';
4
4
  export { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './src/tokens.mjs';
5
5
  export { focusFirst, getFocusIntent, reorderArray } from './src/utils.mjs';
6
- export { ROVING_FOCUS_COLLECTION_INJECTION_KEY, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY } from './src/roving-focus-group.mjs';
6
+ export { ROVING_FOCUS_COLLECTION_INJECTION_KEY, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY } from './src/roving-focus-group2.mjs';
7
7
  //# sourceMappingURL=index.mjs.map
@@ -2,7 +2,7 @@ import { defineComponent, ref, inject, computed, unref, provide, readonly, toRef
2
2
  import { useEventListener } from '@vueuse/core';
3
3
  import '../../../utils/index.mjs';
4
4
  import '../../config-provider/index.mjs';
5
- import { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';
5
+ import { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group2.mjs';
6
6
  import { ROVING_FOCUS_GROUP_INJECTION_KEY } from './tokens.mjs';
7
7
  import { focusFirst } from './utils.mjs';
8
8
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,33 +1,31 @@
1
- import '../../../utils/index.mjs';
2
- import '../../collection/index.mjs';
3
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
- import { createCollectionWithScope } from '../../collection/src/collection2.mjs';
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';
2
+ import ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';
3
+ import { ElCollection } from './roving-focus-group2.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
5
 
6
- const rovingFocusGroupProps = buildProps({
7
- style: { type: definePropType([String, Array, Object]) },
8
- currentTabId: {
9
- type: definePropType(String)
10
- },
11
- defaultCurrentTabId: String,
12
- loop: Boolean,
13
- dir: {
14
- type: String,
15
- values: ["ltr", "rtl"],
16
- default: "ltr"
17
- },
18
- orientation: {
19
- type: definePropType(String)
20
- },
21
- onBlur: Function,
22
- onFocus: Function,
23
- onMousedown: Function
6
+ const _sfc_main = defineComponent({
7
+ name: "ElRovingFocusGroup",
8
+ components: {
9
+ ElFocusGroupCollection: ElCollection,
10
+ ElRovingFocusGroupImpl
11
+ }
24
12
  });
25
- const {
26
- ElCollection,
27
- ElCollectionItem,
28
- COLLECTION_INJECTION_KEY,
29
- COLLECTION_ITEM_INJECTION_KEY
30
- } = createCollectionWithScope("RovingFocusGroup");
13
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
+ const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
15
+ const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
16
+ return openBlock(), createBlock(_component_el_focus_group_collection, null, {
17
+ default: withCtx(() => [
18
+ createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
+ default: withCtx(() => [
20
+ renderSlot(_ctx.$slots, "default")
21
+ ]),
22
+ _: 3
23
+ }, 16)
24
+ ]),
25
+ _: 3
26
+ });
27
+ }
28
+ var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\workspace\\element-pe\\packages\\components\\roving-focus-group\\src\\roving-focus-group.vue"]]);
31
29
 
32
- export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
30
+ export { ElRovingFocusGroup as default };
33
31
  //# sourceMappingURL=roving-focus-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { createCollectionWithScope } from '@element-plus/components/collection'\nimport type { ExtractPropTypes, HTMLAttributes, StyleValue } from 'vue'\n\nexport const rovingFocusGroupProps = buildProps({\n style: { type: definePropType<StyleValue>([String, Array, Object]) },\n currentTabId: {\n type: definePropType<string | null>(String),\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String, // left for direction support\n values: ['ltr', 'rtl'],\n default: 'ltr',\n },\n orientation: {\n // left for orientation support\n type: definePropType<HTMLAttributes['aria-orientation']>(String),\n },\n\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function,\n})\n\nexport type ElRovingFocusGroupProps = ExtractPropTypes<\n typeof rovingFocusGroupProps\n>\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('RovingFocusGroup')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n}\n"],"names":[],"mappings":";;;;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,WAAW,EAAE,QAAQ;AACvB,CAAC,EAAE;AACE,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAG,yBAAyB,CAAC,kBAAkB;;;;"}
1
+ {"version":3,"file":"roving-focus-group.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.vue"],"sourcesContent":["<template>\n <el-focus-group-collection>\n <el-roving-focus-group-impl v-bind=\"$attrs\">\n <slot />\n </el-roving-focus-group-impl>\n </el-focus-group-collection>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.vue'\nimport { ElCollection as ElFocusGroupCollection } from './roving-focus-group'\n\nexport default defineComponent({\n name: 'ElRovingFocusGroup',\n components: {\n ElFocusGroupCollection,\n ElRovingFocusGroupImpl,\n },\n})\n</script>\n"],"names":["ElFocusGroupCollection","_createBlock","_withCtx","_createVNode","_renderSlot"],"mappings":";;;;;AAaA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVA,YAAA;AAAA,IACA,sBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;sBAlBCC,WAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CAH1B,MAE6B;AAAA,MAF7BC,WAAA,CAE6B,yEAFO,IAAM,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAAA,OAAA,EAAAD,OAAA,CACxC,MAAQ;AAAA,UAARE,UAAQ,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA,CAAA;;;;;;;;;;;"}
@@ -1,31 +1,33 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';
2
- import ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';
3
- import { ElCollection } from './roving-focus-group.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import '../../collection/index.mjs';
3
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
+ import { createCollectionWithScope } from '../../collection/src/collection.mjs';
5
5
 
6
- const _sfc_main = defineComponent({
7
- name: "ElRovingFocusGroup",
8
- components: {
9
- ElFocusGroupCollection: ElCollection,
10
- ElRovingFocusGroupImpl
11
- }
6
+ const rovingFocusGroupProps = buildProps({
7
+ style: { type: definePropType([String, Array, Object]) },
8
+ currentTabId: {
9
+ type: definePropType(String)
10
+ },
11
+ defaultCurrentTabId: String,
12
+ loop: Boolean,
13
+ dir: {
14
+ type: String,
15
+ values: ["ltr", "rtl"],
16
+ default: "ltr"
17
+ },
18
+ orientation: {
19
+ type: definePropType(String)
20
+ },
21
+ onBlur: Function,
22
+ onFocus: Function,
23
+ onMousedown: Function
12
24
  });
13
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
- const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
15
- const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
16
- return openBlock(), createBlock(_component_el_focus_group_collection, null, {
17
- default: withCtx(() => [
18
- createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
- default: withCtx(() => [
20
- renderSlot(_ctx.$slots, "default")
21
- ]),
22
- _: 3
23
- }, 16)
24
- ]),
25
- _: 3
26
- });
27
- }
28
- var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\workspace\\element-pe\\packages\\components\\roving-focus-group\\src\\roving-focus-group.vue"]]);
25
+ const {
26
+ ElCollection,
27
+ ElCollectionItem,
28
+ COLLECTION_INJECTION_KEY,
29
+ COLLECTION_ITEM_INJECTION_KEY
30
+ } = createCollectionWithScope("RovingFocusGroup");
29
31
 
30
- export { ElRovingFocusGroup as default };
32
+ export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
31
33
  //# sourceMappingURL=roving-focus-group2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group2.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.vue"],"sourcesContent":["<template>\n <el-focus-group-collection>\n <el-roving-focus-group-impl v-bind=\"$attrs\">\n <slot />\n </el-roving-focus-group-impl>\n </el-focus-group-collection>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.vue'\nimport { ElCollection as ElFocusGroupCollection } from './roving-focus-group'\n\nexport default defineComponent({\n name: 'ElRovingFocusGroup',\n components: {\n ElFocusGroupCollection,\n ElRovingFocusGroupImpl,\n },\n})\n</script>\n"],"names":["ElFocusGroupCollection","_createBlock","_withCtx","_createVNode","_renderSlot"],"mappings":";;;;;AAaA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVA,YAAA;AAAA,IACA,sBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;sBAlBCC,WAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CAH1B,MAE6B;AAAA,MAF7BC,WAAA,CAE6B,yEAFO,IAAM,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAAA,OAAA,EAAAD,OAAA,CACxC,MAAQ;AAAA,UAARE,UAAQ,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA,CAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"roving-focus-group2.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { createCollectionWithScope } from '@element-plus/components/collection'\nimport type { ExtractPropTypes, HTMLAttributes, StyleValue } from 'vue'\n\nexport const rovingFocusGroupProps = buildProps({\n style: { type: definePropType<StyleValue>([String, Array, Object]) },\n currentTabId: {\n type: definePropType<string | null>(String),\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String, // left for direction support\n values: ['ltr', 'rtl'],\n default: 'ltr',\n },\n orientation: {\n // left for orientation support\n type: definePropType<HTMLAttributes['aria-orientation']>(String),\n },\n\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function,\n})\n\nexport type ElRovingFocusGroupProps = ExtractPropTypes<\n typeof rovingFocusGroupProps\n>\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('RovingFocusGroup')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n}\n"],"names":[],"mappings":";;;;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,WAAW,EAAE,QAAQ;AACvB,CAAC,EAAE;AACE,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAG,yBAAyB,CAAC,kBAAkB;;;;"}
@@ -3,7 +3,7 @@ import '../../../hooks/index.mjs';
3
3
  import '../../../utils/index.mjs';
4
4
  import '../../../constants/index.mjs';
5
5
  import '../../config-provider/index.mjs';
6
- import { ElCollectionItem, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';
6
+ import { ElCollectionItem, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group2.mjs';
7
7
  import { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './tokens.mjs';
8
8
  import { getFocusIntent, reorderArray, focusFirst } from './utils.mjs';
9
9
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,8 +1,8 @@
1
1
  import '../../utils/index.mjs';
2
- import Scrollbar from './src/scrollbar2.mjs';
2
+ import Scrollbar from './src/scrollbar.mjs';
3
3
  export { BAR_MAP, GAP, renderThumbStyle } from './src/util.mjs';
4
- export { scrollbarEmits, scrollbarProps } from './src/scrollbar.mjs';
5
- export { thumbProps } from './src/thumb.mjs';
4
+ export { scrollbarEmits, scrollbarProps } from './src/scrollbar2.mjs';
5
+ export { thumbProps } from './src/thumb2.mjs';
6
6
  export { scrollbarContextKey } from './src/constants.mjs';
7
7
  import { withInstall } from '../../utils/vue/install.mjs';
8
8
 
@@ -1,47 +1,22 @@
1
- import { defineComponent, ref, openBlock, createElementBlock, Fragment, createVNode } from 'vue';
2
- import { GAP } from './util.mjs';
3
- import Thumb from './thumb2.mjs';
4
- import { barProps } from './bar2.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
6
3
 
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "bar",
9
- props: barProps,
10
- setup(__props, { expose }) {
11
- const props = __props;
12
- const moveX = ref(0);
13
- const moveY = ref(0);
14
- const handleScroll = (wrap) => {
15
- if (wrap) {
16
- const offsetHeight = wrap.offsetHeight - GAP;
17
- const offsetWidth = wrap.offsetWidth - GAP;
18
- moveY.value = wrap.scrollTop * 100 / offsetHeight * props.ratioY;
19
- moveX.value = wrap.scrollLeft * 100 / offsetWidth * props.ratioX;
20
- }
21
- };
22
- expose({
23
- handleScroll
24
- });
25
- return (_ctx, _cache) => {
26
- return openBlock(), createElementBlock(Fragment, null, [
27
- createVNode(Thumb, {
28
- move: moveX.value,
29
- ratio: _ctx.ratioX,
30
- size: _ctx.width,
31
- always: _ctx.always
32
- }, null, 8, ["move", "ratio", "size", "always"]),
33
- createVNode(Thumb, {
34
- move: moveY.value,
35
- ratio: _ctx.ratioY,
36
- size: _ctx.height,
37
- vertical: "",
38
- always: _ctx.always
39
- }, null, 8, ["move", "ratio", "size", "always"])
40
- ], 64);
41
- };
4
+ const barProps = buildProps({
5
+ always: {
6
+ type: Boolean,
7
+ default: true
8
+ },
9
+ width: String,
10
+ height: String,
11
+ ratioX: {
12
+ type: Number,
13
+ default: 1
14
+ },
15
+ ratioY: {
16
+ type: Number,
17
+ default: 1
42
18
  }
43
19
  });
44
- var Bar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\scrollbar\\src\\bar.vue"]]);
45
20
 
46
- export { Bar as default };
21
+ export { barProps };
47
22
  //# sourceMappingURL=bar.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"bar.mjs","sources":["../../../../../../packages/components/scrollbar/src/bar.vue"],"sourcesContent":["<template>\n <thumb :move=\"moveX\" :ratio=\"ratioX\" :size=\"width\" :always=\"always\" />\n <thumb\n :move=\"moveY\"\n :ratio=\"ratioY\"\n :size=\"height\"\n vertical\n :always=\"always\"\n />\n</template>\n<script lang=\"ts\" setup>\nimport { ref } from 'vue'\nimport { GAP } from './util'\nimport Thumb from './thumb.vue'\nimport { barProps } from './bar'\n\nconst props = defineProps(barProps)\n\nconst moveX = ref(0)\nconst moveY = ref(0)\n\nconst handleScroll = (wrap: HTMLDivElement) => {\n if (wrap) {\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n\n moveY.value = ((wrap.scrollTop * 100) / offsetHeight) * props.ratioY\n moveX.value = ((wrap.scrollLeft * 100) / offsetWidth) * props.ratioX\n }\n}\n\ndefineExpose({\n handleScroll,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;AAkBA,IAAM,MAAA,KAAA,GAAQ,IAAI,CAAC,CAAA,CAAA;AACnB,IAAM,MAAA,KAAA,GAAQ,IAAI,CAAC,CAAA,CAAA;AAEnB,IAAM,MAAA,YAAA,GAAe,CAAC,IAAyB,KAAA;AAC7C,MAAA,IAAI,IAAM,EAAA;AACR,QAAM,MAAA,YAAA,GAAe,KAAK,YAAe,GAAA,GAAA,CAAA;AACzC,QAAM,MAAA,WAAA,GAAc,KAAK,WAAc,GAAA,GAAA,CAAA;AAEvC,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,SAAY,GAAA,GAAA,GAAO,eAAgB,KAAM,CAAA,MAAA,CAAA;AAC9D,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,UAAa,GAAA,GAAA,GAAO,cAAe,KAAM,CAAA,MAAA,CAAA;AAAA,OAChE;AAAA,KACF,CAAA;AAEA,IAAa,MAAA,CAAA;AAAA,MACX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"bar.mjs","sources":["../../../../../../packages/components/scrollbar/src/bar.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Bar from './bar.vue'\n\nexport const barProps = buildProps({\n always: {\n type: Boolean,\n default: true,\n },\n width: String,\n height: String,\n ratioX: {\n type: Number,\n default: 1,\n },\n ratioY: {\n type: Number,\n default: 1,\n },\n} as const)\nexport type BarProps = ExtractPropTypes<typeof barProps>\n\nexport type BarInstance = InstanceType<typeof Bar>\n"],"names":[],"mappings":";;;AACY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC;;;;"}
@@ -1,22 +1,47 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, ref, openBlock, createElementBlock, Fragment, createVNode } from 'vue';
2
+ import { GAP } from './util.mjs';
3
+ import Thumb from './thumb.mjs';
4
+ import { barProps } from './bar.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
3
6
 
4
- const barProps = buildProps({
5
- always: {
6
- type: Boolean,
7
- default: true
8
- },
9
- width: String,
10
- height: String,
11
- ratioX: {
12
- type: Number,
13
- default: 1
14
- },
15
- ratioY: {
16
- type: Number,
17
- default: 1
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "bar",
9
+ props: barProps,
10
+ setup(__props, { expose }) {
11
+ const props = __props;
12
+ const moveX = ref(0);
13
+ const moveY = ref(0);
14
+ const handleScroll = (wrap) => {
15
+ if (wrap) {
16
+ const offsetHeight = wrap.offsetHeight - GAP;
17
+ const offsetWidth = wrap.offsetWidth - GAP;
18
+ moveY.value = wrap.scrollTop * 100 / offsetHeight * props.ratioY;
19
+ moveX.value = wrap.scrollLeft * 100 / offsetWidth * props.ratioX;
20
+ }
21
+ };
22
+ expose({
23
+ handleScroll
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createElementBlock(Fragment, null, [
27
+ createVNode(Thumb, {
28
+ move: moveX.value,
29
+ ratio: _ctx.ratioX,
30
+ size: _ctx.width,
31
+ always: _ctx.always
32
+ }, null, 8, ["move", "ratio", "size", "always"]),
33
+ createVNode(Thumb, {
34
+ move: moveY.value,
35
+ ratio: _ctx.ratioY,
36
+ size: _ctx.height,
37
+ vertical: "",
38
+ always: _ctx.always
39
+ }, null, 8, ["move", "ratio", "size", "always"])
40
+ ], 64);
41
+ };
18
42
  }
19
43
  });
44
+ var Bar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\scrollbar\\src\\bar.vue"]]);
20
45
 
21
- export { barProps };
46
+ export { Bar as default };
22
47
  //# sourceMappingURL=bar2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"bar2.mjs","sources":["../../../../../../packages/components/scrollbar/src/bar.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Bar from './bar.vue'\n\nexport const barProps = buildProps({\n always: {\n type: Boolean,\n default: true,\n },\n width: String,\n height: String,\n ratioX: {\n type: Number,\n default: 1,\n },\n ratioY: {\n type: Number,\n default: 1,\n },\n} as const)\nexport type BarProps = ExtractPropTypes<typeof barProps>\n\nexport type BarInstance = InstanceType<typeof Bar>\n"],"names":[],"mappings":";;;AACY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"bar2.mjs","sources":["../../../../../../packages/components/scrollbar/src/bar.vue"],"sourcesContent":["<template>\n <thumb :move=\"moveX\" :ratio=\"ratioX\" :size=\"width\" :always=\"always\" />\n <thumb\n :move=\"moveY\"\n :ratio=\"ratioY\"\n :size=\"height\"\n vertical\n :always=\"always\"\n />\n</template>\n<script lang=\"ts\" setup>\nimport { ref } from 'vue'\nimport { GAP } from './util'\nimport Thumb from './thumb.vue'\nimport { barProps } from './bar'\n\nconst props = defineProps(barProps)\n\nconst moveX = ref(0)\nconst moveY = ref(0)\n\nconst handleScroll = (wrap: HTMLDivElement) => {\n if (wrap) {\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n\n moveY.value = ((wrap.scrollTop * 100) / offsetHeight) * props.ratioY\n moveX.value = ((wrap.scrollLeft * 100) / offsetWidth) * props.ratioX\n }\n}\n\ndefineExpose({\n handleScroll,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;AAkBA,IAAM,MAAA,KAAA,GAAQ,IAAI,CAAC,CAAA,CAAA;AACnB,IAAM,MAAA,KAAA,GAAQ,IAAI,CAAC,CAAA,CAAA;AAEnB,IAAM,MAAA,YAAA,GAAe,CAAC,IAAyB,KAAA;AAC7C,MAAA,IAAI,IAAM,EAAA;AACR,QAAM,MAAA,YAAA,GAAe,KAAK,YAAe,GAAA,GAAA,CAAA;AACzC,QAAM,MAAA,WAAA,GAAc,KAAK,WAAc,GAAA,GAAA,CAAA;AAEvC,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,SAAY,GAAA,GAAA,GAAO,eAAgB,KAAM,CAAA,MAAA,CAAA;AAC9D,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,UAAa,GAAA,GAAA,GAAO,cAAe,KAAM,CAAA,MAAA,CAAA;AAAA,OAChE;AAAA,KACF,CAAA;AAEA,IAAa,MAAA,CAAA;AAAA,MACX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,53 +1,183 @@
1
+ import { defineComponent, ref, computed, nextTick, provide, reactive, onMounted, onUpdated, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, renderSlot, createCommentVNode } from 'vue';
2
+ import '../../config-provider/index.mjs';
3
+ import { useResizeObserver, useEventListener } from '@vueuse/core';
1
4
  import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
5
+ import '../../../hooks/index.mjs';
6
+ import { GAP } from './util.mjs';
7
+ import Bar from './bar2.mjs';
8
+ import { scrollbarContextKey } from './constants.mjs';
9
+ import { scrollbarProps, scrollbarEmits } from './scrollbar2.mjs';
10
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
11
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
12
+ import { addUnit } from '../../../utils/dom/style.mjs';
13
+ import { isObject } from '@vue/shared';
3
14
  import { isNumber } from '../../../utils/types.mjs';
15
+ import { debugWarn } from '../../../utils/error.mjs';
16
+ import { watch } from '../../config-provider/src/for-editor.mjs';
4
17
 
5
- const scrollbarProps = buildProps({
6
- height: {
7
- type: [String, Number],
8
- default: ""
9
- },
10
- maxHeight: {
11
- type: [String, Number],
12
- default: ""
13
- },
14
- native: {
15
- type: Boolean,
16
- default: false
17
- },
18
- wrapStyle: {
19
- type: definePropType([String, Object, Array]),
20
- default: ""
21
- },
22
- wrapClass: {
23
- type: [String, Array],
24
- default: ""
25
- },
26
- viewClass: {
27
- type: [String, Array],
28
- default: ""
29
- },
30
- viewStyle: {
31
- type: [String, Array, Object],
32
- default: ""
33
- },
34
- noresize: Boolean,
35
- tag: {
36
- type: String,
37
- default: "div"
38
- },
39
- always: Boolean,
40
- minSize: {
41
- type: Number,
42
- default: 20
18
+ const COMPONENT_NAME = "ElScrollbar";
19
+ const __default__ = defineComponent({
20
+ name: COMPONENT_NAME
21
+ });
22
+ const _sfc_main = /* @__PURE__ */ defineComponent({
23
+ ...__default__,
24
+ props: scrollbarProps,
25
+ emits: scrollbarEmits,
26
+ setup(__props, { expose, emit }) {
27
+ const props = __props;
28
+ const ns = useNamespace("scrollbar");
29
+ let stopResizeObserver = void 0;
30
+ let stopResizeListener = void 0;
31
+ const scrollbarRef = ref();
32
+ const wrapRef = ref();
33
+ const resizeRef = ref();
34
+ const sizeWidth = ref("0");
35
+ const sizeHeight = ref("0");
36
+ const barRef = ref();
37
+ const ratioY = ref(1);
38
+ const ratioX = ref(1);
39
+ const style = computed(() => {
40
+ const style2 = {};
41
+ if (props.height)
42
+ style2.height = addUnit(props.height);
43
+ if (props.maxHeight)
44
+ style2.maxHeight = addUnit(props.maxHeight);
45
+ return [props.wrapStyle, style2];
46
+ });
47
+ const wrapKls = computed(() => {
48
+ return [
49
+ props.wrapClass,
50
+ ns.e("wrap"),
51
+ { [ns.em("wrap", "hidden-default")]: !props.native }
52
+ ];
53
+ });
54
+ const resizeKls = computed(() => {
55
+ return [ns.e("view"), props.viewClass];
56
+ });
57
+ const handleScroll = () => {
58
+ var _a;
59
+ if (wrapRef.value) {
60
+ (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
61
+ emit("scroll", {
62
+ scrollTop: wrapRef.value.scrollTop,
63
+ scrollLeft: wrapRef.value.scrollLeft
64
+ });
65
+ }
66
+ };
67
+ function scrollTo(arg1, arg2) {
68
+ if (isObject(arg1)) {
69
+ wrapRef.value.scrollTo(arg1);
70
+ } else if (isNumber(arg1) && isNumber(arg2)) {
71
+ wrapRef.value.scrollTo(arg1, arg2);
72
+ }
73
+ }
74
+ const setScrollTop = (value) => {
75
+ if (!isNumber(value)) {
76
+ debugWarn(COMPONENT_NAME, "value must be a number");
77
+ return;
78
+ }
79
+ wrapRef.value.scrollTop = value;
80
+ };
81
+ const setScrollLeft = (value) => {
82
+ if (!isNumber(value)) {
83
+ debugWarn(COMPONENT_NAME, "value must be a number");
84
+ return;
85
+ }
86
+ wrapRef.value.scrollLeft = value;
87
+ };
88
+ const update = () => {
89
+ if (!wrapRef.value)
90
+ return;
91
+ const offsetHeight = wrapRef.value.offsetHeight - GAP;
92
+ const offsetWidth = wrapRef.value.offsetWidth - GAP;
93
+ const originalHeight = offsetHeight ** 2 / wrapRef.value.scrollHeight;
94
+ const originalWidth = offsetWidth ** 2 / wrapRef.value.scrollWidth;
95
+ const height = Math.max(originalHeight, props.minSize);
96
+ const width = Math.max(originalWidth, props.minSize);
97
+ ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
98
+ ratioX.value = originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width));
99
+ sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : "";
100
+ sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : "";
101
+ };
102
+ watch(() => props.noresize, (noresize) => {
103
+ if (noresize) {
104
+ stopResizeObserver == null ? void 0 : stopResizeObserver();
105
+ stopResizeListener == null ? void 0 : stopResizeListener();
106
+ } else {
107
+ ;
108
+ ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
109
+ stopResizeListener = useEventListener("resize", update);
110
+ }
111
+ }, { immediate: true });
112
+ watch(() => [props.maxHeight, props.height], () => {
113
+ if (!props.native)
114
+ nextTick(() => {
115
+ var _a;
116
+ update();
117
+ if (wrapRef.value) {
118
+ (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
119
+ }
120
+ });
121
+ });
122
+ provide(scrollbarContextKey, reactive({
123
+ scrollbarElement: scrollbarRef,
124
+ wrapElement: wrapRef
125
+ }));
126
+ onMounted(() => {
127
+ if (!props.native)
128
+ nextTick(() => {
129
+ update();
130
+ });
131
+ });
132
+ onUpdated(() => update());
133
+ expose({
134
+ wrapRef,
135
+ update,
136
+ scrollTo,
137
+ setScrollTop,
138
+ setScrollLeft,
139
+ handleScroll
140
+ });
141
+ return (_ctx, _cache) => {
142
+ return openBlock(), createElementBlock("div", {
143
+ ref_key: "scrollbarRef",
144
+ ref: scrollbarRef,
145
+ class: normalizeClass(unref(ns).b())
146
+ }, [
147
+ createElementVNode("div", {
148
+ ref_key: "wrapRef",
149
+ ref: wrapRef,
150
+ class: normalizeClass(unref(wrapKls)),
151
+ style: normalizeStyle(unref(style)),
152
+ onScroll: handleScroll
153
+ }, [
154
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
155
+ ref_key: "resizeRef",
156
+ ref: resizeRef,
157
+ class: normalizeClass(unref(resizeKls)),
158
+ style: normalizeStyle(_ctx.viewStyle)
159
+ }, {
160
+ default: withCtx(() => [
161
+ renderSlot(_ctx.$slots, "default")
162
+ ]),
163
+ _: 3
164
+ }, 8, ["class", "style"]))
165
+ ], 38),
166
+ !_ctx.native ? (openBlock(), createBlock(Bar, {
167
+ key: 0,
168
+ ref_key: "barRef",
169
+ ref: barRef,
170
+ height: sizeHeight.value,
171
+ width: sizeWidth.value,
172
+ always: _ctx.always,
173
+ "ratio-x": ratioX.value,
174
+ "ratio-y": ratioY.value
175
+ }, null, 8, ["height", "width", "always", "ratio-x", "ratio-y"])) : createCommentVNode("v-if", true)
176
+ ], 2);
177
+ };
43
178
  }
44
179
  });
45
- const scrollbarEmits = {
46
- scroll: ({
47
- scrollTop,
48
- scrollLeft
49
- }) => [scrollTop, scrollLeft].every(isNumber)
50
- };
180
+ var Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\scrollbar\\src\\scrollbar.vue"]]);
51
181
 
52
- export { scrollbarEmits, scrollbarProps };
182
+ export { Scrollbar as default };
53
183
  //# sourceMappingURL=scrollbar.mjs.map