@web-utils/component 2.12.0 → 2.13.0
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/flow-designer/index.mjs +52 -52
- package/package.json +1 -1
- package/web-types.json +1 -1
package/flow-designer/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var Oe = Object.defineProperty, Pe = Object.defineProperties;
|
|
|
2
2
|
var De = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Q = Object.getOwnPropertySymbols;
|
|
4
4
|
var Be = Object.prototype.hasOwnProperty, je = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ee = (e, i, t) => i in e ? Oe(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t,
|
|
5
|
+
var ee = (e, i, t) => i in e ? Oe(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, u = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
7
|
Be.call(i, t) && ee(e, t, i[t]);
|
|
8
8
|
if (Q)
|
|
@@ -10,7 +10,7 @@ var ee = (e, i, t) => i in e ? Oe(e, i, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
je.call(i, t) && ee(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
12
|
}, T = (e, i) => Pe(e, De(i));
|
|
13
|
-
var
|
|
13
|
+
var d = (e, i, t) => new Promise((n, s) => {
|
|
14
14
|
var r = (m) => {
|
|
15
15
|
try {
|
|
16
16
|
o(t.next(m));
|
|
@@ -55,8 +55,8 @@ function J(e, i, t, n, s, r, a, o, m, F, p, l, c) {
|
|
|
55
55
|
const C = E.context.shape;
|
|
56
56
|
if (!Ke(E) || !n.isOpen(C))
|
|
57
57
|
return;
|
|
58
|
-
const
|
|
59
|
-
|
|
58
|
+
const f = n.getEntries(C);
|
|
59
|
+
f.replace && f.replace.action.click(E, C);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
J.$inject = [
|
|
@@ -92,7 +92,7 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
92
92
|
y: D + P.height + 5
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function f(b, S, v, w) {
|
|
96
96
|
typeof v != "string" && (w = v, v = p("Append {type}", { type: b.replace(/^bpmn:/, "") }));
|
|
97
97
|
function $(D, B) {
|
|
98
98
|
const j = n.createShape(y({ type: b }, w));
|
|
@@ -163,40 +163,40 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
R(c, "bpmn:FlowNode") && (R(c, "bpmn:EventBasedGateway") ? y(l, {
|
|
166
|
-
"append.receive-task":
|
|
167
|
-
"append.message-intermediate-event":
|
|
166
|
+
"append.receive-task": f("bpmn:ReceiveTask", "bpmn-icon-receive-task", p("Append ReceiveTask")),
|
|
167
|
+
"append.message-intermediate-event": f(
|
|
168
168
|
"bpmn:IntermediateCatchEvent",
|
|
169
169
|
"bpmn-icon-intermediate-event-catch-message",
|
|
170
170
|
p("Append MessageIntermediateCatchEvent"),
|
|
171
171
|
{ eventDefinitionType: "bpmn:MessageEventDefinition" }
|
|
172
172
|
),
|
|
173
|
-
"append.timer-intermediate-event":
|
|
173
|
+
"append.timer-intermediate-event": f(
|
|
174
174
|
"bpmn:IntermediateCatchEvent",
|
|
175
175
|
"bpmn-icon-intermediate-event-catch-timer",
|
|
176
176
|
p("Append TimerIntermediateCatchEvent"),
|
|
177
177
|
{ eventDefinitionType: "bpmn:TimerEventDefinition" }
|
|
178
178
|
),
|
|
179
|
-
"append.condition-intermediate-event":
|
|
179
|
+
"append.condition-intermediate-event": f(
|
|
180
180
|
"bpmn:IntermediateCatchEvent",
|
|
181
181
|
"bpmn-icon-intermediate-event-catch-condition",
|
|
182
182
|
p("Append ConditionIntermediateCatchEvent"),
|
|
183
183
|
{ eventDefinitionType: "bpmn:ConditionalEventDefinition" }
|
|
184
184
|
),
|
|
185
|
-
"append.signal-intermediate-event":
|
|
185
|
+
"append.signal-intermediate-event": f(
|
|
186
186
|
"bpmn:IntermediateCatchEvent",
|
|
187
187
|
"bpmn-icon-intermediate-event-catch-signal",
|
|
188
188
|
p("Append SignalIntermediateCatchEvent"),
|
|
189
189
|
{ eventDefinitionType: "bpmn:SignalEventDefinition" }
|
|
190
190
|
)
|
|
191
191
|
}) : ne(c, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? y(l, {
|
|
192
|
-
"append.compensation-activity":
|
|
192
|
+
"append.compensation-activity": f("bpmn:Task", "bpmn-icon-task", p("Append compensation activity"), {
|
|
193
193
|
isForCompensation: !0
|
|
194
194
|
})
|
|
195
195
|
}) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !ne(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ge(c) && y(l, {
|
|
196
|
-
"append.end-event":
|
|
197
|
-
"append.gateway":
|
|
198
|
-
"append.append-task":
|
|
199
|
-
"append.intermediate-event":
|
|
196
|
+
"append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
|
|
197
|
+
"append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
|
|
198
|
+
"append.append-task": f("bpmn:UserTask", "bpmn-icon-user-task", p("Append Task")),
|
|
199
|
+
"append.intermediate-event": f(
|
|
200
200
|
"bpmn:IntermediateThrowEvent",
|
|
201
201
|
"bpmn-icon-intermediate-event-none",
|
|
202
202
|
p("Append Intermediate/Boundary Event")
|
|
@@ -216,7 +216,7 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
}), N(c, ["bpmn:FlowNode", "bpmn:InteractionNode", "bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && y(l, {
|
|
219
|
-
"append.text-annotation":
|
|
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",
|
|
@@ -237,7 +237,7 @@ J.prototype.getContextPadEntries = function(e) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}), R(c, "bpmn:Group") && y(l, {
|
|
240
|
-
"append.text-annotation":
|
|
240
|
+
"append.text-annotation": f("bpmn:TextAnnotation", "bpmn-icon-text-annotation")
|
|
241
241
|
});
|
|
242
242
|
let I = m.allowed("elements.delete", { elements: [e] });
|
|
243
243
|
return Re(I) && (I = I[0] === e), I && y(l, {
|
|
@@ -272,7 +272,7 @@ Z.prototype = Se.prototype;
|
|
|
272
272
|
Z.prototype.getPaletteEntries = function() {
|
|
273
273
|
const e = {}, i = this._create, t = this._elementFactory, n = this._spaceTool, s = this._lassoTool, r = this._handTool, a = this._globalConnect, o = this._translate;
|
|
274
274
|
function m(l, c, E, M, C) {
|
|
275
|
-
function
|
|
275
|
+
function f(I) {
|
|
276
276
|
const b = t.createShape(y({ type: l }, C));
|
|
277
277
|
C && (b.businessObject.di.isExpanded = C.isExpanded), i.start(I, b);
|
|
278
278
|
}
|
|
@@ -282,8 +282,8 @@ Z.prototype.getPaletteEntries = function() {
|
|
|
282
282
|
className: E,
|
|
283
283
|
title: M || o("Create {type}", { type: O }),
|
|
284
284
|
action: {
|
|
285
|
-
dragstart:
|
|
286
|
-
click:
|
|
285
|
+
dragstart: f,
|
|
286
|
+
click: f
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
}
|
|
@@ -1535,7 +1535,7 @@ const Xt = {
|
|
|
1535
1535
|
},
|
|
1536
1536
|
methods: {
|
|
1537
1537
|
changeTaskAsync() {
|
|
1538
|
-
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element,
|
|
1538
|
+
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, u({}, this.taskConfigForm));
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
}, le = {};
|
|
@@ -1804,7 +1804,7 @@ const sn = {
|
|
|
1804
1804
|
this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
|
|
1805
1805
|
return;
|
|
1806
1806
|
}
|
|
1807
|
-
e.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(
|
|
1807
|
+
e.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = T(u(u({}, this.defaultLoopInstanceForm), e.loopCharacteristics), {
|
|
1808
1808
|
completionCondition: (n = (t = (i = e.loopCharacteristics) == null ? void 0 : i.completionCondition) == null ? void 0 : t.body) != null ? n : "",
|
|
1809
1809
|
loopCardinality: (a = (r = (s = e.loopCharacteristics) == null ? void 0 : s.loopCardinality) == null ? void 0 : r.body) != null ? a : ""
|
|
1810
1810
|
}), this.multiLoopInstance = this.element.businessObject.loopCharacteristics, e.loopCharacteristics.extensionElements && e.loopCharacteristics.extensionElements.values && e.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", e.loopCharacteristics.extensionElements.values[0].body);
|
|
@@ -2072,7 +2072,7 @@ const mn = {
|
|
|
2072
2072
|
id: {
|
|
2073
2073
|
immediate: !0,
|
|
2074
2074
|
handler() {
|
|
2075
|
-
return
|
|
2075
|
+
return d(this, null, function* () {
|
|
2076
2076
|
yield this.$nextTick(), this.resetFlowCondition();
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
@@ -2089,7 +2089,7 @@ const mn = {
|
|
|
2089
2089
|
this.flowConditionForm = { type: "normal" };
|
|
2090
2090
|
else {
|
|
2091
2091
|
const e = this.element.businessObject.conditionExpression;
|
|
2092
|
-
if (this.flowConditionForm = T(
|
|
2092
|
+
if (this.flowConditionForm = T(u({}, e), { type: "condition" }), this.flowConditionForm.resource) {
|
|
2093
2093
|
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
|
|
2094
2094
|
return;
|
|
2095
2095
|
}
|
|
@@ -2356,7 +2356,7 @@ const yn = {
|
|
|
2356
2356
|
methods: {
|
|
2357
2357
|
initDataList() {
|
|
2358
2358
|
this.rootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.messageIdMap = {}, this.signalIdMap = {}, this.messageList = [], this.signalList = [], this.rootElements.forEach((e) => {
|
|
2359
|
-
e.$type === "bpmn:Message" && (this.messageIdMap[e.id] = !0, this.messageList.push(
|
|
2359
|
+
e.$type === "bpmn:Message" && (this.messageIdMap[e.id] = !0, this.messageList.push(u({}, e))), e.$type === "bpmn:Signal" && (this.signalIdMap[e.id] = !0, this.signalList.push(u({}, e)));
|
|
2360
2360
|
});
|
|
2361
2361
|
},
|
|
2362
2362
|
openModel(e) {
|
|
@@ -2396,8 +2396,8 @@ const gn = /* @__PURE__ */ function() {
|
|
|
2396
2396
|
return hn.exports;
|
|
2397
2397
|
}();
|
|
2398
2398
|
function Ae(e) {
|
|
2399
|
-
let i =
|
|
2400
|
-
if (e.script && (i = T(
|
|
2399
|
+
let i = u({}, e);
|
|
2400
|
+
if (e.script && (i = T(u(u({}, e), e.script), {
|
|
2401
2401
|
scriptType: e.script.resource ? "externalScript" : "inlineScript"
|
|
2402
2402
|
})), e.event === "timeout" && e.eventDefinitions && e.eventDefinitions.length) {
|
|
2403
2403
|
let t = "";
|
|
@@ -2410,8 +2410,8 @@ function Ae(e) {
|
|
|
2410
2410
|
function we(e) {
|
|
2411
2411
|
var t, n;
|
|
2412
2412
|
let i;
|
|
2413
|
-
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), T(
|
|
2414
|
-
fields: (n = e.fields) == null ? void 0 : n.map((s) => T(
|
|
2413
|
+
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), T(u(u({}, g(e)), (t = e.script) != null ? t : {}), {
|
|
2414
|
+
fields: (n = e.fields) == null ? void 0 : n.map((s) => T(u({}, s), { fieldType: s.expression ? "expression" : "string" })),
|
|
2415
2415
|
listenerType: i
|
|
2416
2416
|
});
|
|
2417
2417
|
}
|
|
@@ -3046,7 +3046,7 @@ const Sn = {
|
|
|
3046
3046
|
id: {
|
|
3047
3047
|
immediate: !0,
|
|
3048
3048
|
handler(e) {
|
|
3049
|
-
return
|
|
3049
|
+
return d(this, null, function* () {
|
|
3050
3050
|
e && (yield this.$nextTick(), this.resetListenersList());
|
|
3051
3051
|
});
|
|
3052
3052
|
}
|
|
@@ -3062,9 +3062,9 @@ const Sn = {
|
|
|
3062
3062
|
},
|
|
3063
3063
|
// 打开 监听器详情 侧边栏
|
|
3064
3064
|
openListenerForm(e, i) {
|
|
3065
|
-
return
|
|
3065
|
+
return d(this, null, function* () {
|
|
3066
3066
|
var t;
|
|
3067
|
-
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
3067
|
+
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => u({}, n)) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
3068
3068
|
});
|
|
3069
3069
|
},
|
|
3070
3070
|
// 打开监听器字段编辑弹窗
|
|
@@ -3075,13 +3075,13 @@ const Sn = {
|
|
|
3075
3075
|
},
|
|
3076
3076
|
// 保存监听器注入字段
|
|
3077
3077
|
saveListenerFiled() {
|
|
3078
|
-
return
|
|
3078
|
+
return d(this, null, function* () {
|
|
3079
3079
|
(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 = {});
|
|
3080
3080
|
});
|
|
3081
3081
|
},
|
|
3082
3082
|
// 移除监听器字段
|
|
3083
3083
|
removeListenerField(e, i) {
|
|
3084
|
-
return
|
|
3084
|
+
return d(this, null, function* () {
|
|
3085
3085
|
try {
|
|
3086
3086
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(i, 1), this.listenerForm.fields.splice(i, 1);
|
|
3087
3087
|
} catch (t) {
|
|
@@ -3090,7 +3090,7 @@ const Sn = {
|
|
|
3090
3090
|
},
|
|
3091
3091
|
// 移除监听器
|
|
3092
3092
|
removeListener(e, i) {
|
|
3093
|
-
return
|
|
3093
|
+
return d(this, null, function* () {
|
|
3094
3094
|
try {
|
|
3095
3095
|
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
3096
3096
|
} catch (t) {
|
|
@@ -3099,7 +3099,7 @@ const Sn = {
|
|
|
3099
3099
|
},
|
|
3100
3100
|
// 保存监听器配置
|
|
3101
3101
|
saveListenerConfig() {
|
|
3102
|
-
return
|
|
3102
|
+
return d(this, null, function* () {
|
|
3103
3103
|
var t, n, s, r;
|
|
3104
3104
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
3105
3105
|
return;
|
|
@@ -4103,7 +4103,7 @@ const Pn = {
|
|
|
4103
4103
|
id: {
|
|
4104
4104
|
immediate: !0,
|
|
4105
4105
|
handler(e) {
|
|
4106
|
-
return
|
|
4106
|
+
return d(this, null, function* () {
|
|
4107
4107
|
e && (yield this.$nextTick(), this.resetFormList());
|
|
4108
4108
|
});
|
|
4109
4109
|
}
|
|
@@ -4898,7 +4898,7 @@ const zn = {
|
|
|
4898
4898
|
id: {
|
|
4899
4899
|
immediate: !0,
|
|
4900
4900
|
handler(e) {
|
|
4901
|
-
return
|
|
4901
|
+
return d(this, null, function* () {
|
|
4902
4902
|
e && (yield this.$nextTick(), this.resetListenersList());
|
|
4903
4903
|
});
|
|
4904
4904
|
}
|
|
@@ -4910,16 +4910,16 @@ const zn = {
|
|
|
4910
4910
|
this.otherExtensionList = [], this.bpmnElementListeners = (n = (t = (i = (e = this.element.businessObject) == null ? void 0 : e.extensionElements) == null ? void 0 : i.values) == null ? void 0 : t.filter((s) => s.$type === `${this.prefix}:TaskListener`)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
|
|
4911
4911
|
},
|
|
4912
4912
|
openListenerForm(e, i) {
|
|
4913
|
-
return
|
|
4913
|
+
return d(this, null, function* () {
|
|
4914
4914
|
var t;
|
|
4915
|
-
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => T(
|
|
4915
|
+
e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => T(u({}, n), {
|
|
4916
4916
|
fieldType: n.string ? "string" : "expression"
|
|
4917
4917
|
})) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
|
|
4918
4918
|
});
|
|
4919
4919
|
},
|
|
4920
4920
|
// 移除监听器
|
|
4921
4921
|
removeListener(e, i) {
|
|
4922
|
-
return
|
|
4922
|
+
return d(this, null, function* () {
|
|
4923
4923
|
try {
|
|
4924
4924
|
yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
4925
4925
|
} catch (t) {
|
|
@@ -4928,7 +4928,7 @@ const zn = {
|
|
|
4928
4928
|
},
|
|
4929
4929
|
// 保存监听器
|
|
4930
4930
|
saveListenerConfig() {
|
|
4931
|
-
return
|
|
4931
|
+
return d(this, null, function* () {
|
|
4932
4932
|
var t, n, s, r;
|
|
4933
4933
|
if (!(yield this.$refs.listenerFormRef.validate()))
|
|
4934
4934
|
return;
|
|
@@ -4938,20 +4938,20 @@ const zn = {
|
|
|
4938
4938
|
},
|
|
4939
4939
|
// 打开监听器字段编辑弹窗
|
|
4940
4940
|
openListenerFieldForm(e, i) {
|
|
4941
|
-
return
|
|
4941
|
+
return d(this, null, function* () {
|
|
4942
4942
|
var t;
|
|
4943
4943
|
this.listenerFieldForm = e ? g(e) : {}, this.editingListenerFieldIndex = e ? i : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
|
|
4944
4944
|
});
|
|
4945
4945
|
},
|
|
4946
4946
|
// 保存监听器注入字段
|
|
4947
4947
|
saveListenerFiled() {
|
|
4948
|
-
return
|
|
4948
|
+
return d(this, null, function* () {
|
|
4949
4949
|
(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 = {});
|
|
4950
4950
|
});
|
|
4951
4951
|
},
|
|
4952
4952
|
// 移除监听器字段
|
|
4953
4953
|
removeListenerField(e, i) {
|
|
4954
|
-
return
|
|
4954
|
+
return d(this, null, function* () {
|
|
4955
4955
|
try {
|
|
4956
4956
|
yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(i, 1), this.listenerForm.fields.splice(i, 1);
|
|
4957
4957
|
} catch (t) {
|
|
@@ -9860,11 +9860,11 @@ const Pi = {
|
|
|
9860
9860
|
if (this.moddleExtension)
|
|
9861
9861
|
for (const i in this.moddleExtension)
|
|
9862
9862
|
e[i] = this.moddleExtension[i];
|
|
9863
|
-
return this.prefix === "activiti" && (e.activiti = T(
|
|
9863
|
+
return this.prefix === "activiti" && (e.activiti = T(u({}, ge), {
|
|
9864
9864
|
types: [...ge.types, ...this.extendTypes || []]
|
|
9865
|
-
})), this.prefix === "flowable" && (e.flowable = T(
|
|
9865
|
+
})), this.prefix === "flowable" && (e.flowable = T(u({}, Ee), {
|
|
9866
9866
|
types: [...Ee.types, ...this.extendTypes || []]
|
|
9867
|
-
})), this.prefix === "camunda" && (e.camunda = T(
|
|
9867
|
+
})), this.prefix === "camunda" && (e.camunda = T(u({}, ve), {
|
|
9868
9868
|
types: [...ve.types, ...this.extendTypes || []]
|
|
9869
9869
|
})), e;
|
|
9870
9870
|
}
|
|
@@ -9876,7 +9876,7 @@ const Pi = {
|
|
|
9876
9876
|
},
|
|
9877
9877
|
methods: {
|
|
9878
9878
|
initBpmnModeler() {
|
|
9879
|
-
this.bpmnModeler || (this.bpmnModeler = new We(
|
|
9879
|
+
this.bpmnModeler || (this.bpmnModeler = new We(u({
|
|
9880
9880
|
container: this.$refs["bpmn-canvas"],
|
|
9881
9881
|
keyboard: this.keyboard ? { bindTo: document } : null,
|
|
9882
9882
|
additionalModules: this.additionalModules,
|
|
@@ -9890,7 +9890,7 @@ const Pi = {
|
|
|
9890
9890
|
const s = t.replace(/\./g, "-"), r = n ? n.element : null;
|
|
9891
9891
|
i.$emit(s, r, n);
|
|
9892
9892
|
});
|
|
9893
|
-
}), e.on("commandStack.changed", (t) =>
|
|
9893
|
+
}), e.on("commandStack.changed", (t) => d(this, null, function* () {
|
|
9894
9894
|
try {
|
|
9895
9895
|
this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
|
|
9896
9896
|
const { xml: n } = yield this.bpmnModeler.saveXML({ format: !0 });
|
|
@@ -9906,7 +9906,7 @@ const Pi = {
|
|
|
9906
9906
|
},
|
|
9907
9907
|
/* 创建新的流程图 */
|
|
9908
9908
|
createNewDiagram(e) {
|
|
9909
|
-
return
|
|
9909
|
+
return d(this, null, function* () {
|
|
9910
9910
|
const i = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, n = e || Xn(i, t, this.prefix);
|
|
9911
9911
|
try {
|
|
9912
9912
|
const { warnings: s } = yield this.bpmnModeler.importXML(n);
|
|
@@ -9922,7 +9922,7 @@ const Pi = {
|
|
|
9922
9922
|
* @param {*} name
|
|
9923
9923
|
*/
|
|
9924
9924
|
downloadProcess(e, i = "diagram") {
|
|
9925
|
-
return
|
|
9925
|
+
return d(this, null, function* () {
|
|
9926
9926
|
try {
|
|
9927
9927
|
if (e === "xml" || e === "bpmn") {
|
|
9928
9928
|
const { err: n, xml: s } = yield this.bpmnModeler.saveXML();
|
package/package.json
CHANGED