@kong-ui-public/entities-plugins 9.77.2 → 9.77.3
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.
|
@@ -4517,7 +4517,7 @@ const h1 = (e, t) => {
|
|
|
4517
4517
|
W.forEach((Z) => {
|
|
4518
4518
|
u(j[Z], Z, j, $, te, N);
|
|
4519
4519
|
});
|
|
4520
|
-
const U = $.name, V = cn[U],
|
|
4520
|
+
const U = $.name, V = cn[U], se = [], J = (Z) => {
|
|
4521
4521
|
const K = ["cluster-cache"];
|
|
4522
4522
|
for (const L of K)
|
|
4523
4523
|
if (Z.model.includes(L))
|
|
@@ -4528,12 +4528,12 @@ const h1 = (e, t) => {
|
|
|
4528
4528
|
if (V != null && V.useLegacyForm && (e != null && e.enableRedisPartial) && E._supported_redis_partial_type) {
|
|
4529
4529
|
for (const Z of te.fields)
|
|
4530
4530
|
if (J(Z)) {
|
|
4531
|
-
|
|
4531
|
+
se.push(Z);
|
|
4532
4532
|
continue;
|
|
4533
4533
|
}
|
|
4534
|
-
te.fields = te.fields.filter((Z) => !J(Z)),
|
|
4534
|
+
te.fields = te.fields.filter((Z) => !J(Z)), se.length && te.fields.push({
|
|
4535
4535
|
id: "_redis",
|
|
4536
|
-
fields:
|
|
4536
|
+
fields: se,
|
|
4537
4537
|
model: "__redis_partial",
|
|
4538
4538
|
pluginType: E._isCustomPlugin ? "custom" : "bundled",
|
|
4539
4539
|
redisType: E._supported_redis_partial_type,
|
|
@@ -7330,11 +7330,11 @@ const Q1 = ["data-testid"], eE = ["data-testid"], tE = ["innerHTML"], nE = ["dat
|
|
|
7330
7330
|
},
|
|
7331
7331
|
emits: ["showNewPartialModal", "globalAction"],
|
|
7332
7332
|
setup(e, { emit: t }) {
|
|
7333
|
-
var
|
|
7333
|
+
var se;
|
|
7334
7334
|
const n = t, { t: i } = ht("en-us", vt), o = e, r = it(Uf), a = (r == null ? void 0 : r.isEditing) || !1, s = F(() => {
|
|
7335
7335
|
var J;
|
|
7336
7336
|
return o.redisPath ? o.redisPath : (J = r == null ? void 0 : r.redisPath) != null && J.value ? "$." + r.redisPath.value : "$.config.redis";
|
|
7337
|
-
}), l = o.redisType || ((
|
|
7337
|
+
}), l = o.redisType || ((se = r == null ? void 0 : r.redisType) == null ? void 0 : se.value) || "all", u = F(() => {
|
|
7338
7338
|
var J;
|
|
7339
7339
|
return !!((J = r == null ? void 0 : r.redisType) != null && J.value);
|
|
7340
7340
|
}), d = ie(!1), c = ie(null), f = ie(!a), { getMessageFromError: m } = zi(), h = ie(o.defaultRedisConfigItem), v = ie({}), g = ie(), { value: y } = Bf("$.partials"), { value: b } = Dt(s), _ = it(Wr), {
|
|
@@ -9841,7 +9841,7 @@ const [kx, Cx] = zd(
|
|
|
9841
9841
|
if (C)
|
|
9842
9842
|
return o.value.nodes.push(C), k && l.commit(), C.id;
|
|
9843
9843
|
}
|
|
9844
|
-
function
|
|
9844
|
+
function se(R, k = !0) {
|
|
9845
9845
|
o.value.edges = o.value.edges.filter(
|
|
9846
9846
|
(T) => T.source !== R && T.target !== R
|
|
9847
9847
|
), o.value.nodes = o.value.nodes.filter(
|
|
@@ -10000,7 +10000,7 @@ const [kx, Cx] = zd(
|
|
|
10000
10000
|
})
|
|
10001
10001
|
);
|
|
10002
10002
|
}
|
|
10003
|
-
function
|
|
10003
|
+
function ae(R, k) {
|
|
10004
10004
|
o.value = mc(R, k), l.reset();
|
|
10005
10005
|
}
|
|
10006
10006
|
return {
|
|
@@ -10027,7 +10027,7 @@ const [kx, Cx] = zd(
|
|
|
10027
10027
|
// node ops
|
|
10028
10028
|
createNode: U,
|
|
10029
10029
|
addNode: V,
|
|
10030
|
-
removeNode:
|
|
10030
|
+
removeNode: se,
|
|
10031
10031
|
renameNode: J,
|
|
10032
10032
|
moveNode: Z,
|
|
10033
10033
|
toggleExpanded: K,
|
|
@@ -10045,7 +10045,7 @@ const [kx, Cx] = zd(
|
|
|
10045
10045
|
// serialization
|
|
10046
10046
|
toConfigNodes: ue,
|
|
10047
10047
|
toUINodes: X,
|
|
10048
|
-
load:
|
|
10048
|
+
load: ae,
|
|
10049
10049
|
// history
|
|
10050
10050
|
commit: l.commit,
|
|
10051
10051
|
undo: l.undo,
|
|
@@ -11136,7 +11136,7 @@ function CT() {
|
|
|
11136
11136
|
dy: 0,
|
|
11137
11137
|
dispatch: Y
|
|
11138
11138
|
}), O)) != null)
|
|
11139
|
-
return I = $.x - W[0] || 0, te = $.y - W[1] || 0, function U(V,
|
|
11139
|
+
return I = $.x - W[0] || 0, te = $.y - W[1] || 0, function U(V, se, J) {
|
|
11140
11140
|
var Z = W, K;
|
|
11141
11141
|
switch (V) {
|
|
11142
11142
|
case "start":
|
|
@@ -11145,14 +11145,14 @@ function CT() {
|
|
|
11145
11145
|
case "end":
|
|
11146
11146
|
delete o[N], --a;
|
|
11147
11147
|
case "drag":
|
|
11148
|
-
W = Zt(J ||
|
|
11148
|
+
W = Zt(J || se, S), K = a;
|
|
11149
11149
|
break;
|
|
11150
11150
|
}
|
|
11151
11151
|
Y.call(
|
|
11152
11152
|
V,
|
|
11153
11153
|
x,
|
|
11154
11154
|
new Os(V, {
|
|
11155
|
-
sourceEvent:
|
|
11155
|
+
sourceEvent: se,
|
|
11156
11156
|
subject: $,
|
|
11157
11157
|
target: f,
|
|
11158
11158
|
identifier: N,
|
|
@@ -12380,54 +12380,54 @@ function v$() {
|
|
|
12380
12380
|
function y($) {
|
|
12381
12381
|
$.property("__zoom", Mc).on("wheel.zoom", N, { passive: !1 }).on("mousedown.zoom", j).on("dblclick.zoom", Y).filter(o).on("touchstart.zoom", W).on("touchmove.zoom", I).on("touchend.zoom touchcancel.zoom", te).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
12382
12382
|
}
|
|
12383
|
-
y.transform = function($, U, V,
|
|
12383
|
+
y.transform = function($, U, V, se) {
|
|
12384
12384
|
var J = $.selection ? $.selection() : $;
|
|
12385
|
-
J.property("__zoom", Mc), $ !== J ? S($, U, V,
|
|
12386
|
-
E(this, arguments).event(
|
|
12385
|
+
J.property("__zoom", Mc), $ !== J ? S($, U, V, se) : J.interrupt().each(function() {
|
|
12386
|
+
E(this, arguments).event(se).start().zoom(null, typeof U == "function" ? U.apply(this, arguments) : U).end();
|
|
12387
12387
|
});
|
|
12388
|
-
}, y.scaleBy = function($, U, V,
|
|
12388
|
+
}, y.scaleBy = function($, U, V, se) {
|
|
12389
12389
|
y.scaleTo($, function() {
|
|
12390
12390
|
var J = this.__zoom.k, Z = typeof U == "function" ? U.apply(this, arguments) : U;
|
|
12391
12391
|
return J * Z;
|
|
12392
|
-
}, V,
|
|
12393
|
-
}, y.scaleTo = function($, U, V,
|
|
12392
|
+
}, V, se);
|
|
12393
|
+
}, y.scaleTo = function($, U, V, se) {
|
|
12394
12394
|
y.transform($, function() {
|
|
12395
12395
|
var J = t.apply(this, arguments), Z = this.__zoom, K = V == null ? x(J) : typeof V == "function" ? V.apply(this, arguments) : V, L = Z.invert(K), oe = typeof U == "function" ? U.apply(this, arguments) : U;
|
|
12396
12396
|
return n(_(b(Z, oe), K, L), J, a);
|
|
12397
|
-
}, V,
|
|
12398
|
-
}, y.translateBy = function($, U, V,
|
|
12397
|
+
}, V, se);
|
|
12398
|
+
}, y.translateBy = function($, U, V, se) {
|
|
12399
12399
|
y.transform($, function() {
|
|
12400
12400
|
return n(this.__zoom.translate(
|
|
12401
12401
|
typeof U == "function" ? U.apply(this, arguments) : U,
|
|
12402
12402
|
typeof V == "function" ? V.apply(this, arguments) : V
|
|
12403
12403
|
), t.apply(this, arguments), a);
|
|
12404
|
-
}, null,
|
|
12405
|
-
}, y.translateTo = function($, U, V,
|
|
12404
|
+
}, null, se);
|
|
12405
|
+
}, y.translateTo = function($, U, V, se, J) {
|
|
12406
12406
|
y.transform($, function() {
|
|
12407
|
-
var Z = t.apply(this, arguments), K = this.__zoom, L =
|
|
12407
|
+
var Z = t.apply(this, arguments), K = this.__zoom, L = se == null ? x(Z) : typeof se == "function" ? se.apply(this, arguments) : se;
|
|
12408
12408
|
return n(Li.translate(L[0], L[1]).scale(K.k).translate(
|
|
12409
12409
|
typeof U == "function" ? -U.apply(this, arguments) : -U,
|
|
12410
12410
|
typeof V == "function" ? -V.apply(this, arguments) : -V
|
|
12411
12411
|
), Z, a);
|
|
12412
|
-
},
|
|
12412
|
+
}, se, J);
|
|
12413
12413
|
};
|
|
12414
12414
|
function b($, U) {
|
|
12415
12415
|
return U = Math.max(r[0], Math.min(r[1], U)), U === $.k ? $ : new mn(U, $.x, $.y);
|
|
12416
12416
|
}
|
|
12417
12417
|
function _($, U, V) {
|
|
12418
|
-
var
|
|
12419
|
-
return
|
|
12418
|
+
var se = U[0] - V[0] * $.k, J = U[1] - V[1] * $.k;
|
|
12419
|
+
return se === $.x && J === $.y ? $ : new mn($.k, se, J);
|
|
12420
12420
|
}
|
|
12421
12421
|
function x($) {
|
|
12422
12422
|
return [(+$[0][0] + +$[1][0]) / 2, (+$[0][1] + +$[1][1]) / 2];
|
|
12423
12423
|
}
|
|
12424
|
-
function S($, U, V,
|
|
12424
|
+
function S($, U, V, se) {
|
|
12425
12425
|
$.on("start.zoom", function() {
|
|
12426
|
-
E(this, arguments).event(
|
|
12426
|
+
E(this, arguments).event(se).start();
|
|
12427
12427
|
}).on("interrupt.zoom end.zoom", function() {
|
|
12428
|
-
E(this, arguments).event(
|
|
12428
|
+
E(this, arguments).event(se).end();
|
|
12429
12429
|
}).tween("zoom", function() {
|
|
12430
|
-
var J = this, Z = arguments, K = E(J, Z).event(
|
|
12430
|
+
var J = this, Z = arguments, K = E(J, Z).event(se), L = t.apply(J, Z), oe = V == null ? x(L) : typeof V == "function" ? V.apply(J, Z) : V, de = Math.max(L[1][0] - L[0][0], L[1][1] - L[0][1]), ee = J.__zoom, fe = typeof U == "function" ? U.apply(J, Z) : U, pe = l(ee.invert(oe).concat(de / ee.k), fe.invert(oe).concat(de / fe.k));
|
|
12431
12431
|
return function(xe) {
|
|
12432
12432
|
if (xe === 1)
|
|
12433
12433
|
xe = fe;
|
|
@@ -12476,15 +12476,15 @@ function v$() {
|
|
|
12476
12476
|
function N($, ...U) {
|
|
12477
12477
|
if (!e.apply(this, arguments))
|
|
12478
12478
|
return;
|
|
12479
|
-
var V = E(this, U).event($),
|
|
12479
|
+
var V = E(this, U).event($), se = this.__zoom, J = Math.max(r[0], Math.min(r[1], se.k * Math.pow(2, i.apply(this, arguments)))), Z = Zt($);
|
|
12480
12480
|
if (V.wheel)
|
|
12481
|
-
(V.mouse[0][0] !== Z[0] || V.mouse[0][1] !== Z[1]) && (V.mouse[1] =
|
|
12481
|
+
(V.mouse[0][0] !== Z[0] || V.mouse[0][1] !== Z[1]) && (V.mouse[1] = se.invert(V.mouse[0] = Z)), clearTimeout(V.wheel);
|
|
12482
12482
|
else {
|
|
12483
|
-
if (
|
|
12483
|
+
if (se.k === J)
|
|
12484
12484
|
return;
|
|
12485
|
-
V.mouse = [Z,
|
|
12485
|
+
V.mouse = [Z, se.invert(Z)], vr(this), V.start();
|
|
12486
12486
|
}
|
|
12487
|
-
oo($), V.wheel = setTimeout(K, h), V.zoom("mouse", n(_(b(
|
|
12487
|
+
oo($), V.wheel = setTimeout(K, h), V.zoom("mouse", n(_(b(se, J), V.mouse[0], V.mouse[1]), V.extent, a));
|
|
12488
12488
|
function K() {
|
|
12489
12489
|
V.wheel = null, V.end();
|
|
12490
12490
|
}
|
|
@@ -12492,29 +12492,29 @@ function v$() {
|
|
|
12492
12492
|
function j($, ...U) {
|
|
12493
12493
|
if (f || !e.apply(this, arguments))
|
|
12494
12494
|
return;
|
|
12495
|
-
var V = $.currentTarget,
|
|
12496
|
-
Jp($.view), ja($),
|
|
12495
|
+
var V = $.currentTarget, se = E(this, U, !0).event($), J = jt($.view).on("mousemove.zoom", oe, !0).on("mouseup.zoom", de, !0), Z = Zt($, V), K = $.clientX, L = $.clientY;
|
|
12496
|
+
Jp($.view), ja($), se.mouse = [Z, this.__zoom.invert(Z)], vr(this), se.start();
|
|
12497
12497
|
function oe(ee) {
|
|
12498
|
-
if (oo(ee), !
|
|
12498
|
+
if (oo(ee), !se.moved) {
|
|
12499
12499
|
var fe = ee.clientX - K, pe = ee.clientY - L;
|
|
12500
|
-
|
|
12500
|
+
se.moved = fe * fe + pe * pe > v;
|
|
12501
12501
|
}
|
|
12502
|
-
|
|
12502
|
+
se.event(ee).zoom("mouse", n(_(se.that.__zoom, se.mouse[0] = Zt(ee, V), se.mouse[1]), se.extent, a));
|
|
12503
12503
|
}
|
|
12504
12504
|
function de(ee) {
|
|
12505
|
-
J.on("mousemove.zoom mouseup.zoom", null), Qp(ee.view,
|
|
12505
|
+
J.on("mousemove.zoom mouseup.zoom", null), Qp(ee.view, se.moved), oo(ee), se.event(ee).end();
|
|
12506
12506
|
}
|
|
12507
12507
|
}
|
|
12508
12508
|
function Y($, ...U) {
|
|
12509
12509
|
if (e.apply(this, arguments)) {
|
|
12510
|
-
var V = this.__zoom,
|
|
12511
|
-
oo($), s > 0 ? jt(this).transition().duration(s).call(S, K,
|
|
12510
|
+
var V = this.__zoom, se = Zt($.changedTouches ? $.changedTouches[0] : $, this), J = V.invert(se), Z = V.k * ($.shiftKey ? 0.5 : 2), K = n(_(b(V, Z), se, J), t.apply(this, U), a);
|
|
12511
|
+
oo($), s > 0 ? jt(this).transition().duration(s).call(S, K, se, $) : jt(this).call(y.transform, K, se, $);
|
|
12512
12512
|
}
|
|
12513
12513
|
}
|
|
12514
12514
|
function W($, ...U) {
|
|
12515
12515
|
if (e.apply(this, arguments)) {
|
|
12516
|
-
var V = $.touches,
|
|
12517
|
-
for (ja($), K = 0; K <
|
|
12516
|
+
var V = $.touches, se = V.length, J = E(this, U, $.changedTouches.length === se).event($), Z, K, L, oe;
|
|
12517
|
+
for (ja($), K = 0; K < se; ++K)
|
|
12518
12518
|
L = V[K], oe = Zt(L, this), oe = [oe, this.__zoom.invert(oe), L.identifier], J.touch0 ? !J.touch1 && J.touch0[2] !== oe[2] && (J.touch1 = oe, J.taps = 0) : (J.touch0 = oe, Z = !0, J.taps = 1 + !!d);
|
|
12519
12519
|
d && (d = clearTimeout(d)), Z && (J.taps < 2 && (c = oe[0], d = setTimeout(function() {
|
|
12520
12520
|
d = null;
|
|
@@ -12523,9 +12523,9 @@ function v$() {
|
|
|
12523
12523
|
}
|
|
12524
12524
|
function I($, ...U) {
|
|
12525
12525
|
if (this.__zooming) {
|
|
12526
|
-
var V = E(this, U).event($),
|
|
12526
|
+
var V = E(this, U).event($), se = $.changedTouches, J = se.length, Z, K, L, oe;
|
|
12527
12527
|
for (oo($), Z = 0; Z < J; ++Z)
|
|
12528
|
-
K =
|
|
12528
|
+
K = se[Z], L = Zt(K, this), V.touch0 && V.touch0[2] === K.identifier ? V.touch0[0] = L : V.touch1 && V.touch1[2] === K.identifier && (V.touch1[0] = L);
|
|
12529
12529
|
if (K = V.that.__zoom, V.touch1) {
|
|
12530
12530
|
var de = V.touch0[0], ee = V.touch0[1], fe = V.touch1[0], pe = V.touch1[1], xe = (xe = fe[0] - de[0]) * xe + (xe = fe[1] - de[1]) * xe, Se = (Se = pe[0] - ee[0]) * Se + (Se = pe[1] - ee[1]) * Se;
|
|
12531
12531
|
K = b(K, Math.sqrt(xe / Se)), L = [(de[0] + fe[0]) / 2, (de[1] + fe[1]) / 2], oe = [(ee[0] + pe[0]) / 2, (ee[1] + pe[1]) / 2];
|
|
@@ -12538,11 +12538,11 @@ function v$() {
|
|
|
12538
12538
|
}
|
|
12539
12539
|
function te($, ...U) {
|
|
12540
12540
|
if (this.__zooming) {
|
|
12541
|
-
var V = E(this, U).event($),
|
|
12541
|
+
var V = E(this, U).event($), se = $.changedTouches, J = se.length, Z, K;
|
|
12542
12542
|
for (ja($), f && clearTimeout(f), f = setTimeout(function() {
|
|
12543
12543
|
f = null;
|
|
12544
12544
|
}, m), Z = 0; Z < J; ++Z)
|
|
12545
|
-
K =
|
|
12545
|
+
K = se[Z], V.touch0 && V.touch0[2] === K.identifier ? delete V.touch0 : V.touch1 && V.touch1[2] === K.identifier && delete V.touch1;
|
|
12546
12546
|
if (V.touch1 && !V.touch0 && (V.touch0 = V.touch1, delete V.touch1), V.touch0)
|
|
12547
12547
|
V.touch0[1] = this.__zoom.invert(V.touch0[0]);
|
|
12548
12548
|
else if (V.end(), V.taps === 2 && (K = Zt(K, this), Math.hypot(c[0] - K[0], c[1] - K[1]) < g)) {
|
|
@@ -13544,12 +13544,12 @@ function Om(e) {
|
|
|
13544
13544
|
updateNodePositions: _,
|
|
13545
13545
|
emits: x
|
|
13546
13546
|
} = Ye(), { onStart: S, onDrag: E, onStop: O, onClick: N, el: j, disabled: Y, id: W, selectable: I, dragHandle: te } = e, $ = Xn(!1);
|
|
13547
|
-
let U = [], V,
|
|
13548
|
-
const ee = eN(), fe = ({ x: X, y:
|
|
13549
|
-
J = { x: X, y:
|
|
13547
|
+
let U = [], V, se = null, J = { x: void 0, y: void 0 }, Z = { x: 0, y: 0 }, K = null, L = !1, oe = 0, de = !1;
|
|
13548
|
+
const ee = eN(), fe = ({ x: X, y: ae }) => {
|
|
13549
|
+
J = { x: X, y: ae };
|
|
13550
13550
|
let R = !1;
|
|
13551
13551
|
if (U = U.map((k) => {
|
|
13552
|
-
const C = { x: X - k.distance.x, y:
|
|
13552
|
+
const C = { x: X - k.distance.x, y: ae - k.distance.y }, { computedPosition: T } = Vl(
|
|
13553
13553
|
k,
|
|
13554
13554
|
n.value ? ha(C, i.value) : C,
|
|
13555
13555
|
x.error,
|
|
@@ -13566,18 +13566,18 @@ function Om(e) {
|
|
|
13566
13566
|
E({ event: K, node: k, nodes: C });
|
|
13567
13567
|
}
|
|
13568
13568
|
}, pe = () => {
|
|
13569
|
-
if (!
|
|
13569
|
+
if (!se)
|
|
13570
13570
|
return;
|
|
13571
|
-
const [X,
|
|
13572
|
-
if (X !== 0 ||
|
|
13571
|
+
const [X, ae] = xm(Z, se, d.value);
|
|
13572
|
+
if (X !== 0 || ae !== 0) {
|
|
13573
13573
|
const R = {
|
|
13574
13574
|
x: (J.x ?? 0) - X / l.value.zoom,
|
|
13575
|
-
y: (J.y ?? 0) -
|
|
13575
|
+
y: (J.y ?? 0) - ae / l.value.zoom
|
|
13576
13576
|
};
|
|
13577
|
-
f({ x: X, y:
|
|
13577
|
+
f({ x: X, y: ae }) && fe(R);
|
|
13578
13578
|
}
|
|
13579
13579
|
oe = requestAnimationFrame(pe);
|
|
13580
|
-
}, xe = (X,
|
|
13580
|
+
}, xe = (X, ae) => {
|
|
13581
13581
|
L = !0;
|
|
13582
13582
|
const R = m(W);
|
|
13583
13583
|
!g.value && !h.value && R && (R.selected || y()), R && Ie(I) && g.value && js(
|
|
@@ -13587,7 +13587,7 @@ function Om(e) {
|
|
|
13587
13587
|
y,
|
|
13588
13588
|
v,
|
|
13589
13589
|
!1,
|
|
13590
|
-
|
|
13590
|
+
ae
|
|
13591
13591
|
);
|
|
13592
13592
|
const k = ee(X.sourceEvent);
|
|
13593
13593
|
if (J = k, U = O$(r.value, c.value, k, m, W), U.length) {
|
|
@@ -13598,23 +13598,23 @@ function Om(e) {
|
|
|
13598
13598
|
});
|
|
13599
13599
|
S({ event: X.sourceEvent, node: C, nodes: T });
|
|
13600
13600
|
}
|
|
13601
|
-
}, Se = (X,
|
|
13601
|
+
}, Se = (X, ae) => {
|
|
13602
13602
|
var R;
|
|
13603
|
-
X.sourceEvent.type === "touchmove" && X.sourceEvent.touches.length > 1 || (s.value === 0 && xe(X,
|
|
13604
|
-
}, le = (X,
|
|
13603
|
+
X.sourceEvent.type === "touchmove" && X.sourceEvent.touches.length > 1 || (s.value === 0 && xe(X, ae), J = ee(X.sourceEvent), se = ((R = t.value) == null ? void 0 : R.getBoundingClientRect()) || null, Z = en(X.sourceEvent, se));
|
|
13604
|
+
}, le = (X, ae) => {
|
|
13605
13605
|
const R = ee(X.sourceEvent);
|
|
13606
13606
|
if (!de && L && u.value && (de = !0, pe()), !L) {
|
|
13607
13607
|
const k = R.xSnapped - (J.x ?? 0), C = R.ySnapped - (J.y ?? 0);
|
|
13608
|
-
Math.sqrt(k * k + C * C) > s.value && xe(X,
|
|
13608
|
+
Math.sqrt(k * k + C * C) > s.value && xe(X, ae);
|
|
13609
13609
|
}
|
|
13610
|
-
(J.x !== R.xSnapped || J.y !== R.ySnapped) && U.length && L && (K = X.sourceEvent, Z = en(X.sourceEvent,
|
|
13610
|
+
(J.x !== R.xSnapped || J.y !== R.ySnapped) && U.length && L && (K = X.sourceEvent, Z = en(X.sourceEvent, se), fe(R));
|
|
13611
13611
|
}, ue = (X) => {
|
|
13612
|
-
let
|
|
13612
|
+
let ae = !1;
|
|
13613
13613
|
if (!L && !$.value && !h.value) {
|
|
13614
13614
|
const R = X.sourceEvent, k = ee(R), C = k.xSnapped - (J.x ?? 0), T = k.ySnapped - (J.y ?? 0), A = Math.sqrt(C * C + T * T);
|
|
13615
|
-
A !== 0 && A <= s.value && (N == null || N(R),
|
|
13615
|
+
A !== 0 && A <= s.value && (N == null || N(R), ae = !0);
|
|
13616
13616
|
}
|
|
13617
|
-
if (U.length && !
|
|
13617
|
+
if (U.length && !ae) {
|
|
13618
13618
|
_(U, !1, !1);
|
|
13619
13619
|
const [R, k] = za({
|
|
13620
13620
|
id: W,
|
|
@@ -13625,12 +13625,12 @@ function Om(e) {
|
|
|
13625
13625
|
}
|
|
13626
13626
|
U = [], $.value = !1, de = !1, L = !1, J = { x: void 0, y: void 0 }, cancelAnimationFrame(oe);
|
|
13627
13627
|
};
|
|
13628
|
-
return $e([() => Ie(Y), j], ([X,
|
|
13629
|
-
if (
|
|
13630
|
-
const C = jt(
|
|
13631
|
-
X || (V = CT().on("start", (T) => Se(T,
|
|
13628
|
+
return $e([() => Ie(Y), j], ([X, ae], R, k) => {
|
|
13629
|
+
if (ae) {
|
|
13630
|
+
const C = jt(ae);
|
|
13631
|
+
X || (V = CT().on("start", (T) => Se(T, ae)).on("drag", (T) => le(T, ae)).on("end", (T) => ue(T)).filter((T) => {
|
|
13632
13632
|
const A = T.target, P = Ie(te);
|
|
13633
|
-
return !T.button && (!o.value || !qc(A, `.${o.value}`,
|
|
13633
|
+
return !T.button && (!o.value || !qc(A, `.${o.value}`, ae) && (!P || qc(A, P, ae)));
|
|
13634
13634
|
}), C.call(V)), k(() => {
|
|
13635
13635
|
C.on(".drag", null), V && (V.on("start", null), V.on("drag", null), V.on("end", null));
|
|
13636
13636
|
});
|
|
@@ -13732,7 +13732,7 @@ function Pm({
|
|
|
13732
13732
|
} = Ye();
|
|
13733
13733
|
let W = null, I = !1, te = null;
|
|
13734
13734
|
function $(V) {
|
|
13735
|
-
var
|
|
13735
|
+
var se;
|
|
13736
13736
|
const J = Ie(n) === "target", Z = jl(V), K = Rc(V.target);
|
|
13737
13737
|
if (Z && V.button === 0 || !Z) {
|
|
13738
13738
|
let L = function(ne) {
|
|
@@ -13792,11 +13792,11 @@ function Pm({
|
|
|
13792
13792
|
let ee = Ie(i) || j.value || ir;
|
|
13793
13793
|
!ee && de && (ee = (J ? de.isValidSourcePos : de.isValidTargetPos) || ir);
|
|
13794
13794
|
let fe, pe = 0;
|
|
13795
|
-
const { x: xe, y: Se } = en(V), le = K == null ? void 0 : K.elementFromPoint(xe, Se), ue = Tm(Ie(o), le), X = (
|
|
13795
|
+
const { x: xe, y: Se } = en(V), le = K == null ? void 0 : K.elementFromPoint(xe, Se), ue = Tm(Ie(o), le), X = (se = l.value) == null ? void 0 : se.getBoundingClientRect();
|
|
13796
13796
|
if (!X || !ue)
|
|
13797
13797
|
return;
|
|
13798
|
-
const
|
|
13799
|
-
if (!
|
|
13798
|
+
const ae = H$(Ie(t), ue, Ie(e), Y.value, u.value);
|
|
13799
|
+
if (!ae)
|
|
13800
13800
|
return;
|
|
13801
13801
|
let R, k = en(V, X), C = !1;
|
|
13802
13802
|
const T = () => {
|
|
@@ -13805,10 +13805,10 @@ function Pm({
|
|
|
13805
13805
|
const [ne, q] = xm(k, X, v.value);
|
|
13806
13806
|
y({ x: ne, y: q }), pe = requestAnimationFrame(T);
|
|
13807
13807
|
}, A = {
|
|
13808
|
-
...
|
|
13808
|
+
...ae,
|
|
13809
13809
|
nodeId: Ie(t),
|
|
13810
13810
|
type: ue,
|
|
13811
|
-
position:
|
|
13811
|
+
position: ae.position
|
|
13812
13812
|
}, P = Y.value.get(Ie(t)), re = {
|
|
13813
13813
|
inProgress: !0,
|
|
13814
13814
|
isValid: null,
|
|
@@ -13839,7 +13839,7 @@ function Pm({
|
|
|
13839
13839
|
}
|
|
13840
13840
|
}
|
|
13841
13841
|
function U(V) {
|
|
13842
|
-
var
|
|
13842
|
+
var se, J;
|
|
13843
13843
|
if (!c.value)
|
|
13844
13844
|
return;
|
|
13845
13845
|
const Z = Ie(n) === "target";
|
|
@@ -13884,7 +13884,7 @@ function Pm({
|
|
|
13884
13884
|
O.value,
|
|
13885
13885
|
N.value,
|
|
13886
13886
|
g
|
|
13887
|
-
), ee = ((
|
|
13887
|
+
), ee = ((se = de.connection) == null ? void 0 : se.source) === ((J = de.connection) == null ? void 0 : J.target);
|
|
13888
13888
|
de.isValid && de.connection && !ee && S.connect(de.connection), S.clickConnectEnd(V), x(V, !0);
|
|
13889
13889
|
}
|
|
13890
13890
|
return {
|
|
@@ -14668,7 +14668,7 @@ function dN(e, t, n) {
|
|
|
14668
14668
|
));
|
|
14669
14669
|
}
|
|
14670
14670
|
e.hooks.edgesChange.trigger(A);
|
|
14671
|
-
},
|
|
14671
|
+
}, se = (k, C, T = !0) => {
|
|
14672
14672
|
const A = d(k.id);
|
|
14673
14673
|
if (!A)
|
|
14674
14674
|
return !1;
|
|
@@ -14778,7 +14778,7 @@ function dN(e, t, n) {
|
|
|
14778
14778
|
removeEdges: V,
|
|
14779
14779
|
findNode: u,
|
|
14780
14780
|
findEdge: d,
|
|
14781
|
-
updateEdge:
|
|
14781
|
+
updateEdge: se,
|
|
14782
14782
|
updateEdgeData: J,
|
|
14783
14783
|
updateNode: L,
|
|
14784
14784
|
updateNodeData: oe,
|
|
@@ -14939,11 +14939,11 @@ const fN = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], pN = {
|
|
|
14939
14939
|
const te = u.value.querySelector(".vue-flow__transformationpane");
|
|
14940
14940
|
if (!v.value || !y.value || !te || !e.id)
|
|
14941
14941
|
return;
|
|
14942
|
-
const $ = v.value.getBoundingClientRect(), U = y.value.getBoundingClientRect(), V = window.getComputedStyle(te), { m22:
|
|
14942
|
+
const $ = v.value.getBoundingClientRect(), U = y.value.getBoundingClientRect(), V = window.getComputedStyle(te), { m22: se } = new window.DOMMatrixReadOnly(V.transform), J = {
|
|
14943
14943
|
id: e.id,
|
|
14944
14944
|
position: e.position,
|
|
14945
|
-
x: (U.left - $.left) /
|
|
14946
|
-
y: (U.top - $.top) /
|
|
14945
|
+
x: (U.left - $.left) / se,
|
|
14946
|
+
y: (U.top - $.top) / se,
|
|
14947
14947
|
type: i.value,
|
|
14948
14948
|
nodeId: m,
|
|
14949
14949
|
...ga(y.value)
|
|
@@ -15901,7 +15901,7 @@ const YN = {
|
|
|
15901
15901
|
}), $e(V, (ee) => {
|
|
15902
15902
|
y.value = ee;
|
|
15903
15903
|
});
|
|
15904
|
-
function
|
|
15904
|
+
function se(ee, fe) {
|
|
15905
15905
|
return (pe) => {
|
|
15906
15906
|
pe.target === fe && (ee == null || ee(pe));
|
|
15907
15907
|
};
|
|
@@ -15946,7 +15946,7 @@ const YN = {
|
|
|
15946
15946
|
y: xe < le ? xe : le,
|
|
15947
15947
|
width: Math.abs(pe - Se),
|
|
15948
15948
|
height: Math.abs(xe - le)
|
|
15949
|
-
}, X = N.value,
|
|
15949
|
+
}, X = N.value, ae = j.value;
|
|
15950
15950
|
N.value = new Set(
|
|
15951
15951
|
km(n.value, ue, i.value, h.value === Bl.Partial, !0).map(
|
|
15952
15952
|
(k) => k.id
|
|
@@ -15965,7 +15965,7 @@ const YN = {
|
|
|
15965
15965
|
const k = Tn(_.value, N.value, !0);
|
|
15966
15966
|
o.nodesChange(k);
|
|
15967
15967
|
}
|
|
15968
|
-
if (!Xc(
|
|
15968
|
+
if (!Xc(ae, j.value)) {
|
|
15969
15969
|
const k = Tn(b.value, j.value);
|
|
15970
15970
|
o.edgesChange(k);
|
|
15971
15971
|
}
|
|
@@ -15979,9 +15979,9 @@ const YN = {
|
|
|
15979
15979
|
ref_key: "container",
|
|
15980
15980
|
ref: O,
|
|
15981
15981
|
class: Ge(["vue-flow__pane vue-flow__container", { selection: ee.isSelecting }]),
|
|
15982
|
-
onClick: fe[0] || (fe[0] = (pe) => W.value ? void 0 :
|
|
15983
|
-
onContextmenu: fe[1] || (fe[1] = (pe) =>
|
|
15984
|
-
onWheelPassive: fe[2] || (fe[2] = (pe) =>
|
|
15982
|
+
onClick: fe[0] || (fe[0] = (pe) => W.value ? void 0 : se(J, O.value)(pe)),
|
|
15983
|
+
onContextmenu: fe[1] || (fe[1] = (pe) => se(Z, O.value)(pe)),
|
|
15984
|
+
onWheelPassive: fe[2] || (fe[2] = (pe) => se(K, O.value)(pe)),
|
|
15985
15985
|
onPointerenter: fe[3] || (fe[3] = (pe) => W.value ? void 0 : p(o).paneMouseEnter(pe)),
|
|
15986
15986
|
onPointerdown: fe[4] || (fe[4] = (pe) => W.value ? L(pe) : p(o).paneMouseMove(pe)),
|
|
15987
15987
|
onPointermove: fe[5] || (fe[5] = (pe) => W.value ? oe(pe) : p(o).paneMouseMove(pe)),
|
|
@@ -16047,7 +16047,7 @@ const YN = {
|
|
|
16047
16047
|
} = Ye();
|
|
16048
16048
|
VN(Y);
|
|
16049
16049
|
const I = Xn(!1), te = Xn(!1);
|
|
16050
|
-
let $ = null, U = !1, V = 0,
|
|
16050
|
+
let $ = null, U = !1, V = 0, se = {
|
|
16051
16051
|
x: 0,
|
|
16052
16052
|
y: 0,
|
|
16053
16053
|
zoom: 0
|
|
@@ -16060,23 +16060,23 @@ const YN = {
|
|
|
16060
16060
|
va("Viewport element is missing");
|
|
16061
16061
|
return;
|
|
16062
16062
|
}
|
|
16063
|
-
const le = Y.value, ue = le.getBoundingClientRect(), X = v$().clickDistance(W.value).scaleExtent([t.value, n.value]).translateExtent(o.value),
|
|
16063
|
+
const le = Y.value, ue = le.getBoundingClientRect(), X = v$().clickDistance(W.value).scaleExtent([t.value, n.value]).translateExtent(o.value), ae = jt(le).call(X), R = ae.on("wheel.zoom"), k = Li.translate(i.value.x ?? 0, i.value.y ?? 0).scale(oi(i.value.zoom ?? 1, t.value, n.value)), C = [
|
|
16064
16064
|
[0, 0],
|
|
16065
16065
|
[ue.width, ue.height]
|
|
16066
16066
|
], T = X.constrain()(k, C, o.value);
|
|
16067
|
-
X.transform(
|
|
16067
|
+
X.transform(ae, T), X.wheelDelta(fe), E.value = X, O.value = ae, N.value = R, j.value = { x: T.x, y: T.y, zoom: T.k }, X.on("start", (A) => {
|
|
16068
16068
|
var P;
|
|
16069
16069
|
if (!A.sourceEvent)
|
|
16070
16070
|
return null;
|
|
16071
16071
|
V = A.sourceEvent.button, I.value = !0;
|
|
16072
16072
|
const z = xe(A.transform);
|
|
16073
|
-
((P = A.sourceEvent) == null ? void 0 : P.type) === "mousedown" && (S.value = !0),
|
|
16073
|
+
((P = A.sourceEvent) == null ? void 0 : P.type) === "mousedown" && (S.value = !0), se = z, b.viewportChangeStart(z), b.moveStart({ event: A, flowTransform: z });
|
|
16074
16074
|
}), X.on("end", (A) => {
|
|
16075
16075
|
if (!A.sourceEvent)
|
|
16076
16076
|
return null;
|
|
16077
|
-
if (I.value = !1, S.value = !1, ee(L.value, V ?? 0) && !U && b.paneContextMenu(A.sourceEvent), U = !1, pe(
|
|
16077
|
+
if (I.value = !1, S.value = !1, ee(L.value, V ?? 0) && !U && b.paneContextMenu(A.sourceEvent), U = !1, pe(se, A.transform)) {
|
|
16078
16078
|
const P = xe(A.transform);
|
|
16079
|
-
|
|
16079
|
+
se = P, b.viewportChangeEnd(P), b.moveEnd({ event: A, flowTransform: P });
|
|
16080
16080
|
}
|
|
16081
16081
|
}), X.filter((A) => {
|
|
16082
16082
|
var P;
|
|
@@ -16104,7 +16104,7 @@ const YN = {
|
|
|
16104
16104
|
), $e(
|
|
16105
16105
|
[x, oe, u, K, m, v, g],
|
|
16106
16106
|
() => {
|
|
16107
|
-
oe.value && !K.value && !x.value ?
|
|
16107
|
+
oe.value && !K.value && !x.value ? ae.on(
|
|
16108
16108
|
"wheel.zoom",
|
|
16109
16109
|
(A) => {
|
|
16110
16110
|
if (Se(A, g.value))
|
|
@@ -16113,26 +16113,26 @@ const YN = {
|
|
|
16113
16113
|
if (!(!v.value || oe.value || P || z))
|
|
16114
16114
|
return !1;
|
|
16115
16115
|
A.preventDefault(), A.stopImmediatePropagation();
|
|
16116
|
-
const B =
|
|
16116
|
+
const B = ae.property("__zoom").k || 1, ne = Vr();
|
|
16117
16117
|
if (!J.value && A.ctrlKey && m.value && ne) {
|
|
16118
16118
|
const ke = Zt(A), Ce = fe(A), Le = B * 2 ** Ce;
|
|
16119
|
-
X.scaleTo(
|
|
16119
|
+
X.scaleTo(ae, Le, ke, A);
|
|
16120
16120
|
return;
|
|
16121
16121
|
}
|
|
16122
16122
|
const q = A.deltaMode === 1 ? 20 : 1;
|
|
16123
16123
|
let we = u.value === _o.Vertical ? 0 : A.deltaX * q, ge = u.value === _o.Horizontal ? 0 : A.deltaY * q;
|
|
16124
16124
|
!ne && A.shiftKey && u.value !== _o.Vertical && !we && ge && (we = ge, ge = 0), X.translateBy(
|
|
16125
|
-
|
|
16125
|
+
ae,
|
|
16126
16126
|
-(we / B) * d.value,
|
|
16127
16127
|
-(ge / B) * d.value
|
|
16128
16128
|
);
|
|
16129
|
-
const ce = xe(
|
|
16129
|
+
const ce = xe(ae.property("__zoom"));
|
|
16130
16130
|
$ && clearTimeout($), te.value ? (b.move({ event: A, flowTransform: ce }), b.viewportChange(ce), $ = setTimeout(() => {
|
|
16131
16131
|
b.moveEnd({ event: A, flowTransform: ce }), b.viewportChangeEnd(ce), te.value = !1;
|
|
16132
16132
|
}, 150)) : (te.value = !0, b.moveStart({ event: A, flowTransform: ce }), b.viewportChangeStart(ce));
|
|
16133
16133
|
},
|
|
16134
16134
|
{ passive: !1 }
|
|
16135
|
-
) : typeof R < "u" &&
|
|
16135
|
+
) : typeof R < "u" && ae.on(
|
|
16136
16136
|
"wheel.zoom",
|
|
16137
16137
|
function(A, P) {
|
|
16138
16138
|
const z = !v.value && A.type === "wheel" && !A.ctrlKey, re = K.value || h.value, B = m.value && A.ctrlKey;
|
|
@@ -16281,7 +16281,7 @@ const nd = ql, lO = he({
|
|
|
16281
16281
|
() => typeof _.value.selectable > "u" ? v.value : _.value.selectable
|
|
16282
16282
|
), U = Fe(() => typeof _.value.updatable > "u" ? g.value : _.value.updatable), V = Fe(() => typeof _.value.focusable > "u" ? y.value : _.value.focusable);
|
|
16283
16283
|
nt(X$, e.id), nt(Z$, te);
|
|
16284
|
-
const
|
|
16284
|
+
const se = F(() => _.value.class instanceof Function ? _.value.class(_.value) : _.value.class), J = F(() => _.value.style instanceof Function ? _.value.style(_.value) : _.value.style), Z = F(() => {
|
|
16285
16285
|
const C = _.value.type || "default", T = E == null ? void 0 : E[`edge-${C}`];
|
|
16286
16286
|
if (T)
|
|
16287
16287
|
return T;
|
|
@@ -16326,7 +16326,7 @@ const nd = ql, lO = he({
|
|
|
16326
16326
|
"vue-flow__edge",
|
|
16327
16327
|
`vue-flow__edge-${Z.value === !1 ? "default" : _.value.type || "default"}`,
|
|
16328
16328
|
s.value,
|
|
16329
|
-
|
|
16329
|
+
se.value,
|
|
16330
16330
|
{
|
|
16331
16331
|
updating: N.value,
|
|
16332
16332
|
selected: _.value.selected,
|
|
@@ -16386,7 +16386,7 @@ const nd = ql, lO = he({
|
|
|
16386
16386
|
Ue(
|
|
16387
16387
|
"g",
|
|
16388
16388
|
{
|
|
16389
|
-
onMousedown:
|
|
16389
|
+
onMousedown: ae,
|
|
16390
16390
|
onMouseenter: L,
|
|
16391
16391
|
onMouseout: oe
|
|
16392
16392
|
},
|
|
@@ -16457,7 +16457,7 @@ const nd = ql, lO = he({
|
|
|
16457
16457
|
function X(C) {
|
|
16458
16458
|
x.mouseLeave({ event: C, edge: _.value });
|
|
16459
16459
|
}
|
|
16460
|
-
function
|
|
16460
|
+
function ae(C) {
|
|
16461
16461
|
fe(C, !0);
|
|
16462
16462
|
}
|
|
16463
16463
|
function R(C) {
|
|
@@ -16529,7 +16529,7 @@ const nd = ql, lO = he({
|
|
|
16529
16529
|
return null;
|
|
16530
16530
|
const U = a.value ?? l.value.type ?? qn.Bezier;
|
|
16531
16531
|
let V = "";
|
|
16532
|
-
const
|
|
16532
|
+
const se = {
|
|
16533
16533
|
sourceX: W,
|
|
16534
16534
|
sourceY: I,
|
|
16535
16535
|
sourcePosition: Y,
|
|
@@ -16537,10 +16537,10 @@ const nd = ql, lO = he({
|
|
|
16537
16537
|
targetY: v.value.y,
|
|
16538
16538
|
targetPosition: $
|
|
16539
16539
|
};
|
|
16540
|
-
return U === qn.Bezier ? [V] = Km(
|
|
16541
|
-
...
|
|
16540
|
+
return U === qn.Bezier ? [V] = Km(se) : U === qn.Step ? [V] = qs({
|
|
16541
|
+
...se,
|
|
16542
16542
|
borderRadius: 0
|
|
16543
|
-
}) : U === qn.SmoothStep ? [V] = qs(
|
|
16543
|
+
}) : U === qn.SmoothStep ? [V] = qs(se) : U === qn.SimpleBezier ? [V] = Bm(se) : V = `M${W},${I} ${v.value.x},${v.value.y}`, Ue(
|
|
16544
16544
|
"svg",
|
|
16545
16545
|
{ class: "vue-flow__edges vue-flow__connectionline vue-flow__container" },
|
|
16546
16546
|
Ue(
|
|
@@ -16716,8 +16716,8 @@ const nd = ql, lO = he({
|
|
|
16716
16716
|
hooks: O
|
|
16717
16717
|
} = Ye(), N = ie(null);
|
|
16718
16718
|
nt(Nm, N), nt($m, e.id);
|
|
16719
|
-
const j = it(ya), Y = Lo(), W = Fm(), { node: I, parentNode: te } = Mm(e.id), { emit: $, on: U } = iN(I, a), V = Fe(() => typeof I.draggable > "u" ? _.value : I.draggable),
|
|
16720
|
-
() =>
|
|
16719
|
+
const j = it(ya), Y = Lo(), W = Fm(), { node: I, parentNode: te } = Mm(e.id), { emit: $, on: U } = iN(I, a), V = Fe(() => typeof I.draggable > "u" ? _.value : I.draggable), se = Fe(() => typeof I.selectable > "u" ? x.value : I.selectable), J = Fe(() => typeof I.connectable > "u" ? S.value : I.connectable), Z = Fe(() => typeof I.focusable > "u" ? E.value : I.focusable), K = F(
|
|
16720
|
+
() => se.value || V.value || O.value.nodeClick.hasListeners() || O.value.nodeDoubleClick.hasListeners() || O.value.nodeMouseEnter.hasListeners() || O.value.nodeMouseMove.hasListeners() || O.value.nodeMouseLeave.hasListeners()
|
|
16721
16721
|
), L = Fe(() => !!I.dimensions.width && !!I.dimensions.height), oe = F(() => {
|
|
16722
16722
|
const T = I.type || "default", A = j == null ? void 0 : j[`node-${T}`];
|
|
16723
16723
|
if (A)
|
|
@@ -16732,7 +16732,7 @@ const nd = ql, lO = he({
|
|
|
16732
16732
|
id: e.id,
|
|
16733
16733
|
el: N,
|
|
16734
16734
|
disabled: () => !V.value,
|
|
16735
|
-
selectable:
|
|
16735
|
+
selectable: se,
|
|
16736
16736
|
dragHandle: () => I.dragHandle,
|
|
16737
16737
|
onStart(T) {
|
|
16738
16738
|
$.dragStart(T);
|
|
@@ -16819,7 +16819,7 @@ const nd = ql, lO = he({
|
|
|
16819
16819
|
dragging: de == null ? void 0 : de.value,
|
|
16820
16820
|
draggable: V.value,
|
|
16821
16821
|
selected: I.selected,
|
|
16822
|
-
selectable:
|
|
16822
|
+
selectable: se.value,
|
|
16823
16823
|
parent: I.isParent
|
|
16824
16824
|
},
|
|
16825
16825
|
ee.value
|
|
@@ -16840,7 +16840,7 @@ const nd = ql, lO = he({
|
|
|
16840
16840
|
onMouseenter: le,
|
|
16841
16841
|
onMousemove: ue,
|
|
16842
16842
|
onMouseleave: X,
|
|
16843
|
-
onContextmenu:
|
|
16843
|
+
onContextmenu: ae,
|
|
16844
16844
|
onClick: k,
|
|
16845
16845
|
onDblclick: R,
|
|
16846
16846
|
onKeydown: C
|
|
@@ -16892,14 +16892,14 @@ const nd = ql, lO = he({
|
|
|
16892
16892
|
function X(T) {
|
|
16893
16893
|
de != null && de.value || $.mouseLeave({ event: T, node: I });
|
|
16894
16894
|
}
|
|
16895
|
-
function
|
|
16895
|
+
function ae(T) {
|
|
16896
16896
|
return $.contextMenu({ event: T, node: I });
|
|
16897
16897
|
}
|
|
16898
16898
|
function R(T) {
|
|
16899
16899
|
return $.doubleClick({ event: T, node: I });
|
|
16900
16900
|
}
|
|
16901
16901
|
function k(T) {
|
|
16902
|
-
|
|
16902
|
+
se.value && (!i.value || !V.value || b.value > 0) && js(
|
|
16903
16903
|
I,
|
|
16904
16904
|
r.value,
|
|
16905
16905
|
l,
|
|
@@ -16911,7 +16911,7 @@ const nd = ql, lO = he({
|
|
|
16911
16911
|
}
|
|
16912
16912
|
function C(T) {
|
|
16913
16913
|
if (!(Ks(T) || h.value))
|
|
16914
|
-
if (hm.includes(T.key) &&
|
|
16914
|
+
if (hm.includes(T.key) && se.value) {
|
|
16915
16915
|
const A = T.key === "Escape";
|
|
16916
16916
|
js(
|
|
16917
16917
|
I,
|
|
@@ -19497,7 +19497,7 @@ const [OR, PR] = zd(
|
|
|
19497
19497
|
commit: $,
|
|
19498
19498
|
moveNode: U,
|
|
19499
19499
|
selectNode: V,
|
|
19500
|
-
removeNode:
|
|
19500
|
+
removeNode: se,
|
|
19501
19501
|
getNodeById: J,
|
|
19502
19502
|
connectEdge: Z,
|
|
19503
19503
|
disconnectEdge: K,
|
|
@@ -19505,9 +19505,9 @@ const [OR, PR] = zd(
|
|
|
19505
19505
|
commit: oe,
|
|
19506
19506
|
undo: de
|
|
19507
19507
|
} = f;
|
|
19508
|
-
function ee(X,
|
|
19508
|
+
function ee(X, ae) {
|
|
19509
19509
|
const R = J(X.source), k = J(X.target);
|
|
19510
|
-
return !!(R && k && R.phase ===
|
|
19510
|
+
return !!(R && k && R.phase === ae && k.phase === ae);
|
|
19511
19511
|
}
|
|
19512
19512
|
const fe = F(
|
|
19513
19513
|
() => te.value.nodes.filter((X) => X.phase === t).map((X) => ({
|
|
@@ -19519,8 +19519,8 @@ const [OR, PR] = zd(
|
|
|
19519
19519
|
}))
|
|
19520
19520
|
), pe = F(
|
|
19521
19521
|
() => te.value.edges.filter((X) => ee(X, t)).map((X) => {
|
|
19522
|
-
const
|
|
19523
|
-
if (
|
|
19522
|
+
const ae = J(X.source), R = J(X.target);
|
|
19523
|
+
if (ae) {
|
|
19524
19524
|
if (!R)
|
|
19525
19525
|
throw new Error(`Missing target node "${X.target}" for edge "${X.id}" in phase "${t}"`);
|
|
19526
19526
|
} else throw new Error(`Missing source node "${X.source}" for edge "${X.id}" in phase "${t}"`);
|
|
@@ -19545,9 +19545,9 @@ const [OR, PR] = zd(
|
|
|
19545
19545
|
}), S(({ edge: X }) => {
|
|
19546
19546
|
console.debug("[useFlow] onEdgeClick", _r(X));
|
|
19547
19547
|
});
|
|
19548
|
-
async function Se({ source: X, sourceHandle:
|
|
19549
|
-
if (console.debug("[useFlow] onConnect", { source: X, sourceHandle:
|
|
19550
|
-
const C = Cd(
|
|
19548
|
+
async function Se({ source: X, sourceHandle: ae, target: R, targetHandle: k }) {
|
|
19549
|
+
if (console.debug("[useFlow] onConnect", { source: X, sourceHandle: ae, target: R, targetHandle: k }), !ae || !k) return;
|
|
19550
|
+
const C = Cd(ae), T = Cd(k);
|
|
19551
19551
|
if ((C == null ? void 0 : C.io) === "input" || (T == null ? void 0 : T.io) === "output")
|
|
19552
19552
|
return;
|
|
19553
19553
|
const A = L(R);
|
|
@@ -19595,10 +19595,10 @@ const [OR, PR] = zd(
|
|
|
19595
19595
|
});
|
|
19596
19596
|
}
|
|
19597
19597
|
E(Se), O((X) => {
|
|
19598
|
-
X.filter((
|
|
19599
|
-
V(
|
|
19600
|
-
}), X.forEach((
|
|
19601
|
-
|
|
19598
|
+
X.filter((ae) => ae.type === "select").sort((ae, R) => ae.selected === R.selected ? 0 : ae.selected ? 1 : -1).forEach((ae) => {
|
|
19599
|
+
V(ae.selected ? ae.id : void 0);
|
|
19600
|
+
}), X.forEach((ae) => {
|
|
19601
|
+
ae.type === "remove" && se(ae.id, !0);
|
|
19602
19602
|
});
|
|
19603
19603
|
}), x(({ node: X }) => {
|
|
19604
19604
|
X && U(X.id, X.position);
|
|
@@ -19612,12 +19612,14 @@ const [OR, PR] = zd(
|
|
|
19612
19612
|
R.type === "remove" && K(R.id, !0);
|
|
19613
19613
|
});
|
|
19614
19614
|
}), Y(({ edge: X }) => {
|
|
19615
|
-
Gs = X.id, I((
|
|
19615
|
+
Gs = X.id, I((ae) => ae.map((R) => R.id !== X.id ? R : sr(R)));
|
|
19616
19616
|
}), W(({ edge: X }) => {
|
|
19617
|
-
Gs = void 0, I((
|
|
19618
|
-
}), j(({
|
|
19617
|
+
Gs = void 0, I((ae) => ae.map((R) => R.id !== X.id ? R : sr(R)));
|
|
19618
|
+
}), j(({ edge: X, connection: ae }) => {
|
|
19619
|
+
K(X.id, !1), Se(ae);
|
|
19620
|
+
});
|
|
19619
19621
|
function le() {
|
|
19620
|
-
let X,
|
|
19622
|
+
let X, ae;
|
|
19621
19623
|
const R = [], k = (ce) => {
|
|
19622
19624
|
switch (ce.data.name) {
|
|
19623
19625
|
case "request": {
|
|
@@ -19630,16 +19632,16 @@ const [OR, PR] = zd(
|
|
|
19630
19632
|
case "service_request": {
|
|
19631
19633
|
if (t !== "request")
|
|
19632
19634
|
throw new Error(`Unexpected service_request node in ${t} phase`);
|
|
19633
|
-
if (
|
|
19635
|
+
if (ae)
|
|
19634
19636
|
throw new Error("Duplicated service_request node in request phase");
|
|
19635
|
-
return
|
|
19637
|
+
return ae = ce, !0;
|
|
19636
19638
|
}
|
|
19637
19639
|
case "service_response": {
|
|
19638
19640
|
if (t !== "response")
|
|
19639
19641
|
throw new Error(`Unexpected service_response node in ${t} phase`);
|
|
19640
|
-
if (
|
|
19642
|
+
if (ae)
|
|
19641
19643
|
throw new Error("Duplicated service_response node in response phase");
|
|
19642
|
-
return
|
|
19644
|
+
return ae = ce, !0;
|
|
19643
19645
|
}
|
|
19644
19646
|
case "response": {
|
|
19645
19647
|
if (t !== "response")
|
|
@@ -19669,15 +19671,15 @@ const [OR, PR] = zd(
|
|
|
19669
19671
|
height: ke.dimensions.height
|
|
19670
19672
|
});
|
|
19671
19673
|
}
|
|
19672
|
-
if (!X || !
|
|
19674
|
+
if (!X || !ae)
|
|
19673
19675
|
throw new Error(`One or more implicit nodes are missing from ${t} phase`);
|
|
19674
|
-
const T = g(X.id), A = g(
|
|
19676
|
+
const T = g(X.id), A = g(ae.id);
|
|
19675
19677
|
if (!T || !A)
|
|
19676
19678
|
throw new Error(`One or more implicit nodes are missing from the graph in ${t} phase`);
|
|
19677
19679
|
if (R.length > 0) {
|
|
19678
19680
|
if (!C)
|
|
19679
19681
|
throw new Error("dagreGraph should be defined here if reachable");
|
|
19680
|
-
const ce = /* @__PURE__ */ new Set([X.id,
|
|
19682
|
+
const ce = /* @__PURE__ */ new Set([X.id, ae.id]);
|
|
19681
19683
|
for (const ke of pe.value)
|
|
19682
19684
|
!ce.has(ke.source) && !ce.has(ke.target) && C.setEdge(ke.source, ke.target, { points: [] });
|
|
19683
19685
|
kd.layout(C);
|
|
@@ -19703,7 +19705,7 @@ const [OR, PR] = zd(
|
|
|
19703
19705
|
U(X.data.id, {
|
|
19704
19706
|
x: B.x1 - l - we / 2 - T.dimensions.width,
|
|
19705
19707
|
y: ge - T.dimensions.height / 2
|
|
19706
|
-
}, !1), U(
|
|
19708
|
+
}, !1), U(ae.data.id, {
|
|
19707
19709
|
x: B.x2 + l + we / 2,
|
|
19708
19710
|
y: ge - A.dimensions.height / 2
|
|
19709
19711
|
}, !1), $();
|
|
@@ -20191,12 +20193,12 @@ const MR = /* @__PURE__ */ he({
|
|
|
20191
20193
|
const { top: te = 0, left: $ = 0 } = ((L = _.value) == null ? void 0 : L.getBoundingClientRect()) || {}, U = b({
|
|
20192
20194
|
x: Y.clientX - $,
|
|
20193
20195
|
y: Y.clientY - te
|
|
20194
|
-
}), { type: V, anchor:
|
|
20196
|
+
}), { type: V, anchor: se } = I.data, J = {
|
|
20195
20197
|
type: V,
|
|
20196
20198
|
phase: e.phase,
|
|
20197
20199
|
position: {
|
|
20198
|
-
x: U.x -
|
|
20199
|
-
y: U.y -
|
|
20200
|
+
x: U.x - se.offsetX,
|
|
20201
|
+
y: U.y - se.offsetY
|
|
20200
20202
|
}
|
|
20201
20203
|
}, Z = m(J);
|
|
20202
20204
|
E(Z), Z && (g.value = Z, v.value = !0);
|
|
@@ -20286,7 +20288,7 @@ const MR = /* @__PURE__ */ he({
|
|
|
20286
20288
|
e.resizable && (W.value ? (I.value = "50%", te.value = "50%") : (I.value = "100%", te.value = "0"));
|
|
20287
20289
|
}, V = F(
|
|
20288
20290
|
() => _.height.value - x.height.value - E.height.value - O.height.value
|
|
20289
|
-
), { isDragging:
|
|
20291
|
+
), { isDragging: se } = Ph(v, {
|
|
20290
20292
|
onMove(K) {
|
|
20291
20293
|
if (!e.resizable) return;
|
|
20292
20294
|
const L = Math.max(0, K.y - S.top.value), oe = Math.min(
|
|
@@ -20330,7 +20332,7 @@ const MR = /* @__PURE__ */ he({
|
|
|
20330
20332
|
H("div", {
|
|
20331
20333
|
ref_key: "requestCanvasContainer",
|
|
20332
20334
|
ref: m,
|
|
20333
|
-
class: Ge(["canvas", { dragging: p(
|
|
20335
|
+
class: Ge(["canvas", { dragging: p(se) }]),
|
|
20334
20336
|
style: xt({ flexBasis: I.value })
|
|
20335
20337
|
}, [
|
|
20336
20338
|
M(Sd, {
|
|
@@ -20350,7 +20352,7 @@ const MR = /* @__PURE__ */ he({
|
|
|
20350
20352
|
H("div", {
|
|
20351
20353
|
ref_key: "responseLabel",
|
|
20352
20354
|
ref: g,
|
|
20353
|
-
class: Ge(["label response", { dragging: p(
|
|
20355
|
+
class: Ge(["label response", { dragging: p(se), resizable: K.resizable }]),
|
|
20354
20356
|
onClick: U
|
|
20355
20357
|
}, [
|
|
20356
20358
|
K.resizable ? (w(), G(p(ls), {
|
|
@@ -20362,7 +20364,7 @@ const MR = /* @__PURE__ */ he({
|
|
|
20362
20364
|
H("div", {
|
|
20363
20365
|
ref_key: "responseCanvasContainer",
|
|
20364
20366
|
ref: y,
|
|
20365
|
-
class: Ge(["canvas response", { dragging: p(
|
|
20367
|
+
class: Ge(["canvas response", { dragging: p(se) }]),
|
|
20366
20368
|
style: xt({ flexBasis: te.value })
|
|
20367
20369
|
}, [
|
|
20368
20370
|
M(Sd, {
|
|
@@ -21330,8 +21332,8 @@ function di(e, t) {
|
|
|
21330
21332
|
if (y) return;
|
|
21331
21333
|
const de = oe == null, ee = E("input", L).id;
|
|
21332
21334
|
if (de) {
|
|
21333
|
-
const
|
|
21334
|
-
|
|
21335
|
+
const ae = W.value.find((R) => R.targetField === ee);
|
|
21336
|
+
ae && u(ae.id);
|
|
21335
21337
|
return;
|
|
21336
21338
|
}
|
|
21337
21339
|
const {
|
|
@@ -21339,7 +21341,7 @@ function di(e, t) {
|
|
|
21339
21341
|
fieldId: pe
|
|
21340
21342
|
} = dc(oe), xe = E("input", L).id, Se = [];
|
|
21341
21343
|
Y.value && (Se.push(wo(Y.value, o)), u(Y.value.id, !1));
|
|
21342
|
-
const le = W.value.find((
|
|
21344
|
+
const le = W.value.find((ae) => ae.targetField === ee);
|
|
21343
21345
|
le && (Se.push(wo(le, o)), u(le.id, !1)), d({
|
|
21344
21346
|
source: fe,
|
|
21345
21347
|
sourceField: pe,
|
|
@@ -21406,7 +21408,7 @@ function di(e, t) {
|
|
|
21406
21408
|
});
|
|
21407
21409
|
}
|
|
21408
21410
|
return L;
|
|
21409
|
-
}), V = F(() => b.value.fields.input.map((L) => L.name) || []),
|
|
21411
|
+
}), V = F(() => b.value.fields.input.map((L) => L.name) || []), se = F(() => c.value === e);
|
|
21410
21412
|
function J(L) {
|
|
21411
21413
|
f.value.delete(e), L || f.value.add(e);
|
|
21412
21414
|
}
|
|
@@ -21424,7 +21426,7 @@ function di(e, t) {
|
|
|
21424
21426
|
inputEdge: Y,
|
|
21425
21427
|
inputsEdges: W,
|
|
21426
21428
|
inputsFieldNames: V,
|
|
21427
|
-
skipValidationOnMount:
|
|
21429
|
+
skipValidationOnMount: se,
|
|
21428
21430
|
currentNode: b,
|
|
21429
21431
|
// form ops
|
|
21430
21432
|
setName: x,
|
|
@@ -22835,21 +22837,21 @@ const ZD = /* @__PURE__ */ he({
|
|
|
22835
22837
|
},
|
|
22836
22838
|
getAll: (le, ue) => {
|
|
22837
22839
|
const X = b(le);
|
|
22838
|
-
return r.config.app === "konnect" ? a.get(X).then((
|
|
22839
|
-
const { data: { data: R } } =
|
|
22840
|
+
return r.config.app === "konnect" ? a.get(X).then((ae) => {
|
|
22841
|
+
const { data: { data: R } } = ae;
|
|
22840
22842
|
if (delete ue.size, delete ue.offset, R.length && Object.keys(ue).length === 1) {
|
|
22841
22843
|
const k = Object.keys(ue)[0], C = R.filter((T) => T[k] ? !!T[k].toLowerCase().includes(ue[k].toLowerCase()) : !1);
|
|
22842
|
-
|
|
22844
|
+
ae.data.data = C;
|
|
22843
22845
|
}
|
|
22844
|
-
return
|
|
22846
|
+
return ae;
|
|
22845
22847
|
}) : a.get(X, { params: ue });
|
|
22846
22848
|
},
|
|
22847
22849
|
getAllV2: (le, ue, X) => {
|
|
22848
|
-
const
|
|
22850
|
+
const ae = b(le);
|
|
22849
22851
|
if (r.config.app === "konnect") {
|
|
22850
22852
|
const { size: R, offset: k, ...C } = ue;
|
|
22851
22853
|
if (le === "consumer_groups")
|
|
22852
|
-
return a.get(
|
|
22854
|
+
return a.get(ae, {
|
|
22853
22855
|
params: {
|
|
22854
22856
|
size: 1e3
|
|
22855
22857
|
},
|
|
@@ -22872,12 +22874,12 @@ const ZD = /* @__PURE__ */ he({
|
|
|
22872
22874
|
contains: C[A]
|
|
22873
22875
|
}
|
|
22874
22876
|
};
|
|
22875
|
-
return a.get(
|
|
22877
|
+
return a.get(ae, {
|
|
22876
22878
|
params: T,
|
|
22877
22879
|
signal: X
|
|
22878
22880
|
});
|
|
22879
22881
|
}
|
|
22880
|
-
return a.get(
|
|
22882
|
+
return a.get(ae, { params: ue, signal: X });
|
|
22881
22883
|
},
|
|
22882
22884
|
peek: (le, ue = 50) => {
|
|
22883
22885
|
const X = b(le);
|
|
@@ -22893,12 +22895,12 @@ const ZD = /* @__PURE__ */ he({
|
|
|
22893
22895
|
return (le = j.value) == null ? void 0 : le.options;
|
|
22894
22896
|
}), $ = ie(!1), U = ie(), V = (le, ue) => {
|
|
22895
22897
|
$.value = le ?? "", U.value = ue;
|
|
22896
|
-
},
|
|
22898
|
+
}, se = (le) => {
|
|
22897
22899
|
var ue;
|
|
22898
22900
|
(ue = U.value) == null || ue.call(U, le), $.value = !1;
|
|
22899
22901
|
}, J = () => {
|
|
22900
22902
|
var C, T;
|
|
22901
|
-
const le = { ...r.schema }, ue = I, X = W,
|
|
22903
|
+
const le = { ...r.schema }, ue = I, X = W, ae = Object.keys(ue), R = {};
|
|
22902
22904
|
if (!c(Y.value))
|
|
22903
22905
|
for (let A = 0; A < ((T = (C = Y.value) == null ? void 0 : C.fields) == null ? void 0 : T.length); A++)
|
|
22904
22906
|
le[Y.value.fields[A].model] = Y.value.fields[A];
|
|
@@ -22908,7 +22910,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
22908
22910
|
le[z.model] = z;
|
|
22909
22911
|
}), P.model && (le[P.model] = P);
|
|
22910
22912
|
}), delete le[A]);
|
|
22911
|
-
}),
|
|
22913
|
+
}), ae.forEach((A) => {
|
|
22912
22914
|
var ce;
|
|
22913
22915
|
if (!le[A]) {
|
|
22914
22916
|
A === "partials" && (R[A] = ue[A]);
|
|
@@ -22985,8 +22987,8 @@ const ZD = /* @__PURE__ */ he({
|
|
|
22985
22987
|
var R;
|
|
22986
22988
|
const X = { [ue]: le };
|
|
22987
22989
|
typeof ((R = r.schema[ue]) == null ? void 0 : R.modelTransformer) == "function" && (X[ue] = r.schema[ue].modelTransformer(le));
|
|
22988
|
-
const
|
|
22989
|
-
Object.assign(I,
|
|
22990
|
+
const ae = Object.assign({}, I, X);
|
|
22991
|
+
Object.assign(I, ae), o("model-updated", {
|
|
22990
22992
|
model: I,
|
|
22991
22993
|
originalModel: W,
|
|
22992
22994
|
data: J()
|
|
@@ -22996,27 +22998,27 @@ const ZD = /* @__PURE__ */ he({
|
|
|
22996
22998
|
}, oe = (le, ue) => {
|
|
22997
22999
|
Object.keys(le).forEach((X) => {
|
|
22998
23000
|
var T, A;
|
|
22999
|
-
let
|
|
23001
|
+
let ae = ue ? `${ue}-${X}` : X, R = r.schema[ae];
|
|
23000
23002
|
if (!R) {
|
|
23001
23003
|
const P = ue ? `${ue}-${X.replace(/-/g, "_")}` : X.replace(/-/g, "_");
|
|
23002
|
-
(T = r.schema[P]) != null && T.fieldNameHasDashes && (
|
|
23004
|
+
(T = r.schema[P]) != null && T.fieldNameHasDashes && (ae = P, R = r.schema[ae]), ue && ((A = r.schema[ue]) == null ? void 0 : A.keyFromObject) === X && (ae = ue, R = r.schema[ae]);
|
|
23003
23005
|
}
|
|
23004
23006
|
const k = le[X], C = typeof k;
|
|
23005
23007
|
if (R && R.type === "object-advanced" && !k) {
|
|
23006
|
-
I[
|
|
23008
|
+
I[ae] = {}, W[ae] = {};
|
|
23007
23009
|
return;
|
|
23008
23010
|
}
|
|
23009
23011
|
if (Array.isArray(k)) {
|
|
23010
|
-
I[
|
|
23012
|
+
I[ae] = JSON.parse(JSON.stringify(k)), W[ae] = JSON.parse(JSON.stringify(k));
|
|
23011
23013
|
return;
|
|
23012
23014
|
}
|
|
23013
23015
|
if (C === "object" && k && !k.length)
|
|
23014
|
-
return oe(k,
|
|
23016
|
+
return oe(k, ae);
|
|
23015
23017
|
if (C === "object" && k && k.length && R.type === "input") {
|
|
23016
|
-
I[
|
|
23018
|
+
I[ae] = k.join(", "), W[ae] = k.join(", ");
|
|
23017
23019
|
return;
|
|
23018
23020
|
}
|
|
23019
|
-
I[
|
|
23021
|
+
I[ae] = k, W[ae] = k;
|
|
23020
23022
|
}), o("model-updated", {
|
|
23021
23023
|
model: I,
|
|
23022
23024
|
originalModel: W,
|
|
@@ -23047,8 +23049,8 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23047
23049
|
}), r.record.partials && Z("redis", { partials: r.record.partials }), N.value ? ee(r.record) : oe(r.record.config, "config"))), Object.keys(r.entityMap).length && !r.entityMap.global && r.schema) {
|
|
23048
23050
|
const ue = {};
|
|
23049
23051
|
for (const X in r.entityMap) {
|
|
23050
|
-
const
|
|
23051
|
-
Object.prototype.hasOwnProperty.call(I, k) && (ue[k] =
|
|
23052
|
+
const ae = r.entityMap[X].id, R = r.entityMap[X].idField, k = R === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(R).replace("_", "-"));
|
|
23053
|
+
Object.prototype.hasOwnProperty.call(I, k) && (ue[k] = ae);
|
|
23052
23054
|
}
|
|
23053
23055
|
oe(ue);
|
|
23054
23056
|
}
|
|
@@ -23061,18 +23063,18 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23061
23063
|
return $e(fe, (le) => {
|
|
23062
23064
|
o("loading", le);
|
|
23063
23065
|
}), $e(() => r.schema, (le, ue) => {
|
|
23064
|
-
var
|
|
23066
|
+
var ae, R;
|
|
23065
23067
|
if (h(le || {}, ue || {}))
|
|
23066
23068
|
return;
|
|
23067
23069
|
const X = s(le);
|
|
23068
23070
|
Object.assign(I, X.model), Y.value = {
|
|
23069
|
-
fields: (R = (
|
|
23071
|
+
fields: (R = (ae = Y.value) == null ? void 0 : ae.fields) == null ? void 0 : R.map((k) => ({ ...k, disabled: k.disabled || !1 }))
|
|
23070
23072
|
}, Object.assign(W, JSON.parse(JSON.stringify(X.model))), N.value = If(X.model.name, m), O.value = Ld(X.model.name), pe();
|
|
23071
23073
|
}, { immediate: !0, deep: !0 }), En(() => {
|
|
23072
23074
|
var le, ue;
|
|
23073
23075
|
j.value = s(r.schema), Object.assign(I, ((le = j.value) == null ? void 0 : le.model) || {}), Y.value = ((ue = j.value) == null ? void 0 : ue.schema) || {}, pe();
|
|
23074
23076
|
}), (le, ue) => {
|
|
23075
|
-
var
|
|
23077
|
+
var ae;
|
|
23076
23078
|
const X = be("KSkeleton");
|
|
23077
23079
|
return w(), Q(Re, null, [
|
|
23078
23080
|
H("div", NL, [
|
|
@@ -23135,7 +23137,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23135
23137
|
]),
|
|
23136
23138
|
_: 2
|
|
23137
23139
|
}, [
|
|
23138
|
-
(
|
|
23140
|
+
(ae = p(cn)[I.name]) != null && ae.fieldRules && (r.config.isNewOtelSchema || I.name !== "opentelemetry") ? {
|
|
23139
23141
|
name: "plugin-config-before-content",
|
|
23140
23142
|
fn: D(() => [
|
|
23141
23143
|
M(b1, {
|
|
@@ -23158,7 +23160,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23158
23160
|
config: r.config,
|
|
23159
23161
|
setup: $.value,
|
|
23160
23162
|
onCancel: ue[2] || (ue[2] = () => $.value = !1),
|
|
23161
|
-
onProceed:
|
|
23163
|
+
onProceed: se
|
|
23162
23164
|
}, null, 8, ["config", "setup"])
|
|
23163
23165
|
], 64);
|
|
23164
23166
|
};
|
|
@@ -23427,7 +23429,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23427
23429
|
var q;
|
|
23428
23430
|
const B = i.developer ? "developers" : "consumers", ne = ((q = yi[i.pluginType]) == null ? void 0 : q.endpoint) || "/plugins";
|
|
23429
23431
|
return `${B}/${i.config.entityId}${i.developer ? "/credentials" : ""}${ne}`;
|
|
23430
|
-
}),
|
|
23432
|
+
}), se = (B) => {
|
|
23431
23433
|
const ne = Array.from(new Set(B.map((q) => typeof q)));
|
|
23432
23434
|
return ne.length > 1 ? "string" : ne[0];
|
|
23433
23435
|
}, J = (B, ne, q, we) => {
|
|
@@ -23587,7 +23589,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23587
23589
|
Ke && (q[ye].valueArrayType = Ke === "integer" ? "number" : Ke), q[ye].inputType = _e.type === "array" || _e.type === "string" ? _e.encrypted ? "password" : "text" : _e.type;
|
|
23588
23590
|
}
|
|
23589
23591
|
let At = "string";
|
|
23590
|
-
_e.enum ? At =
|
|
23592
|
+
_e.enum ? At = se(_e.enum) : _e.type === "boolean" ? At = "boolean" : _e.type === "number" || _e.type === "integer" ? (At = "number", q[ye].inputType = "number") : _e.type === "array" ? (At = "array", q[ye].default = _e.default, _e.len_min > 0 && (q[ye].submitWhenNull = !0)) : _e.type === "foreign" ? At = "object" : _e.default && Array.isArray(_e.default) ? (At = "array", q[ye].valueArrayType = se(_e.default)) : _e.default && (At = typeof _e.default), q[ye].valueType = At, _e.fieldNameHasDashes && (q[ye].fieldNameHasDashes = !0);
|
|
23591
23593
|
}), q;
|
|
23592
23594
|
}, Z = () => {
|
|
23593
23595
|
var ye, At, Gi, Yi, Wi, Xi, Zi, Ji, Qi, Ke, Tt, ot;
|
|
@@ -23717,7 +23719,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23717
23719
|
}, X = F(() => {
|
|
23718
23720
|
let B = `${i.config.apiBaseUrl}${at.form[i.config.app].validate}`;
|
|
23719
23721
|
return i.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), B = B.replace(/{id}/gi, i.pluginId), B;
|
|
23720
|
-
}),
|
|
23722
|
+
}), ae = F(() => {
|
|
23721
23723
|
const B = i.config.entityType && i.config.entityId && !i.developer, ne = b.value ? at.form[i.config.app].credential[v.value] : at.form[i.config.app][v.value][B ? "forEntity" : "all"];
|
|
23722
23724
|
let q = `${i.config.apiBaseUrl}${ne}`;
|
|
23723
23725
|
return i.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), q = q.replace(/{resourceEndpoint}/gi, V.value), q = q.replace(/{id}/gi, i.pluginId), q = q.replace(/{entityType}/gi, i.config.entityType || ""), q = q.replace(/{entityId}/gi, i.config.entityId || ""), q;
|
|
@@ -23742,7 +23744,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23742
23744
|
model: j.fields,
|
|
23743
23745
|
payload: ne,
|
|
23744
23746
|
schema: y.value
|
|
23745
|
-
}), !b.value && !R.value && await f.post(X.value, ne), v.value === "create" ? B = await f.post(
|
|
23747
|
+
}), !b.value && !R.value && await f.post(X.value, ne), v.value === "create" ? B = await f.post(ae.value, ne) : v.value === "edit" && (B = i.config.app === "konnect" || S.value && ne.partials ? await f.put(ae.value, Object.assign({ ordering: de.value }, ne)) : await f.patch(ae.value, ne)), Object.assign(N, j.fields), n("update", B == null ? void 0 : B.data);
|
|
23746
23748
|
} catch (B) {
|
|
23747
23749
|
j.serverErrorMessage = u(B), n("error", B);
|
|
23748
23750
|
} finally {
|
|
@@ -23910,7 +23912,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
23910
23912
|
M(p(qg), {
|
|
23911
23913
|
config: e.config,
|
|
23912
23914
|
"entity-record": k.value,
|
|
23913
|
-
"fetcher-url":
|
|
23915
|
+
"fetcher-url": ae.value,
|
|
23914
23916
|
"request-method": i.pluginId ? "put" : "post"
|
|
23915
23917
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
23916
23918
|
]),
|
|
@@ -24095,7 +24097,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
24095
24097
|
P.action = z ? "disable" : "enable", P.id = re, P.name = n.getDisplayName(B) || re;
|
|
24096
24098
|
}
|
|
24097
24099
|
return P;
|
|
24098
|
-
}),
|
|
24100
|
+
}), se = (P) => {
|
|
24099
24101
|
$.value = !0, U.value = P;
|
|
24100
24102
|
}, J = () => {
|
|
24101
24103
|
$.value = !1, U.value = null;
|
|
@@ -24154,7 +24156,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
24154
24156
|
to: o.config.getConfigureDynamicOrderingRoute(P)
|
|
24155
24157
|
}), pe = ie(void 0), xe = ie(!1), Se = ie(!1), le = ie(""), ue = Gg(o.config, b.value), X = (P) => {
|
|
24156
24158
|
pe.value = P, xe.value = !0;
|
|
24157
|
-
},
|
|
24159
|
+
}, ae = () => {
|
|
24158
24160
|
xe.value = !1;
|
|
24159
24161
|
}, R = async () => {
|
|
24160
24162
|
var P, z, re;
|
|
@@ -24313,7 +24315,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
24313
24315
|
disabled: !ke,
|
|
24314
24316
|
"disabled-tooltip-text": !ke && ((Le = (Ce = e.config).getToggleDisabledTooltip) == null ? void 0 : Le.call(Ce, ce)) || void 0,
|
|
24315
24317
|
"model-value": ce.enabled,
|
|
24316
|
-
onClick: Mt((He) => ke &&
|
|
24318
|
+
onClick: Mt((He) => ke && se(ce), ["stop", "prevent"])
|
|
24317
24319
|
}, null, 8, ["disabled", "disabled-tooltip-text", "model-value", "onClick"])
|
|
24318
24320
|
])
|
|
24319
24321
|
];
|
|
@@ -24477,7 +24479,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
24477
24479
|
error: le.value,
|
|
24478
24480
|
title: p(r)("delete.title"),
|
|
24479
24481
|
visible: xe.value,
|
|
24480
|
-
onCancel:
|
|
24482
|
+
onCancel: ae,
|
|
24481
24483
|
onProceed: R
|
|
24482
24484
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
24483
24485
|
]);
|
|
@@ -25238,9 +25240,9 @@ const ZD = /* @__PURE__ */ he({
|
|
|
25238
25240
|
}), $e(f, (K) => {
|
|
25239
25241
|
i("loading", K);
|
|
25240
25242
|
});
|
|
25241
|
-
const V = ie(!1),
|
|
25243
|
+
const V = ie(!1), se = ie(!1), J = ie(!1);
|
|
25242
25244
|
return En(async () => {
|
|
25243
|
-
V.value = await n.canCreateCustomPlugin(),
|
|
25245
|
+
V.value = await n.canCreateCustomPlugin(), se.value = await n.canEditCustomPlugin(), J.value = await n.canDeleteCustomPlugin();
|
|
25244
25246
|
}), Ot(async () => {
|
|
25245
25247
|
try {
|
|
25246
25248
|
const { data: K } = await _.get(I.value);
|
|
@@ -25340,7 +25342,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
25340
25342
|
M(mK, {
|
|
25341
25343
|
"can-create-custom-plugin": V.value,
|
|
25342
25344
|
"can-delete-custom-plugin": J.value,
|
|
25343
|
-
"can-edit-custom-plugin":
|
|
25345
|
+
"can-edit-custom-plugin": se.value,
|
|
25344
25346
|
config: e.config,
|
|
25345
25347
|
"navigate-on-click": e.navigateOnClick,
|
|
25346
25348
|
"plugin-list": S.value,
|
|
@@ -25618,7 +25620,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
25618
25620
|
}, null, 8, ["copy-tooltip", "text"])) : (w(), Q("span", MK, "–"))
|
|
25619
25621
|
]),
|
|
25620
25622
|
partials: D((N) => {
|
|
25621
|
-
var j, Y, W, I, te, $, U, V,
|
|
25623
|
+
var j, Y, W, I, te, $, U, V, se;
|
|
25622
25624
|
return [
|
|
25623
25625
|
p(s)("rowValue", N) ? e.showIdAsLink ? (w(), G(p(eo), {
|
|
25624
25626
|
key: 1,
|
|
@@ -25635,7 +25637,7 @@ const ZD = /* @__PURE__ */ he({
|
|
|
25635
25637
|
key: 2,
|
|
25636
25638
|
"copy-tooltip": p(o)("copy.tooltip", { label: p(s)("row", N).label }),
|
|
25637
25639
|
"data-testid": "partial-copy-uuid",
|
|
25638
|
-
text: (
|
|
25640
|
+
text: (se = p(s)("rowValue", N)) == null ? void 0 : se[0].id
|
|
25639
25641
|
}, null, 8, ["copy-tooltip", "text"])) : (w(), Q("span", FK, "–"))
|
|
25640
25642
|
];
|
|
25641
25643
|
}),
|