@kong-ui-public/entities-gateway-services 2.2.13 → 2.2.15
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 oe, ref as
|
|
1
|
+
import { defineComponent as oe, ref as F, computed as $, resolveComponent as U, openBlock as h, createBlock as R, Teleport as ai, createVNode as C, withCtx as v, unref as f, createTextVNode as J, toDisplayString as O, createElementVNode as N, watch as we, renderSlot as Q, createCommentVNode as z, useSlots as at, onBeforeMount as ht, createSlots as $e, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Se, withModifiers as Fe, withDirectives as Re, vShow as De, useCssVars as ri, resolveDynamicComponent as qe, normalizeProps as na, guardReactiveProps as la, mergeProps as dt, onMounted as oi, onUnmounted as sa, normalizeStyle as ni, inject as ca, pushScopeId as li, popScopeId as si, reactive as jt } from "vue";
|
|
2
2
|
import { useRouter as bt } from "vue-router";
|
|
3
3
|
import { createI18n as wt, i18nTComponent as ci } from "@kong-ui-public/i18n";
|
|
4
4
|
import ua from "axios";
|
|
@@ -457,7 +457,7 @@ function Va(e, i, t, r = {
|
|
|
457
457
|
headers: e.requestHeaders
|
|
458
458
|
}), { i18n: { t: n } } = kt(), { debounce: o } = _a(), s = o(async (I) => {
|
|
459
459
|
await c(I);
|
|
460
|
-
}, 200), l =
|
|
460
|
+
}, 200), l = F(!1), d = F(""), m = F(""), p = F([]), b = F([]), y = F(void 0), x = f(i);
|
|
461
461
|
let w = `${e.apiBaseUrl}${x}`;
|
|
462
462
|
e.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
463
463
|
const { isValidUuid: M } = di(), k = async () => {
|
|
@@ -470,7 +470,7 @@ function Va(e, i, t, r = {
|
|
|
470
470
|
} finally {
|
|
471
471
|
l.value = !1;
|
|
472
472
|
}
|
|
473
|
-
}, S =
|
|
473
|
+
}, S = F(""), c = async (I) => {
|
|
474
474
|
var q, L, re;
|
|
475
475
|
if (S.value !== I)
|
|
476
476
|
if (S.value = I || "", y.value === void 0)
|
|
@@ -526,13 +526,13 @@ function Va(e, i, t, r = {
|
|
|
526
526
|
debouncedQueryChange: s
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Na(e, i) {
|
|
530
530
|
const t = f(i), r = $(
|
|
531
531
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
532
532
|
);
|
|
533
533
|
return r.value.search = "", (a) => `${r.value.href}/${a}`;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Fa() {
|
|
536
536
|
const { i18n: { t: e } } = kt();
|
|
537
537
|
return {
|
|
538
538
|
getMessageFromError: (i) => {
|
|
@@ -572,7 +572,7 @@ function qa(e) {
|
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
function pi(e, i) {
|
|
575
|
-
const t =
|
|
575
|
+
const t = F(f(e)), r = F(f(i)), a = $(
|
|
576
576
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
577
577
|
), n = $(
|
|
578
578
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
@@ -592,13 +592,15 @@ function pi(e, i) {
|
|
|
592
592
|
function Ua(e, i, t = "data") {
|
|
593
593
|
const r = f(i), { axiosInstance: a } = _t({
|
|
594
594
|
headers: e.requestHeaders
|
|
595
|
-
}), n = pi(e, r), o =
|
|
595
|
+
}), n = pi(e, r), o = F({
|
|
596
596
|
status: Te.Idle
|
|
597
597
|
});
|
|
598
598
|
return { fetcher: async (s) => {
|
|
599
599
|
try {
|
|
600
600
|
o.value = { status: Te.Loading };
|
|
601
|
-
|
|
601
|
+
let l = n(s);
|
|
602
|
+
l.includes("filter[name]") && (l = `${l}&page[size]=${s.pageSize}&page[number]=${s.page}`);
|
|
603
|
+
const { data: d } = await a.get(l), m = t && t.replace(/[^\w-_]/gi, "");
|
|
602
604
|
let p;
|
|
603
605
|
d[m] && Array.isArray(d[m]) ? p = d[m] : Array.isArray(d) ? p = d : p = Object.keys(d).length ? [d] : [];
|
|
604
606
|
const b = {
|
|
@@ -663,7 +665,7 @@ const fi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
663
665
|
}, Pa = (e, i) => {
|
|
664
666
|
const t = Mt(e), r = Mt(i), a = t.pop(), n = r.pop(), o = Vt(t, r);
|
|
665
667
|
return o !== 0 ? o : a && n ? Vt(a.split("."), n.split(".")) : a || n ? a ? -1 : 1 : 0;
|
|
666
|
-
},
|
|
668
|
+
}, Nt = (e, i, t) => {
|
|
667
669
|
Ra(t);
|
|
668
670
|
const r = Pa(e, i);
|
|
669
671
|
return mi[t].includes(r);
|
|
@@ -674,11 +676,11 @@ const fi = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
674
676
|
"<=": [-1, 0],
|
|
675
677
|
"<": [-1],
|
|
676
678
|
"!=": [-1, 1]
|
|
677
|
-
},
|
|
679
|
+
}, Ft = Object.keys(mi), Ra = (e) => {
|
|
678
680
|
if (typeof e != "string")
|
|
679
681
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
680
|
-
if (
|
|
681
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
682
|
+
if (Ft.indexOf(e) === -1)
|
|
683
|
+
throw new Error(`Invalid operator, expected one of ${Ft.join("|")}`);
|
|
682
684
|
}, Da = (e) => typeof e == "string" && /^[v\d]/.test(e) && fi.test(e);
|
|
683
685
|
function za(e) {
|
|
684
686
|
const { gatewayInfo: i, supportedRange: t } = e;
|
|
@@ -691,10 +693,10 @@ function za(e) {
|
|
|
691
693
|
if (!n)
|
|
692
694
|
return !1;
|
|
693
695
|
const [o, s] = n;
|
|
694
|
-
return !(o &&
|
|
696
|
+
return !(o && Nt(a, o, "<") || s && Nt(a, s, ">"));
|
|
695
697
|
}
|
|
696
698
|
function Ha(e) {
|
|
697
|
-
const i =
|
|
699
|
+
const i = F(0), t = F(0), r = F(!1);
|
|
698
700
|
return we(e, (a) => {
|
|
699
701
|
a && !r.value && (i.value = a.offsetWidth, t.value = a.scrollWidth, r.value = !0);
|
|
700
702
|
}), {
|
|
@@ -704,8 +706,8 @@ function Ha(e) {
|
|
|
704
706
|
const se = {
|
|
705
707
|
useAxios: _t,
|
|
706
708
|
useDebouncedFilter: Va,
|
|
707
|
-
useDeleteUrlBuilder:
|
|
708
|
-
useErrors:
|
|
709
|
+
useDeleteUrlBuilder: Na,
|
|
710
|
+
useErrors: Fa,
|
|
709
711
|
useExternalLinkCreator: qa,
|
|
710
712
|
useFetcher: Ua,
|
|
711
713
|
useFetchUrlBuilder: pi,
|
|
@@ -731,7 +733,7 @@ const se = {
|
|
|
731
733
|
}, Qa = (e) => (li("data-v-ac7fcfb4"), e = e(), si(), e), Xa = ["aria-hidden"], er = {
|
|
732
734
|
key: 0,
|
|
733
735
|
"data-testid": "kui-icon-svg-title"
|
|
734
|
-
}, tr = /* @__PURE__ */ Qa(() => /* @__PURE__ */
|
|
736
|
+
}, tr = /* @__PURE__ */ Qa(() => /* @__PURE__ */ N("path", {
|
|
735
737
|
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",
|
|
736
738
|
fill: "currentColor"
|
|
737
739
|
}, null, -1)), ir = /* @__PURE__ */ oe({
|
|
@@ -878,7 +880,7 @@ const se = {
|
|
|
878
880
|
placement: "bottomStart"
|
|
879
881
|
} : {
|
|
880
882
|
title: r.uuid
|
|
881
|
-
}), s = $(() => !!(r.tooltip && r.successTooltip)), l =
|
|
883
|
+
}), s = $(() => !!(r.tooltip && r.successTooltip)), l = F(r.tooltip), d = $(() => r.tooltip ? {
|
|
882
884
|
label: l.value,
|
|
883
885
|
positionFixed: !0,
|
|
884
886
|
maxWidth: "500px",
|
|
@@ -910,7 +912,7 @@ const se = {
|
|
|
910
912
|
return h(), j("div", or, [
|
|
911
913
|
e.format !== "hidden" ? (h(), R(qe(e.idTooltip ? "KTooltip" : "div"), dt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
912
914
|
default: v(() => [
|
|
913
|
-
|
|
915
|
+
N("div", {
|
|
914
916
|
class: Se([
|
|
915
917
|
"uuid-container",
|
|
916
918
|
e.truncated ? "truncated-uuid" : null,
|
|
@@ -924,11 +926,11 @@ const se = {
|
|
|
924
926
|
default: v(() => [
|
|
925
927
|
C(w, null, {
|
|
926
928
|
default: v(({ copyToClipboard: M }) => [
|
|
927
|
-
|
|
929
|
+
N("span", {
|
|
928
930
|
"data-testid": "copy-to-clipboard",
|
|
929
931
|
role: "button",
|
|
930
932
|
tabindex: "0",
|
|
931
|
-
onClick:
|
|
933
|
+
onClick: Fe((k) => b(M), ["stop"])
|
|
932
934
|
}, [
|
|
933
935
|
C(f(ar), {
|
|
934
936
|
class: "uuid-icon",
|
|
@@ -984,7 +986,7 @@ const se = {
|
|
|
984
986
|
}, {
|
|
985
987
|
default: v(() => [
|
|
986
988
|
e.isArrayItem ? (h(), j("legend", cr, [
|
|
987
|
-
|
|
989
|
+
N("b", null, O(s.value), 1)
|
|
988
990
|
])) : z("", !0),
|
|
989
991
|
(h(!0), j(ve, null, ye(Object.keys(o.value), (m, p) => (h(), R(Ct, {
|
|
990
992
|
key: `${a.value}-property-${p}`,
|
|
@@ -1207,11 +1209,11 @@ const se = {
|
|
|
1207
1209
|
text: t.item.value
|
|
1208
1210
|
};
|
|
1209
1211
|
}
|
|
1210
|
-
}), b =
|
|
1212
|
+
}), b = F(), { isTruncated: y } = se.useTruncationDetector(b);
|
|
1211
1213
|
return (x, w) => {
|
|
1212
1214
|
const M = U("KLabel"), k = U("KBadge"), S = U("KTooltip");
|
|
1213
1215
|
return h(), j("div", br, [
|
|
1214
|
-
|
|
1216
|
+
N("div", {
|
|
1215
1217
|
class: "config-card-details-label",
|
|
1216
1218
|
"data-testid": `${e.item.key}-label`
|
|
1217
1219
|
}, [
|
|
@@ -1225,7 +1227,7 @@ const se = {
|
|
|
1225
1227
|
l.value ? {
|
|
1226
1228
|
name: "tooltip",
|
|
1227
1229
|
fn: v(() => [
|
|
1228
|
-
|
|
1230
|
+
N("div", {
|
|
1229
1231
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1230
1232
|
}, [
|
|
1231
1233
|
Q(x.$slots, "label-tooltip", {}, () => [
|
|
@@ -1238,7 +1240,7 @@ const se = {
|
|
|
1238
1240
|
]), 1024)
|
|
1239
1241
|
], !0)
|
|
1240
1242
|
], 8, wr),
|
|
1241
|
-
|
|
1243
|
+
N("div", {
|
|
1242
1244
|
class: "config-card-details-value",
|
|
1243
1245
|
"data-testid": `${e.item.key}-property-value`
|
|
1244
1246
|
}, [
|
|
@@ -1307,7 +1309,7 @@ const se = {
|
|
|
1307
1309
|
label: f(y) ? e.item.value : ""
|
|
1308
1310
|
}, {
|
|
1309
1311
|
default: v(() => [
|
|
1310
|
-
|
|
1312
|
+
N("span", {
|
|
1311
1313
|
ref_key: "textContent",
|
|
1312
1314
|
ref: b,
|
|
1313
1315
|
class: Se(["attrs-data-text", { truncated: e.truncated }])
|
|
@@ -1351,11 +1353,11 @@ function Vr(e, i) {
|
|
|
1351
1353
|
t += e;
|
|
1352
1354
|
return t;
|
|
1353
1355
|
}
|
|
1354
|
-
function
|
|
1356
|
+
function Nr(e) {
|
|
1355
1357
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1356
1358
|
}
|
|
1357
|
-
var
|
|
1358
|
-
isNothing:
|
|
1359
|
+
var Fr = vi, qr = Mr, Ur = Er, Kr = Vr, Lr = Nr, Br = Or, le = {
|
|
1360
|
+
isNothing: Fr,
|
|
1359
1361
|
isObject: qr,
|
|
1360
1362
|
toArray: Ur,
|
|
1361
1363
|
repeat: Kr,
|
|
@@ -1860,7 +1862,7 @@ function So(e) {
|
|
|
1860
1862
|
function Io(e) {
|
|
1861
1863
|
return e !== null ? e : [];
|
|
1862
1864
|
}
|
|
1863
|
-
var
|
|
1865
|
+
var Ni = new de("tag:yaml.org,2002:omap", {
|
|
1864
1866
|
kind: "sequence",
|
|
1865
1867
|
resolve: So,
|
|
1866
1868
|
construct: Io
|
|
@@ -1884,7 +1886,7 @@ function To(e) {
|
|
|
1884
1886
|
r = o[i], a = Object.keys(r), n[i] = [a[0], r[a[0]]];
|
|
1885
1887
|
return n;
|
|
1886
1888
|
}
|
|
1887
|
-
var
|
|
1889
|
+
var Fi = new de("tag:yaml.org,2002:pairs", {
|
|
1888
1890
|
kind: "sequence",
|
|
1889
1891
|
resolve: xo,
|
|
1890
1892
|
construct: To
|
|
@@ -1912,11 +1914,11 @@ var qi = new de("tag:yaml.org,2002:set", {
|
|
|
1912
1914
|
],
|
|
1913
1915
|
explicit: [
|
|
1914
1916
|
Vi,
|
|
1915
|
-
Fi,
|
|
1916
1917
|
Ni,
|
|
1918
|
+
Fi,
|
|
1917
1919
|
qi
|
|
1918
1920
|
]
|
|
1919
|
-
}), Ie = Object.prototype.hasOwnProperty, Qe = 1, Ui = 2, Ki = 3, Xe = 4, ut = 1, Eo = 2, Lt = 3, Oo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vo = /[\x85\u2028\u2029]/,
|
|
1921
|
+
}), Ie = Object.prototype.hasOwnProperty, Qe = 1, Ui = 2, Ki = 3, Xe = 4, ut = 1, Eo = 2, Lt = 3, Oo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vo = /[\x85\u2028\u2029]/, No = /[,\[\]\{\}]/, Li = /^(?:!|!!|![a-z\-]+!)$/i, Bi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1920
1922
|
function Bt(e) {
|
|
1921
1923
|
return Object.prototype.toString.call(e);
|
|
1922
1924
|
}
|
|
@@ -1932,7 +1934,7 @@ function ge(e) {
|
|
|
1932
1934
|
function Ve(e) {
|
|
1933
1935
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1934
1936
|
}
|
|
1935
|
-
function
|
|
1937
|
+
function Fo(e) {
|
|
1936
1938
|
var i;
|
|
1937
1939
|
return 48 <= e && e <= 57 ? e - 48 : (i = e | 32, 97 <= i && i <= 102 ? i - 97 + 10 : -1);
|
|
1938
1940
|
}
|
|
@@ -2007,7 +2009,7 @@ function Dt(e, i, t, r) {
|
|
|
2007
2009
|
for (le.isObject(t) || E(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(t), o = 0, s = a.length; o < s; o += 1)
|
|
2008
2010
|
n = a[o], Ie.call(i, n) || (i[n] = t[n], r[n] = !0);
|
|
2009
2011
|
}
|
|
2010
|
-
function
|
|
2012
|
+
function Ne(e, i, t, r, a, n, o, s, l) {
|
|
2011
2013
|
var d, m;
|
|
2012
2014
|
if (Array.isArray(a))
|
|
2013
2015
|
for (a = Array.prototype.slice.call(a), d = 0, m = a.length; d < m; d += 1)
|
|
@@ -2110,7 +2112,7 @@ function Ro(e, i) {
|
|
|
2110
2112
|
e.result += Ri[s], e.position++;
|
|
2111
2113
|
else if ((o = qo(s)) > 0) {
|
|
2112
2114
|
for (a = o, n = 0; a > 0; a--)
|
|
2113
|
-
s = e.input.charCodeAt(++e.position), (o =
|
|
2115
|
+
s = e.input.charCodeAt(++e.position), (o = Fo(s)) >= 0 ? n = (n << 4) + o : E(e, "expected hexadecimal character");
|
|
2114
2116
|
e.result += Ko(n), e.position++;
|
|
2115
2117
|
} else
|
|
2116
2118
|
E(e, "unknown escape sequence");
|
|
@@ -2131,7 +2133,7 @@ function Do(e, i) {
|
|
|
2131
2133
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), S = e.input.charCodeAt(++e.position); S !== 0; ) {
|
|
2132
2134
|
if (ne(e, !0, i), S = e.input.charCodeAt(e.position), S === m)
|
|
2133
2135
|
return e.position++, e.tag = o, e.anchor = l, e.kind = y ? "mapping" : "sequence", e.result = s, !0;
|
|
2134
|
-
t ? S === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), M = w = k = null, p = b = !1, S === 63 && (d = e.input.charCodeAt(e.position + 1), ge(d) && (p = b = !0, e.position++, ne(e, !0, i))), r = e.line, a = e.lineStart, n = e.position, Ue(e, i, Qe, !1, !0), M = e.tag, w = e.result, ne(e, !0, i), S = e.input.charCodeAt(e.position), (b || e.line === r) && S === 58 && (p = !0, S = e.input.charCodeAt(++e.position), ne(e, !0, i), Ue(e, i, Qe, !1, !0), k = e.result), y ?
|
|
2136
|
+
t ? S === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), M = w = k = null, p = b = !1, S === 63 && (d = e.input.charCodeAt(e.position + 1), ge(d) && (p = b = !0, e.position++, ne(e, !0, i))), r = e.line, a = e.lineStart, n = e.position, Ue(e, i, Qe, !1, !0), M = e.tag, w = e.result, ne(e, !0, i), S = e.input.charCodeAt(e.position), (b || e.line === r) && S === 58 && (p = !0, S = e.input.charCodeAt(++e.position), ne(e, !0, i), Ue(e, i, Qe, !1, !0), k = e.result), y ? Ne(e, s, x, M, w, k, r, a, n) : p ? s.push(Ne(e, null, x, M, w, k, r, a, n)) : s.push(w), ne(e, !0, i), S = e.input.charCodeAt(e.position), S === 44 ? (t = !0, S = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2135
2137
|
}
|
|
2136
2138
|
E(e, "unexpected end of the stream within a flow collection");
|
|
2137
2139
|
}
|
|
@@ -2204,7 +2206,7 @@ function Ho(e, i, t) {
|
|
|
2204
2206
|
return !1;
|
|
2205
2207
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = p), S = e.input.charCodeAt(e.position); S !== 0; ) {
|
|
2206
2208
|
if (!M && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), n = e.line, (S === 63 || S === 58) && ge(r))
|
|
2207
|
-
S === 63 ? (M && (
|
|
2209
|
+
S === 63 ? (M && (Ne(e, p, b, y, x, null, o, s, l), y = x = w = null), k = !0, M = !0, a = !0) : M ? (M = !1, a = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, S = r;
|
|
2208
2210
|
else {
|
|
2209
2211
|
if (o = e.line, s = e.lineStart, l = e.position, !Ue(e, t, Ui, !1, !0))
|
|
2210
2212
|
break;
|
|
@@ -2212,7 +2214,7 @@ function Ho(e, i, t) {
|
|
|
2212
2214
|
for (S = e.input.charCodeAt(e.position); je(S); )
|
|
2213
2215
|
S = e.input.charCodeAt(++e.position);
|
|
2214
2216
|
if (S === 58)
|
|
2215
|
-
S = e.input.charCodeAt(++e.position), ge(S) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), M && (
|
|
2217
|
+
S = e.input.charCodeAt(++e.position), ge(S) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), M && (Ne(e, p, b, y, x, null, o, s, l), y = x = w = null), k = !0, M = !1, a = !1, y = e.tag, x = e.result;
|
|
2216
2218
|
else if (k)
|
|
2217
2219
|
E(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2218
2220
|
else
|
|
@@ -2222,12 +2224,12 @@ function Ho(e, i, t) {
|
|
|
2222
2224
|
else
|
|
2223
2225
|
return e.tag = d, e.anchor = m, !0;
|
|
2224
2226
|
}
|
|
2225
|
-
if ((e.line === n || e.lineIndent > i) && (M && (o = e.line, s = e.lineStart, l = e.position), Ue(e, i, Xe, !0, a) && (M ? x = e.result : w = e.result), M || (
|
|
2227
|
+
if ((e.line === n || e.lineIndent > i) && (M && (o = e.line, s = e.lineStart, l = e.position), Ue(e, i, Xe, !0, a) && (M ? x = e.result : w = e.result), M || (Ne(e, p, b, y, x, w, o, s, l), y = x = w = null), ne(e, !0, -1), S = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > i) && S !== 0)
|
|
2226
2228
|
E(e, "bad indentation of a mapping entry");
|
|
2227
2229
|
else if (e.lineIndent < i)
|
|
2228
2230
|
break;
|
|
2229
2231
|
}
|
|
2230
|
-
return M &&
|
|
2232
|
+
return M && Ne(e, p, b, y, x, null, o, s, l), k && (e.tag = d, e.anchor = m, e.kind = "mapping", e.result = p), k;
|
|
2231
2233
|
}
|
|
2232
2234
|
function Go(e) {
|
|
2233
2235
|
var i, t = !1, r = !1, a, n, o;
|
|
@@ -2241,7 +2243,7 @@ function Go(e) {
|
|
|
2241
2243
|
} else {
|
|
2242
2244
|
for (; o !== 0 && !ge(o); )
|
|
2243
2245
|
o === 33 && (r ? E(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(i - 1, e.position + 1), Li.test(a) || E(e, "named tag handle cannot contain such characters"), r = !0, i = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2244
|
-
n = e.input.slice(i, e.position),
|
|
2246
|
+
n = e.input.slice(i, e.position), No.test(n) && E(e, "tag suffix cannot contain flow indicator characters");
|
|
2245
2247
|
}
|
|
2246
2248
|
n && !Bi.test(n) && E(e, "tag name cannot contain such characters: " + n);
|
|
2247
2249
|
try {
|
|
@@ -2649,7 +2651,7 @@ function vt(e, i, t) {
|
|
|
2649
2651
|
for (r = Object.keys(e), a = 0, n = r.length; a < n; a += 1)
|
|
2650
2652
|
vt(e[r[a]], i, t);
|
|
2651
2653
|
}
|
|
2652
|
-
function
|
|
2654
|
+
function Nn(e, i) {
|
|
2653
2655
|
i = i || {};
|
|
2654
2656
|
var t = new Cn(i);
|
|
2655
2657
|
t.noRefs || Vn(e, t);
|
|
@@ -2657,8 +2659,8 @@ function Fn(e, i) {
|
|
|
2657
2659
|
return t.replacer && (r = t.replacer.call({ "": r }, "", r)), ke(t, 0, r, !0, !0) ? t.dump + `
|
|
2658
2660
|
` : "";
|
|
2659
2661
|
}
|
|
2660
|
-
var
|
|
2661
|
-
dump:
|
|
2662
|
+
var Fn = Nn, qn = {
|
|
2663
|
+
dump: Fn
|
|
2662
2664
|
};
|
|
2663
2665
|
function $t(e, i) {
|
|
2664
2666
|
return function() {
|
|
@@ -2670,13 +2672,13 @@ var Un = de, Kn = bi, Ln = Ci, Bn = Ti, Pn = $i, Rn = It, Dn = Hi.load, zn = Hi.
|
|
|
2670
2672
|
float: xi,
|
|
2671
2673
|
map: ki,
|
|
2672
2674
|
null: Si,
|
|
2673
|
-
pairs:
|
|
2675
|
+
pairs: Fi,
|
|
2674
2676
|
set: qi,
|
|
2675
2677
|
timestamp: Ei,
|
|
2676
2678
|
bool: Ii,
|
|
2677
2679
|
int: Ai,
|
|
2678
2680
|
merge: Oi,
|
|
2679
|
-
omap:
|
|
2681
|
+
omap: Ni,
|
|
2680
2682
|
seq: _i,
|
|
2681
2683
|
str: wi
|
|
2682
2684
|
}, Wn = $t("safeLoad", "load"), Yn = $t("safeLoadAll", "loadAll"), Zn = $t("safeDump", "dump"), Qn = {
|
|
@@ -2743,7 +2745,7 @@ const Xn = {
|
|
|
2743
2745
|
ri((l) => ({
|
|
2744
2746
|
"7b486894": `${s.value}ch`
|
|
2745
2747
|
}));
|
|
2746
|
-
const i = e, t = at(), { i18n: { t: r } } = se.useI18n(), a = (l) => !!(l.tooltip || t[`${l.key}-label-tooltip`]), n =
|
|
2748
|
+
const i = e, t = at(), { i18n: { t: r } } = se.useI18n(), a = (l) => !!(l.tooltip || t[`${l.key}-label-tooltip`]), n = F(""), o = F(""), s = $(() => {
|
|
2747
2749
|
var l;
|
|
2748
2750
|
if (!i.fetcherUrl)
|
|
2749
2751
|
return 0;
|
|
@@ -2833,7 +2835,7 @@ const Xn = {
|
|
|
2833
2835
|
}, sl = (e) => (li("data-v-84d5ee61"), e = e(), si(), e), cl = ["aria-hidden"], ul = {
|
|
2834
2836
|
key: 0,
|
|
2835
2837
|
"data-testid": "kui-icon-svg-title"
|
|
2836
|
-
}, dl = /* @__PURE__ */ sl(() => /* @__PURE__ */
|
|
2838
|
+
}, dl = /* @__PURE__ */ sl(() => /* @__PURE__ */ N("path", {
|
|
2837
2839
|
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",
|
|
2838
2840
|
fill: "currentColor"
|
|
2839
2841
|
}, null, -1)), pl = /* @__PURE__ */ oe({
|
|
@@ -3029,7 +3031,7 @@ const Xn = {
|
|
|
3029
3031
|
label: "YAML",
|
|
3030
3032
|
value: "yaml"
|
|
3031
3033
|
}
|
|
3032
|
-
], p =
|
|
3034
|
+
], p = F("structured"), b = (T) => {
|
|
3033
3035
|
p.value = T == null ? void 0 : T.value;
|
|
3034
3036
|
}, y = {
|
|
3035
3037
|
id: {
|
|
@@ -3065,7 +3067,7 @@ const Xn = {
|
|
|
3065
3067
|
// the last property displayed
|
|
3066
3068
|
section: pe.Basic
|
|
3067
3069
|
}
|
|
3068
|
-
}, x =
|
|
3070
|
+
}, x = F(!1), w = F(!1), M = F(""), k = F(), S = $(() => {
|
|
3069
3071
|
var T, D, K;
|
|
3070
3072
|
if (!k.value)
|
|
3071
3073
|
return [];
|
|
@@ -3158,7 +3160,7 @@ const Xn = {
|
|
|
3158
3160
|
const K = U("KLabel"), B = U("KSelect"), W = U("KButton"), H = U("KClipboardProvider"), X = U("KSkeleton"), G = U("KEmptyState"), ae = U("KCard");
|
|
3159
3161
|
return h(), R(ae, { class: "kong-ui-entity-base-config-card" }, $e({
|
|
3160
3162
|
actions: v(() => [
|
|
3161
|
-
|
|
3163
|
+
N("div", gl, [
|
|
3162
3164
|
Q(T.$slots, "actions", {}, void 0, !0),
|
|
3163
3165
|
e.config.jsonYamlEnabled ? (h(), R(K, {
|
|
3164
3166
|
key: 0,
|
|
@@ -3184,7 +3186,7 @@ const Xn = {
|
|
|
3184
3186
|
"data-testid": "book-icon"
|
|
3185
3187
|
}, {
|
|
3186
3188
|
default: v(() => [
|
|
3187
|
-
|
|
3189
|
+
N("a", {
|
|
3188
3190
|
href: e.configCardDoc,
|
|
3189
3191
|
rel: "noopener",
|
|
3190
3192
|
target: "_blank"
|
|
@@ -3224,7 +3226,7 @@ const Xn = {
|
|
|
3224
3226
|
"is-error": ""
|
|
3225
3227
|
}, {
|
|
3226
3228
|
message: v(() => [
|
|
3227
|
-
|
|
3229
|
+
N("h3", null, O(M.value), 1)
|
|
3228
3230
|
]),
|
|
3229
3231
|
_: 1
|
|
3230
3232
|
})) : z("", !0),
|
|
@@ -3284,7 +3286,7 @@ const Xn = {
|
|
|
3284
3286
|
e.hideTitle ? void 0 : {
|
|
3285
3287
|
name: "title",
|
|
3286
3288
|
fn: v(() => [
|
|
3287
|
-
|
|
3289
|
+
N("div", ml, [
|
|
3288
3290
|
Q(T.$slots, "title", {}, () => [
|
|
3289
3291
|
J(O(f(o)("baseConfigCard.title")), 1)
|
|
3290
3292
|
], !0)
|
|
@@ -3350,7 +3352,7 @@ const Xn = {
|
|
|
3350
3352
|
var t;
|
|
3351
3353
|
const r = i, a = e, n = bt(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: s } = se.useErrors(), { axiosInstance: l } = se.useAxios({
|
|
3352
3354
|
headers: (t = a.config) == null ? void 0 : t.requestHeaders
|
|
3353
|
-
}), d =
|
|
3355
|
+
}), d = F(!1), m = F(!1), p = F(""), b = $(() => a.canSubmit === !1 || a.isReadonly), y = $(() => {
|
|
3354
3356
|
var k, S;
|
|
3355
3357
|
if (!a.editId)
|
|
3356
3358
|
return "";
|
|
@@ -3392,14 +3394,14 @@ const Xn = {
|
|
|
3392
3394
|
"is-error": !0
|
|
3393
3395
|
}, {
|
|
3394
3396
|
message: v(() => [
|
|
3395
|
-
|
|
3397
|
+
N("h3", null, O(p.value), 1)
|
|
3396
3398
|
]),
|
|
3397
3399
|
_: 1
|
|
3398
3400
|
}, 8, ["cta-text"])) : (h(), j("form", {
|
|
3399
3401
|
key: 2,
|
|
3400
3402
|
"data-testid": "form-content",
|
|
3401
|
-
onReset:
|
|
3402
|
-
onSubmit:
|
|
3403
|
+
onReset: Fe(w, ["prevent"]),
|
|
3404
|
+
onSubmit: Fe(M, ["prevent"])
|
|
3403
3405
|
}, [
|
|
3404
3406
|
Q(k.$slots, "default", {}, void 0, !0),
|
|
3405
3407
|
e.errorMessage ? (h(), R(q, {
|
|
@@ -3408,7 +3410,7 @@ const Xn = {
|
|
|
3408
3410
|
appearance: "danger",
|
|
3409
3411
|
"data-testid": "form-error"
|
|
3410
3412
|
}, null, 8, ["alert-message"])) : z("", !0),
|
|
3411
|
-
|
|
3413
|
+
N("div", Cl, [
|
|
3412
3414
|
Q(k.$slots, "form-actions", {}, () => [
|
|
3413
3415
|
C(L, {
|
|
3414
3416
|
appearance: "secondary",
|
|
@@ -3473,7 +3475,7 @@ const Xn = {
|
|
|
3473
3475
|
}, s = () => {
|
|
3474
3476
|
var w, M, k;
|
|
3475
3477
|
d.value = ((w = r.value) == null ? void 0 : w.getBoundingClientRect().width) || 0, m.value = ((M = t.value) == null ? void 0 : M.clientWidth) || 0, p.value = ((k = l.value) == null ? void 0 : k.innerText) || "";
|
|
3476
|
-
}, l =
|
|
3478
|
+
}, l = F({}), d = F(0), m = F(0), p = F(""), b = $(() => [r.value, t.value]), y = we(
|
|
3477
3479
|
b,
|
|
3478
3480
|
(w) => {
|
|
3479
3481
|
if (a.value && (o(), "ResizeObserver" in window && window)) {
|
|
@@ -3655,7 +3657,7 @@ const Xn = {
|
|
|
3655
3657
|
"data-rowid": q.id,
|
|
3656
3658
|
"data-testid": q.name,
|
|
3657
3659
|
...t.rowAttributes(q)
|
|
3658
|
-
}), m =
|
|
3660
|
+
}), m = F({}), p = (q) => {
|
|
3659
3661
|
var L;
|
|
3660
3662
|
return (L = m.value) == null ? void 0 : L.$el.querySelector(`[data-rowid="${q.id}"]`);
|
|
3661
3663
|
}, b = (q) => {
|
|
@@ -3725,7 +3727,7 @@ const Xn = {
|
|
|
3725
3727
|
"onUpdate:tablePreferences": I
|
|
3726
3728
|
}, $e({
|
|
3727
3729
|
toolbar: v(({ state: B }) => [
|
|
3728
|
-
Re(
|
|
3730
|
+
Re(N("div", $l, [
|
|
3729
3731
|
Q(q.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3730
3732
|
q.$slots["toolbar-button"] ? (h(), j("div", jl, [
|
|
3731
3733
|
Q(q.$slots, "toolbar-button", {}, void 0, !0)
|
|
@@ -3735,7 +3737,7 @@ const Xn = {
|
|
|
3735
3737
|
])
|
|
3736
3738
|
]),
|
|
3737
3739
|
actions: v(({ row: B, rowKey: W, rowValue: H }) => [
|
|
3738
|
-
|
|
3740
|
+
N("div", {
|
|
3739
3741
|
class: "actions-container",
|
|
3740
3742
|
"data-testid": B.name
|
|
3741
3743
|
}, [
|
|
@@ -3801,10 +3803,10 @@ const Xn = {
|
|
|
3801
3803
|
}), Ol = /* @__PURE__ */ he(El, [["__scopeId", "data-v-57b5a97b"]]), Vl = {
|
|
3802
3804
|
key: 0,
|
|
3803
3805
|
class: "kong-ui-entity-delete-error"
|
|
3804
|
-
},
|
|
3806
|
+
}, Nl = {
|
|
3805
3807
|
key: 1,
|
|
3806
3808
|
class: "description"
|
|
3807
|
-
},
|
|
3809
|
+
}, Fl = /* @__PURE__ */ oe({
|
|
3808
3810
|
__name: "EntityDeleteModal",
|
|
3809
3811
|
props: {
|
|
3810
3812
|
visible: {
|
|
@@ -3883,14 +3885,14 @@ const Xn = {
|
|
|
3883
3885
|
r.entityName ? {
|
|
3884
3886
|
name: "entityName",
|
|
3885
3887
|
fn: v(() => [
|
|
3886
|
-
|
|
3888
|
+
N("strong", null, O(r.entityName), 1)
|
|
3887
3889
|
]),
|
|
3888
3890
|
key: "0"
|
|
3889
3891
|
} : void 0
|
|
3890
3892
|
]), 1032, ["keypath"]),
|
|
3891
|
-
r.description || l.$slots.description ? (h(), j("div",
|
|
3893
|
+
r.description || l.$slots.description ? (h(), j("div", Nl, [
|
|
3892
3894
|
Q(l.$slots, "description", {}, () => [
|
|
3893
|
-
|
|
3895
|
+
N("p", null, O(r.description), 1)
|
|
3894
3896
|
], !0)
|
|
3895
3897
|
])) : z("", !0)
|
|
3896
3898
|
]),
|
|
@@ -3898,7 +3900,7 @@ const Xn = {
|
|
|
3898
3900
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3899
3901
|
};
|
|
3900
3902
|
}
|
|
3901
|
-
}), ql = /* @__PURE__ */ he(
|
|
3903
|
+
}), ql = /* @__PURE__ */ he(Fl, [["__scopeId", "data-v-1c9a2a07"]]), Ul = {
|
|
3902
3904
|
fill: "none",
|
|
3903
3905
|
height: "20",
|
|
3904
3906
|
viewBox: "0 0 20 20",
|
|
@@ -3922,15 +3924,15 @@ const Xn = {
|
|
|
3922
3924
|
},
|
|
3923
3925
|
setup(e) {
|
|
3924
3926
|
return (i, t) => (h(), j("svg", Ul, [
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
+
N("mask", Kl, [
|
|
3928
|
+
N("rect", {
|
|
3927
3929
|
fill: e.color,
|
|
3928
3930
|
height: "20",
|
|
3929
3931
|
width: "20"
|
|
3930
3932
|
}, null, 8, Ll)
|
|
3931
3933
|
]),
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
+
N("g", Bl, [
|
|
3935
|
+
N("path", {
|
|
3934
3936
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3935
3937
|
fill: e.color
|
|
3936
3938
|
}, null, 8, Pl)
|
|
@@ -3960,7 +3962,7 @@ const Xn = {
|
|
|
3960
3962
|
},
|
|
3961
3963
|
emits: ["update:modelValue"],
|
|
3962
3964
|
setup(e, { emit: i }) {
|
|
3963
|
-
const { i18n: { t } } = se.useI18n(), r = e, a = i, n =
|
|
3965
|
+
const { i18n: { t } } = se.useI18n(), r = e, a = i, n = F(!1), o = F({}), s = $(() => {
|
|
3964
3966
|
const k = [];
|
|
3965
3967
|
return new URLSearchParams(r.modelValue).forEach((S, c) => {
|
|
3966
3968
|
S !== "" && k.push(c);
|
|
@@ -4028,7 +4030,7 @@ const Xn = {
|
|
|
4028
4030
|
]),
|
|
4029
4031
|
_: 1
|
|
4030
4032
|
}),
|
|
4031
|
-
Re(
|
|
4033
|
+
Re(N("div", {
|
|
4032
4034
|
class: "kong-ui-entity-filter-backdrop",
|
|
4033
4035
|
onClick: d
|
|
4034
4036
|
}, null, 512), [
|
|
@@ -4043,9 +4045,9 @@ const Xn = {
|
|
|
4043
4045
|
"last-menu-item": T === l.value.length - 1
|
|
4044
4046
|
}, {
|
|
4045
4047
|
itemTitle: v(() => [
|
|
4046
|
-
|
|
4048
|
+
N("span", Dl, [
|
|
4047
4049
|
J(O(P.label) + " ", 1),
|
|
4048
|
-
Re(
|
|
4050
|
+
Re(N("span", zl, null, 512), [
|
|
4049
4051
|
[De, s.value.includes(P.value)]
|
|
4050
4052
|
])
|
|
4051
4053
|
])
|
|
@@ -4053,8 +4055,8 @@ const Xn = {
|
|
|
4053
4055
|
itemBody: v(() => {
|
|
4054
4056
|
var D, K;
|
|
4055
4057
|
return [
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
+
N("div", Hl, [
|
|
4059
|
+
N("label", {
|
|
4058
4060
|
class: "menu-item-label",
|
|
4059
4061
|
for: p(P.value)
|
|
4060
4062
|
}, O(f(t)("filter.fieldLabel")), 9, Gl),
|
|
@@ -4076,7 +4078,7 @@ const Xn = {
|
|
|
4076
4078
|
type: y(P.value)
|
|
4077
4079
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4078
4080
|
]),
|
|
4079
|
-
|
|
4081
|
+
N("div", Jl, [
|
|
4080
4082
|
C(I, {
|
|
4081
4083
|
appearance: "tertiary",
|
|
4082
4084
|
"data-testid": "apply-filter",
|
|
@@ -4106,7 +4108,7 @@ const Xn = {
|
|
|
4106
4108
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
4107
4109
|
]),
|
|
4108
4110
|
actionButton: v(() => [
|
|
4109
|
-
|
|
4111
|
+
N("div", Wl, [
|
|
4110
4112
|
C(I, {
|
|
4111
4113
|
appearance: "tertiary",
|
|
4112
4114
|
size: "small",
|
|
@@ -4158,7 +4160,7 @@ const Xn = {
|
|
|
4158
4160
|
},
|
|
4159
4161
|
emits: ["canceled", "proceed"],
|
|
4160
4162
|
setup(e, { emit: i }) {
|
|
4161
|
-
const { i18n: { t }, i18nT: r } = se.useI18n(), a = e, n = i, o =
|
|
4163
|
+
const { i18n: { t }, i18nT: r } = se.useI18n(), a = e, n = i, o = F(!1), s = $(
|
|
4162
4164
|
() => a.action === "enable" ? t("toggleModal.enable.title", { entityType: a.entityType }) : t("toggleModal.disable.title", { entityType: a.entityType })
|
|
4163
4165
|
), l = $(
|
|
4164
4166
|
() => a.action === "enable" ? t("toggleModal.enable.confirmText") : t("toggleModal.disable.confirmText")
|
|
@@ -4196,7 +4198,7 @@ const Xn = {
|
|
|
4196
4198
|
J(O(e.entityType), 1)
|
|
4197
4199
|
]),
|
|
4198
4200
|
entityName: v(() => [
|
|
4199
|
-
|
|
4201
|
+
N("strong", null, O(e.entityName), 1)
|
|
4200
4202
|
]),
|
|
4201
4203
|
_: 1
|
|
4202
4204
|
}, 8, ["keypath"])
|
|
@@ -4228,7 +4230,7 @@ const Xn = {
|
|
|
4228
4230
|
}
|
|
4229
4231
|
},
|
|
4230
4232
|
setup(e) {
|
|
4231
|
-
const i = e, t =
|
|
4233
|
+
const i = e, t = F(void 0), r = $(() => t.value === !0 || t.value !== void 0 && i.forceShow === !0);
|
|
4232
4234
|
return we(() => i.authFunction, async () => {
|
|
4233
4235
|
t.value = await i.authFunction();
|
|
4234
4236
|
}, { immediate: !0 }), (a, n) => r.value ? Q(a.$slots, "default", {
|
|
@@ -4274,7 +4276,7 @@ const Xn = {
|
|
|
4274
4276
|
return (t, r) => (h(), j("fieldset", {
|
|
4275
4277
|
class: Se(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4276
4278
|
}, [
|
|
4277
|
-
|
|
4279
|
+
N("div", Xl, [
|
|
4278
4280
|
e.hideInfoHeader ? z("", !0) : (h(), j("div", {
|
|
4279
4281
|
key: 0,
|
|
4280
4282
|
class: Se(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
@@ -4282,14 +4284,14 @@ const Xn = {
|
|
|
4282
4284
|
e.title ? (h(), j("h4", es, O(e.title), 1)) : z("", !0),
|
|
4283
4285
|
e.description || f(i).description ? (h(), j("div", ts, [
|
|
4284
4286
|
Q(t.$slots, "description", {}, () => [
|
|
4285
|
-
|
|
4287
|
+
N("p", null, O(e.description), 1)
|
|
4286
4288
|
], !0)
|
|
4287
4289
|
])) : z("", !0),
|
|
4288
4290
|
f(i).footer ? (h(), j("div", is, [
|
|
4289
4291
|
Q(t.$slots, "footer", {}, void 0, !0)
|
|
4290
4292
|
])) : z("", !0)
|
|
4291
4293
|
], 2)),
|
|
4292
|
-
|
|
4294
|
+
N("div", as, [
|
|
4293
4295
|
Q(t.$slots, "default", {}, void 0, !0)
|
|
4294
4296
|
])
|
|
4295
4297
|
])
|
|
@@ -4344,7 +4346,7 @@ const Xn = {
|
|
|
4344
4346
|
var Ke;
|
|
4345
4347
|
const t = i, r = e, { i18n: { t: a } } = Ze.useI18n(), n = bt(), { axiosInstance: o } = ra({
|
|
4346
4348
|
headers: (Ke = r.config) == null ? void 0 : Ke.requestHeaders
|
|
4347
|
-
}), s =
|
|
4349
|
+
}), s = F(1), l = $(() => r.config.app !== "kongManager" || !!r.config.disableSorting), d = {
|
|
4348
4350
|
name: { label: a("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
4349
4351
|
protocol: { label: a("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
|
|
4350
4352
|
host: { label: a("gateway_services.list.table_headers.host"), searchable: !0, sortable: !0 },
|
|
@@ -4356,7 +4358,7 @@ const Xn = {
|
|
|
4356
4358
|
var g, V;
|
|
4357
4359
|
let u = `${r.config.apiBaseUrl}${ze.list[r.config.app].all}`;
|
|
4358
4360
|
return r.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (V = r.config) != null && V.workspace ? `/${r.config.workspace}` : "")), u;
|
|
4359
|
-
}), b = $(() => r.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), y =
|
|
4361
|
+
}), b = $(() => r.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), y = F(""), x = $(() => {
|
|
4360
4362
|
const u = r.config.app === "konnect" || r.config.isExactMatch;
|
|
4361
4363
|
if (u)
|
|
4362
4364
|
return {
|
|
@@ -4373,12 +4375,12 @@ const Xn = {
|
|
|
4373
4375
|
y.value = "";
|
|
4374
4376
|
}, S = () => {
|
|
4375
4377
|
s.value++;
|
|
4376
|
-
}, c =
|
|
4378
|
+
}, c = F(null), I = $(() => ({
|
|
4377
4379
|
ctaPath: r.config.createRoute,
|
|
4378
4380
|
ctaText: xe.value ? a("actions.create") : void 0,
|
|
4379
4381
|
message: a("gateway_services.list.empty_state.description"),
|
|
4380
4382
|
title: xe.value ? a("gateway_services.list.empty_state.title") : ""
|
|
4381
|
-
})), q =
|
|
4383
|
+
})), q = F(!1), L = F(null), re = $(() => {
|
|
4382
4384
|
const u = {
|
|
4383
4385
|
action: "disable",
|
|
4384
4386
|
id: "",
|
|
@@ -4442,7 +4444,7 @@ const Xn = {
|
|
|
4442
4444
|
}), X = (u) => ({
|
|
4443
4445
|
label: a("actions.edit"),
|
|
4444
4446
|
to: r.config.getEditRoute(u)
|
|
4445
|
-
}), G =
|
|
4447
|
+
}), G = F(void 0), ae = F(!1), Z = F(!1), ee = F(""), ue = os(r.config, p.value), ot = (u) => {
|
|
4446
4448
|
G.value = u, ae.value = !0;
|
|
4447
4449
|
}, Me = () => {
|
|
4448
4450
|
ae.value = !1, G.value = void 0;
|
|
@@ -4458,7 +4460,7 @@ const Xn = {
|
|
|
4458
4460
|
Z.value = !1;
|
|
4459
4461
|
}
|
|
4460
4462
|
}
|
|
4461
|
-
}, Ae =
|
|
4463
|
+
}, Ae = F(!0);
|
|
4462
4464
|
we(M, (u) => {
|
|
4463
4465
|
var g, V, Y, ie;
|
|
4464
4466
|
if (Array.isArray((g = u == null ? void 0 : u.response) == null ? void 0 : g.data) && (Ae.value = u.response.data.length > 0), u.status === Te.Error) {
|
|
@@ -4469,7 +4471,7 @@ const Xn = {
|
|
|
4469
4471
|
}
|
|
4470
4472
|
c.value = null;
|
|
4471
4473
|
});
|
|
4472
|
-
const xe =
|
|
4474
|
+
const xe = F(!1);
|
|
4473
4475
|
return ht(async () => {
|
|
4474
4476
|
xe.value = await r.canCreate();
|
|
4475
4477
|
}), (u, g) => {
|
|
@@ -4528,7 +4530,7 @@ const Xn = {
|
|
|
4528
4530
|
], 8, ["disabled"]))
|
|
4529
4531
|
]),
|
|
4530
4532
|
name: v(({ rowValue: A }) => [
|
|
4531
|
-
|
|
4533
|
+
N("b", null, O(A ?? "-"), 1)
|
|
4532
4534
|
]),
|
|
4533
4535
|
enabled: v(({ row: A }) => [
|
|
4534
4536
|
C(f(Be), {
|
|
@@ -4536,8 +4538,8 @@ const Xn = {
|
|
|
4536
4538
|
"force-show": ""
|
|
4537
4539
|
}, {
|
|
4538
4540
|
default: v(({ isAllowed: _e }) => [
|
|
4539
|
-
|
|
4540
|
-
onClick: g[1] || (g[1] =
|
|
4541
|
+
N("div", {
|
|
4542
|
+
onClick: g[1] || (g[1] = Fe(() => {
|
|
4541
4543
|
}, ["stop"]))
|
|
4542
4544
|
}, [
|
|
4543
4545
|
C(Y, {
|
|
@@ -4546,7 +4548,7 @@ const Xn = {
|
|
|
4546
4548
|
"data-testid": `row-${A.id}-toggle-input`,
|
|
4547
4549
|
disabled: !_e,
|
|
4548
4550
|
label: A.enabled ? f(a)("actions.enable.enabled_label") : f(a)("actions.enable.disabled_label"),
|
|
4549
|
-
onClick:
|
|
4551
|
+
onClick: Fe((Ye) => P(A), ["prevent"])
|
|
4550
4552
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "label", "onClick"])
|
|
4551
4553
|
])
|
|
4552
4554
|
]),
|
|
@@ -4558,7 +4560,7 @@ const Xn = {
|
|
|
4558
4560
|
default: v(() => [
|
|
4559
4561
|
(h(!0), j(ve, null, ye(A, (_e) => (h(), R(ie, {
|
|
4560
4562
|
key: _e,
|
|
4561
|
-
onClick: g[2] || (g[2] =
|
|
4563
|
+
onClick: g[2] || (g[2] = Fe(() => {
|
|
4562
4564
|
}, ["stop"]))
|
|
4563
4565
|
}, {
|
|
4564
4566
|
default: v(() => [
|
|
@@ -4718,9 +4720,9 @@ const Xn = {
|
|
|
4718
4720
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
4719
4721
|
setup(e, { expose: i, emit: t }) {
|
|
4720
4722
|
var Ke;
|
|
4721
|
-
const r = t, a = e, n =
|
|
4723
|
+
const r = t, a = e, n = F(!0), o = bt(), { i18nT: s, i18n: { t: l } } = Ze.useI18n(), { getMessageFromError: d } = ns(), { axiosInstance: m } = ra({
|
|
4722
4724
|
headers: (Ke = a.config) == null ? void 0 : Ke.requestHeaders
|
|
4723
|
-
}), p = $(() => ze.form[a.config.app].edit), b = $(() => a.gatewayServiceId ? pt.Edit : pt.Create), y =
|
|
4725
|
+
}), p = $(() => ze.form[a.config.app].edit), b = $(() => a.gatewayServiceId ? pt.Edit : pt.Create), y = F(!1), x = $(() => !!a.gatewayServiceId), w = F(x.value ? "protocol" : "url"), M = Ze.usePortFromProtocol(), k = F(""), S = $(() => !!k.value), c = jt({
|
|
4724
4726
|
fields: {
|
|
4725
4727
|
name: "",
|
|
4726
4728
|
protocol: "http",
|
|
@@ -4982,7 +4984,7 @@ const Xn = {
|
|
|
4982
4984
|
}, {
|
|
4983
4985
|
default: v(() => [
|
|
4984
4986
|
x.value ? z("", !0) : (h(), j("div", ms, [
|
|
4985
|
-
|
|
4987
|
+
N("div", gs, [
|
|
4986
4988
|
C(Y, { required: "" }, {
|
|
4987
4989
|
default: v(() => [
|
|
4988
4990
|
J(O(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
@@ -4990,7 +4992,7 @@ const Xn = {
|
|
|
4990
4992
|
_: 1
|
|
4991
4993
|
})
|
|
4992
4994
|
]),
|
|
4993
|
-
|
|
4995
|
+
N("div", ys, [
|
|
4994
4996
|
C(ie, {
|
|
4995
4997
|
modelValue: w.value,
|
|
4996
4998
|
"onUpdate:modelValue": g[2] || (g[2] = (A) => w.value = A),
|
|
@@ -5115,8 +5117,8 @@ const Xn = {
|
|
|
5115
5117
|
"trigger-label": f(l)("gateway_services.form.sections.keys.viewAdvancedFields")
|
|
5116
5118
|
}, {
|
|
5117
5119
|
default: v(() => [
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
+
N("div", ws, [
|
|
5121
|
+
N("div", _s, [
|
|
5120
5122
|
C(V, {
|
|
5121
5123
|
modelValue: c.fields.retries,
|
|
5122
5124
|
"onUpdate:modelValue": [
|
|
@@ -5134,7 +5136,7 @@ const Xn = {
|
|
|
5134
5136
|
type: "number"
|
|
5135
5137
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5136
5138
|
]),
|
|
5137
|
-
|
|
5139
|
+
N("div", ks, [
|
|
5138
5140
|
C(V, {
|
|
5139
5141
|
modelValue: c.fields.connect_timeout,
|
|
5140
5142
|
"onUpdate:modelValue": [
|
|
@@ -5152,7 +5154,7 @@ const Xn = {
|
|
|
5152
5154
|
type: "number"
|
|
5153
5155
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5154
5156
|
]),
|
|
5155
|
-
|
|
5157
|
+
N("div", Cs, [
|
|
5156
5158
|
C(V, {
|
|
5157
5159
|
modelValue: c.fields.write_timeout,
|
|
5158
5160
|
"onUpdate:modelValue": [
|
|
@@ -5170,7 +5172,7 @@ const Xn = {
|
|
|
5170
5172
|
type: "number"
|
|
5171
5173
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
5172
5174
|
]),
|
|
5173
|
-
|
|
5175
|
+
N("div", Ss, [
|
|
5174
5176
|
C(V, {
|
|
5175
5177
|
modelValue: c.fields.read_timeout,
|
|
5176
5178
|
"onUpdate:modelValue": [
|
|
@@ -5221,10 +5223,10 @@ const Xn = {
|
|
|
5221
5223
|
scope: "global"
|
|
5222
5224
|
}, {
|
|
5223
5225
|
code1: v(() => [
|
|
5224
|
-
|
|
5226
|
+
N("code", null, O(f(l)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5225
5227
|
]),
|
|
5226
5228
|
code2: v(() => [
|
|
5227
|
-
|
|
5229
|
+
N("code", null, O(f(l)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5228
5230
|
]),
|
|
5229
5231
|
_: 1
|
|
5230
5232
|
})
|
|
@@ -5246,7 +5248,7 @@ const Xn = {
|
|
|
5246
5248
|
scope: "global"
|
|
5247
5249
|
}, {
|
|
5248
5250
|
code1: v(() => [
|
|
5249
|
-
|
|
5251
|
+
N("code", null, O(f(l)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5250
5252
|
]),
|
|
5251
5253
|
_: 1
|
|
5252
5254
|
})
|
|
@@ -5312,7 +5314,7 @@ const Xn = {
|
|
|
5312
5314
|
},
|
|
5313
5315
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
5314
5316
|
setup(e) {
|
|
5315
|
-
const i = e, { i18n: { t }, i18nT: r } = Ze.useI18n(), a = $(() => ze.form[i.config.app].edit), { getPropValue: n } = ss(), o = (l, d) => n(l, d) === !0 ? t("gateway_services.form.fields.tls_verify_option.true.display") : t("gateway_services.form.fields.tls_verify_option.false.display"), s =
|
|
5317
|
+
const i = e, { i18n: { t }, i18nT: r } = Ze.useI18n(), a = $(() => ze.form[i.config.app].edit), { getPropValue: n } = ss(), o = (l, d) => n(l, d) === !0 ? t("gateway_services.form.fields.tls_verify_option.true.display") : t("gateway_services.form.fields.tls_verify_option.false.display"), s = F({
|
|
5316
5318
|
id: {},
|
|
5317
5319
|
name: {
|
|
5318
5320
|
tooltip: t("gateway_services.form.fields.name.tooltip")
|
|
@@ -5390,10 +5392,10 @@ const Xn = {
|
|
|
5390
5392
|
scope: "global"
|
|
5391
5393
|
}, {
|
|
5392
5394
|
false: v(() => [
|
|
5393
|
-
|
|
5395
|
+
N("code", null, O(f(t)("gateway_services.form.fields.enabled.false")), 1)
|
|
5394
5396
|
]),
|
|
5395
5397
|
true: v(() => [
|
|
5396
|
-
|
|
5398
|
+
N("code", null, O(f(t)("gateway_services.form.fields.enabled.true")), 1)
|
|
5397
5399
|
]),
|
|
5398
5400
|
_: 1
|
|
5399
5401
|
})
|
|
@@ -5404,10 +5406,10 @@ const Xn = {
|
|
|
5404
5406
|
scope: "global"
|
|
5405
5407
|
}, {
|
|
5406
5408
|
code1: v(() => [
|
|
5407
|
-
|
|
5409
|
+
N("code", null, O(f(t)("gateway_services.form.fields.ca_certificates.code1")), 1)
|
|
5408
5410
|
]),
|
|
5409
5411
|
code2: v(() => [
|
|
5410
|
-
|
|
5412
|
+
N("code", null, O(f(t)("gateway_services.form.fields.ca_certificates.code2")), 1)
|
|
5411
5413
|
]),
|
|
5412
5414
|
_: 1
|
|
5413
5415
|
})
|
|
@@ -5418,7 +5420,7 @@ const Xn = {
|
|
|
5418
5420
|
scope: "global"
|
|
5419
5421
|
}, {
|
|
5420
5422
|
code1: v(() => [
|
|
5421
|
-
|
|
5423
|
+
N("code", null, O(f(t)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
|
|
5422
5424
|
]),
|
|
5423
5425
|
_: 1
|
|
5424
5426
|
})
|