@kong-ui-public/entities-shared 3.30.5-pr.2488.45c2dead3.0 → 3.30.5
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 +247 -246
- package/dist/entities-shared.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +3 -1
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -1
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts +2 -0
- 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 +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { inject as jt, ref as R, computed as
|
|
1
|
+
import { inject as jt, ref as R, computed as F, 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 _, createElementBlock as $, createCommentVNode as K, createElementVNode as O, toDisplayString as E, 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.Partial = "partial", 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 = [
|
|
@@ -261,7 +261,7 @@ function wi(e, t, n, i = {
|
|
|
261
261
|
n || (n = "1000");
|
|
262
262
|
const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = Ue(), { debounce: a } = ci(), l = a(async (L) => {
|
|
263
263
|
await x(L);
|
|
264
|
-
}, 200), s = R(!1), c = R(""), d = R(""), u = R([]), g = R([]), p = R(void 0), y =
|
|
264
|
+
}, 200), s = R(!1), c = R(""), d = R(""), u = R([]), g = R([]), p = R(void 0), y = F(() => {
|
|
265
265
|
const L = `${e.apiBaseUrl}${T(t)}`;
|
|
266
266
|
return e.app === "konnect" ? L.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? L.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : L;
|
|
267
267
|
}), { isValidUuid: v } = Vt(), b = async () => {
|
|
@@ -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 w = `${y.value}/${L}`, { data: f } = await r.get(`${w}?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 w = [];
|
|
291
|
+
v(L) && i.searchKeys.includes("id") ? w.push((async () => {
|
|
292
292
|
const { data: C } = await r.get(`${y.value}/${L}`);
|
|
293
293
|
return [C[i.fetchedItemsKey] ?? C];
|
|
294
|
-
})()) :
|
|
294
|
+
})()) : w.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(w), 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 (w) {
|
|
309
|
+
((ne = w == null ? void 0 : w.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((w) => {
|
|
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 w[C] == "string" ? (h = w[C]) == null ? void 0 : h.toLowerCase() : w[C];
|
|
319
319
|
k != null && k.includes(L.toLowerCase()) && (f = !0);
|
|
320
320
|
}
|
|
321
321
|
return f;
|
|
@@ -333,7 +333,7 @@ function wi(e, t, n, i = {
|
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
function _i(e, t) {
|
|
336
|
-
const n = T(t), i =
|
|
336
|
+
const n = T(t), i = F(
|
|
337
337
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
338
338
|
);
|
|
339
339
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
@@ -422,10 +422,10 @@ function $i(e) {
|
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
function Yt(e, t) {
|
|
425
|
-
const n =
|
|
425
|
+
const n = F(() => {
|
|
426
426
|
const r = me(e);
|
|
427
427
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
428
|
-
}), i =
|
|
428
|
+
}), i = F(() => {
|
|
429
429
|
const r = me(t);
|
|
430
430
|
return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
|
|
431
431
|
});
|
|
@@ -516,14 +516,14 @@ const Jt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
516
516
|
}, yt = (e) => e === "*" || e === "x" || e === "X", vt = (e) => {
|
|
517
517
|
const t = parseInt(e, 10);
|
|
518
518
|
return isNaN(t) ? e : t;
|
|
519
|
-
},
|
|
519
|
+
}, Fi = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Ei = (e, t) => {
|
|
520
520
|
if (yt(e) || yt(t))
|
|
521
521
|
return 0;
|
|
522
|
-
const [n, i] =
|
|
522
|
+
const [n, i] = Fi(vt(e), vt(t));
|
|
523
523
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
524
524
|
}, bt = (e, t) => {
|
|
525
525
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
526
|
-
const i =
|
|
526
|
+
const i = Ei(e[n] || "0", t[n] || "0");
|
|
527
527
|
if (i !== 0)
|
|
528
528
|
return i;
|
|
529
529
|
}
|
|
@@ -566,7 +566,7 @@ function Ki(e) {
|
|
|
566
566
|
return ve(e, (o) => {
|
|
567
567
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
568
568
|
}), {
|
|
569
|
-
isTruncated:
|
|
569
|
+
isTruncated: F(() => t.value < n.value)
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
572
|
function Ni() {
|
|
@@ -584,7 +584,7 @@ const Ge = Symbol("schema"), Mi = (e) => {
|
|
|
584
584
|
};
|
|
585
585
|
function Di(e) {
|
|
586
586
|
let t = "";
|
|
587
|
-
const n = R(!1), i = R(null), r =
|
|
587
|
+
const n = R(!1), i = R(null), r = F(() => {
|
|
588
588
|
let a;
|
|
589
589
|
return n.value ? a = !0 : i.value ? a = i.value.hasData || e && me(e) : a = !1, !a;
|
|
590
590
|
});
|
|
@@ -635,19 +635,19 @@ const Y = {
|
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
637
|
setup(e) {
|
|
638
|
-
const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: i } = Y.useStringHelpers(), r =
|
|
638
|
+
const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: i } = Y.useStringHelpers(), r = F(() => t.item.key ?? "json-array-item"), o = F(() => t.item.value ?? t.item), a = F(() => {
|
|
639
639
|
const s = JSON.parse(JSON.stringify(o.value));
|
|
640
640
|
return t.isArrayItem && delete s.name, s;
|
|
641
|
-
}), l =
|
|
641
|
+
}), l = F(() => {
|
|
642
642
|
var s;
|
|
643
643
|
return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
644
644
|
});
|
|
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: _(() => [
|
|
649
649
|
e.isArrayItem ? (m(), $("legend", Pi, [
|
|
650
|
-
O("b", null,
|
|
650
|
+
O("b", null, E(l.value), 1)
|
|
651
651
|
])) : K("", !0),
|
|
652
652
|
(m(!0), $(ce, null, se(Object.keys(a.value), (d, u) => (m(), N(Qt, {
|
|
653
653
|
key: `${r.value}-property-${u}`,
|
|
@@ -685,8 +685,8 @@ 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:
|
|
689
|
-
U(
|
|
688
|
+
default: _(() => [
|
|
689
|
+
U(E(e.item.value || T(t)("baseConfigCard.commonFields.link")), 1)
|
|
690
690
|
]),
|
|
691
691
|
_: 1
|
|
692
692
|
})
|
|
@@ -708,8 +708,8 @@ const Y = {
|
|
|
708
708
|
return m(), N(r, {
|
|
709
709
|
appearance: e.status ? "success" : "neutral"
|
|
710
710
|
}, {
|
|
711
|
-
default:
|
|
712
|
-
U(
|
|
711
|
+
default: _(() => [
|
|
712
|
+
U(E(e.status ? T(t)("baseConfigCard.statusBadge.enabledLabel") : T(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
713
713
|
]),
|
|
714
714
|
_: 1
|
|
715
715
|
}, 8, ["appearance"]);
|
|
@@ -744,10 +744,10 @@ const Y = {
|
|
|
744
744
|
"847b138c": u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
745
745
|
"847687d6": u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
746
746
|
}));
|
|
747
|
-
const n = e, i = t, r = Hn(), o = De(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = Y.useI18n(), c =
|
|
747
|
+
const n = e, i = t, r = Hn(), o = De(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = Y.useI18n(), c = F(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = F(() => !!(n.item.tooltip || o["label-tooltip"])), u = F(() => n.item.type === V.Json || n.item.type === V.JsonArray), g = F(() => n.item.type === V.JsonArray), p = Y.useSubSchema(n.item.key), y = F(() => {
|
|
748
748
|
var q;
|
|
749
749
|
return n.item.type ? n.item.type : (q = p == null ? void 0 : p.value) != null && q.encrypted ? V.Redacted : void 0;
|
|
750
|
-
}), v =
|
|
750
|
+
}), v = F(() => {
|
|
751
751
|
switch (y.value) {
|
|
752
752
|
case V.ID:
|
|
753
753
|
return {
|
|
@@ -880,24 +880,24 @@ 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"), w = 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(w, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
|
|
891
|
+
default: _(() => [
|
|
892
892
|
M(A, {
|
|
893
893
|
text: T(x) ? e.item.label : ""
|
|
894
894
|
}, {
|
|
895
|
-
default:
|
|
895
|
+
default: _(() => [
|
|
896
896
|
O("span", {
|
|
897
897
|
ref_key: "labelContent",
|
|
898
898
|
ref: b,
|
|
899
899
|
class: "label-content"
|
|
900
|
-
},
|
|
900
|
+
}, E(e.item.label), 513)
|
|
901
901
|
]),
|
|
902
902
|
_: 1
|
|
903
903
|
}, 8, ["text"])
|
|
@@ -906,12 +906,12 @@ const Y = {
|
|
|
906
906
|
}, [
|
|
907
907
|
d.value ? {
|
|
908
908
|
name: "tooltip",
|
|
909
|
-
fn:
|
|
909
|
+
fn: _(() => [
|
|
910
910
|
O("div", {
|
|
911
911
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
912
912
|
}, [
|
|
913
913
|
j(q.$slots, "label-tooltip", {}, () => [
|
|
914
|
-
U(
|
|
914
|
+
U(E(e.item.tooltip), 1)
|
|
915
915
|
], !0)
|
|
916
916
|
], 8, tr)
|
|
917
917
|
]),
|
|
@@ -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: _(() => [
|
|
933
933
|
v.value.additionalComponent === "KBadge" ? (m(), $("div", {
|
|
934
934
|
key: 0,
|
|
935
935
|
"data-testid": `${e.item.key}-badge-tags`
|
|
@@ -941,8 +941,8 @@ const Y = {
|
|
|
941
941
|
tooltip: C,
|
|
942
942
|
"truncation-tooltip": ""
|
|
943
943
|
}, {
|
|
944
|
-
default:
|
|
945
|
-
U(
|
|
944
|
+
default: _(() => [
|
|
945
|
+
U(E(C), 1)
|
|
946
946
|
]),
|
|
947
947
|
_: 2
|
|
948
948
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -967,8 +967,8 @@ const Y = {
|
|
|
967
967
|
class: "config-badge",
|
|
968
968
|
"data-testid": `${e.item.key}-badge-method-${k}`
|
|
969
969
|
}, {
|
|
970
|
-
default:
|
|
971
|
-
U(
|
|
970
|
+
default: _(() => [
|
|
971
|
+
U(E(C), 1)
|
|
972
972
|
]),
|
|
973
973
|
_: 2
|
|
974
974
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
@@ -986,12 +986,12 @@ const Y = {
|
|
|
986
986
|
key: 4,
|
|
987
987
|
text: T(L) ? e.item.value : ""
|
|
988
988
|
}, {
|
|
989
|
-
default:
|
|
989
|
+
default: _(() => [
|
|
990
990
|
O("span", {
|
|
991
991
|
ref_key: "textContent",
|
|
992
992
|
ref: S,
|
|
993
993
|
class: de(["attrs-data-text", { truncated: e.truncated }])
|
|
994
|
-
},
|
|
994
|
+
}, E(v.value.text), 3)
|
|
995
995
|
]),
|
|
996
996
|
_: 1
|
|
997
997
|
}, 8, ["text"]))
|
|
@@ -1041,7 +1041,7 @@ const Y = {
|
|
|
1041
1041
|
Pt((r) => ({
|
|
1042
1042
|
eca0976a: `${i.value}ch`
|
|
1043
1043
|
}));
|
|
1044
|
-
const t = e, n =
|
|
1044
|
+
const t = e, n = F(() => t.entityRecord), i = F(() => {
|
|
1045
1045
|
var a;
|
|
1046
1046
|
if (!t.fetcherUrl)
|
|
1047
1047
|
return 0;
|
|
@@ -1055,8 +1055,8 @@ const Y = {
|
|
|
1055
1055
|
M(a, {
|
|
1056
1056
|
appearance: t.requestMethod
|
|
1057
1057
|
}, {
|
|
1058
|
-
default:
|
|
1059
|
-
U(
|
|
1058
|
+
default: _(() => [
|
|
1059
|
+
U(E(t.requestMethod), 1)
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 1
|
|
1062
1062
|
}, 8, ["appearance"]),
|
|
@@ -1214,7 +1214,7 @@ function kt(e, t) {
|
|
|
1214
1214
|
}), n[r] = i;
|
|
1215
1215
|
}), n;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Fr() {
|
|
1218
1218
|
var e = {
|
|
1219
1219
|
scalar: {},
|
|
1220
1220
|
sequence: {},
|
|
@@ -1259,7 +1259,7 @@ ze.prototype.extend = function(t) {
|
|
|
1259
1259
|
throw new re("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1260
1260
|
});
|
|
1261
1261
|
var r = Object.create(ze.prototype);
|
|
1262
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = kt(r, "implicit"), r.compiledExplicit = kt(r, "explicit"), r.compiledTypeMap =
|
|
1262
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = kt(r, "implicit"), r.compiledExplicit = kt(r, "explicit"), r.compiledTypeMap = Fr(r.compiledImplicit, r.compiledExplicit), r;
|
|
1263
1263
|
};
|
|
1264
1264
|
var tn = ze, nn = new ee("tag:yaml.org,2002:str", {
|
|
1265
1265
|
kind: "scalar",
|
|
@@ -1283,7 +1283,7 @@ var tn = ze, nn = new ee("tag:yaml.org,2002:str", {
|
|
|
1283
1283
|
an
|
|
1284
1284
|
]
|
|
1285
1285
|
});
|
|
1286
|
-
function
|
|
1286
|
+
function Er(e) {
|
|
1287
1287
|
if (e === null) return !0;
|
|
1288
1288
|
var t = e.length;
|
|
1289
1289
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
@@ -1296,7 +1296,7 @@ function Lr(e) {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
var ln = new ee("tag:yaml.org,2002:null", {
|
|
1298
1298
|
kind: "scalar",
|
|
1299
|
-
resolve:
|
|
1299
|
+
resolve: Er,
|
|
1300
1300
|
construct: Or,
|
|
1301
1301
|
predicate: Lr,
|
|
1302
1302
|
represent: {
|
|
@@ -1976,7 +1976,7 @@ function Ia(e) {
|
|
|
1976
1976
|
n = e.input.charCodeAt(++e.position);
|
|
1977
1977
|
return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function Fa(e) {
|
|
1980
1980
|
var t, n, i;
|
|
1981
1981
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
1982
1982
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ae(i) && !Ae(i); )
|
|
@@ -1988,7 +1988,7 @@ function Se(e, t, n, i, r) {
|
|
|
1988
1988
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Re === n || kn === n, i && G(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1989
1989
|
for (; Ta(e) || Ia(e); )
|
|
1990
1990
|
G(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1991
|
-
if (l && (l = c || r), (s === 1 || Re === n) && (Be === n || Cn === n ? v = t : v = t + 1, b = e.position - e.lineStart, s === 1 ? l && (Tt(e, b) || $a(e, b, v)) || _a(e, v) ? d = !0 : (a && Sa(e, v) || Aa(e, v) || wa(e, v) ? d = !0 :
|
|
1991
|
+
if (l && (l = c || r), (s === 1 || Re === n) && (Be === n || Cn === n ? v = t : v = t + 1, b = e.position - e.lineStart, s === 1 ? l && (Tt(e, b) || $a(e, b, v)) || _a(e, v) ? d = !0 : (a && Sa(e, v) || Aa(e, v) || wa(e, v) ? d = !0 : Fa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : ka(e, v, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Tt(e, b))), e.tag === null)
|
|
1992
1992
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1993
1993
|
else if (e.tag === "?") {
|
|
1994
1994
|
for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
@@ -2009,7 +2009,7 @@ function Se(e, t, n, i, r) {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function Ea(e) {
|
|
2013
2013
|
var t = e.position, n, i, r, o = !1, a;
|
|
2014
2014
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (G(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
2015
2015
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ae(a); )
|
|
@@ -2046,7 +2046,7 @@ function Tn(e, t) {
|
|
|
2046
2046
|
for (i !== -1 && (n.position = i, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2047
2047
|
n.lineIndent += 1, n.position += 1;
|
|
2048
2048
|
for (; n.position < n.length - 1; )
|
|
2049
|
-
|
|
2049
|
+
Ea(n);
|
|
2050
2050
|
return n.documents;
|
|
2051
2051
|
}
|
|
2052
2052
|
function Oa(e, t, n) {
|
|
@@ -2068,7 +2068,7 @@ function La(e, t) {
|
|
|
2068
2068
|
var Ba = Oa, Ra = La, In = {
|
|
2069
2069
|
loadAll: Ba,
|
|
2070
2070
|
load: Ra
|
|
2071
|
-
},
|
|
2071
|
+
}, Fn = Object.prototype.toString, En = Object.prototype.hasOwnProperty, ct = 65279, Ka = 9, Ie = 10, Na = 13, Ma = 32, ja = 33, Da = 34, Qe = 35, Pa = 37, Ua = 38, qa = 39, Ha = 42, On = 44, Va = 45, Ne = 58, Ya = 61, Wa = 62, Ja = 63, Ga = 64, Ln = 91, Bn = 93, za = 96, Rn = 123, Qa = 124, Kn = 125, te = {};
|
|
2072
2072
|
te[0] = "\\0";
|
|
2073
2073
|
te[7] = "\\a";
|
|
2074
2074
|
te[8] = "\\b";
|
|
@@ -2106,7 +2106,7 @@ function eo(e, t) {
|
|
|
2106
2106
|
var n, i, r, o, a, l, s;
|
|
2107
2107
|
if (t === null) return {};
|
|
2108
2108
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2109
|
-
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s &&
|
|
2109
|
+
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && En.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
2110
2110
|
return n;
|
|
2111
2111
|
}
|
|
2112
2112
|
function to(e) {
|
|
@@ -2121,9 +2121,9 @@ function to(e) {
|
|
|
2121
2121
|
throw new re("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2122
2122
|
return "\\" + n + z.repeat("0", i - t.length) + t;
|
|
2123
2123
|
}
|
|
2124
|
-
var no = 1,
|
|
2124
|
+
var no = 1, Fe = 2;
|
|
2125
2125
|
function io(e) {
|
|
2126
|
-
this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = eo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ?
|
|
2126
|
+
this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = eo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Fe : no, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2127
2127
|
}
|
|
2128
2128
|
function It(e, t) {
|
|
2129
2129
|
for (var n = z.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
@@ -2146,24 +2146,24 @@ function ro(e, t) {
|
|
|
2146
2146
|
function Me(e) {
|
|
2147
2147
|
return e === Ma || e === Ka;
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function Ee(e) {
|
|
2150
2150
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ct || 65536 <= e && e <= 1114111;
|
|
2151
2151
|
}
|
|
2152
|
-
function
|
|
2153
|
-
return
|
|
2152
|
+
function Ft(e) {
|
|
2153
|
+
return Ee(e) && e !== ct && e !== Na && e !== Ie;
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2156
|
-
var i =
|
|
2155
|
+
function Et(e, t, n) {
|
|
2156
|
+
var i = Ft(e), r = i && !Me(e);
|
|
2157
2157
|
return (
|
|
2158
2158
|
// ns-plain-safe
|
|
2159
2159
|
(n ? (
|
|
2160
2160
|
// c = flow-in
|
|
2161
2161
|
i
|
|
2162
|
-
) : i && e !== On && e !== Ln && e !== Bn && e !== Rn && e !== Kn) && e !== Qe && !(t === Ne && !r) ||
|
|
2162
|
+
) : i && e !== On && e !== Ln && e !== Bn && e !== Rn && e !== Kn) && e !== Qe && !(t === Ne && !r) || Ft(t) && !Me(t) && e === Qe || t === Ne && r
|
|
2163
2163
|
);
|
|
2164
2164
|
}
|
|
2165
2165
|
function ao(e) {
|
|
2166
|
-
return
|
|
2166
|
+
return Ee(e) && e !== ct && !Me(e) && e !== Va && e !== Ja && e !== Ne && e !== On && e !== Ln && e !== Bn && e !== Rn && e !== Kn && e !== Qe && e !== Ua && e !== Ha && e !== ja && e !== Qa && e !== Ya && e !== Wa && e !== qa && e !== Da && e !== Pa && e !== Ga && e !== za;
|
|
2167
2167
|
}
|
|
2168
2168
|
function oo(e) {
|
|
2169
2169
|
return !Me(e) && e !== Ne;
|
|
@@ -2181,29 +2181,29 @@ function lo(e, t, n, i, r, o, a, l) {
|
|
|
2181
2181
|
var s, c = 0, d = null, u = !1, g = !1, p = i !== -1, y = -1, v = ao($e(e, 0)) && oo($e(e, e.length - 1));
|
|
2182
2182
|
if (t || a)
|
|
2183
2183
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2184
|
-
if (c = $e(e, s), !
|
|
2184
|
+
if (c = $e(e, s), !Ee(c))
|
|
2185
2185
|
return ke;
|
|
2186
|
-
v = v &&
|
|
2186
|
+
v = v && Et(c, d, l), d = c;
|
|
2187
2187
|
}
|
|
2188
2188
|
else {
|
|
2189
2189
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2190
2190
|
if (c = $e(e, s), c === Ie)
|
|
2191
2191
|
u = !0, p && (g = g || // Foldable line = too long, and not more-indented.
|
|
2192
2192
|
s - y - 1 > i && e[y + 1] !== " ", y = s);
|
|
2193
|
-
else if (!
|
|
2193
|
+
else if (!Ee(c))
|
|
2194
2194
|
return ke;
|
|
2195
|
-
v = v &&
|
|
2195
|
+
v = v && Et(c, d, l), d = c;
|
|
2196
2196
|
}
|
|
2197
2197
|
g = g || p && s - y - 1 > i && e[y + 1] !== " ";
|
|
2198
2198
|
}
|
|
2199
|
-
return !u && !g ? v && !a && !r(e) ? Mn : o ===
|
|
2199
|
+
return !u && !g ? v && !a && !r(e) ? Mn : o === Fe ? ke : Xe : n > 9 && Nn(e) ? ke : a ? o === Fe ? ke : Xe : g ? Dn : jn;
|
|
2200
2200
|
}
|
|
2201
2201
|
function so(e, t, n, i, r) {
|
|
2202
2202
|
e.dump = function() {
|
|
2203
2203
|
if (t.length === 0)
|
|
2204
|
-
return e.quotingType ===
|
|
2204
|
+
return e.quotingType === Fe ? '""' : "''";
|
|
2205
2205
|
if (!e.noCompatMode && (Za.indexOf(t) !== -1 || Xa.test(t)))
|
|
2206
|
-
return e.quotingType ===
|
|
2206
|
+
return e.quotingType === Fe ? '"' + t + '"' : "'" + t + "'";
|
|
2207
2207
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2208
2208
|
function s(c) {
|
|
2209
2209
|
return ro(e, c);
|
|
@@ -2269,7 +2269,7 @@ function Bt(e, t) {
|
|
|
2269
2269
|
}
|
|
2270
2270
|
function uo(e) {
|
|
2271
2271
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
2272
|
-
n = $e(e, r), i = te[n], !i &&
|
|
2272
|
+
n = $e(e, r), i = te[n], !i && Ee(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || to(n);
|
|
2273
2273
|
return t;
|
|
2274
2274
|
}
|
|
2275
2275
|
function fo(e, t, n) {
|
|
@@ -2307,9 +2307,9 @@ function Kt(e, t, n) {
|
|
|
2307
2307
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2308
2308
|
if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2309
2309
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2310
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2310
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, Fn.call(l.represent) === "[object Function]")
|
|
2311
2311
|
i = l.represent(t, s);
|
|
2312
|
-
else if (
|
|
2312
|
+
else if (En.call(l.represent, s))
|
|
2313
2313
|
i = l.represent[s](t, s);
|
|
2314
2314
|
else
|
|
2315
2315
|
throw new re("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
@@ -2321,7 +2321,7 @@ function Kt(e, t, n) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
function fe(e, t, n, i, r, o, a) {
|
|
2323
2323
|
e.tag = null, e.dump = n, Kt(e, n, !1) || Kt(e, n, !0);
|
|
2324
|
-
var l =
|
|
2324
|
+
var l = Fn.call(e.dump), s = i, c;
|
|
2325
2325
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2326
2326
|
var d = l === "[object Object]" || l === "[object Array]", u, g;
|
|
2327
2327
|
if (d && (u = e.duplicates.indexOf(n), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && t > 0) && (r = !1), g && e.usedDuplicates[u])
|
|
@@ -2393,7 +2393,7 @@ var bo = ee, xo = tn, Co = on, ko = dn, Ao = fn, wo = ot, _o = In.load, So = In.
|
|
|
2393
2393
|
omap: vn,
|
|
2394
2394
|
seq: rn,
|
|
2395
2395
|
str: nn
|
|
2396
|
-
},
|
|
2396
|
+
}, Fo = ut("safeLoad", "load"), Eo = ut("safeLoadAll", "loadAll"), Oo = ut("safeDump", "dump"), Lo = {
|
|
2397
2397
|
Type: bo,
|
|
2398
2398
|
Schema: xo,
|
|
2399
2399
|
FAILSAFE_SCHEMA: Co,
|
|
@@ -2405,8 +2405,8 @@ var bo = ee, xo = tn, Co = on, ko = dn, Ao = fn, wo = ot, _o = In.load, So = In.
|
|
|
2405
2405
|
dump: $o,
|
|
2406
2406
|
YAMLException: To,
|
|
2407
2407
|
types: Io,
|
|
2408
|
-
safeLoad:
|
|
2409
|
-
safeLoadAll:
|
|
2408
|
+
safeLoad: Fo,
|
|
2409
|
+
safeLoadAll: Eo,
|
|
2410
2410
|
safeDump: Oo
|
|
2411
2411
|
};
|
|
2412
2412
|
const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */ J({
|
|
@@ -2419,7 +2419,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2419
2419
|
}
|
|
2420
2420
|
},
|
|
2421
2421
|
setup(e) {
|
|
2422
|
-
const t = e, n =
|
|
2422
|
+
const t = e, n = F(() => {
|
|
2423
2423
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2424
2424
|
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Lo.dump(i).trim();
|
|
2425
2425
|
});
|
|
@@ -2499,7 +2499,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2499
2499
|
for (const [c, d] of Object.entries(l))
|
|
2500
2500
|
Array.isArray(d) ? s += r(d, c) : typeof d == "object" ? s += i(d, c) : s += n(d, c);
|
|
2501
2501
|
return s;
|
|
2502
|
-
}, a =
|
|
2502
|
+
}, a = F(() => {
|
|
2503
2503
|
var u, g, p, y, v, b, S;
|
|
2504
2504
|
const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x != null)), s = t.entityRecord.config ? Object.fromEntries(Object.entries((u = t.entityRecord) == null ? void 0 : u.config).filter(([, x]) => x != null)) : void 0;
|
|
2505
2505
|
if (s && (l.config = s), Object.keys(l).length === 0)
|
|
@@ -2591,7 +2591,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2591
2591
|
}
|
|
2592
2592
|
},
|
|
2593
2593
|
setup(e) {
|
|
2594
|
-
const t = e, n = De(), { i18n: { t: i } } = Y.useI18n(), r = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o =
|
|
2594
|
+
const t = e, n = De(), { i18n: { t: i } } = Y.useI18n(), r = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = F(() => {
|
|
2595
2595
|
if (!t.record)
|
|
2596
2596
|
return t.record;
|
|
2597
2597
|
let a = t.record;
|
|
@@ -2606,15 +2606,15 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2606
2606
|
class: de(`config-card-details-${s}-props`),
|
|
2607
2607
|
"data-testid": `config-card-details-${s}-props`
|
|
2608
2608
|
}, [
|
|
2609
|
-
s !== "basic" ? (m(), $("div", Mo,
|
|
2609
|
+
s !== "basic" ? (m(), $("div", Mo, E(s === "advanced" ? T(i)("baseConfigCard.sections.advanced") : T(i)("baseConfigCard.sections.plugin")), 1)) : K("", !0),
|
|
2610
2610
|
(m(!0), $(ce, null, se(e.propertyCollections[s], (c) => (m(), N(Qt, {
|
|
2611
2611
|
key: c.key,
|
|
2612
2612
|
item: c
|
|
2613
2613
|
}, _e({
|
|
2614
|
-
label:
|
|
2614
|
+
label: _(() => [
|
|
2615
2615
|
j(a.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2616
2616
|
]),
|
|
2617
|
-
[c.key]:
|
|
2617
|
+
[c.key]: _(({ 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: _(() => [
|
|
2628
2628
|
j(a.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
|
|
2629
2629
|
]),
|
|
2630
2630
|
key: "0"
|
|
@@ -2754,12 +2754,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2754
2754
|
default: "h2"
|
|
2755
2755
|
}
|
|
2756
2756
|
},
|
|
2757
|
-
emits: ["loading", "fetch:success", "fetch:error"],
|
|
2757
|
+
emits: ["loading", "fetch:success", "fetch:error", "configFormatChange"],
|
|
2758
2758
|
setup(e, { emit: t }) {
|
|
2759
|
-
var
|
|
2759
|
+
var w;
|
|
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((w = i.config) == null ? void 0 : w.axiosRequestConfig), s = [
|
|
2763
2763
|
{
|
|
2764
2764
|
label: r("baseConfigCard.general.structuredFormat"),
|
|
2765
2765
|
value: "structured",
|
|
@@ -2779,7 +2779,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2779
2779
|
value: "terraform"
|
|
2780
2780
|
});
|
|
2781
2781
|
const c = s[0].value, d = R(c), u = (f) => {
|
|
2782
|
-
d.value = f == null ? void 0 : f.value;
|
|
2782
|
+
d.value = f == null ? void 0 : f.value, n("configFormatChange", d.value);
|
|
2783
2783
|
}, g = (f, h) => {
|
|
2784
2784
|
localStorage.setItem(f, h);
|
|
2785
2785
|
};
|
|
@@ -2832,7 +2832,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2832
2832
|
// the last property displayed
|
|
2833
2833
|
section: le.Basic
|
|
2834
2834
|
}
|
|
2835
|
-
}, y = R(!1), v = R(!1), b = R(""), S = R({}), x =
|
|
2835
|
+
}, y = R(!1), v = R(!1), b = R(""), S = R({}), x = F(() => {
|
|
2836
2836
|
var C, k, H;
|
|
2837
2837
|
if (!S.value)
|
|
2838
2838
|
return [];
|
|
@@ -2857,7 +2857,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2857
2857
|
section: W.section ?? ((Z == null ? void 0 : Z.section) || le.Advanced)
|
|
2858
2858
|
};
|
|
2859
2859
|
}).filter((P) => !P.hidden && P.key !== i.pluginConfigKey);
|
|
2860
|
-
}), L =
|
|
2860
|
+
}), L = F(() => {
|
|
2861
2861
|
var k, H;
|
|
2862
2862
|
if (!S.value || !i.pluginConfigKey)
|
|
2863
2863
|
return [];
|
|
@@ -2882,17 +2882,17 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2882
2882
|
section: le.Plugin
|
|
2883
2883
|
};
|
|
2884
2884
|
}).filter((P) => !P.hidden);
|
|
2885
|
-
}), q =
|
|
2885
|
+
}), q = F(() => {
|
|
2886
2886
|
var f, h, C, k;
|
|
2887
2887
|
return {
|
|
2888
2888
|
basic: (f = x.value) == null ? void 0 : f.filter((H) => H.section === le.Basic),
|
|
2889
2889
|
advanced: (h = x.value) == null ? void 0 : h.filter((H) => H.section === le.Advanced),
|
|
2890
2890
|
plugin: (k = L.value) == null ? void 0 : k.concat((C = x.value) == null ? void 0 : C.filter((H) => H.section === le.Plugin))
|
|
2891
2891
|
};
|
|
2892
|
-
}), ne =
|
|
2892
|
+
}), ne = F(() => {
|
|
2893
2893
|
const f = [];
|
|
2894
2894
|
return q.value.basic.length && f.push("basic"), q.value.advanced.length && f.push("advanced"), q.value.plugin.length && f.push("plugin"), f;
|
|
2895
|
-
}), A =
|
|
2895
|
+
}), A = F(() => {
|
|
2896
2896
|
var h, C;
|
|
2897
2897
|
let f = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
2898
2898
|
return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((h = i.config) == null ? void 0 : h.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (C = i.config) != null && C.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
|
|
@@ -2924,15 +2924,15 @@ 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: _(() => [
|
|
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:
|
|
2935
|
-
U(
|
|
2934
|
+
default: _(() => [
|
|
2935
|
+
U(E(e.label), 1)
|
|
2936
2936
|
]),
|
|
2937
2937
|
_: 1
|
|
2938
2938
|
}),
|
|
@@ -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: _(() => [
|
|
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: _(() => [
|
|
2966
2966
|
y.value ? (m(), N(P, {
|
|
2967
2967
|
key: 0,
|
|
2968
2968
|
"data-testid": "config-card-loader",
|
|
@@ -2973,8 +2973,8 @@ 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:
|
|
2977
|
-
O("h3", null,
|
|
2976
|
+
default: _(() => [
|
|
2977
|
+
O("h3", null, E(b.value), 1)
|
|
2978
2978
|
]),
|
|
2979
2979
|
_: 1
|
|
2980
2980
|
})) : K("", !0),
|
|
@@ -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: _(({ row: Z, rowValue: Oe }) => [
|
|
2995
2995
|
j(f.$slots, W, {
|
|
2996
2996
|
row: Z,
|
|
2997
2997
|
rowValue: Oe
|
|
@@ -3005,10 +3005,10 @@ 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: _(() => [
|
|
3009
3009
|
O("span", Po, [
|
|
3010
3010
|
j(f.$slots, "title", {}, () => [
|
|
3011
|
-
U(
|
|
3011
|
+
U(E(T(r)("baseConfigCard.title")), 1)
|
|
3012
3012
|
], !0)
|
|
3013
3013
|
])
|
|
3014
3014
|
]),
|
|
@@ -3017,7 +3017,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3017
3017
|
]), 1032, ["title-tag"]);
|
|
3018
3018
|
};
|
|
3019
3019
|
}
|
|
3020
|
-
}), ds = /* @__PURE__ */ oe(Vo, [["__scopeId", "data-v-
|
|
3020
|
+
}), ds = /* @__PURE__ */ oe(Vo, [["__scopeId", "data-v-8dfcd755"]]), Yo = ["novalidate"], Wo = /* @__PURE__ */ J({
|
|
3021
3021
|
__name: "EntityBaseForm",
|
|
3022
3022
|
props: {
|
|
3023
3023
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -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", "codeBlockTabChange"],
|
|
3134
3134
|
setup(e, { expose: t, emit: n }) {
|
|
3135
3135
|
var ne;
|
|
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 =
|
|
3137
|
-
var
|
|
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 = F(() => !!r.editId), u = R(!1), g = R(""), p = F(() => r.canSubmit === !1 || r.isReadonly), y = R(!1), v = F(() => {
|
|
3137
|
+
var w, 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, ((w = r.config) == null ? void 0 : w.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 w = l(A);
|
|
3171
|
+
g.value = w.startsWith("code") ? a("baseForm.errors.edit") : w, 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, w) => {
|
|
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: _(() => [
|
|
3183
3183
|
c.value ? (m(), N(f, {
|
|
3184
3184
|
key: 0,
|
|
3185
3185
|
type: "form"
|
|
@@ -3190,8 +3190,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3190
3190
|
"icon-variant": "error",
|
|
3191
3191
|
onClickAction: S
|
|
3192
3192
|
}, {
|
|
3193
|
-
default:
|
|
3194
|
-
O("h3", null,
|
|
3193
|
+
default: _(() => [
|
|
3194
|
+
O("h3", null, E(g.value), 1)
|
|
3195
3195
|
]),
|
|
3196
3196
|
_: 1
|
|
3197
3197
|
}, 8, ["action-button-text"])) : (m(), $("form", {
|
|
@@ -3221,10 +3221,10 @@ 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: w[0] || (w[0] = (B) => b())
|
|
3225
3225
|
}, {
|
|
3226
|
-
default:
|
|
3227
|
-
U(
|
|
3226
|
+
default: _(() => [
|
|
3227
|
+
U(E(T(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3228
3228
|
]),
|
|
3229
3229
|
_: 1
|
|
3230
3230
|
}, 8, ["data-testid"]),
|
|
@@ -3233,10 +3233,10 @@ 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: w[1] || (w[1] = (B) => !!e.actionTeleportTarget && x())
|
|
3237
3237
|
}, {
|
|
3238
|
-
default:
|
|
3239
|
-
U(
|
|
3238
|
+
default: _(() => [
|
|
3239
|
+
U(E(e.cancelButtonText ?? T(a)("baseForm.actions.cancel")), 1)
|
|
3240
3240
|
]),
|
|
3241
3241
|
_: 1
|
|
3242
3242
|
}, 8, ["data-testid", "disabled"]),
|
|
@@ -3245,10 +3245,10 @@ 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: w[2] || (w[2] = (B) => !!e.actionTeleportTarget && L())
|
|
3249
3249
|
}, {
|
|
3250
|
-
default:
|
|
3251
|
-
U(
|
|
3250
|
+
default: _(() => [
|
|
3251
|
+
U(E(e.saveButtonText ?? T(a)("baseForm.actions.save")), 1)
|
|
3252
3252
|
]),
|
|
3253
3253
|
_: 1
|
|
3254
3254
|
}, 8, ["data-testid", "disabled"])
|
|
@@ -3263,15 +3263,16 @@ 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: w[4] || (w[4] = (B) => b())
|
|
3267
3267
|
}, {
|
|
3268
|
-
default:
|
|
3269
|
-
O("div", null,
|
|
3268
|
+
default: _(() => [
|
|
3269
|
+
O("div", null, E(T(a)("baseForm.configuration.message")), 1),
|
|
3270
3270
|
M(H, {
|
|
3271
3271
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3272
|
-
tabs: q.value
|
|
3272
|
+
tabs: q.value,
|
|
3273
|
+
onChange: w[3] || (w[3] = (B) => i("codeBlockTabChange", B.replace("#", "")))
|
|
3273
3274
|
}, {
|
|
3274
|
-
json:
|
|
3275
|
+
json: _(() => [
|
|
3275
3276
|
M(Zt, {
|
|
3276
3277
|
config: e.config,
|
|
3277
3278
|
"entity-record": r.formFields,
|
|
@@ -3279,12 +3280,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3279
3280
|
"request-method": r.editId ? "put" : "post"
|
|
3280
3281
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3281
3282
|
]),
|
|
3282
|
-
yaml:
|
|
3283
|
+
yaml: _(() => [
|
|
3283
3284
|
M(Pn, {
|
|
3284
3285
|
"entity-record": r.formFields
|
|
3285
3286
|
}, null, 8, ["entity-record"])
|
|
3286
3287
|
]),
|
|
3287
|
-
terraform:
|
|
3288
|
+
terraform: _(() => [
|
|
3288
3289
|
M(Un, {
|
|
3289
3290
|
"entity-record": r.formFields,
|
|
3290
3291
|
"entity-type": e.entityType
|
|
@@ -3300,7 +3301,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3300
3301
|
});
|
|
3301
3302
|
};
|
|
3302
3303
|
}
|
|
3303
|
-
}), fs = /* @__PURE__ */ oe(Wo, [["__scopeId", "data-v-
|
|
3304
|
+
}), fs = /* @__PURE__ */ oe(Wo, [["__scopeId", "data-v-7c5c8d6b"]]), Jo = ["data-truncate"], Go = /* @__PURE__ */ J({
|
|
3304
3305
|
__name: "EntityBaseTableCell",
|
|
3305
3306
|
props: {
|
|
3306
3307
|
keyName: {
|
|
@@ -3317,17 +3318,17 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3317
3318
|
}
|
|
3318
3319
|
},
|
|
3319
3320
|
setup(e) {
|
|
3320
|
-
const t = e, n =
|
|
3321
|
+
const t = e, n = F(() => {
|
|
3321
3322
|
var b;
|
|
3322
3323
|
return ((b = t.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3323
|
-
}), i =
|
|
3324
|
+
}), i = F(() => {
|
|
3324
3325
|
var b;
|
|
3325
3326
|
return ((b = n.value) == null ? void 0 : b.querySelector('[data-truncate="true"]')) || null;
|
|
3326
|
-
}), r =
|
|
3327
|
+
}), r = F(() => {
|
|
3327
3328
|
var S, x;
|
|
3328
3329
|
const b = (S = t.rowEl) == null ? void 0 : S.querySelectorAll("td");
|
|
3329
3330
|
return b ? ((x = b[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
|
|
3330
|
-
}), o =
|
|
3331
|
+
}), o = F(() => r.value || t.tooltip);
|
|
3331
3332
|
let a;
|
|
3332
3333
|
const l = () => {
|
|
3333
3334
|
a && (a.disconnect(), a = void 0);
|
|
@@ -3339,7 +3340,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3339
3340
|
b -= (parseFloat(q.paddingLeft) || 0) + (parseFloat(q.paddingRight) || 0);
|
|
3340
3341
|
}
|
|
3341
3342
|
d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = b, g.value = ((L = c.value) == null ? void 0 : L.innerText) || "";
|
|
3342
|
-
}, c = R({}), d = R(0), u = R(0), g = R(""), p =
|
|
3343
|
+
}, c = R({}), d = R(0), u = R(0), g = R(""), p = F(() => [i.value, n.value]), y = ve(
|
|
3343
3344
|
p,
|
|
3344
3345
|
(b) => {
|
|
3345
3346
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3353,7 +3354,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3353
3354
|
}
|
|
3354
3355
|
},
|
|
3355
3356
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3356
|
-
), v =
|
|
3357
|
+
), v = F(() => o.value ? d.value > u.value : !1);
|
|
3357
3358
|
return tt(() => {
|
|
3358
3359
|
s();
|
|
3359
3360
|
}), Jn(() => {
|
|
@@ -3374,7 +3375,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3374
3375
|
placement: "bottom-start",
|
|
3375
3376
|
text: v.value ? g.value : ""
|
|
3376
3377
|
}, {
|
|
3377
|
-
default:
|
|
3378
|
+
default: _(() => [
|
|
3378
3379
|
j(b.$slots, "default", {}, void 0, !0)
|
|
3379
3380
|
]),
|
|
3380
3381
|
_: 3
|
|
@@ -3534,7 +3535,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3534
3535
|
},
|
|
3535
3536
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3536
3537
|
setup(e, { emit: t }) {
|
|
3537
|
-
const n = e, i = t, { i18n: { t: r } } = Y.useI18n(), o =
|
|
3538
|
+
const n = e, i = t, { i18n: { t: r } } = Y.useI18n(), o = F(() => {
|
|
3538
3539
|
var h, C;
|
|
3539
3540
|
return typeof n.errorMessage == "string" ? {
|
|
3540
3541
|
hasError: !!n.errorMessage,
|
|
@@ -3545,7 +3546,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3545
3546
|
title: (h = n.errorMessage) == null ? void 0 : h.title,
|
|
3546
3547
|
message: (C = n.errorMessage) == null ? void 0 : C.message
|
|
3547
3548
|
};
|
|
3548
|
-
}), a =
|
|
3549
|
+
}), a = F(() => n.cacheIdentifier || n.preferencesStorageKey), l = F(() => {
|
|
3549
3550
|
const h = [];
|
|
3550
3551
|
return Object.keys(n.tableHeaders).forEach((k) => {
|
|
3551
3552
|
const H = n.tableHeaders[k];
|
|
@@ -3582,21 +3583,21 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3582
3583
|
i("empty-state-cta-clicked"), y();
|
|
3583
3584
|
}, y = () => {
|
|
3584
3585
|
i("clear-search-input");
|
|
3585
|
-
}, v =
|
|
3586
|
+
}, v = F(() => n.disableRowClick ? void 0 : (h, C) => {
|
|
3586
3587
|
i("click:row", C);
|
|
3587
3588
|
}), b = (h) => {
|
|
3588
3589
|
i("sort", h);
|
|
3589
|
-
}, { hideTableToolbar: S, handleStateChange: x } = Y.useTableState(() => n.query), { setTablePreferences: L, getTablePreferences: q } = di(), ne = R(q(a.value, n.defaultTablePreferences)), A =
|
|
3590
|
+
}, { hideTableToolbar: S, handleStateChange: x } = Y.useTableState(() => n.query), { setTablePreferences: L, getTablePreferences: q } = di(), ne = R(q(a.value, n.defaultTablePreferences)), A = F(() => {
|
|
3590
3591
|
const h = q(a.value);
|
|
3591
3592
|
return {
|
|
3592
3593
|
...n.initialFetcherParams,
|
|
3593
3594
|
...h
|
|
3594
3595
|
};
|
|
3595
|
-
}),
|
|
3596
|
+
}), w = (h) => {
|
|
3596
3597
|
ne.value = h, l.value.forEach((C) => {
|
|
3597
3598
|
!("hidable" in C) || !ne.value.columnVisibility || C.hidable === !1 && (ne.value.columnVisibility[C.key] = !0);
|
|
3598
3599
|
}), a.value && L(a.value, h);
|
|
3599
|
-
}, f =
|
|
3600
|
+
}, f = F(() => ({
|
|
3600
3601
|
disablePageJump: n.disablePaginationPageJump,
|
|
3601
3602
|
offset: n.paginationType === "offset",
|
|
3602
3603
|
...n.paginationAttributes
|
|
@@ -3608,7 +3609,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3608
3609
|
title: e.title,
|
|
3609
3610
|
"title-tag": e.titleTag
|
|
3610
3611
|
}, {
|
|
3611
|
-
default:
|
|
3612
|
+
default: _(() => [
|
|
3612
3613
|
M(k, {
|
|
3613
3614
|
ref_key: "tableRefs",
|
|
3614
3615
|
ref: c,
|
|
@@ -3643,9 +3644,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3643
3644
|
"onRow:click": v.value,
|
|
3644
3645
|
onSort: C[0] || (C[0] = (P) => b(P)),
|
|
3645
3646
|
onState: g,
|
|
3646
|
-
"onUpdate:tablePreferences":
|
|
3647
|
+
"onUpdate:tablePreferences": w
|
|
3647
3648
|
}, _e({
|
|
3648
|
-
toolbar:
|
|
3649
|
+
toolbar: _(() => [
|
|
3649
3650
|
O("div", Qo, [
|
|
3650
3651
|
j(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3651
3652
|
h.$slots["toolbar-button"] ? (m(), $("div", Zo, [
|
|
@@ -3653,33 +3654,33 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3653
3654
|
])) : K("", !0)
|
|
3654
3655
|
])
|
|
3655
3656
|
]),
|
|
3656
|
-
"action-items":
|
|
3657
|
+
"action-items": _(({ row: P }) => [
|
|
3657
3658
|
j(h.$slots, "actions", { row: P }, void 0, !0)
|
|
3658
3659
|
]),
|
|
3659
3660
|
_: 2
|
|
3660
3661
|
}, [
|
|
3661
3662
|
h.$slots["empty-state"] ? {
|
|
3662
3663
|
name: "empty-state",
|
|
3663
|
-
fn:
|
|
3664
|
+
fn: _(() => [
|
|
3664
3665
|
j(h.$slots, "empty-state", {}, void 0, !0)
|
|
3665
3666
|
]),
|
|
3666
3667
|
key: "0"
|
|
3667
3668
|
} : void 0,
|
|
3668
3669
|
se(e.tableHeaders, (P, B) => ({
|
|
3669
3670
|
name: B,
|
|
3670
|
-
fn:
|
|
3671
|
+
fn: _(({ row: Q, rowValue: W }) => [
|
|
3671
3672
|
M(zo, {
|
|
3672
3673
|
"key-name": String(B),
|
|
3673
3674
|
"row-el": d(Q),
|
|
3674
3675
|
tooltip: P.tooltip
|
|
3675
3676
|
}, {
|
|
3676
|
-
default:
|
|
3677
|
+
default: _(() => [
|
|
3677
3678
|
j(h.$slots, B, {
|
|
3678
3679
|
row: Q,
|
|
3679
3680
|
rowKey: e.rowKey,
|
|
3680
3681
|
rowValue: W
|
|
3681
3682
|
}, () => [
|
|
3682
|
-
U(
|
|
3683
|
+
U(E(W), 1)
|
|
3683
3684
|
], !0)
|
|
3684
3685
|
]),
|
|
3685
3686
|
_: 2
|
|
@@ -3688,7 +3689,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3688
3689
|
})),
|
|
3689
3690
|
e.query ? void 0 : {
|
|
3690
3691
|
name: "empty-state-action-icon",
|
|
3691
|
-
fn:
|
|
3692
|
+
fn: _(() => [
|
|
3692
3693
|
M(T(Ht))
|
|
3693
3694
|
]),
|
|
3694
3695
|
key: "1"
|
|
@@ -3747,7 +3748,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3747
3748
|
},
|
|
3748
3749
|
emits: ["cancel", "proceed"],
|
|
3749
3750
|
setup(e, { emit: t }) {
|
|
3750
|
-
const { i18nT: n } = Y.useI18n(), i = e, r = t, o =
|
|
3751
|
+
const { i18nT: n } = Y.useI18n(), i = e, r = t, o = F(() => i.needConfirm ? i.entityName : ""), a = () => {
|
|
3751
3752
|
r("cancel");
|
|
3752
3753
|
}, l = () => {
|
|
3753
3754
|
r("proceed");
|
|
@@ -3765,11 +3766,11 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3765
3766
|
onCancel: a,
|
|
3766
3767
|
onProceed: l
|
|
3767
3768
|
}, {
|
|
3768
|
-
default:
|
|
3769
|
+
default: _(() => [
|
|
3769
3770
|
e.error ? (m(), $("div", tl, [
|
|
3770
3771
|
M(d, { appearance: "danger" }, {
|
|
3771
|
-
default:
|
|
3772
|
-
U(
|
|
3772
|
+
default: _(() => [
|
|
3773
|
+
U(E(e.error), 1)
|
|
3773
3774
|
]),
|
|
3774
3775
|
_: 1
|
|
3775
3776
|
})
|
|
@@ -3779,22 +3780,22 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3779
3780
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3780
3781
|
tag: "p"
|
|
3781
3782
|
}, _e({
|
|
3782
|
-
entityType:
|
|
3783
|
-
U(
|
|
3783
|
+
entityType: _(() => [
|
|
3784
|
+
U(E(i.entityType), 1)
|
|
3784
3785
|
]),
|
|
3785
3786
|
_: 2
|
|
3786
3787
|
}, [
|
|
3787
3788
|
i.entityName ? {
|
|
3788
3789
|
name: "entityName",
|
|
3789
|
-
fn:
|
|
3790
|
-
O("strong", null,
|
|
3790
|
+
fn: _(() => [
|
|
3791
|
+
O("strong", null, E(i.entityName), 1)
|
|
3791
3792
|
]),
|
|
3792
3793
|
key: "0"
|
|
3793
3794
|
} : void 0
|
|
3794
3795
|
]), 1032, ["keypath"]),
|
|
3795
3796
|
i.description || s.$slots.description ? (m(), $("div", nl, [
|
|
3796
3797
|
j(s.$slots, "description", {}, () => [
|
|
3797
|
-
O("p", null,
|
|
3798
|
+
O("p", null, E(i.description), 1)
|
|
3798
3799
|
], !0)
|
|
3799
3800
|
])) : K("", !0)
|
|
3800
3801
|
]),
|
|
@@ -3864,25 +3865,25 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3864
3865
|
},
|
|
3865
3866
|
emits: ["update:modelValue"],
|
|
3866
3867
|
setup(e, { emit: t }) {
|
|
3867
|
-
const { i18n: { t: n } } = Y.useI18n(), i = e, r = t, o = R(!1), a = R({}), l = R(/* @__PURE__ */ new Set()), s =
|
|
3868
|
+
const { i18n: { t: n } } = Y.useI18n(), i = e, r = t, o = R(!1), a = R({}), l = R(/* @__PURE__ */ new Set()), s = F(() => {
|
|
3868
3869
|
const A = [];
|
|
3869
|
-
return new URLSearchParams(i.modelValue).forEach((
|
|
3870
|
-
|
|
3870
|
+
return new URLSearchParams(i.modelValue).forEach((w, f) => {
|
|
3871
|
+
w !== "" && A.push(f);
|
|
3871
3872
|
}), A;
|
|
3872
|
-
}), c =
|
|
3873
|
+
}), c = F(() => {
|
|
3873
3874
|
const A = i.config.fields;
|
|
3874
|
-
return Object.keys(A).filter((
|
|
3875
|
+
return Object.keys(A).filter((w) => {
|
|
3875
3876
|
var f;
|
|
3876
|
-
return (f = A == null ? void 0 : A[
|
|
3877
|
-
}).map((
|
|
3878
|
-
label: A[
|
|
3879
|
-
value:
|
|
3877
|
+
return (f = A == null ? void 0 : A[w]) == null ? void 0 : f.searchable;
|
|
3878
|
+
}).map((w) => ({
|
|
3879
|
+
label: A[w].label || w,
|
|
3880
|
+
value: w,
|
|
3880
3881
|
expanded: !1
|
|
3881
3882
|
}));
|
|
3882
3883
|
});
|
|
3883
3884
|
ve(() => i.modelValue, (A) => {
|
|
3884
|
-
a.value = {}, new URLSearchParams(A).forEach((
|
|
3885
|
-
a.value[f] =
|
|
3885
|
+
a.value = {}, new URLSearchParams(A).forEach((w, f) => {
|
|
3886
|
+
a.value[f] = w;
|
|
3886
3887
|
});
|
|
3887
3888
|
});
|
|
3888
3889
|
const d = () => {
|
|
@@ -3894,11 +3895,11 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3894
3895
|
}, p = () => {
|
|
3895
3896
|
g("");
|
|
3896
3897
|
}, y = (A) => `filter-${A}`, v = (A) => {
|
|
3897
|
-
var
|
|
3898
|
-
return (((f = (
|
|
3898
|
+
var w, f;
|
|
3899
|
+
return (((f = (w = i.config.schema) == null ? void 0 : w[A]) == null ? void 0 : f.values) ?? []).map((h) => typeof h == "string" ? { value: h, label: h } : h);
|
|
3899
3900
|
}, b = (A) => {
|
|
3900
|
-
var
|
|
3901
|
-
return ((f = (
|
|
3901
|
+
var w, f;
|
|
3902
|
+
return ((f = (w = i.config.schema) == null ? void 0 : w[A]) == null ? void 0 : f.type) ?? "text";
|
|
3902
3903
|
}, S = (A) => {
|
|
3903
3904
|
a.value = {
|
|
3904
3905
|
...a.value,
|
|
@@ -3907,17 +3908,17 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3907
3908
|
}, x = () => {
|
|
3908
3909
|
a.value = {}, L(!0);
|
|
3909
3910
|
}, L = (A = !1) => {
|
|
3910
|
-
const
|
|
3911
|
-
A && (o.value = !1), r("update:modelValue", new URLSearchParams(
|
|
3911
|
+
const w = Object.keys(a.value).reduce((f, h) => (a.value[h] && (f[h] = `${a.value[h]}`), f), {});
|
|
3912
|
+
A && (o.value = !1), r("update:modelValue", new URLSearchParams(w).toString());
|
|
3912
3913
|
}, q = (A) => {
|
|
3913
|
-
var
|
|
3914
|
-
return !!((f = (
|
|
3915
|
-
}, ne = (A,
|
|
3914
|
+
var w, f;
|
|
3915
|
+
return !!((f = (w = i.config.schema) == null ? void 0 : w[A]) != null && f.filterFunction);
|
|
3916
|
+
}, ne = (A, w) => {
|
|
3916
3917
|
var h;
|
|
3917
3918
|
const f = (h = i.config.schema) == null ? void 0 : h[A];
|
|
3918
|
-
return (f == null ? void 0 : f.filterFunction) === void 0 ? !0 : f.filterFunction(
|
|
3919
|
+
return (f == null ? void 0 : f.filterFunction) === void 0 ? !0 : f.filterFunction(w);
|
|
3919
3920
|
};
|
|
3920
|
-
return (A,
|
|
3921
|
+
return (A, w) => {
|
|
3921
3922
|
const f = D("KInput"), h = D("KButton"), C = D("KSelect");
|
|
3922
3923
|
return e.config.isExactMatch ? (m(), N(f, {
|
|
3923
3924
|
key: 0,
|
|
@@ -3928,10 +3929,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3928
3929
|
placeholder: e.config.placeholder,
|
|
3929
3930
|
"onUpdate:modelValue": g
|
|
3930
3931
|
}, {
|
|
3931
|
-
before:
|
|
3932
|
+
before: _(() => [
|
|
3932
3933
|
M(Nt)
|
|
3933
3934
|
]),
|
|
3934
|
-
after:
|
|
3935
|
+
after: _(() => [
|
|
3935
3936
|
be(M(T(ni), {
|
|
3936
3937
|
class: "kong-ui-entity-filter-clear",
|
|
3937
3938
|
role: "button",
|
|
@@ -3948,9 +3949,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3948
3949
|
"data-testid": "filter-button",
|
|
3949
3950
|
onClick: d
|
|
3950
3951
|
}, {
|
|
3951
|
-
default:
|
|
3952
|
+
default: _(() => [
|
|
3952
3953
|
M(Nt),
|
|
3953
|
-
U(" " +
|
|
3954
|
+
U(" " + E(T(n)("filter.filterButtonText")) + " " + E(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3954
3955
|
]),
|
|
3955
3956
|
_: 1
|
|
3956
3957
|
}),
|
|
@@ -3975,7 +3976,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3975
3976
|
onClick: (B) => u(k.value),
|
|
3976
3977
|
onKeydown: Gn((B) => u(k.value), ["enter"])
|
|
3977
3978
|
}, [
|
|
3978
|
-
U(
|
|
3979
|
+
U(E(k.label) + " ", 1),
|
|
3979
3980
|
be(O("span", pl, null, 512), [
|
|
3980
3981
|
[xe, s.value.includes(k.value)]
|
|
3981
3982
|
]),
|
|
@@ -3988,7 +3989,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3988
3989
|
O("label", {
|
|
3989
3990
|
class: "menu-item-label",
|
|
3990
3991
|
for: y(k.value)
|
|
3991
|
-
},
|
|
3992
|
+
}, E(T(n)("filter.fieldLabel")), 9, hl),
|
|
3992
3993
|
((P = (H = e.config.schema) == null ? void 0 : H[k.value]) == null ? void 0 : P.type) === "select" ? (m(), N(C, {
|
|
3993
3994
|
key: 0,
|
|
3994
3995
|
id: y(k.value),
|
|
@@ -4015,10 +4016,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4015
4016
|
appearance: "tertiary",
|
|
4016
4017
|
"data-testid": "apply-filter",
|
|
4017
4018
|
size: "small",
|
|
4018
|
-
onClick:
|
|
4019
|
+
onClick: w[0] || (w[0] = (B) => L(!0))
|
|
4019
4020
|
}, {
|
|
4020
|
-
default:
|
|
4021
|
-
U(
|
|
4021
|
+
default: _(() => [
|
|
4022
|
+
U(E(T(n)("filter.applyButtonText")), 1)
|
|
4022
4023
|
]),
|
|
4023
4024
|
_: 1
|
|
4024
4025
|
}),
|
|
@@ -4028,8 +4029,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4028
4029
|
size: "small",
|
|
4029
4030
|
onClick: (B) => S(k.value)
|
|
4030
4031
|
}, {
|
|
4031
|
-
default:
|
|
4032
|
-
U(
|
|
4032
|
+
default: _(() => [
|
|
4033
|
+
U(E(T(n)("filter.clearButtonText")), 1)
|
|
4033
4034
|
]),
|
|
4034
4035
|
_: 2
|
|
4035
4036
|
}, 1032, ["onClick"])
|
|
@@ -4044,8 +4045,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4044
4045
|
size: "small",
|
|
4045
4046
|
onClick: x
|
|
4046
4047
|
}, {
|
|
4047
|
-
default:
|
|
4048
|
-
U(
|
|
4048
|
+
default: _(() => [
|
|
4049
|
+
U(E(T(n)("filter.clearAllButtonText")), 1)
|
|
4049
4050
|
]),
|
|
4050
4051
|
_: 1
|
|
4051
4052
|
})
|
|
@@ -4088,9 +4089,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4088
4089
|
},
|
|
4089
4090
|
emits: ["cancel", "proceed"],
|
|
4090
4091
|
setup(e, { emit: t }) {
|
|
4091
|
-
const { i18n: { t: n }, i18nT: i } = Y.useI18n(), r = e, o = t, a = R(!1), l =
|
|
4092
|
+
const { i18n: { t: n }, i18nT: i } = Y.useI18n(), r = e, o = t, a = R(!1), l = F(
|
|
4092
4093
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4093
|
-
), s =
|
|
4094
|
+
), s = F(
|
|
4094
4095
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4095
4096
|
), c = () => o("cancel"), d = async () => {
|
|
4096
4097
|
if (r.onConfirm) {
|
|
@@ -4116,16 +4117,16 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4116
4117
|
onCancel: c,
|
|
4117
4118
|
onProceed: d
|
|
4118
4119
|
}, {
|
|
4119
|
-
default:
|
|
4120
|
+
default: _(() => [
|
|
4120
4121
|
M(T(i), {
|
|
4121
4122
|
keypath: `toggleModal.${r.action}.message`,
|
|
4122
4123
|
scope: "global"
|
|
4123
4124
|
}, {
|
|
4124
|
-
entityType:
|
|
4125
|
-
U(
|
|
4125
|
+
entityType: _(() => [
|
|
4126
|
+
U(E(e.entityType), 1)
|
|
4126
4127
|
]),
|
|
4127
|
-
entityName:
|
|
4128
|
-
O("strong", null,
|
|
4128
|
+
entityName: _(() => [
|
|
4129
|
+
O("strong", null, E(e.entityName), 1)
|
|
4129
4130
|
]),
|
|
4130
4131
|
_: 1
|
|
4131
4132
|
}, 8, ["keypath"])
|
|
@@ -4157,7 +4158,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4157
4158
|
}
|
|
4158
4159
|
},
|
|
4159
4160
|
setup(e) {
|
|
4160
|
-
const t = e, n = R(void 0), i =
|
|
4161
|
+
const t = e, n = R(void 0), i = F(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4161
4162
|
return ve(() => t.authFunction, async () => {
|
|
4162
4163
|
n.value = await t.authFunction();
|
|
4163
4164
|
}, { immediate: !0 }), (r, o) => i.value ? j(r.$slots, "default", {
|
|
@@ -4243,14 +4244,14 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4243
4244
|
id: T(n),
|
|
4244
4245
|
class: "form-section-title"
|
|
4245
4246
|
}, {
|
|
4246
|
-
default:
|
|
4247
|
-
U(
|
|
4247
|
+
default: _(() => [
|
|
4248
|
+
U(E(e.title), 1)
|
|
4248
4249
|
]),
|
|
4249
4250
|
_: 1
|
|
4250
4251
|
}, 8, ["id"])) : K("", !0),
|
|
4251
4252
|
e.description || T(t).description ? (m(), $("div", Sl, [
|
|
4252
4253
|
j(i.$slots, "description", {}, () => [
|
|
4253
|
-
O("p", null,
|
|
4254
|
+
O("p", null, E(e.description), 1)
|
|
4254
4255
|
], !0)
|
|
4255
4256
|
])) : K("", !0),
|
|
4256
4257
|
T(t).footer ? (m(), $("div", $l, [
|
|
@@ -4263,7 +4264,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4263
4264
|
])
|
|
4264
4265
|
], 10, wl));
|
|
4265
4266
|
}
|
|
4266
|
-
}), vs = /* @__PURE__ */ oe(Il, [["__scopeId", "data-v-b1f74200"]]),
|
|
4267
|
+
}), vs = /* @__PURE__ */ oe(Il, [["__scopeId", "data-v-b1f74200"]]), Fl = { class: "ff-form-section" }, El = { class: "header" }, Ol = {
|
|
4267
4268
|
key: 0,
|
|
4268
4269
|
class: "step"
|
|
4269
4270
|
}, Ll = { class: "header-content" }, Bl = { class: "header-title" }, Rl = {
|
|
@@ -4281,18 +4282,18 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4281
4282
|
},
|
|
4282
4283
|
setup(e) {
|
|
4283
4284
|
const t = De();
|
|
4284
|
-
return (n, i) => (m(), $("div",
|
|
4285
|
-
O("header",
|
|
4286
|
-
n.step != null ? (m(), $("div", Ol,
|
|
4285
|
+
return (n, i) => (m(), $("div", Fl, [
|
|
4286
|
+
O("header", El, [
|
|
4287
|
+
n.step != null ? (m(), $("div", Ol, E(n.step), 1)) : K("", !0),
|
|
4287
4288
|
O("div", Ll, [
|
|
4288
4289
|
O("h2", Bl, [
|
|
4289
4290
|
j(n.$slots, "title", {}, () => [
|
|
4290
|
-
U(
|
|
4291
|
+
U(E(n.title), 1)
|
|
4291
4292
|
], !0)
|
|
4292
4293
|
]),
|
|
4293
4294
|
n.description || t.description ? (m(), $("div", Rl, [
|
|
4294
4295
|
j(n.$slots, "description", {}, () => [
|
|
4295
|
-
U(
|
|
4296
|
+
U(E(n.description), 1)
|
|
4296
4297
|
], !0)
|
|
4297
4298
|
])) : K("", !0)
|
|
4298
4299
|
]),
|
|
@@ -4335,10 +4336,10 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4335
4336
|
}
|
|
4336
4337
|
},
|
|
4337
4338
|
setup(e) {
|
|
4338
|
-
const t = e, n = R(), { isTruncated: i } = Y.useTruncationDetector(n), { i18n: { t: r } } = Y.useI18n(), o = r("global.actions.copyId"), a = R(o), l =
|
|
4339
|
+
const t = e, n = R(), { isTruncated: i } = Y.useTruncationDetector(n), { i18n: { t: r } } = Y.useI18n(), o = r("global.actions.copyId"), a = R(o), l = F(() => t.entityLinkData.deleted ?? !1), s = F(() => {
|
|
4339
4340
|
var u;
|
|
4340
4341
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4341
|
-
}), c =
|
|
4342
|
+
}), c = F(() => {
|
|
4342
4343
|
var u;
|
|
4343
4344
|
return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
|
|
4344
4345
|
}), d = async (u) => {
|
|
@@ -4349,29 +4350,29 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4349
4350
|
return (u, g) => {
|
|
4350
4351
|
const p = D("KTooltip"), y = D("KExternalLink"), v = D("KClipboardProvider");
|
|
4351
4352
|
return m(), $("div", jl, [
|
|
4352
|
-
l.value ? (m(), $("div", Dl,
|
|
4353
|
+
l.value ? (m(), $("div", Dl, E(c.value), 1)) : s.value ? s.value ? (m(), N(y, {
|
|
4353
4354
|
key: 2,
|
|
4354
4355
|
class: "entity-link",
|
|
4355
4356
|
"hide-icon": !e.newWindow,
|
|
4356
4357
|
href: e.externalLink,
|
|
4357
4358
|
target: e.newWindow ? "_blank" : "_self"
|
|
4358
4359
|
}, {
|
|
4359
|
-
default:
|
|
4360
|
+
default: _(() => [
|
|
4360
4361
|
M(p, {
|
|
4361
4362
|
text: T(i) && e.entityLinkData.label || ""
|
|
4362
4363
|
}, {
|
|
4363
|
-
default:
|
|
4364
|
+
default: _(() => [
|
|
4364
4365
|
O("span", {
|
|
4365
4366
|
ref_key: "textContent",
|
|
4366
4367
|
ref: n,
|
|
4367
4368
|
class: "entity-link-label"
|
|
4368
|
-
},
|
|
4369
|
+
}, E(e.entityLinkData.label), 513)
|
|
4369
4370
|
]),
|
|
4370
4371
|
_: 1
|
|
4371
4372
|
}, 8, ["text"])
|
|
4372
4373
|
]),
|
|
4373
4374
|
_: 1
|
|
4374
|
-
}, 8, ["hide-icon", "href", "target"])) : K("", !0) : (m(), $("div", Pl,
|
|
4375
|
+
}, 8, ["hide-icon", "href", "target"])) : K("", !0) : (m(), $("div", Pl, E(" – "))),
|
|
4375
4376
|
s.value && e.allowCopy ? (m(), N(p, {
|
|
4376
4377
|
key: a.value,
|
|
4377
4378
|
class: "copy-uuid-tooltip",
|
|
@@ -4379,9 +4380,9 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4379
4380
|
placement: "bottom-end",
|
|
4380
4381
|
text: a.value
|
|
4381
4382
|
}, {
|
|
4382
|
-
default:
|
|
4383
|
+
default: _(() => [
|
|
4383
4384
|
M(v, null, {
|
|
4384
|
-
default:
|
|
4385
|
+
default: _(({ copyToClipboard: b }) => [
|
|
4385
4386
|
O("span", {
|
|
4386
4387
|
class: "entity-link-copy-id",
|
|
4387
4388
|
onClick: Le((S) => d(b), ["stop"])
|
|
@@ -4470,7 +4471,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4470
4471
|
},
|
|
4471
4472
|
emits: ["click:create", "click:learn-more"],
|
|
4472
4473
|
setup(e) {
|
|
4473
|
-
const t = e, { i18n: { t: n } } = Y.useI18n(), i = R(!1), r =
|
|
4474
|
+
const t = e, { i18n: { t: n } } = Y.useI18n(), i = R(!1), r = F(() => i.value && !!t.actionButtonText), o = F(() => mt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4474
4475
|
return nt(async () => {
|
|
4475
4476
|
i.value = await t.canCreate();
|
|
4476
4477
|
}), tt(() => zn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
@@ -4486,21 +4487,21 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4486
4487
|
class: de(o.value)
|
|
4487
4488
|
}, [
|
|
4488
4489
|
j(a.$slots, "title", {}, () => [
|
|
4489
|
-
U(
|
|
4490
|
+
U(E(e.title), 1)
|
|
4490
4491
|
], !0)
|
|
4491
4492
|
], 2)
|
|
4492
4493
|
])) : K("", !0),
|
|
4493
4494
|
e.description || a.$slots.default ? (m(), $("div", Jl, [
|
|
4494
4495
|
j(a.$slots, "default", {}, () => [
|
|
4495
|
-
O("p", null,
|
|
4496
|
+
O("p", null, E(e.description), 1)
|
|
4496
4497
|
], !0)
|
|
4497
4498
|
])) : K("", !0),
|
|
4498
4499
|
e.pricing || a.$slots.pricing ? (m(), $("div", Gl, [
|
|
4499
4500
|
O("p", null, [
|
|
4500
|
-
O("b", null,
|
|
4501
|
+
O("b", null, E(T(n)("emptyState.pricingTitle")), 1),
|
|
4501
4502
|
l[2] || (l[2] = U()),
|
|
4502
4503
|
j(a.$slots, "pricing", {}, () => [
|
|
4503
|
-
U(
|
|
4504
|
+
U(E(e.pricing), 1)
|
|
4504
4505
|
], !0)
|
|
4505
4506
|
])
|
|
4506
4507
|
])) : K("", !0)
|
|
@@ -4517,9 +4518,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4517
4518
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4518
4519
|
onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
|
|
4519
4520
|
}, {
|
|
4520
|
-
default:
|
|
4521
|
+
default: _(() => [
|
|
4521
4522
|
M(T(Ht)),
|
|
4522
|
-
U(" " +
|
|
4523
|
+
U(" " + E(e.actionButtonText), 1)
|
|
4523
4524
|
]),
|
|
4524
4525
|
_: 1
|
|
4525
4526
|
}, 8, ["size"])) : K("", !0),
|
|
@@ -4530,9 +4531,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4530
4531
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4531
4532
|
onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
|
|
4532
4533
|
}, {
|
|
4533
|
-
default:
|
|
4534
|
+
default: _(() => [
|
|
4534
4535
|
M(T(qt), { decorative: "" }),
|
|
4535
|
-
U(" " +
|
|
4536
|
+
U(" " + E(T(n)("emptyState.learnMore")), 1)
|
|
4536
4537
|
]),
|
|
4537
4538
|
_: 1
|
|
4538
4539
|
}, 8, ["size"])) : K("", !0)
|
|
@@ -4543,16 +4544,16 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4543
4544
|
key: c,
|
|
4544
4545
|
class: "entity-empty-state-card"
|
|
4545
4546
|
}, {
|
|
4546
|
-
title:
|
|
4547
|
+
title: _(() => [
|
|
4547
4548
|
a.$slots[`feature-${d}-icon`] ? (m(), $("div", Xl, [
|
|
4548
4549
|
j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4549
4550
|
])) : K("", !0),
|
|
4550
|
-
O("div", es,
|
|
4551
|
+
O("div", es, E(c.title), 1)
|
|
4551
4552
|
]),
|
|
4552
|
-
default:
|
|
4553
|
+
default: _(() => [
|
|
4553
4554
|
O("div", {
|
|
4554
4555
|
title: c.description
|
|
4555
|
-
},
|
|
4556
|
+
}, E(c.description), 9, ts)
|
|
4556
4557
|
]),
|
|
4557
4558
|
_: 2
|
|
4558
4559
|
}, 1024))), 128))
|
|
@@ -4577,7 +4578,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4577
4578
|
}
|
|
4578
4579
|
},
|
|
4579
4580
|
setup(e) {
|
|
4580
|
-
const t = e, n =
|
|
4581
|
+
const t = e, n = F(() => {
|
|
4581
4582
|
if (Array.isArray(t.tags))
|
|
4582
4583
|
return t.tags;
|
|
4583
4584
|
if (typeof t.tags == "string")
|
|
@@ -4592,15 +4593,15 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4592
4593
|
return (i, r) => {
|
|
4593
4594
|
var o;
|
|
4594
4595
|
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), N(T(ei), { key: 0 }, {
|
|
4595
|
-
default:
|
|
4596
|
+
default: _(() => [
|
|
4596
4597
|
(m(!0), $(ce, null, se(n.value, (a) => (m(), N(T(ti), {
|
|
4597
4598
|
key: a,
|
|
4598
4599
|
"max-width": e.tagMaxWidth,
|
|
4599
4600
|
onClick: r[0] || (r[0] = Le(() => {
|
|
4600
4601
|
}, ["stop"]))
|
|
4601
4602
|
}, {
|
|
4602
|
-
default:
|
|
4603
|
-
U(
|
|
4603
|
+
default: _(() => [
|
|
4604
|
+
U(E(a), 1)
|
|
4604
4605
|
]),
|
|
4605
4606
|
_: 2
|
|
4606
4607
|
}, 1032, ["max-width"]))), 128))
|
|
@@ -4609,7 +4610,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4609
4610
|
})) : (m(), $("span", rs, "-"));
|
|
4610
4611
|
};
|
|
4611
4612
|
}
|
|
4612
|
-
}), { useAxios: As, useDeleteUrlBuilder: ws, useErrors: _s, useExternalLinkCreator: Ss, useFetchUrlBuilder: $s, useFetcher: Ts, useFetcherCacheKey: Is, useDebouncedFilter:
|
|
4613
|
+
}), { useAxios: As, useDeleteUrlBuilder: ws, useErrors: _s, useExternalLinkCreator: Ss, useFetchUrlBuilder: $s, useFetcher: Ts, useFetcherCacheKey: Is, useDebouncedFilter: Fs, useStringHelpers: Es, useHelpers: Os, useGatewayFeatureSupported: Ls, useTruncationDetector: Bs, useValidators: Rs, useSchemaProvider: Ks, useTableState: Ns } = Y;
|
|
4613
4614
|
export {
|
|
4614
4615
|
mt as Appearances,
|
|
4615
4616
|
Do as ConfigCardDisplay,
|
|
@@ -4638,7 +4639,7 @@ export {
|
|
|
4638
4639
|
Un as TerraformCodeBlock,
|
|
4639
4640
|
Pn as YamlCodeBlock,
|
|
4640
4641
|
As as useAxios,
|
|
4641
|
-
|
|
4642
|
+
Fs as useDebouncedFilter,
|
|
4642
4643
|
ws as useDeleteUrlBuilder,
|
|
4643
4644
|
_s as useErrors,
|
|
4644
4645
|
Ss as useExternalLinkCreator,
|
|
@@ -4648,7 +4649,7 @@ export {
|
|
|
4648
4649
|
Ls as useGatewayFeatureSupported,
|
|
4649
4650
|
Os as useHelpers,
|
|
4650
4651
|
Ks as useSchemaProvider,
|
|
4651
|
-
|
|
4652
|
+
Es as useStringHelpers,
|
|
4652
4653
|
Ns as useTableState,
|
|
4653
4654
|
Bs as useTruncationDetector,
|
|
4654
4655
|
Rs as useValidators
|