lyflowchart 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as ri, reactive as Wc, watch as rr, onMounted as ho, resolveComponent as we, openBlock as Xe, createBlock as vt, withCtx as se, createVNode as ae, createCommentVNode as gn, ref as Fe, inject as Nh, computed as Qr, nextTick as Cl, createElementBlock as cn, createElementVNode as wt, withDirectives as Lh, createTextVNode as tt, vShow as Oh, Fragment as io, renderList as ua, withKeys as wC, toDisplayString as oo, provide as SC, normalizeClass as CC, onBeforeUnmount as TC } from "vue";
1
+ import { defineComponent as ri, reactive as Wc, watch as rr, onMounted as ho, resolveComponent as we, openBlock as Xe, createBlock as vt, withCtx as se, createVNode as ae, createCommentVNode as gn, ref as Fe, inject as Nh, computed as Qr, nextTick as Cl, createElementBlock as cn, createElementVNode as xt, withDirectives as Lh, createTextVNode as tt, vShow as Oh, Fragment as io, renderList as ua, withKeys as wC, toDisplayString as oo, provide as SC, normalizeClass as CC, onBeforeUnmount as TC } from "vue";
2
2
  import { SearchOutlined as Ih, SyncOutlined as RE, RedoOutlined as AC, UserOutlined as PC, TeamOutlined as RC, CodeOutlined as DC, PlusOutlined as kC, QuestionCircleOutlined as MC, UploadOutlined as NC, DragOutlined as LC, ZoomInOutlined as OC, ZoomOutOutlined as IC } from "@ant-design/icons-vue";
3
3
  import { Modal as BC, message as FC } from "ant-design-vue";
4
4
  var $C = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -6871,7 +6871,7 @@ function uT(e, t) {
6871
6871
  d.appendChild(c.removeChild(c.firstChild));
6872
6872
  return d;
6873
6873
  }
6874
- var xt = lT;
6874
+ var wt = lT;
6875
6875
  function Hh(e, t) {
6876
6876
  return e && typeof e.matches == "function" && e.matches(t) || !1;
6877
6877
  }
@@ -14552,7 +14552,7 @@ var aP = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width
14552
14552
  lineHeight: "1.3"
14553
14553
  }, cP = '<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">' + D_ + '</a><span>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>', Xr;
14554
14554
  function pP() {
14555
- Xr = xt(cP), yn(Xr, sP), yn(bt("svg", Xr), k_), yn(bt(".backdrop", Xr), lP), yn(bt(".notice", Xr), uP), yn(bt(".link", Xr), M_, {
14555
+ Xr = wt(cP), yn(Xr, sP), yn(bt("svg", Xr), k_), yn(bt(".backdrop", Xr), lP), yn(bt(".notice", Xr), uP), yn(bt(".link", Xr), M_, {
14556
14556
  margin: "15px 20px 15px 10px",
14557
14557
  alignSelf: "center"
14558
14558
  });
@@ -14716,7 +14716,7 @@ Pt.prototype._emit = function(e, t) {
14716
14716
  return this.get("eventBus").fire(e, t);
14717
14717
  };
14718
14718
  Pt.prototype._createContainer = function(e) {
14719
- const t = xt('<div class="bjs-container"></div>');
14719
+ const t = wt('<div class="bjs-container"></div>');
14720
14720
  return yn(t, {
14721
14721
  width: Xy(e.width),
14722
14722
  height: Xy(e.height),
@@ -14749,7 +14749,7 @@ function vP(e, t) {
14749
14749
  }) || null;
14750
14750
  }
14751
14751
  function mP(e) {
14752
- const n = '<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >' + D_ + "</a>", r = xt(n);
14752
+ const n = '<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >' + D_ + "</a>", r = wt(n);
14753
14753
  yn(bt("svg", r), k_), yn(r, M_, {
14754
14754
  position: "absolute",
14755
14755
  bottom: "15px",
@@ -17227,7 +17227,7 @@ hn.prototype._updateOverlay = function(e) {
17227
17227
  z_(n, o || 0, s || 0), this._updateOverlayVisibilty(e, this._canvas.viewbox());
17228
17228
  };
17229
17229
  hn.prototype._createOverlayContainer = function(e) {
17230
- var t = xt('<div class="djs-overlays" />');
17230
+ var t = wt('<div class="djs-overlays" />');
17231
17231
  yn(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
17232
17232
  var n = {
17233
17233
  html: t,
@@ -17255,7 +17255,7 @@ hn.prototype._getOverlayContainer = function(e, t) {
17255
17255
  };
17256
17256
  hn.prototype._addOverlay = function(e) {
17257
17257
  var t = e.id, n = e.element, r = e.html, o, s;
17258
- r.get && r.constructor.prototype.jquery && (r = r.get(0)), Kn(r) && (r = xt(r)), s = this._getOverlayContainer(n), o = xt('<div class="djs-overlay" data-overlay-id="' + t + '">'), yn(o, { position: "absolute" }), o.appendChild(r), e.type && dn(o).add("djs-overlay-" + e.type);
17258
+ r.get && r.constructor.prototype.jquery && (r = r.get(0)), Kn(r) && (r = wt(r)), s = this._getOverlayContainer(n), o = wt('<div class="djs-overlay" data-overlay-id="' + t + '">'), yn(o, { position: "absolute" }), o.appendChild(r), e.type && dn(o).add("djs-overlay-" + e.type);
17259
17259
  var l = this._canvas.findRoot(n), u = this._canvas.getRootElement();
17260
17260
  Dp(o, l === u), e.htmlContainer = o, s.overlays.push(e), s.html.appendChild(o), this._overlays[t] = e, this._updateOverlay(e), this._updateOverlayVisibilty(e, this._canvas.viewbox());
17261
17261
  };
@@ -17306,7 +17306,7 @@ hn.prototype._init = function() {
17306
17306
  }), e.on("diagram.clear", this.clear, this);
17307
17307
  };
17308
17308
  function vR(e) {
17309
- var t = xt(
17309
+ var t = wt(
17310
17310
  '<div class="djs-overlay-container" />'
17311
17311
  );
17312
17312
  return yn(t, {
@@ -17447,7 +17447,7 @@ function _R(e) {
17447
17447
  }
17448
17448
  var xR = "bjs-breadcrumbs-shown";
17449
17449
  function V_(e, t, n, r) {
17450
- var o = xt('<ul class="bjs-breadcrumbs"></ul>'), s = r.getContainer(), l = dn(s);
17450
+ var o = wt('<ul class="bjs-breadcrumbs"></ul>'), s = r.getContainer(), l = dn(s);
17451
17451
  s.appendChild(o);
17452
17452
  var u = [];
17453
17453
  e.on("element.changed", function(d) {
@@ -17459,7 +17459,7 @@ function V_(e, t, n, r) {
17459
17459
  function c(d) {
17460
17460
  d && (u = wR(d));
17461
17461
  var v = u.map(function(y) {
17462
- var b = oh(y.name || y.id), _ = xt('<li><span class="bjs-crumb"><a title="' + b + '">' + b + "</a></span></li>"), w = r.findRoot(_i(y)) || r.findRoot(y.id);
17462
+ var b = oh(y.name || y.id), _ = wt('<li><span class="bjs-crumb"><a title="' + b + '">' + b + "</a></span></li>"), w = r.findRoot(_i(y)) || r.findRoot(y.id);
17463
17463
  if (!w && R(y, "bpmn:Process")) {
17464
17464
  var P = t.find(function(B) {
17465
17465
  var D = Ce(B);
@@ -17683,7 +17683,7 @@ _o.prototype.updateOverlayVisibility = function(e) {
17683
17683
  _o.prototype.addOverlay = function(e) {
17684
17684
  var t = this._canvas, n = this._overlays, r = n.get({ element: e, type: "drilldown" });
17685
17685
  r.length && this.removeOverlay(e);
17686
- var o = xt('<button class="bjs-drilldown">' + AR + "</button>");
17686
+ var o = wt('<button class="bjs-drilldown">' + AR + "</button>");
17687
17687
  o.addEventListener("click", function() {
17688
17688
  t.setRootElement(t.findRoot(_i(e)));
17689
17689
  }), n.add(e, "drilldown", {
@@ -19623,8 +19623,8 @@ Yn.prototype._getProviders = function() {
19623
19623
  Yn.prototype._updateAndOpen = function(e) {
19624
19624
  var t = this.getEntries(e), n = this.getPad(e), r = n.html, o;
19625
19625
  H(t, function(s, l) {
19626
- var u = s.group || "default", c = xt(s.html || '<div class="entry" draggable="true"></div>'), d;
19627
- Bn(c, "data-action", l), d = bt("[data-group=" + Pl(u) + "]", r), d || (d = xt('<div class="group"></div>'), Bn(d, "data-group", u), r.appendChild(d)), d.appendChild(c), s.className && oD(c, s.className), s.title && Bn(c, "title", s.title), s.imageUrl && (o = xt("<img>"), Bn(o, "src", s.imageUrl), o.style.width = "100%", o.style.height = "100%", c.appendChild(o));
19626
+ var u = s.group || "default", c = wt(s.html || '<div class="entry" draggable="true"></div>'), d;
19627
+ Bn(c, "data-action", l), d = bt("[data-group=" + Pl(u) + "]", r), d || (d = wt('<div class="group"></div>'), Bn(d, "data-group", u), r.appendChild(d)), d.appendChild(c), s.className && oD(c, s.className), s.title && Bn(c, "title", s.title), s.imageUrl && (o = wt("<img>"), Bn(o, "src", s.imageUrl), o.style.width = "100%", o.style.height = "100%", c.appendChild(o));
19628
19628
  }), dn(r).add("open"), this._current = {
19629
19629
  target: e,
19630
19630
  entries: t,
@@ -19634,7 +19634,7 @@ Yn.prototype._updateAndOpen = function(e) {
19634
19634
  Yn.prototype.getPad = function(e) {
19635
19635
  if (this.isOpen())
19636
19636
  return this._current.pad;
19637
- var t = this, n = this._overlays, r = xt('<div class="djs-context-pad"></div>'), o = this._getPosition(e), s = Y({
19637
+ var t = this, n = this._overlays, r = wt('<div class="djs-context-pad"></div>'), o = this._getPosition(e), s = Y({
19638
19638
  html: r
19639
19639
  }, this._overlaysConfig, o);
19640
19640
  _r.bind(r, u0, "click", function(c) {
@@ -20563,7 +20563,7 @@ Ot.prototype._onClosed = function() {
20563
20563
  };
20564
20564
  Ot.prototype._createContainer = function(e) {
20565
20565
  var t = this._canvas, n = t.getContainer();
20566
- const r = xt(`<div class="djs-popup-parent djs-scrollable" data-popup=${e.provider}></div>`);
20566
+ const r = wt(`<div class="djs-popup-parent djs-scrollable" data-popup=${e.provider}></div>`);
20567
20567
  return n.appendChild(r), r;
20568
20568
  };
20569
20569
  Ot.prototype._bindAutoClose = function() {
@@ -22239,7 +22239,7 @@ function Tk(e) {
22239
22239
  return [].slice.call(e);
22240
22240
  }
22241
22241
  function Hr(e) {
22242
- this.container = e.container, this.parent = xt(
22242
+ this.container = e.container, this.parent = wt(
22243
22243
  '<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'
22244
22244
  ), this.content = bt("[contenteditable]", this.parent), this.keyHandler = e.keyHandler || function() {
22245
22245
  }, this.resizeHandler = e.resizeHandler || function() {
@@ -22353,7 +22353,7 @@ Hr.prototype.autoResize = function() {
22353
22353
  Hr.prototype.resizable = function() {
22354
22354
  var e = this, t = this.parent, n = this.resizeHandle, r = parseInt(this.style.minWidth) || 0, o = parseInt(this.style.minHeight) || 0, s = parseInt(this.style.maxWidth) || 1 / 0, l = parseInt(this.style.maxHeight) || 1 / 0;
22355
22355
  if (!n) {
22356
- n = this.resizeHandle = xt(
22356
+ n = this.resizeHandle = wt(
22357
22357
  '<div class="djs-direct-editing-resize-handle"></div>'
22358
22358
  );
22359
22359
  var u, c, d, v, m = function(_) {
@@ -24802,7 +24802,7 @@ Ut.prototype._rebuild = function() {
24802
24802
  }
24803
24803
  };
24804
24804
  Ut.prototype._init = function() {
24805
- var e = this, t = this._eventBus, n = this._getParentContainer(), r = this._container = xt(Ut.HTML_MARKUP);
24805
+ var e = this, t = this._eventBus, n = this._getParentContainer(), r = this._container = wt(Ut.HTML_MARKUP);
24806
24806
  n.appendChild(r), dn(n).add(yh + wM), _r.bind(r, xM, "click", function(o) {
24807
24807
  var s = o.delegateTarget;
24808
24808
  if (Hh(s, sw))
@@ -24835,10 +24835,10 @@ Ut.prototype._update = function() {
24835
24835
  var e = bt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
24836
24836
  dp(e), H(t, function(n, r) {
24837
24837
  var o = n.group || "default", s = bt("[data-group=" + Pl(o) + "]", e);
24838
- s || (s = xt('<div class="group"></div>'), Bn(s, "data-group", o), e.appendChild(s));
24839
- var l = n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'), u = xt(l);
24838
+ s || (s = wt('<div class="group"></div>'), Bn(s, "data-group", o), e.appendChild(s));
24839
+ var l = n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'), u = wt(l);
24840
24840
  if (s.appendChild(u), !n.separator && (Bn(u, "data-action", r), n.title && Bn(u, "title", n.title), n.className && CM(u, n.className), n.imageUrl)) {
24841
- var c = xt("<img>");
24841
+ var c = wt("<img>");
24842
24842
  Bn(c, "src", n.imageUrl), u.appendChild(c);
24843
24843
  }
24844
24844
  }), this.open();
@@ -30128,7 +30128,7 @@ const IO = {
30128
30128
  };
30129
30129
  var BO = new rv("tt");
30130
30130
  function FO(e) {
30131
- var t = xt(
30131
+ var t = wt(
30132
30132
  '<div class="djs-tooltip-container" />'
30133
30133
  );
30134
30134
  return yn(t, {
@@ -30209,7 +30209,7 @@ qn.prototype._updateRoot = function(e) {
30209
30209
  };
30210
30210
  qn.prototype._addTooltip = function(e) {
30211
30211
  var t = e.id, n = e.html, r, o = this._tooltipRoot;
30212
- n.get && n.constructor.prototype.jquery && (n = n.get(0)), Kn(n) && (n = xt(n)), r = xt('<div data-tooltip-id="' + t + '" class="' + t1 + '">'), yn(r, { position: "absolute" }), r.appendChild(n), e.type && dn(r).add("djs-tooltip-" + e.type), e.className && dn(r).add(e.className), e.htmlContainer = r, o.appendChild(r), this._tooltips[t] = e, this._updateTooltip(e);
30212
+ n.get && n.constructor.prototype.jquery && (n = n.get(0)), Kn(n) && (n = wt(n)), r = wt('<div data-tooltip-id="' + t + '" class="' + t1 + '">'), yn(r, { position: "absolute" }), r.appendChild(n), e.type && dn(r).add("djs-tooltip-" + e.type), e.className && dn(r).add(e.className), e.htmlContainer = r, o.appendChild(r), this._tooltips[t] = e, this._updateTooltip(e);
30213
30213
  };
30214
30214
  qn.prototype._updateTooltip = function(e) {
30215
30215
  var t = e.position, n = e.htmlContainer;
@@ -33790,7 +33790,7 @@ const jB = {
33790
33790
  createMoveSnapping: ["type", Ts]
33791
33791
  };
33792
33792
  function Ke(e, t, n, r) {
33793
- this._open = !1, this._results = [], this._eventMaps = [], this._canvas = e, this._eventBus = t, this._overlays = n, this._selection = r, this._container = xt(Ke.BOX_HTML), this._searchInput = bt(Ke.INPUT_SELECTOR, this._container), this._resultsContainer = bt(Ke.RESULTS_CONTAINER_SELECTOR, this._container), this._canvas.getContainer().appendChild(this._container), t.on(["canvas.destroy", "diagram.destroy"], this.close, this);
33793
+ this._open = !1, this._results = [], this._eventMaps = [], this._canvas = e, this._eventBus = t, this._overlays = n, this._selection = r, this._container = wt(Ke.BOX_HTML), this._searchInput = bt(Ke.INPUT_SELECTOR, this._container), this._resultsContainer = bt(Ke.RESULTS_CONTAINER_SELECTOR, this._container), this._canvas.getContainer().appendChild(this._container), t.on(["canvas.destroy", "diagram.destroy"], this.close, this);
33794
33794
  }
33795
33795
  Ke.$inject = [
33796
33796
  "canvas",
@@ -33873,7 +33873,7 @@ Ke.prototype._getCurrentResult = function() {
33873
33873
  return bt(Ke.RESULT_SELECTED_SELECTOR, this._resultsContainer);
33874
33874
  };
33875
33875
  Ke.prototype._createResultNode = function(e, t) {
33876
- var n = xt(Ke.RESULT_HTML);
33876
+ var n = wt(Ke.RESULT_HTML);
33877
33877
  return e.primaryTokens.length > 0 && SE(n, e.primaryTokens, Ke.RESULT_PRIMARY_HTML), SE(n, e.secondaryTokens, Ke.RESULT_SECONDARY_HTML), Bn(n, Ke.RESULT_ID_ATTRIBUTE, t), this._resultsContainer.appendChild(n), n;
33878
33878
  };
33879
33879
  Ke.prototype.registerProvider = function(e) {
@@ -33915,7 +33915,7 @@ function UB(e) {
33915
33915
  var t = 6, n = e.width + t * 2, r = e.height + t * 2, o = {
33916
33916
  width: n + "px",
33917
33917
  height: r + "px"
33918
- }, s = xt('<div class="' + Ke.OVERLAY_CLASS + '"></div>');
33918
+ }, s = wt('<div class="' + Ke.OVERLAY_CLASS + '"></div>');
33919
33919
  return yn(s, o), {
33920
33920
  position: {
33921
33921
  bottom: r - t,
@@ -33926,7 +33926,7 @@ function UB(e) {
33926
33926
  };
33927
33927
  }
33928
33928
  function SE(e, t, n) {
33929
- var r = GB(t), o = xt(n);
33929
+ var r = GB(t), o = wt(n);
33930
33930
  o.innerHTML = r, e.appendChild(o);
33931
33931
  }
33932
33932
  function GB(e) {
@@ -34809,9 +34809,9 @@ const e3 = { style: { display: "flex" } }, t3 = {
34809
34809
  function o3(e, t, n, r, o, s) {
34810
34810
  const l = we("search-outlined"), u = we("a-input"), c = we("a-tree"), d = we("a-form-item"), v = we("a-button"), m = we("sync-outlined"), y = we("a-form"), b = we("a-table-column"), _ = we("a-table");
34811
34811
  return Xe(), cn("div", null, [
34812
- wt("div", e3, [
34812
+ xt("div", e3, [
34813
34813
  e.deptOptions.length > 0 ? (Xe(), cn("div", t3, [
34814
- wt("div", n3, [
34814
+ xt("div", n3, [
34815
34815
  ae(u, {
34816
34816
  value: e.deptName,
34817
34817
  "onUpdate:value": t[0] || (t[0] = (w) => e.deptName = w),
@@ -34827,7 +34827,7 @@ function o3(e, t, n, r, o, s) {
34827
34827
  _: 1
34828
34828
  }, 8, ["value", "onChange"])
34829
34829
  ]),
34830
- wt("div", r3, [
34830
+ xt("div", r3, [
34831
34831
  ae(c, {
34832
34832
  "tree-data": e.deptOptions,
34833
34833
  "field-names": { children: "children", title: "label", key: "id" },
@@ -34840,7 +34840,7 @@ function o3(e, t, n, r, o, s) {
34840
34840
  }, null, 8, ["tree-data", "filter-node-method", "selected-keys", "onSelect"])
34841
34841
  ])
34842
34842
  ])) : gn("", !0),
34843
- wt("div", i3, [
34843
+ xt("div", i3, [
34844
34844
  Lh(ae(y, {
34845
34845
  model: e.queryParams,
34846
34846
  layout: "inline",
@@ -36034,15 +36034,15 @@ function x3(e, t, n, r, o, s) {
36034
36034
  default: se(() => [
36035
36035
  ae(v, null, {
36036
36036
  label: se(() => [
36037
- wt("span", null, [
36037
+ xt("span", null, [
36038
36038
  t[10] || (t[10] = tt(" 流转类型 ", -1)),
36039
36039
  ae(u, { placement: "top" }, {
36040
36040
  title: se(() => [...t[9] || (t[9] = [
36041
- wt("div", null, [
36041
+ xt("div", null, [
36042
36042
  tt(" 普通流转路径:流程执行过程中,一个元素被访问后,会沿着其所有出口顺序流继续执行。 "),
36043
- wt("br"),
36043
+ xt("br"),
36044
36044
  tt("默认流转路径:只有当没有其他顺序流可以选择时,才会选择默认顺序流作为活动的出口顺序流。流程会忽略默认顺序流上的条件。 "),
36045
- wt("br"),
36045
+ xt("br"),
36046
36046
  tt("条件流转路径:是计算其每个出口顺序流上的条件。当条件计算为true时,选择该出口顺序流。如果该方法选择了多条顺序流,则会生成多个执行,流程会以并行方式继续。 ")
36047
36047
  ], -1)
36048
36048
  ])]),
@@ -36119,7 +36119,7 @@ function x3(e, t, n, r, o, s) {
36119
36119
  key: "express"
36120
36120
  }, {
36121
36121
  default: se(() => [
36122
- wt("div", _3, [
36122
+ xt("div", _3, [
36123
36123
  ae(m, {
36124
36124
  value: e.variable,
36125
36125
  "onUpdate:value": t[2] || (t[2] = (w) => e.variable = w),
@@ -36548,8 +36548,8 @@ const P3 = { class: "card-header" };
36548
36548
  function R3(e, t, n, r, o, s) {
36549
36549
  const l = we("common-panel"), u = we("a-collapse-panel"), c = we("user-task-panel"), d = we("condition-panel"), v = we("a-collapse");
36550
36550
  return Xe(), cn("div", null, [
36551
- wt("div", P3, [
36552
- wt("span", null, oo(e.translateNodeName(e.elementType.value)), 1)
36551
+ xt("div", P3, [
36552
+ xt("span", null, oo(e.translateNodeName(e.elementType.value)), 1)
36553
36553
  ]),
36554
36554
  ae(v, {
36555
36555
  activeKey: e.activeName,
@@ -38634,15 +38634,15 @@ const W3 = { class: "flow-header" }, U3 = {
38634
38634
  }, G3 = { style: { display: "flex", padding: "10px 0", "justify-content": "space-between" } }, V3 = { class: "flow-body" }, K3 = { class: "flow-design-layout" }, Y3 = { class: "canvas-wrapper" }, q3 = {
38635
38635
  ref: "canvasRef",
38636
38636
  class: "canvas"
38637
- }, X3 = { class: "properties-panel" };
38638
- function Z3(e, t, n, r, o, s) {
38639
- const l = we("a-button"), u = we("upload-outlined"), c = we("a-upload"), d = we("a-space"), v = we("Designer"), m = we("a-card");
38637
+ }, X3 = { class: "properties-panel" }, Z3 = { class: "normalPanel" };
38638
+ function J3(e, t, n, r, o, s) {
38639
+ const l = we("a-button"), u = we("upload-outlined"), c = we("a-upload"), d = we("a-space"), v = we("Designer");
38640
38640
  return Xe(), cn("div", {
38641
38641
  class: CC(["flow-containers", { "view-mode": e.isView }])
38642
38642
  }, [
38643
- wt("div", W3, [
38644
- wt("div", U3, [
38645
- wt("div", G3, [
38643
+ xt("div", W3, [
38644
+ xt("div", U3, [
38645
+ xt("div", G3, [
38646
38646
  ae(d, null, {
38647
38647
  default: se(() => [
38648
38648
  ae(l, {
@@ -38688,9 +38688,9 @@ function Z3(e, t, n, r, o, s) {
38688
38688
  ae(l, {
38689
38689
  type: "primary",
38690
38690
  size: "small",
38691
- onClick: t[2] || (t[2] = (y) => {
38692
- var b;
38693
- return (b = e.modeler) == null ? void 0 : b.get("commandStack").undo();
38691
+ onClick: t[2] || (t[2] = (m) => {
38692
+ var y;
38693
+ return (y = e.modeler) == null ? void 0 : y.get("commandStack").undo();
38694
38694
  }),
38695
38695
  disabled: !e.modeler
38696
38696
  }, {
@@ -38702,9 +38702,9 @@ function Z3(e, t, n, r, o, s) {
38702
38702
  ae(l, {
38703
38703
  type: "primary",
38704
38704
  size: "small",
38705
- onClick: t[3] || (t[3] = (y) => {
38706
- var b;
38707
- return (b = e.modeler) == null ? void 0 : b.get("commandStack").redo();
38705
+ onClick: t[3] || (t[3] = (m) => {
38706
+ var y;
38707
+ return (y = e.modeler) == null ? void 0 : y.get("commandStack").redo();
38708
38708
  }),
38709
38709
  disabled: !e.modeler
38710
38710
  }, {
@@ -38715,7 +38715,7 @@ function Z3(e, t, n, r, o, s) {
38715
38715
  }, 8, ["disabled"]),
38716
38716
  ae(c, {
38717
38717
  "file-list": e.fileList,
38718
- "onUpdate:fileList": t[4] || (t[4] = (y) => e.fileList = y),
38718
+ "onUpdate:fileList": t[4] || (t[4] = (m) => e.fileList = m),
38719
38719
  name: "file",
38720
38720
  "before-upload": e.openBpmn,
38721
38721
  "show-upload-list": !1
@@ -38783,27 +38783,21 @@ function Z3(e, t, n, r, o, s) {
38783
38783
  ])
38784
38784
  ])
38785
38785
  ]),
38786
- wt("div", V3, [
38787
- wt("div", K3, [
38788
- wt("div", Y3, [
38789
- wt("div", q3, null, 512)
38786
+ xt("div", V3, [
38787
+ xt("div", K3, [
38788
+ xt("div", Y3, [
38789
+ xt("div", q3, null, 512)
38790
38790
  ]),
38791
- wt("div", X3, [
38792
- ae(m, {
38793
- bordered: !1,
38794
- class: "normalPanel"
38795
- }, {
38796
- default: se(() => [
38797
- e.loadCanvas ? (Xe(), vt(v, { key: 0 })) : gn("", !0)
38798
- ]),
38799
- _: 1
38800
- })
38791
+ xt("div", X3, [
38792
+ xt("div", Z3, [
38793
+ e.loadCanvas ? (Xe(), vt(v, { key: 0 })) : gn("", !0)
38794
+ ])
38801
38795
  ])
38802
38796
  ])
38803
38797
  ])
38804
38798
  ], 2);
38805
38799
  }
38806
- const J3 = /* @__PURE__ */ ui(j3, [["render", Z3], ["__scopeId", "data-v-0d7e3d94"]]);
38800
+ const Q3 = /* @__PURE__ */ ui(j3, [["render", J3], ["__scopeId", "data-v-4085fe1d"]]);
38807
38801
  function _f(e) {
38808
38802
  var t = " ";
38809
38803
  if (isNaN(parseInt(e)))
@@ -38872,18 +38866,18 @@ Hi.prototype.css = function(e, t) {
38872
38866
  /\{/.exec(n[l]) ? s += u[o++] + n[l] : /\}/.exec(n[l]) ? s += u[--o] + n[l] : (/\*\\/.exec(n[l]), s += u[o] + n[l]);
38873
38867
  return s.replace(/^\n{1,}/, "");
38874
38868
  };
38875
- function Q3(e, t) {
38869
+ function e5(e, t) {
38876
38870
  return t - (e.replace(/\(/g, "").length - e.replace(/\)/g, "").length);
38877
38871
  }
38878
- function e5(e, t) {
38872
+ function t5(e, t) {
38879
38873
  return e.replace(/\s{1,}/g, " ").replace(/ AND /ig, "~::~" + t + t + "AND ").replace(/ BETWEEN /ig, "~::~" + t + "BETWEEN ").replace(/ CASE /ig, "~::~" + t + "CASE ").replace(/ ELSE /ig, "~::~" + t + "ELSE ").replace(/ END /ig, "~::~" + t + "END ").replace(/ FROM /ig, "~::~FROM ").replace(/ GROUP\s{1,}BY/ig, "~::~GROUP BY ").replace(/ HAVING /ig, "~::~HAVING ").replace(/ IN /ig, " IN ").replace(/ JOIN /ig, "~::~JOIN ").replace(/ CROSS~::~{1,}JOIN /ig, "~::~CROSS JOIN ").replace(/ INNER~::~{1,}JOIN /ig, "~::~INNER JOIN ").replace(/ LEFT~::~{1,}JOIN /ig, "~::~LEFT JOIN ").replace(/ RIGHT~::~{1,}JOIN /ig, "~::~RIGHT JOIN ").replace(/ ON /ig, "~::~" + t + "ON ").replace(/ OR /ig, "~::~" + t + t + "OR ").replace(/ ORDER\s{1,}BY/ig, "~::~ORDER BY ").replace(/ OVER /ig, "~::~" + t + "OVER ").replace(/\(\s{0,}SELECT /ig, "~::~(SELECT ").replace(/\)\s{0,}SELECT /ig, ")~::~SELECT ").replace(/ THEN /ig, " THEN~::~" + t).replace(/ UNION /ig, "~::~UNION~::~").replace(/ USING /ig, "~::~USING ").replace(/ WHEN /ig, "~::~" + t + "WHEN ").replace(/ WHERE /ig, "~::~WHERE ").replace(/ WITH /ig, "~::~WITH ").replace(/ ALL /ig, " ALL ").replace(/ AS /ig, " AS ").replace(/ ASC /ig, " ASC ").replace(/ DESC /ig, " DESC ").replace(/ DISTINCT /ig, " DISTINCT ").replace(/ EXISTS /ig, " EXISTS ").replace(/ NOT /ig, " NOT ").replace(/ NULL /ig, " NULL ").replace(/ LIKE /ig, " LIKE ").replace(/\s{0,}SELECT /ig, "SELECT ").replace(/\s{0,}UPDATE /ig, "UPDATE ").replace(/ SET /ig, " SET ").replace(/~::~{1,}/g, "~::~").split("~::~");
38880
38874
  }
38881
38875
  Hi.prototype.sql = function(e, t) {
38882
38876
  var n = e.replace(/\s{1,}/g, " ").replace(/\'/ig, "~::~'").split("~::~"), r = n.length, o = [], s = 0, l = this.step, u = 0, c = "", d = 0, v = t ? _f(t) : this.shift;
38883
38877
  for (d = 0; d < r; d++)
38884
- d % 2 ? o = o.concat(n[d]) : o = o.concat(e5(n[d], l));
38878
+ d % 2 ? o = o.concat(n[d]) : o = o.concat(t5(n[d], l));
38885
38879
  for (r = o.length, d = 0; d < r; d++)
38886
- u = Q3(o[d], u), /\s{0,}\s{0,}SELECT\s{0,}/.exec(o[d]) && (o[d] = o[d].replace(/\,/g, `,
38880
+ u = e5(o[d], u), /\s{0,}\s{0,}SELECT\s{0,}/.exec(o[d]) && (o[d] = o[d].replace(/\,/g, `,
38887
38881
  ` + l + l)), /\s{0,}\s{0,}SET\s{0,}/.exec(o[d]) && (o[d] = o[d].replace(/\,/g, `,
38888
38882
  ` + l + l)), /\s{0,}\(\s{0,}SELECT\s{0,}/.exec(o[d]) ? (s++, c += v[s] + o[d]) : /\'/.exec(o[d]) ? (u < 1 && s && s--, c += o[d]) : (c += v[s] + o[d], u < 1 && s && s--);
38889
38883
  return c = c.replace(/^\n{1,}/, "").replace(/\n{1,}/g, `
@@ -38903,10 +38897,10 @@ Hi.prototype.cssmin = function(e, t) {
38903
38897
  Hi.prototype.sqlmin = function(e) {
38904
38898
  return e.replace(/\s{1,}/g, " ").replace(/\s{1,}\(/, "(").replace(/\s{1,}\)/, ")");
38905
38899
  };
38906
- var t5 = new Hi();
38907
- const n5 = /* @__PURE__ */ fs(t5);
38908
- var r5 = DE();
38909
- const i5 = /* @__PURE__ */ fs(r5), o5 = ri({
38900
+ var n5 = new Hi();
38901
+ const r5 = /* @__PURE__ */ fs(n5);
38902
+ var i5 = DE();
38903
+ const o5 = /* @__PURE__ */ fs(i5), a5 = ri({
38910
38904
  name: "MyProcess",
38911
38905
  props: {
38912
38906
  value: {
@@ -38959,7 +38953,7 @@ const i5 = /* @__PURE__ */ fs(r5), o5 = ri({
38959
38953
  }
38960
38954
  },
38961
38955
  components: {
38962
- bpmnModeler: J3
38956
+ bpmnModeler: Q3
38963
38957
  },
38964
38958
  emits: ["update:value", "save"],
38965
38959
  setup(e, { emit: t }) {
@@ -38986,7 +38980,7 @@ const i5 = /* @__PURE__ */ fs(r5), o5 = ri({
38986
38980
  });
38987
38981
  }, _ = (k) => {
38988
38982
  try {
38989
- l.value = n5.xml(k);
38983
+ l.value = r5.xml(k);
38990
38984
  } catch (A) {
38991
38985
  l.value = k, console.error("XML 格式化失败:", A);
38992
38986
  }
@@ -38996,7 +38990,7 @@ const i5 = /* @__PURE__ */ fs(r5), o5 = ri({
38996
38990
  console.warn("Textarea not found for CodeMirror");
38997
38991
  return;
38998
38992
  }
38999
- m.value.value = l.value, y = i5.fromTextArea(m.value, {
38993
+ m.value.value = l.value, y = o5.fromTextArea(m.value, {
39000
38994
  mode: "xml",
39001
38995
  lineNumbers: !0,
39002
38996
  readOnly: !0,
@@ -39035,10 +39029,10 @@ const i5 = /* @__PURE__ */ fs(r5), o5 = ri({
39035
39029
  };
39036
39030
  }
39037
39031
  });
39038
- const a5 = { class: "my-process-main" }, s5 = { class: "xml-editor" }, l5 = { ref: "el" };
39039
- function u5(e, t, n, r, o, s) {
39032
+ const s5 = { class: "my-process-main" }, l5 = { class: "xml-editor" }, u5 = { ref: "el" };
39033
+ function c5(e, t, n, r, o, s) {
39040
39034
  const l = we("bpmn-modeler"), u = we("a-drawer");
39041
- return Xe(), cn("div", a5, [
39035
+ return Xe(), cn("div", s5, [
39042
39036
  ae(l, {
39043
39037
  ref: "refNode",
39044
39038
  xml: e.xml,
@@ -39069,15 +39063,15 @@ function u5(e, t, n, r, o, s) {
39069
39063
  width: "700"
39070
39064
  }, {
39071
39065
  default: se(() => [
39072
- wt("div", s5, [
39073
- wt("textarea", l5, null, 512)
39066
+ xt("div", l5, [
39067
+ xt("textarea", u5, null, 512)
39074
39068
  ])
39075
39069
  ]),
39076
39070
  _: 1
39077
39071
  }, 8, ["open", "title", "onAfterOpenChange"])
39078
39072
  ]);
39079
39073
  }
39080
- const b5 = /* @__PURE__ */ ui(o5, [["render", u5], ["__scopeId", "data-v-8abee693"]]);
39074
+ const E5 = /* @__PURE__ */ ui(a5, [["render", c5], ["__scopeId", "data-v-8abee693"]]);
39081
39075
  var Mh = { exports: {} };
39082
39076
  typeof Object.create == "function" ? Mh.exports = function(t, n) {
39083
39077
  n && (t.super_ = n, t.prototype = Object.create(n.prototype, {
@@ -39096,14 +39090,14 @@ typeof Object.create == "function" ? Mh.exports = function(t, n) {
39096
39090
  r.prototype = n.prototype, t.prototype = new r(), t.prototype.constructor = t;
39097
39091
  }
39098
39092
  };
39099
- var c5 = Mh.exports;
39100
- const p5 = /* @__PURE__ */ fs(c5);
39093
+ var p5 = Mh.exports;
39094
+ const f5 = /* @__PURE__ */ fs(p5);
39101
39095
  function Nm(e) {
39102
39096
  $r.call(this, e);
39103
39097
  }
39104
- p5(Nm, $r);
39098
+ f5(Nm, $r);
39105
39099
  Nm.prototype._modules = [].concat($r.prototype._modules, [cv, lv]);
39106
- const f5 = ri({
39100
+ const d5 = ri({
39107
39101
  name: "BpmnViewer",
39108
39102
  props: {
39109
39103
  flowData: {
@@ -39179,29 +39173,29 @@ const f5 = ri({
39179
39173
  };
39180
39174
  }
39181
39175
  });
39182
- const d5 = { class: "containers" }, h5 = {
39176
+ const h5 = { class: "containers" }, v5 = {
39183
39177
  ref: "flowCanvasRef",
39184
39178
  class: "canvas"
39185
39179
  };
39186
- function v5(e, t, n, r, o, s) {
39180
+ function m5(e, t, n, r, o, s) {
39187
39181
  const l = we("a-spin"), u = we("DragOutlined"), c = we("a-button"), d = we("a-tooltip"), v = we("ZoomInOutlined"), m = we("ZoomOutOutlined"), y = we("a-space"), b = we("a-layout-content"), _ = we("a-layout");
39188
- return Xe(), cn("div", d5, [
39182
+ return Xe(), cn("div", h5, [
39189
39183
  ae(_, { style: { "align-items": "stretch", height: "100%" } }, {
39190
39184
  default: se(() => [
39191
39185
  ae(b, { class: "flow-viewer" }, {
39192
39186
  default: se(() => [
39193
- t[2] || (t[2] = wt("div", { class: "process-status" }, [
39194
- wt("span", { class: "intro" }, "状态:"),
39195
- wt("span", { class: "finish" }, "已办理"),
39196
- wt("span", { class: "processing" }, "处理中"),
39197
- wt("span", { class: "todo" }, "未进行")
39187
+ t[2] || (t[2] = xt("div", { class: "process-status" }, [
39188
+ xt("span", { class: "intro" }, "状态:"),
39189
+ xt("span", { class: "finish" }, "已办理"),
39190
+ xt("span", { class: "processing" }, "处理中"),
39191
+ xt("span", { class: "todo" }, "未进行")
39198
39192
  ], -1)),
39199
39193
  ae(l, {
39200
39194
  spinning: e.loading,
39201
39195
  wrapperClassName: "canvas-wrapper"
39202
39196
  }, {
39203
39197
  default: se(() => [
39204
- wt("div", h5, null, 512)
39198
+ xt("div", v5, null, 512)
39205
39199
  ]),
39206
39200
  _: 1
39207
39201
  }, 8, ["spinning"]),
@@ -39263,8 +39257,8 @@ function v5(e, t, n, r, o, s) {
39263
39257
  })
39264
39258
  ]);
39265
39259
  }
39266
- const E5 = /* @__PURE__ */ ui(f5, [["render", v5]]);
39260
+ const _5 = /* @__PURE__ */ ui(d5, [["render", m5]]);
39267
39261
  export {
39268
- b5 as MyProcess,
39269
- E5 as MyProcessViewer
39262
+ E5 as MyProcess,
39263
+ _5 as MyProcessViewer
39270
39264
  };