@shjjs/visual-ui 1.0.33 → 1.0.35

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 (202) hide show
  1. package/es/commons/core/useChart.mjs +1 -1
  2. package/es/commons/plugins/datasource/index.d.ts +73 -73
  3. package/es/commons/plugins/datasource/index.mjs +214 -214
  4. package/es/commons/plugins/datasource/sources/api.d.ts +1 -1
  5. package/es/commons/plugins/datasource/sources/api.mjs +32 -32
  6. package/es/commons/plugins/datasource/sources/static.d.ts +1 -1
  7. package/es/commons/plugins/datasource/sources/static.mjs +17 -17
  8. package/es/commons/plugins/datasource/sources/storage.d.ts +1 -1
  9. package/es/commons/plugins/datasource/sources/storage.mjs +28 -28
  10. package/es/commons/plugins/datasource/sources/url.d.ts +1 -1
  11. package/es/commons/plugins/datasource/sources/url.mjs +17 -17
  12. package/es/commons/plugins/datasource/sources/variable.d.ts +1 -1
  13. package/es/commons/plugins/datasource/sources/variable.mjs +17 -17
  14. package/es/commons/plugins/datasource/sources/ws.d.ts +32 -32
  15. package/es/commons/plugins/datasource/sources/ws.mjs +139 -139
  16. package/es/commons/plugins/datasource/utils/axios.d.ts +70 -70
  17. package/es/commons/plugins/datasource/utils/axios.mjs +134 -134
  18. package/es/commons/plugins/datasource/utils/request.d.ts +3 -3
  19. package/es/commons/plugins/datasource/utils/request.mjs +5 -5
  20. package/es/commons/plugins/datasource/utils/utils.d.ts +115 -115
  21. package/es/commons/plugins/datasource/utils/utils.mjs +229 -229
  22. package/es/commons/plugins/datasource/utils/wsManager.d.ts +16 -16
  23. package/es/commons/plugins/datasource/utils/wsManager.mjs +78 -78
  24. package/es/commons/plugins/event/actions/fullScreenAction.d.ts +8 -8
  25. package/es/commons/plugins/event/actions/fullScreenAction.mjs +8 -8
  26. package/es/commons/plugins/event/actions/invokeAction.d.ts +8 -8
  27. package/es/commons/plugins/event/actions/invokeAction.mjs +11 -11
  28. package/es/commons/plugins/event/actions/linkAction.d.ts +8 -8
  29. package/es/commons/plugins/event/actions/linkAction.mjs +8 -8
  30. package/es/commons/plugins/event/actions/moveAction.d.ts +8 -8
  31. package/es/commons/plugins/event/actions/moveAction.mjs +15 -15
  32. package/es/commons/plugins/event/actions/refreshVariableAction.d.ts +7 -7
  33. package/es/commons/plugins/event/actions/refreshVariableAction.mjs +18 -18
  34. package/es/commons/plugins/event/actions/rotateAction.d.ts +8 -8
  35. package/es/commons/plugins/event/actions/rotateAction.mjs +19 -19
  36. package/es/commons/plugins/event/actions/scaleAction.d.ts +8 -8
  37. package/es/commons/plugins/event/actions/scaleAction.mjs +24 -24
  38. package/es/commons/plugins/event/actions/sendApiAction.d.ts +8 -8
  39. package/es/commons/plugins/event/actions/sendApiAction.mjs +16 -16
  40. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.d.ts +7 -7
  41. package/es/commons/plugins/event/actions/ueCommonsWebscoketAction.mjs +31 -31
  42. package/es/commons/plugins/event/actions/ueShjExecMethodAction.d.ts +7 -7
  43. package/es/commons/plugins/event/actions/ueShjExecMethodAction.mjs +31 -31
  44. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.d.ts +7 -7
  45. package/es/commons/plugins/event/actions/unityIframeExecMethodAction.mjs +28 -28
  46. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.d.ts +7 -7
  47. package/es/commons/plugins/event/actions/unityWebglExecMethodAction.mjs +28 -28
  48. package/es/commons/plugins/event/actions/updatePageAction.d.ts +8 -8
  49. package/es/commons/plugins/event/actions/updatePageAction.mjs +6 -6
  50. package/es/commons/plugins/event/actions/updateVariableAction.d.ts +7 -7
  51. package/es/commons/plugins/event/actions/updateVariableAction.mjs +25 -25
  52. package/es/commons/plugins/event/actions/updateWidgetAction.d.ts +7 -7
  53. package/es/commons/plugins/event/actions/updateWidgetAction.mjs +14 -14
  54. package/es/commons/plugins/event/actions/vrSceneMethodAction.d.ts +7 -7
  55. package/es/commons/plugins/event/actions/vrSceneMethodAction.mjs +12 -12
  56. package/es/commons/plugins/event/index.d.ts +206 -206
  57. package/es/commons/plugins/event/index.mjs +161 -161
  58. package/es/commons/plugins/event/utils/utils.d.ts +22 -22
  59. package/es/commons/plugins/event/utils/utils.mjs +50 -50
  60. package/es/commons/utils/componentRefs.d.ts +28 -28
  61. package/es/commons/utils/componentRefs.mjs +37 -37
  62. package/es/commons/utils/getNextElement.d.ts +7 -7
  63. package/es/commons/utils/getNextElement.mjs +12 -12
  64. package/es/components/chart/commons/components/common-chart/index.vue.mjs +10 -11
  65. package/es/components/chart/commons/components/common-chart-map/index.vue.mjs +6 -7
  66. package/es/components/chart/commons/hooks/useChart.mjs +1 -1
  67. package/es/components/chart-other-candlestick-basic/index.vue.mjs +7 -8
  68. package/es/components/chart-other-candlestick-demo/index.vue.mjs +16 -17
  69. package/es/components/chart-other-candlestick-shanghai/index.vue.mjs +14 -15
  70. package/es/components/chart-other-circular-graph/index.vue.mjs +16 -17
  71. package/es/components/chart-other-force/index.vue.mjs +19 -20
  72. package/es/components/chart-other-force2/index.vue.mjs +19 -20
  73. package/es/components/chart-other-funnel/index.vue.mjs +16 -17
  74. package/es/components/chart-other-funnel-contrast/index.vue.mjs +16 -17
  75. package/es/components/chart-other-funnel-split/index.vue.mjs +16 -17
  76. package/es/components/chart-other-funnel2/index.vue.mjs +16 -17
  77. package/es/components/chart-other-gauge/index.vue.mjs +21 -22
  78. package/es/components/chart-other-gauge-grade/index.vue.mjs +20 -21
  79. package/es/components/chart-other-gauge-stage/index.vue.mjs +21 -22
  80. package/es/components/chart-other-graph-basic/index.vue.mjs +8 -9
  81. package/es/components/chart-other-graph-basic2/index.vue.mjs +8 -9
  82. package/es/components/chart-other-graph-calendar/index.vue.mjs +7 -8
  83. package/es/components/chart-other-grid-percentage/index.vue.mjs +3 -4
  84. package/es/components/chart-other-heatmap/index.vue.mjs +19 -20
  85. package/es/components/chart-other-label-gauge/index.vue.mjs +9 -10
  86. package/es/components/chart-other-liquidfill/index.vue.mjs +11 -12
  87. package/es/components/chart-other-parallel-basic/index.vue.mjs +15 -16
  88. package/es/components/chart-other-parallel-mul/index.vue.mjs +6 -7
  89. package/es/components/chart-other-radar/index.vue.mjs +20 -21
  90. package/es/components/chart-other-radar-stack/index.vue.mjs +6 -7
  91. package/es/components/chart-other-sunburst-basic/index.vue.mjs +12 -13
  92. package/es/components/chart-other-sunburst-basic2/index.vue.mjs +12 -13
  93. package/es/components/chart-other-sunburst-basic3/index.vue.mjs +12 -13
  94. package/es/components/chart-other-sunburst-basic4/index.vue.mjs +12 -13
  95. package/es/components/chart-other-sunburst-book/index.vue.mjs +7 -8
  96. package/es/components/chart-other-sunburst-flavors/index.vue.mjs +16 -17
  97. package/es/components/chart-other-sunburst-radius/index.vue.mjs +18 -19
  98. package/es/components/chart-other-theme-river/index.vue.mjs +3 -4
  99. package/es/components/chart-other-tree/index.vue.mjs +8 -9
  100. package/es/components/chart-other-tree-line/index.vue.mjs +7 -8
  101. package/es/components/chart-other-treemap/index.vue.mjs +9 -10
  102. package/es/components/chart-other-treemap-basic/index.vue.mjs +14 -15
  103. package/es/components/chart-other-word-cloud/index.vue.mjs +11 -12
  104. package/es/components/commons-echarts/compileAndRunEcharts.mjs +8 -9
  105. package/es/components/commons-loop-iterator/index.vue.mjs +2 -2
  106. package/es/components/commons-loop-iterator/index.vue2.mjs +3 -4
  107. package/es/components/commons-product-model/index.vue.mjs +2 -2
  108. package/es/components/commons-product-model/index.vue2.mjs +1 -1
  109. package/es/components/commons-three-loader/index.vue.mjs +1 -1
  110. package/es/components/commons-three-loader/index.vue2.mjs +1 -1
  111. package/es/components/commons-three-loader3/index.vue.mjs +1 -1
  112. package/es/components/commons-three-loader3/index.vue2.mjs +1 -1
  113. package/es/components/commons-weather/index.vue.mjs +2 -2
  114. package/es/components/commons-weather/index.vue2.mjs +1 -1
  115. package/es/components/commons-weather-dynamic/index.vue.mjs +1 -1
  116. package/es/components/commons-weather-dynamic/index.vue2.mjs +3 -4
  117. package/es/components/index.d.ts +111 -111
  118. package/es/components/index.mjs +360 -360
  119. package/es/components/interaction/button/index.vue.mjs +2 -2
  120. package/es/components/interaction/button/index.vue2.mjs +65 -65
  121. package/es/components/interaction/date-picker/components/common-date-picker/index.vue.mjs +2 -2
  122. package/es/components/interaction/date-picker/components/common-date-picker/index.vue2.mjs +64 -65
  123. package/es/components/interaction/date-picker/src/date-picker/index.d.ts +211 -211
  124. package/es/components/interaction/date-picker/src/date-picker/index.vue.d.ts +211 -211
  125. package/es/components/interaction/date-picker/src/date-picker-range/index.d.ts +211 -211
  126. package/es/components/interaction/date-picker/src/date-picker-range/index.vue.d.ts +211 -211
  127. package/es/components/interaction/tabs/index.vue.mjs +11 -12
  128. package/es/components/interaction/tabs-icon/index.vue.mjs +6 -7
  129. package/es/components/interaction-input/index.vue.mjs +1 -1
  130. package/es/components/interaction-input/index.vue2.mjs +3 -4
  131. package/es/components/interaction-select/index.vue.mjs +1 -1
  132. package/es/components/interaction-select/index.vue2.mjs +6 -7
  133. package/es/components/interaction-slider/index.vue.mjs +2 -2
  134. package/es/components/interaction-slider/index.vue2.mjs +34 -35
  135. package/es/components/interaction-switch/index.vue.mjs +2 -2
  136. package/es/components/interaction-switch/index.vue2.mjs +20 -20
  137. package/es/components/interaction-tabs/index.vue.mjs +2 -2
  138. package/es/components/interaction-tabs/index.vue2.mjs +1 -1
  139. package/es/components/interaction-tabs2/index.vue.mjs +2 -2
  140. package/es/components/interaction-tabs2/index.vue2.mjs +1 -1
  141. package/es/components/map-earth-basic/index.vue.d.ts +0 -2
  142. package/es/components/map-earth-basic/index.vue.mjs +14 -15
  143. package/es/components/map-earth-cool-tech/index.vue.mjs +14 -15
  144. package/es/components/map-earth-fly-line/index.vue.d.ts +0 -4
  145. package/es/components/map-earth-fly-line/index.vue.mjs +8 -9
  146. package/es/components/map-earth-hacker/index.vue.d.ts +2 -4
  147. package/es/components/map-earth-hacker/index.vue.mjs +19 -20
  148. package/es/components/map-earth-particle/index.vue.d.ts +0 -4
  149. package/es/components/map-earth-particle/index.vue.mjs +14 -15
  150. package/es/components/media-audio/index.vue.mjs +2 -2
  151. package/es/components/media-audio/index.vue2.mjs +5 -5
  152. package/es/components/media-audio-dynamic/index.vue.mjs +1 -1
  153. package/es/components/media-audio-dynamic/index.vue2.mjs +4 -5
  154. package/es/components/media-flv/index.vue.mjs +1 -1
  155. package/es/components/media-iframe/index.vue.mjs +2 -2
  156. package/es/components/media-iframe/index.vue2.mjs +1 -1
  157. package/es/components/media-image-dynamic/index.vue.mjs +2 -2
  158. package/es/components/media-image-dynamic/index.vue2.mjs +6 -7
  159. package/es/components/media-m3u8/index.vue.mjs +1 -1
  160. package/es/components/media-m3u8-dynamic/index.vue.mjs +3 -4
  161. package/es/components/media-video/index.vue.mjs +2 -2
  162. package/es/components/media-video/index.vue2.mjs +1 -1
  163. package/es/components/media-video-dynamic/index.vue.mjs +2 -2
  164. package/es/components/media-video-dynamic/index.vue2.mjs +3 -4
  165. package/es/components/scene-amap2d/index.vue.mjs +1 -1
  166. package/es/components/scene-amap2d/index.vue2.mjs +13 -14
  167. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  168. package/es/components/scene-amap3d/index.vue2.mjs +4 -5
  169. package/es/components/scene-default/index.vue.mjs +2 -2
  170. package/es/components/scene-default/index.vue2.mjs +1 -1
  171. package/es/components/scene-map3d/index.vue.mjs +2 -2
  172. package/es/components/scene-map3d/index.vue2.mjs +19 -20
  173. package/es/components/scene-ue-iframe/index.vue.mjs +2 -2
  174. package/es/components/scene-ue-iframe/index.vue2.mjs +1 -1
  175. package/es/components/scene-ue-shj/index.vue.mjs +2 -2
  176. package/es/components/scene-ue-shj/index.vue2.mjs +1 -1
  177. package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
  178. package/es/components/scene-unity-iframe/index.vue2.mjs +1 -1
  179. package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
  180. package/es/components/scene-unity-webgl/index.vue2.mjs +1 -1
  181. package/es/components/scene-vr/index.vue.mjs +2 -2
  182. package/es/components/scene-vr/index.vue2.mjs +3 -3
  183. package/es/components/text/list/index.vue.mjs +10 -11
  184. package/es/components/text-count-down/index.vue.mjs +1 -1
  185. package/es/components/text-count-down/index.vue2.mjs +1 -1
  186. package/es/components/text-over-number/index.vue.mjs +1 -1
  187. package/es/components/text-over-number/index.vue2.mjs +15 -16
  188. package/es/components/text-real-time/index.vue.mjs +1 -1
  189. package/es/components/text-real-time/index.vue2.mjs +2 -2
  190. package/es/components/text-row-scroll/index.vue.mjs +2 -2
  191. package/es/components/text-row-scroll/index.vue2.mjs +30 -31
  192. package/es/components/text-table-basic/index.vue.mjs +1 -1
  193. package/es/components/text-table-basic/index.vue2.mjs +43 -44
  194. package/es/components/text-table-scroll/index.vue.mjs +2 -2
  195. package/es/components/text-table-scroll/index.vue2.mjs +58 -59
  196. package/es/components/text-text-dynamic/index.vue.mjs +1 -1
  197. package/es/components/text-text-dynamic/index.vue2.mjs +16 -17
  198. package/es/env.d.ts +0 -1
  199. package/es/index.d.ts +0 -7
  200. package/es/index.mjs +370 -384
  201. package/es/widgets.css +1 -1
  202. package/package.json +2 -2
@@ -1,9 +1,8 @@
1
1
  import { defineComponent as l, watch as i, createElementBlock as b, openBlock as O, createElementVNode as g, unref as w } from "vue";
2
2
  import { cloneDeep as r, isEqual as k } from "lodash";
3
- import { SHJDatasourceV2 as x } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as x, SHJParseEvent as u } from "@zerov/core";
4
4
  import { useChart as D } from "../../commons/core/useChart.mjs";
5
- import { SHJParseEvent as u } from "../../commons/plugins/event/index.mjs";
6
- const y = { class: "zerov-widget" }, C = ["id"], V = l({ name: "zv-chart-other-grid-percentage" }), J = /* @__PURE__ */ l({
5
+ const y = { class: "zerov-widget" }, C = ["id"], V = l({ name: "zv-chart-other-grid-percentage" }), I = /* @__PURE__ */ l({
7
6
  ...V,
8
7
  props: {
9
8
  basicOption: {},
@@ -79,5 +78,5 @@ const y = { class: "zerov-widget" }, C = ["id"], V = l({ name: "zv-chart-other-g
79
78
  }
80
79
  });
81
80
  export {
82
- J as default
81
+ I as default
83
82
  };
@@ -1,10 +1,9 @@
1
- import { defineComponent as u, watch as i, createElementBlock as v, openBlock as b, createElementVNode as E, unref as O } from "vue";
1
+ import { defineComponent as u, watch as n, createElementBlock as v, openBlock as b, createElementVNode as E, unref as O } from "vue";
2
2
  import { cloneDeep as r, isEqual as _ } from "lodash";
3
- import { SHJDatasourceV2 as g } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as g, SHJParseEvent as i } from "@zerov/core";
4
4
  import { useChart as D } from "../../commons/core/useChart.mjs";
5
5
  import { parseOtherData as k } from "../../commons/utils/parseOtherData.mjs";
6
- import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
7
- const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-heatmap" }), S = /* @__PURE__ */ u({
6
+ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-heatmap" }), L = /* @__PURE__ */ u({
8
7
  ...C,
9
8
  props: {
10
9
  basicOption: {},
@@ -20,13 +19,13 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-h
20
19
  "chart-mouseout",
21
20
  "chart-contextmenu"
22
21
  ],
23
- setup(p, { expose: m, emit: h }) {
24
- const e = p, d = h, {
22
+ setup(p, { expose: h, emit: d }) {
23
+ const e = p, m = d, {
25
24
  id: l,
26
25
  setOption: a,
27
26
  chart: f,
28
- renderChart: o,
29
- renderData: c
27
+ renderChart: c,
28
+ renderData: o
30
29
  } = D({
31
30
  basicOption: r(e.basicOption),
32
31
  useEvents: r(e.useEvents),
@@ -36,33 +35,33 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-h
36
35
  sources: e.sources,
37
36
  callback: ({ data: s }) => {
38
37
  try {
39
- n.parseEvents(e.useEvents, "dataListener", s), a(k(r(s), e.basicOption));
38
+ i.parseEvents(e.useEvents, "dataListener", s), a(k(r(s), e.basicOption));
40
39
  } catch {
41
- n.parseEvents(e.useEvents, "dataListener", null), a(t);
40
+ i.parseEvents(e.useEvents, "dataListener", null), a(t);
42
41
  }
43
42
  }
44
43
  });
45
44
  },
46
- emit: d
45
+ emit: m
47
46
  });
48
- return i(() => e.sources, () => {
49
- e.sources && e.sources.length > 0 && c(e.basicOption);
47
+ return n(() => e.sources, () => {
48
+ e.sources && e.sources.length > 0 && o(e.basicOption);
50
49
  }, {
51
50
  deep: !0
52
- }), i(() => r(e.basicOption), (t, s) => {
53
- _(t, s) || o(t);
51
+ }), n(() => r(e.basicOption), (t, s) => {
52
+ _(t, s) || c(t);
54
53
  }, {
55
54
  deep: !0
56
- }), m({
55
+ }), h({
57
56
  getEchartsInstance: () => f.value,
58
57
  refresh: () => {
59
- e.sources && e.sources.length > 0 && o(e.basicOption), c(e.basicOption);
58
+ e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
60
59
  },
61
60
  refreshView: () => {
62
- e.sources && e.sources.length > 0 && o(e.basicOption);
61
+ e.sources && e.sources.length > 0 && c(e.basicOption);
63
62
  },
64
63
  refreshData: () => {
65
- c(e.basicOption);
64
+ o(e.basicOption);
66
65
  }
67
66
  }), (t, s) => (b(), v("div", w, [
68
67
  E("div", {
@@ -73,5 +72,5 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-h
73
72
  }
74
73
  });
75
74
  export {
76
- S as default
75
+ L as default
77
76
  };
@@ -1,9 +1,8 @@
1
1
  import { defineComponent as u, watch as n, createElementBlock as v, openBlock as b, createElementVNode as E, unref as _ } from "vue";
2
2
  import { cloneDeep as r, isEqual as O } from "lodash";
3
- import { SHJDatasourceV2 as g } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as g, SHJParseEvent as i } from "@zerov/core";
4
4
  import { useChart as k } from "../../commons/core/useChart.mjs";
5
- import { SHJParseEvent as i } from "../../commons/plugins/event/index.mjs";
6
- const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-label-gauge" }), J = /* @__PURE__ */ u({
5
+ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-label-gauge" }), I = /* @__PURE__ */ u({
7
6
  ...x,
8
7
  props: {
9
8
  basicOption: {},
@@ -19,9 +18,9 @@ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-l
19
18
  "chart-mouseout",
20
19
  "chart-contextmenu"
21
20
  ],
22
- setup(d, { expose: p, emit: l }) {
23
- const e = d, m = l, {
24
- id: h,
21
+ setup(d, { expose: l, emit: p }) {
22
+ const e = d, h = p, {
23
+ id: m,
25
24
  setOption: o,
26
25
  chart: f,
27
26
  renderChart: c,
@@ -45,7 +44,7 @@ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-l
45
44
  }
46
45
  });
47
46
  },
48
- emit: m
47
+ emit: h
49
48
  });
50
49
  return n(() => e.sources, () => {
51
50
  e.sources && e.sources.length > 0 && a(e.basicOption);
@@ -55,7 +54,7 @@ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-l
55
54
  O(s, t) || c(s);
56
55
  }, {
57
56
  deep: !0
58
- }), p({
57
+ }), l({
59
58
  getEchartsInstance: () => f.value,
60
59
  refresh: () => {
61
60
  e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
@@ -68,12 +67,12 @@ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-l
68
67
  }
69
68
  }), (s, t) => (b(), v("div", w, [
70
69
  E("div", {
71
- id: _(h),
70
+ id: _(m),
72
71
  class: "widget"
73
72
  }, null, 8, D)
74
73
  ]));
75
74
  }
76
75
  });
77
76
  export {
78
- J as default
77
+ I as default
79
78
  };
@@ -1,9 +1,8 @@
1
1
  import { defineComponent as u, watch as i, createElementBlock as v, openBlock as E, createElementVNode as _, unref as b } from "vue";
2
2
  import { cloneDeep as r, isEqual as O } from "lodash";
3
- import { SHJDatasourceV2 as g } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as g, SHJParseEvent as n } from "@zerov/core";
4
4
  import { useChart as k } from "../../commons/core/useChart.mjs";
5
- import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
6
- const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-liquidfill" }), I = /* @__PURE__ */ u({
5
+ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-liquidfill" }), H = /* @__PURE__ */ u({
7
6
  ...x,
8
7
  props: {
9
8
  basicOption: {},
@@ -29,15 +28,15 @@ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-l
29
28
  } = k({
30
29
  basicOption: r(e.basicOption),
31
30
  useEvents: r(e.useEvents),
32
- customRenderData: (t) => {
33
- t = r(t), g.parse({
31
+ customRenderData: (s) => {
32
+ s = r(s), g.parse({
34
33
  tId: e.uuid,
35
34
  sources: e.sources,
36
- callback: ({ data: s }) => {
35
+ callback: ({ data: t }) => {
37
36
  try {
38
- n.parseEvents(e.useEvents, "dataListener", s), t.series[0].data = r(s[0].data), o(t);
37
+ n.parseEvents(e.useEvents, "dataListener", t), s.series[0].data = r(t[0].data), o(s);
39
38
  } catch {
40
- n.parseEvents(e.useEvents, "dataListener", null), o(t);
39
+ n.parseEvents(e.useEvents, "dataListener", null), o(s);
41
40
  }
42
41
  }
43
42
  });
@@ -48,8 +47,8 @@ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-l
48
47
  e.sources && e.sources.length > 0 && a(e.basicOption);
49
48
  }, {
50
49
  deep: !0
51
- }), i(() => r(e.basicOption), (t, s) => {
52
- O(t, s) || c(t);
50
+ }), i(() => r(e.basicOption), (s, t) => {
51
+ O(s, t) || c(s);
53
52
  }, {
54
53
  deep: !0
55
54
  }), l({
@@ -63,7 +62,7 @@ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-l
63
62
  refreshData: () => {
64
63
  a(e.basicOption);
65
64
  }
66
- }), (t, s) => (E(), v("div", w, [
65
+ }), (s, t) => (E(), v("div", w, [
67
66
  _("div", {
68
67
  id: b(m),
69
68
  class: "widget"
@@ -72,5 +71,5 @@ const w = { class: "zerov-widget" }, D = ["id"], x = u({ name: "zv-chart-other-l
72
71
  }
73
72
  });
74
73
  export {
75
- I as default
74
+ H as default
76
75
  };
@@ -1,10 +1,9 @@
1
1
  import { defineComponent as u, watch as i, createElementBlock as b, openBlock as v, createElementVNode as E, unref as O } from "vue";
2
2
  import { cloneDeep as r, isEqual as _ } from "lodash";
3
- import { SHJDatasourceV2 as D } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as D, SHJParseEvent as n } from "@zerov/core";
4
4
  import { parseOtherData as g } from "../../commons/utils/parseOtherData.mjs";
5
5
  import { useChart as k } from "../../commons/core/useChart.mjs";
6
- import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
7
- const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-parallel-basic" }), S = /* @__PURE__ */ u({
6
+ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-parallel-basic" }), L = /* @__PURE__ */ u({
8
7
  ...C,
9
8
  props: {
10
9
  basicOption: {},
@@ -20,13 +19,13 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-p
20
19
  "chart-mouseout",
21
20
  "chart-contextmenu"
22
21
  ],
23
- setup(p, { expose: l, emit: m }) {
24
- const e = p, d = m, {
25
- id: h,
26
- setOption: a,
22
+ setup(p, { expose: l, emit: d }) {
23
+ const e = p, h = d, {
24
+ id: m,
25
+ setOption: o,
27
26
  chart: f,
28
27
  renderChart: c,
29
- renderData: o
28
+ renderData: a
30
29
  } = k({
31
30
  basicOption: r(e.basicOption),
32
31
  useEvents: r(e.useEvents),
@@ -36,17 +35,17 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-p
36
35
  sources: e.sources,
37
36
  callback: ({ data: s }) => {
38
37
  try {
39
- n.parseEvents(e.useEvents, "dataListener", s), a(g(r(s), e.basicOption));
38
+ n.parseEvents(e.useEvents, "dataListener", s), o(g(r(s), e.basicOption));
40
39
  } catch {
41
- n.parseEvents(e.useEvents, "dataListener", null), a(t);
40
+ n.parseEvents(e.useEvents, "dataListener", null), o(t);
42
41
  }
43
42
  }
44
43
  });
45
44
  },
46
- emit: d
45
+ emit: h
47
46
  });
48
47
  return i(() => e.sources, () => {
49
- o(e.basicOption);
48
+ a(e.basicOption);
50
49
  }, {
51
50
  deep: !0
52
51
  }), i(() => r(e.basicOption), (t, s) => {
@@ -56,22 +55,22 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-p
56
55
  }), l({
57
56
  getEchartsInstance: () => f.value,
58
57
  refresh: () => {
59
- e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
58
+ e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
60
59
  },
61
60
  refreshView: () => {
62
61
  e.sources && e.sources.length > 0 && c(e.basicOption);
63
62
  },
64
63
  refreshData: () => {
65
- o(e.basicOption);
64
+ a(e.basicOption);
66
65
  }
67
66
  }), (t, s) => (v(), b("div", w, [
68
67
  E("div", {
69
- id: O(h),
68
+ id: O(m),
70
69
  class: "widget"
71
70
  }, null, 8, x)
72
71
  ]));
73
72
  }
74
73
  });
75
74
  export {
76
- S as default
75
+ L as default
77
76
  };
@@ -1,10 +1,9 @@
1
1
  import { defineComponent as p, watch as i, createElementBlock as E, openBlock as _, createElementVNode as b, unref as O } from "vue";
2
2
  import { cloneDeep as r, isEqual as g } from "lodash";
3
- import { SHJDatasourceV2 as k } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as k, SHJParseEvent as u } from "@zerov/core";
4
4
  import { parseOtherData as D } from "../../commons/utils/parseOtherData.mjs";
5
5
  import { useChart as w } from "../../commons/core/useChart.mjs";
6
- import { SHJParseEvent as u } from "../../commons/plugins/event/index.mjs";
7
- const x = { class: "zerov-widget" }, C = ["id"], V = p({ name: "zv-chart-other-parallel-mul" }), L = /* @__PURE__ */ p({
6
+ const x = { class: "zerov-widget" }, C = ["id"], V = p({ name: "zv-chart-other-parallel-mul" }), J = /* @__PURE__ */ p({
8
7
  ...V,
9
8
  props: {
10
9
  basicOption: {},
@@ -20,8 +19,8 @@ const x = { class: "zerov-widget" }, C = ["id"], V = p({ name: "zv-chart-other-p
20
19
  "chart-mouseout",
21
20
  "chart-contextmenu"
22
21
  ],
23
- setup(l, { expose: m, emit: d }) {
24
- const e = l, h = d, {
22
+ setup(l, { expose: d, emit: m }) {
23
+ const e = l, h = m, {
25
24
  id: f,
26
25
  setOption: o,
27
26
  chart: v,
@@ -53,7 +52,7 @@ const x = { class: "zerov-widget" }, C = ["id"], V = p({ name: "zv-chart-other-p
53
52
  g(t, s) || a(t);
54
53
  }, {
55
54
  deep: !0
56
- }), m({
55
+ }), d({
57
56
  getEchartsInstance: () => v.value,
58
57
  refresh: () => {
59
58
  e.sources && e.sources.length > 0 && a(e.basicOption), c(e.basicOption);
@@ -73,5 +72,5 @@ const x = { class: "zerov-widget" }, C = ["id"], V = p({ name: "zv-chart-other-p
73
72
  }
74
73
  });
75
74
  export {
76
- L as default
75
+ J as default
77
76
  };
@@ -1,11 +1,10 @@
1
- import { defineComponent as E, watch as l, createElementBlock as k, openBlock as w, createElementVNode as D, unref as y } from "vue";
1
+ import { defineComponent as E, watch as m, createElementBlock as k, openBlock as w, createElementVNode as D, unref as y } from "vue";
2
2
  import { cloneDeep as o, isEqual as V } from "lodash";
3
- import { SHJDatasourceV2 as C } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as C, SHJParseEvent as f } from "@zerov/core";
4
4
  import { useChart as N } from "../../commons/core/useChart.mjs";
5
- import { parseDataset as f } from "../../commons/utils/parseDataset.mjs";
5
+ import { parseDataset as p } from "../../commons/utils/parseDataset.mjs";
6
6
  import { cloneSeries as S } from "../../commons/utils/cloneSeries.mjs";
7
- import { SHJParseEvent as p } from "../../commons/plugins/event/index.mjs";
8
- const q = { class: "zerov-widget" }, z = ["id"], B = E({ name: "zv-chart-other-radar" }), R = /* @__PURE__ */ E({
7
+ const q = { class: "zerov-widget" }, z = ["id"], B = E({ name: "zv-chart-other-radar" }), K = /* @__PURE__ */ E({
9
8
  ...B,
10
9
  props: {
11
10
  basicOption: {},
@@ -24,10 +23,10 @@ const q = { class: "zerov-widget" }, z = ["id"], B = E({ name: "zv-chart-other-r
24
23
  setup(b, { expose: O, emit: _ }) {
25
24
  const e = b, v = _, {
26
25
  id: x,
27
- setOption: m,
26
+ setOption: h,
28
27
  chart: g,
29
28
  renderChart: n,
30
- renderData: i
29
+ renderData: u
31
30
  } = N({
32
31
  basicOption: o(e.basicOption),
33
32
  useEvents: o(e.useEvents),
@@ -37,18 +36,18 @@ const q = { class: "zerov-widget" }, z = ["id"], B = E({ name: "zv-chart-other-r
37
36
  sources: e.sources,
38
37
  callback: ({ data: c }) => {
39
38
  try {
40
- let u = function(r) {
39
+ let i = function(r) {
41
40
  return r.reduce((t, a) => t.includes(a) ? t : [...t, a], []);
42
41
  };
43
- p.parseEvents(e.useEvents, "dataListener", c), s.dataset = f(o(c)), s.series = S(c, s.series);
44
- const d = [], h = [];
42
+ f.parseEvents(e.useEvents, "dataListener", c), s.dataset = p(o(c)), s.series = S(c, s.series);
43
+ const d = [], l = [];
45
44
  s.dataset.source.forEach((r) => {
46
45
  for (const t in r)
47
46
  if (Object.prototype.hasOwnProperty.call(r, t)) {
48
47
  const a = r[t];
49
- Number(a) && (h.push(Number(a)), d.push(t));
48
+ Number(a) && (l.push(Number(a)), d.push(t));
50
49
  }
51
- }), s.radar.indicator = [], u(d).forEach((r) => {
50
+ }), s.radar.indicator = [], i(d).forEach((r) => {
52
51
  s.radar.indicator.push(
53
52
  {
54
53
  text: r,
@@ -56,34 +55,34 @@ const q = { class: "zerov-widget" }, z = ["id"], B = E({ name: "zv-chart-other-r
56
55
  }
57
56
  );
58
57
  }), s.radar.indicator.forEach((r) => {
59
- r.max = h.sort((t, a) => a - t)[0];
60
- }), s.dataset = f(o(c), u(d)), m(s);
58
+ r.max = l.sort((t, a) => a - t)[0];
59
+ }), s.dataset = p(o(c), i(d)), h(s);
61
60
  } catch {
62
- p.parseEvents(e.useEvents, "dataListener", null), m(s);
61
+ f.parseEvents(e.useEvents, "dataListener", null), h(s);
63
62
  }
64
63
  }
65
64
  });
66
65
  },
67
66
  emit: v
68
67
  });
69
- return l(() => e.sources, () => {
70
- e.sources && e.sources.length > 0 && i(e.basicOption);
68
+ return m(() => e.sources, () => {
69
+ e.sources && e.sources.length > 0 && u(e.basicOption);
71
70
  }, {
72
71
  deep: !0
73
- }), l(() => o(e.basicOption), (s, c) => {
72
+ }), m(() => o(e.basicOption), (s, c) => {
74
73
  V(s, c) || n(s);
75
74
  }, {
76
75
  deep: !0
77
76
  }), O({
78
77
  getEchartsInstance: () => g.value,
79
78
  refresh: () => {
80
- e.sources && e.sources.length > 0 && n(e.basicOption), i(e.basicOption);
79
+ e.sources && e.sources.length > 0 && n(e.basicOption), u(e.basicOption);
81
80
  },
82
81
  refreshView: () => {
83
82
  e.sources && e.sources.length > 0 && n(e.basicOption);
84
83
  },
85
84
  refreshData: () => {
86
- i(e.basicOption);
85
+ u(e.basicOption);
87
86
  }
88
87
  }), (s, c) => (w(), k("div", q, [
89
88
  D("div", {
@@ -94,5 +93,5 @@ const q = { class: "zerov-widget" }, z = ["id"], B = E({ name: "zv-chart-other-r
94
93
  }
95
94
  });
96
95
  export {
97
- R as default
96
+ K as default
98
97
  };
@@ -1,11 +1,10 @@
1
1
  import { defineComponent as u, watch as i, createElementBlock as v, openBlock as E, createElementVNode as _, unref as b } from "vue";
2
2
  import { cloneDeep as r, isEqual as O } from "lodash";
3
- import { SHJDatasourceV2 as g } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as g, SHJParseEvent as n } from "@zerov/core";
4
4
  import { useChart as k } from "../../commons/core/useChart.mjs";
5
5
  import { parseDataset as D } from "../../commons/utils/parseDataset.mjs";
6
6
  import { cloneSeries as w } from "../../commons/utils/cloneSeries.mjs";
7
- import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
8
- const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-radar-stack" }), y = /* @__PURE__ */ u({
7
+ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-radar-stack" }), q = /* @__PURE__ */ u({
9
8
  ...S,
10
9
  props: {
11
10
  basicOption: {},
@@ -21,8 +20,8 @@ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-r
21
20
  "chart-mouseout",
22
21
  "chart-contextmenu"
23
22
  ],
24
- setup(m, { expose: p, emit: d }) {
25
- const e = m, l = d, {
23
+ setup(p, { expose: d, emit: m }) {
24
+ const e = p, l = m, {
26
25
  id: h,
27
26
  setOption: o,
28
27
  chart: f,
@@ -54,7 +53,7 @@ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-r
54
53
  O(s, t) || c(s);
55
54
  }, {
56
55
  deep: !0
57
- }), p({
56
+ }), d({
58
57
  getEchartsInstance: () => f.value,
59
58
  refresh: () => {
60
59
  e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
@@ -74,5 +73,5 @@ const x = { class: "zerov-widget" }, C = ["id"], S = u({ name: "zv-chart-other-r
74
73
  }
75
74
  });
76
75
  export {
77
- y as default
76
+ q as default
78
77
  };
@@ -1,10 +1,9 @@
1
- import { defineComponent as u, watch as i, createElementBlock as b, openBlock as v, createElementVNode as E, unref as O } from "vue";
1
+ import { defineComponent as u, watch as n, createElementBlock as b, openBlock as v, createElementVNode as E, unref as O } from "vue";
2
2
  import { cloneDeep as r, isEqual as _ } from "lodash";
3
- import { SHJDatasourceV2 as D } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as D, SHJParseEvent as i } from "@zerov/core";
4
4
  import { parseOtherData as g } from "../../commons/utils/parseOtherData.mjs";
5
5
  import { useChart as k } from "../../commons/core/useChart.mjs";
6
- import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
7
- const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-sunburst-basic" }), S = /* @__PURE__ */ u({
6
+ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-sunburst-basic" }), L = /* @__PURE__ */ u({
8
7
  ...C,
9
8
  props: {
10
9
  basicOption: {},
@@ -20,8 +19,8 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-s
20
19
  "chart-mouseout",
21
20
  "chart-contextmenu"
22
21
  ],
23
- setup(p, { expose: m, emit: d }) {
24
- const e = p, h = d, {
22
+ setup(p, { expose: d, emit: h }) {
23
+ const e = p, m = h, {
25
24
  id: l,
26
25
  setOption: a,
27
26
  chart: f,
@@ -36,24 +35,24 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-s
36
35
  sources: e.sources,
37
36
  callback: ({ data: s }) => {
38
37
  try {
39
- n.parseEvents(e.useEvents, "dataListener", s), a(g(r(s), e.basicOption));
38
+ i.parseEvents(e.useEvents, "dataListener", s), a(g(r(s), e.basicOption));
40
39
  } catch {
41
- n.parseEvents(e.useEvents, "dataListener", null), a(t);
40
+ i.parseEvents(e.useEvents, "dataListener", null), a(t);
42
41
  }
43
42
  }
44
43
  });
45
44
  },
46
- emit: h
45
+ emit: m
47
46
  });
48
- return i(() => e.sources, () => {
47
+ return n(() => e.sources, () => {
49
48
  o(e.basicOption);
50
49
  }, {
51
50
  deep: !0
52
- }), i(() => r(e.basicOption), (t, s) => {
51
+ }), n(() => r(e.basicOption), (t, s) => {
53
52
  _(t, s) || c(t);
54
53
  }, {
55
54
  deep: !0
56
- }), m({
55
+ }), d({
57
56
  getEchartsInstance: () => f.value,
58
57
  refresh: () => {
59
58
  e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
@@ -73,5 +72,5 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-s
73
72
  }
74
73
  });
75
74
  export {
76
- S as default
75
+ L as default
77
76
  };
@@ -1,10 +1,9 @@
1
- import { defineComponent as u, watch as i, createElementBlock as b, openBlock as v, createElementVNode as E, unref as O } from "vue";
1
+ import { defineComponent as u, watch as n, createElementBlock as b, openBlock as v, createElementVNode as E, unref as O } from "vue";
2
2
  import { cloneDeep as r, isEqual as _ } from "lodash";
3
- import { SHJDatasourceV2 as D } from "../../commons/plugins/datasource/index.mjs";
3
+ import { SHJDatasourceV2 as D, SHJParseEvent as i } from "@zerov/core";
4
4
  import { parseOtherData as g } from "../../commons/utils/parseOtherData.mjs";
5
5
  import { useChart as k } from "../../commons/core/useChart.mjs";
6
- import { SHJParseEvent as n } from "../../commons/plugins/event/index.mjs";
7
- const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-sunburst-basic2" }), S = /* @__PURE__ */ u({
6
+ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-sunburst-basic2" }), L = /* @__PURE__ */ u({
8
7
  ...C,
9
8
  props: {
10
9
  basicOption: {},
@@ -20,8 +19,8 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-s
20
19
  "chart-mouseout",
21
20
  "chart-contextmenu"
22
21
  ],
23
- setup(p, { expose: m, emit: d }) {
24
- const e = p, h = d, {
22
+ setup(p, { expose: d, emit: h }) {
23
+ const e = p, m = h, {
25
24
  id: l,
26
25
  setOption: a,
27
26
  chart: f,
@@ -36,24 +35,24 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-s
36
35
  sources: e.sources,
37
36
  callback: ({ data: s }) => {
38
37
  try {
39
- n.parseEvents(e.useEvents, "dataListener", s), a(g(r(s), e.basicOption));
38
+ i.parseEvents(e.useEvents, "dataListener", s), a(g(r(s), e.basicOption));
40
39
  } catch {
41
- n.parseEvents(e.useEvents, "dataListener", null), a(t);
40
+ i.parseEvents(e.useEvents, "dataListener", null), a(t);
42
41
  }
43
42
  }
44
43
  });
45
44
  },
46
- emit: h
45
+ emit: m
47
46
  });
48
- return i(() => e.sources, () => {
47
+ return n(() => e.sources, () => {
49
48
  o(e.basicOption);
50
49
  }, {
51
50
  deep: !0
52
- }), i(() => r(e.basicOption), (t, s) => {
51
+ }), n(() => r(e.basicOption), (t, s) => {
53
52
  _(t, s) || c(t);
54
53
  }, {
55
54
  deep: !0
56
- }), m({
55
+ }), d({
57
56
  getEchartsInstance: () => f.value,
58
57
  refresh: () => {
59
58
  e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
@@ -73,5 +72,5 @@ const w = { class: "zerov-widget" }, x = ["id"], C = u({ name: "zv-chart-other-s
73
72
  }
74
73
  });
75
74
  export {
76
- S as default
75
+ L as default
77
76
  };