super-page-runtime 2.2.92-sit4 → 2.2.92-sit9
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/views/assemblys/chart/column-line/column-line-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +21 -21
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +15 -15
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +2 -1
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -3,36 +3,36 @@ import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable
|
|
|
3
3
|
import { getChartDatasFromPage as x, updateChartDatasources as v, 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
|
-
import
|
|
7
|
-
import { use as
|
|
8
|
-
import { CanvasRenderer as
|
|
6
|
+
import y from "../common/common-chart-header.vue.js";
|
|
7
|
+
import { use as R } from "echarts/core";
|
|
8
|
+
import { CanvasRenderer as j } from "echarts/renderers";
|
|
9
9
|
import { LineChart as D, BarChart as V } from "echarts/charts";
|
|
10
10
|
import { GridComponent as P, LegendComponent as b, TitleComponent as _, TooltipComponent as w, ToolboxComponent as T, DataZoomComponent as E } from "echarts/components";
|
|
11
11
|
import O from "vue-echarts";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
const G =
|
|
12
|
+
const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
13
|
+
R([j, D, P, b, _, w, V, T, E]);
|
|
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
|
+
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
|
+
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);
|
|
17
17
|
function Y(e3) {
|
|
18
|
-
"clearDrill" ==
|
|
18
|
+
"clearDrill" == F ? U.value && U.value.closeDrill && U.value.closeDrill(0) : "clickEvent" === F && Z(e3);
|
|
19
19
|
}
|
|
20
20
|
function Z(e3) {
|
|
21
21
|
if (e3.seriesIndex >= Q.series.length) return;
|
|
22
22
|
const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
|
|
23
23
|
if (!o2) return;
|
|
24
24
|
const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
|
|
25
|
-
k(
|
|
25
|
+
k(H.pageContext, o2, t2);
|
|
26
26
|
}
|
|
27
|
-
g(
|
|
28
|
-
const e3 = x(
|
|
29
|
-
e3 && oe(e3),
|
|
30
|
-
|
|
31
|
-
}), !
|
|
27
|
+
g(H.configure, Q), o(() => {
|
|
28
|
+
const e3 = x(H.pageContext, H.configure);
|
|
29
|
+
e3 && oe(e3), S.value && (z || Object.keys(B).length > 0) && S.value.chart.on("click", function(e4) {
|
|
30
|
+
z ? U.value && U.value.drill && U.value.drill(e4, H.configure.cacheDatas) : Z(e4);
|
|
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), v(
|
|
35
|
+
L && (true !== e3 && (L.autoRefresh = true), v(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,14 +40,14 @@ const H = 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 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh &&
|
|
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));
|
|
44
44
|
}
|
|
45
|
-
return C(
|
|
45
|
+
return C(H.pageContext, re, () => {
|
|
46
46
|
ee(true);
|
|
47
|
-
}),
|
|
48
|
-
return d(
|
|
49
|
-
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref:
|
|
47
|
+
}), A2({ updateChartDatas: oe, exportChart: function() {
|
|
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"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: S, theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
50
50
|
} });
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
A as default
|
|
53
53
|
};
|
|
@@ -2,33 +2,33 @@ import { defineComponent as e, ref as r, onMounted as t, watch as o, createEleme
|
|
|
2
2
|
import { getCustomTheme as m, initChartOption as g, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as l, 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
|
|
7
|
-
import { CanvasRenderer as
|
|
5
|
+
import y from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as v } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { GaugeChart as V } from "echarts/charts";
|
|
9
9
|
import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I } from "echarts/components";
|
|
10
10
|
import k from "vue-echarts";
|
|
11
11
|
const b = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
g(
|
|
15
|
-
const e3 = l(
|
|
12
|
+
v([R, V, _, j, w, I]);
|
|
13
|
+
const A = e2, H = r(null), z = r(null), D = r(null), F = A.configure.runtime ? A.configure.runtime : {}, O = F.style, P = F.class, S = F.dataConfig, T = F.headerInfo ? F.headerInfo : {}, q = F.chartOption, B = A.configure.props ? A.configure.props : {}, E = m(B.customTheme);
|
|
14
|
+
g(A.configure, q), t(() => {
|
|
15
|
+
const e3 = l(A.pageContext, A.configure);
|
|
16
16
|
e3 && L(e3);
|
|
17
17
|
});
|
|
18
|
-
let G =
|
|
18
|
+
let G = T.groupValue;
|
|
19
19
|
function J() {
|
|
20
|
-
|
|
20
|
+
S && d(A.pageContext, [S], T.drillParams);
|
|
21
21
|
}
|
|
22
|
-
o(
|
|
23
|
-
G !=
|
|
22
|
+
o(T, () => {
|
|
23
|
+
G != T.groupValue && (G = T.groupValue, S && (S.services[0].groupValue = T.groupValue), J());
|
|
24
24
|
});
|
|
25
|
-
const K =
|
|
25
|
+
const K = T.monitorFields;
|
|
26
26
|
function L(e3) {
|
|
27
|
-
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (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(A.pageContext, A.configure, q, e3));
|
|
28
28
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return h(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: i(s(
|
|
29
|
+
return x(A.pageContext, K, J), b2({ updateChartDatas: L, exportChart: function() {
|
|
30
|
+
return h(z.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: i(s(O)), class: u([s(P), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: H }, [p(c(y, { ref_key: "headerRef", ref: D, headerInfo: s(T), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(T).showHeader || e3.pageContext.showHomepageSearch]]), c(s(k), { ref_key: "chartRef", ref: z, theme: s(E), option: s(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
b as default
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as u, normalizeStyle as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as u, normalizeStyle as i, unref as l, withDirectives as c, createVNode as p, vShow as s } 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";
|
|
5
5
|
import { getChartDatasFromPage as C, updateChartDatasources as R, monitorFieldChange as j } from "../../../../utils/page-helper-util.js";
|
|
6
6
|
import k from "../common/common-chart-header.vue.js";
|
|
7
|
-
import { use as
|
|
8
|
-
import { CanvasRenderer as
|
|
9
|
-
import { PieChart as
|
|
7
|
+
import { use as y } from "echarts/core";
|
|
8
|
+
import { CanvasRenderer as D } from "echarts/renderers";
|
|
9
|
+
import { PieChart as V } from "echarts/charts";
|
|
10
10
|
import { GridComponent as _, LegendComponent as b, TitleComponent as w, TooltipComponent as I, ToolboxComponent as P } from "echarts/components";
|
|
11
11
|
import E from "vue-echarts";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
12
|
+
const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
13
|
+
y([D, V, _, b, w, I, P]);
|
|
14
|
+
const H = e2, S = r(null), T = r(null), U = r(null), z = H.configure.props ? H.configure.props.enableDrill : null, F = H.configure.props ? H.configure.props.drillEndTrigger : null, O = 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" == F ? U.value && U.value.closeDrill && U.value.closeDrill(0) : "clickEvent" == F && W();
|
|
17
17
|
}
|
|
18
18
|
function W() {
|
|
19
|
-
|
|
19
|
+
O && O.jumpPageUrl && x(H.pageContext, H.configure, void 0);
|
|
20
20
|
}
|
|
21
|
-
g(
|
|
22
|
-
const e3 = C(
|
|
23
|
-
e3 && $(e3),
|
|
24
|
-
|
|
25
|
-
}), !
|
|
21
|
+
g(H.configure, L), o(() => {
|
|
22
|
+
const e3 = C(H.pageContext, H.configure);
|
|
23
|
+
e3 && $(e3), T.value && (z || O && O.jumpPageUrl) && T.value.chart.on("click", function(e4) {
|
|
24
|
+
z ? U.value && U.value.drill && U.value.drill(e4, H.configure.cacheDatas) : W();
|
|
25
|
+
}), !z && H.configure.clickSet && T.value && h(H.pageContext, H.configure, T.value.chart);
|
|
26
26
|
});
|
|
27
27
|
let X = K.groupValue;
|
|
28
28
|
function Y(e3) {
|
|
29
|
-
J && (true !== e3 && (J.autoRefresh = true), R(
|
|
29
|
+
J && (true !== e3 && (J.autoRefresh = true), R(H.pageContext, [J], K.drillParams));
|
|
30
30
|
}
|
|
31
31
|
t(K, () => {
|
|
32
32
|
X != K.groupValue && (X = K.groupValue, J && (J.services[0].groupValue = K.groupValue), Y(false));
|
|
33
33
|
});
|
|
34
34
|
const Z = K.monitorFields;
|
|
35
35
|
function $(e3) {
|
|
36
|
-
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (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 && z || m(H.pageContext, H.configure, T.value.chart), J.autoRefresh = false, v(H.pageContext, H.configure, L, e3));
|
|
37
37
|
}
|
|
38
|
-
return j(
|
|
38
|
+
return j(H.pageContext, Z, () => {
|
|
39
39
|
Y(true);
|
|
40
|
-
}),
|
|
41
|
-
return d(
|
|
42
|
-
} }), (e3, r2) => (a(), n("div", { style: l(
|
|
40
|
+
}), A2({ updateChartDatas: $, exportChart: function() {
|
|
41
|
+
return d(T.value);
|
|
42
|
+
} }), (e3, r2) => (a(), n("div", { style: i(l(B)), class: u([l(G), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: S }, [c(p(k, { ref_key: "headerRef", ref: U, headerInfo: l(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q }, null, 8, ["headerInfo", "configure", "pageContext"]), [[s, l(K).showHeader || e3.pageContext.showHomepageSearch]]), p(l(E), { ref_key: "chartRef", ref: T, theme: l(N), option: l(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
A as default
|
|
46
46
|
};
|
|
@@ -2,34 +2,34 @@ import { defineComponent as e, ref as r, onMounted as t, watch as o, createEleme
|
|
|
2
2
|
import { getCustomTheme as m, 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
|
|
7
|
-
import { CanvasRenderer as
|
|
5
|
+
import y from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as v } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { RadarChart as V } from "echarts/charts";
|
|
9
9
|
import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, LegendComponent as k } from "echarts/components";
|
|
10
10
|
import b from "vue-echarts";
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
h(
|
|
15
|
-
const e3 = g(
|
|
11
|
+
const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
12
|
+
v([R, V, _, j, w, I, k]);
|
|
13
|
+
const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, B = O.chartOption, E = H.configure.props ? H.configure.props : {}, G = m(E.customTheme);
|
|
14
|
+
h(H.configure, B), t(() => {
|
|
15
|
+
const e3 = g(H.pageContext, H.configure);
|
|
16
16
|
e3 && M(e3);
|
|
17
17
|
});
|
|
18
|
-
let J =
|
|
18
|
+
let J = q.groupValue;
|
|
19
19
|
function K() {
|
|
20
|
-
|
|
20
|
+
T && d(H.pageContext, [T], q.drillParams);
|
|
21
21
|
}
|
|
22
|
-
o(
|
|
23
|
-
J !=
|
|
22
|
+
o(q, () => {
|
|
23
|
+
J != q.groupValue && (J = q.groupValue, T && (T.services[0].groupValue = q.groupValue), K());
|
|
24
24
|
});
|
|
25
|
-
const L =
|
|
25
|
+
const L = q.monitorFields;
|
|
26
26
|
function M(e3) {
|
|
27
|
-
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (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(H.pageContext, H.configure, B, e3));
|
|
28
28
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return l(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: i(s(
|
|
29
|
+
return x(H.pageContext, L, K), A2({ updateChartDatas: M, exportChart: function() {
|
|
30
|
+
return l(D.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: i(s(P)), class: u([s(S), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: z }, [p(c(y, { ref_key: "headerRef", ref: F, headerInfo: s(q), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(q).showHeader || e3.pageContext.showHomepageSearch]]), c(s(b), { ref_key: "chartRef", ref: D, theme: s(G), option: s(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
A as default
|
|
35
35
|
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass 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 f } from "vue";
|
|
2
2
|
import { getCustomTheme as m, 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
|
|
7
|
-
import { CanvasRenderer as
|
|
5
|
+
import y from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as v } from "echarts/core";
|
|
7
|
+
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { ScatterChart as V } from "echarts/charts";
|
|
9
9
|
import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as b } from "echarts/components";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
h(
|
|
15
|
-
const e3 = g(
|
|
10
|
+
import A from "vue-echarts";
|
|
11
|
+
const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
|
+
v([R, V, _, j, w, I, k, b]);
|
|
13
|
+
const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = z.configure.props ? z.configure.props : {}, J = m(G.customTheme);
|
|
14
|
+
h(z.configure, E), t(() => {
|
|
15
|
+
const e3 = g(z.pageContext, z.configure);
|
|
16
16
|
e3 && N(e3);
|
|
17
17
|
});
|
|
18
18
|
let K = B.groupValue;
|
|
19
19
|
function L() {
|
|
20
|
-
|
|
20
|
+
q && d(z.pageContext, [q], B.drillParams);
|
|
21
21
|
}
|
|
22
22
|
o(B, () => {
|
|
23
|
-
K != B.groupValue && (K = B.groupValue,
|
|
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 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (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(z.pageContext, z.configure, E, e3));
|
|
28
28
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return l(
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style:
|
|
29
|
+
return x(z.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
|
|
30
|
+
return l(F.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: u(i(S)), class: s([i(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: D }, [c(p(y, { ref_key: "headerRef", ref: O, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(A), { ref_key: "chartRef", ref: F, theme: i(J), option: i(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
H as default
|
|
35
35
|
};
|
|
@@ -5,7 +5,7 @@ import { getCustomFunc as $ } from "../../../../utils/events/event-util.js";
|
|
|
5
5
|
import F from "./group-column.vue.js";
|
|
6
6
|
import k from "./normal-column.vue.js";
|
|
7
7
|
import I from "./table-pageination.vue.js";
|
|
8
|
-
import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as _, computeFormula as z, getNewColumnConfig as
|
|
8
|
+
import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as _, computeFormula as z, getNewColumnConfig as A, summaryStatistics as D, replacePlaceholders as J, getIndexColumn as P, getHeaderCellStyleUtil as U, getRowStyleUtil as V, getCellStyleUtil as G, formatColContent as K } from "./chart-table-util.js";
|
|
9
9
|
import { deepCopy as L } from "../../../../utils/common-util.js";
|
|
10
10
|
const q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: q2 }) {
|
|
11
11
|
var _a;
|
|
@@ -19,7 +19,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
19
19
|
}), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), re.value = e3, function() {
|
|
20
20
|
if (B.configure.props.base.showIndex) {
|
|
21
21
|
re.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
|
|
22
|
-
const e4 =
|
|
22
|
+
const e4 = P();
|
|
23
23
|
e4 && (te.value.$index = e4);
|
|
24
24
|
}
|
|
25
25
|
}();
|
|
@@ -31,7 +31,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
31
31
|
ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = N(B.configure), ie.value && (ue.value = R(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = R(B.configure, "group")));
|
|
32
32
|
let de = 300, he = b(B.pageContext, B.configure);
|
|
33
33
|
function ve(e3) {
|
|
34
|
-
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
|
|
34
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
|
|
35
35
|
var _a2;
|
|
36
36
|
Ne(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
|
|
37
37
|
if (me) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
|
|
@@ -78,9 +78,9 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
78
78
|
const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
|
|
79
79
|
if ((!i2 || 0 === i2.length) && n2.length > 0) {
|
|
80
80
|
const e5 = [];
|
|
81
|
-
return e5.push(
|
|
81
|
+
return e5.push(A("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
|
|
82
82
|
if ("$GroupColumn" === o5) return;
|
|
83
|
-
const r3 =
|
|
83
|
+
const r3 = A(o5, o5, n3 + 1, "string");
|
|
84
84
|
e5.push(r3);
|
|
85
85
|
}), e5;
|
|
86
86
|
}
|
|
@@ -96,7 +96,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
96
96
|
}), a2.forEach((o5) => {
|
|
97
97
|
t2.forEach((r3) => {
|
|
98
98
|
var _a3;
|
|
99
|
-
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 =
|
|
99
|
+
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = A(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
|
|
100
100
|
e5.push(i4);
|
|
101
101
|
});
|
|
102
102
|
}), e5;
|
|
@@ -128,11 +128,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
128
128
|
for (let e6 = 0; e6 < a2.length; e6++) {
|
|
129
129
|
const o4 = a2[e6], i3 = {};
|
|
130
130
|
t2 == null ? void 0 : t2.forEach((e7) => {
|
|
131
|
-
const n3 = e7.props.base.prop, r3 =
|
|
131
|
+
const n3 = e7.props.base.prop, r3 = D(pe.value[n3], o4, n3, B.pageContext);
|
|
132
132
|
i3[n3] = r3;
|
|
133
133
|
}), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
|
|
134
134
|
const n3 = e7.props.base.prop;
|
|
135
|
-
i3[n3] =
|
|
135
|
+
i3[n3] = J(e7.props.base.summaryTitle, o4[0]);
|
|
136
136
|
}), n2.push(i3), le.push(n2.length - 1);
|
|
137
137
|
}
|
|
138
138
|
return n2;
|
|
@@ -140,7 +140,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
140
140
|
}
|
|
141
141
|
!function(e4) {
|
|
142
142
|
if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
|
|
143
|
-
const o3 =
|
|
143
|
+
const o3 = P();
|
|
144
144
|
o3 && e4.unshift(o3);
|
|
145
145
|
}
|
|
146
146
|
}(ne.value);
|
|
@@ -150,14 +150,14 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
150
150
|
}
|
|
151
151
|
function xe(e3) {
|
|
152
152
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
|
|
153
|
-
return
|
|
153
|
+
return U(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
|
|
154
154
|
}
|
|
155
155
|
function Oe(e3) {
|
|
156
|
-
return
|
|
156
|
+
return V(e3, le, B);
|
|
157
157
|
}
|
|
158
158
|
function Se(e3) {
|
|
159
159
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
|
|
160
|
-
return
|
|
160
|
+
return G(e3, o2, B);
|
|
161
161
|
}
|
|
162
162
|
he && he.fixHeight && (de = he.fixHeight), he && he.maxHeight && (de = he.maxHeight), de && (de = Number(de + "")), n(() => {
|
|
163
163
|
const e3 = x(B.pageContext, B.configure);
|
|
@@ -178,10 +178,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
178
178
|
return o2.forEach((e4, o3) => {
|
|
179
179
|
if (ae.value[e4.property]) {
|
|
180
180
|
const t2 = ae.value[e4.property].label;
|
|
181
|
-
r2[o3] = y("div", {}, [
|
|
181
|
+
r2[o3] = y("div", {}, [J(t2, n2)]);
|
|
182
182
|
} else if (ue.value[e4.property]) {
|
|
183
183
|
const t2 = n2.filter((e5, o4) => !le.includes(o4));
|
|
184
|
-
r2[o3] =
|
|
184
|
+
r2[o3] = D(ue.value[e4.property], t2, e4.property, B.pageContext);
|
|
185
185
|
}
|
|
186
186
|
}), r2;
|
|
187
187
|
};
|
|
@@ -238,7 +238,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
238
238
|
let o3 = [];
|
|
239
239
|
oe.value && (o3 = L(oe.value), o3.forEach((o4) => {
|
|
240
240
|
e4.forEach((e5) => {
|
|
241
|
-
const n3 =
|
|
241
|
+
const n3 = K(o4, e5.props.format, e5, B.pageContext, B.configure);
|
|
242
242
|
o4[e5.props.base.prop] = n3;
|
|
243
243
|
});
|
|
244
244
|
}));
|
package/dist/es/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuperPageNew, SuperPageDialogNew, HomeChart } from './components/runtime';
|
|
2
|
-
import { getComponentOptionConfigs } from './components/runtime/utils/page-helper-util';
|
|
2
|
+
import { getComponentOptionConfigs, getComponentOptionConfigsBase } from './components/runtime/utils/page-helper-util';
|
|
3
3
|
import { getStandPermissionInfo, getFunctionInfo, FuncType } from './components/runtime/utils/page-permission-util';
|
|
4
4
|
import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from './components/runtime/utils/charts/chart-util';
|
|
5
5
|
import { default as cn } from './i18n/langs/cn.js';
|
|
@@ -8,7 +8,7 @@ import { getDateShortCuts } from './components/runtime/utils/form/date-shortcuts
|
|
|
8
8
|
import { getListCode } from './components/runtime/utils/common-util';
|
|
9
9
|
import { default as YxAffix } from './components/runtime/views/assemblys/container/fixed/YxAffix.vue';
|
|
10
10
|
|
|
11
|
-
export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs, HomeChart, YxAffix };
|
|
11
|
+
export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs, getComponentOptionConfigsBase, HomeChart, YxAffix };
|
|
12
12
|
export { getStandPermissionInfo, getFunctionInfo, FuncType };
|
|
13
13
|
export { getCustomTheme, getCustomThemeOptions, getNumFormatter as getNumFormatterForChart };
|
|
14
14
|
export { getDateShortCuts };
|
package/dist/es/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { default as default2 } from "./components/runtime/views/super-page.vue.j
|
|
|
2
2
|
import { default as default3 } from "./components/runtime/views/super-page-dialog.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { default as default4 } from "./components/runtime/views/home-chart.vue.js";
|
|
5
|
-
import { getComponentOptionConfigs } from "./components/runtime/utils/page-helper-util.js";
|
|
5
|
+
import { getComponentOptionConfigs, getComponentOptionConfigsBase } from "./components/runtime/utils/page-helper-util.js";
|
|
6
6
|
import { FuncType, getFunctionInfo, getStandPermissionInfo } from "./components/runtime/utils/page-permission-util.js";
|
|
7
7
|
import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from "./components/runtime/utils/charts/chart-util.js";
|
|
8
8
|
import { default as default5 } from "./i18n/langs/cn.js";
|
|
@@ -19,6 +19,7 @@ export {
|
|
|
19
19
|
default5 as cn,
|
|
20
20
|
default6 as en,
|
|
21
21
|
getComponentOptionConfigs,
|
|
22
|
+
getComponentOptionConfigsBase,
|
|
22
23
|
getCustomTheme,
|
|
23
24
|
getCustomThemeOptions,
|
|
24
25
|
getDateShortCuts,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.2.92-
|
|
3
|
+
"version": "2.2.92-sit9",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.1.35-
|
|
51
|
+
"agilebuilder-ui": "1.1.35-sit3",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|