super-page-runtime 2.3.19-sit3 → 2.3.20-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.
- package/dist/es/components/runtime/utils/anchor-util.d.ts +13 -0
- package/dist/es/components/runtime/utils/anchor-util.js +69 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +64 -60
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +23 -23
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +643 -615
- package/dist/es/components/runtime/utils/page-store.d.ts +13 -1
- package/dist/es/components/runtime/utils/page-store.js +46 -19
- package/dist/es/components/runtime/utils/table-utils.d.ts +2 -0
- package/dist/es/components/runtime/utils/table-utils.js +63 -54
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +20 -18
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +10 -11
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +27 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +59 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +176 -156
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +32 -34
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +193 -192
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted 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 m, nextTick as d } from "vue";
|
|
2
2
|
import C from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
-
import { addComponentRef as
|
|
5
|
+
import { addComponentRef as h, addComponentRefByCode as x } from "../../utils/global-refs.js";
|
|
6
6
|
import { getPermissionCodes as y, packageFormRules as j, controlObjectRenderState as w } from "../../utils/page-init-util.js";
|
|
7
|
-
import { caculateShowCondition as
|
|
8
|
-
import { isWorkflowPage as
|
|
9
|
-
import { isShowMobileEvent as
|
|
7
|
+
import { caculateShowCondition as M, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
|
+
import { isWorkflowPage as T, getPropClassName as $, isNumber as N } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
10
10
|
import { usePageContextStore as S } from "../../utils/page-store.js";
|
|
11
11
|
import { isHasFieldAuth as H } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as B } from "agilebuilder-ui/src/utils/permission.js";
|
|
@@ -16,16 +16,16 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
16
16
|
null == F2.configure.style && (F2.configure.style = {});
|
|
17
17
|
const R = y(F2.configure, F2.pageContext);
|
|
18
18
|
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.functionCode = R);
|
|
19
|
-
const k = B(R || "true", F2.pageContext.systemCode),
|
|
20
|
-
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission =
|
|
21
|
-
let
|
|
19
|
+
const k = B(R || "true", F2.pageContext.systemCode), E = H(F2.pageContext, F2.configure), J = k && E;
|
|
20
|
+
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J), j(F2.pageContext, F2.configure, J);
|
|
21
|
+
let L = o(null), W = o(true), q = o("");
|
|
22
22
|
if (F2.configure && F2.configure.props) {
|
|
23
23
|
let e3 = [];
|
|
24
24
|
((_a = F2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof F2.configure.props.base.showConditions ? JSON.parse(F2.configure.props.base.showConditions) : F2.configure.props.base.showConditions), W = t(() => {
|
|
25
25
|
var _a2;
|
|
26
26
|
let o2 = true;
|
|
27
|
-
if (
|
|
28
|
-
else if (
|
|
27
|
+
if (J) if (L.value && null !== L.value) o2 = "show" === L.value;
|
|
28
|
+
else if (O(F2.pageContext, F2.configure)) if (e3 && e3.length > 0) o2 = M(F2.pageContext, e3);
|
|
29
29
|
else {
|
|
30
30
|
const e4 = (_a2 = F2.configure.props.base) == null ? void 0 : _a2.state;
|
|
31
31
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -38,18 +38,18 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
38
38
|
const e4 = F2.configure.props.base.editConditions;
|
|
39
39
|
if (e4.length > 0) {
|
|
40
40
|
const o2 = F2.configure.runtime ? F2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
41
|
-
if (n2.rawSate = n2.state,
|
|
41
|
+
if (n2.rawSate = n2.state, T(F2.pageContext) && F2.pageContext.fieldPermissionMap) {
|
|
42
42
|
const e5 = F2.configure.props.base;
|
|
43
43
|
if (e5 && e5.prop) {
|
|
44
44
|
let o3 = e5.prop;
|
|
45
|
-
o3 =
|
|
45
|
+
o3 = _(o3);
|
|
46
46
|
const t2 = F2.pageContext.fieldPermissionMap.get(o3);
|
|
47
47
|
t2 && false === t2.canEdit && (q.value = "disabled");
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
n2.state = t({ get() {
|
|
51
51
|
if ("disabled" === q.value) return q.value;
|
|
52
|
-
return
|
|
52
|
+
return M(F2.pageContext, e4) ? "" : "disabled";
|
|
53
53
|
}, set() {
|
|
54
54
|
} });
|
|
55
55
|
}
|
|
@@ -59,7 +59,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
59
59
|
z.value = n(v(F2.configure.name));
|
|
60
60
|
const D = o(true);
|
|
61
61
|
null == z.value && (z.value = C, D.value = false);
|
|
62
|
-
const G = o(null), I = o({}), K = o(""), Q =
|
|
62
|
+
const G = o(null), I = o({}), K = o(""), Q = $(F2.configure);
|
|
63
63
|
Q && (K.value = Q);
|
|
64
64
|
const U = F2.configure.runtime && F2.configure.runtime.common ? F2.configure.runtime.common : {};
|
|
65
65
|
if (U.class && (K.value += " " + U.class), U.style) {
|
|
@@ -72,28 +72,28 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
72
72
|
const V = S();
|
|
73
73
|
function X(e3) {
|
|
74
74
|
if (G.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
75
|
-
|
|
75
|
+
L.value = "show";
|
|
76
76
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
77
|
-
|
|
77
|
+
L.value = "hide";
|
|
78
78
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
79
79
|
return F2.configure;
|
|
80
|
-
}), F2.configure.uuid &&
|
|
81
|
-
else if ("table" === F2.configure.name)
|
|
80
|
+
}), F2.configure.uuid && h(F2.pageContext, F2.configure.uuid, G), F2.configure.code) x(F2.pageContext, F2.configure.code, G);
|
|
81
|
+
else if ("table" === F2.configure.name) x(F2.pageContext, F2.configure.uuid, G);
|
|
82
82
|
else if (F2.configure.props && F2.configure.props.base) {
|
|
83
83
|
const e4 = F2.configure.props.base;
|
|
84
84
|
if (e4.prop) {
|
|
85
85
|
let o3 = e4.prop;
|
|
86
|
-
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)),
|
|
86
|
+
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), x(F2.pageContext, o3, G);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
const o2 = F2.configure.props ? F2.configure.props.base : null;
|
|
90
90
|
if (o2 && o2.prop) {
|
|
91
91
|
let e4 = o2.prop;
|
|
92
|
-
e4 =
|
|
92
|
+
e4 = _(e4), w(F2.pageContext, e4), F2.pageContext.propTitleMap = F2.pageContext.propTitleMap || {}, F2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
93
93
|
}
|
|
94
94
|
!function() {
|
|
95
95
|
if (!G.value) return;
|
|
96
|
-
const e4 =
|
|
96
|
+
const e4 = A(F2.pageContext, F2.configure);
|
|
97
97
|
"table" !== F2.configure.name && e4 && e4.isCalcHeight && d(() => {
|
|
98
98
|
var _a2;
|
|
99
99
|
if (!(((_a2 = G.value) == null ? void 0 : _a2.$el) || G.value)) return;
|
|
@@ -102,16 +102,15 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
102
102
|
let t2 = G.value.$el || G.value;
|
|
103
103
|
if (!t2) return;
|
|
104
104
|
const n2 = t2.getBoundingClientRect();
|
|
105
|
-
null !==
|
|
105
|
+
null !== Z && Math.abs(n2.y - Z) < 1 ? Y() : o3 < 10 ? (Z = n2.y, ee = setTimeout(() => {
|
|
106
106
|
e5(o3 + 1);
|
|
107
|
-
}, 50)) :
|
|
107
|
+
}, 50)) : Y();
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
Z = null, e5();
|
|
110
110
|
});
|
|
111
111
|
}();
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
function Z() {
|
|
113
|
+
function Y() {
|
|
115
114
|
if (!G.value) return;
|
|
116
115
|
let e3 = G.value.$el;
|
|
117
116
|
e3 || (e3 = G.value);
|
|
@@ -119,17 +118,16 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
119
118
|
if (!e3 || !o2) return;
|
|
120
119
|
const t2 = e3.getBoundingClientRect();
|
|
121
120
|
let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
|
|
122
|
-
|
|
121
|
+
N(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
|
|
123
122
|
}
|
|
124
123
|
i(() => {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}, 30);
|
|
124
|
+
var _a2, _b2, _c;
|
|
125
|
+
oe(), V.countComponentsLoadedNumber(), ((_c = (_b2 = (_a2 = F2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c.length) > 0 && V.setAutoAnchorComponentConditions(F2.configure.uuid, F2.configure.props.base.autoAnchorConditions);
|
|
128
126
|
}), s(() => {
|
|
129
|
-
|
|
127
|
+
ee && clearTimeout(ee);
|
|
130
128
|
});
|
|
131
|
-
let
|
|
132
|
-
const
|
|
129
|
+
let Z = null, ee = null;
|
|
130
|
+
const oe = () => {
|
|
133
131
|
if (!G.value) return;
|
|
134
132
|
let e3 = G.value.$el;
|
|
135
133
|
e3 || (e3 = G.value);
|
|
@@ -138,7 +136,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
138
136
|
const t2 = F2.configure.props ? F2.configure.props : {}, n2 = F2.configure.style ? F2.configure.style : {}, i2 = t2.position;
|
|
139
137
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
140
138
|
};
|
|
141
|
-
return (e3, o2) => l(
|
|
139
|
+
return (e3, o2) => l(J) && l(P)(e3.configure) ? r((a(), p(c(z.value), { key: 0, ref: X, style: f(I.value), class: g(K.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
|
|
142
140
|
} });
|
|
143
141
|
export {
|
|
144
142
|
F as default
|