@web-utils/component 3.3.13 → 3.3.15
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/flow-designer/index.mjs +172 -166
- package/package.json +1 -1
- package/web-types.json +1 -1
package/flow-designer/index.mjs
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
var ge = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var ge = Object.defineProperty, Ee = Object.defineProperties;
|
|
2
|
+
var Fe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Q = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var xe = Object.prototype.hasOwnProperty, Se = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var ee = (n, e, t) => e in n ? ge(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, u = (n, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
xe.call(e, t) && ee(n, t, e[t]);
|
|
8
8
|
if (Q)
|
|
9
9
|
for (var t of Q(e))
|
|
10
|
-
|
|
10
|
+
Se.call(e, t) && ee(n, t, e[t]);
|
|
11
11
|
return n;
|
|
12
|
-
}, T = (n, e) =>
|
|
12
|
+
}, T = (n, e) => Ee(n, Fe(e));
|
|
13
13
|
var d = (n, e, t) => new Promise((i, s) => {
|
|
14
14
|
var a = (p) => {
|
|
15
15
|
try {
|
|
16
16
|
o(t.next(p));
|
|
17
|
-
} catch (
|
|
18
|
-
s(
|
|
17
|
+
} catch (E) {
|
|
18
|
+
s(E);
|
|
19
19
|
}
|
|
20
20
|
}, r = (p) => {
|
|
21
21
|
try {
|
|
22
22
|
o(t.throw(p));
|
|
23
|
-
} catch (
|
|
24
|
-
s(
|
|
23
|
+
} catch (E) {
|
|
24
|
+
s(E);
|
|
25
25
|
}
|
|
26
26
|
}, o = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(a, r);
|
|
27
27
|
o((t = t.apply(n, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { assign as y, isArray as
|
|
29
|
+
import { assign as y, isArray as Te, forEach as Ce, isObject as _e, isFunction as ke, some as I } from "min-dash";
|
|
30
30
|
import { is as R } from "bpmn-js/lib/util/ModelUtil";
|
|
31
|
-
import { isExpanded as
|
|
31
|
+
import { isExpanded as Ie, isEventSubProcess as Ae } from "bpmn-js/lib/util/DiUtil";
|
|
32
32
|
import { isAny as N } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
33
|
-
import { getChildLanes as
|
|
34
|
-
import { hasPrimaryModifier as
|
|
35
|
-
import
|
|
33
|
+
import { getChildLanes as we } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
34
|
+
import { hasPrimaryModifier as $e } from "diagram-js/lib/util/Mouse";
|
|
35
|
+
import le from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
36
36
|
import K from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
37
|
-
import { getMid as
|
|
38
|
-
import { fastClone as
|
|
37
|
+
import { getMid as Le, asTRBL as Oe } from "diagram-js/lib/layout/LayoutUtil";
|
|
38
|
+
import { fastClone as g, isBlank as Pe, capitalize as Me, isArray as te } from "@web-utils/core";
|
|
39
39
|
import { n as h } from "../chunks/_plugin-vue2_normalizer.YT9tSeEj.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
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
44
|
+
import De from "bpmn-js/lib/Modeler";
|
|
45
|
+
import Be from "bpmn-js/lib/features/drilldown/index.js";
|
|
46
|
+
import Ve from "bpmn-js-token-simulation";
|
|
47
|
+
import ne from "x2js";
|
|
48
|
+
import pe from "highlight.js/lib/core";
|
|
49
49
|
import Re from "highlight.js/lib/languages/xml";
|
|
50
|
-
import
|
|
51
|
-
import
|
|
50
|
+
import je from "highlight.js/lib/languages/json";
|
|
51
|
+
import ze from "../highlight-j-s/index.mjs";
|
|
52
52
|
import "../highlight-j-s/style.css";
|
|
53
|
-
function J(n, e, t, i, s, a, r, o, p,
|
|
54
|
-
n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = s, this._elementFactory = a, this._connect = r, this._create = o, this._popupMenu = p, this._canvas =
|
|
55
|
-
const C =
|
|
56
|
-
if (
|
|
53
|
+
function J(n, e, t, i, s, a, r, o, p, E, m, l, c) {
|
|
54
|
+
n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = s, this._elementFactory = a, this._connect = r, this._create = o, this._popupMenu = p, this._canvas = E, this._rules = m, this._translate = l, n.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(F) {
|
|
55
|
+
const C = F.context.shape;
|
|
56
|
+
if (!$e(F) || !i.isOpen(C))
|
|
57
57
|
return;
|
|
58
58
|
const f = i.getEntries(C);
|
|
59
|
-
f.replace && f.replace.action.click(
|
|
59
|
+
f.replace && f.replace.action.click(F, C);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
J.$inject = [
|
|
@@ -75,25 +75,25 @@ J.$inject = [
|
|
|
75
75
|
"elementRegistry"
|
|
76
76
|
];
|
|
77
77
|
J.prototype.getContextPadEntries = function(n) {
|
|
78
|
-
const e = this._contextPad, t = this._modeling, i = this._elementFactory, s = this._connect, a = this._create, r = this._popupMenu, o = this._canvas, p = this._rules,
|
|
78
|
+
const e = this._contextPad, t = this._modeling, i = this._elementFactory, s = this._connect, a = this._create, r = this._popupMenu, o = this._canvas, p = this._rules, E = this._autoPlace, m = this._translate, l = {};
|
|
79
79
|
if (n.type === "label")
|
|
80
80
|
return l;
|
|
81
81
|
const c = n.businessObject;
|
|
82
|
-
function
|
|
82
|
+
function F(b, S) {
|
|
83
83
|
s.start(b, S);
|
|
84
84
|
}
|
|
85
85
|
function O() {
|
|
86
86
|
t.removeElements([n]);
|
|
87
87
|
}
|
|
88
88
|
function C(b) {
|
|
89
|
-
const
|
|
89
|
+
const v = o.getContainer(), w = e.getPad(b).html, $ = v.getBoundingClientRect(), M = w.getBoundingClientRect(), D = M.top - $.top;
|
|
90
90
|
return {
|
|
91
91
|
x: M.left - $.left,
|
|
92
92
|
y: D + M.height + 5
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function f(b, S,
|
|
96
|
-
typeof
|
|
95
|
+
function f(b, S, v, w) {
|
|
96
|
+
typeof v != "string" && (w = v, v = m("Append {type}", { type: b.replace(/^bpmn:/, "") }));
|
|
97
97
|
function $(D, B) {
|
|
98
98
|
const V = i.createShape(y({ type: b }, w));
|
|
99
99
|
a.start(D, V, {
|
|
@@ -103,31 +103,31 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
103
103
|
return {
|
|
104
104
|
group: "model",
|
|
105
105
|
className: S,
|
|
106
|
-
title:
|
|
106
|
+
title: v,
|
|
107
107
|
action: {
|
|
108
108
|
dragstart: $,
|
|
109
|
-
click:
|
|
109
|
+
click: E ? function(D, B) {
|
|
110
110
|
const V = i.createShape(y({ type: b }, w));
|
|
111
|
-
|
|
111
|
+
E.append(B, V);
|
|
112
112
|
} : $
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
function P(b) {
|
|
117
|
-
return function(S,
|
|
118
|
-
t.splitLane(
|
|
117
|
+
return function(S, v) {
|
|
118
|
+
t.splitLane(v, b), e.open(v, !0);
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
if (N(c, ["bpmn:Lane", "bpmn:Participant"]) &&
|
|
122
|
-
const b =
|
|
121
|
+
if (N(c, ["bpmn:Lane", "bpmn:Participant"]) && Ie(c)) {
|
|
122
|
+
const b = we(n);
|
|
123
123
|
y(l, {
|
|
124
124
|
"lane-insert-above": {
|
|
125
125
|
group: "lane-insert-above",
|
|
126
126
|
className: "bpmn-icon-lane-insert-above",
|
|
127
127
|
title: m("Add Lane above"),
|
|
128
128
|
action: {
|
|
129
|
-
click: function(S,
|
|
130
|
-
t.addLane(
|
|
129
|
+
click: function(S, v) {
|
|
130
|
+
t.addLane(v, "top");
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -155,8 +155,8 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
155
155
|
className: "bpmn-icon-lane-insert-below",
|
|
156
156
|
title: m("Add Lane below"),
|
|
157
157
|
action: {
|
|
158
|
-
click: function(S,
|
|
159
|
-
t.addLane(
|
|
158
|
+
click: function(S, v) {
|
|
159
|
+
t.addLane(v, "bottom");
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -188,11 +188,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
188
188
|
m("Append SignalIntermediateCatchEvent"),
|
|
189
189
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
190
190
|
)
|
|
191
|
-
}) :
|
|
191
|
+
}) : ie(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
192
192
|
"append.compensation-activity": f("bpmn:Task", "bpmn-icon-task", m("Append compensation activity"), {
|
|
193
193
|
isForCompensation: !0
|
|
194
194
|
})
|
|
195
|
-
}) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !
|
|
195
|
+
}) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !ie(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ae(c) && y(l, {
|
|
196
196
|
"append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", m("Append EndEvent")),
|
|
197
197
|
"append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", m("Append Gateway")),
|
|
198
198
|
"append.append-task": f("bpmn:UserTask", "bpmn-icon-user-task", m("Append Task")),
|
|
@@ -208,10 +208,10 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
208
208
|
title: m("Change type"),
|
|
209
209
|
action: {
|
|
210
210
|
click: function(b, S) {
|
|
211
|
-
const
|
|
211
|
+
const v = y(C(S), {
|
|
212
212
|
cursor: { x: b.x, y: b.y }
|
|
213
213
|
});
|
|
214
|
-
r.open(S, "bpmn-replace",
|
|
214
|
+
r.open(S, "bpmn-replace", v);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -222,8 +222,8 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
222
222
|
className: "bpmn-icon-connection-multi",
|
|
223
223
|
title: m(`Connect using ${c.isForCompensation ? "" : "Sequence/MessageFlow or "}Association`),
|
|
224
224
|
action: {
|
|
225
|
-
click:
|
|
226
|
-
dragstart:
|
|
225
|
+
click: F,
|
|
226
|
+
dragstart: F
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}), N(c, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
|
|
@@ -232,15 +232,15 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
232
232
|
className: "bpmn-icon-connection-multi",
|
|
233
233
|
title: m("Connect using DataInputAssociation"),
|
|
234
234
|
action: {
|
|
235
|
-
click:
|
|
236
|
-
dragstart:
|
|
235
|
+
click: F,
|
|
236
|
+
dragstart: F
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}), R(c, "bpmn:Group") && y(l, {
|
|
240
240
|
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
241
241
|
});
|
|
242
|
-
let
|
|
243
|
-
return
|
|
242
|
+
let _ = p.allowed("elements.delete", { elements: [n] });
|
|
243
|
+
return Te(_) && (_ = _[0] === n), _ && y(l, {
|
|
244
244
|
delete: {
|
|
245
245
|
group: "edit",
|
|
246
246
|
className: "bpmn-icon-trash",
|
|
@@ -251,11 +251,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
251
251
|
}
|
|
252
252
|
}), l;
|
|
253
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function ie(n, e, t) {
|
|
255
255
|
const i = n.$instanceOf(e);
|
|
256
256
|
let s = !1;
|
|
257
257
|
const a = n.eventDefinitions || [];
|
|
258
|
-
return
|
|
258
|
+
return Ce(a, function(r) {
|
|
259
259
|
r.$type === t && (s = !0);
|
|
260
260
|
}), i && s;
|
|
261
261
|
}
|
|
@@ -264,22 +264,22 @@ const Ue = {
|
|
|
264
264
|
contextPadProvider: ["type", J]
|
|
265
265
|
};
|
|
266
266
|
function L(n, e, t, i, s, a, r, o, p) {
|
|
267
|
-
|
|
267
|
+
le.call(this, n, e, t, i, s, a, r, o, p, 2e3), this._create = e, this._elementFactory = t, this._spaceTool = i, this._lassoTool = s, this._handTool = a, this._globalConnect = r, this._moddle = o, this._translate = p;
|
|
268
268
|
}
|
|
269
269
|
const Z = function() {
|
|
270
270
|
};
|
|
271
|
-
Z.prototype =
|
|
271
|
+
Z.prototype = le.prototype;
|
|
272
272
|
Z.prototype.getPaletteEntries = function() {
|
|
273
273
|
const n = {}, e = this._create, t = this._elementFactory, i = this._spaceTool, s = this._lassoTool, a = this._handTool, r = this._globalConnect, o = this._translate;
|
|
274
|
-
function p(l, c,
|
|
275
|
-
function f(
|
|
274
|
+
function p(l, c, F, O, C) {
|
|
275
|
+
function f(_) {
|
|
276
276
|
const b = t.createShape(y({ type: l }, C));
|
|
277
|
-
l === "bpmn:UserTask" && (b.businessObject.candidateUsers = "${handlers}"), C && (b.businessObject.di.isExpanded = C.isExpanded), e.start(
|
|
277
|
+
l === "bpmn:UserTask" && (b.businessObject.candidateUsers = "${handlers}"), C && (b.businessObject.di.isExpanded = C.isExpanded), e.start(_, b);
|
|
278
278
|
}
|
|
279
279
|
const P = l.replace(/^bpmn:/, "");
|
|
280
280
|
return {
|
|
281
281
|
group: c,
|
|
282
|
-
className:
|
|
282
|
+
className: F,
|
|
283
283
|
title: O || o("Create {type}", { type: P }),
|
|
284
284
|
action: {
|
|
285
285
|
dragstart: f,
|
|
@@ -287,21 +287,21 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function E(l) {
|
|
291
291
|
const c = t.createShape({
|
|
292
292
|
type: "bpmn:SubProcess",
|
|
293
293
|
x: 0,
|
|
294
294
|
y: 0,
|
|
295
295
|
isExpanded: !0
|
|
296
|
-
}),
|
|
296
|
+
}), F = t.createShape({
|
|
297
297
|
type: "bpmn:StartEvent",
|
|
298
298
|
x: 40,
|
|
299
299
|
y: 82,
|
|
300
300
|
parent: c
|
|
301
301
|
});
|
|
302
|
-
e.start(l, [c,
|
|
302
|
+
e.start(l, [c, F], {
|
|
303
303
|
hints: {
|
|
304
|
-
autoSelect: [
|
|
304
|
+
autoSelect: [F]
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
307
|
}
|
|
@@ -369,8 +369,8 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
369
369
|
className: "bpmn-icon-subprocess-expanded",
|
|
370
370
|
title: o("Create expanded SubProcess"),
|
|
371
371
|
action: {
|
|
372
|
-
dragstart:
|
|
373
|
-
click:
|
|
372
|
+
dragstart: E,
|
|
373
|
+
click: E
|
|
374
374
|
}
|
|
375
375
|
},
|
|
376
376
|
"create.participant-expanded": {
|
|
@@ -392,7 +392,7 @@ const Ne = {
|
|
|
392
392
|
__init__: ["customPalette"],
|
|
393
393
|
customPalette: ["type", L]
|
|
394
394
|
};
|
|
395
|
-
function
|
|
395
|
+
function me(n, e) {
|
|
396
396
|
K.call(this, n, e, 3e3), n.on("autoPlace", 3e3, function(t) {
|
|
397
397
|
const i = t.shape, s = t.source;
|
|
398
398
|
return Je(s, i);
|
|
@@ -441,13 +441,13 @@ function Je(n, e, t) {
|
|
|
441
441
|
y: a.bottom + i + e.height / 2
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const ce = function() {
|
|
445
445
|
};
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
446
|
+
ce.prototype = K.prototype;
|
|
447
|
+
me.prototype = new ce();
|
|
448
|
+
me.prototype.constructor = K;
|
|
449
449
|
const Ze = 200, He = 100;
|
|
450
|
-
function
|
|
450
|
+
function ue(n, e, t) {
|
|
451
451
|
n.on("autoPlace", He, function(i) {
|
|
452
452
|
const s = i.shape, a = i.source;
|
|
453
453
|
return We(a, s);
|
|
@@ -468,19 +468,19 @@ function ce(n, e, t) {
|
|
|
468
468
|
}), o;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
|
|
471
|
+
ue.$inject = ["eventBus", "modeling", "canvas"];
|
|
472
472
|
function We(n, e) {
|
|
473
|
-
const t = Ze, i =
|
|
473
|
+
const t = Ze, i = Le(n);
|
|
474
474
|
return {
|
|
475
|
-
x:
|
|
475
|
+
x: Oe(n).right + t + e.width / 2,
|
|
476
476
|
y: i.y
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
const Xe = {
|
|
480
480
|
__init__: ["autoPlaceSelectionBehavior"],
|
|
481
|
-
autoPlace: ["type",
|
|
481
|
+
autoPlace: ["type", ue]
|
|
482
482
|
};
|
|
483
|
-
function
|
|
483
|
+
function de(n, e, t, i) {
|
|
484
484
|
const s = /* @__PURE__ */ Object.create(null);
|
|
485
485
|
switch (s.event = e.event, t && (s.id = e.id), e.listenerType) {
|
|
486
486
|
case "scriptListener":
|
|
@@ -565,7 +565,7 @@ const tt = (n, e = "body") => n ? n.get(e) : null, nt = (n, e, t = "body", i) =>
|
|
|
565
565
|
methods: {
|
|
566
566
|
init(n) {
|
|
567
567
|
const { businessObject: e } = this.element;
|
|
568
|
-
n ? (this.businessObject =
|
|
568
|
+
n ? (this.businessObject = g(e), this.businessObject.$type === "bpmn:SubProcess" && this.$set(this.businessObject, "isExpanded", this.element.di.isExpanded)) : this.businessObject = {}, this.skipExpression = tt(e, this.skipExpressionProp);
|
|
569
569
|
},
|
|
570
570
|
updateBaseInfo(n) {
|
|
571
571
|
const { modeling: e } = this.bpmnInstances;
|
|
@@ -640,7 +640,7 @@ const lt = ot.exports, pt = {
|
|
|
640
640
|
id: {
|
|
641
641
|
immediate: !0,
|
|
642
642
|
handler() {
|
|
643
|
-
if (
|
|
643
|
+
if (Pe(this.element))
|
|
644
644
|
this.documentation = "";
|
|
645
645
|
else {
|
|
646
646
|
const {
|
|
@@ -766,7 +766,7 @@ var bt = function() {
|
|
|
766
766
|
null,
|
|
767
767
|
null
|
|
768
768
|
);
|
|
769
|
-
const
|
|
769
|
+
const vt = ht.exports, gt = {
|
|
770
770
|
name: "ScriptTask",
|
|
771
771
|
props: {
|
|
772
772
|
id: String,
|
|
@@ -837,7 +837,7 @@ var Et = function() {
|
|
|
837
837
|
e.$set(e.scriptTaskForm, "resultVariable", i);
|
|
838
838
|
}, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
|
|
839
839
|
}, Ft = [], xt = /* @__PURE__ */ h(
|
|
840
|
-
|
|
840
|
+
gt,
|
|
841
841
|
Et,
|
|
842
842
|
Ft,
|
|
843
843
|
!1,
|
|
@@ -916,19 +916,19 @@ var Ct = function() {
|
|
|
916
916
|
}, expression: "newMessageForm.id" } })], 1), t("ElFormItem", { attrs: { label: "消息名称" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(i) {
|
|
917
917
|
e.$set(e.newMessageForm, "name", i);
|
|
918
918
|
}, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
|
|
919
|
-
},
|
|
919
|
+
}, _t = [], kt = /* @__PURE__ */ h(
|
|
920
920
|
Tt,
|
|
921
921
|
Ct,
|
|
922
|
-
|
|
922
|
+
_t,
|
|
923
923
|
!1,
|
|
924
924
|
null,
|
|
925
925
|
null,
|
|
926
926
|
null,
|
|
927
927
|
null
|
|
928
928
|
);
|
|
929
|
-
const It =
|
|
929
|
+
const It = kt.exports, At = {
|
|
930
930
|
name: "ElementTaskConfig",
|
|
931
|
-
components: { UserTask:
|
|
931
|
+
components: { UserTask: vt, ScriptTask: St, ReceiveTask: It },
|
|
932
932
|
props: {
|
|
933
933
|
id: String,
|
|
934
934
|
element: Object,
|
|
@@ -1246,7 +1246,7 @@ const Vt = Bt.exports, Rt = {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
};
|
|
1249
|
-
var
|
|
1249
|
+
var jt = function() {
|
|
1250
1250
|
var e = this, t = e._self._c;
|
|
1251
1251
|
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { model: e.flowConditionForm, "label-width": "90px", size: "mini" }, nativeOn: { submit: function(i) {
|
|
1252
1252
|
i.preventDefault();
|
|
@@ -1265,10 +1265,10 @@ var zt = function() {
|
|
|
1265
1265
|
}, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.scriptType === "externalScript" ? t("ElFormItem", { key: "resource", attrs: { label: "资源地址" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.resource, callback: function(i) {
|
|
1266
1266
|
e.$set(e.flowConditionForm, "resource", i);
|
|
1267
1267
|
}, expression: "flowConditionForm.resource" } })], 1) : e._e()] : e._e()], 2)], 1);
|
|
1268
|
-
},
|
|
1268
|
+
}, zt = [], Ut = /* @__PURE__ */ h(
|
|
1269
1269
|
Rt,
|
|
1270
|
-
zt,
|
|
1271
1270
|
jt,
|
|
1271
|
+
zt,
|
|
1272
1272
|
!1,
|
|
1273
1273
|
null,
|
|
1274
1274
|
null,
|
|
@@ -1358,7 +1358,7 @@ var qt = function() {
|
|
|
1358
1358
|
null
|
|
1359
1359
|
);
|
|
1360
1360
|
const Zt = Jt.exports;
|
|
1361
|
-
function
|
|
1361
|
+
function fe(n) {
|
|
1362
1362
|
let e = u({}, n);
|
|
1363
1363
|
if (n.script && (e = T(u(u({}, n), n.script), {
|
|
1364
1364
|
scriptType: n.script.resource ? "externalScript" : "inlineScript"
|
|
@@ -1370,15 +1370,15 @@ function de(n) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
return e;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function be(n) {
|
|
1374
1374
|
var t, i;
|
|
1375
1375
|
let e;
|
|
1376
|
-
return n.class && (e = "classListener"), n.expression && (e = "expressionListener"), n.delegateExpression && (e = "delegateExpressionListener"), n.script && (e = "scriptListener"), T(u(u({},
|
|
1376
|
+
return n.class && (e = "classListener"), n.expression && (e = "expressionListener"), n.delegateExpression && (e = "delegateExpressionListener"), n.script && (e = "scriptListener"), T(u(u({}, g(n)), (t = n.script) != null ? t : {}), {
|
|
1377
1377
|
fields: (i = n.fields) == null ? void 0 : i.map((s) => T(u({}, s), { fieldType: s.expression ? "expression" : "string" })),
|
|
1378
1378
|
listenerType: e
|
|
1379
1379
|
});
|
|
1380
1380
|
}
|
|
1381
|
-
const
|
|
1381
|
+
const ye = {
|
|
1382
1382
|
classListener: "Java 类",
|
|
1383
1383
|
expressionListener: "表达式",
|
|
1384
1384
|
delegateExpressionListener: "代理表达式",
|
|
@@ -1390,7 +1390,7 @@ const be = {
|
|
|
1390
1390
|
delete: "删除",
|
|
1391
1391
|
update: "更新",
|
|
1392
1392
|
timeout: "超时"
|
|
1393
|
-
},
|
|
1393
|
+
}, he = {
|
|
1394
1394
|
string: "字符串",
|
|
1395
1395
|
expression: "表达式"
|
|
1396
1396
|
}, Wt = (n) => ({
|
|
@@ -1405,7 +1405,7 @@ const be = {
|
|
|
1405
1405
|
{
|
|
1406
1406
|
$type: "flowable:Field",
|
|
1407
1407
|
name: "url",
|
|
1408
|
-
string: `${e != null && e.url ? `/${e.url}` : ""}/flow${
|
|
1408
|
+
string: `${e != null && e.url ? `/${e.url}` : ""}/flow${Me(n)}`,
|
|
1409
1409
|
fieldType: "string"
|
|
1410
1410
|
}
|
|
1411
1411
|
], Yt = {
|
|
@@ -1437,8 +1437,8 @@ const be = {
|
|
|
1437
1437
|
// 监听器所在下标,-1 为新增
|
|
1438
1438
|
editingListenerFieldIndex: -1,
|
|
1439
1439
|
// 字段所在下标,-1 为新增
|
|
1440
|
-
listenerTypeObject:
|
|
1441
|
-
fieldTypeObject:
|
|
1440
|
+
listenerTypeObject: ye,
|
|
1441
|
+
fieldTypeObject: he
|
|
1442
1442
|
};
|
|
1443
1443
|
},
|
|
1444
1444
|
computed: {
|
|
@@ -1463,7 +1463,7 @@ const be = {
|
|
|
1463
1463
|
methods: {
|
|
1464
1464
|
resetListenersList() {
|
|
1465
1465
|
var n, e, t, i;
|
|
1466
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:ExecutionListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) =>
|
|
1466
|
+
this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:ExecutionListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) => be(s));
|
|
1467
1467
|
},
|
|
1468
1468
|
changeFiledType(n) {
|
|
1469
1469
|
n === "string" ? (delete this.listenerFieldForm.expression, this.$set(this.listenerFieldForm, "string", "")) : (delete this.listenerFieldForm.string, this.$set(this.listenerFieldForm, "expression", ""));
|
|
@@ -1479,12 +1479,12 @@ const be = {
|
|
|
1479
1479
|
openListenerForm(n, e) {
|
|
1480
1480
|
return d(this, null, function* () {
|
|
1481
1481
|
var t;
|
|
1482
|
-
n ? (this.listenerForm =
|
|
1482
|
+
n ? (this.listenerForm = fe(n), this.fieldsListOfListener = n.fields ? n.fields.map((i) => u({}, i)) : [], this.editingListenerIndex = e) : (this.listenerForm = { fields: [] }, this.fieldsListOfListener = [], this.editingListenerIndex = -1), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
1483
1483
|
});
|
|
1484
1484
|
},
|
|
1485
1485
|
// 打开监听器字段编辑弹窗
|
|
1486
1486
|
openListenerFieldForm(n, e) {
|
|
1487
|
-
this.listenerFieldForm = n ?
|
|
1487
|
+
this.listenerFieldForm = n ? g(n) : { fieldType: "string" }, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, this.$nextTick(() => {
|
|
1488
1488
|
this.$refs.listenerFieldFormRef && this.$refs.listenerFieldFormRef.clearValidate();
|
|
1489
1489
|
});
|
|
1490
1490
|
},
|
|
@@ -1518,7 +1518,7 @@ const be = {
|
|
|
1518
1518
|
var t, i, s, a;
|
|
1519
1519
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
1520
1520
|
return;
|
|
1521
|
-
const e =
|
|
1521
|
+
const e = de(this.bpmnInstances, this.listenerForm, !1, this.prefix);
|
|
1522
1522
|
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (a = (s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((r) => r.$type !== `${this.prefix}:ExecutionListener`)) != null ? a : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
1523
1523
|
});
|
|
1524
1524
|
}
|
|
@@ -1646,10 +1646,10 @@ const nn = tn.exports, sn = {
|
|
|
1646
1646
|
methods: {
|
|
1647
1647
|
resetAttributesList() {
|
|
1648
1648
|
var n, e, t, i, s;
|
|
1649
|
-
this.otherExtensionList = [], this.bpmnElementProperties = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((a) => (a.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(a), a.$type === `${this.prefix}:Properties`))) != null ? i : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((a, r) => a.concat(r.values), []), this.elementPropertyList =
|
|
1649
|
+
this.otherExtensionList = [], this.bpmnElementProperties = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((a) => (a.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(a), a.$type === `${this.prefix}:Properties`))) != null ? i : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((a, r) => a.concat(r.values), []), this.elementPropertyList = g((s = this.bpmnElementPropertyList) != null ? s : []);
|
|
1650
1650
|
},
|
|
1651
1651
|
openAttributesForm(n, e) {
|
|
1652
|
-
this.editingPropertyIndex = e, this.propertyForm = e === -1 ? {} :
|
|
1652
|
+
this.editingPropertyIndex = e, this.propertyForm = e === -1 ? {} : g(n), this.propertyFormModelVisible = !0, this.$nextTick(() => {
|
|
1653
1653
|
this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
|
|
1654
1654
|
});
|
|
1655
1655
|
},
|
|
@@ -1781,7 +1781,7 @@ const ln = on.exports, pn = {
|
|
|
1781
1781
|
methods: {
|
|
1782
1782
|
resetFormList() {
|
|
1783
1783
|
var n;
|
|
1784
|
-
this.formKey = this.element.businessObject.formKey, this.elExtensionElements = this.element.businessObject.get("extensionElements") || this.bpmnInstances.moddle.create("bpmn:ExtensionElements", { values: [] }), this.formData = ((n = this.elExtensionElements.values.filter((e) => e.$type === `${this.prefix}:FormData`)) == null ? void 0 : n[0]) || this.bpmnInstances.moddle.create(`${this.prefix}:FormData`, { fields: [] }), this.businessKey = this.formData.businessKey, this.otherExtensions = this.elExtensionElements.values.filter((e) => e.$type !== `${this.prefix}:FormData`), this.fieldList =
|
|
1784
|
+
this.formKey = this.element.businessObject.formKey, this.elExtensionElements = this.element.businessObject.get("extensionElements") || this.bpmnInstances.moddle.create("bpmn:ExtensionElements", { values: [] }), this.formData = ((n = this.elExtensionElements.values.filter((e) => e.$type === `${this.prefix}:FormData`)) == null ? void 0 : n[0]) || this.bpmnInstances.moddle.create(`${this.prefix}:FormData`, { fields: [] }), this.businessKey = this.formData.businessKey, this.otherExtensions = this.elExtensionElements.values.filter((e) => e.$type !== `${this.prefix}:FormData`), this.fieldList = g(this.formData.fields || []), this.updateElementExtensions();
|
|
1785
1785
|
},
|
|
1786
1786
|
updateElementFormKey() {
|
|
1787
1787
|
this.bpmnInstances.modeling.updateProperties(this.element, { formKey: this.formKey });
|
|
@@ -1800,14 +1800,14 @@ const ln = on.exports, pn = {
|
|
|
1800
1800
|
var t, i;
|
|
1801
1801
|
if (this.formFieldIndex = e, e !== -1) {
|
|
1802
1802
|
const s = this.formData.fields[e];
|
|
1803
|
-
this.formFieldForm =
|
|
1803
|
+
this.formFieldForm = g(n), this.$set(this.formFieldForm, "typeType", this.fieldType[n.type] ? n.type : "custom"), n.type === "enum" && (this.fieldEnumList = g((s == null ? void 0 : s.values) || [])), this.fieldConstraintsList = g(((t = s == null ? void 0 : s.validation) == null ? void 0 : t.constraints) || []), this.fieldPropertiesList = g(((i = s == null ? void 0 : s.properties) == null ? void 0 : i.values) || []);
|
|
1804
1804
|
} else
|
|
1805
1805
|
this.formFieldForm = {}, this.fieldEnumList = [], this.fieldConstraintsList = [], this.fieldPropertiesList = [];
|
|
1806
1806
|
this.fieldModelVisible = !0;
|
|
1807
1807
|
},
|
|
1808
1808
|
// 打开字段 某个 配置项 弹窗
|
|
1809
1809
|
openFieldOptionForm(n, e, t) {
|
|
1810
|
-
return this.fieldOptionModelVisible = !0, this.fieldOptionType = t, this.formFieldOptionIndex = e, t === "property" ? (this.fieldOptionForm = n ?
|
|
1810
|
+
return this.fieldOptionModelVisible = !0, this.fieldOptionType = t, this.formFieldOptionIndex = e, t === "property" ? (this.fieldOptionForm = n ? g(n) : {}, this.optionModelTitle = "属性配置") : t === "enum" ? (this.fieldOptionForm = n ? g(n) : {}, this.optionModelTitle = "枚举值配置") : (this.fieldOptionForm = n ? g(n) : {}, this.optionModelTitle = "约束条件配置");
|
|
1811
1811
|
},
|
|
1812
1812
|
// 保存字段 某个 配置项
|
|
1813
1813
|
saveFieldOption() {
|
|
@@ -1960,10 +1960,10 @@ const dn = un.exports, fn = {
|
|
|
1960
1960
|
return {
|
|
1961
1961
|
elementListenersList: [],
|
|
1962
1962
|
listenerEventTypeObject: Ht,
|
|
1963
|
-
listenerTypeObject:
|
|
1963
|
+
listenerTypeObject: ye,
|
|
1964
1964
|
listenerFormModelVisible: !1,
|
|
1965
1965
|
listenerForm: {},
|
|
1966
|
-
fieldTypeObject:
|
|
1966
|
+
fieldTypeObject: he,
|
|
1967
1967
|
fieldsListOfListener: [],
|
|
1968
1968
|
listenerFieldFormModelVisible: !1,
|
|
1969
1969
|
// 监听器 注入字段表单弹窗 显示状态
|
|
@@ -1988,12 +1988,12 @@ const dn = un.exports, fn = {
|
|
|
1988
1988
|
methods: {
|
|
1989
1989
|
resetListenersList() {
|
|
1990
1990
|
var n, e, t, i;
|
|
1991
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) =>
|
|
1991
|
+
this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) => be(s));
|
|
1992
1992
|
},
|
|
1993
1993
|
openListenerForm(n, e) {
|
|
1994
1994
|
return d(this, null, function* () {
|
|
1995
1995
|
var t;
|
|
1996
|
-
n ? (this.listenerForm =
|
|
1996
|
+
n ? (this.listenerForm = fe(n), this.editingListenerIndex = e) : (this.listenerForm = {}, this.editingListenerIndex = -1), n && n.fields ? this.fieldsListOfListener = n.fields.map((i) => T(u({}, i), {
|
|
1997
1997
|
fieldType: i.string ? "string" : "expression"
|
|
1998
1998
|
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
1999
1999
|
});
|
|
@@ -2013,7 +2013,7 @@ const dn = un.exports, fn = {
|
|
|
2013
2013
|
var t, i, s, a;
|
|
2014
2014
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
2015
2015
|
return;
|
|
2016
|
-
const e =
|
|
2016
|
+
const e = de(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
2017
2017
|
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (a = (s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((r) => r.$type !== `${this.prefix}:TaskListener`)) != null ? a : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
2018
2018
|
});
|
|
2019
2019
|
},
|
|
@@ -2021,7 +2021,7 @@ const dn = un.exports, fn = {
|
|
|
2021
2021
|
openListenerFieldForm(n, e) {
|
|
2022
2022
|
return d(this, null, function* () {
|
|
2023
2023
|
var t;
|
|
2024
|
-
this.listenerFieldForm = n ?
|
|
2024
|
+
this.listenerFieldForm = n ? g(n) : {}, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
|
|
2025
2025
|
});
|
|
2026
2026
|
},
|
|
2027
2027
|
// 保存监听器注入字段
|
|
@@ -2122,11 +2122,11 @@ var bn = function() {
|
|
|
2122
2122
|
null,
|
|
2123
2123
|
null
|
|
2124
2124
|
);
|
|
2125
|
-
const
|
|
2125
|
+
const vn = hn.exports, se = ["base", "task", "form", "multiInstance"], gn = {
|
|
2126
2126
|
name: "PropertiesPanel",
|
|
2127
2127
|
componentName: "MyPropertiesPanel",
|
|
2128
2128
|
components: {
|
|
2129
|
-
UserTaskListeners:
|
|
2129
|
+
UserTaskListeners: vn,
|
|
2130
2130
|
ElementForm: dn,
|
|
2131
2131
|
ElementProperties: ln,
|
|
2132
2132
|
ElementListeners: nn,
|
|
@@ -2213,12 +2213,12 @@ const gn = hn.exports, ie = ["base", "task", "form", "multiInstance"], vn = {
|
|
|
2213
2213
|
activeTabs: {
|
|
2214
2214
|
immediate: !0,
|
|
2215
2215
|
handler() {
|
|
2216
|
-
this.activeTab =
|
|
2216
|
+
this.activeTab = se;
|
|
2217
2217
|
}
|
|
2218
2218
|
},
|
|
2219
2219
|
elementId: {
|
|
2220
2220
|
handler() {
|
|
2221
|
-
this.activeTab =
|
|
2221
|
+
this.activeTab = se;
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
2224
|
},
|
|
@@ -2298,7 +2298,7 @@ var En = function() {
|
|
|
2298
2298
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-promotion" }), e._v("其他")])];
|
|
2299
2299
|
}, proxy: !0 }], null, !1, 520255146) }, [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)], 1);
|
|
2300
2300
|
}, Fn = [], xn = /* @__PURE__ */ h(
|
|
2301
|
-
|
|
2301
|
+
gn,
|
|
2302
2302
|
En,
|
|
2303
2303
|
Fn,
|
|
2304
2304
|
!1,
|
|
@@ -2335,7 +2335,7 @@ function Cn(n) {
|
|
|
2335
2335
|
});
|
|
2336
2336
|
};
|
|
2337
2337
|
}
|
|
2338
|
-
const
|
|
2338
|
+
const _n = {
|
|
2339
2339
|
// 添加部分
|
|
2340
2340
|
"Append EndEvent": "追加结束事件",
|
|
2341
2341
|
"Append Gateway": "追加网关",
|
|
@@ -2583,7 +2583,7 @@ const kn = {
|
|
|
2583
2583
|
Data: "数据",
|
|
2584
2584
|
TextAnnotation: "文本说明",
|
|
2585
2585
|
Tasks: "任务"
|
|
2586
|
-
},
|
|
2586
|
+
}, kn = "Camunda", In = "http://camunda.org/schema/1.0/bpmn", An = "camunda", wn = {
|
|
2587
2587
|
tagAlias: "lowerCase"
|
|
2588
2588
|
}, $n = [], Ln = [
|
|
2589
2589
|
{
|
|
@@ -3701,8 +3701,8 @@ const kn = {
|
|
|
3701
3701
|
}
|
|
3702
3702
|
]
|
|
3703
3703
|
}
|
|
3704
|
-
], On = [],
|
|
3705
|
-
name:
|
|
3704
|
+
], On = [], re = {
|
|
3705
|
+
name: kn,
|
|
3706
3706
|
uri: In,
|
|
3707
3707
|
prefix: An,
|
|
3708
3708
|
xml: wn,
|
|
@@ -4809,15 +4809,15 @@ const kn = {
|
|
|
4809
4809
|
}
|
|
4810
4810
|
]
|
|
4811
4811
|
}
|
|
4812
|
-
],
|
|
4812
|
+
], jn = [], ae = {
|
|
4813
4813
|
name: Pn,
|
|
4814
4814
|
uri: Mn,
|
|
4815
4815
|
prefix: Dn,
|
|
4816
4816
|
xml: Bn,
|
|
4817
4817
|
associations: Vn,
|
|
4818
4818
|
types: Rn,
|
|
4819
|
-
emumerations:
|
|
4820
|
-
},
|
|
4819
|
+
emumerations: jn
|
|
4820
|
+
}, zn = "Flowable", Un = "http://flowable.org/bpmn", Nn = "flowable", Gn = {
|
|
4821
4821
|
tagAlias: "lowerCase"
|
|
4822
4822
|
}, qn = [], Kn = [], Jn = [
|
|
4823
4823
|
{
|
|
@@ -6181,8 +6181,8 @@ const kn = {
|
|
|
6181
6181
|
}
|
|
6182
6182
|
]
|
|
6183
6183
|
}
|
|
6184
|
-
],
|
|
6185
|
-
name:
|
|
6184
|
+
], oe = {
|
|
6185
|
+
name: zn,
|
|
6186
6186
|
uri: Un,
|
|
6187
6187
|
prefix: Nn,
|
|
6188
6188
|
xml: Gn,
|
|
@@ -6199,34 +6199,34 @@ function A(n) {
|
|
|
6199
6199
|
}
|
|
6200
6200
|
A.$inject = ["eventBus"];
|
|
6201
6201
|
A.prototype.canCopyProperty = function(n, e) {
|
|
6202
|
-
if (
|
|
6202
|
+
if (_e(n) && !Hn(n, e) || k(n, "camunda:InputOutput") && !this.canHostInputOutput(e) || ve(n, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || k(n, "camunda:In") && !this.canHostIn(e))
|
|
6203
6203
|
return !1;
|
|
6204
6204
|
};
|
|
6205
6205
|
A.prototype.canHostInputOutput = function(n) {
|
|
6206
6206
|
if (x(n, "camunda:Connector"))
|
|
6207
6207
|
return !0;
|
|
6208
6208
|
const t = x(n, "bpmn:FlowNode");
|
|
6209
|
-
return !(!t ||
|
|
6209
|
+
return !(!t || ve(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || k(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
6210
6210
|
};
|
|
6211
6211
|
A.prototype.canHostConnector = function(n) {
|
|
6212
6212
|
const e = x(n, "camunda:ServiceTaskLike");
|
|
6213
|
-
return
|
|
6213
|
+
return k(e, "bpmn:MessageEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
|
|
6214
6214
|
};
|
|
6215
6215
|
A.prototype.canHostIn = function(n) {
|
|
6216
6216
|
return x(n, "bpmn:CallActivity") ? !0 : x(n, "bpmn:SignalEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
|
|
6217
6217
|
};
|
|
6218
|
-
function
|
|
6218
|
+
function k(n, e) {
|
|
6219
6219
|
return n && ke(n.$instanceOf) && n.$instanceOf(e);
|
|
6220
6220
|
}
|
|
6221
|
-
function
|
|
6221
|
+
function ve(n, e) {
|
|
6222
6222
|
return I(e, function(t) {
|
|
6223
|
-
return
|
|
6223
|
+
return k(n, t);
|
|
6224
6224
|
});
|
|
6225
6225
|
}
|
|
6226
6226
|
function x(n, e) {
|
|
6227
6227
|
if (!e)
|
|
6228
6228
|
return n.$parent;
|
|
6229
|
-
if (
|
|
6229
|
+
if (k(n, e))
|
|
6230
6230
|
return n;
|
|
6231
6231
|
if (n.$parent)
|
|
6232
6232
|
return x(n.$parent, e);
|
|
@@ -6254,7 +6254,7 @@ function H(n, e) {
|
|
|
6254
6254
|
function Qn(n) {
|
|
6255
6255
|
return n && n.length;
|
|
6256
6256
|
}
|
|
6257
|
-
function
|
|
6257
|
+
function j(n, e) {
|
|
6258
6258
|
return Qn(n) && I(n, function(t) {
|
|
6259
6259
|
return H(t, e);
|
|
6260
6260
|
});
|
|
@@ -6281,9 +6281,9 @@ function W(n) {
|
|
|
6281
6281
|
W.$inject = ["eventBus"];
|
|
6282
6282
|
W.prototype.canCloneProperty = function(n, e) {
|
|
6283
6283
|
if (G("activiti:FailedJobRetryTimeCycle", e, n))
|
|
6284
|
-
return
|
|
6284
|
+
return j(n.eventDefinitions, "bpmn:TimerEventDefinition") || j(n.eventDefinitions, "bpmn:SignalEventDefinition") || H(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
6285
6285
|
if (G("activiti:Connector", e, n) || G("activiti:Field", e, n))
|
|
6286
|
-
return
|
|
6286
|
+
return j(n.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
6287
6287
|
};
|
|
6288
6288
|
const ti = {
|
|
6289
6289
|
__init__: ["ActivitiModdleExtension"],
|
|
@@ -6299,7 +6299,7 @@ function X(n, e) {
|
|
|
6299
6299
|
function ii(n) {
|
|
6300
6300
|
return n && n.length;
|
|
6301
6301
|
}
|
|
6302
|
-
function
|
|
6302
|
+
function z(n, e) {
|
|
6303
6303
|
return ii(n) && I(n, function(t) {
|
|
6304
6304
|
return X(t, e);
|
|
6305
6305
|
});
|
|
@@ -6326,20 +6326,20 @@ function Y(n) {
|
|
|
6326
6326
|
Y.$inject = ["eventBus"];
|
|
6327
6327
|
Y.prototype.canCloneProperty = function(n, e) {
|
|
6328
6328
|
if (q("flowable:FailedJobRetryTimeCycle", e, n))
|
|
6329
|
-
return
|
|
6329
|
+
return z(n.eventDefinitions, "bpmn:TimerEventDefinition") || z(n.eventDefinitions, "bpmn:SignalEventDefinition") || X(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
6330
6330
|
if (q("flowable:Connector", e, n) || q("flowable:Field", e, n))
|
|
6331
|
-
return
|
|
6331
|
+
return z(n.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
6332
6332
|
};
|
|
6333
6333
|
const ri = {
|
|
6334
6334
|
__init__: ["FlowableModdleExtension"],
|
|
6335
6335
|
FlowableModdleExtension: ["type", Y]
|
|
6336
6336
|
};
|
|
6337
|
-
|
|
6338
|
-
|
|
6337
|
+
pe.registerLanguage("xml", Re);
|
|
6338
|
+
pe.registerLanguage("json", je);
|
|
6339
6339
|
const ai = {
|
|
6340
6340
|
name: "ProcessDesigner",
|
|
6341
6341
|
components: {
|
|
6342
|
-
HighlightJS:
|
|
6342
|
+
HighlightJS: ze
|
|
6343
6343
|
},
|
|
6344
6344
|
componentName: "MyProcessDesigner",
|
|
6345
6345
|
props: {
|
|
@@ -6412,9 +6412,9 @@ const ai = {
|
|
|
6412
6412
|
return te(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
6413
6413
|
te(this.additionalModel) ? n.push(...this.additionalModel) : this.additionalModel && n.push(this.additionalModel);
|
|
6414
6414
|
const e = {
|
|
6415
|
-
translate: ["value", Cn(this.translations ||
|
|
6415
|
+
translate: ["value", Cn(this.translations || _n)]
|
|
6416
6416
|
};
|
|
6417
|
-
return n.push(e), this.simulation && n.push(
|
|
6417
|
+
return n.push(e), this.simulation && n.push(Ve), n.push(Be), this.prefix === "camunda" && n.push(Xn), this.prefix === "flowable" && n.push(ri), this.prefix === "activiti" && n.push(ti), n;
|
|
6418
6418
|
},
|
|
6419
6419
|
moddleExtensions() {
|
|
6420
6420
|
const n = {};
|
|
@@ -6423,23 +6423,28 @@ const ai = {
|
|
|
6423
6423
|
if (this.moddleExtension)
|
|
6424
6424
|
for (const e in this.moddleExtension)
|
|
6425
6425
|
n[e] = this.moddleExtension[e];
|
|
6426
|
-
return this.prefix === "activiti" && (n.activiti = T(u({},
|
|
6427
|
-
types: [...re.types, ...this.extendTypes || []]
|
|
6428
|
-
})), this.prefix === "flowable" && (n.flowable = T(u({}, ae), {
|
|
6426
|
+
return this.prefix === "activiti" && (n.activiti = T(u({}, ae), {
|
|
6429
6427
|
types: [...ae.types, ...this.extendTypes || []]
|
|
6430
|
-
})), this.prefix === "
|
|
6431
|
-
types: [...
|
|
6428
|
+
})), this.prefix === "flowable" && (n.flowable = T(u({}, oe), {
|
|
6429
|
+
types: [...oe.types, ...this.extendTypes || []]
|
|
6430
|
+
})), this.prefix === "camunda" && (n.camunda = T(u({}, re), {
|
|
6431
|
+
types: [...re.types, ...this.extendTypes || []]
|
|
6432
6432
|
})), n;
|
|
6433
6433
|
}
|
|
6434
6434
|
},
|
|
6435
|
+
watch: {
|
|
6436
|
+
value(n) {
|
|
6437
|
+
this.createNewDiagram(n);
|
|
6438
|
+
}
|
|
6439
|
+
},
|
|
6435
6440
|
mounted() {
|
|
6436
6441
|
this.initBpmnModeler(), this.createNewDiagram(this.value), this.$once("hook:beforeDestroy", () => {
|
|
6437
6442
|
this.bpmnModeler && this.bpmnModeler.destroy(), this.$emit("destroy", this.bpmnModeler), this.bpmnModeler = null;
|
|
6438
|
-
})
|
|
6443
|
+
});
|
|
6439
6444
|
},
|
|
6440
6445
|
methods: {
|
|
6441
6446
|
initBpmnModeler() {
|
|
6442
|
-
this.bpmnModeler || (this.bpmnModeler = new
|
|
6447
|
+
this.bpmnModeler || (this.bpmnModeler = new De(u({
|
|
6443
6448
|
container: this.$refs["bpmn-canvas"],
|
|
6444
6449
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
6445
6450
|
additionalModules: this.additionalModules,
|
|
@@ -6487,17 +6492,18 @@ const ai = {
|
|
|
6487
6492
|
downloadProcess(n, e = "diagram") {
|
|
6488
6493
|
return d(this, null, function* () {
|
|
6489
6494
|
try {
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
+
const { err: i, xml: s } = yield this.bpmnModeler.saveXML();
|
|
6496
|
+
i && console.error(`[Process Designer Warn ]: ${i.message || i}`);
|
|
6497
|
+
const a = new ne(), { definitions: r } = a.xml2js(s);
|
|
6498
|
+
if (e = r.process._name || e, n === "xml" || n === "bpmn") {
|
|
6499
|
+
const { href: o, filename: p } = this.setEncoded(n.toUpperCase(), e, s);
|
|
6500
|
+
t(o, p);
|
|
6495
6501
|
} else {
|
|
6496
|
-
const { err:
|
|
6497
|
-
if (
|
|
6498
|
-
return console.error(
|
|
6499
|
-
const { href:
|
|
6500
|
-
t(
|
|
6502
|
+
const { err: o, svg: p } = yield this.bpmnModeler.saveSVG();
|
|
6503
|
+
if (o)
|
|
6504
|
+
return console.error(o);
|
|
6505
|
+
const { href: E, filename: m } = this.setEncoded("SVG", e, p);
|
|
6506
|
+
t(E, m);
|
|
6501
6507
|
}
|
|
6502
6508
|
} catch (i) {
|
|
6503
6509
|
console.error(`[Process Designer Warn ]: ${i.message || i}`);
|
|
@@ -6590,7 +6596,7 @@ const ai = {
|
|
|
6590
6596
|
});
|
|
6591
6597
|
},
|
|
6592
6598
|
previewProcessJson() {
|
|
6593
|
-
const n = new
|
|
6599
|
+
const n = new ne();
|
|
6594
6600
|
this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: e }) => {
|
|
6595
6601
|
const { definitions: t } = n.xml2js(e);
|
|
6596
6602
|
t ? this.previewResult = JSON.stringify(t, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
|
|
@@ -6726,7 +6732,7 @@ var ui = function() {
|
|
|
6726
6732
|
null,
|
|
6727
6733
|
null
|
|
6728
6734
|
);
|
|
6729
|
-
const
|
|
6735
|
+
const ji = fi.exports;
|
|
6730
6736
|
export {
|
|
6731
|
-
|
|
6737
|
+
ji as default
|
|
6732
6738
|
};
|
package/package.json
CHANGED