@kong-ui-public/entities-gateway-services 3.2.2 → 3.2.3-pr.1397.7fed2d0d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ee, computed as I, openBlock as b, createBlock as D, resolveDynamicComponent as Ce, normalizeStyle as et, withCtx as h, createElementBlock as A, toDisplayString as $, createCommentVNode as G, pushScopeId as tt, popScopeId as it, createElementVNode as V, ref as E, resolveComponent as K, Teleport as pr, createVNode as k, unref as f, createTextVNode as W, watch as _e, renderSlot as ie, onBeforeMount as At, createSlots as Ke, renderList as ye, withModifiers as Le, withDirectives as Se, vShow as Ie, Fragment as he, normalizeClass as Ae, withKeys as fr, useSlots as Tt, useCssVars as ui, inject as mr, onMounted as di, onUnmounted as gr, normalizeProps as yr, guardReactiveProps as vr, mergeProps as hr, reactive as qt } from "vue";
|
|
2
2
|
import { useRouter as $t } from "vue-router";
|
|
3
3
|
import { createI18n as pi, i18nTComponent as fi } from "@kong-ui-public/i18n";
|
|
4
4
|
import Lt from "axios";
|
|
@@ -14,7 +14,7 @@ const Ut = "24px", wr = (e, t) => {
|
|
|
14
14
|
}, Sr = /* @__PURE__ */ _r(() => /* @__PURE__ */ V("path", {
|
|
15
15
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
16
16
|
fill: "currentColor"
|
|
17
|
-
}, null, -1)), Ir = /* @__PURE__ */
|
|
17
|
+
}, null, -1)), Ir = /* @__PURE__ */ ee({
|
|
18
18
|
__name: "AddIcon",
|
|
19
19
|
props: {
|
|
20
20
|
/** The accessibility text provided to screen readers */
|
|
@@ -339,7 +339,7 @@ const lt = {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
|
-
var mi = /* @__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))(mi || {}), _t = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_t || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}),
|
|
342
|
+
var mi = /* @__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))(mi || {}), _t = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_t || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__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))(te || {}), ue = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ue || {});
|
|
343
343
|
function Er() {
|
|
344
344
|
return {
|
|
345
345
|
getAxiosInstance: (e = {}) => {
|
|
@@ -860,7 +860,7 @@ const ne = {
|
|
|
860
860
|
}, da = {
|
|
861
861
|
key: 0,
|
|
862
862
|
class: "config-card-fieldset-title"
|
|
863
|
-
}, pa = /* @__PURE__ */
|
|
863
|
+
}, pa = /* @__PURE__ */ ee({
|
|
864
864
|
__name: "JsonCardItem",
|
|
865
865
|
props: {
|
|
866
866
|
item: {
|
|
@@ -908,7 +908,7 @@ const ne = {
|
|
|
908
908
|
for (const [a, r] of t)
|
|
909
909
|
i[a] = r;
|
|
910
910
|
return i;
|
|
911
|
-
}, bi = /* @__PURE__ */ ve(pa, [["__scopeId", "data-v-68ca83ec"]]), fa = /* @__PURE__ */
|
|
911
|
+
}, bi = /* @__PURE__ */ ve(pa, [["__scopeId", "data-v-68ca83ec"]]), fa = /* @__PURE__ */ ee({
|
|
912
912
|
__name: "InternalLinkItem",
|
|
913
913
|
props: {
|
|
914
914
|
item: {
|
|
@@ -928,14 +928,14 @@ const ne = {
|
|
|
928
928
|
onClick: a[0] || (a[0] = (n) => i.$emit("navigation-click", e.item))
|
|
929
929
|
}, {
|
|
930
930
|
default: h(() => [
|
|
931
|
-
|
|
931
|
+
W($(e.item.value || f(t)("baseConfigCard.commonFields.link")), 1)
|
|
932
932
|
]),
|
|
933
933
|
_: 1
|
|
934
934
|
})
|
|
935
935
|
]);
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
|
-
}), ma = /* @__PURE__ */ ve(fa, [["__scopeId", "data-v-c96811e5"]]), ga = /* @__PURE__ */
|
|
938
|
+
}), ma = /* @__PURE__ */ ve(fa, [["__scopeId", "data-v-c96811e5"]]), ga = /* @__PURE__ */ ee({
|
|
939
939
|
__name: "StatusBadge",
|
|
940
940
|
props: {
|
|
941
941
|
status: {
|
|
@@ -951,7 +951,7 @@ const ne = {
|
|
|
951
951
|
appearance: e.status ? "success" : "neutral"
|
|
952
952
|
}, {
|
|
953
953
|
default: h(() => [
|
|
954
|
-
|
|
954
|
+
W($(e.status ? f(t)("baseConfigCard.statusBadge.enabledLabel") : f(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
955
955
|
]),
|
|
956
956
|
_: 1
|
|
957
957
|
}, 8, ["appearance"]);
|
|
@@ -960,7 +960,7 @@ const ne = {
|
|
|
960
960
|
}), ya = "#0044f4", va = "#e0e4ea", ha = "#3a3f51", ba = "#afb7c5", wa = "1px", _a = "20px", ka = { class: "config-card-details-row" }, Ca = ["data-testid"], Sa = ["data-testid"], Ia = ["data-testid"], xa = ["data-testid"], Aa = { key: 1 }, Ta = ["data-testid"], $a = ["data-testid"], ja = ["data-testid"], Na = ["data-testid"], Oa = {
|
|
961
961
|
name: "ConfigCardItem",
|
|
962
962
|
components: { JsonCardItem: bi, StatusBadge: ga, InternalLinkItem: ma }
|
|
963
|
-
}, Fa = /* @__PURE__ */
|
|
963
|
+
}, Fa = /* @__PURE__ */ ee({
|
|
964
964
|
...Oa,
|
|
965
965
|
props: {
|
|
966
966
|
item: {
|
|
@@ -986,9 +986,9 @@ const ne = {
|
|
|
986
986
|
"5036b738": u.value && c.value ? "100%" : i.slim ? "50%" : "25%",
|
|
987
987
|
"5038fd13": u.value && c.value ? "100%" : i.slim ? "50%" : "75%"
|
|
988
988
|
}));
|
|
989
|
-
const i = e, a = t, r = Tt(), { i18n: { t: n, formatUnixTimeStamp: o } } = ne.useI18n(), c = I(() => i.item.value !== void 0 && i.item.value !== null && i.item.value !== ""), l = I(() => !!(i.item.tooltip || r["label-tooltip"])), u = I(() => i.item.type ===
|
|
989
|
+
const i = e, a = t, r = Tt(), { i18n: { t: n, formatUnixTimeStamp: o } } = ne.useI18n(), c = I(() => i.item.value !== void 0 && i.item.value !== null && i.item.value !== ""), l = I(() => !!(i.item.tooltip || r["label-tooltip"])), u = I(() => i.item.type === te.Json || i.item.type === te.JsonArray), g = I(() => i.item.type === te.JsonArray), p = I(() => {
|
|
990
990
|
switch (i.item.type) {
|
|
991
|
-
case
|
|
991
|
+
case te.ID:
|
|
992
992
|
return {
|
|
993
993
|
tag: "KCopy",
|
|
994
994
|
attrs: {
|
|
@@ -997,7 +997,7 @@ const ne = {
|
|
|
997
997
|
text: i.item.value
|
|
998
998
|
}
|
|
999
999
|
};
|
|
1000
|
-
case
|
|
1000
|
+
case te.IdArray:
|
|
1001
1001
|
return {
|
|
1002
1002
|
tag: "div",
|
|
1003
1003
|
additionalComponent: "KCopy",
|
|
@@ -1005,7 +1005,7 @@ const ne = {
|
|
|
1005
1005
|
"copy-tooltip": n("baseConfigCard.copy.tooltip", { label: i.item.label })
|
|
1006
1006
|
}
|
|
1007
1007
|
};
|
|
1008
|
-
case
|
|
1008
|
+
case te.Redacted:
|
|
1009
1009
|
return {
|
|
1010
1010
|
tag: "KCopy",
|
|
1011
1011
|
attrs: {
|
|
@@ -1015,7 +1015,7 @@ const ne = {
|
|
|
1015
1015
|
text: i.item.value
|
|
1016
1016
|
}
|
|
1017
1017
|
};
|
|
1018
|
-
case
|
|
1018
|
+
case te.RedactedArray:
|
|
1019
1019
|
return {
|
|
1020
1020
|
tag: "div",
|
|
1021
1021
|
additionalComponent: "KCopy",
|
|
@@ -1024,7 +1024,7 @@ const ne = {
|
|
|
1024
1024
|
"copy-tooltip": n("baseConfigCard.copy.tooltip", { label: i.item.label })
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
|
-
case
|
|
1027
|
+
case te.Date:
|
|
1028
1028
|
return {
|
|
1029
1029
|
tag: "div",
|
|
1030
1030
|
attrs: {
|
|
@@ -1032,7 +1032,7 @@ const ne = {
|
|
|
1032
1032
|
},
|
|
1033
1033
|
text: o(i.item.value)
|
|
1034
1034
|
};
|
|
1035
|
-
case
|
|
1035
|
+
case te.BadgeStatus:
|
|
1036
1036
|
return {
|
|
1037
1037
|
tag: "StatusBadge",
|
|
1038
1038
|
attrs: {
|
|
@@ -1040,17 +1040,17 @@ const ne = {
|
|
|
1040
1040
|
status: i.item.value
|
|
1041
1041
|
}
|
|
1042
1042
|
};
|
|
1043
|
-
case
|
|
1043
|
+
case te.BadgeTag:
|
|
1044
1044
|
return {
|
|
1045
1045
|
tag: "div",
|
|
1046
1046
|
additionalComponent: "KBadge"
|
|
1047
1047
|
};
|
|
1048
|
-
case
|
|
1048
|
+
case te.BadgeMethod:
|
|
1049
1049
|
return {
|
|
1050
1050
|
tag: "div",
|
|
1051
1051
|
additionalComponent: "KMethodBadge"
|
|
1052
1052
|
};
|
|
1053
|
-
case
|
|
1053
|
+
case te.LinkInternal:
|
|
1054
1054
|
return {
|
|
1055
1055
|
tag: "InternalLinkItem",
|
|
1056
1056
|
attrs: {
|
|
@@ -1061,7 +1061,7 @@ const ne = {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
|
-
case
|
|
1064
|
+
case te.LinkExternal:
|
|
1065
1065
|
return {
|
|
1066
1066
|
tag: "KExternalLink",
|
|
1067
1067
|
attrs: {
|
|
@@ -1070,7 +1070,7 @@ const ne = {
|
|
|
1070
1070
|
},
|
|
1071
1071
|
text: i.item.value
|
|
1072
1072
|
};
|
|
1073
|
-
case
|
|
1073
|
+
case te.Json:
|
|
1074
1074
|
return {
|
|
1075
1075
|
tag: "JsonCardItem",
|
|
1076
1076
|
attrs: {
|
|
@@ -1078,7 +1078,7 @@ const ne = {
|
|
|
1078
1078
|
item: i.item
|
|
1079
1079
|
}
|
|
1080
1080
|
};
|
|
1081
|
-
case
|
|
1081
|
+
case te.JsonArray:
|
|
1082
1082
|
return {
|
|
1083
1083
|
tag: "div",
|
|
1084
1084
|
additionalComponent: "JsonCardItem",
|
|
@@ -1104,10 +1104,10 @@ const ne = {
|
|
|
1104
1104
|
class: "config-card-details-label",
|
|
1105
1105
|
"data-testid": `${e.item.key}-label`
|
|
1106
1106
|
}, [
|
|
1107
|
-
|
|
1107
|
+
ie(x.$slots, "label", { item: e.item }, () => [
|
|
1108
1108
|
k(C, { "tooltip-attributes": { maxWidth: "500px" } }, Ke({
|
|
1109
1109
|
default: h(() => [
|
|
1110
|
-
|
|
1110
|
+
W($(e.item.label) + " ", 1)
|
|
1111
1111
|
]),
|
|
1112
1112
|
_: 2
|
|
1113
1113
|
}, [
|
|
@@ -1117,8 +1117,8 @@ const ne = {
|
|
|
1117
1117
|
V("div", {
|
|
1118
1118
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1119
1119
|
}, [
|
|
1120
|
-
|
|
1121
|
-
|
|
1120
|
+
ie(x.$slots, "label-tooltip", {}, () => [
|
|
1121
|
+
W($(e.item.tooltip), 1)
|
|
1122
1122
|
], !0)
|
|
1123
1123
|
], 8, Sa)
|
|
1124
1124
|
]),
|
|
@@ -1131,7 +1131,7 @@ const ne = {
|
|
|
1131
1131
|
class: "config-card-details-value",
|
|
1132
1132
|
"data-testid": `${e.item.key}-property-value`
|
|
1133
1133
|
}, [
|
|
1134
|
-
|
|
1134
|
+
ie(x.$slots, e.item.key, {
|
|
1135
1135
|
rowValue: e.item.value
|
|
1136
1136
|
}, () => [
|
|
1137
1137
|
c.value ? (b(), A("div", Aa, [
|
|
@@ -1149,7 +1149,7 @@ const ne = {
|
|
|
1149
1149
|
"truncation-tooltip": ""
|
|
1150
1150
|
}, {
|
|
1151
1151
|
default: h(() => [
|
|
1152
|
-
|
|
1152
|
+
W($(s), 1)
|
|
1153
1153
|
]),
|
|
1154
1154
|
_: 2
|
|
1155
1155
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -1176,7 +1176,7 @@ const ne = {
|
|
|
1176
1176
|
"data-testid": `${e.item.key}-badge-method-${S}`
|
|
1177
1177
|
}, {
|
|
1178
1178
|
default: h(() => [
|
|
1179
|
-
|
|
1179
|
+
W($(s), 1)
|
|
1180
1180
|
]),
|
|
1181
1181
|
_: 2
|
|
1182
1182
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
@@ -1219,7 +1219,7 @@ const ne = {
|
|
|
1219
1219
|
}), wi = /* @__PURE__ */ ve(Fa, [["__scopeId", "data-v-d056663c"]]), Ma = { class: "json-config" }, Va = {
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
class: "json-endpoint"
|
|
1222
|
-
}, _i = /* @__PURE__ */
|
|
1222
|
+
}, _i = /* @__PURE__ */ ee({
|
|
1223
1223
|
__name: "JsonCodeBlock",
|
|
1224
1224
|
props: {
|
|
1225
1225
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1265,7 +1265,7 @@ const ne = {
|
|
|
1265
1265
|
appearance: t.requestMethod
|
|
1266
1266
|
}, {
|
|
1267
1267
|
default: h(() => [
|
|
1268
|
-
|
|
1268
|
+
W($(t.requestMethod), 1)
|
|
1269
1269
|
]),
|
|
1270
1270
|
_: 1
|
|
1271
1271
|
}, 8, ["appearance"]),
|
|
@@ -2656,7 +2656,7 @@ var Pn = ce, Dn = Si, zn = Ti, Hn = Fi, Gn = Mi, Jn = Ot, Wn = Yi.load, Zn = Yi.
|
|
|
2656
2656
|
safeLoadAll: tl,
|
|
2657
2657
|
safeDump: il
|
|
2658
2658
|
};
|
|
2659
|
-
const al = { class: "yaml-config" }, cr = /* @__PURE__ */
|
|
2659
|
+
const al = { class: "yaml-config" }, cr = /* @__PURE__ */ ee({
|
|
2660
2660
|
__name: "YamlCodeBlock",
|
|
2661
2661
|
props: {
|
|
2662
2662
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2689,7 +2689,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
2689
2689
|
}, nl = ["data-testid"], ll = {
|
|
2690
2690
|
key: 0,
|
|
2691
2691
|
class: "config-card-prop-section-title"
|
|
2692
|
-
}, sl = /* @__PURE__ */
|
|
2692
|
+
}, sl = /* @__PURE__ */ ee({
|
|
2693
2693
|
__name: "ConfigCardDisplay",
|
|
2694
2694
|
props: {
|
|
2695
2695
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2747,10 +2747,10 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
2747
2747
|
item: u
|
|
2748
2748
|
}, Ke({
|
|
2749
2749
|
label: h(() => [
|
|
2750
|
-
|
|
2750
|
+
ie(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2751
2751
|
]),
|
|
2752
2752
|
[u.key]: h(({ rowValue: g }) => [
|
|
2753
|
-
|
|
2753
|
+
ie(o.$slots, u.key, {
|
|
2754
2754
|
row: u,
|
|
2755
2755
|
rowValue: g
|
|
2756
2756
|
}, void 0, !0)
|
|
@@ -2760,7 +2760,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
2760
2760
|
r(u) ? {
|
|
2761
2761
|
name: "label-tooltip",
|
|
2762
2762
|
fn: h(() => [
|
|
2763
|
-
|
|
2763
|
+
ie(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
|
|
2764
2764
|
]),
|
|
2765
2765
|
key: "0"
|
|
2766
2766
|
} : void 0
|
|
@@ -2791,7 +2791,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
2791
2791
|
}, fl = /* @__PURE__ */ ul(() => /* @__PURE__ */ V("path", {
|
|
2792
2792
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2793
2793
|
fill: "currentColor"
|
|
2794
|
-
}, null, -1)), ml = /* @__PURE__ */
|
|
2794
|
+
}, null, -1)), ml = /* @__PURE__ */ ee({
|
|
2795
2795
|
__name: "AddIcon",
|
|
2796
2796
|
props: {
|
|
2797
2797
|
/** The accessibility text provided to screen readers */
|
|
@@ -2890,7 +2890,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
2890
2890
|
}, bl = /* @__PURE__ */ yl(() => /* @__PURE__ */ V("path", {
|
|
2891
2891
|
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",
|
|
2892
2892
|
fill: "currentColor"
|
|
2893
|
-
}, null, -1)), wl = /* @__PURE__ */
|
|
2893
|
+
}, null, -1)), wl = /* @__PURE__ */ ee({
|
|
2894
2894
|
__name: "BookIcon",
|
|
2895
2895
|
props: {
|
|
2896
2896
|
/** The accessibility text provided to screen readers */
|
|
@@ -2989,7 +2989,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
2989
2989
|
}, Il = /* @__PURE__ */ kl(() => /* @__PURE__ */ V("path", {
|
|
2990
2990
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2991
2991
|
fill: "currentColor"
|
|
2992
|
-
}, null, -1)), xl = /* @__PURE__ */
|
|
2992
|
+
}, null, -1)), xl = /* @__PURE__ */ ee({
|
|
2993
2993
|
__name: "ChevronDownIcon",
|
|
2994
2994
|
props: {
|
|
2995
2995
|
/** The accessibility text provided to screen readers */
|
|
@@ -3088,7 +3088,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3088
3088
|
}, Nl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ V("path", {
|
|
3089
3089
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
3090
3090
|
fill: "currentColor"
|
|
3091
|
-
}, null, -1)), Ol = /* @__PURE__ */
|
|
3091
|
+
}, null, -1)), Ol = /* @__PURE__ */ ee({
|
|
3092
3092
|
__name: "CloseIcon",
|
|
3093
3093
|
props: {
|
|
3094
3094
|
/** The accessibility text provided to screen readers */
|
|
@@ -3184,7 +3184,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3184
3184
|
}), Fl = /* @__PURE__ */ gt(Ol, [["__scopeId", "data-v-ed11facd"]]), Ml = {
|
|
3185
3185
|
class: "config-card-title",
|
|
3186
3186
|
"data-testid": "config-card-title"
|
|
3187
|
-
}, Vl = { class: "config-card-actions" }, El = ["href"], ql = { class: "config-card-details-section" }, Ll = /* @__PURE__ */
|
|
3187
|
+
}, Vl = { class: "config-card-actions" }, El = ["href"], ql = { class: "config-card-details-section" }, Ll = /* @__PURE__ */ ee({
|
|
3188
3188
|
__name: "EntityBaseConfigCard",
|
|
3189
3189
|
props: {
|
|
3190
3190
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3281,7 +3281,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3281
3281
|
g.value = y == null ? void 0 : y.value;
|
|
3282
3282
|
}, _ = {
|
|
3283
3283
|
id: {
|
|
3284
|
-
type:
|
|
3284
|
+
type: te.ID,
|
|
3285
3285
|
label: n("baseConfigCard.commonFields.id_label"),
|
|
3286
3286
|
order: 0,
|
|
3287
3287
|
section: ue.Basic
|
|
@@ -3291,24 +3291,24 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3291
3291
|
section: ue.Basic
|
|
3292
3292
|
},
|
|
3293
3293
|
enabled: {
|
|
3294
|
-
type:
|
|
3294
|
+
type: te.BadgeStatus,
|
|
3295
3295
|
order: 2,
|
|
3296
3296
|
section: ue.Basic
|
|
3297
3297
|
},
|
|
3298
3298
|
updated_at: {
|
|
3299
|
-
type:
|
|
3299
|
+
type: te.Date,
|
|
3300
3300
|
label: n("baseConfigCard.commonFields.updated_at_label"),
|
|
3301
3301
|
order: 3,
|
|
3302
3302
|
section: ue.Basic
|
|
3303
3303
|
},
|
|
3304
3304
|
created_at: {
|
|
3305
|
-
type:
|
|
3305
|
+
type: te.Date,
|
|
3306
3306
|
label: n("baseConfigCard.commonFields.created_at_label"),
|
|
3307
3307
|
order: 4,
|
|
3308
3308
|
section: ue.Basic
|
|
3309
3309
|
},
|
|
3310
3310
|
tags: {
|
|
3311
|
-
type:
|
|
3311
|
+
type: te.BadgeTag,
|
|
3312
3312
|
order: -1,
|
|
3313
3313
|
// the last property displayed
|
|
3314
3314
|
section: ue.Basic
|
|
@@ -3327,15 +3327,15 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3327
3327
|
return q[1] - R[1];
|
|
3328
3328
|
}), N.map((q) => {
|
|
3329
3329
|
var R, z;
|
|
3330
|
-
const Q = q[0], le = (R = C.value) == null ? void 0 : R[Q], me = ((z = r.configSchema) == null ? void 0 : z[Q]) || {},
|
|
3330
|
+
const Q = q[0], le = (R = C.value) == null ? void 0 : R[Q], me = ((z = r.configSchema) == null ? void 0 : z[Q]) || {}, re = _[Q];
|
|
3331
3331
|
return {
|
|
3332
3332
|
key: Q,
|
|
3333
3333
|
value: le,
|
|
3334
3334
|
hidden: me.hidden || !1,
|
|
3335
|
-
type: me.type ?? ((
|
|
3336
|
-
label: me.label ?? ((
|
|
3337
|
-
tooltip: me.tooltip ?? ((
|
|
3338
|
-
section: me.section ?? ((
|
|
3335
|
+
type: me.type ?? ((re == null ? void 0 : re.type) || te.Text),
|
|
3336
|
+
label: me.label ?? ((re == null ? void 0 : re.label) || c(Q)),
|
|
3337
|
+
tooltip: me.tooltip ?? ((re == null ? void 0 : re.tooltip) || void 0),
|
|
3338
|
+
section: me.section ?? ((re == null ? void 0 : re.section) || ue.Advanced)
|
|
3339
3339
|
};
|
|
3340
3340
|
}).filter((q) => !q.hidden && q.key !== r.pluginConfigKey);
|
|
3341
3341
|
}), j = I(() => {
|
|
@@ -3357,7 +3357,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3357
3357
|
key: z,
|
|
3358
3358
|
value: Q,
|
|
3359
3359
|
hidden: le.hidden || !1,
|
|
3360
|
-
type: le.type ??
|
|
3360
|
+
type: le.type ?? te.Text,
|
|
3361
3361
|
label: le.label ?? c(z),
|
|
3362
3362
|
tooltip: le.tooltip ?? void 0,
|
|
3363
3363
|
section: ue.Plugin
|
|
@@ -3408,13 +3408,13 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3408
3408
|
}, Ke({
|
|
3409
3409
|
actions: h(() => [
|
|
3410
3410
|
V("div", Vl, [
|
|
3411
|
-
|
|
3411
|
+
ie(y.$slots, "actions", {}, void 0, !0),
|
|
3412
3412
|
k(L, {
|
|
3413
3413
|
class: "config-format-select-label",
|
|
3414
3414
|
"data-testid": "config-format-select-label"
|
|
3415
3415
|
}, {
|
|
3416
3416
|
default: h(() => [
|
|
3417
|
-
|
|
3417
|
+
W($(e.label), 1)
|
|
3418
3418
|
]),
|
|
3419
3419
|
_: 1
|
|
3420
3420
|
}),
|
|
@@ -3470,7 +3470,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3470
3470
|
ye(Object.keys(y.$slots), (Q) => ({
|
|
3471
3471
|
name: Q,
|
|
3472
3472
|
fn: h(({ row: le, rowValue: me }) => [
|
|
3473
|
-
|
|
3473
|
+
ie(y.$slots, Q, {
|
|
3474
3474
|
row: le,
|
|
3475
3475
|
rowValue: me
|
|
3476
3476
|
}, void 0, !0)
|
|
@@ -3485,8 +3485,8 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3485
3485
|
name: "title",
|
|
3486
3486
|
fn: h(() => [
|
|
3487
3487
|
V("span", Ml, [
|
|
3488
|
-
|
|
3489
|
-
|
|
3488
|
+
ie(y.$slots, "title", {}, () => [
|
|
3489
|
+
W($(f(n)("baseConfigCard.title")), 1)
|
|
3490
3490
|
], !0)
|
|
3491
3491
|
])
|
|
3492
3492
|
]),
|
|
@@ -3498,7 +3498,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3498
3498
|
}), Ul = /* @__PURE__ */ ve(Ll, [["__scopeId", "data-v-f40a683b"]]), Bl = ["novalidate"], Kl = {
|
|
3499
3499
|
class: "form-actions",
|
|
3500
3500
|
"data-testid": "form-actions"
|
|
3501
|
-
}, Rl = /* @__PURE__ */
|
|
3501
|
+
}, Rl = /* @__PURE__ */ ee({
|
|
3502
3502
|
__name: "EntityBaseForm",
|
|
3503
3503
|
props: {
|
|
3504
3504
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3621,7 +3621,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3621
3621
|
onReset: Le(B, ["prevent"]),
|
|
3622
3622
|
onSubmit: Le(j, ["prevent"])
|
|
3623
3623
|
}, [
|
|
3624
|
-
|
|
3624
|
+
ie(s.$slots, "default", {}, void 0, !0),
|
|
3625
3625
|
e.errorMessage ? (b(), D(L, {
|
|
3626
3626
|
key: 0,
|
|
3627
3627
|
appearance: "danger",
|
|
@@ -3629,14 +3629,14 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3629
3629
|
message: e.errorMessage
|
|
3630
3630
|
}, null, 8, ["message"])) : G("", !0),
|
|
3631
3631
|
V("div", Kl, [
|
|
3632
|
-
|
|
3632
|
+
ie(s.$slots, "form-actions", {}, () => [
|
|
3633
3633
|
k(N, {
|
|
3634
3634
|
appearance: "tertiary",
|
|
3635
3635
|
"data-testid": "form-view-configuration",
|
|
3636
3636
|
onClick: S[0] || (S[0] = (z) => O())
|
|
3637
3637
|
}, {
|
|
3638
3638
|
default: h(() => [
|
|
3639
|
-
|
|
3639
|
+
W($(f(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3640
3640
|
]),
|
|
3641
3641
|
_: 1
|
|
3642
3642
|
}),
|
|
@@ -3647,7 +3647,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3647
3647
|
type: "reset"
|
|
3648
3648
|
}, {
|
|
3649
3649
|
default: h(() => [
|
|
3650
|
-
|
|
3650
|
+
W($(f(o)("baseForm.actions.cancel")), 1)
|
|
3651
3651
|
]),
|
|
3652
3652
|
_: 1
|
|
3653
3653
|
}, 8, ["disabled"]),
|
|
@@ -3658,7 +3658,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3658
3658
|
type: "submit"
|
|
3659
3659
|
}, {
|
|
3660
3660
|
default: h(() => [
|
|
3661
|
-
|
|
3661
|
+
W($(f(o)("baseForm.actions.save")), 1)
|
|
3662
3662
|
]),
|
|
3663
3663
|
_: 1
|
|
3664
3664
|
}, 8, ["disabled"])
|
|
@@ -3703,7 +3703,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3703
3703
|
});
|
|
3704
3704
|
};
|
|
3705
3705
|
}
|
|
3706
|
-
}), Pl = /* @__PURE__ */ ve(Rl, [["__scopeId", "data-v-3def74fe"]]), Dl = ["data-truncate"], zl = /* @__PURE__ */
|
|
3706
|
+
}), Pl = /* @__PURE__ */ ve(Rl, [["__scopeId", "data-v-3def74fe"]]), Dl = ["data-truncate"], zl = /* @__PURE__ */ ee({
|
|
3707
3707
|
__name: "EntityBaseTableCell",
|
|
3708
3708
|
props: {
|
|
3709
3709
|
keyName: {
|
|
@@ -3778,18 +3778,18 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
3778
3778
|
text: O.value ? _.value : ""
|
|
3779
3779
|
}, {
|
|
3780
3780
|
default: h(() => [
|
|
3781
|
-
|
|
3781
|
+
ie(C.$slots, "default", {}, void 0, !0)
|
|
3782
3782
|
]),
|
|
3783
3783
|
_: 3
|
|
3784
3784
|
}, 8, ["text"])
|
|
3785
|
-
], 8, Dl)) :
|
|
3785
|
+
], 8, Dl)) : ie(C.$slots, "default", { key: 1 }, void 0, !0)
|
|
3786
3786
|
], 512);
|
|
3787
3787
|
};
|
|
3788
3788
|
}
|
|
3789
3789
|
}), Hl = /* @__PURE__ */ ve(zl, [["__scopeId", "data-v-471ce76e"]]), Gl = { class: "toolbar-container" }, Jl = {
|
|
3790
3790
|
key: 0,
|
|
3791
3791
|
class: "toolbar-button-container"
|
|
3792
|
-
}, Wl = ["data-testid"], Zl = /* @__PURE__ */
|
|
3792
|
+
}, Wl = ["data-testid"], Zl = /* @__PURE__ */ ee({
|
|
3793
3793
|
__name: "EntityBaseTable",
|
|
3794
3794
|
props: {
|
|
3795
3795
|
// table header configuration
|
|
@@ -4010,9 +4010,9 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4010
4010
|
}, Ke({
|
|
4011
4011
|
toolbar: h(({ state: z }) => [
|
|
4012
4012
|
Se(V("div", Gl, [
|
|
4013
|
-
|
|
4013
|
+
ie(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
4014
4014
|
y.$slots["toolbar-button"] ? (b(), A("div", Jl, [
|
|
4015
|
-
|
|
4015
|
+
ie(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
4016
4016
|
])) : G("", !0)
|
|
4017
4017
|
], 512), [
|
|
4018
4018
|
[Ie, c(z)]
|
|
@@ -4028,7 +4028,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4028
4028
|
width: e.dropdownMenuWidth
|
|
4029
4029
|
}, {
|
|
4030
4030
|
items: h(() => [
|
|
4031
|
-
|
|
4031
|
+
ie(y.$slots, "actions", {
|
|
4032
4032
|
row: z,
|
|
4033
4033
|
rowKey: Q,
|
|
4034
4034
|
rowValue: le
|
|
@@ -4058,19 +4058,19 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4058
4058
|
}, [
|
|
4059
4059
|
ye(e.tableHeaders, (z, Q) => ({
|
|
4060
4060
|
name: Q,
|
|
4061
|
-
fn: h(({ row: le, rowKey: me, rowValue:
|
|
4061
|
+
fn: h(({ row: le, rowKey: me, rowValue: re }) => [
|
|
4062
4062
|
k(Hl, {
|
|
4063
4063
|
"key-name": String(Q),
|
|
4064
4064
|
"row-el": p(le),
|
|
4065
4065
|
tooltip: z.tooltip
|
|
4066
4066
|
}, {
|
|
4067
4067
|
default: h(() => [
|
|
4068
|
-
|
|
4068
|
+
ie(y.$slots, Q, {
|
|
4069
4069
|
row: le,
|
|
4070
4070
|
rowKey: me,
|
|
4071
|
-
rowValue:
|
|
4071
|
+
rowValue: re
|
|
4072
4072
|
}, () => [
|
|
4073
|
-
|
|
4073
|
+
W($(re), 1)
|
|
4074
4074
|
], !0)
|
|
4075
4075
|
]),
|
|
4076
4076
|
_: 2
|
|
@@ -4096,7 +4096,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4096
4096
|
}, Xl = {
|
|
4097
4097
|
key: 1,
|
|
4098
4098
|
class: "description"
|
|
4099
|
-
}, es = /* @__PURE__ */
|
|
4099
|
+
}, es = /* @__PURE__ */ ee({
|
|
4100
4100
|
__name: "EntityDeleteModal",
|
|
4101
4101
|
props: {
|
|
4102
4102
|
visible: {
|
|
@@ -4157,7 +4157,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4157
4157
|
e.error ? (b(), A("div", Ql, [
|
|
4158
4158
|
k(g, { appearance: "danger" }, {
|
|
4159
4159
|
default: h(() => [
|
|
4160
|
-
|
|
4160
|
+
W($(e.error), 1)
|
|
4161
4161
|
]),
|
|
4162
4162
|
_: 1
|
|
4163
4163
|
})
|
|
@@ -4168,7 +4168,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4168
4168
|
tag: "p"
|
|
4169
4169
|
}, Ke({
|
|
4170
4170
|
entityType: h(() => [
|
|
4171
|
-
|
|
4171
|
+
W($(a.entityType), 1)
|
|
4172
4172
|
]),
|
|
4173
4173
|
_: 2
|
|
4174
4174
|
}, [
|
|
@@ -4181,7 +4181,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4181
4181
|
} : void 0
|
|
4182
4182
|
]), 1032, ["keypath"]),
|
|
4183
4183
|
a.description || l.$slots.description ? (b(), A("div", Xl, [
|
|
4184
|
-
|
|
4184
|
+
ie(l.$slots, "description", {}, () => [
|
|
4185
4185
|
V("p", null, $(a.description), 1)
|
|
4186
4186
|
], !0)
|
|
4187
4187
|
])) : G("", !0)
|
|
@@ -4204,7 +4204,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4204
4204
|
width: "20",
|
|
4205
4205
|
x: "0",
|
|
4206
4206
|
y: "0"
|
|
4207
|
-
}, as = ["fill"], os = { mask: "url(#mask0_180_20349)" }, ns = ["fill"], li = /* @__PURE__ */
|
|
4207
|
+
}, as = ["fill"], os = { mask: "url(#mask0_180_20349)" }, ns = ["fill"], li = /* @__PURE__ */ ee({
|
|
4208
4208
|
__name: "IconFilter",
|
|
4209
4209
|
props: {
|
|
4210
4210
|
color: {
|
|
@@ -4232,7 +4232,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4232
4232
|
}), ls = {
|
|
4233
4233
|
key: 1,
|
|
4234
4234
|
class: "kong-ui-entity-filter"
|
|
4235
|
-
}, ss = { class: "kong-ui-entity-filter-menu" }, cs = ["data-testid"], us = ["onClick", "onKeydown"], ds = { class: "menu-item-indicator" }, ps = { class: "menu-item-body" }, fs = ["for"], ms = { class: "menu-item-buttons" }, gs = { class: "filter-clear-button-container" }, ys = /* @__PURE__ */
|
|
4235
|
+
}, ss = { class: "kong-ui-entity-filter-menu" }, cs = ["data-testid"], us = ["onClick", "onKeydown"], ds = { class: "menu-item-indicator" }, ps = { class: "menu-item-body" }, fs = ["for"], ms = { class: "menu-item-buttons" }, gs = { class: "filter-clear-button-container" }, ys = /* @__PURE__ */ ee({
|
|
4236
4236
|
__name: "EntityFilter",
|
|
4237
4237
|
props: {
|
|
4238
4238
|
// filter config, either exact match or fuzzy match
|
|
@@ -4332,7 +4332,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4332
4332
|
}, {
|
|
4333
4333
|
default: h(() => [
|
|
4334
4334
|
k(li),
|
|
4335
|
-
|
|
4335
|
+
W(" " + $(f(i)("filter.filterButtonText")) + " " + $(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4336
4336
|
]),
|
|
4337
4337
|
_: 1
|
|
4338
4338
|
}),
|
|
@@ -4357,7 +4357,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4357
4357
|
onClick: (R) => p(N.value),
|
|
4358
4358
|
onKeydown: fr((R) => p(N.value), ["enter"])
|
|
4359
4359
|
}, [
|
|
4360
|
-
|
|
4360
|
+
W($(N.label) + " ", 1),
|
|
4361
4361
|
Se(V("span", ds, null, 512), [
|
|
4362
4362
|
[Ie, l.value.includes(N.value)]
|
|
4363
4363
|
]),
|
|
@@ -4398,7 +4398,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4398
4398
|
onClick: S[0] || (S[0] = (R) => Y(!0))
|
|
4399
4399
|
}, {
|
|
4400
4400
|
default: h(() => [
|
|
4401
|
-
|
|
4401
|
+
W($(f(i)("filter.applyButtonText")), 1)
|
|
4402
4402
|
]),
|
|
4403
4403
|
_: 1
|
|
4404
4404
|
}),
|
|
@@ -4409,7 +4409,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4409
4409
|
onClick: (R) => B(N.value)
|
|
4410
4410
|
}, {
|
|
4411
4411
|
default: h(() => [
|
|
4412
|
-
|
|
4412
|
+
W($(f(i)("filter.clearButtonText")), 1)
|
|
4413
4413
|
]),
|
|
4414
4414
|
_: 2
|
|
4415
4415
|
}, 1032, ["onClick"])
|
|
@@ -4425,7 +4425,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4425
4425
|
onClick: j
|
|
4426
4426
|
}, {
|
|
4427
4427
|
default: h(() => [
|
|
4428
|
-
|
|
4428
|
+
W($(f(i)("filter.clearAllButtonText")), 1)
|
|
4429
4429
|
]),
|
|
4430
4430
|
_: 1
|
|
4431
4431
|
})
|
|
@@ -4436,7 +4436,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4436
4436
|
]));
|
|
4437
4437
|
};
|
|
4438
4438
|
}
|
|
4439
|
-
}), vs = /* @__PURE__ */ ve(ys, [["__scopeId", "data-v-9a370e3a"]]), hs = /* @__PURE__ */
|
|
4439
|
+
}), vs = /* @__PURE__ */ ve(ys, [["__scopeId", "data-v-9a370e3a"]]), hs = /* @__PURE__ */ ee({
|
|
4440
4440
|
__name: "EntityToggleModal",
|
|
4441
4441
|
props: {
|
|
4442
4442
|
visible: {
|
|
@@ -4502,7 +4502,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4502
4502
|
scope: "global"
|
|
4503
4503
|
}, {
|
|
4504
4504
|
entityType: h(() => [
|
|
4505
|
-
|
|
4505
|
+
W($(e.entityType), 1)
|
|
4506
4506
|
]),
|
|
4507
4507
|
entityName: h(() => [
|
|
4508
4508
|
V("strong", null, $(e.entityName), 1)
|
|
@@ -4515,7 +4515,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4515
4515
|
]);
|
|
4516
4516
|
};
|
|
4517
4517
|
}
|
|
4518
|
-
}), Ge = /* @__PURE__ */
|
|
4518
|
+
}), Ge = /* @__PURE__ */ ee({
|
|
4519
4519
|
__name: "PermissionsWrapper",
|
|
4520
4520
|
props: {
|
|
4521
4521
|
/**
|
|
@@ -4540,7 +4540,7 @@ const al = { class: "yaml-config" }, cr = /* @__PURE__ */ X({
|
|
|
4540
4540
|
const t = e, i = E(void 0), a = I(() => i.value === !0 || i.value !== void 0 && t.forceShow === !0);
|
|
4541
4541
|
return _e(() => t.authFunction, async () => {
|
|
4542
4542
|
i.value = await t.authFunction();
|
|
4543
|
-
}, { immediate: !0 }), (r, n) => a.value ?
|
|
4543
|
+
}, { immediate: !0 }), (r, n) => a.value ? ie(r.$slots, "default", {
|
|
4544
4544
|
key: 0,
|
|
4545
4545
|
isAllowed: i.value
|
|
4546
4546
|
}) : G("", !0);
|
|
@@ -4581,7 +4581,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4581
4581
|
}, As = {
|
|
4582
4582
|
key: 2,
|
|
4583
4583
|
class: "form-section-footer"
|
|
4584
|
-
}, Ts = { class: "form-section-content" }, $s = /* @__PURE__ */
|
|
4584
|
+
}, Ts = { class: "form-section-content" }, $s = /* @__PURE__ */ ee({
|
|
4585
4585
|
__name: "EntityFormSection",
|
|
4586
4586
|
props: {
|
|
4587
4587
|
title: {
|
|
@@ -4627,26 +4627,26 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4627
4627
|
class: "form-section-title"
|
|
4628
4628
|
}, {
|
|
4629
4629
|
default: h(() => [
|
|
4630
|
-
|
|
4630
|
+
W($(e.title), 1)
|
|
4631
4631
|
]),
|
|
4632
4632
|
_: 1
|
|
4633
4633
|
}, 8, ["id"])) : G("", !0),
|
|
4634
4634
|
e.description || f(t).description ? (b(), A("div", xs, [
|
|
4635
|
-
|
|
4635
|
+
ie(a.$slots, "description", {}, () => [
|
|
4636
4636
|
V("p", null, $(e.description), 1)
|
|
4637
4637
|
], !0)
|
|
4638
4638
|
])) : G("", !0),
|
|
4639
4639
|
f(t).footer ? (b(), A("div", As, [
|
|
4640
|
-
|
|
4640
|
+
ie(a.$slots, "footer", {}, void 0, !0)
|
|
4641
4641
|
])) : G("", !0)
|
|
4642
4642
|
], 2)),
|
|
4643
4643
|
V("div", Ts, [
|
|
4644
|
-
|
|
4644
|
+
ie(a.$slots, "default", {}, void 0, !0)
|
|
4645
4645
|
])
|
|
4646
4646
|
])
|
|
4647
4647
|
], 10, Ss));
|
|
4648
4648
|
}
|
|
4649
|
-
}), ci = /* @__PURE__ */ ve($s, [["__scopeId", "data-v-b1f74200"]]), { useAxios: ur, useDeleteUrlBuilder: js, useErrors: Ns, useExternalLinkCreator: uc, useFetchUrlBuilder: dc, useFetcher: Os, useDebouncedFilter: pc, useStringHelpers: fc, useHelpers: Fs, useGatewayFeatureSupported: Ms, useTruncationDetector: mc, useValidators: Vs } = ne, Es = { class: "kong-ui-entities-gateway-services-list" }, qs = { key: 1 }, Ls = { key: 1 }, Us = /* @__PURE__ */
|
|
4649
|
+
}), ci = /* @__PURE__ */ ve($s, [["__scopeId", "data-v-b1f74200"]]), { useAxios: ur, useDeleteUrlBuilder: js, useErrors: Ns, useExternalLinkCreator: uc, useFetchUrlBuilder: dc, useFetcher: Os, useDebouncedFilter: pc, useStringHelpers: fc, useHelpers: Fs, useGatewayFeatureSupported: Ms, useTruncationDetector: mc, useValidators: Vs } = ne, Es = { class: "kong-ui-entities-gateway-services-list" }, qs = { key: 1 }, Ls = { key: 1 }, Us = /* @__PURE__ */ ee({
|
|
4650
4650
|
__name: "GatewayServiceList",
|
|
4651
4651
|
props: {
|
|
4652
4652
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4718,10 +4718,10 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4718
4718
|
isExactMatch: m,
|
|
4719
4719
|
placeholder: r(`search.placeholder.${a.config.app}`)
|
|
4720
4720
|
};
|
|
4721
|
-
const { name: F, enabled: P, protocol:
|
|
4721
|
+
const { name: F, enabled: P, protocol: J, host: X, port: w, path: we } = u;
|
|
4722
4722
|
return {
|
|
4723
4723
|
isExactMatch: m,
|
|
4724
|
-
fields: { name: F, enabled: P, protocol:
|
|
4724
|
+
fields: { name: F, enabled: P, protocol: J, host: X, port: w, path: we },
|
|
4725
4725
|
schema: a.config.filterSchema
|
|
4726
4726
|
};
|
|
4727
4727
|
}), { fetcher: O, fetcherState: C } = Os(a.config, p.value), B = () => {
|
|
@@ -4740,8 +4740,8 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4740
4740
|
name: ""
|
|
4741
4741
|
};
|
|
4742
4742
|
if (y.value) {
|
|
4743
|
-
const { enabled: F, id: P, name:
|
|
4744
|
-
m.action = F ? "disable" : "enable", m.id = P, m.name =
|
|
4743
|
+
const { enabled: F, id: P, name: J } = y.value;
|
|
4744
|
+
m.action = F ? "disable" : "enable", m.id = P, m.name = J || P;
|
|
4745
4745
|
}
|
|
4746
4746
|
return m;
|
|
4747
4747
|
}), L = (m) => {
|
|
@@ -4749,12 +4749,12 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4749
4749
|
}, N = () => {
|
|
4750
4750
|
S.value = !1, y.value = null;
|
|
4751
4751
|
}, H = async () => {
|
|
4752
|
-
var
|
|
4753
|
-
if (!await ((
|
|
4752
|
+
var J, X;
|
|
4753
|
+
if (!await ((J = a.canEdit) == null ? void 0 : J.call(a, y.value)) || !y.value)
|
|
4754
4754
|
return;
|
|
4755
4755
|
const F = `${_.value.href}/${y.value.id}`, P = !y.value.enabled;
|
|
4756
4756
|
try {
|
|
4757
|
-
const { data: w } = ((
|
|
4757
|
+
const { data: w } = ((X = a.config) == null ? void 0 : X.app) === "konnect" ? await o.put(F, { ...y.value, enabled: P }) : await o.patch(F, { ...y.value, enabled: P });
|
|
4758
4758
|
i("toggle:success", w);
|
|
4759
4759
|
} catch (w) {
|
|
4760
4760
|
i("error", w);
|
|
@@ -4799,29 +4799,29 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4799
4799
|
}), me = (m) => ({
|
|
4800
4800
|
label: r("actions.edit"),
|
|
4801
4801
|
to: a.config.getEditRoute(m)
|
|
4802
|
-
}),
|
|
4803
|
-
|
|
4802
|
+
}), re = E(void 0), je = E(!1), Pe = E(!1), De = E(""), yt = js(a.config, p.value), ze = (m) => {
|
|
4803
|
+
re.value = m, je.value = !0;
|
|
4804
4804
|
}, rt = () => {
|
|
4805
|
-
je.value = !1,
|
|
4805
|
+
je.value = !1, re.value = void 0;
|
|
4806
4806
|
}, Ne = async () => {
|
|
4807
4807
|
var m, F, P;
|
|
4808
|
-
if ((m =
|
|
4808
|
+
if ((m = re.value) != null && m.id) {
|
|
4809
4809
|
Pe.value = !0;
|
|
4810
4810
|
try {
|
|
4811
|
-
await o.delete(yt(
|
|
4812
|
-
} catch (
|
|
4813
|
-
De.value = ((P = (F =
|
|
4811
|
+
await o.delete(yt(re.value.id)), i("delete:success", re.value), rt(), c.value++;
|
|
4812
|
+
} catch (J) {
|
|
4813
|
+
De.value = ((P = (F = J.response) == null ? void 0 : F.data) == null ? void 0 : P.message) || J.message || r("errors.delete"), i("error", J);
|
|
4814
4814
|
} finally {
|
|
4815
4815
|
Pe.value = !1;
|
|
4816
4816
|
}
|
|
4817
4817
|
}
|
|
4818
4818
|
}, Me = E(!0);
|
|
4819
4819
|
_e(C, (m) => {
|
|
4820
|
-
var F, P,
|
|
4820
|
+
var F, P, J, X;
|
|
4821
4821
|
if (Array.isArray((F = m == null ? void 0 : m.response) == null ? void 0 : F.data) && (Me.value = m.response.data.length > 0), m.status === Oe.Error) {
|
|
4822
4822
|
Y.value = {
|
|
4823
4823
|
title: r("errors.general")
|
|
4824
|
-
}, (
|
|
4824
|
+
}, (X = (J = (P = m.error) == null ? void 0 : P.response) == null ? void 0 : J.data) != null && X.message && (Y.value.message = m.error.response.data.message), i("error", m.error);
|
|
4825
4825
|
return;
|
|
4826
4826
|
}
|
|
4827
4827
|
Y.value = null;
|
|
@@ -4830,7 +4830,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4830
4830
|
return At(async () => {
|
|
4831
4831
|
Ve.value = await a.canCreate();
|
|
4832
4832
|
}), (m, F) => {
|
|
4833
|
-
const P = K("KButton"),
|
|
4833
|
+
const P = K("KButton"), J = K("KBadge"), X = K("KInputSwitch"), w = K("KTruncate"), we = K("KDropdownItem"), U = K("KClipboardProvider");
|
|
4834
4834
|
return b(), A("div", Es, [
|
|
4835
4835
|
k(f(Yl), {
|
|
4836
4836
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -4874,7 +4874,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4874
4874
|
}, {
|
|
4875
4875
|
default: h(() => [
|
|
4876
4876
|
k(f(xr)),
|
|
4877
|
-
|
|
4877
|
+
W(" " + $(f(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
4878
4878
|
]),
|
|
4879
4879
|
_: 1
|
|
4880
4880
|
}, 8, ["to"]), [
|
|
@@ -4893,14 +4893,14 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4893
4893
|
control_plane: h(({ row: Z }) => {
|
|
4894
4894
|
var ge;
|
|
4895
4895
|
return [
|
|
4896
|
-
(ge = Z.x_meta) != null && ge.cluster_id ? (b(), D(
|
|
4896
|
+
(ge = Z.x_meta) != null && ge.cluster_id ? (b(), D(J, {
|
|
4897
4897
|
key: 0,
|
|
4898
4898
|
tooltip: Z.x_meta.cluster_id,
|
|
4899
4899
|
"truncation-tooltip": "",
|
|
4900
4900
|
onClick: Le((He) => q(Z.x_meta.cluster_id), ["stop"])
|
|
4901
4901
|
}, {
|
|
4902
4902
|
default: h(() => [
|
|
4903
|
-
|
|
4903
|
+
W($(Z.x_meta.cluster_id), 1)
|
|
4904
4904
|
]),
|
|
4905
4905
|
_: 2
|
|
4906
4906
|
}, 1032, ["tooltip", "onClick"])) : (b(), A("b", qs, "-"))
|
|
@@ -4916,7 +4916,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4916
4916
|
onClick: F[1] || (F[1] = Le(() => {
|
|
4917
4917
|
}, ["stop"]))
|
|
4918
4918
|
}, [
|
|
4919
|
-
k(
|
|
4919
|
+
k(X, {
|
|
4920
4920
|
modelValue: Z.enabled,
|
|
4921
4921
|
"onUpdate:modelValue": (He) => Z.enabled = He,
|
|
4922
4922
|
"data-testid": `row-${Z.id}-toggle-input`,
|
|
@@ -4931,13 +4931,13 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4931
4931
|
tags: h(({ rowValue: Z }) => [
|
|
4932
4932
|
(Z == null ? void 0 : Z.length) > 0 ? (b(), D(w, { key: 0 }, {
|
|
4933
4933
|
default: h(() => [
|
|
4934
|
-
(b(!0), A(he, null, ye(Z, (ge) => (b(), D(
|
|
4934
|
+
(b(!0), A(he, null, ye(Z, (ge) => (b(), D(J, {
|
|
4935
4935
|
key: ge,
|
|
4936
4936
|
onClick: F[2] || (F[2] = Le(() => {
|
|
4937
4937
|
}, ["stop"]))
|
|
4938
4938
|
}, {
|
|
4939
4939
|
default: h(() => [
|
|
4940
|
-
|
|
4940
|
+
W($(ge), 1)
|
|
4941
4941
|
]),
|
|
4942
4942
|
_: 2
|
|
4943
4943
|
}, 1024))), 128))
|
|
@@ -4953,7 +4953,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4953
4953
|
onClick: (He) => R(Z, ge)
|
|
4954
4954
|
}, {
|
|
4955
4955
|
default: h(() => [
|
|
4956
|
-
|
|
4956
|
+
W($(f(r)("actions.copy_id")), 1)
|
|
4957
4957
|
]),
|
|
4958
4958
|
_: 2
|
|
4959
4959
|
}, 1032, ["onClick"])
|
|
@@ -4967,7 +4967,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
4967
4967
|
onClick: (He) => z(Z, ge)
|
|
4968
4968
|
}, {
|
|
4969
4969
|
default: h(() => [
|
|
4970
|
-
|
|
4970
|
+
W($(f(r)("actions.copy_json")), 1)
|
|
4971
4971
|
]),
|
|
4972
4972
|
_: 2
|
|
4973
4973
|
}, 1032, ["onClick"])
|
|
@@ -5008,7 +5008,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5008
5008
|
onClick: (ge) => ze(Z)
|
|
5009
5009
|
}, {
|
|
5010
5010
|
default: h(() => [
|
|
5011
|
-
|
|
5011
|
+
W($(f(r)("actions.delete.menu_label")), 1)
|
|
5012
5012
|
]),
|
|
5013
5013
|
_: 2
|
|
5014
5014
|
}, 1032, ["onClick"])
|
|
@@ -5031,7 +5031,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5031
5031
|
k(f(ts), {
|
|
5032
5032
|
"action-pending": Pe.value,
|
|
5033
5033
|
description: f(r)("actions.delete.description"),
|
|
5034
|
-
"entity-name":
|
|
5034
|
+
"entity-name": re.value && (re.value.name || re.value.id),
|
|
5035
5035
|
"entity-type": f(mi).GatewayService,
|
|
5036
5036
|
error: De.value,
|
|
5037
5037
|
title: f(r)("actions.delete.title"),
|
|
@@ -5068,7 +5068,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5068
5068
|
}, ic = {
|
|
5069
5069
|
key: 1,
|
|
5070
5070
|
class: "checkbox-aligned-radio"
|
|
5071
|
-
}, rc = /* @__PURE__ */
|
|
5071
|
+
}, rc = /* @__PURE__ */ ee({
|
|
5072
5072
|
__name: "GatewayServiceForm",
|
|
5073
5073
|
props: {
|
|
5074
5074
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5219,11 +5219,11 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5219
5219
|
return !0;
|
|
5220
5220
|
const d = ["https", "wss", "tls"].includes(s.fields.protocol);
|
|
5221
5221
|
return C.value === "protocol" && d;
|
|
5222
|
-
}),
|
|
5222
|
+
}), re = (d) => {
|
|
5223
5223
|
j.value = p.utf8Name(d);
|
|
5224
5224
|
}, je = I(() => O.value && JSON.stringify(s.fields) !== JSON.stringify(S) || C.value === "url" && !!s.fields.url || C.value === "protocol" && !!s.fields.host), Pe = (d) => {
|
|
5225
5225
|
var m, F, P;
|
|
5226
|
-
s.fields.name = (d == null ? void 0 : d.name) || "", s.fields.tags = ((m = d == null ? void 0 : d.tags) == null ? void 0 : m.join(",")) || "", s.fields.protocol = (d == null ? void 0 : d.protocol) || "http", s.fields.path = (d == null ? void 0 : d.path) || "", s.fields.read_timeout = d != null && d.read_timeout || (d == null ? void 0 : d.read_timeout) === 0 ? d == null ? void 0 : d.read_timeout : 6e4, s.fields.retries = d != null && d.retries || (d == null ? void 0 : d.retries) === 0 ? d == null ? void 0 : d.retries : 5, s.fields.host = (d == null ? void 0 : d.host) || "", s.fields.connect_timeout = d != null && d.connect_timeout || (d == null ? void 0 : d.connect_timeout) === 0 ? d == null ? void 0 : d.connect_timeout : 6e4, s.fields.tls_verify_enabled = (d == null ? void 0 : d.tls_verify) !== "" && (d == null ? void 0 : d.tls_verify) !== null && (d == null ? void 0 : d.tls_verify) !== void 0, s.fields.tls_verify_value = d != null && d.tls_verify ? d == null ? void 0 : d.tls_verify : !1, s.fields.ca_certificates = ((F = d == null ? void 0 : d.ca_certificates) == null ? void 0 : F.join(",")) || "", s.fields.client_certificate = ((P = d == null ? void 0 : d.client_certificate) == null ? void 0 : P.id) || "", s.fields.write_timeout = d != null && d.write_timeout || (d == null ? void 0 : d.write_timeout) === 0 ? d == null ? void 0 : d.write_timeout : 6e4, s.fields.port = d != null && d.port || (d == null ? void 0 : d.port) === 0 ? d == null ? void 0 : d.port : 80, Object.assign(S, s.fields);
|
|
5226
|
+
s.fields.name = (d == null ? void 0 : d.name) || "", s.fields.tags = ((m = d == null ? void 0 : d.tags) == null ? void 0 : m.join(", ")) || "", s.fields.protocol = (d == null ? void 0 : d.protocol) || "http", s.fields.path = (d == null ? void 0 : d.path) || "", s.fields.read_timeout = d != null && d.read_timeout || (d == null ? void 0 : d.read_timeout) === 0 ? d == null ? void 0 : d.read_timeout : 6e4, s.fields.retries = d != null && d.retries || (d == null ? void 0 : d.retries) === 0 ? d == null ? void 0 : d.retries : 5, s.fields.host = (d == null ? void 0 : d.host) || "", s.fields.connect_timeout = d != null && d.connect_timeout || (d == null ? void 0 : d.connect_timeout) === 0 ? d == null ? void 0 : d.connect_timeout : 6e4, s.fields.tls_verify_enabled = (d == null ? void 0 : d.tls_verify) !== "" && (d == null ? void 0 : d.tls_verify) !== null && (d == null ? void 0 : d.tls_verify) !== void 0, s.fields.tls_verify_value = d != null && d.tls_verify ? d == null ? void 0 : d.tls_verify : !1, s.fields.ca_certificates = ((F = d == null ? void 0 : d.ca_certificates) == null ? void 0 : F.join(",")) || "", s.fields.client_certificate = ((P = d == null ? void 0 : d.client_certificate) == null ? void 0 : P.id) || "", s.fields.write_timeout = d != null && d.write_timeout || (d == null ? void 0 : d.write_timeout) === 0 ? d == null ? void 0 : d.write_timeout : 6e4, s.fields.port = d != null && d.port || (d == null ? void 0 : d.port) === 0 ? d == null ? void 0 : d.port : 80, Object.assign(S, s.fields);
|
|
5227
5227
|
}, De = () => {
|
|
5228
5228
|
o.push(r.config.cancelRoute);
|
|
5229
5229
|
}, yt = I(() => {
|
|
@@ -5238,10 +5238,10 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5238
5238
|
let m = "";
|
|
5239
5239
|
d.url && (m = new URL(d.url).protocol), (["https", "wss", "tls"].includes(d.protocol) || ["https", "wss", "tls"].includes(m)) && (d.tls_verify = d.tls_verify_enabled ? d.tls_verify_value : null), delete d.tls_verify_enabled, delete d.tls_verify_value;
|
|
5240
5240
|
}, Ne = I(() => {
|
|
5241
|
-
var m, F;
|
|
5241
|
+
var m, F, P, J;
|
|
5242
5242
|
const d = {
|
|
5243
5243
|
name: s.fields.name || null,
|
|
5244
|
-
tags: s.fields.tags ? (m = s.fields.tags) == null ? void 0 : m.split(",").
|
|
5244
|
+
tags: s.fields.tags ? (P = (F = (m = s.fields.tags) == null ? void 0 : m.split(",")) == null ? void 0 : F.map((X) => String(X || "").trim())) == null ? void 0 : P.filter((X) => X !== "") : null,
|
|
5245
5245
|
protocol: s.fields.protocol,
|
|
5246
5246
|
path: s.fields.path || null,
|
|
5247
5247
|
read_timeout: s.fields.read_timeout,
|
|
@@ -5250,7 +5250,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5250
5250
|
connect_timeout: s.fields.connect_timeout,
|
|
5251
5251
|
tls_verify_value: s.fields.tls_verify_value,
|
|
5252
5252
|
tls_verify_enabled: s.fields.tls_verify_enabled,
|
|
5253
|
-
ca_certificates: s.fields.ca_certificates ? (
|
|
5253
|
+
ca_certificates: s.fields.ca_certificates ? (J = s.fields.ca_certificates) == null ? void 0 : J.split(",").filter((X) => X !== "") : null,
|
|
5254
5254
|
client_certificate: s.fields.client_certificate ? { id: s.fields.client_certificate } : null,
|
|
5255
5255
|
write_timeout: s.fields.write_timeout,
|
|
5256
5256
|
port: s.fields.port,
|
|
@@ -5261,16 +5261,16 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5261
5261
|
var d, m, F, P;
|
|
5262
5262
|
try {
|
|
5263
5263
|
s.isReadonly = !0, R();
|
|
5264
|
-
const
|
|
5265
|
-
rt(
|
|
5266
|
-
let
|
|
5267
|
-
if (await g.post(yt.value,
|
|
5268
|
-
const { data: w } =
|
|
5269
|
-
s.fields.name = (w == null ? void 0 : w.name) || "", s.fields.port = w.port || B.getPortFromProtocol(w.protocol), s.fields.protocol = (w == null ? void 0 : w.protocol) || "http", s.fields.host = (w == null ? void 0 : w.host) || "", s.fields.path = (w == null ? void 0 : w.path) || "", s.fields.url = (w == null ? void 0 : w.url) || "", s.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, s.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, s.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, s.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, s.fields.client_certificate = ((m = w == null ? void 0 : w.client_certificate) == null ? void 0 : m.id) || "", s.fields.ca_certificates = (F = w == null ? void 0 : w.ca_certificates) != null && F.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), s.fields.tags = (P = w == null ? void 0 : w.tags) != null && P.length ? w
|
|
5264
|
+
const J = Ne.value;
|
|
5265
|
+
rt(J);
|
|
5266
|
+
let X;
|
|
5267
|
+
if (await g.post(yt.value, J), v.value === "create" ? X = await g.post(ze.value, J) : v.value === "edit" && (X = ((d = r.config) == null ? void 0 : d.app) === "konnect" ? await g.put(ze.value, J) : await g.patch(ze.value, J)), X) {
|
|
5268
|
+
const { data: w } = X;
|
|
5269
|
+
s.fields.name = (w == null ? void 0 : w.name) || "", s.fields.port = w.port || B.getPortFromProtocol(w.protocol), s.fields.protocol = (w == null ? void 0 : w.protocol) || "http", s.fields.host = (w == null ? void 0 : w.host) || "", s.fields.path = (w == null ? void 0 : w.path) || "", s.fields.url = (w == null ? void 0 : w.url) || "", s.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, s.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, s.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, s.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, s.fields.client_certificate = ((m = w == null ? void 0 : w.client_certificate) == null ? void 0 : m.id) || "", s.fields.ca_certificates = (F = w == null ? void 0 : w.ca_certificates) != null && F.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", s.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, s.fields.tls_verify_value = s.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), s.fields.tags = (P = w == null ? void 0 : w.tags) != null && P.length ? w.tags.join(", ") : "", Object.assign(S, s.fields), a("update", X == null ? void 0 : X.data);
|
|
5270
5270
|
}
|
|
5271
|
-
return
|
|
5272
|
-
} catch (
|
|
5273
|
-
s.errorMessage = u(
|
|
5271
|
+
return X;
|
|
5272
|
+
} catch (J) {
|
|
5273
|
+
s.errorMessage = u(J), a("error", J);
|
|
5274
5274
|
} finally {
|
|
5275
5275
|
s.isReadonly = !1;
|
|
5276
5276
|
}
|
|
@@ -5287,7 +5287,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5287
5287
|
saveFormData: Me,
|
|
5288
5288
|
canSubmit: je
|
|
5289
5289
|
}), (d, m) => {
|
|
5290
|
-
const F = K("KInput"), P = K("KLabel"),
|
|
5290
|
+
const F = K("KInput"), P = K("KLabel"), J = K("KRadio"), X = K("KSelect"), w = K("KCheckbox"), we = K("KCollapse");
|
|
5291
5291
|
return b(), A("div", Bs, [
|
|
5292
5292
|
k(f(Pl), {
|
|
5293
5293
|
"can-submit": je.value,
|
|
@@ -5304,7 +5304,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5304
5304
|
onSubmit: Me
|
|
5305
5305
|
}, {
|
|
5306
5306
|
"form-actions": h(() => [
|
|
5307
|
-
|
|
5307
|
+
ie(d.$slots, "form-actions", {
|
|
5308
5308
|
canSubmit: je.value,
|
|
5309
5309
|
cancel: De,
|
|
5310
5310
|
submit: Me
|
|
@@ -5331,7 +5331,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5331
5331
|
placeholder: f(l)("gateway_services.form.fields.name.placeholder"),
|
|
5332
5332
|
readonly: s.isReadonly,
|
|
5333
5333
|
type: "text",
|
|
5334
|
-
onInput:
|
|
5334
|
+
onInput: re
|
|
5335
5335
|
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
|
|
5336
5336
|
k(F, {
|
|
5337
5337
|
modelValue: s.fields.tags,
|
|
@@ -5360,13 +5360,13 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5360
5360
|
V("div", Rs, [
|
|
5361
5361
|
k(P, { required: "" }, {
|
|
5362
5362
|
default: h(() => [
|
|
5363
|
-
|
|
5363
|
+
W($(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
|
|
5364
5364
|
]),
|
|
5365
5365
|
_: 1
|
|
5366
5366
|
})
|
|
5367
5367
|
]),
|
|
5368
5368
|
V("div", Ps, [
|
|
5369
|
-
k(
|
|
5369
|
+
k(J, {
|
|
5370
5370
|
modelValue: C.value,
|
|
5371
5371
|
"onUpdate:modelValue": m[2] || (m[2] = (U) => C.value = U),
|
|
5372
5372
|
"data-testid": "gateway-service-url-radio",
|
|
@@ -5374,7 +5374,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5374
5374
|
onChange: q
|
|
5375
5375
|
}, {
|
|
5376
5376
|
default: h(() => [
|
|
5377
|
-
|
|
5377
|
+
W($(f(l)("gateway_services.form.sections.keys.urlLabel")), 1)
|
|
5378
5378
|
]),
|
|
5379
5379
|
_: 1
|
|
5380
5380
|
}, 8, ["modelValue", "selected-value"])
|
|
@@ -5395,7 +5395,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5395
5395
|
required: ""
|
|
5396
5396
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
5397
5397
|
])) : G("", !0),
|
|
5398
|
-
k(
|
|
5398
|
+
k(J, {
|
|
5399
5399
|
modelValue: C.value,
|
|
5400
5400
|
"onUpdate:modelValue": m[4] || (m[4] = (U) => C.value = U),
|
|
5401
5401
|
"checked-group": "protocol",
|
|
@@ -5404,13 +5404,13 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5404
5404
|
onChange: q
|
|
5405
5405
|
}, {
|
|
5406
5406
|
default: h(() => [
|
|
5407
|
-
|
|
5407
|
+
W($(f(l)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
|
|
5408
5408
|
]),
|
|
5409
5409
|
_: 1
|
|
5410
5410
|
}, 8, ["modelValue", "selected-value"])
|
|
5411
5411
|
])),
|
|
5412
5412
|
C.value === "protocol" || O.value ? (b(), A("div", zs, [
|
|
5413
|
-
k(
|
|
5413
|
+
k(X, {
|
|
5414
5414
|
modelValue: s.fields.protocol,
|
|
5415
5415
|
"onUpdate:modelValue": m[5] || (m[5] = (U) => s.fields.protocol = U),
|
|
5416
5416
|
"data-testid": "gateway-service-protocol-select",
|
|
@@ -5618,7 +5618,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5618
5618
|
_: 1
|
|
5619
5619
|
}, 8, ["modelValue", "description", "label"]),
|
|
5620
5620
|
s.fields.tls_verify_enabled ? (b(), A("div", tc, [
|
|
5621
|
-
k(
|
|
5621
|
+
k(J, {
|
|
5622
5622
|
modelValue: s.fields.tls_verify_value,
|
|
5623
5623
|
"onUpdate:modelValue": m[22] || (m[22] = (U) => s.fields.tls_verify_value = U),
|
|
5624
5624
|
"data-testid": "gateway-service-tls-verify-true-option",
|
|
@@ -5627,7 +5627,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5627
5627
|
}, null, 8, ["modelValue", "label"])
|
|
5628
5628
|
])) : G("", !0),
|
|
5629
5629
|
s.fields.tls_verify_enabled ? (b(), A("div", ic, [
|
|
5630
|
-
k(
|
|
5630
|
+
k(J, {
|
|
5631
5631
|
modelValue: s.fields.tls_verify_value,
|
|
5632
5632
|
"onUpdate:modelValue": m[23] || (m[23] = (U) => s.fields.tls_verify_value = U),
|
|
5633
5633
|
"data-testid": "gateway-service-tls-verify-false-option",
|
|
@@ -5649,7 +5649,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5649
5649
|
]);
|
|
5650
5650
|
};
|
|
5651
5651
|
}
|
|
5652
|
-
}), yc = /* @__PURE__ */ dr(rc, [["__scopeId", "data-v-
|
|
5652
|
+
}), yc = /* @__PURE__ */ dr(rc, [["__scopeId", "data-v-54ae3bef"]]), ac = { class: "kong-ui-gateway-service-entity-config-card" }, vc = /* @__PURE__ */ ee({
|
|
5653
5653
|
__name: "GatewayServiceConfigCard",
|
|
5654
5654
|
props: {
|
|
5655
5655
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5725,7 +5725,7 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5725
5725
|
tooltip: i("gateway_services.form.fields.client_certificate.tooltip")
|
|
5726
5726
|
},
|
|
5727
5727
|
ca_certificates: {
|
|
5728
|
-
type:
|
|
5728
|
+
type: te.BadgeTag,
|
|
5729
5729
|
label: i("gateway_services.form.fields.ca_certificates.label"),
|
|
5730
5730
|
order: 6
|
|
5731
5731
|
},
|
|
@@ -5787,10 +5787,10 @@ const Ss = ["aria-labelledby"], Is = { class: "form-section-wrapper" }, xs = {
|
|
|
5787
5787
|
})
|
|
5788
5788
|
]),
|
|
5789
5789
|
tls_verify: h((g) => [
|
|
5790
|
-
|
|
5790
|
+
W($(typeof f(n)("rowValue", g) == "boolean" ? o("rowValue", g) : f(i)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
|
|
5791
5791
|
]),
|
|
5792
5792
|
client_certificate: h((g) => [
|
|
5793
|
-
|
|
5793
|
+
W($(f(n)("rowValue", g) ? f(n)("rowValue", g).id : "–"), 1)
|
|
5794
5794
|
]),
|
|
5795
5795
|
_: 1
|
|
5796
5796
|
}, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])
|