super-page-runtime 2.3.34-sit1 → 2.3.35-sit1
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/anchor-util.js +43 -51
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +98 -96
- package/dist/es/components/runtime/utils/events/event-util.js +24 -12
- package/dist/es/components/runtime/utils/events/standard-event.js +215 -199
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +67 -52
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +30 -20
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +16 -15
- package/package.json +2 -2
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { caculateShowCondition as e } from "./page-helper-util.js";
|
|
2
2
|
import { getComponentRefByCode as t, getComponentRef as n } from "./global-refs.js";
|
|
3
3
|
import { nextTick as o } from "vue";
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
function c(e2, t2) {
|
|
5
|
+
const c2 = n(e2, t2);
|
|
6
|
+
c2 && o(() => {
|
|
7
|
+
m(c2);
|
|
8
8
|
});
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
function l(e2, n2) {
|
|
11
|
+
const c2 = t(e2, n2);
|
|
12
|
+
c2 && o(() => {
|
|
13
|
+
m(c2);
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
if (t2 && 0 !== t2.length) for (let
|
|
18
|
-
const { uuid:
|
|
19
|
-
if (e(o2,
|
|
20
|
-
|
|
21
|
-
const e2 = n(o2,
|
|
22
|
-
e2 &&
|
|
16
|
+
function i(t2, o2) {
|
|
17
|
+
if (t2 && 0 !== t2.length) for (let c2 = 0; c2 < t2.length; c2++) {
|
|
18
|
+
const { uuid: l2, conditions: i2 } = t2[c2];
|
|
19
|
+
if (e(o2, i2)) {
|
|
20
|
+
r(() => {
|
|
21
|
+
const e2 = n(o2, l2);
|
|
22
|
+
e2 && m(e2);
|
|
23
23
|
});
|
|
24
24
|
break;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
const { checkInterval: n2 = 50, stableCount:
|
|
30
|
-
let
|
|
28
|
+
function r(e2, t2 = {}) {
|
|
29
|
+
const { checkInterval: n2 = 50, stableCount: c2 = 10, maxWaitTime: l2 = 3e3 } = t2;
|
|
30
|
+
let i2 = -1, r2 = 0, m2 = 0;
|
|
31
31
|
const u2 = () => {
|
|
32
32
|
const t3 = document.documentElement.scrollHeight || document.body.scrollHeight;
|
|
33
|
-
if (t3 ===
|
|
34
|
-
if (
|
|
33
|
+
if (t3 === i2) {
|
|
34
|
+
if (r2++, r2 >= c2) return void o(() => {
|
|
35
35
|
e2();
|
|
36
36
|
});
|
|
37
|
-
} else
|
|
38
|
-
m2 += n2, m2 >=
|
|
37
|
+
} else i2 = t3, r2 = 0;
|
|
38
|
+
m2 += n2, m2 >= l2 ? o(() => {
|
|
39
39
|
e2();
|
|
40
40
|
}) : setTimeout(u2, n2);
|
|
41
41
|
};
|
|
@@ -43,50 +43,42 @@ function i(e2, t2 = {}) {
|
|
|
43
43
|
u2();
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
function u(e2) {
|
|
46
|
+
function m(e2) {
|
|
48
47
|
const t2 = function(e3) {
|
|
49
48
|
let t3 = null;
|
|
50
49
|
return e3 && e3.$el ? t3 = e3.$el : e3 instanceof HTMLElement && (t3 = e3), t3 && t3.nodeType !== Node.ELEMENT_NODE && (t3 = t3.nextElementSibling || t3.parentElement), t3 instanceof HTMLElement ? t3 : null;
|
|
51
50
|
}(e2);
|
|
52
51
|
if (!t2) return;
|
|
53
|
-
const n2 = function(e3) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
t3 =
|
|
52
|
+
const n2 = t2.getBoundingClientRect(), o2 = function(e3) {
|
|
53
|
+
const t3 = [];
|
|
54
|
+
let n3 = e3.parentElement;
|
|
55
|
+
for (; n3; ) {
|
|
56
|
+
const e4 = window.getComputedStyle(n3).overflowY;
|
|
57
|
+
("auto" === e4 || "scroll" === e4) && n3.scrollHeight > n3.clientHeight && t3.push(n3), n3 = n3.parentElement;
|
|
59
58
|
}
|
|
60
|
-
|
|
59
|
+
document.documentElement.scrollHeight > document.documentElement.clientHeight && t3.push(document.documentElement);
|
|
60
|
+
return t3;
|
|
61
61
|
}(t2);
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
62
|
+
for (const e3 of o2) if (e3 === document.documentElement || e3 === document.body) {
|
|
63
|
+
const t3 = window.pageYOffset || document.documentElement.scrollTop;
|
|
64
|
+
u(e3, Math.max(0, n2.top + t3 - 100));
|
|
65
65
|
} else {
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
if (null !== m) return m;
|
|
69
|
-
try {
|
|
70
|
-
document.createElement("div").scrollIntoView({ behavior: "smooth" }), m = true;
|
|
71
|
-
} catch {
|
|
72
|
-
m = false;
|
|
73
|
-
}
|
|
74
|
-
return m;
|
|
75
|
-
}() ? s(document.documentElement, o2) : t2.scrollIntoView({ behavior: "smooth", block: "start", inline: "nearest" });
|
|
66
|
+
const t3 = e3.getBoundingClientRect(), o3 = n2.top - t3.top + e3.scrollTop;
|
|
67
|
+
u(e3, Math.max(0, o3 - 100));
|
|
76
68
|
}
|
|
77
69
|
}
|
|
78
|
-
function
|
|
70
|
+
function u(e2, t2) {
|
|
79
71
|
if ("scrollBehavior" in document.documentElement.style) return void e2.scrollTo({ top: t2, behavior: "smooth" });
|
|
80
72
|
const n2 = e2.scrollTop, o2 = t2 - n2;
|
|
81
73
|
if (Math.abs(o2) < 1) return;
|
|
82
|
-
const
|
|
74
|
+
const c2 = performance.now ? performance.now() : Date.now();
|
|
83
75
|
requestAnimationFrame(function t3() {
|
|
84
|
-
const
|
|
85
|
-
e2.scrollTop = n2 + o2 *
|
|
76
|
+
const l2 = (performance.now ? performance.now() : Date.now()) - c2, i2 = Math.min(l2 / 300, 1), r2 = i2 < 0.5 ? 4 * i2 * i2 * i2 : 1 - Math.pow(-2 * i2 + 2, 3) / 2;
|
|
77
|
+
e2.scrollTop = n2 + o2 * r2, i2 < 1 && requestAnimationFrame(t3);
|
|
86
78
|
});
|
|
87
79
|
}
|
|
88
80
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
81
|
+
l as scrollIntoComponentWithCode,
|
|
82
|
+
c as scrollIntoComponentWithUuid,
|
|
83
|
+
i as scrollIntoViewWithContainer
|
|
92
84
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getValueFromSource as
|
|
2
|
-
import { deepCopy as
|
|
3
|
-
import { setDefaultGrid as s, CommonName as a, caculateFormulaValue as l, executeChartFormula as r, sortDatas as n, limitDatas as u, formatToolboxI18n as
|
|
4
|
-
import { handleChartEvent as
|
|
1
|
+
import { getValueFromSource as e, formatVariableValue as t, setValueForVariableName as i } from "../page-helper-util.js";
|
|
2
|
+
import { deepCopy as o } from "../common-util.js";
|
|
3
|
+
import { setDefaultGrid as s, CommonName as a, caculateFormulaValue as l, executeChartFormula as r, sortDatas as n, limitDatas as u, formatToolboxI18n as d } from "./chart-util.js";
|
|
4
|
+
import { handleChartEvent as f } from "../events/event-util.js";
|
|
5
5
|
function c(c2, m, h, y) {
|
|
6
6
|
if (!y || !y.result) return;
|
|
7
|
-
s(h), h.tooltip || (h.tooltip = {}),
|
|
7
|
+
s(h), h.tooltip || (h.tooltip = {}), f(c2, m, "beforeUpdateChart", h, { resultData: y });
|
|
8
8
|
const g = y && y.result ? y.result : {};
|
|
9
9
|
let v = y && y.groupValue ? y.groupValue : void 0;
|
|
10
10
|
const F = m.serviceDataField;
|
|
@@ -13,152 +13,154 @@ function c(c2, m, h, y) {
|
|
|
13
13
|
let D = m.props ? m.props.groups : null;
|
|
14
14
|
if (D || (D = []), !v || 0 === v.length) {
|
|
15
15
|
v = [];
|
|
16
|
-
for (const
|
|
16
|
+
for (const e2 of D) v.push(e2.group);
|
|
17
17
|
}
|
|
18
18
|
const _ = {}, x = [], A = [];
|
|
19
|
-
for (const
|
|
19
|
+
for (const e2 of D) _[e2.group] = e2.target, e2.target && !x.includes(e2.target) && (x.push(e2.target), v.includes(e2.group) && A.push(e2.target));
|
|
20
20
|
let N = m.props ? m.props.mulGroupShow : "";
|
|
21
21
|
N = "break" == N ? "\r\n" : " ";
|
|
22
|
-
for (const
|
|
23
|
-
if (!
|
|
24
|
-
const
|
|
25
|
-
for (const
|
|
26
|
-
const s2 = _[
|
|
27
|
-
a2 &&
|
|
22
|
+
for (const t2 of S) {
|
|
23
|
+
if (!t2) continue;
|
|
24
|
+
const i2 = [];
|
|
25
|
+
for (const o3 of v) {
|
|
26
|
+
const s2 = _[o3], a2 = e(t2, s2, void 0);
|
|
27
|
+
a2 && i2.push(a2);
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
const o2 = i2.join(N);
|
|
30
|
+
t2[a.X_FIELD_NAME] = o2;
|
|
31
31
|
}
|
|
32
32
|
const E = m.items ? m.items : [], C = [], b = {}, w = [], I = {}, X = [], L = [], M = /* @__PURE__ */ new Set(), j = l(E, S, M);
|
|
33
|
-
for (const
|
|
34
|
-
for (const
|
|
35
|
-
const
|
|
33
|
+
for (const e2 of M) X.push(e2);
|
|
34
|
+
for (const e2 of E) {
|
|
35
|
+
const t2 = e2.props ? e2.props : {}, i2 = t2.yaxisSource, o2 = t2.yaxisField, s2 = t2.isCumulative;
|
|
36
36
|
let a2 = null;
|
|
37
|
-
if (!
|
|
38
|
-
let
|
|
39
|
-
for (const
|
|
40
|
-
a2 = { uuid:
|
|
41
|
-
} else a2 = { uuid:
|
|
42
|
-
else a2 = { uuid:
|
|
43
|
-
null != a2 && (C.push(a2), b[
|
|
37
|
+
if (!o2 || i2 && "variable" != i2) if ("formula" == i2) {
|
|
38
|
+
let i3 = t2.formula ? t2.formula : "";
|
|
39
|
+
for (const e3 in j) i3 = i3.replace(new RegExp(e3.replace("$", "\\$"), "g"), j[e3]);
|
|
40
|
+
a2 = { uuid: e2.uuid, type: "formula", formula: i3, isFormulaCalculateAfterSort: t2.isFormulaCalculateAfterSort, data: [], dynamicDatas: [] };
|
|
41
|
+
} else a2 = { uuid: e2.uuid, type: "fixed", field: t2.yaxisFix, data: [], dynamicDatas: [] };
|
|
42
|
+
else a2 = { uuid: e2.uuid, type: "variable", field: o2, isCumulative: s2, data: [], dynamicDatas: [] }, o2 && !X.includes(o2) && X.push(o2), o2 && !L.includes(o2) && L.push(o2), s2 && !M.has(o2) && M.add(o2);
|
|
43
|
+
null != a2 && (C.push(a2), b[e2.uuid] = a2), t2.dynamicSeriesField && !w.includes(t2.dynamicSeriesField) && a2 && (a2.dynamicField = t2.dynamicSeriesField, a2.dynamicSeriesTitle = t2.dynamicSeriesTitle, a2.dynamicShowStack = t2.dynamicShowStack, w.push(t2.dynamicSeriesField), I[t2.dynamicSeriesField] = o2), t2.dynamicSeriesDataField && t2.dynamicSeriesDataField.forEach((e3) => {
|
|
44
|
+
X.includes(e3) || X.push(e3);
|
|
45
|
+
});
|
|
44
46
|
}
|
|
45
47
|
const k = {};
|
|
46
48
|
if (w.length > 0) {
|
|
47
|
-
const
|
|
48
|
-
for (const
|
|
49
|
-
const l2 =
|
|
50
|
-
let r2 =
|
|
49
|
+
const t2 = [], i2 = {};
|
|
50
|
+
for (const o2 of S) if (o2) for (const s2 of X) {
|
|
51
|
+
const l2 = o2[a.X_FIELD_NAME];
|
|
52
|
+
let r2 = i2[l2];
|
|
51
53
|
if (!r2) {
|
|
52
54
|
r2 = {};
|
|
53
|
-
for (const
|
|
54
|
-
r2[a.X_FIELD_NAME] =
|
|
55
|
+
for (const e2 of x) r2[e2] = o2[e2];
|
|
56
|
+
r2[a.X_FIELD_NAME] = o2[a.X_FIELD_NAME], i2[l2] = r2, t2.push(r2);
|
|
55
57
|
}
|
|
56
|
-
let n2 =
|
|
58
|
+
let n2 = e(o2, s2, void 0);
|
|
57
59
|
if (!isNaN(n2)) {
|
|
58
|
-
const
|
|
59
|
-
isNaN || (n2 +=
|
|
60
|
+
const e2 = r2[s2];
|
|
61
|
+
isNaN(e2) || (n2 += e2), r2[s2] = n2;
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
|
-
for (const
|
|
63
|
-
const
|
|
64
|
+
for (const t3 of w) {
|
|
65
|
+
const o2 = [];
|
|
64
66
|
for (const s2 of S) {
|
|
65
67
|
if (!s2) continue;
|
|
66
|
-
const l2 =
|
|
68
|
+
const l2 = i2[s2[a.X_FIELD_NAME]];
|
|
67
69
|
if (!l2) continue;
|
|
68
|
-
let r2 =
|
|
69
|
-
r2 = null == r2 || null == r2 ? "" : r2,
|
|
70
|
-
const n2 = I[
|
|
70
|
+
let r2 = e(s2, t3, void 0);
|
|
71
|
+
r2 = null == r2 || null == r2 ? "" : r2, o2.includes(r2) || (o2.push(r2), L.push(r2), M.add(r2));
|
|
72
|
+
const n2 = I[t3];
|
|
71
73
|
if (void 0 !== n2) {
|
|
72
|
-
const
|
|
73
|
-
let
|
|
74
|
-
void 0 ===
|
|
74
|
+
const t4 = e(s2, n2, void 0);
|
|
75
|
+
let i3 = l2[r2];
|
|
76
|
+
void 0 === i3 ? i3 = t4 : isNaN(t4) || (i3 += t4), l2[r2] = i3;
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
|
-
k[
|
|
79
|
+
k[t3] = o2;
|
|
78
80
|
}
|
|
79
|
-
S =
|
|
81
|
+
S = t2;
|
|
80
82
|
}
|
|
81
83
|
let T = {};
|
|
82
84
|
const V = /* @__PURE__ */ new Set(), $ = m.props ? m.props.orderByTarget : "";
|
|
83
|
-
for (const
|
|
84
|
-
for (const
|
|
85
|
-
p(
|
|
86
|
-
for (const
|
|
87
|
-
const
|
|
88
|
-
t2
|
|
85
|
+
for (const e2 of C) "formula" === e2.type && e2.isFormulaCalculateAfterSort && $ !== e2.uuid && V.add(e2.uuid + "_field");
|
|
86
|
+
for (const e2 of S) if (e2) {
|
|
87
|
+
p(e2, M, T);
|
|
88
|
+
for (const t2 of C) if ("formula" === t2.type && !t2.isFormulaCalculateAfterSort) {
|
|
89
|
+
const i2 = r(t2.formula, T, e2, c2);
|
|
90
|
+
e2[t2.uuid + "_field"] = i2;
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
if (n(c2, m, S), V.size > 0) {
|
|
92
|
-
const
|
|
93
|
-
for (const
|
|
94
|
-
p(
|
|
95
|
-
for (const
|
|
96
|
-
const
|
|
97
|
-
|
|
94
|
+
const e2 = {};
|
|
95
|
+
for (const t2 of S) {
|
|
96
|
+
p(t2, M, e2);
|
|
97
|
+
for (const i2 of C) if ("formula" === i2.type && V.has(i2.uuid + "_field")) {
|
|
98
|
+
const o2 = r(i2.formula, e2, t2, c2);
|
|
99
|
+
t2[i2.uuid + "_field"] = o2;
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
S = u(c2, m, S, x, L);
|
|
102
104
|
const B = [];
|
|
103
105
|
T = {};
|
|
104
|
-
for (const
|
|
105
|
-
for (const
|
|
106
|
-
const
|
|
107
|
-
let s2 = T[
|
|
108
|
-
void 0 ===
|
|
106
|
+
for (const t2 of S) if (t2) {
|
|
107
|
+
for (const i2 of M) {
|
|
108
|
+
const o2 = e(t2, i2, void 0);
|
|
109
|
+
let s2 = T[i2];
|
|
110
|
+
void 0 === o2 || isNaN(o2) || (void 0 === s2 ? s2 = o2 : s2 += o2), T[i2] = s2;
|
|
109
111
|
}
|
|
110
|
-
B.push(
|
|
111
|
-
for (const
|
|
112
|
-
let
|
|
113
|
-
const s2 =
|
|
114
|
-
if (
|
|
115
|
-
let a2 = k[
|
|
112
|
+
B.push(t2[a.X_FIELD_NAME]);
|
|
113
|
+
for (const i2 of C) {
|
|
114
|
+
let o2 = i2.data;
|
|
115
|
+
const s2 = i2.dynamicDatas;
|
|
116
|
+
if (i2.dynamicField) {
|
|
117
|
+
let a2 = k[i2.dynamicField];
|
|
116
118
|
a2 = a2 || [];
|
|
117
119
|
for (let l2 = 0; l2 < a2.length; l2++) {
|
|
118
|
-
l2 >= s2.length && s2.push([]),
|
|
120
|
+
l2 >= s2.length && s2.push([]), o2 = s2[l2];
|
|
119
121
|
const r2 = a2[l2];
|
|
120
|
-
let n2 =
|
|
121
|
-
|
|
122
|
+
let n2 = e(t2, r2, void 0);
|
|
123
|
+
i2.isCumulative && (n2 = T[r2]), o2.push(n2);
|
|
122
124
|
}
|
|
123
|
-
} else if ("fixed" ===
|
|
124
|
-
else if ("variable" ===
|
|
125
|
-
let s3 =
|
|
126
|
-
|
|
127
|
-
} else "formula" ===
|
|
125
|
+
} else if ("fixed" === i2.type) o2.push(i2.field);
|
|
126
|
+
else if ("variable" === i2.type) {
|
|
127
|
+
let s3 = e(t2, i2.field, void 0);
|
|
128
|
+
i2.isCumulative && (s3 = T[i2.field]), o2.push(s3);
|
|
129
|
+
} else "formula" === i2.type ? o2.push(t2[i2.uuid + "_field"]) : o2.push(void 0);
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
|
-
const G = m.defaultSeries, R =
|
|
131
|
-
for (const
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
let s2 = k[
|
|
132
|
+
const G = m.defaultSeries, R = o(null == G ? [] : G), U = [];
|
|
133
|
+
for (const e2 of R) {
|
|
134
|
+
const i2 = b[e2.uuid];
|
|
135
|
+
if (i2.dynamicField) {
|
|
136
|
+
let s2 = k[i2.dynamicField];
|
|
135
137
|
s2 = s2 || [];
|
|
136
|
-
const a2 =
|
|
138
|
+
const a2 = i2.dynamicDatas ? i2.dynamicDatas : [];
|
|
137
139
|
for (let l2 = 0; l2 < s2.length; l2++) {
|
|
138
|
-
const r2 = s2[l2], n2 =
|
|
139
|
-
if (
|
|
140
|
-
const
|
|
141
|
-
n2.name =
|
|
140
|
+
const r2 = s2[l2], n2 = o(e2);
|
|
141
|
+
if (i2.dynamicSeriesTitle) {
|
|
142
|
+
const e3 = i2.dynamicSeriesTitle.replace("${name}", r2);
|
|
143
|
+
n2.name = t(c2, e3);
|
|
142
144
|
} else n2.name = r2;
|
|
143
|
-
n2.data = l2 < a2.length ? a2[l2] : [], "bar" ==
|
|
145
|
+
n2.data = l2 < a2.length ? a2[l2] : [], "bar" == e2.type && i2.dynamicShowStack && (n2.stack = e2.uuid), U.push(n2);
|
|
144
146
|
}
|
|
145
|
-
} else
|
|
147
|
+
} else e2.data = i2 ? i2.data : [], U.push(e2);
|
|
146
148
|
}
|
|
147
149
|
h.series = U;
|
|
148
150
|
const z = m.defaultXaxis, Y = m.defaultYaxis;
|
|
149
151
|
if (h.isBar) {
|
|
150
|
-
if (Y) for (const
|
|
152
|
+
if (Y) for (const e2 of Y) e2.data = B;
|
|
151
153
|
h.xAxis = z, h.yAxis = Y;
|
|
152
154
|
} else z && z.length > 0 && (z[0].data = B), h.xAxis = z, h.yAxis = Y;
|
|
153
|
-
|
|
155
|
+
d(h);
|
|
154
156
|
const q = m.props ? m.props.selGroupVariable : null;
|
|
155
|
-
!(m.props ? m.props.enableDrill : null) && q && (m.highlightInfos = [],
|
|
157
|
+
!(m.props ? m.props.enableDrill : null) && q && (m.highlightInfos = [], i(c2.entity, q, null)), f(c2, m, "afterUpdateChart", h, { resultData: y }), m.groupFields = A, m.cacheDatas = S, m.rawResult = y;
|
|
156
158
|
}
|
|
157
|
-
function p(
|
|
158
|
-
for (const s2 of
|
|
159
|
-
const
|
|
160
|
-
let a2 =
|
|
161
|
-
void 0 ===
|
|
159
|
+
function p(t2, i2, o2) {
|
|
160
|
+
for (const s2 of i2) {
|
|
161
|
+
const i3 = e(t2, s2, void 0);
|
|
162
|
+
let a2 = o2[s2];
|
|
163
|
+
void 0 === i3 || isNaN(i3) || (void 0 === a2 ? a2 = i3 : a2 += i3), o2[s2] = a2;
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
export {
|
|
@@ -6,8 +6,8 @@ import { ElMessage as a } from "element-plus";
|
|
|
6
6
|
import { analysisCondition as s } from "agilebuilder-ui/src/utils/util";
|
|
7
7
|
import { getListCode as f, deepCopy as m } from "../common-util.js";
|
|
8
8
|
import g from "../eventBus.js";
|
|
9
|
-
import { getValueFromSource as
|
|
10
|
-
import { expressJump as
|
|
9
|
+
import { getValueFromSource as d } from "../page-helper-util.js";
|
|
10
|
+
import { expressJump as p } from "../table-utils.js";
|
|
11
11
|
const v = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"], b = ["downloadTemplate", "exportForm", "exportPDF", "export", "exportCharts"], C = ["import"];
|
|
12
12
|
function x(e2, n2) {
|
|
13
13
|
if (e2 && e2.customEvents) {
|
|
@@ -58,7 +58,7 @@ function j(e2, n2) {
|
|
|
58
58
|
return n2;
|
|
59
59
|
}, e2.getContextValue = function(e3) {
|
|
60
60
|
let t2 = n2 && n2.entity ? n2.entity.context : null;
|
|
61
|
-
return t2 = t2 || {},
|
|
61
|
+
return t2 = t2 || {}, d(t2, e3, "context");
|
|
62
62
|
}, e2.getContext = function() {
|
|
63
63
|
return n2 && n2.entity ? n2.entity.context : {};
|
|
64
64
|
}, e2.getSystem = function() {
|
|
@@ -211,7 +211,7 @@ function A(e2, t2, i2, o2) {
|
|
|
211
211
|
let n3 = e3 ? e3.row : null;
|
|
212
212
|
n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
|
|
213
213
|
return n3;
|
|
214
|
-
}(o2), i3 =
|
|
214
|
+
}(o2), i3 = p(e2, t2, u2, n2);
|
|
215
215
|
let c2, l2 = false;
|
|
216
216
|
i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = m(t2), r2.props.linkPage = u2);
|
|
217
217
|
}
|
|
@@ -286,8 +286,8 @@ function Q(e2) {
|
|
|
286
286
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
287
287
|
const t2 = r2[e4];
|
|
288
288
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
289
|
-
const r3 = u2[e5], a2 = r3.toolTips,
|
|
290
|
-
if (!s(
|
|
289
|
+
const r3 = u2[e5], a2 = r3.toolTips, d2 = r3.conditionList;
|
|
290
|
+
if (!s(d2, t2, o3, i4, c2, l2, null, n2)) {
|
|
291
291
|
g2 = false, f2 = a2, m2 = t2;
|
|
292
292
|
break;
|
|
293
293
|
}
|
|
@@ -355,7 +355,16 @@ function ne(e2, n2, t2) {
|
|
|
355
355
|
function te(e2) {
|
|
356
356
|
return N(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
357
357
|
}
|
|
358
|
-
function ie(n2) {
|
|
358
|
+
function ie(e2, n2, t2) {
|
|
359
|
+
return h(null, e2, n2, "uploaded", t2);
|
|
360
|
+
}
|
|
361
|
+
function oe(e2, n2, t2) {
|
|
362
|
+
return h(null, e2, n2, "before-delete", t2);
|
|
363
|
+
}
|
|
364
|
+
function re(e2, n2, t2) {
|
|
365
|
+
return h(null, e2, n2, "deleted", t2);
|
|
366
|
+
}
|
|
367
|
+
function ue(n2) {
|
|
359
368
|
let t2 = true;
|
|
360
369
|
if (!e()) {
|
|
361
370
|
const e2 = n2 && n2.events ? n2.events : [];
|
|
@@ -366,10 +375,10 @@ function ie(n2) {
|
|
|
366
375
|
}
|
|
367
376
|
return t2;
|
|
368
377
|
}
|
|
369
|
-
function
|
|
378
|
+
function ce(e2, n2, t2, i2, o2) {
|
|
370
379
|
return z(e2, n2, $(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
|
|
371
380
|
}
|
|
372
|
-
function
|
|
381
|
+
function le(n2, t2) {
|
|
373
382
|
let i2 = true;
|
|
374
383
|
if (e()) {
|
|
375
384
|
const e2 = H(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
|
|
@@ -389,7 +398,10 @@ export {
|
|
|
389
398
|
D as doBeforeClickEvent,
|
|
390
399
|
L as doClickJumpPageEvent,
|
|
391
400
|
F as doSuffixOrPrefixClickEvent,
|
|
401
|
+
oe as fileUploadBeforeDelete,
|
|
392
402
|
te as fileUploadBeforeUpload,
|
|
403
|
+
re as fileUploadDeleted,
|
|
404
|
+
ie as fileUploadUploaded,
|
|
393
405
|
H as getClickEventFuncByType,
|
|
394
406
|
k as getCustomFunc,
|
|
395
407
|
U as getDefaultEventParams,
|
|
@@ -401,13 +413,13 @@ export {
|
|
|
401
413
|
J as gridSelectRecord,
|
|
402
414
|
M as gridSelectionChange,
|
|
403
415
|
E as handleAfterInitEvent,
|
|
404
|
-
|
|
416
|
+
ce as handleChartEvent,
|
|
405
417
|
h as handleEvent,
|
|
406
418
|
y as handleFormEvent,
|
|
407
419
|
ne as headerClick,
|
|
408
420
|
x as initPageEvents,
|
|
409
|
-
|
|
410
|
-
|
|
421
|
+
ue as isShowComponent,
|
|
422
|
+
le as isShowMobileEvent,
|
|
411
423
|
O as removeCustomFuncFromWindow,
|
|
412
424
|
Z as rowClick,
|
|
413
425
|
ee as rowDblClick,
|