super-page-runtime 2.2.6 → 2.2.9

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,11 +1,11 @@
1
- import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, resolveDirective as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as p, openBlock as a, resolveDynamicComponent as c, normalizeClass as g, normalizeStyle as f, vShow as d, nextTick as v } from "vue";
1
+ import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, resolveDirective as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as p, openBlock as a, resolveDynamicComponent as c, normalizeClass as f, normalizeStyle as g, vShow as d, nextTick as v } from "vue";
2
2
  import m from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as C } from "../../utils/assemblys-config.js";
4
4
  import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef as h, addComponentRefByCode as b } from "../../utils/global-refs.js";
5
+ import { addComponentRef as b, addComponentRefByCode as h } from "../../utils/global-refs.js";
6
6
  import { getPermissionCodes as y, packageFormRules as w, controlObjectRenderState as j } from "../../utils/page-init-util.js";
7
- import { caculateShowCondition as _, getFormPropName as S, getSizeConfig as B } from "../../utils/page-helper-util.js";
8
- import { isWorkflowPage as O, getPropClassName as P, isNumber as R } from "../../utils/common-util.js";
7
+ import { caculateShowCondition as _, getFormPropName as B, getSizeConfig as O } from "../../utils/page-helper-util.js";
8
+ import { isWorkflowPage as P, getPropClassName as R, isNumber as S } from "../../utils/common-util.js";
9
9
  import { isShowComponent as M } from "../../utils/events/event-util.js";
10
10
  const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
11
11
  var _a, _b;
@@ -13,10 +13,10 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
13
13
  null == N2.configure.style && (N2.configure.style = {});
14
14
  const $ = y(N2.configure, N2.pageContext);
15
15
  N2.configure && N2.configure.props && N2.configure.props.base && (N2.configure.props.base.functionCode = $), w(N2.pageContext, N2.configure);
16
- let E = o(true), F = o(true), H = o("");
16
+ let E = o(true), H = o(true), k = o("");
17
17
  if (N2.configure && N2.configure.props) {
18
18
  let e3 = [];
19
- ((_a = N2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof N2.configure.props.base.showConditions ? JSON.parse(N2.configure.props.base.showConditions) : N2.configure.props.base.showConditions), F = t(() => {
19
+ ((_a = N2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof N2.configure.props.base.showConditions ? JSON.parse(N2.configure.props.base.showConditions) : N2.configure.props.base.showConditions), H = t(() => {
20
20
  var _a2;
21
21
  let o2 = true;
22
22
  if (E.value) if (e3 && e3.length > 0) o2 = _(N2.pageContext, e3);
@@ -25,38 +25,38 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
25
25
  e4 && "hidden" === e4 && (o2 = false);
26
26
  }
27
27
  else o2 = false;
28
- return N2.configure._dynamicShowFlag = o2, o2;
28
+ return o2;
29
29
  });
30
- if (N2.configure._dynamicShowFlag = F, (_b = N2.configure.props.base) == null ? void 0 : _b.editConditions) {
30
+ if (N2.configure._dynamicShowFlag = H, (_b = N2.configure.props.base) == null ? void 0 : _b.editConditions) {
31
31
  const e4 = N2.configure.props.base.editConditions;
32
32
  if (e4.length > 0) {
33
33
  const o2 = N2.configure.runtime ? N2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
34
- if (n2.rawSate = n2.state, O(N2.pageContext) && N2.pageContext.fieldPermissionMap) {
34
+ if (n2.rawSate = n2.state, P(N2.pageContext) && N2.pageContext.fieldPermissionMap) {
35
35
  const e5 = N2.pageContext.fieldPermissionMap.get("all_fields");
36
- if (false === (e5 == null ? void 0 : e5.canEdit)) H.value = "disabled";
36
+ if (false === (e5 == null ? void 0 : e5.canEdit)) k.value = "disabled";
37
37
  else {
38
38
  const e6 = N2.configure.props.base;
39
39
  if (e6 && e6.prop) {
40
40
  let o3 = e6.prop;
41
- o3 = S(o3);
41
+ o3 = B(o3);
42
42
  const t2 = N2.pageContext.fieldPermissionMap.get(o3);
43
- t2 && false === t2.canEdit && (H.value = "disabled");
43
+ t2 && false === t2.canEdit && (k.value = "disabled");
44
44
  }
45
45
  }
46
46
  }
47
47
  n2.state = t({ get() {
48
- if ("disabled" === H.value) return H.value;
48
+ if ("disabled" === k.value) return k.value;
49
49
  return _(N2.pageContext, e4) ? "" : "disabled";
50
50
  }, set() {
51
51
  } });
52
52
  }
53
53
  }
54
54
  }
55
- const k = o({});
56
- k.value = n(C(N2.configure.name));
55
+ const F = o({});
56
+ F.value = n(C(N2.configure.name));
57
57
  const J = o(true);
58
- null == k.value && (k.value = m, J.value = false);
59
- const W = o(null), q = o({}), z = o(""), A = P(N2.configure);
58
+ null == F.value && (F.value = m, J.value = false);
59
+ const W = o(null), q = o({}), z = o(""), A = R(N2.configure);
60
60
  A && (z.value = A);
61
61
  const D = N2.configure.runtime && N2.configure.runtime.common ? N2.configure.runtime.common : {};
62
62
  if (D.class && (z.value += " " + D.class), D.style) {
@@ -73,22 +73,22 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
73
73
  E.value = false;
74
74
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
75
75
  return N2.configure;
76
- }), N2.configure.uuid && h(N2.pageContext, N2.configure.uuid, W), N2.configure.code) b(N2.pageContext, N2.configure.code, W);
76
+ }), N2.configure.uuid && b(N2.pageContext, N2.configure.uuid, W), N2.configure.code) h(N2.pageContext, N2.configure.code, W);
77
77
  else if (N2.configure.props && N2.configure.props.base) {
78
78
  const e4 = N2.configure.props.base;
79
79
  if (e4.prop) {
80
80
  let o3 = e4.prop;
81
- o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), b(N2.pageContext, o3, W);
81
+ o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), h(N2.pageContext, o3, W);
82
82
  }
83
83
  }
84
84
  const o2 = N2.configure.props ? N2.configure.props.base : null;
85
85
  if (o2 && o2.prop) {
86
86
  let e4 = o2.prop;
87
- e4 = S(e4), j(N2.pageContext, e4);
87
+ e4 = B(e4), j(N2.pageContext, e4);
88
88
  }
89
89
  !function() {
90
90
  if (!W.value) return;
91
- const e4 = B(N2.pageContext, N2.configure);
91
+ const e4 = O(N2.pageContext, N2.configure);
92
92
  "table" !== N2.configure.name && e4 && e4.isCalcHeight && v(() => {
93
93
  let e5 = W.value.$el;
94
94
  e5 || (e5 = W.value);
@@ -96,7 +96,7 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
96
96
  if (!e5 || !o3) return;
97
97
  const t2 = e5.getBoundingClientRect();
98
98
  let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
99
- R(n2) && (i2 = n2 + "px"), q.value.height = i2, q.value["overflow-y"] = "auto", q.value["overflow-x"] = "hidden", N2.configure.sytle || (N2.configure.sytle = {}), N2.configure.sytle._heightStyle = i2;
99
+ S(n2) && (i2 = n2 + "px"), q.value.height = i2, q.value["overflow-y"] = "auto", q.value["overflow-x"] = "hidden", N2.configure.sytle || (N2.configure.sytle = {}), N2.configure.sytle._heightStyle = i2;
100
100
  });
101
101
  }();
102
102
  }
@@ -128,7 +128,7 @@ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
128
128
  };
129
129
  return (e3, o2) => {
130
130
  const t2 = s("permission");
131
- return l(M)(e3.configure) ? r((a(), p(c(k.value), { key: 0, ref: G, style: f(q.value), class: g(z.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, l(F)], [t2, l($) ? l($) : "true"]]) : u("", true);
131
+ return l(M)(e3.configure) ? r((a(), p(c(F.value), { key: 0, ref: G, style: g(q.value), class: f(z.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, l(H)], [t2, l($) ? l($) : "true"]]) : u("", true);
132
132
  };
133
133
  } });
134
134
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.6",
3
+ "version": "2.2.9",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",