@shjjs/visual-ui 1.0.18 → 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 (473) 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/utils.d.ts +84 -0
  4. package/es/commons/plugins/datasource/utils/utils.mjs +156 -0
  5. package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -0
  6. package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -0
  7. package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -0
  8. package/es/commons/plugins/event/actions/invokeAction.mjs +10 -0
  9. package/es/commons/plugins/event/actions/linkAction.d.ts +8 -0
  10. package/es/commons/plugins/event/actions/linkAction.mjs +7 -0
  11. package/es/commons/plugins/event/actions/moveAction.d.ts +8 -0
  12. package/es/commons/plugins/event/actions/moveAction.mjs +15 -0
  13. package/es/commons/plugins/event/actions/pageAction.d.ts +8 -0
  14. package/es/commons/plugins/event/actions/pageAction.mjs +14 -0
  15. package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -0
  16. package/es/commons/plugins/event/actions/rotateAction.mjs +19 -0
  17. package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -0
  18. package/es/commons/plugins/event/actions/scaleAction.mjs +24 -0
  19. package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -0
  20. package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -0
  21. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -0
  22. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
  23. package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -0
  24. package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
  25. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -0
  26. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
  27. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -0
  28. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
  29. package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -0
  30. package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -0
  31. package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -0
  32. package/es/commons/plugins/event/actions/updateVariableAction.mjs +23 -0
  33. package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -0
  34. package/es/commons/plugins/event/actions/updateWidgetAction.mjs +13 -0
  35. package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -0
  36. package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
  37. package/es/commons/plugins/event/index.d.ts +202 -0
  38. package/es/commons/plugins/event/index.mjs +150 -0
  39. package/es/commons/plugins/event/utils/utils.d.ts +22 -0
  40. package/es/commons/plugins/event/utils/utils.mjs +52 -0
  41. package/es/commons/utils/getNextElement.d.ts +7 -0
  42. package/es/commons/utils/getNextElement.mjs +12 -0
  43. package/es/components/chart-bar-animation/index.vue.mjs +24 -23
  44. package/es/components/chart-bar-basic/index.vue.mjs +24 -23
  45. package/es/components/chart-bar-contrast/index.vue.mjs +32 -31
  46. package/es/components/chart-bar-contrast2/index.vue.mjs +23 -22
  47. package/es/components/chart-bar-contrast3/index.vue.mjs +25 -24
  48. package/es/components/chart-bar-gradient-column-chart/index.vue.mjs +24 -23
  49. package/es/components/chart-bar-horizontal/index.vue.mjs +25 -24
  50. package/es/components/chart-bar-horizontal-stack/index.vue.mjs +25 -24
  51. package/es/components/chart-bar-line-bar/index.vue.mjs +23 -22
  52. package/es/components/chart-bar-line-bar2/index.vue.mjs +23 -22
  53. package/es/components/chart-bar-loop/index.vue.mjs +25 -24
  54. package/es/components/chart-bar-mini/index.vue.mjs +25 -24
  55. package/es/components/chart-bar-polar/index.vue.mjs +23 -22
  56. package/es/components/chart-bar-polar-stack/index.vue.mjs +23 -22
  57. package/es/components/chart-bar-polar2/index.vue.mjs +23 -22
  58. package/es/components/chart-bar-radius-circle/index.vue.mjs +23 -22
  59. package/es/components/chart-bar-rank/index.vue.mjs +25 -24
  60. package/es/components/chart-bar-segmented-progress/index.vue.mjs +27 -26
  61. package/es/components/chart-bar-spire/index.vue.mjs +30 -29
  62. package/es/components/chart-bar-stack/index.vue.mjs +24 -23
  63. package/es/components/chart-bar-stack-line/index.vue.mjs +23 -22
  64. package/es/components/chart-bar-stack2/index.vue.mjs +23 -22
  65. package/es/components/chart-bar-stack3/index.vue.mjs +23 -22
  66. package/es/components/chart-bar-staggered/index.vue.mjs +23 -22
  67. package/es/components/chart-bar-three/index.vue.mjs +21 -20
  68. package/es/components/chart-bar-waterfall/index.vue.mjs +30 -29
  69. package/es/components/chart-bar-zebra/index.vue.mjs +23 -22
  70. package/es/components/chart-line-area-gradient/index.vue.mjs +24 -23
  71. package/es/components/chart-line-area-highlight/index.vue.mjs +23 -22
  72. package/es/components/chart-line-area-highlight2/index.vue.mjs +23 -22
  73. package/es/components/chart-line-basic/index.vue.mjs +25 -24
  74. package/es/components/chart-line-bump/index.vue.mjs +30 -29
  75. package/es/components/chart-line-dashed/index.vue.mjs +24 -23
  76. package/es/components/chart-line-ladder/index.vue.mjs +24 -23
  77. package/es/components/chart-line-logarithm/index.vue.mjs +29 -28
  78. package/es/components/chart-line-multix/index.vue.mjs +29 -28
  79. package/es/components/chart-line-polar-double/index.vue.mjs +25 -24
  80. package/es/components/chart-line-rain-flow/index.vue.mjs +29 -28
  81. package/es/components/chart-line-scale/index.vue.mjs +24 -23
  82. package/es/components/chart-line-smooth/index.vue.mjs +24 -23
  83. package/es/components/chart-line-smooth-area/index.vue.mjs +29 -28
  84. package/es/components/chart-line-stack/index.vue.mjs +24 -23
  85. package/es/components/chart-line-stack-area/index.vue.mjs +24 -23
  86. package/es/components/chart-line-temp/index.vue.mjs +29 -28
  87. package/es/components/chart-line-vertical/index.vue.mjs +24 -23
  88. package/es/components/chart-map-basic/index.vue.mjs +29 -28
  89. package/es/components/chart-map-bmap-basic/index.vue.mjs +25 -24
  90. package/es/components/chart-map-bmap-heatmap/index.vue.mjs +24 -23
  91. package/es/components/chart-map-bmap-rich/index.vue.mjs +24 -23
  92. package/es/components/chart-map-customize/index.vue.mjs +23 -22
  93. package/es/components/chart-map-lines/index.vue.mjs +24 -23
  94. package/es/components/chart-map-scatter/index.vue.mjs +24 -23
  95. package/es/components/chart-other-candlestick-basic/index.vue.mjs +25 -24
  96. package/es/components/chart-other-candlestick-demo/index.vue.mjs +22 -21
  97. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +22 -21
  98. package/es/components/chart-other-circular-graph/index.vue.mjs +20 -19
  99. package/es/components/chart-other-force/index.vue.mjs +22 -21
  100. package/es/components/chart-other-force2/index.vue.mjs +22 -21
  101. package/es/components/chart-other-funnel/index.vue.mjs +20 -19
  102. package/es/components/chart-other-funnel-contrast/index.vue.mjs +20 -19
  103. package/es/components/chart-other-funnel-split/index.vue.mjs +20 -19
  104. package/es/components/chart-other-funnel2/index.vue.mjs +20 -19
  105. package/es/components/chart-other-gauge/index.vue.mjs +20 -19
  106. package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -19
  107. package/es/components/chart-other-gauge-stage/index.vue.mjs +20 -19
  108. package/es/components/chart-other-graph-basic/index.vue.mjs +21 -20
  109. package/es/components/chart-other-graph-basic2/index.vue.mjs +21 -20
  110. package/es/components/chart-other-graph-calendar/index.vue.mjs +21 -20
  111. package/es/components/chart-other-grid-percentage/index.vue.mjs +25 -24
  112. package/es/components/chart-other-heatmap/index.vue.mjs +23 -22
  113. package/es/components/chart-other-label-gauge/index.vue.mjs +30 -29
  114. package/es/components/chart-other-liquidfill/index.vue.mjs +22 -21
  115. package/es/components/chart-other-parallel-basic/index.vue.mjs +21 -20
  116. package/es/components/chart-other-parallel-mul/index.vue.mjs +30 -29
  117. package/es/components/chart-other-radar/index.vue.mjs +32 -31
  118. package/es/components/chart-other-radar-stack/index.vue.mjs +23 -22
  119. package/es/components/chart-other-sunburst-basic/index.vue.mjs +22 -21
  120. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +22 -21
  121. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +22 -21
  122. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +22 -21
  123. package/es/components/chart-other-sunburst-book/index.vue.mjs +22 -21
  124. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +20 -19
  125. package/es/components/chart-other-sunburst-radius/index.vue.mjs +22 -21
  126. package/es/components/chart-other-theme-river/index.vue.mjs +25 -24
  127. package/es/components/chart-other-tree/index.vue.mjs +20 -19
  128. package/es/components/chart-other-tree-line/index.vue.mjs +21 -20
  129. package/es/components/chart-other-treemap/index.vue.mjs +19 -18
  130. package/es/components/chart-other-treemap-basic/index.vue.mjs +20 -19
  131. package/es/components/chart-other-word-cloud/index.vue.mjs +18 -17
  132. package/es/components/chart-pie-3d/index.vue.mjs +25 -24
  133. package/es/components/chart-pie-basic/index.vue.mjs +23 -22
  134. package/es/components/chart-pie-basic2/index.vue.mjs +23 -22
  135. package/es/components/chart-pie-customized/index.vue.mjs +28 -27
  136. package/es/components/chart-pie-index/index.vue.mjs +22 -21
  137. package/es/components/chart-pie-interval/index.vue.mjs +22 -21
  138. package/es/components/chart-pie-legend-scroll/index.vue.mjs +28 -27
  139. package/es/components/chart-pie-radius/index.vue.mjs +22 -21
  140. package/es/components/chart-pie-rose/index.vue.mjs +27 -26
  141. package/es/components/chart-pie-round/index.vue.mjs +27 -26
  142. package/es/components/chart-pie-semicircle/index.vue.mjs +23 -22
  143. package/es/components/chart-pie-sunburst/index.vue.mjs +23 -22
  144. package/es/components/chart-scatter-basic/index.vue.mjs +24 -23
  145. package/es/components/chart-scatter-basic2/index.vue.mjs +24 -23
  146. package/es/components/chart-scatter-bubble/index.vue.mjs +25 -24
  147. package/es/components/chart-scatter-ripples/index.vue.mjs +21 -20
  148. package/es/components/commons-echarts/compileAndRunEcharts.mjs +22 -21
  149. package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
  150. package/es/components/commons-loop-iterator/index.vue2.mjs +39 -38
  151. package/es/components/commons-product-model/index.vue.mjs +1 -1
  152. package/es/components/commons-product-model/index.vue2.mjs +40 -39
  153. package/es/components/commons-three-loader/index.vue.mjs +2 -2
  154. package/es/components/commons-three-loader/index.vue2.mjs +6 -5
  155. package/es/components/commons-three-loader3/index.vue.mjs +2 -2
  156. package/es/components/commons-three-loader3/index.vue2.mjs +60 -59
  157. package/es/components/commons-weather/index.vue.mjs +2 -2
  158. package/es/components/commons-weather/index.vue2.mjs +45 -44
  159. package/es/components/index.d.ts +1 -0
  160. package/es/components/index.mjs +16 -14
  161. package/es/components/interaction-input/index.vue.mjs +1 -1
  162. package/es/components/interaction-input/index.vue2.mjs +56 -55
  163. package/es/components/interaction-select/index.vue.mjs +1 -1
  164. package/es/components/interaction-select/index.vue2.mjs +83 -82
  165. package/es/components/interaction-slider/index.vue.mjs +2 -2
  166. package/es/components/interaction-slider/index.vue2.mjs +45 -44
  167. package/es/components/interaction-switch/index.vue.mjs +2 -2
  168. package/es/components/interaction-switch/index.vue2.mjs +31 -30
  169. package/es/components/interaction-tabs/index.vue.mjs +2 -2
  170. package/es/components/interaction-tabs/index.vue2.mjs +31 -30
  171. package/es/components/interaction-tabs2/index.vue.mjs +2 -2
  172. package/es/components/interaction-tabs2/index.vue2.mjs +31 -30
  173. package/es/components/map-earth-basic/index.vue.d.ts +4 -4
  174. package/es/components/map-earth-basic/index.vue.mjs +30 -29
  175. package/es/components/map-earth-cool-tech/index.vue.d.ts +0 -2
  176. package/es/components/map-earth-cool-tech/index.vue.mjs +30 -29
  177. package/es/components/map-earth-fly-line/index.vue.d.ts +4 -2
  178. package/es/components/map-earth-fly-line/index.vue.mjs +34 -33
  179. package/es/components/map-earth-hacker/index.vue.d.ts +4 -2
  180. package/es/components/map-earth-hacker/index.vue.mjs +29 -28
  181. package/es/components/map-earth-particle/index.vue.d.ts +4 -2
  182. package/es/components/map-earth-particle/index.vue.mjs +30 -29
  183. package/es/components/media-audio/index.vue.mjs +1 -1
  184. package/es/components/media-audio/index.vue2.mjs +49 -48
  185. package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
  186. package/es/components/media-audio-dynamic/index.vue2.mjs +58 -57
  187. package/es/components/media-flv/index.vue.mjs +40 -39
  188. package/es/components/media-iframe/index.vue.mjs +2 -2
  189. package/es/components/media-iframe/index.vue2.mjs +14 -13
  190. package/es/components/media-image-dynamic/index.vue.mjs +2 -2
  191. package/es/components/media-image-dynamic/index.vue2.mjs +23 -22
  192. package/es/components/media-m3u8/index.vue.mjs +39 -38
  193. package/es/components/media-m3u8-dynamic/index.vue.mjs +54 -53
  194. package/es/components/media-video/index.vue.mjs +1 -1
  195. package/es/components/media-video/index.vue2.mjs +38 -37
  196. package/es/components/media-video-dynamic/index.vue.mjs +1 -1
  197. package/es/components/media-video-dynamic/index.vue2.mjs +49 -48
  198. package/es/components/scene-amap2d/index.vue.mjs +1 -1
  199. package/es/components/scene-amap2d/index.vue2.mjs +107 -104
  200. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  201. package/es/components/scene-amap3d/index.vue2.mjs +95 -92
  202. package/es/components/scene-default/index.d.ts +39 -0
  203. package/es/components/scene-default/index.mjs +7 -0
  204. package/es/components/scene-default/index.vue.d.ts +40 -0
  205. package/es/components/scene-default/index.vue.mjs +7 -0
  206. package/es/components/scene-default/index.vue2.mjs +35 -0
  207. package/es/components/scene-map3d/index.d.ts +1 -1
  208. package/es/components/scene-map3d/index.vue.d.ts +1 -1
  209. package/es/components/scene-map3d/index.vue.mjs +2 -2
  210. package/es/components/scene-map3d/index.vue2.mjs +129 -126
  211. package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
  212. package/es/components/scene-ue-iframe/index.vue2.mjs +19 -18
  213. package/es/components/scene-ue-shj/index.vue.mjs +1 -1
  214. package/es/components/scene-ue-shj/index.vue2.mjs +14 -13
  215. package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
  216. package/es/components/scene-unity-iframe/index.vue2.mjs +19 -16
  217. package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
  218. package/es/components/scene-unity-webgl/index.vue2.mjs +16 -13
  219. package/es/components/scene-vr/index.vue.mjs +1 -1
  220. package/es/components/scene-vr/index.vue2.mjs +162 -159
  221. package/es/components/text-count-down/index.vue.mjs +1 -1
  222. package/es/components/text-count-down/index.vue2.mjs +34 -33
  223. package/es/components/text-over-number/index.vue.mjs +2 -2
  224. package/es/components/text-over-number/index.vue2.mjs +49 -48
  225. package/es/components/text-real-time/index.vue.mjs +2 -2
  226. package/es/components/text-real-time/index.vue2.mjs +26 -25
  227. package/es/components/text-row-scroll/index.vue.mjs +1 -1
  228. package/es/components/text-row-scroll/index.vue2.mjs +83 -82
  229. package/es/components/text-table-basic/index.vue.mjs +3 -3
  230. package/es/components/text-table-basic/index.vue2.mjs +97 -96
  231. package/es/components/text-table-scroll/index.vue.mjs +1 -1
  232. package/es/components/text-table-scroll/index.vue2.mjs +96 -95
  233. package/es/components/text-text-dynamic/index.vue.mjs +1 -1
  234. package/es/components/text-text-dynamic/index.vue2.mjs +29 -28
  235. package/es/env.d.ts +0 -2
  236. package/es/index.d.ts +3 -1
  237. package/es/index.mjs +351 -345
  238. package/es/widgets.css +1 -1
  239. package/lib/commons/core/useChart.js +1 -1
  240. package/lib/commons/{core → plugins}/datasource/index.js +1 -1
  241. package/lib/commons/plugins/datasource/utils/utils.js +1 -0
  242. package/lib/commons/plugins/event/actions/fullScreenAction.js +1 -0
  243. package/lib/commons/plugins/event/actions/invokeAction.js +1 -0
  244. package/lib/commons/plugins/event/actions/linkAction.js +1 -0
  245. package/lib/commons/plugins/event/actions/moveAction.js +1 -0
  246. package/lib/commons/plugins/event/actions/pageAction.js +1 -0
  247. package/lib/commons/plugins/event/actions/rotateAction.js +1 -0
  248. package/lib/commons/plugins/event/actions/scaleAction.js +1 -0
  249. package/lib/commons/plugins/event/actions/sendApiAction.js +1 -0
  250. package/lib/commons/plugins/event/actions/ueCommonsWebscoketAction.js +1 -0
  251. package/lib/commons/plugins/event/actions/ueShjExecMethodAction.js +1 -0
  252. package/lib/commons/plugins/event/actions/unityIframeExecMethodAction.js +1 -0
  253. package/lib/commons/plugins/event/actions/unityWebglExecMethodAction.js +1 -0
  254. package/lib/commons/plugins/event/actions/updatePageAction.js +1 -0
  255. package/lib/commons/plugins/event/actions/updateVariableAction.js +1 -0
  256. package/lib/commons/plugins/event/actions/updateWidgetAction.js +1 -0
  257. package/lib/commons/plugins/event/actions/vrSceneMethodAction.js +1 -0
  258. package/lib/commons/plugins/event/index.js +9 -0
  259. package/lib/commons/plugins/event/utils/utils.js +1 -0
  260. package/lib/commons/utils/getNextElement.js +1 -0
  261. package/lib/components/chart-bar-animation/index.vue.js +1 -1
  262. package/lib/components/chart-bar-basic/index.vue.js +1 -1
  263. package/lib/components/chart-bar-contrast/index.vue.js +1 -1
  264. package/lib/components/chart-bar-contrast2/index.vue.js +1 -1
  265. package/lib/components/chart-bar-contrast3/index.vue.js +1 -1
  266. package/lib/components/chart-bar-gradient-column-chart/index.vue.js +1 -1
  267. package/lib/components/chart-bar-horizontal/index.vue.js +1 -1
  268. package/lib/components/chart-bar-horizontal-stack/index.vue.js +1 -1
  269. package/lib/components/chart-bar-line-bar/index.vue.js +1 -1
  270. package/lib/components/chart-bar-line-bar2/index.vue.js +1 -1
  271. package/lib/components/chart-bar-loop/index.vue.js +1 -1
  272. package/lib/components/chart-bar-mini/index.vue.js +1 -1
  273. package/lib/components/chart-bar-polar/index.vue.js +1 -1
  274. package/lib/components/chart-bar-polar-stack/index.vue.js +1 -1
  275. package/lib/components/chart-bar-polar2/index.vue.js +1 -1
  276. package/lib/components/chart-bar-radius-circle/index.vue.js +1 -1
  277. package/lib/components/chart-bar-rank/index.vue.js +1 -1
  278. package/lib/components/chart-bar-segmented-progress/index.vue.js +1 -1
  279. package/lib/components/chart-bar-spire/index.vue.js +1 -1
  280. package/lib/components/chart-bar-stack/index.vue.js +1 -1
  281. package/lib/components/chart-bar-stack-line/index.vue.js +1 -1
  282. package/lib/components/chart-bar-stack2/index.vue.js +1 -1
  283. package/lib/components/chart-bar-stack3/index.vue.js +1 -1
  284. package/lib/components/chart-bar-staggered/index.vue.js +1 -1
  285. package/lib/components/chart-bar-three/index.vue.js +1 -1
  286. package/lib/components/chart-bar-waterfall/index.vue.js +1 -1
  287. package/lib/components/chart-bar-zebra/index.vue.js +1 -1
  288. package/lib/components/chart-line-area-gradient/index.vue.js +1 -1
  289. package/lib/components/chart-line-area-highlight/index.vue.js +1 -1
  290. package/lib/components/chart-line-area-highlight2/index.vue.js +1 -1
  291. package/lib/components/chart-line-basic/index.vue.js +1 -1
  292. package/lib/components/chart-line-bump/index.vue.js +1 -1
  293. package/lib/components/chart-line-dashed/index.vue.js +1 -1
  294. package/lib/components/chart-line-ladder/index.vue.js +1 -1
  295. package/lib/components/chart-line-logarithm/index.vue.js +1 -1
  296. package/lib/components/chart-line-multix/index.vue.js +1 -1
  297. package/lib/components/chart-line-polar-double/index.vue.js +1 -1
  298. package/lib/components/chart-line-rain-flow/index.vue.js +1 -1
  299. package/lib/components/chart-line-scale/index.vue.js +1 -1
  300. package/lib/components/chart-line-smooth/index.vue.js +1 -1
  301. package/lib/components/chart-line-smooth-area/index.vue.js +1 -1
  302. package/lib/components/chart-line-stack/index.vue.js +1 -1
  303. package/lib/components/chart-line-stack-area/index.vue.js +1 -1
  304. package/lib/components/chart-line-temp/index.vue.js +1 -1
  305. package/lib/components/chart-line-vertical/index.vue.js +1 -1
  306. package/lib/components/chart-map-basic/index.vue.js +1 -1
  307. package/lib/components/chart-map-bmap-basic/index.vue.js +1 -1
  308. package/lib/components/chart-map-bmap-heatmap/index.vue.js +1 -1
  309. package/lib/components/chart-map-bmap-rich/index.vue.js +1 -1
  310. package/lib/components/chart-map-customize/index.vue.js +1 -1
  311. package/lib/components/chart-map-lines/index.vue.js +1 -1
  312. package/lib/components/chart-map-scatter/index.vue.js +1 -1
  313. package/lib/components/chart-other-candlestick-basic/index.vue.js +1 -1
  314. package/lib/components/chart-other-candlestick-demo/index.vue.js +1 -1
  315. package/lib/components/chart-other-candlestick-shanghai/index.vue.js +1 -1
  316. package/lib/components/chart-other-circular-graph/index.vue.js +1 -1
  317. package/lib/components/chart-other-force/index.vue.js +1 -1
  318. package/lib/components/chart-other-force2/index.vue.js +1 -1
  319. package/lib/components/chart-other-funnel/index.vue.js +1 -1
  320. package/lib/components/chart-other-funnel-contrast/index.vue.js +1 -1
  321. package/lib/components/chart-other-funnel-split/index.vue.js +1 -1
  322. package/lib/components/chart-other-funnel2/index.vue.js +1 -1
  323. package/lib/components/chart-other-gauge/index.vue.js +1 -1
  324. package/lib/components/chart-other-gauge-grade/index.vue.js +1 -1
  325. package/lib/components/chart-other-gauge-stage/index.vue.js +1 -1
  326. package/lib/components/chart-other-graph-basic/index.vue.js +1 -1
  327. package/lib/components/chart-other-graph-basic2/index.vue.js +1 -1
  328. package/lib/components/chart-other-graph-calendar/index.vue.js +1 -1
  329. package/lib/components/chart-other-grid-percentage/index.vue.js +1 -1
  330. package/lib/components/chart-other-heatmap/index.vue.js +1 -1
  331. package/lib/components/chart-other-label-gauge/index.vue.js +1 -1
  332. package/lib/components/chart-other-liquidfill/index.vue.js +1 -1
  333. package/lib/components/chart-other-parallel-basic/index.vue.js +1 -1
  334. package/lib/components/chart-other-parallel-mul/index.vue.js +1 -1
  335. package/lib/components/chart-other-radar/index.vue.js +1 -1
  336. package/lib/components/chart-other-radar-stack/index.vue.js +1 -1
  337. package/lib/components/chart-other-sunburst-basic/index.vue.js +1 -1
  338. package/lib/components/chart-other-sunburst-basic2/index.vue.js +1 -1
  339. package/lib/components/chart-other-sunburst-basic3/index.vue.js +1 -1
  340. package/lib/components/chart-other-sunburst-basic4/index.vue.js +1 -1
  341. package/lib/components/chart-other-sunburst-book/index.vue.js +1 -1
  342. package/lib/components/chart-other-sunburst-flavors/index.vue.js +1 -1
  343. package/lib/components/chart-other-sunburst-radius/index.vue.js +1 -1
  344. package/lib/components/chart-other-theme-river/index.vue.js +1 -1
  345. package/lib/components/chart-other-tree/index.vue.js +1 -1
  346. package/lib/components/chart-other-tree-line/index.vue.js +1 -1
  347. package/lib/components/chart-other-treemap/index.vue.js +1 -1
  348. package/lib/components/chart-other-treemap-basic/index.vue.js +1 -1
  349. package/lib/components/chart-other-word-cloud/index.vue.js +1 -1
  350. package/lib/components/chart-pie-3d/index.vue.js +1 -1
  351. package/lib/components/chart-pie-basic/index.vue.js +1 -1
  352. package/lib/components/chart-pie-basic2/index.vue.js +1 -1
  353. package/lib/components/chart-pie-customized/index.vue.js +1 -1
  354. package/lib/components/chart-pie-index/index.vue.js +1 -1
  355. package/lib/components/chart-pie-interval/index.vue.js +1 -1
  356. package/lib/components/chart-pie-legend-scroll/index.vue.js +1 -1
  357. package/lib/components/chart-pie-radius/index.vue.js +1 -1
  358. package/lib/components/chart-pie-rose/index.vue.js +1 -1
  359. package/lib/components/chart-pie-round/index.vue.js +1 -1
  360. package/lib/components/chart-pie-semicircle/index.vue.js +1 -1
  361. package/lib/components/chart-pie-sunburst/index.vue.js +1 -1
  362. package/lib/components/chart-scatter-basic/index.vue.js +1 -1
  363. package/lib/components/chart-scatter-basic2/index.vue.js +1 -1
  364. package/lib/components/chart-scatter-bubble/index.vue.js +1 -1
  365. package/lib/components/chart-scatter-ripples/index.vue.js +1 -1
  366. package/lib/components/commons-echarts/compileAndRunEcharts.js +6 -6
  367. package/lib/components/commons-loop-iterator/index.vue.js +1 -1
  368. package/lib/components/commons-loop-iterator/index.vue2.js +1 -1
  369. package/lib/components/commons-product-model/index.vue.js +1 -1
  370. package/lib/components/commons-product-model/index.vue2.js +1 -1
  371. package/lib/components/commons-three-loader/index.vue.js +1 -1
  372. package/lib/components/commons-three-loader/index.vue2.js +1 -1
  373. package/lib/components/commons-three-loader3/index.vue.js +1 -1
  374. package/lib/components/commons-three-loader3/index.vue2.js +1 -1
  375. package/lib/components/commons-weather/index.vue.js +1 -1
  376. package/lib/components/commons-weather/index.vue2.js +1 -1
  377. package/lib/components/index.js +1 -1
  378. package/lib/components/interaction-input/index.vue.js +1 -1
  379. package/lib/components/interaction-input/index.vue2.js +1 -1
  380. package/lib/components/interaction-select/index.vue.js +1 -1
  381. package/lib/components/interaction-select/index.vue2.js +1 -1
  382. package/lib/components/interaction-slider/index.vue.js +1 -1
  383. package/lib/components/interaction-slider/index.vue2.js +1 -1
  384. package/lib/components/interaction-switch/index.vue.js +1 -1
  385. package/lib/components/interaction-switch/index.vue2.js +1 -1
  386. package/lib/components/interaction-tabs/index.vue.js +1 -1
  387. package/lib/components/interaction-tabs/index.vue2.js +1 -1
  388. package/lib/components/interaction-tabs2/index.vue.js +1 -1
  389. package/lib/components/interaction-tabs2/index.vue2.js +1 -1
  390. package/lib/components/map-earth-basic/index.vue.js +1 -1
  391. package/lib/components/map-earth-cool-tech/index.vue.js +1 -1
  392. package/lib/components/map-earth-fly-line/index.vue.js +1 -1
  393. package/lib/components/map-earth-hacker/index.vue.js +1 -1
  394. package/lib/components/map-earth-particle/index.vue.js +1 -1
  395. package/lib/components/media-audio/index.vue.js +1 -1
  396. package/lib/components/media-audio/index.vue2.js +1 -1
  397. package/lib/components/media-audio-dynamic/index.vue.js +1 -1
  398. package/lib/components/media-audio-dynamic/index.vue2.js +1 -1
  399. package/lib/components/media-flv/index.vue.js +1 -1
  400. package/lib/components/media-iframe/index.vue.js +1 -1
  401. package/lib/components/media-iframe/index.vue2.js +1 -1
  402. package/lib/components/media-image-dynamic/index.vue.js +1 -1
  403. package/lib/components/media-image-dynamic/index.vue2.js +1 -1
  404. package/lib/components/media-m3u8/index.vue.js +1 -1
  405. package/lib/components/media-m3u8-dynamic/index.vue.js +1 -1
  406. package/lib/components/media-video/index.vue.js +1 -1
  407. package/lib/components/media-video/index.vue2.js +1 -1
  408. package/lib/components/media-video-dynamic/index.vue.js +1 -1
  409. package/lib/components/media-video-dynamic/index.vue2.js +1 -1
  410. package/lib/components/scene-amap2d/index.vue.js +1 -1
  411. package/lib/components/scene-amap2d/index.vue2.js +1 -1
  412. package/lib/components/scene-amap3d/index.vue.js +1 -1
  413. package/lib/components/scene-amap3d/index.vue2.js +4 -4
  414. package/lib/components/scene-default/index.js +1 -0
  415. package/lib/components/scene-default/index.vue.js +1 -0
  416. package/lib/components/scene-default/index.vue2.js +1 -0
  417. package/lib/components/scene-map3d/index.vue.js +1 -1
  418. package/lib/components/scene-map3d/index.vue2.js +1 -1
  419. package/lib/components/scene-ue-iframe/index.vue.js +1 -1
  420. package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
  421. package/lib/components/scene-ue-shj/index.vue.js +1 -1
  422. package/lib/components/scene-ue-shj/index.vue2.js +1 -1
  423. package/lib/components/scene-unity-iframe/index.vue.js +1 -1
  424. package/lib/components/scene-unity-iframe/index.vue2.js +1 -1
  425. package/lib/components/scene-unity-webgl/index.vue.js +1 -1
  426. package/lib/components/scene-unity-webgl/index.vue2.js +1 -1
  427. package/lib/components/scene-vr/index.vue.js +1 -1
  428. package/lib/components/scene-vr/index.vue2.js +2 -2
  429. package/lib/components/text-count-down/index.vue.js +1 -1
  430. package/lib/components/text-count-down/index.vue2.js +1 -1
  431. package/lib/components/text-over-number/index.vue.js +1 -1
  432. package/lib/components/text-over-number/index.vue2.js +1 -1
  433. package/lib/components/text-real-time/index.vue.js +1 -1
  434. package/lib/components/text-real-time/index.vue2.js +1 -1
  435. package/lib/components/text-row-scroll/index.vue.js +1 -1
  436. package/lib/components/text-row-scroll/index.vue2.js +1 -1
  437. package/lib/components/text-table-basic/index.vue.js +1 -1
  438. package/lib/components/text-table-basic/index.vue2.js +1 -1
  439. package/lib/components/text-table-scroll/index.vue.js +1 -1
  440. package/lib/components/text-table-scroll/index.vue2.js +1 -1
  441. package/lib/components/text-text-dynamic/index.vue.js +1 -1
  442. package/lib/components/text-text-dynamic/index.vue2.js +1 -1
  443. package/lib/index.js +1 -1
  444. package/lib/widgets.css +1 -1
  445. package/package.json +1 -1
  446. package/es/commons/core/datasource/utils/utils.d.ts +0 -50
  447. package/es/commons/core/datasource/utils/utils.mjs +0 -123
  448. package/lib/commons/core/datasource/utils/utils.js +0 -1
  449. /package/es/commons/{core → plugins}/datasource/index.d.ts +0 -0
  450. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.d.ts +0 -0
  451. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/api.mjs +0 -0
  452. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.d.ts +0 -0
  453. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/static.mjs +0 -0
  454. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.d.ts +0 -0
  455. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/url.mjs +0 -0
  456. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.d.ts +0 -0
  457. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/variable.mjs +0 -0
  458. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.d.ts +0 -0
  459. /package/es/commons/{core/datasource/core → plugins/datasource/sources}/ws.mjs +0 -0
  460. /package/es/commons/{core → plugins}/datasource/utils/axios.d.ts +0 -0
  461. /package/es/commons/{core → plugins}/datasource/utils/axios.mjs +0 -0
  462. /package/es/commons/{core → plugins}/datasource/utils/request.d.ts +0 -0
  463. /package/es/commons/{core → plugins}/datasource/utils/request.mjs +0 -0
  464. /package/es/commons/{core → plugins}/datasource/utils/wsManager.d.ts +0 -0
  465. /package/es/commons/{core → plugins}/datasource/utils/wsManager.mjs +0 -0
  466. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/api.js +0 -0
  467. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/static.js +0 -0
  468. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/url.js +0 -0
  469. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/variable.js +0 -0
  470. /package/lib/commons/{core/datasource/core → plugins/datasource/sources}/ws.js +0 -0
  471. /package/lib/commons/{core → plugins}/datasource/utils/axios.js +0 -0
  472. /package/lib/commons/{core → plugins}/datasource/utils/request.js +0 -0
  473. /package/lib/commons/{core → plugins}/datasource/utils/wsManager.js +0 -0
@@ -1,11 +1,12 @@
1
- import { defineComponent as m, watch as p, ref as u, createElementBlock as b, openBlock as x, unref as d, withDirectives as O, createElementVNode as r, vShow as V, normalizeClass as F, createStaticVNode as B, onMounted as T, nextTick as z } from "vue";
2
- import { nanoid as G } from "nanoid";
3
- import { cloneDeep as v, isEqual as f } from "lodash";
4
- import { SHJDatasourceV2 as M } from "../../commons/core/datasource/index.mjs";
5
- const N = ["autoplay", "loop", "muted"], R = ["src"], U = /* @__PURE__ */ B('<svg width="100%" height="100%" viewBox="0 0 75 75" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-60a50fa1><circle cx="37.5" cy="37.5" r="37.5" fill="#3D9CFF" fill-opacity="0.1" data-v-60a50fa1></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M51.3268 20.4054H33.1254C32.2255 20.4 31.3554 20.728 30.6832 21.3264C30.0109 21.9247 29.5841 22.7508 29.4852 23.6453L27.0161 44.2762C26.1001 43.746 25.053 43.4598 23.9763 43.4598C22.3672 43.4598 20.824 44.099 19.6862 45.2368C18.5484 46.3746 17.9092 47.9178 17.9092 49.5269C17.9092 51.136 18.5484 52.6792 19.6862 53.817C20.824 54.9548 22.3672 55.594 23.9763 55.594C25.5854 55.594 27.1286 54.9548 28.2664 53.817C29.3529 52.7305 29.9848 51.2743 30.0395 49.744L30.0555 49.746L32.361 31.3141H50.5623L48.8975 44.2994C47.9722 43.7543 46.9103 43.4598 45.818 43.4598C44.2089 43.4598 42.6657 44.099 41.5279 45.2368C40.3901 46.3746 39.7509 47.9178 39.7509 49.5269C39.7509 51.136 40.3901 52.6792 41.5279 53.817C42.6657 54.9548 44.2089 55.594 45.818 55.594C47.4271 55.594 48.9703 54.9548 50.1081 53.817C51.1946 52.7305 51.8265 51.2743 51.8812 49.744L51.8971 49.746L54.9792 24.434C55.034 23.9233 54.9801 23.4069 54.8211 22.9185C54.6621 22.4301 54.4015 21.981 54.0566 21.6005C53.7116 21.22 53.29 20.9168 52.8196 20.7108C52.3491 20.5049 51.8403 20.4008 51.3268 20.4054Z" fill="url(#paint0_linear_534:1941)" data-v-60a50fa1></path><defs data-v-60a50fa1><linearGradient id="paint0_linear_534:1941" x1="17.9092" y1="37.9996" x2="56.4836" y2="37.9996" gradientUnits="userSpaceOnUse" data-v-60a50fa1><stop stop-color="#3D9CFF" data-v-60a50fa1></stop><stop offset="1" stop-color="#43E8F3" data-v-60a50fa1></stop></linearGradient></defs></svg>', 1), q = [
6
- U
7
- ], I = m({ name: "zv-media-audio-dynamic" }), X = /* @__PURE__ */ m({
8
- ...I,
1
+ import { defineComponent as y, watch as v, ref as r, createElementBlock as F, openBlock as S, unref as d, withDirectives as H, createElementVNode as l, vShow as B, normalizeClass as T, createStaticVNode as z, onMounted as G, nextTick as J } from "vue";
2
+ import { nanoid as M } from "nanoid";
3
+ import { cloneDeep as f, isEqual as m } from "lodash";
4
+ import { SHJDatasourceV2 as N } from "../../commons/plugins/datasource/index.mjs";
5
+ import { SHJParseEvent as a } from "../../commons/plugins/event/index.mjs";
6
+ const R = ["autoplay", "loop", "muted"], U = ["src"], q = /* @__PURE__ */ z('<svg width="100%" height="100%" viewBox="0 0 75 75" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-6c497752><circle cx="37.5" cy="37.5" r="37.5" fill="#3D9CFF" fill-opacity="0.1" data-v-6c497752></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M51.3268 20.4054H33.1254C32.2255 20.4 31.3554 20.728 30.6832 21.3264C30.0109 21.9247 29.5841 22.7508 29.4852 23.6453L27.0161 44.2762C26.1001 43.746 25.053 43.4598 23.9763 43.4598C22.3672 43.4598 20.824 44.099 19.6862 45.2368C18.5484 46.3746 17.9092 47.9178 17.9092 49.5269C17.9092 51.136 18.5484 52.6792 19.6862 53.817C20.824 54.9548 22.3672 55.594 23.9763 55.594C25.5854 55.594 27.1286 54.9548 28.2664 53.817C29.3529 52.7305 29.9848 51.2743 30.0395 49.744L30.0555 49.746L32.361 31.3141H50.5623L48.8975 44.2994C47.9722 43.7543 46.9103 43.4598 45.818 43.4598C44.2089 43.4598 42.6657 44.099 41.5279 45.2368C40.3901 46.3746 39.7509 47.9178 39.7509 49.5269C39.7509 51.136 40.3901 52.6792 41.5279 53.817C42.6657 54.9548 44.2089 55.594 45.818 55.594C47.4271 55.594 48.9703 54.9548 50.1081 53.817C51.1946 52.7305 51.8265 51.2743 51.8812 49.744L51.8971 49.746L54.9792 24.434C55.034 23.9233 54.9801 23.4069 54.8211 22.9185C54.6621 22.4301 54.4015 21.981 54.0566 21.6005C53.7116 21.22 53.29 20.9168 52.8196 20.7108C52.3491 20.5049 51.8403 20.4008 51.3268 20.4054Z" fill="url(#paint0_linear_534:1941)" data-v-6c497752></path><defs data-v-6c497752><linearGradient id="paint0_linear_534:1941" x1="17.9092" y1="37.9996" x2="56.4836" y2="37.9996" gradientUnits="userSpaceOnUse" data-v-6c497752><stop stop-color="#3D9CFF" data-v-6c497752></stop><stop offset="1" stop-color="#43E8F3" data-v-6c497752></stop></linearGradient></defs></svg>', 1), I = [
7
+ q
8
+ ], Z = y({ name: "zv-media-audio-dynamic" }), $ = /* @__PURE__ */ y({
9
+ ...Z,
9
10
  props: {
10
11
  basicOption: {},
11
12
  sources: {},
@@ -22,91 +23,91 @@ const N = ["autoplay", "loop", "muted"], R = ["src"], U = /* @__PURE__ */ B('<sv
22
23
  "on-audio-error",
23
24
  "on-audio-volumechange"
24
25
  ],
25
- setup(y, { expose: w, emit: E }) {
26
- const e = y, C = () => {
27
- const o = u(""), s = u(G()), D = u(!1), l = () => {
28
- M.parse({
26
+ setup(E, { expose: C, emit: h }) {
27
+ const e = E, g = () => {
28
+ const o = r(""), t = r(M()), V = r(!1), c = () => {
29
+ N.parse({
29
30
  tId: e.uuid,
30
31
  sources: e.sources,
31
- callback: ({ data: c }) => {
32
+ callback: ({ data: p }) => {
32
33
  try {
33
- window.SHJParseEvent(e.useEvents, "dataListener", c), o.value = c[0].data[0].src;
34
+ a.parseEvents(e.useEvents, "dataListener", p), o.value = p[0].data[0].src;
34
35
  } catch {
35
- window.SHJParseEvent(e.useEvents, "dataListener", null);
36
+ a.parseEvents(e.useEvents, "dataListener", null);
36
37
  }
37
38
  }
38
39
  });
39
40
  };
40
- return T(() => z(() => l())), { init: l, src: o, key: s, isAudioPlay: D };
41
- }, { init: i, src: h, key: g, isAudioPlay: n } = C();
42
- p(() => v(e.basicOption), (o, s) => {
43
- f(o, s) || i();
41
+ return G(() => J(() => c())), { init: c, src: o, key: t, isAudioPlay: V };
42
+ }, { init: i, src: _, key: P, isAudioPlay: n } = g();
43
+ v(() => f(e.basicOption), (o, t) => {
44
+ m(o, t) || i();
44
45
  }, {
45
46
  deep: !0
46
- }), p(() => v(e.sources), (o, s) => {
47
- f(o, s) || i();
47
+ }), v(() => f(e.sources), (o, t) => {
48
+ m(o, t) || i();
48
49
  }, { deep: !0 });
49
- const t = u(), a = E, P = () => {
50
- a("on-audio-progress"), window.SHJParseEvent(e.useEvents, "on-audio-progress"), n.value = !0;
51
- }, _ = () => {
52
- a("on-audio-play"), window.SHJParseEvent(e.useEvents, "on-audio-play"), n.value = !0;
53
- }, S = () => {
54
- a("on-audio-pause"), window.SHJParseEvent(e.useEvents, "on-audio-pause"), n.value = !1;
55
- }, H = () => {
56
- a("on-audio-ended"), window.SHJParseEvent(e.useEvents, "on-audio-ended"), n.value = !1;
57
- }, A = () => {
58
- a("on-audio-playing"), window.SHJParseEvent(e.useEvents, "on-audio-playing");
59
- }, J = () => {
60
- a("on-audio-timeupdate"), window.SHJParseEvent(e.useEvents, "on-audio-timeupdate");
50
+ const u = r(), s = h, A = () => {
51
+ s("on-audio-progress"), a.parseEvents(e.useEvents, "on-audio-progress"), n.value = !0;
52
+ }, w = () => {
53
+ s("on-audio-play"), a.parseEvents(e.useEvents, "on-audio-play"), n.value = !0;
61
54
  }, k = () => {
62
- a("on-audio-error"), window.SHJParseEvent(e.useEvents, "on-audio-error"), n.value = !1;
55
+ s("on-audio-pause"), a.parseEvents(e.useEvents, "on-audio-pause"), n.value = !1;
63
56
  }, L = () => {
64
- a("on-audio-volumechange"), window.SHJParseEvent(e.useEvents, "on-audio-volumechange");
57
+ s("on-audio-ended"), a.parseEvents(e.useEvents, "on-audio-ended"), n.value = !1;
58
+ }, D = () => {
59
+ s("on-audio-playing"), a.parseEvents(e.useEvents, "on-audio-playing");
60
+ }, b = () => {
61
+ s("on-audio-timeupdate"), a.parseEvents(e.useEvents, "on-audio-timeupdate");
62
+ }, x = () => {
63
+ s("on-audio-error"), a.parseEvents(e.useEvents, "on-audio-error"), n.value = !1;
64
+ }, O = () => {
65
+ s("on-audio-volumechange"), a.parseEvents(e.useEvents, "on-audio-volumechange");
65
66
  };
66
- return w({
67
+ return C({
67
68
  /** 开始播放 */
68
69
  play: () => {
69
- t.value && t.value.play();
70
+ u.value && u.value.play();
70
71
  },
71
72
  /** 暂停播放 */
72
73
  pause: () => {
73
- t.value && t.value.pause();
74
+ u.value && u.value.pause();
74
75
  },
75
76
  refresh: () => i(),
76
77
  refreshView: () => i(),
77
78
  refreshData: () => i()
78
- }), (o, s) => (x(), b("div", {
79
- key: d(g),
79
+ }), (o, t) => (S(), F("div", {
80
+ key: d(P),
80
81
  class: "audio"
81
82
  }, [
82
- O(r("audio", {
83
+ H(l("audio", {
83
84
  ref_key: "audioRef",
84
- ref: t,
85
+ ref: u,
85
86
  autoplay: o.basicOption.autoplay,
86
87
  loop: o.basicOption.loop,
87
88
  controls: !1,
88
89
  muted: o.basicOption.muted,
89
- onProgress: P,
90
- onPlay: _,
91
- onEnded: H,
92
- onPlaying: A,
93
- onPause: S,
94
- onTimeupdate: J,
95
- onError: k,
96
- onVolumechange: L
90
+ onProgress: A,
91
+ onPlay: w,
92
+ onEnded: L,
93
+ onPlaying: D,
94
+ onPause: k,
95
+ onTimeupdate: b,
96
+ onError: x,
97
+ onVolumechange: O
97
98
  }, [
98
- r("source", { src: d(h) }, null, 8, R)
99
- ], 40, N), [
100
- [V, !1]
99
+ l("source", { src: d(_) }, null, 8, U)
100
+ ], 40, R), [
101
+ [B, !1]
101
102
  ]),
102
- r("div", {
103
- class: F(["audio-svg", {
103
+ l("div", {
104
+ class: T(["audio-svg", {
104
105
  animation: d(n)
105
106
  }])
106
- }, q, 2)
107
+ }, I, 2)
107
108
  ]));
108
109
  }
109
110
  });
110
111
  export {
111
- X as default
112
+ $ as default
112
113
  };
@@ -1,8 +1,9 @@
1
- import { defineComponent as r, watch as h, createElementBlock as b, openBlock as O, ref as S, onMounted as H } from "vue";
2
- import { cloneDeep as J, isEqual as _ } from "lodash";
1
+ import { defineComponent as p, watch as O, createElementBlock as _, openBlock as F, ref as R, onMounted as k } from "vue";
2
+ import { cloneDeep as w, isEqual as z } from "lodash";
3
3
  import d from "flv.js";
4
- const F = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv-media-flv" }), M = /* @__PURE__ */ r({
5
- ...R,
4
+ import { SHJParseEvent as s } from "../../commons/plugins/event/index.mjs";
5
+ const B = ["poster", "autoplay", "controls", "loop", "muted"], M = p({ name: "zv-media-flv" }), C = /* @__PURE__ */ p({
6
+ ...M,
6
7
  props: {
7
8
  basicOption: {},
8
9
  sources: {},
@@ -18,42 +19,42 @@ const F = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
18
19
  "on-video-error",
19
20
  "on-video-volumechange"
20
21
  ],
21
- setup(v, { expose: p, emit: l }) {
22
- const e = v, u = () => {
23
- const o = S(), s = (a) => {
24
- if (a && d.isSupported())
22
+ setup(v, { expose: l, emit: u }) {
23
+ const e = v, c = () => {
24
+ const o = R(), t = (r) => {
25
+ if (r && d.isSupported())
25
26
  try {
26
- const t = d.createPlayer({
27
+ const a = d.createPlayer({
27
28
  type: "flv",
28
- url: a
29
+ url: r
29
30
  });
30
- t.attachMediaElement(o.value), t.load(), e.basicOption.autoplay && t.play();
31
+ a.attachMediaElement(o.value), a.load(), e.basicOption.autoplay && a.play();
31
32
  } catch {
32
33
  }
33
34
  };
34
- return H(() => s(e.basicOption.src)), { videoRef: o, initFlvVideo: s };
35
- }, { videoRef: i, initFlvVideo: c } = u();
36
- h(() => J(e.basicOption), (o, s) => {
37
- _(o, s) || c(o.src);
35
+ return k(() => t(e.basicOption.src)), { videoRef: o, initFlvVideo: t };
36
+ }, { videoRef: i, initFlvVideo: m } = c();
37
+ O(() => w(e.basicOption), (o, t) => {
38
+ z(o, t) || m(o.src);
38
39
  }, { deep: !0 });
39
- const n = l, m = () => {
40
- n("on-video-progress"), window.SHJParseEvent(e.useEvents, "on-video-progress");
41
- }, f = () => {
42
- n("on-video-play"), window.SHJParseEvent(e.useEvents, "on-video-play");
40
+ const n = u, f = () => {
41
+ n("on-video-progress"), s.parseEvents(e.useEvents, "on-video-progress");
43
42
  }, E = () => {
44
- n("on-video-pause"), window.SHJParseEvent(e.useEvents, "on-video-pause");
43
+ n("on-video-play"), s.parseEvents(e.useEvents, "on-video-play");
45
44
  }, y = () => {
46
- n("on-video-ended"), window.SHJParseEvent(e.useEvents, "on-video-ended");
47
- }, P = () => {
48
- n("on-video-playing"), window.SHJParseEvent(e.useEvents, "on-video-playing");
49
- }, w = () => {
50
- n("on-video-timeupdate"), window.SHJParseEvent(e.useEvents, "on-video-timeupdate");
45
+ n("on-video-pause"), s.parseEvents(e.useEvents, "on-video-pause");
51
46
  }, g = () => {
52
- n("on-video-error"), window.SHJParseEvent(e.useEvents, "on-video-error");
47
+ n("on-video-ended"), s.parseEvents(e.useEvents, "on-video-ended");
53
48
  }, V = () => {
54
- n("on-video-volumechange"), window.SHJParseEvent(e.useEvents, "on-video-volumechange");
49
+ n("on-video-playing"), s.parseEvents(e.useEvents, "on-video-playing");
50
+ }, P = () => {
51
+ n("on-video-timeupdate"), s.parseEvents(e.useEvents, "on-video-timeupdate");
52
+ }, h = () => {
53
+ n("on-video-error"), s.parseEvents(e.useEvents, "on-video-error");
54
+ }, b = () => {
55
+ n("on-video-volumechange"), s.parseEvents(e.useEvents, "on-video-volumechange");
55
56
  };
56
- return p({
57
+ return l({
57
58
  /** 开始播放 */
58
59
  play: () => {
59
60
  i.value && i.value.play();
@@ -62,7 +63,7 @@ const F = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
62
63
  pause: () => {
63
64
  i.value && i.value.pause();
64
65
  }
65
- }), (o, s) => (O(), b("video", {
66
+ }), (o, t) => (F(), _("video", {
66
67
  ref_key: "videoRef",
67
68
  ref: i,
68
69
  class: "zerov-widget",
@@ -71,17 +72,17 @@ const F = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
71
72
  controls: o.basicOption.controls,
72
73
  loop: o.basicOption.loop,
73
74
  muted: o.basicOption.muted,
74
- onProgress: m,
75
- onPlay: f,
76
- onEnded: y,
77
- onPlaying: P,
78
- onPause: E,
79
- onTimeupdate: w,
80
- onError: g,
81
- onVolumechange: V
82
- }, null, 40, F));
75
+ onProgress: f,
76
+ onPlay: E,
77
+ onEnded: g,
78
+ onPlaying: V,
79
+ onPause: y,
80
+ onTimeupdate: P,
81
+ onError: h,
82
+ onVolumechange: b
83
+ }, null, 40, B));
83
84
  }
84
85
  });
85
86
  export {
86
- M as default
87
+ C as default
87
88
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d6e1c78"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ed1339a9"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,30 +1,31 @@
1
- import { defineComponent as a, ref as m, createElementBlock as c, openBlock as f } from "vue";
1
+ import { defineComponent as a, ref as l, createElementBlock as f, openBlock as c } from "vue";
2
2
  import { isArray as p } from "lodash";
3
- const d = ["src"], u = a({ name: "zv-media-iframe" }), w = /* @__PURE__ */ a({
4
- ...u,
3
+ import { SHJParseEvent as d } from "../../commons/plugins/event/index.mjs";
4
+ const u = ["src"], v = a({ name: "zv-media-iframe" }), b = /* @__PURE__ */ a({
5
+ ...v,
5
6
  props: {
6
7
  basicOption: {},
7
8
  sceneOption: {},
8
9
  useEvents: {}
9
10
  },
10
11
  emits: ["on-iframe-event-listener"],
11
- setup(o, { expose: i, emit: r }) {
12
- const n = m(), s = o, l = r;
12
+ setup(o, { expose: r, emit: i }) {
13
+ const t = l(), s = o, m = i;
13
14
  return window.addEventListener("message", (e) => {
14
- l("on-iframe-event-listener", e.data), s.useEvents && p(s.useEvents) && window.SHJParseEvent(s.useEvents, "on-iframe-event-listener", e.data);
15
- }, !1), i({
16
- sendChildrenMessages: (e, t) => {
17
- e[0].dataType === "params" ? n.value.contentWindow.postMessage(t, s.basicOption.url) : n.value.contentWindow.postMessage(e[0].data, s.basicOption.url);
15
+ m("on-iframe-event-listener", e.data), s.useEvents && p(s.useEvents) && d.parseEvents(s.useEvents, "on-iframe-event-listener", e.data);
16
+ }, !1), r({
17
+ sendChildrenMessages: (e, n) => {
18
+ e[0].dataType === "params" ? t.value.contentWindow.postMessage(n, s.basicOption.url) : t.value.contentWindow.postMessage(e[0].data, s.basicOption.url);
18
19
  }
19
- }), (e, t) => (f(), c("iframe", {
20
+ }), (e, n) => (c(), f("iframe", {
20
21
  ref_key: "iframeRef",
21
- ref: n,
22
+ ref: t,
22
23
  src: e.basicOption.url,
23
24
  class: "iframe",
24
25
  sandbox: "allow-scripts allow-same-origin allow-forms"
25
- }, null, 8, d));
26
+ }, null, 8, u));
26
27
  }
27
28
  });
28
29
  export {
29
- w as default
30
+ b as default
30
31
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0b7db26e"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1cba2727"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,41 +1,42 @@
1
- import { defineComponent as a, watch as p, createElementBlock as d, openBlock as m, normalizeStyle as l, unref as f, ref as b, onMounted as g, nextTick as k } from "vue";
2
- import { cloneDeep as v, isEqual as _ } from "lodash";
3
- import { SHJDatasourceV2 as E } from "../../commons/core/datasource/index.mjs";
4
- const h = a({ name: "zv-media-image-dynamic" }), x = /* @__PURE__ */ a({
5
- ...h,
1
+ import { defineComponent as o, watch as m, createElementBlock as d, openBlock as l, normalizeStyle as f, unref as v, ref as b, onMounted as g, nextTick as k } from "vue";
2
+ import { cloneDeep as E, isEqual as _ } from "lodash";
3
+ import { SHJDatasourceV2 as h } from "../../commons/plugins/datasource/index.mjs";
4
+ import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
5
+ const y = o({ name: "zv-media-image-dynamic" }), O = /* @__PURE__ */ o({
6
+ ...y,
6
7
  props: {
7
8
  basicOption: {},
8
9
  sources: {},
9
10
  useEvents: {},
10
11
  uuid: {}
11
12
  },
12
- setup(o, { expose: c }) {
13
- const e = o, i = () => {
13
+ setup(c, { expose: i }) {
14
+ const e = c, u = () => {
14
15
  const r = b(""), t = () => {
15
- E.parse({
16
+ h.parse({
16
17
  tId: e.uuid,
17
18
  sources: e.sources,
18
- callback: ({ data: s }) => {
19
+ callback: ({ data: a }) => {
19
20
  try {
20
- window.SHJParseEvent(e.useEvents, "dataListener", s), r.value = s[0].data[0].src;
21
+ n.parseEvents(e.useEvents, "dataListener", a), r.value = a[0].data[0].src;
21
22
  } catch {
22
- window.SHJParseEvent(e.useEvents, "dataListener", null);
23
+ n.parseEvents(e.useEvents, "dataListener", null);
23
24
  }
24
25
  }
25
26
  });
26
27
  };
27
28
  return g(() => k(() => t())), { init: t, src: r };
28
- }, { init: n, src: u } = i();
29
- return p(() => v(e.sources), (r, t) => {
30
- _(r, t) || n();
31
- }, { deep: !0 }), c({
32
- refresh: () => n(),
33
- refreshView: () => n(),
34
- refreshData: () => n()
35
- }), (r, t) => (m(), d("div", {
29
+ }, { init: s, src: p } = u();
30
+ return m(() => E(e.sources), (r, t) => {
31
+ _(r, t) || s();
32
+ }, { deep: !0 }), i({
33
+ refresh: () => s(),
34
+ refreshView: () => s(),
35
+ refreshData: () => s()
36
+ }), (r, t) => (l(), d("div", {
36
37
  class: "zerov-image",
37
- style: l({
38
- backgroundImage: `url('${f(u)}')`,
38
+ style: f({
39
+ backgroundImage: `url('${v(p)}')`,
39
40
  ...e.basicOption.mode === "repeat" ? {
40
41
  backgroundRepeat: "repeat",
41
42
  backgroundSize: "auto"
@@ -48,5 +49,5 @@ const h = a({ name: "zv-media-image-dynamic" }), x = /* @__PURE__ */ a({
48
49
  }
49
50
  });
50
51
  export {
51
- x as default
52
+ O as default
52
53
  };
@@ -1,8 +1,9 @@
1
- import { defineComponent as r, watch as S, createElementBlock as h, openBlock as b, ref as H, onMounted as O } from "vue";
1
+ import { defineComponent as r, watch as O, createElementBlock as M, openBlock as _, ref as R, onMounted as S } from "vue";
2
2
  import d from "hls.js";
3
- import { cloneDeep as J, isEqual as M } from "lodash";
4
- const _ = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv-media-m3u8" }), A = /* @__PURE__ */ r({
5
- ...R,
3
+ import { cloneDeep as T, isEqual as k } from "lodash";
4
+ import { SHJParseEvent as s } from "../../commons/plugins/event/index.mjs";
5
+ const w = ["poster", "autoplay", "controls", "loop", "muted"], z = r({ name: "zv-media-m3u8" }), q = /* @__PURE__ */ r({
6
+ ...z,
6
7
  props: {
7
8
  basicOption: {},
8
9
  sources: {},
@@ -18,40 +19,40 @@ const _ = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
18
19
  "on-video-error",
19
20
  "on-video-volumechange"
20
21
  ],
21
- setup(p, { expose: v, emit: u }) {
22
- const o = p, l = () => {
23
- const e = H(), s = (t) => {
24
- if (t)
22
+ setup(v, { expose: u, emit: l }) {
23
+ const o = v, c = () => {
24
+ const e = R(), t = (a) => {
25
+ if (a)
25
26
  if (d.isSupported()) {
26
- const a = new d();
27
- a.loadSource(t), a.attachMedia(e.value), a.on(d.Events.MANIFEST_PARSED, () => {
27
+ const p = new d();
28
+ p.loadSource(a), p.attachMedia(e.value), p.on(d.Events.MANIFEST_PARSED, () => {
28
29
  o.basicOption.autoplay && e.value.play();
29
30
  });
30
- } else e.value.canPlayType("application/vnd.apple.mpegurl") && (e.value.src = t);
31
+ } else e.value.canPlayType("application/vnd.apple.mpegurl") && (e.value.src = a);
31
32
  };
32
- return O(() => s(o.basicOption.src)), { videoRef: e, initM3u8Video: s };
33
- }, { videoRef: i, initM3u8Video: c } = l();
34
- S(() => J(o.basicOption), (e, s) => {
35
- M(e, s) || c(e.src);
33
+ return S(() => t(o.basicOption.src)), { videoRef: e, initM3u8Video: t };
34
+ }, { videoRef: i, initM3u8Video: m } = c();
35
+ O(() => T(o.basicOption), (e, t) => {
36
+ k(e, t) || m(e.src);
36
37
  }, { deep: !0 });
37
- const n = u, m = () => {
38
- n("on-video-progress"), window.SHJParseEvent(o.useEvents, "on-video-progress");
39
- }, E = () => {
40
- n("on-video-play"), window.SHJParseEvent(o.useEvents, "on-video-play");
38
+ const n = l, E = () => {
39
+ n("on-video-progress"), s.parseEvents(o.useEvents, "on-video-progress");
41
40
  }, f = () => {
42
- n("on-video-pause"), window.SHJParseEvent(o.useEvents, "on-video-pause");
41
+ n("on-video-play"), s.parseEvents(o.useEvents, "on-video-play");
43
42
  }, y = () => {
44
- n("on-video-ended"), window.SHJParseEvent(o.useEvents, "on-video-ended");
45
- }, w = () => {
46
- n("on-video-playing"), window.SHJParseEvent(o.useEvents, "on-video-playing");
47
- }, P = () => {
48
- n("on-video-timeupdate"), window.SHJParseEvent(o.useEvents, "on-video-timeupdate");
43
+ n("on-video-pause"), s.parseEvents(o.useEvents, "on-video-pause");
49
44
  }, g = () => {
50
- n("on-video-error"), window.SHJParseEvent(o.useEvents, "on-video-error");
45
+ n("on-video-ended"), s.parseEvents(o.useEvents, "on-video-ended");
51
46
  }, V = () => {
52
- n("on-video-volumechange"), window.SHJParseEvent(o.useEvents, "on-video-volumechange");
47
+ n("on-video-playing"), s.parseEvents(o.useEvents, "on-video-playing");
48
+ }, P = () => {
49
+ n("on-video-timeupdate"), s.parseEvents(o.useEvents, "on-video-timeupdate");
50
+ }, h = () => {
51
+ n("on-video-error"), s.parseEvents(o.useEvents, "on-video-error");
52
+ }, b = () => {
53
+ n("on-video-volumechange"), s.parseEvents(o.useEvents, "on-video-volumechange");
53
54
  };
54
- return v({
55
+ return u({
55
56
  /** 开始播放 */
56
57
  play: () => {
57
58
  i.value && i.value.play();
@@ -60,7 +61,7 @@ const _ = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
60
61
  pause: () => {
61
62
  i.value && i.value.pause();
62
63
  }
63
- }), (e, s) => (b(), h("video", {
64
+ }), (e, t) => (_(), M("video", {
64
65
  ref_key: "videoRef",
65
66
  ref: i,
66
67
  class: "zerov-widget",
@@ -69,17 +70,17 @@ const _ = ["poster", "autoplay", "controls", "loop", "muted"], R = r({ name: "zv
69
70
  controls: e.basicOption.controls,
70
71
  loop: e.basicOption.loop,
71
72
  muted: e.basicOption.muted,
72
- onProgress: m,
73
- onPlay: E,
74
- onEnded: y,
75
- onPlaying: w,
76
- onPause: f,
73
+ onProgress: E,
74
+ onPlay: f,
75
+ onEnded: g,
76
+ onPlaying: V,
77
+ onPause: y,
77
78
  onTimeupdate: P,
78
- onError: g,
79
- onVolumechange: V
80
- }, null, 40, _));
79
+ onError: h,
80
+ onVolumechange: b
81
+ }, null, 40, w));
81
82
  }
82
83
  });
83
84
  export {
84
- A as default
85
+ q as default
85
86
  };