@web-utils/component 3.3.5 → 3.3.7

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.
@@ -1,15 +1,15 @@
1
- var ve = Object.defineProperty, ge = Object.defineProperties;
1
+ var ge = Object.defineProperty, ve = Object.defineProperties;
2
2
  var Ee = Object.getOwnPropertyDescriptors;
3
3
  var Q = Object.getOwnPropertySymbols;
4
4
  var Fe = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable;
5
- var ee = (n, e, t) => e in n ? ve(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, u = (n, e) => {
5
+ var ee = (n, e, t) => e in n ? ge(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, u = (n, e) => {
6
6
  for (var t in e || (e = {}))
7
7
  Fe.call(e, t) && ee(n, t, e[t]);
8
8
  if (Q)
9
9
  for (var t of Q(e))
10
10
  xe.call(e, t) && ee(n, t, e[t]);
11
11
  return n;
12
- }, T = (n, e) => ge(n, Ee(e));
12
+ }, T = (n, e) => ve(n, Ee(e));
13
13
  var d = (n, e, t) => new Promise((i, s) => {
14
14
  var a = (p) => {
15
15
  try {
@@ -26,16 +26,16 @@ 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 Se, forEach as Te, isObject as Ce, isFunction as ke, some as _ } from "min-dash";
29
+ import { assign as y, isArray as Se, forEach as Te, isObject as Ce, isFunction as ke, some as I } from "min-dash";
30
30
  import { is as R } from "bpmn-js/lib/util/ModelUtil";
31
- import { isExpanded as Ie, isEventSubProcess as _e } from "bpmn-js/lib/util/DiUtil";
31
+ import { isExpanded as _e, isEventSubProcess as Ie } from "bpmn-js/lib/util/DiUtil";
32
32
  import { isAny as N } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
33
33
  import { getChildLanes as we } from "bpmn-js/lib/features/modeling/util/LaneUtil";
34
34
  import { hasPrimaryModifier as Ae } from "diagram-js/lib/util/Mouse";
35
35
  import oe from "bpmn-js/lib/features/palette/PaletteProvider";
36
36
  import K 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 g, isBlank as Oe, capitalize as Pe, isArray as te } from "@web-utils/core";
38
+ import { fastClone as v, isBlank as Oe, capitalize as Pe, isArray as te } 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";
@@ -86,14 +86,14 @@ J.prototype.getContextPadEntries = function(n) {
86
86
  t.removeElements([n]);
87
87
  }
88
88
  function C(b) {
89
- const v = o.getContainer(), A = e.getPad(b).html, $ = v.getBoundingClientRect(), M = A.getBoundingClientRect(), D = M.top - $.top;
89
+ const g = o.getContainer(), A = e.getPad(b).html, $ = g.getBoundingClientRect(), M = A.getBoundingClientRect(), D = M.top - $.top;
90
90
  return {
91
91
  x: M.left - $.left,
92
92
  y: D + M.height + 5
93
93
  };
94
94
  }
95
- function f(b, S, v, A) {
96
- typeof v != "string" && (A = v, v = m("Append {type}", { type: b.replace(/^bpmn:/, "") }));
95
+ function f(b, S, g, A) {
96
+ typeof g != "string" && (A = g, g = m("Append {type}", { type: b.replace(/^bpmn:/, "") }));
97
97
  function $(D, B) {
98
98
  const V = i.createShape(y({ type: b }, A));
99
99
  a.start(D, V, {
@@ -103,7 +103,7 @@ J.prototype.getContextPadEntries = function(n) {
103
103
  return {
104
104
  group: "model",
105
105
  className: S,
106
- title: v,
106
+ title: g,
107
107
  action: {
108
108
  dragstart: $,
109
109
  click: F ? function(D, B) {
@@ -114,11 +114,11 @@ J.prototype.getContextPadEntries = function(n) {
114
114
  };
115
115
  }
116
116
  function P(b) {
117
- return function(S, v) {
118
- t.splitLane(v, b), e.open(v, !0);
117
+ return function(S, g) {
118
+ t.splitLane(g, b), e.open(g, !0);
119
119
  };
120
120
  }
121
- if (N(c, ["bpmn:Lane", "bpmn:Participant"]) && Ie(c)) {
121
+ if (N(c, ["bpmn:Lane", "bpmn:Participant"]) && _e(c)) {
122
122
  const b = we(n);
123
123
  y(l, {
124
124
  "lane-insert-above": {
@@ -126,8 +126,8 @@ J.prototype.getContextPadEntries = function(n) {
126
126
  className: "bpmn-icon-lane-insert-above",
127
127
  title: m("Add Lane above"),
128
128
  action: {
129
- click: function(S, v) {
130
- t.addLane(v, "top");
129
+ click: function(S, g) {
130
+ t.addLane(g, "top");
131
131
  }
132
132
  }
133
133
  }
@@ -155,8 +155,8 @@ J.prototype.getContextPadEntries = function(n) {
155
155
  className: "bpmn-icon-lane-insert-below",
156
156
  title: m("Add Lane below"),
157
157
  action: {
158
- click: function(S, v) {
159
- t.addLane(v, "bottom");
158
+ click: function(S, g) {
159
+ t.addLane(g, "bottom");
160
160
  }
161
161
  }
162
162
  }
@@ -201,7 +201,7 @@ J.prototype.getContextPadEntries = function(n) {
201
201
  isForCompensation: !0
202
202
  }
203
203
  )
204
- }) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !ne(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !_e(c) && y(l, {
204
+ }) : !R(c, "bpmn:EndEvent") && !c.isForCompensation && !ne(c, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ie(c) && y(l, {
205
205
  "append.end-event": f("bpmn:EndEvent", "bpmn-icon-end-event-none", m("Append EndEvent")),
206
206
  "append.gateway": f("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", m("Append Gateway")),
207
207
  "append.append-task": f("bpmn:UserTask", "bpmn-icon-user-task", m("Append Task")),
@@ -217,10 +217,10 @@ J.prototype.getContextPadEntries = function(n) {
217
217
  title: m("Change type"),
218
218
  action: {
219
219
  click: function(b, S) {
220
- const v = y(C(S), {
220
+ const g = y(C(S), {
221
221
  cursor: { x: b.x, y: b.y }
222
222
  });
223
- r.open(S, "bpmn-replace", v);
223
+ r.open(S, "bpmn-replace", g);
224
224
  }
225
225
  }
226
226
  }
@@ -618,7 +618,7 @@ const tt = (n, e = "body") => n ? n.get(e) : null, nt = (n, e, t = "body", i) =>
618
618
  methods: {
619
619
  init(n) {
620
620
  const { businessObject: e } = this.element;
621
- n ? (this.businessObject = g(e), this.businessObject.$type === "bpmn:SubProcess" && this.$set(this.businessObject, "isExpanded", this.element.di.isExpanded)) : this.businessObject = {}, this.skipExpression = tt(e, this.skipExpressionProp);
621
+ 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);
622
622
  },
623
623
  updateBaseInfo(n) {
624
624
  const { modeling: e } = this.bpmnInstances;
@@ -819,7 +819,7 @@ var bt = function() {
819
819
  null,
820
820
  null
821
821
  );
822
- const vt = ht.exports, gt = {
822
+ const gt = ht.exports, vt = {
823
823
  name: "ScriptTask",
824
824
  props: {
825
825
  id: String,
@@ -890,7 +890,7 @@ var Et = function() {
890
890
  e.$set(e.scriptTaskForm, "resultVariable", i);
891
891
  }, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
892
892
  }, Ft = [], xt = /* @__PURE__ */ h(
893
- gt,
893
+ vt,
894
894
  Et,
895
895
  Ft,
896
896
  !1,
@@ -958,7 +958,7 @@ var Ct = function() {
958
958
  e.bindMessageId = i;
959
959
  }, expression: "bindMessageId" } }, e._l(Object.keys(e.messageMap), function(i) {
960
960
  return t("ElOption", { key: i, attrs: { value: i, label: e.messageMap[i] } });
961
- }), 1), t("ElButton", { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), t("ElementDialog", { attrs: { visible: e.messageModelVisible, "close-on-click-modal": !1, title: "创建新消息", width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
961
+ }), 1), t("ElButton", { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), t("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.messageModelVisible, "close-on-click-modal": !1, title: "创建新消息", width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
962
962
  e.messageModelVisible = i;
963
963
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
964
964
  return [t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.createNewMessage } }, [e._v("确 认")])];
@@ -969,7 +969,7 @@ var Ct = function() {
969
969
  }, expression: "newMessageForm.id" } })], 1), t("ElFormItem", { attrs: { label: "消息名称" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(i) {
970
970
  e.$set(e.newMessageForm, "name", i);
971
971
  }, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
972
- }, kt = [], It = /* @__PURE__ */ h(
972
+ }, kt = [], _t = /* @__PURE__ */ h(
973
973
  Tt,
974
974
  Ct,
975
975
  kt,
@@ -979,9 +979,9 @@ var Ct = function() {
979
979
  null,
980
980
  null
981
981
  );
982
- const _t = It.exports, wt = {
982
+ const It = _t.exports, wt = {
983
983
  name: "ElementTaskConfig",
984
- components: { UserTask: vt, ScriptTask: St, ReceiveTask: _t },
984
+ components: { UserTask: gt, ScriptTask: St, ReceiveTask: It },
985
985
  props: {
986
986
  id: String,
987
987
  element: Object,
@@ -1176,7 +1176,7 @@ var Mt = function() {
1176
1176
  return [e._v(" 回路特性 "), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
1177
1177
  return [t("ul", [t("li", { staticClass: "flow-tips-list-item" }, [t("span", { staticClass: "flow-tips-keyword" }, [e._v("并行")]), e._v(" 一次性创建所有任务实例")]), t("li", { staticClass: "flow-tips-list-item" }, [t("span", { staticClass: "flow-tips-keyword" }, [e._v("串行")]), e._v(" 完成一个任务实例再创建一个任务实例,直到环节完成 ")]), t("li", { staticClass: "flow-tips-list-item" }, [t("span", { staticClass: "flow-tips-keyword" }, [e._v("循环事件")]), e._v(" 未知")])])];
1178
1178
  }, proxy: !0 }]) }, [t("i", { staticClass: "el-icon-info" })])];
1179
- }, proxy: !0 }]) }, [t("ElSelect", { staticStyle: { width: "100%" }, on: { change: e.changeLoopCharacteristicsType }, model: { value: e.loopCharacteristics, callback: function(i) {
1179
+ }, proxy: !0 }]) }, [t("ElSelect", { on: { change: e.changeLoopCharacteristicsType }, model: { value: e.loopCharacteristics, callback: function(i) {
1180
1180
  e.loopCharacteristics = i;
1181
1181
  }, expression: "loopCharacteristics" } }, [t("ElOption", { attrs: { label: "并行", value: "ParallelMultiInstance" } }), t("ElOption", { attrs: { label: "串行", value: "SequentialMultiInstance" } }), t("ElOption", { attrs: { label: "循环事件", value: "StandardLoop" } }), t("ElOption", { attrs: { label: "无", value: "Null" } })], 1)], 1), e.loopCharacteristics === "ParallelMultiInstance" || e.loopCharacteristics === "SequentialMultiInstance" ? [t("ElFormItem", { key: "loopCardinality", attrs: { label: "循环基数" }, scopedSlots: e._u([{ key: "label", fn: function() {
1182
1182
  return [e._v(" 循环基数 "), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
@@ -1385,7 +1385,7 @@ var qt = function() {
1385
1385
  return e.openModel("message");
1386
1386
  } } }, [e._v("创建新消息")])], 1), t("ElTable", { attrs: { data: e.messageList, size: "mini", border: "" } }, [t("ElTableColumn", { attrs: { type: "index", label: "序号", width: "60px" } }), t("ElTableColumn", { attrs: { label: "消息ID", prop: "id", "max-width": "300px", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "消息名称", prop: "name", "max-width": "300px", "show-overflow-tooltip": "" } })], 1), t("div", { staticClass: "panel-tab__content--title", staticStyle: { "margin-top": "8px", "padding-top": "8px", "border-top": "1px solid #eee" } }, [e._m(1), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(i) {
1387
1387
  return e.openModel("signal");
1388
- } } }, [e._v("创建新信号")])], 1), t("ElTable", { attrs: { data: e.signalList, size: "mini", border: "" } }, [t("ElTableColumn", { attrs: { type: "index", label: "序号", width: "60px" } }), t("ElTableColumn", { attrs: { label: "信号ID", prop: "id", "max-width": "300px", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "信号名称", prop: "name", "max-width": "300px", "show-overflow-tooltip": "" } })], 1), t("ElementDialog", { attrs: { visible: e.modelVisible, title: e.modelConfig.title, "close-on-click-modal": !1, width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
1388
+ } } }, [e._v("创建新信号")])], 1), t("ElTable", { attrs: { data: e.signalList, size: "mini", border: "" } }, [t("ElTableColumn", { attrs: { type: "index", label: "序号", width: "60px" } }), t("ElTableColumn", { attrs: { label: "信号ID", prop: "id", "max-width": "300px", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "信号名称", prop: "name", "max-width": "300px", "show-overflow-tooltip": "" } })], 1), t("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.modelVisible, title: e.modelConfig.title, "close-on-click-modal": !1, width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
1389
1389
  e.modelVisible = i;
1390
1390
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
1391
1391
  return [t("ElButton", { attrs: { size: "mini" }, on: { click: function(i) {
@@ -1430,7 +1430,7 @@ function de(n) {
1430
1430
  function fe(n) {
1431
1431
  var t, i;
1432
1432
  let e;
1433
- return n.class && (e = "classListener"), n.expression && (e = "expressionListener"), n.delegateExpression && (e = "delegateExpressionListener"), n.script && (e = "scriptListener"), T(u(u({}, g(n)), (t = n.script) != null ? t : {}), {
1433
+ return n.class && (e = "classListener"), n.expression && (e = "expressionListener"), n.delegateExpression && (e = "delegateExpressionListener"), n.script && (e = "scriptListener"), T(u(u({}, v(n)), (t = n.script) != null ? t : {}), {
1434
1434
  fields: (i = n.fields) == null ? void 0 : i.map((s) => T(u({}, s), { fieldType: s.expression ? "expression" : "string" })),
1435
1435
  listenerType: e
1436
1436
  });
@@ -1450,7 +1450,7 @@ const be = {
1450
1450
  }, ye = {
1451
1451
  string: "字符串",
1452
1452
  expression: "表达式"
1453
- }, Wt = (n, e) => ({
1453
+ }, Wt = (n) => ({
1454
1454
  $type: "flowable:ExecutionListener",
1455
1455
  event: n === "draft" ? "start" : n,
1456
1456
  // eslint-disable-next-line no-template-curly-in-string
@@ -1543,7 +1543,7 @@ const be = {
1543
1543
  },
1544
1544
  // 打开监听器字段编辑弹窗
1545
1545
  openListenerFieldForm(n, e) {
1546
- this.listenerFieldForm = n ? g(n) : { fieldType: "string" }, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, this.$nextTick(() => {
1546
+ this.listenerFieldForm = n ? v(n) : { fieldType: "string" }, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, this.$nextTick(() => {
1547
1547
  this.$refs.listenerFieldFormRef && this.$refs.listenerFieldFormRef.clearValidate();
1548
1548
  });
1549
1549
  },
@@ -1614,9 +1614,9 @@ var Qt = function() {
1614
1614
  return e.assignListener("draft");
1615
1615
  } } }, [e._v("草稿")])], 1), t("ElForm", { ref: "listenerFormRef", attrs: { size: "mini", model: e.listenerForm, "label-width": "96px" }, nativeOn: { submit: function(r) {
1616
1616
  r.preventDefault();
1617
- } } }, [t("ElFormItem", { attrs: { label: "事件类型", prop: "event", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { staticStyle: { width: "100%" }, model: { value: e.listenerForm.event, callback: function(r) {
1617
+ } } }, [t("ElFormItem", { attrs: { label: "事件类型", prop: "event", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { model: { value: e.listenerForm.event, callback: function(r) {
1618
1618
  e.$set(e.listenerForm, "event", r);
1619
- }, expression: "listenerForm.event" } }, [t("ElOption", { attrs: { label: "开始", value: "start" } }), t("ElOption", { attrs: { label: "结束", value: "end" } })], 1)], 1), t("ElFormItem", { attrs: { label: "监听器类型", prop: "listenerType", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { staticStyle: { width: "100%" }, model: { value: e.listenerForm.listenerType, callback: function(r) {
1619
+ }, expression: "listenerForm.event" } }, [t("ElOption", { attrs: { label: "开始", value: "start" } }), t("ElOption", { attrs: { label: "结束", value: "end" } })], 1)], 1), t("ElFormItem", { attrs: { label: "监听器类型", prop: "listenerType", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { model: { value: e.listenerForm.listenerType, callback: function(r) {
1620
1620
  e.$set(e.listenerForm, "listenerType", r);
1621
1621
  }, expression: "listenerForm.listenerType" } }, e._l(Object.keys(e.listenerTypeObject), function(r) {
1622
1622
  return t("ElOption", { key: r, attrs: { label: e.listenerTypeObject[r], value: r } });
@@ -1624,7 +1624,7 @@ var Qt = function() {
1624
1624
  e.$set(e.listenerForm, "class", r);
1625
1625
  }, expression: "listenerForm.class" } })], 1) : e._e(), e.listenerForm.listenerType === "expressionListener" ? t("ElFormItem", { key: "listener-expression", attrs: { label: "表达式", prop: "expression", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.listenerForm.expression, callback: function(r) {
1626
1626
  e.$set(e.listenerForm, "expression", r);
1627
- }, expression: "listenerForm.expression" } })], 1) : e._e(), e.listenerForm.listenerType === "delegateExpressionListener" ? t("ElFormItem", { key: "listener-delegate", attrs: { label: "代理表达式", prop: "delegateExpression", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { staticStyle: { width: "100%" }, attrs: { "default-first-option": "", "allow-create": "", filterable: "", clearable: "" }, model: { value: e.listenerForm.delegateExpression, callback: function(r) {
1627
+ }, expression: "listenerForm.expression" } })], 1) : e._e(), e.listenerForm.listenerType === "delegateExpressionListener" ? t("ElFormItem", { key: "listener-delegate", attrs: { label: "代理表达式", prop: "delegateExpression", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { attrs: { "default-first-option": "", "allow-create": "", filterable: "", clearable: "" }, model: { value: e.listenerForm.delegateExpression, callback: function(r) {
1628
1628
  e.$set(e.listenerForm, "delegateExpression", r);
1629
1629
  }, expression: "listenerForm.delegateExpression" } }, e._l(((i = e.context) == null ? void 0 : i.delegateExpressions) || [], function(r) {
1630
1630
  return t("ElOption", { key: r, attrs: { value: r, label: r } });
@@ -1646,7 +1646,7 @@ var Qt = function() {
1646
1646
  } } }, [e._v(" 移除 ")])];
1647
1647
  } }]) })], 1), t("div", { staticClass: "element-drawer__button" }, [t("ElButton", { attrs: { size: "mini" }, on: { click: function(r) {
1648
1648
  e.listenerFormModelVisible = !1;
1649
- } } }, [e._v("取 消")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.saveListenerConfig } }, [e._v("保 存")])], 1)], 1), t("ElementDialog", { attrs: { title: "字段配置", visible: e.listenerFieldFormModelVisible, width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(r) {
1649
+ } } }, [e._v("取 消")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.saveListenerConfig } }, [e._v("保 存")])], 1)], 1), t("ElementDialog", { staticClass: "flow-dialog", attrs: { title: "字段配置", visible: e.listenerFieldFormModelVisible, width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(r) {
1650
1650
  e.listenerFieldFormModelVisible = r;
1651
1651
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
1652
1652
  return [t("ElButton", { attrs: { size: "mini" }, on: { click: function(r) {
@@ -1654,19 +1654,19 @@ var Qt = function() {
1654
1654
  } } }, [e._v("取 消")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.saveListenerFiled } }, [e._v("确 定")])];
1655
1655
  }, proxy: !0 }]) }, [t("ElForm", { ref: "listenerFieldFormRef", staticStyle: { height: "136px" }, attrs: { model: e.listenerFieldForm, size: "mini", "label-width": "96px" }, nativeOn: { submit: function(r) {
1656
1656
  r.preventDefault();
1657
- } } }, [t("ElFormItem", { attrs: { label: "字段名称:", prop: "name", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { staticStyle: { width: "100%" }, attrs: { "default-first-option": "", "allow-create": "", filterable: "", clearable: "" }, on: { input: e.setDefaultFieldValue }, model: { value: e.listenerFieldForm.name, callback: function(r) {
1657
+ } } }, [t("ElFormItem", { attrs: { label: "字段名称:", prop: "name", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { attrs: { "default-first-option": "", "allow-create": "", filterable: "", clearable: "" }, on: { input: e.setDefaultFieldValue }, model: { value: e.listenerFieldForm.name, callback: function(r) {
1658
1658
  e.$set(e.listenerFieldForm, "name", r);
1659
1659
  }, expression: "listenerFieldForm.name" } }, e._l(((s = e.context) == null ? void 0 : s.fields) || [], function(r) {
1660
1660
  return t("ElOption", { key: r, attrs: { value: r, label: r } });
1661
- }), 1)], 1), t("ElFormItem", { attrs: { label: "字段类型:", prop: "fieldType", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { staticStyle: { width: "100%" }, on: { input: e.changeFiledType }, model: { value: e.listenerFieldForm.fieldType, callback: function(r) {
1661
+ }), 1)], 1), t("ElFormItem", { attrs: { label: "字段类型:", prop: "fieldType", rules: { required: !0, trigger: ["blur", "change"] } } }, [t("ElSelect", { on: { input: e.changeFiledType }, model: { value: e.listenerFieldForm.fieldType, callback: function(r) {
1662
1662
  e.$set(e.listenerFieldForm, "fieldType", r);
1663
1663
  }, expression: "listenerFieldForm.fieldType" } }, e._l(Object.keys(e.fieldTypeObject), function(r) {
1664
1664
  return t("ElOption", { key: r, attrs: { label: e.fieldTypeObject[r], value: r } });
1665
- }), 1)], 1), e.listenerFieldForm.fieldType === "string" ? t("ElFormItem", { key: "field-string", staticClass: "element-listeners-field-name", attrs: { label: "字段值:", prop: "string", rules: { required: !0, trigger: ["blur", "change"] } } }, [e.listenerFieldForm.name === "url" ? t("ElSelect", { staticStyle: { width: "100%" }, attrs: { "default-first-option": "", "allow-create": "", filterable: "", clearable: "" }, model: { value: e.listenerFieldForm.string, callback: function(r) {
1665
+ }), 1)], 1), e.listenerFieldForm.fieldType === "string" ? t("ElFormItem", { key: "field-string", staticClass: "element-listeners-field-name", attrs: { label: "字段值:", prop: "string", rules: { required: !0, trigger: ["blur", "change"] } } }, [e.listenerFieldForm.name === "url" ? t("ElSelect", { attrs: { "default-first-option": "", "allow-create": "", filterable: "", clearable: "" }, model: { value: e.listenerFieldForm.string, callback: function(r) {
1666
1666
  e.$set(e.listenerFieldForm, "string", r);
1667
1667
  }, expression: "listenerFieldForm.string" } }, e._l(e.apis, function(r) {
1668
1668
  return t("ElOption", { key: r, attrs: { value: r, label: r } });
1669
- }), 1) : e.listenerFieldForm.name === "serviceId" ? t("ElSelect", { staticStyle: { width: "100%" }, attrs: { "default-first-option": "", "allow-create": "", filterable: "", clearable: "" }, model: { value: e.listenerFieldForm.string, callback: function(r) {
1669
+ }), 1) : e.listenerFieldForm.name === "serviceId" ? t("ElSelect", { attrs: { "default-first-option": "", "allow-create": "", filterable: "", clearable: "" }, model: { value: e.listenerFieldForm.string, callback: function(r) {
1670
1670
  e.$set(e.listenerFieldForm, "string", r);
1671
1671
  }, expression: "listenerFieldForm.string" } }, e._l(((a = e.context) == null ? void 0 : a.services) || [], function(r) {
1672
1672
  return t("ElOption", { key: r, attrs: { value: r, label: r } });
@@ -1718,10 +1718,10 @@ const nn = tn.exports, sn = {
1718
1718
  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(
1719
1719
  (a, r) => a.concat(r.values),
1720
1720
  []
1721
- ), this.elementPropertyList = g((s = this.bpmnElementPropertyList) != null ? s : []);
1721
+ ), this.elementPropertyList = v((s = this.bpmnElementPropertyList) != null ? s : []);
1722
1722
  },
1723
1723
  openAttributesForm(n, e) {
1724
- this.editingPropertyIndex = e, this.propertyForm = e === -1 ? {} : g(n), this.propertyFormModelVisible = !0, this.$nextTick(() => {
1724
+ this.editingPropertyIndex = e, this.propertyForm = e === -1 ? {} : v(n), this.propertyFormModelVisible = !0, this.$nextTick(() => {
1725
1725
  this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
1726
1726
  });
1727
1727
  },
@@ -1777,7 +1777,7 @@ var rn = function() {
1777
1777
  } } }, [e._v("移除")])];
1778
1778
  } }]) })], 1), t("div", { staticClass: "element-drawer__button" }, [t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(i) {
1779
1779
  return e.openAttributesForm(null, -1);
1780
- } } }, [e._v("添加属性")])], 1), t("ElementDialog", { attrs: { visible: e.propertyFormModelVisible, title: "属性配置", width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
1780
+ } } }, [e._v("添加属性")])], 1), t("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.propertyFormModelVisible, title: "属性配置", width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
1781
1781
  e.propertyFormModelVisible = i;
1782
1782
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
1783
1783
  return [t("ElButton", { attrs: { size: "mini" }, on: { click: function(i) {
@@ -1857,7 +1857,7 @@ const ln = on.exports, pn = {
1857
1857
  methods: {
1858
1858
  resetFormList() {
1859
1859
  var n;
1860
- 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 = g(this.formData.fields || []), this.updateElementExtensions();
1860
+ 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();
1861
1861
  },
1862
1862
  updateElementFormKey() {
1863
1863
  this.bpmnInstances.modeling.updateProperties(this.element, { formKey: this.formKey });
@@ -1876,14 +1876,14 @@ const ln = on.exports, pn = {
1876
1876
  var t, i;
1877
1877
  if (this.formFieldIndex = e, e !== -1) {
1878
1878
  const s = this.formData.fields[e];
1879
- this.formFieldForm = g(n), this.$set(this.formFieldForm, "typeType", this.fieldType[n.type] ? n.type : "custom"), n.type === "enum" && (this.fieldEnumList = g((s == null ? void 0 : s.values) || [])), this.fieldConstraintsList = g(((t = s == null ? void 0 : s.validation) == null ? void 0 : t.constraints) || []), this.fieldPropertiesList = g(((i = s == null ? void 0 : s.properties) == null ? void 0 : i.values) || []);
1879
+ 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) || []);
1880
1880
  } else
1881
1881
  this.formFieldForm = {}, this.fieldEnumList = [], this.fieldConstraintsList = [], this.fieldPropertiesList = [];
1882
1882
  this.fieldModelVisible = !0;
1883
1883
  },
1884
1884
  // 打开字段 某个 配置项 弹窗
1885
1885
  openFieldOptionForm(n, e, t) {
1886
- return this.fieldOptionModelVisible = !0, this.fieldOptionType = t, this.formFieldOptionIndex = e, t === "property" ? (this.fieldOptionForm = n ? g(n) : {}, this.optionModelTitle = "属性配置") : t === "enum" ? (this.fieldOptionForm = n ? g(n) : {}, this.optionModelTitle = "枚举值配置") : (this.fieldOptionForm = n ? g(n) : {}, this.optionModelTitle = "约束条件配置");
1886
+ 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 = "约束条件配置");
1887
1887
  },
1888
1888
  // 保存字段 某个 配置项
1889
1889
  saveFieldOption() {
@@ -1976,7 +1976,7 @@ var mn = function() {
1976
1976
  } } }, [e._v("编辑")]), t("ElDivider", { attrs: { direction: "vertical" } }), t("ElButton", { staticStyle: { color: "#ff4d4f" }, attrs: { size: "mini", type: "text" }, on: { click: function(a) {
1977
1977
  return e.removeFieldOptionItem(i, s, "enum");
1978
1978
  } } }, [e._v("移除")])];
1979
- } }], null, !1, 747635382) })], 1)] : e._e(), t("ElDivider", { key: "validation-divider" }), t("p", { key: "validation-title", staticClass: "listener-filed__title", staticStyle: { "padding-bottom": "6px" } }, [t("span", [t("i", { staticClass: "el-icon-menu" }), e._v("约束条件列表:")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: function(i) {
1979
+ } }], null, !1, 747635382) })], 1)] : e._e(), t("ElDivider", { key: "validation-divider" }), t("p", { key: "validation-title", staticClass: "listener-filed__title", staticStyle: { "padding-bottom": "6px" } }, [t("span", [t("i", { staticClass: "el-icon-menu" }), e._v("约束条件列表:")]), t("ElButton", { staticStyle: { "margin-left": "auto" }, attrs: { size: "mini", type: "primary" }, on: { click: function(i) {
1980
1980
  return e.openFieldOptionForm(null, -1, "constraint");
1981
1981
  } } }, [e._v("添加约束")])], 1), t("ElTable", { key: "validation-table", attrs: { data: e.fieldConstraintsList, size: "mini", "max-height": "240", border: "", fit: "" } }, [t("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), t("ElTableColumn", { attrs: { label: "约束名称", prop: "name", "min-width": "100px", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "约束配置", prop: "config", "min-width": "100px", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: e._u([{ key: "default", fn: function({ row: i, $index: s }) {
1982
1982
  return [t("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(a) {
@@ -1984,7 +1984,7 @@ var mn = function() {
1984
1984
  } } }, [e._v("编辑")]), t("ElDivider", { attrs: { direction: "vertical" } }), t("ElButton", { staticStyle: { color: "#ff4d4f" }, attrs: { size: "mini", type: "text" }, on: { click: function(a) {
1985
1985
  return e.removeFieldOptionItem(i, s, "constraint");
1986
1986
  } } }, [e._v("移除")])];
1987
- } }]) })], 1), t("ElDivider", { key: "property-divider" }), t("p", { key: "property-title", staticClass: "listener-filed__title", staticStyle: { "padding-bottom": "6px" } }, [t("span", [t("i", { staticClass: "el-icon-menu" }), e._v("字段属性列表:")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: function(i) {
1987
+ } }]) })], 1), t("ElDivider", { key: "property-divider" }), t("p", { key: "property-title", staticClass: "listener-filed__title", staticStyle: { "padding-bottom": "6px" } }, [t("span", [t("i", { staticClass: "el-icon-menu" }), e._v("字段属性列表:")]), t("ElButton", { staticStyle: { "margin-left": "auto" }, attrs: { size: "mini", type: "primary" }, on: { click: function(i) {
1988
1988
  return e.openFieldOptionForm(null, -1, "property");
1989
1989
  } } }, [e._v("添加属性")])], 1), t("ElTable", { key: "property-table", attrs: { data: e.fieldPropertiesList, size: "mini", "max-height": "240", border: "", fit: "" } }, [t("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), t("ElTableColumn", { attrs: { label: "属性编号", prop: "id", "min-width": "100px", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "属性值", prop: "value", "min-width": "100px", "show-overflow-tooltip": "" } }), t("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: e._u([{ key: "default", fn: function({ row: i, $index: s }) {
1990
1990
  return [t("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(a) {
@@ -1994,7 +1994,7 @@ var mn = function() {
1994
1994
  } } }, [e._v("移除")])];
1995
1995
  } }]) })], 1), t("div", { staticClass: "element-drawer__button" }, [t("ElButton", { attrs: { size: "mini" }, on: { click: function(i) {
1996
1996
  e.fieldModelVisible = !1;
1997
- } } }, [e._v("取 消")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.saveField } }, [e._v("保 存")])], 1)], 2), t("ElementDialog", { attrs: { visible: e.fieldOptionModelVisible, title: e.optionModelTitle, width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
1997
+ } } }, [e._v("取 消")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.saveField } }, [e._v("保 存")])], 1)], 2), t("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.fieldOptionModelVisible, title: e.optionModelTitle, width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
1998
1998
  e.fieldOptionModelVisible = i;
1999
1999
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
2000
2000
  return [t("ElButton", { attrs: { size: "mini" }, on: { click: function(i) {
@@ -2109,7 +2109,7 @@ const dn = un.exports, fn = {
2109
2109
  openListenerFieldForm(n, e) {
2110
2110
  return d(this, null, function* () {
2111
2111
  var t;
2112
- this.listenerFieldForm = n ? g(n) : {}, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
2112
+ this.listenerFieldForm = n ? v(n) : {}, this.editingListenerFieldIndex = n ? e : -1, this.listenerFieldFormModelVisible = !0, yield this.$nextTick(), (t = this.$refs.listenerFieldFormRef) == null || t.clearValidate();
2113
2113
  });
2114
2114
  },
2115
2115
  // 保存监听器注入字段
@@ -2171,7 +2171,7 @@ var bn = function() {
2171
2171
  e.$set(e.listenerForm, "eventDefinitionType", i);
2172
2172
  }, expression: "listenerForm.eventDefinitionType" } }, [t("ElOption", { attrs: { label: "日期", value: "date" } }), t("ElOption", { attrs: { label: "持续时长", value: "duration" } }), t("ElOption", { attrs: { label: "循环", value: "cycle" } }), t("ElOption", { attrs: { label: "无", value: "null" } })], 1)], 1), e.listenerForm.eventDefinitionType && e.listenerForm.eventDefinitionType !== "null" ? t("ElFormItem", { key: "eventTimeDefinitions", attrs: { label: "定时器", prop: "eventTimeDefinitions", rules: { required: !0, trigger: ["blur", "change"], message: "请填写定时器配置" } } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.listenerForm.eventTimeDefinitions, callback: function(i) {
2173
2173
  e.$set(e.listenerForm, "eventTimeDefinitions", i);
2174
- }, expression: "listenerForm.eventTimeDefinitions" } })], 1) : e._e()] : e._e()], 2), t("ElDivider"), t("p", { staticClass: "listener-filed__title", staticStyle: { "padding-bottom": "6px" } }, [t("span", [t("i", { staticClass: "el-icon-menu" }), e._v("注入字段:")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: function(i) {
2174
+ }, expression: "listenerForm.eventTimeDefinitions" } })], 1) : e._e()] : e._e()], 2), t("ElDivider"), t("p", { staticClass: "listener-filed__title", staticStyle: { "padding-bottom": "6px" } }, [t("span", [t("i", { staticClass: "el-icon-menu" }), e._v("注入字段:")]), t("ElButton", { staticStyle: { "margin-left": "auto" }, attrs: { size: "mini", type: "primary" }, on: { click: function(i) {
2175
2175
  return e.openListenerFieldForm(null);
2176
2176
  } } }, [e._v("添加字段")])], 1), t("ElTable", { staticStyle: { flex: "none" }, attrs: { data: e.fieldsListOfListener, size: "mini", "max-height": "240", border: "", fit: "" } }, [t("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), t("ElTableColumn", { attrs: { label: "字段名称", "min-width": "100px", prop: "name" } }), t("ElTableColumn", { attrs: { label: "字段类型", "min-width": "80px", "show-overflow-tooltip": "", formatter: (i) => e.fieldTypeObject[i.fieldType] } }), t("ElTableColumn", { attrs: { label: "字段值/表达式", "min-width": "100px", "show-overflow-tooltip": "", formatter: (i) => i.string || i.expression } }), t("ElTableColumn", { attrs: { label: "操作", width: "100px" }, scopedSlots: e._u([{ key: "default", fn: function({ row: i, $index: s }) {
2177
2177
  return [t("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(a) {
@@ -2181,7 +2181,7 @@ var bn = function() {
2181
2181
  } } }, [e._v(" 移除 ")])];
2182
2182
  } }]) })], 1), t("div", { staticClass: "element-drawer__button" }, [t("ElButton", { attrs: { size: "mini" }, on: { click: function(i) {
2183
2183
  e.listenerFormModelVisible = !1;
2184
- } } }, [e._v("取 消")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.saveListenerConfig } }, [e._v("保 存")])], 1)], 1), t("ElementDialog", { attrs: { title: "字段配置", visible: e.listenerFieldFormModelVisible, width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
2184
+ } } }, [e._v("取 消")]), t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.saveListenerConfig } }, [e._v("保 存")])], 1)], 1), t("ElementDialog", { staticClass: "flow-dialog", attrs: { title: "字段配置", visible: e.listenerFieldFormModelVisible, width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(i) {
2185
2185
  e.listenerFieldFormModelVisible = i;
2186
2186
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
2187
2187
  return [t("ElButton", { attrs: { size: "mini" }, on: { click: function(i) {
@@ -2210,11 +2210,11 @@ var bn = function() {
2210
2210
  null,
2211
2211
  null
2212
2212
  );
2213
- const vn = hn.exports, ie = ["base", "task", "form", "multiInstance"], gn = {
2213
+ const gn = hn.exports, ie = ["base", "task", "form", "multiInstance"], vn = {
2214
2214
  name: "PropertiesPanel",
2215
2215
  componentName: "MyPropertiesPanel",
2216
2216
  components: {
2217
- UserTaskListeners: vn,
2217
+ UserTaskListeners: gn,
2218
2218
  ElementForm: dn,
2219
2219
  ElementProperties: ln,
2220
2220
  ElementListeners: nn,
@@ -2314,7 +2314,7 @@ const vn = hn.exports, ie = ["base", "task", "form", "multiInstance"], gn = {
2314
2314
  initFormOnChanged(n) {
2315
2315
  var t;
2316
2316
  let e = n;
2317
- e || (e = (t = this.bpmnInstances.elementRegistry.find((i) => i.type === "bpmn:Process")) != null ? t : this.bpmnInstances.elementRegistry.find((i) => i.type === "bpmn:Collaboration")), e && (this.element = e, this.elementId = e.id, this.elementType = e.type.split(":")[1] || "", this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && e.source && e.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask" || this.elementType === "StartEvent");
2317
+ e || (e = (t = this.bpmnInstances.elementRegistry.find((i) => i.type === "bpmn:Process")) != null ? t : this.bpmnInstances.elementRegistry.find((i) => i.type === "bpmn:Collaboration")), e && (this.element = e, this.elementId = e.id, this.elementType = e.type.split(":")[1] || "", this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && e.source && e.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask");
2318
2318
  }
2319
2319
  }
2320
2320
  };
@@ -2343,16 +2343,20 @@ var En = function() {
2343
2343
  }, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType }), e.elementType.indexOf("Task") !== -1 ? t("ElCollapseItem", { key: "multiInstance", attrs: { name: "multiInstance" }, scopedSlots: e._u([{ key: "title", fn: function() {
2344
2344
  return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-help" }), e._v("多实例")])];
2345
2345
  }, proxy: !0 }], null, !1, 1253501895) }, [t("ElementMultiInstance", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), t("ElCollapseItem", { key: "listeners", attrs: { name: "listeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
2346
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("执行监听器")])];
2346
+ return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("执行监听器"), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
2347
+ return [t("p", [e._v("发送和退回时会触发")])];
2348
+ }, proxy: !0 }]) }, [t("i", { staticClass: "el-icon-info" })])], 1)];
2347
2349
  }, proxy: !0 }]) }, [t("ElementListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1), e.elementType === "UserTask" ? t("ElCollapseItem", { key: "taskListeners", attrs: { name: "taskListeners" }, scopedSlots: e._u([{ key: "title", fn: function() {
2348
- return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("任务监听器")])];
2349
- }, proxy: !0 }], null, !1, 3617698803) }, [t("UserTaskListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), t("ElCollapseItem", { key: "extensions", attrs: { name: "extensions" }, scopedSlots: e._u([{ key: "title", fn: function() {
2350
+ return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-message-solid" }), e._v("任务监听器"), t("ElTooltip", { attrs: { effect: "light" }, scopedSlots: e._u([{ key: "content", fn: function() {
2351
+ return [t("p", [e._v("任务实例的创建、指派、完成、删除、更新、超时会触发")])];
2352
+ }, proxy: !0 }], null, !1, 1260848675) }, [t("i", { staticClass: "el-icon-info" })])], 1)];
2353
+ }, proxy: !0 }], null, !1, 1038413081) }, [t("UserTaskListeners", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1) : e._e(), t("ElCollapseItem", { key: "extensions", attrs: { name: "extensions" }, scopedSlots: e._u([{ key: "title", fn: function() {
2350
2354
  return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-circle-plus" }), e._v("扩展属性")])];
2351
2355
  }, proxy: !0 }]) }, [t("ElementProperties", { attrs: { id: e.elementId, "bpmn-instances": e.bpmnInstances, element: e.element, type: e.elementType } })], 1), t("ElCollapseItem", { key: "other", attrs: { name: "other" }, scopedSlots: e._u([{ key: "title", fn: function() {
2352
2356
  return [t("div", { staticClass: "panel-tab__title" }, [t("i", { staticClass: "el-icon-s-promotion" }), e._v("其他")])];
2353
2357
  }, proxy: !0 }]) }, [t("ElementOtherConfig", { attrs: { id: e.elementId, element: e.element, "bpmn-instances": e.bpmnInstances } })], 1), e._t("extend", null, { id: e.elementId, bpmnInstances: e.bpmnInstances, element: e.element, type: e.elementType })], 2)], 1);
2354
2358
  }, Fn = [], xn = /* @__PURE__ */ h(
2355
- gn,
2359
+ vn,
2356
2360
  En,
2357
2361
  Fn,
2358
2362
  !1,
@@ -2637,7 +2641,7 @@ const kn = {
2637
2641
  Data: "数据",
2638
2642
  TextAnnotation: "文本说明",
2639
2643
  Tasks: "任务"
2640
- }, In = "Camunda", _n = "http://camunda.org/schema/1.0/bpmn", wn = "camunda", An = {
2644
+ }, _n = "Camunda", In = "http://camunda.org/schema/1.0/bpmn", wn = "camunda", An = {
2641
2645
  tagAlias: "lowerCase"
2642
2646
  }, $n = [], Ln = [
2643
2647
  {
@@ -3756,8 +3760,8 @@ const kn = {
3756
3760
  ]
3757
3761
  }
3758
3762
  ], On = [], se = {
3759
- name: In,
3760
- uri: _n,
3763
+ name: _n,
3764
+ uri: In,
3761
3765
  prefix: wn,
3762
3766
  xml: An,
3763
3767
  associations: $n,
@@ -6253,41 +6257,41 @@ function w(n) {
6253
6257
  }
6254
6258
  w.$inject = ["eventBus"];
6255
6259
  w.prototype.canCopyProperty = function(n, e) {
6256
- if (Ce(n) && !Hn(n, e) || I(n, "camunda:InputOutput") && !this.canHostInputOutput(e) || he(n, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || I(n, "camunda:In") && !this.canHostIn(e))
6260
+ if (Ce(n) && !Hn(n, e) || _(n, "camunda:InputOutput") && !this.canHostInputOutput(e) || he(n, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(e) || _(n, "camunda:In") && !this.canHostIn(e))
6257
6261
  return !1;
6258
6262
  };
6259
6263
  w.prototype.canHostInputOutput = function(n) {
6260
6264
  if (x(n, "camunda:Connector"))
6261
6265
  return !0;
6262
6266
  const t = x(n, "bpmn:FlowNode");
6263
- return !(!t || he(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || I(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
6267
+ return !(!t || he(t, ["bpmn:StartEvent", "bpmn:Gateway", "bpmn:BoundaryEvent"]) || _(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
6264
6268
  };
6265
6269
  w.prototype.canHostConnector = function(n) {
6266
6270
  const e = x(n, "camunda:ServiceTaskLike");
6267
- return I(e, "bpmn:MessageEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
6271
+ return _(e, "bpmn:MessageEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
6268
6272
  };
6269
6273
  w.prototype.canHostIn = function(n) {
6270
6274
  return x(n, "bpmn:CallActivity") ? !0 : x(n, "bpmn:SignalEventDefinition") ? x(n, "bpmn:IntermediateThrowEvent") || x(n, "bpmn:EndEvent") : !0;
6271
6275
  };
6272
- function I(n, e) {
6276
+ function _(n, e) {
6273
6277
  return n && ke(n.$instanceOf) && n.$instanceOf(e);
6274
6278
  }
6275
6279
  function he(n, e) {
6276
- return _(e, function(t) {
6277
- return I(n, t);
6280
+ return I(e, function(t) {
6281
+ return _(n, t);
6278
6282
  });
6279
6283
  }
6280
6284
  function x(n, e) {
6281
6285
  if (!e)
6282
6286
  return n.$parent;
6283
- if (I(n, e))
6287
+ if (_(n, e))
6284
6288
  return n;
6285
6289
  if (n.$parent)
6286
6290
  return x(n.$parent, e);
6287
6291
  }
6288
6292
  function Hn(n, e) {
6289
6293
  const t = n.$type && n.$model.getTypeDescriptor(n.$type), i = t && t.meta && t.meta.allowedIn;
6290
- return !i || Wn(i) ? !0 : _(i, function(s) {
6294
+ return !i || Wn(i) ? !0 : I(i, function(s) {
6291
6295
  return x(e, s);
6292
6296
  });
6293
6297
  }
@@ -6309,12 +6313,12 @@ function Qn(n) {
6309
6313
  return n && n.length;
6310
6314
  }
6311
6315
  function z(n, e) {
6312
- return Qn(n) && _(n, function(t) {
6316
+ return Qn(n) && I(n, function(t) {
6313
6317
  return H(t, e);
6314
6318
  });
6315
6319
  }
6316
6320
  function ei(n, e) {
6317
- return _(e, function(t) {
6321
+ return I(e, function(t) {
6318
6322
  return H(n, t);
6319
6323
  });
6320
6324
  }
@@ -6354,12 +6358,12 @@ function ii(n) {
6354
6358
  return n && n.length;
6355
6359
  }
6356
6360
  function j(n, e) {
6357
- return ii(n) && _(n, function(t) {
6361
+ return ii(n) && I(n, function(t) {
6358
6362
  return X(t, e);
6359
6363
  });
6360
6364
  }
6361
6365
  function si(n, e) {
6362
- return _(e, function(t) {
6366
+ return I(e, function(t) {
6363
6367
  return X(n, t);
6364
6368
  });
6365
6369
  }
@@ -6690,7 +6694,7 @@ var oi = function() {
6690
6694
  } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "恢复" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, disabled: !e.recoverable, icon: "el-icon-refresh-right" }, on: { click: function(i) {
6691
6695
  return e.processRedo();
6692
6696
  } } })], 1), t("ElTooltip", { attrs: { effect: "light", content: "重新绘制" } }, [t("ElButton", { attrs: { size: e.headerButtonSize, icon: "el-icon-refresh" }, on: { click: e.processRestart } })], 1)], 1)];
6693
- }), 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(i) {
6697
+ }), 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", { staticClass: "flow-dialog", attrs: { title: "预览", width: "60vw", height: "60vh", visible: e.previewModelVisible, "body-padding": !1, "destroy-on-close": "" }, on: { "update:visible": function(i) {
6694
6698
  e.previewModelVisible = i;
6695
6699
  } } }, [t("HighlightJS", { attrs: { language: e.previewType, code: e.previewResult } })], 1)], 1);
6696
6700
  }, li = [], pi = /* @__PURE__ */ h(
@@ -1 +1 @@
1
- .flow-tips-list-item{list-style:square inside}.flow-tips-title{padding-top:10px;padding-bottom:10px}.flow-tips-keyword{font-weight:700}.element-listeners-drawer .el-drawer__header{margin-bottom:0}.process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow-x:hidden;overflow-y:auto;box-shadow:0 0 8px #ccc}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{color:#606266;text-align:center;cursor:pointer;font-size:20px}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{align-items:flex-start;width:100%;margin:8px 0;display:flex}.process-panel__container .element-property .element-property__label{box-sizing:border-box;text-align:right;width:90px;padding-right:12px;font-size:14px;line-height:32px;display:block;overflow:hidden}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%;display:inline-grid}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.panel-tab__title{padding:0 8px;font-size:1.1em;font-weight:600;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;border-top:1px solid #eee;width:100%;padding:8px 16px}.panel-tab__content .panel-tab__content--title{justify-content:space-between;padding-bottom:8px;display:flex}.panel-tab__content .panel-tab__content--title span{text-align:left;flex:1}.listener-filed__title{justify-content:space-between;align-items:center;width:100%;margin-top:0;display:inline-flex}.listener-filed__title span{text-align:left;width:200px;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{justify-content:space-around;width:100%;margin-top:8px;display:inline-flex}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.flow-drawer .listener-filed__title{justify-content:normal;padding-bottom:6px}.my-process-designer{box-sizing:border-box;flex-direction:column;flex:1;width:100%;height:100%;display:flex}.my-process-designer .bts-toggle-mode{display:none}.my-process-designer .djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.my-process-designer .djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.my-process-designer .djs-palette.open .djs-palette-entries div.entry{position:relative}.my-process-designer .djs-palette.open .djs-palette-entries div.entry:hover:after{z-index:100;box-sizing:border-box;font-variant:normal;text-transform:none;-webkit-text-decoration:inherit;text-decoration:inherit;vertical-align:text-bottom;content:attr(title);background:#fafafa;border:1px solid #ccc;border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0 16px;font-size:.5em;display:inline-block;position:absolute;top:0;bottom:0;right:-10px;overflow:hidden;transform:translate(100%);box-shadow:0 0 6px #eee}.my-process-designer .my-process-designer__header{width:100%;min-height:36px}.my-process-designer .my-process-designer__header .el-button{text-align:center}.my-process-designer .my-process-designer__header .el-button-group{margin:4px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button{text-align:left;width:100%;padding-left:8px;padding-right:8px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:rgba(64,158,255,.8)}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{content:"|";position:absolute;transform:rotate(90deg)translate(200%,60%)}.my-process-designer .my-process-designer__header .align.align-left i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-right i{transform:rotate(-90deg)}.my-process-designer .my-process-designer__header .align.align-top i{transform:rotate(180deg)}.my-process-designer .my-process-designer__header .align.align-bottom i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-center i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-center i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__header .align.align-middle i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-middle i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__container{flex:1;width:100%;display:inline-flex}.my-process-designer .my-process-designer__container .my-process-designer__canvas{flex:1;height:100%;position:relative}.my-process-designer .my-process-designer__container .my-process-designer__canvas div.toggle-mode{display:none}.my-process-designer .my-process-designer__container .my-process-designer__property-panel{z-index:10;height:100%;overflow-x:scroll;overflow-y:auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{background-color:#fff;width:100%;height:100%;display:flex}
1
+ .element-multi-instance .el-select{display:block}.flow-tips-list-item{list-style:square inside}.flow-tips-title{padding-top:10px;padding-bottom:10px}.flow-tips-keyword{font-weight:700}.element-listeners-drawer .el-drawer__header{margin-bottom:0}.process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow-x:hidden;overflow-y:auto;box-shadow:0 0 8px #ccc}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{color:#606266;text-align:center;cursor:pointer;font-size:20px}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{align-items:flex-start;width:100%;margin:8px 0;display:flex}.process-panel__container .element-property .element-property__label{box-sizing:border-box;text-align:right;width:90px;padding-right:12px;font-size:14px;line-height:32px;display:block;overflow:hidden}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%;display:inline-grid}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.panel-tab__title{padding:0 8px;font-size:1.1em;font-weight:600;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;border-top:1px solid #eee;width:100%;padding:8px 16px}.panel-tab__content .panel-tab__content--title{justify-content:space-between;padding-bottom:8px;display:flex}.panel-tab__content .panel-tab__content--title span{text-align:left;flex:1}.listener-filed__title{justify-content:space-between;align-items:center;width:100%;margin-top:0;display:inline-flex}.listener-filed__title span{text-align:left;width:200px;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{justify-content:space-around;width:100%;margin-top:8px;display:inline-flex}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.flow-drawer .listener-filed__title{justify-content:normal;padding-bottom:6px}.flow-drawer .el-select,.flow-dialog .el-select{display:block}.my-process-designer{box-sizing:border-box;flex-direction:column;flex:1;width:100%;height:100%;display:flex}.my-process-designer .bts-toggle-mode{display:none}.my-process-designer .djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.my-process-designer .djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.my-process-designer .djs-palette.open .djs-palette-entries div.entry{position:relative}.my-process-designer .djs-palette.open .djs-palette-entries div.entry:hover:after{z-index:100;box-sizing:border-box;font-variant:normal;text-transform:none;-webkit-text-decoration:inherit;text-decoration:inherit;vertical-align:text-bottom;content:attr(title);background:#fafafa;border:1px solid #ccc;border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0 16px;font-size:.5em;display:inline-block;position:absolute;top:0;bottom:0;right:-10px;overflow:hidden;transform:translate(100%);box-shadow:0 0 6px #eee}.my-process-designer .my-process-designer__header{width:100%;min-height:36px}.my-process-designer .my-process-designer__header .el-button{text-align:center}.my-process-designer .my-process-designer__header .el-button-group{margin:4px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button{text-align:left;width:100%;padding-left:8px;padding-right:8px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:rgba(64,158,255,.8)}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{content:"|";position:absolute;transform:rotate(90deg)translate(200%,60%)}.my-process-designer .my-process-designer__header .align.align-left i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-right i{transform:rotate(-90deg)}.my-process-designer .my-process-designer__header .align.align-top i{transform:rotate(180deg)}.my-process-designer .my-process-designer__header .align.align-bottom i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-center i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-center i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__header .align.align-middle i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-middle i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__container{flex:1;width:100%;display:inline-flex}.my-process-designer .my-process-designer__container .my-process-designer__canvas{flex:1;height:100%;position:relative}.my-process-designer .my-process-designer__container .my-process-designer__canvas div.toggle-mode{display:none}.my-process-designer .my-process-designer__container .my-process-designer__property-panel{z-index:10;height:100%;overflow-x:scroll;overflow-y:auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{background-color:#fff;width:100%;height:100%;display:flex}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "3.3.5",
4
+ "version": "3.3.7",
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": "3.3.5",
5
+ "version": "3.3.7",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",