@kong-ui-public/entities-consumer-groups 2.3.9 → 2.3.10-pr.1069.588c7d8c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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 D, 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 _r, onUnmounted as wr, 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), w = m(n);
|
|
368
|
+
let h = `${e.apiBaseUrl}${w}`;
|
|
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
|
+
}, _ = F(""), L = async (v) => {
|
|
381
|
+
var S, V, re;
|
|
382
|
+
if (_.value !== v)
|
|
383
|
+
if (_.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
|
+
((V = R == null ? void 0 : R.response) == null ? void 0 : V.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 _n(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 wn(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((w, h) => {
|
|
494
|
+
f.searchParams.append(h, w);
|
|
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 wn(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 = _n(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 wn = /^[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(wn);
|
|
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 _n = /^[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) && wn.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: _n,
|
|
623
623
|
useHelpers: kn,
|
|
624
624
|
useStringHelpers: Jr,
|
|
625
625
|
useI18n: Tt,
|
|
@@ -642,7 +642,7 @@ const ce = {
|
|
|
642
642
|
}, so = (e) => (hn("data-v-e7863582"), 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__ */ D("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({
|
|
@@ -802,7 +802,7 @@ const ce = {
|
|
|
802
802
|
l.value = r.tooltip;
|
|
803
803
|
}, 1800);
|
|
804
804
|
}, y = (f) => {
|
|
805
|
-
var
|
|
805
|
+
var w, 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 = ((w = r.uuid) == null ? void 0 : w.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, w) => {
|
|
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
|
+
D("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
|
+
D("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
|
+
D("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
|
+
}), _e = (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__ */ _e(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
|
+
}), _o = /* @__PURE__ */ _e(ko, [["__scopeId", "data-v-c96811e5"]]), wo = /* @__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: wo, InternalLinkItem: _o }
|
|
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((w) => ({
|
|
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: (w) => {
|
|
1082
|
+
r("navigation-click", w);
|
|
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 (w, h) => {
|
|
1123
|
+
const A = q("KLabel"), b = q("KBadge"), _ = q("KTooltip");
|
|
1124
1124
|
return d(), j("div", $o, [
|
|
1125
|
-
|
|
1125
|
+
D("div", {
|
|
1126
1126
|
class: "config-card-details-label",
|
|
1127
1127
|
"data-testid": `${e.item.key}-label`
|
|
1128
1128
|
}, [
|
|
1129
|
-
X(
|
|
1129
|
+
X(w.$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
|
+
D("div", {
|
|
1140
1140
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1141
1141
|
}, [
|
|
1142
|
-
X(
|
|
1142
|
+
X(w.$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
|
+
D("div", {
|
|
1153
1153
|
class: "config-card-details-value",
|
|
1154
1154
|
"data-testid": `${e.item.key}-property-value`
|
|
1155
1155
|
}, [
|
|
1156
|
-
X(
|
|
1156
|
+
X(w.$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(_, {
|
|
1217
1217
|
key: 4,
|
|
1218
1218
|
label: m(f) ? e.item.value : ""
|
|
1219
1219
|
}, {
|
|
1220
1220
|
default: g(() => [
|
|
1221
|
-
|
|
1221
|
+
D("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__ */ _e(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 _a = /^[-+]?[0-9]+e/;
|
|
1699
|
+
function wa(e, n) {
|
|
1700
1700
|
var t;
|
|
1701
1701
|
if (isNaN(e))
|
|
1702
1702
|
switch (n) {
|
|
@@ -1727,7 +1727,7 @@ function _a(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), _a.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: wa,
|
|
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, w = /* @__PURE__ */ Object.create(null), h, A, b, _;
|
|
2109
|
+
if (_ = e.input.charCodeAt(e.position), _ === 91)
|
|
2110
2110
|
p = 93, f = !1, s = [];
|
|
2111
|
-
else if (
|
|
2111
|
+
else if (_ === 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), _ = e.input.charCodeAt(++e.position); _ !== 0; ) {
|
|
2116
|
+
if (le(e, !0, n), _ = e.input.charCodeAt(e.position), _ === 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 ? _ === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), A = h = b = null, c = y = !1, _ === 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), _ = e.input.charCodeAt(e.position), (y || e.line === r) && _ === 58 && (c = !0, _ = e.input.charCodeAt(++e.position), le(e, !0, n), Ge(e, n, at, !1, !0), b = e.result), f ? Re(e, s, w, A, h, b, r, o, i) : c ? s.push(Re(e, null, w, A, h, b, r, o, i)) : s.push(h), le(e, !0, n), _ = e.input.charCodeAt(e.position), _ === 44 ? (t = !0, _ = 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, w = null, h = null, A = !1, b = !1, _;
|
|
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), _ = e.input.charCodeAt(e.position); _ !== 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, (_ === 63 || _ === 58) && be(r))
|
|
2191
|
+
_ === 63 ? (A && (Re(e, c, y, f, w, null, a, s, l), f = w = 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, _ = 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 (_ = e.input.charCodeAt(e.position); qe(_); )
|
|
2197
|
+
_ = e.input.charCodeAt(++e.position);
|
|
2198
|
+
if (_ === 58)
|
|
2199
|
+
_ = e.input.charCodeAt(++e.position), be(_) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (Re(e, c, y, f, w, null, a, s, l), f = w = h = null), b = !0, A = !1, o = !1, f = e.tag, w = 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 ? w = e.result : h = e.result), A || (Re(e, c, y, f, w, h, a, s, l), f = w = h = null), le(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > n) && _ !== 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, w, 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, w, 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 (w = e.implicitTypes[c], w.resolve(e.result)) {
|
|
2264
|
+
e.result = w.construct(e.result), e.tag = w.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
|
+
w = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2270
2270
|
else
|
|
2271
|
-
for (
|
|
2271
|
+
for (w = 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
|
+
w = f[c];
|
|
2274
2274
|
break;
|
|
2275
2275
|
}
|
|
2276
|
-
|
|
2276
|
+
w || M(e, "unknown tag !<" + e.tag + ">"), e.result !== null && w.kind !== e.kind && M(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + w.kind + '", not "' + e.kind + '"'), w.resolve(e.result, e.tag) ? (e.result = w.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, _i = 61, wi = 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 _t(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 !== _i && e !== wi && 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, wt = 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, w = -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 - w - 1 > r && e[w + 1] !== " ", w = 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 - w - 1 > r && e[w + 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 : wt : t > 9 && dr(e) ? De : a ? i === Qe ? De : wt : 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 wt:
|
|
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 += _t(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 += _t(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 += _t(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,7 +2800,7 @@ 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__ */ _e(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;
|
|
@@ -2808,7 +2808,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
2808
2808
|
}, ys = (e) => (hn("data-v-44d910d6"), 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__ */ D("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-44d910d6"]]),
|
|
2907
|
+
}), ks = /* @__PURE__ */ gs(Cs, [["__scopeId", "data-v-44d910d6"]]), _s = { "data-testid": "config-card-title" }, ws = { 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
|
+
}, w = F(!1), h = F(!1), A = F(""), b = F({}), _ = 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 = _.value) == null ? void 0 : C.filter((T) => T.section === ke.Basic),
|
|
3097
|
+
advanced: (G = _.value) == null ? void 0 : G.filter((T) => T.section === ke.Advanced),
|
|
3098
|
+
plugin: (I = L.value) == null ? void 0 : I.concat((K = _.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
|
+
}), V = (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(w, (C) => {
|
|
3111
3111
|
r("loading", C);
|
|
3112
3112
|
}, { immediate: !0 }), dt(async () => {
|
|
3113
|
-
h.value = !1,
|
|
3113
|
+
h.value = !1, w.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
|
+
w.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
|
+
D("div", ws, [
|
|
3137
3137
|
X(C.$slots, "actions", {}, void 0, !0),
|
|
3138
3138
|
e.config.jsonYamlEnabled ? (d(), P(K, {
|
|
3139
3139
|
key: 0,
|
|
@@ -3147,7 +3147,6 @@ 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",
|
|
3151
3150
|
"data-testid": "select-config-format",
|
|
3152
3151
|
items: p,
|
|
3153
3152
|
onChange: y
|
|
@@ -3159,7 +3158,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3159
3158
|
"data-testid": "book-icon"
|
|
3160
3159
|
}, {
|
|
3161
3160
|
default: g(() => [
|
|
3162
|
-
|
|
3161
|
+
D("a", {
|
|
3163
3162
|
href: e.configCardDoc,
|
|
3164
3163
|
rel: "noopener",
|
|
3165
3164
|
target: "_blank"
|
|
@@ -3171,7 +3170,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3171
3170
|
})) : z("", !0),
|
|
3172
3171
|
e.config.jsonYamlEnabled ? z("", !0) : (d(), P(O, { key: 3 }, {
|
|
3173
3172
|
default: g(({ copyToClipboard: te }) => [
|
|
3174
|
-
!
|
|
3173
|
+
!w.value && !h.value ? (d(), P(T, {
|
|
3175
3174
|
key: 0,
|
|
3176
3175
|
appearance: "tertiary",
|
|
3177
3176
|
"data-testid": "json-copy-button",
|
|
@@ -3188,7 +3187,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3188
3187
|
])
|
|
3189
3188
|
]),
|
|
3190
3189
|
default: g(() => [
|
|
3191
|
-
|
|
3190
|
+
w.value ? (d(), P(B, {
|
|
3192
3191
|
key: 0,
|
|
3193
3192
|
"data-testid": "config-card-loader",
|
|
3194
3193
|
"table-columns": 2,
|
|
@@ -3199,7 +3198,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3199
3198
|
"is-error": ""
|
|
3200
3199
|
}, {
|
|
3201
3200
|
message: g(() => [
|
|
3202
|
-
|
|
3201
|
+
D("h3", null, N(A.value), 1)
|
|
3203
3202
|
]),
|
|
3204
3203
|
_: 1
|
|
3205
3204
|
})) : z("", !0),
|
|
@@ -3244,7 +3243,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3244
3243
|
]),
|
|
3245
3244
|
_: 2
|
|
3246
3245
|
}, [
|
|
3247
|
-
|
|
3246
|
+
V(ne) ? {
|
|
3248
3247
|
name: "label-tooltip",
|
|
3249
3248
|
fn: g(() => [
|
|
3250
3249
|
X(C.$slots, `${ne.key}-label-tooltip`, { row: ne }, void 0, !0)
|
|
@@ -3260,7 +3259,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3260
3259
|
e.hideTitle ? void 0 : {
|
|
3261
3260
|
name: "title",
|
|
3262
3261
|
fn: g(() => [
|
|
3263
|
-
|
|
3262
|
+
D("div", _s, [
|
|
3264
3263
|
X(C.$slots, "title", {}, () => [
|
|
3265
3264
|
Z(N(m(a)("baseConfigCard.title")), 1)
|
|
3266
3265
|
], !0)
|
|
@@ -3271,7 +3270,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3271
3270
|
]), 1024);
|
|
3272
3271
|
};
|
|
3273
3272
|
}
|
|
3274
|
-
}), js = /* @__PURE__ */
|
|
3273
|
+
}), js = /* @__PURE__ */ _e($s, [["__scopeId", "data-v-3fd4a3a4"]]), Ms = {
|
|
3275
3274
|
class: "form-actions",
|
|
3276
3275
|
"data-testid": "form-actions"
|
|
3277
3276
|
}, Os = { key: 0 }, Es = /* @__PURE__ */ ae({
|
|
@@ -3331,17 +3330,17 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3331
3330
|
var t;
|
|
3332
3331
|
const r = n, o = e, i = At(), { i18n: { t: a } } = ce.useI18n(), { getMessageFromError: s } = ce.useErrors(), { axiosInstance: l } = ce.useAxios({
|
|
3333
3332
|
headers: (t = o.config) == null ? void 0 : t.requestHeaders
|
|
3334
|
-
}), u = F(!1), p = F(!1), c = F(""), y = x(() => o.canSubmit === !1 || o.isReadonly), f = F(!1),
|
|
3333
|
+
}), u = F(!1), p = F(!1), c = F(""), y = x(() => o.canSubmit === !1 || o.isReadonly), f = F(!1), w = x(() => {
|
|
3335
3334
|
var v, S;
|
|
3336
|
-
let
|
|
3337
|
-
return o.config.app === "konnect" ?
|
|
3335
|
+
let V = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
3336
|
+
return o.config.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((v = o.config) == null ? void 0 : v.controlPlaneId) || "") : o.config.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, (S = o.config) != null && S.workspace ? `/${o.config.workspace}` : "")), o.editId ? (V = V.replace(/{id}/gi, o.editId), V) : (V = V.replace(/\/{id}/gi, ""), V);
|
|
3338
3337
|
}), h = () => {
|
|
3339
3338
|
f.value = !f.value;
|
|
3340
3339
|
}, A = () => {
|
|
3341
3340
|
o.config.cancelRoute ? i.push(o.config.cancelRoute) : b();
|
|
3342
3341
|
}, b = () => {
|
|
3343
3342
|
r("cancel");
|
|
3344
|
-
},
|
|
3343
|
+
}, _ = () => {
|
|
3345
3344
|
y.value || r("submit");
|
|
3346
3345
|
}, L = F([
|
|
3347
3346
|
{
|
|
@@ -3359,7 +3358,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3359
3358
|
if (o.editId)
|
|
3360
3359
|
try {
|
|
3361
3360
|
p.value = !1, u.value = !0;
|
|
3362
|
-
const { data: v } = await l.get(
|
|
3361
|
+
const { data: v } = await l.get(w.value);
|
|
3363
3362
|
r("fetch:success", v);
|
|
3364
3363
|
} catch (v) {
|
|
3365
3364
|
const S = s(v);
|
|
@@ -3368,10 +3367,10 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3368
3367
|
u.value = !1;
|
|
3369
3368
|
}
|
|
3370
3369
|
}), (v, S) => {
|
|
3371
|
-
const
|
|
3370
|
+
const V = q("KSkeleton"), re = q("KEmptyState"), R = q("KAlert"), C = q("KButton"), G = q("KTabs"), K = q("KSlideout"), I = q("KCard");
|
|
3372
3371
|
return d(), P(I, { class: "kong-ui-entity-base-form" }, {
|
|
3373
3372
|
default: g(() => [
|
|
3374
|
-
u.value ? (d(), P(
|
|
3373
|
+
u.value ? (d(), P(V, {
|
|
3375
3374
|
key: 0,
|
|
3376
3375
|
type: "form"
|
|
3377
3376
|
})) : p.value ? (d(), P(re, {
|
|
@@ -3382,14 +3381,14 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3382
3381
|
"is-error": !0
|
|
3383
3382
|
}, {
|
|
3384
3383
|
message: g(() => [
|
|
3385
|
-
|
|
3384
|
+
D("h3", null, N(c.value), 1)
|
|
3386
3385
|
]),
|
|
3387
3386
|
_: 1
|
|
3388
3387
|
}, 8, ["cta-text"])) : (d(), j("form", {
|
|
3389
3388
|
key: 2,
|
|
3390
3389
|
"data-testid": "form-content",
|
|
3391
3390
|
onReset: rt(b, ["prevent"]),
|
|
3392
|
-
onSubmit: rt(
|
|
3391
|
+
onSubmit: rt(_, ["prevent"])
|
|
3393
3392
|
}, [
|
|
3394
3393
|
X(v.$slots, "default", {}, void 0, !0),
|
|
3395
3394
|
e.errorMessage ? (d(), P(R, {
|
|
@@ -3398,7 +3397,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3398
3397
|
appearance: "danger",
|
|
3399
3398
|
"data-testid": "form-error"
|
|
3400
3399
|
}, null, 8, ["alert-message"])) : z("", !0),
|
|
3401
|
-
|
|
3400
|
+
D("div", Ms, [
|
|
3402
3401
|
X(v.$slots, "form-actions", {}, () => [
|
|
3403
3402
|
e.config.jsonYamlFormsEnabled ? (d(), j("div", Os, [
|
|
3404
3403
|
E(C, {
|
|
@@ -3447,7 +3446,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3447
3446
|
onClose: S[1] || (S[1] = (T) => h())
|
|
3448
3447
|
}, {
|
|
3449
3448
|
default: g(() => [
|
|
3450
|
-
|
|
3449
|
+
D("div", null, N(m(a)("baseForm.configuration.message")), 1),
|
|
3451
3450
|
E(G, {
|
|
3452
3451
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3453
3452
|
tabs: L.value
|
|
@@ -3455,7 +3454,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3455
3454
|
json: g(() => [
|
|
3456
3455
|
E(xn, {
|
|
3457
3456
|
config: e.config,
|
|
3458
|
-
"fetcher-url":
|
|
3457
|
+
"fetcher-url": w.value,
|
|
3459
3458
|
"json-record": o.formFields,
|
|
3460
3459
|
"request-method": o.editId ? "put" : "post"
|
|
3461
3460
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
@@ -3475,7 +3474,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3475
3474
|
});
|
|
3476
3475
|
};
|
|
3477
3476
|
}
|
|
3478
|
-
}), Fs = /* @__PURE__ */
|
|
3477
|
+
}), Fs = /* @__PURE__ */ _e(Es, [["__scopeId", "data-v-4ef70725"]]), Ns = {
|
|
3479
3478
|
key: 0,
|
|
3480
3479
|
"data-testid": "first-col"
|
|
3481
3480
|
}, Ks = /* @__PURE__ */ ae({
|
|
@@ -3522,10 +3521,10 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3522
3521
|
}
|
|
3523
3522
|
},
|
|
3524
3523
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3525
|
-
),
|
|
3526
|
-
return
|
|
3524
|
+
), w = x(() => o.value ? u.value > p.value : !1);
|
|
3525
|
+
return _r(() => {
|
|
3527
3526
|
s();
|
|
3528
|
-
}),
|
|
3527
|
+
}), wr(() => {
|
|
3529
3528
|
f();
|
|
3530
3529
|
}), (h, A) => {
|
|
3531
3530
|
const b = q("KTooltip");
|
|
@@ -3536,7 +3535,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3536
3535
|
}, [
|
|
3537
3536
|
o.value ? (d(), j("span", Ns, [
|
|
3538
3537
|
E(b, {
|
|
3539
|
-
label:
|
|
3538
|
+
label: w.value ? c.value : "",
|
|
3540
3539
|
"max-width": "300",
|
|
3541
3540
|
placement: "bottomStart"
|
|
3542
3541
|
}, {
|
|
@@ -3549,7 +3548,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3549
3548
|
], 512);
|
|
3550
3549
|
};
|
|
3551
3550
|
}
|
|
3552
|
-
}), qs = /* @__PURE__ */
|
|
3551
|
+
}), qs = /* @__PURE__ */ _e(Ks, [["__scopeId", "data-v-e42a20c9"]]), Bs = { class: "toolbar-container" }, Ls = {
|
|
3553
3552
|
key: 0,
|
|
3554
3553
|
class: "toolbar-button-container"
|
|
3555
3554
|
}, Us = ["data-testid"], Ps = /* @__PURE__ */ ae({
|
|
@@ -3663,7 +3662,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3663
3662
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3664
3663
|
setup(e, { emit: n }) {
|
|
3665
3664
|
const t = e, r = n, { i18n: { t: o } } = ce.useI18n(), i = x(() => {
|
|
3666
|
-
var S,
|
|
3665
|
+
var S, V;
|
|
3667
3666
|
return typeof t.errorMessage == "string" ? {
|
|
3668
3667
|
hasError: !!t.errorMessage,
|
|
3669
3668
|
title: t.errorMessage,
|
|
@@ -3671,15 +3670,15 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3671
3670
|
} : {
|
|
3672
3671
|
hasError: !!t.errorMessage,
|
|
3673
3672
|
title: (S = t.errorMessage) == null ? void 0 : S.title,
|
|
3674
|
-
message: (
|
|
3673
|
+
message: (V = t.errorMessage) == null ? void 0 : V.message
|
|
3675
3674
|
};
|
|
3676
3675
|
}), a = x(() => t.cacheIdentifier || t.preferencesStorageKey), s = (S) => S.hasData || !!t.query, l = x(() => {
|
|
3677
3676
|
const S = [];
|
|
3678
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
3679
|
-
const re = t.tableHeaders[
|
|
3677
|
+
return Object.keys(t.tableHeaders).forEach((V) => {
|
|
3678
|
+
const re = t.tableHeaders[V];
|
|
3680
3679
|
S.push({
|
|
3681
|
-
label: re.label ??
|
|
3682
|
-
key:
|
|
3680
|
+
label: re.label ?? V,
|
|
3681
|
+
key: V,
|
|
3683
3682
|
sortable: re.sortable ?? !1
|
|
3684
3683
|
});
|
|
3685
3684
|
}), t.enableEntityActions && S.push({
|
|
@@ -3691,28 +3690,28 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3691
3690
|
"data-testid": S.name,
|
|
3692
3691
|
...t.rowAttributes(S)
|
|
3693
3692
|
}), p = F({}), c = (S) => {
|
|
3694
|
-
var
|
|
3695
|
-
return (
|
|
3693
|
+
var V;
|
|
3694
|
+
return (V = p.value) == null ? void 0 : V.$el.querySelector(`[data-rowid="${S.id}"]`);
|
|
3696
3695
|
}, y = (S) => {
|
|
3697
|
-
const
|
|
3696
|
+
const V = {
|
|
3698
3697
|
"data-testid": S.headerKey,
|
|
3699
3698
|
...t.cellAttributes(S)
|
|
3700
3699
|
};
|
|
3701
|
-
return S.colIndex === 0 && (
|
|
3700
|
+
return S.colIndex === 0 && (V.style = {
|
|
3702
3701
|
maxWidth: "250px",
|
|
3703
3702
|
overflowX: "hidden",
|
|
3704
3703
|
textOverflow: "ellipsis"
|
|
3705
|
-
}),
|
|
3704
|
+
}), V;
|
|
3706
3705
|
}, f = () => {
|
|
3707
|
-
r("empty-state-cta-clicked"),
|
|
3708
|
-
},
|
|
3706
|
+
r("empty-state-cta-clicked"), w();
|
|
3707
|
+
}, w = () => {
|
|
3709
3708
|
r("clear-search-input");
|
|
3710
|
-
}, h = x(() => t.disableRowClick ? void 0 : (S,
|
|
3711
|
-
r("click:row",
|
|
3709
|
+
}, h = x(() => t.disableRowClick ? void 0 : (S, V) => {
|
|
3710
|
+
r("click:row", V);
|
|
3712
3711
|
}), A = (S) => {
|
|
3713
3712
|
r("sort", S);
|
|
3714
|
-
}, { setTablePreferences: b, getTablePreferences:
|
|
3715
|
-
const S =
|
|
3713
|
+
}, { setTablePreferences: b, getTablePreferences: _ } = Or(), L = x(() => {
|
|
3714
|
+
const S = _(t.preferencesStorageKey);
|
|
3716
3715
|
return {
|
|
3717
3716
|
...t.initialFetcherParams,
|
|
3718
3717
|
...S
|
|
@@ -3720,7 +3719,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3720
3719
|
}), v = (S) => {
|
|
3721
3720
|
t.preferencesStorageKey && b(t.preferencesStorageKey, S);
|
|
3722
3721
|
};
|
|
3723
|
-
return (S,
|
|
3722
|
+
return (S, V) => {
|
|
3724
3723
|
const re = q("KIcon"), R = q("KButton"), C = q("KDropdown"), G = q("KTable"), K = q("KCard");
|
|
3725
3724
|
return d(), P(K, {
|
|
3726
3725
|
class: "kong-ui-entity-base-table",
|
|
@@ -3756,11 +3755,11 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3756
3755
|
"search-input": e.query,
|
|
3757
3756
|
onKtableEmptyStateCtaClicked: f,
|
|
3758
3757
|
"onRow:click": h.value,
|
|
3759
|
-
onSort:
|
|
3758
|
+
onSort: V[0] || (V[0] = (I) => A(I)),
|
|
3760
3759
|
"onUpdate:tablePreferences": v
|
|
3761
3760
|
}, je({
|
|
3762
3761
|
toolbar: g(({ state: I }) => [
|
|
3763
|
-
Je(
|
|
3762
|
+
Je(D("div", Bs, [
|
|
3764
3763
|
X(S.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3765
3764
|
S.$slots["toolbar-button"] ? (d(), j("div", Ls, [
|
|
3766
3765
|
X(S.$slots, "toolbar-button", {}, void 0, !0)
|
|
@@ -3770,7 +3769,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3770
3769
|
])
|
|
3771
3770
|
]),
|
|
3772
3771
|
actions: g(({ row: I, rowKey: T, rowValue: O }) => [
|
|
3773
|
-
|
|
3772
|
+
D("div", {
|
|
3774
3773
|
class: "actions-container",
|
|
3775
3774
|
"data-testid": I.name
|
|
3776
3775
|
}, [
|
|
@@ -3833,7 +3832,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3833
3832
|
}, 8, ["title"]);
|
|
3834
3833
|
};
|
|
3835
3834
|
}
|
|
3836
|
-
}), Ds = /* @__PURE__ */
|
|
3835
|
+
}), Ds = /* @__PURE__ */ _e(Ps, [["__scopeId", "data-v-2b9bf3dd"]]), Vs = {
|
|
3837
3836
|
key: 0,
|
|
3838
3837
|
class: "kong-ui-entity-delete-error"
|
|
3839
3838
|
}, Rs = {
|
|
@@ -3918,14 +3917,14 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3918
3917
|
r.entityName ? {
|
|
3919
3918
|
name: "entityName",
|
|
3920
3919
|
fn: g(() => [
|
|
3921
|
-
|
|
3920
|
+
D("strong", null, N(r.entityName), 1)
|
|
3922
3921
|
]),
|
|
3923
3922
|
key: "0"
|
|
3924
3923
|
} : void 0
|
|
3925
3924
|
]), 1032, ["keypath"]),
|
|
3926
3925
|
r.description || l.$slots.description ? (d(), j("div", Rs, [
|
|
3927
3926
|
X(l.$slots, "description", {}, () => [
|
|
3928
|
-
|
|
3927
|
+
D("p", null, N(r.description), 1)
|
|
3929
3928
|
], !0)
|
|
3930
3929
|
])) : z("", !0)
|
|
3931
3930
|
]),
|
|
@@ -3933,7 +3932,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3933
3932
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3934
3933
|
};
|
|
3935
3934
|
}
|
|
3936
|
-
}), Hs = /* @__PURE__ */
|
|
3935
|
+
}), Hs = /* @__PURE__ */ _e(Gs, [["__scopeId", "data-v-1c9a2a07"]]), zs = {
|
|
3937
3936
|
fill: "none",
|
|
3938
3937
|
height: "20",
|
|
3939
3938
|
viewBox: "0 0 20 20",
|
|
@@ -3957,15 +3956,15 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3957
3956
|
},
|
|
3958
3957
|
setup(e) {
|
|
3959
3958
|
return (n, t) => (d(), j("svg", zs, [
|
|
3960
|
-
|
|
3961
|
-
|
|
3959
|
+
D("mask", Js, [
|
|
3960
|
+
D("rect", {
|
|
3962
3961
|
fill: e.color,
|
|
3963
3962
|
height: "20",
|
|
3964
3963
|
width: "20"
|
|
3965
3964
|
}, null, 8, Ys)
|
|
3966
3965
|
]),
|
|
3967
|
-
|
|
3968
|
-
|
|
3966
|
+
D("g", Ws, [
|
|
3967
|
+
D("path", {
|
|
3969
3968
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3970
3969
|
fill: e.color
|
|
3971
3970
|
}, null, 8, Zs)
|
|
@@ -3997,19 +3996,19 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
3997
3996
|
setup(e, { emit: n }) {
|
|
3998
3997
|
const { i18n: { t } } = ce.useI18n(), r = e, o = n, i = F(!1), a = F({}), s = x(() => {
|
|
3999
3998
|
const b = [];
|
|
4000
|
-
return new URLSearchParams(r.modelValue).forEach((
|
|
4001
|
-
|
|
3999
|
+
return new URLSearchParams(r.modelValue).forEach((_, L) => {
|
|
4000
|
+
_ !== "" && b.push(L);
|
|
4002
4001
|
}), b;
|
|
4003
4002
|
}), l = x(() => {
|
|
4004
4003
|
const b = r.config.fields;
|
|
4005
|
-
return Object.keys(b).filter((
|
|
4006
|
-
label: b[
|
|
4007
|
-
value:
|
|
4004
|
+
return Object.keys(b).filter((_) => b[_].searchable).map((_) => ({
|
|
4005
|
+
label: b[_].label || _,
|
|
4006
|
+
value: _
|
|
4008
4007
|
}));
|
|
4009
4008
|
});
|
|
4010
4009
|
Te(() => r.modelValue, (b) => {
|
|
4011
|
-
a.value = {}, new URLSearchParams(b).forEach((
|
|
4012
|
-
a.value[L] =
|
|
4010
|
+
a.value = {}, new URLSearchParams(b).forEach((_, L) => {
|
|
4011
|
+
a.value[L] = _;
|
|
4013
4012
|
});
|
|
4014
4013
|
});
|
|
4015
4014
|
const u = () => {
|
|
@@ -4017,15 +4016,15 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4017
4016
|
}, p = (b) => {
|
|
4018
4017
|
o("update:modelValue", b);
|
|
4019
4018
|
}, c = (b) => `filter-${b}`, y = (b) => {
|
|
4020
|
-
var
|
|
4021
|
-
return (((L = (
|
|
4019
|
+
var _, L;
|
|
4020
|
+
return (((L = (_ = r.config.schema) == null ? void 0 : _[b]) == null ? void 0 : L.values) ?? []).map((v) => ({
|
|
4022
4021
|
value: v,
|
|
4023
4022
|
label: v
|
|
4024
4023
|
}));
|
|
4025
4024
|
}, f = (b) => {
|
|
4026
|
-
var
|
|
4027
|
-
return ((L = (
|
|
4028
|
-
},
|
|
4025
|
+
var _, L;
|
|
4026
|
+
return ((L = (_ = r.config.schema) == null ? void 0 : _[b]) == null ? void 0 : L.type) ?? "text";
|
|
4027
|
+
}, w = (b) => {
|
|
4029
4028
|
a.value = {
|
|
4030
4029
|
...a.value,
|
|
4031
4030
|
[b]: ""
|
|
@@ -4033,11 +4032,11 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4033
4032
|
}, h = () => {
|
|
4034
4033
|
a.value = {}, A(!0);
|
|
4035
4034
|
}, A = (b = !1) => {
|
|
4036
|
-
const
|
|
4037
|
-
b && (i.value = !1), o("update:modelValue", new URLSearchParams(
|
|
4035
|
+
const _ = Object.keys(a.value).reduce((L, v) => (a.value[v] && (L[v] = `${a.value[v]}`), L), {});
|
|
4036
|
+
b && (i.value = !1), o("update:modelValue", new URLSearchParams(_).toString());
|
|
4038
4037
|
};
|
|
4039
|
-
return (b,
|
|
4040
|
-
const L = q("KInput"), v = q("KButton"), S = q("KSelect"),
|
|
4038
|
+
return (b, _) => {
|
|
4039
|
+
const L = q("KInput"), v = q("KButton"), S = q("KSelect"), V = q("KMenuItem"), re = q("KMenu");
|
|
4041
4040
|
return e.config.isExactMatch ? (d(), P(L, {
|
|
4042
4041
|
key: 0,
|
|
4043
4042
|
autocomplete: "off",
|
|
@@ -4063,7 +4062,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4063
4062
|
]),
|
|
4064
4063
|
_: 1
|
|
4065
4064
|
}),
|
|
4066
|
-
Je(
|
|
4065
|
+
Je(D("div", {
|
|
4067
4066
|
class: "kong-ui-entity-filter-backdrop",
|
|
4068
4067
|
onClick: u
|
|
4069
4068
|
}, null, 512), [
|
|
@@ -4071,16 +4070,16 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4071
4070
|
]),
|
|
4072
4071
|
Je(E(re, { class: "kong-ui-entity-filter-menu" }, {
|
|
4073
4072
|
body: g(() => [
|
|
4074
|
-
(d(!0), j(Ce, null, ve(l.value, (R, C) => (d(), P(
|
|
4073
|
+
(d(!0), j(Ce, null, ve(l.value, (R, C) => (d(), P(V, {
|
|
4075
4074
|
key: R.value,
|
|
4076
4075
|
"data-testid": R.value,
|
|
4077
4076
|
expandable: "",
|
|
4078
4077
|
"last-menu-item": C === l.value.length - 1
|
|
4079
4078
|
}, {
|
|
4080
4079
|
itemTitle: g(() => [
|
|
4081
|
-
|
|
4080
|
+
D("span", Xs, [
|
|
4082
4081
|
Z(N(R.label) + " ", 1),
|
|
4083
|
-
Je(
|
|
4082
|
+
Je(D("span", el, null, 512), [
|
|
4084
4083
|
[Ye, s.value.includes(R.value)]
|
|
4085
4084
|
])
|
|
4086
4085
|
])
|
|
@@ -4088,8 +4087,8 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4088
4087
|
itemBody: g(() => {
|
|
4089
4088
|
var G, K;
|
|
4090
4089
|
return [
|
|
4091
|
-
|
|
4092
|
-
|
|
4090
|
+
D("div", tl, [
|
|
4091
|
+
D("label", {
|
|
4093
4092
|
class: "menu-item-label",
|
|
4094
4093
|
for: c(R.value)
|
|
4095
4094
|
}, N(m(t)("filter.fieldLabel")), 9, nl),
|
|
@@ -4098,7 +4097,6 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4098
4097
|
id: c(R.value),
|
|
4099
4098
|
modelValue: a.value[R.value],
|
|
4100
4099
|
"onUpdate:modelValue": (I) => a.value[R.value] = I,
|
|
4101
|
-
appearance: "select",
|
|
4102
4100
|
items: y(R.value),
|
|
4103
4101
|
placeholder: m(t)("filter.selectPlaceholder")
|
|
4104
4102
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (d(), P(L, {
|
|
@@ -4111,12 +4109,12 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4111
4109
|
type: f(R.value)
|
|
4112
4110
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4113
4111
|
]),
|
|
4114
|
-
|
|
4112
|
+
D("div", rl, [
|
|
4115
4113
|
E(v, {
|
|
4116
4114
|
appearance: "tertiary",
|
|
4117
4115
|
"data-testid": "apply-filter",
|
|
4118
4116
|
size: "small",
|
|
4119
|
-
onClick:
|
|
4117
|
+
onClick: _[0] || (_[0] = (I) => A(!0))
|
|
4120
4118
|
}, {
|
|
4121
4119
|
default: g(() => [
|
|
4122
4120
|
Z(N(m(t)("filter.applyButtonText")), 1)
|
|
@@ -4127,7 +4125,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4127
4125
|
appearance: "tertiary",
|
|
4128
4126
|
"data-testid": "clear-filter",
|
|
4129
4127
|
size: "small",
|
|
4130
|
-
onClick: (I) =>
|
|
4128
|
+
onClick: (I) => w(R.value)
|
|
4131
4129
|
}, {
|
|
4132
4130
|
default: g(() => [
|
|
4133
4131
|
Z(N(m(t)("filter.clearButtonText")), 1)
|
|
@@ -4141,7 +4139,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4141
4139
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
4142
4140
|
]),
|
|
4143
4141
|
actionButton: g(() => [
|
|
4144
|
-
|
|
4142
|
+
D("div", ol, [
|
|
4145
4143
|
E(v, {
|
|
4146
4144
|
appearance: "tertiary",
|
|
4147
4145
|
size: "small",
|
|
@@ -4161,7 +4159,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4161
4159
|
]));
|
|
4162
4160
|
};
|
|
4163
4161
|
}
|
|
4164
|
-
}), il = /* @__PURE__ */
|
|
4162
|
+
}), il = /* @__PURE__ */ _e(al, [["__scopeId", "data-v-e9512e8f"]]), tt = /* @__PURE__ */ ae({
|
|
4165
4163
|
__name: "PermissionsWrapper",
|
|
4166
4164
|
props: {
|
|
4167
4165
|
/**
|
|
@@ -4229,7 +4227,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4229
4227
|
return (t, r) => (d(), j("fieldset", {
|
|
4230
4228
|
class: Ee(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4231
4229
|
}, [
|
|
4232
|
-
|
|
4230
|
+
D("div", sl, [
|
|
4233
4231
|
e.hideInfoHeader ? z("", !0) : (d(), j("div", {
|
|
4234
4232
|
key: 0,
|
|
4235
4233
|
class: Ee(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
@@ -4237,20 +4235,20 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4237
4235
|
e.title ? (d(), j("h4", ll, N(e.title), 1)) : z("", !0),
|
|
4238
4236
|
e.description || m(n).description ? (d(), j("div", ul, [
|
|
4239
4237
|
X(t.$slots, "description", {}, () => [
|
|
4240
|
-
|
|
4238
|
+
D("p", null, N(e.description), 1)
|
|
4241
4239
|
], !0)
|
|
4242
4240
|
])) : z("", !0),
|
|
4243
4241
|
m(n).footer ? (d(), j("div", cl, [
|
|
4244
4242
|
X(t.$slots, "footer", {}, void 0, !0)
|
|
4245
4243
|
])) : z("", !0)
|
|
4246
4244
|
], 2)),
|
|
4247
|
-
|
|
4245
|
+
D("div", dl, [
|
|
4248
4246
|
X(t.$slots, "default", {}, void 0, !0)
|
|
4249
4247
|
])
|
|
4250
4248
|
])
|
|
4251
4249
|
], 2));
|
|
4252
4250
|
}
|
|
4253
|
-
}), mn = /* @__PURE__ */
|
|
4251
|
+
}), mn = /* @__PURE__ */ _e(pl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Kt, useDeleteUrlBuilder: fl, useErrors: ml, useExternalLinkCreator: Kl, useFetchUrlBuilder: ql, useFetcher: gl, useDebouncedFilter: yr, useStringHelpers: Bl, useHelpers: Ll, useGatewayFeatureSupported: Ul, useTruncationDetector: Pl } = ce, yl = { class: "add-to-group-form-container" }, hl = { class: "add-to-group-cta-text" }, vl = {
|
|
4254
4252
|
key: 0,
|
|
4255
4253
|
class: "kong-ui-entity-add-to-groups-error"
|
|
4256
4254
|
}, bl = { key: 0 }, Cl = /* @__PURE__ */ ae({
|
|
@@ -4288,7 +4286,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4288
4286
|
fetchedItemsKey: "data",
|
|
4289
4287
|
searchKeys: ["name", "id"]
|
|
4290
4288
|
}
|
|
4291
|
-
), f = x(() => p.value ? t("consumer_groups.errors.general") : ""),
|
|
4289
|
+
), f = x(() => p.value ? t("consumer_groups.errors.general") : ""), w = F(0), h = x(() => u.value === void 0), A = x(() => y.value.map((I) => ({
|
|
4292
4290
|
label: I.name,
|
|
4293
4291
|
value: I.id,
|
|
4294
4292
|
selected: a.value.includes(I.id),
|
|
@@ -4298,9 +4296,9 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4298
4296
|
var O;
|
|
4299
4297
|
const T = h.value ? y.value.find((B) => B.id === I) : (O = u.value) == null ? void 0 : O.find((B) => B.id === I);
|
|
4300
4298
|
return T ? T.name : I;
|
|
4301
|
-
},
|
|
4299
|
+
}, _ = () => {
|
|
4302
4300
|
S.value = "", L.value = [], C.value = [], o("cancel");
|
|
4303
|
-
}, L = F([]), v = F(!1), S = F(""),
|
|
4301
|
+
}, L = F([]), v = F(!1), S = F(""), V = async () => {
|
|
4304
4302
|
if (!a.value.length) {
|
|
4305
4303
|
S.value = "", C.value = [], o("cancel");
|
|
4306
4304
|
return;
|
|
@@ -4339,7 +4337,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4339
4337
|
}).filter(Boolean);
|
|
4340
4338
|
};
|
|
4341
4339
|
return Te(A, () => {
|
|
4342
|
-
|
|
4340
|
+
w.value++;
|
|
4343
4341
|
}, { immediate: !0, deep: !0 }), Te(() => r.visible, () => {
|
|
4344
4342
|
r.visible && c();
|
|
4345
4343
|
}, { immediate: !0 }), (I, T) => {
|
|
@@ -4350,12 +4348,12 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4350
4348
|
"data-testid": "add-to-group-modal",
|
|
4351
4349
|
"is-visible": e.visible,
|
|
4352
4350
|
title: m(t)("consumer_groups.consumers.add.title"),
|
|
4353
|
-
onCanceled:
|
|
4354
|
-
onProceed:
|
|
4351
|
+
onCanceled: _,
|
|
4352
|
+
onProceed: V
|
|
4355
4353
|
}, {
|
|
4356
4354
|
"body-content": g(() => [
|
|
4357
|
-
|
|
4358
|
-
|
|
4355
|
+
D("div", yl, [
|
|
4356
|
+
D("p", hl, N(m(t)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4359
4357
|
E(O, {
|
|
4360
4358
|
modelValue: a.value,
|
|
4361
4359
|
"onUpdate:modelValue": T[0] || (T[0] = (ee) => a.value = ee),
|
|
@@ -4374,11 +4372,11 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4374
4372
|
S.value || f.value || C.value.length ? (d(), j("div", vl, [
|
|
4375
4373
|
E(B, { appearance: "danger" }, {
|
|
4376
4374
|
alertMessage: g(() => [
|
|
4377
|
-
|
|
4375
|
+
D("p", null, N(m(t)("consumer_groups.errors.add")), 1),
|
|
4378
4376
|
C.value.length ? (d(), j("ul", bl, [
|
|
4379
4377
|
(d(!0), j(Ce, null, ve(C.value, (ee, te) => (d(), j("li", { key: te }, N(ee), 1))), 128))
|
|
4380
4378
|
])) : z("", !0),
|
|
4381
|
-
|
|
4379
|
+
D("div", null, N(S.value || f.value), 1)
|
|
4382
4380
|
]),
|
|
4383
4381
|
_: 1
|
|
4384
4382
|
})
|
|
@@ -4394,7 +4392,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4394
4392
|
for (const [r, o] of n)
|
|
4395
4393
|
t[r] = o;
|
|
4396
4394
|
return t;
|
|
4397
|
-
}, kl = /* @__PURE__ */ qt(Cl, [["__scopeId", "data-v-3808b4c0"]]),
|
|
4395
|
+
}, kl = /* @__PURE__ */ qt(Cl, [["__scopeId", "data-v-3808b4c0"]]), _l = { class: "kong-ui-entities-consumer-groups-list" }, wl = { key: 1 }, Il = /* @__PURE__ */ ae({
|
|
4398
4396
|
__name: "ConsumerGroupList",
|
|
4399
4397
|
props: {
|
|
4400
4398
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4449,7 +4447,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4449
4447
|
name: { label: i("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4450
4448
|
};
|
|
4451
4449
|
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 };
|
|
4452
|
-
const f = y,
|
|
4450
|
+
const f = y, w = ($) => ({
|
|
4453
4451
|
"data-testid": $.username ?? $.custom_id ?? $.id
|
|
4454
4452
|
}), h = x(() => {
|
|
4455
4453
|
var Y, se, he, Ie;
|
|
@@ -4471,9 +4469,9 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4471
4469
|
},
|
|
4472
4470
|
schema: r.config.filterSchema
|
|
4473
4471
|
};
|
|
4474
|
-
}),
|
|
4472
|
+
}), _ = x(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: L, fetcherState: v } = gl(r.config, h.value, _.value), S = () => {
|
|
4475
4473
|
A.value = "";
|
|
4476
|
-
},
|
|
4474
|
+
}, V = () => {
|
|
4477
4475
|
l.value++;
|
|
4478
4476
|
}, re = F(null), R = ($, Y) => {
|
|
4479
4477
|
const se = $.id;
|
|
@@ -4536,7 +4534,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4536
4534
|
Y || U(), l.value++, t("add:success", $);
|
|
4537
4535
|
}, J = () => {
|
|
4538
4536
|
u.value && k();
|
|
4539
|
-
}, H = F(void 0), fe = F(!1),
|
|
4537
|
+
}, H = F(void 0), fe = F(!1), we = F(""), me = ($) => {
|
|
4540
4538
|
H.value = $, fe.value = !0;
|
|
4541
4539
|
}, Ne = () => {
|
|
4542
4540
|
fe.value = !1, H.value = void 0;
|
|
@@ -4551,7 +4549,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4551
4549
|
const $ = et.value.replace(/{consumerGroupId}/gi, H.value.id);
|
|
4552
4550
|
await s.delete($), t("remove:success", H.value), Ne(), l.value++;
|
|
4553
4551
|
} catch ($) {
|
|
4554
|
-
|
|
4552
|
+
we.value = $.message || i("consumer_groups.errors.delete"), t("error", $);
|
|
4555
4553
|
} finally {
|
|
4556
4554
|
Bt.value = !1;
|
|
4557
4555
|
}
|
|
@@ -4577,7 +4575,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4577
4575
|
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"));
|
|
4578
4576
|
}), ($, Y) => {
|
|
4579
4577
|
const se = q("KButton"), he = q("KBadge"), Ie = q("KTruncate"), He = q("KDropdownItem"), Pt = q("KClipboardProvider"), vr = q("KPrompt");
|
|
4580
|
-
return d(), j("div",
|
|
4578
|
+
return d(), j("div", _l, [
|
|
4581
4579
|
E(m(Ds), {
|
|
4582
4580
|
"cache-identifier": e.cacheIdentifier,
|
|
4583
4581
|
"disable-pagination": u.value && !e.config.paginatedEndpoint,
|
|
@@ -4591,13 +4589,13 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4591
4589
|
"pagination-type": "offset",
|
|
4592
4590
|
"preferences-storage-key": p.value,
|
|
4593
4591
|
query: A.value,
|
|
4594
|
-
"row-attributes":
|
|
4592
|
+
"row-attributes": w,
|
|
4595
4593
|
"table-headers": m(f),
|
|
4596
4594
|
"use-action-outside": e.useActionOutside,
|
|
4597
4595
|
onClearSearchInput: S,
|
|
4598
4596
|
"onClick:row": Y[3] || (Y[3] = (Q) => G(Q)),
|
|
4599
4597
|
onEmptyStateCtaClicked: J,
|
|
4600
|
-
onSort:
|
|
4598
|
+
onSort: V
|
|
4601
4599
|
}, {
|
|
4602
4600
|
"toolbar-filter": g(() => [
|
|
4603
4601
|
u.value ? z("", !0) : (d(), P(m(il), {
|
|
@@ -4638,7 +4636,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4638
4636
|
}, 8, ["to"]))
|
|
4639
4637
|
]),
|
|
4640
4638
|
name: g(({ rowValue: Q }) => [
|
|
4641
|
-
|
|
4639
|
+
D("b", null, N(Q ?? "-"), 1)
|
|
4642
4640
|
]),
|
|
4643
4641
|
consumers_count: g(({ rowValue: Q }) => [
|
|
4644
4642
|
Z(N(Q ?? "-"), 1)
|
|
@@ -4658,7 +4656,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4658
4656
|
}, 1024))), 128))
|
|
4659
4657
|
]),
|
|
4660
4658
|
_: 2
|
|
4661
|
-
}, 1024)) : (d(), j("span",
|
|
4659
|
+
}, 1024)) : (d(), j("span", wl, "-"))
|
|
4662
4660
|
]),
|
|
4663
4661
|
actions: g(({ row: Q }) => [
|
|
4664
4662
|
E(Pt, null, {
|
|
@@ -4770,29 +4768,29 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4770
4768
|
tag: "p"
|
|
4771
4769
|
}, je({
|
|
4772
4770
|
consumerGroup: g(() => [
|
|
4773
|
-
|
|
4771
|
+
D("strong", null, N(H.value.name || H.value.id), 1)
|
|
4774
4772
|
]),
|
|
4775
4773
|
_: 2
|
|
4776
4774
|
}, [
|
|
4777
4775
|
e.config.consumerUsername ? {
|
|
4778
4776
|
name: "consumer",
|
|
4779
4777
|
fn: g(() => [
|
|
4780
|
-
|
|
4778
|
+
D("strong", null, N(e.config.consumerUsername), 1)
|
|
4781
4779
|
]),
|
|
4782
4780
|
key: "0"
|
|
4783
4781
|
} : void 0
|
|
4784
4782
|
]), 1032, ["keypath"]),
|
|
4785
|
-
|
|
4783
|
+
D("p", null, N(m(i)("consumer_groups.consumers.exit.description")), 1)
|
|
4786
4784
|
]),
|
|
4787
4785
|
_: 1
|
|
4788
4786
|
}, 8, ["is-visible", "title"])) : z("", !0)
|
|
4789
4787
|
]);
|
|
4790
4788
|
};
|
|
4791
4789
|
}
|
|
4792
|
-
}),
|
|
4790
|
+
}), Dl = /* @__PURE__ */ qt(Il, [["__scopeId", "data-v-5e849c87"]]), Al = { class: "kong-ui-entities-consumer-group-form" }, Sl = { class: "select-item-container" }, xl = { class: "select-item-label" }, Tl = {
|
|
4793
4791
|
key: 0,
|
|
4794
|
-
class: "select-item-
|
|
4795
|
-
},
|
|
4792
|
+
class: "select-item-description"
|
|
4793
|
+
}, $l = /* @__PURE__ */ ae({
|
|
4796
4794
|
__name: "ConsumerGroupForm",
|
|
4797
4795
|
props: {
|
|
4798
4796
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4834,7 +4832,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4834
4832
|
searchKeys: ["username", "custom_id", "id"]
|
|
4835
4833
|
}), { axiosInstance: f } = Kt({
|
|
4836
4834
|
headers: (Le = t.config) == null ? void 0 : Le.requestHeaders
|
|
4837
|
-
}), { getMessageFromError:
|
|
4835
|
+
}), { getMessageFromError: w } = ml(), h = x(() => y.value.map((k) => ({
|
|
4838
4836
|
label: k.username || k.custom_id,
|
|
4839
4837
|
value: k.id,
|
|
4840
4838
|
selected: a.fields.consumers.includes(k.id),
|
|
@@ -4843,19 +4841,19 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4843
4841
|
}))), A = x(() => {
|
|
4844
4842
|
var k, U;
|
|
4845
4843
|
return (U = Me.form[(k = t.config) == null ? void 0 : k.app]) == null ? void 0 : U.edit;
|
|
4846
|
-
}), b = x(() => t.consumerGroupId ? nt.Edit : nt.Create),
|
|
4847
|
-
var H, fe,
|
|
4844
|
+
}), b = x(() => t.consumerGroupId ? nt.Edit : nt.Create), _ = x(() => !!a.fields.name && !C.value), L = x(() => JSON.stringify(a.fields) !== JSON.stringify(s)), v = (k, U = "", ie = "") => {
|
|
4845
|
+
var H, fe, we, me, Ne, et;
|
|
4848
4846
|
let J = `${(H = t.config) == null ? void 0 : H.apiBaseUrl}${Me.form[(fe = t.config) == null ? void 0 : fe.app][k]}`;
|
|
4849
|
-
return ((
|
|
4847
|
+
return ((we = t.config) == null ? void 0 : we.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;
|
|
4850
4848
|
}, S = () => {
|
|
4851
4849
|
var k;
|
|
4852
4850
|
i.push(((k = t.config) == null ? void 0 : k.cancelRoute) || { name: "consumer-group-list" });
|
|
4853
|
-
},
|
|
4851
|
+
}, V = (k) => {
|
|
4854
4852
|
r("error", k);
|
|
4855
4853
|
}, re = (k) => {
|
|
4856
4854
|
r("loading", k);
|
|
4857
4855
|
}, R = async (k) => {
|
|
4858
|
-
var ie, J, H, fe,
|
|
4856
|
+
var ie, J, H, fe, we;
|
|
4859
4857
|
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) || "";
|
|
4860
4858
|
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) || [];
|
|
4861
4859
|
if (a.fields.tags = (U == null ? void 0 : U.join(", ")) || "", "consumers" in k)
|
|
@@ -4863,7 +4861,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4863
4861
|
else
|
|
4864
4862
|
try {
|
|
4865
4863
|
const { data: me } = await f.get(v("getConsumers"));
|
|
4866
|
-
a.fields.consumers = "consumers" in me ? (
|
|
4864
|
+
a.fields.consumers = "consumers" in me ? (we = me == null ? void 0 : me.consumers) == null ? void 0 : we.map((Ne) => Ne.id) : [];
|
|
4867
4865
|
} catch (me) {
|
|
4868
4866
|
T(me);
|
|
4869
4867
|
}
|
|
@@ -4875,7 +4873,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4875
4873
|
tags: (U = (k = a.fields.tags.split(",")) == null ? void 0 : k.map((ie) => String(ie || "").trim())) == null ? void 0 : U.filter((ie) => ie !== "")
|
|
4876
4874
|
};
|
|
4877
4875
|
}, 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) => {
|
|
4878
|
-
a.errorMessage =
|
|
4876
|
+
a.errorMessage = w(k), r("error", k);
|
|
4879
4877
|
}, O = (k = t.consumerGroupId) => {
|
|
4880
4878
|
Object.assign(s, a.fields), r("update", { ...a.fields, id: k });
|
|
4881
4879
|
}, B = (k, U, ie = t.consumerGroupId) => {
|
|
@@ -4940,7 +4938,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4940
4938
|
const ie = q("KInput"), J = q("KMultiselect");
|
|
4941
4939
|
return d(), j("div", Al, [
|
|
4942
4940
|
E(m(Fs), {
|
|
4943
|
-
"can-submit":
|
|
4941
|
+
"can-submit": _.value && L.value,
|
|
4944
4942
|
config: e.config,
|
|
4945
4943
|
"edit-id": e.consumerGroupId,
|
|
4946
4944
|
"error-message": a.errorMessage || m(p) || C.value,
|
|
@@ -4948,7 +4946,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4948
4946
|
"form-fields": a.fields,
|
|
4949
4947
|
"is-readonly": a.readonly,
|
|
4950
4948
|
onCancel: S,
|
|
4951
|
-
"onFetch:error": U[3] || (U[3] = (H) =>
|
|
4949
|
+
"onFetch:error": U[3] || (U[3] = (H) => V(H)),
|
|
4952
4950
|
"onFetch:success": R,
|
|
4953
4951
|
onLoading: U[4] || (U[4] = (H) => re(H)),
|
|
4954
4952
|
onSubmit: te
|
|
@@ -4999,7 +4997,6 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
4999
4997
|
"onUpdate:modelValue": U[2] || (U[2] = (H) => a.fields.consumers = H),
|
|
5000
4998
|
appearance: "select",
|
|
5001
4999
|
autosuggest: "",
|
|
5002
|
-
"expand-selected": "",
|
|
5003
5000
|
items: h.value,
|
|
5004
5001
|
label: m(o)("consumer_groups.form.fields.consumers.label"),
|
|
5005
5002
|
loading: m(u),
|
|
@@ -5008,10 +5005,12 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
5008
5005
|
onQueryChange: m(l)
|
|
5009
5006
|
}, {
|
|
5010
5007
|
"item-template": g(({ item: H }) => {
|
|
5011
|
-
var fe,
|
|
5008
|
+
var fe, we, me;
|
|
5012
5009
|
return [
|
|
5013
|
-
|
|
5014
|
-
|
|
5010
|
+
D("div", Sl, [
|
|
5011
|
+
D("div", xl, N(H.label), 1),
|
|
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
|
+
])
|
|
5015
5014
|
];
|
|
5016
5015
|
}),
|
|
5017
5016
|
_: 1
|
|
@@ -5025,7 +5024,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
5025
5024
|
]);
|
|
5026
5025
|
};
|
|
5027
5026
|
}
|
|
5028
|
-
}),
|
|
5027
|
+
}), Vl = /* @__PURE__ */ qt($l, [["__scopeId", "data-v-0493dc37"]]), jl = { class: "kong-ui-consumer-group-entity-config-card" }, Rl = /* @__PURE__ */ ae({
|
|
5029
5028
|
__name: "ConsumerGroupConfigCard",
|
|
5030
5029
|
props: {
|
|
5031
5030
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5061,7 +5060,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
5061
5060
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
5062
5061
|
}
|
|
5063
5062
|
});
|
|
5064
|
-
return (i, a) => (d(), j("div",
|
|
5063
|
+
return (i, a) => (d(), j("div", jl, [
|
|
5065
5064
|
E(m(js), {
|
|
5066
5065
|
config: e.config,
|
|
5067
5066
|
"config-card-doc": e.configCardDoc,
|
|
@@ -5078,7 +5077,7 @@ const us = { class: "yaml-config" }, gr = /* @__PURE__ */ ae({
|
|
|
5078
5077
|
}
|
|
5079
5078
|
});
|
|
5080
5079
|
export {
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5080
|
+
Rl as ConsumerGroupConfigCard,
|
|
5081
|
+
Vl as ConsumerGroupForm,
|
|
5082
|
+
Dl as ConsumerGroupList
|
|
5084
5083
|
};
|