@web-utils/component 3.8.2 → 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/vue-cron/index.mjs +116 -96
- package/web-types.json +4 -1
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,
|