@web-utils/component 3.3.15 → 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 +123 -155
- 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,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ve = Object.defineProperty, Ee = Object.defineProperties;
|
|
2
2
|
var Fe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Q = Object.getOwnPropertySymbols;
|
|
4
4
|
var xe = Object.prototype.hasOwnProperty, Se = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ee = (n, e, t) => e in n ?
|
|
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)
|
|
@@ -10,7 +10,7 @@ var ee = (n, e, t) => e in n ? ge(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
Se.call(e, t) && ee(n, t, e[t]);
|
|
11
11
|
return n;
|
|
12
12
|
}, T = (n, e) => Ee(n, Fe(e));
|
|
13
|
-
var
|
|
13
|
+
var c = (n, e, t) => new Promise((i, s) => {
|
|
14
14
|
var a = (p) => {
|
|
15
15
|
try {
|
|
16
16
|
o(t.next(p));
|
|
@@ -26,7 +26,7 @@ var d = (n, e, t) => new Promise((i, s) => {
|
|
|
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 Te, forEach as Ce, isObject 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
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";
|
|
@@ -35,8 +35,8 @@ import { hasPrimaryModifier as $e } from "diagram-js/lib/util/Mouse";
|
|
|
35
35
|
import le from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
36
36
|
import K from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
37
37
|
import { getMid as Le, asTRBL as Oe } from "diagram-js/lib/layout/LayoutUtil";
|
|
38
|
-
import { fastClone as
|
|
39
|
-
import { n as h } from "../chunks/_plugin-vue2_normalizer.
|
|
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";
|
|
@@ -47,10 +47,10 @@ import Ve from "bpmn-js-token-simulation";
|
|
|
47
47
|
import ne from "x2js";
|
|
48
48
|
import pe from "highlight.js/lib/core";
|
|
49
49
|
import Re from "highlight.js/lib/languages/xml";
|
|
50
|
-
import
|
|
51
|
-
import
|
|
50
|
+
import ze from "highlight.js/lib/languages/json";
|
|
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, E, m, l,
|
|
53
|
+
function J(n, e, t, i, s, a, r, o, p, E, m, l, u) {
|
|
54
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
55
|
const C = F.context.shape;
|
|
56
56
|
if (!$e(F) || !i.isOpen(C))
|
|
@@ -78,7 +78,7 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
78
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
|
|
81
|
+
const u = n.businessObject;
|
|
82
82
|
function F(b, S) {
|
|
83
83
|
s.start(b, S);
|
|
84
84
|
}
|
|
@@ -86,14 +86,14 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
86
86
|
t.removeElements([n]);
|
|
87
87
|
}
|
|
88
88
|
function C(b) {
|
|
89
|
-
const
|
|
89
|
+
const g = o.getContainer(), w = e.getPad(b).html, $ = g.getBoundingClientRect(), M = w.getBoundingClientRect(), D = M.top - $.top;
|
|
90
90
|
return {
|
|
91
91
|
x: M.left - $.left,
|
|
92
92
|
y: D + M.height + 5
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function f(b, S,
|
|
96
|
-
typeof
|
|
95
|
+
function f(b, S, g, w) {
|
|
96
|
+
typeof g != "string" && (w = g, g = m("Append {type}", { type: b.replace(/^bpmn:/, "") }));
|
|
97
97
|
function $(D, B) {
|
|
98
98
|
const V = i.createShape(y({ type: b }, w));
|
|
99
99
|
a.start(D, V, {
|
|
@@ -103,7 +103,7 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
103
103
|
return {
|
|
104
104
|
group: "model",
|
|
105
105
|
className: S,
|
|
106
|
-
title:
|
|
106
|
+
title: g,
|
|
107
107
|
action: {
|
|
108
108
|
dragstart: $,
|
|
109
109
|
click: E ? function(D, B) {
|
|
@@ -114,11 +114,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
function P(b) {
|
|
117
|
-
return function(S,
|
|
118
|
-
t.splitLane(
|
|
117
|
+
return function(S, g) {
|
|
118
|
+
t.splitLane(g, b), e.open(g, !0);
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
if (N(
|
|
121
|
+
if (N(u, ["bpmn:Lane", "bpmn:Participant"]) && Ie(u)) {
|
|
122
122
|
const b = we(n);
|
|
123
123
|
y(l, {
|
|
124
124
|
"lane-insert-above": {
|
|
@@ -126,8 +126,8 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
126
126
|
className: "bpmn-icon-lane-insert-above",
|
|
127
127
|
title: m("Add Lane above"),
|
|
128
128
|
action: {
|
|
129
|
-
click: function(S,
|
|
130
|
-
t.addLane(
|
|
129
|
+
click: function(S, g) {
|
|
130
|
+
t.addLane(g, "top");
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -155,14 +155,14 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
155
155
|
className: "bpmn-icon-lane-insert-below",
|
|
156
156
|
title: m("Add Lane below"),
|
|
157
157
|
action: {
|
|
158
|
-
click: function(S,
|
|
159
|
-
t.addLane(
|
|
158
|
+
click: function(S, g) {
|
|
159
|
+
t.addLane(g, "bottom");
|
|
160
160
|
}
|
|
161
161
|
}
|
|
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
|
-
}) : ie(
|
|
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")),
|
|
@@ -208,25 +208,25 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
208
208
|
title: m("Change type"),
|
|
209
209
|
action: {
|
|
210
210
|
click: function(b, S) {
|
|
211
|
-
const
|
|
211
|
+
const g = y(C(S), {
|
|
212
212
|
cursor: { x: b.x, y: b.y }
|
|
213
213
|
});
|
|
214
|
-
r.open(S, "bpmn-replace",
|
|
214
|
+
r.open(S, "bpmn-replace", g);
|
|
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
225
|
click: F,
|
|
226
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",
|
|
@@ -236,11 +236,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
236
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
|
-
let
|
|
243
|
-
return Te(
|
|
242
|
+
let k = p.allowed("elements.delete", { elements: [n] });
|
|
243
|
+
return Te(k) && (k = k[0] === n), k && y(l, {
|
|
244
244
|
delete: {
|
|
245
245
|
group: "edit",
|
|
246
246
|
className: "bpmn-icon-trash",
|
|
@@ -271,14 +271,14 @@ const Z = function() {
|
|
|
271
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,
|
|
275
|
-
function f(
|
|
274
|
+
function p(l, u, F, O, C) {
|
|
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:
|
|
281
|
+
group: u,
|
|
282
282
|
className: F,
|
|
283
283
|
title: O || o("Create {type}", { type: P }),
|
|
284
284
|
action: {
|
|
@@ -288,7 +288,7 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
function E(l) {
|
|
291
|
-
const
|
|
291
|
+
const u = t.createShape({
|
|
292
292
|
type: "bpmn:SubProcess",
|
|
293
293
|
x: 0,
|
|
294
294
|
y: 0,
|
|
@@ -297,9 +297,9 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
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
304
|
autoSelect: [F]
|
|
305
305
|
}
|
|
@@ -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;
|
|
@@ -565,7 +565,7 @@ const tt = (n, e = "body") => n ? n.get(e) : null, nt = (n, e, t = "body", i) =>
|
|
|
565
565
|
methods: {
|
|
566
566
|
init(n) {
|
|
567
567
|
const { businessObject: e } = this.element;
|
|
568
|
-
n ? (this.businessObject =
|
|
568
|
+
n ? (this.businessObject = v(e), this.businessObject.$type === "bpmn:SubProcess" && this.$set(this.businessObject, "isExpanded", this.element.di.isExpanded)) : this.businessObject = {}, this.skipExpression = tt(e, this.skipExpressionProp);
|
|
569
569
|
},
|
|
570
570
|
updateBaseInfo(n) {
|
|
571
571
|
const { modeling: e } = this.bpmnInstances;
|
|
@@ -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 = {
|
|
@@ -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,11 +758,9 @@ var bt = function() {
|
|
|
762
758
|
yt,
|
|
763
759
|
!1,
|
|
764
760
|
null,
|
|
765
|
-
null,
|
|
766
|
-
null,
|
|
767
761
|
null
|
|
768
762
|
);
|
|
769
|
-
const
|
|
763
|
+
const gt = ht.exports, vt = {
|
|
770
764
|
name: "ScriptTask",
|
|
771
765
|
props: {
|
|
772
766
|
id: String,
|
|
@@ -837,13 +831,11 @@ var Et = function() {
|
|
|
837
831
|
e.$set(e.scriptTaskForm, "resultVariable", i);
|
|
838
832
|
}, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
|
|
839
833
|
}, Ft = [], xt = /* @__PURE__ */ h(
|
|
840
|
-
|
|
834
|
+
vt,
|
|
841
835
|
Et,
|
|
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 = {
|
|
@@ -916,19 +908,17 @@ var Ct = function() {
|
|
|
916
908
|
}, expression: "newMessageForm.id" } })], 1), t("ElFormItem", { attrs: { label: "消息名称" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(i) {
|
|
917
909
|
e.$set(e.newMessageForm, "name", i);
|
|
918
910
|
}, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
|
|
919
|
-
},
|
|
911
|
+
}, kt = [], _t = /* @__PURE__ */ h(
|
|
920
912
|
Tt,
|
|
921
913
|
Ct,
|
|
922
|
-
|
|
914
|
+
kt,
|
|
923
915
|
!1,
|
|
924
916
|
null,
|
|
925
|
-
null,
|
|
926
|
-
null,
|
|
927
917
|
null
|
|
928
918
|
);
|
|
929
|
-
const It =
|
|
919
|
+
const It = _t.exports, At = {
|
|
930
920
|
name: "ElementTaskConfig",
|
|
931
|
-
components: { UserTask:
|
|
921
|
+
components: { UserTask: gt, ScriptTask: St, ReceiveTask: It },
|
|
932
922
|
props: {
|
|
933
923
|
id: String,
|
|
934
924
|
element: Object,
|
|
@@ -973,7 +963,7 @@ const It = kt.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
|
}
|
|
@@ -1246,7 +1232,7 @@ const Vt = Bt.exports, Rt = {
|
|
|
1246
1232
|
}
|
|
1247
1233
|
}
|
|
1248
1234
|
};
|
|
1249
|
-
var
|
|
1235
|
+
var zt = function() {
|
|
1250
1236
|
var e = this, t = e._self._c;
|
|
1251
1237
|
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { model: e.flowConditionForm, "label-width": "90px", size: "mini" }, nativeOn: { submit: function(i) {
|
|
1252
1238
|
i.preventDefault();
|
|
@@ -1265,14 +1251,12 @@ var jt = function() {
|
|
|
1265
1251
|
}, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.scriptType === "externalScript" ? t("ElFormItem", { key: "resource", attrs: { label: "资源地址" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.resource, callback: function(i) {
|
|
1266
1252
|
e.$set(e.flowConditionForm, "resource", i);
|
|
1267
1253
|
}, expression: "flowConditionForm.resource" } })], 1) : e._e()] : e._e()], 2)], 1);
|
|
1268
|
-
},
|
|
1254
|
+
}, jt = [], Ut = /* @__PURE__ */ h(
|
|
1269
1255
|
Rt,
|
|
1270
|
-
jt,
|
|
1271
1256
|
zt,
|
|
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
1343
|
function fe(n) {
|
|
1362
|
-
let e =
|
|
1363
|
-
if (n.script && (e = T(
|
|
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 = "";
|
|
@@ -1373,8 +1355,8 @@ function fe(n) {
|
|
|
1373
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
|
}
|
|
@@ -1454,7 +1436,7 @@ const ye = {
|
|
|
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
|
}
|
|
@@ -1477,26 +1459,26 @@ const ye = {
|
|
|
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 = fe(n), this.fieldsListOfListener = n.fields ? n.fields.map((i) =>
|
|
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
|
// 打开监听器字段编辑弹窗
|
|
1486
1468
|
openListenerFieldForm(n, e) {
|
|
1487
|
-
this.listenerFieldForm = n ?
|
|
1469
|
+
this.listenerFieldForm = n ? v(n) : { fieldType: "string" }, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, this.$nextTick(() => {
|
|
1488
1470
|
this.$refs.listenerFieldFormRef && this.$refs.listenerFieldFormRef.clearValidate();
|
|
1489
1471
|
});
|
|
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 ye = {
|
|
|
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,7 +1496,7 @@ const ye = {
|
|
|
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;
|
|
@@ -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 = {
|
|
@@ -1646,10 +1626,10 @@ const nn = tn.exports, sn = {
|
|
|
1646
1626
|
methods: {
|
|
1647
1627
|
resetAttributesList() {
|
|
1648
1628
|
var n, e, t, i, s;
|
|
1649
|
-
this.otherExtensionList = [], this.bpmnElementProperties = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((a) => (a.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(a), a.$type === `${this.prefix}:Properties`))) != null ? i : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((a, r) => a.concat(r.values), []), this.elementPropertyList =
|
|
1629
|
+
this.otherExtensionList = [], this.bpmnElementProperties = (i = (t = (e = (n = this.element.businessObject) == null ? void 0 : n.extensionElements) == null ? void 0 : e.values) == null ? void 0 : t.filter((a) => (a.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(a), a.$type === `${this.prefix}:Properties`))) != null ? i : [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((a, r) => a.concat(r.values), []), this.elementPropertyList = v((s = this.bpmnElementPropertyList) != null ? s : []);
|
|
1650
1630
|
},
|
|
1651
1631
|
openAttributesForm(n, e) {
|
|
1652
|
-
this.editingPropertyIndex = e, this.propertyForm = e === -1 ? {} :
|
|
1632
|
+
this.editingPropertyIndex = e, this.propertyForm = e === -1 ? {} : v(n), this.propertyFormModelVisible = !0, this.$nextTick(() => {
|
|
1653
1633
|
this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
|
|
1654
1634
|
});
|
|
1655
1635
|
},
|
|
@@ -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
|
}
|
|
@@ -1781,7 +1759,7 @@ const ln = on.exports, pn = {
|
|
|
1781
1759
|
methods: {
|
|
1782
1760
|
resetFormList() {
|
|
1783
1761
|
var n;
|
|
1784
|
-
this.formKey = this.element.businessObject.formKey, this.elExtensionElements = this.element.businessObject.get("extensionElements") || this.bpmnInstances.moddle.create("bpmn:ExtensionElements", { values: [] }), this.formData = ((n = this.elExtensionElements.values.filter((e) => e.$type === `${this.prefix}:FormData`)) == null ? void 0 : n[0]) || this.bpmnInstances.moddle.create(`${this.prefix}:FormData`, { fields: [] }), this.businessKey = this.formData.businessKey, this.otherExtensions = this.elExtensionElements.values.filter((e) => e.$type !== `${this.prefix}:FormData`), this.fieldList =
|
|
1762
|
+
this.formKey = this.element.businessObject.formKey, this.elExtensionElements = this.element.businessObject.get("extensionElements") || this.bpmnInstances.moddle.create("bpmn:ExtensionElements", { values: [] }), this.formData = ((n = this.elExtensionElements.values.filter((e) => e.$type === `${this.prefix}:FormData`)) == null ? void 0 : n[0]) || this.bpmnInstances.moddle.create(`${this.prefix}:FormData`, { fields: [] }), this.businessKey = this.formData.businessKey, this.otherExtensions = this.elExtensionElements.values.filter((e) => e.$type !== `${this.prefix}:FormData`), this.fieldList = v(this.formData.fields || []), this.updateElementExtensions();
|
|
1785
1763
|
},
|
|
1786
1764
|
updateElementFormKey() {
|
|
1787
1765
|
this.bpmnInstances.modeling.updateProperties(this.element, { formKey: this.formKey });
|
|
@@ -1800,14 +1778,14 @@ const ln = on.exports, pn = {
|
|
|
1800
1778
|
var t, i;
|
|
1801
1779
|
if (this.formFieldIndex = e, e !== -1) {
|
|
1802
1780
|
const s = this.formData.fields[e];
|
|
1803
|
-
this.formFieldForm =
|
|
1781
|
+
this.formFieldForm = v(n), this.$set(this.formFieldForm, "typeType", this.fieldType[n.type] ? n.type : "custom"), n.type === "enum" && (this.fieldEnumList = v((s == null ? void 0 : s.values) || [])), this.fieldConstraintsList = v(((t = s == null ? void 0 : s.validation) == null ? void 0 : t.constraints) || []), this.fieldPropertiesList = v(((i = s == null ? void 0 : s.properties) == null ? void 0 : i.values) || []);
|
|
1804
1782
|
} else
|
|
1805
1783
|
this.formFieldForm = {}, this.fieldEnumList = [], this.fieldConstraintsList = [], this.fieldPropertiesList = [];
|
|
1806
1784
|
this.fieldModelVisible = !0;
|
|
1807
1785
|
},
|
|
1808
1786
|
// 打开字段 某个 配置项 弹窗
|
|
1809
1787
|
openFieldOptionForm(n, e, t) {
|
|
1810
|
-
return this.fieldOptionModelVisible = !0, this.fieldOptionType = t, this.formFieldOptionIndex = e, t === "property" ? (this.fieldOptionForm = n ?
|
|
1788
|
+
return this.fieldOptionModelVisible = !0, this.fieldOptionType = t, this.formFieldOptionIndex = e, t === "property" ? (this.fieldOptionForm = n ? v(n) : {}, this.optionModelTitle = "属性配置") : t === "enum" ? (this.fieldOptionForm = n ? v(n) : {}, this.optionModelTitle = "枚举值配置") : (this.fieldOptionForm = n ? v(n) : {}, this.optionModelTitle = "约束条件配置");
|
|
1811
1789
|
},
|
|
1812
1790
|
// 保存字段 某个 配置项
|
|
1813
1791
|
saveFieldOption() {
|
|
@@ -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 = {
|
|
@@ -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
|
}
|
|
@@ -1991,16 +1967,16 @@ const dn = un.exports, fn = {
|
|
|
1991
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 = fe(n), this.editingListenerIndex = e) : (this.listenerForm = {}, this.editingListenerIndex = -1), n && n.fields ? this.fieldsListOfListener = n.fields.map((i) => T(
|
|
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,7 +1985,7 @@ 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;
|
|
@@ -2019,20 +1995,20 @@ const dn = un.exports, fn = {
|
|
|
2019
1995
|
},
|
|
2020
1996
|
// 打开监听器字段编辑弹窗
|
|
2021
1997
|
openListenerFieldForm(n, e) {
|
|
2022
|
-
return
|
|
1998
|
+
return c(this, null, function* () {
|
|
2023
1999
|
var t;
|
|
2024
|
-
this.listenerFieldForm = n ?
|
|
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,15 +2094,13 @@ var bn = function() {
|
|
|
2118
2094
|
yn,
|
|
2119
2095
|
!1,
|
|
2120
2096
|
null,
|
|
2121
|
-
null,
|
|
2122
|
-
null,
|
|
2123
2097
|
null
|
|
2124
2098
|
);
|
|
2125
|
-
const
|
|
2099
|
+
const gn = hn.exports, se = ["base", "task", "form", "multiInstance"], vn = {
|
|
2126
2100
|
name: "PropertiesPanel",
|
|
2127
2101
|
componentName: "MyPropertiesPanel",
|
|
2128
2102
|
components: {
|
|
2129
|
-
UserTaskListeners:
|
|
2103
|
+
UserTaskListeners: gn,
|
|
2130
2104
|
ElementForm: dn,
|
|
2131
2105
|
ElementProperties: ln,
|
|
2132
2106
|
ElementListeners: nn,
|
|
@@ -2298,13 +2272,11 @@ var En = function() {
|
|
|
2298
2272
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-promotion" }), e._v("其他")])];
|
|
2299
2273
|
}, proxy: !0 }], null, !1, 520255146) }, [t("ElementOtherConfig", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1) : e._e(), e.isNullOrUndefined || e.isArray && e.useTabs.includes("extend") ? e._t("extend", null, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }) : e._e()], 2)], 1);
|
|
2300
2274
|
}, Fn = [], xn = /* @__PURE__ */ h(
|
|
2301
|
-
|
|
2275
|
+
vn,
|
|
2302
2276
|
En,
|
|
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"?>
|
|
@@ -2335,7 +2307,7 @@ function Cn(n) {
|
|
|
2335
2307
|
});
|
|
2336
2308
|
};
|
|
2337
2309
|
}
|
|
2338
|
-
const
|
|
2310
|
+
const kn = {
|
|
2339
2311
|
// 添加部分
|
|
2340
2312
|
"Append EndEvent": "追加结束事件",
|
|
2341
2313
|
"Append Gateway": "追加网关",
|
|
@@ -2583,7 +2555,7 @@ const _n = {
|
|
|
2583
2555
|
Data: "数据",
|
|
2584
2556
|
TextAnnotation: "文本说明",
|
|
2585
2557
|
Tasks: "任务"
|
|
2586
|
-
},
|
|
2558
|
+
}, _n = "Camunda", In = "http://camunda.org/schema/1.0/bpmn", An = "camunda", wn = {
|
|
2587
2559
|
tagAlias: "lowerCase"
|
|
2588
2560
|
}, $n = [], Ln = [
|
|
2589
2561
|
{
|
|
@@ -3702,7 +3674,7 @@ const _n = {
|
|
|
3702
3674
|
]
|
|
3703
3675
|
}
|
|
3704
3676
|
], On = [], re = {
|
|
3705
|
-
name:
|
|
3677
|
+
name: _n,
|
|
3706
3678
|
uri: In,
|
|
3707
3679
|
prefix: An,
|
|
3708
3680
|
xml: wn,
|
|
@@ -4809,15 +4781,15 @@ const _n = {
|
|
|
4809
4781
|
}
|
|
4810
4782
|
]
|
|
4811
4783
|
}
|
|
4812
|
-
],
|
|
4784
|
+
], zn = [], ae = {
|
|
4813
4785
|
name: Pn,
|
|
4814
4786
|
uri: Mn,
|
|
4815
4787
|
prefix: Dn,
|
|
4816
4788
|
xml: Bn,
|
|
4817
4789
|
associations: Vn,
|
|
4818
4790
|
types: Rn,
|
|
4819
|
-
emumerations:
|
|
4820
|
-
},
|
|
4791
|
+
emumerations: zn
|
|
4792
|
+
}, jn = "Flowable", Un = "http://flowable.org/bpmn", Nn = "flowable", Gn = {
|
|
4821
4793
|
tagAlias: "lowerCase"
|
|
4822
4794
|
}, qn = [], Kn = [], Jn = [
|
|
4823
4795
|
{
|
|
@@ -6182,7 +6154,7 @@ const _n = {
|
|
|
6182
6154
|
]
|
|
6183
6155
|
}
|
|
6184
6156
|
], oe = {
|
|
6185
|
-
name:
|
|
6157
|
+
name: jn,
|
|
6186
6158
|
uri: Un,
|
|
6187
6159
|
prefix: Nn,
|
|
6188
6160
|
xml: Gn,
|
|
@@ -6199,34 +6171,34 @@ 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");
|
|
6213
|
-
return
|
|
6185
|
+
return _(e, "bpmn:MessageEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
|
|
6214
6186
|
};
|
|
6215
6187
|
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
|
-
function
|
|
6219
|
-
return n &&
|
|
6190
|
+
function _(n, e) {
|
|
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
|
-
return
|
|
6195
|
+
return _(n, t);
|
|
6224
6196
|
});
|
|
6225
6197
|
}
|
|
6226
6198
|
function x(n, e) {
|
|
6227
6199
|
if (!e)
|
|
6228
6200
|
return n.$parent;
|
|
6229
|
-
if (
|
|
6201
|
+
if (_(n, e))
|
|
6230
6202
|
return n;
|
|
6231
6203
|
if (n.$parent)
|
|
6232
6204
|
return x(n.$parent, e);
|
|
@@ -6254,7 +6226,7 @@ function H(n, e) {
|
|
|
6254
6226
|
function Qn(n) {
|
|
6255
6227
|
return n && n.length;
|
|
6256
6228
|
}
|
|
6257
|
-
function
|
|
6229
|
+
function z(n, e) {
|
|
6258
6230
|
return Qn(n) && I(n, function(t) {
|
|
6259
6231
|
return H(t, e);
|
|
6260
6232
|
});
|
|
@@ -6281,9 +6253,9 @@ function W(n) {
|
|
|
6281
6253
|
W.$inject = ["eventBus"];
|
|
6282
6254
|
W.prototype.canCloneProperty = function(n, e) {
|
|
6283
6255
|
if (G("activiti:FailedJobRetryTimeCycle", e, n))
|
|
6284
|
-
return
|
|
6256
|
+
return z(n.eventDefinitions, "bpmn:TimerEventDefinition") || z(n.eventDefinitions, "bpmn:SignalEventDefinition") || H(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
6285
6257
|
if (G("activiti:Connector", e, n) || G("activiti:Field", e, n))
|
|
6286
|
-
return
|
|
6258
|
+
return z(n.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
6287
6259
|
};
|
|
6288
6260
|
const ti = {
|
|
6289
6261
|
__init__: ["ActivitiModdleExtension"],
|
|
@@ -6299,7 +6271,7 @@ function X(n, e) {
|
|
|
6299
6271
|
function ii(n) {
|
|
6300
6272
|
return n && n.length;
|
|
6301
6273
|
}
|
|
6302
|
-
function
|
|
6274
|
+
function j(n, e) {
|
|
6303
6275
|
return ii(n) && I(n, function(t) {
|
|
6304
6276
|
return X(t, e);
|
|
6305
6277
|
});
|
|
@@ -6326,20 +6298,20 @@ function Y(n) {
|
|
|
6326
6298
|
Y.$inject = ["eventBus"];
|
|
6327
6299
|
Y.prototype.canCloneProperty = function(n, e) {
|
|
6328
6300
|
if (q("flowable:FailedJobRetryTimeCycle", e, n))
|
|
6329
|
-
return
|
|
6301
|
+
return j(n.eventDefinitions, "bpmn:TimerEventDefinition") || j(n.eventDefinitions, "bpmn:SignalEventDefinition") || X(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
6330
6302
|
if (q("flowable:Connector", e, n) || q("flowable:Field", e, n))
|
|
6331
|
-
return
|
|
6303
|
+
return j(n.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
6332
6304
|
};
|
|
6333
6305
|
const ri = {
|
|
6334
6306
|
__init__: ["FlowableModdleExtension"],
|
|
6335
6307
|
FlowableModdleExtension: ["type", Y]
|
|
6336
6308
|
};
|
|
6337
6309
|
pe.registerLanguage("xml", Re);
|
|
6338
|
-
pe.registerLanguage("json",
|
|
6310
|
+
pe.registerLanguage("json", ze);
|
|
6339
6311
|
const ai = {
|
|
6340
6312
|
name: "ProcessDesigner",
|
|
6341
6313
|
components: {
|
|
6342
|
-
HighlightJS:
|
|
6314
|
+
HighlightJS: je
|
|
6343
6315
|
},
|
|
6344
6316
|
componentName: "MyProcessDesigner",
|
|
6345
6317
|
props: {
|
|
@@ -6412,7 +6384,7 @@ const ai = {
|
|
|
6412
6384
|
return te(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
6413
6385
|
te(this.additionalModel) ? n.push(...this.additionalModel) : this.additionalModel && n.push(this.additionalModel);
|
|
6414
6386
|
const e = {
|
|
6415
|
-
translate: ["value", Cn(this.translations ||
|
|
6387
|
+
translate: ["value", Cn(this.translations || kn)]
|
|
6416
6388
|
};
|
|
6417
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
|
},
|
|
@@ -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(
|
|
6398
|
+
return this.prefix === "activiti" && (n.activiti = T(d({}, ae), {
|
|
6427
6399
|
types: [...ae.types, ...this.extendTypes || []]
|
|
6428
|
-
})), this.prefix === "flowable" && (n.flowable = T(
|
|
6400
|
+
})), this.prefix === "flowable" && (n.flowable = T(d({}, oe), {
|
|
6429
6401
|
types: [...oe.types, ...this.extendTypes || []]
|
|
6430
|
-
})), this.prefix === "camunda" && (n.camunda = T(
|
|
6402
|
+
})), this.prefix === "camunda" && (n.camunda = T(d({}, re), {
|
|
6431
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 De(
|
|
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,7 +6457,7 @@ 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
6462
|
const { err: i, xml: s } = yield this.bpmnModeler.saveXML();
|
|
6496
6463
|
i && console.error(`[Process Designer Warn ]: ${i.message || i}`);
|
|
@@ -6651,8 +6618,6 @@ var oi = function() {
|
|
|
6651
6618
|
li,
|
|
6652
6619
|
!1,
|
|
6653
6620
|
null,
|
|
6654
|
-
null,
|
|
6655
|
-
null,
|
|
6656
6621
|
null
|
|
6657
6622
|
);
|
|
6658
6623
|
const mi = pi.exports, ci = {
|
|
@@ -6705,6 +6670,11 @@ const mi = pi.exports, ci = {
|
|
|
6705
6670
|
methods: {
|
|
6706
6671
|
initModeler(n) {
|
|
6707
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
|
+
});
|
|
6708
6678
|
}
|
|
6709
6679
|
}
|
|
6710
6680
|
};
|
|
@@ -6728,11 +6698,9 @@ var ui = function() {
|
|
|
6728
6698
|
di,
|
|
6729
6699
|
!1,
|
|
6730
6700
|
null,
|
|
6731
|
-
null,
|
|
6732
|
-
null,
|
|
6733
6701
|
null
|
|
6734
6702
|
);
|
|
6735
|
-
const
|
|
6703
|
+
const zi = fi.exports;
|
|
6736
6704
|
export {
|
|
6737
|
-
|
|
6705
|
+
zi as default
|
|
6738
6706
|
};
|