@web-utils/component 3.3.15 → 3.3.17
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.D8cHwam4.mjs} +11 -14
- 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-card-text/index.mjs +49 -0
- package/data-card-text/style.css +1 -0
- 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 -156
- package/flow-node/index.mjs +8 -10
- package/flow-viewer/index.mjs +3 -6
- 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 +12 -15
- 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 +3 -6
- 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 +8 -35
- 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 +97 -154
- 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 +29 -32
- 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/index.mjs +4 -4
- 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 +16 -10
- package/nav-bar/index.mjs +3 -5
- package/not-implement/index.mjs +3 -5
- package/notice/index.mjs +1 -3
- package/package.json +15 -15
- 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 +12 -17
- 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 +3 -6
- 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 +3 -8
- package/stateful/index.mjs +4 -6
- package/static-pageable-table/index.mjs +8 -10
- package/swiper/index.mjs +3 -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/index.mjs +2 -3
- 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 +18 -2
- 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/data-cardtext/index.mjs +0 -46
- package/data-cardtext/style.css +0 -1
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,9 @@ 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
|
|
52
|
-
|
|
53
|
-
function J(n, e, t, i, s, a, r, o, p, E, m, l, c) {
|
|
50
|
+
import ze from "highlight.js/lib/languages/json";
|
|
51
|
+
import je from "../highlight-j-s/index.mjs";
|
|
52
|
+
function J(n, e, t, i, s, a, r, o, p, E, m, l, u) {
|
|
54
53
|
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
54
|
const C = F.context.shape;
|
|
56
55
|
if (!$e(F) || !i.isOpen(C))
|
|
@@ -78,7 +77,7 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
78
77
|
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
78
|
if (n.type === "label")
|
|
80
79
|
return l;
|
|
81
|
-
const
|
|
80
|
+
const u = n.businessObject;
|
|
82
81
|
function F(b, S) {
|
|
83
82
|
s.start(b, S);
|
|
84
83
|
}
|
|
@@ -86,14 +85,14 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
86
85
|
t.removeElements([n]);
|
|
87
86
|
}
|
|
88
87
|
function C(b) {
|
|
89
|
-
const
|
|
88
|
+
const g = o.getContainer(), w = e.getPad(b).html, $ = g.getBoundingClientRect(), M = w.getBoundingClientRect(), D = M.top - $.top;
|
|
90
89
|
return {
|
|
91
90
|
x: M.left - $.left,
|
|
92
91
|
y: D + M.height + 5
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
|
-
function f(b, S,
|
|
96
|
-
typeof
|
|
94
|
+
function f(b, S, g, w) {
|
|
95
|
+
typeof g != "string" && (w = g, g = m("Append {type}", { type: b.replace(/^bpmn:/, "") }));
|
|
97
96
|
function $(D, B) {
|
|
98
97
|
const V = i.createShape(y({ type: b }, w));
|
|
99
98
|
a.start(D, V, {
|
|
@@ -103,7 +102,7 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
103
102
|
return {
|
|
104
103
|
group: "model",
|
|
105
104
|
className: S,
|
|
106
|
-
title:
|
|
105
|
+
title: g,
|
|
107
106
|
action: {
|
|
108
107
|
dragstart: $,
|
|
109
108
|
click: E ? function(D, B) {
|
|
@@ -114,11 +113,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
114
113
|
};
|
|
115
114
|
}
|
|
116
115
|
function P(b) {
|
|
117
|
-
return function(S,
|
|
118
|
-
t.splitLane(
|
|
116
|
+
return function(S, g) {
|
|
117
|
+
t.splitLane(g, b), e.open(g, !0);
|
|
119
118
|
};
|
|
120
119
|
}
|
|
121
|
-
if (N(
|
|
120
|
+
if (N(u, ["bpmn:Lane", "bpmn:Participant"]) && Ie(u)) {
|
|
122
121
|
const b = we(n);
|
|
123
122
|
y(l, {
|
|
124
123
|
"lane-insert-above": {
|
|
@@ -126,8 +125,8 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
126
125
|
className: "bpmn-icon-lane-insert-above",
|
|
127
126
|
title: m("Add Lane above"),
|
|
128
127
|
action: {
|
|
129
|
-
click: function(S,
|
|
130
|
-
t.addLane(
|
|
128
|
+
click: function(S, g) {
|
|
129
|
+
t.addLane(g, "top");
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
132
|
}
|
|
@@ -155,14 +154,14 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
155
154
|
className: "bpmn-icon-lane-insert-below",
|
|
156
155
|
title: m("Add Lane below"),
|
|
157
156
|
action: {
|
|
158
|
-
click: function(S,
|
|
159
|
-
t.addLane(
|
|
157
|
+
click: function(S, g) {
|
|
158
|
+
t.addLane(g, "bottom");
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
}
|
|
163
162
|
});
|
|
164
163
|
}
|
|
165
|
-
R(
|
|
164
|
+
R(u, "bpmn:FlowNode") && (R(u, "bpmn:EventBasedGateway") ? y(l, {
|
|
166
165
|
"append.receive-task": f("bpmn:ReceiveTask", "bpmn-icon-receive-task", m("Append ReceiveTask")),
|
|
167
166
|
"append.message-intermediate-event": f(
|
|
168
167
|
"bpmn:IntermediateCatchEvent",
|
|
@@ -188,11 +187,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
188
187
|
m("Append SignalIntermediateCatchEvent"),
|
|
189
188
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
190
189
|
)
|
|
191
|
-
}) : ie(
|
|
190
|
+
}) : ie(u, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
192
191
|
"append.compensation-activity": f("bpmn:Task", "bpmn-icon-task", m("Append compensation activity"), {
|
|
193
192
|
isForCompensation: !0
|
|
194
193
|
})
|
|
195
|
-
}) : !R(
|
|
194
|
+
}) : !R(u, "bpmn:EndEvent") && !u.isForCompensation && !ie(u, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ae(u) && y(l, {
|
|
196
195
|
"append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", m("Append EndEvent")),
|
|
197
196
|
"append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", m("Append Gateway")),
|
|
198
197
|
"append.append-task": f("bpmn:UserTask", "bpmn-icon-user-task", m("Append Task")),
|
|
@@ -208,25 +207,25 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
208
207
|
title: m("Change type"),
|
|
209
208
|
action: {
|
|
210
209
|
click: function(b, S) {
|
|
211
|
-
const
|
|
210
|
+
const g = y(C(S), {
|
|
212
211
|
cursor: { x: b.x, y: b.y }
|
|
213
212
|
});
|
|
214
|
-
r.open(S, "bpmn-replace",
|
|
213
|
+
r.open(S, "bpmn-replace", g);
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
216
|
}
|
|
218
|
-
}), N(
|
|
217
|
+
}), N(u, ["bpmn:FlowNode", "bpmn:InteractionNode", "bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
|
|
219
218
|
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
|
|
220
219
|
connect: {
|
|
221
220
|
group: "connect",
|
|
222
221
|
className: "bpmn-icon-connection-multi",
|
|
223
|
-
title: m(`Connect using ${
|
|
222
|
+
title: m(`Connect using ${u.isForCompensation ? "" : "Sequence/MessageFlow or "}Association`),
|
|
224
223
|
action: {
|
|
225
224
|
click: F,
|
|
226
225
|
dragstart: F
|
|
227
226
|
}
|
|
228
227
|
}
|
|
229
|
-
}), N(
|
|
228
|
+
}), N(u, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
|
|
230
229
|
connect: {
|
|
231
230
|
group: "connect",
|
|
232
231
|
className: "bpmn-icon-connection-multi",
|
|
@@ -236,11 +235,11 @@ J.prototype.getContextPadEntries = function(n) {
|
|
|
236
235
|
dragstart: F
|
|
237
236
|
}
|
|
238
237
|
}
|
|
239
|
-
}), R(
|
|
238
|
+
}), R(u, "bpmn:Group") && y(l, {
|
|
240
239
|
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
241
240
|
});
|
|
242
|
-
let
|
|
243
|
-
return Te(
|
|
241
|
+
let k = p.allowed("elements.delete", { elements: [n] });
|
|
242
|
+
return Te(k) && (k = k[0] === n), k && y(l, {
|
|
244
243
|
delete: {
|
|
245
244
|
group: "edit",
|
|
246
245
|
className: "bpmn-icon-trash",
|
|
@@ -271,14 +270,14 @@ const Z = function() {
|
|
|
271
270
|
Z.prototype = le.prototype;
|
|
272
271
|
Z.prototype.getPaletteEntries = function() {
|
|
273
272
|
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(
|
|
273
|
+
function p(l, u, F, O, C) {
|
|
274
|
+
function f(k) {
|
|
276
275
|
const b = t.createShape(y({ type: l }, C));
|
|
277
|
-
l === "bpmn:UserTask" && (b.businessObject.candidateUsers = "${handlers}"),
|
|
276
|
+
l === "bpmn:UserTask" && (b.businessObject.candidateUsers = "${handlers}"), e.start(k, b);
|
|
278
277
|
}
|
|
279
278
|
const P = l.replace(/^bpmn:/, "");
|
|
280
279
|
return {
|
|
281
|
-
group:
|
|
280
|
+
group: u,
|
|
282
281
|
className: F,
|
|
283
282
|
title: O || o("Create {type}", { type: P }),
|
|
284
283
|
action: {
|
|
@@ -288,7 +287,7 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
288
287
|
};
|
|
289
288
|
}
|
|
290
289
|
function E(l) {
|
|
291
|
-
const
|
|
290
|
+
const u = t.createShape({
|
|
292
291
|
type: "bpmn:SubProcess",
|
|
293
292
|
x: 0,
|
|
294
293
|
y: 0,
|
|
@@ -297,9 +296,9 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
297
296
|
type: "bpmn:StartEvent",
|
|
298
297
|
x: 40,
|
|
299
298
|
y: 82,
|
|
300
|
-
parent:
|
|
299
|
+
parent: u
|
|
301
300
|
});
|
|
302
|
-
e.start(l, [
|
|
301
|
+
e.start(l, [u, F], {
|
|
303
302
|
hints: {
|
|
304
303
|
autoSelect: [F]
|
|
305
304
|
}
|
|
@@ -524,7 +523,7 @@ function U(n, e, t) {
|
|
|
524
523
|
}
|
|
525
524
|
function et(n = 8, e) {
|
|
526
525
|
let t = "";
|
|
527
|
-
const i =
|
|
526
|
+
const i = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
528
527
|
for (let s = n; s > 0; --s)
|
|
529
528
|
t += i[Math.floor(Math.random() * i.length)];
|
|
530
529
|
return t;
|
|
@@ -565,7 +564,7 @@ const tt = (n, e = "body") => n ? n.get(e) : null, nt = (n, e, t = "body", i) =>
|
|
|
565
564
|
methods: {
|
|
566
565
|
init(n) {
|
|
567
566
|
const { businessObject: e } = this.element;
|
|
568
|
-
n ? (this.businessObject =
|
|
567
|
+
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
568
|
},
|
|
570
569
|
updateBaseInfo(n) {
|
|
571
570
|
const { modeling: e } = this.bpmnInstances;
|
|
@@ -620,8 +619,6 @@ var rt = function() {
|
|
|
620
619
|
at,
|
|
621
620
|
!1,
|
|
622
621
|
null,
|
|
623
|
-
null,
|
|
624
|
-
null,
|
|
625
622
|
null
|
|
626
623
|
);
|
|
627
624
|
const lt = ot.exports, pt = {
|
|
@@ -676,8 +673,6 @@ var mt = function() {
|
|
|
676
673
|
ct,
|
|
677
674
|
!1,
|
|
678
675
|
null,
|
|
679
|
-
null,
|
|
680
|
-
null,
|
|
681
676
|
null
|
|
682
677
|
);
|
|
683
678
|
const dt = ut.exports, ft = {
|
|
@@ -762,11 +757,9 @@ var bt = function() {
|
|
|
762
757
|
yt,
|
|
763
758
|
!1,
|
|
764
759
|
null,
|
|
765
|
-
null,
|
|
766
|
-
null,
|
|
767
760
|
null
|
|
768
761
|
);
|
|
769
|
-
const
|
|
762
|
+
const gt = ht.exports, vt = {
|
|
770
763
|
name: "ScriptTask",
|
|
771
764
|
props: {
|
|
772
765
|
id: String,
|
|
@@ -837,13 +830,11 @@ var Et = function() {
|
|
|
837
830
|
e.$set(e.scriptTaskForm, "resultVariable", i);
|
|
838
831
|
}, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
|
|
839
832
|
}, Ft = [], xt = /* @__PURE__ */ h(
|
|
840
|
-
|
|
833
|
+
vt,
|
|
841
834
|
Et,
|
|
842
835
|
Ft,
|
|
843
836
|
!1,
|
|
844
837
|
null,
|
|
845
|
-
null,
|
|
846
|
-
null,
|
|
847
838
|
null
|
|
848
839
|
);
|
|
849
840
|
const St = xt.exports, Tt = {
|
|
@@ -916,19 +907,17 @@ var Ct = function() {
|
|
|
916
907
|
}, expression: "newMessageForm.id" } })], 1), t("ElFormItem", { attrs: { label: "消息名称" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(i) {
|
|
917
908
|
e.$set(e.newMessageForm, "name", i);
|
|
918
909
|
}, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
|
|
919
|
-
},
|
|
910
|
+
}, kt = [], _t = /* @__PURE__ */ h(
|
|
920
911
|
Tt,
|
|
921
912
|
Ct,
|
|
922
|
-
|
|
913
|
+
kt,
|
|
923
914
|
!1,
|
|
924
915
|
null,
|
|
925
|
-
null,
|
|
926
|
-
null,
|
|
927
916
|
null
|
|
928
917
|
);
|
|
929
|
-
const It =
|
|
918
|
+
const It = _t.exports, At = {
|
|
930
919
|
name: "ElementTaskConfig",
|
|
931
|
-
components: { UserTask:
|
|
920
|
+
components: { UserTask: gt, ScriptTask: St, ReceiveTask: It },
|
|
932
921
|
props: {
|
|
933
922
|
id: String,
|
|
934
923
|
element: Object,
|
|
@@ -973,7 +962,7 @@ const It = kt.exports, At = {
|
|
|
973
962
|
},
|
|
974
963
|
methods: {
|
|
975
964
|
changeTaskAsync() {
|
|
976
|
-
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element,
|
|
965
|
+
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, d({}, this.taskConfigForm));
|
|
977
966
|
}
|
|
978
967
|
}
|
|
979
968
|
};
|
|
@@ -994,8 +983,6 @@ var wt = function() {
|
|
|
994
983
|
$t,
|
|
995
984
|
!1,
|
|
996
985
|
null,
|
|
997
|
-
null,
|
|
998
|
-
null,
|
|
999
986
|
null
|
|
1000
987
|
);
|
|
1001
988
|
const Ot = Lt.exports, Pt = {
|
|
@@ -1046,7 +1033,7 @@ const Ot = Lt.exports, Pt = {
|
|
|
1046
1033
|
this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
|
|
1047
1034
|
return;
|
|
1048
1035
|
}
|
|
1049
|
-
n.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(
|
|
1036
|
+
n.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(d(d({}, this.defaultLoopInstanceForm), n.loopCharacteristics), {
|
|
1050
1037
|
completionCondition: (i = (t = (e = n.loopCharacteristics) == null ? void 0 : e.completionCondition) == null ? void 0 : t.body) != null ? i : "",
|
|
1051
1038
|
loopCardinality: (r = (a = (s = n.loopCharacteristics) == null ? void 0 : s.loopCardinality) == null ? void 0 : a.body) != null ? r : ""
|
|
1052
1039
|
}), 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 +1157,6 @@ var Mt = function() {
|
|
|
1170
1157
|
Dt,
|
|
1171
1158
|
!1,
|
|
1172
1159
|
null,
|
|
1173
|
-
null,
|
|
1174
|
-
null,
|
|
1175
1160
|
null
|
|
1176
1161
|
);
|
|
1177
1162
|
const Vt = Bt.exports, Rt = {
|
|
@@ -1190,7 +1175,7 @@ const Vt = Bt.exports, Rt = {
|
|
|
1190
1175
|
id: {
|
|
1191
1176
|
immediate: !0,
|
|
1192
1177
|
handler() {
|
|
1193
|
-
return
|
|
1178
|
+
return c(this, null, function* () {
|
|
1194
1179
|
yield this.$nextTick(), this.resetFlowCondition();
|
|
1195
1180
|
});
|
|
1196
1181
|
}
|
|
@@ -1207,7 +1192,7 @@ const Vt = Bt.exports, Rt = {
|
|
|
1207
1192
|
this.flowConditionForm = { type: "normal" };
|
|
1208
1193
|
else {
|
|
1209
1194
|
const n = this.element.businessObject.conditionExpression;
|
|
1210
|
-
if (this.flowConditionForm = T(
|
|
1195
|
+
if (this.flowConditionForm = T(d({}, n), { type: "condition" }), this.flowConditionForm.resource) {
|
|
1211
1196
|
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
|
|
1212
1197
|
return;
|
|
1213
1198
|
}
|
|
@@ -1246,7 +1231,7 @@ const Vt = Bt.exports, Rt = {
|
|
|
1246
1231
|
}
|
|
1247
1232
|
}
|
|
1248
1233
|
};
|
|
1249
|
-
var
|
|
1234
|
+
var zt = function() {
|
|
1250
1235
|
var e = this, t = e._self._c;
|
|
1251
1236
|
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { model: e.flowConditionForm, "label-width": "90px", size: "mini" }, nativeOn: { submit: function(i) {
|
|
1252
1237
|
i.preventDefault();
|
|
@@ -1265,14 +1250,12 @@ var jt = function() {
|
|
|
1265
1250
|
}, 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
1251
|
e.$set(e.flowConditionForm, "resource", i);
|
|
1267
1252
|
}, expression: "flowConditionForm.resource" } })], 1) : e._e()] : e._e()], 2)], 1);
|
|
1268
|
-
},
|
|
1253
|
+
}, jt = [], Ut = /* @__PURE__ */ h(
|
|
1269
1254
|
Rt,
|
|
1270
|
-
jt,
|
|
1271
1255
|
zt,
|
|
1256
|
+
jt,
|
|
1272
1257
|
!1,
|
|
1273
1258
|
null,
|
|
1274
|
-
null,
|
|
1275
|
-
null,
|
|
1276
1259
|
null
|
|
1277
1260
|
);
|
|
1278
1261
|
const Nt = Ut.exports, Gt = {
|
|
@@ -1300,7 +1283,7 @@ const Nt = Ut.exports, Gt = {
|
|
|
1300
1283
|
methods: {
|
|
1301
1284
|
initDataList() {
|
|
1302
1285
|
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(
|
|
1286
|
+
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
1287
|
});
|
|
1305
1288
|
},
|
|
1306
1289
|
openModel(n) {
|
|
@@ -1353,14 +1336,12 @@ var qt = function() {
|
|
|
1353
1336
|
Kt,
|
|
1354
1337
|
!1,
|
|
1355
1338
|
null,
|
|
1356
|
-
null,
|
|
1357
|
-
null,
|
|
1358
1339
|
null
|
|
1359
1340
|
);
|
|
1360
1341
|
const Zt = Jt.exports;
|
|
1361
1342
|
function fe(n) {
|
|
1362
|
-
let e =
|
|
1363
|
-
if (n.script && (e = T(
|
|
1343
|
+
let e = d({}, n);
|
|
1344
|
+
if (n.script && (e = T(d(d({}, n), n.script), {
|
|
1364
1345
|
scriptType: n.script.resource ? "externalScript" : "inlineScript"
|
|
1365
1346
|
})), n.event === "timeout" && n.eventDefinitions && n.eventDefinitions.length) {
|
|
1366
1347
|
let t = "";
|
|
@@ -1373,8 +1354,8 @@ function fe(n) {
|
|
|
1373
1354
|
function be(n) {
|
|
1374
1355
|
var t, i;
|
|
1375
1356
|
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(
|
|
1357
|
+
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 : {}), {
|
|
1358
|
+
fields: (i = n.fields) == null ? void 0 : i.map((s) => T(d({}, s), { fieldType: s.expression ? "expression" : "string" })),
|
|
1378
1359
|
listenerType: e
|
|
1379
1360
|
});
|
|
1380
1361
|
}
|
|
@@ -1454,7 +1435,7 @@ const ye = {
|
|
|
1454
1435
|
id: {
|
|
1455
1436
|
immediate: !0,
|
|
1456
1437
|
handler(n) {
|
|
1457
|
-
return
|
|
1438
|
+
return c(this, null, function* () {
|
|
1458
1439
|
n && (yield this.$nextTick(), this.resetListenersList());
|
|
1459
1440
|
});
|
|
1460
1441
|
}
|
|
@@ -1477,26 +1458,26 @@ const ye = {
|
|
|
1477
1458
|
},
|
|
1478
1459
|
// 打开 监听器详情 侧边栏
|
|
1479
1460
|
openListenerForm(n, e) {
|
|
1480
|
-
return
|
|
1461
|
+
return c(this, null, function* () {
|
|
1481
1462
|
var t;
|
|
1482
|
-
n ? (this.listenerForm = fe(n), this.fieldsListOfListener = n.fields ? n.fields.map((i) =>
|
|
1463
|
+
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
1464
|
});
|
|
1484
1465
|
},
|
|
1485
1466
|
// 打开监听器字段编辑弹窗
|
|
1486
1467
|
openListenerFieldForm(n, e) {
|
|
1487
|
-
this.listenerFieldForm = n ?
|
|
1468
|
+
this.listenerFieldForm = n ? v(n) : { fieldType: "string" }, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, this.$nextTick(() => {
|
|
1488
1469
|
this.$refs.listenerFieldFormRef && this.$refs.listenerFieldFormRef.clearValidate();
|
|
1489
1470
|
});
|
|
1490
1471
|
},
|
|
1491
1472
|
// 保存监听器注入字段
|
|
1492
1473
|
saveListenerFiled() {
|
|
1493
|
-
return
|
|
1474
|
+
return c(this, null, function* () {
|
|
1494
1475
|
(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
1476
|
});
|
|
1496
1477
|
},
|
|
1497
1478
|
// 移除监听器字段
|
|
1498
1479
|
removeListenerField(n, e) {
|
|
1499
|
-
return
|
|
1480
|
+
return c(this, null, function* () {
|
|
1500
1481
|
try {
|
|
1501
1482
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(e, 1), this.listenerForm.fields.splice(e, 1);
|
|
1502
1483
|
} catch (t) {
|
|
@@ -1505,7 +1486,7 @@ const ye = {
|
|
|
1505
1486
|
},
|
|
1506
1487
|
// 移除监听器
|
|
1507
1488
|
removeListener(n, e) {
|
|
1508
|
-
return
|
|
1489
|
+
return c(this, null, function* () {
|
|
1509
1490
|
try {
|
|
1510
1491
|
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(e, 1), this.elementListenersList.splice(e, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
1511
1492
|
} catch (t) {
|
|
@@ -1514,7 +1495,7 @@ const ye = {
|
|
|
1514
1495
|
},
|
|
1515
1496
|
// 保存监听器配置
|
|
1516
1497
|
saveListenerConfig() {
|
|
1517
|
-
return
|
|
1498
|
+
return c(this, null, function* () {
|
|
1518
1499
|
var t, i, s, a;
|
|
1519
1500
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
1520
1501
|
return;
|
|
@@ -1612,8 +1593,6 @@ var Qt = function() {
|
|
|
1612
1593
|
en,
|
|
1613
1594
|
!1,
|
|
1614
1595
|
null,
|
|
1615
|
-
null,
|
|
1616
|
-
null,
|
|
1617
1596
|
null
|
|
1618
1597
|
);
|
|
1619
1598
|
const nn = tn.exports, sn = {
|
|
@@ -1646,10 +1625,10 @@ const nn = tn.exports, sn = {
|
|
|
1646
1625
|
methods: {
|
|
1647
1626
|
resetAttributesList() {
|
|
1648
1627
|
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 =
|
|
1628
|
+
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
1629
|
},
|
|
1651
1630
|
openAttributesForm(n, e) {
|
|
1652
|
-
this.editingPropertyIndex = e, this.propertyForm = e === -1 ? {} :
|
|
1631
|
+
this.editingPropertyIndex = e, this.propertyForm = e === -1 ? {} : v(n), this.propertyFormModelVisible = !0, this.$nextTick(() => {
|
|
1653
1632
|
this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
|
|
1654
1633
|
});
|
|
1655
1634
|
},
|
|
@@ -1720,8 +1699,6 @@ var rn = function() {
|
|
|
1720
1699
|
an,
|
|
1721
1700
|
!1,
|
|
1722
1701
|
null,
|
|
1723
|
-
null,
|
|
1724
|
-
null,
|
|
1725
1702
|
null
|
|
1726
1703
|
);
|
|
1727
1704
|
const ln = on.exports, pn = {
|
|
@@ -1772,7 +1749,7 @@ const ln = on.exports, pn = {
|
|
|
1772
1749
|
id: {
|
|
1773
1750
|
immediate: !0,
|
|
1774
1751
|
handler(n) {
|
|
1775
|
-
return
|
|
1752
|
+
return c(this, null, function* () {
|
|
1776
1753
|
n && (yield this.$nextTick(), this.resetFormList());
|
|
1777
1754
|
});
|
|
1778
1755
|
}
|
|
@@ -1781,7 +1758,7 @@ const ln = on.exports, pn = {
|
|
|
1781
1758
|
methods: {
|
|
1782
1759
|
resetFormList() {
|
|
1783
1760
|
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 =
|
|
1761
|
+
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
1762
|
},
|
|
1786
1763
|
updateElementFormKey() {
|
|
1787
1764
|
this.bpmnInstances.modeling.updateProperties(this.element, { formKey: this.formKey });
|
|
@@ -1800,14 +1777,14 @@ const ln = on.exports, pn = {
|
|
|
1800
1777
|
var t, i;
|
|
1801
1778
|
if (this.formFieldIndex = e, e !== -1) {
|
|
1802
1779
|
const s = this.formData.fields[e];
|
|
1803
|
-
this.formFieldForm =
|
|
1780
|
+
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
1781
|
} else
|
|
1805
1782
|
this.formFieldForm = {}, this.fieldEnumList = [], this.fieldConstraintsList = [], this.fieldPropertiesList = [];
|
|
1806
1783
|
this.fieldModelVisible = !0;
|
|
1807
1784
|
},
|
|
1808
1785
|
// 打开字段 某个 配置项 弹窗
|
|
1809
1786
|
openFieldOptionForm(n, e, t) {
|
|
1810
|
-
return this.fieldOptionModelVisible = !0, this.fieldOptionType = t, this.formFieldOptionIndex = e, t === "property" ? (this.fieldOptionForm = n ?
|
|
1787
|
+
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
1788
|
},
|
|
1812
1789
|
// 保存字段 某个 配置项
|
|
1813
1790
|
saveFieldOption() {
|
|
@@ -1941,8 +1918,6 @@ var mn = function() {
|
|
|
1941
1918
|
cn,
|
|
1942
1919
|
!1,
|
|
1943
1920
|
null,
|
|
1944
|
-
null,
|
|
1945
|
-
null,
|
|
1946
1921
|
null
|
|
1947
1922
|
);
|
|
1948
1923
|
const dn = un.exports, fn = {
|
|
@@ -1979,7 +1954,7 @@ const dn = un.exports, fn = {
|
|
|
1979
1954
|
id: {
|
|
1980
1955
|
immediate: !0,
|
|
1981
1956
|
handler(n) {
|
|
1982
|
-
return
|
|
1957
|
+
return c(this, null, function* () {
|
|
1983
1958
|
n && (yield this.$nextTick(), this.resetListenersList());
|
|
1984
1959
|
});
|
|
1985
1960
|
}
|
|
@@ -1991,16 +1966,16 @@ const dn = un.exports, fn = {
|
|
|
1991
1966
|
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
1967
|
},
|
|
1993
1968
|
openListenerForm(n, e) {
|
|
1994
|
-
return
|
|
1969
|
+
return c(this, null, function* () {
|
|
1995
1970
|
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(
|
|
1971
|
+
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
1972
|
fieldType: i.string ? "string" : "expression"
|
|
1998
1973
|
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
1999
1974
|
});
|
|
2000
1975
|
},
|
|
2001
1976
|
// 移除监听器
|
|
2002
1977
|
removeListener(n, e) {
|
|
2003
|
-
return
|
|
1978
|
+
return c(this, null, function* () {
|
|
2004
1979
|
try {
|
|
2005
1980
|
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(e, 1), this.elementListenersList.splice(e, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
2006
1981
|
} catch (t) {
|
|
@@ -2009,7 +1984,7 @@ const dn = un.exports, fn = {
|
|
|
2009
1984
|
},
|
|
2010
1985
|
// 保存监听器
|
|
2011
1986
|
saveListenerConfig() {
|
|
2012
|
-
return
|
|
1987
|
+
return c(this, null, function* () {
|
|
2013
1988
|
var t, i, s, a;
|
|
2014
1989
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
2015
1990
|
return;
|
|
@@ -2019,20 +1994,20 @@ const dn = un.exports, fn = {
|
|
|
2019
1994
|
},
|
|
2020
1995
|
// 打开监听器字段编辑弹窗
|
|
2021
1996
|
openListenerFieldForm(n, e) {
|
|
2022
|
-
return
|
|
1997
|
+
return c(this, null, function* () {
|
|
2023
1998
|
var t;
|
|
2024
|
-
this.listenerFieldForm = n ?
|
|
1999
|
+
this.listenerFieldForm = n ? v(n) : {}, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
|
|
2025
2000
|
});
|
|
2026
2001
|
},
|
|
2027
2002
|
// 保存监听器注入字段
|
|
2028
2003
|
saveListenerFiled() {
|
|
2029
|
-
return
|
|
2004
|
+
return c(this, null, function* () {
|
|
2030
2005
|
(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
2006
|
});
|
|
2032
2007
|
},
|
|
2033
2008
|
// 移除监听器字段
|
|
2034
2009
|
removeListenerField(n, e) {
|
|
2035
|
-
return
|
|
2010
|
+
return c(this, null, function* () {
|
|
2036
2011
|
try {
|
|
2037
2012
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(e, 1), this.listenerForm.fields.splice(e, 1);
|
|
2038
2013
|
} catch (t) {
|
|
@@ -2118,15 +2093,13 @@ var bn = function() {
|
|
|
2118
2093
|
yn,
|
|
2119
2094
|
!1,
|
|
2120
2095
|
null,
|
|
2121
|
-
null,
|
|
2122
|
-
null,
|
|
2123
2096
|
null
|
|
2124
2097
|
);
|
|
2125
|
-
const
|
|
2098
|
+
const gn = hn.exports, se = ["base", "task", "form", "multiInstance"], vn = {
|
|
2126
2099
|
name: "PropertiesPanel",
|
|
2127
2100
|
componentName: "MyPropertiesPanel",
|
|
2128
2101
|
components: {
|
|
2129
|
-
UserTaskListeners:
|
|
2102
|
+
UserTaskListeners: gn,
|
|
2130
2103
|
ElementForm: dn,
|
|
2131
2104
|
ElementProperties: ln,
|
|
2132
2105
|
ElementListeners: nn,
|
|
@@ -2298,13 +2271,11 @@ var En = function() {
|
|
|
2298
2271
|
return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-promotion" }), e._v("其他")])];
|
|
2299
2272
|
}, 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
2273
|
}, Fn = [], xn = /* @__PURE__ */ h(
|
|
2301
|
-
|
|
2274
|
+
vn,
|
|
2302
2275
|
En,
|
|
2303
2276
|
Fn,
|
|
2304
2277
|
!1,
|
|
2305
2278
|
null,
|
|
2306
|
-
null,
|
|
2307
|
-
null,
|
|
2308
2279
|
null
|
|
2309
2280
|
);
|
|
2310
2281
|
const Sn = xn.exports, Tn = (n, e, t) => (t = t || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
|
|
@@ -2335,7 +2306,7 @@ function Cn(n) {
|
|
|
2335
2306
|
});
|
|
2336
2307
|
};
|
|
2337
2308
|
}
|
|
2338
|
-
const
|
|
2309
|
+
const kn = {
|
|
2339
2310
|
// 添加部分
|
|
2340
2311
|
"Append EndEvent": "追加结束事件",
|
|
2341
2312
|
"Append Gateway": "追加网关",
|
|
@@ -2583,7 +2554,7 @@ const _n = {
|
|
|
2583
2554
|
Data: "数据",
|
|
2584
2555
|
TextAnnotation: "文本说明",
|
|
2585
2556
|
Tasks: "任务"
|
|
2586
|
-
},
|
|
2557
|
+
}, _n = "Camunda", In = "http://camunda.org/schema/1.0/bpmn", An = "camunda", wn = {
|
|
2587
2558
|
tagAlias: "lowerCase"
|
|
2588
2559
|
}, $n = [], Ln = [
|
|
2589
2560
|
{
|
|
@@ -3702,7 +3673,7 @@ const _n = {
|
|
|
3702
3673
|
]
|
|
3703
3674
|
}
|
|
3704
3675
|
], On = [], re = {
|
|
3705
|
-
name:
|
|
3676
|
+
name: _n,
|
|
3706
3677
|
uri: In,
|
|
3707
3678
|
prefix: An,
|
|
3708
3679
|
xml: wn,
|
|
@@ -4809,15 +4780,15 @@ const _n = {
|
|
|
4809
4780
|
}
|
|
4810
4781
|
]
|
|
4811
4782
|
}
|
|
4812
|
-
],
|
|
4783
|
+
], zn = [], ae = {
|
|
4813
4784
|
name: Pn,
|
|
4814
4785
|
uri: Mn,
|
|
4815
4786
|
prefix: Dn,
|
|
4816
4787
|
xml: Bn,
|
|
4817
4788
|
associations: Vn,
|
|
4818
4789
|
types: Rn,
|
|
4819
|
-
emumerations:
|
|
4820
|
-
},
|
|
4790
|
+
emumerations: zn
|
|
4791
|
+
}, jn = "Flowable", Un = "http://flowable.org/bpmn", Nn = "flowable", Gn = {
|
|
4821
4792
|
tagAlias: "lowerCase"
|
|
4822
4793
|
}, qn = [], Kn = [], Jn = [
|
|
4823
4794
|
{
|
|
@@ -6182,7 +6153,7 @@ const _n = {
|
|
|
6182
6153
|
]
|
|
6183
6154
|
}
|
|
6184
6155
|
], oe = {
|
|
6185
|
-
name:
|
|
6156
|
+
name: jn,
|
|
6186
6157
|
uri: Un,
|
|
6187
6158
|
prefix: Nn,
|
|
6188
6159
|
xml: Gn,
|
|
@@ -6199,34 +6170,34 @@ function A(n) {
|
|
|
6199
6170
|
}
|
|
6200
6171
|
A.$inject = ["eventBus"];
|
|
6201
6172
|
A.prototype.canCopyProperty = function(n, e) {
|
|
6202
|
-
if (
|
|
6173
|
+
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
6174
|
return !1;
|
|
6204
6175
|
};
|
|
6205
6176
|
A.prototype.canHostInputOutput = function(n) {
|
|
6206
6177
|
if (x(n, "camunda:Connector"))
|
|
6207
6178
|
return !0;
|
|
6208
6179
|
const t = x(n, "bpmn:FlowNode");
|
|
6209
|
-
return !(!t ||
|
|
6180
|
+
return !(!t || ge(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || _(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
6210
6181
|
};
|
|
6211
6182
|
A.prototype.canHostConnector = function(n) {
|
|
6212
6183
|
const e = x(n, "camunda:ServiceTaskLike");
|
|
6213
|
-
return
|
|
6184
|
+
return _(e, "bpmn:MessageEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
|
|
6214
6185
|
};
|
|
6215
6186
|
A.prototype.canHostIn = function(n) {
|
|
6216
6187
|
return x(n, "bpmn:CallActivity") ? !0 : x(n, "bpmn:SignalEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
|
|
6217
6188
|
};
|
|
6218
|
-
function
|
|
6219
|
-
return n &&
|
|
6189
|
+
function _(n, e) {
|
|
6190
|
+
return n && _e(n.$instanceOf) && n.$instanceOf(e);
|
|
6220
6191
|
}
|
|
6221
|
-
function
|
|
6192
|
+
function ge(n, e) {
|
|
6222
6193
|
return I(e, function(t) {
|
|
6223
|
-
return
|
|
6194
|
+
return _(n, t);
|
|
6224
6195
|
});
|
|
6225
6196
|
}
|
|
6226
6197
|
function x(n, e) {
|
|
6227
6198
|
if (!e)
|
|
6228
6199
|
return n.$parent;
|
|
6229
|
-
if (
|
|
6200
|
+
if (_(n, e))
|
|
6230
6201
|
return n;
|
|
6231
6202
|
if (n.$parent)
|
|
6232
6203
|
return x(n.$parent, e);
|
|
@@ -6254,7 +6225,7 @@ function H(n, e) {
|
|
|
6254
6225
|
function Qn(n) {
|
|
6255
6226
|
return n && n.length;
|
|
6256
6227
|
}
|
|
6257
|
-
function
|
|
6228
|
+
function z(n, e) {
|
|
6258
6229
|
return Qn(n) && I(n, function(t) {
|
|
6259
6230
|
return H(t, e);
|
|
6260
6231
|
});
|
|
@@ -6281,9 +6252,9 @@ function W(n) {
|
|
|
6281
6252
|
W.$inject = ["eventBus"];
|
|
6282
6253
|
W.prototype.canCloneProperty = function(n, e) {
|
|
6283
6254
|
if (G("activiti:FailedJobRetryTimeCycle", e, n))
|
|
6284
|
-
return
|
|
6255
|
+
return z(n.eventDefinitions, "bpmn:TimerEventDefinition") || z(n.eventDefinitions, "bpmn:SignalEventDefinition") || H(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
6285
6256
|
if (G("activiti:Connector", e, n) || G("activiti:Field", e, n))
|
|
6286
|
-
return
|
|
6257
|
+
return z(n.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
6287
6258
|
};
|
|
6288
6259
|
const ti = {
|
|
6289
6260
|
__init__: ["ActivitiModdleExtension"],
|
|
@@ -6299,7 +6270,7 @@ function X(n, e) {
|
|
|
6299
6270
|
function ii(n) {
|
|
6300
6271
|
return n && n.length;
|
|
6301
6272
|
}
|
|
6302
|
-
function
|
|
6273
|
+
function j(n, e) {
|
|
6303
6274
|
return ii(n) && I(n, function(t) {
|
|
6304
6275
|
return X(t, e);
|
|
6305
6276
|
});
|
|
@@ -6326,20 +6297,20 @@ function Y(n) {
|
|
|
6326
6297
|
Y.$inject = ["eventBus"];
|
|
6327
6298
|
Y.prototype.canCloneProperty = function(n, e) {
|
|
6328
6299
|
if (q("flowable:FailedJobRetryTimeCycle", e, n))
|
|
6329
|
-
return
|
|
6300
|
+
return j(n.eventDefinitions, "bpmn:TimerEventDefinition") || j(n.eventDefinitions, "bpmn:SignalEventDefinition") || X(n.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
6330
6301
|
if (q("flowable:Connector", e, n) || q("flowable:Field", e, n))
|
|
6331
|
-
return
|
|
6302
|
+
return j(n.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
6332
6303
|
};
|
|
6333
6304
|
const ri = {
|
|
6334
6305
|
__init__: ["FlowableModdleExtension"],
|
|
6335
6306
|
FlowableModdleExtension: ["type", Y]
|
|
6336
6307
|
};
|
|
6337
6308
|
pe.registerLanguage("xml", Re);
|
|
6338
|
-
pe.registerLanguage("json",
|
|
6309
|
+
pe.registerLanguage("json", ze);
|
|
6339
6310
|
const ai = {
|
|
6340
6311
|
name: "ProcessDesigner",
|
|
6341
6312
|
components: {
|
|
6342
|
-
HighlightJS:
|
|
6313
|
+
HighlightJS: je
|
|
6343
6314
|
},
|
|
6344
6315
|
componentName: "MyProcessDesigner",
|
|
6345
6316
|
props: {
|
|
@@ -6412,7 +6383,7 @@ const ai = {
|
|
|
6412
6383
|
return te(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
6413
6384
|
te(this.additionalModel) ? n.push(...this.additionalModel) : this.additionalModel && n.push(this.additionalModel);
|
|
6414
6385
|
const e = {
|
|
6415
|
-
translate: ["value", Cn(this.translations ||
|
|
6386
|
+
translate: ["value", Cn(this.translations || kn)]
|
|
6416
6387
|
};
|
|
6417
6388
|
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
6389
|
},
|
|
@@ -6423,20 +6394,15 @@ const ai = {
|
|
|
6423
6394
|
if (this.moddleExtension)
|
|
6424
6395
|
for (const e in this.moddleExtension)
|
|
6425
6396
|
n[e] = this.moddleExtension[e];
|
|
6426
|
-
return this.prefix === "activiti" && (n.activiti = T(
|
|
6397
|
+
return this.prefix === "activiti" && (n.activiti = T(d({}, ae), {
|
|
6427
6398
|
types: [...ae.types, ...this.extendTypes || []]
|
|
6428
|
-
})), this.prefix === "flowable" && (n.flowable = T(
|
|
6399
|
+
})), this.prefix === "flowable" && (n.flowable = T(d({}, oe), {
|
|
6429
6400
|
types: [...oe.types, ...this.extendTypes || []]
|
|
6430
|
-
})), this.prefix === "camunda" && (n.camunda = T(
|
|
6401
|
+
})), this.prefix === "camunda" && (n.camunda = T(d({}, re), {
|
|
6431
6402
|
types: [...re.types, ...this.extendTypes || []]
|
|
6432
6403
|
})), n;
|
|
6433
6404
|
}
|
|
6434
6405
|
},
|
|
6435
|
-
watch: {
|
|
6436
|
-
value(n) {
|
|
6437
|
-
this.createNewDiagram(n);
|
|
6438
|
-
}
|
|
6439
|
-
},
|
|
6440
6406
|
mounted() {
|
|
6441
6407
|
this.initBpmnModeler(), this.createNewDiagram(this.value), this.$once("hook:beforeDestroy", () => {
|
|
6442
6408
|
this.bpmnModeler && this.bpmnModeler.destroy(), this.$emit("destroy", this.bpmnModeler), this.bpmnModeler = null;
|
|
@@ -6444,7 +6410,7 @@ const ai = {
|
|
|
6444
6410
|
},
|
|
6445
6411
|
methods: {
|
|
6446
6412
|
initBpmnModeler() {
|
|
6447
|
-
this.bpmnModeler || (this.bpmnModeler = new De(
|
|
6413
|
+
this.bpmnModeler || (this.bpmnModeler = new De(d({
|
|
6448
6414
|
container: this.$refs["bpmn-canvas"],
|
|
6449
6415
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
6450
6416
|
additionalModules: this.additionalModules,
|
|
@@ -6458,7 +6424,7 @@ const ai = {
|
|
|
6458
6424
|
const s = t.replace(/\./g, "-"), a = i ? i.element : null;
|
|
6459
6425
|
e.$emit(s, a, i);
|
|
6460
6426
|
});
|
|
6461
|
-
}), n.on("commandStack.changed", (t) =>
|
|
6427
|
+
}), n.on("commandStack.changed", (t) => c(this, null, function* () {
|
|
6462
6428
|
try {
|
|
6463
6429
|
this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
|
|
6464
6430
|
const { xml: i } = yield this.bpmnModeler.saveXML({ format: !0 });
|
|
@@ -6474,7 +6440,7 @@ const ai = {
|
|
|
6474
6440
|
},
|
|
6475
6441
|
/* 创建新的流程图 */
|
|
6476
6442
|
createNewDiagram(n) {
|
|
6477
|
-
return
|
|
6443
|
+
return c(this, null, function* () {
|
|
6478
6444
|
const e = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, i = n || Tn(e, t, this.prefix);
|
|
6479
6445
|
try {
|
|
6480
6446
|
const { warnings: s } = yield this.bpmnModeler.importXML(i);
|
|
@@ -6490,7 +6456,7 @@ const ai = {
|
|
|
6490
6456
|
* @param {*} name
|
|
6491
6457
|
*/
|
|
6492
6458
|
downloadProcess(n, e = "diagram") {
|
|
6493
|
-
return
|
|
6459
|
+
return c(this, null, function* () {
|
|
6494
6460
|
try {
|
|
6495
6461
|
const { err: i, xml: s } = yield this.bpmnModeler.saveXML();
|
|
6496
6462
|
i && console.error(`[Process Designer Warn ]: ${i.message || i}`);
|
|
@@ -6651,8 +6617,6 @@ var oi = function() {
|
|
|
6651
6617
|
li,
|
|
6652
6618
|
!1,
|
|
6653
6619
|
null,
|
|
6654
|
-
null,
|
|
6655
|
-
null,
|
|
6656
6620
|
null
|
|
6657
6621
|
);
|
|
6658
6622
|
const mi = pi.exports, ci = {
|
|
@@ -6705,6 +6669,11 @@ const mi = pi.exports, ci = {
|
|
|
6705
6669
|
methods: {
|
|
6706
6670
|
initModeler(n) {
|
|
6707
6671
|
this.modeler = n;
|
|
6672
|
+
},
|
|
6673
|
+
refresh() {
|
|
6674
|
+
return c(this, null, function* () {
|
|
6675
|
+
yield this.$nextTick(), yield this.$refs.processDesigner.createNewDiagram(this.value);
|
|
6676
|
+
});
|
|
6708
6677
|
}
|
|
6709
6678
|
}
|
|
6710
6679
|
};
|
|
@@ -6728,11 +6697,9 @@ var ui = function() {
|
|
|
6728
6697
|
di,
|
|
6729
6698
|
!1,
|
|
6730
6699
|
null,
|
|
6731
|
-
null,
|
|
6732
|
-
null,
|
|
6733
6700
|
null
|
|
6734
6701
|
);
|
|
6735
|
-
const
|
|
6702
|
+
const Ri = fi.exports;
|
|
6736
6703
|
export {
|
|
6737
|
-
|
|
6704
|
+
Ri as default
|
|
6738
6705
|
};
|