@shjjs/visual-ui 1.0.36 → 1.0.37

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 (175) hide show
  1. package/es/commons/core/earth/main.vue.d.ts +2 -2
  2. package/es/commons/core/useChart.mjs +257 -73
  3. package/es/components/chart/commons/components/common-chart/index.vue.mjs +213 -30
  4. package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +210 -27
  5. package/es/components/chart/commons/hooks/useChart.mjs +261 -77
  6. package/es/components/chart/src/map/bmap-basic/index.vue.d.ts +8 -8
  7. package/es/components/chart/src/map/bmap-heatmap/index.vue.d.ts +6 -2
  8. package/es/components/chart-other-candlestick-basic/index.vue.mjs +212 -29
  9. package/es/components/chart-other-candlestick-demo/index.vue.mjs +213 -30
  10. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +214 -31
  11. package/es/components/chart-other-circular-graph/index.vue.mjs +214 -31
  12. package/es/components/chart-other-force/index.vue.mjs +212 -29
  13. package/es/components/chart-other-force2/index.vue.mjs +212 -29
  14. package/es/components/chart-other-funnel/index.vue.mjs +214 -31
  15. package/es/components/chart-other-funnel-contrast/index.vue.mjs +214 -31
  16. package/es/components/chart-other-funnel-split/index.vue.mjs +214 -31
  17. package/es/components/chart-other-funnel2/index.vue.mjs +214 -31
  18. package/es/components/chart-other-gauge/index.vue.mjs +214 -31
  19. package/es/components/chart-other-gauge-grade/index.vue.mjs +214 -31
  20. package/es/components/chart-other-gauge-stage/index.vue.mjs +214 -31
  21. package/es/components/chart-other-graph-basic/index.vue.mjs +214 -31
  22. package/es/components/chart-other-graph-basic2/index.vue.mjs +214 -31
  23. package/es/components/chart-other-graph-calendar/index.vue.mjs +214 -31
  24. package/es/components/chart-other-grid-percentage/index.vue.mjs +218 -35
  25. package/es/components/chart-other-heatmap/index.vue.mjs +212 -29
  26. package/es/components/chart-other-label-gauge/index.vue.mjs +216 -33
  27. package/es/components/chart-other-liquidfill/index.vue.mjs +214 -31
  28. package/es/components/chart-other-parallel-basic/index.vue.mjs +214 -31
  29. package/es/components/chart-other-parallel-mul/index.vue.mjs +211 -28
  30. package/es/components/chart-other-radar/index.vue.mjs +224 -41
  31. package/es/components/chart-other-radar-stack/index.vue.mjs +211 -28
  32. package/es/components/chart-other-sunburst-basic/index.vue.mjs +212 -29
  33. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +212 -29
  34. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +212 -29
  35. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +212 -29
  36. package/es/components/chart-other-sunburst-book/index.vue.mjs +212 -29
  37. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +214 -31
  38. package/es/components/chart-other-sunburst-radius/index.vue.mjs +212 -29
  39. package/es/components/chart-other-theme-river/index.vue.mjs +216 -33
  40. package/es/components/chart-other-tree/index.vue.mjs +214 -31
  41. package/es/components/chart-other-tree-line/index.vue.mjs +214 -31
  42. package/es/components/chart-other-treemap/index.vue.mjs +214 -31
  43. package/es/components/chart-other-treemap-basic/index.vue.mjs +214 -31
  44. package/es/components/chart-other-word-cloud/index.vue.mjs +216 -33
  45. package/es/components/commons-echarts/compileAndRunEcharts.mjs +219 -35
  46. package/es/components/commons-loop-iterator/index.vue.mjs +1 -1
  47. package/es/components/commons-loop-iterator/index.vue2.mjs +218 -35
  48. package/es/components/commons-product-model/index.vue.mjs +2 -2
  49. package/es/components/commons-product-model/index.vue2.mjs +246 -62
  50. package/es/components/commons-three-loader/index.vue.mjs +2 -2
  51. package/es/components/commons-three-loader/index.vue2.mjs +257 -73
  52. package/es/components/commons-three-loader3/index.vue.mjs +2 -2
  53. package/es/components/commons-three-loader3/index.vue2.mjs +301 -117
  54. package/es/components/commons-weather/index.vue.mjs +1 -1
  55. package/es/components/commons-weather/index.vue2.mjs +233 -48
  56. package/es/components/commons-weather-dynamic/index.vue.mjs +2 -2
  57. package/es/components/commons-weather-dynamic/index.vue2.mjs +236 -52
  58. package/es/components/interaction/button/index.vue.mjs +2 -2
  59. package/es/components/interaction/button/index.vue2.mjs +252 -68
  60. package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +1 -1
  61. package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +324 -140
  62. package/es/components/interaction/tabs/index.vue.mjs +223 -39
  63. package/es/components/interaction/tabs-icon/index.vue.mjs +225 -41
  64. package/es/components/interaction-input/index.vue.mjs +1 -1
  65. package/es/components/interaction-input/index.vue2.mjs +244 -61
  66. package/es/components/interaction-select/index.vue.mjs +1 -1
  67. package/es/components/interaction-select/index.vue2.mjs +269 -86
  68. package/es/components/interaction-slider/index.vue.mjs +2 -2
  69. package/es/components/interaction-slider/index.vue2.mjs +248 -65
  70. package/es/components/interaction-switch/index.vue.mjs +1 -1
  71. package/es/components/interaction-switch/index.vue2.mjs +217 -33
  72. package/es/components/interaction-tabs/index.vue.mjs +1 -1
  73. package/es/components/interaction-tabs/index.vue2.mjs +221 -37
  74. package/es/components/interaction-tabs2/index.vue.mjs +2 -2
  75. package/es/components/interaction-tabs2/index.vue2.mjs +219 -35
  76. package/es/components/map-earth-basic/index.d.ts +2 -2
  77. package/es/components/map-earth-basic/index.vue.d.ts +2 -2
  78. package/es/components/map-earth-basic/index.vue.mjs +286 -103
  79. package/es/components/map-earth-cool-tech/index.d.ts +2 -2
  80. package/es/components/map-earth-cool-tech/index.vue.d.ts +4 -6
  81. package/es/components/map-earth-cool-tech/index.vue.mjs +286 -103
  82. package/es/components/map-earth-fly-line/index.d.ts +2 -2
  83. package/es/components/map-earth-fly-line/index.vue.d.ts +2 -2
  84. package/es/components/map-earth-fly-line/index.vue.mjs +286 -103
  85. package/es/components/map-earth-hacker/index.d.ts +2 -2
  86. package/es/components/map-earth-hacker/index.vue.d.ts +2 -2
  87. package/es/components/map-earth-hacker/index.vue.mjs +286 -103
  88. package/es/components/map-earth-particle/index.d.ts +2 -2
  89. package/es/components/map-earth-particle/index.vue.d.ts +2 -2
  90. package/es/components/map-earth-particle/index.vue.mjs +286 -103
  91. package/es/components/media-audio/index.vue.mjs +2 -2
  92. package/es/components/media-audio/index.vue2.mjs +220 -36
  93. package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
  94. package/es/components/media-audio-dynamic/index.vue2.mjs +226 -43
  95. package/es/components/media-flv/index.vue.mjs +219 -35
  96. package/es/components/media-iframe/index.vue.mjs +2 -2
  97. package/es/components/media-iframe/index.vue2.mjs +199 -15
  98. package/es/components/media-iframe-dynamic/index.vue.mjs +2 -2
  99. package/es/components/media-iframe-dynamic/index.vue2.mjs +219 -36
  100. package/es/components/media-image-dynamic/index.vue.mjs +1 -1
  101. package/es/components/media-image-dynamic/index.vue2.mjs +207 -24
  102. package/es/components/media-m3u8/index.vue.mjs +221 -37
  103. package/es/components/media-m3u8-dynamic/index.vue.mjs +228 -45
  104. package/es/components/media-video/index.vue.mjs +1 -1
  105. package/es/components/media-video/index.vue2.mjs +216 -31
  106. package/es/components/media-video-dynamic/index.vue.mjs +1 -1
  107. package/es/components/media-video-dynamic/index.vue2.mjs +223 -40
  108. package/es/components/scene-amap2d/index.vue.mjs +2 -2
  109. package/es/components/scene-amap2d/index.vue2.mjs +376 -192
  110. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  111. package/es/components/scene-amap3d/index.vue2.mjs +414 -231
  112. package/es/components/scene-default/index.vue.mjs +2 -2
  113. package/es/components/scene-default/index.vue2.mjs +201 -16
  114. package/es/components/scene-map3d/index.vue.mjs +2 -2
  115. package/es/components/scene-map3d/index.vue2.mjs +289 -106
  116. package/es/components/scene-ue-iframe/index.vue.mjs +1 -1
  117. package/es/components/scene-ue-iframe/index.vue2.mjs +212 -27
  118. package/es/components/scene-ue-shj/index.vue.mjs +2 -2
  119. package/es/components/scene-ue-shj/index.vue2.mjs +200 -15
  120. package/es/components/scene-unity-iframe/index.vue.mjs +1 -1
  121. package/es/components/scene-unity-iframe/index.vue2.mjs +204 -19
  122. package/es/components/scene-unity-webgl/index.vue.mjs +2 -2
  123. package/es/components/scene-unity-webgl/index.vue2.mjs +204 -19
  124. package/es/components/scene-vr/index.vue.mjs +2 -2
  125. package/es/components/scene-vr/index.vue2.mjs +307 -123
  126. package/es/components/text/list/index.vue.mjs +240 -56
  127. package/es/components/text-count-down/index.vue.mjs +2 -2
  128. package/es/components/text-count-down/index.vue2.mjs +245 -60
  129. package/es/components/text-over-number/index.vue.mjs +2 -2
  130. package/es/components/text-over-number/index.vue2.mjs +243 -60
  131. package/es/components/text-real-time/index.vue.mjs +1 -1
  132. package/es/components/text-real-time/index.vue2.mjs +212 -28
  133. package/es/components/text-row-scroll/index.vue.mjs +2 -2
  134. package/es/components/text-row-scroll/index.vue2.mjs +289 -106
  135. package/es/components/text-table-basic/index.vue.mjs +2 -2
  136. package/es/components/text-table-basic/index.vue2.mjs +286 -103
  137. package/es/components/text-table-scroll/index.vue.mjs +1 -1
  138. package/es/components/text-table-scroll/index.vue2.mjs +291 -108
  139. package/es/components/text-text-dynamic/index.vue.mjs +2 -2
  140. package/es/components/text-text-dynamic/index.vue2.mjs +218 -35
  141. package/es/index.d.ts +1 -0
  142. package/es/index.mjs +375 -361
  143. package/es/plugins/datasource/index.mjs +217 -0
  144. package/es/plugins/datasource/sources/api.mjs +32 -0
  145. package/es/plugins/datasource/sources/static.mjs +17 -0
  146. package/es/plugins/datasource/sources/storage.mjs +28 -0
  147. package/es/plugins/datasource/sources/url.mjs +17 -0
  148. package/es/plugins/datasource/sources/variable.mjs +17 -0
  149. package/es/plugins/datasource/sources/ws.mjs +139 -0
  150. package/es/plugins/datasource/utils/axios.mjs +134 -0
  151. package/es/plugins/datasource/utils/request.mjs +5 -0
  152. package/es/plugins/datasource/utils/utils.mjs +229 -0
  153. package/es/plugins/datasource/utils/wsManager.mjs +78 -0
  154. package/es/plugins/event/actions/fullScreenAction.mjs +8 -0
  155. package/es/plugins/event/actions/invokeAction.mjs +11 -0
  156. package/es/plugins/event/actions/linkAction.mjs +8 -0
  157. package/es/plugins/event/actions/moveAction.mjs +15 -0
  158. package/es/plugins/event/actions/refreshVariableAction.mjs +18 -0
  159. package/es/plugins/event/actions/rotateAction.mjs +19 -0
  160. package/es/plugins/event/actions/scaleAction.mjs +24 -0
  161. package/es/plugins/event/actions/sendApiAction.mjs +16 -0
  162. package/es/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -0
  163. package/es/plugins/event/actions/ueShjExecMethodAction.mjs +31 -0
  164. package/es/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -0
  165. package/es/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -0
  166. package/es/plugins/event/actions/updatePageAction.mjs +6 -0
  167. package/es/plugins/event/actions/updateVariableAction.mjs +25 -0
  168. package/es/plugins/event/actions/updateWidgetAction.mjs +14 -0
  169. package/es/plugins/event/actions/vrSceneMethodAction.mjs +12 -0
  170. package/es/plugins/event/index.mjs +161 -0
  171. package/es/plugins/event/utils/utils.mjs +50 -0
  172. package/es/plugins/utils/componentRefs.mjs +37 -0
  173. package/es/plugins/utils/getNextElement.mjs +12 -0
  174. package/es/widgets.css +1 -1
  175. package/package.json +1 -1
@@ -1,11 +1,196 @@
1
- import { defineComponent as g, watch as z, createElementBlock as s, openBlock as i, createCommentVNode as c, normalizeStyle as u, unref as r, toDisplayString as n, createTextVNode as R, ref as f, onMounted as W, onBeforeUnmount as B } from "vue";
1
+ import { defineComponent as g, watch as z, createElementBlock as m, openBlock as a, createCommentVNode as h, normalizeStyle as c, unref as e, toDisplayString as i, createTextVNode as R, ref as f, onMounted as W, onBeforeUnmount as B } from "vue";
2
2
  import C from "axios";
3
- import { SHJParseEvent as v } from "@shjjs/visual-core";
3
+ import "../text-text-basic/index.mjs";
4
+ import "../text-table-basic/index.mjs";
5
+ import "../chart-other-gauge/index.mjs";
6
+ import "../chart-other-gauge-stage/index.mjs";
7
+ import "../chart-other-gauge-grade/index.mjs";
8
+ import "../chart-other-word-cloud/index.mjs";
9
+ import "../chart-other-liquidfill/index.mjs";
10
+ import "../chart-other-funnel/index.mjs";
11
+ import "../chart-other-force/index.mjs";
12
+ import "../chart-other-radar/index.mjs";
13
+ import "../chart-other-funnel-split/index.mjs";
14
+ import "../chart-other-funnel-contrast/index.mjs";
15
+ import "../chart-other-candlestick-basic/index.mjs";
16
+ import "../chart-other-candlestick-shanghai/index.mjs";
17
+ import "../chart-other-candlestick-demo/index.mjs";
18
+ import "../chart-other-heatmap/index.mjs";
19
+ import "../chart-other-force2/index.mjs";
20
+ import "../chart-other-graph-basic/index.mjs";
21
+ import "../chart-other-graph-basic2/index.mjs";
22
+ import "../chart-other-graph-calendar/index.mjs";
23
+ import "../chart-other-tree-line/index.mjs";
24
+ import "../chart-other-treemap-basic/index.mjs";
25
+ import "../chart-other-sunburst-basic/index.mjs";
26
+ import "../chart-other-sunburst-basic2/index.mjs";
27
+ import "../chart-other-sunburst-basic3/index.mjs";
28
+ import "../chart-other-sunburst-basic4/index.mjs";
29
+ import "../chart-other-sunburst-book/index.mjs";
30
+ import "../chart-other-sunburst-radius/index.mjs";
31
+ import "../chart-other-sunburst-flavors/index.mjs";
32
+ import "../chart-other-parallel-basic/index.mjs";
33
+ import "../chart-other-parallel-mul/index.mjs";
34
+ import "../chart-other-circular-graph/index.mjs";
35
+ import "../map-earth-basic/index.mjs";
36
+ import "../map-earth-cool-tech/index.mjs";
37
+ import "../map-earth-particle/index.mjs";
38
+ import "../map-earth-hacker/index.mjs";
39
+ import "../map-earth-fly-line/index.mjs";
40
+ import "../chart-other-grid-percentage/index.mjs";
41
+ import "../chart-other-radar-stack/index.mjs";
42
+ import "../chart-other-funnel2/index.mjs";
43
+ import "../chart-other-label-gauge/index.mjs";
44
+ import "../chart-other-theme-river/index.mjs";
45
+ import "../chart-other-tree/index.mjs";
46
+ import "../chart-other-treemap/index.mjs";
47
+ import "../commons-product-model/index.mjs";
48
+ import "../commons-vr-photo/index.mjs";
49
+ import "../commons-vr-video/index.mjs";
50
+ import "../commons-three-loader/index.mjs";
51
+ import "../commons-three-loader3/index.mjs";
52
+ import "../commons-loop-iterator/index.mjs";
53
+ import "../commons-gaussian-splatting-view/index.mjs";
54
+ import "../commons-babylon/index.mjs";
55
+ import "../commons-svg/index.mjs";
56
+ import "./index.mjs";
57
+ import "../commons-weather-dynamic/index.mjs";
58
+ import "../media-wavesurfer/index.mjs";
59
+ import "../interaction-tabs/index.mjs";
60
+ import "../interaction-tabs2/index.mjs";
61
+ import "../interaction-button/index.mjs";
62
+ import "../interaction-button-image/index.mjs";
63
+ import "../interaction-select/index.mjs";
64
+ import "../interaction-input/index.mjs";
65
+ import "../interaction-radio/index.mjs";
66
+ import "../interaction-slider/index.mjs";
67
+ import "../interaction-switch/index.mjs";
68
+ import "../interaction-data-picker/index.mjs";
69
+ import "../interaction-button-refresh/index.mjs";
70
+ import "../media-image/index.mjs";
71
+ import "../text-title/index.mjs";
72
+ import "../commons-qrcode/index.mjs";
73
+ import "../media-video/index.mjs";
74
+ import "../media-audio/index.mjs";
75
+ import "../text-real-time/index.mjs";
76
+ import "../media-carousel/index.mjs";
77
+ import "../media-carousel-slides/index.mjs";
78
+ import "../media-iframe-carousel/index.mjs";
79
+ import "../media-iframe/index.mjs";
80
+ import "../media-m3u8/index.mjs";
81
+ import "../media-m3u8-dynamic/index.mjs";
82
+ import "../media-audio-dynamic/index.mjs";
83
+ import "../media-video-dynamic/index.mjs";
84
+ import "../media-image-dynamic/index.mjs";
85
+ import "../media-iframe-dynamic/index.mjs";
86
+ import "../media-flv/index.mjs";
87
+ import "../commons-echarts/index.mjs";
88
+ import "../text-over-number/index.mjs";
89
+ import "../text-table-scroll/index.mjs";
90
+ import "../text-carousel/index.mjs";
91
+ import "../text-row-scroll/index.mjs";
92
+ import "../text-text-dynamic/index.mjs";
93
+ import "../text-count-down/index.mjs";
94
+ import "../graphical-circle/index.mjs";
95
+ import "../graphical-diamond/index.mjs";
96
+ import "../graphical-hexagon/index.mjs";
97
+ import "../graphical-isosceles-triangle/index.mjs";
98
+ import "../graphical-pentagon/index.mjs";
99
+ import "../graphical-rect/index.mjs";
100
+ import "../graphical-right-triangle/index.mjs";
101
+ import "../scene-map3d/index.mjs";
102
+ import "../scene-amap2d/index.mjs";
103
+ import "../scene-amap3d/index.mjs";
104
+ import "../scene-vr/index.mjs";
105
+ import "../scene-unity-iframe/index.mjs";
106
+ import "../scene-unity-webgl/index.mjs";
107
+ import "../scene-ue-iframe/index.mjs";
108
+ import "../scene-ue-shj/index.mjs";
109
+ import "../scene-default/index.mjs";
110
+ import "../interaction/tabs/index.mjs";
111
+ import "../interaction/tabs-icon/index.mjs";
112
+ import "../interaction/button/index.mjs";
113
+ import "../interaction/date-picker/src/date-picker/index.mjs";
114
+ import "../interaction/date-picker/src/date-picker-range/index.mjs";
115
+ import "../text/list/index.mjs";
116
+ import "../chart/src/bar/basic/index.mjs";
117
+ import "../chart/src/bar/animation/index.mjs";
118
+ import "../chart/src/bar/contrast/index.mjs";
119
+ import "../chart/src/bar/contrast2/index.mjs";
120
+ import "../chart/src/bar/contrast3/index.mjs";
121
+ import "../chart/src/bar/gradient-column-chart/index.mjs";
122
+ import "../chart/src/bar/horizontal/index.mjs";
123
+ import "../chart/src/bar/horizontal-stack/index.mjs";
124
+ import "../chart/src/bar/line-bar/index.mjs";
125
+ import "../chart/src/bar/line-bar2/index.mjs";
126
+ import "../chart/src/bar/loop/index.mjs";
127
+ import "../chart/src/bar/mini/index.mjs";
128
+ import "../chart/src/bar/polar/index.mjs";
129
+ import "../chart/src/bar/polar-stack/index.mjs";
130
+ import "../chart/src/bar/polar2/index.mjs";
131
+ import "../chart/src/bar/radius-circle/index.mjs";
132
+ import "../chart/src/bar/rank/index.mjs";
133
+ import "../chart/src/bar/segmented-progress/index.mjs";
134
+ import "../chart/src/bar/spire/index.mjs";
135
+ import "../chart/src/bar/stack/index.mjs";
136
+ import "../chart/src/bar/stack-line/index.mjs";
137
+ import "../chart/src/bar/stack2/index.mjs";
138
+ import "../chart/src/bar/stack3/index.mjs";
139
+ import "../chart/src/bar/staggered/index.mjs";
140
+ import "../chart/src/bar/three/index.mjs";
141
+ import "../chart/src/bar/waterfall/index.mjs";
142
+ import "../chart/src/bar/zebra/index.mjs";
143
+ import "../chart/src/line/area-gradient/index.mjs";
144
+ import "../chart/src/line/area-highlight/index.mjs";
145
+ import "../chart/src/line/area-highlight2/index.mjs";
146
+ import "../chart/src/line/basic/index.mjs";
147
+ import "../chart/src/line/bump/index.mjs";
148
+ import "../chart/src/line/dashed/index.mjs";
149
+ import "../chart/src/line/ladder/index.mjs";
150
+ import "../chart/src/line/logarithm/index.mjs";
151
+ import "../chart/src/line/multix/index.mjs";
152
+ import "../chart/src/line/polar-double/index.mjs";
153
+ import "../chart/src/line/rain-flow/index.mjs";
154
+ import "../chart/src/line/scale/index.mjs";
155
+ import "../chart/src/line/smooth/index.mjs";
156
+ import "../chart/src/line/smooth-area/index.mjs";
157
+ import "../chart/src/line/stack/index.mjs";
158
+ import "../chart/src/line/stack-area/index.mjs";
159
+ import "../chart/src/line/temp/index.mjs";
160
+ import "../chart/src/line/vertical/index.mjs";
161
+ import "../chart/src/map/basic/index.mjs";
162
+ import "../chart/src/map/bmap-basic/index.mjs";
163
+ import "../chart/src/map/bmap-heatmap/index.mjs";
164
+ import "../chart/src/map/bmap-rich/index.mjs";
165
+ import "../chart/src/map/customize/index.mjs";
166
+ import "../chart/src/map/lines/index.mjs";
167
+ import "../chart/src/map/scatter/index.mjs";
168
+ import "../chart/src/pie/3d/index.mjs";
169
+ import "../chart/src/pie/basic/index.mjs";
170
+ import "../chart/src/pie/basic2/index.mjs";
171
+ import "../chart/src/pie/customized/index.mjs";
172
+ import "../chart/src/pie/index/index.mjs";
173
+ import "../chart/src/pie/interval/index.mjs";
174
+ import "../chart/src/pie/legend-scroll/index.mjs";
175
+ import "../chart/src/pie/radius/index.mjs";
176
+ import "../chart/src/pie/rose/index.mjs";
177
+ import "../chart/src/pie/round/index.mjs";
178
+ import "../chart/src/pie/sunburst/index.mjs";
179
+ import "../chart/src/scatter/basic/index.mjs";
180
+ import "../chart/src/scatter/basic2/index.mjs";
181
+ import "../chart/src/scatter/bubble/index.mjs";
182
+ import "../chart/src/scatter/ripples/index.mjs";
183
+ /* empty css */
184
+ /* empty css */
185
+ import "lodash";
186
+ import "../../plugins/datasource/utils/request.mjs";
187
+ import "../../plugins/datasource/utils/wsManager.mjs";
188
+ import { SHJParseEvent as v } from "../../plugins/event/index.mjs";
4
189
  import { autoInstallFont as D, jsonToCssStyle as A } from "../../commons/utils/json2css.mjs";
5
190
  const F = {
6
191
  key: 0,
7
192
  class: "weather-temperature__suffix"
8
- }, H = g({ name: "zv-commons-weather" }), P = /* @__PURE__ */ g({
193
+ }, H = g({ name: "zv-commons-weather" }), ye = /* @__PURE__ */ g({
9
194
  ...H,
10
195
  props: {
11
196
  basicOption: {},
@@ -16,8 +201,8 @@ const F = {
16
201
  "on-error"
17
202
  ],
18
203
  setup(O, { emit: k }) {
19
- const o = O, w = k, S = () => {
20
- const t = f(), p = f({
204
+ const p = O, w = k, S = () => {
205
+ const r = f(), s = f({
21
206
  city: "",
22
207
  date: "",
23
208
  week: "",
@@ -31,81 +216,81 @@ const F = {
31
216
  nightpower: "",
32
217
  daytemp_float: "",
33
218
  nighttemp_float: ""
34
- }), h = f(null), d = (e) => {
35
- C.get(`https://restapi.amap.com/v3/weather/weatherInfo?city=${e.city}&key=${e.key}&extensions=all`).then((a) => {
36
- a.status === 200 && a.data.status === "1" && a.data.forecasts.length > 0 ? (w("on-success", a), v.parseEvents(o.useEvents, "on-success", a), p.value = a.data.forecasts[0].casts[0], p.value.city = a.data.forecasts[0].city) : (w("on-error", a), v.parseEvents(o.useEvents, "on-error", a));
219
+ }), l = f(null), y = (t) => {
220
+ C.get(`https://restapi.amap.com/v3/weather/weatherInfo?city=${t.city}&key=${t.key}&extensions=all`).then((o) => {
221
+ o.status === 200 && o.data.status === "1" && o.data.forecasts.length > 0 ? (w("on-success", o), v.parseEvents(p.useEvents, "on-success", o), s.value = o.data.forecasts[0].casts[0], s.value.city = o.data.forecasts[0].city) : (w("on-error", o), v.parseEvents(p.useEvents, "on-error", o));
37
222
  }).catch(() => {
38
- w("on-error", null), v.parseEvents(o.useEvents, "on-error", null);
223
+ w("on-error", null), v.parseEvents(p.useEvents, "on-error", null);
39
224
  });
40
- }, I = (e) => (e.fontFamily && D(e.fontFamily), {
41
- ...A(e),
42
- lineHeight: `${e.lineHeight}px`,
43
- transform: `translate(${e.transform.x}px, ${e.transform.y}px)`
44
- }), T = (e, a) => {
45
- if (a.find((m) => m.name === p.value.dayweather)) {
46
- const m = a.find((U) => U.name === p.value.dayweather).url || "";
225
+ }, I = (t) => (t.fontFamily && D(t.fontFamily), {
226
+ ...A(t),
227
+ lineHeight: `${t.lineHeight}px`,
228
+ transform: `translate(${t.transform.x}px, ${t.transform.y}px)`
229
+ }), T = (t, o) => {
230
+ if (o.find((d) => d.name === s.value.dayweather)) {
231
+ const d = o.find((U) => U.name === s.value.dayweather).url || "";
47
232
  return {
48
- mask: `url(${m}) 0px 0px / 100% 100%`,
49
- width: `${e.size}px`,
50
- height: `${e.size}px`,
51
- background: `url(${m}) 0px 0px / 100% 100%, ${e.color}`,
233
+ mask: `url(${d}) 0px 0px / 100% 100%`,
234
+ width: `${t.size}px`,
235
+ height: `${t.size}px`,
236
+ background: `url(${d}) 0px 0px / 100% 100%, ${t.color}`,
52
237
  backgroundBlendMode: "overlay",
53
- marginRight: `${e.margin.right}px`
238
+ marginRight: `${t.margin.right}px`
54
239
  };
55
240
  }
56
241
  return {};
57
- }, b = (e) => {
58
- h.value && clearInterval(h.value), e.autoUpdate !== 0 ? h.value = setInterval(() => d(e), e.autoUpdate * 1e3) : (clearInterval(h.value), d(e));
242
+ }, b = (t) => {
243
+ l.value && clearInterval(l.value), t.autoUpdate !== 0 ? l.value = setInterval(() => y(t), t.autoUpdate * 1e3) : (clearInterval(l.value), y(t));
59
244
  };
60
245
  return W(() => {
61
- d(o.basicOption), b(o.basicOption);
246
+ y(p.basicOption), b(p.basicOption);
62
247
  }), B(() => {
63
- h.value && clearInterval(h.value);
248
+ l.value && clearInterval(l.value);
64
249
  }), {
65
- initWeatherMessage: d,
250
+ initWeatherMessage: y,
66
251
  rendererDomStyle: I,
67
252
  handleAutoUpdate: b,
68
253
  rendererWeatherTypeStyle: T,
69
- weatherRef: t,
70
- weather: p
254
+ weatherRef: r,
255
+ weather: s
71
256
  };
72
- }, { handleAutoUpdate: $, rendererDomStyle: y, rendererWeatherTypeStyle: x, weatherRef: E, weather: l } = S();
73
- return z(() => o.basicOption, () => $(o.basicOption), { deep: !0 }), (t, p) => (i(), s("div", {
257
+ }, { handleAutoUpdate: $, rendererDomStyle: u, rendererWeatherTypeStyle: x, weatherRef: E, weather: n } = S();
258
+ return z(() => p.basicOption, () => $(p.basicOption), { deep: !0 }), (r, s) => (a(), m("div", {
74
259
  ref_key: "weatherRef",
75
260
  ref: E,
76
261
  class: "zerov-widgets"
77
262
  }, [
78
- t.basicOption.icon.show ? (i(), s("p", {
263
+ r.basicOption.icon.show ? (a(), m("p", {
79
264
  key: 0,
80
265
  class: "weather-icon",
81
- style: u(r(x)(t.basicOption.icon, t.basicOption.icons))
82
- }, null, 4)) : c("", !0),
83
- t.basicOption.weather.city.show ? (i(), s("p", {
266
+ style: c(e(x)(r.basicOption.icon, r.basicOption.icons))
267
+ }, null, 4)) : h("", !0),
268
+ r.basicOption.weather.city.show ? (a(), m("p", {
84
269
  key: 1,
85
270
  class: "weather-city",
86
- style: u(r(y)(t.basicOption.weather.city.textStyle))
87
- }, n(r(l).city), 5)) : c("", !0),
88
- t.basicOption.weather.type.show ? (i(), s("p", {
271
+ style: c(e(u)(r.basicOption.weather.city.textStyle))
272
+ }, i(e(n).city), 5)) : h("", !0),
273
+ r.basicOption.weather.type.show ? (a(), m("p", {
89
274
  key: 2,
90
275
  class: "weather-type",
91
- style: u(r(y)(t.basicOption.weather.type.textStyle))
92
- }, n(r(l).dayweather), 5)) : c("", !0),
93
- t.basicOption.weather.wind.show ? (i(), s("p", {
276
+ style: c(e(u)(r.basicOption.weather.type.textStyle))
277
+ }, i(e(n).dayweather), 5)) : h("", !0),
278
+ r.basicOption.weather.wind.show ? (a(), m("p", {
94
279
  key: 3,
95
280
  class: "weather-wind",
96
- style: u(r(y)(t.basicOption.weather.wind.textStyle))
97
- }, n(r(l).daywind) + "风" + n(r(l).daypower) + "级 ", 5)) : c("", !0),
98
- t.basicOption.weather.temperature.show ? (i(), s("p", {
281
+ style: c(e(u)(r.basicOption.weather.wind.textStyle))
282
+ }, i(e(n).daywind) + "风" + i(e(n).daypower) + "级 ", 5)) : h("", !0),
283
+ r.basicOption.weather.temperature.show ? (a(), m("p", {
99
284
  key: 4,
100
285
  class: "weather-temperature",
101
- style: u(r(y)(t.basicOption.weather.temperature.textStyle))
286
+ style: c(e(u)(r.basicOption.weather.temperature.textStyle))
102
287
  }, [
103
- R(n(r(l).nighttemp) + " " + n(t.basicOption.weather.temperature.connectors) + " " + n(r(l).daytemp) + " ", 1),
104
- t.basicOption.weather.temperature.suffix.show ? (i(), s("span", F, n(t.basicOption.weather.temperature.suffix.suffix), 1)) : c("", !0)
105
- ], 4)) : c("", !0)
288
+ R(i(e(n).nighttemp) + " " + i(r.basicOption.weather.temperature.connectors) + " " + i(e(n).daytemp) + " ", 1),
289
+ r.basicOption.weather.temperature.suffix.show ? (a(), m("span", F, i(r.basicOption.weather.temperature.suffix.suffix), 1)) : h("", !0)
290
+ ], 4)) : h("", !0)
106
291
  ], 512));
107
292
  }
108
293
  });
109
294
  export {
110
- P as default
295
+ ye as default
111
296
  };
@@ -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 r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ff5df097"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-80c95f65"]]);
5
5
  export {
6
- r as default
6
+ c as default
7
7
  };