@kong-ui-public/entities-shared 3.41.6 → 3.41.7-pr.3107.13ae2aa25.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 +450 -429
- package/dist/entities-shared.umd.js +26 -26
- package/dist/style.css +1 -1
- package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts +31 -4
- package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts.map +1 -1
- package/dist/types/types/app-config.d.ts +2 -0
- package/dist/types/types/app-config.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { inject as lt, ref as j, computed as
|
|
1
|
+
import { inject as lt, ref as j, computed as _, unref as C, toValue as ve, watch as Ae, toRef as ii, provide as Jt, defineComponent as z, openBlock as m, createBlock as R, resolveDynamicComponent as Ye, normalizeClass as fe, withCtx as A, createElementBlock as S, createElementVNode as L, toDisplayString as O, createCommentVNode as q, Fragment as pe, renderList as me, resolveComponent as Y, createVNode as P, createTextVNode as V, useCssVars as zt, useId as ri, useSlots as Me, renderSlot as H, createSlots as we, normalizeProps as ai, guardReactiveProps as oi, mergeProps as Qt, onMounted as st, onBeforeMount as ct, withModifiers as De, Teleport as Zt, onUnmounted as li, withDirectives as _e, vShow as Se, withKeys as si, warn as ci } from "vue";
|
|
2
2
|
import bt from "axios";
|
|
3
3
|
import { createI18n as ui, i18nTComponent as di } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as fi, KExternalLink as pi, KButton as kt, KTruncate as mi, KBadge as gi } from "@kong/kongponents";
|
|
5
|
-
import { createHighlighterCoreSync as
|
|
6
|
-
import { createJavaScriptRegexEngine as
|
|
5
|
+
import { createHighlighterCoreSync as yi } from "@shikijs/core";
|
|
6
|
+
import { createJavaScriptRegexEngine as hi } from "@shikijs/engine-javascript";
|
|
7
7
|
import vi from "@shikijs/langs/json";
|
|
8
8
|
import bi from "@shikijs/langs/yaml";
|
|
9
9
|
import ki from "@shikijs/langs/terraform";
|
|
10
10
|
import Ci from "@shikijs/langs/shellscript";
|
|
11
11
|
import xi from "@shikijs/langs/powershell";
|
|
12
12
|
import Ai from "@shikijs/themes/catppuccin-mocha";
|
|
13
|
-
import
|
|
14
|
-
import { LanguageShellIcon as Ct, LanguageBashIcon as xt, BookIcon as Xt, AddIcon as en, CloseIcon as
|
|
13
|
+
import wi from "@shikijs/themes/catppuccin-latte";
|
|
14
|
+
import { LanguageShellIcon as Ct, LanguageBashIcon as xt, BookIcon as Xt, AddIcon as en, CloseIcon as _i, ChevronDownIcon as Si, CopyIcon as $i } from "@kong/icons";
|
|
15
15
|
import { useRouter as Ti } from "vue-router";
|
|
16
|
-
var Ei = /* @__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))(Ei || {}), Ii = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Ii || {}),
|
|
16
|
+
var Ei = /* @__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))(Ei || {}), Ii = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Ii || {}), he = /* @__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))(he || {}), Ce = /* @__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.TlsTrustBundle = "tls_trust_bundle", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))(Ce || {});
|
|
17
17
|
const Ve = Object.values(Ce), Fi = [
|
|
18
18
|
"ca_certificate",
|
|
19
19
|
"certificate",
|
|
@@ -299,10 +299,10 @@ function Qi(e, t, n, i = {
|
|
|
299
299
|
n || (n = "1000");
|
|
300
300
|
const { axiosInstance: r } = ut(e.axiosRequestConfig), { i18n: { t: a } } = We(), { debounce: o } = Ri(), l = o(async ($) => {
|
|
301
301
|
await x($);
|
|
302
|
-
}, 200), s = j(!1), u = j(""), d = j(""), c = j([]), g = j([]), f = j(void 0), p =
|
|
302
|
+
}, 200), s = j(!1), u = j(""), d = j(""), c = j([]), g = j([]), f = j(void 0), p = _(() => {
|
|
303
303
|
const $ = `${e.apiBaseUrl}${C(t)}`;
|
|
304
304
|
return e.app === "konnect" ? $.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? $.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : $;
|
|
305
|
-
}), { isValidUuid:
|
|
305
|
+
}), { isValidUuid: y } = nn(), v = async () => {
|
|
306
306
|
try {
|
|
307
307
|
s.value = !0;
|
|
308
308
|
const { data: $ } = await r.get(`${p.value}?size=${n}`);
|
|
@@ -322,38 +322,38 @@ function Qi(e, t, n, i = {
|
|
|
322
322
|
if (f.value === void 0)
|
|
323
323
|
try {
|
|
324
324
|
if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
|
|
325
|
-
const
|
|
325
|
+
const B = `${p.value}/${$}`, { data: E } = await r.get(`${B}?size=${n}`);
|
|
326
326
|
i.fetchedItemsKey in E ? c.value = E[i.fetchedItemsKey] : E != null && E[i.exactMatchKey ?? "id"] ? c.value = [E] : c.value = [];
|
|
327
327
|
} else {
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
const { data:
|
|
331
|
-
return [
|
|
332
|
-
})()) :
|
|
333
|
-
...i.searchKeys.filter((
|
|
334
|
-
const { data: T } = await r.get(`${p.value}?${
|
|
328
|
+
const B = [];
|
|
329
|
+
y($) && i.searchKeys.includes("id") ? B.push((async () => {
|
|
330
|
+
const { data: w } = await r.get(`${p.value}/${$}`);
|
|
331
|
+
return [w[i.fetchedItemsKey] ?? w];
|
|
332
|
+
})()) : B.push(
|
|
333
|
+
...i.searchKeys.filter((w) => w !== "id").map(async (w) => {
|
|
334
|
+
const { data: T } = await r.get(`${p.value}?${w}=${$}`);
|
|
335
335
|
return T[i.fetchedItemsKey];
|
|
336
336
|
})
|
|
337
337
|
);
|
|
338
|
-
const E = await Promise.all(
|
|
339
|
-
c.value = [], (N = E == null ? void 0 : E.forEach) == null || N.call(E, (
|
|
338
|
+
const E = await Promise.all(B), h = /* @__PURE__ */ new Set();
|
|
339
|
+
c.value = [], (N = E == null ? void 0 : E.forEach) == null || N.call(E, (w) => {
|
|
340
340
|
var T;
|
|
341
|
-
(T =
|
|
342
|
-
|
|
341
|
+
(T = w == null ? void 0 : w.forEach) == null || T.call(w, (b) => {
|
|
342
|
+
h.has(b.id) || (h.add(b.id), c.value.push(b));
|
|
343
343
|
});
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
} catch (
|
|
347
|
-
((Q =
|
|
346
|
+
} catch (B) {
|
|
347
|
+
((Q = B == null ? void 0 : B.response) == null ? void 0 : Q.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (c.value = [], u.value = a("debouncedFilter.errors.fetch"));
|
|
348
348
|
} finally {
|
|
349
349
|
s.value = !1;
|
|
350
350
|
}
|
|
351
351
|
else
|
|
352
|
-
s.value = !0, d.value = "", c.value = (F = f.value) == null ? void 0 : F.filter((
|
|
353
|
-
var
|
|
352
|
+
s.value = !0, d.value = "", c.value = (F = f.value) == null ? void 0 : F.filter((B) => {
|
|
353
|
+
var h;
|
|
354
354
|
let E = !1;
|
|
355
|
-
for (const
|
|
356
|
-
const T = typeof
|
|
355
|
+
for (const w of i.searchKeys) {
|
|
356
|
+
const T = typeof B[w] == "string" ? (h = B[w]) == null ? void 0 : h.toLowerCase() : B[w];
|
|
357
357
|
T != null && T.includes($.toLowerCase()) && (E = !0);
|
|
358
358
|
}
|
|
359
359
|
return E;
|
|
@@ -371,7 +371,7 @@ function Qi(e, t, n, i = {
|
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
373
|
function Zi(e, t) {
|
|
374
|
-
const n = C(t), i =
|
|
374
|
+
const n = C(t), i = _(
|
|
375
375
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
376
376
|
);
|
|
377
377
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
@@ -460,10 +460,10 @@ function er(e) {
|
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
function rn(e, t) {
|
|
463
|
-
const n =
|
|
463
|
+
const n = _(() => {
|
|
464
464
|
const r = ve(e);
|
|
465
465
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
466
|
-
}), i =
|
|
466
|
+
}), i = _(() => {
|
|
467
467
|
const r = ve(t);
|
|
468
468
|
return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
|
|
469
469
|
});
|
|
@@ -479,21 +479,21 @@ function rn(e, t) {
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
const
|
|
482
|
+
const wt = /* @__PURE__ */ new Map();
|
|
483
483
|
function tr(e, t, n) {
|
|
484
484
|
const i = j(!0), r = ve(e), { axiosInstance: a } = ut(r.axiosRequestConfig), o = rn(e, t), l = j({
|
|
485
|
-
status:
|
|
485
|
+
status: he.Idle
|
|
486
486
|
}), s = async (c) => {
|
|
487
487
|
var f;
|
|
488
488
|
const g = ve(n) || "data";
|
|
489
489
|
try {
|
|
490
|
-
l.value = i.value ? { status:
|
|
490
|
+
l.value = i.value ? { status: he.InitialLoad } : { status: he.Loading }, i.value = !1;
|
|
491
491
|
let p = o(c);
|
|
492
492
|
p.includes("filter[name]") && (p = `${p}&page[size]=${c.pageSize}&page[number]=${c.page}`);
|
|
493
|
-
const
|
|
494
|
-
if (
|
|
495
|
-
throw
|
|
496
|
-
const v =
|
|
493
|
+
const y = await a.get(p);
|
|
494
|
+
if (y.status >= 400)
|
|
495
|
+
throw y;
|
|
496
|
+
const v = y.data, k = g && g.replace(/[^\w-_]/gi, "");
|
|
497
497
|
let x;
|
|
498
498
|
v[k] ? x = Array.isArray(v[k]) ? v[k] : [v[k]] : Array.isArray(v) ? x = v : x = Object.keys(v).length ? [v] : [];
|
|
499
499
|
const $ = {
|
|
@@ -506,34 +506,34 @@ function tr(e, t, n) {
|
|
|
506
506
|
} : null
|
|
507
507
|
};
|
|
508
508
|
return $.data.length === 0 && !c.query ? l.value = {
|
|
509
|
-
status:
|
|
509
|
+
status: he.NoRecords,
|
|
510
510
|
response: $
|
|
511
511
|
} : l.value = {
|
|
512
|
-
status:
|
|
512
|
+
status: he.Idle,
|
|
513
513
|
response: $
|
|
514
514
|
}, $;
|
|
515
515
|
} catch (p) {
|
|
516
|
-
const
|
|
516
|
+
const y = {
|
|
517
517
|
data: [],
|
|
518
518
|
total: 0
|
|
519
519
|
};
|
|
520
520
|
return c.query && (((f = p.response) == null ? void 0 : f.status) === 404 || p.status === 404) ? (l.value = {
|
|
521
|
-
status:
|
|
522
|
-
response:
|
|
521
|
+
status: he.NoResults,
|
|
522
|
+
response: y,
|
|
523
523
|
error: p.response ? p : { response: p }
|
|
524
|
-
},
|
|
525
|
-
status:
|
|
526
|
-
response:
|
|
524
|
+
}, y) : (l.value = {
|
|
525
|
+
status: he.Error,
|
|
526
|
+
response: y,
|
|
527
527
|
error: p.response ? p : { response: p }
|
|
528
|
-
},
|
|
528
|
+
}, y);
|
|
529
529
|
}
|
|
530
530
|
}, u = r.cacheIdentifier, d = an(u);
|
|
531
531
|
return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
|
|
532
532
|
}
|
|
533
533
|
function an(e) {
|
|
534
534
|
if (e) {
|
|
535
|
-
let t =
|
|
536
|
-
return t || (t = j(1),
|
|
535
|
+
let t = wt.get(e);
|
|
536
|
+
return t || (t = j(1), wt.set(e, t)), t;
|
|
537
537
|
}
|
|
538
538
|
return j(1);
|
|
539
539
|
}
|
|
@@ -544,7 +544,7 @@ function nr() {
|
|
|
544
544
|
convertKeyToTitle: e
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
|
-
const on = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,
|
|
547
|
+
const on = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, _t = (e) => {
|
|
548
548
|
if (typeof e != "string")
|
|
549
549
|
throw new TypeError("Invalid argument expected string");
|
|
550
550
|
const t = e.match(on);
|
|
@@ -567,7 +567,7 @@ const on = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
567
567
|
}
|
|
568
568
|
return 0;
|
|
569
569
|
}, ar = (e, t) => {
|
|
570
|
-
const n =
|
|
570
|
+
const n = _t(e), i = _t(t), r = n.pop(), a = i.pop(), o = Tt(n, i);
|
|
571
571
|
return o !== 0 ? o : r && a ? Tt(r.split("."), a.split(".")) : r || a ? r ? -1 : 1 : 0;
|
|
572
572
|
}, Et = (e, t, n) => {
|
|
573
573
|
or(n);
|
|
@@ -604,7 +604,7 @@ function cr(e) {
|
|
|
604
604
|
return Ae(e, (a) => {
|
|
605
605
|
a && !i.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, i.value = !0);
|
|
606
606
|
}), {
|
|
607
|
-
isTruncated:
|
|
607
|
+
isTruncated: _(() => t.value < n.value)
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
610
|
function ur() {
|
|
@@ -622,7 +622,7 @@ const tt = Symbol("schema"), dr = (e) => {
|
|
|
622
622
|
};
|
|
623
623
|
function pr(e) {
|
|
624
624
|
let t = "";
|
|
625
|
-
const n = j(!1), i = j(null), r =
|
|
625
|
+
const n = j(!1), i = j(null), r = _(() => {
|
|
626
626
|
let o;
|
|
627
627
|
return n.value ? o = !0 : i.value ? o = i.value.hasData || e && ve(e) : o = !1, !o;
|
|
628
628
|
});
|
|
@@ -673,21 +673,21 @@ const J = {
|
|
|
673
673
|
}
|
|
674
674
|
},
|
|
675
675
|
setup(e) {
|
|
676
|
-
const t = e, { i18n: { t: n } } = J.useI18n(), { convertKeyToTitle: i } = J.useStringHelpers(), r =
|
|
676
|
+
const t = e, { i18n: { t: n } } = J.useI18n(), { convertKeyToTitle: i } = J.useStringHelpers(), r = _(() => t.item.key ?? "json-array-item"), a = _(() => t.item.value ?? t.item), o = _(() => {
|
|
677
677
|
const s = JSON.parse(JSON.stringify(a.value));
|
|
678
678
|
return t.isArrayItem && delete s.name, s;
|
|
679
|
-
}), l =
|
|
679
|
+
}), l = _(() => {
|
|
680
680
|
var s;
|
|
681
681
|
return t.isArrayItem ? (s = a.value) != null && s.name ? i(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
682
682
|
});
|
|
683
683
|
return (s, u) => (m(), R(Ye(e.isArrayItem ? "fieldset" : "div"), {
|
|
684
|
-
class:
|
|
684
|
+
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
685
685
|
}, {
|
|
686
686
|
default: A(() => [
|
|
687
687
|
e.isArrayItem ? (m(), S("legend", mr, [
|
|
688
|
-
|
|
688
|
+
L("b", null, O(l.value), 1)
|
|
689
689
|
])) : q("", !0),
|
|
690
|
-
(m(!0), S(
|
|
690
|
+
(m(!0), S(pe, null, me(Object.keys(o.value), (d, c) => (m(), R(cn, {
|
|
691
691
|
key: `${r.value}-property-${c}`,
|
|
692
692
|
item: {
|
|
693
693
|
key: d,
|
|
@@ -704,7 +704,7 @@ const J = {
|
|
|
704
704
|
for (const [i, r] of t)
|
|
705
705
|
n[i] = r;
|
|
706
706
|
return n;
|
|
707
|
-
}, sn = /* @__PURE__ */ ue(gr, [["__scopeId", "data-v-5baf64ca"]]),
|
|
707
|
+
}, sn = /* @__PURE__ */ ue(gr, [["__scopeId", "data-v-5baf64ca"]]), yr = /* @__PURE__ */ z({
|
|
708
708
|
__name: "InternalLinkItem",
|
|
709
709
|
props: {
|
|
710
710
|
item: {
|
|
@@ -731,7 +731,7 @@ const J = {
|
|
|
731
731
|
]);
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
|
-
}),
|
|
734
|
+
}), hr = /* @__PURE__ */ ue(yr, [["__scopeId", "data-v-2feb8c2e"]]), vr = /* @__PURE__ */ z({
|
|
735
735
|
__name: "StatusBadge",
|
|
736
736
|
props: {
|
|
737
737
|
status: {
|
|
@@ -753,13 +753,13 @@ const J = {
|
|
|
753
753
|
}, 8, ["appearance"]);
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
|
-
}), br = "#0044f4", kr = "#e0e4ea", Cr = "#afb7c5", xr = "#0044f4", Ar = "1px",
|
|
756
|
+
}), br = "#0044f4", kr = "#e0e4ea", Cr = "#afb7c5", xr = "#0044f4", Ar = "1px", wr = "16px", _r = "20px";
|
|
757
757
|
let ze = null;
|
|
758
758
|
function Sr() {
|
|
759
|
-
return ze || (ze =
|
|
759
|
+
return ze || (ze = yi({
|
|
760
760
|
langs: [vi, bi, ki, Ci, xi],
|
|
761
|
-
themes: [Ai,
|
|
762
|
-
engine:
|
|
761
|
+
themes: [Ai, wi],
|
|
762
|
+
engine: hi(),
|
|
763
763
|
langAlias: {
|
|
764
764
|
bash: "shellscript",
|
|
765
765
|
sh: "shellscript",
|
|
@@ -776,7 +776,7 @@ function Fe({ codeElement: e, code: t, language: n, theme: i }) {
|
|
|
776
776
|
}
|
|
777
777
|
const Tr = { class: "config-card-details-row" }, Er = ["data-testid"], Ir = ["data-testid"], Fr = ["data-testid"], Or = ["data-testid"], Lr = { key: 1 }, Br = ["data-testid"], Rr = ["data-testid"], Kr = ["data-testid"], Nr = ["data-testid"], Mr = {
|
|
778
778
|
name: "ConfigCardItem",
|
|
779
|
-
components: { JsonCardItem: sn, StatusBadge: vr, InternalLinkItem:
|
|
779
|
+
components: { JsonCardItem: sn, StatusBadge: vr, InternalLinkItem: hr }
|
|
780
780
|
}, Dr = /* @__PURE__ */ z({
|
|
781
781
|
...Mr,
|
|
782
782
|
props: {
|
|
@@ -803,10 +803,10 @@ const Tr = { class: "config-card-details-row" }, Er = ["data-testid"], Ir = ["da
|
|
|
803
803
|
v45a716ee: c.value && u.value ? "100%" : n.slim ? "50%" : "25%",
|
|
804
804
|
v45a28b38: c.value && u.value ? "100%" : n.slim ? "50%" : "75%"
|
|
805
805
|
}));
|
|
806
|
-
const n = e, i = t, r = ri(), a = Me(), { i18n: { t: o, formatIsoDate: l, formatUnixTimeStamp: s } } = J.useI18n(), u =
|
|
806
|
+
const n = e, i = t, r = ri(), a = Me(), { i18n: { t: o, formatIsoDate: l, formatUnixTimeStamp: s } } = J.useI18n(), u = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = _(() => !!(n.item.tooltip || a["label-tooltip"])), c = _(() => n.item.type === G.Json || n.item.type === G.JsonArray), g = _(() => n.item.type === G.JsonArray), f = J.useSubSchema(n.item.key), p = _(() => {
|
|
807
807
|
var N;
|
|
808
808
|
return n.item.type ? n.item.type : (N = f == null ? void 0 : f.value) != null && N.encrypted ? G.Redacted : void 0;
|
|
809
|
-
}),
|
|
809
|
+
}), y = _(() => {
|
|
810
810
|
switch (p.value) {
|
|
811
811
|
case G.ID:
|
|
812
812
|
return {
|
|
@@ -940,20 +940,20 @@ const Tr = { class: "config-card-details-row" }, Er = ["data-testid"], Ir = ["da
|
|
|
940
940
|
}
|
|
941
941
|
}), v = j(), k = j(), { isTruncated: x } = J.useTruncationDetector(v), { isTruncated: $ } = J.useTruncationDetector(k);
|
|
942
942
|
return (N, Q) => {
|
|
943
|
-
const F = Y("KTooltip"),
|
|
943
|
+
const F = Y("KTooltip"), B = Y("KLabel"), E = Y("KBadge"), h = Y("KCopy");
|
|
944
944
|
return m(), S("div", Tr, [
|
|
945
|
-
|
|
945
|
+
L("div", {
|
|
946
946
|
class: "config-card-details-label",
|
|
947
947
|
"data-testid": `${e.item.key}-label`
|
|
948
948
|
}, [
|
|
949
949
|
H(N.$slots, "label", { item: e.item }, () => [
|
|
950
|
-
P(
|
|
950
|
+
P(B, { "tooltip-attributes": { maxWidth: "500px" } }, we({
|
|
951
951
|
default: A(() => [
|
|
952
952
|
P(F, {
|
|
953
953
|
text: C(x) ? e.item.label : ""
|
|
954
954
|
}, {
|
|
955
955
|
default: A(() => [
|
|
956
|
-
|
|
956
|
+
L("span", {
|
|
957
957
|
ref_key: "labelContent",
|
|
958
958
|
ref: v,
|
|
959
959
|
class: "label-content"
|
|
@@ -967,7 +967,7 @@ const Tr = { class: "config-card-details-row" }, Er = ["data-testid"], Ir = ["da
|
|
|
967
967
|
d.value ? {
|
|
968
968
|
name: "tooltip",
|
|
969
969
|
fn: A(() => [
|
|
970
|
-
|
|
970
|
+
L("div", {
|
|
971
971
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
972
972
|
}, [
|
|
973
973
|
H(N.$slots, "label-tooltip", {}, () => [
|
|
@@ -980,7 +980,7 @@ const Tr = { class: "config-card-details-row" }, Er = ["data-testid"], Ir = ["da
|
|
|
980
980
|
]), 1024)
|
|
981
981
|
], !0)
|
|
982
982
|
], 8, Er),
|
|
983
|
-
|
|
983
|
+
L("div", {
|
|
984
984
|
class: "config-card-details-value",
|
|
985
985
|
"data-testid": `${e.item.key}-property-value`
|
|
986
986
|
}, [
|
|
@@ -988,70 +988,70 @@ const Tr = { class: "config-card-details-row" }, Er = ["data-testid"], Ir = ["da
|
|
|
988
988
|
rowValue: e.item.value
|
|
989
989
|
}, () => [
|
|
990
990
|
u.value ? (m(), S("div", Lr, [
|
|
991
|
-
(m(), R(Ye(
|
|
991
|
+
(m(), R(Ye(y.value.tag), ai(oi(y.value.attrs)), {
|
|
992
992
|
default: A(() => [
|
|
993
|
-
|
|
993
|
+
y.value.additionalComponent === "KBadge" ? (m(), S("div", {
|
|
994
994
|
key: 0,
|
|
995
995
|
"data-testid": `${e.item.key}-badge-tags`
|
|
996
996
|
}, [
|
|
997
|
-
(m(!0), S(
|
|
997
|
+
(m(!0), S(pe, null, me(e.item.value, (w, T) => (m(), R(E, {
|
|
998
998
|
key: `${e.item.key}-badge-tag-${T}`,
|
|
999
999
|
class: "config-badge",
|
|
1000
1000
|
"data-testid": `${e.item.key}-badge-tag-${T}`,
|
|
1001
|
-
tooltip:
|
|
1001
|
+
tooltip: w,
|
|
1002
1002
|
"truncation-tooltip": ""
|
|
1003
1003
|
}, {
|
|
1004
1004
|
default: A(() => [
|
|
1005
|
-
V(O(
|
|
1005
|
+
V(O(w), 1)
|
|
1006
1006
|
]),
|
|
1007
1007
|
_: 2
|
|
1008
1008
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1009
|
-
], 8, Br)) :
|
|
1009
|
+
], 8, Br)) : y.value.additionalComponent === "KCopy" ? (m(), S("div", {
|
|
1010
1010
|
key: 1,
|
|
1011
1011
|
class: "copy-uuid-array",
|
|
1012
1012
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1013
1013
|
}, [
|
|
1014
|
-
(m(!0), S(
|
|
1014
|
+
(m(!0), S(pe, null, me(e.item.value, (w, T) => (m(), R(h, Qt({ ref_for: !0 }, y.value.childAttrs, {
|
|
1015
1015
|
key: `${e.item.key}-copy-uuid-${T}`,
|
|
1016
1016
|
"data-testid": `${e.item.key}-copy-uuid-${T}`,
|
|
1017
|
-
text:
|
|
1017
|
+
text: w
|
|
1018
1018
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1019
|
-
], 8, Rr)) :
|
|
1019
|
+
], 8, Rr)) : y.value.additionalComponent === "KMethodBadge" ? (m(), S("div", {
|
|
1020
1020
|
key: 2,
|
|
1021
1021
|
class: "method-badge-array",
|
|
1022
1022
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1023
1023
|
}, [
|
|
1024
|
-
(m(!0), S(
|
|
1024
|
+
(m(!0), S(pe, null, me(e.item.value, (w, T) => (m(), R(E, {
|
|
1025
1025
|
key: `${e.item.key}-badge-method-${T}`,
|
|
1026
|
-
appearance: Object.values(C(fi)).includes(
|
|
1026
|
+
appearance: Object.values(C(fi)).includes(w.toLowerCase()) ? w.toLowerCase() : "custom",
|
|
1027
1027
|
class: "config-badge",
|
|
1028
1028
|
"data-testid": `${e.item.key}-badge-method-${T}`
|
|
1029
1029
|
}, {
|
|
1030
1030
|
default: A(() => [
|
|
1031
|
-
V(O(
|
|
1031
|
+
V(O(w), 1)
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 2
|
|
1034
1034
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1035
|
-
], 8, Kr)) :
|
|
1035
|
+
], 8, Kr)) : y.value.additionalComponent === "JsonCardItem" ? (m(), S("div", {
|
|
1036
1036
|
key: 3,
|
|
1037
1037
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1038
1038
|
}, [
|
|
1039
|
-
(m(!0), S(
|
|
1039
|
+
(m(!0), S(pe, null, me(e.item.value, (w, T) => (m(), R(sn, {
|
|
1040
1040
|
key: `json-array-item-${T}`,
|
|
1041
1041
|
index: Number(T),
|
|
1042
1042
|
"is-array-item": "",
|
|
1043
|
-
item:
|
|
1043
|
+
item: w
|
|
1044
1044
|
}, null, 8, ["index", "item"]))), 128))
|
|
1045
1045
|
], 8, Nr)) : (m(), R(F, {
|
|
1046
1046
|
key: 4,
|
|
1047
1047
|
text: C($) ? e.item.value : ""
|
|
1048
1048
|
}, {
|
|
1049
1049
|
default: A(() => [
|
|
1050
|
-
|
|
1050
|
+
L("span", {
|
|
1051
1051
|
ref_key: "textContent",
|
|
1052
1052
|
ref: k,
|
|
1053
|
-
class:
|
|
1054
|
-
}, O(
|
|
1053
|
+
class: fe(["attrs-data-text", { truncated: e.truncated }])
|
|
1054
|
+
}, O(y.value.text), 3)
|
|
1055
1055
|
]),
|
|
1056
1056
|
_: 1
|
|
1057
1057
|
}, 8, ["text"]))
|
|
@@ -1101,7 +1101,7 @@ const Tr = { class: "config-card-details-row" }, Er = ["data-testid"], Ir = ["da
|
|
|
1101
1101
|
zt((r) => ({
|
|
1102
1102
|
v775b4bd8: `${i.value}ch`
|
|
1103
1103
|
}));
|
|
1104
|
-
const t = e, n =
|
|
1104
|
+
const t = e, n = _(() => t.entityRecord), i = _(() => {
|
|
1105
1105
|
var o;
|
|
1106
1106
|
if (!t.fetcherUrl)
|
|
1107
1107
|
return 0;
|
|
@@ -1131,7 +1131,7 @@ const Tr = { class: "config-card-details-row" }, Er = ["data-testid"], Ir = ["da
|
|
|
1131
1131
|
t.entityRecord ? (m(), R(l, {
|
|
1132
1132
|
key: 1,
|
|
1133
1133
|
id: "json-codeblock",
|
|
1134
|
-
class:
|
|
1134
|
+
class: fe({ "json-content": t.fetcherUrl }),
|
|
1135
1135
|
code: JSON.stringify(n.value, null, 2),
|
|
1136
1136
|
language: "json",
|
|
1137
1137
|
theme: "dark",
|
|
@@ -1332,16 +1332,16 @@ var pn = nt, mn = new oe("tag:yaml.org,2002:str", {
|
|
|
1332
1332
|
construct: function(e) {
|
|
1333
1333
|
return e !== null ? e : [];
|
|
1334
1334
|
}
|
|
1335
|
-
}),
|
|
1335
|
+
}), yn = new oe("tag:yaml.org,2002:map", {
|
|
1336
1336
|
kind: "mapping",
|
|
1337
1337
|
construct: function(e) {
|
|
1338
1338
|
return e !== null ? e : {};
|
|
1339
1339
|
}
|
|
1340
|
-
}),
|
|
1340
|
+
}), hn = new pn({
|
|
1341
1341
|
explicit: [
|
|
1342
1342
|
mn,
|
|
1343
1343
|
gn,
|
|
1344
|
-
|
|
1344
|
+
yn
|
|
1345
1345
|
]
|
|
1346
1346
|
});
|
|
1347
1347
|
function oa(e) {
|
|
@@ -1457,7 +1457,7 @@ function ga(e) {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
return !(!i || r === "_");
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function ya(e) {
|
|
1461
1461
|
var t = e, n = 1, i;
|
|
1462
1462
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (n = -1), t = t.slice(1), i = t[0]), t === "0") return 0;
|
|
1463
1463
|
if (i === "0") {
|
|
@@ -1467,14 +1467,14 @@ function ha(e) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
return n * parseInt(t, 10);
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function ha(e) {
|
|
1471
1471
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !re.isNegativeZero(e);
|
|
1472
1472
|
}
|
|
1473
1473
|
var kn = new oe("tag:yaml.org,2002:int", {
|
|
1474
1474
|
kind: "scalar",
|
|
1475
1475
|
resolve: ga,
|
|
1476
|
-
construct:
|
|
1477
|
-
predicate:
|
|
1476
|
+
construct: ya,
|
|
1477
|
+
predicate: ha,
|
|
1478
1478
|
represent: {
|
|
1479
1479
|
binary: function(e) {
|
|
1480
1480
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1554,24 +1554,24 @@ var Cn = new oe("tag:yaml.org,2002:float", {
|
|
|
1554
1554
|
predicate: Aa,
|
|
1555
1555
|
represent: xa,
|
|
1556
1556
|
defaultStyle: "lowercase"
|
|
1557
|
-
}), xn =
|
|
1557
|
+
}), xn = hn.extend({
|
|
1558
1558
|
implicit: [
|
|
1559
1559
|
vn,
|
|
1560
1560
|
bn,
|
|
1561
1561
|
kn,
|
|
1562
1562
|
Cn
|
|
1563
1563
|
]
|
|
1564
|
-
}), An = xn,
|
|
1564
|
+
}), An = xn, wn = new RegExp(
|
|
1565
1565
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1566
|
-
),
|
|
1566
|
+
), _n = new RegExp(
|
|
1567
1567
|
"^([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]))?))?$"
|
|
1568
1568
|
);
|
|
1569
|
-
function _a(e) {
|
|
1570
|
-
return e === null ? !1 : _n.exec(e) !== null || wn.exec(e) !== null;
|
|
1571
|
-
}
|
|
1572
1569
|
function wa(e) {
|
|
1570
|
+
return e === null ? !1 : wn.exec(e) !== null || _n.exec(e) !== null;
|
|
1571
|
+
}
|
|
1572
|
+
function _a(e) {
|
|
1573
1573
|
var t, n, i, r, a, o, l, s = 0, u = null, d, c, g;
|
|
1574
|
-
if (t =
|
|
1574
|
+
if (t = wn.exec(e), t === null && (t = _n.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1575
1575
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1576
1576
|
return new Date(Date.UTC(n, i, r));
|
|
1577
1577
|
if (a = +t[4], o = +t[5], l = +t[6], t[7]) {
|
|
@@ -1586,8 +1586,8 @@ function Sa(e) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
var Sn = new oe("tag:yaml.org,2002:timestamp", {
|
|
1588
1588
|
kind: "scalar",
|
|
1589
|
-
resolve:
|
|
1590
|
-
construct:
|
|
1589
|
+
resolve: wa,
|
|
1590
|
+
construct: _a,
|
|
1591
1591
|
instanceOf: Date,
|
|
1592
1592
|
represent: Sa
|
|
1593
1593
|
});
|
|
@@ -1906,7 +1906,7 @@ function Xa(e, t) {
|
|
|
1906
1906
|
I(e, "unexpected end of the stream within a double quoted scalar");
|
|
1907
1907
|
}
|
|
1908
1908
|
function eo(e, t) {
|
|
1909
|
-
var n = !0, i, r, a, o = e.tag, l, s = e.anchor, u, d, c, g, f, p = /* @__PURE__ */ Object.create(null),
|
|
1909
|
+
var n = !0, i, r, a, o = e.tag, l, s = e.anchor, u, d, c, g, f, p = /* @__PURE__ */ Object.create(null), y, v, k, x;
|
|
1910
1910
|
if (x = e.input.charCodeAt(e.position), x === 91)
|
|
1911
1911
|
d = 93, f = !1, l = [];
|
|
1912
1912
|
else if (x === 123)
|
|
@@ -1916,7 +1916,7 @@ function eo(e, t) {
|
|
|
1916
1916
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
|
|
1917
1917
|
if (ie(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
|
|
1918
1918
|
return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1919
|
-
n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), v =
|
|
1919
|
+
n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), v = y = k = null, c = g = !1, x === 63 && (u = e.input.charCodeAt(e.position + 1), de(u) && (c = g = !0, e.position++, ie(e, !0, t))), i = e.line, r = e.lineStart, a = e.position, Oe(e, t, Pe, !1, !0), v = e.tag, y = e.result, ie(e, !0, t), x = e.input.charCodeAt(e.position), (g || e.line === i) && x === 58 && (c = !0, x = e.input.charCodeAt(++e.position), ie(e, !0, t), Oe(e, t, Pe, !1, !0), k = e.result), f ? Ie(e, l, p, v, y, k, i, r, a) : c ? l.push(Ie(e, null, p, v, y, k, i, r, a)) : l.push(y), ie(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1920
1920
|
}
|
|
1921
1921
|
I(e, "unexpected end of the stream within a flow collection");
|
|
1922
1922
|
}
|
|
@@ -1983,11 +1983,11 @@ function Nt(e, t) {
|
|
|
1983
1983
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1984
1984
|
}
|
|
1985
1985
|
function no(e, t, n) {
|
|
1986
|
-
var i, r, a, o, l, s, u = e.tag, d = e.anchor, c = {}, g = /* @__PURE__ */ Object.create(null), f = null, p = null,
|
|
1986
|
+
var i, r, a, o, l, s, u = e.tag, d = e.anchor, c = {}, g = /* @__PURE__ */ Object.create(null), f = null, p = null, y = null, v = !1, k = !1, x;
|
|
1987
1987
|
if (e.firstTabInLine !== -1) return !1;
|
|
1988
1988
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), x = e.input.charCodeAt(e.position); x !== 0; ) {
|
|
1989
1989
|
if (!v && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), a = e.line, (x === 63 || x === 58) && de(i))
|
|
1990
|
-
x === 63 ? (v && (Ie(e, c, g, f, p, null, o, l, s), f = p =
|
|
1990
|
+
x === 63 ? (v && (Ie(e, c, g, f, p, null, o, l, s), f = p = y = null), k = !0, v = !0, r = !0) : v ? (v = !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;
|
|
1991
1991
|
else {
|
|
1992
1992
|
if (o = e.line, l = e.lineStart, s = e.position, !Oe(e, n, On, !1, !0))
|
|
1993
1993
|
break;
|
|
@@ -1995,7 +1995,7 @@ function no(e, t, n) {
|
|
|
1995
1995
|
for (x = e.input.charCodeAt(e.position); xe(x); )
|
|
1996
1996
|
x = e.input.charCodeAt(++e.position);
|
|
1997
1997
|
if (x === 58)
|
|
1998
|
-
x = e.input.charCodeAt(++e.position), de(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Ie(e, c, g, f, p, null, o, l, s), f = p =
|
|
1998
|
+
x = e.input.charCodeAt(++e.position), de(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), v && (Ie(e, c, g, f, p, null, o, l, s), f = p = y = null), k = !0, v = !1, r = !1, f = e.tag, p = e.result;
|
|
1999
1999
|
else if (k)
|
|
2000
2000
|
I(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2001
2001
|
else
|
|
@@ -2005,7 +2005,7 @@ function no(e, t, n) {
|
|
|
2005
2005
|
else
|
|
2006
2006
|
return e.tag = u, e.anchor = d, !0;
|
|
2007
2007
|
}
|
|
2008
|
-
if ((e.line === a || e.lineIndent > t) && (v && (o = e.line, l = e.lineStart, s = e.position), Oe(e, t, je, !0, r) && (v ? p = e.result :
|
|
2008
|
+
if ((e.line === a || e.lineIndent > t) && (v && (o = e.line, l = e.lineStart, s = e.position), Oe(e, t, je, !0, r) && (v ? p = e.result : y = e.result), v || (Ie(e, c, g, f, p, y, o, l, s), f = p = y = null), ie(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && x !== 0)
|
|
2009
2009
|
I(e, "bad indentation of a mapping entry");
|
|
2010
2010
|
else if (e.lineIndent < t)
|
|
2011
2011
|
break;
|
|
@@ -2048,11 +2048,11 @@ function ao(e) {
|
|
|
2048
2048
|
return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ke.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ie(e, !0, -1), !0;
|
|
2049
2049
|
}
|
|
2050
2050
|
function Oe(e, t, n, i, r) {
|
|
2051
|
-
var a, o, l, s = 1, u = !1, d = !1, c, g, f, p,
|
|
2051
|
+
var a, o, l, s = 1, u = !1, d = !1, c, g, f, p, y, v;
|
|
2052
2052
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = je === n || Ln === n, i && ie(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2053
2053
|
for (; io(e) || ro(e); )
|
|
2054
2054
|
ie(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2055
|
-
if (l && (l = u || r), (s === 1 || je === n) && (Pe === n || On === n ?
|
|
2055
|
+
if (l && (l = u || r), (s === 1 || je === n) && (Pe === n || On === n ? y = t : y = t + 1, v = e.position - e.lineStart, s === 1 ? l && (Nt(e, v) || no(e, v, y)) || eo(e, y) ? d = !0 : (o && to(e, y) || Za(e, y) || Xa(e, y) ? d = !0 : ao(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : Qa(e, y, Pe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Nt(e, v))), e.tag === null)
|
|
2056
2056
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2057
2057
|
else if (e.tag === "?") {
|
|
2058
2058
|
for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, g = e.implicitTypes.length; c < g; c += 1)
|
|
@@ -2132,7 +2132,7 @@ function so(e, t) {
|
|
|
2132
2132
|
var co = lo, uo = so, jn = {
|
|
2133
2133
|
loadAll: co,
|
|
2134
2134
|
load: uo
|
|
2135
|
-
}, Un = Object.prototype.toString, qn = Object.prototype.hasOwnProperty, gt = 65279, fo = 9, Re = 10, po = 13, mo = 32, go = 33,
|
|
2135
|
+
}, Un = Object.prototype.toString, qn = Object.prototype.hasOwnProperty, gt = 65279, fo = 9, Re = 10, po = 13, mo = 32, go = 33, yo = 34, it = 35, ho = 37, vo = 38, bo = 39, ko = 42, Hn = 44, Co = 45, qe = 58, xo = 61, Ao = 62, wo = 63, _o = 64, Yn = 91, Vn = 93, So = 96, Wn = 123, $o = 124, Gn = 125, le = {};
|
|
2136
2136
|
le[0] = "\\0";
|
|
2137
2137
|
le[7] = "\\a";
|
|
2138
2138
|
le[8] = "\\b";
|
|
@@ -2227,7 +2227,7 @@ function Pt(e, t, n) {
|
|
|
2227
2227
|
);
|
|
2228
2228
|
}
|
|
2229
2229
|
function Ro(e) {
|
|
2230
|
-
return Ne(e) && e !== gt && !He(e) && e !== Co && e !==
|
|
2230
|
+
return Ne(e) && e !== gt && !He(e) && e !== Co && e !== wo && e !== qe && e !== Hn && e !== Yn && e !== Vn && e !== Wn && e !== Gn && e !== it && e !== vo && e !== ko && e !== go && e !== $o && e !== xo && e !== Ao && e !== bo && e !== yo && e !== ho && e !== _o && e !== So;
|
|
2231
2231
|
}
|
|
2232
2232
|
function Ko(e) {
|
|
2233
2233
|
return !He(e) && e !== qe;
|
|
@@ -2242,12 +2242,12 @@ function Jn(e) {
|
|
|
2242
2242
|
}
|
|
2243
2243
|
var zn = 1, at = 2, Qn = 3, Zn = 4, Te = 5;
|
|
2244
2244
|
function No(e, t, n, i, r, a, o, l) {
|
|
2245
|
-
var s, u = 0, d = null, c = !1, g = !1, f = i !== -1, p = -1,
|
|
2245
|
+
var s, u = 0, d = null, c = !1, g = !1, f = i !== -1, p = -1, y = Ro(Le(e, 0)) && Ko(Le(e, e.length - 1));
|
|
2246
2246
|
if (t || o)
|
|
2247
2247
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
2248
2248
|
if (u = Le(e, s), !Ne(u))
|
|
2249
2249
|
return Te;
|
|
2250
|
-
|
|
2250
|
+
y = y && Pt(u, d, l), d = u;
|
|
2251
2251
|
}
|
|
2252
2252
|
else {
|
|
2253
2253
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
@@ -2256,11 +2256,11 @@ function No(e, t, n, i, r, a, o, l) {
|
|
|
2256
2256
|
s - p - 1 > i && e[p + 1] !== " ", p = s);
|
|
2257
2257
|
else if (!Ne(u))
|
|
2258
2258
|
return Te;
|
|
2259
|
-
|
|
2259
|
+
y = y && Pt(u, d, l), d = u;
|
|
2260
2260
|
}
|
|
2261
2261
|
g = g || f && s - p - 1 > i && e[p + 1] !== " ";
|
|
2262
2262
|
}
|
|
2263
|
-
return !c && !g ?
|
|
2263
|
+
return !c && !g ? y && !o && !r(e) ? zn : a === Ke ? Te : at : n > 9 && Jn(e) ? Te : o ? a === Ke ? Te : at : g ? Zn : Qn;
|
|
2264
2264
|
}
|
|
2265
2265
|
function Mo(e, t, n, i, r) {
|
|
2266
2266
|
e.dump = function() {
|
|
@@ -2339,19 +2339,19 @@ function Po(e) {
|
|
|
2339
2339
|
function jo(e, t, n) {
|
|
2340
2340
|
var i = "", r = e.tag, a, o, l;
|
|
2341
2341
|
for (a = 0, o = n.length; a < o; a += 1)
|
|
2342
|
-
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (
|
|
2342
|
+
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (ye(e, t, l, !1, !1) || typeof l > "u" && ye(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
2343
2343
|
e.tag = r, e.dump = "[" + i + "]";
|
|
2344
2344
|
}
|
|
2345
2345
|
function Ht(e, t, n, i) {
|
|
2346
2346
|
var r = "", a = e.tag, o, l, s;
|
|
2347
2347
|
for (o = 0, l = n.length; o < l; o += 1)
|
|
2348
|
-
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (
|
|
2348
|
+
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ye(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ye(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += rt(e, t)), e.dump && Re === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2349
2349
|
e.tag = a, e.dump = r || "[]";
|
|
2350
2350
|
}
|
|
2351
2351
|
function Uo(e, t, n) {
|
|
2352
2352
|
var i = "", r = e.tag, a = Object.keys(n), o, l, s, u, d;
|
|
2353
2353
|
for (o = 0, l = a.length; o < l; o += 1)
|
|
2354
|
-
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], u = n[s], e.replacer && (u = e.replacer.call(n, s, u)),
|
|
2354
|
+
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], u = n[s], e.replacer && (u = e.replacer.call(n, s, u)), ye(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ye(e, t, u, !1, !1) && (d += e.dump, i += d));
|
|
2355
2355
|
e.tag = r, e.dump = "{" + i + "}";
|
|
2356
2356
|
}
|
|
2357
2357
|
function qo(e, t, n, i) {
|
|
@@ -2363,7 +2363,7 @@ function qo(e, t, n, i) {
|
|
|
2363
2363
|
else if (e.sortKeys)
|
|
2364
2364
|
throw new ce("sortKeys must be a boolean or a function");
|
|
2365
2365
|
for (l = 0, s = o.length; l < s; l += 1)
|
|
2366
|
-
g = "", (!i || r !== "") && (g += rt(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)),
|
|
2366
|
+
g = "", (!i || r !== "") && (g += rt(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ye(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Re === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, c && (g += rt(e, t)), ye(e, t + 1, d, !0, c) && (e.dump && Re === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, r += g));
|
|
2367
2367
|
e.tag = a, e.dump = r || "{}";
|
|
2368
2368
|
}
|
|
2369
2369
|
function Yt(e, t, n) {
|
|
@@ -2383,7 +2383,7 @@ function Yt(e, t, n) {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
return !1;
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function ye(e, t, n, i, r, a, o) {
|
|
2387
2387
|
e.tag = null, e.dump = n, Yt(e, n, !1) || Yt(e, n, !0);
|
|
2388
2388
|
var l = Un.call(e.dump), s = i, u;
|
|
2389
2389
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
@@ -2432,21 +2432,21 @@ function Yo(e, t) {
|
|
|
2432
2432
|
var n = new Lo(t);
|
|
2433
2433
|
n.noRefs || Ho(e, n);
|
|
2434
2434
|
var i = e;
|
|
2435
|
-
return n.replacer && (i = n.replacer.call({ "": i }, "", i)),
|
|
2435
|
+
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), ye(n, 0, i, !0, !0) ? n.dump + `
|
|
2436
2436
|
` : "";
|
|
2437
2437
|
}
|
|
2438
2438
|
var Vo = Yo, Wo = {
|
|
2439
2439
|
dump: Vo
|
|
2440
2440
|
};
|
|
2441
|
-
function
|
|
2441
|
+
function yt(e, t) {
|
|
2442
2442
|
return function() {
|
|
2443
2443
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2444
2444
|
};
|
|
2445
2445
|
}
|
|
2446
|
-
var Go = oe, Jo = pn, zo =
|
|
2446
|
+
var Go = oe, Jo = pn, zo = hn, Qo = xn, Zo = An, Xo = ft, el = jn.load, tl = jn.loadAll, nl = Wo.dump, il = ce, rl = {
|
|
2447
2447
|
binary: Tn,
|
|
2448
2448
|
float: Cn,
|
|
2449
|
-
map:
|
|
2449
|
+
map: yn,
|
|
2450
2450
|
null: vn,
|
|
2451
2451
|
pairs: In,
|
|
2452
2452
|
set: Fn,
|
|
@@ -2457,7 +2457,7 @@ var Go = oe, Jo = pn, zo = yn, Qo = xn, Zo = An, Xo = ft, el = jn.load, tl = jn.
|
|
|
2457
2457
|
omap: En,
|
|
2458
2458
|
seq: gn,
|
|
2459
2459
|
str: mn
|
|
2460
|
-
}, al =
|
|
2460
|
+
}, al = yt("safeLoad", "load"), ol = yt("safeLoadAll", "loadAll"), ll = yt("safeDump", "dump"), Xn = {
|
|
2461
2461
|
Type: Go,
|
|
2462
2462
|
Schema: Jo,
|
|
2463
2463
|
FAILSAFE_SCHEMA: zo,
|
|
@@ -2483,7 +2483,7 @@ const sl = { class: "yaml-config config-card-code-block" }, ei = /* @__PURE__ */
|
|
|
2483
2483
|
}
|
|
2484
2484
|
},
|
|
2485
2485
|
setup(e) {
|
|
2486
|
-
const t = e, n =
|
|
2486
|
+
const t = e, n = _(() => {
|
|
2487
2487
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2488
2488
|
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Xn.dump(i).trim();
|
|
2489
2489
|
});
|
|
@@ -2525,14 +2525,14 @@ const sl = { class: "yaml-config config-card-code-block" }, ei = /* @__PURE__ */
|
|
|
2525
2525
|
}
|
|
2526
2526
|
},
|
|
2527
2527
|
setup(e) {
|
|
2528
|
-
const t = e, n =
|
|
2528
|
+
const t = e, n = _(() => Oi.includes(t.entityType)), i = _(() => Li.includes(t.entityType)), r = (c, g) => {
|
|
2529
2529
|
if (c.includes(`
|
|
2530
2530
|
`)) {
|
|
2531
|
-
const p = g + ne,
|
|
2531
|
+
const p = g + ne, y = c.split(`
|
|
2532
2532
|
`).map((v) => `${p}${v}`).join(`
|
|
2533
2533
|
`);
|
|
2534
2534
|
return `<<-${Vt}
|
|
2535
|
-
${
|
|
2535
|
+
${y}
|
|
2536
2536
|
${p}${Vt}`;
|
|
2537
2537
|
}
|
|
2538
2538
|
return `"${c.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
@@ -2546,43 +2546,43 @@ ${p}${Vt}`;
|
|
|
2546
2546
|
if (typeof c != "object")
|
|
2547
2547
|
return "Invalid object";
|
|
2548
2548
|
const p = ne + f;
|
|
2549
|
-
let
|
|
2550
|
-
if (g && (
|
|
2549
|
+
let y = "";
|
|
2550
|
+
if (g && (y += `${p}${g} = {
|
|
2551
2551
|
`), c === null)
|
|
2552
|
-
return g ?
|
|
2552
|
+
return g ? y += `${p}}` : y = "{}", y;
|
|
2553
2553
|
const v = Object.fromEntries(Object.entries(c).filter(([, x]) => x !== null));
|
|
2554
2554
|
let k = "";
|
|
2555
2555
|
for (const [x, $] of Object.entries(v))
|
|
2556
2556
|
Array.isArray($) ? $.length === 0 ? k = "[]" : (k = `[
|
|
2557
2557
|
`, k += l($, void 0, p), k += `${p}${ne}]`) : $ && typeof $ == "object" ? (k = `{
|
|
2558
|
-
`, k += o($, void 0, p), k += `${p}${ne}}`) : typeof $ == "string" ? k = r($, p + ne) : k = String($ ?? ""),
|
|
2558
|
+
`, k += o($, void 0, p), k += `${p}${ne}}`) : typeof $ == "string" ? k = r($, p + ne) : k = String($ ?? ""), y += `${p}${ne}${x} = ${k}
|
|
2559
2559
|
`;
|
|
2560
|
-
return g ?
|
|
2561
|
-
` :
|
|
2560
|
+
return g ? y += `${p}}
|
|
2561
|
+
` : y;
|
|
2562
2562
|
}, l = (c, g, f = "") => {
|
|
2563
2563
|
if (!Array.isArray(c))
|
|
2564
2564
|
return "Invalid array";
|
|
2565
2565
|
const p = ne + f;
|
|
2566
|
-
let
|
|
2567
|
-
g && (c.length === 0 ?
|
|
2566
|
+
let y = "";
|
|
2567
|
+
g && (c.length === 0 ? y += `${p}${g} = [` : y += `${p}${g} = [
|
|
2568
2568
|
`);
|
|
2569
2569
|
for (let v = 0; v < c.length; v++) {
|
|
2570
2570
|
const k = c[v];
|
|
2571
|
-
typeof k == "object" ? (
|
|
2572
|
-
`,
|
|
2571
|
+
typeof k == "object" ? (y += `${p}${ne}{
|
|
2572
|
+
`, y += o(k, void 0, p), y += `${p}${ne}}`) : typeof k == "string" ? y += `${p}${ne}${r(k, p + ne)}` : y += `${p}${ne}${String(k ?? "")}`, v < c.length - 1 && (y += ","), y += `
|
|
2573
2573
|
`;
|
|
2574
2574
|
}
|
|
2575
|
-
return g && (c.length === 0 ?
|
|
2576
|
-
` :
|
|
2577
|
-
`),
|
|
2575
|
+
return g && (c.length === 0 ? y += `]
|
|
2576
|
+
` : y += `${p}]
|
|
2577
|
+
`), y;
|
|
2578
2578
|
}, s = (c) => c.replace(/\$\{/g, () => "$${"), u = (c) => {
|
|
2579
2579
|
let g = "";
|
|
2580
2580
|
for (const [f, p] of Object.entries(c))
|
|
2581
2581
|
Array.isArray(p) ? g += l(p, f) : typeof p == "object" ? g += o(p, f) : g += a(p, f);
|
|
2582
2582
|
return s(g);
|
|
2583
|
-
}, d =
|
|
2584
|
-
var
|
|
2585
|
-
const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, F]) => F != null)), g = t.entityRecord.config ? Object.fromEntries(Object.entries((
|
|
2583
|
+
}, d = _(() => {
|
|
2584
|
+
var y, v, k, x, $, N, Q;
|
|
2585
|
+
const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, F]) => F != null)), g = t.entityRecord.config ? Object.fromEntries(Object.entries((y = t.entityRecord) == null ? void 0 : y.config).filter(([, F]) => F != null)) : void 0;
|
|
2586
2586
|
if (g && (c.config = g), Object.keys(c).length === 0)
|
|
2587
2587
|
return "";
|
|
2588
2588
|
delete c.id;
|
|
@@ -2636,23 +2636,23 @@ ${p}${Vt}`;
|
|
|
2636
2636
|
const t = e, { i18n: n, i18nT: i } = J.useI18n(), r = [
|
|
2637
2637
|
{ value: "bash", label: "Linux / macOS Bash" },
|
|
2638
2638
|
{ value: "powershell", label: "Windows PowerShell" }
|
|
2639
|
-
], a = j(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), o =
|
|
2639
|
+
], a = j(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), o = _(() => {
|
|
2640
2640
|
const d = {
|
|
2641
2641
|
_format_version: "3.0"
|
|
2642
2642
|
};
|
|
2643
2643
|
return t.controlPlaneName ? d._konnect = {
|
|
2644
2644
|
control_plane_name: t.controlPlaneName
|
|
2645
2645
|
} : t.workspace && (d._workspace = t.workspace), d;
|
|
2646
|
-
}), l =
|
|
2647
|
-
var f, p,
|
|
2646
|
+
}), l = _(() => {
|
|
2647
|
+
var f, p, y, v, k;
|
|
2648
2648
|
const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x !== null && x !== "" && (Array.isArray(x) ? x.length !== 0 : !0)));
|
|
2649
|
-
t.entityType === Ce.Plugin ? ((f = d.service) != null && f.id && (d.service = d.service.id), (p = d.route) != null && p.id && (d.route = d.route.id), (
|
|
2649
|
+
t.entityType === Ce.Plugin ? ((f = d.service) != null && f.id && (d.service = d.service.id), (p = d.route) != null && p.id && (d.route = d.route.id), (y = d.consumer) != null && y.id && (d.consumer = d.consumer.id), (v = d.consumer_group) != null && v.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === Ce.Key && (k = d.key_set) != null && k.id && (d.key_set = d.key_set.id);
|
|
2650
2650
|
const c = t.entityType === Ce.KeySet ? "key_sets" : t.entityType + "s", g = {
|
|
2651
2651
|
...o.value,
|
|
2652
2652
|
[c]: [d]
|
|
2653
2653
|
};
|
|
2654
2654
|
return Xn.dump(g, { quotingType: '"' }).trim();
|
|
2655
|
-
}), s =
|
|
2655
|
+
}), s = _(() => a.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), u = _(() => {
|
|
2656
2656
|
let d = "deck gateway apply -";
|
|
2657
2657
|
return t.geoApiServerUrl ? d += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (d += ` --kong-addr ${t.kongAdminApiUrl}`), a.value === "bash" ? `echo '
|
|
2658
2658
|
${l.value}
|
|
@@ -2665,16 +2665,16 @@ ${l.value}
|
|
|
2665
2665
|
return m(), S("div", ul, [
|
|
2666
2666
|
P(g, {
|
|
2667
2667
|
modelValue: a.value,
|
|
2668
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2668
|
+
"onUpdate:modelValue": c[0] || (c[0] = (y) => a.value = y),
|
|
2669
2669
|
items: r
|
|
2670
2670
|
}, {
|
|
2671
|
-
"item-template": A(({ item:
|
|
2672
|
-
|
|
2673
|
-
V(" " + O(
|
|
2671
|
+
"item-template": A(({ item: y }) => [
|
|
2672
|
+
y.value === "powershell" ? (m(), R(C(Ct), { key: 0 })) : (m(), R(C(xt), { key: 1 })),
|
|
2673
|
+
V(" " + O(y.label), 1)
|
|
2674
2674
|
]),
|
|
2675
|
-
"selected-item-template": A(({ item:
|
|
2676
|
-
|
|
2677
|
-
V(" " + O(
|
|
2675
|
+
"selected-item-template": A(({ item: y }) => [
|
|
2676
|
+
y.value === "powershell" ? (m(), R(C(Ct), { key: 0 })) : (m(), R(C(xt), { key: 1 })),
|
|
2677
|
+
V(" " + O(y.label), 1)
|
|
2678
2678
|
]),
|
|
2679
2679
|
_: 1
|
|
2680
2680
|
}, 8, ["modelValue"]),
|
|
@@ -2682,7 +2682,7 @@ ${l.value}
|
|
|
2682
2682
|
"data-testid": `deck-hint-${e.app}`,
|
|
2683
2683
|
keypath: `deckCodeBlock.hint.${e.app}`,
|
|
2684
2684
|
tag: "p"
|
|
2685
|
-
},
|
|
2685
|
+
}, we({
|
|
2686
2686
|
link: A(() => [
|
|
2687
2687
|
P(C(pi), {
|
|
2688
2688
|
href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
|
|
@@ -2791,27 +2791,27 @@ ${l.value}
|
|
|
2791
2791
|
}
|
|
2792
2792
|
},
|
|
2793
2793
|
setup(e) {
|
|
2794
|
-
const t = e, n = Me(), { i18n: { t: i } } = J.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), a =
|
|
2794
|
+
const t = e, n = Me(), { i18n: { t: i } } = J.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), a = _(() => {
|
|
2795
2795
|
if (!t.record)
|
|
2796
2796
|
return t.record;
|
|
2797
2797
|
let l = t.record;
|
|
2798
2798
|
t.codeBlockRecordFormatter && (l = t.codeBlockRecordFormatter(l, t.format));
|
|
2799
2799
|
const s = JSON.parse(JSON.stringify(l));
|
|
2800
2800
|
return delete s.created_at, delete s.updated_at, s;
|
|
2801
|
-
}), o =
|
|
2802
|
-
return (l, s) => (m(), S(
|
|
2801
|
+
}), o = _(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
|
|
2802
|
+
return (l, s) => (m(), S(pe, null, [
|
|
2803
2803
|
e.format === "structured" ? (m(), S("div", fl, [
|
|
2804
|
-
(m(!0), S(
|
|
2804
|
+
(m(!0), S(pe, null, me(e.propListTypes, (u) => (m(), S("div", {
|
|
2805
2805
|
key: `config-card-details-${u}-props`,
|
|
2806
|
-
class:
|
|
2806
|
+
class: fe(`config-card-details-${u}-props`),
|
|
2807
2807
|
"data-testid": `config-card-details-${u}-props`
|
|
2808
2808
|
}, [
|
|
2809
2809
|
u !== "basic" ? (m(), S("div", ml, O(u === "advanced" ? C(i)("baseConfigCard.sections.advanced") : u === "plugin" ? C(i)("baseConfigCard.sections.plugin") : C(i)("baseConfigCard.sections.policy")), 1)) : q("", !0),
|
|
2810
|
-
(m(!0), S(
|
|
2810
|
+
(m(!0), S(pe, null, me(e.propertyCollections[u], (d) => H(l.$slots, `config-card-item-${d.key}`, { row: d }, () => [
|
|
2811
2811
|
(m(), R(cn, {
|
|
2812
2812
|
key: d.key,
|
|
2813
2813
|
item: d
|
|
2814
|
-
},
|
|
2814
|
+
}, we({
|
|
2815
2815
|
label: A(() => [
|
|
2816
2816
|
H(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
|
|
2817
2817
|
]),
|
|
@@ -2863,7 +2863,7 @@ ${l.value}
|
|
|
2863
2863
|
}, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])) : q("", !0)
|
|
2864
2864
|
], 64));
|
|
2865
2865
|
}
|
|
2866
|
-
}),
|
|
2866
|
+
}), yl = /* @__PURE__ */ ue(gl, [["__scopeId", "data-v-2a7f1b10"]]), hl = {
|
|
2867
2867
|
class: "config-card-title",
|
|
2868
2868
|
"data-testid": "config-card-title"
|
|
2869
2869
|
}, vl = { class: "config-card-actions" }, bl = ["href"], kl = { class: "config-card-details-section" }, Cl = {
|
|
@@ -3002,9 +3002,9 @@ ${l.value}
|
|
|
3002
3002
|
var T;
|
|
3003
3003
|
const n = t, i = e, r = /* @__PURE__ */ new Set(["after-fields"]), { i18n: { t: a } } = J.useI18n(), { getMessageFromError: o } = J.useErrors(), { convertKeyToTitle: l } = J.useStringHelpers();
|
|
3004
3004
|
J.useSubSchema(i.pluginConfigKey);
|
|
3005
|
-
const { axiosInstance: s } = J.useAxios((T = i.config) == null ? void 0 : T.axiosRequestConfig), u = Me(), d =
|
|
3005
|
+
const { axiosInstance: s } = J.useAxios((T = i.config) == null ? void 0 : T.axiosRequestConfig), u = Me(), d = _(
|
|
3006
3006
|
() => Object.keys(u).filter((b) => !r.has(b))
|
|
3007
|
-
), c =
|
|
3007
|
+
), c = _(() => !!u["after-fields"]), g = _(() => {
|
|
3008
3008
|
const b = [
|
|
3009
3009
|
{
|
|
3010
3010
|
label: a("baseConfigCard.general.structuredFormat"),
|
|
@@ -3033,16 +3033,16 @@ ${l.value}
|
|
|
3033
3033
|
return b.filter((X) => X.value === "structured" || !Z.has(X.value));
|
|
3034
3034
|
}), f = j("structured"), p = (b) => {
|
|
3035
3035
|
f.value = b == null ? void 0 : b.value, n("configFormatChange", f.value);
|
|
3036
|
-
},
|
|
3036
|
+
}, y = (b, M) => {
|
|
3037
3037
|
localStorage.setItem(b, M);
|
|
3038
3038
|
};
|
|
3039
3039
|
Ae(f, (b) => {
|
|
3040
|
-
i.config.formatPreferenceKey &&
|
|
3040
|
+
i.config.formatPreferenceKey && y(i.config.formatPreferenceKey, b);
|
|
3041
3041
|
}), st(() => {
|
|
3042
3042
|
var b;
|
|
3043
3043
|
if (i.config.formatPreferenceKey) {
|
|
3044
3044
|
const M = localStorage.getItem(i.config.formatPreferenceKey), K = g.value;
|
|
3045
|
-
M && K.some((Z) => Z.value === M) ? f.value = M : f.value = ((b = K[0]) == null ? void 0 : b.value) ?? "structured",
|
|
3045
|
+
M && K.some((Z) => Z.value === M) ? f.value = M : f.value = ((b = K[0]) == null ? void 0 : b.value) ?? "structured", y(i.config.formatPreferenceKey, f.value);
|
|
3046
3046
|
}
|
|
3047
3047
|
});
|
|
3048
3048
|
const v = {
|
|
@@ -3086,7 +3086,7 @@ ${l.value}
|
|
|
3086
3086
|
// the last property displayed
|
|
3087
3087
|
section: se.Basic
|
|
3088
3088
|
}
|
|
3089
|
-
}, k = j(!1), x = j(!1), $ = j(""), N = j({}), Q =
|
|
3089
|
+
}, k = j(!1), x = j(!1), $ = j(""), N = j({}), Q = _(() => {
|
|
3090
3090
|
var K, Z, X;
|
|
3091
3091
|
if (!N.value)
|
|
3092
3092
|
return [];
|
|
@@ -3100,8 +3100,8 @@ ${l.value}
|
|
|
3100
3100
|
return b.sort(function(U, D) {
|
|
3101
3101
|
return U[1] - D[1];
|
|
3102
3102
|
}), b.map((U) => {
|
|
3103
|
-
var
|
|
3104
|
-
const D = U[0], ee = (
|
|
3103
|
+
var ht, vt;
|
|
3104
|
+
const D = U[0], ee = (ht = N.value) == null ? void 0 : ht[D], W = ((vt = i.configSchema) == null ? void 0 : vt[D]) || {}, te = v[D];
|
|
3105
3105
|
return {
|
|
3106
3106
|
key: D,
|
|
3107
3107
|
value: ee,
|
|
@@ -3112,7 +3112,7 @@ ${l.value}
|
|
|
3112
3112
|
section: W.section ?? ((te == null ? void 0 : te.section) || se.Advanced)
|
|
3113
3113
|
};
|
|
3114
3114
|
}).filter((U) => !U.hidden && U.key !== i.pluginConfigKey);
|
|
3115
|
-
}), F =
|
|
3115
|
+
}), F = _(() => {
|
|
3116
3116
|
var Z, X;
|
|
3117
3117
|
if (!N.value || !i.pluginConfigKey)
|
|
3118
3118
|
return [];
|
|
@@ -3137,7 +3137,7 @@ ${l.value}
|
|
|
3137
3137
|
section: se.Plugin
|
|
3138
3138
|
};
|
|
3139
3139
|
}).filter((U) => !U.hidden);
|
|
3140
|
-
}),
|
|
3140
|
+
}), B = _(() => {
|
|
3141
3141
|
var Z, X;
|
|
3142
3142
|
if (!N.value || !i.policyConfigKey)
|
|
3143
3143
|
return [];
|
|
@@ -3162,18 +3162,18 @@ ${l.value}
|
|
|
3162
3162
|
section: se.Policy
|
|
3163
3163
|
};
|
|
3164
3164
|
}).filter((U) => !U.hidden);
|
|
3165
|
-
}), E =
|
|
3165
|
+
}), E = _(() => {
|
|
3166
3166
|
var b, M, K, Z, X, U;
|
|
3167
3167
|
return {
|
|
3168
3168
|
basic: (b = Q.value) == null ? void 0 : b.filter((D) => D.section === se.Basic),
|
|
3169
3169
|
advanced: (M = Q.value) == null ? void 0 : M.filter((D) => D.section === se.Advanced),
|
|
3170
3170
|
plugin: (Z = F.value) == null ? void 0 : Z.concat((K = Q.value) == null ? void 0 : K.filter((D) => D.section === se.Plugin)),
|
|
3171
|
-
policy: (U =
|
|
3171
|
+
policy: (U = B.value) == null ? void 0 : U.concat((X = Q.value) == null ? void 0 : X.filter((D) => D.section === se.Policy))
|
|
3172
3172
|
};
|
|
3173
|
-
}),
|
|
3173
|
+
}), h = _(() => {
|
|
3174
3174
|
const b = [];
|
|
3175
3175
|
return E.value.basic.length && b.push("basic"), E.value.advanced.length && b.push("advanced"), E.value.plugin.length && b.push("plugin"), E.value.policy.length && b.push("policy"), b;
|
|
3176
|
-
}),
|
|
3176
|
+
}), w = _(() => {
|
|
3177
3177
|
var M, K;
|
|
3178
3178
|
let b = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
3179
3179
|
return i.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((M = i.config) == null ? void 0 : M.controlPlaneId) || "") : i.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (K = i.config) != null && K.workspace ? `/${i.config.workspace}` : "")), b = b.replace(/{id}/gi, i.config.entityId), b;
|
|
@@ -3183,7 +3183,7 @@ ${l.value}
|
|
|
3183
3183
|
}, { immediate: !0 }), ct(async () => {
|
|
3184
3184
|
x.value = !1, k.value = !0;
|
|
3185
3185
|
try {
|
|
3186
|
-
const { data: b } = await s.get(
|
|
3186
|
+
const { data: b } = await s.get(w.value);
|
|
3187
3187
|
if (i.dataKey)
|
|
3188
3188
|
if (typeof b[i.dataKey] < "u")
|
|
3189
3189
|
N.value = { ...b[i.dataKey] };
|
|
@@ -3204,9 +3204,9 @@ ${l.value}
|
|
|
3204
3204
|
return m(), R(ee, {
|
|
3205
3205
|
class: "kong-ui-entity-base-config-card",
|
|
3206
3206
|
"title-tag": e.titleTag
|
|
3207
|
-
},
|
|
3207
|
+
}, we({
|
|
3208
3208
|
actions: A(() => [
|
|
3209
|
-
|
|
3209
|
+
L("div", vl, [
|
|
3210
3210
|
H(b.$slots, "actions", {}, void 0, !0),
|
|
3211
3211
|
P(K, {
|
|
3212
3212
|
class: "config-format-select-label",
|
|
@@ -3231,12 +3231,12 @@ ${l.value}
|
|
|
3231
3231
|
"data-testid": "book-icon"
|
|
3232
3232
|
}, {
|
|
3233
3233
|
default: A(() => [
|
|
3234
|
-
|
|
3234
|
+
L("a", {
|
|
3235
3235
|
href: e.configCardDoc,
|
|
3236
3236
|
rel: "noopener",
|
|
3237
3237
|
target: "_blank"
|
|
3238
3238
|
}, [
|
|
3239
|
-
P(C(Xt), { size: C(
|
|
3239
|
+
P(C(Xt), { size: C(_r) }, null, 8, ["size"])
|
|
3240
3240
|
], 8, bl)
|
|
3241
3241
|
]),
|
|
3242
3242
|
_: 1
|
|
@@ -3255,23 +3255,23 @@ ${l.value}
|
|
|
3255
3255
|
"icon-variant": "error"
|
|
3256
3256
|
}, {
|
|
3257
3257
|
default: A(() => [
|
|
3258
|
-
|
|
3258
|
+
L("h3", null, O($.value), 1)
|
|
3259
3259
|
]),
|
|
3260
3260
|
_: 1
|
|
3261
|
-
})) : (m(), S(
|
|
3262
|
-
|
|
3263
|
-
P(
|
|
3261
|
+
})) : (m(), S(pe, { key: 2 }, [
|
|
3262
|
+
L("div", kl, [
|
|
3263
|
+
P(yl, {
|
|
3264
3264
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
3265
3265
|
config: e.config,
|
|
3266
3266
|
"entity-type": e.entityType,
|
|
3267
|
-
"fetcher-url":
|
|
3267
|
+
"fetcher-url": w.value,
|
|
3268
3268
|
format: f.value,
|
|
3269
|
-
"prop-list-types":
|
|
3269
|
+
"prop-list-types": h.value,
|
|
3270
3270
|
"property-collections": E.value,
|
|
3271
3271
|
record: N.value,
|
|
3272
3272
|
"sub-entity-type": e.subEntityType
|
|
3273
|
-
},
|
|
3274
|
-
|
|
3273
|
+
}, we({ _: 2 }, [
|
|
3274
|
+
me(d.value, (W) => ({
|
|
3275
3275
|
name: W,
|
|
3276
3276
|
fn: A((te) => [
|
|
3277
3277
|
H(b.$slots, W, Qt({ record: N.value }, te), void 0, !0)
|
|
@@ -3289,7 +3289,7 @@ ${l.value}
|
|
|
3289
3289
|
e.hideTitle ? void 0 : {
|
|
3290
3290
|
name: "title",
|
|
3291
3291
|
fn: A(() => [
|
|
3292
|
-
|
|
3292
|
+
L("span", hl, [
|
|
3293
3293
|
H(b.$slots, "title", {}, () => [
|
|
3294
3294
|
V(O(C(a)("baseConfigCard.title")), 1)
|
|
3295
3295
|
], !0)
|
|
@@ -3303,7 +3303,7 @@ ${l.value}
|
|
|
3303
3303
|
}), Qs = /* @__PURE__ */ ue(xl, [["__scopeId", "data-v-42166123"]]), Al = {
|
|
3304
3304
|
/** Enable the new plugin form layout */
|
|
3305
3305
|
KM_1948_PLUGIN_FORM_LAYOUT: "KM_1948_PLUGIN_FORM_LAYOUT"
|
|
3306
|
-
},
|
|
3306
|
+
}, wl = ["novalidate"], _l = /* @__PURE__ */ z({
|
|
3307
3307
|
__name: "EntityBaseForm",
|
|
3308
3308
|
props: {
|
|
3309
3309
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3427,12 +3427,12 @@ ${l.value}
|
|
|
3427
3427
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3428
3428
|
setup(e, { expose: t, emit: n }) {
|
|
3429
3429
|
var E;
|
|
3430
|
-
const i = lt(Al.KM_1948_PLUGIN_FORM_LAYOUT,
|
|
3431
|
-
var
|
|
3432
|
-
let
|
|
3433
|
-
return a.config.app === "konnect" ?
|
|
3430
|
+
const i = lt(Al.KM_1948_PLUGIN_FORM_LAYOUT, _(() => !1)), r = n, a = e, o = Ti(), { i18n: { t: l } } = J.useI18n(), { getMessageFromError: s } = J.useErrors(), { axiosInstance: u } = J.useAxios((E = a.config) == null ? void 0 : E.axiosRequestConfig), d = j(!1), c = _(() => !!a.editId), g = j(!1), f = j(""), p = _(() => a.canSubmit === !1 || a.isReadonly), y = j(!1), v = _(() => {
|
|
3431
|
+
var w, T;
|
|
3432
|
+
let h = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3433
|
+
return a.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((w = a.config) == null ? void 0 : w.controlPlaneId) || "") : a.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (T = a.config) != null && T.workspace ? `/${a.config.workspace}` : "")), a.editId ? (h = h.replace(/{id}/gi, a.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
|
|
3434
3434
|
}), k = () => {
|
|
3435
|
-
|
|
3435
|
+
y.value = !y.value;
|
|
3436
3436
|
}, x = () => {
|
|
3437
3437
|
a.config.cancelRoute ? o.push(a.config.cancelRoute) : $();
|
|
3438
3438
|
}, $ = () => {
|
|
@@ -3457,17 +3457,17 @@ ${l.value}
|
|
|
3457
3457
|
return (a.config.app === "kongManager" || a.config.enableDeckTab) && F && Q.value.push({
|
|
3458
3458
|
title: l("baseForm.configuration.deck"),
|
|
3459
3459
|
hash: "#deck"
|
|
3460
|
-
}), Ae(() => d.value, (
|
|
3461
|
-
r("loading",
|
|
3460
|
+
}), Ae(() => d.value, (h) => {
|
|
3461
|
+
r("loading", h);
|
|
3462
3462
|
}, { immediate: !0 }), ct(async () => {
|
|
3463
3463
|
if (a.editId)
|
|
3464
3464
|
try {
|
|
3465
3465
|
g.value = !1, d.value = !0;
|
|
3466
|
-
const { data:
|
|
3467
|
-
r("fetch:success",
|
|
3468
|
-
} catch (
|
|
3469
|
-
const
|
|
3470
|
-
f.value =
|
|
3466
|
+
const { data: h } = await u.get(v.value);
|
|
3467
|
+
r("fetch:success", h);
|
|
3468
|
+
} catch (h) {
|
|
3469
|
+
const w = s(h);
|
|
3470
|
+
f.value = w.startsWith("code") ? l("baseForm.errors.edit") : w, g.value = !0, r("fetch:error", h);
|
|
3471
3471
|
} finally {
|
|
3472
3472
|
d.value = !1;
|
|
3473
3473
|
}
|
|
@@ -3475,10 +3475,10 @@ ${l.value}
|
|
|
3475
3475
|
viewConfig: k,
|
|
3476
3476
|
formCancel: $,
|
|
3477
3477
|
formSubmit: N
|
|
3478
|
-
}), (
|
|
3478
|
+
}), (h, w) => {
|
|
3479
3479
|
const T = Y("KSkeleton"), b = Y("KEmptyState"), M = Y("KAlert"), K = Y("KButton"), Z = Y("KTabs"), X = Y("KSlideout");
|
|
3480
3480
|
return m(), R(Ye(e.wrapperComponent), {
|
|
3481
|
-
class:
|
|
3481
|
+
class: fe(["kong-ui-entity-base-form", {
|
|
3482
3482
|
"new-form-layout": C(i) && e.entityType === C(Ce).Plugin
|
|
3483
3483
|
}])
|
|
3484
3484
|
}, {
|
|
@@ -3494,7 +3494,7 @@ ${l.value}
|
|
|
3494
3494
|
onClickAction: x
|
|
3495
3495
|
}, {
|
|
3496
3496
|
default: A(() => [
|
|
3497
|
-
|
|
3497
|
+
L("h3", null, O(f.value), 1)
|
|
3498
3498
|
]),
|
|
3499
3499
|
_: 1
|
|
3500
3500
|
}, 8, ["action-button-text"])) : (m(), S("form", {
|
|
@@ -3504,7 +3504,7 @@ ${l.value}
|
|
|
3504
3504
|
onReset: De($, ["prevent"]),
|
|
3505
3505
|
onSubmit: De(N, ["prevent"])
|
|
3506
3506
|
}, [
|
|
3507
|
-
H(
|
|
3507
|
+
H(h.$slots, "default", {}, void 0, !0),
|
|
3508
3508
|
e.errorMessage ? (m(), R(M, {
|
|
3509
3509
|
key: 0,
|
|
3510
3510
|
appearance: "danger",
|
|
@@ -3517,18 +3517,18 @@ ${l.value}
|
|
|
3517
3517
|
disabled: !e.actionTeleportTarget,
|
|
3518
3518
|
to: e.actionTeleportTarget
|
|
3519
3519
|
}, [
|
|
3520
|
-
|
|
3521
|
-
class:
|
|
3520
|
+
L("div", {
|
|
3521
|
+
class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3522
3522
|
"data-testid": "form-actions"
|
|
3523
3523
|
}, [
|
|
3524
|
-
H(
|
|
3524
|
+
H(h.$slots, "form-actions", {}, () => [
|
|
3525
3525
|
P(K, {
|
|
3526
3526
|
appearance: "tertiary",
|
|
3527
3527
|
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-view-configuration`,
|
|
3528
|
-
onClick:
|
|
3528
|
+
onClick: w[0] || (w[0] = (U) => k())
|
|
3529
3529
|
}, {
|
|
3530
3530
|
default: A(() => [
|
|
3531
|
-
V(O(
|
|
3531
|
+
V(O(y.value ? C(l)("baseForm.actions.hideConfiguration") : C(l)("baseForm.actions.viewConfiguration")), 1)
|
|
3532
3532
|
]),
|
|
3533
3533
|
_: 1
|
|
3534
3534
|
}, 8, ["data-testid"]),
|
|
@@ -3537,7 +3537,7 @@ ${l.value}
|
|
|
3537
3537
|
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-cancel`,
|
|
3538
3538
|
disabled: e.isReadonly,
|
|
3539
3539
|
type: "reset",
|
|
3540
|
-
onClick:
|
|
3540
|
+
onClick: w[1] || (w[1] = (U) => !!e.actionTeleportTarget && $())
|
|
3541
3541
|
}, {
|
|
3542
3542
|
default: A(() => [
|
|
3543
3543
|
V(O(e.cancelButtonText ?? C(l)("baseForm.actions.cancel")), 1)
|
|
@@ -3549,7 +3549,7 @@ ${l.value}
|
|
|
3549
3549
|
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-submit`,
|
|
3550
3550
|
disabled: p.value,
|
|
3551
3551
|
type: "submit",
|
|
3552
|
-
onClick:
|
|
3552
|
+
onClick: w[2] || (w[2] = (U) => !!e.actionTeleportTarget && N())
|
|
3553
3553
|
}, {
|
|
3554
3554
|
default: A(() => [
|
|
3555
3555
|
V(O(e.saveButtonText ?? C(l)("baseForm.actions.save")), 1)
|
|
@@ -3559,26 +3559,26 @@ ${l.value}
|
|
|
3559
3559
|
], !0)
|
|
3560
3560
|
], 2)
|
|
3561
3561
|
], 8, ["disabled", "to"]))
|
|
3562
|
-
], 40,
|
|
3562
|
+
], 40, wl)),
|
|
3563
3563
|
P(X, {
|
|
3564
3564
|
"close-on-blur": !1,
|
|
3565
3565
|
"data-testid": "form-view-configuration-slideout",
|
|
3566
3566
|
"has-overlay": !1,
|
|
3567
3567
|
"offset-top": e.slidoutTopOffset,
|
|
3568
3568
|
title: C(l)("baseForm.configuration.title"),
|
|
3569
|
-
visible:
|
|
3570
|
-
onClose:
|
|
3569
|
+
visible: y.value,
|
|
3570
|
+
onClose: w[4] || (w[4] = (U) => k())
|
|
3571
3571
|
}, {
|
|
3572
3572
|
default: A(() => [
|
|
3573
|
-
|
|
3574
|
-
H(
|
|
3573
|
+
L("div", null, [
|
|
3574
|
+
H(h.$slots, "configuration-slideout-message", {}, () => [
|
|
3575
3575
|
V(O(C(l)("baseForm.configuration.message")), 1)
|
|
3576
3576
|
], !0)
|
|
3577
3577
|
]),
|
|
3578
3578
|
P(Z, {
|
|
3579
3579
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3580
3580
|
tabs: Q.value,
|
|
3581
|
-
onChange:
|
|
3581
|
+
onChange: w[3] || (w[3] = (U) => r("codeBlockTabChange", U.replace("#", "")))
|
|
3582
3582
|
}, {
|
|
3583
3583
|
json: A(() => [
|
|
3584
3584
|
P(un, {
|
|
@@ -3621,7 +3621,7 @@ ${l.value}
|
|
|
3621
3621
|
}, 8, ["class"]);
|
|
3622
3622
|
};
|
|
3623
3623
|
}
|
|
3624
|
-
}), Zs = /* @__PURE__ */ ue(
|
|
3624
|
+
}), Zs = /* @__PURE__ */ ue(_l, [["__scopeId", "data-v-c89d8836"]]), Sl = ["data-truncate"], $l = /* @__PURE__ */ z({
|
|
3625
3625
|
__name: "EntityBaseTableCell",
|
|
3626
3626
|
props: {
|
|
3627
3627
|
keyName: {
|
|
@@ -3638,17 +3638,17 @@ ${l.value}
|
|
|
3638
3638
|
}
|
|
3639
3639
|
},
|
|
3640
3640
|
setup(e) {
|
|
3641
|
-
const t = e, n =
|
|
3641
|
+
const t = e, n = _(() => {
|
|
3642
3642
|
var v;
|
|
3643
3643
|
return ((v = t.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3644
|
-
}), i =
|
|
3644
|
+
}), i = _(() => {
|
|
3645
3645
|
var v;
|
|
3646
3646
|
return ((v = n.value) == null ? void 0 : v.querySelector('[data-truncate="true"]')) || null;
|
|
3647
|
-
}), r =
|
|
3647
|
+
}), r = _(() => {
|
|
3648
3648
|
var k, x;
|
|
3649
3649
|
const v = (k = t.rowEl) == null ? void 0 : k.querySelectorAll("td");
|
|
3650
3650
|
return v ? ((x = v[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
|
|
3651
|
-
}), a =
|
|
3651
|
+
}), a = _(() => r.value || t.tooltip);
|
|
3652
3652
|
let o;
|
|
3653
3653
|
const l = () => {
|
|
3654
3654
|
o && (o.disconnect(), o = void 0);
|
|
@@ -3660,7 +3660,7 @@ ${l.value}
|
|
|
3660
3660
|
v -= (parseFloat(N.paddingLeft) || 0) + (parseFloat(N.paddingRight) || 0);
|
|
3661
3661
|
}
|
|
3662
3662
|
d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, c.value = v, g.value = (($ = u.value) == null ? void 0 : $.innerText) || "";
|
|
3663
|
-
}, u = j({}), d = j(0), c = j(0), g = j(""), f =
|
|
3663
|
+
}, u = j({}), d = j(0), c = j(0), g = j(""), f = _(() => [i.value, n.value]), p = Ae(
|
|
3664
3664
|
f,
|
|
3665
3665
|
(v) => {
|
|
3666
3666
|
if (a.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3674,7 +3674,7 @@ ${l.value}
|
|
|
3674
3674
|
}
|
|
3675
3675
|
},
|
|
3676
3676
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3677
|
-
),
|
|
3677
|
+
), y = _(() => a.value ? d.value > c.value : !1);
|
|
3678
3678
|
return st(() => {
|
|
3679
3679
|
s();
|
|
3680
3680
|
}), li(() => {
|
|
@@ -3693,7 +3693,7 @@ ${l.value}
|
|
|
3693
3693
|
P(x, {
|
|
3694
3694
|
"max-width": "300",
|
|
3695
3695
|
placement: "bottom-start",
|
|
3696
|
-
text:
|
|
3696
|
+
text: y.value ? g.value : ""
|
|
3697
3697
|
}, {
|
|
3698
3698
|
default: A(() => [
|
|
3699
3699
|
H(v.$slots, "default", {}, void 0, !0)
|
|
@@ -3855,74 +3855,74 @@ ${l.value}
|
|
|
3855
3855
|
},
|
|
3856
3856
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3857
3857
|
setup(e, { emit: t }) {
|
|
3858
|
-
const n = e, i = t, { i18n: { t: r } } = J.useI18n(), a =
|
|
3859
|
-
var
|
|
3858
|
+
const n = e, i = t, { i18n: { t: r } } = J.useI18n(), a = _(() => {
|
|
3859
|
+
var h, w;
|
|
3860
3860
|
return typeof n.errorMessage == "string" ? {
|
|
3861
3861
|
hasError: !!n.errorMessage,
|
|
3862
3862
|
title: n.errorMessage,
|
|
3863
3863
|
message: void 0
|
|
3864
3864
|
} : {
|
|
3865
3865
|
hasError: !!n.errorMessage,
|
|
3866
|
-
title: (
|
|
3867
|
-
message: (
|
|
3866
|
+
title: (h = n.errorMessage) == null ? void 0 : h.title,
|
|
3867
|
+
message: (w = n.errorMessage) == null ? void 0 : w.message
|
|
3868
3868
|
};
|
|
3869
|
-
}), o =
|
|
3870
|
-
const
|
|
3869
|
+
}), o = _(() => n.cacheIdentifier || n.preferencesStorageKey), l = _(() => {
|
|
3870
|
+
const h = [];
|
|
3871
3871
|
return Object.keys(n.tableHeaders).forEach((T) => {
|
|
3872
3872
|
const b = n.tableHeaders[T];
|
|
3873
|
-
|
|
3873
|
+
h.push({
|
|
3874
3874
|
label: b.label ?? T,
|
|
3875
3875
|
key: T,
|
|
3876
3876
|
sortable: b.sortable ?? !1,
|
|
3877
3877
|
hidable: b.hidable ?? !0
|
|
3878
3878
|
});
|
|
3879
|
-
}), n.enableEntityActions &&
|
|
3879
|
+
}), n.enableEntityActions && h.push({
|
|
3880
3880
|
key: "actions",
|
|
3881
3881
|
hideLabel: !0
|
|
3882
|
-
}),
|
|
3883
|
-
}), s = (
|
|
3884
|
-
"data-rowid":
|
|
3885
|
-
"data-testid":
|
|
3886
|
-
...n.rowAttributes(
|
|
3887
|
-
}), u = j({}), d = (
|
|
3888
|
-
var
|
|
3889
|
-
return (
|
|
3890
|
-
}, c = (
|
|
3891
|
-
const
|
|
3892
|
-
"data-testid":
|
|
3893
|
-
...n.cellAttributes(
|
|
3882
|
+
}), h;
|
|
3883
|
+
}), s = (h) => ({
|
|
3884
|
+
"data-rowid": h.id,
|
|
3885
|
+
"data-testid": h.name,
|
|
3886
|
+
...n.rowAttributes(h)
|
|
3887
|
+
}), u = j({}), d = (h) => {
|
|
3888
|
+
var w;
|
|
3889
|
+
return (w = u.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${h.id}"]`);
|
|
3890
|
+
}, c = (h) => {
|
|
3891
|
+
const w = {
|
|
3892
|
+
"data-testid": h.headerKey,
|
|
3893
|
+
...n.cellAttributes(h)
|
|
3894
3894
|
};
|
|
3895
|
-
return
|
|
3895
|
+
return h.colIndex === 0 && (w.style = {
|
|
3896
3896
|
maxWidth: "250px",
|
|
3897
3897
|
overflowX: "hidden",
|
|
3898
3898
|
textOverflow: "ellipsis"
|
|
3899
|
-
}),
|
|
3900
|
-
}, g = (
|
|
3901
|
-
x(
|
|
3899
|
+
}), w;
|
|
3900
|
+
}, g = (h) => {
|
|
3901
|
+
x(h), i("state", h);
|
|
3902
3902
|
}, f = () => {
|
|
3903
3903
|
i("empty-state-cta-clicked"), p();
|
|
3904
3904
|
}, p = () => {
|
|
3905
3905
|
i("clear-search-input");
|
|
3906
|
-
},
|
|
3907
|
-
i("click:row",
|
|
3908
|
-
}), v = (
|
|
3909
|
-
i("sort",
|
|
3910
|
-
}, { hideTableToolbar: k, handleStateChange: x } = J.useTableState(() => n.query), { setTablePreferences: $, getTablePreferences: N } = Ni(), Q = j(N(o.value, n.defaultTablePreferences)), F =
|
|
3911
|
-
const
|
|
3906
|
+
}, y = _(() => n.disableRowClick ? void 0 : (h, w) => {
|
|
3907
|
+
i("click:row", w);
|
|
3908
|
+
}), v = (h) => {
|
|
3909
|
+
i("sort", h);
|
|
3910
|
+
}, { hideTableToolbar: k, handleStateChange: x } = J.useTableState(() => n.query), { setTablePreferences: $, getTablePreferences: N } = Ni(), Q = j(N(o.value, n.defaultTablePreferences)), F = _(() => {
|
|
3911
|
+
const h = N(o.value);
|
|
3912
3912
|
return {
|
|
3913
3913
|
...n.initialFetcherParams,
|
|
3914
|
-
...
|
|
3914
|
+
...h
|
|
3915
3915
|
};
|
|
3916
|
-
}),
|
|
3917
|
-
Q.value =
|
|
3918
|
-
!("hidable" in
|
|
3919
|
-
}), o.value && $(o.value,
|
|
3920
|
-
}, E =
|
|
3916
|
+
}), B = (h) => {
|
|
3917
|
+
Q.value = h, l.value.forEach((w) => {
|
|
3918
|
+
!("hidable" in w) || !Q.value.columnVisibility || w.hidable === !1 && (Q.value.columnVisibility[w.key] = !0);
|
|
3919
|
+
}), o.value && $(o.value, h);
|
|
3920
|
+
}, E = _(() => ({
|
|
3921
3921
|
disablePageJump: n.disablePaginationPageJump,
|
|
3922
3922
|
offset: n.paginationType === "offset",
|
|
3923
3923
|
...n.paginationAttributes
|
|
3924
3924
|
}));
|
|
3925
|
-
return (
|
|
3925
|
+
return (h, w) => {
|
|
3926
3926
|
const T = Y("KTableData"), b = Y("KCard");
|
|
3927
3927
|
return m(), R(b, {
|
|
3928
3928
|
class: "kong-ui-entity-base-table",
|
|
@@ -3961,32 +3961,32 @@ ${l.value}
|
|
|
3961
3961
|
sortable: !e.disableSorting,
|
|
3962
3962
|
"table-preferences": Q.value,
|
|
3963
3963
|
onEmptyStateActionClick: f,
|
|
3964
|
-
"onRow:click":
|
|
3965
|
-
onSort:
|
|
3964
|
+
"onRow:click": y.value,
|
|
3965
|
+
onSort: w[0] || (w[0] = (M) => v(M)),
|
|
3966
3966
|
onState: g,
|
|
3967
|
-
"onUpdate:tablePreferences":
|
|
3968
|
-
},
|
|
3967
|
+
"onUpdate:tablePreferences": B
|
|
3968
|
+
}, we({
|
|
3969
3969
|
toolbar: A(() => [
|
|
3970
|
-
|
|
3971
|
-
H(
|
|
3972
|
-
|
|
3973
|
-
H(
|
|
3970
|
+
L("div", El, [
|
|
3971
|
+
H(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3972
|
+
h.$slots["toolbar-button"] ? (m(), S("div", Il, [
|
|
3973
|
+
H(h.$slots, "toolbar-button", {}, void 0, !0)
|
|
3974
3974
|
])) : q("", !0)
|
|
3975
3975
|
])
|
|
3976
3976
|
]),
|
|
3977
3977
|
"action-items": A(({ row: M }) => [
|
|
3978
|
-
H(
|
|
3978
|
+
H(h.$slots, "actions", { row: M }, void 0, !0)
|
|
3979
3979
|
]),
|
|
3980
3980
|
_: 2
|
|
3981
3981
|
}, [
|
|
3982
|
-
|
|
3982
|
+
h.$slots["empty-state"] ? {
|
|
3983
3983
|
name: "empty-state",
|
|
3984
3984
|
fn: A(() => [
|
|
3985
|
-
H(
|
|
3985
|
+
H(h.$slots, "empty-state", {}, void 0, !0)
|
|
3986
3986
|
]),
|
|
3987
3987
|
key: "0"
|
|
3988
3988
|
} : void 0,
|
|
3989
|
-
|
|
3989
|
+
me(e.tableHeaders, (M, K) => ({
|
|
3990
3990
|
name: K,
|
|
3991
3991
|
fn: A(({ row: Z, rowValue: X }) => [
|
|
3992
3992
|
P(Tl, {
|
|
@@ -3995,7 +3995,7 @@ ${l.value}
|
|
|
3995
3995
|
tooltip: M.tooltip
|
|
3996
3996
|
}, {
|
|
3997
3997
|
default: A(() => [
|
|
3998
|
-
H(
|
|
3998
|
+
H(h.$slots, K, {
|
|
3999
3999
|
row: Z,
|
|
4000
4000
|
rowKey: e.rowKey,
|
|
4001
4001
|
rowValue: X
|
|
@@ -4015,8 +4015,8 @@ ${l.value}
|
|
|
4015
4015
|
key: "1"
|
|
4016
4016
|
}
|
|
4017
4017
|
]), 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"]),
|
|
4018
|
-
|
|
4019
|
-
H(
|
|
4018
|
+
h.$slots["outside-actions"] && C(k) ? (m(), S("div", Fl, [
|
|
4019
|
+
H(h.$slots, "outside-actions", {}, void 0, !0)
|
|
4020
4020
|
])) : q("", !0)
|
|
4021
4021
|
]),
|
|
4022
4022
|
_: 3
|
|
@@ -4034,8 +4034,7 @@ ${l.value}
|
|
|
4034
4034
|
props: {
|
|
4035
4035
|
visible: {
|
|
4036
4036
|
type: Boolean,
|
|
4037
|
-
required: !0
|
|
4038
|
-
default: !1
|
|
4037
|
+
required: !0
|
|
4039
4038
|
},
|
|
4040
4039
|
title: {
|
|
4041
4040
|
type: String,
|
|
@@ -4049,6 +4048,10 @@ ${l.value}
|
|
|
4049
4048
|
type: String,
|
|
4050
4049
|
default: ""
|
|
4051
4050
|
},
|
|
4051
|
+
entityTypeDisplay: {
|
|
4052
|
+
type: String,
|
|
4053
|
+
default: ""
|
|
4054
|
+
},
|
|
4052
4055
|
needConfirm: {
|
|
4053
4056
|
type: Boolean,
|
|
4054
4057
|
default: !0
|
|
@@ -4064,66 +4067,84 @@ ${l.value}
|
|
|
4064
4067
|
error: {
|
|
4065
4068
|
type: String,
|
|
4066
4069
|
default: ""
|
|
4070
|
+
},
|
|
4071
|
+
confirmationPrompt: {
|
|
4072
|
+
type: String,
|
|
4073
|
+
default: ""
|
|
4074
|
+
},
|
|
4075
|
+
// Konnect-managed Redis delete UI
|
|
4076
|
+
stackedCopy: {
|
|
4077
|
+
type: Boolean,
|
|
4078
|
+
default: !1
|
|
4067
4079
|
}
|
|
4068
4080
|
},
|
|
4069
4081
|
emits: ["cancel", "proceed"],
|
|
4070
4082
|
setup(e, { emit: t }) {
|
|
4071
|
-
const { i18nT: n } = J.useI18n(), i = e, r = t, a =
|
|
4083
|
+
const { i18nT: n } = J.useI18n(), i = e, r = t, a = _(
|
|
4084
|
+
() => i.entityTypeDisplay.trim() !== "" ? i.entityTypeDisplay : i.entityType
|
|
4085
|
+
), o = _(() => i.needConfirm ? i.entityName : ""), l = () => {
|
|
4072
4086
|
r("cancel");
|
|
4073
|
-
},
|
|
4087
|
+
}, s = () => {
|
|
4074
4088
|
r("proceed");
|
|
4075
4089
|
};
|
|
4076
|
-
return (
|
|
4077
|
-
const
|
|
4078
|
-
return m(), R(
|
|
4090
|
+
return (u, d) => {
|
|
4091
|
+
const c = Y("KAlert"), g = Y("KPrompt");
|
|
4092
|
+
return m(), R(g, {
|
|
4079
4093
|
"action-button-appearance": "danger",
|
|
4080
4094
|
"action-button-disabled": e.actionPending,
|
|
4081
4095
|
"action-button-text": "Yes, delete",
|
|
4082
|
-
class: "kong-ui-entity-delete-modal",
|
|
4083
|
-
"confirmation-
|
|
4096
|
+
class: fe(["kong-ui-entity-delete-modal", { "kong-ui-entity-delete-modal-stacked-copy": e.stackedCopy }]),
|
|
4097
|
+
"confirmation-prompt": e.confirmationPrompt || void 0,
|
|
4098
|
+
"confirmation-text": o.value,
|
|
4084
4099
|
title: e.title,
|
|
4085
4100
|
visible: e.visible,
|
|
4086
|
-
onCancel:
|
|
4087
|
-
onProceed:
|
|
4101
|
+
onCancel: l,
|
|
4102
|
+
onProceed: s
|
|
4088
4103
|
}, {
|
|
4089
4104
|
default: A(() => [
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
default: A(() => [
|
|
4093
|
-
V(O(e.error), 1)
|
|
4094
|
-
]),
|
|
4095
|
-
_: 1
|
|
4096
|
-
})
|
|
4097
|
-
])) : q("", !0),
|
|
4098
|
-
P(C(n), {
|
|
4099
|
-
class: "message",
|
|
4100
|
-
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4101
|
-
tag: "p"
|
|
4102
|
-
}, _e({
|
|
4103
|
-
entityType: A(() => [
|
|
4104
|
-
V(O(i.entityType), 1)
|
|
4105
|
-
]),
|
|
4106
|
-
_: 2
|
|
4105
|
+
L("div", {
|
|
4106
|
+
class: fe(["body", { "body-stacked-copy": e.stackedCopy }])
|
|
4107
4107
|
}, [
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4108
|
+
e.error ? (m(), S("div", Ll, [
|
|
4109
|
+
P(c, { appearance: "danger" }, {
|
|
4110
|
+
default: A(() => [
|
|
4111
|
+
V(O(e.error), 1)
|
|
4112
|
+
]),
|
|
4113
|
+
_: 1
|
|
4114
|
+
})
|
|
4115
|
+
])) : q("", !0),
|
|
4116
|
+
H(u.$slots, "message", {}, () => [
|
|
4117
|
+
P(C(n), {
|
|
4118
|
+
class: "message",
|
|
4119
|
+
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
4120
|
+
tag: "p"
|
|
4121
|
+
}, we({
|
|
4122
|
+
entityType: A(() => [
|
|
4123
|
+
V(O(a.value), 1)
|
|
4124
|
+
]),
|
|
4125
|
+
_: 2
|
|
4126
|
+
}, [
|
|
4127
|
+
i.entityName ? {
|
|
4128
|
+
name: "entityName",
|
|
4129
|
+
fn: A(() => [
|
|
4130
|
+
L("strong", null, O(i.entityName), 1)
|
|
4131
|
+
]),
|
|
4132
|
+
key: "0"
|
|
4133
|
+
} : void 0
|
|
4134
|
+
]), 1032, ["keypath"])
|
|
4135
|
+
], !0),
|
|
4136
|
+
i.description || u.$slots.description ? (m(), S("div", Bl, [
|
|
4137
|
+
H(u.$slots, "description", {}, () => [
|
|
4138
|
+
L("p", null, O(i.description), 1)
|
|
4139
|
+
], !0)
|
|
4140
|
+
])) : q("", !0)
|
|
4141
|
+
], 2)
|
|
4121
4142
|
]),
|
|
4122
4143
|
_: 3
|
|
4123
|
-
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
4144
|
+
}, 8, ["action-button-disabled", "class", "confirmation-prompt", "confirmation-text", "title", "visible"]);
|
|
4124
4145
|
};
|
|
4125
4146
|
}
|
|
4126
|
-
}), ec = /* @__PURE__ */ ue(Rl, [["__scopeId", "data-v-
|
|
4147
|
+
}), ec = /* @__PURE__ */ ue(Rl, [["__scopeId", "data-v-5d8bc15d"]]), Kl = {
|
|
4127
4148
|
fill: "none",
|
|
4128
4149
|
height: "20",
|
|
4129
4150
|
viewBox: "0 0 20 20",
|
|
@@ -4147,15 +4168,15 @@ ${l.value}
|
|
|
4147
4168
|
},
|
|
4148
4169
|
setup(e) {
|
|
4149
4170
|
return (t, n) => (m(), S("svg", Kl, [
|
|
4150
|
-
|
|
4151
|
-
|
|
4171
|
+
L("mask", Nl, [
|
|
4172
|
+
L("rect", {
|
|
4152
4173
|
fill: e.color,
|
|
4153
4174
|
height: "20",
|
|
4154
4175
|
width: "20"
|
|
4155
4176
|
}, null, 8, Ml)
|
|
4156
4177
|
]),
|
|
4157
|
-
|
|
4158
|
-
|
|
4178
|
+
L("g", Dl, [
|
|
4179
|
+
L("path", {
|
|
4159
4180
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4160
4181
|
fill: e.color
|
|
4161
4182
|
}, null, 8, Pl)
|
|
@@ -4185,25 +4206,25 @@ ${l.value}
|
|
|
4185
4206
|
},
|
|
4186
4207
|
emits: ["update:modelValue"],
|
|
4187
4208
|
setup(e, { emit: t }) {
|
|
4188
|
-
const { i18n: { t: n } } = J.useI18n(), i = e, r = t, a = j(!1), o = j({}), l = j(/* @__PURE__ */ new Set()), s =
|
|
4209
|
+
const { i18n: { t: n } } = J.useI18n(), i = e, r = t, a = j(!1), o = j({}), l = j(/* @__PURE__ */ new Set()), s = _(() => {
|
|
4189
4210
|
const F = [];
|
|
4190
|
-
return new URLSearchParams(i.modelValue).forEach((
|
|
4191
|
-
|
|
4211
|
+
return new URLSearchParams(i.modelValue).forEach((B, E) => {
|
|
4212
|
+
B !== "" && F.push(E);
|
|
4192
4213
|
}), F;
|
|
4193
|
-
}), u =
|
|
4214
|
+
}), u = _(() => {
|
|
4194
4215
|
const F = i.config.fields;
|
|
4195
|
-
return Object.keys(F).filter((
|
|
4216
|
+
return Object.keys(F).filter((B) => {
|
|
4196
4217
|
var E;
|
|
4197
|
-
return (E = F == null ? void 0 : F[
|
|
4198
|
-
}).map((
|
|
4199
|
-
label: F[
|
|
4200
|
-
value:
|
|
4218
|
+
return (E = F == null ? void 0 : F[B]) == null ? void 0 : E.searchable;
|
|
4219
|
+
}).map((B) => ({
|
|
4220
|
+
label: F[B].label || B,
|
|
4221
|
+
value: B,
|
|
4201
4222
|
expanded: !1
|
|
4202
4223
|
}));
|
|
4203
4224
|
});
|
|
4204
4225
|
Ae(() => i.modelValue, (F) => {
|
|
4205
|
-
o.value = {}, new URLSearchParams(F).forEach((
|
|
4206
|
-
o.value[E] =
|
|
4226
|
+
o.value = {}, new URLSearchParams(F).forEach((B, E) => {
|
|
4227
|
+
o.value[E] = B;
|
|
4207
4228
|
});
|
|
4208
4229
|
});
|
|
4209
4230
|
const d = () => {
|
|
@@ -4214,12 +4235,12 @@ ${l.value}
|
|
|
4214
4235
|
r("update:modelValue", F);
|
|
4215
4236
|
}, f = () => {
|
|
4216
4237
|
g("");
|
|
4217
|
-
}, p = (F) => `filter-${F}`,
|
|
4218
|
-
var
|
|
4219
|
-
return (((E = (
|
|
4238
|
+
}, p = (F) => `filter-${F}`, y = (F) => {
|
|
4239
|
+
var B, E;
|
|
4240
|
+
return (((E = (B = i.config.schema) == null ? void 0 : B[F]) == null ? void 0 : E.values) ?? []).map((h) => typeof h == "string" ? { value: h, label: h } : h);
|
|
4220
4241
|
}, v = (F) => {
|
|
4221
|
-
var
|
|
4222
|
-
return ((E = (
|
|
4242
|
+
var B, E;
|
|
4243
|
+
return ((E = (B = i.config.schema) == null ? void 0 : B[F]) == null ? void 0 : E.type) ?? "text";
|
|
4223
4244
|
}, k = (F) => {
|
|
4224
4245
|
o.value = {
|
|
4225
4246
|
...o.value,
|
|
@@ -4228,18 +4249,18 @@ ${l.value}
|
|
|
4228
4249
|
}, x = () => {
|
|
4229
4250
|
o.value = {}, $(!0);
|
|
4230
4251
|
}, $ = (F = !1) => {
|
|
4231
|
-
const
|
|
4232
|
-
F && (a.value = !1), r("update:modelValue", new URLSearchParams(
|
|
4252
|
+
const B = Object.keys(o.value).reduce((E, h) => (o.value[h] && (E[h] = `${o.value[h]}`), E), {});
|
|
4253
|
+
F && (a.value = !1), r("update:modelValue", new URLSearchParams(B).toString());
|
|
4233
4254
|
}, N = (F) => {
|
|
4234
|
-
var
|
|
4235
|
-
return !!((E = (
|
|
4236
|
-
}, Q = (F,
|
|
4237
|
-
var
|
|
4238
|
-
const E = (
|
|
4239
|
-
return (E == null ? void 0 : E.filterFunction) === void 0 ? !0 : E.filterFunction(
|
|
4255
|
+
var B, E;
|
|
4256
|
+
return !!((E = (B = i.config.schema) == null ? void 0 : B[F]) != null && E.filterFunction);
|
|
4257
|
+
}, Q = (F, B) => {
|
|
4258
|
+
var h;
|
|
4259
|
+
const E = (h = i.config.schema) == null ? void 0 : h[F];
|
|
4260
|
+
return (E == null ? void 0 : E.filterFunction) === void 0 ? !0 : E.filterFunction(B);
|
|
4240
4261
|
};
|
|
4241
|
-
return (F,
|
|
4242
|
-
const E = Y("KInput"),
|
|
4262
|
+
return (F, B) => {
|
|
4263
|
+
const E = Y("KInput"), h = Y("KButton"), w = Y("KSelect");
|
|
4243
4264
|
return e.config.isExactMatch ? (m(), R(E, {
|
|
4244
4265
|
key: 0,
|
|
4245
4266
|
autocomplete: "off",
|
|
@@ -4253,7 +4274,7 @@ ${l.value}
|
|
|
4253
4274
|
P(Wt)
|
|
4254
4275
|
]),
|
|
4255
4276
|
after: A(() => [
|
|
4256
|
-
|
|
4277
|
+
_e(P(C(_i), {
|
|
4257
4278
|
class: "kong-ui-entity-filter-clear",
|
|
4258
4279
|
role: "button",
|
|
4259
4280
|
tabindex: "0",
|
|
@@ -4264,7 +4285,7 @@ ${l.value}
|
|
|
4264
4285
|
]),
|
|
4265
4286
|
_: 1
|
|
4266
4287
|
}, 8, ["model-value", "placeholder"])) : (m(), S("div", jl, [
|
|
4267
|
-
P(
|
|
4288
|
+
P(h, {
|
|
4268
4289
|
appearance: "tertiary",
|
|
4269
4290
|
"data-testid": "filter-button",
|
|
4270
4291
|
onClick: d
|
|
@@ -4275,49 +4296,49 @@ ${l.value}
|
|
|
4275
4296
|
]),
|
|
4276
4297
|
_: 1
|
|
4277
4298
|
}),
|
|
4278
|
-
|
|
4299
|
+
_e(L("div", {
|
|
4279
4300
|
class: "kong-ui-entity-filter-backdrop",
|
|
4280
4301
|
onClick: d
|
|
4281
4302
|
}, null, 512), [
|
|
4282
4303
|
[Se, a.value]
|
|
4283
4304
|
]),
|
|
4284
|
-
|
|
4285
|
-
(m(!0), S(
|
|
4305
|
+
_e(L("div", Ul, [
|
|
4306
|
+
(m(!0), S(pe, null, me(u.value, (T) => {
|
|
4286
4307
|
var b, M;
|
|
4287
4308
|
return m(), S("div", {
|
|
4288
4309
|
key: T.value,
|
|
4289
4310
|
class: "kong-ui-entity-filter-menu-item",
|
|
4290
4311
|
"data-testid": T.value
|
|
4291
4312
|
}, [
|
|
4292
|
-
|
|
4293
|
-
class:
|
|
4313
|
+
L("span", {
|
|
4314
|
+
class: fe(["menu-item-title", { expanded: l.value.has(T.value) }]),
|
|
4294
4315
|
role: "button",
|
|
4295
4316
|
tabindex: "0",
|
|
4296
4317
|
onClick: (K) => c(T.value),
|
|
4297
4318
|
onKeydown: si((K) => c(T.value), ["enter"])
|
|
4298
4319
|
}, [
|
|
4299
4320
|
V(O(T.label) + " ", 1),
|
|
4300
|
-
|
|
4321
|
+
_e(L("span", Yl, null, 512), [
|
|
4301
4322
|
[Se, s.value.includes(T.value)]
|
|
4302
4323
|
]),
|
|
4303
4324
|
P(C(Si), {
|
|
4304
|
-
class:
|
|
4325
|
+
class: fe(["menu-item-expand-icon", { expanded: l.value.has(T.value) }]),
|
|
4305
4326
|
color: C(Cr)
|
|
4306
4327
|
}, null, 8, ["class", "color"])
|
|
4307
4328
|
], 42, Hl),
|
|
4308
|
-
|
|
4309
|
-
|
|
4329
|
+
_e(L("div", Vl, [
|
|
4330
|
+
L("label", {
|
|
4310
4331
|
class: "menu-item-label",
|
|
4311
4332
|
for: p(T.value)
|
|
4312
4333
|
}, O(C(n)("filter.fieldLabel")), 9, Wl),
|
|
4313
|
-
((M = (b = e.config.schema) == null ? void 0 : b[T.value]) == null ? void 0 : M.type) === "select" ? (m(), R(
|
|
4334
|
+
((M = (b = e.config.schema) == null ? void 0 : b[T.value]) == null ? void 0 : M.type) === "select" ? (m(), R(w, {
|
|
4314
4335
|
key: 0,
|
|
4315
4336
|
id: p(T.value),
|
|
4316
4337
|
modelValue: o.value[T.value],
|
|
4317
4338
|
"onUpdate:modelValue": (K) => o.value[T.value] = K,
|
|
4318
4339
|
"enable-filtering": N(T.value),
|
|
4319
4340
|
"filter-function": (K) => Q(T.value, K),
|
|
4320
|
-
items:
|
|
4341
|
+
items: y(T.value),
|
|
4321
4342
|
placeholder: C(n)("filter.selectPlaceholder")
|
|
4322
4343
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (m(), R(E, {
|
|
4323
4344
|
key: 1,
|
|
@@ -4331,19 +4352,19 @@ ${l.value}
|
|
|
4331
4352
|
], 512), [
|
|
4332
4353
|
[Se, l.value.has(T.value)]
|
|
4333
4354
|
]),
|
|
4334
|
-
|
|
4335
|
-
P(
|
|
4355
|
+
_e(L("div", Gl, [
|
|
4356
|
+
P(h, {
|
|
4336
4357
|
appearance: "tertiary",
|
|
4337
4358
|
"data-testid": "apply-filter",
|
|
4338
4359
|
size: "small",
|
|
4339
|
-
onClick:
|
|
4360
|
+
onClick: B[0] || (B[0] = (K) => $(!0))
|
|
4340
4361
|
}, {
|
|
4341
4362
|
default: A(() => [
|
|
4342
4363
|
V(O(C(n)("filter.applyButtonText")), 1)
|
|
4343
4364
|
]),
|
|
4344
4365
|
_: 1
|
|
4345
4366
|
}),
|
|
4346
|
-
P(
|
|
4367
|
+
P(h, {
|
|
4347
4368
|
appearance: "tertiary",
|
|
4348
4369
|
"data-testid": "clear-filter",
|
|
4349
4370
|
size: "small",
|
|
@@ -4359,8 +4380,8 @@ ${l.value}
|
|
|
4359
4380
|
])
|
|
4360
4381
|
], 8, ql);
|
|
4361
4382
|
}), 128)),
|
|
4362
|
-
|
|
4363
|
-
P(
|
|
4383
|
+
L("div", Jl, [
|
|
4384
|
+
P(h, {
|
|
4364
4385
|
appearance: "tertiary",
|
|
4365
4386
|
size: "small",
|
|
4366
4387
|
onClick: x
|
|
@@ -4409,9 +4430,9 @@ ${l.value}
|
|
|
4409
4430
|
},
|
|
4410
4431
|
emits: ["cancel", "proceed"],
|
|
4411
4432
|
setup(e, { emit: t }) {
|
|
4412
|
-
const { i18n: { t: n }, i18nT: i } = J.useI18n(), r = e, a = t, o = j(!1), l =
|
|
4433
|
+
const { i18n: { t: n }, i18nT: i } = J.useI18n(), r = e, a = t, o = j(!1), l = _(
|
|
4413
4434
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4414
|
-
), s =
|
|
4435
|
+
), s = _(
|
|
4415
4436
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4416
4437
|
), u = () => a("cancel"), d = async () => {
|
|
4417
4438
|
if (r.onConfirm) {
|
|
@@ -4446,7 +4467,7 @@ ${l.value}
|
|
|
4446
4467
|
V(O(e.entityType), 1)
|
|
4447
4468
|
]),
|
|
4448
4469
|
entityName: A(() => [
|
|
4449
|
-
|
|
4470
|
+
L("strong", null, O(e.entityName), 1)
|
|
4450
4471
|
]),
|
|
4451
4472
|
_: 1
|
|
4452
4473
|
}, 8, ["keypath"])
|
|
@@ -4478,7 +4499,7 @@ ${l.value}
|
|
|
4478
4499
|
}
|
|
4479
4500
|
},
|
|
4480
4501
|
setup(e) {
|
|
4481
|
-
const t = e, n = j(void 0), i =
|
|
4502
|
+
const t = e, n = j(void 0), i = _(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4482
4503
|
return Ae(() => t.authFunction, async () => {
|
|
4483
4504
|
n.value = await t.authFunction();
|
|
4484
4505
|
}, { immediate: !0 }), (r, a) => i.value ? H(r.$slots, "default", {
|
|
@@ -4551,13 +4572,13 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4551
4572
|
const t = Me(), n = ts();
|
|
4552
4573
|
return (i, r) => (m(), S("div", {
|
|
4553
4574
|
"aria-labelledby": e.title ? C(n) : void 0,
|
|
4554
|
-
class:
|
|
4575
|
+
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4555
4576
|
role: "group"
|
|
4556
4577
|
}, [
|
|
4557
|
-
|
|
4578
|
+
L("div", is, [
|
|
4558
4579
|
e.hideInfoHeader ? q("", !0) : (m(), S("div", {
|
|
4559
4580
|
key: 0,
|
|
4560
|
-
class:
|
|
4581
|
+
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4561
4582
|
}, [
|
|
4562
4583
|
e.title ? (m(), R(Ye(e.titleTag), {
|
|
4563
4584
|
key: 0,
|
|
@@ -4571,14 +4592,14 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4571
4592
|
}, 8, ["id"])) : q("", !0),
|
|
4572
4593
|
e.description || C(t).description ? (m(), S("div", rs, [
|
|
4573
4594
|
H(i.$slots, "description", {}, () => [
|
|
4574
|
-
|
|
4595
|
+
L("p", null, O(e.description), 1)
|
|
4575
4596
|
], !0)
|
|
4576
4597
|
])) : q("", !0),
|
|
4577
4598
|
C(t).footer ? (m(), S("div", as, [
|
|
4578
4599
|
H(i.$slots, "footer", {}, void 0, !0)
|
|
4579
4600
|
])) : q("", !0)
|
|
4580
4601
|
], 2)),
|
|
4581
|
-
|
|
4602
|
+
L("div", os, [
|
|
4582
4603
|
H(i.$slots, "default", {}, void 0, !0)
|
|
4583
4604
|
])
|
|
4584
4605
|
])
|
|
@@ -4613,18 +4634,18 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4613
4634
|
setup(e) {
|
|
4614
4635
|
const t = Me();
|
|
4615
4636
|
return (n, i) => (m(), S("div", {
|
|
4616
|
-
class:
|
|
4637
|
+
class: fe(["kong-ui-entity-form-block", {
|
|
4617
4638
|
stepped: e.step !== void 0 || t.step
|
|
4618
4639
|
}])
|
|
4619
4640
|
}, [
|
|
4620
|
-
|
|
4641
|
+
L("header", ss, [
|
|
4621
4642
|
e.step !== void 0 || t.step ? (m(), S("div", cs, [
|
|
4622
4643
|
H(n.$slots, "step", {}, () => [
|
|
4623
4644
|
V(O(e.step), 1)
|
|
4624
4645
|
], !0)
|
|
4625
4646
|
])) : q("", !0),
|
|
4626
|
-
|
|
4627
|
-
|
|
4647
|
+
L("div", us, [
|
|
4648
|
+
L("h2", ds, [
|
|
4628
4649
|
H(n.$slots, "title", {}, () => [
|
|
4629
4650
|
V(O(e.title), 1)
|
|
4630
4651
|
], !0)
|
|
@@ -4639,15 +4660,15 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4639
4660
|
H(n.$slots, "extra", {}, void 0, !0)
|
|
4640
4661
|
])) : q("", !0)
|
|
4641
4662
|
]),
|
|
4642
|
-
|
|
4663
|
+
L("div", ms, [
|
|
4643
4664
|
H(n.$slots, "default", {}, void 0, !0)
|
|
4644
4665
|
])
|
|
4645
4666
|
], 2));
|
|
4646
4667
|
}
|
|
4647
|
-
}), ac = /* @__PURE__ */ ue(gs, [["__scopeId", "data-v-8e48a559"]]),
|
|
4668
|
+
}), ac = /* @__PURE__ */ ue(gs, [["__scopeId", "data-v-8e48a559"]]), ys = {
|
|
4648
4669
|
class: "kong-ui-public-entity-link",
|
|
4649
4670
|
"data-testid": "entity-link-parent"
|
|
4650
|
-
},
|
|
4671
|
+
}, hs = {
|
|
4651
4672
|
key: 0,
|
|
4652
4673
|
class: "deleted-entity"
|
|
4653
4674
|
}, vs = { key: 1 }, bs = ["onClick"], ks = /* @__PURE__ */ z({
|
|
@@ -4674,10 +4695,10 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4674
4695
|
}
|
|
4675
4696
|
},
|
|
4676
4697
|
setup(e) {
|
|
4677
|
-
const t = e, n = j(), { isTruncated: i } = J.useTruncationDetector(n), { i18n: { t: r } } = J.useI18n(), a = r("global.actions.copyId"), o = j(a), l =
|
|
4698
|
+
const t = e, n = j(), { isTruncated: i } = J.useTruncationDetector(n), { i18n: { t: r } } = J.useI18n(), a = r("global.actions.copyId"), o = j(a), l = _(() => t.entityLinkData.deleted ?? !1), s = _(() => {
|
|
4678
4699
|
var c;
|
|
4679
4700
|
return (c = t.entityLinkData.id) != null && c.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4680
|
-
}), u =
|
|
4701
|
+
}), u = _(() => {
|
|
4681
4702
|
var c;
|
|
4682
4703
|
return `${(c = s.value) == null ? void 0 : c.toString().slice(0, 5)} (deleted)`;
|
|
4683
4704
|
}), d = async (c) => {
|
|
@@ -4686,9 +4707,9 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4686
4707
|
}, 1800));
|
|
4687
4708
|
};
|
|
4688
4709
|
return (c, g) => {
|
|
4689
|
-
const f = Y("KTooltip"), p = Y("KExternalLink"),
|
|
4690
|
-
return m(), S("div",
|
|
4691
|
-
l.value ? (m(), S("div",
|
|
4710
|
+
const f = Y("KTooltip"), p = Y("KExternalLink"), y = Y("KClipboardProvider");
|
|
4711
|
+
return m(), S("div", ys, [
|
|
4712
|
+
l.value ? (m(), S("div", hs, O(u.value), 1)) : s.value ? s.value ? (m(), R(p, {
|
|
4692
4713
|
key: 2,
|
|
4693
4714
|
class: "entity-link",
|
|
4694
4715
|
"hide-icon": !e.newWindow,
|
|
@@ -4700,7 +4721,7 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4700
4721
|
text: C(i) && e.entityLinkData.label || ""
|
|
4701
4722
|
}, {
|
|
4702
4723
|
default: A(() => [
|
|
4703
|
-
|
|
4724
|
+
L("span", {
|
|
4704
4725
|
ref_key: "textContent",
|
|
4705
4726
|
ref: n,
|
|
4706
4727
|
class: "entity-link-label"
|
|
@@ -4719,9 +4740,9 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4719
4740
|
text: o.value
|
|
4720
4741
|
}, {
|
|
4721
4742
|
default: A(() => [
|
|
4722
|
-
P(
|
|
4743
|
+
P(y, null, {
|
|
4723
4744
|
default: A(({ copyToClipboard: v }) => [
|
|
4724
|
-
|
|
4745
|
+
L("span", {
|
|
4725
4746
|
class: "entity-link-copy-id",
|
|
4726
4747
|
onClick: De((k) => d(v), ["stop"])
|
|
4727
4748
|
}, [
|
|
@@ -4729,7 +4750,7 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4729
4750
|
class: "copy-icon",
|
|
4730
4751
|
color: C(xr),
|
|
4731
4752
|
"data-testid": "copy-id",
|
|
4732
|
-
size: C(
|
|
4753
|
+
size: C(wr)
|
|
4733
4754
|
}, null, 8, ["color", "size"])
|
|
4734
4755
|
], 8, bs)
|
|
4735
4756
|
]),
|
|
@@ -4744,10 +4765,10 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4744
4765
|
}), oc = /* @__PURE__ */ ue(ks, [["__scopeId", "data-v-a18d7efa"]]), Cs = { class: "kong-ui-public-entity-empty-state" }, xs = { class: "entity-empty-state-content" }, As = {
|
|
4745
4766
|
key: 0,
|
|
4746
4767
|
class: "empty-state-image"
|
|
4747
|
-
},
|
|
4768
|
+
}, ws = {
|
|
4748
4769
|
key: 1,
|
|
4749
4770
|
class: "entity-empty-state-title"
|
|
4750
|
-
},
|
|
4771
|
+
}, _s = {
|
|
4751
4772
|
key: 2,
|
|
4752
4773
|
class: "entity-empty-state-description"
|
|
4753
4774
|
}, Ss = {
|
|
@@ -4809,34 +4830,34 @@ const ns = ["aria-labelledby"], is = { class: "form-section-wrapper" }, rs = {
|
|
|
4809
4830
|
},
|
|
4810
4831
|
emits: ["click:create", "click:learn-more"],
|
|
4811
4832
|
setup(e) {
|
|
4812
|
-
const t = e, { i18n: { t: n } } = J.useI18n(), i = j(!1), r =
|
|
4833
|
+
const t = e, { i18n: { t: n } } = J.useI18n(), i = j(!1), r = _(() => i.value && !!t.actionButtonText), a = _(() => At.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4813
4834
|
return ct(async () => {
|
|
4814
4835
|
i.value = await t.canCreate();
|
|
4815
4836
|
}), st(() => ci(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4816
4837
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) => {
|
|
4817
4838
|
const s = Y("KCard");
|
|
4818
4839
|
return m(), S("div", Cs, [
|
|
4819
|
-
|
|
4840
|
+
L("div", xs, [
|
|
4820
4841
|
o.$slots.image ? (m(), S("div", As, [
|
|
4821
4842
|
H(o.$slots, "image", {}, void 0, !0)
|
|
4822
4843
|
])) : q("", !0),
|
|
4823
|
-
e.title || o.$slots.title ? (m(), S("div",
|
|
4824
|
-
|
|
4825
|
-
class:
|
|
4844
|
+
e.title || o.$slots.title ? (m(), S("div", ws, [
|
|
4845
|
+
L("h1", {
|
|
4846
|
+
class: fe(a.value)
|
|
4826
4847
|
}, [
|
|
4827
4848
|
H(o.$slots, "title", {}, () => [
|
|
4828
4849
|
V(O(e.title), 1)
|
|
4829
4850
|
], !0)
|
|
4830
4851
|
], 2)
|
|
4831
4852
|
])) : q("", !0),
|
|
4832
|
-
e.description || o.$slots.default ? (m(), S("div",
|
|
4853
|
+
e.description || o.$slots.default ? (m(), S("div", _s, [
|
|
4833
4854
|
H(o.$slots, "default", {}, () => [
|
|
4834
|
-
|
|
4855
|
+
L("p", null, O(e.description), 1)
|
|
4835
4856
|
], !0)
|
|
4836
4857
|
])) : q("", !0),
|
|
4837
4858
|
e.pricing || o.$slots.pricing ? (m(), S("div", Ss, [
|
|
4838
|
-
|
|
4839
|
-
|
|
4859
|
+
L("p", null, [
|
|
4860
|
+
L("b", null, O(C(n)("emptyState.pricingTitle")), 1),
|
|
4840
4861
|
l[2] || (l[2] = V()),
|
|
4841
4862
|
H(o.$slots, "pricing", {}, () => [
|
|
4842
4863
|
V(O(e.pricing), 1)
|
|
@@ -4878,7 +4899,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4878
4899
|
], !0)
|
|
4879
4900
|
])) : q("", !0),
|
|
4880
4901
|
e.features.length ? (m(), S("div", Es, [
|
|
4881
|
-
(m(!0), S(
|
|
4902
|
+
(m(!0), S(pe, null, me(e.features, (u, d) => (m(), R(s, {
|
|
4882
4903
|
key: `feature-${d}-card`,
|
|
4883
4904
|
class: "entity-empty-state-card"
|
|
4884
4905
|
}, {
|
|
@@ -4886,10 +4907,10 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4886
4907
|
o.$slots[`feature-${d}-icon`] ? (m(), S("div", Is, [
|
|
4887
4908
|
H(o.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4888
4909
|
])) : q("", !0),
|
|
4889
|
-
|
|
4910
|
+
L("div", Fs, O(u.title), 1)
|
|
4890
4911
|
]),
|
|
4891
4912
|
default: A(() => [
|
|
4892
|
-
|
|
4913
|
+
L("div", {
|
|
4893
4914
|
title: u.description
|
|
4894
4915
|
}, O(u.description), 9, Os)
|
|
4895
4916
|
]),
|
|
@@ -4916,7 +4937,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4916
4937
|
}
|
|
4917
4938
|
},
|
|
4918
4939
|
setup(e) {
|
|
4919
|
-
const t = e, n =
|
|
4940
|
+
const t = e, n = _(() => {
|
|
4920
4941
|
if (Array.isArray(t.tags))
|
|
4921
4942
|
return t.tags;
|
|
4922
4943
|
if (typeof t.tags == "string")
|
|
@@ -4932,7 +4953,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4932
4953
|
var a;
|
|
4933
4954
|
return ((a = n.value) == null ? void 0 : a.length) > 0 ? (m(), R(C(mi), { key: 0 }, {
|
|
4934
4955
|
default: A(() => [
|
|
4935
|
-
(m(!0), S(
|
|
4956
|
+
(m(!0), S(pe, null, me(n.value, (o) => (m(), R(C(gi), {
|
|
4936
4957
|
key: o,
|
|
4937
4958
|
"max-width": e.tagMaxWidth,
|
|
4938
4959
|
onClick: r[0] || (r[0] = De(() => {
|
|
@@ -4948,10 +4969,10 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4948
4969
|
})) : (m(), S("span", Rs, "-"));
|
|
4949
4970
|
};
|
|
4950
4971
|
}
|
|
4951
|
-
}), { useAxios: cc, useDeleteUrlBuilder: uc, useErrors: dc, useExternalLinkCreator: fc, useFetchUrlBuilder: pc, useFetcher: mc, useFetcherCacheKey: gc, useDebouncedFilter:
|
|
4972
|
+
}), { useAxios: cc, useDeleteUrlBuilder: uc, useErrors: dc, useExternalLinkCreator: fc, useFetchUrlBuilder: pc, useFetcher: mc, useFetcherCacheKey: gc, useDebouncedFilter: yc, useStringHelpers: hc, useHelpers: vc, useGatewayFeatureSupported: bc, useTruncationDetector: kc, useValidators: Cc, useSchemaProvider: xc, useTableState: Ac } = J;
|
|
4952
4973
|
export {
|
|
4953
4974
|
At as Appearances,
|
|
4954
|
-
|
|
4975
|
+
yl as ConfigCardDisplay,
|
|
4955
4976
|
cn as ConfigCardItem,
|
|
4956
4977
|
se as ConfigurationSchemaSection,
|
|
4957
4978
|
G as ConfigurationSchemaType,
|
|
@@ -4970,9 +4991,9 @@ export {
|
|
|
4970
4991
|
Ei as EntityTypes,
|
|
4971
4992
|
Oi as EventGatewayTypesArray,
|
|
4972
4993
|
Al as FEATURE_FLAGS,
|
|
4973
|
-
|
|
4994
|
+
he as FetcherStatus,
|
|
4974
4995
|
Li as IdentityTypesArray,
|
|
4975
|
-
|
|
4996
|
+
hr as InternalLinkItem,
|
|
4976
4997
|
un as JsonCodeBlock,
|
|
4977
4998
|
ic as PermissionsWrapper,
|
|
4978
4999
|
Fi as SupportedEntityDeckArray,
|
|
@@ -4984,7 +5005,7 @@ export {
|
|
|
4984
5005
|
Fe as highlightCodeBlock,
|
|
4985
5006
|
tn as isSupportedDeckEntityType,
|
|
4986
5007
|
cc as useAxios,
|
|
4987
|
-
|
|
5008
|
+
yc as useDebouncedFilter,
|
|
4988
5009
|
uc as useDeleteUrlBuilder,
|
|
4989
5010
|
dc as useErrors,
|
|
4990
5011
|
fc as useExternalLinkCreator,
|
|
@@ -4994,7 +5015,7 @@ export {
|
|
|
4994
5015
|
bc as useGatewayFeatureSupported,
|
|
4995
5016
|
vc as useHelpers,
|
|
4996
5017
|
xc as useSchemaProvider,
|
|
4997
|
-
|
|
5018
|
+
hc as useStringHelpers,
|
|
4998
5019
|
Ac as useTableState,
|
|
4999
5020
|
kc as useTruncationDetector,
|
|
5000
5021
|
Cc as useValidators
|