@kong-ui-public/entities-plugins 9.250.4 → 9.250.5
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/entities-plugins.es.js +719 -719
- package/dist/entities-plugins.umd.js +1 -1
- package/dist/freeform/index.js +239 -239
- package/dist/freeform/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/free-form/shared/StringField.vue.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1286,16 +1286,16 @@ function Yk(e, t, n, i, o, a) {
|
|
|
1286
1286
|
f = u[d];
|
|
1287
1287
|
var _ = e[f], w = t[f];
|
|
1288
1288
|
if (i)
|
|
1289
|
-
var
|
|
1290
|
-
if (!(
|
|
1289
|
+
var S = r ? i(w, _, f, t, e, a) : i(_, w, f, e, t, a);
|
|
1290
|
+
if (!(S === void 0 ? _ === w || o(_, w, n, i, a) : S)) {
|
|
1291
1291
|
v = !1;
|
|
1292
1292
|
break;
|
|
1293
1293
|
}
|
|
1294
1294
|
y || (y = f == "constructor");
|
|
1295
1295
|
}
|
|
1296
1296
|
if (v && !y) {
|
|
1297
|
-
var E = e.constructor,
|
|
1298
|
-
E !=
|
|
1297
|
+
var E = e.constructor, x = t.constructor;
|
|
1298
|
+
E != x && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof x == "function" && x instanceof x) && (v = !1);
|
|
1299
1299
|
}
|
|
1300
1300
|
return a.delete(e), a.delete(t), v;
|
|
1301
1301
|
}
|
|
@@ -2710,7 +2710,7 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
2710
2710
|
});
|
|
2711
2711
|
}), X;
|
|
2712
2712
|
}
|
|
2713
|
-
}),
|
|
2713
|
+
}), S = o((L, F) => {
|
|
2714
2714
|
function Z(te) {
|
|
2715
2715
|
var D = {}, H = {}, K = [];
|
|
2716
2716
|
function X(z) {
|
|
@@ -2727,7 +2727,7 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
2727
2727
|
};
|
|
2728
2728
|
F.exports = Z, Z.CycleException = U;
|
|
2729
2729
|
}), E = o((L, F) => {
|
|
2730
|
-
var Z =
|
|
2730
|
+
var Z = S();
|
|
2731
2731
|
F.exports = U;
|
|
2732
2732
|
function U(te) {
|
|
2733
2733
|
try {
|
|
@@ -2738,7 +2738,7 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
2738
2738
|
}
|
|
2739
2739
|
return !0;
|
|
2740
2740
|
}
|
|
2741
|
-
}),
|
|
2741
|
+
}), x = o((L, F) => {
|
|
2742
2742
|
F.exports = Z;
|
|
2743
2743
|
function Z(te, D, H, K, X) {
|
|
2744
2744
|
Array.isArray(D) || (D = [D]);
|
|
@@ -2754,7 +2754,7 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
2754
2754
|
}), H && (ne = z(ne, D))), ne;
|
|
2755
2755
|
}
|
|
2756
2756
|
}), C = o((L, F) => {
|
|
2757
|
-
var Z =
|
|
2757
|
+
var Z = x();
|
|
2758
2758
|
F.exports = U;
|
|
2759
2759
|
function U(te, D, H) {
|
|
2760
2760
|
return Z(te, D, H, function(K, X) {
|
|
@@ -2819,7 +2819,7 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
2819
2819
|
return Z(H, K, X, z);
|
|
2820
2820
|
}
|
|
2821
2821
|
}), I = o((L, F) => {
|
|
2822
|
-
F.exports = { bellmanFord: p(), components: d(), dijkstra: g(), dijkstraAll: h(), extractPath: v(), findCycles: _(), floydWarshall: w(), isAcyclic: E(), postorder: M(), preorder: N(), prim: j(), shortestPaths: P(), reduce:
|
|
2822
|
+
F.exports = { bellmanFord: p(), components: d(), dijkstra: g(), dijkstraAll: h(), extractPath: v(), findCycles: _(), floydWarshall: w(), isAcyclic: E(), postorder: M(), preorder: N(), prim: j(), shortestPaths: P(), reduce: x(), tarjan: y(), topsort: S() };
|
|
2823
2823
|
}), O = l();
|
|
2824
2824
|
t.exports = { Graph: O.Graph, json: c(), alg: I(), version: O.version };
|
|
2825
2825
|
}), W1 = It((e, t) => {
|
|
@@ -2875,10 +2875,10 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
2875
2875
|
function u(d, f, g, h, v) {
|
|
2876
2876
|
let y = v ? [] : void 0;
|
|
2877
2877
|
return d.inEdges(h.v).forEach((_) => {
|
|
2878
|
-
let w = d.edge(_),
|
|
2879
|
-
v && y.push({ v: _.v, w: _.w }),
|
|
2878
|
+
let w = d.edge(_), S = d.node(_.v);
|
|
2879
|
+
v && y.push({ v: _.v, w: _.w }), S.out -= w, c(f, g, S);
|
|
2880
2880
|
}), d.outEdges(h.v).forEach((_) => {
|
|
2881
|
-
let w = d.edge(_),
|
|
2881
|
+
let w = d.edge(_), S = _.w, E = d.node(S);
|
|
2882
2882
|
E.in -= w, c(f, g, E);
|
|
2883
2883
|
}), d.removeNode(h.v), y;
|
|
2884
2884
|
}
|
|
@@ -2887,8 +2887,8 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
2887
2887
|
d.nodes().forEach((w) => {
|
|
2888
2888
|
g.setNode(w, { v: w, in: 0, out: 0 });
|
|
2889
2889
|
}), d.edges().forEach((w) => {
|
|
2890
|
-
let
|
|
2891
|
-
g.setEdge(w.v, w.w,
|
|
2890
|
+
let S = g.edge(w.v, w.w) || 0, E = f(w), x = S + E;
|
|
2891
|
+
g.setEdge(w.v, w.w, x), v = Math.max(v, g.node(w.v).out += E), h = Math.max(h, g.node(w.w).in += E);
|
|
2892
2892
|
});
|
|
2893
2893
|
let y = p(v + h + 3).map(() => new i()), _ = h + 1;
|
|
2894
2894
|
return g.nodes().forEach((w) => {
|
|
@@ -2905,9 +2905,9 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
2905
2905
|
}
|
|
2906
2906
|
}), Ut = It((e, t) => {
|
|
2907
2907
|
var n = Un().Graph;
|
|
2908
|
-
t.exports = { addBorderNode: f, addDummyNode: i, applyWithChunking: v, asNonCompoundGraph: a, buildLayerMatrix: c, intersectRect: l, mapValues: N, maxRank: y, normalizeRanks: p, notime:
|
|
2908
|
+
t.exports = { addBorderNode: f, addDummyNode: i, applyWithChunking: v, asNonCompoundGraph: a, buildLayerMatrix: c, intersectRect: l, mapValues: N, maxRank: y, normalizeRanks: p, notime: S, partition: _, pick: M, predecessorWeights: u, range: C, removeEmptyRanks: d, simplify: o, successorWeights: r, time: w, uniqueId: x, zipObject: j };
|
|
2909
2909
|
function i(P, I, O, L) {
|
|
2910
|
-
for (var F = L; P.hasNode(F); ) F =
|
|
2910
|
+
for (var F = L; P.hasNode(F); ) F = x(L);
|
|
2911
2911
|
return O.dummy = I, P.setNode(F, O), F;
|
|
2912
2912
|
}
|
|
2913
2913
|
function o(P) {
|
|
@@ -3017,11 +3017,11 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3017
3017
|
console.log(P + " time: " + (Date.now() - O) + "ms");
|
|
3018
3018
|
}
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function S(P, I) {
|
|
3021
3021
|
return I();
|
|
3022
3022
|
}
|
|
3023
3023
|
var E = 0;
|
|
3024
|
-
function
|
|
3024
|
+
function x(P) {
|
|
3025
3025
|
var I = ++E;
|
|
3026
3026
|
return P + ("" + I);
|
|
3027
3027
|
}
|
|
@@ -3146,24 +3146,24 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3146
3146
|
t.exports = l, l.initLowLimValues = f, l.initCutValues = c, l.calcCutValue = d, l.leaveEdge = h, l.enterEdge = v, l.exchangeEdges = y;
|
|
3147
3147
|
function l(E) {
|
|
3148
3148
|
E = u(E), o(E);
|
|
3149
|
-
var
|
|
3150
|
-
f(
|
|
3151
|
-
for (var C, M; C = h(
|
|
3149
|
+
var x = n(E);
|
|
3150
|
+
f(x), c(x, E);
|
|
3151
|
+
for (var C, M; C = h(x); ) M = v(x, E, C), y(x, E, C, M);
|
|
3152
3152
|
}
|
|
3153
|
-
function c(E,
|
|
3153
|
+
function c(E, x) {
|
|
3154
3154
|
var C = r(E, E.nodes());
|
|
3155
|
-
C = C.slice(0, C.length - 1), C.forEach((M) => p(E,
|
|
3155
|
+
C = C.slice(0, C.length - 1), C.forEach((M) => p(E, x, M));
|
|
3156
3156
|
}
|
|
3157
|
-
function p(E,
|
|
3157
|
+
function p(E, x, C) {
|
|
3158
3158
|
var M = E.node(C), N = M.parent;
|
|
3159
|
-
E.edge(C, N).cutvalue = d(E,
|
|
3159
|
+
E.edge(C, N).cutvalue = d(E, x, C);
|
|
3160
3160
|
}
|
|
3161
|
-
function d(E,
|
|
3162
|
-
var M = E.node(C), N = M.parent, j = !0, P =
|
|
3163
|
-
return P || (j = !1, P =
|
|
3161
|
+
function d(E, x, C) {
|
|
3162
|
+
var M = E.node(C), N = M.parent, j = !0, P = x.edge(C, N), I = 0;
|
|
3163
|
+
return P || (j = !1, P = x.edge(N, C)), I = P.weight, x.nodeEdges(C).forEach((O) => {
|
|
3164
3164
|
var L = O.v === C, F = L ? O.w : O.v;
|
|
3165
3165
|
if (F !== N) {
|
|
3166
|
-
var Z = L === j, U =
|
|
3166
|
+
var Z = L === j, U = x.edge(O).weight;
|
|
3167
3167
|
if (I += Z ? U : -U, w(E, C, F)) {
|
|
3168
3168
|
var te = E.edge(C, F).cutvalue;
|
|
3169
3169
|
I += Z ? -te : te;
|
|
@@ -3171,42 +3171,42 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3171
3171
|
}
|
|
3172
3172
|
}), I;
|
|
3173
3173
|
}
|
|
3174
|
-
function f(E,
|
|
3175
|
-
arguments.length < 2 && (
|
|
3174
|
+
function f(E, x) {
|
|
3175
|
+
arguments.length < 2 && (x = E.nodes()[0]), g(E, {}, 1, x);
|
|
3176
3176
|
}
|
|
3177
|
-
function g(E,
|
|
3177
|
+
function g(E, x, C, M, N) {
|
|
3178
3178
|
var j = C, P = E.node(M);
|
|
3179
|
-
return
|
|
3180
|
-
Object.hasOwn(
|
|
3179
|
+
return x[M] = !0, E.neighbors(M).forEach((I) => {
|
|
3180
|
+
Object.hasOwn(x, I) || (C = g(E, x, C, I, M));
|
|
3181
3181
|
}), P.low = j, P.lim = C++, N ? P.parent = N : delete P.parent, C;
|
|
3182
3182
|
}
|
|
3183
3183
|
function h(E) {
|
|
3184
|
-
return E.edges().find((
|
|
3184
|
+
return E.edges().find((x) => E.edge(x).cutvalue < 0);
|
|
3185
3185
|
}
|
|
3186
|
-
function v(E,
|
|
3186
|
+
function v(E, x, C) {
|
|
3187
3187
|
var M = C.v, N = C.w;
|
|
3188
|
-
|
|
3188
|
+
x.hasEdge(M, N) || (M = C.w, N = C.v);
|
|
3189
3189
|
var j = E.node(M), P = E.node(N), I = j, O = !1;
|
|
3190
3190
|
j.lim > P.lim && (I = P, O = !0);
|
|
3191
|
-
var L =
|
|
3192
|
-
return L.reduce((F, Z) => i(
|
|
3191
|
+
var L = x.edges().filter((F) => O === S(E, E.node(F.v), I) && O !== S(E, E.node(F.w), I));
|
|
3192
|
+
return L.reduce((F, Z) => i(x, Z) < i(x, F) ? Z : F);
|
|
3193
3193
|
}
|
|
3194
|
-
function y(E,
|
|
3194
|
+
function y(E, x, C, M) {
|
|
3195
3195
|
var N = C.v, j = C.w;
|
|
3196
|
-
E.removeEdge(N, j), E.setEdge(M.v, M.w, {}), f(E), c(E,
|
|
3196
|
+
E.removeEdge(N, j), E.setEdge(M.v, M.w, {}), f(E), c(E, x), _(E, x);
|
|
3197
3197
|
}
|
|
3198
|
-
function _(E,
|
|
3199
|
-
var C = E.nodes().find((N) => !
|
|
3198
|
+
function _(E, x) {
|
|
3199
|
+
var C = E.nodes().find((N) => !x.node(N).parent), M = a(E, C);
|
|
3200
3200
|
M = M.slice(1), M.forEach((N) => {
|
|
3201
|
-
var j = E.node(N).parent, P =
|
|
3202
|
-
P || (P =
|
|
3201
|
+
var j = E.node(N).parent, P = x.edge(N, j), I = !1;
|
|
3202
|
+
P || (P = x.edge(j, N), I = !0), x.node(N).rank = x.node(j).rank + (I ? P.minlen : -P.minlen);
|
|
3203
3203
|
});
|
|
3204
3204
|
}
|
|
3205
|
-
function w(E,
|
|
3206
|
-
return E.hasEdge(
|
|
3205
|
+
function w(E, x, C) {
|
|
3206
|
+
return E.hasEdge(x, C);
|
|
3207
3207
|
}
|
|
3208
|
-
function
|
|
3209
|
-
return C.low <=
|
|
3208
|
+
function S(E, x, C) {
|
|
3209
|
+
return C.low <= x.lim && x.lim <= C.lim;
|
|
3210
3210
|
}
|
|
3211
3211
|
}), Q1 = It((e, t) => {
|
|
3212
3212
|
var n = fr(), i = n.longestPath, o = Sf(), a = Z1();
|
|
@@ -3289,10 +3289,10 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3289
3289
|
return;
|
|
3290
3290
|
}
|
|
3291
3291
|
let y = n.addBorderNode(l, "_bt"), _ = n.addBorderNode(l, "_bb"), w = l.node(h);
|
|
3292
|
-
l.setParent(y, h), w.borderTop = y, l.setParent(_, h), w.borderBottom = _, v.forEach((
|
|
3293
|
-
o(l, c, p, d, f, g,
|
|
3294
|
-
let E = l.node(
|
|
3295
|
-
l.setEdge(y,
|
|
3292
|
+
l.setParent(y, h), w.borderTop = y, l.setParent(_, h), w.borderBottom = _, v.forEach((S) => {
|
|
3293
|
+
o(l, c, p, d, f, g, S);
|
|
3294
|
+
let E = l.node(S), x = E.borderTop ? E.borderTop : S, C = E.borderBottom ? E.borderBottom : S, M = E.borderTop ? d : 2 * d, N = x !== C ? 1 : f - g[h] + 1;
|
|
3295
|
+
l.setEdge(y, x, { weight: M, minlen: N, nestingEdge: !0 }), l.setEdge(C, _, { weight: M, minlen: N, nestingEdge: !0 });
|
|
3296
3296
|
}), l.parent(h) || l.setEdge(c, y, { weight: 0, minlen: f + g[h] });
|
|
3297
3297
|
}
|
|
3298
3298
|
function a(l) {
|
|
@@ -3480,18 +3480,18 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3480
3480
|
let _ = n(l, f);
|
|
3481
3481
|
_.forEach((E) => {
|
|
3482
3482
|
if (l.children(E.v).length) {
|
|
3483
|
-
let
|
|
3484
|
-
y[E.v] =
|
|
3483
|
+
let x = a(l, E.v, p, d);
|
|
3484
|
+
y[E.v] = x, Object.hasOwn(x, "barycenter") && u(E, x);
|
|
3485
3485
|
}
|
|
3486
3486
|
});
|
|
3487
3487
|
let w = i(_, p);
|
|
3488
3488
|
r(w, y);
|
|
3489
|
-
let
|
|
3490
|
-
if (h && (
|
|
3491
|
-
let E = l.node(l.predecessors(h)[0]),
|
|
3492
|
-
Object.hasOwn(
|
|
3489
|
+
let S = o(w, d);
|
|
3490
|
+
if (h && (S.vs = [h, S.vs, v].flat(!0), l.predecessors(h).length)) {
|
|
3491
|
+
let E = l.node(l.predecessors(h)[0]), x = l.node(l.predecessors(v)[0]);
|
|
3492
|
+
Object.hasOwn(S, "barycenter") || (S.barycenter = 0, S.weight = 0), S.barycenter = (S.barycenter * S.weight + E.order + x.order) / (S.weight + 2), S.weight += 2;
|
|
3493
3493
|
}
|
|
3494
|
-
return
|
|
3494
|
+
return S;
|
|
3495
3495
|
}
|
|
3496
3496
|
function r(l, c) {
|
|
3497
3497
|
l.forEach((p) => {
|
|
@@ -3544,21 +3544,21 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3544
3544
|
}
|
|
3545
3545
|
let v = l.maxRank(g), y = p(g, l.range(1, v + 1), "inEdges"), _ = p(g, l.range(v - 1, -1, -1), "outEdges"), w = n(g);
|
|
3546
3546
|
if (f(g, w), h.disableOptimalOrderHeuristic) return;
|
|
3547
|
-
let
|
|
3547
|
+
let S = Number.POSITIVE_INFINITY, E, x = h.constraints || [];
|
|
3548
3548
|
for (let C = 0, M = 0; M < 4; ++C, ++M) {
|
|
3549
|
-
d(C % 2 ? y : _, C % 4 >= 2,
|
|
3549
|
+
d(C % 2 ? y : _, C % 4 >= 2, x), w = l.buildLayerMatrix(g);
|
|
3550
3550
|
let N = i(g, w);
|
|
3551
|
-
N <
|
|
3551
|
+
N < S ? (M = 0, E = Object.assign({}, w), S = N) : N === S && (E = structuredClone(w));
|
|
3552
3552
|
}
|
|
3553
3553
|
f(g, E);
|
|
3554
3554
|
}
|
|
3555
3555
|
function p(g, h, v) {
|
|
3556
|
-
let y = /* @__PURE__ */ new Map(), _ = (w,
|
|
3557
|
-
y.has(w) || y.set(w, []), y.get(w).push(
|
|
3556
|
+
let y = /* @__PURE__ */ new Map(), _ = (w, S) => {
|
|
3557
|
+
y.has(w) || y.set(w, []), y.get(w).push(S);
|
|
3558
3558
|
};
|
|
3559
3559
|
for (let w of g.nodes()) {
|
|
3560
|
-
let
|
|
3561
|
-
if (typeof
|
|
3560
|
+
let S = g.node(w);
|
|
3561
|
+
if (typeof S.rank == "number" && _(S.rank, w), typeof S.minRank == "number" && typeof S.maxRank == "number") for (let E = S.minRank; E <= S.maxRank; E++) E !== S.rank && _(E, w);
|
|
3562
3562
|
}
|
|
3563
3563
|
return h.map(function(w) {
|
|
3564
3564
|
return a(g, w, v, y.get(w) || []);
|
|
@@ -3568,8 +3568,8 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3568
3568
|
let y = new u();
|
|
3569
3569
|
g.forEach(function(_) {
|
|
3570
3570
|
v.forEach((E) => y.setEdge(E.left, E.right));
|
|
3571
|
-
let w = _.graph().root,
|
|
3572
|
-
|
|
3571
|
+
let w = _.graph().root, S = o(_, w, y, h);
|
|
3572
|
+
S.vs.forEach((E, x) => _.node(E).order = x), r(_, y, S.vs);
|
|
3573
3573
|
});
|
|
3574
3574
|
}
|
|
3575
3575
|
function f(g, h) {
|
|
@@ -3578,9 +3578,9 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3578
3578
|
}), fC = It((e, t) => {
|
|
3579
3579
|
var n = Un().Graph, i = Ut();
|
|
3580
3580
|
t.exports = { positionX: v, findType1Conflicts: o, findType2Conflicts: a, addConflict: u, hasConflict: l, verticalAlignment: c, horizontalCompaction: p, alignCoordinates: g, findSmallestWidthAlignment: f, balance: h };
|
|
3581
|
-
function o(w,
|
|
3581
|
+
function o(w, S) {
|
|
3582
3582
|
let E = {};
|
|
3583
|
-
function
|
|
3583
|
+
function x(C, M) {
|
|
3584
3584
|
let N = 0, j = 0, P = C.length, I = M[M.length - 1];
|
|
3585
3585
|
return M.forEach((O, L) => {
|
|
3586
3586
|
let F = r(w, O), Z = F ? w.node(F).order : P;
|
|
@@ -3592,11 +3592,11 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3592
3592
|
}), j = L + 1, N = Z);
|
|
3593
3593
|
}), M;
|
|
3594
3594
|
}
|
|
3595
|
-
return
|
|
3595
|
+
return S.length && S.reduce(x), E;
|
|
3596
3596
|
}
|
|
3597
|
-
function a(w,
|
|
3597
|
+
function a(w, S) {
|
|
3598
3598
|
let E = {};
|
|
3599
|
-
function
|
|
3599
|
+
function x(M, N, j, P, I) {
|
|
3600
3600
|
let O;
|
|
3601
3601
|
i.range(N, j).forEach((L) => {
|
|
3602
3602
|
O = M[L], w.node(O).dummy && w.predecessors(O).forEach((F) => {
|
|
@@ -3610,41 +3610,41 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3610
3610
|
return N.forEach((O, L) => {
|
|
3611
3611
|
if (w.node(O).dummy === "border") {
|
|
3612
3612
|
let F = w.predecessors(O);
|
|
3613
|
-
F.length && (P = w.node(F[0]).order,
|
|
3613
|
+
F.length && (P = w.node(F[0]).order, x(N, I, L, j, P), I = L, j = P);
|
|
3614
3614
|
}
|
|
3615
|
-
|
|
3615
|
+
x(N, I, N.length, P, M.length);
|
|
3616
3616
|
}), N;
|
|
3617
3617
|
}
|
|
3618
|
-
return
|
|
3618
|
+
return S.length && S.reduce(C), E;
|
|
3619
3619
|
}
|
|
3620
|
-
function r(w,
|
|
3621
|
-
if (w.node(
|
|
3620
|
+
function r(w, S) {
|
|
3621
|
+
if (w.node(S).dummy) return w.predecessors(S).find((E) => w.node(E).dummy);
|
|
3622
3622
|
}
|
|
3623
|
-
function u(w,
|
|
3624
|
-
if (
|
|
3625
|
-
let C =
|
|
3626
|
-
|
|
3623
|
+
function u(w, S, E) {
|
|
3624
|
+
if (S > E) {
|
|
3625
|
+
let C = S;
|
|
3626
|
+
S = E, E = C;
|
|
3627
3627
|
}
|
|
3628
|
-
let
|
|
3629
|
-
|
|
3628
|
+
let x = w[S];
|
|
3629
|
+
x || (w[S] = x = {}), x[E] = !0;
|
|
3630
3630
|
}
|
|
3631
|
-
function l(w,
|
|
3632
|
-
if (
|
|
3633
|
-
let
|
|
3634
|
-
|
|
3631
|
+
function l(w, S, E) {
|
|
3632
|
+
if (S > E) {
|
|
3633
|
+
let x = S;
|
|
3634
|
+
S = E, E = x;
|
|
3635
3635
|
}
|
|
3636
|
-
return !!w[
|
|
3636
|
+
return !!w[S] && Object.hasOwn(w[S], E);
|
|
3637
3637
|
}
|
|
3638
|
-
function c(w,
|
|
3638
|
+
function c(w, S, E, x) {
|
|
3639
3639
|
let C = {}, M = {}, N = {};
|
|
3640
|
-
return
|
|
3640
|
+
return S.forEach((j) => {
|
|
3641
3641
|
j.forEach((P, I) => {
|
|
3642
3642
|
C[P] = P, M[P] = P, N[P] = I;
|
|
3643
3643
|
});
|
|
3644
|
-
}),
|
|
3644
|
+
}), S.forEach((j) => {
|
|
3645
3645
|
let P = -1;
|
|
3646
3646
|
j.forEach((I) => {
|
|
3647
|
-
let O =
|
|
3647
|
+
let O = x(I);
|
|
3648
3648
|
if (O.length) {
|
|
3649
3649
|
O = O.sort((F, Z) => N[F] - N[Z]);
|
|
3650
3650
|
let L = (O.length - 1) / 2;
|
|
@@ -3656,8 +3656,8 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3656
3656
|
});
|
|
3657
3657
|
}), { root: C, align: M };
|
|
3658
3658
|
}
|
|
3659
|
-
function p(w,
|
|
3660
|
-
let M = {}, N = d(w,
|
|
3659
|
+
function p(w, S, E, x, C) {
|
|
3660
|
+
let M = {}, N = d(w, S, E, C), j = C ? "borderLeft" : "borderRight";
|
|
3661
3661
|
function P(L, F) {
|
|
3662
3662
|
let Z = N.nodes().slice(), U = {}, te = Z.pop();
|
|
3663
3663
|
for (; te; ) {
|
|
@@ -3676,11 +3676,11 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3676
3676
|
let F = N.outEdges(L).reduce((U, te) => Math.min(U, M[te.w] - N.edge(te)), Number.POSITIVE_INFINITY), Z = w.node(L);
|
|
3677
3677
|
F !== Number.POSITIVE_INFINITY && Z.borderType !== j && (M[L] = Math.max(M[L], F));
|
|
3678
3678
|
}
|
|
3679
|
-
return P(I, N.predecessors.bind(N)), P(O, N.successors.bind(N)), Object.keys(
|
|
3679
|
+
return P(I, N.predecessors.bind(N)), P(O, N.successors.bind(N)), Object.keys(x).forEach((L) => M[L] = M[E[L]]), M;
|
|
3680
3680
|
}
|
|
3681
|
-
function d(w,
|
|
3682
|
-
let C = new n(), M = w.graph(), N = y(M.nodesep, M.edgesep,
|
|
3683
|
-
return
|
|
3681
|
+
function d(w, S, E, x) {
|
|
3682
|
+
let C = new n(), M = w.graph(), N = y(M.nodesep, M.edgesep, x);
|
|
3683
|
+
return S.forEach((j) => {
|
|
3684
3684
|
let P;
|
|
3685
3685
|
j.forEach((I) => {
|
|
3686
3686
|
let O = E[I];
|
|
@@ -3692,52 +3692,52 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3692
3692
|
});
|
|
3693
3693
|
}), C;
|
|
3694
3694
|
}
|
|
3695
|
-
function f(w,
|
|
3696
|
-
return Object.values(
|
|
3695
|
+
function f(w, S) {
|
|
3696
|
+
return Object.values(S).reduce((E, x) => {
|
|
3697
3697
|
let C = Number.NEGATIVE_INFINITY, M = Number.POSITIVE_INFINITY;
|
|
3698
|
-
Object.entries(
|
|
3698
|
+
Object.entries(x).forEach(([j, P]) => {
|
|
3699
3699
|
let I = _(w, j) / 2;
|
|
3700
3700
|
C = Math.max(P + I, C), M = Math.min(P - I, M);
|
|
3701
3701
|
});
|
|
3702
3702
|
let N = C - M;
|
|
3703
|
-
return N < E[0] && (E = [N,
|
|
3703
|
+
return N < E[0] && (E = [N, x]), E;
|
|
3704
3704
|
}, [Number.POSITIVE_INFINITY, null])[1];
|
|
3705
3705
|
}
|
|
3706
|
-
function g(w,
|
|
3707
|
-
let E = Object.values(
|
|
3706
|
+
function g(w, S) {
|
|
3707
|
+
let E = Object.values(S), x = i.applyWithChunking(Math.min, E), C = i.applyWithChunking(Math.max, E);
|
|
3708
3708
|
["u", "d"].forEach((M) => {
|
|
3709
3709
|
["l", "r"].forEach((N) => {
|
|
3710
3710
|
let j = M + N, P = w[j];
|
|
3711
|
-
if (P ===
|
|
3712
|
-
let I = Object.values(P), O =
|
|
3711
|
+
if (P === S) return;
|
|
3712
|
+
let I = Object.values(P), O = x - i.applyWithChunking(Math.min, I);
|
|
3713
3713
|
N !== "l" && (O = C - i.applyWithChunking(Math.max, I)), O && (w[j] = i.mapValues(P, (L) => L + O));
|
|
3714
3714
|
});
|
|
3715
3715
|
});
|
|
3716
3716
|
}
|
|
3717
|
-
function h(w,
|
|
3718
|
-
return i.mapValues(w.ul, (E,
|
|
3719
|
-
if (
|
|
3717
|
+
function h(w, S) {
|
|
3718
|
+
return i.mapValues(w.ul, (E, x) => {
|
|
3719
|
+
if (S) return w[S.toLowerCase()][x];
|
|
3720
3720
|
{
|
|
3721
|
-
let C = Object.values(w).map((M) => M[
|
|
3721
|
+
let C = Object.values(w).map((M) => M[x]).sort((M, N) => M - N);
|
|
3722
3722
|
return (C[1] + C[2]) / 2;
|
|
3723
3723
|
}
|
|
3724
3724
|
});
|
|
3725
3725
|
}
|
|
3726
3726
|
function v(w) {
|
|
3727
|
-
let
|
|
3727
|
+
let S = i.buildLayerMatrix(w), E = Object.assign(o(w, S), a(w, S)), x = {}, C;
|
|
3728
3728
|
["u", "d"].forEach((N) => {
|
|
3729
|
-
C = N === "u" ?
|
|
3729
|
+
C = N === "u" ? S : Object.values(S).reverse(), ["l", "r"].forEach((j) => {
|
|
3730
3730
|
j === "r" && (C = C.map((L) => Object.values(L).reverse()));
|
|
3731
3731
|
let P = (N === "u" ? w.predecessors : w.successors).bind(w), I = c(w, C, E, P), O = p(w, C, I.root, I.align, j === "r");
|
|
3732
|
-
j === "r" && (O = i.mapValues(O, (L) => -L)),
|
|
3732
|
+
j === "r" && (O = i.mapValues(O, (L) => -L)), x[N + j] = O;
|
|
3733
3733
|
});
|
|
3734
3734
|
});
|
|
3735
|
-
let M = f(w,
|
|
3736
|
-
return g(
|
|
3735
|
+
let M = f(w, x);
|
|
3736
|
+
return g(x, M), h(x, w.graph().align);
|
|
3737
3737
|
}
|
|
3738
|
-
function y(w,
|
|
3739
|
-
return (
|
|
3740
|
-
let N =
|
|
3738
|
+
function y(w, S, E) {
|
|
3739
|
+
return (x, C, M) => {
|
|
3740
|
+
let N = x.node(C), j = x.node(M), P = 0, I;
|
|
3741
3741
|
if (P += N.width / 2, Object.hasOwn(N, "labelpos")) switch (N.labelpos.toLowerCase()) {
|
|
3742
3742
|
case "l":
|
|
3743
3743
|
I = -N.width / 2;
|
|
@@ -3746,7 +3746,7 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3746
3746
|
I = N.width / 2;
|
|
3747
3747
|
break;
|
|
3748
3748
|
}
|
|
3749
|
-
if (I && (P += E ? I : -I), I = 0, P += (N.dummy ?
|
|
3749
|
+
if (I && (P += E ? I : -I), I = 0, P += (N.dummy ? S : w) / 2, P += (j.dummy ? S : w) / 2, P += j.width / 2, Object.hasOwn(j, "labelpos")) switch (j.labelpos.toLowerCase()) {
|
|
3750
3750
|
case "l":
|
|
3751
3751
|
I = j.width / 2;
|
|
3752
3752
|
break;
|
|
@@ -3757,8 +3757,8 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3757
3757
|
return I && (P += E ? I : -I), I = 0, P;
|
|
3758
3758
|
};
|
|
3759
3759
|
}
|
|
3760
|
-
function _(w,
|
|
3761
|
-
return w.node(
|
|
3760
|
+
function _(w, S) {
|
|
3761
|
+
return w.node(S).width;
|
|
3762
3762
|
}
|
|
3763
3763
|
}), mC = It((e, t) => {
|
|
3764
3764
|
var n = Ut(), i = fC().positionX;
|
|
@@ -3801,11 +3801,11 @@ var It = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
|
3801
3801
|
re.points = ve.points, Object.hasOwn(ve, "x") && (re.x = ve.x, re.y = ve.y);
|
|
3802
3802
|
}), A.graph().width = V.graph().width, A.graph().height = V.graph().height;
|
|
3803
3803
|
}
|
|
3804
|
-
var w = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"],
|
|
3804
|
+
var w = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], S = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb", rankalign: "center" }, E = ["acyclicer", "ranker", "rankdir", "align", "rankalign"], x = ["width", "height", "rank"], C = { width: 0, height: 0 }, M = ["minlen", "weight", "width", "height", "labeloffset"], N = { minlen: 1, weight: 1, width: 0, height: 0, labeloffset: 10, labelpos: "r" }, j = ["labelpos"];
|
|
3805
3805
|
function P(A) {
|
|
3806
3806
|
let V = new h({ multigraph: !0, compound: !0 }), ce = q(A.graph());
|
|
3807
|
-
return V.setGraph(Object.assign({},
|
|
3808
|
-
let ve = q(A.node(re)), se = ne(ve,
|
|
3807
|
+
return V.setGraph(Object.assign({}, S, ne(ce, w), g.pick(ce, E))), A.nodes().forEach((re) => {
|
|
3808
|
+
let ve = q(A.node(re)), se = ne(ve, x);
|
|
3809
3809
|
Object.keys(C).forEach((le) => {
|
|
3810
3810
|
se[le] === void 0 && (se[le] = C[le]);
|
|
3811
3811
|
}), V.setNode(re, se), V.setParent(re, A.parent(re));
|
|
@@ -4065,7 +4065,7 @@ function wC({ state: e, groupMapById: t, getNodeById: n, history: i }) {
|
|
|
4065
4065
|
O.push(L.id), L = a.value.get(L.ownerId);
|
|
4066
4066
|
return O;
|
|
4067
4067
|
}
|
|
4068
|
-
function
|
|
4068
|
+
function S(I, O) {
|
|
4069
4069
|
const L = w(O);
|
|
4070
4070
|
if (L.length === 0) return !1;
|
|
4071
4071
|
const F = new Set(w(I));
|
|
@@ -4085,13 +4085,13 @@ function wC({ state: e, groupMapById: t, getNodeById: n, history: i }) {
|
|
|
4085
4085
|
}
|
|
4086
4086
|
return !1;
|
|
4087
4087
|
}
|
|
4088
|
-
function
|
|
4088
|
+
function x(I, O, L) {
|
|
4089
4089
|
const F = n(I);
|
|
4090
4090
|
return !(!c(F, O) || !p(F, L) || E(I, L));
|
|
4091
4091
|
}
|
|
4092
4092
|
function C(I, O, L, F = {}) {
|
|
4093
4093
|
const Z = n(I);
|
|
4094
|
-
if (!Z || !
|
|
4094
|
+
if (!Z || !x(I, O, L)) return !1;
|
|
4095
4095
|
const U = ls(Z, O);
|
|
4096
4096
|
if (U.includes(L)) return !1;
|
|
4097
4097
|
M(L, { commit: !1 });
|
|
@@ -4133,8 +4133,8 @@ function wC({ state: e, groupMapById: t, getNodeById: n, history: i }) {
|
|
|
4133
4133
|
getNodeDepth: N,
|
|
4134
4134
|
getGroupDepth: j,
|
|
4135
4135
|
isGroupId: P,
|
|
4136
|
-
isEdgeEnteringGroup:
|
|
4137
|
-
canAddMember:
|
|
4136
|
+
isEdgeEnteringGroup: S,
|
|
4137
|
+
canAddMember: x
|
|
4138
4138
|
};
|
|
4139
4139
|
}
|
|
4140
4140
|
function kC(e, t) {
|
|
@@ -4153,16 +4153,16 @@ function kC(e, t) {
|
|
|
4153
4153
|
clone: t?.clone
|
|
4154
4154
|
});
|
|
4155
4155
|
let d;
|
|
4156
|
-
function f(
|
|
4157
|
-
t?.onHistoryChange?.(
|
|
4156
|
+
function f(S) {
|
|
4157
|
+
t?.onHistoryChange?.(S, e.value);
|
|
4158
4158
|
}
|
|
4159
|
-
function g(
|
|
4160
|
-
if (!
|
|
4159
|
+
function g(S) {
|
|
4160
|
+
if (!S) {
|
|
4161
4161
|
d = void 0, n(), f("commit");
|
|
4162
4162
|
return;
|
|
4163
4163
|
}
|
|
4164
|
-
if (
|
|
4165
|
-
d =
|
|
4164
|
+
if (S !== "*" && d !== S) {
|
|
4165
|
+
d = S, n(), f("commit");
|
|
4166
4166
|
return;
|
|
4167
4167
|
}
|
|
4168
4168
|
n(), c.value.shift(), f("commit");
|
|
@@ -4216,9 +4216,9 @@ function Sc(e, t) {
|
|
|
4216
4216
|
), u = [], l = [], c = /* @__PURE__ */ new Map(), p = [], d = [], f = /* @__PURE__ */ new Map(), g = (y) => {
|
|
4217
4217
|
const _ = /* @__PURE__ */ new Set(), w = [...y];
|
|
4218
4218
|
for (; w.length > 0; ) {
|
|
4219
|
-
const
|
|
4220
|
-
if (!_.has(
|
|
4221
|
-
for (const E of f.get(
|
|
4219
|
+
const S = w.shift();
|
|
4220
|
+
if (!_.has(S) && (_.add(S), ou(S) || (c.get(S).phase = "request"), !!f.has(S)))
|
|
4221
|
+
for (const E of f.get(S))
|
|
4222
4222
|
_.has(E) || w.push(E);
|
|
4223
4223
|
}
|
|
4224
4224
|
};
|
|
@@ -4240,27 +4240,27 @@ function Sc(e, t) {
|
|
|
4240
4240
|
continue;
|
|
4241
4241
|
const w = y.config;
|
|
4242
4242
|
if (w)
|
|
4243
|
-
for (const
|
|
4244
|
-
const E = w[
|
|
4243
|
+
for (const S of _) {
|
|
4244
|
+
const E = w[S];
|
|
4245
4245
|
if (!Array.isArray(E)) {
|
|
4246
|
-
r.has(Qa(y.name,
|
|
4246
|
+
r.has(Qa(y.name, S)) && (h = !0);
|
|
4247
4247
|
continue;
|
|
4248
4248
|
}
|
|
4249
|
-
const
|
|
4249
|
+
const x = [];
|
|
4250
4250
|
for (const C of E) {
|
|
4251
4251
|
if (typeof C != "string")
|
|
4252
4252
|
continue;
|
|
4253
4253
|
const M = c.get(C);
|
|
4254
|
-
M && !sn(M.type) &&
|
|
4254
|
+
M && !sn(M.type) && x.push(M.id);
|
|
4255
4255
|
}
|
|
4256
|
-
if (
|
|
4257
|
-
w[
|
|
4258
|
-
const C = Qa(y.name,
|
|
4256
|
+
if (x.length) {
|
|
4257
|
+
w[S] = x;
|
|
4258
|
+
const C = Qa(y.name, S), M = r.get(C), N = M ? {
|
|
4259
4259
|
position: oi(M.position)
|
|
4260
|
-
} : void 0, j = Ef(y.id,
|
|
4260
|
+
} : void 0, j = Ef(y.id, S, y.phase, x, N);
|
|
4261
4261
|
p.push(j), !M && !h && (h = !0);
|
|
4262
4262
|
} else
|
|
4263
|
-
delete w[
|
|
4263
|
+
delete w[S], r.has(Qa(y.name, S)) && (h = !0);
|
|
4264
4264
|
}
|
|
4265
4265
|
}
|
|
4266
4266
|
for (const y of To)
|
|
@@ -4447,15 +4447,15 @@ function OC(e) {
|
|
|
4447
4447
|
if (h || g.push("source node not found"), v || g.push("target node not found"), !h || !v) return { ok: !1, errors: g };
|
|
4448
4448
|
ss(h, f.sourceField) || g.push("source handle is not an output field"), Cc(v, f.targetField) || g.push("target handle is not an input field"), v.name === "request" && g.push('cannot target "request"'), h.name === "response" && g.push('cannot source from "response"');
|
|
4449
4449
|
const y = n.value.some(
|
|
4450
|
-
(
|
|
4450
|
+
(S) => S.target === f.target && !S.targetField
|
|
4451
4451
|
), _ = n.value.some(
|
|
4452
|
-
(
|
|
4452
|
+
(S) => S.target === f.target && !!S.targetField
|
|
4453
4453
|
);
|
|
4454
4454
|
(y && f.targetField || _ && !f.targetField) && g.push(
|
|
4455
4455
|
"cannot mix whole-node and field-level inputs on same target"
|
|
4456
4456
|
), f.targetField && n.value.some(
|
|
4457
|
-
(
|
|
4458
|
-
) && g.push("target field already connected"), !f.targetField && n.value.some((
|
|
4457
|
+
(S) => S.target === f.target && S.targetField === f.targetField
|
|
4458
|
+
) && g.push("target field already connected"), !f.targetField && n.value.some((S) => S.target === f.target && !S.targetField) && g.push("target input already taken"), f.source === f.target && g.push("self-loop not allowed");
|
|
4459
4459
|
const w = a({ source: f.source, target: f.target });
|
|
4460
4460
|
return cl(w) && g.push("connection introduces a cycle"), g.length ? { ok: !1, errors: g } : { ok: !0 };
|
|
4461
4461
|
}
|
|
@@ -4527,13 +4527,13 @@ const [Tf, PC] = $l(
|
|
|
4527
4527
|
edgeIdMapByNodeId: ue
|
|
4528
4528
|
};
|
|
4529
4529
|
}
|
|
4530
|
-
), _ = R(() => y.value.edgeMapById), w = R(() => y.value.edgeIdMapByNodeId),
|
|
4530
|
+
), _ = R(() => y.value.edgeMapById), w = R(() => y.value.edgeIdMapByNodeId), S = R(
|
|
4531
4531
|
() => new Map(
|
|
4532
4532
|
i.value.groups.map((Y) => [Y.id, Y])
|
|
4533
4533
|
)
|
|
4534
4534
|
), E = R(
|
|
4535
4535
|
() => new Set(i.value.nodes.map((Y) => Y.name))
|
|
4536
|
-
),
|
|
4536
|
+
), x = wC({ state: i, groupMapById: S, getNodeById: I, history: l }), {
|
|
4537
4537
|
canonicalizeConnection: C,
|
|
4538
4538
|
validateConnection: M,
|
|
4539
4539
|
validateGraph: N,
|
|
@@ -4614,7 +4614,7 @@ const [Tf, PC] = $l(
|
|
|
4614
4614
|
if (!I(Y)) return;
|
|
4615
4615
|
i.value.edges = i.value.edges.filter(
|
|
4616
4616
|
(m) => m.source !== Y && m.target !== Y
|
|
4617
|
-
),
|
|
4617
|
+
), x.clear(Y, { commit: !1 }), x.removeMember(Y, { commit: !1 }), i.value.nodes = i.value.nodes.filter(
|
|
4618
4618
|
(m) => m.id !== Y
|
|
4619
4619
|
), o.value === Y && (o.value = void 0);
|
|
4620
4620
|
const we = N();
|
|
@@ -4634,13 +4634,13 @@ const [Tf, PC] = $l(
|
|
|
4634
4634
|
we && (we.position = { ...ue }, me && l.commit());
|
|
4635
4635
|
}
|
|
4636
4636
|
function V(Y, ue, me = !0) {
|
|
4637
|
-
const we =
|
|
4637
|
+
const we = S.value.get(Y);
|
|
4638
4638
|
if (!we) return;
|
|
4639
4639
|
const m = we.position;
|
|
4640
4640
|
m && m.x === ue.x && m.y === ue.y || (we.position = { ...ue }, me && l.commit());
|
|
4641
4641
|
}
|
|
4642
4642
|
function ce(Y, ue, me = !0) {
|
|
4643
|
-
const we =
|
|
4643
|
+
const we = S.value.get(Y);
|
|
4644
4644
|
if (!we) return !1;
|
|
4645
4645
|
const m = { ...ue.position }, oe = { ...ue.dimensions }, ge = we.position && we.position.x === m.x && we.position.y === m.y, _e = we.dimensions && we.dimensions.width === oe.width && we.dimensions.height === oe.height;
|
|
4646
4646
|
return ge && _e ? !1 : (we.position = m, we.dimensions = oe, me && l.commit(), !0);
|
|
@@ -4844,7 +4844,7 @@ const [Tf, PC] = $l(
|
|
|
4844
4844
|
nodeMapByName: v,
|
|
4845
4845
|
edgeMapById: _,
|
|
4846
4846
|
edgeIdMapByNodeId: w,
|
|
4847
|
-
groupMapById:
|
|
4847
|
+
groupMapById: S,
|
|
4848
4848
|
getNodeById: I,
|
|
4849
4849
|
getNodeByName: O,
|
|
4850
4850
|
getEdgeById: L,
|
|
@@ -4865,7 +4865,7 @@ const [Tf, PC] = $l(
|
|
|
4865
4865
|
setGroupLayout: ce,
|
|
4866
4866
|
toggleExpanded: re,
|
|
4867
4867
|
replaceConfig: ve,
|
|
4868
|
-
branchGroups:
|
|
4868
|
+
branchGroups: x,
|
|
4869
4869
|
// field ops
|
|
4870
4870
|
addField: se,
|
|
4871
4871
|
renameField: le,
|
|
@@ -4920,14 +4920,14 @@ function NC(e) {
|
|
|
4920
4920
|
translateGroupTree: _,
|
|
4921
4921
|
waitForLayoutFlush: w
|
|
4922
4922
|
} = t, {
|
|
4923
|
-
viewport:
|
|
4923
|
+
viewport: S,
|
|
4924
4924
|
padding: E = vi.padding,
|
|
4925
|
-
gaps:
|
|
4925
|
+
gaps: x = vi.gaps
|
|
4926
4926
|
} = i, {
|
|
4927
4927
|
nodes: C = vi.gaps.nodes,
|
|
4928
4928
|
edges: M = vi.gaps.edges,
|
|
4929
4929
|
ranks: N = vi.gaps.ranks
|
|
4930
|
-
} =
|
|
4930
|
+
} = x;
|
|
4931
4931
|
async function j(O = !0) {
|
|
4932
4932
|
const L = new Map(
|
|
4933
4933
|
o.value.map((A) => [A.id, A.data])
|
|
@@ -5080,7 +5080,7 @@ function NC(e) {
|
|
|
5080
5080
|
}
|
|
5081
5081
|
const ne = X.length > 0 ? xf(X) : { x: 0, y: 0, width: 0, height: 0 }, q = ne.width, A = ne.height, V = ne.x, ce = ne.x + ne.width, re = Math.max(
|
|
5082
5082
|
0,
|
|
5083
|
-
Math.min(xt(
|
|
5083
|
+
Math.min(xt(S?.width) ?? Number.POSITIVE_INFINITY, ov) - q - 2 * C - (D?.dimensions?.width ?? 0) - (H?.dimensions?.width ?? 0) - 2 * E
|
|
5084
5084
|
), ve = ne.y + A / 2;
|
|
5085
5085
|
F && p(F.id, {
|
|
5086
5086
|
x: V - C - re / 2 - (D?.dimensions?.width ?? 0),
|
|
@@ -5205,7 +5205,7 @@ function MC({
|
|
|
5205
5205
|
getNodeDepth: y,
|
|
5206
5206
|
getGroupDepth: _
|
|
5207
5207
|
} = g, w = (H) => !!H && H.startsWith("branch:");
|
|
5208
|
-
function
|
|
5208
|
+
function S(H) {
|
|
5209
5209
|
const K = [];
|
|
5210
5210
|
for (const X of H.memberIds) {
|
|
5211
5211
|
const z = l(X);
|
|
@@ -5220,7 +5220,7 @@ function MC({
|
|
|
5220
5220
|
const z = l(X);
|
|
5221
5221
|
z && (z.phase !== e || z.hidden || H.set(X, K));
|
|
5222
5222
|
}), H;
|
|
5223
|
-
}),
|
|
5223
|
+
}), x = R(() => {
|
|
5224
5224
|
const H = /* @__PURE__ */ new Map();
|
|
5225
5225
|
return v.value.forEach((K, X) => {
|
|
5226
5226
|
const z = K.filter((ne) => ne.phase === e);
|
|
@@ -5233,7 +5233,7 @@ function MC({
|
|
|
5233
5233
|
if (!X || X.phase !== e) continue;
|
|
5234
5234
|
const z = K.position, ne = K.dimensions;
|
|
5235
5235
|
if (!z || !ne) continue;
|
|
5236
|
-
const q =
|
|
5236
|
+
const q = S(K).filter((V) => V.phase === e && !V.hidden), A = _(K.id);
|
|
5237
5237
|
H.push({
|
|
5238
5238
|
id: K.id,
|
|
5239
5239
|
type: "group",
|
|
@@ -5263,7 +5263,7 @@ function MC({
|
|
|
5263
5263
|
for (const K of r.value.groups) {
|
|
5264
5264
|
if (K.phase !== e || !K.position || !K.dimensions) continue;
|
|
5265
5265
|
const X = l(K.ownerId);
|
|
5266
|
-
if (!X || X.phase !== e || X.hidden || !
|
|
5266
|
+
if (!X || X.phase !== e || X.hidden || !S(K).filter((A) => A.phase === e && !A.hidden).length) continue;
|
|
5267
5267
|
const ne = Math.max(y(X.id), _(K.id)) + M.value + 1, q = {
|
|
5268
5268
|
id: `branch:${K.id}`,
|
|
5269
5269
|
source: X.id,
|
|
@@ -5289,7 +5289,7 @@ function MC({
|
|
|
5289
5289
|
let I;
|
|
5290
5290
|
function O(H, K = !0) {
|
|
5291
5291
|
if (H.phase !== e) return;
|
|
5292
|
-
const X =
|
|
5292
|
+
const X = S(H).filter((V) => V.phase === e && !V.hidden);
|
|
5293
5293
|
if (!X.length) return;
|
|
5294
5294
|
const z = [];
|
|
5295
5295
|
for (const V of X) {
|
|
@@ -5377,13 +5377,13 @@ function MC({
|
|
|
5377
5377
|
for (; q.length; ) {
|
|
5378
5378
|
const ce = q.shift(), re = u.value.get(ce);
|
|
5379
5379
|
if (!re) continue;
|
|
5380
|
-
const ve =
|
|
5380
|
+
const ve = S(re).filter((se) => se.phase === e && !se.hidden);
|
|
5381
5381
|
for (const se of ve) {
|
|
5382
5382
|
V.has(se.id) || (c(se.id, {
|
|
5383
5383
|
x: se.position.x + X,
|
|
5384
5384
|
y: se.position.y + z
|
|
5385
5385
|
}, !1), V.add(se.id));
|
|
5386
|
-
const le =
|
|
5386
|
+
const le = x.value.get(se.id) ?? [];
|
|
5387
5387
|
for (const xe of le) {
|
|
5388
5388
|
if (A.has(xe.id)) continue;
|
|
5389
5389
|
const qe = u.value.get(xe.id);
|
|
@@ -5400,7 +5400,7 @@ function MC({
|
|
|
5400
5400
|
if (!X) return !1;
|
|
5401
5401
|
if (X === H || K.some((z) => X === z)) return !0;
|
|
5402
5402
|
for (const z of K)
|
|
5403
|
-
if ((
|
|
5403
|
+
if ((x.value.get(z) ?? [])?.some((q) => q.id === X))
|
|
5404
5404
|
return !0;
|
|
5405
5405
|
return !1;
|
|
5406
5406
|
}
|
|
@@ -5429,7 +5429,7 @@ function MC({
|
|
|
5429
5429
|
flush: "post"
|
|
5430
5430
|
}
|
|
5431
5431
|
), {
|
|
5432
|
-
groupsByOwner:
|
|
5432
|
+
groupsByOwner: x,
|
|
5433
5433
|
memberGroupMap: E,
|
|
5434
5434
|
groupNodes: C,
|
|
5435
5435
|
branchEdges: N,
|
|
@@ -5509,9 +5509,9 @@ const [jC, qC] = $l(
|
|
|
5509
5509
|
deleteKeyCode: y,
|
|
5510
5510
|
onNodeDrag: _,
|
|
5511
5511
|
onNodeDragStop: w,
|
|
5512
|
-
onConnect:
|
|
5512
|
+
onConnect: S,
|
|
5513
5513
|
onNodesChange: E,
|
|
5514
|
-
onEdgesChange:
|
|
5514
|
+
onEdgesChange: x,
|
|
5515
5515
|
onEdgeUpdate: C,
|
|
5516
5516
|
onEdgeMouseEnter: M,
|
|
5517
5517
|
onEdgeMouseLeave: N,
|
|
@@ -5681,7 +5681,7 @@ const [jC, qC] = $l(
|
|
|
5681
5681
|
}
|
|
5682
5682
|
q();
|
|
5683
5683
|
}
|
|
5684
|
-
|
|
5684
|
+
S(_e);
|
|
5685
5685
|
let pe = !1;
|
|
5686
5686
|
const Fe = () => {
|
|
5687
5687
|
pe && (pe = !1, q());
|
|
@@ -5754,7 +5754,7 @@ const [jC, qC] = $l(
|
|
|
5754
5754
|
U(Ie, Ee, !1);
|
|
5755
5755
|
const De = be && ce(be) ? be : Ve.value.get(Ie)?.id;
|
|
5756
5756
|
De && lt(De, !1), de(Ie), ue(), Z();
|
|
5757
|
-
}),
|
|
5757
|
+
}), x((B) => {
|
|
5758
5758
|
B.filter((Ee) => Ee.type === "select").sort((Ee, De) => Ee.selected === De.selected ? 0 : Ee.selected ? 1 : -1).forEach((Ee) => {
|
|
5759
5759
|
rt(Ee.id) || (Pf = Ee.selected ? Ee.id : void 0, I((De) => De.map((je) => je.id !== Ee.id || !je.markerEnd ? je : La({
|
|
5760
5760
|
...je,
|
|
@@ -6091,7 +6091,7 @@ const GC = {
|
|
|
6091
6091
|
() => g.value && o(e.data.id).every((z) => z.targetField === void 0)
|
|
6092
6092
|
), y = R(
|
|
6093
6093
|
() => h.value && a(e.data.id).every((z) => z.sourceField === void 0)
|
|
6094
|
-
), _ = R(() => e.data.expanded.input ?? !1), w = R(() => e.data.expanded.output ?? !1),
|
|
6094
|
+
), _ = R(() => e.data.expanded.input ?? !1), w = R(() => e.data.expanded.output ?? !1), S = R(() => f.value.io?.next?.branches?.map(({ name: z }) => z) ?? []), E = R(() => S.value.length > 0), x = R(() => d.findMembership(e.data.id)), C = R(() => {
|
|
6095
6095
|
if (e.data.type === "property") {
|
|
6096
6096
|
const z = e.data.config?.property;
|
|
6097
6097
|
return rl(z);
|
|
@@ -6207,7 +6207,7 @@ const GC = {
|
|
|
6207
6207
|
]),
|
|
6208
6208
|
_: 1
|
|
6209
6209
|
}),
|
|
6210
|
-
|
|
6210
|
+
x.value ? (k(), W(s(Ya), {
|
|
6211
6211
|
key: 0,
|
|
6212
6212
|
onClick: X
|
|
6213
6213
|
}, {
|
|
@@ -6393,7 +6393,7 @@ const GC = {
|
|
|
6393
6393
|
]))), 128)) : he("", !0)
|
|
6394
6394
|
], 2)) : he("", !0),
|
|
6395
6395
|
E.value ? (k(), Q("div", dE, [
|
|
6396
|
-
(k(!0), Q(ze, null, Qe(
|
|
6396
|
+
(k(!0), Q(ze, null, Qe(S.value, (q) => (k(), Q("div", {
|
|
6397
6397
|
key: `branch-${q}`,
|
|
6398
6398
|
class: "handle"
|
|
6399
6399
|
}, [
|
|
@@ -6472,7 +6472,7 @@ const GC = {
|
|
|
6472
6472
|
}
|
|
6473
6473
|
},
|
|
6474
6474
|
readonly: e.mode !== "edit"
|
|
6475
|
-
}), { addNode: w, propertiesPanelOpen:
|
|
6475
|
+
}), { addNode: w, propertiesPanelOpen: S, invalidConfigNodeIds: E, selectedNode: x, duplicateNode: C, commit: M, selectPortalEdge: N } = p, { screenToFlowCoordinate: j, zoomIn: P, zoomOut: I, viewport: O, maxZoom: L, minZoom: F } = c, {
|
|
6476
6476
|
activeGroupId: Z,
|
|
6477
6477
|
startPanelDrag: U,
|
|
6478
6478
|
endPanelDrag: te,
|
|
@@ -6496,7 +6496,7 @@ const GC = {
|
|
|
6496
6496
|
h(void 0), N(void 0);
|
|
6497
6497
|
return;
|
|
6498
6498
|
}
|
|
6499
|
-
|
|
6499
|
+
S.value = !0;
|
|
6500
6500
|
}
|
|
6501
6501
|
}
|
|
6502
6502
|
function z(re) {
|
|
@@ -6521,7 +6521,7 @@ const GC = {
|
|
|
6521
6521
|
te();
|
|
6522
6522
|
return;
|
|
6523
6523
|
}
|
|
6524
|
-
H(Ue), M(), h(Ue),
|
|
6524
|
+
H(Ue), M(), h(Ue), S.value = !0, te();
|
|
6525
6525
|
}
|
|
6526
6526
|
async function q() {
|
|
6527
6527
|
o("initialized"), e.mode === "inspect" && setTimeout(async () => {
|
|
@@ -6546,13 +6546,13 @@ const GC = {
|
|
|
6546
6546
|
te();
|
|
6547
6547
|
}));
|
|
6548
6548
|
async function ce() {
|
|
6549
|
-
const re =
|
|
6549
|
+
const re = x.value;
|
|
6550
6550
|
if (e.mode !== "edit" || !re || re.phase !== e.phase) return;
|
|
6551
6551
|
const ve = C(re.id, v(re.id));
|
|
6552
|
-
ve && (await h(ve),
|
|
6552
|
+
ve && (await h(ve), S.value = !0, y(ve));
|
|
6553
6553
|
}
|
|
6554
6554
|
return cp({
|
|
6555
|
-
enabled: R(() => !!
|
|
6555
|
+
enabled: R(() => !!x.value && e.mode === "edit" && x.value.phase === e.phase),
|
|
6556
6556
|
duplicate: ce
|
|
6557
6557
|
}), t({ autoLayout: d, fitView: g }), (re, ve) => (k(), Q("div", {
|
|
6558
6558
|
ref_key: "flowCanvas",
|
|
@@ -6901,7 +6901,7 @@ const Ai = (e) => {
|
|
|
6901
6901
|
c.value = !1;
|
|
6902
6902
|
}
|
|
6903
6903
|
}, f = R(() => n.value.map((h) => h.id || "current-cp")), g = (h) => {
|
|
6904
|
-
const v = h.includes("current-cp") ? [{ scope: "cp", id: null, region: null }] : [], y = n.value.filter(({ scope:
|
|
6904
|
+
const v = h.includes("current-cp") ? [{ scope: "cp", id: null, region: null }] : [], y = n.value.filter(({ scope: x }) => x !== "cp").map(({ id: x }) => x), _ = h.filter((x) => x !== "current-cp"), E = (y.length !== _.length || y.some((x) => !_.includes(x)) ? _.filter((x) => !y.includes(x)) : _).map((x) => ({ ...l(), scope: "realm", id: x }));
|
|
6905
6905
|
n.value = [
|
|
6906
6906
|
...v,
|
|
6907
6907
|
...E
|
|
@@ -9009,33 +9009,33 @@ function Rx(e, t) {
|
|
|
9009
9009
|
function Mx(e, t) {
|
|
9010
9010
|
const n = fe({}), i = fe({});
|
|
9011
9011
|
function o(_, w) {
|
|
9012
|
-
const
|
|
9013
|
-
if (!
|
|
9014
|
-
const
|
|
9012
|
+
const S = _.map((x) => un(x).length), E = S[0];
|
|
9013
|
+
if (!S.every((x) => x === E)) {
|
|
9014
|
+
const x = _.map((C, M) => ` - '${C}' is at level ${S[M]}`).join(`
|
|
9015
9015
|
`);
|
|
9016
9016
|
throw new Error(
|
|
9017
9017
|
`${w}: Fields must be at the same level. Found mixed levels:
|
|
9018
|
-
${
|
|
9018
|
+
${x}`
|
|
9019
9019
|
);
|
|
9020
9020
|
}
|
|
9021
9021
|
}
|
|
9022
9022
|
function a(_) {
|
|
9023
|
-
for (const [w,
|
|
9024
|
-
if (!
|
|
9025
|
-
for (const
|
|
9026
|
-
if (new Set(
|
|
9027
|
-
const M =
|
|
9023
|
+
for (const [w, S] of Object.entries(_)) {
|
|
9024
|
+
if (!S.bundles) continue;
|
|
9025
|
+
for (const x of S.bundles)
|
|
9026
|
+
if (new Set(x).size !== x.length) {
|
|
9027
|
+
const M = x.filter((N, j) => x.indexOf(N) !== j);
|
|
9028
9028
|
throw new Error(
|
|
9029
|
-
`Self-cycle detected in bundle: field '${M[0]}' appears multiple times in [${
|
|
9029
|
+
`Self-cycle detected in bundle: field '${M[0]}' appears multiple times in [${x.join(", ")}]`
|
|
9030
9030
|
);
|
|
9031
9031
|
}
|
|
9032
9032
|
const E = /* @__PURE__ */ new Map();
|
|
9033
|
-
for (const
|
|
9034
|
-
for (let C = 1; C <
|
|
9035
|
-
const M =
|
|
9033
|
+
for (const x of S.bundles)
|
|
9034
|
+
for (let C = 1; C < x.length; C++) {
|
|
9035
|
+
const M = x[C], N = x[C - 1];
|
|
9036
9036
|
E.has(M) || E.set(M, /* @__PURE__ */ new Set()), E.get(M).add(N);
|
|
9037
9037
|
}
|
|
9038
|
-
for (const
|
|
9038
|
+
for (const x of E.keys()) {
|
|
9039
9039
|
let C = function(j) {
|
|
9040
9040
|
if (N.includes(j)) {
|
|
9041
9041
|
const I = [...N, j].join(" -> ");
|
|
@@ -9053,15 +9053,15 @@ ${I}`
|
|
|
9053
9053
|
N.pop();
|
|
9054
9054
|
};
|
|
9055
9055
|
const M = /* @__PURE__ */ new Set(), N = [];
|
|
9056
|
-
C(
|
|
9056
|
+
C(x);
|
|
9057
9057
|
}
|
|
9058
9058
|
}
|
|
9059
9059
|
}
|
|
9060
9060
|
function r(_) {
|
|
9061
|
-
for (const [w,
|
|
9062
|
-
if (
|
|
9063
|
-
for (const E of Object.keys(
|
|
9064
|
-
let
|
|
9061
|
+
for (const [w, S] of Object.entries(_))
|
|
9062
|
+
if (S.dependencies)
|
|
9063
|
+
for (const E of Object.keys(S.dependencies)) {
|
|
9064
|
+
let x = function(N) {
|
|
9065
9065
|
if (M.includes(N)) {
|
|
9066
9066
|
const P = [...M, N].join(" -> ");
|
|
9067
9067
|
throw new Error(
|
|
@@ -9071,25 +9071,25 @@ ${P}`
|
|
|
9071
9071
|
}
|
|
9072
9072
|
if (C.has(N)) return;
|
|
9073
9073
|
C.add(N), M.push(N);
|
|
9074
|
-
const j =
|
|
9074
|
+
const j = S.dependencies[N];
|
|
9075
9075
|
if (j) {
|
|
9076
9076
|
const [P] = j;
|
|
9077
|
-
|
|
9077
|
+
S.dependencies[P] && x(P);
|
|
9078
9078
|
}
|
|
9079
9079
|
M.pop();
|
|
9080
9080
|
};
|
|
9081
9081
|
const C = /* @__PURE__ */ new Set(), M = [];
|
|
9082
|
-
|
|
9082
|
+
x(E);
|
|
9083
9083
|
}
|
|
9084
9084
|
}
|
|
9085
9085
|
function u(_, w) {
|
|
9086
|
-
const
|
|
9086
|
+
const S = _.map((x) => w ? vt(w, x) : x), E = un(S[0]);
|
|
9087
9087
|
return E.pop(), vt(...E);
|
|
9088
9088
|
}
|
|
9089
9089
|
function l(_, w) {
|
|
9090
9090
|
if (!w) return _;
|
|
9091
|
-
const
|
|
9092
|
-
return _.startsWith(
|
|
9091
|
+
const S = `${w}${xa}`;
|
|
9092
|
+
return _.startsWith(S) ? _.slice(S.length) : _;
|
|
9093
9093
|
}
|
|
9094
9094
|
function c(_) {
|
|
9095
9095
|
const w = un(_);
|
|
@@ -9097,27 +9097,27 @@ ${P}`
|
|
|
9097
9097
|
}
|
|
9098
9098
|
function p() {
|
|
9099
9099
|
const _ = {};
|
|
9100
|
-
for (const [w,
|
|
9100
|
+
for (const [w, S] of Object.entries(n.value)) {
|
|
9101
9101
|
const E = w === bi ? "" : w;
|
|
9102
|
-
if (
|
|
9103
|
-
for (const
|
|
9104
|
-
if (
|
|
9102
|
+
if (S.bundles)
|
|
9103
|
+
for (const x of S.bundles) {
|
|
9104
|
+
if (x.length < 2)
|
|
9105
9105
|
throw new Error(
|
|
9106
|
-
`Bundle must contain at least 2 fields. Found ${
|
|
9106
|
+
`Bundle must contain at least 2 fields. Found ${x.length} field(s) in bundle: [${x.join(", ")}]`
|
|
9107
9107
|
);
|
|
9108
|
-
const C =
|
|
9109
|
-
o(C, `Bundle [${
|
|
9110
|
-
const M = u(
|
|
9108
|
+
const C = x.map((j) => E ? vt(E, j) : j);
|
|
9109
|
+
o(C, `Bundle [${x.join(", ")}]`);
|
|
9110
|
+
const M = u(x, E) || bi;
|
|
9111
9111
|
_[M] || (_[M] = {}), _[M].bundles || (_[M].bundles = []);
|
|
9112
9112
|
const N = C.map((j) => l(j, M));
|
|
9113
9113
|
_[M].bundles.push(N);
|
|
9114
9114
|
}
|
|
9115
|
-
if (
|
|
9116
|
-
for (const [
|
|
9117
|
-
const N = E ? vt(E,
|
|
9115
|
+
if (S.dependencies)
|
|
9116
|
+
for (const [x, [C, M]] of Object.entries(S.dependencies)) {
|
|
9117
|
+
const N = E ? vt(E, x) : x, j = E ? vt(E, C) : C;
|
|
9118
9118
|
o(
|
|
9119
9119
|
[N, j],
|
|
9120
|
-
`Dependency '${
|
|
9120
|
+
`Dependency '${x}' -> '${C}'`
|
|
9121
9121
|
);
|
|
9122
9122
|
const P = c(N) || bi;
|
|
9123
9123
|
_[P] || (_[P] = {}), _[P].dependencies || (_[P].dependencies = {});
|
|
@@ -9144,11 +9144,11 @@ ${P}`
|
|
|
9144
9144
|
let w = !1;
|
|
9145
9145
|
return R(() => {
|
|
9146
9146
|
if (w) return;
|
|
9147
|
-
const
|
|
9147
|
+
const S = xt(_);
|
|
9148
9148
|
try {
|
|
9149
|
-
return f(
|
|
9149
|
+
return f(S);
|
|
9150
9150
|
} catch (E) {
|
|
9151
|
-
w = !0, console.error(`Failed to get render rules for path: \`${
|
|
9151
|
+
w = !0, console.error(`Failed to get render rules for path: \`${S}\`,`, E instanceof Error ? E.message : "");
|
|
9152
9152
|
return;
|
|
9153
9153
|
}
|
|
9154
9154
|
});
|
|
@@ -9161,28 +9161,28 @@ ${P}`
|
|
|
9161
9161
|
function v(_) {
|
|
9162
9162
|
const {
|
|
9163
9163
|
fieldPath: w,
|
|
9164
|
-
rules:
|
|
9164
|
+
rules: S,
|
|
9165
9165
|
omittedFields: E
|
|
9166
9166
|
} = _;
|
|
9167
9167
|
Ye([
|
|
9168
|
-
() => xt(
|
|
9168
|
+
() => xt(S),
|
|
9169
9169
|
() => xt(w),
|
|
9170
9170
|
() => xt(E)
|
|
9171
9171
|
], ([C, M, N], [, j]) => {
|
|
9172
9172
|
C ? n.value[M] = C : delete n.value[M], N && N.length ? i.value[M] = [...N] : delete i.value[M], j && j !== M && (delete n.value[j], delete i.value[j]);
|
|
9173
9173
|
}, { immediate: !0, deep: !0 });
|
|
9174
|
-
const
|
|
9174
|
+
const x = g(w);
|
|
9175
9175
|
return _a(() => {
|
|
9176
9176
|
const C = xt(w);
|
|
9177
9177
|
delete n.value[C], delete i.value[C];
|
|
9178
|
-
}),
|
|
9178
|
+
}), x;
|
|
9179
9179
|
}
|
|
9180
9180
|
function y(_) {
|
|
9181
9181
|
const w = un(_);
|
|
9182
9182
|
if (!w.length) return !1;
|
|
9183
|
-
const
|
|
9184
|
-
if (i.value[E]?.includes(
|
|
9185
|
-
const
|
|
9183
|
+
const S = w[w.length - 1], E = vt(...w.slice(0, -1));
|
|
9184
|
+
if (i.value[E]?.includes(S)) return !1;
|
|
9185
|
+
const x = E === "" ? bi : go(E, e()), C = d.value[x]?.dependencies?.[S];
|
|
9186
9186
|
if (!C) return !1;
|
|
9187
9187
|
const [M, N] = C, j = E ? vt(E, M) : M, P = Wi(t(), un(j));
|
|
9188
9188
|
return !Rx(P, N);
|
|
@@ -9307,7 +9307,7 @@ const [Bx, Ux] = $l(
|
|
|
9307
9307
|
createComputedRules: y,
|
|
9308
9308
|
hasDependencies: _,
|
|
9309
9309
|
isFieldHidden: w
|
|
9310
|
-
} = Mx(c.getSchemaMap, () => f),
|
|
9310
|
+
} = Mx(c.getSchemaMap, () => f), S = v({
|
|
9311
9311
|
fieldPath: bi,
|
|
9312
9312
|
rules: a
|
|
9313
9313
|
});
|
|
@@ -9316,7 +9316,7 @@ const [Bx, Ux] = $l(
|
|
|
9316
9316
|
delete f[L];
|
|
9317
9317
|
}), p.clear(), Object.assign(f, p.serialize(O));
|
|
9318
9318
|
}
|
|
9319
|
-
function
|
|
9319
|
+
function x(O) {
|
|
9320
9320
|
let L;
|
|
9321
9321
|
!O || !C(xt(O)) ? L = u() : L = ua(xt(O)), rr(g.value.prepareFormData) ? E(g.value.prepareFormData(L)) : E(L);
|
|
9322
9322
|
}
|
|
@@ -9336,7 +9336,7 @@ const [Bx, Ux] = $l(
|
|
|
9336
9336
|
}, { deep: !0 });
|
|
9337
9337
|
let N = !1;
|
|
9338
9338
|
Ye(() => i?.value, (O) => {
|
|
9339
|
-
N && Yt(M(), xt(O)) || (
|
|
9339
|
+
N && Yt(M(), xt(O)) || (x(O), N = !0);
|
|
9340
9340
|
}, { deep: !0, immediate: !0 });
|
|
9341
9341
|
function j(O) {
|
|
9342
9342
|
return O != null && typeof O == "object" && !Array.isArray(O) ? p.serialize(O) : O;
|
|
@@ -9357,7 +9357,7 @@ const [Bx, Ux] = $l(
|
|
|
9357
9357
|
fieldRendererRegistry: d,
|
|
9358
9358
|
setValue: E,
|
|
9359
9359
|
useCurrentRenderRules: v,
|
|
9360
|
-
rootRenderRules:
|
|
9360
|
+
rootRenderRules: S,
|
|
9361
9361
|
createComputedRenderRules: y,
|
|
9362
9362
|
...c,
|
|
9363
9363
|
getValue: M,
|
|
@@ -9675,26 +9675,26 @@ const No = /* @__PURE__ */ Oe({
|
|
|
9675
9675
|
},
|
|
9676
9676
|
emits: ["update:modelValue"],
|
|
9677
9677
|
setup(e, { emit: t }) {
|
|
9678
|
-
const n = ti(), { i18n: i } = Po(), o = $n(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "name"]), a = t, { value: r, hide: u, ...l } = Vt(Ct(() => e.name)), c = gn(l.path, Ct({ ...o, ...n }))
|
|
9679
|
-
function
|
|
9680
|
-
|
|
9678
|
+
const n = ti(), { i18n: i } = Po(), o = $n(e, ["autofocus", "showVaultSecretPicker", "showPasswordMaskToggle", "name"]), a = t, { value: r, hide: u, ...l } = Vt(Ct(() => e.name)), c = gn(l.path, Ct({ ...o, ...n }));
|
|
9679
|
+
function p(y) {
|
|
9680
|
+
r.value = y === "" ? null : y, a("update:modelValue", r.value);
|
|
9681
9681
|
}
|
|
9682
|
-
const
|
|
9683
|
-
return (
|
|
9684
|
-
const
|
|
9685
|
-
return l.error ? (k(), W(
|
|
9682
|
+
const d = R(() => e.showPasswordMaskToggle !== void 0 ? e.showPasswordMaskToggle : o.type === "password" ? !0 : !!(l.schema?.value).encrypted), f = ut(On, void 0), g = R(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!l.schema.value?.referenceable), h = R(() => ({ referenceable: g.value })), v = R(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : Ji(e.name) === "name");
|
|
9683
|
+
return (y, _) => {
|
|
9684
|
+
const w = ke("KAlert");
|
|
9685
|
+
return l.error ? (k(), W(w, {
|
|
9686
9686
|
key: 0,
|
|
9687
9687
|
appearance: "danger",
|
|
9688
9688
|
message: l.error.message
|
|
9689
|
-
}, null, 8, ["message"])) : zt((k(), Q("div", bn(Ge({ key: 1 },
|
|
9689
|
+
}, null, 8, ["message"])) : zt((k(), Q("div", bn(Ge({ key: 1 }, y.$attrs)), [
|
|
9690
9690
|
b(No, Ge({
|
|
9691
9691
|
...s(c),
|
|
9692
|
-
showPasswordMaskToggle:
|
|
9693
|
-
type:
|
|
9692
|
+
showPasswordMaskToggle: d.value,
|
|
9693
|
+
type: d.value ? "password" : "text"
|
|
9694
9694
|
}, {
|
|
9695
9695
|
id: e.inputId,
|
|
9696
9696
|
class: "ff-string-field",
|
|
9697
|
-
"data-1p-ignore":
|
|
9697
|
+
"data-1p-ignore": v.value,
|
|
9698
9698
|
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
9699
9699
|
"data-testid": `ff-${l.path.value}`,
|
|
9700
9700
|
error: e.error,
|
|
@@ -9703,12 +9703,12 @@ const No = /* @__PURE__ */ Oe({
|
|
|
9703
9703
|
"model-value": s(r) ?? "",
|
|
9704
9704
|
multiline: e.multiline,
|
|
9705
9705
|
placeholder: e.placeholder ?? s(c).placeholder,
|
|
9706
|
-
"onUpdate:modelValue":
|
|
9706
|
+
"onUpdate:modelValue": p
|
|
9707
9707
|
}), bt({ _: 2 }, [
|
|
9708
9708
|
s(c).labelAttributes?.info ? {
|
|
9709
9709
|
name: "label-tooltip",
|
|
9710
9710
|
fn: $(() => [
|
|
9711
|
-
et(
|
|
9711
|
+
et(y.$slots, "tooltip", {}, () => [
|
|
9712
9712
|
G("div", {
|
|
9713
9713
|
innerHTML: s(c).labelAttributes.info
|
|
9714
9714
|
}, null, 8, Zx)
|
|
@@ -9716,23 +9716,23 @@ const No = /* @__PURE__ */ Oe({
|
|
|
9716
9716
|
]),
|
|
9717
9717
|
key: "0"
|
|
9718
9718
|
} : void 0,
|
|
9719
|
-
!(e.multiline && e.error) &&
|
|
9719
|
+
!(e.multiline && e.error) && y.$slots.help ? {
|
|
9720
9720
|
name: "help",
|
|
9721
9721
|
fn: $(() => [
|
|
9722
|
-
et(
|
|
9722
|
+
et(y.$slots, "help", {}, void 0, !0)
|
|
9723
9723
|
]),
|
|
9724
9724
|
key: "1"
|
|
9725
9725
|
} : void 0,
|
|
9726
9726
|
!e.multiline && e.inlineVaultPicker ? {
|
|
9727
9727
|
name: "after",
|
|
9728
9728
|
fn: $(() => [
|
|
9729
|
-
s(
|
|
9729
|
+
s(f) && g.value ? (k(), W(Lt(s(f)), {
|
|
9730
9730
|
key: 0,
|
|
9731
|
-
schema:
|
|
9732
|
-
update:
|
|
9731
|
+
schema: h.value,
|
|
9732
|
+
update: p,
|
|
9733
9733
|
value: s(r) ?? ""
|
|
9734
9734
|
}, null, 8, ["schema", "value"])) : he("", !0),
|
|
9735
|
-
|
|
9735
|
+
g.value && !s(f) ? (k(), W(w, {
|
|
9736
9736
|
key: 1,
|
|
9737
9737
|
appearance: "warning",
|
|
9738
9738
|
"data-testid": `ff-vault-secret-picker-warning-${l.path.value}`,
|
|
@@ -9743,13 +9743,13 @@ const No = /* @__PURE__ */ Oe({
|
|
|
9743
9743
|
} : void 0
|
|
9744
9744
|
]), 1040, ["id", "data-1p-ignore", "data-autofocus", "data-testid", "error", "error-message", "help", "model-value", "multiline", "placeholder"]),
|
|
9745
9745
|
e.inlineVaultPicker ? he("", !0) : (k(), Q(ze, { key: 0 }, [
|
|
9746
|
-
s(
|
|
9746
|
+
s(f) && g.value ? (k(), W(Lt(s(f)), {
|
|
9747
9747
|
key: 0,
|
|
9748
|
-
schema:
|
|
9749
|
-
update:
|
|
9748
|
+
schema: h.value,
|
|
9749
|
+
update: p,
|
|
9750
9750
|
value: s(r) ?? ""
|
|
9751
9751
|
}, null, 8, ["schema", "value"])) : he("", !0),
|
|
9752
|
-
|
|
9752
|
+
g.value && !s(f) ? (k(), W(w, {
|
|
9753
9753
|
key: 1,
|
|
9754
9754
|
appearance: "warning",
|
|
9755
9755
|
"data-testid": `ff-vault-secret-picker-warning-${l.path.value}`,
|
|
@@ -9761,7 +9761,7 @@ const No = /* @__PURE__ */ Oe({
|
|
|
9761
9761
|
]);
|
|
9762
9762
|
};
|
|
9763
9763
|
}
|
|
9764
|
-
}), Je = /* @__PURE__ */ Be(Qx, [["__scopeId", "data-v-
|
|
9764
|
+
}), Je = /* @__PURE__ */ Be(Qx, [["__scopeId", "data-v-ab4f4a8a"]]), eS = ["innerHTML"], tS = /* @__PURE__ */ Oe({
|
|
9765
9765
|
inheritAttrs: !1,
|
|
9766
9766
|
__name: "BooleanField",
|
|
9767
9767
|
props: {
|
|
@@ -9900,11 +9900,11 @@ const No = /* @__PURE__ */ Oe({
|
|
|
9900
9900
|
const w = R(() => g.value.map((P, I) => ({
|
|
9901
9901
|
hash: `#${h(P, I)}`,
|
|
9902
9902
|
title: ""
|
|
9903
|
-
}))),
|
|
9903
|
+
}))), S = fe(w.value[0]?.hash), E = async () => {
|
|
9904
9904
|
const P = a(vt(c.path.value, su));
|
|
9905
|
-
Array.isArray(u.value) || (u.value = []), u.value.push(P), i("add"), n.appearance === "tabs" && (await Xt(),
|
|
9906
|
-
},
|
|
9907
|
-
Array.isArray(u.value) && (u.value.splice(P, 1), u.value.length === 0 && !p.value.required && (u.value = null)), i("remove", P), n.appearance === "tabs" && (
|
|
9905
|
+
Array.isArray(u.value) || (u.value = []), u.value.push(P), i("add"), n.appearance === "tabs" && (await Xt(), S.value = w.value[w.value.length - 1]?.hash), await Xt(), M(g.value.length + 1);
|
|
9906
|
+
}, x = async (P) => {
|
|
9907
|
+
Array.isArray(u.value) && (u.value.splice(P, 1), u.value.length === 0 && !p.value.required && (u.value = null)), i("remove", P), n.appearance === "tabs" && (S.value = w.value[Math.max(0, P - 1)]?.hash);
|
|
9908
9908
|
}, C = wt("root");
|
|
9909
9909
|
function M(P) {
|
|
9910
9910
|
if (!C.value)
|
|
@@ -10019,7 +10019,7 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10019
10019
|
class: "ff-array-field-item-remove",
|
|
10020
10020
|
"data-testid": `ff-array-remove-item-btn-${c.path.value}.${D}`,
|
|
10021
10021
|
icon: "",
|
|
10022
|
-
onClick: Et((H) =>
|
|
10022
|
+
onClick: Et((H) => x(D), ["stop"])
|
|
10023
10023
|
}, {
|
|
10024
10024
|
default: $(() => [
|
|
10025
10025
|
b(s(vo))
|
|
@@ -10052,8 +10052,8 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10052
10052
|
}, {
|
|
10053
10053
|
default: $(() => [
|
|
10054
10054
|
b(U, {
|
|
10055
|
-
modelValue:
|
|
10056
|
-
"onUpdate:modelValue": I[0] || (I[0] = (te) =>
|
|
10055
|
+
modelValue: S.value,
|
|
10056
|
+
"onUpdate:modelValue": I[0] || (I[0] = (te) => S.value = te),
|
|
10057
10057
|
"data-testid": `ff-array-tabs-${c.path.value}`,
|
|
10058
10058
|
tabs: w.value
|
|
10059
10059
|
}, bt({ _: 2 }, [
|
|
@@ -10088,7 +10088,7 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10088
10088
|
class: "ff-array-field-item-remove",
|
|
10089
10089
|
"data-testid": `ff-array-remove-item-btn-${c.path.value}.${D}`,
|
|
10090
10090
|
icon: "",
|
|
10091
|
-
onClick: Et((H) =>
|
|
10091
|
+
onClick: Et((H) => x(D), ["stop"])
|
|
10092
10092
|
}, {
|
|
10093
10093
|
default: $(() => [
|
|
10094
10094
|
b(s(Gd))
|
|
@@ -10135,31 +10135,31 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10135
10135
|
const w = a.schema?.value;
|
|
10136
10136
|
if (typeof w.gt == "number")
|
|
10137
10137
|
return { min: w.type === "integer" ? w.gt + 1 : w.gt };
|
|
10138
|
-
const [
|
|
10138
|
+
const [S, E] = w.between ?? [];
|
|
10139
10139
|
return {
|
|
10140
|
-
min: n.min ??
|
|
10140
|
+
min: n.min ?? S,
|
|
10141
10141
|
max: n.max ?? E
|
|
10142
10142
|
};
|
|
10143
10143
|
}), c = t, p = i.value, d = R(() => {
|
|
10144
10144
|
const w = i?.value;
|
|
10145
10145
|
if (w == null || w === "") return "";
|
|
10146
10146
|
if (y.value) return `${w}`;
|
|
10147
|
-
const
|
|
10148
|
-
return Number.isFinite(
|
|
10147
|
+
const S = typeof w == "number" ? w : Number(w);
|
|
10148
|
+
return Number.isFinite(S) ? `${S}` : "";
|
|
10149
10149
|
});
|
|
10150
10150
|
function f(w) {
|
|
10151
|
-
const
|
|
10152
|
-
p !== void 0 && w === "" &&
|
|
10151
|
+
const S = g(w);
|
|
10152
|
+
p !== void 0 && w === "" && S !== p ? (i.value = null, c("update:modelValue", null)) : (i.value = S, c("update:modelValue", S));
|
|
10153
10153
|
}
|
|
10154
10154
|
function g(w) {
|
|
10155
10155
|
if (w === "") return null;
|
|
10156
|
-
const
|
|
10157
|
-
if (
|
|
10158
|
-
const E = Number(
|
|
10156
|
+
const S = w.trim();
|
|
10157
|
+
if (S === "") return null;
|
|
10158
|
+
const E = Number(S);
|
|
10159
10159
|
return Number.isFinite(E) ? E : y.value ? w : null;
|
|
10160
10160
|
}
|
|
10161
10161
|
const h = ut(On, void 0), v = R(() => ({ referenceable: y.value })), y = R(() => e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!a.schema.value?.referenceable), _ = R(() => y.value ? "text" : "number");
|
|
10162
|
-
return (w,
|
|
10162
|
+
return (w, S) => {
|
|
10163
10163
|
const E = ke("KAlert");
|
|
10164
10164
|
return a.error ? (k(), W(E, {
|
|
10165
10165
|
key: 0,
|
|
@@ -10442,19 +10442,19 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10442
10442
|
removeKey: l,
|
|
10443
10443
|
field: c,
|
|
10444
10444
|
fieldDisplayName: p
|
|
10445
|
-
} = du(Ct(i, "name"),
|
|
10445
|
+
} = du(Ct(i, "name"), x), d = gn(c.path, i), f = ["string", "number", "boolean", "integer", "foreign"], g = R(() => i.oneLine ? !0 : c.schema?.value?.type === "map" && f.includes(c.schema.value.values.type) && !i.appearance?.string?.multiline), h = R(() => c.schema?.value?.type === "map" ? c.schema.value.values : void 0), v = R(() => h.value?.type === "string" && !h.value?.one_of), y = R(() => g.value ? "div" : ir), _ = wt("root");
|
|
10446
10446
|
function w(C, M) {
|
|
10447
|
-
i.appearance?.string?.multiline || (C.preventDefault(), M === a.value.length - 1 && u(),
|
|
10447
|
+
i.appearance?.string?.multiline || (C.preventDefault(), M === a.value.length - 1 && u(), S(M + 1));
|
|
10448
10448
|
}
|
|
10449
|
-
async function
|
|
10449
|
+
async function S(C) {
|
|
10450
10450
|
_.value && (await Xt(), _.value.querySelector(`[data-key-input="${C}"]`)?.focus());
|
|
10451
10451
|
}
|
|
10452
10452
|
function E() {
|
|
10453
10453
|
u();
|
|
10454
10454
|
const C = a.value.findIndex(([M, N]) => !N);
|
|
10455
|
-
|
|
10455
|
+
S(C === -1 ? a.value.length - 1 : C);
|
|
10456
10456
|
}
|
|
10457
|
-
function
|
|
10457
|
+
function x(C) {
|
|
10458
10458
|
o("legacyValueChange", C);
|
|
10459
10459
|
}
|
|
10460
10460
|
return (C, M) => {
|
|
@@ -10514,7 +10514,7 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10514
10514
|
"data-testid": `ff-map-key-${s(c).path.value}.${F}`,
|
|
10515
10515
|
"model-value": L,
|
|
10516
10516
|
placeholder: e.keyPlaceholder || "Key",
|
|
10517
|
-
onKeydown: ii(Et((Z) =>
|
|
10517
|
+
onKeydown: ii(Et((Z) => S(F), ["prevent"]), ["enter"]),
|
|
10518
10518
|
"onUpdate:modelValue": (Z) => s(r)(O, Z)
|
|
10519
10519
|
}, null, 8, ["data-key-input", "data-testid", "model-value", "placeholder", "onKeydown", "onUpdate:modelValue"]),
|
|
10520
10520
|
et(C.$slots, "default", { keyId: O }, () => [
|
|
@@ -10725,38 +10725,38 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10725
10725
|
omittedFields: Ct(() => e.omit)
|
|
10726
10726
|
}), p = Xn(e, "added"), d = Xn(e, "expanded"), f = R(() => {
|
|
10727
10727
|
if (a.ancestors?.value) {
|
|
10728
|
-
const
|
|
10729
|
-
if (
|
|
10730
|
-
return r(
|
|
10728
|
+
const x = a.ancestors.value.parent;
|
|
10729
|
+
if (x?.path)
|
|
10730
|
+
return r(x.path)?.type === "array";
|
|
10731
10731
|
}
|
|
10732
10732
|
return !1;
|
|
10733
10733
|
}), g = R(() => {
|
|
10734
10734
|
if (a.ancestors?.value) {
|
|
10735
|
-
const
|
|
10736
|
-
if (
|
|
10737
|
-
return r(
|
|
10735
|
+
const x = a.ancestors.value.parent;
|
|
10736
|
+
if (x?.path)
|
|
10737
|
+
return r(x.path)?.type === "map";
|
|
10738
10738
|
}
|
|
10739
10739
|
return !1;
|
|
10740
10740
|
}), h = gn(a.path, { required: e.required, ...n, resetLabelPath: e.resetLabelPath }), v = R(() => h.value.required ? !0 : p.value ?? e.defaultAdded), y = R(() => e.asChild !== void 0 ? e.asChild : f.value), _ = R(() => {
|
|
10741
|
-
let
|
|
10742
|
-
return e.omit && (
|
|
10743
|
-
}), w = R(() => _.value.map((
|
|
10744
|
-
function
|
|
10741
|
+
let x = a.schema.value.fields;
|
|
10742
|
+
return e.omit && (x = x.filter((C) => !e.omit.includes(Object.keys(C)[0]))), e.fieldsOrder ? qf(x, e.fieldsOrder) : (c.value?.bundles && (x = Df([...x], c.value.bundles)), x);
|
|
10743
|
+
}), w = R(() => _.value.map((x) => Object.keys(x)[0]));
|
|
10744
|
+
function S() {
|
|
10745
10745
|
d.value = !d.value;
|
|
10746
10746
|
}
|
|
10747
10747
|
function E() {
|
|
10748
10748
|
p.value ? i.value = u(a.path.value) : i.value = null;
|
|
10749
10749
|
}
|
|
10750
|
-
return Ye(v, (
|
|
10751
|
-
e.collapsible && (d.value =
|
|
10750
|
+
return Ye(v, (x) => {
|
|
10751
|
+
e.collapsible && (d.value = x);
|
|
10752
10752
|
}), Bi(() => {
|
|
10753
10753
|
if (a.error || !i) return;
|
|
10754
|
-
const
|
|
10755
|
-
p.value =
|
|
10756
|
-
}), (
|
|
10754
|
+
const x = i.value != null;
|
|
10755
|
+
p.value = x, (h.value.required || x) && (d.value = !0);
|
|
10756
|
+
}), (x, C) => {
|
|
10757
10757
|
const M = ke("KAlert"), N = ke("KInputSwitch");
|
|
10758
10758
|
return k(), Q(ze, null, [
|
|
10759
|
-
(k(), W(Lt(
|
|
10759
|
+
(k(), W(Lt(x.$slots[s(Oo)]))),
|
|
10760
10760
|
a.error ? (k(), W(M, {
|
|
10761
10761
|
key: 0,
|
|
10762
10762
|
appearance: "danger",
|
|
@@ -10764,10 +10764,10 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10764
10764
|
}, null, 8, ["message"])) : y.value ? zt((k(), Q("div", Ge({
|
|
10765
10765
|
key: 1,
|
|
10766
10766
|
class: "ff-object-field ff-object-field-as-child"
|
|
10767
|
-
},
|
|
10767
|
+
}, x.$attrs, {
|
|
10768
10768
|
"data-testid": `ff-object-${a.path.value}`
|
|
10769
10769
|
}), [
|
|
10770
|
-
et(
|
|
10770
|
+
et(x.$slots, "default", {}, () => [
|
|
10771
10771
|
b(Uc, {
|
|
10772
10772
|
"entity-checks": a.schema.value?.entity_checks,
|
|
10773
10773
|
"visible-fields": w.value
|
|
@@ -10783,7 +10783,7 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10783
10783
|
key: 2,
|
|
10784
10784
|
class: ["ff-object-field", { "ff-object-field-collapsed": !d.value }],
|
|
10785
10785
|
"data-testid": `ff-object-${a.path.value}`
|
|
10786
|
-
},
|
|
10786
|
+
}, x.$attrs), [
|
|
10787
10787
|
G("header", {
|
|
10788
10788
|
class: "ff-object-field-header",
|
|
10789
10789
|
"data-testid": `ff-object-header-${a.path.value}`
|
|
@@ -10797,7 +10797,7 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10797
10797
|
"data-testid": `ff-object-toggle-btn-${a.path.value}`,
|
|
10798
10798
|
disabled: !p.value,
|
|
10799
10799
|
type: "button",
|
|
10800
|
-
onClick: Et(
|
|
10800
|
+
onClick: Et(S, ["prevent", "stop"])
|
|
10801
10801
|
}, [
|
|
10802
10802
|
b(s(Hd), {
|
|
10803
10803
|
class: gt(["ff-object-field-toggle-btn-trigger-icon", { "collapse-expanded": d.value }]),
|
|
@@ -10824,7 +10824,7 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10824
10824
|
s(h).labelAttributes?.info ? {
|
|
10825
10825
|
name: "tooltip",
|
|
10826
10826
|
fn: $(() => [
|
|
10827
|
-
et(
|
|
10827
|
+
et(x.$slots, "tooltip", {}, () => [
|
|
10828
10828
|
G("div", {
|
|
10829
10829
|
innerHTML: s(h).labelAttributes.info
|
|
10830
10830
|
}, null, 8, LS)
|
|
@@ -10851,7 +10851,7 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10851
10851
|
class: "ff-object-field-content",
|
|
10852
10852
|
"data-testid": `ff-object-content-${a.path.value}`
|
|
10853
10853
|
}, [
|
|
10854
|
-
et(
|
|
10854
|
+
et(x.$slots, "default", {}, () => [
|
|
10855
10855
|
b(Uc, {
|
|
10856
10856
|
"entity-checks": a.schema.value?.entity_checks,
|
|
10857
10857
|
"visible-fields": w.value
|
|
@@ -10942,8 +10942,8 @@ const No = /* @__PURE__ */ Oe({
|
|
|
10942
10942
|
const _ = Object.keys(y)[0];
|
|
10943
10943
|
if (v.get(_) !== _)
|
|
10944
10944
|
continue;
|
|
10945
|
-
let
|
|
10946
|
-
y[_].required || l.has(_) ?
|
|
10945
|
+
let S;
|
|
10946
|
+
y[_].required || l.has(_) ? S = r : S = u, S.push(_);
|
|
10947
10947
|
}
|
|
10948
10948
|
for (const y of d.fields) {
|
|
10949
10949
|
const _ = Object.keys(y)[0], w = v.get(_);
|
|
@@ -11829,13 +11829,13 @@ function ZS() {
|
|
|
11829
11829
|
function w(m) {
|
|
11830
11830
|
return m === 10 || m === 13;
|
|
11831
11831
|
}
|
|
11832
|
-
function
|
|
11832
|
+
function S(m) {
|
|
11833
11833
|
return m === 9 || m === 32;
|
|
11834
11834
|
}
|
|
11835
11835
|
function E(m) {
|
|
11836
11836
|
return m === 9 || m === 32 || m === 10 || m === 13;
|
|
11837
11837
|
}
|
|
11838
|
-
function
|
|
11838
|
+
function x(m) {
|
|
11839
11839
|
return m === 44 || m === 91 || m === 93 || m === 123 || m === 125;
|
|
11840
11840
|
}
|
|
11841
11841
|
function C(m) {
|
|
@@ -12040,7 +12040,7 @@ function ZS() {
|
|
|
12040
12040
|
function ve(m, oe, ge) {
|
|
12041
12041
|
let _e = 0, pe = m.input.charCodeAt(m.position);
|
|
12042
12042
|
for (; pe !== 0; ) {
|
|
12043
|
-
for (;
|
|
12043
|
+
for (; S(pe); )
|
|
12044
12044
|
pe === 9 && m.firstTabInLine === -1 && (m.firstTabInLine = m.position), pe = m.input.charCodeAt(++m.position);
|
|
12045
12045
|
if (oe && pe === 35)
|
|
12046
12046
|
do
|
|
@@ -12066,24 +12066,24 @@ function ZS() {
|
|
|
12066
12066
|
let _e, pe, Fe, T, ae, Se;
|
|
12067
12067
|
const Ce = m.kind, de = m.result;
|
|
12068
12068
|
let ye = m.input.charCodeAt(m.position);
|
|
12069
|
-
if (E(ye) ||
|
|
12069
|
+
if (E(ye) || x(ye) || ye === 35 || ye === 38 || ye === 42 || ye === 33 || ye === 124 || ye === 62 || ye === 39 || ye === 34 || ye === 37 || ye === 64 || ye === 96)
|
|
12070
12070
|
return !1;
|
|
12071
12071
|
if (ye === 63 || ye === 45) {
|
|
12072
12072
|
const B = m.input.charCodeAt(m.position + 1);
|
|
12073
|
-
if (E(B) || ge &&
|
|
12073
|
+
if (E(B) || ge && x(B))
|
|
12074
12074
|
return !1;
|
|
12075
12075
|
}
|
|
12076
12076
|
for (m.kind = "scalar", m.result = "", _e = pe = m.position, Fe = !1; ye !== 0; ) {
|
|
12077
12077
|
if (ye === 58) {
|
|
12078
12078
|
const B = m.input.charCodeAt(m.position + 1);
|
|
12079
|
-
if (E(B) || ge &&
|
|
12079
|
+
if (E(B) || ge && x(B))
|
|
12080
12080
|
break;
|
|
12081
12081
|
} else if (ye === 35) {
|
|
12082
12082
|
const B = m.input.charCodeAt(m.position - 1);
|
|
12083
12083
|
if (E(B))
|
|
12084
12084
|
break;
|
|
12085
12085
|
} else {
|
|
12086
|
-
if (m.position === m.lineStart && se(m) || ge &&
|
|
12086
|
+
if (m.position === m.lineStart && se(m) || ge && x(ye))
|
|
12087
12087
|
break;
|
|
12088
12088
|
if (w(ye))
|
|
12089
12089
|
if (T = m.line, ae = m.lineStart, Se = m.lineIndent, ve(m, !1, -1), m.lineIndent >= oe) {
|
|
@@ -12094,7 +12094,7 @@ function ZS() {
|
|
|
12094
12094
|
break;
|
|
12095
12095
|
}
|
|
12096
12096
|
}
|
|
12097
|
-
Fe && (A(m, _e, pe, !1), le(m, m.line - T), _e = pe = m.position, Fe = !1),
|
|
12097
|
+
Fe && (A(m, _e, pe, !1), le(m, m.line - T), _e = pe = m.position, Fe = !1), S(ye) || (pe = m.position + 1), ye = m.input.charCodeAt(++m.position);
|
|
12098
12098
|
}
|
|
12099
12099
|
return A(m, _e, pe, !1), m.result ? !0 : (m.kind = Ce, m.result = de, !1);
|
|
12100
12100
|
}
|
|
@@ -12108,7 +12108,7 @@ function ZS() {
|
|
|
12108
12108
|
ge = m.position, m.position++, _e = m.position;
|
|
12109
12109
|
else
|
|
12110
12110
|
return !0;
|
|
12111
|
-
else w(pe) ? (A(m, ge, _e, !0), le(m, ve(m, !1, oe)), ge = _e = m.position) : m.position === m.lineStart && se(m) ? U(m, "unexpected end of the document within a single quoted scalar") : (m.position++,
|
|
12111
|
+
else w(pe) ? (A(m, ge, _e, !0), le(m, ve(m, !1, oe)), ge = _e = m.position) : m.position === m.lineStart && se(m) ? U(m, "unexpected end of the document within a single quoted scalar") : (m.position++, S(pe) || (_e = m.position));
|
|
12112
12112
|
U(m, "unexpected end of the stream within a single quoted scalar");
|
|
12113
12113
|
}
|
|
12114
12114
|
function Ve(m, oe) {
|
|
@@ -12131,7 +12131,7 @@ function ZS() {
|
|
|
12131
12131
|
} else
|
|
12132
12132
|
U(m, "unknown escape sequence");
|
|
12133
12133
|
ge = _e = m.position;
|
|
12134
|
-
} else w(Fe) ? (A(m, ge, _e, !0), le(m, ve(m, !1, oe)), ge = _e = m.position) : m.position === m.lineStart && se(m) ? U(m, "unexpected end of the document within a double quoted scalar") : (m.position++,
|
|
12134
|
+
} else w(Fe) ? (A(m, ge, _e, !0), le(m, ve(m, !1, oe)), ge = _e = m.position) : m.position === m.lineStart && se(m) ? U(m, "unexpected end of the document within a double quoted scalar") : (m.position++, S(Fe) || (_e = m.position));
|
|
12135
12135
|
}
|
|
12136
12136
|
U(m, "unexpected end of the stream within a double quoted scalar");
|
|
12137
12137
|
}
|
|
@@ -12175,10 +12175,10 @@ function ZS() {
|
|
|
12175
12175
|
Ce === 0 ? U(m, "bad explicit indentation width of a block scalar; it cannot be less than one") : Fe ? U(m, "repeat of an indentation width identifier") : (T = oe + Ce - 1, Fe = !0);
|
|
12176
12176
|
else
|
|
12177
12177
|
break;
|
|
12178
|
-
if (
|
|
12178
|
+
if (S(de)) {
|
|
12179
12179
|
do
|
|
12180
12180
|
de = m.input.charCodeAt(++m.position);
|
|
12181
|
-
while (
|
|
12181
|
+
while (S(de));
|
|
12182
12182
|
if (de === 35)
|
|
12183
12183
|
do
|
|
12184
12184
|
de = m.input.charCodeAt(++m.position);
|
|
@@ -12197,7 +12197,7 @@ function ZS() {
|
|
|
12197
12197
|
`);
|
|
12198
12198
|
break;
|
|
12199
12199
|
}
|
|
12200
|
-
ge ?
|
|
12200
|
+
ge ? S(de) ? (Se = !0, m.result += e.repeat(`
|
|
12201
12201
|
`, pe ? 1 + ae : ae)) : Se ? (Se = !1, m.result += e.repeat(`
|
|
12202
12202
|
`, ae + 1)) : ae === 0 ? pe && (m.result += " ") : m.result += e.repeat(`
|
|
12203
12203
|
`, ae) : m.result += e.repeat(`
|
|
@@ -12247,7 +12247,7 @@ function ZS() {
|
|
|
12247
12247
|
if (pe = m.line, Fe = m.lineStart, T = m.position, !Te(m, ge, r, !1, !0))
|
|
12248
12248
|
break;
|
|
12249
12249
|
if (m.line === $e) {
|
|
12250
|
-
for (De = m.input.charCodeAt(m.position);
|
|
12250
|
+
for (De = m.input.charCodeAt(m.position); S(De); )
|
|
12251
12251
|
De = m.input.charCodeAt(++m.position);
|
|
12252
12252
|
if (De === 58)
|
|
12253
12253
|
De = m.input.charCodeAt(++m.position), E(De) || U(m, "a whitespace character is expected after the key-value separator within a block mapping"), be && (ce(m, Ce, de, ye, B, null, pe, Fe, T), ye = B = Ie = null), Ee = !0, be = !1, _e = !1, ye = m.tag, B = m.result;
|
|
@@ -12295,7 +12295,7 @@ function ZS() {
|
|
|
12295
12295
|
if (oe !== 38) return !1;
|
|
12296
12296
|
m.anchor !== null && U(m, "duplication of an anchor property"), oe = m.input.charCodeAt(++m.position);
|
|
12297
12297
|
const ge = m.position;
|
|
12298
|
-
for (; oe !== 0 && !E(oe) && !
|
|
12298
|
+
for (; oe !== 0 && !E(oe) && !x(oe); )
|
|
12299
12299
|
oe = m.input.charCodeAt(++m.position);
|
|
12300
12300
|
return m.position === ge && U(m, "name of an anchor node must contain at least one character"), m.anchor = m.input.slice(ge, m.position), !0;
|
|
12301
12301
|
}
|
|
@@ -12304,7 +12304,7 @@ function ZS() {
|
|
|
12304
12304
|
if (oe !== 42) return !1;
|
|
12305
12305
|
oe = m.input.charCodeAt(++m.position);
|
|
12306
12306
|
const ge = m.position;
|
|
12307
|
-
for (; oe !== 0 && !E(oe) && !
|
|
12307
|
+
for (; oe !== 0 && !E(oe) && !x(oe); )
|
|
12308
12308
|
oe = m.input.charCodeAt(++m.position);
|
|
12309
12309
|
m.position === ge && U(m, "name of an alias node must contain at least one character");
|
|
12310
12310
|
const _e = m.input.slice(ge, m.position);
|
|
@@ -12374,7 +12374,7 @@ function ZS() {
|
|
|
12374
12374
|
_e = m.input.charCodeAt(++m.position);
|
|
12375
12375
|
const Fe = m.input.slice(pe, m.position), T = [];
|
|
12376
12376
|
for (Fe.length < 1 && U(m, "directive name must not be less than one character in length"); _e !== 0; ) {
|
|
12377
|
-
for (;
|
|
12377
|
+
for (; S(_e); )
|
|
12378
12378
|
_e = m.input.charCodeAt(++m.position);
|
|
12379
12379
|
if (_e === 35) {
|
|
12380
12380
|
do
|
|
@@ -12427,7 +12427,7 @@ var Os = {}, fd;
|
|
|
12427
12427
|
function QS() {
|
|
12428
12428
|
if (fd) return Os;
|
|
12429
12429
|
fd = 1;
|
|
12430
|
-
const e = Ia(), t = Aa(), n = pu(), i = Object.prototype.toString, o = Object.prototype.hasOwnProperty, a = 65279, r = 9, u = 10, l = 13, c = 32, p = 33, d = 34, f = 35, g = 37, h = 38, v = 39, y = 42, _ = 44, w = 45,
|
|
12430
|
+
const e = Ia(), t = Aa(), n = pu(), i = Object.prototype.toString, o = Object.prototype.hasOwnProperty, a = 65279, r = 9, u = 10, l = 13, c = 32, p = 33, d = 34, f = 35, g = 37, h = 38, v = 39, y = 42, _ = 44, w = 45, S = 58, E = 61, x = 62, C = 63, M = 64, N = 91, j = 93, P = 96, I = 123, O = 124, L = 125, F = {};
|
|
12431
12431
|
F[0] = "\\0", F[7] = "\\a", F[8] = "\\b", F[9] = "\\t", F[10] = "\\n", F[11] = "\\v", F[12] = "\\f", F[13] = "\\r", F[27] = "\\e", F[34] = '\\"', F[92] = "\\\\", F[133] = "\\N", F[160] = "\\_", F[8232] = "\\L", F[8233] = "\\P";
|
|
12432
12432
|
const Z = [
|
|
12433
12433
|
"y",
|
|
@@ -12515,21 +12515,21 @@ function QS() {
|
|
|
12515
12515
|
(Se ? Ce : Ce && // - c-flow-indicator
|
|
12516
12516
|
T !== _ && T !== N && T !== j && T !== I && T !== L) && // ns-plain-char
|
|
12517
12517
|
T !== f && // false on '#'
|
|
12518
|
-
!(ae ===
|
|
12518
|
+
!(ae === S && !de) || // false on ': '
|
|
12519
12519
|
ce(ae) && !A(ae) && T === f || // change to true on '[^ ]#'
|
|
12520
|
-
ae ===
|
|
12520
|
+
ae === S && de
|
|
12521
12521
|
);
|
|
12522
12522
|
}
|
|
12523
12523
|
function ve(T) {
|
|
12524
12524
|
return V(T) && T !== a && !A(T) && // - s-white
|
|
12525
12525
|
// - (c-indicator ::=
|
|
12526
12526
|
// “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
|
|
12527
|
-
T !== w && T !== C && T !==
|
|
12528
|
-
T !== f && T !== h && T !== y && T !== p && T !== O && T !== E && T !==
|
|
12527
|
+
T !== w && T !== C && T !== S && T !== _ && T !== N && T !== j && T !== I && T !== L && // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
|
|
12528
|
+
T !== f && T !== h && T !== y && T !== p && T !== O && T !== E && T !== x && T !== v && T !== d && // | “%” | “@” | “`”)
|
|
12529
12529
|
T !== g && T !== M && T !== P;
|
|
12530
12530
|
}
|
|
12531
12531
|
function se(T) {
|
|
12532
|
-
return !A(T) && T !==
|
|
12532
|
+
return !A(T) && T !== S;
|
|
12533
12533
|
}
|
|
12534
12534
|
function le(T, ae) {
|
|
12535
12535
|
const Se = T.charCodeAt(ae);
|
|
@@ -13487,8 +13487,8 @@ function qr(e, t, n = "flow", { indentAtStart: i, lineWidth: o = 80, minContentW
|
|
|
13487
13487
|
typeof i == "number" && (i > o - Math.max(2, a) ? c.push(0) : d = o - i);
|
|
13488
13488
|
let f, g, h = !1, v = -1, y = -1, _ = -1;
|
|
13489
13489
|
n === wl && (v = gd(e, v, t.length), v !== -1 && (d = v + l));
|
|
13490
|
-
for (let
|
|
13491
|
-
if (n === tr &&
|
|
13490
|
+
for (let S; S = e[v += 1]; ) {
|
|
13491
|
+
if (n === tr && S === "\\") {
|
|
13492
13492
|
switch (y = v, e[v + 1]) {
|
|
13493
13493
|
case "x":
|
|
13494
13494
|
v += 3;
|
|
@@ -13504,11 +13504,11 @@ function qr(e, t, n = "flow", { indentAtStart: i, lineWidth: o = 80, minContentW
|
|
|
13504
13504
|
}
|
|
13505
13505
|
_ = v;
|
|
13506
13506
|
}
|
|
13507
|
-
if (
|
|
13507
|
+
if (S === `
|
|
13508
13508
|
`)
|
|
13509
13509
|
n === wl && (v = gd(e, v, t.length)), d = v + t.length + l, f = void 0;
|
|
13510
13510
|
else {
|
|
13511
|
-
if (
|
|
13511
|
+
if (S === " " && g && g !== " " && g !== `
|
|
13512
13512
|
` && g !== " ") {
|
|
13513
13513
|
const E = e[v + 1];
|
|
13514
13514
|
E && E !== " " && E !== `
|
|
@@ -13519,7 +13519,7 @@ function qr(e, t, n = "flow", { indentAtStart: i, lineWidth: o = 80, minContentW
|
|
|
13519
13519
|
c.push(f), d = f + l, f = void 0;
|
|
13520
13520
|
else if (n === tr) {
|
|
13521
13521
|
for (; g === " " || g === " "; )
|
|
13522
|
-
g =
|
|
13522
|
+
g = S, S = e[v += 1], h = !0;
|
|
13523
13523
|
const E = v > _ + 1 ? v - 2 : y - 1;
|
|
13524
13524
|
if (p[E])
|
|
13525
13525
|
return e;
|
|
@@ -13527,17 +13527,17 @@ function qr(e, t, n = "flow", { indentAtStart: i, lineWidth: o = 80, minContentW
|
|
|
13527
13527
|
} else
|
|
13528
13528
|
h = !0;
|
|
13529
13529
|
}
|
|
13530
|
-
g =
|
|
13530
|
+
g = S;
|
|
13531
13531
|
}
|
|
13532
13532
|
if (h && u && u(), c.length === 0)
|
|
13533
13533
|
return e;
|
|
13534
13534
|
r && r();
|
|
13535
13535
|
let w = e.slice(0, c[0]);
|
|
13536
|
-
for (let
|
|
13537
|
-
const E = c[
|
|
13536
|
+
for (let S = 0; S < c.length; ++S) {
|
|
13537
|
+
const E = c[S], x = c[S + 1] || e.length;
|
|
13538
13538
|
E === 0 ? w = `
|
|
13539
|
-
${t}${e.slice(0,
|
|
13540
|
-
${t}${e.slice(E + 1,
|
|
13539
|
+
${t}${e.slice(0, x)}` : (n === tr && p[E] && (w += `${e[E]}\\`), w += `
|
|
13540
|
+
${t}${e.slice(E + 1, x)}`);
|
|
13541
13541
|
}
|
|
13542
13542
|
return w;
|
|
13543
13543
|
}
|
|
@@ -13699,21 +13699,21 @@ function nr({ comment: e, type: t, value: n }, i, o, a) {
|
|
|
13699
13699
|
}
|
|
13700
13700
|
let w = n.substring(0, _ < y ? _ + 1 : y);
|
|
13701
13701
|
w && (n = n.substring(w.length), w = w.replace(/\n+/g, `$&${c}`));
|
|
13702
|
-
let
|
|
13703
|
-
if (e && (
|
|
13702
|
+
let S = (v ? c ? "2" : "1" : "") + d;
|
|
13703
|
+
if (e && (S += " " + u(e.replace(/ ?[\r\n]+/g, " ")), o && o()), !p) {
|
|
13704
13704
|
const E = n.replace(/\n+/g, `
|
|
13705
13705
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
|
|
13706
|
-
let
|
|
13706
|
+
let x = !1;
|
|
13707
13707
|
const C = Dr(i, !0);
|
|
13708
13708
|
r !== "folded" && t !== at.BLOCK_FOLDED && (C.onOverflow = () => {
|
|
13709
|
-
|
|
13709
|
+
x = !0;
|
|
13710
13710
|
});
|
|
13711
13711
|
const M = qr(`${w}${E}${g}`, c, wl, C);
|
|
13712
|
-
if (!
|
|
13713
|
-
return `>${
|
|
13712
|
+
if (!x)
|
|
13713
|
+
return `>${S}
|
|
13714
13714
|
${c}${M}`;
|
|
13715
13715
|
}
|
|
13716
|
-
return n = n.replace(/\n+/g, `$&${c}`), `|${
|
|
13716
|
+
return n = n.replace(/\n+/g, `$&${c}`), `|${S}
|
|
13717
13717
|
${c}${w}${n}${g}`;
|
|
13718
13718
|
}
|
|
13719
13719
|
function _I(e, t, n, i) {
|
|
@@ -13891,10 +13891,10 @@ function kI({ key: e, value: t }, n, i, o) {
|
|
|
13891
13891
|
return y = `? ${y}`, f && !h ? y += Pi(y, n.indent, c(f)) : v && o && o(), y;
|
|
13892
13892
|
h && (f = null), g ? (f && (y += Pi(y, n.indent, c(f))), y = `? ${y}
|
|
13893
13893
|
${u}:`) : (y = `${y}:`, f && (y += Pi(y, n.indent, c(f))));
|
|
13894
|
-
let _, w,
|
|
13895
|
-
$t(t) ? (_ = !!t.spaceBefore, w = t.commentBefore,
|
|
13894
|
+
let _, w, S;
|
|
13895
|
+
$t(t) ? (_ = !!t.spaceBefore, w = t.commentBefore, S = t.comment) : (_ = !1, w = null, S = null, t && typeof t == "object" && (t = r.createNode(t))), n.implicitKey = !1, !g && !f && St(t) && (n.indentAtStart = y.length + 1), v = !1, !p && l.length >= 2 && !n.inFlow && !g && Fo(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
|
|
13896
13896
|
let E = !1;
|
|
13897
|
-
const
|
|
13897
|
+
const x = Co(t, n, () => E = !0, () => v = !0);
|
|
13898
13898
|
let C = " ";
|
|
13899
13899
|
if (f || _ || w) {
|
|
13900
13900
|
if (C = _ ? `
|
|
@@ -13903,26 +13903,26 @@ ${u}:`) : (y = `${y}:`, f && (y += Pi(y, n.indent, c(f))));
|
|
|
13903
13903
|
C += `
|
|
13904
13904
|
${ri(M, n.indent)}`;
|
|
13905
13905
|
}
|
|
13906
|
-
|
|
13907
|
-
` &&
|
|
13906
|
+
x === "" && !n.inFlow ? C === `
|
|
13907
|
+
` && S && (C = `
|
|
13908
13908
|
|
|
13909
13909
|
`) : C += `
|
|
13910
13910
|
${n.indent}`;
|
|
13911
13911
|
} else if (!g && qt(t)) {
|
|
13912
|
-
const M =
|
|
13912
|
+
const M = x[0], N = x.indexOf(`
|
|
13913
13913
|
`), j = N !== -1, P = n.inFlow ?? t.flow ?? t.items.length === 0;
|
|
13914
13914
|
if (j || !P) {
|
|
13915
13915
|
let I = !1;
|
|
13916
13916
|
if (j && (M === "&" || M === "!")) {
|
|
13917
|
-
let O =
|
|
13918
|
-
M === "&" && O !== -1 && O < N &&
|
|
13917
|
+
let O = x.indexOf(" ");
|
|
13918
|
+
M === "&" && O !== -1 && O < N && x[O + 1] === "!" && (O = x.indexOf(" ", O + 1)), (O === -1 || N < O) && (I = !0);
|
|
13919
13919
|
}
|
|
13920
13920
|
I || (C = `
|
|
13921
13921
|
${n.indent}`);
|
|
13922
13922
|
}
|
|
13923
|
-
} else (
|
|
13923
|
+
} else (x === "" || x[0] === `
|
|
13924
13924
|
`) && (C = "");
|
|
13925
|
-
return y += C +
|
|
13925
|
+
return y += C + x, n.inFlow ? E && i && i() : S && !E ? y += Pi(y, n.indent, c(S)) : v && o && o(), y;
|
|
13926
13926
|
}
|
|
13927
13927
|
function CI(e, t) {
|
|
13928
13928
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
@@ -14081,13 +14081,13 @@ function II({ items: e }, t, { flowChars: n, itemIndent: i }) {
|
|
|
14081
14081
|
else if (Ft(v)) {
|
|
14082
14082
|
const w = $t(v.key) ? v.key : null;
|
|
14083
14083
|
w && (w.spaceBefore && d.push(""), yr(t, d, w.commentBefore, !1), w.comment && (c = !0));
|
|
14084
|
-
const
|
|
14085
|
-
|
|
14084
|
+
const S = $t(v.value) ? v.value : null;
|
|
14085
|
+
S ? (S.comment && (y = S.comment), S.commentBefore && (c = !0)) : v.value == null && w?.comment && (y = w.comment);
|
|
14086
14086
|
}
|
|
14087
14087
|
y && (c = !0);
|
|
14088
14088
|
let _ = Co(v, l, () => y = null);
|
|
14089
14089
|
c || (c = d.length > p || _.includes(`
|
|
14090
|
-
`)), h < e.length - 1 ? _ += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (c || (c = d.reduce((w,
|
|
14090
|
+
`)), h < e.length - 1 ? _ += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (c || (c = d.reduce((w, S) => w + S.length + 2, 2) + (_.length + 2) > t.options.lineWidth)), c && (_ += ",")), y && (_ += Pi(_, i, u(y))), d.push(_), p = d.length;
|
|
14091
14091
|
}
|
|
14092
14092
|
const { start: f, end: g } = n;
|
|
14093
14093
|
if (d.length === 0)
|
|
@@ -15235,7 +15235,7 @@ ${c}
|
|
|
15235
15235
|
}
|
|
15236
15236
|
};
|
|
15237
15237
|
function Eo(e, { flow: t, indicator: n, next: i, offset: o, onError: a, parentIndent: r, startOnNewline: u }) {
|
|
15238
|
-
let l = !1, c = u, p = u, d = "", f = "", g = !1, h = !1, v = null, y = null, _ = null, w = null,
|
|
15238
|
+
let l = !1, c = u, p = u, d = "", f = "", g = !1, h = !1, v = null, y = null, _ = null, w = null, S = null, E = null, x = null;
|
|
15239
15239
|
for (const N of e)
|
|
15240
15240
|
switch (h && (N.type !== "space" && N.type !== "newline" && N.type !== "comma" && a(N.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), h = !1), v && (c && N.type !== "comment" && N.type !== "newline" && a(v, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), v = null), N.type) {
|
|
15241
15241
|
case "space":
|
|
@@ -15251,10 +15251,10 @@ function Eo(e, { flow: t, indicator: n, next: i, offset: o, onError: a, parentIn
|
|
|
15251
15251
|
c ? d ? d += N.source : (!E || n !== "seq-item-ind") && (l = !0) : f += N.source, c = !0, g = !0, (y || _) && (w = N), p = !0;
|
|
15252
15252
|
break;
|
|
15253
15253
|
case "anchor":
|
|
15254
|
-
y && a(N, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), N.source.endsWith(":") && a(N.offset + N.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), y = N,
|
|
15254
|
+
y && a(N, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), N.source.endsWith(":") && a(N.offset + N.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), y = N, x ?? (x = N.offset), c = !1, p = !1, h = !0;
|
|
15255
15255
|
break;
|
|
15256
15256
|
case "tag": {
|
|
15257
|
-
_ && a(N, "MULTIPLE_TAGS", "A node can have at most one tag"), _ = N,
|
|
15257
|
+
_ && a(N, "MULTIPLE_TAGS", "A node can have at most one tag"), _ = N, x ?? (x = N.offset), c = !1, p = !1, h = !0;
|
|
15258
15258
|
break;
|
|
15259
15259
|
}
|
|
15260
15260
|
case n:
|
|
@@ -15262,7 +15262,7 @@ function Eo(e, { flow: t, indicator: n, next: i, offset: o, onError: a, parentIn
|
|
|
15262
15262
|
break;
|
|
15263
15263
|
case "comma":
|
|
15264
15264
|
if (t) {
|
|
15265
|
-
|
|
15265
|
+
S && a(N, "UNEXPECTED_TOKEN", `Unexpected , in ${t}`), S = N, c = !1, p = !1;
|
|
15266
15266
|
break;
|
|
15267
15267
|
}
|
|
15268
15268
|
// else fallthrough
|
|
@@ -15271,7 +15271,7 @@ function Eo(e, { flow: t, indicator: n, next: i, offset: o, onError: a, parentIn
|
|
|
15271
15271
|
}
|
|
15272
15272
|
const C = e[e.length - 1], M = C ? C.offset + C.source.length : o;
|
|
15273
15273
|
return h && i && i.type !== "space" && i.type !== "newline" && i.type !== "comma" && (i.type !== "scalar" || i.source !== "") && a(i.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), v && (c && v.indent <= r || i?.type === "block-map" || i?.type === "block-seq") && a(v, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
|
|
15274
|
-
comma:
|
|
15274
|
+
comma: S,
|
|
15275
15275
|
found: E,
|
|
15276
15276
|
spaceBefore: l,
|
|
15277
15277
|
comment: d,
|
|
@@ -15280,7 +15280,7 @@ function Eo(e, { flow: t, indicator: n, next: i, offset: o, onError: a, parentIn
|
|
|
15280
15280
|
tag: _,
|
|
15281
15281
|
newlineAfterProp: w,
|
|
15282
15282
|
end: M,
|
|
15283
|
-
start:
|
|
15283
|
+
start: x ?? M
|
|
15284
15284
|
};
|
|
15285
15285
|
}
|
|
15286
15286
|
function ga(e) {
|
|
@@ -15356,7 +15356,7 @@ function UI({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15356
15356
|
n.atKey = !0;
|
|
15357
15357
|
const _ = v.end, w = f ? e(n, f, v, o) : t(n, _, d, null, v, o);
|
|
15358
15358
|
n.schema.compat && El(i.indent, f, o), n.atKey = !1, Dm(n, u.items, w) && o(_, "DUPLICATE_KEY", "Map keys must be unique");
|
|
15359
|
-
const
|
|
15359
|
+
const S = Eo(g ?? [], {
|
|
15360
15360
|
indicator: "map-value-ind",
|
|
15361
15361
|
next: h,
|
|
15362
15362
|
offset: w.range[2],
|
|
@@ -15364,15 +15364,15 @@ function UI({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15364
15364
|
parentIndent: i.indent,
|
|
15365
15365
|
startOnNewline: !f || f.type === "block-scalar"
|
|
15366
15366
|
});
|
|
15367
|
-
if (l =
|
|
15368
|
-
y && (h?.type === "block-map" && !
|
|
15369
|
-
const E = h ? e(n, h,
|
|
15367
|
+
if (l = S.end, S.found) {
|
|
15368
|
+
y && (h?.type === "block-map" && !S.hasNewline && o(l, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && v.start < S.found.offset - 1024 && o(w.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
15369
|
+
const E = h ? e(n, h, S, o) : t(n, l, g, null, S, o);
|
|
15370
15370
|
n.schema.compat && El(i.indent, h, o), l = E.range[2];
|
|
15371
|
-
const
|
|
15372
|
-
n.options.keepSourceTokens && (
|
|
15371
|
+
const x = new nn(w, E);
|
|
15372
|
+
n.options.keepSourceTokens && (x.srcToken = p), u.items.push(x);
|
|
15373
15373
|
} else {
|
|
15374
|
-
y && o(w.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"),
|
|
15375
|
-
` +
|
|
15374
|
+
y && o(w.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), S.comment && (w.comment ? w.comment += `
|
|
15375
|
+
` + S.comment : w.comment = S.comment);
|
|
15376
15376
|
const E = new nn(w);
|
|
15377
15377
|
n.options.keepSourceTokens && (E.srcToken = p), u.items.push(E);
|
|
15378
15378
|
}
|
|
@@ -15439,23 +15439,23 @@ function zI({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15439
15439
|
p && (n.atRoot = !1), n.atKey && (n.atKey = !1);
|
|
15440
15440
|
let d = i.offset + i.start.source.length;
|
|
15441
15441
|
for (let y = 0; y < i.items.length; ++y) {
|
|
15442
|
-
const _ = i.items[y], { start: w, key:
|
|
15442
|
+
const _ = i.items[y], { start: w, key: S, sep: E, value: x } = _, C = Eo(w, {
|
|
15443
15443
|
flow: u,
|
|
15444
15444
|
indicator: "explicit-key-ind",
|
|
15445
|
-
next:
|
|
15445
|
+
next: S ?? E?.[0],
|
|
15446
15446
|
offset: d,
|
|
15447
15447
|
onError: o,
|
|
15448
15448
|
parentIndent: i.indent,
|
|
15449
15449
|
startOnNewline: !1
|
|
15450
15450
|
});
|
|
15451
15451
|
if (!C.found) {
|
|
15452
|
-
if (!C.anchor && !C.tag && !E && !
|
|
15452
|
+
if (!C.anchor && !C.tag && !E && !x) {
|
|
15453
15453
|
y === 0 && C.comma ? o(C.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${u}`) : y < i.items.length - 1 && o(C.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${u}`), C.comment && (c.comment ? c.comment += `
|
|
15454
15454
|
` + C.comment : c.comment = C.comment), d = C.end;
|
|
15455
15455
|
continue;
|
|
15456
15456
|
}
|
|
15457
|
-
!r && n.options.strict && ga(
|
|
15458
|
-
|
|
15457
|
+
!r && n.options.strict && ga(S) && o(
|
|
15458
|
+
S,
|
|
15459
15459
|
// checked by containsNewline()
|
|
15460
15460
|
"MULTILINE_IMPLICIT_KEY",
|
|
15461
15461
|
"Implicit keys of flow sequence pairs need to be on a single line"
|
|
@@ -15483,16 +15483,16 @@ function zI({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15483
15483
|
}
|
|
15484
15484
|
}
|
|
15485
15485
|
if (!r && !E && !C.found) {
|
|
15486
|
-
const M =
|
|
15487
|
-
c.items.push(M), d = M.range[2], Ms(
|
|
15486
|
+
const M = x ? e(n, x, C, o) : t(n, C.end, E, null, C, o);
|
|
15487
|
+
c.items.push(M), d = M.range[2], Ms(x) && o(M.range, "BLOCK_IN_FLOW", Rs);
|
|
15488
15488
|
} else {
|
|
15489
15489
|
n.atKey = !0;
|
|
15490
|
-
const M = C.end, N =
|
|
15491
|
-
Ms(
|
|
15490
|
+
const M = C.end, N = S ? e(n, S, C, o) : t(n, M, w, null, C, o);
|
|
15491
|
+
Ms(S) && o(N.range, "BLOCK_IN_FLOW", Rs), n.atKey = !1;
|
|
15492
15492
|
const j = Eo(E ?? [], {
|
|
15493
15493
|
flow: u,
|
|
15494
15494
|
indicator: "map-value-ind",
|
|
15495
|
-
next:
|
|
15495
|
+
next: x,
|
|
15496
15496
|
offset: N.range[2],
|
|
15497
15497
|
onError: o,
|
|
15498
15498
|
parentIndent: i.indent,
|
|
@@ -15511,9 +15511,9 @@ function zI({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15511
15511
|
}
|
|
15512
15512
|
C.start < j.found.offset - 1024 && o(j.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
15513
15513
|
}
|
|
15514
|
-
} else
|
|
15515
|
-
const P =
|
|
15516
|
-
P ? Ms(
|
|
15514
|
+
} else x && ("source" in x && x.source?.[0] === ":" ? o(x, "MISSING_CHAR", `Missing space after : in ${u}`) : o(j.start, "MISSING_CHAR", `Missing , or : between ${u} items`));
|
|
15515
|
+
const P = x ? e(n, x, j, o) : j.found ? t(n, j.end, E, null, j, o) : null;
|
|
15516
|
+
P ? Ms(x) && o(P.range, "BLOCK_IN_FLOW", Rs) : j.comment && (N.comment ? N.comment += `
|
|
15517
15517
|
` + j.comment : N.comment = j.comment);
|
|
15518
15518
|
const I = new nn(N, P);
|
|
15519
15519
|
if (n.options.keepSourceTokens && (I.srcToken = _), r) {
|
|
@@ -15609,8 +15609,8 @@ function HI(e, t, n) {
|
|
|
15609
15609
|
c += y.length + _.length + 1;
|
|
15610
15610
|
const w = _[_.length - 1] === "\r";
|
|
15611
15611
|
if (w && (_ = _.slice(0, -1)), _ && y.length < l) {
|
|
15612
|
-
const
|
|
15613
|
-
n(c - _.length - (w ? 2 : 1), "BAD_INDENT",
|
|
15612
|
+
const S = `Block scalar lines must not be less indented than their ${o.indent ? "explicit indentation indicator" : "first line"}`;
|
|
15613
|
+
n(c - _.length - (w ? 2 : 1), "BAD_INDENT", S), y = "";
|
|
15614
15614
|
}
|
|
15615
15615
|
a === at.BLOCK_LITERAL ? (d += f + y.slice(l) + _, f = `
|
|
15616
15616
|
`) : y.length > l || _[0] === " " ? (f === " " ? f = `
|
|
@@ -17668,7 +17668,7 @@ function Ad(e) {
|
|
|
17668
17668
|
function PA(e, t) {
|
|
17669
17669
|
const n = `kong.entities-plugins.codeEditor.command.${xA()}`, i = `${n}.copy`, o = `${n}.viewEntity`, { axiosInstance: a } = fn(t ?? e.axiosRequestConfig), r = Ui(), { i18n: { t: u } } = tt(), { getSchemaMap: l } = dt(), c = AA();
|
|
17670
17670
|
function p(f, g) {
|
|
17671
|
-
const h = /* @__PURE__ */ new Map(), v = new my(), y = `${n}.${f}.reloadCodeLensProvider`, _ = Au(g ?? [f], async (E,
|
|
17671
|
+
const h = /* @__PURE__ */ new Map(), v = new my(), y = `${n}.${f}.reloadCodeLensProvider`, _ = Au(g ?? [f], async (E, x) => {
|
|
17672
17672
|
const C = E?.id;
|
|
17673
17673
|
if (!C)
|
|
17674
17674
|
return fy();
|
|
@@ -17693,9 +17693,9 @@ function PA(e, t) {
|
|
|
17693
17693
|
})());
|
|
17694
17694
|
const M = c[f];
|
|
17695
17695
|
return { lenses: [
|
|
17696
|
-
...M.fields.map((j) => ({ id: `${C}:${j.id}`, range:
|
|
17696
|
+
...M.fields.map((j) => ({ id: `${C}:${j.id}`, range: x })),
|
|
17697
17697
|
{
|
|
17698
|
-
range:
|
|
17698
|
+
range: x,
|
|
17699
17699
|
command: {
|
|
17700
17700
|
id: o,
|
|
17701
17701
|
title: `${u("plugins.free-form.code-lens.action.view_entity", { title: M.title })} $(link-external)`,
|
|
@@ -17703,33 +17703,33 @@ function PA(e, t) {
|
|
|
17703
17703
|
arguments: [f, C]
|
|
17704
17704
|
}
|
|
17705
17705
|
},
|
|
17706
|
-
...(M.commands ?? []).map((j) => ({ id: `${C}:${j.id}`, range:
|
|
17706
|
+
...(M.commands ?? []).map((j) => ({ id: `${C}:${j.id}`, range: x }))
|
|
17707
17707
|
], dispose: () => {
|
|
17708
17708
|
} };
|
|
17709
17709
|
}), w = {
|
|
17710
17710
|
provideCodeLenses: _.provideCodeLenses,
|
|
17711
|
-
resolveCodeLens: async (E,
|
|
17712
|
-
if (
|
|
17713
|
-
const M =
|
|
17711
|
+
resolveCodeLens: async (E, x, C) => {
|
|
17712
|
+
if (x = (_.resolveCodeLens && await _.resolveCodeLens(E, x, C)) ?? x, !x.id) return x;
|
|
17713
|
+
const M = x.id.indexOf(":"), N = x.id.indexOf("/"), j = x.id.substring(0, M), P = x.id.substring(M + 1, N);
|
|
17714
17714
|
try {
|
|
17715
17715
|
const I = await h.get(j);
|
|
17716
17716
|
if (!I)
|
|
17717
17717
|
throw new Error("Expected the cached entity to be non-empty");
|
|
17718
|
-
const O = c[f], L =
|
|
17718
|
+
const O = c[f], L = x.id.substring(M + 1);
|
|
17719
17719
|
switch (P) {
|
|
17720
17720
|
case "field": {
|
|
17721
17721
|
const Z = await O.fields.find((U) => U.id === L)?.resolve(I);
|
|
17722
|
-
Z && (
|
|
17722
|
+
Z && (x.command = { id: "", title: Z });
|
|
17723
17723
|
break;
|
|
17724
17724
|
}
|
|
17725
17725
|
case "cmd": {
|
|
17726
17726
|
const Z = await O.commands?.find((U) => U.id === L)?.resolve(I, i);
|
|
17727
|
-
Z && (
|
|
17727
|
+
Z && (x.command = Z);
|
|
17728
17728
|
break;
|
|
17729
17729
|
}
|
|
17730
17730
|
}
|
|
17731
17731
|
} catch (I) {
|
|
17732
|
-
console.error("Error resolving code lens:", I),
|
|
17732
|
+
console.error("Error resolving code lens:", I), x.command = {
|
|
17733
17733
|
id: y,
|
|
17734
17734
|
title: `$(warning) ${u("plugins.free-form.code-lens.action.retry_fetch")}`,
|
|
17735
17735
|
// `\u00A0` is used instead of space to keep the gap between icon and text
|
|
@@ -17737,16 +17737,16 @@ function PA(e, t) {
|
|
|
17737
17737
|
tooltip: I instanceof Error ? I.message : u("plugins.free-form.code-lens.unknown_error")
|
|
17738
17738
|
};
|
|
17739
17739
|
}
|
|
17740
|
-
return
|
|
17740
|
+
return x;
|
|
17741
17741
|
},
|
|
17742
17742
|
onDidChange: v.event
|
|
17743
|
-
},
|
|
17744
|
-
h.delete(
|
|
17743
|
+
}, S = es.registerCommand(y, (E, x) => {
|
|
17744
|
+
h.delete(x), v.fire(w);
|
|
17745
17745
|
});
|
|
17746
17746
|
return {
|
|
17747
17747
|
provider: w,
|
|
17748
17748
|
dispose: () => {
|
|
17749
|
-
v.dispose(),
|
|
17749
|
+
v.dispose(), S.dispose();
|
|
17750
17750
|
}
|
|
17751
17751
|
};
|
|
17752
17752
|
}
|
|
@@ -17766,13 +17766,13 @@ function PA(e, t) {
|
|
|
17766
17766
|
)
|
|
17767
17767
|
], h = TA(l());
|
|
17768
17768
|
for (const { entity: _, keyPath: w } of h) {
|
|
17769
|
-
const
|
|
17769
|
+
const S = p(_, w);
|
|
17770
17770
|
g.push(
|
|
17771
17771
|
ju.registerCodeLensProvider(
|
|
17772
17772
|
{ language: "yaml", scheme: f.uri.scheme, pattern: f.uri.path },
|
|
17773
|
-
|
|
17773
|
+
S.provider
|
|
17774
17774
|
),
|
|
17775
|
-
{ dispose:
|
|
17775
|
+
{ dispose: S.dispose }
|
|
17776
17776
|
);
|
|
17777
17777
|
}
|
|
17778
17778
|
const v = {
|
|
@@ -17784,17 +17784,17 @@ function PA(e, t) {
|
|
|
17784
17784
|
};
|
|
17785
17785
|
g.push(
|
|
17786
17786
|
es.registerCommand(i, (_, w) => {
|
|
17787
|
-
const
|
|
17787
|
+
const S = String(w);
|
|
17788
17788
|
if (!navigator.clipboard?.writeText) {
|
|
17789
17789
|
console.warn("[useCodeLensProviders] Clipboard API is unavailable");
|
|
17790
17790
|
return;
|
|
17791
17791
|
}
|
|
17792
|
-
navigator.clipboard.writeText(
|
|
17792
|
+
navigator.clipboard.writeText(S).catch((E) => {
|
|
17793
17793
|
console.warn("[useCodeLensProviders] Failed to copy to clipboard:", E);
|
|
17794
17794
|
});
|
|
17795
17795
|
}),
|
|
17796
|
-
es.registerCommand(o, (_, w,
|
|
17797
|
-
const E = v[w]?.(
|
|
17796
|
+
es.registerCommand(o, (_, w, S) => {
|
|
17797
|
+
const E = v[w]?.(S);
|
|
17798
17798
|
E && window.open(r.resolve(E).href, "_blank", "noopener");
|
|
17799
17799
|
})
|
|
17800
17800
|
);
|
|
@@ -18140,7 +18140,7 @@ const NA = {
|
|
|
18140
18140
|
"cloud_authentication.oauth.username": ["cloud_authentication.oauth.grant_type", "password"],
|
|
18141
18141
|
"cloud_authentication.oauth.password": ["cloud_authentication.oauth.grant_type", "password"]
|
|
18142
18142
|
}
|
|
18143
|
-
}, o = e, a = Ql(), r = ut(Do), u = r?.isEditing || !1, l = R(() => o.redisPath ? o.redisPath : r?.redisPath?.value ? "$." + r.redisPath.value : "$.config.redis"), c = o.redisType || r?.redisType?.value, p = R(() => !!r?.redisType?.value), d = fe(null), f = fe(!u), { getMessageFromError: g } = xi(), h = fe(o.defaultRedisConfigItem), v = fe({}), y = fe(), { value: _ } = Vf("$.partials"), { value: w, hide:
|
|
18143
|
+
}, o = e, a = Ql(), r = ut(Do), u = r?.isEditing || !1, l = R(() => o.redisPath ? o.redisPath : r?.redisPath?.value ? "$." + r.redisPath.value : "$.config.redis"), c = o.redisType || r?.redisType?.value, p = R(() => !!r?.redisType?.value), d = fe(null), f = fe(!u), { getMessageFromError: g } = xi(), h = fe(o.defaultRedisConfigItem), v = fe({}), y = fe(), { value: _ } = Vf("$.partials"), { value: w, hide: S } = Vt(l), E = ut(wn), x = (H) => H.app === "konnect" && !!H.isKonnectManagedRedisEnabled, C = R(
|
|
18144
18144
|
() => o.isKonnectManagedRedisEnabled ? t("redis.managed_ui.title") : t("redis.title")
|
|
18145
18145
|
), M = R(
|
|
18146
18146
|
() => o.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.description") : t("redis.shared_configuration.description")
|
|
@@ -18182,7 +18182,7 @@ const NA = {
|
|
|
18182
18182
|
const H = o.defaultRedisConfigItem || _?.value?.[0].id;
|
|
18183
18183
|
D(H), f.value = !0;
|
|
18184
18184
|
} else w?.value && (v.value = w.value);
|
|
18185
|
-
}), Ye(() =>
|
|
18185
|
+
}), Ye(() => S?.value, (H) => {
|
|
18186
18186
|
f.value && (H && _.value ? _.value = u ? null : void 0 : H || y.value && (_.value = y.value, D(y.value[0].id)));
|
|
18187
18187
|
}), (H, K) => {
|
|
18188
18188
|
const X = ke("KBadge"), z = ke("KRadio"), ne = ke("KCard");
|
|
@@ -18238,7 +18238,7 @@ const NA = {
|
|
|
18238
18238
|
"model-value": h.value,
|
|
18239
18239
|
placeholder: O.value,
|
|
18240
18240
|
"redis-type": s(c),
|
|
18241
|
-
"show-create-button": !
|
|
18241
|
+
"show-create-button": !x(s(E)),
|
|
18242
18242
|
onErrorChange: F,
|
|
18243
18243
|
onToast: s(a),
|
|
18244
18244
|
"onUpdate:modelValue": D
|
|
@@ -18262,14 +18262,14 @@ const NA = {
|
|
|
18262
18262
|
]),
|
|
18263
18263
|
_: 1
|
|
18264
18264
|
}, 8, ["title"])), [
|
|
18265
|
-
[Gt, !s(
|
|
18265
|
+
[Gt, !s(S)]
|
|
18266
18266
|
]) : zt((k(), W(Dt, Ge({ key: 1 }, o, {
|
|
18267
18267
|
"fields-order": n,
|
|
18268
18268
|
"hide-required-asterisk": "",
|
|
18269
18269
|
name: l.value,
|
|
18270
18270
|
"render-rules": i
|
|
18271
18271
|
}), null, 16, ["name"])), [
|
|
18272
|
-
[Gt, !s(
|
|
18272
|
+
[Gt, !s(S)]
|
|
18273
18273
|
]);
|
|
18274
18274
|
};
|
|
18275
18275
|
}
|
|
@@ -18327,10 +18327,10 @@ const NA = {
|
|
|
18327
18327
|
key: `${e.pluginName}-${w}`,
|
|
18328
18328
|
match: s(Tx)(_.match)
|
|
18329
18329
|
}, {
|
|
18330
|
-
default: $((
|
|
18330
|
+
default: $((S) => [
|
|
18331
18331
|
(k(), W(Lt(_.component), Ge({ ref_for: !0 }, {
|
|
18332
|
-
...
|
|
18333
|
-
...(typeof _.propsOverrides == "function" ? _.propsOverrides(
|
|
18332
|
+
...S,
|
|
18333
|
+
...(typeof _.propsOverrides == "function" ? _.propsOverrides(S) : _.propsOverrides) ?? {}
|
|
18334
18334
|
}), null, 16))
|
|
18335
18335
|
]),
|
|
18336
18336
|
_: 2
|
|
@@ -18434,7 +18434,7 @@ const NA = {
|
|
|
18434
18434
|
return z.concat(A);
|
|
18435
18435
|
},
|
|
18436
18436
|
[]
|
|
18437
|
-
) : i.formSchema?.fields || []), y = R(() => v.value.find((z) => z.type === "selectionGroup")), _ = R(() => (y.value?.fields || []).map(({ label: z, description: ne }) => ({ label: z, description: ne }))), w = R(() => y.value?.fields?.[1]),
|
|
18437
|
+
) : i.formSchema?.fields || []), y = R(() => v.value.find((z) => z.type === "selectionGroup")), _ = R(() => (y.value?.fields || []).map(({ label: z, description: ne }) => ({ label: z, description: ne }))), w = R(() => y.value?.fields?.[1]), S = R(() => (w.value?.fields ?? []).map((z) => ({
|
|
18438
18438
|
name: z.model.split("-")[0],
|
|
18439
18439
|
entity: z.entity,
|
|
18440
18440
|
fields: z.inputValues?.fields,
|
|
@@ -18444,10 +18444,10 @@ const NA = {
|
|
|
18444
18444
|
disabled: z.disabled,
|
|
18445
18445
|
disabledTooltip: z.disabledTooltip,
|
|
18446
18446
|
labelField: z.labelField
|
|
18447
|
-
}))), E = ["instance_name", "protocols", "tags", "condition"],
|
|
18447
|
+
}))), E = ["instance_name", "protocols", "tags", "condition"], x = ["config"], C = R(() => {
|
|
18448
18448
|
const z = {
|
|
18449
18449
|
type: "record",
|
|
18450
|
-
fields: i.schema.fields.filter((A) =>
|
|
18450
|
+
fields: i.schema.fields.filter((A) => x.includes(Object.keys(A)[0]))
|
|
18451
18451
|
}, ne = v.value.find((A) => A.model === "enabled");
|
|
18452
18452
|
return [
|
|
18453
18453
|
// enabled field
|
|
@@ -18623,7 +18623,7 @@ const NA = {
|
|
|
18623
18623
|
_: 1
|
|
18624
18624
|
}, 16)),
|
|
18625
18625
|
w.value ? zt((k(), Q("div", aT, [
|
|
18626
|
-
(k(!0), Q(ze, null, Qe(
|
|
18626
|
+
(k(!0), Q(ze, null, Qe(S.value, (q) => (k(), W(YS, {
|
|
18627
18627
|
key: q.name,
|
|
18628
18628
|
developer: e.developer,
|
|
18629
18629
|
disabled: q.disabled,
|
|
@@ -19520,7 +19520,7 @@ const lT = Le({
|
|
|
19520
19520
|
function w(ne) {
|
|
19521
19521
|
d.config?.principals && (d.config.principals.error_on_miss = ne);
|
|
19522
19522
|
}
|
|
19523
|
-
const
|
|
19523
|
+
const S = fe([]), E = fe(!1);
|
|
19524
19524
|
dn(async () => {
|
|
19525
19525
|
if (!(l?.app !== "konnect" || !C.value))
|
|
19526
19526
|
try {
|
|
@@ -19534,13 +19534,13 @@ const lT = Le({
|
|
|
19534
19534
|
label: V.name
|
|
19535
19535
|
}))), ne = A.data.meta.next ? `${l.apiBaseUrl}${A.data.meta.next}` : null;
|
|
19536
19536
|
} while (ne);
|
|
19537
|
-
|
|
19537
|
+
S.value = q;
|
|
19538
19538
|
} catch {
|
|
19539
|
-
|
|
19539
|
+
S.value = [];
|
|
19540
19540
|
} finally {
|
|
19541
19541
|
E.value = !1;
|
|
19542
19542
|
}
|
|
19543
|
-
}), Mt(tg,
|
|
19543
|
+
}), Mt(tg, S);
|
|
19544
19544
|
const C = R(() => !!f("$.config.identity_realms")), M = ut(ui.KHCP_20393_IDENTITY_PRINCIPALS_UI, !1), N = R(
|
|
19545
19545
|
() => M && !!f("$.config.principals")
|
|
19546
19546
|
), j = R(
|
|
@@ -20192,7 +20192,7 @@ const w$ = {
|
|
|
20192
20192
|
return;
|
|
20193
20193
|
}
|
|
20194
20194
|
}
|
|
20195
|
-
}),
|
|
20195
|
+
}), x());
|
|
20196
20196
|
}
|
|
20197
20197
|
const h = ln(!1), v = ln(null), y = ln("");
|
|
20198
20198
|
function _() {
|
|
@@ -20201,7 +20201,7 @@ const w$ = {
|
|
|
20201
20201
|
function w() {
|
|
20202
20202
|
v.value && (d.value = c(v.value), _());
|
|
20203
20203
|
}
|
|
20204
|
-
function
|
|
20204
|
+
function S(C) {
|
|
20205
20205
|
return i(`plugins.free-form.datakit.examples.${C}`);
|
|
20206
20206
|
}
|
|
20207
20207
|
function E(C) {
|
|
@@ -20223,9 +20223,9 @@ const w$ = {
|
|
|
20223
20223
|
} catch (N) {
|
|
20224
20224
|
r("error", u(N));
|
|
20225
20225
|
}
|
|
20226
|
-
|
|
20226
|
+
x();
|
|
20227
20227
|
}
|
|
20228
|
-
function
|
|
20228
|
+
function x() {
|
|
20229
20229
|
const C = l.value, M = C?.getModel();
|
|
20230
20230
|
!C || !M || (C.setPosition(M.getFullModelRange().getEndPosition()), C.focus());
|
|
20231
20231
|
}
|
|
@@ -20246,7 +20246,7 @@ const w$ = {
|
|
|
20246
20246
|
onClick: (j) => E(N)
|
|
20247
20247
|
}, {
|
|
20248
20248
|
default: $(() => [
|
|
20249
|
-
Pe(ee(
|
|
20249
|
+
Pe(ee(S(N.i18nKey)), 1)
|
|
20250
20250
|
]),
|
|
20251
20251
|
_: 2
|
|
20252
20252
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -20320,7 +20320,7 @@ const O$ = { class: "label-content" }, P$ = { class: "count" }, N$ = { class: "l
|
|
|
20320
20320
|
_(v, y), _(y, v), Ye(d, (le) => {
|
|
20321
20321
|
le && (v.removeSelectedElements(), y.removeSelectedElements());
|
|
20322
20322
|
});
|
|
20323
|
-
const w = wt("flowPanels"),
|
|
20323
|
+
const w = wt("flowPanels"), S = wt("requestLabel"), E = wt("requestCanvasContainer"), x = wt("requestFlow"), C = wt("resizeHandle"), M = wt("responseLabel"), N = wt("responseCanvasContainer"), j = wt("responseFlow"), P = Ii(w), I = Ii(S), O = Ii(E), L = Ii(C), F = Ii(M), Z = Ii(N), U = R(() => Math.max(M$, P.height.value * qs)), te = R(
|
|
20324
20324
|
() => P.height.value - I.height.value - L.height.value - F.height.value
|
|
20325
20325
|
), D = R(() => {
|
|
20326
20326
|
const le = te.value;
|
|
@@ -20365,14 +20365,14 @@ const O$ = { class: "label-content" }, P$ = { class: "count" }, N$ = { class: "l
|
|
|
20365
20365
|
});
|
|
20366
20366
|
function se() {
|
|
20367
20367
|
Xt(() => {
|
|
20368
|
-
|
|
20368
|
+
x.value?.fitView(), j.value?.fitView();
|
|
20369
20369
|
});
|
|
20370
20370
|
}
|
|
20371
20371
|
return Ye(
|
|
20372
20372
|
[n, i, () => a.value.pendingLayout, () => a.value.pendingFitView],
|
|
20373
20373
|
([le, xe, qe, Ve]) => {
|
|
20374
20374
|
e.inactive || !le || !xe || !qe && !Ve || (qe && u(), Ve && l(!1), setTimeout(async () => {
|
|
20375
|
-
qe && (await
|
|
20375
|
+
qe && (await x.value?.autoLayout(!1), await j.value?.autoLayout(!1), c("*"), qe === "clearHistory" && p()), Ve && setTimeout(() => se(), 0);
|
|
20376
20376
|
}, 0));
|
|
20377
20377
|
}
|
|
20378
20378
|
), (le, xe) => (k(), Q("div", {
|
|
@@ -20382,7 +20382,7 @@ const O$ = { class: "label-content" }, P$ = { class: "count" }, N$ = { class: "l
|
|
|
20382
20382
|
}, [
|
|
20383
20383
|
G("div", {
|
|
20384
20384
|
ref_key: "requestLabel",
|
|
20385
|
-
ref:
|
|
20385
|
+
ref: S,
|
|
20386
20386
|
class: gt(["label request", { resizable: e.resizable }]),
|
|
20387
20387
|
onClick: ce
|
|
20388
20388
|
}, [
|
|
@@ -20409,7 +20409,7 @@ const O$ = { class: "label-content" }, P$ = { class: "count" }, N$ = { class: "l
|
|
|
20409
20409
|
}, [
|
|
20410
20410
|
b($c, {
|
|
20411
20411
|
ref_key: "requestFlow",
|
|
20412
|
-
ref:
|
|
20412
|
+
ref: x,
|
|
20413
20413
|
"flow-id": g,
|
|
20414
20414
|
mode: e.mode,
|
|
20415
20415
|
phase: "request",
|
|
@@ -20819,17 +20819,17 @@ const O$ = { class: "label-content" }, P$ = { class: "count" }, N$ = { class: "l
|
|
|
20819
20819
|
] : []), l = async (c, p) => {
|
|
20820
20820
|
const d = c.currentTarget, { left: f, top: g, width: h, height: v } = d.getBoundingClientRect(), y = c.clientX - f, _ = c.clientY - g;
|
|
20821
20821
|
r.value = n({ type: p }), await Xt();
|
|
20822
|
-
const w = document.querySelector(`#${a}`) || d,
|
|
20823
|
-
|
|
20824
|
-
const { offsetWidth: E, offsetHeight:
|
|
20825
|
-
Object.assign(
|
|
20822
|
+
const w = document.querySelector(`#${a}`) || d, S = w.cloneNode(!0);
|
|
20823
|
+
S.classList.add("dk-drag-snapshot");
|
|
20824
|
+
const { offsetWidth: E, offsetHeight: x } = w;
|
|
20825
|
+
Object.assign(S.style, {
|
|
20826
20826
|
position: "absolute",
|
|
20827
20827
|
top: "-9999px",
|
|
20828
20828
|
left: "-9999px",
|
|
20829
20829
|
width: `${E}px`,
|
|
20830
|
-
height: `${
|
|
20831
|
-
}), document.body.appendChild(
|
|
20832
|
-
const C = y / h, M = _ / v, N = { ratioX: C, ratioY: M, offsetX: E * C, offsetY:
|
|
20830
|
+
height: `${x}px`
|
|
20831
|
+
}), document.body.appendChild(S);
|
|
20832
|
+
const C = y / h, M = _ / v, N = { ratioX: C, ratioY: M, offsetX: E * C, offsetY: x * M }, j = {
|
|
20833
20833
|
action: "create-node",
|
|
20834
20834
|
data: {
|
|
20835
20835
|
type: p,
|
|
@@ -20837,11 +20837,11 @@ const O$ = { class: "label-content" }, P$ = { class: "count" }, N$ = { class: "l
|
|
|
20837
20837
|
}
|
|
20838
20838
|
};
|
|
20839
20839
|
c.dataTransfer?.setData(Xo, JSON.stringify(j)), c.dataTransfer?.setData(`${Xo}/${p}`, p), c.dataTransfer?.setDragImage(
|
|
20840
|
-
|
|
20840
|
+
S,
|
|
20841
20841
|
N.offsetX,
|
|
20842
20842
|
N.offsetY
|
|
20843
20843
|
), requestAnimationFrame(() => {
|
|
20844
|
-
|
|
20844
|
+
S.remove(), r.value = void 0;
|
|
20845
20845
|
});
|
|
20846
20846
|
};
|
|
20847
20847
|
return (c, p) => {
|
|
@@ -20931,11 +20931,11 @@ function mO() {
|
|
|
20931
20931
|
const _ = Ei(u, "output", h);
|
|
20932
20932
|
if (!_) return;
|
|
20933
20933
|
o(u.id, _.id, v, !1);
|
|
20934
|
-
const w = u.config?.[h] ?? "",
|
|
20934
|
+
const w = u.config?.[h] ?? "", S = {
|
|
20935
20935
|
...Ci(u.config, h),
|
|
20936
20936
|
[v]: w
|
|
20937
20937
|
};
|
|
20938
|
-
i(u.id,
|
|
20938
|
+
i(u.id, S, y);
|
|
20939
20939
|
}
|
|
20940
20940
|
};
|
|
20941
20941
|
}
|
|
@@ -21023,39 +21023,39 @@ const gO = /* @__PURE__ */ Oe({
|
|
|
21023
21023
|
getKeyName: l
|
|
21024
21024
|
} = du(Ct(n, "name")), c = Vt(Ct(n, "name")), p = fe(null), d = fe(null), f = R(() => {
|
|
21025
21025
|
if (!p.value) return null;
|
|
21026
|
-
const
|
|
21027
|
-
return
|
|
21026
|
+
const x = l(p.value), C = c.value ? c.value.value[p.value] : void 0;
|
|
21027
|
+
return x === void 0 || C === void 0 ? null : {
|
|
21028
21028
|
id: p.value,
|
|
21029
|
-
key:
|
|
21029
|
+
key: x,
|
|
21030
21030
|
value: C
|
|
21031
21031
|
};
|
|
21032
|
-
}), { i18n: { t: g } } = st.useI18n(), h = R(() => new Set(o.value.map(([,
|
|
21032
|
+
}), { i18n: { t: g } } = st.useI18n(), h = R(() => new Set(o.value.map(([, x]) => x))), v = () => {
|
|
21033
21033
|
if (!c.value) return;
|
|
21034
21034
|
const C = a();
|
|
21035
21035
|
d.value = C, p.value = C;
|
|
21036
21036
|
}, y = () => {
|
|
21037
21037
|
p.value = null, d.value && (r(d.value), d.value = null);
|
|
21038
|
-
}, _ = (
|
|
21038
|
+
}, _ = (x) => {
|
|
21039
21039
|
if (!f.value) throw new Error("no selected entry");
|
|
21040
|
-
const C = f.value.key, M = C !==
|
|
21041
|
-
f.value.value =
|
|
21040
|
+
const C = f.value.key, M = C !== x.secretName, N = f.value.value !== x.secretRef, j = M || N;
|
|
21041
|
+
f.value.value = x.secretRef, f.value.key = x.secretName, N && (c.value.value[f.value.id] = x.secretRef), M && u(f.value.id, x.secretName), d.value ? i("add", x.secretName, x.secretRef) : j && i(
|
|
21042
21042
|
"update",
|
|
21043
|
-
|
|
21044
|
-
|
|
21043
|
+
x.secretName,
|
|
21044
|
+
x.secretRef,
|
|
21045
21045
|
M ? C : void 0
|
|
21046
21046
|
), d.value = null, y();
|
|
21047
|
-
}, w = (
|
|
21048
|
-
p.value =
|
|
21049
|
-
},
|
|
21050
|
-
const C = l(
|
|
21051
|
-
r(
|
|
21052
|
-
}, E = (
|
|
21053
|
-
if (!
|
|
21047
|
+
}, w = (x) => {
|
|
21048
|
+
p.value = x;
|
|
21049
|
+
}, S = (x) => {
|
|
21050
|
+
const C = l(x);
|
|
21051
|
+
r(x), i("remove", C);
|
|
21052
|
+
}, E = (x, C) => {
|
|
21053
|
+
if (!x)
|
|
21054
21054
|
return g("plugins.free-form.datakit.flow_editor.panel_segments.resources.vault.name_required_error");
|
|
21055
|
-
if (h.value.has(
|
|
21055
|
+
if (h.value.has(x) && !(C && x === f.value?.key))
|
|
21056
21056
|
return g("plugins.free-form.datakit.flow_editor.panel_segments.resources.vault.name_exists_error");
|
|
21057
21057
|
};
|
|
21058
|
-
return (
|
|
21058
|
+
return (x, C) => {
|
|
21059
21059
|
const M = ke("KButton"), N = ke("KDropdownItem"), j = ke("KDropdown");
|
|
21060
21060
|
return k(), Q("div", hO, [
|
|
21061
21061
|
G("h3", yO, ee(s(g)("plugins.free-form.datakit.flow_editor.panel_segments.resources.vault.title")), 1),
|
|
@@ -21093,7 +21093,7 @@ const gO = /* @__PURE__ */ Oe({
|
|
|
21093
21093
|
}, 8, ["onClick"]),
|
|
21094
21094
|
b(N, {
|
|
21095
21095
|
danger: "",
|
|
21096
|
-
onClick: (O) =>
|
|
21096
|
+
onClick: (O) => S(P)
|
|
21097
21097
|
}, {
|
|
21098
21098
|
default: $(() => [
|
|
21099
21099
|
Pe(ee(s(g)("plugins.free-form.datakit.flow_editor.panel_segments.resources.vault.delete")), 1)
|
|
@@ -21258,11 +21258,11 @@ const xO = { key: 1 }, SO = ["innerHTML"], IO = { class: "horizontal-container"
|
|
|
21258
21258
|
d.value = !1, i("cancel");
|
|
21259
21259
|
}, w = () => {
|
|
21260
21260
|
i("remove");
|
|
21261
|
-
},
|
|
21261
|
+
}, S = () => {
|
|
21262
21262
|
y(), r.value.value || (r.value.value = o("cache"), r.value.value.strategy = "memory");
|
|
21263
21263
|
}, E = () => {
|
|
21264
21264
|
d.value = !1, i("update", a);
|
|
21265
|
-
},
|
|
21265
|
+
}, x = () => {
|
|
21266
21266
|
h.value === "memory" && a.cache?.partial_id && delete a.cache?.partial_id;
|
|
21267
21267
|
};
|
|
21268
21268
|
async function C({ codeElement: M, language: N, code: j }) {
|
|
@@ -21322,7 +21322,7 @@ const xO = { key: 1 }, SO = ["innerHTML"], IO = { class: "horizontal-container"
|
|
|
21322
21322
|
appearance: "tertiary",
|
|
21323
21323
|
class: "add-button",
|
|
21324
21324
|
size: "small",
|
|
21325
|
-
onClick:
|
|
21325
|
+
onClick: S
|
|
21326
21326
|
}, {
|
|
21327
21327
|
default: $(() => [
|
|
21328
21328
|
b(s(pn)),
|
|
@@ -21347,7 +21347,7 @@ const xO = { key: 1 }, SO = ["innerHTML"], IO = { class: "horizontal-container"
|
|
|
21347
21347
|
{ label: s(f)("plugins.free-form.datakit.flow_editor.panel_segments.resources.cache.strategy_options.redis"), value: "redis" }
|
|
21348
21348
|
],
|
|
21349
21349
|
name: "strategy",
|
|
21350
|
-
"onUpdate:modelValue":
|
|
21350
|
+
"onUpdate:modelValue": x
|
|
21351
21351
|
}, null, 8, ["items"]),
|
|
21352
21352
|
h.value === "memory" ? (k(), W(it, {
|
|
21353
21353
|
key: 0,
|
|
@@ -22197,7 +22197,7 @@ const Nn = J.object({
|
|
|
22197
22197
|
async function w(I, O = "key") {
|
|
22198
22198
|
f.value && (await Xt(), f.value.querySelector(`[data-${O}-input="${I}"]`)?.focus());
|
|
22199
22199
|
}
|
|
22200
|
-
function
|
|
22200
|
+
function S() {
|
|
22201
22201
|
const I = a();
|
|
22202
22202
|
if (!I)
|
|
22203
22203
|
return;
|
|
@@ -22208,7 +22208,7 @@ const Nn = J.object({
|
|
|
22208
22208
|
function E(I, O) {
|
|
22209
22209
|
r(I), delete v.value[I], delete h.value[I], I === g.value && (g.value = null), O.trim() !== "" && i("remove:field", O);
|
|
22210
22210
|
}
|
|
22211
|
-
function
|
|
22211
|
+
function x(I) {
|
|
22212
22212
|
y = v.value[I] ?? l(I) ?? "";
|
|
22213
22213
|
}
|
|
22214
22214
|
function C(I, O) {
|
|
@@ -22298,7 +22298,7 @@ const Nn = J.object({
|
|
|
22298
22298
|
placeholder: s(d)("plugins.free-form.datakit.flow_editor.node_properties.input_name.placeholder"),
|
|
22299
22299
|
onBlur: (X) => j(D),
|
|
22300
22300
|
onChange: (X) => M(D),
|
|
22301
|
-
onFocus: (X) =>
|
|
22301
|
+
onFocus: (X) => x(D),
|
|
22302
22302
|
"onUpdate:modelValue": (X) => C(D, X)
|
|
22303
22303
|
}, null, 8, ["id", "data-key-input", "data-testid", "error", "error-message", "model-value", "placeholder", "onBlur", "onChange", "onFocus", "onUpdate:modelValue"]),
|
|
22304
22304
|
b(U, {
|
|
@@ -22339,7 +22339,7 @@ const Nn = J.object({
|
|
|
22339
22339
|
appearance: "tertiary",
|
|
22340
22340
|
"data-testid": `ff-kv-add-btn-${s(c).path.value}`,
|
|
22341
22341
|
disabled: !!g.value,
|
|
22342
|
-
onClick:
|
|
22342
|
+
onClick: S
|
|
22343
22343
|
}, {
|
|
22344
22344
|
default: $(() => [
|
|
22345
22345
|
b(s(pn)),
|
|
@@ -22852,7 +22852,7 @@ function hn(e, t) {
|
|
|
22852
22852
|
};
|
|
22853
22853
|
}), w = (D) => {
|
|
22854
22854
|
i(e, D ?? "", !0, `${e}:rename`);
|
|
22855
|
-
},
|
|
22855
|
+
}, S = (D, H = !0) => {
|
|
22856
22856
|
if (!t) throw new Error("getFormValue is not defined");
|
|
22857
22857
|
const K = Ci(t(), ["name", "input", "inputs"]), X = D ? `update:${e}:${D}` : void 0;
|
|
22858
22858
|
l(e, K, H, X);
|
|
@@ -22861,7 +22861,7 @@ function hn(e, t) {
|
|
|
22861
22861
|
if (!K)
|
|
22862
22862
|
throw new Error(`Field with name "${H}" not found in node "${y.value.name}"`);
|
|
22863
22863
|
return K;
|
|
22864
|
-
},
|
|
22864
|
+
}, x = (D, H, K) => {
|
|
22865
22865
|
const X = !!K;
|
|
22866
22866
|
a(e, D, H, !X), X && P(H, K);
|
|
22867
22867
|
}, C = (D, H, K) => {
|
|
@@ -22974,9 +22974,9 @@ function hn(e, t) {
|
|
|
22974
22974
|
currentNode: y,
|
|
22975
22975
|
// form ops
|
|
22976
22976
|
setName: w,
|
|
22977
|
-
setConfig:
|
|
22977
|
+
setConfig: S,
|
|
22978
22978
|
// field ops
|
|
22979
|
-
addField:
|
|
22979
|
+
addField: x,
|
|
22980
22980
|
renameFieldByName: C,
|
|
22981
22981
|
removeFieldByName: M,
|
|
22982
22982
|
// input(s) ops
|
|
@@ -23089,7 +23089,7 @@ const Rn = /* @__PURE__ */ Oe({
|
|
|
23089
23089
|
toggleNodeValid: f
|
|
23090
23090
|
}), v = h("url", () => r("url")), y = h("timeout", () => r("timeout"));
|
|
23091
23091
|
return (_, w) => {
|
|
23092
|
-
const
|
|
23092
|
+
const S = ke("KLabel");
|
|
23093
23093
|
return k(), W(Zt, {
|
|
23094
23094
|
ref: "form",
|
|
23095
23095
|
data: s(o),
|
|
@@ -23101,7 +23101,7 @@ const Rn = /* @__PURE__ */ Oe({
|
|
|
23101
23101
|
validate: s(d),
|
|
23102
23102
|
onUpdate: s(a)
|
|
23103
23103
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
23104
|
-
b(
|
|
23104
|
+
b(S, { class: "dk-node-configuration-label" }, {
|
|
23105
23105
|
default: $(() => [
|
|
23106
23106
|
Pe(ee(s(t)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
23107
23107
|
]),
|
|
@@ -23235,19 +23235,19 @@ const Rn = /* @__PURE__ */ Oe({
|
|
|
23235
23235
|
function w(N, j) {
|
|
23236
23236
|
d("input", N, j);
|
|
23237
23237
|
}
|
|
23238
|
-
function
|
|
23238
|
+
function S(N) {
|
|
23239
23239
|
f("input", N);
|
|
23240
23240
|
}
|
|
23241
23241
|
function E(N, j) {
|
|
23242
23242
|
g("input", N, j);
|
|
23243
23243
|
}
|
|
23244
|
-
const
|
|
23244
|
+
const x = t("plugins.free-form.datakit.flow_editor.node_properties.jq.label"), {
|
|
23245
23245
|
createFieldHandler: C
|
|
23246
23246
|
} = fi({
|
|
23247
23247
|
validationConfig: {
|
|
23248
23248
|
jq: mn(
|
|
23249
|
-
Di({ fieldName:
|
|
23250
|
-
si(1, 10240, { fieldName:
|
|
23249
|
+
Di({ fieldName: x }),
|
|
23250
|
+
si(1, 10240, { fieldName: x })
|
|
23251
23251
|
)
|
|
23252
23252
|
},
|
|
23253
23253
|
getValidationData: () => ({
|
|
@@ -23278,7 +23278,7 @@ const Rn = /* @__PURE__ */ Oe({
|
|
|
23278
23278
|
autosize: "",
|
|
23279
23279
|
error: s(M).error,
|
|
23280
23280
|
"error-message": s(M).errorMessage,
|
|
23281
|
-
label: s(
|
|
23281
|
+
label: s(x),
|
|
23282
23282
|
"label-attributes": {},
|
|
23283
23283
|
multiline: "",
|
|
23284
23284
|
name: "jq",
|
|
@@ -23313,7 +23313,7 @@ const Rn = /* @__PURE__ */ Oe({
|
|
|
23313
23313
|
"onAdd:field": w,
|
|
23314
23314
|
"onChange:input": s(p),
|
|
23315
23315
|
"onChange:inputs": s(c),
|
|
23316
|
-
"onRemove:field":
|
|
23316
|
+
"onRemove:field": S,
|
|
23317
23317
|
"onRename:field": E
|
|
23318
23318
|
}, null, 8, ["field-name-validator", "field-names", "items", "onChange:input", "onChange:inputs"])
|
|
23319
23319
|
]),
|
|
@@ -23364,14 +23364,14 @@ const Rn = /* @__PURE__ */ Oe({
|
|
|
23364
23364
|
async function w(P, I = "key") {
|
|
23365
23365
|
l.value && (await Xt(), l.value.querySelector(`[data-${I}-input="${P}"]`)?.focus());
|
|
23366
23366
|
}
|
|
23367
|
-
function
|
|
23367
|
+
function S() {
|
|
23368
23368
|
const P = y(), I = c.value.findIndex(({ key: O }) => !O);
|
|
23369
23369
|
w(I === -1 ? c.value.length - 1 : I), p.value = P;
|
|
23370
23370
|
}
|
|
23371
23371
|
function E(P) {
|
|
23372
23372
|
P.id === p.value?.id && (p.value = null), _(P.id), P.key.trim() !== "" && i("remove:field", P.key);
|
|
23373
23373
|
}
|
|
23374
|
-
function
|
|
23374
|
+
function x(P) {
|
|
23375
23375
|
d = P.key;
|
|
23376
23376
|
}
|
|
23377
23377
|
function C(P) {
|
|
@@ -23472,7 +23472,7 @@ const Rn = /* @__PURE__ */ Oe({
|
|
|
23472
23472
|
required: "",
|
|
23473
23473
|
onBlur: (H) => j(te),
|
|
23474
23474
|
onChange: (H) => C(te),
|
|
23475
|
-
onFocus: (H) =>
|
|
23475
|
+
onFocus: (H) => x(te)
|
|
23476
23476
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "data-key-input", "data-testid", "error", "error-message", "label", "onBlur", "onChange", "onFocus"]),
|
|
23477
23477
|
b(Z, {
|
|
23478
23478
|
modelValue: te.value,
|
|
@@ -23490,7 +23490,7 @@ const Rn = /* @__PURE__ */ Oe({
|
|
|
23490
23490
|
appearance: "tertiary",
|
|
23491
23491
|
"data-testid": `ff-kv-add-btn-${r.path.value}`,
|
|
23492
23492
|
disabled: !!p.value,
|
|
23493
|
-
onClick:
|
|
23493
|
+
onClick: S
|
|
23494
23494
|
}, {
|
|
23495
23495
|
default: $(() => [
|
|
23496
23496
|
b(s(pn)),
|
|
@@ -23540,22 +23540,22 @@ const SN = /* @__PURE__ */ Oe({
|
|
|
23540
23540
|
removeField: a,
|
|
23541
23541
|
replaceConfig: r,
|
|
23542
23542
|
getNodeById: u
|
|
23543
|
-
} = Kt(), { fieldNameValidator: l } = hn(e.nodeId), c = yn("static"), p = _g(e.nodeId), d = R(() => u(e.nodeId)), f = R(() => d.value?.fields.output.map((
|
|
23544
|
-
function g(
|
|
23543
|
+
} = Kt(), { fieldNameValidator: l } = hn(e.nodeId), c = yn("static"), p = _g(e.nodeId), d = R(() => u(e.nodeId)), f = R(() => d.value?.fields.output.map((S) => S.name) || []);
|
|
23544
|
+
function g(S) {
|
|
23545
23545
|
if (!d.value) throw new Error("No current node");
|
|
23546
|
-
t(d.value.id,
|
|
23546
|
+
t(d.value.id, S ?? "");
|
|
23547
23547
|
}
|
|
23548
23548
|
const h = R(() => {
|
|
23549
23549
|
if (!d.value)
|
|
23550
23550
|
return {};
|
|
23551
|
-
const
|
|
23551
|
+
const S = d.value.config?.values ?? {}, E = {}, x = n(d.value.id).map((j) => j.sourceField).filter(Boolean).map((j) => _i(d.value, "output", j)).map((j) => j?.name).filter(Boolean), C = d.value.fields.output.map((j) => j.name), M = Object.keys(S);
|
|
23552
23552
|
return (/* @__PURE__ */ new Set([
|
|
23553
23553
|
...M,
|
|
23554
|
-
...
|
|
23554
|
+
...x,
|
|
23555
23555
|
...C
|
|
23556
23556
|
])).forEach((j) => {
|
|
23557
|
-
if (j in
|
|
23558
|
-
E[j] =
|
|
23557
|
+
if (j in S) {
|
|
23558
|
+
E[j] = S[j];
|
|
23559
23559
|
return;
|
|
23560
23560
|
}
|
|
23561
23561
|
E[j] = "";
|
|
@@ -23564,45 +23564,45 @@ const SN = /* @__PURE__ */ Oe({
|
|
|
23564
23564
|
values: EN(E)
|
|
23565
23565
|
};
|
|
23566
23566
|
});
|
|
23567
|
-
function v(
|
|
23567
|
+
function v(S, E) {
|
|
23568
23568
|
if (!d.value) throw new Error("No selected node");
|
|
23569
|
-
const
|
|
23570
|
-
if (i(e.nodeId, "output",
|
|
23569
|
+
const x = E !== void 0;
|
|
23570
|
+
if (i(e.nodeId, "output", S, !x), x) {
|
|
23571
23571
|
const C = {
|
|
23572
|
-
values: Ha({ ...h.value.values, [
|
|
23572
|
+
values: Ha({ ...h.value.values, [S]: E })
|
|
23573
23573
|
};
|
|
23574
23574
|
r(e.nodeId, C);
|
|
23575
23575
|
}
|
|
23576
23576
|
}
|
|
23577
|
-
function y(
|
|
23577
|
+
function y(S, E) {
|
|
23578
23578
|
if (!d.value) throw new Error("No selected node");
|
|
23579
|
-
const
|
|
23580
|
-
if (!
|
|
23579
|
+
const x = Ei(d.value, "output", S);
|
|
23580
|
+
if (!x) throw new Error("No field found to rename");
|
|
23581
23581
|
const C = {
|
|
23582
|
-
values: Ha(xN(h.value.values ?? {},
|
|
23582
|
+
values: Ha(xN(h.value.values ?? {}, S, E))
|
|
23583
23583
|
};
|
|
23584
|
-
r(e.nodeId, C, !1), o(e.nodeId,
|
|
23584
|
+
r(e.nodeId, C, !1), o(e.nodeId, x.id, E);
|
|
23585
23585
|
}
|
|
23586
|
-
function _(
|
|
23586
|
+
function _(S) {
|
|
23587
23587
|
if (!d.value) throw new Error("No selected node");
|
|
23588
|
-
const E = Ei(d.value, "output",
|
|
23588
|
+
const E = Ei(d.value, "output", S);
|
|
23589
23589
|
if (!E) throw new Error("No field found to delete");
|
|
23590
23590
|
a(d.value?.id, E.id, !0, !1);
|
|
23591
|
-
const
|
|
23591
|
+
const x = {
|
|
23592
23592
|
values: Ha({ ...h.value.values })
|
|
23593
23593
|
};
|
|
23594
|
-
delete
|
|
23594
|
+
delete x.values[S], r(e.nodeId, x);
|
|
23595
23595
|
}
|
|
23596
|
-
function w(
|
|
23596
|
+
function w(S, E) {
|
|
23597
23597
|
if (!d.value) throw new Error("No selected node");
|
|
23598
|
-
const
|
|
23599
|
-
S
|
|
23598
|
+
const x = { ...h.value.values };
|
|
23599
|
+
x[S] = E;
|
|
23600
23600
|
const C = {
|
|
23601
|
-
values: Ha(
|
|
23601
|
+
values: Ha(x)
|
|
23602
23602
|
};
|
|
23603
23603
|
r(e.nodeId, C);
|
|
23604
23604
|
}
|
|
23605
|
-
return (
|
|
23605
|
+
return (S, E) => (k(), W(Zt, {
|
|
23606
23606
|
ref: "form",
|
|
23607
23607
|
data: h.value,
|
|
23608
23608
|
schema: s(c)
|
|
@@ -23732,11 +23732,11 @@ const SN = /* @__PURE__ */ Oe({
|
|
|
23732
23732
|
toggleNodeValid: h,
|
|
23733
23733
|
fieldNameValidator: v
|
|
23734
23734
|
} = hn(e.nodeId, () => t.value.getValue()), y = R(() => rl(r.value.property));
|
|
23735
|
-
function _(
|
|
23735
|
+
function _(S) {
|
|
23736
23736
|
const E = n.value?.id;
|
|
23737
23737
|
if (!E)
|
|
23738
23738
|
throw new Error("Expected selectedNode to be defined");
|
|
23739
|
-
Zl(
|
|
23739
|
+
Zl(S) || o(E, !1), rl(S) || i(E, !1), l();
|
|
23740
23740
|
}
|
|
23741
23741
|
const {
|
|
23742
23742
|
fields: w
|
|
@@ -23755,7 +23755,7 @@ const SN = /* @__PURE__ */ Oe({
|
|
|
23755
23755
|
}),
|
|
23756
23756
|
toggleNodeValid: h
|
|
23757
23757
|
});
|
|
23758
|
-
return (
|
|
23758
|
+
return (S, E) => (k(), W(Zt, {
|
|
23759
23759
|
ref: "form",
|
|
23760
23760
|
data: s(r),
|
|
23761
23761
|
schema: s(a)
|
|
@@ -23768,16 +23768,16 @@ const SN = /* @__PURE__ */ Oe({
|
|
|
23768
23768
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
23769
23769
|
b(Ot, {
|
|
23770
23770
|
name: "content_type",
|
|
23771
|
-
onUpdate: E[0] || (E[0] = (
|
|
23771
|
+
onUpdate: E[0] || (E[0] = (x) => s(l)())
|
|
23772
23772
|
}),
|
|
23773
23773
|
b(ON, {
|
|
23774
23774
|
validators: s(w),
|
|
23775
23775
|
"onUpdate:modelValue": _,
|
|
23776
|
-
"onUpdate:propertyKey": E[1] || (E[1] = (
|
|
23776
|
+
"onUpdate:propertyKey": E[1] || (E[1] = (x) => s(l)("property-key"))
|
|
23777
23777
|
}, null, 8, ["validators"]),
|
|
23778
23778
|
b(cn, {
|
|
23779
23779
|
name: "non_nil",
|
|
23780
|
-
"onUpdate:modelValue": E[2] || (E[2] = (
|
|
23780
|
+
"onUpdate:modelValue": E[2] || (E[2] = (x) => s(l)("non_nil"))
|
|
23781
23781
|
}),
|
|
23782
23782
|
y.value ? (k(), W(Gn, { key: 0 })) : he("", !0),
|
|
23783
23783
|
y.value ? (k(), W(Cn, {
|
|
@@ -23868,12 +23868,12 @@ function RN(e) {
|
|
|
23868
23868
|
commit: a
|
|
23869
23869
|
} = Kt(), { i18n: { t: r } } = tt(), u = Of(), l = Ql(), c = R(() => {
|
|
23870
23870
|
const _ = { ...t.formData.value }, w = pa(t.currentNode.value?.type || "branch");
|
|
23871
|
-
for (const
|
|
23872
|
-
(!(
|
|
23871
|
+
for (const S of w)
|
|
23872
|
+
(!(S in _) || _[S] == null) && (_[S] = []);
|
|
23873
23873
|
return _;
|
|
23874
23874
|
});
|
|
23875
|
-
function p(_, w,
|
|
23876
|
-
const E = i(_),
|
|
23875
|
+
function p(_, w, S) {
|
|
23876
|
+
const E = i(_), x = i(S), C = E ? `${E.name}.${w}` : `${_}.${w}`, M = x ? x.name : S;
|
|
23877
23877
|
return [C, M];
|
|
23878
23878
|
}
|
|
23879
23879
|
function d(_) {
|
|
@@ -23885,9 +23885,9 @@ function RN(e) {
|
|
|
23885
23885
|
appearance: "danger"
|
|
23886
23886
|
}), !0) : !1;
|
|
23887
23887
|
}
|
|
23888
|
-
function g(_, w,
|
|
23889
|
-
const E = [],
|
|
23890
|
-
for (const M of
|
|
23888
|
+
function g(_, w, S) {
|
|
23889
|
+
const E = [], x = [], C = [];
|
|
23890
|
+
for (const M of S) {
|
|
23891
23891
|
const N = o.findMembership(M);
|
|
23892
23892
|
if (!N || N.ownerId === _ && N.branch === w)
|
|
23893
23893
|
continue;
|
|
@@ -23896,26 +23896,26 @@ function RN(e) {
|
|
|
23896
23896
|
ownerId: N.ownerId,
|
|
23897
23897
|
branch: N.branch,
|
|
23898
23898
|
members: j
|
|
23899
|
-
}), E.push(p(_, w, M)),
|
|
23899
|
+
}), E.push(p(_, w, M)), x.push(p(N.ownerId, N.branch, M));
|
|
23900
23900
|
}
|
|
23901
|
-
return { conflictUpdates: C, addedAssignments: E, removedAssignments:
|
|
23901
|
+
return { conflictUpdates: C, addedAssignments: E, removedAssignments: x };
|
|
23902
23902
|
}
|
|
23903
|
-
function h(_, w,
|
|
23904
|
-
let
|
|
23903
|
+
function h(_, w, S, E) {
|
|
23904
|
+
let x = !1;
|
|
23905
23905
|
for (const C of E)
|
|
23906
|
-
|
|
23907
|
-
return
|
|
23906
|
+
x = o.setMembers(C.ownerId, C.branch, C.members, { commit: !1 }) || x;
|
|
23907
|
+
return x = o.setMembers(_, w, S, { commit: !1 }) || x, x;
|
|
23908
23908
|
}
|
|
23909
23909
|
async function v(_, w) {
|
|
23910
|
-
const
|
|
23911
|
-
if (sl(C,
|
|
23910
|
+
const S = t.currentNode.value, E = d(w), x = o.prepareMembers(S.id, _, E), C = o.getMembers(S.id, _);
|
|
23911
|
+
if (sl(C, x))
|
|
23912
23912
|
return !0;
|
|
23913
|
-
const M =
|
|
23913
|
+
const M = x.filter((O) => !C.includes(O));
|
|
23914
23914
|
for (const O of M)
|
|
23915
|
-
if (f(
|
|
23915
|
+
if (f(S.id, O))
|
|
23916
23916
|
return !1;
|
|
23917
23917
|
const { conflictUpdates: N, addedAssignments: j, removedAssignments: P } = g(
|
|
23918
|
-
|
|
23918
|
+
S.id,
|
|
23919
23919
|
_,
|
|
23920
23920
|
M
|
|
23921
23921
|
);
|
|
@@ -23923,7 +23923,7 @@ function RN(e) {
|
|
|
23923
23923
|
r("plugins.free-form.datakit.flow_editor.confirm.message.branch_replace"),
|
|
23924
23924
|
j,
|
|
23925
23925
|
P
|
|
23926
|
-
) ? !1 : (h(
|
|
23926
|
+
) ? !1 : (h(S.id, _, x, N) && a(), !0);
|
|
23927
23927
|
}
|
|
23928
23928
|
const y = R(() => {
|
|
23929
23929
|
const _ = t.currentNode.value;
|
|
@@ -24130,7 +24130,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24130
24130
|
xpath: o.value.xpath
|
|
24131
24131
|
}),
|
|
24132
24132
|
toggleNodeValid: f
|
|
24133
|
-
}), _ = y("attributes_block_name", () => r("attributes_block_name")), w = y("attributes_name_prefix", () => r("attributes_name_prefix")),
|
|
24133
|
+
}), _ = y("attributes_block_name", () => r("attributes_block_name")), w = y("attributes_name_prefix", () => r("attributes_name_prefix")), S = y("text_block_name", () => r("text_block_name")), E = y("xpath", () => r("xpath")), x = () => {
|
|
24134
24134
|
_.value.validate(), w.value.validate();
|
|
24135
24135
|
}, C = () => {
|
|
24136
24136
|
_.value.update(), w.value.validate();
|
|
@@ -24162,22 +24162,22 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24162
24162
|
error: s(_).error,
|
|
24163
24163
|
"error-message": s(_).errorMessage,
|
|
24164
24164
|
name: "attributes_block_name",
|
|
24165
|
-
onBlur:
|
|
24165
|
+
onBlur: x,
|
|
24166
24166
|
"onUpdate:modelValue": C
|
|
24167
24167
|
}, null, 8, ["error", "error-message"]),
|
|
24168
24168
|
b(Je, {
|
|
24169
24169
|
error: s(w).error,
|
|
24170
24170
|
"error-message": s(w).errorMessage,
|
|
24171
24171
|
name: "attributes_name_prefix",
|
|
24172
|
-
onBlur:
|
|
24172
|
+
onBlur: x,
|
|
24173
24173
|
"onUpdate:modelValue": M
|
|
24174
24174
|
}, null, 8, ["error", "error-message"]),
|
|
24175
24175
|
b(Je, {
|
|
24176
|
-
error: s(
|
|
24177
|
-
"error-message": s(
|
|
24176
|
+
error: s(S).error,
|
|
24177
|
+
"error-message": s(S).errorMessage,
|
|
24178
24178
|
name: "text_block_name",
|
|
24179
|
-
onBlur: s(
|
|
24180
|
-
"onUpdate:modelValue": s(
|
|
24179
|
+
onBlur: s(S).validate,
|
|
24180
|
+
"onUpdate:modelValue": s(S).update
|
|
24181
24181
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
24182
24182
|
b(cn, {
|
|
24183
24183
|
name: "text_as_property",
|
|
@@ -24225,7 +24225,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24225
24225
|
nameValidator: h,
|
|
24226
24226
|
toggleNodeValid: v,
|
|
24227
24227
|
fieldNameValidator: y
|
|
24228
|
-
} = hn(e.nodeId, () => t.value.getValue()), _ = i("plugins.free-form.datakit.flow_editor.node_properties.errors.attributes_required"), w = () => !!(o.value.attributes_block_name || o.value.attributes_name_prefix), { createFieldHandler:
|
|
24228
|
+
} = hn(e.nodeId, () => t.value.getValue()), _ = i("plugins.free-form.datakit.flow_editor.node_properties.errors.attributes_required"), w = () => !!(o.value.attributes_block_name || o.value.attributes_name_prefix), { createFieldHandler: S } = fi({
|
|
24229
24229
|
validationConfig: {
|
|
24230
24230
|
attributes_block_name: mn(
|
|
24231
24231
|
() => w() ? void 0 : _,
|
|
@@ -24245,15 +24245,15 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24245
24245
|
text_block_name: o.value.text_block_name
|
|
24246
24246
|
}),
|
|
24247
24247
|
toggleNodeValid: v
|
|
24248
|
-
}), E =
|
|
24248
|
+
}), E = S("attributes_block_name", () => r("attributes_block_name")), x = S("attributes_name_prefix", () => r("attributes_name_prefix")), C = S("root_element_name", () => r("root_element_name")), M = S("text_block_name", () => r("text_block_name"));
|
|
24249
24249
|
function N() {
|
|
24250
|
-
E.value.validate(),
|
|
24250
|
+
E.value.validate(), x.value.validate();
|
|
24251
24251
|
}
|
|
24252
24252
|
function j() {
|
|
24253
|
-
E.value.update(),
|
|
24253
|
+
E.value.update(), x.value.validate();
|
|
24254
24254
|
}
|
|
24255
24255
|
function P() {
|
|
24256
|
-
|
|
24256
|
+
x.value.update(), E.value.validate();
|
|
24257
24257
|
}
|
|
24258
24258
|
function I(F, Z) {
|
|
24259
24259
|
p("input", F, Z);
|
|
@@ -24289,8 +24289,8 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24289
24289
|
"onUpdate:modelValue": j
|
|
24290
24290
|
}, null, 8, ["error", "error-message"]),
|
|
24291
24291
|
b(Je, {
|
|
24292
|
-
error: s(
|
|
24293
|
-
"error-message": s(
|
|
24292
|
+
error: s(x).error,
|
|
24293
|
+
"error-message": s(x).errorMessage,
|
|
24294
24294
|
name: "attributes_name_prefix",
|
|
24295
24295
|
onBlur: N,
|
|
24296
24296
|
"onUpdate:modelValue": P
|
|
@@ -24406,7 +24406,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24406
24406
|
}),
|
|
24407
24407
|
toggleNodeValid: f
|
|
24408
24408
|
}), v = h("algorithm", () => r("algorithm")), y = h("expires_in", () => r("expires_in")), _ = h("not_before", () => r("not_before"));
|
|
24409
|
-
return (w,
|
|
24409
|
+
return (w, S) => (k(), W(Zt, {
|
|
24410
24410
|
ref: "form",
|
|
24411
24411
|
data: s(o),
|
|
24412
24412
|
schema: s(n)
|
|
@@ -24444,16 +24444,16 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24444
24444
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
24445
24445
|
b(Je, {
|
|
24446
24446
|
name: "kid",
|
|
24447
|
-
"onUpdate:modelValue":
|
|
24447
|
+
"onUpdate:modelValue": S[0] || (S[0] = (E) => s(r)("kid"))
|
|
24448
24448
|
}),
|
|
24449
24449
|
b(Je, {
|
|
24450
24450
|
name: "typ",
|
|
24451
|
-
"onUpdate:modelValue":
|
|
24451
|
+
"onUpdate:modelValue": S[1] || (S[1] = (E) => s(r)("typ"))
|
|
24452
24452
|
}),
|
|
24453
24453
|
b(kn, {
|
|
24454
24454
|
label: s(i)("plugins.free-form.datakit.flow_editor.node_properties.jwt.static_claims.label"),
|
|
24455
24455
|
name: "static_claims",
|
|
24456
|
-
onLegacyValueChange:
|
|
24456
|
+
onLegacyValueChange: S[2] || (S[2] = (E) => s(r)("static_claims"))
|
|
24457
24457
|
}, null, 8, ["label"]),
|
|
24458
24458
|
b(Gn),
|
|
24459
24459
|
b(Cn, {
|
|
@@ -24527,9 +24527,9 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24527
24527
|
onAdd: _[2] || (_[2] = (w) => s(r)("issuers")),
|
|
24528
24528
|
onRemove: _[3] || (_[3] = (w) => s(r)("issuers"))
|
|
24529
24529
|
}, {
|
|
24530
|
-
item: $(({ fieldName: w, autofocus:
|
|
24530
|
+
item: $(({ fieldName: w, autofocus: S }) => [
|
|
24531
24531
|
b(Je, {
|
|
24532
|
-
autofocus:
|
|
24532
|
+
autofocus: S,
|
|
24533
24533
|
name: w,
|
|
24534
24534
|
"onUpdate:modelValue": _[1] || (_[1] = (E) => s(r)("issuers"))
|
|
24535
24535
|
}, null, 8, ["autofocus", "name"])
|
|
@@ -24541,9 +24541,9 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24541
24541
|
onAdd: _[5] || (_[5] = (w) => s(r)("audiences")),
|
|
24542
24542
|
onRemove: _[6] || (_[6] = (w) => s(r)("audiences"))
|
|
24543
24543
|
}, {
|
|
24544
|
-
item: $(({ fieldName: w, autofocus:
|
|
24544
|
+
item: $(({ fieldName: w, autofocus: S }) => [
|
|
24545
24545
|
b(Je, {
|
|
24546
|
-
autofocus:
|
|
24546
|
+
autofocus: S,
|
|
24547
24547
|
name: w,
|
|
24548
24548
|
"onUpdate:modelValue": _[4] || (_[4] = (E) => s(r)("audiences"))
|
|
24549
24549
|
}, null, 8, ["autofocus", "name"])
|
|
@@ -24555,9 +24555,9 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24555
24555
|
onAdd: _[8] || (_[8] = (w) => s(r)("required_claims")),
|
|
24556
24556
|
onRemove: _[9] || (_[9] = (w) => s(r)("required_claims"))
|
|
24557
24557
|
}, {
|
|
24558
|
-
item: $(({ fieldName: w, autofocus:
|
|
24558
|
+
item: $(({ fieldName: w, autofocus: S }) => [
|
|
24559
24559
|
b(Je, {
|
|
24560
|
-
autofocus:
|
|
24560
|
+
autofocus: S,
|
|
24561
24561
|
name: w,
|
|
24562
24562
|
"onUpdate:modelValue": _[7] || (_[7] = (E) => s(r)("required_claims"))
|
|
24563
24563
|
}, null, 8, ["autofocus", "name"])
|
|
@@ -24868,7 +24868,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24868
24868
|
flow: sh,
|
|
24869
24869
|
code: Al
|
|
24870
24870
|
}, p = fe(!0), d = fe(""), f = R(() => {
|
|
24871
|
-
const
|
|
24871
|
+
const x = [
|
|
24872
24872
|
{
|
|
24873
24873
|
label: t("plugins.free-form.datakit.flow_editor.mode"),
|
|
24874
24874
|
value: "flow"
|
|
@@ -24878,7 +24878,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24878
24878
|
value: "code"
|
|
24879
24879
|
}
|
|
24880
24880
|
];
|
|
24881
|
-
return
|
|
24881
|
+
return x[0].disabled = !p.value, x;
|
|
24882
24882
|
}), g = R(() => {
|
|
24883
24883
|
switch (u.value) {
|
|
24884
24884
|
case "code":
|
|
@@ -24891,7 +24891,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24891
24891
|
}), h = R(() => p.value ? "" : t("plugins.free-form.datakit.flow_editor.disabled_tooltip", {
|
|
24892
24892
|
reason: d.value,
|
|
24893
24893
|
// @ts-ignore MessageFormatPrimitiveValue should have function type
|
|
24894
|
-
code: (
|
|
24894
|
+
code: (x) => `<code>${r1(x)}</code>`
|
|
24895
24895
|
}));
|
|
24896
24896
|
Ye(u, () => {
|
|
24897
24897
|
n.onValidityChange?.({
|
|
@@ -24908,30 +24908,30 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24908
24908
|
function y() {
|
|
24909
24909
|
v();
|
|
24910
24910
|
}
|
|
24911
|
-
function _(
|
|
24912
|
-
return
|
|
24913
|
-
(C) => typeof C == "number" ? `[${C}]` :
|
|
24911
|
+
function _(x) {
|
|
24912
|
+
return x.map(
|
|
24913
|
+
(C) => typeof C == "number" ? `[${C}]` : x.length && typeof C == "string" && C.includes(".") ? `["${C}"]` : `.${C}`
|
|
24914
24914
|
).join("").replace(/^\./, "");
|
|
24915
24915
|
}
|
|
24916
|
-
function w(
|
|
24917
|
-
return
|
|
24916
|
+
function w(x) {
|
|
24917
|
+
return x.issues.map(
|
|
24918
24918
|
(C) => `${_(C.path)} - ${C.message}`
|
|
24919
24919
|
).join("; ");
|
|
24920
24920
|
}
|
|
24921
|
-
function x
|
|
24921
|
+
function S(x) {
|
|
24922
24922
|
if (v(), o.app !== "konnect")
|
|
24923
24923
|
return;
|
|
24924
|
-
const C =
|
|
24924
|
+
const C = x?.config, { success: M, error: N } = hg.safeParse(C);
|
|
24925
24925
|
d.value = M || !N ? "" : w(N), p.value = M;
|
|
24926
24926
|
}
|
|
24927
|
-
function E(
|
|
24928
|
-
d.value =
|
|
24927
|
+
function E(x) {
|
|
24928
|
+
d.value = x, p.value = !1, n.onValidityChange?.({
|
|
24929
24929
|
model: "config",
|
|
24930
24930
|
valid: !1,
|
|
24931
|
-
error:
|
|
24931
|
+
error: x
|
|
24932
24932
|
});
|
|
24933
24933
|
}
|
|
24934
|
-
return (
|
|
24934
|
+
return (x, C) => (k(), Q(ze, null, [
|
|
24935
24935
|
s(o).app === "konnect" ? (k(), W(Er, {
|
|
24936
24936
|
key: 0,
|
|
24937
24937
|
disabled: !a.value,
|
|
@@ -24971,7 +24971,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
24971
24971
|
b(A$, {
|
|
24972
24972
|
class: "code-editor",
|
|
24973
24973
|
editing: n.isEditing,
|
|
24974
|
-
onChange:
|
|
24974
|
+
onChange: S,
|
|
24975
24975
|
onError: E
|
|
24976
24976
|
}, null, 8, ["editing"])
|
|
24977
24977
|
]),
|
|
@@ -26225,7 +26225,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
26225
26225
|
}), n.config.limit = [y.config.limit], n.config.window_size = [y.config.window_size];
|
|
26226
26226
|
};
|
|
26227
26227
|
return (y, _) => {
|
|
26228
|
-
const w = ke("KLabel"),
|
|
26228
|
+
const w = ke("KLabel"), S = ke("KButton"), E = ke("KBadge"), x = ke("KTooltip"), C = ke("KCard");
|
|
26229
26229
|
return k(), W(C, { class: "rla-form-request-limits" }, {
|
|
26230
26230
|
title: $(() => [
|
|
26231
26231
|
b(w, {
|
|
@@ -26279,7 +26279,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
26279
26279
|
G("div", null, ee(s(t)("sp.request_limits.seconds")), 1)
|
|
26280
26280
|
], 8, V2),
|
|
26281
26281
|
G("div", z2, [
|
|
26282
|
-
b(
|
|
26282
|
+
b(S, {
|
|
26283
26283
|
appearance: "tertiary",
|
|
26284
26284
|
disabled: a.value.length <= 1,
|
|
26285
26285
|
onClick: () => l(N)
|
|
@@ -26289,7 +26289,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
26289
26289
|
]),
|
|
26290
26290
|
_: 1
|
|
26291
26291
|
}, 8, ["disabled", "onClick"]),
|
|
26292
|
-
b(
|
|
26292
|
+
b(S, {
|
|
26293
26293
|
appearance: "tertiary",
|
|
26294
26294
|
onClick: () => u(N)
|
|
26295
26295
|
}, {
|
|
@@ -26305,7 +26305,7 @@ const MN = /* @__PURE__ */ Oe({
|
|
|
26305
26305
|
h.value.length > 0 ? (k(), Q("div", G2, [
|
|
26306
26306
|
G("div", null, ee(s(t)("sp.start_with_a_use_case")), 1),
|
|
26307
26307
|
G("div", H2, [
|
|
26308
|
-
(k(!0), Q(ze, null, Qe(h.value, (M, N) => (k(), W(
|
|
26308
|
+
(k(!0), Q(ze, null, Qe(h.value, (M, N) => (k(), W(x, {
|
|
26309
26309
|
key: `use-case-${N}`,
|
|
26310
26310
|
"max-width": "300"
|
|
26311
26311
|
}, {
|
|
@@ -26884,7 +26884,7 @@ const ia = "_callout_id", rM = /* @__PURE__ */ Oe({
|
|
|
26884
26884
|
}), n.config.limit = [y.config.limit], n.config.window_size = [y.config.window_size];
|
|
26885
26885
|
};
|
|
26886
26886
|
return (y, _) => {
|
|
26887
|
-
const w = ke("KLabel"),
|
|
26887
|
+
const w = ke("KLabel"), S = ke("KButton"), E = ke("KBadge"), x = ke("KTooltip"), C = ke("KCard");
|
|
26888
26888
|
return k(), W(C, { class: "sp-form-request-limits" }, {
|
|
26889
26889
|
title: $(() => [
|
|
26890
26890
|
b(w, {
|
|
@@ -26938,7 +26938,7 @@ const ia = "_callout_id", rM = /* @__PURE__ */ Oe({
|
|
|
26938
26938
|
G("div", null, ee(s(t)("sp.request_limits.seconds")), 1)
|
|
26939
26939
|
], 8, AM),
|
|
26940
26940
|
G("div", TM, [
|
|
26941
|
-
b(
|
|
26941
|
+
b(S, {
|
|
26942
26942
|
appearance: "tertiary",
|
|
26943
26943
|
disabled: a.value.length <= 1,
|
|
26944
26944
|
onClick: () => l(N)
|
|
@@ -26948,7 +26948,7 @@ const ia = "_callout_id", rM = /* @__PURE__ */ Oe({
|
|
|
26948
26948
|
]),
|
|
26949
26949
|
_: 1
|
|
26950
26950
|
}, 8, ["disabled", "onClick"]),
|
|
26951
|
-
b(
|
|
26951
|
+
b(S, {
|
|
26952
26952
|
appearance: "tertiary",
|
|
26953
26953
|
onClick: () => u(N)
|
|
26954
26954
|
}, {
|
|
@@ -26964,7 +26964,7 @@ const ia = "_callout_id", rM = /* @__PURE__ */ Oe({
|
|
|
26964
26964
|
h.value.length > 0 ? (k(), Q("div", $M, [
|
|
26965
26965
|
G("div", null, ee(s(t)("sp.start_with_a_use_case")), 1),
|
|
26966
26966
|
G("div", OM, [
|
|
26967
|
-
(k(!0), Q(ze, null, Qe(h.value, (M, N) => (k(), W(
|
|
26967
|
+
(k(!0), Q(ze, null, Qe(h.value, (M, N) => (k(), W(x, {
|
|
26968
26968
|
key: `use-case-${N}`,
|
|
26969
26969
|
"max-width": "300"
|
|
26970
26970
|
}, {
|
|
@@ -27881,7 +27881,7 @@ const Sg = (e) => {
|
|
|
27881
27881
|
M[P] = I ? N[P].default : null;
|
|
27882
27882
|
}), delete M[j];
|
|
27883
27883
|
});
|
|
27884
|
-
},
|
|
27884
|
+
}, S = (C, M) => C.inputType === "hidden" ? "" : n(C.label || M.replace(/_/g, " ")), E = (C, M) => {
|
|
27885
27885
|
switch (w(C, M), C.type) {
|
|
27886
27886
|
case "foreign":
|
|
27887
27887
|
f(C, M);
|
|
@@ -27902,16 +27902,16 @@ const Sg = (e) => {
|
|
|
27902
27902
|
y(C);
|
|
27903
27903
|
break;
|
|
27904
27904
|
}
|
|
27905
|
-
C.inputType === "foreign" && f(C, M), C.label =
|
|
27905
|
+
C.inputType === "foreign" && f(C, M), C.label = S(C, C.model);
|
|
27906
27906
|
};
|
|
27907
|
-
function
|
|
27907
|
+
function x(C, M) {
|
|
27908
27908
|
if (M == null || M.type && M.type !== "record" || typeof C != "object" || C == null)
|
|
27909
27909
|
return C;
|
|
27910
27910
|
const N = {};
|
|
27911
27911
|
for (const j of M.fields) {
|
|
27912
27912
|
const P = Object.keys(j)[0], I = j[P];
|
|
27913
|
-
I.type === "record" ? N[P] =
|
|
27914
|
-
(O) =>
|
|
27913
|
+
I.type === "record" ? N[P] = x(C[P], I) : I.type === "array" && Array.isArray(C[P]) && I.elements.type === "record" ? N[P] = C[P].map(
|
|
27914
|
+
(O) => x(O, I.elements)
|
|
27915
27915
|
) : N[P] = C[P];
|
|
27916
27916
|
}
|
|
27917
27917
|
return N;
|
|
@@ -27921,7 +27921,7 @@ const Sg = (e) => {
|
|
|
27921
27921
|
parseSchema: u,
|
|
27922
27922
|
customSchemas: a,
|
|
27923
27923
|
typedefs: ko,
|
|
27924
|
-
pruneRecord:
|
|
27924
|
+
pruneRecord: x
|
|
27925
27925
|
};
|
|
27926
27926
|
}, Wa = /* @__PURE__ */ Symbol("customPluginType"), _L = 1e3, bL = 20, Fd = 5e3, Kd = (e, t = _L) => {
|
|
27927
27927
|
const n = /^[a-z][a-z\d+.-]*:/i.test(e), i = new URL(e, "http://localhost");
|
|
@@ -27953,8 +27953,8 @@ function wL(e) {
|
|
|
27953
27953
|
return w;
|
|
27954
27954
|
}, u = async (y, _) => {
|
|
27955
27955
|
i();
|
|
27956
|
-
const w = o(ot.customPlugin.konnect.installed.edit, y), { data:
|
|
27957
|
-
return
|
|
27956
|
+
const w = o(ot.customPlugin.konnect.installed.edit, y), { data: S } = await t.put(w, _);
|
|
27957
|
+
return S;
|
|
27958
27958
|
}, l = async (y) => {
|
|
27959
27959
|
const _ = o(ot.customPlugin[e.app].streamed.edit, y), { data: w } = await t.get(_);
|
|
27960
27960
|
return w;
|
|
@@ -27962,19 +27962,19 @@ function wL(e) {
|
|
|
27962
27962
|
const _ = o(ot.customPlugin[e.app].streamed.create), { data: w } = await t.post(_, y);
|
|
27963
27963
|
return w;
|
|
27964
27964
|
}, p = async (y, _) => {
|
|
27965
|
-
const w = o(ot.customPlugin[e.app].streamed.edit, y),
|
|
27965
|
+
const w = o(ot.customPlugin[e.app].streamed.edit, y), S = e.app === "konnect" ? "put" : "patch", { data: E } = await t[S](w, _);
|
|
27966
27966
|
return E;
|
|
27967
27967
|
}, d = async (y) => {
|
|
27968
|
-
const { aliasName: _, priority: w, sourcePlugin:
|
|
27968
|
+
const { aliasName: _, priority: w, sourcePlugin: S } = y, E = o(ot.customPlugin[e.app].cloned.create), { data: x } = await t.post(E, {
|
|
27969
27969
|
name: _,
|
|
27970
|
-
ref:
|
|
27970
|
+
ref: S,
|
|
27971
27971
|
priority: w
|
|
27972
27972
|
});
|
|
27973
|
-
return
|
|
27973
|
+
return x;
|
|
27974
27974
|
}, f = async (y, _) => {
|
|
27975
|
-
const { aliasName: w, priority:
|
|
27975
|
+
const { aliasName: w, priority: S, sourcePlugin: E } = _, x = o(ot.customPlugin[e.app].cloned.edit, y), C = e.app === "konnect" ? "put" : "patch", { data: M } = await t[C](x, {
|
|
27976
27976
|
ref: E,
|
|
27977
|
-
priority:
|
|
27977
|
+
priority: S,
|
|
27978
27978
|
name: w
|
|
27979
27979
|
});
|
|
27980
27980
|
return M;
|
|
@@ -28095,10 +28095,10 @@ const st = {
|
|
|
28095
28095
|
workspace: o.config.workspace
|
|
28096
28096
|
});
|
|
28097
28097
|
Mt(Pl, fe(!0));
|
|
28098
|
-
const
|
|
28098
|
+
const S = fe(null), E = (se, le) => {
|
|
28099
28099
|
const xe = o.config.workspace ?? "", qe = o.config.app === "konnect" ? o.config.controlPlaneId : "";
|
|
28100
28100
|
return `${o.config.apiBaseUrl}${se}`.replace(/{controlPlaneId}/gi, qe).replace(/{pluginId}/gi, le ?? "").replace(/\/\{workspace\}/gi, xe ? `/${xe}` : "");
|
|
28101
|
-
},
|
|
28101
|
+
}, x = R(() => {
|
|
28102
28102
|
const se = K.fields.pluginType;
|
|
28103
28103
|
if (!se) return "";
|
|
28104
28104
|
const le = j.value ? o.pluginName : void 0, xe = le ? "edit" : "create";
|
|
@@ -28294,7 +28294,7 @@ const st = {
|
|
|
28294
28294
|
return k(), Q("div", kL, [
|
|
28295
28295
|
b(s(np), {
|
|
28296
28296
|
ref_key: "entityBaseFormRef",
|
|
28297
|
-
ref:
|
|
28297
|
+
ref: S,
|
|
28298
28298
|
"can-submit": q.value,
|
|
28299
28299
|
config: e.config,
|
|
28300
28300
|
"entity-type": s(Yn).Plugin,
|
|
@@ -28302,7 +28302,7 @@ const st = {
|
|
|
28302
28302
|
"form-fields": N.value,
|
|
28303
28303
|
"is-readonly": K.readonly,
|
|
28304
28304
|
"slideout-deck-entity-type": M.value,
|
|
28305
|
-
"slideout-fetch-url":
|
|
28305
|
+
"slideout-fetch-url": x.value,
|
|
28306
28306
|
"slideout-request-method": C.value,
|
|
28307
28307
|
onCancel: re,
|
|
28308
28308
|
onSubmit: ve
|
|
@@ -28334,7 +28334,7 @@ const st = {
|
|
|
28334
28334
|
b(Ae, {
|
|
28335
28335
|
appearance: "tertiary",
|
|
28336
28336
|
"data-testid": "custom-plugin-form-view-configuration",
|
|
28337
|
-
onClick: le[14] || (le[14] = (ie) =>
|
|
28337
|
+
onClick: le[14] || (le[14] = (ie) => S.value?.viewConfig())
|
|
28338
28338
|
}, {
|
|
28339
28339
|
default: $(() => [
|
|
28340
28340
|
Pe(ee(s(r)("actions.view_configuration")), 1)
|
|
@@ -29060,10 +29060,10 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
29060
29060
|
experimentalRenders: i.config.app === "konnect" ? i.config.experimentalRenders : void 0
|
|
29061
29061
|
}), { convertToDotNotation: c, unFlattenObject: p, dismissField: d, isObjectEmpty: f, unsetNullForeignKey: g } = st.usePluginHelpers(), { shouldUseFreeForm: h, getFreeFormComponent: v } = st.useFreeFormResolver(), y = ut(Pl), _ = (Ke) => {
|
|
29062
29062
|
y && (y.value = Ke);
|
|
29063
|
-
}, { objectsAreEqual: w } = wa(), { i18n: { t:
|
|
29063
|
+
}, { objectsAreEqual: w } = wa(), { i18n: { t: S } } = tt(), E = (Ke) => {
|
|
29064
29064
|
let Re = Ke;
|
|
29065
29065
|
return i.config.app === "konnect" && (Re = Re.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "")), Re.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "");
|
|
29066
|
-
},
|
|
29066
|
+
}, x = (Ke, Re) => {
|
|
29067
29067
|
let Ae = `${i.config.apiBaseUrl}${ot.form[i.config.app].entityGetOne}`;
|
|
29068
29068
|
return Ae = E(Ae), Ae = Ae.replace(/{entity}/gi, Ke), Ae = Ae.replace(/{id}/gi, Re), Ae;
|
|
29069
29069
|
}, C = (Ke) => {
|
|
@@ -29072,7 +29072,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
29072
29072
|
};
|
|
29073
29073
|
Mt(ap, {
|
|
29074
29074
|
getOne: (Ke, Re, Ae) => {
|
|
29075
|
-
const ie =
|
|
29075
|
+
const ie = x(Ke, Re);
|
|
29076
29076
|
return u.get(ie, Ae);
|
|
29077
29077
|
},
|
|
29078
29078
|
getAll: (Ke, Re) => {
|
|
@@ -29431,7 +29431,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
29431
29431
|
onShowNewPartialModal: Re[5] || (Re[5] = (ie) => Ke.$emit("showNewPartialModal", ie))
|
|
29432
29432
|
}, bt({
|
|
29433
29433
|
"plugin-config-empty-state": $(() => [
|
|
29434
|
-
G("div", bF, ee(s(
|
|
29434
|
+
G("div", bF, ee(s(S)("plugins.form.grouping.plugin_configuration.empty")), 1)
|
|
29435
29435
|
]),
|
|
29436
29436
|
_: 2
|
|
29437
29437
|
}, [
|
|
@@ -29603,7 +29603,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
29603
29603
|
app: r.config.app,
|
|
29604
29604
|
workspace: r.config.workspace,
|
|
29605
29605
|
controlPlaneId: r.config.controlPlaneId
|
|
29606
|
-
}), w = fe(!1),
|
|
29606
|
+
}), w = fe(!1), S = R(() => !!r.pluginId), E = R(() => r.pluginId ? Si.Edit : Si.Create), x = fe(void 0), C = fe(void 0), M = R(() => !!(r.credential && r.config.entityId)), N = fe(void 0), j = fe({}), P = fe(), I = fe(), O = ut(ui.KM_2503_CUSTOM_PLUGIN_FREEFORM, !1), L = fe(null), F = R(() => L.value !== null), Z = R(
|
|
29607
29607
|
() => F.value && L.value ? L.value : r.pluginType
|
|
29608
29608
|
), U = R(() => {
|
|
29609
29609
|
if (r.engine) return r.engine;
|
|
@@ -29613,7 +29613,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
29613
29613
|
Mt(Do, {
|
|
29614
29614
|
redisType: P,
|
|
29615
29615
|
redisPath: I,
|
|
29616
|
-
isEditing:
|
|
29616
|
+
isEditing: S.value
|
|
29617
29617
|
});
|
|
29618
29618
|
const D = [];
|
|
29619
29619
|
Mt(ig, (de) => (D.push(de), () => {
|
|
@@ -30128,7 +30128,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30128
30128
|
ye,
|
|
30129
30129
|
de ? Ce(r.pluginType) : Promise.resolve()
|
|
30130
30130
|
]);
|
|
30131
|
-
if (
|
|
30131
|
+
if (x.value = B, B)
|
|
30132
30132
|
if (M.value)
|
|
30133
30133
|
C.value = Ue("", B, {}), ae.value = !1;
|
|
30134
30134
|
else {
|
|
@@ -30208,7 +30208,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30208
30208
|
e.hideViewConfigAction ? he("", !0) : (k(), W(be, {
|
|
30209
30209
|
key: 0,
|
|
30210
30210
|
appearance: "tertiary",
|
|
30211
|
-
"data-testid": `plugin-${
|
|
30211
|
+
"data-testid": `plugin-${S.value ? "edit" : "create"}-form-view-configuration`,
|
|
30212
30212
|
onClick: ye[5] || (ye[5] = (je) => se())
|
|
30213
30213
|
}, {
|
|
30214
30214
|
default: $(() => [
|
|
@@ -30219,7 +30219,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30219
30219
|
b(be, {
|
|
30220
30220
|
appearance: "secondary",
|
|
30221
30221
|
class: "form-action-button",
|
|
30222
|
-
"data-testid": `plugin-${
|
|
30222
|
+
"data-testid": `plugin-${S.value ? "edit" : "create"}-form-cancel`,
|
|
30223
30223
|
disabled: A.isReadonly,
|
|
30224
30224
|
onClick: we
|
|
30225
30225
|
}, {
|
|
@@ -30230,7 +30230,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30230
30230
|
}, 8, ["data-testid", "disabled"]),
|
|
30231
30231
|
b(be, {
|
|
30232
30232
|
appearance: "primary",
|
|
30233
|
-
"data-testid": `plugin-${
|
|
30233
|
+
"data-testid": `plugin-${S.value ? "edit" : "create"}-form-submit`,
|
|
30234
30234
|
disabled: !lt.value || A.isReadonly,
|
|
30235
30235
|
type: "submit",
|
|
30236
30236
|
onClick: pe
|
|
@@ -30259,7 +30259,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30259
30259
|
"enable-vault-secret-picker": r.enableVaultSecretPicker,
|
|
30260
30260
|
engine: U.value,
|
|
30261
30261
|
"entity-map": le.value,
|
|
30262
|
-
"raw-schema":
|
|
30262
|
+
"raw-schema": x.value,
|
|
30263
30263
|
record: N.value,
|
|
30264
30264
|
schema: C.value,
|
|
30265
30265
|
"onClick:createEntity": ye[0] || (ye[0] = (je) => de.$emit("click:create-entity", je)),
|
|
@@ -30378,7 +30378,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30378
30378
|
u.value?.input?.focus();
|
|
30379
30379
|
}, w = () => {
|
|
30380
30380
|
l.value?.input?.focus();
|
|
30381
|
-
},
|
|
30381
|
+
}, S = () => {
|
|
30382
30382
|
a.value = "", _();
|
|
30383
30383
|
}, E = () => {
|
|
30384
30384
|
const I = g.value;
|
|
@@ -30387,7 +30387,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30387
30387
|
return;
|
|
30388
30388
|
}
|
|
30389
30389
|
h.value.includes(I) || h.value.push(I), g.value = "", w();
|
|
30390
|
-
},
|
|
30390
|
+
}, x = (I) => {
|
|
30391
30391
|
h.value = h.value.filter((O) => O !== I);
|
|
30392
30392
|
}, C = R(() => ({
|
|
30393
30393
|
...i.value ? {} : {
|
|
@@ -30496,10 +30496,10 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30496
30496
|
class: "plugin-search-clear",
|
|
30497
30497
|
role: "button",
|
|
30498
30498
|
tabindex: "0",
|
|
30499
|
-
onClick:
|
|
30499
|
+
onClick: S,
|
|
30500
30500
|
onKeydown: [
|
|
30501
|
-
ii(Et(
|
|
30502
|
-
ii(Et(
|
|
30501
|
+
ii(Et(S, ["prevent"]), ["enter"]),
|
|
30502
|
+
ii(Et(S, ["prevent"]), ["space"])
|
|
30503
30503
|
]
|
|
30504
30504
|
}, null, 8, ["onKeydown"]), [
|
|
30505
30505
|
[Gt, a.value !== ""]
|
|
@@ -30553,10 +30553,10 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30553
30553
|
"data-testid": "tags-filter-remove-tag",
|
|
30554
30554
|
role: "button",
|
|
30555
30555
|
tabindex: "0",
|
|
30556
|
-
onClick: (H) =>
|
|
30556
|
+
onClick: (H) => x(D),
|
|
30557
30557
|
onKeydown: [
|
|
30558
|
-
ii(Et((H) =>
|
|
30559
|
-
ii(Et((H) =>
|
|
30558
|
+
ii(Et((H) => x(D), ["prevent"]), ["enter"]),
|
|
30559
|
+
ii(Et((H) => x(D), ["prevent"]), ["space"])
|
|
30560
30560
|
]
|
|
30561
30561
|
}, null, 8, ["onClick", "onKeydown"])
|
|
30562
30562
|
]),
|
|
@@ -30699,10 +30699,10 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30699
30699
|
}
|
|
30700
30700
|
};
|
|
30701
30701
|
y.value && (w.instanceName = { label: a("plugins.list.table_headers.name"), sortable: !1 }), o.config?.entityId || (w.appliedTo = y.value ? { label: a("plugins.list.table_headers.scope"), sortable: !1 } : { label: a("plugins.list.table_headers.applied_to"), sortable: !1 }), w.enabled = y.value ? { label: a("plugins.list.table_headers.status"), sortable: !1 } : { label: a("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, v && (w.ordering = { label: a("plugins.list.table_headers.ordering"), sortable: !0 }), w.tags = { label: a("plugins.list.table_headers.tags"), sortable: !1 }, w.updated_at = { label: a("plugins.list.table_headers.updated_at"), sortable: !0 };
|
|
30702
|
-
const
|
|
30702
|
+
const S = w, E = (Y) => {
|
|
30703
30703
|
let ue = `${o.config.apiBaseUrl}${Y}`;
|
|
30704
30704
|
return o.config.app === "konnect" && (ue = ue.replace(/{controlPlaneId}/gi, o.config?.controlPlaneId || "")), ue.replace(/\/{workspace}/gi, o.config?.workspace ? `/${o.config.workspace}` : "").replace(/{entityType}/gi, o.config?.entityType || "").replace(/{entityId}/gi, o.config?.entityId || "");
|
|
30705
|
-
},
|
|
30705
|
+
}, x = R(() => E(
|
|
30706
30706
|
o.config.entityType ? ot.list[o.config.app].forEntity : ot.list[o.config.app].all
|
|
30707
30707
|
)), C = fe(""), M = R(() => o.config.app === "konnect" || o.config.isExactMatch ? {
|
|
30708
30708
|
isExactMatch: !0,
|
|
@@ -30720,7 +30720,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30720
30720
|
instance_name: { label: a("plugins.list.table_headers.instance_name"), searchable: !0 }
|
|
30721
30721
|
},
|
|
30722
30722
|
schema: o.config.filterSchema
|
|
30723
|
-
}), N = R(() => y.value && !!C.value), j = R(() => N.value ? E(ot.list.konnect.search) :
|
|
30723
|
+
}), N = R(() => y.value && !!C.value), j = R(() => N.value ? E(ot.list.konnect.search) : x.value), {
|
|
30724
30724
|
fetcher: P,
|
|
30725
30725
|
fetcherState: I,
|
|
30726
30726
|
fetcherCacheKey: O
|
|
@@ -30810,7 +30810,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30810
30810
|
}), xe = (Y) => ({
|
|
30811
30811
|
label: a("actions.configure_dynamic_ordering"),
|
|
30812
30812
|
to: o.config.getConfigureDynamicOrderingRoute(Y)
|
|
30813
|
-
}), qe = fe(void 0), Ve = fe(!1), Ue = fe(!1), pt = fe(""), rt = Xh(o.config,
|
|
30813
|
+
}), qe = fe(void 0), Ve = fe(!1), Ue = fe(!1), pt = fe(""), rt = Xh(o.config, x.value), lt = (Y) => {
|
|
30814
30814
|
qe.value = Y, Ve.value = !0;
|
|
30815
30815
|
}, Ke = () => {
|
|
30816
30816
|
Ve.value = !1;
|
|
@@ -30859,7 +30859,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
30859
30859
|
"pagination-type": "offset",
|
|
30860
30860
|
"preferences-storage-key": "kong-ui-entities-plugins-list",
|
|
30861
30861
|
query: C.value,
|
|
30862
|
-
"table-headers": s(
|
|
30862
|
+
"table-headers": s(S),
|
|
30863
30863
|
title: e.title,
|
|
30864
30864
|
"title-tag": e.titleTag,
|
|
30865
30865
|
onClearSearchInput: L,
|
|
@@ -31261,21 +31261,21 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
31261
31261
|
},
|
|
31262
31262
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
31263
31263
|
setup(e, { emit: t }) {
|
|
31264
|
-
const n = t, i = e, o = Ui(), { i18n: { t: a } } = st.useI18n(), r = R(() => i.plugin.customPluginType === "cloned" && i.plugin.clonedFromRef ? i.plugin.clonedFromRef : i.plugin.id), u = R(() => !
|
|
31264
|
+
const n = t, i = e, o = Ui(), { i18n: { t: a } } = st.useI18n(), r = R(() => i.plugin.customPluginType === "cloned" && i.plugin.clonedFromRef ? i.plugin.clonedFromRef : i.plugin.id), u = R(() => !x.value || E.value ? [] : i.plugin.customPluginType === "cloned" && i.plugin.clonedFromRef ? [a("plugins.select.cloned_from_badge", { link: i.plugin.clonedFromRef })] : i.plugin.customPluginType === "streaming" ? [a("plugins.select.streamed_custom_badge")] : [a("plugins.select.installed_custom_badge")]), l = R(() => !!(!i.plugin.available || i.plugin.disabledMessage)), c = R(() => typeof i.config.getCustomEditRoute == "function"), p = R(() => i.plugin.customPluginType === "cloned"), d = R(() => p.value ? i.canDeleteClonedPlugin : i.canDeleteCustomPlugin), f = R(() => p.value ? i.canEditClonedPlugin : i.canEditCustomPlugin), g = R(() => !(i.config.app === "kongManager" && i.plugin.customPluginType === "schema")), h = R(() => f.value && c.value), v = R(() => d.value), y = R(() => !!(x.value && !E.value && g.value && i.navigateOnClick && (v.value || h.value))), _ = () => {
|
|
31265
31265
|
o.push(i.config.getCreateRoute(i.plugin.id));
|
|
31266
31266
|
}, w = () => {
|
|
31267
|
-
i.navigateOnClick ? _() :
|
|
31268
|
-
},
|
|
31267
|
+
i.navigateOnClick ? _() : S();
|
|
31268
|
+
}, S = () => {
|
|
31269
31269
|
n("plugin-clicked", i.plugin);
|
|
31270
|
-
}, E = R(() => i.plugin.id === "custom-plugin-create"),
|
|
31271
|
-
|
|
31270
|
+
}, E = R(() => i.plugin.id === "custom-plugin-create"), x = R(() => i.plugin.group === nt.CUSTOM_PLUGINS), C = () => {
|
|
31271
|
+
x.value && n("custom-plugin-delete");
|
|
31272
31272
|
}, M = (j, P) => {
|
|
31273
31273
|
const I = i.config;
|
|
31274
31274
|
typeof I.getCustomEditRoute == "function" && o.push(I.getCustomEditRoute(j, P));
|
|
31275
31275
|
}, N = () => {
|
|
31276
|
-
if (!l.value &&
|
|
31276
|
+
if (!l.value && x.value) {
|
|
31277
31277
|
const j = i.config;
|
|
31278
|
-
E.value && j.createCustomRoute ? o.push(j.createCustomRoute) :
|
|
31278
|
+
E.value && j.createCustomRoute ? o.push(j.createCustomRoute) : x.value && _();
|
|
31279
31279
|
}
|
|
31280
31280
|
};
|
|
31281
31281
|
return (j, P) => {
|
|
@@ -31289,12 +31289,12 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
31289
31289
|
class: gt(["plugin-select-card", { disabled: l.value }]),
|
|
31290
31290
|
"data-testid": `${e.plugin.id}-card`,
|
|
31291
31291
|
role: "button",
|
|
31292
|
-
onClick: P[1] || (P[1] = (U) => l.value ||
|
|
31292
|
+
onClick: P[1] || (P[1] = (U) => l.value || x.value ? void 0 : w())
|
|
31293
31293
|
}, [
|
|
31294
31294
|
G("div", ZF, [
|
|
31295
31295
|
G("div", QF, [
|
|
31296
31296
|
G("span", {
|
|
31297
|
-
class: gt({ "non-custom-title": !
|
|
31297
|
+
class: gt({ "non-custom-title": !x.value })
|
|
31298
31298
|
}, ee(e.plugin.name), 3)
|
|
31299
31299
|
]),
|
|
31300
31300
|
y.value ? (k(), Q("div", eK, [
|
|
@@ -31348,7 +31348,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
31348
31348
|
])) : he("", !0)
|
|
31349
31349
|
]),
|
|
31350
31350
|
G("div", {
|
|
31351
|
-
class: gt(["plugin-card-body", { "custom-plugin":
|
|
31351
|
+
class: gt(["plugin-card-body", { "custom-plugin": x.value }]),
|
|
31352
31352
|
"data-testid": e.plugin.name,
|
|
31353
31353
|
title: e.plugin.available ? e.plugin.name : s(a)("plugins.select.unavailable_tooltip"),
|
|
31354
31354
|
onClick: N
|
|
@@ -31541,38 +31541,38 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
31541
31541
|
},
|
|
31542
31542
|
emits: ["plugin-clicked", "revalidate", "delete:success"],
|
|
31543
31543
|
setup(e, { emit: t }) {
|
|
31544
|
-
const n = e, i = t, { i18n: { t: o } } = st.useI18n(), { getTallestPluginCardHeight: a, getToggleVisibility: r } = st.usePluginHelpers(), u = fe(!0), l = (
|
|
31545
|
-
i("plugin-clicked",
|
|
31544
|
+
const n = e, i = t, { i18n: { t: o } } = st.useI18n(), { getTallestPluginCardHeight: a, getToggleVisibility: r } = st.usePluginHelpers(), u = fe(!0), l = (x) => {
|
|
31545
|
+
i("plugin-clicked", x);
|
|
31546
31546
|
}, c = R(() => {
|
|
31547
|
-
const
|
|
31547
|
+
const x = JSON.parse(JSON.stringify(n.pluginList))[nt.CUSTOM_PLUGINS] || [];
|
|
31548
31548
|
return n.canCreateCustomPlugin && n.navigateOnClick && n.config.createCustomRoute ? [{
|
|
31549
31549
|
id: "custom-plugin-create",
|
|
31550
31550
|
name: o("plugins.select.tabs.custom.create.name"),
|
|
31551
31551
|
available: !0,
|
|
31552
31552
|
group: nt.CUSTOM_PLUGINS,
|
|
31553
31553
|
description: o("plugins.select.tabs.custom.create.description")
|
|
31554
|
-
}].concat(
|
|
31555
|
-
}), p = fe(!1), d = fe(null), f = (
|
|
31554
|
+
}].concat(x) : x;
|
|
31555
|
+
}), p = fe(!1), d = fe(null), f = (x) => {
|
|
31556
31556
|
p.value = !0, d.value = {
|
|
31557
|
-
id:
|
|
31558
|
-
name:
|
|
31559
|
-
customPluginType:
|
|
31557
|
+
id: x.id,
|
|
31558
|
+
name: x.name,
|
|
31559
|
+
customPluginType: x.customPluginType
|
|
31560
31560
|
};
|
|
31561
|
-
}, g = (
|
|
31562
|
-
|
|
31561
|
+
}, g = (x) => {
|
|
31562
|
+
x && (i("revalidate"), i("delete:success", d.value?.name || "")), p.value = !1, d.value = null;
|
|
31563
31563
|
}, h = fe(zs), v = fe(null), y = fe(null), _ = R(() => u.value ? {
|
|
31564
31564
|
overflowY: "hidden",
|
|
31565
31565
|
maxHeight: `${h.value}px`
|
|
31566
|
-
} : {}), w = fe(!1),
|
|
31566
|
+
} : {}), w = fe(!1), S = () => {
|
|
31567
31567
|
h.value = Math.max(a(y.value), zs), E();
|
|
31568
31568
|
}, E = () => {
|
|
31569
31569
|
y.value?.length && (w.value = r(v.value, y.value?.length));
|
|
31570
31570
|
};
|
|
31571
31571
|
return dn(async () => {
|
|
31572
|
-
await Xt(), h.value = Math.max(a(y.value), zs), E(), window?.addEventListener("resize",
|
|
31572
|
+
await Xt(), h.value = Math.max(a(y.value), zs), E(), window?.addEventListener("resize", S);
|
|
31573
31573
|
}), Cr(() => {
|
|
31574
|
-
window?.removeEventListener("resize",
|
|
31575
|
-
}), (
|
|
31574
|
+
window?.removeEventListener("resize", S);
|
|
31575
|
+
}), (x, C) => {
|
|
31576
31576
|
const M = ke("KEmptyState"), N = ke("KCollapse");
|
|
31577
31577
|
return k(), Q("div", sK, [
|
|
31578
31578
|
c.value.length ? (k(), W(N, {
|
|
@@ -31697,14 +31697,14 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
31697
31697
|
const n = Xn(e, "modelValue"), i = e, o = t, { i18n: { t: a } } = st.useI18n(), { getTallestPluginCardHeight: r, getToggleVisibility: u } = st.usePluginHelpers(), l = fe(Gs), c = fe(null), p = fe(null), d = R(() => n.value ? {
|
|
31698
31698
|
overflowY: "hidden",
|
|
31699
31699
|
maxHeight: `${l.value}px`
|
|
31700
|
-
} : {}), f = fe(!1), g = fe(!1), h = fe(null), v = (
|
|
31700
|
+
} : {}), f = fe(!1), g = fe(!1), h = fe(null), v = (S) => {
|
|
31701
31701
|
g.value = !0, h.value = {
|
|
31702
|
-
id:
|
|
31703
|
-
name:
|
|
31704
|
-
customPluginType:
|
|
31702
|
+
id: S.id,
|
|
31703
|
+
name: S.name,
|
|
31704
|
+
customPluginType: S.customPluginType
|
|
31705
31705
|
};
|
|
31706
|
-
}, y = (
|
|
31707
|
-
|
|
31706
|
+
}, y = (S) => {
|
|
31707
|
+
S && o("delete:success", h.value?.name || ""), g.value = !1, h.value = null;
|
|
31708
31708
|
}, _ = () => {
|
|
31709
31709
|
l.value = Math.max(r(p.value), Gs), w();
|
|
31710
31710
|
}, w = () => {
|
|
@@ -31714,10 +31714,10 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
31714
31714
|
await Xt(), l.value = Math.max(r(p.value), Gs), w(), window?.addEventListener("resize", _);
|
|
31715
31715
|
}), Cr(() => {
|
|
31716
31716
|
window?.removeEventListener("resize", _);
|
|
31717
|
-
}), (
|
|
31718
|
-
const
|
|
31717
|
+
}), (S, E) => {
|
|
31718
|
+
const x = ke("KCollapse");
|
|
31719
31719
|
return k(), Q(ze, null, [
|
|
31720
|
-
b(
|
|
31720
|
+
b(x, {
|
|
31721
31721
|
modelValue: n.value,
|
|
31722
31722
|
"onUpdate:modelValue": E[0] || (E[0] = (C) => n.value = C),
|
|
31723
31723
|
class: "plugins-collapse",
|
|
@@ -32002,23 +32002,23 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32002
32002
|
},
|
|
32003
32003
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
32004
32004
|
setup(e, { emit: t }) {
|
|
32005
|
-
const n = e, i = t, o = hy(), a = Ui(), { i18n: { t: r } } = st.useI18n(), { pluginMetaData: u } = st.usePluginMetaData(), { getMessageFromError: l } = xi(), { sortAlpha: c, objectsAreEqual: p } = wa(), d = fe(""), f = fe(!0), g = fe(!1), h = fe(""), v = fe(""), y = fe([]), _ = fe([]), w = fe([]),
|
|
32005
|
+
const n = e, i = t, o = hy(), a = Ui(), { i18n: { t: r } } = st.useI18n(), { pluginMetaData: u } = st.usePluginMetaData(), { getMessageFromError: l } = xi(), { sortAlpha: c, objectsAreEqual: p } = wa(), d = fe(""), f = fe(!0), g = fe(!1), h = fe(""), v = fe(""), y = fe([]), _ = fe([]), w = fe([]), S = fe({}), E = fe([]), x = fe(null), C = fe(!1), { axiosInstance: M } = fn(n.config?.axiosRequestConfig), N = (ie) => ie === "none" || ie === "disabled" ? /* @__PURE__ */ new Set() : new Set(Array.isArray(ie) ? ie : [ie]), j = R(() => N(n.customPluginSupport)), P = R(() => [...j.value].sort().join("|")), I = R(() => n.customPluginSupport === "disabled"), O = R(() => I.value || j.value.size > 0), L = R(() => j.value.has("streaming")), F = R(() => j.value.has("cloned")), Z = (ie) => fo(ie) && ie.code === "ERR_CANCELED", U = (ie) => l(ie).toLowerCase().includes("requires a license"), te = R(() => S.value ? Object.entries(S.value).filter(([ie]) => ie !== nt.CUSTOM_PLUGINS).reduce((ie, [, Te]) => {
|
|
32006
32006
|
for (const Y of Te ?? [])
|
|
32007
32007
|
ie[Y.id] = Y;
|
|
32008
32008
|
return ie;
|
|
32009
32009
|
}, {}) : {}), D = R(() => {
|
|
32010
|
-
if (!
|
|
32010
|
+
if (!S.value)
|
|
32011
32011
|
return {};
|
|
32012
|
-
const ie = d.value.toLowerCase(), Te = JSON.parse(JSON.stringify(
|
|
32013
|
-
for (const Y in
|
|
32014
|
-
const ue =
|
|
32012
|
+
const ie = d.value.toLowerCase(), Te = JSON.parse(JSON.stringify(S.value));
|
|
32013
|
+
for (const Y in S.value) {
|
|
32014
|
+
const ue = S.value[Y]?.filter((me) => me.name.toLowerCase().includes(ie) || me.id.toLowerCase().includes(ie) || me.group.toLowerCase().includes(ie) || me.clonedFromRef?.toLowerCase().includes(ie) || me.customPluginType?.toLowerCase().includes(ie)) || [];
|
|
32015
32015
|
ue.length ? Te[Y] = ue : delete Te[Y];
|
|
32016
32016
|
}
|
|
32017
32017
|
return Te;
|
|
32018
32018
|
}), H = R(() => n.highlightedPluginIds.reduce((ie, Te) => {
|
|
32019
32019
|
const Y = te.value[Te];
|
|
32020
32020
|
return Y && ie.push(Y), ie;
|
|
32021
|
-
}, [])), K = R(() => Object.keys(D.value).length > 0), X = R(() => Object.keys(
|
|
32021
|
+
}, [])), K = R(() => Object.keys(D.value).length > 0), X = R(() => Object.keys(S.value).length > 0 && !K.value), z = R(() => n.config.app !== "konnect" || !O.value ? [] : [
|
|
32022
32022
|
{
|
|
32023
32023
|
hash: "#kong",
|
|
32024
32024
|
title: r("plugins.select.tabs.kong.title")
|
|
@@ -32090,9 +32090,9 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32090
32090
|
a.replace({ hash: ie, query: o.query });
|
|
32091
32091
|
};
|
|
32092
32092
|
Ye(() => n.disabledPlugins, (ie, Te) => {
|
|
32093
|
-
!p(ie, Te) && !f.value && (
|
|
32093
|
+
!p(ie, Te) && !f.value && (S.value = q());
|
|
32094
32094
|
}), Ye(() => n.ignoredPlugins, (ie, Te) => {
|
|
32095
|
-
!p(ie, Te) && !f.value && (
|
|
32095
|
+
!p(ie, Te) && !f.value && (S.value = q());
|
|
32096
32096
|
}), Ye(f, (ie) => {
|
|
32097
32097
|
i("loading", ie);
|
|
32098
32098
|
});
|
|
@@ -32126,9 +32126,9 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32126
32126
|
})
|
|
32127
32127
|
), Te.push(se(ie)), await Promise.allSettled(Te);
|
|
32128
32128
|
}, xe = async () => {
|
|
32129
|
-
|
|
32129
|
+
x.value?.abort(), x.value = new AbortController(), f.value = !0, g.value = !1, h.value = "", v.value = "", y.value = [], _.value = [], w.value = [], E.value = [];
|
|
32130
32130
|
try {
|
|
32131
|
-
const { data: ie } = await M.get(A.value, { signal:
|
|
32131
|
+
const { data: ie } = await M.get(A.value, { signal: x.value.signal });
|
|
32132
32132
|
if (n.config.app === "konnect") {
|
|
32133
32133
|
const { names: Te } = ie;
|
|
32134
32134
|
y.value = Te || [];
|
|
@@ -32136,14 +32136,14 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32136
32136
|
const { plugins: { available_on_server: Te } } = ie;
|
|
32137
32137
|
y.value = Te ? Object.keys(Te) : [];
|
|
32138
32138
|
}
|
|
32139
|
-
await le(
|
|
32139
|
+
await le(x.value.signal), S.value = q();
|
|
32140
32140
|
} catch (ie) {
|
|
32141
32141
|
Z(ie) || (g.value = !0, h.value = l(ie));
|
|
32142
32142
|
} finally {
|
|
32143
|
-
|
|
32143
|
+
x.value?.signal.aborted || (f.value = !1);
|
|
32144
32144
|
}
|
|
32145
32145
|
}, qe = fe(!1), Ve = fe(!1), Ue = fe(!1), pt = fe(!1), rt = fe(!1), lt = fe(!1), Ke = fe(!1), Re = (ie) => {
|
|
32146
|
-
_.value = _.value.filter((Te) => Te.name !== ie), w.value = w.value.filter((Te) => Te.name !== ie),
|
|
32146
|
+
_.value = _.value.filter((Te) => Te.name !== ie), w.value = w.value.filter((Te) => Te.name !== ie), S.value = q(), i("delete-custom:success", ie);
|
|
32147
32147
|
};
|
|
32148
32148
|
Bi(async () => {
|
|
32149
32149
|
const [
|
|
@@ -32182,7 +32182,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32182
32182
|
C.value && await xe();
|
|
32183
32183
|
}
|
|
32184
32184
|
), _a(() => {
|
|
32185
|
-
|
|
32185
|
+
x.value?.abort();
|
|
32186
32186
|
}), (ie, Te) => {
|
|
32187
32187
|
const Y = ke("KInput"), ue = ke("KSkeletonBox"), me = ke("KSkeleton"), we = ke("KEmptyState"), m = ke("KTooltip"), oe = ke("KAlert"), ge = ke("KTabs");
|
|
32188
32188
|
return k(), Q("div", hK, [
|
|
@@ -32344,9 +32344,9 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32344
32344
|
},
|
|
32345
32345
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
32346
32346
|
setup(e, { emit: t }) {
|
|
32347
|
-
const n = t, i = e, o = Ui(), { i18n: { t: a } } = st.useI18n(), r = R(() => i.plugin.customPluginType === "cloned" && i.plugin.clonedFromRef ? i.plugin.clonedFromRef : i.plugin.id), u = R(() => !
|
|
32348
|
-
|
|
32349
|
-
},
|
|
32347
|
+
const n = t, i = e, o = Ui(), { i18n: { t: a } } = st.useI18n(), r = R(() => i.plugin.customPluginType === "cloned" && i.plugin.clonedFromRef ? i.plugin.clonedFromRef : i.plugin.id), u = R(() => !S.value || w.value ? [] : i.plugin.customPluginType === "cloned" && i.plugin.clonedFromRef ? [a("plugins.select.cloned_from_badge", { link: i.plugin.clonedFromRef })] : i.plugin.customPluginType === "streaming" ? [a("plugins.select.streamed_custom_badge")] : [a("plugins.select.installed_custom_badge")]), l = R(() => !!(!i.plugin.available || i.plugin.disabledMessage)), c = R(() => typeof i.config.getCustomEditRoute == "function"), p = R(() => i.plugin.customPluginType === "cloned"), d = R(() => p.value ? !!i.canDeleteClonedPlugin : !!i.canDeleteCustomPlugin), f = R(() => p.value ? !!i.canEditClonedPlugin : !!i.canEditCustomPlugin), g = R(() => !(i.config.app === "kongManager" && i.plugin.customPluginType === "schema")), h = R(() => f.value && c.value), v = R(() => d.value), y = R(() => !!(S.value && !w.value && g.value && (v.value || h.value))), _ = R(() => l.value ? {} : S.value && w.value && i.config.createCustomRoute ? i.config.createCustomRoute : i.config.getCreateRoute(i.plugin.id)), w = R(() => i.plugin.id === "custom-plugin-create"), S = R(() => i.plugin.group === nt.CUSTOM_PLUGINS), E = () => {
|
|
32348
|
+
S.value && n("custom-plugin-delete");
|
|
32349
|
+
}, x = (C, M) => {
|
|
32350
32350
|
typeof i.config.getCustomEditRoute == "function" && o.push(i.config.getCustomEditRoute(C, M));
|
|
32351
32351
|
};
|
|
32352
32352
|
return (C, M) => {
|
|
@@ -32371,7 +32371,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32371
32371
|
size: 55
|
|
32372
32372
|
}, null, 8, ["alt", "name"]),
|
|
32373
32373
|
G("span", {
|
|
32374
|
-
class: gt({ "non-custom-title": !
|
|
32374
|
+
class: gt({ "non-custom-title": !S.value })
|
|
32375
32375
|
}, ee(e.plugin.name), 3)
|
|
32376
32376
|
]),
|
|
32377
32377
|
y.value ? (k(), Q("div", TK, [
|
|
@@ -32402,7 +32402,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32402
32402
|
h.value ? (k(), W(j, {
|
|
32403
32403
|
key: 0,
|
|
32404
32404
|
"data-testid": "edit-plugin-schema",
|
|
32405
|
-
onClick: M[0] || (M[0] = Et((F) =>
|
|
32405
|
+
onClick: M[0] || (M[0] = Et((F) => x(e.plugin.name, e.plugin.customPluginType), ["stop", "prevent"]))
|
|
32406
32406
|
}, {
|
|
32407
32407
|
default: $(() => [
|
|
32408
32408
|
Pe(ee(s(a)("actions.edit")), 1)
|
|
@@ -32664,7 +32664,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32664
32664
|
},
|
|
32665
32665
|
emits: ["revalidate", "delete:success"],
|
|
32666
32666
|
setup(e, { emit: t }) {
|
|
32667
|
-
const n = t, i = e, { i18n: { t: o } } = st.useI18n(), a = (P) => P.customPluginType === "cloned" && P.clonedFromRef ? o("plugins.select.cloned_from_badge", { link: P.clonedFromRef }) : P.customPluginType === "streaming" ? o("plugins.select.streamed_custom_badge") : P.customPluginType ? o("plugins.select.installed_custom_badge") : "", r = R(() => C.value.some((P) =>
|
|
32667
|
+
const n = t, i = e, { i18n: { t: o } } = st.useI18n(), a = (P) => P.customPluginType === "cloned" && P.clonedFromRef ? o("plugins.select.cloned_from_badge", { link: P.clonedFromRef }) : P.customPluginType === "streaming" ? o("plugins.select.streamed_custom_badge") : P.customPluginType ? o("plugins.select.installed_custom_badge") : "", r = R(() => C.value.some((P) => S(P.plugin))), u = R(() => {
|
|
32668
32668
|
const P = [
|
|
32669
32669
|
{ key: "name", label: o("plugins.select.list.table_headers.name"), sortable: !0 },
|
|
32670
32670
|
{ key: "description", label: o("plugins.select.list.table_headers.description") },
|
|
@@ -32683,14 +32683,14 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32683
32683
|
badge: a(O),
|
|
32684
32684
|
plugin: O
|
|
32685
32685
|
}));
|
|
32686
|
-
}), c = fe(0), p = fe(10), d = fe(1), f = fe(l.value), g = fe(!1), h = fe(null), v = (P) => P.customPluginType === "cloned" && P.clonedFromRef ? P.clonedFromRef : P.id, y = (P) => P?.customPluginType === "cloned", _ = (P) => !P?.customPluginType || i.config.app === "kongManager" && P.customPluginType === "schema" ? !1 : y(P) ? !!i.canDeleteClonedPlugin : !!i.canDeleteCustomPlugin, w = (P) => !P?.customPluginType || typeof i.config.getCustomEditRoute != "function" || i.config.app === "kongManager" && P.customPluginType === "schema" ? !1 : y(P) ? !!i.canEditClonedPlugin : !!i.canEditCustomPlugin,
|
|
32686
|
+
}), c = fe(0), p = fe(10), d = fe(1), f = fe(l.value), g = fe(!1), h = fe(null), v = (P) => P.customPluginType === "cloned" && P.clonedFromRef ? P.clonedFromRef : P.id, y = (P) => P?.customPluginType === "cloned", _ = (P) => !P?.customPluginType || i.config.app === "kongManager" && P.customPluginType === "schema" ? !1 : y(P) ? !!i.canDeleteClonedPlugin : !!i.canDeleteCustomPlugin, w = (P) => !P?.customPluginType || typeof i.config.getCustomEditRoute != "function" || i.config.app === "kongManager" && P.customPluginType === "schema" ? !1 : y(P) ? !!i.canEditClonedPlugin : !!i.canEditCustomPlugin, S = (P) => _(P) || w(P), E = (P) => {
|
|
32687
32687
|
g.value = !0, h.value = {
|
|
32688
32688
|
id: P.id,
|
|
32689
32689
|
name: P.name,
|
|
32690
32690
|
group: P.group,
|
|
32691
32691
|
customPluginType: P.customPluginType
|
|
32692
32692
|
};
|
|
32693
|
-
},
|
|
32693
|
+
}, x = (P) => {
|
|
32694
32694
|
P && (n("revalidate"), n("delete:success", {
|
|
32695
32695
|
name: h.value?.name || "",
|
|
32696
32696
|
group: h.value?.group,
|
|
@@ -32786,7 +32786,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32786
32786
|
])
|
|
32787
32787
|
]),
|
|
32788
32788
|
"more-actions": $(({ row: D }) => [
|
|
32789
|
-
|
|
32789
|
+
S(D.plugin) ? (k(), Q("div", ej, [
|
|
32790
32790
|
b(Z, {
|
|
32791
32791
|
appearance: "tertiary",
|
|
32792
32792
|
class: "actions-trigger",
|
|
@@ -32837,8 +32837,8 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32837
32837
|
key: 0,
|
|
32838
32838
|
config: e.config,
|
|
32839
32839
|
plugin: h.value,
|
|
32840
|
-
onClosed:
|
|
32841
|
-
onProceed: I[0] || (I[0] = (D) =>
|
|
32840
|
+
onClosed: x,
|
|
32841
|
+
onProceed: I[0] || (I[0] = (D) => x(!0))
|
|
32842
32842
|
}, null, 8, ["config", "plugin"])) : he("", !0)
|
|
32843
32843
|
], 64);
|
|
32844
32844
|
};
|
|
@@ -32870,7 +32870,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32870
32870
|
},
|
|
32871
32871
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
32872
32872
|
setup(e, { emit: t }) {
|
|
32873
|
-
const n = t, { i18n: { t: i } } = st.useI18n(), { pluginMetaData: o } = st.usePluginMetaData(), { getMessageFromError: a } = xi(), { sortAlpha: r, objectsAreEqual: u } = wa(), l = e, { axiosInstance: c } = fn(l.config?.axiosRequestConfig), p = wt("filter-input"), d = fe(""), f = fe(!1), g = fe(!1), h = fe(Object.fromEntries(fl.concat(ml).map((Ae) => [Ae, !1]))), v = fe(!0), y = fe(!1), _ = fe(""), w = fe(""),
|
|
32873
|
+
const n = t, { i18n: { t: i } } = st.useI18n(), { pluginMetaData: o } = st.usePluginMetaData(), { getMessageFromError: a } = xi(), { sortAlpha: r, objectsAreEqual: u } = wa(), l = e, { axiosInstance: c } = fn(l.config?.axiosRequestConfig), p = wt("filter-input"), d = fe(""), f = fe(!1), g = fe(!1), h = fe(Object.fromEntries(fl.concat(ml).map((Ae) => [Ae, !1]))), v = fe(!0), y = fe(!1), _ = fe(""), w = fe(""), S = fe([]), E = fe([]), x = fe([]), C = fe({}), M = fe([]), N = fe(!1), j = fe(null), P = fe(!1), I = R(() => N.value ? kh : Ch), O = ut(ui.KM_2485_CLONED_PLUGINS, !1), L = R(() => s(O)), F = (Ae) => Ae === "none" || Ae === "disabled" ? /* @__PURE__ */ new Set() : new Set(Array.isArray(Ae) ? Ae : [Ae]), Z = R(() => F(l.customPluginSupport)), U = R(() => [...Z.value].sort().join("|")), te = R(() => Z.value.has("streaming")), D = R(() => L.value && Z.value.has("cloned")), H = (Ae) => fo(Ae) && Ae.code === "ERR_CANCELED", K = (Ae) => a(Ae).toLowerCase().includes("requires a license"), X = R(() => {
|
|
32874
32874
|
let Ae = `${l.config.apiBaseUrl}${ot.select[l.config.app].availablePlugins}`;
|
|
32875
32875
|
if (l.config.app === "konnect")
|
|
32876
32876
|
Ae = Ae.replace(/{controlPlaneId}/gi, l.config.controlPlaneId || "");
|
|
@@ -32924,13 +32924,13 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32924
32924
|
h.value[Ae] = !1;
|
|
32925
32925
|
});
|
|
32926
32926
|
}, ve = () => {
|
|
32927
|
-
const Ae = new Map(
|
|
32927
|
+
const Ae = new Map(x.value.map((ue) => [ue.name, ue])), ie = new Set(E.value.map((ue) => ue.name)), Te = /* @__PURE__ */ new Set([
|
|
32928
32928
|
...ie,
|
|
32929
32929
|
...Ae.keys()
|
|
32930
32930
|
]), Y = [.../* @__PURE__ */ new Set(
|
|
32931
32931
|
[
|
|
32932
32932
|
...Object.keys({ ...l.availableOnServer ? {} : o }),
|
|
32933
|
-
...
|
|
32933
|
+
...S.value,
|
|
32934
32934
|
...Te
|
|
32935
32935
|
]
|
|
32936
32936
|
)].filter((ue) => {
|
|
@@ -32943,7 +32943,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32943
32943
|
...o[me],
|
|
32944
32944
|
id: me,
|
|
32945
32945
|
name: we,
|
|
32946
|
-
available:
|
|
32946
|
+
available: S.value.includes(me) || !!m || oe,
|
|
32947
32947
|
disabledMessage: "",
|
|
32948
32948
|
group: o[me]?.group || nt.CUSTOM_PLUGINS
|
|
32949
32949
|
};
|
|
@@ -32959,7 +32959,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
32959
32959
|
...m,
|
|
32960
32960
|
id: we,
|
|
32961
32961
|
name: m.name || we,
|
|
32962
|
-
available:
|
|
32962
|
+
available: S.value.includes(we),
|
|
32963
32963
|
disabledMessage: l.disabledPlugins?.[we] || "",
|
|
32964
32964
|
group: m.group || nt.CUSTOM_PLUGINS
|
|
32965
32965
|
};
|
|
@@ -33015,7 +33015,7 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
33015
33015
|
})
|
|
33016
33016
|
), ne.value && Ue.value && ie.push(
|
|
33017
33017
|
wr(c, ne.value, Ae).then((Te) => {
|
|
33018
|
-
|
|
33018
|
+
x.value = Te;
|
|
33019
33019
|
}).catch((Te) => {
|
|
33020
33020
|
if (H(Te))
|
|
33021
33021
|
return;
|
|
@@ -33026,15 +33026,15 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
33026
33026
|
}, Ke = async () => {
|
|
33027
33027
|
j.value?.abort();
|
|
33028
33028
|
const Ae = new AbortController();
|
|
33029
|
-
j.value = Ae, v.value = !0, y.value = !1, _.value = "", w.value = "",
|
|
33029
|
+
j.value = Ae, v.value = !0, y.value = !1, _.value = "", w.value = "", S.value = [], E.value = [], x.value = [], M.value = [];
|
|
33030
33030
|
try {
|
|
33031
33031
|
const { data: ie } = await c.get(X.value, { signal: Ae.signal });
|
|
33032
33032
|
if (l.config.app === "konnect") {
|
|
33033
33033
|
const { names: Te } = ie;
|
|
33034
|
-
|
|
33034
|
+
S.value = Te || [];
|
|
33035
33035
|
} else if (l.config.app === "kongManager") {
|
|
33036
33036
|
const { plugins: { available_on_server: Te } } = ie;
|
|
33037
|
-
|
|
33037
|
+
S.value = Te ? Object.keys(Te) : [];
|
|
33038
33038
|
}
|
|
33039
33039
|
await lt(Ae.signal), C.value = ve();
|
|
33040
33040
|
} catch (ie) {
|
|
@@ -33322,13 +33322,13 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
33322
33322
|
const n = t, i = e, { i18n: { t: o } } = st.useI18n(), a = st.usePluginMetaData(), { setFieldType: r } = st.usePluginHelpers(), { getPropValue: u } = wa(), l = R(() => {
|
|
33323
33323
|
let E = ot.item[i.config.app]?.[i.scopedEntityType ? "forEntity" : "all"].replace(/{entityType}/gi, i.scopedEntityType).replace(/{entityId}/gi, i.scopedEntityId ?? "").concat(i.expandPartial ? "?expand_partials=true" : "");
|
|
33324
33324
|
if (i.config.app === "konnect") {
|
|
33325
|
-
const
|
|
33326
|
-
E = E.concat(`${
|
|
33325
|
+
const x = i.expandPartial ? "&" : "?";
|
|
33326
|
+
E = E.concat(`${x}__ui_data=true`);
|
|
33327
33327
|
}
|
|
33328
33328
|
return E;
|
|
33329
33329
|
}), c = R(() => {
|
|
33330
|
-
const E = {},
|
|
33331
|
-
for (let C = 0; C <
|
|
33330
|
+
const E = {}, x = _.value?.fields || [];
|
|
33331
|
+
for (let C = 0; C < x.length; C++) {
|
|
33332
33332
|
const M = _.value.fields[C], N = Object.keys(M)?.[0];
|
|
33333
33333
|
r(E, N, M[N]);
|
|
33334
33334
|
}
|
|
@@ -33364,37 +33364,37 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
33364
33364
|
order: 7
|
|
33365
33365
|
}
|
|
33366
33366
|
};
|
|
33367
|
-
}), p = R(() => _.value?.fields ? _.value.fields?.find((
|
|
33367
|
+
}), p = R(() => _.value?.fields ? _.value.fields?.find((x) => Object.keys(x)?.[0] === Hs)?.[Hs]?.fields || [] : []), d = R(() => {
|
|
33368
33368
|
const E = {};
|
|
33369
33369
|
if (!p.value)
|
|
33370
33370
|
return E;
|
|
33371
|
-
for (let
|
|
33372
|
-
const C = p.value[
|
|
33371
|
+
for (let x = 0; x < p.value?.length; x++) {
|
|
33372
|
+
const C = p.value[x], M = Object.keys(C)?.[0], N = C[M];
|
|
33373
33373
|
N.required && (E[M] = {
|
|
33374
33374
|
order: 1
|
|
33375
33375
|
}), r(E, M, N);
|
|
33376
33376
|
}
|
|
33377
33377
|
return E;
|
|
33378
33378
|
}), f = (E) => {
|
|
33379
|
-
const
|
|
33380
|
-
return
|
|
33379
|
+
const x = a.pluginMetaData[i.config.pluginType]?.scope;
|
|
33380
|
+
return x ? Object.fromEntries(Object.entries(E).filter(([C, M]) => M ? !0 : !(C === "service" && !x.includes(yt.SERVICE) || C === "route" && !x.includes(yt.ROUTE) || C === "consumer" && !x.includes(yt.CONSUMER) || C === "consumer_group" && !x.includes(yt.CONSUMER_GROUP)))) : E;
|
|
33381
33381
|
}, g = (E) => Ci(E, "__ui_data"), { getMessageFromError: h } = xi(), { axiosInstance: v } = fn(i.config?.axiosRequestConfig), y = R(() => {
|
|
33382
33382
|
let E = `${i.config.apiBaseUrl}${ot.form[i.config.app].pluginSchema}`;
|
|
33383
33383
|
return i.config.app === "konnect" && (E = E.replace(/{controlPlaneId}/gi, i.config?.controlPlaneId || "")), E.replace(/\/{workspace}/gi, i.config?.workspace ? `/${i.config.workspace}` : "").replace(/{plugin}/gi, i.config.pluginType);
|
|
33384
33384
|
}), _ = fe({});
|
|
33385
33385
|
oy(_);
|
|
33386
|
-
const w = fe(!1),
|
|
33386
|
+
const w = fe(!1), S = fe("");
|
|
33387
33387
|
return Bi(async () => {
|
|
33388
33388
|
w.value = !0;
|
|
33389
33389
|
try {
|
|
33390
33390
|
const { data: E } = await v.get(y.value);
|
|
33391
33391
|
_.value = E;
|
|
33392
33392
|
} catch (E) {
|
|
33393
|
-
|
|
33393
|
+
S.value = h(E), n("error:fetch-schema", E);
|
|
33394
33394
|
} finally {
|
|
33395
33395
|
w.value = !1;
|
|
33396
33396
|
}
|
|
33397
|
-
}), (E,
|
|
33397
|
+
}), (E, x) => {
|
|
33398
33398
|
const C = ke("KSkeleton"), M = ke("KEmptyState"), N = ke("KCopy");
|
|
33399
33399
|
return k(), Q("div", Ej, [
|
|
33400
33400
|
w.value ? (k(), W(C, {
|
|
@@ -33402,13 +33402,13 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
33402
33402
|
"data-testid": "plugin-config-card-loader",
|
|
33403
33403
|
"table-columns": 2,
|
|
33404
33404
|
type: "table"
|
|
33405
|
-
})) :
|
|
33405
|
+
})) : S.value ? (k(), W(M, {
|
|
33406
33406
|
key: 1,
|
|
33407
33407
|
"data-testid": "plugin-config-card-schema-error",
|
|
33408
33408
|
"icon-variant": "error"
|
|
33409
33409
|
}, {
|
|
33410
33410
|
default: $(() => [
|
|
33411
|
-
G("h3", null, ee(
|
|
33411
|
+
G("h3", null, ee(S.value), 1)
|
|
33412
33412
|
]),
|
|
33413
33413
|
_: 1
|
|
33414
33414
|
})) : (k(), W(s(ay), {
|
|
@@ -33423,9 +33423,9 @@ const vF = { class: "kong-ui-entities-plugin-form" }, _F = {
|
|
|
33423
33423
|
"plugin-config-key": Hs,
|
|
33424
33424
|
"plugin-config-schema": d.value,
|
|
33425
33425
|
"record-resolver": f,
|
|
33426
|
-
"onFetch:error":
|
|
33427
|
-
"onFetch:success":
|
|
33428
|
-
onLoading:
|
|
33426
|
+
"onFetch:error": x[0] || (x[0] = (j) => E.$emit("fetch:error", j)),
|
|
33427
|
+
"onFetch:success": x[1] || (x[1] = (j) => E.$emit("fetch:success", j)),
|
|
33428
|
+
onLoading: x[2] || (x[2] = (j) => E.$emit("loading", j))
|
|
33429
33429
|
}, bt({
|
|
33430
33430
|
name: $((j) => [
|
|
33431
33431
|
G("div", xj, [
|