super-page-runtime 2.3.14 → 2.3.15-sit2
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/ai-chat-util.js +16 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +29 -29
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +163 -114
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +117 -88
- package/dist/es/components/runtime/utils/page-permission-util.js +1 -1
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +11 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +18 -18
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +53 -42
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +61 -62
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +81 -58
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -17
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- 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 +200 -185
- 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 +3 -2
|
@@ -5,7 +5,6 @@ import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/e
|
|
|
5
5
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
-
S.value;
|
|
9
8
|
let $ = S.value.formatting;
|
|
10
9
|
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
|
|
11
10
|
let e3 = b(D, h);
|
|
@@ -22,9 +21,9 @@ const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
22
21
|
const e3 = V.value;
|
|
23
22
|
k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
24
23
|
});
|
|
25
|
-
}), (
|
|
26
|
-
const
|
|
27
|
-
return o(), u(
|
|
24
|
+
}), (e3, t2) => {
|
|
25
|
+
const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
|
|
26
|
+
return o(), u(a2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
|
|
28
27
|
};
|
|
29
28
|
} });
|
|
30
29
|
export {
|
|
@@ -63,9 +63,9 @@ const w = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
63
63
|
B.value = e3 || [];
|
|
64
64
|
}, addRequiredClass: function() {
|
|
65
65
|
O.value = V();
|
|
66
|
-
} }), (
|
|
67
|
-
const
|
|
68
|
-
return s(), r(
|
|
66
|
+
} }), (e3, t2) => {
|
|
67
|
+
const l2 = i("el-radio"), o2 = i("el-radio-group"), n2 = i("el-form-item");
|
|
68
|
+
return s(), r(n2, { ref_key: "formItemRef", ref: te, required: A.value.required, class: f(c(F) + (O.value ? " " + O.value : "")), "label-width": A.value.labelWidth, style: p(c(E)) }, { label: g(() => [A.value.tittleShow ? (s(), v("div", { key: 0, ref_key: "titleRef", ref: oe, style: p({ ...c(U), ...c($) }) }, C(c(I)(A.value.title)), 5)) : b("", true)]), default: g(() => [d(o2, { ref_key: "componentRef", ref: le, disabled: "disabled" === A.value.state, size: A.value.size, onChange: A.value.changeMethod, modelValue: P.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => P.value = e4) }, { default: g(() => [(s(true), v(m, null, h(B.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.value, onClick: (l3) => c(T)(t3.value, e3.pageContext, e3.configure, "click", { values: P.value }) }, { default: g(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
69
69
|
};
|
|
70
70
|
} });
|
|
71
71
|
export {
|
|
@@ -1,102 +1,101 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { formatVariableValue as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createVNode as c, createBlock as p, createCommentVNode as d, normalizeStyle as g, normalizeClass as m, unref as f, withCtx as v, createElementVNode as h, toDisplayString as x } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getSizeConfig as C, formatVariableValue as b, setVariableValue as w, getVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import q from "quill";
|
|
5
5
|
import "quill/dist/quill.snow.css";
|
|
6
|
-
import { handleAfterInitEvent as
|
|
7
|
-
import
|
|
8
|
-
import { $t as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
let
|
|
6
|
+
import { handleAfterInitEvent as T, handleFormEvent as E } from "../../../../utils/events/event-util.js";
|
|
7
|
+
import L from "agilebuilder-ui/src/utils/request";
|
|
8
|
+
import { $t as R } from "../../../../utils/i18n-util.js";
|
|
9
|
+
import { getBaseUrl as j, addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
|
|
10
|
+
const B = { style: { width: "100%", height: "100%" } }, H = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
11
|
+
const M = e2, N = t(null), S = M.pageContext.entity ? M.pageContext.entity : {}, A = y(M.pageContext, M.configure), D = M.configure.runtime ? M.configure.runtime : {}, F = D.style, U = D.class, W = D.headerStyle, z = D.titleExceedStyle, I = t(D.props ? D.props : {});
|
|
12
|
+
C(M.pageContext, M.configure);
|
|
13
|
+
let O = I.value.value;
|
|
14
|
+
const G = b(M.pageContext, O), J = t(null);
|
|
15
|
+
let K = null;
|
|
16
16
|
t(null);
|
|
17
|
-
let
|
|
18
|
-
function
|
|
17
|
+
let P = I.value.state;
|
|
18
|
+
function Q(e3) {
|
|
19
19
|
return "readonly" == e3 || "disabled" == e3;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
l(
|
|
23
|
-
const e3 =
|
|
24
|
-
if (null != e3 && e3 !==
|
|
25
|
-
|
|
26
|
-
const t2 = P
|
|
27
|
-
|
|
21
|
+
const V = Q(P), X = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: V ? "" : I.value.placeholder, readOnly: V });
|
|
22
|
+
l(I.value, () => {
|
|
23
|
+
const e3 = I.value.state;
|
|
24
|
+
if (null != e3 && e3 !== P) {
|
|
25
|
+
P = e3;
|
|
26
|
+
const t2 = Q(P);
|
|
27
|
+
K && (K.enable(!t2), K.root.dataset.placeholder = t2 ? "" : I.value.placeholder);
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
const
|
|
31
|
-
let
|
|
32
|
-
function
|
|
30
|
+
const Y = t([]), Z = t(false), $ = t(null), ee = t(null), te = t(null);
|
|
31
|
+
let le;
|
|
32
|
+
function ne(e3) {
|
|
33
33
|
var _a;
|
|
34
|
-
null !== e3.relatedTarget && ((_a =
|
|
34
|
+
null !== e3.relatedTarget && ((_a = J.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || E(K.root.innerHTML, M.pageContext, M.configure, "change", { entity: S });
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function oe(e3) {
|
|
37
37
|
if ("img" === e3.target.localName) {
|
|
38
|
-
|
|
38
|
+
Y.value = [];
|
|
39
39
|
let t2 = e3.target.src;
|
|
40
|
-
|
|
40
|
+
Y.value.push(t2), Z.value = true;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ie(e3) {
|
|
44
44
|
const t2 = new FormData();
|
|
45
45
|
t2.append("file", e3);
|
|
46
|
-
const l2 =
|
|
47
|
-
return
|
|
46
|
+
const l2 = M.pageContext.backendUrl, n2 = j(l2, M.pageContext.isTest);
|
|
47
|
+
return L.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], o2 = atob(l2[1]), i2 = o2.length,
|
|
51
|
-
for (; i2--; )
|
|
52
|
-
return new File([
|
|
49
|
+
function ae(e3, t2) {
|
|
50
|
+
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], o2 = atob(l2[1]), i2 = o2.length, a2 = new Uint8Array(i2);
|
|
51
|
+
for (; i2--; ) a2[i2] = o2.charCodeAt(i2);
|
|
52
|
+
return new File([a2], t2, { type: n2 });
|
|
53
53
|
}
|
|
54
54
|
return n(() => {
|
|
55
55
|
var _a;
|
|
56
|
-
|
|
57
|
-
const e3 =
|
|
58
|
-
|
|
56
|
+
K = new q(J.value, X.value);
|
|
57
|
+
const e3 = K.clipboard.convertHTML(G);
|
|
58
|
+
K.setContents(e3.ops), (_a = J.value) == null ? void 0 : _a.addEventListener("focusout", ne), K.on("text-change", async function(e4, t2, l2) {
|
|
59
59
|
if (e4.ops && e4.ops.length > 0) for (let t3 = 0; t3 < e4.ops.length; t3++) {
|
|
60
60
|
const l3 = e4.ops[t3];
|
|
61
61
|
if (l3.insert && l3.insert.image) {
|
|
62
62
|
const e5 = l3.insert.image;
|
|
63
63
|
if (!e5.startsWith("data:image")) return;
|
|
64
|
-
const t4 =
|
|
65
|
-
await
|
|
66
|
-
if (!
|
|
67
|
-
const l4 =
|
|
64
|
+
const t4 = ae(e5, "image.png");
|
|
65
|
+
await ie(t4).then((t5) => {
|
|
66
|
+
if (!K) return;
|
|
67
|
+
const l4 = K.root.getElementsByTagName("img");
|
|
68
68
|
if (l4 && l4.length > 0) for (let n3 = 0; n3 < l4.length; n3++) {
|
|
69
69
|
const o2 = l4[n3];
|
|
70
|
-
o2.src === e5 && (o2.src = t5.url
|
|
70
|
+
o2.src === e5 && (o2.src = t5.url);
|
|
71
71
|
}
|
|
72
72
|
}).catch((e6) => {
|
|
73
|
-
console.error(e6, "上传图片失败");
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
|
-
const n2 =
|
|
78
|
-
|
|
79
|
-
}),
|
|
80
|
-
if (
|
|
81
|
-
const e4 =
|
|
76
|
+
const n2 = K.root.innerHTML;
|
|
77
|
+
w(S, A, n2), null != n2 && "" !== n2 && (N.value = "");
|
|
78
|
+
}), le = K.container, le.addEventListener("click", oe), function() {
|
|
79
|
+
if (K && K.container) {
|
|
80
|
+
const e4 = K.container.parentNode.getBoundingClientRect(), t2 = K.container.getBoundingClientRect();
|
|
82
81
|
let l2 = e4.height - (t2.top - e4.top);
|
|
83
|
-
l2 < 100 && (l2 = 100),
|
|
82
|
+
l2 < 100 && (l2 = 100), K.container.style.height = l2 + "px";
|
|
84
83
|
}
|
|
85
84
|
}(), o(() => {
|
|
86
|
-
const e4 =
|
|
87
|
-
|
|
85
|
+
const e4 = k(S, A);
|
|
86
|
+
T(e4, M.pageContext, M.configure, { formItemRef: $.value, componentRef: ee.value, titleRef: te.value, value: e4, entity: M.pageContext.entity.data, pageData: M.pageContext.entity.page });
|
|
88
87
|
});
|
|
89
88
|
}), i(() => {
|
|
90
|
-
|
|
91
|
-
}),
|
|
92
|
-
|
|
89
|
+
J.value && J.value.removeEventListener("focusout", ne), le && le.removeEventListener("click", oe);
|
|
90
|
+
}), H2({ addRequiredClass: function() {
|
|
91
|
+
N.value = _();
|
|
93
92
|
} }), (e3, t2) => {
|
|
94
|
-
const l2 =
|
|
95
|
-
return u(),
|
|
96
|
-
|
|
97
|
-
}), "url-list":
|
|
93
|
+
const l2 = a("el-form-item"), n2 = a("el-image-viewer");
|
|
94
|
+
return u(), r(s, null, [c(l2, { required: I.value.required, class: m(f(U) + (N.value ? " " + N.value : "")), "label-width": I.value.labelWidth, style: g(f(F)) }, { label: v(() => [I.value.tittleShow ? (u(), r("div", { key: 0, style: g({ ...f(W), ...f(z) }) }, x(f(R)(I.value.title)), 5)) : d("", true)]), default: v(() => [h("div", B, [h("div", { ref_key: "quillEditorRef", ref: J, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]), Z.value ? (u(), p(n2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
95
|
+
Z.value = false;
|
|
96
|
+
}), "url-list": Y.value }, null, 8, ["url-list"])) : d("", true)], 64);
|
|
98
97
|
};
|
|
99
98
|
} });
|
|
100
99
|
export {
|
|
101
|
-
|
|
100
|
+
H as default
|
|
102
101
|
};
|
|
@@ -1,97 +1,120 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as
|
|
2
|
-
import { setVariableValue as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as r, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, withCtx as v, createVNode as g, createElementVNode as m, createElementBlock as d, Fragment as h, renderList as y, createCommentVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
|
|
2
|
+
import { setVariableValue as _, getOptionDatasFromPage as w, queryOptionDatasources as S, autoSetAfterSelect as k, getVariableValue as T } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as A } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as j, handleAfterInitEvent as R } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import V from "../common/title-suffix-element.vue.js";
|
|
6
|
-
import { $t as
|
|
7
|
-
import { addRequiredClassUtil as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import { $t as M } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as q } from "../../../../utils/common-util.js";
|
|
8
|
+
import { CopyDocument as z } from "@element-plus/icons-vue";
|
|
9
|
+
import E from "clipboard";
|
|
10
|
+
import { ElMessage as I } from "element-plus";
|
|
11
|
+
import { useI18n as P } from "vue-i18n";
|
|
12
|
+
const D = { style: { "padding-left": "5px" } }, O = { style: { float: "left" } }, W = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, B = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
|
+
const { t: F } = P(), U = e2, $ = t(null), G = U.pageContext.entity ? U.pageContext.entity : {};
|
|
14
|
+
let H = A(U.pageContext, U.configure);
|
|
15
|
+
const J = U.configure.runtime ? U.configure.runtime : {}, K = J.style, L = J.class, N = J.headerStyle, Q = J.titleExceedStyle, X = t(J.props ? J.props : {});
|
|
16
|
+
let Y = [];
|
|
17
|
+
const Z = "copyBtn_" + U.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
|
+
function ee() {
|
|
19
|
+
let e3 = T(G, H);
|
|
20
|
+
return null != e3 && (e3 = String(e3)), X.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
16
21
|
}
|
|
17
|
-
const
|
|
18
|
-
const t2 =
|
|
19
|
-
|
|
22
|
+
const te = l({ get: () => ee(), set(e3) {
|
|
23
|
+
const t2 = ee();
|
|
24
|
+
Y = Array.isArray(t2) ? [...t2] : t2;
|
|
20
25
|
let l2 = e3;
|
|
21
|
-
if (
|
|
22
|
-
l2 = !!
|
|
26
|
+
if (X.value.multiple) {
|
|
27
|
+
l2 = !!X.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
|
|
23
28
|
}
|
|
24
|
-
|
|
25
|
-
} }),
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
let
|
|
29
|
-
const
|
|
30
|
-
if ("dynamicData" ==
|
|
31
|
-
if ("remote" ==
|
|
29
|
+
_(G, H, l2), null != l2 && ($.value = "");
|
|
30
|
+
} }), le = t(X.value.options ? X.value.options : []), oe = w(U.pageContext, U.configure);
|
|
31
|
+
oe.length > 0 && (le.value = oe);
|
|
32
|
+
const ae = t(false), ue = U.configure.props && U.configure.props.dataOrigin ? U.configure.props.dataOrigin : {}, ne = ue.optionValueSetType;
|
|
33
|
+
let re = [];
|
|
34
|
+
const ie = X.value.optionconfigInfo ? X.value.optionconfigInfo : {};
|
|
35
|
+
if ("dynamicData" == ne || "dataTable" == ne || "service" == ne) {
|
|
36
|
+
if ("remote" == ue.filterType) {
|
|
32
37
|
let e3;
|
|
33
|
-
|
|
34
|
-
e3 !== t2 && (e3 = t2,
|
|
35
|
-
|
|
38
|
+
X.value.filterable = true, X.value.remote = true, X.value.remoteShowSuffix = true, X.value.remoteMethod = function(t2) {
|
|
39
|
+
e3 !== t2 && (e3 = t2, ae.value = true, S(U.pageContext, ie, t2).then((e4) => {
|
|
40
|
+
ae.value = false;
|
|
36
41
|
}).then((e4) => {
|
|
37
|
-
|
|
42
|
+
ae.value = false;
|
|
38
43
|
}));
|
|
39
44
|
};
|
|
40
45
|
}
|
|
41
|
-
if (
|
|
46
|
+
if (ue.autoSets) for (let e3 of ue.autoSets) e3.source && re.push(e3);
|
|
42
47
|
}
|
|
43
|
-
|
|
48
|
+
U.configure && U.configure.props && U.configure.props.base && U.configure.props.base.optionProp && re.push({ source: "label", target: U.configure.props.base.optionProp }), X.value.changeMethod = function(e3) {
|
|
44
49
|
let t2, l2 = null;
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
le.value && null != e3 && null != e3 && (l2 = le.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
|
|
51
|
+
re.length > 0 && k(U.configure, U.pageContext, re, l2, [X.value.prop]);
|
|
47
52
|
l2 && l2.length > 0 && (t2 = l2[0]);
|
|
48
53
|
let o2 = {};
|
|
49
54
|
t2 && (o2.extendParams = t2);
|
|
50
|
-
o2.options =
|
|
55
|
+
o2.options = le.value, o2.oldValue = Y, j(e3, U.pageContext, U.configure, "change", o2);
|
|
51
56
|
};
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
57
|
+
const se = X.value.monitorFields, pe = [];
|
|
58
|
+
if (se) {
|
|
54
59
|
const e3 = [];
|
|
55
|
-
for (let t2 of
|
|
60
|
+
for (let t2 of se) if (t2.startsWith("${")) {
|
|
56
61
|
t2 = t2.substring(2, t2.length - 1);
|
|
57
62
|
const l2 = t2.split(".");
|
|
58
|
-
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (
|
|
63
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (pe.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
59
64
|
}
|
|
60
|
-
for (let t2 of e3) o(
|
|
61
|
-
|
|
65
|
+
for (let t2 of e3) o(G[t2], () => {
|
|
66
|
+
ve();
|
|
62
67
|
});
|
|
63
68
|
}
|
|
64
|
-
let
|
|
65
|
-
function
|
|
66
|
-
|
|
69
|
+
let ce = "", fe = false;
|
|
70
|
+
function ve() {
|
|
71
|
+
fe && clearTimeout(fe), fe = setTimeout(function() {
|
|
67
72
|
const e3 = function() {
|
|
68
73
|
let e4 = [];
|
|
69
|
-
for (let t2 of
|
|
74
|
+
for (let t2 of pe) e4.push(T(G, t2));
|
|
70
75
|
return e4.join(",");
|
|
71
76
|
}();
|
|
72
|
-
e3 !=
|
|
73
|
-
|
|
77
|
+
e3 != ce && (ce = e3, ie.watchAttrValue = e3, S(U.pageContext, ie, void 0).then((e4) => {
|
|
78
|
+
ae.value = false;
|
|
74
79
|
}));
|
|
75
80
|
}, 200);
|
|
76
81
|
}
|
|
77
82
|
a(() => {
|
|
78
|
-
|
|
83
|
+
fe && clearTimeout(fe);
|
|
79
84
|
});
|
|
80
|
-
const
|
|
85
|
+
const ge = t(null), me = t(null), de = t(null);
|
|
81
86
|
return u(() => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
const e3 = new E("#" + Z, { text: function() {
|
|
88
|
+
return function() {
|
|
89
|
+
const e4 = ee();
|
|
90
|
+
if (null != e4 && "" !== e4 && e4.length > 0) {
|
|
91
|
+
let t2 = "";
|
|
92
|
+
return "string" == typeof e4 ? le.value.forEach((l2) => {
|
|
93
|
+
l2.value === e4 && (t2 = l2.label);
|
|
94
|
+
}) : (le.value.forEach((l2) => {
|
|
95
|
+
e4.forEach((e5) => {
|
|
96
|
+
l2.value === e5 && (t2 = t2 + l2.label + ",");
|
|
97
|
+
});
|
|
98
|
+
}), t2 = t2.slice(0, t2.length - 1)), t2;
|
|
99
|
+
}
|
|
100
|
+
}();
|
|
101
|
+
} });
|
|
102
|
+
e3.on("success", () => {
|
|
103
|
+
I({ showClose: true, type: "success", message: F("superPageRuntimeMessage.copySuccess") });
|
|
104
|
+
}), e3.on("error", (e4) => {
|
|
105
|
+
}), n(() => {
|
|
106
|
+
const e4 = te.value;
|
|
107
|
+
R(e4, U.pageContext, U.configure, { formItemRef: ge.value, componentRef: me.value, titleRef: de.value, value: e4, entity: U.pageContext.entity.data, pageData: U.pageContext.entity.page });
|
|
85
108
|
});
|
|
86
|
-
}),
|
|
87
|
-
|
|
109
|
+
}), B2({ updateOptions: function(e3) {
|
|
110
|
+
le.value = e3 || [];
|
|
88
111
|
}, addRequiredClass: function() {
|
|
89
|
-
|
|
90
|
-
} }), (
|
|
91
|
-
const o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-form-item");
|
|
92
|
-
return s(),
|
|
112
|
+
$.value = q();
|
|
113
|
+
} }), (e3, t2) => {
|
|
114
|
+
const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
|
|
115
|
+
return s(), i(n2, { ref_key: "formItemRef", ref: ge, required: !!X.value.required, class: c(f(L) + ($.value ? " " + $.value : "")), "label-width": X.value.labelWidth, style: p(f(K)) }, { label: v(() => [X.value.tittleShow ? (s(), d("div", { key: 0, ref_key: "titleRef", ref: de, style: p({ ...f(N), ...f(Q) }) }, [X.value.prefixType ? (s(), i(V, { key: 0, pageContext: e3.pageContext, property: X.value }, null, 8, ["pageContext", "property"])) : (s(), d(h, { key: 1 }, [C(b(f(M)(X.value.title)), 1)], 64))], 4)) : x("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [g(a2, { ref_key: "componentRef", ref: me, style: { width: "100%" }, disabled: "disabled" === X.value.state, size: X.value.size, clearable: X.value.clearable, multiple: X.value.multiple, "collapse-tags": X.value.collapseTags, "collapse-tags-tooltip": X.value.collapseTagsTooltip, filterable: X.value.filterable, "allow-create": X.value.allowCreate, placeholder: X.value.placeholder, "remote-show-suffix": X.value.remoteShowSuffix, remote: X.value.remote, "remote-method": X.value.remoteMethod, loading: ae.value, onChange: X.value.changeMethod, modelValue: te.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => te.value = e4) }, { default: v(() => [(s(true), d(h, null, y(le.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => f(j)(t3.value, e3.pageContext, e3.configure, "click", { values: te.value }) }, { default: v(() => [t3._description_ ? (s(), d(h, { key: 0 }, [m("span", O, b(t3.label), 1), m("span", W, b(t3._description_), 1)], 64)) : x("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), default: v(() => [m("span", D, [g(l2, { id: Z }, { default: v(() => [g(f(z))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
93
116
|
};
|
|
94
117
|
} });
|
|
95
118
|
export {
|
|
96
|
-
|
|
119
|
+
B as default
|
|
97
120
|
};
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
|
|
|
9
9
|
const e3 = y(v.configure.props.base.title);
|
|
10
10
|
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
11
|
});
|
|
12
|
-
}), d2({}), (
|
|
12
|
+
}), d2({}), (e3, t2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e3.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
26
26
|
});
|
|
27
27
|
}), w2({ addRequiredClass: function() {
|
|
28
28
|
_.value = b();
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return v(), n(
|
|
29
|
+
} }), (e3, t2) => {
|
|
30
|
+
const l2 = i("el-switch"), a2 = i("el-form-item");
|
|
31
|
+
return v(), n(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => U.value = e4), onChange: t2[1] || (t2[1] = (t3) => c(h)(t3, e3.pageContext, e3.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
|
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
24
24
|
const e3 = E.value;
|
|
25
25
|
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
|
-
}), (
|
|
28
|
-
const
|
|
29
|
-
return r(), n(
|
|
27
|
+
}), (e3, t2) => {
|
|
28
|
+
const l2 = o("el-tag"), a2 = o("el-form-item");
|
|
29
|
+
return r(), n(a2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (a3) => (r(), n(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e6 = C(D, A);
|
|
32
|
+
null == e6 && (e6 = []);
|
|
33
|
+
const l3 = Array.isArray(e6);
|
|
34
|
+
l3 || (e6 = (e6 + "").split(","));
|
|
35
|
+
const a4 = e6.indexOf(t3.value);
|
|
36
|
+
a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e5, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e4, a3), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [v(y(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -18,9 +18,9 @@ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
18
18
|
});
|
|
19
19
|
}), _2({ addRequiredClass: function() {
|
|
20
20
|
I.value = j();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return r(), n("div", null, [i(
|
|
21
|
+
} }), (e3, t2) => {
|
|
22
|
+
const l2 = u("el-input"), a2 = u("el-form-item");
|
|
23
|
+
return r(), n("div", null, [i(a2, { ref_key: "formItemRef", ref: T, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), n("div", { key: 0, ref_key: "titleRef", ref: W, style: s({ ...m(L), ...m(N) }) }, [D.value.prefixType ? (r(), g(k, { key: 0, pageContext: e3.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), n(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : c("", true)]), default: f(() => [i(l2, { ref_key: "componentRef", ref: U, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => V.value = e4), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxLength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
73
73
|
const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
|
|
74
74
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
75
75
|
};
|
|
76
|
-
return (
|
|
77
|
-
const
|
|
78
|
-
return u($)(
|
|
76
|
+
return (e3, o2) => {
|
|
77
|
+
const t2 = i("permission");
|
|
78
|
+
return u($)(e3.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [t2, { codes: u(N) ? u(N) : "true", systemCode: e3.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|