@kong-ui-public/entities-gateway-services 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-gateway-services.es.js +114 -114
- package/dist/entities-gateway-services.umd.js +29 -29
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ae, ref as N, computed as T, resolveComponent as L, openBlock as h, createBlock as P, Teleport as ii, createVNode as S, withCtx as y, unref as m, createTextVNode as G, toDisplayString as V, createElementVNode as F, watch as be, renderSlot as Z, createCommentVNode as D, useSlots as it, onBeforeMount as vt, createSlots as xe, createElementBlock as M, renderList as ge, Fragment as ye, normalizeClass as $e, withModifiers as Fe, withDirectives as Ue, vShow as Re, useCssVars as ra, resolveDynamicComponent as Ne, normalizeProps as oa, guardReactiveProps as na, mergeProps as ut, onMounted as ai, onUnmounted as la, normalizeStyle as ri, inject as sa, pushScopeId as oi, popScopeId as ni, reactive as $t } from "vue";
|
|
2
2
|
import { useRouter as ht } from "vue-router";
|
|
3
3
|
import { createI18n as bt, i18nTComponent as li } from "@kong-ui-public/i18n";
|
|
4
4
|
import ca from "axios";
|
|
@@ -465,7 +465,7 @@ function Oa(e, i, t, a = {
|
|
|
465
465
|
u.value = !1;
|
|
466
466
|
}
|
|
467
467
|
}, s = N(""), j = async (C) => {
|
|
468
|
-
var B,
|
|
468
|
+
var B, re, W;
|
|
469
469
|
if (s.value !== C)
|
|
470
470
|
if (s.value = C || "", b.value === void 0)
|
|
471
471
|
try {
|
|
@@ -495,7 +495,7 @@ function Oa(e, i, t, a = {
|
|
|
495
495
|
} else
|
|
496
496
|
p.value = _.value;
|
|
497
497
|
} catch (x) {
|
|
498
|
-
((
|
|
498
|
+
((re = x == null ? void 0 : x.response) == null ? void 0 : re.status) === 404 ? f.value = o("debouncedFilter.errors.invalid") : (p.value = [], d.value = o("debouncedFilter.errors.fetch"));
|
|
499
499
|
} finally {
|
|
500
500
|
u.value = !1;
|
|
501
501
|
}
|
|
@@ -695,7 +695,7 @@ function Ha(e) {
|
|
|
695
695
|
isTruncated: T(() => i.value < t.value)
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
const
|
|
698
|
+
const le = {
|
|
699
699
|
useAxios: _t,
|
|
700
700
|
useDebouncedFilter: Oa,
|
|
701
701
|
useDeleteUrlBuilder: Va,
|
|
@@ -722,13 +722,13 @@ const se = {
|
|
|
722
722
|
for (const [a, r] of i)
|
|
723
723
|
t[a] = r;
|
|
724
724
|
return t;
|
|
725
|
-
}, Za = (e) => (oi("data-v-
|
|
725
|
+
}, Za = (e) => (oi("data-v-77afb926"), e = e(), ni(), e), Qa = ["aria-hidden"], Xa = {
|
|
726
726
|
key: 0,
|
|
727
727
|
"data-testid": "kui-icon-svg-title"
|
|
728
728
|
}, er = /* @__PURE__ */ Za(() => /* @__PURE__ */ F("path", {
|
|
729
729
|
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",
|
|
730
730
|
fill: "currentColor"
|
|
731
|
-
}, null, -1)), tr = /* @__PURE__ */
|
|
731
|
+
}, null, -1)), tr = /* @__PURE__ */ ae({
|
|
732
732
|
__name: "CopyIcon",
|
|
733
733
|
props: {
|
|
734
734
|
/** The accessibility text provided to screen readers */
|
|
@@ -821,7 +821,7 @@ const se = {
|
|
|
821
821
|
_: 1
|
|
822
822
|
}, 8, ["aria-hidden", "style"]));
|
|
823
823
|
}
|
|
824
|
-
}), ir = /* @__PURE__ */ Ya(tr, [["__scopeId", "data-v-
|
|
824
|
+
}), ir = /* @__PURE__ */ Ya(tr, [["__scopeId", "data-v-77afb926"]]), ar = "16px", rr = { class: "kong-ui-copy-uuid" }, or = ["onClick"], Kt = 15, nr = /* @__PURE__ */ ae({
|
|
825
825
|
__name: "CopyUuid",
|
|
826
826
|
props: {
|
|
827
827
|
uuid: {
|
|
@@ -949,7 +949,7 @@ const se = {
|
|
|
949
949
|
}, fi = /* @__PURE__ */ lr(nr, [["__scopeId", "data-v-0c07874b"]]), sr = {
|
|
950
950
|
key: 0,
|
|
951
951
|
class: "config-card-fieldset-title"
|
|
952
|
-
}, cr = /* @__PURE__ */
|
|
952
|
+
}, cr = /* @__PURE__ */ ae({
|
|
953
953
|
__name: "JsonCardItem",
|
|
954
954
|
props: {
|
|
955
955
|
item: {
|
|
@@ -966,7 +966,7 @@ const se = {
|
|
|
966
966
|
}
|
|
967
967
|
},
|
|
968
968
|
setup(e) {
|
|
969
|
-
const i = e, { i18n: { t } } =
|
|
969
|
+
const i = e, { i18n: { t } } = le.useI18n(), { convertKeyToTitle: a } = le.useStringHelpers(), r = T(() => i.item.key ?? "json-array-item"), o = T(() => i.item.value ?? i.item), l = T(() => {
|
|
970
970
|
const u = JSON.parse(JSON.stringify(o.value));
|
|
971
971
|
return i.isArrayItem && delete u.name, u;
|
|
972
972
|
}), n = T(() => {
|
|
@@ -997,7 +997,7 @@ const se = {
|
|
|
997
997
|
for (const [a, r] of i)
|
|
998
998
|
t[a] = r;
|
|
999
999
|
return t;
|
|
1000
|
-
}, mi = /* @__PURE__ */ ve(cr, [["__scopeId", "data-v-68ca83ec"]]), ur = /* @__PURE__ */
|
|
1000
|
+
}, mi = /* @__PURE__ */ ve(cr, [["__scopeId", "data-v-68ca83ec"]]), ur = /* @__PURE__ */ ae({
|
|
1001
1001
|
__name: "InternalLinkItem",
|
|
1002
1002
|
props: {
|
|
1003
1003
|
item: {
|
|
@@ -1007,7 +1007,7 @@ const se = {
|
|
|
1007
1007
|
},
|
|
1008
1008
|
emits: ["navigation-click"],
|
|
1009
1009
|
setup(e) {
|
|
1010
|
-
const { i18n: { t: i } } =
|
|
1010
|
+
const { i18n: { t: i } } = le.useI18n();
|
|
1011
1011
|
return (t, a) => {
|
|
1012
1012
|
const r = L("KButton");
|
|
1013
1013
|
return h(), M("div", null, [
|
|
@@ -1024,7 +1024,7 @@ const se = {
|
|
|
1024
1024
|
]);
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
}), dr = /* @__PURE__ */ ve(ur, [["__scopeId", "data-v-c96811e5"]]), pr = /* @__PURE__ */
|
|
1027
|
+
}), dr = /* @__PURE__ */ ve(ur, [["__scopeId", "data-v-c96811e5"]]), pr = /* @__PURE__ */ ae({
|
|
1028
1028
|
__name: "StatusBadge",
|
|
1029
1029
|
props: {
|
|
1030
1030
|
status: {
|
|
@@ -1033,7 +1033,7 @@ const se = {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
},
|
|
1035
1035
|
setup(e) {
|
|
1036
|
-
const { i18n: { t: i } } =
|
|
1036
|
+
const { i18n: { t: i } } = le.useI18n();
|
|
1037
1037
|
return (t, a) => {
|
|
1038
1038
|
const r = L("KBadge");
|
|
1039
1039
|
return h(), P(r, {
|
|
@@ -1049,7 +1049,7 @@ const se = {
|
|
|
1049
1049
|
}), fr = "#0044f4", mr = "#e0e4ea", gr = "#3a3f51", yr = "1px", vr = "20px", hr = { class: "config-card-details-row" }, br = ["data-testid"], _r = ["data-testid"], wr = ["data-testid"], kr = ["data-testid"], Cr = { key: 1 }, Sr = ["data-testid"], Ir = ["data-testid"], Ar = ["data-testid"], xr = ["data-testid"], Tr = {
|
|
1050
1050
|
name: "ConfigCardItem",
|
|
1051
1051
|
components: { CopyUuid: fi, JsonCardItem: mi, StatusBadge: pr, InternalLinkItem: dr }
|
|
1052
|
-
}, $r = /* @__PURE__ */
|
|
1052
|
+
}, $r = /* @__PURE__ */ ae({
|
|
1053
1053
|
...Tr,
|
|
1054
1054
|
props: {
|
|
1055
1055
|
item: {
|
|
@@ -1076,7 +1076,7 @@ const se = {
|
|
|
1076
1076
|
"1957f153": u.value && l.value ? "100%" : t.slim ? "50%" : "25%",
|
|
1077
1077
|
"195a372e": u.value && l.value ? "100%" : t.slim ? "50%" : "75%"
|
|
1078
1078
|
}));
|
|
1079
|
-
const a = it(), { i18n: { t: r, formatUnixTimeStamp: o } } =
|
|
1079
|
+
const a = it(), { i18n: { t: r, formatUnixTimeStamp: o } } = le.useI18n(), l = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), n = T(() => !!(t.item.tooltip || a["label-tooltip"])), u = T(() => t.item.type === ee.Json || t.item.type === ee.JsonArray), d = T(() => t.item.type === ee.JsonArray), f = T(() => {
|
|
1080
1080
|
switch (t.item.type) {
|
|
1081
1081
|
case ee.ID:
|
|
1082
1082
|
return {
|
|
@@ -1202,7 +1202,7 @@ const se = {
|
|
|
1202
1202
|
text: t.item.value
|
|
1203
1203
|
};
|
|
1204
1204
|
}
|
|
1205
|
-
}), p = N(), { isTruncated: _ } =
|
|
1205
|
+
}), p = N(), { isTruncated: _ } = le.useTruncationDetector(p);
|
|
1206
1206
|
return (b, I) => {
|
|
1207
1207
|
const k = L("KLabel"), v = L("KBadge"), $ = L("KMethodBadge"), s = L("KTooltip");
|
|
1208
1208
|
return h(), M("div", hr, [
|
|
@@ -1350,7 +1350,7 @@ function Or(e, i) {
|
|
|
1350
1350
|
function Vr(e) {
|
|
1351
1351
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1352
1352
|
}
|
|
1353
|
-
var Fr = gi, Nr = Mr, Kr = Er, Lr = Or, qr = Vr, Br = jr,
|
|
1353
|
+
var Fr = gi, Nr = Mr, Kr = Er, Lr = Or, qr = Vr, Br = jr, ne = {
|
|
1354
1354
|
isNothing: Fr,
|
|
1355
1355
|
isObject: Nr,
|
|
1356
1356
|
toArray: Kr,
|
|
@@ -1382,7 +1382,7 @@ function lt(e, i, t, a, r) {
|
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
1384
|
function st(e, i) {
|
|
1385
|
-
return
|
|
1385
|
+
return ne.repeat(" ", i - e.length) + e;
|
|
1386
1386
|
}
|
|
1387
1387
|
function Pr(e, i) {
|
|
1388
1388
|
if (i = Object.create(i || null), !e.buffer)
|
|
@@ -1399,10 +1399,10 @@ function Pr(e, i) {
|
|
|
1399
1399
|
r[l - u],
|
|
1400
1400
|
e.position - (a[l] - a[l - u]),
|
|
1401
1401
|
p
|
|
1402
|
-
), n =
|
|
1402
|
+
), n = ne.repeat(" ", i.indent) + st((e.line - u + 1).toString(), f) + " | " + d.str + `
|
|
1403
1403
|
` + n;
|
|
1404
|
-
for (d = lt(e.buffer, a[l], r[l], e.position, p), n +=
|
|
1405
|
-
`, n +=
|
|
1404
|
+
for (d = lt(e.buffer, a[l], r[l], e.position, p), n += ne.repeat(" ", i.indent) + st((e.line + 1).toString(), f) + " | " + d.str + `
|
|
1405
|
+
`, n += ne.repeat("-", i.indent + f + 3 + d.pos) + `^
|
|
1406
1406
|
`, u = 1; u <= i.linesAfter && !(l + u >= r.length); u++)
|
|
1407
1407
|
d = lt(
|
|
1408
1408
|
e.buffer,
|
|
@@ -1410,7 +1410,7 @@ function Pr(e, i) {
|
|
|
1410
1410
|
r[l + u],
|
|
1411
1411
|
e.position - (a[l] - a[l + u]),
|
|
1412
1412
|
p
|
|
1413
|
-
), n +=
|
|
1413
|
+
), n += ne.repeat(" ", i.indent) + st((e.line + u + 1).toString(), f) + " | " + d.str + `
|
|
1414
1414
|
`;
|
|
1415
1415
|
return n.replace(/\n$/, "");
|
|
1416
1416
|
}
|
|
@@ -1665,7 +1665,7 @@ function ro(e) {
|
|
|
1665
1665
|
return t * parseInt(i, 10);
|
|
1666
1666
|
}
|
|
1667
1667
|
function oo(e) {
|
|
1668
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
1668
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ne.isNegativeZero(e);
|
|
1669
1669
|
}
|
|
1670
1670
|
var Si = new ue("tag:yaml.org,2002:int", {
|
|
1671
1671
|
kind: "scalar",
|
|
@@ -1737,12 +1737,12 @@ function uo(e, i) {
|
|
|
1737
1737
|
case "camelcase":
|
|
1738
1738
|
return "-.Inf";
|
|
1739
1739
|
}
|
|
1740
|
-
else if (
|
|
1740
|
+
else if (ne.isNegativeZero(e))
|
|
1741
1741
|
return "-0.0";
|
|
1742
1742
|
return t = e.toString(10), co.test(t) ? t.replace("e", ".e") : t;
|
|
1743
1743
|
}
|
|
1744
1744
|
function po(e) {
|
|
1745
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1745
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ne.isNegativeZero(e));
|
|
1746
1746
|
}
|
|
1747
1747
|
var Ii = new ue("tag:yaml.org,2002:float", {
|
|
1748
1748
|
kind: "scalar",
|
|
@@ -2000,7 +2000,7 @@ function ke(e, i, t, a) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
function Rt(e, i, t, a) {
|
|
2002
2002
|
var r, o, l, n;
|
|
2003
|
-
for (
|
|
2003
|
+
for (ne.isObject(t) || E(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), l = 0, n = r.length; l < n; l += 1)
|
|
2004
2004
|
o = r[l], Ce.call(i, o) || (i[o] = t[o], a[o] = !0);
|
|
2005
2005
|
}
|
|
2006
2006
|
function Ve(e, i, t, a, r, o, l, n, u) {
|
|
@@ -2027,7 +2027,7 @@ function It(e) {
|
|
|
2027
2027
|
var i;
|
|
2028
2028
|
i = e.input.charCodeAt(e.position), i === 10 ? e.position++ : i === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function oe(e, i, t) {
|
|
2031
2031
|
for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
2032
2032
|
for (; Te(r); )
|
|
2033
2033
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
@@ -2048,7 +2048,7 @@ function at(e) {
|
|
|
2048
2048
|
return t = e.input.charCodeAt(i), !!((t === 45 || t === 46) && t === e.input.charCodeAt(i + 1) && t === e.input.charCodeAt(i + 2) && (i += 3, t = e.input.charCodeAt(i), t === 0 || me(t)));
|
|
2049
2049
|
}
|
|
2050
2050
|
function At(e, i) {
|
|
2051
|
-
i === 1 ? e.result += " " : i > 1 && (e.result +=
|
|
2051
|
+
i === 1 ? e.result += " " : i > 1 && (e.result += ne.repeat(`
|
|
2052
2052
|
`, i - 1));
|
|
2053
2053
|
}
|
|
2054
2054
|
function Bo(e, i, t) {
|
|
@@ -2066,7 +2066,7 @@ function Bo(e, i, t) {
|
|
|
2066
2066
|
if (e.position === e.lineStart && at(e) || t && Oe(b))
|
|
2067
2067
|
break;
|
|
2068
2068
|
if (he(b))
|
|
2069
|
-
if (u = e.line, d = e.lineStart, f = e.lineIndent,
|
|
2069
|
+
if (u = e.line, d = e.lineStart, f = e.lineIndent, oe(e, !1, -1), e.lineIndent >= i) {
|
|
2070
2070
|
n = !0, b = e.input.charCodeAt(e.position);
|
|
2071
2071
|
continue;
|
|
2072
2072
|
} else {
|
|
@@ -2089,7 +2089,7 @@ function Po(e, i) {
|
|
|
2089
2089
|
else
|
|
2090
2090
|
return !0;
|
|
2091
2091
|
else
|
|
2092
|
-
he(t) ? (ke(e, a, r, !0), At(e,
|
|
2092
|
+
he(t) ? (ke(e, a, r, !0), At(e, oe(e, !1, i)), a = r = e.position) : e.position === e.lineStart && at(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
2093
2093
|
E(e, "unexpected end of the stream within a single quoted scalar");
|
|
2094
2094
|
}
|
|
2095
2095
|
function Uo(e, i) {
|
|
@@ -2101,7 +2101,7 @@ function Uo(e, i) {
|
|
|
2101
2101
|
return ke(e, t, e.position, !0), e.position++, !0;
|
|
2102
2102
|
if (n === 92) {
|
|
2103
2103
|
if (ke(e, t, e.position, !0), n = e.input.charCodeAt(++e.position), he(n))
|
|
2104
|
-
|
|
2104
|
+
oe(e, !1, i);
|
|
2105
2105
|
else if (n < 256 && Bi[n])
|
|
2106
2106
|
e.result += Pi[n], e.position++;
|
|
2107
2107
|
else if ((l = No(n)) > 0) {
|
|
@@ -2112,7 +2112,7 @@ function Uo(e, i) {
|
|
|
2112
2112
|
E(e, "unknown escape sequence");
|
|
2113
2113
|
t = a = e.position;
|
|
2114
2114
|
} else
|
|
2115
|
-
he(n) ? (ke(e, t, a, !0), At(e,
|
|
2115
|
+
he(n) ? (ke(e, t, a, !0), At(e, oe(e, !1, i)), t = a = e.position) : e.position === e.lineStart && at(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
|
|
2116
2116
|
}
|
|
2117
2117
|
E(e, "unexpected end of the stream within a double quoted scalar");
|
|
2118
2118
|
}
|
|
@@ -2125,9 +2125,9 @@ function Ro(e, i) {
|
|
|
2125
2125
|
else
|
|
2126
2126
|
return !1;
|
|
2127
2127
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = n), s = e.input.charCodeAt(++e.position); s !== 0; ) {
|
|
2128
|
-
if (
|
|
2128
|
+
if (oe(e, !0, i), s = e.input.charCodeAt(e.position), s === f)
|
|
2129
2129
|
return e.position++, e.tag = l, e.anchor = u, e.kind = b ? "mapping" : "sequence", e.result = n, !0;
|
|
2130
|
-
t ? s === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), v = k = $ = null, p = _ = !1, s === 63 && (d = e.input.charCodeAt(e.position + 1), me(d) && (p = _ = !0, e.position++,
|
|
2130
|
+
t ? s === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), v = k = $ = null, p = _ = !1, s === 63 && (d = e.input.charCodeAt(e.position + 1), me(d) && (p = _ = !0, e.position++, oe(e, !0, i))), a = e.line, r = e.lineStart, o = e.position, Ke(e, i, Ze, !1, !0), v = e.tag, k = e.result, oe(e, !0, i), s = e.input.charCodeAt(e.position), (_ || e.line === a) && s === 58 && (p = !0, s = e.input.charCodeAt(++e.position), oe(e, !0, i), Ke(e, i, Ze, !1, !0), $ = e.result), b ? Ve(e, n, I, v, k, $, a, r, o) : p ? n.push(Ve(e, null, I, v, k, $, a, r, o)) : n.push(k), oe(e, !0, i), s = e.input.charCodeAt(e.position), s === 44 ? (t = !0, s = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2131
2131
|
}
|
|
2132
2132
|
E(e, "unexpected end of the stream within a flow collection");
|
|
2133
2133
|
}
|
|
@@ -2163,15 +2163,15 @@ function Do(e, i) {
|
|
|
2163
2163
|
continue;
|
|
2164
2164
|
}
|
|
2165
2165
|
if (e.lineIndent < n) {
|
|
2166
|
-
r === qt ? e.result +=
|
|
2166
|
+
r === qt ? e.result += ne.repeat(`
|
|
2167
2167
|
`, o ? 1 + u : u) : r === ct && o && (e.result += `
|
|
2168
2168
|
`);
|
|
2169
2169
|
break;
|
|
2170
2170
|
}
|
|
2171
|
-
for (a ? Te(p) ? (d = !0, e.result +=
|
|
2172
|
-
`, o ? 1 + u : u)) : d ? (d = !1, e.result +=
|
|
2173
|
-
`, u + 1)) : u === 0 ? o && (e.result += " ") : e.result +=
|
|
2174
|
-
`, u) : e.result +=
|
|
2171
|
+
for (a ? Te(p) ? (d = !0, e.result += ne.repeat(`
|
|
2172
|
+
`, o ? 1 + u : u)) : d ? (d = !1, e.result += ne.repeat(`
|
|
2173
|
+
`, u + 1)) : u === 0 ? o && (e.result += " ") : e.result += ne.repeat(`
|
|
2174
|
+
`, u) : e.result += ne.repeat(`
|
|
2175
2175
|
`, o ? 1 + u : u), o = !0, l = !0, u = 0, t = e.position; !he(p) && p !== 0; )
|
|
2176
2176
|
p = e.input.charCodeAt(++e.position);
|
|
2177
2177
|
ke(e, t, e.position, !1);
|
|
@@ -2183,11 +2183,11 @@ function Dt(e, i) {
|
|
|
2183
2183
|
if (e.firstTabInLine !== -1)
|
|
2184
2184
|
return !1;
|
|
2185
2185
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), u = e.input.charCodeAt(e.position); u !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(u !== 45 || (l = e.input.charCodeAt(e.position + 1), !me(l)))); ) {
|
|
2186
|
-
if (n = !0, e.position++,
|
|
2186
|
+
if (n = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= i) {
|
|
2187
2187
|
o.push(null), u = e.input.charCodeAt(e.position);
|
|
2188
2188
|
continue;
|
|
2189
2189
|
}
|
|
2190
|
-
if (t = e.line, Ke(e, i, Ki, !1, !0), o.push(e.result),
|
|
2190
|
+
if (t = e.line, Ke(e, i, Ki, !1, !0), o.push(e.result), oe(e, !0, -1), u = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > i) && u !== 0)
|
|
2191
2191
|
E(e, "bad indentation of a sequence entry");
|
|
2192
2192
|
else if (e.lineIndent < i)
|
|
2193
2193
|
break;
|
|
@@ -2218,7 +2218,7 @@ function Ho(e, i, t) {
|
|
|
2218
2218
|
else
|
|
2219
2219
|
return e.tag = d, e.anchor = f, !0;
|
|
2220
2220
|
}
|
|
2221
|
-
if ((e.line === o || e.lineIndent > i) && (v && (l = e.line, n = e.lineStart, u = e.position), Ke(e, i, Qe, !0, r) && (v ? I = e.result : k = e.result), v || (Ve(e, p, _, b, I, k, l, n, u), b = I = k = null),
|
|
2221
|
+
if ((e.line === o || e.lineIndent > i) && (v && (l = e.line, n = e.lineStart, u = e.position), Ke(e, i, Qe, !0, r) && (v ? I = e.result : k = e.result), v || (Ve(e, p, _, b, I, k, l, n, u), b = I = k = null), oe(e, !0, -1), s = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > i) && s !== 0)
|
|
2222
2222
|
E(e, "bad indentation of a mapping entry");
|
|
2223
2223
|
else if (e.lineIndent < i)
|
|
2224
2224
|
break;
|
|
@@ -2261,13 +2261,13 @@ function Jo(e) {
|
|
|
2261
2261
|
return !1;
|
|
2262
2262
|
for (a = e.input.charCodeAt(++e.position), i = e.position; a !== 0 && !me(a) && !Oe(a); )
|
|
2263
2263
|
a = e.input.charCodeAt(++e.position);
|
|
2264
|
-
return e.position === i && E(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), Ce.call(e.anchorMap, t) || E(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t],
|
|
2264
|
+
return e.position === i && E(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), Ce.call(e.anchorMap, t) || E(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
|
|
2265
2265
|
}
|
|
2266
2266
|
function Ke(e, i, t, a, r) {
|
|
2267
2267
|
var o, l, n, u = 1, d = !1, f = !1, p, _, b, I, k, v;
|
|
2268
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = l = n = Qe === t || Ki === t, a &&
|
|
2268
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = l = n = Qe === t || Ki === t, a && oe(e, !0, -1) && (d = !0, e.lineIndent > i ? u = 1 : e.lineIndent === i ? u = 0 : e.lineIndent < i && (u = -1)), u === 1)
|
|
2269
2269
|
for (; zo(e) || Go(e); )
|
|
2270
|
-
|
|
2270
|
+
oe(e, !0, -1) ? (d = !0, n = o, e.lineIndent > i ? u = 1 : e.lineIndent === i ? u = 0 : e.lineIndent < i && (u = -1)) : n = !1;
|
|
2271
2271
|
if (n && (n = d || r), (u === 1 || Qe === t) && (Ze === t || Ni === t ? k = i : k = i + 1, v = e.position - e.lineStart, u === 1 ? n && (Dt(e, v) || Ho(e, v, k)) || Ro(e, k) ? f = !0 : (l && Do(e, k) || Po(e, k) || Uo(e, k) ? f = !0 : Jo(e) ? (f = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : Bo(e, k, Ze === t) && (f = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : u === 0 && (f = n && Dt(e, v))), e.tag === null)
|
|
2272
2272
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2273
2273
|
else if (e.tag === "?") {
|
|
@@ -2291,7 +2291,7 @@ function Ke(e, i, t, a, r) {
|
|
|
2291
2291
|
}
|
|
2292
2292
|
function Wo(e) {
|
|
2293
2293
|
var i = e.position, t, a, r, o = !1, l;
|
|
2294
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (l = e.input.charCodeAt(e.position)) !== 0 && (
|
|
2294
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (l = e.input.charCodeAt(e.position)) !== 0 && (oe(e, !0, -1), l = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || l !== 37)); ) {
|
|
2295
2295
|
for (o = !0, l = e.input.charCodeAt(++e.position), t = e.position; l !== 0 && !me(l); )
|
|
2296
2296
|
l = e.input.charCodeAt(++e.position);
|
|
2297
2297
|
for (a = e.input.slice(t, e.position), r = [], a.length < 1 && E(e, "directive name must not be less than one character in length"); l !== 0; ) {
|
|
@@ -2311,8 +2311,8 @@ function Wo(e) {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
l !== 0 && It(e), Ce.call(Ut, a) ? Ut[a](e, a, r) : Xe(e, 'unknown document directive "' + a + '"');
|
|
2313
2313
|
}
|
|
2314
|
-
if (
|
|
2315
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
2314
|
+
if (oe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, oe(e, !0, -1)) : o && E(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, Qe, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Oo.test(e.input.slice(i, e.position)) && Xe(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && at(e)) {
|
|
2315
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
|
|
2316
2316
|
return;
|
|
2317
2317
|
}
|
|
2318
2318
|
if (e.position < e.length - 1)
|
|
@@ -2401,14 +2401,14 @@ function _n(e) {
|
|
|
2401
2401
|
t = "U", a = 8;
|
|
2402
2402
|
else
|
|
2403
2403
|
throw new fe("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2404
|
-
return "\\" + t +
|
|
2404
|
+
return "\\" + t + ne.repeat("0", a - i.length) + i;
|
|
2405
2405
|
}
|
|
2406
2406
|
var wn = 1, Ge = 2;
|
|
2407
2407
|
function kn(e) {
|
|
2408
|
-
this.schema = e.schema || St, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel =
|
|
2408
|
+
this.schema = e.schema || St, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ne.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = bn(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ge : wn, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2409
2409
|
}
|
|
2410
2410
|
function Ht(e, i) {
|
|
2411
|
-
for (var t =
|
|
2411
|
+
for (var t = ne.repeat(" ", i), a = 0, r = -1, o = "", l, n = e.length; a < n; )
|
|
2412
2412
|
r = e.indexOf(`
|
|
2413
2413
|
`, a), r === -1 ? (l = e.slice(a), a = n) : (l = e.slice(a, r + 1), a = r + 1), l.length && l !== `
|
|
2414
2414
|
` && (o += t), o += l;
|
|
@@ -2416,7 +2416,7 @@ function Ht(e, i) {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
function mt(e, i) {
|
|
2418
2418
|
return `
|
|
2419
|
-
` +
|
|
2419
|
+
` + ne.repeat(" ", e.indent * i);
|
|
2420
2420
|
}
|
|
2421
2421
|
function Cn(e, i) {
|
|
2422
2422
|
var t, a, r;
|
|
@@ -2703,7 +2703,7 @@ const Qn = {
|
|
|
2703
2703
|
}, il = {
|
|
2704
2704
|
key: 2,
|
|
2705
2705
|
class: "config-card-display-yaml"
|
|
2706
|
-
}, al = /* @__PURE__ */
|
|
2706
|
+
}, al = /* @__PURE__ */ ae({
|
|
2707
2707
|
__name: "ConfigCardDisplay",
|
|
2708
2708
|
props: {
|
|
2709
2709
|
propertyCollections: {
|
|
@@ -2729,7 +2729,7 @@ const Qn = {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
},
|
|
2731
2731
|
setup(e) {
|
|
2732
|
-
const i = e, t = it(), { i18n: { t: a } } =
|
|
2732
|
+
const i = e, t = it(), { i18n: { t: a } } = le.useI18n(), r = (n) => !!(n.tooltip || t[`${n.key}-label-tooltip`]), o = N(""), l = N("");
|
|
2733
2733
|
return be(() => i.format, (n) => {
|
|
2734
2734
|
if (n !== "structured") {
|
|
2735
2735
|
const u = JSON.parse(JSON.stringify(i.record));
|
|
@@ -2794,13 +2794,13 @@ const Qn = {
|
|
|
2794
2794
|
for (const [a, r] of i)
|
|
2795
2795
|
t[a] = r;
|
|
2796
2796
|
return t;
|
|
2797
|
-
}, nl = (e) => (oi("data-v-
|
|
2797
|
+
}, nl = (e) => (oi("data-v-4c9d405a"), e = e(), ni(), e), ll = ["aria-hidden"], sl = {
|
|
2798
2798
|
key: 0,
|
|
2799
2799
|
"data-testid": "kui-icon-svg-title"
|
|
2800
2800
|
}, cl = /* @__PURE__ */ nl(() => /* @__PURE__ */ F("path", {
|
|
2801
2801
|
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",
|
|
2802
2802
|
fill: "currentColor"
|
|
2803
|
-
}, null, -1)), ul = /* @__PURE__ */
|
|
2803
|
+
}, null, -1)), ul = /* @__PURE__ */ ae({
|
|
2804
2804
|
__name: "BookIcon",
|
|
2805
2805
|
props: {
|
|
2806
2806
|
/** The accessibility text provided to screen readers */
|
|
@@ -2893,7 +2893,7 @@ const Qn = {
|
|
|
2893
2893
|
_: 1
|
|
2894
2894
|
}, 8, ["aria-hidden", "style"]));
|
|
2895
2895
|
}
|
|
2896
|
-
}), dl = /* @__PURE__ */ ol(ul, [["__scopeId", "data-v-
|
|
2896
|
+
}), dl = /* @__PURE__ */ ol(ul, [["__scopeId", "data-v-4c9d405a"]]), pl = { "data-testid": "config-card-title" }, fl = { class: "config-card-actions" }, ml = ["href"], gl = {
|
|
2897
2897
|
key: 2,
|
|
2898
2898
|
class: "config-card-details-section"
|
|
2899
2899
|
}, yl = {
|
|
@@ -2902,7 +2902,7 @@ const Qn = {
|
|
|
2902
2902
|
}, vl = ["data-testid"], hl = {
|
|
2903
2903
|
key: 0,
|
|
2904
2904
|
class: "config-card-prop-section-title"
|
|
2905
|
-
}, bl = /* @__PURE__ */
|
|
2905
|
+
}, bl = /* @__PURE__ */ ae({
|
|
2906
2906
|
__name: "EntityBaseConfigCard",
|
|
2907
2907
|
props: {
|
|
2908
2908
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2977,7 +2977,7 @@ const Qn = {
|
|
|
2977
2977
|
emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
|
|
2978
2978
|
setup(e, { emit: i }) {
|
|
2979
2979
|
var t;
|
|
2980
|
-
const a = e, r = it(), { i18n: { t: o } } =
|
|
2980
|
+
const a = e, r = it(), { i18n: { t: o } } = le.useI18n(), { getMessageFromError: l } = le.useErrors(), { convertKeyToTitle: n } = le.useStringHelpers(), { axiosInstance: u } = le.useAxios({
|
|
2981
2981
|
headers: (t = a.config) == null ? void 0 : t.requestHeaders
|
|
2982
2982
|
}), d = [
|
|
2983
2983
|
{
|
|
@@ -3089,7 +3089,7 @@ const Qn = {
|
|
|
3089
3089
|
}), C = T(() => {
|
|
3090
3090
|
const x = [];
|
|
3091
3091
|
return j.value.basic.length && x.push("basic"), j.value.advanced.length && x.push("advanced"), j.value.plugin.length && x.push("plugin"), x;
|
|
3092
|
-
}), B = (x) => !!(x.tooltip || r[`${x.key}-label-tooltip`]),
|
|
3092
|
+
}), B = (x) => !!(x.tooltip || r[`${x.key}-label-tooltip`]), re = T(() => {
|
|
3093
3093
|
var x, q;
|
|
3094
3094
|
let U = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3095
3095
|
return a.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((x = a.config) == null ? void 0 : x.controlPlaneId) || "") : a.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, (q = a.config) != null && q.workspace ? `/${a.config.workspace}` : "")), U = U.replace(/{id}/gi, a.config.entityId), U;
|
|
@@ -3101,7 +3101,7 @@ const Qn = {
|
|
|
3101
3101
|
}, { immediate: !0 }), vt(async () => {
|
|
3102
3102
|
I.value = !1, b.value = !0;
|
|
3103
3103
|
try {
|
|
3104
|
-
const { data: x } = await u.get(
|
|
3104
|
+
const { data: x } = await u.get(re.value);
|
|
3105
3105
|
if (a.dataKey)
|
|
3106
3106
|
if (typeof x[a.dataKey] < "u")
|
|
3107
3107
|
v.value = { ...x[a.dataKey] };
|
|
@@ -3261,7 +3261,7 @@ const Qn = {
|
|
|
3261
3261
|
}), _l = /* @__PURE__ */ ve(bl, [["__scopeId", "data-v-b3999889"]]), wl = ["onReset", "onSubmit"], kl = {
|
|
3262
3262
|
class: "form-actions",
|
|
3263
3263
|
"data-testid": "form-actions"
|
|
3264
|
-
}, Cl = /* @__PURE__ */
|
|
3264
|
+
}, Cl = /* @__PURE__ */ ae({
|
|
3265
3265
|
__name: "EntityBaseForm",
|
|
3266
3266
|
props: {
|
|
3267
3267
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3311,7 +3311,7 @@ const Qn = {
|
|
|
3311
3311
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3312
3312
|
setup(e, { emit: i }) {
|
|
3313
3313
|
var t;
|
|
3314
|
-
const a = e, r = ht(), { i18n: { t: o } } =
|
|
3314
|
+
const a = e, r = ht(), { i18n: { t: o } } = le.useI18n(), { getMessageFromError: l } = le.useErrors(), { axiosInstance: n } = le.useAxios({
|
|
3315
3315
|
headers: (t = a.config) == null ? void 0 : t.requestHeaders
|
|
3316
3316
|
}), u = N(!1), d = N(!1), f = N(""), p = T(() => a.canSubmit === !1 || a.isReadonly), _ = T(() => {
|
|
3317
3317
|
var v, $;
|
|
@@ -3341,8 +3341,8 @@ const Qn = {
|
|
|
3341
3341
|
u.value = !1;
|
|
3342
3342
|
}
|
|
3343
3343
|
}), (v, $) => {
|
|
3344
|
-
const s = L("KSkeleton"), j = L("KEmptyState"), C = L("KAlert"), B = L("KButton"),
|
|
3345
|
-
return h(), P(
|
|
3344
|
+
const s = L("KSkeleton"), j = L("KEmptyState"), C = L("KAlert"), B = L("KButton"), re = L("KCard");
|
|
3345
|
+
return h(), P(re, { class: "kong-ui-entity-base-form" }, {
|
|
3346
3346
|
body: y(() => [
|
|
3347
3347
|
u.value ? (h(), P(s, {
|
|
3348
3348
|
key: 0,
|
|
@@ -3406,7 +3406,7 @@ const Qn = {
|
|
|
3406
3406
|
}), Sl = /* @__PURE__ */ ve(Cl, [["__scopeId", "data-v-81612aef"]]), Il = {
|
|
3407
3407
|
key: 0,
|
|
3408
3408
|
"data-testid": "first-col"
|
|
3409
|
-
}, Al = /* @__PURE__ */
|
|
3409
|
+
}, Al = /* @__PURE__ */ ae({
|
|
3410
3410
|
__name: "EntityBaseTableCell",
|
|
3411
3411
|
props: {
|
|
3412
3412
|
keyName: {
|
|
@@ -3480,7 +3480,7 @@ const Qn = {
|
|
|
3480
3480
|
}), xl = /* @__PURE__ */ ve(Al, [["__scopeId", "data-v-e42a20c9"]]), Tl = { class: "toolbar-container" }, $l = {
|
|
3481
3481
|
key: 0,
|
|
3482
3482
|
class: "toolbar-button-container"
|
|
3483
|
-
}, Ml = ["data-testid"], El = /* @__PURE__ */
|
|
3483
|
+
}, Ml = ["data-testid"], El = /* @__PURE__ */ ae({
|
|
3484
3484
|
__name: "EntityBaseTable",
|
|
3485
3485
|
props: {
|
|
3486
3486
|
// table header configuration
|
|
@@ -3590,7 +3590,7 @@ const Qn = {
|
|
|
3590
3590
|
},
|
|
3591
3591
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3592
3592
|
setup(e, { emit: i }) {
|
|
3593
|
-
const t = e, { i18n: { t: a } } =
|
|
3593
|
+
const t = e, { i18n: { t: a } } = le.useI18n(), r = T(() => {
|
|
3594
3594
|
var C, B;
|
|
3595
3595
|
return typeof t.errorMessage == "string" ? {
|
|
3596
3596
|
hasError: !!t.errorMessage,
|
|
@@ -3604,11 +3604,11 @@ const Qn = {
|
|
|
3604
3604
|
}), o = T(() => t.cacheIdentifier || t.preferencesStorageKey), l = (C) => C.hasData || !!t.query, n = T(() => {
|
|
3605
3605
|
const C = [];
|
|
3606
3606
|
return Object.keys(t.tableHeaders).forEach((B) => {
|
|
3607
|
-
const
|
|
3607
|
+
const re = t.tableHeaders[B];
|
|
3608
3608
|
C.push({
|
|
3609
|
-
label:
|
|
3609
|
+
label: re.label ?? B,
|
|
3610
3610
|
key: B,
|
|
3611
|
-
sortable:
|
|
3611
|
+
sortable: re.sortable ?? !1
|
|
3612
3612
|
});
|
|
3613
3613
|
}), t.enableEntityActions && C.push({
|
|
3614
3614
|
key: "actions",
|
|
@@ -3649,7 +3649,7 @@ const Qn = {
|
|
|
3649
3649
|
t.preferencesStorageKey && v(t.preferencesStorageKey, C);
|
|
3650
3650
|
};
|
|
3651
3651
|
return (C, B) => {
|
|
3652
|
-
const
|
|
3652
|
+
const re = L("KIcon"), W = L("KButton"), x = L("KDropdown"), q = L("KTable"), U = L("KCard");
|
|
3653
3653
|
return h(), P(U, {
|
|
3654
3654
|
class: "kong-ui-entity-base-table",
|
|
3655
3655
|
title: e.title
|
|
@@ -3720,7 +3720,7 @@ const Qn = {
|
|
|
3720
3720
|
size: "small"
|
|
3721
3721
|
}, {
|
|
3722
3722
|
icon: y(() => [
|
|
3723
|
-
S(
|
|
3723
|
+
S(re, {
|
|
3724
3724
|
color: m(gr),
|
|
3725
3725
|
icon: "more",
|
|
3726
3726
|
size: "16"
|
|
@@ -3767,7 +3767,7 @@ const Qn = {
|
|
|
3767
3767
|
}, Vl = {
|
|
3768
3768
|
key: 1,
|
|
3769
3769
|
class: "description"
|
|
3770
|
-
}, Fl = /* @__PURE__ */
|
|
3770
|
+
}, Fl = /* @__PURE__ */ ae({
|
|
3771
3771
|
__name: "EntityDeleteModal",
|
|
3772
3772
|
props: {
|
|
3773
3773
|
visible: {
|
|
@@ -3806,7 +3806,7 @@ const Qn = {
|
|
|
3806
3806
|
},
|
|
3807
3807
|
emits: ["cancel", "proceed"],
|
|
3808
3808
|
setup(e, { emit: i }) {
|
|
3809
|
-
const t = e, { i18nT: a } =
|
|
3809
|
+
const t = e, { i18nT: a } = le.useI18n(), r = T(() => t.needConfirm ? t.entityName : ""), o = () => {
|
|
3810
3810
|
i("cancel");
|
|
3811
3811
|
}, l = () => {
|
|
3812
3812
|
i("proceed");
|
|
@@ -3875,7 +3875,7 @@ const Qn = {
|
|
|
3875
3875
|
width: "20",
|
|
3876
3876
|
x: "0",
|
|
3877
3877
|
y: "0"
|
|
3878
|
-
}, ql = ["fill"], Bl = { mask: "url(#mask0_180_20349)" }, Pl = ["fill"], ei = /* @__PURE__ */
|
|
3878
|
+
}, ql = ["fill"], Bl = { mask: "url(#mask0_180_20349)" }, Pl = ["fill"], ei = /* @__PURE__ */ ae({
|
|
3879
3879
|
__name: "IconFilter",
|
|
3880
3880
|
props: {
|
|
3881
3881
|
color: {
|
|
@@ -3903,7 +3903,7 @@ const Qn = {
|
|
|
3903
3903
|
}), Ul = {
|
|
3904
3904
|
key: 1,
|
|
3905
3905
|
class: "kong-ui-entity-filter"
|
|
3906
|
-
}, Rl = { class: "menu-item-title" }, Dl = { class: "menu-item-indicator" }, Hl = { class: "menu-item-body" }, zl = ["for"], Gl = { class: "menu-item-buttons" }, Jl = { class: "filter-clear-button-container" }, Wl = /* @__PURE__ */
|
|
3906
|
+
}, Rl = { class: "menu-item-title" }, Dl = { class: "menu-item-indicator" }, Hl = { class: "menu-item-body" }, zl = ["for"], Gl = { class: "menu-item-buttons" }, Jl = { class: "filter-clear-button-container" }, Wl = /* @__PURE__ */ ae({
|
|
3907
3907
|
__name: "EntityFilter",
|
|
3908
3908
|
props: {
|
|
3909
3909
|
// filter config, either exact match or fuzzy match
|
|
@@ -3923,7 +3923,7 @@ const Qn = {
|
|
|
3923
3923
|
},
|
|
3924
3924
|
emits: ["update:modelValue"],
|
|
3925
3925
|
setup(e, { emit: i }) {
|
|
3926
|
-
const t = e, { i18n: { t: a } } =
|
|
3926
|
+
const t = e, { i18n: { t: a } } = le.useI18n(), r = N(!1), o = N({}), l = T(() => {
|
|
3927
3927
|
const v = [];
|
|
3928
3928
|
return new URLSearchParams(t.modelValue).forEach(($, s) => {
|
|
3929
3929
|
$ !== "" && v.push(s);
|
|
@@ -3965,7 +3965,7 @@ const Qn = {
|
|
|
3965
3965
|
v && (r.value = !1), i("update:modelValue", new URLSearchParams($).toString());
|
|
3966
3966
|
};
|
|
3967
3967
|
return (v, $) => {
|
|
3968
|
-
const s = L("KInput"), j = L("KButton"), C = L("KSelect"), B = L("KMenuItem"),
|
|
3968
|
+
const s = L("KInput"), j = L("KButton"), C = L("KSelect"), B = L("KMenuItem"), re = L("KMenu");
|
|
3969
3969
|
return e.config.isExactMatch ? (h(), P(s, {
|
|
3970
3970
|
key: 0,
|
|
3971
3971
|
autocomplete: "off",
|
|
@@ -3997,7 +3997,7 @@ const Qn = {
|
|
|
3997
3997
|
}, null, 512), [
|
|
3998
3998
|
[Re, r.value]
|
|
3999
3999
|
]),
|
|
4000
|
-
Ue(S(
|
|
4000
|
+
Ue(S(re, { class: "kong-ui-entity-filter-menu" }, {
|
|
4001
4001
|
body: y(() => [
|
|
4002
4002
|
(h(!0), M(ye, null, ge(n.value, (W, x) => (h(), P(B, {
|
|
4003
4003
|
key: W.value,
|
|
@@ -4089,7 +4089,7 @@ const Qn = {
|
|
|
4089
4089
|
]));
|
|
4090
4090
|
};
|
|
4091
4091
|
}
|
|
4092
|
-
}), Yl = /* @__PURE__ */ ve(Wl, [["__scopeId", "data-v-15962ee2"]]), Zl = /* @__PURE__ */
|
|
4092
|
+
}), Yl = /* @__PURE__ */ ve(Wl, [["__scopeId", "data-v-15962ee2"]]), Zl = /* @__PURE__ */ ae({
|
|
4093
4093
|
__name: "EntityToggleModal",
|
|
4094
4094
|
props: {
|
|
4095
4095
|
visible: {
|
|
@@ -4121,7 +4121,7 @@ const Qn = {
|
|
|
4121
4121
|
},
|
|
4122
4122
|
emits: ["canceled", "proceed"],
|
|
4123
4123
|
setup(e, { emit: i }) {
|
|
4124
|
-
const t = e, { i18n: { t: a }, i18nT: r } =
|
|
4124
|
+
const t = e, { i18n: { t: a }, i18nT: r } = le.useI18n(), o = N(!1), l = T(
|
|
4125
4125
|
() => t.action === "enable" ? a("toggleModal.enable.title", { entityType: t.entityType }) : a("toggleModal.disable.title", { entityType: t.entityType })
|
|
4126
4126
|
), n = T(
|
|
4127
4127
|
() => t.action === "enable" ? a("toggleModal.enable.confirmText") : a("toggleModal.disable.confirmText")
|
|
@@ -4169,7 +4169,7 @@ const Qn = {
|
|
|
4169
4169
|
]);
|
|
4170
4170
|
};
|
|
4171
4171
|
}
|
|
4172
|
-
}), Be = /* @__PURE__ */
|
|
4172
|
+
}), Be = /* @__PURE__ */ ae({
|
|
4173
4173
|
__name: "PermissionsWrapper",
|
|
4174
4174
|
props: {
|
|
4175
4175
|
/**
|
|
@@ -4208,7 +4208,7 @@ const Qn = {
|
|
|
4208
4208
|
}, ts = {
|
|
4209
4209
|
key: 2,
|
|
4210
4210
|
class: "form-section-footer"
|
|
4211
|
-
}, is = { class: "form-section-content" }, as = /* @__PURE__ */
|
|
4211
|
+
}, is = { class: "form-section-content" }, as = /* @__PURE__ */ ae({
|
|
4212
4212
|
__name: "EntityFormSection",
|
|
4213
4213
|
props: {
|
|
4214
4214
|
title: {
|
|
@@ -4258,8 +4258,8 @@ const Qn = {
|
|
|
4258
4258
|
])
|
|
4259
4259
|
], 2));
|
|
4260
4260
|
}
|
|
4261
|
-
}), ti = /* @__PURE__ */ ve(as, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: ia, useDeleteUrlBuilder: rs, useErrors: os, useExternalLinkCreator: Ns, useFetchUrlBuilder: Ks, useFetcher: ns, useDebouncedFilter: Ls, useStringHelpers: qs, useHelpers: ls, useGatewayFeatureSupported: ss, useTruncationDetector: Bs } =
|
|
4262
|
-
const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 }, ds = /* @__PURE__ */
|
|
4261
|
+
}), ti = /* @__PURE__ */ ve(as, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: ia, useDeleteUrlBuilder: rs, useErrors: os, useExternalLinkCreator: Ns, useFetchUrlBuilder: Ks, useFetcher: ns, useDebouncedFilter: Ls, useStringHelpers: qs, useHelpers: ls, useGatewayFeatureSupported: ss, useTruncationDetector: Bs } = le;
|
|
4262
|
+
const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 }, ds = /* @__PURE__ */ ae({
|
|
4263
4263
|
__name: "GatewayServiceList",
|
|
4264
4264
|
props: {
|
|
4265
4265
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4327,10 +4327,10 @@ const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 },
|
|
|
4327
4327
|
isExactMatch: c,
|
|
4328
4328
|
placeholder: a("search.placeholder")
|
|
4329
4329
|
};
|
|
4330
|
-
const { name: g, enabled: O, protocol: J, host: te, port:
|
|
4330
|
+
const { name: g, enabled: O, protocol: J, host: te, port: se, path: w } = u;
|
|
4331
4331
|
return {
|
|
4332
4332
|
isExactMatch: c,
|
|
4333
|
-
fields: { name: g, enabled: O, protocol: J, host: te, port:
|
|
4333
|
+
fields: { name: g, enabled: O, protocol: J, host: te, port: se, path: w },
|
|
4334
4334
|
schema: t.config.filterSchema
|
|
4335
4335
|
};
|
|
4336
4336
|
}), { fetcher: I, fetcherState: k } = ns(t.config, f.value), v = () => {
|
|
@@ -4342,7 +4342,7 @@ const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 },
|
|
|
4342
4342
|
ctaText: Ie.value ? a("actions.create") : void 0,
|
|
4343
4343
|
message: a("gateway_services.list.empty_state.description"),
|
|
4344
4344
|
title: Ie.value ? a("gateway_services.list.empty_state.title") : ""
|
|
4345
|
-
})), C = N(!1), B = N(null),
|
|
4345
|
+
})), C = N(!1), B = N(null), re = T(() => {
|
|
4346
4346
|
const c = {
|
|
4347
4347
|
action: "disable",
|
|
4348
4348
|
id: "",
|
|
@@ -4363,10 +4363,10 @@ const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 },
|
|
|
4363
4363
|
return;
|
|
4364
4364
|
const g = `${p.value.href}/${B.value.id}`, O = !B.value.enabled;
|
|
4365
4365
|
try {
|
|
4366
|
-
const { data:
|
|
4367
|
-
i("toggle:success",
|
|
4368
|
-
} catch (
|
|
4369
|
-
i("error",
|
|
4366
|
+
const { data: se } = ((te = t.config) == null ? void 0 : te.app) === "konnect" ? await o.put(g, { ...B.value, enabled: O }) : await o.patch(g, { ...B.value, enabled: O });
|
|
4367
|
+
i("toggle:success", se);
|
|
4368
|
+
} catch (se) {
|
|
4369
|
+
i("error", se);
|
|
4370
4370
|
}
|
|
4371
4371
|
B.value.enabled = O;
|
|
4372
4372
|
}, U = (c, g) => {
|
|
@@ -4424,11 +4424,11 @@ const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 },
|
|
|
4424
4424
|
}
|
|
4425
4425
|
}, Se = N(!0);
|
|
4426
4426
|
be(k, (c) => {
|
|
4427
|
-
var g, O, J, te
|
|
4428
|
-
if (((
|
|
4427
|
+
var g, O, J, te;
|
|
4428
|
+
if (Array.isArray((g = c == null ? void 0 : c.response) == null ? void 0 : g.data) && (Se.value = c.response.data.length > 0), c.status === Ae.Error) {
|
|
4429
4429
|
s.value = {
|
|
4430
4430
|
title: a("errors.general")
|
|
4431
|
-
}, (
|
|
4431
|
+
}, (te = (J = (O = c.error) == null ? void 0 : O.response) == null ? void 0 : J.data) != null && te.message && (s.value.message = c.error.response.data.message), i("error", c.error);
|
|
4432
4432
|
return;
|
|
4433
4433
|
}
|
|
4434
4434
|
s.value = null;
|
|
@@ -4437,7 +4437,7 @@ const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 },
|
|
|
4437
4437
|
return vt(async () => {
|
|
4438
4438
|
Ie.value = await t.canCreate();
|
|
4439
4439
|
}), (c, g) => {
|
|
4440
|
-
const O = L("KButton"), J = L("KInputSwitch"), te = L("KBadge"),
|
|
4440
|
+
const O = L("KButton"), J = L("KInputSwitch"), te = L("KBadge"), se = L("KTruncate"), w = L("KDropdownItem"), qe = L("KClipboardProvider");
|
|
4441
4441
|
return h(), M("div", cs, [
|
|
4442
4442
|
S(m(jl), {
|
|
4443
4443
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4518,7 +4518,7 @@ const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 },
|
|
|
4518
4518
|
}, 1032, ["auth-function"])
|
|
4519
4519
|
]),
|
|
4520
4520
|
tags: y(({ rowValue: A }) => [
|
|
4521
|
-
(A == null ? void 0 : A.length) > 0 ? (h(), P(
|
|
4521
|
+
(A == null ? void 0 : A.length) > 0 ? (h(), P(se, { key: 0 }, {
|
|
4522
4522
|
default: y(() => [
|
|
4523
4523
|
(h(!0), M(ye, null, ge(A, (_e) => (h(), P(te, {
|
|
4524
4524
|
key: _e,
|
|
@@ -4608,9 +4608,9 @@ const cs = { class: "kong-ui-entities-gateway-services-list" }, us = { key: 1 },
|
|
|
4608
4608
|
_: 1
|
|
4609
4609
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4610
4610
|
S(m(Zl), {
|
|
4611
|
-
action:
|
|
4612
|
-
"entity-id":
|
|
4613
|
-
"entity-name":
|
|
4611
|
+
action: re.value.action,
|
|
4612
|
+
"entity-id": re.value.id,
|
|
4613
|
+
"entity-name": re.value.name,
|
|
4614
4614
|
"entity-type": m(a)("glossary.gateway_services"),
|
|
4615
4615
|
"on-confirm": q,
|
|
4616
4616
|
visible: C.value,
|
|
@@ -4637,7 +4637,7 @@ const aa = (e, i) => {
|
|
|
4637
4637
|
for (const [a, r] of i)
|
|
4638
4638
|
t[a] = r;
|
|
4639
4639
|
return t;
|
|
4640
|
-
}, Ps = /* @__PURE__ */ aa(ds, [["__scopeId", "data-v-
|
|
4640
|
+
}, Ps = /* @__PURE__ */ aa(ds, [["__scopeId", "data-v-d069f686"]]), ps = { class: "kong-ui-entities-gateway-service-form" }, fs = { key: 0 }, ms = { class: "gateway-service-form-traffic-label" }, gs = { class: "gateway-service-form-margin-bottom" }, ys = {
|
|
4641
4641
|
key: 0,
|
|
4642
4642
|
class: "gateway-service-form-group-fields"
|
|
4643
4643
|
}, vs = {
|
|
@@ -4658,7 +4658,7 @@ const aa = (e, i) => {
|
|
|
4658
4658
|
}, Ts = {
|
|
4659
4659
|
key: 1,
|
|
4660
4660
|
class: "checkbox-aligned-radio"
|
|
4661
|
-
}, $s = /* @__PURE__ */
|
|
4661
|
+
}, $s = /* @__PURE__ */ ae({
|
|
4662
4662
|
__name: "GatewayServiceForm",
|
|
4663
4663
|
props: {
|
|
4664
4664
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4780,7 +4780,7 @@ const aa = (e, i) => {
|
|
|
4780
4780
|
value: "udp",
|
|
4781
4781
|
group: "udp"
|
|
4782
4782
|
}
|
|
4783
|
-
],
|
|
4783
|
+
], re = { url: "url", protocol: "protocol" }, W = (c, g) => {
|
|
4784
4784
|
g.value;
|
|
4785
4785
|
}, x = (c) => c ? parseFloat(c) : 0, q = () => {
|
|
4786
4786
|
r.value = !0, s.errorMessage = "", s.fields.host = j.host, s.fields.path = j.path, s.fields.port = j.port, s.fields.protocol = j.protocol, s.fields.url = j.url, s.fields.retries = j.retries, s.fields.connect_timeout = j.connect_timeout, s.fields.write_timeout = j.write_timeout, s.fields.read_timeout = j.read_timeout, s.fields.client_certificate = j.client_certificate, s.fields.ca_certificates = j.ca_certificates, s.fields.tls_verify_enabled = j.tls_verify_enabled, s.fields.tls_verify_value = j.tls_verify_value;
|
|
@@ -4854,12 +4854,12 @@ const aa = (e, i) => {
|
|
|
4854
4854
|
try {
|
|
4855
4855
|
s.isReadonly = !0, U();
|
|
4856
4856
|
const te = Se();
|
|
4857
|
-
let
|
|
4858
|
-
if (ot(te), await d.post(rt.value, te), p.value === "create" ?
|
|
4859
|
-
const { data: w } =
|
|
4860
|
-
s.fields.name = (w == null ? void 0 : w.name) || "", s.fields.port = w.port || k.getPortFromProtocol(w.protocol), s.fields.protocol = (w == null ? void 0 : w.protocol) || "http", s.fields.host = (w == null ? void 0 : w.host) || "", s.fields.path = (w == null ? void 0 : w.path) || "", s.fields.url = (w == null ? void 0 : w.url) || "", s.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, s.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, s.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, s.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, s.fields.client_certificate = ((g = w == null ? void 0 : w.client_certificate) == null ? void 0 : g.id) || "", s.fields.ca_certificates = (O = w == null ? void 0 : w.ca_certificates) != null && O.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), s.fields.tags = (J = w == null ? void 0 : w.tags) != null && J.length ? w == null ? void 0 : w.tags.join(",") : "", Object.assign(j, s.fields), t("update",
|
|
4857
|
+
let se;
|
|
4858
|
+
if (ot(te), await d.post(rt.value, te), p.value === "create" ? se = await d.post(Me.value, te) : p.value === "edit" && (se = ((c = a.config) == null ? void 0 : c.app) === "konnect" ? await d.put(Me.value, te) : await d.patch(Me.value, te)), se) {
|
|
4859
|
+
const { data: w } = se;
|
|
4860
|
+
s.fields.name = (w == null ? void 0 : w.name) || "", s.fields.port = w.port || k.getPortFromProtocol(w.protocol), s.fields.protocol = (w == null ? void 0 : w.protocol) || "http", s.fields.host = (w == null ? void 0 : w.host) || "", s.fields.path = (w == null ? void 0 : w.path) || "", s.fields.url = (w == null ? void 0 : w.url) || "", s.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, s.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, s.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, s.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, s.fields.client_certificate = ((g = w == null ? void 0 : w.client_certificate) == null ? void 0 : g.id) || "", s.fields.ca_certificates = (O = w == null ? void 0 : w.ca_certificates) != null && O.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), s.fields.tags = (J = w == null ? void 0 : w.tags) != null && J.length ? w == null ? void 0 : w.tags.join(",") : "", Object.assign(j, s.fields), t("update", se == null ? void 0 : se.data);
|
|
4861
4861
|
}
|
|
4862
|
-
return
|
|
4862
|
+
return se;
|
|
4863
4863
|
} catch (te) {
|
|
4864
4864
|
s.errorMessage = u(te), t("error", te);
|
|
4865
4865
|
} finally {
|
|
@@ -4878,7 +4878,7 @@ const aa = (e, i) => {
|
|
|
4878
4878
|
saveFormData: Ie,
|
|
4879
4879
|
canSubmit: Y
|
|
4880
4880
|
}), (c, g) => {
|
|
4881
|
-
const O = L("KInput"), J = L("KLabel"), te = L("KRadio"),
|
|
4881
|
+
const O = L("KInput"), J = L("KLabel"), te = L("KRadio"), se = L("KSelect"), w = L("KCheckbox"), qe = L("KCollapse");
|
|
4882
4882
|
return h(), M("div", ps, [
|
|
4883
4883
|
S(m(Sl), {
|
|
4884
4884
|
"can-submit": Y.value,
|
|
@@ -4960,7 +4960,7 @@ const aa = (e, i) => {
|
|
|
4960
4960
|
modelValue: I.value,
|
|
4961
4961
|
"onUpdate:modelValue": g[2] || (g[2] = (A) => I.value = A),
|
|
4962
4962
|
"data-testid": "gateway-service-url-radio",
|
|
4963
|
-
"selected-value":
|
|
4963
|
+
"selected-value": re.url,
|
|
4964
4964
|
onChange: q
|
|
4965
4965
|
}, {
|
|
4966
4966
|
default: y(() => [
|
|
@@ -4995,7 +4995,7 @@ const aa = (e, i) => {
|
|
|
4995
4995
|
"onUpdate:modelValue": g[4] || (g[4] = (A) => I.value = A),
|
|
4996
4996
|
"checked-group": "protocol",
|
|
4997
4997
|
"data-testid": "gateway-service-protocol-radio",
|
|
4998
|
-
"selected-value":
|
|
4998
|
+
"selected-value": re.protocol,
|
|
4999
4999
|
onChange: q
|
|
5000
5000
|
}, {
|
|
5001
5001
|
default: y(() => [
|
|
@@ -5010,7 +5010,7 @@ const aa = (e, i) => {
|
|
|
5010
5010
|
}, 8, ["modelValue", "selected-value"])
|
|
5011
5011
|
])),
|
|
5012
5012
|
I.value === "protocol" || b.value ? (h(), M("div", vs, [
|
|
5013
|
-
S(
|
|
5013
|
+
S(se, {
|
|
5014
5014
|
modelValue: s.fields.protocol,
|
|
5015
5015
|
"onUpdate:modelValue": g[5] || (g[5] = (A) => s.fields.protocol = A),
|
|
5016
5016
|
appearance: "select",
|
|
@@ -5251,7 +5251,7 @@ const aa = (e, i) => {
|
|
|
5251
5251
|
};
|
|
5252
5252
|
}
|
|
5253
5253
|
});
|
|
5254
|
-
const Us = /* @__PURE__ */ aa($s, [["__scopeId", "data-v-9939382c"]]), Ms = { class: "kong-ui-gateway-service-entity-config-card" }, Rs = /* @__PURE__ */
|
|
5254
|
+
const Us = /* @__PURE__ */ aa($s, [["__scopeId", "data-v-9939382c"]]), Ms = { class: "kong-ui-gateway-service-entity-config-card" }, Rs = /* @__PURE__ */ ae({
|
|
5255
5255
|
__name: "GatewayServiceConfigCard",
|
|
5256
5256
|
props: {
|
|
5257
5257
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|