@web-utils/component 3.3.14 → 3.3.16
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/address-input/index.mjs +1 -3
- package/affix/index.mjs +4 -6
- package/aside-menu/index.mjs +8 -10
- package/avatar/index.mjs +1 -3
- package/awesome-button/index.mjs +20 -22
- package/capsule-tab/index.mjs +4 -6
- package/card/index.mjs +4 -6
- package/carousel/index.mjs +1 -3
- package/chat/index.mjs +2 -4
- package/chunk-file-uploader/index.mjs +1 -3
- package/chunks/{FormTemp.BO_zCjBT.mjs → FormTemp.Cf9d5N_a.mjs} +7 -9
- package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +10 -0
- package/chunks/{dataformat.J6EgqBfr.mjs → dataformat.skVZSF57.mjs} +1 -1
- package/chunks/{dic.6ODiMBAw.mjs → dic.28d_-7EJ.mjs} +1 -1
- package/chunks/{event.ChkcZtyR.mjs → event.m1ZDHbkO.mjs} +2 -2
- package/chunks/{init.BbPaCwke.mjs → init.DBM2D2IY.mjs} +2 -2
- package/chunks/json-beautifier.vs8mCOxd.mjs +124 -0
- package/chunks/{util.ThVOTZAO.mjs → util.B_LEdJSZ.mjs} +55 -55
- package/code-mirror-editor/index.mjs +1 -3
- package/color-picker/index.mjs +4 -6
- package/comment/index.mjs +1 -3
- package/confirm-button/index.mjs +5 -7
- package/confirmable/index.mjs +5 -7
- package/context-menu/index.mjs +1 -3
- package/count-up/index.mjs +4 -6
- package/custom-scrollbar/index.mjs +1 -3
- package/data-box/index.mjs +5 -7
- package/data-card/index.mjs +4 -6
- package/data-cardtext/index.mjs +1 -3
- package/data-display/index.mjs +6 -8
- package/data-icons/index.mjs +4 -6
- package/data-imgtext/index.mjs +6 -8
- package/data-operatext/index.mjs +3 -5
- package/data-panel/index.mjs +5 -7
- package/data-pay/index.mjs +7 -9
- package/data-price/index.mjs +3 -5
- package/data-progress/index.mjs +1 -3
- package/data-rotate/index.mjs +3 -5
- package/data-table-picker/index.mjs +1 -3
- package/data-tabs/index.mjs +3 -5
- package/dialog-form/index.mjs +2 -4
- package/dynamic-table/index.mjs +1 -3
- package/e-charts/index.mjs +1 -3
- package/easy-popup/index.mjs +7 -9
- package/editable-progress/index.mjs +6 -8
- package/editable-tree/index.mjs +1 -3
- package/egd-collapse/index.mjs +4 -6
- package/egd-collapse-item/index.mjs +1 -3
- package/element-dialog/index.mjs +5 -7
- package/empty-view/index.mjs +3 -5
- package/error-view/index.mjs +3 -5
- package/flex-column/index.mjs +4 -6
- package/flex-item/index.mjs +1 -3
- package/flex-row/index.mjs +4 -6
- package/flex-scroller/index.mjs +6 -8
- package/flow/index.mjs +2 -4
- package/flow-designer/index.mjs +155 -186
- package/flow-node/index.mjs +8 -10
- package/flow-viewer/index.mjs +1 -3
- package/form-button/index.mjs +5 -7
- package/form-cascader/index.mjs +1 -3
- package/form-checkbox-group/index.mjs +4 -6
- package/form-date-picker/index.mjs +1 -3
- package/form-holder/index.mjs +11 -13
- package/form-input/index.mjs +5 -7
- package/form-input-email/index.mjs +6 -8
- package/form-input-id-card/index.mjs +13 -15
- package/form-input-number/index.mjs +5 -7
- package/form-input-phone-number/index.mjs +9 -11
- package/form-input-tag/index.mjs +6 -8
- package/form-input-time/index.mjs +7 -9
- package/form-item-config-provider/index.mjs +4 -6
- package/form-radio-group/index.mjs +22 -24
- package/form-select/index.mjs +17 -19
- package/form-switch/index.mjs +5 -7
- package/form-textarea/index.mjs +1 -3
- package/form-view/index.mjs +1 -3
- package/fy-array/index.mjs +4 -6
- package/fy-article/index.mjs +4 -6
- package/fy-cascader/index.mjs +2 -4
- package/fy-checkbox/index.mjs +12 -14
- package/fy-code/index.mjs +6 -8
- package/fy-curd/index.mjs +6 -32
- package/fy-date/index.mjs +6 -8
- package/fy-draggable/index.mjs +2 -4
- package/fy-dynamic/index.mjs +3 -5
- package/fy-empty/index.mjs +2 -4
- package/fy-form/index.mjs +6 -12
- package/fy-form-design/index.mjs +95 -151
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +5 -7
- package/fy-input-color/index.mjs +9 -11
- package/fy-input-icon/index.mjs +3 -5
- package/fy-input-map/index.mjs +2 -4
- package/fy-input-number/index.mjs +5 -7
- package/fy-input-table/index.mjs +2 -4
- package/fy-input-tree/index.mjs +2 -4
- package/fy-progress/index.mjs +3 -5
- package/fy-radio/index.mjs +4 -6
- package/fy-rate/index.mjs +5 -7
- package/fy-select/index.mjs +4 -6
- package/fy-slider/index.mjs +7 -9
- package/fy-switch/index.mjs +3 -5
- package/fy-tabs/index.mjs +5 -7
- package/fy-time/index.mjs +5 -7
- package/fy-title/index.mjs +5 -7
- package/fy-tree/index.mjs +2 -4
- package/fy-u-editor/index.mjs +2 -4
- package/fy-upload/index.mjs +3 -5
- package/guide-steps/index.mjs +1 -3
- package/highlight-j-s/index.mjs +8 -10
- package/icon-card/index.mjs +4 -6
- package/icon-temp/index.mjs +6 -8
- package/iframe-window/index.mjs +6 -8
- package/image-cropper/index.mjs +5 -7
- package/image-preview/index.mjs +2 -4
- package/image-viewer/index.mjs +4 -6
- package/input-number/index.mjs +1 -3
- package/input-number-range/index.mjs +11 -13
- package/keep-view-alive/index.mjs +12 -14
- package/keyboard/index.mjs +1 -3
- package/license/index.mjs +19 -21
- package/loading-view/index.mjs +3 -5
- package/login/index.mjs +2 -4
- package/monaco-editor/index.mjs +2 -4
- package/name-avatar/index.mjs +4 -6
- package/nav-bar/index.mjs +3 -5
- package/not-implement/index.mjs +3 -5
- package/notice/index.mjs +1 -3
- package/package.json +8 -8
- package/page/index.mjs +6 -8
- package/page-header/index.mjs +4 -6
- package/page-index/index.mjs +17 -19
- package/page-index-top/index.mjs +11 -13
- package/page-skeleton/index.mjs +6 -8
- package/page-skeleton-new/index.mjs +1 -3
- package/pageable-table/index.mjs +8 -10
- package/pageable-view/index.mjs +24 -26
- package/photo-swipe/index.mjs +7 -9
- package/present-view/index.mjs +1 -3
- package/queue/index.mjs +4 -6
- package/record-video/index.mjs +4 -6
- package/resize-observer/index.mjs +4 -6
- package/search/index.mjs +6 -8
- package/search-popover/index.mjs +2 -4
- package/sign/index.mjs +2 -4
- package/sign-panel/index.mjs +5 -7
- package/skeleton/index.mjs +5 -7
- package/split-pane/index.mjs +1 -5
- package/stateful/index.mjs +4 -6
- package/static-pageable-table/index.mjs +8 -10
- package/swiper/index.mjs +4 -6
- package/tab/index.mjs +1 -3
- package/tab-item/index.mjs +1 -3
- package/table-column/index.mjs +1 -3
- package/table-view/index.mjs +1 -3
- package/tag-render/index.mjs +16 -18
- package/text-ellipsis/index.mjs +6 -8
- package/tinymce-editor/index.mjs +1 -5
- package/toolbar-button/index.mjs +8 -10
- package/verify/index.mjs +8 -10
- package/vue-cron/index.mjs +1 -3
- package/vue-qr-code/index.mjs +9 -11
- package/vue-quill-editor/index.mjs +1 -3
- package/vue-tags-input/index.mjs +12 -14
- package/vue-tree-select/index.mjs +1 -27
- package/vue-video-player/index.mjs +1 -3
- package/watermark/index.mjs +14 -16
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +8 -10
- package/chunks/_plugin-vue2_normalizer.YT9tSeEj.mjs +0 -32
- package/chunks/json-beautifier.CvdU9XNm.mjs +0 -126
package/flow-designer/index.mjs
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ve = Object.defineProperty, Ee = Object.defineProperties;
|
|
2
|
+
var Fe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Q = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var ee = (n, e, t) => e in n ?
|
|
4
|
+
var xe = Object.prototype.hasOwnProperty, Se = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ee = (n, e, t) => e in n ? ve(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, d = (n, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
xe.call(e, t) && ee(n, t, e[t]);
|
|
8
8
|
if (Q)
|
|
9
9
|
for (var t of Q(e))
|
|
10
|
-
|
|
10
|
+
Se.call(e, t) && ee(n, t, e[t]);
|
|
11
11
|
return n;
|
|
12
|
-
}, T = (n, e) =>
|
|
13
|
-
var
|
|
12
|
+
}, T = (n, e) => Ee(n, Fe(e));
|
|
13
|
+
var c = (n, e, t) => new Promise((i, s) => {
|
|
14
14
|
var a = (p) => {
|
|
15
15
|
try {
|
|
16
16
|
o(t.next(p));
|
|
17
|
-
} catch (
|
|
18
|
-
s(
|
|
17
|
+
} catch (E) {
|
|
18
|
+
s(E);
|
|
19
19
|
}
|
|
20
20
|
}, r = (p) => {
|
|
21
21
|
try {
|
|
22
22
|
o(t.throw(p));
|
|
23
|
-
} catch (
|
|
24
|
-
s(
|
|
23
|
+
} catch (E) {
|
|
24
|
+
s(E);
|
|
25
25
|
}
|
|
26
26
|
}, o = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(a, r);
|
|
27
27
|
o((t = t.apply(n, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { assign as y, isArray as
|
|
29
|
+
import { assign as y, isArray as Te, forEach as Ce, isObject as ke, isFunction as _e, some as I } from "min-dash";
|
|
30
30
|
import { is as R } from "bpmn-js/lib/util/ModelUtil";
|
|
31
|
-
import { isExpanded as
|
|
31
|
+
import { isExpanded as Ie, isEventSubProcess as Ae } from "bpmn-js/lib/util/DiUtil";
|
|
32
32
|
import { isAny as N } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
33
|
-
import { getChildLanes as
|
|
34
|
-
import { hasPrimaryModifier as
|
|
35
|
-
import
|
|
33
|
+
import { getChildLanes as we } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
34
|
+
import { hasPrimaryModifier as $e } from "diagram-js/lib/util/Mouse";
|
|
35
|
+
import le from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
36
36
|
import K from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
37
|
-
import { getMid as
|
|
38
|
-
import { fastClone as v, isBlank as
|
|
39
|
-
import { n as h } from "../chunks/_plugin-vue2_normalizer.
|
|
37
|
+
import { getMid as Le, asTRBL as Oe } from "diagram-js/lib/layout/LayoutUtil";
|
|
38
|
+
import { fastClone as v, isBlank as Pe, capitalize as Me, isArray as te } from "@web-utils/core";
|
|
39
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
40
40
|
import "bpmn-js/dist/assets/bpmn-js.css";
|
|
41
41
|
import "bpmn-js/dist/assets/diagram-js.css";
|
|
42
42
|
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
|
|
43
43
|
import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
44
|
+
import De from "bpmn-js/lib/Modeler";
|
|
45
|
+
import Be from "bpmn-js/lib/features/drilldown/index.js";
|
|
46
|
+
import Ve from "bpmn-js-token-simulation";
|
|
47
|
+
import ne from "x2js";
|
|
48
|
+
import pe from "highlight.js/lib/core";
|
|
49
49
|
import Re from "highlight.js/lib/languages/xml";
|
|
50
50
|
import ze from "highlight.js/lib/languages/json";
|
|
51
51
|
import je from "../highlight-j-s/index.mjs";
|
|
52
52
|
import "../highlight-j-s/style.css";
|
|
53
|
-
function J(n, e, t, i, s, a, r, o, p,
|
|
54
|
-
n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = s, this._elementFactory = a, this._connect = r, this._create = o, this._popupMenu = p, this._canvas =
|
|
55
|
-
const C =
|
|
56
|
-
if (
|
|
53
|
+
function J(n, e, t, i, s, a, r, o, p, E, m, l, u) {
|
|
54
|
+
n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = s, this._elementFactory = a, this._connect = r, this._create = o, this._popupMenu = p, this._canvas = E, this._rules = m, this._translate = l, n.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(F) {
|
|
55
|
+
const C = F.context.shape;
|
|
56
|
+
if (!$e(F) || !i.isOpen(C))
|
|
57
57
|
return;
|
|
58
58
|
const f = i.getEntries(C);
|
|
59
|
-
f.replace && f.replace.action.click(
|
|
59
|
+
f.replace && f.replace.action.click(F, C);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
J.$inject = [
|
|
@@ -75,11 +75,11 @@ J.$inject = [
|
|
|
75
75
|
"elementRegistry"
|
|
76
76
|
];
|
|
77
77
|
J.prototype.getContextPadEntries = function(n) {
|
|
78
|
-
const e = this._contextPad, t = this._modeling, i = this._elementFactory, s = this._connect, a = this._create, r = this._popupMenu, o = this._canvas, p = this._rules,
|
|
78
|
+
const e = this._contextPad, t = this._modeling, i = this._elementFactory, s = this._connect, a = this._create, r = this._popupMenu, o = this._canvas, p = this._rules, E = this._autoPlace, m = this._translate, l = {};
|
|
79
79
|
if (n.type === "label")
|
|
80
80
|
return l;
|
|
81
|
-
const
|
|
82
|
-
function
|
|
81
|
+
const u = n.businessObject;
|
|
82
|
+
function F(b, S) {
|
|
83
83
|
s.start(b, S);
|
|
84
84
|
}
|
|
85
85
|
function O() {
|
|
@@ -106,9 +106,9 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
106
106
|
title: g,
|
|
107
107
|
action: {
|
|
108
108
|
dragstart: $,
|
|
109
|
-
click:
|
|
109
|
+
click: E ? function(D, B) {
|
|
110
110
|
const V = i.createShape(y({ type: b }, w));
|
|
111
|
-
|
|
111
|
+
E.append(B, V);
|
|
112
112
|
} : $
|
|
113
113
|
}
|
|
114
114
|
};
|
|
@@ -118,8 +118,8 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
118
118
|
t.splitLane(g, b), e.open(g, !0);
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
if (N(
|
|
122
|
-
const b =
|
|
121
|
+
if (N(u, ["bpmn:Lane", "bpmn:Participant"]) && Ie(u)) {
|
|
122
|
+
const b = we(n);
|
|
123
123
|
y(l, {
|
|
124
124
|
"lane-insert-above": {
|
|
125
125
|
group: "lane-insert-above",
|
|
@@ -162,7 +162,7 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
R(
|
|
165
|
+
R(u, "bpmn:FlowNode") && (R(u, "bpmn:EventBasedGateway") ? y(l, {
|
|
166
166
|
"append.receive-task": f("bpmn:ReceiveTask", "bpmn-icon-receive-task", m("Append ReceiveTask")),
|
|
167
167
|
"append.message-intermediate-event": f(
|
|
168
168
|
"bpmn:IntermediateCatchEvent",
|
|
@@ -188,11 +188,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
188
188
|
m("Append SignalIntermediateCatchEvent"),
|
|
189
189
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
190
190
|
)
|
|
191
|
-
}) :
|
|
191
|
+
}) : ie(u, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
192
192
|
"append.compensation-activity": f("bpmn:Task", "bpmn-icon-task", m("Append compensation activity"), {
|
|
193
193
|
isForCompensation: !0
|
|
194
194
|
})
|
|
195
|
-
}) : !R(
|
|
195
|
+
}) : !R(u, "bpmn:EndEvent") && !u.isForCompensation && !ie(u, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ae(u) && y(l, {
|
|
196
196
|
"append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", m("Append EndEvent")),
|
|
197
197
|
"append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", m("Append Gateway")),
|
|
198
198
|
"append.append-task": f("bpmn:UserTask", "bpmn-icon-user-task", m("Append Task")),
|
|
@@ -215,32 +215,32 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
}), N(
|
|
218
|
+
}), N(u, ["bpmn:FlowNode", "bpmn:InteractionNode", "bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
|
|
219
219
|
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
|
|
220
220
|
connect: {
|
|
221
221
|
group: "connect",
|
|
222
222
|
className: "bpmn-icon-connection-multi",
|
|
223
|
-
title: m(`Connect using ${
|
|
223
|
+
title: m(`Connect using ${u.isForCompensation ? "" : "Sequence/MessageFlow or "}Association`),
|
|
224
224
|
action: {
|
|
225
|
-
click:
|
|
226
|
-
dragstart:
|
|
225
|
+
click: F,
|
|
226
|
+
dragstart: F
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
}), N(
|
|
229
|
+
}), N(u, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
|
|
230
230
|
connect: {
|
|
231
231
|
group: "connect",
|
|
232
232
|
className: "bpmn-icon-connection-multi",
|
|
233
233
|
title: m("Connect using DataInputAssociation"),
|
|
234
234
|
action: {
|
|
235
|
-
click:
|
|
236
|
-
dragstart:
|
|
235
|
+
click: F,
|
|
236
|
+
dragstart: F
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
}), R(
|
|
239
|
+
}), R(u, "bpmn:Group") && y(l, {
|
|
240
240
|
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
241
241
|
});
|
|
242
242
|
let k = p.allowed("elements.delete", { elements: [n] });
|
|
243
|
-
return
|
|
243
|
+
return Te(k) && (k = k[0] === n), k && y(l, {
|
|
244
244
|
delete: {
|
|
245
245
|
group: "edit",
|
|
246
246
|
className: "bpmn-icon-trash",
|
|
@@ -251,11 +251,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
251
251
|
}
|
|
252
252
|
}), l;
|
|
253
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function ie(n, e, t) {
|
|
255
255
|
const i = n.$instanceOf(e);
|
|
256
256
|
let s = !1;
|
|
257
257
|
const a = n.eventDefinitions || [];
|
|
258
|
-
return
|
|
258
|
+
return Ce(a, function(r) {
|
|
259
259
|
r.$type === t && (s = !0);
|
|
260
260
|
}), i && s;
|
|
261
261
|
}
|
|
@@ -264,22 +264,22 @@ const Ue = {
|
|
|
264
264
|
contextPadProvider: ["type", J]
|
|
265
265
|
};
|
|
266
266
|
function L(n, e, t, i, s, a, r, o, p) {
|
|
267
|
-
|
|
267
|
+
le.call(this, n, e, t, i, s, a, r, o, p, 2e3), this._create = e, this._elementFactory = t, this._spaceTool = i, this._lassoTool = s, this._handTool = a, this._globalConnect = r, this._moddle = o, this._translate = p;
|
|
268
268
|
}
|
|
269
269
|
const Z = function() {
|
|
270
270
|
};
|
|
271
|
-
Z.prototype =
|
|
271
|
+
Z.prototype = le.prototype;
|
|
272
272
|
Z.prototype.getPaletteEntries = function() {
|
|
273
273
|
const n = {}, e = this._create, t = this._elementFactory, i = this._spaceTool, s = this._lassoTool, a = this._handTool, r = this._globalConnect, o = this._translate;
|
|
274
|
-
function p(l,
|
|
274
|
+
function p(l, u, F, O, C) {
|
|
275
275
|
function f(k) {
|
|
276
276
|
const b = t.createShape(y({ type: l }, C));
|
|
277
|
-
l === "bpmn:UserTask" && (b.businessObject.candidateUsers = "${handlers}"),
|
|
277
|
+
l === "bpmn:UserTask" && (b.businessObject.candidateUsers = "${handlers}"), e.start(k, b);
|
|
278
278
|
}
|
|
279
279
|
const P = l.replace(/^bpmn:/, "");
|
|
280
280
|
return {
|
|
281
|
-
group:
|
|
282
|
-
className:
|
|
281
|
+
group: u,
|
|
282
|
+
className: F,
|
|
283
283
|
title: O || o("Create {type}", { type: P }),
|
|
284
284
|
action: {
|
|
285
285
|
dragstart: f,
|
|
@@ -287,21 +287,21 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
const
|
|
290
|
+
function E(l) {
|
|
291
|
+
const u = t.createShape({
|
|
292
292
|
type: "bpmn:SubProcess",
|
|
293
293
|
x: 0,
|
|
294
294
|
y: 0,
|
|
295
295
|
isExpanded: !0
|
|
296
|
-
}),
|
|
296
|
+
}), F = t.createShape({
|
|
297
297
|
type: "bpmn:StartEvent",
|
|
298
298
|
x: 40,
|
|
299
299
|
y: 82,
|
|
300
|
-
parent:
|
|
300
|
+
parent: u
|
|
301
301
|
});
|
|
302
|
-
e.start(l, [
|
|
302
|
+
e.start(l, [u, F], {
|
|
303
303
|
hints: {
|
|
304
|
-
autoSelect: [
|
|
304
|
+
autoSelect: [F]
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
307
|
}
|
|
@@ -369,8 +369,8 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
369
369
|
className: "bpmn-icon-subprocess-expanded",
|
|
370
370
|
title: o("Create expanded SubProcess"),
|
|
371
371
|
action: {
|
|
372
|
-
dragstart:
|
|
373
|
-
click:
|
|
372
|
+
dragstart: E,
|
|
373
|
+
click: E
|
|
374
374
|
}
|
|
375
375
|
},
|
|
376
376
|
"create.participant-expanded": {
|
|
@@ -392,7 +392,7 @@ const Ne = {
|
|
|
392
392
|
__init__: ["customPalette"],
|
|
393
393
|
customPalette: ["type", L]
|
|
394
394
|
};
|
|
395
|
-
function
|
|
395
|
+
function me(n, e) {
|
|
396
396
|
K.call(this, n, e, 3e3), n.on("autoPlace", 3e3, function(t) {
|
|
397
397
|
const i = t.shape, s = t.source;
|
|
398
398
|
return Je(s, i);
|
|
@@ -441,13 +441,13 @@ function Je(n, e, t) {
|
|
|
441
441
|
y: a.bottom + i + e.height / 2
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const ce = function() {
|
|
445
445
|
};
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
446
|
+
ce.prototype = K.prototype;
|
|
447
|
+
me.prototype = new ce();
|
|
448
|
+
me.prototype.constructor = K;
|
|
449
449
|
const Ze = 200, He = 100;
|
|
450
|
-
function
|
|
450
|
+
function ue(n, e, t) {
|
|
451
451
|
n.on("autoPlace", He, function(i) {
|
|
452
452
|
const s = i.shape, a = i.source;
|
|
453
453
|
return We(a, s);
|
|
@@ -468,19 +468,19 @@ function ce(n, e, t) {
|
|
|
468
468
|
}), o;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
|
|
471
|
+
ue.$inject = ["eventBus", "modeling", "canvas"];
|
|
472
472
|
function We(n, e) {
|
|
473
|
-
const t = Ze, i =
|
|
473
|
+
const t = Ze, i = Le(n);
|
|
474
474
|
return {
|
|
475
|
-
x:
|
|
475
|
+
x: Oe(n).right + t + e.width / 2,
|
|
476
476
|
y: i.y
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
const Xe = {
|
|
480
480
|
__init__: ["autoPlaceSelectionBehavior"],
|
|
481
|
-
autoPlace: ["type",
|
|
481
|
+
autoPlace: ["type", ue]
|
|
482
482
|
};
|
|
483
|
-
function
|
|
483
|
+
function de(n, e, t, i) {
|
|
484
484
|
const s = /* @__PURE__ */ Object.create(null);
|
|
485
485
|
switch (s.event = e.event, t && (s.id = e.id), e.listenerType) {
|
|
486
486
|
case "scriptListener":
|
|
@@ -524,7 +524,7 @@ function U(n, e, t) {
|
|
|
524
524
|
}
|
|
525
525
|
function et(n = 8, e) {
|
|
526
526
|
let t = "";
|
|
527
|
-
const i =
|
|
527
|
+
const i = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
528
528
|
for (let s = n; s > 0; --s)
|
|
529
529
|
t += i[Math.floor(Math.random() * i.length)];
|
|
530
530
|
return t;
|
|
@@ -620,8 +620,6 @@ var rt = function() {
|
|
|
620
620
|
at,
|
|
621
621
|
!1,
|
|
622
622
|
null,
|
|
623
|
-
null,
|
|
624
|
-
null,
|
|
625
623
|
null
|
|
626
624
|
);
|
|
627
625
|
const lt = ot.exports, pt = {
|
|
@@ -640,7 +638,7 @@ const lt = ot.exports, pt = {
|
|
|
640
638
|
id: {
|
|
641
639
|
immediate: !0,
|
|
642
640
|
handler() {
|
|
643
|
-
if (
|
|
641
|
+
if (Pe(this.element))
|
|
644
642
|
this.documentation = "";
|
|
645
643
|
else {
|
|
646
644
|
const {
|
|
@@ -676,8 +674,6 @@ var mt = function() {
|
|
|
676
674
|
ct,
|
|
677
675
|
!1,
|
|
678
676
|
null,
|
|
679
|
-
null,
|
|
680
|
-
null,
|
|
681
677
|
null
|
|
682
678
|
);
|
|
683
679
|
const dt = ut.exports, ft = {
|
|
@@ -762,8 +758,6 @@ var bt = function() {
|
|
|
762
758
|
yt,
|
|
763
759
|
!1,
|
|
764
760
|
null,
|
|
765
|
-
null,
|
|
766
|
-
null,
|
|
767
761
|
null
|
|
768
762
|
);
|
|
769
763
|
const gt = ht.exports, vt = {
|
|
@@ -842,8 +836,6 @@ var Et = function() {
|
|
|
842
836
|
Ft,
|
|
843
837
|
!1,
|
|
844
838
|
null,
|
|
845
|
-
null,
|
|
846
|
-
null,
|
|
847
839
|
null
|
|
848
840
|
);
|
|
849
841
|
const St = xt.exports, Tt = {
|
|
@@ -922,8 +914,6 @@ var Ct = function() {
|
|
|
922
914
|
kt,
|
|
923
915
|
!1,
|
|
924
916
|
null,
|
|
925
|
-
null,
|
|
926
|
-
null,
|
|
927
917
|
null
|
|
928
918
|
);
|
|
929
919
|
const It = _t.exports, At = {
|
|
@@ -973,7 +963,7 @@ const It = _t.exports, At = {
|
|
|
973
963
|
},
|
|
974
964
|
methods: {
|
|
975
965
|
changeTaskAsync() {
|
|
976
|
-
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element,
|
|
966
|
+
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, d({}, this.taskConfigForm));
|
|
977
967
|
}
|
|
978
968
|
}
|
|
979
969
|
};
|
|
@@ -994,8 +984,6 @@ var wt = function() {
|
|
|
994
984
|
$t,
|
|
995
985
|
!1,
|
|
996
986
|
null,
|
|
997
|
-
null,
|
|
998
|
-
null,
|
|
999
987
|
null
|
|
1000
988
|
);
|
|
1001
989
|
const Ot = Lt.exports, Pt = {
|
|
@@ -1046,7 +1034,7 @@ const Ot = Lt.exports, Pt = {
|
|
|
1046
1034
|
this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
|
|
1047
1035
|
return;
|
|
1048
1036
|
}
|
|
1049
|
-
n.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(
|
|
1037
|
+
n.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(d(d({}, this.defaultLoopInstanceForm), n.loopCharacteristics), {
|
|
1050
1038
|
completionCondition: (i = (t = (e = n.loopCharacteristics) == null ? void 0 : e.completionCondition) == null ? void 0 : t.body) != null ? i : "",
|
|
1051
1039
|
loopCardinality: (r = (a = (s = n.loopCharacteristics) == null ? void 0 : s.loopCardinality) == null ? void 0 : a.body) != null ? r : ""
|
|
1052
1040
|
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, n.loopCharacteristics.extensionElements && n.loopCharacteristics.extensionElements.values && n.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", n.loopCharacteristics.extensionElements.values[0].body);
|
|
@@ -1170,8 +1158,6 @@ var Mt = function() {
|
|
|
1170
1158
|
Dt,
|
|
1171
1159
|
!1,
|
|
1172
1160
|
null,
|
|
1173
|
-
null,
|
|
1174
|
-
null,
|
|
1175
1161
|
null
|
|
1176
1162
|
);
|
|
1177
1163
|
const Vt = Bt.exports, Rt = {
|
|
@@ -1190,7 +1176,7 @@ const Vt = Bt.exports, Rt = {
|
|
|
1190
1176
|
id: {
|
|
1191
1177
|
immediate: !0,
|
|
1192
1178
|
handler() {
|
|
1193
|
-
return
|
|
1179
|
+
return c(this, null, function* () {
|
|
1194
1180
|
yield this.$nextTick(), this.resetFlowCondition();
|
|
1195
1181
|
});
|
|
1196
1182
|
}
|
|
@@ -1207,7 +1193,7 @@ const Vt = Bt.exports, Rt = {
|
|
|
1207
1193
|
this.flowConditionForm = { type: "normal" };
|
|
1208
1194
|
else {
|
|
1209
1195
|
const n = this.element.businessObject.conditionExpression;
|
|
1210
|
-
if (this.flowConditionForm = T(
|
|
1196
|
+
if (this.flowConditionForm = T(d({}, n), { type: "condition" }), this.flowConditionForm.resource) {
|
|
1211
1197
|
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
|
|
1212
1198
|
return;
|
|
1213
1199
|
}
|
|
@@ -1271,8 +1257,6 @@ var zt = function() {
|
|
|
1271
1257
|
jt,
|
|
1272
1258
|
!1,
|
|
1273
1259
|
null,
|
|
1274
|
-
null,
|
|
1275
|
-
null,
|
|
1276
1260
|
null
|
|
1277
1261
|
);
|
|
1278
1262
|
const Nt = Ut.exports, Gt = {
|
|
@@ -1300,7 +1284,7 @@ const Nt = Ut.exports, Gt = {
|
|
|
1300
1284
|
methods: {
|
|
1301
1285
|
initDataList() {
|
|
1302
1286
|
this.rootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((n) => {
|
|
1303
|
-
n.$type === "bpmn:Message" && (this.messageIdMap[n.id] = !0, this.messageList.push(
|
|
1287
|
+
n.$type === "bpmn:Message" && (this.messageIdMap[n.id] = !0, this.messageList.push(d({}, n))), n.$type === "bpmn:Signal" && (this.signalIdMap[n.id] = !0, this.signalList.push(d({}, n)));
|
|
1304
1288
|
});
|
|
1305
1289
|
},
|
|
1306
1290
|
openModel(n) {
|
|
@@ -1353,14 +1337,12 @@ var qt = function() {
|
|
|
1353
1337
|
Kt,
|
|
1354
1338
|
!1,
|
|
1355
1339
|
null,
|
|
1356
|
-
null,
|
|
1357
|
-
null,
|
|
1358
1340
|
null
|
|
1359
1341
|
);
|
|
1360
1342
|
const Zt = Jt.exports;
|
|
1361
|
-
function
|
|
1362
|
-
let e =
|
|
1363
|
-
if (n.script && (e = T(
|
|
1343
|
+
function fe(n) {
|
|
1344
|
+
let e = d({}, n);
|
|
1345
|
+
if (n.script && (e = T(d(d({}, n), n.script), {
|
|
1364
1346
|
scriptType: n.script.resource ? "externalScript" : "inlineScript"
|
|
1365
1347
|
})), n.event === "timeout" && n.eventDefinitions && n.eventDefinitions.length) {
|
|
1366
1348
|
let t = "";
|
|
@@ -1370,15 +1352,15 @@ function de(n) {
|
|
|
1370
1352
|
}
|
|
1371
1353
|
return e;
|
|
1372
1354
|
}
|
|
1373
|
-
function
|
|
1355
|
+
function be(n) {
|
|
1374
1356
|
var t, i;
|
|
1375
1357
|
let e;
|
|
1376
|
-
return n.class && (e = "classListener"), n.expression && (e = "expressionListener"), n.delegateExpression && (e = "delegateExpressionListener"), n.script && (e = "scriptListener"), T(
|
|
1377
|
-
fields: (i = n.fields) == null ? void 0 : i.map((s) => T(
|
|
1358
|
+
return n.class && (e = "classListener"), n.expression && (e = "expressionListener"), n.delegateExpression && (e = "delegateExpressionListener"), n.script && (e = "scriptListener"), T(d(d({}, v(n)), (t = n.script) != null ? t : {}), {
|
|
1359
|
+
fields: (i = n.fields) == null ? void 0 : i.map((s) => T(d({}, s), { fieldType: s.expression ? "expression" : "string" })),
|
|
1378
1360
|
listenerType: e
|
|
1379
1361
|
});
|
|
1380
1362
|
}
|
|
1381
|
-
const
|
|
1363
|
+
const ye = {
|
|
1382
1364
|
classListener: "Java 类",
|
|
1383
1365
|
expressionListener: "表达式",
|
|
1384
1366
|
delegateExpressionListener: "代理表达式",
|
|
@@ -1390,7 +1372,7 @@ const be = {
|
|
|
1390
1372
|
delete: "删除",
|
|
1391
1373
|
update: "更新",
|
|
1392
1374
|
timeout: "超时"
|
|
1393
|
-
},
|
|
1375
|
+
}, he = {
|
|
1394
1376
|
string: "字符串",
|
|
1395
1377
|
expression: "表达式"
|
|
1396
1378
|
}, Wt = (n) => ({
|
|
@@ -1405,7 +1387,7 @@ const be = {
|
|
|
1405
1387
|
{
|
|
1406
1388
|
$type: "flowable:Field",
|
|
1407
1389
|
name: "url",
|
|
1408
|
-
string: `${e != null && e.url ? `/${e.url}` : ""}/flow${
|
|
1390
|
+
string: `${e != null && e.url ? `/${e.url}` : ""}/flow${Me(n)}`,
|
|
1409
1391
|
fieldType: "string"
|
|
1410
1392
|
}
|
|
1411
1393
|
], Yt = {
|
|
@@ -1437,8 +1419,8 @@ const be = {
|
|
|
1437
1419
|
// 监听器所在下标,-1 为新增
|
|
1438
1420
|
editingListenerFieldIndex: -1,
|
|
1439
1421
|
// 字段所在下标,-1 为新增
|
|
1440
|
-
listenerTypeObject:
|
|
1441
|
-
fieldTypeObject:
|
|
1422
|
+
listenerTypeObject: ye,
|
|
1423
|
+
fieldTypeObject: he
|
|
1442
1424
|
};
|
|
1443
1425
|
},
|
|
1444
1426
|
computed: {
|
|
@@ -1454,7 +1436,7 @@ const be = {
|
|
|
1454
1436
|
id: {
|
|
1455
1437
|
immediate: !0,
|
|
1456
1438
|
handler(n) {
|
|
1457
|
-
return
|
|
1439
|
+
return c(this, null, function* () {
|
|
1458
1440
|
n && (yield this.$nextTick(), this.resetListenersList());
|
|
1459
1441
|
});
|
|
1460
1442
|
}
|
|
@@ -1463,7 +1445,7 @@ const be = {
|
|
|
1463
1445
|
methods: {
|
|
1464
1446
|
resetListenersList() {
|
|
1465
1447
|
var n, e, t, i;
|
|
1466
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:ExecutionListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) =>
|
|
1448
|
+
this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:ExecutionListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) => be(s));
|
|
1467
1449
|
},
|
|
1468
1450
|
changeFiledType(n) {
|
|
1469
1451
|
n === "string" ? (delete this.listenerFieldForm.expression, this.$set(this.listenerFieldForm, "string", "")) : (delete this.listenerFieldForm.string, this.$set(this.listenerFieldForm, "expression", ""));
|
|
@@ -1477,9 +1459,9 @@ const be = {
|
|
|
1477
1459
|
},
|
|
1478
1460
|
// 打开 监听器详情 侧边栏
|
|
1479
1461
|
openListenerForm(n, e) {
|
|
1480
|
-
return
|
|
1462
|
+
return c(this, null, function* () {
|
|
1481
1463
|
var t;
|
|
1482
|
-
n ? (this.listenerForm =
|
|
1464
|
+
n ? (this.listenerForm = fe(n), this.fieldsListOfListener = n.fields ? n.fields.map((i) => d({}, i)) : [], this.editingListenerIndex = e) : (this.listenerForm = { fields: [] }, this.fieldsListOfListener = [], this.editingListenerIndex = -1), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
1483
1465
|
});
|
|
1484
1466
|
},
|
|
1485
1467
|
// 打开监听器字段编辑弹窗
|
|
@@ -1490,13 +1472,13 @@ const be = {
|
|
|
1490
1472
|
},
|
|
1491
1473
|
// 保存监听器注入字段
|
|
1492
1474
|
saveListenerFiled() {
|
|
1493
|
-
return
|
|
1475
|
+
return c(this, null, function* () {
|
|
1494
1476
|
(yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, yield this.$nextTick(), this.listenerFieldForm = {});
|
|
1495
1477
|
});
|
|
1496
1478
|
},
|
|
1497
1479
|
// 移除监听器字段
|
|
1498
1480
|
removeListenerField(n, e) {
|
|
1499
|
-
return
|
|
1481
|
+
return c(this, null, function* () {
|
|
1500
1482
|
try {
|
|
1501
1483
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(e, 1), this.listenerForm.fields.splice(e, 1);
|
|
1502
1484
|
} catch (t) {
|
|
@@ -1505,7 +1487,7 @@ const be = {
|
|
|
1505
1487
|
},
|
|
1506
1488
|
// 移除监听器
|
|
1507
1489
|
removeListener(n, e) {
|
|
1508
|
-
return
|
|
1490
|
+
return c(this, null, function* () {
|
|
1509
1491
|
try {
|
|
1510
1492
|
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(e, 1), this.elementListenersList.splice(e, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
1511
1493
|
} catch (t) {
|
|
@@ -1514,11 +1496,11 @@ const be = {
|
|
|
1514
1496
|
},
|
|
1515
1497
|
// 保存监听器配置
|
|
1516
1498
|
saveListenerConfig() {
|
|
1517
|
-
return
|
|
1499
|
+
return c(this, null, function* () {
|
|
1518
1500
|
var t, i, s, a;
|
|
1519
1501
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
1520
1502
|
return;
|
|
1521
|
-
const e =
|
|
1503
|
+
const e = de(this.bpmnInstances, this.listenerForm, !1, this.prefix);
|
|
1522
1504
|
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (a = (s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((r) => r.$type !== `${this.prefix}:ExecutionListener`)) != null ? a : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
1523
1505
|
});
|
|
1524
1506
|
}
|
|
@@ -1612,8 +1594,6 @@ var Qt = function() {
|
|
|
1612
1594
|
en,
|
|
1613
1595
|
!1,
|
|
1614
1596
|
null,
|
|
1615
|
-
null,
|
|
1616
|
-
null,
|
|
1617
1597
|
null
|
|
1618
1598
|
);
|
|
1619
1599
|
const nn = tn.exports, sn = {
|
|
@@ -1720,8 +1700,6 @@ var rn = function() {
|
|
|
1720
1700
|
an,
|
|
1721
1701
|
!1,
|
|
1722
1702
|
null,
|
|
1723
|
-
null,
|
|
1724
|
-
null,
|
|
1725
1703
|
null
|
|
1726
1704
|
);
|
|
1727
1705
|
const ln = on.exports, pn = {
|
|
@@ -1772,7 +1750,7 @@ const ln = on.exports, pn = {
|
|
|
1772
1750
|
id: {
|
|
1773
1751
|
immediate: !0,
|
|
1774
1752
|
handler(n) {
|
|
1775
|
-
return
|
|
1753
|
+
return c(this, null, function* () {
|
|
1776
1754
|
n && (yield this.$nextTick(), this.resetFormList());
|
|
1777
1755
|
});
|
|
1778
1756
|
}
|
|
@@ -1941,8 +1919,6 @@ var mn = function() {
|
|
|
1941
1919
|
cn,
|
|
1942
1920
|
!1,
|
|
1943
1921
|
null,
|
|
1944
|
-
null,
|
|
1945
|
-
null,
|
|
1946
1922
|
null
|
|
1947
1923
|
);
|
|
1948
1924
|
const dn = un.exports, fn = {
|
|
@@ -1960,10 +1936,10 @@ const dn = un.exports, fn = {
|
|
|
1960
1936
|
return {
|
|
1961
1937
|
elementListenersList: [],
|
|
1962
1938
|
listenerEventTypeObject: Ht,
|
|
1963
|
-
listenerTypeObject:
|
|
1939
|
+
listenerTypeObject: ye,
|
|
1964
1940
|
listenerFormModelVisible: !1,
|
|
1965
1941
|
listenerForm: {},
|
|
1966
|
-
fieldTypeObject:
|
|
1942
|
+
fieldTypeObject: he,
|
|
1967
1943
|
fieldsListOfListener: [],
|
|
1968
1944
|
listenerFieldFormModelVisible: !1,
|
|
1969
1945
|
// 监听器 注入字段表单弹窗 显示状态
|
|
@@ -1979,7 +1955,7 @@ const dn = un.exports, fn = {
|
|
|
1979
1955
|
id: {
|
|
1980
1956
|
immediate: !0,
|
|
1981
1957
|
handler(n) {
|
|
1982
|
-
return
|
|
1958
|
+
return c(this, null, function* () {
|
|
1983
1959
|
n && (yield this.$nextTick(), this.resetListenersList());
|
|
1984
1960
|
});
|
|
1985
1961
|
}
|
|
@@ -1988,19 +1964,19 @@ const dn = un.exports, fn = {
|
|
|
1988
1964
|
methods: {
|
|
1989
1965
|
resetListenersList() {
|
|
1990
1966
|
var n, e, t, i;
|
|
1991
|
-
this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) =>
|
|
1967
|
+
this.otherExtensionList = [], this.bpmnElementListeners = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? i : [], this.elementListenersList = this.bpmnElementListeners.map((s) => be(s));
|
|
1992
1968
|
},
|
|
1993
1969
|
openListenerForm(n, e) {
|
|
1994
|
-
return
|
|
1970
|
+
return c(this, null, function* () {
|
|
1995
1971
|
var t;
|
|
1996
|
-
n ? (this.listenerForm =
|
|
1972
|
+
n ? (this.listenerForm = fe(n), this.editingListenerIndex = e) : (this.listenerForm = {}, this.editingListenerIndex = -1), n && n.fields ? this.fieldsListOfListener = n.fields.map((i) => T(d({}, i), {
|
|
1997
1973
|
fieldType: i.string ? "string" : "expression"
|
|
1998
1974
|
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
1999
1975
|
});
|
|
2000
1976
|
},
|
|
2001
1977
|
// 移除监听器
|
|
2002
1978
|
removeListener(n, e) {
|
|
2003
|
-
return
|
|
1979
|
+
return c(this, null, function* () {
|
|
2004
1980
|
try {
|
|
2005
1981
|
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(e, 1), this.elementListenersList.splice(e, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
2006
1982
|
} catch (t) {
|
|
@@ -2009,30 +1985,30 @@ const dn = un.exports, fn = {
|
|
|
2009
1985
|
},
|
|
2010
1986
|
// 保存监听器
|
|
2011
1987
|
saveListenerConfig() {
|
|
2012
|
-
return
|
|
1988
|
+
return c(this, null, function* () {
|
|
2013
1989
|
var t, i, s, a;
|
|
2014
1990
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
2015
1991
|
return;
|
|
2016
|
-
const e =
|
|
1992
|
+
const e = de(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
2017
1993
|
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(e), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, e), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = (a = (s = (i = (t = this.element.businessObject) == null ? void 0 : t.extensionElements) == null ? void 0 : i.values) == null ? void 0 : s.filter((r) => r.$type !== `${this.prefix}:TaskListener`)) != null ? a : [], U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
2018
1994
|
});
|
|
2019
1995
|
},
|
|
2020
1996
|
// 打开监听器字段编辑弹窗
|
|
2021
1997
|
openListenerFieldForm(n, e) {
|
|
2022
|
-
return
|
|
1998
|
+
return c(this, null, function* () {
|
|
2023
1999
|
var t;
|
|
2024
2000
|
this.listenerFieldForm = n ? v(n) : {}, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
|
|
2025
2001
|
});
|
|
2026
2002
|
},
|
|
2027
2003
|
// 保存监听器注入字段
|
|
2028
2004
|
saveListenerFiled() {
|
|
2029
|
-
return
|
|
2005
|
+
return c(this, null, function* () {
|
|
2030
2006
|
(yield this.$refs.listenerFieldFormRef.validate()) && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, yield this.$nextTick(), this.listenerFieldForm = {});
|
|
2031
2007
|
});
|
|
2032
2008
|
},
|
|
2033
2009
|
// 移除监听器字段
|
|
2034
2010
|
removeListenerField(n, e) {
|
|
2035
|
-
return
|
|
2011
|
+
return c(this, null, function* () {
|
|
2036
2012
|
try {
|
|
2037
2013
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(e, 1), this.listenerForm.fields.splice(e, 1);
|
|
2038
2014
|
} catch (t) {
|
|
@@ -2118,11 +2094,9 @@ var bn = function() {
|
|
|
2118
2094
|
yn,
|
|
2119
2095
|
!1,
|
|
2120
2096
|
null,
|
|
2121
|
-
null,
|
|
2122
|
-
null,
|
|
2123
2097
|
null
|
|
2124
2098
|
);
|
|
2125
|
-
const gn = hn.exports,
|
|
2099
|
+
const gn = hn.exports, se = ["base", "task", "form", "multiInstance"], vn = {
|
|
2126
2100
|
name: "PropertiesPanel",
|
|
2127
2101
|
componentName: "MyPropertiesPanel",
|
|
2128
2102
|
components: {
|
|
@@ -2213,12 +2187,12 @@ const gn = hn.exports, ie = ["base", "task", "form", "multiInstance"], vn = {
|
|
|
2213
2187
|
activeTabs: {
|
|
2214
2188
|
immediate: !0,
|
|
2215
2189
|
handler() {
|
|
2216
|
-
this.activeTab =
|
|
2190
|
+
this.activeTab = se;
|
|
2217
2191
|
}
|
|
2218
2192
|
},
|
|
2219
2193
|
elementId: {
|
|
2220
2194
|
handler() {
|
|
2221
|
-
this.activeTab =
|
|
2195
|
+
this.activeTab = se;
|
|
2222
2196
|
}
|
|
2223
2197
|
}
|
|
2224
2198
|
},
|
|
@@ -2303,8 +2277,6 @@ var En = function() {
|
|
|
2303
2277
|
Fn,
|
|
2304
2278
|
!1,
|
|
2305
2279
|
null,
|
|
2306
|
-
null,
|
|
2307
|
-
null,
|
|
2308
2280
|
null
|
|
2309
2281
|
);
|
|
2310
2282
|
const Sn = xn.exports, Tn = (n, e, t) => (t = t || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -3701,7 +3673,7 @@ const kn = {
|
|
|
3701
3673
|
}
|
|
3702
3674
|
]
|
|
3703
3675
|
}
|
|
3704
|
-
], On = [],
|
|
3676
|
+
], On = [], re = {
|
|
3705
3677
|
name: _n,
|
|
3706
3678
|
uri: In,
|
|
3707
3679
|
prefix: An,
|
|
@@ -4809,7 +4781,7 @@ const kn = {
|
|
|
4809
4781
|
}
|
|
4810
4782
|
]
|
|
4811
4783
|
}
|
|
4812
|
-
], zn = [],
|
|
4784
|
+
], zn = [], ae = {
|
|
4813
4785
|
name: Pn,
|
|
4814
4786
|
uri: Mn,
|
|
4815
4787
|
prefix: Dn,
|
|
@@ -6181,7 +6153,7 @@ const kn = {
|
|
|
6181
6153
|
}
|
|
6182
6154
|
]
|
|
6183
6155
|
}
|
|
6184
|
-
],
|
|
6156
|
+
], oe = {
|
|
6185
6157
|
name: jn,
|
|
6186
6158
|
uri: Un,
|
|
6187
6159
|
prefix: Nn,
|
|
@@ -6199,14 +6171,14 @@ function A(n) {
|
|
|
6199
6171
|
}
|
|
6200
6172
|
A.$inject = ["eventBus"];
|
|
6201
6173
|
A.prototype.canCopyProperty = function(n, e) {
|
|
6202
|
-
if (
|
|
6174
|
+
if (ke(n) && !Hn(n, e) || _(n, "camunda:InputOutput") && !this.canHostInputOutput(e) || ge(n, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || _(n, "camunda:In") && !this.canHostIn(e))
|
|
6203
6175
|
return !1;
|
|
6204
6176
|
};
|
|
6205
6177
|
A.prototype.canHostInputOutput = function(n) {
|
|
6206
6178
|
if (x(n, "camunda:Connector"))
|
|
6207
6179
|
return !0;
|
|
6208
6180
|
const t = x(n, "bpmn:FlowNode");
|
|
6209
|
-
return !(!t ||
|
|
6181
|
+
return !(!t || ge(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || _(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
6210
6182
|
};
|
|
6211
6183
|
A.prototype.canHostConnector = function(n) {
|
|
6212
6184
|
const e = x(n, "camunda:ServiceTaskLike");
|
|
@@ -6216,9 +6188,9 @@ A.prototype.canHostIn = function(n) {
|
|
|
6216
6188
|
return x(n, "bpmn:CallActivity") ? !0 : x(n, "bpmn:SignalEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
|
|
6217
6189
|
};
|
|
6218
6190
|
function _(n, e) {
|
|
6219
|
-
return n &&
|
|
6191
|
+
return n && _e(n.$instanceOf) && n.$instanceOf(e);
|
|
6220
6192
|
}
|
|
6221
|
-
function
|
|
6193
|
+
function ge(n, e) {
|
|
6222
6194
|
return I(e, function(t) {
|
|
6223
6195
|
return _(n, t);
|
|
6224
6196
|
});
|
|
@@ -6334,8 +6306,8 @@ const ri = {
|
|
|
6334
6306
|
__init__: ["FlowableModdleExtension"],
|
|
6335
6307
|
FlowableModdleExtension: ["type", Y]
|
|
6336
6308
|
};
|
|
6337
|
-
|
|
6338
|
-
|
|
6309
|
+
pe.registerLanguage("xml", Re);
|
|
6310
|
+
pe.registerLanguage("json", ze);
|
|
6339
6311
|
const ai = {
|
|
6340
6312
|
name: "ProcessDesigner",
|
|
6341
6313
|
components: {
|
|
@@ -6414,7 +6386,7 @@ const ai = {
|
|
|
6414
6386
|
const e = {
|
|
6415
6387
|
translate: ["value", Cn(this.translations || kn)]
|
|
6416
6388
|
};
|
|
6417
|
-
return n.push(e), this.simulation && n.push(
|
|
6389
|
+
return n.push(e), this.simulation && n.push(Ve), n.push(Be), this.prefix === "camunda" && n.push(Xn), this.prefix === "flowable" && n.push(ri), this.prefix === "activiti" && n.push(ti), n;
|
|
6418
6390
|
},
|
|
6419
6391
|
moddleExtensions() {
|
|
6420
6392
|
const n = {};
|
|
@@ -6423,20 +6395,15 @@ const ai = {
|
|
|
6423
6395
|
if (this.moddleExtension)
|
|
6424
6396
|
for (const e in this.moddleExtension)
|
|
6425
6397
|
n[e] = this.moddleExtension[e];
|
|
6426
|
-
return this.prefix === "activiti" && (n.activiti = T(
|
|
6427
|
-
types: [...re.types, ...this.extendTypes || []]
|
|
6428
|
-
})), this.prefix === "flowable" && (n.flowable = T(u({}, ae), {
|
|
6398
|
+
return this.prefix === "activiti" && (n.activiti = T(d({}, ae), {
|
|
6429
6399
|
types: [...ae.types, ...this.extendTypes || []]
|
|
6430
|
-
})), this.prefix === "
|
|
6431
|
-
types: [...
|
|
6400
|
+
})), this.prefix === "flowable" && (n.flowable = T(d({}, oe), {
|
|
6401
|
+
types: [...oe.types, ...this.extendTypes || []]
|
|
6402
|
+
})), this.prefix === "camunda" && (n.camunda = T(d({}, re), {
|
|
6403
|
+
types: [...re.types, ...this.extendTypes || []]
|
|
6432
6404
|
})), n;
|
|
6433
6405
|
}
|
|
6434
6406
|
},
|
|
6435
|
-
watch: {
|
|
6436
|
-
value(n) {
|
|
6437
|
-
this.createNewDiagram(n);
|
|
6438
|
-
}
|
|
6439
|
-
},
|
|
6440
6407
|
mounted() {
|
|
6441
6408
|
this.initBpmnModeler(), this.createNewDiagram(this.value), this.$once("hook:beforeDestroy", () => {
|
|
6442
6409
|
this.bpmnModeler && this.bpmnModeler.destroy(), this.$emit("destroy", this.bpmnModeler), this.bpmnModeler = null;
|
|
@@ -6444,7 +6411,7 @@ const ai = {
|
|
|
6444
6411
|
},
|
|
6445
6412
|
methods: {
|
|
6446
6413
|
initBpmnModeler() {
|
|
6447
|
-
this.bpmnModeler || (this.bpmnModeler = new
|
|
6414
|
+
this.bpmnModeler || (this.bpmnModeler = new De(d({
|
|
6448
6415
|
container: this.$refs["bpmn-canvas"],
|
|
6449
6416
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
6450
6417
|
additionalModules: this.additionalModules,
|
|
@@ -6458,7 +6425,7 @@ const ai = {
|
|
|
6458
6425
|
const s = t.replace(/\./g, "-"), a = i ? i.element : null;
|
|
6459
6426
|
e.$emit(s, a, i);
|
|
6460
6427
|
});
|
|
6461
|
-
}), n.on("commandStack.changed", (t) =>
|
|
6428
|
+
}), n.on("commandStack.changed", (t) => c(this, null, function* () {
|
|
6462
6429
|
try {
|
|
6463
6430
|
this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
|
|
6464
6431
|
const { xml: i } = yield this.bpmnModeler.saveXML({ format: !0 });
|
|
@@ -6474,7 +6441,7 @@ const ai = {
|
|
|
6474
6441
|
},
|
|
6475
6442
|
/* 创建新的流程图 */
|
|
6476
6443
|
createNewDiagram(n) {
|
|
6477
|
-
return
|
|
6444
|
+
return c(this, null, function* () {
|
|
6478
6445
|
const e = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, i = n || Tn(e, t, this.prefix);
|
|
6479
6446
|
try {
|
|
6480
6447
|
const { warnings: s } = yield this.bpmnModeler.importXML(i);
|
|
@@ -6490,19 +6457,20 @@ const ai = {
|
|
|
6490
6457
|
* @param {*} name
|
|
6491
6458
|
*/
|
|
6492
6459
|
downloadProcess(n, e = "diagram") {
|
|
6493
|
-
return
|
|
6460
|
+
return c(this, null, function* () {
|
|
6494
6461
|
try {
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6462
|
+
const { err: i, xml: s } = yield this.bpmnModeler.saveXML();
|
|
6463
|
+
i && console.error(`[Process Designer Warn ]: ${i.message || i}`);
|
|
6464
|
+
const a = new ne(), { definitions: r } = a.xml2js(s);
|
|
6465
|
+
if (e = r.process._name || e, n === "xml" || n === "bpmn") {
|
|
6466
|
+
const { href: o, filename: p } = this.setEncoded(n.toUpperCase(), e, s);
|
|
6467
|
+
t(o, p);
|
|
6500
6468
|
} else {
|
|
6501
|
-
const { err:
|
|
6502
|
-
if (
|
|
6503
|
-
return console.error(
|
|
6504
|
-
const { href:
|
|
6505
|
-
t(
|
|
6469
|
+
const { err: o, svg: p } = yield this.bpmnModeler.saveSVG();
|
|
6470
|
+
if (o)
|
|
6471
|
+
return console.error(o);
|
|
6472
|
+
const { href: E, filename: m } = this.setEncoded("SVG", e, p);
|
|
6473
|
+
t(E, m);
|
|
6506
6474
|
}
|
|
6507
6475
|
} catch (i) {
|
|
6508
6476
|
console.error(`[Process Designer Warn ]: ${i.message || i}`);
|
|
@@ -6595,7 +6563,7 @@ const ai = {
|
|
|
6595
6563
|
});
|
|
6596
6564
|
},
|
|
6597
6565
|
previewProcessJson() {
|
|
6598
|
-
const n = new
|
|
6566
|
+
const n = new ne();
|
|
6599
6567
|
this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: e }) => {
|
|
6600
6568
|
const { definitions: t } = n.xml2js(e);
|
|
6601
6569
|
t ? this.previewResult = JSON.stringify(t, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
|
|
@@ -6650,8 +6618,6 @@ var oi = function() {
|
|
|
6650
6618
|
li,
|
|
6651
6619
|
!1,
|
|
6652
6620
|
null,
|
|
6653
|
-
null,
|
|
6654
|
-
null,
|
|
6655
6621
|
null
|
|
6656
6622
|
);
|
|
6657
6623
|
const mi = pi.exports, ci = {
|
|
@@ -6704,6 +6670,11 @@ const mi = pi.exports, ci = {
|
|
|
6704
6670
|
methods: {
|
|
6705
6671
|
initModeler(n) {
|
|
6706
6672
|
this.modeler = n;
|
|
6673
|
+
},
|
|
6674
|
+
refresh() {
|
|
6675
|
+
return c(this, null, function* () {
|
|
6676
|
+
yield this.$nextTick(), yield this.$refs.processDesigner.createNewDiagram(this.value);
|
|
6677
|
+
});
|
|
6707
6678
|
}
|
|
6708
6679
|
}
|
|
6709
6680
|
};
|
|
@@ -6727,8 +6698,6 @@ var ui = function() {
|
|
|
6727
6698
|
di,
|
|
6728
6699
|
!1,
|
|
6729
6700
|
null,
|
|
6730
|
-
null,
|
|
6731
|
-
null,
|
|
6732
6701
|
null
|
|
6733
6702
|
);
|
|
6734
6703
|
const zi = fi.exports;
|