super-page-runtime 2.2.40 → 2.2.44-tmp1
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/views/assemblys/chart/table/table-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -16
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +60 -48
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +46 -38
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +16 -16
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/style.css +28 -9
- package/package.json +2 -2
|
@@ -68,9 +68,8 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
68
68
|
}), a2.forEach((o5) => {
|
|
69
69
|
t2.forEach((r3) => {
|
|
70
70
|
var _a3;
|
|
71
|
-
(_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name;
|
|
72
|
-
|
|
73
|
-
e5.push(t3);
|
|
71
|
+
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = P(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
|
|
72
|
+
e5.push(i4);
|
|
74
73
|
});
|
|
75
74
|
}), e5;
|
|
76
75
|
}
|
|
@@ -132,7 +131,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
132
131
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
|
|
133
132
|
return L(e3, o2, B);
|
|
134
133
|
}
|
|
135
|
-
he && he.
|
|
134
|
+
he && he.fixHeight && (me = he.fixHeight), he && he.maxHeight && (me = he.maxHeight), me && (me = Number(me + "")), n(() => {
|
|
136
135
|
const e3 = b(B.pageContext, B.configure);
|
|
137
136
|
if (e3) ye(e3);
|
|
138
137
|
else if ("variable" === B.configure.props.dataOrigin.dataSource) {
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import { defineComponent as e,
|
|
2
|
-
import { ElCard as
|
|
3
|
-
import { SuperIcon as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as u, normalizeClass as a, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
|
|
2
|
+
import { ElCard as b } from "element-plus";
|
|
3
|
+
import { SuperIcon as h } from "agilebuilder-ui";
|
|
4
|
+
import { ArrowUp as k, ArrowDown as w } from "@element-plus/icons-vue";
|
|
5
|
+
import S from "../../object-render.vue.js";
|
|
6
|
+
import { $t as j } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { handleAfterInitEvent as T } from "../../../../utils/events/event-util.js";
|
|
8
|
+
const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
const _ = e2;
|
|
11
|
+
_.configure.items || (_.configure.items = []);
|
|
12
|
+
const R = t(() => {
|
|
13
|
+
var _a2;
|
|
14
|
+
return [true, void 0].includes((_a2 = _.configure.props) == null ? void 0 : _a2.isCollapse);
|
|
15
|
+
}), z = o(null), D = o(!((_a = _.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = _.configure.props) == null ? void 0 : _b.isCollapseShow)), q = _.configure.runtime ? _.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
|
|
16
|
+
return i(() => {
|
|
12
17
|
n(() => {
|
|
13
|
-
|
|
18
|
+
T(null, _.pageContext, _.configure, { componentRef: z.value, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
|
|
14
19
|
});
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
} }), (e3, t2) =>
|
|
20
|
+
}), V2({ test: function() {
|
|
21
|
+
_.configure.props.title = "teee";
|
|
22
|
+
} }), (e3, t2) => {
|
|
23
|
+
const o2 = r("el-button");
|
|
24
|
+
return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p([u(A), { "margin-top": "20px" }]), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e3.configure.items, (t3, o3) => (s(), l(S, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(o2, { key: 0, type: "text", icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
|
|
25
|
+
};
|
|
18
26
|
} });
|
|
19
27
|
export {
|
|
20
|
-
|
|
28
|
+
V as default
|
|
21
29
|
};
|
|
@@ -1,61 +1,73 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as o, nextTick as
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, createElementBlock as r, openBlock as s, createCommentVNode as u, createElementVNode as f, normalizeStyle as c, normalizeClass as d, renderSlot as p } from "vue";
|
|
2
|
+
const v = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: v2 }) {
|
|
3
|
+
const m = e2, w = v2, x = t(null), y = t(null), h = t(false), g = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = () => {
|
|
4
|
+
try {
|
|
5
|
+
if (!y.value) return;
|
|
6
|
+
const e3 = y.value.getBoundingClientRect(), t2 = T.value;
|
|
7
|
+
if (t2 === window) {
|
|
8
|
+
const t3 = "top" === m.position ? e3.top <= m.offset : e3.bottom >= window.innerHeight - m.offset;
|
|
9
|
+
B.value = 0, S(t3, e3);
|
|
10
|
+
} else if (m.stickyInScrollContainer) {
|
|
11
|
+
const o2 = t2.getBoundingClientRect(), { isFixTop: n2, isFixBottom: i2, containerOffset: l2 } = ((e4) => {
|
|
12
|
+
const t3 = ["top"].includes(m.position), o3 = ["bottom"].includes(m.position);
|
|
13
|
+
if (!x.value) return { isTop: t3, isBottom: o3 };
|
|
14
|
+
const n3 = x.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
|
|
15
|
+
return { isTop: t3, isBottom: o3, containerTop: r2, containerBottom: s2, containerOffset: t3 ? r2 : o3 ? s2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3 <= 0, isFixBottom: o3 && a2 <= 0 };
|
|
16
|
+
})(o2);
|
|
17
|
+
B.value = l2 ?? 0, S(n2 || i2 || false, e3);
|
|
18
|
+
}
|
|
19
|
+
} catch (e3) {
|
|
18
20
|
}
|
|
19
|
-
},
|
|
20
|
-
e3 !==
|
|
21
|
-
},
|
|
22
|
-
requestAnimationFrame(
|
|
21
|
+
}, S = (e3, t2) => {
|
|
22
|
+
e3 !== h.value && (h.value = e3, w("change", e3), g.value = e3 ? { width: `${t2.width}px`, height: `${t2.height}px` } : {});
|
|
23
|
+
}, C = () => {
|
|
24
|
+
requestAnimationFrame(E);
|
|
23
25
|
};
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
clearTimeout(
|
|
27
|
-
|
|
26
|
+
let L;
|
|
27
|
+
const k = () => {
|
|
28
|
+
h.value = false, clearTimeout(L), L = window.setTimeout(() => {
|
|
29
|
+
E();
|
|
28
30
|
}, 100);
|
|
29
31
|
};
|
|
30
32
|
o(() => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
n(() => {
|
|
35
|
+
try {
|
|
36
|
+
m.enableIntervalUpdate && (I.value = setInterval(C, m.enableIntervalTime));
|
|
37
|
+
const e3 = (() => {
|
|
38
|
+
if (m.autoDetectParentScroll && y.value) {
|
|
39
|
+
const e4 = [];
|
|
40
|
+
let t2 = y.value.parentElement;
|
|
41
|
+
for (; t2 && t2 !== document.body; ) {
|
|
42
|
+
const { overflowY: o2 } = window.getComputedStyle(t2);
|
|
43
|
+
/(auto|scroll)/.test(o2) && e4.push(t2), t2 = t2.parentElement;
|
|
44
|
+
}
|
|
45
|
+
return [...e4, window];
|
|
46
|
+
}
|
|
47
|
+
if ("string" == typeof m.target) {
|
|
48
|
+
const e4 = document.querySelector(m.target);
|
|
49
|
+
return [...e4 ? [e4] : [], window];
|
|
50
|
+
}
|
|
51
|
+
return [window];
|
|
52
|
+
})();
|
|
53
|
+
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", C)), window.addEventListener("resize", k), E();
|
|
54
|
+
} catch (e3) {
|
|
41
55
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
});
|
|
57
|
+
}, 100);
|
|
58
|
+
}), i(() => {
|
|
59
|
+
T.value && b.value.forEach((e3) => e3.removeEventListener("scroll", C)), window.removeEventListener("resize", k), clearTimeout(L), I.value && clearInterval(I.value);
|
|
60
|
+
}), l(() => {
|
|
61
|
+
n(() => {
|
|
62
|
+
C();
|
|
49
63
|
});
|
|
50
|
-
}), n(() => {
|
|
51
|
-
B.value && y.value.forEach((e3) => e3.removeEventListener("scroll", S)), window.removeEventListener("resize", L), clearTimeout(C);
|
|
52
64
|
});
|
|
53
|
-
const
|
|
65
|
+
const z = a(() => {
|
|
54
66
|
var _a;
|
|
55
|
-
return
|
|
67
|
+
return h.value ? { position: "fixed", width: `${(_a = y.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: m.zIndex, [m.position]: `${m.offset + B.value}px` } : { position: "relative" };
|
|
56
68
|
});
|
|
57
|
-
return (e3, t2) => (
|
|
69
|
+
return (e3, t2) => (s(), r("div", { ref_key: "affixMainRef", ref: x, class: "yx-affix" }, [h.value ? (s(), r("div", { key: 0, style: c(g.value), class: "yx-affix-placeholder" }, null, 4)) : u("", true), f("div", { ref_key: "affixRef", ref: y, style: c(z.value), class: d({ "yx-affix-content": true, "is-fixed": h.value, "is-top": "top" === m.position, "is-bottom": "bottom" === m.position }) }, [p(e3.$slots, "default")], 6)], 512));
|
|
58
70
|
} });
|
|
59
71
|
export {
|
|
60
|
-
|
|
72
|
+
v as default
|
|
61
73
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as o, onMounted as i, nextTick as a, onUnmounted as n, createBlock as l, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as o, onMounted as i, nextTick as a, onUnmounted as n, createBlock as l, createElementBlock as u, openBlock as s, withCtx as f, createElementVNode as r, normalizeStyle as p, normalizeClass as g, unref as d, Fragment as v, renderList as c } from "vue";
|
|
2
2
|
import m from "../../object-render.vue.js";
|
|
3
3
|
import { handleAfterInitEvent as x } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import y from "../fixed/YxAffix.vue.js";
|
|
@@ -6,7 +6,7 @@ import C from "../fixed/FixedBox.vue.js";
|
|
|
6
6
|
const b = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, k = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, w = { key: 2, "data-v": "1.0.0", class: "amb-widget-tools-parent" }, _ = e({ __name: "tools-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, j = t(null), R = _2.configure.runtime ?? {}, h = R.class, A = o(() => _2.configure.props), F = o(() => {
|
|
8
8
|
const { gap: e3 } = A.value ?? {};
|
|
9
|
-
return { ...e3 ? { gap: `${e3}px` } : {}, ...R.style ?? {} };
|
|
9
|
+
return { backgroundColor: "#fff", ...e3 ? { gap: `${e3}px` } : {}, ...R.style ?? {} };
|
|
10
10
|
}), B = o(() => {
|
|
11
11
|
var _a, _b, _c;
|
|
12
12
|
return !![(_a = A.value) == null ? void 0 : _a.isAffix, (_b = A.value) == null ? void 0 : _b.isFixed].every((e3) => void 0 === e3) || ((_c = A.value) == null ? void 0 : _c.isAffix);
|
|
@@ -25,7 +25,7 @@ const b = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, k = { "data-v
|
|
|
25
25
|
x(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
27
|
}), n(() => {
|
|
28
|
-
}), (e3, t2) => D.value ? (
|
|
28
|
+
}), (e3, t2) => D.value ? (s(), l(C, { key: 0, position: Y.value, offset: $.value }, { default: f(() => [r("div", b, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)])]), _: 1 }, 8, ["position", "offset"])) : B.value ? (s(), l(y, { key: 1, position: Y.value, offset: $.value }, { default: f(() => [r("div", k, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)])]), _: 1 }, 8, ["position", "offset"])) : (s(), u("div", w, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)]));
|
|
29
29
|
} });
|
|
30
30
|
export {
|
|
31
31
|
_ as default
|
|
@@ -4,42 +4,42 @@ import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
|
|
|
4
4
|
import { handleFormEvent as S, handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { $t as I } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
7
|
-
const
|
|
8
|
-
let
|
|
9
|
-
const
|
|
10
|
-
let e3 = x(
|
|
7
|
+
const q = e2, w = q.pageContext.entity ? q.pageContext.entity : {};
|
|
8
|
+
let z = R(q.pageContext, q.configure);
|
|
9
|
+
const D = t({ get() {
|
|
10
|
+
let e3 = x(w, z);
|
|
11
11
|
return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
|
|
12
12
|
}, set(e3) {
|
|
13
|
-
e3 && e3.length > 0 && (e3 = e3.join(",")), y(
|
|
14
|
-
} }),
|
|
15
|
-
|
|
16
|
-
const
|
|
13
|
+
e3 && e3.length > 0 && (e3 = e3.join(",")), y(w, z, e3);
|
|
14
|
+
} }), O = q.configure.runtime ? q.configure.runtime : {}, A = O.style, M = O.class, P = O.headerStyle, E = O.titleExceedStyle, F = l(O.props ? O.props : {}), T = l(F.value.options ? F.value.options : []), U = b(q.pageContext, q.configure);
|
|
15
|
+
U.length > 0 && (T.value = U);
|
|
16
|
+
const W = q.configure.props && q.configure.props.dataOrigin ? q.configure.props.dataOrigin : {}, B = W.optionValueSetType;
|
|
17
17
|
let G = [];
|
|
18
|
-
if (("dynamicData" == B || "dynamicData" == B || "service" == B) &&
|
|
19
|
-
|
|
18
|
+
if (("dynamicData" == B || "dynamicData" == B || "service" == B) && W.autoSets) for (let e3 of W.autoSets) e3.source && G.push(e3);
|
|
19
|
+
q.configure && q.configure.props && q.configure.props.base && q.configure.props.base.optionProp && G.push({ source: "label", target: q.configure.props.base.optionProp }), F.value.changeMethod = function(e3) {
|
|
20
20
|
if (G.length > -1) {
|
|
21
21
|
let t2 = null;
|
|
22
|
-
|
|
22
|
+
T.value && null != e3 && null != e3 && (t2 = T.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(q.configure, q.pageContext, G, t2);
|
|
23
23
|
}
|
|
24
|
-
S(e3,
|
|
24
|
+
S(e3, q.pageContext, q.configure, "change");
|
|
25
25
|
};
|
|
26
|
-
const H =
|
|
27
|
-
const J =
|
|
28
|
-
C(
|
|
29
|
-
_(
|
|
26
|
+
const H = F.value.optionconfigInfo ? F.value.optionconfigInfo : {};
|
|
27
|
+
const J = F.value.monitorFields;
|
|
28
|
+
C(q.pageContext, J, function() {
|
|
29
|
+
_(q.pageContext, H, void 0).then((e3) => {
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
const K = l(null), L = l(null), N = l(null);
|
|
33
33
|
return o(() => {
|
|
34
34
|
n(() => {
|
|
35
|
-
const e3 =
|
|
36
|
-
j(e3,
|
|
35
|
+
const e3 = D.value;
|
|
36
|
+
j(e3, q.pageContext, q.configure, { formItemRef: K.value, componentRef: L.value, titleRef: N.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
37
37
|
});
|
|
38
38
|
}), V2({ updateOptions: function(e3) {
|
|
39
|
-
|
|
39
|
+
T.value = e3 || [];
|
|
40
40
|
} }), (e3, t2) => {
|
|
41
41
|
const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
|
|
42
|
-
return i(), u(n2, { ref_key: "formItemRef", ref: K, class: s(p(
|
|
42
|
+
return i(), u(n2, { ref_key: "formItemRef", ref: K, class: s(p(M)), required: !!F.value.required, "label-width": F.value.labelWidth, style: r(p(A)) }, { label: c(() => [F.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: N, style: r({ ...p(P), ...p(E) }) }, h(p(I)(F.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === F.value.state, size: F.value.size, onChange: F.value.changeMethod, modelValue: D.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => D.value = e4) }, { default: c(() => [(i(true), g(v, null, d(T.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(S)(t3.value, e3.pageContext, e3.configure, "click", { values: D.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,59 +1,67 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as o, onMounted as t, 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
2
|
import { SuperIcon as T } from "agilebuilder-ui";
|
|
3
3
|
import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleAfterInitEvent as
|
|
6
|
-
import { formatScanRuleSets as j, analysisScanValue as
|
|
5
|
+
import { handleAfterInitEvent as w, handleFormEvent as b, doSuffixOrPrefixClickEvent as _ } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as j, analysisScanValue as S, setScanAnalysisValue as R } from "../../../../utils/form/scan-util.js";
|
|
7
7
|
import P from "../common/title-suffix-element.vue.js";
|
|
8
8
|
import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
|
|
9
9
|
import z from "../../../../utils/eventBus.js";
|
|
10
10
|
import { $t as D } 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
|
-
const
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
e3 = e3.trim(), V(
|
|
17
|
-
} }),
|
|
18
|
-
|
|
19
|
-
z.$on(
|
|
20
|
-
|
|
21
|
-
}),
|
|
22
|
-
const e3 =
|
|
23
|
-
|
|
13
|
+
const N = e2, O = N.pageContext.entity ? N.pageContext.entity : {};
|
|
14
|
+
let B = k(N.pageContext, N.configure);
|
|
15
|
+
const J = l(q()), M = N.pageContext.code, $ = l(B && B.length > 0 ? M + "__" + B.join("__") : null), A = o({ get: () => h(O, B), set(e3) {
|
|
16
|
+
e3 = e3.trim(), V(O, B, e3);
|
|
17
|
+
} }), E = l(null), F = l(null), U = l(null);
|
|
18
|
+
t(() => {
|
|
19
|
+
z.$on($.value + "-scanDone", (e3) => {
|
|
20
|
+
ae(e3.result);
|
|
21
|
+
}), n(() => {
|
|
22
|
+
const e3 = A.value;
|
|
23
|
+
w(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
|
-
}),
|
|
26
|
-
z.$off(
|
|
25
|
+
}), a(() => {
|
|
26
|
+
z.$off($.value + "-scanDone");
|
|
27
27
|
});
|
|
28
|
-
const W =
|
|
29
|
-
let K;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
let
|
|
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
|
+
let K = false;
|
|
30
|
+
const Q = window.localStorage.getItem("auth_source");
|
|
31
|
+
Q && "dingtalk" === Q && (K = true);
|
|
32
|
+
let X = "";
|
|
33
|
+
X = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
34
|
+
const Y = !(!J.value || !X || "app" !== X), Z = l(!!((Y || K) && H.value || J.value && H.value && "https:" === window.location.protocol));
|
|
35
|
+
let ee = {};
|
|
33
36
|
((_b = G.value.scan) == null ? void 0 : _b.enable) && ((_c = G.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (j(G.value.scan.ruleList).then((e3) => {
|
|
34
|
-
|
|
35
|
-
}),
|
|
36
|
-
const l2 =
|
|
37
|
-
l2 &&
|
|
37
|
+
ee = e3;
|
|
38
|
+
}), u(() => A.value, (e3) => {
|
|
39
|
+
const l2 = S(e3, ee);
|
|
40
|
+
l2 && R(N.pageContext, l2.scanSet, l2.params);
|
|
38
41
|
}));
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
return V(
|
|
42
|
+
const le = W.style, oe = W.class, te = W.headerStyle, ne = W.titleExceedStyle;
|
|
43
|
+
function ae(e3) {
|
|
44
|
+
return V(O, B, e3);
|
|
42
45
|
}
|
|
43
46
|
const ue = l(false);
|
|
44
|
-
function
|
|
45
|
-
ue.value = false,
|
|
47
|
+
function ie(e3) {
|
|
48
|
+
ue.value = false, ae(e3);
|
|
46
49
|
}
|
|
47
50
|
return L2({ getValue: function() {
|
|
48
|
-
return h(
|
|
49
|
-
}, setValue:
|
|
50
|
-
const
|
|
51
|
-
return c(), r(
|
|
52
|
-
if (
|
|
53
|
-
const e5 = { type: "scan", componentId:
|
|
51
|
+
return h(O, B);
|
|
52
|
+
}, setValue: ae }), (e3, l2) => {
|
|
53
|
+
const o2 = i("el-input"), t2 = i("scan-code-input-browser"), n2 = i("el-form-item");
|
|
54
|
+
return c(), r(n2, { ref_key: "formItemRef", ref: E, required: !!G.value.required, class: s(v(oe)), "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(te), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(D)(G.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(o2, { 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(b)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(b)(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(T), { 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(D)(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(T), { 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(D)(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(T), { 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(D)(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(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
|
|
55
|
+
if (Y || K) {
|
|
56
|
+
const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
|
|
57
|
+
K && (e5.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e5), "*");
|
|
58
|
+
} else if (J.value) if ("https:" === window.location.protocol) ue.value = true;
|
|
59
|
+
else {
|
|
60
|
+
const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
|
|
54
61
|
window.parent.postMessage(JSON.stringify(e5), "*");
|
|
55
|
-
}
|
|
56
|
-
|
|
62
|
+
}
|
|
63
|
+
else ue.value = true;
|
|
64
|
+
}()) })) : 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(t2, { key: 0, onClose: ie })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
57
65
|
};
|
|
58
66
|
} });
|
|
59
67
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
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 d, vShow as m, nextTick as
|
|
2
|
-
import
|
|
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 d, vShow as m, nextTick as v } from "vue";
|
|
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
|
|
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 _ } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as N, getFormPropName as P, getSizeConfig as L } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as O, getPropClassName as S, isNumber as M } from "../../utils/common-util.js";
|
|
9
9
|
import { isShowMobileEvent as T, isShowComponent as $ } from "../../utils/events/event-util.js";
|
|
@@ -12,21 +12,21 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
12
12
|
var _a, _b;
|
|
13
13
|
const H2 = e2;
|
|
14
14
|
null == H2.configure.style && (H2.configure.style = {});
|
|
15
|
-
const k =
|
|
16
|
-
H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = k),
|
|
17
|
-
let B = o(
|
|
15
|
+
const k = w(H2.configure, H2.pageContext);
|
|
16
|
+
H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = k), j(H2.pageContext, H2.configure);
|
|
17
|
+
let B = o(null), F = o(true), J = o("");
|
|
18
18
|
if (H2.configure && H2.configure.props) {
|
|
19
19
|
let e3 = [];
|
|
20
20
|
((_a = H2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof H2.configure.props.base.showConditions ? JSON.parse(H2.configure.props.base.showConditions) : H2.configure.props.base.showConditions), F = t(() => {
|
|
21
21
|
var _a2;
|
|
22
22
|
let o2 = true;
|
|
23
|
-
if (B.value
|
|
23
|
+
if (B.value && null !== B.value) o2 = "show" === B.value;
|
|
24
|
+
else if (T(H2.pageContext, H2.configure)) if (e3 && e3.length > 0) o2 = N(H2.pageContext, e3);
|
|
24
25
|
else {
|
|
25
26
|
const e4 = (_a2 = H2.configure.props.base) == null ? void 0 : _a2.state;
|
|
26
27
|
e4 && "hidden" === e4 && (o2 = false);
|
|
27
28
|
}
|
|
28
29
|
else o2 = false;
|
|
29
|
-
else o2 = false;
|
|
30
30
|
return o2;
|
|
31
31
|
});
|
|
32
32
|
if (H2.configure._dynamicShowFlag = F, (_b = H2.configure.props.base) == null ? void 0 : _b.editConditions) {
|
|
@@ -57,13 +57,13 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
57
57
|
const R = o({});
|
|
58
58
|
R.value = n(b(H2.configure.name));
|
|
59
59
|
const W = o(true);
|
|
60
|
-
null == R.value && (R.value =
|
|
60
|
+
null == R.value && (R.value = C, W.value = false);
|
|
61
61
|
const q = o(null), z = o({}), A = o(""), D = S(H2.configure);
|
|
62
62
|
D && (A.value = D);
|
|
63
63
|
const G = H2.configure.runtime && H2.configure.runtime.common ? H2.configure.runtime.common : {};
|
|
64
64
|
if (G.class && (A.value += " " + G.class), G.style) {
|
|
65
65
|
Object.assign(z.value, G.style);
|
|
66
|
-
const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions :
|
|
66
|
+
const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : h.PC, o2 = G.style[e3 + "_style"];
|
|
67
67
|
o2 && Object.assign(z.value, o2);
|
|
68
68
|
const t2 = G.style[e3 + "_class"];
|
|
69
69
|
t2 && (A.value += " " + t2);
|
|
@@ -71,12 +71,12 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
71
71
|
const I = E();
|
|
72
72
|
function K(e3) {
|
|
73
73
|
if (q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
74
|
-
B.value =
|
|
74
|
+
B.value = "show";
|
|
75
75
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
76
|
-
B.value =
|
|
76
|
+
B.value = "hide";
|
|
77
77
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
78
78
|
return H2.configure;
|
|
79
|
-
}), H2.configure.uuid &&
|
|
79
|
+
}), H2.configure.uuid && x(H2.pageContext, H2.configure.uuid, q), H2.configure.code) y(H2.pageContext, H2.configure.code, q);
|
|
80
80
|
else if (H2.configure.props && H2.configure.props.base) {
|
|
81
81
|
const e4 = H2.configure.props.base;
|
|
82
82
|
if (e4.prop) {
|
|
@@ -92,7 +92,7 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
92
92
|
!function() {
|
|
93
93
|
if (!q.value) return;
|
|
94
94
|
const e4 = L(H2.pageContext, H2.configure);
|
|
95
|
-
"table" !== H2.configure.name && e4 && e4.isCalcHeight &&
|
|
95
|
+
"table" !== H2.configure.name && e4 && e4.isCalcHeight && v(() => {
|
|
96
96
|
let e5 = q.value.$el;
|
|
97
97
|
e5 || (e5 = q.value);
|
|
98
98
|
const o3 = e5.parentNode;
|
|
@@ -121,7 +121,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
121
121
|
}), F.$on(qe.value + "close-dialog", (e7) => {
|
|
122
122
|
!function(e8) {
|
|
123
123
|
const l4 = e8.jumpMode;
|
|
124
|
-
l4 && "popup" === l4
|
|
124
|
+
l4 && "popup" === l4 ? ol(e8) : nl.go(-1);
|
|
125
125
|
}(e7);
|
|
126
126
|
});
|
|
127
127
|
}
|
package/dist/es/style.css
CHANGED
|
@@ -1,14 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
|
|
2
|
+
.yx-card-box-view-main[data-v-6e950bc1] > .el-card__header {
|
|
3
|
+
position: relative;
|
|
4
4
|
}
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
.yx-card-box-view-main .yx-card-box-view-header[data-v-6e950bc1] {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: 15px;
|
|
11
|
+
flex: 1 1 auto;
|
|
8
12
|
}
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
.yx-card-box-view-main .yx-card-box-view-title[data-v-6e950bc1] {
|
|
14
|
+
position: relative;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
flex: 1 1 auto;
|
|
17
|
+
}
|
|
18
|
+
.yx-card-box-view-main .yx-card-box-view-title[data-v-6e950bc1]::after {
|
|
19
|
+
content: ' ';
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 0;
|
|
22
|
+
top: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
z-index: 0;
|
|
26
|
+
}
|
|
27
|
+
.yx-card-box-view-main[data-collapse="false"][data-v-6e950bc1] > .el-card__body{
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
.el-form-item[data-v-96fc65d8] {
|
|
12
31
|
margin-bottom: 0px;
|
|
13
32
|
}
|
|
14
33
|
[data-v-16a29b68] .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.44-tmp1",
|
|
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.16-tmp6",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|