@kong-ui-public/entities-shared 3.34.2-pr.2726.648af5c39.0 → 3.35.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 +340 -354
- package/dist/entities-shared.umd.js +25 -25
- package/dist/style.css +1 -1
- package/dist/types/components/common/DeckCodeBlock.vue.d.ts +0 -4
- package/dist/types/components/common/DeckCodeBlock.vue.d.ts.map +1 -1
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -1
- package/dist/types/types/app-config.d.ts +1 -3
- package/dist/types/types/app-config.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { inject as qt, ref as
|
|
1
|
+
import { inject as qt, ref as N, computed as $, unref as A, toValue as he, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as M, openBlock as h, resolveDynamicComponent as Pe, normalizeClass as fe, withCtx as _, createElementBlock as T, createCommentVNode as j, createElementVNode as L, toDisplayString as O, Fragment as ue, renderList as ce, resolveComponent as P, createVNode as K, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as U, createSlots as $e, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as ke, vShow as Ce, withKeys as ti, warn as ni } from "vue";
|
|
2
2
|
import mt from "axios";
|
|
3
3
|
import { createI18n as ii, i18nTComponent as ri } from "@kong-ui-public/i18n";
|
|
4
|
-
import { BadgeMethodAppearances as ai, KExternalLink as oi, KButton as
|
|
4
|
+
import { BadgeMethodAppearances as ai, KExternalLink as oi, KButton as ht, KTruncate as li, KBadge as si } from "@kong/kongponents";
|
|
5
5
|
import { createdBundledHighlighter as ci, createSingletonShorthands as ui } from "@shikijs/core";
|
|
6
6
|
import { createJavaScriptRegexEngine as di } from "@shikijs/engine-javascript";
|
|
7
|
-
import { BookIcon as Jt, LanguageShellIcon as
|
|
8
|
-
import { useRouter as
|
|
9
|
-
var
|
|
7
|
+
import { BookIcon as Jt, LanguageShellIcon as gt, LanguageBashIcon as yt, AddIcon as Gt, CloseIcon as fi, ChevronDownIcon as pi, CopyIcon as mi } from "@kong/icons";
|
|
8
|
+
import { useRouter as hi } from "vue-router";
|
|
9
|
+
var gi = /* @__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))(gi || {}), yi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(yi || {}), me = /* @__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))(me || {}), Se = /* @__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.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))(Se || {});
|
|
10
10
|
const qe = Object.values(Se), vi = [
|
|
11
11
|
"ca_certificate",
|
|
12
12
|
"certificate",
|
|
@@ -211,10 +211,7 @@ const wi = {
|
|
|
211
211
|
confirmText: "Yes, disable"
|
|
212
212
|
}
|
|
213
213
|
}, Ki = {
|
|
214
|
-
hint: {
|
|
215
|
-
konnect: "The {token} environment variable must be added first. See {link} for details.",
|
|
216
|
-
kongManager: "If your Admin API is secured, set up authentication following {link}."
|
|
217
|
-
},
|
|
214
|
+
hint: "The {token} environment variable must be added first. See {link} for details.",
|
|
218
215
|
documentation: "the documentation"
|
|
219
216
|
}, Ni = {
|
|
220
217
|
global: wi,
|
|
@@ -287,10 +284,10 @@ function Mi(e, t, n, i = {
|
|
|
287
284
|
n || (n = "1000");
|
|
288
285
|
const { axiosInstance: r } = at(e.axiosRequestConfig), { i18n: { t: o } } = He(), { debounce: a } = xi(), l = a(async (B) => {
|
|
289
286
|
await x(B);
|
|
290
|
-
}, 200), s =
|
|
287
|
+
}, 200), s = N(!1), c = N(""), d = N(""), u = N([]), p = N([]), m = N(void 0), y = $(() => {
|
|
291
288
|
const B = `${e.apiBaseUrl}${A(t)}`;
|
|
292
289
|
return e.app === "konnect" ? B.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? B.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : B;
|
|
293
|
-
}), { isValidUuid:
|
|
290
|
+
}), { isValidUuid: g } = zt(), k = async () => {
|
|
294
291
|
try {
|
|
295
292
|
s.value = !0;
|
|
296
293
|
const { data: B } = await r.get(`${y.value}?size=${n}`);
|
|
@@ -300,8 +297,8 @@ function Mi(e, t, n, i = {
|
|
|
300
297
|
} finally {
|
|
301
298
|
s.value = !1;
|
|
302
299
|
}
|
|
303
|
-
}, C =
|
|
304
|
-
var
|
|
300
|
+
}, C = N(""), x = async (B) => {
|
|
301
|
+
var D, X, S;
|
|
305
302
|
if (C.value !== B) {
|
|
306
303
|
if (C.value = B ?? "", !B) {
|
|
307
304
|
u.value = p.value;
|
|
@@ -314,7 +311,7 @@ function Mi(e, t, n, i = {
|
|
|
314
311
|
i.fetchedItemsKey in F ? u.value = F[i.fetchedItemsKey] : F != null && F[i.exactMatchKey ?? "id"] ? u.value = [F] : u.value = [];
|
|
315
312
|
} else {
|
|
316
313
|
const w = [];
|
|
317
|
-
|
|
314
|
+
g(B) && i.searchKeys.includes("id") ? w.push((async () => {
|
|
318
315
|
const { data: v } = await r.get(`${y.value}/${B}`);
|
|
319
316
|
return [v[i.fetchedItemsKey] ?? v];
|
|
320
317
|
})()) : w.push(
|
|
@@ -324,7 +321,7 @@ function Mi(e, t, n, i = {
|
|
|
324
321
|
})
|
|
325
322
|
);
|
|
326
323
|
const F = await Promise.all(w), f = /* @__PURE__ */ new Set();
|
|
327
|
-
u.value = [], (
|
|
324
|
+
u.value = [], (D = F == null ? void 0 : F.forEach) == null || D.call(F, (v) => {
|
|
328
325
|
var b;
|
|
329
326
|
(b = v == null ? void 0 : v.forEach) == null || b.call(v, (V) => {
|
|
330
327
|
f.has(V.id) || (f.add(V.id), u.value.push(V));
|
|
@@ -358,13 +355,13 @@ function Mi(e, t, n, i = {
|
|
|
358
355
|
debouncedQueryChange: l
|
|
359
356
|
};
|
|
360
357
|
}
|
|
361
|
-
function
|
|
358
|
+
function ji(e, t) {
|
|
362
359
|
const n = A(t), i = $(
|
|
363
360
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
364
361
|
);
|
|
365
362
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
366
363
|
}
|
|
367
|
-
function
|
|
364
|
+
function Di() {
|
|
368
365
|
const { i18n: { t: e } } = He();
|
|
369
366
|
return {
|
|
370
367
|
getErrorFieldsFromError: (i) => {
|
|
@@ -436,7 +433,7 @@ function ji() {
|
|
|
436
433
|
}
|
|
437
434
|
};
|
|
438
435
|
}
|
|
439
|
-
function
|
|
436
|
+
function Pi(e) {
|
|
440
437
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
441
438
|
try {
|
|
442
439
|
const i = e.join("/"), r = `${n}${i}`, o = e.some((l) => l.trim() === "");
|
|
@@ -449,39 +446,39 @@ function Di(e) {
|
|
|
449
446
|
}
|
|
450
447
|
function Qt(e, t) {
|
|
451
448
|
const n = $(() => {
|
|
452
|
-
const r =
|
|
449
|
+
const r = he(e);
|
|
453
450
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
454
451
|
}), i = $(() => {
|
|
455
|
-
const r =
|
|
452
|
+
const r = he(t);
|
|
456
453
|
return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
|
|
457
454
|
});
|
|
458
455
|
return (r) => {
|
|
459
456
|
const { page: o, pageSize: a, offset: l, sortColumnKey: s, sortColumnOrder: c, query: d } = r;
|
|
460
457
|
try {
|
|
461
458
|
let u = new URL(i.value.href);
|
|
462
|
-
return n.value && d ? (u.search = "", u =
|
|
459
|
+
return n.value && d ? (u.search = "", u = he(e).isExactMatch ? new URL(`${u.href}/${d}`) : new URL(`${u.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((p, m) => {
|
|
463
460
|
u.searchParams.append(m, p);
|
|
464
461
|
}), s && u.searchParams.append("sort_by", s), c === "desc" && u.searchParams.append("sort_desc", "1"), u.searchParams.append("size", String(a))), l && o !== 1 && u.searchParams.append("offset", String(l)), u.href;
|
|
465
462
|
} catch (u) {
|
|
466
|
-
return console.error("RouteList(fetcher)", u),
|
|
463
|
+
return console.error("RouteList(fetcher)", u), he(t);
|
|
467
464
|
}
|
|
468
465
|
};
|
|
469
466
|
}
|
|
470
467
|
const bt = /* @__PURE__ */ new Map();
|
|
471
468
|
function Ui(e, t, n) {
|
|
472
|
-
const i =
|
|
469
|
+
const i = N(!0), r = he(e), { axiosInstance: o } = at(r.axiosRequestConfig), a = Qt(e, t), l = N({
|
|
473
470
|
status: me.Idle
|
|
474
471
|
}), s = async (u) => {
|
|
475
472
|
var m;
|
|
476
|
-
const p =
|
|
473
|
+
const p = he(n) || "data";
|
|
477
474
|
try {
|
|
478
475
|
l.value = i.value ? { status: me.InitialLoad } : { status: me.Loading }, i.value = !1;
|
|
479
476
|
let y = a(u);
|
|
480
477
|
y.includes("filter[name]") && (y = `${y}&page[size]=${u.pageSize}&page[number]=${u.page}`);
|
|
481
|
-
const
|
|
482
|
-
if (
|
|
483
|
-
throw
|
|
484
|
-
const k =
|
|
478
|
+
const g = await o.get(y);
|
|
479
|
+
if (g.status >= 400)
|
|
480
|
+
throw g;
|
|
481
|
+
const k = g.data, C = p && p.replace(/[^\w-_]/gi, "");
|
|
485
482
|
let x;
|
|
486
483
|
k[C] ? x = Array.isArray(k[C]) ? k[C] : [k[C]] : Array.isArray(k) ? x = k : x = Object.keys(k).length ? [k] : [];
|
|
487
484
|
const B = {
|
|
@@ -501,19 +498,19 @@ function Ui(e, t, n) {
|
|
|
501
498
|
response: B
|
|
502
499
|
}, B;
|
|
503
500
|
} catch (y) {
|
|
504
|
-
const
|
|
501
|
+
const g = {
|
|
505
502
|
data: [],
|
|
506
503
|
total: 0
|
|
507
504
|
};
|
|
508
505
|
return u.query && (((m = y.response) == null ? void 0 : m.status) === 404 || y.status === 404) ? (l.value = {
|
|
509
506
|
status: me.NoResults,
|
|
510
|
-
response:
|
|
507
|
+
response: g,
|
|
511
508
|
error: y.response ? y : { response: y }
|
|
512
|
-
},
|
|
509
|
+
}, g) : (l.value = {
|
|
513
510
|
status: me.Error,
|
|
514
|
-
response:
|
|
511
|
+
response: g,
|
|
515
512
|
error: y.response ? y : { response: y }
|
|
516
|
-
},
|
|
513
|
+
}, g);
|
|
517
514
|
}
|
|
518
515
|
}, c = r.cacheIdentifier, d = Zt(c);
|
|
519
516
|
return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
|
|
@@ -521,9 +518,9 @@ function Ui(e, t, n) {
|
|
|
521
518
|
function Zt(e) {
|
|
522
519
|
if (e) {
|
|
523
520
|
let t = bt.get(e);
|
|
524
|
-
return t || (t =
|
|
521
|
+
return t || (t = N(1), bt.set(e, t)), t;
|
|
525
522
|
}
|
|
526
|
-
return
|
|
523
|
+
return N(1);
|
|
527
524
|
}
|
|
528
525
|
function qi() {
|
|
529
526
|
const e = (i, r = "_") => i ? i.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
@@ -588,7 +585,7 @@ function Gi(e) {
|
|
|
588
585
|
return !(a && _t(r, a, "<") || l && _t(r, l, ">"));
|
|
589
586
|
}
|
|
590
587
|
function zi(e) {
|
|
591
|
-
const t =
|
|
588
|
+
const t = N(0), n = N(0), i = N(!1);
|
|
592
589
|
return be(e, (o) => {
|
|
593
590
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
594
591
|
}), {
|
|
@@ -610,25 +607,25 @@ const Qe = Symbol("schema"), Zi = (e) => {
|
|
|
610
607
|
};
|
|
611
608
|
function er(e) {
|
|
612
609
|
let t = "";
|
|
613
|
-
const n =
|
|
610
|
+
const n = N(!1), i = N(null), r = $(() => {
|
|
614
611
|
let a;
|
|
615
|
-
return n.value ? a = !0 : i.value ? a = i.value.hasData || e &&
|
|
612
|
+
return n.value ? a = !0 : i.value ? a = i.value.hasData || e && he(e) : a = !1, !a;
|
|
616
613
|
});
|
|
617
614
|
return {
|
|
618
615
|
tableState: i,
|
|
619
616
|
hasRecords: n,
|
|
620
617
|
hideTableToolbar: r,
|
|
621
618
|
handleStateChange: (a) => {
|
|
622
|
-
a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t =
|
|
619
|
+
a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = he(e)), i.value = { ...a };
|
|
623
620
|
}
|
|
624
621
|
};
|
|
625
622
|
}
|
|
626
623
|
const W = {
|
|
627
624
|
useAxios: at,
|
|
628
625
|
useDebouncedFilter: Mi,
|
|
629
|
-
useDeleteUrlBuilder:
|
|
630
|
-
useErrors:
|
|
631
|
-
useExternalLinkCreator:
|
|
626
|
+
useDeleteUrlBuilder: ji,
|
|
627
|
+
useErrors: Di,
|
|
628
|
+
useExternalLinkCreator: Pi,
|
|
632
629
|
useFetcher: Ui,
|
|
633
630
|
useFetcherCacheKey: Zt,
|
|
634
631
|
useFetchUrlBuilder: Qt,
|
|
@@ -668,14 +665,14 @@ const W = {
|
|
|
668
665
|
var s;
|
|
669
666
|
return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
670
667
|
});
|
|
671
|
-
return (s, c) => (
|
|
668
|
+
return (s, c) => (h(), M(Pe(e.isArrayItem ? "fieldset" : "div"), {
|
|
672
669
|
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
673
670
|
}, {
|
|
674
671
|
default: _(() => [
|
|
675
|
-
e.isArrayItem ? (
|
|
672
|
+
e.isArrayItem ? (h(), T("legend", tr, [
|
|
676
673
|
L("b", null, O(l.value), 1)
|
|
677
|
-
])) :
|
|
678
|
-
(
|
|
674
|
+
])) : j("", !0),
|
|
675
|
+
(h(!0), T(ue, null, ce(Object.keys(a.value), (d, u) => (h(), M(nn, {
|
|
679
676
|
key: `${r.value}-property-${u}`,
|
|
680
677
|
item: {
|
|
681
678
|
key: d,
|
|
@@ -704,8 +701,8 @@ const W = {
|
|
|
704
701
|
setup(e) {
|
|
705
702
|
const { i18n: { t } } = W.useI18n();
|
|
706
703
|
return (n, i) => {
|
|
707
|
-
const r =
|
|
708
|
-
return
|
|
704
|
+
const r = P("KButton");
|
|
705
|
+
return h(), T("div", null, [
|
|
709
706
|
K(r, {
|
|
710
707
|
appearance: "tertiary",
|
|
711
708
|
class: "navigation-button",
|
|
@@ -730,8 +727,8 @@ const W = {
|
|
|
730
727
|
setup(e) {
|
|
731
728
|
const { i18n: { t } } = W.useI18n();
|
|
732
729
|
return (n, i) => {
|
|
733
|
-
const r =
|
|
734
|
-
return
|
|
730
|
+
const r = P("KBadge");
|
|
731
|
+
return h(), M(r, {
|
|
735
732
|
appearance: e.status ? "success" : "neutral"
|
|
736
733
|
}, {
|
|
737
734
|
default: _(() => [
|
|
@@ -762,7 +759,7 @@ const W = {
|
|
|
762
759
|
async function Te({ codeElement: e, code: t, language: n, theme: i }) {
|
|
763
760
|
e.innerHTML = await mr(t, { lang: n, theme: i === "dark" ? "catppuccin-mocha" : "catppuccin-latte", structure: "inline" });
|
|
764
761
|
}
|
|
765
|
-
const
|
|
762
|
+
const hr = { class: "config-card-details-row" }, gr = ["data-testid"], yr = ["data-testid"], vr = ["data-testid"], br = ["data-testid"], kr = { key: 1 }, Cr = ["data-testid"], xr = ["data-testid"], Ar = ["data-testid"], _r = ["data-testid"], wr = {
|
|
766
763
|
name: "ConfigCardItem",
|
|
767
764
|
components: { JsonCardItem: tn, StatusBadge: ar, InternalLinkItem: rr }
|
|
768
765
|
}, Sr = /* @__PURE__ */ z({
|
|
@@ -785,16 +782,16 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
785
782
|
},
|
|
786
783
|
emits: ["navigation-click"],
|
|
787
784
|
setup(e, { emit: t }) {
|
|
788
|
-
Vt((
|
|
785
|
+
Vt((D) => ({
|
|
789
786
|
v0b2cd434: p.value ? "none" : `solid ${A(ur)} ${A(lr)}`,
|
|
790
787
|
bb02ad32: u.value && c.value ? "block" : "flex",
|
|
791
788
|
d92de3ce: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
792
789
|
d9295818: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
793
790
|
}));
|
|
794
791
|
const n = e, i = t, r = Qn(), o = Ue(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === Y.Json || n.item.type === Y.JsonArray), p = $(() => n.item.type === Y.JsonArray), m = W.useSubSchema(n.item.key), y = $(() => {
|
|
795
|
-
var
|
|
796
|
-
return n.item.type ? n.item.type : (
|
|
797
|
-
}),
|
|
792
|
+
var D;
|
|
793
|
+
return n.item.type ? n.item.type : (D = m == null ? void 0 : m.value) != null && D.encrypted ? Y.Redacted : void 0;
|
|
794
|
+
}), g = $(() => {
|
|
798
795
|
switch (y.value) {
|
|
799
796
|
case Y.ID:
|
|
800
797
|
return {
|
|
@@ -875,8 +872,8 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
875
872
|
attrs: {
|
|
876
873
|
"data-testid": `${n.item.key}-internal-link`,
|
|
877
874
|
item: n.item,
|
|
878
|
-
onNavigationClick: (
|
|
879
|
-
i("navigation-click",
|
|
875
|
+
onNavigationClick: (D) => {
|
|
876
|
+
i("navigation-click", D);
|
|
880
877
|
}
|
|
881
878
|
}
|
|
882
879
|
};
|
|
@@ -926,15 +923,15 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
926
923
|
text: n.item.value
|
|
927
924
|
};
|
|
928
925
|
}
|
|
929
|
-
}), k =
|
|
930
|
-
return (
|
|
931
|
-
const S =
|
|
932
|
-
return
|
|
926
|
+
}), k = N(), C = N(), { isTruncated: x } = W.useTruncationDetector(k), { isTruncated: B } = W.useTruncationDetector(C);
|
|
927
|
+
return (D, X) => {
|
|
928
|
+
const S = P("KTooltip"), w = P("KLabel"), F = P("KBadge"), f = P("KCopy");
|
|
929
|
+
return h(), T("div", hr, [
|
|
933
930
|
L("div", {
|
|
934
931
|
class: "config-card-details-label",
|
|
935
932
|
"data-testid": `${e.item.key}-label`
|
|
936
933
|
}, [
|
|
937
|
-
U(
|
|
934
|
+
U(D.$slots, "label", { item: e.item }, () => [
|
|
938
935
|
K(w, { "tooltip-attributes": { maxWidth: "500px" } }, $e({
|
|
939
936
|
default: _(() => [
|
|
940
937
|
K(S, {
|
|
@@ -958,7 +955,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
958
955
|
L("div", {
|
|
959
956
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
960
957
|
}, [
|
|
961
|
-
U(
|
|
958
|
+
U(D.$slots, "label-tooltip", {}, () => [
|
|
962
959
|
q(O(e.item.tooltip), 1)
|
|
963
960
|
], !0)
|
|
964
961
|
], 8, yr)
|
|
@@ -967,22 +964,22 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
967
964
|
} : void 0
|
|
968
965
|
]), 1024)
|
|
969
966
|
], !0)
|
|
970
|
-
], 8,
|
|
967
|
+
], 8, gr),
|
|
971
968
|
L("div", {
|
|
972
969
|
class: "config-card-details-value",
|
|
973
970
|
"data-testid": `${e.item.key}-property-value`
|
|
974
971
|
}, [
|
|
975
|
-
U(
|
|
972
|
+
U(D.$slots, e.item.key, {
|
|
976
973
|
rowValue: e.item.value
|
|
977
974
|
}, () => [
|
|
978
|
-
c.value ? (
|
|
979
|
-
(
|
|
975
|
+
c.value ? (h(), T("div", kr, [
|
|
976
|
+
(h(), M(Pe(g.value.tag), Zn(Xn(g.value.attrs)), {
|
|
980
977
|
default: _(() => [
|
|
981
|
-
|
|
978
|
+
g.value.additionalComponent === "KBadge" ? (h(), T("div", {
|
|
982
979
|
key: 0,
|
|
983
980
|
"data-testid": `${e.item.key}-badge-tags`
|
|
984
981
|
}, [
|
|
985
|
-
(
|
|
982
|
+
(h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(F, {
|
|
986
983
|
key: `${e.item.key}-badge-tag-${b}`,
|
|
987
984
|
class: "config-badge",
|
|
988
985
|
"data-testid": `${e.item.key}-badge-tag-${b}`,
|
|
@@ -994,22 +991,22 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
994
991
|
]),
|
|
995
992
|
_: 2
|
|
996
993
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
997
|
-
], 8, Cr)) :
|
|
994
|
+
], 8, Cr)) : g.value.additionalComponent === "KCopy" ? (h(), T("div", {
|
|
998
995
|
key: 1,
|
|
999
996
|
class: "copy-uuid-array",
|
|
1000
997
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1001
998
|
}, [
|
|
1002
|
-
(
|
|
999
|
+
(h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(f, Yt({ ref_for: !0 }, g.value.childAttrs, {
|
|
1003
1000
|
key: `${e.item.key}-copy-uuid-${b}`,
|
|
1004
1001
|
"data-testid": `${e.item.key}-copy-uuid-${b}`,
|
|
1005
1002
|
text: v
|
|
1006
1003
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1007
|
-
], 8, xr)) :
|
|
1004
|
+
], 8, xr)) : g.value.additionalComponent === "KMethodBadge" ? (h(), T("div", {
|
|
1008
1005
|
key: 2,
|
|
1009
1006
|
class: "method-badge-array",
|
|
1010
1007
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1011
1008
|
}, [
|
|
1012
|
-
(
|
|
1009
|
+
(h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(F, {
|
|
1013
1010
|
key: `${e.item.key}-badge-method-${b}`,
|
|
1014
1011
|
appearance: Object.values(A(ai)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
|
|
1015
1012
|
class: "config-badge",
|
|
@@ -1020,17 +1017,17 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
1020
1017
|
]),
|
|
1021
1018
|
_: 2
|
|
1022
1019
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1023
|
-
], 8, Ar)) :
|
|
1020
|
+
], 8, Ar)) : g.value.additionalComponent === "JsonCardItem" ? (h(), T("div", {
|
|
1024
1021
|
key: 3,
|
|
1025
1022
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1026
1023
|
}, [
|
|
1027
|
-
(
|
|
1024
|
+
(h(!0), T(ue, null, ce(e.item.value, (v, b) => (h(), M(tn, {
|
|
1028
1025
|
key: `json-array-item-${b}`,
|
|
1029
1026
|
index: b,
|
|
1030
1027
|
"is-array-item": "",
|
|
1031
1028
|
item: v
|
|
1032
1029
|
}, null, 8, ["index", "item"]))), 128))
|
|
1033
|
-
], 8, _r)) : (
|
|
1030
|
+
], 8, _r)) : (h(), M(S, {
|
|
1034
1031
|
key: 4,
|
|
1035
1032
|
text: A(B) ? e.item.value : ""
|
|
1036
1033
|
}, {
|
|
@@ -1039,14 +1036,14 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
1039
1036
|
ref_key: "textContent",
|
|
1040
1037
|
ref: C,
|
|
1041
1038
|
class: fe(["attrs-data-text", { truncated: e.truncated }])
|
|
1042
|
-
}, O(
|
|
1039
|
+
}, O(g.value.text), 3)
|
|
1043
1040
|
]),
|
|
1044
1041
|
_: 1
|
|
1045
1042
|
}, 8, ["text"]))
|
|
1046
1043
|
]),
|
|
1047
1044
|
_: 1
|
|
1048
1045
|
}, 16))
|
|
1049
|
-
])) : (
|
|
1046
|
+
])) : (h(), T("div", {
|
|
1050
1047
|
key: 0,
|
|
1051
1048
|
"data-testid": `${e.item.key}-no-value`
|
|
1052
1049
|
}, " – ", 8, br))
|
|
@@ -1097,9 +1094,9 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
1097
1094
|
return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
|
|
1098
1095
|
});
|
|
1099
1096
|
return (r, o) => {
|
|
1100
|
-
const a =
|
|
1101
|
-
return
|
|
1102
|
-
t.fetcherUrl ? (
|
|
1097
|
+
const a = P("KBadge"), l = P("KCodeBlock");
|
|
1098
|
+
return h(), T("div", $r, [
|
|
1099
|
+
t.fetcherUrl ? (h(), T("div", Tr, [
|
|
1103
1100
|
K(a, {
|
|
1104
1101
|
appearance: t.requestMethod
|
|
1105
1102
|
}, {
|
|
@@ -1115,8 +1112,8 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
1115
1112
|
"single-line": "",
|
|
1116
1113
|
theme: "dark"
|
|
1117
1114
|
}, null, 8, ["code"])
|
|
1118
|
-
])) :
|
|
1119
|
-
t.entityRecord ? (
|
|
1115
|
+
])) : j("", !0),
|
|
1116
|
+
t.entityRecord ? (h(), M(l, {
|
|
1120
1117
|
key: 1,
|
|
1121
1118
|
id: "json-codeblock",
|
|
1122
1119
|
class: fe({ "json-content": t.fetcherUrl }),
|
|
@@ -1124,7 +1121,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
|
|
|
1124
1121
|
language: "json",
|
|
1125
1122
|
theme: "dark",
|
|
1126
1123
|
onCodeBlockRender: A(Te)
|
|
1127
|
-
}, null, 8, ["class", "code", "onCodeBlockRender"])) :
|
|
1124
|
+
}, null, 8, ["class", "code", "onCodeBlockRender"])) : j("", !0)
|
|
1128
1125
|
]);
|
|
1129
1126
|
};
|
|
1130
1127
|
}
|
|
@@ -1155,13 +1152,13 @@ function Or(e, t) {
|
|
|
1155
1152
|
function Br(e) {
|
|
1156
1153
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1157
1154
|
}
|
|
1158
|
-
var Lr = an, Rr = Er, Kr = Ir, Nr = Or, Mr = Br,
|
|
1155
|
+
var Lr = an, Rr = Er, Kr = Ir, Nr = Or, Mr = Br, jr = Fr, ee = {
|
|
1159
1156
|
isNothing: Lr,
|
|
1160
1157
|
isObject: Rr,
|
|
1161
1158
|
toArray: Kr,
|
|
1162
1159
|
repeat: Nr,
|
|
1163
1160
|
isNegativeZero: Mr,
|
|
1164
|
-
extend:
|
|
1161
|
+
extend: jr
|
|
1165
1162
|
};
|
|
1166
1163
|
function on(e, t) {
|
|
1167
1164
|
var n = "", i = e.reason || "(unknown reason)";
|
|
@@ -1189,7 +1186,7 @@ function We(e, t, n, i, r) {
|
|
|
1189
1186
|
function Je(e, t) {
|
|
1190
1187
|
return ee.repeat(" ", t - e.length) + e;
|
|
1191
1188
|
}
|
|
1192
|
-
function
|
|
1189
|
+
function Dr(e, t) {
|
|
1193
1190
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1194
1191
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
1195
1192
|
for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
|
|
@@ -1218,7 +1215,7 @@ function jr(e, t) {
|
|
|
1218
1215
|
`;
|
|
1219
1216
|
return l.replace(/\n$/, "");
|
|
1220
1217
|
}
|
|
1221
|
-
var
|
|
1218
|
+
var Pr = Dr, Ur = [
|
|
1222
1219
|
"kind",
|
|
1223
1220
|
"multi",
|
|
1224
1221
|
"resolve",
|
|
@@ -1535,21 +1532,21 @@ function ca(e, t) {
|
|
|
1535
1532
|
function ua(e) {
|
|
1536
1533
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ee.isNegativeZero(e));
|
|
1537
1534
|
}
|
|
1538
|
-
var
|
|
1535
|
+
var hn = new ie("tag:yaml.org,2002:float", {
|
|
1539
1536
|
kind: "scalar",
|
|
1540
1537
|
resolve: oa,
|
|
1541
1538
|
construct: la,
|
|
1542
1539
|
predicate: ua,
|
|
1543
1540
|
represent: ca,
|
|
1544
1541
|
defaultStyle: "lowercase"
|
|
1545
|
-
}),
|
|
1542
|
+
}), gn = dn.extend({
|
|
1546
1543
|
implicit: [
|
|
1547
1544
|
fn,
|
|
1548
1545
|
pn,
|
|
1549
1546
|
mn,
|
|
1550
|
-
|
|
1547
|
+
hn
|
|
1551
1548
|
]
|
|
1552
|
-
}), yn =
|
|
1549
|
+
}), yn = gn, vn = new RegExp(
|
|
1553
1550
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1554
1551
|
), bn = new RegExp(
|
|
1555
1552
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
@@ -1587,7 +1584,7 @@ var Cn = new ie("tag:yaml.org,2002:merge", {
|
|
|
1587
1584
|
resolve: ma
|
|
1588
1585
|
}), ot = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1589
1586
|
\r`;
|
|
1590
|
-
function
|
|
1587
|
+
function ha(e) {
|
|
1591
1588
|
if (e === null) return !1;
|
|
1592
1589
|
var t, n, i = 0, r = e.length, o = ot;
|
|
1593
1590
|
for (n = 0; n < r; n++)
|
|
@@ -1597,7 +1594,7 @@ function ga(e) {
|
|
|
1597
1594
|
}
|
|
1598
1595
|
return i % 8 === 0;
|
|
1599
1596
|
}
|
|
1600
|
-
function
|
|
1597
|
+
function ga(e) {
|
|
1601
1598
|
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = ot, a = 0, l = [];
|
|
1602
1599
|
for (t = 0; t < r; t++)
|
|
1603
1600
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
@@ -1614,8 +1611,8 @@ function va(e) {
|
|
|
1614
1611
|
}
|
|
1615
1612
|
var xn = new ie("tag:yaml.org,2002:binary", {
|
|
1616
1613
|
kind: "scalar",
|
|
1617
|
-
resolve:
|
|
1618
|
-
construct:
|
|
1614
|
+
resolve: ha,
|
|
1615
|
+
construct: ga,
|
|
1619
1616
|
predicate: va,
|
|
1620
1617
|
represent: ya
|
|
1621
1618
|
}), ba = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
|
|
@@ -1748,7 +1745,7 @@ function Bn(e, t) {
|
|
|
1748
1745
|
line: e.line,
|
|
1749
1746
|
column: e.position - e.lineStart
|
|
1750
1747
|
};
|
|
1751
|
-
return n.snippet =
|
|
1748
|
+
return n.snippet = Pr(n), new oe(t, n);
|
|
1752
1749
|
}
|
|
1753
1750
|
function I(e, t) {
|
|
1754
1751
|
throw Bn(e, t);
|
|
@@ -1772,7 +1769,7 @@ var It = {
|
|
|
1772
1769
|
t.tagMap[r] = o;
|
|
1773
1770
|
}
|
|
1774
1771
|
};
|
|
1775
|
-
function
|
|
1772
|
+
function ge(e, t, n, i) {
|
|
1776
1773
|
var r, o, a, l;
|
|
1777
1774
|
if (t < n) {
|
|
1778
1775
|
if (l = e.input.slice(t, n), i)
|
|
@@ -1853,32 +1850,32 @@ function Ma(e, t, n) {
|
|
|
1853
1850
|
break;
|
|
1854
1851
|
}
|
|
1855
1852
|
}
|
|
1856
|
-
l && (
|
|
1853
|
+
l && (ge(e, o, a, !1), ct(e, e.line - s), o = a = e.position, l = !1), ve(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
|
|
1857
1854
|
}
|
|
1858
|
-
return
|
|
1855
|
+
return ge(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
|
|
1859
1856
|
}
|
|
1860
|
-
function
|
|
1857
|
+
function ja(e, t) {
|
|
1861
1858
|
var n, i, r;
|
|
1862
1859
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1863
1860
|
return !1;
|
|
1864
1861
|
for (e.kind = "scalar", e.result = "", e.position++, i = r = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
|
|
1865
1862
|
if (n === 39)
|
|
1866
|
-
if (
|
|
1863
|
+
if (ge(e, i, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
|
|
1867
1864
|
i = e.position, e.position++, r = e.position;
|
|
1868
1865
|
else
|
|
1869
1866
|
return !0;
|
|
1870
|
-
else de(n) ? (
|
|
1867
|
+
else de(n) ? (ge(e, i, r, !0), ct(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Ve(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1871
1868
|
I(e, "unexpected end of the stream within a single quoted scalar");
|
|
1872
1869
|
}
|
|
1873
|
-
function
|
|
1870
|
+
function Da(e, t) {
|
|
1874
1871
|
var n, i, r, o, a, l;
|
|
1875
1872
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1876
1873
|
return !1;
|
|
1877
1874
|
for (e.kind = "scalar", e.result = "", e.position++, n = i = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1878
1875
|
if (l === 34)
|
|
1879
|
-
return
|
|
1876
|
+
return ge(e, n, e.position, !0), e.position++, !0;
|
|
1880
1877
|
if (l === 92) {
|
|
1881
|
-
if (
|
|
1878
|
+
if (ge(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), de(l))
|
|
1882
1879
|
Z(e, !1, t);
|
|
1883
1880
|
else if (l < 256 && Fn[l])
|
|
1884
1881
|
e.result += On[l], e.position++;
|
|
@@ -1889,12 +1886,12 @@ function ja(e, t) {
|
|
|
1889
1886
|
} else
|
|
1890
1887
|
I(e, "unknown escape sequence");
|
|
1891
1888
|
n = i = e.position;
|
|
1892
|
-
} else de(l) ? (
|
|
1889
|
+
} else de(l) ? (ge(e, n, i, !0), ct(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Ve(e) ? I(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1893
1890
|
}
|
|
1894
1891
|
I(e, "unexpected end of the stream within a double quoted scalar");
|
|
1895
1892
|
}
|
|
1896
|
-
function
|
|
1897
|
-
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, p, m, y = /* @__PURE__ */ Object.create(null),
|
|
1893
|
+
function Pa(e, t) {
|
|
1894
|
+
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, p, m, y = /* @__PURE__ */ Object.create(null), g, k, C, x;
|
|
1898
1895
|
if (x = e.input.charCodeAt(e.position), x === 91)
|
|
1899
1896
|
d = 93, m = !1, l = [];
|
|
1900
1897
|
else if (x === 123)
|
|
@@ -1904,7 +1901,7 @@ function Da(e, t) {
|
|
|
1904
1901
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
|
|
1905
1902
|
if (Z(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
|
|
1906
1903
|
return e.position++, e.tag = a, e.anchor = s, e.kind = m ? "mapping" : "sequence", e.result = l, !0;
|
|
1907
|
-
n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k =
|
|
1904
|
+
n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k = g = C = null, u = p = !1, x === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ee(e, t, Ke, !1, !0), k = e.tag, g = e.result, Z(e, !0, t), x = e.input.charCodeAt(e.position), (p || e.line === i) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), Z(e, !0, t), Ee(e, t, Ke, !1, !0), C = e.result), m ? we(e, l, y, k, g, C, i, r, o) : u ? l.push(we(e, null, y, k, g, C, i, r, o)) : l.push(g), Z(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1908
1905
|
}
|
|
1909
1906
|
I(e, "unexpected end of the stream within a flow collection");
|
|
1910
1907
|
}
|
|
@@ -1951,7 +1948,7 @@ function Ua(e, t) {
|
|
|
1951
1948
|
`, s) : e.result += ee.repeat(`
|
|
1952
1949
|
`, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !de(u) && u !== 0; )
|
|
1953
1950
|
u = e.input.charCodeAt(++e.position);
|
|
1954
|
-
|
|
1951
|
+
ge(e, n, e.position, !1);
|
|
1955
1952
|
}
|
|
1956
1953
|
return !0;
|
|
1957
1954
|
}
|
|
@@ -1971,11 +1968,11 @@ function Ot(e, t) {
|
|
|
1971
1968
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1972
1969
|
}
|
|
1973
1970
|
function qa(e, t, n) {
|
|
1974
|
-
var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), m = null, y = null,
|
|
1971
|
+
var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), m = null, y = null, g = null, k = !1, C = !1, x;
|
|
1975
1972
|
if (e.firstTabInLine !== -1) return !1;
|
|
1976
1973
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), x = e.input.charCodeAt(e.position); x !== 0; ) {
|
|
1977
1974
|
if (!k && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && se(i))
|
|
1978
|
-
x === 63 ? (k && (we(e, u, p, m, y, null, a, l, s), m = y =
|
|
1975
|
+
x === 63 ? (k && (we(e, u, p, m, y, null, a, l, s), m = y = g = null), C = !0, k = !0, r = !0) : k ? (k = !1, r = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = i;
|
|
1979
1976
|
else {
|
|
1980
1977
|
if (a = e.line, l = e.lineStart, s = e.position, !Ee(e, n, Sn, !1, !0))
|
|
1981
1978
|
break;
|
|
@@ -1983,7 +1980,7 @@ function qa(e, t, n) {
|
|
|
1983
1980
|
for (x = e.input.charCodeAt(e.position); ve(x); )
|
|
1984
1981
|
x = e.input.charCodeAt(++e.position);
|
|
1985
1982
|
if (x === 58)
|
|
1986
|
-
x = e.input.charCodeAt(++e.position), se(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (we(e, u, p, m, y, null, a, l, s), m = y =
|
|
1983
|
+
x = e.input.charCodeAt(++e.position), se(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (we(e, u, p, m, y, null, a, l, s), m = y = g = null), C = !0, k = !1, r = !1, m = e.tag, y = e.result;
|
|
1987
1984
|
else if (C)
|
|
1988
1985
|
I(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1989
1986
|
else
|
|
@@ -1993,7 +1990,7 @@ function qa(e, t, n) {
|
|
|
1993
1990
|
else
|
|
1994
1991
|
return e.tag = c, e.anchor = d, !0;
|
|
1995
1992
|
}
|
|
1996
|
-
if ((e.line === o || e.lineIndent > t) && (k && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (k ? y = e.result :
|
|
1993
|
+
if ((e.line === o || e.lineIndent > t) && (k && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (k ? y = e.result : g = e.result), k || (we(e, u, p, m, y, g, a, l, s), m = y = g = null), Z(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
|
|
1997
1994
|
I(e, "bad indentation of a mapping entry");
|
|
1998
1995
|
else if (e.lineIndent < t)
|
|
1999
1996
|
break;
|
|
@@ -2036,11 +2033,11 @@ function Ya(e) {
|
|
|
2036
2033
|
return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
|
|
2037
2034
|
}
|
|
2038
2035
|
function Ee(e, t, n, i, r) {
|
|
2039
|
-
var o, a, l, s = 1, c = !1, d = !1, u, p, m, y,
|
|
2036
|
+
var o, a, l, s = 1, c = !1, d = !1, u, p, m, y, g, k;
|
|
2040
2037
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Ne === n || $n === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2041
2038
|
for (; Ha(e) || Va(e); )
|
|
2042
2039
|
Z(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2043
|
-
if (l && (l = c || r), (s === 1 || Ne === n) && (Ke === n || Sn === n ?
|
|
2040
|
+
if (l && (l = c || r), (s === 1 || Ne === n) && (Ke === n || Sn === n ? g = t : g = t + 1, k = e.position - e.lineStart, s === 1 ? l && (Ot(e, k) || qa(e, k, g)) || Pa(e, g) ? d = !0 : (a && Ua(e, g) || ja(e, g) || Da(e, g) ? d = !0 : Ya(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : Ma(e, g, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ot(e, k))), e.tag === null)
|
|
2044
2041
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2045
2042
|
else if (e.tag === "?") {
|
|
2046
2043
|
for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
|
|
@@ -2120,7 +2117,7 @@ function Ga(e, t) {
|
|
|
2120
2117
|
var za = Ja, Qa = Ga, Rn = {
|
|
2121
2118
|
loadAll: za,
|
|
2122
2119
|
load: Qa
|
|
2123
|
-
}, Kn = Object.prototype.toString, Nn = Object.prototype.hasOwnProperty, ut = 65279, Za = 9, Oe = 10, Xa = 13, eo = 32, to = 33, no = 34, Xe = 35, io = 37, ro = 38, ao = 39, oo = 42, Mn = 44, lo = 45,
|
|
2120
|
+
}, Kn = Object.prototype.toString, Nn = Object.prototype.hasOwnProperty, ut = 65279, Za = 9, Oe = 10, Xa = 13, eo = 32, to = 33, no = 34, Xe = 35, io = 37, ro = 38, ao = 39, oo = 42, Mn = 44, lo = 45, je = 58, so = 61, co = 62, uo = 63, fo = 64, jn = 91, Dn = 93, po = 96, Pn = 123, mo = 124, Un = 125, re = {};
|
|
2124
2121
|
re[0] = "\\0";
|
|
2125
2122
|
re[7] = "\\a";
|
|
2126
2123
|
re[8] = "\\b";
|
|
@@ -2136,7 +2133,7 @@ re[133] = "\\N";
|
|
|
2136
2133
|
re[160] = "\\_";
|
|
2137
2134
|
re[8232] = "\\L";
|
|
2138
2135
|
re[8233] = "\\P";
|
|
2139
|
-
var
|
|
2136
|
+
var ho = [
|
|
2140
2137
|
"y",
|
|
2141
2138
|
"Y",
|
|
2142
2139
|
"yes",
|
|
@@ -2153,7 +2150,7 @@ var go = [
|
|
|
2153
2150
|
"off",
|
|
2154
2151
|
"Off",
|
|
2155
2152
|
"OFF"
|
|
2156
|
-
],
|
|
2153
|
+
], go = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2157
2154
|
function yo(e, t) {
|
|
2158
2155
|
var n, i, r, o, a, l, s;
|
|
2159
2156
|
if (t === null) return {};
|
|
@@ -2195,7 +2192,7 @@ function Co(e, t) {
|
|
|
2195
2192
|
return !0;
|
|
2196
2193
|
return !1;
|
|
2197
2194
|
}
|
|
2198
|
-
function
|
|
2195
|
+
function De(e) {
|
|
2199
2196
|
return e === eo || e === Za;
|
|
2200
2197
|
}
|
|
2201
2198
|
function Le(e) {
|
|
@@ -2205,20 +2202,20 @@ function Lt(e) {
|
|
|
2205
2202
|
return Le(e) && e !== ut && e !== Xa && e !== Oe;
|
|
2206
2203
|
}
|
|
2207
2204
|
function Rt(e, t, n) {
|
|
2208
|
-
var i = Lt(e), r = i && !
|
|
2205
|
+
var i = Lt(e), r = i && !De(e);
|
|
2209
2206
|
return (
|
|
2210
2207
|
// ns-plain-safe
|
|
2211
2208
|
(n ? (
|
|
2212
2209
|
// c = flow-in
|
|
2213
2210
|
i
|
|
2214
|
-
) : i && e !== Mn && e !==
|
|
2211
|
+
) : i && e !== Mn && e !== jn && e !== Dn && e !== Pn && e !== Un) && e !== Xe && !(t === je && !r) || Lt(t) && !De(t) && e === Xe || t === je && r
|
|
2215
2212
|
);
|
|
2216
2213
|
}
|
|
2217
2214
|
function xo(e) {
|
|
2218
|
-
return Le(e) && e !== ut && !
|
|
2215
|
+
return Le(e) && e !== ut && !De(e) && e !== lo && e !== uo && e !== je && e !== Mn && e !== jn && e !== Dn && e !== Pn && e !== Un && e !== Xe && e !== ro && e !== oo && e !== to && e !== mo && e !== so && e !== co && e !== ao && e !== no && e !== io && e !== fo && e !== po;
|
|
2219
2216
|
}
|
|
2220
2217
|
function Ao(e) {
|
|
2221
|
-
return !
|
|
2218
|
+
return !De(e) && e !== je;
|
|
2222
2219
|
}
|
|
2223
2220
|
function Ie(e, t) {
|
|
2224
2221
|
var n = e.charCodeAt(t), i;
|
|
@@ -2230,12 +2227,12 @@ function qn(e) {
|
|
|
2230
2227
|
}
|
|
2231
2228
|
var Hn = 1, tt = 2, Vn = 3, Yn = 4, Ae = 5;
|
|
2232
2229
|
function _o(e, t, n, i, r, o, a, l) {
|
|
2233
|
-
var s, c = 0, d = null, u = !1, p = !1, m = i !== -1, y = -1,
|
|
2230
|
+
var s, c = 0, d = null, u = !1, p = !1, m = i !== -1, y = -1, g = xo(Ie(e, 0)) && Ao(Ie(e, e.length - 1));
|
|
2234
2231
|
if (t || a)
|
|
2235
2232
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2236
2233
|
if (c = Ie(e, s), !Le(c))
|
|
2237
2234
|
return Ae;
|
|
2238
|
-
|
|
2235
|
+
g = g && Rt(c, d, l), d = c;
|
|
2239
2236
|
}
|
|
2240
2237
|
else {
|
|
2241
2238
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
@@ -2244,17 +2241,17 @@ function _o(e, t, n, i, r, o, a, l) {
|
|
|
2244
2241
|
s - y - 1 > i && e[y + 1] !== " ", y = s);
|
|
2245
2242
|
else if (!Le(c))
|
|
2246
2243
|
return Ae;
|
|
2247
|
-
|
|
2244
|
+
g = g && Rt(c, d, l), d = c;
|
|
2248
2245
|
}
|
|
2249
2246
|
p = p || m && s - y - 1 > i && e[y + 1] !== " ";
|
|
2250
2247
|
}
|
|
2251
|
-
return !u && !p ?
|
|
2248
|
+
return !u && !p ? g && !a && !r(e) ? Hn : o === Be ? Ae : tt : n > 9 && qn(e) ? Ae : a ? o === Be ? Ae : tt : p ? Yn : Vn;
|
|
2252
2249
|
}
|
|
2253
2250
|
function wo(e, t, n, i, r) {
|
|
2254
2251
|
e.dump = function() {
|
|
2255
2252
|
if (t.length === 0)
|
|
2256
2253
|
return e.quotingType === Be ? '""' : "''";
|
|
2257
|
-
if (!e.noCompatMode && (
|
|
2254
|
+
if (!e.noCompatMode && (ho.indexOf(t) !== -1 || go.test(t)))
|
|
2258
2255
|
return e.quotingType === Be ? '"' + t + '"' : "'" + t + "'";
|
|
2259
2256
|
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;
|
|
2260
2257
|
function s(c) {
|
|
@@ -2330,7 +2327,7 @@ function To(e, t, n) {
|
|
|
2330
2327
|
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (pe(e, t, l, !1, !1) || typeof l > "u" && pe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
2331
2328
|
e.tag = r, e.dump = "[" + i + "]";
|
|
2332
2329
|
}
|
|
2333
|
-
function
|
|
2330
|
+
function jt(e, t, n, i) {
|
|
2334
2331
|
var r = "", o = e.tag, a, l, s;
|
|
2335
2332
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
2336
2333
|
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (pe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += et(e, t)), e.dump && Oe === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
@@ -2354,7 +2351,7 @@ function Io(e, t, n, i) {
|
|
|
2354
2351
|
p = "", (!i || r !== "") && (p += et(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), pe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Oe === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += et(e, t)), pe(e, t + 1, d, !0, u) && (e.dump && Oe === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
|
|
2355
2352
|
e.tag = o, e.dump = r || "{}";
|
|
2356
2353
|
}
|
|
2357
|
-
function
|
|
2354
|
+
function Dt(e, t, n) {
|
|
2358
2355
|
var i, r, o, a, l, s;
|
|
2359
2356
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2360
2357
|
if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
@@ -2372,7 +2369,7 @@ function jt(e, t, n) {
|
|
|
2372
2369
|
return !1;
|
|
2373
2370
|
}
|
|
2374
2371
|
function pe(e, t, n, i, r, o, a) {
|
|
2375
|
-
e.tag = null, e.dump = n,
|
|
2372
|
+
e.tag = null, e.dump = n, Dt(e, n, !1) || Dt(e, n, !0);
|
|
2376
2373
|
var l = Kn.call(e.dump), s = i, c;
|
|
2377
2374
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2378
2375
|
var d = l === "[object Object]" || l === "[object Array]", u, p;
|
|
@@ -2382,7 +2379,7 @@ function pe(e, t, n, i, r, o, a) {
|
|
|
2382
2379
|
if (d && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2383
2380
|
i && Object.keys(e.dump).length !== 0 ? (Io(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Eo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2384
2381
|
else if (l === "[object Array]")
|
|
2385
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ?
|
|
2382
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? jt(e, t - 1, e.dump, r) : jt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (To(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2386
2383
|
else if (l === "[object String]")
|
|
2387
2384
|
e.tag !== "?" && wo(e, e.dump, t, o, s);
|
|
2388
2385
|
else {
|
|
@@ -2431,9 +2428,9 @@ function dt(e, t) {
|
|
|
2431
2428
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2432
2429
|
};
|
|
2433
2430
|
}
|
|
2434
|
-
var Ro = ie, Ko = ln, No = dn, Mo =
|
|
2431
|
+
var Ro = ie, Ko = ln, No = dn, Mo = gn, jo = yn, Do = lt, Po = Rn.load, Uo = Rn.loadAll, qo = Lo.dump, Ho = oe, Vo = {
|
|
2435
2432
|
binary: xn,
|
|
2436
|
-
float:
|
|
2433
|
+
float: hn,
|
|
2437
2434
|
map: un,
|
|
2438
2435
|
null: fn,
|
|
2439
2436
|
pairs: _n,
|
|
@@ -2450,9 +2447,9 @@ var Ro = ie, Ko = ln, No = dn, Mo = hn, Po = yn, jo = lt, Do = Rn.load, Uo = Rn.
|
|
|
2450
2447
|
Schema: Ko,
|
|
2451
2448
|
FAILSAFE_SCHEMA: No,
|
|
2452
2449
|
JSON_SCHEMA: Mo,
|
|
2453
|
-
CORE_SCHEMA:
|
|
2454
|
-
DEFAULT_SCHEMA:
|
|
2455
|
-
load:
|
|
2450
|
+
CORE_SCHEMA: jo,
|
|
2451
|
+
DEFAULT_SCHEMA: Do,
|
|
2452
|
+
load: Po,
|
|
2456
2453
|
loadAll: Uo,
|
|
2457
2454
|
dump: qo,
|
|
2458
2455
|
YAMLException: Ho,
|
|
@@ -2476,16 +2473,16 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2476
2473
|
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Wn.dump(i).trim();
|
|
2477
2474
|
});
|
|
2478
2475
|
return (i, r) => {
|
|
2479
|
-
const o =
|
|
2480
|
-
return
|
|
2481
|
-
t.entityRecord ? (
|
|
2476
|
+
const o = P("KCodeBlock");
|
|
2477
|
+
return h(), T("div", Go, [
|
|
2478
|
+
t.entityRecord ? (h(), M(o, {
|
|
2482
2479
|
key: 0,
|
|
2483
2480
|
id: "yaml-codeblock",
|
|
2484
2481
|
code: n.value,
|
|
2485
2482
|
language: "yaml",
|
|
2486
2483
|
theme: "dark",
|
|
2487
2484
|
onCodeBlockRender: A(Te)
|
|
2488
|
-
}, null, 8, ["code", "onCodeBlockRender"])) :
|
|
2485
|
+
}, null, 8, ["code", "onCodeBlockRender"])) : j("", !0)
|
|
2489
2486
|
]);
|
|
2490
2487
|
};
|
|
2491
2488
|
}
|
|
@@ -2528,11 +2525,11 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2528
2525
|
`), c === null)
|
|
2529
2526
|
return d ? m += `${p}}` : m = "{}", m;
|
|
2530
2527
|
const y = Object.fromEntries(Object.entries(c).filter(([, k]) => k !== null));
|
|
2531
|
-
let
|
|
2528
|
+
let g = "";
|
|
2532
2529
|
for (const [k, C] of Object.entries(y))
|
|
2533
|
-
Array.isArray(C) ? C.length === 0 ?
|
|
2534
|
-
`,
|
|
2535
|
-
`,
|
|
2530
|
+
Array.isArray(C) ? C.length === 0 ? g = "[]" : (g = `[
|
|
2531
|
+
`, g += a(C, void 0, p), g += `${p}${te}]`) : C && typeof C == "object" ? (g = `{
|
|
2532
|
+
`, g += o(C, void 0, p), g += `${p}${te}}`) : g = String(C ?? ""), typeof C == "string" && (g = `"${g}"`), m += `${p}${te}${k} = ${g}
|
|
2536
2533
|
`;
|
|
2537
2534
|
return d ? m += `${p}}
|
|
2538
2535
|
` : m;
|
|
@@ -2544,9 +2541,9 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2544
2541
|
d && (c.length === 0 ? m += `${p}${d} = [` : m += `${p}${d} = [
|
|
2545
2542
|
`);
|
|
2546
2543
|
for (let y = 0; y < c.length; y++) {
|
|
2547
|
-
const
|
|
2548
|
-
typeof
|
|
2549
|
-
`, m += o(
|
|
2544
|
+
const g = c[y];
|
|
2545
|
+
typeof g == "object" ? (m += `${p}${te}{
|
|
2546
|
+
`, m += o(g, void 0, p), m += `${p}${te}}`) : typeof g == "string" ? m += `${p}${te}"${g}"` : m += `${p}${te}${String(g ?? "")}`, y < c.length - 1 && (m += ","), m += `
|
|
2550
2547
|
`;
|
|
2551
2548
|
}
|
|
2552
2549
|
return d && (c.length === 0 ? m += `]
|
|
@@ -2558,20 +2555,20 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2558
2555
|
Array.isArray(p) ? d += a(p, u) : typeof p == "object" ? d += o(p, u) : d += r(p, u);
|
|
2559
2556
|
return d;
|
|
2560
2557
|
}, s = $(() => {
|
|
2561
|
-
var m, y,
|
|
2562
|
-
const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([,
|
|
2558
|
+
var m, y, g, k, C, x, B;
|
|
2559
|
+
const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, D]) => D != null)), d = t.entityRecord.config ? Object.fromEntries(Object.entries((m = t.entityRecord) == null ? void 0 : m.config).filter(([, D]) => D != null)) : void 0;
|
|
2563
2560
|
if (d && (c.config = d), Object.keys(c).length === 0)
|
|
2564
2561
|
return "";
|
|
2565
2562
|
delete c.id;
|
|
2566
2563
|
let u = "", p = "";
|
|
2567
|
-
if ((y = c.service) != null && y.id ? (p = "service", delete c.service) : (
|
|
2568
|
-
const
|
|
2569
|
-
u += `resource "konnect_event_gateway_${
|
|
2564
|
+
if ((y = c.service) != null && y.id ? (p = "service", delete c.service) : (g = c.route) != null && g.id ? (p = "route", delete c.route) : (k = c.consumer) != null && k.id ? (p = "consumer", delete c.consumer) : (C = c.consumer_group) != null && C.id ? (p = "consumer_group", delete c.consumer_group) : (x = c.certificate) != null && x.id ? (p = "certificate", delete c.certificate) : (B = c.set) != null && B.id && (p = "set", delete c.set), n.value) {
|
|
2565
|
+
const D = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
|
|
2566
|
+
u += `resource "konnect_event_gateway_${D}" "my_eventgateway${D.replaceAll("_", "")}" {
|
|
2570
2567
|
`, u += `${te}provider = konnect-beta
|
|
2571
2568
|
`;
|
|
2572
2569
|
} else if (t.entityType === "plugin") {
|
|
2573
|
-
const
|
|
2574
|
-
delete c.name, u += `resource "konnect_gateway_plugin_${
|
|
2570
|
+
const D = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
|
|
2571
|
+
delete c.name, u += `resource "konnect_gateway_plugin_${D}" "my_${D}" {
|
|
2575
2572
|
`;
|
|
2576
2573
|
} else i.value ? (u += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
|
|
2577
2574
|
`, u += `${te}provider = konnect-beta
|
|
@@ -2585,16 +2582,16 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2585
2582
|
`, u;
|
|
2586
2583
|
});
|
|
2587
2584
|
return (c, d) => {
|
|
2588
|
-
const u =
|
|
2589
|
-
return
|
|
2590
|
-
t.entityRecord ? (
|
|
2585
|
+
const u = P("KCodeBlock");
|
|
2586
|
+
return h(), T("div", zo, [
|
|
2587
|
+
t.entityRecord ? (h(), M(u, {
|
|
2591
2588
|
key: 0,
|
|
2592
2589
|
id: "terraform-codeblock",
|
|
2593
2590
|
code: s.value,
|
|
2594
2591
|
language: "terraform",
|
|
2595
2592
|
theme: "dark",
|
|
2596
2593
|
onCodeBlockRender: A(Te)
|
|
2597
|
-
}, null, 8, ["code", "onCodeBlockRender"])) :
|
|
2594
|
+
}, null, 8, ["code", "onCodeBlockRender"])) : j("", !0)
|
|
2598
2595
|
]);
|
|
2599
2596
|
};
|
|
2600
2597
|
}
|
|
@@ -2669,15 +2666,15 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2669
2666
|
const s = JSON.parse(JSON.stringify(l));
|
|
2670
2667
|
return delete s.created_at, delete s.updated_at, s;
|
|
2671
2668
|
}), a = $(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
|
|
2672
|
-
return (l, s) => (
|
|
2673
|
-
e.format === "structured" ? (
|
|
2674
|
-
(
|
|
2669
|
+
return (l, s) => (h(), T(ue, null, [
|
|
2670
|
+
e.format === "structured" ? (h(), T("div", Qo, [
|
|
2671
|
+
(h(!0), T(ue, null, ce(e.propListTypes, (c) => (h(), T("div", {
|
|
2675
2672
|
key: `config-card-details-${c}-props`,
|
|
2676
2673
|
class: fe(`config-card-details-${c}-props`),
|
|
2677
2674
|
"data-testid": `config-card-details-${c}-props`
|
|
2678
2675
|
}, [
|
|
2679
|
-
c !== "basic" ? (
|
|
2680
|
-
(
|
|
2676
|
+
c !== "basic" ? (h(), T("div", Xo, O(c === "advanced" ? A(i)("baseConfigCard.sections.advanced") : c === "plugin" ? A(i)("baseConfigCard.sections.plugin") : A(i)("baseConfigCard.sections.policy")), 1)) : j("", !0),
|
|
2677
|
+
(h(!0), T(ue, null, ce(e.propertyCollections[c], (d) => U(l.$slots, `config-card-item-${d.key}`, {
|
|
2681
2678
|
key: d.key,
|
|
2682
2679
|
item: d
|
|
2683
2680
|
}, () => [
|
|
@@ -2703,24 +2700,24 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2703
2700
|
]), 1032, ["item"])
|
|
2704
2701
|
], !0)), 128))
|
|
2705
2702
|
], 10, Zo))), 128))
|
|
2706
|
-
])) :
|
|
2707
|
-
e.format === "json" && o.value ? (
|
|
2703
|
+
])) : j("", !0),
|
|
2704
|
+
e.format === "json" && o.value ? (h(), M(rn, {
|
|
2708
2705
|
key: 1,
|
|
2709
2706
|
config: t.config,
|
|
2710
2707
|
"entity-record": o.value,
|
|
2711
2708
|
"fetcher-url": a.value,
|
|
2712
2709
|
"request-method": "get"
|
|
2713
|
-
}, null, 8, ["config", "entity-record", "fetcher-url"])) :
|
|
2714
|
-
e.format === "yaml" && o.value ? (
|
|
2710
|
+
}, null, 8, ["config", "entity-record", "fetcher-url"])) : j("", !0),
|
|
2711
|
+
e.format === "yaml" && o.value ? (h(), M(Jn, {
|
|
2715
2712
|
key: 2,
|
|
2716
2713
|
"entity-record": o.value
|
|
2717
|
-
}, null, 8, ["entity-record"])) :
|
|
2718
|
-
e.format === "terraform" && o.value ? (
|
|
2714
|
+
}, null, 8, ["entity-record"])) : j("", !0),
|
|
2715
|
+
e.format === "terraform" && o.value ? (h(), M(Gn, {
|
|
2719
2716
|
key: 3,
|
|
2720
2717
|
"entity-record": o.value,
|
|
2721
2718
|
"entity-type": t.entityType,
|
|
2722
2719
|
"sub-entity-type": t.subEntityType
|
|
2723
|
-
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) :
|
|
2720
|
+
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : j("", !0)
|
|
2724
2721
|
], 64));
|
|
2725
2722
|
}
|
|
2726
2723
|
}), tl = /* @__PURE__ */ le(el, [["__scopeId", "data-v-a7689049"]]), nl = {
|
|
@@ -2870,7 +2867,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2870
2867
|
label: r("baseForm.configuration.terraform"),
|
|
2871
2868
|
value: "terraform"
|
|
2872
2869
|
});
|
|
2873
|
-
const c = s[0].value, d =
|
|
2870
|
+
const c = s[0].value, d = N(c), u = (f) => {
|
|
2874
2871
|
d.value = f == null ? void 0 : f.value, n("configFormatChange", d.value);
|
|
2875
2872
|
}, p = (f, v) => {
|
|
2876
2873
|
localStorage.setItem(f, v);
|
|
@@ -2924,7 +2921,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2924
2921
|
// the last property displayed
|
|
2925
2922
|
section: ae.Basic
|
|
2926
2923
|
}
|
|
2927
|
-
}, y =
|
|
2924
|
+
}, y = N(!1), g = N(!1), k = N(""), C = N({}), x = $(() => {
|
|
2928
2925
|
var b, V, J;
|
|
2929
2926
|
if (!C.value)
|
|
2930
2927
|
return [];
|
|
@@ -2975,7 +2972,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
2975
2972
|
section: ae.Plugin
|
|
2976
2973
|
};
|
|
2977
2974
|
}).filter((E) => !E.hidden);
|
|
2978
|
-
}),
|
|
2975
|
+
}), D = $(() => {
|
|
2979
2976
|
var V, J;
|
|
2980
2977
|
if (!C.value || !i.policyConfigKey)
|
|
2981
2978
|
return [];
|
|
@@ -3006,7 +3003,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3006
3003
|
basic: (f = x.value) == null ? void 0 : f.filter((R) => R.section === ae.Basic),
|
|
3007
3004
|
advanced: (v = x.value) == null ? void 0 : v.filter((R) => R.section === ae.Advanced),
|
|
3008
3005
|
plugin: (V = B.value) == null ? void 0 : V.concat((b = x.value) == null ? void 0 : b.filter((R) => R.section === ae.Plugin)),
|
|
3009
|
-
policy: (E =
|
|
3006
|
+
policy: (E = D.value) == null ? void 0 : E.concat((J = x.value) == null ? void 0 : J.filter((R) => R.section === ae.Policy))
|
|
3010
3007
|
};
|
|
3011
3008
|
}), S = $(() => {
|
|
3012
3009
|
const f = [];
|
|
@@ -3019,7 +3016,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3019
3016
|
return be(y, (f) => {
|
|
3020
3017
|
n("loading", f);
|
|
3021
3018
|
}, { immediate: !0 }), rt(async () => {
|
|
3022
|
-
|
|
3019
|
+
g.value = !1, y.value = !0;
|
|
3023
3020
|
try {
|
|
3024
3021
|
const { data: f } = await l.get(w.value);
|
|
3025
3022
|
if (i.dataKey)
|
|
@@ -3033,13 +3030,13 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3033
3030
|
}), n("fetch:success", f);
|
|
3034
3031
|
} catch (f) {
|
|
3035
3032
|
const v = o(f);
|
|
3036
|
-
k.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v,
|
|
3033
|
+
k.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, g.value = !0, n("fetch:error", f);
|
|
3037
3034
|
} finally {
|
|
3038
3035
|
y.value = !1;
|
|
3039
3036
|
}
|
|
3040
3037
|
}), (f, v) => {
|
|
3041
|
-
const b =
|
|
3042
|
-
return
|
|
3038
|
+
const b = P("KLabel"), V = P("KSelect"), J = P("KButton"), E = P("KSkeleton"), R = P("KEmptyState"), G = P("KCard");
|
|
3039
|
+
return h(), M(G, {
|
|
3043
3040
|
class: "kong-ui-entity-base-config-card",
|
|
3044
3041
|
"title-tag": e.titleTag
|
|
3045
3042
|
}, $e({
|
|
@@ -3062,7 +3059,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3062
3059
|
items: s,
|
|
3063
3060
|
onChange: u
|
|
3064
3061
|
}, null, 8, ["modelValue"]),
|
|
3065
|
-
e.configCardDoc ? (
|
|
3062
|
+
e.configCardDoc ? (h(), M(J, {
|
|
3066
3063
|
key: 0,
|
|
3067
3064
|
appearance: "tertiary",
|
|
3068
3065
|
class: "book-icon",
|
|
@@ -3078,16 +3075,16 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3078
3075
|
], 8, rl)
|
|
3079
3076
|
]),
|
|
3080
3077
|
_: 1
|
|
3081
|
-
})) :
|
|
3078
|
+
})) : j("", !0)
|
|
3082
3079
|
])
|
|
3083
3080
|
]),
|
|
3084
3081
|
default: _(() => [
|
|
3085
|
-
y.value ? (
|
|
3082
|
+
y.value ? (h(), M(E, {
|
|
3086
3083
|
key: 0,
|
|
3087
3084
|
"data-testid": "config-card-loader",
|
|
3088
3085
|
"table-columns": 2,
|
|
3089
3086
|
type: "table"
|
|
3090
|
-
})) :
|
|
3087
|
+
})) : g.value ? (h(), M(R, {
|
|
3091
3088
|
key: 1,
|
|
3092
3089
|
"data-testid": "config-card-fetch-error",
|
|
3093
3090
|
"icon-variant": "error"
|
|
@@ -3096,7 +3093,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3096
3093
|
L("h3", null, O(k.value), 1)
|
|
3097
3094
|
]),
|
|
3098
3095
|
_: 1
|
|
3099
|
-
})) :
|
|
3096
|
+
})) : j("", !0),
|
|
3100
3097
|
L("div", al, [
|
|
3101
3098
|
K(tl, {
|
|
3102
3099
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
@@ -3137,29 +3134,26 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3137
3134
|
}), Fs = /* @__PURE__ */ le(ol, [["__scopeId", "data-v-f2b42324"]]), ll = { class: "deck-config config-card-code-block" }, sl = /* @__PURE__ */ z({
|
|
3138
3135
|
__name: "DeckCodeBlock",
|
|
3139
3136
|
props: {
|
|
3140
|
-
app: {},
|
|
3141
3137
|
entityRecord: {},
|
|
3142
3138
|
entityType: {},
|
|
3143
3139
|
geoApiServerUrl: {},
|
|
3144
|
-
controlPlaneName: {}
|
|
3145
|
-
kongAdminApiUrl: {},
|
|
3146
|
-
workspace: {}
|
|
3140
|
+
controlPlaneName: {}
|
|
3147
3141
|
},
|
|
3148
3142
|
setup(e) {
|
|
3149
3143
|
const t = e, { i18n: n, i18nT: i } = W.useI18n(), r = [
|
|
3150
3144
|
{ value: "bash", label: "Linux / macOS Bash" },
|
|
3151
3145
|
{ value: "powershell", label: "Windows PowerShell" }
|
|
3152
|
-
], o =
|
|
3146
|
+
], o = N(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = $(() => {
|
|
3153
3147
|
const d = {
|
|
3154
3148
|
_format_version: "3.0"
|
|
3155
3149
|
};
|
|
3156
|
-
return t.controlPlaneName
|
|
3150
|
+
return t.controlPlaneName && (d._konnect = {
|
|
3157
3151
|
control_plane_name: t.controlPlaneName
|
|
3158
|
-
}
|
|
3152
|
+
}), d;
|
|
3159
3153
|
}), l = $(() => {
|
|
3160
|
-
var m, y,
|
|
3154
|
+
var m, y, g, k, C;
|
|
3161
3155
|
const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x !== null && x !== "" && (Array.isArray(x) ? x.length !== 0 : !0)));
|
|
3162
|
-
t.entityType === Se.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (y = d.route) != null && y.id && (d.route = d.route.id), (
|
|
3156
|
+
t.entityType === Se.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (y = d.route) != null && y.id && (d.route = d.route.id), (g = d.consumer) != null && g.id && (d.consumer = d.consumer.id), (k = d.consumer_group) != null && k.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === Se.Key && (C = d.key_set) != null && C.id && (d.key_set = d.key_set.id);
|
|
3163
3157
|
const u = t.entityType === Se.KeySet ? "key_sets" : t.entityType + "s", p = {
|
|
3164
3158
|
...a.value,
|
|
3165
3159
|
[u]: [d]
|
|
@@ -3167,34 +3161,32 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
|
|
|
3167
3161
|
return Wn.dump(p, { quotingType: '"' }).trim();
|
|
3168
3162
|
}), s = $(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), c = $(() => {
|
|
3169
3163
|
let d = "deck gateway apply -";
|
|
3170
|
-
return t.geoApiServerUrl
|
|
3164
|
+
return t.geoApiServerUrl && (d += ` --konnect-addr ${t.geoApiServerUrl}`), o.value === "bash" ? `echo '
|
|
3171
3165
|
${l.value}
|
|
3172
3166
|
' | ${d}` : `@'
|
|
3173
3167
|
${l.value}
|
|
3174
3168
|
'@ | ${d}`;
|
|
3175
3169
|
});
|
|
3176
3170
|
return (d, u) => {
|
|
3177
|
-
const p =
|
|
3178
|
-
return
|
|
3171
|
+
const p = P("KSelect"), m = P("KBadge"), y = P("KCodeBlock");
|
|
3172
|
+
return h(), T("div", ll, [
|
|
3179
3173
|
K(p, {
|
|
3180
3174
|
modelValue: o.value,
|
|
3181
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3175
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => o.value = g),
|
|
3182
3176
|
items: r
|
|
3183
3177
|
}, {
|
|
3184
|
-
"item-template": _(({ item:
|
|
3185
|
-
|
|
3186
|
-
q(" " + O(
|
|
3178
|
+
"item-template": _(({ item: g }) => [
|
|
3179
|
+
g.value === "powershell" ? (h(), M(A(gt), { key: 0 })) : (h(), M(A(yt), { key: 1 })),
|
|
3180
|
+
q(" " + O(g.label), 1)
|
|
3187
3181
|
]),
|
|
3188
|
-
"selected-item-template": _(({ item:
|
|
3189
|
-
|
|
3190
|
-
q(" " + O(
|
|
3182
|
+
"selected-item-template": _(({ item: g }) => [
|
|
3183
|
+
g.value === "powershell" ? (h(), M(A(gt), { key: 0 })) : (h(), M(A(yt), { key: 1 })),
|
|
3184
|
+
q(" " + O(g.label), 1)
|
|
3191
3185
|
]),
|
|
3192
3186
|
_: 1
|
|
3193
3187
|
}, 8, ["modelValue"]),
|
|
3194
3188
|
L("p", null, [
|
|
3195
|
-
K(A(i), {
|
|
3196
|
-
keypath: `deckCodeBlock.hint.${e.app}`
|
|
3197
|
-
}, {
|
|
3189
|
+
K(A(i), { keypath: "deckCodeBlock.hint" }, {
|
|
3198
3190
|
token: _(() => [
|
|
3199
3191
|
K(m, null, {
|
|
3200
3192
|
default: _(() => [...u[1] || (u[1] = [
|
|
@@ -3204,39 +3196,36 @@ ${l.value}
|
|
|
3204
3196
|
})
|
|
3205
3197
|
]),
|
|
3206
3198
|
link: _(() => [
|
|
3207
|
-
K(A(oi), {
|
|
3208
|
-
href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
|
|
3209
|
-
}, {
|
|
3199
|
+
K(A(oi), { href: "https://developer.konghq.com/deck/get-started/" }, {
|
|
3210
3200
|
default: _(() => [
|
|
3211
3201
|
q(O(A(n).t("deckCodeBlock.documentation")), 1)
|
|
3212
3202
|
]),
|
|
3213
3203
|
_: 1
|
|
3214
|
-
}
|
|
3204
|
+
})
|
|
3215
3205
|
]),
|
|
3216
3206
|
_: 1
|
|
3217
|
-
}
|
|
3207
|
+
})
|
|
3218
3208
|
]),
|
|
3219
|
-
|
|
3220
|
-
key: 0,
|
|
3209
|
+
K(y, {
|
|
3221
3210
|
id: "deck-env-codeblock",
|
|
3222
3211
|
code: s.value,
|
|
3223
3212
|
language: o.value,
|
|
3224
3213
|
"single-line": "",
|
|
3225
3214
|
theme: "dark",
|
|
3226
3215
|
onCodeBlockRender: A(Te)
|
|
3227
|
-
}, null, 8, ["code", "language", "onCodeBlockRender"])
|
|
3228
|
-
t.entityRecord ? (
|
|
3229
|
-
key:
|
|
3216
|
+
}, null, 8, ["code", "language", "onCodeBlockRender"]),
|
|
3217
|
+
t.entityRecord ? (h(), M(y, {
|
|
3218
|
+
key: 0,
|
|
3230
3219
|
id: "deck-codeblock",
|
|
3231
3220
|
code: c.value,
|
|
3232
3221
|
language: o.value,
|
|
3233
3222
|
theme: "dark",
|
|
3234
3223
|
onCodeBlockRender: A(Te)
|
|
3235
|
-
}, null, 8, ["code", "language", "onCodeBlockRender"])) :
|
|
3224
|
+
}, null, 8, ["code", "language", "onCodeBlockRender"])) : j("", !0)
|
|
3236
3225
|
]);
|
|
3237
3226
|
};
|
|
3238
3227
|
}
|
|
3239
|
-
}), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-
|
|
3228
|
+
}), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-22097768"]]), ul = ["novalidate"], dl = /* @__PURE__ */ z({
|
|
3240
3229
|
__name: "EntityBaseForm",
|
|
3241
3230
|
props: {
|
|
3242
3231
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3360,7 +3349,7 @@ ${l.value}
|
|
|
3360
3349
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3361
3350
|
setup(e, { expose: t, emit: n }) {
|
|
3362
3351
|
var X;
|
|
3363
|
-
const i = n, r = e, o =
|
|
3352
|
+
const i = n, r = e, o = hi(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: l } = W.useErrors(), { axiosInstance: s } = W.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = N(!1), d = $(() => !!r.editId), u = N(!1), p = N(""), m = $(() => r.canSubmit === !1 || r.isReadonly), y = N(!1), g = $(() => {
|
|
3364
3353
|
var w, F;
|
|
3365
3354
|
let S = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3366
3355
|
return r.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), r.editId ? (S = S.replace(/{id}/gi, r.editId), S) : (S = S.replace(/\/{id}/gi, ""), S);
|
|
@@ -3372,7 +3361,7 @@ ${l.value}
|
|
|
3372
3361
|
i("cancel");
|
|
3373
3362
|
}, B = () => {
|
|
3374
3363
|
m.value || i("submit");
|
|
3375
|
-
},
|
|
3364
|
+
}, D = N([
|
|
3376
3365
|
{
|
|
3377
3366
|
title: a("baseForm.configuration.json"),
|
|
3378
3367
|
hash: "#json"
|
|
@@ -3382,10 +3371,10 @@ ${l.value}
|
|
|
3382
3371
|
hash: "#yaml"
|
|
3383
3372
|
}
|
|
3384
3373
|
]);
|
|
3385
|
-
return r.config.app === "konnect" && r.entityType !== Se.Other &&
|
|
3374
|
+
return r.config.app === "konnect" && r.entityType !== Se.Other && D.value.splice(1, 0, {
|
|
3386
3375
|
title: a("baseForm.configuration.terraform"),
|
|
3387
3376
|
hash: "#terraform"
|
|
3388
|
-
}), r.config.app === "konnect" && r.config.enableDeckTab && vi.includes(r.entityType) &&
|
|
3377
|
+
}), r.config.app === "konnect" && r.config.enableDeckTab && vi.includes(r.entityType) && D.value.push({
|
|
3389
3378
|
title: a("baseForm.configuration.deck"),
|
|
3390
3379
|
hash: "#deck"
|
|
3391
3380
|
}), be(() => c.value, (S) => {
|
|
@@ -3394,7 +3383,7 @@ ${l.value}
|
|
|
3394
3383
|
if (r.editId)
|
|
3395
3384
|
try {
|
|
3396
3385
|
u.value = !1, c.value = !0;
|
|
3397
|
-
const { data: S } = await s.get(
|
|
3386
|
+
const { data: S } = await s.get(g.value);
|
|
3398
3387
|
i("fetch:success", S);
|
|
3399
3388
|
} catch (S) {
|
|
3400
3389
|
const w = l(S);
|
|
@@ -3407,13 +3396,13 @@ ${l.value}
|
|
|
3407
3396
|
formCancel: x,
|
|
3408
3397
|
formSubmit: B
|
|
3409
3398
|
}), (S, w) => {
|
|
3410
|
-
const F =
|
|
3411
|
-
return
|
|
3399
|
+
const F = P("KSkeleton"), f = P("KEmptyState"), v = P("KAlert"), b = P("KButton"), V = P("KTabs"), J = P("KSlideout");
|
|
3400
|
+
return h(), M(Pe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3412
3401
|
default: _(() => [
|
|
3413
|
-
c.value ? (
|
|
3402
|
+
c.value ? (h(), M(F, {
|
|
3414
3403
|
key: 0,
|
|
3415
3404
|
type: "form"
|
|
3416
|
-
})) : u.value ? (
|
|
3405
|
+
})) : u.value ? (h(), M(f, {
|
|
3417
3406
|
key: 1,
|
|
3418
3407
|
"action-button-text": A(a)("baseForm.actions.back"),
|
|
3419
3408
|
"data-testid": "form-fetch-error",
|
|
@@ -3424,7 +3413,7 @@ ${l.value}
|
|
|
3424
3413
|
L("h3", null, O(p.value), 1)
|
|
3425
3414
|
]),
|
|
3426
3415
|
_: 1
|
|
3427
|
-
}, 8, ["action-button-text"])) : (
|
|
3416
|
+
}, 8, ["action-button-text"])) : (h(), T("form", {
|
|
3428
3417
|
key: 2,
|
|
3429
3418
|
"data-testid": "form-content",
|
|
3430
3419
|
novalidate: r.noValidate,
|
|
@@ -3432,13 +3421,13 @@ ${l.value}
|
|
|
3432
3421
|
onSubmit: Re(B, ["prevent"])
|
|
3433
3422
|
}, [
|
|
3434
3423
|
U(S.$slots, "default", {}, void 0, !0),
|
|
3435
|
-
e.errorMessage ? (
|
|
3424
|
+
e.errorMessage ? (h(), M(v, {
|
|
3436
3425
|
key: 0,
|
|
3437
3426
|
appearance: "danger",
|
|
3438
3427
|
"data-testid": "form-error",
|
|
3439
3428
|
message: e.errorMessage
|
|
3440
|
-
}, null, 8, ["message"])) :
|
|
3441
|
-
e.hideActions ?
|
|
3429
|
+
}, null, 8, ["message"])) : j("", !0),
|
|
3430
|
+
e.hideActions ? j("", !0) : (h(), M(Wt, {
|
|
3442
3431
|
key: 1,
|
|
3443
3432
|
disabled: !e.actionTeleportTarget,
|
|
3444
3433
|
to: e.actionTeleportTarget
|
|
@@ -3499,14 +3488,14 @@ ${l.value}
|
|
|
3499
3488
|
L("div", null, O(A(a)("baseForm.configuration.message")), 1),
|
|
3500
3489
|
K(V, {
|
|
3501
3490
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3502
|
-
tabs:
|
|
3491
|
+
tabs: D.value,
|
|
3503
3492
|
onChange: w[3] || (w[3] = (E) => i("codeBlockTabChange", E.replace("#", "")))
|
|
3504
3493
|
}, {
|
|
3505
3494
|
json: _(() => [
|
|
3506
3495
|
K(rn, {
|
|
3507
3496
|
config: e.config,
|
|
3508
3497
|
"entity-record": r.formFields,
|
|
3509
|
-
"fetcher-url":
|
|
3498
|
+
"fetcher-url": g.value,
|
|
3510
3499
|
"request-method": r.editId ? "put" : "post"
|
|
3511
3500
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3512
3501
|
]),
|
|
@@ -3524,14 +3513,11 @@ ${l.value}
|
|
|
3524
3513
|
]),
|
|
3525
3514
|
deck: _(() => [
|
|
3526
3515
|
K(cl, {
|
|
3527
|
-
app: e.config.app,
|
|
3528
3516
|
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
3529
3517
|
"entity-record": r.formFields,
|
|
3530
3518
|
"entity-type": e.entityType,
|
|
3531
|
-
"geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0
|
|
3532
|
-
|
|
3533
|
-
workspace: e.config.app === "kongManager" ? e.config.workspace : void 0
|
|
3534
|
-
}, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])
|
|
3519
|
+
"geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0
|
|
3520
|
+
}, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-api-server-url"])
|
|
3535
3521
|
]),
|
|
3536
3522
|
_: 1
|
|
3537
3523
|
}, 8, ["tabs"])
|
|
@@ -3543,7 +3529,7 @@ ${l.value}
|
|
|
3543
3529
|
});
|
|
3544
3530
|
};
|
|
3545
3531
|
}
|
|
3546
|
-
}), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-
|
|
3532
|
+
}), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-23f330b9"]]), fl = ["data-truncate"], pl = /* @__PURE__ */ z({
|
|
3547
3533
|
__name: "EntityBaseTableCell",
|
|
3548
3534
|
props: {
|
|
3549
3535
|
keyName: {
|
|
@@ -3578,11 +3564,11 @@ ${l.value}
|
|
|
3578
3564
|
var C, x, B;
|
|
3579
3565
|
let k = ((C = n.value) == null ? void 0 : C.clientWidth) || 0;
|
|
3580
3566
|
if (n.value && "getComputedStyle" in window) {
|
|
3581
|
-
const
|
|
3582
|
-
k -= (parseFloat(
|
|
3567
|
+
const D = window.getComputedStyle(n.value);
|
|
3568
|
+
k -= (parseFloat(D.paddingLeft) || 0) + (parseFloat(D.paddingRight) || 0);
|
|
3583
3569
|
}
|
|
3584
3570
|
d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = k, p.value = ((B = c.value) == null ? void 0 : B.innerText) || "";
|
|
3585
|
-
}, c =
|
|
3571
|
+
}, c = N({}), d = N(0), u = N(0), p = N(""), m = $(() => [i.value, n.value]), y = be(
|
|
3586
3572
|
m,
|
|
3587
3573
|
(k) => {
|
|
3588
3574
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3596,26 +3582,26 @@ ${l.value}
|
|
|
3596
3582
|
}
|
|
3597
3583
|
},
|
|
3598
3584
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3599
|
-
),
|
|
3585
|
+
), g = $(() => o.value ? d.value > u.value : !1);
|
|
3600
3586
|
return it(() => {
|
|
3601
3587
|
s();
|
|
3602
3588
|
}), ei(() => {
|
|
3603
3589
|
y();
|
|
3604
3590
|
}), (k, C) => {
|
|
3605
|
-
const x =
|
|
3606
|
-
return
|
|
3591
|
+
const x = P("KTooltip");
|
|
3592
|
+
return h(), T("span", {
|
|
3607
3593
|
ref_key: "contentRef",
|
|
3608
3594
|
ref: c,
|
|
3609
3595
|
class: "content-wrapper"
|
|
3610
3596
|
}, [
|
|
3611
|
-
o.value ? (
|
|
3597
|
+
o.value ? (h(), T("span", {
|
|
3612
3598
|
key: 0,
|
|
3613
3599
|
"data-truncate": o.value || void 0
|
|
3614
3600
|
}, [
|
|
3615
3601
|
K(x, {
|
|
3616
3602
|
"max-width": "300",
|
|
3617
3603
|
placement: "bottom-start",
|
|
3618
|
-
text:
|
|
3604
|
+
text: g.value ? p.value : ""
|
|
3619
3605
|
}, {
|
|
3620
3606
|
default: _(() => [
|
|
3621
3607
|
U(k.$slots, "default", {}, void 0, !0)
|
|
@@ -3626,7 +3612,7 @@ ${l.value}
|
|
|
3626
3612
|
], 512);
|
|
3627
3613
|
};
|
|
3628
3614
|
}
|
|
3629
|
-
}), ml = /* @__PURE__ */ le(pl, [["__scopeId", "data-v-a3a65cac"]]),
|
|
3615
|
+
}), ml = /* @__PURE__ */ le(pl, [["__scopeId", "data-v-a3a65cac"]]), hl = { class: "toolbar-container" }, gl = {
|
|
3630
3616
|
key: 0,
|
|
3631
3617
|
class: "toolbar-button-container"
|
|
3632
3618
|
}, yl = {
|
|
@@ -3806,7 +3792,7 @@ ${l.value}
|
|
|
3806
3792
|
"data-rowid": f.id,
|
|
3807
3793
|
"data-testid": f.name,
|
|
3808
3794
|
...n.rowAttributes(f)
|
|
3809
|
-
}), c =
|
|
3795
|
+
}), c = N({}), d = (f) => {
|
|
3810
3796
|
var v;
|
|
3811
3797
|
return (v = c.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${f.id}"]`);
|
|
3812
3798
|
}, u = (f) => {
|
|
@@ -3825,12 +3811,12 @@ ${l.value}
|
|
|
3825
3811
|
i("empty-state-cta-clicked"), y();
|
|
3826
3812
|
}, y = () => {
|
|
3827
3813
|
i("clear-search-input");
|
|
3828
|
-
},
|
|
3814
|
+
}, g = $(() => n.disableRowClick ? void 0 : (f, v) => {
|
|
3829
3815
|
i("click:row", v);
|
|
3830
3816
|
}), k = (f) => {
|
|
3831
3817
|
i("sort", f);
|
|
3832
|
-
}, { hideTableToolbar: C, handleStateChange: x } = W.useTableState(() => n.query), { setTablePreferences: B, getTablePreferences:
|
|
3833
|
-
const f =
|
|
3818
|
+
}, { hideTableToolbar: C, handleStateChange: x } = W.useTableState(() => n.query), { setTablePreferences: B, getTablePreferences: D } = _i(), X = N(D(a.value, n.defaultTablePreferences)), S = $(() => {
|
|
3819
|
+
const f = D(a.value);
|
|
3834
3820
|
return {
|
|
3835
3821
|
...n.initialFetcherParams,
|
|
3836
3822
|
...f
|
|
@@ -3845,8 +3831,8 @@ ${l.value}
|
|
|
3845
3831
|
...n.paginationAttributes
|
|
3846
3832
|
}));
|
|
3847
3833
|
return (f, v) => {
|
|
3848
|
-
const b =
|
|
3849
|
-
return
|
|
3834
|
+
const b = P("KTableData"), V = P("KCard");
|
|
3835
|
+
return h(), M(V, {
|
|
3850
3836
|
class: "kong-ui-entity-base-table",
|
|
3851
3837
|
title: e.title,
|
|
3852
3838
|
"title-tag": e.titleTag
|
|
@@ -3883,17 +3869,17 @@ ${l.value}
|
|
|
3883
3869
|
sortable: !e.disableSorting,
|
|
3884
3870
|
"table-preferences": X.value,
|
|
3885
3871
|
onEmptyStateActionClick: m,
|
|
3886
|
-
"onRow:click":
|
|
3872
|
+
"onRow:click": g.value,
|
|
3887
3873
|
onSort: v[0] || (v[0] = (J) => k(J)),
|
|
3888
3874
|
onState: p,
|
|
3889
3875
|
"onUpdate:tablePreferences": w
|
|
3890
3876
|
}, $e({
|
|
3891
3877
|
toolbar: _(() => [
|
|
3892
|
-
L("div",
|
|
3878
|
+
L("div", hl, [
|
|
3893
3879
|
U(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3894
|
-
f.$slots["toolbar-button"] ? (
|
|
3880
|
+
f.$slots["toolbar-button"] ? (h(), T("div", gl, [
|
|
3895
3881
|
U(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3896
|
-
])) :
|
|
3882
|
+
])) : j("", !0)
|
|
3897
3883
|
])
|
|
3898
3884
|
]),
|
|
3899
3885
|
"action-items": _(({ row: J }) => [
|
|
@@ -3937,9 +3923,9 @@ ${l.value}
|
|
|
3937
3923
|
key: "1"
|
|
3938
3924
|
}
|
|
3939
3925
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
3940
|
-
f.$slots["outside-actions"] && A(C) ? (
|
|
3926
|
+
f.$slots["outside-actions"] && A(C) ? (h(), T("div", yl, [
|
|
3941
3927
|
U(f.$slots, "outside-actions", {}, void 0, !0)
|
|
3942
|
-
])) :
|
|
3928
|
+
])) : j("", !0)
|
|
3943
3929
|
]),
|
|
3944
3930
|
_: 3
|
|
3945
3931
|
}, 8, ["title", "title-tag"]);
|
|
@@ -3996,8 +3982,8 @@ ${l.value}
|
|
|
3996
3982
|
r("proceed");
|
|
3997
3983
|
};
|
|
3998
3984
|
return (s, c) => {
|
|
3999
|
-
const d =
|
|
4000
|
-
return
|
|
3985
|
+
const d = P("KAlert"), u = P("KPrompt");
|
|
3986
|
+
return h(), M(u, {
|
|
4001
3987
|
"action-button-appearance": "danger",
|
|
4002
3988
|
"action-button-disabled": e.actionPending,
|
|
4003
3989
|
"action-button-text": "Yes, delete",
|
|
@@ -4009,14 +3995,14 @@ ${l.value}
|
|
|
4009
3995
|
onProceed: l
|
|
4010
3996
|
}, {
|
|
4011
3997
|
default: _(() => [
|
|
4012
|
-
e.error ? (
|
|
3998
|
+
e.error ? (h(), T("div", bl, [
|
|
4013
3999
|
K(d, { appearance: "danger" }, {
|
|
4014
4000
|
default: _(() => [
|
|
4015
4001
|
q(O(e.error), 1)
|
|
4016
4002
|
]),
|
|
4017
4003
|
_: 1
|
|
4018
4004
|
})
|
|
4019
|
-
])) :
|
|
4005
|
+
])) : j("", !0),
|
|
4020
4006
|
K(A(n), {
|
|
4021
4007
|
class: "message",
|
|
4022
4008
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
@@ -4035,11 +4021,11 @@ ${l.value}
|
|
|
4035
4021
|
key: "0"
|
|
4036
4022
|
} : void 0
|
|
4037
4023
|
]), 1032, ["keypath"]),
|
|
4038
|
-
i.description || s.$slots.description ? (
|
|
4024
|
+
i.description || s.$slots.description ? (h(), T("div", kl, [
|
|
4039
4025
|
U(s.$slots, "description", {}, () => [
|
|
4040
4026
|
L("p", null, O(i.description), 1)
|
|
4041
4027
|
], !0)
|
|
4042
|
-
])) :
|
|
4028
|
+
])) : j("", !0)
|
|
4043
4029
|
]),
|
|
4044
4030
|
_: 3
|
|
4045
4031
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
@@ -4059,7 +4045,7 @@ ${l.value}
|
|
|
4059
4045
|
width: "20",
|
|
4060
4046
|
x: "0",
|
|
4061
4047
|
y: "0"
|
|
4062
|
-
}, _l = ["fill"], wl = { mask: "url(#mask0_180_20349)" }, Sl = ["fill"],
|
|
4048
|
+
}, _l = ["fill"], wl = { mask: "url(#mask0_180_20349)" }, Sl = ["fill"], Pt = /* @__PURE__ */ z({
|
|
4063
4049
|
__name: "IconFilter",
|
|
4064
4050
|
props: {
|
|
4065
4051
|
color: {
|
|
@@ -4068,7 +4054,7 @@ ${l.value}
|
|
|
4068
4054
|
}
|
|
4069
4055
|
},
|
|
4070
4056
|
setup(e) {
|
|
4071
|
-
return (t, n) => (
|
|
4057
|
+
return (t, n) => (h(), T("svg", xl, [
|
|
4072
4058
|
L("mask", Al, [
|
|
4073
4059
|
L("rect", {
|
|
4074
4060
|
fill: e.color,
|
|
@@ -4107,7 +4093,7 @@ ${l.value}
|
|
|
4107
4093
|
},
|
|
4108
4094
|
emits: ["update:modelValue"],
|
|
4109
4095
|
setup(e, { emit: t }) {
|
|
4110
|
-
const { i18n: { t: n } } = W.useI18n(), i = e, r = t, o =
|
|
4096
|
+
const { i18n: { t: n } } = W.useI18n(), i = e, r = t, o = N(!1), a = N({}), l = N(/* @__PURE__ */ new Set()), s = $(() => {
|
|
4111
4097
|
const S = [];
|
|
4112
4098
|
return new URLSearchParams(i.modelValue).forEach((w, F) => {
|
|
4113
4099
|
w !== "" && S.push(F);
|
|
@@ -4136,7 +4122,7 @@ ${l.value}
|
|
|
4136
4122
|
r("update:modelValue", S);
|
|
4137
4123
|
}, m = () => {
|
|
4138
4124
|
p("");
|
|
4139
|
-
}, y = (S) => `filter-${S}`,
|
|
4125
|
+
}, y = (S) => `filter-${S}`, g = (S) => {
|
|
4140
4126
|
var w, F;
|
|
4141
4127
|
return (((F = (w = i.config.schema) == null ? void 0 : w[S]) == null ? void 0 : F.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
|
|
4142
4128
|
}, k = (S) => {
|
|
@@ -4152,7 +4138,7 @@ ${l.value}
|
|
|
4152
4138
|
}, B = (S = !1) => {
|
|
4153
4139
|
const w = Object.keys(a.value).reduce((F, f) => (a.value[f] && (F[f] = `${a.value[f]}`), F), {});
|
|
4154
4140
|
S && (o.value = !1), r("update:modelValue", new URLSearchParams(w).toString());
|
|
4155
|
-
},
|
|
4141
|
+
}, D = (S) => {
|
|
4156
4142
|
var w, F;
|
|
4157
4143
|
return !!((F = (w = i.config.schema) == null ? void 0 : w[S]) != null && F.filterFunction);
|
|
4158
4144
|
}, X = (S, w) => {
|
|
@@ -4161,8 +4147,8 @@ ${l.value}
|
|
|
4161
4147
|
return (F == null ? void 0 : F.filterFunction) === void 0 ? !0 : F.filterFunction(w);
|
|
4162
4148
|
};
|
|
4163
4149
|
return (S, w) => {
|
|
4164
|
-
const F =
|
|
4165
|
-
return e.config.isExactMatch ? (
|
|
4150
|
+
const F = P("KInput"), f = P("KButton"), v = P("KSelect");
|
|
4151
|
+
return e.config.isExactMatch ? (h(), M(F, {
|
|
4166
4152
|
key: 0,
|
|
4167
4153
|
autocomplete: "off",
|
|
4168
4154
|
class: "kong-ui-entity-filter-input",
|
|
@@ -4172,7 +4158,7 @@ ${l.value}
|
|
|
4172
4158
|
"onUpdate:modelValue": p
|
|
4173
4159
|
}, {
|
|
4174
4160
|
before: _(() => [
|
|
4175
|
-
K(
|
|
4161
|
+
K(Pt)
|
|
4176
4162
|
]),
|
|
4177
4163
|
after: _(() => [
|
|
4178
4164
|
ke(K(A(fi), {
|
|
@@ -4185,14 +4171,14 @@ ${l.value}
|
|
|
4185
4171
|
])
|
|
4186
4172
|
]),
|
|
4187
4173
|
_: 1
|
|
4188
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
4174
|
+
}, 8, ["model-value", "placeholder"])) : (h(), T("div", $l, [
|
|
4189
4175
|
K(f, {
|
|
4190
4176
|
appearance: "tertiary",
|
|
4191
4177
|
"data-testid": "filter-button",
|
|
4192
4178
|
onClick: d
|
|
4193
4179
|
}, {
|
|
4194
4180
|
default: _(() => [
|
|
4195
|
-
K(
|
|
4181
|
+
K(Pt),
|
|
4196
4182
|
q(" " + O(A(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4197
4183
|
]),
|
|
4198
4184
|
_: 1
|
|
@@ -4204,9 +4190,9 @@ ${l.value}
|
|
|
4204
4190
|
[Ce, o.value]
|
|
4205
4191
|
]),
|
|
4206
4192
|
ke(L("div", Tl, [
|
|
4207
|
-
(
|
|
4193
|
+
(h(!0), T(ue, null, ce(c.value, (b) => {
|
|
4208
4194
|
var V, J;
|
|
4209
|
-
return
|
|
4195
|
+
return h(), T("div", {
|
|
4210
4196
|
key: b.value,
|
|
4211
4197
|
class: "kong-ui-entity-filter-menu-item",
|
|
4212
4198
|
"data-testid": b.value
|
|
@@ -4232,16 +4218,16 @@ ${l.value}
|
|
|
4232
4218
|
class: "menu-item-label",
|
|
4233
4219
|
for: y(b.value)
|
|
4234
4220
|
}, O(A(n)("filter.fieldLabel")), 9, Bl),
|
|
4235
|
-
((J = (V = e.config.schema) == null ? void 0 : V[b.value]) == null ? void 0 : J.type) === "select" ? (
|
|
4221
|
+
((J = (V = e.config.schema) == null ? void 0 : V[b.value]) == null ? void 0 : J.type) === "select" ? (h(), M(v, {
|
|
4236
4222
|
key: 0,
|
|
4237
4223
|
id: y(b.value),
|
|
4238
4224
|
modelValue: a.value[b.value],
|
|
4239
4225
|
"onUpdate:modelValue": (E) => a.value[b.value] = E,
|
|
4240
|
-
"enable-filtering":
|
|
4226
|
+
"enable-filtering": D(b.value),
|
|
4241
4227
|
"filter-function": (E) => X(b.value, E),
|
|
4242
|
-
items:
|
|
4228
|
+
items: g(b.value),
|
|
4243
4229
|
placeholder: A(n)("filter.selectPlaceholder")
|
|
4244
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (
|
|
4230
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (h(), M(F, {
|
|
4245
4231
|
key: 1,
|
|
4246
4232
|
id: y(b.value),
|
|
4247
4233
|
modelValue: a.value[b.value],
|
|
@@ -4331,7 +4317,7 @@ ${l.value}
|
|
|
4331
4317
|
},
|
|
4332
4318
|
emits: ["cancel", "proceed"],
|
|
4333
4319
|
setup(e, { emit: t }) {
|
|
4334
|
-
const { i18n: { t: n }, i18nT: i } = W.useI18n(), r = e, o = t, a =
|
|
4320
|
+
const { i18n: { t: n }, i18nT: i } = W.useI18n(), r = e, o = t, a = N(!1), l = $(
|
|
4335
4321
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4336
4322
|
), s = $(
|
|
4337
4323
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
@@ -4348,8 +4334,8 @@ ${l.value}
|
|
|
4348
4334
|
}
|
|
4349
4335
|
};
|
|
4350
4336
|
return (u, p) => {
|
|
4351
|
-
const m =
|
|
4352
|
-
return
|
|
4337
|
+
const m = P("KPrompt");
|
|
4338
|
+
return h(), M(Wt, { to: "body" }, [
|
|
4353
4339
|
K(m, {
|
|
4354
4340
|
"action-button-disabled": a.value,
|
|
4355
4341
|
"action-button-text": s.value,
|
|
@@ -4400,13 +4386,13 @@ ${l.value}
|
|
|
4400
4386
|
}
|
|
4401
4387
|
},
|
|
4402
4388
|
setup(e) {
|
|
4403
|
-
const t = e, n =
|
|
4389
|
+
const t = e, n = N(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4404
4390
|
return be(() => t.authFunction, async () => {
|
|
4405
4391
|
n.value = await t.authFunction();
|
|
4406
4392
|
}, { immediate: !0 }), (r, o) => i.value ? U(r.$slots, "default", {
|
|
4407
4393
|
key: 0,
|
|
4408
4394
|
isAllowed: n.value
|
|
4409
|
-
}) :
|
|
4395
|
+
}) : j("", !0);
|
|
4410
4396
|
}
|
|
4411
4397
|
}), ne = [];
|
|
4412
4398
|
for (let e = 0; e < 256; ++e)
|
|
@@ -4416,7 +4402,7 @@ function Nl(e, t = 0) {
|
|
|
4416
4402
|
}
|
|
4417
4403
|
let ze;
|
|
4418
4404
|
const Ml = new Uint8Array(16);
|
|
4419
|
-
function
|
|
4405
|
+
function jl() {
|
|
4420
4406
|
if (!ze) {
|
|
4421
4407
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4422
4408
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
@@ -4424,13 +4410,13 @@ function Pl() {
|
|
|
4424
4410
|
}
|
|
4425
4411
|
return ze(Ml);
|
|
4426
4412
|
}
|
|
4427
|
-
const
|
|
4428
|
-
function
|
|
4413
|
+
const Dl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ut = { randomUUID: Dl };
|
|
4414
|
+
function Pl(e, t, n) {
|
|
4429
4415
|
var r;
|
|
4430
4416
|
if (Ut.randomUUID && !e)
|
|
4431
4417
|
return Ut.randomUUID();
|
|
4432
4418
|
e = e || {};
|
|
4433
|
-
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ??
|
|
4419
|
+
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? jl();
|
|
4434
4420
|
if (i.length < 16)
|
|
4435
4421
|
throw new Error("Random bytes length must be >= 16");
|
|
4436
4422
|
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Nl(i);
|
|
@@ -4470,18 +4456,18 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4470
4456
|
}
|
|
4471
4457
|
},
|
|
4472
4458
|
setup(e) {
|
|
4473
|
-
const t = Ue(), n =
|
|
4474
|
-
return (i, r) => (
|
|
4459
|
+
const t = Ue(), n = Pl();
|
|
4460
|
+
return (i, r) => (h(), T("div", {
|
|
4475
4461
|
"aria-labelledby": e.title ? A(n) : void 0,
|
|
4476
4462
|
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4477
4463
|
role: "group"
|
|
4478
4464
|
}, [
|
|
4479
4465
|
L("div", ql, [
|
|
4480
|
-
e.hideInfoHeader ?
|
|
4466
|
+
e.hideInfoHeader ? j("", !0) : (h(), T("div", {
|
|
4481
4467
|
key: 0,
|
|
4482
4468
|
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4483
4469
|
}, [
|
|
4484
|
-
e.title ? (
|
|
4470
|
+
e.title ? (h(), M(Pe(e.titleTag), {
|
|
4485
4471
|
key: 0,
|
|
4486
4472
|
id: A(n),
|
|
4487
4473
|
class: "form-section-title"
|
|
@@ -4490,15 +4476,15 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4490
4476
|
q(O(e.title), 1)
|
|
4491
4477
|
]),
|
|
4492
4478
|
_: 1
|
|
4493
|
-
}, 8, ["id"])) :
|
|
4494
|
-
e.description || A(t).description ? (
|
|
4479
|
+
}, 8, ["id"])) : j("", !0),
|
|
4480
|
+
e.description || A(t).description ? (h(), T("div", Hl, [
|
|
4495
4481
|
U(i.$slots, "description", {}, () => [
|
|
4496
4482
|
L("p", null, O(e.description), 1)
|
|
4497
4483
|
], !0)
|
|
4498
|
-
])) :
|
|
4499
|
-
A(t).footer ? (
|
|
4484
|
+
])) : j("", !0),
|
|
4485
|
+
A(t).footer ? (h(), T("div", Vl, [
|
|
4500
4486
|
U(i.$slots, "footer", {}, void 0, !0)
|
|
4501
|
-
])) :
|
|
4487
|
+
])) : j("", !0)
|
|
4502
4488
|
], 2)),
|
|
4503
4489
|
L("div", Yl, [
|
|
4504
4490
|
U(i.$slots, "default", {}, void 0, !0)
|
|
@@ -4524,31 +4510,31 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4524
4510
|
},
|
|
4525
4511
|
setup(e) {
|
|
4526
4512
|
const t = Ue();
|
|
4527
|
-
return (n, i) => (
|
|
4513
|
+
return (n, i) => (h(), T("div", Jl, [
|
|
4528
4514
|
L("header", Gl, [
|
|
4529
|
-
e.step != null ? (
|
|
4515
|
+
e.step != null ? (h(), T("div", zl, O(e.step), 1)) : j("", !0),
|
|
4530
4516
|
L("div", Ql, [
|
|
4531
4517
|
L("h2", Zl, [
|
|
4532
4518
|
U(n.$slots, "title", {}, () => [
|
|
4533
4519
|
q(O(e.title), 1)
|
|
4534
4520
|
], !0)
|
|
4535
4521
|
]),
|
|
4536
|
-
e.description || t.description ? (
|
|
4522
|
+
e.description || t.description ? (h(), T("div", Xl, [
|
|
4537
4523
|
U(n.$slots, "description", {}, () => [
|
|
4538
4524
|
q(O(e.description), 1)
|
|
4539
4525
|
], !0)
|
|
4540
|
-
])) :
|
|
4526
|
+
])) : j("", !0)
|
|
4541
4527
|
]),
|
|
4542
|
-
t.extra ? (
|
|
4528
|
+
t.extra ? (h(), T("div", es, [
|
|
4543
4529
|
U(n.$slots, "extra", {}, void 0, !0)
|
|
4544
|
-
])) :
|
|
4530
|
+
])) : j("", !0)
|
|
4545
4531
|
]),
|
|
4546
4532
|
L("div", ts, [
|
|
4547
4533
|
U(n.$slots, "default", {}, void 0, !0)
|
|
4548
4534
|
])
|
|
4549
4535
|
]));
|
|
4550
4536
|
}
|
|
4551
|
-
}),
|
|
4537
|
+
}), js = /* @__PURE__ */ le(ns, [["__scopeId", "data-v-cb6d2e95"]]), is = {
|
|
4552
4538
|
class: "kong-ui-public-entity-link",
|
|
4553
4539
|
"data-testid": "entity-link-parent"
|
|
4554
4540
|
}, rs = {
|
|
@@ -4578,7 +4564,7 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4578
4564
|
}
|
|
4579
4565
|
},
|
|
4580
4566
|
setup(e) {
|
|
4581
|
-
const t = e, n =
|
|
4567
|
+
const t = e, n = N(), { isTruncated: i } = W.useTruncationDetector(n), { i18n: { t: r } } = W.useI18n(), o = r("global.actions.copyId"), a = N(o), l = $(() => t.entityLinkData.deleted ?? !1), s = $(() => {
|
|
4582
4568
|
var u;
|
|
4583
4569
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4584
4570
|
}), c = $(() => {
|
|
@@ -4590,9 +4576,9 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4590
4576
|
}, 1800));
|
|
4591
4577
|
};
|
|
4592
4578
|
return (u, p) => {
|
|
4593
|
-
const m =
|
|
4594
|
-
return
|
|
4595
|
-
l.value ? (
|
|
4579
|
+
const m = P("KTooltip"), y = P("KExternalLink"), g = P("KClipboardProvider");
|
|
4580
|
+
return h(), T("div", is, [
|
|
4581
|
+
l.value ? (h(), T("div", rs, O(c.value), 1)) : s.value ? s.value ? (h(), M(y, {
|
|
4596
4582
|
key: 2,
|
|
4597
4583
|
class: "entity-link",
|
|
4598
4584
|
"hide-icon": !e.newWindow,
|
|
@@ -4614,8 +4600,8 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4614
4600
|
}, 8, ["text"])
|
|
4615
4601
|
]),
|
|
4616
4602
|
_: 1
|
|
4617
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4618
|
-
s.value && e.allowCopy ? (
|
|
4603
|
+
}, 8, ["hide-icon", "href", "target"])) : j("", !0) : (h(), T("div", as, O(" – "))),
|
|
4604
|
+
s.value && e.allowCopy ? (h(), M(m, {
|
|
4619
4605
|
key: a.value,
|
|
4620
4606
|
class: "copy-uuid-tooltip",
|
|
4621
4607
|
"max-width": "160",
|
|
@@ -4623,7 +4609,7 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4623
4609
|
text: a.value
|
|
4624
4610
|
}, {
|
|
4625
4611
|
default: _(() => [
|
|
4626
|
-
K(
|
|
4612
|
+
K(g, null, {
|
|
4627
4613
|
default: _(({ copyToClipboard: k }) => [
|
|
4628
4614
|
L("span", {
|
|
4629
4615
|
class: "entity-link-copy-id",
|
|
@@ -4641,11 +4627,11 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4641
4627
|
})
|
|
4642
4628
|
]),
|
|
4643
4629
|
_: 1
|
|
4644
|
-
}, 8, ["text"])) :
|
|
4630
|
+
}, 8, ["text"])) : j("", !0)
|
|
4645
4631
|
]);
|
|
4646
4632
|
};
|
|
4647
4633
|
}
|
|
4648
|
-
}),
|
|
4634
|
+
}), Ds = /* @__PURE__ */ le(ls, [["__scopeId", "data-v-96efdfa5"]]), ss = { class: "kong-ui-public-entity-empty-state" }, cs = { class: "entity-empty-state-content" }, us = {
|
|
4649
4635
|
key: 0,
|
|
4650
4636
|
class: "empty-state-image"
|
|
4651
4637
|
}, ds = {
|
|
@@ -4660,10 +4646,10 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4660
4646
|
}, ms = {
|
|
4661
4647
|
key: 0,
|
|
4662
4648
|
class: "entity-empty-state-message"
|
|
4663
|
-
},
|
|
4649
|
+
}, hs = {
|
|
4664
4650
|
key: 1,
|
|
4665
4651
|
class: "entity-empty-state-action"
|
|
4666
|
-
},
|
|
4652
|
+
}, gs = {
|
|
4667
4653
|
key: 2,
|
|
4668
4654
|
class: "entity-empty-state-card-container"
|
|
4669
4655
|
}, ys = {
|
|
@@ -4713,18 +4699,18 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
|
|
|
4713
4699
|
},
|
|
4714
4700
|
emits: ["click:create", "click:learn-more"],
|
|
4715
4701
|
setup(e) {
|
|
4716
|
-
const t = e, { i18n: { t: n } } = W.useI18n(), i =
|
|
4702
|
+
const t = e, { i18n: { t: n } } = W.useI18n(), i = N(!1), r = $(() => i.value && !!t.actionButtonText), o = $(() => vt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4717
4703
|
return rt(async () => {
|
|
4718
4704
|
i.value = await t.canCreate();
|
|
4719
4705
|
}), it(() => ni(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4720
4706
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
|
|
4721
|
-
const s =
|
|
4722
|
-
return
|
|
4707
|
+
const s = P("KCard");
|
|
4708
|
+
return h(), T("div", ss, [
|
|
4723
4709
|
L("div", cs, [
|
|
4724
|
-
a.$slots.image ? (
|
|
4710
|
+
a.$slots.image ? (h(), T("div", us, [
|
|
4725
4711
|
U(a.$slots, "image", {}, void 0, !0)
|
|
4726
|
-
])) :
|
|
4727
|
-
e.title || a.$slots.title ? (
|
|
4712
|
+
])) : j("", !0),
|
|
4713
|
+
e.title || a.$slots.title ? (h(), T("div", ds, [
|
|
4728
4714
|
L("h1", {
|
|
4729
4715
|
class: fe(o.value)
|
|
4730
4716
|
}, [
|
|
@@ -4732,13 +4718,13 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4732
4718
|
q(O(e.title), 1)
|
|
4733
4719
|
], !0)
|
|
4734
4720
|
], 2)
|
|
4735
|
-
])) :
|
|
4736
|
-
e.description || a.$slots.default ? (
|
|
4721
|
+
])) : j("", !0),
|
|
4722
|
+
e.description || a.$slots.default ? (h(), T("div", fs, [
|
|
4737
4723
|
U(a.$slots, "default", {}, () => [
|
|
4738
4724
|
L("p", null, O(e.description), 1)
|
|
4739
4725
|
], !0)
|
|
4740
|
-
])) :
|
|
4741
|
-
e.pricing || a.$slots.pricing ? (
|
|
4726
|
+
])) : j("", !0),
|
|
4727
|
+
e.pricing || a.$slots.pricing ? (h(), T("div", ps, [
|
|
4742
4728
|
L("p", null, [
|
|
4743
4729
|
L("b", null, O(A(n)("emptyState.pricingTitle")), 1),
|
|
4744
4730
|
l[2] || (l[2] = q()),
|
|
@@ -4746,14 +4732,14 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4746
4732
|
q(O(e.pricing), 1)
|
|
4747
4733
|
], !0)
|
|
4748
4734
|
])
|
|
4749
|
-
])) :
|
|
4735
|
+
])) : j("", !0)
|
|
4750
4736
|
]),
|
|
4751
|
-
a.$slots.message ? (
|
|
4737
|
+
a.$slots.message ? (h(), T("div", ms, [
|
|
4752
4738
|
U(a.$slots, "message", {}, void 0, !0)
|
|
4753
|
-
])) :
|
|
4754
|
-
r.value || e.learnMore || a.$slots.actions ? (
|
|
4739
|
+
])) : j("", !0),
|
|
4740
|
+
r.value || e.learnMore || a.$slots.actions ? (h(), T("div", hs, [
|
|
4755
4741
|
U(a.$slots, "actions", {}, () => [
|
|
4756
|
-
r.value ? (
|
|
4742
|
+
r.value ? (h(), M(A(ht), {
|
|
4757
4743
|
key: 0,
|
|
4758
4744
|
appearance: "primary",
|
|
4759
4745
|
"data-testid": "entity-create-button",
|
|
@@ -4765,8 +4751,8 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4765
4751
|
q(" " + O(e.actionButtonText), 1)
|
|
4766
4752
|
]),
|
|
4767
4753
|
_: 1
|
|
4768
|
-
}, 8, ["size"])) :
|
|
4769
|
-
e.learnMore ? (
|
|
4754
|
+
}, 8, ["size"])) : j("", !0),
|
|
4755
|
+
e.learnMore ? (h(), M(A(ht), {
|
|
4770
4756
|
key: 1,
|
|
4771
4757
|
appearance: "secondary",
|
|
4772
4758
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4778,18 +4764,18 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4778
4764
|
q(" " + O(A(n)("emptyState.learnMore")), 1)
|
|
4779
4765
|
]),
|
|
4780
4766
|
_: 1
|
|
4781
|
-
}, 8, ["size"])) :
|
|
4767
|
+
}, 8, ["size"])) : j("", !0)
|
|
4782
4768
|
], !0)
|
|
4783
|
-
])) :
|
|
4784
|
-
e.features.length ? (
|
|
4785
|
-
(
|
|
4769
|
+
])) : j("", !0),
|
|
4770
|
+
e.features.length ? (h(), T("div", gs, [
|
|
4771
|
+
(h(!0), T(ue, null, ce(e.features, (c, d) => (h(), M(s, {
|
|
4786
4772
|
key: c,
|
|
4787
4773
|
class: "entity-empty-state-card"
|
|
4788
4774
|
}, {
|
|
4789
4775
|
title: _(() => [
|
|
4790
|
-
a.$slots[`feature-${d}-icon`] ? (
|
|
4776
|
+
a.$slots[`feature-${d}-icon`] ? (h(), T("div", ys, [
|
|
4791
4777
|
U(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4792
|
-
])) :
|
|
4778
|
+
])) : j("", !0),
|
|
4793
4779
|
L("div", vs, O(c.title), 1)
|
|
4794
4780
|
]),
|
|
4795
4781
|
default: _(() => [
|
|
@@ -4799,14 +4785,14 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4799
4785
|
]),
|
|
4800
4786
|
_: 2
|
|
4801
4787
|
}, 1024))), 128))
|
|
4802
|
-
])) :
|
|
4803
|
-
a.$slots.bottom ? (
|
|
4788
|
+
])) : j("", !0),
|
|
4789
|
+
a.$slots.bottom ? (h(), T("div", ks, [
|
|
4804
4790
|
U(a.$slots, "bottom", {}, void 0, !0)
|
|
4805
|
-
])) :
|
|
4791
|
+
])) : j("", !0)
|
|
4806
4792
|
]);
|
|
4807
4793
|
};
|
|
4808
4794
|
}
|
|
4809
|
-
}),
|
|
4795
|
+
}), Ps = /* @__PURE__ */ le(Cs, [["__scopeId", "data-v-645aae54"]]), xs = { key: 1 }, Us = /* @__PURE__ */ z({
|
|
4810
4796
|
__name: "TableTags",
|
|
4811
4797
|
props: {
|
|
4812
4798
|
/** The tags to display in the table */
|
|
@@ -4834,9 +4820,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4834
4820
|
});
|
|
4835
4821
|
return (i, r) => {
|
|
4836
4822
|
var o;
|
|
4837
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (
|
|
4823
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (h(), M(A(li), { key: 0 }, {
|
|
4838
4824
|
default: _(() => [
|
|
4839
|
-
(
|
|
4825
|
+
(h(!0), T(ue, null, ce(n.value, (a) => (h(), M(A(si), {
|
|
4840
4826
|
key: a,
|
|
4841
4827
|
"max-width": e.tagMaxWidth,
|
|
4842
4828
|
onClick: r[0] || (r[0] = Re(() => {
|
|
@@ -4849,7 +4835,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4849
4835
|
}, 1032, ["max-width"]))), 128))
|
|
4850
4836
|
]),
|
|
4851
4837
|
_: 1
|
|
4852
|
-
})) : (
|
|
4838
|
+
})) : (h(), T("span", xs, "-"));
|
|
4853
4839
|
};
|
|
4854
4840
|
}
|
|
4855
4841
|
}), { useAxios: qs, useDeleteUrlBuilder: Hs, useErrors: Vs, useExternalLinkCreator: Ys, useFetchUrlBuilder: Ws, useFetcher: Js, useFetcherCacheKey: Gs, useDebouncedFilter: zs, useStringHelpers: Qs, useHelpers: Zs, useGatewayFeatureSupported: Xs, useTruncationDetector: ec, useValidators: tc, useSchemaProvider: nc, useTableState: ic } = W;
|
|
@@ -4865,13 +4851,13 @@ export {
|
|
|
4865
4851
|
yi as EntityBaseFormType,
|
|
4866
4852
|
Bs as EntityBaseTable,
|
|
4867
4853
|
Ls as EntityDeleteModal,
|
|
4868
|
-
|
|
4854
|
+
Ps as EntityEmptyState,
|
|
4869
4855
|
Rs as EntityFilter,
|
|
4870
|
-
|
|
4856
|
+
js as EntityFormBlock,
|
|
4871
4857
|
Ms as EntityFormSection,
|
|
4872
|
-
|
|
4858
|
+
Ds as EntityLink,
|
|
4873
4859
|
Ks as EntityToggleModal,
|
|
4874
|
-
|
|
4860
|
+
gi as EntityTypes,
|
|
4875
4861
|
bi as EventGatewayTypesArray,
|
|
4876
4862
|
me as FetcherStatus,
|
|
4877
4863
|
ki as IdentityTypesArray,
|