@kong-ui-public/entities-consumer-groups 3.0.1-pr.1253.cebdd2df.0 → 3.0.1
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 +247 -239
- package/dist/entities-consumer-groups.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -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 Y, 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 W(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(""), W = 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), G = /* @__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
|
+
G.has(j.id) || (G.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 G = !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()) && (G = !0);
|
|
441
441
|
}
|
|
442
|
-
return
|
|
442
|
+
return G;
|
|
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 zr(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 Gr() {
|
|
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 Yr() {
|
|
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, zt = (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
|
+
}, Gt = (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
|
+
}, Wr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Zr = (e, n) => {
|
|
584
|
+
if (Gt(e) || Gt(n))
|
|
585
585
|
return 0;
|
|
586
|
-
const [t, r] =
|
|
586
|
+
const [t, r] = Wr(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 = zt(e), r = zt(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
|
+
}, Yt = (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
|
+
}, Wt = 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 (Wt.indexOf(e) === -1)
|
|
613
|
+
throw new Error(`Invalid operator, expected one of ${Wt.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 && Yt(a, o, "<") || s && Yt(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: zr,
|
|
646
|
+
useErrors: Gr,
|
|
647
647
|
useExternalLinkCreator: Jr,
|
|
648
648
|
useFetcher: Hr,
|
|
649
649
|
useFetchUrlBuilder: kn,
|
|
650
650
|
useHelpers: bn,
|
|
651
|
-
useStringHelpers:
|
|
651
|
+
useStringHelpers: Yr,
|
|
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
|
+
])) : Y("", !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"), W = 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)) : Y("", !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)) : Y("", !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(W, {
|
|
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
|
+
])) : Y("", !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"])) : Y("", !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 za(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 Ga(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 = za;
|
|
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 Ga() {
|
|
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 = Ga(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 Ya(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: Ya,
|
|
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 Wa(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: Wa,
|
|
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 zn = 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 Gn = new ue("tag:yaml.org,2002:set", {
|
|
1662
1662
|
kind: "mapping",
|
|
1663
1663
|
resolve: $o,
|
|
1664
1664
|
construct: To
|
|
@@ -1670,10 +1670,10 @@ var zn = new ue("tag:yaml.org,2002:set", {
|
|
|
1670
1670
|
explicit: [
|
|
1671
1671
|
Vn,
|
|
1672
1672
|
Dn,
|
|
1673
|
-
|
|
1674
|
-
|
|
1673
|
+
zn,
|
|
1674
|
+
Gn
|
|
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 = /[,\[\]\{\}]/, Yn = /^(?:!|!!|![a-z\-]+!)$/i, Wn = /^(?:!|[^,\[\]\{\}])(?:%[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], Yn.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'), Wn.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, ze(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), ze(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, ze(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, !ze(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), ze(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 zo(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 Go(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), Yn.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 && !Wn.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 Go(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 Go(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 ze(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 (; zo(e) || Go(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"), ze(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 Yo(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 Wo(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 Wo(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 Yo(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 = Yo, Qo = Wo, 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 We(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(We(e, 0)) && _i(We(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 = We(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 = We(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 = We(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, zi = {
|
|
2426
2426
|
binary: Vn,
|
|
2427
2427
|
float: qn,
|
|
2428
2428
|
map: Mn,
|
|
2429
2429
|
null: On,
|
|
2430
|
-
pairs:
|
|
2431
|
-
set:
|
|
2430
|
+
pairs: zn,
|
|
2431
|
+
set: Gn,
|
|
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
|
+
}, Gi = Kt("safeLoad", "load"), Ji = Kt("safeLoadAll", "loadAll"), Hi = Kt("safeDump", "dump"), Yi = {
|
|
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: zi,
|
|
2451
|
+
safeLoad: Gi,
|
|
2452
2452
|
safeLoadAll: Ji,
|
|
2453
2453
|
safeDump: Hi
|
|
2454
2454
|
};
|
|
2455
|
-
const
|
|
2455
|
+
const Wi = { 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 Yi = { 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 ? "" : Yi.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", Wi, [
|
|
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"])) : Y("", !0)
|
|
2479
2479
|
]);
|
|
2480
2480
|
};
|
|
2481
2481
|
}
|
|
@@ -2537,7 +2537,7 @@ const Yi = { 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)) : Y("", !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 Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
2562
2562
|
} : void 0
|
|
2563
2563
|
]), 1032, ["item"]))), 128))
|
|
2564
2564
|
], 10, Qi))), 128))
|
|
2565
|
-
])) :
|
|
2565
|
+
])) : Y("", !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"])) : Y("", !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"])) : Y("", !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 Yi = { 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)) : Y("", !0),
|
|
2677
2677
|
os
|
|
2678
2678
|
], 8, rs))
|
|
2679
2679
|
]),
|
|
@@ -2772,7 +2772,7 @@ const Yi = { 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)) : Y("", !0),
|
|
2776
2776
|
ds
|
|
2777
2777
|
], 8, us))
|
|
2778
2778
|
]),
|
|
@@ -2871,7 +2871,7 @@ const Yi = { 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)) : Y("", !0),
|
|
2875
2875
|
ys
|
|
2876
2876
|
], 8, gs))
|
|
2877
2877
|
]),
|
|
@@ -2970,7 +2970,7 @@ const Yi = { 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)) : Y("", !0),
|
|
2974
2974
|
_s
|
|
2975
2975
|
], 8, Cs))
|
|
2976
2976
|
]),
|
|
@@ -3113,11 +3113,11 @@ const Yi = { 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 = [], G = 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 = G;
|
|
3120
|
+
(j || j === 0) && (O = j === -1 ? G + 1 : j), k && (O = k === -1 ? G + 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 Yi = { 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, G = [];
|
|
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), G.push([E, O]);
|
|
3146
3146
|
}
|
|
3147
|
-
return
|
|
3147
|
+
return G.sort(function(E, k) {
|
|
3148
3148
|
return E[1] - k[1];
|
|
3149
|
-
}),
|
|
3149
|
+
}), G.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 Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3159
3159
|
section: he.Plugin
|
|
3160
3160
|
};
|
|
3161
3161
|
}).filter((E) => !E.hidden);
|
|
3162
|
-
}),
|
|
3162
|
+
}), W = 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((G) => G.section === he.Basic),
|
|
3166
|
+
advanced: (q = R.value) == null ? void 0 : q.filter((G) => G.section === he.Advanced),
|
|
3167
|
+
plugin: (x = K.value) == null ? void 0 : x.concat((L = R.value) == null ? void 0 : L.filter((G) => G.section === he.Plugin))
|
|
3168
3168
|
};
|
|
3169
3169
|
}), v = I(() => {
|
|
3170
3170
|
const g = [];
|
|
3171
|
-
return
|
|
3171
|
+
return W.value.basic.length && g.push("basic"), W.value.advanced.length && g.push("advanced"), W.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 Yi = { 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"), G = 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 Yi = { 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(G, {
|
|
3223
3223
|
key: 0,
|
|
3224
3224
|
appearance: "tertiary",
|
|
3225
3225
|
class: "book-icon",
|
|
@@ -3235,7 +3235,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3235
3235
|
], 8, $s)
|
|
3236
3236
|
]),
|
|
3237
3237
|
_: 1
|
|
3238
|
-
})) :
|
|
3238
|
+
})) : Y("", !0)
|
|
3239
3239
|
])
|
|
3240
3240
|
]),
|
|
3241
3241
|
default: b(() => [
|
|
@@ -3253,14 +3253,14 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3253
3253
|
B("h3", null, F(w.value), 1)
|
|
3254
3254
|
]),
|
|
3255
3255
|
_: 1
|
|
3256
|
-
})) :
|
|
3256
|
+
})) : Y("", !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": W.value,
|
|
3264
3264
|
record: _.value
|
|
3265
3265
|
}, Ke({ _: 2 }, [
|
|
3266
3266
|
ye(Object.keys(g.$slots), (O) => ({
|
|
@@ -3291,10 +3291,10 @@ const Yi = { 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 = ["novalidate"], Os = {
|
|
3295
3295
|
class: "form-actions",
|
|
3296
3296
|
"data-testid": "form-actions"
|
|
3297
|
-
},
|
|
3297
|
+
}, Ns = /* @__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,6 +3344,13 @@ const Yi = { 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
|
|
3347
3354
|
}
|
|
3348
3355
|
},
|
|
3349
3356
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
@@ -3361,7 +3368,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3361
3368
|
r("cancel");
|
|
3362
3369
|
}, K = () => {
|
|
3363
3370
|
y.value || r("submit");
|
|
3364
|
-
},
|
|
3371
|
+
}, W = N([
|
|
3365
3372
|
{
|
|
3366
3373
|
title: o("baseForm.configuration.yaml"),
|
|
3367
3374
|
hash: "#yaml"
|
|
@@ -3386,7 +3393,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3386
3393
|
u.value = !1;
|
|
3387
3394
|
}
|
|
3388
3395
|
}), (v, f) => {
|
|
3389
|
-
const g = P("KSkeleton"), q = P("KEmptyState"), L = P("KAlert"), x = P("KButton"),
|
|
3396
|
+
const g = P("KSkeleton"), q = P("KEmptyState"), L = P("KAlert"), x = P("KButton"), G = P("KTabs"), E = P("KSlideout"), k = P("KCard");
|
|
3390
3397
|
return m(), D(k, { class: "kong-ui-entity-base-form" }, {
|
|
3391
3398
|
default: b(() => [
|
|
3392
3399
|
u.value ? (m(), D(g, {
|
|
@@ -3406,6 +3413,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3406
3413
|
}, 8, ["action-button-text"])) : (m(), M("form", {
|
|
3407
3414
|
key: 2,
|
|
3408
3415
|
"data-testid": "form-content",
|
|
3416
|
+
novalidate: a.noValidate,
|
|
3409
3417
|
onReset: _t(R, ["prevent"]),
|
|
3410
3418
|
onSubmit: _t(K, ["prevent"])
|
|
3411
3419
|
}, [
|
|
@@ -3415,8 +3423,8 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3415
3423
|
appearance: "danger",
|
|
3416
3424
|
"data-testid": "form-error",
|
|
3417
3425
|
message: e.errorMessage
|
|
3418
|
-
}, null, 8, ["message"])) :
|
|
3419
|
-
B("div",
|
|
3426
|
+
}, null, 8, ["message"])) : Y("", !0),
|
|
3427
|
+
B("div", Os, [
|
|
3420
3428
|
ne(v.$slots, "form-actions", {}, () => [
|
|
3421
3429
|
$(x, {
|
|
3422
3430
|
appearance: "tertiary",
|
|
@@ -3452,7 +3460,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3452
3460
|
}, 8, ["disabled"])
|
|
3453
3461
|
], !0)
|
|
3454
3462
|
])
|
|
3455
|
-
],
|
|
3463
|
+
], 40, Es)),
|
|
3456
3464
|
$(E, {
|
|
3457
3465
|
"close-on-blur": !1,
|
|
3458
3466
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3464,9 +3472,9 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3464
3472
|
}, {
|
|
3465
3473
|
default: b(() => [
|
|
3466
3474
|
B("div", null, F(h(o)("baseForm.configuration.message")), 1),
|
|
3467
|
-
$(
|
|
3475
|
+
$(G, {
|
|
3468
3476
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3469
|
-
tabs:
|
|
3477
|
+
tabs: W.value
|
|
3470
3478
|
}, {
|
|
3471
3479
|
json: b(() => [
|
|
3472
3480
|
$(xn, {
|
|
@@ -3491,10 +3499,10 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3491
3499
|
});
|
|
3492
3500
|
};
|
|
3493
3501
|
}
|
|
3494
|
-
}),
|
|
3502
|
+
}), Fs = /* @__PURE__ */ be(Ns, [["__scopeId", "data-v-3def74fe"]]), qs = {
|
|
3495
3503
|
key: 0,
|
|
3496
3504
|
"data-testid": "first-col"
|
|
3497
|
-
},
|
|
3505
|
+
}, Ks = /* @__PURE__ */ X({
|
|
3498
3506
|
__name: "EntityBaseTableCell",
|
|
3499
3507
|
props: {
|
|
3500
3508
|
keyName: {
|
|
@@ -3550,7 +3558,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3550
3558
|
ref: l,
|
|
3551
3559
|
class: "content-wrapper"
|
|
3552
3560
|
}, [
|
|
3553
|
-
a.value ? (m(), M("span",
|
|
3561
|
+
a.value ? (m(), M("span", qs, [
|
|
3554
3562
|
$(R, {
|
|
3555
3563
|
"max-width": "300",
|
|
3556
3564
|
placement: "bottomStart",
|
|
@@ -3565,10 +3573,10 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3565
3573
|
], 512);
|
|
3566
3574
|
};
|
|
3567
3575
|
}
|
|
3568
|
-
}),
|
|
3576
|
+
}), Ls = /* @__PURE__ */ be(Ks, [["__scopeId", "data-v-c4379fd4"]]), Bs = { class: "toolbar-container" }, Us = {
|
|
3569
3577
|
key: 0,
|
|
3570
3578
|
class: "toolbar-button-container"
|
|
3571
|
-
},
|
|
3579
|
+
}, Ps = ["data-testid"], Rs = /* @__PURE__ */ X({
|
|
3572
3580
|
__name: "EntityBaseTable",
|
|
3573
3581
|
props: {
|
|
3574
3582
|
// table header configuration
|
|
@@ -3731,7 +3739,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3731
3739
|
r("click:row", g);
|
|
3732
3740
|
}), _ = (f) => {
|
|
3733
3741
|
r("sort", f);
|
|
3734
|
-
}, { setTablePreferences: R, getTablePreferences: K } = Er(),
|
|
3742
|
+
}, { setTablePreferences: R, getTablePreferences: K } = Er(), W = I(() => {
|
|
3735
3743
|
const f = K(t.preferencesStorageKey);
|
|
3736
3744
|
return {
|
|
3737
3745
|
...t.initialFetcherParams,
|
|
@@ -3741,14 +3749,14 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3741
3749
|
t.preferencesStorageKey && R(t.preferencesStorageKey, f);
|
|
3742
3750
|
};
|
|
3743
3751
|
return (f, g) => {
|
|
3744
|
-
const q = P("KIcon"), L = P("KButton"), x = P("KDropdown"),
|
|
3752
|
+
const q = P("KIcon"), L = P("KButton"), x = P("KDropdown"), G = P("KTable"), E = P("KCard");
|
|
3745
3753
|
return m(), D(E, {
|
|
3746
3754
|
class: "kong-ui-entity-base-table",
|
|
3747
3755
|
title: e.title,
|
|
3748
3756
|
"title-tag": e.titleTag
|
|
3749
3757
|
}, {
|
|
3750
3758
|
default: b(() => [
|
|
3751
|
-
$(
|
|
3759
|
+
$(G, {
|
|
3752
3760
|
ref_key: "tableRefs",
|
|
3753
3761
|
ref: d,
|
|
3754
3762
|
"cache-identifier": o.value,
|
|
@@ -3768,7 +3776,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3768
3776
|
"has-error": i.value.hasError,
|
|
3769
3777
|
headers: l.value,
|
|
3770
3778
|
"hide-pagination-when-optional": "",
|
|
3771
|
-
"initial-fetcher-params":
|
|
3779
|
+
"initial-fetcher-params": W.value,
|
|
3772
3780
|
"is-loading": e.isLoading,
|
|
3773
3781
|
"pagination-type": e.paginationType,
|
|
3774
3782
|
"row-attrs": u,
|
|
@@ -3779,11 +3787,11 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3779
3787
|
"onUpdate:tablePreferences": v
|
|
3780
3788
|
}, Ke({
|
|
3781
3789
|
toolbar: b(({ state: k }) => [
|
|
3782
|
-
Se(B("div",
|
|
3790
|
+
Se(B("div", Bs, [
|
|
3783
3791
|
ne(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3784
|
-
f.$slots["toolbar-button"] ? (m(), M("div",
|
|
3792
|
+
f.$slots["toolbar-button"] ? (m(), M("div", Us, [
|
|
3785
3793
|
ne(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3786
|
-
])) :
|
|
3794
|
+
])) : Y("", !0)
|
|
3787
3795
|
], 512), [
|
|
3788
3796
|
[$e, s(k)]
|
|
3789
3797
|
])
|
|
@@ -3822,14 +3830,14 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3822
3830
|
]),
|
|
3823
3831
|
_: 2
|
|
3824
3832
|
}, 1032, ["width"])
|
|
3825
|
-
], 8,
|
|
3833
|
+
], 8, Ps)
|
|
3826
3834
|
]),
|
|
3827
3835
|
_: 2
|
|
3828
3836
|
}, [
|
|
3829
3837
|
ye(e.tableHeaders, (k, j) => ({
|
|
3830
3838
|
name: j,
|
|
3831
3839
|
fn: b(({ row: O, rowKey: J, rowValue: te }) => [
|
|
3832
|
-
$(
|
|
3840
|
+
$(Ls, {
|
|
3833
3841
|
"key-name": String(j),
|
|
3834
3842
|
"row-el": c(O)
|
|
3835
3843
|
}, {
|
|
@@ -3859,10 +3867,10 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3859
3867
|
}, 8, ["title", "title-tag"]);
|
|
3860
3868
|
};
|
|
3861
3869
|
}
|
|
3862
|
-
}),
|
|
3870
|
+
}), Vs = /* @__PURE__ */ be(Rs, [["__scopeId", "data-v-99908c24"]]), Ds = {
|
|
3863
3871
|
key: 0,
|
|
3864
3872
|
class: "kong-ui-entity-delete-error"
|
|
3865
|
-
},
|
|
3873
|
+
}, zs = {
|
|
3866
3874
|
key: 1,
|
|
3867
3875
|
class: "description"
|
|
3868
3876
|
}, Gs = /* @__PURE__ */ X({
|
|
@@ -3923,14 +3931,14 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3923
3931
|
onProceed: s
|
|
3924
3932
|
}, {
|
|
3925
3933
|
default: b(() => [
|
|
3926
|
-
e.error ? (m(), M("div",
|
|
3934
|
+
e.error ? (m(), M("div", Ds, [
|
|
3927
3935
|
$(d, { appearance: "danger" }, {
|
|
3928
3936
|
default: b(() => [
|
|
3929
3937
|
Z(F(e.error), 1)
|
|
3930
3938
|
]),
|
|
3931
3939
|
_: 1
|
|
3932
3940
|
})
|
|
3933
|
-
])) :
|
|
3941
|
+
])) : Y("", !0),
|
|
3934
3942
|
$(h(t), {
|
|
3935
3943
|
class: "message",
|
|
3936
3944
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
@@ -3949,23 +3957,23 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3949
3957
|
key: "0"
|
|
3950
3958
|
} : void 0
|
|
3951
3959
|
]), 1032, ["keypath"]),
|
|
3952
|
-
r.description || l.$slots.description ? (m(), M("div",
|
|
3960
|
+
r.description || l.$slots.description ? (m(), M("div", zs, [
|
|
3953
3961
|
ne(l.$slots, "description", {}, () => [
|
|
3954
3962
|
B("p", null, F(r.description), 1)
|
|
3955
3963
|
], !0)
|
|
3956
|
-
])) :
|
|
3964
|
+
])) : Y("", !0)
|
|
3957
3965
|
]),
|
|
3958
3966
|
_: 3
|
|
3959
3967
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3960
3968
|
};
|
|
3961
3969
|
}
|
|
3962
|
-
}),
|
|
3970
|
+
}), Js = /* @__PURE__ */ be(Gs, [["__scopeId", "data-v-4361d622"]]), Hs = {
|
|
3963
3971
|
fill: "none",
|
|
3964
3972
|
height: "20",
|
|
3965
3973
|
viewBox: "0 0 20 20",
|
|
3966
3974
|
width: "20",
|
|
3967
3975
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3968
|
-
},
|
|
3976
|
+
}, Ys = {
|
|
3969
3977
|
id: "mask0_180_20349",
|
|
3970
3978
|
height: "20",
|
|
3971
3979
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3973,7 +3981,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3973
3981
|
width: "20",
|
|
3974
3982
|
x: "0",
|
|
3975
3983
|
y: "0"
|
|
3976
|
-
}, Ws = ["fill"],
|
|
3984
|
+
}, Ws = ["fill"], Zs = { mask: "url(#mask0_180_20349)" }, Qs = ["fill"], fn = /* @__PURE__ */ X({
|
|
3977
3985
|
__name: "IconFilter",
|
|
3978
3986
|
props: {
|
|
3979
3987
|
color: {
|
|
@@ -3982,26 +3990,26 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
3982
3990
|
}
|
|
3983
3991
|
},
|
|
3984
3992
|
setup(e) {
|
|
3985
|
-
return (n, t) => (m(), M("svg",
|
|
3986
|
-
B("mask",
|
|
3993
|
+
return (n, t) => (m(), M("svg", Hs, [
|
|
3994
|
+
B("mask", Ys, [
|
|
3987
3995
|
B("rect", {
|
|
3988
3996
|
fill: e.color,
|
|
3989
3997
|
height: "20",
|
|
3990
3998
|
width: "20"
|
|
3991
3999
|
}, null, 8, Ws)
|
|
3992
4000
|
]),
|
|
3993
|
-
B("g",
|
|
4001
|
+
B("g", Zs, [
|
|
3994
4002
|
B("path", {
|
|
3995
4003
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3996
4004
|
fill: e.color
|
|
3997
|
-
}, null, 8,
|
|
4005
|
+
}, null, 8, Qs)
|
|
3998
4006
|
])
|
|
3999
4007
|
]));
|
|
4000
4008
|
}
|
|
4001
|
-
}),
|
|
4009
|
+
}), Xs = {
|
|
4002
4010
|
key: 1,
|
|
4003
4011
|
class: "kong-ui-entity-filter"
|
|
4004
|
-
},
|
|
4012
|
+
}, el = { class: "kong-ui-entity-filter-menu" }, tl = ["data-testid"], nl = ["onClick", "onKeydown"], rl = { class: "menu-item-indicator" }, al = { class: "menu-item-body" }, ol = ["for"], il = { class: "menu-item-buttons" }, sl = { class: "filter-clear-button-container" }, ll = /* @__PURE__ */ X({
|
|
4005
4013
|
__name: "EntityFilter",
|
|
4006
4014
|
props: {
|
|
4007
4015
|
// filter config, either exact match or fuzzy match
|
|
@@ -4060,10 +4068,10 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4060
4068
|
o.value = {
|
|
4061
4069
|
...o.value,
|
|
4062
4070
|
[v]: ""
|
|
4063
|
-
},
|
|
4071
|
+
}, W();
|
|
4064
4072
|
}, K = () => {
|
|
4065
|
-
o.value = {},
|
|
4066
|
-
},
|
|
4073
|
+
o.value = {}, W(!0);
|
|
4074
|
+
}, W = (v = !1) => {
|
|
4067
4075
|
const f = Object.keys(o.value).reduce((g, q) => (o.value[q] && (g[q] = `${o.value[q]}`), g), {});
|
|
4068
4076
|
v && (i.value = !1), a("update:modelValue", new URLSearchParams(f).toString());
|
|
4069
4077
|
};
|
|
@@ -4090,7 +4098,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4090
4098
|
])
|
|
4091
4099
|
]),
|
|
4092
4100
|
_: 1
|
|
4093
|
-
}, 8, ["model-value", "placeholder"])) : (m(), M("div",
|
|
4101
|
+
}, 8, ["model-value", "placeholder"])) : (m(), M("div", Xs, [
|
|
4094
4102
|
$(q, {
|
|
4095
4103
|
appearance: "tertiary",
|
|
4096
4104
|
"data-testid": "filter-button",
|
|
@@ -4108,9 +4116,9 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4108
4116
|
}, null, 512), [
|
|
4109
4117
|
[$e, i.value]
|
|
4110
4118
|
]),
|
|
4111
|
-
Se(B("div",
|
|
4119
|
+
Se(B("div", el, [
|
|
4112
4120
|
(m(!0), M(ve, null, ye(u.value, (x) => {
|
|
4113
|
-
var
|
|
4121
|
+
var G, E;
|
|
4114
4122
|
return m(), M("div", {
|
|
4115
4123
|
key: x.value,
|
|
4116
4124
|
class: "kong-ui-entity-filter-menu-item",
|
|
@@ -4124,20 +4132,20 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4124
4132
|
onKeydown: vr((k) => c(x.value), ["enter"])
|
|
4125
4133
|
}, [
|
|
4126
4134
|
Z(F(x.label) + " ", 1),
|
|
4127
|
-
Se(B("span",
|
|
4135
|
+
Se(B("span", rl, null, 512), [
|
|
4128
4136
|
[$e, l.value.includes(x.value)]
|
|
4129
4137
|
]),
|
|
4130
4138
|
$(h(bs), {
|
|
4131
4139
|
class: Me(["menu-item-expand-icon", { expanded: s.value.has(x.value) }]),
|
|
4132
4140
|
color: h(pa)
|
|
4133
4141
|
}, null, 8, ["class", "color"])
|
|
4134
|
-
], 42,
|
|
4135
|
-
Se(B("div",
|
|
4142
|
+
], 42, nl),
|
|
4143
|
+
Se(B("div", al, [
|
|
4136
4144
|
B("label", {
|
|
4137
4145
|
class: "menu-item-label",
|
|
4138
4146
|
for: A(x.value)
|
|
4139
|
-
}, F(h(t)("filter.fieldLabel")), 9,
|
|
4140
|
-
((E = (
|
|
4147
|
+
}, F(h(t)("filter.fieldLabel")), 9, ol),
|
|
4148
|
+
((E = (G = e.config.schema) == null ? void 0 : G[x.value]) == null ? void 0 : E.type) === "select" ? (m(), D(L, {
|
|
4141
4149
|
key: 0,
|
|
4142
4150
|
id: A(x.value),
|
|
4143
4151
|
modelValue: o.value[x.value],
|
|
@@ -4156,12 +4164,12 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4156
4164
|
], 512), [
|
|
4157
4165
|
[$e, s.value.has(x.value)]
|
|
4158
4166
|
]),
|
|
4159
|
-
Se(B("div",
|
|
4167
|
+
Se(B("div", il, [
|
|
4160
4168
|
$(q, {
|
|
4161
4169
|
appearance: "tertiary",
|
|
4162
4170
|
"data-testid": "apply-filter",
|
|
4163
4171
|
size: "small",
|
|
4164
|
-
onClick: f[0] || (f[0] = (k) =>
|
|
4172
|
+
onClick: f[0] || (f[0] = (k) => W(!0))
|
|
4165
4173
|
}, {
|
|
4166
4174
|
default: b(() => [
|
|
4167
4175
|
Z(F(h(t)("filter.applyButtonText")), 1)
|
|
@@ -4182,9 +4190,9 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4182
4190
|
], 512), [
|
|
4183
4191
|
[$e, s.value.has(x.value)]
|
|
4184
4192
|
])
|
|
4185
|
-
], 8,
|
|
4193
|
+
], 8, tl);
|
|
4186
4194
|
}), 128)),
|
|
4187
|
-
B("div",
|
|
4195
|
+
B("div", sl, [
|
|
4188
4196
|
$(q, {
|
|
4189
4197
|
appearance: "tertiary",
|
|
4190
4198
|
size: "small",
|
|
@@ -4202,7 +4210,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4202
4210
|
]));
|
|
4203
4211
|
};
|
|
4204
4212
|
}
|
|
4205
|
-
}),
|
|
4213
|
+
}), ul = /* @__PURE__ */ be(ll, [["__scopeId", "data-v-8cfadde3"]]), nt = /* @__PURE__ */ X({
|
|
4206
4214
|
__name: "PermissionsWrapper",
|
|
4207
4215
|
props: {
|
|
4208
4216
|
/**
|
|
@@ -4230,15 +4238,15 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4230
4238
|
}, { immediate: !0 }), (a, i) => r.value ? ne(a.$slots, "default", {
|
|
4231
4239
|
key: 0,
|
|
4232
4240
|
isAllowed: t.value
|
|
4233
|
-
}) :
|
|
4241
|
+
}) : Y("", !0);
|
|
4234
4242
|
}
|
|
4235
|
-
}),
|
|
4243
|
+
}), cl = { class: "form-section-wrapper" }, dl = {
|
|
4236
4244
|
key: 1,
|
|
4237
4245
|
class: "form-section-description"
|
|
4238
|
-
},
|
|
4246
|
+
}, pl = {
|
|
4239
4247
|
key: 2,
|
|
4240
4248
|
class: "form-section-footer"
|
|
4241
|
-
},
|
|
4249
|
+
}, fl = { class: "form-section-content" }, ml = /* @__PURE__ */ X({
|
|
4242
4250
|
__name: "EntityFormSection",
|
|
4243
4251
|
props: {
|
|
4244
4252
|
title: {
|
|
@@ -4271,8 +4279,8 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4271
4279
|
return (t, r) => (m(), M("fieldset", {
|
|
4272
4280
|
class: Me(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4273
4281
|
}, [
|
|
4274
|
-
B("div",
|
|
4275
|
-
e.hideInfoHeader ?
|
|
4282
|
+
B("div", cl, [
|
|
4283
|
+
e.hideInfoHeader ? Y("", !0) : (m(), M("div", {
|
|
4276
4284
|
key: 0,
|
|
4277
4285
|
class: Me(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4278
4286
|
}, [
|
|
@@ -4284,26 +4292,26 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4284
4292
|
Z(F(e.title), 1)
|
|
4285
4293
|
]),
|
|
4286
4294
|
_: 1
|
|
4287
|
-
})) :
|
|
4288
|
-
e.description || h(n).description ? (m(), M("div",
|
|
4295
|
+
})) : Y("", !0),
|
|
4296
|
+
e.description || h(n).description ? (m(), M("div", dl, [
|
|
4289
4297
|
ne(t.$slots, "description", {}, () => [
|
|
4290
4298
|
B("p", null, F(e.description), 1)
|
|
4291
4299
|
], !0)
|
|
4292
|
-
])) :
|
|
4293
|
-
h(n).footer ? (m(), M("div",
|
|
4300
|
+
])) : Y("", !0),
|
|
4301
|
+
h(n).footer ? (m(), M("div", pl, [
|
|
4294
4302
|
ne(t.$slots, "footer", {}, void 0, !0)
|
|
4295
|
-
])) :
|
|
4303
|
+
])) : Y("", !0)
|
|
4296
4304
|
], 2)),
|
|
4297
|
-
B("div",
|
|
4305
|
+
B("div", fl, [
|
|
4298
4306
|
ne(t.$slots, "default", {}, void 0, !0)
|
|
4299
4307
|
])
|
|
4300
4308
|
])
|
|
4301
4309
|
], 2));
|
|
4302
4310
|
}
|
|
4303
|
-
}), mn = /* @__PURE__ */ be(
|
|
4311
|
+
}), mn = /* @__PURE__ */ be(ml, [["__scopeId", "data-v-4bb31634"]]), { useAxios: Lt, useDeleteUrlBuilder: gl, useErrors: hl, useExternalLinkCreator: Bl, useFetchUrlBuilder: Ul, useFetcher: yl, useDebouncedFilter: mr, useStringHelpers: Pl, useHelpers: Rl, useGatewayFeatureSupported: Vl, useTruncationDetector: Dl, useValidators: vl } = se, bl = { class: "add-to-group-form-container" }, kl = { class: "add-to-group-cta-text" }, Cl = {
|
|
4304
4312
|
key: 0,
|
|
4305
4313
|
class: "kong-ui-entity-add-to-groups-error"
|
|
4306
|
-
},
|
|
4314
|
+
}, wl = { key: 0 }, _l = /* @__PURE__ */ X({
|
|
4307
4315
|
__name: "AddToGroupModal",
|
|
4308
4316
|
props: {
|
|
4309
4317
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4347,19 +4355,19 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4347
4355
|
const j = w.value ? y.value.find((J) => J.id === k) : (O = u.value) == null ? void 0 : O.find((J) => J.id === k);
|
|
4348
4356
|
return j ? j.name : k;
|
|
4349
4357
|
}, K = () => {
|
|
4350
|
-
f.value = "",
|
|
4351
|
-
},
|
|
4358
|
+
f.value = "", W.value = [], x.value = [], a("cancel");
|
|
4359
|
+
}, W = N([]), v = N(!1), f = N(""), g = async () => {
|
|
4352
4360
|
if (!o.value.length) {
|
|
4353
4361
|
f.value = "", x.value = [], a("cancel");
|
|
4354
4362
|
return;
|
|
4355
4363
|
}
|
|
4356
|
-
v.value = !0, f.value = "",
|
|
4364
|
+
v.value = !0, f.value = "", W.value = [], x.value = [];
|
|
4357
4365
|
try {
|
|
4358
4366
|
const k = o.value.map((J) => L(J)), j = await Promise.allSettled(k);
|
|
4359
4367
|
let O = !0;
|
|
4360
4368
|
j.forEach((J) => {
|
|
4361
4369
|
J.status !== "fulfilled" && (O = !1);
|
|
4362
|
-
}), O ? (
|
|
4370
|
+
}), O ? (W.value = [], x.value = [], a("add:success", o.value), o.value = []) : (W.value.length && a("add:partial-success", W.value), o.value = [], G(j));
|
|
4363
4371
|
} catch {
|
|
4364
4372
|
f.value = t("consumer_groups.errors.add"), a("error", f.value);
|
|
4365
4373
|
} finally {
|
|
@@ -4375,12 +4383,12 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4375
4383
|
};
|
|
4376
4384
|
try {
|
|
4377
4385
|
const O = await i.post(q.value, j);
|
|
4378
|
-
return
|
|
4386
|
+
return W.value.push(k), O;
|
|
4379
4387
|
} catch (O) {
|
|
4380
4388
|
let J = `${R(k)} - ${O.message}`;
|
|
4381
4389
|
return O.response.status === 409 && (J = `${R(k)} - ${t("consumer_groups.errors.already_added")}`), Promise.reject(Error(J));
|
|
4382
4390
|
}
|
|
4383
|
-
}, x = N([]),
|
|
4391
|
+
}, x = N([]), G = (k) => {
|
|
4384
4392
|
x.value = k.map((j) => {
|
|
4385
4393
|
var O;
|
|
4386
4394
|
return (O = j.reason) == null ? void 0 : O.message;
|
|
@@ -4402,8 +4410,8 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4402
4410
|
onProceed: g
|
|
4403
4411
|
}, {
|
|
4404
4412
|
default: b(() => [
|
|
4405
|
-
B("div",
|
|
4406
|
-
B("p",
|
|
4413
|
+
B("div", bl, [
|
|
4414
|
+
B("p", kl, F(h(t)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4407
4415
|
$(O, {
|
|
4408
4416
|
modelValue: o.value,
|
|
4409
4417
|
"onUpdate:modelValue": j[0] || (j[0] = (ce) => o.value = ce),
|
|
@@ -4419,18 +4427,18 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4419
4427
|
width: "100%",
|
|
4420
4428
|
onQueryChange: h(s)
|
|
4421
4429
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4422
|
-
f.value || p.value || x.value.length ? (m(), M("div",
|
|
4430
|
+
f.value || p.value || x.value.length ? (m(), M("div", Cl, [
|
|
4423
4431
|
$(J, { appearance: "danger" }, {
|
|
4424
4432
|
default: b(() => [
|
|
4425
4433
|
B("p", null, F(h(t)("consumer_groups.errors.add")), 1),
|
|
4426
|
-
x.value.length ? (m(), M("ul",
|
|
4427
|
-
(m(!0), M(ve, null, ye(x.value, (ce,
|
|
4428
|
-
])) :
|
|
4434
|
+
x.value.length ? (m(), M("ul", wl, [
|
|
4435
|
+
(m(!0), M(ve, null, ye(x.value, (ce, Ge) => (m(), M("li", { key: Ge }, F(ce), 1))), 128))
|
|
4436
|
+
])) : Y("", !0),
|
|
4429
4437
|
B("div", null, F(f.value || p.value), 1)
|
|
4430
4438
|
]),
|
|
4431
4439
|
_: 1
|
|
4432
4440
|
})
|
|
4433
|
-
])) :
|
|
4441
|
+
])) : Y("", !0)
|
|
4434
4442
|
])
|
|
4435
4443
|
]),
|
|
4436
4444
|
_: 1
|
|
@@ -4442,7 +4450,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4442
4450
|
for (const [r, a] of n)
|
|
4443
4451
|
t[r] = a;
|
|
4444
4452
|
return t;
|
|
4445
|
-
},
|
|
4453
|
+
}, Al = /* @__PURE__ */ Bt(_l, [["__scopeId", "data-v-bb0a8037"]]), xl = { class: "kong-ui-entities-consumer-groups-list" }, Il = { key: 1 }, Sl = /* @__PURE__ */ X({
|
|
4446
4454
|
__name: "ConsumerGroupList",
|
|
4447
4455
|
props: {
|
|
4448
4456
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4517,7 +4525,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4517
4525
|
},
|
|
4518
4526
|
schema: r.config.filterSchema
|
|
4519
4527
|
};
|
|
4520
|
-
}), K = I(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher:
|
|
4528
|
+
}), K = I(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: W, fetcherState: v } = yl(r.config, w.value, K.value), f = () => {
|
|
4521
4529
|
_.value = "";
|
|
4522
4530
|
}, g = () => {
|
|
4523
4531
|
l.value++;
|
|
@@ -4549,7 +4557,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4549
4557
|
entity: S,
|
|
4550
4558
|
message: i("consumer_groups.copy.success_brief")
|
|
4551
4559
|
});
|
|
4552
|
-
},
|
|
4560
|
+
}, G = async (S) => {
|
|
4553
4561
|
var re;
|
|
4554
4562
|
await ((re = r.canRetrieve) == null ? void 0 : re.call(r, S)) && o.push(r.config.getViewRoute(S.id));
|
|
4555
4563
|
}, E = (S) => ({
|
|
@@ -4558,7 +4566,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4558
4566
|
}), k = (S) => ({
|
|
4559
4567
|
label: i("consumer_groups.actions.edit"),
|
|
4560
4568
|
to: r.config.getEditRoute(S)
|
|
4561
|
-
}), j = N(void 0), O = N(!1), J = N(!1), te = N(""), ce =
|
|
4569
|
+
}), j = N(void 0), O = N(!1), J = N(!1), te = N(""), ce = gl(r.config, w.value), Ge = (S) => {
|
|
4562
4570
|
j.value = S, O.value = !0;
|
|
4563
4571
|
}, yt = () => {
|
|
4564
4572
|
O.value = !1;
|
|
@@ -4582,10 +4590,10 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4582
4590
|
H || C(), l.value++, t("add:success", S);
|
|
4583
4591
|
}, ae = () => {
|
|
4584
4592
|
u.value && Je();
|
|
4585
|
-
}, V = N(void 0),
|
|
4586
|
-
V.value = S,
|
|
4593
|
+
}, V = N(void 0), z = N(!1), fe = N(""), ke = (S) => {
|
|
4594
|
+
V.value = S, z.value = !0;
|
|
4587
4595
|
}, le = () => {
|
|
4588
|
-
|
|
4596
|
+
z.value = !1, V.value = void 0;
|
|
4589
4597
|
}, Be = I(() => {
|
|
4590
4598
|
var H, re, me, Ce;
|
|
4591
4599
|
let S = `${r.config.apiBaseUrl}${Te.list[r.config.app].oneForConsumer}`;
|
|
@@ -4622,9 +4630,9 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4622
4630
|
return ut(async () => {
|
|
4623
4631
|
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"));
|
|
4624
4632
|
}), (S, H) => {
|
|
4625
|
-
const re = P("KButton"), me = P("KBadge"), Ce = P("KTruncate"),
|
|
4626
|
-
return m(), M("div",
|
|
4627
|
-
$(h(
|
|
4633
|
+
const re = P("KButton"), me = P("KBadge"), Ce = P("KTruncate"), Ye = P("KDropdownItem"), Rt = P("KClipboardProvider"), hr = P("KPrompt");
|
|
4634
|
+
return m(), M("div", xl, [
|
|
4635
|
+
$(h(Vs), {
|
|
4628
4636
|
"cache-identifier": e.cacheIdentifier,
|
|
4629
4637
|
"disable-pagination": u.value && !e.config.paginatedEndpoint,
|
|
4630
4638
|
"disable-pagination-page-jump": "",
|
|
@@ -4632,7 +4640,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4632
4640
|
"empty-state-options": vt.value,
|
|
4633
4641
|
"enable-entity-actions": "",
|
|
4634
4642
|
"error-message": q.value,
|
|
4635
|
-
fetcher: h(
|
|
4643
|
+
fetcher: h(W),
|
|
4636
4644
|
"fetcher-cache-key": l.value,
|
|
4637
4645
|
"pagination-type": "offset",
|
|
4638
4646
|
"preferences-storage-key": d.value,
|
|
@@ -4641,12 +4649,12 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4641
4649
|
"table-headers": h(p),
|
|
4642
4650
|
"use-action-outside": e.useActionOutside,
|
|
4643
4651
|
onClearSearchInput: f,
|
|
4644
|
-
"onClick:row": H[3] || (H[3] = (Q) =>
|
|
4652
|
+
"onClick:row": H[3] || (H[3] = (Q) => G(Q)),
|
|
4645
4653
|
onEmptyStateCtaClicked: ae,
|
|
4646
4654
|
onSort: g
|
|
4647
4655
|
}, {
|
|
4648
4656
|
"toolbar-filter": b(() => [
|
|
4649
|
-
u.value ?
|
|
4657
|
+
u.value ? Y("", !0) : (m(), D(h(ul), {
|
|
4650
4658
|
key: 0,
|
|
4651
4659
|
modelValue: _.value,
|
|
4652
4660
|
"onUpdate:modelValue": H[0] || (H[0] = (Q) => _.value = Q),
|
|
@@ -4705,12 +4713,12 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4705
4713
|
}, 1024))), 128))
|
|
4706
4714
|
]),
|
|
4707
4715
|
_: 2
|
|
4708
|
-
}, 1024)) : (m(), M("span",
|
|
4716
|
+
}, 1024)) : (m(), M("span", Il, "-"))
|
|
4709
4717
|
]),
|
|
4710
4718
|
actions: b(({ row: Q }) => [
|
|
4711
4719
|
$(Rt, null, {
|
|
4712
4720
|
default: b(({ copyToClipboard: Ue }) => [
|
|
4713
|
-
$(
|
|
4721
|
+
$(Ye, {
|
|
4714
4722
|
"data-testid": "action-entity-copy-id",
|
|
4715
4723
|
onClick: (yr) => L(Q, Ue)
|
|
4716
4724
|
}, {
|
|
@@ -4724,7 +4732,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4724
4732
|
}, 1024),
|
|
4725
4733
|
$(Rt, null, {
|
|
4726
4734
|
default: b(({ copyToClipboard: Ue }) => [
|
|
4727
|
-
$(
|
|
4735
|
+
$(Ye, {
|
|
4728
4736
|
"data-testid": "action-entity-copy-json",
|
|
4729
4737
|
onClick: (yr) => x(Q, Ue)
|
|
4730
4738
|
}, {
|
|
@@ -4740,7 +4748,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4740
4748
|
"auth-function": () => e.canRetrieve(Q)
|
|
4741
4749
|
}, {
|
|
4742
4750
|
default: b(() => [
|
|
4743
|
-
$(
|
|
4751
|
+
$(Ye, {
|
|
4744
4752
|
"data-testid": "action-entity-view",
|
|
4745
4753
|
"has-divider": "",
|
|
4746
4754
|
item: E(Q.id)
|
|
@@ -4752,7 +4760,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4752
4760
|
"auth-function": () => e.canEdit(Q)
|
|
4753
4761
|
}, {
|
|
4754
4762
|
default: b(() => [
|
|
4755
|
-
$(
|
|
4763
|
+
$(Ye, {
|
|
4756
4764
|
"data-testid": "action-entity-edit",
|
|
4757
4765
|
item: k(Q.id)
|
|
4758
4766
|
}, null, 8, ["item"])
|
|
@@ -4763,11 +4771,11 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4763
4771
|
"auth-function": () => e.canDelete(Q)
|
|
4764
4772
|
}, {
|
|
4765
4773
|
default: b(() => [
|
|
4766
|
-
$(
|
|
4774
|
+
$(Ye, {
|
|
4767
4775
|
danger: "",
|
|
4768
4776
|
"data-testid": "action-entity-delete",
|
|
4769
4777
|
"has-divider": "",
|
|
4770
|
-
onClick: () => e.config.consumerId ? ke(Q) :
|
|
4778
|
+
onClick: () => e.config.consumerId ? ke(Q) : Ge(Q)
|
|
4771
4779
|
}, {
|
|
4772
4780
|
default: b(() => [
|
|
4773
4781
|
Z(F(e.config.consumerId ? h(i)("consumer_groups.actions.exit") : h(i)("consumer_groups.actions.delete")), 1)
|
|
@@ -4780,7 +4788,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4780
4788
|
]),
|
|
4781
4789
|
_: 1
|
|
4782
4790
|
}, 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"]),
|
|
4783
|
-
$(h(
|
|
4791
|
+
$(h(Js), {
|
|
4784
4792
|
"action-pending": J.value,
|
|
4785
4793
|
"data-testid": "delete-consumer-group-modal",
|
|
4786
4794
|
description: h(i)("consumer_groups.delete.description"),
|
|
@@ -4792,7 +4800,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4792
4800
|
onCancel: yt,
|
|
4793
4801
|
onProceed: tt
|
|
4794
4802
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4795
|
-
e.config.consumerId ? (m(), D(
|
|
4803
|
+
e.config.consumerId ? (m(), D(Al, {
|
|
4796
4804
|
key: 0,
|
|
4797
4805
|
config: e.config,
|
|
4798
4806
|
"data-testid": "add-to-group-modal",
|
|
@@ -4800,13 +4808,13 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4800
4808
|
"onAdd:partialSuccess": H[4] || (H[4] = (Q) => U(Q, !0)),
|
|
4801
4809
|
"onAdd:success": H[5] || (H[5] = (Q) => U(Q)),
|
|
4802
4810
|
onCancel: C
|
|
4803
|
-
}, null, 8, ["config", "visible"])) :
|
|
4811
|
+
}, null, 8, ["config", "visible"])) : Y("", !0),
|
|
4804
4812
|
e.config.consumerId && V.value ? (m(), D(hr, {
|
|
4805
4813
|
key: 1,
|
|
4806
4814
|
"action-button-appearance": "danger",
|
|
4807
4815
|
"data-testid": "exit-group-modal",
|
|
4808
4816
|
title: h(i)("consumer_groups.consumers.exit.title"),
|
|
4809
|
-
visible:
|
|
4817
|
+
visible: z.value,
|
|
4810
4818
|
onCancel: le,
|
|
4811
4819
|
onProceed: gr
|
|
4812
4820
|
}, {
|
|
@@ -4832,14 +4840,14 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4832
4840
|
B("p", null, F(h(i)("consumer_groups.consumers.exit.description")), 1)
|
|
4833
4841
|
]),
|
|
4834
4842
|
_: 1
|
|
4835
|
-
}, 8, ["title", "visible"])) :
|
|
4843
|
+
}, 8, ["title", "visible"])) : Y("", !0)
|
|
4836
4844
|
]);
|
|
4837
4845
|
};
|
|
4838
4846
|
}
|
|
4839
|
-
}),
|
|
4847
|
+
}), zl = /* @__PURE__ */ Bt(Sl, [["__scopeId", "data-v-b3e86eed"]]), $l = { class: "kong-ui-entities-consumer-group-form" }, Tl = { class: "select-item-container" }, jl = { class: "select-item-label" }, Ml = {
|
|
4840
4848
|
key: 0,
|
|
4841
4849
|
class: "select-item-description"
|
|
4842
|
-
},
|
|
4850
|
+
}, El = /* @__PURE__ */ X({
|
|
4843
4851
|
__name: "ConsumerGroupForm",
|
|
4844
4852
|
props: {
|
|
4845
4853
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4879,7 +4887,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4879
4887
|
} = mr(t.config, (Le = Te.form[(tt = t.config) == null ? void 0 : tt.app]) == null ? void 0 : Le.consumersList, "", {
|
|
4880
4888
|
fetchedItemsKey: "data",
|
|
4881
4889
|
searchKeys: ["username", "custom_id", "id"]
|
|
4882
|
-
}), { axiosInstance: p } = Lt((Je = t.config) == null ? void 0 : Je.axiosRequestConfig), { getMessageFromError: A } =
|
|
4890
|
+
}), { axiosInstance: p } = Lt((Je = t.config) == null ? void 0 : Je.axiosRequestConfig), { getMessageFromError: A } = hl(), w = vl(), _ = I(() => y.value.map((C) => ({
|
|
4883
4891
|
label: C.username || C.custom_id,
|
|
4884
4892
|
value: C.id,
|
|
4885
4893
|
selected: o.fields.consumers.includes(C.id),
|
|
@@ -4888,9 +4896,9 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4888
4896
|
}))), R = I(() => {
|
|
4889
4897
|
var C, U;
|
|
4890
4898
|
return (U = Te.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : U.edit;
|
|
4891
|
-
}), K = I(() => t.consumerGroupId ? rt.Edit : rt.Create),
|
|
4892
|
-
var
|
|
4893
|
-
let V = `${(
|
|
4899
|
+
}), K = I(() => t.consumerGroupId ? rt.Edit : rt.Create), W = I(() => !!o.fields.name && !G.value), v = I(() => JSON.stringify(o.fields) !== JSON.stringify(s)), f = (C, U = "", ae = "") => {
|
|
4900
|
+
var z, fe, ke, le, Be, He;
|
|
4901
|
+
let V = `${(z = t.config) == null ? void 0 : z.apiBaseUrl}${Te.form[(fe = t.config) == null ? void 0 : fe.app][C]}`;
|
|
4894
4902
|
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;
|
|
4895
4903
|
}, g = () => {
|
|
4896
4904
|
var C;
|
|
@@ -4900,9 +4908,9 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4900
4908
|
}, L = (C) => {
|
|
4901
4909
|
r("loading", C);
|
|
4902
4910
|
}, x = async (C) => {
|
|
4903
|
-
var ae, V,
|
|
4911
|
+
var ae, V, z, fe, ke;
|
|
4904
4912
|
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) || "";
|
|
4905
|
-
const U = ((
|
|
4913
|
+
const U = ((z = C == null ? void 0 : C.item) == null ? void 0 : z.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
|
|
4906
4914
|
if (o.fields.tags = (U == null ? void 0 : U.join(", ")) || "", "consumers" in C)
|
|
4907
4915
|
o.fields.consumers = ((fe = C == null ? void 0 : C.consumers) == null ? void 0 : fe.map((le) => le.id)) || [];
|
|
4908
4916
|
else
|
|
@@ -4913,7 +4921,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4913
4921
|
O(le);
|
|
4914
4922
|
}
|
|
4915
4923
|
Object.assign(s, o.fields);
|
|
4916
|
-
},
|
|
4924
|
+
}, G = I(() => w.utf8Name(o.fields.name)), E = I(() => {
|
|
4917
4925
|
var C, U;
|
|
4918
4926
|
return {
|
|
4919
4927
|
name: o.fields.name,
|
|
@@ -4924,7 +4932,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4924
4932
|
}, J = (C = t.consumerGroupId) => {
|
|
4925
4933
|
Object.assign(s, o.fields), r("update", { ...o.fields, id: C });
|
|
4926
4934
|
}, te = (C, U, ae = t.consumerGroupId) => {
|
|
4927
|
-
const V = C == null ? void 0 : C.find((
|
|
4935
|
+
const V = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
|
|
4928
4936
|
V ? O({
|
|
4929
4937
|
code: V.status,
|
|
4930
4938
|
message: U
|
|
@@ -4946,7 +4954,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4946
4954
|
}
|
|
4947
4955
|
else
|
|
4948
4956
|
o.fields.consumers.length === 0 && C && J(C);
|
|
4949
|
-
},
|
|
4957
|
+
}, Ge = async () => {
|
|
4950
4958
|
var ae;
|
|
4951
4959
|
try {
|
|
4952
4960
|
((ae = t.config) == null ? void 0 : ae.app) === "konnect" ? await p.put(f("edit"), E.value) : await p.patch(f("edit"), E.value);
|
|
@@ -4959,22 +4967,22 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4959
4967
|
else {
|
|
4960
4968
|
if (U.length > 0)
|
|
4961
4969
|
try {
|
|
4962
|
-
const V = U.map((fe) => j(fe)),
|
|
4963
|
-
te(
|
|
4970
|
+
const V = U.map((fe) => j(fe)), z = await Promise.allSettled(V);
|
|
4971
|
+
te(z, a("consumer_groups.errors.remove_consumer"));
|
|
4964
4972
|
} catch (V) {
|
|
4965
4973
|
O(V);
|
|
4966
4974
|
}
|
|
4967
4975
|
if (C.length > 0)
|
|
4968
4976
|
try {
|
|
4969
|
-
const V = C.map((fe) => k(fe)),
|
|
4970
|
-
te(
|
|
4977
|
+
const V = C.map((fe) => k(fe)), z = await Promise.allSettled(V);
|
|
4978
|
+
te(z, a("consumer_groups.errors.add_consumer"));
|
|
4971
4979
|
} catch (V) {
|
|
4972
4980
|
O(V);
|
|
4973
4981
|
}
|
|
4974
4982
|
}
|
|
4975
4983
|
}, yt = async () => {
|
|
4976
4984
|
try {
|
|
4977
|
-
o.readonly = !0, K.value === rt.Create ? await ce() : await
|
|
4985
|
+
o.readonly = !0, K.value === rt.Create ? await ce() : await Ge();
|
|
4978
4986
|
} finally {
|
|
4979
4987
|
o.readonly = !1;
|
|
4980
4988
|
}
|
|
@@ -4983,19 +4991,19 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
4983
4991
|
await c();
|
|
4984
4992
|
}), (C, U) => {
|
|
4985
4993
|
const ae = P("KInput"), V = P("KMultiselect");
|
|
4986
|
-
return m(), M("div",
|
|
4987
|
-
$(h(
|
|
4988
|
-
"can-submit":
|
|
4994
|
+
return m(), M("div", $l, [
|
|
4995
|
+
$(h(Fs), {
|
|
4996
|
+
"can-submit": W.value && v.value,
|
|
4989
4997
|
config: e.config,
|
|
4990
4998
|
"edit-id": e.consumerGroupId,
|
|
4991
|
-
"error-message": o.errorMessage || h(d) ||
|
|
4999
|
+
"error-message": o.errorMessage || h(d) || G.value,
|
|
4992
5000
|
"fetch-url": R.value,
|
|
4993
5001
|
"form-fields": E.value,
|
|
4994
5002
|
"is-readonly": o.readonly,
|
|
4995
5003
|
onCancel: g,
|
|
4996
|
-
"onFetch:error": U[3] || (U[3] = (
|
|
5004
|
+
"onFetch:error": U[3] || (U[3] = (z) => q(z)),
|
|
4997
5005
|
"onFetch:success": x,
|
|
4998
|
-
onLoading: U[4] || (U[4] = (
|
|
5006
|
+
onLoading: U[4] || (U[4] = (z) => L(z)),
|
|
4999
5007
|
onSubmit: yt
|
|
5000
5008
|
}, {
|
|
5001
5009
|
default: b(() => [
|
|
@@ -5006,7 +5014,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5006
5014
|
default: b(() => [
|
|
5007
5015
|
$(ae, {
|
|
5008
5016
|
modelValue: o.fields.name,
|
|
5009
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
5017
|
+
"onUpdate:modelValue": U[0] || (U[0] = (z) => o.fields.name = z),
|
|
5010
5018
|
modelModifiers: { trim: !0 },
|
|
5011
5019
|
autocomplete: "off",
|
|
5012
5020
|
"data-testid": "consumer-group-form-name",
|
|
@@ -5017,7 +5025,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5017
5025
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
5018
5026
|
$(ae, {
|
|
5019
5027
|
modelValue: o.fields.tags,
|
|
5020
|
-
"onUpdate:modelValue": U[1] || (U[1] = (
|
|
5028
|
+
"onUpdate:modelValue": U[1] || (U[1] = (z) => o.fields.tags = z),
|
|
5021
5029
|
modelModifiers: { trim: !0 },
|
|
5022
5030
|
autocomplete: "off",
|
|
5023
5031
|
"data-testid": "consumer-group-form-tags",
|
|
@@ -5041,7 +5049,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5041
5049
|
default: b(() => [
|
|
5042
5050
|
$(V, {
|
|
5043
5051
|
modelValue: o.fields.consumers,
|
|
5044
|
-
"onUpdate:modelValue": U[2] || (U[2] = (
|
|
5052
|
+
"onUpdate:modelValue": U[2] || (U[2] = (z) => o.fields.consumers = z),
|
|
5045
5053
|
appearance: "select",
|
|
5046
5054
|
autosuggest: "",
|
|
5047
5055
|
items: _.value,
|
|
@@ -5051,12 +5059,12 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5051
5059
|
width: "auto",
|
|
5052
5060
|
onQueryChange: h(l)
|
|
5053
5061
|
}, {
|
|
5054
|
-
"item-template": b(({ item:
|
|
5062
|
+
"item-template": b(({ item: z }) => {
|
|
5055
5063
|
var fe, ke, le;
|
|
5056
5064
|
return [
|
|
5057
|
-
B("div",
|
|
5058
|
-
B("div",
|
|
5059
|
-
(fe =
|
|
5065
|
+
B("div", Tl, [
|
|
5066
|
+
B("div", jl, F(z.label), 1),
|
|
5067
|
+
(fe = z == null ? void 0 : z.data) != null && fe.username && ((ke = z == null ? void 0 : z.data) != null && ke.custom_id) ? (m(), M("div", Ml, F((le = z == null ? void 0 : z.data) == null ? void 0 : le.custom_id), 1)) : Y("", !0)
|
|
5060
5068
|
])
|
|
5061
5069
|
];
|
|
5062
5070
|
}),
|
|
@@ -5071,7 +5079,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5071
5079
|
]);
|
|
5072
5080
|
};
|
|
5073
5081
|
}
|
|
5074
|
-
}), Gl = /* @__PURE__ */ Bt(
|
|
5082
|
+
}), Gl = /* @__PURE__ */ Bt(El, [["__scopeId", "data-v-9681165d"]]), Ol = { class: "kong-ui-consumer-group-entity-config-card" }, Jl = /* @__PURE__ */ X({
|
|
5075
5083
|
__name: "ConsumerGroupConfigCard",
|
|
5076
5084
|
props: {
|
|
5077
5085
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5107,7 +5115,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5107
5115
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
5108
5116
|
}
|
|
5109
5117
|
});
|
|
5110
|
-
return (i, o) => (m(), M("div",
|
|
5118
|
+
return (i, o) => (m(), M("div", Ol, [
|
|
5111
5119
|
$(h(Ms), {
|
|
5112
5120
|
config: e.config,
|
|
5113
5121
|
"config-card-doc": e.configCardDoc,
|
|
@@ -5123,7 +5131,7 @@ const Yi = { class: "yaml-config" }, fr = /* @__PURE__ */ X({
|
|
|
5123
5131
|
}
|
|
5124
5132
|
});
|
|
5125
5133
|
export {
|
|
5126
|
-
|
|
5134
|
+
Jl as ConsumerGroupConfigCard,
|
|
5127
5135
|
Gl as ConsumerGroupForm,
|
|
5128
|
-
|
|
5136
|
+
zl as ConsumerGroupList
|
|
5129
5137
|
};
|