@kong-ui-public/entities-shared 3.30.2-pr.2484.4c241d5fa.0 → 3.30.3-pr.2477.ec18eb4c8.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.
- package/dist/entities-shared.es.js +112 -113
- package/dist/entities-shared.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts +0 -2
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -1
- package/dist/types/types/entity-base-config-card.d.ts +1 -1
- package/dist/types/types/entity-base-config-card.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { inject as jt, ref as R, computed as E, unref as T, toValue as me, watch as ve, toRef as qn, provide as Dt, defineComponent as J, createBlock as N, openBlock as m, resolveDynamicComponent as je, normalizeClass as de, withCtx as
|
|
1
|
+
import { inject as jt, ref as R, computed as E, unref as T, toValue as me, watch as ve, toRef as qn, provide as Dt, defineComponent as J, createBlock as N, openBlock as m, resolveDynamicComponent as je, normalizeClass as de, withCtx as w, createElementBlock as $, createCommentVNode as K, createElementVNode as O, toDisplayString as F, Fragment as ce, renderList as se, resolveComponent as D, createVNode as M, createTextVNode as U, useCssVars as Pt, useId as Hn, useSlots as De, renderSlot as j, createSlots as _e, normalizeProps as Vn, guardReactiveProps as Yn, mergeProps as Wn, onMounted as tt, onBeforeMount as nt, withModifiers as Le, Teleport as Ut, onUnmounted as Jn, withDirectives as be, vShow as xe, withKeys as Gn, warn as zn } from "vue";
|
|
2
2
|
import ft from "axios";
|
|
3
3
|
import { createI18n as Qn, i18nTComponent as Zn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Xn, KButton as pt, KTruncate as ei, KBadge as ti } from "@kong/kongponents";
|
|
5
5
|
import { BookIcon as qt, AddIcon as Ht, CloseIcon as ni, ChevronDownIcon as ii, CopyIcon as ri } from "@kong/icons";
|
|
6
6
|
import { useRouter as ai } from "vue-router";
|
|
7
|
-
var oi = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(oi || {}), li = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(li || {}), pe = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(pe || {}), it = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.
|
|
7
|
+
var oi = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(oi || {}), li = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(li || {}), pe = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(pe || {}), it = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.RedisConfiguration = "redis_configuration", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.Policy = "policy", e.Other = "other", e))(it || {});
|
|
8
8
|
const Pe = Object.values(it);
|
|
9
9
|
var V = /* @__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.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(V || {}), le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(le || {});
|
|
10
10
|
const mt = [
|
|
@@ -284,20 +284,20 @@ function wi(e, t, n, i = {
|
|
|
284
284
|
if (p.value === void 0)
|
|
285
285
|
try {
|
|
286
286
|
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
287
|
-
const
|
|
287
|
+
const _ = `${y.value}/${L}`, { data: f } = await r.get(`${_}?size=${n}`);
|
|
288
288
|
i.fetchedItemsKey in f ? u.value = f[i.fetchedItemsKey] : f != null && f[i.exactMatchKey ?? "id"] ? u.value = [f] : u.value = [];
|
|
289
289
|
} else {
|
|
290
|
-
const
|
|
291
|
-
v(L) && i.searchKeys.includes("id") ?
|
|
290
|
+
const _ = [];
|
|
291
|
+
v(L) && i.searchKeys.includes("id") ? _.push((async () => {
|
|
292
292
|
const { data: C } = await r.get(`${y.value}/${L}`);
|
|
293
293
|
return [C[i.fetchedItemsKey] ?? C];
|
|
294
|
-
})()) :
|
|
294
|
+
})()) : _.push(
|
|
295
295
|
...i.searchKeys.filter((C) => C !== "id").map(async (C) => {
|
|
296
296
|
const { data: k } = await r.get(`${y.value}?${C}=${L}`);
|
|
297
297
|
return k[i.fetchedItemsKey];
|
|
298
298
|
})
|
|
299
299
|
);
|
|
300
|
-
const f = await Promise.all(
|
|
300
|
+
const f = await Promise.all(_), h = /* @__PURE__ */ new Set();
|
|
301
301
|
u.value = [], (q = f == null ? void 0 : f.forEach) == null || q.call(f, (C) => {
|
|
302
302
|
var k;
|
|
303
303
|
(k = C == null ? void 0 : C.forEach) == null || k.call(C, (H) => {
|
|
@@ -305,17 +305,17 @@ function wi(e, t, n, i = {
|
|
|
305
305
|
});
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
} catch (
|
|
309
|
-
((ne =
|
|
308
|
+
} catch (_) {
|
|
309
|
+
((ne = _ == null ? void 0 : _.response) == null ? void 0 : ne.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
|
|
310
310
|
} finally {
|
|
311
311
|
s.value = !1;
|
|
312
312
|
}
|
|
313
313
|
else
|
|
314
|
-
s.value = !0, d.value = "", u.value = (A = p.value) == null ? void 0 : A.filter((
|
|
314
|
+
s.value = !0, d.value = "", u.value = (A = p.value) == null ? void 0 : A.filter((_) => {
|
|
315
315
|
var h;
|
|
316
316
|
let f = !1;
|
|
317
317
|
for (const C of i.searchKeys) {
|
|
318
|
-
const k = typeof
|
|
318
|
+
const k = typeof _[C] == "string" ? (h = _[C]) == null ? void 0 : h.toLowerCase() : _[C];
|
|
319
319
|
k != null && k.includes(L.toLowerCase()) && (f = !0);
|
|
320
320
|
}
|
|
321
321
|
return f;
|
|
@@ -645,7 +645,7 @@ const Y = {
|
|
|
645
645
|
return (s, c) => (m(), N(je(e.isArrayItem ? "fieldset" : "div"), {
|
|
646
646
|
class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
647
647
|
}, {
|
|
648
|
-
default:
|
|
648
|
+
default: w(() => [
|
|
649
649
|
e.isArrayItem ? (m(), $("legend", Pi, [
|
|
650
650
|
O("b", null, F(l.value), 1)
|
|
651
651
|
])) : K("", !0),
|
|
@@ -685,7 +685,7 @@ const Y = {
|
|
|
685
685
|
class: "navigation-button",
|
|
686
686
|
onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
|
|
687
687
|
}, {
|
|
688
|
-
default:
|
|
688
|
+
default: w(() => [
|
|
689
689
|
U(F(e.item.value || T(t)("baseConfigCard.commonFields.link")), 1)
|
|
690
690
|
]),
|
|
691
691
|
_: 1
|
|
@@ -708,7 +708,7 @@ const Y = {
|
|
|
708
708
|
return m(), N(r, {
|
|
709
709
|
appearance: e.status ? "success" : "neutral"
|
|
710
710
|
}, {
|
|
711
|
-
default:
|
|
711
|
+
default: w(() => [
|
|
712
712
|
U(F(e.status ? T(t)("baseConfigCard.statusBadge.enabledLabel") : T(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
713
713
|
]),
|
|
714
714
|
_: 1
|
|
@@ -880,19 +880,19 @@ const Y = {
|
|
|
880
880
|
}
|
|
881
881
|
}), b = R(), S = R(), { isTruncated: x } = Y.useTruncationDetector(b), { isTruncated: L } = Y.useTruncationDetector(S);
|
|
882
882
|
return (q, ne) => {
|
|
883
|
-
const A = D("KTooltip"),
|
|
883
|
+
const A = D("KTooltip"), _ = D("KLabel"), f = D("KBadge"), h = D("KCopy");
|
|
884
884
|
return m(), $("div", Xi, [
|
|
885
885
|
O("div", {
|
|
886
886
|
class: "config-card-details-label",
|
|
887
887
|
"data-testid": `${e.item.key}-label`
|
|
888
888
|
}, [
|
|
889
889
|
j(q.$slots, "label", { item: e.item }, () => [
|
|
890
|
-
M(
|
|
891
|
-
default:
|
|
890
|
+
M(_, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
|
|
891
|
+
default: w(() => [
|
|
892
892
|
M(A, {
|
|
893
893
|
text: T(x) ? e.item.label : ""
|
|
894
894
|
}, {
|
|
895
|
-
default:
|
|
895
|
+
default: w(() => [
|
|
896
896
|
O("span", {
|
|
897
897
|
ref_key: "labelContent",
|
|
898
898
|
ref: b,
|
|
@@ -906,7 +906,7 @@ const Y = {
|
|
|
906
906
|
}, [
|
|
907
907
|
d.value ? {
|
|
908
908
|
name: "tooltip",
|
|
909
|
-
fn:
|
|
909
|
+
fn: w(() => [
|
|
910
910
|
O("div", {
|
|
911
911
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
912
912
|
}, [
|
|
@@ -929,7 +929,7 @@ const Y = {
|
|
|
929
929
|
}, () => [
|
|
930
930
|
c.value ? (m(), $("div", rr, [
|
|
931
931
|
(m(), N(je(v.value.tag), Vn(Yn(v.value.attrs)), {
|
|
932
|
-
default:
|
|
932
|
+
default: w(() => [
|
|
933
933
|
v.value.additionalComponent === "KBadge" ? (m(), $("div", {
|
|
934
934
|
key: 0,
|
|
935
935
|
"data-testid": `${e.item.key}-badge-tags`
|
|
@@ -941,7 +941,7 @@ const Y = {
|
|
|
941
941
|
tooltip: C,
|
|
942
942
|
"truncation-tooltip": ""
|
|
943
943
|
}, {
|
|
944
|
-
default:
|
|
944
|
+
default: w(() => [
|
|
945
945
|
U(F(C), 1)
|
|
946
946
|
]),
|
|
947
947
|
_: 2
|
|
@@ -967,7 +967,7 @@ const Y = {
|
|
|
967
967
|
class: "config-badge",
|
|
968
968
|
"data-testid": `${e.item.key}-badge-method-${k}`
|
|
969
969
|
}, {
|
|
970
|
-
default:
|
|
970
|
+
default: w(() => [
|
|
971
971
|
U(F(C), 1)
|
|
972
972
|
]),
|
|
973
973
|
_: 2
|
|
@@ -986,7 +986,7 @@ const Y = {
|
|
|
986
986
|
key: 4,
|
|
987
987
|
text: T(L) ? e.item.value : ""
|
|
988
988
|
}, {
|
|
989
|
-
default:
|
|
989
|
+
default: w(() => [
|
|
990
990
|
O("span", {
|
|
991
991
|
ref_key: "textContent",
|
|
992
992
|
ref: S,
|
|
@@ -1055,7 +1055,7 @@ const Y = {
|
|
|
1055
1055
|
M(a, {
|
|
1056
1056
|
appearance: t.requestMethod
|
|
1057
1057
|
}, {
|
|
1058
|
-
default:
|
|
1058
|
+
default: w(() => [
|
|
1059
1059
|
U(F(t.requestMethod), 1)
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 1
|
|
@@ -2611,10 +2611,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2611
2611
|
key: c.key,
|
|
2612
2612
|
item: c
|
|
2613
2613
|
}, _e({
|
|
2614
|
-
label:
|
|
2614
|
+
label: w(() => [
|
|
2615
2615
|
j(a.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2616
2616
|
]),
|
|
2617
|
-
[c.key]:
|
|
2617
|
+
[c.key]: w(({ rowValue: d }) => [
|
|
2618
2618
|
j(a.$slots, c.key, {
|
|
2619
2619
|
row: c,
|
|
2620
2620
|
rowValue: d
|
|
@@ -2624,7 +2624,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2624
2624
|
}, [
|
|
2625
2625
|
r(c) ? {
|
|
2626
2626
|
name: "label-tooltip",
|
|
2627
|
-
fn:
|
|
2627
|
+
fn: w(() => [
|
|
2628
2628
|
j(a.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
|
|
2629
2629
|
]),
|
|
2630
2630
|
key: "0"
|
|
@@ -2756,10 +2756,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2756
2756
|
},
|
|
2757
2757
|
emits: ["loading", "fetch:success", "fetch:error"],
|
|
2758
2758
|
setup(e, { emit: t }) {
|
|
2759
|
-
var
|
|
2759
|
+
var _;
|
|
2760
2760
|
const n = t, i = e, { i18n: { t: r } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { convertKeyToTitle: a } = Y.useStringHelpers();
|
|
2761
2761
|
Y.useSubSchema(i.pluginConfigKey);
|
|
2762
|
-
const { axiosInstance: l } = Y.useAxios((
|
|
2762
|
+
const { axiosInstance: l } = Y.useAxios((_ = i.config) == null ? void 0 : _.axiosRequestConfig), s = [
|
|
2763
2763
|
{
|
|
2764
2764
|
label: r("baseConfigCard.general.structuredFormat"),
|
|
2765
2765
|
value: "structured",
|
|
@@ -2924,14 +2924,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2924
2924
|
class: "kong-ui-entity-base-config-card",
|
|
2925
2925
|
"title-tag": e.titleTag
|
|
2926
2926
|
}, _e({
|
|
2927
|
-
actions:
|
|
2927
|
+
actions: w(() => [
|
|
2928
2928
|
O("div", Uo, [
|
|
2929
2929
|
j(f.$slots, "actions", {}, void 0, !0),
|
|
2930
2930
|
M(C, {
|
|
2931
2931
|
class: "config-format-select-label",
|
|
2932
2932
|
"data-testid": "config-format-select-label"
|
|
2933
2933
|
}, {
|
|
2934
|
-
default:
|
|
2934
|
+
default: w(() => [
|
|
2935
2935
|
U(F(e.label), 1)
|
|
2936
2936
|
]),
|
|
2937
2937
|
_: 1
|
|
@@ -2949,7 +2949,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2949
2949
|
class: "book-icon",
|
|
2950
2950
|
"data-testid": "book-icon"
|
|
2951
2951
|
}, {
|
|
2952
|
-
default:
|
|
2952
|
+
default: w(() => [
|
|
2953
2953
|
O("a", {
|
|
2954
2954
|
href: e.configCardDoc,
|
|
2955
2955
|
rel: "noopener",
|
|
@@ -2962,7 +2962,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2962
2962
|
})) : K("", !0)
|
|
2963
2963
|
])
|
|
2964
2964
|
]),
|
|
2965
|
-
default:
|
|
2965
|
+
default: w(() => [
|
|
2966
2966
|
y.value ? (m(), N(P, {
|
|
2967
2967
|
key: 0,
|
|
2968
2968
|
"data-testid": "config-card-loader",
|
|
@@ -2973,7 +2973,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2973
2973
|
"data-testid": "config-card-fetch-error",
|
|
2974
2974
|
"icon-variant": "error"
|
|
2975
2975
|
}, {
|
|
2976
|
-
default:
|
|
2976
|
+
default: w(() => [
|
|
2977
2977
|
O("h3", null, F(b.value), 1)
|
|
2978
2978
|
]),
|
|
2979
2979
|
_: 1
|
|
@@ -2991,7 +2991,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2991
2991
|
}, _e({ _: 2 }, [
|
|
2992
2992
|
se(Object.keys(f.$slots), (W) => ({
|
|
2993
2993
|
name: W,
|
|
2994
|
-
fn:
|
|
2994
|
+
fn: w(({ row: Z, rowValue: Oe }) => [
|
|
2995
2995
|
j(f.$slots, W, {
|
|
2996
2996
|
row: Z,
|
|
2997
2997
|
rowValue: Oe
|
|
@@ -3005,7 +3005,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3005
3005
|
}, [
|
|
3006
3006
|
e.hideTitle ? void 0 : {
|
|
3007
3007
|
name: "title",
|
|
3008
|
-
fn:
|
|
3008
|
+
fn: w(() => [
|
|
3009
3009
|
O("span", Po, [
|
|
3010
3010
|
j(f.$slots, "title", {}, () => [
|
|
3011
3011
|
U(F(T(r)("baseConfigCard.title")), 1)
|
|
@@ -3130,13 +3130,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3130
3130
|
default: void 0
|
|
3131
3131
|
}
|
|
3132
3132
|
},
|
|
3133
|
-
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"
|
|
3133
|
+
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3134
3134
|
setup(e, { expose: t, emit: n }) {
|
|
3135
3135
|
var ne;
|
|
3136
3136
|
const i = n, r = e, o = ai(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: l } = Y.useErrors(), { axiosInstance: s } = Y.useAxios((ne = r.config) == null ? void 0 : ne.axiosRequestConfig), c = R(!1), d = E(() => !!r.editId), u = R(!1), g = R(""), p = E(() => r.canSubmit === !1 || r.isReadonly), y = R(!1), v = E(() => {
|
|
3137
|
-
var
|
|
3137
|
+
var _, f;
|
|
3138
3138
|
let A = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3139
|
-
return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((
|
|
3139
|
+
return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((_ = r.config) == null ? void 0 : _.controlPlaneId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (A = A.replace(/{id}/gi, r.editId), A) : (A = A.replace(/\/{id}/gi, ""), A);
|
|
3140
3140
|
}), b = () => {
|
|
3141
3141
|
y.value = !y.value;
|
|
3142
3142
|
}, S = () => {
|
|
@@ -3167,8 +3167,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3167
3167
|
const { data: A } = await s.get(v.value);
|
|
3168
3168
|
i("fetch:success", A);
|
|
3169
3169
|
} catch (A) {
|
|
3170
|
-
const
|
|
3171
|
-
g.value =
|
|
3170
|
+
const _ = l(A);
|
|
3171
|
+
g.value = _.startsWith("code") ? a("baseForm.errors.edit") : _, u.value = !0, i("fetch:error", A);
|
|
3172
3172
|
} finally {
|
|
3173
3173
|
c.value = !1;
|
|
3174
3174
|
}
|
|
@@ -3176,10 +3176,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3176
3176
|
viewConfig: b,
|
|
3177
3177
|
formCancel: x,
|
|
3178
3178
|
formSubmit: L
|
|
3179
|
-
}), (A,
|
|
3179
|
+
}), (A, _) => {
|
|
3180
3180
|
const f = D("KSkeleton"), h = D("KEmptyState"), C = D("KAlert"), k = D("KButton"), H = D("KTabs"), P = D("KSlideout");
|
|
3181
3181
|
return m(), N(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3182
|
-
default:
|
|
3182
|
+
default: w(() => [
|
|
3183
3183
|
c.value ? (m(), N(f, {
|
|
3184
3184
|
key: 0,
|
|
3185
3185
|
type: "form"
|
|
@@ -3190,7 +3190,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3190
3190
|
"icon-variant": "error",
|
|
3191
3191
|
onClickAction: S
|
|
3192
3192
|
}, {
|
|
3193
|
-
default:
|
|
3193
|
+
default: w(() => [
|
|
3194
3194
|
O("h3", null, F(g.value), 1)
|
|
3195
3195
|
]),
|
|
3196
3196
|
_: 1
|
|
@@ -3221,9 +3221,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3221
3221
|
M(k, {
|
|
3222
3222
|
appearance: "tertiary",
|
|
3223
3223
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
3224
|
-
onClick:
|
|
3224
|
+
onClick: _[0] || (_[0] = (B) => b())
|
|
3225
3225
|
}, {
|
|
3226
|
-
default:
|
|
3226
|
+
default: w(() => [
|
|
3227
3227
|
U(F(T(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3228
3228
|
]),
|
|
3229
3229
|
_: 1
|
|
@@ -3233,9 +3233,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3233
3233
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
|
|
3234
3234
|
disabled: e.isReadonly,
|
|
3235
3235
|
type: "reset",
|
|
3236
|
-
onClick:
|
|
3236
|
+
onClick: _[1] || (_[1] = (B) => !!e.actionTeleportTarget && x())
|
|
3237
3237
|
}, {
|
|
3238
|
-
default:
|
|
3238
|
+
default: w(() => [
|
|
3239
3239
|
U(F(e.cancelButtonText ?? T(a)("baseForm.actions.cancel")), 1)
|
|
3240
3240
|
]),
|
|
3241
3241
|
_: 1
|
|
@@ -3245,9 +3245,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3245
3245
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
|
|
3246
3246
|
disabled: p.value,
|
|
3247
3247
|
type: "submit",
|
|
3248
|
-
onClick:
|
|
3248
|
+
onClick: _[2] || (_[2] = (B) => !!e.actionTeleportTarget && L())
|
|
3249
3249
|
}, {
|
|
3250
|
-
default:
|
|
3250
|
+
default: w(() => [
|
|
3251
3251
|
U(F(e.saveButtonText ?? T(a)("baseForm.actions.save")), 1)
|
|
3252
3252
|
]),
|
|
3253
3253
|
_: 1
|
|
@@ -3263,16 +3263,15 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3263
3263
|
"offset-top": e.slidoutTopOffset,
|
|
3264
3264
|
title: T(a)("baseForm.configuration.title"),
|
|
3265
3265
|
visible: y.value,
|
|
3266
|
-
onClose:
|
|
3266
|
+
onClose: _[3] || (_[3] = (B) => b())
|
|
3267
3267
|
}, {
|
|
3268
|
-
default:
|
|
3268
|
+
default: w(() => [
|
|
3269
3269
|
O("div", null, F(T(a)("baseForm.configuration.message")), 1),
|
|
3270
3270
|
M(H, {
|
|
3271
3271
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3272
|
-
tabs: q.value
|
|
3273
|
-
onChange: w[3] || (w[3] = (B) => i("codeBlockTabChange", B.replace("#", "")))
|
|
3272
|
+
tabs: q.value
|
|
3274
3273
|
}, {
|
|
3275
|
-
json:
|
|
3274
|
+
json: w(() => [
|
|
3276
3275
|
M(Zt, {
|
|
3277
3276
|
config: e.config,
|
|
3278
3277
|
"entity-record": r.formFields,
|
|
@@ -3280,12 +3279,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3280
3279
|
"request-method": r.editId ? "put" : "post"
|
|
3281
3280
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3282
3281
|
]),
|
|
3283
|
-
yaml:
|
|
3282
|
+
yaml: w(() => [
|
|
3284
3283
|
M(Pn, {
|
|
3285
3284
|
"entity-record": r.formFields
|
|
3286
3285
|
}, null, 8, ["entity-record"])
|
|
3287
3286
|
]),
|
|
3288
|
-
terraform:
|
|
3287
|
+
terraform: w(() => [
|
|
3289
3288
|
M(Un, {
|
|
3290
3289
|
"entity-record": r.formFields,
|
|
3291
3290
|
"entity-type": e.entityType
|
|
@@ -3301,7 +3300,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3301
3300
|
});
|
|
3302
3301
|
};
|
|
3303
3302
|
}
|
|
3304
|
-
}), fs = /* @__PURE__ */ oe(Wo, [["__scopeId", "data-v-
|
|
3303
|
+
}), fs = /* @__PURE__ */ oe(Wo, [["__scopeId", "data-v-4f672e9f"]]), Jo = ["data-truncate"], Go = /* @__PURE__ */ J({
|
|
3305
3304
|
__name: "EntityBaseTableCell",
|
|
3306
3305
|
props: {
|
|
3307
3306
|
keyName: {
|
|
@@ -3375,7 +3374,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3375
3374
|
placement: "bottom-start",
|
|
3376
3375
|
text: v.value ? g.value : ""
|
|
3377
3376
|
}, {
|
|
3378
|
-
default:
|
|
3377
|
+
default: w(() => [
|
|
3379
3378
|
j(b.$slots, "default", {}, void 0, !0)
|
|
3380
3379
|
]),
|
|
3381
3380
|
_: 3
|
|
@@ -3593,7 +3592,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3593
3592
|
...n.initialFetcherParams,
|
|
3594
3593
|
...h
|
|
3595
3594
|
};
|
|
3596
|
-
}),
|
|
3595
|
+
}), _ = (h) => {
|
|
3597
3596
|
ne.value = h, l.value.forEach((C) => {
|
|
3598
3597
|
!("hidable" in C) || !ne.value.columnVisibility || C.hidable === !1 && (ne.value.columnVisibility[C.key] = !0);
|
|
3599
3598
|
}), a.value && L(a.value, h);
|
|
@@ -3609,7 +3608,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3609
3608
|
title: e.title,
|
|
3610
3609
|
"title-tag": e.titleTag
|
|
3611
3610
|
}, {
|
|
3612
|
-
default:
|
|
3611
|
+
default: w(() => [
|
|
3613
3612
|
M(k, {
|
|
3614
3613
|
ref_key: "tableRefs",
|
|
3615
3614
|
ref: c,
|
|
@@ -3644,9 +3643,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3644
3643
|
"onRow:click": v.value,
|
|
3645
3644
|
onSort: C[0] || (C[0] = (P) => b(P)),
|
|
3646
3645
|
onState: g,
|
|
3647
|
-
"onUpdate:tablePreferences":
|
|
3646
|
+
"onUpdate:tablePreferences": _
|
|
3648
3647
|
}, _e({
|
|
3649
|
-
toolbar:
|
|
3648
|
+
toolbar: w(() => [
|
|
3650
3649
|
O("div", Qo, [
|
|
3651
3650
|
j(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3652
3651
|
h.$slots["toolbar-button"] ? (m(), $("div", Zo, [
|
|
@@ -3654,27 +3653,27 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3654
3653
|
])) : K("", !0)
|
|
3655
3654
|
])
|
|
3656
3655
|
]),
|
|
3657
|
-
"action-items":
|
|
3656
|
+
"action-items": w(({ row: P }) => [
|
|
3658
3657
|
j(h.$slots, "actions", { row: P }, void 0, !0)
|
|
3659
3658
|
]),
|
|
3660
3659
|
_: 2
|
|
3661
3660
|
}, [
|
|
3662
3661
|
h.$slots["empty-state"] ? {
|
|
3663
3662
|
name: "empty-state",
|
|
3664
|
-
fn:
|
|
3663
|
+
fn: w(() => [
|
|
3665
3664
|
j(h.$slots, "empty-state", {}, void 0, !0)
|
|
3666
3665
|
]),
|
|
3667
3666
|
key: "0"
|
|
3668
3667
|
} : void 0,
|
|
3669
3668
|
se(e.tableHeaders, (P, B) => ({
|
|
3670
3669
|
name: B,
|
|
3671
|
-
fn:
|
|
3670
|
+
fn: w(({ row: Q, rowValue: W }) => [
|
|
3672
3671
|
M(zo, {
|
|
3673
3672
|
"key-name": String(B),
|
|
3674
3673
|
"row-el": d(Q),
|
|
3675
3674
|
tooltip: P.tooltip
|
|
3676
3675
|
}, {
|
|
3677
|
-
default:
|
|
3676
|
+
default: w(() => [
|
|
3678
3677
|
j(h.$slots, B, {
|
|
3679
3678
|
row: Q,
|
|
3680
3679
|
rowKey: e.rowKey,
|
|
@@ -3689,7 +3688,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3689
3688
|
})),
|
|
3690
3689
|
e.query ? void 0 : {
|
|
3691
3690
|
name: "empty-state-action-icon",
|
|
3692
|
-
fn:
|
|
3691
|
+
fn: w(() => [
|
|
3693
3692
|
M(T(Ht))
|
|
3694
3693
|
]),
|
|
3695
3694
|
key: "1"
|
|
@@ -3766,10 +3765,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3766
3765
|
onCancel: a,
|
|
3767
3766
|
onProceed: l
|
|
3768
3767
|
}, {
|
|
3769
|
-
default:
|
|
3768
|
+
default: w(() => [
|
|
3770
3769
|
e.error ? (m(), $("div", tl, [
|
|
3771
3770
|
M(d, { appearance: "danger" }, {
|
|
3772
|
-
default:
|
|
3771
|
+
default: w(() => [
|
|
3773
3772
|
U(F(e.error), 1)
|
|
3774
3773
|
]),
|
|
3775
3774
|
_: 1
|
|
@@ -3780,14 +3779,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3780
3779
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3781
3780
|
tag: "p"
|
|
3782
3781
|
}, _e({
|
|
3783
|
-
entityType:
|
|
3782
|
+
entityType: w(() => [
|
|
3784
3783
|
U(F(i.entityType), 1)
|
|
3785
3784
|
]),
|
|
3786
3785
|
_: 2
|
|
3787
3786
|
}, [
|
|
3788
3787
|
i.entityName ? {
|
|
3789
3788
|
name: "entityName",
|
|
3790
|
-
fn:
|
|
3789
|
+
fn: w(() => [
|
|
3791
3790
|
O("strong", null, F(i.entityName), 1)
|
|
3792
3791
|
]),
|
|
3793
3792
|
key: "0"
|
|
@@ -3867,23 +3866,23 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3867
3866
|
setup(e, { emit: t }) {
|
|
3868
3867
|
const { i18n: { t: n } } = Y.useI18n(), i = e, r = t, o = R(!1), a = R({}), l = R(/* @__PURE__ */ new Set()), s = E(() => {
|
|
3869
3868
|
const A = [];
|
|
3870
|
-
return new URLSearchParams(i.modelValue).forEach((
|
|
3871
|
-
|
|
3869
|
+
return new URLSearchParams(i.modelValue).forEach((_, f) => {
|
|
3870
|
+
_ !== "" && A.push(f);
|
|
3872
3871
|
}), A;
|
|
3873
3872
|
}), c = E(() => {
|
|
3874
3873
|
const A = i.config.fields;
|
|
3875
|
-
return Object.keys(A).filter((
|
|
3874
|
+
return Object.keys(A).filter((_) => {
|
|
3876
3875
|
var f;
|
|
3877
|
-
return (f = A == null ? void 0 : A[
|
|
3878
|
-
}).map((
|
|
3879
|
-
label: A[
|
|
3880
|
-
value:
|
|
3876
|
+
return (f = A == null ? void 0 : A[_]) == null ? void 0 : f.searchable;
|
|
3877
|
+
}).map((_) => ({
|
|
3878
|
+
label: A[_].label || _,
|
|
3879
|
+
value: _,
|
|
3881
3880
|
expanded: !1
|
|
3882
3881
|
}));
|
|
3883
3882
|
});
|
|
3884
3883
|
ve(() => i.modelValue, (A) => {
|
|
3885
|
-
a.value = {}, new URLSearchParams(A).forEach((
|
|
3886
|
-
a.value[f] =
|
|
3884
|
+
a.value = {}, new URLSearchParams(A).forEach((_, f) => {
|
|
3885
|
+
a.value[f] = _;
|
|
3887
3886
|
});
|
|
3888
3887
|
});
|
|
3889
3888
|
const d = () => {
|
|
@@ -3895,11 +3894,11 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3895
3894
|
}, p = () => {
|
|
3896
3895
|
g("");
|
|
3897
3896
|
}, y = (A) => `filter-${A}`, v = (A) => {
|
|
3898
|
-
var
|
|
3899
|
-
return (((f = (
|
|
3897
|
+
var _, f;
|
|
3898
|
+
return (((f = (_ = i.config.schema) == null ? void 0 : _[A]) == null ? void 0 : f.values) ?? []).map((h) => typeof h == "string" ? { value: h, label: h } : h);
|
|
3900
3899
|
}, b = (A) => {
|
|
3901
|
-
var
|
|
3902
|
-
return ((f = (
|
|
3900
|
+
var _, f;
|
|
3901
|
+
return ((f = (_ = i.config.schema) == null ? void 0 : _[A]) == null ? void 0 : f.type) ?? "text";
|
|
3903
3902
|
}, S = (A) => {
|
|
3904
3903
|
a.value = {
|
|
3905
3904
|
...a.value,
|
|
@@ -3908,17 +3907,17 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3908
3907
|
}, x = () => {
|
|
3909
3908
|
a.value = {}, L(!0);
|
|
3910
3909
|
}, L = (A = !1) => {
|
|
3911
|
-
const
|
|
3912
|
-
A && (o.value = !1), r("update:modelValue", new URLSearchParams(
|
|
3910
|
+
const _ = Object.keys(a.value).reduce((f, h) => (a.value[h] && (f[h] = `${a.value[h]}`), f), {});
|
|
3911
|
+
A && (o.value = !1), r("update:modelValue", new URLSearchParams(_).toString());
|
|
3913
3912
|
}, q = (A) => {
|
|
3914
|
-
var
|
|
3915
|
-
return !!((f = (
|
|
3916
|
-
}, ne = (A,
|
|
3913
|
+
var _, f;
|
|
3914
|
+
return !!((f = (_ = i.config.schema) == null ? void 0 : _[A]) != null && f.filterFunction);
|
|
3915
|
+
}, ne = (A, _) => {
|
|
3917
3916
|
var h;
|
|
3918
3917
|
const f = (h = i.config.schema) == null ? void 0 : h[A];
|
|
3919
|
-
return (f == null ? void 0 : f.filterFunction) === void 0 ? !0 : f.filterFunction(
|
|
3918
|
+
return (f == null ? void 0 : f.filterFunction) === void 0 ? !0 : f.filterFunction(_);
|
|
3920
3919
|
};
|
|
3921
|
-
return (A,
|
|
3920
|
+
return (A, _) => {
|
|
3922
3921
|
const f = D("KInput"), h = D("KButton"), C = D("KSelect");
|
|
3923
3922
|
return e.config.isExactMatch ? (m(), N(f, {
|
|
3924
3923
|
key: 0,
|
|
@@ -3929,10 +3928,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3929
3928
|
placeholder: e.config.placeholder,
|
|
3930
3929
|
"onUpdate:modelValue": g
|
|
3931
3930
|
}, {
|
|
3932
|
-
before:
|
|
3931
|
+
before: w(() => [
|
|
3933
3932
|
M(Nt)
|
|
3934
3933
|
]),
|
|
3935
|
-
after:
|
|
3934
|
+
after: w(() => [
|
|
3936
3935
|
be(M(T(ni), {
|
|
3937
3936
|
class: "kong-ui-entity-filter-clear",
|
|
3938
3937
|
role: "button",
|
|
@@ -3949,7 +3948,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3949
3948
|
"data-testid": "filter-button",
|
|
3950
3949
|
onClick: d
|
|
3951
3950
|
}, {
|
|
3952
|
-
default:
|
|
3951
|
+
default: w(() => [
|
|
3953
3952
|
M(Nt),
|
|
3954
3953
|
U(" " + F(T(n)("filter.filterButtonText")) + " " + F(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3955
3954
|
]),
|
|
@@ -4016,9 +4015,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4016
4015
|
appearance: "tertiary",
|
|
4017
4016
|
"data-testid": "apply-filter",
|
|
4018
4017
|
size: "small",
|
|
4019
|
-
onClick:
|
|
4018
|
+
onClick: _[0] || (_[0] = (B) => L(!0))
|
|
4020
4019
|
}, {
|
|
4021
|
-
default:
|
|
4020
|
+
default: w(() => [
|
|
4022
4021
|
U(F(T(n)("filter.applyButtonText")), 1)
|
|
4023
4022
|
]),
|
|
4024
4023
|
_: 1
|
|
@@ -4029,7 +4028,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4029
4028
|
size: "small",
|
|
4030
4029
|
onClick: (B) => S(k.value)
|
|
4031
4030
|
}, {
|
|
4032
|
-
default:
|
|
4031
|
+
default: w(() => [
|
|
4033
4032
|
U(F(T(n)("filter.clearButtonText")), 1)
|
|
4034
4033
|
]),
|
|
4035
4034
|
_: 2
|
|
@@ -4045,7 +4044,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4045
4044
|
size: "small",
|
|
4046
4045
|
onClick: x
|
|
4047
4046
|
}, {
|
|
4048
|
-
default:
|
|
4047
|
+
default: w(() => [
|
|
4049
4048
|
U(F(T(n)("filter.clearAllButtonText")), 1)
|
|
4050
4049
|
]),
|
|
4051
4050
|
_: 1
|
|
@@ -4117,15 +4116,15 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4117
4116
|
onCancel: c,
|
|
4118
4117
|
onProceed: d
|
|
4119
4118
|
}, {
|
|
4120
|
-
default:
|
|
4119
|
+
default: w(() => [
|
|
4121
4120
|
M(T(i), {
|
|
4122
4121
|
keypath: `toggleModal.${r.action}.message`,
|
|
4123
4122
|
scope: "global"
|
|
4124
4123
|
}, {
|
|
4125
|
-
entityType:
|
|
4124
|
+
entityType: w(() => [
|
|
4126
4125
|
U(F(e.entityType), 1)
|
|
4127
4126
|
]),
|
|
4128
|
-
entityName:
|
|
4127
|
+
entityName: w(() => [
|
|
4129
4128
|
O("strong", null, F(e.entityName), 1)
|
|
4130
4129
|
]),
|
|
4131
4130
|
_: 1
|
|
@@ -4244,7 +4243,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4244
4243
|
id: T(n),
|
|
4245
4244
|
class: "form-section-title"
|
|
4246
4245
|
}, {
|
|
4247
|
-
default:
|
|
4246
|
+
default: w(() => [
|
|
4248
4247
|
U(F(e.title), 1)
|
|
4249
4248
|
]),
|
|
4250
4249
|
_: 1
|
|
@@ -4357,11 +4356,11 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4357
4356
|
href: e.externalLink,
|
|
4358
4357
|
target: e.newWindow ? "_blank" : "_self"
|
|
4359
4358
|
}, {
|
|
4360
|
-
default:
|
|
4359
|
+
default: w(() => [
|
|
4361
4360
|
M(p, {
|
|
4362
4361
|
text: T(i) && e.entityLinkData.label || ""
|
|
4363
4362
|
}, {
|
|
4364
|
-
default:
|
|
4363
|
+
default: w(() => [
|
|
4365
4364
|
O("span", {
|
|
4366
4365
|
ref_key: "textContent",
|
|
4367
4366
|
ref: n,
|
|
@@ -4380,9 +4379,9 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4380
4379
|
placement: "bottom-end",
|
|
4381
4380
|
text: a.value
|
|
4382
4381
|
}, {
|
|
4383
|
-
default:
|
|
4382
|
+
default: w(() => [
|
|
4384
4383
|
M(v, null, {
|
|
4385
|
-
default:
|
|
4384
|
+
default: w(({ copyToClipboard: b }) => [
|
|
4386
4385
|
O("span", {
|
|
4387
4386
|
class: "entity-link-copy-id",
|
|
4388
4387
|
onClick: Le((S) => d(b), ["stop"])
|
|
@@ -4518,7 +4517,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4518
4517
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4519
4518
|
onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
|
|
4520
4519
|
}, {
|
|
4521
|
-
default:
|
|
4520
|
+
default: w(() => [
|
|
4522
4521
|
M(T(Ht)),
|
|
4523
4522
|
U(" " + F(e.actionButtonText), 1)
|
|
4524
4523
|
]),
|
|
@@ -4531,7 +4530,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4531
4530
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4532
4531
|
onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
|
|
4533
4532
|
}, {
|
|
4534
|
-
default:
|
|
4533
|
+
default: w(() => [
|
|
4535
4534
|
M(T(qt), { decorative: "" }),
|
|
4536
4535
|
U(" " + F(T(n)("emptyState.learnMore")), 1)
|
|
4537
4536
|
]),
|
|
@@ -4544,13 +4543,13 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4544
4543
|
key: c,
|
|
4545
4544
|
class: "entity-empty-state-card"
|
|
4546
4545
|
}, {
|
|
4547
|
-
title:
|
|
4546
|
+
title: w(() => [
|
|
4548
4547
|
a.$slots[`feature-${d}-icon`] ? (m(), $("div", Xl, [
|
|
4549
4548
|
j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4550
4549
|
])) : K("", !0),
|
|
4551
4550
|
O("div", es, F(c.title), 1)
|
|
4552
4551
|
]),
|
|
4553
|
-
default:
|
|
4552
|
+
default: w(() => [
|
|
4554
4553
|
O("div", {
|
|
4555
4554
|
title: c.description
|
|
4556
4555
|
}, F(c.description), 9, ts)
|
|
@@ -4593,14 +4592,14 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4593
4592
|
return (i, r) => {
|
|
4594
4593
|
var o;
|
|
4595
4594
|
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), N(T(ei), { key: 0 }, {
|
|
4596
|
-
default:
|
|
4595
|
+
default: w(() => [
|
|
4597
4596
|
(m(!0), $(ce, null, se(n.value, (a) => (m(), N(T(ti), {
|
|
4598
4597
|
key: a,
|
|
4599
4598
|
"max-width": e.tagMaxWidth,
|
|
4600
4599
|
onClick: r[0] || (r[0] = Le(() => {
|
|
4601
4600
|
}, ["stop"]))
|
|
4602
4601
|
}, {
|
|
4603
|
-
default:
|
|
4602
|
+
default: w(() => [
|
|
4604
4603
|
U(F(a), 1)
|
|
4605
4604
|
]),
|
|
4606
4605
|
_: 2
|