@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,7 +1,8 @@
1
- import { defineComponent as T, ref as D, computed as k, watchEffect as z, createElementBlock as h, openBlock as w, Fragment as F, createCommentVNode as S, normalizeStyle as m, toDisplayString as O } from "vue";
2
- import { autoInstallFont as E, jsonToCssStyle as A } from "../../commons/utils/json2css.mjs";
3
- const j = ["ztitle"], _ = ["ztitle"], $ = ["ztitle"], N = T({ name: "zv-text-count-down" }), I = /* @__PURE__ */ T({
4
- ...N,
1
+ import { defineComponent as H, ref as D, computed as z, watchEffect as E, createElementBlock as h, openBlock as w, Fragment as F, createCommentVNode as m, normalizeStyle as S, toDisplayString as O } from "vue";
2
+ import { SHJParseEvent as T } from "../../commons/plugins/event/index.mjs";
3
+ import { autoInstallFont as A, jsonToCssStyle as j } from "../../commons/utils/json2css.mjs";
4
+ const _ = ["ztitle"], $ = ["ztitle"], N = ["ztitle"], q = H({ name: "zv-text-count-down" }), J = /* @__PURE__ */ H({
5
+ ...q,
5
6
  props: {
6
7
  basicOption: {},
7
8
  useEvents: {}
@@ -10,8 +11,8 @@ const j = ["ztitle"], _ = ["ztitle"], $ = ["ztitle"], N = T({ name: "zv-text-cou
10
11
  "on-end",
11
12
  "on-start"
12
13
  ],
13
- setup(H, { expose: C, emit: Y }) {
14
- const g = Y, x = window.requestAnimationFrame, n = H, d = D(0), o = D(0), a = k(() => ({
14
+ setup(C, { expose: Y, emit: k }) {
15
+ const g = k, x = window.requestAnimationFrame, n = C, d = D(0), o = D(0), a = z(() => ({
15
16
  showMillisecond: n.basicOption.conf.format.includes("SSS"),
16
17
  showYear: n.basicOption.conf.format.includes("Y"),
17
18
  showMonth: n.basicOption.conf.format.includes("M"),
@@ -20,7 +21,7 @@ const j = ["ztitle"], _ = ["ztitle"], $ = ["ztitle"], N = T({ name: "zv-text-cou
20
21
  showMinute: n.basicOption.conf.format.includes("m"),
21
22
  showSecond: n.basicOption.conf.format.includes("s")
22
23
  }));
23
- function i(e) {
24
+ function l(e) {
24
25
  return e < 10 ? "0" + e : String(e);
25
26
  }
26
27
  function y(e) {
@@ -29,69 +30,69 @@ const j = ["ztitle"], _ = ["ztitle"], $ = ["ztitle"], N = T({ name: "zv-text-cou
29
30
  let t = n.basicOption.conf.format, s = 0;
30
31
  a.value.showMillisecond && (s = e % 1e3, t = t.replace("SSS", "0".repeat(3 - String(s).length) + s)), e = Math.floor(e / 1e3);
31
32
  let r = 0;
32
- a.value.showYear ? (r = Math.floor(e / (60 * 60 * 24 * 30 * 12)), t = t.includes("YY") ? t.replace("YY", i(r)) : t.replace("Y", String(r))) : r = 0;
33
+ a.value.showYear ? (r = Math.floor(e / (60 * 60 * 24 * 30 * 12)), t = t.includes("YY") ? t.replace("YY", l(r)) : t.replace("Y", String(r))) : r = 0;
33
34
  let c = 0;
34
- a.value.showMonth ? (e = e - r * 60 * 60 * 24 * 30 * 12, c = Math.floor(e / (60 * 60 * 24 * 30)), t = t.includes("MM") ? t.replace("MM", i(c)) : t.replace("M", String(c))) : c = 0;
35
+ a.value.showMonth ? (e = e - r * 60 * 60 * 24 * 30 * 12, c = Math.floor(e / (60 * 60 * 24 * 30)), t = t.includes("MM") ? t.replace("MM", l(c)) : t.replace("M", String(c))) : c = 0;
35
36
  let u = 0;
36
- a.value.showDay ? (e = e - c * 60 * 60 * 24 * 30, u = Math.floor(e / (60 * 60 * 24)), t = t.includes("DD") ? t.replace("DD", i(u)) : t.replace("D", String(u))) : u = 0;
37
+ a.value.showDay ? (e = e - c * 60 * 60 * 24 * 30, u = Math.floor(e / (60 * 60 * 24)), t = t.includes("DD") ? t.replace("DD", l(u)) : t.replace("D", String(u))) : u = 0;
37
38
  let f = 0;
38
- a.value.showHour ? (e = e - u * 60 * 60 * 24, f = Math.floor(e / (60 * 60)), t = t.includes("HH") ? t.replace("HH", i(f)) : t.replace("H", String(f))) : f = 0;
39
+ a.value.showHour ? (e = e - u * 60 * 60 * 24, f = Math.floor(e / (60 * 60)), t = t.includes("HH") ? t.replace("HH", l(f)) : t.replace("H", String(f))) : f = 0;
39
40
  let p = 0;
40
- a.value.showMinute ? (e = e - f * 60 * 60, p = Math.floor(e / 60), t = t.includes("mm") ? t.replace("mm", i(p)) : t.replace("m", String(p))) : p = 0;
41
+ a.value.showMinute ? (e = e - f * 60 * 60, p = Math.floor(e / 60), t = t.includes("mm") ? t.replace("mm", l(p)) : t.replace("m", String(p))) : p = 0;
41
42
  let b = 0;
42
- return a.value.showSecond && (b = e - p * 60, t = t.includes("ss") ? t.replace("ss", i(b)) : t.replace("s", String(b))), t;
43
+ return a.value.showSecond && (b = e - p * 60, t = t.includes("ss") ? t.replace("ss", l(b)) : t.replace("s", String(b))), t;
43
44
  }
44
45
  function M() {
45
- o.value !== null && (d.value > Date.now() ? (o.value = d.value - Date.now(), x(M)) : (o.value = 0, g("on-end"), window.SHJParseEvent(n.useEvents, "end-count-down", null)));
46
+ o.value !== null && (d.value > Date.now() ? (o.value = d.value - Date.now(), x(M)) : (o.value = 0, g("on-end"), T.parseEvents(n.useEvents, "end-count-down", null)));
46
47
  }
47
- const l = () => {
48
- g("on-start"), window.SHJParseEvent(n.useEvents, "on-start", null), o.value = 0, Number.isFinite(n.basicOption.conf.value) ? (n.basicOption.conf.future ? n.basicOption.conf.value >= Date.now() && (d.value = n.basicOption.conf.value) : n.basicOption.conf.value >= 0 && (d.value = n.basicOption.conf.value + Date.now()), x(M)) : o.value = null;
48
+ const i = () => {
49
+ g("on-start"), T.parseEvents(n.useEvents, "on-start", null), o.value = 0, Number.isFinite(n.basicOption.conf.value) ? (n.basicOption.conf.future ? n.basicOption.conf.value >= Date.now() && (d.value = n.basicOption.conf.value) : n.basicOption.conf.value >= 0 && (d.value = n.basicOption.conf.value + Date.now()), x(M)) : o.value = null;
49
50
  };
50
- z(() => {
51
- n.basicOption.conf.autoStart ? l() : o.value = null;
51
+ E(() => {
52
+ n.basicOption.conf.autoStart ? i() : o.value = null;
52
53
  });
53
54
  const v = (e) => {
54
- E(e.fontFamily);
55
+ A(e.fontFamily);
55
56
  const t = {};
56
57
  e.color && e.color.includes("linear-gradient") && (t.backgroundImage = e.color, t["-webkit-background-clip"] = "text", t.color = "transparent");
57
58
  const s = {};
58
59
  return e.textAlign === "left" && (e.justifyContent = "flex-start"), e.textAlign === "center" && (e.justifyContent = "center"), e.textAlign === "right" && (e.justifyContent = "flex-end"), {
59
- ...A(e),
60
+ ...j(e),
60
61
  ...t,
61
62
  ...s,
62
63
  ...e.textShadow.show ? { "--text-shadow": `${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}` } : {}
63
64
  };
64
65
  };
65
- return C({
66
+ return Y({
66
67
  // 开始倒计时
67
- start: () => l(),
68
+ start: () => i(),
68
69
  // 重新倒计时
69
- startAgain: () => l(),
70
- refresh: () => l(),
71
- refreshView: () => l(),
72
- refreshData: () => l()
70
+ startAgain: () => i(),
71
+ refresh: () => i(),
72
+ refreshView: () => i(),
73
+ refreshData: () => i()
73
74
  }), (e, t) => (w(), h(F, null, [
74
75
  e.basicOption.conf.finishedText && o.value === 0 && o.value !== null ? (w(), h("span", {
75
76
  key: 0,
76
77
  class: "count-down",
77
- style: m(v(e.basicOption.css)),
78
+ style: S(v(e.basicOption.css)),
78
79
  ztitle: e.basicOption.conf.finishedText
79
- }, O(e.basicOption.conf.finishedText), 13, j)) : S("", !0),
80
+ }, O(e.basicOption.conf.finishedText), 13, _)) : m("", !0),
80
81
  e.basicOption.conf.defaultText && o.value === null ? (w(), h("span", {
81
82
  key: 1,
82
83
  class: "count-down",
83
- style: m(v(e.basicOption.css)),
84
+ style: S(v(e.basicOption.css)),
84
85
  ztitle: e.basicOption.conf.defaultText
85
- }, O(e.basicOption.conf.defaultText), 13, _)) : S("", !0),
86
+ }, O(e.basicOption.conf.defaultText), 13, $)) : m("", !0),
86
87
  Number.isFinite(o.value) && o.value > 0 ? (w(), h("span", {
87
88
  key: 2,
88
89
  class: "count-down",
89
- style: m(v(e.basicOption.css)),
90
+ style: S(v(e.basicOption.css)),
90
91
  ztitle: y(o.value)
91
- }, O(y(o.value)), 13, $)) : S("", !0)
92
+ }, O(y(o.value)), 13, N)) : m("", !0)
92
93
  ], 64));
93
94
  }
94
95
  });
95
96
  export {
96
- I as default
97
+ J as default
97
98
  };
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f0914c1d"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b77ebdeb"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as x, ref as s, watch as f, createBlock as E, openBlock as M, unref as i, normalizeStyle as j, onMounted as P, nextTick as _, onBeforeUnmount as T } from "vue";
1
+ import { defineComponent as y, ref as s, watch as f, createBlock as M, openBlock as j, unref as u, normalizeStyle as _, onMounted as P, nextTick as T, onBeforeUnmount as $ } from "vue";
2
2
  import { cloneDeep as m, isEqual as v } from "lodash";
3
- import $ from "vue-countup-v3";
4
- import { Odometer as z } from "odometer_countup";
3
+ import z from "vue-countup-v3";
4
+ import { Odometer as A } from "odometer_countup";
5
5
  import { nanoid as h } from "nanoid";
6
- import { SHJDatasourceV2 as A } from "../../commons/core/datasource/index.mjs";
7
- import { autoInstallFont as B, jsonToCssStyle as H } from "../../commons/utils/json2css.mjs";
8
- const J = x({ name: "zv-text-over-number" }), R = /* @__PURE__ */ x({
6
+ import { SHJDatasourceV2 as B } from "../../commons/plugins/datasource/index.mjs";
7
+ import { autoInstallFont as N, jsonToCssStyle as H } from "../../commons/utils/json2css.mjs";
8
+ import { SHJParseEvent as x } from "../../commons/plugins/event/index.mjs";
9
+ const J = y({ name: "zv-text-over-number" }), X = /* @__PURE__ */ y({
9
10
  ...J,
10
11
  props: {
11
12
  basicOption: {},
@@ -13,15 +14,15 @@ const J = x({ name: "zv-text-over-number" }), R = /* @__PURE__ */ x({
13
14
  useEvents: {},
14
15
  uuid: {}
15
16
  },
16
- setup(y, { expose: w }) {
17
- const n = y, d = s(n.basicOption.countUp.startVal), U = (t) => {
18
- const a = s(h()), l = s(0), c = s(), r = s(), p = () => {
19
- A.parse({
17
+ setup(U, { expose: S }) {
18
+ const n = U, d = s(n.basicOption.countUp.startVal), g = (t) => {
19
+ const r = s(h()), l = s(0), c = s(), a = s(), p = () => {
20
+ B.parse({
20
21
  tId: n.uuid,
21
22
  sources: n.sources,
22
23
  callback: ({ data: e }) => {
23
24
  try {
24
- window.SHJParseEvent(n.useEvents, "dataListener", e), a.value = h(), l.value = Number(e[0].data[0].value), c.value = {
25
+ x.parseEvents(n.useEvents, "dataListener", e), r.value = h(), l.value = Number(e[0].data[0].value), c.value = {
25
26
  startVal: d.value,
26
27
  separator: t.countUp.separator,
27
28
  decimal: t.countUp.decimal,
@@ -29,74 +30,74 @@ const J = x({ name: "zv-text-over-number" }), R = /* @__PURE__ */ x({
29
30
  duration: t.countUp.duration,
30
31
  prefix: t.countUp.prefix,
31
32
  suffix: t.countUp.suffix
32
- }, t.countUp.isOdometer && (c.value.plugin = new z({
33
+ }, t.countUp.isOdometer && (c.value.plugin = new A({
33
34
  duration: t.countUp.duration,
34
35
  lastDigitDelay: 0
35
- })), d.value = l.value, t.isImitate ? b() : r.value && clearInterval(r.value);
36
+ })), d.value = l.value, t.isImitate ? C() : a.value && clearInterval(a.value);
36
37
  } catch {
37
- window.SHJParseEvent(n.useEvents, "dataListener", null);
38
+ x.parseEvents(n.useEvents, "dataListener", null);
38
39
  }
39
40
  }
40
41
  });
41
- }, F = (e) => {
42
- B(e.fontFamily);
42
+ }, I = (e) => {
43
+ N(e.fontFamily);
43
44
  const o = {};
44
45
  e.color && e.color.includes("linear-gradient") && (o.backgroundImage = e.color, o["-webkit-background-clip"] = "text", o.color = "transparent");
45
- const C = {};
46
+ const E = {};
46
47
  return e.textAlign === "left" && (e.justifyContent = "flex-start"), e.textAlign === "center" && (e.justifyContent = "center"), e.textAlign === "right" && (e.justifyContent = "flex-end"), {
47
48
  ...H(e),
48
49
  ...o,
49
- ...C,
50
+ ...E,
50
51
  ...e.textShadow.show ? { textShadow: `${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}` } : {}
51
52
  };
52
- }, I = () => {
53
53
  }, b = () => {
54
- r.value && clearInterval(r.value);
54
+ }, C = () => {
55
+ a.value && clearInterval(a.value);
55
56
  const e = t.countUp.isOdometer ? Math.floor(Math.random() * 6) + 5 : Math.floor(Math.random() * 4) + 3;
56
- r.value = setInterval(() => {
57
+ a.value = setInterval(() => {
57
58
  d.value = l.value, c.value.startVal = d.value;
58
59
  const o = Number((Math.random() * 10).toFixed(t.countUp.decimalPlaces));
59
60
  o > 3 ? l.value += o : l.value -= o;
60
61
  }, e * 1e3);
61
62
  };
62
- return P(() => _(() => p())), T(() => {
63
- r.value && clearInterval(r.value);
63
+ return P(() => T(() => p())), $(() => {
64
+ a.value && clearInterval(a.value);
64
65
  }), {
65
- key: a,
66
+ key: r,
66
67
  init: p,
67
68
  options: c,
68
69
  endValue: l,
69
- onFinished: I,
70
- rendererDomStyle: F
70
+ onFinished: b,
71
+ rendererDomStyle: I
71
72
  };
72
73
  }, {
73
- key: S,
74
- init: u,
75
- options: g,
76
- endValue: k,
77
- onFinished: D,
78
- rendererDomStyle: V
79
- } = U(n.basicOption);
80
- return f(() => m(n.basicOption), (t, a) => {
81
- v(t, a) || u();
82
- }, { deep: !0 }), f(() => m(n.sources), (t, a) => {
83
- v(t, a) || u();
84
- }, { deep: !0 }), w({
85
- refresh: () => u(),
86
- refreshView: () => u(),
87
- refreshData: () => u()
88
- }), (t, a) => (M(), E(i($), {
89
- key: i(S),
74
+ key: w,
75
+ init: i,
76
+ options: k,
77
+ endValue: D,
78
+ onFinished: V,
79
+ rendererDomStyle: F
80
+ } = g(n.basicOption);
81
+ return f(() => m(n.basicOption), (t, r) => {
82
+ v(t, r) || i();
83
+ }, { deep: !0 }), f(() => m(n.sources), (t, r) => {
84
+ v(t, r) || i();
85
+ }, { deep: !0 }), S({
86
+ refresh: () => i(),
87
+ refreshView: () => i(),
88
+ refreshData: () => i()
89
+ }), (t, r) => (j(), M(u(z), {
90
+ key: u(w),
90
91
  class: "zerov-widget-over-number",
91
- "end-val": i(k),
92
- options: i(g),
92
+ "end-val": u(D),
93
+ options: u(k),
93
94
  loop: t.basicOption.countUp.loop,
94
95
  delay: t.basicOption.countUp.delay,
95
- style: j(i(V)(t.basicOption.css)),
96
- onFinished: i(D)
96
+ style: _(u(F)(t.basicOption.css)),
97
+ onFinished: u(V)
97
98
  }, null, 8, ["end-val", "options", "loop", "delay", "style", "onFinished"]));
98
99
  }
99
100
  });
100
101
  export {
101
- R as default
102
+ X as default
102
103
  };
@@ -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-54bb5d61"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-68f8955f"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as f, watch as w, createElementBlock as S, openBlock as T, unref as l, normalizeStyle as _, toDisplayString as b, ref as c, onMounted as z, onBeforeUnmount as E } from "vue";
2
- import { cloneDeep as j, isEqual as C } from "lodash";
1
+ import { defineComponent as p, watch as T, createElementBlock as w, openBlock as _, unref as l, normalizeStyle as E, toDisplayString as b, ref as c, onMounted as z, onBeforeUnmount as j } from "vue";
2
+ import { cloneDeep as C, isEqual as I } from "lodash";
3
3
  import i from "dayjs";
4
4
  import "dayjs/locale/zh-cn";
5
- import { autoInstallFont as I, jsonToCssStyle as k } from "../../commons/utils/json2css.mjs";
6
- const D = ["ztitle"], O = f({ name: "zv-text-real-time" }), H = /* @__PURE__ */ f({
7
- ...O,
5
+ import { autoInstallFont as k, jsonToCssStyle as D } from "../../commons/utils/json2css.mjs";
6
+ import { SHJParseEvent as f } from "../../commons/plugins/event/index.mjs";
7
+ const O = ["ztitle"], R = p({ name: "zv-text-real-time" }), J = /* @__PURE__ */ p({
8
+ ...R,
8
9
  props: {
9
10
  basicOption: {},
10
11
  datasource: {},
@@ -13,43 +14,43 @@ const D = ["ztitle"], O = f({ name: "zv-text-real-time" }), H = /* @__PURE__ */
13
14
  emits: [
14
15
  "on-change"
15
16
  ],
16
- setup(d, { emit: p }) {
17
- const u = p, a = d, s = (o) => {
18
- const t = c(), n = c(i().locale("zh-cn").format(o.format)), x = (e) => {
19
- I(e.fontFamily);
17
+ setup(s, { emit: d }) {
18
+ const m = d, a = s, v = (o) => {
19
+ const t = c(), n = c(i().locale("zh-cn").format(o.format)), g = (e) => {
20
+ k(e.fontFamily);
20
21
  const r = {};
21
22
  e.color && e.color.includes("linear-gradient") && (r.backgroundImage = e.color, r["-webkit-background-clip"] = "text", r.color = "transparent");
22
- const y = {};
23
+ const S = {};
23
24
  return e.textAlign === "left" && (e.justifyContent = "flex-start"), e.textAlign === "center" && (e.justifyContent = "center"), e.textAlign === "right" && (e.justifyContent = "flex-end"), {
24
- ...k(e),
25
+ ...D(e),
25
26
  ...r,
26
- ...y,
27
+ ...S,
27
28
  ...e.textShadow.show ? { "--text-shadow": `${e.textShadow.x}px ${e.textShadow.y}px ${e.textShadow.value}px ${e.textShadow.color}` } : {}
28
29
  };
29
- }, g = (e) => {
30
+ }, y = (e) => {
30
31
  t.value && clearInterval(t.value), t.value = setInterval(() => {
31
- n.value = i().locale("zh-cn").format(e), u("on-change", n.value), window.SHJParseEvent(a.useEvents, "on-change", n.value);
32
+ n.value = i().locale("zh-cn").format(e), m("on-change", n.value), f.parseEvents(a.useEvents, "on-change", n.value);
32
33
  }, 1e3);
33
34
  };
34
35
  return z(() => {
35
36
  t.value = setInterval(() => {
36
- n.value = i().locale("zh-cn").format(o.format), u("on-change", n.value), window.SHJParseEvent(a.useEvents, "on-change", n.value);
37
+ n.value = i().locale("zh-cn").format(o.format), m("on-change", n.value), f.parseEvents(a.useEvents, "on-change", n.value);
37
38
  }, 1e3);
38
- }), E(() => {
39
+ }), j(() => {
39
40
  t.value && clearInterval(t.value);
40
- }), { updateRealTime: g, realTime: n, rendererDomStyle: x };
41
- }, { updateRealTime: v, realTime: m, rendererDomStyle: h } = s(a.basicOption);
42
- return w(() => j(a.basicOption.format), (o, t) => {
43
- C(o, t) || v(o);
41
+ }), { updateRealTime: y, realTime: n, rendererDomStyle: g };
42
+ }, { updateRealTime: h, realTime: u, rendererDomStyle: x } = v(a.basicOption);
43
+ return T(() => C(a.basicOption.format), (o, t) => {
44
+ I(o, t) || h(o);
44
45
  }, {
45
46
  deep: !0
46
- }), (o, t) => (T(), S("div", {
47
+ }), (o, t) => (_(), w("div", {
47
48
  class: "real-time",
48
- style: _(l(h)(o.basicOption.css)),
49
- ztitle: l(m)
50
- }, b(l(m)), 13, D));
49
+ style: E(l(x)(o.basicOption.css)),
50
+ ztitle: l(u)
51
+ }, b(l(u)), 13, O));
51
52
  }
52
53
  });
53
54
  export {
54
- H as default
55
+ J as default
55
56
  };
@@ -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-9b2fa9eb"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ed5eeea7"]]);
5
5
  export {
6
6
  m as default
7
7
  };