super-page-runtime 2.3.46-sit2 → 2.3.47-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.
@@ -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
- k(n3[t3], e3);
44
+ O(n3[t3], e3);
45
45
  }
46
46
  }(n2, t2), n2.customEvents = t2;
47
47
  }
48
48
  }
49
- function O(e2, n2) {
49
+ function k(e2, n2) {
50
50
  if (e2.customEvents) return e2.customEvents[n2];
51
51
  }
52
- function k(e2, n2) {
52
+ function O(e2, n2) {
53
53
  e2.get = function(e3) {
54
54
  return e3 ? s(n2, e3) : void 0;
55
55
  }, e2.getByUuid = function(e3) {
@@ -70,7 +70,7 @@ function k(e2, n2) {
70
70
  }, e2.getPage = function() {
71
71
  return n2 && n2.entity ? n2.entity.page : {};
72
72
  }, e2.getCustomFunc = function(e3) {
73
- return O(n2, e3);
73
+ return k(n2, e3);
74
74
  };
75
75
  }
76
76
  function h(e2) {
@@ -82,7 +82,7 @@ function h(e2) {
82
82
  }
83
83
  }
84
84
  function y(e2, n2, t2, i2, o2) {
85
- return S(e2, n2, t2, i2, true, o2, false);
85
+ return P(e2, n2, t2, i2, true, o2, false);
86
86
  }
87
87
  function E(e2, n2, t2, i2, o2) {
88
88
  var _a, _b;
@@ -93,19 +93,19 @@ function E(e2, n2, t2, i2, o2) {
93
93
  i3 && i3.indexOf(o3) >= 0 && d.$emit("_refreshSubTable_" + n3, { propName: o3 });
94
94
  }
95
95
  }
96
- return S(e2, n2, t2, i2, true, o2, true);
96
+ return P(e2, n2, t2, i2, true, o2, true);
97
97
  }
98
98
  function N(e2, n2, t2, i2) {
99
99
  return E(e2, n2, t2, "afterInit", i2);
100
100
  }
101
101
  function w(e2, n2, t2, i2, o2) {
102
- return S(e2, n2, t2, i2, false, o2, false);
102
+ return P(e2, n2, t2, i2, false, o2, false);
103
103
  }
104
- function S(e2, t2, i2, u2, c2, l2, a2) {
104
+ function P(e2, t2, i2, u2, c2, l2, a2) {
105
105
  const s2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
106
106
  let f2;
107
107
  if (a2 || !function(e3) {
108
- return e3 && P.indexOf(e3) >= 0;
108
+ return e3 && S.indexOf(e3) >= 0;
109
109
  }(u2)) {
110
110
  if (f2 = B(t2, s2, u2), c2) {
111
111
  return G(t2, i2, f2, T(t2, i2, e2, l2));
@@ -124,15 +124,15 @@ function S(e2, t2, i2, u2, c2, l2, a2) {
124
124
  let u4;
125
125
  if (r2 && (u4 = G(e3, t3, r2, i3)), void 0 === u4 && (u4 = true), !u4) return void (e3.canClick = true);
126
126
  n(u4) ? u4.then((n2) => {
127
- n2 && true === n2 ? F(e3, t3, i3) : e3.canClick = true;
127
+ n2 && true === n2 ? U(e3, t3, i3) : e3.canClick = true;
128
128
  }).catch((n2) => {
129
129
  e3.canClick = true;
130
- }) : F(e3, t3, i3);
130
+ }) : U(e3, t3, i3);
131
131
  }
132
132
  });
133
- }(t2, i2, D(e2, t2, i2, l2));
133
+ }(t2, i2, L(e2, t2, i2, l2));
134
134
  }
135
- const P = ["click", "suffixClick", "prefixClick", "menuClick"];
135
+ const S = ["click", "suffixClick", "prefixClick", "menuClick"];
136
136
  function R(e2, n2) {
137
137
  return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
138
138
  }
@@ -141,7 +141,7 @@ function T(e2, n2, t2, i2) {
141
141
  if (i2) for (const e3 in i2) o2[e3] = i2[e3];
142
142
  return null != t2 && (o2._value = t2), e2 && (o2.pageContext = e2), n2 && (o2.configureObj = n2), o2;
143
143
  }
144
- function F(e2, t2, i2) {
144
+ function U(e2, t2, i2) {
145
145
  const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
146
146
  let r2 = true;
147
147
  (i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
@@ -152,32 +152,40 @@ function F(e2, t2, i2) {
152
152
  }
153
153
  l(e2, t2, u2, r2).then((o3) => {
154
154
  if (!o3) return void (e2.canClick = true);
155
- const r3 = L(e2, t2, i2);
155
+ const r3 = D(e2, t2, i2);
156
156
  r3 ? n(r3) ? r3.then((n2) => {
157
- n2 ? A(e2, t2, u2, i2) : e2.canClick = true;
157
+ n2 ? q(e2, t2, u2, i2) : e2.canClick = true;
158
158
  }).catch((n2) => {
159
159
  e2.canClick = true;
160
- }) : A(e2, t2, u2, i2) : e2.canClick = true;
160
+ }) : q(e2, t2, u2, i2) : e2.canClick = true;
161
161
  }).catch((n2) => {
162
162
  e2.canClick = true;
163
163
  });
164
164
  }
165
- function U(e2, n2, t2, i2, o2) {
166
- const r2 = D(e2, n2, t2, o2);
167
- A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
168
- }
169
- function D(e2, n2, t2, i2) {
165
+ function F(e2, n2, t2, i2, o2) {
166
+ const r2 = L(e2, n2, t2, o2), u2 = z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2);
167
+ q(n2, function(e3) {
168
+ const n3 = e3 && e3.props ? e3.props.suffixLinkPage : null;
169
+ if (!function(e4) {
170
+ if (!e4) return false;
171
+ if (Array.isArray(e4)) return e4.length > 0;
172
+ return !!e4.jumpPageUrl;
173
+ }(n3)) return e3;
174
+ return { ...e3, props: { ...e3.props, linkPage: n3 } };
175
+ }(t2), u2, r2);
176
+ }
177
+ function L(e2, n2, t2, i2) {
170
178
  const o2 = n2.code, r2 = n2.version, u2 = R(n2, t2);
171
179
  if (u2) {
172
180
  const e3 = a(n2, u2), t3 = e3 ? e3.getSelections() : null, c2 = e3 ? e3.getSelectionIds() : null;
173
181
  i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = m(o2, r2, u2);
174
- I(n2) && (i2.selections = t3, i2.id = c2 && c2.length > 0 ? c2[0] : null, i2.ids = c2);
182
+ A(n2) && (i2.selections = t3, i2.id = c2 && c2.length > 0 ? c2[0] : null, i2.ids = c2);
175
183
  const l2 = e3 ? e3.getTableConfigure() : null;
176
184
  i2.tableConfigure = l2;
177
185
  }
178
186
  return T(n2, t2, e2, i2);
179
187
  }
180
- function L(e2, n2, t2) {
188
+ function D(e2, n2, t2) {
181
189
  const i2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
182
190
  let o2;
183
191
  return i2 && (o2 = G(e2, n2, i2, null, t2)), void 0 === o2 || o2;
@@ -186,10 +194,10 @@ function _(e2, n2, t2) {
186
194
  const i2 = e2.code + "_";
187
195
  d.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
188
196
  }
189
- function I(e2, n2) {
197
+ function A(e2, n2) {
190
198
  return !(!e2.pageType || "list" !== e2.pageType);
191
199
  }
192
- function V(e2, t2, i2) {
200
+ function I(e2, t2, i2) {
193
201
  const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, o2, "afterClick");
194
202
  if (r2) {
195
203
  const o3 = G(e2, t2, r2, null, i2);
@@ -198,12 +206,12 @@ function V(e2, t2, i2) {
198
206
  }) : e2.canClick = true;
199
207
  } else e2.canClick = true;
200
208
  }
201
- function q(e2, n2, t2, i2, o2, r2) {
209
+ function V(e2, n2, t2, i2, o2, r2) {
202
210
  i2 ? (e2.result = o2, e2.canClick = true) : u(e2, n2, o2, "", r2);
203
211
  const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
204
212
  c2 && G(e2, n2, c2, t2);
205
213
  }
206
- function A(e2, t2, i2, o2) {
214
+ function q(e2, t2, i2, o2) {
207
215
  let r2 = t2, u2 = t2.props.linkPage;
208
216
  if (u2 && u2 instanceof Array) {
209
217
  const n2 = function(e3) {
@@ -215,18 +223,18 @@ function A(e2, t2, i2, o2) {
215
223
  i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = p(t2), r2.props.linkPage = u2);
216
224
  }
217
225
  u2 && u2.jumpPageUrl ? (e2.canClick = true, _(e2, r2, o2)) : function(e3, t3, i3, o3) {
218
- const r3 = i3, u3 = I(e3);
226
+ const r3 = i3, u3 = A(e3);
219
227
  if (r3) {
220
228
  const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = G(e3, t3, i4, o3);
221
229
  if (function(e4, n2) {
222
230
  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
231
  }(c2, l2)) return void (e3.canClick = true);
224
232
  n(a2) ? a2.then((n2) => {
225
- n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
233
+ n2 ? V(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
226
234
  }).catch((n2) => {
227
235
  e3.canClick = true;
228
- }) : q(e3, t3, o3, c2, a2, u3);
229
- } else q(e3, t3, o3, false, null, u3);
236
+ }) : V(e3, t3, o3, c2, a2, u3);
237
+ } else V(e3, t3, o3, false, null, u3);
230
238
  }(e2, t2, i2, o2);
231
239
  }
232
240
  function $(e2, n2) {
@@ -280,7 +288,7 @@ function G(e2, n2, t2, i2, o2) {
280
288
  }
281
289
  }
282
290
  function Q(e2) {
283
- const n2 = e2.pageContext, i2 = e2.configureObj, o2 = I(n2);
291
+ const n2 = e2.pageContext, i2 = e2.configureObj, o2 = A(n2);
284
292
  let r2 = [];
285
293
  if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
286
294
  else {
@@ -402,21 +410,21 @@ function ae(n2, t2) {
402
410
  return i2;
403
411
  }
404
412
  export {
405
- k as appendDefaultMethods,
413
+ O as appendDefaultMethods,
406
414
  Q as canExecuteButton,
407
415
  Y as cellClick,
408
416
  Z as cellDblClick,
409
- V as doAfterClickEvent,
410
- L as doBeforeClickEvent,
417
+ I as doAfterClickEvent,
418
+ D as doBeforeClickEvent,
411
419
  _ as doClickJumpPageEvent,
412
- U as doSuffixOrPrefixClickEvent,
420
+ F as doSuffixOrPrefixClickEvent,
413
421
  re as fileUploadBeforeDelete,
414
422
  ie as fileUploadBeforeUpload,
415
423
  ue as fileUploadDeleted,
416
424
  oe as fileUploadUploaded,
417
425
  z as getClickEventFuncByType,
418
- O as getCustomFunc,
419
- D as getDefaultEventParams,
426
+ k as getCustomFunc,
427
+ L as getDefaultEventParams,
420
428
  B as getEventFuncByType,
421
429
  H as getEventNameByType,
422
430
  w as getHandleEvent,
@@ -11,7 +11,7 @@ import { setStoreInfo as I } from "../store-util.js";
11
11
  import { getPermissionCodes as S, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
12
12
  import { caculateShowCondition as x, updateChartDatasources as N, getVariableValue as O, setVariableValue as A } from "../page-helper-util.js";
13
13
  import E from "./print-label.js";
14
- import { getTableNameByTableUuid as U, getCurrentUserFileTasks as _, setFileTaskRead as j } from "../table-utils.js";
14
+ import { getTableNameByTableUuid as U, getCurrentUserFileTasks as j, setFileTaskRead as _ } from "../table-utils.js";
15
15
  import { getWorkflowRules as D, packageCustomRules as W } from "./validator-util.js";
16
16
  import { functions as L } from "../api/page-expose-util.js";
17
17
  import { usePageContextStore as B } from "../page-store.js";
@@ -518,7 +518,7 @@ function re(e2, t2, n2) {
518
518
  const o2 = t2.props.base.successOperation;
519
519
  if (!o2 || null === o2) return;
520
520
  const s2 = t2.props.base.isNeedValueMapping;
521
- "noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? je(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ce(e2, t2, n2, s2), e2.canClick = true);
521
+ "noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? _e(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ce(e2, t2, n2, s2), e2.canClick = true);
522
522
  }
523
523
  function ce(e2, t2, n2, o2) {
524
524
  const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
@@ -559,7 +559,7 @@ function pe(e2, t2, n2, o2) {
559
559
  }
560
560
  } else if (i2 && "form" === i2) {
561
561
  const t3 = e2.entity.data;
562
- je(e2, t3.ID ? t3.ID : t3.id);
562
+ _e(e2, t3.ID ? t3.ID : t3.id);
563
563
  }
564
564
  }
565
565
  }
@@ -600,7 +600,7 @@ function de(e2, o2, s2, i2) {
600
600
  });
601
601
  }
602
602
  function me(e2, s2) {
603
- var _a, _b, _c, _d;
603
+ var _a, _b, _c, _d, _e2;
604
604
  const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = U(i2, d2), f2 = new FormData();
605
605
  f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
606
606
  const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
@@ -614,7 +614,7 @@ function me(e2, s2) {
614
614
  const T2 = i2.formNoRuleCode;
615
615
  T2 && f2.append("formNoRuleCode", T2);
616
616
  const k2 = e2.listCode;
617
- k2 && f2.append("listCode", k2);
617
+ k2 && f2.append("listCode", k2), ((_d = p2 == null ? void 0 : p2.conversionCodes) == null ? void 0 : _d.length) > 0 && f2.append("dataConversionRule", p2.conversionCodes.join(","));
618
618
  let h2 = false;
619
619
  h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
620
620
  const y2 = o(i2);
@@ -627,7 +627,7 @@ function me(e2, s2) {
627
627
  f2.append("isPermission", R2 + "");
628
628
  const M2 = i2.systemCode;
629
629
  M2 && f2.append("systemCode", M2);
630
- const x2 = (_d = a2.props.base) == null ? void 0 : _d.logSetting;
630
+ const x2 = (_e2 = a2.props.base) == null ? void 0 : _e2.logSetting;
631
631
  x2 && f2.append("logSettingText", x2.join(""));
632
632
  const N2 = i2.backendUrl;
633
633
  let O2 = t(N2, i2.isTest) + "/dsc/commons/import-data";
@@ -995,7 +995,7 @@ function Ue(e2, t2, n2, o2, s2, i2) {
995
995
  const o3 = m(), s3 = o3 ? o3.loginName : null;
996
996
  if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
997
997
  return false;
998
- }(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 = _e(n2) : "addTransactor" === t2 || "removeTransactor" === t2 ? a2 = function(e3) {
998
+ }(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 = je(n2) : "addTransactor" === t2 || "removeTransactor" === t2 ? a2 = function(e3) {
999
999
  if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
1000
1000
  return false;
1001
1001
  }(n2) : function(e3, t3) {
@@ -1026,10 +1026,10 @@ function Ue(e2, t2, n2, o2, s2, i2) {
1026
1026
  }
1027
1027
  return a2;
1028
1028
  }
1029
- function _e(e2, t2, n2) {
1029
+ function je(e2, t2, n2) {
1030
1030
  return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
1031
1031
  }
1032
- function je(e2, t2) {
1032
+ function _e(e2, t2) {
1033
1033
  e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, De(e2, t2).then((t3) => {
1034
1034
  e2.isRefresh = true;
1035
1035
  });
@@ -1181,10 +1181,10 @@ function Ge(e2, t2, n2) {
1181
1181
  }, 3e3));
1182
1182
  }
1183
1183
  function Je(e2, t2) {
1184
- return _(e2, t2);
1184
+ return j(e2, t2);
1185
1185
  }
1186
1186
  function Ye(e2, t2, n2, o2) {
1187
- j(e2, n2).then(() => {
1187
+ _(e2, n2).then(() => {
1188
1188
  !function(e3, t3, n3) {
1189
1189
  Je(t3, n3).then((o3) => {
1190
1190
  e3.lastFileTask = o3, He(e3, t3, n3);
@@ -1219,7 +1219,7 @@ export {
1219
1219
  fe as judgeDataNumber,
1220
1220
  Ve as listChartConditions,
1221
1221
  pe as refreshFormOrListPage,
1222
- je as refreshPage,
1222
+ _e as refreshPage,
1223
1223
  Fe as saveChartConditionBase,
1224
1224
  z as standardEvents,
1225
1225
  le as updateValuesWhenCloseDialog
@@ -1,6 +1,6 @@
1
1
  import e from "async-validator";
2
2
  import { ElMessage as t } from "element-plus";
3
- import { getComponentRefByCode as s, getComponentRef as n, getAllComponentRefs as r } from "../global-refs.js";
3
+ import { getComponentRefByCode as n, getComponentRef as r, getAllComponentRefs as s } from "../global-refs.js";
4
4
  import { getI18n as i } from "agilebuilder-ui/src/utils/util";
5
5
  import { getAdditionalParamMap as o } from "./standard-event.js";
6
6
  import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
@@ -14,87 +14,87 @@ function p(e2, t2 = /* @__PURE__ */ new WeakMap()) {
14
14
  } catch (e3) {
15
15
  }
16
16
  if (null === e2 || "object" != typeof e2) return e2;
17
- const s2 = e2;
18
- if (t2.has(s2)) return t2.get(s2);
17
+ const n2 = e2;
18
+ if (t2.has(n2)) return t2.get(n2);
19
19
  if (Array.isArray(e2)) {
20
- const n3 = [];
21
- return t2.set(s2, n3), e2.forEach((e3, s3) => {
22
- n3[s3] = p(e3, t2);
23
- }), n3;
20
+ const r3 = [];
21
+ return t2.set(n2, r3), e2.forEach((e3, n3) => {
22
+ r3[n3] = p(e3, t2);
23
+ }), r3;
24
24
  }
25
25
  if (e2 instanceof Date) return new Date(e2.getTime());
26
26
  if (e2 instanceof RegExp) return new RegExp(e2.source, e2.flags);
27
27
  if (e2 instanceof Map) {
28
- const n3 = /* @__PURE__ */ new Map();
29
- return t2.set(s2, n3), e2.forEach((e3, s3) => {
30
- n3.set(p(s3, t2), p(e3, t2));
31
- }), n3;
28
+ const r3 = /* @__PURE__ */ new Map();
29
+ return t2.set(n2, r3), e2.forEach((e3, n3) => {
30
+ r3.set(p(n3, t2), p(e3, t2));
31
+ }), r3;
32
32
  }
33
33
  if (e2 instanceof Set) {
34
- const n3 = /* @__PURE__ */ new Set();
35
- return t2.set(s2, n3), e2.forEach((e3) => {
36
- n3.add(p(e3, t2));
37
- }), n3;
34
+ const r3 = /* @__PURE__ */ new Set();
35
+ return t2.set(n2, r3), e2.forEach((e3) => {
36
+ r3.add(p(e3, t2));
37
+ }), r3;
38
38
  }
39
- const n2 = {};
40
- return t2.set(s2, n2), Object.keys(e2).forEach((s3) => {
41
- n2[s3] = p(e2[s3], t2);
42
- }), n2;
39
+ const r2 = {};
40
+ return t2.set(n2, r2), Object.keys(e2).forEach((n3) => {
41
+ r2[n3] = p(e2[n3], t2);
42
+ }), r2;
43
43
  }
44
- function g(e2, t2, s2) {
45
- const n2 = {};
44
+ function g(e2, t2, n2) {
45
+ const r2 = {};
46
46
  t2 || (t2 = {});
47
- let r2 = 0;
47
+ let s2 = 0;
48
48
  const i2 = e2.split(".");
49
49
  return i2.forEach((e3) => {
50
50
  let o2;
51
- if (r2 === i2.length - 1) o2 = function(e4, t3, s3) {
52
- let n3;
53
- for (let r3 = 0; r3 < t3.length; r3++) if (n3 = 0 === r3 ? e4[t3[r3]] : n3.fields[t3[r3]], r3 !== t3.length - 1) {
54
- if (t3[r3 + 1] === s3) break;
51
+ if (s2 === i2.length - 1) o2 = function(e4, t3, n3) {
52
+ let r3;
53
+ for (let s3 = 0; s3 < t3.length; s3++) if (r3 = 0 === s3 ? e4[t3[s3]] : r3.fields[t3[s3]], s3 !== t3.length - 1) {
54
+ if (t3[s3 + 1] === n3) break;
55
55
  }
56
- return n3;
57
- }(n2, i2, e3), o2.fields[e3] = s2;
56
+ return r3;
57
+ }(r2, i2, e3), o2.fields[e3] = n2;
58
58
  else {
59
- let s3;
60
- 0 === r2 ? o2 = t2 : (s3 = function(e4, t3, s4) {
61
- let n3;
62
- for (let r3 = 0; r3 < t3.length; r3++) {
63
- const i3 = t3[r3];
64
- if (n3 = 0 === r3 ? e4[i3] : n3.fields[t3[r3]], i3 === s4) break;
59
+ let n3;
60
+ 0 === s2 ? o2 = t2 : (n3 = function(e4, t3, n4) {
61
+ let r3;
62
+ for (let s3 = 0; s3 < t3.length; s3++) {
63
+ const i3 = t3[s3];
64
+ if (r3 = 0 === s3 ? e4[i3] : r3.fields[t3[s3]], i3 === n4) break;
65
65
  }
66
- return n3;
67
- }(n2, i2, i2[r2 - 1]), o2 = s3.fields), o2[e3] || (o2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? n2[e3] = o2[e3] : s3.fields[e3] = o2[e3];
66
+ return r3;
67
+ }(r2, i2, i2[s2 - 1]), o2 = n3.fields), o2[e3] || (o2[e3] = { type: "object", required: true, fields: {} }), 0 === s2 ? r2[e3] = o2[e3] : n3.fields[e3] = o2[e3];
68
68
  }
69
- r2++;
70
- }), n2;
69
+ s2++;
70
+ }), r2;
71
71
  }
72
- function h(e2, t2, s2, n2, r2, i2) {
73
- return y(e2, t2, s2, n2, true, r2, i2);
72
+ function b(e2, t2, n2, r2, s2, i2) {
73
+ return y(e2, t2, n2, r2, true, s2, i2);
74
74
  }
75
- function b(e2) {
75
+ function h(e2) {
76
76
  if (e2) return Object.keys(e2).forEach((t2) => {
77
77
  if (t2.indexOf(".") >= 0) {
78
- let s2 = [];
79
- s2 = t2.split("."), e2[s2[0]] ? e2[s2[0]].fields[s2[1]] = e2[t2][0] : (e2[s2[0]] = new Object(), e2[s2[0]].fields = new Object(), e2[s2[0]].fields[s2[1]] = e2[t2][0], e2[s2[0]].type = "object"), delete e2[t2];
78
+ let n2 = [];
79
+ n2 = t2.split("."), e2[n2[0]] ? e2[n2[0]].fields[n2[1]] = e2[t2][0] : (e2[n2[0]] = new Object(), e2[n2[0]].fields = new Object(), e2[n2[0]].fields[n2[1]] = e2[t2][0], e2[n2[0]].type = "object"), delete e2[t2];
80
80
  }
81
81
  }), e2;
82
82
  }
83
- function y(n2, r2, o2, l2, a2, u2, f2) {
83
+ function y(r2, s2, o2, l2, a2, u2, f2) {
84
84
  var _a;
85
- let d2 = b(r2);
86
- if (r2 && null !== r2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
85
+ let d2 = h(s2);
86
+ if (s2 && null !== s2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return r2.validateErrorField = "", true;
87
87
  const m2 = ((_a = f2.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
88
88
  let p2;
89
- return new e(d2).validate(n2, { first: !m2 }, (e2, g2) => {
89
+ return new e(d2).validate(r2, { first: !m2 }, (e2, g2) => {
90
90
  if (m2) {
91
91
  if (p2 = e2 || true, true === p2 && true === a2 && d2) {
92
92
  const e3 = /[A-Z]+/, t2 = Object.keys(d2);
93
- if (t2.some((t3) => e3.test(t3) && void 0 !== n2[t3.toLowerCase()])) {
94
- const s2 = JSON.parse(JSON.stringify(n2));
93
+ if (t2.some((t3) => e3.test(t3) && void 0 !== r2[t3.toLowerCase()])) {
94
+ const n2 = JSON.parse(JSON.stringify(r2));
95
95
  t2.forEach((t3) => {
96
- e3.test(t3) && void 0 !== n2[t3.toLowerCase()] && (s2[t3.toUpperCase()] = n2[t3.toLowerCase()], delete s2[t3.toLowerCase()]);
97
- }), p2 = y(s2, r2, o2, l2, false, u2, f2);
96
+ e3.test(t3) && void 0 !== r2[t3.toLowerCase()] && (n2[t3.toUpperCase()] = r2[t3.toLowerCase()], delete n2[t3.toLowerCase()]);
97
+ }), p2 = y(n2, s2, o2, l2, false, u2, f2);
98
98
  }
99
99
  }
100
100
  true !== p2 && t({ showClose: true, message: i().t("superPageRuntimeMessage.pleaseInputRequiredInfo"), type: "warning" });
@@ -102,9 +102,9 @@ function y(n2, r2, o2, l2, a2, u2, f2) {
102
102
  let i2;
103
103
  if (e2) {
104
104
  p2 = e2[0].message, i2 = e2[0].field, t({ message: p2, showClose: true, type: "warning", duration: 3e3 });
105
- const n3 = s(f2, i2);
106
- if (n3 && n3.addRequiredClass) {
107
- n3.addRequiredClass();
105
+ const r3 = n(f2, i2);
106
+ if (r3 && r3.addRequiredClass) {
107
+ r3.addRequiredClass();
108
108
  try {
109
109
  c(f2, i2);
110
110
  } catch (e3) {
@@ -112,83 +112,83 @@ function y(n2, r2, o2, l2, a2, u2, f2) {
112
112
  }
113
113
  } else p2 = true;
114
114
  if (i2 && true === a2) {
115
- if (/[A-Z]+/.test(i2) && void 0 !== n2[i2.toLowerCase()]) {
116
- const e3 = JSON.parse(JSON.stringify(n2));
117
- e3[i2.toUpperCase()] = n2[i2.toLowerCase()], delete e3[i2.toLowerCase()], p2 = y(e3, r2, o2, l2, false, u2, f2);
115
+ if (/[A-Z]+/.test(i2) && void 0 !== r2[i2.toLowerCase()]) {
116
+ const e3 = JSON.parse(JSON.stringify(r2));
117
+ e3[i2.toUpperCase()] = r2[i2.toLowerCase()], delete e3[i2.toLowerCase()], p2 = y(e3, s2, o2, l2, false, u2, f2);
118
118
  }
119
119
  }
120
120
  }
121
121
  }), p2;
122
122
  }
123
- function w(e2, n2, r2, l2) {
124
- if (r2) {
125
- if (J(r2.isStandard, r2.event)) return new Promise((e3, t2) => {
123
+ function w(e2, r2, s2, l2) {
124
+ if (s2) {
125
+ if (J(s2.isStandard, s2.event)) return new Promise((e3, t2) => {
126
126
  e3(true);
127
127
  });
128
128
  }
129
- const f2 = e2.entity.data, c2 = { ...e2.entity.page, ...f2 }, d2 = e2.rules, m2 = n2.props.base ? n2.props.base.isEnableRequired : null;
130
- return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3, n3, r3, l3) {
129
+ const f2 = e2.entity.data, c2 = { ...e2.entity.page, ...f2 }, d2 = e2.rules, m2 = r2.props.base ? r2.props.base.isEnableRequired : null;
130
+ return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3, r3, s3, l3) {
131
131
  if (e3) {
132
- return u(l3) ? function(e4, n4, r4) {
132
+ return u(l3) ? function(e4, r4, s4) {
133
133
  return new Promise((l4, u2) => {
134
134
  var _a;
135
- const f3 = o(n4), c3 = n4.entity.context, d3 = n4.entity.task, m3 = true, g2 = n4.subTablePageInfo, h2 = ((_a = n4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
136
- x(e4, n4, r4).then((r5) => {
137
- if (r5) {
138
- let o2 = r5;
139
- const u3 = n4.workflowRules;
140
- let b2 = null, y2 = null;
135
+ const f3 = o(r4), c3 = r4.entity.context, d3 = r4.entity.task, m3 = true, g2 = r4.subTablePageInfo, b2 = ((_a = r4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
136
+ N(e4, r4, s4).then((s5) => {
137
+ if (s5) {
138
+ let o2 = s5;
139
+ const u3 = r4.workflowRules;
140
+ let h2 = null, y2 = null;
141
141
  if (u3) {
142
- if (!function(e5, n5) {
142
+ if (!function(e5, r5) {
143
143
  var _a2, _b, _c, _d;
144
144
  if (!e5.actionPermissions) return true;
145
- const r7 = Object.keys(e5.actionPermissions);
146
- for (let o3 = 0; o3 < r7.length; o3++) {
147
- const l5 = r7[o3], u4 = e5.actionPermissions[l5];
145
+ const s7 = Object.keys(e5.actionPermissions);
146
+ for (let o3 = 0; o3 < s7.length; o3++) {
147
+ const l5 = s7[o3], u4 = e5.actionPermissions[l5];
148
148
  if (u4 && u4.notEmpty) {
149
149
  if ((_a2 = e5.hiddenNotValidatorCodes) == null ? void 0 : _a2.has(l5)) continue;
150
- let r8 = false;
151
- if (n5[l5] ? Array.isArray(n5[l5]) && 0 === n5[l5].length && (r8 = true) : r8 = true, r8) {
152
- const r9 = s(e5, l5);
153
- if (!r9) return true;
154
- const o4 = r9.getConfigure();
150
+ let s8 = false;
151
+ if (r5[l5] ? Array.isArray(r5[l5]) && 0 === r5[l5].length && (s8 = true) : s8 = true, s8) {
152
+ const s9 = n(e5, l5);
153
+ if (!s9) return true;
154
+ const o4 = s9.getConfigure();
155
155
  if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
156
- if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
156
+ if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, r5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
157
157
  }
158
158
  return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: o4.title ? o4.title : l5 }), type: "warning" }), false;
159
159
  }
160
160
  }
161
161
  }
162
162
  return true;
163
- }(n4, e4)) return void l4(false);
164
- const r6 = true;
165
- b2 = function(e5, t2) {
166
- const s2 = p(e5);
163
+ }(r4, e4)) return void l4(false);
164
+ const s6 = true;
165
+ h2 = function(e5, t2) {
166
+ const n2 = p(e5);
167
167
  t2 && t2.size > 0 && t2.forEach((e6) => {
168
- delete s2[e6], s2.subRules && delete s2.subRules[e6], s2.rules && delete s2.rules[e6];
168
+ delete n2[e6], n2.subRules && delete n2.subRules[e6], n2.rules && delete n2.rules[e6];
169
169
  });
170
- s2.subRules && (Object.keys(s2.subRules).length > 0 ? s2.totalSubRules || (s2.totalSubRules = {}) : delete s2.subRules);
171
- return s2;
172
- }(u3, n4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, b2, m3, f3, d3, c3, g2, r6, { returnAllErrors: h2 }), o2 = y2 && Array.isArray(y2) ? 1 === y2.length && y2[0].message ? y2[0].message : 0 === y2.length || i().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
170
+ n2.subRules && (Object.keys(n2.subRules).length > 0 ? n2.totalSubRules || (n2.totalSubRules = {}) : delete n2.subRules);
171
+ return n2;
172
+ }(u3, r4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, h2, m3, f3, d3, c3, g2, s6, { returnAllErrors: b2 }), o2 = y2 && Array.isArray(y2) ? 1 === y2.length && y2[0].message ? y2[0].message : 0 === y2.length || i().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
173
173
  } else o2 = true;
174
- true !== o2 ? (t({ showClose: true, message: o2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (C(n4, y2), k(n4, P(n4, y2))) : y2.listCode ? (R(n4, y2), E(n4, y2)) : (R(n4, y2), v(n4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
174
+ true !== o2 ? (t({ showClose: true, message: o2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (v(r4, y2), k(r4, P(r4, y2))) : y2.listCode ? (R(r4, y2), C(r4, y2)) : (R(r4, y2), E(r4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
175
175
  } else u2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
176
176
  }).catch((e5) => {
177
177
  u2(e5);
178
178
  });
179
179
  });
180
- }(n3, l3, r3) : function(e4, t2, s2) {
181
- return new Promise((n4, r4) => {
182
- x(e4, t2, s2).then((t3) => {
180
+ }(r3, l3, s3) : function(e4, t2, n2) {
181
+ return new Promise((r4, s4) => {
182
+ N(e4, t2, n2).then((t3) => {
183
183
  if (t3) {
184
184
  const t4 = JSON.parse(JSON.stringify(e4));
185
- Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n4(t4);
186
- } else n4(false);
185
+ Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, r4(t4);
186
+ } else r4(false);
187
187
  }).catch((e5) => {
188
- r4(e5);
188
+ s4(e5);
189
189
  });
190
190
  });
191
- }(n3, l3, r3);
191
+ }(r3, l3, s3);
192
192
  }
193
193
  return new Promise((e4, t2) => {
194
194
  e4(true);
@@ -197,124 +197,124 @@ function w(e2, n2, r2, l2) {
197
197
  }
198
198
  function R(e2, t2) {
199
199
  if (t2.listCode) {
200
- const n2 = s(e2, t2.listCode);
201
- (n2 == null ? void 0 : n2.addRequiredClass) && n2.addRequiredClass(t2.field, t2.rowIndex, t2.pageNum);
200
+ const r2 = n(e2, t2.listCode);
201
+ (r2 == null ? void 0 : r2.addRequiredClass) && r2.addRequiredClass(t2.field, t2.rowIndex, t2.pageNum);
202
202
  } else if (t2.field) {
203
- const n2 = s(e2, t2.field);
204
- (n2 == null ? void 0 : n2.addRequiredClass) && n2.addRequiredClass();
203
+ const r2 = n(e2, t2.field);
204
+ (r2 == null ? void 0 : r2.addRequiredClass) && r2.addRequiredClass();
205
205
  }
206
206
  }
207
- function C(e2, t2) {
207
+ function v(e2, t2) {
208
208
  t2.forEach((t3) => R(e2, t3));
209
209
  }
210
- function E(e2, t2) {
210
+ function C(e2, t2) {
211
211
  try {
212
212
  c(e2, t2.listCode);
213
- const n2 = s(e2, t2.listCode);
214
- (n2 == null ? void 0 : n2.scrollToCell) && n2.scrollToCell({ fieldName: t2.field, rowIndex: t2.rowIndex, pageNum: t2.pageNum });
213
+ const r2 = n(e2, t2.listCode);
214
+ (r2 == null ? void 0 : r2.scrollToCell) && r2.scrollToCell({ fieldName: t2.field, rowIndex: t2.rowIndex, pageNum: t2.pageNum });
215
215
  } catch (e3) {
216
216
  }
217
217
  }
218
- function v(e2, t2) {
218
+ function E(e2, t2) {
219
219
  try {
220
220
  c(e2, t2);
221
221
  } catch (e3) {
222
222
  }
223
223
  }
224
224
  function P(e2, t2) {
225
- let n2 = null, r2 = 1 / 0;
225
+ let r2 = null, s2 = 1 / 0;
226
226
  return t2.forEach((t3) => {
227
227
  const i2 = t3.listCode || t3.field;
228
228
  if (!i2) return;
229
- const o2 = s(e2, i2), l2 = (o2 == null ? void 0 : o2.$el) || o2;
229
+ const o2 = n(e2, i2), l2 = (o2 == null ? void 0 : o2.$el) || o2;
230
230
  if (l2 == null ? void 0 : l2.getBoundingClientRect) {
231
231
  const e3 = l2.getBoundingClientRect();
232
- e3.top < r2 && (r2 = e3.top, n2 = t3);
232
+ e3.top < s2 && (s2 = e3.top, r2 = t3);
233
233
  }
234
- }), n2;
234
+ }), r2;
235
235
  }
236
236
  function k(e2, t2) {
237
- t2 && (t2.listCode ? E(e2, t2) : t2.field && v(e2, t2.field));
237
+ t2 && (t2.listCode ? C(e2, t2) : t2.field && E(e2, t2.field));
238
238
  }
239
239
  function O(e2) {
240
- return new Promise((t2, s2) => {
241
- const r2 = [], i2 = e2.customValidatorUuids;
240
+ return new Promise((t2, n2) => {
241
+ const s2 = [], i2 = e2.customValidatorUuids;
242
242
  i2 && i2.forEach((t3) => {
243
- const s3 = n(e2, t3);
244
- s3 && s3.validator && r2.push(s3.validator());
245
- }), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
243
+ const n3 = r(e2, t3);
244
+ n3 && n3.validator && s2.push(n3.validator());
245
+ }), s2 && s2.length > 0 ? Promise.all(s2).then((e3) => {
246
246
  e3.includes(false) ? t2(false) : t2(true);
247
247
  }) : t2(true);
248
248
  });
249
249
  }
250
- function x(e2, t2, s2) {
251
- return new Promise((n2, r2) => {
250
+ function N(e2, t2, n2) {
251
+ return new Promise((r2, s2) => {
252
252
  var _a;
253
- const o2 = JSON.parse(JSON.stringify(e2)), a2 = p(s2), u2 = t2.hiddenNotValidatorCodes;
253
+ const o2 = JSON.parse(JSON.stringify(e2)), a2 = p(n2), u2 = t2.hiddenNotValidatorCodes;
254
254
  if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
255
255
  delete a2[e3];
256
256
  }), a2 && 0 !== Object.keys(a2).length) {
257
- const e3 = h(o2, a2, null, null, true, t2);
258
- if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (C(t2, e3), k(t2, P(t2, e3)), n2(false)), true === e3) {
259
- if (true === T(t2)) {
257
+ const e3 = b(o2, a2, null, null, true, t2);
258
+ if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (v(t2, e3), k(t2, P(t2, e3)), r2(false)), true === e3) {
259
+ if (true === x(t2)) {
260
260
  const e4 = q(t2);
261
261
  e4 && l(e4) ? e4.then((e5) => {
262
262
  e5 ? O(t2).then((e6) => {
263
- n2(e6);
264
- }) : n2(false);
263
+ r2(e6);
264
+ }) : r2(false);
265
265
  }) : O(t2).then((e5) => {
266
- n2(e5);
266
+ r2(e5);
267
267
  });
268
- } else r2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
269
- } else r2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
268
+ } else s2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
269
+ } else s2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
270
270
  } else {
271
- if (true === T(t2)) {
271
+ if (true === x(t2)) {
272
272
  const e3 = q(t2);
273
273
  e3 && l(e3) ? e3.then((e4) => {
274
274
  e4 ? O(t2).then((e5) => {
275
- n2(e5);
276
- }) : n2(false);
275
+ r2(e5);
276
+ }) : r2(false);
277
277
  }) : O(t2).then((e4) => {
278
- n2(e4);
278
+ r2(e4);
279
279
  });
280
- } else r2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
280
+ } else s2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
281
281
  }
282
282
  });
283
283
  }
284
- function M(e2, t2, s2) {
285
- if (!t2) return s2;
286
- s2 || (s2 = {});
287
- const n2 = u(e2), r2 = Object.keys(t2), i2 = t2;
288
- return r2.forEach((e3) => {
284
+ function j(e2, t2, n2) {
285
+ if (!t2) return n2;
286
+ n2 || (n2 = {});
287
+ const r2 = u(e2), s2 = Object.keys(t2), i2 = t2;
288
+ return s2.forEach((e3) => {
289
289
  if ("__subRules" === e3) {
290
290
  const e4 = i2.__subRules;
291
291
  Object.keys(e4).forEach((t3) => {
292
- s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
292
+ n2.subRules || (n2.subRules = {}), n2.subRules[t3] ? Object.assign(n2.subRules[t3], e4[t3]) : n2.subRules[t3] = e4[t3];
293
293
  });
294
- } else _(i2[e3]), n2 ? (s2.rules[e3] = i2[e3], s2[e3] && (s2[e3] = i2[e3])) : s2[e3] = i2[e3];
295
- }), b(s2);
294
+ } else _(i2[e3]), r2 ? (n2.rules[e3] = i2[e3], n2[e3] && (n2[e3] = i2[e3])) : n2[e3] = i2[e3];
295
+ }), h(n2);
296
296
  }
297
- function T(e2) {
297
+ function x(e2) {
298
298
  var _a;
299
299
  if (!e2) return true;
300
300
  if (u(e2)) return true;
301
- const s2 = e2.tableUuids;
302
- if (!s2) return true;
303
- for (let r2 = 0; r2 < s2.length; r2++) {
304
- const o2 = s2[r2], l2 = e2.hiddenNotValidatorCodes;
301
+ const n2 = e2.tableUuids;
302
+ if (!n2) return true;
303
+ for (let s2 = 0; s2 < n2.length; s2++) {
304
+ const o2 = n2[s2], l2 = e2.hiddenNotValidatorCodes;
305
305
  if (l2 && l2.size > 0 && l2.has(o2)) continue;
306
- const a2 = n(e2, o2);
306
+ const a2 = r(e2, o2);
307
307
  if (a2) {
308
308
  if (a2.getConfigure()) {
309
- const s3 = a2.getConfigure();
310
- if ((_a = s3 == null ? void 0 : s3.verification) == null ? void 0 : _a.notEmpty) {
311
- const n2 = a2.getTableData();
312
- if (!n2 || !Array.isArray(n2) || 0 === n2.length) {
309
+ const n3 = a2.getConfigure();
310
+ if ((_a = n3 == null ? void 0 : n3.verification) == null ? void 0 : _a.notEmpty) {
311
+ const r2 = a2.getTableData();
312
+ if (!r2 || !Array.isArray(r2) || 0 === r2.length) {
313
313
  try {
314
314
  d(e2, o2);
315
315
  } catch (e3) {
316
316
  }
317
- return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: s3.title ? s3.title : s3.code }), type: "warning" }), false;
317
+ return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: n3.title ? n3.title : n3.code }), type: "warning" }), false;
318
318
  }
319
319
  }
320
320
  }
@@ -329,43 +329,43 @@ function T(e2) {
329
329
  }
330
330
  return true;
331
331
  }
332
- function j(e2) {
332
+ function M(e2) {
333
333
  if (!e2 || 0 === Object.keys(e2).length) return;
334
- const t2 = {}, s2 = Object.keys(e2);
335
- for (let n2 = 0; n2 < s2.length; n2++) {
336
- const r2 = s2[n2], i2 = e2[r2];
337
- N(i2), r2.indexOf(".") > 0 ? g(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
334
+ const t2 = {}, n2 = Object.keys(e2);
335
+ for (let r2 = 0; r2 < n2.length; r2++) {
336
+ const s2 = n2[r2], i2 = e2[s2];
337
+ T(i2), s2.indexOf(".") > 0 ? g(s2, t2, i2) : i2 && i2.length > 0 && (t2[s2] = [...i2]);
338
338
  }
339
339
  return t2;
340
340
  }
341
- function N(e2, t2) {
341
+ function T(e2, t2) {
342
342
  e2.forEach((e3) => {
343
343
  e3.message;
344
- const t3 = e3.label, s2 = i().t(t3);
345
- e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
344
+ const t3 = e3.label, n2 = i().t(t3);
345
+ e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: n2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: n2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: n2, value: e3.min }));
346
346
  });
347
347
  }
348
348
  function A(e2) {
349
- const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = o(e2), r2 = e2.entity.context, i2 = e2.entity.task;
349
+ const t2 = e2.entity.data, n2 = { ...e2.entity.page, ...t2 }, r2 = o(e2), s2 = e2.entity.context, i2 = e2.entity.task;
350
350
  e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
351
351
  t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
352
352
  });
353
- let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, i2, r2);
353
+ let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, n2, true, r2, i2, s2);
354
354
  const a2 = e2.customRules;
355
- return l2 = M(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
355
+ return l2 = j(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
356
356
  }
357
357
  function q(e2) {
358
358
  const t2 = [];
359
- return e2.customRuleEvents && e2.customRuleEvents.length > 0 && e2.customRuleEvents.forEach((s2) => {
360
- s2.events.forEach((n2) => {
361
- const r2 = e2.customEvents[n2];
362
- t2.push(r2.apply(r2, [{ prop: s2.prop, pageContext: e2 }]));
359
+ return e2.customRuleEvents && e2.customRuleEvents.length > 0 && e2.customRuleEvents.forEach((n2) => {
360
+ n2.events.forEach((r2) => {
361
+ const s2 = e2.customEvents[r2];
362
+ t2.push(s2.apply(s2, [{ prop: n2.prop, pageContext: e2 }]));
363
363
  });
364
- }), t2 && t2.length > 0 ? new Promise((e3, s2) => {
365
- const n2 = [], r2 = [];
364
+ }), t2 && t2.length > 0 ? new Promise((e3, n2) => {
365
+ const r2 = [], s2 = [];
366
366
  t2.forEach((e4) => {
367
- l(e4) ? n2.push(e4) : r2.push(e4);
368
- }), r2.includes(false) && e3(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
367
+ l(e4) ? r2.push(e4) : s2.push(e4);
368
+ }), s2.includes(false) && e3(false), r2.length > 0 ? Promise.all(r2).then((t3) => {
369
369
  t3.includes(false) ? e3(false) : e3(true);
370
370
  }).catch((t3) => {
371
371
  e3(false);
@@ -374,22 +374,22 @@ function q(e2) {
374
374
  }
375
375
  function S(e2, t2) {
376
376
  if (!t2) return;
377
- const n2 = {};
377
+ const r2 = {};
378
378
  if (t2.forEach((e3) => {
379
- const { name: t3, rules: s2 } = e3;
380
- s2 ? n2[t3] = s2 : false === e3.required && (n2[t3] = []);
379
+ const { name: t3, rules: n2 } = e3;
380
+ n2 ? r2[t3] = n2 : false === e3.required && (r2[t3] = []);
381
381
  }), u(e2)) {
382
382
  let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
383
- t3 = M(e2, n2, t3), e2.workflowRules = t3;
383
+ t3 = j(e2, r2, t3), e2.workflowRules = t3;
384
384
  } else {
385
385
  let t3 = e2.rules ? e2.rules : {};
386
- t3 = M(e2, n2, t3), e2.rules = t3;
386
+ t3 = j(e2, r2, t3), e2.rules = t3;
387
387
  }
388
- const r2 = t2.filter((e3) => "_all_fields" === e3.name);
389
- r2 && r2.length > 0 && L(e2, r2[0]), t2.forEach((t3) => {
388
+ const s2 = t2.filter((e3) => "_all_fields" === e3.name);
389
+ s2 && s2.length > 0 && L(e2, s2[0]), t2.forEach((t3) => {
390
390
  if ("_all_fields" !== t3.name) {
391
- const n3 = s(e2, t3.name);
392
- D(e2, n3, t3);
391
+ const r3 = n(e2, t3.name);
392
+ D(e2, r3, t3);
393
393
  }
394
394
  });
395
395
  }
@@ -397,50 +397,72 @@ function F(e2) {
397
397
  L(e2, { disabled: true });
398
398
  }
399
399
  function L(e2, t2) {
400
- const s2 = r(e2);
401
- if (s2) for (const n2 in s2) {
402
- const r2 = s2[n2];
403
- D(e2, r2 ? r2.value : r2, t2);
400
+ const n2 = s(e2);
401
+ if (n2) for (const r2 in n2) {
402
+ const s2 = n2[r2];
403
+ D(e2, s2 ? s2.value : s2, t2);
404
404
  }
405
405
  }
406
- function V(e2, t2, r2) {
406
+ function V(e2, t2, s2) {
407
407
  var _a;
408
408
  let i2, o2;
409
- if (r2 ? (i2 = s(e2, r2), o2 = i2 ? i2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = o2 ? n(e2, o2) : null), !i2) return;
409
+ if (s2 ? (i2 = n(e2, s2), o2 = i2 ? i2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = o2 ? r(e2, o2) : null), !i2) return;
410
410
  const l2 = e2.code, a2 = e2.version, u2 = f(l2, a2, o2);
411
- if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[r2] || (e2.workflowRules.subRules[r2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
412
- const s2 = e2.workflowRules.subRules[r2];
411
+ if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[s2] || (e2.workflowRules.subRules[s2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[s2]) {
412
+ const n2 = e2.workflowRules.subRules[s2];
413
413
  t2.forEach((e3) => {
414
- s2[e3.name] = e3;
414
+ n2[e3.name] = e3;
415
415
  });
416
416
  }
417
417
  i2.dynamicControlTableEdit(e2, t2, u2);
418
418
  }
419
- function D(e2, t2, s2) {
419
+ function D(e2, t2, n2) {
420
420
  var _a, _b, _c;
421
421
  if (t2) {
422
- const n2 = t2.getConfigure();
423
- if (void 0 !== s2.show && (s2.show ? t2.show() : t2.hide()), void 0 !== s2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = s2.required), void 0 !== s2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (s2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== s2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (s2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name)) {
422
+ const r2 = t2.getConfigure();
423
+ if (void 0 !== n2.show && (n2.show ? t2.show() : t2.hide()), void 0 !== n2.required && ((_a = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _a.props) && (r2.runtime.props.required = n2.required), void 0 !== n2.readonly && ((_b = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _b.props) && (n2.readonly ? r2.runtime.props.state = "readonly" : r2.runtime.props.state = "enabled"), void 0 !== n2.disabled && r2 && (((_c = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _c.props) && (n2.disabled ? r2.runtime.props.state = "disabled" : r2.runtime.props.state = "enabled"), "table" === r2.name)) {
424
424
  t2.changeOperationAddState(false);
425
- const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version, i2 = f(n3, r2, s3), o2 = [{ name: "_all_fields", disabled: true }];
425
+ const n3 = t2 ? t2.getTableUuid() : null, r3 = e2.code, s2 = e2.version, i2 = f(r3, s2, n3), o2 = [{ name: "_all_fields", disabled: true }];
426
426
  t2.dynamicControlTableEdit(e2, o2, i2);
427
427
  }
428
428
  }
429
429
  }
430
- function _(e2) {
431
- if (!(e2 == null ? void 0 : e2.type)) return;
432
- const t2 = U[e2.type];
433
- t2 && (e2.validator = t2.validator);
430
+ function _(t2) {
431
+ if ((t2 == null ? void 0 : t2.pattern) && "object" == typeof t2.pattern && 0 === Object.keys(t2.pattern).length && delete t2.pattern, !t2) return;
432
+ if (!t2.type) return void function(t3) {
433
+ var _a;
434
+ const n3 = (_a = e.validators) == null ? void 0 : _a.string;
435
+ if ("function" != typeof n3) return;
436
+ t3.validator = function(e2, t4, r2, s2, i2) {
437
+ if (null == t4 || "string" == typeof t4) return n3(e2, t4, r2, s2, i2);
438
+ if (Array.isArray(t4) && 0 === t4.length) return !e2.required;
439
+ const o2 = e2.type;
440
+ e2.type = void 0;
441
+ const l2 = n3(e2, t4, r2, s2, i2);
442
+ return e2.type = o2, l2;
443
+ };
444
+ }(t2);
445
+ const n2 = I[t2.type];
446
+ n2 && (t2.validator = n2.validator);
434
447
  }
435
- const U = { boolean: { validator: function(e2, t2, s2) {
436
- return true === I(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
437
- } }, date: { validator: function(e2, t2, s2) {
438
- if (true !== I(e2, t2)) return false;
439
- const n2 = new Date(t2);
440
- return !isNaN(n2.getTime());
441
- } }, number: { validator: function(e2, t2, s2) {
442
- return true === I(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
443
- } } }, I = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
448
+ const I = { boolean: { validator: function(e2, t2, n2) {
449
+ return true === U(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
450
+ } }, date: { validator: function(e2, t2, n2) {
451
+ if (true !== U(e2, t2)) return false;
452
+ const r2 = new Date(t2);
453
+ return !isNaN(r2.getTime());
454
+ } }, number: { validator: function(e2, t2, n2) {
455
+ return true === U(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
456
+ } }, float: { validator: function(e2, t2, n2) {
457
+ return true === U(e2, t2) && function(e3) {
458
+ if ("number" == typeof e3) return !isNaN(e3);
459
+ if ("string" == typeof e3 && "" !== e3.trim()) return !isNaN(Number(e3));
460
+ return false;
461
+ }(t2);
462
+ } }, integer: { validator: function(e2, t2, n2) {
463
+ return true === U(e2, t2) && ("number" == typeof t2 ? Number.isInteger(t2) : "string" == typeof t2 && "" !== t2.trim() && /^-?\d+$/.test(t2.trim()));
464
+ } } };
465
+ const U = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
444
466
  function J(e2, t2) {
445
467
  return e2 && m.includes(t2.eventName);
446
468
  }
@@ -448,13 +470,13 @@ export {
448
470
  F as disabledAllFields,
449
471
  V as dynamicControlTableEdit,
450
472
  A as getWorkflowRules,
451
- N as i18nValidatePropRulesMessage,
452
- j as i18nValidateRulesMessage,
473
+ T as i18nValidatePropRulesMessage,
474
+ M as i18nValidateRulesMessage,
453
475
  J as isNotNeedValidateRequired,
454
- M as packageCustomRules,
476
+ j as packageCustomRules,
455
477
  _ as packageCustomValidator,
456
478
  g as setObjectPropRule,
457
479
  S as updateFormItemEditState,
458
480
  w as validateDataModelFunc,
459
- h as validator
481
+ b as validator
460
482
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as e, ref as l, computed as n, onMounted as t, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createCommentVNode as y, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as k, Fragment as T } from "vue";
2
- import { SuperIcon as I } from "agilebuilder-ui";
1
+ import { defineComponent as e, ref as l, computed as t, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as m, createVNode as y, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
2
+ import { SuperIcon as k } from "agilebuilder-ui";
3
3
  import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
4
4
  import { getModelFieldFromPageContext as w, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
- import { handleFormEvent as j, handleAfterInitEvent as P, doSuffixOrPrefixClickEvent as S } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as R, analysisScanValue as L, setScanAnalysisValue as O } from "../../../../utils/form/scan-util.js";
7
- import q from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as D, isDingTalkEnv as M } from "agilebuilder-ui/src/utils/common-util";
9
- import N from "../../../../utils/eventBus.js";
10
- import { $t as z } from "../../../../utils/i18n-util.js";
11
- import { addRequiredClassUtil as J } from "../../../../utils/common-util.js";
5
+ import { handleFormEvent as j, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
6
+ import { formatScanRuleSets as O, analysisScanValue as P, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
7
+ import D from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as M, isDingTalkEnv as N } from "agilebuilder-ui/src/utils/common-util";
9
+ import z from "../../../../utils/eventBus.js";
10
+ import { $t as J } from "../../../../utils/i18n-util.js";
11
+ import { addRequiredClassUtil as L } from "../../../../utils/common-util.js";
12
12
  const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
13
  var _a, _b, _c;
14
14
  const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = l("text");
@@ -17,64 +17,62 @@ const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
17
17
  const e3 = w(E, F.pageContext);
18
18
  e3 && (A.value = h(e3.dataType) ? "number" : "text");
19
19
  }
20
- const H = l(D()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = n({ get: () => _($, E), set(e3) {
20
+ const H = l(M()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
21
21
  b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
22
- } }), Q = l(null), X = l(null), Y = l(null);
23
- F.configure.props.suffixLinkPage && !F.configure.props.linkPage && (F.configure.props.linkPage = F.configure.props.suffixLinkPage);
24
- const Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
25
- let ne = false;
26
- M() && (ne = true);
27
- let te = "";
28
- te = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
29
- const oe = !(!H.value || !te || "app" !== te), ae = l(!!((oe || ne) && le.value || H.value && le.value && "https:" === window.location.protocol));
22
+ } }), Q = l(null), X = l(null), Y = l(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
23
+ let te = false;
24
+ N() && (te = true);
25
+ let ne = "";
26
+ ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
27
+ const oe = !(!H.value || !ne || "app" !== ne), ae = l(!!((oe || te) && le.value || H.value && le.value && "https:" === window.location.protocol));
30
28
  let ue = {};
31
- ((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(ee.value.scan.ruleList).then((e3) => {
29
+ ((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(ee.value.scan.ruleList).then((e3) => {
32
30
  ue = e3;
33
31
  }), u(() => K.value, (e3) => {
34
32
  e3 = e3.trim();
35
- const l2 = L(e3, ue);
36
- l2 && O(F.pageContext, l2.scanSet, l2.params);
33
+ const l2 = P(e3, ue);
34
+ l2 && q(F.pageContext, l2.scanSet, l2.params);
37
35
  }));
38
36
  const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
39
37
  function ce(e3) {
40
38
  return b($, E, e3);
41
39
  }
42
- t(() => {
43
- N.$on(W.value + "-scanDone", (e3) => {
40
+ n(() => {
41
+ z.$on(W.value + "-scanDone", (e3) => {
44
42
  ce(e3.result), j(e3.result, F.pageContext, F.configure, "afterScanDone");
45
43
  }), o(() => {
46
44
  var _a2;
47
45
  const e3 = K.value;
48
- P(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
46
+ S(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
49
47
  });
50
48
  }), a(() => {
51
- N.$off(W.value + "-scanDone");
49
+ z.$off(W.value + "-scanDone");
52
50
  });
53
- const fe = l(false);
54
- function ve() {
55
- if (oe || ne) {
51
+ const ve = l(false);
52
+ function fe() {
53
+ if (oe || te) {
56
54
  const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
57
- ne && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
58
- } else if (H.value) if ("https:" === window.location.protocol) fe.value = true;
55
+ te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
56
+ } else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
59
57
  else {
60
58
  const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
61
59
  window.parent.postMessage(JSON.stringify(e3), "*");
62
60
  }
63
- else fe.value = true;
61
+ else ve.value = true;
64
62
  }
65
- function ge(e3) {
66
- fe.value = false, ce(e3);
63
+ function me(e3) {
64
+ ve.value = false, ce(e3);
67
65
  }
68
66
  return B2({ getValue: function() {
69
67
  return _($, E);
70
- }, setValue: ce, scanClick: ve, addRequiredClass: function() {
71
- G.value = J();
68
+ }, setValue: ce, scanClick: fe, addRequiredClass: function() {
69
+ G.value = L();
72
70
  } }), (e3, l2) => {
73
- const n2 = i("el-input"), t2 = i("scan-code-input-browser"), o2 = i("el-form-item");
74
- return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(f(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(f(ie)) }, v({ default: g(() => [m(n2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => K.value = e4), onInput: l2[6] || (l2[6] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
71
+ const t2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
72
+ return s(), r(o2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(ie)) }, f({ default: m(() => [y(t2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => K.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (e4) => function(e5) {
75
73
  let l3 = _($, E);
76
74
  null != l3 && (l3 = l3.trim()), b($, E, l3), j(e5, F.pageContext, F.configure, "blur");
77
- }(e4)), onFocus: l2[9] || (l2[9] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => f(j)(l3, e3.pageContext, e3.configure, "clear")) }, v({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: g(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: g(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: g(() => [ae.value ? (s(), r(f(I), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => ve()) })) : y("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(f(I), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => f(S)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(z)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(t2, { key: 0, onClose: ge, onCancel: l2[12] || (l2[12] = (e4) => fe.value = false) })) : y("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...f(se), ...f(pe) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), k(T, { key: 1 }, [d(x(f(z)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
75
+ }(e4)), onFocus: l2[9] || (l2[9] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "click")), onClear: l2[11] || (l2[11] = (l3) => v(j)(l3, e3.pageContext, e3.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: m(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: m(() => [ae.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => fe()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(R)(K.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(n2, { key: 0, onClose: me, onCancel: l2[12] || (l2[12] = (e4) => ve.value = false) })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: m(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(se), ...v(pe) }) }, [ee.value.prefixType ? (s(), r(D, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(J)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
78
76
  };
79
77
  } });
80
78
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.3.46-sit2",
3
+ "version": "2.3.47-sit1",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -49,7 +49,7 @@
49
49
  "@vitejs/plugin-vue-jsx": "^3.1.0",
50
50
  "@vue/eslint-config-prettier": "^8.0.0",
51
51
  "@vue/test-utils": "^2.4.4",
52
- "agilebuilder-ui": "1.2.2-sit3",
52
+ "agilebuilder-ui": "1.2.6-sit2",
53
53
  "axios": "^1.6.8",
54
54
  "cypress": "^13.6.6",
55
55
  "element-plus": "^2.6.1",