super-page-runtime 2.3.50-sit3 → 2.3.51-sit1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -5
- package/dist/es/components/runtime/utils/charts/chart-util.js +121 -90
- package/dist/es/components/runtime/utils/events/event-util.js +2 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +70 -70
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +25 -13
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +95 -53
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +48 -26
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +56 -56
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +12 -12
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +27 -23
- package/dist/es/style.css +41 -34
- package/package.json +3 -3
|
@@ -14,140 +14,140 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
14
14
|
let ee = V(Q.pageContext, Q.configure);
|
|
15
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
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
|
|
17
|
+
const se = "copyBtn_" + Q.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime(), pe = t(() => "select-runtime-popper select-runtime-popper-" + Q.configure.uuid);
|
|
18
|
+
function ce() {
|
|
19
19
|
let e3 = P(Z, ee);
|
|
20
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 fe = t({ get: () => ce(), set(e3) {
|
|
23
|
+
const l2 = ce();
|
|
24
24
|
re = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
26
|
if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H)) {
|
|
27
|
-
const e4 = (
|
|
27
|
+
const e4 = (ve.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
30
|
if (ne.value.multiple) {
|
|
31
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
33
|
void 0 === t2 && (t2 = null), k(Z, ee, t2), null != t2 && (X.value = "");
|
|
34
|
-
} }),
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
let
|
|
38
|
-
const
|
|
39
|
-
if ("dynamicData" ==
|
|
40
|
-
if ("remote" ==
|
|
34
|
+
} }), ve = l(ne.value.options ? ne.value.options : []), ge = A(Q.pageContext, Q.configure);
|
|
35
|
+
ge.length > 0 && (ve.value = ge);
|
|
36
|
+
const me = l(false), de = Q.configure.props && Q.configure.props.dataOrigin ? Q.configure.props.dataOrigin : {}, ye = de.optionValueSetType;
|
|
37
|
+
let he = [];
|
|
38
|
+
const be = ne.value.optionconfigInfo ? ne.value.optionconfigInfo : {};
|
|
39
|
+
if ("dynamicData" == ye || "dataTable" == ye || "service" == ye) {
|
|
40
|
+
if ("remote" == de.filterType) {
|
|
41
41
|
let e3;
|
|
42
42
|
ne.value.filterable = true, ne.value.remote = true, ne.value.remoteShowSuffix = true, ne.value.remoteMethod = function(l2) {
|
|
43
|
-
e3 !== l2 && (e3 = l2,
|
|
44
|
-
|
|
43
|
+
e3 !== l2 && (e3 = l2, me.value = true, T(Q.pageContext, be, l2).then((e4) => {
|
|
44
|
+
me.value = false;
|
|
45
45
|
}).then((e4) => {
|
|
46
|
-
|
|
46
|
+
me.value = false;
|
|
47
47
|
}));
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
if (
|
|
51
|
-
} else "static" ==
|
|
52
|
-
Q.configure && Q.configure.props && Q.configure.props.base && Q.configure.props.base.optionProp &&
|
|
50
|
+
if (de.autoSets) for (let e3 of de.autoSets) e3.source && he.push(e3);
|
|
51
|
+
} else "static" == ye && j(Q.pageContext, Q.configure.uuid, ve.value);
|
|
52
|
+
Q.configure && Q.configure.props && Q.configure.props.base && Q.configure.props.base.optionProp && he.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
|
+
ve.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 = ve.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
|
|
56
|
+
he.length > 0 && R(Q.configure, Q.pageContext, he, 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 = ve.value, o2.oldValue = re, M(e3, Q.pageContext, Q.configure, "change", o2);
|
|
61
61
|
};
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
62
|
+
const xe = ne.value.monitorFields, Ce = [];
|
|
63
|
+
if (xe) {
|
|
64
64
|
const e3 = [];
|
|
65
|
-
for (let l2 of
|
|
65
|
+
for (let l2 of xe) 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] || (Ce.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
|
|
69
69
|
}
|
|
70
70
|
for (let l2 of e3) o(Z[l2], () => {
|
|
71
|
-
|
|
71
|
+
Se();
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
let
|
|
75
|
-
function
|
|
76
|
-
|
|
74
|
+
let _e = "", we = false;
|
|
75
|
+
function Se() {
|
|
76
|
+
we && clearTimeout(we), we = setTimeout(function() {
|
|
77
77
|
const e3 = function() {
|
|
78
78
|
let e4 = [];
|
|
79
|
-
for (let l2 of
|
|
79
|
+
for (let l2 of Ce) e4.push(P(Z, l2));
|
|
80
80
|
return e4.join(",");
|
|
81
81
|
}();
|
|
82
|
-
e3 !=
|
|
83
|
-
|
|
82
|
+
e3 != _e && (_e = e3, be.watchAttrValue = e3, T(Q.pageContext, be, void 0).then((e4) => {
|
|
83
|
+
me.value = false;
|
|
84
84
|
}));
|
|
85
85
|
}, 200);
|
|
86
86
|
}
|
|
87
87
|
a(() => {
|
|
88
|
-
|
|
88
|
+
we && clearTimeout(we);
|
|
89
89
|
});
|
|
90
|
-
let
|
|
91
|
-
const
|
|
92
|
-
function
|
|
93
|
-
const e3 =
|
|
90
|
+
let ke = false;
|
|
91
|
+
const Ae = l(null), Te = l(null), je = l(null);
|
|
92
|
+
function Re() {
|
|
93
|
+
const e3 = ce();
|
|
94
94
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
95
95
|
let l2 = "";
|
|
96
|
-
return "string" == typeof e3 ?
|
|
96
|
+
return "string" == typeof e3 ? ve.value.length > 0 ? ve.value.forEach((t2) => {
|
|
97
97
|
t2.value === e3 && (l2 = t2.label);
|
|
98
|
-
}) : l2 = e3 :
|
|
98
|
+
}) : l2 = e3 : ve.value.length > 0 ? (ve.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
|
|
105
|
+
function Pe(e3) {
|
|
106
106
|
Y.value = e3;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const e3 =
|
|
108
|
+
function Ve() {
|
|
109
|
+
const e3 = Re();
|
|
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
115
|
const e3 = new O("#" + se, { text: function() {
|
|
116
|
-
return
|
|
116
|
+
return Re();
|
|
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
|
-
D(e4, Q.pageContext, Q.configure, { formItemRef:
|
|
122
|
+
const e4 = fe.value;
|
|
123
|
+
D(e4, Q.pageContext, Q.configure, { formItemRef: Ae.value, componentRef: Te.value, titleRef: je.value, value: e4, entity: Q.pageContext.entity.data, pageData: Q.pageContext.entity.page });
|
|
124
124
|
});
|
|
125
125
|
}), J2({ updateOptions: function(e3) {
|
|
126
|
-
if (
|
|
127
|
-
const e4 =
|
|
128
|
-
if (null != e4 && "" !== e4 &&
|
|
126
|
+
if (ve.value = e3 || [], !ke) {
|
|
127
|
+
const e4 = ce();
|
|
128
|
+
if (null != e4 && "" !== e4 && ve.value.length > 0) {
|
|
129
129
|
let l2 = false;
|
|
130
|
-
for (let t2 of
|
|
130
|
+
for (let t2 of ve.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 ve.value) if (l3.label == e4) {
|
|
136
|
+
fe.value = l3.value;
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
ke = true;
|
|
143
143
|
}, addRequiredClass: function() {
|
|
144
144
|
X.value = z();
|
|
145
|
-
}, getSelectItemsTitle:
|
|
146
|
-
return
|
|
145
|
+
}, getSelectItemsTitle: Re, getOptions: function() {
|
|
146
|
+
return ve.value;
|
|
147
147
|
} }), (e3, l2) => {
|
|
148
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:
|
|
150
|
-
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange:
|
|
149
|
+
return s(), r(n2, { ref_key: "formItemRef", ref: Ae, 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: Te, 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: f(q)(ne.value.placeholder), "remote-show-suffix": ne.value.remoteShowSuffix, remote: ne.value.remote, "remote-method": ne.value.remoteMethod, loading: me.value, "popper-class": pe.value, onKeydown: l2[0] || (l2[0] = y(h(() => {
|
|
150
|
+
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Pe, modelValue: fe.value, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => fe.value = e4) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Ve, ["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: !(ve.value && ve.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(ve.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: fe.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", "popper-class", "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: je, 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 {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./textarea-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(e, [["__scopeId", "data-v-069acd96"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as u, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as u, openBlock as i, createVNode as r, normalizeStyle as s, normalizeClass as p, unref as m, createSlots as f, withCtx as g, createElementVNode as c, createBlock as d, Fragment as v, createTextVNode as x, toDisplayString as y } from "vue";
|
|
2
2
|
import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as C, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as w, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import R from "../common/title-suffix-element.vue.js";
|
|
6
6
|
import { $t as j } from "../../../../utils/i18n-util.js";
|
|
7
|
-
import { addRequiredClassUtil as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
let V = h(
|
|
7
|
+
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
8
|
+
const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
9
|
+
const q = e2, I = t(null), S = q.pageContext.entity ? q.pageContext.entity : {};
|
|
10
|
+
let V = h(q.pageContext, q.configure);
|
|
11
11
|
const B = l({ get: () => b(S, V), set(e3) {
|
|
12
|
-
C(S, V, e3), null != e3 && "" !== e3 && (
|
|
13
|
-
} }), D =
|
|
12
|
+
C(S, V, e3), null != e3 && "" !== e3 && (I.value = "");
|
|
13
|
+
} }), D = q.configure.runtime ? q.configure.runtime : {}, E = t(D.props ? D.props : {}), F = D.style, N = D.class, T = D.headerStyle, U = D.titleExceedStyle, W = t(null), A = t(null), G = t(null);
|
|
14
14
|
return a(() => {
|
|
15
15
|
o(() => {
|
|
16
16
|
const e3 = B.value;
|
|
17
|
-
w(e3,
|
|
17
|
+
w(e3, q.pageContext, q.configure, { formItemRef: W.value, componentRef: A.value, titleRef: G.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
18
18
|
});
|
|
19
|
-
}),
|
|
20
|
-
|
|
19
|
+
}), _2({ addRequiredClass: function() {
|
|
20
|
+
I.value = z();
|
|
21
21
|
} }), (e3, t2) => {
|
|
22
22
|
const l2 = n("el-input"), a2 = n("el-form-item");
|
|
23
|
-
return
|
|
23
|
+
return i(), u("div", null, [r(a2, { ref_key: "formItemRef", ref: W, required: !!E.value.required, class: p(m(N) + (I.value ? " " + I.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [r(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: m(j)(E.value.placeholder), modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), rows: E.value.rows ? E.value.rows : 2, autosize: E.value.autosize, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "autosize", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (i(), d(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (i(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
_ as default
|
|
28
28
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./workflowbutton-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(o, [["__scopeId", "data-v-f8af24e9"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as e, ref as t, createElementBlock as n, openBlock as o, Fragment as r, renderList as a, createBlock as i, createCommentVNode as u } from "vue";
|
|
2
2
|
import s from "../../object-render.vue.js";
|
|
3
|
-
import { getClickEventFuncByType as
|
|
4
|
-
import { isVisibleWorkflowButton as
|
|
5
|
-
const
|
|
3
|
+
import { getClickEventFuncByType as m } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { isVisibleWorkflowButton as c } from "../../../../utils/events/standard-event.js";
|
|
5
|
+
const p = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" }, l = e({ __name: "workflowbutton-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
6
6
|
var _a, _b;
|
|
7
|
-
const l2 =
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
const l2 = e2, v = l2.configure.runtime ? l2.configure.runtime : {};
|
|
8
|
+
t(v.style ? v.style : {}), v.class;
|
|
9
|
+
const f = l2.pageContext.workflowButtonComponent, d = l2.pageContext.completeTaskParam, g = (_a = l2.pageContext.entity) == null ? void 0 : _a.data, k = t([]), w = "1" === function(e3) {
|
|
10
|
+
const t2 = window.location.hash || "", n2 = t2.indexOf("?"), o2 = n2 > -1 ? t2.slice(n2 + 1) : window.location.search;
|
|
11
|
+
return new URLSearchParams(o2).get(e3);
|
|
12
|
+
}("hideBack");
|
|
13
|
+
function B(e3) {
|
|
14
|
+
const t2 = m(l2.pageContext, e3, "click");
|
|
15
|
+
if (t2) {
|
|
16
|
+
if (t2.isStandard) return t2.event.eventName;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
16
|
-
return (_b = l2.configure.items) == null ? void 0 : _b.forEach((
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
return (_b = l2.configure.items) == null ? void 0 : _b.forEach((e3) => {
|
|
20
|
+
var t2;
|
|
21
|
+
!function(e4) {
|
|
22
|
+
const t3 = B(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
|
|
23
|
+
return c(l2.pageContext, t3, f, d, e4, g);
|
|
24
|
+
}(e3) || w && ((t2 = e3) && t2.runtime && Array.isArray(t2.runtime.events) ? t2.runtime.events : []).some((e4) => "click" === e4.name && e4.isStandard && "back" === e4.eventName) || (!function(e4) {
|
|
21
25
|
var _a2, _b2;
|
|
22
|
-
const
|
|
23
|
-
if (!
|
|
24
|
-
const
|
|
25
|
-
if (!
|
|
26
|
-
((_b2 = (_a2 =
|
|
27
|
-
}(
|
|
28
|
-
}), (
|
|
26
|
+
const t3 = e4.runtime && e4.runtime.events ? e4.runtime.events : [], n2 = B(t3);
|
|
27
|
+
if (!n2 || !f) return;
|
|
28
|
+
const o2 = { workflowSave: "saveButton", submitTask: "submitButton", approve: "agreeButton", refuse: "disagreeButton", agreement: "approveButton", oppose: "opposeButton", kiken: "abstainButton", drawTask: "drawButton", addSigner: "addSignerButton", removeSigner: "removeSignerButton", retrieveTask: "backButton", readed: "readButton", assign: "appointButton", copyTask: "copyButton" }[n2], r2 = o2 ? f[o2] : void 0;
|
|
29
|
+
if (!r2 || r2.startsWith("initVal")) return;
|
|
30
|
+
((_b2 = (_a2 = e4 == null ? void 0 : e4.runtime) == null ? void 0 : _a2.props) == null ? void 0 : _b2.title) && (e4.runtime.props.title = r2);
|
|
31
|
+
}(e3), k.value.push(e3));
|
|
32
|
+
}), (e3, t2) => (o(), n("span", p, [(o(true), n(r, null, a(k.value, (t3, a2) => (o(), n(r, null, [t3.check ? (o(), i(s, { key: a2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : u("", true)], 64))), 256))]));
|
|
29
33
|
} });
|
|
30
34
|
export {
|
|
31
35
|
l as default
|
package/dist/es/style.css
CHANGED
|
@@ -514,16 +514,16 @@
|
|
|
514
514
|
max-width: none;
|
|
515
515
|
flex: auto;
|
|
516
516
|
}
|
|
517
|
-
}.runtime-page-container-tabs-view[data-v-
|
|
517
|
+
}.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__header > .el-tabs__new-tab {
|
|
518
518
|
border: 0px !important;
|
|
519
519
|
}
|
|
520
|
-
.runtime-page-container-tabs-view[data-v-
|
|
520
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__header .el-tabs__item:has(.tab-hidden) {
|
|
521
521
|
display: none !important;
|
|
522
522
|
}
|
|
523
|
-
.runtime-page-container-tabs-view[data-v-
|
|
524
|
-
color:
|
|
523
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__header .el-tabs__item.is-active {
|
|
524
|
+
color: var(--el-color-primary) !important;
|
|
525
525
|
}
|
|
526
|
-
.runtime-page-container-tabs-view[data-v-
|
|
526
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__content > .el-tab-pane {
|
|
527
527
|
display: flex;
|
|
528
528
|
flex-direction: row;
|
|
529
529
|
align-items: flex-start;
|
|
@@ -531,16 +531,16 @@
|
|
|
531
531
|
flex-wrap: wrap;
|
|
532
532
|
gap: var(--runtime-page-container-view-gap, 15px);
|
|
533
533
|
}
|
|
534
|
-
.runtime-page-container-tabs-view[data-v-
|
|
534
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__content > .el-tab-pane > div {
|
|
535
535
|
width: 100%;
|
|
536
536
|
}
|
|
537
|
-
.runtime-page-container-tabs-view[data-v-
|
|
537
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
|
|
538
538
|
width: auto;
|
|
539
539
|
}
|
|
540
|
-
.runtime-page-container-tabs-view[data-v-
|
|
540
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
|
|
541
541
|
width: auto;
|
|
542
542
|
}
|
|
543
|
-
.runtime-page-container-tabs-view[data-v-
|
|
543
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
|
|
544
544
|
display: flex;
|
|
545
545
|
flex-direction: row;
|
|
546
546
|
align-items: flex-start;
|
|
@@ -548,16 +548,16 @@
|
|
|
548
548
|
flex-wrap: wrap;
|
|
549
549
|
gap: var(--runtime-page-container-view-gap, 15px);
|
|
550
550
|
}
|
|
551
|
-
.runtime-page-container-tabs-view[data-v-
|
|
551
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
|
|
552
552
|
width: 100%;
|
|
553
553
|
}
|
|
554
|
-
.runtime-page-container-tabs-view[data-v-
|
|
554
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
|
|
555
555
|
width: auto;
|
|
556
556
|
}
|
|
557
|
-
.runtime-page-container-tabs-view[data-v-
|
|
557
|
+
.runtime-page-container-tabs-view[data-v-71f33e38] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
|
|
558
558
|
width: auto;
|
|
559
559
|
}
|
|
560
|
-
.tab-hidden[data-v-
|
|
560
|
+
.tab-hidden[data-v-71f33e38] {
|
|
561
561
|
display: none !important;
|
|
562
562
|
}.yx-fixed-box-main[data-v-9b488f43]:has(.yx-fixed-box-container:empty) {
|
|
563
563
|
display: none;
|
|
@@ -616,18 +616,18 @@
|
|
|
616
616
|
color: var(--el-color-primary, #409eff);
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
-
[data-v-
|
|
619
|
+
[data-v-a9e40942] .el-popover,[data-v-a9e40942] .el-popper,[data-v-a9e40942] .el-popover__popper {
|
|
620
620
|
min-width: 50px !important;
|
|
621
621
|
}
|
|
622
|
-
[data-v-
|
|
622
|
+
[data-v-a9e40942] .custom-sel-copy-tooltip {
|
|
623
623
|
box-shadow: 0 0 8px 2px rgba(0, 123, 255, 0.7);
|
|
624
624
|
}
|
|
625
625
|
/* 移动端显示复制按钮,pc隐藏 */
|
|
626
|
-
.mobile-copy-trigger[data-v-
|
|
626
|
+
.mobile-copy-trigger[data-v-a9e40942] {
|
|
627
627
|
display: none;
|
|
628
628
|
}
|
|
629
629
|
@media (hover: none) and (pointer: coarse) {
|
|
630
|
-
.mobile-copy-trigger[data-v-
|
|
630
|
+
.mobile-copy-trigger[data-v-a9e40942] {
|
|
631
631
|
display: inline-flex;
|
|
632
632
|
align-items: center;
|
|
633
633
|
padding-right: 4px;
|
|
@@ -635,8 +635,15 @@
|
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
+
/* 20261105-25151 下拉面板需要盖住页面底部的固定意见栏(.opinion-fixed-bar,z-index 2100)。
|
|
639
|
+
element-plus 会把 z-index 写成 el-popper 的行内样式,这里用 !important 固定优先级,
|
|
640
|
+
不依赖展开时机去改行内样式,避免首次展开或面板重建时偶发失效。 */
|
|
641
|
+
.el-popper.select-runtime-popper {
|
|
642
|
+
z-index: 2200 !important;
|
|
643
|
+
}
|
|
644
|
+
|
|
638
645
|
/**解决textarea的清除按钮换行问题 */
|
|
639
|
-
[data-v-
|
|
646
|
+
[data-v-069acd96] .el-textarea .el-textarea__clear {
|
|
640
647
|
position: absolute !important;
|
|
641
648
|
}
|
|
642
649
|
|
|
@@ -955,63 +962,63 @@
|
|
|
955
962
|
}.el-form-item[data-v-96fc65d8] {
|
|
956
963
|
margin-bottom: 0px;
|
|
957
964
|
}
|
|
958
|
-
.el-form-item[data-v-
|
|
965
|
+
.el-form-item[data-v-bda987c5] {
|
|
959
966
|
margin-bottom: 0px;
|
|
960
967
|
}
|
|
961
968
|
|
|
962
969
|
/* 整体对齐样式 - 靠左 */
|
|
963
|
-
.form-item-align-flex-start[data-v-
|
|
970
|
+
.form-item-align-flex-start[data-v-bda987c5] {
|
|
964
971
|
justify-content: flex-start;
|
|
965
972
|
}
|
|
966
|
-
.form-item-align-flex-start[data-v-
|
|
973
|
+
.form-item-align-flex-start[data-v-bda987c5] .el-form-item__label {
|
|
967
974
|
flex: none;
|
|
968
975
|
}
|
|
969
|
-
.form-item-align-flex-start[data-v-
|
|
976
|
+
.form-item-align-flex-start[data-v-bda987c5] .el-form-item__content {
|
|
970
977
|
flex: none;
|
|
971
978
|
}
|
|
972
979
|
|
|
973
980
|
/* 整体对齐样式 - 居中 */
|
|
974
|
-
.form-item-align-center[data-v-
|
|
981
|
+
.form-item-align-center[data-v-bda987c5] {
|
|
975
982
|
justify-content: center;
|
|
976
983
|
}
|
|
977
|
-
.form-item-align-center[data-v-
|
|
984
|
+
.form-item-align-center[data-v-bda987c5] .el-form-item__label {
|
|
978
985
|
flex: none;
|
|
979
986
|
}
|
|
980
|
-
.form-item-align-center[data-v-
|
|
987
|
+
.form-item-align-center[data-v-bda987c5] .el-form-item__content {
|
|
981
988
|
flex: none;
|
|
982
989
|
}
|
|
983
990
|
|
|
984
991
|
/* 整体对齐样式 - 靠右 */
|
|
985
|
-
.form-item-align-flex-end[data-v-
|
|
992
|
+
.form-item-align-flex-end[data-v-bda987c5] {
|
|
986
993
|
justify-content: flex-end;
|
|
987
994
|
}
|
|
988
|
-
.form-item-align-flex-end[data-v-
|
|
995
|
+
.form-item-align-flex-end[data-v-bda987c5] .el-form-item__label {
|
|
989
996
|
flex: none;
|
|
990
997
|
}
|
|
991
|
-
.form-item-align-flex-end[data-v-
|
|
998
|
+
.form-item-align-flex-end[data-v-bda987c5] .el-form-item__content {
|
|
992
999
|
flex: none;
|
|
993
1000
|
}
|
|
994
|
-
.amb-button-group-main[data-v-
|
|
1001
|
+
.amb-button-group-main[data-v-23021692] {
|
|
995
1002
|
display: flex;
|
|
996
1003
|
min-height: 2em;
|
|
997
1004
|
flex-wrap: wrap;
|
|
998
1005
|
gap: var(--amb-widget-container-tool-gap, 10px);
|
|
999
1006
|
}
|
|
1000
|
-
.amb-button-group-main[data-v-
|
|
1007
|
+
.amb-button-group-main[data-v-23021692]::after, .amb-button-group-main[data-v-23021692]::before {
|
|
1001
1008
|
display: none;
|
|
1002
1009
|
}
|
|
1003
|
-
.amb-button-group-main > div[data-v-
|
|
1010
|
+
.amb-button-group-main > div[data-v-23021692] {
|
|
1004
1011
|
width: auto;
|
|
1005
|
-
}.amb-workflowbutton-runtime-view[data-v-
|
|
1012
|
+
}.amb-workflowbutton-runtime-view[data-v-f8af24e9] {
|
|
1006
1013
|
min-height: 32px;
|
|
1007
1014
|
display: flex;
|
|
1008
1015
|
flex-wrap: wrap;
|
|
1009
1016
|
gap: var(--amb-widget-container-tool-gap, 10px);
|
|
1010
1017
|
}
|
|
1011
|
-
.amb-workflowbutton-runtime-view[data-v-
|
|
1018
|
+
.amb-workflowbutton-runtime-view[data-v-f8af24e9]::after, .amb-workflowbutton-runtime-view[data-v-f8af24e9]::before {
|
|
1012
1019
|
display: none;
|
|
1013
1020
|
}
|
|
1014
|
-
.amb-workflowbutton-runtime-view > div[data-v-
|
|
1021
|
+
.amb-workflowbutton-runtime-view > div[data-v-f8af24e9] {
|
|
1015
1022
|
width: auto;
|
|
1016
1023
|
}.dialog-footer[data-v-1a7971b9] {
|
|
1017
1024
|
display: inline-flex;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.51-sit1",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "./src/index.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/*"
|
|
9
9
|
],
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
50
50
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
51
51
|
"@vue/test-utils": "^2.4.4",
|
|
52
|
-
"agilebuilder-ui": "1.2.
|
|
52
|
+
"agilebuilder-ui": "1.2.10-sit1",
|
|
53
53
|
"axios": "^1.6.8",
|
|
54
54
|
"cypress": "^13.6.6",
|
|
55
55
|
"element-plus": "^2.6.1",
|