super-page-runtime 2.3.43-sit1 → 2.3.43-sit2
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.
|
@@ -186,8 +186,7 @@ function T(e2, t2) {
|
|
|
186
186
|
var _a, _b;
|
|
187
187
|
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
188
188
|
const n2 = [];
|
|
189
|
-
if (e2.
|
|
190
|
-
if (e2.functionCodes) {
|
|
189
|
+
if (e2.functionCodes && e2.functionCodes.length > 0) {
|
|
191
190
|
const i2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
|
|
192
191
|
for (let e3 = 0; e3 < s2.length; e3++) {
|
|
193
192
|
const o2 = s2[e3], r2 = e3 < i2.length ? i2[e3] : "";
|
|
@@ -199,7 +198,7 @@ function T(e2, t2) {
|
|
|
199
198
|
}
|
|
200
199
|
n2.includes(a2) || n2.push(a2);
|
|
201
200
|
}
|
|
202
|
-
}
|
|
201
|
+
} else if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
|
|
203
202
|
return n2.join(",");
|
|
204
203
|
}
|
|
205
204
|
function O(e2, t2) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as g, resolveDynamicComponent as c, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as C } from "vue";
|
|
2
2
|
import v from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as h } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes as
|
|
6
|
+
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
9
|
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
@@ -15,10 +15,10 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
15
15
|
var _a, _b, _c;
|
|
16
16
|
const L2 = e2;
|
|
17
17
|
null == L2.configure.style && (L2.configure.style = {});
|
|
18
|
-
let k, D =
|
|
19
|
-
|
|
20
|
-
const E = R(
|
|
21
|
-
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W),
|
|
18
|
+
let k = null, D = w(L2.configure, L2.pageContext);
|
|
19
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
|
|
20
|
+
const E = R(D || "true", L2.pageContext.systemCode), J = H(L2.pageContext, L2.configure), W = E && J;
|
|
21
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
|
|
22
22
|
let q = o(null), z = o(true), G = o("");
|
|
23
23
|
if (L2.configure && L2.configure.props) {
|
|
24
24
|
let e3 = [];
|
|
@@ -36,13 +36,13 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
36
36
|
return o2;
|
|
37
37
|
});
|
|
38
38
|
if (L2.configure._dynamicShowFlag = z, (_b = L2.configure.props) == null ? void 0 : _b.hiddenNotValidator) {
|
|
39
|
-
if (L2.pageContext.hiddenNotValidatorCodes || (L2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === L2.configure.name)
|
|
39
|
+
if (L2.pageContext.hiddenNotValidatorCodes || (L2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === L2.configure.name) k = L2.configure.code ? L2.configure.code : L2.configure.uuid;
|
|
40
40
|
else {
|
|
41
41
|
let e4 = N(L2.configure);
|
|
42
|
-
|
|
42
|
+
k = e4 && e4.length > 0 ? e4[1] : null;
|
|
43
43
|
}
|
|
44
44
|
n(z, (e4) => {
|
|
45
|
-
e4 ? L2.pageContext.hiddenNotValidatorCodes.delete(
|
|
45
|
+
e4 ? L2.pageContext.hiddenNotValidatorCodes.delete(k) : L2.pageContext.hiddenNotValidatorCodes.add(k);
|
|
46
46
|
}, { immediate: true });
|
|
47
47
|
}
|
|
48
48
|
if ((_c = L2.configure.props.base) == null ? void 0 : _c.editConditions) {
|
|
@@ -145,7 +145,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
145
145
|
W && P(L2.configure) || ee.countComponentsLoadedNumber();
|
|
146
146
|
}), s(() => {
|
|
147
147
|
var _a2;
|
|
148
|
-
re && clearTimeout(re),
|
|
148
|
+
re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
|
|
149
149
|
});
|
|
150
150
|
let ie = null, re = null;
|
|
151
151
|
const se = () => {
|
|
@@ -157,7 +157,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
157
157
|
const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
|
|
158
158
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
159
159
|
};
|
|
160
|
-
return (e3, o2) => a(W) && a(P)(e3.configure) ? u((
|
|
160
|
+
return (e3, o2) => a(W) && a(P)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
161
161
|
} });
|
|
162
162
|
export {
|
|
163
163
|
L as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.43-
|
|
3
|
+
"version": "2.3.43-sit2",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
50
50
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
51
51
|
"@vue/test-utils": "^2.4.4",
|
|
52
|
-
"agilebuilder-ui": "1.1.99-
|
|
52
|
+
"agilebuilder-ui": "1.1.99-sit2",
|
|
53
53
|
"axios": "^1.6.8",
|
|
54
54
|
"cypress": "^13.6.6",
|
|
55
55
|
"element-plus": "^2.6.1",
|