super-page-runtime 2.2.91 → 2.2.92-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-sit1",
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-sit1",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",