@kong-ui-public/entities-consumer-groups 2.3.10-pr.1069.588c7d8c.0 → 2.3.10
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as F, computed as x, watch as Te, renderSlot as X, createCommentVNode as z, unref as m, useSlots as ct, onBeforeMount as dt, resolveComponent as q, openBlock as d, createBlock as P, createSlots as je, withCtx as g, createElementVNode as
|
|
1
|
+
import { defineComponent as ae, ref as F, computed as x, watch as Te, renderSlot as X, createCommentVNode as z, unref as m, useSlots as ct, onBeforeMount as dt, resolveComponent as q, openBlock as d, createBlock as P, createSlots as je, withCtx as g, createElementVNode as V, createTextVNode as Z, toDisplayString as N, createVNode as E, createElementBlock as j, renderList as ve, Fragment as Ce, normalizeClass as Ee, withModifiers as rt, withDirectives as Je, vShow as Ye, useCssVars as gn, reactive as ot, resolveDynamicComponent as Be, normalizeProps as Cr, guardReactiveProps as kr, mergeProps as bt, onMounted as wr, onUnmounted as _r, normalizeStyle as yn, inject as Ir, pushScopeId as hn, popScopeId as vn } from "vue";
|
|
2
2
|
import { useRouter as At } from "vue-router";
|
|
3
3
|
import { createI18n as St, i18nTComponent as bn } from "@kong-ui-public/i18n";
|
|
4
4
|
import Ar from "axios";
|
|
@@ -364,8 +364,8 @@ function Vr(e, n, t, r = {
|
|
|
364
364
|
headers: e.requestHeaders
|
|
365
365
|
}), { i18n: { t: i } } = Tt(), { debounce: a } = jr(), s = a(async (v) => {
|
|
366
366
|
await L(v);
|
|
367
|
-
}, 200), l = F(!1), u = F(""), p = F(""), c = F([]), y = F([]), f = F(void 0),
|
|
368
|
-
let h = `${e.apiBaseUrl}${
|
|
367
|
+
}, 200), l = F(!1), u = F(""), p = F(""), c = F([]), y = F([]), f = F(void 0), _ = m(n);
|
|
368
|
+
let h = `${e.apiBaseUrl}${_}`;
|
|
369
369
|
e.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
370
370
|
const { isValidUuid: A } = kn(), b = async () => {
|
|
371
371
|
try {
|
|
@@ -377,10 +377,10 @@ function Vr(e, n, t, r = {
|
|
|
377
377
|
} finally {
|
|
378
378
|
l.value = !1;
|
|
379
379
|
}
|
|
380
|
-
},
|
|
381
|
-
var S,
|
|
382
|
-
if (
|
|
383
|
-
if (
|
|
380
|
+
}, w = F(""), L = async (v) => {
|
|
381
|
+
var S, D, re;
|
|
382
|
+
if (w.value !== v)
|
|
383
|
+
if (w.value = v || "", f.value === void 0)
|
|
384
384
|
try {
|
|
385
385
|
if (l.value = !0, u.value = "", p.value = "", e.app === "konnect") {
|
|
386
386
|
let R = h + "";
|
|
@@ -408,7 +408,7 @@ function Vr(e, n, t, r = {
|
|
|
408
408
|
} else
|
|
409
409
|
c.value = y.value;
|
|
410
410
|
} catch (R) {
|
|
411
|
-
((
|
|
411
|
+
((D = R == null ? void 0 : R.response) == null ? void 0 : D.status) === 404 ? p.value = i("debouncedFilter.errors.invalid") : (c.value = [], u.value = i("debouncedFilter.errors.fetch"));
|
|
412
412
|
} finally {
|
|
413
413
|
l.value = !1;
|
|
414
414
|
}
|
|
@@ -480,7 +480,7 @@ function Hr(e) {
|
|
|
480
480
|
return console.warn("Failed to build valid URL:", r), "";
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function wn(e, n) {
|
|
484
484
|
const t = F(m(e)), r = F(m(n)), o = x(
|
|
485
485
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
486
486
|
), i = x(
|
|
@@ -490,8 +490,8 @@ function _n(e, n) {
|
|
|
490
490
|
const { page: s, pageSize: l, offset: u, sortColumnKey: p, sortColumnOrder: c, query: y } = a;
|
|
491
491
|
try {
|
|
492
492
|
let f = new URL(i.value.href);
|
|
493
|
-
return o.value && y ? (f.search = "", f = t.value.app === "konnect" ? new URL(`${f.href}?filter[name][contains]=${y}`) : new URL(`${f.href}/${y}/`)) : (o.value || new URLSearchParams(y).forEach((
|
|
494
|
-
f.searchParams.append(h,
|
|
493
|
+
return o.value && y ? (f.search = "", f = t.value.app === "konnect" ? new URL(`${f.href}?filter[name][contains]=${y}`) : new URL(`${f.href}/${y}/`)) : (o.value || new URLSearchParams(y).forEach((_, h) => {
|
|
494
|
+
f.searchParams.append(h, _);
|
|
495
495
|
}), p && f.searchParams.append("sort_by", p), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), u && s !== 1 && f.searchParams.append("offset", String(u)), f.href;
|
|
496
496
|
} catch (f) {
|
|
497
497
|
return console.error("RouteList(fetcher)", f), r.value;
|
|
@@ -501,7 +501,7 @@ function _n(e, n) {
|
|
|
501
501
|
function zr(e, n, t = "data") {
|
|
502
502
|
const r = m(n), { axiosInstance: o } = xt({
|
|
503
503
|
headers: e.requestHeaders
|
|
504
|
-
}), i =
|
|
504
|
+
}), i = wn(e, r), a = F({
|
|
505
505
|
status: Ke.Idle
|
|
506
506
|
});
|
|
507
507
|
return { fetcher: async (s) => {
|
|
@@ -549,10 +549,10 @@ function Jr() {
|
|
|
549
549
|
convertKeyToTitle: e
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
const
|
|
552
|
+
const _n = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Dt = (e) => {
|
|
553
553
|
if (typeof e != "string")
|
|
554
554
|
throw new TypeError("Invalid argument expected string");
|
|
555
|
-
const n = e.match(
|
|
555
|
+
const n = e.match(_n);
|
|
556
556
|
if (!n)
|
|
557
557
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
558
558
|
return n.shift(), n;
|
|
@@ -590,7 +590,7 @@ const wn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
590
590
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
591
591
|
if (zt.indexOf(e) === -1)
|
|
592
592
|
throw new Error(`Invalid operator, expected one of ${zt.join("|")}`);
|
|
593
|
-
}, Xr = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
593
|
+
}, Xr = (e) => typeof e == "string" && /^[v\d]/.test(e) && _n.test(e);
|
|
594
594
|
function eo(e) {
|
|
595
595
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
596
596
|
if (!n)
|
|
@@ -619,7 +619,7 @@ const ce = {
|
|
|
619
619
|
useErrors: Gr,
|
|
620
620
|
useExternalLinkCreator: Hr,
|
|
621
621
|
useFetcher: zr,
|
|
622
|
-
useFetchUrlBuilder:
|
|
622
|
+
useFetchUrlBuilder: wn,
|
|
623
623
|
useHelpers: kn,
|
|
624
624
|
useStringHelpers: Jr,
|
|
625
625
|
useI18n: Tt,
|
|
@@ -639,10 +639,10 @@ const ce = {
|
|
|
639
639
|
for (const [r, o] of n)
|
|
640
640
|
t[r] = o;
|
|
641
641
|
return t;
|
|
642
|
-
}, so = (e) => (hn("data-v-
|
|
642
|
+
}, so = (e) => (hn("data-v-89becf03"), e = e(), vn(), e), lo = ["aria-hidden"], uo = {
|
|
643
643
|
key: 0,
|
|
644
644
|
"data-testid": "kui-icon-svg-title"
|
|
645
|
-
}, co = /* @__PURE__ */ so(() => /* @__PURE__ */
|
|
645
|
+
}, co = /* @__PURE__ */ so(() => /* @__PURE__ */ V("path", {
|
|
646
646
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
647
647
|
fill: "currentColor"
|
|
648
648
|
}, null, -1)), po = /* @__PURE__ */ ae({
|
|
@@ -738,7 +738,7 @@ const ce = {
|
|
|
738
738
|
_: 1
|
|
739
739
|
}, 8, ["aria-hidden", "style"]));
|
|
740
740
|
}
|
|
741
|
-
}), fo = /* @__PURE__ */ io(po, [["__scopeId", "data-v-
|
|
741
|
+
}), fo = /* @__PURE__ */ io(po, [["__scopeId", "data-v-89becf03"]]), mo = "16px", go = { class: "kong-ui-copy-uuid" }, yo = ["onClick"], Yt = 15, ho = /* @__PURE__ */ ae({
|
|
742
742
|
__name: "CopyUuid",
|
|
743
743
|
props: {
|
|
744
744
|
uuid: {
|
|
@@ -802,7 +802,7 @@ const ce = {
|
|
|
802
802
|
l.value = r.tooltip;
|
|
803
803
|
}, 1800);
|
|
804
804
|
}, y = (f) => {
|
|
805
|
-
var
|
|
805
|
+
var _, h;
|
|
806
806
|
if (!f(r.uuid)) {
|
|
807
807
|
typeof i == "function" && i({
|
|
808
808
|
type: "error",
|
|
@@ -810,18 +810,18 @@ const ce = {
|
|
|
810
810
|
}), s.value ? c(t("message.fail")) : o("error", r.uuid);
|
|
811
811
|
return;
|
|
812
812
|
}
|
|
813
|
-
const A = ((
|
|
813
|
+
const A = ((_ = r.uuid) == null ? void 0 : _.length) > Yt, b = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((h = r.uuid) == null ? void 0 : h.substring(0, Yt)) + (A ? "..." : "")}"`;
|
|
814
814
|
typeof i == "function" && i({
|
|
815
815
|
type: "success",
|
|
816
816
|
message: `${b}${t("message.success.content")}`
|
|
817
817
|
}), s.value ? c(r.successTooltip) : o("success", r.uuid);
|
|
818
818
|
};
|
|
819
|
-
return (f,
|
|
819
|
+
return (f, _) => {
|
|
820
820
|
const h = q("KClipboardProvider");
|
|
821
821
|
return d(), j("div", go, [
|
|
822
822
|
e.format !== "hidden" ? (d(), P(Be(e.idTooltip ? "KTooltip" : "div"), bt({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
823
823
|
default: g(() => [
|
|
824
|
-
|
|
824
|
+
V("div", {
|
|
825
825
|
class: Ee([
|
|
826
826
|
"uuid-container",
|
|
827
827
|
e.truncated ? "truncated-uuid" : null,
|
|
@@ -835,7 +835,7 @@ const ce = {
|
|
|
835
835
|
default: g(() => [
|
|
836
836
|
E(h, null, {
|
|
837
837
|
default: g(({ copyToClipboard: A }) => [
|
|
838
|
-
|
|
838
|
+
V("span", {
|
|
839
839
|
"data-testid": "copy-to-clipboard",
|
|
840
840
|
role: "button",
|
|
841
841
|
tabindex: "0",
|
|
@@ -895,7 +895,7 @@ const ce = {
|
|
|
895
895
|
}, {
|
|
896
896
|
default: g(() => [
|
|
897
897
|
e.isArrayItem ? (d(), j("legend", bo, [
|
|
898
|
-
|
|
898
|
+
V("b", null, N(s.value), 1)
|
|
899
899
|
])) : z("", !0),
|
|
900
900
|
(d(!0), j(Ce, null, ve(Object.keys(a.value), (p, c) => (d(), P($t, {
|
|
901
901
|
key: `${o.value}-property-${c}`,
|
|
@@ -909,12 +909,12 @@ const ce = {
|
|
|
909
909
|
_: 1
|
|
910
910
|
}, 8, ["class"]));
|
|
911
911
|
}
|
|
912
|
-
}),
|
|
912
|
+
}), we = (e, n) => {
|
|
913
913
|
const t = e.__vccOpts || e;
|
|
914
914
|
for (const [r, o] of n)
|
|
915
915
|
t[r] = o;
|
|
916
916
|
return t;
|
|
917
|
-
}, Sn = /* @__PURE__ */
|
|
917
|
+
}, Sn = /* @__PURE__ */ we(Co, [["__scopeId", "data-v-68ca83ec"]]), ko = /* @__PURE__ */ ae({
|
|
918
918
|
__name: "InternalLinkItem",
|
|
919
919
|
props: {
|
|
920
920
|
item: {
|
|
@@ -941,7 +941,7 @@ const ce = {
|
|
|
941
941
|
]);
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
}),
|
|
944
|
+
}), wo = /* @__PURE__ */ we(ko, [["__scopeId", "data-v-c96811e5"]]), _o = /* @__PURE__ */ ae({
|
|
945
945
|
__name: "StatusBadge",
|
|
946
946
|
props: {
|
|
947
947
|
status: {
|
|
@@ -965,7 +965,7 @@ const ce = {
|
|
|
965
965
|
}
|
|
966
966
|
}), Io = "#0044f4", Ao = "#e0e4ea", So = "#3a3f51", xo = "1px", To = "20px", $o = { class: "config-card-details-row" }, jo = ["data-testid"], Mo = ["data-testid"], Oo = ["data-testid"], Eo = ["data-testid"], Fo = { key: 1 }, No = ["data-testid"], Ko = ["data-testid"], qo = ["data-testid"], Bo = ["data-testid"], Lo = {
|
|
967
967
|
name: "ConfigCardItem",
|
|
968
|
-
components: { CopyUuid: An, JsonCardItem: Sn, StatusBadge:
|
|
968
|
+
components: { CopyUuid: An, JsonCardItem: Sn, StatusBadge: _o, InternalLinkItem: wo }
|
|
969
969
|
}, Uo = /* @__PURE__ */ ae({
|
|
970
970
|
...Lo,
|
|
971
971
|
props: {
|
|
@@ -986,7 +986,7 @@ const ce = {
|
|
|
986
986
|
},
|
|
987
987
|
emits: ["navigation-click"],
|
|
988
988
|
setup(e, { emit: n }) {
|
|
989
|
-
gn((
|
|
989
|
+
gn((_) => ({
|
|
990
990
|
"0da74440": p.value ? "none" : `solid ${m(xo)} ${m(Ao)}`,
|
|
991
991
|
"02a039da": u.value && s.value ? "block" : "flex",
|
|
992
992
|
"690f3ced": u.value && s.value ? "100%" : t.slim ? "50%" : "25%",
|
|
@@ -1078,8 +1078,8 @@ const ce = {
|
|
|
1078
1078
|
attrs: {
|
|
1079
1079
|
"data-testid": `${t.item.key}-internal-link`,
|
|
1080
1080
|
item: t.item,
|
|
1081
|
-
onNavigationClick: (
|
|
1082
|
-
r("navigation-click",
|
|
1081
|
+
onNavigationClick: (_) => {
|
|
1082
|
+
r("navigation-click", _);
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
@@ -1119,14 +1119,14 @@ const ce = {
|
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
1121
|
}), y = F(), { isTruncated: f } = ce.useTruncationDetector(y);
|
|
1122
|
-
return (
|
|
1123
|
-
const A = q("KLabel"), b = q("KBadge"),
|
|
1122
|
+
return (_, h) => {
|
|
1123
|
+
const A = q("KLabel"), b = q("KBadge"), w = q("KTooltip");
|
|
1124
1124
|
return d(), j("div", $o, [
|
|
1125
|
-
|
|
1125
|
+
V("div", {
|
|
1126
1126
|
class: "config-card-details-label",
|
|
1127
1127
|
"data-testid": `${e.item.key}-label`
|
|
1128
1128
|
}, [
|
|
1129
|
-
X(
|
|
1129
|
+
X(_.$slots, "label", { item: e.item }, () => [
|
|
1130
1130
|
E(A, { "tooltip-attributes": { maxWidth: "500px" } }, je({
|
|
1131
1131
|
default: g(() => [
|
|
1132
1132
|
Z(N(e.item.label) + " ", 1)
|
|
@@ -1136,10 +1136,10 @@ const ce = {
|
|
|
1136
1136
|
l.value ? {
|
|
1137
1137
|
name: "tooltip",
|
|
1138
1138
|
fn: g(() => [
|
|
1139
|
-
|
|
1139
|
+
V("div", {
|
|
1140
1140
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1141
1141
|
}, [
|
|
1142
|
-
X(
|
|
1142
|
+
X(_.$slots, "label-tooltip", {}, () => [
|
|
1143
1143
|
Z(N(e.item.tooltip), 1)
|
|
1144
1144
|
], !0)
|
|
1145
1145
|
], 8, Mo)
|
|
@@ -1149,11 +1149,11 @@ const ce = {
|
|
|
1149
1149
|
]), 1024)
|
|
1150
1150
|
], !0)
|
|
1151
1151
|
], 8, jo),
|
|
1152
|
-
|
|
1152
|
+
V("div", {
|
|
1153
1153
|
class: "config-card-details-value",
|
|
1154
1154
|
"data-testid": `${e.item.key}-property-value`
|
|
1155
1155
|
}, [
|
|
1156
|
-
X(
|
|
1156
|
+
X(_.$slots, e.item.key, {
|
|
1157
1157
|
rowValue: e.item.value
|
|
1158
1158
|
}, () => [
|
|
1159
1159
|
s.value ? (d(), j("div", Fo, [
|
|
@@ -1213,12 +1213,12 @@ const ce = {
|
|
|
1213
1213
|
"is-array-item": "",
|
|
1214
1214
|
item: L
|
|
1215
1215
|
}, null, 8, ["index", "item"]))), 128))
|
|
1216
|
-
], 8, Bo)) : (d(), P(
|
|
1216
|
+
], 8, Bo)) : (d(), P(w, {
|
|
1217
1217
|
key: 4,
|
|
1218
1218
|
label: m(f) ? e.item.value : ""
|
|
1219
1219
|
}, {
|
|
1220
1220
|
default: g(() => [
|
|
1221
|
-
|
|
1221
|
+
V("span", {
|
|
1222
1222
|
ref_key: "textContent",
|
|
1223
1223
|
ref: y,
|
|
1224
1224
|
class: Ee(["attrs-data-text", { truncated: e.truncated }])
|
|
@@ -1238,7 +1238,7 @@ const ce = {
|
|
|
1238
1238
|
]);
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
|
-
}), $t = /* @__PURE__ */
|
|
1241
|
+
}), $t = /* @__PURE__ */ we(Uo, [["__scopeId", "data-v-9c87856b"]]), Po = { class: "json-config" }, Do = {
|
|
1242
1242
|
key: 0,
|
|
1243
1243
|
class: "json-endpoint"
|
|
1244
1244
|
}, xn = /* @__PURE__ */ ae({
|
|
@@ -1695,8 +1695,8 @@ function ka(e) {
|
|
|
1695
1695
|
var n, t;
|
|
1696
1696
|
return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
|
|
1697
1697
|
}
|
|
1698
|
-
var
|
|
1699
|
-
function
|
|
1698
|
+
var wa = /^[-+]?[0-9]+e/;
|
|
1699
|
+
function _a(e, n) {
|
|
1700
1700
|
var t;
|
|
1701
1701
|
if (isNaN(e))
|
|
1702
1702
|
switch (n) {
|
|
@@ -1727,7 +1727,7 @@ function wa(e, n) {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
else if (ue.isNegativeZero(e))
|
|
1729
1729
|
return "-0.0";
|
|
1730
|
-
return t = e.toString(10),
|
|
1730
|
+
return t = e.toString(10), wa.test(t) ? t.replace("e", ".e") : t;
|
|
1731
1731
|
}
|
|
1732
1732
|
function Ia(e) {
|
|
1733
1733
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ue.isNegativeZero(e));
|
|
@@ -1737,7 +1737,7 @@ var Bn = new pe("tag:yaml.org,2002:float", {
|
|
|
1737
1737
|
resolve: Ca,
|
|
1738
1738
|
construct: ka,
|
|
1739
1739
|
predicate: Ia,
|
|
1740
|
-
represent:
|
|
1740
|
+
represent: _a,
|
|
1741
1741
|
defaultStyle: "lowercase"
|
|
1742
1742
|
}), Ln = Fn.extend({
|
|
1743
1743
|
implicit: [
|
|
@@ -2105,17 +2105,17 @@ function ei(e, n) {
|
|
|
2105
2105
|
M(e, "unexpected end of the stream within a double quoted scalar");
|
|
2106
2106
|
}
|
|
2107
2107
|
function ti(e, n) {
|
|
2108
|
-
var t = !0, r, o, i, a = e.tag, s, l = e.anchor, u, p, c, y, f,
|
|
2109
|
-
if (
|
|
2108
|
+
var t = !0, r, o, i, a = e.tag, s, l = e.anchor, u, p, c, y, f, _ = /* @__PURE__ */ Object.create(null), h, A, b, w;
|
|
2109
|
+
if (w = e.input.charCodeAt(e.position), w === 91)
|
|
2110
2110
|
p = 93, f = !1, s = [];
|
|
2111
|
-
else if (
|
|
2111
|
+
else if (w === 123)
|
|
2112
2112
|
p = 125, f = !0, s = {};
|
|
2113
2113
|
else
|
|
2114
2114
|
return !1;
|
|
2115
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = s),
|
|
2116
|
-
if (le(e, !0, n),
|
|
2115
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), w = e.input.charCodeAt(++e.position); w !== 0; ) {
|
|
2116
|
+
if (le(e, !0, n), w = e.input.charCodeAt(e.position), w === p)
|
|
2117
2117
|
return e.position++, e.tag = a, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
2118
|
-
t ?
|
|
2118
|
+
t ? w === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), A = h = b = null, c = y = !1, w === 63 && (u = e.input.charCodeAt(e.position + 1), be(u) && (c = y = !0, e.position++, le(e, !0, n))), r = e.line, o = e.lineStart, i = e.position, Ge(e, n, at, !1, !0), A = e.tag, h = e.result, le(e, !0, n), w = e.input.charCodeAt(e.position), (y || e.line === r) && w === 58 && (c = !0, w = e.input.charCodeAt(++e.position), le(e, !0, n), Ge(e, n, at, !1, !0), b = e.result), f ? Re(e, s, _, A, h, b, r, o, i) : c ? s.push(Re(e, null, _, A, h, b, r, o, i)) : s.push(h), le(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2119
2119
|
}
|
|
2120
2120
|
M(e, "unexpected end of the stream within a flow collection");
|
|
2121
2121
|
}
|
|
@@ -2183,20 +2183,20 @@ function nn(e, n) {
|
|
|
2183
2183
|
return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = i, !0) : !1;
|
|
2184
2184
|
}
|
|
2185
2185
|
function ri(e, n, t) {
|
|
2186
|
-
var r, o, i, a, s, l, u = e.tag, p = e.anchor, c = {}, y = /* @__PURE__ */ Object.create(null), f = null,
|
|
2186
|
+
var r, o, i, a, s, l, u = e.tag, p = e.anchor, c = {}, y = /* @__PURE__ */ Object.create(null), f = null, _ = null, h = null, A = !1, b = !1, w;
|
|
2187
2187
|
if (e.firstTabInLine !== -1)
|
|
2188
2188
|
return !1;
|
|
2189
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = c),
|
|
2190
|
-
if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (
|
|
2191
|
-
|
|
2189
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), w = e.input.charCodeAt(e.position); w !== 0; ) {
|
|
2190
|
+
if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (w === 63 || w === 58) && be(r))
|
|
2191
|
+
w === 63 ? (A && (Re(e, c, y, f, _, null, a, s, l), f = _ = h = null), b = !0, A = !0, o = !0) : A ? (A = !1, o = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = r;
|
|
2192
2192
|
else {
|
|
2193
2193
|
if (a = e.line, s = e.lineStart, l = e.position, !Ge(e, t, Yn, !1, !0))
|
|
2194
2194
|
break;
|
|
2195
2195
|
if (e.line === i) {
|
|
2196
|
-
for (
|
|
2197
|
-
|
|
2198
|
-
if (
|
|
2199
|
-
|
|
2196
|
+
for (w = e.input.charCodeAt(e.position); qe(w); )
|
|
2197
|
+
w = e.input.charCodeAt(++e.position);
|
|
2198
|
+
if (w === 58)
|
|
2199
|
+
w = e.input.charCodeAt(++e.position), be(w) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (Re(e, c, y, f, _, null, a, s, l), f = _ = h = null), b = !0, A = !1, o = !1, f = e.tag, _ = e.result;
|
|
2200
2200
|
else if (b)
|
|
2201
2201
|
M(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2202
2202
|
else
|
|
@@ -2206,12 +2206,12 @@ function ri(e, n, t) {
|
|
|
2206
2206
|
else
|
|
2207
2207
|
return e.tag = u, e.anchor = p, !0;
|
|
2208
2208
|
}
|
|
2209
|
-
if ((e.line === i || e.lineIndent > n) && (A && (a = e.line, s = e.lineStart, l = e.position), Ge(e, n, it, !0, o) && (A ?
|
|
2209
|
+
if ((e.line === i || e.lineIndent > n) && (A && (a = e.line, s = e.lineStart, l = e.position), Ge(e, n, it, !0, o) && (A ? _ = e.result : h = e.result), A || (Re(e, c, y, f, _, h, a, s, l), f = _ = h = null), le(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > n) && w !== 0)
|
|
2210
2210
|
M(e, "bad indentation of a mapping entry");
|
|
2211
2211
|
else if (e.lineIndent < n)
|
|
2212
2212
|
break;
|
|
2213
2213
|
}
|
|
2214
|
-
return A && Re(e, c, y, f,
|
|
2214
|
+
return A && Re(e, c, y, f, _, null, a, s, l), b && (e.tag = u, e.anchor = p, e.kind = "mapping", e.result = c), b;
|
|
2215
2215
|
}
|
|
2216
2216
|
function oi(e) {
|
|
2217
2217
|
var n, t = !1, r = !1, o, i, a;
|
|
@@ -2252,7 +2252,7 @@ function ii(e) {
|
|
|
2252
2252
|
return e.position === n && M(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Fe.call(e.anchorMap, t) || M(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], le(e, !0, -1), !0;
|
|
2253
2253
|
}
|
|
2254
2254
|
function Ge(e, n, t, r, o) {
|
|
2255
|
-
var i, a, s, l = 1, u = !1, p = !1, c, y, f,
|
|
2255
|
+
var i, a, s, l = 1, u = !1, p = !1, c, y, f, _, h, A;
|
|
2256
2256
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = a = s = it === t || Wn === t, r && le(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2257
2257
|
for (; oi(e) || ai(e); )
|
|
2258
2258
|
le(e, !0, -1) ? (u = !0, s = i, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
@@ -2260,20 +2260,20 @@ function Ge(e, n, t, r, o) {
|
|
|
2260
2260
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2261
2261
|
else if (e.tag === "?") {
|
|
2262
2262
|
for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, y = e.implicitTypes.length; c < y; c += 1)
|
|
2263
|
-
if (
|
|
2264
|
-
e.result =
|
|
2263
|
+
if (_ = e.implicitTypes[c], _.resolve(e.result)) {
|
|
2264
|
+
e.result = _.construct(e.result), e.tag = _.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2265
2265
|
break;
|
|
2266
2266
|
}
|
|
2267
2267
|
} else if (e.tag !== "!") {
|
|
2268
2268
|
if (Fe.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2269
|
-
|
|
2269
|
+
_ = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2270
2270
|
else
|
|
2271
|
-
for (
|
|
2271
|
+
for (_ = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, y = f.length; c < y; c += 1)
|
|
2272
2272
|
if (e.tag.slice(0, f[c].tag.length) === f[c].tag) {
|
|
2273
|
-
|
|
2273
|
+
_ = f[c];
|
|
2274
2274
|
break;
|
|
2275
2275
|
}
|
|
2276
|
-
|
|
2276
|
+
_ || M(e, "unknown tag !<" + e.tag + ">"), e.result !== null && _.kind !== e.kind && M(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + _.kind + '", not "' + e.kind + '"'), _.resolve(e.result, e.tag) ? (e.result = _.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : M(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2277
2277
|
}
|
|
2278
2278
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || p;
|
|
2279
2279
|
}
|
|
@@ -2337,7 +2337,7 @@ function ui(e, n) {
|
|
|
2337
2337
|
var ci = li, di = ui, rr = {
|
|
2338
2338
|
loadAll: ci,
|
|
2339
2339
|
load: di
|
|
2340
|
-
}, or = Object.prototype.toString, ar = Object.prototype.hasOwnProperty, Ft = 65279, pi = 9, Ze = 10, fi = 13, mi = 32, gi = 33, yi = 34, kt = 35, hi = 37, vi = 38, bi = 39, Ci = 42, ir = 44, ki = 45, lt = 58,
|
|
2340
|
+
}, or = Object.prototype.toString, ar = Object.prototype.hasOwnProperty, Ft = 65279, pi = 9, Ze = 10, fi = 13, mi = 32, gi = 33, yi = 34, kt = 35, hi = 37, vi = 38, bi = 39, Ci = 42, ir = 44, ki = 45, lt = 58, wi = 61, _i = 62, Ii = 63, Ai = 64, sr = 91, lr = 93, Si = 96, ur = 123, xi = 124, cr = 125, ge = {};
|
|
2341
2341
|
ge[0] = "\\0";
|
|
2342
2342
|
ge[7] = "\\a";
|
|
2343
2343
|
ge[8] = "\\b";
|
|
@@ -2402,7 +2402,7 @@ function rn(e, n) {
|
|
|
2402
2402
|
` && (i += t), i += a;
|
|
2403
2403
|
return i;
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function wt(e, n) {
|
|
2406
2406
|
return `
|
|
2407
2407
|
` + ue.repeat(" ", e.indent * n);
|
|
2408
2408
|
}
|
|
@@ -2433,7 +2433,7 @@ function an(e, n, t) {
|
|
|
2433
2433
|
);
|
|
2434
2434
|
}
|
|
2435
2435
|
function Ni(e) {
|
|
2436
|
-
return Xe(e) && e !== Ft && !ut(e) && e !== ki && e !== Ii && e !== lt && e !== ir && e !== sr && e !== lr && e !== ur && e !== cr && e !== kt && e !== vi && e !== Ci && e !== gi && e !== xi && e !==
|
|
2436
|
+
return Xe(e) && e !== Ft && !ut(e) && e !== ki && e !== Ii && e !== lt && e !== ir && e !== sr && e !== lr && e !== ur && e !== cr && e !== kt && e !== vi && e !== Ci && e !== gi && e !== xi && e !== wi && e !== _i && e !== bi && e !== yi && e !== hi && e !== Ai && e !== Si;
|
|
2437
2437
|
}
|
|
2438
2438
|
function Ki(e) {
|
|
2439
2439
|
return !ut(e) && e !== lt;
|
|
@@ -2446,9 +2446,9 @@ function dr(e) {
|
|
|
2446
2446
|
var n = /^\n* /;
|
|
2447
2447
|
return n.test(e);
|
|
2448
2448
|
}
|
|
2449
|
-
var pr = 1,
|
|
2449
|
+
var pr = 1, _t = 2, fr = 3, mr = 4, De = 5;
|
|
2450
2450
|
function qi(e, n, t, r, o, i, a, s) {
|
|
2451
|
-
var l, u = 0, p = null, c = !1, y = !1, f = r !== -1,
|
|
2451
|
+
var l, u = 0, p = null, c = !1, y = !1, f = r !== -1, _ = -1, h = Ni(ze(e, 0)) && Ki(ze(e, e.length - 1));
|
|
2452
2452
|
if (n || a)
|
|
2453
2453
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2454
2454
|
if (u = ze(e, l), !Xe(u))
|
|
@@ -2459,14 +2459,14 @@ function qi(e, n, t, r, o, i, a, s) {
|
|
|
2459
2459
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2460
2460
|
if (u = ze(e, l), u === Ze)
|
|
2461
2461
|
c = !0, f && (y = y || // Foldable line = too long, and not more-indented.
|
|
2462
|
-
l -
|
|
2462
|
+
l - _ - 1 > r && e[_ + 1] !== " ", _ = l);
|
|
2463
2463
|
else if (!Xe(u))
|
|
2464
2464
|
return De;
|
|
2465
2465
|
h = h && an(u, p, s), p = u;
|
|
2466
2466
|
}
|
|
2467
|
-
y = y || f && l -
|
|
2467
|
+
y = y || f && l - _ - 1 > r && e[_ + 1] !== " ";
|
|
2468
2468
|
}
|
|
2469
|
-
return !c && !y ? h && !a && !o(e) ? pr : i === Qe ? De :
|
|
2469
|
+
return !c && !y ? h && !a && !o(e) ? pr : i === Qe ? De : _t : t > 9 && dr(e) ? De : a ? i === Qe ? De : _t : y ? mr : fr;
|
|
2470
2470
|
}
|
|
2471
2471
|
function Bi(e, n, t, r, o) {
|
|
2472
2472
|
e.dump = function() {
|
|
@@ -2490,7 +2490,7 @@ function Bi(e, n, t, r, o) {
|
|
|
2490
2490
|
)) {
|
|
2491
2491
|
case pr:
|
|
2492
2492
|
return n;
|
|
2493
|
-
case
|
|
2493
|
+
case _t:
|
|
2494
2494
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2495
2495
|
case fr:
|
|
2496
2496
|
return "|" + sn(n, e.indent) + ln(rn(n, i));
|
|
@@ -2552,7 +2552,7 @@ function Pi(e, n, t) {
|
|
|
2552
2552
|
function cn(e, n, t, r) {
|
|
2553
2553
|
var o = "", i = e.tag, a, s, l;
|
|
2554
2554
|
for (a = 0, s = t.length; a < s; a += 1)
|
|
2555
|
-
l = t[a], e.replacer && (l = e.replacer.call(t, String(a), l)), ($e(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && $e(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o +=
|
|
2555
|
+
l = t[a], e.replacer && (l = e.replacer.call(t, String(a), l)), ($e(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && $e(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += wt(e, n)), e.dump && Ze === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2556
2556
|
e.tag = i, e.dump = o || "[]";
|
|
2557
2557
|
}
|
|
2558
2558
|
function Di(e, n, t) {
|
|
@@ -2570,7 +2570,7 @@ function Vi(e, n, t, r) {
|
|
|
2570
2570
|
else if (e.sortKeys)
|
|
2571
2571
|
throw new ye("sortKeys must be a boolean or a function");
|
|
2572
2572
|
for (s = 0, l = a.length; s < l; s += 1)
|
|
2573
|
-
y = "", (!r || o !== "") && (y +=
|
|
2573
|
+
y = "", (!r || o !== "") && (y += wt(e, n)), u = a[s], p = t[u], e.replacer && (p = e.replacer.call(t, u, p)), $e(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ze === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, c && (y += wt(e, n)), $e(e, n + 1, p, !0, c) && (e.dump && Ze === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, o += y));
|
|
2574
2574
|
e.tag = i, e.dump = o || "{}";
|
|
2575
2575
|
}
|
|
2576
2576
|
function dn(e, n, t) {
|
|
@@ -2800,15 +2800,15 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
2800
2800
|
}, null, 8, ["yaml-record"])) : z("", !0)
|
|
2801
2801
|
], 64));
|
|
2802
2802
|
}
|
|
2803
|
-
}), ms = /* @__PURE__ */
|
|
2803
|
+
}), ms = /* @__PURE__ */ we(fs, [["__scopeId", "data-v-2b74ac63"]]), pn = "24px", gs = (e, n) => {
|
|
2804
2804
|
const t = e.__vccOpts || e;
|
|
2805
2805
|
for (const [r, o] of n)
|
|
2806
2806
|
t[r] = o;
|
|
2807
2807
|
return t;
|
|
2808
|
-
}, ys = (e) => (hn("data-v-
|
|
2808
|
+
}, ys = (e) => (hn("data-v-0cc5a4d3"), e = e(), vn(), e), hs = ["aria-hidden"], vs = {
|
|
2809
2809
|
key: 0,
|
|
2810
2810
|
"data-testid": "kui-icon-svg-title"
|
|
2811
|
-
}, bs = /* @__PURE__ */ ys(() => /* @__PURE__ */
|
|
2811
|
+
}, bs = /* @__PURE__ */ ys(() => /* @__PURE__ */ V("path", {
|
|
2812
2812
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2813
2813
|
fill: "currentColor"
|
|
2814
2814
|
}, null, -1)), Cs = /* @__PURE__ */ ae({
|
|
@@ -2904,7 +2904,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
2904
2904
|
_: 1
|
|
2905
2905
|
}, 8, ["aria-hidden", "style"]));
|
|
2906
2906
|
}
|
|
2907
|
-
}), ks = /* @__PURE__ */ gs(Cs, [["__scopeId", "data-v-
|
|
2907
|
+
}), ks = /* @__PURE__ */ gs(Cs, [["__scopeId", "data-v-0cc5a4d3"]]), ws = { "data-testid": "config-card-title" }, _s = { class: "config-card-actions" }, Is = ["href"], As = {
|
|
2908
2908
|
key: 2,
|
|
2909
2909
|
class: "config-card-details-section"
|
|
2910
2910
|
}, Ss = {
|
|
@@ -3040,7 +3040,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3040
3040
|
// the last property displayed
|
|
3041
3041
|
section: ke.Basic
|
|
3042
3042
|
}
|
|
3043
|
-
},
|
|
3043
|
+
}, _ = F(!1), h = F(!1), A = F(""), b = F({}), w = x(() => {
|
|
3044
3044
|
var C, G, K;
|
|
3045
3045
|
if (!b.value)
|
|
3046
3046
|
return [];
|
|
@@ -3093,24 +3093,24 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3093
3093
|
}), v = x(() => {
|
|
3094
3094
|
var C, G, K, I;
|
|
3095
3095
|
return {
|
|
3096
|
-
basic: (C =
|
|
3097
|
-
advanced: (G =
|
|
3098
|
-
plugin: (I = L.value) == null ? void 0 : I.concat((K =
|
|
3096
|
+
basic: (C = w.value) == null ? void 0 : C.filter((T) => T.section === ke.Basic),
|
|
3097
|
+
advanced: (G = w.value) == null ? void 0 : G.filter((T) => T.section === ke.Advanced),
|
|
3098
|
+
plugin: (I = L.value) == null ? void 0 : I.concat((K = w.value) == null ? void 0 : K.filter((T) => T.section === ke.Plugin))
|
|
3099
3099
|
};
|
|
3100
3100
|
}), S = x(() => {
|
|
3101
3101
|
const C = [];
|
|
3102
3102
|
return v.value.basic.length && C.push("basic"), v.value.advanced.length && C.push("advanced"), v.value.plugin.length && C.push("plugin"), C;
|
|
3103
|
-
}),
|
|
3103
|
+
}), D = (C) => !!(C.tooltip || i[`${C.key}-label-tooltip`]), re = x(() => {
|
|
3104
3104
|
var C, G;
|
|
3105
3105
|
let K = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
3106
3106
|
return o.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((C = o.config) == null ? void 0 : C.controlPlaneId) || "") : o.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (G = o.config) != null && G.workspace ? `/${o.config.workspace}` : "")), K = K.replace(/{id}/gi, o.config.entityId), K;
|
|
3107
3107
|
}), R = (C) => {
|
|
3108
3108
|
b.value && C(JSON.stringify(b.value)) ? r("copy:success", b.value) : r("copy:error");
|
|
3109
3109
|
};
|
|
3110
|
-
return Te(
|
|
3110
|
+
return Te(_, (C) => {
|
|
3111
3111
|
r("loading", C);
|
|
3112
3112
|
}, { immediate: !0 }), dt(async () => {
|
|
3113
|
-
h.value = !1,
|
|
3113
|
+
h.value = !1, _.value = !0;
|
|
3114
3114
|
try {
|
|
3115
3115
|
const { data: C } = await u.get(re.value);
|
|
3116
3116
|
if (o.dataKey)
|
|
@@ -3127,13 +3127,13 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3127
3127
|
const G = s(C);
|
|
3128
3128
|
A.value = G.startsWith("code") ? a("baseConfigCard.errors.load") : G, h.value = !0, r("fetch:error", C);
|
|
3129
3129
|
} finally {
|
|
3130
|
-
|
|
3130
|
+
_.value = !1;
|
|
3131
3131
|
}
|
|
3132
3132
|
}), (C, G) => {
|
|
3133
3133
|
const K = q("KLabel"), I = q("KSelect"), T = q("KButton"), O = q("KClipboardProvider"), B = q("KSkeleton"), W = q("KEmptyState"), ee = q("KCard");
|
|
3134
3134
|
return d(), P(ee, { class: "kong-ui-entity-base-config-card" }, je({
|
|
3135
3135
|
actions: g(() => [
|
|
3136
|
-
|
|
3136
|
+
V("div", _s, [
|
|
3137
3137
|
X(C.$slots, "actions", {}, void 0, !0),
|
|
3138
3138
|
e.config.jsonYamlEnabled ? (d(), P(K, {
|
|
3139
3139
|
key: 0,
|
|
@@ -3147,6 +3147,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3147
3147
|
})) : z("", !0),
|
|
3148
3148
|
e.config.jsonYamlEnabled ? (d(), P(I, {
|
|
3149
3149
|
key: 1,
|
|
3150
|
+
appearance: "select",
|
|
3150
3151
|
"data-testid": "select-config-format",
|
|
3151
3152
|
items: p,
|
|
3152
3153
|
onChange: y
|
|
@@ -3158,7 +3159,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3158
3159
|
"data-testid": "book-icon"
|
|
3159
3160
|
}, {
|
|
3160
3161
|
default: g(() => [
|
|
3161
|
-
|
|
3162
|
+
V("a", {
|
|
3162
3163
|
href: e.configCardDoc,
|
|
3163
3164
|
rel: "noopener",
|
|
3164
3165
|
target: "_blank"
|
|
@@ -3170,7 +3171,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3170
3171
|
})) : z("", !0),
|
|
3171
3172
|
e.config.jsonYamlEnabled ? z("", !0) : (d(), P(O, { key: 3 }, {
|
|
3172
3173
|
default: g(({ copyToClipboard: te }) => [
|
|
3173
|
-
!
|
|
3174
|
+
!_.value && !h.value ? (d(), P(T, {
|
|
3174
3175
|
key: 0,
|
|
3175
3176
|
appearance: "tertiary",
|
|
3176
3177
|
"data-testid": "json-copy-button",
|
|
@@ -3187,7 +3188,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3187
3188
|
])
|
|
3188
3189
|
]),
|
|
3189
3190
|
default: g(() => [
|
|
3190
|
-
|
|
3191
|
+
_.value ? (d(), P(B, {
|
|
3191
3192
|
key: 0,
|
|
3192
3193
|
"data-testid": "config-card-loader",
|
|
3193
3194
|
"table-columns": 2,
|
|
@@ -3198,7 +3199,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3198
3199
|
"is-error": ""
|
|
3199
3200
|
}, {
|
|
3200
3201
|
message: g(() => [
|
|
3201
|
-
|
|
3202
|
+
V("h3", null, N(A.value), 1)
|
|
3202
3203
|
]),
|
|
3203
3204
|
_: 1
|
|
3204
3205
|
})) : z("", !0),
|
|
@@ -3243,7 +3244,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3243
3244
|
]),
|
|
3244
3245
|
_: 2
|
|
3245
3246
|
}, [
|
|
3246
|
-
|
|
3247
|
+
D(ne) ? {
|
|
3247
3248
|
name: "label-tooltip",
|
|
3248
3249
|
fn: g(() => [
|
|
3249
3250
|
X(C.$slots, `${ne.key}-label-tooltip`, { row: ne }, void 0, !0)
|
|
@@ -3259,7 +3260,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3259
3260
|
e.hideTitle ? void 0 : {
|
|
3260
3261
|
name: "title",
|
|
3261
3262
|
fn: g(() => [
|
|
3262
|
-
|
|
3263
|
+
V("div", ws, [
|
|
3263
3264
|
X(C.$slots, "title", {}, () => [
|
|
3264
3265
|
Z(N(m(a)("baseConfigCard.title")), 1)
|
|
3265
3266
|
], !0)
|
|
@@ -3270,7 +3271,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3270
3271
|
]), 1024);
|
|
3271
3272
|
};
|
|
3272
3273
|
}
|
|
3273
|
-
}), js = /* @__PURE__ */
|
|
3274
|
+
}), js = /* @__PURE__ */ we($s, [["__scopeId", "data-v-068b819b"]]), Ms = {
|
|
3274
3275
|
class: "form-actions",
|
|
3275
3276
|
"data-testid": "form-actions"
|
|
3276
3277
|
}, Os = { key: 0 }, Es = /* @__PURE__ */ ae({
|
|
@@ -3330,17 +3331,17 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3330
3331
|
var t;
|
|
3331
3332
|
const r = n, o = e, i = At(), { i18n: { t: a } } = ce.useI18n(), { getMessageFromError: s } = ce.useErrors(), { axiosInstance: l } = ce.useAxios({
|
|
3332
3333
|
headers: (t = o.config) == null ? void 0 : t.requestHeaders
|
|
3333
|
-
}), u = F(!1), p = F(!1), c = F(""), y = x(() => o.canSubmit === !1 || o.isReadonly), f = F(!1),
|
|
3334
|
+
}), u = F(!1), p = F(!1), c = F(""), y = x(() => o.canSubmit === !1 || o.isReadonly), f = F(!1), _ = x(() => {
|
|
3334
3335
|
var v, S;
|
|
3335
|
-
let
|
|
3336
|
-
return o.config.app === "konnect" ?
|
|
3336
|
+
let D = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
3337
|
+
return o.config.app === "konnect" ? D = D.replace(/{controlPlaneId}/gi, ((v = o.config) == null ? void 0 : v.controlPlaneId) || "") : o.config.app === "kongManager" && (D = D.replace(/\/{workspace}/gi, (S = o.config) != null && S.workspace ? `/${o.config.workspace}` : "")), o.editId ? (D = D.replace(/{id}/gi, o.editId), D) : (D = D.replace(/\/{id}/gi, ""), D);
|
|
3337
3338
|
}), h = () => {
|
|
3338
3339
|
f.value = !f.value;
|
|
3339
3340
|
}, A = () => {
|
|
3340
3341
|
o.config.cancelRoute ? i.push(o.config.cancelRoute) : b();
|
|
3341
3342
|
}, b = () => {
|
|
3342
3343
|
r("cancel");
|
|
3343
|
-
},
|
|
3344
|
+
}, w = () => {
|
|
3344
3345
|
y.value || r("submit");
|
|
3345
3346
|
}, L = F([
|
|
3346
3347
|
{
|
|
@@ -3358,7 +3359,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3358
3359
|
if (o.editId)
|
|
3359
3360
|
try {
|
|
3360
3361
|
p.value = !1, u.value = !0;
|
|
3361
|
-
const { data: v } = await l.get(
|
|
3362
|
+
const { data: v } = await l.get(_.value);
|
|
3362
3363
|
r("fetch:success", v);
|
|
3363
3364
|
} catch (v) {
|
|
3364
3365
|
const S = s(v);
|
|
@@ -3367,10 +3368,10 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3367
3368
|
u.value = !1;
|
|
3368
3369
|
}
|
|
3369
3370
|
}), (v, S) => {
|
|
3370
|
-
const
|
|
3371
|
+
const D = q("KSkeleton"), re = q("KEmptyState"), R = q("KAlert"), C = q("KButton"), G = q("KTabs"), K = q("KSlideout"), I = q("KCard");
|
|
3371
3372
|
return d(), P(I, { class: "kong-ui-entity-base-form" }, {
|
|
3372
3373
|
default: g(() => [
|
|
3373
|
-
u.value ? (d(), P(
|
|
3374
|
+
u.value ? (d(), P(D, {
|
|
3374
3375
|
key: 0,
|
|
3375
3376
|
type: "form"
|
|
3376
3377
|
})) : p.value ? (d(), P(re, {
|
|
@@ -3381,14 +3382,14 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3381
3382
|
"is-error": !0
|
|
3382
3383
|
}, {
|
|
3383
3384
|
message: g(() => [
|
|
3384
|
-
|
|
3385
|
+
V("h3", null, N(c.value), 1)
|
|
3385
3386
|
]),
|
|
3386
3387
|
_: 1
|
|
3387
3388
|
}, 8, ["cta-text"])) : (d(), j("form", {
|
|
3388
3389
|
key: 2,
|
|
3389
3390
|
"data-testid": "form-content",
|
|
3390
3391
|
onReset: rt(b, ["prevent"]),
|
|
3391
|
-
onSubmit: rt(
|
|
3392
|
+
onSubmit: rt(w, ["prevent"])
|
|
3392
3393
|
}, [
|
|
3393
3394
|
X(v.$slots, "default", {}, void 0, !0),
|
|
3394
3395
|
e.errorMessage ? (d(), P(R, {
|
|
@@ -3397,7 +3398,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3397
3398
|
appearance: "danger",
|
|
3398
3399
|
"data-testid": "form-error"
|
|
3399
3400
|
}, null, 8, ["alert-message"])) : z("", !0),
|
|
3400
|
-
|
|
3401
|
+
V("div", Ms, [
|
|
3401
3402
|
X(v.$slots, "form-actions", {}, () => [
|
|
3402
3403
|
e.config.jsonYamlFormsEnabled ? (d(), j("div", Os, [
|
|
3403
3404
|
E(C, {
|
|
@@ -3446,7 +3447,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3446
3447
|
onClose: S[1] || (S[1] = (T) => h())
|
|
3447
3448
|
}, {
|
|
3448
3449
|
default: g(() => [
|
|
3449
|
-
|
|
3450
|
+
V("div", null, N(m(a)("baseForm.configuration.message")), 1),
|
|
3450
3451
|
E(G, {
|
|
3451
3452
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3452
3453
|
tabs: L.value
|
|
@@ -3454,7 +3455,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3454
3455
|
json: g(() => [
|
|
3455
3456
|
E(xn, {
|
|
3456
3457
|
config: e.config,
|
|
3457
|
-
"fetcher-url":
|
|
3458
|
+
"fetcher-url": _.value,
|
|
3458
3459
|
"json-record": o.formFields,
|
|
3459
3460
|
"request-method": o.editId ? "put" : "post"
|
|
3460
3461
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
@@ -3474,7 +3475,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3474
3475
|
});
|
|
3475
3476
|
};
|
|
3476
3477
|
}
|
|
3477
|
-
}), Fs = /* @__PURE__ */
|
|
3478
|
+
}), Fs = /* @__PURE__ */ we(Es, [["__scopeId", "data-v-4ef70725"]]), Ns = {
|
|
3478
3479
|
key: 0,
|
|
3479
3480
|
"data-testid": "first-col"
|
|
3480
3481
|
}, Ks = /* @__PURE__ */ ae({
|
|
@@ -3521,10 +3522,10 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3521
3522
|
}
|
|
3522
3523
|
},
|
|
3523
3524
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3524
|
-
),
|
|
3525
|
-
return
|
|
3525
|
+
), _ = x(() => o.value ? u.value > p.value : !1);
|
|
3526
|
+
return wr(() => {
|
|
3526
3527
|
s();
|
|
3527
|
-
}),
|
|
3528
|
+
}), _r(() => {
|
|
3528
3529
|
f();
|
|
3529
3530
|
}), (h, A) => {
|
|
3530
3531
|
const b = q("KTooltip");
|
|
@@ -3535,7 +3536,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3535
3536
|
}, [
|
|
3536
3537
|
o.value ? (d(), j("span", Ns, [
|
|
3537
3538
|
E(b, {
|
|
3538
|
-
label:
|
|
3539
|
+
label: _.value ? c.value : "",
|
|
3539
3540
|
"max-width": "300",
|
|
3540
3541
|
placement: "bottomStart"
|
|
3541
3542
|
}, {
|
|
@@ -3548,7 +3549,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3548
3549
|
], 512);
|
|
3549
3550
|
};
|
|
3550
3551
|
}
|
|
3551
|
-
}), qs = /* @__PURE__ */
|
|
3552
|
+
}), qs = /* @__PURE__ */ we(Ks, [["__scopeId", "data-v-e42a20c9"]]), Bs = { class: "toolbar-container" }, Ls = {
|
|
3552
3553
|
key: 0,
|
|
3553
3554
|
class: "toolbar-button-container"
|
|
3554
3555
|
}, Us = ["data-testid"], Ps = /* @__PURE__ */ ae({
|
|
@@ -3662,7 +3663,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3662
3663
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3663
3664
|
setup(e, { emit: n }) {
|
|
3664
3665
|
const t = e, r = n, { i18n: { t: o } } = ce.useI18n(), i = x(() => {
|
|
3665
|
-
var S,
|
|
3666
|
+
var S, D;
|
|
3666
3667
|
return typeof t.errorMessage == "string" ? {
|
|
3667
3668
|
hasError: !!t.errorMessage,
|
|
3668
3669
|
title: t.errorMessage,
|
|
@@ -3670,15 +3671,15 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3670
3671
|
} : {
|
|
3671
3672
|
hasError: !!t.errorMessage,
|
|
3672
3673
|
title: (S = t.errorMessage) == null ? void 0 : S.title,
|
|
3673
|
-
message: (
|
|
3674
|
+
message: (D = t.errorMessage) == null ? void 0 : D.message
|
|
3674
3675
|
};
|
|
3675
3676
|
}), a = x(() => t.cacheIdentifier || t.preferencesStorageKey), s = (S) => S.hasData || !!t.query, l = x(() => {
|
|
3676
3677
|
const S = [];
|
|
3677
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
3678
|
-
const re = t.tableHeaders[
|
|
3678
|
+
return Object.keys(t.tableHeaders).forEach((D) => {
|
|
3679
|
+
const re = t.tableHeaders[D];
|
|
3679
3680
|
S.push({
|
|
3680
|
-
label: re.label ??
|
|
3681
|
-
key:
|
|
3681
|
+
label: re.label ?? D,
|
|
3682
|
+
key: D,
|
|
3682
3683
|
sortable: re.sortable ?? !1
|
|
3683
3684
|
});
|
|
3684
3685
|
}), t.enableEntityActions && S.push({
|
|
@@ -3690,28 +3691,28 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3690
3691
|
"data-testid": S.name,
|
|
3691
3692
|
...t.rowAttributes(S)
|
|
3692
3693
|
}), p = F({}), c = (S) => {
|
|
3693
|
-
var
|
|
3694
|
-
return (
|
|
3694
|
+
var D;
|
|
3695
|
+
return (D = p.value) == null ? void 0 : D.$el.querySelector(`[data-rowid="${S.id}"]`);
|
|
3695
3696
|
}, y = (S) => {
|
|
3696
|
-
const
|
|
3697
|
+
const D = {
|
|
3697
3698
|
"data-testid": S.headerKey,
|
|
3698
3699
|
...t.cellAttributes(S)
|
|
3699
3700
|
};
|
|
3700
|
-
return S.colIndex === 0 && (
|
|
3701
|
+
return S.colIndex === 0 && (D.style = {
|
|
3701
3702
|
maxWidth: "250px",
|
|
3702
3703
|
overflowX: "hidden",
|
|
3703
3704
|
textOverflow: "ellipsis"
|
|
3704
|
-
}),
|
|
3705
|
+
}), D;
|
|
3705
3706
|
}, f = () => {
|
|
3706
|
-
r("empty-state-cta-clicked"),
|
|
3707
|
-
},
|
|
3707
|
+
r("empty-state-cta-clicked"), _();
|
|
3708
|
+
}, _ = () => {
|
|
3708
3709
|
r("clear-search-input");
|
|
3709
|
-
}, h = x(() => t.disableRowClick ? void 0 : (S,
|
|
3710
|
-
r("click:row",
|
|
3710
|
+
}, h = x(() => t.disableRowClick ? void 0 : (S, D) => {
|
|
3711
|
+
r("click:row", D);
|
|
3711
3712
|
}), A = (S) => {
|
|
3712
3713
|
r("sort", S);
|
|
3713
|
-
}, { setTablePreferences: b, getTablePreferences:
|
|
3714
|
-
const S =
|
|
3714
|
+
}, { setTablePreferences: b, getTablePreferences: w } = Or(), L = x(() => {
|
|
3715
|
+
const S = w(t.preferencesStorageKey);
|
|
3715
3716
|
return {
|
|
3716
3717
|
...t.initialFetcherParams,
|
|
3717
3718
|
...S
|
|
@@ -3719,7 +3720,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3719
3720
|
}), v = (S) => {
|
|
3720
3721
|
t.preferencesStorageKey && b(t.preferencesStorageKey, S);
|
|
3721
3722
|
};
|
|
3722
|
-
return (S,
|
|
3723
|
+
return (S, D) => {
|
|
3723
3724
|
const re = q("KIcon"), R = q("KButton"), C = q("KDropdown"), G = q("KTable"), K = q("KCard");
|
|
3724
3725
|
return d(), P(K, {
|
|
3725
3726
|
class: "kong-ui-entity-base-table",
|
|
@@ -3755,11 +3756,11 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3755
3756
|
"search-input": e.query,
|
|
3756
3757
|
onKtableEmptyStateCtaClicked: f,
|
|
3757
3758
|
"onRow:click": h.value,
|
|
3758
|
-
onSort:
|
|
3759
|
+
onSort: D[0] || (D[0] = (I) => A(I)),
|
|
3759
3760
|
"onUpdate:tablePreferences": v
|
|
3760
3761
|
}, je({
|
|
3761
3762
|
toolbar: g(({ state: I }) => [
|
|
3762
|
-
Je(
|
|
3763
|
+
Je(V("div", Bs, [
|
|
3763
3764
|
X(S.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3764
3765
|
S.$slots["toolbar-button"] ? (d(), j("div", Ls, [
|
|
3765
3766
|
X(S.$slots, "toolbar-button", {}, void 0, !0)
|
|
@@ -3769,7 +3770,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3769
3770
|
])
|
|
3770
3771
|
]),
|
|
3771
3772
|
actions: g(({ row: I, rowKey: T, rowValue: O }) => [
|
|
3772
|
-
|
|
3773
|
+
V("div", {
|
|
3773
3774
|
class: "actions-container",
|
|
3774
3775
|
"data-testid": I.name
|
|
3775
3776
|
}, [
|
|
@@ -3832,7 +3833,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3832
3833
|
}, 8, ["title"]);
|
|
3833
3834
|
};
|
|
3834
3835
|
}
|
|
3835
|
-
}), Ds = /* @__PURE__ */
|
|
3836
|
+
}), Ds = /* @__PURE__ */ we(Ps, [["__scopeId", "data-v-57b5a97b"]]), Vs = {
|
|
3836
3837
|
key: 0,
|
|
3837
3838
|
class: "kong-ui-entity-delete-error"
|
|
3838
3839
|
}, Rs = {
|
|
@@ -3917,14 +3918,14 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3917
3918
|
r.entityName ? {
|
|
3918
3919
|
name: "entityName",
|
|
3919
3920
|
fn: g(() => [
|
|
3920
|
-
|
|
3921
|
+
V("strong", null, N(r.entityName), 1)
|
|
3921
3922
|
]),
|
|
3922
3923
|
key: "0"
|
|
3923
3924
|
} : void 0
|
|
3924
3925
|
]), 1032, ["keypath"]),
|
|
3925
3926
|
r.description || l.$slots.description ? (d(), j("div", Rs, [
|
|
3926
3927
|
X(l.$slots, "description", {}, () => [
|
|
3927
|
-
|
|
3928
|
+
V("p", null, N(r.description), 1)
|
|
3928
3929
|
], !0)
|
|
3929
3930
|
])) : z("", !0)
|
|
3930
3931
|
]),
|
|
@@ -3932,7 +3933,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3932
3933
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3933
3934
|
};
|
|
3934
3935
|
}
|
|
3935
|
-
}), Hs = /* @__PURE__ */
|
|
3936
|
+
}), Hs = /* @__PURE__ */ we(Gs, [["__scopeId", "data-v-1c9a2a07"]]), zs = {
|
|
3936
3937
|
fill: "none",
|
|
3937
3938
|
height: "20",
|
|
3938
3939
|
viewBox: "0 0 20 20",
|
|
@@ -3956,15 +3957,15 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3956
3957
|
},
|
|
3957
3958
|
setup(e) {
|
|
3958
3959
|
return (n, t) => (d(), j("svg", zs, [
|
|
3959
|
-
|
|
3960
|
-
|
|
3960
|
+
V("mask", Js, [
|
|
3961
|
+
V("rect", {
|
|
3961
3962
|
fill: e.color,
|
|
3962
3963
|
height: "20",
|
|
3963
3964
|
width: "20"
|
|
3964
3965
|
}, null, 8, Ys)
|
|
3965
3966
|
]),
|
|
3966
|
-
|
|
3967
|
-
|
|
3967
|
+
V("g", Ws, [
|
|
3968
|
+
V("path", {
|
|
3968
3969
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3969
3970
|
fill: e.color
|
|
3970
3971
|
}, null, 8, Zs)
|
|
@@ -3996,19 +3997,19 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3996
3997
|
setup(e, { emit: n }) {
|
|
3997
3998
|
const { i18n: { t } } = ce.useI18n(), r = e, o = n, i = F(!1), a = F({}), s = x(() => {
|
|
3998
3999
|
const b = [];
|
|
3999
|
-
return new URLSearchParams(r.modelValue).forEach((
|
|
4000
|
-
|
|
4000
|
+
return new URLSearchParams(r.modelValue).forEach((w, L) => {
|
|
4001
|
+
w !== "" && b.push(L);
|
|
4001
4002
|
}), b;
|
|
4002
4003
|
}), l = x(() => {
|
|
4003
4004
|
const b = r.config.fields;
|
|
4004
|
-
return Object.keys(b).filter((
|
|
4005
|
-
label: b[
|
|
4006
|
-
value:
|
|
4005
|
+
return Object.keys(b).filter((w) => b[w].searchable).map((w) => ({
|
|
4006
|
+
label: b[w].label || w,
|
|
4007
|
+
value: w
|
|
4007
4008
|
}));
|
|
4008
4009
|
});
|
|
4009
4010
|
Te(() => r.modelValue, (b) => {
|
|
4010
|
-
a.value = {}, new URLSearchParams(b).forEach((
|
|
4011
|
-
a.value[L] =
|
|
4011
|
+
a.value = {}, new URLSearchParams(b).forEach((w, L) => {
|
|
4012
|
+
a.value[L] = w;
|
|
4012
4013
|
});
|
|
4013
4014
|
});
|
|
4014
4015
|
const u = () => {
|
|
@@ -4016,15 +4017,15 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4016
4017
|
}, p = (b) => {
|
|
4017
4018
|
o("update:modelValue", b);
|
|
4018
4019
|
}, c = (b) => `filter-${b}`, y = (b) => {
|
|
4019
|
-
var
|
|
4020
|
-
return (((L = (
|
|
4020
|
+
var w, L;
|
|
4021
|
+
return (((L = (w = r.config.schema) == null ? void 0 : w[b]) == null ? void 0 : L.values) ?? []).map((v) => ({
|
|
4021
4022
|
value: v,
|
|
4022
4023
|
label: v
|
|
4023
4024
|
}));
|
|
4024
4025
|
}, f = (b) => {
|
|
4025
|
-
var
|
|
4026
|
-
return ((L = (
|
|
4027
|
-
},
|
|
4026
|
+
var w, L;
|
|
4027
|
+
return ((L = (w = r.config.schema) == null ? void 0 : w[b]) == null ? void 0 : L.type) ?? "text";
|
|
4028
|
+
}, _ = (b) => {
|
|
4028
4029
|
a.value = {
|
|
4029
4030
|
...a.value,
|
|
4030
4031
|
[b]: ""
|
|
@@ -4032,11 +4033,11 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4032
4033
|
}, h = () => {
|
|
4033
4034
|
a.value = {}, A(!0);
|
|
4034
4035
|
}, A = (b = !1) => {
|
|
4035
|
-
const
|
|
4036
|
-
b && (i.value = !1), o("update:modelValue", new URLSearchParams(
|
|
4036
|
+
const w = Object.keys(a.value).reduce((L, v) => (a.value[v] && (L[v] = `${a.value[v]}`), L), {});
|
|
4037
|
+
b && (i.value = !1), o("update:modelValue", new URLSearchParams(w).toString());
|
|
4037
4038
|
};
|
|
4038
|
-
return (b,
|
|
4039
|
-
const L = q("KInput"), v = q("KButton"), S = q("KSelect"),
|
|
4039
|
+
return (b, w) => {
|
|
4040
|
+
const L = q("KInput"), v = q("KButton"), S = q("KSelect"), D = q("KMenuItem"), re = q("KMenu");
|
|
4040
4041
|
return e.config.isExactMatch ? (d(), P(L, {
|
|
4041
4042
|
key: 0,
|
|
4042
4043
|
autocomplete: "off",
|
|
@@ -4062,7 +4063,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4062
4063
|
]),
|
|
4063
4064
|
_: 1
|
|
4064
4065
|
}),
|
|
4065
|
-
Je(
|
|
4066
|
+
Je(V("div", {
|
|
4066
4067
|
class: "kong-ui-entity-filter-backdrop",
|
|
4067
4068
|
onClick: u
|
|
4068
4069
|
}, null, 512), [
|
|
@@ -4070,16 +4071,16 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4070
4071
|
]),
|
|
4071
4072
|
Je(E(re, { class: "kong-ui-entity-filter-menu" }, {
|
|
4072
4073
|
body: g(() => [
|
|
4073
|
-
(d(!0), j(Ce, null, ve(l.value, (R, C) => (d(), P(
|
|
4074
|
+
(d(!0), j(Ce, null, ve(l.value, (R, C) => (d(), P(D, {
|
|
4074
4075
|
key: R.value,
|
|
4075
4076
|
"data-testid": R.value,
|
|
4076
4077
|
expandable: "",
|
|
4077
4078
|
"last-menu-item": C === l.value.length - 1
|
|
4078
4079
|
}, {
|
|
4079
4080
|
itemTitle: g(() => [
|
|
4080
|
-
|
|
4081
|
+
V("span", Xs, [
|
|
4081
4082
|
Z(N(R.label) + " ", 1),
|
|
4082
|
-
Je(
|
|
4083
|
+
Je(V("span", el, null, 512), [
|
|
4083
4084
|
[Ye, s.value.includes(R.value)]
|
|
4084
4085
|
])
|
|
4085
4086
|
])
|
|
@@ -4087,8 +4088,8 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4087
4088
|
itemBody: g(() => {
|
|
4088
4089
|
var G, K;
|
|
4089
4090
|
return [
|
|
4090
|
-
|
|
4091
|
-
|
|
4091
|
+
V("div", tl, [
|
|
4092
|
+
V("label", {
|
|
4092
4093
|
class: "menu-item-label",
|
|
4093
4094
|
for: c(R.value)
|
|
4094
4095
|
}, N(m(t)("filter.fieldLabel")), 9, nl),
|
|
@@ -4097,6 +4098,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4097
4098
|
id: c(R.value),
|
|
4098
4099
|
modelValue: a.value[R.value],
|
|
4099
4100
|
"onUpdate:modelValue": (I) => a.value[R.value] = I,
|
|
4101
|
+
appearance: "select",
|
|
4100
4102
|
items: y(R.value),
|
|
4101
4103
|
placeholder: m(t)("filter.selectPlaceholder")
|
|
4102
4104
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (d(), P(L, {
|
|
@@ -4109,12 +4111,12 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4109
4111
|
type: f(R.value)
|
|
4110
4112
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4111
4113
|
]),
|
|
4112
|
-
|
|
4114
|
+
V("div", rl, [
|
|
4113
4115
|
E(v, {
|
|
4114
4116
|
appearance: "tertiary",
|
|
4115
4117
|
"data-testid": "apply-filter",
|
|
4116
4118
|
size: "small",
|
|
4117
|
-
onClick:
|
|
4119
|
+
onClick: w[0] || (w[0] = (I) => A(!0))
|
|
4118
4120
|
}, {
|
|
4119
4121
|
default: g(() => [
|
|
4120
4122
|
Z(N(m(t)("filter.applyButtonText")), 1)
|
|
@@ -4125,7 +4127,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4125
4127
|
appearance: "tertiary",
|
|
4126
4128
|
"data-testid": "clear-filter",
|
|
4127
4129
|
size: "small",
|
|
4128
|
-
onClick: (I) =>
|
|
4130
|
+
onClick: (I) => _(R.value)
|
|
4129
4131
|
}, {
|
|
4130
4132
|
default: g(() => [
|
|
4131
4133
|
Z(N(m(t)("filter.clearButtonText")), 1)
|
|
@@ -4139,7 +4141,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4139
4141
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
4140
4142
|
]),
|
|
4141
4143
|
actionButton: g(() => [
|
|
4142
|
-
|
|
4144
|
+
V("div", ol, [
|
|
4143
4145
|
E(v, {
|
|
4144
4146
|
appearance: "tertiary",
|
|
4145
4147
|
size: "small",
|
|
@@ -4159,7 +4161,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4159
4161
|
]));
|
|
4160
4162
|
};
|
|
4161
4163
|
}
|
|
4162
|
-
}), il = /* @__PURE__ */
|
|
4164
|
+
}), il = /* @__PURE__ */ we(al, [["__scopeId", "data-v-15962ee2"]]), tt = /* @__PURE__ */ ae({
|
|
4163
4165
|
__name: "PermissionsWrapper",
|
|
4164
4166
|
props: {
|
|
4165
4167
|
/**
|
|
@@ -4227,7 +4229,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4227
4229
|
return (t, r) => (d(), j("fieldset", {
|
|
4228
4230
|
class: Ee(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4229
4231
|
}, [
|
|
4230
|
-
|
|
4232
|
+
V("div", sl, [
|
|
4231
4233
|
e.hideInfoHeader ? z("", !0) : (d(), j("div", {
|
|
4232
4234
|
key: 0,
|
|
4233
4235
|
class: Ee(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
@@ -4235,20 +4237,20 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4235
4237
|
e.title ? (d(), j("h4", ll, N(e.title), 1)) : z("", !0),
|
|
4236
4238
|
e.description || m(n).description ? (d(), j("div", ul, [
|
|
4237
4239
|
X(t.$slots, "description", {}, () => [
|
|
4238
|
-
|
|
4240
|
+
V("p", null, N(e.description), 1)
|
|
4239
4241
|
], !0)
|
|
4240
4242
|
])) : z("", !0),
|
|
4241
4243
|
m(n).footer ? (d(), j("div", cl, [
|
|
4242
4244
|
X(t.$slots, "footer", {}, void 0, !0)
|
|
4243
4245
|
])) : z("", !0)
|
|
4244
4246
|
], 2)),
|
|
4245
|
-
|
|
4247
|
+
V("div", dl, [
|
|
4246
4248
|
X(t.$slots, "default", {}, void 0, !0)
|
|
4247
4249
|
])
|
|
4248
4250
|
])
|
|
4249
4251
|
], 2));
|
|
4250
4252
|
}
|
|
4251
|
-
}), mn = /* @__PURE__ */
|
|
4253
|
+
}), mn = /* @__PURE__ */ we(pl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Kt, useDeleteUrlBuilder: fl, useErrors: ml, useExternalLinkCreator: Nl, useFetchUrlBuilder: Kl, useFetcher: gl, useDebouncedFilter: yr, useStringHelpers: ql, useHelpers: Bl, useGatewayFeatureSupported: Ll, useTruncationDetector: Ul } = ce, yl = { class: "add-to-group-form-container" }, hl = { class: "add-to-group-cta-text" }, vl = {
|
|
4252
4254
|
key: 0,
|
|
4253
4255
|
class: "kong-ui-entity-add-to-groups-error"
|
|
4254
4256
|
}, bl = { key: 0 }, Cl = /* @__PURE__ */ ae({
|
|
@@ -4286,7 +4288,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4286
4288
|
fetchedItemsKey: "data",
|
|
4287
4289
|
searchKeys: ["name", "id"]
|
|
4288
4290
|
}
|
|
4289
|
-
), f = x(() => p.value ? t("consumer_groups.errors.general") : ""),
|
|
4291
|
+
), f = x(() => p.value ? t("consumer_groups.errors.general") : ""), _ = F(0), h = x(() => u.value === void 0), A = x(() => y.value.map((I) => ({
|
|
4290
4292
|
label: I.name,
|
|
4291
4293
|
value: I.id,
|
|
4292
4294
|
selected: a.value.includes(I.id),
|
|
@@ -4296,9 +4298,9 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4296
4298
|
var O;
|
|
4297
4299
|
const T = h.value ? y.value.find((B) => B.id === I) : (O = u.value) == null ? void 0 : O.find((B) => B.id === I);
|
|
4298
4300
|
return T ? T.name : I;
|
|
4299
|
-
},
|
|
4301
|
+
}, w = () => {
|
|
4300
4302
|
S.value = "", L.value = [], C.value = [], o("cancel");
|
|
4301
|
-
}, L = F([]), v = F(!1), S = F(""),
|
|
4303
|
+
}, L = F([]), v = F(!1), S = F(""), D = async () => {
|
|
4302
4304
|
if (!a.value.length) {
|
|
4303
4305
|
S.value = "", C.value = [], o("cancel");
|
|
4304
4306
|
return;
|
|
@@ -4337,7 +4339,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4337
4339
|
}).filter(Boolean);
|
|
4338
4340
|
};
|
|
4339
4341
|
return Te(A, () => {
|
|
4340
|
-
|
|
4342
|
+
_.value++;
|
|
4341
4343
|
}, { immediate: !0, deep: !0 }), Te(() => r.visible, () => {
|
|
4342
4344
|
r.visible && c();
|
|
4343
4345
|
}, { immediate: !0 }), (I, T) => {
|
|
@@ -4348,12 +4350,12 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4348
4350
|
"data-testid": "add-to-group-modal",
|
|
4349
4351
|
"is-visible": e.visible,
|
|
4350
4352
|
title: m(t)("consumer_groups.consumers.add.title"),
|
|
4351
|
-
onCanceled:
|
|
4352
|
-
onProceed:
|
|
4353
|
+
onCanceled: w,
|
|
4354
|
+
onProceed: D
|
|
4353
4355
|
}, {
|
|
4354
4356
|
"body-content": g(() => [
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
+
V("div", yl, [
|
|
4358
|
+
V("p", hl, N(m(t)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4357
4359
|
E(O, {
|
|
4358
4360
|
modelValue: a.value,
|
|
4359
4361
|
"onUpdate:modelValue": T[0] || (T[0] = (ee) => a.value = ee),
|
|
@@ -4372,11 +4374,11 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4372
4374
|
S.value || f.value || C.value.length ? (d(), j("div", vl, [
|
|
4373
4375
|
E(B, { appearance: "danger" }, {
|
|
4374
4376
|
alertMessage: g(() => [
|
|
4375
|
-
|
|
4377
|
+
V("p", null, N(m(t)("consumer_groups.errors.add")), 1),
|
|
4376
4378
|
C.value.length ? (d(), j("ul", bl, [
|
|
4377
4379
|
(d(!0), j(Ce, null, ve(C.value, (ee, te) => (d(), j("li", { key: te }, N(ee), 1))), 128))
|
|
4378
4380
|
])) : z("", !0),
|
|
4379
|
-
|
|
4381
|
+
V("div", null, N(S.value || f.value), 1)
|
|
4380
4382
|
]),
|
|
4381
4383
|
_: 1
|
|
4382
4384
|
})
|
|
@@ -4392,7 +4394,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4392
4394
|
for (const [r, o] of n)
|
|
4393
4395
|
t[r] = o;
|
|
4394
4396
|
return t;
|
|
4395
|
-
}, kl = /* @__PURE__ */ qt(Cl, [["__scopeId", "data-v-3808b4c0"]]),
|
|
4397
|
+
}, kl = /* @__PURE__ */ qt(Cl, [["__scopeId", "data-v-3808b4c0"]]), wl = { class: "kong-ui-entities-consumer-groups-list" }, _l = { key: 1 }, Il = /* @__PURE__ */ ae({
|
|
4396
4398
|
__name: "ConsumerGroupList",
|
|
4397
4399
|
props: {
|
|
4398
4400
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4447,7 +4449,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4447
4449
|
name: { label: i("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4448
4450
|
};
|
|
4449
4451
|
r.config.app === "kongManager" && (y.consumers_count = { label: i("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), y.tags = { label: i("consumer_groups.list.table_headers.tags"), sortable: !1 };
|
|
4450
|
-
const f = y,
|
|
4452
|
+
const f = y, _ = ($) => ({
|
|
4451
4453
|
"data-testid": $.username ?? $.custom_id ?? $.id
|
|
4452
4454
|
}), h = x(() => {
|
|
4453
4455
|
var Y, se, he, Ie;
|
|
@@ -4469,9 +4471,9 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4469
4471
|
},
|
|
4470
4472
|
schema: r.config.filterSchema
|
|
4471
4473
|
};
|
|
4472
|
-
}),
|
|
4474
|
+
}), w = x(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: L, fetcherState: v } = gl(r.config, h.value, w.value), S = () => {
|
|
4473
4475
|
A.value = "";
|
|
4474
|
-
},
|
|
4476
|
+
}, D = () => {
|
|
4475
4477
|
l.value++;
|
|
4476
4478
|
}, re = F(null), R = ($, Y) => {
|
|
4477
4479
|
const se = $.id;
|
|
@@ -4534,7 +4536,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4534
4536
|
Y || U(), l.value++, t("add:success", $);
|
|
4535
4537
|
}, J = () => {
|
|
4536
4538
|
u.value && k();
|
|
4537
|
-
}, H = F(void 0), fe = F(!1),
|
|
4539
|
+
}, H = F(void 0), fe = F(!1), _e = F(""), me = ($) => {
|
|
4538
4540
|
H.value = $, fe.value = !0;
|
|
4539
4541
|
}, Ne = () => {
|
|
4540
4542
|
fe.value = !1, H.value = void 0;
|
|
@@ -4549,7 +4551,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4549
4551
|
const $ = et.value.replace(/{consumerGroupId}/gi, H.value.id);
|
|
4550
4552
|
await s.delete($), t("remove:success", H.value), Ne(), l.value++;
|
|
4551
4553
|
} catch ($) {
|
|
4552
|
-
|
|
4554
|
+
_e.value = $.message || i("consumer_groups.errors.delete"), t("error", $);
|
|
4553
4555
|
} finally {
|
|
4554
4556
|
Bt.value = !1;
|
|
4555
4557
|
}
|
|
@@ -4575,7 +4577,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4575
4577
|
await r.canCreate() && (mt.value.title = u.value ? i("consumer_groups.list.empty_state.title_for_consumer") : i("consumer_groups.list.empty_state.title"), mt.value.ctaText = u.value ? i("consumer_groups.actions.add_to_group") : i("consumer_groups.actions.create"));
|
|
4576
4578
|
}), ($, Y) => {
|
|
4577
4579
|
const se = q("KButton"), he = q("KBadge"), Ie = q("KTruncate"), He = q("KDropdownItem"), Pt = q("KClipboardProvider"), vr = q("KPrompt");
|
|
4578
|
-
return d(), j("div",
|
|
4580
|
+
return d(), j("div", wl, [
|
|
4579
4581
|
E(m(Ds), {
|
|
4580
4582
|
"cache-identifier": e.cacheIdentifier,
|
|
4581
4583
|
"disable-pagination": u.value && !e.config.paginatedEndpoint,
|
|
@@ -4589,13 +4591,13 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4589
4591
|
"pagination-type": "offset",
|
|
4590
4592
|
"preferences-storage-key": p.value,
|
|
4591
4593
|
query: A.value,
|
|
4592
|
-
"row-attributes":
|
|
4594
|
+
"row-attributes": _,
|
|
4593
4595
|
"table-headers": m(f),
|
|
4594
4596
|
"use-action-outside": e.useActionOutside,
|
|
4595
4597
|
onClearSearchInput: S,
|
|
4596
4598
|
"onClick:row": Y[3] || (Y[3] = (Q) => G(Q)),
|
|
4597
4599
|
onEmptyStateCtaClicked: J,
|
|
4598
|
-
onSort:
|
|
4600
|
+
onSort: D
|
|
4599
4601
|
}, {
|
|
4600
4602
|
"toolbar-filter": g(() => [
|
|
4601
4603
|
u.value ? z("", !0) : (d(), P(m(il), {
|
|
@@ -4636,7 +4638,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4636
4638
|
}, 8, ["to"]))
|
|
4637
4639
|
]),
|
|
4638
4640
|
name: g(({ rowValue: Q }) => [
|
|
4639
|
-
|
|
4641
|
+
V("b", null, N(Q ?? "-"), 1)
|
|
4640
4642
|
]),
|
|
4641
4643
|
consumers_count: g(({ rowValue: Q }) => [
|
|
4642
4644
|
Z(N(Q ?? "-"), 1)
|
|
@@ -4656,7 +4658,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4656
4658
|
}, 1024))), 128))
|
|
4657
4659
|
]),
|
|
4658
4660
|
_: 2
|
|
4659
|
-
}, 1024)) : (d(), j("span",
|
|
4661
|
+
}, 1024)) : (d(), j("span", _l, "-"))
|
|
4660
4662
|
]),
|
|
4661
4663
|
actions: g(({ row: Q }) => [
|
|
4662
4664
|
E(Pt, null, {
|
|
@@ -4768,29 +4770,29 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4768
4770
|
tag: "p"
|
|
4769
4771
|
}, je({
|
|
4770
4772
|
consumerGroup: g(() => [
|
|
4771
|
-
|
|
4773
|
+
V("strong", null, N(H.value.name || H.value.id), 1)
|
|
4772
4774
|
]),
|
|
4773
4775
|
_: 2
|
|
4774
4776
|
}, [
|
|
4775
4777
|
e.config.consumerUsername ? {
|
|
4776
4778
|
name: "consumer",
|
|
4777
4779
|
fn: g(() => [
|
|
4778
|
-
|
|
4780
|
+
V("strong", null, N(e.config.consumerUsername), 1)
|
|
4779
4781
|
]),
|
|
4780
4782
|
key: "0"
|
|
4781
4783
|
} : void 0
|
|
4782
4784
|
]), 1032, ["keypath"]),
|
|
4783
|
-
|
|
4785
|
+
V("p", null, N(m(i)("consumer_groups.consumers.exit.description")), 1)
|
|
4784
4786
|
]),
|
|
4785
4787
|
_: 1
|
|
4786
4788
|
}, 8, ["is-visible", "title"])) : z("", !0)
|
|
4787
4789
|
]);
|
|
4788
4790
|
};
|
|
4789
4791
|
}
|
|
4790
|
-
}),
|
|
4792
|
+
}), Pl = /* @__PURE__ */ qt(Il, [["__scopeId", "data-v-5e849c87"]]), Al = { class: "kong-ui-entities-consumer-group-form" }, Sl = { class: "select-item-label" }, xl = {
|
|
4791
4793
|
key: 0,
|
|
4792
|
-
class: "select-item-
|
|
4793
|
-
},
|
|
4794
|
+
class: "select-item-desc"
|
|
4795
|
+
}, Tl = /* @__PURE__ */ ae({
|
|
4794
4796
|
__name: "ConsumerGroupForm",
|
|
4795
4797
|
props: {
|
|
4796
4798
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4832,7 +4834,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4832
4834
|
searchKeys: ["username", "custom_id", "id"]
|
|
4833
4835
|
}), { axiosInstance: f } = Kt({
|
|
4834
4836
|
headers: (Le = t.config) == null ? void 0 : Le.requestHeaders
|
|
4835
|
-
}), { getMessageFromError:
|
|
4837
|
+
}), { getMessageFromError: _ } = ml(), h = x(() => y.value.map((k) => ({
|
|
4836
4838
|
label: k.username || k.custom_id,
|
|
4837
4839
|
value: k.id,
|
|
4838
4840
|
selected: a.fields.consumers.includes(k.id),
|
|
@@ -4841,19 +4843,19 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4841
4843
|
}))), A = x(() => {
|
|
4842
4844
|
var k, U;
|
|
4843
4845
|
return (U = Me.form[(k = t.config) == null ? void 0 : k.app]) == null ? void 0 : U.edit;
|
|
4844
|
-
}), b = x(() => t.consumerGroupId ? nt.Edit : nt.Create),
|
|
4845
|
-
var H, fe,
|
|
4846
|
+
}), b = x(() => t.consumerGroupId ? nt.Edit : nt.Create), w = x(() => !!a.fields.name && !C.value), L = x(() => JSON.stringify(a.fields) !== JSON.stringify(s)), v = (k, U = "", ie = "") => {
|
|
4847
|
+
var H, fe, _e, me, Ne, et;
|
|
4846
4848
|
let J = `${(H = t.config) == null ? void 0 : H.apiBaseUrl}${Me.form[(fe = t.config) == null ? void 0 : fe.app][k]}`;
|
|
4847
|
-
return ((
|
|
4849
|
+
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? J = J.replace(/{controlPlaneId}/gi, ((me = t.config) == null ? void 0 : me.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (J = J.replace(/\/{workspace}/gi, (et = t.config) != null && et.workspace ? `/${t.config.workspace}` : "")), J = J.replace(/{id}/gi, U || t.consumerGroupId), (k === "addConsumer" || k === "removeConsumer") && (J = J.replace(/{consumerId}/gi, ie)), J;
|
|
4848
4850
|
}, S = () => {
|
|
4849
4851
|
var k;
|
|
4850
4852
|
i.push(((k = t.config) == null ? void 0 : k.cancelRoute) || { name: "consumer-group-list" });
|
|
4851
|
-
},
|
|
4853
|
+
}, D = (k) => {
|
|
4852
4854
|
r("error", k);
|
|
4853
4855
|
}, re = (k) => {
|
|
4854
4856
|
r("loading", k);
|
|
4855
4857
|
}, R = async (k) => {
|
|
4856
|
-
var ie, J, H, fe,
|
|
4858
|
+
var ie, J, H, fe, _e;
|
|
4857
4859
|
a.fields.name = ((ie = k == null ? void 0 : k.item) == null ? void 0 : ie.name) || ((J = k == null ? void 0 : k.consumer_group) == null ? void 0 : J.name) || (k == null ? void 0 : k.name) || "";
|
|
4858
4860
|
const U = ((H = k == null ? void 0 : k.item) == null ? void 0 : H.tags) || (k == null ? void 0 : k.consumer_group.tags) || (k == null ? void 0 : k.tags) || [];
|
|
4859
4861
|
if (a.fields.tags = (U == null ? void 0 : U.join(", ")) || "", "consumers" in k)
|
|
@@ -4861,7 +4863,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4861
4863
|
else
|
|
4862
4864
|
try {
|
|
4863
4865
|
const { data: me } = await f.get(v("getConsumers"));
|
|
4864
|
-
a.fields.consumers = "consumers" in me ? (
|
|
4866
|
+
a.fields.consumers = "consumers" in me ? (_e = me == null ? void 0 : me.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
|
|
4865
4867
|
} catch (me) {
|
|
4866
4868
|
T(me);
|
|
4867
4869
|
}
|
|
@@ -4873,7 +4875,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4873
4875
|
tags: (U = (k = a.fields.tags.split(",")) == null ? void 0 : k.map((ie) => String(ie || "").trim())) == null ? void 0 : U.filter((ie) => ie !== "")
|
|
4874
4876
|
};
|
|
4875
4877
|
}, K = async (k, U = "") => await f.post(v("addConsumer", U, k), { consumer: k }), I = async (k, U = "") => await f.delete(v("removeConsumer", U, k)), T = (k) => {
|
|
4876
|
-
a.errorMessage =
|
|
4878
|
+
a.errorMessage = _(k), r("error", k);
|
|
4877
4879
|
}, O = (k = t.consumerGroupId) => {
|
|
4878
4880
|
Object.assign(s, a.fields), r("update", { ...a.fields, id: k });
|
|
4879
4881
|
}, B = (k, U, ie = t.consumerGroupId) => {
|
|
@@ -4938,7 +4940,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4938
4940
|
const ie = q("KInput"), J = q("KMultiselect");
|
|
4939
4941
|
return d(), j("div", Al, [
|
|
4940
4942
|
E(m(Fs), {
|
|
4941
|
-
"can-submit":
|
|
4943
|
+
"can-submit": w.value && L.value,
|
|
4942
4944
|
config: e.config,
|
|
4943
4945
|
"edit-id": e.consumerGroupId,
|
|
4944
4946
|
"error-message": a.errorMessage || m(p) || C.value,
|
|
@@ -4946,7 +4948,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4946
4948
|
"form-fields": a.fields,
|
|
4947
4949
|
"is-readonly": a.readonly,
|
|
4948
4950
|
onCancel: S,
|
|
4949
|
-
"onFetch:error": U[3] || (U[3] = (H) =>
|
|
4951
|
+
"onFetch:error": U[3] || (U[3] = (H) => D(H)),
|
|
4950
4952
|
"onFetch:success": R,
|
|
4951
4953
|
onLoading: U[4] || (U[4] = (H) => re(H)),
|
|
4952
4954
|
onSubmit: te
|
|
@@ -4997,6 +4999,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4997
4999
|
"onUpdate:modelValue": U[2] || (U[2] = (H) => a.fields.consumers = H),
|
|
4998
5000
|
appearance: "select",
|
|
4999
5001
|
autosuggest: "",
|
|
5002
|
+
"expand-selected": "",
|
|
5000
5003
|
items: h.value,
|
|
5001
5004
|
label: m(o)("consumer_groups.form.fields.consumers.label"),
|
|
5002
5005
|
loading: m(u),
|
|
@@ -5005,12 +5008,10 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
5005
5008
|
onQueryChange: m(l)
|
|
5006
5009
|
}, {
|
|
5007
5010
|
"item-template": g(({ item: H }) => {
|
|
5008
|
-
var fe,
|
|
5011
|
+
var fe, _e, me;
|
|
5009
5012
|
return [
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
(fe = H == null ? void 0 : H.data) != null && fe.username && ((we = H == null ? void 0 : H.data) != null && we.custom_id) ? (d(), j("div", Tl, N((me = H == null ? void 0 : H.data) == null ? void 0 : me.custom_id), 1)) : z("", !0)
|
|
5013
|
-
])
|
|
5013
|
+
V("div", Sl, N(H.label), 1),
|
|
5014
|
+
(fe = H == null ? void 0 : H.data) != null && fe.username && ((_e = H == null ? void 0 : H.data) != null && _e.custom_id) ? (d(), j("div", xl, N((me = H == null ? void 0 : H.data) == null ? void 0 : me.custom_id), 1)) : z("", !0)
|
|
5014
5015
|
];
|
|
5015
5016
|
}),
|
|
5016
5017
|
_: 1
|
|
@@ -5024,7 +5025,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
5024
5025
|
]);
|
|
5025
5026
|
};
|
|
5026
5027
|
}
|
|
5027
|
-
}),
|
|
5028
|
+
}), Dl = /* @__PURE__ */ qt(Tl, [["__scopeId", "data-v-6181af14"]]), $l = { class: "kong-ui-consumer-group-entity-config-card" }, Vl = /* @__PURE__ */ ae({
|
|
5028
5029
|
__name: "ConsumerGroupConfigCard",
|
|
5029
5030
|
props: {
|
|
5030
5031
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5060,7 +5061,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
5060
5061
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
5061
5062
|
}
|
|
5062
5063
|
});
|
|
5063
|
-
return (i, a) => (d(), j("div",
|
|
5064
|
+
return (i, a) => (d(), j("div", $l, [
|
|
5064
5065
|
E(m(js), {
|
|
5065
5066
|
config: e.config,
|
|
5066
5067
|
"config-card-doc": e.configCardDoc,
|
|
@@ -5077,7 +5078,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
5077
5078
|
}
|
|
5078
5079
|
});
|
|
5079
5080
|
export {
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5081
|
+
Vl as ConsumerGroupConfigCard,
|
|
5082
|
+
Dl as ConsumerGroupForm,
|
|
5083
|
+
Pl as ConsumerGroupList
|
|
5083
5084
|
};
|