@shjjs/visual-ui 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. package/es/commons/core/useChart.mjs +59 -58
  2. package/es/commons/{core → plugins}/datasource/index.mjs +5 -5
  3. package/es/commons/plugins/datasource/utils/axios.d.ts +70 -0
  4. package/es/commons/plugins/datasource/utils/axios.mjs +134 -0
  5. package/es/commons/{core → plugins}/datasource/utils/request.d.ts +1 -1
  6. package/es/commons/plugins/datasource/utils/request.mjs +5 -0
  7. package/es/commons/plugins/datasource/utils/utils.d.ts +84 -0
  8. package/es/commons/plugins/datasource/utils/utils.mjs +156 -0
  9. package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -0
  10. package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -0
  11. package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -0
  12. package/es/commons/plugins/event/actions/invokeAction.mjs +10 -0
  13. package/es/commons/plugins/event/actions/linkAction.d.ts +8 -0
  14. package/es/commons/plugins/event/actions/linkAction.mjs +7 -0
  15. package/es/commons/plugins/event/actions/moveAction.d.ts +8 -0
  16. package/es/commons/plugins/event/actions/moveAction.mjs +15 -0
  17. package/es/commons/plugins/event/actions/pageAction.d.ts +8 -0
  18. package/es/commons/plugins/event/actions/pageAction.mjs +14 -0
  19. package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -0
  20. package/es/commons/plugins/event/actions/rotateAction.mjs +19 -0
  21. package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -0
  22. package/es/commons/plugins/event/actions/scaleAction.mjs +24 -0
  23. package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -0
  24. package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -0
  25. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -0
  26. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
  27. package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -0
  28. package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
  29. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -0
  30. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
  31. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -0
  32. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
  33. package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -0
  34. package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -0
  35. package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -0
  36. package/es/commons/plugins/event/actions/updateVariableAction.mjs +23 -0
  37. package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -0
  38. package/es/commons/plugins/event/actions/updateWidgetAction.mjs +13 -0
  39. package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -0
  40. package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
  41. package/es/commons/plugins/event/index.d.ts +202 -0
  42. package/es/commons/plugins/event/index.mjs +150 -0
  43. package/es/commons/plugins/event/utils/utils.d.ts +22 -0
  44. package/es/commons/plugins/event/utils/utils.mjs +52 -0
  45. package/es/commons/utils/getNextElement.d.ts +7 -0
  46. package/es/commons/utils/getNextElement.mjs +12 -0
  47. package/es/components/chart-bar-animation/index.vue.mjs +24 -23
  48. package/es/components/chart-bar-basic/index.vue.mjs +24 -23
  49. package/es/components/chart-bar-contrast/index.vue.mjs +32 -31
  50. package/es/components/chart-bar-contrast2/index.vue.mjs +23 -22
  51. package/es/components/chart-bar-contrast3/index.vue.mjs +25 -24
  52. package/es/components/chart-bar-gradient-column-chart/index.vue.mjs +24 -23
  53. package/es/components/chart-bar-horizontal/index.vue.mjs +25 -24
  54. package/es/components/chart-bar-horizontal-stack/index.vue.mjs +25 -24
  55. package/es/components/chart-bar-line-bar/index.vue.mjs +23 -22
  56. package/es/components/chart-bar-line-bar2/index.vue.mjs +23 -22
  57. package/es/components/chart-bar-loop/index.vue.mjs +25 -24
  58. package/es/components/chart-bar-mini/index.vue.mjs +25 -24
  59. package/es/components/chart-bar-polar/index.vue.mjs +23 -22
  60. package/es/components/chart-bar-polar-stack/index.vue.mjs +23 -22
  61. package/es/components/chart-bar-polar2/index.vue.mjs +23 -22
  62. package/es/components/chart-bar-radius-circle/index.vue.mjs +23 -22
  63. package/es/components/chart-bar-rank/index.vue.mjs +25 -24
  64. package/es/components/chart-bar-segmented-progress/index.vue.mjs +27 -26
  65. package/es/components/chart-bar-spire/index.vue.mjs +30 -29
  66. package/es/components/chart-bar-stack/index.vue.mjs +24 -23
  67. package/es/components/chart-bar-stack-line/index.vue.mjs +23 -22
  68. package/es/components/chart-bar-stack2/index.vue.mjs +23 -22
  69. package/es/components/chart-bar-stack3/index.vue.mjs +23 -22
  70. package/es/components/chart-bar-staggered/index.vue.mjs +23 -22
  71. package/es/components/chart-bar-three/index.vue.mjs +21 -20
  72. package/es/components/chart-bar-waterfall/index.vue.mjs +30 -29
  73. package/es/components/chart-bar-zebra/index.vue.mjs +23 -22
  74. package/es/components/chart-line-area-gradient/index.vue.mjs +24 -23
  75. package/es/components/chart-line-area-highlight/index.vue.mjs +23 -22
  76. package/es/components/chart-line-area-highlight2/index.vue.mjs +23 -22
  77. package/es/components/chart-line-basic/index.vue.mjs +25 -24
  78. package/es/components/chart-line-bump/index.vue.mjs +30 -29
  79. package/es/components/chart-line-dashed/index.vue.mjs +24 -23
  80. package/es/components/chart-line-ladder/index.vue.mjs +24 -23
  81. package/es/components/chart-line-logarithm/index.vue.mjs +29 -28
  82. package/es/components/chart-line-multix/index.vue.mjs +29 -28
  83. package/es/components/chart-line-polar-double/index.vue.mjs +25 -24
  84. package/es/components/chart-line-rain-flow/index.vue.mjs +29 -28
  85. package/es/components/chart-line-scale/index.vue.mjs +24 -23
  86. package/es/components/chart-line-smooth/index.vue.mjs +24 -23
  87. package/es/components/chart-line-smooth-area/index.vue.mjs +29 -28
  88. package/es/components/chart-line-stack/index.vue.mjs +24 -23
  89. package/es/components/chart-line-stack-area/index.vue.mjs +24 -23
  90. package/es/components/chart-line-temp/index.vue.mjs +29 -28
  91. package/es/components/chart-line-vertical/index.vue.mjs +24 -23
  92. package/es/components/chart-map-basic/index.vue.mjs +29 -28
  93. package/es/components/chart-map-bmap-basic/index.vue.mjs +25 -24
  94. package/es/components/chart-map-bmap-heatmap/index.vue.mjs +24 -23
  95. package/es/components/chart-map-bmap-rich/index.vue.mjs +24 -23
  96. package/es/components/chart-map-customize/index.vue.mjs +23 -22
  97. package/es/components/chart-map-lines/index.vue.mjs +24 -23
  98. package/es/components/chart-map-scatter/index.vue.mjs +24 -23
  99. package/es/components/chart-other-candlestick-basic/index.vue.mjs +25 -24
  100. package/es/components/chart-other-candlestick-demo/index.vue.mjs +22 -21
  101. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +22 -21
  102. package/es/components/chart-other-circular-graph/index.vue.mjs +20 -19
  103. package/es/components/chart-other-force/index.vue.mjs +22 -21
  104. package/es/components/chart-other-force2/index.vue.mjs +22 -21
  105. package/es/components/chart-other-funnel/index.vue.mjs +20 -19
  106. package/es/components/chart-other-funnel-contrast/index.vue.mjs +20 -19
  107. package/es/components/chart-other-funnel-split/index.vue.mjs +20 -19
  108. package/es/components/chart-other-funnel2/index.vue.mjs +20 -19
  109. package/es/components/chart-other-gauge/index.vue.mjs +20 -19
  110. package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -19
  111. package/es/components/chart-other-gauge-stage/index.vue.mjs +20 -19
  112. package/es/components/chart-other-graph-basic/index.vue.mjs +21 -20
  113. package/es/components/chart-other-graph-basic2/index.vue.mjs +21 -20
  114. package/es/components/chart-other-graph-calendar/index.vue.mjs +21 -20
  115. package/es/components/chart-other-grid-percentage/index.vue.mjs +25 -24
  116. package/es/components/chart-other-heatmap/index.vue.mjs +23 -22
  117. package/es/components/chart-other-label-gauge/index.vue.mjs +30 -29
  118. package/es/components/chart-other-liquidfill/index.vue.mjs +22 -21
  119. package/es/components/chart-other-parallel-basic/index.vue.mjs +21 -20
  120. package/es/components/chart-other-parallel-mul/index.vue.mjs +30 -29
  121. package/es/components/chart-other-radar/index.vue.mjs +32 -31
  122. package/es/components/chart-other-radar-stack/index.vue.mjs +23 -22
  123. package/es/components/chart-other-sunburst-basic/index.vue.mjs +22 -21
  124. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +22 -21
  125. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +22 -21
  126. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +22 -21
  127. package/es/components/chart-other-sunburst-book/index.vue.mjs +22 -21
  128. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +20 -19
  129. package/es/components/chart-other-sunburst-radius/index.vue.mjs +22 -21
  130. package/es/components/chart-other-theme-river/index.vue.mjs +25 -24
  131. package/es/components/chart-other-tree/index.vue.mjs +20 -19
  132. package/es/components/chart-other-tree-line/index.vue.mjs +21 -20
  133. package/es/components/chart-other-treemap/index.vue.mjs +19 -18
  134. package/es/components/chart-other-treemap-basic/index.vue.mjs +20 -19
  135. package/es/components/chart-other-word-cloud/index.vue.mjs +18 -17
  136. package/es/components/chart-pie-3d/index.vue.mjs +25 -24
  137. package/es/components/chart-pie-basic/index.vue.mjs +23 -22
  138. package/es/components/chart-pie-basic2/index.vue.mjs +23 -22
  139. package/es/components/chart-pie-customized/index.vue.mjs +28 -27
  140. package/es/components/chart-pie-index/index.vue.mjs +22 -21
  141. package/es/components/chart-pie-interval/index.vue.mjs +22 -21
  142. package/es/components/chart-pie-legend-scroll/index.vue.mjs +28 -27
  143. package/es/components/chart-pie-radius/index.vue.mjs +22 -21
  144. package/es/components/chart-pie-rose/index.vue.mjs +27 -26
  145. package/es/components/chart-pie-round/index.vue.mjs +27 -26
  146. package/es/components/chart-pie-semicircle/index.vue.mjs +23 -22
  147. package/es/components/chart-pie-sunburst/index.vue.mjs +23 -22
  148. package/es/components/chart-scatter-basic/index.vue.mjs +24 -23
  149. package/es/components/chart-scatter-basic2/index.vue.mjs +24 -23
  150. package/es/components/chart-scatter-bubble/index.vue.mjs +25 -24
  151. package/es/components/chart-scatter-ripples/index.vue.mjs +21 -20
  152. package/es/components/commons-echarts/compileAndRunEcharts.mjs +22 -21
  153. package/es/components/commons-gaussian-splatting-view/index.vue.mjs +2 -2
  154. package/es/components/commons-gaussian-splatting-view/index.vue2.mjs +45 -46
  155. package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
  156. package/es/components/commons-loop-iterator/index.vue2.mjs +39 -38
  157. package/es/components/commons-product-model/index.vue.mjs +2 -2
  158. package/es/components/commons-product-model/index.vue2.mjs +49 -49
  159. package/es/components/commons-three-loader/index.vue.mjs +1 -1
  160. package/es/components/commons-three-loader/index.vue2.mjs +73 -73
  161. package/es/components/commons-three-loader3/index.vue.mjs +2 -2
  162. package/es/components/commons-three-loader3/index.vue2.mjs +67 -67
  163. package/es/components/commons-weather/index.vue.mjs +2 -2
  164. package/es/components/commons-weather/index.vue2.mjs +45 -44
  165. package/es/components/index.d.ts +1 -0
  166. package/es/components/index.mjs +16 -14
  167. package/es/components/interaction-input/index.vue.mjs +1 -1
  168. package/es/components/interaction-input/index.vue2.mjs +56 -55
  169. package/es/components/interaction-select/index.vue.mjs +1 -1
  170. package/es/components/interaction-select/index.vue2.mjs +83 -82
  171. package/es/components/interaction-slider/index.vue.mjs +2 -2
  172. package/es/components/interaction-slider/index.vue2.mjs +45 -44
  173. package/es/components/interaction-switch/index.vue.mjs +2 -2
  174. package/es/components/interaction-switch/index.vue2.mjs +31 -30
  175. package/es/components/interaction-tabs/index.vue.mjs +2 -2
  176. package/es/components/interaction-tabs/index.vue2.mjs +31 -30
  177. package/es/components/interaction-tabs2/index.vue.mjs +2 -2
  178. package/es/components/interaction-tabs2/index.vue2.mjs +31 -30
  179. package/es/components/map-earth-basic/index.vue.d.ts +4 -4
  180. package/es/components/map-earth-basic/index.vue.mjs +30 -29
  181. package/es/components/map-earth-cool-tech/index.vue.d.ts +0 -2
  182. package/es/components/map-earth-cool-tech/index.vue.mjs +30 -29
  183. package/es/components/map-earth-fly-line/index.vue.d.ts +4 -2
  184. package/es/components/map-earth-fly-line/index.vue.mjs +34 -33
  185. package/es/components/map-earth-hacker/index.vue.d.ts +4 -2
  186. package/es/components/map-earth-hacker/index.vue.mjs +29 -28
  187. package/es/components/map-earth-particle/index.vue.d.ts +4 -2
  188. package/es/components/map-earth-particle/index.vue.mjs +30 -29
  189. package/es/components/media-audio/index.vue.mjs +1 -1
  190. package/es/components/media-audio/index.vue2.mjs +49 -48
  191. package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
  192. package/es/components/media-audio-dynamic/index.vue2.mjs +58 -57
  193. package/es/components/media-flv/index.vue.mjs +40 -39
  194. package/es/components/media-iframe/index.vue.mjs +2 -2
  195. package/es/components/media-iframe/index.vue2.mjs +14 -13
  196. package/es/components/media-image-dynamic/index.vue.mjs +2 -2
  197. package/es/components/media-image-dynamic/index.vue2.mjs +23 -22
  198. package/es/components/media-m3u8/index.vue.mjs +39 -38
  199. package/es/components/media-m3u8-dynamic/index.vue.mjs +54 -53
  200. package/es/components/media-video/index.vue.mjs +1 -1
  201. package/es/components/media-video/index.vue2.mjs +38 -37
  202. package/es/components/media-video-dynamic/index.vue.mjs +1 -1
  203. package/es/components/media-video-dynamic/index.vue2.mjs +49 -48
  204. package/es/components/scene-amap2d/index.vue.mjs +1 -1
  205. package/es/components/scene-amap2d/index.vue2.mjs +107 -104
  206. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  207. package/es/components/scene-amap3d/index.vue2.mjs +95 -92
  208. package/es/components/scene-default/index.d.ts +39 -0
  209. package/es/components/scene-default/index.mjs +7 -0
  210. package/es/components/scene-default/index.vue.d.ts +40 -0
  211. package/es/components/scene-default/index.vue.mjs +7 -0
  212. package/es/components/scene-default/index.vue2.mjs +35 -0
  213. package/es/components/scene-map3d/index.d.ts +1 -1
  214. package/es/components/scene-map3d/index.vue.d.ts +1 -1
  215. package/es/components/scene-map3d/index.vue.mjs +2 -2
  216. package/es/components/scene-map3d/index.vue2.mjs +129 -126
  217. package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
  218. package/es/components/scene-ue-iframe/index.vue2.mjs +19 -18
  219. package/es/components/scene-ue-shj/index.vue.mjs +1 -1
  220. package/es/components/scene-ue-shj/index.vue2.mjs +14 -13
  221. package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
  222. package/es/components/scene-unity-iframe/index.vue2.mjs +19 -16
  223. package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
  224. package/es/components/scene-unity-webgl/index.vue2.mjs +16 -13
  225. package/es/components/scene-vr/index.vue.mjs +1 -1
  226. package/es/components/scene-vr/index.vue2.mjs +162 -159
  227. package/es/components/text-count-down/index.vue.mjs +1 -1
  228. package/es/components/text-count-down/index.vue2.mjs +34 -33
  229. package/es/components/text-over-number/index.vue.mjs +2 -2
  230. package/es/components/text-over-number/index.vue2.mjs +49 -48
  231. package/es/components/text-real-time/index.vue.mjs +2 -2
  232. package/es/components/text-real-time/index.vue2.mjs +26 -25
  233. package/es/components/text-row-scroll/index.vue.mjs +1 -1
  234. package/es/components/text-row-scroll/index.vue2.mjs +83 -82
  235. package/es/components/text-table-basic/index.vue.mjs +3 -3
  236. package/es/components/text-table-basic/index.vue2.mjs +97 -96
  237. package/es/components/text-table-scroll/index.vue.mjs +1 -1
  238. package/es/components/text-table-scroll/index.vue2.mjs +96 -95
  239. package/es/components/text-text-dynamic/index.vue.mjs +1 -1
  240. package/es/components/text-text-dynamic/index.vue2.mjs +29 -28
  241. package/es/env.d.ts +0 -2
  242. package/es/index.d.ts +3 -1
  243. package/es/index.mjs +351 -345
  244. package/es/widgets.css +1 -1
  245. package/lib/commons/core/useChart.js +1 -1
  246. package/lib/commons/{core → plugins}/datasource/index.js +1 -1
  247. package/lib/commons/plugins/datasource/utils/axios.js +1 -0
  248. package/lib/commons/plugins/datasource/utils/request.js +1 -0
  249. package/lib/commons/plugins/datasource/utils/utils.js +1 -0
  250. package/lib/commons/plugins/event/actions/fullScreenAction.js +1 -0
  251. package/lib/commons/plugins/event/actions/invokeAction.js +1 -0
  252. package/lib/commons/plugins/event/actions/linkAction.js +1 -0
  253. package/lib/commons/plugins/event/actions/moveAction.js +1 -0
  254. package/lib/commons/plugins/event/actions/pageAction.js +1 -0
  255. package/lib/commons/plugins/event/actions/rotateAction.js +1 -0
  256. package/lib/commons/plugins/event/actions/scaleAction.js +1 -0
  257. package/lib/commons/plugins/event/actions/sendApiAction.js +1 -0
  258. package/lib/commons/plugins/event/actions/ueCommonsWebscoketAction.js +1 -0
  259. package/lib/commons/plugins/event/actions/ueShjExecMethodAction.js +1 -0
  260. package/lib/commons/plugins/event/actions/unityIframeExecMethodAction.js +1 -0
  261. package/lib/commons/plugins/event/actions/unityWebglExecMethodAction.js +1 -0
  262. package/lib/commons/plugins/event/actions/updatePageAction.js +1 -0
  263. package/lib/commons/plugins/event/actions/updateVariableAction.js +1 -0
  264. package/lib/commons/plugins/event/actions/updateWidgetAction.js +1 -0
  265. package/lib/commons/plugins/event/actions/vrSceneMethodAction.js +1 -0
  266. package/lib/commons/plugins/event/index.js +9 -0
  267. package/lib/commons/plugins/event/utils/utils.js +1 -0
  268. package/lib/commons/utils/getNextElement.js +1 -0
  269. package/lib/components/chart-bar-animation/index.vue.js +1 -1
  270. package/lib/components/chart-bar-basic/index.vue.js +1 -1
  271. package/lib/components/chart-bar-contrast/index.vue.js +1 -1
  272. package/lib/components/chart-bar-contrast2/index.vue.js +1 -1
  273. package/lib/components/chart-bar-contrast3/index.vue.js +1 -1
  274. package/lib/components/chart-bar-gradient-column-chart/index.vue.js +1 -1
  275. package/lib/components/chart-bar-horizontal/index.vue.js +1 -1
  276. package/lib/components/chart-bar-horizontal-stack/index.vue.js +1 -1
  277. package/lib/components/chart-bar-line-bar/index.vue.js +1 -1
  278. package/lib/components/chart-bar-line-bar2/index.vue.js +1 -1
  279. package/lib/components/chart-bar-loop/index.vue.js +1 -1
  280. package/lib/components/chart-bar-mini/index.vue.js +1 -1
  281. package/lib/components/chart-bar-polar/index.vue.js +1 -1
  282. package/lib/components/chart-bar-polar-stack/index.vue.js +1 -1
  283. package/lib/components/chart-bar-polar2/index.vue.js +1 -1
  284. package/lib/components/chart-bar-radius-circle/index.vue.js +1 -1
  285. package/lib/components/chart-bar-rank/index.vue.js +1 -1
  286. package/lib/components/chart-bar-segmented-progress/index.vue.js +1 -1
  287. package/lib/components/chart-bar-spire/index.vue.js +1 -1
  288. package/lib/components/chart-bar-stack/index.vue.js +1 -1
  289. package/lib/components/chart-bar-stack-line/index.vue.js +1 -1
  290. package/lib/components/chart-bar-stack2/index.vue.js +1 -1
  291. package/lib/components/chart-bar-stack3/index.vue.js +1 -1
  292. package/lib/components/chart-bar-staggered/index.vue.js +1 -1
  293. package/lib/components/chart-bar-three/index.vue.js +1 -1
  294. package/lib/components/chart-bar-waterfall/index.vue.js +1 -1
  295. package/lib/components/chart-bar-zebra/index.vue.js +1 -1
  296. package/lib/components/chart-line-area-gradient/index.vue.js +1 -1
  297. package/lib/components/chart-line-area-highlight/index.vue.js +1 -1
  298. package/lib/components/chart-line-area-highlight2/index.vue.js +1 -1
  299. package/lib/components/chart-line-basic/index.vue.js +1 -1
  300. package/lib/components/chart-line-bump/index.vue.js +1 -1
  301. package/lib/components/chart-line-dashed/index.vue.js +1 -1
  302. package/lib/components/chart-line-ladder/index.vue.js +1 -1
  303. package/lib/components/chart-line-logarithm/index.vue.js +1 -1
  304. package/lib/components/chart-line-multix/index.vue.js +1 -1
  305. package/lib/components/chart-line-polar-double/index.vue.js +1 -1
  306. package/lib/components/chart-line-rain-flow/index.vue.js +1 -1
  307. package/lib/components/chart-line-scale/index.vue.js +1 -1
  308. package/lib/components/chart-line-smooth/index.vue.js +1 -1
  309. package/lib/components/chart-line-smooth-area/index.vue.js +1 -1
  310. package/lib/components/chart-line-stack/index.vue.js +1 -1
  311. package/lib/components/chart-line-stack-area/index.vue.js +1 -1
  312. package/lib/components/chart-line-temp/index.vue.js +1 -1
  313. package/lib/components/chart-line-vertical/index.vue.js +1 -1
  314. package/lib/components/chart-map-basic/index.vue.js +1 -1
  315. package/lib/components/chart-map-bmap-basic/index.vue.js +1 -1
  316. package/lib/components/chart-map-bmap-heatmap/index.vue.js +1 -1
  317. package/lib/components/chart-map-bmap-rich/index.vue.js +1 -1
  318. package/lib/components/chart-map-customize/index.vue.js +1 -1
  319. package/lib/components/chart-map-lines/index.vue.js +1 -1
  320. package/lib/components/chart-map-scatter/index.vue.js +1 -1
  321. package/lib/components/chart-other-candlestick-basic/index.vue.js +1 -1
  322. package/lib/components/chart-other-candlestick-demo/index.vue.js +1 -1
  323. package/lib/components/chart-other-candlestick-shanghai/index.vue.js +1 -1
  324. package/lib/components/chart-other-circular-graph/index.vue.js +1 -1
  325. package/lib/components/chart-other-force/index.vue.js +1 -1
  326. package/lib/components/chart-other-force2/index.vue.js +1 -1
  327. package/lib/components/chart-other-funnel/index.vue.js +1 -1
  328. package/lib/components/chart-other-funnel-contrast/index.vue.js +1 -1
  329. package/lib/components/chart-other-funnel-split/index.vue.js +1 -1
  330. package/lib/components/chart-other-funnel2/index.vue.js +1 -1
  331. package/lib/components/chart-other-gauge/index.vue.js +1 -1
  332. package/lib/components/chart-other-gauge-grade/index.vue.js +1 -1
  333. package/lib/components/chart-other-gauge-stage/index.vue.js +1 -1
  334. package/lib/components/chart-other-graph-basic/index.vue.js +1 -1
  335. package/lib/components/chart-other-graph-basic2/index.vue.js +1 -1
  336. package/lib/components/chart-other-graph-calendar/index.vue.js +1 -1
  337. package/lib/components/chart-other-grid-percentage/index.vue.js +1 -1
  338. package/lib/components/chart-other-heatmap/index.vue.js +1 -1
  339. package/lib/components/chart-other-label-gauge/index.vue.js +1 -1
  340. package/lib/components/chart-other-liquidfill/index.vue.js +1 -1
  341. package/lib/components/chart-other-parallel-basic/index.vue.js +1 -1
  342. package/lib/components/chart-other-parallel-mul/index.vue.js +1 -1
  343. package/lib/components/chart-other-radar/index.vue.js +1 -1
  344. package/lib/components/chart-other-radar-stack/index.vue.js +1 -1
  345. package/lib/components/chart-other-sunburst-basic/index.vue.js +1 -1
  346. package/lib/components/chart-other-sunburst-basic2/index.vue.js +1 -1
  347. package/lib/components/chart-other-sunburst-basic3/index.vue.js +1 -1
  348. package/lib/components/chart-other-sunburst-basic4/index.vue.js +1 -1
  349. package/lib/components/chart-other-sunburst-book/index.vue.js +1 -1
  350. package/lib/components/chart-other-sunburst-flavors/index.vue.js +1 -1
  351. package/lib/components/chart-other-sunburst-radius/index.vue.js +1 -1
  352. package/lib/components/chart-other-theme-river/index.vue.js +1 -1
  353. package/lib/components/chart-other-tree/index.vue.js +1 -1
  354. package/lib/components/chart-other-tree-line/index.vue.js +1 -1
  355. package/lib/components/chart-other-treemap/index.vue.js +1 -1
  356. package/lib/components/chart-other-treemap-basic/index.vue.js +1 -1
  357. package/lib/components/chart-other-word-cloud/index.vue.js +1 -1
  358. package/lib/components/chart-pie-3d/index.vue.js +1 -1
  359. package/lib/components/chart-pie-basic/index.vue.js +1 -1
  360. package/lib/components/chart-pie-basic2/index.vue.js +1 -1
  361. package/lib/components/chart-pie-customized/index.vue.js +1 -1
  362. package/lib/components/chart-pie-index/index.vue.js +1 -1
  363. package/lib/components/chart-pie-interval/index.vue.js +1 -1
  364. package/lib/components/chart-pie-legend-scroll/index.vue.js +1 -1
  365. package/lib/components/chart-pie-radius/index.vue.js +1 -1
  366. package/lib/components/chart-pie-rose/index.vue.js +1 -1
  367. package/lib/components/chart-pie-round/index.vue.js +1 -1
  368. package/lib/components/chart-pie-semicircle/index.vue.js +1 -1
  369. package/lib/components/chart-pie-sunburst/index.vue.js +1 -1
  370. package/lib/components/chart-scatter-basic/index.vue.js +1 -1
  371. package/lib/components/chart-scatter-basic2/index.vue.js +1 -1
  372. package/lib/components/chart-scatter-bubble/index.vue.js +1 -1
  373. package/lib/components/chart-scatter-ripples/index.vue.js +1 -1
  374. package/lib/components/commons-echarts/compileAndRunEcharts.js +6 -6
  375. package/lib/components/commons-gaussian-splatting-view/index.vue.js +1 -1
  376. package/lib/components/commons-gaussian-splatting-view/index.vue2.js +1 -1
  377. package/lib/components/commons-loop-iterator/index.vue.js +1 -1
  378. package/lib/components/commons-loop-iterator/index.vue2.js +1 -1
  379. package/lib/components/commons-product-model/index.vue.js +1 -1
  380. package/lib/components/commons-product-model/index.vue2.js +1 -1
  381. package/lib/components/commons-three-loader/index.vue.js +1 -1
  382. package/lib/components/commons-three-loader/index.vue2.js +1 -1
  383. package/lib/components/commons-three-loader3/index.vue.js +1 -1
  384. package/lib/components/commons-three-loader3/index.vue2.js +1 -1
  385. package/lib/components/commons-weather/index.vue.js +1 -1
  386. package/lib/components/commons-weather/index.vue2.js +1 -1
  387. package/lib/components/index.js +1 -1
  388. package/lib/components/interaction-input/index.vue.js +1 -1
  389. package/lib/components/interaction-input/index.vue2.js +1 -1
  390. package/lib/components/interaction-select/index.vue.js +1 -1
  391. package/lib/components/interaction-select/index.vue2.js +1 -1
  392. package/lib/components/interaction-slider/index.vue.js +1 -1
  393. package/lib/components/interaction-slider/index.vue2.js +1 -1
  394. package/lib/components/interaction-switch/index.vue.js +1 -1
  395. package/lib/components/interaction-switch/index.vue2.js +1 -1
  396. package/lib/components/interaction-tabs/index.vue.js +1 -1
  397. package/lib/components/interaction-tabs/index.vue2.js +1 -1
  398. package/lib/components/interaction-tabs2/index.vue.js +1 -1
  399. package/lib/components/interaction-tabs2/index.vue2.js +1 -1
  400. package/lib/components/map-earth-basic/index.vue.js +1 -1
  401. package/lib/components/map-earth-cool-tech/index.vue.js +1 -1
  402. package/lib/components/map-earth-fly-line/index.vue.js +1 -1
  403. package/lib/components/map-earth-hacker/index.vue.js +1 -1
  404. package/lib/components/map-earth-particle/index.vue.js +1 -1
  405. package/lib/components/media-audio/index.vue.js +1 -1
  406. package/lib/components/media-audio/index.vue2.js +1 -1
  407. package/lib/components/media-audio-dynamic/index.vue.js +1 -1
  408. package/lib/components/media-audio-dynamic/index.vue2.js +1 -1
  409. package/lib/components/media-flv/index.vue.js +1 -1
  410. package/lib/components/media-iframe/index.vue.js +1 -1
  411. package/lib/components/media-iframe/index.vue2.js +1 -1
  412. package/lib/components/media-image-dynamic/index.vue.js +1 -1
  413. package/lib/components/media-image-dynamic/index.vue2.js +1 -1
  414. package/lib/components/media-m3u8/index.vue.js +1 -1
  415. package/lib/components/media-m3u8-dynamic/index.vue.js +1 -1
  416. package/lib/components/media-video/index.vue.js +1 -1
  417. package/lib/components/media-video/index.vue2.js +1 -1
  418. package/lib/components/media-video-dynamic/index.vue.js +1 -1
  419. package/lib/components/media-video-dynamic/index.vue2.js +1 -1
  420. package/lib/components/scene-amap2d/index.vue.js +1 -1
  421. package/lib/components/scene-amap2d/index.vue2.js +1 -1
  422. package/lib/components/scene-amap3d/index.vue.js +1 -1
  423. package/lib/components/scene-amap3d/index.vue2.js +4 -4
  424. package/lib/components/scene-default/index.js +1 -0
  425. package/lib/components/scene-default/index.vue.js +1 -0
  426. package/lib/components/scene-default/index.vue2.js +1 -0
  427. package/lib/components/scene-map3d/index.vue.js +1 -1
  428. package/lib/components/scene-map3d/index.vue2.js +1 -1
  429. package/lib/components/scene-ue-iframe/index.vue.js +1 -1
  430. package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
  431. package/lib/components/scene-ue-shj/index.vue.js +1 -1
  432. package/lib/components/scene-ue-shj/index.vue2.js +1 -1
  433. package/lib/components/scene-unity-iframe/index.vue.js +1 -1
  434. package/lib/components/scene-unity-iframe/index.vue2.js +1 -1
  435. package/lib/components/scene-unity-webgl/index.vue.js +1 -1
  436. package/lib/components/scene-unity-webgl/index.vue2.js +1 -1
  437. package/lib/components/scene-vr/index.vue.js +1 -1
  438. package/lib/components/scene-vr/index.vue2.js +2 -2
  439. package/lib/components/text-count-down/index.vue.js +1 -1
  440. package/lib/components/text-count-down/index.vue2.js +1 -1
  441. package/lib/components/text-over-number/index.vue.js +1 -1
  442. package/lib/components/text-over-number/index.vue2.js +1 -1
  443. package/lib/components/text-real-time/index.vue.js +1 -1
  444. package/lib/components/text-real-time/index.vue2.js +1 -1
  445. package/lib/components/text-row-scroll/index.vue.js +1 -1
  446. package/lib/components/text-row-scroll/index.vue2.js +1 -1
  447. package/lib/components/text-table-basic/index.vue.js +1 -1
  448. package/lib/components/text-table-basic/index.vue2.js +1 -1
  449. package/lib/components/text-table-scroll/index.vue.js +1 -1
  450. package/lib/components/text-table-scroll/index.vue2.js +1 -1
  451. package/lib/components/text-text-dynamic/index.vue.js +1 -1
  452. package/lib/components/text-text-dynamic/index.vue2.js +1 -1
  453. package/lib/index.js +1 -1
  454. package/lib/widgets.css +1 -1
  455. package/package.json +1 -1
  456. package/es/commons/core/datasource/utils/request.mjs +0 -7
  457. package/es/commons/core/datasource/utils/utils.d.ts +0 -50
  458. package/es/commons/core/datasource/utils/utils.mjs +0 -123
  459. package/es/commons/utils/babylon/ColorConvert.d.ts +0 -3
  460. package/es/commons/utils/babylon/ColorConvert.mjs +0 -21
  461. package/lib/commons/core/datasource/utils/request.js +0 -1
  462. package/lib/commons/core/datasource/utils/utils.js +0 -1
  463. package/lib/commons/utils/babylon/ColorConvert.js +0 -1
  464. /package/es/commons/{core → plugins}/datasource/index.d.ts +0 -0
  465. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.d.ts +0 -0
  466. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.mjs +0 -0
  467. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.d.ts +0 -0
  468. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.mjs +0 -0
  469. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.d.ts +0 -0
  470. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.mjs +0 -0
  471. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.d.ts +0 -0
  472. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.mjs +0 -0
  473. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.d.ts +0 -0
  474. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.mjs +0 -0
  475. /package/es/commons/{core → plugins}/datasource/utils/wsManager.d.ts +0 -0
  476. /package/es/commons/{core → plugins}/datasource/utils/wsManager.mjs +0 -0
  477. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/api.js +0 -0
  478. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/static.js +0 -0
  479. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/url.js +0 -0
  480. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/variable.js +0 -0
  481. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/ws.js +0 -0
  482. /package/lib/commons/{core → plugins}/datasource/utils/wsManager.js +0 -0
@@ -1,79 +1,80 @@
1
- import { ref as m, shallowRef as L, onMounted as P, onBeforeUnmount as Z } from "vue";
2
- import { useResizeObserver as I } from "@vueuse/core";
3
- import { debounce as O, cloneDeep as S, isArray as n } from "lodash";
4
- import b from "is-electron";
5
- import * as f from "echarts";
6
- import { nanoid as k } from "nanoid";
7
- import { HoverLoop as V } from "../utils/hoverLoop.mjs";
1
+ import { ref as p, shallowRef as O, onMounted as b, onBeforeUnmount as k } from "vue";
2
+ import { useResizeObserver as D } from "@vueuse/core";
3
+ import { debounce as M, cloneDeep as y, isArray as n } from "lodash";
4
+ import T from "is-electron";
5
+ import * as m from "echarts";
6
+ import { nanoid as x } from "nanoid";
8
7
  import "echarts-wordcloud";
9
8
  import "echarts-liquidfill";
10
- const D = (l) => {
9
+ import { SHJParseEvent as f } from "../plugins/event/index.mjs";
10
+ import { HoverLoop as L } from "../utils/hoverLoop.mjs";
11
+ const z = (l) => {
11
12
  const e = [];
12
13
  l.geo && (n(l.geo) ? e.push(...l.geo.map((r) => r.map)) : e.push(l.geo.map)), l.series && n(l.series) && l.series.forEach((r) => {
13
14
  r.map && e.push(r.map);
14
15
  });
15
- const d = e.map((r) => {
16
+ const v = e.map((r) => {
16
17
  if (r === "customize")
17
18
  if (n(l.geo)) {
18
19
  const c = JSON.parse(l.geo.find((h) => h.map === "customize").geoData);
19
- return f.registerMap(r, c);
20
+ return m.registerMap(r, c);
20
21
  } else {
21
22
  const c = JSON.parse(l.geo.geoData);
22
- return f.registerMap(r, c);
23
+ return m.registerMap(r, c);
23
24
  }
24
25
  else
25
- return fetch((b() ? "gismap/" : "/gismap/") + r + ".json").then((c) => c.json()).then((c) => {
26
- f.registerMap(r, c);
26
+ return fetch((T() ? "gismap/" : "/gismap/") + r + ".json").then((c) => c.json()).then((c) => {
27
+ m.registerMap(r, c);
27
28
  }).catch((c) => {
28
29
  });
29
30
  });
30
- return Promise.all(d);
31
- }, M = async (l) => {
31
+ return Promise.all(v);
32
+ }, B = async (l) => {
32
33
  l.bmap && await import(
33
34
  /* @vite-ignore */
34
35
  "echarts/extension/bmap/bmap"
35
36
  );
36
- }, A = ({ basicOption: l, useEvents: e, customRenderData: d, emit: r }) => {
37
- const c = k(), h = m(!0), t = L(null), v = d, u = m(null), i = m(null), y = (s, g) => {
37
+ }, _ = ({ basicOption: l, useEvents: e, customRenderData: v, emit: r }) => {
38
+ const c = x(), h = p(!0), t = O(null), d = v, u = p(null), i = p(null), S = (s, w) => {
38
39
  try {
39
- t.value || (t.value = f.init(document.getElementById(c), null, { renderer: g || "svg" }));
40
- const o = S(s);
41
- if (o) {
42
- if (t.value.setOption(o, !0), o.hoverLoop)
43
- if (i.value && clearInterval(i.value), u.value && u.value.closeSwitchTooltip(), o.hoverLoop.type === "方式二") {
44
- let a = 0;
45
- o.dataset && o.dataset.source && (a = o.dataset.source.length), o.series[0] && o.series[0].data && (a = o.series[0].data.length);
46
- const J = o.dataZoom[0].endValue, H = o.dataZoom[0].startValue, w = () => {
40
+ t.value || (t.value = m.init(document.getElementById(c), null, { renderer: w || "svg" }));
41
+ const a = y(s);
42
+ if (a) {
43
+ if (t.value.setOption(a, !0), a.hoverLoop)
44
+ if (i.value && clearInterval(i.value), u.value && u.value.closeSwitchTooltip(), a.hoverLoop.type === "方式二") {
45
+ let o = 0;
46
+ a.dataset && a.dataset.source && (o = a.dataset.source.length), a.series[0] && a.series[0].data && (o = a.series[0].data.length);
47
+ const Z = a.dataZoom[0].endValue, I = a.dataZoom[0].startValue, V = () => {
47
48
  i.value = setInterval(() => {
48
- o.dataZoom[0].endValue > a - 2 ? (o.dataZoom[0].endValue = J, o.dataZoom[0].startValue = H) : (o.dataZoom[0].endValue = o.dataZoom[0].endValue + 1, o.dataZoom[0].startValue = o.dataZoom[0].startValue + 1), t.value.setOption(o);
49
- }, o.hoverLoop.delay2);
49
+ a.dataZoom[0].endValue > o - 2 ? (a.dataZoom[0].endValue = Z, a.dataZoom[0].startValue = I) : (a.dataZoom[0].endValue = a.dataZoom[0].endValue + 1, a.dataZoom[0].startValue = a.dataZoom[0].startValue + 1), t.value.setOption(a);
50
+ }, a.hoverLoop.delay2);
50
51
  };
51
52
  t.value.on("mousemove", function() {
52
53
  i.value && clearInterval(i.value);
53
54
  }), t.value.on("mouseout", function() {
54
- i.value && clearInterval(i.value), w();
55
- }), w();
56
- } else o.hoverLoop.type === "方式一" && (t.value.on("mousemove", function() {
55
+ i.value && clearInterval(i.value), V();
56
+ }), V();
57
+ } else a.hoverLoop.type === "方式一" && (t.value.on("mousemove", function() {
57
58
  u.value && u.value.closeSwitchTooltip();
58
59
  }), t.value.on("mouseout", function() {
59
- u.value && u.value.closeSwitchTooltip(), u.value = new V(t.value, o);
60
- }), u.value = new V(t.value, o));
60
+ u.value && u.value.closeSwitchTooltip(), u.value = new L(t.value, a);
61
+ }), u.value = new L(t.value, a));
61
62
  else
62
63
  i.value && clearInterval(i.value), u.value && u.value.closeSwitchTooltip();
63
- t.value.on("click", (a) => {
64
- e && n(e) && e.length > 0 && (r("chart-click", a), window.SHJParseEvent(e, "chart-click", a));
65
- }), t.value.on("dblclick", (a) => {
66
- e && n(e) && e.length > 0 && (r("chart-dblclick", a), window.SHJParseEvent(e, "chart-dblclick", a));
67
- }), t.value.on("mousedown", (a) => {
68
- e && n(e) && e.length > 0 && (r("chart-mousedown", a), window.SHJParseEvent(e, "chart-mousedown", a));
69
- }), t.value.on("mouseup", (a) => {
70
- e && n(e) && e.length > 0 && (r("chart-mouseup", a), window.SHJParseEvent(e, "chart-mouseup", a));
71
- }), t.value.on("mouseover", (a) => {
72
- e && n(e) && e.length > 0 && (r("chart-mouseover", a), window.SHJParseEvent(e, "chart-mouseover", a));
73
- }), t.value.on("mouseout", (a) => {
74
- e && n(e) && e.length > 0 && (r("chart-mouseout", a), window.SHJParseEvent(e, "chart-mouseout", a));
75
- }), t.value.on("contextmenu", (a) => {
76
- e && n(e) && e.length > 0 && (r("chart-contextmenu", a), window.SHJParseEvent(e, "chart-contextmenu", a));
64
+ t.value.on("click", (o) => {
65
+ e && n(e) && e.length > 0 && (r("chart-click", o), f.parseEvents(e, "chart-click", o));
66
+ }), t.value.on("dblclick", (o) => {
67
+ e && n(e) && e.length > 0 && (r("chart-dblclick", o), f.parseEvents(e, "chart-dblclick", o));
68
+ }), t.value.on("mousedown", (o) => {
69
+ e && n(e) && e.length > 0 && (r("chart-mousedown", o), f.parseEvents(e, "chart-mousedown", o));
70
+ }), t.value.on("mouseup", (o) => {
71
+ e && n(e) && e.length > 0 && (r("chart-mouseup", o), f.parseEvents(e, "chart-mouseup", o));
72
+ }), t.value.on("mouseover", (o) => {
73
+ e && n(e) && e.length > 0 && (r("chart-mouseover", o), f.parseEvents(e, "chart-mouseover", o));
74
+ }), t.value.on("mouseout", (o) => {
75
+ e && n(e) && e.length > 0 && (r("chart-mouseout", o), f.parseEvents(e, "chart-mouseout", o));
76
+ }), t.value.on("contextmenu", (o) => {
77
+ e && n(e) && e.length > 0 && (r("chart-contextmenu", o), f.parseEvents(e, "chart-contextmenu", o));
77
78
  }), h.value = !1;
78
79
  }
79
80
  } catch {
@@ -83,19 +84,19 @@ const D = (l) => {
83
84
  }
84
85
  t.value = null;
85
86
  }
86
- }, p = O((s) => {
87
- h.value = !0, s = S(s), D(s).then(() => {
88
- M(s).then(() => {
89
- v(s);
87
+ }, g = M((s) => {
88
+ h.value = !0, s = y(s), z(s).then(() => {
89
+ B(s).then(() => {
90
+ d(s);
90
91
  });
91
- }).catch((g) => {
92
+ }).catch((w) => {
92
93
  });
93
94
  }, 100);
94
- return P(() => {
95
- p(l), I(document.getElementById(c), (s) => {
95
+ return b(() => {
96
+ g(l), D(document.getElementById(c), (s) => {
96
97
  t.value && t.value.resize();
97
98
  });
98
- }), Z(() => {
99
+ }), k(() => {
99
100
  u.value && u.value.closeSwitchTooltip(), i.value && clearInterval(i.value);
100
101
  try {
101
102
  t.value && t.value.dispose();
@@ -105,11 +106,11 @@ const D = (l) => {
105
106
  id: c,
106
107
  status: h,
107
108
  chart: t,
108
- setOption: y,
109
- renderChart: p,
110
- renderData: v
109
+ setOption: S,
110
+ renderChart: g,
111
+ renderData: d
111
112
  };
112
113
  };
113
114
  export {
114
- A as useChart
115
+ _ as useChart
115
116
  };
@@ -2,11 +2,11 @@ var x = Object.defineProperty;
2
2
  var A = (h, t, a) => t in h ? x(h, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : h[t] = a;
3
3
  var T = (h, t, a) => A(h, typeof t != "symbol" ? t + "" : t, a);
4
4
  import { isArray as V, isString as K, cloneDeep as P } from "lodash";
5
- import { parseStaticData as U } from "./core/static.mjs";
6
- import { parseUrlData as j } from "./core/url.mjs";
7
- import { parseVariableData as E } from "./core/variable.mjs";
8
- import { parseAPIPort as F } from "./core/api.mjs";
9
- import { parseWebSocket as W } from "./core/ws.mjs";
5
+ import { parseStaticData as U } from "./sources/static.mjs";
6
+ import { parseUrlData as j } from "./sources/url.mjs";
7
+ import { parseVariableData as E } from "./sources/variable.mjs";
8
+ import { parseAPIPort as F } from "./sources/api.mjs";
9
+ import { parseWebSocket as W } from "./sources/ws.mjs";
10
10
  import { DataSourceUtils as g } from "./utils/utils.mjs";
11
11
  const D = class D {
12
12
  static addParser(t, a) {
@@ -0,0 +1,70 @@
1
+ import type { AxiosInstance, AxiosRequestConfig } from 'axios';
2
+ export declare type RestResult<T> = {
3
+ code: number;
4
+ msg: string;
5
+ data?: T;
6
+ };
7
+ export declare enum IContentType {
8
+ FormData = "multipart/form-data",
9
+ UrlEncoded = "application/x-www-form-urlencoded; charset=UTF-8",
10
+ Json = "application/json; charset=UTF-8",
11
+ Raw = "raw"
12
+ }
13
+ export declare class HttpRequest {
14
+ instance: AxiosInstance;
15
+ constructor();
16
+ /**
17
+ * GET 请求
18
+ * @param url
19
+ * @param config
20
+ * @returns
21
+ */
22
+ get<T = any>(url: string, config?: AxiosRequestConfig): Promise<RestResult<T>>;
23
+ /**
24
+ * POST 请求
25
+ * @param url 请求的URL
26
+ * @param data 发送的数据
27
+ * @param contentType 数据的内容类型
28
+ * @param config 额外的Axios配置
29
+ * @returns
30
+ */
31
+ post<T = any>(url: string, data?: any, config?: AxiosRequestConfig, contentType?: IContentType): Promise<RestResult<T>>;
32
+ /**
33
+ * PUT 请求
34
+ * @param url
35
+ * @param data
36
+ * @param config
37
+ * @returns
38
+ */
39
+ put<T = any>(url: string, data?: any, config?: AxiosRequestConfig, contentType?: IContentType): Promise<RestResult<T>>;
40
+ /**
41
+ * DELETE 请求
42
+ * @param url
43
+ * @param config
44
+ * @returns
45
+ */
46
+ delete<T = any>(url: string, config?: AxiosRequestConfig): Promise<RestResult<T>>;
47
+ /**
48
+ * 文件上传
49
+ * @param url
50
+ * @param params
51
+ * @param config
52
+ * @returns
53
+ */
54
+ upload<T = any>(url: string, params?: any, config?: AxiosRequestConfig): Promise<RestResult<T>>;
55
+ /**
56
+ * blob文件下载
57
+ * @param url
58
+ * @param params
59
+ * @param config
60
+ * @returns
61
+ */
62
+ download<T = any>(url: string, params?: any, config?: AxiosRequestConfig): Promise<RestResult<T>>;
63
+ /**
64
+ * Custom 请求
65
+ * @param url
66
+ * @param config
67
+ * @returns
68
+ */
69
+ custom<T = any>(url: string, config?: AxiosRequestConfig): Promise<T>;
70
+ }
@@ -0,0 +1,134 @@
1
+ var l = Object.defineProperty;
2
+ var u = (i, t, e) => t in i ? l(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var f = (i, t, e) => u(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import d from "axios";
5
+ import { merge as p } from "lodash";
6
+ class T {
7
+ constructor() {
8
+ f(this, "instance");
9
+ this.instance = d.create();
10
+ }
11
+ /**
12
+ * GET 请求
13
+ * @param url
14
+ * @param config
15
+ * @returns
16
+ */
17
+ get(t, e) {
18
+ return this.instance.get(t, e);
19
+ }
20
+ /**
21
+ * POST 请求
22
+ * @param url 请求的URL
23
+ * @param data 发送的数据
24
+ * @param contentType 数据的内容类型
25
+ * @param config 额外的Axios配置
26
+ * @returns
27
+ */
28
+ post(t, e, a, o = "application/json; charset=UTF-8") {
29
+ const s = {
30
+ headers: {
31
+ "Content-Type": "application/json; charset=UTF-8"
32
+ /* Json */
33
+ }
34
+ };
35
+ if (o === "multipart/form-data") {
36
+ s.headers = {};
37
+ const n = new FormData();
38
+ for (const r in e)
39
+ n.append(r, e[r]);
40
+ e = n;
41
+ } else o === "application/x-www-form-urlencoded; charset=UTF-8" && (s.headers["Content-Type"] = "application/x-www-form-urlencoded; charset=UTF-8", s.transformRequest = [(n) => {
42
+ const r = new URLSearchParams();
43
+ for (const c in n)
44
+ r.append(c, n[c]);
45
+ return r.toString();
46
+ }]);
47
+ return this.instance.post(t, e, p({}, s, a));
48
+ }
49
+ /**
50
+ * PUT 请求
51
+ * @param url
52
+ * @param data
53
+ * @param config
54
+ * @returns
55
+ */
56
+ put(t, e, a, o = "application/x-www-form-urlencoded; charset=UTF-8") {
57
+ const s = {
58
+ headers: {
59
+ "Content-Type": o
60
+ }
61
+ };
62
+ if (o === "multipart/form-data") {
63
+ s.headers = {};
64
+ const n = new FormData();
65
+ for (const r in e)
66
+ n.append(r, e[r]);
67
+ e = n;
68
+ } else o === "application/x-www-form-urlencoded; charset=UTF-8" && (s.headers["Content-Type"] = "application/x-www-form-urlencoded; charset=UTF-8", s.transformRequest = [(n) => {
69
+ const r = new URLSearchParams();
70
+ for (const c in n)
71
+ r.append(c, n[c]);
72
+ return r.toString();
73
+ }]);
74
+ return this.instance.put(t, e, p({}, s, a));
75
+ }
76
+ /**
77
+ * DELETE 请求
78
+ * @param url
79
+ * @param config
80
+ * @returns
81
+ */
82
+ delete(t, e) {
83
+ const a = {
84
+ headers: {
85
+ "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
86
+ /* UrlEncoded */
87
+ }
88
+ };
89
+ return this.instance.delete(t, p({}, a, e));
90
+ }
91
+ /**
92
+ * 文件上传
93
+ * @param url
94
+ * @param params
95
+ * @param config
96
+ * @returns
97
+ */
98
+ upload(t, e, a) {
99
+ const o = {
100
+ headers: {
101
+ "Content-Type": "multipart/form-data"
102
+ }
103
+ };
104
+ return this.instance.post(t, e, a || o);
105
+ }
106
+ /**
107
+ * blob文件下载
108
+ * @param url
109
+ * @param params
110
+ * @param config
111
+ * @returns
112
+ */
113
+ download(t, e, a) {
114
+ const o = {
115
+ responseType: "blob",
116
+ headers: {
117
+ "Content-Type": "application/json"
118
+ }
119
+ };
120
+ return this.instance.post(t, e, a || o);
121
+ }
122
+ /**
123
+ * Custom 请求
124
+ * @param url
125
+ * @param config
126
+ * @returns
127
+ */
128
+ custom(t, e) {
129
+ return this.instance.get(t, e);
130
+ }
131
+ }
132
+ export {
133
+ T as HttpRequest
134
+ };
@@ -1,3 +1,3 @@
1
- import { HttpRequest, IContentType } from '@zerov/packages-request';
1
+ import { HttpRequest, IContentType } from './axios';
2
2
  export declare const httpRequest: HttpRequest;
3
3
  export { IContentType };
@@ -0,0 +1,5 @@
1
+ import { HttpRequest as t } from "./axios.mjs";
2
+ const o = new t();
3
+ export {
4
+ o as httpRequest
5
+ };
@@ -0,0 +1,84 @@
1
+ /**
2
+ * 数据源工具类
3
+ */
4
+ export declare class DataSourceUtils {
5
+ /**
6
+ * 解析URL中是否包含全局变量
7
+ * @param url URL
8
+ * @param variableData 变量数据
9
+ * @returns 解析后的URL
10
+ */
11
+ static replaceURLVariables(url: string, variableData: any[]): string;
12
+ /**
13
+ * 解析对象中是否包含全局变量
14
+ * @param obj 对象
15
+ * @param variableData 变量数据
16
+ * @returns 解析后的对象
17
+ */
18
+ static replaceObjectVariables(obj: any, variableData: any[]): any;
19
+ /**
20
+ * 解析字符串中是否包含全局变量
21
+ * @param str 字符串
22
+ * @param variableData 变量数据
23
+ * @returns 解析后的字符串
24
+ */
25
+ static replaceStringVariables(str: string, variableData: any[]): string;
26
+ /**
27
+ * 解析环境变量
28
+ * @param url URL
29
+ * @param environments 环境变量
30
+ * @returns 解析后的环境变量
31
+ */
32
+ static replaceEnvVariables(url: string, environments: any[]): string;
33
+ /**
34
+ * 返回空数据
35
+ * @param id 数据源 ID
36
+ * @returns 空数据
37
+ */
38
+ static noneData(id: string): {
39
+ id: string;
40
+ finalKeyData: any[];
41
+ finalUserData: {
42
+ id: string;
43
+ data: any[];
44
+ };
45
+ filteredData: any[];
46
+ rawData: any[];
47
+ noMappingData: any[];
48
+ };
49
+ /**
50
+ * 获取环境变量
51
+ * @returns 环境变量
52
+ */
53
+ static getEnvironments(): any;
54
+ /**
55
+ * 设置环境变量
56
+ * @param environments 环境变量
57
+ */
58
+ static setEnvironments(environments: any): void;
59
+ /**
60
+ * 获取变量数据
61
+ * @returns 变量数据
62
+ */
63
+ static getVariableData(): any;
64
+ /**
65
+ * 设置变量数据
66
+ * @param variableData 变量数据
67
+ */
68
+ static setVariableData(variableData: any): void;
69
+ /**
70
+ * 检查 WebSocket 是否已存在且有效
71
+ * @param wsInstances WebSocket 实例
72
+ * @param tId WebSocket 实例的 ID
73
+ * @param sourceId WebSocket 实例的源 ID
74
+ * @returns 是否有效
75
+ */
76
+ static hasValidWebSocket(wsInstances: any, tId: string, sourceId: string): boolean;
77
+ /**
78
+ * 只在必要时清理 WebSocket 连接
79
+ * @param wsInstances WebSocket 实例
80
+ * @param sourceIds 源 ID
81
+ * @param tId WebSocket 实例的 ID
82
+ */
83
+ static cleanupPreviousWebSockets(wsInstances: any, sourceIds: string[], tId: string): void;
84
+ }
@@ -0,0 +1,156 @@
1
+ import { isArray as l } from "lodash";
2
+ class g {
3
+ /**
4
+ * 解析URL中是否包含全局变量
5
+ * @param url URL
6
+ * @param variableData 变量数据
7
+ * @returns 解析后的URL
8
+ */
9
+ static replaceURLVariables(e, n) {
10
+ try {
11
+ const r = e.match(/\${(.*?)}/g);
12
+ if (r)
13
+ for (let t = 0; t < r.length; t++) {
14
+ const a = n.filter((i) => i.name === r[t].substring(2, r[t].length - 1));
15
+ a && l(a) && a.length > 0 && (e = e.replaceAll(r[t], a[0]._value));
16
+ }
17
+ return e;
18
+ } catch {
19
+ return e;
20
+ }
21
+ }
22
+ /**
23
+ * 解析对象中是否包含全局变量
24
+ * @param obj 对象
25
+ * @param variableData 变量数据
26
+ * @returns 解析后的对象
27
+ */
28
+ static replaceObjectVariables(e, n) {
29
+ try {
30
+ let r = JSON.stringify(e);
31
+ const t = r.match(/\$g{(.*?)}/g);
32
+ if (t) {
33
+ for (let a = 0; a < t.length; a++) {
34
+ const i = n.filter((c) => c.name === t[a].substring(3, t[a].length - 1));
35
+ i && l(i) && i.length > 0 && (r = r.replaceAll(t[a], i[0]._value));
36
+ }
37
+ return JSON.parse(r);
38
+ }
39
+ return e;
40
+ } catch {
41
+ return e;
42
+ }
43
+ }
44
+ /**
45
+ * 解析字符串中是否包含全局变量
46
+ * @param str 字符串
47
+ * @param variableData 变量数据
48
+ * @returns 解析后的字符串
49
+ */
50
+ static replaceStringVariables(e, n) {
51
+ try {
52
+ const r = e.match(/\$g{(.*?)}/g);
53
+ if (r)
54
+ for (let t = 0; t < r.length; t++) {
55
+ const a = n.filter((i) => i.name === r[t].substring(3, r[t].length - 1));
56
+ a && l(a) && a.length > 0 && (e = e.replaceAll(r[t], a[0]._value));
57
+ }
58
+ return e;
59
+ } catch {
60
+ return e;
61
+ }
62
+ }
63
+ /**
64
+ * 解析环境变量
65
+ * @param url URL
66
+ * @param environments 环境变量
67
+ * @returns 解析后的环境变量
68
+ */
69
+ static replaceEnvVariables(e, n) {
70
+ try {
71
+ let r = "";
72
+ if (!e.includes("http") && n) {
73
+ const t = n.filter((a) => a.selected);
74
+ t && l(t) && t.length > 0 && (r = t[0].envBaseUrl || "");
75
+ }
76
+ return r;
77
+ } catch {
78
+ return "";
79
+ }
80
+ }
81
+ /**
82
+ * 返回空数据
83
+ * @param id 数据源 ID
84
+ * @returns 空数据
85
+ */
86
+ static noneData(e) {
87
+ return {
88
+ id: e,
89
+ finalKeyData: [],
90
+ finalUserData: { id: e, data: [] },
91
+ filteredData: [],
92
+ rawData: [],
93
+ noMappingData: []
94
+ };
95
+ }
96
+ /**
97
+ * 获取环境变量
98
+ * @returns 环境变量
99
+ */
100
+ static getEnvironments() {
101
+ let e = localStorage.getItem("currentApiEnvironments");
102
+ return e && (e = JSON.parse(e)), e;
103
+ }
104
+ /**
105
+ * 设置环境变量
106
+ * @param environments 环境变量
107
+ */
108
+ static setEnvironments(e) {
109
+ localStorage.setItem("currentApiEnvironments", JSON.stringify(e));
110
+ }
111
+ /**
112
+ * 获取变量数据
113
+ * @returns 变量数据
114
+ */
115
+ static getVariableData() {
116
+ let e = localStorage.getItem("currentVariableData");
117
+ return e && (e = JSON.parse(e)), e;
118
+ }
119
+ /**
120
+ * 设置变量数据
121
+ * @param variableData 变量数据
122
+ */
123
+ static setVariableData(e) {
124
+ localStorage.setItem("currentVariableData", JSON.stringify(e));
125
+ }
126
+ /**
127
+ * 检查 WebSocket 是否已存在且有效
128
+ * @param wsInstances WebSocket 实例
129
+ * @param tId WebSocket 实例的 ID
130
+ * @param sourceId WebSocket 实例的源 ID
131
+ * @returns 是否有效
132
+ */
133
+ static hasValidWebSocket(e, n, r) {
134
+ const t = e.get(n);
135
+ if (!t) return !1;
136
+ for (const a of t)
137
+ if (a.getId() === r && a.isConnected())
138
+ return !0;
139
+ return !1;
140
+ }
141
+ /**
142
+ * 只在必要时清理 WebSocket 连接
143
+ * @param wsInstances WebSocket 实例
144
+ * @param sourceIds 源 ID
145
+ * @param tId WebSocket 实例的 ID
146
+ */
147
+ static cleanupPreviousWebSockets(e, n, r) {
148
+ const t = e.get(r);
149
+ t && (t.forEach((a) => {
150
+ n.includes(a.getId()) || (a.disconnect(), t.delete(a));
151
+ }), t.size === 0 && e.delete(r));
152
+ }
153
+ }
154
+ export {
155
+ g as DataSourceUtils
156
+ };
@@ -0,0 +1,8 @@
1
+ import { IEvent } from '..';
2
+ /**
3
+ * 执行全屏行为
4
+ * @param event 事件
5
+ * @param params 参数
6
+ * @returns
7
+ */
8
+ export declare const executeFullScreenAction: (event: IEvent, params: any) => void;
@@ -0,0 +1,8 @@
1
+ import { useFullscreen as s } from "@vueuse/core";
2
+ const { enter: n, exit: o, toggle: c } = s(), i = (e, l) => {
3
+ const { fullscreenAction: t } = e;
4
+ t && t.status && (t.status === "fullscreen" && n(), t.status === "window" && o(), t.status === "toggle" && c());
5
+ };
6
+ export {
7
+ i as executeFullScreenAction
8
+ };
@@ -0,0 +1,8 @@
1
+ import { IEvent } from '..';
2
+ /**
3
+ * 执行 执行组件方法
4
+ * @param event 事件
5
+ * @param params 参数
6
+ * @returns
7
+ */
8
+ export declare const executeInvokeAction: (event: IEvent, params: any) => void;