super-page-runtime 2.3.12-rc1 → 2.3.12-rc2
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/dist/es/components/runtime/utils/charts/chart-gauge-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +223 -217
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +12 -9
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +15 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +144 -144
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -7
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +7 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +43 -41
- package/dist/es/style.css +5 -5
- package/package.json +1 -1
|
@@ -18,7 +18,8 @@ export declare function disabledAllFields(pageContext: PageContext): void;
|
|
|
18
18
|
export declare function dynamicControlTableEdit(pageContext: PageContext, customRules: any[], tableCode?: any): void;
|
|
19
19
|
export declare function updateComponentDisplayState(ref: any, item: any): void;
|
|
20
20
|
/**
|
|
21
|
-
* 布尔型和日期校验需要自定义,为了兼容oracle和mysql
|
|
21
|
+
* 布尔型和日期校验需要自定义,为了兼容oracle和mysql数据库,
|
|
22
|
+
* 数字类型的校验,防止select、radio、checkbox传字符串类型的数字
|
|
22
23
|
* @param fieldRule
|
|
23
24
|
*/
|
|
24
25
|
export declare function packageCustomValidator(fieldRule: any): void;
|
|
@@ -257,16 +257,19 @@ function O(e2, t2) {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
function j(e2) {
|
|
260
|
-
e2
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
if (null == t2) return !e3.required;
|
|
264
|
-
{
|
|
265
|
-
const e4 = new Date(t2);
|
|
266
|
-
return !isNaN(e4.getTime());
|
|
267
|
-
}
|
|
268
|
-
});
|
|
260
|
+
if (!(e2 == null ? void 0 : e2.type)) return;
|
|
261
|
+
const t2 = C[e2.type];
|
|
262
|
+
t2 && (e2.validator = t2.validator);
|
|
269
263
|
}
|
|
264
|
+
const C = { boolean: { validator: function(e2, t2, s2) {
|
|
265
|
+
return true === M(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
|
|
266
|
+
} }, date: { validator: function(e2, t2, s2) {
|
|
267
|
+
if (true !== M(e2, t2)) return false;
|
|
268
|
+
const n2 = new Date(t2);
|
|
269
|
+
return !isNaN(n2.getTime());
|
|
270
|
+
} }, number: { validator: function(e2, t2, s2) {
|
|
271
|
+
return true === M(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
|
|
272
|
+
} } }, M = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
|
|
270
273
|
export {
|
|
271
274
|
P as disabledAllFields,
|
|
272
275
|
k as dynamicControlTableEdit,
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./column-line-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = o(e, [["__scopeId", "data-v-
|
|
4
|
+
const r = o(e, [["__scopeId", "data-v-e1cf60d6"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as u, unref as s, withDirectives as l, createVNode as c, vShow as p } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import { getChartDatasFromPage as
|
|
3
|
+
import { getChartDatasFromPage as v, updateChartDatasources as x, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as I } from "../../../../utils/charts/chart-columnline-util.js";
|
|
5
5
|
import { doClickJumpPageEvent as k } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import y from "../common/common-chart-header.vue.js";
|
|
7
7
|
import { use as R } from "echarts/core";
|
|
8
8
|
import { CanvasRenderer as j } from "echarts/renderers";
|
|
9
9
|
import { LineChart as b, BarChart as D } from "echarts/charts";
|
|
10
|
-
import { GridComponent as V, LegendComponent as P, TitleComponent as _, TooltipComponent as w, ToolboxComponent as
|
|
11
|
-
import
|
|
10
|
+
import { GridComponent as V, LegendComponent as P, TitleComponent as _, TooltipComponent as w, ToolboxComponent as O, DataZoomComponent as T } from "echarts/components";
|
|
11
|
+
import E from "vue-echarts";
|
|
12
12
|
const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
13
|
-
R([j, b, V, P, _, w, D,
|
|
13
|
+
R([j, b, V, P, _, w, D, O, T]);
|
|
14
14
|
const H = e2, N = r(null), S = r(), U = r(null), z = H.configure.props ? H.configure.props.enableDrill : null, F = H.configure.props ? H.configure.props.drillEndTrigger : null, q = H.configure.props ? H.configure.props.linkPage : null, B = {};
|
|
15
15
|
if (H.configure.items) for (const e3 of H.configure.items) e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : q && q.jumpPageUrl && (B[e3.uuid] = H.configure);
|
|
16
16
|
const G = H.configure.runtime ? H.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = H.configure.props ? H.configure.props : {}, X = f(W.customTheme);
|
|
@@ -25,14 +25,14 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
25
25
|
k(H.pageContext, o2, t2);
|
|
26
26
|
}
|
|
27
27
|
g(H.configure, Q), o(() => {
|
|
28
|
-
const e3 =
|
|
28
|
+
const e3 = v(H.pageContext, H.configure);
|
|
29
29
|
e3 && oe(e3), S.value && (z || Object.keys(B).length > 0) && S.value.chart.on("click", function(e4) {
|
|
30
30
|
z ? U.value && U.value.drill && U.value.drill(e4, H.configure.cacheDatas) : Z(e4);
|
|
31
31
|
}), !z && H.configure.clickSet && S.value && m(H.pageContext, H.configure, S.value.chart);
|
|
32
32
|
});
|
|
33
33
|
let $ = M.groupValue;
|
|
34
34
|
function ee(e3) {
|
|
35
|
-
L && (true !== e3 && (L.autoRefresh = true),
|
|
35
|
+
L && (true !== e3 && (L.autoRefresh = true), x(H.pageContext, [L], M.drillParams));
|
|
36
36
|
}
|
|
37
37
|
t(M, () => {
|
|
38
38
|
$ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
|
|
@@ -40,13 +40,13 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
40
40
|
const re = M.monitorFields;
|
|
41
41
|
function oe(e3) {
|
|
42
42
|
var _a;
|
|
43
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && z || h(H.pageContext, H.configure, (_a = S.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(H.pageContext, H.configure, Q, e3));
|
|
43
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && z || h(H.pageContext, H.configure, (_a = S.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(H.pageContext, H.configure, Q, e3), S.value && S.value.setOption(Q, true));
|
|
44
44
|
}
|
|
45
45
|
return C(H.pageContext, re, () => {
|
|
46
46
|
ee(true);
|
|
47
47
|
}), A2({ updateChartDatas: oe, exportChart: function() {
|
|
48
48
|
return d(S.value);
|
|
49
|
-
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(
|
|
49
|
+
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
50
50
|
} });
|
|
51
51
|
export {
|
|
52
52
|
A as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./gauge-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-807f72b1"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as i, withDirectives as c, createVNode as p, vShow as m } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-gauge-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as y } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { GaugeChart as b } from "echarts/charts";
|
|
9
9
|
import { GridComponent as V, TitleComponent as _, TooltipComponent as j, ToolboxComponent as w } from "echarts/components";
|
|
10
10
|
import I from "vue-echarts";
|
|
11
11
|
const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: k2 }) {
|
|
12
|
-
|
|
13
|
-
const A = e2, H = r(null),
|
|
12
|
+
y([R, b, V, _, j, w]);
|
|
13
|
+
const A = e2, H = r(null), O = r(), z = r(null), D = A.configure.runtime ? A.configure.runtime : {}, F = D.style, P = D.class, S = D.dataConfig, T = D.headerInfo ? D.headerInfo : {}, q = D.chartOption, B = A.configure.props ? A.configure.props : {}, E = f(B.customTheme);
|
|
14
14
|
h(A.configure, q), t(() => {
|
|
15
15
|
const e3 = g(A.pageContext, A.configure);
|
|
16
16
|
e3 && L(e3);
|
|
@@ -24,11 +24,11 @@ const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }
|
|
|
24
24
|
});
|
|
25
25
|
const K = T.monitorFields;
|
|
26
26
|
function L(e3) {
|
|
27
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(A.pageContext, A.configure, q, e3));
|
|
27
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(A.pageContext, A.configure, q, e3), O.value && O.value.setOption(q, true));
|
|
28
28
|
}
|
|
29
29
|
return x(A.pageContext, K, J), k2({ updateChartDatas: L, exportChart: function() {
|
|
30
|
-
return l(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: u(
|
|
30
|
+
return l(O.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: u(i(F)), class: s([i(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(p(v, { ref_key: "headerRef", ref: z, headerInfo: i(T), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(T).showHeader || e3.pageContext.showHomepageSearch]]), p(i(I), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: i(E), option: i(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
k as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./pie-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-17d626a7"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as i, unref as l, withDirectives as c, createVNode as s, vShow as p } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
|
|
4
4
|
import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
|
|
@@ -11,18 +11,18 @@ import { GridComponent as V, LegendComponent as _, TitleComponent as w, TooltipC
|
|
|
11
11
|
import E from "vue-echarts";
|
|
12
12
|
const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
13
13
|
b([y, D, V, _, w, I, P]);
|
|
14
|
-
const H = e2,
|
|
14
|
+
const H = e2, O = r(null), S = r(), T = r(null), U = H.configure.props ? H.configure.props.enableDrill : null, z = H.configure.props ? H.configure.props.drillEndTrigger : null, F = H.configure.props ? H.configure.props.linkPage : null, q = H.configure.runtime ? H.configure.runtime : {}, B = q.style, G = q.class, J = q.dataConfig, K = q.headerInfo ? q.headerInfo : {}, L = q.chartOption, M = H.configure.props ? H.configure.props : {}, N = f(M.customTheme);
|
|
15
15
|
function Q(e3) {
|
|
16
|
-
"clearDrill" ==
|
|
16
|
+
"clearDrill" == z ? T.value && T.value.closeDrill && T.value.closeDrill(0) : "clickEvent" == z && W();
|
|
17
17
|
}
|
|
18
18
|
function W() {
|
|
19
|
-
|
|
19
|
+
F && F.jumpPageUrl && x(H.pageContext, H.configure, void 0);
|
|
20
20
|
}
|
|
21
21
|
g(H.configure, L), o(() => {
|
|
22
22
|
const e3 = C(H.pageContext, H.configure);
|
|
23
|
-
e3 && $(e3),
|
|
24
|
-
|
|
25
|
-
}), !
|
|
23
|
+
e3 && $(e3), S.value && (U || F && F.jumpPageUrl) && S.value.chart.on("click", function(e4) {
|
|
24
|
+
U ? T.value && T.value.drill && T.value.drill(e4, H.configure.cacheDatas) : W();
|
|
25
|
+
}), !U && H.configure.clickSet && S.value && h(H.pageContext, H.configure, S.value.chart);
|
|
26
26
|
});
|
|
27
27
|
let X = K.groupValue;
|
|
28
28
|
function Y(e3) {
|
|
@@ -33,13 +33,13 @@ const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} },
|
|
|
33
33
|
});
|
|
34
34
|
const Z = K.monitorFields;
|
|
35
35
|
function $(e3) {
|
|
36
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh &&
|
|
36
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh && U || m(H.pageContext, H.configure, S.value.chart), J.autoRefresh = false, v(H.pageContext, H.configure, L, e3), S.value && S.value.setOption(L, true));
|
|
37
37
|
}
|
|
38
38
|
return j(H.pageContext, Z, () => {
|
|
39
39
|
Y(true);
|
|
40
40
|
}), A2({ updateChartDatas: $, exportChart: function() {
|
|
41
|
-
return d(
|
|
42
|
-
} }), (e3, r2) => (n(), a("div", { style: l(
|
|
41
|
+
return d(S.value);
|
|
42
|
+
} }), (e3, r2) => (n(), a("div", { style: i(l(B)), class: u([l(G), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(s(k, { ref_key: "headerRef", ref: T, headerInfo: l(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, l(K).showHeader || e3.pageContext.showHomepageSearch]]), s(l(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: l(N), option: l(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
A as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./radar-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = e(r, [["__scopeId", "data-v-
|
|
4
|
+
const t = e(r, [["__scopeId", "data-v-a4e2d500"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as i, withDirectives as c, createVNode as p, vShow as m } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as y } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { RadarChart as b } from "echarts/charts";
|
|
9
9
|
import { GridComponent as V, TitleComponent as _, TooltipComponent as j, ToolboxComponent as w, LegendComponent as I } from "echarts/components";
|
|
10
10
|
import k from "vue-echarts";
|
|
11
11
|
const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
12
|
-
|
|
13
|
-
const H = e2,
|
|
12
|
+
y([R, b, V, _, j, w, I]);
|
|
13
|
+
const H = e2, O = r(null), z = r(), D = r(null), F = H.configure.runtime ? H.configure.runtime : {}, P = F.style, S = F.class, T = F.dataConfig, q = F.headerInfo ? F.headerInfo : {}, B = F.chartOption, E = H.configure.props ? H.configure.props : {}, G = f(E.customTheme);
|
|
14
14
|
h(H.configure, B), t(() => {
|
|
15
15
|
const e3 = g(H.pageContext, H.configure);
|
|
16
16
|
e3 && M(e3);
|
|
@@ -24,11 +24,11 @@ const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }
|
|
|
24
24
|
});
|
|
25
25
|
const L = q.monitorFields;
|
|
26
26
|
function M(e3) {
|
|
27
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(H.pageContext, H.configure, B, e3));
|
|
27
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(H.pageContext, H.configure, B, e3), z.value && z.value.setOption(B, true));
|
|
28
28
|
}
|
|
29
29
|
return x(H.pageContext, L, K), A2({ updateChartDatas: M, exportChart: function() {
|
|
30
|
-
return l(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: u(
|
|
30
|
+
return l(z.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: u(i(P)), class: s([i(S), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(p(v, { ref_key: "headerRef", ref: D, headerInfo: i(q), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(q).showHeader || e3.pageContext.showHomepageSearch]]), p(i(k), { ref_key: "chartRef", ref: z, class: "amb-chart-content", theme: i(G), option: i(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
A as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./scatter-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = e(t, [["__scopeId", "data-v-a924cb6f"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -2,33 +2,33 @@ import { defineComponent as e, ref as r, onMounted as t, watch as o, createEleme
|
|
|
2
2
|
import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as y } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { ScatterChart as b } from "echarts/charts";
|
|
9
9
|
import { GridComponent as V, LegendComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, DataZoomComponent as k } from "echarts/components";
|
|
10
10
|
import A from "vue-echarts";
|
|
11
11
|
const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
h(
|
|
15
|
-
const e3 = g(
|
|
12
|
+
y([R, b, V, _, j, w, I, k]);
|
|
13
|
+
const O = e2, z = r(null), D = r(), F = r(null), P = O.configure.runtime ? O.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = O.configure.props ? O.configure.props : {}, J = f(G.customTheme);
|
|
14
|
+
h(O.configure, E), t(() => {
|
|
15
|
+
const e3 = g(O.pageContext, O.configure);
|
|
16
16
|
e3 && N(e3);
|
|
17
17
|
});
|
|
18
18
|
let K = B.groupValue;
|
|
19
19
|
function L() {
|
|
20
|
-
q && d(
|
|
20
|
+
q && d(O.pageContext, [q], B.drillParams);
|
|
21
21
|
}
|
|
22
22
|
o(B, () => {
|
|
23
23
|
K != B.groupValue && (K = B.groupValue, q && (q.services[0].groupValue = B.groupValue), L());
|
|
24
24
|
});
|
|
25
25
|
const M = B.monitorFields;
|
|
26
26
|
function N(e3) {
|
|
27
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(
|
|
27
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(O.pageContext, O.configure, E, e3), D.value && D.value.setOption(E, true));
|
|
28
28
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return l(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: c(u(S)), class: s([u(T), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref:
|
|
29
|
+
return x(O.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
|
|
30
|
+
return l(D.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: c(u(S)), class: s([u(T), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: z }, [i(p(v, { ref_key: "headerRef", ref: F, headerInfo: u(B), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, u(B).showHeader || e3.pageContext.showHomepageSearch]]), p(u(A), { ref_key: "chartRef", ref: D, class: "amb-chart-content", theme: u(J), option: u(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
H as default
|
|
@@ -117,4 +117,5 @@ export declare function getNewColumnConfig(prop: string, name: string, displayOr
|
|
|
117
117
|
};
|
|
118
118
|
export declare function computeFormula(itemConfs: any, datas: any, entity: any): void;
|
|
119
119
|
export declare function formatColContent(row: any, format: any, column: any, pageContext: any, configure: any): any;
|
|
120
|
+
export declare function mergeRowByProperty(row: any, column: any, rowIndex: number, property: string, data: any): number[];
|
|
120
121
|
export {};
|
|
@@ -385,6 +385,20 @@ function formatCustomFunc(e, t, r, o, n) {
|
|
|
385
385
|
return "";
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
+
function mergeRowByProperty(e, t, r, o, n) {
|
|
389
|
+
const a = e[o];
|
|
390
|
+
let s = 1, l = true;
|
|
391
|
+
for (let e2 = r - 1; e2 >= 0; e2--) {
|
|
392
|
+
if (n[e2][o] === a) {
|
|
393
|
+
l = false;
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
if (!l) return [0, 0];
|
|
399
|
+
for (let e2 = r + 1; e2 < n.length && n[e2][o] === a; e2++) s++;
|
|
400
|
+
return [s, 1];
|
|
401
|
+
}
|
|
388
402
|
export {
|
|
389
403
|
ExpressionEvaluator,
|
|
390
404
|
colDataToRow,
|
|
@@ -398,6 +412,7 @@ export {
|
|
|
398
412
|
getRowStyleUtil,
|
|
399
413
|
getSummaryDataColumn,
|
|
400
414
|
getSummaryTitleColumn,
|
|
415
|
+
mergeRowByProperty,
|
|
401
416
|
replacePlaceholders,
|
|
402
417
|
rowDataToColumn,
|
|
403
418
|
summaryStatistics
|