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.
@@ -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 l(e2, t2) {
5
- const l2 = n(e2, t2);
6
- l2 && o(() => {
7
- u(l2);
4
+ function c(e2, t2) {
5
+ const c2 = n(e2, t2);
6
+ c2 && o(() => {
7
+ m(c2);
8
8
  });
9
9
  }
10
- function c(e2, n2) {
11
- const l2 = t(e2, n2);
12
- l2 && o(() => {
13
- u(l2);
10
+ function l(e2, n2) {
11
+ const c2 = t(e2, n2);
12
+ c2 && o(() => {
13
+ m(c2);
14
14
  });
15
15
  }
16
- function r(t2, o2) {
17
- if (t2 && 0 !== t2.length) for (let l2 = 0; l2 < t2.length; l2++) {
18
- const { uuid: c2, conditions: r2 } = t2[l2];
19
- if (e(o2, r2)) {
20
- i(() => {
21
- const e2 = n(o2, c2);
22
- e2 && u(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 i(e2, t2 = {}) {
29
- const { checkInterval: n2 = 50, stableCount: l2 = 10, maxWaitTime: c2 = 3e3 } = t2;
30
- let r2 = -1, i2 = 0, m2 = 0;
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 === r2) {
34
- if (i2++, i2 >= l2) return void o(() => {
33
+ if (t3 === i2) {
34
+ if (r2++, r2 >= c2) return void o(() => {
35
35
  e2();
36
36
  });
37
- } else r2 = t3, i2 = 0;
38
- m2 += n2, m2 >= c2 ? o(() => {
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
- let m = null;
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
- let t3 = e3.parentElement;
55
- for (; t3; ) {
56
- const e4 = window.getComputedStyle(t3).overflowY;
57
- if (("auto" === e4 || "scroll" === e4) && t3.scrollHeight > t3.clientHeight) return t3;
58
- t3 = t3.parentElement;
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
- return document.documentElement || document.body;
59
+ document.documentElement.scrollHeight > document.documentElement.clientHeight && t3.push(document.documentElement);
60
+ return t3;
61
61
  }(t2);
62
- if (n2 && n2 !== document.documentElement && n2 !== document.body) {
63
- const e3 = t2.getBoundingClientRect(), o2 = n2.getBoundingClientRect(), l2 = e3.top - o2.top + n2.scrollTop;
64
- s(n2, Math.max(0, l2 - 20));
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 e3 = t2.getBoundingClientRect(), n3 = window.pageYOffset || document.documentElement.scrollTop, o2 = Math.max(0, e3.top + n3 - 20);
67
- !function() {
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 s(e2, t2) {
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 l2 = performance.now ? performance.now() : Date.now();
74
+ const c2 = performance.now ? performance.now() : Date.now();
83
75
  requestAnimationFrame(function t3() {
84
- const c2 = (performance.now ? performance.now() : Date.now()) - l2, r2 = Math.min(c2 / 300, 1), i2 = r2 < 0.5 ? 4 * r2 * r2 * r2 : 1 - Math.pow(-2 * r2 + 2, 3) / 2;
85
- e2.scrollTop = n2 + o2 * i2, r2 < 1 && requestAnimationFrame(t3);
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
- c as scrollIntoComponentWithCode,
90
- l as scrollIntoComponentWithUuid,
91
- r as scrollIntoViewWithContainer
81
+ l as scrollIntoComponentWithCode,
82
+ c as scrollIntoComponentWithUuid,
83
+ i as scrollIntoViewWithContainer
92
84
  };
@@ -1,10 +1,10 @@
1
- import { getValueFromSource as t, formatVariableValue as e, setValueForVariableName as o } from "../page-helper-util.js";
2
- import { deepCopy as i } 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 f } from "./chart-util.js";
4
- import { handleChartEvent as d } from "../events/event-util.js";
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 = {}), d(c2, m, "beforeUpdateChart", h, { resultData: y });
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 t2 of D) v.push(t2.group);
16
+ for (const e2 of D) v.push(e2.group);
17
17
  }
18
18
  const _ = {}, x = [], A = [];
19
- for (const t2 of D) _[t2.group] = t2.target, t2.target && !x.includes(t2.target) && (x.push(t2.target), v.includes(t2.group) && A.push(t2.target));
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 e2 of S) {
23
- if (!e2) continue;
24
- const o2 = [];
25
- for (const i3 of v) {
26
- const s2 = _[i3], a2 = t(e2, s2, void 0);
27
- a2 && o2.push(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 i2 = o2.join(N);
30
- e2[a.X_FIELD_NAME] = i2;
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 t2 of M) X.push(t2);
34
- for (const t2 of E) {
35
- const e2 = t2.props ? t2.props : {}, o2 = e2.yaxisSource, i2 = e2.yaxisField, s2 = e2.isCumulative;
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 (!i2 || o2 && "variable" != o2) if ("formula" == o2) {
38
- let o3 = e2.formula ? e2.formula : "";
39
- for (const t3 in j) o3 = o3.replace(new RegExp(t3.replace("$", "\\$"), "g"), j[t3]);
40
- a2 = { uuid: t2.uuid, type: "formula", formula: o3, isFormulaCalculateAfterSort: e2.isFormulaCalculateAfterSort, data: [], dynamicDatas: [] };
41
- } else a2 = { uuid: t2.uuid, type: "fixed", field: e2.yaxisFix, data: [], dynamicDatas: [] };
42
- else a2 = { uuid: t2.uuid, type: "variable", field: i2, isCumulative: s2, data: [], dynamicDatas: [] }, i2 && !X.includes(i2) && X.push(i2), i2 && !L.includes(i2) && L.push(i2), s2 && !M.has(i2) && M.add(i2);
43
- null != a2 && (C.push(a2), b[t2.uuid] = a2), e2.dynamicSeriesField && !w.includes(e2.dynamicSeriesField) && a2 && (a2.dynamicField = e2.dynamicSeriesField, a2.dynamicSeriesTitle = e2.dynamicSeriesTitle, a2.dynamicShowStack = e2.dynamicShowStack, w.push(e2.dynamicSeriesField), I[e2.dynamicSeriesField] = i2);
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 e2 = [], o2 = {};
48
- for (const i2 of S) if (i2) for (const s2 of X) {
49
- const l2 = i2[a.X_FIELD_NAME];
50
- let r2 = o2[l2];
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 t2 of x) r2[t2] = i2[t2];
54
- r2[a.X_FIELD_NAME] = i2[a.X_FIELD_NAME], o2[l2] = r2, e2.push(r2);
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 = t(i2, s2, void 0);
58
+ let n2 = e(o2, s2, void 0);
57
59
  if (!isNaN(n2)) {
58
- const t2 = r2[s2];
59
- isNaN || (n2 += t2), r2[s2] = n2;
60
+ const e2 = r2[s2];
61
+ isNaN(e2) || (n2 += e2), r2[s2] = n2;
60
62
  }
61
63
  }
62
- for (const e3 of w) {
63
- const i2 = [];
64
+ for (const t3 of w) {
65
+ const o2 = [];
64
66
  for (const s2 of S) {
65
67
  if (!s2) continue;
66
- const l2 = o2[s2[a.X_FIELD_NAME]];
68
+ const l2 = i2[s2[a.X_FIELD_NAME]];
67
69
  if (!l2) continue;
68
- let r2 = t(s2, e3, void 0);
69
- r2 = null == r2 || null == r2 ? "" : r2, i2.includes(r2) || (i2.push(r2), L.push(r2), M.add(r2));
70
- const n2 = I[e3];
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 e4 = t(s2, n2, void 0);
73
- let o3 = l2[r2];
74
- void 0 === o3 ? o3 = e4 : isNaN(e4) || (o3 += e4), l2[r2] = o3;
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[e3] = i2;
79
+ k[t3] = o2;
78
80
  }
79
- S = e2;
81
+ S = t2;
80
82
  }
81
83
  let T = {};
82
84
  const V = /* @__PURE__ */ new Set(), $ = m.props ? m.props.orderByTarget : "";
83
- for (const t2 of C) "formula" === t2.type && t2.isFormulaCalculateAfterSort && $ !== t2.uuid && V.add(t2.uuid + "_field");
84
- for (const t2 of S) if (t2) {
85
- p(t2, M, T);
86
- for (const e2 of C) if ("formula" === e2.type && !e2.isFormulaCalculateAfterSort) {
87
- const o2 = r(e2.formula, T, t2, c2);
88
- t2[e2.uuid + "_field"] = o2;
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 t2 = {};
93
- for (const e2 of S) {
94
- p(e2, M, t2);
95
- for (const o2 of C) if ("formula" === o2.type && V.has(o2.uuid + "_field")) {
96
- const i2 = r(o2.formula, t2, e2, c2);
97
- e2[o2.uuid + "_field"] = i2;
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 e2 of S) if (e2) {
105
- for (const o2 of M) {
106
- const i2 = t(e2, o2, void 0);
107
- let s2 = T[o2];
108
- void 0 === i2 || isNaN(i2) || (void 0 === s2 ? s2 = i2 : s2 += i2), T[o2] = s2;
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(e2[a.X_FIELD_NAME]);
111
- for (const o2 of C) {
112
- let i2 = o2.data;
113
- const s2 = o2.dynamicDatas;
114
- if (o2.dynamicField) {
115
- let a2 = k[o2.dynamicField];
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([]), i2 = s2[l2];
120
+ l2 >= s2.length && s2.push([]), o2 = s2[l2];
119
121
  const r2 = a2[l2];
120
- let n2 = t(e2, r2, void 0);
121
- o2.isCumulative && (n2 = T[r2]), i2.push(n2);
122
+ let n2 = e(t2, r2, void 0);
123
+ i2.isCumulative && (n2 = T[r2]), o2.push(n2);
122
124
  }
123
- } else if ("fixed" === o2.type) i2.push(o2.field);
124
- else if ("variable" === o2.type) {
125
- let s3 = t(e2, o2.field, void 0);
126
- o2.isCumulative && (s3 = T[o2.field]), i2.push(s3);
127
- } else "formula" === o2.type ? i2.push(e2[o2.uuid + "_field"]) : i2.push(void 0);
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 = i(null == G ? [] : G), U = [];
131
- for (const t2 of R) {
132
- const o2 = b[t2.uuid];
133
- if (o2.dynamicField) {
134
- let s2 = k[o2.dynamicField];
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 = o2.dynamicDatas ? o2.dynamicDatas : [];
138
+ const a2 = i2.dynamicDatas ? i2.dynamicDatas : [];
137
139
  for (let l2 = 0; l2 < s2.length; l2++) {
138
- const r2 = s2[l2], n2 = i(t2);
139
- if (o2.dynamicSeriesTitle) {
140
- const t3 = o2.dynamicSeriesTitle.replace("${name}", r2);
141
- n2.name = e(c2, t3);
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" == t2.type && o2.dynamicShowStack && (n2.stack = t2.uuid), U.push(n2);
145
+ n2.data = l2 < a2.length ? a2[l2] : [], "bar" == e2.type && i2.dynamicShowStack && (n2.stack = e2.uuid), U.push(n2);
144
146
  }
145
- } else t2.data = o2 ? o2.data : [], U.push(t2);
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 t2 of Y) t2.data = B;
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
- f(h);
155
+ d(h);
154
156
  const q = m.props ? m.props.selGroupVariable : null;
155
- !(m.props ? m.props.enableDrill : null) && q && (m.highlightInfos = [], o(c2.entity, q, null)), d(c2, m, "afterUpdateChart", h, { resultData: y }), m.groupFields = A, m.cacheDatas = S, m.rawResult = y;
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(e2, o2, i2) {
158
- for (const s2 of o2) {
159
- const o3 = t(e2, s2, void 0);
160
- let a2 = i2[s2];
161
- void 0 === o3 || isNaN(o3) || (void 0 === a2 ? a2 = o3 : a2 += o3), i2[s2] = a2;
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 p } from "../page-helper-util.js";
10
- import { expressJump as d } from "../table-utils.js";
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 || {}, p(t2, e3, "context");
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 = d(e2, t2, u2, n2);
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, p2 = r3.conditionList;
290
- if (!s(p2, t2, o3, i4, c2, l2, null, n2)) {
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 oe(e2, n2, t2, i2, o2) {
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 re(n2, t2) {
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
- oe as handleChartEvent,
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
- ie as isShowComponent,
410
- re as isShowMobileEvent,
421
+ ue as isShowComponent,
422
+ le as isShowMobileEvent,
411
423
  O as removeCustomFuncFromWindow,
412
424
  Z as rowClick,
413
425
  ee as rowDblClick,