super-page-runtime 2.2.91-sit5 → 2.2.91-sit9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +1,35 @@
1
1
  import { getSystemBackendUrl as e } from "agilebuilder-ui/src/utils/common-util";
2
2
  import { getLanguageWithLocale as t } from "agilebuilder-ui/src/utils/util";
3
- function n(e2) {
3
+ function r(e2) {
4
4
  return "function" == typeof Array.isArray ? Array.isArray(e2) : "[object Array]" === Object.prototype.toString.call(e2);
5
5
  }
6
- function r(t2, n2) {
7
- if (n2) return t2;
6
+ function n(t2, r2) {
7
+ if (r2) return t2;
8
8
  {
9
- const { baseURL: n3, projectModel: r2 } = window.$vueApp.config.globalProperties;
10
- let i2 = n3;
11
- return "developing.model" === r2 || t2 && (i2 = e(t2)), i2;
9
+ const { baseURL: r3, projectModel: n2 } = window.$vueApp.config.globalProperties;
10
+ let i2 = r3;
11
+ return "developing.model" === n2 || t2 && (i2 = e(t2)), i2;
12
12
  }
13
13
  }
14
- function i(e2, t2, n2, i2) {
14
+ function i(e2, t2, r2, i2) {
15
15
  let o2 = e2;
16
- if (e2 && n2 && !function(e3) {
16
+ if (e2 && r2 && !function(e3) {
17
17
  return 0 === e3.indexOf("http:") || 0 === e3.indexOf("https:");
18
18
  }(e2)) {
19
- o2 = r(n2, i2) + "/" + t2 + e2;
19
+ o2 = n(r2, i2) + "/" + t2 + e2;
20
20
  }
21
21
  return o2;
22
22
  }
23
23
  function o(e2) {
24
24
  if (!e2) return e2;
25
- const n2 = t();
25
+ const r2 = t();
26
26
  if (Array.isArray(e2)) {
27
- const t2 = [], r2 = [], i2 = "~-~-";
27
+ const t2 = [], n2 = [], i2 = "~-~-";
28
28
  return e2.forEach((e3) => {
29
29
  const o2 = e3.templateName;
30
30
  if (o2.indexOf(i2) > 0) {
31
- const u2 = o2.substring(0, o2.indexOf(i2)), s2 = o2.substring(o2.indexOf(i2) + i2.length, o2.lastIndexOf(i2)), a2 = o2.substring(o2.lastIndexOf(i2) + i2.length);
32
- n2 === s2 && r2.indexOf(u2) < 0 && (t2.push({ templateUuid: e3.templateUuid, templateName: a2 }), r2.push(u2));
31
+ const u2 = o2.substring(0, o2.indexOf(i2)), s2 = o2.substring(o2.indexOf(i2) + i2.length, o2.lastIndexOf(i2)), l2 = o2.substring(o2.lastIndexOf(i2) + i2.length);
32
+ r2 === s2 && n2.indexOf(u2) < 0 && (t2.push({ templateUuid: e3.templateUuid, templateName: l2 }), n2.push(u2));
33
33
  } else t2.push(e3);
34
34
  }), t2;
35
35
  }
@@ -37,31 +37,31 @@ function o(e2) {
37
37
  function u(e2) {
38
38
  return e2.toLowerCase().replace(/( |^)[a-z]/g, (e3) => e3.toUpperCase());
39
39
  }
40
- function s(e2, t2, n2) {
41
- return "V" + t2 + "__" + e2 + "__" + n2;
40
+ function s(e2, t2, r2) {
41
+ return "V" + t2 + "__" + e2 + "__" + r2;
42
42
  }
43
- function a(e2) {
43
+ function l(e2) {
44
44
  if ("object" != typeof e2 || null == e2) return e2;
45
45
  const t2 = Array.isArray(e2) ? [] : {};
46
- for (const n2 in e2) e2.hasOwnProperty(n2) && (t2[n2] = a(e2[n2]));
46
+ for (const r2 in e2) e2.hasOwnProperty(r2) && (t2[r2] = l(e2[r2]));
47
47
  return t2;
48
48
  }
49
- function l(e2) {
49
+ function a(e2) {
50
50
  let t2;
51
51
  return e2.entity && e2.entity.data && (t2 = e2.entity.data.WORKFLOW_ID, t2 || (t2 = e2.entity.data.workflow_id), t2 || (t2 = e2.entity.data.workflowId)), t2;
52
52
  }
53
- function p(e2) {
53
+ function f(e2) {
54
54
  var _a, _b, _c, _d;
55
55
  let t2;
56
56
  if (e2 && ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop)) {
57
- let n2 = (_d = (_c = e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop;
58
- n2.indexOf("${") >= 0 && (n2 = n2.substring(2, n2.lastIndexOf("}")));
59
- const r2 = n2.split(".");
60
- 2 === r2.length ? t2 = r2[1] : 3 === r2.length && (t2 = r2[1] + "__" + r2[2]);
57
+ let r2 = (_d = (_c = e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop;
58
+ r2.indexOf("${") >= 0 && (r2 = r2.substring(2, r2.lastIndexOf("}")));
59
+ const n2 = r2.split(".");
60
+ 2 === n2.length ? t2 = n2[1] : 3 === n2.length && (t2 = n2[1] + "__" + n2[2]);
61
61
  } else e2.code && (t2 = e2.code);
62
62
  return t2;
63
63
  }
64
- function f(e2) {
64
+ function p(e2) {
65
65
  try {
66
66
  if (null != e2) {
67
67
  const t2 = parseInt(e2 + "");
@@ -73,7 +73,7 @@ function f(e2) {
73
73
  }
74
74
  }
75
75
  function c(e2) {
76
- return !!e2.isWorkflowEntity;
76
+ return !!e2.isWorkflowEntity || !(void 0 !== e2.isWorkflowEntity || !e2.workflowCode);
77
77
  }
78
78
  function d(e2, t2) {
79
79
  if (e2 && t2) {
@@ -85,14 +85,14 @@ function g(e2, t2) {
85
85
  return null === e2[t2] || void 0 === e2[t2] || "" === e2[t2];
86
86
  }
87
87
  export {
88
- a as deepCopy,
89
- r as getBaseUrl,
88
+ l as deepCopy,
89
+ n as getBaseUrl,
90
90
  s as getListCode,
91
- p as getPropClassName,
91
+ f as getPropClassName,
92
92
  i as getRealRestApiPath,
93
- l as getWorkflowId,
94
- n as isArrayFn,
95
- f as isNumber,
93
+ a as getWorkflowId,
94
+ r as isArrayFn,
95
+ p as isNumber,
96
96
  g as isVariableInvalidValue,
97
97
  c as isWorkflowPage,
98
98
  o as packageTemplateFiles,
@@ -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;
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: !!((_b = e2.props) == null ? void 0 : _b.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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.91-sit5",
3
+ "version": "2.2.91-sit9",
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.33-sit2",
51
+ "agilebuilder-ui": "1.1.33-sit3",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",