super-page-runtime 2.2.91 → 2.2.92

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.
@@ -2,7 +2,7 @@ import t from "../../../../assets/chart-themes/theme1.js";
2
2
  import e from "../../../../assets/chart-themes/theme2.js";
3
3
  import n from "../../../../assets/chart-themes/theme3.js";
4
4
  import { getDefaultValue as i } from "../page-init-util.js";
5
- import { getValueFromSource as s, setValueForVariableName as o, getParamNames as r, formatVariableValue as l, getValueFromVariable as a, setVariableValue as c } from "../page-helper-util.js";
5
+ import { getValueFromSource as s, setValueForVariableName as o, getParamNames as r, formatVariableValue as a, getValueFromVariable as l, setVariableValue as c } from "../page-helper-util.js";
6
6
  import { appendDefaultMethods as f } from "../events/event-util.js";
7
7
  var u = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(u || {});
8
8
  const d = { theme1: t, theme2: e, theme3: n };
@@ -22,10 +22,10 @@ function m(t2, e2, n2, i2, s2) {
22
22
  let t3 = parseInt(e2);
23
23
  (null == t3 || isNaN(t3)) && (t3 = 2), r2 = parseFloat(parseFloat(r2).toFixed(t3));
24
24
  }
25
- let l2 = "";
26
- t2.indexOf("prefix") > -1 && n2 && (l2 = n2);
27
25
  let a2 = "";
28
- return t2.indexOf("append") > -1 && i2 && (a2 = i2), l2 + r2.toLocaleString() + a2;
26
+ t2.indexOf("prefix") > -1 && n2 && (a2 = n2);
27
+ let l2 = "";
28
+ return t2.indexOf("append") > -1 && i2 && (l2 = i2), a2 + r2.toLocaleString() + l2;
29
29
  };
30
30
  }
31
31
  function g(t2, e2) {
@@ -54,15 +54,15 @@ function x(t2, e2, n2) {
54
54
  let o2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = -1;
55
55
  if (o2) {
56
56
  const t3 = [];
57
- for (let l2 = 0; l2 < o2.length; l2++) {
58
- const a2 = o2[l2], c2 = a2.seriesIndex === s2.seriesIndex && a2.dataIndex === s2.dataIndex;
57
+ for (let a2 = 0; a2 < o2.length; a2++) {
58
+ const l2 = o2[a2], c2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
59
59
  if (c2 || !i2.multiple) {
60
60
  if (i2.selected) {
61
61
  const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
62
- n2.dispatchAction({ type: t4, seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
62
+ n2.dispatchAction({ type: t4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
63
63
  }
64
- } else t3.push(a2);
65
- c2 && (r2 = l2);
64
+ } else t3.push(l2);
65
+ c2 && (r2 = a2);
66
66
  }
67
67
  o2 = t3;
68
68
  }
@@ -89,12 +89,12 @@ function b(t2, e2) {
89
89
  if (!e2.clickSet) return;
90
90
  const n2 = e2.clickSet, i2 = n2.variables;
91
91
  if (!i2 || 0 == i2.length) return;
92
- const r2 = e2.highlightInfos ? e2.highlightInfos : [], l2 = e2.cacheDatas ? e2.cacheDatas : [], a2 = [], c2 = [];
93
- for (const t3 of r2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < l2.length && a2.push(l2[t3.dataIndex]));
92
+ const r2 = e2.highlightInfos ? e2.highlightInfos : [], a2 = e2.cacheDatas ? e2.cacheDatas : [], l2 = [], c2 = [];
93
+ for (const t3 of r2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < a2.length && l2.push(a2[t3.dataIndex]));
94
94
  for (const e3 of i2) {
95
95
  if (!e3.fieldName || !e3.variable) continue;
96
96
  const i3 = [];
97
- for (const t3 of a2) {
97
+ for (const t3 of l2) {
98
98
  const n3 = s(t3, e3.fieldName, void 0);
99
99
  null != n3 && i3.push(n3);
100
100
  }
@@ -115,35 +115,29 @@ function v(t2, e2, n2) {
115
115
  }
116
116
  }
117
117
  if (!r2) return;
118
- const a2 = e2.props ? e2.props.orderSource : "";
118
+ const l2 = e2.props ? e2.props.orderSource : "";
119
119
  let c2 = e2.props ? e2.props.orderFix : "";
120
- if ("variable" == a2) {
120
+ if ("variable" == l2) {
121
121
  const n3 = e2.props ? e2.props.orderVariable : "";
122
- c2 = l(t2, n3);
123
- }
124
- c2 = "desc" == c2 || "DESC" == c2 ? "desc" : "asc";
125
- const f2 = n2.length;
126
- for (let t3 = 0; t3 < f2 - 1; t3++) {
127
- const e3 = s(n2[t3], r2, void 0);
128
- for (let i3 = t3 + 1; i3 < f2; i3++) {
129
- const o3 = s(n2[i3], r2, void 0);
130
- let l2 = false;
131
- "desc" == c2 ? e3 < o3 && (l2 = true) : e3 > o3 && (l2 = true), l2 && ([n2[t3], n2[i3]] = [n2[i3], n2[t3]]);
132
- }
122
+ c2 = a(t2, n3);
133
123
  }
124
+ c2 = "desc" == c2 || "DESC" == c2 ? "desc" : "asc", n2.sort((t3, e3) => {
125
+ const n3 = s(t3, r2, void 0), i3 = s(e3, r2, void 0);
126
+ return "desc" === c2 ? i3 - n3 : n3 - i3;
127
+ });
134
128
  }
135
129
  function N(t2, e2, n2, i2, o2) {
136
130
  if (!n2) return n2;
137
131
  const r2 = e2.props ? e2.props : {};
138
132
  if (!r2.limitQuantity) return n2;
139
- let a2 = null;
140
- if (r2.itemNumVariable ? (a2 = l(t2, r2.itemNumVariable), a2 = parseInt(a2)) : a2 = r2.itemNumFix ? r2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return n2;
141
- if (n2.length < a2) return n2;
133
+ let l2 = null;
134
+ if (r2.itemNumVariable ? (l2 = a(t2, r2.itemNumVariable), l2 = parseInt(l2)) : l2 = r2.itemNumFix ? r2.itemNumFix : 10, null == l2 || null == l2 || isNaN(l2)) return n2;
135
+ if (n2.length < l2) return n2;
142
136
  const c2 = r2.overItemAlias, f2 = [], u2 = {};
143
137
  i2 = i2 || [], o2 = o2 || [];
144
138
  for (let t3 = 0; t3 < n2.length; t3++) {
145
139
  const e3 = n2[t3];
146
- if (t3 < a2) f2.push(e3);
140
+ if (t3 < l2) f2.push(e3);
147
141
  else {
148
142
  if (!c2) break;
149
143
  for (const t4 of i2) {
@@ -218,11 +212,11 @@ function k(t2, e2, n2, i2) {
218
212
  const o2 = r(t2);
219
213
  for (const e3 of o2) {
220
214
  let o3 = null;
221
- o3 = e3.startsWith("${row.") ? s(n2, e3.substring(6, e3.length - 1), null) : a(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), o3);
215
+ o3 = e3.startsWith("${row.") ? s(n2, e3.substring(6, e3.length - 1), null) : l(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), o3);
222
216
  }
223
217
  t2.includes("return ") || (t2 = "return " + t2);
224
- const l2 = new Function("params", t2);
225
- return f(l2, i2), l2({ pageContext: i2, row: n2 });
218
+ const a2 = new Function("params", t2);
219
+ return f(a2, i2), a2({ pageContext: i2, row: n2 });
226
220
  }
227
221
  function M(t2) {
228
222
  if (!t2 || !t2.$el) return;
@@ -73,7 +73,7 @@ function p(e2) {
73
73
  }
74
74
  }
75
75
  function c(e2) {
76
- return !!e2.isWorkflowEntity || !!e2.workflowCode;
76
+ return !!e2.isWorkflowEntity || !(void 0 !== e2.isWorkflowEntity || !e2.workflowCode);
77
77
  }
78
78
  function d(e2, t2) {
79
79
  if (e2 && t2) {
@@ -204,18 +204,18 @@ function q(e2, t2, i2, o2) {
204
204
  i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = g(t2), r2.props.linkPage = u2);
205
205
  }
206
206
  u2 && u2.jumpPageUrl ? (e2.canClick = true, D(e2, r2, o2)) : function(e3, t3, i3, o3) {
207
- const r3 = i3;
207
+ const r3 = i3, u3 = L(e3);
208
208
  if (r3) {
209
- const i4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = z(e3, t3, i4, o3), a2 = L(e3);
209
+ const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = z(e3, t3, i4, o3);
210
210
  if (function(e4, n2) {
211
211
  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);
212
- }(u3, c2)) return void (e3.canClick = true);
213
- n(l2) ? l2.then((n2) => {
214
- n2 ? V(e3, t3, o3, u3, n2, a2) : e3.canClick = true;
212
+ }(c2, l2)) return void (e3.canClick = true);
213
+ n(a2) ? a2.then((n2) => {
214
+ n2 ? V(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
215
215
  }).catch((n2) => {
216
216
  e3.canClick = true;
217
- }) : V(e3, t3, o3, u3, l2, a2);
218
- } else e3.canClick = true;
217
+ }) : V(e3, t3, o3, c2, a2, u3);
218
+ } else V(e3, t3, o3, false, null, u3);
219
219
  }(e2, t2, i2, o2);
220
220
  }
221
221
  function A(e2, n2) {
@@ -12,7 +12,7 @@ import { getPermissionCodes as k, getDefaultValue as R, getModelFields as N } fr
12
12
  import { updateChartDatasources as M, caculateShowCondition as v, getVariableValue as S, setVariableValue as I } from "../page-helper-util.js";
13
13
  import x from "./print-label.js";
14
14
  import { getTableNameByTableUuid as A } from "../table-utils.js";
15
- import { getWorkflowRules as U, packageCustomRules as O } from "./validator-util.js";
15
+ import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
16
16
  import { functions as E } from "../api/page-expose-util.js";
17
17
  import { usePageContextStore as _ } from "../page-store.js";
18
18
  const j = { save: function(e2) {
@@ -38,8 +38,8 @@ const j = { save: function(e2) {
38
38
  }, disagreeList: function(e2) {
39
39
  return z(e2, true, "disagree", "/dsc/commons/batch-refuses");
40
40
  }, back: function(e2) {
41
- const t2 = e2.pageContext;
42
- G(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
41
+ const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
42
+ G(t2, e2.configureObj, s2, n2);
43
43
  }, delete: function(e2) {
44
44
  return function(e3) {
45
45
  return new Promise((s2, i2) => {
@@ -382,9 +382,9 @@ function q(t2, s2, n2, o2, i2) {
382
382
  b(t3, r2).refresh();
383
383
  }
384
384
  } else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
385
- const s4 = e(t3.entity.page);
386
- let o4 = n3;
387
- o4 || (o4 = {}), Object.assign(s4, o4), G(t3, s4, a3);
385
+ const o4 = e(t3.entity.page);
386
+ let i4 = n3;
387
+ i4 || (i4 = {}), Object.assign(o4, i4), G(t3, s3, o4, a3);
388
388
  }
389
389
  o3 && l({ message: u().t(o3), type: "success", showClose: true });
390
390
  }(t2, s2, n2, o2), t2.canClick = true) : a2 && "form" === a2 ? function(e2, t3, s3, n3) {
@@ -396,7 +396,7 @@ function q(t2, s2, n2, o2, i2) {
396
396
  const n5 = t4.props.base.successOperation;
397
397
  if (!n5 || null === n5) return;
398
398
  const o4 = t4.props.base.isNeedValueMapping;
399
- "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? de(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (G(e3, s4, o4), e3.canClick = true);
399
+ "noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? de(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (G(e3, t4, s4, o4), e3.canClick = true);
400
400
  }(e2, t3, { ...o3, ...e2.entity.page });
401
401
  } else e2.canClick = true;
402
402
  n3 && l({ message: u().t(n3), type: "success", showClose: true });
@@ -406,12 +406,12 @@ function H(e2, t2, s2) {
406
406
  let n2;
407
407
  return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
408
408
  }
409
- function G(e2, t2, s2) {
410
- const n2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
411
- if ("openWindow" === n2 || "newTab" === n2) window.parent ? window.parent.close() : window.close();
409
+ function G(e2, t2, s2, n2) {
410
+ const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
411
+ if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
412
412
  else {
413
- const o2 = e2.tableName, i2 = void 0 !== s2 && true === s2 && t2 && void 0 !== t2, a2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
414
- C.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
413
+ const i2 = e2.tableName, a2 = void 0 !== n2 && true === n2 && s2 && void 0 !== s2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
414
+ C.$emit(r2 + "close-dialog", { isNeedValueMapping: a2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: i2, jumpMode: o2 });
415
415
  }
416
416
  }
417
417
  function J(e2, t2, s2, n2, o2) {
@@ -805,7 +805,7 @@ function me(e2, s2, o2) {
805
805
  f2 && (C2.ids = fe(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
806
806
  const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = _();
807
807
  h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
808
- e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Z(t3, true, e3), e3.workflowRules = U(e3);
808
+ e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Z(t3, true, e3), e3.workflowRules = O(e3);
809
809
  const s4 = e3.pageType;
810
810
  s4 && "form" === s4 && function(e4) {
811
811
  (function(e5) {
@@ -859,7 +859,7 @@ function me(e2, s2, o2) {
859
859
  const h2 = C2 + "/dsc/commons/gets", P2 = _();
860
860
  P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(h2, T2).then((t3) => {
861
861
  t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
862
- const s4 = e3.customRules, n2 = e3.rules, i4 = O(s4, n2);
862
+ const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
863
863
  e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
864
864
  }).catch((t3) => {
865
865
  e3.canClick = true, i3(t3);
@@ -280,7 +280,7 @@ function caculateShowCondition(pageContext, showConditions, row) {
280
280
  const s = e.dataType;
281
281
  "CONTAIN" != n && "NOT_CONTAIN" != n || r && !r.includes && (n = "CONTAIN" == n ? "EQ" : "NET");
282
282
  let i = e.variableIsNull, u;
283
- if (i || (i = "null"), void 0 !== a && "" !== a || (a = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true), null == u) try {
283
+ if (i || (i = "null"), "IS_NULL" !== n && "IS_NOT_NULL" !== n && (void 0 !== a && "" !== a || (a = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true)), null == u) try {
284
284
  u = executeExpression(r, n, a, s);
285
285
  } catch (t2) {
286
286
  u = false;
@@ -11,9 +11,9 @@ function f(t2) {
11
11
  return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t2);
12
12
  }
13
13
  function c(e2) {
14
- var _a;
14
+ var _a, _b, _c;
15
15
  if (null == e2) return null;
16
- const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
16
+ const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
17
17
  if (e2.props && e2.props.notIdInitializationList) {
18
18
  let s2 = e2.props.notIdInitializationList;
19
19
  "string" == typeof s2 && (s2 = JSON.parse(s2)), s2.length > 0 && (t2.notIdInitializationList = s2);
@@ -57,16 +57,16 @@ function b(e2) {
57
57
  function y(e2, t2) {
58
58
  if (e2) {
59
59
  Object.assign(t2, e2);
60
- E(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
60
+ v(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
61
61
  }
62
62
  }
63
63
  function h(e2, t2) {
64
64
  if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
65
65
  Object.assign(t2, e2.query);
66
- E(e2.query.paramStoreId, t2);
66
+ v(e2.query.paramStoreId, t2);
67
67
  }
68
68
  }
69
- function E(e2, t2) {
69
+ function v(e2, t2) {
70
70
  if (e2) {
71
71
  const s2 = l(e2);
72
72
  if (s2) {
@@ -75,14 +75,14 @@ function E(e2, t2) {
75
75
  }
76
76
  }
77
77
  }
78
- function v(e2, t2) {
78
+ function E(e2, t2) {
79
79
  let s2, i2 = t2;
80
80
  t2 || (s2 = e2.props.base ? e2.props.base : {}, i2 = s2.prop);
81
81
  let n2 = null;
82
82
  return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), n2 = i2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
83
83
  }
84
84
  function w(e2, t2, s2) {
85
- const i2 = v(t2, s2), r2 = e2.entity;
85
+ const i2 = E(t2, s2), r2 = e2.entity;
86
86
  if (null == r2.data.ID && null == r2.data.id) {
87
87
  let l2, a2, p2 = false;
88
88
  t2 && (l2 = t2.props.base ? t2.props.base : {}, a2 = t2.name, p2 = l2.multiple);
@@ -136,21 +136,21 @@ function C(s2, i2, n2) {
136
136
  const I = ["button-detail", "print-label"];
137
137
  function O(e2, t2) {
138
138
  var _a, _b;
139
- const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
140
- let n2 = false;
141
- if (p(e2) && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
139
+ const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, n2 = p(e2);
140
+ let o2 = false;
141
+ if (n2 && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
142
142
  const s3 = e2.fieldPermissionMap.get("all_fields");
143
- false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", n2 = true);
143
+ false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
144
144
  }
145
145
  if (s2) {
146
- const o2 = i(s2);
147
- if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[o2] || (e2.rules[o2] = []), t2.props.rules.forEach((e3) => {
146
+ const r2 = i(s2);
147
+ if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[r2] || (e2.rules[r2] = []), t2.props.rules.forEach((e3) => {
148
148
  d(e3);
149
- }), e2.rules[o2] = t2.props.rules), !n2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
150
- const s3 = e2.fieldPermissionMap.get(o2);
149
+ }), e2.rules[r2] = t2.props.rules), n2 && !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
150
+ const s3 = e2.fieldPermissionMap.get(r2);
151
151
  t2.runtime.props || (t2.runtime.props = {}), s3 ? false === s3.canEdit ? t2.runtime.props.state = "disabled" : s3.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true) : t2.runtime.props.state = "";
152
152
  }
153
- ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
153
+ ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: r2, events: t2.props.customRuleEvents }));
154
154
  }
155
155
  }
156
156
  function _(e2, t2) {
@@ -173,7 +173,7 @@ export {
173
173
  c as convertToPageContext,
174
174
  P as getDefaultValue,
175
175
  w as getFormModelFields,
176
- v as getModelFields,
176
+ E as getModelFields,
177
177
  M as getPermissionCodes,
178
178
  b as packageAdditionalMapWithLocationSearch,
179
179
  y as packageAdditionalMapWithPageRequest,
@@ -1,16 +1,16 @@
1
1
  var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
2
- const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] } }, s = {};
2
+ const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }, { code: "returnableTaskInformation", label: "获取可退回环节信息", funcType: "AUTHENTICATED", path: "/workflow-commons/returnable-task/{taskId}$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] } }, s = {};
3
3
  function n(o2) {
4
4
  return o2 ? e[o2] : void 0;
5
5
  }
6
- function t(o2) {
6
+ function a(o2) {
7
7
  if (!o2) return;
8
8
  let n2 = s[o2];
9
9
  if (null == n2) {
10
10
  for (const s2 in e) {
11
- const t2 = e[s2].functions;
12
- if (t2) {
13
- for (const e2 of t2) {
11
+ const a2 = e[s2].functions;
12
+ if (a2) {
13
+ for (const e2 of a2) {
14
14
  if (o2 === (e2.code ? e2.code : s2)) {
15
15
  n2 = e2;
16
16
  break;
@@ -25,6 +25,6 @@ function t(o2) {
25
25
  }
26
26
  export {
27
27
  o as FuncType,
28
- t as getFunctionInfo,
28
+ a as getFunctionInfo,
29
29
  n as getStandPermissionInfo
30
30
  };
@@ -24,7 +24,11 @@ function u(t2, i2, s2, n2) {
24
24
  const o2 = e(i3, t2);
25
25
  o2 && (u3.permission = o2);
26
26
  }
27
- u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2 && (r3.onClick = n2(i3)), s2.push(r3);
27
+ if (u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2) {
28
+ const t3 = n2(i3);
29
+ r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
30
+ }
31
+ s2.push(r3);
28
32
  });
29
33
  }
30
34
  function l(t2, e2, o2, n2) {
@@ -1,181 +1,183 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
2
- import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as y, getEventNameByType as C, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
2
+ import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
3
3
  import { getBaseUrl as E, getListCode as O, getRealRestApiPath as k, isWorkflowPage as T, isVariableInvalidValue as R } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
6
6
  import { getOperationButtons as P, popupToPage as B } from "../../../../utils/table-utils.js";
7
7
  import F from "../../../../utils/eventBus.js";
8
8
  import { getDefaultValue as H } from "../../../../utils/page-init-util.js";
9
- import { decomposeVariable as U, getSizeConfig as M } from "../../../../utils/page-helper-util.js";
9
+ import { getSizeConfig as U, decomposeVariable as M } from "../../../../utils/page-helper-util.js";
10
10
  import { getRowStyleUtil as $, getCellStyleUtil as _, getHeaderCellStyleUtil as L } from "../../chart/table/chart-table-util.js";
11
- const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: z2, emit: W }) {
12
- const q = e2, G = q.pageContext;
13
- let Q = q.configure;
11
+ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: z2, emit: G }) {
12
+ const W = e2, q = W.pageContext;
13
+ let Q = W.configure;
14
14
  const J = t({});
15
- G.isTest ? J.value = q.configure.runtime ? q.configure.runtime : {} : G.tableRuntimes && G.tableRuntimes[Q.uuid] && (Q = JSON.parse(G.tableRuntimes[Q.uuid].configure), J.value = Q.runtime ? Q.runtime : {});
16
- const K = J.value.style, X = J.value.class, Y = G.systemCode, Z = G.backendUrl, ee = Q.props && Q.props.dataOrigin && Q.props.dataOrigin.tableName;
17
- let te = E(G.backendUrl, G.isTest);
15
+ q.isTest ? J.value = W.configure.runtime ? W.configure.runtime : {} : q.tableRuntimes && q.tableRuntimes[Q.uuid] && (Q = JSON.parse(q.tableRuntimes[Q.uuid].configure), J.value = Q.runtime ? Q.runtime : {});
16
+ const K = J.value.style, X = J.value.class, Y = q.systemCode, Z = q.backendUrl, ee = Q.props && Q.props.dataOrigin && Q.props.dataOrigin.tableName;
17
+ let te = E(q.backendUrl, q.isTest);
18
18
  te || (te = window.$vueApp.config.globalProperties.baseURL);
19
19
  const ne = t({}), oe = [], ie = t({});
20
20
  ie.value = function() {
21
- const e3 = G.systemCode, t2 = G.code;
21
+ const e3 = q.systemCode, t2 = q.code;
22
22
  let n2 = Q.props && Q.props.dataOrigin && "[]" !== Q.props.dataOrigin.sqlFilterCondition ? Q.props.dataOrigin.sqlFilterCondition : null;
23
23
  null == n2 && (n2 = []);
24
- const i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: Q.props.dataOrigin.principalLinkage, extraParam: { beanName: G.beanName, functionCode: t2 + ".listData", tableName: ee, systemCode: e3, pageCode: G.code, pageVersion: G.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: he, esc: Ce }, indexContinuous: !(!Q.props || !Q.props.otherSettings) && Q.props.otherSettings.serialNumberContinuous, initSearch: !Q.props || false !== Q.props.dataOrigin.initializationQuery, resizeHeight: Re, pageCode: G.code, pageVersion: G.version, additionalParamMap: I(G), showOverflowTooltip: !(!Q.props || !Q.props.otherSettings || void 0 !== Q.props.otherSettings.isBreakLine && false !== Q.props.otherSettings.isBreakLine), isEnableEnterEvent: Q.props && Q.props.otherSettings && Q.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(Q.props && Q.props.otherSettings && Q.props.otherSettings.isWithDataPermission) && Q.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: T(G), tableClass: X, tableStyle: K, pageContext: G, configureObj: Q, backendUrl: te, cellStyleRender: ze, rowStyleRender: Ae, titleStyleRender: We };
25
- (function(e4) {
24
+ const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: Q.props.dataOrigin.principalLinkage, extraParam: { beanName: q.beanName, functionCode: t2 + ".listData", tableName: ee, systemCode: e3, pageCode: q.code, pageVersion: q.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: be, esc: xe }, indexContinuous: !(!Q.props || !Q.props.otherSettings) && Q.props.otherSettings.serialNumberContinuous, initSearch: !Q.props || false !== Q.props.dataOrigin.initializationQuery, resizeHeight: Ie, pageCode: q.code, pageVersion: q.version, additionalParamMap: I(q), showOverflowTooltip: !(!Q.props || !Q.props.otherSettings || void 0 !== Q.props.otherSettings.isBreakLine && false !== Q.props.otherSettings.isBreakLine), isEnableEnterEvent: Q.props && Q.props.otherSettings && Q.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(Q.props && Q.props.otherSettings && Q.props.otherSettings.isWithDataPermission) && Q.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: T(q), tableClass: X, tableStyle: K, pageContext: q, configureObj: Q, backendUrl: te, cellStyleRender: Ge, rowStyleRender: ze, titleStyleRender: We };
25
+ return function(e4) {
26
26
  var _a;
27
27
  ((_a = Q.props.highOrder) == null ? void 0 : _a.mergeFields) && Q.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = Q.props.highOrder.mergeFields.join(","));
28
- })(i2), function(e4) {
28
+ }(o2), function(e4) {
29
29
  const t3 = [];
30
30
  e4.operations || (e4.operations = {});
31
- P(G, Q, t3, we), e4.operations.operation = t3;
32
- }(i2), function(e4) {
31
+ P(q, Q, t3, Se), e4.operations.operation = t3;
32
+ }(o2), function(e4) {
33
33
  Q.props && Q.props.dataOrigin && Q.props.dataOrigin.sortField && (e4.initSortInfo = [], Q.props.dataOrigin.sortField.forEach((t3) => {
34
34
  const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
35
35
  n3.prop = t3.name, e4.initSortInfo.push(n3);
36
36
  }));
37
- }(i2), Q.props.linkages && Q.props.linkages.length > 0 && (Q.props.linkages.forEach((e4) => {
38
- const t3 = U(e4.fieldName);
39
- t3 && t3.length > 1 && oe.push(t3[1]);
40
- }), oe.length > 0 && function() {
41
- let e4 = [];
42
- q.pageContext.toolsInputComponents && q.pageContext.toolsInputComponents.length > 0 && q.pageContext.toolsInputComponents.forEach((t3) => {
43
- if (Q.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
44
- const n3 = U(t3.prop);
45
- n3 && n3.length > 1 && e4.push(n3[1]);
46
- }
47
- });
48
- if (0 === e4.length) Ge();
49
- else {
50
- const t3 = qe();
51
- e4 = e4.filter((e5) => R(t3, e5)), 0 === e4.length ? (Te(t3), Ge()) : oe.forEach((t4) => {
52
- o(() => q.pageContext.entity.page[t4], () => {
53
- const t5 = qe();
54
- 0 === e4.length ? Te(t5) : (e4 = e4.filter((e5) => R(t5, e5)), 0 === e4.length && Te(t5));
55
- }, { immediate: true });
56
- });
57
- }
58
- }());
59
- return function(e4) {
37
+ }(o2), function(e4) {
60
38
  const t3 = Q.props ? Q.props.dataOrigin : {};
61
39
  if (t3.treeTable) {
62
40
  let n3;
63
- const o2 = t3.rowKey;
64
- if (n3 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n3, t3.checkStrictly && (e4.checkStrictly = t3.checkStrictly), e4.parentProp) {
65
- const o3 = t3.lazy, i3 = t3.defaultExpandAll;
66
- e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != i3 && i3;
41
+ const o3 = t3.rowKey;
42
+ if (n3 = o3 && o3.indexOf("~~") > 0 ? o3.substring(o3.indexOf("~~") + 2) : o3, e4.parentProp = n3, t3.checkStrictly && (e4.checkStrictly = t3.checkStrictly), e4.parentProp) {
43
+ const o4 = t3.lazy, i2 = t3.defaultExpandAll;
44
+ e4.lazy = null == o4 || o4, e4.defaultExpandAll = null != i2 && i2;
67
45
  const a2 = { parentProp: n3, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
68
46
  e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = te + "/dsc/commons/list-subs";
69
47
  }
70
48
  }
71
- }(i2), function(e4) {
49
+ }(o2), function(e4) {
72
50
  const t3 = Q.runtime && Q.runtime.events ? Q.runtime.events : [];
73
- c(e4, t3, G, Q);
74
- const n3 = G.customEvents;
51
+ c(e4, t3, q, Q);
52
+ const n3 = q.customEvents;
75
53
  n3 && (e4.eventCallBack = n3);
76
- }(i2), i2;
54
+ }(o2), o2;
77
55
  }();
78
56
  const ae = t(), le = t(), re = function() {
79
57
  let e3 = te + "/dsc/commons/list";
80
- e3 && (e3 = k(e3, Y, Z, G.isTest));
58
+ e3 && (e3 = k(e3, Y, Z, q.isTest));
81
59
  return e3;
82
- }(), ue = O(G.code, G.version, Q.uuid), se = G.code + "_" + ue, ce = t([]), pe = G.entity.page, de = t({ data: [] }), fe = G.superGridItems, ge = fe ? fe[Q.uuid] : null, me = t(false), ve = W;
83
- function he({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
84
- be(null, null, n2, t2, e3);
60
+ }(), ue = O(q.code, q.version, Q.uuid), se = q.code + "_" + ue, ce = t([]), pe = q.entity.page, de = t({ data: [] }), fe = q.superGridItems, ge = fe ? fe[Q.uuid] : null, me = t(false), ve = G;
61
+ function he() {
62
+ Q.props.linkages && Q.props.linkages.length > 0 && (Q.props.linkages.forEach((e3) => {
63
+ const t2 = M(e3.fieldName);
64
+ t2 && t2.length > 1 && oe.push(t2[1]);
65
+ }), oe.length > 0 && function() {
66
+ let e3 = [];
67
+ W.pageContext.toolsInputComponents && W.pageContext.toolsInputComponents.length > 0 && W.pageContext.toolsInputComponents.forEach((t2) => {
68
+ if (Q.props.linkages.some((e4) => e4.fieldName === t2.prop) && t2.defaultValue) {
69
+ const n2 = M(t2.prop);
70
+ n2 && n2.length > 1 && e3.push(n2[1]);
71
+ }
72
+ });
73
+ if (0 === e3.length) Qe();
74
+ else {
75
+ const t2 = qe();
76
+ e3 = e3.filter((e4) => R(t2, e4)), 0 === e3.length ? (Re(t2), Qe()) : oe.forEach((t3) => {
77
+ o(() => W.pageContext.entity.page[t3], () => {
78
+ const t4 = qe();
79
+ 0 === e3.length ? Re(t4) : (e3 = e3.filter((e4) => R(t4, e4)), 0 === e3.length && Re(t4));
80
+ }, { immediate: true });
81
+ });
82
+ }
83
+ }());
85
84
  }
86
- function be(e3, t2, n2, o2, i2) {
85
+ function be({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
86
+ we(null, null, n2, t2, e3);
87
+ }
88
+ function we(e3, t2, n2, o2, i2) {
87
89
  const a2 = ne.value.lineEditSave, l2 = Q;
88
- a2.props.base.tableUuid = l2.uuid, ie.value.lineEditOptions.beforeSave = Se, G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((l3) => {
90
+ a2.props.base.tableUuid = l2.uuid, ie.value.lineEditOptions.beforeSave = Ce, q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((l3) => {
89
91
  true === l3.canExecute && (ie.value.lineEditOptions.saveRow = ye, le.value.saveRow(i2, ue).then(() => {
90
- d(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
92
+ d(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
91
93
  }));
92
94
  }).finally(() => {
93
- G.editData = null;
95
+ q.editData = null;
94
96
  });
95
97
  }
96
- function we(e3) {
98
+ function Se(e3) {
97
99
  if (!e3) return;
98
100
  let t2;
99
- const n2 = C(e3.events, "click");
101
+ const n2 = y(e3.events, "click");
100
102
  if (n2) {
101
- if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = Oe), !t2) {
102
- t2 = x(G, e3.events, "click");
103
+ if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = we : "restoreEdit" === n2 ? t2 = De : "lineEditUpdate" === n2 ? t2 = Ee : "lineEditDelete" === n2 && (t2 = ke), !t2) {
104
+ t2 = x(q, e3.events, "click");
103
105
  }
104
- } else ne.value[e3.uuid] = e3, t2 = Ve;
105
- return t2;
106
+ } else ne.value[e3.uuid] = e3, t2 = je;
107
+ return { onClick: t2, eventName: n2 };
106
108
  }
107
- function Se({ row: e3, columns: t2, additionalParamMap: n2 }) {
109
+ function Ce({ row: e3, columns: t2, additionalParamMap: n2 }) {
108
110
  const o2 = ne.value.lineEditSave, i2 = Q;
109
111
  o2.props.base.tableUuid = i2.uuid;
110
- return f(G, o2, { row: e3, columns: t2 });
112
+ return f(q, o2, { row: e3, columns: t2 });
111
113
  }
112
114
  function ye({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
113
115
  const l2 = ne.value.lineEditSave, r2 = Q;
114
116
  return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
115
117
  const i3 = { tableName: r2.props.dataOrigin.tableName };
116
- V(G, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
118
+ V(q, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
117
119
  t3(e4 ? e4.entity : {});
118
120
  }).catch((e4) => {
119
121
  n3(e4);
120
122
  });
121
123
  });
122
124
  }
123
- function Ce({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
124
- xe(null, null, n2, t2, e3);
125
+ function xe({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
126
+ De(null, null, n2, t2, e3);
125
127
  }
126
- function xe(e3, t2, n2, o2, i2) {
128
+ function De(e3, t2, n2, o2, i2) {
127
129
  const a2 = ne.value.restoreEdit, l2 = Q;
128
130
  a2.props.base.tableUuid = l2.uuid;
129
- const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
131
+ const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
130
132
  if (!r2) return;
131
133
  N(r2) ? r2.then((e4) => {
132
134
  e4 && le.value.restoreRow(i2, ue);
133
135
  }) : le.value.restoreRow(i2, ue);
134
- d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
136
+ d(q, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
135
137
  }
136
- function De(e3, t2, n2, o2, i2) {
138
+ function Ee(e3, t2, n2, o2, i2) {
137
139
  const a2 = ne.value.lineEditUpdate, l2 = Q;
138
140
  a2.props.base.tableUuid = l2.uuid;
139
- const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
141
+ const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
140
142
  r2 && (N(r2) ? r2.then((l3) => {
141
- l3 && Ee(e3, t2, n2, o2, i2, a2);
142
- }) : Ee(e3, t2, n2, o2, i2, a2));
143
+ l3 && Oe(e3, t2, n2, o2, i2, a2);
144
+ }) : Oe(e3, t2, n2, o2, i2, a2));
143
145
  }
144
- function Ee(e3, t2, n2, o2, i2, a2) {
145
- G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((a3) => {
146
+ function Oe(e3, t2, n2, o2, i2, a2) {
147
+ q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((a3) => {
146
148
  if (true === a3.canExecute) {
147
149
  le.value.editRow(i2, ue);
148
- d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
150
+ d(q, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
149
151
  }
150
152
  }).finally(() => {
151
- G.editData = null;
153
+ q.editData = null;
152
154
  });
153
155
  }
154
- function Oe(e3, t2, n2, o2, i2) {
156
+ function ke(e3, t2, n2, o2, i2) {
155
157
  const a2 = ne.value.lineEditDelete, l2 = Q;
156
158
  a2.props.base.tableUuid = l2.uuid;
157
- const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
159
+ const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
158
160
  r2 && (N(r2) ? r2.then((l3) => {
159
- l3 && ke(e3, t2, n2, o2, i2, a2);
160
- }) : ke(e3, t2, n2, o2, i2, a2));
161
+ l3 && Te(e3, t2, n2, o2, i2, a2);
162
+ }) : Te(e3, t2, n2, o2, i2, a2));
161
163
  }
162
- function ke(e3, t2, n2, o2, i2, a2) {
163
- if (n2.id || n2.ID) G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((e4) => {
164
+ function Te(e3, t2, n2, o2, i2, a2) {
165
+ if (n2.id || n2.ID) q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((e4) => {
164
166
  if (true === e4.canExecute) {
165
167
  const e5 = [];
166
- n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: G, configureObj: a2, ids: e5 });
168
+ n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: q, configureObj: a2, ids: e5 });
167
169
  }
168
170
  }).finally(() => {
169
- G.editData = null;
171
+ q.editData = null;
170
172
  });
171
173
  else {
172
- xe(e3, t2, n2, o2, i2);
173
- d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
174
+ De(e3, t2, n2, o2, i2);
175
+ d(q, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
174
176
  }
175
177
  }
176
- function Te(e3) {
177
- if (!G.dataTypeMaps) return;
178
- const t2 = G.dataTypeMaps;
178
+ function Re(e3) {
179
+ if (!q.dataTypeMaps) return;
180
+ const t2 = q.dataTypeMaps;
179
181
  let n2 = [];
180
182
  if (e3) for (var o2 in e3) {
181
183
  const a2 = e3[o2];
@@ -195,16 +197,16 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
195
197
  }
196
198
  le.value.toolbarRefresh(null, null, n2);
197
199
  }
198
- function Re(e3) {
199
- const t2 = Ie();
200
+ function Ie(e3) {
201
+ const t2 = Ve();
200
202
  if (t2) {
201
203
  let n2 = 0;
202
204
  return e3.searchHeight && (n2 = e3.searchHeight), t2 - 20 - n2;
203
205
  }
204
206
  }
205
- function Ie() {
207
+ function Ve() {
206
208
  if (!le.value) return;
207
- const e3 = M(q.pageContext, q.configure);
209
+ const e3 = U(W.pageContext, W.configure);
208
210
  if (e3) {
209
211
  if (e3.isCalcHeight) {
210
212
  let e4 = le.value.$el;
@@ -215,71 +217,71 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
215
217
  if (e3.fixHeight && le.value && (le.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
216
218
  }
217
219
  }
218
- function Ve(e3, t2, n2, o2, i2, a2) {
220
+ function je(e3, t2, n2, o2, i2, a2) {
219
221
  const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ne.value[a2.sourceButton.uuid], u2 = Q;
220
- r2.props.base.tableUuid = u2.uuid, D(null, G, r2, "click", l2);
222
+ r2.props.base.tableUuid = u2.uuid, D(null, q, r2, "click", l2);
221
223
  }
222
- function je(e3) {
224
+ function Ne(e3) {
223
225
  "close_open_win" === e3.data && le.value && le.value.refresh();
224
226
  }
225
- function Ne(e3, t2) {
227
+ function Pe(e3, t2) {
226
228
  ce.value = e3;
227
- g(G, Q, { selection: e3, row: t2 });
228
- }
229
- function Pe(e3) {
230
- ce.value = e3;
231
- m(G, Q, { selection: e3 });
229
+ g(q, Q, { selection: e3, row: t2 });
232
230
  }
233
231
  function Be(e3) {
234
- v(G, Q, { newSelection: e3 });
232
+ ce.value = e3;
233
+ m(q, Q, { selection: e3 });
235
234
  }
236
- function Fe(e3, t2, n2, o2) {
237
- h(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
235
+ function Fe(e3) {
236
+ v(q, Q, { newSelection: e3 });
238
237
  }
239
238
  function He(e3, t2, n2, o2) {
240
- b(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
239
+ h(q, Q, { row: e3, column: t2, cell: n2, event: o2 });
241
240
  }
242
- function Ue(e3, t2, n2) {
243
- w(G, Q, { row: e3, column: t2, event: n2 });
241
+ function Ue(e3, t2, n2, o2) {
242
+ b(q, Q, { row: e3, column: t2, cell: n2, event: o2 });
244
243
  }
245
244
  function Me(e3, t2, n2) {
246
- S(G, Q, { row: e3, column: t2, event: n2 });
245
+ w(q, Q, { row: e3, column: t2, event: n2 });
247
246
  }
248
- function $e(e3, t2) {
249
- y(G, Q, { column: e3, event: t2 });
247
+ function $e(e3, t2, n2) {
248
+ S(q, Q, { row: e3, column: t2, event: n2 });
250
249
  }
251
- function _e() {
252
- ce.value = [];
250
+ function _e(e3, t2) {
251
+ C(q, Q, { column: e3, event: t2 });
253
252
  }
254
- function Le(e3) {
255
- me.value = true;
253
+ function Le() {
254
+ ce.value = [];
256
255
  }
257
256
  function Ae(e3) {
258
- return $(e3, [], q);
257
+ me.value = true;
259
258
  }
260
259
  function ze(e3) {
261
- return _(e3, e3.cellStyle, q);
260
+ return $(e3, [], W);
261
+ }
262
+ function Ge(e3) {
263
+ return _(e3, e3.cellStyle, W);
262
264
  }
263
265
  function We(e3) {
264
- const t2 = e3.titleStyle, n2 = q.configure.style.titleStyle;
265
- return L(e3, { cellTitleStyle: t2, titleStyle: n2 }, q);
266
+ const t2 = e3.titleStyle, n2 = W.configure.style.titleStyle;
267
+ return L(e3, { cellTitleStyle: t2, titleStyle: n2 }, W);
266
268
  }
267
269
  function qe() {
268
270
  const e3 = {};
269
271
  return oe.forEach((t2) => {
270
- e3[t2] = q.pageContext.entity.page[t2];
272
+ e3[t2] = W.pageContext.entity.page[t2];
271
273
  }), e3;
272
274
  }
273
- function Ge() {
275
+ function Qe() {
274
276
  oe.forEach((e3) => {
275
- o(() => q.pageContext.entity.page[e3], () => {
276
- Te(qe());
277
+ o(() => W.pageContext.entity.page[e3], () => {
278
+ Re(qe());
277
279
  });
278
280
  });
279
281
  }
280
282
  n(() => {
281
- const e3 = Qe();
282
- le.value && e3 && e3.distanceToBottom && (le.value.tableHeight = e3.distanceToBottom - 110), q.pageContext.pageRuntimeStyle, window.addEventListener("message", je), F.$on(se + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
283
+ const e3 = Je();
284
+ le.value && e3 && e3.distanceToBottom && (le.value.tableHeight = e3.distanceToBottom - 110), W.pageContext.pageRuntimeStyle, window.addEventListener("message", Ne), F.$on(se + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
283
285
  le.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
284
286
  }), F.$on(se + "_close-dialog-get-entity", () => {
285
287
  F.$emit(se + "_close-super-dialog");
@@ -287,15 +289,15 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
287
289
  le.value.pickFileDone(e4);
288
290
  }), F.$on(ue + "-scanDone", (e4) => {
289
291
  le.value.scanDone(e4);
290
- }), ie.value.formSetMaxHeight = Ie(), ie.value && ie.value.configureObj.props.base && ie.value.configureObj.props.base.isSafeDelete && ve("setSafeDeleteTableCode", ie.value.extraParam.tableName);
291
- }), o(() => q.pageContext.searchFormData, (e3) => {
292
+ }), ie.value.formSetMaxHeight = Ve(), ie.value && ie.value.configureObj.props.base && ie.value.configureObj.props.base.isSafeDelete && ve("setSafeDeleteTableCode", ie.value.extraParam.tableName);
293
+ }), o(() => W.pageContext.searchFormData, (e3) => {
292
294
  de.value.data = e3;
293
- }), o(() => q.pageContext.entity.data, (e3) => {
294
- Te(q.pageContext.entity.data);
295
+ }), o(() => W.pageContext.entity.data, (e3) => {
296
+ Re(W.pageContext.entity.data);
295
297
  }), i(() => {
296
- window.removeEventListener("message", je), F.$off(se + "-close-component-page-dialog"), F.$off(se + "_close-dialog-get-entity"), F.$off(ue + "-pickFileDone"), F.$off(ue + "-scanDone");
298
+ window.removeEventListener("message", Ne), F.$off(se + "-close-component-page-dialog"), F.$off(se + "_close-dialog-get-entity"), F.$off(ue + "-pickFileDone"), F.$off(ue + "-scanDone");
297
299
  });
298
- const Qe = () => {
300
+ const Je = () => {
299
301
  if (!ae.value) return null;
300
302
  let e3 = ae.value.closest(".app-container");
301
303
  if (!e3) return null;
@@ -306,7 +308,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
306
308
  return le.value.refresh(e3, t2, n2, o2);
307
309
  }, createRow: function() {
308
310
  return le.value.createRow(ue, {}, { getDefaultValueFunc: H });
309
- }, clearSelections: _e, getSelections: function() {
311
+ }, clearSelections: Le, getSelections: function() {
310
312
  return ce.value;
311
313
  }, getSelectionIds: function() {
312
314
  const e3 = [];
@@ -330,7 +332,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
330
332
  }, changeOperationAddState: function(e3) {
331
333
  } }), (e3, t2) => {
332
334
  const n2 = a("super-grid");
333
- return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: u(ue) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: le, url: u(re), options: ie.value, code: u(ue), settings: u(ge), "search-form-info": de.value, "list-toolbar-form-data": u(pe), onSelect: Ne, onSelectAll: Pe, onSelectionChange: Be, onCellClick: Fe, onCellDblclick: He, onRowClick: Ue, onRowDblclick: Me, onHeaderClick: $e, onRefresh: _e, onNewOpenGridDialog: u(B), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);
335
+ return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: u(ue) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: le, url: u(re), options: ie.value, code: u(ue), settings: u(ge), "search-form-info": de.value, "list-toolbar-form-data": u(pe), onSelect: Pe, onSelectAll: Be, onSelectionChange: Fe, onCellClick: He, onCellDblclick: Ue, onRowClick: Me, onRowDblclick: $e, onHeaderClick: _e, onRefresh: Le, onNewOpenGridDialog: u(B), onCanShowMobileSearch: Ae, onGridOnmounted: he }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);
334
336
  };
335
337
  } });
336
338
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as i, nextTick as o, onUnmounted as a, resolveComponent as s, createBlock as n, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as m, unref as f, withCtx as c, createElementBlock as v, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as i, nextTick as o, onUnmounted as a, resolveComponent as s, createBlock as n, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as m, unref as f, withCtx as v, createElementBlock as c, toDisplayString as d } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
3
  import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
4
  import x from "agilebuilder-ui/src/utils/request";
@@ -6,29 +6,29 @@ import { FsUploadNew as b } from "agilebuilder-ui";
6
6
  import k from "../../../../utils/eventBus.js";
7
7
  import { $t as _ } from "../../../../utils/i18n-util.js";
8
8
  const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
- const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = t(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = G(S.prop), N = G(S.propName);
10
- F && F.length > 1 && l(() => w2.pageContext.entity[F[0]][F[1]], (e3) => {
9
+ const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = l(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = G(S.prop), N = G(S.propName);
10
+ F && F.length > 1 && t(() => w2.pageContext.entity[F[0]][F[1]], (e3) => {
11
11
  A(h(O, F));
12
12
  });
13
- const q = w2.pageContext.code, D = t(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = t(null), W = t(false), B = t([]), E = t({});
13
+ const q = w2.pageContext.code, D = l(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = l(null), W = l(false), B = l([]), E = l({});
14
14
  function A(e3) {
15
15
  if (e3) {
16
- const t2 = e3.split(",");
17
- if (t2.length > 0) {
16
+ const l2 = e3.split(",");
17
+ if (l2.length > 0) {
18
18
  const e4 = w2.pageContext.backendUrl;
19
- x.post(e4 + "/common/fs-upload/search-file-names", t2).then((e5) => {
19
+ x.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
20
20
  B.value = [];
21
- const l2 = [];
22
- for (let i2 = 0; i2 < t2.length; i2++) {
23
- const o2 = t2[i2];
24
- l2.push(e5[o2]), B.value.push({ showName: e5[o2], serverPath: o2 });
21
+ const t2 = [];
22
+ for (let i2 = 0; i2 < l2.length; i2++) {
23
+ const o2 = l2[i2];
24
+ t2.push(e5[o2]), B.value.push({ showName: e5[o2], serverPath: o2 });
25
25
  }
26
- "input" === j.value.displayType && (E.value.showName = l2.join(","), E.value.serverPath = t2.join(","));
26
+ "input" === j.value.displayType && (E.value.showName = t2.join(","), E.value.serverPath = l2.join(","));
27
27
  }).finally(() => {
28
28
  W.value = true;
29
29
  });
30
30
  } else W.value = true;
31
- } else W.value = true;
31
+ } else B.value = [], E.value = {}, W.value = true;
32
32
  }
33
33
  function G(e3) {
34
34
  return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
@@ -37,31 +37,31 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
37
37
  return C(e3);
38
38
  }
39
39
  A(U);
40
- const J = (e3, t2, l2) => {
40
+ const J = (e3, l2, t2) => {
41
41
  L();
42
42
  }, K = (e3) => {
43
43
  L();
44
44
  }, L = () => {
45
- const e3 = [], t2 = [];
45
+ const e3 = [], l2 = [];
46
46
  if (j.value.limit && B.value.length > j.value.limit) {
47
47
  const e4 = B.value.length - j.value.limit;
48
- for (let t3 = 0; t3 < e4; t3++) B.value.shift();
48
+ for (let l3 = 0; l3 < e4; l3++) B.value.shift();
49
49
  }
50
- for (let l2 = 0; l2 < B.value.length; l2++) e3.push(B.value[l2].showName), t2.push(B.value[l2].serverPath);
51
- y(w2.pageContext.entity, F, t2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
52
- }, M = t(null), Q = t(null);
50
+ for (let t2 = 0; t2 < B.value.length; t2++) e3.push(B.value[t2].showName), l2.push(B.value[t2].serverPath);
51
+ y(w2.pageContext.entity, F, l2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
52
+ }, M = l(null), Q = l(null);
53
53
  return i(() => {
54
54
  k.$on(D.value + "-pickFileDone", (e3) => {
55
55
  $.value.pickFileDone(e3);
56
56
  }), o(() => {
57
- const e3 = h(O, F), t2 = { showName: h(O, N), serverPath: e3 };
58
- g(t2, w2.pageContext, w2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: t2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
57
+ const e3 = h(O, F), l2 = { showName: h(O, N), serverPath: e3 };
58
+ g(l2, w2.pageContext, w2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: l2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
59
59
  });
60
60
  }), a(() => {
61
61
  k.$off(D.value + "-pickFileDone");
62
- }), (e3, t2) => {
63
- const l2 = s("el-form-item");
64
- return j.value.tittleShow ? (p(), n(l2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: m(f(T)), "label-width": j.value.labelWidth, style: r(f(R)) }, { label: c(() => [j.value.tittleShow ? (p(), v("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...f(z), ...f(I) }) }, d(f(_)(j.value.title)), 5)) : u("", true)]), default: c(() => [W.value ? (p(), n(f(b), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), n(f(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
62
+ }), (e3, l2) => {
63
+ const t2 = s("el-form-item");
64
+ return j.value.tittleShow ? (p(), n(t2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: m(f(T)), "label-width": j.value.labelWidth, style: r(f(R)) }, { label: v(() => [j.value.tittleShow ? (p(), c("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...f(z), ...f(I) }) }, d(f(_)(j.value.title)), 5)) : u("", true)]), default: v(() => [W.value ? (p(), n(f(b), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), n(f(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
65
65
  };
66
66
  } });
67
67
  export {
@@ -1,106 +1,102 @@
1
- import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as v } from "vue";
1
+ import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as m, vShow as d, nextTick as v } from "vue";
2
2
  import C from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as b } from "../../utils/assemblys-config.js";
4
- import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef as h, addComponentRefByCode as y } from "../../utils/global-refs.js";
6
- import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as _ } from "../../utils/page-init-util.js";
7
- import { caculateShowCondition as N, getFormPropName as P, getSizeConfig as L } from "../../utils/page-helper-util.js";
8
- import { isWorkflowPage as O, getPropClassName as S, isNumber as M } from "../../utils/common-util.js";
9
- import { isShowMobileEvent as T, isShowComponent as $ } from "../../utils/events/event-util.js";
10
- import { usePageContextStore as E } from "../../utils/page-store.js";
11
- const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
4
+ import { PageDimensions as h } from "../../utils/interfaces/page-design-types.js";
5
+ import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
6
+ import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as N } from "../../utils/page-init-util.js";
7
+ import { caculateShowCondition as _, getFormPropName as L, getSizeConfig as O } from "../../utils/page-helper-util.js";
8
+ import { isWorkflowPage as P, getPropClassName as S, isNumber as T } from "../../utils/common-util.js";
9
+ import { isShowMobileEvent as $, isShowComponent as H } from "../../utils/events/event-util.js";
10
+ import { usePageContextStore as M } from "../../utils/page-store.js";
11
+ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
12
12
  var _a, _b;
13
- const H2 = e2;
14
- null == H2.configure.style && (H2.configure.style = {});
15
- const k = w(H2.configure, H2.pageContext);
16
- H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = k), j(H2.pageContext, H2.configure);
17
- let B = o(null), F = o(true), J = o("");
18
- if (H2.configure && H2.configure.props) {
13
+ const k2 = e2;
14
+ null == k2.configure.style && (k2.configure.style = {});
15
+ const B = w(k2.configure, k2.pageContext);
16
+ k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = B), j(k2.pageContext, k2.configure);
17
+ let E = o(null), F = o(true), J = o("");
18
+ if (k2.configure && k2.configure.props) {
19
19
  let e3 = [];
20
- ((_a = H2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof H2.configure.props.base.showConditions ? JSON.parse(H2.configure.props.base.showConditions) : H2.configure.props.base.showConditions), F = t(() => {
20
+ ((_a = k2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof k2.configure.props.base.showConditions ? JSON.parse(k2.configure.props.base.showConditions) : k2.configure.props.base.showConditions), F = t(() => {
21
21
  var _a2;
22
22
  let o2 = true;
23
- if (B.value && null !== B.value) o2 = "show" === B.value;
24
- else if (T(H2.pageContext, H2.configure)) if (e3 && e3.length > 0) o2 = N(H2.pageContext, e3);
23
+ if (E.value && null !== E.value) o2 = "show" === E.value;
24
+ else if ($(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = _(k2.pageContext, e3);
25
25
  else {
26
- const e4 = (_a2 = H2.configure.props.base) == null ? void 0 : _a2.state;
26
+ const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
27
27
  e4 && "hidden" === e4 && (o2 = false);
28
28
  }
29
29
  else o2 = false;
30
30
  return o2;
31
31
  });
32
- if (H2.configure._dynamicShowFlag = F, (_b = H2.configure.props.base) == null ? void 0 : _b.editConditions) {
33
- const e4 = H2.configure.props.base.editConditions;
32
+ if (k2.configure._dynamicShowFlag = F, (_b = k2.configure.props.base) == null ? void 0 : _b.editConditions) {
33
+ const e4 = k2.configure.props.base.editConditions;
34
34
  if (e4.length > 0) {
35
- const o2 = H2.configure.runtime ? H2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
36
- if (n2.rawSate = n2.state, O(H2.pageContext) && H2.pageContext.fieldPermissionMap) {
37
- const e5 = H2.pageContext.fieldPermissionMap.get("all_fields");
38
- if (false === (e5 == null ? void 0 : e5.canEdit)) J.value = "disabled";
39
- else {
40
- const e6 = H2.configure.props.base;
41
- if (e6 && e6.prop) {
42
- let o3 = e6.prop;
43
- o3 = P(o3);
44
- const t2 = H2.pageContext.fieldPermissionMap.get(o3);
45
- t2 && false === t2.canEdit && (J.value = "disabled");
46
- }
35
+ const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
36
+ if (n2.rawSate = n2.state, P(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
37
+ const e5 = k2.configure.props.base;
38
+ if (e5 && e5.prop) {
39
+ let o3 = e5.prop;
40
+ o3 = L(o3);
41
+ const t2 = k2.pageContext.fieldPermissionMap.get(o3);
42
+ t2 && false === t2.canEdit && (J.value = "disabled");
47
43
  }
48
44
  }
49
45
  n2.state = t({ get() {
50
46
  if ("disabled" === J.value) return J.value;
51
- return N(H2.pageContext, e4) ? "" : "disabled";
47
+ return _(k2.pageContext, e4) ? "" : "disabled";
52
48
  }, set() {
53
49
  } });
54
50
  }
55
51
  }
56
52
  }
57
53
  const R = o({});
58
- R.value = n(b(H2.configure.name));
54
+ R.value = n(b(k2.configure.name));
59
55
  const W = o(true);
60
56
  null == R.value && (R.value = C, W.value = false);
61
- const q = o(null), z = o({}), A = o(""), D = S(H2.configure);
57
+ const q = o(null), z = o({}), A = o(""), D = S(k2.configure);
62
58
  D && (A.value = D);
63
- const G = H2.configure.runtime && H2.configure.runtime.common ? H2.configure.runtime.common : {};
59
+ const G = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
64
60
  if (G.class && (A.value += " " + G.class), G.style) {
65
61
  Object.assign(z.value, G.style);
66
- const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : x.PC, o2 = G.style[e3 + "_style"];
62
+ const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : h.PC, o2 = G.style[e3 + "_style"];
67
63
  o2 && Object.assign(z.value, o2);
68
64
  const t2 = G.style[e3 + "_class"];
69
65
  t2 && (A.value += " " + t2);
70
66
  }
71
- const I = E();
67
+ const I = M();
72
68
  function K(e3) {
73
69
  if (q.value = e3, e3 && !e3.show && (e3.show = function() {
74
- B.value = "show";
70
+ E.value = "show";
75
71
  }), e3 && !e3.hide && (e3.hide = function() {
76
- B.value = "hide";
72
+ E.value = "hide";
77
73
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
78
- return H2.configure;
79
- }), H2.configure.uuid && h(H2.pageContext, H2.configure.uuid, q), H2.configure.code) y(H2.pageContext, H2.configure.code, q);
80
- else if ("table" === H2.configure.name) y(H2.pageContext, H2.configure.uuid, q);
81
- else if (H2.configure.props && H2.configure.props.base) {
82
- const e4 = H2.configure.props.base;
74
+ return k2.configure;
75
+ }), k2.configure.uuid && x(k2.pageContext, k2.configure.uuid, q), k2.configure.code) y(k2.pageContext, k2.configure.code, q);
76
+ else if ("table" === k2.configure.name) y(k2.pageContext, k2.configure.uuid, q);
77
+ else if (k2.configure.props && k2.configure.props.base) {
78
+ const e4 = k2.configure.props.base;
83
79
  if (e4.prop) {
84
80
  let o3 = e4.prop;
85
- o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(H2.pageContext, o3, q);
81
+ o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(k2.pageContext, o3, q);
86
82
  }
87
83
  }
88
- const o2 = H2.configure.props ? H2.configure.props.base : null;
84
+ const o2 = k2.configure.props ? k2.configure.props.base : null;
89
85
  if (o2 && o2.prop) {
90
86
  let e4 = o2.prop;
91
- e4 = P(e4), _(H2.pageContext, e4);
87
+ e4 = L(e4), N(k2.pageContext, e4);
92
88
  }
93
89
  !function() {
94
90
  if (!q.value) return;
95
- const e4 = L(H2.pageContext, H2.configure);
96
- "table" !== H2.configure.name && e4 && e4.isCalcHeight && v(() => {
91
+ const e4 = O(k2.pageContext, k2.configure);
92
+ "table" !== k2.configure.name && e4 && e4.isCalcHeight && v(() => {
97
93
  let e5 = q.value.$el;
98
94
  e5 || (e5 = q.value);
99
95
  const o3 = e5.parentNode;
100
96
  if (!e5 || !o3) return;
101
97
  const t2 = e5.getBoundingClientRect();
102
98
  let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
103
- M(n2) && (i2 = n2 + "px"), z.value.height = i2, z.value["overflow-y"] = "auto", z.value["overflow-x"] = "hidden", H2.configure.sytle || (H2.configure.sytle = {}), H2.configure.sytle._heightStyle = i2;
99
+ T(n2) && (i2 = n2 + "px"), z.value.height = i2, z.value["overflow-y"] = "auto", z.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
104
100
  });
105
101
  }();
106
102
  }
@@ -118,14 +114,14 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
118
114
  e3 || (e3 = q.value);
119
115
  const o2 = e3.parentNode;
120
116
  if (!e3 || !o2) return;
121
- const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
117
+ const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
122
118
  "top" == i2 || "bottom" == i2 || n2.position;
123
119
  };
124
120
  return (e3, o2) => {
125
121
  const t2 = r("permission");
126
- return a($)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: d(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(F)], [t2, a(k) ? a(k) : "true"]]) : l("", true);
122
+ return a(H)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: m(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, a(F)], [t2, a(B) ? a(B) : "true"]]) : l("", true);
127
123
  };
128
124
  } });
129
125
  export {
130
- H as default
126
+ k as default
131
127
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./workflowbutton-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = t(o, [["__scopeId", "data-v-122e7d4a"]]);
4
+ const r = t(o, [["__scopeId", "data-v-8a8cf88f"]]);
5
5
  export {
6
6
  r as default
7
7
  };
package/dist/es/style.css CHANGED
@@ -525,16 +525,16 @@
525
525
  }
526
526
  .amb-button-group-main > div[data-v-9d55ce0b] {
527
527
  width: auto;
528
- }.amb-workflowbutton-runtime-view[data-v-122e7d4a] {
528
+ }.amb-workflowbutton-runtime-view[data-v-8a8cf88f] {
529
529
  min-height: 32px;
530
530
  display: flex;
531
531
  flex-wrap: wrap;
532
532
  gap: var(--amb-widget-container-tool-gap, 10px);
533
533
  }
534
- .amb-workflowbutton-runtime-view[data-v-122e7d4a]::after, .amb-workflowbutton-runtime-view[data-v-122e7d4a]::before {
534
+ .amb-workflowbutton-runtime-view[data-v-8a8cf88f]::after, .amb-workflowbutton-runtime-view[data-v-8a8cf88f]::before {
535
535
  display: none;
536
536
  }
537
- .amb-workflowbutton-runtime-view > div[data-v-122e7d4a] {
537
+ .amb-workflowbutton-runtime-view > div[data-v-8a8cf88f] {
538
538
  width: auto;
539
539
  }
540
540
  [data-v-57964c4a] .el-empty {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.91",
3
+ "version": "2.2.92",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -48,7 +48,7 @@
48
48
  "@vitejs/plugin-vue-jsx": "^3.1.0",
49
49
  "@vue/eslint-config-prettier": "^8.0.0",
50
50
  "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.1.31",
51
+ "agilebuilder-ui": "1.1.35",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",