@web-utils/component 3.2.1 → 3.2.3
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/chunks/{FormTemp.0eqGAu6W.mjs → FormTemp.0ezzipG4.mjs} +5 -6
- package/chunks/FyUEditor.c06LkvIy.mjs +224 -0
- package/chunks/FyUEditor.vue_vue_type_style_index_0_lang.0-PDx197.mjs +167 -0
- package/chunks/IconTemp.tzsg5qth.mjs +29 -0
- package/chunks/ResizeObserver.sOHk2Cm-.mjs +51 -0
- package/chunks/{form-input-mixin.IKogWBfn.mjs → form-input-mixin.DLHG0EnH.mjs} +2 -2
- package/chunks/{form-item-mixin.BilKDUlK.mjs → form-item-mixin.gd9p9Rrj.mjs} +1 -1
- package/chunks/{index.LGsb2aDq.mjs → index.Uf8ONhVI.mjs} +3 -3
- package/data-display/index.mjs +129 -15
- package/data-table-picker/index.mjs +1 -1
- package/easy-popup/index.mjs +8 -7
- package/editable-tree/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow-designer/index.mjs +218 -164
- package/flow-viewer/index.mjs +161 -73
- package/form-button/index.mjs +25 -11
- package/form-cascader/index.mjs +2 -2
- package/form-checkbox-group/index.mjs +2 -2
- package/form-date-picker/index.mjs +2 -2
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +2 -2
- package/form-input-email/index.mjs +2 -2
- package/form-input-id-card/index.mjs +2 -2
- package/form-input-number/index.mjs +2 -2
- package/form-input-phone-number/index.mjs +2 -2
- package/form-input-tag/index.mjs +155 -31
- package/form-input-time/index.mjs +2 -2
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +2 -2
- package/form-select/index.mjs +2 -2
- package/form-switch/index.mjs +2 -2
- package/form-textarea/index.mjs +2 -2
- package/form-view/index.mjs +12 -13
- package/fy-curd/index.mjs +4 -5
- package/fy-form/index.mjs +1 -1
- package/fy-form-design/index.mjs +498 -329
- package/fy-input-icon/index.mjs +20 -21
- package/fy-u-editor/index.mjs +75 -237
- package/highlight-j-s/index.mjs +4 -3
- package/icon-temp/index.mjs +7 -6
- package/index.mjs +446 -446
- package/nav-bar/index.mjs +7 -6
- package/package.json +1 -1
- package/page/index.mjs +1 -0
- package/page-header/index.mjs +3 -2
- package/page-skeleton/index.mjs +95 -17
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +8 -8
- package/present-view/index.mjs +3 -4
- package/resize-observer/index.mjs +4 -3
- package/split-pane/index.mjs +3 -4
- package/swiper/index.mjs +3 -4
- package/table-view/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +10 -9
package/flow-designer/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var ge = Object.defineProperty, ve = Object.defineProperties;
|
|
2
2
|
var Ee = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var ee = Object.getOwnPropertySymbols;
|
|
4
4
|
var Fe = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var te = (i, e, t) => e in i ? ge(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, u = (i, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
Fe.call(e, t) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
xe.call(e, t) &&
|
|
7
|
+
Fe.call(e, t) && te(i, t, e[t]);
|
|
8
|
+
if (ee)
|
|
9
|
+
for (var t of ee(e))
|
|
10
|
+
xe.call(e, t) && te(i, t, e[t]);
|
|
11
11
|
return i;
|
|
12
12
|
}, T = (i, e) => ve(i, Ee(e));
|
|
13
13
|
var d = (i, e, t) => new Promise((n, s) => {
|
|
@@ -26,31 +26,31 @@ var d = (i, e, t) => new Promise((n, s) => {
|
|
|
26
26
|
}, o = (m) => m.done ? n(m.value) : Promise.resolve(m.value).then(r, a);
|
|
27
27
|
o((t = t.apply(i, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { assign as y, isArray as Se, forEach as Te, isObject as Ce, isFunction as Ie, some as
|
|
30
|
-
import { is as
|
|
31
|
-
import { isExpanded as ke, isEventSubProcess as
|
|
32
|
-
import { isAny as
|
|
33
|
-
import { getChildLanes as
|
|
29
|
+
import { assign as y, isArray as Se, forEach as Te, isObject as Ce, isFunction as Ie, some as _ } from "min-dash";
|
|
30
|
+
import { is as j } from "bpmn-js/lib/util/ModelUtil";
|
|
31
|
+
import { isExpanded as ke, isEventSubProcess as _e } from "bpmn-js/lib/util/DiUtil";
|
|
32
|
+
import { isAny as G } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
|
|
33
|
+
import { getChildLanes as Ae } from "bpmn-js/lib/features/modeling/util/LaneUtil";
|
|
34
34
|
import { hasPrimaryModifier as we } from "diagram-js/lib/util/Mouse";
|
|
35
|
-
import
|
|
36
|
-
import
|
|
35
|
+
import le from "bpmn-js/lib/features/palette/PaletteProvider";
|
|
36
|
+
import J from "diagram-js/lib/features/auto-place/AutoPlace";
|
|
37
37
|
import { getMid as $e, asTRBL as Le } from "diagram-js/lib/layout/LayoutUtil";
|
|
38
|
-
import { fastClone as v, isBlank as Oe, isArray as
|
|
38
|
+
import { fastClone as v, isBlank as Oe, escapeHtml as Pe, isArray as ne } from "@web-utils/core";
|
|
39
39
|
import { n as h } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
40
40
|
import "bpmn-js/dist/assets/bpmn-js.css";
|
|
41
41
|
import "bpmn-js/dist/assets/diagram-js.css";
|
|
42
42
|
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
|
|
43
43
|
import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
|
|
53
|
-
function
|
|
44
|
+
import Me from "bpmn-js/lib/Modeler";
|
|
45
|
+
import De from "bpmn-js/lib/features/drilldown/index.js";
|
|
46
|
+
import Be from "bpmn-js-token-simulation";
|
|
47
|
+
import Re from "x2js";
|
|
48
|
+
import L from "highlight.js/lib/core";
|
|
49
|
+
import Ve from "highlight.js/lib/languages/xml";
|
|
50
|
+
import je from "highlight.js/lib/languages/json";
|
|
51
|
+
import "highlight.js/styles/atom-one-dark-reasonable.css";
|
|
52
|
+
/* empty css */
|
|
53
|
+
function H(i, e, t, n, s, r, a, o, m, F, p, l, c) {
|
|
54
54
|
i = i || {}, n.registerProvider(this), this._contextPad = n, this._modeling = s, this._elementFactory = r, this._connect = a, this._create = o, this._popupMenu = m, this._canvas = F, this._rules = p, this._translate = l, i.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(E) {
|
|
55
55
|
const C = E.context.shape;
|
|
56
56
|
if (!we(E) || !n.isOpen(C))
|
|
@@ -59,7 +59,7 @@ function J(i, e, t, n, s, r, a, o, m, F, p, l, c) {
|
|
|
59
59
|
f.replace && f.replace.action.click(E, C);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
H.$inject = [
|
|
63
63
|
"config.contextPad",
|
|
64
64
|
"injector",
|
|
65
65
|
"eventBus",
|
|
@@ -74,7 +74,7 @@ J.$inject = [
|
|
|
74
74
|
"translate",
|
|
75
75
|
"elementRegistry"
|
|
76
76
|
];
|
|
77
|
-
|
|
77
|
+
H.prototype.getContextPadEntries = function(i) {
|
|
78
78
|
const e = this._contextPad, t = this._modeling, n = this._elementFactory, s = this._connect, r = this._create, a = this._popupMenu, o = this._canvas, m = this._rules, F = this._autoPlace, p = this._translate, l = {};
|
|
79
79
|
if (i.type === "label")
|
|
80
80
|
return l;
|
|
@@ -82,22 +82,22 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
82
82
|
function E(b, S) {
|
|
83
83
|
s.start(b, S);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function P() {
|
|
86
86
|
t.removeElements([i]);
|
|
87
87
|
}
|
|
88
88
|
function C(b) {
|
|
89
|
-
const g = o.getContainer(), w = e.getPad(b).html, $ = g.getBoundingClientRect(),
|
|
89
|
+
const g = o.getContainer(), w = e.getPad(b).html, $ = g.getBoundingClientRect(), D = w.getBoundingClientRect(), B = D.top - $.top;
|
|
90
90
|
return {
|
|
91
|
-
x:
|
|
92
|
-
y:
|
|
91
|
+
x: D.left - $.left,
|
|
92
|
+
y: B + D.height + 5
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
function f(b, S, g, w) {
|
|
96
96
|
typeof g != "string" && (w = g, g = p("Append {type}", { type: b.replace(/^bpmn:/, "") }));
|
|
97
|
-
function $(
|
|
98
|
-
const
|
|
99
|
-
r.start(
|
|
100
|
-
source:
|
|
97
|
+
function $(B, R) {
|
|
98
|
+
const V = n.createShape(y({ type: b }, w));
|
|
99
|
+
r.start(B, V, {
|
|
100
|
+
source: R
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
return {
|
|
@@ -106,20 +106,20 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
106
106
|
title: g,
|
|
107
107
|
action: {
|
|
108
108
|
dragstart: $,
|
|
109
|
-
click: F ? function(
|
|
110
|
-
const
|
|
111
|
-
F.append(
|
|
109
|
+
click: F ? function(B, R) {
|
|
110
|
+
const V = n.createShape(y({ type: b }, w));
|
|
111
|
+
F.append(R, V);
|
|
112
112
|
} : $
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function M(b) {
|
|
117
117
|
return function(S, g) {
|
|
118
118
|
t.splitLane(g, b), e.open(g, !0);
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
if (
|
|
122
|
-
const b =
|
|
121
|
+
if (G(c, ["bpmn:Lane", "bpmn:Participant"]) && ke(c)) {
|
|
122
|
+
const b = Ae(i);
|
|
123
123
|
y(l, {
|
|
124
124
|
"lane-insert-above": {
|
|
125
125
|
group: "lane-insert-above",
|
|
@@ -137,7 +137,7 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
137
137
|
className: "bpmn-icon-lane-divide-two",
|
|
138
138
|
title: p("Divide into two Lanes"),
|
|
139
139
|
action: {
|
|
140
|
-
click:
|
|
140
|
+
click: M(2)
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}), i.height >= 180 && y(l, {
|
|
@@ -146,7 +146,7 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
146
146
|
className: "bpmn-icon-lane-divide-three",
|
|
147
147
|
title: p("Divide into three Lanes"),
|
|
148
148
|
action: {
|
|
149
|
-
click:
|
|
149
|
+
click: M(3)
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
})), y(l, {
|
|
@@ -162,7 +162,7 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
j(c, "bpmn:FlowNode") && (j(c, "bpmn:EventBasedGateway") ? y(l, {
|
|
166
166
|
"append.receive-task": f(
|
|
167
167
|
"bpmn:ReceiveTask",
|
|
168
168
|
"bpmn-icon-receive-task",
|
|
@@ -192,7 +192,7 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
192
192
|
p("Append SignalIntermediateCatchEvent"),
|
|
193
193
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
194
194
|
)
|
|
195
|
-
}) :
|
|
195
|
+
}) : ie(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
196
196
|
"append.compensation-activity": f(
|
|
197
197
|
"bpmn:Task",
|
|
198
198
|
"bpmn-icon-task",
|
|
@@ -201,7 +201,7 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
201
201
|
isForCompensation: !0
|
|
202
202
|
}
|
|
203
203
|
)
|
|
204
|
-
}) : !
|
|
204
|
+
}) : !j(c, "bpmn:EndEvent") && !c.isForCompensation && !ie(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !_e(c) && y(l, {
|
|
205
205
|
"append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
|
|
206
206
|
"append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
|
|
207
207
|
"append.append-task": f("bpmn:UserTask", "bpmn-icon-user-task", p("Append Task")),
|
|
@@ -224,7 +224,7 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), G(c, [
|
|
228
228
|
"bpmn:FlowNode",
|
|
229
229
|
"bpmn:InteractionNode",
|
|
230
230
|
"bpmn:DataObjectReference",
|
|
@@ -242,7 +242,7 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
242
242
|
dragstart: E
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), G(c, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
|
|
246
246
|
connect: {
|
|
247
247
|
group: "connect",
|
|
248
248
|
className: "bpmn-icon-connection-multi",
|
|
@@ -252,7 +252,7 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
252
252
|
dragstart: E
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
}),
|
|
255
|
+
}), j(c, "bpmn:Group") && y(l, {
|
|
256
256
|
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
257
257
|
});
|
|
258
258
|
let I = m.allowed("elements.delete", { elements: [i] });
|
|
@@ -262,12 +262,12 @@ J.prototype.getContextPadEntries = function(i) {
|
|
|
262
262
|
className: "bpmn-icon-trash",
|
|
263
263
|
title: p("Remove"),
|
|
264
264
|
action: {
|
|
265
|
-
click:
|
|
265
|
+
click: P
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}), l;
|
|
269
269
|
};
|
|
270
|
-
function
|
|
270
|
+
function ie(i, e, t) {
|
|
271
271
|
const n = i.$instanceOf(e);
|
|
272
272
|
let s = !1;
|
|
273
273
|
const r = i.eventDefinitions || [];
|
|
@@ -277,10 +277,10 @@ function ne(i, e, t) {
|
|
|
277
277
|
}
|
|
278
278
|
const ze = {
|
|
279
279
|
__init__: ["contextPadProvider"],
|
|
280
|
-
contextPadProvider: ["type",
|
|
280
|
+
contextPadProvider: ["type", H]
|
|
281
281
|
};
|
|
282
|
-
function
|
|
283
|
-
|
|
282
|
+
function O(i, e, t, n, s, r, a, o, m) {
|
|
283
|
+
le.call(
|
|
284
284
|
this,
|
|
285
285
|
i,
|
|
286
286
|
e,
|
|
@@ -296,19 +296,19 @@ function L(i, e, t, n, s, r, a, o, m) {
|
|
|
296
296
|
}
|
|
297
297
|
const Z = function() {
|
|
298
298
|
};
|
|
299
|
-
Z.prototype =
|
|
299
|
+
Z.prototype = le.prototype;
|
|
300
300
|
Z.prototype.getPaletteEntries = function() {
|
|
301
301
|
const i = {}, e = this._create, t = this._elementFactory, n = this._spaceTool, s = this._lassoTool, r = this._handTool, a = this._globalConnect, o = this._translate;
|
|
302
|
-
function m(l, c, E,
|
|
302
|
+
function m(l, c, E, P, C) {
|
|
303
303
|
function f(I) {
|
|
304
304
|
const b = t.createShape(y({ type: l }, C));
|
|
305
305
|
C && (b.businessObject.di.isExpanded = C.isExpanded), e.start(I, b);
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const M = l.replace(/^bpmn:/, "");
|
|
308
308
|
return {
|
|
309
309
|
group: c,
|
|
310
310
|
className: E,
|
|
311
|
-
title:
|
|
311
|
+
title: P || o("Create {type}", { type: M }),
|
|
312
312
|
action: {
|
|
313
313
|
dragstart: f,
|
|
314
314
|
click: f
|
|
@@ -428,7 +428,7 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
428
428
|
// 'create.group': createAction('bpmn:Group', 'artifact', 'bpmn-icon-group', translate('Create Group'))
|
|
429
429
|
}), i;
|
|
430
430
|
};
|
|
431
|
-
|
|
431
|
+
O.$inject = [
|
|
432
432
|
"palette",
|
|
433
433
|
"create",
|
|
434
434
|
"elementFactory",
|
|
@@ -439,14 +439,14 @@ L.$inject = [
|
|
|
439
439
|
"moddle",
|
|
440
440
|
"translate"
|
|
441
441
|
];
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
const
|
|
442
|
+
O.prototype = new Z();
|
|
443
|
+
O.prototype.constructor = O;
|
|
444
|
+
const Ne = {
|
|
445
445
|
__init__: ["customPalette"],
|
|
446
|
-
customPalette: ["type",
|
|
446
|
+
customPalette: ["type", O]
|
|
447
447
|
};
|
|
448
448
|
function pe(i, e) {
|
|
449
|
-
|
|
449
|
+
J.call(this, i, e, 3e3), i.on("autoPlace", 3e3, function(t) {
|
|
450
450
|
const n = t.shape, s = t.source;
|
|
451
451
|
return Ke(s, n);
|
|
452
452
|
}), this.append = function(t, n, s) {
|
|
@@ -466,7 +466,7 @@ function pe(i, e) {
|
|
|
466
466
|
}), a;
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Ue(i) {
|
|
470
470
|
return {
|
|
471
471
|
top: i.y,
|
|
472
472
|
right: i.x + (i.width || 0),
|
|
@@ -488,7 +488,7 @@ function qe(i) {
|
|
|
488
488
|
}
|
|
489
489
|
function Ke(i, e, t) {
|
|
490
490
|
t || (t = {});
|
|
491
|
-
const n = t.defaultDistance || 50, s = qe(i), r =
|
|
491
|
+
const n = t.defaultDistance || 50, s = qe(i), r = Ue(i);
|
|
492
492
|
return {
|
|
493
493
|
x: s.x,
|
|
494
494
|
y: r.bottom + n + e.height / 2
|
|
@@ -496,14 +496,14 @@ function Ke(i, e, t) {
|
|
|
496
496
|
}
|
|
497
497
|
const me = function() {
|
|
498
498
|
};
|
|
499
|
-
me.prototype =
|
|
499
|
+
me.prototype = J.prototype;
|
|
500
500
|
pe.prototype = new me();
|
|
501
|
-
pe.prototype.constructor =
|
|
502
|
-
const Je = 200,
|
|
501
|
+
pe.prototype.constructor = J;
|
|
502
|
+
const Je = 200, He = 100;
|
|
503
503
|
function ce(i, e, t) {
|
|
504
|
-
i.on("autoPlace",
|
|
504
|
+
i.on("autoPlace", He, function(n) {
|
|
505
505
|
const s = n.shape, r = n.source;
|
|
506
|
-
return
|
|
506
|
+
return Ze(r, s);
|
|
507
507
|
}), i.on("autoPlace.end", function(n) {
|
|
508
508
|
t.scrollToElement(n.shape);
|
|
509
509
|
}), this.append = function(n, s, r) {
|
|
@@ -522,7 +522,7 @@ function ce(i, e, t) {
|
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
ce.$inject = ["eventBus", "modeling", "canvas"];
|
|
525
|
-
function
|
|
525
|
+
function Ze(i, e) {
|
|
526
526
|
const t = Je, n = $e(i);
|
|
527
527
|
return {
|
|
528
528
|
x: Le(i).right + t + e.width / 2,
|
|
@@ -979,7 +979,7 @@ var Tt = function() {
|
|
|
979
979
|
null,
|
|
980
980
|
null
|
|
981
981
|
);
|
|
982
|
-
const kt = It.exports,
|
|
982
|
+
const kt = It.exports, _t = {
|
|
983
983
|
name: "ElementTaskConfig",
|
|
984
984
|
components: { UserTask: ht, ScriptTask: xt, ReceiveTask: kt },
|
|
985
985
|
props: {
|
|
@@ -1030,7 +1030,7 @@ const kt = It.exports, At = {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
|
-
var
|
|
1033
|
+
var At = function() {
|
|
1034
1034
|
var e = this, t = e._self._c;
|
|
1035
1035
|
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(n) {
|
|
1036
1036
|
n.preventDefault();
|
|
@@ -1042,8 +1042,8 @@ var _t = function() {
|
|
|
1042
1042
|
e.$set(e.taskConfigForm, "exclusive", n);
|
|
1043
1043
|
}, expression: "taskConfigForm.exclusive" } }) : e._e()], 1), t(e.witchTaskComponent, e._b({ tag: "Component" }, "Component", e.$props, !1))], 1)], 1);
|
|
1044
1044
|
}, wt = [], $t = /* @__PURE__ */ h(
|
|
1045
|
-
At,
|
|
1046
1045
|
_t,
|
|
1046
|
+
At,
|
|
1047
1047
|
wt,
|
|
1048
1048
|
!1,
|
|
1049
1049
|
null,
|
|
@@ -1308,7 +1308,7 @@ var Vt = function() {
|
|
|
1308
1308
|
null,
|
|
1309
1309
|
null
|
|
1310
1310
|
);
|
|
1311
|
-
const
|
|
1311
|
+
const Nt = zt.exports, Ut = {
|
|
1312
1312
|
name: "SignalAndMessage",
|
|
1313
1313
|
props: {
|
|
1314
1314
|
bpmnInstances: Object
|
|
@@ -1381,7 +1381,7 @@ var Gt = function() {
|
|
|
1381
1381
|
var i = this, e = i._self._c;
|
|
1382
1382
|
return e("span", [e("i", { staticClass: "el-icon-menu", staticStyle: { "margin-right": "8px", color: "#555" } }), i._v("信号列表")]);
|
|
1383
1383
|
}], Kt = /* @__PURE__ */ h(
|
|
1384
|
-
|
|
1384
|
+
Ut,
|
|
1385
1385
|
Gt,
|
|
1386
1386
|
qt,
|
|
1387
1387
|
!1,
|
|
@@ -1416,7 +1416,7 @@ const be = {
|
|
|
1416
1416
|
expressionListener: "表达式",
|
|
1417
1417
|
delegateExpressionListener: "代理表达式",
|
|
1418
1418
|
scriptListener: "脚本"
|
|
1419
|
-
},
|
|
1419
|
+
}, Ht = {
|
|
1420
1420
|
create: "创建",
|
|
1421
1421
|
assignment: "指派",
|
|
1422
1422
|
complete: "完成",
|
|
@@ -1426,7 +1426,7 @@ const be = {
|
|
|
1426
1426
|
}, ye = {
|
|
1427
1427
|
string: "字符串",
|
|
1428
1428
|
expression: "表达式"
|
|
1429
|
-
},
|
|
1429
|
+
}, Zt = {
|
|
1430
1430
|
name: "ElementListeners",
|
|
1431
1431
|
inject: {
|
|
1432
1432
|
prefix: "prefix",
|
|
@@ -1601,7 +1601,7 @@ var Wt = function() {
|
|
|
1601
1601
|
e.$set(e.listenerFieldForm, "expression", n);
|
|
1602
1602
|
}, expression: "listenerFieldForm.expression" } })], 1) : e._e()], 1)], 1)], 1);
|
|
1603
1603
|
}, Xt = [], Yt = /* @__PURE__ */ h(
|
|
1604
|
-
|
|
1604
|
+
Zt,
|
|
1605
1605
|
Wt,
|
|
1606
1606
|
Xt,
|
|
1607
1607
|
!1,
|
|
@@ -1958,7 +1958,7 @@ const mn = pn.exports, cn = {
|
|
|
1958
1958
|
data() {
|
|
1959
1959
|
return {
|
|
1960
1960
|
elementListenersList: [],
|
|
1961
|
-
listenerEventTypeObject:
|
|
1961
|
+
listenerEventTypeObject: Ht,
|
|
1962
1962
|
listenerTypeObject: be,
|
|
1963
1963
|
listenerFormModelVisible: !1,
|
|
1964
1964
|
listenerForm: {},
|
|
@@ -2133,7 +2133,7 @@ var un = function() {
|
|
|
2133
2133
|
null,
|
|
2134
2134
|
null
|
|
2135
2135
|
);
|
|
2136
|
-
const bn = fn.exports,
|
|
2136
|
+
const bn = fn.exports, se = ["base", "task", "form", "multiInstance"], yn = {
|
|
2137
2137
|
name: "PropertiesPanel",
|
|
2138
2138
|
componentName: "MyPropertiesPanel",
|
|
2139
2139
|
components: {
|
|
@@ -2142,7 +2142,7 @@ const bn = fn.exports, ie = ["base", "task", "form", "multiInstance"], yn = {
|
|
|
2142
2142
|
ElementProperties: rn,
|
|
2143
2143
|
ElementListeners: Qt,
|
|
2144
2144
|
SignalAndMassage: Jt,
|
|
2145
|
-
FlowCondition:
|
|
2145
|
+
FlowCondition: Nt,
|
|
2146
2146
|
ElementMultiInstance: Bt,
|
|
2147
2147
|
ElementTask: Lt,
|
|
2148
2148
|
ElementOtherConfig: ut,
|
|
@@ -2192,12 +2192,12 @@ const bn = fn.exports, ie = ["base", "task", "form", "multiInstance"], yn = {
|
|
|
2192
2192
|
tab: {
|
|
2193
2193
|
immediate: !0,
|
|
2194
2194
|
handler() {
|
|
2195
|
-
this.activeTab =
|
|
2195
|
+
this.activeTab = se;
|
|
2196
2196
|
}
|
|
2197
2197
|
},
|
|
2198
2198
|
elementId: {
|
|
2199
2199
|
handler() {
|
|
2200
|
-
this.activeTab =
|
|
2200
|
+
this.activeTab = se;
|
|
2201
2201
|
}
|
|
2202
2202
|
}
|
|
2203
2203
|
},
|
|
@@ -2560,7 +2560,7 @@ const Sn = {
|
|
|
2560
2560
|
Tasks: "任务"
|
|
2561
2561
|
}, Tn = "Camunda", Cn = "http://camunda.org/schema/1.0/bpmn", In = "camunda", kn = {
|
|
2562
2562
|
tagAlias: "lowerCase"
|
|
2563
|
-
},
|
|
2563
|
+
}, _n = [], An = [
|
|
2564
2564
|
{
|
|
2565
2565
|
name: "Definitions",
|
|
2566
2566
|
isAbstract: !0,
|
|
@@ -3676,13 +3676,13 @@ const Sn = {
|
|
|
3676
3676
|
}
|
|
3677
3677
|
]
|
|
3678
3678
|
}
|
|
3679
|
-
], wn = [],
|
|
3679
|
+
], wn = [], re = {
|
|
3680
3680
|
name: Tn,
|
|
3681
3681
|
uri: Cn,
|
|
3682
3682
|
prefix: In,
|
|
3683
3683
|
xml: kn,
|
|
3684
|
-
associations:
|
|
3685
|
-
types:
|
|
3684
|
+
associations: _n,
|
|
3685
|
+
types: An,
|
|
3686
3686
|
emumerations: wn
|
|
3687
3687
|
}, $n = "Activiti", Ln = "http://activiti.org/bpmn", On = "activiti", Pn = {
|
|
3688
3688
|
tagAlias: "lowerCase"
|
|
@@ -4784,7 +4784,7 @@ const Sn = {
|
|
|
4784
4784
|
}
|
|
4785
4785
|
]
|
|
4786
4786
|
}
|
|
4787
|
-
], Bn = [],
|
|
4787
|
+
], Bn = [], ae = {
|
|
4788
4788
|
name: $n,
|
|
4789
4789
|
uri: Ln,
|
|
4790
4790
|
prefix: On,
|
|
@@ -4794,7 +4794,7 @@ const Sn = {
|
|
|
4794
4794
|
emumerations: Bn
|
|
4795
4795
|
}, Rn = "Flowable", Vn = "http://flowable.org/bpmn", jn = "flowable", zn = {
|
|
4796
4796
|
tagAlias: "lowerCase"
|
|
4797
|
-
},
|
|
4797
|
+
}, Nn = [], Un = [], Gn = [
|
|
4798
4798
|
{
|
|
4799
4799
|
name: "InOutBinding",
|
|
4800
4800
|
superClass: [
|
|
@@ -6156,45 +6156,45 @@ const Sn = {
|
|
|
6156
6156
|
}
|
|
6157
6157
|
]
|
|
6158
6158
|
}
|
|
6159
|
-
],
|
|
6159
|
+
], oe = {
|
|
6160
6160
|
name: Rn,
|
|
6161
6161
|
uri: Vn,
|
|
6162
6162
|
prefix: jn,
|
|
6163
6163
|
xml: zn,
|
|
6164
|
-
associations:
|
|
6165
|
-
emumerations:
|
|
6164
|
+
associations: Nn,
|
|
6165
|
+
emumerations: Un,
|
|
6166
6166
|
types: Gn
|
|
6167
6167
|
}, qn = "*";
|
|
6168
|
-
function
|
|
6168
|
+
function A(i) {
|
|
6169
6169
|
const e = this;
|
|
6170
6170
|
i.on("moddleCopy.canCopyProperty", function(t) {
|
|
6171
6171
|
const n = t.property, s = t.parent;
|
|
6172
6172
|
return e.canCopyProperty(n, s);
|
|
6173
6173
|
});
|
|
6174
6174
|
}
|
|
6175
|
-
|
|
6176
|
-
|
|
6175
|
+
A.$inject = ["eventBus"];
|
|
6176
|
+
A.prototype.canCopyProperty = function(i, e) {
|
|
6177
6177
|
if (Ce(i) && !Kn(i, e) || k(i, "camunda:InputOutput") && !this.canHostInputOutput(e) || he(i, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || k(i, "camunda:In") && !this.canHostIn(e))
|
|
6178
6178
|
return !1;
|
|
6179
6179
|
};
|
|
6180
|
-
|
|
6180
|
+
A.prototype.canHostInputOutput = function(i) {
|
|
6181
6181
|
if (x(i, "camunda:Connector"))
|
|
6182
6182
|
return !0;
|
|
6183
6183
|
const t = x(i, "bpmn:FlowNode");
|
|
6184
6184
|
return !(!t || he(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || k(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
|
|
6185
6185
|
};
|
|
6186
|
-
|
|
6186
|
+
A.prototype.canHostConnector = function(i) {
|
|
6187
6187
|
const e = x(i, "camunda:ServiceTaskLike");
|
|
6188
6188
|
return k(e, "bpmn:MessageEventDefinition") ? x(i, "bpmn:IntermediateThrowEvent") || x(i, "bpmn:EndEvent") : !0;
|
|
6189
6189
|
};
|
|
6190
|
-
|
|
6190
|
+
A.prototype.canHostIn = function(i) {
|
|
6191
6191
|
return x(i, "bpmn:CallActivity") ? !0 : x(i, "bpmn:SignalEventDefinition") ? x(i, "bpmn:IntermediateThrowEvent") || x(i, "bpmn:EndEvent") : !0;
|
|
6192
6192
|
};
|
|
6193
6193
|
function k(i, e) {
|
|
6194
6194
|
return i && Ie(i.$instanceOf) && i.$instanceOf(e);
|
|
6195
6195
|
}
|
|
6196
6196
|
function he(i, e) {
|
|
6197
|
-
return
|
|
6197
|
+
return _(e, function(t) {
|
|
6198
6198
|
return k(i, t);
|
|
6199
6199
|
});
|
|
6200
6200
|
}
|
|
@@ -6208,42 +6208,42 @@ function x(i, e) {
|
|
|
6208
6208
|
}
|
|
6209
6209
|
function Kn(i, e) {
|
|
6210
6210
|
const t = i.$type && i.$model.getTypeDescriptor(i.$type), n = t && t.meta && t.meta.allowedIn;
|
|
6211
|
-
return !n || Jn(n) ? !0 :
|
|
6211
|
+
return !n || Jn(n) ? !0 : _(n, function(s) {
|
|
6212
6212
|
return x(e, s);
|
|
6213
6213
|
});
|
|
6214
6214
|
}
|
|
6215
6215
|
function Jn(i) {
|
|
6216
6216
|
return i.indexOf(qn) !== -1;
|
|
6217
6217
|
}
|
|
6218
|
-
const
|
|
6218
|
+
const Hn = {
|
|
6219
6219
|
__init__: ["camundaModdleExtension"],
|
|
6220
|
-
camundaModdleExtension: ["type",
|
|
6221
|
-
},
|
|
6220
|
+
camundaModdleExtension: ["type", A]
|
|
6221
|
+
}, Zn = {
|
|
6222
6222
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
6223
6223
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
6224
6224
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
6225
6225
|
};
|
|
6226
|
-
function
|
|
6226
|
+
function W(i, e) {
|
|
6227
6227
|
return i && typeof i.$instanceOf == "function" && i.$instanceOf(e);
|
|
6228
6228
|
}
|
|
6229
6229
|
function Wn(i) {
|
|
6230
6230
|
return i && i.length;
|
|
6231
6231
|
}
|
|
6232
|
-
function
|
|
6233
|
-
return Wn(i) &&
|
|
6234
|
-
return
|
|
6232
|
+
function z(i, e) {
|
|
6233
|
+
return Wn(i) && _(i, function(t) {
|
|
6234
|
+
return W(t, e);
|
|
6235
6235
|
});
|
|
6236
6236
|
}
|
|
6237
6237
|
function Xn(i, e) {
|
|
6238
|
-
return
|
|
6239
|
-
return
|
|
6238
|
+
return _(e, function(t) {
|
|
6239
|
+
return W(i, t);
|
|
6240
6240
|
});
|
|
6241
6241
|
}
|
|
6242
|
-
function
|
|
6243
|
-
const n = e.name, s =
|
|
6242
|
+
function q(i, e, t) {
|
|
6243
|
+
const n = e.name, s = Zn[n.replace(/activiti:/, "")];
|
|
6244
6244
|
return n === i && Xn(t, s);
|
|
6245
6245
|
}
|
|
6246
|
-
function
|
|
6246
|
+
function X(i) {
|
|
6247
6247
|
i.on(
|
|
6248
6248
|
"property.clone",
|
|
6249
6249
|
function(e) {
|
|
@@ -6253,42 +6253,42 @@ function W(i) {
|
|
|
6253
6253
|
this
|
|
6254
6254
|
);
|
|
6255
6255
|
}
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
if (
|
|
6259
|
-
return
|
|
6260
|
-
if (
|
|
6261
|
-
return
|
|
6256
|
+
X.$inject = ["eventBus"];
|
|
6257
|
+
X.prototype.canCloneProperty = function(i, e) {
|
|
6258
|
+
if (q("activiti:FailedJobRetryTimeCycle", e, i))
|
|
6259
|
+
return z(i.eventDefinitions, "bpmn:TimerEventDefinition") || z(i.eventDefinitions, "bpmn:SignalEventDefinition") || W(i.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
6260
|
+
if (q("activiti:Connector", e, i) || q("activiti:Field", e, i))
|
|
6261
|
+
return z(i.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
6262
6262
|
};
|
|
6263
6263
|
const Yn = {
|
|
6264
6264
|
__init__: ["ActivitiModdleExtension"],
|
|
6265
|
-
ActivitiModdleExtension: ["type",
|
|
6265
|
+
ActivitiModdleExtension: ["type", X]
|
|
6266
6266
|
}, Qn = {
|
|
6267
6267
|
FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"],
|
|
6268
6268
|
Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
|
|
6269
6269
|
Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
|
|
6270
6270
|
};
|
|
6271
|
-
function
|
|
6271
|
+
function Y(i, e) {
|
|
6272
6272
|
return i && typeof i.$instanceOf == "function" && i.$instanceOf(e);
|
|
6273
6273
|
}
|
|
6274
6274
|
function ei(i) {
|
|
6275
6275
|
return i && i.length;
|
|
6276
6276
|
}
|
|
6277
|
-
function
|
|
6278
|
-
return ei(i) &&
|
|
6279
|
-
return
|
|
6277
|
+
function N(i, e) {
|
|
6278
|
+
return ei(i) && _(i, function(t) {
|
|
6279
|
+
return Y(t, e);
|
|
6280
6280
|
});
|
|
6281
6281
|
}
|
|
6282
6282
|
function ti(i, e) {
|
|
6283
|
-
return
|
|
6284
|
-
return
|
|
6283
|
+
return _(e, function(t) {
|
|
6284
|
+
return Y(i, t);
|
|
6285
6285
|
});
|
|
6286
6286
|
}
|
|
6287
|
-
function
|
|
6287
|
+
function K(i, e, t) {
|
|
6288
6288
|
const n = e.name, s = Qn[n.replace(/flowable:/, "")];
|
|
6289
6289
|
return n === i && ti(t, s);
|
|
6290
6290
|
}
|
|
6291
|
-
function
|
|
6291
|
+
function Q(i) {
|
|
6292
6292
|
i.on(
|
|
6293
6293
|
"property.clone",
|
|
6294
6294
|
function(e) {
|
|
@@ -6298,23 +6298,77 @@ function Y(i) {
|
|
|
6298
6298
|
this
|
|
6299
6299
|
);
|
|
6300
6300
|
}
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
if (
|
|
6304
|
-
return
|
|
6305
|
-
if (
|
|
6306
|
-
return
|
|
6301
|
+
Q.$inject = ["eventBus"];
|
|
6302
|
+
Q.prototype.canCloneProperty = function(i, e) {
|
|
6303
|
+
if (K("flowable:FailedJobRetryTimeCycle", e, i))
|
|
6304
|
+
return N(i.eventDefinitions, "bpmn:TimerEventDefinition") || N(i.eventDefinitions, "bpmn:SignalEventDefinition") || Y(i.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
|
|
6305
|
+
if (K("flowable:Connector", e, i) || K("flowable:Field", e, i))
|
|
6306
|
+
return N(i.eventDefinitions, "bpmn:MessageEventDefinition");
|
|
6307
6307
|
};
|
|
6308
6308
|
const ni = {
|
|
6309
6309
|
__init__: ["FlowableModdleExtension"],
|
|
6310
|
-
FlowableModdleExtension: ["type",
|
|
6310
|
+
FlowableModdleExtension: ["type", Q]
|
|
6311
|
+
}, ii = {
|
|
6312
|
+
name: "HighlightJS",
|
|
6313
|
+
props: {
|
|
6314
|
+
language: String,
|
|
6315
|
+
code: String,
|
|
6316
|
+
autodetect: Boolean
|
|
6317
|
+
},
|
|
6318
|
+
data: function() {
|
|
6319
|
+
return {
|
|
6320
|
+
detectedLanguage: ""
|
|
6321
|
+
};
|
|
6322
|
+
},
|
|
6323
|
+
computed: {
|
|
6324
|
+
className() {
|
|
6325
|
+
return this.detectedLanguage ? `hljs ${this.detectedLanguage}` : "";
|
|
6326
|
+
},
|
|
6327
|
+
highlighted() {
|
|
6328
|
+
if (!this.language && !L.getLanguage(this.language))
|
|
6329
|
+
return console.warn(`The language "${this.language}" you specified could not be found.`), {
|
|
6330
|
+
language: "",
|
|
6331
|
+
value: Pe(this.code)
|
|
6332
|
+
};
|
|
6333
|
+
let i = {};
|
|
6334
|
+
return !this.language || this.autodetect ? i = L.highlightAuto(this.code) : i = L.highlight(this.code, {
|
|
6335
|
+
language: this.language,
|
|
6336
|
+
ignoreIllegals: this.ignoreIllegals
|
|
6337
|
+
}), i;
|
|
6338
|
+
},
|
|
6339
|
+
ignoreIllegals() {
|
|
6340
|
+
return !0;
|
|
6341
|
+
}
|
|
6342
|
+
},
|
|
6343
|
+
watch: {
|
|
6344
|
+
"highlighted.language": {
|
|
6345
|
+
immediate: !0,
|
|
6346
|
+
handler(i) {
|
|
6347
|
+
this.detectedLanguage = i;
|
|
6348
|
+
}
|
|
6349
|
+
}
|
|
6350
|
+
}
|
|
6311
6351
|
};
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6352
|
+
var si = function() {
|
|
6353
|
+
var e = this, t = e._self._c;
|
|
6354
|
+
return t("pre", { staticClass: "highlight-js" }, [t("code", { class: e.className, domProps: { innerHTML: e._s(e.highlighted.value) } })]);
|
|
6355
|
+
}, ri = [], ai = /* @__PURE__ */ h(
|
|
6356
|
+
ii,
|
|
6357
|
+
si,
|
|
6358
|
+
ri,
|
|
6359
|
+
!1,
|
|
6360
|
+
null,
|
|
6361
|
+
null,
|
|
6362
|
+
null,
|
|
6363
|
+
null
|
|
6364
|
+
);
|
|
6365
|
+
const oi = ai.exports;
|
|
6366
|
+
L.registerLanguage("xml", Ve);
|
|
6367
|
+
L.registerLanguage("json", je);
|
|
6368
|
+
const li = {
|
|
6315
6369
|
name: "ProcessDesigner",
|
|
6316
6370
|
components: {
|
|
6317
|
-
HighlightJS:
|
|
6371
|
+
HighlightJS: oi
|
|
6318
6372
|
},
|
|
6319
6373
|
componentName: "MyProcessDesigner",
|
|
6320
6374
|
props: {
|
|
@@ -6384,12 +6438,12 @@ const ii = {
|
|
|
6384
6438
|
additionalModules() {
|
|
6385
6439
|
const i = [];
|
|
6386
6440
|
if (this.onlyCustomizeAddi)
|
|
6387
|
-
return
|
|
6388
|
-
|
|
6441
|
+
return ne(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
|
|
6442
|
+
ne(this.additionalModel) ? i.push(...this.additionalModel) : this.additionalModel && i.push(this.additionalModel);
|
|
6389
6443
|
const e = {
|
|
6390
6444
|
translate: ["value", xn(this.translations || Sn)]
|
|
6391
6445
|
};
|
|
6392
|
-
return i.push(e), this.simulation && i.push(
|
|
6446
|
+
return i.push(e), this.simulation && i.push(Be), i.push(De), this.prefix === "camunda" && i.push(Hn), this.prefix === "flowable" && i.push(ni), this.prefix === "activiti" && i.push(Yn), i;
|
|
6393
6447
|
},
|
|
6394
6448
|
moddleExtensions() {
|
|
6395
6449
|
const i = {};
|
|
@@ -6398,12 +6452,12 @@ const ii = {
|
|
|
6398
6452
|
if (this.moddleExtension)
|
|
6399
6453
|
for (const e in this.moddleExtension)
|
|
6400
6454
|
i[e] = this.moddleExtension[e];
|
|
6401
|
-
return this.prefix === "activiti" && (i.activiti = T(u({},
|
|
6402
|
-
types: [...re.types, ...this.extendTypes || []]
|
|
6403
|
-
})), this.prefix === "flowable" && (i.flowable = T(u({}, ae), {
|
|
6455
|
+
return this.prefix === "activiti" && (i.activiti = T(u({}, ae), {
|
|
6404
6456
|
types: [...ae.types, ...this.extendTypes || []]
|
|
6405
|
-
})), this.prefix === "
|
|
6406
|
-
types: [...
|
|
6457
|
+
})), this.prefix === "flowable" && (i.flowable = T(u({}, oe), {
|
|
6458
|
+
types: [...oe.types, ...this.extendTypes || []]
|
|
6459
|
+
})), this.prefix === "camunda" && (i.camunda = T(u({}, re), {
|
|
6460
|
+
types: [...re.types, ...this.extendTypes || []]
|
|
6407
6461
|
})), i;
|
|
6408
6462
|
}
|
|
6409
6463
|
},
|
|
@@ -6414,7 +6468,7 @@ const ii = {
|
|
|
6414
6468
|
},
|
|
6415
6469
|
methods: {
|
|
6416
6470
|
initBpmnModeler() {
|
|
6417
|
-
this.bpmnModeler || (this.bpmnModeler = new
|
|
6471
|
+
this.bpmnModeler || (this.bpmnModeler = new Me(u({
|
|
6418
6472
|
container: this.$refs["bpmn-canvas"],
|
|
6419
6473
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
6420
6474
|
additionalModules: this.additionalModules,
|
|
@@ -6565,7 +6619,7 @@ const ii = {
|
|
|
6565
6619
|
});
|
|
6566
6620
|
},
|
|
6567
6621
|
previewProcessJson() {
|
|
6568
|
-
const i = new
|
|
6622
|
+
const i = new Re();
|
|
6569
6623
|
this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: e }) => {
|
|
6570
6624
|
const { definitions: t } = i.xml2js(e);
|
|
6571
6625
|
t ? this.previewResult = JSON.stringify(t, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
|
|
@@ -6573,7 +6627,7 @@ const ii = {
|
|
|
6573
6627
|
}
|
|
6574
6628
|
}
|
|
6575
6629
|
};
|
|
6576
|
-
var
|
|
6630
|
+
var pi = function() {
|
|
6577
6631
|
var e = this, t = e._self._c;
|
|
6578
6632
|
return t("div", { staticClass: "my-process-designer" }, [t("div", { staticClass: "my-process-designer__header" }, [e._t("control-header", function() {
|
|
6579
6633
|
return [t("ElButtonGroup", { key: "file-control" }, [e._t("toolbar-buttons"), e.simulation ? t("ElTooltip", { attrs: { effect: "light", content: "导入流程" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, type: e.headerButtonType, icon: "el-icon-folder-opened" }, on: { click: function(n) {
|
|
@@ -6614,21 +6668,21 @@ var si = function() {
|
|
|
6614
6668
|
}), t("input", { ref: "refFile", staticStyle: { display: "none" }, attrs: { id: "files", type: "file", accept: ".xml, .bpmn" }, on: { change: e.importLocalFile } })], 2), t("div", { staticClass: "my-process-designer__container" }, [t("div", { ref: "bpmn-canvas", staticClass: "my-process-designer__canvas flow-background-image" })]), t("ElementDialog", { attrs: { title: "预览", width: "60vw", height: "60vh", visible: e.previewModelVisible, "body-padding": !1, "destroy-on-close": "" }, on: { "update:visible": function(n) {
|
|
6615
6669
|
e.previewModelVisible = n;
|
|
6616
6670
|
} } }, [t("HighlightJS", { attrs: { language: e.previewType, code: e.previewResult } })], 1)], 1);
|
|
6617
|
-
},
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6671
|
+
}, mi = [], ci = /* @__PURE__ */ h(
|
|
6672
|
+
li,
|
|
6673
|
+
pi,
|
|
6674
|
+
mi,
|
|
6621
6675
|
!1,
|
|
6622
6676
|
null,
|
|
6623
6677
|
null,
|
|
6624
6678
|
null,
|
|
6625
6679
|
null
|
|
6626
6680
|
);
|
|
6627
|
-
const
|
|
6681
|
+
const ui = ci.exports, di = {
|
|
6628
6682
|
name: "FlowDesigner",
|
|
6629
6683
|
components: {
|
|
6630
6684
|
PropertiesPanel: En,
|
|
6631
|
-
ProcessDesigner:
|
|
6685
|
+
ProcessDesigner: ui
|
|
6632
6686
|
},
|
|
6633
6687
|
props: {
|
|
6634
6688
|
value: String,
|
|
@@ -6646,7 +6700,7 @@ const oi = ai.exports, li = {
|
|
|
6646
6700
|
labelVisible: !1,
|
|
6647
6701
|
prefix: "flowable",
|
|
6648
6702
|
headerButtonSize: "mini",
|
|
6649
|
-
additionalModel: [ze,
|
|
6703
|
+
additionalModel: [ze, Ne, We]
|
|
6650
6704
|
}
|
|
6651
6705
|
};
|
|
6652
6706
|
},
|
|
@@ -6656,7 +6710,7 @@ const oi = ai.exports, li = {
|
|
|
6656
6710
|
}
|
|
6657
6711
|
}
|
|
6658
6712
|
};
|
|
6659
|
-
var
|
|
6713
|
+
var fi = function() {
|
|
6660
6714
|
var e = this, t = e._self._c;
|
|
6661
6715
|
return t("div", { staticClass: "flow-designer" }, [t("ProcessDesigner", e._b({ key: `designer-${e.reloadIndex}`, ref: "processDesigner", attrs: { value: e.value, "extend-types": e.extendTypes, options: {
|
|
6662
6716
|
taskResizingEnabled: !0,
|
|
@@ -6670,17 +6724,17 @@ var pi = function() {
|
|
|
6670
6724
|
} }, { key: "extend", fn: function({ id: n, bpmnInstances: s, element: r, type: a }) {
|
|
6671
6725
|
return [e._t("extend", null, { id: n, bpmnInstances: s, element: r, type: a })];
|
|
6672
6726
|
} }], null, !0) })], 1);
|
|
6673
|
-
},
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6727
|
+
}, bi = [], yi = /* @__PURE__ */ h(
|
|
6728
|
+
di,
|
|
6729
|
+
fi,
|
|
6730
|
+
bi,
|
|
6677
6731
|
!1,
|
|
6678
6732
|
null,
|
|
6679
6733
|
null,
|
|
6680
6734
|
null,
|
|
6681
6735
|
null
|
|
6682
6736
|
);
|
|
6683
|
-
const
|
|
6737
|
+
const Ni = yi.exports;
|
|
6684
6738
|
export {
|
|
6685
|
-
|
|
6739
|
+
Ni as default
|
|
6686
6740
|
};
|