@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
@@ -0,0 +1,150 @@
1
+ var d = Object.defineProperty;
2
+ var f = (a, e, t) => e in a ? d(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var m = (a, e, t) => f(a, typeof e != "symbol" ? e + "" : e, t);
4
+ import { cloneDeep as l } from "lodash";
5
+ import { executePageAction as y } from "./actions/pageAction.mjs";
6
+ import { executeLinkAction as x } from "./actions/linkAction.mjs";
7
+ import { executeMoveAction as A } from "./actions/moveAction.mjs";
8
+ import { executeSendApiAction as h } from "./actions/sendApiAction.mjs";
9
+ import { executeScaleAction as g } from "./actions/scaleAction.mjs";
10
+ import { executeRotateAction as S } from "./actions/rotateAction.mjs";
11
+ import { executeUpdatePageAction as E } from "./actions/updatePageAction.mjs";
12
+ import { executeInvokeAction as b } from "./actions/invokeAction.mjs";
13
+ import { executeFullScreenAction as M } from "./actions/fullScreenAction.mjs";
14
+ import { executeUpdateVariableAction as U } from "./actions/updateVariableAction.mjs";
15
+ import { executeUpdateWidgetAction as k } from "./actions/updateWidgetAction.mjs";
16
+ import { executeUeCommonsWebscoketAction as w } from "./actions/ueCommonsWebscoketAction.mjs";
17
+ import { executeUeShjExecMethodAction as N } from "./actions/ueShjExecMethodAction.mjs";
18
+ import { executeUnityWebglExecMethodAction as P } from "./actions/unityWebglExecMethodAction.mjs";
19
+ import { executeUnityIframeExecMethodAction as V } from "./actions/unityIframeExecMethodAction.mjs";
20
+ import { executeVrSceneMethodAction as W } from "./actions/vrSceneMethodAction.mjs";
21
+ class C {
22
+ /**
23
+ * 添加事件解析器
24
+ * @param type 事件类型
25
+ * @param parser 事件解析器
26
+ */
27
+ static addAction(e, t) {
28
+ this.actions.add({ type: e, parser: t });
29
+ }
30
+ /**
31
+ * 获取事件解析器
32
+ * @param type 事件类型
33
+ * @returns 事件解析器
34
+ */
35
+ static getAction(e) {
36
+ const t = Array.from(this.actions).find((i) => i.type === e);
37
+ return t == null ? void 0 : t.parser;
38
+ }
39
+ /**
40
+ * 解析事件
41
+ * @param events 事件
42
+ * @param type 事件类型
43
+ * @param params 参数
44
+ */
45
+ static parseEvents(e, t, i) {
46
+ e != null && e.length && e.forEach((r, p) => {
47
+ r.eventType === t && setTimeout(() => {
48
+ const s = this.filterEvent(r, i);
49
+ if (!this.conditionLogic(r, s) || !r.actions)
50
+ return;
51
+ const u = this.getAction(r.actions);
52
+ u && u(r, s);
53
+ }, r.delay + p * 10);
54
+ });
55
+ }
56
+ /**
57
+ * 过滤事件返回值
58
+ * @param event 事件
59
+ * @param params 参数
60
+ * @returns 过滤后的参数
61
+ */
62
+ static filterEvent(e, t) {
63
+ let i = l(t);
64
+ if (e.filterCode)
65
+ try {
66
+ const r = `
67
+ ${e.filterCode}
68
+
69
+ // 在这里调用 filter 函数,并传递 data 参数
70
+ return filter(data);
71
+ `;
72
+ i = new Function("data", r)(t);
73
+ } catch {
74
+ }
75
+ return i;
76
+ }
77
+ /**
78
+ * 条件逻辑判断
79
+ * @param event 事件
80
+ * @param params 参数
81
+ * @returns 是否通过
82
+ */
83
+ static conditionLogic(e, t) {
84
+ var s, u;
85
+ if (!((u = (s = e.condition) == null ? void 0 : s.list) != null && u.length))
86
+ return !0;
87
+ const i = (n) => {
88
+ if (n.type === "field") {
89
+ if (!n.conditionName) return !1;
90
+ const o = t[n.conditionName];
91
+ if (o === void 0) return !1;
92
+ const c = n.conditionValue;
93
+ switch (n.conditionExpression) {
94
+ case "eq":
95
+ return o.toString() === (c || "").toString();
96
+ case "neq":
97
+ return o !== c;
98
+ case "lt":
99
+ return o < Number(c);
100
+ case "gt":
101
+ return o > Number(c);
102
+ case "lte":
103
+ return o <= Number(c);
104
+ case "gte":
105
+ return o >= Number(c);
106
+ case "includes":
107
+ return o.includes(c);
108
+ case "noincludes":
109
+ return !o.includes(c);
110
+ default:
111
+ return !1;
112
+ }
113
+ }
114
+ if (n.type === "custom")
115
+ try {
116
+ const o = `
117
+ ${n.customValue}
118
+ return condition(data);
119
+ `;
120
+ return new Function("data", o)(t);
121
+ } catch {
122
+ return !1;
123
+ }
124
+ return !1;
125
+ }, r = e.condition.list.map(i);
126
+ return e.condition.type === "and" ? r.every(Boolean) : r.some(Boolean);
127
+ }
128
+ }
129
+ /** 事件动作 */
130
+ m(C, "actions", /* @__PURE__ */ new Set([
131
+ { type: "page", parser: y },
132
+ { type: "link", parser: x },
133
+ { type: "sendApi", parser: h },
134
+ { type: "move", parser: A },
135
+ { type: "scale", parser: g },
136
+ { type: "rotate", parser: S },
137
+ { type: "updatePage", parser: E },
138
+ { type: "invoke", parser: b },
139
+ { type: "fullscreen", parser: M },
140
+ { type: "updateVariable", parser: U },
141
+ { type: "updateWidget", parser: k },
142
+ { type: "ueCommonsWebscoket", parser: w },
143
+ { type: "ueShjExecMethod", parser: N },
144
+ { type: "unityWebglExecMethod", parser: P },
145
+ { type: "unityIframeExecMethod", parser: V },
146
+ { type: "vrSceneMethod", parser: W }
147
+ ]));
148
+ export {
149
+ C as SHJParseEvent
150
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * 事件工具类
3
+ */
4
+ export declare class EventUtils {
5
+ /**
6
+ * 将URL参数转换为JSON对象
7
+ * @param urlParam - 需要转换的URL参数
8
+ * @returns 转换后的JSON对象
9
+ */
10
+ static urlParamToJson(urlParam: string): any;
11
+ /**
12
+ * 更新组件数据
13
+ * @param variableData 变量数据
14
+ */
15
+ static updateWidgetVariableData(variableData: any): void;
16
+ /**
17
+ * 将JSON对象转换为字符串
18
+ * @param json - 需要转换的JSON对象
19
+ * @returns 转换后的字符串
20
+ */
21
+ static toStringify(json: any): string;
22
+ }
@@ -0,0 +1,52 @@
1
+ class f {
2
+ /**
3
+ * 将URL参数转换为JSON对象
4
+ * @param urlParam - 需要转换的URL参数
5
+ * @returns 转换后的JSON对象
6
+ */
7
+ static urlParamToJson(e) {
8
+ if (!e) return e;
9
+ const r = {};
10
+ return e.trim().split("&").forEach((i) => r[i.split("=")[0]] = i.split("=")[1]), r;
11
+ }
12
+ /**
13
+ * 更新组件数据
14
+ * @param variableData 变量数据
15
+ */
16
+ static updateWidgetVariableData(e) {
17
+ var r;
18
+ (r = e.useList) != null && r.length && e.useList.forEach((i) => {
19
+ const n = window.SHJComponentRefs.find((t) => {
20
+ if (t.layerId === i || t.sceneId === i)
21
+ return t;
22
+ });
23
+ try {
24
+ n && n.ref && n.ref.refreshData();
25
+ } catch {
26
+ }
27
+ });
28
+ }
29
+ /**
30
+ * 将JSON对象转换为字符串
31
+ * @param json - 需要转换的JSON对象
32
+ * @returns 转换后的字符串
33
+ */
34
+ static toStringify(e) {
35
+ try {
36
+ let r = [];
37
+ const i = JSON.stringify(e, (n, t) => {
38
+ if (typeof t == "object" && t !== null) {
39
+ if (r.indexOf(t) !== -1) return;
40
+ r.push(t);
41
+ }
42
+ return t;
43
+ });
44
+ return r = null, i;
45
+ } catch {
46
+ return "";
47
+ }
48
+ }
49
+ }
50
+ export {
51
+ f as EventUtils
52
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 获取下一个元素
3
+ * @param arr 数组
4
+ * @param target 目标元素
5
+ * @returns 下一个元素
6
+ */
7
+ export declare const getNextElement: (arr: string[], target: string) => string;
@@ -0,0 +1,12 @@
1
+ const i = (n, e) => {
2
+ if (!Array.isArray(n) || !n.length || typeof e != "string")
3
+ return null;
4
+ const t = n.indexOf(e);
5
+ if (t === -1)
6
+ return null;
7
+ const l = (t + 1) % n.length;
8
+ return n[l];
9
+ };
10
+ export {
11
+ i as getNextElement
12
+ };
@@ -1,10 +1,11 @@
1
- import { defineComponent as n, watch as i, createElementBlock as f, openBlock as b, createElementVNode as v, unref as _ } from "vue";
2
- import { cloneDeep as r, isEqual as E } from "lodash";
3
- import { SHJDatasourceV2 as O } from "../../commons/core/datasource/index.mjs";
4
- import { useChart as w } from "../../commons/core/useChart.mjs";
5
- import { parseDataset as g } from "../../commons/utils/parseDataset.mjs";
6
- import { cloneSeries as D } from "../../commons/utils/cloneSeries.mjs";
7
- const k = { class: "zerov-widget" }, x = ["id"], S = n({ name: "zv-chart-bar-animation" }), L = /* @__PURE__ */ n({
1
+ import { defineComponent as u, watch as i, createElementBlock as v, openBlock as b, createElementVNode as E, unref as _ } from "vue";
2
+ import { cloneDeep as r, isEqual as O } from "lodash";
3
+ import { SHJDatasourceV2 as g } from "../../commons/plugins/datasource/index.mjs";
4
+ import { useChart as D } from "../../commons/core/useChart.mjs";
5
+ import { parseDataset as k } from "../../commons/utils/parseDataset.mjs";
6
+ import { cloneSeries as w } from "../../commons/utils/cloneSeries.mjs";
7
+ import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
8
+ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-bar-animation" }), y = /* @__PURE__ */ u({
8
9
  ...S,
9
10
  props: {
10
11
  basicOption: {},
@@ -21,25 +22,25 @@ const k = { class: "zerov-widget" }, x = ["id"], S = n({ name: "zv-chart-bar-ani
21
22
  "chart-mouseout",
22
23
  "chart-contextmenu"
23
24
  ],
24
- setup(u, { expose: d, emit: m }) {
25
- const e = u, l = m, {
26
- id: p,
25
+ setup(m, { expose: p, emit: d }) {
26
+ const e = m, l = d, {
27
+ id: h,
27
28
  setOption: o,
28
- chart: h,
29
+ chart: f,
29
30
  renderChart: c,
30
31
  renderData: a
31
- } = w({
32
+ } = D({
32
33
  basicOption: r(e.basicOption),
33
34
  useEvents: r(e.useEvents),
34
35
  customRenderData: (s) => {
35
- s = r(s), O.parse({
36
+ s = r(s), g.parse({
36
37
  tId: e.uuid,
37
38
  sources: e.sources,
38
39
  callback: ({ data: t }) => {
39
40
  try {
40
- window.SHJParseEvent(e.useEvents, "dataListener", t), s.dataset = g(r(t)), s.series = D(t, s.series), o(s);
41
+ n.parseEvents(e.useEvents, "dataListener", t), s.dataset = k(r(t)), s.series = w(t, s.series), o(s);
41
42
  } catch {
42
- window.SHJParseEvent(e.useEvents, "dataListener", null), o(s);
43
+ n.parseEvents(e.useEvents, "dataListener", null), o(s);
43
44
  }
44
45
  }
45
46
  });
@@ -51,11 +52,11 @@ const k = { class: "zerov-widget" }, x = ["id"], S = n({ name: "zv-chart-bar-ani
51
52
  }, {
52
53
  deep: !0
53
54
  }), i(() => r(e.basicOption), (s, t) => {
54
- E(s, t) || c(s);
55
+ O(s, t) || c(s);
55
56
  }, {
56
57
  deep: !0
57
- }), d({
58
- getEchartsInstance: () => h.value,
58
+ }), p({
59
+ getEchartsInstance: () => f.value,
59
60
  refresh: () => {
60
61
  e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
61
62
  },
@@ -65,14 +66,14 @@ const k = { class: "zerov-widget" }, x = ["id"], S = n({ name: "zv-chart-bar-ani
65
66
  refreshData: () => {
66
67
  a(e.basicOption);
67
68
  }
68
- }), (s, t) => (b(), f("div", k, [
69
- v("div", {
70
- id: _(p),
69
+ }), (s, t) => (b(), v("div", x, [
70
+ E("div", {
71
+ id: _(h),
71
72
  class: "widget"
72
- }, null, 8, x)
73
+ }, null, 8, C)
73
74
  ]));
74
75
  }
75
76
  });
76
77
  export {
77
- L as default
78
+ y as default
78
79
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as n, watch as i, createElementBlock as f, openBlock as b, createElementVNode as v, unref as _ } from "vue";
2
- import { cloneDeep as r, isEqual as E } from "lodash";
3
- import { SHJDatasourceV2 as O } from "../../commons/core/datasource/index.mjs";
4
- import { useChart as w } from "../../commons/core/useChart.mjs";
5
- import { parseDataset as g } from "../../commons/utils/parseDataset.mjs";
6
- import { cloneSeries as D } from "../../commons/utils/cloneSeries.mjs";
7
- const k = { class: "zerov-widget" }, x = ["id"], S = n({ name: "zv-chart-bar-basic" }), L = /* @__PURE__ */ n({
1
+ import { defineComponent as u, watch as i, createElementBlock as b, openBlock as v, createElementVNode as E, unref as _ } from "vue";
2
+ import { cloneDeep as r, isEqual as O } from "lodash";
3
+ import { SHJDatasourceV2 as g } from "../../commons/plugins/datasource/index.mjs";
4
+ import { useChart as D } from "../../commons/core/useChart.mjs";
5
+ import { parseDataset as k } from "../../commons/utils/parseDataset.mjs";
6
+ import { cloneSeries as w } from "../../commons/utils/cloneSeries.mjs";
7
+ import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
8
+ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-bar-basic" }), y = /* @__PURE__ */ u({
8
9
  ...S,
9
10
  props: {
10
11
  basicOption: {},
@@ -21,25 +22,25 @@ const k = { class: "zerov-widget" }, x = ["id"], S = n({ name: "zv-chart-bar-bas
21
22
  "chart-mouseout",
22
23
  "chart-contextmenu"
23
24
  ],
24
- setup(u, { expose: d, emit: m }) {
25
- const e = u, l = m, {
26
- id: p,
25
+ setup(m, { expose: p, emit: d }) {
26
+ const e = m, l = d, {
27
+ id: h,
27
28
  setOption: o,
28
- chart: h,
29
+ chart: f,
29
30
  renderChart: c,
30
31
  renderData: a
31
- } = w({
32
+ } = D({
32
33
  basicOption: r(e.basicOption),
33
34
  useEvents: r(e.useEvents),
34
35
  customRenderData: (s) => {
35
- s = r(s), O.parse({
36
+ s = r(s), g.parse({
36
37
  tId: e.uuid,
37
38
  sources: e.sources,
38
39
  callback: ({ data: t }) => {
39
40
  try {
40
- window.SHJParseEvent(e.useEvents, "dataListener", t), s.dataset = g(r(t)), s.series = D(t, s.series), o(s);
41
+ n.parseEvents(e.useEvents, "dataListener", t), s.dataset = k(r(t)), s.series = w(t, s.series), o(s);
41
42
  } catch {
42
- window.SHJParseEvent(e.useEvents, "dataListener", null), o(s);
43
+ n.parseEvents(e.useEvents, "dataListener", null), o(s);
43
44
  }
44
45
  }
45
46
  });
@@ -51,11 +52,11 @@ const k = { class: "zerov-widget" }, x = ["id"], S = n({ name: "zv-chart-bar-bas
51
52
  }, {
52
53
  deep: !0
53
54
  }), i(() => r(e.basicOption), (s, t) => {
54
- E(s, t) || c(s);
55
+ O(s, t) || c(s);
55
56
  }, {
56
57
  deep: !0
57
- }), d({
58
- getEchartsInstance: () => h.value,
58
+ }), p({
59
+ getEchartsInstance: () => f.value,
59
60
  refresh: () => {
60
61
  e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
61
62
  },
@@ -65,14 +66,14 @@ const k = { class: "zerov-widget" }, x = ["id"], S = n({ name: "zv-chart-bar-bas
65
66
  refreshData: () => {
66
67
  a(e.basicOption);
67
68
  }
68
- }), (s, t) => (b(), f("div", k, [
69
- v("div", {
70
- id: _(p),
69
+ }), (s, t) => (v(), b("div", x, [
70
+ E("div", {
71
+ id: _(h),
71
72
  class: "widget"
72
- }, null, 8, x)
73
+ }, null, 8, C)
73
74
  ]));
74
75
  }
75
76
  });
76
77
  export {
77
- L as default
78
+ y as default
78
79
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as l, watch as u, createElementBlock as E, openBlock as x, createElementVNode as _, unref as O } from "vue";
2
- import { cloneDeep as c, isEqual as w } from "lodash";
3
- import { SHJDatasourceV2 as y } from "../../commons/core/datasource/index.mjs";
4
- import { useChart as g } from "../../commons/core/useChart.mjs";
5
- import { parseDataset as D } from "../../commons/utils/parseDataset.mjs";
6
- const k = { class: "zerov-widget" }, A = ["id"], L = l({ name: "zv-chart-bar-contrast" }), z = /* @__PURE__ */ l({
7
- ...L,
1
+ import { defineComponent as f, watch as u, createElementBlock as x, openBlock as _, createElementVNode as O, unref as y } from "vue";
2
+ import { cloneDeep as c, isEqual as g } from "lodash";
3
+ import { SHJDatasourceV2 as D } from "../../commons/plugins/datasource/index.mjs";
4
+ import { useChart as k } from "../../commons/core/useChart.mjs";
5
+ import { parseDataset as w } from "../../commons/utils/parseDataset.mjs";
6
+ import { SHJParseEvent as l } from "../../commons/plugins/event/index.mjs";
7
+ const A = { class: "zerov-widget" }, L = ["id"], C = f({ name: "zv-chart-bar-contrast" }), S = /* @__PURE__ */ f({
8
+ ...C,
8
9
  props: {
9
10
  basicOption: {},
10
11
  sources: {},
@@ -19,37 +20,37 @@ const k = { class: "zerov-widget" }, A = ["id"], L = l({ name: "zv-chart-bar-con
19
20
  "chart-mouseout",
20
21
  "chart-contextmenu"
21
22
  ],
22
- setup(f, { expose: m, emit: h }) {
23
- const e = f, p = h, {
23
+ setup(m, { expose: p, emit: h }) {
24
+ const e = m, v = h, {
24
25
  id: d,
25
26
  setOption: n,
26
- chart: v,
27
+ chart: b,
27
28
  renderChart: a,
28
- renderData: i
29
- } = g({
29
+ renderData: o
30
+ } = k({
30
31
  basicOption: c(e.basicOption),
31
32
  useEvents: c(e.useEvents),
32
33
  customRenderData: (r) => {
33
- r = c(r), y.parse({
34
+ r = c(r), D.parse({
34
35
  tId: e.uuid,
35
36
  sources: e.sources,
36
37
  callback: ({ data: t }) => {
37
38
  try {
38
- window.SHJParseEvent(e.useEvents, "dataListener", t), r.dataset = D(c(t)), b(r), n(r);
39
+ l.parseEvents(e.useEvents, "dataListener", t), r.dataset = w(c(t)), E(r), n(r);
39
40
  } catch {
40
- window.SHJParseEvent(e.useEvents, "dataListener", null), n(r);
41
+ l.parseEvents(e.useEvents, "dataListener", null), n(r);
41
42
  }
42
43
  }
43
44
  });
44
45
  },
45
- emit: p
46
- }), b = (r) => {
46
+ emit: v
47
+ }), E = (r) => {
47
48
  try {
48
49
  r.series.forEach((t) => {
49
50
  t.label.formatter = (s) => {
50
- for (const o in s.value)
51
- if (typeof s.value[o] == "number" && s.value[o] < 0)
52
- return -s.value[o];
51
+ for (const i in s.value)
52
+ if (typeof s.value[i] == "number" && s.value[i] < 0)
53
+ return -s.value[i];
53
54
  };
54
55
  }), r.xAxis[0].type === "value" && r.xAxis.forEach((t) => {
55
56
  t.axisLabel.formatter = (s) => s < 0 ? -s : s;
@@ -60,32 +61,32 @@ const k = { class: "zerov-widget" }, A = ["id"], L = l({ name: "zv-chart-bar-con
60
61
  }
61
62
  };
62
63
  return u(() => e.sources, () => {
63
- e.sources && e.sources.length > 0 && i(e.basicOption);
64
+ e.sources && e.sources.length > 0 && o(e.basicOption);
64
65
  }, {
65
66
  deep: !0
66
67
  }), u(() => c(e.basicOption), (r, t) => {
67
- w(r, t) || a(r);
68
+ g(r, t) || a(r);
68
69
  }, {
69
70
  deep: !0
70
- }), m({
71
- getEchartsInstance: () => v.value,
71
+ }), p({
72
+ getEchartsInstance: () => b.value,
72
73
  refresh: () => {
73
- e.sources && e.sources.length > 0 && a(e.basicOption), i(e.basicOption);
74
+ e.sources && e.sources.length > 0 && a(e.basicOption), o(e.basicOption);
74
75
  },
75
76
  refreshView: () => {
76
77
  e.sources && e.sources.length > 0 && a(e.basicOption);
77
78
  },
78
79
  refreshData: () => {
79
- i(e.basicOption);
80
+ o(e.basicOption);
80
81
  }
81
- }), (r, t) => (x(), E("div", k, [
82
- _("div", {
83
- id: O(d),
82
+ }), (r, t) => (_(), x("div", A, [
83
+ O("div", {
84
+ id: y(d),
84
85
  class: "widget"
85
- }, null, 8, A)
86
+ }, null, 8, L)
86
87
  ]));
87
88
  }
88
89
  });
89
90
  export {
90
- z as default
91
+ S as default
91
92
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as i, watch as n, createElementBlock as f, openBlock as b, createElementVNode as v, unref as _ } from "vue";
2
- import { cloneDeep as r, isEqual as E } from "lodash";
3
- import { SHJDatasourceV2 as O } from "../../commons/core/datasource/index.mjs";
4
- import { useChart as w } from "../../commons/core/useChart.mjs";
5
- import { parseDataset as g } from "../../commons/utils/parseDataset.mjs";
6
- const D = { class: "zerov-widget" }, k = ["id"], x = i({ name: "zv-chart-bar-contrast2" }), B = /* @__PURE__ */ i({
7
- ...x,
1
+ import { defineComponent as u, watch as n, createElementBlock as v, openBlock as b, createElementVNode as E, unref as _ } from "vue";
2
+ import { cloneDeep as r, isEqual as O } from "lodash";
3
+ import { SHJDatasourceV2 as g } from "../../commons/plugins/datasource/index.mjs";
4
+ import { useChart as D } from "../../commons/core/useChart.mjs";
5
+ import { parseDataset as k } from "../../commons/utils/parseDataset.mjs";
6
+ import { SHJParseEvent as i } from "../../commons/plugins/event/index.mjs";
7
+ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-bar-contrast2" }), S = /* @__PURE__ */ u({
8
+ ...C,
8
9
  props: {
9
10
  basicOption: {},
10
11
  sources: {},
@@ -19,25 +20,25 @@ const D = { class: "zerov-widget" }, k = ["id"], x = i({ name: "zv-chart-bar-con
19
20
  "chart-mouseout",
20
21
  "chart-contextmenu"
21
22
  ],
22
- setup(u, { expose: d, emit: p }) {
23
- const e = u, l = p, {
24
- id: m,
23
+ setup(p, { expose: d, emit: m }) {
24
+ const e = p, l = m, {
25
+ id: h,
25
26
  setOption: o,
26
- chart: h,
27
+ chart: f,
27
28
  renderChart: c,
28
29
  renderData: a
29
- } = w({
30
+ } = D({
30
31
  basicOption: r(e.basicOption),
31
32
  useEvents: r(e.useEvents),
32
33
  customRenderData: (t) => {
33
- t = r(t), O.parse({
34
+ t = r(t), g.parse({
34
35
  tId: e.uuid,
35
36
  sources: e.sources,
36
37
  callback: ({ data: s }) => {
37
38
  try {
38
- window.SHJParseEvent(e.useEvents, "dataListener", s), t.dataset = g(r(s)), o(t);
39
+ i.parseEvents(e.useEvents, "dataListener", s), t.dataset = k(r(s)), o(t);
39
40
  } catch {
40
- window.SHJParseEvent(e.useEvents, "dataListener", null), o(t);
41
+ i.parseEvents(e.useEvents, "dataListener", null), o(t);
41
42
  }
42
43
  }
43
44
  });
@@ -49,11 +50,11 @@ const D = { class: "zerov-widget" }, k = ["id"], x = i({ name: "zv-chart-bar-con
49
50
  }, {
50
51
  deep: !0
51
52
  }), n(() => r(e.basicOption), (t, s) => {
52
- E(t, s) || c(t);
53
+ O(t, s) || c(t);
53
54
  }, {
54
55
  deep: !0
55
56
  }), d({
56
- getEchartsInstance: () => h.value,
57
+ getEchartsInstance: () => f.value,
57
58
  refresh: () => {
58
59
  e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
59
60
  },
@@ -63,14 +64,14 @@ const D = { class: "zerov-widget" }, k = ["id"], x = i({ name: "zv-chart-bar-con
63
64
  refreshData: () => {
64
65
  a(e.basicOption);
65
66
  }
66
- }), (t, s) => (b(), f("div", D, [
67
- v("div", {
68
- id: _(m),
67
+ }), (t, s) => (b(), v("div", w, [
68
+ E("div", {
69
+ id: _(h),
69
70
  class: "widget"
70
- }, null, 8, k)
71
+ }, null, 8, x)
71
72
  ]));
72
73
  }
73
74
  });
74
75
  export {
75
- B as default
76
+ S as default
76
77
  };