@kong-ui-public/entities-consumer-groups 2.6.12-pr.1301.c5a972cd.0 → 3.0.0
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-consumer-groups.es.js +239 -247
- package/dist/entities-consumer-groups.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as X, ref as N, computed as I, watch as xe, renderSlot as ne, createCommentVNode as
|
|
1
|
+
import { defineComponent as X, ref as N, computed as I, watch as xe, renderSlot as ne, createCommentVNode as W, unref as h, onBeforeMount as ut, resolveComponent as P, openBlock as m, createBlock as D, createSlots as Ke, withCtx as b, createElementVNode as B, createVNode as $, createTextVNode as Z, toDisplayString as F, renderList as ye, createElementBlock as M, withModifiers as _t, withDirectives as Se, vShow as $e, Fragment as ve, normalizeClass as Me, withKeys as vr, useSlots as Tt, resolveDynamicComponent as Ne, useCssVars as gn, inject as br, onMounted as kr, onUnmounted as Cr, normalizeStyle as ct, normalizeProps as wr, guardReactiveProps as _r, mergeProps as Ar, pushScopeId as dt, popScopeId as pt, reactive as Vt } from "vue";
|
|
2
2
|
import { useRouter as jt } from "vue-router";
|
|
3
3
|
import { createI18n as hn, i18nTComponent as yn } from "@kong-ui-public/i18n";
|
|
4
4
|
import Dt from "axios";
|
|
@@ -382,7 +382,7 @@ function Dr(e, n, t, r = {
|
|
|
382
382
|
}) {
|
|
383
383
|
t || (t = "1000");
|
|
384
384
|
const { axiosInstance: a } = Mt(e.axiosRequestConfig), { i18n: { t: i } } = mt(), { debounce: o } = jr(), s = o(async (v) => {
|
|
385
|
-
await
|
|
385
|
+
await Y(v);
|
|
386
386
|
}, 200), l = N(!1), u = N(""), d = N(""), c = N([]), y = N([]), p = N(void 0), A = h(n);
|
|
387
387
|
let w = `${e.apiBaseUrl}${A}`;
|
|
388
388
|
e.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
@@ -396,7 +396,7 @@ function Dr(e, n, t, r = {
|
|
|
396
396
|
} finally {
|
|
397
397
|
l.value = !1;
|
|
398
398
|
}
|
|
399
|
-
}, K = N(""),
|
|
399
|
+
}, K = N(""), Y = async (v) => {
|
|
400
400
|
var f, g, q;
|
|
401
401
|
if (K.value !== v)
|
|
402
402
|
if (K.value = v || "", p.value === void 0)
|
|
@@ -417,11 +417,11 @@ function Dr(e, n, t, r = {
|
|
|
417
417
|
return k[r.fetchedItemsKey];
|
|
418
418
|
})
|
|
419
419
|
);
|
|
420
|
-
const x = await Promise.all(L),
|
|
420
|
+
const x = await Promise.all(L), z = /* @__PURE__ */ new Set();
|
|
421
421
|
c.value = [], (f = x == null ? void 0 : x.forEach) == null || f.call(x, (E) => {
|
|
422
422
|
var k;
|
|
423
423
|
(k = E == null ? void 0 : E.forEach) == null || k.call(E, (j) => {
|
|
424
|
-
|
|
424
|
+
z.has(j.id) || (z.add(j.id), c.value.push(j));
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
427
|
} else
|
|
@@ -434,12 +434,12 @@ function Dr(e, n, t, r = {
|
|
|
434
434
|
else
|
|
435
435
|
l.value = !0, d.value = "", v ? (c.value = (q = p.value) == null ? void 0 : q.filter((L) => {
|
|
436
436
|
var x;
|
|
437
|
-
let
|
|
437
|
+
let z = !1;
|
|
438
438
|
for (const E of r.searchKeys) {
|
|
439
439
|
const k = typeof L[E] == "string" ? (x = L[E]) == null ? void 0 : x.toLowerCase() : L[E];
|
|
440
|
-
k != null && k.includes(v.toLowerCase()) && (
|
|
440
|
+
k != null && k.includes(v.toLowerCase()) && (z = !0);
|
|
441
441
|
}
|
|
442
|
-
return
|
|
442
|
+
return z;
|
|
443
443
|
}), (!c.value || !c.value.length) && (d.value = i("debouncedFilter.errors.invalid"))) : c.value = p.value, l.value = !1;
|
|
444
444
|
};
|
|
445
445
|
return {
|
|
@@ -452,13 +452,13 @@ function Dr(e, n, t, r = {
|
|
|
452
452
|
debouncedQueryChange: s
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Gr(e, n) {
|
|
456
456
|
const t = h(n), r = I(
|
|
457
457
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
458
458
|
);
|
|
459
459
|
return r.value.search = "", (a) => `${r.value.href}/${a}`;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function zr() {
|
|
462
462
|
const { i18n: { t: e } } = mt();
|
|
463
463
|
return {
|
|
464
464
|
getMessageFromError: (n) => {
|
|
@@ -563,27 +563,27 @@ function Hr(e, n, t = "data") {
|
|
|
563
563
|
}
|
|
564
564
|
}, fetcherState: o };
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Wr() {
|
|
567
567
|
const e = (t, r = "_") => t ? t.split(r).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
|
|
568
568
|
return {
|
|
569
569
|
capitalize: (t) => t ? t.replace(n, (r) => r.toUpperCase()) : "",
|
|
570
570
|
convertKeyToTitle: e
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
const Cn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,
|
|
573
|
+
const Cn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Gt = (e) => {
|
|
574
574
|
if (typeof e != "string")
|
|
575
575
|
throw new TypeError("Invalid argument expected string");
|
|
576
576
|
const n = e.match(Cn);
|
|
577
577
|
if (!n)
|
|
578
578
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
579
579
|
return n.shift(), n;
|
|
580
|
-
},
|
|
580
|
+
}, zt = (e) => e === "*" || e === "x" || e === "X", Jt = (e) => {
|
|
581
581
|
const n = parseInt(e, 10);
|
|
582
582
|
return isNaN(n) ? e : n;
|
|
583
|
-
},
|
|
584
|
-
if (
|
|
583
|
+
}, Yr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Zr = (e, n) => {
|
|
584
|
+
if (zt(e) || zt(n))
|
|
585
585
|
return 0;
|
|
586
|
-
const [t, r] =
|
|
586
|
+
const [t, r] = Yr(Jt(e), Jt(n));
|
|
587
587
|
return t > r ? 1 : t < r ? -1 : 0;
|
|
588
588
|
}, Ht = (e, n) => {
|
|
589
589
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
@@ -593,9 +593,9 @@ const Cn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
593
593
|
}
|
|
594
594
|
return 0;
|
|
595
595
|
}, Qr = (e, n) => {
|
|
596
|
-
const t =
|
|
596
|
+
const t = Gt(e), r = Gt(n), a = t.pop(), i = r.pop(), o = Ht(t, r);
|
|
597
597
|
return o !== 0 ? o : a && i ? Ht(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
|
|
598
|
-
},
|
|
598
|
+
}, Wt = (e, n, t) => {
|
|
599
599
|
Xr(t);
|
|
600
600
|
const r = Qr(e, n);
|
|
601
601
|
return wn[t].includes(r);
|
|
@@ -606,11 +606,11 @@ const Cn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
606
606
|
"<=": [-1, 0],
|
|
607
607
|
"<": [-1],
|
|
608
608
|
"!=": [-1, 1]
|
|
609
|
-
},
|
|
609
|
+
}, Yt = Object.keys(wn), Xr = (e) => {
|
|
610
610
|
if (typeof e != "string")
|
|
611
611
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
612
|
-
if (
|
|
613
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
612
|
+
if (Yt.indexOf(e) === -1)
|
|
613
|
+
throw new Error(`Invalid operator, expected one of ${Yt.join("|")}`);
|
|
614
614
|
}, ea = (e) => typeof e == "string" && /^[v\d]/.test(e) && Cn.test(e);
|
|
615
615
|
function ta(e) {
|
|
616
616
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
@@ -623,7 +623,7 @@ function ta(e) {
|
|
|
623
623
|
if (!i)
|
|
624
624
|
return !1;
|
|
625
625
|
const [o, s] = i;
|
|
626
|
-
return !(o &&
|
|
626
|
+
return !(o && Wt(a, o, "<") || s && Wt(a, s, ">"));
|
|
627
627
|
}
|
|
628
628
|
function na(e) {
|
|
629
629
|
const n = N(0), t = N(0), r = N(!1);
|
|
@@ -642,13 +642,13 @@ function ra() {
|
|
|
642
642
|
const se = {
|
|
643
643
|
useAxios: Mt,
|
|
644
644
|
useDebouncedFilter: Dr,
|
|
645
|
-
useDeleteUrlBuilder:
|
|
646
|
-
useErrors:
|
|
645
|
+
useDeleteUrlBuilder: Gr,
|
|
646
|
+
useErrors: zr,
|
|
647
647
|
useExternalLinkCreator: Jr,
|
|
648
648
|
useFetcher: Hr,
|
|
649
649
|
useFetchUrlBuilder: kn,
|
|
650
650
|
useHelpers: bn,
|
|
651
|
-
useStringHelpers:
|
|
651
|
+
useStringHelpers: Wr,
|
|
652
652
|
useI18n: mt,
|
|
653
653
|
useGatewayFeatureSupported: ta,
|
|
654
654
|
useTruncationDetector: na,
|
|
@@ -686,7 +686,7 @@ const se = {
|
|
|
686
686
|
default: b(() => [
|
|
687
687
|
e.isArrayItem ? (m(), M("legend", aa, [
|
|
688
688
|
B("b", null, F(s.value), 1)
|
|
689
|
-
])) :
|
|
689
|
+
])) : W("", !0),
|
|
690
690
|
(m(!0), M(ve, null, ye(Object.keys(o.value), (d, c) => (m(), D(An, {
|
|
691
691
|
key: `${a.value}-property-${c}`,
|
|
692
692
|
item: {
|
|
@@ -894,7 +894,7 @@ const se = {
|
|
|
894
894
|
}
|
|
895
895
|
}), y = N(), { isTruncated: p } = se.useTruncationDetector(y);
|
|
896
896
|
return (A, w) => {
|
|
897
|
-
const _ = P("KLabel"), R = P("KBadge"), K = P("KCopy"),
|
|
897
|
+
const _ = P("KLabel"), R = P("KBadge"), K = P("KCopy"), Y = P("KTooltip");
|
|
898
898
|
return m(), M("div", ga, [
|
|
899
899
|
B("div", {
|
|
900
900
|
class: "config-card-details-label",
|
|
@@ -949,7 +949,7 @@ const se = {
|
|
|
949
949
|
]),
|
|
950
950
|
_: 2
|
|
951
951
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
952
|
-
], 8, Ca)) :
|
|
952
|
+
], 8, Ca)) : W("", !0),
|
|
953
953
|
c.value.additionalComponent === "KCopy" ? (m(), M("div", {
|
|
954
954
|
key: 1,
|
|
955
955
|
class: "copy-uuid-array",
|
|
@@ -976,7 +976,7 @@ const se = {
|
|
|
976
976
|
]),
|
|
977
977
|
_: 2
|
|
978
978
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
979
|
-
], 8, _a)) :
|
|
979
|
+
], 8, _a)) : W("", !0),
|
|
980
980
|
c.value.additionalComponent === "JsonCardItem" ? (m(), M("div", {
|
|
981
981
|
key: 3,
|
|
982
982
|
"data-testid": `${t.item.key}-json-array-content`
|
|
@@ -987,7 +987,7 @@ const se = {
|
|
|
987
987
|
"is-array-item": "",
|
|
988
988
|
item: v
|
|
989
989
|
}, null, 8, ["index", "item"]))), 128))
|
|
990
|
-
], 8, Aa)) : (m(), D(
|
|
990
|
+
], 8, Aa)) : (m(), D(Y, {
|
|
991
991
|
key: 4,
|
|
992
992
|
text: h(p) ? e.item.value : ""
|
|
993
993
|
}, {
|
|
@@ -1072,7 +1072,7 @@ const se = {
|
|
|
1072
1072
|
language: "json",
|
|
1073
1073
|
theme: "dark"
|
|
1074
1074
|
}, null, 8, ["code"])
|
|
1075
|
-
])) :
|
|
1075
|
+
])) : W("", !0),
|
|
1076
1076
|
n.jsonRecord ? (m(), D(s, {
|
|
1077
1077
|
key: 1,
|
|
1078
1078
|
id: "json-codeblock",
|
|
@@ -1080,7 +1080,7 @@ const se = {
|
|
|
1080
1080
|
code: JSON.stringify(t.value, null, 2),
|
|
1081
1081
|
language: "json",
|
|
1082
1082
|
theme: "dark"
|
|
1083
|
-
}, null, 8, ["class", "code"])) :
|
|
1083
|
+
}, null, 8, ["class", "code"])) : W("", !0)
|
|
1084
1084
|
]);
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
@@ -1199,7 +1199,7 @@ function Da(e) {
|
|
|
1199
1199
|
});
|
|
1200
1200
|
}), n;
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Ga(e, n) {
|
|
1203
1203
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1204
1204
|
if (Ra.indexOf(t) === -1)
|
|
1205
1205
|
throw new pe('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
@@ -1210,7 +1210,7 @@ function za(e, n) {
|
|
|
1210
1210
|
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Da(n.styleAliases || null), Va.indexOf(this.kind) === -1)
|
|
1211
1211
|
throw new pe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1212
1212
|
}
|
|
1213
|
-
var ue =
|
|
1213
|
+
var ue = Ga;
|
|
1214
1214
|
function Zt(e, n) {
|
|
1215
1215
|
var t = [];
|
|
1216
1216
|
return e[n].forEach(function(r) {
|
|
@@ -1220,7 +1220,7 @@ function Zt(e, n) {
|
|
|
1220
1220
|
}), t[a] = r;
|
|
1221
1221
|
}), t;
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function za() {
|
|
1224
1224
|
var e = {
|
|
1225
1225
|
scalar: {},
|
|
1226
1226
|
sequence: {},
|
|
@@ -1265,7 +1265,7 @@ At.prototype.extend = function(e) {
|
|
|
1265
1265
|
throw new pe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1266
1266
|
});
|
|
1267
1267
|
var r = Object.create(At.prototype);
|
|
1268
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Zt(r, "implicit"), r.compiledExplicit = Zt(r, "explicit"), r.compiledTypeMap =
|
|
1268
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Zt(r, "implicit"), r.compiledExplicit = Zt(r, "explicit"), r.compiledTypeMap = za(r.compiledImplicit, r.compiledExplicit), r;
|
|
1269
1269
|
};
|
|
1270
1270
|
var $n = At, Tn = new ue("tag:yaml.org,2002:str", {
|
|
1271
1271
|
kind: "scalar",
|
|
@@ -1298,14 +1298,14 @@ function Ja(e) {
|
|
|
1298
1298
|
function Ha() {
|
|
1299
1299
|
return null;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Wa(e) {
|
|
1302
1302
|
return e === null;
|
|
1303
1303
|
}
|
|
1304
1304
|
var On = new ue("tag:yaml.org,2002:null", {
|
|
1305
1305
|
kind: "scalar",
|
|
1306
1306
|
resolve: Ja,
|
|
1307
1307
|
construct: Ha,
|
|
1308
|
-
predicate:
|
|
1308
|
+
predicate: Wa,
|
|
1309
1309
|
represent: {
|
|
1310
1310
|
canonical: function() {
|
|
1311
1311
|
return "~";
|
|
@@ -1325,7 +1325,7 @@ var On = new ue("tag:yaml.org,2002:null", {
|
|
|
1325
1325
|
},
|
|
1326
1326
|
defaultStyle: "lowercase"
|
|
1327
1327
|
});
|
|
1328
|
-
function
|
|
1328
|
+
function Ya(e) {
|
|
1329
1329
|
if (e === null)
|
|
1330
1330
|
return !1;
|
|
1331
1331
|
var n = e.length;
|
|
@@ -1339,7 +1339,7 @@ function Qa(e) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
var Nn = new ue("tag:yaml.org,2002:bool", {
|
|
1341
1341
|
kind: "scalar",
|
|
1342
|
-
resolve:
|
|
1342
|
+
resolve: Ya,
|
|
1343
1343
|
construct: Za,
|
|
1344
1344
|
predicate: Qa,
|
|
1345
1345
|
represent: {
|
|
@@ -1641,7 +1641,7 @@ function Io(e) {
|
|
|
1641
1641
|
r = o[n], a = Object.keys(r), i[n] = [a[0], r[a[0]]];
|
|
1642
1642
|
return i;
|
|
1643
1643
|
}
|
|
1644
|
-
var
|
|
1644
|
+
var Gn = new ue("tag:yaml.org,2002:pairs", {
|
|
1645
1645
|
kind: "sequence",
|
|
1646
1646
|
resolve: xo,
|
|
1647
1647
|
construct: Io
|
|
@@ -1658,7 +1658,7 @@ function $o(e) {
|
|
|
1658
1658
|
function To(e) {
|
|
1659
1659
|
return e !== null ? e : {};
|
|
1660
1660
|
}
|
|
1661
|
-
var
|
|
1661
|
+
var zn = new ue("tag:yaml.org,2002:set", {
|
|
1662
1662
|
kind: "mapping",
|
|
1663
1663
|
resolve: $o,
|
|
1664
1664
|
construct: To
|
|
@@ -1670,10 +1670,10 @@ var Gn = new ue("tag:yaml.org,2002:set", {
|
|
|
1670
1670
|
explicit: [
|
|
1671
1671
|
Vn,
|
|
1672
1672
|
Dn,
|
|
1673
|
-
|
|
1674
|
-
|
|
1673
|
+
Gn,
|
|
1674
|
+
zn
|
|
1675
1675
|
]
|
|
1676
|
-
}), Ee = Object.prototype.hasOwnProperty, at = 1, Jn = 2, Hn = 3, ot = 4, wt = 1, jo = 2, Qt = 3, Mo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Eo = /[\x85\u2028\u2029]/, Oo = /[,\[\]\{\}]/,
|
|
1676
|
+
}), Ee = Object.prototype.hasOwnProperty, at = 1, Jn = 2, Hn = 3, ot = 4, wt = 1, jo = 2, Qt = 3, Mo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Eo = /[\x85\u2028\u2029]/, Oo = /[,\[\]\{\}]/, Wn = /^(?:!|!!|![a-z\-]+!)$/i, Yn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1677
1677
|
function Xt(e) {
|
|
1678
1678
|
return Object.prototype.toString.call(e);
|
|
1679
1679
|
}
|
|
@@ -1739,7 +1739,7 @@ var tn = {
|
|
|
1739
1739
|
},
|
|
1740
1740
|
TAG: function(e, n, t) {
|
|
1741
1741
|
var r, a;
|
|
1742
|
-
t.length !== 2 && T(e, "TAG directive accepts exactly two arguments"), r = t[0], a = t[1],
|
|
1742
|
+
t.length !== 2 && T(e, "TAG directive accepts exactly two arguments"), r = t[0], a = t[1], Wn.test(r) || T(e, "ill-formed tag handle (first argument) of the TAG directive"), Ee.call(e.tagMap, r) && T(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Yn.test(a) || T(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1743
1743
|
try {
|
|
1744
1744
|
a = decodeURIComponent(a);
|
|
1745
1745
|
} catch {
|
|
@@ -1888,7 +1888,7 @@ function Ro(e, n) {
|
|
|
1888
1888
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), K = e.input.charCodeAt(++e.position); K !== 0; ) {
|
|
1889
1889
|
if (oe(e, !0, n), K = e.input.charCodeAt(e.position), K === d)
|
|
1890
1890
|
return e.position++, e.tag = o, e.anchor = l, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
|
|
1891
|
-
t ? K === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), _ = w = R = null, c = y = !1, K === 63 && (u = e.input.charCodeAt(e.position + 1), ge(u) && (c = y = !0, e.position++, oe(e, !0, n))), r = e.line, a = e.lineStart, i = e.position,
|
|
1891
|
+
t ? K === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), _ = w = R = null, c = y = !1, K === 63 && (u = e.input.charCodeAt(e.position + 1), ge(u) && (c = y = !0, e.position++, oe(e, !0, n))), r = e.line, a = e.lineStart, i = e.position, Ge(e, n, at, !1, !0), _ = e.tag, w = e.result, oe(e, !0, n), K = e.input.charCodeAt(e.position), (y || e.line === r) && K === 58 && (c = !0, K = e.input.charCodeAt(++e.position), oe(e, !0, n), Ge(e, n, at, !1, !0), R = e.result), p ? De(e, s, A, _, w, R, r, a, i) : c ? s.push(De(e, null, A, _, w, R, r, a, i)) : s.push(w), oe(e, !0, n), K = e.input.charCodeAt(e.position), K === 44 ? (t = !0, K = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1892
1892
|
}
|
|
1893
1893
|
T(e, "unexpected end of the stream within a flow collection");
|
|
1894
1894
|
}
|
|
@@ -1948,7 +1948,7 @@ function rn(e, n) {
|
|
|
1948
1948
|
i.push(null), l = e.input.charCodeAt(e.position);
|
|
1949
1949
|
continue;
|
|
1950
1950
|
}
|
|
1951
|
-
if (t = e.line,
|
|
1951
|
+
if (t = e.line, Ge(e, n, Hn, !1, !0), i.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
|
|
1952
1952
|
T(e, "bad indentation of a sequence entry");
|
|
1953
1953
|
else if (e.lineIndent < n)
|
|
1954
1954
|
break;
|
|
@@ -1963,7 +1963,7 @@ function Do(e, n, t) {
|
|
|
1963
1963
|
if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (K === 63 || K === 58) && ge(r))
|
|
1964
1964
|
K === 63 ? (_ && (De(e, c, y, p, A, null, o, s, l), p = A = w = null), R = !0, _ = !0, a = !0) : _ ? (_ = !1, a = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, K = r;
|
|
1965
1965
|
else {
|
|
1966
|
-
if (o = e.line, s = e.lineStart, l = e.position, !
|
|
1966
|
+
if (o = e.line, s = e.lineStart, l = e.position, !Ge(e, t, Jn, !1, !0))
|
|
1967
1967
|
break;
|
|
1968
1968
|
if (e.line === i) {
|
|
1969
1969
|
for (K = e.input.charCodeAt(e.position); qe(K); )
|
|
@@ -1979,14 +1979,14 @@ function Do(e, n, t) {
|
|
|
1979
1979
|
else
|
|
1980
1980
|
return e.tag = u, e.anchor = d, !0;
|
|
1981
1981
|
}
|
|
1982
|
-
if ((e.line === i || e.lineIndent > n) && (_ && (o = e.line, s = e.lineStart, l = e.position),
|
|
1982
|
+
if ((e.line === i || e.lineIndent > n) && (_ && (o = e.line, s = e.lineStart, l = e.position), Ge(e, n, ot, !0, a) && (_ ? A = e.result : w = e.result), _ || (De(e, c, y, p, A, w, o, s, l), p = A = w = null), oe(e, !0, -1), K = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > n) && K !== 0)
|
|
1983
1983
|
T(e, "bad indentation of a mapping entry");
|
|
1984
1984
|
else if (e.lineIndent < n)
|
|
1985
1985
|
break;
|
|
1986
1986
|
}
|
|
1987
1987
|
return _ && De(e, c, y, p, A, null, o, s, l), R && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), R;
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function Go(e) {
|
|
1990
1990
|
var n, t = !1, r = !1, a, i, o;
|
|
1991
1991
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
1992
1992
|
return !1;
|
|
@@ -1997,10 +1997,10 @@ function zo(e) {
|
|
|
1997
1997
|
e.position < e.length ? (i = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
|
|
1998
1998
|
} else {
|
|
1999
1999
|
for (; o !== 0 && !ge(o); )
|
|
2000
|
-
o === 33 && (r ? T(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(n - 1, e.position + 1),
|
|
2000
|
+
o === 33 && (r ? T(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(n - 1, e.position + 1), Wn.test(a) || T(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2001
2001
|
i = e.input.slice(n, e.position), Oo.test(i) && T(e, "tag suffix cannot contain flow indicator characters");
|
|
2002
2002
|
}
|
|
2003
|
-
i && !
|
|
2003
|
+
i && !Yn.test(i) && T(e, "tag name cannot contain such characters: " + i);
|
|
2004
2004
|
try {
|
|
2005
2005
|
i = decodeURIComponent(i);
|
|
2006
2006
|
} catch {
|
|
@@ -2008,7 +2008,7 @@ function zo(e) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
return t ? e.tag = i : Ee.call(e.tagMap, a) ? e.tag = e.tagMap[a] + i : a === "!" ? e.tag = "!" + i : a === "!!" ? e.tag = "tag:yaml.org,2002:" + i : T(e, 'undeclared tag handle "' + a + '"'), !0;
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function zo(e) {
|
|
2012
2012
|
var n, t;
|
|
2013
2013
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2014
2014
|
return !1;
|
|
@@ -2024,10 +2024,10 @@ function Jo(e) {
|
|
|
2024
2024
|
r = e.input.charCodeAt(++e.position);
|
|
2025
2025
|
return e.position === n && T(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Ee.call(e.anchorMap, t) || T(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2027
|
+
function Ge(e, n, t, r, a) {
|
|
2028
2028
|
var i, o, s, l = 1, u = !1, d = !1, c, y, p, A, w, _;
|
|
2029
2029
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = s = ot === t || Hn === t, r && oe(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2030
|
-
for (;
|
|
2030
|
+
for (; Go(e) || zo(e); )
|
|
2031
2031
|
oe(e, !0, -1) ? (u = !0, s = i, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2032
2032
|
if (s && (s = u || a), (l === 1 || ot === t) && (at === t || Jn === t ? w = n : w = n + 1, _ = e.position - e.lineStart, l === 1 ? s && (rn(e, _) || Do(e, _, w)) || Ro(e, w) ? d = !0 : (o && Vo(e, w) || Uo(e, w) || Po(e, w) ? d = !0 : Jo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Bo(e, w, at === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && rn(e, _))), e.tag === null)
|
|
2033
2033
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
@@ -2072,7 +2072,7 @@ function Ho(e) {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
o !== 0 && Nt(e), Ee.call(tn, r) ? tn[r](e, r, a) : it(e, 'unknown document directive "' + r + '"');
|
|
2074
2074
|
}
|
|
2075
|
-
if (oe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, oe(e, !0, -1)) : i && T(e, "directives end mark is expected"),
|
|
2075
|
+
if (oe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, oe(e, !0, -1)) : i && T(e, "directives end mark is expected"), Ge(e, e.lineIndent - 1, ot, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Eo.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && gt(e)) {
|
|
2076
2076
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
|
|
2077
2077
|
return;
|
|
2078
2078
|
}
|
|
@@ -2091,7 +2091,7 @@ function er(e, n) {
|
|
|
2091
2091
|
Ho(t);
|
|
2092
2092
|
return t.documents;
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function Wo(e, n, t) {
|
|
2095
2095
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2096
2096
|
var r = er(e, t);
|
|
2097
2097
|
if (typeof n != "function")
|
|
@@ -2099,7 +2099,7 @@ function Yo(e, n, t) {
|
|
|
2099
2099
|
for (var a = 0, i = r.length; a < i; a += 1)
|
|
2100
2100
|
n(r[a]);
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function Yo(e, n) {
|
|
2103
2103
|
var t = er(e, n);
|
|
2104
2104
|
if (t.length !== 0) {
|
|
2105
2105
|
if (t.length === 1)
|
|
@@ -2107,7 +2107,7 @@ function Wo(e, n) {
|
|
|
2107
2107
|
throw new pe("expected a single document in the stream, but found more");
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
|
-
var Zo =
|
|
2110
|
+
var Zo = Wo, Qo = Yo, tr = {
|
|
2111
2111
|
loadAll: Zo,
|
|
2112
2112
|
load: Qo
|
|
2113
2113
|
}, nr = Object.prototype.toString, rr = Object.prototype.hasOwnProperty, qt = 65279, Xo = 9, Qe = 10, ei = 13, ti = 32, ni = 33, ri = 34, xt = 35, ai = 37, oi = 38, ii = 39, si = 42, ar = 44, li = 45, st = 58, ui = 61, ci = 62, di = 63, pi = 64, or = 91, ir = 93, fi = 96, sr = 123, mi = 124, lr = 125, de = {};
|
|
@@ -2211,7 +2211,7 @@ function wi(e) {
|
|
|
2211
2211
|
function _i(e) {
|
|
2212
2212
|
return !lt(e) && e !== st;
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function Ye(e, n) {
|
|
2215
2215
|
var t = e.charCodeAt(n), r;
|
|
2216
2216
|
return t >= 55296 && t <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (t - 55296) * 1024 + r - 56320 + 65536 : t;
|
|
2217
2217
|
}
|
|
@@ -2221,16 +2221,16 @@ function ur(e) {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
var cr = 1, St = 2, dr = 3, pr = 4, Re = 5;
|
|
2223
2223
|
function Ai(e, n, t, r, a, i, o, s) {
|
|
2224
|
-
var l, u = 0, d = null, c = !1, y = !1, p = r !== -1, A = -1, w = wi(
|
|
2224
|
+
var l, u = 0, d = null, c = !1, y = !1, p = r !== -1, A = -1, w = wi(Ye(e, 0)) && _i(Ye(e, e.length - 1));
|
|
2225
2225
|
if (n || o)
|
|
2226
2226
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2227
|
-
if (u =
|
|
2227
|
+
if (u = Ye(e, l), !et(u))
|
|
2228
2228
|
return Re;
|
|
2229
2229
|
w = w && sn(u, d, s), d = u;
|
|
2230
2230
|
}
|
|
2231
2231
|
else {
|
|
2232
2232
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2233
|
-
if (u =
|
|
2233
|
+
if (u = Ye(e, l), u === Qe)
|
|
2234
2234
|
c = !0, p && (y = y || // Foldable line = too long, and not more-indented.
|
|
2235
2235
|
l - A - 1 > r && e[A + 1] !== " ", A = l);
|
|
2236
2236
|
else if (!et(u))
|
|
@@ -2313,7 +2313,7 @@ function cn(e, n) {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
function Si(e) {
|
|
2315
2315
|
for (var n = "", t = 0, r, a = 0; a < e.length; t >= 65536 ? a += 2 : a++)
|
|
2316
|
-
t =
|
|
2316
|
+
t = Ye(e, a), r = de[t], !r && et(t) ? (n += e[a], t >= 65536 && (n += e[a + 1])) : n += r || vi(t);
|
|
2317
2317
|
return n;
|
|
2318
2318
|
}
|
|
2319
2319
|
function $i(e, n, t) {
|
|
@@ -2422,13 +2422,13 @@ function Kt(e, n) {
|
|
|
2422
2422
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2423
2423
|
};
|
|
2424
2424
|
}
|
|
2425
|
-
var Fi = ue, qi = $n, Ki = En, Li = Kn, Bi = Ln, Ui = Ot, Pi = tr.load, Ri = tr.loadAll, Vi = Ni.dump, Di = pe,
|
|
2425
|
+
var Fi = ue, qi = $n, Ki = En, Li = Kn, Bi = Ln, Ui = Ot, Pi = tr.load, Ri = tr.loadAll, Vi = Ni.dump, Di = pe, Gi = {
|
|
2426
2426
|
binary: Vn,
|
|
2427
2427
|
float: qn,
|
|
2428
2428
|
map: Mn,
|
|
2429
2429
|
null: On,
|
|
2430
|
-
pairs:
|
|
2431
|
-
set:
|
|
2430
|
+
pairs: Gn,
|
|
2431
|
+
set: zn,
|
|
2432
2432
|
timestamp: Pn,
|
|
2433
2433
|
bool: Nn,
|
|
2434
2434
|
int: Fn,
|
|
@@ -2436,7 +2436,7 @@ var Fi = ue, qi = $n, Ki = En, Li = Kn, Bi = Ln, Ui = Ot, Pi = tr.load, Ri = tr.
|
|
|
2436
2436
|
omap: Dn,
|
|
2437
2437
|
seq: jn,
|
|
2438
2438
|
str: Tn
|
|
2439
|
-
},
|
|
2439
|
+
}, zi = Kt("safeLoad", "load"), Ji = Kt("safeLoadAll", "loadAll"), Hi = Kt("safeDump", "dump"), Wi = {
|
|
2440
2440
|
Type: Fi,
|
|
2441
2441
|
Schema: qi,
|
|
2442
2442
|
FAILSAFE_SCHEMA: Ki,
|
|
@@ -2447,12 +2447,12 @@ var Fi = ue, qi = $n, Ki = En, Li = Kn, Bi = Ln, Ui = Ot, Pi = tr.load, Ri = tr.
|
|
|
2447
2447
|
loadAll: Ri,
|
|
2448
2448
|
dump: Vi,
|
|
2449
2449
|
YAMLException: Di,
|
|
2450
|
-
types:
|
|
2451
|
-
safeLoad:
|
|
2450
|
+
types: Gi,
|
|
2451
|
+
safeLoad: zi,
|
|
2452
2452
|
safeLoadAll: Ji,
|
|
2453
2453
|
safeDump: Hi
|
|
2454
2454
|
};
|
|
2455
|
-
const
|
|
2455
|
+
const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
2456
2456
|
__name: "YamlCodeBlock",
|
|
2457
2457
|
props: {
|
|
2458
2458
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2464,18 +2464,18 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2464
2464
|
setup(e) {
|
|
2465
2465
|
const n = e, t = I(() => {
|
|
2466
2466
|
const r = Object.fromEntries(Object.entries(n.yamlRecord).filter(([, a]) => a && (Array.isArray(a) ? a.length !== 0 : !0)));
|
|
2467
|
-
return Object.keys(r).length === 0 && r.constructor === Object ? "" :
|
|
2467
|
+
return Object.keys(r).length === 0 && r.constructor === Object ? "" : Wi.dump(r).trim();
|
|
2468
2468
|
});
|
|
2469
2469
|
return (r, a) => {
|
|
2470
2470
|
const i = P("KCodeBlock");
|
|
2471
|
-
return m(), M("div",
|
|
2471
|
+
return m(), M("div", Yi, [
|
|
2472
2472
|
n.yamlRecord ? (m(), D(i, {
|
|
2473
2473
|
key: 0,
|
|
2474
2474
|
id: "yaml-codeblock",
|
|
2475
2475
|
code: t.value,
|
|
2476
2476
|
language: "yaml",
|
|
2477
2477
|
theme: "dark"
|
|
2478
|
-
}, null, 8, ["code"])) :
|
|
2478
|
+
}, null, 8, ["code"])) : W("", !0)
|
|
2479
2479
|
]);
|
|
2480
2480
|
};
|
|
2481
2481
|
}
|
|
@@ -2537,7 +2537,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2537
2537
|
class: Me(`config-card-details-${l}-props`),
|
|
2538
2538
|
"data-testid": `config-card-details-${l}-props`
|
|
2539
2539
|
}, [
|
|
2540
|
-
l !== "basic" ? (m(), M("div", Xi, F(l === "advanced" ? h(r)("baseConfigCard.sections.advanced") : h(r)("baseConfigCard.sections.plugin")), 1)) :
|
|
2540
|
+
l !== "basic" ? (m(), M("div", Xi, F(l === "advanced" ? h(r)("baseConfigCard.sections.advanced") : h(r)("baseConfigCard.sections.plugin")), 1)) : W("", !0),
|
|
2541
2541
|
(m(!0), M(ve, null, ye(e.propertyCollections[l], (u) => (m(), D(An, {
|
|
2542
2542
|
key: u.key,
|
|
2543
2543
|
item: u
|
|
@@ -2562,18 +2562,18 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2562
2562
|
} : void 0
|
|
2563
2563
|
]), 1032, ["item"]))), 128))
|
|
2564
2564
|
], 10, Qi))), 128))
|
|
2565
|
-
])) :
|
|
2565
|
+
])) : W("", !0),
|
|
2566
2566
|
e.format === "json" && n.record ? (m(), D(xn, {
|
|
2567
2567
|
key: 1,
|
|
2568
2568
|
config: n.config,
|
|
2569
2569
|
"fetcher-url": n.fetcherUrl,
|
|
2570
2570
|
"json-record": i.value,
|
|
2571
2571
|
"request-method": "get"
|
|
2572
|
-
}, null, 8, ["config", "fetcher-url", "json-record"])) :
|
|
2572
|
+
}, null, 8, ["config", "fetcher-url", "json-record"])) : W("", !0),
|
|
2573
2573
|
e.format === "yaml" && n.record ? (m(), D(fr, {
|
|
2574
2574
|
key: 2,
|
|
2575
2575
|
"yaml-record": i.value
|
|
2576
|
-
}, null, 8, ["yaml-record"])) :
|
|
2576
|
+
}, null, 8, ["yaml-record"])) : W("", !0)
|
|
2577
2577
|
], 64));
|
|
2578
2578
|
}
|
|
2579
2579
|
}), ts = /* @__PURE__ */ be(es, [["__scopeId", "data-v-147a2f70"]]), Oe = "24px", ht = (e, n) => {
|
|
@@ -2673,7 +2673,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2673
2673
|
width: "100%",
|
|
2674
2674
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2675
2675
|
}, [
|
|
2676
|
-
e.title ? (m(), M("title", as, F(e.title), 1)) :
|
|
2676
|
+
e.title ? (m(), M("title", as, F(e.title), 1)) : W("", !0),
|
|
2677
2677
|
os
|
|
2678
2678
|
], 8, rs))
|
|
2679
2679
|
]),
|
|
@@ -2772,7 +2772,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2772
2772
|
width: "100%",
|
|
2773
2773
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2774
2774
|
}, [
|
|
2775
|
-
e.title ? (m(), M("title", cs, F(e.title), 1)) :
|
|
2775
|
+
e.title ? (m(), M("title", cs, F(e.title), 1)) : W("", !0),
|
|
2776
2776
|
ds
|
|
2777
2777
|
], 8, us))
|
|
2778
2778
|
]),
|
|
@@ -2871,7 +2871,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2871
2871
|
width: "100%",
|
|
2872
2872
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2873
2873
|
}, [
|
|
2874
|
-
e.title ? (m(), M("title", hs, F(e.title), 1)) :
|
|
2874
|
+
e.title ? (m(), M("title", hs, F(e.title), 1)) : W("", !0),
|
|
2875
2875
|
ys
|
|
2876
2876
|
], 8, gs))
|
|
2877
2877
|
]),
|
|
@@ -2970,7 +2970,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2970
2970
|
width: "100%",
|
|
2971
2971
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2972
2972
|
}, [
|
|
2973
|
-
e.title ? (m(), M("title", ws, F(e.title), 1)) :
|
|
2973
|
+
e.title ? (m(), M("title", ws, F(e.title), 1)) : W("", !0),
|
|
2974
2974
|
_s
|
|
2975
2975
|
], 8, Cs))
|
|
2976
2976
|
]),
|
|
@@ -3113,11 +3113,11 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3113
3113
|
var g, q, L;
|
|
3114
3114
|
if (!_.value)
|
|
3115
3115
|
return [];
|
|
3116
|
-
const x = [],
|
|
3116
|
+
const x = [], z = Object.keys(_.value).length;
|
|
3117
3117
|
for (const E in _.value) {
|
|
3118
3118
|
const k = (q = (g = a.configSchema) == null ? void 0 : g[E]) == null ? void 0 : q.order, j = (L = y[E]) == null ? void 0 : L.order;
|
|
3119
|
-
let O =
|
|
3120
|
-
(j || j === 0) && (O = j === -1 ?
|
|
3119
|
+
let O = z;
|
|
3120
|
+
(j || j === 0) && (O = j === -1 ? z + 1 : j), k && (O = k === -1 ? z + 1 : k), x.push([E, O]);
|
|
3121
3121
|
}
|
|
3122
3122
|
return x.sort(function(E, k) {
|
|
3123
3123
|
return E[1] - k[1];
|
|
@@ -3138,15 +3138,15 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3138
3138
|
var g, q;
|
|
3139
3139
|
if (!_.value || !a.pluginConfigKey)
|
|
3140
3140
|
return [];
|
|
3141
|
-
const L = _.value[a.pluginConfigKey] || {}, x = Object.keys(L).length,
|
|
3141
|
+
const L = _.value[a.pluginConfigKey] || {}, x = Object.keys(L).length, z = [];
|
|
3142
3142
|
for (const E in L) {
|
|
3143
3143
|
const k = (q = (g = a.pluginConfigSchema) == null ? void 0 : g[E]) == null ? void 0 : q.order, j = L[E];
|
|
3144
3144
|
let O = j != null && j !== "" ? x - 1 : x;
|
|
3145
|
-
k && (O = k === -1 ? x + 1 : k),
|
|
3145
|
+
k && (O = k === -1 ? x + 1 : k), z.push([E, O]);
|
|
3146
3146
|
}
|
|
3147
|
-
return
|
|
3147
|
+
return z.sort(function(E, k) {
|
|
3148
3148
|
return E[1] - k[1];
|
|
3149
|
-
}),
|
|
3149
|
+
}), z.map((E) => {
|
|
3150
3150
|
var k;
|
|
3151
3151
|
const j = E[0], O = L[j], J = ((k = a.pluginConfigSchema) == null ? void 0 : k[j]) || {};
|
|
3152
3152
|
return {
|
|
@@ -3159,16 +3159,16 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3159
3159
|
section: he.Plugin
|
|
3160
3160
|
};
|
|
3161
3161
|
}).filter((E) => !E.hidden);
|
|
3162
|
-
}),
|
|
3162
|
+
}), Y = I(() => {
|
|
3163
3163
|
var g, q, L, x;
|
|
3164
3164
|
return {
|
|
3165
|
-
basic: (g = R.value) == null ? void 0 : g.filter((
|
|
3166
|
-
advanced: (q = R.value) == null ? void 0 : q.filter((
|
|
3167
|
-
plugin: (x = K.value) == null ? void 0 : x.concat((L = R.value) == null ? void 0 : L.filter((
|
|
3165
|
+
basic: (g = R.value) == null ? void 0 : g.filter((z) => z.section === he.Basic),
|
|
3166
|
+
advanced: (q = R.value) == null ? void 0 : q.filter((z) => z.section === he.Advanced),
|
|
3167
|
+
plugin: (x = K.value) == null ? void 0 : x.concat((L = R.value) == null ? void 0 : L.filter((z) => z.section === he.Plugin))
|
|
3168
3168
|
};
|
|
3169
3169
|
}), v = I(() => {
|
|
3170
3170
|
const g = [];
|
|
3171
|
-
return
|
|
3171
|
+
return Y.value.basic.length && g.push("basic"), Y.value.advanced.length && g.push("advanced"), Y.value.plugin.length && g.push("plugin"), g;
|
|
3172
3172
|
}), f = I(() => {
|
|
3173
3173
|
var g, q;
|
|
3174
3174
|
let L = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
@@ -3197,7 +3197,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3197
3197
|
p.value = !1;
|
|
3198
3198
|
}
|
|
3199
3199
|
}), (g, q) => {
|
|
3200
|
-
const L = P("KLabel"), x = P("KSelect"),
|
|
3200
|
+
const L = P("KLabel"), x = P("KSelect"), z = P("KButton"), E = P("KSkeleton"), k = P("KEmptyState"), j = P("KCard");
|
|
3201
3201
|
return m(), D(j, {
|
|
3202
3202
|
class: "kong-ui-entity-base-config-card",
|
|
3203
3203
|
"title-tag": e.titleTag
|
|
@@ -3219,7 +3219,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3219
3219
|
items: u,
|
|
3220
3220
|
onChange: c
|
|
3221
3221
|
}),
|
|
3222
|
-
e.configCardDoc ? (m(), D(
|
|
3222
|
+
e.configCardDoc ? (m(), D(z, {
|
|
3223
3223
|
key: 0,
|
|
3224
3224
|
appearance: "tertiary",
|
|
3225
3225
|
class: "book-icon",
|
|
@@ -3235,7 +3235,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3235
3235
|
], 8, $s)
|
|
3236
3236
|
]),
|
|
3237
3237
|
_: 1
|
|
3238
|
-
})) :
|
|
3238
|
+
})) : W("", !0)
|
|
3239
3239
|
])
|
|
3240
3240
|
]),
|
|
3241
3241
|
default: b(() => [
|
|
@@ -3253,14 +3253,14 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3253
3253
|
B("h3", null, F(w.value), 1)
|
|
3254
3254
|
]),
|
|
3255
3255
|
_: 1
|
|
3256
|
-
})) :
|
|
3256
|
+
})) : W("", !0),
|
|
3257
3257
|
B("div", Ts, [
|
|
3258
3258
|
$(ts, {
|
|
3259
3259
|
config: e.config,
|
|
3260
3260
|
"fetcher-url": f.value,
|
|
3261
3261
|
format: d.value,
|
|
3262
3262
|
"prop-list-types": v.value,
|
|
3263
|
-
"property-collections":
|
|
3263
|
+
"property-collections": Y.value,
|
|
3264
3264
|
record: _.value
|
|
3265
3265
|
}, Ke({ _: 2 }, [
|
|
3266
3266
|
ye(Object.keys(g.$slots), (O) => ({
|
|
@@ -3291,10 +3291,10 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3291
3291
|
]), 1032, ["title-tag"]);
|
|
3292
3292
|
};
|
|
3293
3293
|
}
|
|
3294
|
-
}), Ms = /* @__PURE__ */ be(js, [["__scopeId", "data-v-f40a683b"]]), Es =
|
|
3294
|
+
}), Ms = /* @__PURE__ */ be(js, [["__scopeId", "data-v-f40a683b"]]), Es = {
|
|
3295
3295
|
class: "form-actions",
|
|
3296
3296
|
"data-testid": "form-actions"
|
|
3297
|
-
},
|
|
3297
|
+
}, Os = /* @__PURE__ */ X({
|
|
3298
3298
|
__name: "EntityBaseForm",
|
|
3299
3299
|
props: {
|
|
3300
3300
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3344,13 +3344,6 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3344
3344
|
formFields: {
|
|
3345
3345
|
type: Object,
|
|
3346
3346
|
required: !0
|
|
3347
|
-
},
|
|
3348
|
-
/**
|
|
3349
|
-
* Set true to disable the form validation upon submission.
|
|
3350
|
-
*/
|
|
3351
|
-
noValidate: {
|
|
3352
|
-
type: Boolean,
|
|
3353
|
-
default: !1
|
|
3354
3347
|
}
|
|
3355
3348
|
},
|
|
3356
3349
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
@@ -3368,7 +3361,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3368
3361
|
r("cancel");
|
|
3369
3362
|
}, K = () => {
|
|
3370
3363
|
y.value || r("submit");
|
|
3371
|
-
},
|
|
3364
|
+
}, Y = N([
|
|
3372
3365
|
{
|
|
3373
3366
|
title: o("baseForm.configuration.yaml"),
|
|
3374
3367
|
hash: "#yaml"
|
|
@@ -3393,7 +3386,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3393
3386
|
u.value = !1;
|
|
3394
3387
|
}
|
|
3395
3388
|
}), (v, f) => {
|
|
3396
|
-
const g = P("KSkeleton"), q = P("KEmptyState"), L = P("KAlert"), x = P("KButton"),
|
|
3389
|
+
const g = P("KSkeleton"), q = P("KEmptyState"), L = P("KAlert"), x = P("KButton"), z = P("KTabs"), E = P("KSlideout"), k = P("KCard");
|
|
3397
3390
|
return m(), D(k, { class: "kong-ui-entity-base-form" }, {
|
|
3398
3391
|
default: b(() => [
|
|
3399
3392
|
u.value ? (m(), D(g, {
|
|
@@ -3413,7 +3406,6 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3413
3406
|
}, 8, ["action-button-text"])) : (m(), M("form", {
|
|
3414
3407
|
key: 2,
|
|
3415
3408
|
"data-testid": "form-content",
|
|
3416
|
-
novalidate: a.noValidate,
|
|
3417
3409
|
onReset: _t(R, ["prevent"]),
|
|
3418
3410
|
onSubmit: _t(K, ["prevent"])
|
|
3419
3411
|
}, [
|
|
@@ -3423,8 +3415,8 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3423
3415
|
appearance: "danger",
|
|
3424
3416
|
"data-testid": "form-error",
|
|
3425
3417
|
message: e.errorMessage
|
|
3426
|
-
}, null, 8, ["message"])) :
|
|
3427
|
-
B("div",
|
|
3418
|
+
}, null, 8, ["message"])) : W("", !0),
|
|
3419
|
+
B("div", Es, [
|
|
3428
3420
|
ne(v.$slots, "form-actions", {}, () => [
|
|
3429
3421
|
$(x, {
|
|
3430
3422
|
appearance: "tertiary",
|
|
@@ -3460,7 +3452,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3460
3452
|
}, 8, ["disabled"])
|
|
3461
3453
|
], !0)
|
|
3462
3454
|
])
|
|
3463
|
-
],
|
|
3455
|
+
], 32)),
|
|
3464
3456
|
$(E, {
|
|
3465
3457
|
"close-on-blur": !1,
|
|
3466
3458
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3472,9 +3464,9 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3472
3464
|
}, {
|
|
3473
3465
|
default: b(() => [
|
|
3474
3466
|
B("div", null, F(h(o)("baseForm.configuration.message")), 1),
|
|
3475
|
-
$(
|
|
3467
|
+
$(z, {
|
|
3476
3468
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3477
|
-
tabs:
|
|
3469
|
+
tabs: Y.value
|
|
3478
3470
|
}, {
|
|
3479
3471
|
json: b(() => [
|
|
3480
3472
|
$(xn, {
|
|
@@ -3499,10 +3491,10 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3499
3491
|
});
|
|
3500
3492
|
};
|
|
3501
3493
|
}
|
|
3502
|
-
}),
|
|
3494
|
+
}), Ns = /* @__PURE__ */ be(Os, [["__scopeId", "data-v-46e6a6e5"]]), Fs = {
|
|
3503
3495
|
key: 0,
|
|
3504
3496
|
"data-testid": "first-col"
|
|
3505
|
-
},
|
|
3497
|
+
}, qs = /* @__PURE__ */ X({
|
|
3506
3498
|
__name: "EntityBaseTableCell",
|
|
3507
3499
|
props: {
|
|
3508
3500
|
keyName: {
|
|
@@ -3558,7 +3550,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3558
3550
|
ref: l,
|
|
3559
3551
|
class: "content-wrapper"
|
|
3560
3552
|
}, [
|
|
3561
|
-
a.value ? (m(), M("span",
|
|
3553
|
+
a.value ? (m(), M("span", Fs, [
|
|
3562
3554
|
$(R, {
|
|
3563
3555
|
"max-width": "300",
|
|
3564
3556
|
placement: "bottomStart",
|
|
@@ -3573,10 +3565,10 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3573
3565
|
], 512);
|
|
3574
3566
|
};
|
|
3575
3567
|
}
|
|
3576
|
-
}),
|
|
3568
|
+
}), Ks = /* @__PURE__ */ be(qs, [["__scopeId", "data-v-c4379fd4"]]), Ls = { class: "toolbar-container" }, Bs = {
|
|
3577
3569
|
key: 0,
|
|
3578
3570
|
class: "toolbar-button-container"
|
|
3579
|
-
},
|
|
3571
|
+
}, Us = ["data-testid"], Ps = /* @__PURE__ */ X({
|
|
3580
3572
|
__name: "EntityBaseTable",
|
|
3581
3573
|
props: {
|
|
3582
3574
|
// table header configuration
|
|
@@ -3739,7 +3731,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3739
3731
|
r("click:row", g);
|
|
3740
3732
|
}), _ = (f) => {
|
|
3741
3733
|
r("sort", f);
|
|
3742
|
-
}, { setTablePreferences: R, getTablePreferences: K } = Er(),
|
|
3734
|
+
}, { setTablePreferences: R, getTablePreferences: K } = Er(), Y = I(() => {
|
|
3743
3735
|
const f = K(t.preferencesStorageKey);
|
|
3744
3736
|
return {
|
|
3745
3737
|
...t.initialFetcherParams,
|
|
@@ -3749,14 +3741,14 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3749
3741
|
t.preferencesStorageKey && R(t.preferencesStorageKey, f);
|
|
3750
3742
|
};
|
|
3751
3743
|
return (f, g) => {
|
|
3752
|
-
const q = P("KIcon"), L = P("KButton"), x = P("KDropdown"),
|
|
3744
|
+
const q = P("KIcon"), L = P("KButton"), x = P("KDropdown"), z = P("KTable"), E = P("KCard");
|
|
3753
3745
|
return m(), D(E, {
|
|
3754
3746
|
class: "kong-ui-entity-base-table",
|
|
3755
3747
|
title: e.title,
|
|
3756
3748
|
"title-tag": e.titleTag
|
|
3757
3749
|
}, {
|
|
3758
3750
|
default: b(() => [
|
|
3759
|
-
$(
|
|
3751
|
+
$(z, {
|
|
3760
3752
|
ref_key: "tableRefs",
|
|
3761
3753
|
ref: d,
|
|
3762
3754
|
"cache-identifier": o.value,
|
|
@@ -3776,7 +3768,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3776
3768
|
"has-error": i.value.hasError,
|
|
3777
3769
|
headers: l.value,
|
|
3778
3770
|
"hide-pagination-when-optional": "",
|
|
3779
|
-
"initial-fetcher-params":
|
|
3771
|
+
"initial-fetcher-params": Y.value,
|
|
3780
3772
|
"is-loading": e.isLoading,
|
|
3781
3773
|
"pagination-type": e.paginationType,
|
|
3782
3774
|
"row-attrs": u,
|
|
@@ -3787,11 +3779,11 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3787
3779
|
"onUpdate:tablePreferences": v
|
|
3788
3780
|
}, Ke({
|
|
3789
3781
|
toolbar: b(({ state: k }) => [
|
|
3790
|
-
Se(B("div",
|
|
3782
|
+
Se(B("div", Ls, [
|
|
3791
3783
|
ne(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3792
|
-
f.$slots["toolbar-button"] ? (m(), M("div",
|
|
3784
|
+
f.$slots["toolbar-button"] ? (m(), M("div", Bs, [
|
|
3793
3785
|
ne(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3794
|
-
])) :
|
|
3786
|
+
])) : W("", !0)
|
|
3795
3787
|
], 512), [
|
|
3796
3788
|
[$e, s(k)]
|
|
3797
3789
|
])
|
|
@@ -3830,14 +3822,14 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3830
3822
|
]),
|
|
3831
3823
|
_: 2
|
|
3832
3824
|
}, 1032, ["width"])
|
|
3833
|
-
], 8,
|
|
3825
|
+
], 8, Us)
|
|
3834
3826
|
]),
|
|
3835
3827
|
_: 2
|
|
3836
3828
|
}, [
|
|
3837
3829
|
ye(e.tableHeaders, (k, j) => ({
|
|
3838
3830
|
name: j,
|
|
3839
3831
|
fn: b(({ row: O, rowKey: J, rowValue: te }) => [
|
|
3840
|
-
$(
|
|
3832
|
+
$(Ks, {
|
|
3841
3833
|
"key-name": String(j),
|
|
3842
3834
|
"row-el": c(O)
|
|
3843
3835
|
}, {
|
|
@@ -3867,10 +3859,10 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3867
3859
|
}, 8, ["title", "title-tag"]);
|
|
3868
3860
|
};
|
|
3869
3861
|
}
|
|
3870
|
-
}),
|
|
3862
|
+
}), Rs = /* @__PURE__ */ be(Ps, [["__scopeId", "data-v-99908c24"]]), Vs = {
|
|
3871
3863
|
key: 0,
|
|
3872
3864
|
class: "kong-ui-entity-delete-error"
|
|
3873
|
-
},
|
|
3865
|
+
}, Ds = {
|
|
3874
3866
|
key: 1,
|
|
3875
3867
|
class: "description"
|
|
3876
3868
|
}, Gs = /* @__PURE__ */ X({
|
|
@@ -3931,14 +3923,14 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3931
3923
|
onProceed: s
|
|
3932
3924
|
}, {
|
|
3933
3925
|
default: b(() => [
|
|
3934
|
-
e.error ? (m(), M("div",
|
|
3926
|
+
e.error ? (m(), M("div", Vs, [
|
|
3935
3927
|
$(d, { appearance: "danger" }, {
|
|
3936
3928
|
default: b(() => [
|
|
3937
3929
|
Z(F(e.error), 1)
|
|
3938
3930
|
]),
|
|
3939
3931
|
_: 1
|
|
3940
3932
|
})
|
|
3941
|
-
])) :
|
|
3933
|
+
])) : W("", !0),
|
|
3942
3934
|
$(h(t), {
|
|
3943
3935
|
class: "message",
|
|
3944
3936
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
@@ -3957,23 +3949,23 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3957
3949
|
key: "0"
|
|
3958
3950
|
} : void 0
|
|
3959
3951
|
]), 1032, ["keypath"]),
|
|
3960
|
-
r.description || l.$slots.description ? (m(), M("div",
|
|
3952
|
+
r.description || l.$slots.description ? (m(), M("div", Ds, [
|
|
3961
3953
|
ne(l.$slots, "description", {}, () => [
|
|
3962
3954
|
B("p", null, F(r.description), 1)
|
|
3963
3955
|
], !0)
|
|
3964
|
-
])) :
|
|
3956
|
+
])) : W("", !0)
|
|
3965
3957
|
]),
|
|
3966
3958
|
_: 3
|
|
3967
3959
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3968
3960
|
};
|
|
3969
3961
|
}
|
|
3970
|
-
}),
|
|
3962
|
+
}), zs = /* @__PURE__ */ be(Gs, [["__scopeId", "data-v-4361d622"]]), Js = {
|
|
3971
3963
|
fill: "none",
|
|
3972
3964
|
height: "20",
|
|
3973
3965
|
viewBox: "0 0 20 20",
|
|
3974
3966
|
width: "20",
|
|
3975
3967
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3976
|
-
},
|
|
3968
|
+
}, Hs = {
|
|
3977
3969
|
id: "mask0_180_20349",
|
|
3978
3970
|
height: "20",
|
|
3979
3971
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3981,7 +3973,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3981
3973
|
width: "20",
|
|
3982
3974
|
x: "0",
|
|
3983
3975
|
y: "0"
|
|
3984
|
-
}, Ws = ["fill"],
|
|
3976
|
+
}, Ws = ["fill"], Ys = { mask: "url(#mask0_180_20349)" }, Zs = ["fill"], fn = /* @__PURE__ */ X({
|
|
3985
3977
|
__name: "IconFilter",
|
|
3986
3978
|
props: {
|
|
3987
3979
|
color: {
|
|
@@ -3990,26 +3982,26 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3990
3982
|
}
|
|
3991
3983
|
},
|
|
3992
3984
|
setup(e) {
|
|
3993
|
-
return (n, t) => (m(), M("svg",
|
|
3994
|
-
B("mask",
|
|
3985
|
+
return (n, t) => (m(), M("svg", Js, [
|
|
3986
|
+
B("mask", Hs, [
|
|
3995
3987
|
B("rect", {
|
|
3996
3988
|
fill: e.color,
|
|
3997
3989
|
height: "20",
|
|
3998
3990
|
width: "20"
|
|
3999
3991
|
}, null, 8, Ws)
|
|
4000
3992
|
]),
|
|
4001
|
-
B("g",
|
|
3993
|
+
B("g", Ys, [
|
|
4002
3994
|
B("path", {
|
|
4003
3995
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4004
3996
|
fill: e.color
|
|
4005
|
-
}, null, 8,
|
|
3997
|
+
}, null, 8, Zs)
|
|
4006
3998
|
])
|
|
4007
3999
|
]));
|
|
4008
4000
|
}
|
|
4009
|
-
}),
|
|
4001
|
+
}), Qs = {
|
|
4010
4002
|
key: 1,
|
|
4011
4003
|
class: "kong-ui-entity-filter"
|
|
4012
|
-
},
|
|
4004
|
+
}, Xs = { class: "kong-ui-entity-filter-menu" }, el = ["data-testid"], tl = ["onClick", "onKeydown"], nl = { class: "menu-item-indicator" }, rl = { class: "menu-item-body" }, al = ["for"], ol = { class: "menu-item-buttons" }, il = { class: "filter-clear-button-container" }, sl = /* @__PURE__ */ X({
|
|
4013
4005
|
__name: "EntityFilter",
|
|
4014
4006
|
props: {
|
|
4015
4007
|
// filter config, either exact match or fuzzy match
|
|
@@ -4068,10 +4060,10 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4068
4060
|
o.value = {
|
|
4069
4061
|
...o.value,
|
|
4070
4062
|
[v]: ""
|
|
4071
|
-
},
|
|
4063
|
+
}, Y();
|
|
4072
4064
|
}, K = () => {
|
|
4073
|
-
o.value = {},
|
|
4074
|
-
},
|
|
4065
|
+
o.value = {}, Y(!0);
|
|
4066
|
+
}, Y = (v = !1) => {
|
|
4075
4067
|
const f = Object.keys(o.value).reduce((g, q) => (o.value[q] && (g[q] = `${o.value[q]}`), g), {});
|
|
4076
4068
|
v && (i.value = !1), a("update:modelValue", new URLSearchParams(f).toString());
|
|
4077
4069
|
};
|
|
@@ -4098,7 +4090,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4098
4090
|
])
|
|
4099
4091
|
]),
|
|
4100
4092
|
_: 1
|
|
4101
|
-
}, 8, ["model-value", "placeholder"])) : (m(), M("div",
|
|
4093
|
+
}, 8, ["model-value", "placeholder"])) : (m(), M("div", Qs, [
|
|
4102
4094
|
$(q, {
|
|
4103
4095
|
appearance: "tertiary",
|
|
4104
4096
|
"data-testid": "filter-button",
|
|
@@ -4116,9 +4108,9 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4116
4108
|
}, null, 512), [
|
|
4117
4109
|
[$e, i.value]
|
|
4118
4110
|
]),
|
|
4119
|
-
Se(B("div",
|
|
4111
|
+
Se(B("div", Xs, [
|
|
4120
4112
|
(m(!0), M(ve, null, ye(u.value, (x) => {
|
|
4121
|
-
var
|
|
4113
|
+
var z, E;
|
|
4122
4114
|
return m(), M("div", {
|
|
4123
4115
|
key: x.value,
|
|
4124
4116
|
class: "kong-ui-entity-filter-menu-item",
|
|
@@ -4132,20 +4124,20 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4132
4124
|
onKeydown: vr((k) => c(x.value), ["enter"])
|
|
4133
4125
|
}, [
|
|
4134
4126
|
Z(F(x.label) + " ", 1),
|
|
4135
|
-
Se(B("span",
|
|
4127
|
+
Se(B("span", nl, null, 512), [
|
|
4136
4128
|
[$e, l.value.includes(x.value)]
|
|
4137
4129
|
]),
|
|
4138
4130
|
$(h(bs), {
|
|
4139
4131
|
class: Me(["menu-item-expand-icon", { expanded: s.value.has(x.value) }]),
|
|
4140
4132
|
color: h(pa)
|
|
4141
4133
|
}, null, 8, ["class", "color"])
|
|
4142
|
-
], 42,
|
|
4143
|
-
Se(B("div",
|
|
4134
|
+
], 42, tl),
|
|
4135
|
+
Se(B("div", rl, [
|
|
4144
4136
|
B("label", {
|
|
4145
4137
|
class: "menu-item-label",
|
|
4146
4138
|
for: A(x.value)
|
|
4147
|
-
}, F(h(t)("filter.fieldLabel")), 9,
|
|
4148
|
-
((E = (
|
|
4139
|
+
}, F(h(t)("filter.fieldLabel")), 9, al),
|
|
4140
|
+
((E = (z = e.config.schema) == null ? void 0 : z[x.value]) == null ? void 0 : E.type) === "select" ? (m(), D(L, {
|
|
4149
4141
|
key: 0,
|
|
4150
4142
|
id: A(x.value),
|
|
4151
4143
|
modelValue: o.value[x.value],
|
|
@@ -4164,12 +4156,12 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4164
4156
|
], 512), [
|
|
4165
4157
|
[$e, s.value.has(x.value)]
|
|
4166
4158
|
]),
|
|
4167
|
-
Se(B("div",
|
|
4159
|
+
Se(B("div", ol, [
|
|
4168
4160
|
$(q, {
|
|
4169
4161
|
appearance: "tertiary",
|
|
4170
4162
|
"data-testid": "apply-filter",
|
|
4171
4163
|
size: "small",
|
|
4172
|
-
onClick: f[0] || (f[0] = (k) =>
|
|
4164
|
+
onClick: f[0] || (f[0] = (k) => Y(!0))
|
|
4173
4165
|
}, {
|
|
4174
4166
|
default: b(() => [
|
|
4175
4167
|
Z(F(h(t)("filter.applyButtonText")), 1)
|
|
@@ -4190,9 +4182,9 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4190
4182
|
], 512), [
|
|
4191
4183
|
[$e, s.value.has(x.value)]
|
|
4192
4184
|
])
|
|
4193
|
-
], 8,
|
|
4185
|
+
], 8, el);
|
|
4194
4186
|
}), 128)),
|
|
4195
|
-
B("div",
|
|
4187
|
+
B("div", il, [
|
|
4196
4188
|
$(q, {
|
|
4197
4189
|
appearance: "tertiary",
|
|
4198
4190
|
size: "small",
|
|
@@ -4210,7 +4202,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4210
4202
|
]));
|
|
4211
4203
|
};
|
|
4212
4204
|
}
|
|
4213
|
-
}),
|
|
4205
|
+
}), ll = /* @__PURE__ */ be(sl, [["__scopeId", "data-v-8cfadde3"]]), nt = /* @__PURE__ */ X({
|
|
4214
4206
|
__name: "PermissionsWrapper",
|
|
4215
4207
|
props: {
|
|
4216
4208
|
/**
|
|
@@ -4238,15 +4230,15 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4238
4230
|
}, { immediate: !0 }), (a, i) => r.value ? ne(a.$slots, "default", {
|
|
4239
4231
|
key: 0,
|
|
4240
4232
|
isAllowed: t.value
|
|
4241
|
-
}) :
|
|
4233
|
+
}) : W("", !0);
|
|
4242
4234
|
}
|
|
4243
|
-
}),
|
|
4235
|
+
}), ul = { class: "form-section-wrapper" }, cl = {
|
|
4244
4236
|
key: 1,
|
|
4245
4237
|
class: "form-section-description"
|
|
4246
|
-
},
|
|
4238
|
+
}, dl = {
|
|
4247
4239
|
key: 2,
|
|
4248
4240
|
class: "form-section-footer"
|
|
4249
|
-
},
|
|
4241
|
+
}, pl = { class: "form-section-content" }, fl = /* @__PURE__ */ X({
|
|
4250
4242
|
__name: "EntityFormSection",
|
|
4251
4243
|
props: {
|
|
4252
4244
|
title: {
|
|
@@ -4279,8 +4271,8 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4279
4271
|
return (t, r) => (m(), M("fieldset", {
|
|
4280
4272
|
class: Me(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4281
4273
|
}, [
|
|
4282
|
-
B("div",
|
|
4283
|
-
e.hideInfoHeader ?
|
|
4274
|
+
B("div", ul, [
|
|
4275
|
+
e.hideInfoHeader ? W("", !0) : (m(), M("div", {
|
|
4284
4276
|
key: 0,
|
|
4285
4277
|
class: Me(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4286
4278
|
}, [
|
|
@@ -4292,26 +4284,26 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4292
4284
|
Z(F(e.title), 1)
|
|
4293
4285
|
]),
|
|
4294
4286
|
_: 1
|
|
4295
|
-
})) :
|
|
4296
|
-
e.description || h(n).description ? (m(), M("div",
|
|
4287
|
+
})) : W("", !0),
|
|
4288
|
+
e.description || h(n).description ? (m(), M("div", cl, [
|
|
4297
4289
|
ne(t.$slots, "description", {}, () => [
|
|
4298
4290
|
B("p", null, F(e.description), 1)
|
|
4299
4291
|
], !0)
|
|
4300
|
-
])) :
|
|
4301
|
-
h(n).footer ? (m(), M("div",
|
|
4292
|
+
])) : W("", !0),
|
|
4293
|
+
h(n).footer ? (m(), M("div", dl, [
|
|
4302
4294
|
ne(t.$slots, "footer", {}, void 0, !0)
|
|
4303
|
-
])) :
|
|
4295
|
+
])) : W("", !0)
|
|
4304
4296
|
], 2)),
|
|
4305
|
-
B("div",
|
|
4297
|
+
B("div", pl, [
|
|
4306
4298
|
ne(t.$slots, "default", {}, void 0, !0)
|
|
4307
4299
|
])
|
|
4308
4300
|
])
|
|
4309
4301
|
], 2));
|
|
4310
4302
|
}
|
|
4311
|
-
}), mn = /* @__PURE__ */ be(
|
|
4303
|
+
}), mn = /* @__PURE__ */ be(fl, [["__scopeId", "data-v-4bb31634"]]), { useAxios: Lt, useDeleteUrlBuilder: ml, useErrors: gl, useExternalLinkCreator: Ll, useFetchUrlBuilder: Bl, useFetcher: hl, useDebouncedFilter: mr, useStringHelpers: Ul, useHelpers: Pl, useGatewayFeatureSupported: Rl, useTruncationDetector: Vl, useValidators: yl } = se, vl = { class: "add-to-group-form-container" }, bl = { class: "add-to-group-cta-text" }, kl = {
|
|
4312
4304
|
key: 0,
|
|
4313
4305
|
class: "kong-ui-entity-add-to-groups-error"
|
|
4314
|
-
},
|
|
4306
|
+
}, Cl = { key: 0 }, wl = /* @__PURE__ */ X({
|
|
4315
4307
|
__name: "AddToGroupModal",
|
|
4316
4308
|
props: {
|
|
4317
4309
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4355,19 +4347,19 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4355
4347
|
const j = w.value ? y.value.find((J) => J.id === k) : (O = u.value) == null ? void 0 : O.find((J) => J.id === k);
|
|
4356
4348
|
return j ? j.name : k;
|
|
4357
4349
|
}, K = () => {
|
|
4358
|
-
f.value = "",
|
|
4359
|
-
},
|
|
4350
|
+
f.value = "", Y.value = [], x.value = [], a("cancel");
|
|
4351
|
+
}, Y = N([]), v = N(!1), f = N(""), g = async () => {
|
|
4360
4352
|
if (!o.value.length) {
|
|
4361
4353
|
f.value = "", x.value = [], a("cancel");
|
|
4362
4354
|
return;
|
|
4363
4355
|
}
|
|
4364
|
-
v.value = !0, f.value = "",
|
|
4356
|
+
v.value = !0, f.value = "", Y.value = [], x.value = [];
|
|
4365
4357
|
try {
|
|
4366
4358
|
const k = o.value.map((J) => L(J)), j = await Promise.allSettled(k);
|
|
4367
4359
|
let O = !0;
|
|
4368
4360
|
j.forEach((J) => {
|
|
4369
4361
|
J.status !== "fulfilled" && (O = !1);
|
|
4370
|
-
}), O ? (
|
|
4362
|
+
}), O ? (Y.value = [], x.value = [], a("add:success", o.value), o.value = []) : (Y.value.length && a("add:partial-success", Y.value), o.value = [], z(j));
|
|
4371
4363
|
} catch {
|
|
4372
4364
|
f.value = t("consumer_groups.errors.add"), a("error", f.value);
|
|
4373
4365
|
} finally {
|
|
@@ -4383,12 +4375,12 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4383
4375
|
};
|
|
4384
4376
|
try {
|
|
4385
4377
|
const O = await i.post(q.value, j);
|
|
4386
|
-
return
|
|
4378
|
+
return Y.value.push(k), O;
|
|
4387
4379
|
} catch (O) {
|
|
4388
4380
|
let J = `${R(k)} - ${O.message}`;
|
|
4389
4381
|
return O.response.status === 409 && (J = `${R(k)} - ${t("consumer_groups.errors.already_added")}`), Promise.reject(Error(J));
|
|
4390
4382
|
}
|
|
4391
|
-
}, x = N([]),
|
|
4383
|
+
}, x = N([]), z = (k) => {
|
|
4392
4384
|
x.value = k.map((j) => {
|
|
4393
4385
|
var O;
|
|
4394
4386
|
return (O = j.reason) == null ? void 0 : O.message;
|
|
@@ -4410,8 +4402,8 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4410
4402
|
onProceed: g
|
|
4411
4403
|
}, {
|
|
4412
4404
|
default: b(() => [
|
|
4413
|
-
B("div",
|
|
4414
|
-
B("p",
|
|
4405
|
+
B("div", vl, [
|
|
4406
|
+
B("p", bl, F(h(t)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4415
4407
|
$(O, {
|
|
4416
4408
|
modelValue: o.value,
|
|
4417
4409
|
"onUpdate:modelValue": j[0] || (j[0] = (ce) => o.value = ce),
|
|
@@ -4427,18 +4419,18 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4427
4419
|
width: "100%",
|
|
4428
4420
|
onQueryChange: h(s)
|
|
4429
4421
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4430
|
-
f.value || p.value || x.value.length ? (m(), M("div",
|
|
4422
|
+
f.value || p.value || x.value.length ? (m(), M("div", kl, [
|
|
4431
4423
|
$(J, { appearance: "danger" }, {
|
|
4432
4424
|
default: b(() => [
|
|
4433
4425
|
B("p", null, F(h(t)("consumer_groups.errors.add")), 1),
|
|
4434
|
-
x.value.length ? (m(), M("ul",
|
|
4435
|
-
(m(!0), M(ve, null, ye(x.value, (ce,
|
|
4436
|
-
])) :
|
|
4426
|
+
x.value.length ? (m(), M("ul", Cl, [
|
|
4427
|
+
(m(!0), M(ve, null, ye(x.value, (ce, ze) => (m(), M("li", { key: ze }, F(ce), 1))), 128))
|
|
4428
|
+
])) : W("", !0),
|
|
4437
4429
|
B("div", null, F(f.value || p.value), 1)
|
|
4438
4430
|
]),
|
|
4439
4431
|
_: 1
|
|
4440
4432
|
})
|
|
4441
|
-
])) :
|
|
4433
|
+
])) : W("", !0)
|
|
4442
4434
|
])
|
|
4443
4435
|
]),
|
|
4444
4436
|
_: 1
|
|
@@ -4450,7 +4442,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4450
4442
|
for (const [r, a] of n)
|
|
4451
4443
|
t[r] = a;
|
|
4452
4444
|
return t;
|
|
4453
|
-
},
|
|
4445
|
+
}, _l = /* @__PURE__ */ Bt(wl, [["__scopeId", "data-v-bb0a8037"]]), Al = { class: "kong-ui-entities-consumer-groups-list" }, xl = { key: 1 }, Il = /* @__PURE__ */ X({
|
|
4454
4446
|
__name: "ConsumerGroupList",
|
|
4455
4447
|
props: {
|
|
4456
4448
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4525,7 +4517,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4525
4517
|
},
|
|
4526
4518
|
schema: r.config.filterSchema
|
|
4527
4519
|
};
|
|
4528
|
-
}), K = I(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher:
|
|
4520
|
+
}), K = I(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: Y, fetcherState: v } = hl(r.config, w.value, K.value), f = () => {
|
|
4529
4521
|
_.value = "";
|
|
4530
4522
|
}, g = () => {
|
|
4531
4523
|
l.value++;
|
|
@@ -4557,7 +4549,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4557
4549
|
entity: S,
|
|
4558
4550
|
message: i("consumer_groups.copy.success_brief")
|
|
4559
4551
|
});
|
|
4560
|
-
},
|
|
4552
|
+
}, z = async (S) => {
|
|
4561
4553
|
var re;
|
|
4562
4554
|
await ((re = r.canRetrieve) == null ? void 0 : re.call(r, S)) && o.push(r.config.getViewRoute(S.id));
|
|
4563
4555
|
}, E = (S) => ({
|
|
@@ -4566,7 +4558,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4566
4558
|
}), k = (S) => ({
|
|
4567
4559
|
label: i("consumer_groups.actions.edit"),
|
|
4568
4560
|
to: r.config.getEditRoute(S)
|
|
4569
|
-
}), j = N(void 0), O = N(!1), J = N(!1), te = N(""), ce =
|
|
4561
|
+
}), j = N(void 0), O = N(!1), J = N(!1), te = N(""), ce = ml(r.config, w.value), ze = (S) => {
|
|
4570
4562
|
j.value = S, O.value = !0;
|
|
4571
4563
|
}, yt = () => {
|
|
4572
4564
|
O.value = !1;
|
|
@@ -4590,10 +4582,10 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4590
4582
|
H || C(), l.value++, t("add:success", S);
|
|
4591
4583
|
}, ae = () => {
|
|
4592
4584
|
u.value && Je();
|
|
4593
|
-
}, V = N(void 0),
|
|
4594
|
-
V.value = S,
|
|
4585
|
+
}, V = N(void 0), G = N(!1), fe = N(""), ke = (S) => {
|
|
4586
|
+
V.value = S, G.value = !0;
|
|
4595
4587
|
}, le = () => {
|
|
4596
|
-
|
|
4588
|
+
G.value = !1, V.value = void 0;
|
|
4597
4589
|
}, Be = I(() => {
|
|
4598
4590
|
var H, re, me, Ce;
|
|
4599
4591
|
let S = `${r.config.apiBaseUrl}${Te.list[r.config.app].oneForConsumer}`;
|
|
@@ -4630,9 +4622,9 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4630
4622
|
return ut(async () => {
|
|
4631
4623
|
await r.canCreate() && (vt.value.title = u.value ? i("consumer_groups.list.empty_state.title_for_consumer") : i("consumer_groups.list.empty_state.title"), vt.value.ctaText = u.value ? i("consumer_groups.actions.add_to_group") : i("consumer_groups.actions.create"));
|
|
4632
4624
|
}), (S, H) => {
|
|
4633
|
-
const re = P("KButton"), me = P("KBadge"), Ce = P("KTruncate"),
|
|
4634
|
-
return m(), M("div",
|
|
4635
|
-
$(h(
|
|
4625
|
+
const re = P("KButton"), me = P("KBadge"), Ce = P("KTruncate"), We = P("KDropdownItem"), Rt = P("KClipboardProvider"), hr = P("KPrompt");
|
|
4626
|
+
return m(), M("div", Al, [
|
|
4627
|
+
$(h(Rs), {
|
|
4636
4628
|
"cache-identifier": e.cacheIdentifier,
|
|
4637
4629
|
"disable-pagination": u.value && !e.config.paginatedEndpoint,
|
|
4638
4630
|
"disable-pagination-page-jump": "",
|
|
@@ -4640,7 +4632,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4640
4632
|
"empty-state-options": vt.value,
|
|
4641
4633
|
"enable-entity-actions": "",
|
|
4642
4634
|
"error-message": q.value,
|
|
4643
|
-
fetcher: h(
|
|
4635
|
+
fetcher: h(Y),
|
|
4644
4636
|
"fetcher-cache-key": l.value,
|
|
4645
4637
|
"pagination-type": "offset",
|
|
4646
4638
|
"preferences-storage-key": d.value,
|
|
@@ -4649,12 +4641,12 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4649
4641
|
"table-headers": h(p),
|
|
4650
4642
|
"use-action-outside": e.useActionOutside,
|
|
4651
4643
|
onClearSearchInput: f,
|
|
4652
|
-
"onClick:row": H[3] || (H[3] = (Q) =>
|
|
4644
|
+
"onClick:row": H[3] || (H[3] = (Q) => z(Q)),
|
|
4653
4645
|
onEmptyStateCtaClicked: ae,
|
|
4654
4646
|
onSort: g
|
|
4655
4647
|
}, {
|
|
4656
4648
|
"toolbar-filter": b(() => [
|
|
4657
|
-
u.value ?
|
|
4649
|
+
u.value ? W("", !0) : (m(), D(h(ll), {
|
|
4658
4650
|
key: 0,
|
|
4659
4651
|
modelValue: _.value,
|
|
4660
4652
|
"onUpdate:modelValue": H[0] || (H[0] = (Q) => _.value = Q),
|
|
@@ -4713,12 +4705,12 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4713
4705
|
}, 1024))), 128))
|
|
4714
4706
|
]),
|
|
4715
4707
|
_: 2
|
|
4716
|
-
}, 1024)) : (m(), M("span",
|
|
4708
|
+
}, 1024)) : (m(), M("span", xl, "-"))
|
|
4717
4709
|
]),
|
|
4718
4710
|
actions: b(({ row: Q }) => [
|
|
4719
4711
|
$(Rt, null, {
|
|
4720
4712
|
default: b(({ copyToClipboard: Ue }) => [
|
|
4721
|
-
$(
|
|
4713
|
+
$(We, {
|
|
4722
4714
|
"data-testid": "action-entity-copy-id",
|
|
4723
4715
|
onClick: (yr) => L(Q, Ue)
|
|
4724
4716
|
}, {
|
|
@@ -4732,7 +4724,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4732
4724
|
}, 1024),
|
|
4733
4725
|
$(Rt, null, {
|
|
4734
4726
|
default: b(({ copyToClipboard: Ue }) => [
|
|
4735
|
-
$(
|
|
4727
|
+
$(We, {
|
|
4736
4728
|
"data-testid": "action-entity-copy-json",
|
|
4737
4729
|
onClick: (yr) => x(Q, Ue)
|
|
4738
4730
|
}, {
|
|
@@ -4748,7 +4740,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4748
4740
|
"auth-function": () => e.canRetrieve(Q)
|
|
4749
4741
|
}, {
|
|
4750
4742
|
default: b(() => [
|
|
4751
|
-
$(
|
|
4743
|
+
$(We, {
|
|
4752
4744
|
"data-testid": "action-entity-view",
|
|
4753
4745
|
"has-divider": "",
|
|
4754
4746
|
item: E(Q.id)
|
|
@@ -4760,7 +4752,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4760
4752
|
"auth-function": () => e.canEdit(Q)
|
|
4761
4753
|
}, {
|
|
4762
4754
|
default: b(() => [
|
|
4763
|
-
$(
|
|
4755
|
+
$(We, {
|
|
4764
4756
|
"data-testid": "action-entity-edit",
|
|
4765
4757
|
item: k(Q.id)
|
|
4766
4758
|
}, null, 8, ["item"])
|
|
@@ -4771,11 +4763,11 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4771
4763
|
"auth-function": () => e.canDelete(Q)
|
|
4772
4764
|
}, {
|
|
4773
4765
|
default: b(() => [
|
|
4774
|
-
$(
|
|
4766
|
+
$(We, {
|
|
4775
4767
|
danger: "",
|
|
4776
4768
|
"data-testid": "action-entity-delete",
|
|
4777
4769
|
"has-divider": "",
|
|
4778
|
-
onClick: () => e.config.consumerId ? ke(Q) :
|
|
4770
|
+
onClick: () => e.config.consumerId ? ke(Q) : ze(Q)
|
|
4779
4771
|
}, {
|
|
4780
4772
|
default: b(() => [
|
|
4781
4773
|
Z(F(e.config.consumerId ? h(i)("consumer_groups.actions.exit") : h(i)("consumer_groups.actions.delete")), 1)
|
|
@@ -4788,7 +4780,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4788
4780
|
]),
|
|
4789
4781
|
_: 1
|
|
4790
4782
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers", "use-action-outside"]),
|
|
4791
|
-
$(h(
|
|
4783
|
+
$(h(zs), {
|
|
4792
4784
|
"action-pending": J.value,
|
|
4793
4785
|
"data-testid": "delete-consumer-group-modal",
|
|
4794
4786
|
description: h(i)("consumer_groups.delete.description"),
|
|
@@ -4800,7 +4792,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4800
4792
|
onCancel: yt,
|
|
4801
4793
|
onProceed: tt
|
|
4802
4794
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4803
|
-
e.config.consumerId ? (m(), D(
|
|
4795
|
+
e.config.consumerId ? (m(), D(_l, {
|
|
4804
4796
|
key: 0,
|
|
4805
4797
|
config: e.config,
|
|
4806
4798
|
"data-testid": "add-to-group-modal",
|
|
@@ -4808,13 +4800,13 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4808
4800
|
"onAdd:partialSuccess": H[4] || (H[4] = (Q) => U(Q, !0)),
|
|
4809
4801
|
"onAdd:success": H[5] || (H[5] = (Q) => U(Q)),
|
|
4810
4802
|
onCancel: C
|
|
4811
|
-
}, null, 8, ["config", "visible"])) :
|
|
4803
|
+
}, null, 8, ["config", "visible"])) : W("", !0),
|
|
4812
4804
|
e.config.consumerId && V.value ? (m(), D(hr, {
|
|
4813
4805
|
key: 1,
|
|
4814
4806
|
"action-button-appearance": "danger",
|
|
4815
4807
|
"data-testid": "exit-group-modal",
|
|
4816
4808
|
title: h(i)("consumer_groups.consumers.exit.title"),
|
|
4817
|
-
visible:
|
|
4809
|
+
visible: G.value,
|
|
4818
4810
|
onCancel: le,
|
|
4819
4811
|
onProceed: gr
|
|
4820
4812
|
}, {
|
|
@@ -4840,14 +4832,14 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4840
4832
|
B("p", null, F(h(i)("consumer_groups.consumers.exit.description")), 1)
|
|
4841
4833
|
]),
|
|
4842
4834
|
_: 1
|
|
4843
|
-
}, 8, ["title", "visible"])) :
|
|
4835
|
+
}, 8, ["title", "visible"])) : W("", !0)
|
|
4844
4836
|
]);
|
|
4845
4837
|
};
|
|
4846
4838
|
}
|
|
4847
|
-
}),
|
|
4839
|
+
}), Dl = /* @__PURE__ */ Bt(Il, [["__scopeId", "data-v-b3e86eed"]]), Sl = { class: "kong-ui-entities-consumer-group-form" }, $l = { class: "select-item-container" }, Tl = { class: "select-item-label" }, jl = {
|
|
4848
4840
|
key: 0,
|
|
4849
4841
|
class: "select-item-description"
|
|
4850
|
-
},
|
|
4842
|
+
}, Ml = /* @__PURE__ */ X({
|
|
4851
4843
|
__name: "ConsumerGroupForm",
|
|
4852
4844
|
props: {
|
|
4853
4845
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4887,7 +4879,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4887
4879
|
} = mr(t.config, (Le = Te.form[(tt = t.config) == null ? void 0 : tt.app]) == null ? void 0 : Le.consumersList, "", {
|
|
4888
4880
|
fetchedItemsKey: "data",
|
|
4889
4881
|
searchKeys: ["username", "custom_id", "id"]
|
|
4890
|
-
}), { axiosInstance: p } = Lt((Je = t.config) == null ? void 0 : Je.axiosRequestConfig), { getMessageFromError: A } =
|
|
4882
|
+
}), { axiosInstance: p } = Lt((Je = t.config) == null ? void 0 : Je.axiosRequestConfig), { getMessageFromError: A } = gl(), w = yl(), _ = I(() => y.value.map((C) => ({
|
|
4891
4883
|
label: C.username || C.custom_id,
|
|
4892
4884
|
value: C.id,
|
|
4893
4885
|
selected: o.fields.consumers.includes(C.id),
|
|
@@ -4896,9 +4888,9 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4896
4888
|
}))), R = I(() => {
|
|
4897
4889
|
var C, U;
|
|
4898
4890
|
return (U = Te.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : U.edit;
|
|
4899
|
-
}), K = I(() => t.consumerGroupId ? rt.Edit : rt.Create),
|
|
4900
|
-
var
|
|
4901
|
-
let V = `${(
|
|
4891
|
+
}), K = I(() => t.consumerGroupId ? rt.Edit : rt.Create), Y = I(() => !!o.fields.name && !z.value), v = I(() => JSON.stringify(o.fields) !== JSON.stringify(s)), f = (C, U = "", ae = "") => {
|
|
4892
|
+
var G, fe, ke, le, Be, He;
|
|
4893
|
+
let V = `${(G = t.config) == null ? void 0 : G.apiBaseUrl}${Te.form[(fe = t.config) == null ? void 0 : fe.app][C]}`;
|
|
4902
4894
|
return ((ke = t.config) == null ? void 0 : ke.app) === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((le = t.config) == null ? void 0 : le.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (V = V.replace(/\/{workspace}/gi, (He = t.config) != null && He.workspace ? `/${t.config.workspace}` : "")), V = V.replace(/{id}/gi, U || t.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (V = V.replace(/{consumerId}/gi, ae)), V;
|
|
4903
4895
|
}, g = () => {
|
|
4904
4896
|
var C;
|
|
@@ -4908,9 +4900,9 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4908
4900
|
}, L = (C) => {
|
|
4909
4901
|
r("loading", C);
|
|
4910
4902
|
}, x = async (C) => {
|
|
4911
|
-
var ae, V,
|
|
4903
|
+
var ae, V, G, fe, ke;
|
|
4912
4904
|
o.fields.name = ((ae = C == null ? void 0 : C.item) == null ? void 0 : ae.name) || ((V = C == null ? void 0 : C.consumer_group) == null ? void 0 : V.name) || (C == null ? void 0 : C.name) || "";
|
|
4913
|
-
const U = ((
|
|
4905
|
+
const U = ((G = C == null ? void 0 : C.item) == null ? void 0 : G.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
|
|
4914
4906
|
if (o.fields.tags = (U == null ? void 0 : U.join(", ")) || "", "consumers" in C)
|
|
4915
4907
|
o.fields.consumers = ((fe = C == null ? void 0 : C.consumers) == null ? void 0 : fe.map((le) => le.id)) || [];
|
|
4916
4908
|
else
|
|
@@ -4921,7 +4913,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4921
4913
|
O(le);
|
|
4922
4914
|
}
|
|
4923
4915
|
Object.assign(s, o.fields);
|
|
4924
|
-
},
|
|
4916
|
+
}, z = I(() => w.utf8Name(o.fields.name)), E = I(() => {
|
|
4925
4917
|
var C, U;
|
|
4926
4918
|
return {
|
|
4927
4919
|
name: o.fields.name,
|
|
@@ -4932,7 +4924,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4932
4924
|
}, J = (C = t.consumerGroupId) => {
|
|
4933
4925
|
Object.assign(s, o.fields), r("update", { ...o.fields, id: C });
|
|
4934
4926
|
}, te = (C, U, ae = t.consumerGroupId) => {
|
|
4935
|
-
const V = C == null ? void 0 : C.find((
|
|
4927
|
+
const V = C == null ? void 0 : C.find((G) => G.status !== "fulfilled");
|
|
4936
4928
|
V ? O({
|
|
4937
4929
|
code: V.status,
|
|
4938
4930
|
message: U
|
|
@@ -4954,7 +4946,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4954
4946
|
}
|
|
4955
4947
|
else
|
|
4956
4948
|
o.fields.consumers.length === 0 && C && J(C);
|
|
4957
|
-
},
|
|
4949
|
+
}, ze = async () => {
|
|
4958
4950
|
var ae;
|
|
4959
4951
|
try {
|
|
4960
4952
|
((ae = t.config) == null ? void 0 : ae.app) === "konnect" ? await p.put(f("edit"), E.value) : await p.patch(f("edit"), E.value);
|
|
@@ -4967,22 +4959,22 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4967
4959
|
else {
|
|
4968
4960
|
if (U.length > 0)
|
|
4969
4961
|
try {
|
|
4970
|
-
const V = U.map((fe) => j(fe)),
|
|
4971
|
-
te(
|
|
4962
|
+
const V = U.map((fe) => j(fe)), G = await Promise.allSettled(V);
|
|
4963
|
+
te(G, a("consumer_groups.errors.remove_consumer"));
|
|
4972
4964
|
} catch (V) {
|
|
4973
4965
|
O(V);
|
|
4974
4966
|
}
|
|
4975
4967
|
if (C.length > 0)
|
|
4976
4968
|
try {
|
|
4977
|
-
const V = C.map((fe) => k(fe)),
|
|
4978
|
-
te(
|
|
4969
|
+
const V = C.map((fe) => k(fe)), G = await Promise.allSettled(V);
|
|
4970
|
+
te(G, a("consumer_groups.errors.add_consumer"));
|
|
4979
4971
|
} catch (V) {
|
|
4980
4972
|
O(V);
|
|
4981
4973
|
}
|
|
4982
4974
|
}
|
|
4983
4975
|
}, yt = async () => {
|
|
4984
4976
|
try {
|
|
4985
|
-
o.readonly = !0, K.value === rt.Create ? await ce() : await
|
|
4977
|
+
o.readonly = !0, K.value === rt.Create ? await ce() : await ze();
|
|
4986
4978
|
} finally {
|
|
4987
4979
|
o.readonly = !1;
|
|
4988
4980
|
}
|
|
@@ -4991,19 +4983,19 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4991
4983
|
await c();
|
|
4992
4984
|
}), (C, U) => {
|
|
4993
4985
|
const ae = P("KInput"), V = P("KMultiselect");
|
|
4994
|
-
return m(), M("div",
|
|
4995
|
-
$(h(
|
|
4996
|
-
"can-submit":
|
|
4986
|
+
return m(), M("div", Sl, [
|
|
4987
|
+
$(h(Ns), {
|
|
4988
|
+
"can-submit": Y.value && v.value,
|
|
4997
4989
|
config: e.config,
|
|
4998
4990
|
"edit-id": e.consumerGroupId,
|
|
4999
|
-
"error-message": o.errorMessage || h(d) ||
|
|
4991
|
+
"error-message": o.errorMessage || h(d) || z.value,
|
|
5000
4992
|
"fetch-url": R.value,
|
|
5001
4993
|
"form-fields": E.value,
|
|
5002
4994
|
"is-readonly": o.readonly,
|
|
5003
4995
|
onCancel: g,
|
|
5004
|
-
"onFetch:error": U[3] || (U[3] = (
|
|
4996
|
+
"onFetch:error": U[3] || (U[3] = (G) => q(G)),
|
|
5005
4997
|
"onFetch:success": x,
|
|
5006
|
-
onLoading: U[4] || (U[4] = (
|
|
4998
|
+
onLoading: U[4] || (U[4] = (G) => L(G)),
|
|
5007
4999
|
onSubmit: yt
|
|
5008
5000
|
}, {
|
|
5009
5001
|
default: b(() => [
|
|
@@ -5014,7 +5006,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5014
5006
|
default: b(() => [
|
|
5015
5007
|
$(ae, {
|
|
5016
5008
|
modelValue: o.fields.name,
|
|
5017
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
5009
|
+
"onUpdate:modelValue": U[0] || (U[0] = (G) => o.fields.name = G),
|
|
5018
5010
|
modelModifiers: { trim: !0 },
|
|
5019
5011
|
autocomplete: "off",
|
|
5020
5012
|
"data-testid": "consumer-group-form-name",
|
|
@@ -5025,7 +5017,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5025
5017
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
5026
5018
|
$(ae, {
|
|
5027
5019
|
modelValue: o.fields.tags,
|
|
5028
|
-
"onUpdate:modelValue": U[1] || (U[1] = (
|
|
5020
|
+
"onUpdate:modelValue": U[1] || (U[1] = (G) => o.fields.tags = G),
|
|
5029
5021
|
modelModifiers: { trim: !0 },
|
|
5030
5022
|
autocomplete: "off",
|
|
5031
5023
|
"data-testid": "consumer-group-form-tags",
|
|
@@ -5049,7 +5041,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5049
5041
|
default: b(() => [
|
|
5050
5042
|
$(V, {
|
|
5051
5043
|
modelValue: o.fields.consumers,
|
|
5052
|
-
"onUpdate:modelValue": U[2] || (U[2] = (
|
|
5044
|
+
"onUpdate:modelValue": U[2] || (U[2] = (G) => o.fields.consumers = G),
|
|
5053
5045
|
appearance: "select",
|
|
5054
5046
|
autosuggest: "",
|
|
5055
5047
|
items: _.value,
|
|
@@ -5059,12 +5051,12 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5059
5051
|
width: "auto",
|
|
5060
5052
|
onQueryChange: h(l)
|
|
5061
5053
|
}, {
|
|
5062
|
-
"item-template": b(({ item:
|
|
5054
|
+
"item-template": b(({ item: G }) => {
|
|
5063
5055
|
var fe, ke, le;
|
|
5064
5056
|
return [
|
|
5065
|
-
B("div",
|
|
5066
|
-
B("div",
|
|
5067
|
-
(fe =
|
|
5057
|
+
B("div", $l, [
|
|
5058
|
+
B("div", Tl, F(G.label), 1),
|
|
5059
|
+
(fe = G == null ? void 0 : G.data) != null && fe.username && ((ke = G == null ? void 0 : G.data) != null && ke.custom_id) ? (m(), M("div", jl, F((le = G == null ? void 0 : G.data) == null ? void 0 : le.custom_id), 1)) : W("", !0)
|
|
5068
5060
|
])
|
|
5069
5061
|
];
|
|
5070
5062
|
}),
|
|
@@ -5079,7 +5071,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5079
5071
|
]);
|
|
5080
5072
|
};
|
|
5081
5073
|
}
|
|
5082
|
-
}), Gl = /* @__PURE__ */ Bt(
|
|
5074
|
+
}), Gl = /* @__PURE__ */ Bt(Ml, [["__scopeId", "data-v-9681165d"]]), El = { class: "kong-ui-consumer-group-entity-config-card" }, zl = /* @__PURE__ */ X({
|
|
5083
5075
|
__name: "ConsumerGroupConfigCard",
|
|
5084
5076
|
props: {
|
|
5085
5077
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5115,7 +5107,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5115
5107
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
5116
5108
|
}
|
|
5117
5109
|
});
|
|
5118
|
-
return (i, o) => (m(), M("div",
|
|
5110
|
+
return (i, o) => (m(), M("div", El, [
|
|
5119
5111
|
$(h(Ms), {
|
|
5120
5112
|
config: e.config,
|
|
5121
5113
|
"config-card-doc": e.configCardDoc,
|
|
@@ -5131,7 +5123,7 @@ const Wi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5131
5123
|
}
|
|
5132
5124
|
});
|
|
5133
5125
|
export {
|
|
5134
|
-
|
|
5126
|
+
zl as ConsumerGroupConfigCard,
|
|
5135
5127
|
Gl as ConsumerGroupForm,
|
|
5136
|
-
|
|
5128
|
+
Dl as ConsumerGroupList
|
|
5137
5129
|
};
|