element-ps 2.0.22 → 2.0.25

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 (400) hide show
  1. package/dist/index.full.js +131 -116
  2. package/dist/index.full.min.js +3 -3
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +4 -4
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +131 -116
  7. package/dist/locale/en.js +1 -1
  8. package/dist/locale/en.min.js +1 -1
  9. package/dist/locale/en.min.mjs +1 -1
  10. package/dist/locale/en.mjs +1 -1
  11. package/dist/locale/zh-cn.js +1 -1
  12. package/dist/locale/zh-cn.min.js +1 -1
  13. package/dist/locale/zh-cn.min.mjs +1 -1
  14. package/dist/locale/zh-cn.mjs +1 -1
  15. package/es/components/affix/index.mjs +2 -2
  16. package/es/components/affix/src/affix.mjs +82 -19
  17. package/es/components/affix/src/affix.mjs.map +1 -1
  18. package/es/components/affix/src/affix2.mjs +19 -82
  19. package/es/components/affix/src/affix2.mjs.map +1 -1
  20. package/es/components/avatar/index.mjs +2 -2
  21. package/es/components/avatar/src/avatar.mjs +29 -61
  22. package/es/components/avatar/src/avatar.mjs.map +1 -1
  23. package/es/components/avatar/src/avatar2.mjs +61 -29
  24. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  25. package/es/components/backtop/index.mjs +2 -2
  26. package/es/components/backtop/src/backtop.mjs +59 -18
  27. package/es/components/backtop/src/backtop.mjs.map +1 -1
  28. package/es/components/backtop/src/backtop2.mjs +18 -59
  29. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  30. package/es/components/breadcrumb/index.mjs +2 -2
  31. package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -46
  32. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  33. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +46 -11
  34. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  35. package/es/components/button/index.mjs +3 -3
  36. package/es/components/button/src/button-group.mjs +30 -5
  37. package/es/components/button/src/button-group.mjs.map +1 -1
  38. package/es/components/button/src/button-group2.mjs +5 -30
  39. package/es/components/button/src/button-group2.mjs.map +1 -1
  40. package/es/components/button/src/button.mjs +48 -96
  41. package/es/components/button/src/button.mjs.map +1 -1
  42. package/es/components/button/src/button2.mjs +96 -48
  43. package/es/components/button/src/button2.mjs.map +1 -1
  44. package/es/components/calendar/src/calendar2.mjs +1 -1
  45. package/es/components/calendar/src/date-table.mjs +146 -27
  46. package/es/components/calendar/src/date-table.mjs.map +1 -1
  47. package/es/components/calendar/src/date-table2.mjs +27 -146
  48. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  49. package/es/components/carousel/index.mjs +2 -2
  50. package/es/components/carousel/src/carousel.mjs +201 -43
  51. package/es/components/carousel/src/carousel.mjs.map +1 -1
  52. package/es/components/carousel/src/carousel2.mjs +43 -201
  53. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  54. package/es/components/cascader/src/index.mjs +1 -1
  55. package/es/components/collapse/index.mjs +4 -4
  56. package/es/components/collapse/src/collapse-item.mjs +12 -91
  57. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  58. package/es/components/collapse/src/collapse-item2.mjs +91 -12
  59. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  60. package/es/components/collapse/src/collapse.mjs +14 -61
  61. package/es/components/collapse/src/collapse.mjs.map +1 -1
  62. package/es/components/collapse/src/collapse2.mjs +61 -14
  63. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  64. package/es/components/collection/index.mjs +1 -1
  65. package/es/components/collection/src/collection.mjs +30 -10
  66. package/es/components/collection/src/collection.mjs.map +1 -1
  67. package/es/components/collection/src/collection2.mjs +10 -30
  68. package/es/components/collection/src/collection2.mjs.map +1 -1
  69. package/es/components/dialog/src/dialog-content.mjs +79 -34
  70. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  71. package/es/components/dialog/src/dialog-content2.mjs +34 -79
  72. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  73. package/es/components/dialog/src/dialog.mjs +1 -1
  74. package/es/components/dialog/src/dialog2.mjs +1 -1
  75. package/es/components/dropdown/src/dropdown.mjs +1 -1
  76. package/es/components/form/index.mjs +2 -2
  77. package/es/components/form/src/form-item.mjs +46 -177
  78. package/es/components/form/src/form-item.mjs.map +1 -1
  79. package/es/components/form/src/form-item2.mjs +177 -46
  80. package/es/components/form/src/form-item2.mjs.map +1 -1
  81. package/es/components/icon/index.mjs +2 -2
  82. package/es/components/icon/src/icon.mjs +8 -35
  83. package/es/components/icon/src/icon.mjs.map +1 -1
  84. package/es/components/icon/src/icon2.mjs +35 -8
  85. package/es/components/icon/src/icon2.mjs.map +1 -1
  86. package/es/components/image/index.d.ts +4 -0
  87. package/es/components/image/src/image.d.ts +1 -0
  88. package/es/components/image/src/image.mjs +3 -0
  89. package/es/components/image/src/image.mjs.map +1 -1
  90. package/es/components/image/src/image.vue.d.ts +4 -0
  91. package/es/components/image/src/image2.mjs +19 -8
  92. package/es/components/image/src/image2.mjs.map +1 -1
  93. package/es/components/index.mjs +27 -27
  94. package/es/components/link/index.mjs +2 -2
  95. package/es/components/link/src/link.mjs +19 -43
  96. package/es/components/link/src/link.mjs.map +1 -1
  97. package/es/components/link/src/link2.mjs +43 -19
  98. package/es/components/link/src/link2.mjs.map +1 -1
  99. package/es/components/menu/index.mjs +2 -2
  100. package/es/components/menu/src/menu-item.mjs +15 -65
  101. package/es/components/menu/src/menu-item.mjs.map +1 -1
  102. package/es/components/menu/src/menu-item2.mjs +65 -15
  103. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  104. package/es/components/popconfirm/index.mjs +2 -2
  105. package/es/components/popconfirm/src/popconfirm.mjs +53 -20
  106. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  107. package/es/components/popconfirm/src/popconfirm2.mjs +20 -53
  108. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  109. package/es/components/popper/index.mjs +6 -6
  110. package/es/components/popper/src/content.mjs +64 -52
  111. package/es/components/popper/src/content.mjs.map +1 -1
  112. package/es/components/popper/src/content2.mjs +52 -64
  113. package/es/components/popper/src/content2.mjs.map +1 -1
  114. package/es/components/popper/src/popper.mjs +27 -20
  115. package/es/components/popper/src/popper.mjs.map +1 -1
  116. package/es/components/popper/src/popper2.mjs +20 -27
  117. package/es/components/popper/src/popper2.mjs.map +1 -1
  118. package/es/components/popper/src/trigger.mjs +17 -28
  119. package/es/components/popper/src/trigger.mjs.map +1 -1
  120. package/es/components/popper/src/trigger2.mjs +28 -17
  121. package/es/components/popper/src/trigger2.mjs.map +1 -1
  122. package/es/components/radio/index.mjs +2 -2
  123. package/es/components/radio/src/radio-button.mjs +1 -1
  124. package/es/components/radio/src/radio-button2.mjs +1 -1
  125. package/es/components/radio/src/radio.mjs +74 -62
  126. package/es/components/radio/src/radio.mjs.map +1 -1
  127. package/es/components/radio/src/radio2.mjs +62 -74
  128. package/es/components/radio/src/radio2.mjs.map +1 -1
  129. package/es/components/rate/index.d.ts +5 -1
  130. package/es/components/rate/index.mjs +2 -2
  131. package/es/components/rate/src/rate.mjs +84 -169
  132. package/es/components/rate/src/rate.mjs.map +1 -1
  133. package/es/components/rate/src/rate.vue.d.ts +6 -3
  134. package/es/components/rate/src/rate2.mjs +169 -84
  135. package/es/components/rate/src/rate2.mjs.map +1 -1
  136. package/es/components/roving-focus-group/index.mjs +3 -3
  137. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  138. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  139. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  140. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  141. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  142. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  143. package/es/components/scrollbar/index.mjs +1 -1
  144. package/es/components/scrollbar/src/bar.mjs +1 -1
  145. package/es/components/scrollbar/src/thumb.mjs +11 -59
  146. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  147. package/es/components/scrollbar/src/thumb2.mjs +59 -11
  148. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  149. package/es/components/select/src/select.mjs +1 -1
  150. package/es/components/skeleton/index.mjs +4 -4
  151. package/es/components/skeleton/src/skeleton-item.mjs +23 -18
  152. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  153. package/es/components/skeleton/src/skeleton-item2.mjs +18 -23
  154. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  155. package/es/components/skeleton/src/skeleton.mjs +22 -49
  156. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  157. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  158. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  159. package/es/components/tag/index.mjs +2 -2
  160. package/es/components/tag/src/tag.mjs +81 -33
  161. package/es/components/tag/src/tag.mjs.map +1 -1
  162. package/es/components/tag/src/tag2.mjs +33 -81
  163. package/es/components/tag/src/tag2.mjs.map +1 -1
  164. package/es/components/teleport/index.mjs +2 -2
  165. package/es/components/teleport/src/teleport.mjs +43 -18
  166. package/es/components/teleport/src/teleport.mjs.map +1 -1
  167. package/es/components/teleport/src/teleport2.mjs +18 -43
  168. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  169. package/es/components/timeline/index.mjs +2 -2
  170. package/es/components/timeline/src/timeline-item.mjs +39 -73
  171. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  172. package/es/components/timeline/src/timeline-item2.mjs +73 -39
  173. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  174. package/es/components/tooltip/src/tooltip.mjs +2 -2
  175. package/es/components/tooltip/src/trigger.mjs +1 -1
  176. package/es/components/tooltip-v2/index.mjs +5 -5
  177. package/es/components/tooltip-v2/src/arrow.mjs +22 -38
  178. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  179. package/es/components/tooltip-v2/src/arrow2.mjs +38 -22
  180. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  181. package/es/components/tooltip-v2/src/root.mjs +81 -17
  182. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  183. package/es/components/tooltip-v2/src/root2.mjs +17 -81
  184. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  185. package/es/components/tooltip-v2/src/tooltip.mjs +21 -74
  186. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  187. package/es/components/tooltip-v2/src/tooltip2.mjs +74 -21
  188. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  189. package/es/components/tooltip-v2/src/trigger.mjs +89 -11
  190. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  191. package/es/components/tooltip-v2/src/trigger2.mjs +11 -89
  192. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  193. package/es/components/upload/index.mjs +2 -2
  194. package/es/components/upload/src/upload-content.mjs +46 -15
  195. package/es/components/upload/src/upload-content.mjs.map +1 -1
  196. package/es/components/upload/src/upload-content2.mjs +15 -46
  197. package/es/components/upload/src/upload-content2.mjs.map +1 -1
  198. package/es/components/upload/src/upload-list.mjs +155 -26
  199. package/es/components/upload/src/upload-list.mjs.map +1 -1
  200. package/es/components/upload/src/upload-list2.mjs +26 -155
  201. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  202. package/es/components/upload/src/upload2.mjs +2 -2
  203. package/es/index.mjs +27 -27
  204. package/es/version.d.ts +1 -1
  205. package/es/version.mjs +1 -1
  206. package/es/version.mjs.map +1 -1
  207. package/lib/components/affix/index.js +2 -2
  208. package/lib/components/affix/src/affix.js +82 -19
  209. package/lib/components/affix/src/affix.js.map +1 -1
  210. package/lib/components/affix/src/affix2.js +19 -82
  211. package/lib/components/affix/src/affix2.js.map +1 -1
  212. package/lib/components/avatar/index.js +2 -2
  213. package/lib/components/avatar/src/avatar.js +29 -61
  214. package/lib/components/avatar/src/avatar.js.map +1 -1
  215. package/lib/components/avatar/src/avatar2.js +61 -29
  216. package/lib/components/avatar/src/avatar2.js.map +1 -1
  217. package/lib/components/backtop/index.js +2 -2
  218. package/lib/components/backtop/src/backtop.js +59 -18
  219. package/lib/components/backtop/src/backtop.js.map +1 -1
  220. package/lib/components/backtop/src/backtop2.js +18 -59
  221. package/lib/components/backtop/src/backtop2.js.map +1 -1
  222. package/lib/components/breadcrumb/index.js +2 -2
  223. package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -46
  224. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  225. package/lib/components/breadcrumb/src/breadcrumb-item2.js +46 -11
  226. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  227. package/lib/components/button/index.js +3 -3
  228. package/lib/components/button/src/button-group.js +30 -5
  229. package/lib/components/button/src/button-group.js.map +1 -1
  230. package/lib/components/button/src/button-group2.js +5 -30
  231. package/lib/components/button/src/button-group2.js.map +1 -1
  232. package/lib/components/button/src/button.js +50 -96
  233. package/lib/components/button/src/button.js.map +1 -1
  234. package/lib/components/button/src/button2.js +96 -50
  235. package/lib/components/button/src/button2.js.map +1 -1
  236. package/lib/components/calendar/src/calendar2.js +1 -1
  237. package/lib/components/calendar/src/date-table.js +151 -30
  238. package/lib/components/calendar/src/date-table.js.map +1 -1
  239. package/lib/components/calendar/src/date-table2.js +30 -151
  240. package/lib/components/calendar/src/date-table2.js.map +1 -1
  241. package/lib/components/carousel/index.js +2 -2
  242. package/lib/components/carousel/src/carousel.js +201 -43
  243. package/lib/components/carousel/src/carousel.js.map +1 -1
  244. package/lib/components/carousel/src/carousel2.js +43 -201
  245. package/lib/components/carousel/src/carousel2.js.map +1 -1
  246. package/lib/components/cascader/src/index.js +1 -1
  247. package/lib/components/collapse/index.js +4 -4
  248. package/lib/components/collapse/src/collapse-item.js +12 -91
  249. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  250. package/lib/components/collapse/src/collapse-item2.js +91 -12
  251. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  252. package/lib/components/collapse/src/collapse.js +16 -61
  253. package/lib/components/collapse/src/collapse.js.map +1 -1
  254. package/lib/components/collapse/src/collapse2.js +61 -16
  255. package/lib/components/collapse/src/collapse2.js.map +1 -1
  256. package/lib/components/collection/index.js +1 -1
  257. package/lib/components/collection/src/collection.js +30 -9
  258. package/lib/components/collection/src/collection.js.map +1 -1
  259. package/lib/components/collection/src/collection2.js +9 -30
  260. package/lib/components/collection/src/collection2.js.map +1 -1
  261. package/lib/components/dialog/src/dialog-content.js +78 -33
  262. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  263. package/lib/components/dialog/src/dialog-content2.js +33 -78
  264. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  265. package/lib/components/dialog/src/dialog.js +1 -1
  266. package/lib/components/dialog/src/dialog2.js +1 -1
  267. package/lib/components/dropdown/src/dropdown.js +1 -1
  268. package/lib/components/form/index.js +2 -2
  269. package/lib/components/form/src/form-item.js +47 -177
  270. package/lib/components/form/src/form-item.js.map +1 -1
  271. package/lib/components/form/src/form-item2.js +177 -47
  272. package/lib/components/form/src/form-item2.js.map +1 -1
  273. package/lib/components/icon/index.js +2 -2
  274. package/lib/components/icon/src/icon.js +8 -35
  275. package/lib/components/icon/src/icon.js.map +1 -1
  276. package/lib/components/icon/src/icon2.js +35 -8
  277. package/lib/components/icon/src/icon2.js.map +1 -1
  278. package/lib/components/image/index.d.ts +4 -0
  279. package/lib/components/image/src/image.d.ts +1 -0
  280. package/lib/components/image/src/image.js +3 -0
  281. package/lib/components/image/src/image.js.map +1 -1
  282. package/lib/components/image/src/image.vue.d.ts +4 -0
  283. package/lib/components/image/src/image2.js +18 -7
  284. package/lib/components/image/src/image2.js.map +1 -1
  285. package/lib/components/index.js +27 -27
  286. package/lib/components/link/index.js +2 -2
  287. package/lib/components/link/src/link.js +19 -43
  288. package/lib/components/link/src/link.js.map +1 -1
  289. package/lib/components/link/src/link2.js +43 -19
  290. package/lib/components/link/src/link2.js.map +1 -1
  291. package/lib/components/menu/index.js +2 -2
  292. package/lib/components/menu/src/menu-item.js +16 -65
  293. package/lib/components/menu/src/menu-item.js.map +1 -1
  294. package/lib/components/menu/src/menu-item2.js +65 -16
  295. package/lib/components/menu/src/menu-item2.js.map +1 -1
  296. package/lib/components/popconfirm/index.js +2 -2
  297. package/lib/components/popconfirm/src/popconfirm.js +53 -20
  298. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  299. package/lib/components/popconfirm/src/popconfirm2.js +20 -53
  300. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  301. package/lib/components/popper/index.js +6 -6
  302. package/lib/components/popper/src/content.js +65 -52
  303. package/lib/components/popper/src/content.js.map +1 -1
  304. package/lib/components/popper/src/content2.js +52 -65
  305. package/lib/components/popper/src/content2.js.map +1 -1
  306. package/lib/components/popper/src/popper.js +27 -21
  307. package/lib/components/popper/src/popper.js.map +1 -1
  308. package/lib/components/popper/src/popper2.js +21 -27
  309. package/lib/components/popper/src/popper2.js.map +1 -1
  310. package/lib/components/popper/src/trigger.js +17 -28
  311. package/lib/components/popper/src/trigger.js.map +1 -1
  312. package/lib/components/popper/src/trigger2.js +28 -17
  313. package/lib/components/popper/src/trigger2.js.map +1 -1
  314. package/lib/components/radio/index.js +2 -2
  315. package/lib/components/radio/src/radio-button.js +1 -1
  316. package/lib/components/radio/src/radio-button2.js +1 -1
  317. package/lib/components/radio/src/radio.js +73 -64
  318. package/lib/components/radio/src/radio.js.map +1 -1
  319. package/lib/components/radio/src/radio2.js +64 -73
  320. package/lib/components/radio/src/radio2.js.map +1 -1
  321. package/lib/components/rate/index.d.ts +5 -1
  322. package/lib/components/rate/index.js +2 -2
  323. package/lib/components/rate/src/rate.js +84 -169
  324. package/lib/components/rate/src/rate.js.map +1 -1
  325. package/lib/components/rate/src/rate.vue.d.ts +6 -3
  326. package/lib/components/rate/src/rate2.js +169 -84
  327. package/lib/components/rate/src/rate2.js.map +1 -1
  328. package/lib/components/roving-focus-group/index.js +2 -2
  329. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  330. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  331. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  332. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  333. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  334. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  335. package/lib/components/scrollbar/index.js +1 -1
  336. package/lib/components/scrollbar/src/bar.js +1 -1
  337. package/lib/components/scrollbar/src/thumb.js +11 -59
  338. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  339. package/lib/components/scrollbar/src/thumb2.js +59 -11
  340. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  341. package/lib/components/select/src/select.js +1 -1
  342. package/lib/components/skeleton/index.js +4 -4
  343. package/lib/components/skeleton/src/skeleton-item.js +23 -18
  344. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  345. package/lib/components/skeleton/src/skeleton-item2.js +18 -23
  346. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  347. package/lib/components/skeleton/src/skeleton.js +22 -49
  348. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  349. package/lib/components/skeleton/src/skeleton2.js +49 -22
  350. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  351. package/lib/components/tag/index.js +2 -2
  352. package/lib/components/tag/src/tag.js +81 -34
  353. package/lib/components/tag/src/tag.js.map +1 -1
  354. package/lib/components/tag/src/tag2.js +34 -81
  355. package/lib/components/tag/src/tag2.js.map +1 -1
  356. package/lib/components/teleport/index.js +2 -2
  357. package/lib/components/teleport/src/teleport.js +43 -18
  358. package/lib/components/teleport/src/teleport.js.map +1 -1
  359. package/lib/components/teleport/src/teleport2.js +18 -43
  360. package/lib/components/teleport/src/teleport2.js.map +1 -1
  361. package/lib/components/timeline/index.js +2 -2
  362. package/lib/components/timeline/src/timeline-item.js +39 -73
  363. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  364. package/lib/components/timeline/src/timeline-item2.js +73 -39
  365. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  366. package/lib/components/tooltip/src/tooltip.js +2 -2
  367. package/lib/components/tooltip/src/trigger.js +1 -1
  368. package/lib/components/tooltip-v2/index.js +5 -5
  369. package/lib/components/tooltip-v2/src/arrow.js +23 -38
  370. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  371. package/lib/components/tooltip-v2/src/arrow2.js +38 -23
  372. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  373. package/lib/components/tooltip-v2/src/root.js +81 -17
  374. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  375. package/lib/components/tooltip-v2/src/root2.js +17 -81
  376. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  377. package/lib/components/tooltip-v2/src/tooltip.js +21 -74
  378. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  379. package/lib/components/tooltip-v2/src/tooltip2.js +74 -21
  380. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  381. package/lib/components/tooltip-v2/src/trigger.js +89 -11
  382. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  383. package/lib/components/tooltip-v2/src/trigger2.js +11 -89
  384. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  385. package/lib/components/upload/index.js +2 -2
  386. package/lib/components/upload/src/upload-content.js +46 -15
  387. package/lib/components/upload/src/upload-content.js.map +1 -1
  388. package/lib/components/upload/src/upload-content2.js +15 -46
  389. package/lib/components/upload/src/upload-content2.js.map +1 -1
  390. package/lib/components/upload/src/upload-list.js +155 -27
  391. package/lib/components/upload/src/upload-list.js.map +1 -1
  392. package/lib/components/upload/src/upload-list2.js +27 -155
  393. package/lib/components/upload/src/upload-list2.js.map +1 -1
  394. package/lib/components/upload/src/upload2.js +2 -2
  395. package/lib/index.js +27 -27
  396. package/lib/version.d.ts +1 -1
  397. package/lib/version.js +1 -1
  398. package/lib/version.js.map +1 -1
  399. package/package.json +1 -1
  400. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"avatar2.mjs","sources":["../../../../../../packages/components/avatar/src/avatar.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-ps/utils'\nimport { componentSizes } from '@element-ps/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ObjectFitProperty } from 'csstype'\nimport type Avatar from './avatar.vue'\n\nexport const avatarProps = buildProps({\n size: {\n type: [Number, String],\n values: componentSizes,\n default: '',\n validator: (val: unknown): val is number => typeof val === 'number',\n },\n shape: {\n type: String,\n values: ['circle', 'square'],\n default: 'circle',\n },\n icon: {\n type: iconPropType,\n },\n src: {\n type: String,\n default: '',\n },\n alt: String,\n srcSet: String,\n fit: {\n type: definePropType<ObjectFitProperty>(String),\n default: 'cover',\n },\n} as const)\nexport type AvatarProps = ExtractPropTypes<typeof avatarProps>\n\nexport type AvatarInstance = InstanceType<typeof Avatar>\n"],"names":[],"mappings":";;;;;;AAEY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS,EAAE,CAAC,GAAG,KAAK,OAAO,GAAG,KAAK,QAAQ;AAC/C,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"avatar2.mjs","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n />\n <ps-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </ps-icon>\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { PsIcon } from '@element-ps/components/icon'\nimport { useNamespace } from '@element-ps/hooks'\nimport { addUnit, isNumber, isString } from '@element-ps/utils'\nimport { avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'PsAvatar',\n})\n\nconst props = defineProps(avatarProps)\n\nconst ns = useNamespace('avatar')\n\nconst hasLoadError = ref(false)\n\nconst avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n})\n\nconst sizeStyle = computed(() => {\n const { size } = props\n return isNumber(size)\n ? ({\n '--el-avatar-size': addUnit(size),\n } as CSSProperties)\n : undefined\n})\n\nconst fitStyle = computed<CSSProperties>(() => ({\n objectFit: props.fit,\n}))\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AA+BA,IAAA,MAAA,EAAA,GAAA,aAAA,QAAA,CAAA,CAAA;AAEA,IAAA,MAAA,YAAA,GAAA,IAAA,KAAA,CAAA,CAAA;AAEA,IAAA,MAAA,WAAA,GAAA,SAAA,MAAA;AACA,MAAA,MAAA,EAAA,IAAA,EAAA,IAAA,EAAA,KAAA,EAAA,GAAA,KAAA,CAAA;AACA,MAAA,MAAA,SAAA,GAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA;AACA,MAAA,IAAA,SAAA,IAAA,CAAA;AAAA,QAAA,SAAA,CAAA,IAAA,CAAA,EAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA;AACA,MAAA,IAAA,IAAA;AAAA,QAAA,SAAA,CAAA,IAAA,CAAA,EAAA,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAAA;AACA,MAAA,IAAA,KAAA;AAAA,QAAA,SAAA,CAAA,IAAA,CAAA,EAAA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AACA,MAAA,OAAA,SAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAEA,IAAA,MAAA,SAAA,GAAA,SAAA,MAAA;AACA,MAAA,MAAA,EAAA,IAAA,EAAA,GAAA,KAAA,CAAA;AACA,MAAA,OAAA,QAAA,CAAA,IAAA,CACA,GAAA;AAAA,QACA,kBAAA,EAAA,QAAA,IAAA,CAAA;AAAA,OAEA,GAAA,KAAA,CAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAEA,IAAA,MAAA,QAAA,GAAA,SAAA,OAAA;AAAA,MACA,WAAA,KAAA,CAAA,GAAA;AAAA,KACA,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Backtop from './src/backtop2.mjs';
3
- export { backtopProps } from './src/backtop.mjs';
2
+ import Backtop from './src/backtop.mjs';
3
+ export { backtopProps } from './src/backtop2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const PsBacktop = withInstall(Backtop);
@@ -1,21 +1,62 @@
1
- const backtopProps = {
2
- visibilityHeight: {
3
- type: Number,
4
- default: 200
5
- },
6
- target: {
7
- type: String,
8
- default: ""
9
- },
10
- right: {
11
- type: Number,
12
- default: 40
13
- },
14
- bottom: {
15
- type: Number,
16
- default: 40
17
- }
1
+ import { defineComponent, shallowRef, ref, computed, onMounted, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, renderSlot, createVNode, withCtx } from 'vue';
2
+ import { PsIcon } from '../../icon/index.mjs';
3
+ import '../../../utils/index.mjs';
4
+ import { CaretTop } from '@element-plus/icons-vue';
5
+ import '../../../hooks/index.mjs';
6
+ import { backtopProps } from './backtop2.mjs';
7
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
+ import { throwError } from '../../../utils/error.mjs';
10
+
11
+ const __default__ = {
12
+ name: "PsBacktop"
18
13
  };
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: backtopProps,
17
+ setup(__props) {
18
+ const props = __props;
19
+ const COMPONENT_NAME = "PsBacktop";
20
+ const ns = useNamespace("backtop");
21
+ const el = shallowRef();
22
+ const container = shallowRef();
23
+ const visible = ref(false);
24
+ const backTopStyle = computed(() => ({
25
+ right: `${props.right}px`,
26
+ bottom: `${props.bottom}px`
27
+ }));
28
+ onMounted(() => {
29
+ var _a;
30
+ container.value = document;
31
+ el.value = document.documentElement;
32
+ if (props.target) {
33
+ el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
34
+ if (!el.value) {
35
+ throwError(COMPONENT_NAME, `target is not existed: ${props.target}`);
36
+ }
37
+ container.value = el.value;
38
+ }
39
+ });
40
+ return (_ctx, _cache) => {
41
+ return openBlock(), createElementBlock("div", {
42
+ style: normalizeStyle(unref(backTopStyle)),
43
+ class: normalizeClass(unref(ns).b())
44
+ }, [
45
+ renderSlot(_ctx.$slots, "default", {}, () => [
46
+ createVNode(unref(PsIcon), {
47
+ class: normalizeClass(unref(ns).e("icon"))
48
+ }, {
49
+ default: withCtx(() => [
50
+ createVNode(unref(CaretTop))
51
+ ]),
52
+ _: 1
53
+ }, 8, ["class"])
54
+ ])
55
+ ], 6);
56
+ };
57
+ }
58
+ });
59
+ var Backtop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/backtop/src/backtop.vue"]]);
19
60
 
20
- export { backtopProps };
61
+ export { Backtop as default };
21
62
  //# sourceMappingURL=backtop.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const backtopProps = {\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n target: {\n type: String,\n default: '',\n },\n right: {\n type: Number,\n default: 40,\n },\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n"],"names":[],"mappings":"AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH;;;;"}
1
+ {"version":3,"file":"backtop.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <div\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n >\n <slot>\n <ps-icon :class=\"ns.e('icon')\"><caret-top /></ps-icon>\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref, shallowRef } from 'vue'\nimport { PsIcon } from '@element-ps/components/icon'\nimport { throwError } from '@element-ps/utils'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-ps/hooks'\n\nimport { backtopProps } from './backtop'\n\nconst COMPONENT_NAME = 'PsBacktop'\n\ndefineOptions({\n name: 'PsBacktop',\n})\n\nconst props = defineProps(backtopProps)\n\nconst ns = useNamespace('backtop')\nconst el = shallowRef<HTMLElement>()\nconst container = shallowRef<Document | HTMLElement>()\nconst visible = ref(false)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n\nonMounted(() => {\n container.value = document\n el.value = document.documentElement\n\n if (props.target) {\n el.value = document.querySelector<HTMLElement>(props.target) ?? undefined\n if (!el.value) {\n throwError(COMPONENT_NAME, `target is not existed: ${props.target}`)\n }\n container.value = el.value\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,IAAA,MAAA,cAAA,GAAA,WAAA,CAAA;AAQA,IAAA,MAAA,EAAA,GAAA,aAAA,SAAA,CAAA,CAAA;AACA,IAAA,MAAA,KAAA,UAAA,EAAA,CAAA;AACA,IAAA,MAAA,YAAA,UAAA,EAAA,CAAA;AACA,IAAA,MAAA,OAAA,GAAA,IAAA,KAAA,CAAA,CAAA;AAEA,IAAA,MAAA,YAAA,GAAA,SAAA,OAAA;AAAA,MACA,KAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MACA,MAAA,EAAA,GAAA,KAAA,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACA,CAAA,CAAA,CAAA;AAEA,IAAA,SAAA,CAAA,MAAA;AACA,MAAA,IAAA,EAAA,CAAA;AACA,MAAA,eAAA,GAAA,QAAA,CAAA;AAEA,MAAA,EAAA,CAAA,QAAA,QAAA,CAAA,eAAA,CAAA;AACA,MAAA,IAAA,KAAA,CAAA,MAAA,EAAA;AACA,QAAA,EAAA,CAAA,KAAA,GAAA,CAAA,EAAA,GAAA,QAAA,CAAA,aAAA,CAAA,KAAA,CAAA,MAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,CAAA;AACA,QAAA,IAAA,CAAA,EAAA,CAAA,KAAA,EAAA;AAAA,UACA,UAAA,CAAA,cAAA,EAAA,CAAA,uBAAA,EAAA,KAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA;AACA,SAAA;AAAA,QACA,SAAA,CAAA,KAAA,GAAA,EAAA,CAAA,KAAA,CAAA;AAAA,OACA;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,62 +1,21 @@
1
- import { defineComponent, shallowRef, ref, computed, onMounted, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, renderSlot, createVNode, withCtx } from 'vue';
2
- import { PsIcon } from '../../icon/index.mjs';
3
- import '../../../utils/index.mjs';
4
- import { CaretTop } from '@element-plus/icons-vue';
5
- import '../../../hooks/index.mjs';
6
- import { backtopProps } from './backtop.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
9
- import { throwError } from '../../../utils/error.mjs';
10
-
11
- const __default__ = {
12
- name: "PsBacktop"
13
- };
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: backtopProps,
17
- setup(__props) {
18
- const props = __props;
19
- const COMPONENT_NAME = "PsBacktop";
20
- const ns = useNamespace("backtop");
21
- const el = shallowRef();
22
- const container = shallowRef();
23
- const visible = ref(false);
24
- const backTopStyle = computed(() => ({
25
- right: `${props.right}px`,
26
- bottom: `${props.bottom}px`
27
- }));
28
- onMounted(() => {
29
- var _a;
30
- container.value = document;
31
- el.value = document.documentElement;
32
- if (props.target) {
33
- el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
34
- if (!el.value) {
35
- throwError(COMPONENT_NAME, `target is not existed: ${props.target}`);
36
- }
37
- container.value = el.value;
38
- }
39
- });
40
- return (_ctx, _cache) => {
41
- return openBlock(), createElementBlock("div", {
42
- style: normalizeStyle(unref(backTopStyle)),
43
- class: normalizeClass(unref(ns).b())
44
- }, [
45
- renderSlot(_ctx.$slots, "default", {}, () => [
46
- createVNode(unref(PsIcon), {
47
- class: normalizeClass(unref(ns).e("icon"))
48
- }, {
49
- default: withCtx(() => [
50
- createVNode(unref(CaretTop))
51
- ]),
52
- _: 1
53
- }, 8, ["class"])
54
- ])
55
- ], 6);
56
- };
1
+ const backtopProps = {
2
+ visibilityHeight: {
3
+ type: Number,
4
+ default: 200
5
+ },
6
+ target: {
7
+ type: String,
8
+ default: ""
9
+ },
10
+ right: {
11
+ type: Number,
12
+ default: 40
13
+ },
14
+ bottom: {
15
+ type: Number,
16
+ default: 40
57
17
  }
58
- });
59
- var Backtop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/backtop/src/backtop.vue"]]);
18
+ };
60
19
 
61
- export { Backtop as default };
20
+ export { backtopProps };
62
21
  //# sourceMappingURL=backtop2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop2.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <div\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n >\n <slot>\n <ps-icon :class=\"ns.e('icon')\"><caret-top /></ps-icon>\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref, shallowRef } from 'vue'\nimport { PsIcon } from '@element-ps/components/icon'\nimport { throwError } from '@element-ps/utils'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-ps/hooks'\n\nimport { backtopProps } from './backtop'\n\nconst COMPONENT_NAME = 'PsBacktop'\n\ndefineOptions({\n name: 'PsBacktop',\n})\n\nconst props = defineProps(backtopProps)\n\nconst ns = useNamespace('backtop')\nconst el = shallowRef<HTMLElement>()\nconst container = shallowRef<Document | HTMLElement>()\nconst visible = ref(false)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n\nonMounted(() => {\n container.value = document\n el.value = document.documentElement\n\n if (props.target) {\n el.value = document.querySelector<HTMLElement>(props.target) ?? undefined\n if (!el.value) {\n throwError(COMPONENT_NAME, `target is not existed: ${props.target}`)\n }\n container.value = el.value\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,IAAA,MAAA,cAAA,GAAA,WAAA,CAAA;AAQA,IAAA,MAAA,EAAA,GAAA,aAAA,SAAA,CAAA,CAAA;AACA,IAAA,MAAA,KAAA,UAAA,EAAA,CAAA;AACA,IAAA,MAAA,YAAA,UAAA,EAAA,CAAA;AACA,IAAA,MAAA,OAAA,GAAA,IAAA,KAAA,CAAA,CAAA;AAEA,IAAA,MAAA,YAAA,GAAA,SAAA,OAAA;AAAA,MACA,KAAA,EAAA,GAAA,KAAA,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MACA,MAAA,EAAA,GAAA,KAAA,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACA,CAAA,CAAA,CAAA;AAEA,IAAA,SAAA,CAAA,MAAA;AACA,MAAA,IAAA,EAAA,CAAA;AACA,MAAA,eAAA,GAAA,QAAA,CAAA;AAEA,MAAA,EAAA,CAAA,QAAA,QAAA,CAAA,eAAA,CAAA;AACA,MAAA,IAAA,KAAA,CAAA,MAAA,EAAA;AACA,QAAA,EAAA,CAAA,KAAA,GAAA,CAAA,EAAA,GAAA,QAAA,CAAA,aAAA,CAAA,KAAA,CAAA,MAAA,CAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,CAAA;AACA,QAAA,IAAA,CAAA,EAAA,CAAA,KAAA,EAAA;AAAA,UACA,UAAA,CAAA,cAAA,EAAA,CAAA,uBAAA,EAAA,KAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA;AACA,SAAA;AAAA,QACA,SAAA,CAAA,KAAA,GAAA,EAAA,CAAA,KAAA,CAAA;AAAA,OACA;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"backtop2.mjs","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const backtopProps = {\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n target: {\n type: String,\n default: '',\n },\n right: {\n type: Number,\n default: 40,\n },\n bottom: {\n type: Number,\n default: 40,\n },\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n"],"names":[],"mappings":"AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH;;;;"}
@@ -1,8 +1,8 @@
1
1
  import '../../utils/index.mjs';
2
2
  import Breadcrumb from './src/breadcrumb2.mjs';
3
- import BreadcrumbItem from './src/breadcrumb-item.mjs';
3
+ import BreadcrumbItem from './src/breadcrumb-item2.mjs';
4
4
  export { breadcrumbProps } from './src/breadcrumb.mjs';
5
- export { breadcrumbItemProps } from './src/breadcrumb-item2.mjs';
5
+ export { breadcrumbItemProps } from './src/breadcrumb-item.mjs';
6
6
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
7
7
 
8
8
  const PsBreadcrumb = withInstall(Breadcrumb, {
@@ -1,51 +1,16 @@
1
- import { defineComponent, inject, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, withCtx, resolveDynamicComponent, toDisplayString } from 'vue';
2
- import { PsIcon } from '../../icon/index.mjs';
3
- import '../../../tokens/index.mjs';
4
- import '../../../hooks/index.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { breadcrumbKey } from '../../../tokens/breadcrumb.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
8
3
 
9
- const __default__ = {
10
- name: "PsBreadcrumbItem"
11
- };
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- setup(__props) {
15
- const breadcrumbInjection = inject(breadcrumbKey, {});
16
- const ns = useNamespace("breadcrumb");
17
- const { separator, separatorIcon } = breadcrumbInjection;
18
- const link = ref();
19
- return (_ctx, _cache) => {
20
- return openBlock(), createElementBlock("span", {
21
- class: normalizeClass(unref(ns).e("item"))
22
- }, [
23
- createElementVNode("span", {
24
- ref_key: "link",
25
- ref: link,
26
- class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
27
- role: "link"
28
- }, [
29
- renderSlot(_ctx.$slots, "default")
30
- ], 2),
31
- unref(separatorIcon) ? (openBlock(), createBlock(unref(PsIcon), {
32
- key: 0,
33
- class: normalizeClass(unref(ns).e("separator"))
34
- }, {
35
- default: withCtx(() => [
36
- (openBlock(), createBlock(resolveDynamicComponent(unref(separatorIcon))))
37
- ]),
38
- _: 1
39
- }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
40
- key: 1,
41
- class: normalizeClass(unref(ns).e("separator")),
42
- role: "presentation"
43
- }, toDisplayString(unref(separator)), 3))
44
- ], 2);
45
- };
4
+ const breadcrumbItemProps = buildProps({
5
+ to: {
6
+ type: definePropType([String, Object]),
7
+ default: ""
8
+ },
9
+ replace: {
10
+ type: Boolean,
11
+ default: false
46
12
  }
47
13
  });
48
- var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);
49
14
 
50
- export { BreadcrumbItem as default };
15
+ export { breadcrumbItemProps };
51
16
  //# sourceMappingURL=breadcrumb-item.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n >\n <slot />\n </span>\n <ps-icon v-if=\"separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"separatorIcon\" />\n </ps-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, ref } from 'vue'\nimport PsIcon from '@element-ps/components/icon'\nimport { breadcrumbKey } from '@element-ps/tokens'\nimport { useNamespace } from '@element-ps/hooks'\nimport type { BreadcrumbProps } from './breadcrumb'\n\ndefineOptions({\n name: 'PsBreadcrumbItem',\n})\n\nconst breadcrumbInjection = inject(breadcrumbKey, {} as BreadcrumbProps)!\n\nconst ns = useNamespace('breadcrumb')\n\nconst { separator, separatorIcon } = breadcrumbInjection\n\nconst link = ref<HTMLSpanElement>()\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA6BA,IAAA,MAAA,mBAAA,GAAA,MAAA,CAAA,aAAA,EAAA,EAAA,CAAA,CAAA;AAEA,IAAA,MAAA,EAAA,GAAA,aAAA,YAAA,CAAA,CAAA;AAEA,IAAA,MAAA,EAAA,WAAA,aAAA,EAAA,GAAA,mBAAA,CAAA;AAEA,IAAA,MAAA,OAAA,GAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"breadcrumb-item.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-ps/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\nimport type BreadcrumbItem from './breadcrumb-item.vue'\n\nexport const breadcrumbItemProps = buildProps({\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n replace: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\n\nexport type BreadcrumbItemInstance = InstanceType<typeof BreadcrumbItem>\n"],"names":[],"mappings":";;;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
@@ -1,16 +1,51 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props.mjs';
1
+ import { defineComponent, inject, ref, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, withCtx, resolveDynamicComponent, toDisplayString } from 'vue';
2
+ import { PsIcon } from '../../icon/index.mjs';
3
+ import '../../../tokens/index.mjs';
4
+ import '../../../hooks/index.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { breadcrumbKey } from '../../../tokens/breadcrumb.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
3
8
 
4
- const breadcrumbItemProps = buildProps({
5
- to: {
6
- type: definePropType([String, Object]),
7
- default: ""
8
- },
9
- replace: {
10
- type: Boolean,
11
- default: false
9
+ const __default__ = {
10
+ name: "PsBreadcrumbItem"
11
+ };
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ setup(__props) {
15
+ const breadcrumbInjection = inject(breadcrumbKey, {});
16
+ const ns = useNamespace("breadcrumb");
17
+ const { separator, separatorIcon } = breadcrumbInjection;
18
+ const link = ref();
19
+ return (_ctx, _cache) => {
20
+ return openBlock(), createElementBlock("span", {
21
+ class: normalizeClass(unref(ns).e("item"))
22
+ }, [
23
+ createElementVNode("span", {
24
+ ref_key: "link",
25
+ ref: link,
26
+ class: normalizeClass([unref(ns).e("inner"), unref(ns).is("link", !!_ctx.to)]),
27
+ role: "link"
28
+ }, [
29
+ renderSlot(_ctx.$slots, "default")
30
+ ], 2),
31
+ unref(separatorIcon) ? (openBlock(), createBlock(unref(PsIcon), {
32
+ key: 0,
33
+ class: normalizeClass(unref(ns).e("separator"))
34
+ }, {
35
+ default: withCtx(() => [
36
+ (openBlock(), createBlock(resolveDynamicComponent(unref(separatorIcon))))
37
+ ]),
38
+ _: 1
39
+ }, 8, ["class"])) : (openBlock(), createElementBlock("span", {
40
+ key: 1,
41
+ class: normalizeClass(unref(ns).e("separator")),
42
+ role: "presentation"
43
+ }, toDisplayString(unref(separator)), 3))
44
+ ], 2);
45
+ };
12
46
  }
13
47
  });
48
+ var BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);
14
49
 
15
- export { breadcrumbItemProps };
50
+ export { BreadcrumbItem as default };
16
51
  //# sourceMappingURL=breadcrumb-item2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb-item2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-ps/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\nimport type BreadcrumbItem from './breadcrumb-item.vue'\n\nexport const breadcrumbItemProps = buildProps({\n to: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n default: '',\n },\n replace: {\n type: Boolean,\n default: false,\n },\n} as const)\nexport type BreadcrumbItemProps = ExtractPropTypes<typeof breadcrumbItemProps>\n\nexport type BreadcrumbItemInstance = InstanceType<typeof BreadcrumbItem>\n"],"names":[],"mappings":";;;AACY,MAAC,mBAAmB,GAAG,UAAU,CAAC;AAC9C,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"breadcrumb-item2.mjs","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb-item.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('item')\">\n <span\n ref=\"link\"\n :class=\"[ns.e('inner'), ns.is('link', !!to)]\"\n role=\"link\"\n >\n <slot />\n </span>\n <ps-icon v-if=\"separatorIcon\" :class=\"ns.e('separator')\">\n <component :is=\"separatorIcon\" />\n </ps-icon>\n <span v-else :class=\"ns.e('separator')\" role=\"presentation\">\n {{ separator }}\n </span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, ref } from 'vue'\nimport PsIcon from '@element-ps/components/icon'\nimport { breadcrumbKey } from '@element-ps/tokens'\nimport { useNamespace } from '@element-ps/hooks'\nimport type { BreadcrumbProps } from './breadcrumb'\n\ndefineOptions({\n name: 'PsBreadcrumbItem',\n})\n\nconst breadcrumbInjection = inject(breadcrumbKey, {} as BreadcrumbProps)!\n\nconst ns = useNamespace('breadcrumb')\n\nconst { separator, separatorIcon } = breadcrumbInjection\n\nconst link = ref<HTMLSpanElement>()\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA6BA,IAAA,MAAA,mBAAA,GAAA,MAAA,CAAA,aAAA,EAAA,EAAA,CAAA,CAAA;AAEA,IAAA,MAAA,EAAA,GAAA,aAAA,YAAA,CAAA,CAAA;AAEA,IAAA,MAAA,EAAA,WAAA,aAAA,EAAA,GAAA,mBAAA,CAAA;AAEA,IAAA,MAAA,OAAA,GAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import '../../utils/index.mjs';
2
- import Button from './src/button.mjs';
3
- import ButtonGroup from './src/button-group2.mjs';
4
- export { buttonNativeTypes, buttonProps, buttonTypes } from './src/button2.mjs';
2
+ import Button from './src/button2.mjs';
3
+ import ButtonGroup from './src/button-group.mjs';
4
+ export { buttonNativeTypes, buttonProps, buttonTypes } from './src/button.mjs';
5
5
  import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
6
6
 
7
7
  const PsButton = withInstall(Button, {
@@ -1,9 +1,34 @@
1
- import { buttonProps } from './button2.mjs';
1
+ import { defineComponent, provide, reactive, toRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
+ import '../../../tokens/index.mjs';
3
+ import '../../../hooks/index.mjs';
4
+ import { buttonGroupProps } from './button-group2.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { buttonGroupContextKey } from '../../../tokens/button.mjs';
7
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
2
8
 
3
- const buttonGroupProps = {
4
- size: buttonProps.size,
5
- type: buttonProps.type
9
+ const __default__ = {
10
+ name: "PsButtonGroup"
6
11
  };
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: buttonGroupProps,
15
+ setup(__props) {
16
+ const props = __props;
17
+ provide(buttonGroupContextKey, reactive({
18
+ size: toRef(props, "size"),
19
+ type: toRef(props, "type")
20
+ }));
21
+ const ns = useNamespace("button");
22
+ return (_ctx, _cache) => {
23
+ return openBlock(), createElementBlock("div", {
24
+ class: normalizeClass(`${unref(ns).b("group")}`)
25
+ }, [
26
+ renderSlot(_ctx.$slots, "default")
27
+ ], 2);
28
+ };
29
+ }
30
+ });
31
+ var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/button/src/button-group.vue"]]);
7
32
 
8
- export { buttonGroupProps };
33
+ export { ButtonGroup as default };
9
34
  //# sourceMappingURL=button-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { buttonProps } from './button'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type buttonGroup from './button-group.vue'\n\nexport const buttonGroupProps = {\n size: buttonProps.size,\n type: buttonProps.type,\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\n\nexport type ButtonGroupInstance = InstanceType<typeof buttonGroup>\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG;AAChC,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB;;;;"}
1
+ {"version":3,"file":"button-group.mjs","sources":["../../../../../../packages/components/button/src/button-group.vue"],"sourcesContent":["<template>\n <div :class=\"`${ns.b('group')}`\">\n <slot />\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { provide, reactive, toRef } from 'vue'\nimport { buttonGroupContextKey } from '@element-ps/tokens'\nimport { useNamespace } from '@element-ps/hooks'\nimport { buttonGroupProps } from './button-group'\n\ndefineOptions({\n name: 'PsButtonGroup',\n})\nconst props = defineProps(buttonGroupProps)\nprovide(\n buttonGroupContextKey,\n reactive({\n size: toRef(props, 'size'),\n type: toRef(props, 'type'),\n })\n)\nconst ns = useNamespace('button')\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,IAAA,OAAA,CACA,uBACA,QAAA,CAAA;AAAA,MACA,IAAA,EAAA,KAAA,CAAA,KAAA,EAAA,MAAA,CAAA;AAAA,MACA,IAAA,EAAA,KAAA,CAAA,KAAA,EAAA,MAAA,CAAA;AAAA,KACA,CACA,CAAA,CAAA;AACA,IAAA,MAAA,EAAA,GAAA,aAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -1,34 +1,9 @@
1
- import { defineComponent, provide, reactive, toRef, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from 'vue';
2
- import '../../../tokens/index.mjs';
3
- import '../../../hooks/index.mjs';
4
- import { buttonGroupProps } from './button-group.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { buttonGroupContextKey } from '../../../tokens/button.mjs';
7
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { buttonProps } from './button.mjs';
8
2
 
9
- const __default__ = {
10
- name: "PsButtonGroup"
3
+ const buttonGroupProps = {
4
+ size: buttonProps.size,
5
+ type: buttonProps.type
11
6
  };
12
- const _sfc_main = /* @__PURE__ */ defineComponent({
13
- ...__default__,
14
- props: buttonGroupProps,
15
- setup(__props) {
16
- const props = __props;
17
- provide(buttonGroupContextKey, reactive({
18
- size: toRef(props, "size"),
19
- type: toRef(props, "type")
20
- }));
21
- const ns = useNamespace("button");
22
- return (_ctx, _cache) => {
23
- return openBlock(), createElementBlock("div", {
24
- class: normalizeClass(`${unref(ns).b("group")}`)
25
- }, [
26
- renderSlot(_ctx.$slots, "default")
27
- ], 2);
28
- };
29
- }
30
- });
31
- var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/meng/workspace/element-ps/packages/components/button/src/button-group.vue"]]);
32
7
 
33
- export { ButtonGroup as default };
8
+ export { buttonGroupProps };
34
9
  //# sourceMappingURL=button-group2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"button-group2.mjs","sources":["../../../../../../packages/components/button/src/button-group.vue"],"sourcesContent":["<template>\n <div :class=\"`${ns.b('group')}`\">\n <slot />\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { provide, reactive, toRef } from 'vue'\nimport { buttonGroupContextKey } from '@element-ps/tokens'\nimport { useNamespace } from '@element-ps/hooks'\nimport { buttonGroupProps } from './button-group'\n\ndefineOptions({\n name: 'PsButtonGroup',\n})\nconst props = defineProps(buttonGroupProps)\nprovide(\n buttonGroupContextKey,\n reactive({\n size: toRef(props, 'size'),\n type: toRef(props, 'type'),\n })\n)\nconst ns = useNamespace('button')\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,IAAA,OAAA,CACA,uBACA,QAAA,CAAA;AAAA,MACA,IAAA,EAAA,KAAA,CAAA,KAAA,EAAA,MAAA,CAAA;AAAA,MACA,IAAA,EAAA,KAAA,CAAA,KAAA,EAAA,MAAA,CAAA;AAAA,KACA,CACA,CAAA,CAAA;AACA,IAAA,MAAA,EAAA,GAAA,aAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button-group2.mjs","sources":["../../../../../../packages/components/button/src/button-group.ts"],"sourcesContent":["import { buttonProps } from './button'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type buttonGroup from './button-group.vue'\n\nexport const buttonGroupProps = {\n size: buttonProps.size,\n type: buttonProps.type,\n} as const\nexport type ButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>\n\nexport type ButtonGroupInstance = InstanceType<typeof buttonGroup>\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG;AAChC,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI;AACxB;;;;"}