super-page-runtime 2.2.89 → 2.2.91
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/events/print-label.js +34 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +256 -245
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +12 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -25
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +60 -52
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as i, nextTick as t, resolveComponent as n, createElementBlock as a, openBlock as u, createBlock as o, unref as c, normalizeStyle as s, normalizeClass as p, withCtx as r, createCommentVNode as v, Fragment as y, createTextVNode as g, toDisplayString as d } from "vue";
|
|
2
2
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
3
|
import { handleAfterInitEvent as f, handleEvent as m } from "../../../../utils/events/event-util.js";
|
|
4
|
-
import { $t as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
import { $t as x } from "../../../../utils/i18n-util.js";
|
|
5
|
+
const C = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
6
|
+
const T = e2, b = T.configure.runtime ? T.configure.runtime : {}, z = l(b.props ? b.props : {}), _ = b.style, h = b.class;
|
|
7
7
|
function P() {
|
|
8
8
|
return "disabled" === z.value.state || R();
|
|
9
9
|
}
|
|
10
10
|
function R() {
|
|
11
|
-
return void 0 !==
|
|
11
|
+
return void 0 !== T.pageContext.canClick && void 0 !== T.pageContext.clickUuid && (!T.pageContext.canClick && T.pageContext.clickUuid === T.configure.uuid);
|
|
12
12
|
}
|
|
13
13
|
const j = l(null);
|
|
14
14
|
return i(() => {
|
|
15
15
|
t(() => {
|
|
16
|
-
f(null,
|
|
16
|
+
f(null, T.pageContext, T.configure, { componentRef: j.value, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
|
|
17
17
|
});
|
|
18
18
|
}), V2({ click: function() {
|
|
19
19
|
j.value && j.value.$el.click();
|
|
20
20
|
} }), (e3, l2) => {
|
|
21
21
|
const i2 = n("el-link"), t2 = n("el-button");
|
|
22
|
-
return u(), a("span",
|
|
22
|
+
return u(), a("span", C, [z.value.text ? (u(), o(i2, { key: 0, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, loading: R(), onClick: l2[0] || (l2[0] = (l3) => c(m)(l3, e3.pageContext, e3.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(y, { key: 0 }, [g(d(c(x)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true), g(" " + d(c(x)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), o(t2, { key: 1, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: R(), onClick: l2[1] || (l2[1] = (l3) => c(m)(l3, e3.pageContext, e3.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(y, { key: 0 }, [g(d(c(x)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true), g(" " + d(c(x)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
|
@@ -38,6 +38,9 @@ class ExpressionEvaluator {
|
|
|
38
38
|
case "IS_NOT_NULL":
|
|
39
39
|
return `${a} !== null`;
|
|
40
40
|
case "IN":
|
|
41
|
+
if ("TEXT" === o) {
|
|
42
|
+
return `${n.split(",")}.includes(${a})`;
|
|
43
|
+
}
|
|
41
44
|
return `[${n}].includes(${a})`;
|
|
42
45
|
default:
|
|
43
46
|
throw new Error(`比较符号不匹配: ${t}`);
|
|
@@ -45,7 +48,13 @@ class ExpressionEvaluator {
|
|
|
45
48
|
}
|
|
46
49
|
static changeDataType(e) {
|
|
47
50
|
let t = e;
|
|
48
|
-
|
|
51
|
+
if (e) {
|
|
52
|
+
if ("TEXT" === e) t = "string";
|
|
53
|
+
else if ("DATE" === e || "TIME" === e) t = "date";
|
|
54
|
+
else if ("DOUBLE" === e || "FLOAT" === e || "INTEGER" === e || "LONG" === e) t = "number";
|
|
55
|
+
else if ("BOOLEAN" === e) return "boolean";
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
49
58
|
}
|
|
50
59
|
static parseValue(e, t) {
|
|
51
60
|
switch (t = this.changeDataType(t)) {
|
|
@@ -55,6 +64,8 @@ class ExpressionEvaluator {
|
|
|
55
64
|
return new Date(e).getTime();
|
|
56
65
|
case "string":
|
|
57
66
|
return `"${e}"`;
|
|
67
|
+
case "boolean":
|
|
68
|
+
return "true" === e || true === e || 1 === e;
|
|
58
69
|
default:
|
|
59
70
|
throw new Error(`数据类型解析错误: ${t}`);
|
|
60
71
|
}
|
|
@@ -247,7 +247,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
247
247
|
}(n2), columns: e3 };
|
|
248
248
|
} }), (o2, n2) => {
|
|
249
249
|
const r2 = t("el-table");
|
|
250
|
-
return a(), i("div", { style: p(
|
|
250
|
+
return a(), i("div", { style: p(l(Q)), class: u([l(W), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: l(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, l(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": l(de), "header-cell-style": Oe, "row-style": Se, "cell-style": we, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": Ee, "span-method": je }, { default: d(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ne(te.value[o3.columnUuid]) ? (a(), g(k, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g(F, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(h, { key: 1 }, v(ne.value, (o3, n3) => (a(), i(h, { key: n3 }, [Ne(o3) ? (a(), g(k, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : f("", true)], 64))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), g(I, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: $e, onPageSizeChange: Fe }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
|
|
251
251
|
};
|
|
252
252
|
} });
|
|
253
253
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -7,10 +7,10 @@ import V from "../common/title-suffix-element.vue.js";
|
|
|
7
7
|
import j from "dayjs";
|
|
8
8
|
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
9
9
|
const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
10
|
-
const _2 = e2, z = _2.pageContext.entity ? _2.pageContext.entity : {}, P = _2.configure.runtime ? _2.configure.runtime : {},
|
|
11
|
-
let I = h(_2.pageContext, _2.configure, q.value.prop), B = null,
|
|
10
|
+
const _2 = e2, z = _2.pageContext.entity ? _2.pageContext.entity : {}, P = _2.configure.runtime ? _2.configure.runtime : {}, S = P.style, w = P.class, A = P.headerStyle, D = P.titleExceedStyle, q = a(P.props ? P.props : {});
|
|
11
|
+
let I = h(_2.pageContext, _2.configure, q.value.prop), B = null, N = false;
|
|
12
12
|
if (q.value.dateType && q.value.dateType.includes("range")) {
|
|
13
|
-
|
|
13
|
+
N = true;
|
|
14
14
|
let e3 = q.value.prop2;
|
|
15
15
|
e3 && e3.startsWith("${") || (e3 = "${page." + _2.configure.uuid + "-2}");
|
|
16
16
|
const a2 = C(z, e3, null);
|
|
@@ -19,56 +19,59 @@ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
|
|
|
19
19
|
x(z, B, e4);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
function
|
|
22
|
+
const U = a(null), W = a(null), $ = a(null);
|
|
23
|
+
function E(e3, a2) {
|
|
24
24
|
if (!e3) return e3;
|
|
25
|
-
if (a2)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
if (a2) {
|
|
26
|
+
"number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
|
|
27
|
+
try {
|
|
28
|
+
const l2 = j(e3);
|
|
29
|
+
let t2 = null;
|
|
30
|
+
return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
|
|
31
|
+
} catch (a3) {
|
|
32
|
+
return e3;
|
|
33
|
+
}
|
|
31
34
|
}
|
|
32
35
|
return e3;
|
|
33
36
|
}
|
|
34
37
|
if (l(() => {
|
|
35
38
|
t(() => {
|
|
36
|
-
const e3 =
|
|
37
|
-
k(e3, _2.pageContext, _2.configure, { formItemRef:
|
|
39
|
+
const e3 = O.value;
|
|
40
|
+
k(e3, _2.pageContext, _2.configure, { formItemRef: U.value, componentRef: W.value, titleRef: $.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
38
41
|
});
|
|
39
42
|
}), I) {
|
|
40
|
-
const e3 = b(z, I), a2 =
|
|
43
|
+
const e3 = b(z, I), a2 = E(e3, q.value.valueFormat);
|
|
41
44
|
e3 !== a2 && x(z, I, a2);
|
|
42
45
|
}
|
|
43
46
|
if (B) {
|
|
44
|
-
const e3 = b(z, B), a2 =
|
|
47
|
+
const e3 = b(z, B), a2 = E(e3, q.value.valueFormat);
|
|
45
48
|
e3 !== a2 && x(z, B, a2);
|
|
46
49
|
}
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
50
|
+
const O = r({ get() {
|
|
51
|
+
if (N) {
|
|
49
52
|
const e3 = [];
|
|
50
53
|
let a2 = b(z, I);
|
|
51
|
-
e3.push(
|
|
54
|
+
e3.push(E(a2, q.value.valueFormat));
|
|
52
55
|
let l2 = b(z, B);
|
|
53
|
-
return e3.push(
|
|
56
|
+
return e3.push(E(l2, q.value.valueFormat)), e3;
|
|
54
57
|
}
|
|
55
|
-
return
|
|
58
|
+
return E(b(z, I), q.value.valueFormat);
|
|
56
59
|
}, set(e3) {
|
|
57
|
-
|
|
58
|
-
} }),
|
|
60
|
+
N ? Array.isArray(e3) ? (x(z, I, e3[0]), x(z, B, e3[1])) : null === e3 && (x(z, I, null), x(z, B, null)) : x(z, I, e3);
|
|
61
|
+
} }), G = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
|
|
59
62
|
if (q.value.shortcutsFunc) {
|
|
60
63
|
const e3 = F(_2.pageContext, q.value.shortcutsFunc);
|
|
61
64
|
if (e3) {
|
|
62
65
|
let a2 = e3.apply(e3, [{ pageContext: _2.pageContext, configureObj: _2.configure }]);
|
|
63
66
|
if (a2) {
|
|
64
|
-
Array.isArray(a2) || (a2 = [a2]),
|
|
65
|
-
for (let e4 of a2) e4.text && e4.value &&
|
|
67
|
+
Array.isArray(a2) || (a2 = [a2]), G.value || (G.value = []);
|
|
68
|
+
for (let e4 of a2) e4.text && e4.value && G.value.push(e4);
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
return (e3, a2) => {
|
|
70
73
|
const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
|
|
71
|
-
return n(), u(r2, { ref_key: "formItemRef", ref:
|
|
74
|
+
return n(), u(r2, { ref_key: "formItemRef", ref: U, required: q.value.required, class: p(s(w)), "label-width": q.value.labelWidth, style: i(s(S)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: $, style: i({ ...s(A), ...s(D) }) }, [q.value.prefixType ? (n(), u(V, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(R)(q.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: W, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), shortcuts: G.value, type: q.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: W, clearable: q.value.clearable, style: { width: "100%" }, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => O.value = e4), shortcuts: G.value, type: q.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
72
75
|
};
|
|
73
76
|
} });
|
|
74
77
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,61 +1,69 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as
|
|
2
|
-
import { getVariableValue as
|
|
3
|
-
import { handleAfterInitEvent as
|
|
4
|
-
import
|
|
5
|
-
import { FsUploadNew as
|
|
6
|
-
import
|
|
7
|
-
import { $t as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as i, nextTick as o, onUnmounted as a, resolveComponent as s, createBlock as n, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as m, unref as f, withCtx as c, createElementBlock as v, toDisplayString as d } from "vue";
|
|
2
|
+
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import x from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { FsUploadNew as b } from "agilebuilder-ui";
|
|
6
|
+
import k from "../../../../utils/eventBus.js";
|
|
7
|
+
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
8
|
+
const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
|
+
const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = t(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = G(S.prop), N = G(S.propName);
|
|
10
|
+
F && F.length > 1 && l(() => w2.pageContext.entity[F[0]][F[1]], (e3) => {
|
|
11
|
+
A(h(O, F));
|
|
12
|
+
});
|
|
13
|
+
const q = w2.pageContext.code, D = t(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = t(null), W = t(false), B = t([]), E = t({});
|
|
14
|
+
function A(e3) {
|
|
15
|
+
if (e3) {
|
|
16
|
+
const t2 = e3.split(",");
|
|
17
|
+
if (t2.length > 0) {
|
|
18
|
+
const e4 = w2.pageContext.backendUrl;
|
|
19
|
+
x.post(e4 + "/common/fs-upload/search-file-names", t2).then((e5) => {
|
|
20
|
+
B.value = [];
|
|
21
|
+
const l2 = [];
|
|
22
|
+
for (let i2 = 0; i2 < t2.length; i2++) {
|
|
23
|
+
const o2 = t2[i2];
|
|
24
|
+
l2.push(e5[o2]), B.value.push({ showName: e5[o2], serverPath: o2 });
|
|
25
|
+
}
|
|
26
|
+
"input" === j.value.displayType && (E.value.showName = l2.join(","), E.value.serverPath = t2.join(","));
|
|
27
|
+
}).finally(() => {
|
|
28
|
+
W.value = true;
|
|
29
|
+
});
|
|
30
|
+
} else W.value = true;
|
|
31
|
+
} else W.value = true;
|
|
32
|
+
}
|
|
33
|
+
function G(e3) {
|
|
27
34
|
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
28
35
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
36
|
+
function H(e3) {
|
|
37
|
+
return C(e3);
|
|
31
38
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
A(U);
|
|
40
|
+
const J = (e3, t2, l2) => {
|
|
41
|
+
L();
|
|
42
|
+
}, K = (e3) => {
|
|
43
|
+
L();
|
|
44
|
+
}, L = () => {
|
|
45
|
+
const e3 = [], t2 = [];
|
|
46
|
+
if (j.value.limit && B.value.length > j.value.limit) {
|
|
47
|
+
const e4 = B.value.length - j.value.limit;
|
|
48
|
+
for (let t3 = 0; t3 < e4; t3++) B.value.shift();
|
|
41
49
|
}
|
|
42
|
-
for (let
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}),
|
|
49
|
-
const e3 =
|
|
50
|
-
|
|
50
|
+
for (let l2 = 0; l2 < B.value.length; l2++) e3.push(B.value[l2].showName), t2.push(B.value[l2].serverPath);
|
|
51
|
+
y(w2.pageContext.entity, F, t2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
|
|
52
|
+
}, M = t(null), Q = t(null);
|
|
53
|
+
return i(() => {
|
|
54
|
+
k.$on(D.value + "-pickFileDone", (e3) => {
|
|
55
|
+
$.value.pickFileDone(e3);
|
|
56
|
+
}), o(() => {
|
|
57
|
+
const e3 = h(O, F), t2 = { showName: h(O, N), serverPath: e3 };
|
|
58
|
+
g(t2, w2.pageContext, w2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: t2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
|
|
51
59
|
});
|
|
52
|
-
}),
|
|
53
|
-
|
|
54
|
-
}), (e3,
|
|
55
|
-
const
|
|
56
|
-
return
|
|
60
|
+
}), a(() => {
|
|
61
|
+
k.$off(D.value + "-pickFileDone");
|
|
62
|
+
}), (e3, t2) => {
|
|
63
|
+
const l2 = s("el-form-item");
|
|
64
|
+
return j.value.tittleShow ? (p(), n(l2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: m(f(T)), "label-width": j.value.labelWidth, style: r(f(R)) }, { label: c(() => [j.value.tittleShow ? (p(), v("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...f(z), ...f(I) }) }, d(f(_)(j.value.title)), 5)) : u("", true)]), default: c(() => [W.value ? (p(), n(f(b), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), n(f(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
|
|
57
65
|
};
|
|
58
66
|
} });
|
|
59
67
|
export {
|
|
60
|
-
|
|
68
|
+
w as default
|
|
61
69
|
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as c, normalizeClass as s, unref as v, withCtx as f, createVNode as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as c, normalizeClass as s, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, 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 { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as w, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
@@ -67,7 +67,7 @@ const M = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
67
67
|
return b(B, J);
|
|
68
68
|
}, setValue: re, scanClick: ce }), (e3, t2) => {
|
|
69
69
|
const l2 = i("el-input"), o2 = i("scan-code-input-browser"), n2 = i("el-form-item");
|
|
70
|
-
return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: s(v(ae)), "label-width": Q.value.labelWidth, style: c(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: c({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(P, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(L)(Q.value.title)), 1)], 64))], 4)) :
|
|
70
|
+
return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: s(v(ae)), "label-width": Q.value.labelWidth, style: c(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: c({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(P, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(L)(Q.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: F.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "2" } : void 0, le.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [le.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : g("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), pe.value ? (p(), r(o2, { key: 0, onClose: se })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
71
71
|
};
|
|
72
72
|
} });
|
|
73
73
|
export {
|
|
@@ -108,7 +108,7 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
108
108
|
i(() => {
|
|
109
109
|
U(), I.countComponentsLoadedNumber(), Q = setTimeout(() => {
|
|
110
110
|
I.componentsTotalNmber !== I.componentsLoadedNumber || I.pageComponentsLoaded || I.setPageComponentsLoaded(true);
|
|
111
|
-
},
|
|
111
|
+
}, 30);
|
|
112
112
|
}), s(() => {
|
|
113
113
|
Q && clearTimeout(Q);
|
|
114
114
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as u, openBlock as t, withCtx as n, createElementBlock as o, createCommentVNode as r } from "vue";
|
|
2
2
|
import i from "./super-page.vue.js";
|
|
3
3
|
const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, g = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: g2 }) {
|
|
4
|
-
const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), V = a(null), x = a(
|
|
4
|
+
const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), V = a(null), x = a(true), S = a(false);
|
|
5
5
|
if (c) {
|
|
6
|
-
x.value = (c == null ? void 0 : c.alignCenter) ??
|
|
6
|
+
x.value = (c == null ? void 0 : c.alignCenter) ?? true, S.value = (c == null ? void 0 : c.fullscreen) ?? false, _.value = !(!c || void 0 === c._isIframe) && c._isIframe, V.value = c && c._path ? c._path : null, j.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
|
|
7
7
|
const e3 = !!c.isNeedId;
|
|
8
8
|
if (p.parentPageEventParams) {
|
|
9
9
|
try {
|