@kong-ui-public/entities-shared 3.27.10 → 3.27.11-pr.2457.9e8098f42.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as jt, ref as B, computed as E, unref as
|
|
1
|
+
import { inject as jt, ref as B, computed as E, unref as T, toValue as me, watch as ve, toRef as qn, provide as Dt, defineComponent as J, createBlock as N, openBlock as m, resolveDynamicComponent as je, normalizeClass as de, withCtx as _, createElementBlock as $, createCommentVNode as K, createElementVNode as O, toDisplayString as F, Fragment as ce, renderList as se, resolveComponent as D, createVNode as M, createTextVNode as U, useCssVars as Pt, useId as Hn, useSlots as De, renderSlot as j, createSlots as we, normalizeProps as Vn, guardReactiveProps as Yn, mergeProps as Wn, onMounted as tt, onBeforeMount as nt, withModifiers as Le, Teleport as Ut, onUnmounted as Jn, withDirectives as be, vShow as xe, withKeys as Gn, warn as zn } from "vue";
|
|
2
2
|
import ft from "axios";
|
|
3
3
|
import { createI18n as Qn, i18nTComponent as Zn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Xn, KButton as pt, KTruncate as ei, KBadge as ti } from "@kong/kongponents";
|
|
@@ -6,7 +6,7 @@ import { BookIcon as qt, AddIcon as Ht, CloseIcon as ni, ChevronDownIcon as ii,
|
|
|
6
6
|
import { useRouter as ai } from "vue-router";
|
|
7
7
|
var oi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(oi || {}), li = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(li || {}), pe = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(pe || {}), it = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.RedisConfiguration = "redis_configuration", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.Policy = "policy", e.Other = "other", e))(it || {});
|
|
8
8
|
const Pe = Object.values(it);
|
|
9
|
-
var
|
|
9
|
+
var V = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(V || {}), le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(le || {});
|
|
10
10
|
const mt = [
|
|
11
11
|
"primary",
|
|
12
12
|
"secondary"
|
|
@@ -259,64 +259,64 @@ function _i(e, t, n, i = {
|
|
|
259
259
|
searchKeys: ["id"]
|
|
260
260
|
}) {
|
|
261
261
|
n || (n = "1000");
|
|
262
|
-
const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = Ue(), { debounce: a } = ci(), l = a(async (
|
|
263
|
-
await x(
|
|
262
|
+
const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = Ue(), { debounce: a } = ci(), l = a(async (L) => {
|
|
263
|
+
await x(L);
|
|
264
264
|
}, 200), s = B(!1), c = B(""), d = B(""), u = B([]), g = B([]), p = B(void 0), y = E(() => {
|
|
265
|
-
const
|
|
266
|
-
return e.app === "konnect" ?
|
|
267
|
-
}), { isValidUuid:
|
|
265
|
+
const L = `${e.apiBaseUrl}${T(t)}`;
|
|
266
|
+
return e.app === "konnect" ? L.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? L.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : L;
|
|
267
|
+
}), { isValidUuid: v } = Vt(), b = async () => {
|
|
268
268
|
try {
|
|
269
269
|
s.value = !0;
|
|
270
|
-
const { data:
|
|
271
|
-
|
|
270
|
+
const { data: L } = await r.get(`${y.value}?size=${n}`);
|
|
271
|
+
L != null && L.next || (p.value = i.fetchedItemsKey in L ? L[i.fetchedItemsKey] : []), g.value = i.fetchedItemsKey in L ? L[i.fetchedItemsKey] : [], u.value = g.value;
|
|
272
272
|
} catch {
|
|
273
273
|
u.value = [], c.value = o("debouncedFilter.errors.fetch");
|
|
274
274
|
} finally {
|
|
275
275
|
s.value = !1;
|
|
276
276
|
}
|
|
277
|
-
},
|
|
278
|
-
var
|
|
279
|
-
if (
|
|
280
|
-
if (
|
|
277
|
+
}, S = B(""), x = async (L) => {
|
|
278
|
+
var q, ne, A;
|
|
279
|
+
if (S.value !== L) {
|
|
280
|
+
if (S.value = L ?? "", !L) {
|
|
281
281
|
u.value = g.value;
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
if (p.value === void 0)
|
|
285
285
|
try {
|
|
286
286
|
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
287
|
-
const
|
|
287
|
+
const w = `${y.value}/${L}`, { data: f } = await r.get(`${w}?size=${n}`);
|
|
288
288
|
i.fetchedItemsKey in f ? u.value = f[i.fetchedItemsKey] : f != null && f[i.exactMatchKey ?? "id"] ? u.value = [f] : u.value = [];
|
|
289
289
|
} else {
|
|
290
|
-
const
|
|
291
|
-
|
|
292
|
-
const { data:
|
|
293
|
-
return [
|
|
294
|
-
})()) :
|
|
295
|
-
...i.searchKeys.filter((
|
|
296
|
-
const { data:
|
|
297
|
-
return
|
|
290
|
+
const w = [];
|
|
291
|
+
v(L) && i.searchKeys.includes("id") ? w.push((async () => {
|
|
292
|
+
const { data: C } = await r.get(`${y.value}/${L}`);
|
|
293
|
+
return [C[i.fetchedItemsKey] ?? C];
|
|
294
|
+
})()) : w.push(
|
|
295
|
+
...i.searchKeys.filter((C) => C !== "id").map(async (C) => {
|
|
296
|
+
const { data: k } = await r.get(`${y.value}?${C}=${L}`);
|
|
297
|
+
return k[i.fetchedItemsKey];
|
|
298
298
|
})
|
|
299
299
|
);
|
|
300
|
-
const f = await Promise.all(
|
|
301
|
-
u.value = [], (
|
|
302
|
-
var
|
|
303
|
-
(
|
|
304
|
-
|
|
300
|
+
const f = await Promise.all(w), h = /* @__PURE__ */ new Set();
|
|
301
|
+
u.value = [], (q = f == null ? void 0 : f.forEach) == null || q.call(f, (C) => {
|
|
302
|
+
var k;
|
|
303
|
+
(k = C == null ? void 0 : C.forEach) == null || k.call(C, (H) => {
|
|
304
|
+
h.has(H.id) || (h.add(H.id), u.value.push(H));
|
|
305
305
|
});
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
} catch (
|
|
309
|
-
((
|
|
308
|
+
} catch (w) {
|
|
309
|
+
((ne = w == null ? void 0 : w.response) == null ? void 0 : ne.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
|
|
310
310
|
} finally {
|
|
311
311
|
s.value = !1;
|
|
312
312
|
}
|
|
313
313
|
else
|
|
314
|
-
s.value = !0, d.value = "", u.value = (
|
|
315
|
-
var
|
|
314
|
+
s.value = !0, d.value = "", u.value = (A = p.value) == null ? void 0 : A.filter((w) => {
|
|
315
|
+
var h;
|
|
316
316
|
let f = !1;
|
|
317
|
-
for (const
|
|
318
|
-
const
|
|
319
|
-
|
|
317
|
+
for (const C of i.searchKeys) {
|
|
318
|
+
const k = typeof w[C] == "string" ? (h = w[C]) == null ? void 0 : h.toLowerCase() : w[C];
|
|
319
|
+
k != null && k.includes(L.toLowerCase()) && (f = !0);
|
|
320
320
|
}
|
|
321
321
|
return f;
|
|
322
322
|
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
|
|
@@ -333,7 +333,7 @@ function _i(e, t, n, i = {
|
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
function wi(e, t) {
|
|
336
|
-
const n =
|
|
336
|
+
const n = T(t), i = E(
|
|
337
337
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
338
338
|
);
|
|
339
339
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
@@ -452,13 +452,13 @@ function Ti(e, t, n) {
|
|
|
452
452
|
l.value = i.value ? { status: pe.InitialLoad } : { status: pe.Loading }, i.value = !1;
|
|
453
453
|
let y = a(u);
|
|
454
454
|
y.includes("filter[name]") && (y = `${y}&page[size]=${u.pageSize}&page[number]=${u.page}`);
|
|
455
|
-
const
|
|
456
|
-
if (
|
|
457
|
-
throw
|
|
458
|
-
const b =
|
|
455
|
+
const v = await o.get(y);
|
|
456
|
+
if (v.status >= 400)
|
|
457
|
+
throw v;
|
|
458
|
+
const b = v.data, S = g && g.replace(/[^\w-_]/gi, "");
|
|
459
459
|
let x;
|
|
460
|
-
b[
|
|
461
|
-
const
|
|
460
|
+
b[S] ? x = Array.isArray(b[S]) ? b[S] : [b[S]] : Array.isArray(b) ? x = b : x = Object.keys(b).length ? [b] : [];
|
|
461
|
+
const L = {
|
|
462
462
|
data: x,
|
|
463
463
|
total: x.length,
|
|
464
464
|
...b.offset ? {
|
|
@@ -467,27 +467,27 @@ function Ti(e, t, n) {
|
|
|
467
467
|
}
|
|
468
468
|
} : null
|
|
469
469
|
};
|
|
470
|
-
return
|
|
470
|
+
return L.data.length === 0 && !u.query ? l.value = {
|
|
471
471
|
status: pe.NoRecords,
|
|
472
|
-
response:
|
|
472
|
+
response: L
|
|
473
473
|
} : l.value = {
|
|
474
474
|
status: pe.Idle,
|
|
475
|
-
response:
|
|
476
|
-
},
|
|
475
|
+
response: L
|
|
476
|
+
}, L;
|
|
477
477
|
} catch (y) {
|
|
478
|
-
const
|
|
478
|
+
const v = {
|
|
479
479
|
data: [],
|
|
480
480
|
total: 0
|
|
481
481
|
};
|
|
482
482
|
return u.query && (((p = y.response) == null ? void 0 : p.status) === 404 || y.status === 404) ? (l.value = {
|
|
483
483
|
status: pe.NoResults,
|
|
484
|
-
response:
|
|
484
|
+
response: v,
|
|
485
485
|
error: y.response ? y : { response: y }
|
|
486
|
-
},
|
|
486
|
+
}, v) : (l.value = {
|
|
487
487
|
status: pe.Error,
|
|
488
|
-
response:
|
|
488
|
+
response: v,
|
|
489
489
|
error: y.response ? y : { response: y }
|
|
490
|
-
},
|
|
490
|
+
}, v);
|
|
491
491
|
}
|
|
492
492
|
}, c = r.cacheIdentifier, d = Wt(c);
|
|
493
493
|
return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
|
|
@@ -597,7 +597,7 @@ function Di(e) {
|
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
const
|
|
600
|
+
const Y = {
|
|
601
601
|
useAxios: rt,
|
|
602
602
|
useDebouncedFilter: _i,
|
|
603
603
|
useDeleteUrlBuilder: wi,
|
|
@@ -618,7 +618,7 @@ const V = {
|
|
|
618
618
|
}, Pi = {
|
|
619
619
|
key: 0,
|
|
620
620
|
class: "config-card-fieldset-title"
|
|
621
|
-
}, Ui = /* @__PURE__ */
|
|
621
|
+
}, Ui = /* @__PURE__ */ J({
|
|
622
622
|
__name: "JsonCardItem",
|
|
623
623
|
props: {
|
|
624
624
|
item: {
|
|
@@ -635,25 +635,25 @@ const V = {
|
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
637
|
setup(e) {
|
|
638
|
-
const t = e, { i18n: { t: n } } =
|
|
638
|
+
const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: i } = Y.useStringHelpers(), r = E(() => t.item.key ?? "json-array-item"), o = E(() => t.item.value ?? t.item), a = E(() => {
|
|
639
639
|
const s = JSON.parse(JSON.stringify(o.value));
|
|
640
640
|
return t.isArrayItem && delete s.name, s;
|
|
641
641
|
}), l = E(() => {
|
|
642
642
|
var s;
|
|
643
643
|
return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
644
644
|
});
|
|
645
|
-
return (s, c) => (
|
|
645
|
+
return (s, c) => (m(), N(je(e.isArrayItem ? "fieldset" : "div"), {
|
|
646
646
|
class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
647
647
|
}, {
|
|
648
648
|
default: _(() => [
|
|
649
|
-
e.isArrayItem ? (
|
|
650
|
-
|
|
649
|
+
e.isArrayItem ? (m(), $("legend", Pi, [
|
|
650
|
+
O("b", null, F(l.value), 1)
|
|
651
651
|
])) : K("", !0),
|
|
652
|
-
(
|
|
652
|
+
(m(!0), $(ce, null, se(Object.keys(a.value), (d, u) => (m(), N(Qt, {
|
|
653
653
|
key: `${r.value}-property-${u}`,
|
|
654
654
|
item: {
|
|
655
655
|
key: d,
|
|
656
|
-
label:
|
|
656
|
+
label: T(i)(d),
|
|
657
657
|
value: a.value[d]
|
|
658
658
|
}
|
|
659
659
|
}, null, 8, ["item"]))), 128))
|
|
@@ -666,7 +666,7 @@ const V = {
|
|
|
666
666
|
for (const [i, r] of t)
|
|
667
667
|
n[i] = r;
|
|
668
668
|
return n;
|
|
669
|
-
}, zt = /* @__PURE__ */ oe(Ui, [["__scopeId", "data-v-dc1e39a1"]]), qi = /* @__PURE__ */
|
|
669
|
+
}, zt = /* @__PURE__ */ oe(Ui, [["__scopeId", "data-v-dc1e39a1"]]), qi = /* @__PURE__ */ J({
|
|
670
670
|
__name: "InternalLinkItem",
|
|
671
671
|
props: {
|
|
672
672
|
item: {
|
|
@@ -676,24 +676,24 @@ const V = {
|
|
|
676
676
|
},
|
|
677
677
|
emits: ["navigation-click"],
|
|
678
678
|
setup(e) {
|
|
679
|
-
const { i18n: { t } } =
|
|
679
|
+
const { i18n: { t } } = Y.useI18n();
|
|
680
680
|
return (n, i) => {
|
|
681
681
|
const r = D("KButton");
|
|
682
|
-
return
|
|
682
|
+
return m(), $("div", null, [
|
|
683
683
|
M(r, {
|
|
684
684
|
appearance: "tertiary",
|
|
685
685
|
class: "navigation-button",
|
|
686
686
|
onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
|
|
687
687
|
}, {
|
|
688
688
|
default: _(() => [
|
|
689
|
-
U(
|
|
689
|
+
U(F(e.item.value || T(t)("baseConfigCard.commonFields.link")), 1)
|
|
690
690
|
]),
|
|
691
691
|
_: 1
|
|
692
692
|
})
|
|
693
693
|
]);
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
}), Hi = /* @__PURE__ */ oe(qi, [["__scopeId", "data-v-2feb8c2e"]]), Vi = /* @__PURE__ */
|
|
696
|
+
}), Hi = /* @__PURE__ */ oe(qi, [["__scopeId", "data-v-2feb8c2e"]]), Vi = /* @__PURE__ */ J({
|
|
697
697
|
__name: "StatusBadge",
|
|
698
698
|
props: {
|
|
699
699
|
status: {
|
|
@@ -702,14 +702,14 @@ const V = {
|
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
704
|
setup(e) {
|
|
705
|
-
const { i18n: { t } } =
|
|
705
|
+
const { i18n: { t } } = Y.useI18n();
|
|
706
706
|
return (n, i) => {
|
|
707
707
|
const r = D("KBadge");
|
|
708
|
-
return
|
|
708
|
+
return m(), N(r, {
|
|
709
709
|
appearance: e.status ? "success" : "neutral"
|
|
710
710
|
}, {
|
|
711
711
|
default: _(() => [
|
|
712
|
-
U(
|
|
712
|
+
U(F(e.status ? T(t)("baseConfigCard.statusBadge.enabledLabel") : T(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
713
713
|
]),
|
|
714
714
|
_: 1
|
|
715
715
|
}, 8, ["appearance"]);
|
|
@@ -718,7 +718,7 @@ const V = {
|
|
|
718
718
|
}), Yi = "#0044f4", Wi = "#e0e4ea", Ji = "#afb7c5", Gi = "#0044f4", zi = "1px", Qi = "16px", Zi = "20px", Xi = { class: "config-card-details-row" }, er = ["data-testid"], tr = ["data-testid"], nr = ["data-testid"], ir = ["data-testid"], rr = { key: 1 }, ar = ["data-testid"], or = ["data-testid"], lr = ["data-testid"], sr = ["data-testid"], cr = {
|
|
719
719
|
name: "ConfigCardItem",
|
|
720
720
|
components: { JsonCardItem: zt, StatusBadge: Vi, InternalLinkItem: Hi }
|
|
721
|
-
}, ur = /* @__PURE__ */
|
|
721
|
+
}, ur = /* @__PURE__ */ J({
|
|
722
722
|
...cr,
|
|
723
723
|
props: {
|
|
724
724
|
item: {
|
|
@@ -738,18 +738,18 @@ const V = {
|
|
|
738
738
|
},
|
|
739
739
|
emits: ["navigation-click"],
|
|
740
740
|
setup(e, { emit: t }) {
|
|
741
|
-
Pt((
|
|
742
|
-
"
|
|
743
|
-
"
|
|
744
|
-
"
|
|
745
|
-
"
|
|
741
|
+
Pt((q) => ({
|
|
742
|
+
"70f369b3": g.value ? "none" : `solid ${T(zi)} ${T(Wi)}`,
|
|
743
|
+
"67c2fae6": u.value && c.value ? "block" : "flex",
|
|
744
|
+
"847b138c": u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
745
|
+
"847687d6": u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
746
746
|
}));
|
|
747
|
-
const n = e, i = t, r = Hn(), o = De(), { i18n: { t: a,
|
|
748
|
-
var
|
|
749
|
-
return n.item.type ? n.item.type : (
|
|
750
|
-
}),
|
|
751
|
-
switch (
|
|
752
|
-
case
|
|
747
|
+
const n = e, i = t, r = Hn(), o = De(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = Y.useI18n(), c = E(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = E(() => !!(n.item.tooltip || o["label-tooltip"])), u = E(() => n.item.type === V.Json || n.item.type === V.JsonArray), g = E(() => n.item.type === V.JsonArray), p = Y.useSubSchema(n.item.key), y = E(() => {
|
|
748
|
+
var q;
|
|
749
|
+
return n.item.type ? n.item.type : (q = p == null ? void 0 : p.value) != null && q.encrypted ? V.Redacted : void 0;
|
|
750
|
+
}), v = E(() => {
|
|
751
|
+
switch (y.value) {
|
|
752
|
+
case V.ID:
|
|
753
753
|
return {
|
|
754
754
|
tag: "KCopy",
|
|
755
755
|
attrs: {
|
|
@@ -758,7 +758,7 @@ const V = {
|
|
|
758
758
|
text: n.item.value
|
|
759
759
|
}
|
|
760
760
|
};
|
|
761
|
-
case
|
|
761
|
+
case V.IdArray:
|
|
762
762
|
return {
|
|
763
763
|
tag: "div",
|
|
764
764
|
additionalComponent: "KCopy",
|
|
@@ -766,7 +766,7 @@ const V = {
|
|
|
766
766
|
"copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
|
-
case
|
|
769
|
+
case V.Redacted:
|
|
770
770
|
return {
|
|
771
771
|
tag: "KCopy",
|
|
772
772
|
attrs: {
|
|
@@ -776,7 +776,7 @@ const V = {
|
|
|
776
776
|
text: n.item.value
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
|
-
case
|
|
779
|
+
case V.RedactedArray:
|
|
780
780
|
return {
|
|
781
781
|
tag: "div",
|
|
782
782
|
additionalComponent: "KCopy",
|
|
@@ -785,15 +785,15 @@ const V = {
|
|
|
785
785
|
"copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
|
|
786
786
|
}
|
|
787
787
|
};
|
|
788
|
-
case
|
|
788
|
+
case V.Date:
|
|
789
789
|
return {
|
|
790
790
|
tag: "div",
|
|
791
791
|
attrs: {
|
|
792
792
|
"data-testid": `${n.item.key}-date`
|
|
793
793
|
},
|
|
794
|
-
text: l(n.item.value)
|
|
794
|
+
text: isNaN(Number(n.item.value)) ? l(n.item.value) : s(n.item.value)
|
|
795
795
|
};
|
|
796
|
-
case
|
|
796
|
+
case V.BadgeStatus:
|
|
797
797
|
return {
|
|
798
798
|
tag: "StatusBadge",
|
|
799
799
|
attrs: {
|
|
@@ -801,12 +801,12 @@ const V = {
|
|
|
801
801
|
status: n.item.value
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
|
-
case
|
|
804
|
+
case V.BadgeTag:
|
|
805
805
|
return {
|
|
806
806
|
tag: "div",
|
|
807
807
|
additionalComponent: "KBadge"
|
|
808
808
|
};
|
|
809
|
-
case
|
|
809
|
+
case V.CopyBadge:
|
|
810
810
|
return {
|
|
811
811
|
tag: "div",
|
|
812
812
|
additionalComponent: "KCopy",
|
|
@@ -817,23 +817,23 @@ const V = {
|
|
|
817
817
|
text: n.item.value
|
|
818
818
|
}
|
|
819
819
|
};
|
|
820
|
-
case
|
|
820
|
+
case V.BadgeMethod:
|
|
821
821
|
return {
|
|
822
822
|
tag: "div",
|
|
823
823
|
additionalComponent: "KMethodBadge"
|
|
824
824
|
};
|
|
825
|
-
case
|
|
825
|
+
case V.LinkInternal:
|
|
826
826
|
return {
|
|
827
827
|
tag: "InternalLinkItem",
|
|
828
828
|
attrs: {
|
|
829
829
|
"data-testid": `${n.item.key}-internal-link`,
|
|
830
830
|
item: n.item,
|
|
831
|
-
onNavigationClick: (
|
|
832
|
-
i("navigation-click",
|
|
831
|
+
onNavigationClick: (q) => {
|
|
832
|
+
i("navigation-click", q);
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
|
-
case
|
|
836
|
+
case V.LinkExternal:
|
|
837
837
|
return {
|
|
838
838
|
tag: "KExternalLink",
|
|
839
839
|
attrs: {
|
|
@@ -842,7 +842,7 @@ const V = {
|
|
|
842
842
|
},
|
|
843
843
|
text: n.item.value
|
|
844
844
|
};
|
|
845
|
-
case
|
|
845
|
+
case V.Json:
|
|
846
846
|
return {
|
|
847
847
|
tag: "JsonCardItem",
|
|
848
848
|
attrs: {
|
|
@@ -850,7 +850,7 @@ const V = {
|
|
|
850
850
|
item: n.item
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
|
-
case
|
|
853
|
+
case V.JsonArray:
|
|
854
854
|
return {
|
|
855
855
|
tag: "div",
|
|
856
856
|
additionalComponent: "JsonCardItem",
|
|
@@ -878,40 +878,40 @@ const V = {
|
|
|
878
878
|
text: n.item.value
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
}),
|
|
882
|
-
return (
|
|
883
|
-
const
|
|
884
|
-
return
|
|
885
|
-
|
|
881
|
+
}), b = B(), S = B(), { isTruncated: x } = Y.useTruncationDetector(b), { isTruncated: L } = Y.useTruncationDetector(S);
|
|
882
|
+
return (q, ne) => {
|
|
883
|
+
const A = D("KTooltip"), w = D("KLabel"), f = D("KBadge"), h = D("KCopy");
|
|
884
|
+
return m(), $("div", Xi, [
|
|
885
|
+
O("div", {
|
|
886
886
|
class: "config-card-details-label",
|
|
887
887
|
"data-testid": `${e.item.key}-label`
|
|
888
888
|
}, [
|
|
889
|
-
j(
|
|
890
|
-
M(
|
|
889
|
+
j(q.$slots, "label", { item: e.item }, () => [
|
|
890
|
+
M(w, { "tooltip-attributes": { maxWidth: "500px" } }, we({
|
|
891
891
|
default: _(() => [
|
|
892
|
-
M(
|
|
893
|
-
text:
|
|
892
|
+
M(A, {
|
|
893
|
+
text: T(x) ? e.item.label : ""
|
|
894
894
|
}, {
|
|
895
895
|
default: _(() => [
|
|
896
|
-
|
|
896
|
+
O("span", {
|
|
897
897
|
ref_key: "labelContent",
|
|
898
|
-
ref:
|
|
898
|
+
ref: b,
|
|
899
899
|
class: "label-content"
|
|
900
|
-
},
|
|
900
|
+
}, F(e.item.label), 513)
|
|
901
901
|
]),
|
|
902
902
|
_: 1
|
|
903
903
|
}, 8, ["text"])
|
|
904
904
|
]),
|
|
905
905
|
_: 2
|
|
906
906
|
}, [
|
|
907
|
-
|
|
907
|
+
d.value ? {
|
|
908
908
|
name: "tooltip",
|
|
909
909
|
fn: _(() => [
|
|
910
|
-
|
|
910
|
+
O("div", {
|
|
911
911
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
912
912
|
}, [
|
|
913
|
-
j(
|
|
914
|
-
U(
|
|
913
|
+
j(q.$slots, "label-tooltip", {}, () => [
|
|
914
|
+
U(F(e.item.tooltip), 1)
|
|
915
915
|
], !0)
|
|
916
916
|
], 8, tr)
|
|
917
917
|
]),
|
|
@@ -920,85 +920,85 @@ const V = {
|
|
|
920
920
|
]), 1024)
|
|
921
921
|
], !0)
|
|
922
922
|
], 8, er),
|
|
923
|
-
|
|
923
|
+
O("div", {
|
|
924
924
|
class: "config-card-details-value",
|
|
925
925
|
"data-testid": `${e.item.key}-property-value`
|
|
926
926
|
}, [
|
|
927
|
-
j(
|
|
927
|
+
j(q.$slots, e.item.key, {
|
|
928
928
|
rowValue: e.item.value
|
|
929
929
|
}, () => [
|
|
930
|
-
|
|
931
|
-
(
|
|
930
|
+
c.value ? (m(), $("div", rr, [
|
|
931
|
+
(m(), N(je(v.value.tag), Vn(Yn(v.value.attrs)), {
|
|
932
932
|
default: _(() => [
|
|
933
|
-
|
|
933
|
+
v.value.additionalComponent === "KBadge" ? (m(), $("div", {
|
|
934
934
|
key: 0,
|
|
935
935
|
"data-testid": `${e.item.key}-badge-tags`
|
|
936
936
|
}, [
|
|
937
|
-
(
|
|
938
|
-
key: `${e.item.key}-badge-tag-${
|
|
937
|
+
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(), N(f, {
|
|
938
|
+
key: `${e.item.key}-badge-tag-${k}`,
|
|
939
939
|
class: "config-badge",
|
|
940
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
941
|
-
tooltip:
|
|
940
|
+
"data-testid": `${e.item.key}-badge-tag-${k}`,
|
|
941
|
+
tooltip: C,
|
|
942
942
|
"truncation-tooltip": ""
|
|
943
943
|
}, {
|
|
944
944
|
default: _(() => [
|
|
945
|
-
U(
|
|
945
|
+
U(F(C), 1)
|
|
946
946
|
]),
|
|
947
947
|
_: 2
|
|
948
948
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
949
|
-
], 8, ar)) :
|
|
949
|
+
], 8, ar)) : v.value.additionalComponent === "KCopy" ? (m(), $("div", {
|
|
950
950
|
key: 1,
|
|
951
951
|
class: "copy-uuid-array",
|
|
952
952
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
953
953
|
}, [
|
|
954
|
-
(
|
|
955
|
-
key: `${e.item.key}-copy-uuid-${
|
|
956
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
957
|
-
text:
|
|
954
|
+
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(), N(h, Wn({ ref_for: !0 }, v.value.childAttrs, {
|
|
955
|
+
key: `${e.item.key}-copy-uuid-${k}`,
|
|
956
|
+
"data-testid": `${e.item.key}-copy-uuid-${k}`,
|
|
957
|
+
text: C
|
|
958
958
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
959
|
-
], 8, or)) :
|
|
959
|
+
], 8, or)) : v.value.additionalComponent === "KMethodBadge" ? (m(), $("div", {
|
|
960
960
|
key: 2,
|
|
961
961
|
class: "method-badge-array",
|
|
962
962
|
"data-testid": `${e.item.key}-badge-methods`
|
|
963
963
|
}, [
|
|
964
|
-
(
|
|
965
|
-
key: `${e.item.key}-badge-method-${
|
|
966
|
-
appearance: Object.values(
|
|
964
|
+
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(), N(f, {
|
|
965
|
+
key: `${e.item.key}-badge-method-${k}`,
|
|
966
|
+
appearance: Object.values(T(Xn)).includes(C.toLowerCase()) ? C.toLowerCase() : "custom",
|
|
967
967
|
class: "config-badge",
|
|
968
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
968
|
+
"data-testid": `${e.item.key}-badge-method-${k}`
|
|
969
969
|
}, {
|
|
970
970
|
default: _(() => [
|
|
971
|
-
U(
|
|
971
|
+
U(F(C), 1)
|
|
972
972
|
]),
|
|
973
973
|
_: 2
|
|
974
974
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
975
|
-
], 8, lr)) :
|
|
975
|
+
], 8, lr)) : v.value.additionalComponent === "JsonCardItem" ? (m(), $("div", {
|
|
976
976
|
key: 3,
|
|
977
977
|
"data-testid": `${n.item.key}-json-array-content`
|
|
978
978
|
}, [
|
|
979
|
-
(
|
|
980
|
-
key: `json-array-item-${
|
|
981
|
-
index:
|
|
979
|
+
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(), N(zt, {
|
|
980
|
+
key: `json-array-item-${k}`,
|
|
981
|
+
index: k,
|
|
982
982
|
"is-array-item": "",
|
|
983
|
-
item:
|
|
983
|
+
item: C
|
|
984
984
|
}, null, 8, ["index", "item"]))), 128))
|
|
985
|
-
], 8, sr)) : (
|
|
985
|
+
], 8, sr)) : (m(), N(A, {
|
|
986
986
|
key: 4,
|
|
987
|
-
text:
|
|
987
|
+
text: T(L) ? e.item.value : ""
|
|
988
988
|
}, {
|
|
989
989
|
default: _(() => [
|
|
990
|
-
|
|
990
|
+
O("span", {
|
|
991
991
|
ref_key: "textContent",
|
|
992
|
-
ref:
|
|
992
|
+
ref: S,
|
|
993
993
|
class: de(["attrs-data-text", { truncated: e.truncated }])
|
|
994
|
-
},
|
|
994
|
+
}, F(v.value.text), 3)
|
|
995
995
|
]),
|
|
996
996
|
_: 1
|
|
997
997
|
}, 8, ["text"]))
|
|
998
998
|
]),
|
|
999
999
|
_: 1
|
|
1000
1000
|
}, 16))
|
|
1001
|
-
])) : (
|
|
1001
|
+
])) : (m(), $("div", {
|
|
1002
1002
|
key: 0,
|
|
1003
1003
|
"data-testid": `${e.item.key}-no-value`
|
|
1004
1004
|
}, " – ", 8, ir))
|
|
@@ -1007,10 +1007,10 @@ const V = {
|
|
|
1007
1007
|
]);
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
|
-
}), Qt = /* @__PURE__ */ oe(ur, [["__scopeId", "data-v-
|
|
1010
|
+
}), Qt = /* @__PURE__ */ oe(ur, [["__scopeId", "data-v-66d61bea"]]), dr = { class: "json-config config-card-code-block" }, fr = {
|
|
1011
1011
|
key: 0,
|
|
1012
1012
|
class: "json-endpoint"
|
|
1013
|
-
}, Zt = /* @__PURE__ */
|
|
1013
|
+
}, Zt = /* @__PURE__ */ J({
|
|
1014
1014
|
__name: "JsonCodeBlock",
|
|
1015
1015
|
props: {
|
|
1016
1016
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1050,13 +1050,13 @@ const V = {
|
|
|
1050
1050
|
});
|
|
1051
1051
|
return (r, o) => {
|
|
1052
1052
|
const a = D("KBadge"), l = D("KCodeBlock");
|
|
1053
|
-
return
|
|
1054
|
-
t.fetcherUrl ? (
|
|
1053
|
+
return m(), $("div", dr, [
|
|
1054
|
+
t.fetcherUrl ? (m(), $("div", fr, [
|
|
1055
1055
|
M(a, {
|
|
1056
1056
|
appearance: t.requestMethod
|
|
1057
1057
|
}, {
|
|
1058
1058
|
default: _(() => [
|
|
1059
|
-
U(
|
|
1059
|
+
U(F(t.requestMethod), 1)
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 1
|
|
1062
1062
|
}, 8, ["appearance"]),
|
|
@@ -1068,7 +1068,7 @@ const V = {
|
|
|
1068
1068
|
theme: "dark"
|
|
1069
1069
|
}, null, 8, ["code"])
|
|
1070
1070
|
])) : K("", !0),
|
|
1071
|
-
t.entityRecord ? (
|
|
1071
|
+
t.entityRecord ? (m(), N(l, {
|
|
1072
1072
|
key: 1,
|
|
1073
1073
|
id: "json-codeblock",
|
|
1074
1074
|
class: de({ "json-content": t.fetcherUrl }),
|
|
@@ -1204,7 +1204,7 @@ function Ir(e, t) {
|
|
|
1204
1204
|
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Tr(t.styleAliases || null), $r.indexOf(this.kind) === -1)
|
|
1205
1205
|
throw new re('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1206
1206
|
}
|
|
1207
|
-
var
|
|
1207
|
+
var ee = Ir;
|
|
1208
1208
|
function kt(e, t) {
|
|
1209
1209
|
var n = [];
|
|
1210
1210
|
return e[t].forEach(function(i) {
|
|
@@ -1239,7 +1239,7 @@ function ze(e) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
ze.prototype.extend = function(t) {
|
|
1241
1241
|
var n = [], i = [];
|
|
1242
|
-
if (t instanceof
|
|
1242
|
+
if (t instanceof ee)
|
|
1243
1243
|
i.push(t);
|
|
1244
1244
|
else if (Array.isArray(t))
|
|
1245
1245
|
i = i.concat(t);
|
|
@@ -1248,30 +1248,30 @@ ze.prototype.extend = function(t) {
|
|
|
1248
1248
|
else
|
|
1249
1249
|
throw new re("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1250
1250
|
n.forEach(function(o) {
|
|
1251
|
-
if (!(o instanceof
|
|
1251
|
+
if (!(o instanceof ee))
|
|
1252
1252
|
throw new re("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1253
1253
|
if (o.loadKind && o.loadKind !== "scalar")
|
|
1254
1254
|
throw new re("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1255
1255
|
if (o.multi)
|
|
1256
1256
|
throw new re("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1257
1257
|
}), i.forEach(function(o) {
|
|
1258
|
-
if (!(o instanceof
|
|
1258
|
+
if (!(o instanceof ee))
|
|
1259
1259
|
throw new re("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1260
1260
|
});
|
|
1261
1261
|
var r = Object.create(ze.prototype);
|
|
1262
1262
|
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = kt(r, "implicit"), r.compiledExplicit = kt(r, "explicit"), r.compiledTypeMap = Er(r.compiledImplicit, r.compiledExplicit), r;
|
|
1263
1263
|
};
|
|
1264
|
-
var tn = ze, nn = new
|
|
1264
|
+
var tn = ze, nn = new ee("tag:yaml.org,2002:str", {
|
|
1265
1265
|
kind: "scalar",
|
|
1266
1266
|
construct: function(e) {
|
|
1267
1267
|
return e !== null ? e : "";
|
|
1268
1268
|
}
|
|
1269
|
-
}), rn = new
|
|
1269
|
+
}), rn = new ee("tag:yaml.org,2002:seq", {
|
|
1270
1270
|
kind: "sequence",
|
|
1271
1271
|
construct: function(e) {
|
|
1272
1272
|
return e !== null ? e : [];
|
|
1273
1273
|
}
|
|
1274
|
-
}), an = new
|
|
1274
|
+
}), an = new ee("tag:yaml.org,2002:map", {
|
|
1275
1275
|
kind: "mapping",
|
|
1276
1276
|
construct: function(e) {
|
|
1277
1277
|
return e !== null ? e : {};
|
|
@@ -1294,7 +1294,7 @@ function Or() {
|
|
|
1294
1294
|
function Lr(e) {
|
|
1295
1295
|
return e === null;
|
|
1296
1296
|
}
|
|
1297
|
-
var ln = new
|
|
1297
|
+
var ln = new ee("tag:yaml.org,2002:null", {
|
|
1298
1298
|
kind: "scalar",
|
|
1299
1299
|
resolve: Fr,
|
|
1300
1300
|
construct: Or,
|
|
@@ -1329,7 +1329,7 @@ function Br(e) {
|
|
|
1329
1329
|
function Kr(e) {
|
|
1330
1330
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1331
1331
|
}
|
|
1332
|
-
var sn = new
|
|
1332
|
+
var sn = new ee("tag:yaml.org,2002:bool", {
|
|
1333
1333
|
kind: "scalar",
|
|
1334
1334
|
resolve: Rr,
|
|
1335
1335
|
construct: Br,
|
|
@@ -1409,7 +1409,7 @@ function Pr(e) {
|
|
|
1409
1409
|
function Ur(e) {
|
|
1410
1410
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !z.isNegativeZero(e);
|
|
1411
1411
|
}
|
|
1412
|
-
var cn = new
|
|
1412
|
+
var cn = new ee("tag:yaml.org,2002:int", {
|
|
1413
1413
|
kind: "scalar",
|
|
1414
1414
|
resolve: Dr,
|
|
1415
1415
|
construct: Pr,
|
|
@@ -1486,7 +1486,7 @@ function Wr(e, t) {
|
|
|
1486
1486
|
function Jr(e) {
|
|
1487
1487
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || z.isNegativeZero(e));
|
|
1488
1488
|
}
|
|
1489
|
-
var un = new
|
|
1489
|
+
var un = new ee("tag:yaml.org,2002:float", {
|
|
1490
1490
|
kind: "scalar",
|
|
1491
1491
|
resolve: Hr,
|
|
1492
1492
|
construct: Vr,
|
|
@@ -1523,7 +1523,7 @@ function zr(e) {
|
|
|
1523
1523
|
function Qr(e) {
|
|
1524
1524
|
return e.toISOString();
|
|
1525
1525
|
}
|
|
1526
|
-
var hn = new
|
|
1526
|
+
var hn = new ee("tag:yaml.org,2002:timestamp", {
|
|
1527
1527
|
kind: "scalar",
|
|
1528
1528
|
resolve: Gr,
|
|
1529
1529
|
construct: zr,
|
|
@@ -1533,7 +1533,7 @@ var hn = new te("tag:yaml.org,2002:timestamp", {
|
|
|
1533
1533
|
function Zr(e) {
|
|
1534
1534
|
return e === "<<" || e === null;
|
|
1535
1535
|
}
|
|
1536
|
-
var gn = new
|
|
1536
|
+
var gn = new ee("tag:yaml.org,2002:merge", {
|
|
1537
1537
|
kind: "scalar",
|
|
1538
1538
|
resolve: Zr
|
|
1539
1539
|
}), at = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
@@ -1563,7 +1563,7 @@ function ta(e) {
|
|
|
1563
1563
|
function na(e) {
|
|
1564
1564
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1565
1565
|
}
|
|
1566
|
-
var yn = new
|
|
1566
|
+
var yn = new ee("tag:yaml.org,2002:binary", {
|
|
1567
1567
|
kind: "scalar",
|
|
1568
1568
|
resolve: Xr,
|
|
1569
1569
|
construct: ea,
|
|
@@ -1588,7 +1588,7 @@ function aa(e) {
|
|
|
1588
1588
|
function oa(e) {
|
|
1589
1589
|
return e !== null ? e : [];
|
|
1590
1590
|
}
|
|
1591
|
-
var vn = new
|
|
1591
|
+
var vn = new ee("tag:yaml.org,2002:omap", {
|
|
1592
1592
|
kind: "sequence",
|
|
1593
1593
|
resolve: aa,
|
|
1594
1594
|
construct: oa
|
|
@@ -1609,7 +1609,7 @@ function ca(e) {
|
|
|
1609
1609
|
i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
|
|
1610
1610
|
return o;
|
|
1611
1611
|
}
|
|
1612
|
-
var bn = new
|
|
1612
|
+
var bn = new ee("tag:yaml.org,2002:pairs", {
|
|
1613
1613
|
kind: "sequence",
|
|
1614
1614
|
resolve: sa,
|
|
1615
1615
|
construct: ca
|
|
@@ -1625,7 +1625,7 @@ function da(e) {
|
|
|
1625
1625
|
function fa(e) {
|
|
1626
1626
|
return e !== null ? e : {};
|
|
1627
1627
|
}
|
|
1628
|
-
var xn = new
|
|
1628
|
+
var xn = new ee("tag:yaml.org,2002:set", {
|
|
1629
1629
|
kind: "mapping",
|
|
1630
1630
|
resolve: da,
|
|
1631
1631
|
construct: fa
|
|
@@ -1693,7 +1693,7 @@ function $n(e, t) {
|
|
|
1693
1693
|
};
|
|
1694
1694
|
return n.snippet = wr(n), new re(t, n);
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function I(e, t) {
|
|
1697
1697
|
throw $n(e, t);
|
|
1698
1698
|
}
|
|
1699
1699
|
function Ke(e, t) {
|
|
@@ -1702,15 +1702,15 @@ function Ke(e, t) {
|
|
|
1702
1702
|
var St = {
|
|
1703
1703
|
YAML: function(t, n, i) {
|
|
1704
1704
|
var r, o, a;
|
|
1705
|
-
t.version !== null &&
|
|
1705
|
+
t.version !== null && I(t, "duplication of %YAML directive"), i.length !== 1 && I(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && I(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && I(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Ke(t, "unsupported YAML version of the document");
|
|
1706
1706
|
},
|
|
1707
1707
|
TAG: function(t, n, i) {
|
|
1708
1708
|
var r, o;
|
|
1709
|
-
i.length !== 2 &&
|
|
1709
|
+
i.length !== 2 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], An.test(r) || I(t, "ill-formed tag handle (first argument) of the TAG directive"), ge.call(t.tagMap, r) && I(t, 'there is a previously declared suffix for "' + r + '" tag handle'), _n.test(o) || I(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1710
1710
|
try {
|
|
1711
1711
|
o = decodeURIComponent(o);
|
|
1712
1712
|
} catch {
|
|
1713
|
-
|
|
1713
|
+
I(t, "tag prefix is malformed: " + o);
|
|
1714
1714
|
}
|
|
1715
1715
|
t.tagMap[r] = o;
|
|
1716
1716
|
}
|
|
@@ -1720,21 +1720,21 @@ function he(e, t, n, i) {
|
|
|
1720
1720
|
if (t < n) {
|
|
1721
1721
|
if (l = e.input.slice(t, n), i)
|
|
1722
1722
|
for (r = 0, o = l.length; r < o; r += 1)
|
|
1723
|
-
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 ||
|
|
1724
|
-
else ma.test(l) &&
|
|
1723
|
+
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || I(e, "expected valid JSON character");
|
|
1724
|
+
else ma.test(l) && I(e, "the stream contains non-printable characters");
|
|
1725
1725
|
e.result += l;
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
1728
|
function $t(e, t, n, i) {
|
|
1729
1729
|
var r, o, a, l;
|
|
1730
|
-
for (z.isObject(n) ||
|
|
1730
|
+
for (z.isObject(n) || I(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1731
1731
|
o = r[a], ge.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1732
1732
|
}
|
|
1733
1733
|
function _e(e, t, n, i, r, o, a, l, s) {
|
|
1734
1734
|
var c, d;
|
|
1735
1735
|
if (Array.isArray(r))
|
|
1736
1736
|
for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
|
|
1737
|
-
Array.isArray(r[c]) &&
|
|
1737
|
+
Array.isArray(r[c]) && I(e, "nested arrays are not supported inside keys"), typeof r == "object" && _t(r[c]) === "[object Object]" && (r[c] = "[object Object]");
|
|
1738
1738
|
if (typeof r == "object" && _t(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1739
1739
|
if (Array.isArray(o))
|
|
1740
1740
|
for (c = 0, d = o.length; c < d; c += 1)
|
|
@@ -1742,7 +1742,7 @@ function _e(e, t, n, i, r, o, a, l, s) {
|
|
|
1742
1742
|
else
|
|
1743
1743
|
$t(e, t, o, n);
|
|
1744
1744
|
else
|
|
1745
|
-
!e.json && !ge.call(n, r) && ge.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position,
|
|
1745
|
+
!e.json && !ge.call(n, r) && ge.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, I(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
|
|
1746
1746
|
configurable: !0,
|
|
1747
1747
|
enumerable: !0,
|
|
1748
1748
|
writable: !0,
|
|
@@ -1752,9 +1752,9 @@ function _e(e, t, n, i, r, o, a, l, s) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
function lt(e) {
|
|
1754
1754
|
var t;
|
|
1755
|
-
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1755
|
+
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : I(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1757
|
+
function G(e, t, n) {
|
|
1758
1758
|
for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
1759
1759
|
for (; ye(r); )
|
|
1760
1760
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
@@ -1793,7 +1793,7 @@ function ka(e, t, n) {
|
|
|
1793
1793
|
if (e.position === e.lineStart && qe(e) || n && Ae(p))
|
|
1794
1794
|
break;
|
|
1795
1795
|
if (ue(p))
|
|
1796
|
-
if (s = e.line, c = e.lineStart, d = e.lineIndent,
|
|
1796
|
+
if (s = e.line, c = e.lineStart, d = e.lineIndent, G(e, !1, -1), e.lineIndent >= t) {
|
|
1797
1797
|
l = !0, p = e.input.charCodeAt(e.position);
|
|
1798
1798
|
continue;
|
|
1799
1799
|
} else {
|
|
@@ -1815,8 +1815,8 @@ function Aa(e, t) {
|
|
|
1815
1815
|
i = e.position, e.position++, r = e.position;
|
|
1816
1816
|
else
|
|
1817
1817
|
return !0;
|
|
1818
|
-
else ue(n) ? (he(e, i, r, !0), st(e,
|
|
1819
|
-
|
|
1818
|
+
else ue(n) ? (he(e, i, r, !0), st(e, G(e, !1, t)), i = r = e.position) : e.position === e.lineStart && qe(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1819
|
+
I(e, "unexpected end of the stream within a single quoted scalar");
|
|
1820
1820
|
}
|
|
1821
1821
|
function _a(e, t) {
|
|
1822
1822
|
var n, i, r, o, a, l;
|
|
@@ -1827,22 +1827,22 @@ function _a(e, t) {
|
|
|
1827
1827
|
return he(e, n, e.position, !0), e.position++, !0;
|
|
1828
1828
|
if (l === 92) {
|
|
1829
1829
|
if (he(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), ue(l))
|
|
1830
|
-
|
|
1830
|
+
G(e, !1, t);
|
|
1831
1831
|
else if (l < 256 && wn[l])
|
|
1832
1832
|
e.result += Sn[l], e.position++;
|
|
1833
1833
|
else if ((a = va(l)) > 0) {
|
|
1834
1834
|
for (r = a, o = 0; r > 0; r--)
|
|
1835
|
-
l = e.input.charCodeAt(++e.position), (a = ya(l)) >= 0 ? o = (o << 4) + a :
|
|
1835
|
+
l = e.input.charCodeAt(++e.position), (a = ya(l)) >= 0 ? o = (o << 4) + a : I(e, "expected hexadecimal character");
|
|
1836
1836
|
e.result += xa(o), e.position++;
|
|
1837
1837
|
} else
|
|
1838
|
-
|
|
1838
|
+
I(e, "unknown escape sequence");
|
|
1839
1839
|
n = i = e.position;
|
|
1840
|
-
} else ue(l) ? (he(e, n, i, !0), st(e,
|
|
1840
|
+
} else ue(l) ? (he(e, n, i, !0), st(e, G(e, !1, t)), n = i = e.position) : e.position === e.lineStart && qe(e) ? I(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1841
1841
|
}
|
|
1842
|
-
|
|
1842
|
+
I(e, "unexpected end of the stream within a double quoted scalar");
|
|
1843
1843
|
}
|
|
1844
1844
|
function wa(e, t) {
|
|
1845
|
-
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, g, p, y = /* @__PURE__ */ Object.create(null),
|
|
1845
|
+
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, g, p, y = /* @__PURE__ */ Object.create(null), v, b, S, x;
|
|
1846
1846
|
if (x = e.input.charCodeAt(e.position), x === 91)
|
|
1847
1847
|
d = 93, p = !1, l = [];
|
|
1848
1848
|
else if (x === 123)
|
|
@@ -1850,11 +1850,11 @@ function wa(e, t) {
|
|
|
1850
1850
|
else
|
|
1851
1851
|
return !1;
|
|
1852
1852
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
|
|
1853
|
-
if (
|
|
1853
|
+
if (G(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
|
|
1854
1854
|
return e.position++, e.tag = a, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1855
|
-
n ? x === 44 &&
|
|
1855
|
+
n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), b = v = S = null, u = g = !1, x === 63 && (c = e.input.charCodeAt(e.position + 1), ae(c) && (u = g = !0, e.position++, G(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Se(e, t, Re, !1, !0), b = e.tag, v = e.result, G(e, !0, t), x = e.input.charCodeAt(e.position), (g || e.line === i) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), G(e, !0, t), Se(e, t, Re, !1, !0), S = e.result), p ? _e(e, l, y, b, v, S, i, r, o) : u ? l.push(_e(e, null, y, b, v, S, i, r, o)) : l.push(v), G(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1856
1856
|
}
|
|
1857
|
-
|
|
1857
|
+
I(e, "unexpected end of the stream within a flow collection");
|
|
1858
1858
|
}
|
|
1859
1859
|
function Sa(e, t) {
|
|
1860
1860
|
var n, i, r = We, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
|
|
@@ -1866,9 +1866,9 @@ function Sa(e, t) {
|
|
|
1866
1866
|
return !1;
|
|
1867
1867
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1868
1868
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1869
|
-
We === r ? r = u === 43 ? At : pa :
|
|
1869
|
+
We === r ? r = u === 43 ? At : pa : I(e, "repeat of a chomping mode identifier");
|
|
1870
1870
|
else if ((d = ba(u)) >= 0)
|
|
1871
|
-
d === 0 ?
|
|
1871
|
+
d === 0 ? I(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? I(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
|
|
1872
1872
|
else
|
|
1873
1873
|
break;
|
|
1874
1874
|
if (ye(u)) {
|
|
@@ -1906,24 +1906,24 @@ function Sa(e, t) {
|
|
|
1906
1906
|
function Tt(e, t) {
|
|
1907
1907
|
var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
|
|
1908
1908
|
if (e.firstTabInLine !== -1) return !1;
|
|
1909
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1910
|
-
if (l = !0, e.position++,
|
|
1909
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !ae(a)))); ) {
|
|
1910
|
+
if (l = !0, e.position++, G(e, !0, -1) && e.lineIndent <= t) {
|
|
1911
1911
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1912
1912
|
continue;
|
|
1913
1913
|
}
|
|
1914
|
-
if (n = e.line, Se(e, t, kn, !1, !0), o.push(e.result),
|
|
1915
|
-
|
|
1914
|
+
if (n = e.line, Se(e, t, kn, !1, !0), o.push(e.result), G(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1915
|
+
I(e, "bad indentation of a sequence entry");
|
|
1916
1916
|
else if (e.lineIndent < t)
|
|
1917
1917
|
break;
|
|
1918
1918
|
}
|
|
1919
1919
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1920
1920
|
}
|
|
1921
1921
|
function $a(e, t, n) {
|
|
1922
|
-
var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), p = null, y = null,
|
|
1922
|
+
var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), p = null, y = null, v = null, b = !1, S = !1, x;
|
|
1923
1923
|
if (e.firstTabInLine !== -1) return !1;
|
|
1924
1924
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), x = e.input.charCodeAt(e.position); x !== 0; ) {
|
|
1925
|
-
if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1926
|
-
x === 63 ? (b && (_e(e, u, g, p, y, null, a, l, s), p = y =
|
|
1925
|
+
if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && ae(i))
|
|
1926
|
+
x === 63 ? (b && (_e(e, u, g, p, y, null, a, l, s), p = y = v = null), S = !0, b = !0, r = !0) : b ? (b = !1, r = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = i;
|
|
1927
1927
|
else {
|
|
1928
1928
|
if (a = e.line, l = e.lineStart, s = e.position, !Se(e, n, Cn, !1, !0))
|
|
1929
1929
|
break;
|
|
@@ -1931,67 +1931,67 @@ function $a(e, t, n) {
|
|
|
1931
1931
|
for (x = e.input.charCodeAt(e.position); ye(x); )
|
|
1932
1932
|
x = e.input.charCodeAt(++e.position);
|
|
1933
1933
|
if (x === 58)
|
|
1934
|
-
x = e.input.charCodeAt(++e.position), ae(x) ||
|
|
1935
|
-
else if (
|
|
1936
|
-
|
|
1934
|
+
x = e.input.charCodeAt(++e.position), ae(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (_e(e, u, g, p, y, null, a, l, s), p = y = v = null), S = !0, b = !1, r = !1, p = e.tag, y = e.result;
|
|
1935
|
+
else if (S)
|
|
1936
|
+
I(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1937
1937
|
else
|
|
1938
1938
|
return e.tag = c, e.anchor = d, !0;
|
|
1939
|
-
} else if (
|
|
1940
|
-
|
|
1939
|
+
} else if (S)
|
|
1940
|
+
I(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1941
1941
|
else
|
|
1942
1942
|
return e.tag = c, e.anchor = d, !0;
|
|
1943
1943
|
}
|
|
1944
|
-
if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, s = e.position), Se(e, t, Be, !0, r) && (b ? y = e.result :
|
|
1945
|
-
|
|
1944
|
+
if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, s = e.position), Se(e, t, Be, !0, r) && (b ? y = e.result : v = e.result), b || (_e(e, u, g, p, y, v, a, l, s), p = y = v = null), G(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
|
|
1945
|
+
I(e, "bad indentation of a mapping entry");
|
|
1946
1946
|
else if (e.lineIndent < t)
|
|
1947
1947
|
break;
|
|
1948
1948
|
}
|
|
1949
|
-
return b && _e(e, u, g, p, y, null, a, l, s),
|
|
1949
|
+
return b && _e(e, u, g, p, y, null, a, l, s), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
|
|
1950
1950
|
}
|
|
1951
1951
|
function Ta(e) {
|
|
1952
1952
|
var t, n = !1, i = !1, r, o, a;
|
|
1953
1953
|
if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
|
|
1954
|
-
if (e.tag !== null &&
|
|
1954
|
+
if (e.tag !== null && I(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
|
|
1955
1955
|
do
|
|
1956
1956
|
a = e.input.charCodeAt(++e.position);
|
|
1957
1957
|
while (a !== 0 && a !== 62);
|
|
1958
|
-
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) :
|
|
1958
|
+
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : I(e, "unexpected end of the stream within a verbatim tag");
|
|
1959
1959
|
} else {
|
|
1960
1960
|
for (; a !== 0 && !ae(a); )
|
|
1961
|
-
a === 33 && (i ?
|
|
1962
|
-
o = e.input.slice(t, e.position), ga.test(o) &&
|
|
1961
|
+
a === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), An.test(r) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1962
|
+
o = e.input.slice(t, e.position), ga.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
|
|
1963
1963
|
}
|
|
1964
|
-
o && !_n.test(o) &&
|
|
1964
|
+
o && !_n.test(o) && I(e, "tag name cannot contain such characters: " + o);
|
|
1965
1965
|
try {
|
|
1966
1966
|
o = decodeURIComponent(o);
|
|
1967
1967
|
} catch {
|
|
1968
|
-
|
|
1968
|
+
I(e, "tag name is malformed: " + o);
|
|
1969
1969
|
}
|
|
1970
|
-
return n ? e.tag = o : ge.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o :
|
|
1970
|
+
return n ? e.tag = o : ge.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : I(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
1971
1971
|
}
|
|
1972
1972
|
function Ia(e) {
|
|
1973
1973
|
var t, n;
|
|
1974
1974
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
1975
|
-
for (e.anchor !== null &&
|
|
1975
|
+
for (e.anchor !== null && I(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ae(n) && !Ae(n); )
|
|
1976
1976
|
n = e.input.charCodeAt(++e.position);
|
|
1977
|
-
return e.position === t &&
|
|
1977
|
+
return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1978
1978
|
}
|
|
1979
1979
|
function Ea(e) {
|
|
1980
1980
|
var t, n, i;
|
|
1981
1981
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
1982
1982
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ae(i) && !Ae(i); )
|
|
1983
1983
|
i = e.input.charCodeAt(++e.position);
|
|
1984
|
-
return e.position === t &&
|
|
1984
|
+
return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ge.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], G(e, !0, -1), !0;
|
|
1985
1985
|
}
|
|
1986
1986
|
function Se(e, t, n, i, r) {
|
|
1987
|
-
var o, a, l, s = 1, c = !1, d = !1, u, g, p, y,
|
|
1988
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Be === n || kn === n, i &&
|
|
1987
|
+
var o, a, l, s = 1, c = !1, d = !1, u, g, p, y, v, b;
|
|
1988
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Be === n || kn === n, i && G(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1989
1989
|
for (; Ta(e) || Ia(e); )
|
|
1990
|
-
|
|
1991
|
-
if (l && (l = c || r), (s === 1 || Be === n) && (Re === n || Cn === n ?
|
|
1990
|
+
G(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1991
|
+
if (l && (l = c || r), (s === 1 || Be === n) && (Re === n || Cn === n ? v = t : v = t + 1, b = e.position - e.lineStart, s === 1 ? l && (Tt(e, b) || $a(e, b, v)) || wa(e, v) ? d = !0 : (a && Sa(e, v) || Aa(e, v) || _a(e, v) ? d = !0 : Ea(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : ka(e, v, Re === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Tt(e, b))), e.tag === null)
|
|
1992
1992
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1993
1993
|
else if (e.tag === "?") {
|
|
1994
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
1994
|
+
for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
1995
1995
|
if (y = e.implicitTypes[u], y.resolve(e.result)) {
|
|
1996
1996
|
e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1997
1997
|
break;
|
|
@@ -2005,16 +2005,16 @@ function Se(e, t, n, i, r) {
|
|
|
2005
2005
|
y = p[u];
|
|
2006
2006
|
break;
|
|
2007
2007
|
}
|
|
2008
|
-
y ||
|
|
2008
|
+
y || I(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && I(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : I(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2009
2009
|
}
|
|
2010
2010
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2011
2011
|
}
|
|
2012
2012
|
function Fa(e) {
|
|
2013
2013
|
var t = e.position, n, i, r, o = !1, a;
|
|
2014
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (
|
|
2014
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (G(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
2015
2015
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ae(a); )
|
|
2016
2016
|
a = e.input.charCodeAt(++e.position);
|
|
2017
|
-
for (i = e.input.slice(n, e.position), r = [], i.length < 1 &&
|
|
2017
|
+
for (i = e.input.slice(n, e.position), r = [], i.length < 1 && I(e, "directive name must not be less than one character in length"); a !== 0; ) {
|
|
2018
2018
|
for (; ye(a); )
|
|
2019
2019
|
a = e.input.charCodeAt(++e.position);
|
|
2020
2020
|
if (a === 35) {
|
|
@@ -2030,12 +2030,12 @@ function Fa(e) {
|
|
|
2030
2030
|
}
|
|
2031
2031
|
a !== 0 && lt(e), ge.call(St, i) ? St[i](e, i, r) : Ke(e, 'unknown document directive "' + i + '"');
|
|
2032
2032
|
}
|
|
2033
|
-
if (
|
|
2034
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
2033
|
+
if (G(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, G(e, !0, -1)) : o && I(e, "directives end mark is expected"), Se(e, e.lineIndent - 1, Be, !1, !0), G(e, !0, -1), e.checkLineBreaks && ha.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
|
|
2034
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, G(e, !0, -1));
|
|
2035
2035
|
return;
|
|
2036
2036
|
}
|
|
2037
2037
|
if (e.position < e.length - 1)
|
|
2038
|
-
|
|
2038
|
+
I(e, "end of the stream or a document separator is expected");
|
|
2039
2039
|
else
|
|
2040
2040
|
return;
|
|
2041
2041
|
}
|
|
@@ -2043,7 +2043,7 @@ function Tn(e, t) {
|
|
|
2043
2043
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2044
2044
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2045
2045
|
var n = new Ca(e, t), i = e.indexOf("\0");
|
|
2046
|
-
for (i !== -1 && (n.position = i,
|
|
2046
|
+
for (i !== -1 && (n.position = i, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2047
2047
|
n.lineIndent += 1, n.position += 1;
|
|
2048
2048
|
for (; n.position < n.length - 1; )
|
|
2049
2049
|
Fa(n);
|
|
@@ -2068,22 +2068,22 @@ function La(e, t) {
|
|
|
2068
2068
|
var Ra = Oa, Ba = La, In = {
|
|
2069
2069
|
loadAll: Ra,
|
|
2070
2070
|
load: Ba
|
|
2071
|
-
}, En = Object.prototype.toString, Fn = Object.prototype.hasOwnProperty, ct = 65279, Ka = 9, Ie = 10, Na = 13, Ma = 32, ja = 33, Da = 34, Qe = 35, Pa = 37, Ua = 38, qa = 39, Ha = 42, On = 44, Va = 45, Ne = 58, Ya = 61, Wa = 62, Ja = 63, Ga = 64, Ln = 91, Rn = 93, za = 96, Bn = 123, Qa = 124, Kn = 125,
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2071
|
+
}, En = Object.prototype.toString, Fn = Object.prototype.hasOwnProperty, ct = 65279, Ka = 9, Ie = 10, Na = 13, Ma = 32, ja = 33, Da = 34, Qe = 35, Pa = 37, Ua = 38, qa = 39, Ha = 42, On = 44, Va = 45, Ne = 58, Ya = 61, Wa = 62, Ja = 63, Ga = 64, Ln = 91, Rn = 93, za = 96, Bn = 123, Qa = 124, Kn = 125, te = {};
|
|
2072
|
+
te[0] = "\\0";
|
|
2073
|
+
te[7] = "\\a";
|
|
2074
|
+
te[8] = "\\b";
|
|
2075
|
+
te[9] = "\\t";
|
|
2076
|
+
te[10] = "\\n";
|
|
2077
|
+
te[11] = "\\v";
|
|
2078
|
+
te[12] = "\\f";
|
|
2079
|
+
te[13] = "\\r";
|
|
2080
|
+
te[27] = "\\e";
|
|
2081
|
+
te[34] = '\\"';
|
|
2082
|
+
te[92] = "\\\\";
|
|
2083
|
+
te[133] = "\\N";
|
|
2084
|
+
te[160] = "\\_";
|
|
2085
|
+
te[8232] = "\\L";
|
|
2086
|
+
te[8233] = "\\P";
|
|
2087
2087
|
var Za = [
|
|
2088
2088
|
"y",
|
|
2089
2089
|
"Y",
|
|
@@ -2178,12 +2178,12 @@ function Nn(e) {
|
|
|
2178
2178
|
}
|
|
2179
2179
|
var Mn = 1, Xe = 2, jn = 3, Dn = 4, ke = 5;
|
|
2180
2180
|
function lo(e, t, n, i, r, o, a, l) {
|
|
2181
|
-
var s, c = 0, d = null, u = !1, g = !1, p = i !== -1, y = -1,
|
|
2181
|
+
var s, c = 0, d = null, u = !1, g = !1, p = i !== -1, y = -1, v = ao($e(e, 0)) && oo($e(e, e.length - 1));
|
|
2182
2182
|
if (t || a)
|
|
2183
2183
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2184
2184
|
if (c = $e(e, s), !Fe(c))
|
|
2185
2185
|
return ke;
|
|
2186
|
-
|
|
2186
|
+
v = v && Ft(c, d, l), d = c;
|
|
2187
2187
|
}
|
|
2188
2188
|
else {
|
|
2189
2189
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
@@ -2192,11 +2192,11 @@ function lo(e, t, n, i, r, o, a, l) {
|
|
|
2192
2192
|
s - y - 1 > i && e[y + 1] !== " ", y = s);
|
|
2193
2193
|
else if (!Fe(c))
|
|
2194
2194
|
return ke;
|
|
2195
|
-
|
|
2195
|
+
v = v && Ft(c, d, l), d = c;
|
|
2196
2196
|
}
|
|
2197
2197
|
g = g || p && s - y - 1 > i && e[y + 1] !== " ";
|
|
2198
2198
|
}
|
|
2199
|
-
return !u && !g ?
|
|
2199
|
+
return !u && !g ? v && !a && !r(e) ? Mn : o === Ee ? ke : Xe : n > 9 && Nn(e) ? ke : a ? o === Ee ? ke : Xe : g ? Dn : jn;
|
|
2200
2200
|
}
|
|
2201
2201
|
function so(e, t, n, i, r) {
|
|
2202
2202
|
e.dump = function() {
|
|
@@ -2269,7 +2269,7 @@ function Rt(e, t) {
|
|
|
2269
2269
|
}
|
|
2270
2270
|
function uo(e) {
|
|
2271
2271
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
2272
|
-
n = $e(e, r), i =
|
|
2272
|
+
n = $e(e, r), i = te[n], !i && Fe(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || to(n);
|
|
2273
2273
|
return t;
|
|
2274
2274
|
}
|
|
2275
2275
|
function fo(e, t, n) {
|
|
@@ -2379,7 +2379,7 @@ function ut(e, t) {
|
|
|
2379
2379
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2380
2380
|
};
|
|
2381
2381
|
}
|
|
2382
|
-
var bo =
|
|
2382
|
+
var bo = ee, xo = tn, Co = on, ko = dn, Ao = fn, _o = ot, wo = In.load, So = In.loadAll, $o = vo.dump, To = re, Io = {
|
|
2383
2383
|
binary: yn,
|
|
2384
2384
|
float: un,
|
|
2385
2385
|
map: an,
|
|
@@ -2409,7 +2409,7 @@ var bo = te, xo = tn, Co = on, ko = dn, Ao = fn, _o = ot, wo = In.load, So = In.
|
|
|
2409
2409
|
safeLoadAll: Fo,
|
|
2410
2410
|
safeDump: Oo
|
|
2411
2411
|
};
|
|
2412
|
-
const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
2412
|
+
const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */ J({
|
|
2413
2413
|
__name: "YamlCodeBlock",
|
|
2414
2414
|
props: {
|
|
2415
2415
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2425,8 +2425,8 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2425
2425
|
});
|
|
2426
2426
|
return (i, r) => {
|
|
2427
2427
|
const o = D("KCodeBlock");
|
|
2428
|
-
return
|
|
2429
|
-
t.entityRecord ? (
|
|
2428
|
+
return m(), $("div", Ro, [
|
|
2429
|
+
t.entityRecord ? (m(), N(o, {
|
|
2430
2430
|
key: 0,
|
|
2431
2431
|
id: "yaml-codeblock",
|
|
2432
2432
|
code: n.value,
|
|
@@ -2436,7 +2436,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2436
2436
|
]);
|
|
2437
2437
|
};
|
|
2438
2438
|
}
|
|
2439
|
-
}), Bo = { class: "terraform-config config-card-code-block" }, ie = " ", Un = /* @__PURE__ */
|
|
2439
|
+
}), Bo = { class: "terraform-config config-card-code-block" }, ie = " ", Un = /* @__PURE__ */ J({
|
|
2440
2440
|
__name: "TerraformCodeBlock",
|
|
2441
2441
|
props: {
|
|
2442
2442
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2471,10 +2471,10 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2471
2471
|
return s ? u += `${d}}` : u = "{}", u;
|
|
2472
2472
|
const g = Object.fromEntries(Object.entries(l).filter(([, y]) => y !== null));
|
|
2473
2473
|
let p = "";
|
|
2474
|
-
for (const [y,
|
|
2475
|
-
Array.isArray(
|
|
2476
|
-
`, p += r(
|
|
2477
|
-
`, p += i(
|
|
2474
|
+
for (const [y, v] of Object.entries(g))
|
|
2475
|
+
Array.isArray(v) ? v.length === 0 ? p = "[]" : (p = `[
|
|
2476
|
+
`, p += r(v, void 0, d), p += `${d}${ie}]`) : v && typeof v == "object" ? (p = `{
|
|
2477
|
+
`, p += i(v, void 0, d), p += `${d}${ie}}`) : p = String(v ?? ""), typeof v == "string" && (p = `"${p}"`), u += `${d}${ie}${y} = ${p}
|
|
2478
2478
|
`;
|
|
2479
2479
|
return s ? u += `${d}}
|
|
2480
2480
|
` : u;
|
|
@@ -2500,13 +2500,13 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2500
2500
|
Array.isArray(d) ? s += r(d, c) : typeof d == "object" ? s += i(d, c) : s += n(d, c);
|
|
2501
2501
|
return s;
|
|
2502
2502
|
}, a = E(() => {
|
|
2503
|
-
var u, g, p, y,
|
|
2503
|
+
var u, g, p, y, v, b, S;
|
|
2504
2504
|
const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x != null)), s = t.entityRecord.config ? Object.fromEntries(Object.entries((u = t.entityRecord) == null ? void 0 : u.config).filter(([, x]) => x != null)) : void 0;
|
|
2505
2505
|
if (s && (l.config = s), Object.keys(l).length === 0)
|
|
2506
2506
|
return "";
|
|
2507
2507
|
delete l.id;
|
|
2508
2508
|
let c = "", d = "";
|
|
2509
|
-
if ((g = l.service) != null && g.id ? (d = "service", delete l.service) : (p = l.route) != null && p.id ? (d = "route", delete l.route) : (y = l.consumer) != null && y.id ? (d = "consumer", delete l.consumer) : (
|
|
2509
|
+
if ((g = l.service) != null && g.id ? (d = "service", delete l.service) : (p = l.route) != null && p.id ? (d = "route", delete l.route) : (y = l.consumer) != null && y.id ? (d = "consumer", delete l.consumer) : (v = l.consumer_group) != null && v.id ? (d = "consumer_group", delete l.consumer_group) : (b = l.certificate) != null && b.id ? (d = "certificate", delete l.certificate) : (S = l.set) != null && S.id && (d = "set", delete l.set), t.entityType === "plugin") {
|
|
2510
2510
|
const x = t.credentialType.replace(/-/g, "_") || (l.name + "").replace(/-/g, "_");
|
|
2511
2511
|
delete l.name, c += `resource "konnect_gateway_plugin_${x}" "my_${x}" {
|
|
2512
2512
|
`;
|
|
@@ -2522,8 +2522,8 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2522
2522
|
});
|
|
2523
2523
|
return (l, s) => {
|
|
2524
2524
|
const c = D("KCodeBlock");
|
|
2525
|
-
return
|
|
2526
|
-
t.entityRecord ? (
|
|
2525
|
+
return m(), $("div", Bo, [
|
|
2526
|
+
t.entityRecord ? (m(), N(c, {
|
|
2527
2527
|
key: 0,
|
|
2528
2528
|
id: "terraform-codeblock",
|
|
2529
2529
|
code: a.value,
|
|
@@ -2539,7 +2539,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2539
2539
|
}, No = ["data-testid"], Mo = {
|
|
2540
2540
|
key: 0,
|
|
2541
2541
|
class: "config-card-prop-section-title"
|
|
2542
|
-
}, jo = /* @__PURE__ */
|
|
2542
|
+
}, jo = /* @__PURE__ */ J({
|
|
2543
2543
|
__name: "ConfigCardDisplay",
|
|
2544
2544
|
props: {
|
|
2545
2545
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2591,7 +2591,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2591
2591
|
}
|
|
2592
2592
|
},
|
|
2593
2593
|
setup(e) {
|
|
2594
|
-
const t = e, n = De(), { i18n: { t: i } } =
|
|
2594
|
+
const t = e, n = De(), { i18n: { t: i } } = Y.useI18n(), r = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = E(() => {
|
|
2595
2595
|
if (!t.record)
|
|
2596
2596
|
return t.record;
|
|
2597
2597
|
let a = t.record;
|
|
@@ -2599,15 +2599,15 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2599
2599
|
const l = JSON.parse(JSON.stringify(a));
|
|
2600
2600
|
return delete l.created_at, delete l.updated_at, l;
|
|
2601
2601
|
});
|
|
2602
|
-
return (a, l) => (
|
|
2603
|
-
e.format === "structured" ? (
|
|
2604
|
-
(
|
|
2602
|
+
return (a, l) => (m(), $(ce, null, [
|
|
2603
|
+
e.format === "structured" ? (m(), $("div", Ko, [
|
|
2604
|
+
(m(!0), $(ce, null, se(e.propListTypes, (s) => (m(), $("div", {
|
|
2605
2605
|
key: `config-card-details-${s}-props`,
|
|
2606
2606
|
class: de(`config-card-details-${s}-props`),
|
|
2607
2607
|
"data-testid": `config-card-details-${s}-props`
|
|
2608
2608
|
}, [
|
|
2609
|
-
s !== "basic" ? (
|
|
2610
|
-
(
|
|
2609
|
+
s !== "basic" ? (m(), $("div", Mo, F(s === "advanced" ? T(i)("baseConfigCard.sections.advanced") : T(i)("baseConfigCard.sections.plugin")), 1)) : K("", !0),
|
|
2610
|
+
(m(!0), $(ce, null, se(e.propertyCollections[s], (c) => (m(), N(Qt, {
|
|
2611
2611
|
key: c.key,
|
|
2612
2612
|
item: c
|
|
2613
2613
|
}, we({
|
|
@@ -2632,18 +2632,18 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2632
2632
|
]), 1032, ["item"]))), 128))
|
|
2633
2633
|
], 10, No))), 128))
|
|
2634
2634
|
])) : K("", !0),
|
|
2635
|
-
e.format === "json" && o.value ? (
|
|
2635
|
+
e.format === "json" && o.value ? (m(), N(Zt, {
|
|
2636
2636
|
key: 1,
|
|
2637
2637
|
config: t.config,
|
|
2638
2638
|
"entity-record": o.value,
|
|
2639
2639
|
"fetcher-url": t.fetcherUrl,
|
|
2640
2640
|
"request-method": "get"
|
|
2641
2641
|
}, null, 8, ["config", "entity-record", "fetcher-url"])) : K("", !0),
|
|
2642
|
-
e.format === "yaml" && o.value ? (
|
|
2642
|
+
e.format === "yaml" && o.value ? (m(), N(Pn, {
|
|
2643
2643
|
key: 2,
|
|
2644
2644
|
"entity-record": o.value
|
|
2645
2645
|
}, null, 8, ["entity-record"])) : K("", !0),
|
|
2646
|
-
e.format === "terraform" && o.value ? (
|
|
2646
|
+
e.format === "terraform" && o.value ? (m(), N(Un, {
|
|
2647
2647
|
key: 3,
|
|
2648
2648
|
"entity-record": o.value,
|
|
2649
2649
|
"entity-type": t.entityType
|
|
@@ -2653,7 +2653,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2653
2653
|
}), Do = /* @__PURE__ */ oe(jo, [["__scopeId", "data-v-d67757a9"]]), Po = {
|
|
2654
2654
|
class: "config-card-title",
|
|
2655
2655
|
"data-testid": "config-card-title"
|
|
2656
|
-
}, Uo = { class: "config-card-actions" }, qo = ["href"], Ho = { class: "config-card-details-section" }, Vo = /* @__PURE__ */
|
|
2656
|
+
}, Uo = { class: "config-card-actions" }, qo = ["href"], Ho = { class: "config-card-details-section" }, Vo = /* @__PURE__ */ J({
|
|
2657
2657
|
__name: "EntityBaseConfigCard",
|
|
2658
2658
|
props: {
|
|
2659
2659
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2756,10 +2756,10 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2756
2756
|
},
|
|
2757
2757
|
emits: ["loading", "fetch:success", "fetch:error"],
|
|
2758
2758
|
setup(e, { emit: t }) {
|
|
2759
|
-
var
|
|
2760
|
-
const n = t, i = e, { i18n: { t: r } } =
|
|
2761
|
-
|
|
2762
|
-
const { axiosInstance: l } =
|
|
2759
|
+
var w;
|
|
2760
|
+
const n = t, i = e, { i18n: { t: r } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { convertKeyToTitle: a } = Y.useStringHelpers();
|
|
2761
|
+
Y.useSubSchema(i.pluginConfigKey);
|
|
2762
|
+
const { axiosInstance: l } = Y.useAxios((w = i.config) == null ? void 0 : w.axiosRequestConfig), s = [
|
|
2763
2763
|
{
|
|
2764
2764
|
label: r("baseConfigCard.general.structuredFormat"),
|
|
2765
2765
|
value: "structured",
|
|
@@ -2780,20 +2780,20 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2780
2780
|
});
|
|
2781
2781
|
const c = s[0].value, d = B(c), u = (f) => {
|
|
2782
2782
|
d.value = f == null ? void 0 : f.value;
|
|
2783
|
-
}, g = (f,
|
|
2784
|
-
localStorage.setItem(f,
|
|
2783
|
+
}, g = (f, h) => {
|
|
2784
|
+
localStorage.setItem(f, h);
|
|
2785
2785
|
};
|
|
2786
2786
|
ve(d, (f) => {
|
|
2787
2787
|
i.config.formatPreferenceKey && g(i.config.formatPreferenceKey, f);
|
|
2788
2788
|
}), tt(() => {
|
|
2789
2789
|
if (i.config.formatPreferenceKey) {
|
|
2790
2790
|
const f = localStorage.getItem(i.config.formatPreferenceKey);
|
|
2791
|
-
f && s.some((
|
|
2791
|
+
f && s.some((h) => h.value === f) ? d.value = f : d.value = c, g(i.config.formatPreferenceKey, d.value);
|
|
2792
2792
|
}
|
|
2793
2793
|
});
|
|
2794
2794
|
const p = {
|
|
2795
2795
|
id: {
|
|
2796
|
-
type:
|
|
2796
|
+
type: V.ID,
|
|
2797
2797
|
label: r("baseConfigCard.commonFields.id_label"),
|
|
2798
2798
|
order: 0,
|
|
2799
2799
|
section: le.Basic
|
|
@@ -2803,159 +2803,159 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2803
2803
|
section: le.Basic
|
|
2804
2804
|
},
|
|
2805
2805
|
enabled: {
|
|
2806
|
-
type:
|
|
2806
|
+
type: V.BadgeStatus,
|
|
2807
2807
|
order: 2,
|
|
2808
2808
|
section: le.Basic
|
|
2809
2809
|
},
|
|
2810
2810
|
updated_at: {
|
|
2811
|
-
type:
|
|
2811
|
+
type: V.Date,
|
|
2812
2812
|
label: r("baseConfigCard.commonFields.updated_at_label"),
|
|
2813
2813
|
order: 3,
|
|
2814
2814
|
section: le.Basic
|
|
2815
2815
|
},
|
|
2816
2816
|
created_at: {
|
|
2817
|
-
type:
|
|
2817
|
+
type: V.Date,
|
|
2818
2818
|
label: r("baseConfigCard.commonFields.created_at_label"),
|
|
2819
2819
|
order: 4,
|
|
2820
2820
|
section: le.Basic
|
|
2821
2821
|
},
|
|
2822
2822
|
tags: {
|
|
2823
|
-
type:
|
|
2823
|
+
type: V.BadgeTag,
|
|
2824
2824
|
order: -1,
|
|
2825
2825
|
// the last property displayed
|
|
2826
2826
|
section: le.Basic
|
|
2827
2827
|
},
|
|
2828
2828
|
partials: {
|
|
2829
|
-
type:
|
|
2829
|
+
type: V.LinkInternal,
|
|
2830
2830
|
label: r("baseConfigCard.commonFields.partial_label"),
|
|
2831
2831
|
order: -1,
|
|
2832
2832
|
// the last property displayed
|
|
2833
2833
|
section: le.Basic
|
|
2834
2834
|
}
|
|
2835
|
-
}, y = B(!1),
|
|
2836
|
-
var
|
|
2837
|
-
if (!
|
|
2835
|
+
}, y = B(!1), v = B(!1), b = B(""), S = B({}), x = E(() => {
|
|
2836
|
+
var C, k, H;
|
|
2837
|
+
if (!S.value)
|
|
2838
2838
|
return [];
|
|
2839
|
-
const f = [],
|
|
2840
|
-
for (const P in
|
|
2841
|
-
const R = (
|
|
2842
|
-
let
|
|
2843
|
-
(
|
|
2839
|
+
const f = [], h = Object.keys(S.value).length;
|
|
2840
|
+
for (const P in S.value) {
|
|
2841
|
+
const R = (k = (C = i.configSchema) == null ? void 0 : C[P]) == null ? void 0 : k.order, Q = (H = p[P]) == null ? void 0 : H.order;
|
|
2842
|
+
let W = h;
|
|
2843
|
+
(Q || Q === 0) && (W = Q === -1 ? h + 1 : Q), R && (W = R === -1 ? h + 1 : R), f.push([P, W]);
|
|
2844
2844
|
}
|
|
2845
2845
|
return f.sort(function(P, R) {
|
|
2846
2846
|
return P[1] - R[1];
|
|
2847
2847
|
}), f.map((P) => {
|
|
2848
2848
|
var Oe, dt;
|
|
2849
|
-
const R = P[0],
|
|
2849
|
+
const R = P[0], Q = (Oe = S.value) == null ? void 0 : Oe[R], W = ((dt = i.configSchema) == null ? void 0 : dt[R]) || {}, Z = p[R];
|
|
2850
2850
|
return {
|
|
2851
2851
|
key: R,
|
|
2852
|
-
value:
|
|
2853
|
-
hidden:
|
|
2854
|
-
type:
|
|
2855
|
-
label:
|
|
2856
|
-
tooltip:
|
|
2857
|
-
section:
|
|
2852
|
+
value: Q,
|
|
2853
|
+
hidden: W.hidden || !1,
|
|
2854
|
+
type: W.type ?? ((Z == null ? void 0 : Z.type) || V.Text),
|
|
2855
|
+
label: W.label ?? ((Z == null ? void 0 : Z.label) || a(R)),
|
|
2856
|
+
tooltip: W.tooltip ?? ((Z == null ? void 0 : Z.tooltip) || void 0),
|
|
2857
|
+
section: W.section ?? ((Z == null ? void 0 : Z.section) || le.Advanced)
|
|
2858
2858
|
};
|
|
2859
2859
|
}).filter((P) => !P.hidden && P.key !== i.pluginConfigKey);
|
|
2860
|
-
}),
|
|
2861
|
-
var
|
|
2862
|
-
if (!
|
|
2860
|
+
}), L = E(() => {
|
|
2861
|
+
var k, H;
|
|
2862
|
+
if (!S.value || !i.pluginConfigKey)
|
|
2863
2863
|
return [];
|
|
2864
|
-
const f =
|
|
2864
|
+
const f = S.value[i.pluginConfigKey] || {}, h = Object.keys(f).length, C = [];
|
|
2865
2865
|
for (const P in f) {
|
|
2866
|
-
const R = (
|
|
2867
|
-
let
|
|
2868
|
-
R && (
|
|
2866
|
+
const R = (H = (k = i.pluginConfigSchema) == null ? void 0 : k[P]) == null ? void 0 : H.order, Q = f[P];
|
|
2867
|
+
let W = Q != null && Q !== "" ? h - 1 : h;
|
|
2868
|
+
R && (W = R === -1 ? h + 1 : R), C.push([P, W]);
|
|
2869
2869
|
}
|
|
2870
|
-
return
|
|
2870
|
+
return C.sort(function(P, R) {
|
|
2871
2871
|
return P[1] - R[1];
|
|
2872
|
-
}),
|
|
2873
|
-
var
|
|
2874
|
-
const R = P[0],
|
|
2872
|
+
}), C.map((P) => {
|
|
2873
|
+
var Z;
|
|
2874
|
+
const R = P[0], Q = f[R], W = ((Z = i.pluginConfigSchema) == null ? void 0 : Z[R]) || {};
|
|
2875
2875
|
return {
|
|
2876
2876
|
key: R,
|
|
2877
|
-
value:
|
|
2878
|
-
hidden:
|
|
2879
|
-
type:
|
|
2880
|
-
label:
|
|
2881
|
-
tooltip:
|
|
2877
|
+
value: Q,
|
|
2878
|
+
hidden: W.hidden || !1,
|
|
2879
|
+
type: W.type ?? V.Text,
|
|
2880
|
+
label: W.label ?? a(R),
|
|
2881
|
+
tooltip: W.tooltip ?? void 0,
|
|
2882
2882
|
section: le.Plugin
|
|
2883
2883
|
};
|
|
2884
2884
|
}).filter((P) => !P.hidden);
|
|
2885
|
-
}),
|
|
2886
|
-
var f,
|
|
2885
|
+
}), q = E(() => {
|
|
2886
|
+
var f, h, C, k;
|
|
2887
2887
|
return {
|
|
2888
|
-
basic: (f = x.value) == null ? void 0 : f.filter((
|
|
2889
|
-
advanced: (
|
|
2890
|
-
plugin: (
|
|
2888
|
+
basic: (f = x.value) == null ? void 0 : f.filter((H) => H.section === le.Basic),
|
|
2889
|
+
advanced: (h = x.value) == null ? void 0 : h.filter((H) => H.section === le.Advanced),
|
|
2890
|
+
plugin: (k = L.value) == null ? void 0 : k.concat((C = x.value) == null ? void 0 : C.filter((H) => H.section === le.Plugin))
|
|
2891
2891
|
};
|
|
2892
|
-
}),
|
|
2892
|
+
}), ne = E(() => {
|
|
2893
2893
|
const f = [];
|
|
2894
|
-
return
|
|
2895
|
-
}),
|
|
2896
|
-
var
|
|
2894
|
+
return q.value.basic.length && f.push("basic"), q.value.advanced.length && f.push("advanced"), q.value.plugin.length && f.push("plugin"), f;
|
|
2895
|
+
}), A = E(() => {
|
|
2896
|
+
var h, C;
|
|
2897
2897
|
let f = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
2898
|
-
return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((
|
|
2898
|
+
return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((h = i.config) == null ? void 0 : h.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (C = i.config) != null && C.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
|
|
2899
2899
|
});
|
|
2900
2900
|
return ve(y, (f) => {
|
|
2901
2901
|
n("loading", f);
|
|
2902
2902
|
}, { immediate: !0 }), nt(async () => {
|
|
2903
|
-
|
|
2903
|
+
v.value = !1, y.value = !0;
|
|
2904
2904
|
try {
|
|
2905
|
-
const { data: f } = await l.get(
|
|
2905
|
+
const { data: f } = await l.get(A.value);
|
|
2906
2906
|
if (i.dataKey)
|
|
2907
2907
|
if (typeof f[i.dataKey] < "u")
|
|
2908
|
-
|
|
2908
|
+
S.value = { ...f[i.dataKey] };
|
|
2909
2909
|
else
|
|
2910
2910
|
throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
|
|
2911
|
-
else i.recordResolver ?
|
|
2912
|
-
Object.keys(i.configSchema).filter((
|
|
2913
|
-
|
|
2911
|
+
else i.recordResolver ? S.value = { ...i.recordResolver(f) } : S.value = { ...f };
|
|
2912
|
+
Object.keys(i.configSchema).filter((C) => i.configSchema[C].forceShow).forEach((C) => {
|
|
2913
|
+
S.value && typeof S.value[C] > "u" && (S.value[C] = null);
|
|
2914
2914
|
}), n("fetch:success", f);
|
|
2915
2915
|
} catch (f) {
|
|
2916
|
-
const
|
|
2917
|
-
b.value =
|
|
2916
|
+
const h = o(f);
|
|
2917
|
+
b.value = h.startsWith("code") ? r("baseConfigCard.errors.load") : h, v.value = !0, n("fetch:error", f);
|
|
2918
2918
|
} finally {
|
|
2919
2919
|
y.value = !1;
|
|
2920
2920
|
}
|
|
2921
|
-
}), (f,
|
|
2922
|
-
const
|
|
2923
|
-
return
|
|
2921
|
+
}), (f, h) => {
|
|
2922
|
+
const C = D("KLabel"), k = D("KSelect"), H = D("KButton"), P = D("KSkeleton"), R = D("KEmptyState"), Q = D("KCard");
|
|
2923
|
+
return m(), N(Q, {
|
|
2924
2924
|
class: "kong-ui-entity-base-config-card",
|
|
2925
2925
|
"title-tag": e.titleTag
|
|
2926
2926
|
}, we({
|
|
2927
2927
|
actions: _(() => [
|
|
2928
|
-
|
|
2928
|
+
O("div", Uo, [
|
|
2929
2929
|
j(f.$slots, "actions", {}, void 0, !0),
|
|
2930
|
-
M(
|
|
2930
|
+
M(C, {
|
|
2931
2931
|
class: "config-format-select-label",
|
|
2932
2932
|
"data-testid": "config-format-select-label"
|
|
2933
2933
|
}, {
|
|
2934
2934
|
default: _(() => [
|
|
2935
|
-
U(
|
|
2935
|
+
U(F(e.label), 1)
|
|
2936
2936
|
]),
|
|
2937
2937
|
_: 1
|
|
2938
2938
|
}),
|
|
2939
|
-
M(
|
|
2939
|
+
M(k, {
|
|
2940
2940
|
modelValue: d.value,
|
|
2941
|
-
"onUpdate:modelValue":
|
|
2941
|
+
"onUpdate:modelValue": h[0] || (h[0] = (W) => d.value = W),
|
|
2942
2942
|
"data-testid": "select-config-format",
|
|
2943
2943
|
items: s,
|
|
2944
2944
|
onChange: u
|
|
2945
2945
|
}, null, 8, ["modelValue"]),
|
|
2946
|
-
e.configCardDoc ? (
|
|
2946
|
+
e.configCardDoc ? (m(), N(H, {
|
|
2947
2947
|
key: 0,
|
|
2948
2948
|
appearance: "tertiary",
|
|
2949
2949
|
class: "book-icon",
|
|
2950
2950
|
"data-testid": "book-icon"
|
|
2951
2951
|
}, {
|
|
2952
2952
|
default: _(() => [
|
|
2953
|
-
|
|
2953
|
+
O("a", {
|
|
2954
2954
|
href: e.configCardDoc,
|
|
2955
2955
|
rel: "noopener",
|
|
2956
2956
|
target: "_blank"
|
|
2957
2957
|
}, [
|
|
2958
|
-
M(
|
|
2958
|
+
M(T(qt), { size: T(Zi) }, null, 8, ["size"])
|
|
2959
2959
|
], 8, qo)
|
|
2960
2960
|
]),
|
|
2961
2961
|
_: 1
|
|
@@ -2963,37 +2963,37 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2963
2963
|
])
|
|
2964
2964
|
]),
|
|
2965
2965
|
default: _(() => [
|
|
2966
|
-
y.value ? (
|
|
2966
|
+
y.value ? (m(), N(P, {
|
|
2967
2967
|
key: 0,
|
|
2968
2968
|
"data-testid": "config-card-loader",
|
|
2969
2969
|
"table-columns": 2,
|
|
2970
2970
|
type: "table"
|
|
2971
|
-
})) :
|
|
2971
|
+
})) : v.value ? (m(), N(R, {
|
|
2972
2972
|
key: 1,
|
|
2973
2973
|
"data-testid": "config-card-fetch-error",
|
|
2974
2974
|
"icon-variant": "error"
|
|
2975
2975
|
}, {
|
|
2976
2976
|
default: _(() => [
|
|
2977
|
-
|
|
2977
|
+
O("h3", null, F(b.value), 1)
|
|
2978
2978
|
]),
|
|
2979
2979
|
_: 1
|
|
2980
2980
|
})) : K("", !0),
|
|
2981
|
-
|
|
2981
|
+
O("div", Ho, [
|
|
2982
2982
|
M(Do, {
|
|
2983
2983
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
2984
2984
|
config: e.config,
|
|
2985
2985
|
"entity-type": e.entityType,
|
|
2986
|
-
"fetcher-url":
|
|
2986
|
+
"fetcher-url": A.value,
|
|
2987
2987
|
format: d.value,
|
|
2988
|
-
"prop-list-types":
|
|
2989
|
-
"property-collections":
|
|
2990
|
-
record:
|
|
2988
|
+
"prop-list-types": ne.value,
|
|
2989
|
+
"property-collections": q.value,
|
|
2990
|
+
record: S.value
|
|
2991
2991
|
}, we({ _: 2 }, [
|
|
2992
|
-
se(Object.keys(f.$slots), (
|
|
2993
|
-
name:
|
|
2994
|
-
fn: _(({ row:
|
|
2995
|
-
j(f.$slots,
|
|
2996
|
-
row:
|
|
2992
|
+
se(Object.keys(f.$slots), (W) => ({
|
|
2993
|
+
name: W,
|
|
2994
|
+
fn: _(({ row: Z, rowValue: Oe }) => [
|
|
2995
|
+
j(f.$slots, W, {
|
|
2996
|
+
row: Z,
|
|
2997
2997
|
rowValue: Oe
|
|
2998
2998
|
}, void 0, !0)
|
|
2999
2999
|
])
|
|
@@ -3006,9 +3006,9 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3006
3006
|
e.hideTitle ? void 0 : {
|
|
3007
3007
|
name: "title",
|
|
3008
3008
|
fn: _(() => [
|
|
3009
|
-
|
|
3009
|
+
O("span", Po, [
|
|
3010
3010
|
j(f.$slots, "title", {}, () => [
|
|
3011
|
-
U(
|
|
3011
|
+
U(F(T(r)("baseConfigCard.title")), 1)
|
|
3012
3012
|
], !0)
|
|
3013
3013
|
])
|
|
3014
3014
|
]),
|
|
@@ -3017,7 +3017,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3017
3017
|
]), 1032, ["title-tag"]);
|
|
3018
3018
|
};
|
|
3019
3019
|
}
|
|
3020
|
-
}), ds = /* @__PURE__ */ oe(Vo, [["__scopeId", "data-v-9b9ea6f9"]]), Yo = ["novalidate"], Wo = /* @__PURE__ */
|
|
3020
|
+
}), ds = /* @__PURE__ */ oe(Vo, [["__scopeId", "data-v-9b9ea6f9"]]), Yo = ["novalidate"], Wo = /* @__PURE__ */ J({
|
|
3021
3021
|
__name: "EntityBaseForm",
|
|
3022
3022
|
props: {
|
|
3023
3023
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3121,20 +3121,20 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3121
3121
|
},
|
|
3122
3122
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3123
3123
|
setup(e, { expose: t, emit: n }) {
|
|
3124
|
-
var
|
|
3125
|
-
const i = n, r = e, o = ai(), { i18n: { t: a } } =
|
|
3126
|
-
var
|
|
3127
|
-
let
|
|
3128
|
-
return r.config.app === "konnect" ?
|
|
3124
|
+
var ne;
|
|
3125
|
+
const i = n, r = e, o = ai(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: l } = Y.useErrors(), { axiosInstance: s } = Y.useAxios((ne = r.config) == null ? void 0 : ne.axiosRequestConfig), c = B(!1), d = E(() => !!r.editId), u = B(!1), g = B(""), p = E(() => r.canSubmit === !1 || r.isReadonly), y = B(!1), v = E(() => {
|
|
3126
|
+
var w, f;
|
|
3127
|
+
let A = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3128
|
+
return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (A = A.replace(/{id}/gi, r.editId), A) : (A = A.replace(/\/{id}/gi, ""), A);
|
|
3129
3129
|
}), b = () => {
|
|
3130
3130
|
y.value = !y.value;
|
|
3131
|
-
},
|
|
3131
|
+
}, S = () => {
|
|
3132
3132
|
r.config.cancelRoute ? o.push(r.config.cancelRoute) : x();
|
|
3133
3133
|
}, x = () => {
|
|
3134
3134
|
i("cancel");
|
|
3135
|
-
},
|
|
3135
|
+
}, L = () => {
|
|
3136
3136
|
p.value || i("submit");
|
|
3137
|
-
},
|
|
3137
|
+
}, q = B([
|
|
3138
3138
|
{
|
|
3139
3139
|
title: a("baseForm.configuration.json"),
|
|
3140
3140
|
hash: "#json"
|
|
@@ -3144,100 +3144,100 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3144
3144
|
hash: "#yaml"
|
|
3145
3145
|
}
|
|
3146
3146
|
]);
|
|
3147
|
-
return r.config.app === "konnect" && r.entityType !== it.Other &&
|
|
3147
|
+
return r.config.app === "konnect" && r.entityType !== it.Other && q.value.splice(1, 0, {
|
|
3148
3148
|
title: a("baseForm.configuration.terraform"),
|
|
3149
3149
|
hash: "#terraform"
|
|
3150
|
-
}), ve(() => c.value, (
|
|
3151
|
-
i("loading",
|
|
3150
|
+
}), ve(() => c.value, (A) => {
|
|
3151
|
+
i("loading", A);
|
|
3152
3152
|
}, { immediate: !0 }), nt(async () => {
|
|
3153
3153
|
if (r.editId)
|
|
3154
3154
|
try {
|
|
3155
3155
|
u.value = !1, c.value = !0;
|
|
3156
|
-
const { data:
|
|
3157
|
-
i("fetch:success",
|
|
3158
|
-
} catch (
|
|
3159
|
-
const
|
|
3160
|
-
g.value =
|
|
3156
|
+
const { data: A } = await s.get(v.value);
|
|
3157
|
+
i("fetch:success", A);
|
|
3158
|
+
} catch (A) {
|
|
3159
|
+
const w = l(A);
|
|
3160
|
+
g.value = w.startsWith("code") ? a("baseForm.errors.edit") : w, u.value = !0, i("fetch:error", A);
|
|
3161
3161
|
} finally {
|
|
3162
3162
|
c.value = !1;
|
|
3163
3163
|
}
|
|
3164
3164
|
}), t({
|
|
3165
3165
|
viewConfig: b,
|
|
3166
3166
|
formCancel: x,
|
|
3167
|
-
formSubmit:
|
|
3168
|
-
}), (
|
|
3169
|
-
const f = D("KSkeleton"),
|
|
3170
|
-
return
|
|
3167
|
+
formSubmit: L
|
|
3168
|
+
}), (A, w) => {
|
|
3169
|
+
const f = D("KSkeleton"), h = D("KEmptyState"), C = D("KAlert"), k = D("KButton"), H = D("KTabs"), P = D("KSlideout");
|
|
3170
|
+
return m(), N(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3171
3171
|
default: _(() => [
|
|
3172
|
-
c.value ? (
|
|
3172
|
+
c.value ? (m(), N(f, {
|
|
3173
3173
|
key: 0,
|
|
3174
3174
|
type: "form"
|
|
3175
|
-
})) : u.value ? (
|
|
3175
|
+
})) : u.value ? (m(), N(h, {
|
|
3176
3176
|
key: 1,
|
|
3177
|
-
"action-button-text":
|
|
3177
|
+
"action-button-text": T(a)("baseForm.actions.back"),
|
|
3178
3178
|
"data-testid": "form-fetch-error",
|
|
3179
3179
|
"icon-variant": "error",
|
|
3180
|
-
onClickAction:
|
|
3180
|
+
onClickAction: S
|
|
3181
3181
|
}, {
|
|
3182
3182
|
default: _(() => [
|
|
3183
|
-
|
|
3183
|
+
O("h3", null, F(g.value), 1)
|
|
3184
3184
|
]),
|
|
3185
3185
|
_: 1
|
|
3186
|
-
}, 8, ["action-button-text"])) : (
|
|
3186
|
+
}, 8, ["action-button-text"])) : (m(), $("form", {
|
|
3187
3187
|
key: 2,
|
|
3188
3188
|
"data-testid": "form-content",
|
|
3189
3189
|
novalidate: r.noValidate,
|
|
3190
3190
|
onReset: Le(x, ["prevent"]),
|
|
3191
|
-
onSubmit: Le(
|
|
3191
|
+
onSubmit: Le(L, ["prevent"])
|
|
3192
3192
|
}, [
|
|
3193
|
-
j(
|
|
3194
|
-
e.errorMessage ? (
|
|
3193
|
+
j(A.$slots, "default", {}, void 0, !0),
|
|
3194
|
+
e.errorMessage ? (m(), N(C, {
|
|
3195
3195
|
key: 0,
|
|
3196
3196
|
appearance: "danger",
|
|
3197
3197
|
"data-testid": "form-error",
|
|
3198
3198
|
message: e.errorMessage
|
|
3199
3199
|
}, null, 8, ["message"])) : K("", !0),
|
|
3200
|
-
e.hideActions ? K("", !0) : (
|
|
3200
|
+
e.hideActions ? K("", !0) : (m(), N(Ut, {
|
|
3201
3201
|
key: 1,
|
|
3202
3202
|
disabled: !e.actionTeleportTarget,
|
|
3203
3203
|
to: e.actionTeleportTarget
|
|
3204
3204
|
}, [
|
|
3205
|
-
|
|
3205
|
+
O("div", {
|
|
3206
3206
|
class: de(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3207
3207
|
"data-testid": "form-actions"
|
|
3208
3208
|
}, [
|
|
3209
|
-
j(
|
|
3210
|
-
M(
|
|
3209
|
+
j(A.$slots, "form-actions", {}, () => [
|
|
3210
|
+
M(k, {
|
|
3211
3211
|
appearance: "tertiary",
|
|
3212
3212
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
3213
|
-
onClick:
|
|
3213
|
+
onClick: w[0] || (w[0] = (R) => b())
|
|
3214
3214
|
}, {
|
|
3215
3215
|
default: _(() => [
|
|
3216
|
-
U(
|
|
3216
|
+
U(F(T(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3217
3217
|
]),
|
|
3218
3218
|
_: 1
|
|
3219
3219
|
}, 8, ["data-testid"]),
|
|
3220
|
-
M(
|
|
3220
|
+
M(k, {
|
|
3221
3221
|
appearance: "secondary",
|
|
3222
3222
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
|
|
3223
3223
|
disabled: e.isReadonly,
|
|
3224
3224
|
type: "reset",
|
|
3225
|
-
onClick:
|
|
3225
|
+
onClick: w[1] || (w[1] = (R) => !!e.actionTeleportTarget && x())
|
|
3226
3226
|
}, {
|
|
3227
3227
|
default: _(() => [
|
|
3228
|
-
U(
|
|
3228
|
+
U(F(T(a)("baseForm.actions.cancel")), 1)
|
|
3229
3229
|
]),
|
|
3230
3230
|
_: 1
|
|
3231
3231
|
}, 8, ["data-testid", "disabled"]),
|
|
3232
|
-
M(
|
|
3232
|
+
M(k, {
|
|
3233
3233
|
appearance: "primary",
|
|
3234
3234
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
|
|
3235
3235
|
disabled: p.value,
|
|
3236
3236
|
type: "submit",
|
|
3237
|
-
onClick:
|
|
3237
|
+
onClick: w[2] || (w[2] = (R) => !!e.actionTeleportTarget && L())
|
|
3238
3238
|
}, {
|
|
3239
3239
|
default: _(() => [
|
|
3240
|
-
U(
|
|
3240
|
+
U(F(T(a)("baseForm.actions.save")), 1)
|
|
3241
3241
|
]),
|
|
3242
3242
|
_: 1
|
|
3243
3243
|
}, 8, ["data-testid", "disabled"])
|
|
@@ -3250,21 +3250,21 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3250
3250
|
"data-testid": "form-view-configuration-slideout",
|
|
3251
3251
|
"has-overlay": !1,
|
|
3252
3252
|
"offset-top": e.slidoutTopOffset,
|
|
3253
|
-
title:
|
|
3253
|
+
title: T(a)("baseForm.configuration.title"),
|
|
3254
3254
|
visible: y.value,
|
|
3255
|
-
onClose:
|
|
3255
|
+
onClose: w[3] || (w[3] = (R) => b())
|
|
3256
3256
|
}, {
|
|
3257
3257
|
default: _(() => [
|
|
3258
|
-
|
|
3259
|
-
M(
|
|
3258
|
+
O("div", null, F(T(a)("baseForm.configuration.message")), 1),
|
|
3259
|
+
M(H, {
|
|
3260
3260
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3261
|
-
tabs:
|
|
3261
|
+
tabs: q.value
|
|
3262
3262
|
}, {
|
|
3263
3263
|
json: _(() => [
|
|
3264
3264
|
M(Zt, {
|
|
3265
3265
|
config: e.config,
|
|
3266
3266
|
"entity-record": r.formFields,
|
|
3267
|
-
"fetcher-url":
|
|
3267
|
+
"fetcher-url": v.value,
|
|
3268
3268
|
"request-method": r.editId ? "put" : "post"
|
|
3269
3269
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3270
3270
|
]),
|
|
@@ -3289,7 +3289,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3289
3289
|
});
|
|
3290
3290
|
};
|
|
3291
3291
|
}
|
|
3292
|
-
}), fs = /* @__PURE__ */ oe(Wo, [["__scopeId", "data-v-612b1eac"]]), Jo = ["data-truncate"], Go = /* @__PURE__ */
|
|
3292
|
+
}), fs = /* @__PURE__ */ oe(Wo, [["__scopeId", "data-v-612b1eac"]]), Jo = ["data-truncate"], Go = /* @__PURE__ */ J({
|
|
3293
3293
|
__name: "EntityBaseTableCell",
|
|
3294
3294
|
props: {
|
|
3295
3295
|
keyName: {
|
|
@@ -3313,55 +3313,55 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3313
3313
|
var b;
|
|
3314
3314
|
return ((b = n.value) == null ? void 0 : b.querySelector('[data-truncate="true"]')) || null;
|
|
3315
3315
|
}), r = E(() => {
|
|
3316
|
-
var
|
|
3317
|
-
const b = (
|
|
3316
|
+
var S, x;
|
|
3317
|
+
const b = (S = t.rowEl) == null ? void 0 : S.querySelectorAll("td");
|
|
3318
3318
|
return b ? ((x = b[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
|
|
3319
3319
|
}), o = E(() => r.value || t.tooltip);
|
|
3320
3320
|
let a;
|
|
3321
3321
|
const l = () => {
|
|
3322
3322
|
a && (a.disconnect(), a = void 0);
|
|
3323
3323
|
}, s = () => {
|
|
3324
|
-
var
|
|
3325
|
-
let b = ((
|
|
3324
|
+
var S, x, L;
|
|
3325
|
+
let b = ((S = n.value) == null ? void 0 : S.clientWidth) || 0;
|
|
3326
3326
|
if (n.value && "getComputedStyle" in window) {
|
|
3327
|
-
const
|
|
3328
|
-
b -= (parseFloat(
|
|
3327
|
+
const q = window.getComputedStyle(n.value);
|
|
3328
|
+
b -= (parseFloat(q.paddingLeft) || 0) + (parseFloat(q.paddingRight) || 0);
|
|
3329
3329
|
}
|
|
3330
|
-
d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = b, g.value = ((
|
|
3330
|
+
d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = b, g.value = ((L = c.value) == null ? void 0 : L.innerText) || "";
|
|
3331
3331
|
}, c = B({}), d = B(0), u = B(0), g = B(""), p = E(() => [i.value, n.value]), y = ve(
|
|
3332
3332
|
p,
|
|
3333
3333
|
(b) => {
|
|
3334
3334
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
3335
|
-
a = new ResizeObserver((
|
|
3335
|
+
a = new ResizeObserver((S) => {
|
|
3336
3336
|
window.requestAnimationFrame(() => {
|
|
3337
|
-
!Array.isArray(
|
|
3337
|
+
!Array.isArray(S) || !S.length || s();
|
|
3338
3338
|
});
|
|
3339
3339
|
});
|
|
3340
|
-
for (const
|
|
3341
|
-
|
|
3340
|
+
for (const S of b)
|
|
3341
|
+
S && a.observe(S);
|
|
3342
3342
|
}
|
|
3343
3343
|
},
|
|
3344
3344
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3345
|
-
),
|
|
3345
|
+
), v = E(() => o.value ? d.value > u.value : !1);
|
|
3346
3346
|
return tt(() => {
|
|
3347
3347
|
s();
|
|
3348
3348
|
}), Jn(() => {
|
|
3349
3349
|
y();
|
|
3350
|
-
}), (b,
|
|
3350
|
+
}), (b, S) => {
|
|
3351
3351
|
const x = D("KTooltip");
|
|
3352
|
-
return
|
|
3352
|
+
return m(), $("span", {
|
|
3353
3353
|
ref_key: "contentRef",
|
|
3354
3354
|
ref: c,
|
|
3355
3355
|
class: "content-wrapper"
|
|
3356
3356
|
}, [
|
|
3357
|
-
o.value ? (
|
|
3357
|
+
o.value ? (m(), $("span", {
|
|
3358
3358
|
key: 0,
|
|
3359
3359
|
"data-truncate": o.value || void 0
|
|
3360
3360
|
}, [
|
|
3361
3361
|
M(x, {
|
|
3362
3362
|
"max-width": "300",
|
|
3363
3363
|
placement: "bottom-start",
|
|
3364
|
-
text:
|
|
3364
|
+
text: v.value ? g.value : ""
|
|
3365
3365
|
}, {
|
|
3366
3366
|
default: _(() => [
|
|
3367
3367
|
j(b.$slots, "default", {}, void 0, !0)
|
|
@@ -3378,7 +3378,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3378
3378
|
}, Xo = {
|
|
3379
3379
|
key: 0,
|
|
3380
3380
|
class: "hidden"
|
|
3381
|
-
}, el = /* @__PURE__ */
|
|
3381
|
+
}, el = /* @__PURE__ */ J({
|
|
3382
3382
|
__name: "EntityBaseTable",
|
|
3383
3383
|
props: {
|
|
3384
3384
|
// table header configuration
|
|
@@ -3523,92 +3523,92 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3523
3523
|
},
|
|
3524
3524
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3525
3525
|
setup(e, { emit: t }) {
|
|
3526
|
-
const n = e, i = t, { i18n: { t: r } } =
|
|
3527
|
-
var
|
|
3526
|
+
const n = e, i = t, { i18n: { t: r } } = Y.useI18n(), o = E(() => {
|
|
3527
|
+
var h, C;
|
|
3528
3528
|
return typeof n.errorMessage == "string" ? {
|
|
3529
3529
|
hasError: !!n.errorMessage,
|
|
3530
3530
|
title: n.errorMessage,
|
|
3531
3531
|
message: void 0
|
|
3532
3532
|
} : {
|
|
3533
3533
|
hasError: !!n.errorMessage,
|
|
3534
|
-
title: (
|
|
3535
|
-
message: (
|
|
3534
|
+
title: (h = n.errorMessage) == null ? void 0 : h.title,
|
|
3535
|
+
message: (C = n.errorMessage) == null ? void 0 : C.message
|
|
3536
3536
|
};
|
|
3537
3537
|
}), a = E(() => n.cacheIdentifier || n.preferencesStorageKey), l = E(() => {
|
|
3538
|
-
const
|
|
3539
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3540
|
-
const
|
|
3541
|
-
|
|
3542
|
-
label:
|
|
3543
|
-
key:
|
|
3544
|
-
sortable:
|
|
3545
|
-
hidable:
|
|
3538
|
+
const h = [];
|
|
3539
|
+
return Object.keys(n.tableHeaders).forEach((k) => {
|
|
3540
|
+
const H = n.tableHeaders[k];
|
|
3541
|
+
h.push({
|
|
3542
|
+
label: H.label ?? k,
|
|
3543
|
+
key: k,
|
|
3544
|
+
sortable: H.sortable ?? !1,
|
|
3545
|
+
hidable: H.hidable ?? !0
|
|
3546
3546
|
});
|
|
3547
|
-
}), n.enableEntityActions &&
|
|
3547
|
+
}), n.enableEntityActions && h.push({
|
|
3548
3548
|
key: "actions",
|
|
3549
3549
|
hideLabel: !0
|
|
3550
|
-
}),
|
|
3551
|
-
}), s = (
|
|
3552
|
-
"data-rowid":
|
|
3553
|
-
"data-testid":
|
|
3554
|
-
...n.rowAttributes(
|
|
3555
|
-
}), c = B({}), d = (
|
|
3556
|
-
var
|
|
3557
|
-
return (
|
|
3558
|
-
}, u = (
|
|
3559
|
-
const
|
|
3560
|
-
"data-testid":
|
|
3561
|
-
...n.cellAttributes(
|
|
3550
|
+
}), h;
|
|
3551
|
+
}), s = (h) => ({
|
|
3552
|
+
"data-rowid": h.id,
|
|
3553
|
+
"data-testid": h.name,
|
|
3554
|
+
...n.rowAttributes(h)
|
|
3555
|
+
}), c = B({}), d = (h) => {
|
|
3556
|
+
var C;
|
|
3557
|
+
return (C = c.value) == null ? void 0 : C.$el.querySelector(`[data-rowid="${h.id}"]`);
|
|
3558
|
+
}, u = (h) => {
|
|
3559
|
+
const C = {
|
|
3560
|
+
"data-testid": h.headerKey,
|
|
3561
|
+
...n.cellAttributes(h)
|
|
3562
3562
|
};
|
|
3563
|
-
return
|
|
3563
|
+
return h.colIndex === 0 && (C.style = {
|
|
3564
3564
|
maxWidth: "250px",
|
|
3565
3565
|
overflowX: "hidden",
|
|
3566
3566
|
textOverflow: "ellipsis"
|
|
3567
|
-
}),
|
|
3568
|
-
}, g = (
|
|
3569
|
-
x(
|
|
3567
|
+
}), C;
|
|
3568
|
+
}, g = (h) => {
|
|
3569
|
+
x(h), i("state", h);
|
|
3570
3570
|
}, p = () => {
|
|
3571
3571
|
i("empty-state-cta-clicked"), y();
|
|
3572
3572
|
}, y = () => {
|
|
3573
3573
|
i("clear-search-input");
|
|
3574
|
-
},
|
|
3575
|
-
i("click:row",
|
|
3576
|
-
}), b = (
|
|
3577
|
-
i("sort",
|
|
3578
|
-
}, { hideTableToolbar:
|
|
3579
|
-
const
|
|
3574
|
+
}, v = E(() => n.disableRowClick ? void 0 : (h, C) => {
|
|
3575
|
+
i("click:row", C);
|
|
3576
|
+
}), b = (h) => {
|
|
3577
|
+
i("sort", h);
|
|
3578
|
+
}, { hideTableToolbar: S, handleStateChange: x } = Y.useTableState(() => n.query), { setTablePreferences: L, getTablePreferences: q } = di(), ne = B(q(a.value, n.defaultTablePreferences)), A = E(() => {
|
|
3579
|
+
const h = q(a.value);
|
|
3580
3580
|
return {
|
|
3581
3581
|
...n.initialFetcherParams,
|
|
3582
|
-
...
|
|
3582
|
+
...h
|
|
3583
3583
|
};
|
|
3584
|
-
}),
|
|
3585
|
-
|
|
3586
|
-
!("hidable" in
|
|
3587
|
-
}), a.value &&
|
|
3584
|
+
}), w = (h) => {
|
|
3585
|
+
ne.value = h, l.value.forEach((C) => {
|
|
3586
|
+
!("hidable" in C) || !ne.value.columnVisibility || C.hidable === !1 && (ne.value.columnVisibility[C.key] = !0);
|
|
3587
|
+
}), a.value && L(a.value, h);
|
|
3588
3588
|
}, f = E(() => ({
|
|
3589
3589
|
disablePageJump: n.disablePaginationPageJump,
|
|
3590
3590
|
offset: n.paginationType === "offset",
|
|
3591
3591
|
...n.paginationAttributes
|
|
3592
3592
|
}));
|
|
3593
|
-
return (
|
|
3594
|
-
const
|
|
3595
|
-
return
|
|
3593
|
+
return (h, C) => {
|
|
3594
|
+
const k = D("KTableData"), H = D("KCard");
|
|
3595
|
+
return m(), N(H, {
|
|
3596
3596
|
class: "kong-ui-entity-base-table",
|
|
3597
3597
|
title: e.title,
|
|
3598
3598
|
"title-tag": e.titleTag
|
|
3599
3599
|
}, {
|
|
3600
3600
|
default: _(() => [
|
|
3601
|
-
M(
|
|
3601
|
+
M(k, {
|
|
3602
3602
|
ref_key: "tableRefs",
|
|
3603
3603
|
ref: c,
|
|
3604
3604
|
"cache-identifier": a.value,
|
|
3605
3605
|
"cell-attrs": u,
|
|
3606
3606
|
"client-sort": e.enableClientSort,
|
|
3607
|
-
"empty-state-action-message": e.query ?
|
|
3607
|
+
"empty-state-action-message": e.query ? T(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
3608
3608
|
"empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
|
|
3609
3609
|
"empty-state-icon-variant": e.query ? "search" : "kong",
|
|
3610
|
-
"empty-state-message": e.query ?
|
|
3611
|
-
"empty-state-title": e.query ?
|
|
3610
|
+
"empty-state-message": e.query ? T(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3611
|
+
"empty-state-title": e.query ? T(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3612
3612
|
error: o.value.hasError,
|
|
3613
3613
|
"error-state-message": o.value.message,
|
|
3614
3614
|
"error-state-title": o.value.title,
|
|
@@ -3617,8 +3617,8 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3617
3617
|
headers: l.value,
|
|
3618
3618
|
"hide-pagination": e.hidePagination,
|
|
3619
3619
|
"hide-pagination-when-optional": e.hidePaginationWhenOptional,
|
|
3620
|
-
"hide-toolbar": e.hideToolbar ??
|
|
3621
|
-
"initial-fetcher-params":
|
|
3620
|
+
"hide-toolbar": e.hideToolbar ?? T(S),
|
|
3621
|
+
"initial-fetcher-params": A.value,
|
|
3622
3622
|
loading: e.isLoading,
|
|
3623
3623
|
"pagination-attributes": f.value,
|
|
3624
3624
|
"resize-columns": "",
|
|
@@ -3627,48 +3627,48 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3627
3627
|
"search-input": e.query,
|
|
3628
3628
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
3629
3629
|
sortable: !e.disableSorting,
|
|
3630
|
-
"table-preferences":
|
|
3630
|
+
"table-preferences": ne.value,
|
|
3631
3631
|
onEmptyStateActionClick: p,
|
|
3632
|
-
"onRow:click":
|
|
3633
|
-
onSort:
|
|
3632
|
+
"onRow:click": v.value,
|
|
3633
|
+
onSort: C[0] || (C[0] = (P) => b(P)),
|
|
3634
3634
|
onState: g,
|
|
3635
|
-
"onUpdate:tablePreferences":
|
|
3635
|
+
"onUpdate:tablePreferences": w
|
|
3636
3636
|
}, we({
|
|
3637
3637
|
toolbar: _(() => [
|
|
3638
|
-
|
|
3639
|
-
j(
|
|
3640
|
-
|
|
3641
|
-
j(
|
|
3638
|
+
O("div", Qo, [
|
|
3639
|
+
j(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3640
|
+
h.$slots["toolbar-button"] ? (m(), $("div", Zo, [
|
|
3641
|
+
j(h.$slots, "toolbar-button", {}, void 0, !0)
|
|
3642
3642
|
])) : K("", !0)
|
|
3643
3643
|
])
|
|
3644
3644
|
]),
|
|
3645
3645
|
"action-items": _(({ row: P }) => [
|
|
3646
|
-
j(
|
|
3646
|
+
j(h.$slots, "actions", { row: P }, void 0, !0)
|
|
3647
3647
|
]),
|
|
3648
3648
|
_: 2
|
|
3649
3649
|
}, [
|
|
3650
|
-
|
|
3650
|
+
h.$slots["empty-state"] ? {
|
|
3651
3651
|
name: "empty-state",
|
|
3652
3652
|
fn: _(() => [
|
|
3653
|
-
j(
|
|
3653
|
+
j(h.$slots, "empty-state", {}, void 0, !0)
|
|
3654
3654
|
]),
|
|
3655
3655
|
key: "0"
|
|
3656
3656
|
} : void 0,
|
|
3657
3657
|
se(e.tableHeaders, (P, R) => ({
|
|
3658
3658
|
name: R,
|
|
3659
|
-
fn: _(({ row:
|
|
3659
|
+
fn: _(({ row: Q, rowValue: W }) => [
|
|
3660
3660
|
M(zo, {
|
|
3661
3661
|
"key-name": String(R),
|
|
3662
|
-
"row-el": d(
|
|
3662
|
+
"row-el": d(Q),
|
|
3663
3663
|
tooltip: P.tooltip
|
|
3664
3664
|
}, {
|
|
3665
3665
|
default: _(() => [
|
|
3666
|
-
j(
|
|
3667
|
-
row:
|
|
3666
|
+
j(h.$slots, R, {
|
|
3667
|
+
row: Q,
|
|
3668
3668
|
rowKey: e.rowKey,
|
|
3669
|
-
rowValue:
|
|
3669
|
+
rowValue: W
|
|
3670
3670
|
}, () => [
|
|
3671
|
-
U(
|
|
3671
|
+
U(F(W), 1)
|
|
3672
3672
|
], !0)
|
|
3673
3673
|
]),
|
|
3674
3674
|
_: 2
|
|
@@ -3678,13 +3678,13 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3678
3678
|
e.query ? void 0 : {
|
|
3679
3679
|
name: "empty-state-action-icon",
|
|
3680
3680
|
fn: _(() => [
|
|
3681
|
-
M(
|
|
3681
|
+
M(T(Ht))
|
|
3682
3682
|
]),
|
|
3683
3683
|
key: "1"
|
|
3684
3684
|
}
|
|
3685
3685
|
]), 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"]),
|
|
3686
|
-
|
|
3687
|
-
j(
|
|
3686
|
+
h.$slots["outside-actions"] && T(S) ? (m(), $("div", Xo, [
|
|
3687
|
+
j(h.$slots, "outside-actions", {}, void 0, !0)
|
|
3688
3688
|
])) : K("", !0)
|
|
3689
3689
|
]),
|
|
3690
3690
|
_: 3
|
|
@@ -3697,7 +3697,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3697
3697
|
}, nl = {
|
|
3698
3698
|
key: 1,
|
|
3699
3699
|
class: "description"
|
|
3700
|
-
}, il = /* @__PURE__ */
|
|
3700
|
+
}, il = /* @__PURE__ */ J({
|
|
3701
3701
|
__name: "EntityDeleteModal",
|
|
3702
3702
|
props: {
|
|
3703
3703
|
visible: {
|
|
@@ -3736,14 +3736,14 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3736
3736
|
},
|
|
3737
3737
|
emits: ["cancel", "proceed"],
|
|
3738
3738
|
setup(e, { emit: t }) {
|
|
3739
|
-
const { i18nT: n } =
|
|
3739
|
+
const { i18nT: n } = Y.useI18n(), i = e, r = t, o = E(() => i.needConfirm ? i.entityName : ""), a = () => {
|
|
3740
3740
|
r("cancel");
|
|
3741
3741
|
}, l = () => {
|
|
3742
3742
|
r("proceed");
|
|
3743
3743
|
};
|
|
3744
3744
|
return (s, c) => {
|
|
3745
3745
|
const d = D("KAlert"), u = D("KPrompt");
|
|
3746
|
-
return
|
|
3746
|
+
return m(), N(u, {
|
|
3747
3747
|
"action-button-appearance": "danger",
|
|
3748
3748
|
"action-button-disabled": e.actionPending,
|
|
3749
3749
|
"action-button-text": "Yes, delete",
|
|
@@ -3755,35 +3755,35 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3755
3755
|
onProceed: l
|
|
3756
3756
|
}, {
|
|
3757
3757
|
default: _(() => [
|
|
3758
|
-
e.error ? (
|
|
3758
|
+
e.error ? (m(), $("div", tl, [
|
|
3759
3759
|
M(d, { appearance: "danger" }, {
|
|
3760
3760
|
default: _(() => [
|
|
3761
|
-
U(
|
|
3761
|
+
U(F(e.error), 1)
|
|
3762
3762
|
]),
|
|
3763
3763
|
_: 1
|
|
3764
3764
|
})
|
|
3765
3765
|
])) : K("", !0),
|
|
3766
|
-
M(
|
|
3766
|
+
M(T(n), {
|
|
3767
3767
|
class: "message",
|
|
3768
3768
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3769
3769
|
tag: "p"
|
|
3770
3770
|
}, we({
|
|
3771
3771
|
entityType: _(() => [
|
|
3772
|
-
U(
|
|
3772
|
+
U(F(i.entityType), 1)
|
|
3773
3773
|
]),
|
|
3774
3774
|
_: 2
|
|
3775
3775
|
}, [
|
|
3776
3776
|
i.entityName ? {
|
|
3777
3777
|
name: "entityName",
|
|
3778
3778
|
fn: _(() => [
|
|
3779
|
-
|
|
3779
|
+
O("strong", null, F(i.entityName), 1)
|
|
3780
3780
|
]),
|
|
3781
3781
|
key: "0"
|
|
3782
3782
|
} : void 0
|
|
3783
3783
|
]), 1032, ["keypath"]),
|
|
3784
|
-
i.description || s.$slots.description ? (
|
|
3784
|
+
i.description || s.$slots.description ? (m(), $("div", nl, [
|
|
3785
3785
|
j(s.$slots, "description", {}, () => [
|
|
3786
|
-
|
|
3786
|
+
O("p", null, F(i.description), 1)
|
|
3787
3787
|
], !0)
|
|
3788
3788
|
])) : K("", !0)
|
|
3789
3789
|
]),
|
|
@@ -3805,7 +3805,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3805
3805
|
width: "20",
|
|
3806
3806
|
x: "0",
|
|
3807
3807
|
y: "0"
|
|
3808
|
-
}, ol = ["fill"], ll = { mask: "url(#mask0_180_20349)" }, sl = ["fill"], Nt = /* @__PURE__ */
|
|
3808
|
+
}, ol = ["fill"], ll = { mask: "url(#mask0_180_20349)" }, sl = ["fill"], Nt = /* @__PURE__ */ J({
|
|
3809
3809
|
__name: "IconFilter",
|
|
3810
3810
|
props: {
|
|
3811
3811
|
color: {
|
|
@@ -3814,16 +3814,16 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3814
3814
|
}
|
|
3815
3815
|
},
|
|
3816
3816
|
setup(e) {
|
|
3817
|
-
return (t, n) => (
|
|
3818
|
-
|
|
3819
|
-
|
|
3817
|
+
return (t, n) => (m(), $("svg", rl, [
|
|
3818
|
+
O("mask", al, [
|
|
3819
|
+
O("rect", {
|
|
3820
3820
|
fill: e.color,
|
|
3821
3821
|
height: "20",
|
|
3822
3822
|
width: "20"
|
|
3823
3823
|
}, null, 8, ol)
|
|
3824
3824
|
]),
|
|
3825
|
-
|
|
3826
|
-
|
|
3825
|
+
O("g", ll, [
|
|
3826
|
+
O("path", {
|
|
3827
3827
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3828
3828
|
fill: e.color
|
|
3829
3829
|
}, null, 8, sl)
|
|
@@ -3833,7 +3833,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3833
3833
|
}), cl = {
|
|
3834
3834
|
key: 1,
|
|
3835
3835
|
class: "kong-ui-entity-filter"
|
|
3836
|
-
}, ul = { class: "kong-ui-entity-filter-menu" }, dl = ["data-testid"], fl = ["onClick", "onKeydown"], pl = { class: "menu-item-indicator" }, ml = { class: "menu-item-body" }, hl = ["for"], gl = { class: "menu-item-buttons" }, yl = { class: "filter-clear-button-container" }, vl = /* @__PURE__ */
|
|
3836
|
+
}, ul = { class: "kong-ui-entity-filter-menu" }, dl = ["data-testid"], fl = ["onClick", "onKeydown"], pl = { class: "menu-item-indicator" }, ml = { class: "menu-item-body" }, hl = ["for"], gl = { class: "menu-item-buttons" }, yl = { class: "filter-clear-button-container" }, vl = /* @__PURE__ */ J({
|
|
3837
3837
|
__name: "EntityFilter",
|
|
3838
3838
|
props: {
|
|
3839
3839
|
// filter config, either exact match or fuzzy match
|
|
@@ -3853,62 +3853,62 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3853
3853
|
},
|
|
3854
3854
|
emits: ["update:modelValue"],
|
|
3855
3855
|
setup(e, { emit: t }) {
|
|
3856
|
-
const { i18n: { t: n } } =
|
|
3857
|
-
const
|
|
3858
|
-
return new URLSearchParams(i.modelValue).forEach((
|
|
3859
|
-
|
|
3860
|
-
}),
|
|
3856
|
+
const { i18n: { t: n } } = Y.useI18n(), i = e, r = t, o = B(!1), a = B({}), l = B(/* @__PURE__ */ new Set()), s = E(() => {
|
|
3857
|
+
const A = [];
|
|
3858
|
+
return new URLSearchParams(i.modelValue).forEach((w, f) => {
|
|
3859
|
+
w !== "" && A.push(f);
|
|
3860
|
+
}), A;
|
|
3861
3861
|
}), c = E(() => {
|
|
3862
|
-
const
|
|
3863
|
-
return Object.keys(
|
|
3862
|
+
const A = i.config.fields;
|
|
3863
|
+
return Object.keys(A).filter((w) => {
|
|
3864
3864
|
var f;
|
|
3865
|
-
return (f =
|
|
3866
|
-
}).map((
|
|
3867
|
-
label:
|
|
3868
|
-
value:
|
|
3865
|
+
return (f = A == null ? void 0 : A[w]) == null ? void 0 : f.searchable;
|
|
3866
|
+
}).map((w) => ({
|
|
3867
|
+
label: A[w].label || w,
|
|
3868
|
+
value: w,
|
|
3869
3869
|
expanded: !1
|
|
3870
3870
|
}));
|
|
3871
3871
|
});
|
|
3872
|
-
ve(() => i.modelValue, (
|
|
3873
|
-
a.value = {}, new URLSearchParams(
|
|
3874
|
-
a.value[f] =
|
|
3872
|
+
ve(() => i.modelValue, (A) => {
|
|
3873
|
+
a.value = {}, new URLSearchParams(A).forEach((w, f) => {
|
|
3874
|
+
a.value[f] = w;
|
|
3875
3875
|
});
|
|
3876
3876
|
});
|
|
3877
3877
|
const d = () => {
|
|
3878
3878
|
o.value = !o.value;
|
|
3879
|
-
}, u = (
|
|
3880
|
-
l.value.has(
|
|
3881
|
-
}, g = (
|
|
3882
|
-
r("update:modelValue",
|
|
3879
|
+
}, u = (A) => {
|
|
3880
|
+
l.value.has(A) ? l.value.delete(A) : l.value.add(A);
|
|
3881
|
+
}, g = (A) => {
|
|
3882
|
+
r("update:modelValue", A);
|
|
3883
3883
|
}, p = () => {
|
|
3884
3884
|
g("");
|
|
3885
|
-
}, y = (
|
|
3886
|
-
var
|
|
3887
|
-
return (((f = (
|
|
3888
|
-
}, b = (
|
|
3889
|
-
var
|
|
3890
|
-
return ((f = (
|
|
3891
|
-
},
|
|
3885
|
+
}, y = (A) => `filter-${A}`, v = (A) => {
|
|
3886
|
+
var w, f;
|
|
3887
|
+
return (((f = (w = i.config.schema) == null ? void 0 : w[A]) == null ? void 0 : f.values) ?? []).map((h) => typeof h == "string" ? { value: h, label: h } : h);
|
|
3888
|
+
}, b = (A) => {
|
|
3889
|
+
var w, f;
|
|
3890
|
+
return ((f = (w = i.config.schema) == null ? void 0 : w[A]) == null ? void 0 : f.type) ?? "text";
|
|
3891
|
+
}, S = (A) => {
|
|
3892
3892
|
a.value = {
|
|
3893
3893
|
...a.value,
|
|
3894
|
-
[
|
|
3895
|
-
},
|
|
3894
|
+
[A]: ""
|
|
3895
|
+
}, L();
|
|
3896
3896
|
}, x = () => {
|
|
3897
|
-
a.value = {},
|
|
3898
|
-
},
|
|
3899
|
-
const
|
|
3900
|
-
|
|
3901
|
-
},
|
|
3902
|
-
var
|
|
3903
|
-
return !!((f = (
|
|
3904
|
-
},
|
|
3905
|
-
var
|
|
3906
|
-
const f = (
|
|
3907
|
-
return (f == null ? void 0 : f.filterFunction) === void 0 ? !0 : f.filterFunction(
|
|
3897
|
+
a.value = {}, L(!0);
|
|
3898
|
+
}, L = (A = !1) => {
|
|
3899
|
+
const w = Object.keys(a.value).reduce((f, h) => (a.value[h] && (f[h] = `${a.value[h]}`), f), {});
|
|
3900
|
+
A && (o.value = !1), r("update:modelValue", new URLSearchParams(w).toString());
|
|
3901
|
+
}, q = (A) => {
|
|
3902
|
+
var w, f;
|
|
3903
|
+
return !!((f = (w = i.config.schema) == null ? void 0 : w[A]) != null && f.filterFunction);
|
|
3904
|
+
}, ne = (A, w) => {
|
|
3905
|
+
var h;
|
|
3906
|
+
const f = (h = i.config.schema) == null ? void 0 : h[A];
|
|
3907
|
+
return (f == null ? void 0 : f.filterFunction) === void 0 ? !0 : f.filterFunction(w);
|
|
3908
3908
|
};
|
|
3909
|
-
return (
|
|
3910
|
-
const f = D("KInput"),
|
|
3911
|
-
return e.config.isExactMatch ? (
|
|
3909
|
+
return (A, w) => {
|
|
3910
|
+
const f = D("KInput"), h = D("KButton"), C = D("KSelect");
|
|
3911
|
+
return e.config.isExactMatch ? (m(), N(f, {
|
|
3912
3912
|
key: 0,
|
|
3913
3913
|
autocomplete: "off",
|
|
3914
3914
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3921,7 +3921,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3921
3921
|
M(Nt)
|
|
3922
3922
|
]),
|
|
3923
3923
|
after: _(() => [
|
|
3924
|
-
be(M(
|
|
3924
|
+
be(M(T(ni), {
|
|
3925
3925
|
class: "kong-ui-entity-filter-clear",
|
|
3926
3926
|
role: "button",
|
|
3927
3927
|
tabindex: "0",
|
|
@@ -3931,110 +3931,110 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3931
3931
|
])
|
|
3932
3932
|
]),
|
|
3933
3933
|
_: 1
|
|
3934
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
3935
|
-
M(
|
|
3934
|
+
}, 8, ["model-value", "placeholder"])) : (m(), $("div", cl, [
|
|
3935
|
+
M(h, {
|
|
3936
3936
|
appearance: "tertiary",
|
|
3937
3937
|
"data-testid": "filter-button",
|
|
3938
3938
|
onClick: d
|
|
3939
3939
|
}, {
|
|
3940
3940
|
default: _(() => [
|
|
3941
3941
|
M(Nt),
|
|
3942
|
-
U(" " +
|
|
3942
|
+
U(" " + F(T(n)("filter.filterButtonText")) + " " + F(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3943
3943
|
]),
|
|
3944
3944
|
_: 1
|
|
3945
3945
|
}),
|
|
3946
|
-
be(
|
|
3946
|
+
be(O("div", {
|
|
3947
3947
|
class: "kong-ui-entity-filter-backdrop",
|
|
3948
3948
|
onClick: d
|
|
3949
3949
|
}, null, 512), [
|
|
3950
3950
|
[xe, o.value]
|
|
3951
3951
|
]),
|
|
3952
|
-
be(
|
|
3953
|
-
(
|
|
3954
|
-
var
|
|
3955
|
-
return
|
|
3956
|
-
key:
|
|
3952
|
+
be(O("div", ul, [
|
|
3953
|
+
(m(!0), $(ce, null, se(c.value, (k) => {
|
|
3954
|
+
var H, P;
|
|
3955
|
+
return m(), $("div", {
|
|
3956
|
+
key: k.value,
|
|
3957
3957
|
class: "kong-ui-entity-filter-menu-item",
|
|
3958
|
-
"data-testid":
|
|
3958
|
+
"data-testid": k.value
|
|
3959
3959
|
}, [
|
|
3960
|
-
|
|
3961
|
-
class: de(["menu-item-title", { expanded: l.value.has(
|
|
3960
|
+
O("span", {
|
|
3961
|
+
class: de(["menu-item-title", { expanded: l.value.has(k.value) }]),
|
|
3962
3962
|
role: "button",
|
|
3963
3963
|
tabindex: "0",
|
|
3964
|
-
onClick: (R) => u(
|
|
3965
|
-
onKeydown: Gn((R) => u(
|
|
3964
|
+
onClick: (R) => u(k.value),
|
|
3965
|
+
onKeydown: Gn((R) => u(k.value), ["enter"])
|
|
3966
3966
|
}, [
|
|
3967
|
-
U(
|
|
3968
|
-
be(
|
|
3969
|
-
[xe, s.value.includes(
|
|
3967
|
+
U(F(k.label) + " ", 1),
|
|
3968
|
+
be(O("span", pl, null, 512), [
|
|
3969
|
+
[xe, s.value.includes(k.value)]
|
|
3970
3970
|
]),
|
|
3971
|
-
M(
|
|
3972
|
-
class: de(["menu-item-expand-icon", { expanded: l.value.has(
|
|
3973
|
-
color:
|
|
3971
|
+
M(T(ii), {
|
|
3972
|
+
class: de(["menu-item-expand-icon", { expanded: l.value.has(k.value) }]),
|
|
3973
|
+
color: T(Ji)
|
|
3974
3974
|
}, null, 8, ["class", "color"])
|
|
3975
3975
|
], 42, fl),
|
|
3976
|
-
be(
|
|
3977
|
-
|
|
3976
|
+
be(O("div", ml, [
|
|
3977
|
+
O("label", {
|
|
3978
3978
|
class: "menu-item-label",
|
|
3979
|
-
for: y(
|
|
3980
|
-
},
|
|
3981
|
-
((P = (
|
|
3979
|
+
for: y(k.value)
|
|
3980
|
+
}, F(T(n)("filter.fieldLabel")), 9, hl),
|
|
3981
|
+
((P = (H = e.config.schema) == null ? void 0 : H[k.value]) == null ? void 0 : P.type) === "select" ? (m(), N(C, {
|
|
3982
3982
|
key: 0,
|
|
3983
|
-
id: y(
|
|
3984
|
-
modelValue: a.value[
|
|
3985
|
-
"onUpdate:modelValue": (R) => a.value[
|
|
3986
|
-
"enable-filtering":
|
|
3987
|
-
"filter-function": (R) =>
|
|
3988
|
-
items:
|
|
3989
|
-
placeholder:
|
|
3990
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (
|
|
3983
|
+
id: y(k.value),
|
|
3984
|
+
modelValue: a.value[k.value],
|
|
3985
|
+
"onUpdate:modelValue": (R) => a.value[k.value] = R,
|
|
3986
|
+
"enable-filtering": q(k.value),
|
|
3987
|
+
"filter-function": (R) => ne(k.value, R),
|
|
3988
|
+
items: v(k.value),
|
|
3989
|
+
placeholder: T(n)("filter.selectPlaceholder")
|
|
3990
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (m(), N(f, {
|
|
3991
3991
|
key: 1,
|
|
3992
|
-
id: y(
|
|
3993
|
-
modelValue: a.value[
|
|
3994
|
-
"onUpdate:modelValue": (R) => a.value[
|
|
3992
|
+
id: y(k.value),
|
|
3993
|
+
modelValue: a.value[k.value],
|
|
3994
|
+
"onUpdate:modelValue": (R) => a.value[k.value] = R,
|
|
3995
3995
|
autocomplete: "off",
|
|
3996
|
-
placeholder:
|
|
3997
|
-
type: b(
|
|
3996
|
+
placeholder: T(n)("filter.inputPlaceholder"),
|
|
3997
|
+
type: b(k.value)
|
|
3998
3998
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3999
3999
|
], 512), [
|
|
4000
|
-
[xe, l.value.has(
|
|
4000
|
+
[xe, l.value.has(k.value)]
|
|
4001
4001
|
]),
|
|
4002
|
-
be(
|
|
4003
|
-
M(
|
|
4002
|
+
be(O("div", gl, [
|
|
4003
|
+
M(h, {
|
|
4004
4004
|
appearance: "tertiary",
|
|
4005
4005
|
"data-testid": "apply-filter",
|
|
4006
4006
|
size: "small",
|
|
4007
|
-
onClick:
|
|
4007
|
+
onClick: w[0] || (w[0] = (R) => L(!0))
|
|
4008
4008
|
}, {
|
|
4009
4009
|
default: _(() => [
|
|
4010
|
-
U(
|
|
4010
|
+
U(F(T(n)("filter.applyButtonText")), 1)
|
|
4011
4011
|
]),
|
|
4012
4012
|
_: 1
|
|
4013
4013
|
}),
|
|
4014
|
-
M(
|
|
4014
|
+
M(h, {
|
|
4015
4015
|
appearance: "tertiary",
|
|
4016
4016
|
"data-testid": "clear-filter",
|
|
4017
4017
|
size: "small",
|
|
4018
|
-
onClick: (R) =>
|
|
4018
|
+
onClick: (R) => S(k.value)
|
|
4019
4019
|
}, {
|
|
4020
4020
|
default: _(() => [
|
|
4021
|
-
U(
|
|
4021
|
+
U(F(T(n)("filter.clearButtonText")), 1)
|
|
4022
4022
|
]),
|
|
4023
4023
|
_: 2
|
|
4024
4024
|
}, 1032, ["onClick"])
|
|
4025
4025
|
], 512), [
|
|
4026
|
-
[xe, l.value.has(
|
|
4026
|
+
[xe, l.value.has(k.value)]
|
|
4027
4027
|
])
|
|
4028
4028
|
], 8, dl);
|
|
4029
4029
|
}), 128)),
|
|
4030
|
-
|
|
4031
|
-
M(
|
|
4030
|
+
O("div", yl, [
|
|
4031
|
+
M(h, {
|
|
4032
4032
|
appearance: "tertiary",
|
|
4033
4033
|
size: "small",
|
|
4034
4034
|
onClick: x
|
|
4035
4035
|
}, {
|
|
4036
4036
|
default: _(() => [
|
|
4037
|
-
U(
|
|
4037
|
+
U(F(T(n)("filter.clearAllButtonText")), 1)
|
|
4038
4038
|
]),
|
|
4039
4039
|
_: 1
|
|
4040
4040
|
})
|
|
@@ -4045,7 +4045,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4045
4045
|
]));
|
|
4046
4046
|
};
|
|
4047
4047
|
}
|
|
4048
|
-
}), hs = /* @__PURE__ */ oe(vl, [["__scopeId", "data-v-084f7978"]]), gs = /* @__PURE__ */
|
|
4048
|
+
}), hs = /* @__PURE__ */ oe(vl, [["__scopeId", "data-v-084f7978"]]), gs = /* @__PURE__ */ J({
|
|
4049
4049
|
__name: "EntityToggleModal",
|
|
4050
4050
|
props: {
|
|
4051
4051
|
visible: {
|
|
@@ -4077,7 +4077,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4077
4077
|
},
|
|
4078
4078
|
emits: ["cancel", "proceed"],
|
|
4079
4079
|
setup(e, { emit: t }) {
|
|
4080
|
-
const { i18n: { t: n }, i18nT: i } =
|
|
4080
|
+
const { i18n: { t: n }, i18nT: i } = Y.useI18n(), r = e, o = t, a = B(!1), l = E(
|
|
4081
4081
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4082
4082
|
), s = E(
|
|
4083
4083
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
@@ -4095,7 +4095,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4095
4095
|
};
|
|
4096
4096
|
return (u, g) => {
|
|
4097
4097
|
const p = D("KPrompt");
|
|
4098
|
-
return
|
|
4098
|
+
return m(), N(Ut, { to: "body" }, [
|
|
4099
4099
|
M(p, {
|
|
4100
4100
|
"action-button-disabled": a.value,
|
|
4101
4101
|
"action-button-text": s.value,
|
|
@@ -4106,15 +4106,15 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4106
4106
|
onProceed: d
|
|
4107
4107
|
}, {
|
|
4108
4108
|
default: _(() => [
|
|
4109
|
-
M(
|
|
4109
|
+
M(T(i), {
|
|
4110
4110
|
keypath: `toggleModal.${r.action}.message`,
|
|
4111
4111
|
scope: "global"
|
|
4112
4112
|
}, {
|
|
4113
4113
|
entityType: _(() => [
|
|
4114
|
-
U(
|
|
4114
|
+
U(F(e.entityType), 1)
|
|
4115
4115
|
]),
|
|
4116
4116
|
entityName: _(() => [
|
|
4117
|
-
|
|
4117
|
+
O("strong", null, F(e.entityName), 1)
|
|
4118
4118
|
]),
|
|
4119
4119
|
_: 1
|
|
4120
4120
|
}, 8, ["keypath"])
|
|
@@ -4124,7 +4124,7 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4124
4124
|
]);
|
|
4125
4125
|
};
|
|
4126
4126
|
}
|
|
4127
|
-
}), ys = /* @__PURE__ */
|
|
4127
|
+
}), ys = /* @__PURE__ */ J({
|
|
4128
4128
|
__name: "PermissionsWrapper",
|
|
4129
4129
|
props: {
|
|
4130
4130
|
/**
|
|
@@ -4154,11 +4154,11 @@ const Ro = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4154
4154
|
isAllowed: n.value
|
|
4155
4155
|
}) : K("", !0);
|
|
4156
4156
|
}
|
|
4157
|
-
}),
|
|
4157
|
+
}), X = [];
|
|
4158
4158
|
for (let e = 0; e < 256; ++e)
|
|
4159
|
-
|
|
4159
|
+
X.push((e + 256).toString(16).slice(1));
|
|
4160
4160
|
function bl(e, t = 0) {
|
|
4161
|
-
return (
|
|
4161
|
+
return (X[e[t + 0]] + X[e[t + 1]] + X[e[t + 2]] + X[e[t + 3]] + "-" + X[e[t + 4]] + X[e[t + 5]] + "-" + X[e[t + 6]] + X[e[t + 7]] + "-" + X[e[t + 8]] + X[e[t + 9]] + "-" + X[e[t + 10]] + X[e[t + 11]] + X[e[t + 12]] + X[e[t + 13]] + X[e[t + 14]] + X[e[t + 15]]).toLowerCase();
|
|
4162
4162
|
}
|
|
4163
4163
|
let Je;
|
|
4164
4164
|
const xl = new Uint8Array(16);
|
|
@@ -4187,7 +4187,7 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4187
4187
|
}, $l = {
|
|
4188
4188
|
key: 2,
|
|
4189
4189
|
class: "form-section-footer"
|
|
4190
|
-
}, Tl = { class: "form-section-content" }, Il = /* @__PURE__ */
|
|
4190
|
+
}, Tl = { class: "form-section-content" }, Il = /* @__PURE__ */ J({
|
|
4191
4191
|
__name: "EntityFormSection",
|
|
4192
4192
|
props: {
|
|
4193
4193
|
title: {
|
|
@@ -4217,36 +4217,36 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4217
4217
|
},
|
|
4218
4218
|
setup(e) {
|
|
4219
4219
|
const t = De(), n = Al();
|
|
4220
|
-
return (i, r) => (
|
|
4221
|
-
"aria-labelledby": e.title ?
|
|
4220
|
+
return (i, r) => (m(), $("div", {
|
|
4221
|
+
"aria-labelledby": e.title ? T(n) : void 0,
|
|
4222
4222
|
class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4223
4223
|
role: "group"
|
|
4224
4224
|
}, [
|
|
4225
|
-
|
|
4226
|
-
e.hideInfoHeader ? K("", !0) : (
|
|
4225
|
+
O("div", wl, [
|
|
4226
|
+
e.hideInfoHeader ? K("", !0) : (m(), $("div", {
|
|
4227
4227
|
key: 0,
|
|
4228
4228
|
class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4229
4229
|
}, [
|
|
4230
|
-
e.title ? (
|
|
4230
|
+
e.title ? (m(), N(je(e.titleTag), {
|
|
4231
4231
|
key: 0,
|
|
4232
|
-
id:
|
|
4232
|
+
id: T(n),
|
|
4233
4233
|
class: "form-section-title"
|
|
4234
4234
|
}, {
|
|
4235
4235
|
default: _(() => [
|
|
4236
|
-
U(
|
|
4236
|
+
U(F(e.title), 1)
|
|
4237
4237
|
]),
|
|
4238
4238
|
_: 1
|
|
4239
4239
|
}, 8, ["id"])) : K("", !0),
|
|
4240
|
-
e.description ||
|
|
4240
|
+
e.description || T(t).description ? (m(), $("div", Sl, [
|
|
4241
4241
|
j(i.$slots, "description", {}, () => [
|
|
4242
|
-
|
|
4242
|
+
O("p", null, F(e.description), 1)
|
|
4243
4243
|
], !0)
|
|
4244
4244
|
])) : K("", !0),
|
|
4245
|
-
|
|
4245
|
+
T(t).footer ? (m(), $("div", $l, [
|
|
4246
4246
|
j(i.$slots, "footer", {}, void 0, !0)
|
|
4247
4247
|
])) : K("", !0)
|
|
4248
4248
|
], 2)),
|
|
4249
|
-
|
|
4249
|
+
O("div", Tl, [
|
|
4250
4250
|
j(i.$slots, "default", {}, void 0, !0)
|
|
4251
4251
|
])
|
|
4252
4252
|
])
|
|
@@ -4261,7 +4261,7 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4261
4261
|
}, Kl = {
|
|
4262
4262
|
key: 1,
|
|
4263
4263
|
class: "header-extra"
|
|
4264
|
-
}, Nl = { class: "content" }, Ml = /* @__PURE__ */
|
|
4264
|
+
}, Nl = { class: "content" }, Ml = /* @__PURE__ */ J({
|
|
4265
4265
|
__name: "EntityFormBlock",
|
|
4266
4266
|
props: {
|
|
4267
4267
|
step: {},
|
|
@@ -4270,26 +4270,26 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4270
4270
|
},
|
|
4271
4271
|
setup(e) {
|
|
4272
4272
|
const t = De();
|
|
4273
|
-
return (n, i) => (
|
|
4274
|
-
|
|
4275
|
-
n.step != null ? (
|
|
4276
|
-
|
|
4277
|
-
|
|
4273
|
+
return (n, i) => (m(), $("div", El, [
|
|
4274
|
+
O("header", Fl, [
|
|
4275
|
+
n.step != null ? (m(), $("div", Ol, F(n.step), 1)) : K("", !0),
|
|
4276
|
+
O("div", Ll, [
|
|
4277
|
+
O("h2", Rl, [
|
|
4278
4278
|
j(n.$slots, "title", {}, () => [
|
|
4279
|
-
U(
|
|
4279
|
+
U(F(n.title), 1)
|
|
4280
4280
|
], !0)
|
|
4281
4281
|
]),
|
|
4282
|
-
n.description || t.description ? (
|
|
4282
|
+
n.description || t.description ? (m(), $("div", Bl, [
|
|
4283
4283
|
j(n.$slots, "description", {}, () => [
|
|
4284
|
-
U(
|
|
4284
|
+
U(F(n.description), 1)
|
|
4285
4285
|
], !0)
|
|
4286
4286
|
])) : K("", !0)
|
|
4287
4287
|
]),
|
|
4288
|
-
t.extra ? (
|
|
4288
|
+
t.extra ? (m(), $("div", Kl, [
|
|
4289
4289
|
j(n.$slots, "extra", {}, void 0, !0)
|
|
4290
4290
|
])) : K("", !0)
|
|
4291
4291
|
]),
|
|
4292
|
-
|
|
4292
|
+
O("div", Nl, [
|
|
4293
4293
|
j(n.$slots, "default", {}, void 0, !0)
|
|
4294
4294
|
])
|
|
4295
4295
|
]));
|
|
@@ -4300,7 +4300,7 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4300
4300
|
}, Dl = {
|
|
4301
4301
|
key: 0,
|
|
4302
4302
|
class: "deleted-entity"
|
|
4303
|
-
}, Pl = { key: 1 }, Ul = ["onClick"], ql = /* @__PURE__ */
|
|
4303
|
+
}, Pl = { key: 1 }, Ul = ["onClick"], ql = /* @__PURE__ */ J({
|
|
4304
4304
|
__name: "EntityLink",
|
|
4305
4305
|
props: {
|
|
4306
4306
|
entityLinkData: {
|
|
@@ -4324,7 +4324,7 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4324
4324
|
}
|
|
4325
4325
|
},
|
|
4326
4326
|
setup(e) {
|
|
4327
|
-
const t = e, n = B(), { isTruncated: i } =
|
|
4327
|
+
const t = e, n = B(), { isTruncated: i } = Y.useTruncationDetector(n), { i18n: { t: r } } = Y.useI18n(), o = r("global.actions.copyId"), a = B(o), l = E(() => t.entityLinkData.deleted ?? !1), s = E(() => {
|
|
4328
4328
|
var u;
|
|
4329
4329
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4330
4330
|
}), c = E(() => {
|
|
@@ -4336,9 +4336,9 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4336
4336
|
}, 1800));
|
|
4337
4337
|
};
|
|
4338
4338
|
return (u, g) => {
|
|
4339
|
-
const p = D("KTooltip"), y = D("KExternalLink"),
|
|
4340
|
-
return
|
|
4341
|
-
l.value ? (
|
|
4339
|
+
const p = D("KTooltip"), y = D("KExternalLink"), v = D("KClipboardProvider");
|
|
4340
|
+
return m(), $("div", jl, [
|
|
4341
|
+
l.value ? (m(), $("div", Dl, F(c.value), 1)) : s.value ? s.value ? (m(), N(y, {
|
|
4342
4342
|
key: 2,
|
|
4343
4343
|
class: "entity-link",
|
|
4344
4344
|
"hide-icon": !e.newWindow,
|
|
@@ -4347,21 +4347,21 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4347
4347
|
}, {
|
|
4348
4348
|
default: _(() => [
|
|
4349
4349
|
M(p, {
|
|
4350
|
-
text:
|
|
4350
|
+
text: T(i) && e.entityLinkData.label || ""
|
|
4351
4351
|
}, {
|
|
4352
4352
|
default: _(() => [
|
|
4353
|
-
|
|
4353
|
+
O("span", {
|
|
4354
4354
|
ref_key: "textContent",
|
|
4355
4355
|
ref: n,
|
|
4356
4356
|
class: "entity-link-label"
|
|
4357
|
-
},
|
|
4357
|
+
}, F(e.entityLinkData.label), 513)
|
|
4358
4358
|
]),
|
|
4359
4359
|
_: 1
|
|
4360
4360
|
}, 8, ["text"])
|
|
4361
4361
|
]),
|
|
4362
4362
|
_: 1
|
|
4363
|
-
}, 8, ["hide-icon", "href", "target"])) : K("", !0) : (
|
|
4364
|
-
s.value && e.allowCopy ? (
|
|
4363
|
+
}, 8, ["hide-icon", "href", "target"])) : K("", !0) : (m(), $("div", Pl, F(" – "))),
|
|
4364
|
+
s.value && e.allowCopy ? (m(), N(p, {
|
|
4365
4365
|
key: a.value,
|
|
4366
4366
|
class: "copy-uuid-tooltip",
|
|
4367
4367
|
"max-width": "160",
|
|
@@ -4369,17 +4369,17 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4369
4369
|
text: a.value
|
|
4370
4370
|
}, {
|
|
4371
4371
|
default: _(() => [
|
|
4372
|
-
M(
|
|
4372
|
+
M(v, null, {
|
|
4373
4373
|
default: _(({ copyToClipboard: b }) => [
|
|
4374
|
-
|
|
4374
|
+
O("span", {
|
|
4375
4375
|
class: "entity-link-copy-id",
|
|
4376
|
-
onClick: Le((
|
|
4376
|
+
onClick: Le((S) => d(b), ["stop"])
|
|
4377
4377
|
}, [
|
|
4378
|
-
M(
|
|
4378
|
+
M(T(ri), {
|
|
4379
4379
|
class: "copy-icon",
|
|
4380
|
-
color:
|
|
4380
|
+
color: T(Gi),
|
|
4381
4381
|
"data-testid": "copy-id",
|
|
4382
|
-
size:
|
|
4382
|
+
size: T(Qi)
|
|
4383
4383
|
}, null, 8, ["color", "size"])
|
|
4384
4384
|
], 8, Ul)
|
|
4385
4385
|
]),
|
|
@@ -4418,7 +4418,7 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4418
4418
|
}, es = { class: "card-header" }, ts = ["title"], ns = {
|
|
4419
4419
|
key: 3,
|
|
4420
4420
|
class: "entity-empty-state-bottom-container"
|
|
4421
|
-
}, is = /* @__PURE__ */
|
|
4421
|
+
}, is = /* @__PURE__ */ J({
|
|
4422
4422
|
__name: "EntityEmptyState",
|
|
4423
4423
|
props: {
|
|
4424
4424
|
appearance: {
|
|
@@ -4459,47 +4459,47 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4459
4459
|
},
|
|
4460
4460
|
emits: ["click:create", "click:learn-more"],
|
|
4461
4461
|
setup(e) {
|
|
4462
|
-
const t = e, { i18n: { t: n } } =
|
|
4462
|
+
const t = e, { i18n: { t: n } } = Y.useI18n(), i = B(!1), r = E(() => i.value && !!t.actionButtonText), o = E(() => mt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4463
4463
|
return nt(async () => {
|
|
4464
4464
|
i.value = await t.canCreate();
|
|
4465
4465
|
}), tt(() => zn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4466
4466
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
|
|
4467
4467
|
const s = D("KCard");
|
|
4468
|
-
return
|
|
4469
|
-
|
|
4470
|
-
a.$slots.image ? (
|
|
4468
|
+
return m(), $("div", Hl, [
|
|
4469
|
+
O("div", Vl, [
|
|
4470
|
+
a.$slots.image ? (m(), $("div", Yl, [
|
|
4471
4471
|
j(a.$slots, "image", {}, void 0, !0)
|
|
4472
4472
|
])) : K("", !0),
|
|
4473
|
-
e.title || a.$slots.title ? (
|
|
4474
|
-
|
|
4473
|
+
e.title || a.$slots.title ? (m(), $("div", Wl, [
|
|
4474
|
+
O("h1", {
|
|
4475
4475
|
class: de(o.value)
|
|
4476
4476
|
}, [
|
|
4477
4477
|
j(a.$slots, "title", {}, () => [
|
|
4478
|
-
U(
|
|
4478
|
+
U(F(e.title), 1)
|
|
4479
4479
|
], !0)
|
|
4480
4480
|
], 2)
|
|
4481
4481
|
])) : K("", !0),
|
|
4482
|
-
e.description || a.$slots.default ? (
|
|
4482
|
+
e.description || a.$slots.default ? (m(), $("div", Jl, [
|
|
4483
4483
|
j(a.$slots, "default", {}, () => [
|
|
4484
|
-
|
|
4484
|
+
O("p", null, F(e.description), 1)
|
|
4485
4485
|
], !0)
|
|
4486
4486
|
])) : K("", !0),
|
|
4487
|
-
e.pricing || a.$slots.pricing ? (
|
|
4488
|
-
|
|
4489
|
-
|
|
4487
|
+
e.pricing || a.$slots.pricing ? (m(), $("div", Gl, [
|
|
4488
|
+
O("p", null, [
|
|
4489
|
+
O("b", null, F(T(n)("emptyState.pricingTitle")), 1),
|
|
4490
4490
|
l[2] || (l[2] = U()),
|
|
4491
4491
|
j(a.$slots, "pricing", {}, () => [
|
|
4492
|
-
U(
|
|
4492
|
+
U(F(e.pricing), 1)
|
|
4493
4493
|
], !0)
|
|
4494
4494
|
])
|
|
4495
4495
|
])) : K("", !0)
|
|
4496
4496
|
]),
|
|
4497
|
-
a.$slots.message ? (
|
|
4497
|
+
a.$slots.message ? (m(), $("div", zl, [
|
|
4498
4498
|
j(a.$slots, "message", {}, void 0, !0)
|
|
4499
4499
|
])) : K("", !0),
|
|
4500
|
-
r.value || e.learnMore || a.$slots.actions ? (
|
|
4500
|
+
r.value || e.learnMore || a.$slots.actions ? (m(), $("div", Ql, [
|
|
4501
4501
|
j(a.$slots, "actions", {}, () => [
|
|
4502
|
-
r.value ? (
|
|
4502
|
+
r.value ? (m(), N(T(pt), {
|
|
4503
4503
|
key: 0,
|
|
4504
4504
|
appearance: "primary",
|
|
4505
4505
|
"data-testid": "entity-create-button",
|
|
@@ -4507,12 +4507,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4507
4507
|
onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
|
|
4508
4508
|
}, {
|
|
4509
4509
|
default: _(() => [
|
|
4510
|
-
M(
|
|
4511
|
-
U(" " +
|
|
4510
|
+
M(T(Ht)),
|
|
4511
|
+
U(" " + F(e.actionButtonText), 1)
|
|
4512
4512
|
]),
|
|
4513
4513
|
_: 1
|
|
4514
4514
|
}, 8, ["size"])) : K("", !0),
|
|
4515
|
-
e.learnMore ? (
|
|
4515
|
+
e.learnMore ? (m(), N(T(pt), {
|
|
4516
4516
|
key: 1,
|
|
4517
4517
|
appearance: "secondary",
|
|
4518
4518
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4520,39 +4520,39 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4520
4520
|
onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
|
|
4521
4521
|
}, {
|
|
4522
4522
|
default: _(() => [
|
|
4523
|
-
M(
|
|
4524
|
-
U(" " +
|
|
4523
|
+
M(T(qt), { decorative: "" }),
|
|
4524
|
+
U(" " + F(T(n)("emptyState.learnMore")), 1)
|
|
4525
4525
|
]),
|
|
4526
4526
|
_: 1
|
|
4527
4527
|
}, 8, ["size"])) : K("", !0)
|
|
4528
4528
|
], !0)
|
|
4529
4529
|
])) : K("", !0),
|
|
4530
|
-
e.features.length ? (
|
|
4531
|
-
(
|
|
4530
|
+
e.features.length ? (m(), $("div", Zl, [
|
|
4531
|
+
(m(!0), $(ce, null, se(e.features, (c, d) => (m(), N(s, {
|
|
4532
4532
|
key: c,
|
|
4533
4533
|
class: "entity-empty-state-card"
|
|
4534
4534
|
}, {
|
|
4535
4535
|
title: _(() => [
|
|
4536
|
-
a.$slots[`feature-${d}-icon`] ? (
|
|
4536
|
+
a.$slots[`feature-${d}-icon`] ? (m(), $("div", Xl, [
|
|
4537
4537
|
j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4538
4538
|
])) : K("", !0),
|
|
4539
|
-
|
|
4539
|
+
O("div", es, F(c.title), 1)
|
|
4540
4540
|
]),
|
|
4541
4541
|
default: _(() => [
|
|
4542
|
-
|
|
4542
|
+
O("div", {
|
|
4543
4543
|
title: c.description
|
|
4544
|
-
},
|
|
4544
|
+
}, F(c.description), 9, ts)
|
|
4545
4545
|
]),
|
|
4546
4546
|
_: 2
|
|
4547
4547
|
}, 1024))), 128))
|
|
4548
4548
|
])) : K("", !0),
|
|
4549
|
-
a.$slots.bottom ? (
|
|
4549
|
+
a.$slots.bottom ? (m(), $("div", ns, [
|
|
4550
4550
|
j(a.$slots, "bottom", {}, void 0, !0)
|
|
4551
4551
|
])) : K("", !0)
|
|
4552
4552
|
]);
|
|
4553
4553
|
};
|
|
4554
4554
|
}
|
|
4555
|
-
}), Cs = /* @__PURE__ */ oe(is, [["__scopeId", "data-v-645aae54"]]), rs = { key: 1 }, ks = /* @__PURE__ */
|
|
4555
|
+
}), Cs = /* @__PURE__ */ oe(is, [["__scopeId", "data-v-645aae54"]]), rs = { key: 1 }, ks = /* @__PURE__ */ J({
|
|
4556
4556
|
__name: "TableTags",
|
|
4557
4557
|
props: {
|
|
4558
4558
|
/** The tags to display in the table */
|
|
@@ -4580,31 +4580,31 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4580
4580
|
});
|
|
4581
4581
|
return (i, r) => {
|
|
4582
4582
|
var o;
|
|
4583
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (
|
|
4583
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), N(T(ei), { key: 0 }, {
|
|
4584
4584
|
default: _(() => [
|
|
4585
|
-
(
|
|
4585
|
+
(m(!0), $(ce, null, se(n.value, (a) => (m(), N(T(ti), {
|
|
4586
4586
|
key: a,
|
|
4587
4587
|
"max-width": e.tagMaxWidth,
|
|
4588
4588
|
onClick: r[0] || (r[0] = Le(() => {
|
|
4589
4589
|
}, ["stop"]))
|
|
4590
4590
|
}, {
|
|
4591
4591
|
default: _(() => [
|
|
4592
|
-
U(
|
|
4592
|
+
U(F(a), 1)
|
|
4593
4593
|
]),
|
|
4594
4594
|
_: 2
|
|
4595
4595
|
}, 1032, ["max-width"]))), 128))
|
|
4596
4596
|
]),
|
|
4597
4597
|
_: 1
|
|
4598
|
-
})) : (
|
|
4598
|
+
})) : (m(), $("span", rs, "-"));
|
|
4599
4599
|
};
|
|
4600
4600
|
}
|
|
4601
|
-
}), { useAxios: As, useDeleteUrlBuilder: _s, useErrors: ws, useExternalLinkCreator: Ss, useFetchUrlBuilder: $s, useFetcher: Ts, useFetcherCacheKey: Is, useDebouncedFilter: Es, useStringHelpers: Fs, useHelpers: Os, useGatewayFeatureSupported: Ls, useTruncationDetector: Rs, useValidators: Bs, useSchemaProvider: Ks, useTableState: Ns } =
|
|
4601
|
+
}), { useAxios: As, useDeleteUrlBuilder: _s, useErrors: ws, useExternalLinkCreator: Ss, useFetchUrlBuilder: $s, useFetcher: Ts, useFetcherCacheKey: Is, useDebouncedFilter: Es, useStringHelpers: Fs, useHelpers: Os, useGatewayFeatureSupported: Ls, useTruncationDetector: Rs, useValidators: Bs, useSchemaProvider: Ks, useTableState: Ns } = Y;
|
|
4602
4602
|
export {
|
|
4603
4603
|
mt as Appearances,
|
|
4604
4604
|
Do as ConfigCardDisplay,
|
|
4605
4605
|
Qt as ConfigCardItem,
|
|
4606
4606
|
le as ConfigurationSchemaSection,
|
|
4607
|
-
|
|
4607
|
+
V as ConfigurationSchemaType,
|
|
4608
4608
|
ds as EntityBaseConfigCard,
|
|
4609
4609
|
fs as EntityBaseForm,
|
|
4610
4610
|
li as EntityBaseFormType,
|