@web-utils/component 2.8.20 → 2.8.22
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 +435 -402
- package/flow-designer/style.css +1 -1
- package/package.json +1 -1
- package/web-types.json +4 -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: {
|
|
@@ -5210,20 +5219,20 @@ var zn = function() {
|
|
|
5210
5219
|
element: e.element,
|
|
5211
5220
|
type: e.elementType
|
|
5212
5221
|
})], 2)], 1);
|
|
5213
|
-
},
|
|
5214
|
-
const
|
|
5222
|
+
}, Nn = [];
|
|
5223
|
+
const ye = "base", Gn = {
|
|
5215
5224
|
name: "PropertiesPanel",
|
|
5216
5225
|
components: {
|
|
5217
|
-
UserTaskListeners:
|
|
5218
|
-
ElementForm:
|
|
5219
|
-
ElementProperties:
|
|
5220
|
-
ElementListeners:
|
|
5221
|
-
SignalAndMassage:
|
|
5222
|
-
FlowCondition:
|
|
5223
|
-
ElementMultiInstance:
|
|
5224
|
-
ElementTask:
|
|
5225
|
-
ElementOtherConfig:
|
|
5226
|
-
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
|
|
5227
5236
|
},
|
|
5228
5237
|
componentName: "MyPropertiesPanel",
|
|
5229
5238
|
provide() {
|
|
@@ -5252,7 +5261,7 @@ const be = "base", Nn = {
|
|
|
5252
5261
|
return {
|
|
5253
5262
|
element: {},
|
|
5254
5263
|
bpmnInstances: {},
|
|
5255
|
-
activeTab:
|
|
5264
|
+
activeTab: ye,
|
|
5256
5265
|
elementId: "",
|
|
5257
5266
|
elementType: "",
|
|
5258
5267
|
conditionFormVisible: !1,
|
|
@@ -5265,7 +5274,7 @@ const be = "base", Nn = {
|
|
|
5265
5274
|
watch: {
|
|
5266
5275
|
elementId: {
|
|
5267
5276
|
handler() {
|
|
5268
|
-
this.activeTab =
|
|
5277
|
+
this.activeTab = ye;
|
|
5269
5278
|
}
|
|
5270
5279
|
}
|
|
5271
5280
|
},
|
|
@@ -5306,24 +5315,24 @@ const be = "base", Nn = {
|
|
|
5306
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");
|
|
5307
5316
|
}
|
|
5308
5317
|
}
|
|
5309
|
-
},
|
|
5310
|
-
var
|
|
5311
|
-
|
|
5312
|
-
zn,
|
|
5318
|
+
}, he = {};
|
|
5319
|
+
var qn = /* @__PURE__ */ h(
|
|
5320
|
+
Gn,
|
|
5313
5321
|
Un,
|
|
5322
|
+
Nn,
|
|
5314
5323
|
!1,
|
|
5315
|
-
|
|
5324
|
+
Kn,
|
|
5316
5325
|
null,
|
|
5317
5326
|
null,
|
|
5318
5327
|
null
|
|
5319
5328
|
);
|
|
5320
|
-
function
|
|
5321
|
-
for (let i in
|
|
5322
|
-
this[i] =
|
|
5329
|
+
function Kn(e) {
|
|
5330
|
+
for (let i in he)
|
|
5331
|
+
this[i] = he[i];
|
|
5323
5332
|
}
|
|
5324
|
-
const
|
|
5325
|
-
return
|
|
5326
|
-
}(),
|
|
5333
|
+
const Jn = /* @__PURE__ */ function() {
|
|
5334
|
+
return qn.exports;
|
|
5335
|
+
}(), Zn = (e, i, t) => (t = t || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
|
|
5327
5336
|
<bpmn2:definitions
|
|
5328
5337
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
5329
5338
|
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
|
|
@@ -5343,7 +5352,7 @@ const Kn = /* @__PURE__ */ function() {
|
|
|
5343
5352
|
</bpmndi:BPMNPlane>
|
|
5344
5353
|
</bpmndi:BPMNDiagram>
|
|
5345
5354
|
</bpmn2:definitions>`);
|
|
5346
|
-
function
|
|
5355
|
+
function Hn(e) {
|
|
5347
5356
|
return function(i, t) {
|
|
5348
5357
|
return t = t || {}, i = e[i] || i, i.replace(/{([^}]+)}/g, function(n, s) {
|
|
5349
5358
|
let r = t[s];
|
|
@@ -5351,7 +5360,7 @@ function Zn(e) {
|
|
|
5351
5360
|
});
|
|
5352
5361
|
};
|
|
5353
5362
|
}
|
|
5354
|
-
const
|
|
5363
|
+
const Wn = {
|
|
5355
5364
|
// 添加部分
|
|
5356
5365
|
"Append EndEvent": "追加结束事件",
|
|
5357
5366
|
"Append Gateway": "追加网关",
|
|
@@ -5585,10 +5594,23 @@ const Hn = {
|
|
|
5585
5594
|
"Specify more than one user as a comma separated list.": "指定多个用户作为逗号分隔的列表。",
|
|
5586
5595
|
"Tasklist Configuration": "Tasklist配置",
|
|
5587
5596
|
Startable: "启动",
|
|
5588
|
-
"Specify more than one group as a comma separated list.": "指定多个组作为逗号分隔的列表。"
|
|
5589
|
-
|
|
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 = {
|
|
5590
5612
|
tagAlias: "lowerCase"
|
|
5591
|
-
},
|
|
5613
|
+
}, ti = [], ni = [
|
|
5592
5614
|
{
|
|
5593
5615
|
name: "Definitions",
|
|
5594
5616
|
isAbstract: !0,
|
|
@@ -6704,17 +6726,17 @@ const Hn = {
|
|
|
6704
6726
|
}
|
|
6705
6727
|
]
|
|
6706
6728
|
}
|
|
6707
|
-
],
|
|
6708
|
-
name:
|
|
6709
|
-
uri:
|
|
6710
|
-
prefix:
|
|
6711
|
-
xml:
|
|
6712
|
-
associations:
|
|
6713
|
-
types:
|
|
6714
|
-
emumerations:
|
|
6715
|
-
},
|
|
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 = {
|
|
6716
6738
|
tagAlias: "lowerCase"
|
|
6717
|
-
},
|
|
6739
|
+
}, li = [], pi = [
|
|
6718
6740
|
{
|
|
6719
6741
|
name: "Definitions",
|
|
6720
6742
|
isAbstract: !0,
|
|
@@ -7812,17 +7834,17 @@ const Hn = {
|
|
|
7812
7834
|
}
|
|
7813
7835
|
]
|
|
7814
7836
|
}
|
|
7815
|
-
],
|
|
7816
|
-
name:
|
|
7817
|
-
uri:
|
|
7818
|
-
prefix:
|
|
7819
|
-
xml:
|
|
7820
|
-
associations:
|
|
7821
|
-
types:
|
|
7822
|
-
emumerations:
|
|
7823
|
-
},
|
|
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 = {
|
|
7824
7846
|
tagAlias: "lowerCase"
|
|
7825
|
-
},
|
|
7847
|
+
}, bi = [], yi = [], hi = [
|
|
7826
7848
|
{
|
|
7827
7849
|
name: "InOutBinding",
|
|
7828
7850
|
superClass: [
|
|
@@ -9184,15 +9206,15 @@ const Hn = {
|
|
|
9184
9206
|
}
|
|
9185
9207
|
]
|
|
9186
9208
|
}
|
|
9187
|
-
],
|
|
9188
|
-
name:
|
|
9189
|
-
uri:
|
|
9190
|
-
prefix:
|
|
9191
|
-
xml:
|
|
9192
|
-
associations:
|
|
9193
|
-
emumerations:
|
|
9194
|
-
types:
|
|
9195
|
-
},
|
|
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 = "*";
|
|
9196
9218
|
function A(e) {
|
|
9197
9219
|
const i = this;
|
|
9198
9220
|
e.on("moddleCopy.canCopyProperty", function(t) {
|
|
@@ -9202,51 +9224,51 @@ function A(e) {
|
|
|
9202
9224
|
}
|
|
9203
9225
|
A.$inject = ["eventBus"];
|
|
9204
9226
|
A.prototype.canCopyProperty = function(e, i) {
|
|
9205
|
-
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))
|
|
9206
9228
|
return !1;
|
|
9207
9229
|
};
|
|
9208
9230
|
A.prototype.canHostInputOutput = function(e) {
|
|
9209
9231
|
if (x(e, "camunda:Connector"))
|
|
9210
9232
|
return !0;
|
|
9211
9233
|
const t = x(e, "bpmn:FlowNode");
|
|
9212
|
-
return !(!t ||
|
|
9234
|
+
return !(!t || Me(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || _(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
9213
9235
|
};
|
|
9214
9236
|
A.prototype.canHostConnector = function(e) {
|
|
9215
9237
|
const i = x(e, "camunda:ServiceTaskLike");
|
|
9216
|
-
return
|
|
9238
|
+
return _(i, "bpmn:MessageEventDefinition") ? x(e, "bpmn:IntermediateThrowEvent") || x(e, "bpmn:EndEvent") : !0;
|
|
9217
9239
|
};
|
|
9218
9240
|
A.prototype.canHostIn = function(e) {
|
|
9219
9241
|
return x(e, "bpmn:CallActivity") ? !0 : x(e, "bpmn:SignalEventDefinition") ? x(e, "bpmn:IntermediateThrowEvent") || x(e, "bpmn:EndEvent") : !0;
|
|
9220
9242
|
};
|
|
9221
|
-
function
|
|
9222
|
-
return e &&
|
|
9243
|
+
function _(e, i) {
|
|
9244
|
+
return e && Ue(e.$instanceOf) && e.$instanceOf(i);
|
|
9223
9245
|
}
|
|
9224
|
-
function
|
|
9246
|
+
function Me(e, i) {
|
|
9225
9247
|
return k(i, function(t) {
|
|
9226
|
-
return
|
|
9248
|
+
return _(e, t);
|
|
9227
9249
|
});
|
|
9228
9250
|
}
|
|
9229
9251
|
function x(e, i) {
|
|
9230
9252
|
if (!i)
|
|
9231
9253
|
return e.$parent;
|
|
9232
|
-
if (
|
|
9254
|
+
if (_(e, i))
|
|
9233
9255
|
return e;
|
|
9234
9256
|
if (e.$parent)
|
|
9235
9257
|
return x(e.$parent, i);
|
|
9236
9258
|
}
|
|
9237
|
-
function
|
|
9259
|
+
function gi(e, i) {
|
|
9238
9260
|
const t = e.$type && e.$model.getTypeDescriptor(e.$type), n = t && t.meta && t.meta.allowedIn;
|
|
9239
|
-
return !n ||
|
|
9261
|
+
return !n || Ei(n) ? !0 : k(n, function(s) {
|
|
9240
9262
|
return x(i, s);
|
|
9241
9263
|
});
|
|
9242
9264
|
}
|
|
9243
|
-
function
|
|
9244
|
-
return e.indexOf(
|
|
9265
|
+
function Ei(e) {
|
|
9266
|
+
return e.indexOf(vi) !== -1;
|
|
9245
9267
|
}
|
|
9246
|
-
const
|
|
9268
|
+
const Fi = {
|
|
9247
9269
|
__init__: ["camundaModdleExtension"],
|
|
9248
9270
|
camundaModdleExtension: ["type", A]
|
|
9249
|
-
},
|
|
9271
|
+
}, xi = {
|
|
9250
9272
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
9251
9273
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
9252
9274
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
@@ -9254,22 +9276,22 @@ const Ei = {
|
|
|
9254
9276
|
function H(e, i) {
|
|
9255
9277
|
return e && typeof e.$instanceOf == "function" && e.$instanceOf(i);
|
|
9256
9278
|
}
|
|
9257
|
-
function
|
|
9279
|
+
function Si(e) {
|
|
9258
9280
|
return e && e.length;
|
|
9259
9281
|
}
|
|
9260
|
-
function
|
|
9261
|
-
return
|
|
9282
|
+
function V(e, i) {
|
|
9283
|
+
return Si(e) && k(e, function(t) {
|
|
9262
9284
|
return H(t, i);
|
|
9263
9285
|
});
|
|
9264
9286
|
}
|
|
9265
|
-
function
|
|
9287
|
+
function Ti(e, i) {
|
|
9266
9288
|
return k(i, function(t) {
|
|
9267
9289
|
return H(e, t);
|
|
9268
9290
|
});
|
|
9269
9291
|
}
|
|
9270
9292
|
function G(e, i, t) {
|
|
9271
|
-
const n = i.name, s =
|
|
9272
|
-
return n === e &&
|
|
9293
|
+
const n = i.name, s = xi[n.replace(/activiti:/, "")];
|
|
9294
|
+
return n === e && Ti(t, s);
|
|
9273
9295
|
}
|
|
9274
9296
|
function W(e) {
|
|
9275
9297
|
e.on(
|
|
@@ -9284,14 +9306,14 @@ function W(e) {
|
|
|
9284
9306
|
W.$inject = ["eventBus"];
|
|
9285
9307
|
W.prototype.canCloneProperty = function(e, i) {
|
|
9286
9308
|
if (G("activiti:FailedJobRetryTimeCycle", i, e))
|
|
9287
|
-
return
|
|
9309
|
+
return V(e.eventDefinitions, "bpmn:TimerEventDefinition") || V(e.eventDefinitions, "bpmn:SignalEventDefinition") || H(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
9288
9310
|
if (G("activiti:Connector", i, e) || G("activiti:Field", i, e))
|
|
9289
|
-
return
|
|
9311
|
+
return V(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
9290
9312
|
};
|
|
9291
|
-
const
|
|
9313
|
+
const Ci = {
|
|
9292
9314
|
__init__: ["ActivitiModdleExtension"],
|
|
9293
9315
|
ActivitiModdleExtension: ["type", W]
|
|
9294
|
-
},
|
|
9316
|
+
}, Ii = {
|
|
9295
9317
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
9296
9318
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
9297
9319
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
@@ -9307,14 +9329,14 @@ function z(e, i) {
|
|
|
9307
9329
|
return X(t, i);
|
|
9308
9330
|
});
|
|
9309
9331
|
}
|
|
9310
|
-
function
|
|
9332
|
+
function ki(e, i) {
|
|
9311
9333
|
return k(i, function(t) {
|
|
9312
9334
|
return X(e, t);
|
|
9313
9335
|
});
|
|
9314
9336
|
}
|
|
9315
9337
|
function q(e, i, t) {
|
|
9316
|
-
const n = i.name, s =
|
|
9317
|
-
return n === e &&
|
|
9338
|
+
const n = i.name, s = Ii[n.replace(/flowable:/, "")];
|
|
9339
|
+
return n === e && ki(t, s);
|
|
9318
9340
|
}
|
|
9319
9341
|
function Y(e) {
|
|
9320
9342
|
e.on(
|
|
@@ -9333,11 +9355,11 @@ Y.prototype.canCloneProperty = function(e, i) {
|
|
|
9333
9355
|
if (q("flowable:Connector", i, e) || q("flowable:Field", i, e))
|
|
9334
9356
|
return z(e.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
9335
9357
|
};
|
|
9336
|
-
const
|
|
9358
|
+
const Ai = {
|
|
9337
9359
|
__init__: ["FlowableModdleExtension"],
|
|
9338
9360
|
FlowableModdleExtension: ["type", Y]
|
|
9339
9361
|
};
|
|
9340
|
-
var
|
|
9362
|
+
var wi = function() {
|
|
9341
9363
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
9342
9364
|
return t("div", {
|
|
9343
9365
|
staticClass: "my-process-designer"
|
|
@@ -9693,13 +9715,13 @@ var Ai = function() {
|
|
|
9693
9715
|
code: e.previewResult
|
|
9694
9716
|
}
|
|
9695
9717
|
})], 1)], 1);
|
|
9696
|
-
},
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
const
|
|
9718
|
+
}, $i = [];
|
|
9719
|
+
Te.registerLanguage("xml", et);
|
|
9720
|
+
Te.registerLanguage("json", tt);
|
|
9721
|
+
const Li = {
|
|
9700
9722
|
name: "ProcessDesigner",
|
|
9701
9723
|
components: {
|
|
9702
|
-
HighlightJS:
|
|
9724
|
+
HighlightJS: nt
|
|
9703
9725
|
},
|
|
9704
9726
|
componentName: "MyProcessDesigner",
|
|
9705
9727
|
props: {
|
|
@@ -9769,12 +9791,12 @@ const $i = {
|
|
|
9769
9791
|
additionalModules() {
|
|
9770
9792
|
const e = [];
|
|
9771
9793
|
if (this.onlyCustomizeAddi)
|
|
9772
|
-
return
|
|
9773
|
-
|
|
9794
|
+
return te(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
9795
|
+
te(this.additionalModel) ? e.push(...this.additionalModel) : this.additionalModel && e.push(this.additionalModel);
|
|
9774
9796
|
const i = {
|
|
9775
|
-
translate: ["value",
|
|
9797
|
+
translate: ["value", Hn(this.translations || Wn)]
|
|
9776
9798
|
};
|
|
9777
|
-
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;
|
|
9778
9800
|
},
|
|
9779
9801
|
moddleExtensions() {
|
|
9780
9802
|
const e = {};
|
|
@@ -9783,12 +9805,12 @@ const $i = {
|
|
|
9783
9805
|
if (this.moddleExtension)
|
|
9784
9806
|
for (const i in this.moddleExtension)
|
|
9785
9807
|
e[i] = this.moddleExtension[i];
|
|
9786
|
-
return this.prefix === "activiti" && (e.activiti = T(f({},
|
|
9787
|
-
types: [...ve.types, ...this.extendTypes || []]
|
|
9788
|
-
})), this.prefix === "flowable" && (e.flowable = T(f({}, ge), {
|
|
9808
|
+
return this.prefix === "activiti" && (e.activiti = T(f({}, ge), {
|
|
9789
9809
|
types: [...ge.types, ...this.extendTypes || []]
|
|
9790
|
-
})), this.prefix === "
|
|
9791
|
-
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 || []]
|
|
9792
9814
|
})), e;
|
|
9793
9815
|
}
|
|
9794
9816
|
},
|
|
@@ -9799,7 +9821,7 @@ const $i = {
|
|
|
9799
9821
|
},
|
|
9800
9822
|
methods: {
|
|
9801
9823
|
initBpmnModeler() {
|
|
9802
|
-
this.bpmnModeler || (this.bpmnModeler = new
|
|
9824
|
+
this.bpmnModeler || (this.bpmnModeler = new We(f({
|
|
9803
9825
|
container: this.$refs["bpmn-canvas"],
|
|
9804
9826
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
9805
9827
|
additionalModules: this.additionalModules,
|
|
@@ -9830,7 +9852,7 @@ const $i = {
|
|
|
9830
9852
|
/* 创建新的流程图 */
|
|
9831
9853
|
createNewDiagram(e) {
|
|
9832
9854
|
return u(this, null, function* () {
|
|
9833
|
-
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);
|
|
9834
9856
|
try {
|
|
9835
9857
|
const { warnings: s } = yield this.bpmnModeler.importXML(n);
|
|
9836
9858
|
this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), s != null && s.length;
|
|
@@ -9950,32 +9972,32 @@ const $i = {
|
|
|
9950
9972
|
});
|
|
9951
9973
|
},
|
|
9952
9974
|
previewProcessJson() {
|
|
9953
|
-
const e = new
|
|
9975
|
+
const e = new Qe();
|
|
9954
9976
|
this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: i }) => {
|
|
9955
9977
|
const { definitions: t } = e.xml2js(i);
|
|
9956
9978
|
t ? this.previewResult = JSON.stringify(t, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
|
|
9957
9979
|
});
|
|
9958
9980
|
}
|
|
9959
9981
|
}
|
|
9960
|
-
},
|
|
9961
|
-
var
|
|
9962
|
-
|
|
9963
|
-
Ai,
|
|
9982
|
+
}, Fe = {};
|
|
9983
|
+
var Mi = /* @__PURE__ */ h(
|
|
9984
|
+
Li,
|
|
9964
9985
|
wi,
|
|
9986
|
+
$i,
|
|
9965
9987
|
!1,
|
|
9966
|
-
|
|
9988
|
+
Oi,
|
|
9967
9989
|
null,
|
|
9968
9990
|
null,
|
|
9969
9991
|
null
|
|
9970
9992
|
);
|
|
9971
|
-
function
|
|
9972
|
-
for (let i in
|
|
9973
|
-
this[i] =
|
|
9993
|
+
function Oi(e) {
|
|
9994
|
+
for (let i in Fe)
|
|
9995
|
+
this[i] = Fe[i];
|
|
9974
9996
|
}
|
|
9975
|
-
const
|
|
9976
|
-
return
|
|
9997
|
+
const Pi = /* @__PURE__ */ function() {
|
|
9998
|
+
return Mi.exports;
|
|
9977
9999
|
}();
|
|
9978
|
-
var
|
|
10000
|
+
var Di = function() {
|
|
9979
10001
|
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
9980
10002
|
return t("div", {
|
|
9981
10003
|
staticClass: "flow-designer"
|
|
@@ -10024,6 +10046,17 @@ var Pi = function() {
|
|
|
10024
10046
|
type: o
|
|
10025
10047
|
})];
|
|
10026
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
|
+
}
|
|
10027
10060
|
}, {
|
|
10028
10061
|
key: "extend",
|
|
10029
10062
|
fn: function(n) {
|
|
@@ -10037,12 +10070,12 @@ var Pi = function() {
|
|
|
10037
10070
|
}
|
|
10038
10071
|
}], null, !0)
|
|
10039
10072
|
})], 1);
|
|
10040
|
-
},
|
|
10041
|
-
const
|
|
10073
|
+
}, Bi = [];
|
|
10074
|
+
const ji = {
|
|
10042
10075
|
name: "FlowDesigner",
|
|
10043
10076
|
components: {
|
|
10044
|
-
PropertiesPanel:
|
|
10045
|
-
ProcessDesigner:
|
|
10077
|
+
PropertiesPanel: Jn,
|
|
10078
|
+
ProcessDesigner: Pi
|
|
10046
10079
|
},
|
|
10047
10080
|
props: {
|
|
10048
10081
|
value: String,
|
|
@@ -10061,9 +10094,9 @@ const Bi = {
|
|
|
10061
10094
|
prefix: "flowable",
|
|
10062
10095
|
headerButtonSize: "mini",
|
|
10063
10096
|
additionalModel: [
|
|
10064
|
-
nt,
|
|
10065
10097
|
it,
|
|
10066
|
-
|
|
10098
|
+
st,
|
|
10099
|
+
ut
|
|
10067
10100
|
]
|
|
10068
10101
|
}
|
|
10069
10102
|
};
|
|
@@ -10073,11 +10106,11 @@ const Bi = {
|
|
|
10073
10106
|
this.modeler = e;
|
|
10074
10107
|
}
|
|
10075
10108
|
}
|
|
10076
|
-
},
|
|
10077
|
-
var
|
|
10078
|
-
|
|
10079
|
-
Pi,
|
|
10109
|
+
}, xe = {};
|
|
10110
|
+
var Ri = /* @__PURE__ */ h(
|
|
10111
|
+
ji,
|
|
10080
10112
|
Di,
|
|
10113
|
+
Bi,
|
|
10081
10114
|
!1,
|
|
10082
10115
|
Vi,
|
|
10083
10116
|
null,
|
|
@@ -10085,12 +10118,12 @@ var ji = /* @__PURE__ */ h(
|
|
|
10085
10118
|
null
|
|
10086
10119
|
);
|
|
10087
10120
|
function Vi(e) {
|
|
10088
|
-
for (let i in
|
|
10089
|
-
this[i] =
|
|
10121
|
+
for (let i in xe)
|
|
10122
|
+
this[i] = xe[i];
|
|
10090
10123
|
}
|
|
10091
|
-
const
|
|
10092
|
-
return
|
|
10124
|
+
const us = /* @__PURE__ */ function() {
|
|
10125
|
+
return Ri.exports;
|
|
10093
10126
|
}();
|
|
10094
10127
|
export {
|
|
10095
|
-
|
|
10128
|
+
us as default
|
|
10096
10129
|
};
|