@kong-ui-public/entities-upstreams-targets 3.2.0 → 3.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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as X, ref as B, computed as T, watch as ke, renderSlot as re, createCommentVNode as D, unref as u, onBeforeMount as st, resolveComponent as
|
|
1
|
+
import { defineComponent as X, ref as B, computed as T, watch as ke, renderSlot as re, createCommentVNode as D, unref as u, onBeforeMount as st, resolveComponent as K, openBlock as k, createBlock as P, createSlots as Ee, withCtx as f, createElementVNode as I, createVNode as y, createTextVNode as J, toDisplayString as w, renderList as Ce, resolveDynamicComponent as _e, createElementBlock as j, withModifiers as ml, withDirectives as Ae, vShow as He, Fragment as fe, normalizeClass as qe, withKeys as Gr, useSlots as Vt, useCssVars as Ll, inject as Xr, onMounted as ei, onUnmounted as ti, normalizeStyle as Be, normalizeProps as ai, guardReactiveProps as li, mergeProps as ri, pushScopeId as Pe, popScopeId as Ve, Teleport as Rl, reactive as pt } from "vue";
|
|
2
2
|
import gl from "axios";
|
|
3
3
|
import { createI18n as Dl, i18nTComponent as zl } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as ii } from "@kong/kongponents";
|
|
5
5
|
import { useRouter as Lt } from "vue-router";
|
|
6
|
-
var Rt = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Rt || {}),
|
|
6
|
+
var Rt = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Rt || {}), Se = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Se || {}), $e = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))($e || {}), le = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(le || {}), ne = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ne || {});
|
|
7
7
|
function si() {
|
|
8
8
|
return {
|
|
9
9
|
getAxiosInstance: (e = {}) => {
|
|
@@ -288,8 +288,8 @@ function Ci(e, a, t, l = {
|
|
|
288
288
|
const q = await Promise.all(F), A = /* @__PURE__ */ new Set();
|
|
289
289
|
p.value = [], (N = q == null ? void 0 : q.forEach) == null || N.call(q, (M) => {
|
|
290
290
|
var E;
|
|
291
|
-
(E = M == null ? void 0 : M.forEach) == null || E.call(M, (
|
|
292
|
-
A.has(
|
|
291
|
+
(E = M == null ? void 0 : M.forEach) == null || E.call(M, (Q) => {
|
|
292
|
+
A.has(Q.id) || (A.add(Q.id), p.value.push(Q));
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
} else
|
|
@@ -548,14 +548,14 @@ const de = {
|
|
|
548
548
|
var o;
|
|
549
549
|
return a.isArrayItem ? (o = s.value) != null && o.name ? l(s.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: a.index }) : "";
|
|
550
550
|
});
|
|
551
|
-
return (o, d) => (k(), P(
|
|
551
|
+
return (o, d) => (k(), P(_e(e.isArrayItem ? "fieldset" : "div"), {
|
|
552
552
|
class: qe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
553
553
|
}, {
|
|
554
554
|
default: f(() => [
|
|
555
|
-
e.isArrayItem ? (k(),
|
|
555
|
+
e.isArrayItem ? (k(), j("legend", Ni, [
|
|
556
556
|
I("b", null, w(c.value), 1)
|
|
557
557
|
])) : D("", !0),
|
|
558
|
-
(k(!0),
|
|
558
|
+
(k(!0), j(fe, null, Ce(Object.keys(i.value), (h, p) => (k(), P(Gl, {
|
|
559
559
|
key: `${r.value}-property-${p}`,
|
|
560
560
|
item: {
|
|
561
561
|
key: h,
|
|
@@ -567,12 +567,12 @@ const de = {
|
|
|
567
567
|
_: 1
|
|
568
568
|
}, 8, ["class"]));
|
|
569
569
|
}
|
|
570
|
-
}),
|
|
570
|
+
}), we = (e, a) => {
|
|
571
571
|
const t = e.__vccOpts || e;
|
|
572
572
|
for (const [l, r] of a)
|
|
573
573
|
t[l] = r;
|
|
574
574
|
return t;
|
|
575
|
-
}, Yl = /* @__PURE__ */
|
|
575
|
+
}, Yl = /* @__PURE__ */ we(Mi, [["__scopeId", "data-v-68ca83ec"]]), ji = /* @__PURE__ */ X({
|
|
576
576
|
__name: "InternalLinkItem",
|
|
577
577
|
props: {
|
|
578
578
|
item: {
|
|
@@ -584,8 +584,8 @@ const de = {
|
|
|
584
584
|
setup(e) {
|
|
585
585
|
const { i18n: { t: a } } = de.useI18n();
|
|
586
586
|
return (t, l) => {
|
|
587
|
-
const r =
|
|
588
|
-
return k(),
|
|
587
|
+
const r = K("KButton");
|
|
588
|
+
return k(), j("div", null, [
|
|
589
589
|
y(r, {
|
|
590
590
|
appearance: "tertiary",
|
|
591
591
|
class: "navigation-button",
|
|
@@ -599,7 +599,7 @@ const de = {
|
|
|
599
599
|
]);
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
|
-
}), Ki = /* @__PURE__ */
|
|
602
|
+
}), Ki = /* @__PURE__ */ we(ji, [["__scopeId", "data-v-c96811e5"]]), Ei = /* @__PURE__ */ X({
|
|
603
603
|
__name: "StatusBadge",
|
|
604
604
|
props: {
|
|
605
605
|
status: {
|
|
@@ -610,7 +610,7 @@ const de = {
|
|
|
610
610
|
setup(e) {
|
|
611
611
|
const { i18n: { t: a } } = de.useI18n();
|
|
612
612
|
return (t, l) => {
|
|
613
|
-
const r =
|
|
613
|
+
const r = K("KBadge");
|
|
614
614
|
return k(), P(r, {
|
|
615
615
|
appearance: e.status ? "success" : "neutral"
|
|
616
616
|
}, {
|
|
@@ -762,8 +762,8 @@ const de = {
|
|
|
762
762
|
}
|
|
763
763
|
}), g = B(), { isTruncated: n } = de.useTruncationDetector(g);
|
|
764
764
|
return (O, H) => {
|
|
765
|
-
const v =
|
|
766
|
-
return k(),
|
|
765
|
+
const v = K("KLabel"), U = K("KBadge"), $ = K("KCopy"), R = K("KTooltip");
|
|
766
|
+
return k(), j("div", Di, [
|
|
767
767
|
I("div", {
|
|
768
768
|
class: "config-card-details-label",
|
|
769
769
|
"data-testid": `${e.item.key}-label`
|
|
@@ -798,14 +798,14 @@ const de = {
|
|
|
798
798
|
re(O.$slots, e.item.key, {
|
|
799
799
|
rowValue: e.item.value
|
|
800
800
|
}, () => [
|
|
801
|
-
c.value ? (k(),
|
|
802
|
-
(k(), P(
|
|
801
|
+
c.value ? (k(), j("div", Zi, [
|
|
802
|
+
(k(), P(_e(p.value.tag), ai(li(p.value.attrs)), {
|
|
803
803
|
default: f(() => [
|
|
804
|
-
p.value.additionalComponent === "KBadge" ? (k(),
|
|
804
|
+
p.value.additionalComponent === "KBadge" ? (k(), j("div", {
|
|
805
805
|
key: 0,
|
|
806
806
|
"data-testid": `${e.item.key}-badge-tags`
|
|
807
807
|
}, [
|
|
808
|
-
(k(!0),
|
|
808
|
+
(k(!0), j(fe, null, Ce(e.item.value, (x, N) => (k(), P(U, {
|
|
809
809
|
key: `${e.item.key}-badge-tag-${N}`,
|
|
810
810
|
class: "config-badge",
|
|
811
811
|
"data-testid": `${e.item.key}-badge-tag-${N}`,
|
|
@@ -818,22 +818,22 @@ const de = {
|
|
|
818
818
|
_: 2
|
|
819
819
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
820
820
|
], 8, Yi)) : D("", !0),
|
|
821
|
-
p.value.additionalComponent === "KCopy" ? (k(),
|
|
821
|
+
p.value.additionalComponent === "KCopy" ? (k(), j("div", {
|
|
822
822
|
key: 1,
|
|
823
823
|
class: "copy-uuid-array",
|
|
824
824
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
825
825
|
}, [
|
|
826
|
-
(k(!0),
|
|
826
|
+
(k(!0), j(fe, null, Ce(e.item.value, (x, N) => (k(), P($, ri({ ref_for: !0 }, p.value.childAttrs, {
|
|
827
827
|
key: `${e.item.key}-copy-uuid-${N}`,
|
|
828
828
|
"data-testid": `${e.item.key}-copy-uuid-${N}`,
|
|
829
829
|
text: x
|
|
830
830
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
831
|
-
], 8, Gi)) : p.value.additionalComponent === "KMethodBadge" ? (k(),
|
|
831
|
+
], 8, Gi)) : p.value.additionalComponent === "KMethodBadge" ? (k(), j("div", {
|
|
832
832
|
key: 2,
|
|
833
833
|
class: "method-badge-array",
|
|
834
834
|
"data-testid": `${e.item.key}-badge-methods`
|
|
835
835
|
}, [
|
|
836
|
-
(k(!0),
|
|
836
|
+
(k(!0), j(fe, null, Ce(e.item.value, (x, N) => (k(), P(U, {
|
|
837
837
|
key: `${e.item.key}-badge-method-${N}`,
|
|
838
838
|
appearance: Object.values(u(ii)).includes(x.toLowerCase()) ? x.toLowerCase() : "custom",
|
|
839
839
|
class: "config-badge",
|
|
@@ -845,11 +845,11 @@ const de = {
|
|
|
845
845
|
_: 2
|
|
846
846
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
847
847
|
], 8, Xi)) : D("", !0),
|
|
848
|
-
p.value.additionalComponent === "JsonCardItem" ? (k(),
|
|
848
|
+
p.value.additionalComponent === "JsonCardItem" ? (k(), j("div", {
|
|
849
849
|
key: 3,
|
|
850
850
|
"data-testid": `${t.item.key}-json-array-content`
|
|
851
851
|
}, [
|
|
852
|
-
(k(!0),
|
|
852
|
+
(k(!0), j(fe, null, Ce(e.item.value, (x, N) => (k(), P(Yl, {
|
|
853
853
|
key: `json-array-item-${N}`,
|
|
854
854
|
index: N,
|
|
855
855
|
"is-array-item": "",
|
|
@@ -871,7 +871,7 @@ const de = {
|
|
|
871
871
|
]),
|
|
872
872
|
_: 1
|
|
873
873
|
}, 16))
|
|
874
|
-
])) : (k(),
|
|
874
|
+
])) : (k(), j("div", {
|
|
875
875
|
key: 0,
|
|
876
876
|
"data-testid": `${e.item.key}-no-value`
|
|
877
877
|
}, " – ", 8, Qi))
|
|
@@ -880,7 +880,7 @@ const de = {
|
|
|
880
880
|
]);
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
|
-
}), Gl = /* @__PURE__ */
|
|
883
|
+
}), Gl = /* @__PURE__ */ we(as, [["__scopeId", "data-v-d268261c"]]), ls = { class: "json-config" }, rs = {
|
|
884
884
|
key: 0,
|
|
885
885
|
class: "json-endpoint"
|
|
886
886
|
}, Xl = /* @__PURE__ */ X({
|
|
@@ -922,9 +922,9 @@ const de = {
|
|
|
922
922
|
return s.length < 2 ? 0 : 41 + (a.requestMethod === "post" ? s[s.length - 1] : s[s.length - 2]).length;
|
|
923
923
|
});
|
|
924
924
|
return (r, s) => {
|
|
925
|
-
const i =
|
|
926
|
-
return k(),
|
|
927
|
-
a.fetcherUrl ? (k(),
|
|
925
|
+
const i = K("KBadge"), c = K("KCodeBlock");
|
|
926
|
+
return k(), j("div", ls, [
|
|
927
|
+
a.fetcherUrl ? (k(), j("div", rs, [
|
|
928
928
|
y(i, {
|
|
929
929
|
appearance: a.requestMethod
|
|
930
930
|
}, {
|
|
@@ -1545,7 +1545,7 @@ var kr = new me("tag:yaml.org,2002:set", {
|
|
|
1545
1545
|
function Il(e) {
|
|
1546
1546
|
return Object.prototype.toString.call(e);
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function Ie(e) {
|
|
1549
1549
|
return e === 10 || e === 13;
|
|
1550
1550
|
}
|
|
1551
1551
|
function Ke(e) {
|
|
@@ -1664,7 +1664,7 @@ function oe(e, a, t) {
|
|
|
1664
1664
|
do
|
|
1665
1665
|
r = e.input.charCodeAt(++e.position);
|
|
1666
1666
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
1667
|
-
if (
|
|
1667
|
+
if (Ie(r))
|
|
1668
1668
|
for (Wt(e), r = e.input.charCodeAt(e.position), l++, e.lineIndent = 0; r === 32; )
|
|
1669
1669
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1670
1670
|
else
|
|
@@ -1694,7 +1694,7 @@ function mn(e, a, t) {
|
|
|
1694
1694
|
} else {
|
|
1695
1695
|
if (e.position === e.lineStart && _t(e) || t && We(n))
|
|
1696
1696
|
break;
|
|
1697
|
-
if (
|
|
1697
|
+
if (Ie(n))
|
|
1698
1698
|
if (o = e.line, d = e.lineStart, h = e.lineIndent, oe(e, !1, -1), e.lineIndent >= a) {
|
|
1699
1699
|
c = !0, n = e.input.charCodeAt(e.position);
|
|
1700
1700
|
continue;
|
|
@@ -1718,7 +1718,7 @@ function gn(e, a) {
|
|
|
1718
1718
|
else
|
|
1719
1719
|
return !0;
|
|
1720
1720
|
else
|
|
1721
|
-
|
|
1721
|
+
Ie(t) ? (Ne(e, l, r, !0), Qt(e, oe(e, !1, a)), l = r = e.position) : e.position === e.lineStart && _t(e) ? L(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1722
1722
|
L(e, "unexpected end of the stream within a single quoted scalar");
|
|
1723
1723
|
}
|
|
1724
1724
|
function vn(e, a) {
|
|
@@ -1729,7 +1729,7 @@ function vn(e, a) {
|
|
|
1729
1729
|
if (c === 34)
|
|
1730
1730
|
return Ne(e, t, e.position, !0), e.position++, !0;
|
|
1731
1731
|
if (c === 92) {
|
|
1732
|
-
if (Ne(e, t, e.position, !0), c = e.input.charCodeAt(++e.position),
|
|
1732
|
+
if (Ne(e, t, e.position, !0), c = e.input.charCodeAt(++e.position), Ie(c))
|
|
1733
1733
|
oe(e, !1, a);
|
|
1734
1734
|
else if (c < 256 && Ir[c])
|
|
1735
1735
|
e.result += xr[c], e.position++;
|
|
@@ -1741,7 +1741,7 @@ function vn(e, a) {
|
|
|
1741
1741
|
L(e, "unknown escape sequence");
|
|
1742
1742
|
t = l = e.position;
|
|
1743
1743
|
} else
|
|
1744
|
-
|
|
1744
|
+
Ie(c) ? (Ne(e, t, l, !0), Qt(e, oe(e, !1, a)), t = l = e.position) : e.position === e.lineStart && _t(e) ? L(e, "unexpected end of the document within a double quoted scalar") : (e.position++, l = e.position);
|
|
1745
1745
|
}
|
|
1746
1746
|
L(e, "unexpected end of the stream within a double quoted scalar");
|
|
1747
1747
|
}
|
|
@@ -1782,12 +1782,12 @@ function bn(e, a) {
|
|
|
1782
1782
|
if (p === 35)
|
|
1783
1783
|
do
|
|
1784
1784
|
p = e.input.charCodeAt(++e.position);
|
|
1785
|
-
while (!
|
|
1785
|
+
while (!Ie(p) && p !== 0);
|
|
1786
1786
|
}
|
|
1787
1787
|
for (; p !== 0; ) {
|
|
1788
1788
|
for (Wt(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!i || e.lineIndent < c) && p === 32; )
|
|
1789
1789
|
e.lineIndent++, p = e.input.charCodeAt(++e.position);
|
|
1790
|
-
if (!i && e.lineIndent > c && (c = e.lineIndent),
|
|
1790
|
+
if (!i && e.lineIndent > c && (c = e.lineIndent), Ie(p)) {
|
|
1791
1791
|
o++;
|
|
1792
1792
|
continue;
|
|
1793
1793
|
}
|
|
@@ -1801,7 +1801,7 @@ function bn(e, a) {
|
|
|
1801
1801
|
`, s ? 1 + o : o)) : d ? (d = !1, e.result += ce.repeat(`
|
|
1802
1802
|
`, o + 1)) : o === 0 ? s && (e.result += " ") : e.result += ce.repeat(`
|
|
1803
1803
|
`, o) : e.result += ce.repeat(`
|
|
1804
|
-
`, s ? 1 + o : o), s = !0, i = !0, o = 0, t = e.position; !
|
|
1804
|
+
`, s ? 1 + o : o), s = !0, i = !0, o = 0, t = e.position; !Ie(p) && p !== 0; )
|
|
1805
1805
|
p = e.input.charCodeAt(++e.position);
|
|
1806
1806
|
Ne(e, t, e.position, !1);
|
|
1807
1807
|
}
|
|
@@ -1929,10 +1929,10 @@ function Sn(e) {
|
|
|
1929
1929
|
if (i === 35) {
|
|
1930
1930
|
do
|
|
1931
1931
|
i = e.input.charCodeAt(++e.position);
|
|
1932
|
-
while (i !== 0 && !
|
|
1932
|
+
while (i !== 0 && !Ie(i));
|
|
1933
1933
|
break;
|
|
1934
1934
|
}
|
|
1935
|
-
if (
|
|
1935
|
+
if (Ie(i))
|
|
1936
1936
|
break;
|
|
1937
1937
|
for (t = e.position; i !== 0 && !be(i); )
|
|
1938
1938
|
i = e.input.charCodeAt(++e.position);
|
|
@@ -2335,8 +2335,8 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2335
2335
|
return Object.keys(l).length === 0 && l.constructor === Object ? "" : xo.dump(l).trim();
|
|
2336
2336
|
});
|
|
2337
2337
|
return (l, r) => {
|
|
2338
|
-
const s =
|
|
2339
|
-
return k(),
|
|
2338
|
+
const s = K("KCodeBlock");
|
|
2339
|
+
return k(), j("div", Ao, [
|
|
2340
2340
|
a.yamlRecord ? (k(), P(s, {
|
|
2341
2341
|
key: 0,
|
|
2342
2342
|
id: "yaml-codeblock",
|
|
@@ -2398,15 +2398,15 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2398
2398
|
const i = JSON.parse(JSON.stringify(a.record));
|
|
2399
2399
|
return delete i.created_at, delete i.updated_at, i;
|
|
2400
2400
|
});
|
|
2401
|
-
return (i, c) => (k(),
|
|
2402
|
-
e.format === "structured" ? (k(),
|
|
2403
|
-
(k(!0),
|
|
2401
|
+
return (i, c) => (k(), j(fe, null, [
|
|
2402
|
+
e.format === "structured" ? (k(), j("div", Ho, [
|
|
2403
|
+
(k(!0), j(fe, null, Ce(e.propListTypes, (o) => (k(), j("div", {
|
|
2404
2404
|
key: `config-card-details-${o}-props`,
|
|
2405
2405
|
class: qe(`config-card-details-${o}-props`),
|
|
2406
2406
|
"data-testid": `config-card-details-${o}-props`
|
|
2407
2407
|
}, [
|
|
2408
|
-
o !== "basic" ? (k(),
|
|
2409
|
-
(k(!0),
|
|
2408
|
+
o !== "basic" ? (k(), j("div", qo, w(o === "advanced" ? u(l)("baseConfigCard.sections.advanced") : u(l)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2409
|
+
(k(!0), j(fe, null, Ce(e.propertyCollections[o], (d) => (k(), P(Gl, {
|
|
2410
2410
|
key: d.key,
|
|
2411
2411
|
item: d
|
|
2412
2412
|
}, Ee({
|
|
@@ -2444,7 +2444,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2444
2444
|
}, null, 8, ["yaml-record"])) : D("", !0)
|
|
2445
2445
|
], 64));
|
|
2446
2446
|
}
|
|
2447
|
-
}), Uo = /* @__PURE__ */
|
|
2447
|
+
}), Uo = /* @__PURE__ */ we(Oo, [["__scopeId", "data-v-2052238b"]]), xe = "24px", nt = (e, a) => {
|
|
2448
2448
|
const t = e.__vccOpts || e;
|
|
2449
2449
|
for (const [l, r] of a)
|
|
2450
2450
|
t[l] = r;
|
|
@@ -2486,7 +2486,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2486
2486
|
size: {
|
|
2487
2487
|
type: [Number, String],
|
|
2488
2488
|
required: !1,
|
|
2489
|
-
default:
|
|
2489
|
+
default: xe,
|
|
2490
2490
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2491
2491
|
validator: (e) => {
|
|
2492
2492
|
if (typeof e == "number" && e > 0)
|
|
@@ -2515,7 +2515,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2515
2515
|
if (s && !isNaN(s) && Number.isInteger(s) && s > 0)
|
|
2516
2516
|
return `${s}px`;
|
|
2517
2517
|
}
|
|
2518
|
-
return
|
|
2518
|
+
return xe;
|
|
2519
2519
|
}), l = T(() => ({
|
|
2520
2520
|
boxSizing: "border-box",
|
|
2521
2521
|
color: a.color,
|
|
@@ -2524,14 +2524,14 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2524
2524
|
lineHeight: "0",
|
|
2525
2525
|
width: t.value
|
|
2526
2526
|
}));
|
|
2527
|
-
return (r, s) => (k(), P(
|
|
2527
|
+
return (r, s) => (k(), P(_e(e.as), {
|
|
2528
2528
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2529
2529
|
class: "kui-icon add-icon",
|
|
2530
2530
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2531
2531
|
style: Be(l.value)
|
|
2532
2532
|
}, {
|
|
2533
2533
|
default: f(() => [
|
|
2534
|
-
(k(),
|
|
2534
|
+
(k(), j("svg", {
|
|
2535
2535
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2536
2536
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2537
2537
|
fill: "none",
|
|
@@ -2541,7 +2541,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2541
2541
|
width: "100%",
|
|
2542
2542
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2543
2543
|
}, [
|
|
2544
|
-
e.title ? (k(),
|
|
2544
|
+
e.title ? (k(), j("title", No, w(e.title), 1)) : D("", !0),
|
|
2545
2545
|
Mo
|
|
2546
2546
|
], 8, $o))
|
|
2547
2547
|
]),
|
|
@@ -2585,7 +2585,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2585
2585
|
size: {
|
|
2586
2586
|
type: [Number, String],
|
|
2587
2587
|
required: !1,
|
|
2588
|
-
default:
|
|
2588
|
+
default: xe,
|
|
2589
2589
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2590
2590
|
validator: (e) => {
|
|
2591
2591
|
if (typeof e == "number" && e > 0)
|
|
@@ -2614,7 +2614,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2614
2614
|
if (s && !isNaN(s) && Number.isInteger(s) && s > 0)
|
|
2615
2615
|
return `${s}px`;
|
|
2616
2616
|
}
|
|
2617
|
-
return
|
|
2617
|
+
return xe;
|
|
2618
2618
|
}), l = T(() => ({
|
|
2619
2619
|
boxSizing: "border-box",
|
|
2620
2620
|
color: a.color,
|
|
@@ -2623,14 +2623,14 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2623
2623
|
lineHeight: "0",
|
|
2624
2624
|
width: t.value
|
|
2625
2625
|
}));
|
|
2626
|
-
return (r, s) => (k(), P(
|
|
2626
|
+
return (r, s) => (k(), P(_e(e.as), {
|
|
2627
2627
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2628
2628
|
class: "kui-icon book-icon",
|
|
2629
2629
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2630
2630
|
style: Be(l.value)
|
|
2631
2631
|
}, {
|
|
2632
2632
|
default: f(() => [
|
|
2633
|
-
(k(),
|
|
2633
|
+
(k(), j("svg", {
|
|
2634
2634
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2635
2635
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2636
2636
|
fill: "none",
|
|
@@ -2640,7 +2640,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2640
2640
|
width: "100%",
|
|
2641
2641
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2642
2642
|
}, [
|
|
2643
|
-
e.title ? (k(),
|
|
2643
|
+
e.title ? (k(), j("title", Po, w(e.title), 1)) : D("", !0),
|
|
2644
2644
|
Vo
|
|
2645
2645
|
], 8, Bo))
|
|
2646
2646
|
]),
|
|
@@ -2684,7 +2684,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2684
2684
|
size: {
|
|
2685
2685
|
type: [Number, String],
|
|
2686
2686
|
required: !1,
|
|
2687
|
-
default:
|
|
2687
|
+
default: xe,
|
|
2688
2688
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2689
2689
|
validator: (e) => {
|
|
2690
2690
|
if (typeof e == "number" && e > 0)
|
|
@@ -2713,7 +2713,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2713
2713
|
if (s && !isNaN(s) && Number.isInteger(s) && s > 0)
|
|
2714
2714
|
return `${s}px`;
|
|
2715
2715
|
}
|
|
2716
|
-
return
|
|
2716
|
+
return xe;
|
|
2717
2717
|
}), l = T(() => ({
|
|
2718
2718
|
boxSizing: "border-box",
|
|
2719
2719
|
color: a.color,
|
|
@@ -2722,14 +2722,14 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2722
2722
|
lineHeight: "0",
|
|
2723
2723
|
width: t.value
|
|
2724
2724
|
}));
|
|
2725
|
-
return (r, s) => (k(), P(
|
|
2725
|
+
return (r, s) => (k(), P(_e(e.as), {
|
|
2726
2726
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2727
2727
|
class: "kui-icon chevron-down-icon",
|
|
2728
2728
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2729
2729
|
style: Be(l.value)
|
|
2730
2730
|
}, {
|
|
2731
2731
|
default: f(() => [
|
|
2732
|
-
(k(),
|
|
2732
|
+
(k(), j("svg", {
|
|
2733
2733
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2734
2734
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
2735
2735
|
fill: "none",
|
|
@@ -2739,7 +2739,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2739
2739
|
width: "100%",
|
|
2740
2740
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2741
2741
|
}, [
|
|
2742
|
-
e.title ? (k(),
|
|
2742
|
+
e.title ? (k(), j("title", Jo, w(e.title), 1)) : D("", !0),
|
|
2743
2743
|
Wo
|
|
2744
2744
|
], 8, zo))
|
|
2745
2745
|
]),
|
|
@@ -2783,7 +2783,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2783
2783
|
size: {
|
|
2784
2784
|
type: [Number, String],
|
|
2785
2785
|
required: !1,
|
|
2786
|
-
default:
|
|
2786
|
+
default: xe,
|
|
2787
2787
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2788
2788
|
validator: (e) => {
|
|
2789
2789
|
if (typeof e == "number" && e > 0)
|
|
@@ -2812,7 +2812,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2812
2812
|
if (s && !isNaN(s) && Number.isInteger(s) && s > 0)
|
|
2813
2813
|
return `${s}px`;
|
|
2814
2814
|
}
|
|
2815
|
-
return
|
|
2815
|
+
return xe;
|
|
2816
2816
|
}), l = T(() => ({
|
|
2817
2817
|
boxSizing: "border-box",
|
|
2818
2818
|
color: a.color,
|
|
@@ -2821,14 +2821,14 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2821
2821
|
lineHeight: "0",
|
|
2822
2822
|
width: t.value
|
|
2823
2823
|
}));
|
|
2824
|
-
return (r, s) => (k(), P(
|
|
2824
|
+
return (r, s) => (k(), P(_e(e.as), {
|
|
2825
2825
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2826
2826
|
class: "kui-icon close-icon",
|
|
2827
2827
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2828
2828
|
style: Be(l.value)
|
|
2829
2829
|
}, {
|
|
2830
2830
|
default: f(() => [
|
|
2831
|
-
(k(),
|
|
2831
|
+
(k(), j("svg", {
|
|
2832
2832
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2833
2833
|
"data-testid": "kui-icon-svg-close-icon",
|
|
2834
2834
|
fill: "none",
|
|
@@ -2838,7 +2838,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2838
2838
|
width: "100%",
|
|
2839
2839
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2840
2840
|
}, [
|
|
2841
|
-
e.title ? (k(),
|
|
2841
|
+
e.title ? (k(), j("title", Xo, w(e.title), 1)) : D("", !0),
|
|
2842
2842
|
eu
|
|
2843
2843
|
], 8, Go))
|
|
2844
2844
|
]),
|
|
@@ -2882,7 +2882,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2882
2882
|
size: {
|
|
2883
2883
|
type: [Number, String],
|
|
2884
2884
|
required: !1,
|
|
2885
|
-
default:
|
|
2885
|
+
default: xe,
|
|
2886
2886
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2887
2887
|
validator: (e) => {
|
|
2888
2888
|
if (typeof e == "number" && e > 0)
|
|
@@ -2911,7 +2911,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2911
2911
|
if (s && !isNaN(s) && Number.isInteger(s) && s > 0)
|
|
2912
2912
|
return `${s}px`;
|
|
2913
2913
|
}
|
|
2914
|
-
return
|
|
2914
|
+
return xe;
|
|
2915
2915
|
}), l = T(() => ({
|
|
2916
2916
|
boxSizing: "border-box",
|
|
2917
2917
|
color: a.color,
|
|
@@ -2920,14 +2920,14 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2920
2920
|
lineHeight: "0",
|
|
2921
2921
|
width: t.value
|
|
2922
2922
|
}));
|
|
2923
|
-
return (r, s) => (k(), P(
|
|
2923
|
+
return (r, s) => (k(), P(_e(e.as), {
|
|
2924
2924
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2925
2925
|
class: "kui-icon more-icon",
|
|
2926
2926
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
2927
2927
|
style: Be(l.value)
|
|
2928
2928
|
}, {
|
|
2929
2929
|
default: f(() => [
|
|
2930
|
-
(k(),
|
|
2930
|
+
(k(), j("svg", {
|
|
2931
2931
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2932
2932
|
"data-testid": "kui-icon-svg-more-icon",
|
|
2933
2933
|
fill: "none",
|
|
@@ -2937,7 +2937,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
2937
2937
|
width: "100%",
|
|
2938
2938
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2939
2939
|
}, [
|
|
2940
|
-
e.title ? (k(),
|
|
2940
|
+
e.title ? (k(), j("title", iu, w(e.title), 1)) : D("", !0),
|
|
2941
2941
|
su
|
|
2942
2942
|
], 8, ru))
|
|
2943
2943
|
]),
|
|
@@ -3082,18 +3082,18 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3082
3082
|
return [];
|
|
3083
3083
|
const q = [], A = Object.keys(v.value).length;
|
|
3084
3084
|
for (const M in v.value) {
|
|
3085
|
-
const E = (S = (m = r.configSchema) == null ? void 0 : m[M]) == null ? void 0 : S.order,
|
|
3085
|
+
const E = (S = (m = r.configSchema) == null ? void 0 : m[M]) == null ? void 0 : S.order, Q = (F = g[M]) == null ? void 0 : F.order;
|
|
3086
3086
|
let Z = A;
|
|
3087
|
-
(
|
|
3087
|
+
(Q || Q === 0) && (Z = Q === -1 ? A + 1 : Q), E && (Z = E === -1 ? A + 1 : E), q.push([M, Z]);
|
|
3088
3088
|
}
|
|
3089
3089
|
return q.sort(function(M, E) {
|
|
3090
3090
|
return M[1] - E[1];
|
|
3091
3091
|
}), q.map((M) => {
|
|
3092
|
-
var E,
|
|
3093
|
-
const Z = M[0],
|
|
3092
|
+
var E, Q;
|
|
3093
|
+
const Z = M[0], W = (E = v.value) == null ? void 0 : E[Z], z = ((Q = r.configSchema) == null ? void 0 : Q[Z]) || {}, ee = g[Z];
|
|
3094
3094
|
return {
|
|
3095
3095
|
key: Z,
|
|
3096
|
-
value:
|
|
3096
|
+
value: W,
|
|
3097
3097
|
hidden: z.hidden || !1,
|
|
3098
3098
|
type: z.type ?? ((ee == null ? void 0 : ee.type) || le.Text),
|
|
3099
3099
|
label: z.label ?? ((ee == null ? void 0 : ee.label) || c(Z)),
|
|
@@ -3107,22 +3107,22 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3107
3107
|
return [];
|
|
3108
3108
|
const F = v.value[r.pluginConfigKey] || {}, q = Object.keys(F).length, A = [];
|
|
3109
3109
|
for (const M in F) {
|
|
3110
|
-
const E = (S = (m = r.pluginConfigSchema) == null ? void 0 : m[M]) == null ? void 0 : S.order,
|
|
3111
|
-
let Z =
|
|
3110
|
+
const E = (S = (m = r.pluginConfigSchema) == null ? void 0 : m[M]) == null ? void 0 : S.order, Q = F[M];
|
|
3111
|
+
let Z = Q != null && Q !== "" ? q - 1 : q;
|
|
3112
3112
|
E && (Z = E === -1 ? q + 1 : E), A.push([M, Z]);
|
|
3113
3113
|
}
|
|
3114
3114
|
return A.sort(function(M, E) {
|
|
3115
3115
|
return M[1] - E[1];
|
|
3116
3116
|
}), A.map((M) => {
|
|
3117
3117
|
var E;
|
|
3118
|
-
const
|
|
3118
|
+
const Q = M[0], Z = F[Q], W = ((E = r.pluginConfigSchema) == null ? void 0 : E[Q]) || {};
|
|
3119
3119
|
return {
|
|
3120
|
-
key:
|
|
3120
|
+
key: Q,
|
|
3121
3121
|
value: Z,
|
|
3122
|
-
hidden:
|
|
3123
|
-
type:
|
|
3124
|
-
label:
|
|
3125
|
-
tooltip:
|
|
3122
|
+
hidden: W.hidden || !1,
|
|
3123
|
+
type: W.type ?? le.Text,
|
|
3124
|
+
label: W.label ?? c(Q),
|
|
3125
|
+
tooltip: W.tooltip ?? void 0,
|
|
3126
3126
|
section: ne.Plugin
|
|
3127
3127
|
};
|
|
3128
3128
|
}).filter((M) => !M.hidden);
|
|
@@ -3164,8 +3164,8 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3164
3164
|
n.value = !1;
|
|
3165
3165
|
}
|
|
3166
3166
|
}), (m, S) => {
|
|
3167
|
-
const F =
|
|
3168
|
-
return k(), P(
|
|
3167
|
+
const F = K("KLabel"), q = K("KSelect"), A = K("KButton"), M = K("KSkeleton"), E = K("KEmptyState"), Q = K("KCard");
|
|
3168
|
+
return k(), P(Q, {
|
|
3169
3169
|
class: "kong-ui-entity-base-config-card",
|
|
3170
3170
|
"title-tag": e.titleTag
|
|
3171
3171
|
}, Ee({
|
|
@@ -3232,9 +3232,9 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3232
3232
|
}, Ee({ _: 2 }, [
|
|
3233
3233
|
Ce(Object.keys(m.$slots), (Z) => ({
|
|
3234
3234
|
name: Z,
|
|
3235
|
-
fn: f(({ row:
|
|
3235
|
+
fn: f(({ row: W, rowValue: z }) => [
|
|
3236
3236
|
re(m.$slots, Z, {
|
|
3237
|
-
row:
|
|
3237
|
+
row: W,
|
|
3238
3238
|
rowValue: z
|
|
3239
3239
|
}, void 0, !0)
|
|
3240
3240
|
])
|
|
@@ -3258,7 +3258,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3258
3258
|
]), 1032, ["title-tag"]);
|
|
3259
3259
|
};
|
|
3260
3260
|
}
|
|
3261
|
-
}), fu = /* @__PURE__ */
|
|
3261
|
+
}), fu = /* @__PURE__ */ we(pu, [["__scopeId", "data-v-f40a683b"]]), mu = ["novalidate"], gu = {
|
|
3262
3262
|
class: "form-actions",
|
|
3263
3263
|
"data-testid": "form-actions"
|
|
3264
3264
|
}, vu = /* @__PURE__ */ X({
|
|
@@ -3318,6 +3318,13 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3318
3318
|
noValidate: {
|
|
3319
3319
|
type: Boolean,
|
|
3320
3320
|
default: !1
|
|
3321
|
+
},
|
|
3322
|
+
/**
|
|
3323
|
+
* Wrapper component to use at component's root level.
|
|
3324
|
+
*/
|
|
3325
|
+
wrapperComponent: {
|
|
3326
|
+
type: String,
|
|
3327
|
+
default: "KCard"
|
|
3321
3328
|
}
|
|
3322
3329
|
},
|
|
3323
3330
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
@@ -3360,8 +3367,8 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3360
3367
|
d.value = !1;
|
|
3361
3368
|
}
|
|
3362
3369
|
}), (x, N) => {
|
|
3363
|
-
const m =
|
|
3364
|
-
return k(), P(
|
|
3370
|
+
const m = K("KSkeleton"), S = K("KEmptyState"), F = K("KAlert"), q = K("KButton"), A = K("KTabs"), M = K("KSlideout");
|
|
3371
|
+
return k(), P(_e(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3365
3372
|
default: f(() => [
|
|
3366
3373
|
d.value ? (k(), P(m, {
|
|
3367
3374
|
key: 0,
|
|
@@ -3377,7 +3384,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3377
3384
|
I("h3", null, w(p.value), 1)
|
|
3378
3385
|
]),
|
|
3379
3386
|
_: 1
|
|
3380
|
-
}, 8, ["action-button-text"])) : (k(),
|
|
3387
|
+
}, 8, ["action-button-text"])) : (k(), j("form", {
|
|
3381
3388
|
key: 2,
|
|
3382
3389
|
"data-testid": "form-content",
|
|
3383
3390
|
novalidate: r.noValidate,
|
|
@@ -3396,7 +3403,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3396
3403
|
y(q, {
|
|
3397
3404
|
appearance: "tertiary",
|
|
3398
3405
|
"data-testid": "form-view-configuration",
|
|
3399
|
-
onClick: N[0] || (N[0] = (
|
|
3406
|
+
onClick: N[0] || (N[0] = (E) => H())
|
|
3400
3407
|
}, {
|
|
3401
3408
|
default: f(() => [
|
|
3402
3409
|
J(w(u(i)("baseForm.actions.viewConfiguration")), 1)
|
|
@@ -3435,7 +3442,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3435
3442
|
"offset-top": 60,
|
|
3436
3443
|
title: u(i)("baseForm.configuration.title"),
|
|
3437
3444
|
visible: n.value,
|
|
3438
|
-
onClose: N[1] || (N[1] = (
|
|
3445
|
+
onClose: N[1] || (N[1] = (E) => H())
|
|
3439
3446
|
}, {
|
|
3440
3447
|
default: f(() => [
|
|
3441
3448
|
I("div", null, w(u(i)("baseForm.configuration.message")), 1),
|
|
@@ -3466,7 +3473,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3466
3473
|
});
|
|
3467
3474
|
};
|
|
3468
3475
|
}
|
|
3469
|
-
}), Vr = /* @__PURE__ */
|
|
3476
|
+
}), Vr = /* @__PURE__ */ we(vu, [["__scopeId", "data-v-fd05df8e"]]), yu = ["data-truncate"], bu = /* @__PURE__ */ X({
|
|
3470
3477
|
__name: "EntityBaseTableCell",
|
|
3471
3478
|
props: {
|
|
3472
3479
|
keyName: {
|
|
@@ -3525,13 +3532,13 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3525
3532
|
}), ti(() => {
|
|
3526
3533
|
O();
|
|
3527
3534
|
}), (v, U) => {
|
|
3528
|
-
const $ =
|
|
3529
|
-
return k(),
|
|
3535
|
+
const $ = K("KTooltip");
|
|
3536
|
+
return k(), j("span", {
|
|
3530
3537
|
ref_key: "contentRef",
|
|
3531
3538
|
ref: d,
|
|
3532
3539
|
class: "content-wrapper"
|
|
3533
3540
|
}, [
|
|
3534
|
-
s.value ? (k(),
|
|
3541
|
+
s.value ? (k(), j("span", {
|
|
3535
3542
|
key: 0,
|
|
3536
3543
|
"data-truncate": s.value || void 0
|
|
3537
3544
|
}, [
|
|
@@ -3549,7 +3556,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3549
3556
|
], 512);
|
|
3550
3557
|
};
|
|
3551
3558
|
}
|
|
3552
|
-
}), ku = /* @__PURE__ */
|
|
3559
|
+
}), ku = /* @__PURE__ */ we(bu, [["__scopeId", "data-v-471ce76e"]]), Cu = { class: "toolbar-container" }, _u = {
|
|
3553
3560
|
key: 0,
|
|
3554
3561
|
class: "toolbar-button-container"
|
|
3555
3562
|
}, wu = ["data-testid"], Su = /* @__PURE__ */ X({
|
|
@@ -3730,7 +3737,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3730
3737
|
R.value = m, i.value && U(i.value, m);
|
|
3731
3738
|
};
|
|
3732
3739
|
return (m, S) => {
|
|
3733
|
-
const F =
|
|
3740
|
+
const F = K("KButton"), q = K("KDropdown"), A = K("KTable"), M = K("KCard");
|
|
3734
3741
|
return k(), P(M, {
|
|
3735
3742
|
class: "kong-ui-entity-base-table",
|
|
3736
3743
|
title: e.title,
|
|
@@ -3773,14 +3780,14 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3773
3780
|
toolbar: f(({ state: E }) => [
|
|
3774
3781
|
Ae(I("div", Cu, [
|
|
3775
3782
|
re(m.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3776
|
-
m.$slots["toolbar-button"] ? (k(),
|
|
3783
|
+
m.$slots["toolbar-button"] ? (k(), j("div", _u, [
|
|
3777
3784
|
re(m.$slots, "toolbar-button", {}, void 0, !0)
|
|
3778
3785
|
])) : D("", !0)
|
|
3779
3786
|
], 512), [
|
|
3780
3787
|
[He, c(E)]
|
|
3781
3788
|
])
|
|
3782
3789
|
]),
|
|
3783
|
-
actions: f(({ row: E, rowKey:
|
|
3790
|
+
actions: f(({ row: E, rowKey: Q, rowValue: Z }) => [
|
|
3784
3791
|
I("div", {
|
|
3785
3792
|
class: "actions-container",
|
|
3786
3793
|
"data-testid": E.name
|
|
@@ -3792,7 +3799,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3792
3799
|
items: f(() => [
|
|
3793
3800
|
re(m.$slots, "actions", {
|
|
3794
3801
|
row: E,
|
|
3795
|
-
rowKey:
|
|
3802
|
+
rowKey: Q,
|
|
3796
3803
|
rowValue: Z
|
|
3797
3804
|
}, void 0, !0)
|
|
3798
3805
|
]),
|
|
@@ -3816,18 +3823,18 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3816
3823
|
]),
|
|
3817
3824
|
_: 2
|
|
3818
3825
|
}, [
|
|
3819
|
-
Ce(e.tableHeaders, (E,
|
|
3820
|
-
name:
|
|
3821
|
-
fn: f(({ row: Z, rowKey:
|
|
3826
|
+
Ce(e.tableHeaders, (E, Q) => ({
|
|
3827
|
+
name: Q,
|
|
3828
|
+
fn: f(({ row: Z, rowKey: W, rowValue: z }) => [
|
|
3822
3829
|
y(ku, {
|
|
3823
|
-
"key-name": String(
|
|
3830
|
+
"key-name": String(Q),
|
|
3824
3831
|
"row-el": p(Z),
|
|
3825
3832
|
tooltip: E.tooltip
|
|
3826
3833
|
}, {
|
|
3827
3834
|
default: f(() => [
|
|
3828
|
-
re(m.$slots,
|
|
3835
|
+
re(m.$slots, Q, {
|
|
3829
3836
|
row: Z,
|
|
3830
|
-
rowKey:
|
|
3837
|
+
rowKey: W,
|
|
3831
3838
|
rowValue: z
|
|
3832
3839
|
}, () => [
|
|
3833
3840
|
J(w(z), 1)
|
|
@@ -3850,7 +3857,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3850
3857
|
}, 8, ["title", "title-tag"]);
|
|
3851
3858
|
};
|
|
3852
3859
|
}
|
|
3853
|
-
}), Lr = /* @__PURE__ */
|
|
3860
|
+
}), Lr = /* @__PURE__ */ we(Su, [["__scopeId", "data-v-67bd29c7"]]), Iu = {
|
|
3854
3861
|
key: 0,
|
|
3855
3862
|
class: "kong-ui-entity-delete-error"
|
|
3856
3863
|
}, xu = {
|
|
@@ -3901,7 +3908,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3901
3908
|
r("proceed");
|
|
3902
3909
|
};
|
|
3903
3910
|
return (o, d) => {
|
|
3904
|
-
const h =
|
|
3911
|
+
const h = K("KAlert"), p = K("KPrompt");
|
|
3905
3912
|
return k(), P(p, {
|
|
3906
3913
|
"action-button-appearance": "danger",
|
|
3907
3914
|
"action-button-disabled": e.actionPending,
|
|
@@ -3914,7 +3921,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3914
3921
|
onProceed: c
|
|
3915
3922
|
}, {
|
|
3916
3923
|
default: f(() => [
|
|
3917
|
-
e.error ? (k(),
|
|
3924
|
+
e.error ? (k(), j("div", Iu, [
|
|
3918
3925
|
y(h, { appearance: "danger" }, {
|
|
3919
3926
|
default: f(() => [
|
|
3920
3927
|
J(w(e.error), 1)
|
|
@@ -3940,7 +3947,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3940
3947
|
key: "0"
|
|
3941
3948
|
} : void 0
|
|
3942
3949
|
]), 1032, ["keypath"]),
|
|
3943
|
-
l.description || o.$slots.description ? (k(),
|
|
3950
|
+
l.description || o.$slots.description ? (k(), j("div", xu, [
|
|
3944
3951
|
re(o.$slots, "description", {}, () => [
|
|
3945
3952
|
I("p", null, w(l.description), 1)
|
|
3946
3953
|
], !0)
|
|
@@ -3950,7 +3957,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3950
3957
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3951
3958
|
};
|
|
3952
3959
|
}
|
|
3953
|
-
}), Rr = /* @__PURE__ */
|
|
3960
|
+
}), Rr = /* @__PURE__ */ we(Au, [["__scopeId", "data-v-4361d622"]]), Hu = {
|
|
3954
3961
|
fill: "none",
|
|
3955
3962
|
height: "20",
|
|
3956
3963
|
viewBox: "0 0 20 20",
|
|
@@ -3973,7 +3980,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
3973
3980
|
}
|
|
3974
3981
|
},
|
|
3975
3982
|
setup(e) {
|
|
3976
|
-
return (a, t) => (k(),
|
|
3983
|
+
return (a, t) => (k(), j("svg", Hu, [
|
|
3977
3984
|
I("mask", Tu, [
|
|
3978
3985
|
I("rect", {
|
|
3979
3986
|
fill: e.color,
|
|
@@ -4062,7 +4069,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4062
4069
|
x && (s.value = !1), r("update:modelValue", new URLSearchParams(N).toString());
|
|
4063
4070
|
};
|
|
4064
4071
|
return (x, N) => {
|
|
4065
|
-
const m =
|
|
4072
|
+
const m = K("KInput"), S = K("KButton"), F = K("KSelect");
|
|
4066
4073
|
return e.config.isExactMatch ? (k(), P(m, {
|
|
4067
4074
|
key: 0,
|
|
4068
4075
|
autocomplete: "off",
|
|
@@ -4084,7 +4091,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4084
4091
|
])
|
|
4085
4092
|
]),
|
|
4086
4093
|
_: 1
|
|
4087
|
-
}, 8, ["model-value", "placeholder"])) : (k(),
|
|
4094
|
+
}, 8, ["model-value", "placeholder"])) : (k(), j("div", Fu, [
|
|
4088
4095
|
y(S, {
|
|
4089
4096
|
appearance: "tertiary",
|
|
4090
4097
|
"data-testid": "filter-button",
|
|
@@ -4103,9 +4110,9 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4103
4110
|
[He, s.value]
|
|
4104
4111
|
]),
|
|
4105
4112
|
Ae(I("div", $u, [
|
|
4106
|
-
(k(!0),
|
|
4113
|
+
(k(!0), j(fe, null, Ce(d.value, (q) => {
|
|
4107
4114
|
var A, M;
|
|
4108
|
-
return k(),
|
|
4115
|
+
return k(), j("div", {
|
|
4109
4116
|
key: q.value,
|
|
4110
4117
|
class: "kong-ui-entity-filter-menu-item",
|
|
4111
4118
|
"data-testid": q.value
|
|
@@ -4196,7 +4203,7 @@ const Ao = { class: "yaml-config" }, Pr = /* @__PURE__ */ X({
|
|
|
4196
4203
|
]));
|
|
4197
4204
|
};
|
|
4198
4205
|
}
|
|
4199
|
-
}), Lu = /* @__PURE__ */
|
|
4206
|
+
}), Lu = /* @__PURE__ */ we(Vu, [["__scopeId", "data-v-94990087"]]), Te = /* @__PURE__ */ X({
|
|
4200
4207
|
__name: "PermissionsWrapper",
|
|
4201
4208
|
props: {
|
|
4202
4209
|
/**
|
|
@@ -4292,17 +4299,17 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4292
4299
|
},
|
|
4293
4300
|
setup(e) {
|
|
4294
4301
|
const a = Vt(), t = Wu();
|
|
4295
|
-
return (l, r) => (k(),
|
|
4302
|
+
return (l, r) => (k(), j("div", {
|
|
4296
4303
|
"aria-labelledby": e.title ? u(t) : void 0,
|
|
4297
4304
|
class: qe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4298
4305
|
role: "group"
|
|
4299
4306
|
}, [
|
|
4300
4307
|
I("div", Zu, [
|
|
4301
|
-
e.hideInfoHeader ? D("", !0) : (k(),
|
|
4308
|
+
e.hideInfoHeader ? D("", !0) : (k(), j("div", {
|
|
4302
4309
|
key: 0,
|
|
4303
4310
|
class: qe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4304
4311
|
}, [
|
|
4305
|
-
e.title ? (k(), P(
|
|
4312
|
+
e.title ? (k(), P(_e(e.titleTag), {
|
|
4306
4313
|
key: 0,
|
|
4307
4314
|
id: u(t),
|
|
4308
4315
|
class: "form-section-title"
|
|
@@ -4312,12 +4319,12 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4312
4319
|
]),
|
|
4313
4320
|
_: 1
|
|
4314
4321
|
}, 8, ["id"])) : D("", !0),
|
|
4315
|
-
e.description || u(a).description ? (k(),
|
|
4322
|
+
e.description || u(a).description ? (k(), j("div", Yu, [
|
|
4316
4323
|
re(l.$slots, "description", {}, () => [
|
|
4317
4324
|
I("p", null, w(e.description), 1)
|
|
4318
4325
|
], !0)
|
|
4319
4326
|
])) : D("", !0),
|
|
4320
|
-
u(a).footer ? (k(),
|
|
4327
|
+
u(a).footer ? (k(), j("div", Gu, [
|
|
4321
4328
|
re(l.$slots, "footer", {}, void 0, !0)
|
|
4322
4329
|
])) : D("", !0)
|
|
4323
4330
|
], 2)),
|
|
@@ -4327,7 +4334,7 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4327
4334
|
])
|
|
4328
4335
|
], 10, Qu));
|
|
4329
4336
|
}
|
|
4330
|
-
}), ot = /* @__PURE__ */
|
|
4337
|
+
}), ot = /* @__PURE__ */ we(ec, [["__scopeId", "data-v-b1f74200"]]), { useAxios: wt, useDeleteUrlBuilder: Dr, useErrors: zr, useExternalLinkCreator: bd, useFetchUrlBuilder: kd, useFetcher: Jr, useDebouncedFilter: Bl, useStringHelpers: Cd, useHelpers: tc, useGatewayFeatureSupported: _d, useTruncationDetector: wd, useValidators: Sd } = de, bt = "24px", Wr = (e, a) => {
|
|
4331
4338
|
const t = e.__vccOpts || e;
|
|
4332
4339
|
for (const [l, r] of a)
|
|
4333
4340
|
t[l] = r;
|
|
@@ -4407,14 +4414,14 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4407
4414
|
lineHeight: "0",
|
|
4408
4415
|
width: t.value
|
|
4409
4416
|
}));
|
|
4410
|
-
return (r, s) => (k(), P(
|
|
4417
|
+
return (r, s) => (k(), P(_e(e.as), {
|
|
4411
4418
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
4412
4419
|
class: "kui-icon add-icon",
|
|
4413
4420
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
4414
4421
|
style: Be(l.value)
|
|
4415
4422
|
}, {
|
|
4416
4423
|
default: f(() => [
|
|
4417
|
-
(k(),
|
|
4424
|
+
(k(), j("svg", {
|
|
4418
4425
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
4419
4426
|
"data-testid": "kui-icon-svg-add-icon",
|
|
4420
4427
|
fill: "none",
|
|
@@ -4424,7 +4431,7 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4424
4431
|
width: "100%",
|
|
4425
4432
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4426
4433
|
}, [
|
|
4427
|
-
e.title ? (k(),
|
|
4434
|
+
e.title ? (k(), j("title", rc, w(e.title), 1)) : D("", !0),
|
|
4428
4435
|
ic
|
|
4429
4436
|
], 8, lc))
|
|
4430
4437
|
]),
|
|
@@ -4506,14 +4513,14 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4506
4513
|
lineHeight: "0",
|
|
4507
4514
|
width: t.value
|
|
4508
4515
|
}));
|
|
4509
|
-
return (r, s) => (k(), P(
|
|
4516
|
+
return (r, s) => (k(), P(_e(e.as), {
|
|
4510
4517
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
4511
4518
|
class: "kui-icon trash-icon",
|
|
4512
4519
|
"data-testid": "kui-icon-wrapper-trash-icon",
|
|
4513
4520
|
style: Be(l.value)
|
|
4514
4521
|
}, {
|
|
4515
4522
|
default: f(() => [
|
|
4516
|
-
(k(),
|
|
4523
|
+
(k(), j("svg", {
|
|
4517
4524
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
4518
4525
|
"data-testid": "kui-icon-svg-trash-icon",
|
|
4519
4526
|
fill: "none",
|
|
@@ -4523,7 +4530,7 @@ const Qu = ["aria-labelledby"], Zu = { class: "form-section-wrapper" }, Yu = {
|
|
|
4523
4530
|
width: "100%",
|
|
4524
4531
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4525
4532
|
}, [
|
|
4526
|
-
e.title ? (k(),
|
|
4533
|
+
e.title ? (k(), j("title", uc, w(e.title), 1)) : D("", !0),
|
|
4527
4534
|
cc
|
|
4528
4535
|
], 8, oc))
|
|
4529
4536
|
]),
|
|
@@ -5339,9 +5346,9 @@ function St() {
|
|
|
5339
5346
|
stringToNumberArray: t,
|
|
5340
5347
|
numberToStringArray: l,
|
|
5341
5348
|
upstreamsResponseToFields: (o) => {
|
|
5342
|
-
var h, p, g, n, O, H, v, U, $, R, x, N, m, S, F, q, A, M, E,
|
|
5349
|
+
var h, p, g, n, O, H, v, U, $, R, x, N, m, S, F, q, A, M, E, Q, Z, W, z, ee, ue, V, Y, te, C, b, _, ie, G, se, he, ae, ge, je, Le, Xt, ea, ta, aa, la, ra, ia, sa, na, oa, ua, ca, da, ha, pa, fa, ma, ga, va, ya, ba, ka, Ca, _a, wa, Sa, Ia, xa, Aa, Ha, Ta, qa, Oa, Ua, Fa, $a, Na, Ma, ja, Ka, Ea, Ba, Pa, Va, La, Ra, Da, za, Ja, Wa, Qa, Za, Ya, Ga, Xa, el, tl, al, ll, rl, il, sl, nl, ol, ul, cl, dl, hl, pl, fl;
|
|
5343
5350
|
const d = r();
|
|
5344
|
-
return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (g = o.healthchecks.active) == null ? void 0 : g.healthy) == null ? void 0 : n.interval) !== 0 || ((H = (O = o.healthchecks.active) == null ? void 0 : O.unhealthy) == null ? void 0 : H.interval) !== 0, d.activeHealthCheck.type = ((v = o.healthchecks.active) == null ? void 0 : v.type) || "http", d.activeHealthCheck.httpPath = ((U = o.healthchecks.active) == null ? void 0 : U.http_path) || "/", d.activeHealthCheck.timeout = (($ = o.healthchecks.active) == null ? void 0 : $.timeout) !== null && ((R = o.healthchecks.active) == null ? void 0 : R.timeout) !== void 0 ? (N = (x = o.healthchecks.active) == null ? void 0 : x.timeout) == null ? void 0 : N.toString() : "", d.activeHealthCheck.concurrency = ((m = o.healthchecks.active) == null ? void 0 : m.concurrency) !== null && ((S = o.healthchecks.active) == null ? void 0 : S.concurrency) !== void 0 ? (q = (F = o.healthchecks.active) == null ? void 0 : F.concurrency) == null ? void 0 : q.toString() : "", d.activeHealthCheck.httpsSni = ((A = o.healthchecks.active) == null ? void 0 : A.https_sni) || "", d.activeHealthCheck.verifySsl = ((M = o.healthchecks.active) == null ? void 0 : M.https_verify_certificate) || !1, d.activeHealthCheck.headers = (E = o.healthchecks.active) != null && E.headers && Object.entries((
|
|
5351
|
+
return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (g = o.healthchecks.active) == null ? void 0 : g.healthy) == null ? void 0 : n.interval) !== 0 || ((H = (O = o.healthchecks.active) == null ? void 0 : O.unhealthy) == null ? void 0 : H.interval) !== 0, d.activeHealthCheck.type = ((v = o.healthchecks.active) == null ? void 0 : v.type) || "http", d.activeHealthCheck.httpPath = ((U = o.healthchecks.active) == null ? void 0 : U.http_path) || "/", d.activeHealthCheck.timeout = (($ = o.healthchecks.active) == null ? void 0 : $.timeout) !== null && ((R = o.healthchecks.active) == null ? void 0 : R.timeout) !== void 0 ? (N = (x = o.healthchecks.active) == null ? void 0 : x.timeout) == null ? void 0 : N.toString() : "", d.activeHealthCheck.concurrency = ((m = o.healthchecks.active) == null ? void 0 : m.concurrency) !== null && ((S = o.healthchecks.active) == null ? void 0 : S.concurrency) !== void 0 ? (q = (F = o.healthchecks.active) == null ? void 0 : F.concurrency) == null ? void 0 : q.toString() : "", d.activeHealthCheck.httpsSni = ((A = o.healthchecks.active) == null ? void 0 : A.https_sni) || "", d.activeHealthCheck.verifySsl = ((M = o.healthchecks.active) == null ? void 0 : M.https_verify_certificate) || !1, d.activeHealthCheck.headers = (E = o.healthchecks.active) != null && E.headers && Object.entries((Q = o.healthchecks.active) == null ? void 0 : Q.headers).length > 0 ? Object.entries((Z = o.healthchecks.active) == null ? void 0 : Z.headers).map(([Yr, xt]) => ({ key: Yr, values: xt == null ? void 0 : xt.join(", ") })) : [{ key: "", values: "" }], d.activeHealthCheck.interval = ((z = (W = o.healthchecks.active) == null ? void 0 : W.healthy) == null ? void 0 : z.interval) !== null && ((ue = (ee = o.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : ue.interval) !== void 0 ? (te = (Y = (V = o.healthchecks.active) == null ? void 0 : V.healthy) == null ? void 0 : Y.interval) == null ? void 0 : te.toString() : "0", d.activeHealthCheck.interval = ((b = (C = o.healthchecks.active) == null ? void 0 : C.healthy) == null ? void 0 : b.interval) !== null && ((ie = (_ = o.healthchecks.active) == null ? void 0 : _.healthy) == null ? void 0 : ie.interval) !== void 0 ? (he = (se = (G = o.healthchecks.active) == null ? void 0 : G.healthy) == null ? void 0 : se.interval) == null ? void 0 : he.toString() : "0", d.activeHealthCheck.successes = ((ge = (ae = o.healthchecks.active) == null ? void 0 : ae.healthy) == null ? void 0 : ge.successes) !== null && ((Le = (je = o.healthchecks.active) == null ? void 0 : je.healthy) == null ? void 0 : Le.successes) !== void 0 ? (ta = (ea = (Xt = o.healthchecks.active) == null ? void 0 : Xt.healthy) == null ? void 0 : ea.successes) == null ? void 0 : ta.toString() : "0", d.activeHealthCheck.httpStatuses = (la = (aa = o.healthchecks.active) == null ? void 0 : aa.healthy) != null && la.http_statuses ? l(((ia = (ra = o.healthchecks.active) == null ? void 0 : ra.healthy) == null ? void 0 : ia.http_statuses) || []) : Kt, d.activeHealthCheck.unhealthyInterval = ((na = (sa = o.healthchecks.active) == null ? void 0 : sa.unhealthy) == null ? void 0 : na.interval) !== null && ((ua = (oa = o.healthchecks.active) == null ? void 0 : oa.unhealthy) == null ? void 0 : ua.interval) !== void 0 ? (ha = (da = (ca = o.healthchecks.active) == null ? void 0 : ca.unhealthy) == null ? void 0 : da.interval) == null ? void 0 : ha.toString() : "0", d.activeHealthCheck.httpFailures = ((fa = (pa = o.healthchecks.active) == null ? void 0 : pa.unhealthy) == null ? void 0 : fa.http_failures) !== null && ((ga = (ma = o.healthchecks.active) == null ? void 0 : ma.unhealthy) == null ? void 0 : ga.http_failures) !== void 0 ? (ba = (ya = (va = o.healthchecks.active) == null ? void 0 : va.unhealthy) == null ? void 0 : ya.http_failures) == null ? void 0 : ba.toString() : "0", d.activeHealthCheck.unhealthyTimeouts = ((Ca = (ka = o.healthchecks.active) == null ? void 0 : ka.unhealthy) == null ? void 0 : Ca.timeouts) !== null && ((wa = (_a = o.healthchecks.active) == null ? void 0 : _a.unhealthy) == null ? void 0 : wa.timeouts) !== void 0 ? (xa = (Ia = (Sa = o.healthchecks.active) == null ? void 0 : Sa.unhealthy) == null ? void 0 : Ia.timeouts) == null ? void 0 : xa.toString() : "0", d.activeHealthCheck.unhealthyHttpStatuses = (Ha = (Aa = o.healthchecks.active) == null ? void 0 : Aa.unhealthy) != null && Ha.http_statuses ? l(((qa = (Ta = o.healthchecks.active) == null ? void 0 : Ta.unhealthy) == null ? void 0 : qa.http_statuses) || []) : Bt, d.passiveHealthSwitch = ((Ua = (Oa = o.healthchecks.passive) == null ? void 0 : Oa.healthy) == null ? void 0 : Ua.successes) !== 0 || (($a = (Fa = o.healthchecks.passive) == null ? void 0 : Fa.unhealthy) == null ? void 0 : $a.timeouts) !== 0 || ((Ma = (Na = o.healthchecks.passive) == null ? void 0 : Na.unhealthy) == null ? void 0 : Ma.tcp_failures) !== 0 || ((Ka = (ja = o.healthchecks.passive) == null ? void 0 : ja.unhealthy) == null ? void 0 : Ka.http_failures) !== 0, d.passiveHealthCheck.type = ((Ea = o.healthchecks.passive) == null ? void 0 : Ea.type) || "http", d.passiveHealthCheck.successes = ((Pa = (Ba = o.healthchecks.passive) == null ? void 0 : Ba.healthy) == null ? void 0 : Pa.successes) !== null && ((La = (Va = o.healthchecks.passive) == null ? void 0 : Va.healthy) == null ? void 0 : La.successes) !== void 0 ? (za = (Da = (Ra = o.healthchecks.passive) == null ? void 0 : Ra.healthy) == null ? void 0 : Da.successes) == null ? void 0 : za.toString() : "0", d.passiveHealthCheck.httpStatuses = (Wa = (Ja = o.healthchecks.passive) == null ? void 0 : Ja.healthy) != null && Wa.http_statuses ? l(((Za = (Qa = o.healthchecks.passive) == null ? void 0 : Qa.healthy) == null ? void 0 : Za.http_statuses) || []) : Et, d.passiveHealthCheck.timeouts = ((Ga = (Ya = o.healthchecks.passive) == null ? void 0 : Ya.unhealthy) == null ? void 0 : Ga.timeouts) !== null && ((el = (Xa = o.healthchecks.passive) == null ? void 0 : Xa.unhealthy) == null ? void 0 : el.timeouts) !== void 0 ? (ll = (al = (tl = o.healthchecks.passive) == null ? void 0 : tl.unhealthy) == null ? void 0 : al.timeouts) == null ? void 0 : ll.toString() : "0", d.passiveHealthCheck.tcpFailures = ((il = (rl = o.healthchecks.passive) == null ? void 0 : rl.unhealthy) == null ? void 0 : il.tcp_failures) !== null && ((nl = (sl = o.healthchecks.passive) == null ? void 0 : sl.unhealthy) == null ? void 0 : nl.tcp_failures) !== void 0 ? (cl = (ul = (ol = o.healthchecks.passive) == null ? void 0 : ol.unhealthy) == null ? void 0 : ul.tcp_failures) == null ? void 0 : cl.toString() : "", d.passiveHealthCheck.unhealthyHttpStatuses = (hl = (dl = o.healthchecks.passive) == null ? void 0 : dl.unhealthy) != null && hl.http_statuses ? l(((fl = (pl = o.healthchecks.passive) == null ? void 0 : pl.unhealthy) == null ? void 0 : fl.http_statuses) || []) : Pt, d;
|
|
5345
5352
|
},
|
|
5346
5353
|
getDefaultUpstreamFields: r,
|
|
5347
5354
|
objectsAreEqual: (o, d) => {
|
|
@@ -5488,11 +5495,11 @@ const Ue = {
|
|
|
5488
5495
|
}), S = (V) => ({
|
|
5489
5496
|
label: r("upstreams.actions.edit"),
|
|
5490
5497
|
to: l.config.getEditRoute(V)
|
|
5491
|
-
}), F = B(void 0), q = B(!1), A = B(!1), M = B(""), E = Dr(l.config, p.value),
|
|
5498
|
+
}), F = B(void 0), q = B(!1), A = B(!1), M = B(""), E = Dr(l.config, p.value), Q = (V) => {
|
|
5492
5499
|
F.value = V, q.value = !0;
|
|
5493
5500
|
}, Z = () => {
|
|
5494
5501
|
q.value = !1;
|
|
5495
|
-
},
|
|
5502
|
+
}, W = async () => {
|
|
5496
5503
|
var V, Y, te;
|
|
5497
5504
|
if ((V = F.value) != null && V.id) {
|
|
5498
5505
|
A.value = !0;
|
|
@@ -5524,8 +5531,8 @@ const Ue = {
|
|
|
5524
5531
|
return st(async () => {
|
|
5525
5532
|
await l.canCreate() && (ee.value.title = r("upstreams.list.empty_state.title"), ee.value.ctaText = r("upstreams.actions.create"));
|
|
5526
5533
|
}), (V, Y) => {
|
|
5527
|
-
const te =
|
|
5528
|
-
return k(),
|
|
5534
|
+
const te = K("KButton"), C = K("KBadge"), b = K("KTruncate"), _ = K("KDropdownItem"), ie = K("KClipboardProvider");
|
|
5535
|
+
return k(), j("div", wc, [
|
|
5529
5536
|
y(u(Lr), {
|
|
5530
5537
|
"cache-identifier": e.cacheIdentifier,
|
|
5531
5538
|
"disable-pagination-page-jump": "",
|
|
@@ -5585,7 +5592,7 @@ const Ue = {
|
|
|
5585
5592
|
tags: f(({ rowValue: G }) => [
|
|
5586
5593
|
y(b, null, {
|
|
5587
5594
|
default: f(() => [
|
|
5588
|
-
(k(!0),
|
|
5595
|
+
(k(!0), j(fe, null, Ce(G, (se) => (k(), P(C, {
|
|
5589
5596
|
key: se,
|
|
5590
5597
|
"max-width": "auto"
|
|
5591
5598
|
}, {
|
|
@@ -5658,7 +5665,7 @@ const Ue = {
|
|
|
5658
5665
|
danger: "",
|
|
5659
5666
|
"data-testid": "action-entity-delete",
|
|
5660
5667
|
"has-divider": "",
|
|
5661
|
-
onClick: (se) =>
|
|
5668
|
+
onClick: (se) => Q(G)
|
|
5662
5669
|
}, {
|
|
5663
5670
|
default: f(() => [
|
|
5664
5671
|
J(w(u(r)("upstreams.actions.delete")), 1)
|
|
@@ -5680,7 +5687,7 @@ const Ue = {
|
|
|
5680
5687
|
title: u(r)("upstreams.delete.title"),
|
|
5681
5688
|
visible: q.value,
|
|
5682
5689
|
onCancel: Z,
|
|
5683
|
-
onProceed:
|
|
5690
|
+
onProceed: W
|
|
5684
5691
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
5685
5692
|
]);
|
|
5686
5693
|
};
|
|
@@ -5738,7 +5745,7 @@ const Ue = {
|
|
|
5738
5745
|
const t = a, l = e, { i18n: { t: r } } = Ue.useI18n(), { getMessageFromError: s } = zr(), { axiosInstance: i } = wt((N = l.config) == null ? void 0 : N.axiosRequestConfig), c = T(() => {
|
|
5739
5746
|
var m;
|
|
5740
5747
|
return ht.form[l.config.app].edit.replace(/{upstreamId}/gi, ((m = l.config) == null ? void 0 : m.upstreamId) || "");
|
|
5741
|
-
}), o = T(() => l.targetId ?
|
|
5748
|
+
}), o = T(() => l.targetId ? Se.Edit : Se.Create), d = T(() => o.value === Se.Edit ? r("targets.form.edit.title") : r("targets.form.create.title")), h = pt({
|
|
5742
5749
|
fields: {
|
|
5743
5750
|
target: "",
|
|
5744
5751
|
weight: 100,
|
|
@@ -5798,7 +5805,7 @@ const Ue = {
|
|
|
5798
5805
|
return ke(() => l.targetId, () => {
|
|
5799
5806
|
Object.assign(h.fields, g);
|
|
5800
5807
|
}), (m, S) => {
|
|
5801
|
-
const F =
|
|
5808
|
+
const F = K("KInput"), q = K("KPrompt");
|
|
5802
5809
|
return k(), P(q, {
|
|
5803
5810
|
"action-button-disabled": !O.value || h.isReadonly,
|
|
5804
5811
|
"action-button-text": u(r)("targets.form.buttons.save"),
|
|
@@ -5824,7 +5831,7 @@ const Ue = {
|
|
|
5824
5831
|
}, {
|
|
5825
5832
|
default: f(() => [
|
|
5826
5833
|
I("div", Ac, [
|
|
5827
|
-
m.$slots.info ? (k(),
|
|
5834
|
+
m.$slots.info ? (k(), j("div", Hc, [
|
|
5828
5835
|
re(m.$slots, "info", {}, void 0, !0)
|
|
5829
5836
|
])) : D("", !0),
|
|
5830
5837
|
y(F, {
|
|
@@ -5979,10 +5986,10 @@ const Ue = {
|
|
|
5979
5986
|
S.value = !1;
|
|
5980
5987
|
}
|
|
5981
5988
|
}
|
|
5982
|
-
},
|
|
5989
|
+
}, Q = B(!0);
|
|
5983
5990
|
ke(g, (C) => {
|
|
5984
5991
|
var b, _, ie, G;
|
|
5985
|
-
if (Array.isArray((b = C == null ? void 0 : C.response) == null ? void 0 : b.data) && (
|
|
5992
|
+
if (Array.isArray((b = C == null ? void 0 : C.response) == null ? void 0 : b.data) && (Q.value = C.response.data.length > 0), C.status === $e.Error) {
|
|
5986
5993
|
O.value = {
|
|
5987
5994
|
title: r("targets.errors.general")
|
|
5988
5995
|
}, (G = (ie = (_ = C.error) == null ? void 0 : _.response) == null ? void 0 : ie.data) != null && G.message && (O.value.message = C.error.response.data.message), t("error", C.error);
|
|
@@ -6002,7 +6009,7 @@ const Ue = {
|
|
|
6002
6009
|
st(async () => {
|
|
6003
6010
|
await l.canCreate() && (Z.value.title = r("targets.list.empty_state.title"), Z.value.ctaText = r("targets.actions.create"));
|
|
6004
6011
|
});
|
|
6005
|
-
const
|
|
6012
|
+
const W = T(() => ({
|
|
6006
6013
|
app: l.config.app,
|
|
6007
6014
|
apiBaseUrl: l.config.apiBaseUrl,
|
|
6008
6015
|
upstreamId: l.config.upstreamId,
|
|
@@ -6023,8 +6030,8 @@ const Ue = {
|
|
|
6023
6030
|
ee.value = !1, z.value = "";
|
|
6024
6031
|
};
|
|
6025
6032
|
return (C, b) => {
|
|
6026
|
-
const _ =
|
|
6027
|
-
return k(),
|
|
6033
|
+
const _ = K("KButton"), ie = K("KBadge"), G = K("KTruncate"), se = K("KDropdownItem"), he = K("KClipboardProvider");
|
|
6034
|
+
return k(), j("div", Oc, [
|
|
6028
6035
|
y(u(Lr), {
|
|
6029
6036
|
"cache-identifier": e.cacheIdentifier,
|
|
6030
6037
|
"disable-pagination-page-jump": "",
|
|
@@ -6062,7 +6069,7 @@ const Ue = {
|
|
|
6062
6069
|
]),
|
|
6063
6070
|
_: 1
|
|
6064
6071
|
}, 8, ["to"]), [
|
|
6065
|
-
[He,
|
|
6072
|
+
[He, Q.value]
|
|
6066
6073
|
])
|
|
6067
6074
|
]),
|
|
6068
6075
|
_: 1
|
|
@@ -6075,7 +6082,7 @@ const Ue = {
|
|
|
6075
6082
|
tags: f(({ rowValue: ae }) => [
|
|
6076
6083
|
y(G, null, {
|
|
6077
6084
|
default: f(() => [
|
|
6078
|
-
(k(!0),
|
|
6085
|
+
(k(!0), j(fe, null, Ce(ae, (ge) => (k(), P(ie, {
|
|
6079
6086
|
key: ge,
|
|
6080
6087
|
"max-width": "auto"
|
|
6081
6088
|
}, {
|
|
@@ -6199,7 +6206,7 @@ const Ue = {
|
|
|
6199
6206
|
onProceed: E
|
|
6200
6207
|
}, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"]),
|
|
6201
6208
|
y(qc, {
|
|
6202
|
-
config:
|
|
6209
|
+
config: W.value,
|
|
6203
6210
|
"is-visible": ee.value,
|
|
6204
6211
|
"target-id": z.value,
|
|
6205
6212
|
onCancel: Y,
|
|
@@ -6247,7 +6254,7 @@ const Ue = {
|
|
|
6247
6254
|
},
|
|
6248
6255
|
emits: ["update:name", "update:host-header", "update:client-certificate", "update:tags"],
|
|
6249
6256
|
setup(e, { emit: a }) {
|
|
6250
|
-
var M, E,
|
|
6257
|
+
var M, E, Q, Z;
|
|
6251
6258
|
const { i18nT: t, i18n: { t: l } } = Ue.useI18n(), r = e, s = a, {
|
|
6252
6259
|
debouncedQueryChange: i,
|
|
6253
6260
|
loading: c,
|
|
@@ -6262,39 +6269,39 @@ const Ue = {
|
|
|
6262
6269
|
loading: g,
|
|
6263
6270
|
loadItems: n,
|
|
6264
6271
|
results: O
|
|
6265
|
-
} = Bl(r.config, (Z = Xe.form[(
|
|
6266
|
-
var
|
|
6267
|
-
return !!r.name && !((
|
|
6272
|
+
} = Bl(r.config, (Z = Xe.form[(Q = r.config) == null ? void 0 : Q.app]) == null ? void 0 : Z.getCertificates), H = B(""), v = T(() => {
|
|
6273
|
+
var W;
|
|
6274
|
+
return !!r.name && !((W = h.value) != null && W.some((z) => z.host === r.name));
|
|
6268
6275
|
}), U = T(() => {
|
|
6269
6276
|
var z, ee, ue;
|
|
6270
|
-
const
|
|
6277
|
+
const W = v.value && r.name.includes((z = H.value) == null ? void 0 : z.toLowerCase());
|
|
6271
6278
|
return (ue = d.value) == null ? void 0 : ue.map((V) => ({ label: V.host, value: V.id })).concat(
|
|
6272
|
-
|
|
6279
|
+
W ? [{ label: r.name, value: ((ee = x.value) == null ? void 0 : ee.value) || r.name }] : []
|
|
6273
6280
|
);
|
|
6274
6281
|
}), $ = T(() => {
|
|
6275
|
-
var
|
|
6276
|
-
return (
|
|
6282
|
+
var W;
|
|
6283
|
+
return (W = O.value) == null ? void 0 : W.map((z) => ({ label: z.id, value: z.id }));
|
|
6277
6284
|
}), R = B(""), x = B({ value: "", label: "" }), N = T(() => {
|
|
6278
|
-
var
|
|
6279
|
-
return ((
|
|
6280
|
-
}), m = (
|
|
6281
|
-
H.value =
|
|
6282
|
-
}, S = (
|
|
6283
|
-
x.value =
|
|
6285
|
+
var W, z;
|
|
6286
|
+
return ((W = U.value.find((ee) => ee.value === R.value)) == null ? void 0 : W.label) || ((z = x.value) == null ? void 0 : z.label);
|
|
6287
|
+
}), m = (W) => {
|
|
6288
|
+
H.value = W, i(W);
|
|
6289
|
+
}, S = (W) => {
|
|
6290
|
+
x.value = W;
|
|
6284
6291
|
}, F = () => {
|
|
6285
6292
|
x.value = { value: "", label: "" };
|
|
6286
|
-
}, q = (
|
|
6287
|
-
R.value =
|
|
6293
|
+
}, q = (W) => {
|
|
6294
|
+
R.value = W, s("update:name", N.value);
|
|
6288
6295
|
}, A = B(!1);
|
|
6289
6296
|
return st(async () => {
|
|
6290
|
-
var
|
|
6297
|
+
var W, z;
|
|
6291
6298
|
try {
|
|
6292
|
-
A.value = !0, await o(), r.name && (R.value = ((z = (
|
|
6299
|
+
A.value = !0, await o(), r.name && (R.value = ((z = (W = U.value.find((ee) => ee.label === r.name)) == null ? void 0 : W.value) == null ? void 0 : z.toString()) || r.name), await n();
|
|
6293
6300
|
} finally {
|
|
6294
6301
|
A.value = !1;
|
|
6295
6302
|
}
|
|
6296
|
-
}), (
|
|
6297
|
-
const ee =
|
|
6303
|
+
}), (W, z) => {
|
|
6304
|
+
const ee = K("KSkeleton"), ue = K("KSelect"), V = K("KInput");
|
|
6298
6305
|
return k(), P(u(ot), {
|
|
6299
6306
|
class: "kong-ui-entities-upstreams-general-info",
|
|
6300
6307
|
description: u(l)("upstreams.form.general_info.help"),
|
|
@@ -6304,7 +6311,7 @@ const Ue = {
|
|
|
6304
6311
|
A.value ? (k(), P(ee, {
|
|
6305
6312
|
key: 0,
|
|
6306
6313
|
type: "form"
|
|
6307
|
-
})) : (k(),
|
|
6314
|
+
})) : (k(), j("div", $c, [
|
|
6308
6315
|
y(ue, {
|
|
6309
6316
|
class: "name-select margin-bottom-6",
|
|
6310
6317
|
clearable: "",
|
|
@@ -6516,7 +6523,7 @@ const Ue = {
|
|
|
6516
6523
|
});
|
|
6517
6524
|
const d = T(() => s.hashOn === "cookie" || s.hashOn === "none"), h = T(() => s.slots ? r(s.slots, Mt, jt) ? "" : l("upstreams.form.errors.in_range") : "");
|
|
6518
6525
|
return (p, g) => {
|
|
6519
|
-
const n =
|
|
6526
|
+
const n = K("KExternalLink"), O = K("KSelect"), H = K("KInput"), v = K("KCard");
|
|
6520
6527
|
return k(), P(u(ot), {
|
|
6521
6528
|
class: "kong-ui-entities-upstreams-load-balancing",
|
|
6522
6529
|
title: u(l)("upstreams.form.load_balancing.title")
|
|
@@ -6584,7 +6591,7 @@ const Ue = {
|
|
|
6584
6591
|
type: "text",
|
|
6585
6592
|
"onUpdate:modelValue": g[3] || (g[3] = (U) => i("update:hash-on-header", U))
|
|
6586
6593
|
}, null, 8, ["label", "model-value", "readonly"])) : D("", !0),
|
|
6587
|
-
e.hashOn === "cookie" ? (k(),
|
|
6594
|
+
e.hashOn === "cookie" ? (k(), j(fe, { key: 1 }, [
|
|
6588
6595
|
y(H, {
|
|
6589
6596
|
autocomplete: "off",
|
|
6590
6597
|
class: "margin-top-6",
|
|
@@ -6678,7 +6685,7 @@ const Ue = {
|
|
|
6678
6685
|
type: "text",
|
|
6679
6686
|
"onUpdate:modelValue": g[9] || (g[9] = (U) => i("update:hash-fallback-header", U))
|
|
6680
6687
|
}, null, 8, ["label", "model-value", "readonly"])) : D("", !0),
|
|
6681
|
-
e.hashFallback === "cookie" ? (k(),
|
|
6688
|
+
e.hashFallback === "cookie" ? (k(), j(fe, { key: 1 }, [
|
|
6682
6689
|
y(H, {
|
|
6683
6690
|
autocomplete: "off",
|
|
6684
6691
|
class: "margin-top-6",
|
|
@@ -6759,7 +6766,7 @@ const Ue = {
|
|
|
6759
6766
|
setup(e, { emit: a }) {
|
|
6760
6767
|
const { i18n: { t } } = Ue.useI18n(), l = a;
|
|
6761
6768
|
return (r, s) => {
|
|
6762
|
-
const i =
|
|
6769
|
+
const i = K("KExternalLink"), c = K("KInputSwitch"), o = K("KCard"), d = K("KInput");
|
|
6763
6770
|
return k(), P(u(ot), {
|
|
6764
6771
|
class: "kong-ui-entities-upstreams-healthchecks",
|
|
6765
6772
|
title: u(t)("upstreams.form.health_check.title")
|
|
@@ -6947,7 +6954,7 @@ const Ue = {
|
|
|
6947
6954
|
H === 0 && p.value.length === 1 ? p.value[0] = { key: "", values: "" } : p.value.splice(H, 1), g();
|
|
6948
6955
|
};
|
|
6949
6956
|
return (H, v) => {
|
|
6950
|
-
const U =
|
|
6957
|
+
const U = K("KExternalLink"), $ = K("KSelect"), R = K("KInput"), x = K("KCheckbox"), N = K("KLabel"), m = K("KButton"), S = K("KMultiselect"), F = K("KCard");
|
|
6951
6958
|
return k(), P(u(ot), {
|
|
6952
6959
|
class: "kong-ui-entities-upstreams-active-healthcheck",
|
|
6953
6960
|
title: u(t)("upstreams.form.active_health_check.title")
|
|
@@ -7010,7 +7017,7 @@ const Ue = {
|
|
|
7010
7017
|
type: "number",
|
|
7011
7018
|
"onUpdate:modelValue": v[3] || (v[3] = (A) => s("update:concurrency", A))
|
|
7012
7019
|
}, null, 8, ["label", "max", "min", "model-value", "readonly"]),
|
|
7013
|
-
c.value ? (k(),
|
|
7020
|
+
c.value ? (k(), j(fe, { key: 1 }, [
|
|
7014
7021
|
y(R, {
|
|
7015
7022
|
autocomplete: "off",
|
|
7016
7023
|
class: "margin-bottom-6",
|
|
@@ -7029,7 +7036,7 @@ const Ue = {
|
|
|
7029
7036
|
"onUpdate:modelValue": v[5] || (v[5] = (A) => s("update:verify-ssl", A))
|
|
7030
7037
|
}, null, 8, ["disabled", "label", "model-value"])
|
|
7031
7038
|
], 64)) : D("", !0),
|
|
7032
|
-
((q = e.config) == null ? void 0 : q.app) === "kongManager" ? (k(),
|
|
7039
|
+
((q = e.config) == null ? void 0 : q.app) === "kongManager" ? (k(), j("div", Zc, [
|
|
7033
7040
|
y(N, {
|
|
7034
7041
|
info: u(t)("upstreams.form.fields.headers.tooltip_active"),
|
|
7035
7042
|
"tooltip-attributes": { maxWidth: "250px" }
|
|
@@ -7040,7 +7047,7 @@ const Ue = {
|
|
|
7040
7047
|
_: 1
|
|
7041
7048
|
}, 8, ["info"]),
|
|
7042
7049
|
I("div", null, [
|
|
7043
|
-
(k(!0),
|
|
7050
|
+
(k(!0), j(fe, null, Ce(p.value, (A, M) => (k(), j("div", {
|
|
7044
7051
|
key: `${A.header}_${M}`,
|
|
7045
7052
|
class: qe(["headers-row", { "margin-top-6": M > 0 }])
|
|
7046
7053
|
}, [
|
|
@@ -7168,7 +7175,7 @@ const Ue = {
|
|
|
7168
7175
|
readonly: e.readonly,
|
|
7169
7176
|
type: "number",
|
|
7170
7177
|
"onUpdate:modelValue": v[12] || (v[12] = (A) => s("update:tcp-failures", A))
|
|
7171
|
-
}, null, 8, ["label", "max", "min", "model-value", "readonly"])) : (k(),
|
|
7178
|
+
}, null, 8, ["label", "max", "min", "model-value", "readonly"])) : (k(), j(fe, { key: 1 }, [
|
|
7172
7179
|
y(R, {
|
|
7173
7180
|
autocomplete: "off",
|
|
7174
7181
|
class: "margin-bottom-6",
|
|
@@ -7288,7 +7295,7 @@ const Ue = {
|
|
|
7288
7295
|
return ke(() => l.type, (d, h) => {
|
|
7289
7296
|
h === "tcp" && d !== h && r("update:tcp-failures", "5"), h !== "tcp" && d === "tcp" && (r("update:http-statuses", Et), r("update:unhealthy-http-statuses", Pt));
|
|
7290
7297
|
}), (d, h) => {
|
|
7291
|
-
const p =
|
|
7298
|
+
const p = K("KExternalLink"), g = K("KSelect"), n = K("KInput"), O = K("KMultiselect"), H = K("KCard");
|
|
7292
7299
|
return k(), P(u(ot), {
|
|
7293
7300
|
class: "kong-ui-entities-upstreams-passive-healthcheck",
|
|
7294
7301
|
title: u(t)("upstreams.form.passive_health_check.title")
|
|
@@ -7375,7 +7382,7 @@ const Ue = {
|
|
|
7375
7382
|
readonly: e.readonly,
|
|
7376
7383
|
type: "number",
|
|
7377
7384
|
"onUpdate:modelValue": h[6] || (h[6] = (v) => r("update:tcp-failures", v))
|
|
7378
|
-
}, null, 8, ["label", "max", "min", "model-value", "readonly"])) : (k(),
|
|
7385
|
+
}, null, 8, ["label", "max", "min", "model-value", "readonly"])) : (k(), j(fe, { key: 1 }, [
|
|
7379
7386
|
y(n, {
|
|
7380
7387
|
autocomplete: "off",
|
|
7381
7388
|
class: "margin-top-6",
|
|
@@ -7437,12 +7444,12 @@ const Ue = {
|
|
|
7437
7444
|
n.fields.activeHealthCheck.interval = C ? "5" : "0", n.fields.activeHealthCheck.successes = C ? "5" : "0", n.fields.activeHealthCheck.httpFailures = C ? "5" : "0", n.fields.activeHealthCheck.unhealthyInterval = C ? "5" : "0";
|
|
7438
7445
|
}, U = (C) => {
|
|
7439
7446
|
n.fields.passiveHealthCheck.timeouts = C ? "5" : "0", n.fields.passiveHealthCheck.successes = C ? "80" : "0";
|
|
7440
|
-
}, $ = T(() => n.fields.slots ? r(n.fields.slots, Mt, jt) : !0), R = T(() => n.fields.hashOn === "header" ? !!n.fields.hashOnHeader : !0), x = T(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookie : !0), N = T(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookiePath : !0), m = T(() => n.fields.hashOn === "query_arg" ? !!n.fields.hashOnQueryArgument : !0), S = T(() => n.fields.hashOn === "uri_capture" ? !!n.fields.hashOnUriCapture : !0), F = T(() => n.fields.hashFallback === "header" ? !!n.fields.hashFallbackHeader : !0), q = T(() => n.fields.hashFallback === "query_arg" ? !!n.fields.hashFallbackQueryArgument : !0), A = T(() => n.fields.hashFallback === "uri_capture" ? !!n.fields.hashFallbackUriCapture : !0), M = T(() => !!n.fields.name && $.value && R.value && x.value && N.value && m.value && S.value && F.value && q.value && A.value), E = T(() => t.upstreamId ?
|
|
7447
|
+
}, $ = T(() => n.fields.slots ? r(n.fields.slots, Mt, jt) : !0), R = T(() => n.fields.hashOn === "header" ? !!n.fields.hashOnHeader : !0), x = T(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookie : !0), N = T(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookiePath : !0), m = T(() => n.fields.hashOn === "query_arg" ? !!n.fields.hashOnQueryArgument : !0), S = T(() => n.fields.hashOn === "uri_capture" ? !!n.fields.hashOnUriCapture : !0), F = T(() => n.fields.hashFallback === "header" ? !!n.fields.hashFallbackHeader : !0), q = T(() => n.fields.hashFallback === "query_arg" ? !!n.fields.hashFallbackQueryArgument : !0), A = T(() => n.fields.hashFallback === "uri_capture" ? !!n.fields.hashFallbackUriCapture : !0), M = T(() => !!n.fields.name && $.value && R.value && x.value && N.value && m.value && S.value && F.value && q.value && A.value), E = T(() => t.upstreamId ? Se.Edit : Se.Create), Q = T(() => {
|
|
7441
7448
|
var C, b;
|
|
7442
7449
|
return (b = Xe.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : b.edit;
|
|
7443
7450
|
}), Z = (C) => {
|
|
7444
7451
|
Object.assign(n.fields, i(C)), Object.assign(O, d(n.fields));
|
|
7445
|
-
},
|
|
7452
|
+
}, W = () => {
|
|
7446
7453
|
var C;
|
|
7447
7454
|
g.push(((C = t.config) == null ? void 0 : C.cancelRoute) || { name: "upstreams-list" });
|
|
7448
7455
|
}, z = (C) => {
|
|
@@ -7471,7 +7478,7 @@ const Ue = {
|
|
|
7471
7478
|
} : {
|
|
7472
7479
|
...he
|
|
7473
7480
|
};
|
|
7474
|
-
}, {})), (n.fields.activeHealthCheck.type === "https" || n.fields.activeHealthCheck.type === "grpcs") && n.fields.activeHealthCheck.httpsSni && (C.healthchecks.active.https_sni = n.fields.activeHealthCheck.httpsSni), (n.fields.activeHealthCheck.type === "https" || n.fields.activeHealthCheck.type === "grpcs") && (C.healthchecks.active.https_verify_certificate = n.fields.activeHealthCheck.verifySsl), n.fields.activeHealthCheck.interval && (C.healthchecks.active.healthy.interval = Number(n.fields.activeHealthCheck.interval)), n.fields.activeHealthCheck.successes && (C.healthchecks.active.healthy.successes = Number(n.fields.activeHealthCheck.successes)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpStatuses && (C.healthchecks.active.healthy.http_statuses = s(n.fields.activeHealthCheck.httpStatuses)), n.fields.activeHealthCheck.unhealthyInterval && (C.healthchecks.active.unhealthy.interval = Number(n.fields.activeHealthCheck.unhealthyInterval)), n.fields.activeHealthCheck.unhealthyTimeouts && (C.healthchecks.active.unhealthy.timeouts = Number(n.fields.activeHealthCheck.unhealthyTimeouts)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.unhealthyHttpStatuses && (C.healthchecks.active.unhealthy.http_statuses = s(n.fields.activeHealthCheck.unhealthyHttpStatuses)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpFailures && (C.healthchecks.active.unhealthy.http_failures = Number(n.fields.activeHealthCheck.httpFailures)), n.fields.activeHealthCheck.type === "tcp" && n.fields.activeHealthCheck.tcpFailures && (C.healthchecks.active.unhealthy.tcp_failures = Number(n.fields.activeHealthCheck.tcpFailures))) : ((G = t.config) == null ? void 0 : G.app) === "kongManager" && E.value ===
|
|
7481
|
+
}, {})), (n.fields.activeHealthCheck.type === "https" || n.fields.activeHealthCheck.type === "grpcs") && n.fields.activeHealthCheck.httpsSni && (C.healthchecks.active.https_sni = n.fields.activeHealthCheck.httpsSni), (n.fields.activeHealthCheck.type === "https" || n.fields.activeHealthCheck.type === "grpcs") && (C.healthchecks.active.https_verify_certificate = n.fields.activeHealthCheck.verifySsl), n.fields.activeHealthCheck.interval && (C.healthchecks.active.healthy.interval = Number(n.fields.activeHealthCheck.interval)), n.fields.activeHealthCheck.successes && (C.healthchecks.active.healthy.successes = Number(n.fields.activeHealthCheck.successes)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpStatuses && (C.healthchecks.active.healthy.http_statuses = s(n.fields.activeHealthCheck.httpStatuses)), n.fields.activeHealthCheck.unhealthyInterval && (C.healthchecks.active.unhealthy.interval = Number(n.fields.activeHealthCheck.unhealthyInterval)), n.fields.activeHealthCheck.unhealthyTimeouts && (C.healthchecks.active.unhealthy.timeouts = Number(n.fields.activeHealthCheck.unhealthyTimeouts)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.unhealthyHttpStatuses && (C.healthchecks.active.unhealthy.http_statuses = s(n.fields.activeHealthCheck.unhealthyHttpStatuses)), n.fields.activeHealthCheck.type !== "tcp" && n.fields.activeHealthCheck.httpFailures && (C.healthchecks.active.unhealthy.http_failures = Number(n.fields.activeHealthCheck.httpFailures)), n.fields.activeHealthCheck.type === "tcp" && n.fields.activeHealthCheck.tcpFailures && (C.healthchecks.active.unhealthy.tcp_failures = Number(n.fields.activeHealthCheck.tcpFailures))) : ((G = t.config) == null ? void 0 : G.app) === "kongManager" && E.value === Se.Edit && (C.healthchecks.active = {
|
|
7475
7482
|
type: n.fields.activeHealthCheck.type,
|
|
7476
7483
|
headers: {},
|
|
7477
7484
|
healthy: {
|
|
@@ -7484,7 +7491,7 @@ const Ue = {
|
|
|
7484
7491
|
type: n.fields.passiveHealthCheck.type,
|
|
7485
7492
|
healthy: {},
|
|
7486
7493
|
unhealthy: {}
|
|
7487
|
-
}, n.fields.passiveHealthCheck.successes && (C.healthchecks.passive.healthy.successes = Number(n.fields.passiveHealthCheck.successes)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.httpStatuses && (C.healthchecks.passive.healthy.http_statuses = s(n.fields.passiveHealthCheck.httpStatuses)), n.fields.passiveHealthCheck.timeouts && (C.healthchecks.passive.unhealthy.timeouts = Number(n.fields.passiveHealthCheck.timeouts)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.unhealthyHttpStatuses && (C.healthchecks.passive.unhealthy.http_statuses = s(n.fields.passiveHealthCheck.unhealthyHttpStatuses)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.httpFailures && (C.healthchecks.passive.unhealthy.http_failures = Number(n.fields.passiveHealthCheck.httpFailures)), n.fields.passiveHealthCheck.type === "tcp" && n.fields.passiveHealthCheck.tcpFailures && (C.healthchecks.passive.unhealthy.tcp_failures = Number(n.fields.passiveHealthCheck.tcpFailures))) : ((se = t.config) == null ? void 0 : se.app) === "kongManager" && E.value ===
|
|
7494
|
+
}, n.fields.passiveHealthCheck.successes && (C.healthchecks.passive.healthy.successes = Number(n.fields.passiveHealthCheck.successes)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.httpStatuses && (C.healthchecks.passive.healthy.http_statuses = s(n.fields.passiveHealthCheck.httpStatuses)), n.fields.passiveHealthCheck.timeouts && (C.healthchecks.passive.unhealthy.timeouts = Number(n.fields.passiveHealthCheck.timeouts)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.unhealthyHttpStatuses && (C.healthchecks.passive.unhealthy.http_statuses = s(n.fields.passiveHealthCheck.unhealthyHttpStatuses)), n.fields.passiveHealthCheck.type !== "tcp" && n.fields.passiveHealthCheck.httpFailures && (C.healthchecks.passive.unhealthy.http_failures = Number(n.fields.passiveHealthCheck.httpFailures)), n.fields.passiveHealthCheck.type === "tcp" && n.fields.passiveHealthCheck.tcpFailures && (C.healthchecks.passive.unhealthy.tcp_failures = Number(n.fields.passiveHealthCheck.tcpFailures))) : ((se = t.config) == null ? void 0 : se.app) === "kongManager" && E.value === Se.Edit && (C.healthchecks.passive = {
|
|
7488
7495
|
type: n.fields.passiveHealthCheck.type,
|
|
7489
7496
|
healthy: {
|
|
7490
7497
|
successes: 0
|
|
@@ -7504,23 +7511,23 @@ const Ue = {
|
|
|
7504
7511
|
try {
|
|
7505
7512
|
n.readonly = !0, await h.post(V("validate"), ue.value);
|
|
7506
7513
|
let b;
|
|
7507
|
-
E.value ===
|
|
7514
|
+
E.value === Se.Create ? b = await h.post(V("create"), ue.value) : E.value === Se.Edit && (b = ((C = t.config) == null ? void 0 : C.app) === "konnect" ? await h.put(V("edit"), ue.value) : await h.patch(V("edit"), ue.value)), l("update", b == null ? void 0 : b.data);
|
|
7508
7515
|
} catch (b) {
|
|
7509
7516
|
n.errorMessage = p(b), l("error", b);
|
|
7510
7517
|
} finally {
|
|
7511
7518
|
n.readonly = !1;
|
|
7512
7519
|
}
|
|
7513
7520
|
};
|
|
7514
|
-
return (C, b) => (k(),
|
|
7521
|
+
return (C, b) => (k(), j("div", ud, [
|
|
7515
7522
|
y(u(Vr), {
|
|
7516
7523
|
"can-submit": M.value && H.value,
|
|
7517
7524
|
config: e.config,
|
|
7518
7525
|
"edit-id": e.upstreamId,
|
|
7519
7526
|
"error-message": n.errorMessage,
|
|
7520
|
-
"fetch-url":
|
|
7527
|
+
"fetch-url": Q.value,
|
|
7521
7528
|
"form-fields": ue.value,
|
|
7522
7529
|
"is-readonly": n.readonly,
|
|
7523
|
-
onCancel:
|
|
7530
|
+
onCancel: W,
|
|
7524
7531
|
"onFetch:error": ee,
|
|
7525
7532
|
"onFetch:success": Z,
|
|
7526
7533
|
onLoading: z,
|
|
@@ -7740,7 +7747,7 @@ const Ue = {
|
|
|
7740
7747
|
tooltip: t("upstreams.form.hash_tooltips.client_certificate")
|
|
7741
7748
|
}
|
|
7742
7749
|
});
|
|
7743
|
-
return (c, o) => (k(),
|
|
7750
|
+
return (c, o) => (k(), j("div", null, [
|
|
7744
7751
|
y(u(fu), {
|
|
7745
7752
|
config: e.config,
|
|
7746
7753
|
"config-card-doc": e.configCardDoc,
|