@web-utils/component 2.11.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.
@@ -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, f = (e, i) => {
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 u = (e, i, t) => new Promise((n, s) => {
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 d = n.getEntries(C);
59
- d.replace && d.replace.action.click(E, C);
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 d(b, S, v, w) {
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": d("bpmn:ReceiveTask", "bpmn-icon-receive-task", p("Append ReceiveTask")),
167
- "append.message-intermediate-event": d(
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": d(
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": d(
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": d(
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": d("bpmn:Task", "bpmn-icon-task", p("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": d("bpmn:EndEvent", "bpmn-icon-end-event-none", p("Append EndEvent")),
197
- "append.gateway": d("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", p("Append Gateway")),
198
- "append.append-task": d("bpmn:UserTask", "bpmn-icon-user-task", p("Append Task")),
199
- "append.intermediate-event": d(
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": d("bpmn:TextAnnotation", "bpmn-icon-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": d("bpmn:TextAnnotation", "bpmn-icon-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 d(I) {
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: d,
286
- click: d
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, f({}, this.taskConfigForm));
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(f(f({}, this.defaultLoopInstanceForm), e.loopCharacteristics), {
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 u(this, null, function* () {
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(f({}, e), { type: "condition" }), this.flowConditionForm.resource) {
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(f({}, e))), e.$type === "bpmn:Signal" && (this.signalIdMap[e.id] = !0, this.signalList.push(f({}, e)));
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 = f({}, e);
2400
- if (e.script && (i = T(f(f({}, e), e.script), {
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 = "";
@@ -2408,9 +2408,10 @@ function Ae(e) {
2408
2408
  return i;
2409
2409
  }
2410
2410
  function we(e) {
2411
- var t;
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(f(f({}, g(e)), (t = e.script) != null ? 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" })),
2414
2415
  listenerType: i
2415
2416
  });
2416
2417
  }
@@ -2947,6 +2948,9 @@ var Fn = function() {
2947
2948
  }
2948
2949
  }
2949
2950
  }, [t("ElSelect", {
2951
+ on: {
2952
+ input: e.changeFiledType
2953
+ },
2950
2954
  model: {
2951
2955
  value: e.listenerFieldForm.fieldType,
2952
2956
  callback: function(n) {
@@ -3042,7 +3046,7 @@ const Sn = {
3042
3046
  id: {
3043
3047
  immediate: !0,
3044
3048
  handler(e) {
3045
- return u(this, null, function* () {
3049
+ return d(this, null, function* () {
3046
3050
  e && (yield this.$nextTick(), this.resetListenersList());
3047
3051
  });
3048
3052
  }
@@ -3053,13 +3057,14 @@ const Sn = {
3053
3057
  var e, i, t, n;
3054
3058
  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}:ExecutionListener`)) != null ? n : [], this.elementListenersList = this.bpmnElementListeners.map((s) => we(s));
3055
3059
  },
3060
+ changeFiledType(e) {
3061
+ e === "string" ? (delete this.listenerFieldForm.expression, this.$set(this.listenerFieldForm, "string", "")) : (delete this.listenerFieldForm.string, this.$set(this.listenerFieldForm, "expression", ""));
3062
+ },
3056
3063
  // 打开 监听器详情 侧边栏
3057
3064
  openListenerForm(e, i) {
3058
- return u(this, null, function* () {
3065
+ return d(this, null, function* () {
3059
3066
  var t;
3060
- e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => T(f({}, n), {
3061
- fieldType: n.string ? "string" : "expression"
3062
- })) : (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();
3063
3068
  });
3064
3069
  },
3065
3070
  // 打开监听器字段编辑弹窗
@@ -3070,13 +3075,13 @@ const Sn = {
3070
3075
  },
3071
3076
  // 保存监听器注入字段
3072
3077
  saveListenerFiled() {
3073
- return u(this, null, function* () {
3078
+ return d(this, null, function* () {
3074
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 = {});
3075
3080
  });
3076
3081
  },
3077
3082
  // 移除监听器字段
3078
3083
  removeListenerField(e, i) {
3079
- return u(this, null, function* () {
3084
+ return d(this, null, function* () {
3080
3085
  try {
3081
3086
  yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(i, 1), this.listenerForm.fields.splice(i, 1);
3082
3087
  } catch (t) {
@@ -3085,7 +3090,7 @@ const Sn = {
3085
3090
  },
3086
3091
  // 移除监听器
3087
3092
  removeListener(e, i) {
3088
- return u(this, null, function* () {
3093
+ return d(this, null, function* () {
3089
3094
  try {
3090
3095
  yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
3091
3096
  } catch (t) {
@@ -3094,7 +3099,7 @@ const Sn = {
3094
3099
  },
3095
3100
  // 保存监听器配置
3096
3101
  saveListenerConfig() {
3097
- return u(this, null, function* () {
3102
+ return d(this, null, function* () {
3098
3103
  var t, n, s, r;
3099
3104
  if (!(yield this.$refs.listenerFormRef.validate()))
3100
3105
  return;
@@ -4098,7 +4103,7 @@ const Pn = {
4098
4103
  id: {
4099
4104
  immediate: !0,
4100
4105
  handler(e) {
4101
- return u(this, null, function* () {
4106
+ return d(this, null, function* () {
4102
4107
  e && (yield this.$nextTick(), this.resetFormList());
4103
4108
  });
4104
4109
  }
@@ -4893,7 +4898,7 @@ const zn = {
4893
4898
  id: {
4894
4899
  immediate: !0,
4895
4900
  handler(e) {
4896
- return u(this, null, function* () {
4901
+ return d(this, null, function* () {
4897
4902
  e && (yield this.$nextTick(), this.resetListenersList());
4898
4903
  });
4899
4904
  }
@@ -4905,16 +4910,16 @@ const zn = {
4905
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));
4906
4911
  },
4907
4912
  openListenerForm(e, i) {
4908
- return u(this, null, function* () {
4913
+ return d(this, null, function* () {
4909
4914
  var t;
4910
- e ? (this.listenerForm = Ae(e), this.editingListenerIndex = i) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((n) => T(f({}, n), {
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), {
4911
4916
  fieldType: n.string ? "string" : "expression"
4912
4917
  })) : (this.fieldsListOfListener = [], this.$set(this.listenerForm, "fields", [])), this.listenerFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFormRef) == null || t.clearValidate();
4913
4918
  });
4914
4919
  },
4915
4920
  // 移除监听器
4916
4921
  removeListener(e, i) {
4917
- return u(this, null, function* () {
4922
+ return d(this, null, function* () {
4918
4923
  try {
4919
4924
  yield this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(i, 1), this.elementListenersList.splice(i, 1), U(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
4920
4925
  } catch (t) {
@@ -4923,7 +4928,7 @@ const zn = {
4923
4928
  },
4924
4929
  // 保存监听器
4925
4930
  saveListenerConfig() {
4926
- return u(this, null, function* () {
4931
+ return d(this, null, function* () {
4927
4932
  var t, n, s, r;
4928
4933
  if (!(yield this.$refs.listenerFormRef.validate()))
4929
4934
  return;
@@ -4933,20 +4938,20 @@ const zn = {
4933
4938
  },
4934
4939
  // 打开监听器字段编辑弹窗
4935
4940
  openListenerFieldForm(e, i) {
4936
- return u(this, null, function* () {
4941
+ return d(this, null, function* () {
4937
4942
  var t;
4938
4943
  this.listenerFieldForm = e ? g(e) : {}, this.editingListenerFieldIndex = e ? i : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
4939
4944
  });
4940
4945
  },
4941
4946
  // 保存监听器注入字段
4942
4947
  saveListenerFiled() {
4943
- return u(this, null, function* () {
4948
+ return d(this, null, function* () {
4944
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 = {});
4945
4950
  });
4946
4951
  },
4947
4952
  // 移除监听器字段
4948
4953
  removeListenerField(e, i) {
4949
- return u(this, null, function* () {
4954
+ return d(this, null, function* () {
4950
4955
  try {
4951
4956
  yield this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(i, 1), this.listenerForm.fields.splice(i, 1);
4952
4957
  } catch (t) {
@@ -9855,11 +9860,11 @@ const Pi = {
9855
9860
  if (this.moddleExtension)
9856
9861
  for (const i in this.moddleExtension)
9857
9862
  e[i] = this.moddleExtension[i];
9858
- return this.prefix === "activiti" && (e.activiti = T(f({}, ge), {
9863
+ return this.prefix === "activiti" && (e.activiti = T(u({}, ge), {
9859
9864
  types: [...ge.types, ...this.extendTypes || []]
9860
- })), this.prefix === "flowable" && (e.flowable = T(f({}, Ee), {
9865
+ })), this.prefix === "flowable" && (e.flowable = T(u({}, Ee), {
9861
9866
  types: [...Ee.types, ...this.extendTypes || []]
9862
- })), this.prefix === "camunda" && (e.camunda = T(f({}, ve), {
9867
+ })), this.prefix === "camunda" && (e.camunda = T(u({}, ve), {
9863
9868
  types: [...ve.types, ...this.extendTypes || []]
9864
9869
  })), e;
9865
9870
  }
@@ -9871,7 +9876,7 @@ const Pi = {
9871
9876
  },
9872
9877
  methods: {
9873
9878
  initBpmnModeler() {
9874
- this.bpmnModeler || (this.bpmnModeler = new We(f({
9879
+ this.bpmnModeler || (this.bpmnModeler = new We(u({
9875
9880
  container: this.$refs["bpmn-canvas"],
9876
9881
  keyboard: this.keyboard ? { bindTo: document } : null,
9877
9882
  additionalModules: this.additionalModules,
@@ -9885,7 +9890,7 @@ const Pi = {
9885
9890
  const s = t.replace(/\./g, "-"), r = n ? n.element : null;
9886
9891
  i.$emit(s, r, n);
9887
9892
  });
9888
- }), e.on("commandStack.changed", (t) => u(this, null, function* () {
9893
+ }), e.on("commandStack.changed", (t) => d(this, null, function* () {
9889
9894
  try {
9890
9895
  this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
9891
9896
  const { xml: n } = yield this.bpmnModeler.saveXML({ format: !0 });
@@ -9901,7 +9906,7 @@ const Pi = {
9901
9906
  },
9902
9907
  /* 创建新的流程图 */
9903
9908
  createNewDiagram(e) {
9904
- return u(this, null, function* () {
9909
+ return d(this, null, function* () {
9905
9910
  const i = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, t = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, n = e || Xn(i, t, this.prefix);
9906
9911
  try {
9907
9912
  const { warnings: s } = yield this.bpmnModeler.importXML(n);
@@ -9917,7 +9922,7 @@ const Pi = {
9917
9922
  * @param {*} name
9918
9923
  */
9919
9924
  downloadProcess(e, i = "diagram") {
9920
- return u(this, null, function* () {
9925
+ return d(this, null, function* () {
9921
9926
  try {
9922
9927
  if (e === "xml" || e === "bpmn") {
9923
9928
  const { err: n, xml: s } = yield this.bpmnModeler.saveXML();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "2.11.0",
4
+ "version": "2.13.0",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "2.11.0",
5
+ "version": "2.13.0",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",