@web-utils/component 2.8.19 → 2.8.21
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/base.css +1 -1
- package/data-pay/style.css +1 -1
- package/flow-designer/index.mjs +748 -697
- package/flow-designer/style.css +1 -1
- package/package.json +1 -1
- package/web-types.json +7 -1
package/flow-designer/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Oe = Object.defineProperty, Pe = Object.defineProperties;
|
|
2
|
+
var De = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Q = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var ee = (e, i, t) => i in e ?
|
|
4
|
+
var Be = Object.prototype.hasOwnProperty, je = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ee = (e, i, t) => i in e ? Oe(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, f = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
Be.call(i, t) && ee(e, t, i[t]);
|
|
8
8
|
if (Q)
|
|
9
9
|
for (var t of Q(i))
|
|
10
|
-
|
|
10
|
+
je.call(i, t) && ee(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
}, T = (e, i) =>
|
|
12
|
+
}, T = (e, i) => Pe(e, De(i));
|
|
13
13
|
var u = (e, i, t) => new Promise((n, s) => {
|
|
14
14
|
var r = (m) => {
|
|
15
15
|
try {
|
|
@@ -26,30 +26,34 @@ var u = (e, i, t) => new Promise((n, s) => {
|
|
|
26
26
|
}, o = (m) => m.done ? n(m.value) : Promise.resolve(m.value).then(r, a);
|
|
27
27
|
o((t = t.apply(e, i)).next());
|
|
28
28
|
});
|
|
29
|
-
import { assign as y, isArray as
|
|
30
|
-
import { is as
|
|
31
|
-
import { isExpanded as
|
|
29
|
+
import { assign as y, isArray as Re, forEach as Ve, isObject as ze, isFunction as Ue, some as k } from "min-dash";
|
|
30
|
+
import { is as R } from "bpmn-js/lib/util/ModelUtil";
|
|
31
|
+
import { isExpanded as Ne, isEventSubProcess as Ge } 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 qe } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
34
|
+
import { hasPrimaryModifier as Ke } from "diagram-js/lib/util/Mouse";
|
|
35
|
+
import Se 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 g, isBlank as
|
|
37
|
+
import { getMid as Je, asTRBL as Ze } from "diagram-js/lib/layout/LayoutUtil";
|
|
38
|
+
import { fastClone as g, isBlank as He, isArray as te } from "@web-utils/core";
|
|
39
39
|
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
40
|
-
import
|
|
41
|
-
import
|
|
40
|
+
import "bpmn-js/dist/assets/bpmn-js.css";
|
|
41
|
+
import "bpmn-js/dist/assets/diagram-js.css";
|
|
42
|
+
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
|
|
43
|
+
import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
|
|
44
|
+
import We from "bpmn-js/lib/Modeler";
|
|
42
45
|
import Xe from "bpmn-js/lib/features/drilldown/index.js";
|
|
43
|
-
import Ye from "
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import et from "highlight.js/lib/languages/
|
|
47
|
-
import tt from "
|
|
46
|
+
import Ye from "bpmn-js-token-simulation";
|
|
47
|
+
import Qe from "x2js";
|
|
48
|
+
import Te from "highlight.js/lib/core";
|
|
49
|
+
import et from "highlight.js/lib/languages/xml";
|
|
50
|
+
import tt from "highlight.js/lib/languages/json";
|
|
51
|
+
import nt from "@web-utils/component/highlight-j-s";
|
|
48
52
|
import "@web-utils/component/highlight-j-s/style.css";
|
|
49
53
|
function J(e, i, t, n, s, r, a, o, m, F, p, l, c) {
|
|
50
54
|
e = e || {}, n.registerProvider(this), this._contextPad = n, this._modeling = s, this._elementFactory = r, this._connect = a, this._create = o, this._popupMenu = m, this._canvas = F, this._rules = p, this._translate = l, e.autoPlace !== !1 && (this._autoPlace = i.get("autoPlace", !1)), t.on("create.end", 250, function(E) {
|
|
51
55
|
const C = E.context.shape;
|
|
52
|
-
if (!
|
|
56
|
+
if (!Ke(E) || !n.isOpen(C))
|
|
53
57
|
return;
|
|
54
58
|
const d = n.getEntries(C);
|
|
55
59
|
d.replace && d.replace.action.click(E, C);
|
|
@@ -114,8 +118,8 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
114
118
|
t.splitLane(v, b), i.open(v, !0);
|
|
115
119
|
};
|
|
116
120
|
}
|
|
117
|
-
if (N(c, ["bpmn:Lane", "bpmn:Participant"]) &&
|
|
118
|
-
const b =
|
|
121
|
+
if (N(c, ["bpmn:Lane", "bpmn:Participant"]) && Ne(c)) {
|
|
122
|
+
const b = qe(e);
|
|
119
123
|
y(l, {
|
|
120
124
|
"lane-insert-above": {
|
|
121
125
|
group: "lane-insert-above",
|
|
@@ -158,7 +162,7 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
158
162
|
}
|
|
159
163
|
});
|
|
160
164
|
}
|
|
161
|
-
|
|
165
|
+
R(c, "bpmn:FlowNode") && (R(c, "bpmn:EventBasedGateway") ? y(l, {
|
|
162
166
|
"append.receive-task": d("bpmn:ReceiveTask", "bpmn-icon-receive-task", p("Append ReceiveTask")),
|
|
163
167
|
"append.message-intermediate-event": d(
|
|
164
168
|
"bpmn:IntermediateCatchEvent",
|
|
@@ -184,11 +188,11 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
184
188
|
p("Append SignalIntermediateCatchEvent"),
|
|
185
189
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
186
190
|
)
|
|
187
|
-
}) :
|
|
191
|
+
}) : ne(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
188
192
|
"append.compensation-activity": d("bpmn:Task", "bpmn-icon-task", p("Append compensation activity"), {
|
|
189
193
|
isForCompensation: !0
|
|
190
194
|
})
|
|
191
|
-
}) : !
|
|
195
|
+
}) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !ne(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ge(c) && y(l, {
|
|
192
196
|
"append.end-event": d("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
|
|
193
197
|
"append.gateway": d("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
|
|
194
198
|
"append.append-task": d("bpmn:UserTask", "bpmn-icon-user-task", p("Append Task")),
|
|
@@ -232,11 +236,11 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
232
236
|
dragstart: E
|
|
233
237
|
}
|
|
234
238
|
}
|
|
235
|
-
}),
|
|
239
|
+
}), R(c, "bpmn:Group") && y(l, {
|
|
236
240
|
"append.text-annotation": d("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
237
241
|
});
|
|
238
|
-
let
|
|
239
|
-
return
|
|
242
|
+
let I = m.allowed("elements.delete", { elements: [e] });
|
|
243
|
+
return Re(I) && (I = I[0] === e), I && y(l, {
|
|
240
244
|
delete: {
|
|
241
245
|
group: "edit",
|
|
242
246
|
className: "bpmn-icon-trash",
|
|
@@ -247,7 +251,7 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
247
251
|
}
|
|
248
252
|
}), l;
|
|
249
253
|
};
|
|
250
|
-
function
|
|
254
|
+
function ne(e, i, t) {
|
|
251
255
|
const n = e.$instanceOf(i);
|
|
252
256
|
let s = !1;
|
|
253
257
|
const r = e.eventDefinitions || [];
|
|
@@ -255,22 +259,22 @@ function te(e, i, t) {
|
|
|
255
259
|
a.$type === t && (s = !0);
|
|
256
260
|
}), n && s;
|
|
257
261
|
}
|
|
258
|
-
const
|
|
262
|
+
const it = {
|
|
259
263
|
__init__: ["contextPadProvider"],
|
|
260
264
|
contextPadProvider: ["type", J]
|
|
261
265
|
};
|
|
262
266
|
function L(e, i, t, n, s, r, a, o, m) {
|
|
263
|
-
|
|
267
|
+
Se.call(this, e, i, t, n, s, r, a, o, m, 2e3), this._create = i, this._elementFactory = t, this._spaceTool = n, this._lassoTool = s, this._handTool = r, this._globalConnect = a, this._moddle = o, this._translate = m;
|
|
264
268
|
}
|
|
265
269
|
const Z = function() {
|
|
266
270
|
};
|
|
267
|
-
Z.prototype =
|
|
271
|
+
Z.prototype = Se.prototype;
|
|
268
272
|
Z.prototype.getPaletteEntries = function() {
|
|
269
273
|
const e = {}, i = this._create, t = this._elementFactory, n = this._spaceTool, s = this._lassoTool, r = this._handTool, a = this._globalConnect, o = this._translate;
|
|
270
274
|
function m(l, c, E, M, C) {
|
|
271
|
-
function d(
|
|
275
|
+
function d(I) {
|
|
272
276
|
const b = t.createShape(y({ type: l }, C));
|
|
273
|
-
C && (b.businessObject.di.isExpanded = C.isExpanded), i.start(
|
|
277
|
+
C && (b.businessObject.di.isExpanded = C.isExpanded), i.start(I, b);
|
|
274
278
|
}
|
|
275
279
|
const O = l.replace(/^bpmn:/, "");
|
|
276
280
|
return {
|
|
@@ -345,10 +349,7 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
345
349
|
}
|
|
346
350
|
}
|
|
347
351
|
},
|
|
348
|
-
"tool-separator": {
|
|
349
|
-
group: "tools",
|
|
350
|
-
separator: !0
|
|
351
|
-
},
|
|
352
|
+
"tool-separator": { group: "tools", separator: !0 },
|
|
352
353
|
"create.start-event": m("bpmn:StartEvent", "event", "bpmn-icon-start-event-none", o("Create StartEvent")),
|
|
353
354
|
"create.intermediate-event": m("bpmn:IntermediateThrowEvent", "event", "bpmn-icon-intermediate-event-none", o("Create Intermediate/Boundary Event")),
|
|
354
355
|
"create.user-task": m("bpmn:UserTask", "activity", "bpmn-icon-user-task", o("Create User Task")),
|
|
@@ -357,6 +358,7 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
357
358
|
// 'create.sql-task': createAction('user:MySql', 'activity', 'bpmn-icon-mysql', 'MySQL 节点'),
|
|
358
359
|
// 'create.data-object': createAction('bpmn:DataObjectReference', 'data-object', 'bpmn-icon-data-object', translate('Create DataObjectReference')),
|
|
359
360
|
// 'create.data-store': createAction('bpmn:DataStoreReference', 'data-store', 'bpmn-icon-data-store', translate('Create DataStoreReference')),
|
|
361
|
+
"activity-separator": { group: "activity", separator: !0 },
|
|
360
362
|
"create.subprocess-expanded": {
|
|
361
363
|
group: "activity",
|
|
362
364
|
className: "bpmn-icon-subprocess-expanded",
|
|
@@ -381,14 +383,14 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
381
383
|
L.$inject = ["palette", "create", "elementFactory", "spaceTool", "lassoTool", "handTool", "globalConnect", "moddle", "translate"];
|
|
382
384
|
L.prototype = new Z();
|
|
383
385
|
L.prototype.constructor = L;
|
|
384
|
-
const
|
|
386
|
+
const st = {
|
|
385
387
|
__init__: ["customPalette"],
|
|
386
388
|
customPalette: ["type", L]
|
|
387
389
|
};
|
|
388
|
-
function
|
|
390
|
+
function Ce(e, i) {
|
|
389
391
|
K.call(this, e, i, 3e3), e.on("autoPlace", 3e3, function(t) {
|
|
390
392
|
const n = t.shape, s = t.source;
|
|
391
|
-
return
|
|
393
|
+
return lt(s, n);
|
|
392
394
|
}), this.append = function(t, n, s) {
|
|
393
395
|
e.fire("autoPlace.start", {
|
|
394
396
|
source: t,
|
|
@@ -406,7 +408,7 @@ function Te(e, i) {
|
|
|
406
408
|
}), a;
|
|
407
409
|
};
|
|
408
410
|
}
|
|
409
|
-
function
|
|
411
|
+
function rt(e) {
|
|
410
412
|
return {
|
|
411
413
|
top: e.y,
|
|
412
414
|
right: e.x + (e.width || 0),
|
|
@@ -414,36 +416,36 @@ function st(e) {
|
|
|
414
416
|
left: e.x
|
|
415
417
|
};
|
|
416
418
|
}
|
|
417
|
-
function
|
|
419
|
+
function at(e) {
|
|
418
420
|
return {
|
|
419
421
|
x: Math.round(e.x),
|
|
420
422
|
y: Math.round(e.y)
|
|
421
423
|
};
|
|
422
424
|
}
|
|
423
|
-
function
|
|
424
|
-
return
|
|
425
|
+
function ot(e) {
|
|
426
|
+
return at({
|
|
425
427
|
x: e.x + (e.width || 0) / 2,
|
|
426
428
|
y: e.y + (e.height || 0) / 2
|
|
427
429
|
});
|
|
428
430
|
}
|
|
429
|
-
function
|
|
431
|
+
function lt(e, i, t) {
|
|
430
432
|
t || (t = {});
|
|
431
|
-
const n = t.defaultDistance || 50, s =
|
|
433
|
+
const n = t.defaultDistance || 50, s = ot(e), r = rt(e);
|
|
432
434
|
return {
|
|
433
435
|
x: s.x,
|
|
434
436
|
y: r.bottom + n + i.height / 2
|
|
435
437
|
};
|
|
436
438
|
}
|
|
437
|
-
const
|
|
439
|
+
const Ie = function() {
|
|
438
440
|
};
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
const
|
|
441
|
+
Ie.prototype = K.prototype;
|
|
442
|
+
Ce.prototype = new Ie();
|
|
443
|
+
Ce.prototype.constructor = K;
|
|
444
|
+
const pt = 200, mt = 100;
|
|
443
445
|
function _e(e, i, t) {
|
|
444
|
-
e.on("autoPlace",
|
|
446
|
+
e.on("autoPlace", mt, function(n) {
|
|
445
447
|
const s = n.shape, r = n.source;
|
|
446
|
-
return
|
|
448
|
+
return ct(r, s);
|
|
447
449
|
}), e.on("autoPlace.end", function(n) {
|
|
448
450
|
t.scrollToElement(n.shape);
|
|
449
451
|
}), this.append = function(n, s, r) {
|
|
@@ -462,18 +464,18 @@ function _e(e, i, t) {
|
|
|
462
464
|
};
|
|
463
465
|
}
|
|
464
466
|
_e.$inject = ["eventBus", "modeling", "canvas"];
|
|
465
|
-
function
|
|
466
|
-
const t =
|
|
467
|
+
function ct(e, i) {
|
|
468
|
+
const t = pt, n = Je(e);
|
|
467
469
|
return {
|
|
468
|
-
x:
|
|
470
|
+
x: Ze(e).right + t + i.width / 2,
|
|
469
471
|
y: n.y
|
|
470
472
|
};
|
|
471
473
|
}
|
|
472
|
-
const
|
|
474
|
+
const ut = {
|
|
473
475
|
__init__: ["autoPlaceSelectionBehavior"],
|
|
474
476
|
autoPlace: ["type", _e]
|
|
475
477
|
};
|
|
476
|
-
var
|
|
478
|
+
var dt = function() {
|
|
477
479
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
478
480
|
return t("div", {
|
|
479
481
|
staticClass: "panel-tab__content"
|
|
@@ -591,8 +593,8 @@ var ut = function() {
|
|
|
591
593
|
expression: "businessObject.isExpanded"
|
|
592
594
|
}
|
|
593
595
|
})], 1) : e._e()], 2)], 1);
|
|
594
|
-
},
|
|
595
|
-
const
|
|
596
|
+
}, ft = [];
|
|
597
|
+
const bt = {
|
|
596
598
|
name: "ElementBaseInfo",
|
|
597
599
|
props: {
|
|
598
600
|
id: String,
|
|
@@ -631,25 +633,25 @@ const ft = {
|
|
|
631
633
|
i.updateProperties(this.element, { [e]: this.businessObject[e] });
|
|
632
634
|
}
|
|
633
635
|
}
|
|
634
|
-
},
|
|
635
|
-
var
|
|
636
|
-
|
|
637
|
-
ut,
|
|
636
|
+
}, ie = {};
|
|
637
|
+
var yt = /* @__PURE__ */ h(
|
|
638
|
+
bt,
|
|
638
639
|
dt,
|
|
640
|
+
ft,
|
|
639
641
|
!1,
|
|
640
|
-
|
|
642
|
+
ht,
|
|
641
643
|
null,
|
|
642
644
|
null,
|
|
643
645
|
null
|
|
644
646
|
);
|
|
645
|
-
function
|
|
646
|
-
for (let i in
|
|
647
|
-
this[i] =
|
|
647
|
+
function ht(e) {
|
|
648
|
+
for (let i in ie)
|
|
649
|
+
this[i] = ie[i];
|
|
648
650
|
}
|
|
649
|
-
const
|
|
650
|
-
return
|
|
651
|
+
const vt = /* @__PURE__ */ function() {
|
|
652
|
+
return yt.exports;
|
|
651
653
|
}();
|
|
652
|
-
var
|
|
654
|
+
var gt = function() {
|
|
653
655
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
654
656
|
return t("div", {
|
|
655
657
|
staticClass: "panel-tab__content"
|
|
@@ -680,8 +682,8 @@ var vt = function() {
|
|
|
680
682
|
expression: "documentation"
|
|
681
683
|
}
|
|
682
684
|
})], 1)])]);
|
|
683
|
-
},
|
|
684
|
-
const
|
|
685
|
+
}, Et = [];
|
|
686
|
+
const Ft = {
|
|
685
687
|
name: "ElementOtherConfig",
|
|
686
688
|
props: {
|
|
687
689
|
id: String,
|
|
@@ -697,7 +699,7 @@ const Et = {
|
|
|
697
699
|
id: {
|
|
698
700
|
immediate: !0,
|
|
699
701
|
handler() {
|
|
700
|
-
if (
|
|
702
|
+
if (He(this.element))
|
|
701
703
|
this.documentation = "";
|
|
702
704
|
else {
|
|
703
705
|
const { businessObject: { documentation: e } } = this.element;
|
|
@@ -717,25 +719,25 @@ const Et = {
|
|
|
717
719
|
}
|
|
718
720
|
}
|
|
719
721
|
}
|
|
720
|
-
},
|
|
721
|
-
var
|
|
722
|
-
|
|
723
|
-
vt,
|
|
722
|
+
}, se = {};
|
|
723
|
+
var xt = /* @__PURE__ */ h(
|
|
724
|
+
Ft,
|
|
724
725
|
gt,
|
|
726
|
+
Et,
|
|
725
727
|
!1,
|
|
726
|
-
|
|
728
|
+
St,
|
|
727
729
|
null,
|
|
728
730
|
null,
|
|
729
731
|
null
|
|
730
732
|
);
|
|
731
|
-
function
|
|
732
|
-
for (let i in
|
|
733
|
-
this[i] =
|
|
733
|
+
function St(e) {
|
|
734
|
+
for (let i in se)
|
|
735
|
+
this[i] = se[i];
|
|
734
736
|
}
|
|
735
|
-
const
|
|
736
|
-
return
|
|
737
|
+
const Tt = /* @__PURE__ */ function() {
|
|
738
|
+
return xt.exports;
|
|
737
739
|
}();
|
|
738
|
-
var
|
|
740
|
+
var Ct = function() {
|
|
739
741
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
740
742
|
return t("div", {
|
|
741
743
|
staticStyle: {
|
|
@@ -885,7 +887,7 @@ var Tt = function() {
|
|
|
885
887
|
expression: "userTaskForm.priority"
|
|
886
888
|
}
|
|
887
889
|
})], 1)], 1);
|
|
888
|
-
},
|
|
890
|
+
}, It = [];
|
|
889
891
|
const _t = {
|
|
890
892
|
name: "UserTask",
|
|
891
893
|
props: {
|
|
@@ -928,25 +930,25 @@ const _t = {
|
|
|
928
930
|
e === "candidateUsers" || e === "candidateGroups" ? i[e] = this.userTaskForm[e] && this.userTaskForm[e].length ? this.userTaskForm[e].join() : null : i[e] = this.userTaskForm[e] || null, this.bpmnInstances.modeling.updateProperties(this.element, i);
|
|
929
931
|
}
|
|
930
932
|
}
|
|
931
|
-
},
|
|
932
|
-
var
|
|
933
|
+
}, re = {};
|
|
934
|
+
var kt = /* @__PURE__ */ h(
|
|
933
935
|
_t,
|
|
934
|
-
Tt,
|
|
935
936
|
Ct,
|
|
937
|
+
It,
|
|
936
938
|
!1,
|
|
937
|
-
|
|
939
|
+
At,
|
|
938
940
|
null,
|
|
939
941
|
null,
|
|
940
942
|
null
|
|
941
943
|
);
|
|
942
|
-
function
|
|
943
|
-
for (let i in
|
|
944
|
-
this[i] =
|
|
944
|
+
function At(e) {
|
|
945
|
+
for (let i in re)
|
|
946
|
+
this[i] = re[i];
|
|
945
947
|
}
|
|
946
|
-
const
|
|
947
|
-
return
|
|
948
|
+
const wt = /* @__PURE__ */ function() {
|
|
949
|
+
return kt.exports;
|
|
948
950
|
}();
|
|
949
|
-
var
|
|
951
|
+
var $t = function() {
|
|
950
952
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
951
953
|
return t("div", {
|
|
952
954
|
staticStyle: {
|
|
@@ -1085,8 +1087,8 @@ var wt = function() {
|
|
|
1085
1087
|
expression: "scriptTaskForm.resultVariable"
|
|
1086
1088
|
}
|
|
1087
1089
|
})], 1)], 1);
|
|
1088
|
-
},
|
|
1089
|
-
const
|
|
1090
|
+
}, Lt = [];
|
|
1091
|
+
const Mt = {
|
|
1090
1092
|
name: "ScriptTask",
|
|
1091
1093
|
props: {
|
|
1092
1094
|
id: String,
|
|
@@ -1126,25 +1128,25 @@ const Lt = {
|
|
|
1126
1128
|
e.scriptFormat = this.scriptTaskForm.scriptFormat || null, e.resultVariable = this.scriptTaskForm.resultVariable || null, this.scriptTaskForm.scriptType === "inline" ? (e.script = this.scriptTaskForm.script || null, e.resource = null) : (e.resource = this.scriptTaskForm.resource || null, e.script = null), this.bpmnInstances.modeling.updateProperties(this.element, e);
|
|
1127
1129
|
}
|
|
1128
1130
|
}
|
|
1129
|
-
},
|
|
1130
|
-
var
|
|
1131
|
-
|
|
1132
|
-
wt,
|
|
1131
|
+
}, ae = {};
|
|
1132
|
+
var Ot = /* @__PURE__ */ h(
|
|
1133
|
+
Mt,
|
|
1133
1134
|
$t,
|
|
1135
|
+
Lt,
|
|
1134
1136
|
!1,
|
|
1135
|
-
|
|
1137
|
+
Pt,
|
|
1136
1138
|
null,
|
|
1137
1139
|
null,
|
|
1138
1140
|
null
|
|
1139
1141
|
);
|
|
1140
|
-
function
|
|
1141
|
-
for (let i in
|
|
1142
|
-
this[i] =
|
|
1142
|
+
function Pt(e) {
|
|
1143
|
+
for (let i in ae)
|
|
1144
|
+
this[i] = ae[i];
|
|
1143
1145
|
}
|
|
1144
|
-
const
|
|
1145
|
-
return
|
|
1146
|
+
const Dt = /* @__PURE__ */ function() {
|
|
1147
|
+
return Ot.exports;
|
|
1146
1148
|
}();
|
|
1147
|
-
var
|
|
1149
|
+
var Bt = function() {
|
|
1148
1150
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1149
1151
|
return t("div", {
|
|
1150
1152
|
staticStyle: {
|
|
@@ -1263,8 +1265,8 @@ var Dt = function() {
|
|
|
1263
1265
|
expression: "newMessageForm.name"
|
|
1264
1266
|
}
|
|
1265
1267
|
})], 1)], 1)], 1)], 1);
|
|
1266
|
-
},
|
|
1267
|
-
const
|
|
1268
|
+
}, jt = [];
|
|
1269
|
+
const Rt = {
|
|
1268
1270
|
name: "ReceiveTask",
|
|
1269
1271
|
props: {
|
|
1270
1272
|
id: String,
|
|
@@ -1316,25 +1318,25 @@ const jt = {
|
|
|
1316
1318
|
});
|
|
1317
1319
|
}
|
|
1318
1320
|
}
|
|
1319
|
-
},
|
|
1321
|
+
}, oe = {};
|
|
1320
1322
|
var Vt = /* @__PURE__ */ h(
|
|
1321
|
-
|
|
1322
|
-
Dt,
|
|
1323
|
+
Rt,
|
|
1323
1324
|
Bt,
|
|
1325
|
+
jt,
|
|
1324
1326
|
!1,
|
|
1325
|
-
|
|
1327
|
+
zt,
|
|
1326
1328
|
null,
|
|
1327
1329
|
null,
|
|
1328
1330
|
null
|
|
1329
1331
|
);
|
|
1330
|
-
function
|
|
1331
|
-
for (let i in
|
|
1332
|
-
this[i] =
|
|
1332
|
+
function zt(e) {
|
|
1333
|
+
for (let i in oe)
|
|
1334
|
+
this[i] = oe[i];
|
|
1333
1335
|
}
|
|
1334
|
-
const
|
|
1336
|
+
const Ut = /* @__PURE__ */ function() {
|
|
1335
1337
|
return Vt.exports;
|
|
1336
1338
|
}();
|
|
1337
|
-
var
|
|
1339
|
+
var Nt = function() {
|
|
1338
1340
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1339
1341
|
return t("div", {
|
|
1340
1342
|
staticClass: "panel-tab__content"
|
|
@@ -1397,10 +1399,10 @@ var Ut = function() {
|
|
|
1397
1399
|
}) : e._e()], 1), t(e.witchTaskComponent, e._b({
|
|
1398
1400
|
tag: "Component"
|
|
1399
1401
|
}, "Component", e.$props, !1))], 1)], 1);
|
|
1400
|
-
},
|
|
1401
|
-
const
|
|
1402
|
+
}, Gt = [];
|
|
1403
|
+
const qt = {
|
|
1402
1404
|
name: "ElementTaskConfig",
|
|
1403
|
-
components: { UserTask:
|
|
1405
|
+
components: { UserTask: wt, ScriptTask: Dt, ReceiveTask: Ut },
|
|
1404
1406
|
props: {
|
|
1405
1407
|
id: String,
|
|
1406
1408
|
element: Object,
|
|
@@ -1448,25 +1450,25 @@ const Gt = {
|
|
|
1448
1450
|
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, f({}, this.taskConfigForm));
|
|
1449
1451
|
}
|
|
1450
1452
|
}
|
|
1451
|
-
},
|
|
1452
|
-
var
|
|
1453
|
-
|
|
1454
|
-
Ut,
|
|
1453
|
+
}, le = {};
|
|
1454
|
+
var Kt = /* @__PURE__ */ h(
|
|
1455
|
+
qt,
|
|
1455
1456
|
Nt,
|
|
1457
|
+
Gt,
|
|
1456
1458
|
!1,
|
|
1457
|
-
|
|
1459
|
+
Jt,
|
|
1458
1460
|
null,
|
|
1459
1461
|
null,
|
|
1460
1462
|
null
|
|
1461
1463
|
);
|
|
1462
|
-
function
|
|
1463
|
-
for (let i in
|
|
1464
|
-
this[i] =
|
|
1464
|
+
function Jt(e) {
|
|
1465
|
+
for (let i in le)
|
|
1466
|
+
this[i] = le[i];
|
|
1465
1467
|
}
|
|
1466
|
-
const
|
|
1467
|
-
return
|
|
1468
|
+
const Zt = /* @__PURE__ */ function() {
|
|
1469
|
+
return Kt.exports;
|
|
1468
1470
|
}();
|
|
1469
|
-
var
|
|
1471
|
+
var Ht = function() {
|
|
1470
1472
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1471
1473
|
return t("div", {
|
|
1472
1474
|
staticClass: "panel-tab__content"
|
|
@@ -1665,8 +1667,8 @@ var Zt = function() {
|
|
|
1665
1667
|
expression: "loopInstanceForm.timeCycle"
|
|
1666
1668
|
}
|
|
1667
1669
|
})], 1) : e._e()] : e._e()], 2)], 1);
|
|
1668
|
-
},
|
|
1669
|
-
const
|
|
1670
|
+
}, Wt = [];
|
|
1671
|
+
const Xt = {
|
|
1670
1672
|
name: "ElementMultiInstance",
|
|
1671
1673
|
inject: {
|
|
1672
1674
|
prefix: "prefix"
|
|
@@ -1777,25 +1779,25 @@ const Wt = {
|
|
|
1777
1779
|
!i && !t ? (this.$set(this.loopInstanceForm, "exclusive", !1), n = { asyncBefore: !1, asyncAfter: !1, exclusive: !1, extensionElements: null }) : n[e] = this.loopInstanceForm[e], this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, n);
|
|
1778
1780
|
}
|
|
1779
1781
|
}
|
|
1780
|
-
},
|
|
1781
|
-
var
|
|
1782
|
-
|
|
1783
|
-
Zt,
|
|
1782
|
+
}, pe = {};
|
|
1783
|
+
var Yt = /* @__PURE__ */ h(
|
|
1784
|
+
Xt,
|
|
1784
1785
|
Ht,
|
|
1786
|
+
Wt,
|
|
1785
1787
|
!1,
|
|
1786
|
-
|
|
1788
|
+
Qt,
|
|
1787
1789
|
null,
|
|
1788
1790
|
null,
|
|
1789
1791
|
null
|
|
1790
1792
|
);
|
|
1791
|
-
function
|
|
1792
|
-
for (let i in
|
|
1793
|
-
this[i] =
|
|
1793
|
+
function Qt(e) {
|
|
1794
|
+
for (let i in pe)
|
|
1795
|
+
this[i] = pe[i];
|
|
1794
1796
|
}
|
|
1795
|
-
const
|
|
1796
|
-
return
|
|
1797
|
+
const en = /* @__PURE__ */ function() {
|
|
1798
|
+
return Yt.exports;
|
|
1797
1799
|
}();
|
|
1798
|
-
var
|
|
1800
|
+
var tn = function() {
|
|
1799
1801
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
1800
1802
|
return t("div", {
|
|
1801
1803
|
staticClass: "panel-tab__content"
|
|
@@ -1964,8 +1966,8 @@ var en = function() {
|
|
|
1964
1966
|
expression: "flowConditionForm.resource"
|
|
1965
1967
|
}
|
|
1966
1968
|
})], 1) : e._e()] : e._e()], 2)], 1);
|
|
1967
|
-
},
|
|
1968
|
-
const
|
|
1969
|
+
}, nn = [];
|
|
1970
|
+
const sn = {
|
|
1969
1971
|
name: "FlowCondition",
|
|
1970
1972
|
props: {
|
|
1971
1973
|
id: String,
|
|
@@ -2036,25 +2038,25 @@ const nn = {
|
|
|
2036
2038
|
e === "expression" ? r = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: t }) : i === "inlineScript" ? (r = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: t, language: s }), this.$set(this.flowConditionForm, "resource", "")) : (this.$set(this.flowConditionForm, "body", ""), r = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { resource: n, language: s })), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: r });
|
|
2037
2039
|
}
|
|
2038
2040
|
}
|
|
2039
|
-
},
|
|
2040
|
-
var
|
|
2041
|
-
|
|
2042
|
-
en,
|
|
2041
|
+
}, me = {};
|
|
2042
|
+
var rn = /* @__PURE__ */ h(
|
|
2043
|
+
sn,
|
|
2043
2044
|
tn,
|
|
2045
|
+
nn,
|
|
2044
2046
|
!1,
|
|
2045
|
-
|
|
2047
|
+
an,
|
|
2046
2048
|
null,
|
|
2047
2049
|
null,
|
|
2048
2050
|
null
|
|
2049
2051
|
);
|
|
2050
|
-
function
|
|
2051
|
-
for (let i in
|
|
2052
|
-
this[i] =
|
|
2052
|
+
function an(e) {
|
|
2053
|
+
for (let i in me)
|
|
2054
|
+
this[i] = me[i];
|
|
2053
2055
|
}
|
|
2054
|
-
const
|
|
2055
|
-
return
|
|
2056
|
+
const on = /* @__PURE__ */ function() {
|
|
2057
|
+
return rn.exports;
|
|
2056
2058
|
}();
|
|
2057
|
-
var
|
|
2059
|
+
var ln = function() {
|
|
2058
2060
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
2059
2061
|
return t("div", {
|
|
2060
2062
|
staticClass: "panel-tab__content"
|
|
@@ -2221,7 +2223,7 @@ var on = function() {
|
|
|
2221
2223
|
expression: "modelObjectForm.name"
|
|
2222
2224
|
}
|
|
2223
2225
|
})], 1)], 1)], 1)], 1);
|
|
2224
|
-
},
|
|
2226
|
+
}, pn = [function() {
|
|
2225
2227
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
2226
2228
|
return t("span", [t("i", {
|
|
2227
2229
|
staticClass: "el-icon-menu",
|
|
@@ -2240,7 +2242,7 @@ var on = function() {
|
|
|
2240
2242
|
}
|
|
2241
2243
|
}), e._v("信号列表")]);
|
|
2242
2244
|
}];
|
|
2243
|
-
const
|
|
2245
|
+
const mn = {
|
|
2244
2246
|
name: "SignalAndMessage",
|
|
2245
2247
|
props: {
|
|
2246
2248
|
bpmnInstances: Object
|
|
@@ -2286,29 +2288,29 @@ const pn = {
|
|
|
2286
2288
|
this.modelVisible = !1, this.initDataList();
|
|
2287
2289
|
}
|
|
2288
2290
|
}
|
|
2289
|
-
},
|
|
2290
|
-
var
|
|
2291
|
-
|
|
2292
|
-
on,
|
|
2291
|
+
}, ce = {};
|
|
2292
|
+
var cn = /* @__PURE__ */ h(
|
|
2293
|
+
mn,
|
|
2293
2294
|
ln,
|
|
2295
|
+
pn,
|
|
2294
2296
|
!1,
|
|
2295
|
-
|
|
2297
|
+
un,
|
|
2296
2298
|
null,
|
|
2297
2299
|
null,
|
|
2298
2300
|
null
|
|
2299
2301
|
);
|
|
2300
|
-
function
|
|
2301
|
-
for (let i in
|
|
2302
|
-
this[i] =
|
|
2302
|
+
function un(e) {
|
|
2303
|
+
for (let i in ce)
|
|
2304
|
+
this[i] = ce[i];
|
|
2303
2305
|
}
|
|
2304
|
-
const
|
|
2305
|
-
return
|
|
2306
|
+
const dn = /* @__PURE__ */ function() {
|
|
2307
|
+
return cn.exports;
|
|
2306
2308
|
}();
|
|
2307
|
-
function
|
|
2309
|
+
function ke(e, i, t, n) {
|
|
2308
2310
|
const s = /* @__PURE__ */ Object.create(null);
|
|
2309
2311
|
switch (s.event = i.event, t && (s.id = i.id), i.listenerType) {
|
|
2310
2312
|
case "scriptListener":
|
|
2311
|
-
s.script =
|
|
2313
|
+
s.script = bn(e, i, n);
|
|
2312
2314
|
break;
|
|
2313
2315
|
case "expressionListener":
|
|
2314
2316
|
s.expression = i.expression;
|
|
@@ -2319,22 +2321,22 @@ function Ie(e, i, t, n) {
|
|
|
2319
2321
|
default:
|
|
2320
2322
|
s.class = i.class;
|
|
2321
2323
|
}
|
|
2322
|
-
if (i.fields && (s.fields = i.fields.map((r) =>
|
|
2324
|
+
if (i.fields && (s.fields = i.fields.map((r) => fn(e, r, n))), t && i.event === "timeout" && i.eventDefinitionType) {
|
|
2323
2325
|
const r = e.moddle.create("bpmn:FormalExpression", {
|
|
2324
2326
|
body: i.eventTimeDefinitions
|
|
2325
2327
|
}), a = e.moddle.create("bpmn:TimerEventDefinition", {
|
|
2326
|
-
id: `TimerEventDefinition_${
|
|
2328
|
+
id: `TimerEventDefinition_${yn(8)}`,
|
|
2327
2329
|
[`time${i.eventDefinitionType.replace(/^\S/, (o) => o.toUpperCase())}`]: r
|
|
2328
2330
|
});
|
|
2329
2331
|
s.eventDefinitions = [a];
|
|
2330
2332
|
}
|
|
2331
2333
|
return e.moddle.create(`${n}:${t ? "TaskListener" : "ExecutionListener"}`, s);
|
|
2332
2334
|
}
|
|
2333
|
-
function
|
|
2335
|
+
function fn(e, i, t) {
|
|
2334
2336
|
const { name: n, fieldType: s, string: r, expression: a } = i, o = s === "string" ? { name: n, string: r } : { name: n, expression: a };
|
|
2335
2337
|
return e.moddle.create(`${t}:Field`, o);
|
|
2336
2338
|
}
|
|
2337
|
-
function
|
|
2339
|
+
function bn(e, i, t) {
|
|
2338
2340
|
const { scriptType: n, scriptFormat: s, value: r, resource: a } = i, o = n === "inlineScript" ? { scriptFormat: s, value: r } : { scriptFormat: s, resource: a };
|
|
2339
2341
|
return e.moddle.create(`${t}:Script`, o);
|
|
2340
2342
|
}
|
|
@@ -2346,14 +2348,14 @@ function U(e, i, t) {
|
|
|
2346
2348
|
extensionElements: n
|
|
2347
2349
|
});
|
|
2348
2350
|
}
|
|
2349
|
-
function
|
|
2351
|
+
function yn(e = 8, i) {
|
|
2350
2352
|
let t = "";
|
|
2351
2353
|
const n = i || "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
2352
2354
|
for (let s = e; s > 0; --s)
|
|
2353
2355
|
t += n[Math.floor(Math.random() * n.length)];
|
|
2354
2356
|
return t;
|
|
2355
2357
|
}
|
|
2356
|
-
function
|
|
2358
|
+
function Ae(e) {
|
|
2357
2359
|
let i = f({}, e);
|
|
2358
2360
|
if (e.script && (i = T(f(f({}, e), e.script), {
|
|
2359
2361
|
scriptType: e.script.resource ? "externalScript" : "inlineScript"
|
|
@@ -2365,30 +2367,30 @@ function ke(e) {
|
|
|
2365
2367
|
}
|
|
2366
2368
|
return i;
|
|
2367
2369
|
}
|
|
2368
|
-
function
|
|
2370
|
+
function we(e) {
|
|
2369
2371
|
var t;
|
|
2370
2372
|
let i;
|
|
2371
2373
|
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), T(f(f({}, g(e)), (t = e.script) != null ? t : {}), {
|
|
2372
2374
|
listenerType: i
|
|
2373
2375
|
});
|
|
2374
2376
|
}
|
|
2375
|
-
const
|
|
2377
|
+
const $e = {
|
|
2376
2378
|
classListener: "Java 类",
|
|
2377
2379
|
expressionListener: "表达式",
|
|
2378
2380
|
delegateExpressionListener: "代理表达式",
|
|
2379
2381
|
scriptListener: "脚本"
|
|
2380
|
-
},
|
|
2382
|
+
}, hn = {
|
|
2381
2383
|
create: "创建",
|
|
2382
2384
|
assignment: "指派",
|
|
2383
2385
|
complete: "完成",
|
|
2384
2386
|
delete: "删除",
|
|
2385
2387
|
update: "更新",
|
|
2386
2388
|
timeout: "超时"
|
|
2387
|
-
},
|
|
2389
|
+
}, Le = {
|
|
2388
2390
|
string: "字符串",
|
|
2389
2391
|
expression: "表达式"
|
|
2390
2392
|
};
|
|
2391
|
-
var
|
|
2393
|
+
var vn = function() {
|
|
2392
2394
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
2393
2395
|
return t("div", {
|
|
2394
2396
|
staticClass: "panel-tab__content"
|
|
@@ -2963,8 +2965,8 @@ var hn = function() {
|
|
|
2963
2965
|
expression: "listenerFieldForm.expression"
|
|
2964
2966
|
}
|
|
2965
2967
|
})], 1) : e._e()], 1)], 1)], 1);
|
|
2966
|
-
},
|
|
2967
|
-
const
|
|
2968
|
+
}, gn = [];
|
|
2969
|
+
const En = {
|
|
2968
2970
|
name: "ElementListeners",
|
|
2969
2971
|
inject: {
|
|
2970
2972
|
prefix: "prefix",
|
|
@@ -2992,8 +2994,8 @@ const gn = {
|
|
|
2992
2994
|
// 监听器所在下标,-1 为新增
|
|
2993
2995
|
editingListenerFieldIndex: -1,
|
|
2994
2996
|
// 字段所在下标,-1 为新增
|
|
2995
|
-
listenerTypeObject:
|
|
2996
|
-
fieldTypeObject:
|
|
2997
|
+
listenerTypeObject: $e,
|
|
2998
|
+
fieldTypeObject: Le
|
|
2997
2999
|
};
|
|
2998
3000
|
},
|
|
2999
3001
|
watch: {
|
|
@@ -3009,13 +3011,13 @@ const gn = {
|
|
|
3009
3011
|
methods: {
|
|
3010
3012
|
resetListenersList() {
|
|
3011
3013
|
var e, i, t, n;
|
|
3012
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:ExecutionListener`)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) =>
|
|
3014
|
+
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:ExecutionListener`)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
|
|
3013
3015
|
},
|
|
3014
3016
|
// 打开 监听器详情 侧边栏
|
|
3015
3017
|
openListenerForm(e, i) {
|
|
3016
3018
|
return u(this, null, function* () {
|
|
3017
3019
|
var t;
|
|
3018
|
-
e ? (this.listenerForm =
|
|
3020
|
+
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => T(f({}, n), {
|
|
3019
3021
|
fieldType: n.string ? "string" : "expression"
|
|
3020
3022
|
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
3021
3023
|
});
|
|
@@ -3056,30 +3058,30 @@ const gn = {
|
|
|
3056
3058
|
var t, n, s, r;
|
|
3057
3059
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
3058
3060
|
return;
|
|
3059
|
-
const i =
|
|
3061
|
+
const i = ke(this.bpmnInstances, this.listenerForm, !1, this.prefix);
|
|
3060
3062
|
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(i), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, i), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (r = (s = (n = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : n.values) == null ? void 0 : s.filter((a) => a.$type !== `${this.prefix}:ExecutionListener`)) != null ? r : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
3061
3063
|
});
|
|
3062
3064
|
}
|
|
3063
3065
|
}
|
|
3064
|
-
},
|
|
3065
|
-
var
|
|
3066
|
-
|
|
3067
|
-
hn,
|
|
3066
|
+
}, ue = {};
|
|
3067
|
+
var Fn = /* @__PURE__ */ h(
|
|
3068
|
+
En,
|
|
3068
3069
|
vn,
|
|
3070
|
+
gn,
|
|
3069
3071
|
!1,
|
|
3070
|
-
|
|
3072
|
+
xn,
|
|
3071
3073
|
null,
|
|
3072
3074
|
null,
|
|
3073
3075
|
null
|
|
3074
3076
|
);
|
|
3075
|
-
function
|
|
3076
|
-
for (let i in
|
|
3077
|
-
this[i] =
|
|
3077
|
+
function xn(e) {
|
|
3078
|
+
for (let i in ue)
|
|
3079
|
+
this[i] = ue[i];
|
|
3078
3080
|
}
|
|
3079
|
-
const
|
|
3080
|
-
return
|
|
3081
|
+
const Sn = /* @__PURE__ */ function() {
|
|
3082
|
+
return Fn.exports;
|
|
3081
3083
|
}();
|
|
3082
|
-
var
|
|
3084
|
+
var Tn = function() {
|
|
3083
3085
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
3084
3086
|
return t("div", {
|
|
3085
3087
|
staticClass: "panel-tab__content"
|
|
@@ -3245,8 +3247,8 @@ var Sn = function() {
|
|
|
3245
3247
|
expression: "propertyForm.value"
|
|
3246
3248
|
}
|
|
3247
3249
|
})], 1)], 1)], 1)], 1);
|
|
3248
|
-
},
|
|
3249
|
-
const
|
|
3250
|
+
}, Cn = [];
|
|
3251
|
+
const In = {
|
|
3250
3252
|
name: "ElementProperties",
|
|
3251
3253
|
inject: {
|
|
3252
3254
|
prefix: "prefix",
|
|
@@ -3320,25 +3322,25 @@ const Cn = {
|
|
|
3320
3322
|
});
|
|
3321
3323
|
}
|
|
3322
3324
|
}
|
|
3323
|
-
},
|
|
3325
|
+
}, de = {};
|
|
3324
3326
|
var _n = /* @__PURE__ */ h(
|
|
3325
|
-
|
|
3326
|
-
Sn,
|
|
3327
|
+
In,
|
|
3327
3328
|
Tn,
|
|
3329
|
+
Cn,
|
|
3328
3330
|
!1,
|
|
3329
|
-
|
|
3331
|
+
kn,
|
|
3330
3332
|
null,
|
|
3331
3333
|
null,
|
|
3332
3334
|
null
|
|
3333
3335
|
);
|
|
3334
|
-
function
|
|
3335
|
-
for (let i in
|
|
3336
|
-
this[i] =
|
|
3336
|
+
function kn(e) {
|
|
3337
|
+
for (let i in de)
|
|
3338
|
+
this[i] = de[i];
|
|
3337
3339
|
}
|
|
3338
|
-
const
|
|
3340
|
+
const An = /* @__PURE__ */ function() {
|
|
3339
3341
|
return _n.exports;
|
|
3340
3342
|
}();
|
|
3341
|
-
var
|
|
3343
|
+
var wn = function() {
|
|
3342
3344
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
3343
3345
|
return t("div", {
|
|
3344
3346
|
staticClass: "panel-tab__content"
|
|
@@ -4007,8 +4009,8 @@ var An = function() {
|
|
|
4007
4009
|
expression: "fieldOptionForm.value"
|
|
4008
4010
|
}
|
|
4009
4011
|
})], 1) : e._e()], 1)], 1)], 1);
|
|
4010
|
-
},
|
|
4011
|
-
const
|
|
4012
|
+
}, $n = [];
|
|
4013
|
+
const Ln = {
|
|
4012
4014
|
name: "ElementForm",
|
|
4013
4015
|
inject: {
|
|
4014
4016
|
prefix: "prefix",
|
|
@@ -4139,25 +4141,25 @@ const $n = {
|
|
|
4139
4141
|
});
|
|
4140
4142
|
}
|
|
4141
4143
|
}
|
|
4142
|
-
},
|
|
4143
|
-
var
|
|
4144
|
-
|
|
4145
|
-
An,
|
|
4144
|
+
}, fe = {};
|
|
4145
|
+
var Mn = /* @__PURE__ */ h(
|
|
4146
|
+
Ln,
|
|
4146
4147
|
wn,
|
|
4148
|
+
$n,
|
|
4147
4149
|
!1,
|
|
4148
|
-
|
|
4150
|
+
On,
|
|
4149
4151
|
null,
|
|
4150
4152
|
null,
|
|
4151
4153
|
null
|
|
4152
4154
|
);
|
|
4153
|
-
function
|
|
4154
|
-
for (let i in
|
|
4155
|
-
this[i] =
|
|
4155
|
+
function On(e) {
|
|
4156
|
+
for (let i in fe)
|
|
4157
|
+
this[i] = fe[i];
|
|
4156
4158
|
}
|
|
4157
|
-
const
|
|
4158
|
-
return
|
|
4159
|
+
const Pn = /* @__PURE__ */ function() {
|
|
4160
|
+
return Mn.exports;
|
|
4159
4161
|
}();
|
|
4160
|
-
var
|
|
4162
|
+
var Dn = function() {
|
|
4161
4163
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
4162
4164
|
return t("div", {
|
|
4163
4165
|
staticClass: "panel-tab__content"
|
|
@@ -4816,8 +4818,8 @@ var Pn = function() {
|
|
|
4816
4818
|
expression: "listenerFieldForm.expression"
|
|
4817
4819
|
}
|
|
4818
4820
|
})], 1) : e._e()], 1)], 1)], 1);
|
|
4819
|
-
},
|
|
4820
|
-
const
|
|
4821
|
+
}, Bn = [];
|
|
4822
|
+
const jn = {
|
|
4821
4823
|
name: "UserTaskListeners",
|
|
4822
4824
|
inject: {
|
|
4823
4825
|
prefix: "prefix",
|
|
@@ -4831,11 +4833,11 @@ const Bn = {
|
|
|
4831
4833
|
data() {
|
|
4832
4834
|
return {
|
|
4833
4835
|
elementListenersList: [],
|
|
4834
|
-
listenerEventTypeObject:
|
|
4835
|
-
listenerTypeObject:
|
|
4836
|
+
listenerEventTypeObject: hn,
|
|
4837
|
+
listenerTypeObject: $e,
|
|
4836
4838
|
listenerFormModelVisible: !1,
|
|
4837
4839
|
listenerForm: {},
|
|
4838
|
-
fieldTypeObject:
|
|
4840
|
+
fieldTypeObject: Le,
|
|
4839
4841
|
fieldsListOfListener: [],
|
|
4840
4842
|
listenerFieldFormModelVisible: !1,
|
|
4841
4843
|
// 监听器 注入字段表单弹窗 显示状态
|
|
@@ -4860,12 +4862,12 @@ const Bn = {
|
|
|
4860
4862
|
methods: {
|
|
4861
4863
|
resetListenersList() {
|
|
4862
4864
|
var e, i, t, n;
|
|
4863
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) =>
|
|
4865
|
+
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
|
|
4864
4866
|
},
|
|
4865
4867
|
openListenerForm(e, i) {
|
|
4866
4868
|
return u(this, null, function* () {
|
|
4867
4869
|
var t;
|
|
4868
|
-
e ? (this.listenerForm =
|
|
4870
|
+
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => T(f({}, n), {
|
|
4869
4871
|
fieldType: n.string ? "string" : "expression"
|
|
4870
4872
|
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
4871
4873
|
});
|
|
@@ -4885,7 +4887,7 @@ const Bn = {
|
|
|
4885
4887
|
var t, n, s, r;
|
|
4886
4888
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
4887
4889
|
return;
|
|
4888
|
-
const i =
|
|
4890
|
+
const i = ke(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
4889
4891
|
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(i), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, i), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (r = (s = (n = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : n.values) == null ? void 0 : s.filter((a) => a.$type !== `${this.prefix}:TaskListener`)) != null ? r : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
4890
4892
|
});
|
|
4891
4893
|
},
|
|
@@ -4912,11 +4914,11 @@ const Bn = {
|
|
|
4912
4914
|
});
|
|
4913
4915
|
}
|
|
4914
4916
|
}
|
|
4915
|
-
},
|
|
4916
|
-
var
|
|
4917
|
-
|
|
4918
|
-
Pn,
|
|
4917
|
+
}, be = {};
|
|
4918
|
+
var Rn = /* @__PURE__ */ h(
|
|
4919
|
+
jn,
|
|
4919
4920
|
Dn,
|
|
4921
|
+
Bn,
|
|
4920
4922
|
!1,
|
|
4921
4923
|
Vn,
|
|
4922
4924
|
null,
|
|
@@ -4924,13 +4926,13 @@ var jn = /* @__PURE__ */ h(
|
|
|
4924
4926
|
null
|
|
4925
4927
|
);
|
|
4926
4928
|
function Vn(e) {
|
|
4927
|
-
for (let i in
|
|
4928
|
-
this[i] =
|
|
4929
|
+
for (let i in be)
|
|
4930
|
+
this[i] = be[i];
|
|
4929
4931
|
}
|
|
4930
|
-
const
|
|
4931
|
-
return
|
|
4932
|
+
const zn = /* @__PURE__ */ function() {
|
|
4933
|
+
return Rn.exports;
|
|
4932
4934
|
}();
|
|
4933
|
-
var
|
|
4935
|
+
var Un = function() {
|
|
4934
4936
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
4935
4937
|
return t("div", {
|
|
4936
4938
|
class: ["process-panel__container", {
|
|
@@ -5037,30 +5039,37 @@ var zn = function() {
|
|
|
5037
5039
|
"bpmn-instances": e.bpmnInstances,
|
|
5038
5040
|
type: e.elementType
|
|
5039
5041
|
}
|
|
5040
|
-
})], 1) : e._e(), e.
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
scopedSlots: e._u([{
|
|
5046
|
-
key: "title",
|
|
5047
|
-
fn: function() {
|
|
5048
|
-
return [t("div", {
|
|
5049
|
-
staticClass: "panel-tab__title"
|
|
5050
|
-
}, [t("i", {
|
|
5051
|
-
staticClass: "el-icon-s-order"
|
|
5052
|
-
}), e._v("表单")])];
|
|
5042
|
+
})], 1) : e._e(), e._t("form", function() {
|
|
5043
|
+
return [e.formVisible ? t("ElCollapseItem", {
|
|
5044
|
+
key: "form",
|
|
5045
|
+
attrs: {
|
|
5046
|
+
name: "condition"
|
|
5053
5047
|
},
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5048
|
+
scopedSlots: e._u([{
|
|
5049
|
+
key: "title",
|
|
5050
|
+
fn: function() {
|
|
5051
|
+
return [t("div", {
|
|
5052
|
+
staticClass: "panel-tab__title"
|
|
5053
|
+
}, [t("i", {
|
|
5054
|
+
staticClass: "el-icon-s-order"
|
|
5055
|
+
}), e._v("表单")])];
|
|
5056
|
+
},
|
|
5057
|
+
proxy: !0
|
|
5058
|
+
}], null, !1, 1341048650)
|
|
5059
|
+
}, [t("ElementForm", {
|
|
5060
|
+
attrs: {
|
|
5061
|
+
id: e.elementId,
|
|
5062
|
+
"bpmn-instances": e.bpmnInstances,
|
|
5063
|
+
element: e.element,
|
|
5064
|
+
type: e.elementType
|
|
5065
|
+
}
|
|
5066
|
+
})], 1) : e._e()];
|
|
5067
|
+
}, {
|
|
5068
|
+
id: e.elementId,
|
|
5069
|
+
bpmnInstances: e.bpmnInstances,
|
|
5070
|
+
element: e.element,
|
|
5071
|
+
type: e.elementType
|
|
5072
|
+
}), e._t("task", function() {
|
|
5064
5073
|
return [e.elementType.indexOf("Task") !== -1 ? t("ElCollapseItem", {
|
|
5065
5074
|
key: "task",
|
|
5066
5075
|
attrs: {
|
|
@@ -5204,21 +5213,26 @@ var zn = function() {
|
|
|
5204
5213
|
element: e.element,
|
|
5205
5214
|
"bpmn-instances": e.bpmnInstances
|
|
5206
5215
|
}
|
|
5207
|
-
})], 1)
|
|
5208
|
-
|
|
5209
|
-
|
|
5216
|
+
})], 1), e._t("extend", null, {
|
|
5217
|
+
id: e.elementId,
|
|
5218
|
+
bpmnInstances: e.bpmnInstances,
|
|
5219
|
+
element: e.element,
|
|
5220
|
+
type: e.elementType
|
|
5221
|
+
})], 2)], 1);
|
|
5222
|
+
}, Nn = [];
|
|
5223
|
+
const ye = "base", Gn = {
|
|
5210
5224
|
name: "PropertiesPanel",
|
|
5211
5225
|
components: {
|
|
5212
|
-
UserTaskListeners:
|
|
5213
|
-
ElementForm:
|
|
5214
|
-
ElementProperties:
|
|
5215
|
-
ElementListeners:
|
|
5216
|
-
SignalAndMassage:
|
|
5217
|
-
FlowCondition:
|
|
5218
|
-
ElementMultiInstance:
|
|
5219
|
-
ElementTask:
|
|
5220
|
-
ElementOtherConfig:
|
|
5221
|
-
ElementBaseInfo:
|
|
5226
|
+
UserTaskListeners: zn,
|
|
5227
|
+
ElementForm: Pn,
|
|
5228
|
+
ElementProperties: An,
|
|
5229
|
+
ElementListeners: Sn,
|
|
5230
|
+
SignalAndMassage: dn,
|
|
5231
|
+
FlowCondition: on,
|
|
5232
|
+
ElementMultiInstance: en,
|
|
5233
|
+
ElementTask: Zt,
|
|
5234
|
+
ElementOtherConfig: Tt,
|
|
5235
|
+
ElementBaseInfo: vt
|
|
5222
5236
|
},
|
|
5223
5237
|
componentName: "MyPropertiesPanel",
|
|
5224
5238
|
provide() {
|
|
@@ -5247,7 +5261,7 @@ const be = "test", Nn = {
|
|
|
5247
5261
|
return {
|
|
5248
5262
|
element: {},
|
|
5249
5263
|
bpmnInstances: {},
|
|
5250
|
-
activeTab:
|
|
5264
|
+
activeTab: ye,
|
|
5251
5265
|
elementId: "",
|
|
5252
5266
|
elementType: "",
|
|
5253
5267
|
conditionFormVisible: !1,
|
|
@@ -5260,7 +5274,7 @@ const be = "test", Nn = {
|
|
|
5260
5274
|
watch: {
|
|
5261
5275
|
elementId: {
|
|
5262
5276
|
handler() {
|
|
5263
|
-
this.activeTab =
|
|
5277
|
+
this.activeTab = ye;
|
|
5264
5278
|
}
|
|
5265
5279
|
}
|
|
5266
5280
|
},
|
|
@@ -5301,24 +5315,24 @@ const be = "test", Nn = {
|
|
|
5301
5315
|
i || (i = (t = this.bpmnInstances.elementRegistry.find((n) => n.type === "bpmn:Process")) != null ? t : this.bpmnInstances.elementRegistry.find((n) => n.type === "bpmn:Collaboration")), i && (this.element = i, this.elementId = i.id, this.elementType = i.type.split(":")[1] || "", this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && i.source && i.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask" || this.elementType === "StartEvent");
|
|
5302
5316
|
}
|
|
5303
5317
|
}
|
|
5304
|
-
},
|
|
5305
|
-
var
|
|
5306
|
-
|
|
5307
|
-
zn,
|
|
5318
|
+
}, he = {};
|
|
5319
|
+
var qn = /* @__PURE__ */ h(
|
|
5320
|
+
Gn,
|
|
5308
5321
|
Un,
|
|
5322
|
+
Nn,
|
|
5309
5323
|
!1,
|
|
5310
|
-
|
|
5324
|
+
Kn,
|
|
5311
5325
|
null,
|
|
5312
5326
|
null,
|
|
5313
5327
|
null
|
|
5314
5328
|
);
|
|
5315
|
-
function
|
|
5316
|
-
for (let i in
|
|
5317
|
-
this[i] =
|
|
5329
|
+
function Kn(e) {
|
|
5330
|
+
for (let i in he)
|
|
5331
|
+
this[i] = he[i];
|
|
5318
5332
|
}
|
|
5319
|
-
const
|
|
5320
|
-
return
|
|
5321
|
-
}(),
|
|
5333
|
+
const Jn = /* @__PURE__ */ function() {
|
|
5334
|
+
return qn.exports;
|
|
5335
|
+
}(), Zn = (e, i, t) => (t = t || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
|
|
5322
5336
|
<bpmn2:definitions
|
|
5323
5337
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
5324
5338
|
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
@@ -5338,7 +5352,7 @@ const Kn = /* @__PURE__ */ function() {
|
|
|
5338
5352
|
</bpmndi:BPMNPlane>
|
|
5339
5353
|
</bpmndi:BPMNDiagram>
|
|
5340
5354
|
</bpmn2:definitions>`);
|
|
5341
|
-
function
|
|
5355
|
+
function Hn(e) {
|
|
5342
5356
|
return function(i, t) {
|
|
5343
5357
|
return t = t || {}, i = e[i] || i, i.replace(/{([^}]+)}/g, function(n, s) {
|
|
5344
5358
|
let r = t[s];
|
|
@@ -5346,7 +5360,7 @@ function Zn(e) {
|
|
|
5346
5360
|
});
|
|
5347
5361
|
};
|
|
5348
5362
|
}
|
|
5349
|
-
const
|
|
5363
|
+
const Wn = {
|
|
5350
5364
|
// 添加部分
|
|
5351
5365
|
"Append EndEvent": "追加结束事件",
|
|
5352
5366
|
"Append Gateway": "追加网关",
|
|
@@ -5580,10 +5594,23 @@ const Hn = {
|
|
|
5580
5594
|
"Specify more than one user as a comma separated list.": "指定多个用户作为逗号分隔的列表。",
|
|
5581
5595
|
"Tasklist Configuration": "Tasklist配置",
|
|
5582
5596
|
Startable: "启动",
|
|
5583
|
-
"Specify more than one group as a comma separated list.": "指定多个组作为逗号分隔的列表。"
|
|
5584
|
-
|
|
5597
|
+
"Specify more than one group as a comma separated list.": "指定多个组作为逗号分隔的列表。",
|
|
5598
|
+
"Create element": "创建元素",
|
|
5599
|
+
"Empty Pool": "空池",
|
|
5600
|
+
Gateways: "网关",
|
|
5601
|
+
"Sub Processes": "子流程",
|
|
5602
|
+
"Append element": "追加元素",
|
|
5603
|
+
"Boundary Event": "边界事件",
|
|
5604
|
+
"Data Store Reference": "数据存储引用",
|
|
5605
|
+
"Data Object Reference": "数据对象引用",
|
|
5606
|
+
Participants: "参与者",
|
|
5607
|
+
Events: "事件",
|
|
5608
|
+
Data: "数据",
|
|
5609
|
+
TextAnnotation: "文本说明",
|
|
5610
|
+
Tasks: "任务"
|
|
5611
|
+
}, Xn = "Camunda", Yn = "http://camunda.org/schema/1.0/bpmn", Qn = "camunda", ei = {
|
|
5585
5612
|
tagAlias: "lowerCase"
|
|
5586
|
-
},
|
|
5613
|
+
}, ti = [], ni = [
|
|
5587
5614
|
{
|
|
5588
5615
|
name: "Definitions",
|
|
5589
5616
|
isAbstract: !0,
|
|
@@ -6699,17 +6726,17 @@ const Hn = {
|
|
|
6699
6726
|
}
|
|
6700
6727
|
]
|
|
6701
6728
|
}
|
|
6702
|
-
],
|
|
6703
|
-
name:
|
|
6704
|
-
uri:
|
|
6705
|
-
prefix:
|
|
6706
|
-
xml:
|
|
6707
|
-
associations:
|
|
6708
|
-
types:
|
|
6709
|
-
emumerations:
|
|
6710
|
-
},
|
|
6729
|
+
], ii = [], ve = {
|
|
6730
|
+
name: Xn,
|
|
6731
|
+
uri: Yn,
|
|
6732
|
+
prefix: Qn,
|
|
6733
|
+
xml: ei,
|
|
6734
|
+
associations: ti,
|
|
6735
|
+
types: ni,
|
|
6736
|
+
emumerations: ii
|
|
6737
|
+
}, si = "Activiti", ri = "http://activiti.org/bpmn", ai = "activiti", oi = {
|
|
6711
6738
|
tagAlias: "lowerCase"
|
|
6712
|
-
},
|
|
6739
|
+
}, li = [], pi = [
|
|
6713
6740
|
{
|
|
6714
6741
|
name: "Definitions",
|
|
6715
6742
|
isAbstract: !0,
|
|
@@ -7807,17 +7834,17 @@ const Hn = {
|
|
|
7807
7834
|
}
|
|
7808
7835
|
]
|
|
7809
7836
|
}
|
|
7810
|
-
],
|
|
7811
|
-
name:
|
|
7812
|
-
uri:
|
|
7813
|
-
prefix:
|
|
7814
|
-
xml:
|
|
7815
|
-
associations:
|
|
7816
|
-
types:
|
|
7817
|
-
emumerations:
|
|
7818
|
-
},
|
|
7837
|
+
], mi = [], ge = {
|
|
7838
|
+
name: si,
|
|
7839
|
+
uri: ri,
|
|
7840
|
+
prefix: ai,
|
|
7841
|
+
xml: oi,
|
|
7842
|
+
associations: li,
|
|
7843
|
+
types: pi,
|
|
7844
|
+
emumerations: mi
|
|
7845
|
+
}, ci = "Flowable", ui = "http://flowable.org/bpmn", di = "flowable", fi = {
|
|
7819
7846
|
tagAlias: "lowerCase"
|
|
7820
|
-
},
|
|
7847
|
+
}, bi = [], yi = [], hi = [
|
|
7821
7848
|
{
|
|
7822
7849
|
name: "InOutBinding",
|
|
7823
7850
|
superClass: [
|
|
@@ -9179,15 +9206,15 @@ const Hn = {
|
|
|
9179
9206
|
}
|
|
9180
9207
|
]
|
|
9181
9208
|
}
|
|
9182
|
-
],
|
|
9183
|
-
name:
|
|
9184
|
-
uri:
|
|
9185
|
-
prefix:
|
|
9186
|
-
xml:
|
|
9187
|
-
associations:
|
|
9188
|
-
emumerations:
|
|
9189
|
-
types:
|
|
9190
|
-
},
|
|
9209
|
+
], Ee = {
|
|
9210
|
+
name: ci,
|
|
9211
|
+
uri: ui,
|
|
9212
|
+
prefix: di,
|
|
9213
|
+
xml: fi,
|
|
9214
|
+
associations: bi,
|
|
9215
|
+
emumerations: yi,
|
|
9216
|
+
types: hi
|
|
9217
|
+
}, vi = "*";
|
|
9191
9218
|
function A(e) {
|
|
9192
9219
|
const i = this;
|
|
9193
9220
|
e.on("moddleCopy.canCopyProperty", function(t) {
|
|
@@ -9197,51 +9224,51 @@ function A(e) {
|
|
|
9197
9224
|
}
|
|
9198
9225
|
A.$inject = ["eventBus"];
|
|
9199
9226
|
A.prototype.canCopyProperty = function(e, i) {
|
|
9200
|
-
if (
|
|
9227
|
+
if (ze(e) && !gi(e, i) || _(e, "camunda:InputOutput") && !this.canHostInputOutput(i) || Me(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(i) || _(e, "camunda:In") && !this.canHostIn(i))
|
|
9201
9228
|
return !1;
|
|
9202
9229
|
};
|
|
9203
9230
|
A.prototype.canHostInputOutput = function(e) {
|
|
9204
9231
|
if (x(e, "camunda:Connector"))
|
|
9205
9232
|
return !0;
|
|
9206
9233
|
const t = x(e, "bpmn:FlowNode");
|
|
9207
|
-
return !(!t ||
|
|
9234
|
+
return !(!t || Me(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || _(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
9208
9235
|
};
|
|
9209
9236
|
A.prototype.canHostConnector = function(e) {
|
|
9210
9237
|
const i = x(e, "camunda:ServiceTaskLike");
|
|
9211
|
-
return
|
|
9238
|
+
return _(i, "bpmn:MessageEventDefinition") ? x(e, "bpmn:IntermediateThrowEvent") || x(e, "bpmn:EndEvent") : !0;
|
|
9212
9239
|
};
|
|
9213
9240
|
A.prototype.canHostIn = function(e) {
|
|
9214
9241
|
return x(e, "bpmn:CallActivity") ? !0 : x(e, "bpmn:SignalEventDefinition") ? x(e, "bpmn:IntermediateThrowEvent") || x(e, "bpmn:EndEvent") : !0;
|
|
9215
9242
|
};
|
|
9216
|
-
function
|
|
9217
|
-
return e &&
|
|
9243
|
+
function _(e, i) {
|
|
9244
|
+
return e && Ue(e.$instanceOf) && e.$instanceOf(i);
|
|
9218
9245
|
}
|
|
9219
|
-
function
|
|
9246
|
+
function Me(e, i) {
|
|
9220
9247
|
return k(i, function(t) {
|
|
9221
|
-
return
|
|
9248
|
+
return _(e, t);
|
|
9222
9249
|
});
|
|
9223
9250
|
}
|
|
9224
9251
|
function x(e, i) {
|
|
9225
9252
|
if (!i)
|
|
9226
9253
|
return e.$parent;
|
|
9227
|
-
if (
|
|
9254
|
+
if (_(e, i))
|
|
9228
9255
|
return e;
|
|
9229
9256
|
if (e.$parent)
|
|
9230
9257
|
return x(e.$parent, i);
|
|
9231
9258
|
}
|
|
9232
|
-
function
|
|
9259
|
+
function gi(e, i) {
|
|
9233
9260
|
const t = e.$type && e.$model.getTypeDescriptor(e.$type), n = t && t.meta && t.meta.allowedIn;
|
|
9234
|
-
return !n ||
|
|
9261
|
+
return !n || Ei(n) ? !0 : k(n, function(s) {
|
|
9235
9262
|
return x(i, s);
|
|
9236
9263
|
});
|
|
9237
9264
|
}
|
|
9238
|
-
function
|
|
9239
|
-
return e.indexOf(
|
|
9265
|
+
function Ei(e) {
|
|
9266
|
+
return e.indexOf(vi) !== -1;
|
|
9240
9267
|
}
|
|
9241
|
-
const
|
|
9268
|
+
const Fi = {
|
|
9242
9269
|
__init__: ["camundaModdleExtension"],
|
|
9243
9270
|
camundaModdleExtension: ["type", A]
|
|
9244
|
-
},
|
|
9271
|
+
}, xi = {
|
|
9245
9272
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
9246
9273
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
9247
9274
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
@@ -9249,22 +9276,22 @@ const Ei = {
|
|
|
9249
9276
|
function H(e, i) {
|
|
9250
9277
|
return e && typeof e.$instanceOf == "function" && e.$instanceOf(i);
|
|
9251
9278
|
}
|
|
9252
|
-
function
|
|
9279
|
+
function Si(e) {
|
|
9253
9280
|
return e && e.length;
|
|
9254
9281
|
}
|
|
9255
|
-
function
|
|
9256
|
-
return
|
|
9282
|
+
function V(e, i) {
|
|
9283
|
+
return Si(e) && k(e, function(t) {
|
|
9257
9284
|
return H(t, i);
|
|
9258
9285
|
});
|
|
9259
9286
|
}
|
|
9260
|
-
function
|
|
9287
|
+
function Ti(e, i) {
|
|
9261
9288
|
return k(i, function(t) {
|
|
9262
9289
|
return H(e, t);
|
|
9263
9290
|
});
|
|
9264
9291
|
}
|
|
9265
9292
|
function G(e, i, t) {
|
|
9266
|
-
const n = i.name, s =
|
|
9267
|
-
return n === e &&
|
|
9293
|
+
const n = i.name, s = xi[n.replace(/activiti:/, "")];
|
|
9294
|
+
return n === e && Ti(t, s);
|
|
9268
9295
|
}
|
|
9269
9296
|
function W(e) {
|
|
9270
9297
|
e.on(
|
|
@@ -9279,14 +9306,14 @@ function W(e) {
|
|
|
9279
9306
|
W.$inject = ["eventBus"];
|
|
9280
9307
|
W.prototype.canCloneProperty = function(e, i) {
|
|
9281
9308
|
if (G("activiti:FailedJobRetryTimeCycle", i, e))
|
|
9282
|
-
return
|
|
9309
|
+
return V(e.eventDefinitions, "bpmn:TimerEventDefinition") || V(e.eventDefinitions, "bpmn:SignalEventDefinition") || H(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
9283
9310
|
if (G("activiti:Connector", i, e) || G("activiti:Field", i, e))
|
|
9284
|
-
return
|
|
9311
|
+
return V(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
9285
9312
|
};
|
|
9286
|
-
const
|
|
9313
|
+
const Ci = {
|
|
9287
9314
|
__init__: ["ActivitiModdleExtension"],
|
|
9288
9315
|
ActivitiModdleExtension: ["type", W]
|
|
9289
|
-
},
|
|
9316
|
+
}, Ii = {
|
|
9290
9317
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
9291
9318
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
9292
9319
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
@@ -9302,14 +9329,14 @@ function z(e, i) {
|
|
|
9302
9329
|
return X(t, i);
|
|
9303
9330
|
});
|
|
9304
9331
|
}
|
|
9305
|
-
function
|
|
9332
|
+
function ki(e, i) {
|
|
9306
9333
|
return k(i, function(t) {
|
|
9307
9334
|
return X(e, t);
|
|
9308
9335
|
});
|
|
9309
9336
|
}
|
|
9310
9337
|
function q(e, i, t) {
|
|
9311
|
-
const n = i.name, s =
|
|
9312
|
-
return n === e &&
|
|
9338
|
+
const n = i.name, s = Ii[n.replace(/flowable:/, "")];
|
|
9339
|
+
return n === e && ki(t, s);
|
|
9313
9340
|
}
|
|
9314
9341
|
function Y(e) {
|
|
9315
9342
|
e.on(
|
|
@@ -9328,327 +9355,329 @@ Y.prototype.canCloneProperty = function(e, i) {
|
|
|
9328
9355
|
if (q("flowable:Connector", i, e) || q("flowable:Field", i, e))
|
|
9329
9356
|
return z(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
9330
9357
|
};
|
|
9331
|
-
const
|
|
9358
|
+
const Ai = {
|
|
9332
9359
|
__init__: ["FlowableModdleExtension"],
|
|
9333
9360
|
FlowableModdleExtension: ["type", Y]
|
|
9334
9361
|
};
|
|
9335
|
-
var
|
|
9362
|
+
var wi = function() {
|
|
9336
9363
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
9337
9364
|
return t("div", {
|
|
9338
9365
|
staticClass: "my-process-designer"
|
|
9339
9366
|
}, [t("div", {
|
|
9340
9367
|
staticClass: "my-process-designer__header"
|
|
9341
|
-
}, [e._t("control-header"
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
}, [t("ElButton", {
|
|
9349
|
-
attrs: {
|
|
9350
|
-
size: e.headerButtonSize,
|
|
9351
|
-
type: e.headerButtonType,
|
|
9352
|
-
icon: "el-icon-folder-opened"
|
|
9353
|
-
},
|
|
9354
|
-
on: {
|
|
9355
|
-
click: function(n) {
|
|
9356
|
-
return e.$refs.refFile.click();
|
|
9368
|
+
}, [e._t("control-header", function() {
|
|
9369
|
+
return [t("ElButtonGroup", {
|
|
9370
|
+
key: "file-control"
|
|
9371
|
+
}, [e._t("toolbar-buttons"), e.simulation ? t("ElTooltip", {
|
|
9372
|
+
attrs: {
|
|
9373
|
+
effect: "light",
|
|
9374
|
+
content: "导入流程"
|
|
9357
9375
|
}
|
|
9358
|
-
}
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9376
|
+
}, [t("ElButton", {
|
|
9377
|
+
attrs: {
|
|
9378
|
+
size: e.headerButtonSize,
|
|
9379
|
+
type: e.headerButtonType,
|
|
9380
|
+
icon: "el-icon-folder-opened"
|
|
9381
|
+
},
|
|
9382
|
+
on: {
|
|
9383
|
+
click: function(n) {
|
|
9384
|
+
return e.$refs.refFile.click();
|
|
9385
|
+
}
|
|
9386
|
+
}
|
|
9387
|
+
}, [e._v(" 导入 ")])], 1) : e._e(), t("ElTooltip", {
|
|
9388
|
+
attrs: {
|
|
9389
|
+
effect: "light"
|
|
9390
|
+
},
|
|
9391
|
+
scopedSlots: e._u([{
|
|
9392
|
+
key: "content",
|
|
9393
|
+
fn: function() {
|
|
9394
|
+
return [t("ElButton", {
|
|
9395
|
+
attrs: {
|
|
9396
|
+
size: e.headerButtonSize,
|
|
9397
|
+
type: "text"
|
|
9398
|
+
},
|
|
9399
|
+
on: {
|
|
9400
|
+
click: function(n) {
|
|
9401
|
+
return e.downloadProcessAsXml();
|
|
9402
|
+
}
|
|
9374
9403
|
}
|
|
9375
|
-
}
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9404
|
+
}, [e._v("下载为XML文件")]), t("br"), t("ElButton", {
|
|
9405
|
+
attrs: {
|
|
9406
|
+
size: e.headerButtonSize,
|
|
9407
|
+
type: "text"
|
|
9408
|
+
},
|
|
9409
|
+
on: {
|
|
9410
|
+
click: function(n) {
|
|
9411
|
+
return e.downloadProcessAsSvg();
|
|
9412
|
+
}
|
|
9384
9413
|
}
|
|
9385
|
-
}
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9414
|
+
}, [e._v("下载为SVG文件")]), t("br"), t("ElButton", {
|
|
9415
|
+
attrs: {
|
|
9416
|
+
size: e.headerButtonSize,
|
|
9417
|
+
type: "text"
|
|
9418
|
+
},
|
|
9419
|
+
on: {
|
|
9420
|
+
click: function(n) {
|
|
9421
|
+
return e.downloadProcessAsBpmn();
|
|
9422
|
+
}
|
|
9394
9423
|
}
|
|
9395
|
-
}
|
|
9396
|
-
},
|
|
9424
|
+
}, [e._v("下载为BPMN文件")])];
|
|
9425
|
+
},
|
|
9426
|
+
proxy: !0
|
|
9427
|
+
}])
|
|
9428
|
+
}, [t("ElButton", {
|
|
9429
|
+
attrs: {
|
|
9430
|
+
size: e.headerButtonSize,
|
|
9431
|
+
type: e.headerButtonType,
|
|
9432
|
+
icon: "el-icon-download"
|
|
9433
|
+
}
|
|
9434
|
+
}, [e._v("下载")])], 1), t("ElTooltip", {
|
|
9435
|
+
attrs: {
|
|
9436
|
+
effect: "light"
|
|
9397
9437
|
},
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
},
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9438
|
+
scopedSlots: e._u([{
|
|
9439
|
+
key: "content",
|
|
9440
|
+
fn: function() {
|
|
9441
|
+
return [t("ElButton", {
|
|
9442
|
+
attrs: {
|
|
9443
|
+
size: e.headerButtonSize,
|
|
9444
|
+
type: "text"
|
|
9445
|
+
},
|
|
9446
|
+
on: {
|
|
9447
|
+
click: e.previewProcessXML
|
|
9448
|
+
}
|
|
9449
|
+
}, [e._v("预览XML")]), t("br"), t("ElButton", {
|
|
9450
|
+
attrs: {
|
|
9451
|
+
size: e.headerButtonSize,
|
|
9452
|
+
type: "text"
|
|
9453
|
+
},
|
|
9454
|
+
on: {
|
|
9455
|
+
click: e.previewProcessJson
|
|
9456
|
+
}
|
|
9457
|
+
}, [e._v("预览JSON")])];
|
|
9458
|
+
},
|
|
9459
|
+
proxy: !0
|
|
9460
|
+
}])
|
|
9461
|
+
}, [t("ElButton", {
|
|
9462
|
+
attrs: {
|
|
9463
|
+
size: e.headerButtonSize,
|
|
9464
|
+
type: e.headerButtonType,
|
|
9465
|
+
icon: "el-icon-view"
|
|
9466
|
+
}
|
|
9467
|
+
}, [e._v("预览")])], 1), e.simulation ? t("ElTooltip", {
|
|
9468
|
+
attrs: {
|
|
9469
|
+
effect: "light",
|
|
9470
|
+
content: e.simulationStatus ? "退出模拟" : "开启模拟"
|
|
9471
|
+
}
|
|
9472
|
+
}, [t("ElButton", {
|
|
9473
|
+
attrs: {
|
|
9474
|
+
size: e.headerButtonSize,
|
|
9475
|
+
type: e.headerButtonType,
|
|
9476
|
+
icon: "el-icon-cpu"
|
|
9430
9477
|
},
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
}, [t("ElButton", {
|
|
9434
|
-
attrs: {
|
|
9435
|
-
size: e.headerButtonSize,
|
|
9436
|
-
type: e.headerButtonType,
|
|
9437
|
-
icon: "el-icon-view"
|
|
9438
|
-
}
|
|
9439
|
-
}, [e._v("预览")])], 1), e.simulation ? t("ElTooltip", {
|
|
9440
|
-
attrs: {
|
|
9441
|
-
effect: "light",
|
|
9442
|
-
content: e.simulationStatus ? "退出模拟" : "开启模拟"
|
|
9443
|
-
}
|
|
9444
|
-
}, [t("ElButton", {
|
|
9445
|
-
attrs: {
|
|
9446
|
-
size: e.headerButtonSize,
|
|
9447
|
-
type: e.headerButtonType,
|
|
9448
|
-
icon: "el-icon-cpu"
|
|
9449
|
-
},
|
|
9450
|
-
on: {
|
|
9451
|
-
click: e.processSimulation
|
|
9452
|
-
}
|
|
9453
|
-
}, [e._v(" 模拟 ")])], 1) : e._e()], 2), t("ElButtonGroup", {
|
|
9454
|
-
key: "align-control"
|
|
9455
|
-
}, [t("ElTooltip", {
|
|
9456
|
-
attrs: {
|
|
9457
|
-
effect: "light",
|
|
9458
|
-
content: "向左对齐"
|
|
9459
|
-
}
|
|
9460
|
-
}, [t("ElButton", {
|
|
9461
|
-
staticClass: "align align-left",
|
|
9462
|
-
attrs: {
|
|
9463
|
-
size: e.headerButtonSize,
|
|
9464
|
-
icon: "el-icon-s-data"
|
|
9465
|
-
},
|
|
9466
|
-
on: {
|
|
9467
|
-
click: function(n) {
|
|
9468
|
-
return e.elementsAlign("left");
|
|
9478
|
+
on: {
|
|
9479
|
+
click: e.processSimulation
|
|
9469
9480
|
}
|
|
9470
|
-
}
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
}, [t("ElButton", {
|
|
9477
|
-
staticClass: "align align-right",
|
|
9478
|
-
attrs: {
|
|
9479
|
-
size: e.headerButtonSize,
|
|
9480
|
-
icon: "el-icon-s-data"
|
|
9481
|
-
},
|
|
9482
|
-
on: {
|
|
9483
|
-
click: function(n) {
|
|
9484
|
-
return e.elementsAlign("right");
|
|
9481
|
+
}, [e._v(" 模拟 ")])], 1) : e._e()], 2), t("ElButtonGroup", {
|
|
9482
|
+
key: "align-control"
|
|
9483
|
+
}, [t("ElTooltip", {
|
|
9484
|
+
attrs: {
|
|
9485
|
+
effect: "light",
|
|
9486
|
+
content: "向左对齐"
|
|
9485
9487
|
}
|
|
9486
|
-
}
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
icon: "el-icon-s-data"
|
|
9497
|
-
},
|
|
9498
|
-
on: {
|
|
9499
|
-
click: function(n) {
|
|
9500
|
-
return e.elementsAlign("top");
|
|
9488
|
+
}, [t("ElButton", {
|
|
9489
|
+
staticClass: "align align-left",
|
|
9490
|
+
attrs: {
|
|
9491
|
+
size: e.headerButtonSize,
|
|
9492
|
+
icon: "el-icon-s-data"
|
|
9493
|
+
},
|
|
9494
|
+
on: {
|
|
9495
|
+
click: function(n) {
|
|
9496
|
+
return e.elementsAlign("left");
|
|
9497
|
+
}
|
|
9501
9498
|
}
|
|
9502
|
-
}
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
content: "向下对齐"
|
|
9507
|
-
}
|
|
9508
|
-
}, [t("ElButton", {
|
|
9509
|
-
staticClass: "align align-bottom",
|
|
9510
|
-
attrs: {
|
|
9511
|
-
size: e.headerButtonSize,
|
|
9512
|
-
icon: "el-icon-s-data"
|
|
9513
|
-
},
|
|
9514
|
-
on: {
|
|
9515
|
-
click: function(n) {
|
|
9516
|
-
return e.elementsAlign("bottom");
|
|
9499
|
+
})], 1), t("ElTooltip", {
|
|
9500
|
+
attrs: {
|
|
9501
|
+
effect: "light",
|
|
9502
|
+
content: "向右对齐"
|
|
9517
9503
|
}
|
|
9518
|
-
}
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
icon: "el-icon-s-data"
|
|
9529
|
-
},
|
|
9530
|
-
on: {
|
|
9531
|
-
click: function(n) {
|
|
9532
|
-
return e.elementsAlign("center");
|
|
9504
|
+
}, [t("ElButton", {
|
|
9505
|
+
staticClass: "align align-right",
|
|
9506
|
+
attrs: {
|
|
9507
|
+
size: e.headerButtonSize,
|
|
9508
|
+
icon: "el-icon-s-data"
|
|
9509
|
+
},
|
|
9510
|
+
on: {
|
|
9511
|
+
click: function(n) {
|
|
9512
|
+
return e.elementsAlign("right");
|
|
9513
|
+
}
|
|
9533
9514
|
}
|
|
9534
|
-
}
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
content: "垂直居中"
|
|
9539
|
-
}
|
|
9540
|
-
}, [t("ElButton", {
|
|
9541
|
-
staticClass: "align align-middle",
|
|
9542
|
-
attrs: {
|
|
9543
|
-
size: e.headerButtonSize,
|
|
9544
|
-
icon: "el-icon-s-data"
|
|
9545
|
-
},
|
|
9546
|
-
on: {
|
|
9547
|
-
click: function(n) {
|
|
9548
|
-
return e.elementsAlign("middle");
|
|
9515
|
+
})], 1), t("ElTooltip", {
|
|
9516
|
+
attrs: {
|
|
9517
|
+
effect: "light",
|
|
9518
|
+
content: "向上对齐"
|
|
9549
9519
|
}
|
|
9550
|
-
}
|
|
9551
|
-
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
size: e.headerButtonSize,
|
|
9561
|
-
disabled: e.defaultZoom < 0.2,
|
|
9562
|
-
icon: "el-icon-zoom-out"
|
|
9563
|
-
},
|
|
9564
|
-
on: {
|
|
9565
|
-
click: function(n) {
|
|
9566
|
-
return e.processZoomOut();
|
|
9520
|
+
}, [t("ElButton", {
|
|
9521
|
+
staticClass: "align align-top",
|
|
9522
|
+
attrs: {
|
|
9523
|
+
size: e.headerButtonSize,
|
|
9524
|
+
icon: "el-icon-s-data"
|
|
9525
|
+
},
|
|
9526
|
+
on: {
|
|
9527
|
+
click: function(n) {
|
|
9528
|
+
return e.elementsAlign("top");
|
|
9529
|
+
}
|
|
9567
9530
|
}
|
|
9568
|
-
}
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
}
|
|
9573
|
-
}, [e._v(e._s(`${Math.floor(e.defaultZoom * 10 * 10)}%`))]), t("ElTooltip", {
|
|
9574
|
-
attrs: {
|
|
9575
|
-
effect: "light",
|
|
9576
|
-
content: "放大视图"
|
|
9577
|
-
}
|
|
9578
|
-
}, [t("ElButton", {
|
|
9579
|
-
attrs: {
|
|
9580
|
-
size: e.headerButtonSize,
|
|
9581
|
-
disabled: e.defaultZoom > 4,
|
|
9582
|
-
icon: "el-icon-zoom-in"
|
|
9583
|
-
},
|
|
9584
|
-
on: {
|
|
9585
|
-
click: function(n) {
|
|
9586
|
-
return e.processZoomIn();
|
|
9531
|
+
})], 1), t("ElTooltip", {
|
|
9532
|
+
attrs: {
|
|
9533
|
+
effect: "light",
|
|
9534
|
+
content: "向下对齐"
|
|
9587
9535
|
}
|
|
9588
|
-
}
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
},
|
|
9599
|
-
on: {
|
|
9600
|
-
click: function(n) {
|
|
9601
|
-
return e.processReZoom();
|
|
9536
|
+
}, [t("ElButton", {
|
|
9537
|
+
staticClass: "align align-bottom",
|
|
9538
|
+
attrs: {
|
|
9539
|
+
size: e.headerButtonSize,
|
|
9540
|
+
icon: "el-icon-s-data"
|
|
9541
|
+
},
|
|
9542
|
+
on: {
|
|
9543
|
+
click: function(n) {
|
|
9544
|
+
return e.elementsAlign("bottom");
|
|
9545
|
+
}
|
|
9602
9546
|
}
|
|
9603
|
-
}
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
attrs: {
|
|
9608
|
-
effect: "light",
|
|
9609
|
-
content: "撤销"
|
|
9610
|
-
}
|
|
9611
|
-
}, [t("ElButton", {
|
|
9612
|
-
attrs: {
|
|
9613
|
-
size: e.headerButtonSize,
|
|
9614
|
-
disabled: !e.revocable,
|
|
9615
|
-
icon: "el-icon-refresh-left"
|
|
9616
|
-
},
|
|
9617
|
-
on: {
|
|
9618
|
-
click: function(n) {
|
|
9619
|
-
return e.processUndo();
|
|
9547
|
+
})], 1), t("ElTooltip", {
|
|
9548
|
+
attrs: {
|
|
9549
|
+
effect: "light",
|
|
9550
|
+
content: "水平居中"
|
|
9620
9551
|
}
|
|
9621
|
-
}
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
icon: "el-icon-refresh-right"
|
|
9632
|
-
},
|
|
9633
|
-
on: {
|
|
9634
|
-
click: function(n) {
|
|
9635
|
-
return e.processRedo();
|
|
9552
|
+
}, [t("ElButton", {
|
|
9553
|
+
staticClass: "align align-center",
|
|
9554
|
+
attrs: {
|
|
9555
|
+
size: e.headerButtonSize,
|
|
9556
|
+
icon: "el-icon-s-data"
|
|
9557
|
+
},
|
|
9558
|
+
on: {
|
|
9559
|
+
click: function(n) {
|
|
9560
|
+
return e.elementsAlign("center");
|
|
9561
|
+
}
|
|
9636
9562
|
}
|
|
9637
|
-
}
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
}
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9563
|
+
})], 1), t("ElTooltip", {
|
|
9564
|
+
attrs: {
|
|
9565
|
+
effect: "light",
|
|
9566
|
+
content: "垂直居中"
|
|
9567
|
+
}
|
|
9568
|
+
}, [t("ElButton", {
|
|
9569
|
+
staticClass: "align align-middle",
|
|
9570
|
+
attrs: {
|
|
9571
|
+
size: e.headerButtonSize,
|
|
9572
|
+
icon: "el-icon-s-data"
|
|
9573
|
+
},
|
|
9574
|
+
on: {
|
|
9575
|
+
click: function(n) {
|
|
9576
|
+
return e.elementsAlign("middle");
|
|
9577
|
+
}
|
|
9578
|
+
}
|
|
9579
|
+
})], 1)], 1), t("ElButtonGroup", {
|
|
9580
|
+
key: "scale-control"
|
|
9581
|
+
}, [t("ElTooltip", {
|
|
9582
|
+
attrs: {
|
|
9583
|
+
effect: "light",
|
|
9584
|
+
content: "缩小视图"
|
|
9585
|
+
}
|
|
9586
|
+
}, [t("ElButton", {
|
|
9587
|
+
attrs: {
|
|
9588
|
+
size: e.headerButtonSize,
|
|
9589
|
+
disabled: e.defaultZoom < 0.2,
|
|
9590
|
+
icon: "el-icon-zoom-out"
|
|
9591
|
+
},
|
|
9592
|
+
on: {
|
|
9593
|
+
click: function(n) {
|
|
9594
|
+
return e.processZoomOut();
|
|
9595
|
+
}
|
|
9596
|
+
}
|
|
9597
|
+
})], 1), t("ElButton", {
|
|
9598
|
+
attrs: {
|
|
9599
|
+
size: e.headerButtonSize
|
|
9600
|
+
}
|
|
9601
|
+
}, [e._v(e._s(`${Math.floor(e.defaultZoom * 10 * 10)}%`))]), t("ElTooltip", {
|
|
9602
|
+
attrs: {
|
|
9603
|
+
effect: "light",
|
|
9604
|
+
content: "放大视图"
|
|
9605
|
+
}
|
|
9606
|
+
}, [t("ElButton", {
|
|
9607
|
+
attrs: {
|
|
9608
|
+
size: e.headerButtonSize,
|
|
9609
|
+
disabled: e.defaultZoom > 4,
|
|
9610
|
+
icon: "el-icon-zoom-in"
|
|
9611
|
+
},
|
|
9612
|
+
on: {
|
|
9613
|
+
click: function(n) {
|
|
9614
|
+
return e.processZoomIn();
|
|
9615
|
+
}
|
|
9616
|
+
}
|
|
9617
|
+
})], 1), t("ElTooltip", {
|
|
9618
|
+
attrs: {
|
|
9619
|
+
effect: "light",
|
|
9620
|
+
content: "重置视图并居中"
|
|
9621
|
+
}
|
|
9622
|
+
}, [t("ElButton", {
|
|
9623
|
+
attrs: {
|
|
9624
|
+
size: e.headerButtonSize,
|
|
9625
|
+
icon: "el-icon-c-scale-to-original"
|
|
9626
|
+
},
|
|
9627
|
+
on: {
|
|
9628
|
+
click: function(n) {
|
|
9629
|
+
return e.processReZoom();
|
|
9630
|
+
}
|
|
9631
|
+
}
|
|
9632
|
+
})], 1)], 1), t("ElButtonGroup", {
|
|
9633
|
+
key: "stack-control"
|
|
9634
|
+
}, [t("ElTooltip", {
|
|
9635
|
+
attrs: {
|
|
9636
|
+
effect: "light",
|
|
9637
|
+
content: "撤销"
|
|
9638
|
+
}
|
|
9639
|
+
}, [t("ElButton", {
|
|
9640
|
+
attrs: {
|
|
9641
|
+
size: e.headerButtonSize,
|
|
9642
|
+
disabled: !e.revocable,
|
|
9643
|
+
icon: "el-icon-refresh-left"
|
|
9644
|
+
},
|
|
9645
|
+
on: {
|
|
9646
|
+
click: function(n) {
|
|
9647
|
+
return e.processUndo();
|
|
9648
|
+
}
|
|
9649
|
+
}
|
|
9650
|
+
})], 1), t("ElTooltip", {
|
|
9651
|
+
attrs: {
|
|
9652
|
+
effect: "light",
|
|
9653
|
+
content: "恢复"
|
|
9654
|
+
}
|
|
9655
|
+
}, [t("ElButton", {
|
|
9656
|
+
attrs: {
|
|
9657
|
+
size: e.headerButtonSize,
|
|
9658
|
+
disabled: !e.recoverable,
|
|
9659
|
+
icon: "el-icon-refresh-right"
|
|
9660
|
+
},
|
|
9661
|
+
on: {
|
|
9662
|
+
click: function(n) {
|
|
9663
|
+
return e.processRedo();
|
|
9664
|
+
}
|
|
9665
|
+
}
|
|
9666
|
+
})], 1), t("ElTooltip", {
|
|
9667
|
+
attrs: {
|
|
9668
|
+
effect: "light",
|
|
9669
|
+
content: "重新绘制"
|
|
9670
|
+
}
|
|
9671
|
+
}, [t("ElButton", {
|
|
9672
|
+
attrs: {
|
|
9673
|
+
size: e.headerButtonSize,
|
|
9674
|
+
icon: "el-icon-refresh"
|
|
9675
|
+
},
|
|
9676
|
+
on: {
|
|
9677
|
+
click: e.processRestart
|
|
9678
|
+
}
|
|
9679
|
+
})], 1)], 1)];
|
|
9680
|
+
}), t("input", {
|
|
9652
9681
|
ref: "refFile",
|
|
9653
9682
|
staticStyle: {
|
|
9654
9683
|
display: "none"
|
|
@@ -9686,13 +9715,13 @@ var Ai = function() {
|
|
|
9686
9715
|
code: e.previewResult
|
|
9687
9716
|
}
|
|
9688
9717
|
})], 1)], 1);
|
|
9689
|
-
},
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
const
|
|
9718
|
+
}, $i = [];
|
|
9719
|
+
Te.registerLanguage("xml", et);
|
|
9720
|
+
Te.registerLanguage("json", tt);
|
|
9721
|
+
const Li = {
|
|
9693
9722
|
name: "ProcessDesigner",
|
|
9694
9723
|
components: {
|
|
9695
|
-
HighlightJS:
|
|
9724
|
+
HighlightJS: nt
|
|
9696
9725
|
},
|
|
9697
9726
|
componentName: "MyProcessDesigner",
|
|
9698
9727
|
props: {
|
|
@@ -9762,12 +9791,12 @@ const $i = {
|
|
|
9762
9791
|
additionalModules() {
|
|
9763
9792
|
const e = [];
|
|
9764
9793
|
if (this.onlyCustomizeAddi)
|
|
9765
|
-
return
|
|
9766
|
-
|
|
9794
|
+
return te(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
9795
|
+
te(this.additionalModel) ? e.push(...this.additionalModel) : this.additionalModel && e.push(this.additionalModel);
|
|
9767
9796
|
const i = {
|
|
9768
|
-
translate: ["value",
|
|
9797
|
+
translate: ["value", Hn(this.translations || Wn)]
|
|
9769
9798
|
};
|
|
9770
|
-
return e.push(i), this.simulation && e.push(
|
|
9799
|
+
return e.push(i), this.simulation && e.push(Ye), e.push(Xe), this.prefix === "camunda" && e.push(Fi), this.prefix === "flowable" && e.push(Ai), this.prefix === "activiti" && e.push(Ci), e;
|
|
9771
9800
|
},
|
|
9772
9801
|
moddleExtensions() {
|
|
9773
9802
|
const e = {};
|
|
@@ -9776,12 +9805,12 @@ const $i = {
|
|
|
9776
9805
|
if (this.moddleExtension)
|
|
9777
9806
|
for (const i in this.moddleExtension)
|
|
9778
9807
|
e[i] = this.moddleExtension[i];
|
|
9779
|
-
return this.prefix === "activiti" && (e.activiti = T(f({},
|
|
9780
|
-
types: [...ve.types, ...this.extendTypes || []]
|
|
9781
|
-
})), this.prefix === "flowable" && (e.flowable = T(f({}, ge), {
|
|
9808
|
+
return this.prefix === "activiti" && (e.activiti = T(f({}, ge), {
|
|
9782
9809
|
types: [...ge.types, ...this.extendTypes || []]
|
|
9783
|
-
})), this.prefix === "
|
|
9784
|
-
types: [...
|
|
9810
|
+
})), this.prefix === "flowable" && (e.flowable = T(f({}, Ee), {
|
|
9811
|
+
types: [...Ee.types, ...this.extendTypes || []]
|
|
9812
|
+
})), this.prefix === "camunda" && (e.camunda = T(f({}, ve), {
|
|
9813
|
+
types: [...ve.types, ...this.extendTypes || []]
|
|
9785
9814
|
})), e;
|
|
9786
9815
|
}
|
|
9787
9816
|
},
|
|
@@ -9792,7 +9821,7 @@ const $i = {
|
|
|
9792
9821
|
},
|
|
9793
9822
|
methods: {
|
|
9794
9823
|
initBpmnModeler() {
|
|
9795
|
-
this.bpmnModeler || (this.bpmnModeler = new
|
|
9824
|
+
this.bpmnModeler || (this.bpmnModeler = new We(f({
|
|
9796
9825
|
container: this.$refs["bpmn-canvas"],
|
|
9797
9826
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
9798
9827
|
additionalModules: this.additionalModules,
|
|
@@ -9823,7 +9852,7 @@ const $i = {
|
|
|
9823
9852
|
/* 创建新的流程图 */
|
|
9824
9853
|
createNewDiagram(e) {
|
|
9825
9854
|
return u(this, null, function* () {
|
|
9826
|
-
const i = this.processId || `Process_${new Date().getTime()}`, t = this.processName || `业务流程_${new Date().getTime()}`, n = e ||
|
|
9855
|
+
const i = this.processId || `Process_${new Date().getTime()}`, t = this.processName || `业务流程_${new Date().getTime()}`, n = e || Zn(i, t, this.prefix);
|
|
9827
9856
|
try {
|
|
9828
9857
|
const { warnings: s } = yield this.bpmnModeler.importXML(n);
|
|
9829
9858
|
this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), s != null && s.length;
|
|
@@ -9943,32 +9972,32 @@ const $i = {
|
|
|
9943
9972
|
});
|
|
9944
9973
|
},
|
|
9945
9974
|
previewProcessJson() {
|
|
9946
|
-
const e = new
|
|
9975
|
+
const e = new Qe();
|
|
9947
9976
|
this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: i }) => {
|
|
9948
9977
|
const { definitions: t } = e.xml2js(i);
|
|
9949
9978
|
t ? this.previewResult = JSON.stringify(t, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
|
|
9950
9979
|
});
|
|
9951
9980
|
}
|
|
9952
9981
|
}
|
|
9953
|
-
},
|
|
9954
|
-
var
|
|
9955
|
-
|
|
9956
|
-
Ai,
|
|
9982
|
+
}, Fe = {};
|
|
9983
|
+
var Mi = /* @__PURE__ */ h(
|
|
9984
|
+
Li,
|
|
9957
9985
|
wi,
|
|
9986
|
+
$i,
|
|
9958
9987
|
!1,
|
|
9959
|
-
|
|
9988
|
+
Oi,
|
|
9960
9989
|
null,
|
|
9961
9990
|
null,
|
|
9962
9991
|
null
|
|
9963
9992
|
);
|
|
9964
|
-
function
|
|
9965
|
-
for (let i in
|
|
9966
|
-
this[i] =
|
|
9993
|
+
function Oi(e) {
|
|
9994
|
+
for (let i in Fe)
|
|
9995
|
+
this[i] = Fe[i];
|
|
9967
9996
|
}
|
|
9968
|
-
const
|
|
9969
|
-
return
|
|
9997
|
+
const Pi = /* @__PURE__ */ function() {
|
|
9998
|
+
return Mi.exports;
|
|
9970
9999
|
}();
|
|
9971
|
-
var
|
|
10000
|
+
var Di = function() {
|
|
9972
10001
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
9973
10002
|
return t("div", {
|
|
9974
10003
|
staticClass: "flow-designer"
|
|
@@ -10017,14 +10046,36 @@ var Pi = function() {
|
|
|
10017
10046
|
type: o
|
|
10018
10047
|
})];
|
|
10019
10048
|
}
|
|
10049
|
+
}, {
|
|
10050
|
+
key: "form",
|
|
10051
|
+
fn: function(n) {
|
|
10052
|
+
var s = n.id, r = n.bpmnInstances, a = n.element, o = n.type;
|
|
10053
|
+
return [e._t("form", null, {
|
|
10054
|
+
id: s,
|
|
10055
|
+
bpmnInstances: r,
|
|
10056
|
+
element: a,
|
|
10057
|
+
type: o
|
|
10058
|
+
})];
|
|
10059
|
+
}
|
|
10060
|
+
}, {
|
|
10061
|
+
key: "extend",
|
|
10062
|
+
fn: function(n) {
|
|
10063
|
+
var s = n.id, r = n.bpmnInstances, a = n.element, o = n.type;
|
|
10064
|
+
return [e._t("extend", null, {
|
|
10065
|
+
id: s,
|
|
10066
|
+
bpmnInstances: r,
|
|
10067
|
+
element: a,
|
|
10068
|
+
type: o
|
|
10069
|
+
})];
|
|
10070
|
+
}
|
|
10020
10071
|
}], null, !0)
|
|
10021
10072
|
})], 1);
|
|
10022
|
-
},
|
|
10023
|
-
const
|
|
10073
|
+
}, Bi = [];
|
|
10074
|
+
const ji = {
|
|
10024
10075
|
name: "FlowDesigner",
|
|
10025
10076
|
components: {
|
|
10026
|
-
PropertiesPanel:
|
|
10027
|
-
ProcessDesigner:
|
|
10077
|
+
PropertiesPanel: Jn,
|
|
10078
|
+
ProcessDesigner: Pi
|
|
10028
10079
|
},
|
|
10029
10080
|
props: {
|
|
10030
10081
|
value: String,
|
|
@@ -10043,9 +10094,9 @@ const Bi = {
|
|
|
10043
10094
|
prefix: "flowable",
|
|
10044
10095
|
headerButtonSize: "mini",
|
|
10045
10096
|
additionalModel: [
|
|
10046
|
-
nt,
|
|
10047
10097
|
it,
|
|
10048
|
-
|
|
10098
|
+
st,
|
|
10099
|
+
ut
|
|
10049
10100
|
]
|
|
10050
10101
|
}
|
|
10051
10102
|
};
|
|
@@ -10055,11 +10106,11 @@ const Bi = {
|
|
|
10055
10106
|
this.modeler = e;
|
|
10056
10107
|
}
|
|
10057
10108
|
}
|
|
10058
|
-
},
|
|
10059
|
-
var
|
|
10060
|
-
|
|
10061
|
-
Pi,
|
|
10109
|
+
}, xe = {};
|
|
10110
|
+
var Ri = /* @__PURE__ */ h(
|
|
10111
|
+
ji,
|
|
10062
10112
|
Di,
|
|
10113
|
+
Bi,
|
|
10063
10114
|
!1,
|
|
10064
10115
|
Vi,
|
|
10065
10116
|
null,
|
|
@@ -10067,12 +10118,12 @@ var ji = /* @__PURE__ */ h(
|
|
|
10067
10118
|
null
|
|
10068
10119
|
);
|
|
10069
10120
|
function Vi(e) {
|
|
10070
|
-
for (let i in
|
|
10071
|
-
this[i] =
|
|
10121
|
+
for (let i in xe)
|
|
10122
|
+
this[i] = xe[i];
|
|
10072
10123
|
}
|
|
10073
|
-
const
|
|
10074
|
-
return
|
|
10124
|
+
const us = /* @__PURE__ */ function() {
|
|
10125
|
+
return Ri.exports;
|
|
10075
10126
|
}();
|
|
10076
10127
|
export {
|
|
10077
|
-
|
|
10128
|
+
us as default
|
|
10078
10129
|
};
|