lyflowchart 1.0.25 → 1.0.28
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 +149 -147
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ni, reactive as jc, watch as
|
|
1
|
+
import { defineComponent as ni, reactive as jc, watch as rr, onMounted as co, resolveComponent as Se, openBlock as Je, createBlock as vt, withCtx as se, createVNode as oe, createCommentVNode as nn, ref as Be, inject as Oh, computed as sa, nextTick as xl, createElementBlock as In, createElementVNode as wt, withDirectives as Wc, createTextVNode as it, vShow as Uc, Fragment as wl, renderList as Gc, withKeys as wC, toDisplayString as Sl, 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 : {};
|
|
@@ -587,7 +587,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
587
587
|
}
|
|
588
588
|
return f.lines[a];
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function lr(i, a, f) {
|
|
591
591
|
var p = [], h = a.line;
|
|
592
592
|
return i.iter(a.line, f.line + 1, function(g) {
|
|
593
593
|
var E = g.text;
|
|
@@ -2645,12 +2645,12 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2645
2645
|
}, 200)) : (E.wheelDX += p, E.wheelDY += h));
|
|
2646
2646
|
}
|
|
2647
2647
|
}
|
|
2648
|
-
var
|
|
2648
|
+
var ur = function(i, a) {
|
|
2649
2649
|
this.ranges = i, this.primIndex = a;
|
|
2650
2650
|
};
|
|
2651
|
-
|
|
2651
|
+
ur.prototype.primary = function() {
|
|
2652
2652
|
return this.ranges[this.primIndex];
|
|
2653
|
-
},
|
|
2653
|
+
}, ur.prototype.equals = function(i) {
|
|
2654
2654
|
if (i == this)
|
|
2655
2655
|
return !0;
|
|
2656
2656
|
if (i.primIndex != this.primIndex || i.ranges.length != this.ranges.length)
|
|
@@ -2661,16 +2661,16 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2661
2661
|
return !1;
|
|
2662
2662
|
}
|
|
2663
2663
|
return !0;
|
|
2664
|
-
},
|
|
2664
|
+
}, ur.prototype.deepCopy = function() {
|
|
2665
2665
|
for (var i = [], a = 0; a < this.ranges.length; a++)
|
|
2666
2666
|
i[a] = new ht(Ho(this.ranges[a].anchor), Ho(this.ranges[a].head));
|
|
2667
|
-
return new
|
|
2668
|
-
},
|
|
2667
|
+
return new ur(i, this.primIndex);
|
|
2668
|
+
}, ur.prototype.somethingSelected = function() {
|
|
2669
2669
|
for (var i = 0; i < this.ranges.length; i++)
|
|
2670
2670
|
if (!this.ranges[i].empty())
|
|
2671
2671
|
return !0;
|
|
2672
2672
|
return !1;
|
|
2673
|
-
},
|
|
2673
|
+
}, ur.prototype.contains = function(i, a) {
|
|
2674
2674
|
a || (a = i);
|
|
2675
2675
|
for (var f = 0; f < this.ranges.length; f++) {
|
|
2676
2676
|
var p = this.ranges[f];
|
|
@@ -2701,10 +2701,10 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2701
2701
|
g <= f && --f, a.splice(--g, 2, new ht($ ? O : P, $ ? P : O));
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
|
-
return new
|
|
2704
|
+
return new ur(a, f);
|
|
2705
2705
|
}
|
|
2706
2706
|
function Ki(i, a) {
|
|
2707
|
-
return new
|
|
2707
|
+
return new ur([new ht(i, a || i)], 0);
|
|
2708
2708
|
}
|
|
2709
2709
|
function Yi(i) {
|
|
2710
2710
|
return i.text ? de(
|
|
@@ -2742,7 +2742,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2742
2742
|
} else
|
|
2743
2743
|
p[E] = new ht(w, w);
|
|
2744
2744
|
}
|
|
2745
|
-
return new
|
|
2745
|
+
return new ur(p, i.sel.primIndex);
|
|
2746
2746
|
}
|
|
2747
2747
|
function nd(i) {
|
|
2748
2748
|
i.doc.mode = Fo(i.options, i.doc.modeOption), Ws(i);
|
|
@@ -2819,7 +2819,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2819
2819
|
this.done = [], this.undone = [], this.undoDepth = i ? i.undoDepth : 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = i ? i.maxGeneration : 1;
|
|
2820
2820
|
}
|
|
2821
2821
|
function id(i, a) {
|
|
2822
|
-
var f = { from: Ho(a.from), to: Yi(a), text:
|
|
2822
|
+
var f = { from: Ho(a.from), to: Yi(a), text: lr(i, a.from, a.to) };
|
|
2823
2823
|
return Ng(i, f, a.from.line, a.to.line + 1), qi(i, function(p) {
|
|
2824
2824
|
return Ng(p, f, a.from.line, a.to.line + 1);
|
|
2825
2825
|
}, !0), f;
|
|
@@ -2915,7 +2915,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2915
2915
|
for (var p = [], h = 0; h < i.length; ++h) {
|
|
2916
2916
|
var g = i[h];
|
|
2917
2917
|
if (g.ranges) {
|
|
2918
|
-
p.push(f ?
|
|
2918
|
+
p.push(f ? ur.prototype.deepCopy.call(g) : g);
|
|
2919
2919
|
continue;
|
|
2920
2920
|
}
|
|
2921
2921
|
var E = g.changes, x = [];
|
|
@@ -2941,7 +2941,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2941
2941
|
return new ht(f || a, a);
|
|
2942
2942
|
}
|
|
2943
2943
|
function Gu(i, a, f, p, h) {
|
|
2944
|
-
h == null && (h = i.cm && (i.cm.display.shift || i.extend)), wn(i, new
|
|
2944
|
+
h == null && (h = i.cm && (i.cm.display.shift || i.extend)), wn(i, new ur([od(i.sel.primary(), a, f, h)], 0), p);
|
|
2945
2945
|
}
|
|
2946
2946
|
function Og(i, a, f) {
|
|
2947
2947
|
for (var p = [], h = i.cm && (i.cm.display.shift || i.extend), g = 0; g < i.sel.ranges.length; g++)
|
|
@@ -3112,7 +3112,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3112
3112
|
}
|
|
3113
3113
|
}
|
|
3114
3114
|
function Gg(i, a) {
|
|
3115
|
-
if (a != 0 && (i.first += a, i.sel = new
|
|
3115
|
+
if (a != 0 && (i.first += a, i.sel = new ur(Rt(i.sel.ranges, function(h) {
|
|
3116
3116
|
return new ht(
|
|
3117
3117
|
de(h.anchor.line + a, h.anchor.ch),
|
|
3118
3118
|
de(h.head.line + a, h.head.ch)
|
|
@@ -3146,7 +3146,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3146
3146
|
to: de(g, Pe(i, g).text.length),
|
|
3147
3147
|
text: [a.text[0]],
|
|
3148
3148
|
origin: a.origin
|
|
3149
|
-
}), a.removed =
|
|
3149
|
+
}), a.removed = lr(i, a.from, a.to), f || (f = td(i, a)), i.cm ? BS(i.cm, a, p) : rd(i, a, p), Vu(i, f, et), i.cantEdit && Ku(i, de(i.firstLine(), 0)) && (i.cantEdit = !1);
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
3152
|
function BS(i, a, f) {
|
|
@@ -3556,7 +3556,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3556
3556
|
a = qe(this, a), f = f ? qe(this, f) : a, za(this, i, a, f, p);
|
|
3557
3557
|
},
|
|
3558
3558
|
getRange: function(i, a, f) {
|
|
3559
|
-
var p =
|
|
3559
|
+
var p = lr(this, qe(this, i), qe(this, a));
|
|
3560
3560
|
return f === !1 ? p : f === "" ? p.join("") : p.join(f || this.lineSeparator());
|
|
3561
3561
|
},
|
|
3562
3562
|
getLine: function(i) {
|
|
@@ -3627,14 +3627,14 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3627
3627
|
}),
|
|
3628
3628
|
getSelection: function(i) {
|
|
3629
3629
|
for (var a = this.sel.ranges, f, p = 0; p < a.length; p++) {
|
|
3630
|
-
var h =
|
|
3630
|
+
var h = lr(this, a[p].from(), a[p].to());
|
|
3631
3631
|
f = f ? f.concat(h) : h;
|
|
3632
3632
|
}
|
|
3633
3633
|
return i === !1 ? f : f.join(i || this.lineSeparator());
|
|
3634
3634
|
},
|
|
3635
3635
|
getSelections: function(i) {
|
|
3636
3636
|
for (var a = [], f = this.sel.ranges, p = 0; p < f.length; p++) {
|
|
3637
|
-
var h =
|
|
3637
|
+
var h = lr(this, f[p].from(), f[p].to());
|
|
3638
3638
|
i !== !1 && (h = h.join(i || this.lineSeparator())), a[p] = h;
|
|
3639
3639
|
}
|
|
3640
3640
|
return a;
|
|
@@ -4753,7 +4753,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4753
4753
|
g,
|
|
4754
4754
|
kr(i, P.slice(0, x).concat(P.slice(x + 1)), 0),
|
|
4755
4755
|
{ scroll: !1, origin: "*mouse" }
|
|
4756
|
-
), w = g.sel) : ad(g, x, E, Ot) : (x = 0, wn(g, new
|
|
4756
|
+
), w = g.sel) : ad(g, x, E, Ot) : (x = 0, wn(g, new ur([E], 0), Ot), w = g.sel);
|
|
4757
4757
|
var $ = f;
|
|
4758
4758
|
function q(Ee) {
|
|
4759
4759
|
if (Ye($, Ee) != 0)
|
|
@@ -5732,7 +5732,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5732
5732
|
var w = Go(i, h.line), P, O;
|
|
5733
5733
|
if (w == a.view.length - 1 ? (P = a.viewTo - 1, O = a.lineDiv.lastChild) : (P = dt(a.view[w + 1].line) - 1, O = a.view[w + 1].node.previousSibling), !x)
|
|
5734
5734
|
return !1;
|
|
5735
|
-
for (var $ = i.doc.splitLines(yC(i, x, O, E, P)), q =
|
|
5735
|
+
for (var $ = i.doc.splitLines(yC(i, x, O, E, P)), q = lr(i.doc, de(E, 0), de(P, Pe(i.doc, P).text.length)); $.length > 1 && q.length > 1; )
|
|
5736
5736
|
if (Ne($) == Ne(q))
|
|
5737
5737
|
$.pop(), q.pop(), P--;
|
|
5738
5738
|
else if ($[0] == q[0])
|
|
@@ -5827,7 +5827,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5827
5827
|
var le = V.getAttribute("cm-marker"), me;
|
|
5828
5828
|
if (le) {
|
|
5829
5829
|
var be = i.findMarks(de(p, 0), de(h + 1, 0), P(+le));
|
|
5830
|
-
be.length && (me = be[0].find(0)) && $(
|
|
5830
|
+
be.length && (me = be[0].find(0)) && $(lr(i.doc, me.from, me.to).join(x));
|
|
5831
5831
|
return;
|
|
5832
5832
|
}
|
|
5833
5833
|
if (V.getAttribute("contenteditable") == "false")
|
|
@@ -6587,13 +6587,13 @@ function UC(e, t) {
|
|
|
6587
6587
|
return !n(r, o);
|
|
6588
6588
|
});
|
|
6589
6589
|
}
|
|
6590
|
-
function
|
|
6590
|
+
function ir(e, t, n) {
|
|
6591
6591
|
return H(e, function(r, o) {
|
|
6592
6592
|
n = t(n, r, o);
|
|
6593
6593
|
}), n;
|
|
6594
6594
|
}
|
|
6595
6595
|
function po(e, t) {
|
|
6596
|
-
return !!
|
|
6596
|
+
return !!ir(e, function(n, r, o) {
|
|
6597
6597
|
return n && t(r, o);
|
|
6598
6598
|
}, !0);
|
|
6599
6599
|
}
|
|
@@ -7542,7 +7542,7 @@ function $T() {
|
|
|
7542
7542
|
return K(s, { class: n });
|
|
7543
7543
|
}, this.style = function(n, r) {
|
|
7544
7544
|
!Qe(n) && !r && (r = n, n = []);
|
|
7545
|
-
var o =
|
|
7545
|
+
var o = ir(n, function(s, l) {
|
|
7546
7546
|
return K(s, e[l] || {});
|
|
7547
7547
|
}, {});
|
|
7548
7548
|
return r ? K(o, r) : o;
|
|
@@ -8135,7 +8135,7 @@ Xe.prototype.getLayer = function(e, t) {
|
|
|
8135
8135
|
return n.group;
|
|
8136
8136
|
};
|
|
8137
8137
|
Xe.prototype._getChildIndex = function(e) {
|
|
8138
|
-
return
|
|
8138
|
+
return ir(this._layers, function(t, n) {
|
|
8139
8139
|
return n.visible && e >= n.index && t++, t;
|
|
8140
8140
|
}, 0);
|
|
8141
8141
|
};
|
|
@@ -8646,10 +8646,10 @@ ki.prototype.create = function(e, t) {
|
|
|
8646
8646
|
return t = K({}, t || {}), t.id || (t.id = e + "_" + this._uid++), E2(e, t);
|
|
8647
8647
|
};
|
|
8648
8648
|
var ep = "__fn", c_ = 1e3, _2 = Array.prototype.slice;
|
|
8649
|
-
function
|
|
8649
|
+
function or() {
|
|
8650
8650
|
this._listeners = {}, this.on("diagram.destroy", 1, this._destroy, this);
|
|
8651
8651
|
}
|
|
8652
|
-
|
|
8652
|
+
or.prototype.on = function(e, t, n, r) {
|
|
8653
8653
|
if (e = Qe(e) ? e : [e], yn(t) && (r = n, n = t, t = c_), !Ue(t))
|
|
8654
8654
|
throw new Error("priority must be a number");
|
|
8655
8655
|
var o = n;
|
|
@@ -8663,7 +8663,7 @@ ir.prototype.on = function(e, t, n, r) {
|
|
|
8663
8663
|
});
|
|
8664
8664
|
});
|
|
8665
8665
|
};
|
|
8666
|
-
|
|
8666
|
+
or.prototype.once = function(e, t, n, r) {
|
|
8667
8667
|
var o = this;
|
|
8668
8668
|
if (yn(t) && (r = n, n = t, t = c_), !Ue(t))
|
|
8669
8669
|
throw new Error("priority must be a number");
|
|
@@ -8674,18 +8674,18 @@ ir.prototype.once = function(e, t, n, r) {
|
|
|
8674
8674
|
}
|
|
8675
8675
|
s[ep] = n, this.on(e, t, s);
|
|
8676
8676
|
};
|
|
8677
|
-
|
|
8677
|
+
or.prototype.off = function(e, t) {
|
|
8678
8678
|
e = Qe(e) ? e : [e];
|
|
8679
8679
|
var n = this;
|
|
8680
8680
|
e.forEach(function(r) {
|
|
8681
8681
|
n._removeListener(r, t);
|
|
8682
8682
|
});
|
|
8683
8683
|
};
|
|
8684
|
-
|
|
8684
|
+
or.prototype.createEvent = function(e) {
|
|
8685
8685
|
var t = new Hl();
|
|
8686
8686
|
return t.init(e), t;
|
|
8687
8687
|
};
|
|
8688
|
-
|
|
8688
|
+
or.prototype.fire = function(e, t) {
|
|
8689
8689
|
var n, r, o, s;
|
|
8690
8690
|
if (s = _2.call(arguments), typeof e == "object" && (t = e, e = t.type), !e)
|
|
8691
8691
|
throw new Error("no event type specified");
|
|
@@ -8701,18 +8701,18 @@ ir.prototype.fire = function(e, t) {
|
|
|
8701
8701
|
return o === void 0 && n.defaultPrevented && (o = !1), o;
|
|
8702
8702
|
}
|
|
8703
8703
|
};
|
|
8704
|
-
|
|
8704
|
+
or.prototype.handleError = function(e) {
|
|
8705
8705
|
return this.fire("error", { error: e }) === !1;
|
|
8706
8706
|
};
|
|
8707
|
-
|
|
8707
|
+
or.prototype._destroy = function() {
|
|
8708
8708
|
this._listeners = {};
|
|
8709
8709
|
};
|
|
8710
|
-
|
|
8710
|
+
or.prototype._invokeListeners = function(e, t, n) {
|
|
8711
8711
|
for (var r; n && !e.cancelBubble; )
|
|
8712
8712
|
r = this._invokeListener(e, t, n), n = n.next;
|
|
8713
8713
|
return r;
|
|
8714
8714
|
};
|
|
8715
|
-
|
|
8715
|
+
or.prototype._invokeListener = function(e, t, n) {
|
|
8716
8716
|
var r;
|
|
8717
8717
|
if (n.callback.__isTomb)
|
|
8718
8718
|
return r;
|
|
@@ -8724,7 +8724,7 @@ ir.prototype._invokeListener = function(e, t, n) {
|
|
|
8724
8724
|
}
|
|
8725
8725
|
return r;
|
|
8726
8726
|
};
|
|
8727
|
-
|
|
8727
|
+
or.prototype._addListener = function(e, t) {
|
|
8728
8728
|
var n = this._getListeners(e), r;
|
|
8729
8729
|
if (!n) {
|
|
8730
8730
|
this._setListeners(e, t);
|
|
@@ -8739,13 +8739,13 @@ ir.prototype._addListener = function(e, t) {
|
|
|
8739
8739
|
}
|
|
8740
8740
|
r.next = t;
|
|
8741
8741
|
};
|
|
8742
|
-
|
|
8742
|
+
or.prototype._getListeners = function(e) {
|
|
8743
8743
|
return this._listeners[e];
|
|
8744
8744
|
};
|
|
8745
|
-
|
|
8745
|
+
or.prototype._setListeners = function(e, t) {
|
|
8746
8746
|
this._listeners[e] = t;
|
|
8747
8747
|
};
|
|
8748
|
-
|
|
8748
|
+
or.prototype._removeListener = function(e, t) {
|
|
8749
8749
|
var n = this._getListeners(e), r, o, s;
|
|
8750
8750
|
if (!t) {
|
|
8751
8751
|
this._setListeners(e, null);
|
|
@@ -8816,7 +8816,7 @@ fr.prototype.create = function(e, t, n) {
|
|
|
8816
8816
|
};
|
|
8817
8817
|
fr.prototype.updateContainments = function(e) {
|
|
8818
8818
|
var t = this, n = this._elementRegistry, r;
|
|
8819
|
-
r =
|
|
8819
|
+
r = ir(e, function(o, s) {
|
|
8820
8820
|
return s.parent && (o[s.parent.id] = s.parent), o;
|
|
8821
8821
|
}, {}), H(r, function(o) {
|
|
8822
8822
|
var s = o.children;
|
|
@@ -8871,7 +8871,7 @@ const S2 = {
|
|
|
8871
8871
|
canvas: ["type", Xe],
|
|
8872
8872
|
elementRegistry: ["type", pr],
|
|
8873
8873
|
elementFactory: ["type", ki],
|
|
8874
|
-
eventBus: ["type",
|
|
8874
|
+
eventBus: ["type", or],
|
|
8875
8875
|
graphicsFactory: ["type", fr]
|
|
8876
8876
|
};
|
|
8877
8877
|
function C2(e) {
|
|
@@ -16233,9 +16233,9 @@ Ap.prototype.layoutText = function(e, t) {
|
|
|
16233
16233
|
for (Ge(y, m); c.length; )
|
|
16234
16234
|
d.push(BP(c, v, m));
|
|
16235
16235
|
o.vertical === "middle" && (s.top = s.bottom = 0);
|
|
16236
|
-
var b =
|
|
16236
|
+
var b = ir(d, function(D, k, T) {
|
|
16237
16237
|
return D + (u || k.height);
|
|
16238
|
-
}, 0) + s.top + s.bottom, _ =
|
|
16238
|
+
}, 0) + s.top + s.bottom, _ = ir(d, function(D, k, T) {
|
|
16239
16239
|
return k.width > D ? k.width : D;
|
|
16240
16240
|
}, 0), S = s.top;
|
|
16241
16241
|
o.vertical === "middle" && (S += (n.height - b) / 2), S -= (u || d[0].height) / 4;
|
|
@@ -17731,7 +17731,7 @@ var DR = ["c", "C"], kR = ["v", "V"], MR = ["y", "Y"], q_ = ["z", "Z"];
|
|
|
17731
17731
|
function NR(e) {
|
|
17732
17732
|
return e.ctrlKey || e.metaKey || e.shiftKey || e.altKey;
|
|
17733
17733
|
}
|
|
17734
|
-
function
|
|
17734
|
+
function cr(e) {
|
|
17735
17735
|
return e.altKey ? !1 : e.ctrlKey || e.metaKey;
|
|
17736
17736
|
}
|
|
17737
17737
|
function cn(e, t) {
|
|
@@ -17741,16 +17741,16 @@ function av(e) {
|
|
|
17741
17741
|
return e.shiftKey;
|
|
17742
17742
|
}
|
|
17743
17743
|
function LR(e) {
|
|
17744
|
-
return
|
|
17744
|
+
return cr(e) && cn(DR, e);
|
|
17745
17745
|
}
|
|
17746
17746
|
function OR(e) {
|
|
17747
|
-
return
|
|
17747
|
+
return cr(e) && cn(kR, e);
|
|
17748
17748
|
}
|
|
17749
17749
|
function IR(e) {
|
|
17750
|
-
return
|
|
17750
|
+
return cr(e) && !av(e) && cn(q_, e);
|
|
17751
17751
|
}
|
|
17752
17752
|
function BR(e) {
|
|
17753
|
-
return
|
|
17753
|
+
return cr(e) && (cn(MR, e) || cn(q_, e) && av(e));
|
|
17754
17754
|
}
|
|
17755
17755
|
var Lp = "keyboard.keydown", FR = "keyboard.keyup", o0 = "input-handle-modified-keys", $R = 1e3;
|
|
17756
17756
|
function En(e, t) {
|
|
@@ -17788,7 +17788,7 @@ En.prototype._isEventIgnored = function(e) {
|
|
|
17788
17788
|
return e.defaultPrevented ? !0 : HR(e.target) && this._isModifiedKeyIgnored(e);
|
|
17789
17789
|
};
|
|
17790
17790
|
En.prototype._isModifiedKeyIgnored = function(e) {
|
|
17791
|
-
if (!
|
|
17791
|
+
if (!cr(e))
|
|
17792
17792
|
return !0;
|
|
17793
17793
|
var t = this._getAllowedModifiers(e.target);
|
|
17794
17794
|
return t.indexOf(e.key) === -1;
|
|
@@ -17817,7 +17817,7 @@ En.prototype.removeListener = function(e, t) {
|
|
|
17817
17817
|
this._eventBus.off(t || Lp, e);
|
|
17818
17818
|
};
|
|
17819
17819
|
En.prototype.hasModifier = NR;
|
|
17820
|
-
En.prototype.isCmd =
|
|
17820
|
+
En.prototype.isCmd = cr;
|
|
17821
17821
|
En.prototype.isShift = av;
|
|
17822
17822
|
En.prototype.isKey = cn;
|
|
17823
17823
|
function HR(e) {
|
|
@@ -17857,15 +17857,15 @@ Ni.prototype.registerBindings = function(e, t) {
|
|
|
17857
17857
|
return t.trigger("paste"), !0;
|
|
17858
17858
|
}), n("stepZoom", function(r) {
|
|
17859
17859
|
var o = r.keyEvent;
|
|
17860
|
-
if (cn(["+", "Add", "="], o) &&
|
|
17860
|
+
if (cn(["+", "Add", "="], o) && cr(o))
|
|
17861
17861
|
return t.trigger("stepZoom", { value: 1 }), !0;
|
|
17862
17862
|
}), n("stepZoom", function(r) {
|
|
17863
17863
|
var o = r.keyEvent;
|
|
17864
|
-
if (cn(["-", "Subtract"], o) &&
|
|
17864
|
+
if (cn(["-", "Subtract"], o) && cr(o))
|
|
17865
17865
|
return t.trigger("stepZoom", { value: -1 }), !0;
|
|
17866
17866
|
}), n("zoom", function(r) {
|
|
17867
17867
|
var o = r.keyEvent;
|
|
17868
|
-
if (cn("0", o) &&
|
|
17868
|
+
if (cn("0", o) && cr(o))
|
|
17869
17869
|
return t.trigger("zoom", { value: 1 }), !0;
|
|
17870
17870
|
}), n("removeSelection", function(r) {
|
|
17871
17871
|
var o = r.keyEvent;
|
|
@@ -18615,7 +18615,7 @@ var rx = { exports: {} };
|
|
|
18615
18615
|
N[z] = L ? t.CSS.supports("touch-action", z) : !0;
|
|
18616
18616
|
}), N;
|
|
18617
18617
|
}
|
|
18618
|
-
var vr = 1, kn = 2, pi = 4, gt = 8, Pe = gt,
|
|
18618
|
+
var vr = 1, kn = 2, pi = 4, gt = 8, Pe = gt, lr = 16, Jn = 32;
|
|
18619
18619
|
function Qt(N) {
|
|
18620
18620
|
this.options = S({}, this.defaults, N || {}), this.id = ce(), this.manager = null, this.options.enable = M(this.options.enable, !0), this.state = vr, this.simultaneous = {}, this.requireFail = [];
|
|
18621
18621
|
}
|
|
@@ -18735,7 +18735,7 @@ var rx = { exports: {} };
|
|
|
18735
18735
|
this.reset(), this.state = Jn;
|
|
18736
18736
|
return;
|
|
18737
18737
|
}
|
|
18738
|
-
this.state & (Pe |
|
|
18738
|
+
this.state & (Pe | lr | Jn) && (this.state = vr), this.state = this.process(L), this.state & (kn | pi | gt | lr) && this.tryEmit(L);
|
|
18739
18739
|
},
|
|
18740
18740
|
/**
|
|
18741
18741
|
* return the state of the recognizer
|
|
@@ -18763,7 +18763,7 @@ var rx = { exports: {} };
|
|
|
18763
18763
|
}
|
|
18764
18764
|
};
|
|
18765
18765
|
function dt(N) {
|
|
18766
|
-
return N &
|
|
18766
|
+
return N & lr ? "cancel" : N & gt ? "end" : N & pi ? "move" : N & kn ? "start" : "";
|
|
18767
18767
|
}
|
|
18768
18768
|
function jr(N) {
|
|
18769
18769
|
return N == Ot ? "down" : N == et ? "up" : N == nt ? "left" : N == We ? "right" : "";
|
|
@@ -18805,7 +18805,7 @@ var rx = { exports: {} };
|
|
|
18805
18805
|
*/
|
|
18806
18806
|
process: function(N) {
|
|
18807
18807
|
var L = this.state, z = N.eventType, te = L & (kn | pi), he = this.attrTest(N);
|
|
18808
|
-
return te && (z & ke || !he) ? L |
|
|
18808
|
+
return te && (z & ke || !he) ? L | lr : te || he ? z & ve ? L | gt : L & kn ? L | pi : kn : Jn;
|
|
18809
18809
|
}
|
|
18810
18810
|
});
|
|
18811
18811
|
function de() {
|
|
@@ -19260,7 +19260,7 @@ var rx = { exports: {} };
|
|
|
19260
19260
|
STATE_CHANGED: pi,
|
|
19261
19261
|
STATE_ENDED: gt,
|
|
19262
19262
|
STATE_RECOGNIZED: Pe,
|
|
19263
|
-
STATE_CANCELLED:
|
|
19263
|
+
STATE_CANCELLED: lr,
|
|
19264
19264
|
STATE_FAILED: Jn,
|
|
19265
19265
|
DIRECTION_NONE: He,
|
|
19266
19266
|
DIRECTION_LEFT: nt,
|
|
@@ -20761,12 +20761,12 @@ Gl.prototype._getEntries = function(e) {
|
|
|
20761
20761
|
};
|
|
20762
20762
|
}), o;
|
|
20763
20763
|
};
|
|
20764
|
-
function
|
|
20764
|
+
function ar(e) {
|
|
20765
20765
|
ye.call(this, e), this.init();
|
|
20766
20766
|
}
|
|
20767
|
-
|
|
20768
|
-
De(
|
|
20769
|
-
|
|
20767
|
+
ar.$inject = ["eventBus"];
|
|
20768
|
+
De(ar, ye);
|
|
20769
|
+
ar.prototype.addRule = function(e, t, n) {
|
|
20770
20770
|
var r = this;
|
|
20771
20771
|
typeof e == "string" && (e = [e]), e.forEach(function(o) {
|
|
20772
20772
|
r.canExecute(o, t, function(s, l, u) {
|
|
@@ -20774,13 +20774,13 @@ or.prototype.addRule = function(e, t, n) {
|
|
|
20774
20774
|
}, !0);
|
|
20775
20775
|
});
|
|
20776
20776
|
};
|
|
20777
|
-
|
|
20777
|
+
ar.prototype.init = function() {
|
|
20778
20778
|
};
|
|
20779
20779
|
function zp(e) {
|
|
20780
|
-
|
|
20780
|
+
ar.call(this, e);
|
|
20781
20781
|
}
|
|
20782
20782
|
zp.$inject = ["eventBus"];
|
|
20783
|
-
De(zp,
|
|
20783
|
+
De(zp, ar);
|
|
20784
20784
|
zp.prototype.init = function() {
|
|
20785
20785
|
this.addRule("elements.align", function(e) {
|
|
20786
20786
|
var t = e.elements, n = Ze(t, function(r) {
|
|
@@ -20871,7 +20871,7 @@ function kD(e, t) {
|
|
|
20871
20871
|
};
|
|
20872
20872
|
}), y = v.concat(m).reduce(function(_, S) {
|
|
20873
20873
|
return _[S.id + "__weight_" + S.weight] = S, _;
|
|
20874
|
-
}, {}), b =
|
|
20874
|
+
}, {}), b = ir(y, function(_, S) {
|
|
20875
20875
|
var A = S.distance, B = S.weight;
|
|
20876
20876
|
return A < 0 || A > u || (_[String(A)] || (_[String(A)] = 0), _[String(A)] += 1 * B, (!_.distance || _[_.distance] < _[String(A)]) && (_.distance = A)), _;
|
|
20877
20877
|
}, {});
|
|
@@ -21106,14 +21106,14 @@ jp.prototype.resize = function(e, t, n) {
|
|
|
21106
21106
|
R(e, "bpmn:Participant") ? this._modeling.resizeLane(e, t, null, n) : this._modeling.resizeShape(e, t, null, n);
|
|
21107
21107
|
};
|
|
21108
21108
|
function Vl(e) {
|
|
21109
|
-
|
|
21109
|
+
ar.call(this, e);
|
|
21110
21110
|
var t = this;
|
|
21111
21111
|
this.addRule("element.autoResize", function(n) {
|
|
21112
21112
|
return t.canResize(n.elements, n.target);
|
|
21113
21113
|
});
|
|
21114
21114
|
}
|
|
21115
21115
|
Vl.$inject = ["eventBus"];
|
|
21116
|
-
De(Vl,
|
|
21116
|
+
De(Vl, ar);
|
|
21117
21117
|
Vl.prototype.canResize = function(e, t) {
|
|
21118
21118
|
return !1;
|
|
21119
21119
|
};
|
|
@@ -23061,7 +23061,7 @@ function Qx(e, t, n) {
|
|
|
23061
23061
|
return c.default && (v[c.default] = {
|
|
23062
23062
|
element: m,
|
|
23063
23063
|
property: "default"
|
|
23064
|
-
}), c.host && (Te(c).attachedToRef = Te(d[c.host])), Pi(v,
|
|
23064
|
+
}), c.host && (Te(c).attachedToRef = Te(d[c.host])), Pi(v, ir(v, function(y, b, _) {
|
|
23065
23065
|
var S = b.element, A = b.property;
|
|
23066
23066
|
return _ === c.id && (S[A] = m, y.push(c.id)), y;
|
|
23067
23067
|
}, []));
|
|
@@ -23169,7 +23169,7 @@ Xl.prototype.copyProperty = function(e, t, n, r) {
|
|
|
23169
23169
|
return bn(s) && s.$type && !s.$parent && (s.$parent = t), s;
|
|
23170
23170
|
var l = this._moddle.getPropertyDescriptor(t, n);
|
|
23171
23171
|
if (!l.isReference)
|
|
23172
|
-
return l.isId ? e && this._copyId(e, t, r) : Qe(e) ?
|
|
23172
|
+
return l.isId ? e && this._copyId(e, t, r) : Qe(e) ? ir(e, function(u, c) {
|
|
23173
23173
|
return s = o.copyProperty(c, t, n, r), s ? u.concat(s) : u;
|
|
23174
23174
|
}, []) : bn(e) && e.$type ? this._moddle.getElementDescriptor(e).isGeneric ? void 0 : (s = o._bpmnFactory.create(e.$type), s.$parent = t, s = o.copyElement(e, s, null, r), s) : e;
|
|
23175
23175
|
}
|
|
@@ -23181,7 +23181,7 @@ Xl.prototype._copyId = function(e, t, n) {
|
|
|
23181
23181
|
return this._moddle.ids.claim(e, t), e;
|
|
23182
23182
|
};
|
|
23183
23183
|
function bh(e, t) {
|
|
23184
|
-
return
|
|
23184
|
+
return ir(e.properties, function(n, r) {
|
|
23185
23185
|
return t && r.default ? n : n.concat(r.name);
|
|
23186
23186
|
}, []);
|
|
23187
23187
|
}
|
|
@@ -25746,9 +25746,9 @@ qp.prototype._getAppendMenuPosition = function(e) {
|
|
|
25746
25746
|
};
|
|
25747
25747
|
};
|
|
25748
25748
|
function Xp(e) {
|
|
25749
|
-
|
|
25749
|
+
ar.call(this, e);
|
|
25750
25750
|
}
|
|
25751
|
-
De(Xp,
|
|
25751
|
+
De(Xp, ar);
|
|
25752
25752
|
Xp.$inject = [
|
|
25753
25753
|
"eventBus"
|
|
25754
25754
|
];
|
|
@@ -25857,10 +25857,10 @@ const qM = {
|
|
|
25857
25857
|
distributeElements: ["type", Bi]
|
|
25858
25858
|
};
|
|
25859
25859
|
function Zp(e, t, n) {
|
|
25860
|
-
|
|
25860
|
+
ar.call(this, t);
|
|
25861
25861
|
}
|
|
25862
25862
|
Zp.$inject = ["distributeElements", "eventBus", "rules"];
|
|
25863
|
-
De(Zp,
|
|
25863
|
+
De(Zp, ar);
|
|
25864
25864
|
Zp.prototype.init = function() {
|
|
25865
25865
|
this.addRule("elements.distribute", function(e) {
|
|
25866
25866
|
var t = e.elements;
|
|
@@ -26113,7 +26113,7 @@ function Eo(e, t, n) {
|
|
|
26113
26113
|
"shape.move.end"
|
|
26114
26114
|
], nN, function(s) {
|
|
26115
26115
|
var l = s.originalEvent;
|
|
26116
|
-
if (!(!o.active || l &&
|
|
26116
|
+
if (!(!o.active || l && cr(l))) {
|
|
26117
26117
|
var u = s.context, c = u.gridSnappingContext;
|
|
26118
26118
|
c || (c = u.gridSnappingContext = {}), ["x", "y"].forEach(function(d) {
|
|
26119
26119
|
var v = {}, m = oN(s, d, e);
|
|
@@ -28418,7 +28418,7 @@ tm.$inject = [
|
|
|
28418
28418
|
];
|
|
28419
28419
|
function lf(e, t, n, r, o, s) {
|
|
28420
28420
|
r.invoke(ye, this), this._bpmnReplace = e, this._elementRegistry = n, this._selection = s, this.postExecuted(["elements.create"], 500, function(l) {
|
|
28421
|
-
var u = l.context, c = u.parent, d = u.elements, v =
|
|
28421
|
+
var u = l.context, c = u.parent, d = u.elements, v = ir(d, function(m, y) {
|
|
28422
28422
|
var b = t.canReplace([y], y.host || y.parent || c);
|
|
28423
28423
|
return b ? m.concat(b.replacements) : m;
|
|
28424
28424
|
}, []);
|
|
@@ -29080,9 +29080,9 @@ function $w(e, t) {
|
|
|
29080
29080
|
return n !== "intersect" ? n : null;
|
|
29081
29081
|
}
|
|
29082
29082
|
function An(e) {
|
|
29083
|
-
|
|
29083
|
+
ar.call(this, e);
|
|
29084
29084
|
}
|
|
29085
|
-
De(An,
|
|
29085
|
+
De(An, ar);
|
|
29086
29086
|
An.$inject = ["eventBus"];
|
|
29087
29087
|
An.prototype.init = function() {
|
|
29088
29088
|
this.addRule("connection.start", function(e) {
|
|
@@ -30499,7 +30499,7 @@ Ar.prototype.createDiPlane = function(e, t) {
|
|
|
30499
30499
|
bpmnElement: e
|
|
30500
30500
|
}, t));
|
|
30501
30501
|
};
|
|
30502
|
-
function
|
|
30502
|
+
function sr(e, t, n, r) {
|
|
30503
30503
|
ye.call(this, e), this._bpmnFactory = t, this._translate = r;
|
|
30504
30504
|
var o = this;
|
|
30505
30505
|
function s(b) {
|
|
@@ -30594,24 +30594,24 @@ function ar(e, t, n, r) {
|
|
|
30594
30594
|
}
|
|
30595
30595
|
this.executed(["element.updateAttachment"], br(y)), this.reverted(["element.updateAttachment"], br(y));
|
|
30596
30596
|
}
|
|
30597
|
-
De(
|
|
30598
|
-
|
|
30597
|
+
De(sr, ye);
|
|
30598
|
+
sr.$inject = [
|
|
30599
30599
|
"eventBus",
|
|
30600
30600
|
"bpmnFactory",
|
|
30601
30601
|
"connectionDocking",
|
|
30602
30602
|
"translate"
|
|
30603
30603
|
];
|
|
30604
|
-
|
|
30604
|
+
sr.prototype.updateAttachment = function(e) {
|
|
30605
30605
|
var t = e.shape, n = t.businessObject, r = t.host;
|
|
30606
30606
|
n.attachedToRef = r && r.businessObject;
|
|
30607
30607
|
};
|
|
30608
|
-
|
|
30608
|
+
sr.prototype.updateParent = function(e, t) {
|
|
30609
30609
|
if (!(e instanceof _p) && !(R(e, "bpmn:DataStoreReference") && e.parent && R(e.parent, "bpmn:Collaboration"))) {
|
|
30610
30610
|
var n = e.parent, r = e.businessObject, o = ct(e), s = n && n.businessObject, l = ct(n);
|
|
30611
30611
|
R(e, "bpmn:FlowNode") && this.updateFlowNodeRefs(r, s, t && t.businessObject), R(e, "bpmn:DataOutputAssociation") && (e.source ? s = e.source.businessObject : s = null), R(e, "bpmn:DataInputAssociation") && (e.target ? s = e.target.businessObject : s = null), this.updateSemanticParent(r, s), R(e, "bpmn:DataObjectReference") && r.dataObjectRef && this.updateSemanticParent(r.dataObjectRef, s), this.updateDiParent(o, l);
|
|
30612
30612
|
}
|
|
30613
30613
|
};
|
|
30614
|
-
|
|
30614
|
+
sr.prototype.updateBounds = function(e) {
|
|
30615
30615
|
var t = ct(e), n = XO(e);
|
|
30616
30616
|
if (n) {
|
|
30617
30617
|
var r = Or(n, t.get("bounds"));
|
|
@@ -30628,17 +30628,17 @@ ar.prototype.updateBounds = function(e) {
|
|
|
30628
30628
|
height: e.height
|
|
30629
30629
|
});
|
|
30630
30630
|
};
|
|
30631
|
-
|
|
30631
|
+
sr.prototype.updateFlowNodeRefs = function(e, t, n) {
|
|
30632
30632
|
if (n !== t) {
|
|
30633
30633
|
var r, o;
|
|
30634
30634
|
R(n, "bpmn:Lane") && (r = n.get("flowNodeRef"), jt(r, e)), R(t, "bpmn:Lane") && (o = t.get("flowNodeRef"), Zt(o, e));
|
|
30635
30635
|
}
|
|
30636
30636
|
};
|
|
30637
|
-
|
|
30637
|
+
sr.prototype.updateDiConnection = function(e, t, n) {
|
|
30638
30638
|
var r = ct(e), o = ct(t), s = ct(n);
|
|
30639
30639
|
r.sourceElement && r.sourceElement.bpmnElement !== Te(t) && (r.sourceElement = t && o), r.targetElement && r.targetElement.bpmnElement !== Te(n) && (r.targetElement = n && s);
|
|
30640
30640
|
};
|
|
30641
|
-
|
|
30641
|
+
sr.prototype.updateDiParent = function(e, t) {
|
|
30642
30642
|
if (t && !R(t, "bpmndi:BPMNPlane") && (t = t.$parent), e.$parent !== t) {
|
|
30643
30643
|
var n = (t || e.$parent).get("planeElement");
|
|
30644
30644
|
t ? (n.push(e), e.$parent = t) : (jt(n, e), e.$parent = null);
|
|
@@ -30649,11 +30649,11 @@ function qO(e) {
|
|
|
30649
30649
|
e = e.$parent;
|
|
30650
30650
|
return e;
|
|
30651
30651
|
}
|
|
30652
|
-
|
|
30652
|
+
sr.prototype.getLaneSet = function(e) {
|
|
30653
30653
|
var t, n;
|
|
30654
30654
|
return R(e, "bpmn:Lane") ? (t = e.childLaneSet, t || (t = this._bpmnFactory.create("bpmn:LaneSet"), e.childLaneSet = t, t.$parent = e), t) : (R(e, "bpmn:Participant") && (e = e.processRef), n = e.get("laneSets"), t = n[0], t || (t = this._bpmnFactory.create("bpmn:LaneSet"), t.$parent = e, n.push(t)), t);
|
|
30655
30655
|
};
|
|
30656
|
-
|
|
30656
|
+
sr.prototype.updateSemanticParent = function(e, t, n) {
|
|
30657
30657
|
var r, o = this._translate;
|
|
30658
30658
|
if (e.$parent !== t && !((R(e, "bpmn:DataInput") || R(e, "bpmn:DataOutput")) && (R(t, "bpmn:Participant") && "processRef" in t && (t = t.processRef), "ioSpecification" in t && t.ioSpecification === e.$parent))) {
|
|
30659
30659
|
if (R(e, "bpmn:Lane"))
|
|
@@ -30699,11 +30699,11 @@ ar.prototype.updateSemanticParent = function(e, t, n) {
|
|
|
30699
30699
|
}
|
|
30700
30700
|
}
|
|
30701
30701
|
};
|
|
30702
|
-
|
|
30702
|
+
sr.prototype.updateConnectionWaypoints = function(e) {
|
|
30703
30703
|
var t = ct(e);
|
|
30704
30704
|
t.set("waypoint", this._bpmnFactory.createDiWaypoints(e.waypoints));
|
|
30705
30705
|
};
|
|
30706
|
-
|
|
30706
|
+
sr.prototype.updateConnection = function(e) {
|
|
30707
30707
|
var t = e.connection, n = Te(t), r = t.source, o = Te(r), s = t.target, l = Te(t.target), u;
|
|
30708
30708
|
if (R(n, "bpmn:DataAssociation"))
|
|
30709
30709
|
R(n, "bpmn:DataInputAssociation") ? (n.get("sourceRef")[0] = o, u = e.parent || e.newParent || l, this.updateSemanticParent(n, l, u)) : R(n, "bpmn:DataOutputAssociation") && (u = e.parent || e.newParent || o, this.updateSemanticParent(n, o, u), n.targetRef = l);
|
|
@@ -30713,7 +30713,7 @@ ar.prototype.updateConnection = function(e) {
|
|
|
30713
30713
|
}
|
|
30714
30714
|
this.updateConnectionWaypoints(t), this.updateDiConnection(t, r, s);
|
|
30715
30715
|
};
|
|
30716
|
-
|
|
30716
|
+
sr.prototype._getLabel = function(e) {
|
|
30717
30717
|
return e.label || (e.label = this._bpmnFactory.createDiLabel()), e.label;
|
|
30718
30718
|
};
|
|
30719
30719
|
function br(e) {
|
|
@@ -31755,7 +31755,7 @@ pu.prototype.getVisualReferences = function(e) {
|
|
|
31755
31755
|
return R(e, "bpmn:DataObject") ? sI(e, t) : [];
|
|
31756
31756
|
};
|
|
31757
31757
|
function aI(e, t) {
|
|
31758
|
-
return
|
|
31758
|
+
return ir(t, function(n, r) {
|
|
31759
31759
|
return n[r] = e.get(r), n;
|
|
31760
31760
|
}, {});
|
|
31761
31761
|
}
|
|
@@ -31806,12 +31806,12 @@ function p1(e, t) {
|
|
|
31806
31806
|
}
|
|
31807
31807
|
function uI(e, t) {
|
|
31808
31808
|
var n = Yc(t), r = e.businessObject, o = ct(e);
|
|
31809
|
-
return
|
|
31809
|
+
return ir(n, function(s, l) {
|
|
31810
31810
|
return l !== c1 ? s[l] = r.get(l) : s[l] = cI(o, Yc(t.di)), s;
|
|
31811
31811
|
}, {});
|
|
31812
31812
|
}
|
|
31813
31813
|
function cI(e, t) {
|
|
31814
|
-
return
|
|
31814
|
+
return ir(t, function(n, r) {
|
|
31815
31815
|
return n[r] = e && e.get(r), n;
|
|
31816
31816
|
}, {});
|
|
31817
31817
|
}
|
|
@@ -32671,7 +32671,7 @@ const QI = {
|
|
|
32671
32671
|
e1
|
|
32672
32672
|
],
|
|
32673
32673
|
bpmnFactory: ["type", Ar],
|
|
32674
|
-
bpmnUpdater: ["type",
|
|
32674
|
+
bpmnUpdater: ["type", sr],
|
|
32675
32675
|
elementFactory: ["type", wo],
|
|
32676
32676
|
modeling: ["type", Pn],
|
|
32677
32677
|
layouter: ["type", Pm],
|
|
@@ -33373,7 +33373,7 @@ function w1(e) {
|
|
|
33373
33373
|
"connect.end"
|
|
33374
33374
|
], vB, function(t) {
|
|
33375
33375
|
var n = t.context, r = n.canExecute, o = n.start, s = n.hover, l = n.source, u = n.target;
|
|
33376
|
-
t.originalEvent &&
|
|
33376
|
+
t.originalEvent && cr(t.originalEvent) || (n.initialConnectionStart || (n.initialConnectionStart = n.connectionStart), r && s && bB(t, s, wB(s)), s && xB(r, [
|
|
33377
33377
|
"bpmn:Association",
|
|
33378
33378
|
"bpmn:DataInputAssociation",
|
|
33379
33379
|
"bpmn:DataOutputAssociation",
|
|
@@ -33485,7 +33485,7 @@ function si(e, t, n) {
|
|
|
33485
33485
|
"shape.move.end"
|
|
33486
33486
|
], TB, function(o) {
|
|
33487
33487
|
var s = o.context, l = s.shape, u = s.snapContext, c = s.target;
|
|
33488
|
-
if (!(o.originalEvent &&
|
|
33488
|
+
if (!(o.originalEvent && cr(o.originalEvent)) && !(ss(o) || !c)) {
|
|
33489
33489
|
var d = u.pointsForTarget(c);
|
|
33490
33490
|
d.initialized || (d = r.addSnapTargetPoints(d, l, c), d.initialized = !0), n.snap(o, d);
|
|
33491
33491
|
}
|
|
@@ -33654,7 +33654,7 @@ function vu(e, t) {
|
|
|
33654
33654
|
"resize.end"
|
|
33655
33655
|
], NB, function(r) {
|
|
33656
33656
|
var o = r.context, s = o.shape, l = s.parent, u = o.direction, c = o.snapContext;
|
|
33657
|
-
if (!(r.originalEvent &&
|
|
33657
|
+
if (!(r.originalEvent && cr(r.originalEvent)) && !ss(r)) {
|
|
33658
33658
|
var d = c.pointsForTarget(l);
|
|
33659
33659
|
d.initialized || (d = n.addSnapTargetPoints(d, s, l, u), d.initialized = !0), FB(u) && $t(r, "x", r.x), $B(u) && $t(r, "y", r.y), t.snap(r, d);
|
|
33660
33660
|
}
|
|
@@ -34605,7 +34605,7 @@ const On = {
|
|
|
34605
34605
|
documentation: [b]
|
|
34606
34606
|
}), t("save");
|
|
34607
34607
|
};
|
|
34608
|
-
return
|
|
34608
|
+
return rr(
|
|
34609
34609
|
() => e.id,
|
|
34610
34610
|
(d) => {
|
|
34611
34611
|
On.isNotBlank(d) && l();
|
|
@@ -34721,9 +34721,9 @@ const JB = /* @__PURE__ */ li(XB, [["render", ZB]]), QB = ni({
|
|
|
34721
34721
|
// { key: 2, label: '用户姓名', prop: 'nickName', visible: true },
|
|
34722
34722
|
// { key: 3, label: '部门', prop: ['dept', 'deptName'], visible: true }, // 注意:AntD 支持嵌套路径 ['dept', 'deptName']
|
|
34723
34723
|
// { key: 4, label: '手机号码', prop: 'phonenumber', visible: true, width: 120 },
|
|
34724
|
-
{ key: 0, label:
|
|
34725
|
-
{ key: 1, label:
|
|
34726
|
-
{ key:
|
|
34724
|
+
// { key: 0, label: '用户编号', prop: 'id', visible: true },
|
|
34725
|
+
// { key: 1, label: '登录账号', prop: 'user__username', visible: true },
|
|
34726
|
+
{ key: 1, label: "用户姓名", prop: `${v}`, visible: !0 }
|
|
34727
34727
|
]), y = sa(
|
|
34728
34728
|
() => m.value.filter((ge) => ge.visible)
|
|
34729
34729
|
), b = Be({
|
|
@@ -34764,13 +34764,13 @@ const JB = /* @__PURE__ */ li(XB, [["render", ZB]]), QB = ni({
|
|
|
34764
34764
|
const ge = await c.fetchUsers(b.value);
|
|
34765
34765
|
s.value = ge.data, l.value = ge.total, n.value = !1;
|
|
34766
34766
|
};
|
|
34767
|
-
return
|
|
34767
|
+
return rr(
|
|
34768
34768
|
() => e.selectValues,
|
|
34769
34769
|
(ge) => {
|
|
34770
34770
|
On.isNotBlank(ge) && (typeof ge == "number" ? B.value = ge : Array.isArray(ge) ? D.value = ge : typeof ge == "string" && (D.value = ge.split(",")));
|
|
34771
34771
|
},
|
|
34772
34772
|
{ immediate: !0 }
|
|
34773
|
-
),
|
|
34773
|
+
), rr(
|
|
34774
34774
|
() => s.value,
|
|
34775
34775
|
() => {
|
|
34776
34776
|
D.value.length > 0 && e.checkType === "multiple" && xl(() => {
|
|
@@ -34974,7 +34974,7 @@ function o3(e, t, n, r, o, s) {
|
|
|
34974
34974
|
])
|
|
34975
34975
|
]);
|
|
34976
34976
|
}
|
|
34977
|
-
const a3 = /* @__PURE__ */ li(QB, [["render", o3], ["__scopeId", "data-v-
|
|
34977
|
+
const a3 = /* @__PURE__ */ li(QB, [["render", o3], ["__scopeId", "data-v-e2973595"]]), s3 = ni({
|
|
34978
34978
|
name: "FlowRole",
|
|
34979
34979
|
props: {
|
|
34980
34980
|
selectValues: {
|
|
@@ -34999,13 +34999,13 @@ const a3 = /* @__PURE__ */ li(QB, [["render", o3], ["__scopeId", "data-v-477204b
|
|
|
34999
34999
|
pageSize: 5,
|
|
35000
35000
|
roleName: void 0
|
|
35001
35001
|
}), v = Be([]), m = Be(null);
|
|
35002
|
-
|
|
35002
|
+
rr(
|
|
35003
35003
|
() => e.selectValues,
|
|
35004
35004
|
(T) => {
|
|
35005
35005
|
On.isNotBlank(T) && (typeof T == "number" || typeof T == "string" ? m.value = T : Array.isArray(T) ? v.value = T.map((M) => M) : typeof T == "string" && (v.value = T.split(",").map((M) => M.trim()).filter(Boolean)));
|
|
35006
35006
|
},
|
|
35007
35007
|
{ immediate: !0 }
|
|
35008
|
-
),
|
|
35008
|
+
), rr(o, (T) => {
|
|
35009
35009
|
e.checkType === "multiple" && T.length > 0 && v.value.length > 0 && xl(() => {
|
|
35010
35010
|
});
|
|
35011
35011
|
});
|
|
@@ -35242,7 +35242,7 @@ const c3 = /* @__PURE__ */ li(s3, [["render", u3], ["__scopeId", "data-v-aef69da
|
|
|
35242
35242
|
}, _ = (S, A) => {
|
|
35243
35243
|
u.value.pageNum = 1, u.value.pageSize = A, d();
|
|
35244
35244
|
};
|
|
35245
|
-
return
|
|
35245
|
+
return rr(
|
|
35246
35246
|
() => e.selectValues,
|
|
35247
35247
|
(S) => {
|
|
35248
35248
|
On.isNotBlank(S) && (l.value = S);
|
|
@@ -35504,7 +35504,7 @@ const v3 = /* @__PURE__ */ li(f3, [["render", h3], ["__scopeId", "data-v-8afeeb4
|
|
|
35504
35504
|
}, re = () => {
|
|
35505
35505
|
d.value = !1;
|
|
35506
35506
|
};
|
|
35507
|
-
|
|
35507
|
+
rr(
|
|
35508
35508
|
() => e.id,
|
|
35509
35509
|
(ie) => {
|
|
35510
35510
|
On.isNotBlank(ie) && B();
|
|
@@ -35970,7 +35970,7 @@ const b3 = /* @__PURE__ */ li(m3, [["render", y3], ["__scopeId", "data-v-94b95e9
|
|
|
35970
35970
|
o.value = { ...k, type: "condition" }, o.value.resource ? (o.value.conditionType = "script", o.value.scriptType = "externalScript") : k.language ? (o.value.conditionType = "script", o.value.scriptType = "inlineScript") : o.value.conditionType = "expression";
|
|
35971
35971
|
}
|
|
35972
35972
|
};
|
|
35973
|
-
|
|
35973
|
+
rr(
|
|
35974
35974
|
() => e.id,
|
|
35975
35975
|
(B) => {
|
|
35976
35976
|
On.isNotBlank(B) && s();
|
|
@@ -36030,7 +36030,7 @@ const b3 = /* @__PURE__ */ li(m3, [["render", y3], ["__scopeId", "data-v-94b95e9
|
|
|
36030
36030
|
let B = m.value;
|
|
36031
36031
|
return b.value === "string" && (B = `"${m.value}"`), `\${${d.value}${v.value}${B}}`;
|
|
36032
36032
|
});
|
|
36033
|
-
return
|
|
36033
|
+
return rr(A, (B) => {
|
|
36034
36034
|
o.value.body = B, u();
|
|
36035
36035
|
}), {
|
|
36036
36036
|
bpmnFormData: o,
|
|
@@ -36532,7 +36532,7 @@ const A3 = ni({
|
|
|
36532
36532
|
// FormPanel,
|
|
36533
36533
|
},
|
|
36534
36534
|
setup() {
|
|
36535
|
-
const e = Be("common"), t = Be(""), n = Be(""), r = Be(!1), { modelerStore: o } = fa, s = () => {
|
|
36535
|
+
const e = Be(["common", "Task"]), t = Be(""), n = Be(""), r = Be(!1), { modelerStore: o } = fa, s = () => {
|
|
36536
36536
|
l();
|
|
36537
36537
|
}, l = () => {
|
|
36538
36538
|
if (u(null), !o.modeler) {
|
|
@@ -36551,8 +36551,10 @@ const A3 = ni({
|
|
|
36551
36551
|
let d = c;
|
|
36552
36552
|
d || (d = ((v = o.elRegistry) == null ? void 0 : v.find((y) => y.type === "bpmn:Process")) || ((m = o.elRegistry) == null ? void 0 : m.find((y) => y.type === "bpmn:Collaboration"))), d && (o.element = d, t.value = d.id, n.value = d.type.split(":")[1] || "", r.value = !!(n.value === "SequenceFlow" && d.source && d.source.type.indexOf("StartEvent") === -1));
|
|
36553
36553
|
};
|
|
36554
|
-
return
|
|
36555
|
-
e.value = "common";
|
|
36554
|
+
return rr(t, () => {
|
|
36555
|
+
e.value = ["common", "Task"];
|
|
36556
|
+
}), rr(r, () => {
|
|
36557
|
+
r.value && (e.value.find((d) => d == "condition") || e.value.push("condition"));
|
|
36556
36558
|
}), co(() => {
|
|
36557
36559
|
s();
|
|
36558
36560
|
}), {
|
|
@@ -36609,7 +36611,7 @@ function R3(e, t, n, r, o, s) {
|
|
|
36609
36611
|
}, 8, ["activeKey"])
|
|
36610
36612
|
]);
|
|
36611
36613
|
}
|
|
36612
|
-
const D3 = /* @__PURE__ */ li(A3, [["render", R3], ["__scopeId", "data-v-
|
|
36614
|
+
const D3 = /* @__PURE__ */ li(A3, [["render", R3], ["__scopeId", "data-v-d98523fa"]]);
|
|
36613
36615
|
function k3(e, t) {
|
|
36614
36616
|
return t = t || {}, e = S3[e] || e, e.replace(/{([^}]+)}/g, function(n, r) {
|
|
36615
36617
|
return t[r] || "{" + r + "}";
|
|
@@ -38603,7 +38605,7 @@ const z3 = {
|
|
|
38603
38605
|
console.warn("生成 XML 失败(可能模型不合法):", M);
|
|
38604
38606
|
}
|
|
38605
38607
|
}), r.value = T, l(T), On.isBlank(e.xml) ? d() : m(e.xml), xl(() => {
|
|
38606
|
-
|
|
38608
|
+
rr(
|
|
38607
38609
|
() => [e.processId, e.processName],
|
|
38608
38610
|
async (M) => {
|
|
38609
38611
|
console.log("watch process id");
|
|
@@ -38621,7 +38623,7 @@ const z3 = {
|
|
|
38621
38623
|
{ immediate: !0 }
|
|
38622
38624
|
);
|
|
38623
38625
|
});
|
|
38624
|
-
}),
|
|
38626
|
+
}), rr(
|
|
38625
38627
|
() => e.xml,
|
|
38626
38628
|
(T) => {
|
|
38627
38629
|
if (T === k) {
|
|
@@ -38896,13 +38898,13 @@ $i.prototype.css = function(e, t) {
|
|
|
38896
38898
|
function Q3(e, t) {
|
|
38897
38899
|
return t - (e.replace(/\(/g, "").length - e.replace(/\)/g, "").length);
|
|
38898
38900
|
}
|
|
38899
|
-
function
|
|
38901
|
+
function e5(e, t) {
|
|
38900
38902
|
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("~::~");
|
|
38901
38903
|
}
|
|
38902
38904
|
$i.prototype.sql = function(e, t) {
|
|
38903
38905
|
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 ? wf(t) : this.shift;
|
|
38904
38906
|
for (d = 0; d < r; d++)
|
|
38905
|
-
d % 2 ? o = o.concat(n[d]) : o = o.concat(
|
|
38907
|
+
d % 2 ? o = o.concat(n[d]) : o = o.concat(e5(n[d], l));
|
|
38906
38908
|
for (r = o.length, d = 0; d < r; d++)
|
|
38907
38909
|
u = Q3(o[d], u), /\s{0,}\s{0,}SELECT\s{0,}/.exec(o[d]) && (o[d] = o[d].replace(/\,/g, `,
|
|
38908
38910
|
` + l + l)), /\s{0,}\s{0,}SET\s{0,}/.exec(o[d]) && (o[d] = o[d].replace(/\,/g, `,
|
|
@@ -38924,10 +38926,10 @@ $i.prototype.cssmin = function(e, t) {
|
|
|
38924
38926
|
$i.prototype.sqlmin = function(e) {
|
|
38925
38927
|
return e.replace(/\s{1,}/g, " ").replace(/\s{1,}\(/, "(").replace(/\s{1,}\)/, ")");
|
|
38926
38928
|
};
|
|
38927
|
-
var
|
|
38928
|
-
const
|
|
38929
|
-
var
|
|
38930
|
-
const
|
|
38929
|
+
var t5 = new $i();
|
|
38930
|
+
const n5 = /* @__PURE__ */ us(t5);
|
|
38931
|
+
var r5 = DE();
|
|
38932
|
+
const i5 = /* @__PURE__ */ us(r5), o5 = ni({
|
|
38931
38933
|
name: "MyProcess",
|
|
38932
38934
|
props: {
|
|
38933
38935
|
value: {
|
|
@@ -39007,7 +39009,7 @@ const iF = /* @__PURE__ */ us(rF), oF = ni({
|
|
|
39007
39009
|
});
|
|
39008
39010
|
}, _ = (k) => {
|
|
39009
39011
|
try {
|
|
39010
|
-
l.value =
|
|
39012
|
+
l.value = n5.xml(k);
|
|
39011
39013
|
} catch (T) {
|
|
39012
39014
|
l.value = k, console.error("XML 格式化失败:", T);
|
|
39013
39015
|
}
|
|
@@ -39017,7 +39019,7 @@ const iF = /* @__PURE__ */ us(rF), oF = ni({
|
|
|
39017
39019
|
console.warn("Textarea not found for CodeMirror");
|
|
39018
39020
|
return;
|
|
39019
39021
|
}
|
|
39020
|
-
m.value.value = l.value, y =
|
|
39022
|
+
m.value.value = l.value, y = i5.fromTextArea(m.value, {
|
|
39021
39023
|
mode: "xml",
|
|
39022
39024
|
lineNumbers: !0,
|
|
39023
39025
|
readOnly: !0,
|
|
@@ -39056,10 +39058,10 @@ const iF = /* @__PURE__ */ us(rF), oF = ni({
|
|
|
39056
39058
|
};
|
|
39057
39059
|
}
|
|
39058
39060
|
});
|
|
39059
|
-
const
|
|
39060
|
-
function
|
|
39061
|
+
const a5 = { class: "my-process-main" }, s5 = { class: "xml-editor" }, l5 = { ref: "el" };
|
|
39062
|
+
function u5(e, t, n, r, o, s) {
|
|
39061
39063
|
const l = Se("bpmn-modeler"), u = Se("a-drawer");
|
|
39062
|
-
return Je(), In("div",
|
|
39064
|
+
return Je(), In("div", a5, [
|
|
39063
39065
|
oe(l, {
|
|
39064
39066
|
ref: "refNode",
|
|
39065
39067
|
xml: e.xml,
|
|
@@ -39090,15 +39092,15 @@ function uF(e, t, n, r, o, s) {
|
|
|
39090
39092
|
width: "700"
|
|
39091
39093
|
}, {
|
|
39092
39094
|
default: se(() => [
|
|
39093
|
-
wt("div",
|
|
39094
|
-
wt("textarea",
|
|
39095
|
+
wt("div", s5, [
|
|
39096
|
+
wt("textarea", l5, null, 512)
|
|
39095
39097
|
])
|
|
39096
39098
|
]),
|
|
39097
39099
|
_: 1
|
|
39098
39100
|
}, 8, ["open", "title", "onAfterOpenChange"])
|
|
39099
39101
|
]);
|
|
39100
39102
|
}
|
|
39101
|
-
const
|
|
39103
|
+
const b5 = /* @__PURE__ */ li(o5, [["render", u5], ["__scopeId", "data-v-40eaa288"]]);
|
|
39102
39104
|
var Lh = { exports: {} };
|
|
39103
39105
|
typeof Object.create == "function" ? Lh.exports = function(t, n) {
|
|
39104
39106
|
n && (t.super_ = n, t.prototype = Object.create(n.prototype, {
|
|
@@ -39117,14 +39119,14 @@ typeof Object.create == "function" ? Lh.exports = function(t, n) {
|
|
|
39117
39119
|
r.prototype = n.prototype, t.prototype = new r(), t.prototype.constructor = t;
|
|
39118
39120
|
}
|
|
39119
39121
|
};
|
|
39120
|
-
var
|
|
39121
|
-
const
|
|
39122
|
+
var c5 = Lh.exports;
|
|
39123
|
+
const p5 = /* @__PURE__ */ us(c5);
|
|
39122
39124
|
function Nm(e) {
|
|
39123
39125
|
$r.call(this, e);
|
|
39124
39126
|
}
|
|
39125
|
-
|
|
39127
|
+
p5(Nm, $r);
|
|
39126
39128
|
Nm.prototype._modules = [].concat($r.prototype._modules, [cv, lv]);
|
|
39127
|
-
const
|
|
39129
|
+
const f5 = ni({
|
|
39128
39130
|
name: "BpmnViewer",
|
|
39129
39131
|
props: {
|
|
39130
39132
|
flowData: {
|
|
@@ -39180,7 +39182,7 @@ const fF = ni({
|
|
|
39180
39182
|
});
|
|
39181
39183
|
};
|
|
39182
39184
|
return co(() => {
|
|
39183
|
-
|
|
39185
|
+
rr(
|
|
39184
39186
|
() => e.flowData,
|
|
39185
39187
|
(c) => {
|
|
39186
39188
|
!c || !c.xmlData || (n.value && n.value.destroy(), n.value = new Nm({
|
|
@@ -39200,13 +39202,13 @@ const fF = ni({
|
|
|
39200
39202
|
};
|
|
39201
39203
|
}
|
|
39202
39204
|
});
|
|
39203
|
-
const
|
|
39205
|
+
const d5 = { class: "containers" }, h5 = {
|
|
39204
39206
|
ref: "flowCanvasRef",
|
|
39205
39207
|
class: "canvas"
|
|
39206
39208
|
};
|
|
39207
|
-
function
|
|
39209
|
+
function v5(e, t, n, r, o, s) {
|
|
39208
39210
|
const l = Se("a-spin"), u = Se("DragOutlined"), c = Se("a-button"), d = Se("a-tooltip"), v = Se("ZoomInOutlined"), m = Se("ZoomOutOutlined"), y = Se("a-space"), b = Se("a-layout-content"), _ = Se("a-layout");
|
|
39209
|
-
return Je(), In("div",
|
|
39211
|
+
return Je(), In("div", d5, [
|
|
39210
39212
|
oe(_, { style: { "align-items": "stretch", height: "100%" } }, {
|
|
39211
39213
|
default: se(() => [
|
|
39212
39214
|
oe(b, { class: "flow-viewer" }, {
|
|
@@ -39222,7 +39224,7 @@ function vF(e, t, n, r, o, s) {
|
|
|
39222
39224
|
wrapperClassName: "canvas-wrapper"
|
|
39223
39225
|
}, {
|
|
39224
39226
|
default: se(() => [
|
|
39225
|
-
wt("div",
|
|
39227
|
+
wt("div", h5, null, 512)
|
|
39226
39228
|
]),
|
|
39227
39229
|
_: 1
|
|
39228
39230
|
}, 8, ["spinning"]),
|
|
@@ -39284,8 +39286,8 @@ function vF(e, t, n, r, o, s) {
|
|
|
39284
39286
|
})
|
|
39285
39287
|
]);
|
|
39286
39288
|
}
|
|
39287
|
-
const
|
|
39289
|
+
const E5 = /* @__PURE__ */ li(f5, [["render", v5]]);
|
|
39288
39290
|
export {
|
|
39289
|
-
|
|
39290
|
-
|
|
39291
|
+
b5 as MyProcess,
|
|
39292
|
+
E5 as MyProcessViewer
|
|
39291
39293
|
};
|