element-pe 2.0.3 → 2.0.4

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 (490) 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/autocomplete/index.d.ts +51 -51
  8. package/es/components/autocomplete/src/autocomplete.vue.d.ts +51 -51
  9. package/es/components/backtop/index.mjs +2 -2
  10. package/es/components/backtop/src/backtop.mjs +100 -21
  11. package/es/components/backtop/src/backtop.mjs.map +1 -1
  12. package/es/components/backtop/src/backtop2.mjs +21 -100
  13. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  14. package/es/components/button/index.mjs +3 -3
  15. package/es/components/button/src/button-group.mjs +30 -5
  16. package/es/components/button/src/button-group.mjs.map +1 -1
  17. package/es/components/button/src/button-group2.mjs +5 -30
  18. package/es/components/button/src/button-group2.mjs.map +1 -1
  19. package/es/components/button/src/button.mjs +106 -51
  20. package/es/components/button/src/button.mjs.map +1 -1
  21. package/es/components/button/src/button2.mjs +51 -106
  22. package/es/components/button/src/button2.mjs.map +1 -1
  23. package/es/components/calendar/index.mjs +2 -2
  24. package/es/components/calendar/src/calendar.mjs +237 -15
  25. package/es/components/calendar/src/calendar.mjs.map +1 -1
  26. package/es/components/calendar/src/calendar2.mjs +15 -237
  27. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  28. package/es/components/calendar/src/date-table.mjs +152 -31
  29. package/es/components/calendar/src/date-table.mjs.map +1 -1
  30. package/es/components/calendar/src/date-table2.mjs +31 -152
  31. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  32. package/es/components/card/index.mjs +2 -2
  33. package/es/components/card/src/card.mjs +35 -15
  34. package/es/components/card/src/card.mjs.map +1 -1
  35. package/es/components/card/src/card2.mjs +15 -35
  36. package/es/components/card/src/card2.mjs.map +1 -1
  37. package/es/components/carousel/index.mjs +4 -4
  38. package/es/components/carousel/src/carousel-item.mjs +155 -7
  39. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  40. package/es/components/carousel/src/carousel-item2.mjs +7 -155
  41. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  42. package/es/components/carousel/src/carousel.mjs +319 -48
  43. package/es/components/carousel/src/carousel.mjs.map +1 -1
  44. package/es/components/carousel/src/carousel2.mjs +48 -319
  45. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  46. package/es/components/cascader/index.d.ts +68 -68
  47. package/es/components/cascader/src/index.mjs +1 -1
  48. package/es/components/cascader/src/index.vue.d.ts +34 -34
  49. package/es/components/cascader-panel/src/config.mjs +1 -1
  50. package/es/components/cascader-panel/src/index.mjs +1 -1
  51. package/es/components/cascader-panel/src/menu.mjs +1 -1
  52. package/es/components/cascader-panel/src/node.mjs +120 -209
  53. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  54. package/es/components/cascader-panel/src/node2.mjs +209 -120
  55. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  56. package/es/components/cascader-panel/src/store.mjs +1 -1
  57. package/es/components/collapse/index.mjs +2 -2
  58. package/es/components/collapse/src/collapse.mjs +61 -14
  59. package/es/components/collapse/src/collapse.mjs.map +1 -1
  60. package/es/components/collapse/src/collapse2.mjs +14 -61
  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 -63
  64. package/es/components/collection/src/collection.mjs.map +1 -1
  65. package/es/components/collection/src/collection2.mjs +63 -10
  66. package/es/components/collection/src/collection2.mjs.map +1 -1
  67. package/es/components/dialog/index.mjs +2 -2
  68. package/es/components/dialog/src/dialog.mjs +70 -113
  69. package/es/components/dialog/src/dialog.mjs.map +1 -1
  70. package/es/components/dialog/src/dialog2.mjs +113 -70
  71. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  72. package/es/components/divider/index.mjs +2 -2
  73. package/es/components/divider/src/divider.mjs +34 -17
  74. package/es/components/divider/src/divider.mjs.map +1 -1
  75. package/es/components/divider/src/divider2.mjs +17 -34
  76. package/es/components/divider/src/divider2.mjs.map +1 -1
  77. package/es/components/drawer/src/drawer2.mjs +1 -1
  78. package/es/components/dropdown/index.d.ts +10 -10
  79. package/es/components/dropdown/index.mjs +2 -2
  80. package/es/components/dropdown/src/dropdown-item-impl.mjs +3 -3
  81. package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  82. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  83. package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  84. package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
  85. package/es/components/dropdown/src/dropdown.d.ts +1 -1
  86. package/es/components/dropdown/src/dropdown.mjs +100 -247
  87. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  88. package/es/components/dropdown/src/dropdown.vue.d.ts +8 -8
  89. package/es/components/dropdown/src/dropdown2.mjs +247 -100
  90. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  91. package/es/components/icon/index.mjs +2 -2
  92. package/es/components/icon/src/icon.mjs +35 -8
  93. package/es/components/icon/src/icon.mjs.map +1 -1
  94. package/es/components/icon/src/icon2.mjs +8 -35
  95. package/es/components/icon/src/icon2.mjs.map +1 -1
  96. package/es/components/image/index.d.ts +1 -1
  97. package/es/components/image/src/image.vue.d.ts +1 -1
  98. package/es/components/image-viewer/index.d.ts +1 -1
  99. package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  100. package/es/components/index.mjs +29 -29
  101. package/es/components/input/index.d.ts +11 -11
  102. package/es/components/input/src/input.vue.d.ts +11 -11
  103. package/es/components/input-number/index.d.ts +22 -22
  104. package/es/components/input-number/index.mjs +2 -2
  105. package/es/components/input-number/src/input-number.mjs +53 -284
  106. package/es/components/input-number/src/input-number.mjs.map +1 -1
  107. package/es/components/input-number/src/input-number.vue.d.ts +22 -22
  108. package/es/components/input-number/src/input-number2.mjs +284 -53
  109. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  110. package/es/components/link/index.mjs +2 -2
  111. package/es/components/link/src/link.mjs +49 -22
  112. package/es/components/link/src/link.mjs.map +1 -1
  113. package/es/components/link/src/link2.mjs +22 -49
  114. package/es/components/link/src/link2.mjs.map +1 -1
  115. package/es/components/menu/index.mjs +2 -2
  116. package/es/components/menu/src/menu-item.mjs +14 -94
  117. package/es/components/menu/src/menu-item.mjs.map +1 -1
  118. package/es/components/menu/src/menu-item2.mjs +94 -14
  119. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  120. package/es/components/message/index.mjs +1 -1
  121. package/es/components/message/src/message-method.mjs +2 -2
  122. package/es/components/message/src/message.mjs +67 -151
  123. package/es/components/message/src/message.mjs.map +1 -1
  124. package/es/components/message/src/message2.mjs +151 -67
  125. package/es/components/message/src/message2.mjs.map +1 -1
  126. package/es/components/notification/index.mjs +1 -1
  127. package/es/components/notification/src/notification.mjs +68 -150
  128. package/es/components/notification/src/notification.mjs.map +1 -1
  129. package/es/components/notification/src/notification2.mjs +150 -68
  130. package/es/components/notification/src/notification2.mjs.map +1 -1
  131. package/es/components/notification/src/notify.mjs +2 -2
  132. package/es/components/page-header/index.mjs +2 -2
  133. package/es/components/page-header/src/page-header.mjs +60 -17
  134. package/es/components/page-header/src/page-header.mjs.map +1 -1
  135. package/es/components/page-header/src/page-header2.mjs +17 -60
  136. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  137. package/es/components/popconfirm/index.mjs +2 -2
  138. package/es/components/popconfirm/src/popconfirm.mjs +119 -52
  139. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  140. package/es/components/popconfirm/src/popconfirm2.mjs +52 -119
  141. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  142. package/es/components/popover/index.d.ts +16 -16
  143. package/es/components/popover/src/index.vue.d.ts +8 -8
  144. package/es/components/popover/src/popover.d.ts +1 -1
  145. package/es/components/popover/src/popover.mjs +1 -1
  146. package/es/components/popper/index.mjs +2 -2
  147. package/es/components/popper/src/arrow.mjs +37 -7
  148. package/es/components/popper/src/arrow.mjs.map +1 -1
  149. package/es/components/popper/src/arrow2.mjs +7 -37
  150. package/es/components/popper/src/arrow2.mjs.map +1 -1
  151. package/es/components/popper/src/content.vue.d.ts +3 -3
  152. package/es/components/radio/index.mjs +2 -2
  153. package/es/components/radio/src/radio-button.mjs +85 -9
  154. package/es/components/radio/src/radio-button.mjs.map +1 -1
  155. package/es/components/radio/src/radio-button2.mjs +9 -85
  156. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  157. package/es/components/rate/index.mjs +2 -2
  158. package/es/components/rate/src/rate.mjs +239 -88
  159. package/es/components/rate/src/rate.mjs.map +1 -1
  160. package/es/components/rate/src/rate2.mjs +88 -239
  161. package/es/components/rate/src/rate2.mjs.map +1 -1
  162. package/es/components/roving-focus-group/index.mjs +3 -3
  163. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  164. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  165. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  166. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  167. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  168. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  169. package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  170. package/es/components/scrollbar/index.mjs +2 -2
  171. package/es/components/scrollbar/src/bar.mjs +22 -45
  172. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  173. package/es/components/scrollbar/src/bar2.mjs +45 -22
  174. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  175. package/es/components/scrollbar/src/scrollbar.mjs +175 -49
  176. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  177. package/es/components/scrollbar/src/scrollbar2.mjs +49 -175
  178. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  179. package/es/components/select/index.d.ts +7 -7
  180. package/es/components/select/src/select.mjs +1 -1
  181. package/es/components/select/src/select.vue.d.ts +7 -7
  182. package/es/components/select/src/useSelect.d.ts +5 -5
  183. package/es/components/select-v2/index.d.ts +14 -14
  184. package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
  185. package/es/components/select-v2/src/select.vue.d.ts +7 -7
  186. package/es/components/select-v2/src/useSelect.d.ts +5 -5
  187. package/es/components/skeleton/index.mjs +2 -2
  188. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  189. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  190. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  191. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  192. package/es/components/skeleton/src/skeleton.mjs +1 -1
  193. package/es/components/switch/index.mjs +2 -2
  194. package/es/components/switch/src/switch.mjs +250 -87
  195. package/es/components/switch/src/switch.mjs.map +1 -1
  196. package/es/components/switch/src/switch2.mjs +87 -250
  197. package/es/components/switch/src/switch2.mjs.map +1 -1
  198. package/es/components/table/index.d.ts +1 -1
  199. package/es/components/table/src/filter-panel.vue.d.ts +5 -5
  200. package/es/components/table/src/table.vue.d.ts +1 -1
  201. package/es/components/tag/index.d.ts +1 -1
  202. package/es/components/tag/index.mjs +2 -2
  203. package/es/components/tag/src/tag.mjs +93 -33
  204. package/es/components/tag/src/tag.mjs.map +1 -1
  205. package/es/components/tag/src/tag.vue.d.ts +1 -1
  206. package/es/components/tag/src/tag2.mjs +33 -93
  207. package/es/components/tag/src/tag2.mjs.map +1 -1
  208. package/es/components/teleport/index.mjs +2 -2
  209. package/es/components/teleport/src/teleport.mjs +43 -18
  210. package/es/components/teleport/src/teleport.mjs.map +1 -1
  211. package/es/components/teleport/src/teleport2.mjs +18 -43
  212. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  213. package/es/components/time-picker/src/common/picker.vue.d.ts +6 -6
  214. package/es/components/time-select/index.d.ts +2 -2
  215. package/es/components/time-select/src/time-select.vue.d.ts +1 -1
  216. package/es/components/timeline/index.mjs +2 -2
  217. package/es/components/timeline/src/timeline-item.mjs +39 -73
  218. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  219. package/es/components/timeline/src/timeline-item2.mjs +73 -39
  220. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  221. package/es/components/tooltip/index.d.ts +3 -3
  222. package/es/components/tooltip/src/content.vue.d.ts +5 -5
  223. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  224. package/es/components/tooltip/src/tooltip.mjs +2 -2
  225. package/es/components/tooltip/src/tooltip.vue.d.ts +3 -3
  226. package/es/components/tooltip/src/trigger.vue.d.ts +3 -3
  227. package/es/components/tooltip-v2/index.mjs +2 -2
  228. package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
  229. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  230. package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
  231. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  232. package/es/components/upload/index.d.ts +1 -1
  233. package/es/components/upload/index.mjs +3 -3
  234. package/es/components/upload/src/upload-content.mjs +1 -1
  235. package/es/components/upload/src/upload-content2.mjs +2 -2
  236. package/es/components/upload/src/upload-dragger.mjs +70 -11
  237. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  238. package/es/components/upload/src/upload-dragger2.mjs +11 -70
  239. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  240. package/es/components/upload/src/upload-list2.mjs +1 -1
  241. package/es/components/upload/src/upload.mjs +106 -121
  242. package/es/components/upload/src/upload.mjs.map +1 -1
  243. package/es/components/upload/src/upload.vue.d.ts +1 -1
  244. package/es/components/upload/src/upload2.mjs +121 -106
  245. package/es/components/upload/src/upload2.mjs.map +1 -1
  246. package/es/components/upload/src/use-handlers.mjs +1 -1
  247. package/es/index.mjs +29 -29
  248. package/lib/components/autocomplete/index.d.ts +51 -51
  249. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +51 -51
  250. package/lib/components/backtop/index.js +2 -2
  251. package/lib/components/backtop/src/backtop.js +100 -22
  252. package/lib/components/backtop/src/backtop.js.map +1 -1
  253. package/lib/components/backtop/src/backtop2.js +22 -100
  254. package/lib/components/backtop/src/backtop2.js.map +1 -1
  255. package/lib/components/button/index.js +3 -3
  256. package/lib/components/button/src/button-group.js +30 -5
  257. package/lib/components/button/src/button-group.js.map +1 -1
  258. package/lib/components/button/src/button-group2.js +5 -30
  259. package/lib/components/button/src/button-group2.js.map +1 -1
  260. package/lib/components/button/src/button.js +106 -54
  261. package/lib/components/button/src/button.js.map +1 -1
  262. package/lib/components/button/src/button2.js +54 -106
  263. package/lib/components/button/src/button2.js.map +1 -1
  264. package/lib/components/calendar/index.js +2 -2
  265. package/lib/components/calendar/src/calendar.js +241 -16
  266. package/lib/components/calendar/src/calendar.js.map +1 -1
  267. package/lib/components/calendar/src/calendar2.js +16 -241
  268. package/lib/components/calendar/src/calendar2.js.map +1 -1
  269. package/lib/components/calendar/src/date-table.js +157 -35
  270. package/lib/components/calendar/src/date-table.js.map +1 -1
  271. package/lib/components/calendar/src/date-table2.js +35 -157
  272. package/lib/components/calendar/src/date-table2.js.map +1 -1
  273. package/lib/components/card/index.js +2 -2
  274. package/lib/components/card/src/card.js +35 -15
  275. package/lib/components/card/src/card.js.map +1 -1
  276. package/lib/components/card/src/card2.js +15 -35
  277. package/lib/components/card/src/card2.js.map +1 -1
  278. package/lib/components/carousel/index.js +4 -4
  279. package/lib/components/carousel/src/carousel-item.js +155 -7
  280. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  281. package/lib/components/carousel/src/carousel-item2.js +7 -155
  282. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  283. package/lib/components/carousel/src/carousel.js +319 -49
  284. package/lib/components/carousel/src/carousel.js.map +1 -1
  285. package/lib/components/carousel/src/carousel2.js +49 -319
  286. package/lib/components/carousel/src/carousel2.js.map +1 -1
  287. package/lib/components/cascader/index.d.ts +68 -68
  288. package/lib/components/cascader/src/index.js +1 -1
  289. package/lib/components/cascader/src/index.vue.d.ts +34 -34
  290. package/lib/components/cascader-panel/src/config.js +1 -1
  291. package/lib/components/cascader-panel/src/index.js +1 -1
  292. package/lib/components/cascader-panel/src/menu.js +1 -1
  293. package/lib/components/cascader-panel/src/node.js +121 -209
  294. package/lib/components/cascader-panel/src/node.js.map +1 -1
  295. package/lib/components/cascader-panel/src/node2.js +209 -121
  296. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  297. package/lib/components/cascader-panel/src/store.js +1 -1
  298. package/lib/components/collapse/index.js +2 -2
  299. package/lib/components/collapse/src/collapse.js +61 -16
  300. package/lib/components/collapse/src/collapse.js.map +1 -1
  301. package/lib/components/collapse/src/collapse2.js +16 -61
  302. package/lib/components/collapse/src/collapse2.js.map +1 -1
  303. package/lib/components/collection/index.js +1 -1
  304. package/lib/components/collection/src/collection.js +9 -63
  305. package/lib/components/collection/src/collection.js.map +1 -1
  306. package/lib/components/collection/src/collection2.js +63 -9
  307. package/lib/components/collection/src/collection2.js.map +1 -1
  308. package/lib/components/dialog/index.js +2 -2
  309. package/lib/components/dialog/src/dialog.js +71 -113
  310. package/lib/components/dialog/src/dialog.js.map +1 -1
  311. package/lib/components/dialog/src/dialog2.js +113 -71
  312. package/lib/components/dialog/src/dialog2.js.map +1 -1
  313. package/lib/components/divider/index.js +2 -2
  314. package/lib/components/divider/src/divider.js +34 -17
  315. package/lib/components/divider/src/divider.js.map +1 -1
  316. package/lib/components/divider/src/divider2.js +17 -34
  317. package/lib/components/divider/src/divider2.js.map +1 -1
  318. package/lib/components/drawer/src/drawer2.js +1 -1
  319. package/lib/components/dropdown/index.d.ts +10 -10
  320. package/lib/components/dropdown/index.js +2 -2
  321. package/lib/components/dropdown/src/dropdown-item-impl.js +3 -3
  322. package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
  323. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  324. package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
  325. package/lib/components/dropdown/src/dropdown-menu.js +2 -2
  326. package/lib/components/dropdown/src/dropdown.d.ts +1 -1
  327. package/lib/components/dropdown/src/dropdown.js +108 -246
  328. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  329. package/lib/components/dropdown/src/dropdown.vue.d.ts +8 -8
  330. package/lib/components/dropdown/src/dropdown2.js +246 -108
  331. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  332. package/lib/components/icon/index.js +2 -2
  333. package/lib/components/icon/src/icon.js +35 -8
  334. package/lib/components/icon/src/icon.js.map +1 -1
  335. package/lib/components/icon/src/icon2.js +8 -35
  336. package/lib/components/icon/src/icon2.js.map +1 -1
  337. package/lib/components/image/index.d.ts +1 -1
  338. package/lib/components/image/src/image.vue.d.ts +1 -1
  339. package/lib/components/image-viewer/index.d.ts +1 -1
  340. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  341. package/lib/components/index.js +29 -29
  342. package/lib/components/input/index.d.ts +11 -11
  343. package/lib/components/input/src/input.vue.d.ts +11 -11
  344. package/lib/components/input-number/index.d.ts +22 -22
  345. package/lib/components/input-number/index.js +2 -2
  346. package/lib/components/input-number/src/input-number.js +54 -284
  347. package/lib/components/input-number/src/input-number.js.map +1 -1
  348. package/lib/components/input-number/src/input-number.vue.d.ts +22 -22
  349. package/lib/components/input-number/src/input-number2.js +284 -54
  350. package/lib/components/input-number/src/input-number2.js.map +1 -1
  351. package/lib/components/link/index.js +2 -2
  352. package/lib/components/link/src/link.js +49 -23
  353. package/lib/components/link/src/link.js.map +1 -1
  354. package/lib/components/link/src/link2.js +23 -49
  355. package/lib/components/link/src/link2.js.map +1 -1
  356. package/lib/components/menu/index.js +2 -2
  357. package/lib/components/menu/src/menu-item.js +15 -94
  358. package/lib/components/menu/src/menu-item.js.map +1 -1
  359. package/lib/components/menu/src/menu-item2.js +94 -15
  360. package/lib/components/menu/src/menu-item2.js.map +1 -1
  361. package/lib/components/message/index.js +1 -1
  362. package/lib/components/message/src/message-method.js +2 -2
  363. package/lib/components/message/src/message.js +68 -150
  364. package/lib/components/message/src/message.js.map +1 -1
  365. package/lib/components/message/src/message2.js +150 -68
  366. package/lib/components/message/src/message2.js.map +1 -1
  367. package/lib/components/notification/index.js +1 -1
  368. package/lib/components/notification/src/notification.js +70 -150
  369. package/lib/components/notification/src/notification.js.map +1 -1
  370. package/lib/components/notification/src/notification2.js +150 -70
  371. package/lib/components/notification/src/notification2.js.map +1 -1
  372. package/lib/components/notification/src/notify.js +2 -2
  373. package/lib/components/page-header/index.js +2 -2
  374. package/lib/components/page-header/src/page-header.js +60 -18
  375. package/lib/components/page-header/src/page-header.js.map +1 -1
  376. package/lib/components/page-header/src/page-header2.js +18 -60
  377. package/lib/components/page-header/src/page-header2.js.map +1 -1
  378. package/lib/components/popconfirm/index.js +2 -2
  379. package/lib/components/popconfirm/src/popconfirm.js +119 -52
  380. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  381. package/lib/components/popconfirm/src/popconfirm2.js +52 -119
  382. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  383. package/lib/components/popover/index.d.ts +16 -16
  384. package/lib/components/popover/src/index.vue.d.ts +8 -8
  385. package/lib/components/popover/src/popover.d.ts +1 -1
  386. package/lib/components/popover/src/popover.js +1 -1
  387. package/lib/components/popper/index.js +2 -2
  388. package/lib/components/popper/src/arrow.js +37 -7
  389. package/lib/components/popper/src/arrow.js.map +1 -1
  390. package/lib/components/popper/src/arrow2.js +7 -37
  391. package/lib/components/popper/src/arrow2.js.map +1 -1
  392. package/lib/components/popper/src/content.vue.d.ts +3 -3
  393. package/lib/components/radio/index.js +2 -2
  394. package/lib/components/radio/src/radio-button.js +84 -8
  395. package/lib/components/radio/src/radio-button.js.map +1 -1
  396. package/lib/components/radio/src/radio-button2.js +8 -84
  397. package/lib/components/radio/src/radio-button2.js.map +1 -1
  398. package/lib/components/rate/index.js +2 -2
  399. package/lib/components/rate/src/rate.js +239 -89
  400. package/lib/components/rate/src/rate.js.map +1 -1
  401. package/lib/components/rate/src/rate2.js +89 -239
  402. package/lib/components/rate/src/rate2.js.map +1 -1
  403. package/lib/components/roving-focus-group/index.js +2 -2
  404. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  405. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  406. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  407. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  408. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  409. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  410. package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
  411. package/lib/components/scrollbar/index.js +2 -2
  412. package/lib/components/scrollbar/src/bar.js +22 -45
  413. package/lib/components/scrollbar/src/bar.js.map +1 -1
  414. package/lib/components/scrollbar/src/bar2.js +45 -22
  415. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  416. package/lib/components/scrollbar/src/scrollbar.js +175 -50
  417. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  418. package/lib/components/scrollbar/src/scrollbar2.js +50 -175
  419. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  420. package/lib/components/select/index.d.ts +7 -7
  421. package/lib/components/select/src/select.js +1 -1
  422. package/lib/components/select/src/select.vue.d.ts +7 -7
  423. package/lib/components/select/src/useSelect.d.ts +5 -5
  424. package/lib/components/select-v2/index.d.ts +14 -14
  425. package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
  426. package/lib/components/select-v2/src/select.vue.d.ts +7 -7
  427. package/lib/components/select-v2/src/useSelect.d.ts +5 -5
  428. package/lib/components/skeleton/index.js +2 -2
  429. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  430. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  431. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  432. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  433. package/lib/components/skeleton/src/skeleton.js +1 -1
  434. package/lib/components/switch/index.js +2 -2
  435. package/lib/components/switch/src/switch.js +249 -87
  436. package/lib/components/switch/src/switch.js.map +1 -1
  437. package/lib/components/switch/src/switch2.js +87 -249
  438. package/lib/components/switch/src/switch2.js.map +1 -1
  439. package/lib/components/table/index.d.ts +1 -1
  440. package/lib/components/table/src/filter-panel.vue.d.ts +5 -5
  441. package/lib/components/table/src/table.vue.d.ts +1 -1
  442. package/lib/components/tag/index.d.ts +1 -1
  443. package/lib/components/tag/index.js +2 -2
  444. package/lib/components/tag/src/tag.js +93 -34
  445. package/lib/components/tag/src/tag.js.map +1 -1
  446. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  447. package/lib/components/tag/src/tag2.js +34 -93
  448. package/lib/components/tag/src/tag2.js.map +1 -1
  449. package/lib/components/teleport/index.js +2 -2
  450. package/lib/components/teleport/src/teleport.js +43 -18
  451. package/lib/components/teleport/src/teleport.js.map +1 -1
  452. package/lib/components/teleport/src/teleport2.js +18 -43
  453. package/lib/components/teleport/src/teleport2.js.map +1 -1
  454. package/lib/components/time-picker/src/common/picker.vue.d.ts +6 -6
  455. package/lib/components/time-select/index.d.ts +2 -2
  456. package/lib/components/time-select/src/time-select.vue.d.ts +1 -1
  457. package/lib/components/timeline/index.js +2 -2
  458. package/lib/components/timeline/src/timeline-item.js +39 -73
  459. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  460. package/lib/components/timeline/src/timeline-item2.js +73 -39
  461. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  462. package/lib/components/tooltip/index.d.ts +3 -3
  463. package/lib/components/tooltip/src/content.vue.d.ts +5 -5
  464. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  465. package/lib/components/tooltip/src/tooltip.js +2 -2
  466. package/lib/components/tooltip/src/tooltip.vue.d.ts +3 -3
  467. package/lib/components/tooltip/src/trigger.vue.d.ts +3 -3
  468. package/lib/components/tooltip-v2/index.js +2 -2
  469. package/lib/components/tooltip-v2/src/tooltip.js +73 -20
  470. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  471. package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
  472. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  473. package/lib/components/upload/index.d.ts +1 -1
  474. package/lib/components/upload/index.js +3 -3
  475. package/lib/components/upload/src/upload-content.js +1 -1
  476. package/lib/components/upload/src/upload-content2.js +2 -2
  477. package/lib/components/upload/src/upload-dragger.js +70 -12
  478. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  479. package/lib/components/upload/src/upload-dragger2.js +12 -70
  480. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  481. package/lib/components/upload/src/upload-list2.js +1 -1
  482. package/lib/components/upload/src/upload.js +109 -121
  483. package/lib/components/upload/src/upload.js.map +1 -1
  484. package/lib/components/upload/src/upload.vue.d.ts +1 -1
  485. package/lib/components/upload/src/upload2.js +121 -109
  486. package/lib/components/upload/src/upload2.js.map +1 -1
  487. package/lib/components/upload/src/use-handlers.js +1 -1
  488. package/lib/index.js +29 -29
  489. package/package.json +1 -1
  490. package/web-types.json +1 -1
@@ -2,164 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
5
  require('../../../utils/index.js');
7
- require('../../../hooks/index.js');
8
- require('../../../tokens/index.js');
9
- var carouselItem = require('./carousel-item.js');
10
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
11
- var index = require('../../../hooks/use-namespace/index.js');
12
- var carousel = require('../../../tokens/carousel.js');
13
- var error = require('../../../utils/error.js');
14
- var types = require('../../../utils/types.js');
6
+ var props = require('../../../utils/vue/props.js');
15
7
 
16
- const __default__ = {
17
- name: "ElCarouselItem"
18
- };
19
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20
- ...__default__,
21
- props: carouselItem.carouselItemProps,
22
- setup(__props) {
23
- const props = __props;
24
- const ns = index.useNamespace("carousel");
25
- const COMPONENT_NAME = "ElCarouselItem";
26
- const carouselContext = vue.inject(carousel.carouselContextKey);
27
- const instance = vue.getCurrentInstance();
28
- if (!carouselContext) {
29
- error.debugWarn(COMPONENT_NAME, "usage: <el-carousel></el-carousel-item></el-carousel>");
30
- }
31
- if (!instance) {
32
- error.debugWarn(COMPONENT_NAME, "compositional hook can only be invoked inside setups");
33
- }
34
- const CARD_SCALE = 0.83;
35
- const hover = vue.ref(false);
36
- const translate = vue.ref(0);
37
- const scale = vue.ref(1);
38
- const active = vue.ref(false);
39
- const ready = vue.ref(false);
40
- const inStage = vue.ref(false);
41
- const animating = vue.ref(false);
42
- const { isCardType, isVertical } = carouselContext;
43
- const itemStyle = vue.computed(() => {
44
- const translateType = `translate${vue.unref(isVertical) ? "Y" : "X"}`;
45
- const _translate = `${translateType}(${vue.unref(translate)}px)`;
46
- const _scale = `scale(${vue.unref(scale)})`;
47
- const transform = [_translate, _scale].join(" ");
48
- return {
49
- transform
50
- };
51
- });
52
- function processIndex(index, activeIndex, length) {
53
- const lastItemIndex = length - 1;
54
- const prevItemIndex = activeIndex - 1;
55
- const nextItemIndex = activeIndex + 1;
56
- const halfItemIndex = length / 2;
57
- if (activeIndex === 0 && index === lastItemIndex) {
58
- return -1;
59
- } else if (activeIndex === lastItemIndex && index === 0) {
60
- return length;
61
- } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {
62
- return length + 1;
63
- } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {
64
- return -2;
65
- }
66
- return index;
67
- }
68
- function calcCardTranslate(index, activeIndex) {
69
- var _a;
70
- const parentWidth = ((_a = carouselContext.root.value) == null ? void 0 : _a.offsetWidth) || 0;
71
- if (inStage.value) {
72
- return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
73
- } else if (index < activeIndex) {
74
- return -(1 + CARD_SCALE) * parentWidth / 4;
75
- } else {
76
- return (3 + CARD_SCALE) * parentWidth / 4;
77
- }
78
- }
79
- function calcTranslate(index, activeIndex, isVertical2) {
80
- const rootEl = carouselContext.root.value;
81
- if (!rootEl)
82
- return 0;
83
- const distance = (isVertical2 ? rootEl.offsetHeight : rootEl.offsetWidth) || 0;
84
- return distance * (index - activeIndex);
85
- }
86
- const translateItem = (index, activeIndex, oldIndex) => {
87
- var _a;
88
- const _isCardType = vue.unref(isCardType);
89
- const carouselItemLength = (_a = carouselContext.items.value.length) != null ? _a : Number.NaN;
90
- const isActive = index === activeIndex;
91
- if (!_isCardType && !types.isUndefined(oldIndex)) {
92
- animating.value = isActive || index === oldIndex;
93
- }
94
- if (!isActive && carouselItemLength > 2 && carouselContext.loop) {
95
- index = processIndex(index, activeIndex, carouselItemLength);
96
- }
97
- const _isVertical = vue.unref(isVertical);
98
- active.value = isActive;
99
- if (_isCardType) {
100
- if (_isVertical) {
101
- error.debugWarn("Carousel", "vertical direction is not supported for card mode");
102
- }
103
- inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1;
104
- translate.value = calcCardTranslate(index, activeIndex);
105
- scale.value = vue.unref(active) ? 1 : CARD_SCALE;
106
- } else {
107
- translate.value = calcTranslate(index, activeIndex, _isVertical);
108
- }
109
- ready.value = true;
110
- };
111
- function handleItemClick() {
112
- if (carouselContext && vue.unref(isCardType)) {
113
- const index = carouselContext.items.value.findIndex(({ uid }) => uid === instance.uid);
114
- carouselContext.setActiveItem(index);
115
- }
116
- }
117
- vue.onMounted(() => {
118
- carouselContext.addItem({
119
- props,
120
- states: vue.reactive({
121
- hover,
122
- translate,
123
- scale,
124
- active,
125
- ready,
126
- inStage,
127
- animating
128
- }),
129
- uid: instance.uid,
130
- translateItem
131
- });
132
- });
133
- vue.onUnmounted(() => {
134
- carouselContext.removeItem(instance.uid);
135
- });
136
- return (_ctx, _cache) => {
137
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
138
- class: vue.normalizeClass([
139
- vue.unref(ns).e("item"),
140
- vue.unref(ns).is("active", active.value),
141
- vue.unref(ns).is("in-stage", inStage.value),
142
- vue.unref(ns).is("hover", hover.value),
143
- vue.unref(ns).is("animating", animating.value),
144
- { [vue.unref(ns).em("item", "card")]: vue.unref(isCardType) }
145
- ]),
146
- style: vue.normalizeStyle(vue.unref(itemStyle)),
147
- onClick: handleItemClick
148
- }, [
149
- vue.unref(isCardType) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
150
- key: 0,
151
- class: vue.normalizeClass(vue.unref(ns).e("mask"))
152
- }, null, 2)), [
153
- [vue.vShow, !active.value]
154
- ]) : vue.createCommentVNode("v-if", true),
155
- vue.renderSlot(_ctx.$slots, "default")
156
- ], 6)), [
157
- [vue.vShow, ready.value]
158
- ]);
159
- };
8
+ const carouselItemProps = props.buildProps({
9
+ name: { type: String, default: "" },
10
+ label: {
11
+ type: [String, Number],
12
+ default: ""
160
13
  }
161
14
  });
162
- var CarouselItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/carousel/src/carousel-item.vue"]]);
163
15
 
164
- exports["default"] = CarouselItem;
16
+ exports.carouselItemProps = carouselItemProps;
165
17
  //# sourceMappingURL=carousel-item2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel-item2.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"ready\"\n :class=\"[\n ns.e('item'),\n ns.is('active', active),\n ns.is('in-stage', inStage),\n ns.is('hover', hover),\n ns.is('animating', animating),\n { [ns.em('item', 'card')]: isCardType },\n ]\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div v-if=\"isCardType\" v-show=\"!active\" :class=\"ns.e('mask')\" />\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n getCurrentInstance,\n inject,\n onMounted,\n onUnmounted,\n reactive,\n ref,\n unref,\n} from 'vue'\nimport { debugWarn, isUndefined } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { carouselContextKey } from '@element-plus/tokens'\nimport { carouselItemProps } from './carousel-item'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElCarouselItem',\n})\n\nconst props = defineProps(carouselItemProps)\nconst ns = useNamespace('carousel')\nconst COMPONENT_NAME = 'ElCarouselItem'\n// inject\nconst carouselContext = inject(carouselContextKey)!\n// instance\nconst instance = getCurrentInstance()!\nif (!carouselContext) {\n debugWarn(\n COMPONENT_NAME,\n 'usage: <el-carousel></el-carousel-item></el-carousel>'\n )\n}\n\nif (!instance) {\n debugWarn(\n COMPONENT_NAME,\n 'compositional hook can only be invoked inside setups'\n )\n}\n\nconst CARD_SCALE = 0.83\n\nconst hover = ref(false)\nconst translate = ref(0)\nconst scale = ref(1)\nconst active = ref(false)\nconst ready = ref(false)\nconst inStage = ref(false)\nconst animating = ref(false)\n\n// computed\nconst { isCardType, isVertical } = carouselContext\n\nconst itemStyle = computed<CSSProperties>(() => {\n const translateType = `translate${unref(isVertical) ? 'Y' : 'X'}`\n const _translate = `${translateType}(${unref(translate)}px)`\n const _scale = `scale(${unref(scale)})`\n const transform = [_translate, _scale].join(' ')\n\n return {\n transform,\n }\n})\n\n// methods\n\nfunction processIndex(index: number, activeIndex: number, length: number) {\n const lastItemIndex = length - 1\n const prevItemIndex = activeIndex - 1\n const nextItemIndex = activeIndex + 1\n const halfItemIndex = length / 2\n\n if (activeIndex === 0 && index === lastItemIndex) {\n return -1\n } else if (activeIndex === lastItemIndex && index === 0) {\n return length\n } else if (index < prevItemIndex && activeIndex - index >= halfItemIndex) {\n return length + 1\n } else if (index > nextItemIndex && index - activeIndex >= halfItemIndex) {\n return -2\n }\n return index\n}\n\nfunction calcCardTranslate(index: number, activeIndex: number) {\n const parentWidth = carouselContext.root.value?.offsetWidth || 0\n if (inStage.value) {\n return (parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1)) / 4\n } else if (index < activeIndex) {\n return (-(1 + CARD_SCALE) * parentWidth) / 4\n } else {\n return ((3 + CARD_SCALE) * parentWidth) / 4\n }\n}\n\nfunction calcTranslate(\n index: number,\n activeIndex: number,\n isVertical: boolean\n) {\n const rootEl = carouselContext.root.value\n if (!rootEl) return 0\n\n const distance = (isVertical ? rootEl.offsetHeight : rootEl.offsetWidth) || 0\n return distance * (index - activeIndex)\n}\n\nconst translateItem = (\n index: number,\n activeIndex: number,\n oldIndex?: number\n) => {\n const _isCardType = unref(isCardType)\n const carouselItemLength = carouselContext.items.value.length ?? Number.NaN\n\n const isActive = index === activeIndex\n if (!_isCardType && !isUndefined(oldIndex)) {\n animating.value = isActive || index === oldIndex\n }\n\n if (!isActive && carouselItemLength > 2 && carouselContext.loop) {\n index = processIndex(index, activeIndex, carouselItemLength)\n }\n\n const _isVertical = unref(isVertical)\n active.value = isActive\n\n if (_isCardType) {\n if (_isVertical) {\n debugWarn('Carousel', 'vertical direction is not supported for card mode')\n }\n inStage.value = Math.round(Math.abs(index - activeIndex)) <= 1\n translate.value = calcCardTranslate(index, activeIndex)\n scale.value = unref(active) ? 1 : CARD_SCALE\n } else {\n translate.value = calcTranslate(index, activeIndex, _isVertical)\n }\n\n ready.value = true\n}\n\nfunction handleItemClick() {\n if (carouselContext && unref(isCardType)) {\n const index = carouselContext.items.value.findIndex(\n ({ uid }) => uid === instance.uid\n )\n carouselContext.setActiveItem(index)\n }\n}\n\n// lifecycle\nonMounted(() => {\n carouselContext.addItem({\n props,\n states: reactive({\n hover,\n translate,\n scale,\n active,\n ready,\n inStage,\n animating,\n }),\n uid: instance.uid,\n translateItem,\n })\n})\n\nonUnmounted(() => {\n carouselContext.removeItem(instance.uid)\n})\n</script>\n"],"names":["useNamespace","inject","carouselContextKey","getCurrentInstance","debugWarn","ref","computed","unref","isUndefined","onMounted","reactive","onUnmounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0CA,IAAA,MAAA,EAAA,GAAAA,mBAAA,UAAA,CAAA,CA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A,GAAA,EAAA,QAAA,CAAA,GAAA;AAAA,QACA,aAAA;AAEA,OAAA,CAAA,CAAA;AACA,KAAA,CAAA,CAAA;AAAA,IACAC,eAAA,CAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"carousel-item2.js","sources":["../../../../../../packages/components/carousel/src/carousel-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type CarouselItem from './carousel-item.vue'\n\nexport const carouselItemProps = buildProps({\n name: { type: String, default: '' },\n label: {\n type: [String, Number],\n default: '',\n },\n} as const)\n\nexport type CarouselItemProps = ExtractPropTypes<typeof carouselItemProps>\n\nexport type CarouselItemInstance = InstanceType<typeof CarouselItem>\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,iBAAiB,GAAGA,gBAAU,CAAC;AAC5C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
@@ -2,58 +2,328 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../utils/index.js');
6
- var props = require('../../../utils/vue/props.js');
5
+ var vue = require('vue');
6
+ var lodashUnified = require('lodash-unified');
7
7
  var core = require('@vueuse/core');
8
+ require('../../../utils/index.js');
9
+ var index$1 = require('../../icon/index.js');
10
+ var iconsVue = require('@element-plus/icons-vue');
11
+ require('../../../hooks/index.js');
12
+ require('../../../tokens/index.js');
13
+ var carousel = require('./carousel2.js');
14
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
15
+ var index = require('../../../hooks/use-namespace/index.js');
16
+ var shared = require('@vue/shared');
17
+ var error = require('../../../utils/error.js');
18
+ var carousel$1 = require('../../../tokens/carousel.js');
8
19
 
9
- const carouselProps = props.buildProps({
10
- initialIndex: {
11
- type: Number,
12
- default: 0
13
- },
14
- height: { type: String, default: "" },
15
- trigger: {
16
- type: String,
17
- default: "hover"
18
- },
19
- autoplay: {
20
- type: Boolean,
21
- default: true
22
- },
23
- interval: {
24
- type: Number,
25
- default: 3e3
26
- },
27
- indicatorPosition: { type: String, default: "" },
28
- indicator: {
29
- type: Boolean,
30
- default: true
31
- },
32
- arrow: {
33
- type: String,
34
- default: "hover"
35
- },
36
- type: { type: String, default: "" },
37
- loop: {
38
- type: Boolean,
39
- default: true
40
- },
41
- direction: {
42
- type: String,
43
- default: "horizontal",
44
- validator(val) {
45
- return ["horizontal", "vertical"].includes(val);
46
- }
47
- },
48
- pauseOnHover: {
49
- type: Boolean,
50
- default: true
20
+ const _hoisted_1 = ["onMouseenter", "onMouseleave"];
21
+ const _hoisted_2 = ["onMouseenter", "onClick"];
22
+ const _hoisted_3 = { key: 0 };
23
+ const __default__ = {
24
+ name: "ElCarousel"
25
+ };
26
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
27
+ ...__default__,
28
+ props: carousel.carouselProps,
29
+ emits: carousel.carouselEmits,
30
+ setup(__props, { expose, emit }) {
31
+ const props = __props;
32
+ const ns = index.useNamespace("carousel");
33
+ const COMPONENT_NAME = "ElCarousel";
34
+ const THROTTLE_TIME = 300;
35
+ const activeIndex = vue.ref(-1);
36
+ const timer = vue.ref(null);
37
+ const hover = vue.ref(false);
38
+ const root = vue.ref();
39
+ const items = vue.ref([]);
40
+ const arrowDisplay = vue.computed(() => props.arrow !== "never" && !vue.unref(isVertical));
41
+ const hasLabel = vue.computed(() => {
42
+ return items.value.some((item) => item.props.label.toString().length > 0);
43
+ });
44
+ const carouselClasses = vue.computed(() => {
45
+ const classes = [ns.b(), ns.m(props.direction)];
46
+ if (vue.unref(isCardType)) {
47
+ classes.push(ns.m("card"));
48
+ }
49
+ return classes;
50
+ });
51
+ const indicatorsClasses = vue.computed(() => {
52
+ const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
53
+ if (hasLabel.value) {
54
+ classes.push(ns.em("indicators", "labels"));
55
+ }
56
+ if (props.indicatorPosition === "outside" || vue.unref(isCardType)) {
57
+ classes.push(ns.em("indicators", "outside"));
58
+ }
59
+ return classes;
60
+ });
61
+ const isCardType = vue.computed(() => props.type === "card");
62
+ const isVertical = vue.computed(() => props.direction === "vertical");
63
+ const throttledArrowClick = lodashUnified.throttle((index) => {
64
+ setActiveItem(index);
65
+ }, THROTTLE_TIME, { trailing: true });
66
+ const throttledIndicatorHover = lodashUnified.throttle((index) => {
67
+ handleIndicatorHover(index);
68
+ }, THROTTLE_TIME);
69
+ function pauseTimer() {
70
+ if (timer.value) {
71
+ clearInterval(timer.value);
72
+ timer.value = null;
73
+ }
74
+ }
75
+ function startTimer() {
76
+ if (props.interval <= 0 || !props.autoplay || timer.value)
77
+ return;
78
+ timer.value = setInterval(() => playSlides(), props.interval);
79
+ }
80
+ const playSlides = () => {
81
+ if (activeIndex.value < items.value.length - 1) {
82
+ activeIndex.value = activeIndex.value + 1;
83
+ } else if (props.loop) {
84
+ activeIndex.value = 0;
85
+ }
86
+ };
87
+ function setActiveItem(index) {
88
+ if (shared.isString(index)) {
89
+ const filteredItems = items.value.filter((item) => item.props.name === index);
90
+ if (filteredItems.length > 0) {
91
+ index = items.value.indexOf(filteredItems[0]);
92
+ }
93
+ }
94
+ index = Number(index);
95
+ if (Number.isNaN(index) || index !== Math.floor(index)) {
96
+ error.debugWarn(COMPONENT_NAME, "index must be integer.");
97
+ return;
98
+ }
99
+ const itemCount = items.value.length;
100
+ const oldIndex = activeIndex.value;
101
+ if (index < 0) {
102
+ activeIndex.value = props.loop ? itemCount - 1 : 0;
103
+ } else if (index >= itemCount) {
104
+ activeIndex.value = props.loop ? 0 : itemCount - 1;
105
+ } else {
106
+ activeIndex.value = index;
107
+ }
108
+ if (oldIndex === activeIndex.value) {
109
+ resetItemPosition(oldIndex);
110
+ }
111
+ }
112
+ function resetItemPosition(oldIndex) {
113
+ items.value.forEach((item, index) => {
114
+ item.translateItem(index, activeIndex.value, oldIndex);
115
+ });
116
+ }
117
+ function addItem(item) {
118
+ items.value.push(item);
119
+ }
120
+ function removeItem(uid) {
121
+ const index = items.value.findIndex((item) => item.uid === uid);
122
+ if (index !== -1) {
123
+ items.value.splice(index, 1);
124
+ if (activeIndex.value === index)
125
+ next();
126
+ }
127
+ }
128
+ function itemInStage(item, index) {
129
+ var _a, _b, _c, _d;
130
+ const _items = vue.unref(items);
131
+ const itemCount = _items.length;
132
+ if (itemCount === 0 || !item.states.inStage)
133
+ return false;
134
+ const nextItemIndex = index + 1;
135
+ const prevItemIndex = index - 1;
136
+ const lastItemIndex = itemCount - 1;
137
+ const isLastItemActive = _items[lastItemIndex].states.active;
138
+ const isFirstItemActive = _items[0].states.active;
139
+ const isNextItemActive = (_b = (_a = _items[nextItemIndex]) == null ? void 0 : _a.states) == null ? void 0 : _b.active;
140
+ const isPrevItemActive = (_d = (_c = _items[prevItemIndex]) == null ? void 0 : _c.states) == null ? void 0 : _d.active;
141
+ if (index === lastItemIndex && isFirstItemActive || isNextItemActive) {
142
+ return "left";
143
+ } else if (index === 0 && isLastItemActive || isPrevItemActive) {
144
+ return "right";
145
+ }
146
+ return false;
147
+ }
148
+ function handleMouseEnter() {
149
+ hover.value = true;
150
+ if (props.pauseOnHover) {
151
+ pauseTimer();
152
+ }
153
+ }
154
+ function handleMouseLeave() {
155
+ hover.value = false;
156
+ startTimer();
157
+ }
158
+ function handleButtonEnter(arrow) {
159
+ if (vue.unref(isVertical))
160
+ return;
161
+ items.value.forEach((item, index) => {
162
+ if (arrow === itemInStage(item, index)) {
163
+ item.states.hover = true;
164
+ }
165
+ });
166
+ }
167
+ function handleButtonLeave() {
168
+ if (vue.unref(isVertical))
169
+ return;
170
+ items.value.forEach((item) => {
171
+ item.states.hover = false;
172
+ });
173
+ }
174
+ function handleIndicatorClick(index) {
175
+ activeIndex.value = index;
176
+ }
177
+ function handleIndicatorHover(index) {
178
+ if (props.trigger === "hover" && index !== activeIndex.value) {
179
+ activeIndex.value = index;
180
+ }
181
+ }
182
+ function prev() {
183
+ setActiveItem(activeIndex.value - 1);
184
+ }
185
+ function next() {
186
+ setActiveItem(activeIndex.value + 1);
187
+ }
188
+ vue.watch(() => activeIndex.value, (current, prev2) => {
189
+ resetItemPosition(prev2);
190
+ if (prev2 > -1) {
191
+ emit("change", current, prev2);
192
+ }
193
+ });
194
+ vue.watch(() => props.autoplay, (autoplay) => {
195
+ autoplay ? startTimer() : pauseTimer();
196
+ });
197
+ vue.watch(() => props.loop, () => {
198
+ setActiveItem(activeIndex.value);
199
+ });
200
+ const resizeObserver = vue.shallowRef();
201
+ vue.onMounted(async () => {
202
+ await vue.nextTick();
203
+ resizeObserver.value = core.useResizeObserver(root.value, () => {
204
+ resetItemPosition();
205
+ });
206
+ if (props.initialIndex < items.value.length && props.initialIndex >= 0) {
207
+ activeIndex.value = props.initialIndex;
208
+ }
209
+ startTimer();
210
+ });
211
+ vue.onBeforeUnmount(() => {
212
+ pauseTimer();
213
+ if (root.value && resizeObserver.value)
214
+ resizeObserver.value.stop();
215
+ });
216
+ vue.provide(carousel$1.carouselContextKey, {
217
+ root,
218
+ isCardType,
219
+ isVertical,
220
+ items,
221
+ loop: props.loop,
222
+ addItem,
223
+ removeItem,
224
+ setActiveItem
225
+ });
226
+ expose({
227
+ setActiveItem,
228
+ prev,
229
+ next
230
+ });
231
+ return (_ctx, _cache) => {
232
+ return vue.openBlock(), vue.createElementBlock("div", {
233
+ ref_key: "root",
234
+ ref: root,
235
+ class: vue.normalizeClass(vue.unref(carouselClasses)),
236
+ onMouseenter: vue.withModifiers(handleMouseEnter, ["stop"]),
237
+ onMouseleave: vue.withModifiers(handleMouseLeave, ["stop"])
238
+ }, [
239
+ vue.createElementVNode("div", {
240
+ class: vue.normalizeClass(vue.unref(ns).e("container")),
241
+ style: vue.normalizeStyle({ height: _ctx.height })
242
+ }, [
243
+ vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
244
+ key: 0,
245
+ name: "carousel-arrow-left"
246
+ }, {
247
+ default: vue.withCtx(() => [
248
+ vue.withDirectives(vue.createElementVNode("button", {
249
+ type: "button",
250
+ class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")]),
251
+ onMouseenter: _cache[0] || (_cache[0] = ($event) => handleButtonEnter("left")),
252
+ onMouseleave: handleButtonLeave,
253
+ onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(activeIndex.value - 1), ["stop"]))
254
+ }, [
255
+ vue.createVNode(vue.unref(index$1.ElIcon), null, {
256
+ default: vue.withCtx(() => [
257
+ vue.createVNode(vue.unref(iconsVue.ArrowLeft))
258
+ ]),
259
+ _: 1
260
+ })
261
+ ], 34), [
262
+ [
263
+ vue.vShow,
264
+ (_ctx.arrow === "always" || hover.value) && (props.loop || activeIndex.value > 0)
265
+ ]
266
+ ])
267
+ ]),
268
+ _: 1
269
+ })) : vue.createCommentVNode("v-if", true),
270
+ vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
271
+ key: 1,
272
+ name: "carousel-arrow-right"
273
+ }, {
274
+ default: vue.withCtx(() => [
275
+ vue.withDirectives(vue.createElementVNode("button", {
276
+ type: "button",
277
+ class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")]),
278
+ onMouseenter: _cache[2] || (_cache[2] = ($event) => handleButtonEnter("right")),
279
+ onMouseleave: handleButtonLeave,
280
+ onClick: _cache[3] || (_cache[3] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(activeIndex.value + 1), ["stop"]))
281
+ }, [
282
+ vue.createVNode(vue.unref(index$1.ElIcon), null, {
283
+ default: vue.withCtx(() => [
284
+ vue.createVNode(vue.unref(iconsVue.ArrowRight))
285
+ ]),
286
+ _: 1
287
+ })
288
+ ], 34), [
289
+ [
290
+ vue.vShow,
291
+ (_ctx.arrow === "always" || hover.value) && (props.loop || activeIndex.value < items.value.length - 1)
292
+ ]
293
+ ])
294
+ ]),
295
+ _: 1
296
+ })) : vue.createCommentVNode("v-if", true),
297
+ vue.renderSlot(_ctx.$slots, "default")
298
+ ], 6),
299
+ _ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
300
+ key: 0,
301
+ class: vue.normalizeClass(vue.unref(indicatorsClasses))
302
+ }, [
303
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items.value, (item, index) => {
304
+ return vue.openBlock(), vue.createElementBlock("li", {
305
+ key: index,
306
+ class: vue.normalizeClass([
307
+ vue.unref(ns).e("indicator"),
308
+ vue.unref(ns).em("indicator", _ctx.direction),
309
+ vue.unref(ns).is("active", index === activeIndex.value)
310
+ ]),
311
+ onMouseenter: ($event) => vue.unref(throttledIndicatorHover)(index),
312
+ onClick: vue.withModifiers(($event) => handleIndicatorClick(index), ["stop"])
313
+ }, [
314
+ vue.createElementVNode("button", {
315
+ class: vue.normalizeClass(vue.unref(ns).e("button"))
316
+ }, [
317
+ vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
318
+ ], 2)
319
+ ], 42, _hoisted_2);
320
+ }), 128))
321
+ ], 2)) : vue.createCommentVNode("v-if", true)
322
+ ], 42, _hoisted_1);
323
+ };
51
324
  }
52
325
  });
53
- const carouselEmits = {
54
- change: (current, prev) => [current, prev].every(core.isNumber)
55
- };
326
+ var Carousel = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/Users/meng/workspace/element-pe/packages/components/carousel/src/carousel.vue"]]);
56
327
 
57
- exports.carouselEmits = carouselEmits;
58
- exports.carouselProps = carouselProps;
328
+ exports["default"] = Carousel;
59
329
  //# sourceMappingURL=carousel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.js","sources":["../../../../../../packages/components/carousel/src/carousel.ts"],"sourcesContent":["import { buildProps, isNumber } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Carousel from './carousel.vue'\n\nexport const carouselProps = buildProps({\n initialIndex: {\n type: Number,\n default: 0,\n },\n height: { type: String, default: '' },\n trigger: {\n type: String,\n default: 'hover',\n },\n autoplay: {\n type: Boolean,\n default: true,\n },\n interval: {\n type: Number,\n default: 3000,\n },\n indicatorPosition: { type: String, default: '' },\n indicator: {\n type: Boolean,\n default: true,\n },\n arrow: {\n type: String,\n default: 'hover',\n },\n type: { type: String, default: '' },\n loop: {\n type: Boolean,\n default: true,\n },\n direction: {\n type: String,\n default: 'horizontal',\n validator(val: string) {\n return ['horizontal', 'vertical'].includes(val)\n },\n },\n pauseOnHover: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport const carouselEmits = {\n change: (current: number, prev: number) => [current, prev].every(isNumber),\n}\n\nexport type CarouselProps = ExtractPropTypes<typeof carouselProps>\nexport type CarouselEmits = typeof carouselEmits\n\nexport type CarouselInstance = InstanceType<typeof Carousel>\n"],"names":["buildProps","isNumber"],"mappings":";;;;;;;;AACY,MAAC,aAAa,GAAGA,gBAAU,CAAC;AACxC,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACvC,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AAClD,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,YAAY;AACzB,IAAI,SAAS,CAAC,GAAG,EAAE;AACnB,MAAM,OAAO,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AACtD,KAAK;AACL,GAAG;AACH,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,KAAK,CAACC,aAAQ,CAAC;AAC5D;;;;;"}
1
+ {"version":3,"file":"carousel.js","sources":["../../../../../../packages/components/carousel/src/carousel.vue"],"sourcesContent":["<template>\n <div\n ref=\"root\"\n :class=\"carouselClasses\"\n @mouseenter.stop=\"handleMouseEnter\"\n @mouseleave.stop=\"handleMouseLeave\"\n >\n <div :class=\"ns.e('container')\" :style=\"{ height: height }\">\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-left\">\n <button\n v-show=\"\n (arrow === 'always' || hover) && (props.loop || activeIndex > 0)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'left')]\"\n @mouseenter=\"handleButtonEnter('left')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(activeIndex - 1)\"\n >\n <ElIcon>\n <ArrowLeft />\n </ElIcon>\n </button>\n </transition>\n <transition v-if=\"arrowDisplay\" name=\"carousel-arrow-right\">\n <button\n v-show=\"\n (arrow === 'always' || hover) &&\n (props.loop || activeIndex < items.length - 1)\n \"\n type=\"button\"\n :class=\"[ns.e('arrow'), ns.em('arrow', 'right')]\"\n @mouseenter=\"handleButtonEnter('right')\"\n @mouseleave=\"handleButtonLeave\"\n @click.stop=\"throttledArrowClick(activeIndex + 1)\"\n >\n <ElIcon>\n <ArrowRight />\n </ElIcon>\n </button>\n </transition>\n <slot />\n </div>\n <ul v-if=\"indicatorPosition !== 'none'\" :class=\"indicatorsClasses\">\n <li\n v-for=\"(item, index) in items\"\n :key=\"index\"\n :class=\"[\n ns.e('indicator'),\n ns.em('indicator', direction),\n ns.is('active', index === activeIndex),\n ]\"\n @mouseenter=\"throttledIndicatorHover(index)\"\n @click.stop=\"handleIndicatorClick(index)\"\n >\n <button :class=\"ns.e('button')\">\n <span v-if=\"hasLabel\">{{ item.props.label }}</span>\n </button>\n </li>\n </ul>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n shallowRef,\n unref,\n watch,\n} from 'vue'\nimport { throttle } from 'lodash-unified'\nimport { useResizeObserver } from '@vueuse/core'\nimport { debugWarn, isString } from '@element-plus/utils'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { carouselContextKey } from '@element-plus/tokens'\nimport { carouselEmits, carouselProps } from './carousel'\nimport type { CarouselItemContext } from '@element-plus/tokens'\n\ndefineOptions({\n name: 'ElCarousel',\n})\n\nconst props = defineProps(carouselProps)\nconst emit = defineEmits(carouselEmits)\nconst ns = useNamespace('carousel')\nconst COMPONENT_NAME = 'ElCarousel'\nconst THROTTLE_TIME = 300\n\n// refs\nconst activeIndex = ref(-1)\nconst timer = ref<ReturnType<typeof setInterval> | null>(null)\nconst hover = ref(false)\nconst root = ref<HTMLDivElement>()\nconst items = ref<Array<CarouselItemContext>>([])\n\n// computed\nconst arrowDisplay = computed(\n () => props.arrow !== 'never' && !unref(isVertical)\n)\n\nconst hasLabel = computed(() => {\n return items.value.some((item) => item.props.label.toString().length > 0)\n})\n\nconst carouselClasses = computed(() => {\n const classes = [ns.b(), ns.m(props.direction)]\n if (unref(isCardType)) {\n classes.push(ns.m('card'))\n }\n return classes\n})\n\nconst indicatorsClasses = computed(() => {\n const classes = [ns.e('indicators'), ns.em('indicators', props.direction)]\n if (hasLabel.value) {\n classes.push(ns.em('indicators', 'labels'))\n }\n if (props.indicatorPosition === 'outside' || unref(isCardType)) {\n classes.push(ns.em('indicators', 'outside'))\n }\n return classes\n})\n\nconst isCardType = computed(() => props.type === 'card')\nconst isVertical = computed(() => props.direction === 'vertical')\n\n// methods\nconst throttledArrowClick = throttle(\n (index: number) => {\n setActiveItem(index)\n },\n THROTTLE_TIME,\n { trailing: true }\n)\n\nconst throttledIndicatorHover = throttle((index: number) => {\n handleIndicatorHover(index)\n}, THROTTLE_TIME)\n\nfunction pauseTimer() {\n if (timer.value) {\n clearInterval(timer.value)\n timer.value = null\n }\n}\n\nfunction startTimer() {\n if (props.interval <= 0 || !props.autoplay || timer.value) return\n timer.value = setInterval(() => playSlides(), props.interval)\n}\n\nconst playSlides = () => {\n if (activeIndex.value < items.value.length - 1) {\n activeIndex.value = activeIndex.value + 1\n } else if (props.loop) {\n activeIndex.value = 0\n }\n}\n\nfunction setActiveItem(index: number | string) {\n if (isString(index)) {\n const filteredItems = items.value.filter(\n (item) => item.props.name === index\n )\n if (filteredItems.length > 0) {\n index = items.value.indexOf(filteredItems[0])\n }\n }\n index = Number(index)\n if (Number.isNaN(index) || index !== Math.floor(index)) {\n debugWarn(COMPONENT_NAME, 'index must be integer.')\n return\n }\n const itemCount = items.value.length\n const oldIndex = activeIndex.value\n if (index < 0) {\n activeIndex.value = props.loop ? itemCount - 1 : 0\n } else if (index >= itemCount) {\n activeIndex.value = props.loop ? 0 : itemCount - 1\n } else {\n activeIndex.value = index\n }\n if (oldIndex === activeIndex.value) {\n resetItemPosition(oldIndex)\n }\n}\n\nfunction resetItemPosition(oldIndex?: number) {\n items.value.forEach((item, index) => {\n item.translateItem(index, activeIndex.value, oldIndex)\n })\n}\n\nfunction addItem(item: CarouselItemContext) {\n items.value.push(item)\n}\n\nfunction removeItem(uid?: number) {\n const index = items.value.findIndex((item) => item.uid === uid)\n if (index !== -1) {\n items.value.splice(index, 1)\n if (activeIndex.value === index) next()\n }\n}\n\nfunction itemInStage(item: CarouselItemContext, index: number) {\n const _items = unref(items)\n const itemCount = _items.length\n if (itemCount === 0 || !item.states.inStage) return false\n const nextItemIndex = index + 1\n const prevItemIndex = index - 1\n const lastItemIndex = itemCount - 1\n const isLastItemActive = _items[lastItemIndex].states.active\n const isFirstItemActive = _items[0].states.active\n const isNextItemActive = _items[nextItemIndex]?.states?.active\n const isPrevItemActive = _items[prevItemIndex]?.states?.active\n\n if ((index === lastItemIndex && isFirstItemActive) || isNextItemActive) {\n return 'left'\n } else if ((index === 0 && isLastItemActive) || isPrevItemActive) {\n return 'right'\n }\n return false\n}\n\nfunction handleMouseEnter() {\n hover.value = true\n if (props.pauseOnHover) {\n pauseTimer()\n }\n}\n\nfunction handleMouseLeave() {\n hover.value = false\n startTimer()\n}\n\nfunction handleButtonEnter(arrow: 'left' | 'right') {\n if (unref(isVertical)) return\n items.value.forEach((item, index) => {\n if (arrow === itemInStage(item, index)) {\n item.states.hover = true\n }\n })\n}\n\nfunction handleButtonLeave() {\n if (unref(isVertical)) return\n items.value.forEach((item) => {\n item.states.hover = false\n })\n}\n\nfunction handleIndicatorClick(index: number) {\n activeIndex.value = index\n}\n\nfunction handleIndicatorHover(index: number) {\n if (props.trigger === 'hover' && index !== activeIndex.value) {\n activeIndex.value = index\n }\n}\n\nfunction prev() {\n setActiveItem(activeIndex.value - 1)\n}\n\nfunction next() {\n setActiveItem(activeIndex.value + 1)\n}\n\n// watch\nwatch(\n () => activeIndex.value,\n (current, prev) => {\n resetItemPosition(prev)\n if (prev > -1) {\n emit('change', current, prev)\n }\n }\n)\nwatch(\n () => props.autoplay,\n (autoplay) => {\n autoplay ? startTimer() : pauseTimer()\n }\n)\nwatch(\n () => props.loop,\n () => {\n setActiveItem(activeIndex.value)\n }\n)\n\nconst resizeObserver = shallowRef<ReturnType<typeof useResizeObserver>>()\n// lifecycle\nonMounted(async () => {\n await nextTick()\n\n resizeObserver.value = useResizeObserver(root.value, () => {\n resetItemPosition()\n })\n if (props.initialIndex < items.value.length && props.initialIndex >= 0) {\n activeIndex.value = props.initialIndex\n }\n startTimer()\n})\n\nonBeforeUnmount(() => {\n pauseTimer()\n if (root.value && resizeObserver.value) resizeObserver.value.stop()\n})\n\n// provide\nprovide(carouselContextKey, {\n root,\n isCardType,\n isVertical,\n items,\n loop: props.loop,\n addItem,\n removeItem,\n setActiveItem,\n})\n\ndefineExpose({\n /** @description manually switch slide */\n setActiveItem,\n /** @description switch to the previous slide */\n prev,\n /** @description switch to the next slide */\n next,\n})\n</script>\n"],"names":["useNamespace","ref","computed","unref","throttle","isString","debugWarn","watch","shallowRef","onMounted","nextTick","useResizeObserver","onBeforeUnmount","provide","carouselContextKey"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2FA,IAAA,MAAA,EAAA,GAAAA,mBAAA,UAAA,CAAA,CAAA;AACA,IAAA,MAAA,cAAA,GAAA,YAAA,CAAA;AACA,IAAA,MAAA,aAAA,GAAA,GAAA,CAAA;AAGA,IAAA,MAAA,WAAA,GAAAC,QAAA,CAAA,CAAA,CAAA,CAAA;AACA,IAAA,M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