@kong-ui-public/entities-consumer-groups 1.1.35 → 1.1.36-pr.831.bbbc78bc.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.
|
@@ -95,11 +95,11 @@ const br = {
|
|
|
95
95
|
name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, Cr = {
|
|
99
99
|
consumer_groups: br
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
const e = It("en-us",
|
|
101
|
+
function kr() {
|
|
102
|
+
const e = It("en-us", Cr);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
105
|
i18nT: cn(e)
|
|
@@ -107,7 +107,7 @@ function Cr() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
|
-
useI18n:
|
|
110
|
+
useI18n: kr
|
|
111
111
|
}, Ie = "/api/runtime_groups/{controlPlaneId}", xe = "/{workspace}", Te = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
@@ -304,27 +304,27 @@ function Fr(e, n, t, r = {
|
|
|
304
304
|
const { axiosInstance: o } = xt({
|
|
305
305
|
headers: e.requestHeaders
|
|
306
306
|
}), { i18n: { t: a } } = At(), { debounce: i } = _r(), s = i(async (y) => {
|
|
307
|
-
await
|
|
307
|
+
await C(y);
|
|
308
308
|
}, 200), l = F(!1), c = F(""), d = F(""), u = F([]), m = F(void 0), g = h(n);
|
|
309
|
-
let
|
|
310
|
-
e.app === "konnect" ?
|
|
309
|
+
let k = `${e.apiBaseUrl}${g}`;
|
|
310
|
+
e.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
311
311
|
const _ = async () => {
|
|
312
312
|
try {
|
|
313
313
|
l.value = !0;
|
|
314
|
-
const { data: y } = await o.get(`${
|
|
314
|
+
const { data: y } = await o.get(`${k}?size=${t}`);
|
|
315
315
|
y != null && y.next || (m.value = r.fetchedItemsKey in y ? y[r.fetchedItemsKey] : []), u.value = r.fetchedItemsKey in y ? y[r.fetchedItemsKey] : [];
|
|
316
316
|
} catch {
|
|
317
317
|
u.value = [], c.value = a("debouncedFilter.errors.fetch");
|
|
318
318
|
} finally {
|
|
319
319
|
l.value = !1;
|
|
320
320
|
}
|
|
321
|
-
}, p = F(""),
|
|
321
|
+
}, p = F(""), C = async (y) => {
|
|
322
322
|
var w, V;
|
|
323
323
|
if (p.value !== y)
|
|
324
324
|
if (p.value = y || "", m.value === void 0)
|
|
325
325
|
try {
|
|
326
326
|
l.value = !0, c.value = "", d.value = "";
|
|
327
|
-
let H =
|
|
327
|
+
let H = k + "";
|
|
328
328
|
y && (H += `/${y}`);
|
|
329
329
|
const { data: re } = await o.get(`${H}?size=${t}`);
|
|
330
330
|
r.fetchedItemsKey in re ? u.value = re[r.fetchedItemsKey] : re != null && re.id ? u.value = [re] : u.value = [];
|
|
@@ -338,8 +338,8 @@ function Fr(e, n, t, r = {
|
|
|
338
338
|
var re;
|
|
339
339
|
let z = !1;
|
|
340
340
|
for (const I of r.searchKeys) {
|
|
341
|
-
const
|
|
342
|
-
|
|
341
|
+
const D = typeof H[I] == "string" ? (re = H[I]) == null ? void 0 : re.toLowerCase() : H[I];
|
|
342
|
+
D != null && D.includes(y.toLowerCase()) && (z = !0);
|
|
343
343
|
}
|
|
344
344
|
return z;
|
|
345
345
|
}), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = m.value, l.value = !1;
|
|
@@ -398,8 +398,8 @@ function pn(e, n) {
|
|
|
398
398
|
const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = i;
|
|
399
399
|
try {
|
|
400
400
|
let g = new URL(a.value.href);
|
|
401
|
-
return o.value && m ? (g.search = "", g = new URL(`${g.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((
|
|
402
|
-
g.searchParams.append(_,
|
|
401
|
+
return o.value && m ? (g.search = "", g = new URL(`${g.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((k, _) => {
|
|
402
|
+
g.searchParams.append(_, k);
|
|
403
403
|
}), d && g.searchParams.append("sort_by", d), u === "desc" && g.searchParams.append("sort_desc", "1"), g.searchParams.append("size", String(l))), c && s !== 1 && g.searchParams.append("offset", String(c)), g.href;
|
|
404
404
|
} catch (g) {
|
|
405
405
|
return console.error("RouteList(fetcher)", g), r.value;
|
|
@@ -483,8 +483,8 @@ const fn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
483
483
|
}, Vr = (e, n) => {
|
|
484
484
|
const t = qt(e), r = qt(n), o = t.pop(), a = r.pop(), i = Vt(t, r);
|
|
485
485
|
return i !== 0 ? i : o && a ? Vt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
|
|
486
|
-
},
|
|
487
|
-
|
|
486
|
+
}, Dt = (e, n, t) => {
|
|
487
|
+
Dr(t);
|
|
488
488
|
const r = Vr(e, n);
|
|
489
489
|
return mn[t].includes(r);
|
|
490
490
|
}, mn = {
|
|
@@ -494,24 +494,24 @@ const fn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
494
494
|
"<=": [-1, 0],
|
|
495
495
|
"<": [-1],
|
|
496
496
|
"!=": [-1, 1]
|
|
497
|
-
},
|
|
497
|
+
}, Rt = Object.keys(mn), Dr = (e) => {
|
|
498
498
|
if (typeof e != "string")
|
|
499
499
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
500
|
-
if (
|
|
501
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
502
|
-
},
|
|
500
|
+
if (Rt.indexOf(e) === -1)
|
|
501
|
+
throw new Error(`Invalid operator, expected one of ${Rt.join("|")}`);
|
|
502
|
+
}, Rr = (e) => typeof e == "string" && /^[v\d]/.test(e) && fn.test(e);
|
|
503
503
|
function Gr(e) {
|
|
504
504
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
505
505
|
if (!n)
|
|
506
506
|
return !0;
|
|
507
507
|
const { edition: r, version: o } = n;
|
|
508
|
-
if (!
|
|
508
|
+
if (!Rr(o))
|
|
509
509
|
return console.error("Invalid version"), !1;
|
|
510
510
|
const a = t[r];
|
|
511
511
|
if (!a)
|
|
512
512
|
return !1;
|
|
513
513
|
const [i, s] = a;
|
|
514
|
-
return !(i &&
|
|
514
|
+
return !(i && Dt(o, i, "<") || s && Dt(o, s, ">"));
|
|
515
515
|
}
|
|
516
516
|
const de = {
|
|
517
517
|
useAxios: xt,
|
|
@@ -601,14 +601,14 @@ const de = {
|
|
|
601
601
|
}), i.value ? d(r("message.fail")) : n("error", t.uuid);
|
|
602
602
|
return;
|
|
603
603
|
}
|
|
604
|
-
const g = t.uuid.length > Gt,
|
|
604
|
+
const g = t.uuid.length > Gt, k = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${t.uuid.substring(0, Gt) + (g ? "..." : "")}"`;
|
|
605
605
|
typeof o == "function" && o({
|
|
606
606
|
type: "success",
|
|
607
|
-
message: `${
|
|
607
|
+
message: `${k}${r("message.success.content")}`
|
|
608
608
|
}), i.value ? d(t.successTooltip) : n("success", t.uuid);
|
|
609
609
|
};
|
|
610
610
|
return (m, g) => {
|
|
611
|
-
const
|
|
611
|
+
const k = N("KIcon"), _ = N("KClipboardProvider");
|
|
612
612
|
return f(), A("div", Wr, [
|
|
613
613
|
e.format !== "hidden" ? (f(), U(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
614
614
|
default: v(() => [
|
|
@@ -630,9 +630,9 @@ const de = {
|
|
|
630
630
|
"data-testid": "copy-to-clipboard",
|
|
631
631
|
role: "button",
|
|
632
632
|
tabindex: "0",
|
|
633
|
-
onClick: rt((
|
|
633
|
+
onClick: rt((C) => u(p), ["stop"])
|
|
634
634
|
}, [
|
|
635
|
-
j(
|
|
635
|
+
j(k, {
|
|
636
636
|
class: "uuid-icon",
|
|
637
637
|
color: e.iconColor,
|
|
638
638
|
"hide-title": !!e.tooltip || void 0,
|
|
@@ -701,12 +701,12 @@ const de = {
|
|
|
701
701
|
_: 1
|
|
702
702
|
}, 8, ["class"]));
|
|
703
703
|
}
|
|
704
|
-
}),
|
|
704
|
+
}), ke = (e, n) => {
|
|
705
705
|
const t = e.__vccOpts || e;
|
|
706
706
|
for (const [r, o] of n)
|
|
707
707
|
t[r] = o;
|
|
708
708
|
return t;
|
|
709
|
-
}, yn = /* @__PURE__ */
|
|
709
|
+
}, yn = /* @__PURE__ */ ke(to, [["__scopeId", "data-v-68ca83ec"]]), no = /* @__PURE__ */ ie({
|
|
710
710
|
__name: "InternalLinkItem",
|
|
711
711
|
props: {
|
|
712
712
|
item: {
|
|
@@ -733,7 +733,7 @@ const de = {
|
|
|
733
733
|
]);
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
|
-
}), ro = /* @__PURE__ */
|
|
736
|
+
}), ro = /* @__PURE__ */ ke(no, [["__scopeId", "data-v-7410504d"]]), oo = /* @__PURE__ */ ie({
|
|
737
737
|
__name: "StatusBadge",
|
|
738
738
|
props: {
|
|
739
739
|
status: {
|
|
@@ -755,7 +755,7 @@ const de = {
|
|
|
755
755
|
}, 8, ["appearance"]);
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
}), ao = "#0044f4", io = "#e0e4ea", so = "#3a3f51", lo = "1px", uo = "20px", co = { class: "config-card-details-row" }, po = ["data-testid"], fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = { key: 1 }, ho = ["data-testid"], vo = ["data-testid"], bo = ["data-testid"],
|
|
758
|
+
}), ao = "#0044f4", io = "#e0e4ea", so = "#3a3f51", lo = "1px", uo = "20px", co = { class: "config-card-details-row" }, po = ["data-testid"], fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = { key: 1 }, ho = ["data-testid"], vo = ["data-testid"], bo = ["data-testid"], Co = ["data-testid"], ko = ["title"], _o = {
|
|
759
759
|
name: "ConfigCardItem",
|
|
760
760
|
components: { CopyUuid: gn, JsonCardItem: yn, StatusBadge: oo, InternalLinkItem: ro }
|
|
761
761
|
}, wo = /* @__PURE__ */ ie({
|
|
@@ -913,7 +913,7 @@ const de = {
|
|
|
913
913
|
}
|
|
914
914
|
});
|
|
915
915
|
return (u, m) => {
|
|
916
|
-
const g = N("KLabel"),
|
|
916
|
+
const g = N("KLabel"), k = N("KBadge"), _ = N("KMethodBadge");
|
|
917
917
|
return f(), A("div", co, [
|
|
918
918
|
P("div", {
|
|
919
919
|
class: "config-card-details-label",
|
|
@@ -956,10 +956,10 @@ const de = {
|
|
|
956
956
|
key: 0,
|
|
957
957
|
"data-testid": `${e.item.key}-badge-tags`
|
|
958
958
|
}, [
|
|
959
|
-
(f(!0), A(ve, null, ye(e.item.value, (p,
|
|
960
|
-
key: `${e.item.key}-badge-tag-${
|
|
959
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(), U(k, {
|
|
960
|
+
key: `${e.item.key}-badge-tag-${C}`,
|
|
961
961
|
class: "config-badge",
|
|
962
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
962
|
+
"data-testid": `${e.item.key}-badge-tag-${C}`,
|
|
963
963
|
"truncation-tooltip": p
|
|
964
964
|
}, {
|
|
965
965
|
default: v(() => [
|
|
@@ -973,9 +973,9 @@ const de = {
|
|
|
973
973
|
class: "copy-uuid-array",
|
|
974
974
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
975
975
|
}, [
|
|
976
|
-
(f(!0), A(ve, null, ye(e.item.value, (p,
|
|
977
|
-
key: `${e.item.key}-copy-uuid-${
|
|
978
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
976
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(), U(h(gn), ht(d.value.childAttrs, {
|
|
977
|
+
key: `${e.item.key}-copy-uuid-${C}`,
|
|
978
|
+
"data-testid": `${e.item.key}-copy-uuid-${C}`,
|
|
979
979
|
uuid: p
|
|
980
980
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
981
981
|
], 8, vo)) : d.value.additionalComponent === "KMethodBadge" ? (f(), A("div", {
|
|
@@ -983,10 +983,10 @@ const de = {
|
|
|
983
983
|
class: "method-badge-array",
|
|
984
984
|
"data-testid": `${e.item.key}-badge-methods`
|
|
985
985
|
}, [
|
|
986
|
-
(f(!0), A(ve, null, ye(e.item.value, (p,
|
|
987
|
-
key: `${e.item.key}-badge-method-${
|
|
986
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(), U(_, {
|
|
987
|
+
key: `${e.item.key}-badge-method-${C}`,
|
|
988
988
|
class: "config-badge",
|
|
989
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
989
|
+
"data-testid": `${e.item.key}-badge-method-${C}`,
|
|
990
990
|
"is-rounded": "",
|
|
991
991
|
label: p,
|
|
992
992
|
method: h(vr).includes(p.toLowerCase()) ? p.toLowerCase() : "custom"
|
|
@@ -1001,17 +1001,17 @@ const de = {
|
|
|
1001
1001
|
key: 3,
|
|
1002
1002
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1003
1003
|
}, [
|
|
1004
|
-
(f(!0), A(ve, null, ye(e.item.value, (p,
|
|
1005
|
-
key: `json-array-item-${
|
|
1006
|
-
index:
|
|
1004
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(), U(yn, {
|
|
1005
|
+
key: `json-array-item-${C}`,
|
|
1006
|
+
index: C,
|
|
1007
1007
|
"is-array-item": "",
|
|
1008
1008
|
item: p
|
|
1009
1009
|
}, null, 8, ["index", "item"]))), 128))
|
|
1010
|
-
], 8,
|
|
1010
|
+
], 8, Co)) : (f(), A("span", {
|
|
1011
1011
|
key: 4,
|
|
1012
1012
|
class: Ke(["attrs-data-text", { truncated: e.truncated }]),
|
|
1013
1013
|
title: e.truncated ? e.item.value : void 0
|
|
1014
|
-
}, E(d.value.text), 11,
|
|
1014
|
+
}, E(d.value.text), 11, ko))
|
|
1015
1015
|
]),
|
|
1016
1016
|
_: 1
|
|
1017
1017
|
}, 16))
|
|
@@ -1024,7 +1024,7 @@ const de = {
|
|
|
1024
1024
|
]);
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
}), St = /* @__PURE__ */
|
|
1027
|
+
}), St = /* @__PURE__ */ ke(wo, [["__scopeId", "data-v-a3c5ab01"]]);
|
|
1028
1028
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1029
1029
|
function hn(e) {
|
|
1030
1030
|
return typeof e > "u" || e === null;
|
|
@@ -1207,12 +1207,12 @@ vt.prototype.extend = function(e) {
|
|
|
1207
1207
|
var r = Object.create(vt.prototype);
|
|
1208
1208
|
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = Uo(r.compiledImplicit, r.compiledExplicit), r;
|
|
1209
1209
|
};
|
|
1210
|
-
var bn = vt,
|
|
1210
|
+
var bn = vt, Cn = new pe("tag:yaml.org,2002:str", {
|
|
1211
1211
|
kind: "scalar",
|
|
1212
1212
|
construct: function(e) {
|
|
1213
1213
|
return e !== null ? e : "";
|
|
1214
1214
|
}
|
|
1215
|
-
}),
|
|
1215
|
+
}), kn = new pe("tag:yaml.org,2002:seq", {
|
|
1216
1216
|
kind: "sequence",
|
|
1217
1217
|
construct: function(e) {
|
|
1218
1218
|
return e !== null ? e : [];
|
|
@@ -1224,8 +1224,8 @@ var bn = vt, kn = new pe("tag:yaml.org,2002:str", {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
}), wn = new bn({
|
|
1226
1226
|
explicit: [
|
|
1227
|
-
kn,
|
|
1228
1227
|
Cn,
|
|
1228
|
+
kn,
|
|
1229
1229
|
_n
|
|
1230
1230
|
]
|
|
1231
1231
|
});
|
|
@@ -1235,17 +1235,17 @@ function Vo(e) {
|
|
|
1235
1235
|
var n = e.length;
|
|
1236
1236
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Do() {
|
|
1239
1239
|
return null;
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function Ro(e) {
|
|
1242
1242
|
return e === null;
|
|
1243
1243
|
}
|
|
1244
1244
|
var In = new pe("tag:yaml.org,2002:null", {
|
|
1245
1245
|
kind: "scalar",
|
|
1246
1246
|
resolve: Vo,
|
|
1247
|
-
construct:
|
|
1248
|
-
predicate:
|
|
1247
|
+
construct: Do,
|
|
1248
|
+
predicate: Ro,
|
|
1249
1249
|
represent: {
|
|
1250
1250
|
canonical: function() {
|
|
1251
1251
|
return "~";
|
|
@@ -1573,7 +1573,7 @@ function ba(e) {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
return !0;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function Ca(e) {
|
|
1577
1577
|
if (e === null)
|
|
1578
1578
|
return [];
|
|
1579
1579
|
var n, t, r, o, a, i = e;
|
|
@@ -1584,14 +1584,14 @@ function ka(e) {
|
|
|
1584
1584
|
var Bn = new pe("tag:yaml.org,2002:pairs", {
|
|
1585
1585
|
kind: "sequence",
|
|
1586
1586
|
resolve: ba,
|
|
1587
|
-
construct:
|
|
1588
|
-
}),
|
|
1587
|
+
construct: Ca
|
|
1588
|
+
}), ka = Object.prototype.hasOwnProperty;
|
|
1589
1589
|
function _a(e) {
|
|
1590
1590
|
if (e === null)
|
|
1591
1591
|
return !0;
|
|
1592
1592
|
var n, t = e;
|
|
1593
1593
|
for (n in t)
|
|
1594
|
-
if (
|
|
1594
|
+
if (ka.call(t, n) && t[n] !== null)
|
|
1595
1595
|
return !1;
|
|
1596
1596
|
return !0;
|
|
1597
1597
|
}
|
|
@@ -1649,13 +1649,13 @@ function Oa(e) {
|
|
|
1649
1649
|
(e - 65536 & 1023) + 56320
|
|
1650
1650
|
);
|
|
1651
1651
|
}
|
|
1652
|
-
var Vn = new Array(256),
|
|
1652
|
+
var Vn = new Array(256), Dn = new Array(256);
|
|
1653
1653
|
for (var Le = 0; Le < 256; Le++)
|
|
1654
|
-
Vn[Le] = Jt(Le) ? 1 : 0,
|
|
1654
|
+
Vn[Le] = Jt(Le) ? 1 : 0, Dn[Le] = Jt(Le);
|
|
1655
1655
|
function Ea(e, n) {
|
|
1656
1656
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function Rn(e, n) {
|
|
1659
1659
|
var t = {
|
|
1660
1660
|
name: e.filename,
|
|
1661
1661
|
buffer: e.input.slice(0, -1),
|
|
@@ -1667,10 +1667,10 @@ function Dn(e, n) {
|
|
|
1667
1667
|
return t.snippet = Bo(t), new me(n, t);
|
|
1668
1668
|
}
|
|
1669
1669
|
function S(e, n) {
|
|
1670
|
-
throw
|
|
1670
|
+
throw Rn(e, n);
|
|
1671
1671
|
}
|
|
1672
1672
|
function it(e, n) {
|
|
1673
|
-
e.onWarning && e.onWarning.call(null,
|
|
1673
|
+
e.onWarning && e.onWarning.call(null, Rn(e, n));
|
|
1674
1674
|
}
|
|
1675
1675
|
var Wt = {
|
|
1676
1676
|
YAML: function(e, n, t) {
|
|
@@ -1804,7 +1804,7 @@ function Ka(e, n) {
|
|
|
1804
1804
|
if ($e(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
|
|
1805
1805
|
ae(e, !1, n);
|
|
1806
1806
|
else if (s < 256 && Vn[s])
|
|
1807
|
-
e.result +=
|
|
1807
|
+
e.result += Dn[s], e.position++;
|
|
1808
1808
|
else if ((i = $a(s)) > 0) {
|
|
1809
1809
|
for (o = i, a = 0; o > 0; o--)
|
|
1810
1810
|
s = e.input.charCodeAt(++e.position), (i = Ta(s)) >= 0 ? a = (a << 4) + i : S(e, "expected hexadecimal character");
|
|
@@ -1818,7 +1818,7 @@ function Ka(e, n) {
|
|
|
1818
1818
|
S(e, "unexpected end of the stream within a double quoted scalar");
|
|
1819
1819
|
}
|
|
1820
1820
|
function Ba(e, n) {
|
|
1821
|
-
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, g,
|
|
1821
|
+
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, g, k = /* @__PURE__ */ Object.create(null), _, p, C, y;
|
|
1822
1822
|
if (y = e.input.charCodeAt(e.position), y === 91)
|
|
1823
1823
|
d = 93, g = !1, s = [];
|
|
1824
1824
|
else if (y === 123)
|
|
@@ -1828,7 +1828,7 @@ function Ba(e, n) {
|
|
|
1828
1828
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), y = e.input.charCodeAt(++e.position); y !== 0; ) {
|
|
1829
1829
|
if (ae(e, !0, n), y = e.input.charCodeAt(e.position), y === d)
|
|
1830
1830
|
return e.position++, e.tag = i, e.anchor = l, e.kind = g ? "mapping" : "sequence", e.result = s, !0;
|
|
1831
|
-
t ? y === 44 && S(e, "expected the node content, but found ','") : S(e, "missed comma between flow collection entries"), p = _ =
|
|
1831
|
+
t ? y === 44 && S(e, "expected the node content, but found ','") : S(e, "missed comma between flow collection entries"), p = _ = C = null, u = m = !1, y === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, ae(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Ve(e, n, ot, !1, !0), p = e.tag, _ = e.result, ae(e, !0, n), y = e.input.charCodeAt(e.position), (m || e.line === r) && y === 58 && (u = !0, y = e.input.charCodeAt(++e.position), ae(e, !0, n), Ve(e, n, ot, !1, !0), C = e.result), g ? Ue(e, s, k, p, _, C, r, o, a) : u ? s.push(Ue(e, null, k, p, _, C, r, o, a)) : s.push(_), ae(e, !0, n), y = e.input.charCodeAt(e.position), y === 44 ? (t = !0, y = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1832
1832
|
}
|
|
1833
1833
|
S(e, "unexpected end of the stream within a flow collection");
|
|
1834
1834
|
}
|
|
@@ -1896,12 +1896,12 @@ function Qt(e, n) {
|
|
|
1896
1896
|
return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1897
1897
|
}
|
|
1898
1898
|
function La(e, n, t) {
|
|
1899
|
-
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), g = null,
|
|
1899
|
+
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), g = null, k = null, _ = null, p = !1, C = !1, y;
|
|
1900
1900
|
if (e.firstTabInLine !== -1)
|
|
1901
1901
|
return !1;
|
|
1902
1902
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), y = e.input.charCodeAt(e.position); y !== 0; ) {
|
|
1903
1903
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, S(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (y === 63 || y === 58) && he(r))
|
|
1904
|
-
y === 63 ? (p && (Ue(e, u, m, g,
|
|
1904
|
+
y === 63 ? (p && (Ue(e, u, m, g, k, null, i, s, l), g = k = _ = null), C = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : S(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = r;
|
|
1905
1905
|
else {
|
|
1906
1906
|
if (i = e.line, s = e.lineStart, l = e.position, !Ve(e, t, Ln, !1, !0))
|
|
1907
1907
|
break;
|
|
@@ -1909,22 +1909,22 @@ function La(e, n, t) {
|
|
|
1909
1909
|
for (y = e.input.charCodeAt(e.position); Fe(y); )
|
|
1910
1910
|
y = e.input.charCodeAt(++e.position);
|
|
1911
1911
|
if (y === 58)
|
|
1912
|
-
y = e.input.charCodeAt(++e.position), he(y) || S(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, g,
|
|
1913
|
-
else if (
|
|
1912
|
+
y = e.input.charCodeAt(++e.position), he(y) || S(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, g, k, null, i, s, l), g = k = _ = null), C = !0, p = !1, o = !1, g = e.tag, k = e.result;
|
|
1913
|
+
else if (C)
|
|
1914
1914
|
S(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1915
1915
|
else
|
|
1916
1916
|
return e.tag = c, e.anchor = d, !0;
|
|
1917
|
-
} else if (
|
|
1917
|
+
} else if (C)
|
|
1918
1918
|
S(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1919
1919
|
else
|
|
1920
1920
|
return e.tag = c, e.anchor = d, !0;
|
|
1921
1921
|
}
|
|
1922
|
-
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ve(e, n, at, !0, o) && (p ?
|
|
1922
|
+
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ve(e, n, at, !0, o) && (p ? k = e.result : _ = e.result), p || (Ue(e, u, m, g, k, _, i, s, l), g = k = _ = null), ae(e, !0, -1), y = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && y !== 0)
|
|
1923
1923
|
S(e, "bad indentation of a mapping entry");
|
|
1924
1924
|
else if (e.lineIndent < n)
|
|
1925
1925
|
break;
|
|
1926
1926
|
}
|
|
1927
|
-
return p && Ue(e, u, m, g,
|
|
1927
|
+
return p && Ue(e, u, m, g, k, null, i, s, l), C && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), C;
|
|
1928
1928
|
}
|
|
1929
1929
|
function qa(e) {
|
|
1930
1930
|
var n, t = !1, r = !1, o, a, i;
|
|
@@ -1965,7 +1965,7 @@ function Ua(e) {
|
|
|
1965
1965
|
return e.position === n && S(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Me.call(e.anchorMap, t) || S(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ae(e, !0, -1), !0;
|
|
1966
1966
|
}
|
|
1967
1967
|
function Ve(e, n, t, r, o) {
|
|
1968
|
-
var a, i, s, l = 1, c = !1, d = !1, u, m, g,
|
|
1968
|
+
var a, i, s, l = 1, c = !1, d = !1, u, m, g, k, _, p;
|
|
1969
1969
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || qn === t, r && ae(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
1970
1970
|
for (; qa(e) || Pa(e); )
|
|
1971
1971
|
ae(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
@@ -1973,20 +1973,20 @@ function Ve(e, n, t, r, o) {
|
|
|
1973
1973
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1974
1974
|
else if (e.tag === "?") {
|
|
1975
1975
|
for (e.result !== null && e.kind !== "scalar" && S(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
1976
|
-
if (
|
|
1977
|
-
e.result =
|
|
1976
|
+
if (k = e.implicitTypes[u], k.resolve(e.result)) {
|
|
1977
|
+
e.result = k.construct(e.result), e.tag = k.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1978
1978
|
break;
|
|
1979
1979
|
}
|
|
1980
1980
|
} else if (e.tag !== "!") {
|
|
1981
1981
|
if (Me.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1982
|
-
|
|
1982
|
+
k = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1983
1983
|
else
|
|
1984
|
-
for (
|
|
1984
|
+
for (k = null, g = e.typeMap.multi[e.kind || "fallback"], u = 0, m = g.length; u < m; u += 1)
|
|
1985
1985
|
if (e.tag.slice(0, g[u].tag.length) === g[u].tag) {
|
|
1986
|
-
|
|
1986
|
+
k = g[u];
|
|
1987
1987
|
break;
|
|
1988
1988
|
}
|
|
1989
|
-
|
|
1989
|
+
k || S(e, "unknown tag !<" + e.tag + ">"), e.result !== null && k.kind !== e.kind && S(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + k.kind + '", not "' + e.kind + '"'), k.resolve(e.result, e.tag) ? (e.result = k.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : S(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1990
1990
|
}
|
|
1991
1991
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1992
1992
|
}
|
|
@@ -2031,7 +2031,7 @@ function Gn(e, n) {
|
|
|
2031
2031
|
Va(t);
|
|
2032
2032
|
return t.documents;
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2034
|
+
function Da(e, n, t) {
|
|
2035
2035
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2036
2036
|
var r = Gn(e, t);
|
|
2037
2037
|
if (typeof n != "function")
|
|
@@ -2039,7 +2039,7 @@ function Ra(e, n, t) {
|
|
|
2039
2039
|
for (var o = 0, a = r.length; o < a; o += 1)
|
|
2040
2040
|
n(r[o]);
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function Ra(e, n) {
|
|
2043
2043
|
var t = Gn(e, n);
|
|
2044
2044
|
if (t.length !== 0) {
|
|
2045
2045
|
if (t.length === 1)
|
|
@@ -2047,7 +2047,7 @@ function Da(e, n) {
|
|
|
2047
2047
|
throw new me("expected a single document in the stream, but found more");
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
|
-
var Ga =
|
|
2050
|
+
var Ga = Da, Ha = Ra, Hn = {
|
|
2051
2051
|
loadAll: Ga,
|
|
2052
2052
|
load: Ha
|
|
2053
2053
|
}, zn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279, za = 9, Je = 10, Ya = 13, Ja = 32, Wa = 33, Za = 34, bt = 35, Qa = 37, Xa = 38, ei = 39, ti = 42, Jn = 44, ni = 45, st = 58, ri = 61, oi = 62, ai = 63, ii = 64, Wn = 91, Zn = 93, si = 96, Qn = 123, li = 124, Xn = 125, fe = {};
|
|
@@ -2115,7 +2115,7 @@ function Xt(e, n) {
|
|
|
2115
2115
|
` && (a += t), a += i;
|
|
2116
2116
|
return a;
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function Ct(e, n) {
|
|
2119
2119
|
return `
|
|
2120
2120
|
` + le.repeat(" ", e.indent * n);
|
|
2121
2121
|
}
|
|
@@ -2159,9 +2159,9 @@ function er(e) {
|
|
|
2159
2159
|
var n = /^\n* /;
|
|
2160
2160
|
return n.test(e);
|
|
2161
2161
|
}
|
|
2162
|
-
var tr = 1,
|
|
2162
|
+
var tr = 1, kt = 2, nr = 3, rr = 4, qe = 5;
|
|
2163
2163
|
function vi(e, n, t, r, o, a, i, s) {
|
|
2164
|
-
var l, c = 0, d = null, u = !1, m = !1, g = r !== -1,
|
|
2164
|
+
var l, c = 0, d = null, u = !1, m = !1, g = r !== -1, k = -1, _ = yi(He(e, 0)) && hi(He(e, e.length - 1));
|
|
2165
2165
|
if (n || i)
|
|
2166
2166
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2167
2167
|
if (c = He(e, l), !Ze(c))
|
|
@@ -2172,14 +2172,14 @@ function vi(e, n, t, r, o, a, i, s) {
|
|
|
2172
2172
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2173
2173
|
if (c = He(e, l), c === Je)
|
|
2174
2174
|
u = !0, g && (m = m || // Foldable line = too long, and not more-indented.
|
|
2175
|
-
l -
|
|
2175
|
+
l - k - 1 > r && e[k + 1] !== " ", k = l);
|
|
2176
2176
|
else if (!Ze(c))
|
|
2177
2177
|
return qe;
|
|
2178
2178
|
_ = _ && tn(c, d, s), d = c;
|
|
2179
2179
|
}
|
|
2180
|
-
m = m || g && l -
|
|
2180
|
+
m = m || g && l - k - 1 > r && e[k + 1] !== " ";
|
|
2181
2181
|
}
|
|
2182
|
-
return !u && !m ? _ && !i && !o(e) ? tr : a === We ? qe :
|
|
2182
|
+
return !u && !m ? _ && !i && !o(e) ? tr : a === We ? qe : kt : t > 9 && er(e) ? qe : i ? a === We ? qe : kt : m ? rr : nr;
|
|
2183
2183
|
}
|
|
2184
2184
|
function bi(e, n, t, r, o) {
|
|
2185
2185
|
e.dump = function() {
|
|
@@ -2203,14 +2203,14 @@ function bi(e, n, t, r, o) {
|
|
|
2203
2203
|
)) {
|
|
2204
2204
|
case tr:
|
|
2205
2205
|
return n;
|
|
2206
|
-
case
|
|
2206
|
+
case kt:
|
|
2207
2207
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2208
2208
|
case nr:
|
|
2209
2209
|
return "|" + nn(n, e.indent) + rn(Xt(n, a));
|
|
2210
2210
|
case rr:
|
|
2211
|
-
return ">" + nn(n, e.indent) + rn(Xt(
|
|
2211
|
+
return ">" + nn(n, e.indent) + rn(Xt(Ci(n, i), a));
|
|
2212
2212
|
case qe:
|
|
2213
|
-
return '"' +
|
|
2213
|
+
return '"' + ki(n) + '"';
|
|
2214
2214
|
default:
|
|
2215
2215
|
throw new me("impossible error: invalid scalar style");
|
|
2216
2216
|
}
|
|
@@ -2228,7 +2228,7 @@ function rn(e) {
|
|
|
2228
2228
|
return e[e.length - 1] === `
|
|
2229
2229
|
` ? e.slice(0, -1) : e;
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function Ci(e, n) {
|
|
2232
2232
|
for (var t = /(\n+)([^\n]*)/g, r = function() {
|
|
2233
2233
|
var c = e.indexOf(`
|
|
2234
2234
|
`);
|
|
@@ -2251,7 +2251,7 @@ function on(e, n) {
|
|
|
2251
2251
|
`, e.length - o > n && i > o ? l += e.slice(o, i) + `
|
|
2252
2252
|
` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function ki(e) {
|
|
2255
2255
|
for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
|
|
2256
2256
|
t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || pi(t);
|
|
2257
2257
|
return n;
|
|
@@ -2265,7 +2265,7 @@ function _i(e, n, t) {
|
|
|
2265
2265
|
function an(e, n, t, r) {
|
|
2266
2266
|
var o = "", a = e.tag, i, s, l;
|
|
2267
2267
|
for (i = 0, s = t.length; i < s; i += 1)
|
|
2268
|
-
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o +=
|
|
2268
|
+
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump && Je === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2269
2269
|
e.tag = a, e.dump = o || "[]";
|
|
2270
2270
|
}
|
|
2271
2271
|
function wi(e, n, t) {
|
|
@@ -2283,7 +2283,7 @@ function Ii(e, n, t, r) {
|
|
|
2283
2283
|
else if (e.sortKeys)
|
|
2284
2284
|
throw new me("sortKeys must be a boolean or a function");
|
|
2285
2285
|
for (s = 0, l = i.length; s < l; s += 1)
|
|
2286
|
-
m = "", (!r || o !== "") && (m +=
|
|
2286
|
+
m = "", (!r || o !== "") && (m += Ct(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Ae(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Je === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += Ct(e, n)), Ae(e, n + 1, d, !0, u) && (e.dump && Je === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
|
|
2287
2287
|
e.tag = a, e.dump = o || "{}";
|
|
2288
2288
|
}
|
|
2289
2289
|
function sn(e, n, t) {
|
|
@@ -2374,9 +2374,9 @@ var $i = pe, Mi = bn, Oi = wn, Ei = Tn, ji = $n, Fi = $t, Ki = Hn.load, Bi = Hn.
|
|
|
2374
2374
|
int: An,
|
|
2375
2375
|
merge: jn,
|
|
2376
2376
|
omap: Kn,
|
|
2377
|
-
seq:
|
|
2378
|
-
str:
|
|
2379
|
-
}, Pi = jt("safeLoad", "load"), Ui = jt("safeLoadAll", "loadAll"), Vi = jt("safeDump", "dump"),
|
|
2377
|
+
seq: kn,
|
|
2378
|
+
str: Cn
|
|
2379
|
+
}, Pi = jt("safeLoad", "load"), Ui = jt("safeLoadAll", "loadAll"), Vi = jt("safeDump", "dump"), Di = {
|
|
2380
2380
|
Type: $i,
|
|
2381
2381
|
Schema: Mi,
|
|
2382
2382
|
FAILSAFE_SCHEMA: Oi,
|
|
@@ -2392,7 +2392,7 @@ var $i = pe, Mi = bn, Oi = wn, Ei = Tn, ji = $n, Fi = $t, Ki = Hn.load, Bi = Hn.
|
|
|
2392
2392
|
safeLoadAll: Ui,
|
|
2393
2393
|
safeDump: Vi
|
|
2394
2394
|
};
|
|
2395
|
-
const
|
|
2395
|
+
const Ri = {
|
|
2396
2396
|
key: 0,
|
|
2397
2397
|
class: "config-card-display-form"
|
|
2398
2398
|
}, Gi = ["data-testid"], Hi = {
|
|
@@ -2432,11 +2432,11 @@ const Di = {
|
|
|
2432
2432
|
setup(e) {
|
|
2433
2433
|
const n = e, t = ut(), { i18n: { t: r } } = de.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = F(""), i = F("");
|
|
2434
2434
|
return Oe(() => n.format, (s) => {
|
|
2435
|
-
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value =
|
|
2435
|
+
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Di.dump(n.record));
|
|
2436
2436
|
}, { immediate: !0 }), (s, l) => {
|
|
2437
2437
|
const c = N("KCodeBlock");
|
|
2438
2438
|
return f(), A(ve, null, [
|
|
2439
|
-
e.format === "structured" ? (f(), A("div",
|
|
2439
|
+
e.format === "structured" ? (f(), A("div", Ri, [
|
|
2440
2440
|
(f(!0), A(ve, null, ye(e.propListTypes, (d) => (f(), A("div", {
|
|
2441
2441
|
key: `config-card-details-${d}-props`,
|
|
2442
2442
|
class: Ke(`config-card-details-${d}-props`),
|
|
@@ -2488,7 +2488,7 @@ const Di = {
|
|
|
2488
2488
|
], 64);
|
|
2489
2489
|
};
|
|
2490
2490
|
}
|
|
2491
|
-
}), Wi = /* @__PURE__ */
|
|
2491
|
+
}), Wi = /* @__PURE__ */ ke(Ji, [["__scopeId", "data-v-8fd8aa2c"]]), ln = "24px", Zi = (e, n) => {
|
|
2492
2492
|
const t = e.__vccOpts || e;
|
|
2493
2493
|
for (const [r, o] of n)
|
|
2494
2494
|
t[r] = o;
|
|
@@ -2728,13 +2728,13 @@ const Di = {
|
|
|
2728
2728
|
// the last property displayed
|
|
2729
2729
|
section: be.Basic
|
|
2730
2730
|
}
|
|
2731
|
-
}, g = F(!1),
|
|
2732
|
-
var I,
|
|
2731
|
+
}, g = F(!1), k = F(!1), _ = F(""), p = F(), C = T(() => {
|
|
2732
|
+
var I, D, q;
|
|
2733
2733
|
if (!p.value)
|
|
2734
2734
|
return [];
|
|
2735
2735
|
const x = [], O = Object.keys(p.value).length;
|
|
2736
2736
|
for (const M in p.value) {
|
|
2737
|
-
const K = (
|
|
2737
|
+
const K = (D = (I = r.configSchema) == null ? void 0 : I[M]) == null ? void 0 : D.order, J = (q = m[M]) == null ? void 0 : q.order;
|
|
2738
2738
|
let X = O;
|
|
2739
2739
|
(J || J === 0) && (X = J === -1 ? O + 1 : J), K && (X = K === -1 ? O + 1 : K), x.push([M, X]);
|
|
2740
2740
|
}
|
|
@@ -2754,12 +2754,12 @@ const Di = {
|
|
|
2754
2754
|
};
|
|
2755
2755
|
}).filter((M) => !M.hidden && M.key !== r.pluginConfigKey);
|
|
2756
2756
|
}), y = T(() => {
|
|
2757
|
-
var I,
|
|
2757
|
+
var I, D;
|
|
2758
2758
|
if (!p.value || !r.pluginConfigKey)
|
|
2759
2759
|
return [];
|
|
2760
2760
|
const q = p.value[r.pluginConfigKey] || {}, x = Object.keys(q).length, O = [];
|
|
2761
2761
|
for (const M in q) {
|
|
2762
|
-
const K = (
|
|
2762
|
+
const K = (D = (I = r.pluginConfigSchema) == null ? void 0 : I[M]) == null ? void 0 : D.order, J = q[M];
|
|
2763
2763
|
let X = J != null && J !== "" ? x - 1 : x;
|
|
2764
2764
|
K && (X = K === -1 ? x + 1 : K), O.push([M, X]);
|
|
2765
2765
|
}
|
|
@@ -2779,26 +2779,26 @@ const Di = {
|
|
|
2779
2779
|
};
|
|
2780
2780
|
}).filter((M) => !M.hidden);
|
|
2781
2781
|
}), w = T(() => {
|
|
2782
|
-
var I,
|
|
2782
|
+
var I, D, q, x;
|
|
2783
2783
|
return {
|
|
2784
|
-
basic: (I =
|
|
2785
|
-
advanced: (
|
|
2786
|
-
plugin: (x = y.value) == null ? void 0 : x.concat((q =
|
|
2784
|
+
basic: (I = C.value) == null ? void 0 : I.filter((O) => O.section === be.Basic),
|
|
2785
|
+
advanced: (D = C.value) == null ? void 0 : D.filter((O) => O.section === be.Advanced),
|
|
2786
|
+
plugin: (x = y.value) == null ? void 0 : x.concat((q = C.value) == null ? void 0 : q.filter((O) => O.section === be.Plugin))
|
|
2787
2787
|
};
|
|
2788
2788
|
}), V = T(() => {
|
|
2789
2789
|
const I = [];
|
|
2790
2790
|
return w.value.basic.length && I.push("basic"), w.value.advanced.length && I.push("advanced"), w.value.plugin.length && I.push("plugin"), I;
|
|
2791
2791
|
}), H = (I) => !!(I.tooltip || o[`${I.key}-label-tooltip`]), re = T(() => {
|
|
2792
|
-
var I,
|
|
2792
|
+
var I, D;
|
|
2793
2793
|
let q = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2794
|
-
return r.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (
|
|
2794
|
+
return r.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (D = r.config) != null && D.workspace ? `/${r.config.workspace}` : "")), q = q.replace(/{id}/gi, r.config.entityId), q;
|
|
2795
2795
|
}), z = (I) => {
|
|
2796
2796
|
p.value && I(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2797
2797
|
};
|
|
2798
2798
|
return Oe(g, (I) => {
|
|
2799
2799
|
n("loading", I);
|
|
2800
2800
|
}, { immediate: !0 }), Qe(async () => {
|
|
2801
|
-
|
|
2801
|
+
k.value = !1, g.value = !0;
|
|
2802
2802
|
try {
|
|
2803
2803
|
const { data: I } = await l.get(re.value);
|
|
2804
2804
|
if (r.dataKey)
|
|
@@ -2808,16 +2808,16 @@ const Di = {
|
|
|
2808
2808
|
throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
|
|
2809
2809
|
else
|
|
2810
2810
|
p.value = { ...I };
|
|
2811
|
-
Object.keys(r.configSchema).filter((
|
|
2812
|
-
p.value && typeof p.value[
|
|
2811
|
+
Object.keys(r.configSchema).filter((D) => r.configSchema[D].forceShow).forEach((D) => {
|
|
2812
|
+
p.value && typeof p.value[D] > "u" && (p.value[D] = null);
|
|
2813
2813
|
}), n("fetch:success", I);
|
|
2814
2814
|
} catch (I) {
|
|
2815
|
-
const
|
|
2816
|
-
_.value =
|
|
2815
|
+
const D = i(I);
|
|
2816
|
+
_.value = D.startsWith("code") ? a("baseConfigCard.errors.load") : D, k.value = !0, n("fetch:error", I);
|
|
2817
2817
|
} finally {
|
|
2818
2818
|
g.value = !1;
|
|
2819
2819
|
}
|
|
2820
|
-
}), (I,
|
|
2820
|
+
}), (I, D) => {
|
|
2821
2821
|
const q = N("KLabel"), x = N("KSelect"), O = N("KButton"), M = N("KClipboardProvider"), K = N("KSkeleton"), J = N("KEmptyState"), X = N("KCard");
|
|
2822
2822
|
return f(), U(X, { class: "kong-ui-entity-base-config-card" }, Se({
|
|
2823
2823
|
actions: v(() => [
|
|
@@ -2859,7 +2859,7 @@ const Di = {
|
|
|
2859
2859
|
})) : G("", !0),
|
|
2860
2860
|
e.config.jsonYamlEnabled ? G("", !0) : (f(), U(M, { key: 3 }, {
|
|
2861
2861
|
default: v(({ copyToClipboard: ee }) => [
|
|
2862
|
-
!g.value && !
|
|
2862
|
+
!g.value && !k.value ? (f(), U(O, {
|
|
2863
2863
|
key: 0,
|
|
2864
2864
|
appearance: "btn-link",
|
|
2865
2865
|
"data-testid": "json-copy-button",
|
|
@@ -2881,7 +2881,7 @@ const Di = {
|
|
|
2881
2881
|
"data-testid": "config-card-loader",
|
|
2882
2882
|
"table-columns": 2,
|
|
2883
2883
|
type: "table"
|
|
2884
|
-
})) :
|
|
2884
|
+
})) : k.value ? (f(), U(J, {
|
|
2885
2885
|
key: 1,
|
|
2886
2886
|
"data-testid": "config-card-fetch-error",
|
|
2887
2887
|
"is-error": ""
|
|
@@ -2957,7 +2957,7 @@ const Di = {
|
|
|
2957
2957
|
]), 1024);
|
|
2958
2958
|
};
|
|
2959
2959
|
}
|
|
2960
|
-
}), ps = /* @__PURE__ */
|
|
2960
|
+
}), ps = /* @__PURE__ */ ke(ds, [["__scopeId", "data-v-7a450d8e"]]), fs = ["onReset", "onSubmit"], ms = {
|
|
2961
2961
|
class: "form-actions",
|
|
2962
2962
|
"data-testid": "form-actions"
|
|
2963
2963
|
}, gs = /* @__PURE__ */ ie({
|
|
@@ -3013,14 +3013,14 @@ const Di = {
|
|
|
3013
3013
|
const r = e, o = wt(), { i18n: { t: a } } = de.useI18n(), { getMessageFromError: i } = de.useErrors(), { axiosInstance: s } = de.useAxios({
|
|
3014
3014
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3015
3015
|
}), l = F(!1), c = F(!1), d = F(""), u = T(() => r.canSubmit === !1 || r.isReadonly), m = T(() => {
|
|
3016
|
-
var p,
|
|
3016
|
+
var p, C;
|
|
3017
3017
|
if (!r.editId)
|
|
3018
3018
|
return "";
|
|
3019
3019
|
let y = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3020
|
-
return r.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (
|
|
3020
|
+
return r.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (C = r.config) != null && C.workspace ? `/${r.config.workspace}` : "")), y = y.replace(/{id}/gi, r.editId), y;
|
|
3021
3021
|
}), g = () => {
|
|
3022
|
-
r.config.cancelRoute ? o.push(r.config.cancelRoute) :
|
|
3023
|
-
},
|
|
3022
|
+
r.config.cancelRoute ? o.push(r.config.cancelRoute) : k();
|
|
3023
|
+
}, k = () => {
|
|
3024
3024
|
n("cancel");
|
|
3025
3025
|
}, _ = () => {
|
|
3026
3026
|
u.value || n("submit");
|
|
@@ -3034,12 +3034,12 @@ const Di = {
|
|
|
3034
3034
|
const { data: p } = await s.get(m.value);
|
|
3035
3035
|
n("fetch:success", p);
|
|
3036
3036
|
} catch (p) {
|
|
3037
|
-
const
|
|
3038
|
-
d.value =
|
|
3037
|
+
const C = i(p);
|
|
3038
|
+
d.value = C.startsWith("code") ? a("baseForm.errors.edit") : C, c.value = !0, n("fetch:error", p);
|
|
3039
3039
|
} finally {
|
|
3040
3040
|
l.value = !1;
|
|
3041
3041
|
}
|
|
3042
|
-
}), (p,
|
|
3042
|
+
}), (p, C) => {
|
|
3043
3043
|
const y = N("KSkeleton"), w = N("KEmptyState"), V = N("KAlert"), H = N("KButton"), re = N("KCard");
|
|
3044
3044
|
return f(), U(re, { class: "kong-ui-entity-base-form" }, {
|
|
3045
3045
|
body: v(() => [
|
|
@@ -3060,7 +3060,7 @@ const Di = {
|
|
|
3060
3060
|
}, 8, ["cta-text"])) : (f(), A("form", {
|
|
3061
3061
|
key: 2,
|
|
3062
3062
|
"data-testid": "form-content",
|
|
3063
|
-
onReset: rt(
|
|
3063
|
+
onReset: rt(k, ["prevent"]),
|
|
3064
3064
|
onSubmit: rt(_, ["prevent"])
|
|
3065
3065
|
}, [
|
|
3066
3066
|
Z(p.$slots, "default", {}, void 0, !0),
|
|
@@ -3102,7 +3102,7 @@ const Di = {
|
|
|
3102
3102
|
});
|
|
3103
3103
|
};
|
|
3104
3104
|
}
|
|
3105
|
-
}), ys = /* @__PURE__ */
|
|
3105
|
+
}), ys = /* @__PURE__ */ ke(gs, [["__scopeId", "data-v-2286e5f2"]]), hs = { key: 0 }, vs = /* @__PURE__ */ ie({
|
|
3106
3106
|
__name: "EntityBaseTableCell",
|
|
3107
3107
|
props: {
|
|
3108
3108
|
keyName: {
|
|
@@ -3123,15 +3123,15 @@ const Di = {
|
|
|
3123
3123
|
return ((_ = t.value) == null ? void 0 : _.querySelector('[role="button"]')) || null;
|
|
3124
3124
|
}), o = T(() => {
|
|
3125
3125
|
var _, p;
|
|
3126
|
-
const
|
|
3127
|
-
return
|
|
3126
|
+
const C = (_ = n.rowEl) == null ? void 0 : _.querySelectorAll("td");
|
|
3127
|
+
return C ? ((p = C[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
3128
3128
|
});
|
|
3129
3129
|
let a;
|
|
3130
3130
|
const i = () => {
|
|
3131
3131
|
a && (a.disconnect(), a = void 0);
|
|
3132
3132
|
}, s = () => {
|
|
3133
|
-
var _, p,
|
|
3134
|
-
c.value = ((_ = r.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((
|
|
3133
|
+
var _, p, C;
|
|
3134
|
+
c.value = ((_ = r.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((C = l.value) == null ? void 0 : C.innerText) || "";
|
|
3135
3135
|
}, l = F({}), c = F(0), d = F(0), u = F(""), m = T(() => [r.value, t.value]), g = Oe(
|
|
3136
3136
|
m,
|
|
3137
3137
|
(_) => {
|
|
@@ -3146,21 +3146,21 @@ const Di = {
|
|
|
3146
3146
|
}
|
|
3147
3147
|
},
|
|
3148
3148
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3149
|
-
),
|
|
3149
|
+
), k = T(() => o.value ? c.value > d.value : !1);
|
|
3150
3150
|
return dr(() => {
|
|
3151
3151
|
s();
|
|
3152
3152
|
}), pr(() => {
|
|
3153
3153
|
g();
|
|
3154
3154
|
}), (_, p) => {
|
|
3155
|
-
const
|
|
3155
|
+
const C = N("KTooltip");
|
|
3156
3156
|
return f(), A("span", {
|
|
3157
3157
|
ref_key: "contentRef",
|
|
3158
3158
|
ref: l,
|
|
3159
3159
|
class: "content-wrapper"
|
|
3160
3160
|
}, [
|
|
3161
3161
|
o.value ? (f(), A("span", hs, [
|
|
3162
|
-
j(
|
|
3163
|
-
disabled: !
|
|
3162
|
+
j(C, {
|
|
3163
|
+
disabled: !k.value,
|
|
3164
3164
|
label: u.value,
|
|
3165
3165
|
"max-width": "300",
|
|
3166
3166
|
placement: "bottomStart"
|
|
@@ -3174,7 +3174,7 @@ const Di = {
|
|
|
3174
3174
|
], 512);
|
|
3175
3175
|
};
|
|
3176
3176
|
}
|
|
3177
|
-
}), bs = /* @__PURE__ */
|
|
3177
|
+
}), bs = /* @__PURE__ */ ke(vs, [["__scopeId", "data-v-f8a220e9"]]), Cs = { class: "toolbar-container" }, ks = {
|
|
3178
3178
|
key: 0,
|
|
3179
3179
|
class: "toolbar-button-container"
|
|
3180
3180
|
}, _s = ["data-testid"], ws = /* @__PURE__ */ ie({
|
|
@@ -3317,9 +3317,9 @@ const Di = {
|
|
|
3317
3317
|
n("clear-search-input");
|
|
3318
3318
|
}, g = (w, V) => {
|
|
3319
3319
|
n("click:row", V);
|
|
3320
|
-
},
|
|
3320
|
+
}, k = (w) => {
|
|
3321
3321
|
n("sort", w);
|
|
3322
|
-
}, { setTablePreferences: _, getTablePreferences: p } = Ir(),
|
|
3322
|
+
}, { setTablePreferences: _, getTablePreferences: p } = Ir(), C = T(() => {
|
|
3323
3323
|
const w = p(t.preferencesStorageKey);
|
|
3324
3324
|
return {
|
|
3325
3325
|
...t.initialFetcherParams,
|
|
@@ -3329,8 +3329,8 @@ const Di = {
|
|
|
3329
3329
|
t.preferencesStorageKey && _(t.preferencesStorageKey, w);
|
|
3330
3330
|
};
|
|
3331
3331
|
return (w, V) => {
|
|
3332
|
-
const H = N("KIcon"), re = N("KButton"), z = N("KDropdownMenu"), I = N("KTable"),
|
|
3333
|
-
return f(), U(
|
|
3332
|
+
const H = N("KIcon"), re = N("KButton"), z = N("KDropdownMenu"), I = N("KTable"), D = N("KCard");
|
|
3333
|
+
return f(), U(D, {
|
|
3334
3334
|
class: "kong-ui-entity-base-table",
|
|
3335
3335
|
title: e.title
|
|
3336
3336
|
}, {
|
|
@@ -3356,20 +3356,20 @@ const Di = {
|
|
|
3356
3356
|
"has-error": !!e.errorMessage,
|
|
3357
3357
|
headers: i.value,
|
|
3358
3358
|
"hide-pagination-when-optional": "",
|
|
3359
|
-
"initial-fetcher-params":
|
|
3359
|
+
"initial-fetcher-params": C.value,
|
|
3360
3360
|
"is-loading": e.isLoading,
|
|
3361
3361
|
"pagination-type": e.paginationType,
|
|
3362
3362
|
"row-attrs": s,
|
|
3363
3363
|
"search-input": e.query,
|
|
3364
3364
|
onKtableEmptyStateCtaClicked: u,
|
|
3365
3365
|
"onRow:click": g,
|
|
3366
|
-
onSort: V[0] || (V[0] = (q) =>
|
|
3366
|
+
onSort: V[0] || (V[0] = (q) => k(q)),
|
|
3367
3367
|
"onUpdate:tablePreferences": y
|
|
3368
3368
|
}, Se({
|
|
3369
3369
|
toolbar: v(({ state: q }) => [
|
|
3370
|
-
et(P("div",
|
|
3370
|
+
et(P("div", Cs, [
|
|
3371
3371
|
Z(w.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3372
|
-
w.$slots["toolbar-button"] ? (f(), A("div",
|
|
3372
|
+
w.$slots["toolbar-button"] ? (f(), A("div", ks, [
|
|
3373
3373
|
Z(w.$slots, "toolbar-button", {}, void 0, !0)
|
|
3374
3374
|
])) : G("", !0)
|
|
3375
3375
|
], 512), [
|
|
@@ -3440,7 +3440,7 @@ const Di = {
|
|
|
3440
3440
|
}, 8, ["title"]);
|
|
3441
3441
|
};
|
|
3442
3442
|
}
|
|
3443
|
-
}), Is = /* @__PURE__ */
|
|
3443
|
+
}), Is = /* @__PURE__ */ ke(ws, [["__scopeId", "data-v-a598b1d9"]]), xs = {
|
|
3444
3444
|
key: 0,
|
|
3445
3445
|
class: "kong-ui-entity-delete-error"
|
|
3446
3446
|
}, As = {
|
|
@@ -3540,7 +3540,7 @@ const Di = {
|
|
|
3540
3540
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
|
-
}), Ts = /* @__PURE__ */
|
|
3543
|
+
}), Ts = /* @__PURE__ */ ke(Ss, [["__scopeId", "data-v-1c9a2a07"]]), $s = {
|
|
3544
3544
|
fill: "none",
|
|
3545
3545
|
height: "20",
|
|
3546
3546
|
viewBox: "0 0 20 20",
|
|
@@ -3604,19 +3604,19 @@ const Di = {
|
|
|
3604
3604
|
setup(e, { emit: n }) {
|
|
3605
3605
|
const t = e, { i18n: { t: r } } = de.useI18n(), o = F(!1), a = F({}), i = T(() => {
|
|
3606
3606
|
const p = [];
|
|
3607
|
-
return new URLSearchParams(t.modelValue).forEach((
|
|
3608
|
-
|
|
3607
|
+
return new URLSearchParams(t.modelValue).forEach((C, y) => {
|
|
3608
|
+
C !== "" && p.push(y);
|
|
3609
3609
|
}), p;
|
|
3610
3610
|
}), s = T(() => {
|
|
3611
3611
|
const p = t.config.fields;
|
|
3612
|
-
return Object.keys(p).filter((
|
|
3613
|
-
label: p[
|
|
3614
|
-
value:
|
|
3612
|
+
return Object.keys(p).filter((C) => p[C].searchable).map((C) => ({
|
|
3613
|
+
label: p[C].label || C,
|
|
3614
|
+
value: C
|
|
3615
3615
|
}));
|
|
3616
3616
|
});
|
|
3617
3617
|
Oe(() => t.modelValue, (p) => {
|
|
3618
|
-
a.value = {}, new URLSearchParams(p).forEach((
|
|
3619
|
-
a.value[y] =
|
|
3618
|
+
a.value = {}, new URLSearchParams(p).forEach((C, y) => {
|
|
3619
|
+
a.value[y] = C;
|
|
3620
3620
|
});
|
|
3621
3621
|
});
|
|
3622
3622
|
const l = () => {
|
|
@@ -3624,26 +3624,26 @@ const Di = {
|
|
|
3624
3624
|
}, c = (p) => {
|
|
3625
3625
|
n("update:modelValue", p);
|
|
3626
3626
|
}, d = (p) => `filter-${p}`, u = (p) => {
|
|
3627
|
-
var
|
|
3628
|
-
return (((y = (
|
|
3627
|
+
var C, y;
|
|
3628
|
+
return (((y = (C = t.config.schema) == null ? void 0 : C[p]) == null ? void 0 : y.values) ?? []).map((w) => ({
|
|
3629
3629
|
value: w,
|
|
3630
3630
|
label: w
|
|
3631
3631
|
}));
|
|
3632
3632
|
}, m = (p) => {
|
|
3633
|
-
var
|
|
3634
|
-
return ((y = (
|
|
3633
|
+
var C, y;
|
|
3634
|
+
return ((y = (C = t.config.schema) == null ? void 0 : C[p]) == null ? void 0 : y.type) ?? "text";
|
|
3635
3635
|
}, g = (p) => {
|
|
3636
3636
|
a.value = {
|
|
3637
3637
|
...a.value,
|
|
3638
3638
|
[p]: ""
|
|
3639
3639
|
}, _();
|
|
3640
|
-
},
|
|
3640
|
+
}, k = () => {
|
|
3641
3641
|
a.value = {}, _(!0);
|
|
3642
3642
|
}, _ = (p = !1) => {
|
|
3643
|
-
const
|
|
3644
|
-
p && (o.value = !1), n("update:modelValue", new URLSearchParams(
|
|
3643
|
+
const C = Object.keys(a.value).reduce((y, w) => (a.value[w] && (y[w] = `${a.value[w]}`), y), {});
|
|
3644
|
+
p && (o.value = !1), n("update:modelValue", new URLSearchParams(C).toString());
|
|
3645
3645
|
};
|
|
3646
|
-
return (p,
|
|
3646
|
+
return (p, C) => {
|
|
3647
3647
|
const y = N("KInput"), w = N("KButton"), V = N("KSelect"), H = N("KMenuItem"), re = N("KMenu");
|
|
3648
3648
|
return e.config.isExactMatch ? (f(), U(y, {
|
|
3649
3649
|
key: 0,
|
|
@@ -3693,14 +3693,14 @@ const Di = {
|
|
|
3693
3693
|
])
|
|
3694
3694
|
]),
|
|
3695
3695
|
itemBody: v(() => {
|
|
3696
|
-
var
|
|
3696
|
+
var D, q;
|
|
3697
3697
|
return [
|
|
3698
3698
|
P("div", Ls, [
|
|
3699
3699
|
P("label", {
|
|
3700
3700
|
class: "menu-item-label",
|
|
3701
3701
|
for: d(z.value)
|
|
3702
3702
|
}, E(h(r)("filter.fieldLabel")), 9, qs),
|
|
3703
|
-
((q = (
|
|
3703
|
+
((q = (D = e.config.schema) == null ? void 0 : D[z.value]) == null ? void 0 : q.type) === "select" ? (f(), U(V, {
|
|
3704
3704
|
key: 0,
|
|
3705
3705
|
id: d(z.value),
|
|
3706
3706
|
modelValue: a.value[z.value],
|
|
@@ -3724,7 +3724,7 @@ const Di = {
|
|
|
3724
3724
|
appearance: "btn-link",
|
|
3725
3725
|
"data-testid": "apply-filter",
|
|
3726
3726
|
size: "small",
|
|
3727
|
-
onClick:
|
|
3727
|
+
onClick: C[0] || (C[0] = (x) => _(!0))
|
|
3728
3728
|
}, {
|
|
3729
3729
|
default: v(() => [
|
|
3730
3730
|
Q(E(h(r)("filter.applyButtonText")), 1)
|
|
@@ -3749,7 +3749,7 @@ const Di = {
|
|
|
3749
3749
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3750
3750
|
]),
|
|
3751
3751
|
actionButton: v(() => [
|
|
3752
|
-
j(w, { onClick:
|
|
3752
|
+
j(w, { onClick: k }, {
|
|
3753
3753
|
default: v(() => [
|
|
3754
3754
|
Q(E(h(r)("filter.clearAllButtonText")), 1)
|
|
3755
3755
|
]),
|
|
@@ -3763,7 +3763,7 @@ const Di = {
|
|
|
3763
3763
|
]));
|
|
3764
3764
|
};
|
|
3765
3765
|
}
|
|
3766
|
-
}), Vs = /* @__PURE__ */
|
|
3766
|
+
}), Vs = /* @__PURE__ */ ke(Us, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ie({
|
|
3767
3767
|
__name: "PermissionsWrapper",
|
|
3768
3768
|
props: {
|
|
3769
3769
|
/**
|
|
@@ -3793,7 +3793,7 @@ const Di = {
|
|
|
3793
3793
|
isAllowed: t.value
|
|
3794
3794
|
}) : G("", !0);
|
|
3795
3795
|
}
|
|
3796
|
-
}),
|
|
3796
|
+
}), Ds = { class: "form-section-wrapper" }, Rs = {
|
|
3797
3797
|
key: 0,
|
|
3798
3798
|
class: "form-section-title"
|
|
3799
3799
|
}, Gs = {
|
|
@@ -3831,12 +3831,12 @@ const Di = {
|
|
|
3831
3831
|
return (t, r) => (f(), A("fieldset", {
|
|
3832
3832
|
class: Ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3833
3833
|
}, [
|
|
3834
|
-
P("div",
|
|
3834
|
+
P("div", Ds, [
|
|
3835
3835
|
e.hideInfoHeader ? G("", !0) : (f(), A("div", {
|
|
3836
3836
|
key: 0,
|
|
3837
3837
|
class: Ke(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3838
3838
|
}, [
|
|
3839
|
-
e.title ? (f(), A("h4",
|
|
3839
|
+
e.title ? (f(), A("h4", Rs, E(e.title), 1)) : G("", !0),
|
|
3840
3840
|
e.description || h(n).description ? (f(), A("div", Gs, [
|
|
3841
3841
|
Z(t.$slots, "description", {}, () => [
|
|
3842
3842
|
P("p", null, E(e.description), 1)
|
|
@@ -3852,7 +3852,7 @@ const Di = {
|
|
|
3852
3852
|
])
|
|
3853
3853
|
], 2));
|
|
3854
3854
|
}
|
|
3855
|
-
}), un = /* @__PURE__ */
|
|
3855
|
+
}), un = /* @__PURE__ */ ke(Ys, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: Js, useErrors: Ws, useFetchUrlBuilder: hl, useFetcher: Zs, useDebouncedFilter: or, useStringHelpers: vl, useHelpers: bl, useGatewayFeatureSupported: Cl } = de;
|
|
3856
3856
|
const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group-cta-text" }, el = {
|
|
3857
3857
|
key: 0,
|
|
3858
3858
|
class: "kong-ui-entity-add-to-groups-error"
|
|
@@ -3891,7 +3891,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3891
3891
|
fetchedItemsKey: "data",
|
|
3892
3892
|
searchKeys: ["name", "id"]
|
|
3893
3893
|
}
|
|
3894
|
-
), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), g = F(0),
|
|
3894
|
+
), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), g = F(0), k = T(() => l.value === void 0), _ = T(() => u.value.map((x) => ({
|
|
3895
3895
|
label: x.name,
|
|
3896
3896
|
value: x.id,
|
|
3897
3897
|
selected: a.value.includes(x.id),
|
|
@@ -3899,9 +3899,9 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3899
3899
|
// we need this to determine whether or not to show the description text
|
|
3900
3900
|
}))), p = (x) => {
|
|
3901
3901
|
var M;
|
|
3902
|
-
const O =
|
|
3902
|
+
const O = k.value ? u.value.find((K) => K.id === x) : (M = l.value) == null ? void 0 : M.find((K) => K.id === x);
|
|
3903
3903
|
return O ? O.name : x;
|
|
3904
|
-
},
|
|
3904
|
+
}, C = () => {
|
|
3905
3905
|
V.value = "", y.value = [], I.value = [], n("cancel");
|
|
3906
3906
|
}, y = F([]), w = F(!1), V = F(""), H = async () => {
|
|
3907
3907
|
if (!a.value.length) {
|
|
@@ -3914,7 +3914,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3914
3914
|
let M = !0;
|
|
3915
3915
|
O.forEach((K) => {
|
|
3916
3916
|
K.status !== "fulfilled" && (M = !1);
|
|
3917
|
-
}), M ? (y.value = [], I.value = [], n("add:success", a.value), a.value = []) : (y.value.length && n("add:partial-success", y.value), a.value = [],
|
|
3917
|
+
}), M ? (y.value = [], I.value = [], n("add:success", a.value), a.value = []) : (y.value.length && n("add:partial-success", y.value), a.value = [], D(O));
|
|
3918
3918
|
} catch {
|
|
3919
3919
|
V.value = r("consumer_groups.errors.add"), n("error", V.value);
|
|
3920
3920
|
} finally {
|
|
@@ -3935,7 +3935,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3935
3935
|
let K = `${p(x)} - ${M.message}`;
|
|
3936
3936
|
return M.response.status === 409 && (K = `${p(x)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(K));
|
|
3937
3937
|
}
|
|
3938
|
-
}, I = F([]),
|
|
3938
|
+
}, I = F([]), D = (x) => {
|
|
3939
3939
|
I.value = x.map((O) => {
|
|
3940
3940
|
var M;
|
|
3941
3941
|
return (M = O.reason) == null ? void 0 : M.message;
|
|
@@ -3953,7 +3953,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3953
3953
|
"data-testid": "add-to-group-modal",
|
|
3954
3954
|
"is-visible": e.visible,
|
|
3955
3955
|
title: h(r)("consumer_groups.consumers.add.title"),
|
|
3956
|
-
onCanceled:
|
|
3956
|
+
onCanceled: C,
|
|
3957
3957
|
onProceed: H
|
|
3958
3958
|
}, {
|
|
3959
3959
|
"body-content": v(() => [
|
|
@@ -3964,7 +3964,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3964
3964
|
"onUpdate:modelValue": O[0] || (O[0] = (X) => a.value = X),
|
|
3965
3965
|
autosuggest: "",
|
|
3966
3966
|
"data-testid": "add-to-groups-multiselect",
|
|
3967
|
-
"dropdown-footer-text":
|
|
3967
|
+
"dropdown-footer-text": k.value ? h(r)("consumer_groups.consumers.add.footer") : void 0,
|
|
3968
3968
|
items: _.value,
|
|
3969
3969
|
label: h(r)("consumer_groups.consumers.add.consumer_groups_label"),
|
|
3970
3970
|
loading: h(s),
|
|
@@ -4049,10 +4049,10 @@ const Kt = (e, n) => {
|
|
|
4049
4049
|
const u = d, m = ($) => ({
|
|
4050
4050
|
"data-testid": $.username ?? $.custom_id ?? $.id
|
|
4051
4051
|
}), g = T(() => {
|
|
4052
|
-
var Y, ue,
|
|
4052
|
+
var Y, ue, Ce, Ee;
|
|
4053
4053
|
let $ = `${t.config.apiBaseUrl}${Te.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4054
|
-
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (
|
|
4055
|
-
}),
|
|
4054
|
+
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), $;
|
|
4055
|
+
}), k = F(""), _ = T(() => {
|
|
4056
4056
|
const $ = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4057
4057
|
return $ ? {
|
|
4058
4058
|
isExactMatch: $,
|
|
@@ -4068,8 +4068,8 @@ const Kt = (e, n) => {
|
|
|
4068
4068
|
},
|
|
4069
4069
|
schema: t.config.filterSchema
|
|
4070
4070
|
};
|
|
4071
|
-
}), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher:
|
|
4072
|
-
|
|
4071
|
+
}), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher: C, fetcherState: y } = Zs(t.config, g.value, p.value), w = () => {
|
|
4072
|
+
k.value = "";
|
|
4073
4073
|
}, V = () => {
|
|
4074
4074
|
s.value++;
|
|
4075
4075
|
}, H = F(""), re = ($, Y) => {
|
|
@@ -4103,7 +4103,7 @@ const Kt = (e, n) => {
|
|
|
4103
4103
|
}, I = async ($) => {
|
|
4104
4104
|
var ue;
|
|
4105
4105
|
await ((ue = t.canRetrieve) == null ? void 0 : ue.call(t, $)) && a.push(t.config.getViewRoute($.id));
|
|
4106
|
-
},
|
|
4106
|
+
}, D = ($) => ({
|
|
4107
4107
|
label: o("consumer_groups.actions.view"),
|
|
4108
4108
|
to: t.config.getViewRoute($)
|
|
4109
4109
|
}), q = ($) => ({
|
|
@@ -4119,38 +4119,38 @@ const Kt = (e, n) => {
|
|
|
4119
4119
|
M.value = !0;
|
|
4120
4120
|
try {
|
|
4121
4121
|
await i.delete(J(x.value.id)), M.value = !1, O.value = !1, s.value++, n("delete:success", x.value);
|
|
4122
|
-
} catch (
|
|
4123
|
-
K.value = ((ue = (Y =
|
|
4122
|
+
} catch (Ce) {
|
|
4123
|
+
K.value = ((ue = (Y = Ce.response) == null ? void 0 : Y.data) == null ? void 0 : ue.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
|
|
4124
4124
|
} finally {
|
|
4125
4125
|
M.value = !1;
|
|
4126
4126
|
}
|
|
4127
4127
|
}
|
|
4128
|
-
}, se = F(!1),
|
|
4128
|
+
}, se = F(!1), De = () => {
|
|
4129
4129
|
se.value = !0;
|
|
4130
4130
|
}, b = () => {
|
|
4131
4131
|
se.value = !1;
|
|
4132
4132
|
}, B = ($, Y) => {
|
|
4133
4133
|
Y || b(), s.value++, n("add:success", $);
|
|
4134
4134
|
}, oe = () => {
|
|
4135
|
-
l.value &&
|
|
4136
|
-
}, L = F(void 0),
|
|
4137
|
-
L.value = $,
|
|
4135
|
+
l.value && De();
|
|
4136
|
+
}, L = F(void 0), R = F(!1), ge = F(""), _e = ($) => {
|
|
4137
|
+
L.value = $, R.value = !0;
|
|
4138
4138
|
}, ce = () => {
|
|
4139
|
-
|
|
4139
|
+
R.value = !1, L.value = void 0;
|
|
4140
4140
|
}, Be = T(() => {
|
|
4141
|
-
var Y, ue,
|
|
4141
|
+
var Y, ue, Ce, Ee;
|
|
4142
4142
|
let $ = `${t.config.apiBaseUrl}${Te.list[t.config.app].oneForConsumer}`;
|
|
4143
|
-
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (
|
|
4144
|
-
}),
|
|
4143
|
+
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), $;
|
|
4144
|
+
}), Re = F(!1), ar = async () => {
|
|
4145
4145
|
if (L.value) {
|
|
4146
|
-
|
|
4146
|
+
Re.value = !0;
|
|
4147
4147
|
try {
|
|
4148
4148
|
const $ = Be.value.replace(/{consumerGroupId}/gi, L.value.id);
|
|
4149
4149
|
await i.delete($), n("remove:success", L.value), ce(), s.value++;
|
|
4150
4150
|
} catch ($) {
|
|
4151
4151
|
ge.value = $.message || o("consumer_groups.errors.delete"), n("error", $);
|
|
4152
4152
|
} finally {
|
|
4153
|
-
|
|
4153
|
+
Re.value = !1;
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
4156
|
};
|
|
@@ -4170,7 +4170,7 @@ const Kt = (e, n) => {
|
|
|
4170
4170
|
return Qe(async () => {
|
|
4171
4171
|
await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
|
|
4172
4172
|
}), ($, Y) => {
|
|
4173
|
-
const ue = N("KButton"),
|
|
4173
|
+
const ue = N("KButton"), Ce = N("KBadge"), Ee = N("KTruncate"), Ge = N("KDropdownItem"), Nt = N("KClipboardProvider"), ir = N("KPrompt");
|
|
4174
4174
|
return f(), A("div", ol, [
|
|
4175
4175
|
j(h(Is), {
|
|
4176
4176
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4180,11 +4180,11 @@ const Kt = (e, n) => {
|
|
|
4180
4180
|
"empty-state-options": pt.value,
|
|
4181
4181
|
"enable-entity-actions": "",
|
|
4182
4182
|
"error-message": H.value,
|
|
4183
|
-
fetcher: h(
|
|
4183
|
+
fetcher: h(C),
|
|
4184
4184
|
"fetcher-cache-key": s.value,
|
|
4185
4185
|
"pagination-type": "offset",
|
|
4186
4186
|
"preferences-storage-key": "kong-ui-entities-consumer-groups-list",
|
|
4187
|
-
query:
|
|
4187
|
+
query: k.value,
|
|
4188
4188
|
"row-attributes": m,
|
|
4189
4189
|
"table-headers": h(u),
|
|
4190
4190
|
onClearSearchInput: w,
|
|
@@ -4195,8 +4195,8 @@ const Kt = (e, n) => {
|
|
|
4195
4195
|
"toolbar-filter": v(() => [
|
|
4196
4196
|
l.value ? G("", !0) : (f(), U(h(Vs), {
|
|
4197
4197
|
key: 0,
|
|
4198
|
-
modelValue:
|
|
4199
|
-
"onUpdate:modelValue": Y[0] || (Y[0] = (W) =>
|
|
4198
|
+
modelValue: k.value,
|
|
4199
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (W) => k.value = W),
|
|
4200
4200
|
config: _.value
|
|
4201
4201
|
}, null, 8, ["modelValue", "config"]))
|
|
4202
4202
|
]),
|
|
@@ -4210,7 +4210,7 @@ const Kt = (e, n) => {
|
|
|
4210
4210
|
"data-testid": "toolbar-add-consumer-group",
|
|
4211
4211
|
icon: "plus",
|
|
4212
4212
|
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4213
|
-
onClick: Y[1] || (Y[1] = () => e.config.consumerId ?
|
|
4213
|
+
onClick: Y[1] || (Y[1] = () => e.config.consumerId ? De() : void 0)
|
|
4214
4214
|
}, {
|
|
4215
4215
|
default: v(() => [
|
|
4216
4216
|
Q(E(e.config.consumerId ? h(o)("consumer_groups.actions.add_to_group") : h(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
@@ -4230,7 +4230,7 @@ const Kt = (e, n) => {
|
|
|
4230
4230
|
tags: v(({ rowValue: W }) => [
|
|
4231
4231
|
(W == null ? void 0 : W.length) > 0 ? (f(), U(Ee, { key: 0 }, {
|
|
4232
4232
|
default: v(() => [
|
|
4233
|
-
(f(!0), A(ve, null, ye(W, (Ne) => (f(), U(
|
|
4233
|
+
(f(!0), A(ve, null, ye(W, (Ne) => (f(), U(Ce, {
|
|
4234
4234
|
key: Ne,
|
|
4235
4235
|
onClick: Y[2] || (Y[2] = rt(() => {
|
|
4236
4236
|
}, ["stop"]))
|
|
@@ -4280,7 +4280,7 @@ const Kt = (e, n) => {
|
|
|
4280
4280
|
j(Ge, {
|
|
4281
4281
|
"data-testid": "action-entity-view",
|
|
4282
4282
|
"has-divider": "",
|
|
4283
|
-
item:
|
|
4283
|
+
item: D(W.id)
|
|
4284
4284
|
}, null, 8, ["item"])
|
|
4285
4285
|
]),
|
|
4286
4286
|
_: 2
|
|
@@ -4341,7 +4341,7 @@ const Kt = (e, n) => {
|
|
|
4341
4341
|
e.config.consumerId && L.value ? (f(), U(ir, {
|
|
4342
4342
|
key: 1,
|
|
4343
4343
|
"data-testid": "exit-group-modal",
|
|
4344
|
-
"is-visible":
|
|
4344
|
+
"is-visible": R.value,
|
|
4345
4345
|
title: h(o)("consumer_groups.consumers.exit.title"),
|
|
4346
4346
|
type: "danger",
|
|
4347
4347
|
onCanceled: ce,
|
|
@@ -4374,7 +4374,7 @@ const Kt = (e, n) => {
|
|
|
4374
4374
|
};
|
|
4375
4375
|
}
|
|
4376
4376
|
});
|
|
4377
|
-
const
|
|
4377
|
+
const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { class: "kong-ui-entities-consumer-group-form" }, ll = { class: "select-item-label" }, ul = {
|
|
4378
4378
|
key: 0,
|
|
4379
4379
|
class: "select-item-desc"
|
|
4380
4380
|
}, cl = /* @__PURE__ */ ie({
|
|
@@ -4395,7 +4395,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4395
4395
|
},
|
|
4396
4396
|
emits: ["update", "error", "loading"],
|
|
4397
4397
|
setup(e, { emit: n }) {
|
|
4398
|
-
var te, se,
|
|
4398
|
+
var te, se, De;
|
|
4399
4399
|
const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Lt({
|
|
4400
4400
|
fields: {
|
|
4401
4401
|
name: "",
|
|
@@ -4418,8 +4418,8 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4418
4418
|
fetchedItemsKey: "data",
|
|
4419
4419
|
searchKeys: ["username", "custom_id"]
|
|
4420
4420
|
}), { axiosInstance: m } = Ft({
|
|
4421
|
-
headers: (
|
|
4422
|
-
}), { getMessageFromError: g } = Ws(),
|
|
4421
|
+
headers: (De = t.config) == null ? void 0 : De.requestHeaders
|
|
4422
|
+
}), { getMessageFromError: g } = Ws(), k = T(() => u.value.map((b) => ({
|
|
4423
4423
|
label: b.username || b.custom_id,
|
|
4424
4424
|
value: b.id,
|
|
4425
4425
|
selected: a.fields.consumers.includes(b.id),
|
|
@@ -4428,10 +4428,10 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4428
4428
|
}))), _ = T(() => {
|
|
4429
4429
|
var b, B;
|
|
4430
4430
|
return (B = Te.form[(b = t.config) == null ? void 0 : b.app]) == null ? void 0 : B.edit;
|
|
4431
|
-
}), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create),
|
|
4432
|
-
var
|
|
4433
|
-
let L = `${(
|
|
4434
|
-
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (L = L.replace(/\/{workspace}/gi, (
|
|
4431
|
+
}), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create), C = T(() => !!a.fields.name && !I.value), y = T(() => JSON.stringify(a.fields) !== JSON.stringify(i)), w = (b, B = "", oe = "") => {
|
|
4432
|
+
var R, ge, _e, ce, Be, Re;
|
|
4433
|
+
let L = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Te.form[(ge = t.config) == null ? void 0 : ge.app][b]}`;
|
|
4434
|
+
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (L = L.replace(/\/{workspace}/gi, (Re = t.config) != null && Re.workspace ? `/${t.config.workspace}` : "")), L = L.replace(/{id}/gi, B || t.consumerGroupId), (b === "addConsumer" || b === "removeConsumer") && (L = L.replace(/{consumerId}/gi, oe)), L;
|
|
4435
4435
|
}, V = () => {
|
|
4436
4436
|
var b;
|
|
4437
4437
|
o.push(((b = t.config) == null ? void 0 : b.cancelRoute) || { name: "consumer-group-list" });
|
|
@@ -4440,9 +4440,9 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4440
4440
|
}, re = (b) => {
|
|
4441
4441
|
n("loading", b);
|
|
4442
4442
|
}, z = async (b) => {
|
|
4443
|
-
var oe, L,
|
|
4443
|
+
var oe, L, R, ge, _e;
|
|
4444
4444
|
a.fields.name = ((oe = b == null ? void 0 : b.item) == null ? void 0 : oe.name) || ((L = b == null ? void 0 : b.consumer_group) == null ? void 0 : L.name) || (b == null ? void 0 : b.name) || "";
|
|
4445
|
-
const B = ((
|
|
4445
|
+
const B = ((R = b == null ? void 0 : b.item) == null ? void 0 : R.tags) || (b == null ? void 0 : b.consumer_group.tags) || (b == null ? void 0 : b.tags) || [];
|
|
4446
4446
|
if (a.fields.tags = (B == null ? void 0 : B.join(", ")) || "", "consumers" in b)
|
|
4447
4447
|
a.fields.consumers = ((ge = b == null ? void 0 : b.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
|
|
4448
4448
|
else
|
|
@@ -4453,7 +4453,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4453
4453
|
O(ce);
|
|
4454
4454
|
}
|
|
4455
4455
|
Object.assign(i, a.fields);
|
|
4456
|
-
}, I = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")),
|
|
4456
|
+
}, I = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), D = () => {
|
|
4457
4457
|
var b, B;
|
|
4458
4458
|
return {
|
|
4459
4459
|
name: a.fields.name,
|
|
@@ -4464,7 +4464,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4464
4464
|
}, M = (b = t.consumerGroupId) => {
|
|
4465
4465
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: b });
|
|
4466
4466
|
}, K = (b, B, oe = t.consumerGroupId) => {
|
|
4467
|
-
const L = b == null ? void 0 : b.find((
|
|
4467
|
+
const L = b == null ? void 0 : b.find((R) => R.status !== "fulfilled");
|
|
4468
4468
|
L ? O({
|
|
4469
4469
|
code: L.status,
|
|
4470
4470
|
message: B
|
|
@@ -4472,7 +4472,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4472
4472
|
}, J = async () => {
|
|
4473
4473
|
let b = "";
|
|
4474
4474
|
try {
|
|
4475
|
-
const { data: B } = await m.post(w("create"),
|
|
4475
|
+
const { data: B } = await m.post(w("create"), D());
|
|
4476
4476
|
b = "item" in B ? B.item.id : B.id;
|
|
4477
4477
|
} catch (B) {
|
|
4478
4478
|
O(B);
|
|
@@ -4489,7 +4489,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4489
4489
|
}, X = async () => {
|
|
4490
4490
|
var oe;
|
|
4491
4491
|
try {
|
|
4492
|
-
((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await m.put(w("edit"),
|
|
4492
|
+
((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await m.put(w("edit"), D()) : await m.patch(w("edit"), D());
|
|
4493
4493
|
} catch (L) {
|
|
4494
4494
|
O(L);
|
|
4495
4495
|
}
|
|
@@ -4499,15 +4499,15 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4499
4499
|
else {
|
|
4500
4500
|
if (B.length > 0)
|
|
4501
4501
|
try {
|
|
4502
|
-
const L = B.map((ge) => x(ge)),
|
|
4503
|
-
K(
|
|
4502
|
+
const L = B.map((ge) => x(ge)), R = await Promise.allSettled(L);
|
|
4503
|
+
K(R, r("consumer_groups.errors.remove_consumer"));
|
|
4504
4504
|
} catch (L) {
|
|
4505
4505
|
O(L);
|
|
4506
4506
|
}
|
|
4507
4507
|
if (b.length > 0)
|
|
4508
4508
|
try {
|
|
4509
|
-
const L = b.map((ge) => q(ge)),
|
|
4510
|
-
K(
|
|
4509
|
+
const L = b.map((ge) => q(ge)), R = await Promise.allSettled(L);
|
|
4510
|
+
K(R, r("consumer_groups.errors.add_consumer"));
|
|
4511
4511
|
} catch (L) {
|
|
4512
4512
|
O(L);
|
|
4513
4513
|
}
|
|
@@ -4525,16 +4525,16 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4525
4525
|
const oe = N("KInput"), L = N("KMultiselect");
|
|
4526
4526
|
return f(), A("div", sl, [
|
|
4527
4527
|
j(h(ys), {
|
|
4528
|
-
"can-submit":
|
|
4528
|
+
"can-submit": C.value && y.value,
|
|
4529
4529
|
config: e.config,
|
|
4530
4530
|
"edit-id": e.consumerGroupId,
|
|
4531
4531
|
"error-message": a.errorMessage || h(c) || I.value,
|
|
4532
4532
|
"fetch-url": _.value,
|
|
4533
4533
|
"is-readonly": a.readonly,
|
|
4534
4534
|
onCancel: V,
|
|
4535
|
-
"onFetch:error": B[3] || (B[3] = (
|
|
4535
|
+
"onFetch:error": B[3] || (B[3] = (R) => H(R)),
|
|
4536
4536
|
"onFetch:success": z,
|
|
4537
|
-
onLoading: B[4] || (B[4] = (
|
|
4537
|
+
onLoading: B[4] || (B[4] = (R) => re(R)),
|
|
4538
4538
|
onSubmit: ee
|
|
4539
4539
|
}, {
|
|
4540
4540
|
default: v(() => [
|
|
@@ -4545,7 +4545,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4545
4545
|
default: v(() => [
|
|
4546
4546
|
j(oe, {
|
|
4547
4547
|
modelValue: a.fields.name,
|
|
4548
|
-
"onUpdate:modelValue": B[0] || (B[0] = (
|
|
4548
|
+
"onUpdate:modelValue": B[0] || (B[0] = (R) => a.fields.name = R),
|
|
4549
4549
|
modelModifiers: { trim: !0 },
|
|
4550
4550
|
autocomplete: "off",
|
|
4551
4551
|
"data-testid": "consumer-group-form-name",
|
|
@@ -4556,7 +4556,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4556
4556
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
4557
4557
|
j(oe, {
|
|
4558
4558
|
modelValue: a.fields.tags,
|
|
4559
|
-
"onUpdate:modelValue": B[1] || (B[1] = (
|
|
4559
|
+
"onUpdate:modelValue": B[1] || (B[1] = (R) => a.fields.tags = R),
|
|
4560
4560
|
modelModifiers: { trim: !0 },
|
|
4561
4561
|
autocomplete: "off",
|
|
4562
4562
|
"data-testid": "consumer-group-form-tags",
|
|
@@ -4580,22 +4580,22 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4580
4580
|
default: v(() => [
|
|
4581
4581
|
j(L, {
|
|
4582
4582
|
modelValue: a.fields.consumers,
|
|
4583
|
-
"onUpdate:modelValue": B[2] || (B[2] = (
|
|
4583
|
+
"onUpdate:modelValue": B[2] || (B[2] = (R) => a.fields.consumers = R),
|
|
4584
4584
|
appearance: "select",
|
|
4585
4585
|
autosuggest: "",
|
|
4586
4586
|
"expand-selected": "",
|
|
4587
|
-
items:
|
|
4587
|
+
items: k.value,
|
|
4588
4588
|
label: h(r)("consumer_groups.form.fields.consumers.label"),
|
|
4589
4589
|
loading: h(l),
|
|
4590
4590
|
placeholder: h(r)("consumer_groups.form.fields.consumers.placeholder"),
|
|
4591
4591
|
width: "auto",
|
|
4592
4592
|
onQueryChange: h(s)
|
|
4593
4593
|
}, {
|
|
4594
|
-
"item-template": v(({ item:
|
|
4594
|
+
"item-template": v(({ item: R }) => {
|
|
4595
4595
|
var ge, _e, ce;
|
|
4596
4596
|
return [
|
|
4597
|
-
P("div", ll, E(
|
|
4598
|
-
(ge =
|
|
4597
|
+
P("div", ll, E(R.label), 1),
|
|
4598
|
+
(ge = R == null ? void 0 : R.data) != null && ge.username && ((_e = R == null ? void 0 : R.data) != null && _e.custom_id) ? (f(), A("div", ul, E((ce = R == null ? void 0 : R.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
|
|
4599
4599
|
];
|
|
4600
4600
|
}),
|
|
4601
4601
|
_: 1
|
|
@@ -4619,6 +4619,14 @@ const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { cl
|
|
|
4619
4619
|
required: !0,
|
|
4620
4620
|
validator: (e) => !(!e || !["konnect", "kongManager"].includes(e == null ? void 0 : e.app) || e.app === "konnect" && !e.controlPlaneId || e.app === "kongManager" && typeof e.workspace != "string" || !e.entityId)
|
|
4621
4621
|
},
|
|
4622
|
+
/**
|
|
4623
|
+
* External link for documentation that determines visibility of Documentation button
|
|
4624
|
+
*/
|
|
4625
|
+
configCardDoc: {
|
|
4626
|
+
type: String,
|
|
4627
|
+
default: "",
|
|
4628
|
+
required: !1
|
|
4629
|
+
},
|
|
4622
4630
|
/**
|
|
4623
4631
|
* Control visibility of card title content
|
|
4624
4632
|
*/
|
|
@@ -4641,6 +4649,7 @@ const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { cl
|
|
|
4641
4649
|
return (a, i) => (f(), A("div", dl, [
|
|
4642
4650
|
j(h(ps), {
|
|
4643
4651
|
config: e.config,
|
|
4652
|
+
"config-card-doc": e.configCardDoc,
|
|
4644
4653
|
"config-schema": o.value,
|
|
4645
4654
|
"data-key": "consumer_group",
|
|
4646
4655
|
"fetch-url": r.value,
|
|
@@ -4649,12 +4658,12 @@ const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { cl
|
|
|
4649
4658
|
"onFetch:error": i[1] || (i[1] = (s) => a.$emit("fetch:error", s)),
|
|
4650
4659
|
"onFetch:success": i[2] || (i[2] = (s) => a.$emit("fetch:success", s)),
|
|
4651
4660
|
onLoading: i[3] || (i[3] = (s) => a.$emit("loading", s))
|
|
4652
|
-
}, null, 8, ["config", "config-schema", "fetch-url", "hide-title"])
|
|
4661
|
+
}, null, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])
|
|
4653
4662
|
]));
|
|
4654
4663
|
}
|
|
4655
4664
|
});
|
|
4656
4665
|
export {
|
|
4657
4666
|
wl as ConsumerGroupConfigCard,
|
|
4658
4667
|
_l as ConsumerGroupForm,
|
|
4659
|
-
|
|
4668
|
+
kl as ConsumerGroupList
|
|
4660
4669
|
};
|