super-page-runtime 2.2.48 → 2.2.51-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.
|
@@ -103,26 +103,37 @@ function P(e2, t2, s2, i2) {
|
|
|
103
103
|
return n2;
|
|
104
104
|
}
|
|
105
105
|
function M(e2, t2) {
|
|
106
|
-
if (!t2 || !e2 || t2.isTest) return "true";
|
|
107
106
|
const s2 = [];
|
|
108
107
|
if (e2.autoPermissions) for (const i2 of e2.autoPermissions) s2.push(t2.code + "." + i2.simpleCode);
|
|
109
108
|
if (e2.functionCodes) {
|
|
110
109
|
const i2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
|
|
111
110
|
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
112
|
-
const o2 = n2[e3];
|
|
113
|
-
let
|
|
114
|
-
|
|
111
|
+
const o2 = n2[e3], r2 = e3 < i2.length ? i2[e3] : "";
|
|
112
|
+
let l2 = "";
|
|
113
|
+
if ("service" == r2) l2 = o2;
|
|
114
|
+
else if ("standard" === r2) l2 = t2.code + "." + o2;
|
|
115
|
+
else {
|
|
116
|
+
l2 = "custom" === j(o2, t2).type ? o2 : t2.code + "." + o2;
|
|
117
|
+
}
|
|
118
|
+
s2.includes(l2) || s2.push(l2);
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
121
|
return s2.join(",");
|
|
118
122
|
}
|
|
119
|
-
function j(
|
|
123
|
+
function j(e2, t2) {
|
|
124
|
+
const s2 = t2.pagePermissions;
|
|
125
|
+
if (s2 && s2.length > 0) {
|
|
126
|
+
for (let t3 = 0; t3 < s2.length; t3++) if (s2[t3].simpleCode === e2) return s2[t3];
|
|
127
|
+
}
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
function C(s2, i2, n2) {
|
|
120
131
|
const o2 = s2.tableRuntimes, r2 = t(i2);
|
|
121
132
|
let l2;
|
|
122
133
|
const a2 = i2.code;
|
|
123
134
|
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: n2, pageType: s2.pageType });
|
|
124
135
|
}
|
|
125
|
-
function
|
|
136
|
+
function I(e2, t2) {
|
|
126
137
|
var _a, _b;
|
|
127
138
|
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
|
|
128
139
|
let n2 = false;
|
|
@@ -141,7 +152,7 @@ function C(e2, t2) {
|
|
|
141
152
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
|
|
142
153
|
}
|
|
143
154
|
}
|
|
144
|
-
function
|
|
155
|
+
function O(e2, t2) {
|
|
145
156
|
if (e2.initInfo) {
|
|
146
157
|
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((s2) => {
|
|
147
158
|
const i2 = e2.initInfo[s2];
|
|
@@ -157,7 +168,7 @@ function I(e2, t2) {
|
|
|
157
168
|
}
|
|
158
169
|
}
|
|
159
170
|
export {
|
|
160
|
-
|
|
171
|
+
O as controlObjectRenderState,
|
|
161
172
|
c as convertToPageContext,
|
|
162
173
|
P as getDefaultValue,
|
|
163
174
|
w as getFormModelFields,
|
|
@@ -166,7 +177,7 @@ export {
|
|
|
166
177
|
b as packageAdditionalMapWithLocationSearch,
|
|
167
178
|
y as packageAdditionalMapWithPageRequest,
|
|
168
179
|
h as packageAdditionalMapWithRoute,
|
|
169
|
-
|
|
180
|
+
I as packageFormRules,
|
|
170
181
|
f as queryPageDesignByCode,
|
|
171
|
-
|
|
182
|
+
C as queryPageSuperGrids
|
|
172
183
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, computed as t, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
|
|
2
|
-
import { SuperIcon as
|
|
3
|
-
import { getFormModelFields as
|
|
2
|
+
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
|
+
import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import {
|
|
6
|
-
import { formatScanRuleSets as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
5
|
+
import { handleFormEvent as w, handleAfterInitEvent as b, doSuffixOrPrefixClickEvent as _ } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as S, analysisScanValue as j, setScanAnalysisValue as R } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import D from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as P } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import q from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as z } from "../../../../utils/i18n-util.js";
|
|
11
11
|
const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
|
|
12
12
|
var _a, _b, _c;
|
|
13
13
|
const N = e2, O = N.pageContext.entity ? N.pageContext.entity : {};
|
|
14
|
-
let B =
|
|
15
|
-
const J = l(
|
|
14
|
+
let B = T(N.pageContext, N.configure);
|
|
15
|
+
const J = l(P()), M = N.pageContext.code, $ = l(B && B.length > 0 ? M + "__" + B.join("__") : null), A = t({ get: () => h(O, B), set(e3) {
|
|
16
16
|
e3 = e3.trim(), V(O, B, e3);
|
|
17
17
|
} }), E = l(null), F = l(null), U = l(null);
|
|
18
18
|
o(() => {
|
|
19
|
-
|
|
20
|
-
ae(e3.result);
|
|
19
|
+
q.$on($.value + "-scanDone", (e3) => {
|
|
20
|
+
ae(e3.result), w(e3.result, N.pageContext, N.configure, "afterScanDone");
|
|
21
21
|
}), n(() => {
|
|
22
22
|
const e3 = A.value;
|
|
23
|
-
|
|
23
|
+
b(e3, N.pageContext, N.configure, { formItemRef: E.value, componentRef: F.value, titleRef: U.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
24
24
|
});
|
|
25
25
|
}), a(() => {
|
|
26
|
-
|
|
26
|
+
q.$off($.value + "-scanDone");
|
|
27
27
|
});
|
|
28
28
|
const W = N.configure.runtime ? N.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
|
|
29
29
|
let K = false;
|
|
@@ -33,11 +33,11 @@ const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
33
33
|
X = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
34
34
|
const Y = !(!J.value || !X || "app" !== X), Z = l(!!((Y || K) && H.value || J.value && H.value && "https:" === window.location.protocol));
|
|
35
35
|
let ee = {};
|
|
36
|
-
((_b = G.value.scan) == null ? void 0 : _b.enable) && ((_c = G.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (
|
|
36
|
+
((_b = G.value.scan) == null ? void 0 : _b.enable) && ((_c = G.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (S(G.value.scan.ruleList).then((e3) => {
|
|
37
37
|
ee = e3;
|
|
38
38
|
}), u(() => A.value, (e3) => {
|
|
39
39
|
e3 = e3.trim();
|
|
40
|
-
const l2 =
|
|
40
|
+
const l2 = j(e3, ee);
|
|
41
41
|
l2 && R(N.pageContext, l2.scanSet, l2.params);
|
|
42
42
|
}));
|
|
43
43
|
const le = W.style, te = W.class, oe = W.headerStyle, ne = W.titleExceedStyle;
|
|
@@ -45,24 +45,25 @@ const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
45
45
|
return V(O, B, e3);
|
|
46
46
|
}
|
|
47
47
|
const ue = l(false);
|
|
48
|
-
function ie(
|
|
48
|
+
function ie() {
|
|
49
|
+
if (Y || K) {
|
|
50
|
+
const e3 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
|
|
51
|
+
K && (e3.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e3), "*");
|
|
52
|
+
} else if (J.value) if ("https:" === window.location.protocol) ue.value = true;
|
|
53
|
+
else {
|
|
54
|
+
const e3 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
|
|
55
|
+
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
56
|
+
}
|
|
57
|
+
else ue.value = true;
|
|
58
|
+
}
|
|
59
|
+
function re(e3) {
|
|
49
60
|
ue.value = false, ae(e3);
|
|
50
61
|
}
|
|
51
62
|
return L2({ getValue: function() {
|
|
52
63
|
return h(O, B);
|
|
53
|
-
}, setValue: ae }), (e3, l2) => {
|
|
64
|
+
}, setValue: ae, scanClick: ie }), (e3, l2) => {
|
|
54
65
|
const t2 = i("el-input"), o2 = i("scan-code-input-browser"), n2 = i("el-form-item");
|
|
55
|
-
return c(), r(n2, { ref_key: "formItemRef", ref: E, required: !!G.value.required, class: s(v(te)), "label-width": G.value.labelWidth, style: p(v(le)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(oe), ...v(ne) }) }, [G.value.prefixType ? (c(), r(
|
|
56
|
-
if (Y || K) {
|
|
57
|
-
const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
|
|
58
|
-
K && (e5.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e5), "*");
|
|
59
|
-
} else if (J.value) if ("https:" === window.location.protocol) ue.value = true;
|
|
60
|
-
else {
|
|
61
|
-
const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
|
|
62
|
-
window.parent.postMessage(JSON.stringify(e5), "*");
|
|
63
|
-
}
|
|
64
|
-
else ue.value = true;
|
|
65
|
-
}()) })) : y("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(o2, { key: 0, onClose: ie })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
66
|
+
return c(), r(n2, { ref_key: "formItemRef", ref: E, required: !!G.value.required, class: s(v(te)), "label-width": G.value.labelWidth, style: p(v(le)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(oe), ...v(ne) }) }, [G.value.prefixType ? (c(), r(D, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(z)(G.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(t2, { ref_key: "componentRef", ref: F, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.value.showInputNum, modelValue: A.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => A.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(k), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(k), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(k), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.sufText)), 1)]), key: "2" } : void 0, Z.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [Z.value ? (c(), r(v(k), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => ie()) })) : y("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(k), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(o2, { key: 0, onClose: re })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
66
67
|
};
|
|
67
68
|
} });
|
|
68
69
|
export {
|
package/dist/es/style.css
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
.runtime-page-container[data-v-
|
|
1
|
+
.runtime-page-container[data-v-72c824d1] {
|
|
2
2
|
overflow: auto;
|
|
3
3
|
height: 100%;
|
|
4
|
+
max-height: 100vh;
|
|
4
5
|
padding: var(--runtime-page-container-padding, 15px);
|
|
5
6
|
}
|
|
6
|
-
.runtime-page-container .runtime-page-container-view[data-v-
|
|
7
|
+
.runtime-page-container .runtime-page-container-view[data-v-72c824d1] {
|
|
7
8
|
display: flex;
|
|
8
9
|
flex-direction: column;
|
|
9
10
|
align-items: stretch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.51-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.
|
|
51
|
+
"agilebuilder-ui": "1.1.19-sit1",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|