@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,11 +1,10 @@
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";
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 c, 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 m, cloneDeep as w, isEqual as R } from "lodash";
3
3
  import { nanoid as k } from "nanoid";
4
4
  import { RecycleScroller as Q } from "vue-virtual-scroller";
5
+ import { SHJParseEvent as d, SHJDatasourceV2 as U } from "@zerov/core";
5
6
  import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
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({
7
+ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ name: "zv-text-table-basic" }), ne = /* @__PURE__ */ W({
9
8
  ...Z,
10
9
  props: {
11
10
  basicOption: {},
@@ -16,26 +15,26 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
16
15
  emits: ["on-click-item", "on-click-row", "on-mouseenter-row", "on-mouseout-row"],
17
16
  setup(B, { expose: N, emit: j }) {
18
17
  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
18
+ "2a4865d0": e.basicOption.css.table.borderWidth + "px",
19
+ "2fd481c0": e.basicOption.css.table.borderStyle,
20
+ "2ef09372": e.basicOption.css.table.borderColor,
21
+ "0d48809a": e.basicOption.css.table.paddingLeft + "px",
22
+ "0b126780": e.basicOption.css.table.alignItems,
23
+ "1f04610e": e.basicOption.css.table.justifyContent,
24
+ "537a73ac": e.basicOption.css.header.background,
25
+ "961f29ec": e.basicOption.css.header.height + "px",
26
+ "4b4110e7": e.basicOption.css.header.color,
27
+ "5b7a6621": e.basicOption.css.header.fontSize + "px",
28
+ "0c3816ba": e.basicOption.css.header.fontWeight,
29
+ "42d80bb4": e.basicOption.css.header.fontStyle,
30
+ "7f23be9f": e.basicOption.css.body.height + "px",
31
+ "0d3dba96": e.basicOption.css.body.background,
32
+ e0506d08: e.basicOption.css.body.color,
33
+ 66272876: e.basicOption.css.body.fontSize + "px",
34
+ "1d02512e": e.basicOption.css.body.fontWeight,
35
+ "1142603b": e.basicOption.css.body.fontStyle
37
36
  }));
38
- const m = j, v = S(k()), r = S([]), i = B, H = () => {
37
+ const f = j, v = S(k()), r = S([]), i = B, H = () => {
39
38
  if (!r.value.length) return;
40
39
  const e = Object.keys(r.value[0]), t = i.basicOption.columns || [], s = e.map((o, a) => {
41
40
  const n = t.find((C) => C.name === o) || {};
@@ -55,7 +54,7 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
55
54
  };
56
55
  });
57
56
  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 = () => {
57
+ }, h = E(() => i.basicOption.columns || []), y = E(() => h.value.filter((e) => e.visible).map((e) => e.name)), l = () => {
59
58
  U.parse({
60
59
  tId: i.uuid,
61
60
  sources: i.sources,
@@ -93,41 +92,41 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
93
92
  ...t.textStyle
94
93
  // 用户自定义样式
95
94
  };
96
- }, q = f((e, t) => {
95
+ }, q = m((e, t) => {
97
96
  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) => {
97
+ f("on-click-row", s), d.parseEvents(i.useEvents, "on-click-row", s);
98
+ }, 100), F = m((e, t) => {
100
99
  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) => {
100
+ f("on-mouseenter-row", s), d.parseEvents(i.useEvents, "on-mouseenter-row", s);
101
+ }, 100), P = m((e, t) => {
103
102
  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) => {
103
+ f("on-mouseout-row", s), d.parseEvents(i.useEvents, "on-mouseout-row", s);
104
+ }, 100), T = m((e, t, s, o) => {
106
105
  const a = { row: e, item: t, rowIndex: s, columnIndex: o };
107
- m("on-click-item", a), d.parseEvents(i.useEvents, "on-click-item", a);
106
+ f("on-click-item", a), d.parseEvents(i.useEvents, "on-click-item", a);
108
107
  }, 100);
109
108
  return z(() => w(i.sources), (e, t) => {
110
- R(e, t) || c();
109
+ R(e, t) || l();
111
110
  }, { deep: !0 }), z(() => w(i.basicOption), (e, t) => {
112
- R(e, t) || c();
113
- }, { deep: !0 }), G(() => c()), N({
114
- refresh: () => c(),
115
- refreshView: () => c(),
116
- refreshData: () => c()
111
+ R(e, t) || l();
112
+ }, { deep: !0 }), G(() => l()), N({
113
+ refresh: () => l(),
114
+ refreshView: () => l(),
115
+ refreshData: () => l()
117
116
  }), (e, t) => {
118
117
  const s = K("el-tooltip");
119
- return r.value.length > 0 ? (u(), l("div", {
118
+ return r.value.length > 0 ? (u(), c("div", {
120
119
  key: v.value,
121
120
  class: "table-scroll"
122
121
  }, [
123
- e.basicOption.css.header.show ? (u(), l("div", {
122
+ e.basicOption.css.header.show ? (u(), c("div", {
124
123
  key: 0,
125
124
  class: "table-header",
126
125
  style: p({
127
126
  "--header-background-image": `url(${e.basicOption.css.header.background})`
128
127
  })
129
128
  }, [
130
- (u(!0), l(V, null, I(y.value, (o) => (u(), l("div", {
129
+ (u(!0), c(V, null, I(y.value, (o) => (u(), c("div", {
131
130
  key: o,
132
131
  class: "th",
133
132
  style: p({ width: g(o) })
@@ -153,7 +152,7 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
153
152
  onMouseenter: (n) => b(F)(o, a),
154
153
  onMouseout: (n) => b(P)(o, a)
155
154
  }, [
156
- (u(!0), l(V, null, I(y.value, (n) => (u(), l("div", {
155
+ (u(!0), c(V, null, I(y.value, (n) => (u(), c("div", {
157
156
  key: n,
158
157
  class: "td",
159
158
  style: p({ width: g(n) }),
@@ -179,5 +178,5 @@ const X = ["onClick", "onMouseenter", "onMouseout"], Y = ["onClick"], Z = W({ na
179
178
  }
180
179
  });
181
180
  export {
182
- ie as default
181
+ ne as default
183
182
  };
@@ -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-e3c62825"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6008a797"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -2,9 +2,8 @@ import { defineComponent as M, useCssVars as j, ref as O, onMounted as A, watch
2
2
  import { cloneDeep as k, isEqual as z } from "lodash";
3
3
  import { Vue3SeamlessScroll as U } from "vue3-seamless-scroll";
4
4
  import { nanoid as w } from "nanoid";
5
- import { SHJDatasourceV2 as G } from "../../commons/plugins/datasource/index.mjs";
6
- import { SHJParseEvent as p } from "../../commons/plugins/event/index.mjs";
7
- const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key: 1 }, Y = M({ name: "zv-text-table-scroll" }), ne = /* @__PURE__ */ M({
5
+ import { SHJDatasourceV2 as G, SHJParseEvent as p } from "@zerov/core";
6
+ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key: 1 }, Y = M({ name: "zv-text-table-scroll" }), oe = /* @__PURE__ */ M({
8
7
  ...Y,
9
8
  props: {
10
9
  basicOption: {},
@@ -15,48 +14,48 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
15
14
  emits: ["on-click-item", "on-click-row", "on-mouseenter-row", "on-mouseout-row"],
16
15
  setup($, { expose: D, emit: F }) {
17
16
  j((e) => ({
18
- "0811a92e": e.basicOption.css.table.borderWidth + "px",
19
- "71192c8f": e.basicOption.css.table.borderStyle,
20
- "70353e41": e.basicOption.css.table.borderColor,
21
- "1e63deeb": e.basicOption.css.table.paddingLeft + "px",
22
- "2e35a6d1": e.basicOption.css.table.alignItems,
23
- "74e58fdf": e.basicOption.css.table.justifyContent,
24
- "178770f9": e.basicOption.css.header.background,
25
- "0ad199db": e.basicOption.css.header.height + "px",
26
- "277abe90": e.basicOption.css.header.color,
27
- "8469b69c": e.basicOption.css.header.fontSize + "px",
28
- "3b289f72": e.basicOption.css.header.fontWeight,
29
- "01b73977": e.basicOption.css.header.fontStyle,
30
- "6e203544": e.basicOption.css.body.background,
31
- bd0c22f2: e.basicOption.css.oddBackground,
32
- "20ed198d": e.basicOption.css.body.color,
33
- "87ef5172": e.basicOption.css.body.fontSize + "px",
34
- dc7d3886: e.basicOption.css.body.fontWeight,
35
- "781f3fcc": e.basicOption.css.body.fontStyle
17
+ "72f00295": e.basicOption.css.table.borderWidth + "px",
18
+ "78ee623a": e.basicOption.css.table.borderStyle,
19
+ "7ab63ed6": e.basicOption.css.table.borderColor,
20
+ d54693d2: e.basicOption.css.table.paddingLeft + "px",
21
+ "30de69fd": e.basicOption.css.table.alignItems,
22
+ bc3e45ea: e.basicOption.css.table.justifyContent,
23
+ "69f7134d": e.basicOption.css.header.background,
24
+ "37cce707": e.basicOption.css.header.height + "px",
25
+ "71c3d9e4": e.basicOption.css.header.color,
26
+ cdb05244: e.basicOption.css.header.fontSize + "px",
27
+ e4cf7c74: e.basicOption.css.header.fontWeight,
28
+ "045ffca3": e.basicOption.css.header.fontStyle,
29
+ f20746d0: e.basicOption.css.body.background,
30
+ "67c04a4a": e.basicOption.css.oddBackground,
31
+ "7582adb9": e.basicOption.css.body.color,
32
+ "2df8b71a": e.basicOption.css.body.fontSize + "px",
33
+ aac4e9de: e.basicOption.css.body.fontWeight,
34
+ bb924410: e.basicOption.css.body.fontStyle
36
35
  }));
37
- const b = F, h = O(w()), a = O([]), s = $, m = O(s.basicOption.scroll.start), d = () => {
36
+ const b = F, h = O(w()), a = O([]), o = $, m = O(o.basicOption.scroll.start), d = () => {
38
37
  G.parse({
39
- tId: s.uuid,
40
- sources: s.sources,
38
+ tId: o.uuid,
39
+ sources: o.sources,
41
40
  callback: (e) => {
42
41
  try {
43
- p.parseEvents(s.useEvents, "dataListener", a), a.value = k(e.data[0].data) || [], h.value = w(), m.value = s.basicOption.scroll.start;
42
+ p.parseEvents(o.useEvents, "dataListener", a), a.value = k(e.data[0].data) || [], h.value = w(), m.value = o.basicOption.scroll.start;
44
43
  } catch {
45
- p.parseEvents(s.useEvents, "dataListener", null), h.value = w(), a.value = [], m.value = s.basicOption.scroll.start;
44
+ p.parseEvents(o.useEvents, "dataListener", null), h.value = w(), a.value = [], m.value = o.basicOption.scroll.start;
46
45
  }
47
46
  }
48
47
  });
49
48
  }, L = (e) => {
50
49
  const t = [];
51
- for (const o in e)
52
- t.push(e[o]);
50
+ for (const s in e)
51
+ t.push(e[s]);
53
52
  return t;
54
53
  };
55
- A(() => d()), S(() => k(s.basicOption), (e, t) => {
54
+ A(() => d()), S(() => k(o.basicOption), (e, t) => {
56
55
  z(e, t) || d();
57
56
  }, {
58
57
  deep: !0
59
- }), S(() => k(s.sources), (e, t) => {
58
+ }), S(() => k(o.sources), (e, t) => {
60
59
  z(e, t) || d();
61
60
  }, {
62
61
  deep: !0
@@ -66,37 +65,37 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
66
65
  refreshData: () => d()
67
66
  });
68
67
  const N = (e) => {
69
- if (!s.basicOption.columns)
68
+ if (!o.basicOption.columns)
70
69
  return !0;
71
- const t = s.basicOption.columns.find((o) => o.index === e);
70
+ const t = o.basicOption.columns.find((s) => s.index === e);
72
71
  return t ? t.font.auto : !0;
73
72
  }, f = (e) => {
74
- if (!s.basicOption.columns)
73
+ if (!o.basicOption.columns)
75
74
  return null;
76
- const t = s.basicOption.columns.find((o) => o.index === e);
75
+ const t = o.basicOption.columns.find((s) => s.index === e);
77
76
  return t && t.font.auto === !1 ? t.font : null;
78
77
  }, C = (e) => {
79
- if (!s.basicOption.columns)
78
+ if (!o.basicOption.columns)
80
79
  return !0;
81
- const t = s.basicOption.columns.find((o) => o.index === e);
80
+ const t = o.basicOption.columns.find((s) => s.index === e);
82
81
  return t ? t.width.auto : !0;
83
82
  }, E = (e) => {
84
- if (!s.basicOption.columns)
83
+ if (!o.basicOption.columns)
85
84
  return null;
86
- const t = s.basicOption.columns.find((o) => o.index === e);
85
+ const t = o.basicOption.columns.find((s) => s.index === e);
87
86
  return t && t.width.auto === !1 ? t.width.width : null;
88
87
  }, B = (e, t) => {
89
- const o = { row: e, rowIndex: t };
90
- b("on-click-row", o), p.parseEvents(s.useEvents, "on-click-row", o);
88
+ const s = { row: e, rowIndex: t };
89
+ b("on-click-row", s), p.parseEvents(o.useEvents, "on-click-row", s);
91
90
  }, H = (e, t) => {
92
- const o = { row: e, rowIndex: t };
93
- b("on-mouseenter-row", o), p.parseEvents(s.useEvents, "on-mouseenter-row", o);
91
+ const s = { row: e, rowIndex: t };
92
+ b("on-mouseenter-row", s), p.parseEvents(o.useEvents, "on-mouseenter-row", s);
94
93
  }, I = (e, t) => {
95
- const o = { row: e, rowIndex: t };
96
- b("on-mouseout-row", o), p.parseEvents(s.useEvents, "on-mouseout-row", o);
97
- }, R = (e, t, o, l) => {
98
- const n = { row: e, item: t, rowIndex: o, columnIndex: l };
99
- b("on-click-item", n), p.parseEvents(s.useEvents, "on-click-item", n);
94
+ const s = { row: e, rowIndex: t };
95
+ b("on-mouseout-row", s), p.parseEvents(o.useEvents, "on-mouseout-row", s);
96
+ }, R = (e, t, s, l) => {
97
+ const n = { row: e, item: t, rowIndex: s, columnIndex: l };
98
+ b("on-click-item", n), p.parseEvents(o.useEvents, "on-click-item", n);
100
99
  };
101
100
  return (e, t) => a.value.length > 0 ? (r(), i("div", {
102
101
  key: h.value,
@@ -110,17 +109,17 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
110
109
  "--header-background-image": `url(${e.basicOption.css.header.backgroundImage})`
111
110
  })
112
111
  }, [
113
- (r(!0), i(v, null, y(Object.keys(a.value[0]), (o, l) => (r(), i("div", {
114
- key: o,
112
+ (r(!0), i(v, null, y(Object.keys(a.value[0]), (s, l) => (r(), i("div", {
113
+ key: s,
115
114
  class: W(["th", { customWidth: !C(l + 1) }]),
116
115
  style: u({ "--width": E(l + 1) + "px" })
117
116
  }, [
118
- T("p", null, g(o), 1)
117
+ T("p", null, g(s), 1)
119
118
  ], 6))), 128))
120
119
  ], 4)) : V("", !0),
121
120
  J(q(U), {
122
121
  modelValue: m.value,
123
- "onUpdate:modelValue": t[0] || (t[0] = (o) => m.value = o),
122
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => m.value = s),
124
123
  direction: e.basicOption.scroll.direction,
125
124
  list: a.value,
126
125
  "is-watch": "",
@@ -135,21 +134,21 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
135
134
  }])
136
135
  }, {
137
136
  default: P(() => [
138
- (r(!0), i(v, null, y(a.value, (o, l) => (r(), i("div", {
139
- key: o,
137
+ (r(!0), i(v, null, y(a.value, (s, l) => (r(), i("div", {
138
+ key: s,
140
139
  class: "tr",
141
140
  style: u({
142
141
  "--row-hover": e.basicOption.css.hoverColor
143
142
  }),
144
- onClick: (n) => B(o, l),
145
- onMouseenter: (n) => H(o, l),
146
- onMouseout: (n) => I(o, l)
143
+ onClick: (n) => B(s, l),
144
+ onMouseenter: (n) => H(s, l),
145
+ onMouseout: (n) => I(s, l)
147
146
  }, [
148
- (r(!0), i(v, null, y(L(o), (n, c) => (r(), i("div", {
147
+ (r(!0), i(v, null, y(L(s), (n, c) => (r(), i("div", {
149
148
  key: n,
150
149
  class: W(["td", { customWidth: !C(c + 1) }]),
151
150
  style: u({ "--width": E(c + 1) + "px" }),
152
- onClick: (Z) => R(o, n, l, c)
151
+ onClick: (Z) => R(s, n, l, c)
153
152
  }, [
154
153
  N(c + 1) ? (r(), i("p", X, g(n), 1)) : (r(), i("p", {
155
154
  key: 0,
@@ -169,5 +168,5 @@ const K = ["onClick", "onMouseenter", "onMouseout"], Q = ["onClick"], X = { key:
169
168
  }
170
169
  });
171
170
  export {
172
- ne as default
171
+ oe as default
173
172
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-896f9b11"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9865613b"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,9 +1,8 @@
1
1
  import { defineComponent as f, watch as s, createElementBlock as S, openBlock as g, unref as i, normalizeStyle as w, toDisplayString as _, ref as D, onMounted as E, nextTick as b } from "vue";
2
- import { cloneDeep as c, isEqual as p } from "lodash";
3
- import { SHJDatasourceV2 as k } from "../../commons/plugins/datasource/index.mjs";
2
+ import { cloneDeep as c, isEqual as d } from "lodash";
3
+ import { SHJDatasourceV2 as k, SHJParseEvent as p } from "@zerov/core";
4
4
  import { autoInstallFont as C, jsonToCssStyle as j } from "../../commons/utils/json2css.mjs";
5
- import { SHJParseEvent as d } from "../../commons/plugins/event/index.mjs";
6
- const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), F = /* @__PURE__ */ f({
5
+ const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), B = /* @__PURE__ */ f({
7
6
  ...T,
8
7
  props: {
9
8
  basicOption: {},
@@ -12,8 +11,8 @@ const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), F = /* @__PURE__
12
11
  uuid: {}
13
12
  },
14
13
  setup(x, { expose: m }) {
15
- const o = x, y = () => {
16
- const t = D(""), n = (e) => {
14
+ const n = x, y = () => {
15
+ const t = D(""), o = (e) => {
17
16
  C(e.fontFamily);
18
17
  const a = {};
19
18
  e.color && e.color.includes("linear-gradient") && (a.backgroundImage = e.color, a["-webkit-background-clip"] = "text", a.color = "transparent");
@@ -26,28 +25,28 @@ const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), F = /* @__PURE__
26
25
  };
27
26
  }, u = () => {
28
27
  k.parse({
29
- tId: o.uuid,
30
- sources: o.sources,
28
+ tId: n.uuid,
29
+ sources: n.sources,
31
30
  callback: ({ data: e }) => {
32
31
  try {
33
- d.parseEvents(o.useEvents, "dataListener", e), t.value = e[0].data[0].value;
32
+ p.parseEvents(n.useEvents, "dataListener", e), t.value = e[0].data[0].value;
34
33
  } catch {
35
- d.parseEvents(o.useEvents, "dataListener", null);
34
+ p.parseEvents(n.useEvents, "dataListener", null);
36
35
  }
37
36
  }
38
37
  });
39
38
  };
40
- return E(() => b(() => u())), { rendererDomStyle: n, init: u, value: t };
39
+ return E(() => b(() => u())), { rendererDomStyle: o, init: u, value: t };
41
40
  }, { rendererDomStyle: h, init: r, value: l } = y();
42
- return s(() => c(o.basicOption), (t, n) => {
43
- p(t, n) || r();
44
- }, { deep: !0 }), s(() => c(o.sources), (t, n) => {
45
- p(t, n) || r();
41
+ return s(() => c(n.basicOption), (t, o) => {
42
+ d(t, o) || r();
43
+ }, { deep: !0 }), s(() => c(n.sources), (t, o) => {
44
+ d(t, o) || r();
46
45
  }, { deep: !0 }), m({
47
46
  refresh: () => r(),
48
47
  refreshView: () => r(),
49
48
  refreshData: () => r()
50
- }), (t, n) => (g(), S("p", {
49
+ }), (t, o) => (g(), S("p", {
51
50
  class: "zerov-widget-text",
52
51
  style: w(i(h)(t.basicOption.css)),
53
52
  ztitle: i(l)
@@ -55,5 +54,5 @@ const z = ["ztitle"], T = f({ name: "zv-text-text-dynamic" }), F = /* @__PURE__
55
54
  }
56
55
  });
57
56
  export {
58
- F as default
57
+ B as default
59
58
  };
package/es/env.d.ts CHANGED
@@ -25,7 +25,6 @@ declare interface Window {
25
25
  // 高德地图Loca对象
26
26
  Loca: any;
27
27
 
28
-
29
28
  // 客户端 Electron对象
30
29
  electron: any;
31
30
  // 客户端 Electron对象
package/es/index.d.ts CHANGED
@@ -4,10 +4,3 @@ declare const _default: {
4
4
  install: (app: App) => void;
5
5
  };
6
6
  export default _default;
7
- export * from './commons/plugins/datasource';
8
- export * from './commons/plugins/event';
9
- export * from './commons/utils/getNextElement';
10
- export * from './commons/plugins/event/utils/utils';
11
- export * from './commons/plugins/datasource/utils/utils';
12
- export * from './commons/plugins/datasource/utils/wsManager';
13
- export * from './commons/utils/componentRefs';