@shjjs/visual-ui 1.0.2 → 1.0.4

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 (71) hide show
  1. package/es/components/chart-bar-contrast2/index.d.ts +51 -0
  2. package/es/components/chart-bar-contrast2/index.mjs +7 -0
  3. package/es/components/chart-bar-contrast2/index.vue.d.ts +51 -0
  4. package/es/components/chart-bar-contrast2/index.vue.mjs +75 -0
  5. package/es/components/chart-bar-contrast2/index.vue2.mjs +4 -0
  6. package/es/components/chart-line-rain-flow/index.d.ts +51 -0
  7. package/es/components/chart-line-rain-flow/index.mjs +7 -0
  8. package/es/components/chart-line-rain-flow/index.vue.d.ts +51 -0
  9. package/es/components/chart-line-rain-flow/index.vue.mjs +76 -0
  10. package/es/components/chart-line-rain-flow/index.vue2.mjs +4 -0
  11. package/es/components/index.d.ts +2 -0
  12. package/es/components/index.mjs +222 -218
  13. package/es/components/interaction-data-picker/index.d.ts +14 -12
  14. package/es/components/interaction-data-picker/index.mjs +2 -2
  15. package/es/components/interaction-data-picker/index.vue.d.ts +14 -12
  16. package/es/components/interaction-data-picker/index.vue.mjs +5 -11
  17. package/es/components/interaction-data-picker/index.vue2.mjs +130 -2
  18. package/es/components/interaction-input/index.d.ts +25 -5
  19. package/es/components/interaction-input/index.vue.d.ts +25 -5
  20. package/es/components/interaction-input/index.vue.mjs +2 -2
  21. package/es/components/interaction-input/index.vue2.mjs +67 -36
  22. package/es/components/interaction-slider/index.d.ts +22 -5
  23. package/es/components/interaction-slider/index.vue.d.ts +22 -5
  24. package/es/components/interaction-slider/index.vue.mjs +2 -2
  25. package/es/components/interaction-slider/index.vue2.mjs +84 -50
  26. package/es/components/scene-ue-iframe/index.d.ts +3 -3
  27. package/es/components/scene-ue-iframe/index.vue.d.ts +3 -3
  28. package/es/components/scene-ue-iframe/index.vue.mjs +1 -1
  29. package/es/components/scene-ue-iframe/index.vue2.mjs +9 -11
  30. package/es/components/scene-ue-shj/index.d.ts +3 -3
  31. package/es/components/scene-ue-shj/index.vue.d.ts +3 -3
  32. package/es/components/scene-ue-shj/index.vue.mjs +2 -2
  33. package/es/components/scene-ue-shj/index.vue2.mjs +4 -6
  34. package/es/components/scene-unity-iframe/index.d.ts +3 -3
  35. package/es/components/scene-unity-iframe/index.vue.d.ts +3 -3
  36. package/es/components/scene-unity-iframe/index.vue.mjs +2 -2
  37. package/es/components/scene-unity-iframe/index.vue2.mjs +10 -12
  38. package/es/components/scene-unity-webgl/index.d.ts +3 -3
  39. package/es/components/scene-unity-webgl/index.vue.d.ts +3 -3
  40. package/es/components/scene-unity-webgl/index.vue.mjs +1 -1
  41. package/es/components/scene-unity-webgl/index.vue2.mjs +12 -12
  42. package/es/env.d.ts +4 -1
  43. package/es/index.mjs +222 -218
  44. package/es/style.css +1 -1
  45. package/es/utils/parseDataset.mjs +12 -12
  46. package/lib/components/chart-bar-contrast2/index.js +1 -0
  47. package/lib/components/chart-bar-contrast2/index.vue.js +1 -0
  48. package/lib/components/chart-bar-contrast2/index.vue2.js +1 -0
  49. package/lib/components/chart-line-rain-flow/index.js +1 -0
  50. package/lib/components/chart-line-rain-flow/index.vue.js +1 -0
  51. package/lib/components/chart-line-rain-flow/index.vue2.js +1 -0
  52. package/lib/components/index.js +1 -1
  53. package/lib/components/interaction-data-picker/index.js +1 -1
  54. package/lib/components/interaction-data-picker/index.vue.js +1 -1
  55. package/lib/components/interaction-data-picker/index.vue2.js +1 -1
  56. package/lib/components/interaction-input/index.vue.js +1 -1
  57. package/lib/components/interaction-input/index.vue2.js +1 -1
  58. package/lib/components/interaction-slider/index.vue.js +1 -1
  59. package/lib/components/interaction-slider/index.vue2.js +1 -1
  60. package/lib/components/scene-ue-iframe/index.vue.js +1 -1
  61. package/lib/components/scene-ue-iframe/index.vue2.js +1 -1
  62. package/lib/components/scene-ue-shj/index.vue.js +1 -1
  63. package/lib/components/scene-ue-shj/index.vue2.js +1 -1
  64. package/lib/components/scene-unity-iframe/index.vue.js +1 -1
  65. package/lib/components/scene-unity-iframe/index.vue2.js +1 -1
  66. package/lib/components/scene-unity-webgl/index.vue.js +1 -1
  67. package/lib/components/scene-unity-webgl/index.vue2.js +1 -1
  68. package/lib/index.js +1 -1
  69. package/lib/style.css +1 -1
  70. package/lib/utils/parseDataset.js +1 -1
  71. package/package.json +1 -1
@@ -0,0 +1,51 @@
1
+ export declare const ZvChartBarContrast2: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: ArrayConstructor;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ }, {
19
+ props: any;
20
+ emit: (event: "chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu", ...args: any[]) => void;
21
+ id: string;
22
+ setOption: (optionParams: any) => void;
23
+ chart: import("vue").ShallowRef<import("echarts/types/dist/echarts").ECharts>;
24
+ renderChart: import("lodash").DebouncedFunc<(option: import("echarts/types/dist/echarts").EChartsOption) => void>;
25
+ renderData: Function;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu")[], "chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ basicOption: {
28
+ type: any;
29
+ required: true;
30
+ };
31
+ sources: {
32
+ type: ArrayConstructor;
33
+ required: true;
34
+ };
35
+ useEvents: {
36
+ type: ArrayConstructor;
37
+ required: true;
38
+ };
39
+ uuid: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ }>> & {
44
+ "onChart-click"?: (...args: any[]) => any;
45
+ "onChart-dblclick"?: (...args: any[]) => any;
46
+ "onChart-mousedown"?: (...args: any[]) => any;
47
+ "onChart-mouseover"?: (...args: any[]) => any;
48
+ "onChart-mouseout"?: (...args: any[]) => any;
49
+ "onChart-contextmenu"?: (...args: any[]) => any;
50
+ }, {}, {}>> & Record<string, any>;
51
+ export default ZvChartBarContrast2;
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.mjs";
2
+ import { withInstall as r } from "../../utils/install.mjs";
3
+ const m = r(t);
4
+ export {
5
+ m as ZvChartBarContrast2,
6
+ m as default
7
+ };
@@ -0,0 +1,51 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: ArrayConstructor;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ }, {
19
+ props: any;
20
+ emit: (event: "chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu", ...args: any[]) => void;
21
+ id: string;
22
+ setOption: (optionParams: any) => void;
23
+ chart: import("vue").ShallowRef<import("echarts/types/dist/echarts").ECharts>;
24
+ renderChart: import("lodash").DebouncedFunc<(option: import("echarts/types/dist/echarts").EChartsOption) => void>;
25
+ renderData: Function;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu")[], "chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ basicOption: {
28
+ type: any;
29
+ required: true;
30
+ };
31
+ sources: {
32
+ type: ArrayConstructor;
33
+ required: true;
34
+ };
35
+ useEvents: {
36
+ type: ArrayConstructor;
37
+ required: true;
38
+ };
39
+ uuid: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ }>> & {
44
+ "onChart-click"?: (...args: any[]) => any;
45
+ "onChart-dblclick"?: (...args: any[]) => any;
46
+ "onChart-mousedown"?: (...args: any[]) => any;
47
+ "onChart-mouseover"?: (...args: any[]) => any;
48
+ "onChart-mouseout"?: (...args: any[]) => any;
49
+ "onChart-contextmenu"?: (...args: any[]) => any;
50
+ }, {}, {}>;
51
+ export default _sfc_main;
@@ -0,0 +1,75 @@
1
+ import { defineComponent as i, watch as n, openBlock as f, createElementBlock as b, createElementVNode as v, unref as _ } from "vue";
2
+ import { cloneDeep as r, isEqual as w } from "lodash";
3
+ import { useChart as E } from "../../core/useChart.mjs";
4
+ import { parseDataset as O } from "../../utils/parseDataset.mjs";
5
+ const g = { class: "zerov-widget" }, D = ["id"], k = i({ name: "zv-chart-bar-contrast2" }), V = /* @__PURE__ */ i({
6
+ ...k,
7
+ props: {
8
+ basicOption: {},
9
+ sources: {},
10
+ useEvents: {},
11
+ uuid: {}
12
+ },
13
+ emits: [
14
+ "chart-click",
15
+ "chart-dblclick",
16
+ "chart-mousedown",
17
+ "chart-mouseover",
18
+ "chart-mouseout",
19
+ "chart-contextmenu"
20
+ ],
21
+ setup(u, { expose: d, emit: l }) {
22
+ const e = u, p = l, {
23
+ id: h,
24
+ setOption: o,
25
+ chart: m,
26
+ renderChart: c,
27
+ renderData: a
28
+ } = E({
29
+ basicOption: r(e.basicOption),
30
+ useEvents: r(e.useEvents),
31
+ customRenderData: (t) => {
32
+ t = r(t), window.SHJDatasourceV2({
33
+ tId: e.uuid,
34
+ sources: e.sources,
35
+ callback: ({ data: s }) => {
36
+ try {
37
+ window.SHJParseEvent(e.useEvents, "dataListener", s), t.dataset = O(r(s)), o(t);
38
+ } catch {
39
+ window.SHJParseEvent(e.useEvents, "dataListener", null), o(t);
40
+ }
41
+ }
42
+ });
43
+ },
44
+ emit: p
45
+ });
46
+ return n(() => e.sources, () => {
47
+ e.sources && e.sources.length > 0 && a(e.basicOption);
48
+ }, {
49
+ deep: !0
50
+ }), n(() => r(e.basicOption), (t, s) => {
51
+ w(t, s) || c(t);
52
+ }, {
53
+ deep: !0
54
+ }), d({
55
+ getEchartsInstance: () => m.value,
56
+ refresh: () => {
57
+ e.sources && e.sources.length > 0 && c(e.basicOption), a(e.basicOption);
58
+ },
59
+ refreshView: () => {
60
+ e.sources && e.sources.length > 0 && c(e.basicOption);
61
+ },
62
+ refreshData: () => {
63
+ a(e.basicOption);
64
+ }
65
+ }), (t, s) => (f(), b("div", g, [
66
+ v("div", {
67
+ id: _(h),
68
+ class: "widget"
69
+ }, null, 8, D)
70
+ ]));
71
+ }
72
+ });
73
+ export {
74
+ V as default
75
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,51 @@
1
+ export declare const ZvChartLineRainFlow: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: ArrayConstructor;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ }, {
19
+ props: any;
20
+ emit: (event: "chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu", ...args: any[]) => void;
21
+ id: string;
22
+ setOption: (optionParams: any) => void;
23
+ chart: import("vue").ShallowRef<import("echarts/types/dist/echarts").ECharts>;
24
+ renderChart: import("lodash").DebouncedFunc<(option: import("echarts/types/dist/echarts").EChartsOption) => void>;
25
+ renderData: Function;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu")[], "chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ basicOption: {
28
+ type: any;
29
+ required: true;
30
+ };
31
+ sources: {
32
+ type: ArrayConstructor;
33
+ required: true;
34
+ };
35
+ useEvents: {
36
+ type: ArrayConstructor;
37
+ required: true;
38
+ };
39
+ uuid: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ }>> & {
44
+ "onChart-click"?: (...args: any[]) => any;
45
+ "onChart-dblclick"?: (...args: any[]) => any;
46
+ "onChart-mousedown"?: (...args: any[]) => any;
47
+ "onChart-mouseover"?: (...args: any[]) => any;
48
+ "onChart-mouseout"?: (...args: any[]) => any;
49
+ "onChart-contextmenu"?: (...args: any[]) => any;
50
+ }, {}, {}>> & Record<string, any>;
51
+ export default ZvChartLineRainFlow;
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.mjs";
2
+ import { withInstall as o } from "../../utils/install.mjs";
3
+ const r = o(t);
4
+ export {
5
+ r as ZvChartLineRainFlow,
6
+ r as default
7
+ };
@@ -0,0 +1,51 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: ArrayConstructor;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ }, {
19
+ props: any;
20
+ emit: (event: "chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu", ...args: any[]) => void;
21
+ id: string;
22
+ setOption: (optionParams: any) => void;
23
+ chart: import("vue").ShallowRef<import("echarts/types/dist/echarts").ECharts>;
24
+ renderChart: import("lodash").DebouncedFunc<(option: import("echarts/types/dist/echarts").EChartsOption) => void>;
25
+ renderData: Function;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu")[], "chart-click" | "chart-dblclick" | "chart-mousedown" | "chart-mouseover" | "chart-mouseout" | "chart-contextmenu", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ basicOption: {
28
+ type: any;
29
+ required: true;
30
+ };
31
+ sources: {
32
+ type: ArrayConstructor;
33
+ required: true;
34
+ };
35
+ useEvents: {
36
+ type: ArrayConstructor;
37
+ required: true;
38
+ };
39
+ uuid: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ }>> & {
44
+ "onChart-click"?: (...args: any[]) => any;
45
+ "onChart-dblclick"?: (...args: any[]) => any;
46
+ "onChart-mousedown"?: (...args: any[]) => any;
47
+ "onChart-mouseover"?: (...args: any[]) => any;
48
+ "onChart-mouseout"?: (...args: any[]) => any;
49
+ "onChart-contextmenu"?: (...args: any[]) => any;
50
+ }, {}, {}>;
51
+ export default _sfc_main;
@@ -0,0 +1,76 @@
1
+ import { defineComponent as n, watch as i, openBlock as f, createElementBlock as v, createElementVNode as w, unref as _ } from "vue";
2
+ import { cloneDeep as r, isEqual as b } from "lodash";
3
+ import { useChart as E } from "../../core/useChart.mjs";
4
+ import { parseDataset as O } from "../../utils/parseDataset.mjs";
5
+ import { cloneSeries as g } from "../../utils/cloneSeries.mjs";
6
+ const D = { class: "zerov-widget" }, k = ["id"], x = n({ name: "zv-chart-line-rain-flow" }), B = /* @__PURE__ */ n({
7
+ ...x,
8
+ props: {
9
+ basicOption: {},
10
+ sources: {},
11
+ useEvents: {},
12
+ uuid: {}
13
+ },
14
+ emits: [
15
+ "chart-click",
16
+ "chart-dblclick",
17
+ "chart-mousedown",
18
+ "chart-mouseover",
19
+ "chart-mouseout",
20
+ "chart-contextmenu"
21
+ ],
22
+ setup(u, { expose: d, emit: l }) {
23
+ const e = u, m = l, {
24
+ id: h,
25
+ setOption: a,
26
+ chart: p,
27
+ renderChart: c,
28
+ renderData: o
29
+ } = E({
30
+ basicOption: r(e.basicOption),
31
+ useEvents: r(e.useEvents),
32
+ customRenderData: (s) => {
33
+ s = r(s), window.SHJDatasourceV2({
34
+ tId: e.uuid,
35
+ sources: e.sources,
36
+ callback: ({ data: t }) => {
37
+ try {
38
+ window.SHJParseEvent(e.useEvents, "dataListener", t), s.dataset = O(r(t)), s.series = g(t, s.series), a(s);
39
+ } catch {
40
+ window.SHJParseEvent(e.useEvents, "dataListener", null), a(s);
41
+ }
42
+ }
43
+ });
44
+ },
45
+ emit: m
46
+ });
47
+ return i(() => e.sources, () => {
48
+ e.sources && e.sources.length > 0 && o(e.basicOption);
49
+ }, {
50
+ deep: !0
51
+ }), i(() => r(e.basicOption), (s, t) => {
52
+ b(s, t) || c(s);
53
+ }, {
54
+ deep: !0
55
+ }), d({
56
+ getEchartsInstance: () => p.value,
57
+ refresh: () => {
58
+ e.sources && e.sources.length > 0 && c(e.basicOption), o(e.basicOption);
59
+ },
60
+ refreshView: () => {
61
+ e.sources && e.sources.length > 0 && c(e.basicOption);
62
+ },
63
+ refreshData: () => {
64
+ o(e.basicOption);
65
+ }
66
+ }), (s, t) => (f(), v("div", D, [
67
+ w("div", {
68
+ id: _(h),
69
+ class: "widget"
70
+ }, null, 8, k)
71
+ ]));
72
+ }
73
+ });
74
+ export {
75
+ B as default
76
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -4,6 +4,7 @@ export * from './chart-bar-basic';
4
4
  export * from './chart-bar-loop';
5
5
  export * from './chart-bar-zebra';
6
6
  export * from './chart-bar-contrast';
7
+ export * from './chart-bar-contrast2';
7
8
  export * from './chart-bar-line-bar';
8
9
  export * from './chart-bar-stack2';
9
10
  export * from './chart-bar-stack-line';
@@ -14,6 +15,7 @@ export * from './chart-pie-basic';
14
15
  /** 折线图 */
15
16
  export * from './chart-line-smooth';
16
17
  export * from './chart-line-smooth-area';
18
+ export * from './chart-line-rain-flow';
17
19
  /** 散点图 */
18
20
  export * from './chart-scatter-basic';
19
21
  /** 文本 */