super-page-runtime 2.3.41 → 2.3.42-cdn1
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/api/api-util.js +7 -4
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +22 -22
- package/dist/es/components/runtime/utils/events/event-util.js +45 -43
- package/dist/es/components/runtime/utils/events/standard-event.js +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +53 -53
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +94 -92
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +58 -56
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +154 -148
- 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
|
@@ -11,118 +11,121 @@ import { usePageContextStore as P } from "../../utils/page-store.js";
|
|
|
11
11
|
import { isHasFieldAuth as B } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
14
|
-
const
|
|
14
|
+
const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
15
15
|
var _a, _b, _c;
|
|
16
|
-
const
|
|
17
|
-
null ==
|
|
18
|
-
let
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
16
|
+
const L2 = e2;
|
|
17
|
+
null == L2.configure.style && (L2.configure.style = {});
|
|
18
|
+
let k = null;
|
|
19
|
+
const D = w(L2.configure, L2.pageContext);
|
|
20
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
|
|
21
|
+
const E = R(D || "true", L2.pageContext.systemCode), J = B(L2.pageContext, L2.configure), W = E && J;
|
|
22
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
|
|
23
23
|
let q = o(null), z = o(true), G = o("");
|
|
24
|
-
if (
|
|
24
|
+
if (L2.configure && L2.configure.props) {
|
|
25
25
|
let e3 = [];
|
|
26
|
-
((_a =
|
|
26
|
+
((_a = L2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof L2.configure.props.base.showConditions ? JSON.parse(L2.configure.props.base.showConditions) : L2.configure.props.base.showConditions), z = t(() => {
|
|
27
27
|
var _a2;
|
|
28
28
|
let o2 = true;
|
|
29
29
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
30
|
-
else if (H(
|
|
30
|
+
else if (H(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
|
|
31
31
|
else {
|
|
32
|
-
const e4 = (_a2 =
|
|
32
|
+
const e4 = (_a2 = L2.configure.props.base) == null ? void 0 : _a2.state;
|
|
33
33
|
e4 && "hidden" === e4 && (o2 = false);
|
|
34
34
|
}
|
|
35
35
|
else o2 = false;
|
|
36
36
|
else o2 = false;
|
|
37
37
|
return o2;
|
|
38
38
|
});
|
|
39
|
-
if (
|
|
40
|
-
if (
|
|
39
|
+
if (L2.configure._dynamicShowFlag = z, (_b = L2.configure.props) == null ? void 0 : _b.hiddenNotValidator) {
|
|
40
|
+
if (L2.pageContext.hiddenNotValidatorCodes || (L2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === L2.configure.name) k = L2.configure.code ? L2.configure.code : L2.configure.uuid;
|
|
41
41
|
else {
|
|
42
|
-
let e4 = N(
|
|
43
|
-
|
|
42
|
+
let e4 = N(L2.configure);
|
|
43
|
+
k = e4 && e4.length > 0 ? e4[1] : null;
|
|
44
44
|
}
|
|
45
45
|
n(z, (e4) => {
|
|
46
|
-
e4 ?
|
|
46
|
+
e4 ? L2.pageContext.hiddenNotValidatorCodes.delete(k) : L2.pageContext.hiddenNotValidatorCodes.add(k);
|
|
47
47
|
}, { immediate: true });
|
|
48
48
|
}
|
|
49
|
-
if ((_c =
|
|
50
|
-
const e4 =
|
|
49
|
+
if ((_c = L2.configure.props.base) == null ? void 0 : _c.editConditions) {
|
|
50
|
+
const e4 = L2.configure.props.base.editConditions;
|
|
51
51
|
if (e4.length > 0) {
|
|
52
|
-
const o2 =
|
|
53
|
-
if (n2.rawSate = n2.state, S(
|
|
54
|
-
const e5 =
|
|
52
|
+
const o2 = L2.configure.runtime ? L2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
53
|
+
if (n2.rawSate = n2.state, S(L2.pageContext) && L2.pageContext.fieldPermissionMap) {
|
|
54
|
+
const e5 = L2.configure.props.base;
|
|
55
55
|
if (e5 && e5.prop) {
|
|
56
56
|
let o3 = e5.prop;
|
|
57
57
|
o3 = _(o3);
|
|
58
|
-
const t2 =
|
|
58
|
+
const t2 = L2.pageContext.fieldPermissionMap.get(o3);
|
|
59
59
|
t2 && false === t2.canEdit && (G.value = "disabled");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
n2.state = t({ get() {
|
|
63
63
|
if ("disabled" === G.value) return G.value;
|
|
64
|
-
return V(
|
|
64
|
+
return V(L2.pageContext, e4) ? "" : "disabled";
|
|
65
65
|
}, set() {
|
|
66
66
|
} });
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
const I = o({});
|
|
71
|
-
I.value = i(h(
|
|
71
|
+
I.value = i(h(L2.configure.name));
|
|
72
72
|
const K = o(true);
|
|
73
73
|
null == I.value && (I.value = v, K.value = false);
|
|
74
|
-
const Q = o(null), U = o({}), X = o(""), Y = T(
|
|
74
|
+
const Q = o(null), U = o({}), X = o(""), Y = T(L2.configure);
|
|
75
75
|
Y && (X.value = Y);
|
|
76
|
-
const Z =
|
|
76
|
+
const Z = L2.configure.runtime && L2.configure.runtime.common ? L2.configure.runtime.common : {};
|
|
77
77
|
if (Z.class && (X.value += " " + Z.class), Z.style) {
|
|
78
78
|
Object.assign(U.value, Z.style);
|
|
79
|
-
const e3 =
|
|
79
|
+
const e3 = L2.pageContext && L2.pageContext.dimensions ? L2.pageContext.dimensions : b.PC, o2 = Z.style[e3 + "_style"];
|
|
80
80
|
o2 && Object.assign(U.value, o2);
|
|
81
81
|
const t2 = Z.style[e3 + "_class"];
|
|
82
82
|
t2 && (X.value += " " + t2);
|
|
83
83
|
}
|
|
84
84
|
const ee = P();
|
|
85
|
-
|
|
85
|
+
let oe = false;
|
|
86
|
+
function te(e3) {
|
|
87
|
+
var _a2, _b2, _c2;
|
|
88
|
+
if (!e3) return;
|
|
86
89
|
if (Q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
87
90
|
q.value = "show";
|
|
88
91
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
89
92
|
q.value = "hide";
|
|
90
93
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
91
|
-
return
|
|
92
|
-
}),
|
|
93
|
-
else if ("table" ===
|
|
94
|
-
else if (
|
|
95
|
-
const e4 =
|
|
94
|
+
return L2.configure;
|
|
95
|
+
}), L2.configure.uuid && x(L2.pageContext, L2.configure.uuid, Q), L2.configure.code) y(L2.pageContext, L2.configure.code, Q);
|
|
96
|
+
else if ("table" === L2.configure.name) y(L2.pageContext, L2.configure.uuid, Q);
|
|
97
|
+
else if (L2.configure.props && L2.configure.props.base) {
|
|
98
|
+
const e4 = L2.configure.props.base;
|
|
96
99
|
if (e4.prop) {
|
|
97
100
|
let o3 = e4.prop;
|
|
98
|
-
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(
|
|
101
|
+
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(L2.pageContext, o3, Q);
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
|
-
const o2 =
|
|
104
|
+
const o2 = L2.configure.props ? L2.configure.props.base : null;
|
|
102
105
|
if (o2 && o2.prop) {
|
|
103
106
|
let e4 = o2.prop;
|
|
104
|
-
e4 = _(e4), M(
|
|
107
|
+
e4 = _(e4), M(L2.pageContext, e4), L2.pageContext.propTitleMap = L2.pageContext.propTitleMap || {}, L2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
105
108
|
}
|
|
106
109
|
!function() {
|
|
107
110
|
if (!Q.value) return;
|
|
108
|
-
const e4 = A(
|
|
109
|
-
"table" !==
|
|
110
|
-
var
|
|
111
|
-
if (!(((
|
|
111
|
+
const e4 = A(L2.pageContext, L2.configure);
|
|
112
|
+
"table" !== L2.configure.name && e4 && e4.isCalcHeight && C(() => {
|
|
113
|
+
var _a3;
|
|
114
|
+
if (!(((_a3 = Q.value) == null ? void 0 : _a3.$el) || Q.value)) return;
|
|
112
115
|
const e5 = (o3 = 0) => {
|
|
113
116
|
if (!Q.value) return;
|
|
114
117
|
let t2 = Q.value.$el || Q.value;
|
|
115
118
|
if (!t2) return;
|
|
116
119
|
const n2 = t2.getBoundingClientRect();
|
|
117
|
-
null !==
|
|
120
|
+
null !== ie && Math.abs(n2.y - ie) < 1 ? ne() : o3 < 10 ? (ie = n2.y, re = setTimeout(() => {
|
|
118
121
|
e5(o3 + 1);
|
|
119
|
-
}, 50)) :
|
|
122
|
+
}, 50)) : ne();
|
|
120
123
|
};
|
|
121
|
-
|
|
124
|
+
ie = null, e5();
|
|
122
125
|
});
|
|
123
|
-
}();
|
|
126
|
+
}(), se(), oe || (oe = true, ee.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = L2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && ee.setAutoAnchorComponentConditions(L2.configure.uuid, L2.configure.props.base.autoAnchorConditions));
|
|
124
127
|
}
|
|
125
|
-
function
|
|
128
|
+
function ne() {
|
|
126
129
|
if (!Q.value) return;
|
|
127
130
|
let e3 = Q.value.$el;
|
|
128
131
|
e3 || (e3 = Q.value);
|
|
@@ -132,34 +135,33 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
132
135
|
let n2 = window.innerHeight - t2.y - 30;
|
|
133
136
|
window.innerHeight, t2.y;
|
|
134
137
|
let i2 = n2 + "";
|
|
135
|
-
if ("tabs" ===
|
|
138
|
+
if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
|
|
136
139
|
const o3 = e3.closest(".runtime-page-container");
|
|
137
140
|
if (o3) {
|
|
138
141
|
const e4 = o3.getBoundingClientRect(), r2 = t2.y - e4.y;
|
|
139
142
|
n2 = e4.height - r2 - 30, i2 = n2 + "px";
|
|
140
143
|
}
|
|
141
144
|
} else $(n2) && (i2 = n2 + "px");
|
|
142
|
-
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden",
|
|
145
|
+
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", L2.configure.sytle || (L2.configure.sytle = {}), L2.configure.sytle._heightStyle = i2;
|
|
143
146
|
}
|
|
144
147
|
r(() => {
|
|
145
|
-
|
|
146
|
-
re(), ee.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = k2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && ee.setAutoAnchorComponentConditions(k2.configure.uuid, k2.configure.props.base.autoAnchorConditions);
|
|
148
|
+
W && O(L2.configure) || ee.countComponentsLoadedNumber();
|
|
147
149
|
}), s(() => {
|
|
148
150
|
var _a2;
|
|
149
|
-
|
|
151
|
+
re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
|
|
150
152
|
});
|
|
151
|
-
let
|
|
152
|
-
const
|
|
153
|
+
let ie = null, re = null;
|
|
154
|
+
const se = () => {
|
|
153
155
|
if (!Q.value) return;
|
|
154
156
|
let e3 = Q.value.$el;
|
|
155
157
|
e3 || (e3 = Q.value);
|
|
156
158
|
const o2 = e3.parentNode;
|
|
157
159
|
if (!e3 || !o2) return;
|
|
158
|
-
const t2 =
|
|
160
|
+
const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
|
|
159
161
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
160
162
|
};
|
|
161
|
-
return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref:
|
|
163
|
+
return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
162
164
|
} });
|
|
163
165
|
export {
|
|
164
|
-
|
|
166
|
+
L as default
|
|
165
167
|
};
|
|
@@ -3,6 +3,7 @@ import { PageDesign } from '../utils/interfaces/page-design-types';
|
|
|
3
3
|
|
|
4
4
|
declare function pickFileDone(data: any): void;
|
|
5
5
|
declare function uploadFileDone(data: any): void;
|
|
6
|
+
declare function uploadFileError(data: any): void;
|
|
6
7
|
declare function scanDone(data: any): void;
|
|
7
8
|
declare function getFormFormatData(): any;
|
|
8
9
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -61,6 +62,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
61
62
|
}>, {
|
|
62
63
|
pickFileDone: typeof pickFileDone;
|
|
63
64
|
uploadFileDone: typeof uploadFileDone;
|
|
65
|
+
uploadFileError: typeof uploadFileError;
|
|
64
66
|
scanDone: typeof scanDone;
|
|
65
67
|
getFormFormatData: typeof getFormFormatData;
|
|
66
68
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|