@kong-ui-public/entities-shared 3.33.2-pr.2622.e4dc8379f.0 → 3.33.2-pr.2640.47178031d.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 +406 -402
- package/dist/entities-shared.umd.js +12 -12
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +6 -2
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/constants.d.ts +0 -4
- package/dist/types/constants.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { inject as Dt, ref as K, computed as F, unref as $, toValue as he, watch as be, toRef as
|
|
1
|
+
import { inject as Dt, ref as K, computed as F, unref as $, toValue as he, watch as be, toRef as Wn, provide as Pt, defineComponent as z, createBlock as D, openBlock as m, resolveDynamicComponent as je, normalizeClass as fe, withCtx as _, createElementBlock as S, createCommentVNode as N, createElementVNode as R, toDisplayString as L, Fragment as ue, renderList as ce, resolveComponent as P, createVNode as M, createTextVNode as q, useCssVars as Ut, useId as Jn, useSlots as De, renderSlot as j, createSlots as Se, normalizeProps as qt, guardReactiveProps as Ht, mergeProps as Vt, onMounted as tt, onBeforeMount as nt, withModifiers as Le, Teleport as Yt, onUnmounted as Gn, withDirectives as xe, vShow as Ce, withKeys as zn, warn as Qn } from "vue";
|
|
2
2
|
import pt from "axios";
|
|
3
3
|
import { createI18n as Zn, i18nTComponent as Xn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as ei, KButton as mt, KTruncate as ti, KBadge as ni } from "@kong/kongponents";
|
|
5
|
-
import { BookIcon as
|
|
5
|
+
import { BookIcon as Wt, AddIcon as Jt, CloseIcon as ii, ChevronDownIcon as ri, CopyIcon as ai } from "@kong/icons";
|
|
6
6
|
import { useRouter as oi } from "vue-router";
|
|
7
7
|
var li = /* @__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))(li || {}), si = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(si || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}), it = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.Other = "other", e))(it || {});
|
|
8
8
|
const Pe = Object.values(it), ci = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"];
|
|
@@ -213,7 +213,7 @@ function Ue() {
|
|
|
213
213
|
// Translation component <i18n-t>
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Gt() {
|
|
217
217
|
const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
|
|
218
218
|
if (o.length !== a.length) return !1;
|
|
219
219
|
const s = /* @__PURE__ */ new Set([...o, ...a]);
|
|
@@ -265,7 +265,7 @@ function Si(e, t, n, i = {
|
|
|
265
265
|
}, 200), l = K(!1), c = K(""), d = K(""), u = K([]), p = K([]), g = K(void 0), h = F(() => {
|
|
266
266
|
const T = `${e.apiBaseUrl}${$(t)}`;
|
|
267
267
|
return e.app === "konnect" ? T.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? T.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : T;
|
|
268
|
-
}), { isValidUuid: x } =
|
|
268
|
+
}), { isValidUuid: x } = Gt(), y = async () => {
|
|
269
269
|
try {
|
|
270
270
|
l.value = !0;
|
|
271
271
|
const { data: T } = await r.get(`${h.value}?size=${n}`);
|
|
@@ -276,7 +276,7 @@ function Si(e, t, n, i = {
|
|
|
276
276
|
l.value = !1;
|
|
277
277
|
}
|
|
278
278
|
}, k = K(""), C = async (T) => {
|
|
279
|
-
var
|
|
279
|
+
var J, X, w;
|
|
280
280
|
if (k.value !== T) {
|
|
281
281
|
if (k.value = T ?? "", !T) {
|
|
282
282
|
u.value = p.value;
|
|
@@ -299,7 +299,7 @@ function Si(e, t, n, i = {
|
|
|
299
299
|
})
|
|
300
300
|
);
|
|
301
301
|
const O = await Promise.all(A), f = /* @__PURE__ */ new Set();
|
|
302
|
-
u.value = [], (
|
|
302
|
+
u.value = [], (J = O == null ? void 0 : O.forEach) == null || J.call(O, (v) => {
|
|
303
303
|
var b;
|
|
304
304
|
(b = v == null ? void 0 : v.forEach) == null || b.call(v, (H) => {
|
|
305
305
|
f.has(H.id) || (f.add(H.id), u.value.push(H));
|
|
@@ -312,7 +312,7 @@ function Si(e, t, n, i = {
|
|
|
312
312
|
l.value = !1;
|
|
313
313
|
}
|
|
314
314
|
else
|
|
315
|
-
l.value = !0, d.value = "", u.value = (
|
|
315
|
+
l.value = !0, d.value = "", u.value = (w = g.value) == null ? void 0 : w.filter((A) => {
|
|
316
316
|
var f;
|
|
317
317
|
let O = !1;
|
|
318
318
|
for (const v of i.searchKeys) {
|
|
@@ -422,7 +422,7 @@ function Ii(e) {
|
|
|
422
422
|
return console.warn("Failed to build valid URL:", i), "";
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function zt(e, t) {
|
|
426
426
|
const n = F(() => {
|
|
427
427
|
const r = he(e);
|
|
428
428
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
@@ -444,7 +444,7 @@ function Gt(e, t) {
|
|
|
444
444
|
}
|
|
445
445
|
const gt = /* @__PURE__ */ new Map();
|
|
446
446
|
function Ei(e, t, n) {
|
|
447
|
-
const i = K(!0), r = he(e), { axiosInstance: o } = rt(r.axiosRequestConfig), a =
|
|
447
|
+
const i = K(!0), r = he(e), { axiosInstance: o } = rt(r.axiosRequestConfig), a = zt(e, t), s = K({
|
|
448
448
|
status: me.Idle
|
|
449
449
|
}), l = async (u) => {
|
|
450
450
|
var g;
|
|
@@ -490,10 +490,10 @@ function Ei(e, t, n) {
|
|
|
490
490
|
error: h.response ? h : { response: h }
|
|
491
491
|
}, x);
|
|
492
492
|
}
|
|
493
|
-
}, c = r.cacheIdentifier, d =
|
|
493
|
+
}, c = r.cacheIdentifier, d = Qt(c);
|
|
494
494
|
return { fetcher: l, fetcherState: s, fetcherCacheKey: d };
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Qt(e) {
|
|
497
497
|
if (e) {
|
|
498
498
|
let t = gt.get(e);
|
|
499
499
|
return t || (t = K(1), gt.set(e, t)), t;
|
|
@@ -507,10 +507,10 @@ function Fi() {
|
|
|
507
507
|
convertKeyToTitle: e
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const Zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, yt = (e) => {
|
|
511
511
|
if (typeof e != "string")
|
|
512
512
|
throw new TypeError("Invalid argument expected string");
|
|
513
|
-
const t = e.match(
|
|
513
|
+
const t = e.match(Zt);
|
|
514
514
|
if (!t)
|
|
515
515
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
516
516
|
return t.shift(), t;
|
|
@@ -535,20 +535,20 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
535
535
|
}, Ct = (e, t, n) => {
|
|
536
536
|
Ri(n);
|
|
537
537
|
const i = Bi(e, t);
|
|
538
|
-
return
|
|
539
|
-
},
|
|
538
|
+
return Xt[n].includes(i);
|
|
539
|
+
}, Xt = {
|
|
540
540
|
">": [1],
|
|
541
541
|
">=": [0, 1],
|
|
542
542
|
"=": [0],
|
|
543
543
|
"<=": [-1, 0],
|
|
544
544
|
"<": [-1],
|
|
545
545
|
"!=": [-1, 1]
|
|
546
|
-
}, kt = Object.keys(
|
|
546
|
+
}, kt = Object.keys(Xt), Ri = (e) => {
|
|
547
547
|
if (typeof e != "string")
|
|
548
548
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
549
549
|
if (kt.indexOf(e) === -1)
|
|
550
550
|
throw new Error(`Invalid operator, expected one of ${kt.join("|")}`);
|
|
551
|
-
}, Ki = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
551
|
+
}, Ki = (e) => typeof e == "string" && /^[v\d]/.test(e) && Zt.test(e);
|
|
552
552
|
function Ni(e) {
|
|
553
553
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
554
554
|
if (!t)
|
|
@@ -576,12 +576,12 @@ function ji() {
|
|
|
576
576
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
const
|
|
580
|
-
Pt(
|
|
579
|
+
const Ge = Symbol("schema"), Di = (e) => {
|
|
580
|
+
Pt(Ge, e);
|
|
581
581
|
}, Pi = (e) => {
|
|
582
582
|
var r, o;
|
|
583
|
-
const t = Dt(
|
|
584
|
-
return Pt(
|
|
583
|
+
const t = Dt(Ge, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = Wn(n == null ? void 0 : n[e]);
|
|
584
|
+
return Pt(Ge, i), i;
|
|
585
585
|
};
|
|
586
586
|
function Ui(e) {
|
|
587
587
|
let t = "";
|
|
@@ -598,16 +598,16 @@ function Ui(e) {
|
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
const
|
|
601
|
+
const W = {
|
|
602
602
|
useAxios: rt,
|
|
603
603
|
useDebouncedFilter: Si,
|
|
604
604
|
useDeleteUrlBuilder: $i,
|
|
605
605
|
useErrors: Ti,
|
|
606
606
|
useExternalLinkCreator: Ii,
|
|
607
607
|
useFetcher: Ei,
|
|
608
|
-
useFetcherCacheKey:
|
|
609
|
-
useFetchUrlBuilder:
|
|
610
|
-
useHelpers:
|
|
608
|
+
useFetcherCacheKey: Qt,
|
|
609
|
+
useFetchUrlBuilder: zt,
|
|
610
|
+
useHelpers: Gt,
|
|
611
611
|
useStringHelpers: Fi,
|
|
612
612
|
useI18n: Ue,
|
|
613
613
|
useGatewayFeatureSupported: Ni,
|
|
@@ -636,21 +636,21 @@ const Y = {
|
|
|
636
636
|
}
|
|
637
637
|
},
|
|
638
638
|
setup(e) {
|
|
639
|
-
const t = e, { i18n: { t: n } } =
|
|
639
|
+
const t = e, { i18n: { t: n } } = W.useI18n(), { convertKeyToTitle: i } = W.useStringHelpers(), r = F(() => t.item.key ?? "json-array-item"), o = F(() => t.item.value ?? t.item), a = F(() => {
|
|
640
640
|
const l = JSON.parse(JSON.stringify(o.value));
|
|
641
641
|
return t.isArrayItem && delete l.name, l;
|
|
642
642
|
}), s = F(() => {
|
|
643
643
|
var l;
|
|
644
644
|
return t.isArrayItem ? (l = o.value) != null && l.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
645
645
|
});
|
|
646
|
-
return (l, c) => (m(),
|
|
646
|
+
return (l, c) => (m(), D(je(e.isArrayItem ? "fieldset" : "div"), {
|
|
647
647
|
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
648
648
|
}, {
|
|
649
|
-
default:
|
|
649
|
+
default: _(() => [
|
|
650
650
|
e.isArrayItem ? (m(), S("legend", qi, [
|
|
651
651
|
R("b", null, L(s.value), 1)
|
|
652
652
|
])) : N("", !0),
|
|
653
|
-
(m(!0), S(ue, null, ce(Object.keys(a.value), (d, u) => (m(),
|
|
653
|
+
(m(!0), S(ue, null, ce(Object.keys(a.value), (d, u) => (m(), D(tn, {
|
|
654
654
|
key: `${r.value}-property-${u}`,
|
|
655
655
|
item: {
|
|
656
656
|
key: d,
|
|
@@ -667,7 +667,7 @@ const Y = {
|
|
|
667
667
|
for (const [i, r] of t)
|
|
668
668
|
n[i] = r;
|
|
669
669
|
return n;
|
|
670
|
-
},
|
|
670
|
+
}, en = /* @__PURE__ */ se(Hi, [["__scopeId", "data-v-dc1e39a1"]]), Vi = /* @__PURE__ */ z({
|
|
671
671
|
__name: "InternalLinkItem",
|
|
672
672
|
props: {
|
|
673
673
|
item: {
|
|
@@ -677,7 +677,7 @@ const Y = {
|
|
|
677
677
|
},
|
|
678
678
|
emits: ["navigation-click"],
|
|
679
679
|
setup(e) {
|
|
680
|
-
const { i18n: { t } } =
|
|
680
|
+
const { i18n: { t } } = W.useI18n();
|
|
681
681
|
return (n, i) => {
|
|
682
682
|
const r = P("KButton");
|
|
683
683
|
return m(), S("div", null, [
|
|
@@ -686,7 +686,7 @@ const Y = {
|
|
|
686
686
|
class: "navigation-button",
|
|
687
687
|
onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
|
|
688
688
|
}, {
|
|
689
|
-
default:
|
|
689
|
+
default: _(() => [
|
|
690
690
|
q(L(e.item.value || $(t)("baseConfigCard.commonFields.link")), 1)
|
|
691
691
|
]),
|
|
692
692
|
_: 1
|
|
@@ -703,22 +703,22 @@ const Y = {
|
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
705
|
setup(e) {
|
|
706
|
-
const { i18n: { t } } =
|
|
706
|
+
const { i18n: { t } } = W.useI18n();
|
|
707
707
|
return (n, i) => {
|
|
708
708
|
const r = P("KBadge");
|
|
709
|
-
return m(),
|
|
709
|
+
return m(), D(r, {
|
|
710
710
|
appearance: e.status ? "success" : "neutral"
|
|
711
711
|
}, {
|
|
712
|
-
default:
|
|
712
|
+
default: _(() => [
|
|
713
713
|
q(L(e.status ? $(t)("baseConfigCard.statusBadge.enabledLabel") : $(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
714
714
|
]),
|
|
715
715
|
_: 1
|
|
716
716
|
}, 8, ["appearance"]);
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
|
-
}),
|
|
719
|
+
}), Ji = "#0044f4", Gi = "#e0e4ea", zi = "#afb7c5", Qi = "#0044f4", Zi = "1px", Xi = "16px", er = "20px", tr = { class: "config-card-details-row" }, nr = ["data-testid"], ir = ["data-testid"], rr = ["data-testid"], ar = ["data-testid"], or = { key: 1 }, lr = ["data-testid"], sr = ["data-testid"], cr = ["data-testid"], ur = ["data-testid"], dr = {
|
|
720
720
|
name: "ConfigCardItem",
|
|
721
|
-
components: { JsonCardItem:
|
|
721
|
+
components: { JsonCardItem: en, StatusBadge: Wi, InternalLinkItem: Yi }
|
|
722
722
|
}, fr = /* @__PURE__ */ z({
|
|
723
723
|
...dr,
|
|
724
724
|
props: {
|
|
@@ -739,15 +739,15 @@ const Y = {
|
|
|
739
739
|
},
|
|
740
740
|
emits: ["navigation-click"],
|
|
741
741
|
setup(e, { emit: t }) {
|
|
742
|
-
Ut((
|
|
743
|
-
v70f369b3: p.value ? "none" : `solid ${$(Zi)} ${$(
|
|
742
|
+
Ut((J) => ({
|
|
743
|
+
v70f369b3: p.value ? "none" : `solid ${$(Zi)} ${$(Gi)}`,
|
|
744
744
|
v67c2fae6: u.value && c.value ? "block" : "flex",
|
|
745
745
|
v847b138c: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
746
746
|
v847687d6: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
747
747
|
}));
|
|
748
|
-
const n = e, i = t, r =
|
|
749
|
-
var
|
|
750
|
-
return n.item.type ? n.item.type : (
|
|
748
|
+
const n = e, i = t, r = Jn(), o = De(), { i18n: { t: a, formatIsoDate: s, formatUnixTimeStamp: l } } = W.useI18n(), c = F(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = F(() => !!(n.item.tooltip || o["label-tooltip"])), u = F(() => n.item.type === V.Json || n.item.type === V.JsonArray), p = F(() => n.item.type === V.JsonArray), g = W.useSubSchema(n.item.key), h = F(() => {
|
|
749
|
+
var J;
|
|
750
|
+
return n.item.type ? n.item.type : (J = g == null ? void 0 : g.value) != null && J.encrypted ? V.Redacted : void 0;
|
|
751
751
|
}), x = F(() => {
|
|
752
752
|
switch (h.value) {
|
|
753
753
|
case V.ID:
|
|
@@ -829,8 +829,8 @@ const Y = {
|
|
|
829
829
|
attrs: {
|
|
830
830
|
"data-testid": `${n.item.key}-internal-link`,
|
|
831
831
|
item: n.item,
|
|
832
|
-
onNavigationClick: (
|
|
833
|
-
i("navigation-click",
|
|
832
|
+
onNavigationClick: (J) => {
|
|
833
|
+
i("navigation-click", J);
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
};
|
|
@@ -879,21 +879,21 @@ const Y = {
|
|
|
879
879
|
text: n.item.value
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
}), y = K(), k = K(), { isTruncated: C } =
|
|
883
|
-
return (
|
|
884
|
-
const
|
|
882
|
+
}), y = K(), k = K(), { isTruncated: C } = W.useTruncationDetector(y), { isTruncated: T } = W.useTruncationDetector(k);
|
|
883
|
+
return (J, X) => {
|
|
884
|
+
const w = P("KTooltip"), A = P("KLabel"), O = P("KBadge"), f = P("KCopy");
|
|
885
885
|
return m(), S("div", tr, [
|
|
886
886
|
R("div", {
|
|
887
887
|
class: "config-card-details-label",
|
|
888
888
|
"data-testid": `${e.item.key}-label`
|
|
889
889
|
}, [
|
|
890
|
-
|
|
890
|
+
j(J.$slots, "label", { item: e.item }, () => [
|
|
891
891
|
M(A, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
|
|
892
|
-
default:
|
|
893
|
-
M(
|
|
892
|
+
default: _(() => [
|
|
893
|
+
M(w, {
|
|
894
894
|
text: $(C) ? e.item.label : ""
|
|
895
895
|
}, {
|
|
896
|
-
default:
|
|
896
|
+
default: _(() => [
|
|
897
897
|
R("span", {
|
|
898
898
|
ref_key: "labelContent",
|
|
899
899
|
ref: y,
|
|
@@ -907,11 +907,11 @@ const Y = {
|
|
|
907
907
|
}, [
|
|
908
908
|
d.value ? {
|
|
909
909
|
name: "tooltip",
|
|
910
|
-
fn:
|
|
910
|
+
fn: _(() => [
|
|
911
911
|
R("div", {
|
|
912
912
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
913
913
|
}, [
|
|
914
|
-
|
|
914
|
+
j(J.$slots, "label-tooltip", {}, () => [
|
|
915
915
|
q(L(e.item.tooltip), 1)
|
|
916
916
|
], !0)
|
|
917
917
|
], 8, ir)
|
|
@@ -925,24 +925,24 @@ const Y = {
|
|
|
925
925
|
class: "config-card-details-value",
|
|
926
926
|
"data-testid": `${e.item.key}-property-value`
|
|
927
927
|
}, [
|
|
928
|
-
|
|
928
|
+
j(J.$slots, e.item.key, {
|
|
929
929
|
rowValue: e.item.value
|
|
930
930
|
}, () => [
|
|
931
931
|
c.value ? (m(), S("div", or, [
|
|
932
|
-
(m(),
|
|
933
|
-
default:
|
|
932
|
+
(m(), D(je(x.value.tag), qt(Ht(x.value.attrs)), {
|
|
933
|
+
default: _(() => [
|
|
934
934
|
x.value.additionalComponent === "KBadge" ? (m(), S("div", {
|
|
935
935
|
key: 0,
|
|
936
936
|
"data-testid": `${e.item.key}-badge-tags`
|
|
937
937
|
}, [
|
|
938
|
-
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(),
|
|
938
|
+
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(), D(O, {
|
|
939
939
|
key: `${e.item.key}-badge-tag-${b}`,
|
|
940
940
|
class: "config-badge",
|
|
941
941
|
"data-testid": `${e.item.key}-badge-tag-${b}`,
|
|
942
942
|
tooltip: v,
|
|
943
943
|
"truncation-tooltip": ""
|
|
944
944
|
}, {
|
|
945
|
-
default:
|
|
945
|
+
default: _(() => [
|
|
946
946
|
q(L(v), 1)
|
|
947
947
|
]),
|
|
948
948
|
_: 2
|
|
@@ -952,7 +952,7 @@ const Y = {
|
|
|
952
952
|
class: "copy-uuid-array",
|
|
953
953
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
954
954
|
}, [
|
|
955
|
-
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(),
|
|
955
|
+
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(), D(f, Vt({ ref_for: !0 }, x.value.childAttrs, {
|
|
956
956
|
key: `${e.item.key}-copy-uuid-${b}`,
|
|
957
957
|
"data-testid": `${e.item.key}-copy-uuid-${b}`,
|
|
958
958
|
text: v
|
|
@@ -962,13 +962,13 @@ const Y = {
|
|
|
962
962
|
class: "method-badge-array",
|
|
963
963
|
"data-testid": `${e.item.key}-badge-methods`
|
|
964
964
|
}, [
|
|
965
|
-
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(),
|
|
965
|
+
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(), D(O, {
|
|
966
966
|
key: `${e.item.key}-badge-method-${b}`,
|
|
967
967
|
appearance: Object.values($(ei)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
|
|
968
968
|
class: "config-badge",
|
|
969
969
|
"data-testid": `${e.item.key}-badge-method-${b}`
|
|
970
970
|
}, {
|
|
971
|
-
default:
|
|
971
|
+
default: _(() => [
|
|
972
972
|
q(L(v), 1)
|
|
973
973
|
]),
|
|
974
974
|
_: 2
|
|
@@ -977,17 +977,17 @@ const Y = {
|
|
|
977
977
|
key: 3,
|
|
978
978
|
"data-testid": `${n.item.key}-json-array-content`
|
|
979
979
|
}, [
|
|
980
|
-
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(),
|
|
980
|
+
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(), D(en, {
|
|
981
981
|
key: `json-array-item-${b}`,
|
|
982
982
|
index: b,
|
|
983
983
|
"is-array-item": "",
|
|
984
984
|
item: v
|
|
985
985
|
}, null, 8, ["index", "item"]))), 128))
|
|
986
|
-
], 8, ur)) : (m(),
|
|
986
|
+
], 8, ur)) : (m(), D(w, {
|
|
987
987
|
key: 4,
|
|
988
988
|
text: $(T) ? e.item.value : ""
|
|
989
989
|
}, {
|
|
990
|
-
default:
|
|
990
|
+
default: _(() => [
|
|
991
991
|
R("span", {
|
|
992
992
|
ref_key: "textContent",
|
|
993
993
|
ref: k,
|
|
@@ -1008,10 +1008,10 @@ const Y = {
|
|
|
1008
1008
|
]);
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
|
-
}),
|
|
1011
|
+
}), tn = /* @__PURE__ */ se(fr, [["__scopeId", "data-v-66d61bea"]]), pr = { class: "json-config config-card-code-block" }, mr = {
|
|
1012
1012
|
key: 0,
|
|
1013
1013
|
class: "json-endpoint"
|
|
1014
|
-
},
|
|
1014
|
+
}, nn = /* @__PURE__ */ z({
|
|
1015
1015
|
__name: "JsonCodeBlock",
|
|
1016
1016
|
props: {
|
|
1017
1017
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1056,7 +1056,7 @@ const Y = {
|
|
|
1056
1056
|
M(a, {
|
|
1057
1057
|
appearance: t.requestMethod
|
|
1058
1058
|
}, {
|
|
1059
|
-
default:
|
|
1059
|
+
default: _(() => [
|
|
1060
1060
|
q(L(t.requestMethod), 1)
|
|
1061
1061
|
]),
|
|
1062
1062
|
_: 1
|
|
@@ -1069,7 +1069,7 @@ const Y = {
|
|
|
1069
1069
|
theme: "dark"
|
|
1070
1070
|
}, null, 8, ["code"])
|
|
1071
1071
|
])) : N("", !0),
|
|
1072
|
-
t.entityRecord ? (m(),
|
|
1072
|
+
t.entityRecord ? (m(), D(s, {
|
|
1073
1073
|
key: 1,
|
|
1074
1074
|
id: "json-codeblock",
|
|
1075
1075
|
class: fe({ "json-content": t.fetcherUrl }),
|
|
@@ -1082,14 +1082,14 @@ const Y = {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
});
|
|
1084
1084
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1085
|
-
function
|
|
1085
|
+
function rn(e) {
|
|
1086
1086
|
return typeof e > "u" || e === null;
|
|
1087
1087
|
}
|
|
1088
1088
|
function hr(e) {
|
|
1089
1089
|
return typeof e == "object" && e !== null;
|
|
1090
1090
|
}
|
|
1091
1091
|
function gr(e) {
|
|
1092
|
-
return Array.isArray(e) ? e :
|
|
1092
|
+
return Array.isArray(e) ? e : rn(e) ? [] : [e];
|
|
1093
1093
|
}
|
|
1094
1094
|
function yr(e, t) {
|
|
1095
1095
|
var n, i, r, o;
|
|
@@ -1107,7 +1107,7 @@ function vr(e, t) {
|
|
|
1107
1107
|
function br(e) {
|
|
1108
1108
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1109
1109
|
}
|
|
1110
|
-
var xr =
|
|
1110
|
+
var xr = rn, Cr = hr, kr = gr, Ar = vr, _r = br, wr = yr, ee = {
|
|
1111
1111
|
isNothing: xr,
|
|
1112
1112
|
isObject: Cr,
|
|
1113
1113
|
toArray: kr,
|
|
@@ -1115,19 +1115,19 @@ var xr = tn, Cr = hr, kr = gr, Ar = vr, _r = br, wr = yr, ee = {
|
|
|
1115
1115
|
isNegativeZero: _r,
|
|
1116
1116
|
extend: wr
|
|
1117
1117
|
};
|
|
1118
|
-
function
|
|
1118
|
+
function an(e, t) {
|
|
1119
1119
|
var n = "", i = e.reason || "(unknown reason)";
|
|
1120
1120
|
return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
|
|
1121
1121
|
|
|
1122
1122
|
` + e.mark.snippet), i + " " + n) : i;
|
|
1123
1123
|
}
|
|
1124
1124
|
function Ie(e, t) {
|
|
1125
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1125
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = an(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1126
1126
|
}
|
|
1127
1127
|
Ie.prototype = Object.create(Error.prototype);
|
|
1128
1128
|
Ie.prototype.constructor = Ie;
|
|
1129
1129
|
Ie.prototype.toString = function(t) {
|
|
1130
|
-
return this.name + ": " +
|
|
1130
|
+
return this.name + ": " + an(this, t);
|
|
1131
1131
|
};
|
|
1132
1132
|
var oe = Ie;
|
|
1133
1133
|
function Ve(e, t, n, i, r) {
|
|
@@ -1262,26 +1262,26 @@ ze.prototype.extend = function(t) {
|
|
|
1262
1262
|
var r = Object.create(ze.prototype);
|
|
1263
1263
|
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = At(r, "implicit"), r.compiledExplicit = At(r, "explicit"), r.compiledTypeMap = Or(r.compiledImplicit, r.compiledExplicit), r;
|
|
1264
1264
|
};
|
|
1265
|
-
var
|
|
1265
|
+
var on = ze, ln = new ne("tag:yaml.org,2002:str", {
|
|
1266
1266
|
kind: "scalar",
|
|
1267
1267
|
construct: function(e) {
|
|
1268
1268
|
return e !== null ? e : "";
|
|
1269
1269
|
}
|
|
1270
|
-
}),
|
|
1270
|
+
}), sn = new ne("tag:yaml.org,2002:seq", {
|
|
1271
1271
|
kind: "sequence",
|
|
1272
1272
|
construct: function(e) {
|
|
1273
1273
|
return e !== null ? e : [];
|
|
1274
1274
|
}
|
|
1275
|
-
}),
|
|
1275
|
+
}), cn = new ne("tag:yaml.org,2002:map", {
|
|
1276
1276
|
kind: "mapping",
|
|
1277
1277
|
construct: function(e) {
|
|
1278
1278
|
return e !== null ? e : {};
|
|
1279
1279
|
}
|
|
1280
|
-
}),
|
|
1280
|
+
}), un = new on({
|
|
1281
1281
|
explicit: [
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1282
|
+
ln,
|
|
1283
|
+
sn,
|
|
1284
|
+
cn
|
|
1285
1285
|
]
|
|
1286
1286
|
});
|
|
1287
1287
|
function Lr(e) {
|
|
@@ -1295,7 +1295,7 @@ function Br() {
|
|
|
1295
1295
|
function Rr(e) {
|
|
1296
1296
|
return e === null;
|
|
1297
1297
|
}
|
|
1298
|
-
var
|
|
1298
|
+
var dn = new ne("tag:yaml.org,2002:null", {
|
|
1299
1299
|
kind: "scalar",
|
|
1300
1300
|
resolve: Lr,
|
|
1301
1301
|
construct: Br,
|
|
@@ -1330,7 +1330,7 @@ function Nr(e) {
|
|
|
1330
1330
|
function Mr(e) {
|
|
1331
1331
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1332
1332
|
}
|
|
1333
|
-
var
|
|
1333
|
+
var fn = new ne("tag:yaml.org,2002:bool", {
|
|
1334
1334
|
kind: "scalar",
|
|
1335
1335
|
resolve: Kr,
|
|
1336
1336
|
construct: Nr,
|
|
@@ -1410,7 +1410,7 @@ function qr(e) {
|
|
|
1410
1410
|
function Hr(e) {
|
|
1411
1411
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ee.isNegativeZero(e);
|
|
1412
1412
|
}
|
|
1413
|
-
var
|
|
1413
|
+
var pn = new ne("tag:yaml.org,2002:int", {
|
|
1414
1414
|
kind: "scalar",
|
|
1415
1415
|
resolve: Ur,
|
|
1416
1416
|
construct: qr,
|
|
@@ -1450,8 +1450,8 @@ function Wr(e) {
|
|
|
1450
1450
|
var t, n;
|
|
1451
1451
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1452
1452
|
}
|
|
1453
|
-
var
|
|
1454
|
-
function
|
|
1453
|
+
var Jr = /^[-+]?[0-9]+e/;
|
|
1454
|
+
function Gr(e, t) {
|
|
1455
1455
|
var n;
|
|
1456
1456
|
if (isNaN(e))
|
|
1457
1457
|
switch (t) {
|
|
@@ -1482,36 +1482,36 @@ function Jr(e, t) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
else if (ee.isNegativeZero(e))
|
|
1484
1484
|
return "-0.0";
|
|
1485
|
-
return n = e.toString(10),
|
|
1485
|
+
return n = e.toString(10), Jr.test(n) ? n.replace("e", ".e") : n;
|
|
1486
1486
|
}
|
|
1487
1487
|
function zr(e) {
|
|
1488
1488
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ee.isNegativeZero(e));
|
|
1489
1489
|
}
|
|
1490
|
-
var
|
|
1490
|
+
var mn = new ne("tag:yaml.org,2002:float", {
|
|
1491
1491
|
kind: "scalar",
|
|
1492
1492
|
resolve: Yr,
|
|
1493
1493
|
construct: Wr,
|
|
1494
1494
|
predicate: zr,
|
|
1495
|
-
represent:
|
|
1495
|
+
represent: Gr,
|
|
1496
1496
|
defaultStyle: "lowercase"
|
|
1497
|
-
}),
|
|
1497
|
+
}), hn = un.extend({
|
|
1498
1498
|
implicit: [
|
|
1499
|
-
cn,
|
|
1500
|
-
un,
|
|
1501
1499
|
dn,
|
|
1502
|
-
fn
|
|
1500
|
+
fn,
|
|
1501
|
+
pn,
|
|
1502
|
+
mn
|
|
1503
1503
|
]
|
|
1504
|
-
}),
|
|
1504
|
+
}), gn = hn, yn = new RegExp(
|
|
1505
1505
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1506
|
-
),
|
|
1506
|
+
), vn = new RegExp(
|
|
1507
1507
|
"^([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]))?))?$"
|
|
1508
1508
|
);
|
|
1509
1509
|
function Qr(e) {
|
|
1510
|
-
return e === null ? !1 :
|
|
1510
|
+
return e === null ? !1 : yn.exec(e) !== null || vn.exec(e) !== null;
|
|
1511
1511
|
}
|
|
1512
1512
|
function Zr(e) {
|
|
1513
1513
|
var t, n, i, r, o, a, s, l = 0, c = null, d, u, p;
|
|
1514
|
-
if (t =
|
|
1514
|
+
if (t = yn.exec(e), t === null && (t = vn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1515
1515
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1516
1516
|
return new Date(Date.UTC(n, i, r));
|
|
1517
1517
|
if (o = +t[4], a = +t[5], s = +t[6], t[7]) {
|
|
@@ -1524,7 +1524,7 @@ function Zr(e) {
|
|
|
1524
1524
|
function Xr(e) {
|
|
1525
1525
|
return e.toISOString();
|
|
1526
1526
|
}
|
|
1527
|
-
var
|
|
1527
|
+
var bn = new ne("tag:yaml.org,2002:timestamp", {
|
|
1528
1528
|
kind: "scalar",
|
|
1529
1529
|
resolve: Qr,
|
|
1530
1530
|
construct: Zr,
|
|
@@ -1534,7 +1534,7 @@ var yn = new ne("tag:yaml.org,2002:timestamp", {
|
|
|
1534
1534
|
function ea(e) {
|
|
1535
1535
|
return e === "<<" || e === null;
|
|
1536
1536
|
}
|
|
1537
|
-
var
|
|
1537
|
+
var xn = new ne("tag:yaml.org,2002:merge", {
|
|
1538
1538
|
kind: "scalar",
|
|
1539
1539
|
resolve: ea
|
|
1540
1540
|
}), at = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1564,7 +1564,7 @@ function ia(e) {
|
|
|
1564
1564
|
function ra(e) {
|
|
1565
1565
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1566
1566
|
}
|
|
1567
|
-
var
|
|
1567
|
+
var Cn = new ne("tag:yaml.org,2002:binary", {
|
|
1568
1568
|
kind: "scalar",
|
|
1569
1569
|
resolve: ta,
|
|
1570
1570
|
construct: na,
|
|
@@ -1589,7 +1589,7 @@ function la(e) {
|
|
|
1589
1589
|
function sa(e) {
|
|
1590
1590
|
return e !== null ? e : [];
|
|
1591
1591
|
}
|
|
1592
|
-
var
|
|
1592
|
+
var kn = new ne("tag:yaml.org,2002:omap", {
|
|
1593
1593
|
kind: "sequence",
|
|
1594
1594
|
resolve: la,
|
|
1595
1595
|
construct: sa
|
|
@@ -1610,7 +1610,7 @@ function da(e) {
|
|
|
1610
1610
|
i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
|
|
1611
1611
|
return o;
|
|
1612
1612
|
}
|
|
1613
|
-
var
|
|
1613
|
+
var An = new ne("tag:yaml.org,2002:pairs", {
|
|
1614
1614
|
kind: "sequence",
|
|
1615
1615
|
resolve: ua,
|
|
1616
1616
|
construct: da
|
|
@@ -1626,22 +1626,22 @@ function pa(e) {
|
|
|
1626
1626
|
function ma(e) {
|
|
1627
1627
|
return e !== null ? e : {};
|
|
1628
1628
|
}
|
|
1629
|
-
var
|
|
1629
|
+
var _n = new ne("tag:yaml.org,2002:set", {
|
|
1630
1630
|
kind: "mapping",
|
|
1631
1631
|
resolve: pa,
|
|
1632
1632
|
construct: ma
|
|
1633
|
-
}), ot =
|
|
1633
|
+
}), ot = gn.extend({
|
|
1634
1634
|
implicit: [
|
|
1635
|
-
|
|
1636
|
-
|
|
1635
|
+
bn,
|
|
1636
|
+
xn
|
|
1637
1637
|
],
|
|
1638
1638
|
explicit: [
|
|
1639
|
-
bn,
|
|
1640
|
-
xn,
|
|
1641
1639
|
Cn,
|
|
1642
|
-
kn
|
|
1640
|
+
kn,
|
|
1641
|
+
An,
|
|
1642
|
+
_n
|
|
1643
1643
|
]
|
|
1644
|
-
}), ye = Object.prototype.hasOwnProperty, Be = 1,
|
|
1644
|
+
}), ye = Object.prototype.hasOwnProperty, Be = 1, wn = 2, Sn = 3, Re = 4, We = 1, ha = 2, _t = 3, ga = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ya = /[\x85\u2028\u2029]/, va = /[,\[\]\{\}]/, $n = /^(?:!|!!|![a-z\-]+!)$/i, Tn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1645
1645
|
function wt(e) {
|
|
1646
1646
|
return Object.prototype.toString.call(e);
|
|
1647
1647
|
}
|
|
@@ -1677,13 +1677,13 @@ function ka(e) {
|
|
|
1677
1677
|
(e - 65536 & 1023) + 56320
|
|
1678
1678
|
);
|
|
1679
1679
|
}
|
|
1680
|
-
var
|
|
1680
|
+
var In = new Array(256), En = new Array(256);
|
|
1681
1681
|
for (var ke = 0; ke < 256; ke++)
|
|
1682
|
-
|
|
1682
|
+
In[ke] = St(ke) ? 1 : 0, En[ke] = St(ke);
|
|
1683
1683
|
function Aa(e, t) {
|
|
1684
1684
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || ot, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function Fn(e, t) {
|
|
1687
1687
|
var n = {
|
|
1688
1688
|
name: e.filename,
|
|
1689
1689
|
buffer: e.input.slice(0, -1),
|
|
@@ -1695,10 +1695,10 @@ function In(e, t) {
|
|
|
1695
1695
|
return n.snippet = $r(n), new oe(t, n);
|
|
1696
1696
|
}
|
|
1697
1697
|
function E(e, t) {
|
|
1698
|
-
throw
|
|
1698
|
+
throw Fn(e, t);
|
|
1699
1699
|
}
|
|
1700
1700
|
function Ke(e, t) {
|
|
1701
|
-
e.onWarning && e.onWarning.call(null,
|
|
1701
|
+
e.onWarning && e.onWarning.call(null, Fn(e, t));
|
|
1702
1702
|
}
|
|
1703
1703
|
var $t = {
|
|
1704
1704
|
YAML: function(t, n, i) {
|
|
@@ -1707,7 +1707,7 @@ var $t = {
|
|
|
1707
1707
|
},
|
|
1708
1708
|
TAG: function(t, n, i) {
|
|
1709
1709
|
var r, o;
|
|
1710
|
-
i.length !== 2 && E(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1],
|
|
1710
|
+
i.length !== 2 && E(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], $n.test(r) || E(t, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(t.tagMap, r) && E(t, 'there is a previously declared suffix for "' + r + '" tag handle'), Tn.test(o) || E(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1711
1711
|
try {
|
|
1712
1712
|
o = decodeURIComponent(o);
|
|
1713
1713
|
} catch {
|
|
@@ -1829,8 +1829,8 @@ function Sa(e, t) {
|
|
|
1829
1829
|
if (s === 92) {
|
|
1830
1830
|
if (ge(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), de(s))
|
|
1831
1831
|
Z(e, !1, t);
|
|
1832
|
-
else if (s < 256 &&
|
|
1833
|
-
e.result +=
|
|
1832
|
+
else if (s < 256 && In[s])
|
|
1833
|
+
e.result += En[s], e.position++;
|
|
1834
1834
|
else if ((a = xa(s)) > 0) {
|
|
1835
1835
|
for (r = a, o = 0; r > 0; r--)
|
|
1836
1836
|
s = e.input.charCodeAt(++e.position), (a = ba(s)) >= 0 ? o = (o << 4) + a : E(e, "expected hexadecimal character");
|
|
@@ -1912,7 +1912,7 @@ function It(e, t) {
|
|
|
1912
1912
|
o.push(null), l = e.input.charCodeAt(e.position);
|
|
1913
1913
|
continue;
|
|
1914
1914
|
}
|
|
1915
|
-
if (n = e.line, $e(e, t,
|
|
1915
|
+
if (n = e.line, $e(e, t, Sn, !1, !0), o.push(e.result), Z(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && l !== 0)
|
|
1916
1916
|
E(e, "bad indentation of a sequence entry");
|
|
1917
1917
|
else if (e.lineIndent < t)
|
|
1918
1918
|
break;
|
|
@@ -1926,7 +1926,7 @@ function Ia(e, t, n) {
|
|
|
1926
1926
|
if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && le(i))
|
|
1927
1927
|
C === 63 ? (y && (we(e, u, p, g, h, null, a, s, l), g = h = x = null), k = !0, y = !0, r = !0) : y ? (y = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = i;
|
|
1928
1928
|
else {
|
|
1929
|
-
if (a = e.line, s = e.lineStart, l = e.position, !$e(e, n,
|
|
1929
|
+
if (a = e.line, s = e.lineStart, l = e.position, !$e(e, n, wn, !1, !0))
|
|
1930
1930
|
break;
|
|
1931
1931
|
if (e.line === o) {
|
|
1932
1932
|
for (C = e.input.charCodeAt(e.position); ve(C); )
|
|
@@ -1959,10 +1959,10 @@ function Ea(e) {
|
|
|
1959
1959
|
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
|
|
1960
1960
|
} else {
|
|
1961
1961
|
for (; a !== 0 && !le(a); )
|
|
1962
|
-
a === 33 && (i ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1),
|
|
1962
|
+
a === 33 && (i ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), $n.test(r) || E(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1963
1963
|
o = e.input.slice(t, e.position), va.test(o) && E(e, "tag suffix cannot contain flow indicator characters");
|
|
1964
1964
|
}
|
|
1965
|
-
o && !
|
|
1965
|
+
o && !Tn.test(o) && E(e, "tag name cannot contain such characters: " + o);
|
|
1966
1966
|
try {
|
|
1967
1967
|
o = decodeURIComponent(o);
|
|
1968
1968
|
} catch {
|
|
@@ -1986,10 +1986,10 @@ function Oa(e) {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
function $e(e, t, n, i, r) {
|
|
1988
1988
|
var o, a, s, l = 1, c = !1, d = !1, u, p, g, h, x, y;
|
|
1989
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = s = Re === n ||
|
|
1989
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = s = Re === n || Sn === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
1990
1990
|
for (; Ea(e) || Fa(e); )
|
|
1991
1991
|
Z(e, !0, -1) ? (c = !0, s = o, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
|
|
1992
|
-
if (s && (s = c || r), (l === 1 || Re === n) && (Be === n ||
|
|
1992
|
+
if (s && (s = c || r), (l === 1 || Re === n) && (Be === n || wn === n ? x = t : x = t + 1, y = e.position - e.lineStart, l === 1 ? s && (It(e, y) || Ia(e, y, x)) || $a(e, x) ? d = !0 : (a && Ta(e, x) || wa(e, x) || Sa(e, x) ? d = !0 : Oa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : _a(e, x, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && It(e, y))), e.tag === null)
|
|
1993
1993
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1994
1994
|
else if (e.tag === "?") {
|
|
1995
1995
|
for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
|
|
@@ -2040,7 +2040,7 @@ function La(e) {
|
|
|
2040
2040
|
else
|
|
2041
2041
|
return;
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function On(e, t) {
|
|
2044
2044
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2045
2045
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2046
2046
|
var n = new Aa(e, t), i = e.indexOf("\0");
|
|
@@ -2052,24 +2052,24 @@ function En(e, t) {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
function Ba(e, t, n) {
|
|
2054
2054
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2055
|
-
var i =
|
|
2055
|
+
var i = On(e, n);
|
|
2056
2056
|
if (typeof t != "function")
|
|
2057
2057
|
return i;
|
|
2058
2058
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
2059
2059
|
t(i[r]);
|
|
2060
2060
|
}
|
|
2061
2061
|
function Ra(e, t) {
|
|
2062
|
-
var n =
|
|
2062
|
+
var n = On(e, t);
|
|
2063
2063
|
if (n.length !== 0) {
|
|
2064
2064
|
if (n.length === 1)
|
|
2065
2065
|
return n[0];
|
|
2066
2066
|
throw new oe("expected a single document in the stream, but found more");
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
|
-
var Ka = Ba, Na = Ra,
|
|
2069
|
+
var Ka = Ba, Na = Ra, Ln = {
|
|
2070
2070
|
loadAll: Ka,
|
|
2071
2071
|
load: Na
|
|
2072
|
-
},
|
|
2072
|
+
}, Bn = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, ct = 65279, Ma = 9, Ee = 10, ja = 13, Da = 32, Pa = 33, Ua = 34, Qe = 35, qa = 37, Ha = 38, Va = 39, Ya = 42, Kn = 44, Wa = 45, Ne = 58, Ja = 61, Ga = 62, za = 63, Qa = 64, Nn = 91, Mn = 93, Za = 96, jn = 123, Xa = 124, Dn = 125, re = {};
|
|
2073
2073
|
re[0] = "\\0";
|
|
2074
2074
|
re[7] = "\\a";
|
|
2075
2075
|
re[8] = "\\b";
|
|
@@ -2107,7 +2107,7 @@ function no(e, t) {
|
|
|
2107
2107
|
var n, i, r, o, a, s, l;
|
|
2108
2108
|
if (t === null) return {};
|
|
2109
2109
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2110
|
-
a = i[r], s = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = e.compiledTypeMap.fallback[a], l &&
|
|
2110
|
+
a = i[r], s = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = e.compiledTypeMap.fallback[a], l && Rn.call(l.styleAliases, s) && (s = l.styleAliases[s]), n[a] = s;
|
|
2111
2111
|
return n;
|
|
2112
2112
|
}
|
|
2113
2113
|
function io(e) {
|
|
@@ -2160,11 +2160,11 @@ function Ot(e, t, n) {
|
|
|
2160
2160
|
(n ? (
|
|
2161
2161
|
// c = flow-in
|
|
2162
2162
|
i
|
|
2163
|
-
) : i && e !==
|
|
2163
|
+
) : i && e !== Kn && e !== Nn && e !== Mn && e !== jn && e !== Dn) && e !== Qe && !(t === Ne && !r) || Ft(t) && !Me(t) && e === Qe || t === Ne && r
|
|
2164
2164
|
);
|
|
2165
2165
|
}
|
|
2166
2166
|
function lo(e) {
|
|
2167
|
-
return Oe(e) && e !== ct && !Me(e) && e !== Wa && e !== za && e !== Ne && e !==
|
|
2167
|
+
return Oe(e) && e !== ct && !Me(e) && e !== Wa && e !== za && e !== Ne && e !== Kn && e !== Nn && e !== Mn && e !== jn && e !== Dn && e !== Qe && e !== Ha && e !== Ya && e !== Pa && e !== Xa && e !== Ja && e !== Ga && e !== Va && e !== Ua && e !== qa && e !== Qa && e !== Za;
|
|
2168
2168
|
}
|
|
2169
2169
|
function so(e) {
|
|
2170
2170
|
return !Me(e) && e !== Ne;
|
|
@@ -2173,11 +2173,11 @@ function Te(e, t) {
|
|
|
2173
2173
|
var n = e.charCodeAt(t), i;
|
|
2174
2174
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function Pn(e) {
|
|
2177
2177
|
var t = /^\n* /;
|
|
2178
2178
|
return t.test(e);
|
|
2179
2179
|
}
|
|
2180
|
-
var
|
|
2180
|
+
var Un = 1, Xe = 2, qn = 3, Hn = 4, Ae = 5;
|
|
2181
2181
|
function co(e, t, n, i, r, o, a, s) {
|
|
2182
2182
|
var l, c = 0, d = null, u = !1, p = !1, g = i !== -1, h = -1, x = lo(Te(e, 0)) && so(Te(e, e.length - 1));
|
|
2183
2183
|
if (t || a)
|
|
@@ -2197,7 +2197,7 @@ function co(e, t, n, i, r, o, a, s) {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
p = p || g && l - h - 1 > i && e[h + 1] !== " ";
|
|
2199
2199
|
}
|
|
2200
|
-
return !u && !p ? x && !a && !r(e) ?
|
|
2200
|
+
return !u && !p ? x && !a && !r(e) ? Un : o === Fe ? Ae : Xe : n > 9 && Pn(e) ? Ae : a ? o === Fe ? Ae : Xe : p ? Hn : qn;
|
|
2201
2201
|
}
|
|
2202
2202
|
function uo(e, t, n, i, r) {
|
|
2203
2203
|
e.dump = function() {
|
|
@@ -2219,13 +2219,13 @@ function uo(e, t, n, i, r) {
|
|
|
2219
2219
|
e.forceQuotes && !i,
|
|
2220
2220
|
r
|
|
2221
2221
|
)) {
|
|
2222
|
-
case
|
|
2222
|
+
case Un:
|
|
2223
2223
|
return t;
|
|
2224
2224
|
case Xe:
|
|
2225
2225
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2226
|
-
case
|
|
2226
|
+
case qn:
|
|
2227
2227
|
return "|" + Lt(t, e.indent) + Bt(Et(t, o));
|
|
2228
|
-
case
|
|
2228
|
+
case Hn:
|
|
2229
2229
|
return ">" + Lt(t, e.indent) + Bt(Et(fo(t, a), o));
|
|
2230
2230
|
case Ae:
|
|
2231
2231
|
return '"' + po(t) + '"';
|
|
@@ -2235,7 +2235,7 @@ function uo(e, t, n, i, r) {
|
|
|
2235
2235
|
}();
|
|
2236
2236
|
}
|
|
2237
2237
|
function Lt(e, t) {
|
|
2238
|
-
var n =
|
|
2238
|
+
var n = Pn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2239
2239
|
`, r = i && (e[e.length - 2] === `
|
|
2240
2240
|
` || e === `
|
|
2241
2241
|
`), o = r ? "+" : i ? "" : "-";
|
|
@@ -2308,9 +2308,9 @@ function Nt(e, t, n) {
|
|
|
2308
2308
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2309
2309
|
if (s = r[o], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
|
|
2310
2310
|
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
2311
|
-
if (l = e.styleMap[s.tag] || s.defaultStyle,
|
|
2311
|
+
if (l = e.styleMap[s.tag] || s.defaultStyle, Bn.call(s.represent) === "[object Function]")
|
|
2312
2312
|
i = s.represent(t, l);
|
|
2313
|
-
else if (
|
|
2313
|
+
else if (Rn.call(s.represent, l))
|
|
2314
2314
|
i = s.represent[l](t, l);
|
|
2315
2315
|
else
|
|
2316
2316
|
throw new oe("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
|
|
@@ -2322,7 +2322,7 @@ function Nt(e, t, n) {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
function pe(e, t, n, i, r, o, a) {
|
|
2324
2324
|
e.tag = null, e.dump = n, Nt(e, n, !1) || Nt(e, n, !0);
|
|
2325
|
-
var s =
|
|
2325
|
+
var s = Bn.call(e.dump), l = i, c;
|
|
2326
2326
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2327
2327
|
var d = s === "[object Object]" || s === "[object Array]", u, p;
|
|
2328
2328
|
if (d && (u = e.duplicates.indexOf(n), p = u !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (r = !1), p && e.usedDuplicates[u])
|
|
@@ -2380,20 +2380,20 @@ function ut(e, t) {
|
|
|
2380
2380
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2381
2381
|
};
|
|
2382
2382
|
}
|
|
2383
|
-
var Co = ne, ko =
|
|
2384
|
-
binary:
|
|
2385
|
-
float:
|
|
2386
|
-
map:
|
|
2387
|
-
null:
|
|
2388
|
-
pairs:
|
|
2389
|
-
set:
|
|
2390
|
-
timestamp:
|
|
2391
|
-
bool:
|
|
2392
|
-
int:
|
|
2393
|
-
merge:
|
|
2394
|
-
omap:
|
|
2395
|
-
seq:
|
|
2396
|
-
str:
|
|
2383
|
+
var Co = ne, ko = on, Ao = un, _o = hn, wo = gn, So = ot, $o = Ln.load, To = Ln.loadAll, Io = xo.dump, Eo = oe, Fo = {
|
|
2384
|
+
binary: Cn,
|
|
2385
|
+
float: mn,
|
|
2386
|
+
map: cn,
|
|
2387
|
+
null: dn,
|
|
2388
|
+
pairs: An,
|
|
2389
|
+
set: _n,
|
|
2390
|
+
timestamp: bn,
|
|
2391
|
+
bool: fn,
|
|
2392
|
+
int: pn,
|
|
2393
|
+
merge: xn,
|
|
2394
|
+
omap: kn,
|
|
2395
|
+
seq: sn,
|
|
2396
|
+
str: ln
|
|
2397
2397
|
}, Oo = ut("safeLoad", "load"), Lo = ut("safeLoadAll", "loadAll"), Bo = ut("safeDump", "dump"), Ro = {
|
|
2398
2398
|
Type: Co,
|
|
2399
2399
|
Schema: ko,
|
|
@@ -2410,7 +2410,7 @@ var Co = ne, ko = rn, Ao = sn, _o = pn, wo = mn, So = ot, $o = Fn.load, To = Fn.
|
|
|
2410
2410
|
safeLoadAll: Lo,
|
|
2411
2411
|
safeDump: Bo
|
|
2412
2412
|
};
|
|
2413
|
-
const Ko = { class: "yaml-config config-card-code-block" },
|
|
2413
|
+
const Ko = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */ z({
|
|
2414
2414
|
__name: "YamlCodeBlock",
|
|
2415
2415
|
props: {
|
|
2416
2416
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2427,7 +2427,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2427
2427
|
return (i, r) => {
|
|
2428
2428
|
const o = P("KCodeBlock");
|
|
2429
2429
|
return m(), S("div", Ko, [
|
|
2430
|
-
t.entityRecord ? (m(),
|
|
2430
|
+
t.entityRecord ? (m(), D(o, {
|
|
2431
2431
|
key: 0,
|
|
2432
2432
|
id: "yaml-codeblock",
|
|
2433
2433
|
code: n.value,
|
|
@@ -2437,7 +2437,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2437
2437
|
]);
|
|
2438
2438
|
};
|
|
2439
2439
|
}
|
|
2440
|
-
}), No = { class: "terraform-config config-card-code-block" }, ie = " ",
|
|
2440
|
+
}), No = { class: "terraform-config config-card-code-block" }, ie = " ", Yn = /* @__PURE__ */ z({
|
|
2441
2441
|
__name: "TerraformCodeBlock",
|
|
2442
2442
|
props: {
|
|
2443
2443
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2534,7 +2534,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2534
2534
|
return (l, c) => {
|
|
2535
2535
|
const d = P("KCodeBlock");
|
|
2536
2536
|
return m(), S("div", No, [
|
|
2537
|
-
t.entityRecord ? (m(),
|
|
2537
|
+
t.entityRecord ? (m(), D(d, {
|
|
2538
2538
|
key: 0,
|
|
2539
2539
|
id: "terraform-codeblock",
|
|
2540
2540
|
code: s.value,
|
|
@@ -2607,7 +2607,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2607
2607
|
}
|
|
2608
2608
|
},
|
|
2609
2609
|
setup(e) {
|
|
2610
|
-
const t = e, n = De(), { i18n: { t: i } } =
|
|
2610
|
+
const t = e, n = De(), { i18n: { t: i } } = W.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = F(() => {
|
|
2611
2611
|
if (!t.record)
|
|
2612
2612
|
return t.record;
|
|
2613
2613
|
let s = t.record;
|
|
@@ -2623,16 +2623,16 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2623
2623
|
"data-testid": `config-card-details-${c}-props`
|
|
2624
2624
|
}, [
|
|
2625
2625
|
c !== "basic" ? (m(), S("div", Do, L(c === "advanced" ? $(i)("baseConfigCard.sections.advanced") : c === "plugin" ? $(i)("baseConfigCard.sections.plugin") : $(i)("baseConfigCard.sections.policy")), 1)) : N("", !0),
|
|
2626
|
-
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) =>
|
|
2626
|
+
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => j(s.$slots, `config-card-item-${d.key}`, {
|
|
2627
2627
|
key: d.key,
|
|
2628
2628
|
item: d
|
|
2629
2629
|
}, () => [
|
|
2630
|
-
M(
|
|
2631
|
-
label:
|
|
2632
|
-
|
|
2630
|
+
M(tn, { item: d }, Se({
|
|
2631
|
+
label: _(() => [
|
|
2632
|
+
j(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
|
|
2633
2633
|
]),
|
|
2634
|
-
[d.key]:
|
|
2635
|
-
|
|
2634
|
+
[d.key]: _(({ rowValue: u }) => [
|
|
2635
|
+
j(s.$slots, d.key, {
|
|
2636
2636
|
row: d,
|
|
2637
2637
|
rowValue: u
|
|
2638
2638
|
}, void 0, !0)
|
|
@@ -2641,8 +2641,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2641
2641
|
}, [
|
|
2642
2642
|
r(d) ? {
|
|
2643
2643
|
name: "label-tooltip",
|
|
2644
|
-
fn:
|
|
2645
|
-
|
|
2644
|
+
fn: _(() => [
|
|
2645
|
+
j(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
|
|
2646
2646
|
]),
|
|
2647
2647
|
key: "0"
|
|
2648
2648
|
} : void 0
|
|
@@ -2650,18 +2650,18 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2650
2650
|
], !0)), 128))
|
|
2651
2651
|
], 10, jo))), 128))
|
|
2652
2652
|
])) : N("", !0),
|
|
2653
|
-
e.format === "json" && o.value ? (m(),
|
|
2653
|
+
e.format === "json" && o.value ? (m(), D(nn, {
|
|
2654
2654
|
key: 1,
|
|
2655
2655
|
config: t.config,
|
|
2656
2656
|
"entity-record": o.value,
|
|
2657
2657
|
"fetcher-url": a.value,
|
|
2658
2658
|
"request-method": "get"
|
|
2659
2659
|
}, null, 8, ["config", "entity-record", "fetcher-url"])) : N("", !0),
|
|
2660
|
-
e.format === "yaml" && o.value ? (m(),
|
|
2660
|
+
e.format === "yaml" && o.value ? (m(), D(Vn, {
|
|
2661
2661
|
key: 2,
|
|
2662
2662
|
"entity-record": o.value
|
|
2663
2663
|
}, null, 8, ["entity-record"])) : N("", !0),
|
|
2664
|
-
e.format === "terraform" && o.value ? (m(),
|
|
2664
|
+
e.format === "terraform" && o.value ? (m(), D(Yn, {
|
|
2665
2665
|
key: 3,
|
|
2666
2666
|
"entity-record": o.value,
|
|
2667
2667
|
"entity-type": t.entityType,
|
|
@@ -2795,9 +2795,9 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2795
2795
|
emits: ["loading", "fetch:success", "fetch:error", "configFormatChange"],
|
|
2796
2796
|
setup(e, { emit: t }) {
|
|
2797
2797
|
var O;
|
|
2798
|
-
const n = t, i = e, { i18n: { t: r } } =
|
|
2799
|
-
|
|
2800
|
-
const { axiosInstance: s } =
|
|
2798
|
+
const n = t, i = e, { i18n: { t: r } } = W.useI18n(), { getMessageFromError: o } = W.useErrors(), { convertKeyToTitle: a } = W.useStringHelpers();
|
|
2799
|
+
W.useSubSchema(i.pluginConfigKey);
|
|
2800
|
+
const { axiosInstance: s } = W.useAxios((O = i.config) == null ? void 0 : O.axiosRequestConfig), l = [
|
|
2801
2801
|
{
|
|
2802
2802
|
label: r("baseConfigCard.general.structuredFormat"),
|
|
2803
2803
|
value: "structured",
|
|
@@ -2871,24 +2871,24 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2871
2871
|
section: ae.Basic
|
|
2872
2872
|
}
|
|
2873
2873
|
}, h = K(!1), x = K(!1), y = K(""), k = K({}), C = F(() => {
|
|
2874
|
-
var b, H,
|
|
2874
|
+
var b, H, Y;
|
|
2875
2875
|
if (!k.value)
|
|
2876
2876
|
return [];
|
|
2877
2877
|
const f = [], v = Object.keys(k.value).length;
|
|
2878
2878
|
for (const I in k.value) {
|
|
2879
2879
|
if (I === "__ui_data") continue;
|
|
2880
|
-
const B = (H = (b = i.configSchema) == null ? void 0 : b[I]) == null ? void 0 : H.order,
|
|
2880
|
+
const B = (H = (b = i.configSchema) == null ? void 0 : b[I]) == null ? void 0 : H.order, G = (Y = g[I]) == null ? void 0 : Y.order;
|
|
2881
2881
|
let U = v;
|
|
2882
|
-
(
|
|
2882
|
+
(G || G === 0) && (U = G === -1 ? v + 1 : G), B && (U = B === -1 ? v + 1 : B), f.push([I, U]);
|
|
2883
2883
|
}
|
|
2884
2884
|
return f.sort(function(I, B) {
|
|
2885
2885
|
return I[1] - B[1];
|
|
2886
2886
|
}), f.map((I) => {
|
|
2887
2887
|
var dt, ft;
|
|
2888
|
-
const B = I[0],
|
|
2888
|
+
const B = I[0], G = (dt = k.value) == null ? void 0 : dt[B], U = ((ft = i.configSchema) == null ? void 0 : ft[B]) || {}, Q = g[B];
|
|
2889
2889
|
return {
|
|
2890
2890
|
key: B,
|
|
2891
|
-
value:
|
|
2891
|
+
value: G,
|
|
2892
2892
|
hidden: U.hidden || !1,
|
|
2893
2893
|
type: U.type ?? ((Q == null ? void 0 : Q.type) || V.Text),
|
|
2894
2894
|
label: U.label ?? ((Q == null ? void 0 : Q.label) || a(B)),
|
|
@@ -2897,23 +2897,23 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2897
2897
|
};
|
|
2898
2898
|
}).filter((I) => !I.hidden && I.key !== i.pluginConfigKey);
|
|
2899
2899
|
}), T = F(() => {
|
|
2900
|
-
var H,
|
|
2900
|
+
var H, Y;
|
|
2901
2901
|
if (!k.value || !i.pluginConfigKey)
|
|
2902
2902
|
return [];
|
|
2903
2903
|
const f = k.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, b = [];
|
|
2904
2904
|
for (const I in f) {
|
|
2905
|
-
const B = (
|
|
2906
|
-
let U =
|
|
2905
|
+
const B = (Y = (H = i.pluginConfigSchema) == null ? void 0 : H[I]) == null ? void 0 : Y.order, G = f[I];
|
|
2906
|
+
let U = G != null && G !== "" ? v - 1 : v;
|
|
2907
2907
|
B && (U = B === -1 ? v + 1 : B), b.push([I, U]);
|
|
2908
2908
|
}
|
|
2909
2909
|
return b.sort(function(I, B) {
|
|
2910
2910
|
return I[1] - B[1];
|
|
2911
2911
|
}), b.map((I) => {
|
|
2912
2912
|
var Q;
|
|
2913
|
-
const B = I[0],
|
|
2913
|
+
const B = I[0], G = f[B], U = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[B]) || {};
|
|
2914
2914
|
return {
|
|
2915
2915
|
key: B,
|
|
2916
|
-
value:
|
|
2916
|
+
value: G,
|
|
2917
2917
|
hidden: U.hidden || !1,
|
|
2918
2918
|
type: U.type ?? V.Text,
|
|
2919
2919
|
label: U.label ?? a(B),
|
|
@@ -2921,24 +2921,24 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2921
2921
|
section: ae.Plugin
|
|
2922
2922
|
};
|
|
2923
2923
|
}).filter((I) => !I.hidden);
|
|
2924
|
-
}),
|
|
2925
|
-
var H,
|
|
2924
|
+
}), J = F(() => {
|
|
2925
|
+
var H, Y;
|
|
2926
2926
|
if (!k.value || !i.policyConfigKey)
|
|
2927
2927
|
return [];
|
|
2928
2928
|
const f = k.value[i.policyConfigKey] || {}, v = Object.keys(f).length, b = [];
|
|
2929
2929
|
for (const I in f) {
|
|
2930
|
-
const B = (
|
|
2931
|
-
let U =
|
|
2930
|
+
const B = (Y = (H = i.policyConfigSchema) == null ? void 0 : H[I]) == null ? void 0 : Y.order, G = f[I];
|
|
2931
|
+
let U = G != null && G !== "" ? v - 1 : v;
|
|
2932
2932
|
B && (U = B === -1 ? v + 1 : B), b.push([I, U]);
|
|
2933
2933
|
}
|
|
2934
2934
|
return b.sort(function(I, B) {
|
|
2935
2935
|
return I[1] - B[1];
|
|
2936
2936
|
}), b.map((I) => {
|
|
2937
2937
|
var Q;
|
|
2938
|
-
const B = I[0],
|
|
2938
|
+
const B = I[0], G = f[B], U = ((Q = i.policyConfigSchema) == null ? void 0 : Q[B]) || {};
|
|
2939
2939
|
return {
|
|
2940
2940
|
key: B,
|
|
2941
|
-
value:
|
|
2941
|
+
value: G,
|
|
2942
2942
|
hidden: U.hidden || !1,
|
|
2943
2943
|
type: U.type ?? V.Text,
|
|
2944
2944
|
label: U.label ?? a(B),
|
|
@@ -2947,14 +2947,14 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2947
2947
|
};
|
|
2948
2948
|
}).filter((I) => !I.hidden);
|
|
2949
2949
|
}), X = F(() => {
|
|
2950
|
-
var f, v, b, H,
|
|
2950
|
+
var f, v, b, H, Y, I;
|
|
2951
2951
|
return {
|
|
2952
2952
|
basic: (f = C.value) == null ? void 0 : f.filter((B) => B.section === ae.Basic),
|
|
2953
2953
|
advanced: (v = C.value) == null ? void 0 : v.filter((B) => B.section === ae.Advanced),
|
|
2954
2954
|
plugin: (H = T.value) == null ? void 0 : H.concat((b = C.value) == null ? void 0 : b.filter((B) => B.section === ae.Plugin)),
|
|
2955
|
-
policy: (I =
|
|
2955
|
+
policy: (I = J.value) == null ? void 0 : I.concat((Y = C.value) == null ? void 0 : Y.filter((B) => B.section === ae.Policy))
|
|
2956
2956
|
};
|
|
2957
|
-
}),
|
|
2957
|
+
}), w = F(() => {
|
|
2958
2958
|
const f = [];
|
|
2959
2959
|
return X.value.basic.length && f.push("basic"), X.value.advanced.length && f.push("advanced"), X.value.plugin.length && f.push("plugin"), X.value.policy.length && f.push("policy"), f;
|
|
2960
2960
|
}), A = F(() => {
|
|
@@ -2984,19 +2984,19 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
2984
2984
|
h.value = !1;
|
|
2985
2985
|
}
|
|
2986
2986
|
}), (f, v) => {
|
|
2987
|
-
const b = P("KLabel"), H = P("KSelect"),
|
|
2988
|
-
return m(),
|
|
2987
|
+
const b = P("KLabel"), H = P("KSelect"), Y = P("KButton"), I = P("KSkeleton"), B = P("KEmptyState"), G = P("KCard");
|
|
2988
|
+
return m(), D(G, {
|
|
2989
2989
|
class: "kong-ui-entity-base-config-card",
|
|
2990
2990
|
"title-tag": e.titleTag
|
|
2991
2991
|
}, Se({
|
|
2992
|
-
actions:
|
|
2992
|
+
actions: _(() => [
|
|
2993
2993
|
R("div", Ho, [
|
|
2994
|
-
|
|
2994
|
+
j(f.$slots, "actions", {}, void 0, !0),
|
|
2995
2995
|
M(b, {
|
|
2996
2996
|
class: "config-format-select-label",
|
|
2997
2997
|
"data-testid": "config-format-select-label"
|
|
2998
2998
|
}, {
|
|
2999
|
-
default:
|
|
2999
|
+
default: _(() => [
|
|
3000
3000
|
q(L(e.label), 1)
|
|
3001
3001
|
]),
|
|
3002
3002
|
_: 1
|
|
@@ -3008,37 +3008,37 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3008
3008
|
items: l,
|
|
3009
3009
|
onChange: u
|
|
3010
3010
|
}, null, 8, ["modelValue"]),
|
|
3011
|
-
e.configCardDoc ? (m(),
|
|
3011
|
+
e.configCardDoc ? (m(), D(Y, {
|
|
3012
3012
|
key: 0,
|
|
3013
3013
|
appearance: "tertiary",
|
|
3014
3014
|
class: "book-icon",
|
|
3015
3015
|
"data-testid": "book-icon"
|
|
3016
3016
|
}, {
|
|
3017
|
-
default:
|
|
3017
|
+
default: _(() => [
|
|
3018
3018
|
R("a", {
|
|
3019
3019
|
href: e.configCardDoc,
|
|
3020
3020
|
rel: "noopener",
|
|
3021
3021
|
target: "_blank"
|
|
3022
3022
|
}, [
|
|
3023
|
-
M($(
|
|
3023
|
+
M($(Wt), { size: $(er) }, null, 8, ["size"])
|
|
3024
3024
|
], 8, Vo)
|
|
3025
3025
|
]),
|
|
3026
3026
|
_: 1
|
|
3027
3027
|
})) : N("", !0)
|
|
3028
3028
|
])
|
|
3029
3029
|
]),
|
|
3030
|
-
default:
|
|
3031
|
-
h.value ? (m(),
|
|
3030
|
+
default: _(() => [
|
|
3031
|
+
h.value ? (m(), D(I, {
|
|
3032
3032
|
key: 0,
|
|
3033
3033
|
"data-testid": "config-card-loader",
|
|
3034
3034
|
"table-columns": 2,
|
|
3035
3035
|
type: "table"
|
|
3036
|
-
})) : x.value ? (m(),
|
|
3036
|
+
})) : x.value ? (m(), D(B, {
|
|
3037
3037
|
key: 1,
|
|
3038
3038
|
"data-testid": "config-card-fetch-error",
|
|
3039
3039
|
"icon-variant": "error"
|
|
3040
3040
|
}, {
|
|
3041
|
-
default:
|
|
3041
|
+
default: _(() => [
|
|
3042
3042
|
R("h3", null, L(y.value), 1)
|
|
3043
3043
|
]),
|
|
3044
3044
|
_: 1
|
|
@@ -3050,15 +3050,15 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3050
3050
|
"entity-type": e.entityType,
|
|
3051
3051
|
"fetcher-url": A.value,
|
|
3052
3052
|
format: d.value,
|
|
3053
|
-
"prop-list-types":
|
|
3053
|
+
"prop-list-types": w.value,
|
|
3054
3054
|
"property-collections": X.value,
|
|
3055
3055
|
record: k.value,
|
|
3056
3056
|
"sub-entity-type": e.subEntityType
|
|
3057
3057
|
}, Se({ _: 2 }, [
|
|
3058
3058
|
ce(Object.keys(f.$slots), (U) => ({
|
|
3059
3059
|
name: U,
|
|
3060
|
-
fn:
|
|
3061
|
-
|
|
3060
|
+
fn: _((Q) => [
|
|
3061
|
+
j(f.$slots, U, Vt({ record: k.value }, Q), void 0, !0)
|
|
3062
3062
|
])
|
|
3063
3063
|
}))
|
|
3064
3064
|
]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
@@ -3068,9 +3068,9 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3068
3068
|
}, [
|
|
3069
3069
|
e.hideTitle ? void 0 : {
|
|
3070
3070
|
name: "title",
|
|
3071
|
-
fn:
|
|
3071
|
+
fn: _(() => [
|
|
3072
3072
|
R("span", qo, [
|
|
3073
|
-
|
|
3073
|
+
j(f.$slots, "title", {}, () => [
|
|
3074
3074
|
q(L($(r)("baseConfigCard.title")), 1)
|
|
3075
3075
|
], !0)
|
|
3076
3076
|
])
|
|
@@ -3080,7 +3080,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3080
3080
|
]), 1032, ["title-tag"]);
|
|
3081
3081
|
};
|
|
3082
3082
|
}
|
|
3083
|
-
}), ps = /* @__PURE__ */ se(Wo, [["__scopeId", "data-v-f2b42324"]]),
|
|
3083
|
+
}), ps = /* @__PURE__ */ se(Wo, [["__scopeId", "data-v-f2b42324"]]), Jo = ["novalidate"], Go = /* @__PURE__ */ z({
|
|
3084
3084
|
__name: "EntityBaseForm",
|
|
3085
3085
|
props: {
|
|
3086
3086
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3204,10 +3204,10 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3204
3204
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3205
3205
|
setup(e, { expose: t, emit: n }) {
|
|
3206
3206
|
var X;
|
|
3207
|
-
const i = n, r = e, o = oi(), { i18n: { t: a } } =
|
|
3207
|
+
const i = n, r = e, o = oi(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: s } = W.useErrors(), { axiosInstance: l } = W.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = K(!1), d = F(() => !!r.editId), u = K(!1), p = K(""), g = F(() => r.canSubmit === !1 || r.isReadonly), h = K(!1), x = F(() => {
|
|
3208
3208
|
var A, O;
|
|
3209
|
-
let
|
|
3210
|
-
return r.config.app === "konnect" ?
|
|
3209
|
+
let w = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3210
|
+
return r.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), r.editId ? (w = w.replace(/{id}/gi, r.editId), w) : (w = w.replace(/\/{id}/gi, ""), w);
|
|
3211
3211
|
}), y = () => {
|
|
3212
3212
|
h.value = !h.value;
|
|
3213
3213
|
}, k = () => {
|
|
@@ -3216,7 +3216,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3216
3216
|
i("cancel");
|
|
3217
3217
|
}, T = () => {
|
|
3218
3218
|
g.value || i("submit");
|
|
3219
|
-
},
|
|
3219
|
+
}, J = K([
|
|
3220
3220
|
{
|
|
3221
3221
|
title: a("baseForm.configuration.json"),
|
|
3222
3222
|
hash: "#json"
|
|
@@ -3226,20 +3226,20 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3226
3226
|
hash: "#yaml"
|
|
3227
3227
|
}
|
|
3228
3228
|
]);
|
|
3229
|
-
return r.config.app === "konnect" && r.entityType !== it.Other &&
|
|
3229
|
+
return r.config.app === "konnect" && r.entityType !== it.Other && J.value.splice(1, 0, {
|
|
3230
3230
|
title: a("baseForm.configuration.terraform"),
|
|
3231
3231
|
hash: "#terraform"
|
|
3232
|
-
}), be(() => c.value, (
|
|
3233
|
-
i("loading",
|
|
3232
|
+
}), be(() => c.value, (w) => {
|
|
3233
|
+
i("loading", w);
|
|
3234
3234
|
}, { immediate: !0 }), nt(async () => {
|
|
3235
3235
|
if (r.editId)
|
|
3236
3236
|
try {
|
|
3237
3237
|
u.value = !1, c.value = !0;
|
|
3238
|
-
const { data:
|
|
3239
|
-
i("fetch:success",
|
|
3240
|
-
} catch (
|
|
3241
|
-
const A = s(
|
|
3242
|
-
p.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, u.value = !0, i("fetch:error",
|
|
3238
|
+
const { data: w } = await l.get(x.value);
|
|
3239
|
+
i("fetch:success", w);
|
|
3240
|
+
} catch (w) {
|
|
3241
|
+
const A = s(w);
|
|
3242
|
+
p.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, u.value = !0, i("fetch:error", w);
|
|
3243
3243
|
} finally {
|
|
3244
3244
|
c.value = !1;
|
|
3245
3245
|
}
|
|
@@ -3247,21 +3247,21 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3247
3247
|
viewConfig: y,
|
|
3248
3248
|
formCancel: C,
|
|
3249
3249
|
formSubmit: T
|
|
3250
|
-
}), (
|
|
3251
|
-
const O = P("KSkeleton"), f = P("KEmptyState"), v = P("KAlert"), b = P("KButton"), H = P("KTabs"),
|
|
3252
|
-
return m(),
|
|
3253
|
-
default:
|
|
3254
|
-
c.value ? (m(),
|
|
3250
|
+
}), (w, A) => {
|
|
3251
|
+
const O = P("KSkeleton"), f = P("KEmptyState"), v = P("KAlert"), b = P("KButton"), H = P("KTabs"), Y = P("KSlideout");
|
|
3252
|
+
return m(), D(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3253
|
+
default: _(() => [
|
|
3254
|
+
c.value ? (m(), D(O, {
|
|
3255
3255
|
key: 0,
|
|
3256
3256
|
type: "form"
|
|
3257
|
-
})) : u.value ? (m(),
|
|
3257
|
+
})) : u.value ? (m(), D(f, {
|
|
3258
3258
|
key: 1,
|
|
3259
3259
|
"action-button-text": $(a)("baseForm.actions.back"),
|
|
3260
3260
|
"data-testid": "form-fetch-error",
|
|
3261
3261
|
"icon-variant": "error",
|
|
3262
3262
|
onClickAction: k
|
|
3263
3263
|
}, {
|
|
3264
|
-
default:
|
|
3264
|
+
default: _(() => [
|
|
3265
3265
|
R("h3", null, L(p.value), 1)
|
|
3266
3266
|
]),
|
|
3267
3267
|
_: 1
|
|
@@ -3272,14 +3272,14 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3272
3272
|
onReset: Le(C, ["prevent"]),
|
|
3273
3273
|
onSubmit: Le(T, ["prevent"])
|
|
3274
3274
|
}, [
|
|
3275
|
-
|
|
3276
|
-
e.errorMessage ? (m(),
|
|
3275
|
+
j(w.$slots, "default", {}, void 0, !0),
|
|
3276
|
+
e.errorMessage ? (m(), D(v, {
|
|
3277
3277
|
key: 0,
|
|
3278
3278
|
appearance: "danger",
|
|
3279
3279
|
"data-testid": "form-error",
|
|
3280
3280
|
message: e.errorMessage
|
|
3281
3281
|
}, null, 8, ["message"])) : N("", !0),
|
|
3282
|
-
e.hideActions ? N("", !0) : (m(),
|
|
3282
|
+
e.hideActions ? N("", !0) : (m(), D(Yt, {
|
|
3283
3283
|
key: 1,
|
|
3284
3284
|
disabled: !e.actionTeleportTarget,
|
|
3285
3285
|
to: e.actionTeleportTarget
|
|
@@ -3288,13 +3288,13 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3288
3288
|
class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3289
3289
|
"data-testid": "form-actions"
|
|
3290
3290
|
}, [
|
|
3291
|
-
|
|
3291
|
+
j(w.$slots, "form-actions", {}, () => [
|
|
3292
3292
|
M(b, {
|
|
3293
3293
|
appearance: "tertiary",
|
|
3294
3294
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
3295
3295
|
onClick: A[0] || (A[0] = (I) => y())
|
|
3296
3296
|
}, {
|
|
3297
|
-
default:
|
|
3297
|
+
default: _(() => [
|
|
3298
3298
|
q(L($(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3299
3299
|
]),
|
|
3300
3300
|
_: 1
|
|
@@ -3306,7 +3306,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3306
3306
|
type: "reset",
|
|
3307
3307
|
onClick: A[1] || (A[1] = (I) => !!e.actionTeleportTarget && C())
|
|
3308
3308
|
}, {
|
|
3309
|
-
default:
|
|
3309
|
+
default: _(() => [
|
|
3310
3310
|
q(L(e.cancelButtonText ?? $(a)("baseForm.actions.cancel")), 1)
|
|
3311
3311
|
]),
|
|
3312
3312
|
_: 1
|
|
@@ -3318,7 +3318,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3318
3318
|
type: "submit",
|
|
3319
3319
|
onClick: A[2] || (A[2] = (I) => !!e.actionTeleportTarget && T())
|
|
3320
3320
|
}, {
|
|
3321
|
-
default:
|
|
3321
|
+
default: _(() => [
|
|
3322
3322
|
q(L(e.saveButtonText ?? $(a)("baseForm.actions.save")), 1)
|
|
3323
3323
|
]),
|
|
3324
3324
|
_: 1
|
|
@@ -3326,8 +3326,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3326
3326
|
], !0)
|
|
3327
3327
|
], 2)
|
|
3328
3328
|
], 8, ["disabled", "to"]))
|
|
3329
|
-
], 40,
|
|
3330
|
-
M(
|
|
3329
|
+
], 40, Jo)),
|
|
3330
|
+
M(Y, {
|
|
3331
3331
|
"close-on-blur": !1,
|
|
3332
3332
|
"data-testid": "form-view-configuration-slideout",
|
|
3333
3333
|
"has-overlay": !1,
|
|
@@ -3336,28 +3336,28 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3336
3336
|
visible: h.value,
|
|
3337
3337
|
onClose: A[4] || (A[4] = (I) => y())
|
|
3338
3338
|
}, {
|
|
3339
|
-
default:
|
|
3339
|
+
default: _(() => [
|
|
3340
3340
|
R("div", null, L($(a)("baseForm.configuration.message")), 1),
|
|
3341
3341
|
M(H, {
|
|
3342
3342
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3343
|
-
tabs:
|
|
3343
|
+
tabs: J.value,
|
|
3344
3344
|
onChange: A[3] || (A[3] = (I) => i("codeBlockTabChange", I.replace("#", "")))
|
|
3345
3345
|
}, {
|
|
3346
|
-
json:
|
|
3347
|
-
M(
|
|
3346
|
+
json: _(() => [
|
|
3347
|
+
M(nn, {
|
|
3348
3348
|
config: e.config,
|
|
3349
3349
|
"entity-record": r.formFields,
|
|
3350
3350
|
"fetcher-url": x.value,
|
|
3351
3351
|
"request-method": r.editId ? "put" : "post"
|
|
3352
3352
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3353
3353
|
]),
|
|
3354
|
-
yaml:
|
|
3355
|
-
M(
|
|
3354
|
+
yaml: _(() => [
|
|
3355
|
+
M(Vn, {
|
|
3356
3356
|
"entity-record": r.formFields
|
|
3357
3357
|
}, null, 8, ["entity-record"])
|
|
3358
3358
|
]),
|
|
3359
|
-
terraform:
|
|
3360
|
-
M(
|
|
3359
|
+
terraform: _(() => [
|
|
3360
|
+
M(Yn, {
|
|
3361
3361
|
"entity-record": r.formFields,
|
|
3362
3362
|
"entity-type": e.entityType,
|
|
3363
3363
|
"sub-entity-type": e.subEntityType
|
|
@@ -3373,7 +3373,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3373
3373
|
});
|
|
3374
3374
|
};
|
|
3375
3375
|
}
|
|
3376
|
-
}), ms = /* @__PURE__ */ se(
|
|
3376
|
+
}), ms = /* @__PURE__ */ se(Go, [["__scopeId", "data-v-10f3d6b0"]]), zo = ["data-truncate"], Qo = /* @__PURE__ */ z({
|
|
3377
3377
|
__name: "EntityBaseTableCell",
|
|
3378
3378
|
props: {
|
|
3379
3379
|
keyName: {
|
|
@@ -3408,8 +3408,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3408
3408
|
var k, C, T;
|
|
3409
3409
|
let y = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
|
|
3410
3410
|
if (n.value && "getComputedStyle" in window) {
|
|
3411
|
-
const
|
|
3412
|
-
y -= (parseFloat(
|
|
3411
|
+
const J = window.getComputedStyle(n.value);
|
|
3412
|
+
y -= (parseFloat(J.paddingLeft) || 0) + (parseFloat(J.paddingRight) || 0);
|
|
3413
3413
|
}
|
|
3414
3414
|
d.value = ((C = i.value) == null ? void 0 : C.getBoundingClientRect().width) || 0, u.value = y, p.value = ((T = c.value) == null ? void 0 : T.innerText) || "";
|
|
3415
3415
|
}, c = K({}), d = K(0), u = K(0), p = K(""), g = F(() => [i.value, n.value]), h = be(
|
|
@@ -3429,7 +3429,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3429
3429
|
), x = F(() => o.value ? d.value > u.value : !1);
|
|
3430
3430
|
return tt(() => {
|
|
3431
3431
|
l();
|
|
3432
|
-
}),
|
|
3432
|
+
}), Gn(() => {
|
|
3433
3433
|
h();
|
|
3434
3434
|
}), (y, k) => {
|
|
3435
3435
|
const C = P("KTooltip");
|
|
@@ -3447,12 +3447,12 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3447
3447
|
placement: "bottom-start",
|
|
3448
3448
|
text: x.value ? p.value : ""
|
|
3449
3449
|
}, {
|
|
3450
|
-
default:
|
|
3451
|
-
|
|
3450
|
+
default: _(() => [
|
|
3451
|
+
j(y.$slots, "default", {}, void 0, !0)
|
|
3452
3452
|
]),
|
|
3453
3453
|
_: 3
|
|
3454
3454
|
}, 8, ["text"])
|
|
3455
|
-
], 8, zo)) :
|
|
3455
|
+
], 8, zo)) : j(y.$slots, "default", { key: 1 }, void 0, !0)
|
|
3456
3456
|
], 512);
|
|
3457
3457
|
};
|
|
3458
3458
|
}
|
|
@@ -3607,7 +3607,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3607
3607
|
},
|
|
3608
3608
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3609
3609
|
setup(e, { emit: t }) {
|
|
3610
|
-
const n = e, i = t, { i18n: { t: r } } =
|
|
3610
|
+
const n = e, i = t, { i18n: { t: r } } = W.useI18n(), o = F(() => {
|
|
3611
3611
|
var f, v;
|
|
3612
3612
|
return typeof n.errorMessage == "string" ? {
|
|
3613
3613
|
hasError: !!n.errorMessage,
|
|
@@ -3659,8 +3659,8 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3659
3659
|
i("click:row", v);
|
|
3660
3660
|
}), y = (f) => {
|
|
3661
3661
|
i("sort", f);
|
|
3662
|
-
}, { hideTableToolbar: k, handleStateChange: C } =
|
|
3663
|
-
const f =
|
|
3662
|
+
}, { hideTableToolbar: k, handleStateChange: C } = W.useTableState(() => n.query), { setTablePreferences: T, getTablePreferences: J } = pi(), X = K(J(a.value, n.defaultTablePreferences)), w = F(() => {
|
|
3663
|
+
const f = J(a.value);
|
|
3664
3664
|
return {
|
|
3665
3665
|
...n.initialFetcherParams,
|
|
3666
3666
|
...f
|
|
@@ -3676,12 +3676,12 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3676
3676
|
}));
|
|
3677
3677
|
return (f, v) => {
|
|
3678
3678
|
const b = P("KTableData"), H = P("KCard");
|
|
3679
|
-
return m(),
|
|
3679
|
+
return m(), D(H, {
|
|
3680
3680
|
class: "kong-ui-entity-base-table",
|
|
3681
3681
|
title: e.title,
|
|
3682
3682
|
"title-tag": e.titleTag
|
|
3683
3683
|
}, {
|
|
3684
|
-
default:
|
|
3684
|
+
default: _(() => [
|
|
3685
3685
|
M(b, {
|
|
3686
3686
|
ref_key: "tableRefs",
|
|
3687
3687
|
ref: c,
|
|
@@ -3702,7 +3702,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3702
3702
|
"hide-pagination": e.hidePagination,
|
|
3703
3703
|
"hide-pagination-when-optional": e.hidePaginationWhenOptional,
|
|
3704
3704
|
"hide-toolbar": e.hideToolbar ?? $(k),
|
|
3705
|
-
"initial-fetcher-params":
|
|
3705
|
+
"initial-fetcher-params": w.value,
|
|
3706
3706
|
loading: e.isLoading,
|
|
3707
3707
|
"pagination-attributes": O.value,
|
|
3708
3708
|
"resize-columns": "",
|
|
@@ -3714,68 +3714,75 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3714
3714
|
"table-preferences": X.value,
|
|
3715
3715
|
onEmptyStateActionClick: g,
|
|
3716
3716
|
"onRow:click": x.value,
|
|
3717
|
-
onSort: v[0] || (v[0] = (
|
|
3717
|
+
onSort: v[0] || (v[0] = (Y) => y(Y)),
|
|
3718
3718
|
onState: p,
|
|
3719
3719
|
"onUpdate:tablePreferences": A
|
|
3720
3720
|
}, Se({
|
|
3721
|
-
toolbar:
|
|
3721
|
+
toolbar: _(() => [
|
|
3722
3722
|
R("div", Xo, [
|
|
3723
|
-
|
|
3723
|
+
j(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3724
3724
|
f.$slots["toolbar-button"] ? (m(), S("div", el, [
|
|
3725
|
-
|
|
3725
|
+
j(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3726
3726
|
])) : N("", !0)
|
|
3727
3727
|
])
|
|
3728
3728
|
]),
|
|
3729
|
-
"action-items":
|
|
3730
|
-
|
|
3729
|
+
"action-items": _(({ row: Y }) => [
|
|
3730
|
+
j(f.$slots, "actions", { row: Y }, void 0, !0)
|
|
3731
3731
|
]),
|
|
3732
3732
|
_: 2
|
|
3733
3733
|
}, [
|
|
3734
3734
|
f.$slots["empty-state"] ? {
|
|
3735
3735
|
name: "empty-state",
|
|
3736
|
-
fn:
|
|
3737
|
-
|
|
3736
|
+
fn: _(() => [
|
|
3737
|
+
j(f.$slots, "empty-state", {}, void 0, !0)
|
|
3738
3738
|
]),
|
|
3739
3739
|
key: "0"
|
|
3740
3740
|
} : void 0,
|
|
3741
|
-
ce(e.tableHeaders, (
|
|
3741
|
+
ce(e.tableHeaders, (Y, I) => ({
|
|
3742
3742
|
name: I,
|
|
3743
|
-
fn:
|
|
3743
|
+
fn: _(({ row: B, rowValue: G }) => [
|
|
3744
3744
|
M(Zo, {
|
|
3745
3745
|
"key-name": String(I),
|
|
3746
3746
|
"row-el": d(B),
|
|
3747
|
-
tooltip:
|
|
3747
|
+
tooltip: Y.tooltip
|
|
3748
3748
|
}, {
|
|
3749
|
-
default:
|
|
3750
|
-
|
|
3749
|
+
default: _(() => [
|
|
3750
|
+
j(f.$slots, I, {
|
|
3751
3751
|
row: B,
|
|
3752
3752
|
rowKey: e.rowKey,
|
|
3753
|
-
rowValue:
|
|
3753
|
+
rowValue: G
|
|
3754
3754
|
}, () => [
|
|
3755
|
-
q(L(
|
|
3755
|
+
q(L(G), 1)
|
|
3756
3756
|
], !0)
|
|
3757
3757
|
]),
|
|
3758
3758
|
_: 2
|
|
3759
3759
|
}, 1032, ["key-name", "row-el", "tooltip"])
|
|
3760
3760
|
])
|
|
3761
3761
|
})),
|
|
3762
|
+
f.$slots["bulk-actions"] ? {
|
|
3763
|
+
name: "bulk-actions",
|
|
3764
|
+
fn: _((Y) => [
|
|
3765
|
+
j(f.$slots, "bulk-actions", qt(Ht(Y)), void 0, !0)
|
|
3766
|
+
]),
|
|
3767
|
+
key: "1"
|
|
3768
|
+
} : void 0,
|
|
3762
3769
|
e.query ? void 0 : {
|
|
3763
3770
|
name: "empty-state-action-icon",
|
|
3764
|
-
fn:
|
|
3765
|
-
M($(
|
|
3771
|
+
fn: _(() => [
|
|
3772
|
+
M($(Jt))
|
|
3766
3773
|
]),
|
|
3767
|
-
key: "
|
|
3774
|
+
key: "2"
|
|
3768
3775
|
}
|
|
3769
3776
|
]), 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"]),
|
|
3770
3777
|
f.$slots["outside-actions"] && $(k) ? (m(), S("div", tl, [
|
|
3771
|
-
|
|
3778
|
+
j(f.$slots, "outside-actions", {}, void 0, !0)
|
|
3772
3779
|
])) : N("", !0)
|
|
3773
3780
|
]),
|
|
3774
3781
|
_: 3
|
|
3775
3782
|
}, 8, ["title", "title-tag"]);
|
|
3776
3783
|
};
|
|
3777
3784
|
}
|
|
3778
|
-
}), hs = /* @__PURE__ */ se(nl, [["__scopeId", "data-v-
|
|
3785
|
+
}), hs = /* @__PURE__ */ se(nl, [["__scopeId", "data-v-ece1f103"]]), il = {
|
|
3779
3786
|
key: 0,
|
|
3780
3787
|
class: "kong-ui-entity-delete-error"
|
|
3781
3788
|
}, rl = {
|
|
@@ -3820,14 +3827,14 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3820
3827
|
},
|
|
3821
3828
|
emits: ["cancel", "proceed"],
|
|
3822
3829
|
setup(e, { emit: t }) {
|
|
3823
|
-
const { i18nT: n } =
|
|
3830
|
+
const { i18nT: n } = W.useI18n(), i = e, r = t, o = F(() => i.needConfirm ? i.entityName : ""), a = () => {
|
|
3824
3831
|
r("cancel");
|
|
3825
3832
|
}, s = () => {
|
|
3826
3833
|
r("proceed");
|
|
3827
3834
|
};
|
|
3828
3835
|
return (l, c) => {
|
|
3829
3836
|
const d = P("KAlert"), u = P("KPrompt");
|
|
3830
|
-
return m(),
|
|
3837
|
+
return m(), D(u, {
|
|
3831
3838
|
"action-button-appearance": "danger",
|
|
3832
3839
|
"action-button-disabled": e.actionPending,
|
|
3833
3840
|
"action-button-text": "Yes, delete",
|
|
@@ -3838,10 +3845,10 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3838
3845
|
onCancel: a,
|
|
3839
3846
|
onProceed: s
|
|
3840
3847
|
}, {
|
|
3841
|
-
default:
|
|
3848
|
+
default: _(() => [
|
|
3842
3849
|
e.error ? (m(), S("div", il, [
|
|
3843
3850
|
M(d, { appearance: "danger" }, {
|
|
3844
|
-
default:
|
|
3851
|
+
default: _(() => [
|
|
3845
3852
|
q(L(e.error), 1)
|
|
3846
3853
|
]),
|
|
3847
3854
|
_: 1
|
|
@@ -3852,21 +3859,21 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3852
3859
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3853
3860
|
tag: "p"
|
|
3854
3861
|
}, Se({
|
|
3855
|
-
entityType:
|
|
3862
|
+
entityType: _(() => [
|
|
3856
3863
|
q(L(i.entityType), 1)
|
|
3857
3864
|
]),
|
|
3858
3865
|
_: 2
|
|
3859
3866
|
}, [
|
|
3860
3867
|
i.entityName ? {
|
|
3861
3868
|
name: "entityName",
|
|
3862
|
-
fn:
|
|
3869
|
+
fn: _(() => [
|
|
3863
3870
|
R("strong", null, L(i.entityName), 1)
|
|
3864
3871
|
]),
|
|
3865
3872
|
key: "0"
|
|
3866
3873
|
} : void 0
|
|
3867
3874
|
]), 1032, ["keypath"]),
|
|
3868
3875
|
i.description || l.$slots.description ? (m(), S("div", rl, [
|
|
3869
|
-
|
|
3876
|
+
j(l.$slots, "description", {}, () => [
|
|
3870
3877
|
R("p", null, L(i.description), 1)
|
|
3871
3878
|
], !0)
|
|
3872
3879
|
])) : N("", !0)
|
|
@@ -3894,7 +3901,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3894
3901
|
props: {
|
|
3895
3902
|
color: {
|
|
3896
3903
|
type: String,
|
|
3897
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3904
|
+
default: `var(--kong-ui-entity-filter-color, ${Ji})`
|
|
3898
3905
|
}
|
|
3899
3906
|
},
|
|
3900
3907
|
setup(e) {
|
|
@@ -3937,62 +3944,62 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
3937
3944
|
},
|
|
3938
3945
|
emits: ["update:modelValue"],
|
|
3939
3946
|
setup(e, { emit: t }) {
|
|
3940
|
-
const { i18n: { t: n } } =
|
|
3941
|
-
const
|
|
3947
|
+
const { i18n: { t: n } } = W.useI18n(), i = e, r = t, o = K(!1), a = K({}), s = K(/* @__PURE__ */ new Set()), l = F(() => {
|
|
3948
|
+
const w = [];
|
|
3942
3949
|
return new URLSearchParams(i.modelValue).forEach((A, O) => {
|
|
3943
|
-
A !== "" &&
|
|
3944
|
-
}),
|
|
3950
|
+
A !== "" && w.push(O);
|
|
3951
|
+
}), w;
|
|
3945
3952
|
}), c = F(() => {
|
|
3946
|
-
const
|
|
3947
|
-
return Object.keys(
|
|
3953
|
+
const w = i.config.fields;
|
|
3954
|
+
return Object.keys(w).filter((A) => {
|
|
3948
3955
|
var O;
|
|
3949
|
-
return (O =
|
|
3956
|
+
return (O = w == null ? void 0 : w[A]) == null ? void 0 : O.searchable;
|
|
3950
3957
|
}).map((A) => ({
|
|
3951
|
-
label:
|
|
3958
|
+
label: w[A].label || A,
|
|
3952
3959
|
value: A,
|
|
3953
3960
|
expanded: !1
|
|
3954
3961
|
}));
|
|
3955
3962
|
});
|
|
3956
|
-
be(() => i.modelValue, (
|
|
3957
|
-
a.value = {}, new URLSearchParams(
|
|
3963
|
+
be(() => i.modelValue, (w) => {
|
|
3964
|
+
a.value = {}, new URLSearchParams(w).forEach((A, O) => {
|
|
3958
3965
|
a.value[O] = A;
|
|
3959
3966
|
});
|
|
3960
3967
|
});
|
|
3961
3968
|
const d = () => {
|
|
3962
3969
|
o.value = !o.value;
|
|
3963
|
-
}, u = (
|
|
3964
|
-
s.value.has(
|
|
3965
|
-
}, p = (
|
|
3966
|
-
r("update:modelValue",
|
|
3970
|
+
}, u = (w) => {
|
|
3971
|
+
s.value.has(w) ? s.value.delete(w) : s.value.add(w);
|
|
3972
|
+
}, p = (w) => {
|
|
3973
|
+
r("update:modelValue", w);
|
|
3967
3974
|
}, g = () => {
|
|
3968
3975
|
p("");
|
|
3969
|
-
}, h = (
|
|
3976
|
+
}, h = (w) => `filter-${w}`, x = (w) => {
|
|
3970
3977
|
var A, O;
|
|
3971
|
-
return (((O = (A = i.config.schema) == null ? void 0 : A[
|
|
3972
|
-
}, y = (
|
|
3978
|
+
return (((O = (A = i.config.schema) == null ? void 0 : A[w]) == null ? void 0 : O.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
|
|
3979
|
+
}, y = (w) => {
|
|
3973
3980
|
var A, O;
|
|
3974
|
-
return ((O = (A = i.config.schema) == null ? void 0 : A[
|
|
3975
|
-
}, k = (
|
|
3981
|
+
return ((O = (A = i.config.schema) == null ? void 0 : A[w]) == null ? void 0 : O.type) ?? "text";
|
|
3982
|
+
}, k = (w) => {
|
|
3976
3983
|
a.value = {
|
|
3977
3984
|
...a.value,
|
|
3978
|
-
[
|
|
3985
|
+
[w]: ""
|
|
3979
3986
|
}, T();
|
|
3980
3987
|
}, C = () => {
|
|
3981
3988
|
a.value = {}, T(!0);
|
|
3982
|
-
}, T = (
|
|
3989
|
+
}, T = (w = !1) => {
|
|
3983
3990
|
const A = Object.keys(a.value).reduce((O, f) => (a.value[f] && (O[f] = `${a.value[f]}`), O), {});
|
|
3984
|
-
|
|
3985
|
-
},
|
|
3991
|
+
w && (o.value = !1), r("update:modelValue", new URLSearchParams(A).toString());
|
|
3992
|
+
}, J = (w) => {
|
|
3986
3993
|
var A, O;
|
|
3987
|
-
return !!((O = (A = i.config.schema) == null ? void 0 : A[
|
|
3988
|
-
}, X = (
|
|
3994
|
+
return !!((O = (A = i.config.schema) == null ? void 0 : A[w]) != null && O.filterFunction);
|
|
3995
|
+
}, X = (w, A) => {
|
|
3989
3996
|
var f;
|
|
3990
|
-
const O = (f = i.config.schema) == null ? void 0 : f[
|
|
3997
|
+
const O = (f = i.config.schema) == null ? void 0 : f[w];
|
|
3991
3998
|
return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(A);
|
|
3992
3999
|
};
|
|
3993
|
-
return (
|
|
4000
|
+
return (w, A) => {
|
|
3994
4001
|
const O = P("KInput"), f = P("KButton"), v = P("KSelect");
|
|
3995
|
-
return e.config.isExactMatch ? (m(),
|
|
4002
|
+
return e.config.isExactMatch ? (m(), D(O, {
|
|
3996
4003
|
key: 0,
|
|
3997
4004
|
autocomplete: "off",
|
|
3998
4005
|
class: "kong-ui-entity-filter-input",
|
|
@@ -4001,10 +4008,10 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4001
4008
|
placeholder: e.config.placeholder,
|
|
4002
4009
|
"onUpdate:modelValue": p
|
|
4003
4010
|
}, {
|
|
4004
|
-
before:
|
|
4011
|
+
before: _(() => [
|
|
4005
4012
|
M(Mt)
|
|
4006
4013
|
]),
|
|
4007
|
-
after:
|
|
4014
|
+
after: _(() => [
|
|
4008
4015
|
xe(M($(ii), {
|
|
4009
4016
|
class: "kong-ui-entity-filter-clear",
|
|
4010
4017
|
role: "button",
|
|
@@ -4021,7 +4028,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4021
4028
|
"data-testid": "filter-button",
|
|
4022
4029
|
onClick: d
|
|
4023
4030
|
}, {
|
|
4024
|
-
default:
|
|
4031
|
+
default: _(() => [
|
|
4025
4032
|
M(Mt),
|
|
4026
4033
|
q(" " + L($(n)("filter.filterButtonText")) + " " + L(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4027
4034
|
]),
|
|
@@ -4035,7 +4042,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4035
4042
|
]),
|
|
4036
4043
|
xe(R("div", fl, [
|
|
4037
4044
|
(m(!0), S(ue, null, ce(c.value, (b) => {
|
|
4038
|
-
var H,
|
|
4045
|
+
var H, Y;
|
|
4039
4046
|
return m(), S("div", {
|
|
4040
4047
|
key: b.value,
|
|
4041
4048
|
class: "kong-ui-entity-filter-menu-item",
|
|
@@ -4062,16 +4069,16 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4062
4069
|
class: "menu-item-label",
|
|
4063
4070
|
for: h(b.value)
|
|
4064
4071
|
}, L($(n)("filter.fieldLabel")), 9, yl),
|
|
4065
|
-
((
|
|
4072
|
+
((Y = (H = e.config.schema) == null ? void 0 : H[b.value]) == null ? void 0 : Y.type) === "select" ? (m(), D(v, {
|
|
4066
4073
|
key: 0,
|
|
4067
4074
|
id: h(b.value),
|
|
4068
4075
|
modelValue: a.value[b.value],
|
|
4069
4076
|
"onUpdate:modelValue": (I) => a.value[b.value] = I,
|
|
4070
|
-
"enable-filtering":
|
|
4077
|
+
"enable-filtering": J(b.value),
|
|
4071
4078
|
"filter-function": (I) => X(b.value, I),
|
|
4072
4079
|
items: x(b.value),
|
|
4073
4080
|
placeholder: $(n)("filter.selectPlaceholder")
|
|
4074
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (m(),
|
|
4081
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (m(), D(O, {
|
|
4075
4082
|
key: 1,
|
|
4076
4083
|
id: h(b.value),
|
|
4077
4084
|
modelValue: a.value[b.value],
|
|
@@ -4090,7 +4097,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4090
4097
|
size: "small",
|
|
4091
4098
|
onClick: A[0] || (A[0] = (I) => T(!0))
|
|
4092
4099
|
}, {
|
|
4093
|
-
default:
|
|
4100
|
+
default: _(() => [
|
|
4094
4101
|
q(L($(n)("filter.applyButtonText")), 1)
|
|
4095
4102
|
]),
|
|
4096
4103
|
_: 1
|
|
@@ -4101,7 +4108,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4101
4108
|
size: "small",
|
|
4102
4109
|
onClick: (I) => k(b.value)
|
|
4103
4110
|
}, {
|
|
4104
|
-
default:
|
|
4111
|
+
default: _(() => [
|
|
4105
4112
|
q(L($(n)("filter.clearButtonText")), 1)
|
|
4106
4113
|
]),
|
|
4107
4114
|
_: 1
|
|
@@ -4117,7 +4124,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4117
4124
|
size: "small",
|
|
4118
4125
|
onClick: C
|
|
4119
4126
|
}, {
|
|
4120
|
-
default:
|
|
4127
|
+
default: _(() => [
|
|
4121
4128
|
q(L($(n)("filter.clearAllButtonText")), 1)
|
|
4122
4129
|
]),
|
|
4123
4130
|
_: 1
|
|
@@ -4161,7 +4168,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4161
4168
|
},
|
|
4162
4169
|
emits: ["cancel", "proceed"],
|
|
4163
4170
|
setup(e, { emit: t }) {
|
|
4164
|
-
const { i18n: { t: n }, i18nT: i } =
|
|
4171
|
+
const { i18n: { t: n }, i18nT: i } = W.useI18n(), r = e, o = t, a = K(!1), s = F(
|
|
4165
4172
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4166
4173
|
), l = F(
|
|
4167
4174
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
@@ -4179,7 +4186,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4179
4186
|
};
|
|
4180
4187
|
return (u, p) => {
|
|
4181
4188
|
const g = P("KPrompt");
|
|
4182
|
-
return m(),
|
|
4189
|
+
return m(), D(Yt, { to: "body" }, [
|
|
4183
4190
|
M(g, {
|
|
4184
4191
|
"action-button-disabled": a.value,
|
|
4185
4192
|
"action-button-text": l.value,
|
|
@@ -4189,15 +4196,15 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4189
4196
|
onCancel: c,
|
|
4190
4197
|
onProceed: d
|
|
4191
4198
|
}, {
|
|
4192
|
-
default:
|
|
4199
|
+
default: _(() => [
|
|
4193
4200
|
M($(i), {
|
|
4194
4201
|
keypath: `toggleModal.${r.action}.message`,
|
|
4195
4202
|
scope: "global"
|
|
4196
4203
|
}, {
|
|
4197
|
-
entityType:
|
|
4204
|
+
entityType: _(() => [
|
|
4198
4205
|
q(L(e.entityType), 1)
|
|
4199
4206
|
]),
|
|
4200
|
-
entityName:
|
|
4207
|
+
entityName: _(() => [
|
|
4201
4208
|
R("strong", null, L(e.entityName), 1)
|
|
4202
4209
|
]),
|
|
4203
4210
|
_: 1
|
|
@@ -4233,7 +4240,7 @@ const Ko = { class: "yaml-config config-card-code-block" }, qn = /* @__PURE__ */
|
|
|
4233
4240
|
const t = e, n = K(void 0), i = F(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4234
4241
|
return be(() => t.authFunction, async () => {
|
|
4235
4242
|
n.value = await t.authFunction();
|
|
4236
|
-
}, { immediate: !0 }), (r, o) => i.value ?
|
|
4243
|
+
}, { immediate: !0 }), (r, o) => i.value ? j(r.$slots, "default", {
|
|
4237
4244
|
key: 0,
|
|
4238
4245
|
isAllowed: n.value
|
|
4239
4246
|
}) : N("", !0);
|
|
@@ -4244,15 +4251,15 @@ for (let e = 0; e < 256; ++e)
|
|
|
4244
4251
|
function Cl(e, t = 0) {
|
|
4245
4252
|
return (te[e[t + 0]] + te[e[t + 1]] + te[e[t + 2]] + te[e[t + 3]] + "-" + te[e[t + 4]] + te[e[t + 5]] + "-" + te[e[t + 6]] + te[e[t + 7]] + "-" + te[e[t + 8]] + te[e[t + 9]] + "-" + te[e[t + 10]] + te[e[t + 11]] + te[e[t + 12]] + te[e[t + 13]] + te[e[t + 14]] + te[e[t + 15]]).toLowerCase();
|
|
4246
4253
|
}
|
|
4247
|
-
let
|
|
4254
|
+
let Je;
|
|
4248
4255
|
const kl = new Uint8Array(16);
|
|
4249
4256
|
function Al() {
|
|
4250
|
-
if (!
|
|
4257
|
+
if (!Je) {
|
|
4251
4258
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4252
4259
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4253
|
-
|
|
4260
|
+
Je = crypto.getRandomValues.bind(crypto);
|
|
4254
4261
|
}
|
|
4255
|
-
return
|
|
4262
|
+
return Je(kl);
|
|
4256
4263
|
}
|
|
4257
4264
|
const _l = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jt = { randomUUID: _l };
|
|
4258
4265
|
function wl(e, t, n) {
|
|
@@ -4311,27 +4318,27 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4311
4318
|
key: 0,
|
|
4312
4319
|
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4313
4320
|
}, [
|
|
4314
|
-
e.title ? (m(),
|
|
4321
|
+
e.title ? (m(), D(je(e.titleTag), {
|
|
4315
4322
|
key: 0,
|
|
4316
4323
|
id: $(n),
|
|
4317
4324
|
class: "form-section-title"
|
|
4318
4325
|
}, {
|
|
4319
|
-
default:
|
|
4326
|
+
default: _(() => [
|
|
4320
4327
|
q(L(e.title), 1)
|
|
4321
4328
|
]),
|
|
4322
4329
|
_: 1
|
|
4323
4330
|
}, 8, ["id"])) : N("", !0),
|
|
4324
4331
|
e.description || $(t).description ? (m(), S("div", Tl, [
|
|
4325
|
-
|
|
4332
|
+
j(i.$slots, "description", {}, () => [
|
|
4326
4333
|
R("p", null, L(e.description), 1)
|
|
4327
4334
|
], !0)
|
|
4328
4335
|
])) : N("", !0),
|
|
4329
4336
|
$(t).footer ? (m(), S("div", Il, [
|
|
4330
|
-
|
|
4337
|
+
j(i.$slots, "footer", {}, void 0, !0)
|
|
4331
4338
|
])) : N("", !0)
|
|
4332
4339
|
], 2)),
|
|
4333
4340
|
R("div", El, [
|
|
4334
|
-
|
|
4341
|
+
j(i.$slots, "default", {}, void 0, !0)
|
|
4335
4342
|
])
|
|
4336
4343
|
])
|
|
4337
4344
|
], 10, Sl));
|
|
@@ -4359,22 +4366,22 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4359
4366
|
e.step != null ? (m(), S("div", Bl, L(e.step), 1)) : N("", !0),
|
|
4360
4367
|
R("div", Rl, [
|
|
4361
4368
|
R("h2", Kl, [
|
|
4362
|
-
|
|
4369
|
+
j(n.$slots, "title", {}, () => [
|
|
4363
4370
|
q(L(e.title), 1)
|
|
4364
4371
|
], !0)
|
|
4365
4372
|
]),
|
|
4366
4373
|
e.description || t.description ? (m(), S("div", Nl, [
|
|
4367
|
-
|
|
4374
|
+
j(n.$slots, "description", {}, () => [
|
|
4368
4375
|
q(L(e.description), 1)
|
|
4369
4376
|
], !0)
|
|
4370
4377
|
])) : N("", !0)
|
|
4371
4378
|
]),
|
|
4372
4379
|
t.extra ? (m(), S("div", Ml, [
|
|
4373
|
-
|
|
4380
|
+
j(n.$slots, "extra", {}, void 0, !0)
|
|
4374
4381
|
])) : N("", !0)
|
|
4375
4382
|
]),
|
|
4376
4383
|
R("div", jl, [
|
|
4377
|
-
|
|
4384
|
+
j(n.$slots, "default", {}, void 0, !0)
|
|
4378
4385
|
])
|
|
4379
4386
|
]));
|
|
4380
4387
|
}
|
|
@@ -4408,7 +4415,7 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4408
4415
|
}
|
|
4409
4416
|
},
|
|
4410
4417
|
setup(e) {
|
|
4411
|
-
const t = e, n = K(), { isTruncated: i } =
|
|
4418
|
+
const t = e, n = K(), { isTruncated: i } = W.useTruncationDetector(n), { i18n: { t: r } } = W.useI18n(), o = r("global.actions.copyId"), a = K(o), s = F(() => t.entityLinkData.deleted ?? !1), l = F(() => {
|
|
4412
4419
|
var u;
|
|
4413
4420
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4414
4421
|
}), c = F(() => {
|
|
@@ -4422,18 +4429,18 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4422
4429
|
return (u, p) => {
|
|
4423
4430
|
const g = P("KTooltip"), h = P("KExternalLink"), x = P("KClipboardProvider");
|
|
4424
4431
|
return m(), S("div", Pl, [
|
|
4425
|
-
s.value ? (m(), S("div", Ul, L(c.value), 1)) : l.value ? l.value ? (m(),
|
|
4432
|
+
s.value ? (m(), S("div", Ul, L(c.value), 1)) : l.value ? l.value ? (m(), D(h, {
|
|
4426
4433
|
key: 2,
|
|
4427
4434
|
class: "entity-link",
|
|
4428
4435
|
"hide-icon": !e.newWindow,
|
|
4429
4436
|
href: e.externalLink,
|
|
4430
4437
|
target: e.newWindow ? "_blank" : "_self"
|
|
4431
4438
|
}, {
|
|
4432
|
-
default:
|
|
4439
|
+
default: _(() => [
|
|
4433
4440
|
M(g, {
|
|
4434
4441
|
text: $(i) && e.entityLinkData.label || ""
|
|
4435
4442
|
}, {
|
|
4436
|
-
default:
|
|
4443
|
+
default: _(() => [
|
|
4437
4444
|
R("span", {
|
|
4438
4445
|
ref_key: "textContent",
|
|
4439
4446
|
ref: n,
|
|
@@ -4445,16 +4452,16 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4445
4452
|
]),
|
|
4446
4453
|
_: 1
|
|
4447
4454
|
}, 8, ["hide-icon", "href", "target"])) : N("", !0) : (m(), S("div", ql, L(" – "))),
|
|
4448
|
-
l.value && e.allowCopy ? (m(),
|
|
4455
|
+
l.value && e.allowCopy ? (m(), D(g, {
|
|
4449
4456
|
key: a.value,
|
|
4450
4457
|
class: "copy-uuid-tooltip",
|
|
4451
4458
|
"max-width": "160",
|
|
4452
4459
|
placement: "bottom-end",
|
|
4453
4460
|
text: a.value
|
|
4454
4461
|
}, {
|
|
4455
|
-
default:
|
|
4462
|
+
default: _(() => [
|
|
4456
4463
|
M(x, null, {
|
|
4457
|
-
default:
|
|
4464
|
+
default: _(({ copyToClipboard: y }) => [
|
|
4458
4465
|
R("span", {
|
|
4459
4466
|
class: "entity-link-copy-id",
|
|
4460
4467
|
onClick: Le((k) => d(y), ["stop"])
|
|
@@ -4475,10 +4482,10 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4475
4482
|
]);
|
|
4476
4483
|
};
|
|
4477
4484
|
}
|
|
4478
|
-
}), ks = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-96efdfa5"]]), Yl = { class: "kong-ui-public-entity-empty-state" }, Wl = { class: "entity-empty-state-content" },
|
|
4485
|
+
}), ks = /* @__PURE__ */ se(Vl, [["__scopeId", "data-v-96efdfa5"]]), Yl = { class: "kong-ui-public-entity-empty-state" }, Wl = { class: "entity-empty-state-content" }, Jl = {
|
|
4479
4486
|
key: 0,
|
|
4480
4487
|
class: "empty-state-image"
|
|
4481
|
-
},
|
|
4488
|
+
}, Gl = {
|
|
4482
4489
|
key: 1,
|
|
4483
4490
|
class: "entity-empty-state-title"
|
|
4484
4491
|
}, zl = {
|
|
@@ -4543,7 +4550,7 @@ const Sl = ["aria-labelledby"], $l = { class: "form-section-wrapper" }, Tl = {
|
|
|
4543
4550
|
},
|
|
4544
4551
|
emits: ["click:create", "click:learn-more"],
|
|
4545
4552
|
setup(e) {
|
|
4546
|
-
const t = e, { i18n: { t: n } } =
|
|
4553
|
+
const t = e, { i18n: { t: n } } = W.useI18n(), i = K(!1), r = F(() => i.value && !!t.actionButtonText), o = F(() => ht.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4547
4554
|
return nt(async () => {
|
|
4548
4555
|
i.value = await t.canCreate();
|
|
4549
4556
|
}), tt(() => Qn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
@@ -4551,20 +4558,20 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4551
4558
|
const l = P("KCard");
|
|
4552
4559
|
return m(), S("div", Yl, [
|
|
4553
4560
|
R("div", Wl, [
|
|
4554
|
-
a.$slots.image ? (m(), S("div",
|
|
4555
|
-
|
|
4561
|
+
a.$slots.image ? (m(), S("div", Jl, [
|
|
4562
|
+
j(a.$slots, "image", {}, void 0, !0)
|
|
4556
4563
|
])) : N("", !0),
|
|
4557
|
-
e.title || a.$slots.title ? (m(), S("div",
|
|
4564
|
+
e.title || a.$slots.title ? (m(), S("div", Gl, [
|
|
4558
4565
|
R("h1", {
|
|
4559
4566
|
class: fe(o.value)
|
|
4560
4567
|
}, [
|
|
4561
|
-
|
|
4568
|
+
j(a.$slots, "title", {}, () => [
|
|
4562
4569
|
q(L(e.title), 1)
|
|
4563
4570
|
], !0)
|
|
4564
4571
|
], 2)
|
|
4565
4572
|
])) : N("", !0),
|
|
4566
4573
|
e.description || a.$slots.default ? (m(), S("div", zl, [
|
|
4567
|
-
|
|
4574
|
+
j(a.$slots, "default", {}, () => [
|
|
4568
4575
|
R("p", null, L(e.description), 1)
|
|
4569
4576
|
], !0)
|
|
4570
4577
|
])) : N("", !0),
|
|
@@ -4572,39 +4579,39 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4572
4579
|
R("p", null, [
|
|
4573
4580
|
R("b", null, L($(n)("emptyState.pricingTitle")), 1),
|
|
4574
4581
|
s[2] || (s[2] = q()),
|
|
4575
|
-
|
|
4582
|
+
j(a.$slots, "pricing", {}, () => [
|
|
4576
4583
|
q(L(e.pricing), 1)
|
|
4577
4584
|
], !0)
|
|
4578
4585
|
])
|
|
4579
4586
|
])) : N("", !0)
|
|
4580
4587
|
]),
|
|
4581
4588
|
a.$slots.message ? (m(), S("div", Zl, [
|
|
4582
|
-
|
|
4589
|
+
j(a.$slots, "message", {}, void 0, !0)
|
|
4583
4590
|
])) : N("", !0),
|
|
4584
4591
|
r.value || e.learnMore || a.$slots.actions ? (m(), S("div", Xl, [
|
|
4585
|
-
|
|
4586
|
-
r.value ? (m(),
|
|
4592
|
+
j(a.$slots, "actions", {}, () => [
|
|
4593
|
+
r.value ? (m(), D($(mt), {
|
|
4587
4594
|
key: 0,
|
|
4588
4595
|
appearance: "primary",
|
|
4589
4596
|
"data-testid": "entity-create-button",
|
|
4590
4597
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4591
4598
|
onClick: s[0] || (s[0] = (c) => a.$emit("click:create"))
|
|
4592
4599
|
}, {
|
|
4593
|
-
default:
|
|
4594
|
-
M($(
|
|
4600
|
+
default: _(() => [
|
|
4601
|
+
M($(Jt)),
|
|
4595
4602
|
q(" " + L(e.actionButtonText), 1)
|
|
4596
4603
|
]),
|
|
4597
4604
|
_: 1
|
|
4598
4605
|
}, 8, ["size"])) : N("", !0),
|
|
4599
|
-
e.learnMore ? (m(),
|
|
4606
|
+
e.learnMore ? (m(), D($(mt), {
|
|
4600
4607
|
key: 1,
|
|
4601
4608
|
appearance: "secondary",
|
|
4602
4609
|
"data-testid": "entity-learn-more-button",
|
|
4603
4610
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4604
4611
|
onClick: s[1] || (s[1] = (c) => a.$emit("click:learn-more"))
|
|
4605
4612
|
}, {
|
|
4606
|
-
default:
|
|
4607
|
-
M($(
|
|
4613
|
+
default: _(() => [
|
|
4614
|
+
M($(Wt), { decorative: "" }),
|
|
4608
4615
|
q(" " + L($(n)("emptyState.learnMore")), 1)
|
|
4609
4616
|
]),
|
|
4610
4617
|
_: 1
|
|
@@ -4612,17 +4619,17 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4612
4619
|
], !0)
|
|
4613
4620
|
])) : N("", !0),
|
|
4614
4621
|
e.features.length ? (m(), S("div", es, [
|
|
4615
|
-
(m(!0), S(ue, null, ce(e.features, (c, d) => (m(),
|
|
4622
|
+
(m(!0), S(ue, null, ce(e.features, (c, d) => (m(), D(l, {
|
|
4616
4623
|
key: c,
|
|
4617
4624
|
class: "entity-empty-state-card"
|
|
4618
4625
|
}, {
|
|
4619
|
-
title:
|
|
4626
|
+
title: _(() => [
|
|
4620
4627
|
a.$slots[`feature-${d}-icon`] ? (m(), S("div", ts, [
|
|
4621
|
-
|
|
4628
|
+
j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4622
4629
|
])) : N("", !0),
|
|
4623
4630
|
R("div", ns, L(c.title), 1)
|
|
4624
4631
|
]),
|
|
4625
|
-
default:
|
|
4632
|
+
default: _(() => [
|
|
4626
4633
|
R("div", {
|
|
4627
4634
|
title: c.description
|
|
4628
4635
|
}, L(c.description), 9, is)
|
|
@@ -4631,7 +4638,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4631
4638
|
}, 1024))), 128))
|
|
4632
4639
|
])) : N("", !0),
|
|
4633
4640
|
a.$slots.bottom ? (m(), S("div", rs, [
|
|
4634
|
-
|
|
4641
|
+
j(a.$slots, "bottom", {}, void 0, !0)
|
|
4635
4642
|
])) : N("", !0)
|
|
4636
4643
|
]);
|
|
4637
4644
|
};
|
|
@@ -4664,15 +4671,15 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4664
4671
|
});
|
|
4665
4672
|
return (i, r) => {
|
|
4666
4673
|
var o;
|
|
4667
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(),
|
|
4668
|
-
default:
|
|
4669
|
-
(m(!0), S(ue, null, ce(n.value, (a) => (m(),
|
|
4674
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), D($(ti), { key: 0 }, {
|
|
4675
|
+
default: _(() => [
|
|
4676
|
+
(m(!0), S(ue, null, ce(n.value, (a) => (m(), D($(ni), {
|
|
4670
4677
|
key: a,
|
|
4671
4678
|
"max-width": e.tagMaxWidth,
|
|
4672
4679
|
onClick: r[0] || (r[0] = Le(() => {
|
|
4673
4680
|
}, ["stop"]))
|
|
4674
4681
|
}, {
|
|
4675
|
-
default:
|
|
4682
|
+
default: _(() => [
|
|
4676
4683
|
q(L(a), 1)
|
|
4677
4684
|
]),
|
|
4678
4685
|
_: 2
|
|
@@ -4682,13 +4689,11 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4682
4689
|
})) : (m(), S("span", os, "-"));
|
|
4683
4690
|
};
|
|
4684
4691
|
}
|
|
4685
|
-
}), ws =
|
|
4686
|
-
KM_1945_NEW_PLUGIN_CONFIG_FORM: Symbol("KM_1945_NEW_PLUGIN_CONFIG_FORM")
|
|
4687
|
-
}, { useAxios: Ss, useDeleteUrlBuilder: $s, useErrors: Ts, useExternalLinkCreator: Is, useFetchUrlBuilder: Es, useFetcher: Fs, useFetcherCacheKey: Os, useDebouncedFilter: Ls, useStringHelpers: Bs, useHelpers: Rs, useGatewayFeatureSupported: Ks, useTruncationDetector: Ns, useValidators: Ms, useSchemaProvider: js, useTableState: Ds } = Y;
|
|
4692
|
+
}), { useAxios: ws, useDeleteUrlBuilder: Ss, useErrors: $s, useExternalLinkCreator: Ts, useFetchUrlBuilder: Is, useFetcher: Es, useFetcherCacheKey: Fs, useDebouncedFilter: Os, useStringHelpers: Ls, useHelpers: Bs, useGatewayFeatureSupported: Rs, useTruncationDetector: Ks, useValidators: Ns, useSchemaProvider: Ms, useTableState: js } = W;
|
|
4688
4693
|
export {
|
|
4689
4694
|
ht as Appearances,
|
|
4690
4695
|
Uo as ConfigCardDisplay,
|
|
4691
|
-
|
|
4696
|
+
tn as ConfigCardItem,
|
|
4692
4697
|
ae as ConfigurationSchemaSection,
|
|
4693
4698
|
V as ConfigurationSchemaType,
|
|
4694
4699
|
ps as EntityBaseConfigCard,
|
|
@@ -4704,29 +4709,28 @@ export {
|
|
|
4704
4709
|
vs as EntityToggleModal,
|
|
4705
4710
|
li as EntityTypes,
|
|
4706
4711
|
ci as EventGatewayTypesArray,
|
|
4707
|
-
ws as FEATURE_FLAGS,
|
|
4708
4712
|
me as FetcherStatus,
|
|
4709
4713
|
Yi as InternalLinkItem,
|
|
4710
|
-
|
|
4714
|
+
nn as JsonCodeBlock,
|
|
4711
4715
|
bs as PermissionsWrapper,
|
|
4712
4716
|
it as SupportedEntityType,
|
|
4713
4717
|
Pe as SupportedEntityTypesArray,
|
|
4714
4718
|
_s as TableTags,
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4719
|
+
Yn as TerraformCodeBlock,
|
|
4720
|
+
Vn as YamlCodeBlock,
|
|
4721
|
+
ws as useAxios,
|
|
4722
|
+
Os as useDebouncedFilter,
|
|
4723
|
+
Ss as useDeleteUrlBuilder,
|
|
4724
|
+
$s as useErrors,
|
|
4725
|
+
Ts as useExternalLinkCreator,
|
|
4726
|
+
Is as useFetchUrlBuilder,
|
|
4727
|
+
Es as useFetcher,
|
|
4728
|
+
Fs as useFetcherCacheKey,
|
|
4729
|
+
Rs as useGatewayFeatureSupported,
|
|
4730
|
+
Bs as useHelpers,
|
|
4731
|
+
Ms as useSchemaProvider,
|
|
4732
|
+
Ls as useStringHelpers,
|
|
4733
|
+
js as useTableState,
|
|
4734
|
+
Ks as useTruncationDetector,
|
|
4735
|
+
Ns as useValidators
|
|
4732
4736
|
};
|