@web-utils/component 3.8.3 → 3.8.4
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/chunks/ServiceTaskConfig.BYzwAxGU.mjs +112 -0
- package/flow-designer/index.mjs +128 -112
- package/fy-form-design/index.mjs +2 -2
- package/fy-form-design/style.css +1 -1
- package/package.json +1 -1
- package/web-types.json +4 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { n as g } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const b = {
|
|
3
|
+
name: "ServiceTaskConfig",
|
|
4
|
+
props: {
|
|
5
|
+
id: String,
|
|
6
|
+
element: Object,
|
|
7
|
+
bpmnInstances: Object
|
|
8
|
+
},
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
form: {
|
|
12
|
+
delegateType: "",
|
|
13
|
+
retry: 3,
|
|
14
|
+
interval: "60S"
|
|
15
|
+
},
|
|
16
|
+
config: {
|
|
17
|
+
async: !0,
|
|
18
|
+
exclusive: !1,
|
|
19
|
+
class: void 0,
|
|
20
|
+
delegateExpression: void 0,
|
|
21
|
+
failedJobRetryTimeCycle: void 0
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
watch: {
|
|
26
|
+
id: {
|
|
27
|
+
immediate: !0,
|
|
28
|
+
handler() {
|
|
29
|
+
var n, e, t, s, i, l, a, r, c, o, f, m, p, d;
|
|
30
|
+
if (!((e = (n = this.element) == null ? void 0 : n.businessObject) != null && e.delegateExpression) && !((s = (t = this.element) == null ? void 0 : t.businessObject) != null && s.class) && (this.config.async = !0, this.config.exclusive = !0, this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
31
|
+
async: !0,
|
|
32
|
+
exclusive: !0,
|
|
33
|
+
class: void 0,
|
|
34
|
+
delegateExpression: void 0,
|
|
35
|
+
failedJobRetryTimeCycle: "R3/PT60S"
|
|
36
|
+
})), this.config.async = (l = (i = this.element) == null ? void 0 : i.businessObject) == null ? void 0 : l.async, this.config.exclusive = (r = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : r.exclusive, this.config.class = (o = (c = this.element) == null ? void 0 : c.businessObject) == null ? void 0 : o.class, this.config.delegateExpression = (m = (f = this.element) == null ? void 0 : f.businessObject) == null ? void 0 : m.delegateExpression, this.config.failedJobRetryTimeCycle = (d = (p = this.element) == null ? void 0 : p.businessObject) == null ? void 0 : d.failedJobRetryTimeCycle, this.config.failedJobRetryTimeCycle) {
|
|
37
|
+
const u = this.config.failedJobRetryTimeCycle.split("/");
|
|
38
|
+
this.form.retry = Number(u[0].replace("R", "")) || 3, this.form.interval = u[1].replace("PT", "") || "60S";
|
|
39
|
+
}
|
|
40
|
+
this.form.delegateType = this.config.delegateExpression ? "delegateExpression" : this.config.class ? "class" : "";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
retryInput(n) {
|
|
46
|
+
const e = n != null ? n : 3, t = this.form.interval || "60S";
|
|
47
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
48
|
+
failedJobRetryTimeCycle: `R${e}/PT${t}`
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
intervalInput(n) {
|
|
52
|
+
var s;
|
|
53
|
+
const e = (s = this.form.retry) != null ? s : 3, t = n || "60S";
|
|
54
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
55
|
+
failedJobRetryTimeCycle: `R${e}/PT${t}`
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
clear() {
|
|
59
|
+
this.config.class = void 0, this.config.delegateExpression = void 0, this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
60
|
+
class: void 0,
|
|
61
|
+
delegateExpression: void 0
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
classInput(n) {
|
|
65
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
66
|
+
class: n
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
delegateExpressionInput(n) {
|
|
70
|
+
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
71
|
+
delegateExpression: n
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
changeTaskAsync() {
|
|
75
|
+
this.config.async || (this.config.exclusive = !0), this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
76
|
+
exclusive: this.config.exclusive,
|
|
77
|
+
async: this.config.async
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
var h = function() {
|
|
83
|
+
var e = this, t = e._self._c;
|
|
84
|
+
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
|
|
85
|
+
s.preventDefault();
|
|
86
|
+
} } }, [t("ElFormItem", { attrs: { label: "异步" } }, [t("ElCheckbox", { attrs: { label: "异步执行" }, on: { change: e.changeTaskAsync }, model: { value: e.config.async, callback: function(s) {
|
|
87
|
+
e.$set(e.config, "async", s);
|
|
88
|
+
}, expression: "config.async" } }), e.config.async ? t("ElCheckbox", { attrs: { label: "执行互斥" }, on: { change: e.changeTaskAsync }, model: { value: e.config.exclusive, callback: function(s) {
|
|
89
|
+
e.$set(e.config, "exclusive", s);
|
|
90
|
+
}, expression: "config.exclusive" } }) : e._e()], 1), t("ElFormItem", { attrs: { label: "委托类型" } }, [t("ElSelect", { on: { input: e.clear }, model: { value: e.form.delegateType, callback: function(s) {
|
|
91
|
+
e.$set(e.form, "delegateType", s);
|
|
92
|
+
}, expression: "form.delegateType" } }, [t("ElOption", { attrs: { label: "Spring Bean", value: "delegateExpression" } }), t("ElOption", { attrs: { label: "Java 类", value: "class" } })], 1)], 1), e.form.delegateType === "delegateExpression" ? t("ElFormItem", { attrs: { label: "委托表达式" } }, [t("ElSelect", { attrs: { clearable: "", filterable: "", "allow-create": "" }, on: { input: e.delegateExpressionInput }, model: { value: e.config.delegateExpression, callback: function(s) {
|
|
93
|
+
e.$set(e.config, "delegateExpression", s);
|
|
94
|
+
}, expression: "config.delegateExpression" } }, [t("ElOption", { attrs: { label: "财务审批 AI 预审", value: "${financeAi}" } })], 1)], 1) : e._e(), e.form.delegateType === "class" ? t("ElFormItem", { attrs: { label: "Java 类" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: e.classInput }, model: { value: e.config.class, callback: function(s) {
|
|
95
|
+
e.$set(e.config, "class", s);
|
|
96
|
+
}, expression: "config.class" } })], 1) : e._e(), e.config.async ? t("ElFormItem", { attrs: { label: "失败重试" } }, [t("div", { staticStyle: { display: "flex" } }, [t("ElFormItem", { staticStyle: { flex: "1", width: "0" }, attrs: { "label-width": "40px", label: "次数" } }, [t("ElInputNumber", { attrs: { clearable: "" }, on: { input: e.retryInput }, model: { value: e.form.retry, callback: function(s) {
|
|
97
|
+
e.$set(e.form, "retry", s);
|
|
98
|
+
}, expression: "form.retry" } })], 1), t("ElFormItem", { staticStyle: { flex: "1", width: "0", "margin-top": "0", "margin-left": "10px" }, attrs: { "label-width": "40px", label: "间隔" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: e.intervalInput }, model: { value: e.form.interval, callback: function(s) {
|
|
99
|
+
e.$set(e.form, "interval", s);
|
|
100
|
+
}, expression: "form.interval" } })], 1)], 1)]) : e._e()], 1)], 1);
|
|
101
|
+
}, y = [], x = /* @__PURE__ */ g(
|
|
102
|
+
b,
|
|
103
|
+
h,
|
|
104
|
+
y,
|
|
105
|
+
!1,
|
|
106
|
+
null,
|
|
107
|
+
null
|
|
108
|
+
);
|
|
109
|
+
const E = x.exports;
|
|
110
|
+
export {
|
|
111
|
+
E as default
|
|
112
|
+
};
|
package/flow-designer/index.mjs
CHANGED
|
@@ -10,38 +10,38 @@ var ee = (n, e, t) => e in n ? ye(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
ve.call(e, t) && ee(n, t, e[t]);
|
|
11
11
|
return n;
|
|
12
12
|
}, L = (n, e) => be(n, ge(e));
|
|
13
|
-
var
|
|
13
|
+
var k = (n, e, t) => new Promise((i, r) => {
|
|
14
14
|
var a = (m) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
s(t.next(m));
|
|
17
17
|
} catch (g) {
|
|
18
18
|
r(g);
|
|
19
19
|
}
|
|
20
20
|
}, l = (m) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
s(t.throw(m));
|
|
23
23
|
} catch (g) {
|
|
24
24
|
r(g);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, s = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(a, l);
|
|
27
|
+
s((t = t.apply(n, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { assign as y, isArray as Se, forEach as Ae, isObject as
|
|
29
|
+
import { assign as y, isArray as Se, forEach as Ae, isObject as Ee, isFunction as he, some as T } from "min-dash";
|
|
30
30
|
import { is as R } from "bpmn-js/lib/util/ModelUtil";
|
|
31
31
|
import { isExpanded as Te, isEventSubProcess as Ce } from "bpmn-js/lib/util/DiUtil";
|
|
32
|
-
import { isAny as
|
|
33
|
-
import { getChildLanes as
|
|
34
|
-
import { hasPrimaryModifier as
|
|
32
|
+
import { isAny as U } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
33
|
+
import { getChildLanes as Ie } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
34
|
+
import { hasPrimaryModifier as xe } from "diagram-js/lib/util/Mouse";
|
|
35
35
|
import le from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
36
36
|
import j from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
37
|
-
import { getMid as Pe, asTRBL as
|
|
37
|
+
import { getMid as Pe, asTRBL as ke } from "diagram-js/lib/layout/LayoutUtil";
|
|
38
38
|
import { markRaw as N } from "vue";
|
|
39
39
|
import { n as J } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
40
40
|
import "bpmn-js/dist/assets/bpmn-js.css";
|
|
41
41
|
import "bpmn-js/dist/assets/diagram-js.css";
|
|
42
42
|
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
|
|
43
43
|
import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
|
|
44
|
-
import
|
|
44
|
+
import we from "bpmn-js/lib/Modeler";
|
|
45
45
|
import _e from "bpmn-js/lib/features/drilldown";
|
|
46
46
|
import Me from "bpmn-js-token-simulation";
|
|
47
47
|
import te from "x2js";
|
|
@@ -51,10 +51,10 @@ import Be from "highlight.js/lib/languages/json";
|
|
|
51
51
|
import { isArray as ne } from "@web-utils/core";
|
|
52
52
|
import Oe from "../highlight-j-s/index.mjs";
|
|
53
53
|
import "../highlight-j-s/style.css";
|
|
54
|
-
function Z(n, e, t, i, r, a, l,
|
|
55
|
-
n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = r, this._elementFactory = a, this._connect = l, this._create =
|
|
54
|
+
function Z(n, e, t, i, r, a, l, s, m, g, p, o, u) {
|
|
55
|
+
n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = r, this._elementFactory = a, this._connect = l, this._create = s, this._popupMenu = m, this._canvas = g, this._rules = p, this._translate = o, n.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(f) {
|
|
56
56
|
const A = f.context.shape;
|
|
57
|
-
if (!
|
|
57
|
+
if (!xe(f) || !i.isOpen(A))
|
|
58
58
|
return;
|
|
59
59
|
const c = i.getEntries(A);
|
|
60
60
|
c.replace && c.replace.action.click(f, A);
|
|
@@ -76,9 +76,9 @@ Z.$inject = [
|
|
|
76
76
|
"elementRegistry"
|
|
77
77
|
];
|
|
78
78
|
Z.prototype.getContextPadEntries = function(n) {
|
|
79
|
-
const e = this._contextPad, t = this._modeling, i = this._elementFactory, r = this._connect, a = this._create, l = this._popupMenu,
|
|
79
|
+
const e = this._contextPad, t = this._modeling, i = this._elementFactory, r = this._connect, a = this._create, l = this._popupMenu, s = this._canvas, m = this._rules, g = this._autoPlace, p = this._translate, o = {};
|
|
80
80
|
if (n.type === "label")
|
|
81
|
-
return
|
|
81
|
+
return o;
|
|
82
82
|
const u = n.businessObject;
|
|
83
83
|
function f(d, S) {
|
|
84
84
|
r.start(d, S);
|
|
@@ -87,16 +87,16 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
87
87
|
t.removeElements([n]);
|
|
88
88
|
}
|
|
89
89
|
function A(d) {
|
|
90
|
-
const b =
|
|
90
|
+
const b = s.getContainer(), I = e.getPad(d).html, x = b.getBoundingClientRect(), D = I.getBoundingClientRect(), B = D.top - x.top;
|
|
91
91
|
return {
|
|
92
|
-
x: D.left -
|
|
92
|
+
x: D.left - x.left,
|
|
93
93
|
y: B + D.height + 5
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
function c(d, S, b,
|
|
97
|
-
typeof b != "string" && (
|
|
98
|
-
function
|
|
99
|
-
const F = i.createShape(y({ type: d },
|
|
96
|
+
function c(d, S, b, I) {
|
|
97
|
+
typeof b != "string" && (I = b, b = p("Append {type}", { type: d.replace(/^bpmn:/, "") }));
|
|
98
|
+
function x(B, O) {
|
|
99
|
+
const F = i.createShape(y({ type: d }, I));
|
|
100
100
|
a.start(B, F, {
|
|
101
101
|
source: O
|
|
102
102
|
});
|
|
@@ -106,11 +106,11 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
106
106
|
className: S,
|
|
107
107
|
title: b,
|
|
108
108
|
action: {
|
|
109
|
-
dragstart:
|
|
109
|
+
dragstart: x,
|
|
110
110
|
click: g ? function(B, O) {
|
|
111
|
-
const F = i.createShape(y({ type: d },
|
|
111
|
+
const F = i.createShape(y({ type: d }, I));
|
|
112
112
|
g.append(O, F);
|
|
113
|
-
} :
|
|
113
|
+
} : x
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
}
|
|
@@ -119,9 +119,9 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
119
119
|
t.splitLane(b, d), e.open(b, !0);
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
if (
|
|
123
|
-
const d =
|
|
124
|
-
y(
|
|
122
|
+
if (U(u, ["bpmn:Lane", "bpmn:Participant"]) && Te(u)) {
|
|
123
|
+
const d = Ie(n);
|
|
124
|
+
y(o, {
|
|
125
125
|
"lane-insert-above": {
|
|
126
126
|
group: "lane-insert-above",
|
|
127
127
|
className: "bpmn-icon-lane-insert-above",
|
|
@@ -132,7 +132,7 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
}), d.length < 2 && (n.height >= 120 && y(
|
|
135
|
+
}), d.length < 2 && (n.height >= 120 && y(o, {
|
|
136
136
|
"lane-divide-two": {
|
|
137
137
|
group: "lane-divide",
|
|
138
138
|
className: "bpmn-icon-lane-divide-two",
|
|
@@ -141,7 +141,7 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
141
141
|
click: M(2)
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
}), n.height >= 180 && y(
|
|
144
|
+
}), n.height >= 180 && y(o, {
|
|
145
145
|
"lane-divide-three": {
|
|
146
146
|
group: "lane-divide",
|
|
147
147
|
className: "bpmn-icon-lane-divide-three",
|
|
@@ -150,7 +150,7 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
150
150
|
click: M(3)
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
})), y(
|
|
153
|
+
})), y(o, {
|
|
154
154
|
"lane-insert-below": {
|
|
155
155
|
group: "lane-insert-below",
|
|
156
156
|
className: "bpmn-icon-lane-insert-below",
|
|
@@ -163,7 +163,7 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
R(u, "bpmn:FlowNode") && (R(u, "bpmn:EventBasedGateway") ? y(
|
|
166
|
+
R(u, "bpmn:FlowNode") && (R(u, "bpmn:EventBasedGateway") ? y(o, {
|
|
167
167
|
"append.receive-task": c("bpmn:ReceiveTask", "bpmn-icon-receive-task", p("Append ReceiveTask")),
|
|
168
168
|
"append.message-intermediate-event": c(
|
|
169
169
|
"bpmn:IntermediateCatchEvent",
|
|
@@ -189,11 +189,11 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
189
189
|
p("Append SignalIntermediateCatchEvent"),
|
|
190
190
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
191
191
|
)
|
|
192
|
-
}) : ie(u, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(
|
|
192
|
+
}) : ie(u, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(o, {
|
|
193
193
|
"append.compensation-activity": c("bpmn:Task", "bpmn-icon-task", p("Append compensation activity"), {
|
|
194
194
|
isForCompensation: !0
|
|
195
195
|
})
|
|
196
|
-
}) : !R(u, "bpmn:EndEvent") && !u.isForCompensation && !ie(u, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ce(u) && y(
|
|
196
|
+
}) : !R(u, "bpmn:EndEvent") && !u.isForCompensation && !ie(u, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ce(u) && y(o, {
|
|
197
197
|
"append.end-event": c("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
|
|
198
198
|
"append.gateway": c("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
|
|
199
199
|
"append.append-task": c("bpmn:UserTask", "bpmn-icon-user-task", p("Append Task")),
|
|
@@ -202,7 +202,7 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
202
202
|
"bpmn-icon-intermediate-event-none",
|
|
203
203
|
p("Append Intermediate/Boundary Event")
|
|
204
204
|
)
|
|
205
|
-
})), l.isEmpty(n, "bpmn-replace") || y(
|
|
205
|
+
})), l.isEmpty(n, "bpmn-replace") || y(o, {
|
|
206
206
|
replace: {
|
|
207
207
|
group: "edit",
|
|
208
208
|
className: "bpmn-icon-screw-wrench",
|
|
@@ -216,7 +216,7 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
}),
|
|
219
|
+
}), U(u, ["bpmn:FlowNode", "bpmn:InteractionNode", "bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(o, {
|
|
220
220
|
"append.text-annotation": c("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
|
|
221
221
|
connect: {
|
|
222
222
|
group: "connect",
|
|
@@ -227,7 +227,7 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
227
227
|
dragstart: f
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
}),
|
|
230
|
+
}), U(u, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(o, {
|
|
231
231
|
connect: {
|
|
232
232
|
group: "connect",
|
|
233
233
|
className: "bpmn-icon-connection-multi",
|
|
@@ -237,11 +237,11 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
237
237
|
dragstart: f
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
}), R(u, "bpmn:Group") && y(
|
|
240
|
+
}), R(u, "bpmn:Group") && y(o, {
|
|
241
241
|
"append.text-annotation": c("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
242
242
|
});
|
|
243
|
-
let
|
|
244
|
-
return Se(
|
|
243
|
+
let E = m.allowed("elements.delete", { elements: [n] });
|
|
244
|
+
return Se(E) && (E = E[0] === n), E && y(o, {
|
|
245
245
|
delete: {
|
|
246
246
|
group: "edit",
|
|
247
247
|
className: "bpmn-icon-trash",
|
|
@@ -250,7 +250,7 @@ Z.prototype.getContextPadEntries = function(n) {
|
|
|
250
250
|
click: _
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
}),
|
|
253
|
+
}), o;
|
|
254
254
|
};
|
|
255
255
|
function ie(n, e, t) {
|
|
256
256
|
const i = n.$instanceOf(e);
|
|
@@ -264,31 +264,31 @@ const Fe = {
|
|
|
264
264
|
__init__: ["contextPadProvider"],
|
|
265
265
|
contextPadProvider: ["type", Z]
|
|
266
266
|
};
|
|
267
|
-
function
|
|
268
|
-
le.call(this, n, e, t, i, r, a, l,
|
|
267
|
+
function w(n, e, t, i, r, a, l, s, m) {
|
|
268
|
+
le.call(this, n, e, t, i, r, a, l, s, m, 2e3), this._create = e, this._elementFactory = t, this._spaceTool = i, this._lassoTool = r, this._handTool = a, this._globalConnect = l, this._moddle = s, this._translate = m;
|
|
269
269
|
}
|
|
270
270
|
const H = function() {
|
|
271
271
|
};
|
|
272
272
|
H.prototype = le.prototype;
|
|
273
273
|
H.prototype.getPaletteEntries = function() {
|
|
274
|
-
const n = {}, e = this._create, t = this._elementFactory, i = this._spaceTool, r = this._lassoTool, a = this._handTool, l = this._globalConnect,
|
|
275
|
-
function m(
|
|
276
|
-
function c(
|
|
277
|
-
const d = t.createShape(y({ type:
|
|
278
|
-
|
|
274
|
+
const n = {}, e = this._create, t = this._elementFactory, i = this._spaceTool, r = this._lassoTool, a = this._handTool, l = this._globalConnect, s = this._translate;
|
|
275
|
+
function m(o, u, f, _, A) {
|
|
276
|
+
function c(E) {
|
|
277
|
+
const d = t.createShape(y({ type: o }, A));
|
|
278
|
+
o === "bpmn:UserTask" && (d.businessObject.candidateUsers = "${handlers}"), e.start(E, d);
|
|
279
279
|
}
|
|
280
|
-
const M =
|
|
280
|
+
const M = o.replace(/^bpmn:/, "");
|
|
281
281
|
return {
|
|
282
282
|
group: u,
|
|
283
283
|
className: f,
|
|
284
|
-
title: _ ||
|
|
284
|
+
title: _ || s("Create {type}", { type: M }),
|
|
285
285
|
action: {
|
|
286
286
|
dragstart: c,
|
|
287
287
|
click: c
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
function g(
|
|
291
|
+
function g(o) {
|
|
292
292
|
const u = t.createShape({
|
|
293
293
|
type: "bpmn:SubProcess",
|
|
294
294
|
x: 0,
|
|
@@ -300,67 +300,68 @@ H.prototype.getPaletteEntries = function() {
|
|
|
300
300
|
y: 82,
|
|
301
301
|
parent: u
|
|
302
302
|
});
|
|
303
|
-
e.start(
|
|
303
|
+
e.start(o, [u, f], {
|
|
304
304
|
hints: {
|
|
305
305
|
autoSelect: [f]
|
|
306
306
|
}
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
function p(
|
|
310
|
-
e.start(
|
|
309
|
+
function p(o) {
|
|
310
|
+
e.start(o, t.createParticipantShape());
|
|
311
311
|
}
|
|
312
312
|
return y(n, {
|
|
313
313
|
"hand-tool": {
|
|
314
314
|
group: "tools",
|
|
315
315
|
className: "bpmn-icon-hand-tool",
|
|
316
|
-
title:
|
|
316
|
+
title: s("Activate the hand tool"),
|
|
317
317
|
action: {
|
|
318
|
-
click: function(
|
|
319
|
-
a.activateHand(
|
|
318
|
+
click: function(o) {
|
|
319
|
+
a.activateHand(o);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
"lasso-tool": {
|
|
324
324
|
group: "tools",
|
|
325
325
|
className: "bpmn-icon-lasso-tool",
|
|
326
|
-
title:
|
|
326
|
+
title: s("Activate the lasso tool"),
|
|
327
327
|
action: {
|
|
328
|
-
click: function(
|
|
329
|
-
r.activateSelection(
|
|
328
|
+
click: function(o) {
|
|
329
|
+
r.activateSelection(o);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
"space-tool": {
|
|
334
334
|
group: "tools",
|
|
335
335
|
className: "bpmn-icon-space-tool",
|
|
336
|
-
title:
|
|
336
|
+
title: s("Activate the create/remove space tool"),
|
|
337
337
|
action: {
|
|
338
|
-
click: function(
|
|
339
|
-
i.activateSelection(
|
|
338
|
+
click: function(o) {
|
|
339
|
+
i.activateSelection(o);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
"global-connect-tool": {
|
|
344
344
|
group: "tools",
|
|
345
345
|
className: "bpmn-icon-connection-multi",
|
|
346
|
-
title:
|
|
346
|
+
title: s("Activate the global connect tool"),
|
|
347
347
|
action: {
|
|
348
|
-
click: function(
|
|
349
|
-
l.toggle(
|
|
348
|
+
click: function(o) {
|
|
349
|
+
l.toggle(o);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
},
|
|
353
353
|
"tool-separator": { group: "tools", separator: !0 },
|
|
354
|
-
"create.start-event": m("bpmn:StartEvent", "event", "bpmn-icon-start-event-none",
|
|
354
|
+
"create.start-event": m("bpmn:StartEvent", "event", "bpmn-icon-start-event-none", s("Create StartEvent")),
|
|
355
355
|
"create.intermediate-event": m(
|
|
356
356
|
"bpmn:IntermediateThrowEvent",
|
|
357
357
|
"event",
|
|
358
358
|
"bpmn-icon-intermediate-event-none",
|
|
359
|
-
|
|
359
|
+
s("Create Intermediate/Boundary Event")
|
|
360
360
|
),
|
|
361
|
-
"create.user-task": m("bpmn:UserTask", "activity", "bpmn-icon-user-task",
|
|
362
|
-
"create.
|
|
363
|
-
"create.
|
|
361
|
+
"create.user-task": m("bpmn:UserTask", "activity", "bpmn-icon-user-task", s("Create User Task")),
|
|
362
|
+
"create.service-task": m("bpmn:ServiceTask", "activity", "bpmn-icon-service-task", s("Create Service Task")),
|
|
363
|
+
"create.exclusive-gateway": m("bpmn:ExclusiveGateway", "activity", "bpmn-icon-gateway-none", s("Create Gateway")),
|
|
364
|
+
"create.end-event": m("bpmn:EndEvent", "activity", "bpmn-icon-end-event-none", s("Create EndEvent")),
|
|
364
365
|
// 'create.sql-task': createAction('user:MySql', 'activity', 'bpmn-icon-mysql', 'MySQL 节点'),
|
|
365
366
|
// 'create.data-object': createAction('bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object', translate('Create DataObjectReference')),
|
|
366
367
|
// 'create.data-store': createAction('bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store', translate('Create DataStoreReference')),
|
|
@@ -368,7 +369,7 @@ H.prototype.getPaletteEntries = function() {
|
|
|
368
369
|
"create.subprocess-expanded": {
|
|
369
370
|
group: "activity",
|
|
370
371
|
className: "bpmn-icon-subprocess-expanded",
|
|
371
|
-
title:
|
|
372
|
+
title: s("Create expanded SubProcess"),
|
|
372
373
|
action: {
|
|
373
374
|
dragstart: g,
|
|
374
375
|
click: g
|
|
@@ -377,7 +378,7 @@ H.prototype.getPaletteEntries = function() {
|
|
|
377
378
|
"create.participant-expanded": {
|
|
378
379
|
group: "collaboration",
|
|
379
380
|
className: "bpmn-icon-participant",
|
|
380
|
-
title:
|
|
381
|
+
title: s("Create Pool/Participant"),
|
|
381
382
|
action: {
|
|
382
383
|
dragstart: p,
|
|
383
384
|
click: p
|
|
@@ -386,12 +387,12 @@ H.prototype.getPaletteEntries = function() {
|
|
|
386
387
|
// 'create.group': createAction('bpmn:Group', 'artifact', 'bpmn-icon-group', translate('Create Group'))
|
|
387
388
|
}), n;
|
|
388
389
|
};
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
w.$inject = ["palette", "create", "elementFactory", "spaceTool", "lassoTool", "handTool", "globalConnect", "moddle", "translate"];
|
|
391
|
+
w.prototype = new H();
|
|
392
|
+
w.prototype.constructor = w;
|
|
392
393
|
const Le = {
|
|
393
394
|
__init__: ["customPalette"],
|
|
394
|
-
customPalette: ["type",
|
|
395
|
+
customPalette: ["type", w]
|
|
395
396
|
};
|
|
396
397
|
function me(n, e) {
|
|
397
398
|
j.call(this, n, e, 3e3), n.on("autoPlace", 3e3, function(t) {
|
|
@@ -447,9 +448,9 @@ const ue = function() {
|
|
|
447
448
|
ue.prototype = j.prototype;
|
|
448
449
|
me.prototype = new ue();
|
|
449
450
|
me.prototype.constructor = j;
|
|
450
|
-
const
|
|
451
|
+
const Ue = 200, ze = 100;
|
|
451
452
|
function ce(n, e, t) {
|
|
452
|
-
n.on("autoPlace",
|
|
453
|
+
n.on("autoPlace", ze, function(i) {
|
|
453
454
|
const r = i.shape, a = i.source;
|
|
454
455
|
return Ge(a, r);
|
|
455
456
|
}), n.on("autoPlace.end", function(i) {
|
|
@@ -462,18 +463,18 @@ function ce(n, e, t) {
|
|
|
462
463
|
const l = n.fire("autoPlace", {
|
|
463
464
|
source: i,
|
|
464
465
|
shape: r
|
|
465
|
-
}),
|
|
466
|
+
}), s = e.appendShape(i, r, l, i.parent, a);
|
|
466
467
|
return n.fire("autoPlace.end", {
|
|
467
468
|
source: i,
|
|
468
|
-
shape:
|
|
469
|
-
}),
|
|
469
|
+
shape: s
|
|
470
|
+
}), s;
|
|
470
471
|
};
|
|
471
472
|
}
|
|
472
473
|
ce.$inject = ["eventBus", "modeling", "canvas"];
|
|
473
474
|
function Ge(n, e) {
|
|
474
|
-
const t =
|
|
475
|
+
const t = Ue, i = Pe(n);
|
|
475
476
|
return {
|
|
476
|
-
x:
|
|
477
|
+
x: ke(n).right + t + e.width / 2,
|
|
477
478
|
y: i.y
|
|
478
479
|
};
|
|
479
480
|
}
|
|
@@ -491,9 +492,10 @@ const je = {
|
|
|
491
492
|
SignalAndMassage: () => import("../chunks/SignalAndMessage.CH6L7cYu.mjs"),
|
|
492
493
|
FlowCondition: () => import("../chunks/FlowCondition.BfU9kw6h.mjs"),
|
|
493
494
|
ElementMultiInstance: () => import("../chunks/ElementMultiInstance.3Z28ewuh.mjs"),
|
|
494
|
-
|
|
495
|
+
ElementTaskConfig: () => import("../chunks/ElementTaskConfig.MBbkLrth.mjs"),
|
|
495
496
|
ElementOtherConfig: () => import("../chunks/ElementOtherConfig.B1NfMTYh.mjs"),
|
|
496
|
-
ElementBaseInfo: () => import("../chunks/ElementBaseInfo.ZADwixb5.mjs")
|
|
497
|
+
ElementBaseInfo: () => import("../chunks/ElementBaseInfo.ZADwixb5.mjs"),
|
|
498
|
+
ServiceTaskConfig: () => import("../chunks/ServiceTaskConfig.BYzwAxGU.mjs")
|
|
497
499
|
},
|
|
498
500
|
provide() {
|
|
499
501
|
return {
|
|
@@ -642,8 +644,10 @@ var Ze = function() {
|
|
|
642
644
|
}, expression: "activeTab" } }, [e.isNullOrUndefined || e.isArray && e.useTabs.includes("base") ? t("ElTabPane", { attrs: { label: "常规", name: "base", lazy: "" } }, [t("ElementBaseInfo", { attrs: { id: e.elementId, "id-edit-disabled": e.idEditDisabled, type: e.elementType, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("message")) && e.elementType === "Process" ? t("ElTabPane", { attrs: { label: "消息与信号", name: "message", lazy: "" } }, [t("SignalAndMassage", { attrs: { "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("condition")) && e.conditionFormVisible ? t("ElTabPane", { attrs: { label: "流转条件", name: "condition", lazy: "" } }, [t("SignalAndMassage", { attrs: { "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("form") ? e._t("form", function() {
|
|
643
645
|
return [(e.isNullOrUndefined || e.isArray && e.useTabs.includes("base")) && e.formVisible ? t("ElTabPane", { key: "form", attrs: { label: "表单", name: "form", lazy: "" } }, [t("ElementForm", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
|
|
644
646
|
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("task") ? e._t("task", function() {
|
|
645
|
-
return [e.elementType.indexOf("
|
|
646
|
-
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(),
|
|
647
|
+
return [e.elementType.indexOf("UserTask") !== -1 ? t("ElTabPane", { key: "task", attrs: { label: "任务", name: "task", lazy: "" } }, [t("ElementTaskConfig", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
|
|
648
|
+
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("service") ? e._t("service", function() {
|
|
649
|
+
return [e.elementType.indexOf("ServiceTask") !== -1 ? t("ElTabPane", { key: "service", attrs: { label: "服务调用", name: "service", lazy: "" } }, [t("ServiceTaskConfig", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
|
|
650
|
+
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("multiInstance")) && e.elementType.indexOf("UserTask") !== -1 ? t("ElTabPane", { key: "multiInstance", attrs: { label: "多实例", name: "multiInstance", lazy: "" } }, [t("ElementMultiInstance", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("listeners") ? t("ElTabPane", { key: "listeners", attrs: { label: "执行监听器", name: "listeners", lazy: "" } }, [t("ElementListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("taskListeners")) && e.elementType === "UserTask" ? t("ElTabPane", { key: "taskListeners", attrs: { label: "任务监听器", name: "taskListeners", lazy: "" } }, [t("UserTaskListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extensions") ? t("ElTabPane", { key: "extensions", attrs: { label: "扩展属性", name: "extensions", lazy: "" } }, [t("ElementProperties", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("other") ? t("ElTabPane", { key: "other", attrs: { label: "其他", name: "other", lazy: "" } }, [t("ElementOtherConfig", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extend") ? e._t("extend", null, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e()], 2) : t("ElCollapse", { directives: [{ name: "show", rawName: "v-show", value: e.isPanelVisible, expression: "isPanelVisible" }], model: { value: e.activeTab, callback: function(a) {
|
|
647
651
|
e.activeTab = a;
|
|
648
652
|
}, expression: "activeTab" } }, [e.isNullOrUndefined || e.isArray && e.useTabs.includes("base") ? t("ElCollapseItem", { attrs: { name: "base" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
649
653
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-info" }), e._v("常规")])];
|
|
@@ -656,10 +660,14 @@ var Ze = function() {
|
|
|
656
660
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-order" }), e._v("表单")])];
|
|
657
661
|
}, proxy: !0 }], null, !1, 1341048650) }, [t("ElementForm", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
|
|
658
662
|
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("task") ? e._t("task", function() {
|
|
659
|
-
return [e.elementType.indexOf("
|
|
663
|
+
return [e.elementType.indexOf("UserTask") !== -1 ? t("ElCollapseItem", { key: "task", attrs: { name: "task" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
660
664
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-claim" }), e._v("任务")])];
|
|
661
|
-
}, proxy: !0 }], null, !1, 2144785833) }, [t("
|
|
662
|
-
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(),
|
|
665
|
+
}, proxy: !0 }], null, !1, 2144785833) }, [t("ElementTaskConfig", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
|
|
666
|
+
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("service") ? e._t("service", function() {
|
|
667
|
+
return [e.elementType.indexOf("ServiceTask") !== -1 ? t("ElCollapseItem", { key: "service", attrs: { name: "service" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
668
|
+
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-claim" }), e._v("服务调用")])];
|
|
669
|
+
}, proxy: !0 }], null, !1, 3388244724) }, [t("ServiceTaskConfig", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e()];
|
|
670
|
+
}, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e(), (e.isNullOrUndefined || e.isArray && e.useTabs.includes("multiInstance")) && e.elementType.indexOf("UserTask") !== -1 ? t("ElCollapseItem", { key: "multiInstance", attrs: { name: "multiInstance" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
663
671
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-help" }), e._v("多实例")])];
|
|
664
672
|
}, proxy: !0 }], null, !1, 1253501895) }, [t("ElementMultiInstance", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("listeners") ? t("ElCollapseItem", { key: "listeners", attrs: { name: "listeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
665
673
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("执行监听器"), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
@@ -761,6 +769,7 @@ const Ye = {
|
|
|
761
769
|
"Create EndEvent": "创建结束事件",
|
|
762
770
|
"Create Task": "创建任务",
|
|
763
771
|
"Create User Task": "创建用户任务",
|
|
772
|
+
"Create Service Task": "创建服务任务",
|
|
764
773
|
"Create Gateway": "创建网关",
|
|
765
774
|
"Create DataObjectReference": "创建数据对象",
|
|
766
775
|
"Create DataStoreReference": "创建数据存储",
|
|
@@ -3365,6 +3374,11 @@ const Ye = {
|
|
|
3365
3374
|
isAttr: !0,
|
|
3366
3375
|
type: "String"
|
|
3367
3376
|
},
|
|
3377
|
+
{
|
|
3378
|
+
name: "failedJobRetryTimeCycle",
|
|
3379
|
+
isAttr: !0,
|
|
3380
|
+
type: "String"
|
|
3381
|
+
},
|
|
3368
3382
|
{
|
|
3369
3383
|
name: "resultVariable",
|
|
3370
3384
|
isAttr: !0,
|
|
@@ -4199,34 +4213,34 @@ function C(n) {
|
|
|
4199
4213
|
}
|
|
4200
4214
|
C.$inject = ["eventBus"];
|
|
4201
4215
|
C.prototype.canCopyProperty = function(n, e) {
|
|
4202
|
-
if (
|
|
4216
|
+
if (Ee(n) && !et(n, e) || h(n, "camunda:InputOutput") && !this.canHostInputOutput(e) || de(n, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || h(n, "camunda:In") && !this.canHostIn(e))
|
|
4203
4217
|
return !1;
|
|
4204
4218
|
};
|
|
4205
4219
|
C.prototype.canHostInputOutput = function(n) {
|
|
4206
4220
|
if (v(n, "camunda:Connector"))
|
|
4207
4221
|
return !0;
|
|
4208
4222
|
const t = v(n, "bpmn:FlowNode");
|
|
4209
|
-
return !(!t || de(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) ||
|
|
4223
|
+
return !(!t || de(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || h(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
4210
4224
|
};
|
|
4211
4225
|
C.prototype.canHostConnector = function(n) {
|
|
4212
4226
|
const e = v(n, "camunda:ServiceTaskLike");
|
|
4213
|
-
return
|
|
4227
|
+
return h(e, "bpmn:MessageEventDefinition") ? v(n, "bpmn:IntermediateThrowEvent") || v(n, "bpmn:EndEvent") : !0;
|
|
4214
4228
|
};
|
|
4215
4229
|
C.prototype.canHostIn = function(n) {
|
|
4216
4230
|
return v(n, "bpmn:CallActivity") ? !0 : v(n, "bpmn:SignalEventDefinition") ? v(n, "bpmn:IntermediateThrowEvent") || v(n, "bpmn:EndEvent") : !0;
|
|
4217
4231
|
};
|
|
4218
|
-
function
|
|
4219
|
-
return n &&
|
|
4232
|
+
function h(n, e) {
|
|
4233
|
+
return n && he(n.$instanceOf) && n.$instanceOf(e);
|
|
4220
4234
|
}
|
|
4221
4235
|
function de(n, e) {
|
|
4222
4236
|
return T(e, function(t) {
|
|
4223
|
-
return
|
|
4237
|
+
return h(n, t);
|
|
4224
4238
|
});
|
|
4225
4239
|
}
|
|
4226
4240
|
function v(n, e) {
|
|
4227
4241
|
if (!e)
|
|
4228
4242
|
return n.$parent;
|
|
4229
|
-
if (
|
|
4243
|
+
if (h(n, e))
|
|
4230
4244
|
return n;
|
|
4231
4245
|
if (n.$parent)
|
|
4232
4246
|
return v(n.$parent, e);
|
|
@@ -4264,7 +4278,7 @@ function at(n, e) {
|
|
|
4264
4278
|
return W(n, t);
|
|
4265
4279
|
});
|
|
4266
4280
|
}
|
|
4267
|
-
function
|
|
4281
|
+
function z(n, e, t) {
|
|
4268
4282
|
const i = e.name, r = it[i.replace(/activiti:/, "")];
|
|
4269
4283
|
return i === n && at(t, r);
|
|
4270
4284
|
}
|
|
@@ -4280,9 +4294,9 @@ function X(n) {
|
|
|
4280
4294
|
}
|
|
4281
4295
|
X.$inject = ["eventBus"];
|
|
4282
4296
|
X.prototype.canCloneProperty = function(n, e) {
|
|
4283
|
-
if (
|
|
4297
|
+
if (z("activiti:FailedJobRetryTimeCycle", e, n))
|
|
4284
4298
|
return $(n.eventDefinitions, "bpmn:TimerEventDefinition") || $(n.eventDefinitions, "bpmn:SignalEventDefinition") || W(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
4285
|
-
if (
|
|
4299
|
+
if (z("activiti:Connector", e, n) || z("activiti:Field", e, n))
|
|
4286
4300
|
return $(n.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
4287
4301
|
};
|
|
4288
4302
|
const st = {
|
|
@@ -4440,9 +4454,9 @@ const ut = {
|
|
|
4440
4454
|
methods: {
|
|
4441
4455
|
initBpmnModeler() {
|
|
4442
4456
|
this.bpmnModeler || (this.bpmnModeler = N(
|
|
4443
|
-
new
|
|
4457
|
+
new we(P({
|
|
4444
4458
|
container: this.$refs["bpmn-canvas"],
|
|
4445
|
-
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
4459
|
+
// keyboard: this.keyboard ? { bindTo: document } : null,
|
|
4446
4460
|
additionalModules: this.additionalModules,
|
|
4447
4461
|
moddleExtensions: this.moddleExtensions
|
|
4448
4462
|
}, this.options))
|
|
@@ -4455,7 +4469,7 @@ const ut = {
|
|
|
4455
4469
|
const r = t.replace(/\./g, "-"), a = i ? i.element : null;
|
|
4456
4470
|
e.$emit(r, a, i);
|
|
4457
4471
|
});
|
|
4458
|
-
}), n.on("commandStack.changed", (t) =>
|
|
4472
|
+
}), n.on("commandStack.changed", (t) => k(this, null, function* () {
|
|
4459
4473
|
try {
|
|
4460
4474
|
this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
|
|
4461
4475
|
const { xml: i } = yield this.bpmnModeler.saveXML({ format: !0 });
|
|
@@ -4471,7 +4485,7 @@ const ut = {
|
|
|
4471
4485
|
},
|
|
4472
4486
|
/* 创建新的流程图 */
|
|
4473
4487
|
createNewDiagram(n) {
|
|
4474
|
-
return
|
|
4488
|
+
return k(this, null, function* () {
|
|
4475
4489
|
const e = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, i = n || Xe(e, t, this.prefix);
|
|
4476
4490
|
try {
|
|
4477
4491
|
const { warnings: r } = yield this.bpmnModeler.importXML(i);
|
|
@@ -4487,18 +4501,18 @@ const ut = {
|
|
|
4487
4501
|
* @param {*} name
|
|
4488
4502
|
*/
|
|
4489
4503
|
downloadProcess(n, e = "diagram") {
|
|
4490
|
-
return
|
|
4504
|
+
return k(this, null, function* () {
|
|
4491
4505
|
try {
|
|
4492
4506
|
const { err: i, xml: r } = yield this.bpmnModeler.saveXML();
|
|
4493
4507
|
i && console.error(`[Process Designer Warn ]: ${i.message || i}`);
|
|
4494
4508
|
const a = new te(), { definitions: l } = a.xml2js(r);
|
|
4495
4509
|
if (e = l.process._name || e, n === "xml" || n === "bpmn") {
|
|
4496
|
-
const { href:
|
|
4497
|
-
t(
|
|
4510
|
+
const { href: s, filename: m } = this.setEncoded(n.toUpperCase(), e, r);
|
|
4511
|
+
t(s, m);
|
|
4498
4512
|
} else {
|
|
4499
|
-
const { err:
|
|
4500
|
-
if (
|
|
4501
|
-
return console.error(
|
|
4513
|
+
const { err: s, svg: m } = yield this.bpmnModeler.saveSVG();
|
|
4514
|
+
if (s)
|
|
4515
|
+
return console.error(s);
|
|
4502
4516
|
const { href: g, filename: p } = this.setEncoded("SVG", e, m);
|
|
4503
4517
|
t(g, p);
|
|
4504
4518
|
}
|
|
@@ -4706,7 +4720,7 @@ const bt = yt.exports, gt = {
|
|
|
4706
4720
|
this.modeler = n;
|
|
4707
4721
|
},
|
|
4708
4722
|
refresh() {
|
|
4709
|
-
return
|
|
4723
|
+
return k(this, null, function* () {
|
|
4710
4724
|
yield this.$nextTick(), yield this.$refs.processDesigner.createNewDiagram(this.value);
|
|
4711
4725
|
});
|
|
4712
4726
|
}
|
|
@@ -4725,6 +4739,8 @@ var ft = function() {
|
|
|
4725
4739
|
return [e._t("form", null, { id: i, bpmnInstances: r, element: a, type: l })];
|
|
4726
4740
|
} }, { key: "extend", fn: function({ id: i, bpmnInstances: r, element: a, type: l }) {
|
|
4727
4741
|
return [e._t("extend", null, { id: i, bpmnInstances: r, element: a, type: l })];
|
|
4742
|
+
} }, { key: "service", fn: function({ id: i, bpmnInstances: r, element: a, type: l }) {
|
|
4743
|
+
return [e._t("service", null, { id: i, bpmnInstances: r, element: a, type: l })];
|
|
4728
4744
|
} }], null, !0) }) : e._e()], 1);
|
|
4729
4745
|
}, vt = [], St = /* @__PURE__ */ J(
|
|
4730
4746
|
gt,
|
package/fy-form-design/index.mjs
CHANGED
|
@@ -1137,7 +1137,7 @@ var Se = function() {
|
|
|
1137
1137
|
Ae,
|
|
1138
1138
|
!1,
|
|
1139
1139
|
null,
|
|
1140
|
-
"
|
|
1140
|
+
"c46fca4d"
|
|
1141
1141
|
);
|
|
1142
1142
|
const Be = Oe.exports, We = {
|
|
1143
1143
|
name: "ConfigRate",
|
|
@@ -1212,7 +1212,7 @@ var Te = function() {
|
|
|
1212
1212
|
ze,
|
|
1213
1213
|
!1,
|
|
1214
1214
|
null,
|
|
1215
|
-
"
|
|
1215
|
+
"a9deb5ae"
|
|
1216
1216
|
);
|
|
1217
1217
|
const Pe = Re.exports, De = {
|
|
1218
1218
|
name: "ConfigSlider",
|
package/fy-form-design/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dic[data-v-31aa4f25]{margin-bottom:5px;display:flex}.el-tag[data-v-befe1506]{vertical-align:top}.el-tag+.el-tag[data-v-befe1506]{margin-left:5px}.input-new-tag[data-v-befe1506]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-befe1506]{vertical-align:top;left:10px}.custom-tree-node[data-v-a2df3d76]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
|
1
|
+
.dic[data-v-c46fca4d]{margin-bottom:5px;display:flex}.el-tag[data-v-a9deb5ae]{vertical-align:top}.el-tag+.el-tag[data-v-a9deb5ae]{margin-left:5px}.input-new-tag[data-v-a9deb5ae]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-a9deb5ae]{vertical-align:top;left:10px}.custom-tree-node[data-v-a2df3d76]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@web-utils/component",
|
|
5
|
-
"version": "3.8.
|
|
5
|
+
"version": "3.8.4",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"description-markup": "markdown",
|
|
@@ -2808,6 +2808,9 @@
|
|
|
2808
2808
|
},
|
|
2809
2809
|
{
|
|
2810
2810
|
"name": "extend"
|
|
2811
|
+
},
|
|
2812
|
+
{
|
|
2813
|
+
"name": "service"
|
|
2811
2814
|
}
|
|
2812
2815
|
]
|
|
2813
2816
|
},
|