@kong-ui-public/entities-consumer-groups 1.2.3 → 1.2.4
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 +156 -157
- package/dist/entities-consumer-groups.umd.js +22 -22
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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, R;
|
|
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 = [];
|
|
@@ -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;
|
|
@@ -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
|
});
|
|
@@ -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
|
}
|
|
@@ -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, Re(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), Re(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, !Re(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), Re(e, n, at, !0, o) && (p ?
|
|
1922
|
+
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(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 Re(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 Re(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
|
}
|
|
@@ -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,8 +2374,8 @@ 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:
|
|
2377
|
+
seq: kn,
|
|
2378
|
+
str: Cn
|
|
2379
2379
|
}, Pi = jt("safeLoad", "load"), Ui = jt("safeLoadAll", "loadAll"), Ri = jt("safeDump", "dump"), Vi = {
|
|
2380
2380
|
Type: $i,
|
|
2381
2381
|
Schema: Mi,
|
|
@@ -2481,14 +2481,13 @@ const Di = {
|
|
|
2481
2481
|
id: "config-card-codeblock",
|
|
2482
2482
|
code: i.value,
|
|
2483
2483
|
language: "yaml",
|
|
2484
|
-
"show-line-number-links": !0,
|
|
2485
2484
|
theme: "dark"
|
|
2486
2485
|
}, null, 8, ["code"])
|
|
2487
2486
|
])) : G("", !0)
|
|
2488
2487
|
], 64);
|
|
2489
2488
|
};
|
|
2490
2489
|
}
|
|
2491
|
-
}), Wi = /* @__PURE__ */
|
|
2490
|
+
}), Wi = /* @__PURE__ */ ke(Ji, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", Zi = (e, n) => {
|
|
2492
2491
|
const t = e.__vccOpts || e;
|
|
2493
2492
|
for (const [r, o] of n)
|
|
2494
2493
|
t[r] = o;
|
|
@@ -2728,7 +2727,7 @@ const Di = {
|
|
|
2728
2727
|
// the last property displayed
|
|
2729
2728
|
section: be.Basic
|
|
2730
2729
|
}
|
|
2731
|
-
}, g = F(!1),
|
|
2730
|
+
}, g = F(!1), k = F(!1), _ = F(""), p = F(), C = T(() => {
|
|
2732
2731
|
var I, V, q;
|
|
2733
2732
|
if (!p.value)
|
|
2734
2733
|
return [];
|
|
@@ -2781,9 +2780,9 @@ const Di = {
|
|
|
2781
2780
|
}), w = T(() => {
|
|
2782
2781
|
var I, V, q, x;
|
|
2783
2782
|
return {
|
|
2784
|
-
basic: (I =
|
|
2785
|
-
advanced: (V =
|
|
2786
|
-
plugin: (x = y.value) == null ? void 0 : x.concat((q =
|
|
2783
|
+
basic: (I = C.value) == null ? void 0 : I.filter((O) => O.section === be.Basic),
|
|
2784
|
+
advanced: (V = C.value) == null ? void 0 : V.filter((O) => O.section === be.Advanced),
|
|
2785
|
+
plugin: (x = y.value) == null ? void 0 : x.concat((q = C.value) == null ? void 0 : q.filter((O) => O.section === be.Plugin))
|
|
2787
2786
|
};
|
|
2788
2787
|
}), R = T(() => {
|
|
2789
2788
|
const I = [];
|
|
@@ -2798,7 +2797,7 @@ const Di = {
|
|
|
2798
2797
|
return Oe(g, (I) => {
|
|
2799
2798
|
n("loading", I);
|
|
2800
2799
|
}, { immediate: !0 }), Qe(async () => {
|
|
2801
|
-
|
|
2800
|
+
k.value = !1, g.value = !0;
|
|
2802
2801
|
try {
|
|
2803
2802
|
const { data: I } = await l.get(re.value);
|
|
2804
2803
|
if (r.dataKey)
|
|
@@ -2813,7 +2812,7 @@ const Di = {
|
|
|
2813
2812
|
}), n("fetch:success", I);
|
|
2814
2813
|
} catch (I) {
|
|
2815
2814
|
const V = i(I);
|
|
2816
|
-
_.value = V.startsWith("code") ? a("baseConfigCard.errors.load") : V,
|
|
2815
|
+
_.value = V.startsWith("code") ? a("baseConfigCard.errors.load") : V, k.value = !0, n("fetch:error", I);
|
|
2817
2816
|
} finally {
|
|
2818
2817
|
g.value = !1;
|
|
2819
2818
|
}
|
|
@@ -2859,7 +2858,7 @@ const Di = {
|
|
|
2859
2858
|
})) : G("", !0),
|
|
2860
2859
|
e.config.jsonYamlEnabled ? G("", !0) : (f(), U(M, { key: 3 }, {
|
|
2861
2860
|
default: v(({ copyToClipboard: ee }) => [
|
|
2862
|
-
!g.value && !
|
|
2861
|
+
!g.value && !k.value ? (f(), U(O, {
|
|
2863
2862
|
key: 0,
|
|
2864
2863
|
appearance: "btn-link",
|
|
2865
2864
|
"data-testid": "json-copy-button",
|
|
@@ -2881,7 +2880,7 @@ const Di = {
|
|
|
2881
2880
|
"data-testid": "config-card-loader",
|
|
2882
2881
|
"table-columns": 2,
|
|
2883
2882
|
type: "table"
|
|
2884
|
-
})) :
|
|
2883
|
+
})) : k.value ? (f(), U(J, {
|
|
2885
2884
|
key: 1,
|
|
2886
2885
|
"data-testid": "config-card-fetch-error",
|
|
2887
2886
|
"is-error": ""
|
|
@@ -2957,7 +2956,7 @@ const Di = {
|
|
|
2957
2956
|
]), 1024);
|
|
2958
2957
|
};
|
|
2959
2958
|
}
|
|
2960
|
-
}), ps = /* @__PURE__ */
|
|
2959
|
+
}), ps = /* @__PURE__ */ ke(ds, [["__scopeId", "data-v-64349aa2"]]), fs = ["onReset", "onSubmit"], ms = {
|
|
2961
2960
|
class: "form-actions",
|
|
2962
2961
|
"data-testid": "form-actions"
|
|
2963
2962
|
}, gs = /* @__PURE__ */ ie({
|
|
@@ -3013,14 +3012,14 @@ const Di = {
|
|
|
3013
3012
|
const r = e, o = wt(), { i18n: { t: a } } = de.useI18n(), { getMessageFromError: i } = de.useErrors(), { axiosInstance: s } = de.useAxios({
|
|
3014
3013
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3015
3014
|
}), l = F(!1), c = F(!1), d = F(""), u = T(() => r.canSubmit === !1 || r.isReadonly), m = T(() => {
|
|
3016
|
-
var p,
|
|
3015
|
+
var p, C;
|
|
3017
3016
|
if (!r.editId)
|
|
3018
3017
|
return "";
|
|
3019
3018
|
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, (
|
|
3019
|
+
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
3020
|
}), g = () => {
|
|
3022
|
-
r.config.cancelRoute ? o.push(r.config.cancelRoute) :
|
|
3023
|
-
},
|
|
3021
|
+
r.config.cancelRoute ? o.push(r.config.cancelRoute) : k();
|
|
3022
|
+
}, k = () => {
|
|
3024
3023
|
n("cancel");
|
|
3025
3024
|
}, _ = () => {
|
|
3026
3025
|
u.value || n("submit");
|
|
@@ -3034,12 +3033,12 @@ const Di = {
|
|
|
3034
3033
|
const { data: p } = await s.get(m.value);
|
|
3035
3034
|
n("fetch:success", p);
|
|
3036
3035
|
} catch (p) {
|
|
3037
|
-
const
|
|
3038
|
-
d.value =
|
|
3036
|
+
const C = i(p);
|
|
3037
|
+
d.value = C.startsWith("code") ? a("baseForm.errors.edit") : C, c.value = !0, n("fetch:error", p);
|
|
3039
3038
|
} finally {
|
|
3040
3039
|
l.value = !1;
|
|
3041
3040
|
}
|
|
3042
|
-
}), (p,
|
|
3041
|
+
}), (p, C) => {
|
|
3043
3042
|
const y = N("KSkeleton"), w = N("KEmptyState"), R = N("KAlert"), H = N("KButton"), re = N("KCard");
|
|
3044
3043
|
return f(), U(re, { class: "kong-ui-entity-base-form" }, {
|
|
3045
3044
|
body: v(() => [
|
|
@@ -3060,7 +3059,7 @@ const Di = {
|
|
|
3060
3059
|
}, 8, ["cta-text"])) : (f(), A("form", {
|
|
3061
3060
|
key: 2,
|
|
3062
3061
|
"data-testid": "form-content",
|
|
3063
|
-
onReset: rt(
|
|
3062
|
+
onReset: rt(k, ["prevent"]),
|
|
3064
3063
|
onSubmit: rt(_, ["prevent"])
|
|
3065
3064
|
}, [
|
|
3066
3065
|
Z(p.$slots, "default", {}, void 0, !0),
|
|
@@ -3102,7 +3101,7 @@ const Di = {
|
|
|
3102
3101
|
});
|
|
3103
3102
|
};
|
|
3104
3103
|
}
|
|
3105
|
-
}), ys = /* @__PURE__ */
|
|
3104
|
+
}), ys = /* @__PURE__ */ ke(gs, [["__scopeId", "data-v-44a90aae"]]), hs = { key: 0 }, vs = /* @__PURE__ */ ie({
|
|
3106
3105
|
__name: "EntityBaseTableCell",
|
|
3107
3106
|
props: {
|
|
3108
3107
|
keyName: {
|
|
@@ -3123,15 +3122,15 @@ const Di = {
|
|
|
3123
3122
|
return ((_ = t.value) == null ? void 0 : _.querySelector('[role="button"]')) || null;
|
|
3124
3123
|
}), o = T(() => {
|
|
3125
3124
|
var _, p;
|
|
3126
|
-
const
|
|
3127
|
-
return
|
|
3125
|
+
const C = (_ = n.rowEl) == null ? void 0 : _.querySelectorAll("td");
|
|
3126
|
+
return C ? ((p = C[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
3128
3127
|
});
|
|
3129
3128
|
let a;
|
|
3130
3129
|
const i = () => {
|
|
3131
3130
|
a && (a.disconnect(), a = void 0);
|
|
3132
3131
|
}, 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 = ((
|
|
3132
|
+
var _, p, C;
|
|
3133
|
+
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
3134
|
}, l = F({}), c = F(0), d = F(0), u = F(""), m = T(() => [r.value, t.value]), g = Oe(
|
|
3136
3135
|
m,
|
|
3137
3136
|
(_) => {
|
|
@@ -3146,21 +3145,21 @@ const Di = {
|
|
|
3146
3145
|
}
|
|
3147
3146
|
},
|
|
3148
3147
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3149
|
-
),
|
|
3148
|
+
), k = T(() => o.value ? c.value > d.value : !1);
|
|
3150
3149
|
return dr(() => {
|
|
3151
3150
|
s();
|
|
3152
3151
|
}), pr(() => {
|
|
3153
3152
|
g();
|
|
3154
3153
|
}), (_, p) => {
|
|
3155
|
-
const
|
|
3154
|
+
const C = N("KTooltip");
|
|
3156
3155
|
return f(), A("span", {
|
|
3157
3156
|
ref_key: "contentRef",
|
|
3158
3157
|
ref: l,
|
|
3159
3158
|
class: "content-wrapper"
|
|
3160
3159
|
}, [
|
|
3161
3160
|
o.value ? (f(), A("span", hs, [
|
|
3162
|
-
j(
|
|
3163
|
-
disabled: !
|
|
3161
|
+
j(C, {
|
|
3162
|
+
disabled: !k.value,
|
|
3164
3163
|
label: u.value,
|
|
3165
3164
|
"max-width": "300",
|
|
3166
3165
|
placement: "bottomStart"
|
|
@@ -3174,7 +3173,7 @@ const Di = {
|
|
|
3174
3173
|
], 512);
|
|
3175
3174
|
};
|
|
3176
3175
|
}
|
|
3177
|
-
}), bs = /* @__PURE__ */
|
|
3176
|
+
}), bs = /* @__PURE__ */ ke(vs, [["__scopeId", "data-v-f8a220e9"]]), Cs = { class: "toolbar-container" }, ks = {
|
|
3178
3177
|
key: 0,
|
|
3179
3178
|
class: "toolbar-button-container"
|
|
3180
3179
|
}, _s = ["data-testid"], ws = /* @__PURE__ */ ie({
|
|
@@ -3322,9 +3321,9 @@ const Di = {
|
|
|
3322
3321
|
n("clear-search-input");
|
|
3323
3322
|
}, g = T(() => t.disableRowClick ? void 0 : (w, R) => {
|
|
3324
3323
|
n("click:row", R);
|
|
3325
|
-
}),
|
|
3324
|
+
}), k = (w) => {
|
|
3326
3325
|
n("sort", w);
|
|
3327
|
-
}, { setTablePreferences: _, getTablePreferences: p } = Ir(),
|
|
3326
|
+
}, { setTablePreferences: _, getTablePreferences: p } = Ir(), C = T(() => {
|
|
3328
3327
|
const w = p(t.preferencesStorageKey);
|
|
3329
3328
|
return {
|
|
3330
3329
|
...t.initialFetcherParams,
|
|
@@ -3361,20 +3360,20 @@ const Di = {
|
|
|
3361
3360
|
"has-error": !!e.errorMessage,
|
|
3362
3361
|
headers: i.value,
|
|
3363
3362
|
"hide-pagination-when-optional": "",
|
|
3364
|
-
"initial-fetcher-params":
|
|
3363
|
+
"initial-fetcher-params": C.value,
|
|
3365
3364
|
"is-loading": e.isLoading,
|
|
3366
3365
|
"pagination-type": e.paginationType,
|
|
3367
3366
|
"row-attrs": s,
|
|
3368
3367
|
"search-input": e.query,
|
|
3369
3368
|
onKtableEmptyStateCtaClicked: u,
|
|
3370
3369
|
"onRow:click": g.value,
|
|
3371
|
-
onSort: R[0] || (R[0] = (q) =>
|
|
3370
|
+
onSort: R[0] || (R[0] = (q) => k(q)),
|
|
3372
3371
|
"onUpdate:tablePreferences": y
|
|
3373
3372
|
}, Se({
|
|
3374
3373
|
toolbar: v(({ state: q }) => [
|
|
3375
|
-
et(P("div",
|
|
3374
|
+
et(P("div", Cs, [
|
|
3376
3375
|
Z(w.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3377
|
-
w.$slots["toolbar-button"] ? (f(), A("div",
|
|
3376
|
+
w.$slots["toolbar-button"] ? (f(), A("div", ks, [
|
|
3378
3377
|
Z(w.$slots, "toolbar-button", {}, void 0, !0)
|
|
3379
3378
|
])) : G("", !0)
|
|
3380
3379
|
], 512), [
|
|
@@ -3445,7 +3444,7 @@ const Di = {
|
|
|
3445
3444
|
}, 8, ["title"]);
|
|
3446
3445
|
};
|
|
3447
3446
|
}
|
|
3448
|
-
}), Is = /* @__PURE__ */
|
|
3447
|
+
}), Is = /* @__PURE__ */ ke(ws, [["__scopeId", "data-v-6bf92df6"]]), xs = {
|
|
3449
3448
|
key: 0,
|
|
3450
3449
|
class: "kong-ui-entity-delete-error"
|
|
3451
3450
|
}, As = {
|
|
@@ -3545,7 +3544,7 @@ const Di = {
|
|
|
3545
3544
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3546
3545
|
};
|
|
3547
3546
|
}
|
|
3548
|
-
}), Ts = /* @__PURE__ */
|
|
3547
|
+
}), Ts = /* @__PURE__ */ ke(Ss, [["__scopeId", "data-v-1c9a2a07"]]), $s = {
|
|
3549
3548
|
fill: "none",
|
|
3550
3549
|
height: "20",
|
|
3551
3550
|
viewBox: "0 0 20 20",
|
|
@@ -3609,19 +3608,19 @@ const Di = {
|
|
|
3609
3608
|
setup(e, { emit: n }) {
|
|
3610
3609
|
const t = e, { i18n: { t: r } } = de.useI18n(), o = F(!1), a = F({}), i = T(() => {
|
|
3611
3610
|
const p = [];
|
|
3612
|
-
return new URLSearchParams(t.modelValue).forEach((
|
|
3613
|
-
|
|
3611
|
+
return new URLSearchParams(t.modelValue).forEach((C, y) => {
|
|
3612
|
+
C !== "" && p.push(y);
|
|
3614
3613
|
}), p;
|
|
3615
3614
|
}), s = T(() => {
|
|
3616
3615
|
const p = t.config.fields;
|
|
3617
|
-
return Object.keys(p).filter((
|
|
3618
|
-
label: p[
|
|
3619
|
-
value:
|
|
3616
|
+
return Object.keys(p).filter((C) => p[C].searchable).map((C) => ({
|
|
3617
|
+
label: p[C].label || C,
|
|
3618
|
+
value: C
|
|
3620
3619
|
}));
|
|
3621
3620
|
});
|
|
3622
3621
|
Oe(() => t.modelValue, (p) => {
|
|
3623
|
-
a.value = {}, new URLSearchParams(p).forEach((
|
|
3624
|
-
a.value[y] =
|
|
3622
|
+
a.value = {}, new URLSearchParams(p).forEach((C, y) => {
|
|
3623
|
+
a.value[y] = C;
|
|
3625
3624
|
});
|
|
3626
3625
|
});
|
|
3627
3626
|
const l = () => {
|
|
@@ -3629,26 +3628,26 @@ const Di = {
|
|
|
3629
3628
|
}, c = (p) => {
|
|
3630
3629
|
n("update:modelValue", p);
|
|
3631
3630
|
}, d = (p) => `filter-${p}`, u = (p) => {
|
|
3632
|
-
var
|
|
3633
|
-
return (((y = (
|
|
3631
|
+
var C, y;
|
|
3632
|
+
return (((y = (C = t.config.schema) == null ? void 0 : C[p]) == null ? void 0 : y.values) ?? []).map((w) => ({
|
|
3634
3633
|
value: w,
|
|
3635
3634
|
label: w
|
|
3636
3635
|
}));
|
|
3637
3636
|
}, m = (p) => {
|
|
3638
|
-
var
|
|
3639
|
-
return ((y = (
|
|
3637
|
+
var C, y;
|
|
3638
|
+
return ((y = (C = t.config.schema) == null ? void 0 : C[p]) == null ? void 0 : y.type) ?? "text";
|
|
3640
3639
|
}, g = (p) => {
|
|
3641
3640
|
a.value = {
|
|
3642
3641
|
...a.value,
|
|
3643
3642
|
[p]: ""
|
|
3644
3643
|
}, _();
|
|
3645
|
-
},
|
|
3644
|
+
}, k = () => {
|
|
3646
3645
|
a.value = {}, _(!0);
|
|
3647
3646
|
}, _ = (p = !1) => {
|
|
3648
|
-
const
|
|
3649
|
-
p && (o.value = !1), n("update:modelValue", new URLSearchParams(
|
|
3647
|
+
const C = Object.keys(a.value).reduce((y, w) => (a.value[w] && (y[w] = `${a.value[w]}`), y), {});
|
|
3648
|
+
p && (o.value = !1), n("update:modelValue", new URLSearchParams(C).toString());
|
|
3650
3649
|
};
|
|
3651
|
-
return (p,
|
|
3650
|
+
return (p, C) => {
|
|
3652
3651
|
const y = N("KInput"), w = N("KButton"), R = N("KSelect"), H = N("KMenuItem"), re = N("KMenu");
|
|
3653
3652
|
return e.config.isExactMatch ? (f(), U(y, {
|
|
3654
3653
|
key: 0,
|
|
@@ -3729,7 +3728,7 @@ const Di = {
|
|
|
3729
3728
|
appearance: "btn-link",
|
|
3730
3729
|
"data-testid": "apply-filter",
|
|
3731
3730
|
size: "small",
|
|
3732
|
-
onClick:
|
|
3731
|
+
onClick: C[0] || (C[0] = (x) => _(!0))
|
|
3733
3732
|
}, {
|
|
3734
3733
|
default: v(() => [
|
|
3735
3734
|
Q(E(h(r)("filter.applyButtonText")), 1)
|
|
@@ -3754,7 +3753,7 @@ const Di = {
|
|
|
3754
3753
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3755
3754
|
]),
|
|
3756
3755
|
actionButton: v(() => [
|
|
3757
|
-
j(w, { onClick:
|
|
3756
|
+
j(w, { onClick: k }, {
|
|
3758
3757
|
default: v(() => [
|
|
3759
3758
|
Q(E(h(r)("filter.clearAllButtonText")), 1)
|
|
3760
3759
|
]),
|
|
@@ -3768,7 +3767,7 @@ const Di = {
|
|
|
3768
3767
|
]));
|
|
3769
3768
|
};
|
|
3770
3769
|
}
|
|
3771
|
-
}), Rs = /* @__PURE__ */
|
|
3770
|
+
}), Rs = /* @__PURE__ */ ke(Us, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ie({
|
|
3772
3771
|
__name: "PermissionsWrapper",
|
|
3773
3772
|
props: {
|
|
3774
3773
|
/**
|
|
@@ -3857,7 +3856,7 @@ const Di = {
|
|
|
3857
3856
|
])
|
|
3858
3857
|
], 2));
|
|
3859
3858
|
}
|
|
3860
|
-
}), un = /* @__PURE__ */
|
|
3859
|
+
}), 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;
|
|
3861
3860
|
const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group-cta-text" }, el = {
|
|
3862
3861
|
key: 0,
|
|
3863
3862
|
class: "kong-ui-entity-add-to-groups-error"
|
|
@@ -3896,7 +3895,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3896
3895
|
fetchedItemsKey: "data",
|
|
3897
3896
|
searchKeys: ["name", "id"]
|
|
3898
3897
|
}
|
|
3899
|
-
), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), g = F(0),
|
|
3898
|
+
), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), g = F(0), k = T(() => l.value === void 0), _ = T(() => u.value.map((x) => ({
|
|
3900
3899
|
label: x.name,
|
|
3901
3900
|
value: x.id,
|
|
3902
3901
|
selected: a.value.includes(x.id),
|
|
@@ -3904,9 +3903,9 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3904
3903
|
// we need this to determine whether or not to show the description text
|
|
3905
3904
|
}))), p = (x) => {
|
|
3906
3905
|
var M;
|
|
3907
|
-
const O =
|
|
3906
|
+
const O = k.value ? u.value.find((K) => K.id === x) : (M = l.value) == null ? void 0 : M.find((K) => K.id === x);
|
|
3908
3907
|
return O ? O.name : x;
|
|
3909
|
-
},
|
|
3908
|
+
}, C = () => {
|
|
3910
3909
|
R.value = "", y.value = [], I.value = [], n("cancel");
|
|
3911
3910
|
}, y = F([]), w = F(!1), R = F(""), H = async () => {
|
|
3912
3911
|
if (!a.value.length) {
|
|
@@ -3958,7 +3957,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3958
3957
|
"data-testid": "add-to-group-modal",
|
|
3959
3958
|
"is-visible": e.visible,
|
|
3960
3959
|
title: h(r)("consumer_groups.consumers.add.title"),
|
|
3961
|
-
onCanceled:
|
|
3960
|
+
onCanceled: C,
|
|
3962
3961
|
onProceed: H
|
|
3963
3962
|
}, {
|
|
3964
3963
|
"body-content": v(() => [
|
|
@@ -3969,7 +3968,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3969
3968
|
"onUpdate:modelValue": O[0] || (O[0] = (X) => a.value = X),
|
|
3970
3969
|
autosuggest: "",
|
|
3971
3970
|
"data-testid": "add-to-groups-multiselect",
|
|
3972
|
-
"dropdown-footer-text":
|
|
3971
|
+
"dropdown-footer-text": k.value ? h(r)("consumer_groups.consumers.add.footer") : void 0,
|
|
3973
3972
|
items: _.value,
|
|
3974
3973
|
label: h(r)("consumer_groups.consumers.add.consumer_groups_label"),
|
|
3975
3974
|
loading: h(s),
|
|
@@ -4054,10 +4053,10 @@ const Kt = (e, n) => {
|
|
|
4054
4053
|
const u = d, m = ($) => ({
|
|
4055
4054
|
"data-testid": $.username ?? $.custom_id ?? $.id
|
|
4056
4055
|
}), g = T(() => {
|
|
4057
|
-
var Y, ue,
|
|
4056
|
+
var Y, ue, Ce, Ee;
|
|
4058
4057
|
let $ = `${t.config.apiBaseUrl}${Te.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4059
|
-
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, (
|
|
4060
|
-
}),
|
|
4058
|
+
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) || "")), $;
|
|
4059
|
+
}), k = F(""), _ = T(() => {
|
|
4061
4060
|
const $ = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4062
4061
|
return $ ? {
|
|
4063
4062
|
isExactMatch: $,
|
|
@@ -4073,8 +4072,8 @@ const Kt = (e, n) => {
|
|
|
4073
4072
|
},
|
|
4074
4073
|
schema: t.config.filterSchema
|
|
4075
4074
|
};
|
|
4076
|
-
}), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher:
|
|
4077
|
-
|
|
4075
|
+
}), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher: C, fetcherState: y } = Zs(t.config, g.value, p.value), w = () => {
|
|
4076
|
+
k.value = "";
|
|
4078
4077
|
}, R = () => {
|
|
4079
4078
|
s.value++;
|
|
4080
4079
|
}, H = F(""), re = ($, Y) => {
|
|
@@ -4124,8 +4123,8 @@ const Kt = (e, n) => {
|
|
|
4124
4123
|
M.value = !0;
|
|
4125
4124
|
try {
|
|
4126
4125
|
await i.delete(J(x.value.id)), M.value = !1, O.value = !1, s.value++, n("delete:success", x.value);
|
|
4127
|
-
} catch (
|
|
4128
|
-
K.value = ((ue = (Y =
|
|
4126
|
+
} catch (Ce) {
|
|
4127
|
+
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);
|
|
4129
4128
|
} finally {
|
|
4130
4129
|
M.value = !1;
|
|
4131
4130
|
}
|
|
@@ -4143,9 +4142,9 @@ const Kt = (e, n) => {
|
|
|
4143
4142
|
}, ce = () => {
|
|
4144
4143
|
D.value = !1, L.value = void 0;
|
|
4145
4144
|
}, Be = T(() => {
|
|
4146
|
-
var Y, ue,
|
|
4145
|
+
var Y, ue, Ce, Ee;
|
|
4147
4146
|
let $ = `${t.config.apiBaseUrl}${Te.list[t.config.app].oneForConsumer}`;
|
|
4148
|
-
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, (
|
|
4147
|
+
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) || "")), $;
|
|
4149
4148
|
}), De = F(!1), ar = async () => {
|
|
4150
4149
|
if (L.value) {
|
|
4151
4150
|
De.value = !0;
|
|
@@ -4175,7 +4174,7 @@ const Kt = (e, n) => {
|
|
|
4175
4174
|
return Qe(async () => {
|
|
4176
4175
|
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"));
|
|
4177
4176
|
}), ($, Y) => {
|
|
4178
|
-
const ue = N("KButton"),
|
|
4177
|
+
const ue = N("KButton"), Ce = N("KBadge"), Ee = N("KTruncate"), Ge = N("KDropdownItem"), Nt = N("KClipboardProvider"), ir = N("KPrompt");
|
|
4179
4178
|
return f(), A("div", ol, [
|
|
4180
4179
|
j(h(Is), {
|
|
4181
4180
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4185,11 +4184,11 @@ const Kt = (e, n) => {
|
|
|
4185
4184
|
"empty-state-options": pt.value,
|
|
4186
4185
|
"enable-entity-actions": "",
|
|
4187
4186
|
"error-message": H.value,
|
|
4188
|
-
fetcher: h(
|
|
4187
|
+
fetcher: h(C),
|
|
4189
4188
|
"fetcher-cache-key": s.value,
|
|
4190
4189
|
"pagination-type": "offset",
|
|
4191
4190
|
"preferences-storage-key": "kong-ui-entities-consumer-groups-list",
|
|
4192
|
-
query:
|
|
4191
|
+
query: k.value,
|
|
4193
4192
|
"row-attributes": m,
|
|
4194
4193
|
"table-headers": h(u),
|
|
4195
4194
|
onClearSearchInput: w,
|
|
@@ -4200,8 +4199,8 @@ const Kt = (e, n) => {
|
|
|
4200
4199
|
"toolbar-filter": v(() => [
|
|
4201
4200
|
l.value ? G("", !0) : (f(), U(h(Rs), {
|
|
4202
4201
|
key: 0,
|
|
4203
|
-
modelValue:
|
|
4204
|
-
"onUpdate:modelValue": Y[0] || (Y[0] = (W) =>
|
|
4202
|
+
modelValue: k.value,
|
|
4203
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (W) => k.value = W),
|
|
4205
4204
|
config: _.value
|
|
4206
4205
|
}, null, 8, ["modelValue", "config"]))
|
|
4207
4206
|
]),
|
|
@@ -4235,7 +4234,7 @@ const Kt = (e, n) => {
|
|
|
4235
4234
|
tags: v(({ rowValue: W }) => [
|
|
4236
4235
|
(W == null ? void 0 : W.length) > 0 ? (f(), U(Ee, { key: 0 }, {
|
|
4237
4236
|
default: v(() => [
|
|
4238
|
-
(f(!0), A(ve, null, ye(W, (Ne) => (f(), U(
|
|
4237
|
+
(f(!0), A(ve, null, ye(W, (Ne) => (f(), U(Ce, {
|
|
4239
4238
|
key: Ne,
|
|
4240
4239
|
onClick: Y[2] || (Y[2] = rt(() => {
|
|
4241
4240
|
}, ["stop"]))
|
|
@@ -4379,7 +4378,7 @@ const Kt = (e, n) => {
|
|
|
4379
4378
|
};
|
|
4380
4379
|
}
|
|
4381
4380
|
});
|
|
4382
|
-
const
|
|
4381
|
+
const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { class: "kong-ui-entities-consumer-group-form" }, ll = { class: "select-item-label" }, ul = {
|
|
4383
4382
|
key: 0,
|
|
4384
4383
|
class: "select-item-desc"
|
|
4385
4384
|
}, cl = /* @__PURE__ */ ie({
|
|
@@ -4424,7 +4423,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4424
4423
|
searchKeys: ["username", "custom_id"]
|
|
4425
4424
|
}), { axiosInstance: m } = Ft({
|
|
4426
4425
|
headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
|
|
4427
|
-
}), { getMessageFromError: g } = Ws(),
|
|
4426
|
+
}), { getMessageFromError: g } = Ws(), k = T(() => u.value.map((b) => ({
|
|
4428
4427
|
label: b.username || b.custom_id,
|
|
4429
4428
|
value: b.id,
|
|
4430
4429
|
selected: a.fields.consumers.includes(b.id),
|
|
@@ -4433,7 +4432,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4433
4432
|
}))), _ = T(() => {
|
|
4434
4433
|
var b, B;
|
|
4435
4434
|
return (B = Te.form[(b = t.config) == null ? void 0 : b.app]) == null ? void 0 : B.edit;
|
|
4436
|
-
}), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create),
|
|
4435
|
+
}), 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 = "") => {
|
|
4437
4436
|
var D, ge, _e, ce, Be, De;
|
|
4438
4437
|
let L = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${Te.form[(ge = t.config) == null ? void 0 : ge.app][b]}`;
|
|
4439
4438
|
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, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), L = L.replace(/{id}/gi, B || t.consumerGroupId), (b === "addConsumer" || b === "removeConsumer") && (L = L.replace(/{consumerId}/gi, oe)), L;
|
|
@@ -4530,7 +4529,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4530
4529
|
const oe = N("KInput"), L = N("KMultiselect");
|
|
4531
4530
|
return f(), A("div", sl, [
|
|
4532
4531
|
j(h(ys), {
|
|
4533
|
-
"can-submit":
|
|
4532
|
+
"can-submit": C.value && y.value,
|
|
4534
4533
|
config: e.config,
|
|
4535
4534
|
"edit-id": e.consumerGroupId,
|
|
4536
4535
|
"error-message": a.errorMessage || h(c) || I.value,
|
|
@@ -4589,7 +4588,7 @@ const Cl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4589
4588
|
appearance: "select",
|
|
4590
4589
|
autosuggest: "",
|
|
4591
4590
|
"expand-selected": "",
|
|
4592
|
-
items:
|
|
4591
|
+
items: k.value,
|
|
4593
4592
|
label: h(r)("consumer_groups.form.fields.consumers.label"),
|
|
4594
4593
|
loading: h(l),
|
|
4595
4594
|
placeholder: h(r)("consumer_groups.form.fields.consumers.placeholder"),
|
|
@@ -4670,5 +4669,5 @@ const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { cl
|
|
|
4670
4669
|
export {
|
|
4671
4670
|
wl as ConsumerGroupConfigCard,
|
|
4672
4671
|
_l as ConsumerGroupForm,
|
|
4673
|
-
|
|
4672
|
+
kl as ConsumerGroupList
|
|
4674
4673
|
};
|