lyflowchart 1.0.30 → 1.0.31
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 +294 -308
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ni, reactive as Wc, watch as rr, onMounted as ho, resolveComponent as Se, openBlock as
|
|
1
|
+
import { defineComponent as ni, reactive as Wc, watch as rr, onMounted as ho, resolveComponent as Se, openBlock as Ke, createBlock as ht, withCtx as se, createVNode as oe, createCommentVNode as pn, ref as Fe, inject as Oh, computed as ao, nextTick as Cl, createElementBlock as cn, createElementVNode as wt, withDirectives as Uc, createTextVNode as tt, vShow as Gc, Fragment as ro, renderList as ua, withKeys as wC, toDisplayString as io, 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 : {};
|
|
@@ -266,10 +266,10 @@ function DE() {
|
|
|
266
266
|
rt == "+" && Le == "1" && V[ze + 1] == "1" ? V[ze] = "1" : rt == "," && Le == V[ze + 1] && (Le == "1" || Le == "n") && (V[ze] = Le), Le = rt;
|
|
267
267
|
}
|
|
268
268
|
for (var _t = 0; _t < q; ++_t) {
|
|
269
|
-
var
|
|
270
|
-
if (
|
|
269
|
+
var an = V[_t];
|
|
270
|
+
if (an == ",")
|
|
271
271
|
V[_t] = "N";
|
|
272
|
-
else if (
|
|
272
|
+
else if (an == "%") {
|
|
273
273
|
var Mt = void 0;
|
|
274
274
|
for (Mt = _t + 1; Mt < q && V[Mt] == "%"; ++Mt)
|
|
275
275
|
;
|
|
@@ -291,26 +291,26 @@ function DE() {
|
|
|
291
291
|
V[Ji] = Xa;
|
|
292
292
|
tn = Kt - 1;
|
|
293
293
|
}
|
|
294
|
-
for (var Cn = [], Vr,
|
|
295
|
-
if (E.test(V[
|
|
296
|
-
var gd =
|
|
297
|
-
for (++
|
|
294
|
+
for (var Cn = [], Vr, sn = 0; sn < q; )
|
|
295
|
+
if (E.test(V[sn])) {
|
|
296
|
+
var gd = sn;
|
|
297
|
+
for (++sn; sn < q && E.test(V[sn]); ++sn)
|
|
298
298
|
;
|
|
299
|
-
Cn.push(new w(0, gd,
|
|
299
|
+
Cn.push(new w(0, gd, sn));
|
|
300
300
|
} else {
|
|
301
|
-
var yi =
|
|
302
|
-
for (++
|
|
301
|
+
var yi = sn, Qo = Cn.length, ea = O == "rtl" ? 1 : 0;
|
|
302
|
+
for (++sn; sn < q && V[sn] != "L"; ++sn)
|
|
303
303
|
;
|
|
304
|
-
for (var Ln = yi; Ln <
|
|
304
|
+
for (var Ln = yi; Ln < sn; )
|
|
305
305
|
if (x.test(V[Ln])) {
|
|
306
306
|
yi < Ln && (Cn.splice(Qo, 0, new w(1, yi, Ln)), Qo += ea);
|
|
307
307
|
var Za = Ln;
|
|
308
|
-
for (++Ln; Ln <
|
|
308
|
+
for (++Ln; Ln < sn && x.test(V[Ln]); ++Ln)
|
|
309
309
|
;
|
|
310
310
|
Cn.splice(Qo, 0, new w(2, Za, Ln)), Qo += ea, yi = Ln;
|
|
311
311
|
} else
|
|
312
312
|
++Ln;
|
|
313
|
-
yi <
|
|
313
|
+
yi < sn && Cn.splice(Qo, 0, new w(1, yi, sn));
|
|
314
314
|
}
|
|
315
315
|
return O == "ltr" && (Cn[0].level == 1 && (Vr = P.match(/^\s+/)) && (Cn[0].from = Vr[0].length, Cn.unshift(new w(0, 0, Vr[0].length))), Me(Cn).level == 1 && (Vr = P.match(/\s+$/)) && (Me(Cn).to -= Vr[0].length, Cn.push(new w(0, q - Vr[0].length, q)))), O == "rtl" ? Cn.reverse() : Cn;
|
|
316
316
|
};
|
|
@@ -606,7 +606,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
606
606
|
for (var p = i; p; p = p.parent)
|
|
607
607
|
p.height += f;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function dt(i) {
|
|
610
610
|
if (i.parent == null)
|
|
611
611
|
return null;
|
|
612
612
|
for (var a = i.parent, f = Ie(a.lines, i), p = a.parent; p; a = p, p = p.parent)
|
|
@@ -742,7 +742,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
742
742
|
}
|
|
743
743
|
function N(i, a, f) {
|
|
744
744
|
if (!a.styles || a.styles[0] != i.state.modeGen) {
|
|
745
|
-
var p = L(i,
|
|
745
|
+
var p = L(i, dt(a)), h = a.text.length > i.options.maxHighlightLength && vr(i.doc.mode, p.state), g = Au(i, a, p);
|
|
746
746
|
h && (p.state = h), a.stateAfter = p.save(!h), a.styles = g.styles, g.classes ? a.styleClasses = g.classes : a.styleClasses && (a.styleClasses = null), f === i.doc.highlightFrontier && (i.doc.modeFrontier = Math.max(i.doc.modeFrontier, ++i.doc.highlightFrontier));
|
|
747
747
|
}
|
|
748
748
|
return a.styles;
|
|
@@ -1050,7 +1050,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
function Df(i, a) {
|
|
1052
1052
|
var f = Pe(i, a), p = Rr(f);
|
|
1053
|
-
return f == p ? a :
|
|
1053
|
+
return f == p ? a : dt(p);
|
|
1054
1054
|
}
|
|
1055
1055
|
function zm(i, a) {
|
|
1056
1056
|
if (a > i.lastLine())
|
|
@@ -1060,7 +1060,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1060
1060
|
return a;
|
|
1061
1061
|
for (; p = ku(f); )
|
|
1062
1062
|
f = p.find(1, !0).line;
|
|
1063
|
-
return
|
|
1063
|
+
return dt(f) + 1;
|
|
1064
1064
|
}
|
|
1065
1065
|
function Ui(i, a) {
|
|
1066
1066
|
var f = di && a.markedSpans;
|
|
@@ -1126,7 +1126,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1126
1126
|
this.text = i, Bm(this, a), this.height = f ? f(this) : 1;
|
|
1127
1127
|
};
|
|
1128
1128
|
Na.prototype.lineNo = function() {
|
|
1129
|
-
return
|
|
1129
|
+
return dt(this);
|
|
1130
1130
|
}, Hi(Na);
|
|
1131
1131
|
function B1(i, a, f, p) {
|
|
1132
1132
|
i.text = a, i.stateAfter && (i.stateAfter = null), i.styles && (i.styles = null), i.order != null && (i.order = null), Im(i), Bm(i, f);
|
|
@@ -1157,7 +1157,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1157
1157
|
for (var h = 0; h <= (a.rest ? a.rest.length : 0); h++) {
|
|
1158
1158
|
var g = h ? a.rest[h - 1] : a.line, E = void 0;
|
|
1159
1159
|
p.pos = 0, p.addToken = j1, xu(i.display.measure) && (E = Pr(g, i.doc.direction)) && (p.addToken = U1(p.addToken, E)), p.map = [];
|
|
1160
|
-
var x = a != i.display.externalMeasured &&
|
|
1160
|
+
var x = a != i.display.externalMeasured && dt(g);
|
|
1161
1161
|
G1(g, p, N(i, g, x)), g.styleClasses && (g.styleClasses.bgClass && (p.bgClass = U(g.styleClasses.bgClass, p.bgClass || "")), g.styleClasses.textClass && (p.textClass = U(g.styleClasses.textClass, p.textClass || ""))), p.map.length == 0 && p.map.push(0, 0, p.content.appendChild(ks(i.display.measure))), h == 0 ? (a.measure.map = p.map, a.measure.cache = {}) : ((a.measure.maps || (a.measure.maps = [])).push(p.map), (a.measure.caches || (a.measure.caches = [])).push({}));
|
|
1162
1162
|
}
|
|
1163
1163
|
if (v) {
|
|
@@ -1257,8 +1257,8 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1257
1257
|
Le.from > w && V > Le.from && (V = Le.from);
|
|
1258
1258
|
}
|
|
1259
1259
|
if (Ae)
|
|
1260
|
-
for (var
|
|
1261
|
-
Ae[
|
|
1260
|
+
for (var an = 0; an < Ae.length; an += 2)
|
|
1261
|
+
Ae[an + 1] == V && (le += " " + Ae[an]);
|
|
1262
1262
|
if (!be || be.from == w)
|
|
1263
1263
|
for (var Mt = 0; Mt < Ee.length; ++Mt)
|
|
1264
1264
|
Um(a, 0, Ee[Mt]);
|
|
@@ -1301,7 +1301,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
function Gm(i, a, f) {
|
|
1304
|
-
this.line = a, this.rest = I1(a), this.size = this.rest ?
|
|
1304
|
+
this.line = a, this.rest = I1(a), this.size = this.rest ? dt(Me(this.rest)) - f + 1 : 1, this.node = this.text = null, this.hidden = Ui(i, a);
|
|
1305
1305
|
}
|
|
1306
1306
|
function Nu(i, a, f) {
|
|
1307
1307
|
for (var p = [], h, g = a; g < f; g = h) {
|
|
@@ -1340,7 +1340,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
var Os = null;
|
|
1343
|
-
function
|
|
1343
|
+
function nn(i, a) {
|
|
1344
1344
|
var f = Rs(i, a);
|
|
1345
1345
|
if (f.length) {
|
|
1346
1346
|
var p = Array.prototype.slice.call(arguments, 2), h;
|
|
@@ -1442,7 +1442,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1442
1442
|
if (a.widgets)
|
|
1443
1443
|
for (var g = Is(f), E = 0, x = a.widgets; E < x.length; ++E) {
|
|
1444
1444
|
var w = x[E], P = Y("div", [w.node], "CodeMirror-linewidget" + (w.className ? " " + w.className : ""));
|
|
1445
|
-
w.handleMouseEvents || P.setAttribute("cm-ignore-events", "true"), eS(w, P, f, p), i.display.input.setUneditable(P), h && w.above ? g.insertBefore(P, f.gutter || f.text) : g.appendChild(P),
|
|
1445
|
+
w.handleMouseEvents || P.setAttribute("cm-ignore-events", "true"), eS(w, P, f, p), i.display.input.setUneditable(P), h && w.above ? g.insertBefore(P, f.gutter || f.text) : g.appendChild(P), nn(w, "redraw");
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
1448
|
function eS(i, a, f, p) {
|
|
@@ -1513,13 +1513,13 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1513
1513
|
if (i.rest[p] == a)
|
|
1514
1514
|
return { map: i.measure.maps[p], cache: i.measure.caches[p] };
|
|
1515
1515
|
for (var h = 0; h < i.rest.length; h++)
|
|
1516
|
-
if (
|
|
1516
|
+
if (dt(i.rest[h]) > f)
|
|
1517
1517
|
return { map: i.measure.maps[h], cache: i.measure.caches[h], before: !0 };
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
function nS(i, a) {
|
|
1521
1521
|
a = Rr(a);
|
|
1522
|
-
var f =
|
|
1522
|
+
var f = dt(a), p = i.display.externalMeasured = new Gm(i.doc, a, f);
|
|
1523
1523
|
p.lineN = f;
|
|
1524
1524
|
var h = p.built = Wm(i, p);
|
|
1525
1525
|
return p.text = h.pre, me(i.display.lineMeasure, h.pre), p;
|
|
@@ -1535,7 +1535,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1535
1535
|
return f;
|
|
1536
1536
|
}
|
|
1537
1537
|
function Oa(i, a) {
|
|
1538
|
-
var f =
|
|
1538
|
+
var f = dt(a), p = If(i, f);
|
|
1539
1539
|
p && !p.text ? p = null : p && p.changes && (Vm(i, p, f, zf(i)), i.curOp.forceUpdate = !0), p || (p = nS(i, a));
|
|
1540
1540
|
var h = Jm(p, a, f);
|
|
1541
1541
|
return {
|
|
@@ -1995,7 +1995,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
1995
1995
|
height: ` + (Le - Ae) + "px"));
|
|
1996
1996
|
}
|
|
1997
1997
|
function $(Ee, Ae, ze) {
|
|
1998
|
-
var Le = Pe(h, Ee), rt = Le.text.length, _t,
|
|
1998
|
+
var Le = Pe(h, Ee), rt = Le.text.length, _t, an;
|
|
1999
1999
|
function Mt(Vt, Un) {
|
|
2000
2000
|
return Iu(i, de(Ee, Vt), "div", Le, Un);
|
|
2001
2001
|
}
|
|
@@ -2007,14 +2007,14 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2007
2007
|
return Sf(Wn, Ae || 0, ze ?? rt, function(Vt, Un, gn, tn) {
|
|
2008
2008
|
var Kt = gn == "ltr", Lt = Mt(Vt, Kt ? "left" : "right"), Gn = Mt(Un - 1, Kt ? "right" : "left"), Xa = Ae == null && Vt == 0, Ji = ze == null && Un == rt, Cn = tn == 0, Vr = !Wn || tn == Wn.length - 1;
|
|
2009
2009
|
if (Gn.top - Lt.top <= 3) {
|
|
2010
|
-
var
|
|
2010
|
+
var sn = (P ? Xa : Ji) && Cn, gd = (P ? Ji : Xa) && Vr, yi = sn ? x : (Kt ? Lt : Gn).left, Qo = gd ? w : (Kt ? Gn : Lt).right;
|
|
2011
2011
|
O(yi, Lt.top, Qo - yi, Lt.bottom);
|
|
2012
2012
|
} else {
|
|
2013
2013
|
var ea, Ln, Za, yd;
|
|
2014
2014
|
Kt ? (ea = P && Xa && Cn ? x : Lt.left, Ln = P ? w : er(Vt, gn, "before"), Za = P ? x : er(Un, gn, "after"), yd = P && Ji && Vr ? w : Gn.right) : (ea = P ? er(Vt, gn, "before") : x, Ln = !P && Xa && Cn ? w : Lt.right, Za = !P && Ji && Vr ? x : Gn.left, yd = P ? er(Un, gn, "after") : w), O(ea, Lt.top, Ln - ea, Lt.bottom), Lt.bottom < Gn.top && O(x, Lt.bottom, null, Gn.top), O(Za, Gn.top, yd - Za, Gn.bottom);
|
|
2015
2015
|
}
|
|
2016
|
-
(!_t || Fu(Lt, _t) < 0) && (_t = Lt), Fu(Gn, _t) < 0 && (_t = Gn), (!
|
|
2017
|
-
}), { start: _t, end:
|
|
2016
|
+
(!_t || Fu(Lt, _t) < 0) && (_t = Lt), Fu(Gn, _t) < 0 && (_t = Gn), (!an || Fu(Lt, an) < 0) && (an = Lt), Fu(Gn, an) < 0 && (an = Gn);
|
|
2017
|
+
}), { start: _t, end: an };
|
|
2018
2018
|
}
|
|
2019
2019
|
var q = a.from(), V = a.to();
|
|
2020
2020
|
if (q.line == V.line)
|
|
@@ -2373,7 +2373,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2373
2373
|
Jo(i);
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function rn(i, a) {
|
|
2377
2377
|
return function() {
|
|
2378
2378
|
if (i.curOp)
|
|
2379
2379
|
return a.apply(i, arguments);
|
|
@@ -2397,7 +2397,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
};
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function on(i) {
|
|
2401
2401
|
return function() {
|
|
2402
2402
|
var a = this.cm;
|
|
2403
2403
|
if (!a || a.curOp)
|
|
@@ -2534,7 +2534,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2534
2534
|
}
|
|
2535
2535
|
function Jf(i) {
|
|
2536
2536
|
var a = i.gutters.offsetWidth;
|
|
2537
|
-
i.sizer.style.marginLeft = a + "px",
|
|
2537
|
+
i.sizer.style.marginLeft = a + "px", nn(i, "gutterChanged", i);
|
|
2538
2538
|
}
|
|
2539
2539
|
function Qf(i, a) {
|
|
2540
2540
|
i.display.sizer.style.minHeight = a.docHeight + "px", i.display.heightForcer.style.top = a.docHeight + "px", i.display.gutters.style.height = a.docHeight + i.display.barHeight + Ur(i) + "px";
|
|
@@ -2760,7 +2760,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2760
2760
|
return f ? f[we] : null;
|
|
2761
2761
|
}
|
|
2762
2762
|
function g(we, Ee, Ae) {
|
|
2763
|
-
B1(we, Ee, Ae, p),
|
|
2763
|
+
B1(we, Ee, Ae, p), nn(we, "change", we, a);
|
|
2764
2764
|
}
|
|
2765
2765
|
function E(we, Ee) {
|
|
2766
2766
|
for (var Ae = [], ze = we; ze < Ee; ++ze)
|
|
@@ -2787,7 +2787,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2787
2787
|
var be = E(1, P.length - 1);
|
|
2788
2788
|
ne > 1 && i.remove(x.line + 1, ne - 1), i.insert(x.line + 1, be);
|
|
2789
2789
|
}
|
|
2790
|
-
|
|
2790
|
+
nn(i, "change", i, a);
|
|
2791
2791
|
}
|
|
2792
2792
|
function qi(i, a, f) {
|
|
2793
2793
|
function p(h, g, E) {
|
|
@@ -2984,7 +2984,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
2984
2984
|
Fg(i, Hg(i, a, p, !0)), !(f && f.scroll === !1) && i.cm && i.cm.getOption("readOnly") != "nocursor" && $a(i.cm);
|
|
2985
2985
|
}
|
|
2986
2986
|
function Fg(i, a) {
|
|
2987
|
-
a.equals(i.sel) || (i.sel = a, i.cm && (i.cm.curOp.updateInput = 1, i.cm.curOp.selectionChanged = !0, bu(i.cm)),
|
|
2987
|
+
a.equals(i.sel) || (i.sel = a, i.cm && (i.cm.curOp.updateInput = 1, i.cm.curOp.selectionChanged = !0, bu(i.cm)), nn(i, "cursorActivity", i));
|
|
2988
2988
|
}
|
|
2989
2989
|
function $g(i) {
|
|
2990
2990
|
Fg(i, Hg(i, i.sel, null, !1));
|
|
@@ -3049,7 +3049,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3049
3049
|
function Wa(i, a, f) {
|
|
3050
3050
|
if (i.cm) {
|
|
3051
3051
|
if (!i.cm.curOp)
|
|
3052
|
-
return
|
|
3052
|
+
return rn(i.cm, Wa)(i, a, f);
|
|
3053
3053
|
if (i.cm.state.suppressEdits)
|
|
3054
3054
|
return;
|
|
3055
3055
|
}
|
|
@@ -3125,7 +3125,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
function Ks(i, a, f, p) {
|
|
3127
3127
|
if (i.cm && !i.cm.curOp)
|
|
3128
|
-
return
|
|
3128
|
+
return rn(i.cm, Ks)(i, a, f, p);
|
|
3129
3129
|
if (a.to.line < i.first) {
|
|
3130
3130
|
Gg(i, a.text.length - 1 - (a.to.line - a.from.line));
|
|
3131
3131
|
return;
|
|
@@ -3151,7 +3151,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3151
3151
|
}
|
|
3152
3152
|
function BS(i, a, f) {
|
|
3153
3153
|
var p = i.doc, h = i.display, g = a.from, E = a.to, x = !1, w = g.line;
|
|
3154
|
-
i.options.lineWrapping || (w =
|
|
3154
|
+
i.options.lineWrapping || (w = dt(Rr(Pe(p, g.line))), p.iter(w, E.line + 1, function(V) {
|
|
3155
3155
|
if (V == h.maxLine)
|
|
3156
3156
|
return x = !0, !0;
|
|
3157
3157
|
})), p.sel.contains(a.from, a.to) > -1 && bu(i), rd(p, a, f, cg(i)), i.options.lineWrapping || (p.iter(w, g.line + a.text.length, function(V) {
|
|
@@ -3169,7 +3169,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3169
3169
|
removed: a.removed,
|
|
3170
3170
|
origin: a.origin
|
|
3171
3171
|
};
|
|
3172
|
-
$ &&
|
|
3172
|
+
$ && nn(i, "change", i, q), O && (i.curOp.changeObjs || (i.curOp.changeObjs = [])).push(q);
|
|
3173
3173
|
}
|
|
3174
3174
|
i.display.selForContextMenu = null;
|
|
3175
3175
|
}
|
|
@@ -3207,7 +3207,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3207
3207
|
}
|
|
3208
3208
|
function Ys(i, a, f, p) {
|
|
3209
3209
|
var h = a, g = a;
|
|
3210
|
-
return typeof a == "number" ? g = Pe(i, mr(i, a)) : h =
|
|
3210
|
+
return typeof a == "number" ? g = Pe(i, mr(i, a)) : h = dt(a), h == null ? null : (p(g, h) && i.cm && Gi(i.cm, h, f), g);
|
|
3211
3211
|
}
|
|
3212
3212
|
function qs(i) {
|
|
3213
3213
|
this.lines = i, this.parent = null;
|
|
@@ -3223,7 +3223,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3223
3223
|
removeInner: function(i, a) {
|
|
3224
3224
|
for (var f = i, p = i + a; f < p; ++f) {
|
|
3225
3225
|
var h = this.lines[f];
|
|
3226
|
-
this.height -= h.height, F1(h),
|
|
3226
|
+
this.height -= h.height, F1(h), nn(h, "delete");
|
|
3227
3227
|
}
|
|
3228
3228
|
this.lines.splice(i, a);
|
|
3229
3229
|
},
|
|
@@ -3336,7 +3336,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3336
3336
|
this.doc = i, this.node = a;
|
|
3337
3337
|
};
|
|
3338
3338
|
Zs.prototype.clear = function() {
|
|
3339
|
-
var i = this.doc.cm, a = this.line.widgets, f = this.line, p =
|
|
3339
|
+
var i = this.doc.cm, a = this.line.widgets, f = this.line, p = dt(f);
|
|
3340
3340
|
if (!(p == null || !a)) {
|
|
3341
3341
|
for (var h = 0; h < a.length; ++h)
|
|
3342
3342
|
a[h] == this && a.splice(h--, 1);
|
|
@@ -3344,14 +3344,14 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3344
3344
|
var g = Bs(this);
|
|
3345
3345
|
Qt(f, Math.max(0, f.height - g)), i && (Qn(i, function() {
|
|
3346
3346
|
qg(i, f, -g), Gi(i, p, "widget");
|
|
3347
|
-
}),
|
|
3347
|
+
}), nn(i, "lineWidgetCleared", i, this, p));
|
|
3348
3348
|
}
|
|
3349
3349
|
}, Zs.prototype.changed = function() {
|
|
3350
3350
|
var i = this, a = this.height, f = this.doc.cm, p = this.line;
|
|
3351
3351
|
this.height = null;
|
|
3352
3352
|
var h = Bs(this) - a;
|
|
3353
3353
|
h && (Ui(this.doc, p) || Qt(p, p.height + h), f && Qn(f, function() {
|
|
3354
|
-
f.curOp.forceUpdate = !0, qg(f, p, h),
|
|
3354
|
+
f.curOp.forceUpdate = !0, qg(f, p, h), nn(f, "lineWidgetChanged", f, i, dt(p));
|
|
3355
3355
|
}));
|
|
3356
3356
|
}, Hi(Zs);
|
|
3357
3357
|
function qg(i, a, f) {
|
|
@@ -3366,7 +3366,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3366
3366
|
Qt(E, E.height + Bs(h)), w && qf(g, h.height), g.curOp.forceUpdate = !0;
|
|
3367
3367
|
}
|
|
3368
3368
|
return !0;
|
|
3369
|
-
}), g &&
|
|
3369
|
+
}), g && nn(g, "lineWidgetAdded", g, h, typeof a == "number" ? a : dt(a)), h;
|
|
3370
3370
|
}
|
|
3371
3371
|
var Xg = 0, Xi = function(i, a) {
|
|
3372
3372
|
this.lines = [], this.type = a, this.doc = i, this.id = ++Xg;
|
|
@@ -3376,40 +3376,40 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3376
3376
|
var i = this.doc.cm, a = i && !i.curOp;
|
|
3377
3377
|
if (a && Zo(i), Xn(this, "clear")) {
|
|
3378
3378
|
var f = this.find();
|
|
3379
|
-
f &&
|
|
3379
|
+
f && nn(this, "clear", f.from, f.to);
|
|
3380
3380
|
}
|
|
3381
3381
|
for (var p = null, h = null, g = 0; g < this.lines.length; ++g) {
|
|
3382
3382
|
var E = this.lines[g], x = Ls(E.markedSpans, this);
|
|
3383
|
-
i && !this.collapsed ? Gi(i,
|
|
3383
|
+
i && !this.collapsed ? Gi(i, dt(E), "text") : i && (x.to != null && (h = dt(E)), x.from != null && (p = dt(E))), E.markedSpans = R1(E.markedSpans, x), x.from == null && this.collapsed && !Ui(this.doc, E) && i && Qt(E, Ia(i.display));
|
|
3384
3384
|
}
|
|
3385
3385
|
if (i && this.collapsed && !i.options.lineWrapping)
|
|
3386
3386
|
for (var w = 0; w < this.lines.length; ++w) {
|
|
3387
3387
|
var P = Rr(this.lines[w]), O = Mu(P);
|
|
3388
3388
|
O > i.display.maxLineLength && (i.display.maxLine = P, i.display.maxLineLength = O, i.display.maxLineChanged = !0);
|
|
3389
3389
|
}
|
|
3390
|
-
p != null && i && this.collapsed && zn(i, p, h + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, i && $g(i.doc)), i &&
|
|
3390
|
+
p != null && i && this.collapsed && zn(i, p, h + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, i && $g(i.doc)), i && nn(i, "markerCleared", i, this, p, h), a && Jo(i), this.parent && this.parent.clear();
|
|
3391
3391
|
}
|
|
3392
3392
|
}, Xi.prototype.find = function(i, a) {
|
|
3393
3393
|
i == null && this.type == "bookmark" && (i = 1);
|
|
3394
3394
|
for (var f, p, h = 0; h < this.lines.length; ++h) {
|
|
3395
3395
|
var g = this.lines[h], E = Ls(g.markedSpans, this);
|
|
3396
|
-
if (E.from != null && (f = de(a ? g :
|
|
3396
|
+
if (E.from != null && (f = de(a ? g : dt(g), E.from), i == -1))
|
|
3397
3397
|
return f;
|
|
3398
|
-
if (E.to != null && (p = de(a ? g :
|
|
3398
|
+
if (E.to != null && (p = de(a ? g : dt(g), E.to), i == 1))
|
|
3399
3399
|
return p;
|
|
3400
3400
|
}
|
|
3401
3401
|
return f && { from: f, to: p };
|
|
3402
3402
|
}, Xi.prototype.changed = function() {
|
|
3403
3403
|
var i = this, a = this.find(-1, !0), f = this, p = this.doc.cm;
|
|
3404
3404
|
!a || !p || Qn(p, function() {
|
|
3405
|
-
var h = a.line, g =
|
|
3405
|
+
var h = a.line, g = dt(a.line), E = If(p, g);
|
|
3406
3406
|
if (E && (ng(E), p.curOp.selectionChanged = p.curOp.forceUpdate = !0), p.curOp.updateMaxLine = !0, !Ui(f.doc, h) && f.height != null) {
|
|
3407
3407
|
var x = f.height;
|
|
3408
3408
|
f.height = null;
|
|
3409
3409
|
var w = Bs(f) - x;
|
|
3410
3410
|
w && Qt(h, h.height + w);
|
|
3411
3411
|
}
|
|
3412
|
-
|
|
3412
|
+
nn(p, "markerChanged", p, i);
|
|
3413
3413
|
});
|
|
3414
3414
|
}, Xi.prototype.attachLine = function(i) {
|
|
3415
3415
|
if (!this.lines.length && this.doc.cm) {
|
|
@@ -3427,7 +3427,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3427
3427
|
if (p && p.shared)
|
|
3428
3428
|
return $S(i, a, f, p, h);
|
|
3429
3429
|
if (i.cm && !i.cm.curOp)
|
|
3430
|
-
return
|
|
3430
|
+
return rn(i.cm, Ga)(i, a, f, p, h);
|
|
3431
3431
|
var g = new Xi(i, h), E = Xe(a, f);
|
|
3432
3432
|
if (p && ie(p, g, !1), E > 0 || E == 0 && g.clearWhenEmpty !== !1)
|
|
3433
3433
|
return g;
|
|
@@ -3454,7 +3454,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3454
3454
|
else if (g.className || g.startStyle || g.endStyle || g.css || g.attributes || g.title)
|
|
3455
3455
|
for (var O = a.line; O <= f.line; O++)
|
|
3456
3456
|
Gi(w, O, "text");
|
|
3457
|
-
g.atomic && $g(w.doc),
|
|
3457
|
+
g.atomic && $g(w.doc), nn(w, "markerAdded", w, g);
|
|
3458
3458
|
}
|
|
3459
3459
|
return g;
|
|
3460
3460
|
}
|
|
@@ -3468,7 +3468,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3468
3468
|
this.explicitlyCleared = !0;
|
|
3469
3469
|
for (var i = 0; i < this.markers.length; ++i)
|
|
3470
3470
|
this.markers[i].clear();
|
|
3471
|
-
|
|
3471
|
+
nn(this, "clear");
|
|
3472
3472
|
}
|
|
3473
3473
|
}, Js.prototype.find = function(i, a) {
|
|
3474
3474
|
return this.primary.find(i, a);
|
|
@@ -3542,7 +3542,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3542
3542
|
var a = Jn(this, this.first, this.first + this.size);
|
|
3543
3543
|
return i === !1 ? a : a.join(i || this.lineSeparator());
|
|
3544
3544
|
},
|
|
3545
|
-
setValue:
|
|
3545
|
+
setValue: on(function(i) {
|
|
3546
3546
|
var a = de(this.first, 0), f = this.first + this.size - 1;
|
|
3547
3547
|
Wa(this, {
|
|
3548
3548
|
from: a,
|
|
@@ -3568,7 +3568,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3568
3568
|
return Pe(this, i);
|
|
3569
3569
|
},
|
|
3570
3570
|
getLineNumber: function(i) {
|
|
3571
|
-
return
|
|
3571
|
+
return dt(i);
|
|
3572
3572
|
},
|
|
3573
3573
|
getLineHandleVisualStart: function(i) {
|
|
3574
3574
|
return typeof i == "number" && (i = Pe(this, i)), Rr(i);
|
|
@@ -3595,23 +3595,23 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3595
3595
|
somethingSelected: function() {
|
|
3596
3596
|
return this.sel.somethingSelected();
|
|
3597
3597
|
},
|
|
3598
|
-
setCursor:
|
|
3598
|
+
setCursor: on(function(i, a, f) {
|
|
3599
3599
|
Ig(this, Ze(this, typeof i == "number" ? de(i, a || 0) : i), null, f);
|
|
3600
3600
|
}),
|
|
3601
|
-
setSelection:
|
|
3601
|
+
setSelection: on(function(i, a, f) {
|
|
3602
3602
|
Ig(this, Ze(this, i), Ze(this, a || i), f);
|
|
3603
3603
|
}),
|
|
3604
|
-
extendSelection:
|
|
3604
|
+
extendSelection: on(function(i, a, f) {
|
|
3605
3605
|
Vu(this, Ze(this, i), a && Ze(this, a), f);
|
|
3606
3606
|
}),
|
|
3607
|
-
extendSelections:
|
|
3607
|
+
extendSelections: on(function(i, a) {
|
|
3608
3608
|
Og(this, Ma(this, i), a);
|
|
3609
3609
|
}),
|
|
3610
|
-
extendSelectionsBy:
|
|
3610
|
+
extendSelectionsBy: on(function(i, a) {
|
|
3611
3611
|
var f = Dt(this.sel.ranges, i);
|
|
3612
3612
|
Og(this, Ma(this, f), a);
|
|
3613
3613
|
}),
|
|
3614
|
-
setSelections:
|
|
3614
|
+
setSelections: on(function(i, a, f) {
|
|
3615
3615
|
if (i.length) {
|
|
3616
3616
|
for (var p = [], h = 0; h < i.length; h++)
|
|
3617
3617
|
p[h] = new vt(
|
|
@@ -3621,7 +3621,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3621
3621
|
a == null && (a = Math.min(i.length - 1, this.sel.primIndex)), Sn(this, kr(this.cm, p, a), f);
|
|
3622
3622
|
}
|
|
3623
3623
|
}),
|
|
3624
|
-
addSelection:
|
|
3624
|
+
addSelection: on(function(i, a, f) {
|
|
3625
3625
|
var p = this.sel.ranges.slice(0);
|
|
3626
3626
|
p.push(new vt(Ze(this, i), Ze(this, a || i))), Sn(this, kr(this.cm, p, p.length - 1), f);
|
|
3627
3627
|
}),
|
|
@@ -3644,7 +3644,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3644
3644
|
p[h] = i;
|
|
3645
3645
|
this.replaceSelections(p, a, f || "+input");
|
|
3646
3646
|
},
|
|
3647
|
-
replaceSelections:
|
|
3647
|
+
replaceSelections: on(function(i, a, f) {
|
|
3648
3648
|
for (var p = [], h = this.sel, g = 0; g < h.ranges.length; g++) {
|
|
3649
3649
|
var E = h.ranges[g];
|
|
3650
3650
|
p[g] = { from: E.from(), to: E.to(), text: this.splitLines(i[g]), origin: f };
|
|
@@ -3653,16 +3653,16 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3653
3653
|
Wa(this, p[w]);
|
|
3654
3654
|
x ? Bg(this, x) : this.cm && $a(this.cm);
|
|
3655
3655
|
}),
|
|
3656
|
-
undo:
|
|
3656
|
+
undo: on(function() {
|
|
3657
3657
|
qu(this, "undo");
|
|
3658
3658
|
}),
|
|
3659
|
-
redo:
|
|
3659
|
+
redo: on(function() {
|
|
3660
3660
|
qu(this, "redo");
|
|
3661
3661
|
}),
|
|
3662
|
-
undoSelection:
|
|
3662
|
+
undoSelection: on(function() {
|
|
3663
3663
|
qu(this, "undo", !0);
|
|
3664
3664
|
}),
|
|
3665
|
-
redoSelection:
|
|
3665
|
+
redoSelection: on(function() {
|
|
3666
3666
|
qu(this, "redo", !0);
|
|
3667
3667
|
}),
|
|
3668
3668
|
setExtending: function(i) {
|
|
@@ -3703,13 +3703,13 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3703
3703
|
var a = this.history = new Uu(this.history);
|
|
3704
3704
|
a.done = za(i.done.slice(0), null, !0), a.undone = za(i.undone.slice(0), null, !0);
|
|
3705
3705
|
},
|
|
3706
|
-
setGutterMarker:
|
|
3706
|
+
setGutterMarker: on(function(i, a, f) {
|
|
3707
3707
|
return Ys(this, i, "gutter", function(p) {
|
|
3708
3708
|
var h = p.gutterMarkers || (p.gutterMarkers = {});
|
|
3709
3709
|
return h[a] = f, !f && Ps(h) && (p.gutterMarkers = null), !0;
|
|
3710
3710
|
});
|
|
3711
3711
|
}),
|
|
3712
|
-
clearGutter:
|
|
3712
|
+
clearGutter: on(function(i) {
|
|
3713
3713
|
var a = this;
|
|
3714
3714
|
this.iter(function(f) {
|
|
3715
3715
|
f.gutterMarkers && f.gutterMarkers[i] && Ys(a, f, "gutter", function() {
|
|
@@ -3722,7 +3722,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3722
3722
|
if (typeof i == "number") {
|
|
3723
3723
|
if (!Wr(this, i) || (a = i, i = Pe(this, i), !i))
|
|
3724
3724
|
return null;
|
|
3725
|
-
} else if (a =
|
|
3725
|
+
} else if (a = dt(i), a == null)
|
|
3726
3726
|
return null;
|
|
3727
3727
|
return {
|
|
3728
3728
|
line: a,
|
|
@@ -3735,7 +3735,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3735
3735
|
widgets: i.widgets
|
|
3736
3736
|
};
|
|
3737
3737
|
},
|
|
3738
|
-
addLineClass:
|
|
3738
|
+
addLineClass: on(function(i, a, f) {
|
|
3739
3739
|
return Ys(this, i, a == "gutter" ? "gutter" : "class", function(p) {
|
|
3740
3740
|
var h = a == "text" ? "textClass" : a == "background" ? "bgClass" : a == "gutter" ? "gutterClass" : "wrapClass";
|
|
3741
3741
|
if (!p[h])
|
|
@@ -3748,7 +3748,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3748
3748
|
return !0;
|
|
3749
3749
|
});
|
|
3750
3750
|
}),
|
|
3751
|
-
removeLineClass:
|
|
3751
|
+
removeLineClass: on(function(i, a, f) {
|
|
3752
3752
|
return Ys(this, i, a == "gutter" ? "gutter" : "class", function(p) {
|
|
3753
3753
|
var h = a == "text" ? "textClass" : a == "background" ? "bgClass" : a == "gutter" ? "gutterClass" : "wrapClass", g = p[h];
|
|
3754
3754
|
if (g)
|
|
@@ -3766,7 +3766,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3766
3766
|
return !0;
|
|
3767
3767
|
});
|
|
3768
3768
|
}),
|
|
3769
|
-
addLineWidget:
|
|
3769
|
+
addLineWidget: on(function(i, a, f) {
|
|
3770
3770
|
return FS(this, i, a, f);
|
|
3771
3771
|
}),
|
|
3772
3772
|
removeLineWidget: function(i) {
|
|
@@ -3885,7 +3885,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3885
3885
|
return this.lineSep || `
|
|
3886
3886
|
`;
|
|
3887
3887
|
},
|
|
3888
|
-
setDirection:
|
|
3888
|
+
setDirection: on(function(i) {
|
|
3889
3889
|
i != "rtl" && (i = "ltr"), i != this.direction && (this.direction = i, this.iter(function(a) {
|
|
3890
3890
|
return a.order = null;
|
|
3891
3891
|
}), this.cm && DS(this.cm));
|
|
@@ -3900,7 +3900,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
3900
3900
|
if (!(!f || a.isReadOnly()))
|
|
3901
3901
|
if (p && p.length && window.FileReader && window.File)
|
|
3902
3902
|
for (var h = p.length, g = Array(h), E = 0, x = function() {
|
|
3903
|
-
++E == h &&
|
|
3903
|
+
++E == h && rn(a, function() {
|
|
3904
3904
|
f = Ze(a.doc, f);
|
|
3905
3905
|
var V = {
|
|
3906
3906
|
from: f,
|
|
@@ -4306,8 +4306,8 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
4308
|
var ne = function(be, we, Ee) {
|
|
4309
|
-
for (var Ae = function(_t,
|
|
4310
|
-
return
|
|
4309
|
+
for (var Ae = function(_t, an) {
|
|
4310
|
+
return an ? new de(f.line, x(_t, 1), "before") : new de(f.line, _t, "after");
|
|
4311
4311
|
}; be >= 0 && be < h.length; be += we) {
|
|
4312
4312
|
var ze = h[be], Le = we > 0 == (ze.level != 1), rt = Le ? Ee.begin : x(Ee.end, -1);
|
|
4313
4313
|
if (ze.from <= rt && rt < ze.to || (rt = Le ? ze.from : x(ze.to, -1), Ee.begin <= rt && rt < Ee.end))
|
|
@@ -4552,11 +4552,11 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4552
4552
|
};
|
|
4553
4553
|
function oy(i, a) {
|
|
4554
4554
|
var f = Pe(i.doc, a), p = Rr(f);
|
|
4555
|
-
return p != f && (a =
|
|
4555
|
+
return p != f && (a = dt(p)), ud(!0, i, p, a, 1);
|
|
4556
4556
|
}
|
|
4557
4557
|
function JS(i, a) {
|
|
4558
4558
|
var f = Pe(i.doc, a), p = O1(f);
|
|
4559
|
-
return p != f && (a =
|
|
4559
|
+
return p != f && (a = dt(p)), ud(!0, i, f, a, -1);
|
|
4560
4560
|
}
|
|
4561
4561
|
function ay(i, a) {
|
|
4562
4562
|
var f = oy(i, a.line), p = Pe(i.doc, f.line), h = Pr(p, i.doc.direction);
|
|
@@ -4601,7 +4601,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
function sy(i, a, f, p) {
|
|
4603
4603
|
var h = QS(i, a, p);
|
|
4604
|
-
return h == "multi" && (i.state.keySeq = a), h == "handled" &&
|
|
4604
|
+
return h == "multi" && (i.state.keySeq = a), h == "handled" && nn(i, "keyHandled", i, a, f), (h == "handled" || h == "multi") && (mn(f), Gf(i)), !!h;
|
|
4605
4605
|
}
|
|
4606
4606
|
function ly(i, a) {
|
|
4607
4607
|
var f = iy(a, !0);
|
|
@@ -4711,7 +4711,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4711
4711
|
i.options.dragDrop && Tf && !i.isReadOnly() && f == "single" && (E = g.contains(a)) > -1 && (Xe((E = g.ranges[E]).from(), a) < 0 || a.xRel > 0) && (Xe(E.to(), a) > 0 || a.xRel < 0) ? lC(i, p, a, h) : uC(i, p, a, h);
|
|
4712
4712
|
}
|
|
4713
4713
|
function lC(i, a, f, p) {
|
|
4714
|
-
var h = i.display, g = !1, E =
|
|
4714
|
+
var h = i.display, g = !1, E = rn(i, function(P) {
|
|
4715
4715
|
v && (h.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Vf(i)), kn(h.wrapper.ownerDocument, "mouseup", E), kn(h.wrapper.ownerDocument, "mousemove", x), kn(h.scroller, "dragstart", w), kn(h.scroller, "drop", E), g || (mn(P), p.addNew || Vu(i.doc, f, null, null, p.extend), v && !S || c && d == 9 ? setTimeout(function() {
|
|
4716
4716
|
h.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), h.input.focus();
|
|
4717
4717
|
}, 20) : h.input.focus());
|
|
@@ -4758,9 +4758,9 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4758
4758
|
function q(Ee) {
|
|
4759
4759
|
if (Xe($, Ee) != 0)
|
|
4760
4760
|
if ($ = Ee, p.unit == "rectangle") {
|
|
4761
|
-
for (var Ae = [], ze = i.options.tabSize, Le = ae(Pe(g, f.line).text, f.ch, ze), rt = ae(Pe(g, Ee.line).text, Ee.ch, ze), _t = Math.min(Le, rt),
|
|
4761
|
+
for (var Ae = [], ze = i.options.tabSize, Le = ae(Pe(g, f.line).text, f.ch, ze), rt = ae(Pe(g, Ee.line).text, Ee.ch, ze), _t = Math.min(Le, rt), an = Math.max(Le, rt), Mt = Math.min(f.line, Ee.line), er = Math.min(i.lastLine(), Math.max(f.line, Ee.line)); Mt <= er; Mt++) {
|
|
4762
4762
|
var Wn = Pe(g, Mt).text, Vt = pt(Wn, _t, ze);
|
|
4763
|
-
_t ==
|
|
4763
|
+
_t == an ? Ae.push(new vt(de(Mt, Vt), de(Mt, Vt))) : Wn.length > Vt && Ae.push(new vt(de(Mt, Vt), de(Mt, pt(Wn, an, ze))));
|
|
4764
4764
|
}
|
|
4765
4765
|
Ae.length || Ae.push(new vt(f, f)), Sn(
|
|
4766
4766
|
g,
|
|
@@ -4781,12 +4781,12 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4781
4781
|
if (Xe(ze, $) != 0) {
|
|
4782
4782
|
i.curOp.focus = F(X(i)), q(ze);
|
|
4783
4783
|
var Le = Hu(h, g);
|
|
4784
|
-
(ze.line >= Le.to || ze.line < Le.from) && setTimeout(
|
|
4784
|
+
(ze.line >= Le.to || ze.line < Le.from) && setTimeout(rn(i, function() {
|
|
4785
4785
|
ne == Ae && le(Ee);
|
|
4786
4786
|
}), 150);
|
|
4787
4787
|
} else {
|
|
4788
4788
|
var rt = Ee.clientY < V.top ? -20 : Ee.clientY > V.bottom ? 20 : 0;
|
|
4789
|
-
rt && setTimeout(
|
|
4789
|
+
rt && setTimeout(rn(i, function() {
|
|
4790
4790
|
ne == Ae && (h.scroller.scrollTop += rt, le(Ee));
|
|
4791
4791
|
}), 50);
|
|
4792
4792
|
}
|
|
@@ -4794,9 +4794,9 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4794
4794
|
function ve(Ee) {
|
|
4795
4795
|
i.state.selectingText = !1, ne = 1 / 0, Ee && (mn(Ee), h.input.focus()), kn(h.wrapper.ownerDocument, "mousemove", be), kn(h.wrapper.ownerDocument, "mouseup", we), g.history.lastSelOrigin = null;
|
|
4796
4796
|
}
|
|
4797
|
-
var be =
|
|
4797
|
+
var be = rn(i, function(Ee) {
|
|
4798
4798
|
Ee.buttons === 0 || !_u(Ee) ? ve(Ee) : le(Ee);
|
|
4799
|
-
}), we =
|
|
4799
|
+
}), we = rn(i, ve);
|
|
4800
4800
|
i.state.selectingText = we, je(h.wrapper.ownerDocument, "mousemove", be), je(h.wrapper.ownerDocument, "mouseup", we);
|
|
4801
4801
|
}
|
|
4802
4802
|
function cC(i, a) {
|
|
@@ -4994,7 +4994,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
4994
4994
|
Ct.defaults = gy, Ct.optionHandlers = Qu;
|
|
4995
4995
|
function vC(i) {
|
|
4996
4996
|
var a = i.display;
|
|
4997
|
-
je(a.scroller, "mousedown",
|
|
4997
|
+
je(a.scroller, "mousedown", rn(i, fy)), c && d < 11 ? je(a.scroller, "dblclick", rn(i, function(w) {
|
|
4998
4998
|
if (!Nt(i, w)) {
|
|
4999
4999
|
var P = Ko(i, w);
|
|
5000
5000
|
if (!(!P || fd(i, w) || vi(i.display, w))) {
|
|
@@ -5065,7 +5065,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5065
5065
|
start: function(w) {
|
|
5066
5066
|
return US(i, w);
|
|
5067
5067
|
},
|
|
5068
|
-
drop:
|
|
5068
|
+
drop: rn(i, WS),
|
|
5069
5069
|
leave: function(w) {
|
|
5070
5070
|
Nt(i, w) || Qg(i);
|
|
5071
5071
|
}
|
|
@@ -5073,7 +5073,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5073
5073
|
var x = a.input.getField();
|
|
5074
5074
|
je(x, "keyup", function(w) {
|
|
5075
5075
|
return cy.call(i, w);
|
|
5076
|
-
}), je(x, "keydown",
|
|
5076
|
+
}), je(x, "keydown", rn(i, uy)), je(x, "keypress", rn(i, py)), je(x, "focus", function(w) {
|
|
5077
5077
|
return Kf(i, w);
|
|
5078
5078
|
}), je(x, "blur", function(w) {
|
|
5079
5079
|
return Fa(i, w);
|
|
@@ -5143,7 +5143,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5143
5143
|
text: P ? P[q % P.length] : w,
|
|
5144
5144
|
origin: h || (x ? "paste" : i.state.cutIncoming > E ? "cut" : "+input")
|
|
5145
5145
|
};
|
|
5146
|
-
Wa(i.doc, ve),
|
|
5146
|
+
Wa(i.doc, ve), nn(i, "inputRead", i, ve);
|
|
5147
5147
|
}
|
|
5148
5148
|
a && !x && by(i, a), $a(i), i.curOp.updateInput < 2 && (i.curOp.updateInput = $), i.curOp.typing = !0, i.state.pasteIncoming = i.state.cutIncoming = -1;
|
|
5149
5149
|
}
|
|
@@ -5168,7 +5168,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5168
5168
|
}
|
|
5169
5169
|
} else
|
|
5170
5170
|
g.electricInput && g.electricInput.test(Pe(i.doc, h.head.line).text.slice(0, h.head.ch)) && (E = ol(i, h.head.line, "smart"));
|
|
5171
|
-
E &&
|
|
5171
|
+
E && nn(i, "electricInput", i, h.head.line);
|
|
5172
5172
|
}
|
|
5173
5173
|
}
|
|
5174
5174
|
}
|
|
@@ -5195,7 +5195,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5195
5195
|
},
|
|
5196
5196
|
setOption: function(p, h) {
|
|
5197
5197
|
var g = this.options, E = g[p];
|
|
5198
|
-
g[p] == h && p != "mode" || (g[p] = h, a.hasOwnProperty(p) &&
|
|
5198
|
+
g[p] == h && p != "mode" || (g[p] = h, a.hasOwnProperty(p) && rn(this, a[p])(this, h, E), kt(this, "optionChange", this, p));
|
|
5199
5199
|
},
|
|
5200
5200
|
getOption: function(p) {
|
|
5201
5201
|
return this.options[p];
|
|
@@ -5488,7 +5488,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5488
5488
|
}),
|
|
5489
5489
|
swapDoc: Nn(function(p) {
|
|
5490
5490
|
var h = this.doc;
|
|
5491
|
-
return h.cm = null, this.state.selectingText && this.state.selectingText(), Rg(this, p), Fs(this), this.display.input.reset(), Hs(this, p.scrollLeft, p.scrollTop), this.curOp.forceScroll = !0,
|
|
5491
|
+
return h.cm = null, this.state.selectingText && this.state.selectingText(), Rg(this, p), Fs(this), this.display.input.reset(), Hs(this, p.scrollLeft, p.scrollTop), this.curOp.forceScroll = !0, nn(this, "swapDoc", this, h), h;
|
|
5492
5492
|
}),
|
|
5493
5493
|
phrase: function(p) {
|
|
5494
5494
|
var h = this.options.phrases;
|
|
@@ -5590,7 +5590,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5590
5590
|
return !1;
|
|
5591
5591
|
}
|
|
5592
5592
|
je(h, "paste", function(x) {
|
|
5593
|
-
!g(x) || Nt(p, x) || yy(x, p) || d <= 11 && setTimeout(
|
|
5593
|
+
!g(x) || Nt(p, x) || yy(x, p) || d <= 11 && setTimeout(rn(p, function() {
|
|
5594
5594
|
return a.updateFromDOM();
|
|
5595
5595
|
}), 20);
|
|
5596
5596
|
}), je(h, "compositionstart", function(x) {
|
|
@@ -5728,9 +5728,9 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5728
5728
|
if (p.ch == 0 && p.line > i.firstLine() && (p = de(p.line - 1, Pe(i.doc, p.line - 1).length)), h.ch == Pe(i.doc, h.line).text.length && h.line < i.lastLine() && (h = de(h.line + 1, 0)), p.line < a.viewFrom || h.line > a.viewTo - 1)
|
|
5729
5729
|
return !1;
|
|
5730
5730
|
var g, E, x;
|
|
5731
|
-
p.line == a.viewFrom || (g = Yo(i, p.line)) == 0 ? (E =
|
|
5731
|
+
p.line == a.viewFrom || (g = Yo(i, p.line)) == 0 ? (E = dt(a.view[0].line), x = a.view[0].node) : (E = dt(a.view[g].line), x = a.view[g - 1].node.nextSibling);
|
|
5732
5732
|
var w = Yo(i, h.line), P, O;
|
|
5733
|
-
if (w == a.view.length - 1 ? (P = a.viewTo - 1, O = a.lineDiv.lastChild) : (P =
|
|
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
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 (Me($) == Me(q))
|
|
@@ -5777,7 +5777,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5777
5777
|
}, yt.prototype.setUneditable = function(i) {
|
|
5778
5778
|
i.contentEditable = "false";
|
|
5779
5779
|
}, yt.prototype.onKeyPress = function(i) {
|
|
5780
|
-
i.charCode == 0 || this.composing || (i.preventDefault(), this.cm.isReadOnly() ||
|
|
5780
|
+
i.charCode == 0 || this.composing || (i.preventDefault(), this.cm.isReadOnly() || rn(this.cm, hd)(this.cm, String.fromCharCode(i.charCode == null ? i.keyCode : i.charCode), 0));
|
|
5781
5781
|
}, yt.prototype.readOnlyChanged = function(i) {
|
|
5782
5782
|
this.div.contentEditable = String(i != "nocursor");
|
|
5783
5783
|
}, yt.prototype.onContextMenu = function() {
|
|
@@ -5868,10 +5868,10 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5868
5868
|
function bC(i, a, f) {
|
|
5869
5869
|
var p = i.text.firstChild, h = !1;
|
|
5870
5870
|
if (!a || !ke(p, a))
|
|
5871
|
-
return qa(de(
|
|
5871
|
+
return qa(de(dt(i.line), 0), !0);
|
|
5872
5872
|
if (a == p && (h = !0, a = p.childNodes[f], f = 0, !a)) {
|
|
5873
5873
|
var g = i.rest ? Me(i.rest) : i.line;
|
|
5874
|
-
return qa(de(
|
|
5874
|
+
return qa(de(dt(g), g.text.length), h);
|
|
5875
5875
|
}
|
|
5876
5876
|
var E = a.nodeType == 3 ? a : null, x = a;
|
|
5877
5877
|
for (!E && a.childNodes.length == 1 && a.firstChild.nodeType == 3 && (E = a.firstChild, f && (f = E.nodeValue.length)); x.parentNode != p; )
|
|
@@ -5882,7 +5882,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
5882
5882
|
for (var Ae = Ee < 0 ? w.map : P[Ee], ze = 0; ze < Ae.length; ze += 3) {
|
|
5883
5883
|
var Le = Ae[ze + 2];
|
|
5884
5884
|
if (Le == ve || Le == be) {
|
|
5885
|
-
var rt =
|
|
5885
|
+
var rt = dt(Ee < 0 ? i.line : i.rest[Ee]), _t = Ae[ze] + we;
|
|
5886
5886
|
return (we < 0 || Le != ve) && (_t = Ae[ze + (we ? 1 : 0)]), de(rt, _t);
|
|
5887
5887
|
}
|
|
5888
5888
|
}
|
|
@@ -6049,7 +6049,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
6049
6049
|
if (!g || _)
|
|
6050
6050
|
return;
|
|
6051
6051
|
var x = f.options.resetSelectionOnContextMenu;
|
|
6052
|
-
x && f.doc.sel.contains(g) == -1 &&
|
|
6052
|
+
x && f.doc.sel.contains(g) == -1 && rn(f, Sn)(f.doc, Ki(g), Ue);
|
|
6053
6053
|
var w = h.style.cssText, P = a.wrapper.style.cssText, O = a.wrapper.offsetParent.getBoundingClientRect();
|
|
6054
6054
|
a.wrapper.style.cssText = "position: static", h.style.cssText = `position: absolute; width: 30px; height: 30px;
|
|
6055
6055
|
top: ` + (i.clientY - O.top - 5) + "px; left: " + (i.clientX - O.left - 5) + `px;
|
|
@@ -6067,7 +6067,7 @@ b`.split(/\n/).length != 3 ? function(i) {
|
|
|
6067
6067
|
if (a.contextMenuPending == V && (a.contextMenuPending = !1, a.wrapper.style.cssText = P, h.style.cssText = w, c && d < 9 && p.scrollbars.setScrollTop(p.scroller.scrollTop = E), h.selectionStart != null)) {
|
|
6068
6068
|
(!c || c && d < 9) && q();
|
|
6069
6069
|
var le = 0, ve = function() {
|
|
6070
|
-
p.selForContextMenu == f.doc.sel && h.selectionStart == 0 && h.selectionEnd > 0 && a.prevInput == "" ?
|
|
6070
|
+
p.selForContextMenu == f.doc.sel && h.selectionStart == 0 && h.selectionEnd > 0 && a.prevInput == "" ? rn(f, jg)(f) : le++ < 10 ? p.detectingSelectAll = setTimeout(ve, 500) : (p.selForContextMenu = null, p.input.reset());
|
|
6071
6071
|
};
|
|
6072
6072
|
p.detectingSelectAll = setTimeout(ve, 200);
|
|
6073
6073
|
}
|
|
@@ -6529,7 +6529,7 @@ function et(e) {
|
|
|
6529
6529
|
function En(e) {
|
|
6530
6530
|
return Il.call(e) === "[object Object]";
|
|
6531
6531
|
}
|
|
6532
|
-
function
|
|
6532
|
+
function Ge(e) {
|
|
6533
6533
|
return Il.call(e) === "[object Number]";
|
|
6534
6534
|
}
|
|
6535
6535
|
function bn(e) {
|
|
@@ -6895,7 +6895,7 @@ function cT(e, t) {
|
|
|
6895
6895
|
function FE(e, t) {
|
|
6896
6896
|
return t.appendChild(cT(e, t));
|
|
6897
6897
|
}
|
|
6898
|
-
function
|
|
6898
|
+
function Ve(e, t) {
|
|
6899
6899
|
return FE(t, e), e;
|
|
6900
6900
|
}
|
|
6901
6901
|
var qd = 2, $E = {
|
|
@@ -7384,9 +7384,9 @@ function Zd(e, t) {
|
|
|
7384
7384
|
return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
|
|
7385
7385
|
}
|
|
7386
7386
|
function gp(e, t, n) {
|
|
7387
|
-
|
|
7387
|
+
Ge(t) && (n = t, t = null), t || (t = {});
|
|
7388
7388
|
const r = $e("path", t);
|
|
7389
|
-
return
|
|
7389
|
+
return Ge(n) && (r.dataset.cornerRadius = String(n)), GE(r, e);
|
|
7390
7390
|
}
|
|
7391
7391
|
function GE(e, t) {
|
|
7392
7392
|
const n = parseInt(e.dataset.cornerRadius, 10) || 0;
|
|
@@ -7475,7 +7475,7 @@ function BT(e, t) {
|
|
|
7475
7475
|
var n = {};
|
|
7476
7476
|
return H(e, function(r) {
|
|
7477
7477
|
var o = r;
|
|
7478
|
-
o.waypoints && (o = jt(o)), !
|
|
7478
|
+
o.waypoints && (o = jt(o)), !Ge(t.y) && o.x > t.x && (n[r.id] = r), !Ge(t.x) && o.y > t.y && (n[r.id] = r), o.x > t.x && o.y > t.y && (Ge(t.width) && Ge(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Ge(t.width) || !Ge(t.height)) && (n[r.id] = r);
|
|
7479
7479
|
}), n;
|
|
7480
7480
|
}
|
|
7481
7481
|
function KE(e) {
|
|
@@ -7502,11 +7502,11 @@ go.prototype.drawShape = function(t, n, r) {
|
|
|
7502
7502
|
y: 0,
|
|
7503
7503
|
width: n.width || 0,
|
|
7504
7504
|
height: n.height || 0
|
|
7505
|
-
}), YE(n) ? Ce(o, K({}, this.FRAME_STYLE, r || {})) : Ce(o, K({}, this.SHAPE_STYLE, r || {})),
|
|
7505
|
+
}), YE(n) ? Ce(o, K({}, this.FRAME_STYLE, r || {})) : Ce(o, K({}, this.SHAPE_STYLE, r || {})), Ve(t, o), o;
|
|
7506
7506
|
};
|
|
7507
7507
|
go.prototype.drawConnection = function(t, n, r) {
|
|
7508
7508
|
var o = gp(n.waypoints, K({}, this.CONNECTION_STYLE, r || {}));
|
|
7509
|
-
return
|
|
7509
|
+
return Ve(t, o), o;
|
|
7510
7510
|
};
|
|
7511
7511
|
go.prototype.getShapePath = function(t) {
|
|
7512
7512
|
var n = t.x, r = t.y, o = t.width, s = t.height, l = [
|
|
@@ -8053,7 +8053,7 @@ function Mc(e, t) {
|
|
|
8053
8053
|
return Math.round(e * t) / t;
|
|
8054
8054
|
}
|
|
8055
8055
|
function zy(e) {
|
|
8056
|
-
return
|
|
8056
|
+
return Ge(e) ? e + "px" : e;
|
|
8057
8057
|
}
|
|
8058
8058
|
function l2(e) {
|
|
8059
8059
|
for (; e.parent; )
|
|
@@ -8091,7 +8091,7 @@ Je.$inject = [
|
|
|
8091
8091
|
];
|
|
8092
8092
|
Je.prototype._init = function(e) {
|
|
8093
8093
|
const t = this._eventBus, n = this._container = u2(e), r = this._svg = $e("svg");
|
|
8094
|
-
Ce(r, { width: "100%", height: "100%" }),
|
|
8094
|
+
Ce(r, { width: "100%", height: "100%" }), Ve(n, r);
|
|
8095
8095
|
const o = this._viewport = QE(r, "viewport");
|
|
8096
8096
|
e.deferUpdate !== !1 && (this._viewboxChanged = NE(Zt(this._viewboxChanged, this), 300)), t.on("diagram.init", () => {
|
|
8097
8097
|
t.fire("canvas.init", {
|
|
@@ -8650,7 +8650,7 @@ 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
|
-
if (e = et(e) ? e : [e], bn(t) && (r = n, n = t, t = c_), !
|
|
8653
|
+
if (e = et(e) ? e : [e], bn(t) && (r = n, n = t, t = c_), !Ge(t))
|
|
8654
8654
|
throw new Error("priority must be a number");
|
|
8655
8655
|
var o = n;
|
|
8656
8656
|
r && (o = Zt(n, r), o[ep] = n[ep] || n);
|
|
@@ -8665,7 +8665,7 @@ or.prototype.on = function(e, t, n, r) {
|
|
|
8665
8665
|
};
|
|
8666
8666
|
or.prototype.once = function(e, t, n, r) {
|
|
8667
8667
|
var o = this;
|
|
8668
|
-
if (bn(t) && (r = n, n = t, t = c_), !
|
|
8668
|
+
if (bn(t) && (r = n, n = t, t = c_), !Ge(t))
|
|
8669
8669
|
throw new Error("priority must be a number");
|
|
8670
8670
|
function s() {
|
|
8671
8671
|
s.__isTomb = !0;
|
|
@@ -8796,7 +8796,7 @@ function fr(e, t) {
|
|
|
8796
8796
|
fr.$inject = ["eventBus", "elementRegistry"];
|
|
8797
8797
|
fr.prototype._getChildrenContainer = function(e) {
|
|
8798
8798
|
var t = this._elementRegistry.getGraphics(e), n;
|
|
8799
|
-
return e.parent ? (n = w2(t), n || (n = $e("g"), ot(n).add("djs-children"),
|
|
8799
|
+
return e.parent ? (n = w2(t), n || (n = $e("g"), ot(n).add("djs-children"), Ve(t.parentNode, n))) : n = t, n;
|
|
8800
8800
|
};
|
|
8801
8801
|
fr.prototype._clear = function(e) {
|
|
8802
8802
|
var t = tp(e);
|
|
@@ -8804,11 +8804,11 @@ fr.prototype._clear = function(e) {
|
|
|
8804
8804
|
};
|
|
8805
8805
|
fr.prototype._createContainer = function(e, t, n, r) {
|
|
8806
8806
|
var o = $e("g");
|
|
8807
|
-
ot(o).add("djs-group"), typeof n < "u" ? f_(o, t, t.childNodes[n]) :
|
|
8807
|
+
ot(o).add("djs-group"), typeof n < "u" ? f_(o, t, t.childNodes[n]) : Ve(t, o);
|
|
8808
8808
|
var s = $e("g");
|
|
8809
|
-
ot(s).add("djs-element"), ot(s).add("djs-" + e), r && ot(s).add("djs-frame"),
|
|
8809
|
+
ot(s).add("djs-element"), ot(s).add("djs-" + e), r && ot(s).add("djs-frame"), Ve(o, s);
|
|
8810
8810
|
var l = $e("g");
|
|
8811
|
-
return ot(l).add("djs-visual"),
|
|
8811
|
+
return ot(l).add("djs-visual"), Ve(s, l), s;
|
|
8812
8812
|
};
|
|
8813
8813
|
fr.prototype.create = function(e, t, n) {
|
|
8814
8814
|
var r = this._getChildrenContainer(t.parent);
|
|
@@ -14741,7 +14741,7 @@ const hP = {
|
|
|
14741
14741
|
position: "relative"
|
|
14742
14742
|
};
|
|
14743
14743
|
function Xy(e) {
|
|
14744
|
-
return e + (
|
|
14744
|
+
return e + (Ge(e) ? "px" : "");
|
|
14745
14745
|
}
|
|
14746
14746
|
function vP(e, t) {
|
|
14747
14747
|
return t && ut(e.diagrams, function(n) {
|
|
@@ -14935,9 +14935,9 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
14935
14935
|
markerHeight: 20 * Z,
|
|
14936
14936
|
orient: "auto"
|
|
14937
14937
|
});
|
|
14938
|
-
|
|
14938
|
+
Ve(X, pe);
|
|
14939
14939
|
var Q = bt("defs", o._svg);
|
|
14940
|
-
Q || (Q = $e("defs"),
|
|
14940
|
+
Q || (Q = $e("defs"), Ve(o._svg, Q)), Ve(Q, X), m[F] = X;
|
|
14941
14941
|
}
|
|
14942
14942
|
function S(F) {
|
|
14943
14943
|
return F.replace(/[^0-9a-zA-z]+/g, "_");
|
|
@@ -15070,7 +15070,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15070
15070
|
r: Math.round((C + U) / 4 - Z),
|
|
15071
15071
|
...pe
|
|
15072
15072
|
});
|
|
15073
|
-
return
|
|
15073
|
+
return Ve(F, xe), xe;
|
|
15074
15074
|
}
|
|
15075
15075
|
function k(F, C, U, Z, pe, X) {
|
|
15076
15076
|
En(pe) && (X = pe, pe = 0), pe = pe || 0, X = y(X);
|
|
@@ -15083,7 +15083,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15083
15083
|
ry: Z,
|
|
15084
15084
|
...X
|
|
15085
15085
|
});
|
|
15086
|
-
return
|
|
15086
|
+
return Ve(F, Q), Q;
|
|
15087
15087
|
}
|
|
15088
15088
|
function T(F, C, U, Z) {
|
|
15089
15089
|
var pe = C / 2, X = U / 2, Q = [
|
|
@@ -15099,12 +15099,12 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15099
15099
|
...Z,
|
|
15100
15100
|
points: xe
|
|
15101
15101
|
});
|
|
15102
|
-
return
|
|
15102
|
+
return Ve(F, He), He;
|
|
15103
15103
|
}
|
|
15104
15104
|
function M(F, C, U, Z) {
|
|
15105
15105
|
U = b(U);
|
|
15106
15106
|
var pe = gp(C, U, Z);
|
|
15107
|
-
return
|
|
15107
|
+
return Ve(F, pe), pe;
|
|
15108
15108
|
}
|
|
15109
15109
|
function I(F, C, U) {
|
|
15110
15110
|
return M(F, C, U, 5);
|
|
@@ -15115,7 +15115,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15115
15115
|
...U,
|
|
15116
15116
|
d: C
|
|
15117
15117
|
});
|
|
15118
|
-
return
|
|
15118
|
+
return Ve(F, Z), Z;
|
|
15119
15119
|
}
|
|
15120
15120
|
function j(F, C, U, Z) {
|
|
15121
15121
|
return G(C, U, K({ "data-marker": F }, Z));
|
|
@@ -15139,7 +15139,7 @@ function Ea(e, t, n, r, o, s, l) {
|
|
|
15139
15139
|
}
|
|
15140
15140
|
}, U);
|
|
15141
15141
|
var Z = s.createText(C || "", U);
|
|
15142
|
-
return ot(Z).add("djs-label"),
|
|
15142
|
+
return ot(Z).add("djs-label"), Ve(F, Z), Z;
|
|
15143
15143
|
}
|
|
15144
15144
|
function fe(F, C, U) {
|
|
15145
15145
|
var Z = On(C);
|
|
@@ -16230,7 +16230,7 @@ Ap.prototype.layoutText = function(e, t) {
|
|
|
16230
16230
|
var n = K({}, this._config.size, t.box), r = K({}, this._config.style, t.style), o = LP(t.align || this._config.align), s = OP(t.padding !== void 0 ? t.padding : this._config.padding), l = t.fitBox || !1, u = jP(r), c = e.split(/\u00AD?\r?\n/), d = [], v = n.width - s.left - s.right, m = $e("text");
|
|
16231
16231
|
Ce(m, { x: 0, y: 0 }), Ce(m, r);
|
|
16232
16232
|
var y = zP();
|
|
16233
|
-
for (
|
|
16233
|
+
for (Ve(y, m); c.length; )
|
|
16234
16234
|
d.push(BP(c, v, m));
|
|
16235
16235
|
o.vertical === "middle" && (s.top = s.bottom = 0);
|
|
16236
16236
|
var b = ir(d, function(D, k, T) {
|
|
@@ -16253,7 +16253,7 @@ Ap.prototype.layoutText = function(e, t) {
|
|
|
16253
16253
|
k = Math.max(((l ? _ : v) - D.width) / 2 + s.left, 0);
|
|
16254
16254
|
}
|
|
16255
16255
|
var T = $e("tspan");
|
|
16256
|
-
Ce(T, { x: k, y: S }), T.textContent = D.text,
|
|
16256
|
+
Ce(T, { x: k, y: S }), T.textContent = D.text, Ve(A, T);
|
|
16257
16257
|
}), zt(m);
|
|
16258
16258
|
var B = {
|
|
16259
16259
|
width: _,
|
|
@@ -16919,7 +16919,7 @@ function F_(e, t, n) {
|
|
|
16919
16919
|
return Ce(j, ee), j;
|
|
16920
16920
|
}
|
|
16921
16921
|
function G(j, W) {
|
|
16922
|
-
|
|
16922
|
+
Ve(j, W);
|
|
16923
16923
|
}
|
|
16924
16924
|
this.removeHits = function(j) {
|
|
16925
16925
|
var W = Yd(".djs-hit", j);
|
|
@@ -16970,7 +16970,7 @@ function kp(e, t) {
|
|
|
16970
16970
|
rx: 4,
|
|
16971
16971
|
width: 100,
|
|
16972
16972
|
height: 100
|
|
16973
|
-
}, n)),
|
|
16973
|
+
}, n)), Ve(s, u), u;
|
|
16974
16974
|
}
|
|
16975
16975
|
e.on(["shape.added", "shape.changed"], cR, function(s) {
|
|
16976
16976
|
var l = s.element, u = s.gfx, c = bt(".djs-outline", u);
|
|
@@ -17082,7 +17082,7 @@ nv.prototype._updateSelectionOutline = function(e) {
|
|
|
17082
17082
|
var o = pR(jt(e)), s = $e("rect");
|
|
17083
17083
|
Ce(s, K({
|
|
17084
17084
|
rx: 3
|
|
17085
|
-
}, o)), ot(s).add("djs-selection-outline"),
|
|
17085
|
+
}, o)), ot(s).add("djs-selection-outline"), Ve(t, s);
|
|
17086
17086
|
}
|
|
17087
17087
|
};
|
|
17088
17088
|
function pR(e) {
|
|
@@ -17366,7 +17366,7 @@ function gR(e, t) {
|
|
|
17366
17366
|
};
|
|
17367
17367
|
}
|
|
17368
17368
|
ye.prototype.on = function(e, t, n, r, o, s) {
|
|
17369
|
-
if ((bn(t) ||
|
|
17369
|
+
if ((bn(t) || Ge(t)) && (s = o, o = r, r = n, n = t, t = null), bn(n) && (s = o, o = r, r = n, n = mR), En(o) && (s = o, o = !1), !bn(r))
|
|
17370
17370
|
throw new Error("handlerFn must be a function");
|
|
17371
17371
|
et(e) || (e = [e]);
|
|
17372
17372
|
var l = this._eventBus;
|
|
@@ -17390,7 +17390,7 @@ var yR = [
|
|
|
17390
17390
|
];
|
|
17391
17391
|
H(yR, function(e) {
|
|
17392
17392
|
ye.prototype[e] = function(t, n, r, o, s) {
|
|
17393
|
-
(bn(t) ||
|
|
17393
|
+
(bn(t) || Ge(t)) && (s = o, o = r, r = n, n = t, t = null), this.on(t, e, n, r, o, s);
|
|
17394
17394
|
};
|
|
17395
17395
|
});
|
|
17396
17396
|
function ov(e, t) {
|
|
@@ -17734,23 +17734,23 @@ function NR(e) {
|
|
|
17734
17734
|
function cr(e) {
|
|
17735
17735
|
return e.altKey ? !1 : e.ctrlKey || e.metaKey;
|
|
17736
17736
|
}
|
|
17737
|
-
function
|
|
17737
|
+
function un(e, t) {
|
|
17738
17738
|
return e = et(e) ? e : [e], e.indexOf(t.key) !== -1 || e.indexOf(t.code) !== -1;
|
|
17739
17739
|
}
|
|
17740
17740
|
function av(e) {
|
|
17741
17741
|
return e.shiftKey;
|
|
17742
17742
|
}
|
|
17743
17743
|
function LR(e) {
|
|
17744
|
-
return cr(e) &&
|
|
17744
|
+
return cr(e) && un(DR, e);
|
|
17745
17745
|
}
|
|
17746
17746
|
function OR(e) {
|
|
17747
|
-
return cr(e) &&
|
|
17747
|
+
return cr(e) && un(kR, e);
|
|
17748
17748
|
}
|
|
17749
17749
|
function IR(e) {
|
|
17750
|
-
return cr(e) && !av(e) &&
|
|
17750
|
+
return cr(e) && !av(e) && un(q_, e);
|
|
17751
17751
|
}
|
|
17752
17752
|
function BR(e) {
|
|
17753
|
-
return cr(e) && (
|
|
17753
|
+
return cr(e) && (un(MR, e) || un(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 _n(e, t) {
|
|
@@ -17819,7 +17819,7 @@ _n.prototype.removeListener = function(e, t) {
|
|
|
17819
17819
|
_n.prototype.hasModifier = NR;
|
|
17820
17820
|
_n.prototype.isCmd = cr;
|
|
17821
17821
|
_n.prototype.isShift = av;
|
|
17822
|
-
_n.prototype.isKey =
|
|
17822
|
+
_n.prototype.isKey = un;
|
|
17823
17823
|
function HR(e) {
|
|
17824
17824
|
return e && (Hh(e, "input, textarea") || e.contentEditable === "true");
|
|
17825
17825
|
}
|
|
@@ -17857,19 +17857,19 @@ 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 (
|
|
17860
|
+
if (un(["+", "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 (
|
|
17864
|
+
if (un(["-", "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 (
|
|
17868
|
+
if (un("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;
|
|
17872
|
-
if (
|
|
17872
|
+
if (un(["Backspace", "Delete", "Del"], o))
|
|
17873
17873
|
return t.trigger("removeSelection"), !0;
|
|
17874
17874
|
});
|
|
17875
17875
|
};
|
|
@@ -18700,7 +18700,7 @@ var rx = { exports: {} };
|
|
|
18700
18700
|
function te(he) {
|
|
18701
18701
|
L.manager.emit(he, N);
|
|
18702
18702
|
}
|
|
18703
|
-
z < gt && te(L.options.event +
|
|
18703
|
+
z < gt && te(L.options.event + dt(z)), te(L.options.event), N.additionalEvent && te(N.additionalEvent), z >= gt && te(L.options.event + dt(z));
|
|
18704
18704
|
},
|
|
18705
18705
|
/**
|
|
18706
18706
|
* Check that all the require failure recognizers has failed,
|
|
@@ -18762,7 +18762,7 @@ var rx = { exports: {} };
|
|
|
18762
18762
|
reset: function() {
|
|
18763
18763
|
}
|
|
18764
18764
|
};
|
|
18765
|
-
function
|
|
18765
|
+
function dt(N) {
|
|
18766
18766
|
return N & lr ? "cancel" : N & gt ? "end" : N & pi ? "move" : N & Mn ? "start" : "";
|
|
18767
18767
|
}
|
|
18768
18768
|
function jr(N) {
|
|
@@ -19446,14 +19446,14 @@ pv.prototype.addBBoxMarker = function(e) {
|
|
|
19446
19446
|
y: 1e4,
|
|
19447
19447
|
width: 10,
|
|
19448
19448
|
height: 10
|
|
19449
|
-
}), Ce(n, t),
|
|
19449
|
+
}), Ce(n, t), Ve(e, n);
|
|
19450
19450
|
var r = $e("rect");
|
|
19451
19451
|
Ce(r, {
|
|
19452
19452
|
x: 1e4,
|
|
19453
19453
|
y: 1e4,
|
|
19454
19454
|
width: 10,
|
|
19455
19455
|
height: 10
|
|
19456
|
-
}), Ce(r, t),
|
|
19456
|
+
}), Ce(r, t), Ve(e, r);
|
|
19457
19457
|
};
|
|
19458
19458
|
const eD = {
|
|
19459
19459
|
__depends__: [Gl],
|
|
@@ -20017,7 +20017,7 @@ function pD(e) {
|
|
|
20017
20017
|
return d(), c;
|
|
20018
20018
|
}(e)), t), arguments, [])).length > 1 ? t : t[0];
|
|
20019
20019
|
}
|
|
20020
|
-
var
|
|
20020
|
+
var ln = pD.bind(px), us, $t, Rd, m0, kl = 0, Ex = [], Yt = Tt, g0 = Yt.__b, y0 = Yt.__r, b0 = Yt.diffed, E0 = Yt.__c, _0 = Yt.unmount, x0 = Yt.__;
|
|
20021
20021
|
function $p(e, t) {
|
|
20022
20022
|
Yt.__h && Yt.__h($t, e, kl || t), kl = 0;
|
|
20023
20023
|
var n = $t.__H || ($t.__H = { __: [], __h: [] });
|
|
@@ -20181,7 +20181,7 @@ function vD(e) {
|
|
|
20181
20181
|
onMouseLeave: o,
|
|
20182
20182
|
onAction: s
|
|
20183
20183
|
} = e;
|
|
20184
|
-
return
|
|
20184
|
+
return ln`
|
|
20185
20185
|
<li
|
|
20186
20186
|
class=${ip("entry", { selected: n })}
|
|
20187
20187
|
data-id=${t.id}
|
|
@@ -20196,17 +20196,17 @@ function vD(e) {
|
|
|
20196
20196
|
<span
|
|
20197
20197
|
class=${ip("djs-popup-entry-name", t.className)}
|
|
20198
20198
|
>
|
|
20199
|
-
${t.imageUrl ?
|
|
20199
|
+
${t.imageUrl ? ln`
|
|
20200
20200
|
<img class="djs-popup-entry-icon" src=${t.imageUrl} alt="" />
|
|
20201
20201
|
` : null}
|
|
20202
20202
|
|
|
20203
|
-
${t.label ?
|
|
20203
|
+
${t.label ? ln`
|
|
20204
20204
|
<span class="djs-popup-label">
|
|
20205
20205
|
${t.label}
|
|
20206
20206
|
</span>
|
|
20207
20207
|
` : null}
|
|
20208
20208
|
</span>
|
|
20209
|
-
${t.description &&
|
|
20209
|
+
${t.description && ln`
|
|
20210
20210
|
<span
|
|
20211
20211
|
class="djs-popup-entry-description"
|
|
20212
20212
|
title=${t.description}
|
|
@@ -20215,7 +20215,7 @@ function vD(e) {
|
|
|
20215
20215
|
</span>
|
|
20216
20216
|
`}
|
|
20217
20217
|
</div>
|
|
20218
|
-
${t.documentationRef &&
|
|
20218
|
+
${t.documentationRef && ln`
|
|
20219
20219
|
<div class="djs-popup-entry-docs">
|
|
20220
20220
|
<a
|
|
20221
20221
|
href="${t.documentationRef}"
|
|
@@ -20246,16 +20246,16 @@ function mD(e) {
|
|
|
20246
20246
|
return;
|
|
20247
20247
|
const c = u.querySelector(".selected");
|
|
20248
20248
|
c && yD(c);
|
|
20249
|
-
}, [t]),
|
|
20249
|
+
}, [t]), ln`
|
|
20250
20250
|
<div class="djs-popup-results" ref=${s}>
|
|
20251
|
-
${l.map((u) =>
|
|
20252
|
-
${u.name &&
|
|
20251
|
+
${l.map((u) => ln`
|
|
20252
|
+
${u.name && ln`
|
|
20253
20253
|
<div key=${u.id} class="entry-header" title=${u.name}>
|
|
20254
20254
|
${u.name}
|
|
20255
20255
|
</div>
|
|
20256
20256
|
`}
|
|
20257
20257
|
<ul class="djs-popup-group" data-group=${u.id}>
|
|
20258
|
-
${u.entries.map((c) =>
|
|
20258
|
+
${u.entries.map((c) => ln`
|
|
20259
20259
|
<${vD}
|
|
20260
20260
|
key=${c.id}
|
|
20261
20261
|
entry=${c}
|
|
@@ -20344,7 +20344,7 @@ function bD(e) {
|
|
|
20344
20344
|
y();
|
|
20345
20345
|
}), []);
|
|
20346
20346
|
const ee = Ml(() => l || o.length > 0, [l, o]);
|
|
20347
|
-
return
|
|
20347
|
+
return ln`
|
|
20348
20348
|
<${S0}
|
|
20349
20349
|
onClose=${t}
|
|
20350
20350
|
onKeyup=${W}
|
|
@@ -20354,10 +20354,10 @@ function bD(e) {
|
|
|
20354
20354
|
width=${u}
|
|
20355
20355
|
scale=${c}
|
|
20356
20356
|
>
|
|
20357
|
-
${ee &&
|
|
20357
|
+
${ee && ln`
|
|
20358
20358
|
<div class="djs-popup-header">
|
|
20359
20359
|
<h3 class="djs-popup-title" title=${l}>${l}</h3>
|
|
20360
|
-
${o.map((J) =>
|
|
20360
|
+
${o.map((J) => ln`
|
|
20361
20361
|
<span
|
|
20362
20362
|
class=${_D(J, J === T)}
|
|
20363
20363
|
onClick=${(ue) => n(ue, J)}
|
|
@@ -20366,21 +20366,21 @@ function bD(e) {
|
|
|
20366
20366
|
onMouseEnter=${() => M(J)}
|
|
20367
20367
|
onMouseLeave=${() => M(null)}
|
|
20368
20368
|
>
|
|
20369
|
-
${J.imageUrl ?
|
|
20369
|
+
${J.imageUrl ? ln`
|
|
20370
20370
|
<img class="djs-popup-entry-icon" src=${J.imageUrl} alt="" />
|
|
20371
20371
|
` : null}
|
|
20372
20372
|
|
|
20373
|
-
${J.label ?
|
|
20373
|
+
${J.label ? ln`
|
|
20374
20374
|
<span class="djs-popup-label">${J.label}</span>
|
|
20375
20375
|
` : null}
|
|
20376
20376
|
</span>
|
|
20377
20377
|
`)}
|
|
20378
20378
|
</div>
|
|
20379
20379
|
`}
|
|
20380
|
-
${v.length > 0 &&
|
|
20380
|
+
${v.length > 0 && ln`
|
|
20381
20381
|
<div class="djs-popup-body">
|
|
20382
20382
|
|
|
20383
|
-
${b &&
|
|
20383
|
+
${b && ln`
|
|
20384
20384
|
<div class="djs-popup-search">
|
|
20385
20385
|
<svg class="djs-popup-search-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
20386
20386
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.0325 8.5H9.625L13.3675 12.25L12.25 13.3675L8.5 9.625V9.0325L8.2975 8.8225C7.4425 9.5575 6.3325 10 5.125 10C2.4325 10 0.25 7.8175 0.25 5.125C0.25 2.4325 2.4325 0.25 5.125 0.25C7.8175 0.25 10 2.4325 10 5.125C10 6.3325 9.5575 7.4425 8.8225 8.2975L9.0325 8.5ZM1.75 5.125C1.75 6.9925 3.2575 8.5 5.125 8.5C6.9925 8.5 8.5 6.9925 8.5 5.125C8.5 3.2575 6.9925 1.75 5.125 1.75C3.2575 1.75 1.75 3.2575 1.75 5.125Z" fill="#22242A"/>
|
|
@@ -20399,7 +20399,7 @@ function bD(e) {
|
|
|
20399
20399
|
onAction=${n}
|
|
20400
20400
|
/>
|
|
20401
20401
|
</div>
|
|
20402
|
-
${D.length === 0 &&
|
|
20402
|
+
${D.length === 0 && ln`
|
|
20403
20403
|
<div class="djs-popup-no-results">No matching entries found.</div>
|
|
20404
20404
|
`}
|
|
20405
20405
|
`}
|
|
@@ -20424,7 +20424,7 @@ function S0(e) {
|
|
|
20424
20424
|
d.style.left = `${v.x}px`, d.style.top = `${v.y}px`;
|
|
20425
20425
|
}, [u.current, l]), rp(() => {
|
|
20426
20426
|
u.current && u.current.focus();
|
|
20427
|
-
}, []),
|
|
20427
|
+
}, []), ln`
|
|
20428
20428
|
<div
|
|
20429
20429
|
class="djs-popup-backdrop"
|
|
20430
20430
|
onClick=${c}
|
|
@@ -20495,7 +20495,7 @@ Ot.prototype._render = function() {
|
|
|
20495
20495
|
([m, y]) => ({ id: m, ...y })
|
|
20496
20496
|
), u = e && ((m) => this._ensureVisible(m, e)), c = this._updateScale(this._current.container);
|
|
20497
20497
|
yx(
|
|
20498
|
-
|
|
20498
|
+
ln`
|
|
20499
20499
|
<${bD}
|
|
20500
20500
|
onClose=${(m) => this.close(m)}
|
|
20501
20501
|
onSelect=${(m, y, b) => this.trigger(m, y, b)}
|
|
@@ -21253,7 +21253,7 @@ function Nx(e, t, n, r) {
|
|
|
21253
21253
|
s.active && (k && (s.payload.originalEvent = k, Cd(k)), M = u("end")), M === !1 && u("rejected"), T = B(M !== !0), u("ended", T);
|
|
21254
21254
|
}
|
|
21255
21255
|
function m(k) {
|
|
21256
|
-
|
|
21256
|
+
un("Escape", k) && (ia(k), A());
|
|
21257
21257
|
}
|
|
21258
21258
|
function y(k) {
|
|
21259
21259
|
var T;
|
|
@@ -21492,41 +21492,41 @@ function vh(e, t, n) {
|
|
|
21492
21492
|
}
|
|
21493
21493
|
function mh(e, t) {
|
|
21494
21494
|
var n = $e("g");
|
|
21495
|
-
ot(n).add(Bx),
|
|
21495
|
+
ot(n).add(Bx), Ve(e, n);
|
|
21496
21496
|
var r = $e("circle");
|
|
21497
21497
|
Ce(r, {
|
|
21498
21498
|
cx: 0,
|
|
21499
21499
|
cy: 0,
|
|
21500
21500
|
r: 4
|
|
21501
|
-
}), ot(r).add("djs-visual"),
|
|
21501
|
+
}), ot(r).add("djs-visual"), Ve(n, r);
|
|
21502
21502
|
var o = $e("circle");
|
|
21503
21503
|
return Ce(o, {
|
|
21504
21504
|
cx: 0,
|
|
21505
21505
|
cy: 0,
|
|
21506
21506
|
r: 10
|
|
21507
|
-
}), ot(o).add("djs-hit"),
|
|
21507
|
+
}), ot(o).add("djs-hit"), Ve(n, o), t && ot(n).add(t), n;
|
|
21508
21508
|
}
|
|
21509
21509
|
function ak(e, t, n, r) {
|
|
21510
21510
|
var o = $e("g");
|
|
21511
|
-
|
|
21511
|
+
Ve(e, o);
|
|
21512
21512
|
var s = 18, l = 6, u = 11, c = lk(t, n, r), d = l + u, v = $e("rect");
|
|
21513
21513
|
Ce(v, {
|
|
21514
21514
|
x: -s / 2,
|
|
21515
21515
|
y: -l / 2,
|
|
21516
21516
|
width: s,
|
|
21517
21517
|
height: l
|
|
21518
|
-
}), ot(v).add("djs-visual"),
|
|
21518
|
+
}), ot(v).add("djs-visual"), Ve(o, v);
|
|
21519
21519
|
var m = $e("rect");
|
|
21520
21520
|
return Ce(m, {
|
|
21521
21521
|
x: -c / 2,
|
|
21522
21522
|
y: -d / 2,
|
|
21523
21523
|
width: c,
|
|
21524
21524
|
height: d
|
|
21525
|
-
}), ot(m).add("djs-hit"),
|
|
21525
|
+
}), ot(m).add("djs-hit"), Ve(o, m), p_(o, r === "v" ? 90 : 0), o;
|
|
21526
21526
|
}
|
|
21527
21527
|
function $x(e, t, n) {
|
|
21528
21528
|
var r = $e("g"), o = Jd(t, n), s = _i(t, n);
|
|
21529
|
-
return
|
|
21529
|
+
return Ve(e, r), ak(r, t, n, s), ot(r).add(Fx), ot(r).add(s === "h" ? "horizontal" : "vertical"), tr(r, o.x, o.y), r;
|
|
21530
21530
|
}
|
|
21531
21531
|
function gh(e) {
|
|
21532
21532
|
return Math.abs(Math.round(e * 2 / 3));
|
|
@@ -21570,7 +21570,7 @@ function Hx(e, t, n, r, o) {
|
|
|
21570
21570
|
}
|
|
21571
21571
|
function d(k, T) {
|
|
21572
21572
|
var M = t.getLayer("overlays"), I = bt('.djs-bendpoints[data-element-id="' + Pl(k.id) + '"]', M);
|
|
21573
|
-
return !I && T && (I = $e("g"), Ce(I, { "data-element-id": k.id }), ot(I).add("djs-bendpoints"),
|
|
21573
|
+
return !I && T && (I = $e("g"), Ce(I, { "data-element-id": k.id }), ot(I).add("djs-bendpoints"), Ve(M, I), c(I, "mousedown", k), c(I, "click", k), c(I, "dblclick", k)), I;
|
|
21574
21574
|
}
|
|
21575
21575
|
function v(k, T) {
|
|
21576
21576
|
return bt(
|
|
@@ -21581,7 +21581,7 @@ function Hx(e, t, n, r, o) {
|
|
|
21581
21581
|
function m(k, T) {
|
|
21582
21582
|
T.waypoints.forEach(function(M, I) {
|
|
21583
21583
|
var G = mh(k);
|
|
21584
|
-
|
|
21584
|
+
Ve(k, G), tr(G, M.x, M.y);
|
|
21585
21585
|
}), mh(k, "floating");
|
|
21586
21586
|
}
|
|
21587
21587
|
function y(k, T) {
|
|
@@ -22184,7 +22184,7 @@ Ii.prototype.drawPreview = function(e, t, n) {
|
|
|
22184
22184
|
};
|
|
22185
22185
|
Ii.prototype.drawNoopPreview = function(e, t) {
|
|
22186
22186
|
var n = t.source, r = t.target, o = t.connectionStart || qe(n), s = t.connectionEnd || qe(r), l = this.cropWaypoints(o, s, n, r), u = this.createNoopConnection(l[0], l[1]);
|
|
22187
|
-
|
|
22187
|
+
Ve(e, u);
|
|
22188
22188
|
};
|
|
22189
22189
|
Ii.prototype.cropWaypoints = function(e, t, n, r) {
|
|
22190
22190
|
var o = this._graphicsFactory, s = n && o.getShapePath(n), l = r && o.getShapePath(r), u = o.getConnectionPath({ waypoints: [e, t] });
|
|
@@ -22201,7 +22201,7 @@ Ii.prototype.createConnectionPreviewGfx = function() {
|
|
|
22201
22201
|
var e = $e("g");
|
|
22202
22202
|
return Ce(e, {
|
|
22203
22203
|
pointerEvents: "none"
|
|
22204
|
-
}), ot(e).add(_k),
|
|
22204
|
+
}), ot(e).add(_k), Ve(this._canvas.getActiveLayer(), e), e;
|
|
22205
22205
|
};
|
|
22206
22206
|
Ii.prototype.createNoopConnection = function(e, t) {
|
|
22207
22207
|
return gp([e, t], {
|
|
@@ -22518,7 +22518,7 @@ xa.prototype.addDragger = function(e, t, n) {
|
|
|
22518
22518
|
return this._cloneMarkers(tp(r)), Ce(r, this._styles.cls("djs-dragger", [], {
|
|
22519
22519
|
x: o.top,
|
|
22520
22520
|
y: o.left
|
|
22521
|
-
})),
|
|
22521
|
+
})), Ve(t, r), r;
|
|
22522
22522
|
};
|
|
22523
22523
|
xa.prototype.addFrame = function(e, t) {
|
|
22524
22524
|
var n = $e("rect", {
|
|
@@ -22528,7 +22528,7 @@ xa.prototype.addFrame = function(e, t) {
|
|
|
22528
22528
|
x: e.x,
|
|
22529
22529
|
y: e.y
|
|
22530
22530
|
});
|
|
22531
|
-
return
|
|
22531
|
+
return Ve(t, n), n;
|
|
22532
22532
|
};
|
|
22533
22533
|
xa.prototype._cloneMarkers = function(e) {
|
|
22534
22534
|
var t = this;
|
|
@@ -22549,7 +22549,7 @@ xa.prototype._cloneMarker = function(e, t, n) {
|
|
|
22549
22549
|
var s = r + "-clone";
|
|
22550
22550
|
o.id = s, ot(o).add("djs-dragger").add("djs-dragger-marker"), this._clonedMarkers[r] = o;
|
|
22551
22551
|
var l = bt("defs", this._canvas._svg);
|
|
22552
|
-
l || (l = $e("defs"),
|
|
22552
|
+
l || (l = $e("defs"), Ve(this._canvas._svg, l)), Ve(l, o);
|
|
22553
22553
|
}
|
|
22554
22554
|
var u = Mk(this._clonedMarkers[r].id);
|
|
22555
22555
|
Ce(e, n, u);
|
|
@@ -22674,7 +22674,7 @@ function Zx(e, t, n, r, o) {
|
|
|
22674
22674
|
hints: {},
|
|
22675
22675
|
shape: m
|
|
22676
22676
|
}, v || {}), H(d, function(_) {
|
|
22677
|
-
|
|
22677
|
+
Ge(_.x) || (_.x = 0), Ge(_.y) || (_.y = 0);
|
|
22678
22678
|
});
|
|
22679
22679
|
var y = Qe(d, function(_) {
|
|
22680
22680
|
return !_.hidden;
|
|
@@ -22736,7 +22736,7 @@ function Jx(e, t, n, r, o) {
|
|
|
22736
22736
|
var u = l.hover, c = l.context, d = c.elements, v = c.dragGroup;
|
|
22737
22737
|
v || (v = c.dragGroup = s(d));
|
|
22738
22738
|
var m;
|
|
22739
|
-
u ? (v.parentNode || (m = e.getActiveLayer(),
|
|
22739
|
+
u ? (v.parentNode || (m = e.getActiveLayer(), Ve(m, v)), tr(v, l.x, l.y)) : zt(v);
|
|
22740
22740
|
}), t.on("create.cleanup", function(l) {
|
|
22741
22741
|
var u = l.context, c = u.dragGroup;
|
|
22742
22742
|
c && zt(c);
|
|
@@ -22830,7 +22830,7 @@ function zr(e, t, n, r, o, s, l, u) {
|
|
|
22830
22830
|
return b === v.parent;
|
|
22831
22831
|
});
|
|
22832
22832
|
y && (d.parent = v.parent.id), Hk(v) && (d.priority = 2, d.host = v.host.id), Gp(v) && (d.priority = 3, d.source = v.source.id, d.target = v.target.id, d.waypoints = zk(v)), Vp(v) && (d.priority = 4, d.labelTarget = v.labelTarget.id), H(["x", "y", "width", "height"], function(b) {
|
|
22833
|
-
|
|
22833
|
+
Ge(v[b]) && (d[b] = v[b]);
|
|
22834
22834
|
}), d.hidden = v.hidden, d.collapsed = v.collapsed;
|
|
22835
22835
|
}), o.on("copyPaste.pasteElements", function(c) {
|
|
22836
22836
|
var d = c.hints;
|
|
@@ -22875,7 +22875,7 @@ zr.prototype.paste = function(e) {
|
|
|
22875
22875
|
};
|
|
22876
22876
|
zr.prototype._paste = function(e, t, n, r) {
|
|
22877
22877
|
H(e, function(s) {
|
|
22878
|
-
|
|
22878
|
+
Ge(s.x) || (s.x = 0), Ge(s.y) || (s.y = 0);
|
|
22879
22879
|
});
|
|
22880
22880
|
var o = jt(e);
|
|
22881
22881
|
return H(e, function(s) {
|
|
@@ -24391,7 +24391,7 @@ function fM(e, t) {
|
|
|
24391
24391
|
}
|
|
24392
24392
|
function vc(e, t, n) {
|
|
24393
24393
|
var r = t[e], o = n.min && n.min[e], s = n.max && n.max[e];
|
|
24394
|
-
return
|
|
24394
|
+
return Ge(o) && (r = (/top|left/.test(e) ? up : lp)(r, o)), Ge(s) && (r = (/top|left/.test(e) ? lp : up)(r, s)), r;
|
|
24395
24395
|
}
|
|
24396
24396
|
function dM(e, t) {
|
|
24397
24397
|
if (!t)
|
|
@@ -26135,7 +26135,7 @@ wo.prototype.snapValue = function(e, t) {
|
|
|
26135
26135
|
var n = 0;
|
|
26136
26136
|
t && t.offset && (n = t.offset), e += n, e = Bd(e, $c);
|
|
26137
26137
|
var r, o;
|
|
26138
|
-
return t && t.min && (r = t.min,
|
|
26138
|
+
return t && t.min && (r = t.min, Ge(r) && (r = Bd(r + n, $c, "ceil"), e = Math.max(e, r))), t && t.max && (o = t.max, Ge(o) && (o = Bd(o + n, $c, "floor"), e = Math.min(e, o))), e -= n, e;
|
|
26139
26139
|
};
|
|
26140
26140
|
wo.prototype.isActive = function() {
|
|
26141
26141
|
return this.active;
|
|
@@ -26163,7 +26163,7 @@ function iN(e, t) {
|
|
|
26163
26163
|
}
|
|
26164
26164
|
function oN(e, t, n) {
|
|
26165
26165
|
var r = e.context, o = e.shape, s = r.gridSnappingContext, l = s.snapLocation, u = s.snapOffset;
|
|
26166
|
-
return u &&
|
|
26166
|
+
return u && Ge(u[t]) || (u || (u = s.snapOffset = {}), Ge(u[t]) || (u[t] = 0), !o) || (n.get(o.id) || (Hc(t) ? u[t] += o[t] + o.width / 2 : u[t] += o[t] + o.height / 2), !l) || (t === "x" ? /left/.test(l) ? u[t] -= o.width / 2 : /right/.test(l) && (u[t] += o.width / 2) : /top/.test(l) ? u[t] -= o.height / 2 : /bottom/.test(l) && (u[t] += o.height / 2)), u[t];
|
|
26167
26167
|
}
|
|
26168
26168
|
function Hc(e) {
|
|
26169
26169
|
return e === "x";
|
|
@@ -26641,21 +26641,21 @@ So.prototype.makeDraggable = function(e, t, n) {
|
|
|
26641
26641
|
};
|
|
26642
26642
|
So.prototype._createResizer = function(e, t, n, r) {
|
|
26643
26643
|
var o = this._getResizersParent(), s = MN(r), l = $e("g");
|
|
26644
|
-
ot(l).add(pl), ot(l).add(pl + "-" + e.id), ot(l).add(pl + "-" + r),
|
|
26644
|
+
ot(l).add(pl), ot(l).add(pl + "-" + e.id), ot(l).add(pl + "-" + r), Ve(o, l);
|
|
26645
26645
|
var u = $e("rect");
|
|
26646
26646
|
Ce(u, {
|
|
26647
26647
|
x: -yc / 2 + s.x,
|
|
26648
26648
|
y: -yc / 2 + s.y,
|
|
26649
26649
|
width: yc,
|
|
26650
26650
|
height: yc
|
|
26651
|
-
}), ot(u).add(pl + "-visual"),
|
|
26651
|
+
}), ot(u).add(pl + "-visual"), Ve(l, u);
|
|
26652
26652
|
var c = $e("rect");
|
|
26653
26653
|
return Ce(c, {
|
|
26654
26654
|
x: -bc / 2 + s.x,
|
|
26655
26655
|
y: -bc / 2 + s.y,
|
|
26656
26656
|
width: bc,
|
|
26657
26657
|
height: bc
|
|
26658
|
-
}), ot(c).add(pl + "-hit"),
|
|
26658
|
+
}), ot(c).add(pl + "-hit"), Ve(l, c), th(l, t, n), l;
|
|
26659
26659
|
};
|
|
26660
26660
|
So.prototype.createResizer = function(e, t) {
|
|
26661
26661
|
var n = gw(e, t), r = this._createResizer(e, n.x, n.y, t);
|
|
@@ -26904,7 +26904,7 @@ function Ew(e, t, n, r) {
|
|
|
26904
26904
|
d: m,
|
|
26905
26905
|
strokeWidth: 2,
|
|
26906
26906
|
stroke: $N(l)
|
|
26907
|
-
}),
|
|
26907
|
+
}), Ve(c, y), Ve(s, c), tr(c, l.x, l.y);
|
|
26908
26908
|
}
|
|
26909
26909
|
R(l, "bpmn:TextAnnotation") || l.labelTarget ? t.addMarker(l, mb) : (R(l, "bpmn:Task") || R(l, "bpmn:CallActivity") || R(l, "bpmn:SubProcess") || R(l, "bpmn:Participant")) && t.addMarker(l, gb);
|
|
26910
26910
|
}), e.on("directEditing.resize", function(d) {
|
|
@@ -27505,7 +27505,7 @@ function Wv(e, t, n) {
|
|
|
27505
27505
|
ye.call(this, e);
|
|
27506
27506
|
function r(o, s, l) {
|
|
27507
27507
|
var u = s.waypoints, c, d, v, m, y, b, _, S = o.outgoing.slice(), A = o.incoming.slice(), B;
|
|
27508
|
-
|
|
27508
|
+
Ge(l.width) ? B = qe(l) : B = l;
|
|
27509
27509
|
var D = hh(u, B);
|
|
27510
27510
|
if (D) {
|
|
27511
27511
|
if (c = u.slice(0, D.index), d = u.slice(D.index + (D.bendpoint ? 1 : 0)), !c.length || !d.length)
|
|
@@ -29811,7 +29811,7 @@ function Ub(e) {
|
|
|
29811
29811
|
var t = e.context, n = t.spaceToolConstraints;
|
|
29812
29812
|
if (n) {
|
|
29813
29813
|
var r, o;
|
|
29814
|
-
|
|
29814
|
+
Ge(n.left) && (r = Math.max(e.x, n.left), e.dx = e.dx + r - e.x, e.x = r), Ge(n.right) && (r = Math.min(e.x, n.right), e.dx = e.dx + r - e.x, e.x = r), Ge(n.top) && (o = Math.max(e.y, n.top), e.dy = e.dy + o - e.y, e.y = o), Ge(n.bottom) && (o = Math.min(e.y, n.bottom), e.dy = e.dy + o - e.y, e.y = o);
|
|
29815
29815
|
}
|
|
29816
29816
|
}
|
|
29817
29817
|
function kO(e, t, n, r, o) {
|
|
@@ -29824,11 +29824,11 @@ function kO(e, t, n, r, o) {
|
|
|
29824
29824
|
}), S = Qe(y, function(ee) {
|
|
29825
29825
|
return !Rh(ee) && !Dh(ee) && ca(s, ee);
|
|
29826
29826
|
}), A, B, D, k = [], T = [], M, I, G, j;
|
|
29827
|
-
_.length && (B = Wb(Oe(jt(_))), A = r - b[to[n]] + B[to[n]], n === "n" ? u.bottom = d =
|
|
29827
|
+
_.length && (B = Wb(Oe(jt(_))), A = r - b[to[n]] + B[to[n]], n === "n" ? u.bottom = d = Ge(d) ? Math.min(d, A) : A : n === "w" ? u.right = d = Ge(d) ? Math.min(d, A) : A : n === "s" ? u.top = c = Ge(c) ? Math.max(c, A) : A : n === "e" && (u.left = c = Ge(c) ? Math.max(c, A) : A)), S.length && (D = Wb(Oe(jt(S))), A = r - D[to[Tc[n]]] + b[to[Tc[n]]], n === "n" ? u.bottom = d = Ge(d) ? Math.min(d, A) : A : n === "w" ? u.right = d = Ge(d) ? Math.min(d, A) : A : n === "s" ? u.top = c = Ge(c) ? Math.max(c, A) : A : n === "e" && (u.left = c = Ge(c) ? Math.max(c, A) : A)), m && m.length && (m.forEach(function(ee) {
|
|
29828
29828
|
ca(s, ee) ? k.push(ee) : T.push(ee);
|
|
29829
|
-
}), k.length && (M = Oe(jt(k.map(qe))), I = b[to[Tc[n]]] - (M[to[Tc[n]]] - r)), T.length && (G = Oe(jt(T.map(qe))), j = G[to[n]] - (b[to[n]] - r)), n === "n" ? (A = Math.min(I || 1 / 0, j || 1 / 0), u.bottom = d =
|
|
29829
|
+
}), k.length && (M = Oe(jt(k.map(qe))), I = b[to[Tc[n]]] - (M[to[Tc[n]]] - r)), T.length && (G = Oe(jt(T.map(qe))), j = G[to[n]] - (b[to[n]] - r)), n === "n" ? (A = Math.min(I || 1 / 0, j || 1 / 0), u.bottom = d = Ge(d) ? Math.min(d, A) : A) : n === "w" ? (A = Math.min(I || 1 / 0, j || 1 / 0), u.right = d = Ge(d) ? Math.min(d, A) : A) : n === "s" ? (A = Math.max(I || -1 / 0, j || -1 / 0), u.top = c = Ge(c) ? Math.max(c, A) : A) : n === "e" && (A = Math.max(I || -1 / 0, j || -1 / 0), u.left = c = Ge(c) ? Math.max(c, A) : A));
|
|
29830
29830
|
var W = o && o[v.id];
|
|
29831
|
-
W && (n === "n" ? (A = r + v[bi[t]] - W[bi[t]], u.bottom = d =
|
|
29831
|
+
W && (n === "n" ? (A = r + v[bi[t]] - W[bi[t]], u.bottom = d = Ge(d) ? Math.min(d, A) : A) : n === "w" ? (A = r + v[bi[t]] - W[bi[t]], u.right = d = Ge(d) ? Math.min(d, A) : A) : n === "s" ? (A = r - v[bi[t]] + W[bi[t]], u.top = c = Ge(c) ? Math.max(c, A) : A) : n === "e" && (A = r - v[bi[t]] + W[bi[t]], u.left = c = Ge(c) ? Math.max(c, A) : A));
|
|
29832
29832
|
}), u;
|
|
29833
29833
|
}
|
|
29834
29834
|
}
|
|
@@ -29856,11 +29856,11 @@ function Qw(e, t, n, r, o) {
|
|
|
29856
29856
|
x: "M 0,-10000 L 0,10000",
|
|
29857
29857
|
y: "M -10000,0 L 10000,0"
|
|
29858
29858
|
}, v = $e("g");
|
|
29859
|
-
Ce(v, r.cls("djs-crosshair-group", ["no-events"])),
|
|
29859
|
+
Ce(v, r.cls("djs-crosshair-group", ["no-events"])), Ve(u, v);
|
|
29860
29860
|
var m = $e("path");
|
|
29861
|
-
Ce(m, "d", d.x), ot(m).add("djs-crosshair"),
|
|
29861
|
+
Ce(m, "d", d.x), ot(m).add("djs-crosshair"), Ve(v, m);
|
|
29862
29862
|
var y = $e("path");
|
|
29863
|
-
Ce(y, "d", d.y), ot(y).add("djs-crosshair"),
|
|
29863
|
+
Ce(y, "d", d.y), ot(y).add("djs-crosshair"), Ve(v, y), c.crosshairGroup = v;
|
|
29864
29864
|
}), e.on("spaceTool.selection.move", function(l) {
|
|
29865
29865
|
var u = l.context.crosshairGroup;
|
|
29866
29866
|
tr(u, l.x, l.y);
|
|
@@ -29872,9 +29872,9 @@ function Qw(e, t, n, r, o) {
|
|
|
29872
29872
|
if (u.initialized) {
|
|
29873
29873
|
if (!u.dragGroup) {
|
|
29874
29874
|
var y = n.getLayer("space");
|
|
29875
|
-
c = $e("path"), Ce(c, "d", "M0,0 L0,0"), ot(c).add("djs-crosshair"),
|
|
29875
|
+
c = $e("path"), Ce(c, "d", "M0,0 L0,0"), ot(c).add("djs-crosshair"), Ve(y, c), u.line = c;
|
|
29876
29876
|
var b = $e("g");
|
|
29877
|
-
Ce(b, r.cls("djs-drag-group", ["no-events"])),
|
|
29877
|
+
Ce(b, r.cls("djs-drag-group", ["no-events"])), Ve(n.getActiveLayer(), b), s(v, b);
|
|
29878
29878
|
var _ = u.movingConnections = t.filter(function(T) {
|
|
29879
29879
|
var M = !1;
|
|
29880
29880
|
H(v, function(W) {
|
|
@@ -29905,7 +29905,7 @@ function Qw(e, t, n, r, o) {
|
|
|
29905
29905
|
}
|
|
29906
29906
|
if (!u.frameGroup) {
|
|
29907
29907
|
var S = $e("g");
|
|
29908
|
-
Ce(S, r.cls("djs-frame-group", ["no-events"])),
|
|
29908
|
+
Ce(S, r.cls("djs-frame-group", ["no-events"])), Ve(n.getActiveLayer(), S);
|
|
29909
29909
|
var A = [];
|
|
29910
29910
|
H(m, function(T) {
|
|
29911
29911
|
var M = o.addFrame(T, S), I = M.getBBox();
|
|
@@ -30872,7 +30872,7 @@ mm.$inject = [
|
|
|
30872
30872
|
mm.prototype.preExecute = function(e) {
|
|
30873
30873
|
var t = e.elements, n = e.parent, r = e.parentIndex, o = e.position, s = e.hints, l = this._modeling;
|
|
30874
30874
|
H(t, function(m) {
|
|
30875
|
-
|
|
30875
|
+
Ge(m.x) || (m.x = 0), Ge(m.y) || (m.y = 0);
|
|
30876
30876
|
});
|
|
30877
30877
|
var u = Qe(t, function(m) {
|
|
30878
30878
|
return !m.hidden;
|
|
@@ -30891,7 +30891,7 @@ mm.prototype.preExecute = function(e) {
|
|
|
30891
30891
|
var d = yp(t), v = {};
|
|
30892
30892
|
H(t, function(m) {
|
|
30893
30893
|
if (Xb(m)) {
|
|
30894
|
-
v[m.id] =
|
|
30894
|
+
v[m.id] = Ge(r) ? l.createConnection(
|
|
30895
30895
|
v[m.source.id],
|
|
30896
30896
|
v[m.target.id],
|
|
30897
30897
|
r,
|
|
@@ -30908,7 +30908,7 @@ mm.prototype.preExecute = function(e) {
|
|
|
30908
30908
|
return;
|
|
30909
30909
|
}
|
|
30910
30910
|
var y = K({}, s);
|
|
30911
|
-
d.indexOf(m) === -1 && (y.autoResize = !1), v[m.id] =
|
|
30911
|
+
d.indexOf(m) === -1 && (y.autoResize = !1), v[m.id] = Ge(r) ? l.createShape(
|
|
30912
30912
|
m,
|
|
30913
30913
|
xr(m, ["x", "y", "width", "height"]),
|
|
30914
30914
|
m.parent || n,
|
|
@@ -32784,7 +32784,7 @@ function b1(e, t, n, r) {
|
|
|
32784
32784
|
var b = $e("g");
|
|
32785
32785
|
Ce(b, n.cls("djs-drag-group", ["no-events"]));
|
|
32786
32786
|
var _ = t.getActiveLayer();
|
|
32787
|
-
|
|
32787
|
+
Ve(_, b), d.dragGroup = b;
|
|
32788
32788
|
}
|
|
32789
32789
|
y.forEach(function(S) {
|
|
32790
32790
|
r.addDragger(S, d.dragGroup);
|
|
@@ -32855,7 +32855,7 @@ function Aa(e, t, n, r, o, s, l) {
|
|
|
32855
32855
|
height: 1,
|
|
32856
32856
|
x: 0,
|
|
32857
32857
|
y: 0
|
|
32858
|
-
}),
|
|
32858
|
+
}), Ve(v, m);
|
|
32859
32859
|
},
|
|
32860
32860
|
update: function(d) {
|
|
32861
32861
|
var v = d.frame, m = d.bbox;
|
|
@@ -33059,7 +33059,7 @@ Ss.prototype.isActive = function() {
|
|
|
33059
33059
|
return e ? /^(hand|hand\.move)$/.test(e.prefix) : !1;
|
|
33060
33060
|
};
|
|
33061
33061
|
function mE(e) {
|
|
33062
|
-
return
|
|
33062
|
+
return un("Space", e);
|
|
33063
33063
|
}
|
|
33064
33064
|
const cB = {
|
|
33065
33065
|
__depends__: [
|
|
@@ -33544,7 +33544,7 @@ si.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
|
33544
33544
|
return;
|
|
33545
33545
|
}
|
|
33546
33546
|
e.add("mid", Er(o));
|
|
33547
|
-
}), !
|
|
33547
|
+
}), !Ge(t.x) || !Ge(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Er(t)), e;
|
|
33548
33548
|
};
|
|
33549
33549
|
si.prototype.getSnapTargets = function(e, t) {
|
|
33550
33550
|
return Vx(t).filter(function(n) {
|
|
@@ -33741,9 +33741,9 @@ ko.prototype.snap = function(e, t) {
|
|
|
33741
33741
|
};
|
|
33742
33742
|
ko.prototype._createLine = function(e) {
|
|
33743
33743
|
var t = this._canvas.getLayer("snap"), n = $e("path");
|
|
33744
|
-
return Ce(n, { d: "M0,0 L0,0" }), ot(n).add("djs-snap-line"),
|
|
33744
|
+
return Ce(n, { d: "M0,0 L0,0" }), ot(n).add("djs-snap-line"), Ve(t, n), {
|
|
33745
33745
|
update: function(r) {
|
|
33746
|
-
|
|
33746
|
+
Ge(r) ? e === "horizontal" ? Ce(n, {
|
|
33747
33747
|
d: "M-100000," + r + " L+100000," + r,
|
|
33748
33748
|
display: ""
|
|
33749
33749
|
}) : Ce(n, {
|
|
@@ -33816,19 +33816,19 @@ Ye.prototype._bindEvents = function() {
|
|
|
33816
33816
|
}), t(this._container, Ye.RESULT_SELECTOR, "click", function(n) {
|
|
33817
33817
|
n.stopPropagation(), e._select(n.delegateTarget);
|
|
33818
33818
|
}), t(this._container, Ye.INPUT_SELECTOR, "keydown", function(n) {
|
|
33819
|
-
|
|
33819
|
+
un("ArrowUp", n) && n.preventDefault(), un("ArrowDown", n) && n.preventDefault();
|
|
33820
33820
|
}), t(this._container, Ye.INPUT_SELECTOR, "keyup", function(n) {
|
|
33821
|
-
if (
|
|
33821
|
+
if (un("Escape", n))
|
|
33822
33822
|
return e.close();
|
|
33823
|
-
if (
|
|
33823
|
+
if (un("Enter", n)) {
|
|
33824
33824
|
var r = e._getCurrentResult();
|
|
33825
33825
|
return r ? e._select(r) : e.close();
|
|
33826
33826
|
}
|
|
33827
|
-
if (
|
|
33827
|
+
if (un("ArrowUp", n))
|
|
33828
33828
|
return e._scrollToDirection(!0);
|
|
33829
|
-
if (
|
|
33829
|
+
if (un("ArrowDown", n))
|
|
33830
33830
|
return e._scrollToDirection();
|
|
33831
|
-
|
|
33831
|
+
un(["ArrowLeft", "ArrowRight"], n) || e._search(n.delegateTarget.value);
|
|
33832
33832
|
});
|
|
33833
33833
|
};
|
|
33834
33834
|
Ye.prototype._unbindEvents = function() {
|
|
@@ -34628,63 +34628,49 @@ const In = {
|
|
|
34628
34628
|
};
|
|
34629
34629
|
function ZB(e, t, n, r, o, s) {
|
|
34630
34630
|
const l = Se("a-input"), u = Se("a-form-item"), c = Se("a-switch"), d = Se("a-form");
|
|
34631
|
-
return
|
|
34631
|
+
return Ke(), ht(d, {
|
|
34632
34632
|
model: e.bpmnFormData,
|
|
34633
34633
|
"label-width": "80px",
|
|
34634
34634
|
rules: e.rules,
|
|
34635
34635
|
size: "small"
|
|
34636
34636
|
}, {
|
|
34637
34637
|
default: se(() => [
|
|
34638
|
-
e.bpmnFormData.$type !== "bpmn:Process" ? (
|
|
34638
|
+
e.bpmnFormData.$type !== "bpmn:Process" ? (Ke(), ht(u, {
|
|
34639
34639
|
key: 0,
|
|
34640
|
-
label: "节点ID",
|
|
34641
|
-
prop: "id"
|
|
34642
|
-
}, {
|
|
34643
|
-
default: se(() => [
|
|
34644
|
-
oe(l, {
|
|
34645
|
-
value: e.bpmnFormData.id,
|
|
34646
|
-
"onUpdate:value": t[0] || (t[0] = (v) => e.bpmnFormData.id = v),
|
|
34647
|
-
onChange: t[1] || (t[1] = (v) => e.updateElementTask("id"))
|
|
34648
|
-
}, null, 8, ["value"])
|
|
34649
|
-
]),
|
|
34650
|
-
_: 1
|
|
34651
|
-
})) : nn("", !0),
|
|
34652
|
-
e.bpmnFormData.$type !== "bpmn:Process" ? (Ge(), dt(u, {
|
|
34653
|
-
key: 1,
|
|
34654
34640
|
label: "节点名称",
|
|
34655
34641
|
prop: "name"
|
|
34656
34642
|
}, {
|
|
34657
34643
|
default: se(() => [
|
|
34658
34644
|
oe(l, {
|
|
34659
34645
|
value: e.bpmnFormData.name,
|
|
34660
|
-
"onUpdate:value": t[
|
|
34661
|
-
onChange: t[
|
|
34646
|
+
"onUpdate:value": t[0] || (t[0] = (v) => e.bpmnFormData.name = v),
|
|
34647
|
+
onChange: t[1] || (t[1] = (v) => e.updateElementTask("name"))
|
|
34662
34648
|
}, null, 8, ["value"])
|
|
34663
34649
|
]),
|
|
34664
34650
|
_: 1
|
|
34665
|
-
})) :
|
|
34666
|
-
e.bpmnFormData.$type === "bpmn:SubProcess" ? (
|
|
34667
|
-
key:
|
|
34651
|
+
})) : pn("", !0),
|
|
34652
|
+
e.bpmnFormData.$type === "bpmn:SubProcess" ? (Ke(), ht(u, {
|
|
34653
|
+
key: 1,
|
|
34668
34654
|
label: "状态"
|
|
34669
34655
|
}, {
|
|
34670
34656
|
default: se(() => [
|
|
34671
34657
|
oe(c, {
|
|
34672
34658
|
checked: e.bpmnFormData.isExpanded,
|
|
34673
|
-
"onUpdate:checked": t[
|
|
34659
|
+
"onUpdate:checked": t[2] || (t[2] = (v) => e.bpmnFormData.isExpanded = v),
|
|
34674
34660
|
"active-text": "展开",
|
|
34675
34661
|
"inactive-text": "折叠",
|
|
34676
|
-
onChange: t[
|
|
34662
|
+
onChange: t[3] || (t[3] = (v) => e.updateElementTask("isExpanded"))
|
|
34677
34663
|
}, null, 8, ["checked"])
|
|
34678
34664
|
]),
|
|
34679
34665
|
_: 1
|
|
34680
|
-
})) :
|
|
34666
|
+
})) : pn("", !0),
|
|
34681
34667
|
oe(u, { label: "节点描述" }, {
|
|
34682
34668
|
default: se(() => [
|
|
34683
34669
|
oe(l, {
|
|
34684
34670
|
rows: 2,
|
|
34685
34671
|
type: "textarea",
|
|
34686
34672
|
value: e.bpmnFormData.documentationValue,
|
|
34687
|
-
"onUpdate:value": t[
|
|
34673
|
+
"onUpdate:value": t[4] || (t[4] = (v) => e.bpmnFormData.documentationValue = v),
|
|
34688
34674
|
onChange: e.updateDocumentation
|
|
34689
34675
|
}, null, 8, ["value", "onChange"])
|
|
34690
34676
|
]),
|
|
@@ -34817,9 +34803,9 @@ const e3 = { style: { display: "flex" } }, t3 = {
|
|
|
34817
34803
|
}, n3 = { class: "head-container" }, r3 = { class: "head-container" }, i3 = { style: { width: "100%" } };
|
|
34818
34804
|
function o3(e, t, n, r, o, s) {
|
|
34819
34805
|
const l = Se("search-outlined"), u = Se("a-input"), c = Se("a-tree"), d = Se("a-form-item"), v = Se("a-button"), m = Se("sync-outlined"), y = Se("a-form"), b = Se("a-table-column"), _ = Se("a-table"), S = Se("a-pagination");
|
|
34820
|
-
return
|
|
34806
|
+
return Ke(), cn("div", null, [
|
|
34821
34807
|
wt("div", e3, [
|
|
34822
|
-
e.deptOptions.length > 0 ? (
|
|
34808
|
+
e.deptOptions.length > 0 ? (Ke(), cn("div", t3, [
|
|
34823
34809
|
wt("div", n3, [
|
|
34824
34810
|
oe(u, {
|
|
34825
34811
|
value: e.deptName,
|
|
@@ -34848,7 +34834,7 @@ function o3(e, t, n, r, o, s) {
|
|
|
34848
34834
|
ref: "treeRef"
|
|
34849
34835
|
}, null, 8, ["tree-data", "filter-node-method", "selected-keys", "onSelect"])
|
|
34850
34836
|
])
|
|
34851
|
-
])) :
|
|
34837
|
+
])) : pn("", !0),
|
|
34852
34838
|
wt("div", i3, [
|
|
34853
34839
|
Uc(oe(y, {
|
|
34854
34840
|
model: e.queryParams,
|
|
@@ -34910,7 +34896,7 @@ function o3(e, t, n, r, o, s) {
|
|
|
34910
34896
|
}, 8, ["model"]), [
|
|
34911
34897
|
[Gc, e.showSearch]
|
|
34912
34898
|
]),
|
|
34913
|
-
e.checkType === "multiple" ? (
|
|
34899
|
+
e.checkType === "multiple" ? (Ke(), ht(_, {
|
|
34914
34900
|
key: 0,
|
|
34915
34901
|
ref: "dataTable",
|
|
34916
34902
|
loading: e.loading,
|
|
@@ -34925,7 +34911,7 @@ function o3(e, t, n, r, o, s) {
|
|
|
34925
34911
|
size: "small"
|
|
34926
34912
|
}, {
|
|
34927
34913
|
default: se(() => [
|
|
34928
|
-
(
|
|
34914
|
+
(Ke(!0), cn(ro, null, ua(e.visibleColumns, (A) => (Ke(), ht(b, {
|
|
34929
34915
|
key: A.key,
|
|
34930
34916
|
title: A.label,
|
|
34931
34917
|
"data-index": A.prop,
|
|
@@ -34934,7 +34920,7 @@ function o3(e, t, n, r, o, s) {
|
|
|
34934
34920
|
}, null, 8, ["title", "data-index", "width"]))), 128))
|
|
34935
34921
|
]),
|
|
34936
34922
|
_: 1
|
|
34937
|
-
}, 8, ["loading", "row-key", "data-source", "row-selection"])) : e.checkType === "single" ? (
|
|
34923
|
+
}, 8, ["loading", "row-key", "data-source", "row-selection"])) : e.checkType === "single" ? (Ke(), ht(_, {
|
|
34938
34924
|
key: 1,
|
|
34939
34925
|
loading: e.loading,
|
|
34940
34926
|
"data-source": e.userList,
|
|
@@ -34948,7 +34934,7 @@ function o3(e, t, n, r, o, s) {
|
|
|
34948
34934
|
}
|
|
34949
34935
|
}, {
|
|
34950
34936
|
default: se(() => [
|
|
34951
|
-
(
|
|
34937
|
+
(Ke(!0), cn(ro, null, ua(e.visibleColumns, (A) => (Ke(), ht(b, {
|
|
34952
34938
|
key: A.key,
|
|
34953
34939
|
title: A.label,
|
|
34954
34940
|
"data-index": A.prop,
|
|
@@ -34957,7 +34943,7 @@ function o3(e, t, n, r, o, s) {
|
|
|
34957
34943
|
}, null, 8, ["title", "data-index", "width"]))), 128))
|
|
34958
34944
|
]),
|
|
34959
34945
|
_: 1
|
|
34960
|
-
}, 8, ["loading", "data-source", "rowKey", "row-selection"])) :
|
|
34946
|
+
}, 8, ["loading", "data-source", "rowKey", "row-selection"])) : pn("", !0),
|
|
34961
34947
|
Uc(oe(S, {
|
|
34962
34948
|
total: e.total,
|
|
34963
34949
|
current: e.queryParams.pageNum,
|
|
@@ -35054,7 +35040,7 @@ const a3 = /* @__PURE__ */ li(QB, [["render", o3], ["__scopeId", "data-v-e297359
|
|
|
35054
35040
|
const l3 = { class: "app-container" };
|
|
35055
35041
|
function u3(e, t, n, r, o, s) {
|
|
35056
35042
|
const l = Se("a-input"), u = Se("a-form-item"), c = Se("search-outlined"), d = Se("a-button"), v = Se("sync-outlined"), m = Se("a-form"), y = Se("a-table-column"), b = Se("a-table"), _ = Se("a-pagination");
|
|
35057
|
-
return
|
|
35043
|
+
return Ke(), cn("div", l3, [
|
|
35058
35044
|
Uc(oe(m, {
|
|
35059
35045
|
model: e.queryParams,
|
|
35060
35046
|
layout: "inline",
|
|
@@ -35112,7 +35098,7 @@ function u3(e, t, n, r, o, s) {
|
|
|
35112
35098
|
}, 8, ["model", "onFinish"]), [
|
|
35113
35099
|
[Gc, e.showSearch]
|
|
35114
35100
|
]),
|
|
35115
|
-
e.checkType === "multiple" ? (
|
|
35101
|
+
e.checkType === "multiple" ? (Ke(), ht(b, {
|
|
35116
35102
|
key: 0,
|
|
35117
35103
|
loading: e.loading,
|
|
35118
35104
|
"data-source": e.roleList,
|
|
@@ -35144,7 +35130,7 @@ function u3(e, t, n, r, o, s) {
|
|
|
35144
35130
|
})
|
|
35145
35131
|
]),
|
|
35146
35132
|
_: 1
|
|
35147
|
-
}, 8, ["loading", "data-source", "row-key", "row-selection"])) : e.checkType === "single" ? (
|
|
35133
|
+
}, 8, ["loading", "data-source", "row-key", "row-selection"])) : e.checkType === "single" ? (Ke(), ht(b, {
|
|
35148
35134
|
key: 1,
|
|
35149
35135
|
loading: e.loading,
|
|
35150
35136
|
"data-source": e.roleList,
|
|
@@ -35176,8 +35162,8 @@ function u3(e, t, n, r, o, s) {
|
|
|
35176
35162
|
})
|
|
35177
35163
|
]),
|
|
35178
35164
|
_: 1
|
|
35179
|
-
}, 8, ["loading", "data-source", "row-key", "row-selection"])) :
|
|
35180
|
-
e.total > 0 ? (
|
|
35165
|
+
}, 8, ["loading", "data-source", "row-key", "row-selection"])) : pn("", !0),
|
|
35166
|
+
e.total > 0 ? (Ke(), ht(_, {
|
|
35181
35167
|
key: 2,
|
|
35182
35168
|
total: e.total,
|
|
35183
35169
|
current: e.queryParams.pageNum,
|
|
@@ -35187,7 +35173,7 @@ function u3(e, t, n, r, o, s) {
|
|
|
35187
35173
|
onChange: e.handlePageChange,
|
|
35188
35174
|
onShowSizeChange: e.handlePageSizeChange,
|
|
35189
35175
|
style: { "margin-top": "16px", "text-align": "right" }
|
|
35190
|
-
}, null, 8, ["total", "current", "page-size", "onChange", "onShowSizeChange"])) :
|
|
35176
|
+
}, null, 8, ["total", "current", "page-size", "onChange", "onShowSizeChange"])) : pn("", !0)
|
|
35191
35177
|
]);
|
|
35192
35178
|
}
|
|
35193
35179
|
const c3 = /* @__PURE__ */ li(s3, [["render", u3], ["__scopeId", "data-v-aef69da1"]]), p3 = {
|
|
@@ -35269,7 +35255,7 @@ const c3 = /* @__PURE__ */ li(s3, [["render", u3], ["__scopeId", "data-v-aef69da
|
|
|
35269
35255
|
const d3 = { class: "app-container" };
|
|
35270
35256
|
function h3(e, t, n, r, o, s) {
|
|
35271
35257
|
const l = Se("a-input"), u = Se("a-form-item"), c = Se("SearchOutlined"), d = Se("a-button"), v = Se("RedoOutlined"), m = Se("a-form"), y = Se("a-table-column"), b = Se("a-table"), _ = Se("a-pagination");
|
|
35272
|
-
return
|
|
35258
|
+
return Ke(), cn("div", d3, [
|
|
35273
35259
|
Uc(oe(m, {
|
|
35274
35260
|
model: e.queryParams,
|
|
35275
35261
|
layout: "inline",
|
|
@@ -35357,7 +35343,7 @@ function h3(e, t, n, r, o, s) {
|
|
|
35357
35343
|
]),
|
|
35358
35344
|
_: 1
|
|
35359
35345
|
}, 8, ["loading", "data-source", "row-selection"]),
|
|
35360
|
-
e.total > 0 ? (
|
|
35346
|
+
e.total > 0 ? (Ke(), ht(_, {
|
|
35361
35347
|
key: 0,
|
|
35362
35348
|
total: e.total,
|
|
35363
35349
|
current: e.queryParams.pageNum,
|
|
@@ -35366,7 +35352,7 @@ function h3(e, t, n, r, o, s) {
|
|
|
35366
35352
|
"show-less-items": "",
|
|
35367
35353
|
onChange: e.handlePageChange,
|
|
35368
35354
|
onShowSizeChange: e.handlePageSizeChange
|
|
35369
|
-
}, null, 8, ["total", "current", "page-size", "onChange", "onShowSizeChange"])) :
|
|
35355
|
+
}, null, 8, ["total", "current", "page-size", "onChange", "onShowSizeChange"])) : pn("", !0)
|
|
35370
35356
|
]);
|
|
35371
35357
|
}
|
|
35372
35358
|
const v3 = /* @__PURE__ */ li(f3, [["render", h3], ["__scopeId", "data-v-8afeeb4c"]]), m3 = ni({
|
|
@@ -35628,13 +35614,13 @@ const v3 = /* @__PURE__ */ li(f3, [["render", h3], ["__scopeId", "data-v-8afeeb4
|
|
|
35628
35614
|
const g3 = { key: 0 };
|
|
35629
35615
|
function y3(e, t, n, r, o, s) {
|
|
35630
35616
|
const l = Se("a-alert"), u = Se("a-radio-button"), c = Se("a-radio-group"), d = Se("a-form-item"), v = Se("UserOutlined"), m = Se("a-button"), y = Se("a-tooltip"), b = Se("a-tag"), _ = Se("a-space"), S = Se("CodeOutlined"), A = Se("TeamOutlined"), B = Se("a-form"), D = Se("flow-user"), k = Se("a-modal"), T = Se("flow-role"), M = Se("flow-exp");
|
|
35631
|
-
return
|
|
35632
|
-
e.nodeType !== "bpmn:UserTask" ? (
|
|
35617
|
+
return Ke(), cn("div", null, [
|
|
35618
|
+
e.nodeType !== "bpmn:UserTask" ? (Ke(), cn("div", g3, [
|
|
35633
35619
|
oe(l, {
|
|
35634
35620
|
message: "选择任务节点后配置",
|
|
35635
35621
|
type: "warning"
|
|
35636
35622
|
})
|
|
35637
|
-
])) : (
|
|
35623
|
+
])) : (Ke(), ht(B, {
|
|
35638
35624
|
key: 1,
|
|
35639
35625
|
"label-col": { span: 6 },
|
|
35640
35626
|
"wrapper-col": { span: 18 },
|
|
@@ -35650,7 +35636,7 @@ function y3(e, t, n, r, o, s) {
|
|
|
35650
35636
|
onChange: e.updateUserType
|
|
35651
35637
|
}, {
|
|
35652
35638
|
default: se(() => [
|
|
35653
|
-
(
|
|
35639
|
+
(Ke(!0), cn(ro, null, ua(e.userTypeOption, (I) => (Ke(), ht(u, {
|
|
35654
35640
|
value: I.value,
|
|
35655
35641
|
key: I.value
|
|
35656
35642
|
}, {
|
|
@@ -35665,7 +35651,7 @@ function y3(e, t, n, r, o, s) {
|
|
|
35665
35651
|
]),
|
|
35666
35652
|
_: 1
|
|
35667
35653
|
}),
|
|
35668
|
-
e.bpmnFormData.userType === "assignee" ? (
|
|
35654
|
+
e.bpmnFormData.userType === "assignee" ? (Ke(), ht(d, {
|
|
35669
35655
|
key: 0,
|
|
35670
35656
|
label: "指定人员"
|
|
35671
35657
|
}, {
|
|
@@ -35687,7 +35673,7 @@ function y3(e, t, n, r, o, s) {
|
|
|
35687
35673
|
]),
|
|
35688
35674
|
_: 1
|
|
35689
35675
|
}),
|
|
35690
|
-
(
|
|
35676
|
+
(Ke(!0), cn(ro, null, ua(e.assigneeList, (I) => (Ke(), ht(b, { color: "green" }, {
|
|
35691
35677
|
default: se(() => [
|
|
35692
35678
|
tt(io(I), 1)
|
|
35693
35679
|
]),
|
|
@@ -35698,7 +35684,7 @@ function y3(e, t, n, r, o, s) {
|
|
|
35698
35684
|
})
|
|
35699
35685
|
]),
|
|
35700
35686
|
_: 1
|
|
35701
|
-
})) : e.bpmnFormData.userType === "candidateUsers" ? (
|
|
35687
|
+
})) : e.bpmnFormData.userType === "candidateUsers" ? (Ke(), ht(d, {
|
|
35702
35688
|
key: 1,
|
|
35703
35689
|
label: "候选人员"
|
|
35704
35690
|
}, {
|
|
@@ -35738,7 +35724,7 @@ function y3(e, t, n, r, o, s) {
|
|
|
35738
35724
|
]),
|
|
35739
35725
|
_: 1
|
|
35740
35726
|
}),
|
|
35741
|
-
(
|
|
35727
|
+
(Ke(!0), cn(ro, null, ua(e.candidateUsersList, (I) => (Ke(), ht(b, { color: "green" }, {
|
|
35742
35728
|
default: se(() => [
|
|
35743
35729
|
tt(io(I), 1)
|
|
35744
35730
|
]),
|
|
@@ -35746,7 +35732,7 @@ function y3(e, t, n, r, o, s) {
|
|
|
35746
35732
|
}, 1024))), 256))
|
|
35747
35733
|
]),
|
|
35748
35734
|
_: 1
|
|
35749
|
-
})) : (
|
|
35735
|
+
})) : (Ke(), ht(d, {
|
|
35750
35736
|
key: 2,
|
|
35751
35737
|
label: "候选角色"
|
|
35752
35738
|
}, {
|
|
@@ -35771,7 +35757,7 @@ function y3(e, t, n, r, o, s) {
|
|
|
35771
35757
|
]),
|
|
35772
35758
|
_: 1
|
|
35773
35759
|
}),
|
|
35774
|
-
(
|
|
35760
|
+
(Ke(!0), cn(ro, null, ua(e.candidateGroupsList, (I) => (Ke(), ht(b, { color: "green" }, {
|
|
35775
35761
|
default: se(() => [
|
|
35776
35762
|
tt(io(I), 1)
|
|
35777
35763
|
]),
|
|
@@ -35813,12 +35799,12 @@ function y3(e, t, n, r, o, s) {
|
|
|
35813
35799
|
}, 8, ["onClick"])
|
|
35814
35800
|
]),
|
|
35815
35801
|
default: se(() => [
|
|
35816
|
-
e.userVisible ? (
|
|
35802
|
+
e.userVisible ? (Ke(), ht(D, {
|
|
35817
35803
|
key: 0,
|
|
35818
35804
|
"check-type": e.checkType,
|
|
35819
35805
|
"select-values": e.selectData.assignee || e.selectData.candidateUsers,
|
|
35820
35806
|
onHandleUserSelect: e.userSelect
|
|
35821
|
-
}, null, 8, ["check-type", "select-values", "onHandleUserSelect"])) :
|
|
35807
|
+
}, null, 8, ["check-type", "select-values", "onHandleUserSelect"])) : pn("", !0)
|
|
35822
35808
|
]),
|
|
35823
35809
|
_: 1
|
|
35824
35810
|
}, 8, ["open"]),
|
|
@@ -35852,11 +35838,11 @@ function y3(e, t, n, r, o, s) {
|
|
|
35852
35838
|
}, 8, ["onClick"])
|
|
35853
35839
|
]),
|
|
35854
35840
|
default: se(() => [
|
|
35855
|
-
e.roleVisible ? (
|
|
35841
|
+
e.roleVisible ? (Ke(), ht(T, {
|
|
35856
35842
|
key: 0,
|
|
35857
35843
|
"select-values": e.selectData.candidateGroups,
|
|
35858
35844
|
onHandleRoleSelect: e.roleSelect
|
|
35859
|
-
}, null, 8, ["select-values", "onHandleRoleSelect"])) :
|
|
35845
|
+
}, null, 8, ["select-values", "onHandleRoleSelect"])) : pn("", !0)
|
|
35860
35846
|
]),
|
|
35861
35847
|
_: 1
|
|
35862
35848
|
}, 8, ["open"]),
|
|
@@ -35890,11 +35876,11 @@ function y3(e, t, n, r, o, s) {
|
|
|
35890
35876
|
}, 8, ["onClick"])
|
|
35891
35877
|
]),
|
|
35892
35878
|
default: se(() => [
|
|
35893
|
-
e.expVisible ? (
|
|
35879
|
+
e.expVisible ? (Ke(), ht(M, {
|
|
35894
35880
|
key: 0,
|
|
35895
35881
|
"select-values": e.selectData.exp,
|
|
35896
35882
|
onHandleSingleExpSelect: e.expSelect
|
|
35897
|
-
}, null, 8, ["select-values", "onHandleSingleExpSelect"])) :
|
|
35883
|
+
}, null, 8, ["select-values", "onHandleSingleExpSelect"])) : pn("", !0)
|
|
35898
35884
|
]),
|
|
35899
35885
|
_: 1
|
|
35900
35886
|
}, 8, ["open"]),
|
|
@@ -35928,12 +35914,12 @@ function y3(e, t, n, r, o, s) {
|
|
|
35928
35914
|
}, 8, ["onClick"])
|
|
35929
35915
|
]),
|
|
35930
35916
|
default: se(() => [
|
|
35931
|
-
e.carbonCopyVisible ? (
|
|
35917
|
+
e.carbonCopyVisible ? (Ke(), ht(D, {
|
|
35932
35918
|
key: 0,
|
|
35933
35919
|
"check-type": "multiple",
|
|
35934
35920
|
"select-values": e.copyItem,
|
|
35935
35921
|
onHandleUserSelect: e.copyItemSelect
|
|
35936
|
-
}, null, 8, ["select-values", "onHandleUserSelect"])) :
|
|
35922
|
+
}, null, 8, ["select-values", "onHandleUserSelect"])) : pn("", !0)
|
|
35937
35923
|
]),
|
|
35938
35924
|
_: 1
|
|
35939
35925
|
}, 8, ["open"])
|
|
@@ -36054,7 +36040,7 @@ const b3 = /* @__PURE__ */ li(m3, [["render", y3], ["__scopeId", "data-v-81d9605
|
|
|
36054
36040
|
const _3 = { style: { display: "flex", gap: "12px", "margin-bottom": "16px", "flex-wrap": "wrap" } };
|
|
36055
36041
|
function x3(e, t, n, r, o, s) {
|
|
36056
36042
|
const l = Se("QuestionCircleOutlined"), u = Se("a-tooltip"), c = Se("a-select-option"), d = Se("a-select"), v = Se("a-form-item"), m = Se("a-input"), y = Se("a-tag"), b = Se("a-textarea"), _ = Se("a-form");
|
|
36057
|
-
return
|
|
36043
|
+
return Ke(), cn("div", null, [
|
|
36058
36044
|
oe(_, {
|
|
36059
36045
|
"label-col": { span: 6 },
|
|
36060
36046
|
layout: "horizontal"
|
|
@@ -36113,7 +36099,7 @@ function x3(e, t, n, r, o, s) {
|
|
|
36113
36099
|
]),
|
|
36114
36100
|
_: 1
|
|
36115
36101
|
}),
|
|
36116
|
-
e.bpmnFormData.type === "condition" ? (
|
|
36102
|
+
e.bpmnFormData.type === "condition" ? (Ke(), ht(v, {
|
|
36117
36103
|
label: "条件格式",
|
|
36118
36104
|
key: "condition"
|
|
36119
36105
|
}, {
|
|
@@ -36141,8 +36127,8 @@ function x3(e, t, n, r, o, s) {
|
|
|
36141
36127
|
}, 8, ["value"])
|
|
36142
36128
|
]),
|
|
36143
36129
|
_: 1
|
|
36144
|
-
})) :
|
|
36145
|
-
e.bpmnFormData.conditionType === "expression" ? (
|
|
36130
|
+
})) : pn("", !0),
|
|
36131
|
+
e.bpmnFormData.conditionType === "expression" ? (Ke(), ht(v, {
|
|
36146
36132
|
label: "表达式",
|
|
36147
36133
|
key: "express"
|
|
36148
36134
|
}, {
|
|
@@ -36163,7 +36149,7 @@ function x3(e, t, n, r, o, s) {
|
|
|
36163
36149
|
disabled: !e.variable
|
|
36164
36150
|
}, {
|
|
36165
36151
|
default: se(() => [
|
|
36166
|
-
(
|
|
36152
|
+
(Ke(!0), cn(ro, null, ua(e.operatorOptions, (S) => (Ke(), ht(c, {
|
|
36167
36153
|
key: S.value,
|
|
36168
36154
|
value: S.value
|
|
36169
36155
|
}, {
|
|
@@ -36192,9 +36178,9 @@ function x3(e, t, n, r, o, s) {
|
|
|
36192
36178
|
])
|
|
36193
36179
|
]),
|
|
36194
36180
|
_: 1
|
|
36195
|
-
})) :
|
|
36196
|
-
e.bpmnFormData.conditionType === "script" ? (
|
|
36197
|
-
(
|
|
36181
|
+
})) : pn("", !0),
|
|
36182
|
+
e.bpmnFormData.conditionType === "script" ? (Ke(), cn(ro, { key: 2 }, [
|
|
36183
|
+
(Ke(), ht(v, {
|
|
36198
36184
|
label: "脚本语言",
|
|
36199
36185
|
key: "language"
|
|
36200
36186
|
}, {
|
|
@@ -36208,7 +36194,7 @@ function x3(e, t, n, r, o, s) {
|
|
|
36208
36194
|
]),
|
|
36209
36195
|
_: 1
|
|
36210
36196
|
})),
|
|
36211
|
-
(
|
|
36197
|
+
(Ke(), ht(v, {
|
|
36212
36198
|
label: "脚本类型",
|
|
36213
36199
|
key: "scriptType"
|
|
36214
36200
|
}, {
|
|
@@ -36237,7 +36223,7 @@ function x3(e, t, n, r, o, s) {
|
|
|
36237
36223
|
]),
|
|
36238
36224
|
_: 1
|
|
36239
36225
|
})),
|
|
36240
|
-
e.bpmnFormData.scriptType === "inlineScript" ? (
|
|
36226
|
+
e.bpmnFormData.scriptType === "inlineScript" ? (Ke(), ht(v, {
|
|
36241
36227
|
label: "脚本",
|
|
36242
36228
|
key: "body"
|
|
36243
36229
|
}, {
|
|
@@ -36252,8 +36238,8 @@ function x3(e, t, n, r, o, s) {
|
|
|
36252
36238
|
}, null, 8, ["value", "onChange"])
|
|
36253
36239
|
]),
|
|
36254
36240
|
_: 1
|
|
36255
|
-
})) :
|
|
36256
|
-
e.bpmnFormData.scriptType === "externalScript" ? (
|
|
36241
|
+
})) : pn("", !0),
|
|
36242
|
+
e.bpmnFormData.scriptType === "externalScript" ? (Ke(), ht(v, {
|
|
36257
36243
|
label: "资源地址",
|
|
36258
36244
|
key: "resource"
|
|
36259
36245
|
}, {
|
|
@@ -36267,8 +36253,8 @@ function x3(e, t, n, r, o, s) {
|
|
|
36267
36253
|
}, null, 8, ["value", "onChange"])
|
|
36268
36254
|
]),
|
|
36269
36255
|
_: 1
|
|
36270
|
-
})) :
|
|
36271
|
-
], 64)) :
|
|
36256
|
+
})) : pn("", !0)
|
|
36257
|
+
], 64)) : pn("", !0)
|
|
36272
36258
|
]),
|
|
36273
36259
|
_: 1
|
|
36274
36260
|
})
|
|
@@ -36575,7 +36561,7 @@ const A3 = ni({
|
|
|
36575
36561
|
const P3 = { class: "card-header" };
|
|
36576
36562
|
function R3(e, t, n, r, o, s) {
|
|
36577
36563
|
const l = Se("common-panel"), u = Se("a-collapse-panel"), c = Se("user-task-panel"), d = Se("condition-panel"), v = Se("a-collapse");
|
|
36578
|
-
return
|
|
36564
|
+
return Ke(), cn("div", null, [
|
|
36579
36565
|
wt("div", P3, [
|
|
36580
36566
|
wt("span", null, io(e.translateNodeName(e.elementType.value)), 1)
|
|
36581
36567
|
]),
|
|
@@ -36602,7 +36588,7 @@ function R3(e, t, n, r, o, s) {
|
|
|
36602
36588
|
]),
|
|
36603
36589
|
_: 1
|
|
36604
36590
|
}),
|
|
36605
|
-
e.conditionVisible ? (
|
|
36591
|
+
e.conditionVisible ? (Ke(), ht(u, {
|
|
36606
36592
|
key: "condition",
|
|
36607
36593
|
header: "流转条件"
|
|
36608
36594
|
}, {
|
|
@@ -36610,7 +36596,7 @@ function R3(e, t, n, r, o, s) {
|
|
|
36610
36596
|
oe(d, { id: e.elementId }, null, 8, ["id"])
|
|
36611
36597
|
]),
|
|
36612
36598
|
_: 1
|
|
36613
|
-
})) :
|
|
36599
|
+
})) : pn("", !0)
|
|
36614
36600
|
]),
|
|
36615
36601
|
_: 1
|
|
36616
36602
|
}, 8, ["activeKey"])
|
|
@@ -38665,7 +38651,7 @@ const W3 = { class: "flow-header" }, U3 = {
|
|
|
38665
38651
|
}, X3 = { class: "properties-panel" };
|
|
38666
38652
|
function Z3(e, t, n, r, o, s) {
|
|
38667
38653
|
const l = Se("a-button"), u = Se("upload-outlined"), c = Se("a-upload"), d = Se("a-space"), v = Se("Designer"), m = Se("a-card");
|
|
38668
|
-
return
|
|
38654
|
+
return Ke(), cn("div", {
|
|
38669
38655
|
class: CC(["flow-containers", { "view-mode": e.isView }])
|
|
38670
38656
|
}, [
|
|
38671
38657
|
wt("div", W3, [
|
|
@@ -38794,7 +38780,7 @@ function Z3(e, t, n, r, o, s) {
|
|
|
38794
38780
|
])]),
|
|
38795
38781
|
_: 1
|
|
38796
38782
|
}),
|
|
38797
|
-
e.showSaveButton ? (
|
|
38783
|
+
e.showSaveButton ? (Ke(), ht(l, {
|
|
38798
38784
|
key: 0,
|
|
38799
38785
|
type: "primary",
|
|
38800
38786
|
size: "small",
|
|
@@ -38804,7 +38790,7 @@ function Z3(e, t, n, r, o, s) {
|
|
|
38804
38790
|
tt("保存模型", -1)
|
|
38805
38791
|
])]),
|
|
38806
38792
|
_: 1
|
|
38807
|
-
}, 8, ["onClick"])) :
|
|
38793
|
+
}, 8, ["onClick"])) : pn("", !0)
|
|
38808
38794
|
]),
|
|
38809
38795
|
_: 1
|
|
38810
38796
|
})
|
|
@@ -38822,7 +38808,7 @@ function Z3(e, t, n, r, o, s) {
|
|
|
38822
38808
|
class: "normalPanel"
|
|
38823
38809
|
}, {
|
|
38824
38810
|
default: se(() => [
|
|
38825
|
-
e.loadCanvas ? (
|
|
38811
|
+
e.loadCanvas ? (Ke(), ht(v, { key: 0 })) : pn("", !0)
|
|
38826
38812
|
]),
|
|
38827
38813
|
_: 1
|
|
38828
38814
|
})
|
|
@@ -39066,7 +39052,7 @@ const i5 = /* @__PURE__ */ fs(r5), o5 = ni({
|
|
|
39066
39052
|
const a5 = { class: "my-process-main" }, s5 = { class: "xml-editor" }, l5 = { ref: "el" };
|
|
39067
39053
|
function u5(e, t, n, r, o, s) {
|
|
39068
39054
|
const l = Se("bpmn-modeler"), u = Se("a-drawer");
|
|
39069
|
-
return
|
|
39055
|
+
return Ke(), cn("div", a5, [
|
|
39070
39056
|
oe(l, {
|
|
39071
39057
|
ref: "refNode",
|
|
39072
39058
|
xml: e.xml,
|
|
@@ -39213,7 +39199,7 @@ const d5 = { class: "containers" }, h5 = {
|
|
|
39213
39199
|
};
|
|
39214
39200
|
function v5(e, t, n, r, o, s) {
|
|
39215
39201
|
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");
|
|
39216
|
-
return
|
|
39202
|
+
return Ke(), cn("div", d5, [
|
|
39217
39203
|
oe(_, { style: { "align-items": "stretch", height: "100%" } }, {
|
|
39218
39204
|
default: se(() => [
|
|
39219
39205
|
oe(b, { class: "flow-viewer" }, {
|