super-page-runtime 2.3.41 → 2.3.42-cdn1

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,4 +1,7 @@
1
- import { ElMessage as e, ElMessageBox as s } from "element-plus";
2
- import { functions as o } from "./page-expose-util.js";
3
- import { standardEvents as t } from "../events/standard-event.js";
4
- o.standardEvents = t, window.$PageUtil = o, window.$message = e, window.$messageBox = s;
1
+ import { ElMessage as e, ElMessageBox as o, ElLoading as n } from "element-plus";
2
+ import { functions as t } from "./page-expose-util.js";
3
+ import { standardEvents as i } from "../events/standard-event.js";
4
+ t.standardEvents = i, window.$PageUtil = t, window.$message = e, window.$messageBox = o, Object.defineProperty(window, "$elLoading", { get() {
5
+ const e2 = n.service;
6
+ return Object.defineProperty(window, "$elLoading", { value: e2, writable: false, configurable: true }), e2;
7
+ }, configurable: true });
@@ -5,31 +5,31 @@ 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
7
  s(h), h.tooltip || (h.tooltip = {}), f(c2, m, "beforeUpdateChart", h, { resultData: y });
8
- const g = y && y.result ? y.result : {};
9
- let v = y && y.groupValue ? y.groupValue : void 0;
10
- const F = m.serviceDataField;
11
- let S = null;
12
- F ? S = g[F] : g && (S = Array.isArray(g) ? g : [g]), S || (S = []), m.runtime.dataConfig.runtimeData = S;
8
+ const S = y && y.result ? y.result : {};
9
+ let g = y && y.groupValue ? y.groupValue : void 0;
10
+ const v = m.serviceDataField;
11
+ let F = null;
12
+ v ? F = S[v] : S && (F = Array.isArray(S) ? S : [S]), F || (F = []), m.runtime.dataConfig.runtimeData = F;
13
13
  let D = m.props ? m.props.groups : null;
14
- if (D || (D = []), !v || 0 === v.length) {
15
- v = [];
16
- for (const e2 of D) v.push(e2.group);
14
+ if (D || (D = []), !g || 0 === g.length) {
15
+ g = [];
16
+ for (const e2 of D) g.push(e2.group);
17
17
  }
18
18
  const _ = {}, x = [], A = [];
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));
19
+ for (const e2 of D) _[e2.group] = e2.target, e2.target && !x.includes(e2.target) && (x.push(e2.target), g.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 t2 of S) {
22
+ for (const t2 of F) {
23
23
  if (!t2) continue;
24
24
  const i2 = [];
25
- for (const o3 of v) {
25
+ for (const o3 of g) {
26
26
  const s2 = _[o3], a2 = e(t2, s2, void 0);
27
27
  a2 && i2.push(a2);
28
28
  }
29
29
  const o2 = i2.join(N);
30
30
  t2[a.X_FIELD_NAME] = o2;
31
31
  }
32
- const E = m.items ? m.items : [], C = [], b = {}, w = [], I = {}, X = [], L = [], M = /* @__PURE__ */ new Set(), j = l(E, S, M);
32
+ const E = m.items ? m.items : [], C = [], b = {}, w = [], I = {}, X = [], L = [], M = /* @__PURE__ */ new Set(), j = l(E, F, M);
33
33
  for (const e2 of M) X.push(e2);
34
34
  for (const e2 of E) {
35
35
  const t2 = e2.props ? e2.props : {}, i2 = t2.yaxisSource, o2 = t2.yaxisField, s2 = t2.isCumulative;
@@ -47,7 +47,7 @@ function c(c2, m, h, y) {
47
47
  const k = {};
48
48
  if (w.length > 0) {
49
49
  const t2 = [], i2 = {};
50
- for (const o2 of S) if (o2) for (const s2 of X) {
50
+ for (const o2 of F) if (o2) for (const s2 of X) {
51
51
  const l2 = o2[a.X_FIELD_NAME];
52
52
  let r2 = i2[l2];
53
53
  if (!r2) {
@@ -63,7 +63,7 @@ function c(c2, m, h, y) {
63
63
  }
64
64
  for (const t3 of w) {
65
65
  const o2 = [];
66
- for (const s2 of S) {
66
+ for (const s2 of F) {
67
67
  if (!s2) continue;
68
68
  const l2 = i2[s2[a.X_FIELD_NAME]];
69
69
  if (!l2) continue;
@@ -78,21 +78,21 @@ function c(c2, m, h, y) {
78
78
  }
79
79
  k[t3] = o2;
80
80
  }
81
- S = t2;
81
+ F = t2;
82
82
  }
83
83
  let T = {};
84
84
  const V = /* @__PURE__ */ new Set(), $ = m.props ? m.props.orderByTarget : "";
85
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) {
86
+ for (const e2 of F) if (e2) {
87
87
  p(e2, M, T);
88
88
  for (const t2 of C) if ("formula" === t2.type && !t2.isFormulaCalculateAfterSort) {
89
89
  const i2 = r(t2.formula, T, e2, c2);
90
90
  e2[t2.uuid + "_field"] = i2;
91
91
  }
92
92
  }
93
- if (n(c2, m, S), V.size > 0) {
93
+ if (n(c2, m, F), V.size > 0) {
94
94
  const e2 = {};
95
- for (const t2 of S) {
95
+ for (const t2 of F) {
96
96
  p(t2, M, e2);
97
97
  for (const i2 of C) if ("formula" === i2.type && V.has(i2.uuid + "_field")) {
98
98
  const o2 = r(i2.formula, e2, t2, c2);
@@ -100,10 +100,10 @@ function c(c2, m, h, y) {
100
100
  }
101
101
  }
102
102
  }
103
- S = u(c2, m, S, x, L);
103
+ F = u(c2, m, F, x, L);
104
104
  const B = [];
105
105
  T = {};
106
- for (const t2 of S) if (t2) {
106
+ for (const t2 of F) if (t2) {
107
107
  for (const i2 of M) {
108
108
  const o2 = e(t2, i2, void 0);
109
109
  let s2 = T[i2];
@@ -146,7 +146,7 @@ function c(c2, m, h, y) {
146
146
  }
147
147
  } else e2.data = i2 ? i2.data : [], U.push(e2);
148
148
  }
149
- h.series = U;
149
+ h.series = U, m.props && m.props.hideEmptySeries && (h.series = h.series.filter((e2) => (e2.data || []).some((e3) => null != e3)));
150
150
  const z = m.defaultXaxis, Y = m.defaultYaxis;
151
151
  if (h.isBar) {
152
152
  if (Y) for (const e2 of Y) e2.data = B;
@@ -154,7 +154,7 @@ function c(c2, m, h, y) {
154
154
  } else z && z.length > 0 && (z[0].data = B), h.xAxis = z, h.yAxis = Y;
155
155
  d(h);
156
156
  const q = m.props ? m.props.selGroupVariable : null;
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;
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 = F, m.rawResult = y;
158
158
  }
159
159
  function p(t2, i2, o2) {
160
160
  for (const s2 of i2) {
@@ -3,8 +3,8 @@ import { getAdditionalParamMap as t, standardEvents as o, judgeDataNumber as i,
3
3
  import { isNotNeedValidateRequired as c, validateDataModelFunc as l } from "./validator-util.js";
4
4
  import { getComponentRef as a, getComponentRefByCode as s } from "../global-refs.js";
5
5
  import { ElMessage as f } from "element-plus";
6
- import { analysisCondition as m } from "agilebuilder-ui/src/utils/util";
7
- import { getListCode as g, deepCopy as p } from "../common-util.js";
6
+ import { analysisCondition as g } from "agilebuilder-ui/src/utils/util";
7
+ import { getListCode as m, deepCopy as p } from "../common-util.js";
8
8
  import d from "../eventBus.js";
9
9
  import { getValueFromSource as b } from "../page-helper-util.js";
10
10
  import { expressJump as v } from "../table-utils.js";
@@ -41,15 +41,15 @@ function j(e2, n2) {
41
41
  !function(e3, n3) {
42
42
  if (!n3) return;
43
43
  for (const t3 in n3) {
44
- h(n3[t3], e3);
44
+ k(n3[t3], e3);
45
45
  }
46
46
  }(n2, t2), n2.customEvents = t2;
47
47
  }
48
48
  }
49
- function k(e2, n2) {
49
+ function O(e2, n2) {
50
50
  if (e2.customEvents) return e2.customEvents[n2];
51
51
  }
52
- function h(e2, n2) {
52
+ function k(e2, n2) {
53
53
  e2.get = function(e3) {
54
54
  return e3 ? s(n2, e3) : void 0;
55
55
  }, e2.getByUuid = function(e3) {
@@ -70,10 +70,10 @@ function h(e2, n2) {
70
70
  }, e2.getPage = function() {
71
71
  return n2 && n2.entity ? n2.entity.page : {};
72
72
  }, e2.getCustomFunc = function(e3) {
73
- return k(n2, e3);
73
+ return O(n2, e3);
74
74
  };
75
75
  }
76
- function O(e2) {
76
+ function h(e2) {
77
77
  if (e2 && e2.customEvents) {
78
78
  const n2 = e2.customEvents.filter((e3) => "customFunc" === e3.name && e3.jsContent);
79
79
  n2 && n2.length > 0 && n2.forEach((e3) => {
@@ -108,7 +108,7 @@ function S(e2, t2, o2, u2, c2, l2, a2) {
108
108
  return e3 && P.indexOf(e3) >= 0;
109
109
  }(u2)) {
110
110
  if (f2 = B(t2, s2, u2), c2) {
111
- return Q(t2, o2, f2, T(t2, o2, e2, l2));
111
+ return G(t2, o2, f2, T(t2, o2, e2, l2));
112
112
  }
113
113
  return f2;
114
114
  }
@@ -117,12 +117,12 @@ function S(e2, t2, o2, u2, c2, l2, a2) {
117
117
  if (!u3) return;
118
118
  if (void 0 !== e3.canClick && false === e3.canClick) return;
119
119
  if (r(e3)) return;
120
- W(o3).then((i2) => {
120
+ Q(o3).then((i2) => {
121
121
  if (true === i2.canExecute) {
122
122
  e3.clickUuid = t3.uuid, e3.canClick = false;
123
123
  const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r2 = B(e3, i3, "beforeValidateForm");
124
124
  let u4;
125
- if (r2 && (u4 = Q(e3, t3, r2, o3)), void 0 === u4 && (u4 = true), !u4) return void (e3.canClick = true);
125
+ if (r2 && (u4 = G(e3, t3, r2, o3)), void 0 === u4 && (u4 = true), !u4) return void (e3.canClick = true);
126
126
  n(u4) ? u4.then((n2) => {
127
127
  n2 && true === n2 ? F(e3, t3, o3) : e3.canClick = true;
128
128
  }).catch((n2) => {
@@ -154,24 +154,24 @@ function F(e2, t2, o2) {
154
154
  if (!i3) return void (e2.canClick = true);
155
155
  const r3 = L(e2, t2, o2);
156
156
  r3 ? n(r3) ? r3.then((n2) => {
157
- n2 ? I(e2, t2, u2, o2) : e2.canClick = true;
157
+ n2 ? A(e2, t2, u2, o2) : e2.canClick = true;
158
158
  }).catch((n2) => {
159
159
  console.error(n2), e2.canClick = true;
160
- }) : I(e2, t2, u2, o2) : e2.canClick = true;
160
+ }) : A(e2, t2, u2, o2) : e2.canClick = true;
161
161
  }).catch((n2) => {
162
162
  console.error(n2), e2.canClick = true;
163
163
  });
164
164
  }
165
165
  function U(e2, n2, t2, o2, i2) {
166
166
  const r2 = D(e2, n2, t2, i2);
167
- I(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
167
+ A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
168
168
  }
169
169
  function D(e2, n2, t2, o2) {
170
170
  const i2 = n2.code, r2 = n2.version, u2 = R(n2, t2);
171
171
  if (u2) {
172
172
  const e3 = a(n2, u2), t3 = e3 ? e3.getSelections() : null, c2 = e3 ? e3.getSelectionIds() : null;
173
- o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = g(i2, r2, u2);
174
- V(n2) && (o2.selections = t3, o2.id = c2 && c2.length > 0 ? c2[0] : null, o2.ids = c2);
173
+ o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = m(i2, r2, u2);
174
+ I(n2) && (o2.selections = t3, o2.id = c2 && c2.length > 0 ? c2[0] : null, o2.ids = c2);
175
175
  const l2 = e3 ? e3.getTableConfigure() : null;
176
176
  o2.tableConfigure = l2;
177
177
  }
@@ -180,30 +180,30 @@ function D(e2, n2, t2, o2) {
180
180
  function L(e2, n2, t2) {
181
181
  const o2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
182
182
  let i2;
183
- return o2 && (i2 = Q(e2, n2, o2, null, t2)), void 0 === i2 || i2;
183
+ return o2 && (i2 = G(e2, n2, o2, null, t2)), void 0 === i2 || i2;
184
184
  }
185
185
  function _(e2, n2, t2) {
186
186
  const o2 = e2.code + "_";
187
187
  d.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
188
188
  }
189
- function V(e2, n2) {
189
+ function I(e2, n2) {
190
190
  return !(!e2.pageType || "list" !== e2.pageType);
191
191
  }
192
- function q(e2, t2, o2) {
192
+ function V(e2, t2, o2) {
193
193
  const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, i2, "afterClick");
194
194
  if (r2) {
195
- const i3 = Q(e2, t2, r2, null, o2);
195
+ const i3 = G(e2, t2, r2, null, o2);
196
196
  n(i3) ? i3.finally(() => {
197
197
  e2.canClick = true;
198
198
  }) : e2.canClick = true;
199
199
  } else e2.canClick = true;
200
200
  }
201
- function A(e2, n2, t2, o2, i2, r2) {
201
+ function q(e2, n2, t2, o2, i2, r2) {
202
202
  o2 ? (e2.result = i2, e2.canClick = true) : u(e2, n2, i2, "", r2);
203
203
  const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
204
- c2 && Q(e2, n2, c2, t2);
204
+ c2 && G(e2, n2, c2, t2);
205
205
  }
206
- function I(e2, t2, o2, i2) {
206
+ function A(e2, t2, o2, i2) {
207
207
  let r2 = t2, u2 = t2.props.linkPage;
208
208
  if (u2 && u2 instanceof Array) {
209
209
  const n2 = function(e3) {
@@ -215,18 +215,18 @@ function I(e2, t2, o2, i2) {
215
215
  o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = p(t2), r2.props.linkPage = u2);
216
216
  }
217
217
  u2 && u2.jumpPageUrl ? (e2.canClick = true, _(e2, r2, i2)) : function(e3, t3, o3, i3) {
218
- const r3 = o3, u3 = V(e3);
218
+ const r3 = o3, u3 = I(e3);
219
219
  if (r3) {
220
- const o4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = Q(e3, t3, o4, i3);
220
+ const o4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = G(e3, t3, o4, i3);
221
221
  if (function(e4, n2) {
222
222
  return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName || "saveQueryCharts" === n2.eventName || "addTransactor" === n2.eventName || "removeTransactor" === n2.eventName);
223
223
  }(c2, l2)) return void (e3.canClick = true);
224
224
  n(a2) ? a2.then((n2) => {
225
- n2 ? A(e3, t3, i3, c2, n2, u3) : e3.canClick = true;
225
+ n2 ? q(e3, t3, i3, c2, n2, u3) : e3.canClick = true;
226
226
  }).catch((n2) => {
227
227
  console.error(n2), e3.canClick = true;
228
- }) : A(e3, t3, i3, c2, a2, u3);
229
- } else A(e3, t3, i3, false, null, u3);
228
+ }) : q(e3, t3, i3, c2, a2, u3);
229
+ } else q(e3, t3, i3, false, null, u3);
230
230
  }(e2, t2, o2, i2);
231
231
  }
232
232
  function $(e2, n2) {
@@ -262,7 +262,7 @@ function z(e2, n2, t2) {
262
262
  }
263
263
  }
264
264
  }
265
- function Q(e2, n2, t2, o2, i2) {
265
+ function G(e2, n2, t2, o2, i2) {
266
266
  if (t2) {
267
267
  if (o2 || (o2 = { pageContext: e2, configureObj: n2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
268
268
  try {
@@ -279,8 +279,8 @@ function Q(e2, n2, t2, o2, i2) {
279
279
  }
280
280
  }
281
281
  }
282
- function W(e2) {
283
- const n2 = e2.pageContext, o2 = e2.configureObj, i2 = V(n2);
282
+ function Q(e2) {
283
+ const n2 = e2.pageContext, o2 = e2.configureObj, i2 = I(n2);
284
284
  let r2 = [];
285
285
  if (i2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
286
286
  else {
@@ -292,24 +292,26 @@ function W(e2) {
292
292
  if (null == u2 || "" === u2 || null == r2 || 0 === r2.length) e3({ canExecute: true });
293
293
  else {
294
294
  const o4 = n2.entity.context, i3 = t(n2), c2 = true, l2 = n2.tableName;
295
- let a2, s2, g2 = true;
295
+ let a2, s2, m2 = true;
296
296
  for (let e4 = 0; e4 < r2.length; e4++) {
297
297
  const t2 = r2[e4];
298
298
  for (let e5 = 0; e5 < u2.length; e5++) {
299
299
  const r3 = u2[e5], f2 = r3.toolTips, p2 = r3.conditionList;
300
- if (!m(p2, t2, i3, o4, c2, l2, null, n2)) {
301
- g2 = false, a2 = f2, s2 = t2;
300
+ if (!g(p2, t2, i3, o4, c2, l2, null, n2)) {
301
+ m2 = false, a2 = f2, s2 = t2;
302
302
  break;
303
303
  }
304
304
  }
305
305
  }
306
- g2 ? e3({ canExecute: true }) : (a2 && f({ showClose: true, type: "warning", message: a2 }), e3({ canExecute: false, message: a2, failEntity: s2 }));
306
+ m2 ? e3({ canExecute: true }) : (a2 && f({ showClose: true, type: "warning", message: a2 }), e3({ canExecute: false, message: a2, failEntity: s2 }));
307
307
  }
308
308
  });
309
309
  }
310
- function G(e2, n2, t2, o2) {
310
+ function W(e2, n2, t2, o2) {
311
311
  var i2;
312
- n2 && (J("loadBeforeSend", w(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "beforeListLoad", i2), e2), J("beforeRequest", function(e3) {
312
+ n2 && (J("afterGridConfigInit", w(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "afterGridConfigInit", i2), e2), J("loadBeforeSend", function(e3) {
313
+ return w(null, e3.pageContext, e3.configureObj, "beforeListLoad", e3);
314
+ }({ pageContext: t2, configureObj: o2 }), e2), J("beforeRequest", function(e3) {
313
315
  return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
314
316
  }({ pageContext: t2, configureObj: o2 }), e2), J("gridDataLoaded", function(e3) {
315
317
  return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
@@ -386,7 +388,7 @@ function ce(n2) {
386
388
  return t2;
387
389
  }
388
390
  function le(e2, n2, t2, o2, i2) {
389
- return Q(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
391
+ return G(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
390
392
  }
391
393
  function ae(n2, t2) {
392
394
  let o2 = true;
@@ -400,11 +402,11 @@ function ae(n2, t2) {
400
402
  return o2;
401
403
  }
402
404
  export {
403
- h as appendDefaultMethods,
404
- W as canExecuteButton,
405
+ k as appendDefaultMethods,
406
+ Q as canExecuteButton,
405
407
  Y as cellClick,
406
408
  Z as cellDblClick,
407
- q as doAfterClickEvent,
409
+ V as doAfterClickEvent,
408
410
  L as doBeforeClickEvent,
409
411
  _ as doClickJumpPageEvent,
410
412
  U as doSuffixOrPrefixClickEvent,
@@ -413,7 +415,7 @@ export {
413
415
  ue as fileUploadDeleted,
414
416
  ie as fileUploadUploaded,
415
417
  z as getClickEventFuncByType,
416
- k as getCustomFunc,
418
+ O as getCustomFunc,
417
419
  D as getDefaultEventParams,
418
420
  B as getEventFuncByType,
419
421
  H as getEventNameByType,
@@ -430,8 +432,8 @@ export {
430
432
  j as initPageEvents,
431
433
  ce as isShowComponent,
432
434
  ae as isShowMobileEvent,
433
- O as removeCustomFuncFromWindow,
435
+ h as removeCustomFuncFromWindow,
434
436
  ee as rowClick,
435
437
  ne as rowDblClick,
436
- G as setTableEvents
438
+ W as setTableEvents
437
439
  };
@@ -653,7 +653,7 @@ function me(e2) {
653
653
  let r2 = I(n2, t2);
654
654
  r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
655
655
  const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
656
- t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
656
+ t2.dataTypeMaps && Object.keys(t2.dataTypeMaps).length > 0 && (c2.dataTypeMap = t2.dataTypeMaps), t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
657
657
  const l2 = n2.props.base.conversionCodes;
658
658
  l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2));
659
659
  const u2 = We(n2);
@@ -146,7 +146,7 @@ function y(e2, n2, r2, l2) {
146
146
  }(n4, e4)) return void l4(false);
147
147
  const r6 = true, f2 = p(R2), E2 = n4.hiddenNotValidatorCodes;
148
148
  E2 && E2.size > 0 && E2.forEach((e5) => {
149
- f2.subRules && delete f2.subRules[e5], f2.rules && delete f2.rules[e5];
149
+ delete f2[e5], f2.subRules && delete f2.subRules[e5], f2.rules && delete f2.rules[e5];
150
150
  }), f2.subRules && (Object.keys(f2.subRules).length > 0 ? f2.totalSubRules || (f2.totalSubRules = {}) : delete f2.subRules);
151
151
  const v2 = window.$vueApp.config.globalProperties.$formValidator(e4, f2, g3, c3, m3, d3, b2, r6);
152
152
  y2 = v2.msg, i2 = v2.field, u3 = v2.listCode, h2 = v2.rowIndex, w2 = v2.pageNum;
@@ -1,13 +1,13 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getAdditionalParamMap as t } from "./events/standard-event.js";
3
3
  import { PageDimensions as n } from "./interfaces/page-design-types.js";
4
- import { getFormPropName as i, getVariableValue as s, formatVariableValue as r, setVariableValue as o } from "./page-helper-util.js";
4
+ import { getFormPropName as i, getVariableValue as r, formatVariableValue as o, setVariableValue as s } from "./page-helper-util.js";
5
5
  import { getSessionCache as a } from "agilebuilder-ui/src/utils/auth";
6
6
  import { functions as l } from "./api/page-expose-util.js";
7
7
  import { isWorkflowPage as u, deepCopy as p } from "./common-util.js";
8
8
  import { packageCustomValidator as d } from "./events/validator-util.js";
9
9
  import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
10
- function f(t2) {
10
+ function m(t2) {
11
11
  return new Promise((n2, i2) => {
12
12
  (function(t3) {
13
13
  return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
@@ -22,10 +22,10 @@ function f(t2) {
22
22
  });
23
23
  });
24
24
  }
25
- function m(e2, t2) {
25
+ function f(e2, t2) {
26
26
  return new Promise((n2, i2) => {
27
- e2 ? b().then((s2) => {
28
- s2 && (e2.systemParam = h(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? x(e2, t2, e2.systemVersion).then((t3) => {
27
+ e2 ? b().then((r2) => {
28
+ r2 && (e2.systemParam = h(r2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? x(e2, t2, e2.systemVersion).then((t3) => {
29
29
  e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, n2(e2);
30
30
  }).catch((e3) => {
31
31
  i2(e3);
@@ -131,34 +131,34 @@ function C(e2, t2) {
131
131
  const n2 = a(e2);
132
132
  if (n2) {
133
133
  const e3 = JSON.parse(n2);
134
- Object.assign(t2, e3);
134
+ e3.jumpFrom && (window.jumpFrom = e3.jumpFrom), Object.assign(t2, e3);
135
135
  }
136
136
  }
137
137
  }
138
138
  function k(e2, t2) {
139
139
  let n2, i2 = t2;
140
140
  t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
141
- let s2 = null;
142
- return t2 && !t2.startsWith("${") ? s2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), s2 = i2.split("."), e2 && s2.length < 2 && (s2 = [e2.uuid])) : e2 && (s2 = ["page", e2.uuid]) : s2 = ["page", e2.uuid], s2 || e2 ? s2 : ["temp"];
141
+ let r2 = null;
142
+ return t2 && !t2.startsWith("${") ? r2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), r2 = i2.split("."), e2 && r2.length < 2 && (r2 = [e2.uuid])) : e2 && (r2 = ["page", e2.uuid]) : r2 = ["page", e2.uuid], r2 || e2 ? r2 : ["temp"];
143
143
  }
144
144
  function A(e2, t2, n2) {
145
145
  var _a, _b;
146
- const i2 = k(t2, n2), r2 = e2.entity;
147
- if (null == r2.data.ID && null == r2.data.id) {
148
- let n3, o2, a2 = false;
149
- t2 && (n3 = t2.props.base ? t2.props.base : {}, o2 = t2.name, a2 = n3.multiple);
150
- const l2 = s(r2, i2);
146
+ const i2 = k(t2, n2), o2 = e2.entity;
147
+ if (null == o2.data.ID && null == o2.data.id) {
148
+ let n3, s2, a2 = false;
149
+ t2 && (n3 = t2.props.base ? t2.props.base : {}, s2 = t2.name, a2 = n3.multiple);
150
+ const l2 = r(o2, i2);
151
151
  if (null == l2) {
152
- const s2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
153
- if (s2) try {
154
- const t3 = T(e2, s2, o2, a2);
155
- if (M(t3)) I(r2, i2, t3, l3);
152
+ const r2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
153
+ if (r2) try {
154
+ const t3 = I(e2, r2, s2, a2);
155
+ if (M(t3)) j(o2, i2, t3, l3);
156
156
  else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
157
157
  const t4 = n3.moreDefaultValue;
158
158
  for (let n4 = 0; n4 < t4.length; n4++) {
159
- const s3 = T(e2, t4[n4], o2, a2);
160
- if (M(s3)) {
161
- I(r2, i2, s3, l3);
159
+ const r3 = I(e2, t4[n4], s2, a2);
160
+ if (M(r3)) {
161
+ j(o2, i2, r3, l3);
162
162
  break;
163
163
  }
164
164
  }
@@ -173,31 +173,31 @@ function A(e2, t2, n2) {
173
173
  function M(e2) {
174
174
  return null != e2 && "" !== e2;
175
175
  }
176
- function I(e2, t2, n2, i2) {
177
- !Array.isArray(n2) || i2 ? o(e2, t2, n2) : o(e2, t2, n2.join(","));
176
+ function j(e2, t2, n2, i2) {
177
+ !Array.isArray(n2) || i2 ? s(e2, t2, n2) : s(e2, t2, n2.join(","));
178
178
  }
179
- function T(e2, t2, n2, i2) {
180
- let s2;
181
- if (t2 && (s2 = r(e2, t2), null != s2 && null != s2 && n2)) {
179
+ function I(e2, t2, n2, i2) {
180
+ let r2;
181
+ if (t2 && (r2 = o(e2, t2), null != r2 && null != r2 && n2)) {
182
182
  let e3 = false;
183
- "checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (s2 = (s2 + "").split(","));
183
+ "checkbox" == n2 ? e3 = true : "select" == n2 && (e3 = i2), e3 && (r2 = (r2 + "").split(","));
184
184
  }
185
- return s2;
185
+ return r2;
186
186
  }
187
- function j(e2, t2) {
187
+ function T(e2, t2) {
188
188
  var _a, _b;
189
189
  if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
190
190
  const n2 = [];
191
191
  if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
192
192
  if (e2.functionCodes) {
193
- const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
194
- for (let e3 = 0; e3 < s2.length; e3++) {
195
- const r2 = s2[e3], o2 = e3 < i2.length ? i2[e3] : "";
193
+ const i2 = e2.sourceTypes ? e2.sourceTypes : [], r2 = e2.functionCodes;
194
+ for (let e3 = 0; e3 < r2.length; e3++) {
195
+ const o2 = r2[e3], s2 = e3 < i2.length ? i2[e3] : "";
196
196
  let a2 = "";
197
- if ("service" == o2) a2 = r2;
198
- else if ("standard" === o2) a2 = t2.code + "." + r2;
197
+ if ("service" == s2) a2 = o2;
198
+ else if ("standard" === s2) a2 = t2.code + "." + o2;
199
199
  else {
200
- a2 = "custom" === O(r2, t2).type ? r2 : t2.code + "." + r2;
200
+ a2 = "custom" === O(o2, t2).type ? o2 : t2.code + "." + o2;
201
201
  }
202
202
  n2.includes(a2) || n2.push(a2);
203
203
  }
@@ -211,26 +211,26 @@ function O(e2, t2) {
211
211
  }
212
212
  return null;
213
213
  }
214
- function x(n2, i2, s2) {
215
- const r2 = n2.tableRuntimes, o2 = t(i2);
214
+ function x(n2, i2, r2) {
215
+ const o2 = n2.tableRuntimes, s2 = t(i2);
216
216
  let a2;
217
217
  const l2 = n2.code;
218
- return o2 && Object.keys(o2) > 0 && (a2 = JSON.stringify(o2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: r2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: n2.pageType });
218
+ return s2 && Object.keys(s2) > 0 && (a2 = JSON.stringify(s2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: a2, pageCode: l2, publishVersion: r2, pageType: n2.pageType });
219
219
  }
220
- const R = ["button-detail", "print-label"];
221
- function _(e2, t2, n2) {
220
+ const F = ["button-detail", "print-label"];
221
+ function R(e2, t2, n2) {
222
222
  var _a, _b;
223
- const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, r2 = u(e2);
224
- let o2 = false;
225
- if (r2 && R.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
223
+ const r2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = u(e2);
224
+ let s2 = false;
225
+ if (o2 && F.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
226
226
  const n3 = e2.fieldPermissionMap.get("all_fields");
227
- false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
227
+ false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", s2 = true);
228
228
  }
229
- if (s2) {
230
- const a2 = i(s2);
229
+ if (r2) {
230
+ const a2 = i(r2);
231
231
  if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
232
232
  d(e3), !n2 && e3 && e3.required && (e3.required = false);
233
- }), e2.rules[a2] = t2.props.rules), r2 && !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
233
+ }), e2.rules[a2] = t2.props.rules), o2 && !s2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
234
234
  const i2 = e2.fieldPermissionMap.get(a2);
235
235
  if (!n2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
236
236
  let t3 = e2.workflowRules[a2];
@@ -248,7 +248,7 @@ function _(e2, t2, n2) {
248
248
  ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
249
249
  }
250
250
  }
251
- function V(e2, t2) {
251
+ function _(e2, t2) {
252
252
  if (e2.initInfo) {
253
253
  ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((n2) => {
254
254
  const i2 = e2.initInfo[n2];
@@ -264,17 +264,17 @@ function V(e2, t2) {
264
264
  }
265
265
  }
266
266
  export {
267
- V as controlObjectRenderState,
267
+ _ as controlObjectRenderState,
268
268
  y as convertToPageContext,
269
- T as getDefaultValue,
269
+ I as getDefaultValue,
270
270
  A as getFormModelFields,
271
271
  k as getModelFields,
272
- j as getPermissionCodes,
272
+ T as getPermissionCodes,
273
273
  P as packageAdditionalMapWithLocationSearch,
274
274
  E as packageAdditionalMapWithPageRequest,
275
275
  v as packageAdditionalMapWithRoute,
276
- _ as packageFormRules,
277
- f as queryPageDesignByCode,
278
- m as queryPageDesignWhenPreview,
276
+ R as packageFormRules,
277
+ m as queryPageDesignByCode,
278
+ f as queryPageDesignWhenPreview,
279
279
  x as queryPageSuperGrids
280
280
  };
@@ -16,7 +16,7 @@ const u = t("pageContextUtil", () => {
16
16
  } else c = -1, d = -1, p();
17
17
  }();
18
18
  });
19
- }, 30);
19
+ }, 100);
20
20
  }
21
21
  function f(e2) {
22
22
  u2.value = e2, C();