@shjjs/visual-ui 1.0.20 → 1.0.22
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.
- package/es/commons/plugins/datasource/index.d.ts +4 -0
- package/es/commons/plugins/datasource/index.mjs +48 -48
- package/es/commons/plugins/event/actions/invokeAction.mjs +5 -4
- package/es/commons/plugins/event/actions/updateWidgetAction.mjs +5 -4
- package/es/commons/plugins/event/utils/utils.mjs +18 -20
- package/es/commons/utils/componentRefs.d.ts +28 -0
- package/es/commons/utils/componentRefs.mjs +37 -0
- package/es/env.d.ts +0 -6
- package/es/index.d.ts +2 -1
- package/es/index.mjs +2 -2
- package/lib/commons/plugins/datasource/index.js +2 -2
- package/lib/commons/plugins/event/actions/invokeAction.js +1 -1
- package/lib/commons/plugins/event/actions/updateWidgetAction.js +1 -1
- package/lib/commons/plugins/event/utils/utils.js +1 -1
- package/lib/commons/utils/componentRefs.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/es/commons/utils/shj/component-refs.d.ts +0 -6
- package/es/commons/utils/shj/component-refs.mjs +0 -10
- package/lib/commons/utils/shj/component-refs.js +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare class SHJDatasourceV2 {
|
|
2
2
|
private static wsInstances;
|
|
3
|
+
static datasourceTimer: {
|
|
4
|
+
id: string;
|
|
5
|
+
timer: any;
|
|
6
|
+
}[];
|
|
3
7
|
private static parsers;
|
|
4
8
|
static addParser(type: string, parser: Function): void;
|
|
5
9
|
static getParser(type: string): Function | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { isArray as
|
|
5
|
-
import { parseStaticData as
|
|
6
|
-
import { parseUrlData as
|
|
7
|
-
import { parseVariableData as
|
|
8
|
-
import { parseAPIPort as
|
|
9
|
-
import { parseWebSocket as
|
|
10
|
-
import { DataSourceUtils as
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var K = (y, t, a) => t in y ? A(y, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : y[t] = a;
|
|
3
|
+
var g = (y, t, a) => K(y, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
import { isArray as k, isString as U, cloneDeep as I } from "lodash";
|
|
5
|
+
import { parseStaticData as j } from "./sources/static.mjs";
|
|
6
|
+
import { parseUrlData as E } from "./sources/url.mjs";
|
|
7
|
+
import { parseVariableData as F } from "./sources/variable.mjs";
|
|
8
|
+
import { parseAPIPort as W } from "./sources/api.mjs";
|
|
9
|
+
import { parseWebSocket as $ } from "./sources/ws.mjs";
|
|
10
|
+
import { DataSourceUtils as S } from "./utils/utils.mjs";
|
|
11
11
|
const D = class D {
|
|
12
12
|
static addParser(t, a) {
|
|
13
13
|
this.parsers.add({ type: t, parser: a });
|
|
@@ -27,32 +27,32 @@ const D = class D {
|
|
|
27
27
|
* @returns
|
|
28
28
|
*/
|
|
29
29
|
static parse({ sources: t, callback: a, tId: e, isStore: s = !1, noUseMapping: n = !1, isInterval: i = !0 }) {
|
|
30
|
-
return
|
|
31
|
-
}), t &&
|
|
32
|
-
|
|
33
|
-
const c = /* @__PURE__ */ new Set(),
|
|
30
|
+
return a ?? (a = () => {
|
|
31
|
+
}), t && k(t) && t.length > 0 ? new Promise((p, o) => {
|
|
32
|
+
S.cleanupPreviousWebSockets(this.wsInstances, t.map((r) => r.id), e);
|
|
33
|
+
const c = /* @__PURE__ */ new Set(), h = this.wsInstances.get(e) || /* @__PURE__ */ new Set();
|
|
34
34
|
t.forEach((r) => {
|
|
35
|
-
var
|
|
35
|
+
var P;
|
|
36
36
|
if (i) {
|
|
37
|
-
const { source: f } = r, d = `${e}-${r.id}`,
|
|
38
|
-
if (
|
|
39
|
-
const
|
|
37
|
+
const { source: f } = r, d = `${e}-${r.id}`, w = this.datasourceTimer.findIndex((m) => m.id === d);
|
|
38
|
+
if (w !== -1 && (clearInterval(this.datasourceTimer[w].timer), this.datasourceTimer.splice(w, 1)), f.isAutoUpdate) {
|
|
39
|
+
const m = setInterval(() => {
|
|
40
40
|
var l;
|
|
41
41
|
(l = this.task(r, s, n, e, (u) => a(u))) == null || l.then((u) => p(u));
|
|
42
42
|
}, f.autoUpdateTime * 1e3);
|
|
43
|
-
|
|
43
|
+
this.datasourceTimer.push({ id: d, timer: m });
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
if (r.source.type !== "ws") {
|
|
47
|
-
(
|
|
47
|
+
(P = this.task(r, s, n, e, (f) => a(f))) == null || P.then((f) => p(f));
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
if (
|
|
51
|
-
|
|
50
|
+
if (S.hasValidWebSocket(this.wsInstances, e, r.id))
|
|
51
|
+
h.forEach((f) => {
|
|
52
52
|
f.getId() === r.id && c.add(f);
|
|
53
53
|
});
|
|
54
54
|
else {
|
|
55
|
-
const f =
|
|
55
|
+
const f = $(r, r.id, n, e, (d) => {
|
|
56
56
|
p(d), a({ data: [{ data: d.finalUserData.data }] });
|
|
57
57
|
});
|
|
58
58
|
c.add(f);
|
|
@@ -73,8 +73,8 @@ const D = class D {
|
|
|
73
73
|
}) {
|
|
74
74
|
return t ? new Promise((i, p) => {
|
|
75
75
|
let o = null;
|
|
76
|
-
const { source: c } = t,
|
|
77
|
-
|
|
76
|
+
const { source: c } = t, h = this.getParser(c.type);
|
|
77
|
+
h && (o = h(t, t.id, e)), o.then((r) => {
|
|
78
78
|
n(e ? r.noMappingData : r.finalKeyData), i(r);
|
|
79
79
|
});
|
|
80
80
|
}) : (n([]), Promise.resolve([]));
|
|
@@ -87,16 +87,16 @@ const D = class D {
|
|
|
87
87
|
*/
|
|
88
88
|
static filterData(t, a) {
|
|
89
89
|
return new Promise((e, s) => {
|
|
90
|
-
if (
|
|
90
|
+
if (U(t)) {
|
|
91
91
|
try {
|
|
92
|
-
const n =
|
|
92
|
+
const n = S.getVariableData();
|
|
93
93
|
let i = `
|
|
94
94
|
${t}
|
|
95
95
|
|
|
96
96
|
// 在这里调用 filter 函数,并传递 data 参数
|
|
97
97
|
return filter(data);
|
|
98
98
|
`;
|
|
99
|
-
i = i.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, ""), i =
|
|
99
|
+
i = i.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, ""), i = S.replaceStringVariables(i, n);
|
|
100
100
|
const p = new Function("data", i);
|
|
101
101
|
e(p(a));
|
|
102
102
|
} catch {
|
|
@@ -119,40 +119,40 @@ const D = class D {
|
|
|
119
119
|
*/
|
|
120
120
|
static processData(t, a, e, s, n, i) {
|
|
121
121
|
return new Promise(function(p) {
|
|
122
|
-
const o =
|
|
122
|
+
const o = I({ id: s, data: a });
|
|
123
123
|
D.filterData(t, a).then((c) => {
|
|
124
|
-
const
|
|
124
|
+
const h = I({ id: s, data: c });
|
|
125
125
|
if (i)
|
|
126
126
|
p({
|
|
127
127
|
id: s,
|
|
128
128
|
finalKeyData: [],
|
|
129
129
|
finalUserData: { id: s, data: c },
|
|
130
|
-
filteredData:
|
|
130
|
+
filteredData: h,
|
|
131
131
|
rawData: o,
|
|
132
132
|
noMappingData: c
|
|
133
133
|
});
|
|
134
134
|
else {
|
|
135
135
|
let r = [];
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
if (n && n &&
|
|
136
|
+
k(c) && (r = c.map((d, w) => {
|
|
137
|
+
const m = {};
|
|
138
|
+
if (n && n && w === 0) {
|
|
139
139
|
const l = [];
|
|
140
140
|
for (const u in d) {
|
|
141
|
-
const
|
|
142
|
-
|
|
141
|
+
const T = e.find((x) => x.name === u);
|
|
142
|
+
T ? l.push({ alias: T.alias, name: u, type: "any", label: u, mapping: T.mapping, status: !0 }) : l.push({ alias: u, name: u, type: "any", label: u, mapping: u, status: !0 });
|
|
143
143
|
}
|
|
144
144
|
e.splice(0, e.length), e.push(...l);
|
|
145
145
|
}
|
|
146
146
|
return e.forEach((l) => {
|
|
147
|
-
l.alias ?
|
|
148
|
-
}),
|
|
147
|
+
l.alias ? m[l.alias] = d[l.mapping] : m[l.name] = d[l.mapping];
|
|
148
|
+
}), m;
|
|
149
149
|
}));
|
|
150
|
-
const
|
|
150
|
+
const P = I({ id: s, data: r }), f = I({ id: s, data: D.parseMappedData(r, e, s) });
|
|
151
151
|
p({
|
|
152
152
|
id: s,
|
|
153
153
|
finalKeyData: r.length === 0 ? { id: s, data: c } : f,
|
|
154
|
-
finalUserData: r.length === 0 ? { id: s, data: c } :
|
|
155
|
-
filteredData:
|
|
154
|
+
finalUserData: r.length === 0 ? { id: s, data: c } : P,
|
|
155
|
+
filteredData: h,
|
|
156
156
|
rawData: o,
|
|
157
157
|
noMappingData: []
|
|
158
158
|
});
|
|
@@ -179,13 +179,13 @@ const D = class D {
|
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
-
|
|
183
|
-
{ type: "url", parser:
|
|
184
|
-
{ type: "static", parser:
|
|
185
|
-
{ type: "variable", parser:
|
|
186
|
-
{ type: "api", parser:
|
|
182
|
+
g(D, "wsInstances", /* @__PURE__ */ new Map()), g(D, "datasourceTimer", []), g(D, "parsers", /* @__PURE__ */ new Set([
|
|
183
|
+
{ type: "url", parser: E },
|
|
184
|
+
{ type: "static", parser: j },
|
|
185
|
+
{ type: "variable", parser: F },
|
|
186
|
+
{ type: "api", parser: W }
|
|
187
187
|
]));
|
|
188
|
-
let
|
|
188
|
+
let b = D;
|
|
189
189
|
export {
|
|
190
|
-
|
|
190
|
+
b as SHJDatasourceV2
|
|
191
191
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentRefs as r } from "../../../utils/componentRefs.mjs";
|
|
2
|
+
const f = (e, n) => {
|
|
2
3
|
try {
|
|
3
|
-
const { invokeAction:
|
|
4
|
-
|
|
4
|
+
const { invokeAction: o } = e, t = r.getComponentRef(o.targetLayerId);
|
|
5
|
+
t && t.ref[o.functionName](o.functionArgs, n);
|
|
5
6
|
} catch {
|
|
6
7
|
}
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
f as executeInvokeAction
|
|
10
11
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentRefs as o } from "../../../utils/componentRefs.mjs";
|
|
2
|
+
const a = (r, n) => {
|
|
2
3
|
try {
|
|
3
|
-
const { updateWidget:
|
|
4
|
-
if (
|
|
5
|
-
const e =
|
|
4
|
+
const { updateWidget: t } = r;
|
|
5
|
+
if (t.targetLayerId) {
|
|
6
|
+
const e = o.getComponentRef(t.targetLayerId);
|
|
6
7
|
e && e.ref && e.ref.refresh && e.ref.refresh();
|
|
7
8
|
}
|
|
8
9
|
} catch {
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
+
import { ComponentRefs as o } from "@zerov/widgets/packages";
|
|
1
2
|
class f {
|
|
2
3
|
/**
|
|
3
4
|
* 将URL参数转换为JSON对象
|
|
4
5
|
* @param urlParam - 需要转换的URL参数
|
|
5
6
|
* @returns 转换后的JSON对象
|
|
6
7
|
*/
|
|
7
|
-
static urlParamToJson(
|
|
8
|
-
if (!
|
|
9
|
-
const
|
|
10
|
-
return
|
|
8
|
+
static urlParamToJson(r) {
|
|
9
|
+
if (!r) return r;
|
|
10
|
+
const t = {};
|
|
11
|
+
return r.trim().split("&").forEach((e) => t[e.split("=")[0]] = e.split("=")[1]), t;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* 更新组件数据
|
|
14
15
|
* @param variableData 变量数据
|
|
15
16
|
*/
|
|
16
|
-
static updateWidgetVariableData(
|
|
17
|
-
var
|
|
18
|
-
(
|
|
19
|
-
const
|
|
20
|
-
if (t.layerId === i || t.sceneId === i)
|
|
21
|
-
return t;
|
|
22
|
-
});
|
|
17
|
+
static updateWidgetVariableData(r) {
|
|
18
|
+
var t;
|
|
19
|
+
(t = r.useList) != null && t.length && r.useList.forEach((e) => {
|
|
20
|
+
const s = o.getComponentRef(e);
|
|
23
21
|
try {
|
|
24
|
-
|
|
22
|
+
s && s.ref && s.ref.refreshData();
|
|
25
23
|
} catch {
|
|
26
24
|
}
|
|
27
25
|
});
|
|
@@ -31,17 +29,17 @@ class f {
|
|
|
31
29
|
* @param json - 需要转换的JSON对象
|
|
32
30
|
* @returns 转换后的字符串
|
|
33
31
|
*/
|
|
34
|
-
static toStringify(
|
|
32
|
+
static toStringify(r) {
|
|
35
33
|
try {
|
|
36
|
-
let
|
|
37
|
-
const
|
|
38
|
-
if (typeof
|
|
39
|
-
if (
|
|
40
|
-
|
|
34
|
+
let t = [];
|
|
35
|
+
const e = JSON.stringify(r, (s, n) => {
|
|
36
|
+
if (typeof n == "object" && n !== null) {
|
|
37
|
+
if (t.indexOf(n) !== -1) return;
|
|
38
|
+
t.push(n);
|
|
41
39
|
}
|
|
42
|
-
return
|
|
40
|
+
return n;
|
|
43
41
|
});
|
|
44
|
-
return
|
|
42
|
+
return t = null, e;
|
|
45
43
|
} catch {
|
|
46
44
|
return "";
|
|
47
45
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件Ref
|
|
3
|
+
*/
|
|
4
|
+
export declare class ComponentRefs {
|
|
5
|
+
static componentRefs: {
|
|
6
|
+
id: string;
|
|
7
|
+
ref: any;
|
|
8
|
+
}[];
|
|
9
|
+
/**
|
|
10
|
+
* 注册组件Ref
|
|
11
|
+
* @param id
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
static registerRef(id: string): (el: any) => void;
|
|
15
|
+
/**
|
|
16
|
+
* 获取组件Ref
|
|
17
|
+
* @param id
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
static getComponentRef(id: string): {
|
|
21
|
+
id: string;
|
|
22
|
+
ref: any;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 清除组件Ref
|
|
26
|
+
*/
|
|
27
|
+
static clearComponentRefs(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var r = (s, t, e) => t in s ? f(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var o = (s, t, e) => r(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { isArray as c } from "lodash";
|
|
5
|
+
class p {
|
|
6
|
+
/**
|
|
7
|
+
* 注册组件Ref
|
|
8
|
+
* @param id
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
static registerRef(t) {
|
|
12
|
+
return (e) => {
|
|
13
|
+
if (c(this.componentRefs) && e && t) {
|
|
14
|
+
const n = this.componentRefs.find((i) => i.id === t);
|
|
15
|
+
n ? n.ref = e : this.componentRefs.push({ id: t, ref: e });
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 获取组件Ref
|
|
21
|
+
* @param id
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
static getComponentRef(t) {
|
|
25
|
+
return this.componentRefs.find((e) => e.id === t);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 清除组件Ref
|
|
29
|
+
*/
|
|
30
|
+
static clearComponentRefs() {
|
|
31
|
+
this.componentRefs = [];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
o(p, "componentRefs", []);
|
|
35
|
+
export {
|
|
36
|
+
p as ComponentRefs
|
|
37
|
+
};
|
package/es/env.d.ts
CHANGED
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
export * from './components/index';
|
|
3
|
-
export * from './commons/utils/
|
|
3
|
+
export * from './commons/utils/componentRefs';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
install: (app: App) => void;
|
|
6
6
|
};
|
|
@@ -11,3 +11,4 @@ export * from './commons/utils/getNextElement';
|
|
|
11
11
|
export * from './commons/plugins/event/utils/utils';
|
|
12
12
|
export * from './commons/plugins/datasource/utils/utils';
|
|
13
13
|
export * from './commons/plugins/datasource/utils/wsManager';
|
|
14
|
+
export * from './commons/utils/componentRefs';
|
package/es/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as r from "./components/index.mjs";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentRefs as x } from "./commons/utils/componentRefs.mjs";
|
|
4
4
|
import { SHJDatasourceV2 as h } from "./commons/plugins/datasource/index.mjs";
|
|
5
5
|
import { SHJParseEvent as Z } from "./commons/plugins/event/index.mjs";
|
|
6
6
|
import { getNextElement as n } from "./commons/utils/getNextElement.mjs";
|
|
@@ -187,6 +187,7 @@ const a = {
|
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
export {
|
|
190
|
+
x as ComponentRefs,
|
|
190
191
|
s as DataSourceUtils,
|
|
191
192
|
c as EventUtils,
|
|
192
193
|
h as SHJDatasourceV2,
|
|
@@ -366,6 +367,5 @@ export {
|
|
|
366
367
|
q as ZvchartBarWaterfall2,
|
|
367
368
|
a as default,
|
|
368
369
|
n as getNextElement,
|
|
369
|
-
x as registerComponentRef,
|
|
370
370
|
d as wsManager
|
|
371
371
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var U=Object.defineProperty;var
|
|
1
|
+
"use strict";var U=Object.defineProperty;var k=(m,e,t)=>e in m?U(m,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):m[e]=t;var g=(m,e,t)=>k(m,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("lodash"),A=require("./sources/static.js"),j=require("./sources/url.js"),v=require("./sources/variable.js"),K=require("./sources/api.js"),x=require("./sources/ws.js"),I=require("./utils/utils.js"),w=class w{static addParser(e,t){this.parsers.add({type:e,parser:t})}static getParser(e){const t=Array.from(this.parsers).find(a=>a.type===e);return t==null?void 0:t.parser}static parse({sources:e,callback:t,tId:a,isStore:s=!1,noUseMapping:n=!1,isInterval:i=!0}){return t??(t=()=>{}),e&&y.isArray(e)&&e.length>0?new Promise((u,c)=>{I.DataSourceUtils.cleanupPreviousWebSockets(this.wsInstances,e.map(r=>r.id),a);const o=new Set,h=this.wsInstances.get(a)||new Set;e.forEach(r=>{var P;if(i){const{source:l}=r,d=`${a}-${r.id}`,S=this.datasourceTimer.findIndex(D=>D.id===d);if(S!==-1&&(clearInterval(this.datasourceTimer[S].timer),this.datasourceTimer.splice(S,1)),l.isAutoUpdate){const D=setInterval(()=>{var f;(f=this.task(r,s,n,a,p=>t(p)))==null||f.then(p=>u(p))},l.autoUpdateTime*1e3);this.datasourceTimer.push({id:d,timer:D})}}if(r.source.type!=="ws"){(P=this.task(r,s,n,a,l=>t(l)))==null||P.then(l=>u(l));return}if(I.DataSourceUtils.hasValidWebSocket(this.wsInstances,a,r.id))h.forEach(l=>{l.getId()===r.id&&o.add(l)});else{const l=x.parseWebSocket(r,r.id,n,a,d=>{u(d),t({data:[{data:d.finalUserData.data}]})});o.add(l)}}),o.size>0&&this.wsInstances.set(a,o)}):(t([]),Promise.resolve([]))}static task(e,t=!1,a=!1,s,n=()=>{}){return e?new Promise((i,u)=>{let c=null;const{source:o}=e,h=this.getParser(o.type);h&&(c=h(e,e.id,a)),c.then(r=>{n(a?r.noMappingData:r.finalKeyData),i(r)})}):(n([]),Promise.resolve([]))}static filterData(e,t){return new Promise((a,s)=>{if(y.isString(e)){try{const n=I.DataSourceUtils.getVariableData();let i=`
|
|
2
2
|
${e}
|
|
3
3
|
|
|
4
4
|
// 在这里调用 filter 函数,并传递 data 参数
|
|
5
5
|
return filter(data);
|
|
6
|
-
`;i=i.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g,""),i=
|
|
6
|
+
`;i=i.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g,""),i=I.DataSourceUtils.replaceStringVariables(i,n);const u=new Function("data",i);a(u(t))}catch{a(t)}return}a(t)})}static processData(e,t,a,s,n,i){return new Promise(function(u){const c=y.cloneDeep({id:s,data:t});w.filterData(e,t).then(o=>{const h=y.cloneDeep({id:s,data:o});if(i)u({id:s,finalKeyData:[],finalUserData:{id:s,data:o},filteredData:h,rawData:c,noMappingData:o});else{let r=[];y.isArray(o)&&(r=o.map((d,S)=>{const D={};if(n&&n&&S===0){const f=[];for(const p in d){const T=a.find(q=>q.name===p);T?f.push({alias:T.alias,name:p,type:"any",label:p,mapping:T.mapping,status:!0}):f.push({alias:p,name:p,type:"any",label:p,mapping:p,status:!0})}a.splice(0,a.length),a.push(...f)}return a.forEach(f=>{f.alias?D[f.alias]=d[f.mapping]:D[f.name]=d[f.mapping]}),D}));const P=y.cloneDeep({id:s,data:r}),l=y.cloneDeep({id:s,data:w.parseMappedData(r,a,s)});u({id:s,finalKeyData:r.length===0?{id:s,data:o}:l,finalUserData:r.length===0?{id:s,data:o}:P,filteredData:h,rawData:c,noMappingData:[]})}})})}static parseMappedData(e,t,a){return e.reduce((s,n)=>{let i="系列一";t&&t.find(c=>c.name==="series")&&(i=n[t.find(c=>c.name==="series").name],delete n[t.find(c=>c.name==="series").name]);const u=s.find(c=>c.key===i);return u?u.data.push(n):s.push({key:i,data:[n]}),s},[])}};g(w,"wsInstances",new Map),g(w,"datasourceTimer",[]),g(w,"parsers",new Set([{type:"url",parser:j.parseUrlData},{type:"static",parser:A.parseStaticData},{type:"variable",parser:v.parseVariableData},{type:"api",parser:K.parseAPIPort}]));let b=w;exports.SHJDatasourceV2=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(n,o)=>{try{const{invokeAction:e}=n,t=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../utils/componentRefs.js"),r=(n,o)=>{try{const{invokeAction:e}=n,t=c.ComponentRefs.getComponentRef(e.targetLayerId);t&&t.ref[e.functionName](e.functionArgs,o)}catch{}};exports.executeInvokeAction=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(r,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../utils/componentRefs.js"),n=(r,c)=>{try{const{updateWidget:t}=r;if(t.targetLayerId){const e=o.ComponentRefs.getComponentRef(t.targetLayerId);e&&e.ref&&e.ref.refresh&&e.ref.refresh()}}catch{}};exports.executeUpdateWidgetAction=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@zerov/widgets/packages");class o{static urlParamToJson(e){if(!e)return e;const t={};return e.trim().split("&").forEach(r=>t[r.split("=")[0]]=r.split("=")[1]),t}static updateWidgetVariableData(e){var t;(t=e.useList)!=null&&t.length&&e.useList.forEach(r=>{const s=i.ComponentRefs.getComponentRef(r);try{s&&s.ref&&s.ref.refreshData()}catch{}})}static toStringify(e){try{let t=[];const r=JSON.stringify(e,(s,n)=>{if(typeof n=="object"&&n!==null){if(t.indexOf(n)!==-1)return;t.push(n)}return n});return t=null,r}catch{return""}}}exports.EventUtils=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var c=(s,e,t)=>e in s?r(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var o=(s,e,t)=>c(s,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("lodash");class i{static registerRef(e){return t=>{if(p.isArray(this.componentRefs)&&t&&e){const n=this.componentRefs.find(f=>f.id===e);n?n.ref=t:this.componentRefs.push({id:e,ref:t})}}}static getComponentRef(e){return this.componentRefs.find(t=>t.id===e)}static clearComponentRefs(){this.componentRefs=[]}}o(i,"componentRefs",[]);exports.ComponentRefs=i;
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/index.js");;/* empty css */const a=require("./commons/utils/shj/component-refs.js"),i=require("./commons/plugins/datasource/index.js"),n=require("./commons/plugins/event/index.js"),o=require("./commons/utils/getNextElement.js"),c=require("./commons/plugins/event/utils/utils.js"),v=require("./commons/plugins/datasource/utils/utils.js"),h=require("./commons/plugins/datasource/utils/wsManager.js"),s=require("./components/chart-bar-stack/index.js"),Z=require("./components/chart-bar-basic/index.js"),u=require("./components/chart-bar-loop/index.js"),d=require("./components/chart-bar-zebra/index.js"),C=require("./components/chart-bar-contrast/index.js"),x=require("./components/chart-bar-contrast2/index.js"),q=require("./components/chart-bar-line-bar/index.js"),l=require("./components/chart-bar-stack2/index.js"),$=require("./components/chart-bar-stack-line/index.js"),m=require("./components/chart-bar-gradient-column-chart/index.js"),B=require("./components/chart-bar-spire/index.js"),S=require("./components/chart-bar-waterfall/index.js"),p=require("./components/chart-bar-polar/index.js"),O=require("./components/chart-bar-polar2/index.js"),M=require("./components/chart-bar-staggered/index.js"),g=require("./components/chart-bar-polar-stack/index.js"),L=require("./components/chart-bar-stack3/index.js"),T=require("./components/chart-bar-horizontal-stack/index.js"),P=require("./components/chart-bar-contrast3/index.js"),I=require("./components/chart-bar-line-bar2/index.js"),b=require("./components/chart-bar-radius-circle/index.js"),G=require("./components/chart-bar-animation/index.js"),R=require("./components/chart-pie-3d/index.js"),k=require("./components/chart-pie-basic/index.js"),D=require("./components/chart-pie-basic2/index.js"),f=require("./components/chart-pie-radius/index.js"),A=require("./components/chart-pie-customized/index.js"),F=require("./components/chart-pie-interval/index.js"),H=require("./components/chart-pie-legend-scroll/index.js"),y=require("./components/chart-line-bump/index.js"),E=require("./components/chart-line-temp/index.js"),V=require("./components/chart-line-stack/index.js"),w=require("./components/chart-line-smooth/index.js"),U=require("./components/chart-line-rain-flow/index.js"),W=require("./components/chart-line-stack-area/index.js"),z=require("./components/chart-line-smooth-area/index.js"),J=require("./components/chart-line-area-gradient/index.js"),N=require("./components/chart-line-area-highlight/index.js"),j=require("./components/chart-line-area-highlight2/index.js"),Q=require("./components/chart-line-multix/index.js"),_=require("./components/chart-line-logarithm/index.js"),K=require("./components/chart-line-ladder/index.js"),X=require("./components/chart-line-vertical/index.js"),Y=require("./components/chart-line-polar-double/index.js"),ee=require("./components/chart-scatter-basic/index.js"),re=require("./components/chart-scatter-ripples/index.js"),te=require("./components/chart-scatter-bubble/index.js"),ae=require("./components/text-text-basic/index.js"),ie=require("./components/text-table-basic/index.js"),ne=require("./components/chart-other-gauge/index.js"),oe=require("./components/chart-other-gauge-stage/index.js"),ce=require("./components/chart-other-gauge-grade/index.js"),ve=require("./components/chart-other-word-cloud/index.js"),he=require("./components/chart-other-liquidfill/index.js"),se=require("./components/chart-bar-horizontal/index.js"),Ze=require("./components/chart-bar-three/index.js"),ue=require("./components/chart-bar-rank/index.js"),de=require("./components/chart-bar-mini/index.js"),Ce=require("./components/chart-line-dashed/index.js"),xe=require("./components/chart-pie-semicircle/index.js"),qe=require("./components/chart-pie-rose/index.js"),le=require("./components/chart-scatter-basic2/index.js"),$e=require("./components/chart-other-funnel/index.js"),me=require("./components/chart-other-force/index.js"),Be=require("./components/chart-other-radar/index.js"),Se=require("./components/chart-other-funnel-split/index.js"),pe=require("./components/chart-other-funnel-contrast/index.js"),Oe=require("./components/chart-other-candlestick-basic/index.js"),Me=require("./components/chart-other-candlestick-shanghai/index.js"),ge=require("./components/chart-other-candlestick-demo/index.js"),Le=require("./components/chart-other-heatmap/index.js"),Te=require("./components/chart-other-force2/index.js"),Pe=require("./components/chart-other-graph-basic/index.js"),Ie=require("./components/chart-other-graph-basic2/index.js"),be=require("./components/chart-other-graph-calendar/index.js"),Ge=require("./components/chart-other-tree-line/index.js"),Re=require("./components/chart-other-treemap-basic/index.js"),ke=require("./components/chart-other-sunburst-basic/index.js"),De=require("./components/chart-other-sunburst-basic2/index.js"),fe=require("./components/chart-other-sunburst-basic3/index.js"),Ae=require("./components/chart-other-sunburst-basic4/index.js"),Fe=require("./components/chart-other-sunburst-book/index.js"),He=require("./components/chart-other-sunburst-radius/index.js"),ye=require("./components/chart-other-sunburst-flavors/index.js"),Ee=require("./components/chart-other-parallel-basic/index.js"),Ve=require("./components/chart-other-parallel-mul/index.js"),we=require("./components/chart-line-basic/index.js"),Ue=require("./components/chart-line-scale/index.js"),We=require("./components/chart-map-lines/index.js"),ze=require("./components/chart-map-basic/index.js"),Je=require("./components/chart-map-scatter/index.js"),Ne=require("./components/chart-map-customize/index.js"),je=require("./components/chart-map-bmap-rich/index.js"),Qe=require("./components/chart-other-circular-graph/index.js"),_e=require("./components/chart-map-bmap-heatmap/index.js"),Ke=require("./components/chart-map-bmap-basic/index.js"),Xe=require("./components/map-earth-basic/index.js"),Ye=require("./components/map-earth-cool-tech/index.js"),er=require("./components/map-earth-particle/index.js"),rr=require("./components/map-earth-hacker/index.js"),tr=require("./components/map-earth-fly-line/index.js"),ar=require("./components/chart-pie-index/index.js"),ir=require("./components/chart-other-grid-percentage/index.js"),nr=require("./components/chart-other-radar-stack/index.js"),or=require("./components/chart-bar-segmented-progress/index.js"),cr=require("./components/chart-other-funnel2/index.js"),vr=require("./components/chart-other-label-gauge/index.js"),hr=require("./components/chart-pie-round/index.js"),sr=require("./components/chart-pie-sunburst/index.js"),Zr=require("./components/chart-other-theme-river/index.js"),ur=require("./components/chart-other-tree/index.js"),dr=require("./components/chart-other-treemap/index.js"),Cr=require("./components/commons-product-model/index.js"),xr=require("./components/commons-vr-photo/index.js"),qr=require("./components/commons-vr-video/index.js"),lr=require("./components/commons-three-loader/index.js"),$r=require("./components/commons-three-loader3/index.js"),mr=require("./components/commons-loop-iterator/index.js"),Br=require("./components/commons-gaussian-splatting-view/index.js"),Sr=require("./components/commons-babylon/index.js"),pr=require("./components/commons-svg/index.js"),Or=require("./components/commons-weather/index.js"),Mr=require("./components/media-wavesurfer/index.js"),gr=require("./components/interaction-tabs/index.js"),Lr=require("./components/interaction-tabs2/index.js"),Tr=require("./components/interaction-button/index.js"),Pr=require("./components/interaction-button-image/index.js"),Ir=require("./components/interaction-select/index.js"),br=require("./components/interaction-input/index.js"),Gr=require("./components/interaction-radio/index.js"),Rr=require("./components/interaction-slider/index.js"),kr=require("./components/interaction-switch/index.js"),Dr=require("./components/interaction-data-picker/index.js"),fr=require("./components/interaction-button-refresh/index.js"),Ar=require("./components/media-image/index.js"),Fr=require("./components/text-title/index.js"),Hr=require("./components/commons-qrcode/index.js"),yr=require("./components/media-video/index.js"),Er=require("./components/media-audio/index.js"),Vr=require("./components/text-real-time/index.js"),wr=require("./components/media-carousel/index.js"),Ur=require("./components/media-carousel-slides/index.js"),Wr=require("./components/media-iframe-carousel/index.js"),zr=require("./components/media-iframe/index.js"),Jr=require("./components/media-m3u8/index.js"),Nr=require("./components/media-m3u8-dynamic/index.js"),jr=require("./components/media-audio-dynamic/index.js"),Qr=require("./components/media-video-dynamic/index.js"),_r=require("./components/media-image-dynamic/index.js"),Kr=require("./components/media-flv/index.js"),Xr=require("./components/commons-echarts/index.js"),Yr=require("./components/text-over-number/index.js"),et=require("./components/text-table-scroll/index.js"),rt=require("./components/text-carousel/index.js"),tt=require("./components/text-row-scroll/index.js"),at=require("./components/text-text-dynamic/index.js"),it=require("./components/text-count-down/index.js"),nt=require("./components/graphical-circle/index.js"),ot=require("./components/graphical-diamond/index.js"),ct=require("./components/graphical-hexagon/index.js"),vt=require("./components/graphical-isosceles-triangle/index.js"),ht=require("./components/graphical-pentagon/index.js"),st=require("./components/graphical-rect/index.js"),Zt=require("./components/graphical-right-triangle/index.js"),ut=require("./components/scene-map3d/index.js"),dt=require("./components/scene-amap2d/index.js"),Ct=require("./components/scene-amap3d/index.js"),xt=require("./components/scene-vr/index.js"),qt=require("./components/scene-unity-iframe/index.js"),lt=require("./components/scene-unity-webgl/index.js"),$t=require("./components/scene-ue-iframe/index.js"),mt=require("./components/scene-ue-shj/index.js"),Bt=require("./components/scene-default/index.js"),St={install:r=>{for(const t in e)r.use(e[t])}};exports.registerComponentRef=a.registerComponentRef;exports.SHJDatasourceV2=i.SHJDatasourceV2;exports.SHJParseEvent=n.SHJParseEvent;exports.getNextElement=o.getNextElement;exports.EventUtils=c.EventUtils;exports.DataSourceUtils=v.DataSourceUtils;exports.wsManager=h.wsManager;exports.ZvChartBarStack=s.ZvChartBarStack;exports.ZvChartBarBasic=Z.ZvChartBarBasic;exports.ZvChartBarLoop=u.ZvChartBarLoop;exports.ZvChartBarZebra=d.ZvChartBarZebra;exports.ZvChartBarContrast=C.ZvChartBarContrast;exports.ZvChartBarContrast2=x.ZvChartBarContrast2;exports.ZvChartBarLineBar=q.ZvChartBarLineBar;exports.ZvChartBarStack2=l.ZvChartBarStack2;exports.ZvChartBarStackLine=$.ZvChartBarStackLine;exports.ZvChartBarGradientColumnChart=m.ZvChartBarGradientColumnChart;exports.ZvChartBarSpire=B.ZvChartBarSpire;exports.ZvchartBarPolar=S.ZvchartBarPolar;exports.ZvChartBarPolar=p.ZvChartBarPolar;exports.ZvchartBarWaterfall2=O.ZvchartBarWaterfall2;exports.ZvChartBarStaggered=M.ZvChartBarStaggered;exports.ZvChartBarPolarStack=g.ZvChartBarPolarStack;exports.ZvChartBarStack3=L.ZvChartBarStack3;exports.ZvChartBarHorizontalStack=T.ZvChartBarHorizontalStack;exports.ZvChartBarContrast3=P.ZvChartBarContrast3;exports.ZvChartBarLineBar2=I.ZvChartBarLineBar2;exports.ZvchartBarRadiusCricle=b.ZvchartBarRadiusCricle;exports.ZvChartBarAnimation=G.ZvChartBarAnimation;exports.ZvChartPie3d=R.ZvChartPie3d;exports.ZvChartPieBasic=k.ZvChartPieBasic;exports.ZvChartPieBasic2=D.ZvChartPieBasic2;exports.ZvChartPieRadius=f.ZvChartPieRadius;exports.ZvChartPieCustomized=A.ZvChartPieCustomized;exports.ZvChartPieInterval=F.ZvChartPieInterval;exports.ZvChartPieLegendScroll=H.ZvChartPieLegendScroll;exports.ZvChartLineBump=y.ZvChartLineBump;exports.ZvChartLineTemp=E.ZvChartLineTemp;exports.ZvChartLineStack=V.ZvChartLineStack;exports.ZvChartLineSmooth=w.ZvChartLineSmooth;exports.ZvChartLineRainFlow=U.ZvChartLineRainFlow;exports.ZvChartLineStackArea=W.ZvChartLineStackArea;exports.ZvChartLineSmoothArea=z.ZvChartLineSmoothArea;exports.ZvChartLineAreaGardient=J.ZvChartLineAreaGardient;exports.ZvChartLineAreaHighlight=N.ZvChartLineAreaHighlight;exports.ZvChartLineAreaHighlight2=j.ZvChartLineAreaHighlight2;exports.ZvChartLineMultix=Q.ZvChartLineMultix;exports.ZvChartLineLogarithm=_.ZvChartLineLogarithm;exports.ZvChartLineLadder=K.ZvChartLineLadder;exports.ZvChartLineVertical=X.ZvChartLineVertical;exports.ZvChartLinePolarDouble=Y.ZvChartLinePolarDouble;exports.ZvChartScatterBasic=ee.ZvChartScatterBasic;exports.ZvChartScatterRipples=re.ZvChartScatterRipples;exports.ZvChartScatterBubble=te.ZvChartScatterBubble;exports.ZvTextTextBasic=ae.ZvTextTextBasic;exports.ZvTextTableBasic=ie.ZvTextTableBasic;exports.ZvChartOtherGauge=ne.ZvChartOtherGauge;exports.ZvChartOtherGaugeStage=oe.ZvChartOtherGaugeStage;exports.ZvChartOtherGaugeGrade=ce.ZvChartOtherGaugeGrade;exports.ZvChartOtherWordCloud=ve.ZvChartOtherWordCloud;exports.ZvChartOtherLiquidfill=he.ZvChartOtherLiquidfill;exports.ZvChartBarHorizontal=se.ZvChartBarHorizontal;exports.ZvChartBarThree=Ze.ZvChartBarThree;exports.ZvChartBarRank=ue.ZvChartBarRank;exports.ZvChartBarMini=de.ZvChartBarMini;exports.ZvChartLineDashed=Ce.ZvChartLineDashed;exports.ZvChartPieSemicircle=xe.ZvChartPieSemicircle;exports.ZvChartPieRose=qe.ZvChartPieRose;exports.ZvChartScatterBasic2=le.ZvChartScatterBasic2;exports.ZvChartOtherFunnel=$e.ZvChartOtherFunnel;exports.ZvChartOtherForce=me.ZvChartOtherForce;exports.ZvChartOtherRadar=Be.ZvChartOtherRadar;exports.ZvChartOtherFunnelSplit=Se.ZvChartOtherFunnelSplit;exports.ZvChartOtherFunnelContrast=pe.ZvChartOtherFunnelContrast;exports.ZvChartOtherCandlestickBasic=Oe.ZvChartOtherCandlestickBasic;exports.ZvChartOtherCandlestickShanghai=Me.ZvChartOtherCandlestickShanghai;exports.ZvChartOtherCandlestickDemo=ge.ZvChartOtherCandlestickDemo;exports.ZvChartOtherHeatmap=Le.ZvChartOtherHeatmap;exports.ZvChartOtherForce2=Te.ZvChartOtherForce2;exports.ZvChartOtherGraphBasic=Pe.ZvChartOtherGraphBasic;exports.ZvChartOtherGraphBasic2=Ie.ZvChartOtherGraphBasic2;exports.ZvChartOtherGraphCalendar=be.ZvChartOtherGraphCalendar;exports.ZvChartOtherTreeLine=Ge.ZvChartOtherTreeLine;exports.ZvChartOtherTreemapBasic=Re.ZvChartOtherTreemapBasic;exports.ZvChartOtherSunburstBasic=ke.ZvChartOtherSunburstBasic;exports.ZvChartOtherSunburstBasic2=De.ZvChartOtherSunburstBasic2;exports.ZvChartOtherSunburstBasic3=fe.ZvChartOtherSunburstBasic3;exports.ZvChartOtherSunburstBasic4=Ae.ZvChartOtherSunburstBasic4;exports.ZvChartOtherSunburstBook=Fe.ZvChartOtherSunburstBook;exports.ZvChartOtherSunburstRadius=He.ZvChartOtherSunburstRadius;exports.ZvChartOtherSunburstFlavors=ye.ZvChartOtherSunburstFlavors;exports.ZvChartOtherParallelBasic=Ee.ZvChartOtherParallelBasic;exports.ZvChartOtherParallelMul=Ve.ZvChartOtherParallelMul;exports.ZvChartLineBasic=we.ZvChartLineBasic;exports.ZvChartLineScale=Ue.ZvChartLineScale;exports.ZvChartMapLines=We.ZvChartMapLines;exports.ZvChartMapBasic=ze.ZvChartMapBasic;exports.ZvChartMapScatter=Je.ZvChartMapScatter;exports.ZvChartMapCustomize=Ne.ZvChartMapCustomize;exports.ZvChartMapBmapRich=je.ZvChartMapBmapRich;exports.ZvChartOtherCircularGraph=Qe.ZvChartOtherCircularGraph;exports.ZvChartMapBmapHeatmap=_e.ZvChartMapBmapHeatmap;exports.ZvChartMapBmapBasic=Ke.ZvChartMapBmapBasic;exports.ZvMapEarthBasic=Xe.ZvMapEarthBasic;exports.ZvMapEarthCoolTech=Ye.ZvMapEarthCoolTech;exports.ZvMapEarthParticle=er.ZvMapEarthParticle;exports.ZvMapEarthHacker=rr.ZvMapEarthHacker;exports.ZvMapEarthFlyLine=tr.ZvMapEarthFlyLine;exports.ZvChartPieIndex=ar.ZvChartPieIndex;exports.ZvChartOtherGridPercentage=ir.ZvChartOtherGridPercentage;exports.ZvChartOtherRadarStack=nr.ZvChartOtherRadarStack;exports.ZvChartBarSegmentedProgress=or.ZvChartBarSegmentedProgress;exports.ZvChartOtherFunnel2=cr.ZvChartOtherFunnel2;exports.ZvChartOtherLabelGauge=vr.ZvChartOtherLabelGauge;exports.ZvChartPieRound=hr.ZvChartPieRound;exports.ZvChartPieSunburst=sr.ZvChartPieSunburst;exports.ZvChartOtherThemeRiver=Zr.ZvChartOtherThemeRiver;exports.ZvChartOtherTree=ur.ZvChartOtherTree;exports.ZvChartOtherTreemap=dr.ZvChartOtherTreemap;exports.ZvCommonsProductModel=Cr.ZvCommonsProductModel;exports.ZvCommonsVrPhoto=xr.ZvCommonsVrPhoto;exports.ZvCommonsVrVideo=qr.ZvCommonsVrVideo;exports.ZvCommonsThreeLoader=lr.ZvCommonsThreeLoader;exports.ZvCommonsThreeLoader3=$r.ZvCommonsThreeLoader3;exports.ZvCommonsLoopIterator=mr.ZvCommonsLoopIterator;exports.ZvCommonsGaussianSplattingView=Br.ZvCommonsGaussianSplattingView;exports.ZvCommonsBabylon=Sr.ZvCommonsBabylon;exports.ZvCommonsSvg=pr.ZvCommonsSvg;exports.ZvCommonsWeather=Or.ZvCommonsWeather;exports.ZvMediaWavesurfer=Mr.ZvMediaWavesurfer;exports.ZvInteractionTabs=gr.ZvInteractionTabs;exports.ZvInteractionTabs2=Lr.ZvInteractionTabs2;exports.ZvInteractionButton=Tr.ZvInteractionButton;exports.ZvInteractionButtonImage=Pr.ZvInteractionButtonImage;exports.ZvInteractionSelect=Ir.ZvInteractionSelect;exports.ZvInteractionInput=br.ZvInteractionInput;exports.ZvInteractionRadio=Gr.ZvInteractionRadio;exports.ZvInteractionSlider=Rr.ZvInteractionSlider;exports.ZvInteractionSwitch=kr.ZvInteractionSwitch;exports.ZvInteractionDataPicker=Dr.ZvInteractionDataPicker;exports.ZvInteractionButtonRefresh=fr.ZvInteractionButtonRefresh;exports.ZvMediaImage=Ar.ZvMediaImage;exports.ZvTextTitle=Fr.ZvTextTitle;exports.ZvCommonsQrcode=Hr.ZvCommonsQrcode;exports.ZvMediaVideo=yr.ZvMediaVideo;exports.ZvMediaAudio=Er.ZvMediaAudio;exports.ZvTextRealTime=Vr.ZvTextRealTime;exports.ZvMediaCarousel=wr.ZvMediaCarousel;exports.ZvMediaCarouselSlides=Ur.ZvMediaCarouselSlides;exports.ZvMediaIframeCarousel=Wr.ZvMediaIframeCarousel;exports.ZvMediaIframe=zr.ZvMediaIframe;exports.ZvMediaM3u8=Jr.ZvMediaM3u8;exports.ZvMediaM3u8Dynamic=Nr.ZvMediaM3u8Dynamic;exports.ZvMediaAudioDynamic=jr.ZvMediaAudioDynamic;exports.ZvMediaVideoDynamic=Qr.ZvMediaVideoDynamic;exports.ZvMediaImageDynamic=_r.ZvMediaImageDynamic;exports.ZvMediaFlv=Kr.ZvMediaFlv;exports.ZvCommonsEcharts=Xr.ZvCommonsEcharts;exports.ZvTextOverNumber=Yr.ZvTextOverNumber;exports.ZvTextTableScroll=et.ZvTextTableScroll;exports.ZvTextCarousel=rt.ZvTextCarousel;exports.ZvTextRowScroll=tt.ZvTextRowScroll;exports.ZvTextTextDynamic=at.ZvTextTextDynamic;exports.ZvTextCountDown=it.ZvTextCountDown;exports.ZvGraphicalCircle=nt.ZvGraphicalCircle;exports.ZvGraphicalDiamond=ot.ZvGraphicalDiamond;exports.ZvGraphicalHexagon=ct.ZvGraphicalHexagon;exports.ZvGraphicalIsoscelesTriangle=vt.ZvGraphicalIsoscelesTriangle;exports.ZvGraphicalPentagon=ht.ZvGraphicalPentagon;exports.ZvGraphicalRect=st.ZvGraphicalRect;exports.ZvGraphicalRightTriangle=Zt.ZvGraphicalRightTriangle;exports.ZvSceneMap3d=ut.ZvSceneMap3d;exports.ZvSceneAmap2d=dt.ZvSceneAmap2d;exports.ZvSceneAmap3d=Ct.ZvSceneAmap3d;exports.ZvSceneVr=xt.ZvSceneVr;exports.ZvSceneUnityIframe=qt.ZvSceneUnityIframe;exports.ZvSceneUnityWebgl=lt.ZvSceneUnityWebgl;exports.ZvSceneUeIframe=$t.ZvSceneUeIframe;exports.ZvSceneUeShj=mt.ZvSceneUeShj;exports.ZvSceneDefault=Bt.ZvSceneDefault;exports.default=St;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./components/index.js");;/* empty css */const a=require("./commons/utils/componentRefs.js"),i=require("./commons/plugins/datasource/index.js"),n=require("./commons/plugins/event/index.js"),o=require("./commons/utils/getNextElement.js"),c=require("./commons/plugins/event/utils/utils.js"),v=require("./commons/plugins/datasource/utils/utils.js"),h=require("./commons/plugins/datasource/utils/wsManager.js"),s=require("./components/chart-bar-stack/index.js"),Z=require("./components/chart-bar-basic/index.js"),u=require("./components/chart-bar-loop/index.js"),d=require("./components/chart-bar-zebra/index.js"),C=require("./components/chart-bar-contrast/index.js"),x=require("./components/chart-bar-contrast2/index.js"),q=require("./components/chart-bar-line-bar/index.js"),l=require("./components/chart-bar-stack2/index.js"),$=require("./components/chart-bar-stack-line/index.js"),m=require("./components/chart-bar-gradient-column-chart/index.js"),B=require("./components/chart-bar-spire/index.js"),S=require("./components/chart-bar-waterfall/index.js"),p=require("./components/chart-bar-polar/index.js"),O=require("./components/chart-bar-polar2/index.js"),M=require("./components/chart-bar-staggered/index.js"),L=require("./components/chart-bar-polar-stack/index.js"),g=require("./components/chart-bar-stack3/index.js"),T=require("./components/chart-bar-horizontal-stack/index.js"),P=require("./components/chart-bar-contrast3/index.js"),I=require("./components/chart-bar-line-bar2/index.js"),b=require("./components/chart-bar-radius-circle/index.js"),G=require("./components/chart-bar-animation/index.js"),R=require("./components/chart-pie-3d/index.js"),k=require("./components/chart-pie-basic/index.js"),D=require("./components/chart-pie-basic2/index.js"),f=require("./components/chart-pie-radius/index.js"),A=require("./components/chart-pie-customized/index.js"),F=require("./components/chart-pie-interval/index.js"),H=require("./components/chart-pie-legend-scroll/index.js"),y=require("./components/chart-line-bump/index.js"),E=require("./components/chart-line-temp/index.js"),V=require("./components/chart-line-stack/index.js"),w=require("./components/chart-line-smooth/index.js"),U=require("./components/chart-line-rain-flow/index.js"),W=require("./components/chart-line-stack-area/index.js"),z=require("./components/chart-line-smooth-area/index.js"),J=require("./components/chart-line-area-gradient/index.js"),N=require("./components/chart-line-area-highlight/index.js"),j=require("./components/chart-line-area-highlight2/index.js"),Q=require("./components/chart-line-multix/index.js"),_=require("./components/chart-line-logarithm/index.js"),K=require("./components/chart-line-ladder/index.js"),X=require("./components/chart-line-vertical/index.js"),Y=require("./components/chart-line-polar-double/index.js"),ee=require("./components/chart-scatter-basic/index.js"),re=require("./components/chart-scatter-ripples/index.js"),te=require("./components/chart-scatter-bubble/index.js"),ae=require("./components/text-text-basic/index.js"),ie=require("./components/text-table-basic/index.js"),ne=require("./components/chart-other-gauge/index.js"),oe=require("./components/chart-other-gauge-stage/index.js"),ce=require("./components/chart-other-gauge-grade/index.js"),ve=require("./components/chart-other-word-cloud/index.js"),he=require("./components/chart-other-liquidfill/index.js"),se=require("./components/chart-bar-horizontal/index.js"),Ze=require("./components/chart-bar-three/index.js"),ue=require("./components/chart-bar-rank/index.js"),de=require("./components/chart-bar-mini/index.js"),Ce=require("./components/chart-line-dashed/index.js"),xe=require("./components/chart-pie-semicircle/index.js"),qe=require("./components/chart-pie-rose/index.js"),le=require("./components/chart-scatter-basic2/index.js"),$e=require("./components/chart-other-funnel/index.js"),me=require("./components/chart-other-force/index.js"),Be=require("./components/chart-other-radar/index.js"),Se=require("./components/chart-other-funnel-split/index.js"),pe=require("./components/chart-other-funnel-contrast/index.js"),Oe=require("./components/chart-other-candlestick-basic/index.js"),Me=require("./components/chart-other-candlestick-shanghai/index.js"),Le=require("./components/chart-other-candlestick-demo/index.js"),ge=require("./components/chart-other-heatmap/index.js"),Te=require("./components/chart-other-force2/index.js"),Pe=require("./components/chart-other-graph-basic/index.js"),Ie=require("./components/chart-other-graph-basic2/index.js"),be=require("./components/chart-other-graph-calendar/index.js"),Ge=require("./components/chart-other-tree-line/index.js"),Re=require("./components/chart-other-treemap-basic/index.js"),ke=require("./components/chart-other-sunburst-basic/index.js"),De=require("./components/chart-other-sunburst-basic2/index.js"),fe=require("./components/chart-other-sunburst-basic3/index.js"),Ae=require("./components/chart-other-sunburst-basic4/index.js"),Fe=require("./components/chart-other-sunburst-book/index.js"),He=require("./components/chart-other-sunburst-radius/index.js"),ye=require("./components/chart-other-sunburst-flavors/index.js"),Ee=require("./components/chart-other-parallel-basic/index.js"),Ve=require("./components/chart-other-parallel-mul/index.js"),we=require("./components/chart-line-basic/index.js"),Ue=require("./components/chart-line-scale/index.js"),We=require("./components/chart-map-lines/index.js"),ze=require("./components/chart-map-basic/index.js"),Je=require("./components/chart-map-scatter/index.js"),Ne=require("./components/chart-map-customize/index.js"),je=require("./components/chart-map-bmap-rich/index.js"),Qe=require("./components/chart-other-circular-graph/index.js"),_e=require("./components/chart-map-bmap-heatmap/index.js"),Ke=require("./components/chart-map-bmap-basic/index.js"),Xe=require("./components/map-earth-basic/index.js"),Ye=require("./components/map-earth-cool-tech/index.js"),er=require("./components/map-earth-particle/index.js"),rr=require("./components/map-earth-hacker/index.js"),tr=require("./components/map-earth-fly-line/index.js"),ar=require("./components/chart-pie-index/index.js"),ir=require("./components/chart-other-grid-percentage/index.js"),nr=require("./components/chart-other-radar-stack/index.js"),or=require("./components/chart-bar-segmented-progress/index.js"),cr=require("./components/chart-other-funnel2/index.js"),vr=require("./components/chart-other-label-gauge/index.js"),hr=require("./components/chart-pie-round/index.js"),sr=require("./components/chart-pie-sunburst/index.js"),Zr=require("./components/chart-other-theme-river/index.js"),ur=require("./components/chart-other-tree/index.js"),dr=require("./components/chart-other-treemap/index.js"),Cr=require("./components/commons-product-model/index.js"),xr=require("./components/commons-vr-photo/index.js"),qr=require("./components/commons-vr-video/index.js"),lr=require("./components/commons-three-loader/index.js"),$r=require("./components/commons-three-loader3/index.js"),mr=require("./components/commons-loop-iterator/index.js"),Br=require("./components/commons-gaussian-splatting-view/index.js"),Sr=require("./components/commons-babylon/index.js"),pr=require("./components/commons-svg/index.js"),Or=require("./components/commons-weather/index.js"),Mr=require("./components/media-wavesurfer/index.js"),Lr=require("./components/interaction-tabs/index.js"),gr=require("./components/interaction-tabs2/index.js"),Tr=require("./components/interaction-button/index.js"),Pr=require("./components/interaction-button-image/index.js"),Ir=require("./components/interaction-select/index.js"),br=require("./components/interaction-input/index.js"),Gr=require("./components/interaction-radio/index.js"),Rr=require("./components/interaction-slider/index.js"),kr=require("./components/interaction-switch/index.js"),Dr=require("./components/interaction-data-picker/index.js"),fr=require("./components/interaction-button-refresh/index.js"),Ar=require("./components/media-image/index.js"),Fr=require("./components/text-title/index.js"),Hr=require("./components/commons-qrcode/index.js"),yr=require("./components/media-video/index.js"),Er=require("./components/media-audio/index.js"),Vr=require("./components/text-real-time/index.js"),wr=require("./components/media-carousel/index.js"),Ur=require("./components/media-carousel-slides/index.js"),Wr=require("./components/media-iframe-carousel/index.js"),zr=require("./components/media-iframe/index.js"),Jr=require("./components/media-m3u8/index.js"),Nr=require("./components/media-m3u8-dynamic/index.js"),jr=require("./components/media-audio-dynamic/index.js"),Qr=require("./components/media-video-dynamic/index.js"),_r=require("./components/media-image-dynamic/index.js"),Kr=require("./components/media-flv/index.js"),Xr=require("./components/commons-echarts/index.js"),Yr=require("./components/text-over-number/index.js"),et=require("./components/text-table-scroll/index.js"),rt=require("./components/text-carousel/index.js"),tt=require("./components/text-row-scroll/index.js"),at=require("./components/text-text-dynamic/index.js"),it=require("./components/text-count-down/index.js"),nt=require("./components/graphical-circle/index.js"),ot=require("./components/graphical-diamond/index.js"),ct=require("./components/graphical-hexagon/index.js"),vt=require("./components/graphical-isosceles-triangle/index.js"),ht=require("./components/graphical-pentagon/index.js"),st=require("./components/graphical-rect/index.js"),Zt=require("./components/graphical-right-triangle/index.js"),ut=require("./components/scene-map3d/index.js"),dt=require("./components/scene-amap2d/index.js"),Ct=require("./components/scene-amap3d/index.js"),xt=require("./components/scene-vr/index.js"),qt=require("./components/scene-unity-iframe/index.js"),lt=require("./components/scene-unity-webgl/index.js"),$t=require("./components/scene-ue-iframe/index.js"),mt=require("./components/scene-ue-shj/index.js"),Bt=require("./components/scene-default/index.js"),St={install:r=>{for(const t in e)r.use(e[t])}};exports.ComponentRefs=a.ComponentRefs;exports.SHJDatasourceV2=i.SHJDatasourceV2;exports.SHJParseEvent=n.SHJParseEvent;exports.getNextElement=o.getNextElement;exports.EventUtils=c.EventUtils;exports.DataSourceUtils=v.DataSourceUtils;exports.wsManager=h.wsManager;exports.ZvChartBarStack=s.ZvChartBarStack;exports.ZvChartBarBasic=Z.ZvChartBarBasic;exports.ZvChartBarLoop=u.ZvChartBarLoop;exports.ZvChartBarZebra=d.ZvChartBarZebra;exports.ZvChartBarContrast=C.ZvChartBarContrast;exports.ZvChartBarContrast2=x.ZvChartBarContrast2;exports.ZvChartBarLineBar=q.ZvChartBarLineBar;exports.ZvChartBarStack2=l.ZvChartBarStack2;exports.ZvChartBarStackLine=$.ZvChartBarStackLine;exports.ZvChartBarGradientColumnChart=m.ZvChartBarGradientColumnChart;exports.ZvChartBarSpire=B.ZvChartBarSpire;exports.ZvchartBarPolar=S.ZvchartBarPolar;exports.ZvChartBarPolar=p.ZvChartBarPolar;exports.ZvchartBarWaterfall2=O.ZvchartBarWaterfall2;exports.ZvChartBarStaggered=M.ZvChartBarStaggered;exports.ZvChartBarPolarStack=L.ZvChartBarPolarStack;exports.ZvChartBarStack3=g.ZvChartBarStack3;exports.ZvChartBarHorizontalStack=T.ZvChartBarHorizontalStack;exports.ZvChartBarContrast3=P.ZvChartBarContrast3;exports.ZvChartBarLineBar2=I.ZvChartBarLineBar2;exports.ZvchartBarRadiusCricle=b.ZvchartBarRadiusCricle;exports.ZvChartBarAnimation=G.ZvChartBarAnimation;exports.ZvChartPie3d=R.ZvChartPie3d;exports.ZvChartPieBasic=k.ZvChartPieBasic;exports.ZvChartPieBasic2=D.ZvChartPieBasic2;exports.ZvChartPieRadius=f.ZvChartPieRadius;exports.ZvChartPieCustomized=A.ZvChartPieCustomized;exports.ZvChartPieInterval=F.ZvChartPieInterval;exports.ZvChartPieLegendScroll=H.ZvChartPieLegendScroll;exports.ZvChartLineBump=y.ZvChartLineBump;exports.ZvChartLineTemp=E.ZvChartLineTemp;exports.ZvChartLineStack=V.ZvChartLineStack;exports.ZvChartLineSmooth=w.ZvChartLineSmooth;exports.ZvChartLineRainFlow=U.ZvChartLineRainFlow;exports.ZvChartLineStackArea=W.ZvChartLineStackArea;exports.ZvChartLineSmoothArea=z.ZvChartLineSmoothArea;exports.ZvChartLineAreaGardient=J.ZvChartLineAreaGardient;exports.ZvChartLineAreaHighlight=N.ZvChartLineAreaHighlight;exports.ZvChartLineAreaHighlight2=j.ZvChartLineAreaHighlight2;exports.ZvChartLineMultix=Q.ZvChartLineMultix;exports.ZvChartLineLogarithm=_.ZvChartLineLogarithm;exports.ZvChartLineLadder=K.ZvChartLineLadder;exports.ZvChartLineVertical=X.ZvChartLineVertical;exports.ZvChartLinePolarDouble=Y.ZvChartLinePolarDouble;exports.ZvChartScatterBasic=ee.ZvChartScatterBasic;exports.ZvChartScatterRipples=re.ZvChartScatterRipples;exports.ZvChartScatterBubble=te.ZvChartScatterBubble;exports.ZvTextTextBasic=ae.ZvTextTextBasic;exports.ZvTextTableBasic=ie.ZvTextTableBasic;exports.ZvChartOtherGauge=ne.ZvChartOtherGauge;exports.ZvChartOtherGaugeStage=oe.ZvChartOtherGaugeStage;exports.ZvChartOtherGaugeGrade=ce.ZvChartOtherGaugeGrade;exports.ZvChartOtherWordCloud=ve.ZvChartOtherWordCloud;exports.ZvChartOtherLiquidfill=he.ZvChartOtherLiquidfill;exports.ZvChartBarHorizontal=se.ZvChartBarHorizontal;exports.ZvChartBarThree=Ze.ZvChartBarThree;exports.ZvChartBarRank=ue.ZvChartBarRank;exports.ZvChartBarMini=de.ZvChartBarMini;exports.ZvChartLineDashed=Ce.ZvChartLineDashed;exports.ZvChartPieSemicircle=xe.ZvChartPieSemicircle;exports.ZvChartPieRose=qe.ZvChartPieRose;exports.ZvChartScatterBasic2=le.ZvChartScatterBasic2;exports.ZvChartOtherFunnel=$e.ZvChartOtherFunnel;exports.ZvChartOtherForce=me.ZvChartOtherForce;exports.ZvChartOtherRadar=Be.ZvChartOtherRadar;exports.ZvChartOtherFunnelSplit=Se.ZvChartOtherFunnelSplit;exports.ZvChartOtherFunnelContrast=pe.ZvChartOtherFunnelContrast;exports.ZvChartOtherCandlestickBasic=Oe.ZvChartOtherCandlestickBasic;exports.ZvChartOtherCandlestickShanghai=Me.ZvChartOtherCandlestickShanghai;exports.ZvChartOtherCandlestickDemo=Le.ZvChartOtherCandlestickDemo;exports.ZvChartOtherHeatmap=ge.ZvChartOtherHeatmap;exports.ZvChartOtherForce2=Te.ZvChartOtherForce2;exports.ZvChartOtherGraphBasic=Pe.ZvChartOtherGraphBasic;exports.ZvChartOtherGraphBasic2=Ie.ZvChartOtherGraphBasic2;exports.ZvChartOtherGraphCalendar=be.ZvChartOtherGraphCalendar;exports.ZvChartOtherTreeLine=Ge.ZvChartOtherTreeLine;exports.ZvChartOtherTreemapBasic=Re.ZvChartOtherTreemapBasic;exports.ZvChartOtherSunburstBasic=ke.ZvChartOtherSunburstBasic;exports.ZvChartOtherSunburstBasic2=De.ZvChartOtherSunburstBasic2;exports.ZvChartOtherSunburstBasic3=fe.ZvChartOtherSunburstBasic3;exports.ZvChartOtherSunburstBasic4=Ae.ZvChartOtherSunburstBasic4;exports.ZvChartOtherSunburstBook=Fe.ZvChartOtherSunburstBook;exports.ZvChartOtherSunburstRadius=He.ZvChartOtherSunburstRadius;exports.ZvChartOtherSunburstFlavors=ye.ZvChartOtherSunburstFlavors;exports.ZvChartOtherParallelBasic=Ee.ZvChartOtherParallelBasic;exports.ZvChartOtherParallelMul=Ve.ZvChartOtherParallelMul;exports.ZvChartLineBasic=we.ZvChartLineBasic;exports.ZvChartLineScale=Ue.ZvChartLineScale;exports.ZvChartMapLines=We.ZvChartMapLines;exports.ZvChartMapBasic=ze.ZvChartMapBasic;exports.ZvChartMapScatter=Je.ZvChartMapScatter;exports.ZvChartMapCustomize=Ne.ZvChartMapCustomize;exports.ZvChartMapBmapRich=je.ZvChartMapBmapRich;exports.ZvChartOtherCircularGraph=Qe.ZvChartOtherCircularGraph;exports.ZvChartMapBmapHeatmap=_e.ZvChartMapBmapHeatmap;exports.ZvChartMapBmapBasic=Ke.ZvChartMapBmapBasic;exports.ZvMapEarthBasic=Xe.ZvMapEarthBasic;exports.ZvMapEarthCoolTech=Ye.ZvMapEarthCoolTech;exports.ZvMapEarthParticle=er.ZvMapEarthParticle;exports.ZvMapEarthHacker=rr.ZvMapEarthHacker;exports.ZvMapEarthFlyLine=tr.ZvMapEarthFlyLine;exports.ZvChartPieIndex=ar.ZvChartPieIndex;exports.ZvChartOtherGridPercentage=ir.ZvChartOtherGridPercentage;exports.ZvChartOtherRadarStack=nr.ZvChartOtherRadarStack;exports.ZvChartBarSegmentedProgress=or.ZvChartBarSegmentedProgress;exports.ZvChartOtherFunnel2=cr.ZvChartOtherFunnel2;exports.ZvChartOtherLabelGauge=vr.ZvChartOtherLabelGauge;exports.ZvChartPieRound=hr.ZvChartPieRound;exports.ZvChartPieSunburst=sr.ZvChartPieSunburst;exports.ZvChartOtherThemeRiver=Zr.ZvChartOtherThemeRiver;exports.ZvChartOtherTree=ur.ZvChartOtherTree;exports.ZvChartOtherTreemap=dr.ZvChartOtherTreemap;exports.ZvCommonsProductModel=Cr.ZvCommonsProductModel;exports.ZvCommonsVrPhoto=xr.ZvCommonsVrPhoto;exports.ZvCommonsVrVideo=qr.ZvCommonsVrVideo;exports.ZvCommonsThreeLoader=lr.ZvCommonsThreeLoader;exports.ZvCommonsThreeLoader3=$r.ZvCommonsThreeLoader3;exports.ZvCommonsLoopIterator=mr.ZvCommonsLoopIterator;exports.ZvCommonsGaussianSplattingView=Br.ZvCommonsGaussianSplattingView;exports.ZvCommonsBabylon=Sr.ZvCommonsBabylon;exports.ZvCommonsSvg=pr.ZvCommonsSvg;exports.ZvCommonsWeather=Or.ZvCommonsWeather;exports.ZvMediaWavesurfer=Mr.ZvMediaWavesurfer;exports.ZvInteractionTabs=Lr.ZvInteractionTabs;exports.ZvInteractionTabs2=gr.ZvInteractionTabs2;exports.ZvInteractionButton=Tr.ZvInteractionButton;exports.ZvInteractionButtonImage=Pr.ZvInteractionButtonImage;exports.ZvInteractionSelect=Ir.ZvInteractionSelect;exports.ZvInteractionInput=br.ZvInteractionInput;exports.ZvInteractionRadio=Gr.ZvInteractionRadio;exports.ZvInteractionSlider=Rr.ZvInteractionSlider;exports.ZvInteractionSwitch=kr.ZvInteractionSwitch;exports.ZvInteractionDataPicker=Dr.ZvInteractionDataPicker;exports.ZvInteractionButtonRefresh=fr.ZvInteractionButtonRefresh;exports.ZvMediaImage=Ar.ZvMediaImage;exports.ZvTextTitle=Fr.ZvTextTitle;exports.ZvCommonsQrcode=Hr.ZvCommonsQrcode;exports.ZvMediaVideo=yr.ZvMediaVideo;exports.ZvMediaAudio=Er.ZvMediaAudio;exports.ZvTextRealTime=Vr.ZvTextRealTime;exports.ZvMediaCarousel=wr.ZvMediaCarousel;exports.ZvMediaCarouselSlides=Ur.ZvMediaCarouselSlides;exports.ZvMediaIframeCarousel=Wr.ZvMediaIframeCarousel;exports.ZvMediaIframe=zr.ZvMediaIframe;exports.ZvMediaM3u8=Jr.ZvMediaM3u8;exports.ZvMediaM3u8Dynamic=Nr.ZvMediaM3u8Dynamic;exports.ZvMediaAudioDynamic=jr.ZvMediaAudioDynamic;exports.ZvMediaVideoDynamic=Qr.ZvMediaVideoDynamic;exports.ZvMediaImageDynamic=_r.ZvMediaImageDynamic;exports.ZvMediaFlv=Kr.ZvMediaFlv;exports.ZvCommonsEcharts=Xr.ZvCommonsEcharts;exports.ZvTextOverNumber=Yr.ZvTextOverNumber;exports.ZvTextTableScroll=et.ZvTextTableScroll;exports.ZvTextCarousel=rt.ZvTextCarousel;exports.ZvTextRowScroll=tt.ZvTextRowScroll;exports.ZvTextTextDynamic=at.ZvTextTextDynamic;exports.ZvTextCountDown=it.ZvTextCountDown;exports.ZvGraphicalCircle=nt.ZvGraphicalCircle;exports.ZvGraphicalDiamond=ot.ZvGraphicalDiamond;exports.ZvGraphicalHexagon=ct.ZvGraphicalHexagon;exports.ZvGraphicalIsoscelesTriangle=vt.ZvGraphicalIsoscelesTriangle;exports.ZvGraphicalPentagon=ht.ZvGraphicalPentagon;exports.ZvGraphicalRect=st.ZvGraphicalRect;exports.ZvGraphicalRightTriangle=Zt.ZvGraphicalRightTriangle;exports.ZvSceneMap3d=ut.ZvSceneMap3d;exports.ZvSceneAmap2d=dt.ZvSceneAmap2d;exports.ZvSceneAmap3d=Ct.ZvSceneAmap3d;exports.ZvSceneVr=xt.ZvSceneVr;exports.ZvSceneUnityIframe=qt.ZvSceneUnityIframe;exports.ZvSceneUnityWebgl=lt.ZvSceneUnityWebgl;exports.ZvSceneUeIframe=$t.ZvSceneUeIframe;exports.ZvSceneUeShj=mt.ZvSceneUeShj;exports.ZvSceneDefault=Bt.ZvSceneDefault;exports.default=St;
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { isArray as i } from "lodash";
|
|
2
|
-
const s = (n) => (o) => {
|
|
3
|
-
if (window.SHJComponentRefs && i(window.SHJComponentRefs) && o && n) {
|
|
4
|
-
const e = window.SHJComponentRefs.find((f) => f.layerId === n);
|
|
5
|
-
e ? e.ref = o : window.SHJComponentRefs.push({ layerId: n, ref: o });
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
s as registerComponentRef
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("lodash"),s=e=>n=>{if(window.SHJComponentRefs&&i.isArray(window.SHJComponentRefs)&&n&&e){const o=window.SHJComponentRefs.find(t=>t.layerId===e);o?o.ref=n:window.SHJComponentRefs.push({layerId:e,ref:n})}};exports.registerComponentRef=s;
|