@wfrog/vc-ui 1.0.0

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 (301) hide show
  1. package/README.md +95 -0
  2. package/dist/es/chunk/-EkpfdcW.mjs +1100 -0
  3. package/dist/es/chunk/8rLUmOVR.mjs +29 -0
  4. package/dist/es/chunk/B-rxnVJv.mjs +3 -0
  5. package/dist/es/chunk/BAGoDD49.mjs +36 -0
  6. package/dist/es/chunk/BAtns-Mc.mjs +96 -0
  7. package/dist/es/chunk/BJS5Pdfp.mjs +55 -0
  8. package/dist/es/chunk/BMzd-IS6.mjs +900 -0
  9. package/dist/es/chunk/BWcCXRRK.mjs +229 -0
  10. package/dist/es/chunk/BX-Ogf7p.mjs +3743 -0
  11. package/dist/es/chunk/B_tU9Nax.mjs +49 -0
  12. package/dist/es/chunk/BdDihk0t.mjs +3420 -0
  13. package/dist/es/chunk/C2LgraHx.mjs +489 -0
  14. package/dist/es/chunk/C5hWsUfD.mjs +64 -0
  15. package/dist/es/chunk/C7iSSBUr.mjs +303 -0
  16. package/dist/es/chunk/CD98REcR.mjs +666 -0
  17. package/dist/es/chunk/CEClY-_T.mjs +445 -0
  18. package/dist/es/chunk/CEm0brzD.mjs +35 -0
  19. package/dist/es/chunk/CMABHk8B.mjs +1942 -0
  20. package/dist/es/chunk/CS4VKsqy.mjs +19 -0
  21. package/dist/es/chunk/CVlj9F0I.mjs +291 -0
  22. package/dist/es/chunk/CZ4ggqDE.mjs +140 -0
  23. package/dist/es/chunk/CaTfZePA.mjs +533 -0
  24. package/dist/es/chunk/Ce9ApjrT.mjs +201 -0
  25. package/dist/es/chunk/ClZGuAIb.mjs +10 -0
  26. package/dist/es/chunk/Coex0GxM.mjs +450 -0
  27. package/dist/es/chunk/Ct6q2FXg.mjs +5 -0
  28. package/dist/es/chunk/CyxEcbcy.mjs +29 -0
  29. package/dist/es/chunk/D389hx_T.mjs +35 -0
  30. package/dist/es/chunk/D3DXeVfC.mjs +1171 -0
  31. package/dist/es/chunk/D3uV7vm-.mjs +45 -0
  32. package/dist/es/chunk/D5259bwd.mjs +50 -0
  33. package/dist/es/chunk/DMHNh_tw.mjs +49 -0
  34. package/dist/es/chunk/DVNTpOBR.mjs +4 -0
  35. package/dist/es/chunk/DZACQ9LT.mjs +95 -0
  36. package/dist/es/chunk/De_EXLIy.mjs +22 -0
  37. package/dist/es/chunk/Dh4jaUSg.mjs +89 -0
  38. package/dist/es/chunk/DhhdKtyu.mjs +439 -0
  39. package/dist/es/chunk/DqUIKX7f.mjs +2039 -0
  40. package/dist/es/chunk/Dqz1zvKN.mjs +59 -0
  41. package/dist/es/chunk/Dvi7RsXg.mjs +727 -0
  42. package/dist/es/chunk/DyDMGLoF.mjs +123 -0
  43. package/dist/es/chunk/E_WRn0OP.mjs +449 -0
  44. package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
  45. package/dist/es/chunk/HSv8BL8o.mjs +72 -0
  46. package/dist/es/chunk/JCIyOUEY.mjs +105 -0
  47. package/dist/es/chunk/O-uhUKF4.mjs +43 -0
  48. package/dist/es/chunk/Spa-JKB4.mjs +1046 -0
  49. package/dist/es/chunk/VAdRxe-1.mjs +16 -0
  50. package/dist/es/chunk/VCrtRnxt.mjs +1477 -0
  51. package/dist/es/chunk/ViP2SEY4.mjs +211 -0
  52. package/dist/es/chunk/aibQ9WSZ.mjs +249 -0
  53. package/dist/es/chunk/nWBcrYxV.mjs +690 -0
  54. package/dist/es/chunk/pcqpp-6-.mjs +9 -0
  55. package/dist/es/chunk/qY9OvNHY.mjs +283 -0
  56. package/dist/es/chunk/su2Zrql0.mjs +53 -0
  57. package/dist/es/chunk/zfg5SOj1.mjs +138 -0
  58. package/dist/es/components/awesome-icon/awesome-icon.d.ts +6 -0
  59. package/dist/es/components/awesome-icon/awesome-icon.mjs +41 -0
  60. package/dist/es/components/awesome-icon/awesome-icon.vue.d.ts +5 -0
  61. package/dist/es/components/awesome-icon/index.d.ts +4 -0
  62. package/dist/es/components/awesome-icon/index.mjs +6 -0
  63. package/dist/es/components/backbottom/backbottom.d.ts +7 -0
  64. package/dist/es/components/backbottom/backbottom.mjs +172 -0
  65. package/dist/es/components/backbottom/backbottom.vue.d.ts +7 -0
  66. package/dist/es/components/backbottom/components/child.vue.d.ts +30 -0
  67. package/dist/es/components/backbottom/index.d.ts +4 -0
  68. package/dist/es/components/backbottom/index.mjs +6 -0
  69. package/dist/es/components/button/button.d.ts +18 -0
  70. package/dist/es/components/button/button.mjs +313 -0
  71. package/dist/es/components/button/button.vue.d.ts +33 -0
  72. package/dist/es/components/button/index.css +9 -0
  73. package/dist/es/components/button/index.d.ts +4 -0
  74. package/dist/es/components/button/index.mjs +6 -0
  75. package/dist/es/components/cdn-tag.vue.d.ts +5 -0
  76. package/dist/es/components/chat-container/chat-container.d.ts +9 -0
  77. package/dist/es/components/chat-container/chat-container.mjs +77 -0
  78. package/dist/es/components/chat-container/chat-container.vue.d.ts +29 -0
  79. package/dist/es/components/chat-container/index.css +9 -0
  80. package/dist/es/components/chat-container/index.d.ts +4 -0
  81. package/dist/es/components/chat-container/index.mjs +6 -0
  82. package/dist/es/components/choice/choice.d.ts +6 -0
  83. package/dist/es/components/choice/choice.mjs +53 -0
  84. package/dist/es/components/choice/choice.vue.d.ts +5 -0
  85. package/dist/es/components/choice/index.css +7 -0
  86. package/dist/es/components/choice/index.d.ts +4 -0
  87. package/dist/es/components/choice/index.mjs +6 -0
  88. package/dist/es/components/choice-boolean/choice-boolean.d.ts +5 -0
  89. package/dist/es/components/choice-boolean/choice-boolean.mjs +32 -0
  90. package/dist/es/components/choice-boolean/choice-boolean.vue.d.ts +10 -0
  91. package/dist/es/components/choice-boolean/index.d.ts +4 -0
  92. package/dist/es/components/choice-boolean/index.mjs +6 -0
  93. package/dist/es/components/config-provider/config-provider.d.ts +16 -0
  94. package/dist/es/components/config-provider/config-provider.mjs +29 -0
  95. package/dist/es/components/config-provider/config-provider.vue.d.ts +18 -0
  96. package/dist/es/components/config-provider/config-provider2.mjs +6 -0
  97. package/dist/es/components/config-provider/index.d.ts +4 -0
  98. package/dist/es/components/config-provider/index.mjs +6 -0
  99. package/dist/es/components/cropper/cropper.d.ts +12 -0
  100. package/dist/es/components/cropper/cropper.mjs +333 -0
  101. package/dist/es/components/cropper/cropper.vue.d.ts +32 -0
  102. package/dist/es/components/cropper/index.css +4 -0
  103. package/dist/es/components/cropper/index.d.ts +4 -0
  104. package/dist/es/components/cropper/index.mjs +6 -0
  105. package/dist/es/components/currency/currency.d.ts +21 -0
  106. package/dist/es/components/currency/currency.mjs +185 -0
  107. package/dist/es/components/currency/currency.vue.d.ts +14 -0
  108. package/dist/es/components/currency/index.css +8 -0
  109. package/dist/es/components/currency/index.d.ts +4 -0
  110. package/dist/es/components/currency/index.mjs +6 -0
  111. package/dist/es/components/daterange-picker/daterange-picker.d.ts +6 -0
  112. package/dist/es/components/daterange-picker/daterange-picker.mjs +5550 -0
  113. package/dist/es/components/daterange-picker/daterange-picker.vue.d.ts +13 -0
  114. package/dist/es/components/daterange-picker/index.d.ts +4 -0
  115. package/dist/es/components/daterange-picker/index.mjs +6 -0
  116. package/dist/es/components/dialog/dialog.d.ts +13 -0
  117. package/dist/es/components/dialog/dialog.mjs +537 -0
  118. package/dist/es/components/dialog/dialog.vue.d.ts +38 -0
  119. package/dist/es/components/dialog/index.css +87 -0
  120. package/dist/es/components/dialog/index.d.ts +4 -0
  121. package/dist/es/components/dialog/index.mjs +6 -0
  122. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.d.ts +33 -0
  123. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +412 -0
  124. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.vue.d.ts +23 -0
  125. package/dist/es/components/dialog-camera-upload/index.css +66 -0
  126. package/dist/es/components/dialog-camera-upload/index.d.ts +4 -0
  127. package/dist/es/components/dialog-camera-upload/index.mjs +6 -0
  128. package/dist/es/components/dialog-map-point/dialog-map-point.d.ts +9 -0
  129. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +183 -0
  130. package/dist/es/components/dialog-map-point/dialog-map-point.vue.d.ts +22 -0
  131. package/dist/es/components/dialog-map-point/index.css +11 -0
  132. package/dist/es/components/dialog-map-point/index.d.ts +4 -0
  133. package/dist/es/components/dialog-map-point/index.mjs +6 -0
  134. package/dist/es/components/dialog-upload-images/dialog-upload-images.d.ts +16 -0
  135. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +1391 -0
  136. package/dist/es/components/dialog-upload-images/dialog-upload-images.vue.d.ts +19 -0
  137. package/dist/es/components/dialog-upload-images/index.css +62 -0
  138. package/dist/es/components/dialog-upload-images/index.d.ts +4 -0
  139. package/dist/es/components/dialog-upload-images/index.mjs +6 -0
  140. package/dist/es/components/document.vue.d.ts +14 -0
  141. package/dist/es/components/drawer/drawer.d.ts +7 -0
  142. package/dist/es/components/drawer/drawer.mjs +412 -0
  143. package/dist/es/components/drawer/drawer.vue.d.ts +31 -0
  144. package/dist/es/components/drawer/index.css +56 -0
  145. package/dist/es/components/drawer/index.d.ts +4 -0
  146. package/dist/es/components/drawer/index.mjs +6 -0
  147. package/dist/es/components/easy-pagination/easy-pagination.d.ts +8 -0
  148. package/dist/es/components/easy-pagination/easy-pagination.mjs +74 -0
  149. package/dist/es/components/easy-pagination/easy-pagination.vue.d.ts +19 -0
  150. package/dist/es/components/easy-pagination/index.css +10 -0
  151. package/dist/es/components/easy-pagination/index.d.ts +4 -0
  152. package/dist/es/components/easy-pagination/index.mjs +6 -0
  153. package/dist/es/components/el-icon/el-icon.d.ts +6 -0
  154. package/dist/es/components/el-icon/el-icon.mjs +46 -0
  155. package/dist/es/components/el-icon/el-icon.vue.d.ts +6 -0
  156. package/dist/es/components/el-icon/index.css +7 -0
  157. package/dist/es/components/el-icon/index.d.ts +4 -0
  158. package/dist/es/components/el-icon/index.mjs +6 -0
  159. package/dist/es/components/example-wrapper.vue.d.ts +19 -0
  160. package/dist/es/components/flag/flag.mjs +44 -0
  161. package/dist/es/components/flag/flag.vue.d.ts +5 -0
  162. package/dist/es/components/flag/flags.d.ts +8 -0
  163. package/dist/es/components/flag/index.d.ts +4 -0
  164. package/dist/es/components/flag/index.mjs +6 -0
  165. package/dist/es/components/icon/icon.d.ts +6 -0
  166. package/dist/es/components/icon/icon.mjs +54 -0
  167. package/dist/es/components/icon/icon.vue.d.ts +3 -0
  168. package/dist/es/components/icon/icon2.mjs +27 -0
  169. package/dist/es/components/icon/index.css +9 -0
  170. package/dist/es/components/icon/index.d.ts +4 -0
  171. package/dist/es/components/icon/index.mjs +6 -0
  172. package/dist/es/components/image/image.d.ts +16 -0
  173. package/dist/es/components/image/image.mjs +167 -0
  174. package/dist/es/components/image/image.vue.d.ts +206 -0
  175. package/dist/es/components/image/index.css +20 -0
  176. package/dist/es/components/image/index.d.ts +4 -0
  177. package/dist/es/components/image/index.mjs +6 -0
  178. package/dist/es/components/input/index.css +9 -0
  179. package/dist/es/components/input/index.d.ts +4 -0
  180. package/dist/es/components/input/index.mjs +6 -0
  181. package/dist/es/components/input/input.d.ts +4 -0
  182. package/dist/es/components/input/input.mjs +85 -0
  183. package/dist/es/components/input/input.vue.d.ts +1232 -0
  184. package/dist/es/components/input-number/index.css +24 -0
  185. package/dist/es/components/input-number/index.d.ts +4 -0
  186. package/dist/es/components/input-number/index.mjs +6 -0
  187. package/dist/es/components/input-number/input-number.d.ts +8 -0
  188. package/dist/es/components/input-number/input-number.mjs +137 -0
  189. package/dist/es/components/input-number/input-number.vue.d.ts +35 -0
  190. package/dist/es/components/pca-picker/components/c.vue.d.ts +123 -0
  191. package/dist/es/components/pca-picker/components/elevator-item.vue.d.ts +7 -0
  192. package/dist/es/components/pca-picker/components/filter.vue.d.ts +2 -0
  193. package/dist/es/components/pca-picker/components/history.vue.d.ts +2 -0
  194. package/dist/es/components/pca-picker/components/hot.vue.d.ts +2 -0
  195. package/dist/es/components/pca-picker/components/p.vue.d.ts +2 -0
  196. package/dist/es/components/pca-picker/components/pca.vue.d.ts +9 -0
  197. package/dist/es/components/pca-picker/index.css +107 -0
  198. package/dist/es/components/pca-picker/index.d.ts +4 -0
  199. package/dist/es/components/pca-picker/index.mjs +6 -0
  200. package/dist/es/components/pca-picker/pca-picker.d.ts +78 -0
  201. package/dist/es/components/pca-picker/pca-picker.mjs +1667 -0
  202. package/dist/es/components/pca-picker/pca-picker.vue.d.ts +583 -0
  203. package/dist/es/components/qr-code/index.d.ts +4 -0
  204. package/dist/es/components/qr-code/index.mjs +6 -0
  205. package/dist/es/components/qr-code/qr-code.d.ts +9 -0
  206. package/dist/es/components/qr-code/qr-code.mjs +69 -0
  207. package/dist/es/components/qr-code/qr-code.vue.d.ts +13 -0
  208. package/dist/es/components/screenfull/index.css +14 -0
  209. package/dist/es/components/screenfull/index.d.ts +4 -0
  210. package/dist/es/components/screenfull/index.mjs +6 -0
  211. package/dist/es/components/screenfull/screenfull.d.ts +4 -0
  212. package/dist/es/components/screenfull/screenfull.mjs +91 -0
  213. package/dist/es/components/screenfull/screenfull.vue.d.ts +20 -0
  214. package/dist/es/components/select/index.css +9 -0
  215. package/dist/es/components/select/index.d.ts +4 -0
  216. package/dist/es/components/select/index.mjs +6 -0
  217. package/dist/es/components/select/select.d.ts +6 -0
  218. package/dist/es/components/select/select.mjs +63 -0
  219. package/dist/es/components/select/select.vue.d.ts +6 -0
  220. package/dist/es/components/single-player/index.css +45 -0
  221. package/dist/es/components/single-player/index.d.ts +4 -0
  222. package/dist/es/components/single-player/index.mjs +6 -0
  223. package/dist/es/components/single-player/single-player.d.ts +4 -0
  224. package/dist/es/components/single-player/single-player.mjs +1172 -0
  225. package/dist/es/components/single-player/single-player.vue.d.ts +13 -0
  226. package/dist/es/components/svg-icon/index.css +9 -0
  227. package/dist/es/components/svg-icon/index.d.ts +4 -0
  228. package/dist/es/components/svg-icon/index.mjs +6 -0
  229. package/dist/es/components/svg-icon/svg-icon.d.ts +5 -0
  230. package/dist/es/components/svg-icon/svg-icon.mjs +46 -0
  231. package/dist/es/components/svg-icon/svg-icon.vue.d.ts +18 -0
  232. package/dist/es/components/switch/index.css +15 -0
  233. package/dist/es/components/switch/index.d.ts +4 -0
  234. package/dist/es/components/switch/index.mjs +6 -0
  235. package/dist/es/components/switch/switch.d.ts +9 -0
  236. package/dist/es/components/switch/switch.mjs +82 -0
  237. package/dist/es/components/switch/switch.vue.d.ts +14 -0
  238. package/dist/es/components/sync-scroll-container/index.css +82 -0
  239. package/dist/es/components/sync-scroll-container/index.d.ts +4 -0
  240. package/dist/es/components/sync-scroll-container/index.mjs +6 -0
  241. package/dist/es/components/sync-scroll-container/sync-scroll-container.d.ts +6 -0
  242. package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +157 -0
  243. package/dist/es/components/sync-scroll-container/sync-scroll-container.vue.d.ts +36 -0
  244. package/dist/es/components/tags/index.css +17 -0
  245. package/dist/es/components/tags/index.d.ts +4 -0
  246. package/dist/es/components/tags/index.mjs +6 -0
  247. package/dist/es/components/tags/tags.d.ts +9 -0
  248. package/dist/es/components/tags/tags.mjs +296 -0
  249. package/dist/es/components/tags/tags.vue.d.ts +20 -0
  250. package/dist/es/components/text-ellipsis/index.css +15 -0
  251. package/dist/es/components/text-ellipsis/index.d.ts +4 -0
  252. package/dist/es/components/text-ellipsis/index.mjs +6 -0
  253. package/dist/es/components/text-ellipsis/text-ellipsis.d.ts +12 -0
  254. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +137 -0
  255. package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +41 -0
  256. package/dist/es/components/thousand-input/index.css +4 -0
  257. package/dist/es/components/thousand-input/index.d.ts +4 -0
  258. package/dist/es/components/thousand-input/index.mjs +6 -0
  259. package/dist/es/components/thousand-input/thousand-input.d.ts +11 -0
  260. package/dist/es/components/thousand-input/thousand-input.mjs +159 -0
  261. package/dist/es/components/thousand-input/thousand-input.vue.d.ts +2558 -0
  262. package/dist/es/components/tinymce/config.d.ts +25 -0
  263. package/dist/es/components/tinymce/index.css +9 -0
  264. package/dist/es/components/tinymce/index.d.ts +4 -0
  265. package/dist/es/components/tinymce/index.mjs +6 -0
  266. package/dist/es/components/tinymce/tinymce.d.ts +9 -0
  267. package/dist/es/components/tinymce/tinymce.mjs +176 -0
  268. package/dist/es/components/tinymce/tinymce.vue.d.ts +20 -0
  269. package/dist/es/components/tree-picker/components/popover-cascader.d.ts +8 -0
  270. package/dist/es/components/tree-picker/components/popover-cascader.vue.d.ts +1361 -0
  271. package/dist/es/components/tree-picker/docs/data.d.ts +2 -0
  272. package/dist/es/components/tree-picker/index.css +41 -0
  273. package/dist/es/components/tree-picker/index.d.ts +4 -0
  274. package/dist/es/components/tree-picker/index.mjs +6 -0
  275. package/dist/es/components/tree-picker/popover-cascader.css +23 -0
  276. package/dist/es/components/tree-picker/tree-picker.d.ts +14 -0
  277. package/dist/es/components/tree-picker/tree-picker.mjs +173 -0
  278. package/dist/es/components/tree-picker/tree-picker.vue.d.ts +575 -0
  279. package/dist/es/components/upload-file/index.css +30 -0
  280. package/dist/es/components/upload-file/index.d.ts +4 -0
  281. package/dist/es/components/upload-file/index.mjs +6 -0
  282. package/dist/es/components/upload-file/upload-file.d.ts +39 -0
  283. package/dist/es/components/upload-file/upload-file.mjs +202 -0
  284. package/dist/es/components/upload-file/upload-file.vue.d.ts +30 -0
  285. package/dist/es/directives/cleave/index.d.ts +3 -0
  286. package/dist/es/directives/focus/index.d.ts +4 -0
  287. package/dist/es/directives/index.d.ts +3 -0
  288. package/dist/es/directives/thousand/index.d.ts +3 -0
  289. package/dist/es/index.d.ts +42 -0
  290. package/dist/es/index.mjs +122 -0
  291. package/dist/es/use/useSmallScreen/index.d.ts +4 -0
  292. package/dist/es/use/useSmallScreen/index.mjs +10 -0
  293. package/dist/es/use/useStore/index.d.ts +3 -0
  294. package/dist/es/use/useStore/index.mjs +22 -0
  295. package/dist/es/utils/index.d.ts +6 -0
  296. package/dist/es/utils/resolver.d.ts +3 -0
  297. package/dist/es/utils/resolver.mjs +24 -0
  298. package/dist/es/utils/typescript.d.ts +6 -0
  299. package/dist/global.d.ts +42 -0
  300. package/dist/index.css +869 -0
  301. package/package.json +58 -0
@@ -0,0 +1,283 @@
1
+ import { isRef, toValue, shallowRef, getCurrentScope, onScopeDispose, onMounted, nextTick, watch, readonly, getCurrentInstance, toRef as toRef$1, ref, customRef, hasInjectionContext, inject } from 'vue';
2
+
3
+ //#endregion
4
+ //#region tryOnScopeDispose/index.ts
5
+ /**
6
+ * Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
7
+ *
8
+ * @param fn
9
+ */
10
+ function tryOnScopeDispose(fn, failSilently) {
11
+ if (getCurrentScope()) {
12
+ onScopeDispose(fn, failSilently);
13
+ return true;
14
+ }
15
+ return false;
16
+ }
17
+
18
+ //#endregion
19
+ //#region provideLocal/map.ts
20
+ const localProvidedStateMap = /* @__PURE__ */ new WeakMap();
21
+
22
+ //#endregion
23
+ //#region injectLocal/index.ts
24
+ /**
25
+ * On the basis of `inject`, it is allowed to directly call inject to obtain the value after call provide in the same component.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * injectLocal('MyInjectionKey', 1)
30
+ * const injectedValue = injectLocal('MyInjectionKey') // injectedValue === 1
31
+ * ```
32
+ *
33
+ * @__NO_SIDE_EFFECTS__
34
+ */
35
+ const injectLocal = (...args) => {
36
+ var _getCurrentInstance;
37
+ const key = args[0];
38
+ const instance = (_getCurrentInstance = getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy;
39
+ const owner = instance !== null && instance !== void 0 ? instance : getCurrentScope();
40
+ if (owner == null && !hasInjectionContext()) throw new Error("injectLocal must be called in setup");
41
+ if (owner && localProvidedStateMap.has(owner) && key in localProvidedStateMap.get(owner)) return localProvidedStateMap.get(owner)[key];
42
+ return inject(...args);
43
+ };
44
+
45
+ //#endregion
46
+ //#region utils/is.ts
47
+ const isClient = typeof window !== "undefined" && typeof document !== "undefined";
48
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
49
+ const isDef = (val) => typeof val !== "undefined";
50
+ const toString = Object.prototype.toString;
51
+ const isObject = (val) => toString.call(val) === "[object Object]";
52
+ const noop = () => {};
53
+
54
+ //#endregion
55
+ //#region toRef/index.ts
56
+ function toRef(...args) {
57
+ if (args.length !== 1) return toRef$1(...args);
58
+ const r = args[0];
59
+ return typeof r === "function" ? readonly(customRef(() => ({
60
+ get: r,
61
+ set: noop
62
+ }))) : ref(r);
63
+ }
64
+
65
+ //#endregion
66
+ //#region utils/filters.ts
67
+ /**
68
+ * @internal
69
+ */
70
+ function createFilterWrapper(filter, fn) {
71
+ function wrapper(...args) {
72
+ return new Promise((resolve, reject) => {
73
+ Promise.resolve(filter(() => fn.apply(this, args), {
74
+ fn,
75
+ thisArg: this,
76
+ args
77
+ })).then(resolve).catch(reject);
78
+ });
79
+ }
80
+ return wrapper;
81
+ }
82
+ const bypassFilter = (invoke$1) => {
83
+ return invoke$1();
84
+ };
85
+ function throttleFilter(...args) {
86
+ let lastExec = 0;
87
+ let timer;
88
+ let isLeading = true;
89
+ let lastRejector = noop;
90
+ let lastValue;
91
+ let ms;
92
+ let trailing;
93
+ let leading;
94
+ let rejectOnCancel;
95
+ if (!isRef(args[0]) && typeof args[0] === "object") ({delay: ms, trailing = true, leading = true, rejectOnCancel = false} = args[0]);
96
+ else [ms, trailing = true, leading = true, rejectOnCancel = false] = args;
97
+ const clear = () => {
98
+ if (timer) {
99
+ clearTimeout(timer);
100
+ timer = void 0;
101
+ lastRejector();
102
+ lastRejector = noop;
103
+ }
104
+ };
105
+ const filter = (_invoke) => {
106
+ const duration = toValue(ms);
107
+ const elapsed = Date.now() - lastExec;
108
+ const invoke$1 = () => {
109
+ return lastValue = _invoke();
110
+ };
111
+ clear();
112
+ if (duration <= 0) {
113
+ lastExec = Date.now();
114
+ return invoke$1();
115
+ }
116
+ if (elapsed > duration) {
117
+ lastExec = Date.now();
118
+ if (leading || !isLeading) invoke$1();
119
+ } else if (trailing) lastValue = new Promise((resolve, reject) => {
120
+ lastRejector = rejectOnCancel ? reject : resolve;
121
+ timer = setTimeout(() => {
122
+ lastExec = Date.now();
123
+ isLeading = true;
124
+ resolve(invoke$1());
125
+ clear();
126
+ }, Math.max(0, duration - elapsed));
127
+ });
128
+ if (!leading && !timer) timer = setTimeout(() => isLeading = true, duration);
129
+ isLeading = false;
130
+ return lastValue;
131
+ };
132
+ return filter;
133
+ }
134
+ /**
135
+ * EventFilter that gives extra controls to pause and resume the filter
136
+ *
137
+ * @param extendFilter Extra filter to apply when the PausableFilter is active, default to none
138
+ * @param options Options to configure the filter
139
+ */
140
+ function pausableFilter(extendFilter = bypassFilter, options = {}) {
141
+ const { initialState = "active" } = options;
142
+ const isActive = toRef(initialState === "active");
143
+ function pause() {
144
+ isActive.value = false;
145
+ }
146
+ function resume() {
147
+ isActive.value = true;
148
+ }
149
+ const eventFilter = (...args) => {
150
+ if (isActive.value) extendFilter(...args);
151
+ };
152
+ return {
153
+ isActive: readonly(isActive),
154
+ pause,
155
+ resume,
156
+ eventFilter
157
+ };
158
+ }
159
+ /**
160
+ * Get a px value for SSR use, do not rely on this method outside of SSR as REM unit is assumed at 16px, which might not be the case on the client
161
+ */
162
+ function pxValue(px) {
163
+ return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);
164
+ }
165
+ function toArray(value) {
166
+ return Array.isArray(value) ? value : [value];
167
+ }
168
+
169
+ //#endregion
170
+ //#region utils/vue.ts
171
+ function getLifeCycleTarget(target) {
172
+ return getCurrentInstance();
173
+ }
174
+
175
+ //#endregion
176
+ //#region useThrottleFn/index.ts
177
+ /**
178
+ * Throttle execution of a function. Especially useful for rate limiting
179
+ * execution of handlers on events like resize and scroll.
180
+ *
181
+ * @param fn A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
182
+ * to `callback` when the throttled-function is executed.
183
+ * @param ms A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
184
+ * (default value: 200)
185
+ *
186
+ * @param [trailing] if true, call fn again after the time is up (default value: false)
187
+ *
188
+ * @param [leading] if true, call fn on the leading edge of the ms timeout (default value: true)
189
+ *
190
+ * @param [rejectOnCancel] if true, reject the last call if it's been cancel (default value: false)
191
+ *
192
+ * @return A new, throttled, function.
193
+ *
194
+ * @__NO_SIDE_EFFECTS__
195
+ */
196
+ function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {
197
+ return createFilterWrapper(throttleFilter(ms, trailing, leading, rejectOnCancel), fn);
198
+ }
199
+
200
+ //#endregion
201
+ //#region watchWithFilter/index.ts
202
+ function watchWithFilter(source, cb, options = {}) {
203
+ const { eventFilter = bypassFilter,...watchOptions } = options;
204
+ return watch(source, createFilterWrapper(eventFilter, cb), watchOptions);
205
+ }
206
+
207
+ //#endregion
208
+ //#region watchPausable/index.ts
209
+ function watchPausable(source, cb, options = {}) {
210
+ const { eventFilter: filter, initialState = "active",...watchOptions } = options;
211
+ const { eventFilter, pause, resume, isActive } = pausableFilter(filter, { initialState });
212
+ return {
213
+ stop: watchWithFilter(source, cb, {
214
+ ...watchOptions,
215
+ eventFilter
216
+ }),
217
+ pause,
218
+ resume,
219
+ isActive
220
+ };
221
+ }
222
+ /** @deprecated use `watchPausable` instead */
223
+ const pausableWatch = watchPausable;
224
+
225
+ //#endregion
226
+ //#region tryOnMounted/index.ts
227
+ /**
228
+ * Call onMounted() if it's inside a component lifecycle, if not, just call the function
229
+ *
230
+ * @param fn
231
+ * @param sync if set to false, it will run in the nextTick() of Vue
232
+ * @param target
233
+ */
234
+ function tryOnMounted(fn, sync = true, target) {
235
+ if (getLifeCycleTarget()) onMounted(fn, target);
236
+ else if (sync) fn();
237
+ else nextTick(fn);
238
+ }
239
+
240
+ //#endregion
241
+ //#region useToggle/index.ts
242
+ /**
243
+ * A boolean ref with a toggler
244
+ *
245
+ * @see https://vueuse.org/useToggle
246
+ * @param [initialValue]
247
+ * @param options
248
+ *
249
+ * @__NO_SIDE_EFFECTS__
250
+ */
251
+ function useToggle(initialValue = false, options = {}) {
252
+ const { truthyValue = true, falsyValue = false } = options;
253
+ const valueIsRef = isRef(initialValue);
254
+ const _value = shallowRef(initialValue);
255
+ function toggle(value) {
256
+ if (arguments.length) {
257
+ _value.value = value;
258
+ return _value.value;
259
+ } else {
260
+ const truthy = toValue(truthyValue);
261
+ _value.value = _value.value === truthy ? toValue(falsyValue) : truthy;
262
+ return _value.value;
263
+ }
264
+ }
265
+ if (valueIsRef) return toggle;
266
+ else return [_value, toggle];
267
+ }
268
+
269
+ //#endregion
270
+ //#region watchImmediate/index.ts
271
+ /**
272
+ * Shorthand for watching value with {immediate: true}
273
+ *
274
+ * @see https://vueuse.org/watchImmediate
275
+ */
276
+ function watchImmediate(source, cb, options) {
277
+ return watch(source, cb, {
278
+ ...options,
279
+ immediate: true
280
+ });
281
+ }
282
+
283
+ export { useThrottleFn as a, isClient as b, tryOnMounted as c, toArray as d, pxValue as e, injectLocal as f, isObject as g, isDef as i, noop as n, pausableWatch as p, tryOnScopeDispose as t, useToggle as u, watchImmediate as w };
@@ -0,0 +1,53 @@
1
+ import { j as isFunction } from './E_WRn0OP.mjs';
2
+
3
+ const REPEAT_INTERVAL = 100;
4
+ const REPEAT_DELAY = 600;
5
+ const SCOPE = "_RepeatClick";
6
+ const vRepeatClick = {
7
+ beforeMount(el, binding) {
8
+ const value = binding.value;
9
+ const { interval = REPEAT_INTERVAL, delay = REPEAT_DELAY } = isFunction(value) ? {} : value;
10
+ let intervalId;
11
+ let delayId;
12
+ const handler = () => isFunction(value) ? value() : value.handler();
13
+ const clear = () => {
14
+ if (delayId) {
15
+ clearTimeout(delayId);
16
+ delayId = void 0;
17
+ }
18
+ if (intervalId) {
19
+ clearInterval(intervalId);
20
+ intervalId = void 0;
21
+ }
22
+ };
23
+ const start = (evt) => {
24
+ if (evt.button !== 0)
25
+ return;
26
+ clear();
27
+ handler();
28
+ document.addEventListener("mouseup", clear, { once: true });
29
+ delayId = setTimeout(() => {
30
+ intervalId = setInterval(() => {
31
+ handler();
32
+ }, interval);
33
+ }, delay);
34
+ };
35
+ el[SCOPE] = { start, clear };
36
+ el.addEventListener("mousedown", start);
37
+ },
38
+ unmounted(el) {
39
+ if (!el[SCOPE])
40
+ return;
41
+ const { start, clear } = el[SCOPE];
42
+ if (start) {
43
+ el.removeEventListener("mousedown", start);
44
+ }
45
+ if (clear) {
46
+ clear();
47
+ document.removeEventListener("mouseup", clear);
48
+ }
49
+ el[SCOPE] = null;
50
+ }
51
+ };
52
+
53
+ export { vRepeatClick as v };
@@ -0,0 +1,138 @@
1
+ import { defineComponent, useSlots, ref, computed, createBlock, openBlock, Transition, unref, withCtx, withDirectives, createElementVNode, normalizeClass, createCommentVNode, renderSlot, resolveDynamicComponent, createElementBlock, createTextVNode, toDisplayString, Fragment, createVNode, vShow } from 'vue';
2
+ import { E as ElIcon } from './DMHNh_tw.mjs';
3
+ import { T as TypeComponentsMap, a as TypeComponents } from '../components/icon/icon2.mjs';
4
+ import { c as buildProps, u as useNamespace, e as debugWarn } from './E_WRn0OP.mjs';
5
+ import { k as keysOf } from './DVNTpOBR.mjs';
6
+ import { _ as _export_sfc, w as withInstall } from './D389hx_T.mjs';
7
+
8
+ const alertEffects = ["light", "dark"];
9
+ const alertProps = buildProps({
10
+ title: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ description: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ type: {
19
+ type: String,
20
+ values: keysOf(TypeComponentsMap),
21
+ default: "info"
22
+ },
23
+ closable: {
24
+ type: Boolean,
25
+ default: true
26
+ },
27
+ closeText: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ showIcon: Boolean,
32
+ center: Boolean,
33
+ effect: {
34
+ type: String,
35
+ values: alertEffects,
36
+ default: "light"
37
+ },
38
+ showAfter: Number,
39
+ hideAfter: Number,
40
+ autoClose: Number
41
+ });
42
+ const alertEmits = {
43
+ close: (evt) => evt instanceof MouseEvent
44
+ };
45
+
46
+ const __default__ = defineComponent({
47
+ name: "ElAlert"
48
+ });
49
+ const _sfc_main = /* @__PURE__ */ defineComponent({
50
+ ...__default__,
51
+ props: alertProps,
52
+ emits: alertEmits,
53
+ setup(__props, { emit }) {
54
+ const props = __props;
55
+ const { Close } = TypeComponents;
56
+ const slots = useSlots();
57
+ const ns = useNamespace("alert");
58
+ const visible = ref(true);
59
+ const iconComponent = computed(() => TypeComponentsMap[props.type]);
60
+ const hasDesc = computed(() => !!(props.description || slots.default));
61
+ const close = (evt) => {
62
+ visible.value = false;
63
+ emit("close", evt);
64
+ };
65
+ if (props.showAfter || props.hideAfter || props.autoClose) {
66
+ debugWarn("el-alert", "The `show-after`, `hide-after`, and `auto-close` attributes were removed after 2.11.8. Please use `v-if` and `v-show` to manually replace them, visit: https://github.com/element-plus/element-plus/pull/22560");
67
+ }
68
+ return (_ctx, _cache) => {
69
+ return openBlock(), createBlock(Transition, {
70
+ name: unref(ns).b("fade"),
71
+ persisted: ""
72
+ }, {
73
+ default: withCtx(() => [
74
+ withDirectives(createElementVNode("div", {
75
+ class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.type), unref(ns).is("center", _ctx.center), unref(ns).is(_ctx.effect)]),
76
+ role: "alert"
77
+ }, [
78
+ _ctx.showIcon && (_ctx.$slots.icon || unref(iconComponent)) ? (openBlock(), createBlock(unref(ElIcon), {
79
+ key: 0,
80
+ class: normalizeClass([unref(ns).e("icon"), unref(ns).is("big", unref(hasDesc))])
81
+ }, {
82
+ default: withCtx(() => [
83
+ renderSlot(_ctx.$slots, "icon", {}, () => [
84
+ (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
85
+ ])
86
+ ]),
87
+ _: 3
88
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
89
+ createElementVNode("div", {
90
+ class: normalizeClass(unref(ns).e("content"))
91
+ }, [
92
+ _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("span", {
93
+ key: 0,
94
+ class: normalizeClass([unref(ns).e("title"), { "with-description": unref(hasDesc) }])
95
+ }, [
96
+ renderSlot(_ctx.$slots, "title", {}, () => [
97
+ createTextVNode(toDisplayString(_ctx.title), 1)
98
+ ])
99
+ ], 2)) : createCommentVNode("v-if", true),
100
+ unref(hasDesc) ? (openBlock(), createElementBlock("p", {
101
+ key: 1,
102
+ class: normalizeClass(unref(ns).e("description"))
103
+ }, [
104
+ renderSlot(_ctx.$slots, "default", {}, () => [
105
+ createTextVNode(toDisplayString(_ctx.description), 1)
106
+ ])
107
+ ], 2)) : createCommentVNode("v-if", true),
108
+ _ctx.closable ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
109
+ _ctx.closeText ? (openBlock(), createElementBlock("div", {
110
+ key: 0,
111
+ class: normalizeClass([unref(ns).e("close-btn"), unref(ns).is("customed")]),
112
+ onClick: close
113
+ }, toDisplayString(_ctx.closeText), 3)) : (openBlock(), createBlock(unref(ElIcon), {
114
+ key: 1,
115
+ class: normalizeClass(unref(ns).e("close-btn")),
116
+ onClick: close
117
+ }, {
118
+ default: withCtx(() => [
119
+ createVNode(unref(Close))
120
+ ]),
121
+ _: 1
122
+ }, 8, ["class"]))
123
+ ], 64)) : createCommentVNode("v-if", true)
124
+ ], 2)
125
+ ], 2), [
126
+ [vShow, visible.value]
127
+ ])
128
+ ]),
129
+ _: 3
130
+ }, 8, ["name"]);
131
+ };
132
+ }
133
+ });
134
+ var Alert = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "alert.vue"]]);
135
+
136
+ const ElAlert = withInstall(Alert);
137
+
138
+ export { ElAlert as E };
@@ -0,0 +1,6 @@
1
+ export interface IAwesomeIconProps {
2
+ name: string;
3
+ mode?: 'css' | 'svg';
4
+ size?: number | string;
5
+ color?: string;
6
+ }
@@ -0,0 +1,41 @@
1
+ import { defineComponent, computed, onMounted, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref } from 'vue';
2
+ import { d as defaultWindow, i as index } from '../../chunk/BdDihk0t.mjs';
3
+
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "awesome-icon",
6
+ props: {
7
+ name: {},
8
+ mode: { default: "css" },
9
+ size: {},
10
+ color: {}
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const mySize = computed(() => {
15
+ if (props.size && Number.isNaN(+props.size)) {
16
+ return props.size;
17
+ }
18
+ return `${props.size}px`;
19
+ });
20
+ async function loaderSource() {
21
+ const cdn = props.mode === "svg" ? "fontawesomeJs" : "fontawesomeCss";
22
+ await index.loadCdnSingle(cdn);
23
+ }
24
+ onMounted(() => {
25
+ if (defaultWindow) {
26
+ if (!defaultWindow.VC?.isAwesomeIconLock) {
27
+ defaultWindow.VC = { ...defaultWindow.VC, isAwesomeIconLock: true };
28
+ loaderSource();
29
+ }
30
+ }
31
+ });
32
+ return (_ctx, _cache) => {
33
+ return openBlock(), createElementBlock("i", {
34
+ class: normalizeClass(["awesome-icon", props.name]),
35
+ style: normalizeStyle({ fontSize: unref(mySize), color: __props.color })
36
+ }, null, 6);
37
+ };
38
+ }
39
+ });
40
+
41
+ export { _sfc_main as _ };
@@ -0,0 +1,5 @@
1
+ import { IAwesomeIconProps } from './awesome-icon';
2
+ declare const _default: import('vue').DefineComponent<IAwesomeIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IAwesomeIconProps> & Readonly<{}>, {
3
+ mode: "css" | "svg";
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/typescript';
2
+ import { default as Component } from './awesome-icon.vue';
3
+ export declare const VcAwesomeIcon: SFCWithInstall<typeof Component>;
4
+ export default VcAwesomeIcon;
@@ -0,0 +1,6 @@
1
+ import { w as withInstall } from '../../chunk/ClZGuAIb.mjs';
2
+ import { _ as _sfc_main } from './awesome-icon.mjs';
3
+
4
+ const VcAwesomeIcon = withInstall(_sfc_main);
5
+
6
+ export { VcAwesomeIcon, VcAwesomeIcon as default };
@@ -0,0 +1,7 @@
1
+ export interface IBackBottomProps {
2
+ target?: HTMLElement | string | null;
3
+ right?: number;
4
+ bottom?: number;
5
+ visibilityHeight?: number;
6
+ parent?: boolean;
7
+ }