@web-utils/form-ui 1.0.0-beta81 → 1.0.0-beta82

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.
@@ -4,19 +4,19 @@ import { t as n } from "./mnqSaATq.mjs";
4
4
  import r from "../highlight-j-s/index.mjs";
5
5
  import { ElButtonGroup as i, ElCollapse as a, ElCollapseItem as o, ElMessage as s, ElMessageBox as c, ElTabPane as l, ElTabs as u, ElTooltip as d } from "element-plus/es";
6
6
  import "element-plus/es/components/base/style/css";
7
- import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineAsyncComponent as y, isVNode as b, markRaw as x, mergeProps as S, nextTick as C, openBlock as w, provide as T, ref as E, renderSlot as D, toDisplayString as O, toRef as k, useTemplateRef as A, vShow as ee, watch as j, withCtx as M, withDirectives as te } from "vue";
7
+ import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineAsyncComponent as y, isVNode as b, markRaw as x, mergeProps as S, nextTick as C, openBlock as w, provide as T, ref as E, renderSlot as D, shallowRef as ee, toDisplayString as O, toRef as k, useTemplateRef as A, vShow as te, watch as j, withCtx as M, withDirectives as ne } from "vue";
8
8
  import { isArray as N } from "@web-utils/core";
9
9
  import "element-plus/es/components/message/style/css";
10
10
  import "element-plus/es/components/message-box/style/css";
11
11
  import "element-plus/es/components/tooltip/style/css";
12
- import { assign as P, forEach as F, isArray as I, isFunction as L, isObject as ne, some as R } from "min-dash";
13
- import { is as z } from "bpmn-js/lib/util/ModelUtil";
14
- import { isEventSubProcess as B, isExpanded as re } from "bpmn-js/lib/util/DiUtil";
15
- import { isAny as V } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
12
+ import { assign as P, forEach as F, isArray as I, isFunction as L, isObject as R, some as z } from "min-dash";
13
+ import { is as B } from "bpmn-js/lib/util/ModelUtil";
14
+ import { isEventSubProcess as V, isExpanded as re } from "bpmn-js/lib/util/DiUtil";
15
+ import { isAny as H } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
16
16
  import { getChildLanes as ie } from "bpmn-js/lib/features/modeling/util/LaneUtil";
17
17
  import { hasPrimaryModifier as ae } from "diagram-js/lib/util/Mouse";
18
18
  import oe from "bpmn-js/lib/features/palette/PaletteProvider";
19
- import H from "diagram-js/lib/features/auto-place/AutoPlace";
19
+ import U from "diagram-js/lib/features/auto-place/AutoPlace";
20
20
  import { asTRBL as se, getMid as ce } from "diagram-js/lib/layout/LayoutUtil";
21
21
  import "element-plus/es/components/collapse/style/css";
22
22
  import "element-plus/es/components/collapse-item/style/css";
@@ -35,7 +35,7 @@ import pe from "x2js";
35
35
  import me from "highlight.js/lib/languages/xml";
36
36
  import he from "highlight.js/lib/languages/json";
37
37
  //#region src/components/bpmn-process-designer/plugins/content-pad/contentPadProvider.js
38
- function U(e, t, n, r, i, a, o, s, c, l, u, d, f) {
38
+ function W(e, t, n, r, i, a, o, s, c, l, u, d, f) {
39
39
  e = e || {}, r.registerProvider(this), this._contextPad = r, this._modeling = i, this._elementFactory = a, this._connect = o, this._create = s, this._popupMenu = c, this._canvas = l, this._rules = u, this._translate = d, e.autoPlace !== !1 && (this._autoPlace = t.get("autoPlace", !1)), n.on("create.end", 250, function(e) {
40
40
  let t = e.context.shape;
41
41
  if (!ae(e) || !r.isOpen(t)) return;
@@ -43,7 +43,7 @@ function U(e, t, n, r, i, a, o, s, c, l, u, d, f) {
43
43
  n.replace && n.replace.action.click(e, t);
44
44
  });
45
45
  }
46
- U.$inject = [
46
+ W.$inject = [
47
47
  "config.contextPad",
48
48
  "injector",
49
49
  "eventBus",
@@ -57,7 +57,7 @@ U.$inject = [
57
57
  "rules",
58
58
  "translate",
59
59
  "elementRegistry"
60
- ], U.prototype.getContextPadEntries = function(e) {
60
+ ], W.prototype.getContextPadEntries = function(e) {
61
61
  let t = this._contextPad, n = this._modeling, r = this._elementFactory, i = this._connect, a = this._create, o = this._popupMenu, s = this._canvas, c = this._rules, l = this._autoPlace, u = this._translate, d = {};
62
62
  if (e.type === "label") return d;
63
63
  let f = e.businessObject;
@@ -98,7 +98,7 @@ U.$inject = [
98
98
  n.splitLane(i, e), t.open(i, !0);
99
99
  };
100
100
  }
101
- if (V(f, ["bpmn:Lane", "bpmn:Participant"]) && re(f)) {
101
+ if (H(f, ["bpmn:Lane", "bpmn:Participant"]) && re(f)) {
102
102
  let t = ie(e);
103
103
  P(d, { "lane-insert-above": {
104
104
  group: "lane-insert-above",
@@ -126,13 +126,13 @@ U.$inject = [
126
126
  } }
127
127
  } });
128
128
  }
129
- z(f, "bpmn:FlowNode") && (z(f, "bpmn:EventBasedGateway") ? P(d, {
129
+ B(f, "bpmn:FlowNode") && (B(f, "bpmn:EventBasedGateway") ? P(d, {
130
130
  "append.receive-task": g("bpmn:ReceiveTask", "bpmn-icon-receive-task", u("Append ReceiveTask")),
131
131
  "append.message-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-message", u("Append MessageIntermediateCatchEvent"), { eventDefinitionType: "bpmn:MessageEventDefinition" }),
132
132
  "append.timer-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-timer", u("Append TimerIntermediateCatchEvent"), { eventDefinitionType: "bpmn:TimerEventDefinition" }),
133
133
  "append.condition-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-condition", u("Append ConditionIntermediateCatchEvent"), { eventDefinitionType: "bpmn:ConditionalEventDefinition" }),
134
134
  "append.signal-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-signal", u("Append SignalIntermediateCatchEvent"), { eventDefinitionType: "bpmn:SignalEventDefinition" })
135
- }) : ge(f, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? P(d, { "append.compensation-activity": g("bpmn:Task", "bpmn-icon-task", u("Append compensation activity"), { isForCompensation: !0 }) }) : !z(f, "bpmn:EndEvent") && !f.isForCompensation && !ge(f, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !B(f) && P(d, {
135
+ }) : ge(f, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? P(d, { "append.compensation-activity": g("bpmn:Task", "bpmn-icon-task", u("Append compensation activity"), { isForCompensation: !0 }) }) : !B(f, "bpmn:EndEvent") && !f.isForCompensation && !ge(f, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !V(f) && P(d, {
136
136
  "append.end-event": g("bpmn:EndEvent", "bpmn-icon-end-event-none", u("Append EndEvent")),
137
137
  "append.gateway": g("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", u("Append Gateway")),
138
138
  "append.append-task": g("bpmn:UserTask", "bpmn-icon-user-task", u("Append Task")),
@@ -148,7 +148,7 @@ U.$inject = [
148
148
  } });
149
149
  o.open(t, "bpmn-replace", n);
150
150
  } }
151
- } }), V(f, [
151
+ } }), H(f, [
152
152
  "bpmn:FlowNode",
153
153
  "bpmn:InteractionNode",
154
154
  "bpmn:DataObjectReference",
@@ -164,7 +164,7 @@ U.$inject = [
164
164
  dragstart: p
165
165
  }
166
166
  }
167
- }), V(f, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && P(d, { connect: {
167
+ }), H(f, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && P(d, { connect: {
168
168
  group: "connect",
169
169
  className: "bpmn-icon-connection-multi",
170
170
  title: u("Connect using DataInputAssociation"),
@@ -172,7 +172,7 @@ U.$inject = [
172
172
  click: p,
173
173
  dragstart: p
174
174
  }
175
- } }), z(f, "bpmn:Group") && P(d, { "append.text-annotation": g("bpmn:TextAnnotation", "bpmn-icon-text-annotation") });
175
+ } }), B(f, "bpmn:Group") && P(d, { "append.text-annotation": g("bpmn:TextAnnotation", "bpmn-icon-text-annotation") });
176
176
  let v = c.allowed("elements.delete", { elements: [e] });
177
177
  return I(v) && (v = v[0] === e), v && P(d, { delete: {
178
178
  group: "edit",
@@ -191,15 +191,15 @@ function ge(e, t, n) {
191
191
  //#region src/components/bpmn-process-designer/plugins/content-pad/index.js
192
192
  var _e = {
193
193
  __init__: ["contextPadProvider"],
194
- contextPadProvider: ["type", U]
194
+ contextPadProvider: ["type", W]
195
195
  };
196
196
  //#endregion
197
197
  //#region src/components/bpmn-process-designer/plugins/palette/CustomPalette.js
198
- function W(e, t, n, r, i, a, o, s, c) {
198
+ function G(e, t, n, r, i, a, o, s, c) {
199
199
  oe.call(this, e, t, n, r, i, a, o, s, c, 2e3), this._create = t, this._elementFactory = n, this._spaceTool = r, this._lassoTool = i, this._handTool = a, this._globalConnect = o, this._moddle = s, this._translate = c;
200
200
  }
201
- var G = function() {};
202
- G.prototype = oe.prototype, G.prototype.getPaletteEntries = function() {
201
+ var K = function() {};
202
+ K.prototype = oe.prototype, K.prototype.getPaletteEntries = function() {
203
203
  let e = {}, t = this._create, n = this._elementFactory, r = this._spaceTool, i = this._lassoTool, a = this._handTool, o = this._globalConnect, s = this._translate;
204
204
  function c(e, r, i, a, o) {
205
205
  function c(r) {
@@ -299,7 +299,7 @@ G.prototype = oe.prototype, G.prototype.getPaletteEntries = function() {
299
299
  }
300
300
  }
301
301
  }), e;
302
- }, W.$inject = [
302
+ }, G.$inject = [
303
303
  "palette",
304
304
  "create",
305
305
  "elementFactory",
@@ -309,17 +309,17 @@ G.prototype = oe.prototype, G.prototype.getPaletteEntries = function() {
309
309
  "globalConnect",
310
310
  "moddle",
311
311
  "translate"
312
- ], W.prototype = new G(), W.prototype.constructor = W;
312
+ ], G.prototype = new K(), G.prototype.constructor = G;
313
313
  //#endregion
314
314
  //#region src/components/bpmn-process-designer/plugins/palette/index.js
315
315
  var ve = {
316
316
  __init__: ["customPalette"],
317
- customPalette: ["type", W]
317
+ customPalette: ["type", G]
318
318
  };
319
319
  //#endregion
320
320
  //#region src/components/bpmn-process-designer/modules/auto-place/CustomAutoPlace.js
321
321
  function ye(e, t) {
322
- H.call(this, e, t, 3e3), e.on("autoPlace", 3e3, function(e) {
322
+ U.call(this, e, t, 3e3), e.on("autoPlace", 3e3, function(e) {
323
323
  let t = e.shape, n = e.source;
324
324
  return Ce(n, t);
325
325
  }), this.append = function(n, r, i) {
@@ -368,7 +368,7 @@ function Ce(e, t, n) {
368
368
  };
369
369
  }
370
370
  var we = function() {};
371
- we.prototype = H.prototype, ye.prototype = new we(), ye.prototype.constructor = H;
371
+ we.prototype = U.prototype, ye.prototype = new we(), ye.prototype.constructor = U;
372
372
  //#endregion
373
373
  //#region src/components/bpmn-process-designer/modules/auto-place/rewriteAutoPlace.js
374
374
  var Te = 200, Ee = 100;
@@ -413,7 +413,7 @@ var ke = {
413
413
  };
414
414
  //#endregion
415
415
  //#region src/components/bpmn-process-designer/components/PropertiesPanel.vue?vue&type=script&lang.jsx
416
- function K(e) {
416
+ function q(e) {
417
417
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !b(e);
418
418
  }
419
419
  var Ae = [
@@ -453,12 +453,12 @@ var Ae = [
453
453
  },
454
454
  emits: ["initModels"],
455
455
  setup(e, { emit: t, slots: n }) {
456
- let r = E(!0), i = E(!1), s = E(!1), c = E(""), p = E(""), m = E(e.panelType === "tab" ? "base" : ["base"]), h = {}, g = {}, y = null, b = f(() => Array.isArray(e.useTabs)), x = f(() => e.useTabs === null || e.useTabs === void 0), S = f(() => e.panelType === "tab"), C = () => {
456
+ let r = E(!0), i = E(!1), s = E(!1), c = E(""), p = E(""), m = E(e.panelType === "tab" ? "base" : ["base"]), h = ee({}), g = ee({}), y = null, b = f(() => Array.isArray(e.useTabs)), x = f(() => e.useTabs === null || e.useTabs === void 0), S = f(() => e.panelType === "tab"), C = () => {
457
457
  if (!e.bpmnModeler) {
458
458
  y = setTimeout(() => C(), 10);
459
459
  return;
460
460
  }
461
- y && clearTimeout(y), g = {
461
+ y && clearTimeout(y), g.value = {
462
462
  modeler: e.bpmnModeler,
463
463
  modeling: e.bpmnModeler.get("modeling"),
464
464
  moddle: e.bpmnModeler.get("moddle"),
@@ -468,7 +468,7 @@ var Ae = [
468
468
  elementRegistry: e.bpmnModeler.get("elementRegistry"),
469
469
  replace: e.bpmnModeler.get("replace"),
470
470
  selection: e.bpmnModeler.get("selection")
471
- }, t("initModels", g), w();
471
+ }, t("initModels", g.value), w();
472
472
  }, w = () => {
473
473
  D(null), e.bpmnModeler.on("import.done", () => {
474
474
  e.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), D(null);
@@ -479,7 +479,7 @@ var Ae = [
479
479
  });
480
480
  }, D = (e) => {
481
481
  let t = e;
482
- t || (t = g.elementRegistry.find((e) => e.type === "bpmn:Process") ?? g.elementRegistry.find((e) => e.type === "bpmn:Collaboration")), t && (h = t, c.value = t.id, p.value = t.type.split(":")[1] || "", i.value = !!(p.value === "SequenceFlow" && t.source && t.source.type.indexOf("StartEvent") === -1), s.value = p.value === "UserTask");
482
+ t || (t = g.value.elementRegistry.find((e) => e.type === "bpmn:Process") ?? g.value.elementRegistry.find((e) => e.type === "bpmn:Collaboration")), t && (h.value = t, c.value = t.id, p.value = t.type.split(":")[1] || "", i.value = !!(p.value === "SequenceFlow" && t.source && t.source.type.indexOf("StartEvent") === -1), s.value = p.value === "UserTask");
483
483
  };
484
484
  C(), j(() => e.activeTabs, {
485
485
  immediate: !0,
@@ -493,68 +493,68 @@ var Ae = [
493
493
  handler(e) {
494
494
  e ? m.value = "base" : m.value = ["base"];
495
495
  }
496
- }), T("prefix", k(e, "prefix")), T("width", k(e, "width")), T("context", k(e, "context")), T("bpmnInstances", g);
496
+ }), T("prefix", k(e, "prefix")), T("width", k(e, "width")), T("context", k(e, "context")), T("bpmnInstances", g.value);
497
497
  let O = () => {
498
498
  var e;
499
499
  return (e = n.form) == null ? void 0 : e.call(n, {
500
500
  id: c.value,
501
- bpmnInstances: g,
502
- element: h,
501
+ bpmnInstances: g.value,
502
+ element: h.value,
503
503
  type: p.value
504
504
  });
505
505
  }, A = () => {
506
506
  var e;
507
507
  return (e = n.task) == null ? void 0 : e.call(n, {
508
508
  id: c.value,
509
- bpmnInstances: g,
510
- element: h,
509
+ bpmnInstances: g.value,
510
+ element: h.value,
511
511
  type: p.value
512
512
  });
513
513
  }, M = () => v(Be, {
514
514
  id: c.value,
515
515
  idEditDisabled: e.idEditDisabled,
516
516
  type: p.value,
517
- bpmnInstances: g,
518
- element: h
519
- }, null), N = () => v(Fe, { bpmnInstances: g }, null), P = () => v(Ie, {
517
+ bpmnInstances: g.value,
518
+ element: h.value
519
+ }, null), N = () => v(Fe, { bpmnInstances: g.value }, null), P = () => v(Ie, {
520
520
  id: c.value,
521
- element: h,
522
- bpmnInstances: g,
521
+ element: h.value,
522
+ bpmnInstances: g.value,
523
523
  type: p.value
524
524
  }, null), F = () => v(Me, {
525
525
  id: c.value,
526
- element: h,
527
- bpmnInstances: g,
526
+ element: h.value,
527
+ bpmnInstances: g.value,
528
528
  type: p.value
529
529
  }, null), I = () => v(Re, {
530
530
  id: c.value,
531
- element: h,
532
- bpmnInstances: g,
531
+ element: h.value,
532
+ bpmnInstances: g.value,
533
533
  type: p.value
534
534
  }, null), L = () => v(Le, {
535
535
  id: c.value,
536
- element: h,
537
- bpmnInstances: g,
536
+ element: h.value,
537
+ bpmnInstances: g.value,
538
538
  type: p.value
539
- }, null), ne = () => v(Pe, {
539
+ }, null), R = () => v(Pe, {
540
540
  id: c.value,
541
- element: h,
542
- bpmnInstances: g,
541
+ element: h.value,
542
+ bpmnInstances: g.value,
543
543
  type: p.value
544
- }, null), R = () => v(je, {
544
+ }, null), z = () => v(je, {
545
545
  id: c.value,
546
- element: h,
547
- bpmnInstances: g,
546
+ element: h.value,
547
+ bpmnInstances: g.value,
548
548
  type: p.value
549
- }, null), z = () => v(Ne, {
549
+ }, null), B = () => v(Ne, {
550
550
  id: c.value,
551
- element: h,
552
- bpmnInstances: g,
551
+ element: h.value,
552
+ bpmnInstances: g.value,
553
553
  type: p.value
554
- }, null), B = () => v(ze, {
554
+ }, null), V = () => v(ze, {
555
555
  id: c.value,
556
- element: h,
557
- bpmnInstances: g
556
+ element: h.value,
557
+ bpmnInstances: g.value
558
558
  }, null), re = () => {
559
559
  let t = [];
560
560
  if (x.value || b.value && e.useTabs.includes("base")) {
@@ -562,21 +562,21 @@ var Ae = [
562
562
  t.push(v(l, {
563
563
  label: "常规",
564
564
  name: "base"
565
- }, K(e = M()) ? e : { default: () => [e] }));
565
+ }, q(e = M()) ? e : { default: () => [e] }));
566
566
  }
567
567
  if ((x.value || b.value && e.useTabs.includes("message")) && p.value === "Process") {
568
568
  let e;
569
569
  t.push(v(l, {
570
570
  label: "消息与信号",
571
571
  name: "message"
572
- }, K(e = N()) ? e : { default: () => [e] }));
572
+ }, q(e = N()) ? e : { default: () => [e] }));
573
573
  }
574
574
  if ((x.value || b.value && e.useTabs.includes("condition")) && i.value) {
575
575
  let e;
576
576
  t.push(v(l, {
577
577
  label: "流转条件",
578
578
  name: "condition"
579
- }, K(e = P()) ? e : { default: () => [e] }));
579
+ }, q(e = P()) ? e : { default: () => [e] }));
580
580
  }
581
581
  if ((x.value || b.value && e.useTabs.includes("form")) && s.value && t.push(v(l, {
582
582
  label: "表单权限",
@@ -591,7 +591,7 @@ var Ae = [
591
591
  t.push(v(l, {
592
592
  label: "多实例",
593
593
  name: "multiInstance"
594
- }, K(e = L()) ? e : { default: () => [e] }));
594
+ }, q(e = L()) ? e : { default: () => [e] }));
595
595
  }
596
596
  if (x.value || b.value && e.useTabs.includes("listeners")) {
597
597
  let e;
@@ -599,7 +599,7 @@ var Ae = [
599
599
  label: "执行监听器",
600
600
  name: "listeners",
601
601
  lazy: !0
602
- }, K(e = ne()) ? e : { default: () => [e] }));
602
+ }, q(e = R()) ? e : { default: () => [e] }));
603
603
  }
604
604
  if ((x.value || b.value && e.useTabs.includes("taskListeners")) && p.value === "UserTask") {
605
605
  let e;
@@ -607,7 +607,7 @@ var Ae = [
607
607
  label: "任务监听器",
608
608
  name: "taskListeners",
609
609
  lazy: !0
610
- }, K(e = R()) ? e : { default: () => [e] }));
610
+ }, q(e = z()) ? e : { default: () => [e] }));
611
611
  }
612
612
  if (x.value || b.value && e.useTabs.includes("extensions")) {
613
613
  let e;
@@ -615,7 +615,7 @@ var Ae = [
615
615
  label: "扩展属性",
616
616
  name: "extensions",
617
617
  lazy: !0
618
- }, K(e = z()) ? e : { default: () => [e] }));
618
+ }, q(e = B()) ? e : { default: () => [e] }));
619
619
  }
620
620
  if (x.value || b.value && e.useTabs.includes("other")) {
621
621
  let e;
@@ -623,7 +623,7 @@ var Ae = [
623
623
  label: "其他",
624
624
  name: "other",
625
625
  lazy: !0
626
- }, K(e = B()) ? e : { default: () => [e] }));
626
+ }, q(e = V()) ? e : { default: () => [e] }));
627
627
  }
628
628
  return (x.value || b.value && e.useTabs.includes("ext")) && n.ext && t.push(v(l, {
629
629
  label: "拓展",
@@ -631,16 +631,16 @@ var Ae = [
631
631
  lazy: !0
632
632
  }, { default: () => n.ext({
633
633
  id: c.value,
634
- bpmnInstances: g,
635
- element: h,
634
+ bpmnInstances: g.value,
635
+ element: h.value,
636
636
  type: p.value
637
637
  }) })), t;
638
- }, V = () => {
638
+ }, H = () => {
639
639
  let e;
640
- return te(v(u, {
640
+ return ne(v(u, {
641
641
  modelValue: m.value,
642
642
  "onUpdate:modelValue": (e) => m.value = e
643
- }, K(e = re()) ? e : { default: () => [e] }), [[ee, r.value]]);
643
+ }, q(e = re()) ? e : { default: () => [e] }), [[te, r.value]]);
644
644
  }, ie = () => {
645
645
  let t = [];
646
646
  return (x.value || b.value && e.useTabs.includes("base")) && t.push(v(o, { name: "base" }, {
@@ -670,7 +670,7 @@ var Ae = [
670
670
  default: () => v("i", { class: "el-icon-info" }, null)
671
671
  })
672
672
  ]),
673
- default: ne
673
+ default: R
674
674
  })), (x.value || b.value && e.useTabs.includes("taskListeners")) && p.value === "UserTask" && t.push(v(o, { name: "taskListeners" }, {
675
675
  title: () => v("div", { class: "panel-tab__title" }, [
676
676
  v("i", { class: "el-icon-message-solid" }, null),
@@ -680,28 +680,28 @@ var Ae = [
680
680
  default: () => v("i", { class: "el-icon-info" }, null)
681
681
  })
682
682
  ]),
683
- default: R
683
+ default: z
684
684
  })), (x.value || b.value && e.useTabs.includes("extensions")) && t.push(v(o, { name: "extensions" }, {
685
685
  title: () => v("div", { class: "panel-tab__title" }, [v("i", { class: "el-icon-circle-plus" }, null), _("扩展属性")]),
686
- default: z
686
+ default: B
687
687
  })), (x.value || b.value && e.useTabs.includes("other")) && t.push(v(o, { name: "other" }, {
688
688
  title: () => v("div", { class: "panel-tab__title" }, [v("i", { class: "el-icon-s-promotion" }, null), _("其他")]),
689
- default: B
689
+ default: V
690
690
  })), (x.value || b.value && e.useTabs.includes("ext")) && n.ext && t.push(v(o, { name: "ext" }, {
691
691
  title: () => v("div", { class: "panel-tab__title" }, [v("i", { class: "el-icon-s-promotion" }, null), _("拓展")]),
692
692
  default: () => n.ext({
693
693
  id: c.value,
694
- bpmnInstances: g,
695
- element: h,
694
+ bpmnInstances: g.value,
695
+ element: h.value,
696
696
  type: p.value
697
697
  })
698
698
  })), t;
699
699
  }, ae = () => {
700
700
  let e;
701
- return te(v(a, {
701
+ return ne(v(a, {
702
702
  modelValue: m.value,
703
703
  "onUpdate:modelValue": (e) => m.value = e
704
- }, K(e = ie()) ? e : { default: () => [e] }), [[ee, r.value]]);
704
+ }, q(e = ie()) ? e : { default: () => [e] }), [[te, r.value]]);
705
705
  };
706
706
  return () => {
707
707
  var t;
@@ -719,7 +719,7 @@ var Ae = [
719
719
  onClick: (e) => {
720
720
  e.stopPropagation(), r.value = !r.value;
721
721
  }
722
- }, null), r.value ? h == null || (t = h.businessObject) == null ? void 0 : t.name : ""]), e.panelType === "tab" ? V() : ae()]);
722
+ }, null), r.value ? (t = h.value) == null || (t = t.businessObject) == null ? void 0 : t.name : ""]), e.panelType === "tab" ? H() : ae()]);
723
723
  };
724
724
  }
725
725
  }, He = (e, t, n) => (n = n || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
@@ -991,7 +991,7 @@ var We = {
991
991
  Data: "数据",
992
992
  TextAnnotation: "文本说明",
993
993
  Tasks: "任务"
994
- }, q = [
994
+ }, J = [
995
995
  {
996
996
  name: "commentInForm",
997
997
  isAttr: !0,
@@ -1309,7 +1309,7 @@ var We = {
1309
1309
  isAttr: !0,
1310
1310
  type: "String"
1311
1311
  },
1312
- ...q
1312
+ ...J
1313
1313
  ]
1314
1314
  },
1315
1315
  {
@@ -2255,7 +2255,7 @@ var We = {
2255
2255
  isAttr: !0,
2256
2256
  type: "String"
2257
2257
  },
2258
- ...q
2258
+ ...J
2259
2259
  ]
2260
2260
  },
2261
2261
  {
@@ -3170,7 +3170,7 @@ var We = {
3170
3170
  isAttr: !0,
3171
3171
  type: "String"
3172
3172
  },
3173
- ...q
3173
+ ...J
3174
3174
  ]
3175
3175
  },
3176
3176
  {
@@ -4023,45 +4023,45 @@ var We = {
4023
4023
  }
4024
4024
  ]
4025
4025
  }, Je = "*";
4026
- function J(e) {
4026
+ function Y(e) {
4027
4027
  let t = this;
4028
4028
  e.on("moddleCopy.canCopyProperty", function(e) {
4029
4029
  let n = e.property, r = e.parent;
4030
4030
  return t.canCopyProperty(n, r);
4031
4031
  });
4032
4032
  }
4033
- J.$inject = ["eventBus"], J.prototype.canCopyProperty = function(e, t) {
4034
- if (ne(e) && !Xe(e, t) || Y(e, "camunda:InputOutput") && !this.canHostInputOutput(t) || Ye(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(t) || Y(e, "camunda:In") && !this.canHostIn(t)) return !1;
4035
- }, J.prototype.canHostInputOutput = function(e) {
4036
- if (X(e, "camunda:Connector")) return !0;
4037
- let t = X(e, "bpmn:FlowNode");
4033
+ Y.$inject = ["eventBus"], Y.prototype.canCopyProperty = function(e, t) {
4034
+ if (R(e) && !Xe(e, t) || X(e, "camunda:InputOutput") && !this.canHostInputOutput(t) || Ye(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(t) || X(e, "camunda:In") && !this.canHostIn(t)) return !1;
4035
+ }, Y.prototype.canHostInputOutput = function(e) {
4036
+ if (Z(e, "camunda:Connector")) return !0;
4037
+ let t = Z(e, "bpmn:FlowNode");
4038
4038
  return !(!t || Ye(t, [
4039
4039
  "bpmn:StartEvent",
4040
4040
  "bpmn:Gateway",
4041
4041
  "bpmn:BoundaryEvent"
4042
- ]) || Y(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
4043
- }, J.prototype.canHostConnector = function(e) {
4044
- return Y(X(e, "camunda:ServiceTaskLike"), "bpmn:MessageEventDefinition") ? X(e, "bpmn:IntermediateThrowEvent") || X(e, "bpmn:EndEvent") : !0;
4045
- }, J.prototype.canHostIn = function(e) {
4046
- return X(e, "bpmn:CallActivity") ? !0 : X(e, "bpmn:SignalEventDefinition") ? X(e, "bpmn:IntermediateThrowEvent") || X(e, "bpmn:EndEvent") : !0;
4042
+ ]) || X(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
4043
+ }, Y.prototype.canHostConnector = function(e) {
4044
+ return X(Z(e, "camunda:ServiceTaskLike"), "bpmn:MessageEventDefinition") ? Z(e, "bpmn:IntermediateThrowEvent") || Z(e, "bpmn:EndEvent") : !0;
4045
+ }, Y.prototype.canHostIn = function(e) {
4046
+ return Z(e, "bpmn:CallActivity") ? !0 : Z(e, "bpmn:SignalEventDefinition") ? Z(e, "bpmn:IntermediateThrowEvent") || Z(e, "bpmn:EndEvent") : !0;
4047
4047
  };
4048
- function Y(e, t) {
4048
+ function X(e, t) {
4049
4049
  return e && L(e.$instanceOf) && e.$instanceOf(t);
4050
4050
  }
4051
4051
  function Ye(e, t) {
4052
- return R(t, function(t) {
4053
- return Y(e, t);
4052
+ return z(t, function(t) {
4053
+ return X(e, t);
4054
4054
  });
4055
4055
  }
4056
- function X(e, t) {
4056
+ function Z(e, t) {
4057
4057
  if (!t) return e.$parent;
4058
- if (Y(e, t)) return e;
4059
- if (e.$parent) return X(e.$parent, t);
4058
+ if (X(e, t)) return e;
4059
+ if (e.$parent) return Z(e.$parent, t);
4060
4060
  }
4061
4061
  function Xe(e, t) {
4062
4062
  let n = e.$type && e.$model.getTypeDescriptor(e.$type), r = n && n.meta && n.meta.allowedIn;
4063
- return !r || Ze(r) ? !0 : R(r, function(e) {
4064
- return X(t, e);
4063
+ return !r || Ze(r) ? !0 : z(r, function(e) {
4064
+ return Z(t, e);
4065
4065
  });
4066
4066
  }
4067
4067
  function Ze(e) {
@@ -4071,7 +4071,7 @@ function Ze(e) {
4071
4071
  //#region src/components/bpmn-process-designer/plugins/extension-moddle/camunda/index.js
4072
4072
  var Qe = {
4073
4073
  __init__: ["camundaModdleExtension"],
4074
- camundaModdleExtension: ["type", J]
4074
+ camundaModdleExtension: ["type", Y]
4075
4075
  }, $e = {
4076
4076
  FailedJobRetryTimeCycle: [
4077
4077
  "bpmn:StartEvent",
@@ -4082,42 +4082,42 @@ var Qe = {
4082
4082
  Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
4083
4083
  Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
4084
4084
  };
4085
- function Z(e, t) {
4085
+ function Q(e, t) {
4086
4086
  return e && typeof e.$instanceOf == "function" && e.$instanceOf(t);
4087
4087
  }
4088
4088
  function et(e) {
4089
4089
  return e && e.length;
4090
4090
  }
4091
- function Q(e, t) {
4092
- return et(e) && R(e, function(e) {
4093
- return Z(e, t);
4091
+ function $(e, t) {
4092
+ return et(e) && z(e, function(e) {
4093
+ return Q(e, t);
4094
4094
  });
4095
4095
  }
4096
4096
  function tt(e, t) {
4097
- return R(t, function(t) {
4098
- return Z(e, t);
4097
+ return z(t, function(t) {
4098
+ return Q(e, t);
4099
4099
  });
4100
4100
  }
4101
- function $(e, t, n) {
4101
+ function nt(e, t, n) {
4102
4102
  let r = t.name, i = $e[r.replace(/activiti:/, "")];
4103
4103
  return r === e && tt(n, i);
4104
4104
  }
4105
- function nt(e) {
4105
+ function rt(e) {
4106
4106
  e.on("property.clone", function(e) {
4107
4107
  let t = e.newElement, n = e.propertyDescriptor;
4108
4108
  this.canCloneProperty(t, n);
4109
4109
  }, this);
4110
4110
  }
4111
- nt.$inject = ["eventBus"], nt.prototype.canCloneProperty = function(e, t) {
4112
- if ($("activiti:FailedJobRetryTimeCycle", t, e)) return Q(e.eventDefinitions, "bpmn:TimerEventDefinition") || Q(e.eventDefinitions, "bpmn:SignalEventDefinition") || Z(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
4113
- if ($("activiti:Connector", t, e) || $("activiti:Field", t, e)) return Q(e.eventDefinitions, "bpmn:MessageEventDefinition");
4111
+ rt.$inject = ["eventBus"], rt.prototype.canCloneProperty = function(e, t) {
4112
+ if (nt("activiti:FailedJobRetryTimeCycle", t, e)) return $(e.eventDefinitions, "bpmn:TimerEventDefinition") || $(e.eventDefinitions, "bpmn:SignalEventDefinition") || Q(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
4113
+ if (nt("activiti:Connector", t, e) || nt("activiti:Field", t, e)) return $(e.eventDefinitions, "bpmn:MessageEventDefinition");
4114
4114
  };
4115
4115
  //#endregion
4116
4116
  //#region src/components/bpmn-process-designer/plugins/extension-moddle/activiti/index.js
4117
- var rt = {
4117
+ var it = {
4118
4118
  __init__: ["ActivitiModdleExtension"],
4119
- ActivitiModdleExtension: ["type", nt]
4120
- }, it = {
4119
+ ActivitiModdleExtension: ["type", rt]
4120
+ }, at = {
4121
4121
  FailedJobRetryTimeCycle: [
4122
4122
  "bpmn:StartEvent",
4123
4123
  "bpmn:BoundaryEvent",
@@ -4127,44 +4127,44 @@ var rt = {
4127
4127
  Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
4128
4128
  Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
4129
4129
  };
4130
- function at(e, t) {
4130
+ function ot(e, t) {
4131
4131
  return e && typeof e.$instanceOf == "function" && e.$instanceOf(t);
4132
4132
  }
4133
- function ot(e) {
4133
+ function st(e) {
4134
4134
  return e && e.length;
4135
4135
  }
4136
- function st(e, t) {
4137
- return ot(e) && R(e, function(e) {
4138
- return at(e, t);
4136
+ function ct(e, t) {
4137
+ return st(e) && z(e, function(e) {
4138
+ return ot(e, t);
4139
4139
  });
4140
4140
  }
4141
- function ct(e, t) {
4142
- return R(t, function(t) {
4143
- return at(e, t);
4141
+ function lt(e, t) {
4142
+ return z(t, function(t) {
4143
+ return ot(e, t);
4144
4144
  });
4145
4145
  }
4146
- function lt(e, t, n) {
4147
- let r = t.name, i = it[r.replace(/flowable:/, "")];
4148
- return r === e && ct(n, i);
4146
+ function ut(e, t, n) {
4147
+ let r = t.name, i = at[r.replace(/flowable:/, "")];
4148
+ return r === e && lt(n, i);
4149
4149
  }
4150
- function ut(e) {
4150
+ function dt(e) {
4151
4151
  e.on("property.clone", function(e) {
4152
4152
  let t = e.newElement, n = e.propertyDescriptor;
4153
4153
  this.canCloneProperty(t, n);
4154
4154
  }, this);
4155
4155
  }
4156
- ut.$inject = ["eventBus"], ut.prototype.canCloneProperty = function(e, t) {
4157
- if (lt("flowable:FailedJobRetryTimeCycle", t, e)) return st(e.eventDefinitions, "bpmn:TimerEventDefinition") || st(e.eventDefinitions, "bpmn:SignalEventDefinition") || at(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
4158
- if (lt("flowable:Connector", t, e) || lt("flowable:Field", t, e)) return st(e.eventDefinitions, "bpmn:MessageEventDefinition");
4156
+ dt.$inject = ["eventBus"], dt.prototype.canCloneProperty = function(e, t) {
4157
+ if (ut("flowable:FailedJobRetryTimeCycle", t, e)) return ct(e.eventDefinitions, "bpmn:TimerEventDefinition") || ct(e.eventDefinitions, "bpmn:SignalEventDefinition") || ot(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
4158
+ if (ut("flowable:Connector", t, e) || ut("flowable:Field", t, e)) return ct(e.eventDefinitions, "bpmn:MessageEventDefinition");
4159
4159
  };
4160
4160
  //#endregion
4161
4161
  //#region src/components/bpmn-process-designer/plugins/extension-moddle/flowable/index.js
4162
- var dt = {
4162
+ var ft = {
4163
4163
  __init__: ["FlowableModdleExtension"],
4164
- FlowableModdleExtension: ["type", ut]
4164
+ FlowableModdleExtension: ["type", dt]
4165
4165
  };
4166
4166
  le.registerLanguage("xml", me), le.registerLanguage("json", he);
4167
- var ft = {
4167
+ var pt = {
4168
4168
  name: "ProcessDesigner",
4169
4169
  componentName: "MyProcessDesigner",
4170
4170
  props: {
@@ -4246,7 +4246,7 @@ var ft = {
4246
4246
  if (this.onlyCustomizeAddi) return N(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
4247
4247
  N(this.additionalModel) ? e.push(...this.additionalModel) : this.additionalModel && e.push(this.additionalModel);
4248
4248
  let t = { translate: ["value", Ue(this.translations || We)] };
4249
- return e.push(t), this.simulation && e.push(fe), e.push(de), this.prefix === "camunda" && e.push(Qe), this.prefix === "flowable" && e.push(dt), this.prefix === "activiti" && e.push(rt), e;
4249
+ return e.push(t), this.simulation && e.push(fe), e.push(de), this.prefix === "camunda" && e.push(Qe), this.prefix === "flowable" && e.push(ft), this.prefix === "activiti" && e.push(it), e;
4250
4250
  },
4251
4251
  moddleExtensions() {
4252
4252
  let e = {};
@@ -4415,14 +4415,14 @@ var ft = {
4415
4415
  });
4416
4416
  }
4417
4417
  }
4418
- }, pt = { class: "my-process-designer" }, mt = { class: "my-process-designer__header" }, ht = { class: "my-process-designer__container" }, gt = {
4418
+ }, mt = { class: "my-process-designer" }, ht = { class: "my-process-designer__header" }, gt = { class: "my-process-designer__container" }, _t = {
4419
4419
  ref: "bpmn-canvas",
4420
4420
  class: "my-process-designer__canvas flow-background-image"
4421
4421
  };
4422
- function _t(e, a, o, s, c, l) {
4422
+ function vt(e, a, o, s, c, l) {
4423
4423
  let u = n, f = d, y = i, b = r, x = t;
4424
- return w(), h("div", pt, [
4425
- g("div", mt, [
4424
+ return w(), h("div", mt, [
4425
+ g("div", ht, [
4426
4426
  D(e.$slots, "control-header", {}, () => [
4427
4427
  v(y, { key: "file-control" }, {
4428
4428
  default: M(() => [
@@ -4707,7 +4707,7 @@ function _t(e, a, o, s, c, l) {
4707
4707
  onChange: a[15] || (a[15] = (...e) => l.importLocalFile && l.importLocalFile(...e))
4708
4708
  }, null, 544)
4709
4709
  ]),
4710
- g("div", ht, [g("div", gt, null, 512)]),
4710
+ g("div", gt, [g("div", _t, null, 512)]),
4711
4711
  v(x, {
4712
4712
  modelValue: c.previewModelVisible,
4713
4713
  "onUpdate:modelValue": a[16] || (a[16] = (e) => c.previewModelVisible = e),
@@ -4726,11 +4726,11 @@ function _t(e, a, o, s, c, l) {
4726
4726
  }, 8, ["modelValue"])
4727
4727
  ]);
4728
4728
  }
4729
- var vt = /* @__PURE__ */ e(ft, [["render", _t]]), yt = {
4729
+ var yt = /* @__PURE__ */ e(pt, [["render", vt]]), bt = {
4730
4730
  name: "FlowDesigner",
4731
4731
  components: {
4732
4732
  PropertiesPanel: Ve,
4733
- ProcessDesigner: vt
4733
+ ProcessDesigner: yt
4734
4734
  },
4735
4735
  props: {
4736
4736
  modelValue: String,
@@ -4763,7 +4763,7 @@ var vt = /* @__PURE__ */ e(ft, [["render", _t]]), yt = {
4763
4763
  }, c = A("processDesigner");
4764
4764
  return r({ refresh: async () => {
4765
4765
  await C(), await c.value.createNewDiagram(e.modelValue);
4766
- } }), () => v("div", { class: "flow-designer" }, [v(vt, S(i, {
4766
+ } }), () => v("div", { class: "flow-designer" }, [v(yt, S(i, {
4767
4767
  ref: "processDesigner",
4768
4768
  "model-value": e.modelValue,
4769
4769
  "extend-types": e.extendTypes,
@@ -4791,4 +4791,4 @@ var vt = /* @__PURE__ */ e(ft, [["render", _t]]), yt = {
4791
4791
  }
4792
4792
  };
4793
4793
  //#endregion
4794
- export { yt as t };
4794
+ export { bt as t };