super-page-runtime 2.2.90 → 2.2.91-sit5
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.
- package/dist/es/components/runtime/utils/charts/chart-util.js +26 -32
- package/dist/es/components/runtime/utils/common-util.js +31 -31
- package/dist/es/components/runtime/utils/events/event-util.js +7 -7
- package/dist/es/components/runtime/utils/events/standard-event.js +14 -14
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +9 -9
- package/dist/es/components/runtime/utils/page-permission-util.js +6 -6
- package/dist/es/components/runtime/utils/table-utils.js +5 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +134 -132
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +24 -24
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +51 -55
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/style.css +3 -3
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
5
|
-
import { addComponentRef as
|
|
6
|
-
import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as
|
|
7
|
-
import { caculateShowCondition as
|
|
8
|
-
import { isWorkflowPage as
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
const
|
|
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
|
|
14
|
-
null ==
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
let
|
|
18
|
-
if (
|
|
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 =
|
|
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 (
|
|
24
|
-
else if (
|
|
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 =
|
|
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 (
|
|
33
|
-
const e4 =
|
|
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 =
|
|
36
|
-
if (n2.rawSate = n2.state,
|
|
37
|
-
const e5 =
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
|
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(
|
|
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(
|
|
57
|
+
const q = o(null), z = o({}), A = o(""), D = S(k2.configure);
|
|
62
58
|
D && (A.value = D);
|
|
63
|
-
const G =
|
|
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 =
|
|
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 =
|
|
67
|
+
const I = M();
|
|
72
68
|
function K(e3) {
|
|
73
69
|
if (q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
74
|
-
|
|
70
|
+
E.value = "show";
|
|
75
71
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
76
|
-
|
|
72
|
+
E.value = "hide";
|
|
77
73
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
78
|
-
return
|
|
79
|
-
}),
|
|
80
|
-
else if ("table" ===
|
|
81
|
-
else if (
|
|
82
|
-
const e4 =
|
|
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(
|
|
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 =
|
|
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 =
|
|
87
|
+
e4 = L(e4), N(k2.pageContext, e4);
|
|
92
88
|
}
|
|
93
89
|
!function() {
|
|
94
90
|
if (!q.value) return;
|
|
95
|
-
const e4 =
|
|
96
|
-
"table" !==
|
|
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
|
-
|
|
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 =
|
|
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(
|
|
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
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
3
|
+
"version": "2.2.91-sit5",
|
|
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.
|
|
51
|
+
"agilebuilder-ui": "1.1.33-sit2",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|