super-page-runtime 2.3.40-sit1 → 2.3.40-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/api/page-expose-util.js +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +21 -21
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
- package/dist/es/components/runtime/utils/page-store.js +9 -9
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +7 -7
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +37 -35
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +47 -45
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +88 -88
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +96 -96
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as
|
|
2
|
-
import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T,
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { handleFormEvent as
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { addRequiredClassUtil as
|
|
8
|
-
import { CopyDocument as
|
|
9
|
-
import
|
|
10
|
-
import { ElMessage as
|
|
11
|
-
import { useI18n as
|
|
12
|
-
const
|
|
13
|
-
const { t:
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
let e3 =
|
|
20
|
-
return null != e3 && (e3 = String(e3)),
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as u, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
|
|
2
|
+
import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, putToOptionSourceMap as j, autoSetAfterSelect as R, getVariableValue as P } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as M, handleAfterInitEvent as D } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import I from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
8
|
+
import { CopyDocument as E } from "@element-plus/icons-vue";
|
|
9
|
+
import O from "clipboard";
|
|
10
|
+
import { ElMessage as W } from "element-plus";
|
|
11
|
+
import { useI18n as B } from "vue-i18n";
|
|
12
|
+
const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", display: "flex", "align-items": "center" } }, K = { key: 0, style: { display: "flex", "flex-direction": "column" } }, L = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, U = { style: { float: "left" } }, $ = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, H = "__amb_select_all__", J = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
|
|
13
|
+
const { t: N } = B(), Q = e2, X = l(null), Y = l(false), Z = Q.pageContext.entity ? Q.pageContext.entity : {};
|
|
14
|
+
let ee = V(Q.pageContext, Q.configure);
|
|
15
|
+
const le = Q.configure.runtime ? Q.configure.runtime : {}, te = le.style, oe = le.class, ae = le.headerStyle, ie = le.titleExceedStyle, ne = l(le.props ? le.props : {});
|
|
16
|
+
let ue = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), re = [];
|
|
17
|
+
const se = "copyBtn_" + Q.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
|
+
function pe() {
|
|
19
|
+
let e3 = P(Z, ee);
|
|
20
|
+
return null != e3 && (e3 = String(e3)), ne.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
const l2 =
|
|
22
|
+
const ce = t({ get: () => pe(), set(e3) {
|
|
23
|
+
const l2 = pe();
|
|
24
24
|
re = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
|
-
if (
|
|
27
|
-
const e4 = (
|
|
26
|
+
if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H)) {
|
|
27
|
+
const e4 = (fe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
|
|
28
28
|
t2 = e4.length > 0 && e4.every((e5) => o2.includes(e5)) ? [] : e4;
|
|
29
29
|
}
|
|
30
|
-
if (
|
|
31
|
-
t2 = !!
|
|
30
|
+
if (ne.value.multiple) {
|
|
31
|
+
t2 = !!ne.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
|
|
32
32
|
}
|
|
33
|
-
void 0 === t2 && (t2 = null), k(
|
|
34
|
-
} }),
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
let
|
|
38
|
-
const
|
|
39
|
-
if ("dynamicData" ==
|
|
40
|
-
if ("remote" ==
|
|
33
|
+
void 0 === t2 && (t2 = null), k(Z, ee, t2), null != t2 && (X.value = "");
|
|
34
|
+
} }), fe = l(ne.value.options ? ne.value.options : []), ve = A(Q.pageContext, Q.configure);
|
|
35
|
+
ve.length > 0 && (fe.value = ve);
|
|
36
|
+
const ge = l(false), me = Q.configure.props && Q.configure.props.dataOrigin ? Q.configure.props.dataOrigin : {}, de = me.optionValueSetType;
|
|
37
|
+
let ye = [];
|
|
38
|
+
const he = ne.value.optionconfigInfo ? ne.value.optionconfigInfo : {};
|
|
39
|
+
if ("dynamicData" == de || "dataTable" == de || "service" == de) {
|
|
40
|
+
if ("remote" == me.filterType) {
|
|
41
41
|
let e3;
|
|
42
|
-
|
|
43
|
-
e3 !== l2 && (e3 = l2,
|
|
44
|
-
|
|
42
|
+
ne.value.filterable = true, ne.value.remote = true, ne.value.remoteShowSuffix = true, ne.value.remoteMethod = function(l2) {
|
|
43
|
+
e3 !== l2 && (e3 = l2, ge.value = true, T(Q.pageContext, he, l2).then((e4) => {
|
|
44
|
+
ge.value = false;
|
|
45
45
|
}).then((e4) => {
|
|
46
|
-
|
|
46
|
+
ge.value = false;
|
|
47
47
|
}));
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
if (
|
|
51
|
-
}
|
|
52
|
-
|
|
50
|
+
if (me.autoSets) for (let e3 of me.autoSets) e3.source && ye.push(e3);
|
|
51
|
+
} else "static" == de && j(Q.pageContext, Q.configure.uuid, fe.value);
|
|
52
|
+
Q.configure && Q.configure.props && Q.configure.props.base && Q.configure.props.base.optionProp && ye.push({ source: "label", target: Q.configure.props.base.optionProp }), ne.value.changeMethod = function(e3) {
|
|
53
53
|
var _a;
|
|
54
54
|
let l2, t2 = null;
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
fe.value && null != e3 && null != e3 && (((_a = ne.value) == null ? void 0 : _a.multiple) && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H) && (e3 = e3.filter((e4) => e4 !== H)), t2 = fe.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
|
|
56
|
+
ye.length > 0 && R(Q.configure, Q.pageContext, ye, t2, [ne.value.prop]);
|
|
57
57
|
t2 && t2.length > 0 && (l2 = t2[0]);
|
|
58
58
|
let o2 = {};
|
|
59
59
|
l2 && (o2.extendParams = l2);
|
|
60
|
-
o2.options =
|
|
60
|
+
o2.options = fe.value, o2.oldValue = re, M(e3, Q.pageContext, Q.configure, "change", o2);
|
|
61
61
|
};
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
62
|
+
const be = ne.value.monitorFields, xe = [];
|
|
63
|
+
if (be) {
|
|
64
64
|
const e3 = [];
|
|
65
|
-
for (let l2 of
|
|
65
|
+
for (let l2 of be) if (l2.startsWith("${")) {
|
|
66
66
|
l2 = l2.substring(2, l2.length - 1);
|
|
67
67
|
const t2 = l2.split(".");
|
|
68
|
-
"page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (
|
|
68
|
+
"page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (xe.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
|
|
69
69
|
}
|
|
70
|
-
for (let l2 of e3) o(
|
|
71
|
-
|
|
70
|
+
for (let l2 of e3) o(Z[l2], () => {
|
|
71
|
+
we();
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
let
|
|
75
|
-
function
|
|
76
|
-
|
|
74
|
+
let Ce = "", _e = false;
|
|
75
|
+
function we() {
|
|
76
|
+
_e && clearTimeout(_e), _e = setTimeout(function() {
|
|
77
77
|
const e3 = function() {
|
|
78
78
|
let e4 = [];
|
|
79
|
-
for (let l2 of
|
|
79
|
+
for (let l2 of xe) e4.push(P(Z, l2));
|
|
80
80
|
return e4.join(",");
|
|
81
81
|
}();
|
|
82
|
-
e3 !=
|
|
83
|
-
|
|
82
|
+
e3 != Ce && (Ce = e3, he.watchAttrValue = e3, T(Q.pageContext, he, void 0).then((e4) => {
|
|
83
|
+
ge.value = false;
|
|
84
84
|
}));
|
|
85
85
|
}, 200);
|
|
86
86
|
}
|
|
87
87
|
a(() => {
|
|
88
|
-
|
|
88
|
+
_e && clearTimeout(_e);
|
|
89
89
|
});
|
|
90
|
-
let
|
|
91
|
-
const
|
|
92
|
-
function
|
|
93
|
-
const e3 =
|
|
90
|
+
let Se = false;
|
|
91
|
+
const ke = l(null), Ae = l(null), Te = l(null);
|
|
92
|
+
function je() {
|
|
93
|
+
const e3 = pe();
|
|
94
94
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
95
95
|
let l2 = "";
|
|
96
|
-
return "string" == typeof e3 ?
|
|
96
|
+
return "string" == typeof e3 ? fe.value.length > 0 ? fe.value.forEach((t2) => {
|
|
97
97
|
t2.value === e3 && (l2 = t2.label);
|
|
98
|
-
}) : l2 = e3 :
|
|
98
|
+
}) : l2 = e3 : fe.value.length > 0 ? (fe.value.forEach((t2) => {
|
|
99
99
|
e3.forEach((e4) => {
|
|
100
100
|
t2.value === e4 && (l2 = l2 + t2.label + ",");
|
|
101
101
|
});
|
|
102
102
|
}), l2 = l2.slice(0, l2.length - 1)) : l2 = e3.join(","), l2;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function Re(e3) {
|
|
106
|
+
Y.value = e3;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const e3 =
|
|
108
|
+
function Pe() {
|
|
109
|
+
const e3 = je();
|
|
110
110
|
e3 && navigator.clipboard && navigator.clipboard.writeText(e3).then(() => {
|
|
111
|
-
|
|
111
|
+
W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
return i(() => {
|
|
115
|
-
const e3 = new
|
|
116
|
-
return
|
|
115
|
+
const e3 = new O("#" + se, { text: function() {
|
|
116
|
+
return je();
|
|
117
117
|
} });
|
|
118
118
|
e3.on("success", () => {
|
|
119
|
-
|
|
119
|
+
W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
121
|
}), n(() => {
|
|
122
|
-
const e4 =
|
|
123
|
-
|
|
122
|
+
const e4 = ce.value;
|
|
123
|
+
D(e4, Q.pageContext, Q.configure, { formItemRef: ke.value, componentRef: Ae.value, titleRef: Te.value, value: e4, entity: Q.pageContext.entity.data, pageData: Q.pageContext.entity.page });
|
|
124
124
|
});
|
|
125
|
-
}),
|
|
126
|
-
if (
|
|
127
|
-
const e4 =
|
|
128
|
-
if (null != e4 && "" !== e4 &&
|
|
125
|
+
}), J2({ updateOptions: function(e3) {
|
|
126
|
+
if (fe.value = e3 || [], !Se) {
|
|
127
|
+
const e4 = pe();
|
|
128
|
+
if (null != e4 && "" !== e4 && fe.value.length > 0) {
|
|
129
129
|
let l2 = false;
|
|
130
|
-
for (let t2 of
|
|
130
|
+
for (let t2 of fe.value) if (t2.value == e4) {
|
|
131
131
|
l2 = true;
|
|
132
132
|
break;
|
|
133
133
|
}
|
|
134
134
|
if (!l2) {
|
|
135
|
-
for (let l3 of
|
|
136
|
-
|
|
135
|
+
for (let l3 of fe.value) if (l3.label == e4) {
|
|
136
|
+
ce.value = l3.value;
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
Se = true;
|
|
143
143
|
}, addRequiredClass: function() {
|
|
144
|
-
|
|
145
|
-
}, getSelectItemsTitle:
|
|
146
|
-
return
|
|
144
|
+
X.value = z();
|
|
145
|
+
}, getSelectItemsTitle: je, getOptions: function() {
|
|
146
|
+
return fe.value;
|
|
147
147
|
} }), (e3, l2) => {
|
|
148
|
-
const t2 =
|
|
149
|
-
return s(),
|
|
150
|
-
}, ["stop"]), ["space"])), onChange:
|
|
148
|
+
const t2 = u("el-icon"), o2 = u("el-option"), a2 = u("el-select"), i2 = u("el-popover"), n2 = u("el-form-item");
|
|
149
|
+
return s(), r(n2, { ref_key: "formItemRef", ref: ke, required: !!ne.value.required, class: c(f(oe) + (X.value ? " " + X.value : "")), "label-width": ne.value.labelWidth, style: p(f(te)) }, v({ default: g(() => [m(i2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", G, [m(a2, { ref_key: "componentRef", ref: Ae, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ne.value.state, size: ne.value.size, clearable: ne.value.clearable, multiple: ne.value.multiple, "collapse-tags": ne.value.collapseTags, "collapse-tags-tooltip": ne.value.collapseTagsTooltip, filterable: ne.value.filterable, "allow-create": ne.value.allowCreate, placeholder: ne.value.placeholder, "remote-show-suffix": ne.value.remoteShowSuffix, remote: ne.value.remote, "remote-method": ne.value.remoteMethod, loading: ge.value, onKeydown: l2[0] || (l2[0] = y(h(() => {
|
|
150
|
+
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => ce.value = e4) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Pe, ["stop"]) }, [m(t2, { style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (s(), r(o2, { key: 0, label: f(N)("superGrid.selectAll"), value: H, disabled: !(fe.value && fe.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(fe.value, (l3) => (s(), r(o2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ue) }), onClick: (t3) => f(M)(l3.value, e3.pageContext, e3.configure, "click", { values: ce.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ue) ? (s(), x("div", K, [d("span", null, w(l3.label), 1), d("span", L, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", U, w(l3.label), 1), d("span", $, w(l3._description_), 1)], 64))], 64)) : b("", true)]), _: 2 }, 1032, ["label", "value", "class", "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", "onClear", "modelValue"])])]), default: g(() => [d("span", F, [m(t2, { id: se, style: { cursor: "copy" } }, { default: g(() => [m(f(E))]), _: 1 })])]), _: 1 })]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Te, style: p({ ...f(ae), ...f(ie) }), class: "amb-form-item-label" }, [ne.value.prefixType ? (s(), r(I, { key: 0, pageContext: e3.pageContext, property: ne.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(q)(ne.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
151
151
|
};
|
|
152
152
|
} });
|
|
153
153
|
export {
|
|
154
|
-
|
|
154
|
+
J as default
|
|
155
155
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./workflow-opinion-box.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = r(o, [["__scopeId", "data-v-76875392"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|