@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,10 +1,11 @@
1
- import { defineComponent as z, useCssVars as B, ref as h, onMounted as I, watch as S, createElementBlock as i, createCommentVNode as E, openBlock as r, createVNode as R, normalizeStyle as d, Fragment as O, renderList as v, normalizeClass as V, createElementVNode as j, toDisplayString as w, unref as A, withCtx as T } from "vue";
2
- import { cloneDeep as y, isEqual as W } from "lodash";
3
- import { Vue3SeamlessScroll as q } from "vue3-seamless-scroll";
4
- import { nanoid as g } from "nanoid";
5
- import { SHJDatasourceV2 as U } from "../../commons/core/datasource/index.mjs";
6
- const G = ["onClick", "onMouseenter", "onMouseout"], K = ["onClick"], Q = { key: 1 }, X = z({ name: "zv-text-row-scroll" }), te = /* @__PURE__ */ z({
7
- ...X,
1
+ import { defineComponent as M, useCssVars as A, ref as v, onMounted as H, watch as S, createElementBlock as i, createCommentVNode as V, openBlock as r, createVNode as J, normalizeStyle as p, Fragment as O, renderList as y, normalizeClass as W, createElementVNode as T, toDisplayString as g, unref as q, withCtx as P } from "vue";
2
+ import { cloneDeep as k, isEqual as z } from "lodash";
3
+ import { Vue3SeamlessScroll as U } from "vue3-seamless-scroll";
4
+ import { nanoid as w } from "nanoid";
5
+ import { SHJDatasourceV2 as G } from "../../commons/plugins/datasource/index.mjs";
6
+ import { SHJParseEvent as d } from "../../commons/plugins/event/index.mjs";
7
+ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key: 1 }, Y = M({ name: "zv-text-row-scroll" }), ne = /* @__PURE__ */ M({
8
+ ...Y,
8
9
  props: {
9
10
  basicOption: {},
10
11
  useEvents: {},
@@ -12,116 +13,116 @@ const G = ["onClick", "onMouseenter", "onMouseout"], K = ["onClick"], Q = { key:
12
13
  uuid: {}
13
14
  },
14
15
  emits: ["on-click-item", "on-click-row", "on-mouseenter-row", "on-mouseout-row"],
15
- setup(H, { expose: J, emit: M }) {
16
- B((e) => ({
17
- "0666b15e": e.basicOption.css.table.borderWidth + "px",
18
- "5631c5a7": e.basicOption.css.table.borderStyle,
19
- "554dd759": e.basicOption.css.table.borderColor,
20
- "1f395ad3": e.basicOption.css.table.paddingLeft + "px",
21
- "35998ab9": e.basicOption.css.table.alignItems,
22
- c3358072: e.basicOption.css.table.justifyContent,
23
- "06bfebde": e.basicOption.css.header.background,
24
- "345149c3": e.basicOption.css.header.height + "px",
25
- "33c4b8a0": e.basicOption.css.header.color,
26
- f3c30acc: e.basicOption.css.header.fontSize + "px",
27
- "2041388a": e.basicOption.css.header.fontWeight,
28
- "091b1d5f": e.basicOption.css.header.fontStyle,
29
- "246ef798": e.basicOption.css.body.height + "px",
30
- "2b879748": e.basicOption.css.body.background,
31
- "4a3ad39f": e.basicOption.css.oddBackground,
32
- "2b37e916": e.basicOption.css.body.color,
33
- "34eff1a2": e.basicOption.css.body.fontSize + "px",
34
- "0ddd62d5": e.basicOption.css.body.fontWeight,
35
- "310a0498": e.basicOption.css.body.fontStyle
16
+ setup($, { expose: D, emit: F }) {
17
+ A((e) => ({
18
+ "1ecf4d84": e.basicOption.css.table.borderWidth + "px",
19
+ d92d3a58: e.basicOption.css.table.borderStyle,
20
+ daf516f4: e.basicOption.css.table.borderColor,
21
+ "413c0106": e.basicOption.css.table.paddingLeft + "px",
22
+ "379313ec": e.basicOption.css.table.alignItems,
23
+ ed7e110c: e.basicOption.css.table.justifyContent,
24
+ "39d7a73e": e.basicOption.css.header.background,
25
+ "1f2d0176": e.basicOption.css.header.height + "px",
26
+ "08fe595a": e.basicOption.css.header.color,
27
+ "28eb118d": e.basicOption.css.header.fontSize + "px",
28
+ "5d78d5b7": e.basicOption.css.header.fontWeight,
29
+ "0b14a692": e.basicOption.css.header.fontStyle,
30
+ e3a9ffea: e.basicOption.css.body.height + "px",
31
+ "452338c9": e.basicOption.css.body.background,
32
+ "7a020f4c": e.basicOption.css.oddBackground,
33
+ b8859230: e.basicOption.css.body.color,
34
+ "5f38823c": e.basicOption.css.body.fontSize + "px",
35
+ "68c46742": e.basicOption.css.body.fontWeight,
36
+ "9ec990b2": e.basicOption.css.body.fontStyle
36
37
  }));
37
- const b = M, m = h(g()), l = h([]), s = H, p = h(s.basicOption.scroll.start), u = () => {
38
- U.parse({
38
+ const b = F, f = v(w()), c = v([]), s = $, m = v(s.basicOption.scroll.start), u = () => {
39
+ G.parse({
39
40
  tId: s.uuid,
40
41
  sources: s.sources,
41
42
  callback: (e) => {
42
43
  try {
43
- window.SHJParseEvent(s.useEvents, "dataListener", l), l.value = y(e.data[0].data) || [], m.value = g(), p.value = s.basicOption.scroll.start;
44
+ d.parseEvents(s.useEvents, "dataListener", c), c.value = k(e.data[0].data) || [], f.value = w(), m.value = s.basicOption.scroll.start;
44
45
  } catch {
45
- window.SHJParseEvent(s.useEvents, "dataListener", null), l.value = [], m.value = g(), p.value = s.basicOption.scroll.start;
46
+ d.parseEvents(s.useEvents, "dataListener", null), c.value = [], f.value = w(), m.value = s.basicOption.scroll.start;
46
47
  }
47
48
  }
48
49
  });
49
- }, P = (e) => {
50
+ }, L = (e) => {
50
51
  const o = [];
51
52
  for (const t in e)
52
53
  o.push(e[t]);
53
54
  return o;
54
55
  };
55
- I(() => u()), S(() => y(s.basicOption), (e, o) => {
56
- W(e, o) || u();
56
+ H(() => u()), S(() => k(s.basicOption), (e, o) => {
57
+ z(e, o) || u();
57
58
  }, {
58
59
  deep: !0
59
- }), S(() => y(s.sources), (e, o) => {
60
- W(e, o) || u();
60
+ }), S(() => k(s.sources), (e, o) => {
61
+ z(e, o) || u();
61
62
  }, {
62
63
  deep: !0
63
- }), J({
64
+ }), D({
64
65
  refresh: () => u(),
65
66
  refreshView: () => u(),
66
67
  refreshData: () => u()
67
68
  });
68
- const $ = (e) => {
69
+ const N = (e) => {
69
70
  if (!s.basicOption.columns)
70
71
  return !0;
71
72
  const o = s.basicOption.columns.find((t) => t.index === e);
72
73
  return o ? o.font.auto : !0;
73
- }, f = (e) => {
74
+ }, h = (e) => {
74
75
  if (!s.basicOption.columns)
75
76
  return null;
76
77
  const o = s.basicOption.columns.find((t) => t.index === e);
77
78
  return o && o.font.auto === !1 ? o.font : null;
78
- }, k = (e) => {
79
+ }, C = (e) => {
79
80
  if (!s.basicOption.columns)
80
81
  return !0;
81
82
  const o = s.basicOption.columns.find((t) => t.index === e);
82
83
  return o ? o.width.auto : !0;
83
- }, C = (e) => {
84
+ }, E = (e) => {
84
85
  if (!s.basicOption.columns)
85
86
  return null;
86
87
  const o = s.basicOption.columns.find((t) => t.index === e);
87
88
  return o && o.width.auto === !1 ? o.width.width : null;
88
- }, D = (e, o) => {
89
+ }, B = (e, o) => {
89
90
  const t = { row: e, rowIndex: o };
90
- b("on-click-row", t), window.SHJParseEvent(s.useEvents, "on-click-row", t);
91
- }, F = (e, o) => {
91
+ b("on-click-row", t), d.parseEvents(s.useEvents, "on-click-row", t);
92
+ }, I = (e, o) => {
92
93
  const t = { row: e, rowIndex: o };
93
- b("on-mouseenter-row", t), window.SHJParseEvent(s.useEvents, "on-mouseenter-row", t);
94
- }, L = (e, o) => {
94
+ b("on-mouseenter-row", t), d.parseEvents(s.useEvents, "on-mouseenter-row", t);
95
+ }, R = (e, o) => {
95
96
  const t = { row: e, rowIndex: o };
96
- b("on-mouseout-row", t), window.SHJParseEvent(s.useEvents, "on-mouseout-row", t);
97
- }, N = (e, o, t, a) => {
97
+ b("on-mouseout-row", t), d.parseEvents(s.useEvents, "on-mouseout-row", t);
98
+ }, j = (e, o, t, a) => {
98
99
  const n = { row: e, item: o, rowIndex: t, columnIndex: a };
99
- b("on-click-item", n), window.SHJParseEvent(s.useEvents, "on-click-item", n);
100
+ b("on-click-item", n), d.parseEvents(s.useEvents, "on-click-item", n);
100
101
  };
101
- return (e, o) => l.value.length > 0 ? (r(), i("div", {
102
- key: m.value,
102
+ return (e, o) => c.value.length > 0 ? (r(), i("div", {
103
+ key: f.value,
103
104
  class: "table-scroll"
104
105
  }, [
105
106
  e.basicOption.css.header.show ? (r(), i("div", {
106
107
  key: 0,
107
108
  class: "table-header",
108
- style: d({
109
+ style: p({
109
110
  "--header-background-image": `url(${e.basicOption.css.header.backgroundImage})`
110
111
  })
111
112
  }, [
112
- (r(!0), i(O, null, v(Object.keys(l.value[0]), (t, a) => (r(), i("div", {
113
+ (r(!0), i(O, null, y(Object.keys(c.value[0]), (t, a) => (r(), i("div", {
113
114
  key: t,
114
- class: V(["th", { customWidth: !k(a + 1) }]),
115
- style: d({ "--width": C(a + 1) + "px" })
115
+ class: W(["th", { customWidth: !C(a + 1) }]),
116
+ style: p({ "--width": E(a + 1) + "px" })
116
117
  }, [
117
- j("p", null, w(t), 1)
118
+ T("p", null, g(t), 1)
118
119
  ], 6))), 128))
119
- ], 4)) : E("", !0),
120
- R(A(q), {
121
- modelValue: p.value,
122
- "onUpdate:modelValue": o[0] || (o[0] = (t) => p.value = t),
120
+ ], 4)) : V("", !0),
121
+ J(q(U), {
122
+ modelValue: m.value,
123
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => m.value = t),
123
124
  direction: e.basicOption.scroll.direction,
124
- list: l.value,
125
+ list: c.value,
125
126
  "is-watch": "",
126
127
  hover: e.basicOption.scroll.hover,
127
128
  "limit-scroll-num": e.basicOption.scroll.limitScrollNum,
@@ -129,40 +130,40 @@ const G = ["onClick", "onMouseenter", "onMouseout"], K = ["onClick"], Q = { key:
129
130
  "single-wait-time": e.basicOption.scroll.singleWaitTime,
130
131
  class: "table-body"
131
132
  }, {
132
- default: T(() => [
133
- (r(!0), i(O, null, v(l.value, (t, a) => (r(), i("div", {
133
+ default: P(() => [
134
+ (r(!0), i(O, null, y(c.value, (t, a) => (r(), i("div", {
134
135
  key: t,
135
136
  class: "tr",
136
- style: d({
137
+ style: p({
137
138
  "--row-hover": e.basicOption.css.hoverColor
138
139
  }),
139
- onClick: (n) => D(t, a),
140
- onMouseenter: (n) => F(t, a),
141
- onMouseout: (n) => L(t, a)
140
+ onClick: (n) => B(t, a),
141
+ onMouseenter: (n) => I(t, a),
142
+ onMouseout: (n) => R(t, a)
142
143
  }, [
143
- (r(!0), i(O, null, v(P(t), (n, c) => (r(), i("div", {
144
+ (r(!0), i(O, null, y(L(t), (n, l) => (r(), i("div", {
144
145
  key: n,
145
- class: V(["td", { customWidth: !k(c + 1) }]),
146
- style: d({ "--width": C(c + 1) + "px" }),
147
- onClick: (Y) => N(t, n, a, c)
146
+ class: W(["td", { customWidth: !C(l + 1) }]),
147
+ style: p({ "--width": E(l + 1) + "px" }),
148
+ onClick: (Z) => j(t, n, a, l)
148
149
  }, [
149
- $(c + 1) ? (r(), i("p", Q, w(n), 1)) : (r(), i("p", {
150
+ N(l + 1) ? (r(), i("p", X, g(n), 1)) : (r(), i("p", {
150
151
  key: 0,
151
152
  class: "customFont",
152
- style: d({
153
- "--text-color": f(c + 1).color,
154
- "--text-font-size": f(c + 1).fontSize + "px",
155
- "--text-font-style": f(c + 1).fontStyle
153
+ style: p({
154
+ "--text-color": h(l + 1).color,
155
+ "--text-font-size": h(l + 1).fontSize + "px",
156
+ "--text-font-style": h(l + 1).fontStyle
156
157
  })
157
- }, w(n), 5))
158
- ], 14, K))), 128))
159
- ], 44, G))), 128))
158
+ }, g(n), 5))
159
+ ], 14, Q))), 128))
160
+ ], 44, K))), 128))
160
161
  ]),
161
162
  _: 1
162
163
  }, 8, ["modelValue", "direction", "list", "hover", "limit-scroll-num", "single-height", "single-wait-time"])
163
- ])) : E("", !0);
164
+ ])) : V("", !0);
164
165
  }
165
166
  });
166
167
  export {
167
- te as default
168
+ ne as default
168
169
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./index.vue2.mjs";
2
2
  /* empty css */
3
- import a from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const c = /* @__PURE__ */ a(t, [["__scopeId", "data-v-c9a58eea"]]);
3
+ import o from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-5d78d597"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as I, useCssVars as T, ref as g, computed as C, watch as E, onMounted as A, resolveComponent as G, createElementBlock as l, createCommentVNode as z, openBlock as u, createVNode as H, normalizeStyle as d, Fragment as J, renderList as M, createElementVNode as w, toDisplayString as $, unref as p, withCtx as P } from "vue";
2
- import { debounce as f, cloneDeep as y, isEqual as V } from "lodash";
3
- import { nanoid as O } from "nanoid";
4
- import { RecycleScroller as K } from "vue-virtual-scroller";
1
+ import { defineComponent as W, useCssVars as A, ref as S, computed as E, watch as z, onMounted as G, resolveComponent as K, createElementBlock as l, createCommentVNode as M, openBlock as u, createVNode as $, normalizeStyle as p, Fragment as V, renderList as I, createElementVNode as O, toDisplayString as D, unref as b, withCtx as L } from "vue";
2
+ import { debounce as f, cloneDeep as w, isEqual as R } from "lodash";
3
+ import { nanoid as k } from "nanoid";
4
+ import { RecycleScroller as Q } from "vue-virtual-scroller";
5
5
  import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
6
- import { SHJDatasourceV2 as Q } from "../../commons/core/datasource/index.mjs";
7
- const U = ["onClick", "onMouseenter", "onMouseout"], X = ["onClick"], Y = I({ name: "zv-text-table-basic" }), se = /* @__PURE__ */ I({
8
- ...Y,
6
+ import { SHJDatasourceV2 as U } from "../../commons/plugins/datasource/index.mjs";
7
+ import { SHJParseEvent as d } from "../../commons/plugins/event/index.mjs";
8
+ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ name: "zv-text-table-basic" }), ie = /* @__PURE__ */ W({
9
+ ...Z,
9
10
  props: {
10
11
  basicOption: {},
11
12
  useEvents: {},
@@ -13,35 +14,35 @@ const U = ["onClick", "onMouseenter", "onMouseout"], X = ["onClick"], Y = I({ na
13
14
  uuid: {}
14
15
  },
15
16
  emits: ["on-click-item", "on-click-row", "on-mouseenter-row", "on-mouseout-row"],
16
- setup(D, { expose: L, emit: R }) {
17
- T((e) => ({
18
- "832a4e1c": e.basicOption.css.table.borderWidth + "px",
19
- "52e7b726": e.basicOption.css.table.borderStyle,
20
- "5203c8d8": e.basicOption.css.table.borderColor,
21
- "3e50e718": e.basicOption.css.table.paddingLeft + "px",
22
- "08a0254c": e.basicOption.css.table.alignItems,
23
- "51512c30": e.basicOption.css.table.justifyContent,
24
- "0d5408e0": e.basicOption.css.header.background,
25
- "6d4373e4": e.basicOption.css.header.height + "px",
26
- e220d87e: e.basicOption.css.header.color,
27
- "4b2ea07b": e.basicOption.css.header.fontSize + "px",
28
- "1cf72a09": e.basicOption.css.header.fontWeight,
29
- "619d0000": e.basicOption.css.header.fontStyle,
30
- "8311940e": e.basicOption.css.body.height + "px",
31
- "2a6e799b": e.basicOption.css.body.background,
32
- e1c58a54: e.basicOption.css.body.color,
33
- "1e7a3150": e.basicOption.css.body.fontSize + "px",
34
- "4e0fa814": e.basicOption.css.body.fontWeight,
35
- "235b9495": e.basicOption.css.body.fontStyle
17
+ setup(B, { expose: N, emit: j }) {
18
+ A((e) => ({
19
+ b3073844: e.basicOption.css.table.borderWidth + "px",
20
+ "8b05448c": e.basicOption.css.table.borderStyle,
21
+ "8ccd2128": e.basicOption.css.table.borderColor,
22
+ "6e2dd140": e.basicOption.css.table.paddingLeft + "px",
23
+ "337db774": e.basicOption.css.table.alignItems,
24
+ "175b4ad4": e.basicOption.css.table.justifyContent,
25
+ "60eba224": e.basicOption.css.header.background,
26
+ a5715660: e.basicOption.css.header.height + "px",
27
+ "07adbea6": e.basicOption.css.header.color,
28
+ cc841332: e.basicOption.css.header.fontSize + "px",
29
+ f6e65ec6: e.basicOption.css.header.fontWeight,
30
+ "8c7a9228": e.basicOption.css.header.fontStyle,
31
+ "499661e5": e.basicOption.css.body.height + "px",
32
+ "72b695a2": e.basicOption.css.body.background,
33
+ "30ed12c2": e.basicOption.css.body.color,
34
+ "5e7e123c": e.basicOption.css.body.fontSize + "px",
35
+ "2b7438b0": e.basicOption.css.body.fontWeight,
36
+ 28659681: e.basicOption.css.body.fontStyle
36
37
  }));
37
- const b = R, m = g(O()), r = g([]), i = D, W = () => {
38
+ const m = j, v = S(k()), r = S([]), i = B, H = () => {
38
39
  if (!r.value.length) return;
39
- const e = Object.keys(r.value[0]), o = i.basicOption.columns || [], s = e.map((t, a) => {
40
- const n = o.find((S) => S.name === t) || {};
40
+ const e = Object.keys(r.value[0]), t = i.basicOption.columns || [], s = e.map((o, a) => {
41
+ const n = t.find((C) => C.name === o) || {};
41
42
  return {
42
- name: n.name || t,
43
+ name: n.name || o,
43
44
  // 如果用户没有提供 name,使用 key 作为 name
44
- label: n.label || t,
45
+ label: n.label || o,
45
46
  // 如果用户没有提供 label,使用 key 作为 label
46
47
  visible: n.visible !== void 0 ? n.visible : !0,
47
48
  // 如果用户没有提供 visible,默认可见
@@ -53,29 +54,29 @@ const U = ["onClick", "onMouseenter", "onMouseout"], X = ["onClick"], Y = I({ na
53
54
  // 如果用户没有提供 font,使用默认字体
54
55
  };
55
56
  });
56
- i.basicOption.columns = s.sort((t, a) => t.index - a.index);
57
- }, v = C(() => i.basicOption.columns || []), h = C(() => v.value.filter((e) => e.visible).map((e) => e.name)), c = () => {
58
- Q.parse({
57
+ i.basicOption.columns = s.sort((o, a) => o.index - a.index);
58
+ }, h = E(() => i.basicOption.columns || []), y = E(() => h.value.filter((e) => e.visible).map((e) => e.name)), c = () => {
59
+ U.parse({
59
60
  tId: i.uuid,
60
61
  sources: i.sources,
61
62
  callback: (e) => {
62
63
  try {
63
- window.SHJParseEvent(i.useEvents, "dataListener", r), m.value = O(), r.value = y(e.data[0].data).map((o, s) => ({
64
- id: o.id || s,
64
+ d.parseEvents(i.useEvents, "dataListener", r), v.value = k(), r.value = w(e.data[0].data).map((t, s) => ({
65
+ id: t.id || s,
65
66
  // 使用索引作为 id
66
- ...o
67
- })), W();
67
+ ...t
68
+ })), H();
68
69
  } catch {
69
- window.SHJParseEvent(i.useEvents, "dataListener", null), m.value = O(), r.value = [];
70
+ d.parseEvents(i.useEvents, "dataListener", null), v.value = k(), r.value = [];
70
71
  }
71
72
  }
72
73
  });
73
- }, k = (e) => {
74
- const o = v.value.find((s) => s.name === e);
75
- return o != null && o.width.auto ? null : `${o == null ? void 0 : o.width.width}px`;
76
- }, B = (e) => {
77
- const o = v.value.find((t) => t.name === e);
78
- if (!o) return {};
74
+ }, g = (e) => {
75
+ const t = h.value.find((s) => s.name === e);
76
+ return t != null && t.width.auto ? null : `${t == null ? void 0 : t.width.width}px`;
77
+ }, J = (e) => {
78
+ const t = h.value.find((o) => o.name === e);
79
+ if (!t) return {};
79
80
  const s = {
80
81
  whiteSpace: "nowrap",
81
82
  // 默认不换行
@@ -85,98 +86,98 @@ const U = ["onClick", "onMouseenter", "onMouseout"], X = ["onClick"], Y = I({ na
85
86
  // 默认隐藏溢出内容
86
87
  };
87
88
  return {
88
- color: o.font.color,
89
- fontSize: `${o.font.fontSize}px`,
90
- fontStyle: o.font.fontStyle,
89
+ color: t.font.color,
90
+ fontSize: `${t.font.fontSize}px`,
91
+ fontStyle: t.font.fontStyle,
91
92
  ...s,
92
- ...o.textStyle
93
+ ...t.textStyle
93
94
  // 用户自定义样式
94
95
  };
95
- }, N = f((e, o) => {
96
- const s = { row: e, rowIndex: o };
97
- b("on-click-row", s), window.SHJParseEvent(i.useEvents, "on-click-row", s);
98
- }, 100), j = f((e, o) => {
99
- const s = { row: e, rowIndex: o };
100
- b("on-mouseenter-row", s), window.SHJParseEvent(i.useEvents, "on-mouseenter-row", s);
101
- }, 100), q = f((e, o) => {
102
- const s = { row: e, rowIndex: o };
103
- b("on-mouseout-row", s), window.SHJParseEvent(i.useEvents, "on-mouseout-row", s);
104
- }, 100), F = f((e, o, s, t) => {
105
- const a = { row: e, item: o, rowIndex: s, columnIndex: t };
106
- b("on-click-item", a), window.SHJParseEvent(i.useEvents, "on-click-item", a);
96
+ }, q = f((e, t) => {
97
+ const s = { row: e, rowIndex: t };
98
+ m("on-click-row", s), d.parseEvents(i.useEvents, "on-click-row", s);
99
+ }, 100), F = f((e, t) => {
100
+ const s = { row: e, rowIndex: t };
101
+ m("on-mouseenter-row", s), d.parseEvents(i.useEvents, "on-mouseenter-row", s);
102
+ }, 100), P = f((e, t) => {
103
+ const s = { row: e, rowIndex: t };
104
+ m("on-mouseout-row", s), d.parseEvents(i.useEvents, "on-mouseout-row", s);
105
+ }, 100), T = f((e, t, s, o) => {
106
+ const a = { row: e, item: t, rowIndex: s, columnIndex: o };
107
+ m("on-click-item", a), d.parseEvents(i.useEvents, "on-click-item", a);
107
108
  }, 100);
108
- return E(() => y(i.sources), (e, o) => {
109
- V(e, o) || c();
110
- }, { deep: !0 }), E(() => y(i.basicOption), (e, o) => {
111
- V(e, o) || c();
112
- }, { deep: !0 }), A(() => c()), L({
109
+ return z(() => w(i.sources), (e, t) => {
110
+ R(e, t) || c();
111
+ }, { deep: !0 }), z(() => w(i.basicOption), (e, t) => {
112
+ R(e, t) || c();
113
+ }, { deep: !0 }), G(() => c()), N({
113
114
  refresh: () => c(),
114
115
  refreshView: () => c(),
115
116
  refreshData: () => c()
116
- }), (e, o) => {
117
- const s = G("el-tooltip");
117
+ }), (e, t) => {
118
+ const s = K("el-tooltip");
118
119
  return r.value.length > 0 ? (u(), l("div", {
119
- key: m.value,
120
+ key: v.value,
120
121
  class: "table-scroll"
121
122
  }, [
122
123
  e.basicOption.css.header.show ? (u(), l("div", {
123
124
  key: 0,
124
125
  class: "table-header",
125
- style: d({
126
+ style: p({
126
127
  "--header-background-image": `url(${e.basicOption.css.header.background})`
127
128
  })
128
129
  }, [
129
- (u(!0), l(J, null, M(h.value, (t) => (u(), l("div", {
130
- key: t,
130
+ (u(!0), l(V, null, I(y.value, (o) => (u(), l("div", {
131
+ key: o,
131
132
  class: "th",
132
- style: d({ width: k(t) })
133
+ style: p({ width: g(o) })
133
134
  }, [
134
- w("p", null, $(t), 1)
135
+ O("p", null, D(o), 1)
135
136
  ], 4))), 128))
136
- ], 4)) : z("", !0),
137
- H(p(K), {
137
+ ], 4)) : M("", !0),
138
+ $(b(Q), {
138
139
  id: "",
139
140
  class: "table-body",
140
141
  items: r.value,
141
142
  "item-size": e.basicOption.css.body.height,
142
143
  "key-field": "id"
143
144
  }, {
144
- default: P(({ item: t, index: a }) => [
145
- w("div", {
145
+ default: L(({ item: o, index: a }) => [
146
+ O("div", {
146
147
  class: "tr",
147
- style: d({
148
+ style: p({
148
149
  "--row-hover": e.basicOption.css.hoverColor,
149
150
  "--odd-background": e.basicOption.css.oddBackground
150
151
  }),
151
- onClick: (n) => p(N)(t, a),
152
- onMouseenter: (n) => p(j)(t, a),
153
- onMouseout: (n) => p(q)(t, a)
152
+ onClick: (n) => b(q)(o, a),
153
+ onMouseenter: (n) => b(F)(o, a),
154
+ onMouseout: (n) => b(P)(o, a)
154
155
  }, [
155
- (u(!0), l(J, null, M(h.value, (n) => (u(), l("div", {
156
+ (u(!0), l(V, null, I(y.value, (n) => (u(), l("div", {
156
157
  key: n,
157
158
  class: "td",
158
- style: d({ width: k(n) }),
159
- onClick: (S) => p(F)(t, t[n], a, h.value.indexOf(n))
159
+ style: p({ width: g(n) }),
160
+ onClick: (C) => b(T)(o, o[n], a, y.value.indexOf(n))
160
161
  }, [
161
- H(s, {
162
- content: t[n]
162
+ $(s, {
163
+ content: o[n]
163
164
  }, {
164
- default: P(() => [
165
- w("p", {
166
- style: d(B(n))
167
- }, $(t[n]), 5)
165
+ default: L(() => [
166
+ O("p", {
167
+ style: p(J(n))
168
+ }, D(o[n]), 5)
168
169
  ]),
169
170
  _: 2
170
171
  }, 1032, ["content"])
171
- ], 12, X))), 128))
172
- ], 44, U)
172
+ ], 12, Y))), 128))
173
+ ], 44, X)
173
174
  ]),
174
175
  _: 1
175
176
  }, 8, ["items", "item-size"])
176
- ])) : z("", !0);
177
+ ])) : M("", !0);
177
178
  };
178
179
  }
179
180
  });
180
181
  export {
181
- se as default
182
+ ie as default
182
183
  };
@@ -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-7a9a366c"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1ca17191"]]);
5
5
  export {
6
6
  m as default
7
7
  };