@kong-ui-public/entities-shared 3.30.6 → 3.30.7-pr.2512.1b2e63ccd.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-shared.es.js +319 -319
- package/dist/entities-shared.umd.js +20 -20
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts +11 -6
- package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts.map +1 -1
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +1 -0
- package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { inject as jt, ref as R, computed as F, unref as T, toValue as me, watch as ve, toRef as
|
|
1
|
+
import { inject as jt, ref as R, computed as F, unref as T, toValue as me, watch as ve, toRef as Hn, provide as Dt, defineComponent as J, createBlock as M, openBlock as m, resolveDynamicComponent as Me, normalizeClass as de, withCtx as _, createElementBlock as $, createCommentVNode as K, createElementVNode as O, toDisplayString as E, Fragment as ce, renderList as se, resolveComponent as D, createVNode as N, createTextVNode as U, useCssVars as Pt, useId as Vn, useSlots as je, renderSlot as j, createSlots as _e, normalizeProps as Yn, guardReactiveProps as Wn, mergeProps as Ut, onMounted as et, onBeforeMount as tt, withModifiers as Oe, Teleport as qt, onUnmounted as Jn, withDirectives as be, vShow as xe, withKeys as Gn, warn as zn } from "vue";
|
|
2
2
|
import ft from "axios";
|
|
3
3
|
import { createI18n as Qn, i18nTComponent as Zn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Xn, KButton as pt, KTruncate as ei, KBadge as ti } from "@kong/kongponents";
|
|
5
|
-
import { BookIcon as
|
|
5
|
+
import { BookIcon as Ht, AddIcon as Vt, CloseIcon as ni, ChevronDownIcon as ii, CopyIcon as ri } from "@kong/icons";
|
|
6
6
|
import { useRouter as ai } from "vue-router";
|
|
7
|
-
var oi = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(oi || {}), li = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(li || {}), pe = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(pe || {}),
|
|
8
|
-
const
|
|
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 || {}), nt = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.Policy = "policy", e.Other = "other", e))(nt || {});
|
|
8
|
+
const De = Object.values(nt);
|
|
9
9
|
var V = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(V || {}), le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(le || {});
|
|
10
10
|
const mt = [
|
|
11
11
|
"primary",
|
|
@@ -47,7 +47,7 @@ function ci() {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const qe = "khcp-user-table-preferences", ui = {
|
|
51
51
|
pageSize: 30,
|
|
52
52
|
sortColumnKey: void 0,
|
|
53
53
|
sortColumnOrder: void 0,
|
|
@@ -63,14 +63,14 @@ function di() {
|
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
}, t = () => {
|
|
66
|
-
const n = e(localStorage.getItem(
|
|
66
|
+
const n = e(localStorage.getItem(qe));
|
|
67
67
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
68
68
|
};
|
|
69
69
|
return {
|
|
70
70
|
setTablePreferences: (n, i) => {
|
|
71
71
|
try {
|
|
72
72
|
const r = t();
|
|
73
|
-
r.set(n, i), localStorage.setItem(
|
|
73
|
+
r.set(n, i), localStorage.setItem(qe, JSON.stringify(Object.fromEntries(r.entries())));
|
|
74
74
|
} catch (r) {
|
|
75
75
|
console.error("useTablePreferences(setTablePreferences)", r);
|
|
76
76
|
}
|
|
@@ -80,11 +80,11 @@ function di() {
|
|
|
80
80
|
return (r == null ? void 0 : r.get(n)) || void 0 || i || ui;
|
|
81
81
|
},
|
|
82
82
|
deleteAllTablePreferences: () => {
|
|
83
|
-
localStorage.removeItem(
|
|
83
|
+
localStorage.removeItem(qe);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function it(e = {}) {
|
|
88
88
|
const { getAxiosInstance: t } = si();
|
|
89
89
|
return {
|
|
90
90
|
axiosInstance: t(e)
|
|
@@ -204,7 +204,7 @@ const fi = {
|
|
|
204
204
|
validationErrors: Ci,
|
|
205
205
|
toggleModal: ki
|
|
206
206
|
};
|
|
207
|
-
function
|
|
207
|
+
function Pe() {
|
|
208
208
|
const e = Qn("en-us", Ai);
|
|
209
209
|
return {
|
|
210
210
|
i18n: e,
|
|
@@ -212,7 +212,7 @@ function Ue() {
|
|
|
212
212
|
// Translation component <i18n-t>
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Yt() {
|
|
216
216
|
const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
|
|
217
217
|
if (o.length !== a.length) return !1;
|
|
218
218
|
const l = /* @__PURE__ */ new Set([...o, ...a]);
|
|
@@ -259,12 +259,12 @@ function wi(e, t, n, i = {
|
|
|
259
259
|
searchKeys: ["id"]
|
|
260
260
|
}) {
|
|
261
261
|
n || (n = "1000");
|
|
262
|
-
const { axiosInstance: r } =
|
|
262
|
+
const { axiosInstance: r } = it(e.axiosRequestConfig), { i18n: { t: o } } = Pe(), { debounce: a } = ci(), l = a(async (L) => {
|
|
263
263
|
await x(L);
|
|
264
264
|
}, 200), s = R(!1), c = R(""), d = R(""), u = R([]), g = R([]), p = R(void 0), y = F(() => {
|
|
265
265
|
const L = `${e.apiBaseUrl}${T(t)}`;
|
|
266
266
|
return e.app === "konnect" ? L.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? L.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : L;
|
|
267
|
-
}), { isValidUuid: v } =
|
|
267
|
+
}), { isValidUuid: v } = Yt(), b = async () => {
|
|
268
268
|
try {
|
|
269
269
|
s.value = !0;
|
|
270
270
|
const { data: L } = await r.get(`${y.value}?size=${n}`);
|
|
@@ -339,7 +339,7 @@ function _i(e, t) {
|
|
|
339
339
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
340
340
|
}
|
|
341
341
|
function Si() {
|
|
342
|
-
const { i18n: { t: e } } =
|
|
342
|
+
const { i18n: { t: e } } = Pe();
|
|
343
343
|
return {
|
|
344
344
|
getErrorFieldsFromError: (i) => {
|
|
345
345
|
var a, l, s;
|
|
@@ -421,7 +421,7 @@ function $i(e) {
|
|
|
421
421
|
return console.warn("Failed to build valid URL:", i), "";
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Wt(e, t) {
|
|
425
425
|
const n = F(() => {
|
|
426
426
|
const r = me(e);
|
|
427
427
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
@@ -443,7 +443,7 @@ function Yt(e, t) {
|
|
|
443
443
|
}
|
|
444
444
|
const ht = /* @__PURE__ */ new Map();
|
|
445
445
|
function Ti(e, t, n) {
|
|
446
|
-
const i = R(!0), r = me(e), { axiosInstance: o } =
|
|
446
|
+
const i = R(!0), r = me(e), { axiosInstance: o } = it(r.axiosRequestConfig), a = Wt(e, t), l = R({
|
|
447
447
|
status: pe.Idle
|
|
448
448
|
}), s = async (u) => {
|
|
449
449
|
var p;
|
|
@@ -489,10 +489,10 @@ function Ti(e, t, n) {
|
|
|
489
489
|
error: y.response ? y : { response: y }
|
|
490
490
|
}, v);
|
|
491
491
|
}
|
|
492
|
-
}, c = r.cacheIdentifier, d =
|
|
492
|
+
}, c = r.cacheIdentifier, d = Jt(c);
|
|
493
493
|
return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Jt(e) {
|
|
496
496
|
if (e) {
|
|
497
497
|
let t = ht.get(e);
|
|
498
498
|
return t || (t = R(1), ht.set(e, t)), t;
|
|
@@ -506,10 +506,10 @@ function Ii() {
|
|
|
506
506
|
convertKeyToTitle: e
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const Gt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, gt = (e) => {
|
|
510
510
|
if (typeof e != "string")
|
|
511
511
|
throw new TypeError("Invalid argument expected string");
|
|
512
|
-
const t = e.match(
|
|
512
|
+
const t = e.match(Gt);
|
|
513
513
|
if (!t)
|
|
514
514
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
515
515
|
return t.shift(), t;
|
|
@@ -534,20 +534,20 @@ const Jt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
534
534
|
}, xt = (e, t, n) => {
|
|
535
535
|
Li(n);
|
|
536
536
|
const i = Oi(e, t);
|
|
537
|
-
return
|
|
538
|
-
},
|
|
537
|
+
return zt[n].includes(i);
|
|
538
|
+
}, zt = {
|
|
539
539
|
">": [1],
|
|
540
540
|
">=": [0, 1],
|
|
541
541
|
"=": [0],
|
|
542
542
|
"<=": [-1, 0],
|
|
543
543
|
"<": [-1],
|
|
544
544
|
"!=": [-1, 1]
|
|
545
|
-
}, Ct = Object.keys(
|
|
545
|
+
}, Ct = Object.keys(zt), Li = (e) => {
|
|
546
546
|
if (typeof e != "string")
|
|
547
547
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
548
548
|
if (Ct.indexOf(e) === -1)
|
|
549
549
|
throw new Error(`Invalid operator, expected one of ${Ct.join("|")}`);
|
|
550
|
-
}, Bi = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
550
|
+
}, Bi = (e) => typeof e == "string" && /^[v\d]/.test(e) && Gt.test(e);
|
|
551
551
|
function Ri(e) {
|
|
552
552
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
553
553
|
if (!t)
|
|
@@ -570,17 +570,17 @@ function Ki(e) {
|
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
572
|
function Ni() {
|
|
573
|
-
const { i18n: { t: e } } =
|
|
573
|
+
const { i18n: { t: e } } = Pe();
|
|
574
574
|
return {
|
|
575
575
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
-
const
|
|
579
|
-
Dt(
|
|
578
|
+
const Je = Symbol("schema"), Mi = (e) => {
|
|
579
|
+
Dt(Je, e);
|
|
580
580
|
}, ji = (e) => {
|
|
581
581
|
var r, o;
|
|
582
|
-
const t = jt(
|
|
583
|
-
return Dt(
|
|
582
|
+
const t = jt(Je, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = Hn(n == null ? void 0 : n[e]);
|
|
583
|
+
return Dt(Je, i), i;
|
|
584
584
|
};
|
|
585
585
|
function Di(e) {
|
|
586
586
|
let t = "";
|
|
@@ -598,17 +598,17 @@ function Di(e) {
|
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
const Y = {
|
|
601
|
-
useAxios:
|
|
601
|
+
useAxios: it,
|
|
602
602
|
useDebouncedFilter: wi,
|
|
603
603
|
useDeleteUrlBuilder: _i,
|
|
604
604
|
useErrors: Si,
|
|
605
605
|
useExternalLinkCreator: $i,
|
|
606
606
|
useFetcher: Ti,
|
|
607
|
-
useFetcherCacheKey:
|
|
608
|
-
useFetchUrlBuilder:
|
|
609
|
-
useHelpers:
|
|
607
|
+
useFetcherCacheKey: Jt,
|
|
608
|
+
useFetchUrlBuilder: Wt,
|
|
609
|
+
useHelpers: Yt,
|
|
610
610
|
useStringHelpers: Ii,
|
|
611
|
-
useI18n:
|
|
611
|
+
useI18n: Pe,
|
|
612
612
|
useGatewayFeatureSupported: Ri,
|
|
613
613
|
useTruncationDetector: Ki,
|
|
614
614
|
useValidators: Ni,
|
|
@@ -642,14 +642,14 @@ const Y = {
|
|
|
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) => (m(),
|
|
645
|
+
return (s, c) => (m(), M(Me(e.isArrayItem ? "fieldset" : "div"), {
|
|
646
646
|
class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
647
647
|
}, {
|
|
648
648
|
default: _(() => [
|
|
649
649
|
e.isArrayItem ? (m(), $("legend", Pi, [
|
|
650
650
|
O("b", null, E(l.value), 1)
|
|
651
651
|
])) : K("", !0),
|
|
652
|
-
(m(!0), $(ce, null, se(Object.keys(a.value), (d, u) => (m(),
|
|
652
|
+
(m(!0), $(ce, null, se(Object.keys(a.value), (d, u) => (m(), M(Zt, {
|
|
653
653
|
key: `${r.value}-property-${u}`,
|
|
654
654
|
item: {
|
|
655
655
|
key: d,
|
|
@@ -666,7 +666,7 @@ const Y = {
|
|
|
666
666
|
for (const [i, r] of t)
|
|
667
667
|
n[i] = r;
|
|
668
668
|
return n;
|
|
669
|
-
},
|
|
669
|
+
}, Qt = /* @__PURE__ */ oe(Ui, [["__scopeId", "data-v-dc1e39a1"]]), qi = /* @__PURE__ */ J({
|
|
670
670
|
__name: "InternalLinkItem",
|
|
671
671
|
props: {
|
|
672
672
|
item: {
|
|
@@ -680,7 +680,7 @@ const Y = {
|
|
|
680
680
|
return (n, i) => {
|
|
681
681
|
const r = D("KButton");
|
|
682
682
|
return m(), $("div", null, [
|
|
683
|
-
|
|
683
|
+
N(r, {
|
|
684
684
|
appearance: "tertiary",
|
|
685
685
|
class: "navigation-button",
|
|
686
686
|
onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
|
|
@@ -705,7 +705,7 @@ const Y = {
|
|
|
705
705
|
const { i18n: { t } } = Y.useI18n();
|
|
706
706
|
return (n, i) => {
|
|
707
707
|
const r = D("KBadge");
|
|
708
|
-
return m(),
|
|
708
|
+
return m(), M(r, {
|
|
709
709
|
appearance: e.status ? "success" : "neutral"
|
|
710
710
|
}, {
|
|
711
711
|
default: _(() => [
|
|
@@ -717,7 +717,7 @@ const Y = {
|
|
|
717
717
|
}
|
|
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
|
-
components: { JsonCardItem:
|
|
720
|
+
components: { JsonCardItem: Qt, StatusBadge: Vi, InternalLinkItem: Hi }
|
|
721
721
|
}, ur = /* @__PURE__ */ J({
|
|
722
722
|
...cr,
|
|
723
723
|
props: {
|
|
@@ -744,7 +744,7 @@ const Y = {
|
|
|
744
744
|
"847b138c": u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
745
745
|
"847687d6": u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
746
746
|
}));
|
|
747
|
-
const n = e, i = t, r =
|
|
747
|
+
const n = e, i = t, r = Vn(), o = je(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = Y.useI18n(), c = F(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = F(() => !!(n.item.tooltip || o["label-tooltip"])), u = F(() => n.item.type === V.Json || n.item.type === V.JsonArray), g = F(() => n.item.type === V.JsonArray), p = Y.useSubSchema(n.item.key), y = F(() => {
|
|
748
748
|
var q;
|
|
749
749
|
return n.item.type ? n.item.type : (q = p == null ? void 0 : p.value) != null && q.encrypted ? V.Redacted : void 0;
|
|
750
750
|
}), v = F(() => {
|
|
@@ -887,9 +887,9 @@ const Y = {
|
|
|
887
887
|
"data-testid": `${e.item.key}-label`
|
|
888
888
|
}, [
|
|
889
889
|
j(q.$slots, "label", { item: e.item }, () => [
|
|
890
|
-
|
|
890
|
+
N(w, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
|
|
891
891
|
default: _(() => [
|
|
892
|
-
|
|
892
|
+
N(A, {
|
|
893
893
|
text: T(x) ? e.item.label : ""
|
|
894
894
|
}, {
|
|
895
895
|
default: _(() => [
|
|
@@ -928,13 +928,13 @@ const Y = {
|
|
|
928
928
|
rowValue: e.item.value
|
|
929
929
|
}, () => [
|
|
930
930
|
c.value ? (m(), $("div", rr, [
|
|
931
|
-
(m(),
|
|
931
|
+
(m(), M(Me(v.value.tag), Yn(Wn(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
|
-
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(),
|
|
937
|
+
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(), M(f, {
|
|
938
938
|
key: `${e.item.key}-badge-tag-${k}`,
|
|
939
939
|
class: "config-badge",
|
|
940
940
|
"data-testid": `${e.item.key}-badge-tag-${k}`,
|
|
@@ -951,7 +951,7 @@ const Y = {
|
|
|
951
951
|
class: "copy-uuid-array",
|
|
952
952
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
953
953
|
}, [
|
|
954
|
-
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(),
|
|
954
|
+
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(), M(h, Ut({ ref_for: !0 }, v.value.childAttrs, {
|
|
955
955
|
key: `${e.item.key}-copy-uuid-${k}`,
|
|
956
956
|
"data-testid": `${e.item.key}-copy-uuid-${k}`,
|
|
957
957
|
text: C
|
|
@@ -961,7 +961,7 @@ const Y = {
|
|
|
961
961
|
class: "method-badge-array",
|
|
962
962
|
"data-testid": `${e.item.key}-badge-methods`
|
|
963
963
|
}, [
|
|
964
|
-
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(),
|
|
964
|
+
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(), M(f, {
|
|
965
965
|
key: `${e.item.key}-badge-method-${k}`,
|
|
966
966
|
appearance: Object.values(T(Xn)).includes(C.toLowerCase()) ? C.toLowerCase() : "custom",
|
|
967
967
|
class: "config-badge",
|
|
@@ -976,13 +976,13 @@ const Y = {
|
|
|
976
976
|
key: 3,
|
|
977
977
|
"data-testid": `${n.item.key}-json-array-content`
|
|
978
978
|
}, [
|
|
979
|
-
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(),
|
|
979
|
+
(m(!0), $(ce, null, se(e.item.value, (C, k) => (m(), M(Qt, {
|
|
980
980
|
key: `json-array-item-${k}`,
|
|
981
981
|
index: k,
|
|
982
982
|
"is-array-item": "",
|
|
983
983
|
item: C
|
|
984
984
|
}, null, 8, ["index", "item"]))), 128))
|
|
985
|
-
], 8, sr)) : (m(),
|
|
985
|
+
], 8, sr)) : (m(), M(A, {
|
|
986
986
|
key: 4,
|
|
987
987
|
text: T(L) ? e.item.value : ""
|
|
988
988
|
}, {
|
|
@@ -1007,10 +1007,10 @@ const Y = {
|
|
|
1007
1007
|
]);
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
|
-
}),
|
|
1010
|
+
}), Zt = /* @__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
|
-
},
|
|
1013
|
+
}, Xt = /* @__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. */
|
|
@@ -1052,7 +1052,7 @@ const Y = {
|
|
|
1052
1052
|
const a = D("KBadge"), l = D("KCodeBlock");
|
|
1053
1053
|
return m(), $("div", dr, [
|
|
1054
1054
|
t.fetcherUrl ? (m(), $("div", fr, [
|
|
1055
|
-
|
|
1055
|
+
N(a, {
|
|
1056
1056
|
appearance: t.requestMethod
|
|
1057
1057
|
}, {
|
|
1058
1058
|
default: _(() => [
|
|
@@ -1060,7 +1060,7 @@ const Y = {
|
|
|
1060
1060
|
]),
|
|
1061
1061
|
_: 1
|
|
1062
1062
|
}, 8, ["appearance"]),
|
|
1063
|
-
|
|
1063
|
+
N(l, {
|
|
1064
1064
|
id: "json-endpoint-codeblock",
|
|
1065
1065
|
code: t.fetcherUrl,
|
|
1066
1066
|
language: "json",
|
|
@@ -1068,7 +1068,7 @@ const Y = {
|
|
|
1068
1068
|
theme: "dark"
|
|
1069
1069
|
}, null, 8, ["code"])
|
|
1070
1070
|
])) : K("", !0),
|
|
1071
|
-
t.entityRecord ? (m(),
|
|
1071
|
+
t.entityRecord ? (m(), M(l, {
|
|
1072
1072
|
key: 1,
|
|
1073
1073
|
id: "json-codeblock",
|
|
1074
1074
|
class: de({ "json-content": t.fetcherUrl }),
|
|
@@ -1081,14 +1081,14 @@ const Y = {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
});
|
|
1083
1083
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1084
|
-
function
|
|
1084
|
+
function en(e) {
|
|
1085
1085
|
return typeof e > "u" || e === null;
|
|
1086
1086
|
}
|
|
1087
1087
|
function pr(e) {
|
|
1088
1088
|
return typeof e == "object" && e !== null;
|
|
1089
1089
|
}
|
|
1090
1090
|
function mr(e) {
|
|
1091
|
-
return Array.isArray(e) ? e :
|
|
1091
|
+
return Array.isArray(e) ? e : en(e) ? [] : [e];
|
|
1092
1092
|
}
|
|
1093
1093
|
function hr(e, t) {
|
|
1094
1094
|
var n, i, r, o;
|
|
@@ -1106,7 +1106,7 @@ function gr(e, t) {
|
|
|
1106
1106
|
function yr(e) {
|
|
1107
1107
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1108
1108
|
}
|
|
1109
|
-
var vr =
|
|
1109
|
+
var vr = en, br = pr, xr = mr, Cr = gr, kr = yr, Ar = hr, z = {
|
|
1110
1110
|
isNothing: vr,
|
|
1111
1111
|
isObject: br,
|
|
1112
1112
|
toArray: xr,
|
|
@@ -1114,22 +1114,22 @@ var vr = Xt, br = pr, xr = mr, Cr = gr, kr = yr, Ar = hr, z = {
|
|
|
1114
1114
|
isNegativeZero: kr,
|
|
1115
1115
|
extend: Ar
|
|
1116
1116
|
};
|
|
1117
|
-
function
|
|
1117
|
+
function tn(e, t) {
|
|
1118
1118
|
var n = "", i = e.reason || "(unknown reason)";
|
|
1119
1119
|
return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
|
|
1120
1120
|
|
|
1121
1121
|
` + e.mark.snippet), i + " " + n) : i;
|
|
1122
1122
|
}
|
|
1123
1123
|
function Te(e, t) {
|
|
1124
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1124
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = tn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1125
1125
|
}
|
|
1126
1126
|
Te.prototype = Object.create(Error.prototype);
|
|
1127
1127
|
Te.prototype.constructor = Te;
|
|
1128
1128
|
Te.prototype.toString = function(t) {
|
|
1129
|
-
return this.name + ": " +
|
|
1129
|
+
return this.name + ": " + tn(this, t);
|
|
1130
1130
|
};
|
|
1131
1131
|
var re = Te;
|
|
1132
|
-
function
|
|
1132
|
+
function He(e, t, n, i, r) {
|
|
1133
1133
|
var o = "", a = "", l = Math.floor(r / 2) - 1;
|
|
1134
1134
|
return i - t > l && (o = " ... ", t = i - l + o.length), n - i > l && (a = " ...", n = i + l - a.length), {
|
|
1135
1135
|
str: o + e.slice(t, n).replace(/\t/g, "→") + a,
|
|
@@ -1137,7 +1137,7 @@ function Ve(e, t, n, i, r) {
|
|
|
1137
1137
|
// relative position
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Ve(e, t) {
|
|
1141
1141
|
return z.repeat(" ", t - e.length) + e;
|
|
1142
1142
|
}
|
|
1143
1143
|
function wr(e, t) {
|
|
@@ -1148,24 +1148,24 @@ function wr(e, t) {
|
|
|
1148
1148
|
a < 0 && (a = i.length - 1);
|
|
1149
1149
|
var l = "", s, c, d = Math.min(e.line + t.linesAfter, r.length).toString().length, u = t.maxLength - (t.indent + d + 3);
|
|
1150
1150
|
for (s = 1; s <= t.linesBefore && !(a - s < 0); s++)
|
|
1151
|
-
c =
|
|
1151
|
+
c = He(
|
|
1152
1152
|
e.buffer,
|
|
1153
1153
|
i[a - s],
|
|
1154
1154
|
r[a - s],
|
|
1155
1155
|
e.position - (i[a] - i[a - s]),
|
|
1156
1156
|
u
|
|
1157
|
-
), l = z.repeat(" ", t.indent) +
|
|
1157
|
+
), l = z.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1158
1158
|
` + l;
|
|
1159
|
-
for (c =
|
|
1159
|
+
for (c = He(e.buffer, i[a], r[a], e.position, u), l += z.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1160
1160
|
`, l += z.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1161
1161
|
`, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
|
|
1162
|
-
c =
|
|
1162
|
+
c = He(
|
|
1163
1163
|
e.buffer,
|
|
1164
1164
|
i[a + s],
|
|
1165
1165
|
r[a + s],
|
|
1166
1166
|
e.position - (i[a] - i[a + s]),
|
|
1167
1167
|
u
|
|
1168
|
-
), l += z.repeat(" ", t.indent) +
|
|
1168
|
+
), l += z.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1169
1169
|
`;
|
|
1170
1170
|
return l.replace(/\n$/, "");
|
|
1171
1171
|
}
|
|
@@ -1234,10 +1234,10 @@ function Fr() {
|
|
|
1234
1234
|
arguments[t].forEach(i);
|
|
1235
1235
|
return e;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Ge(e) {
|
|
1238
1238
|
return this.extend(e);
|
|
1239
1239
|
}
|
|
1240
|
-
|
|
1240
|
+
Ge.prototype.extend = function(t) {
|
|
1241
1241
|
var n = [], i = [];
|
|
1242
1242
|
if (t instanceof ee)
|
|
1243
1243
|
i.push(t);
|
|
@@ -1258,29 +1258,29 @@ ze.prototype.extend = function(t) {
|
|
|
1258
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
|
-
var r = Object.create(
|
|
1261
|
+
var r = Object.create(Ge.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 = Fr(r.compiledImplicit, r.compiledExplicit), r;
|
|
1263
1263
|
};
|
|
1264
|
-
var
|
|
1264
|
+
var nn = Ge, rn = 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
|
-
}),
|
|
1269
|
+
}), an = 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
|
-
}),
|
|
1274
|
+
}), on = new ee("tag:yaml.org,2002:map", {
|
|
1275
1275
|
kind: "mapping",
|
|
1276
1276
|
construct: function(e) {
|
|
1277
1277
|
return e !== null ? e : {};
|
|
1278
1278
|
}
|
|
1279
|
-
}),
|
|
1279
|
+
}), ln = new nn({
|
|
1280
1280
|
explicit: [
|
|
1281
|
-
nn,
|
|
1282
1281
|
rn,
|
|
1283
|
-
an
|
|
1282
|
+
an,
|
|
1283
|
+
on
|
|
1284
1284
|
]
|
|
1285
1285
|
});
|
|
1286
1286
|
function Er(e) {
|
|
@@ -1294,7 +1294,7 @@ function Or() {
|
|
|
1294
1294
|
function Lr(e) {
|
|
1295
1295
|
return e === null;
|
|
1296
1296
|
}
|
|
1297
|
-
var
|
|
1297
|
+
var sn = new ee("tag:yaml.org,2002:null", {
|
|
1298
1298
|
kind: "scalar",
|
|
1299
1299
|
resolve: Er,
|
|
1300
1300
|
construct: Or,
|
|
@@ -1329,7 +1329,7 @@ function Rr(e) {
|
|
|
1329
1329
|
function Kr(e) {
|
|
1330
1330
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1331
1331
|
}
|
|
1332
|
-
var
|
|
1332
|
+
var cn = new ee("tag:yaml.org,2002:bool", {
|
|
1333
1333
|
kind: "scalar",
|
|
1334
1334
|
resolve: Br,
|
|
1335
1335
|
construct: Rr,
|
|
@@ -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
|
|
1412
|
+
var un = new ee("tag:yaml.org,2002:int", {
|
|
1413
1413
|
kind: "scalar",
|
|
1414
1414
|
resolve: Dr,
|
|
1415
1415
|
construct: Pr,
|
|
@@ -1486,31 +1486,31 @@ 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
|
|
1489
|
+
var dn = new ee("tag:yaml.org,2002:float", {
|
|
1490
1490
|
kind: "scalar",
|
|
1491
1491
|
resolve: Hr,
|
|
1492
1492
|
construct: Vr,
|
|
1493
1493
|
predicate: Jr,
|
|
1494
1494
|
represent: Wr,
|
|
1495
1495
|
defaultStyle: "lowercase"
|
|
1496
|
-
}),
|
|
1496
|
+
}), fn = ln.extend({
|
|
1497
1497
|
implicit: [
|
|
1498
|
-
ln,
|
|
1499
1498
|
sn,
|
|
1500
1499
|
cn,
|
|
1501
|
-
un
|
|
1500
|
+
un,
|
|
1501
|
+
dn
|
|
1502
1502
|
]
|
|
1503
|
-
}),
|
|
1503
|
+
}), pn = fn, mn = new RegExp(
|
|
1504
1504
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1505
|
-
),
|
|
1505
|
+
), hn = new RegExp(
|
|
1506
1506
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1507
1507
|
);
|
|
1508
1508
|
function Gr(e) {
|
|
1509
|
-
return e === null ? !1 :
|
|
1509
|
+
return e === null ? !1 : mn.exec(e) !== null || hn.exec(e) !== null;
|
|
1510
1510
|
}
|
|
1511
1511
|
function zr(e) {
|
|
1512
1512
|
var t, n, i, r, o, a, l, s = 0, c = null, d, u, g;
|
|
1513
|
-
if (t =
|
|
1513
|
+
if (t = mn.exec(e), t === null && (t = hn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1514
1514
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1515
1515
|
return new Date(Date.UTC(n, i, r));
|
|
1516
1516
|
if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
|
|
@@ -1523,7 +1523,7 @@ function zr(e) {
|
|
|
1523
1523
|
function Qr(e) {
|
|
1524
1524
|
return e.toISOString();
|
|
1525
1525
|
}
|
|
1526
|
-
var
|
|
1526
|
+
var gn = new ee("tag:yaml.org,2002:timestamp", {
|
|
1527
1527
|
kind: "scalar",
|
|
1528
1528
|
resolve: Gr,
|
|
1529
1529
|
construct: zr,
|
|
@@ -1533,14 +1533,14 @@ var hn = new ee("tag:yaml.org,2002:timestamp", {
|
|
|
1533
1533
|
function Zr(e) {
|
|
1534
1534
|
return e === "<<" || e === null;
|
|
1535
1535
|
}
|
|
1536
|
-
var
|
|
1536
|
+
var yn = new ee("tag:yaml.org,2002:merge", {
|
|
1537
1537
|
kind: "scalar",
|
|
1538
1538
|
resolve: Zr
|
|
1539
|
-
}),
|
|
1539
|
+
}), rt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1540
1540
|
\r`;
|
|
1541
1541
|
function Xr(e) {
|
|
1542
1542
|
if (e === null) return !1;
|
|
1543
|
-
var t, n, i = 0, r = e.length, o =
|
|
1543
|
+
var t, n, i = 0, r = e.length, o = rt;
|
|
1544
1544
|
for (n = 0; n < r; n++)
|
|
1545
1545
|
if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1546
1546
|
if (t < 0) return !1;
|
|
@@ -1549,13 +1549,13 @@ function Xr(e) {
|
|
|
1549
1549
|
return i % 8 === 0;
|
|
1550
1550
|
}
|
|
1551
1551
|
function ea(e) {
|
|
1552
|
-
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o =
|
|
1552
|
+
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = rt, a = 0, l = [];
|
|
1553
1553
|
for (t = 0; t < r; t++)
|
|
1554
1554
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1555
1555
|
return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
|
|
1556
1556
|
}
|
|
1557
1557
|
function ta(e) {
|
|
1558
|
-
var t = "", n = 0, i, r, o = e.length, a =
|
|
1558
|
+
var t = "", n = 0, i, r, o = e.length, a = rt;
|
|
1559
1559
|
for (i = 0; i < o; i++)
|
|
1560
1560
|
i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
|
|
1561
1561
|
return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
@@ -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
|
|
1566
|
+
var vn = 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
|
|
1591
|
+
var bn = 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
|
|
1612
|
+
var xn = new ee("tag:yaml.org,2002:pairs", {
|
|
1613
1613
|
kind: "sequence",
|
|
1614
1614
|
resolve: sa,
|
|
1615
1615
|
construct: ca
|
|
@@ -1625,22 +1625,22 @@ function da(e) {
|
|
|
1625
1625
|
function fa(e) {
|
|
1626
1626
|
return e !== null ? e : {};
|
|
1627
1627
|
}
|
|
1628
|
-
var
|
|
1628
|
+
var Cn = new ee("tag:yaml.org,2002:set", {
|
|
1629
1629
|
kind: "mapping",
|
|
1630
1630
|
resolve: da,
|
|
1631
1631
|
construct: fa
|
|
1632
|
-
}),
|
|
1632
|
+
}), at = pn.extend({
|
|
1633
1633
|
implicit: [
|
|
1634
|
-
|
|
1635
|
-
|
|
1634
|
+
gn,
|
|
1635
|
+
yn
|
|
1636
1636
|
],
|
|
1637
1637
|
explicit: [
|
|
1638
|
-
yn,
|
|
1639
1638
|
vn,
|
|
1640
1639
|
bn,
|
|
1641
|
-
xn
|
|
1640
|
+
xn,
|
|
1641
|
+
Cn
|
|
1642
1642
|
]
|
|
1643
|
-
}), ge = Object.prototype.hasOwnProperty,
|
|
1643
|
+
}), ge = Object.prototype.hasOwnProperty, Le = 1, kn = 2, An = 3, Be = 4, Ye = 1, pa = 2, At = 3, ma = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ha = /[\x85\u2028\u2029]/, ga = /[,\[\]\{\}]/, wn = /^(?:!|!!|![a-z\-]+!)$/i, _n = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1644
1644
|
function wt(e) {
|
|
1645
1645
|
return Object.prototype.toString.call(e);
|
|
1646
1646
|
}
|
|
@@ -1676,13 +1676,13 @@ function xa(e) {
|
|
|
1676
1676
|
(e - 65536 & 1023) + 56320
|
|
1677
1677
|
);
|
|
1678
1678
|
}
|
|
1679
|
-
var
|
|
1679
|
+
var Sn = new Array(256), $n = new Array(256);
|
|
1680
1680
|
for (var Ce = 0; Ce < 256; Ce++)
|
|
1681
|
-
|
|
1681
|
+
Sn[Ce] = _t(Ce) ? 1 : 0, $n[Ce] = _t(Ce);
|
|
1682
1682
|
function Ca(e, t) {
|
|
1683
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1683
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || at, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function Tn(e, t) {
|
|
1686
1686
|
var n = {
|
|
1687
1687
|
name: e.filename,
|
|
1688
1688
|
buffer: e.input.slice(0, -1),
|
|
@@ -1694,19 +1694,19 @@ function $n(e, t) {
|
|
|
1694
1694
|
return n.snippet = _r(n), new re(t, n);
|
|
1695
1695
|
}
|
|
1696
1696
|
function I(e, t) {
|
|
1697
|
-
throw
|
|
1697
|
+
throw Tn(e, t);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1700
|
-
e.onWarning && e.onWarning.call(null,
|
|
1699
|
+
function Re(e, t) {
|
|
1700
|
+
e.onWarning && e.onWarning.call(null, Tn(e, t));
|
|
1701
1701
|
}
|
|
1702
1702
|
var St = {
|
|
1703
1703
|
YAML: function(t, n, i) {
|
|
1704
1704
|
var r, o, a;
|
|
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 &&
|
|
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 && Re(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 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1],
|
|
1709
|
+
i.length !== 2 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], wn.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 {
|
|
@@ -1750,7 +1750,7 @@ function we(e, t, n, i, r, o, a, l, s) {
|
|
|
1750
1750
|
}) : t[r] = o, delete n[r];
|
|
1751
1751
|
return t;
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function ot(e) {
|
|
1754
1754
|
var t;
|
|
1755
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
|
}
|
|
@@ -1763,18 +1763,18 @@ function G(e, t, n) {
|
|
|
1763
1763
|
r = e.input.charCodeAt(++e.position);
|
|
1764
1764
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
1765
1765
|
if (ue(r))
|
|
1766
|
-
for (
|
|
1766
|
+
for (ot(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
|
|
1767
1767
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1768
1768
|
else
|
|
1769
1769
|
break;
|
|
1770
1770
|
}
|
|
1771
|
-
return n !== -1 && i !== 0 && e.lineIndent < n &&
|
|
1771
|
+
return n !== -1 && i !== 0 && e.lineIndent < n && Re(e, "deficient indentation"), i;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function Ue(e) {
|
|
1774
1774
|
var t = e.position, n;
|
|
1775
1775
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ae(n)));
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function lt(e, t) {
|
|
1778
1778
|
t === 1 ? e.result += " " : t > 1 && (e.result += z.repeat(`
|
|
1779
1779
|
`, t - 1));
|
|
1780
1780
|
}
|
|
@@ -1790,7 +1790,7 @@ function ka(e, t, n) {
|
|
|
1790
1790
|
if (i = e.input.charCodeAt(e.position - 1), ae(i))
|
|
1791
1791
|
break;
|
|
1792
1792
|
} else {
|
|
1793
|
-
if (e.position === e.lineStart &&
|
|
1793
|
+
if (e.position === e.lineStart && Ue(e) || n && Ae(p))
|
|
1794
1794
|
break;
|
|
1795
1795
|
if (ue(p))
|
|
1796
1796
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, G(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1801,7 +1801,7 @@ function ka(e, t, n) {
|
|
|
1801
1801
|
break;
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
|
-
l && (he(e, o, a, !1),
|
|
1804
|
+
l && (he(e, o, a, !1), lt(e, e.line - s), o = a = e.position, l = !1), ye(p) || (a = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
1805
1805
|
}
|
|
1806
1806
|
return he(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1807
1807
|
}
|
|
@@ -1815,7 +1815,7 @@ 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),
|
|
1818
|
+
else ue(n) ? (he(e, i, r, !0), lt(e, G(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Ue(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1819
1819
|
I(e, "unexpected end of the stream within a single quoted scalar");
|
|
1820
1820
|
}
|
|
1821
1821
|
function wa(e, t) {
|
|
@@ -1828,8 +1828,8 @@ function wa(e, t) {
|
|
|
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
|
-
else if (l < 256 &&
|
|
1832
|
-
e.result +=
|
|
1831
|
+
else if (l < 256 && Sn[l])
|
|
1832
|
+
e.result += $n[l], e.position++;
|
|
1833
1833
|
else if ((a = va(l)) > 0) {
|
|
1834
1834
|
for (r = a, o = 0; r > 0; r--)
|
|
1835
1835
|
l = e.input.charCodeAt(++e.position), (a = ya(l)) >= 0 ? o = (o << 4) + a : I(e, "expected hexadecimal character");
|
|
@@ -1837,7 +1837,7 @@ function wa(e, t) {
|
|
|
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),
|
|
1840
|
+
} else ue(l) ? (he(e, n, i, !0), lt(e, G(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Ue(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
|
}
|
|
@@ -1852,12 +1852,12 @@ function _a(e, t) {
|
|
|
1852
1852
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
|
|
1853
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 && 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,
|
|
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, Le, !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, Le, !1, !0), S = e.result), p ? we(e, l, y, b, v, S, i, r, o) : u ? l.push(we(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
|
-
var n, i, r =
|
|
1860
|
+
var n, i, r = Ye, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
|
|
1861
1861
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1862
1862
|
i = !1;
|
|
1863
1863
|
else if (u === 62)
|
|
@@ -1866,7 +1866,7 @@ 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
|
-
|
|
1869
|
+
Ye === r ? r = u === 43 ? At : pa : I(e, "repeat of a chomping mode identifier");
|
|
1870
1870
|
else if ((d = ba(u)) >= 0)
|
|
1871
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
|
|
@@ -1881,7 +1881,7 @@ function Sa(e, t) {
|
|
|
1881
1881
|
while (!ue(u) && u !== 0);
|
|
1882
1882
|
}
|
|
1883
1883
|
for (; u !== 0; ) {
|
|
1884
|
-
for (
|
|
1884
|
+
for (ot(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
|
|
1885
1885
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1886
1886
|
if (!a && e.lineIndent > l && (l = e.lineIndent), ue(u)) {
|
|
1887
1887
|
s++;
|
|
@@ -1889,7 +1889,7 @@ function Sa(e, t) {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
if (e.lineIndent < l) {
|
|
1891
1891
|
r === At ? e.result += z.repeat(`
|
|
1892
|
-
`, o ? 1 + s : s) : r ===
|
|
1892
|
+
`, o ? 1 + s : s) : r === Ye && o && (e.result += `
|
|
1893
1893
|
`);
|
|
1894
1894
|
break;
|
|
1895
1895
|
}
|
|
@@ -1911,7 +1911,7 @@ function Tt(e, 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,
|
|
1914
|
+
if (n = e.line, Se(e, t, An, !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
1915
|
I(e, "bad indentation of a sequence entry");
|
|
1916
1916
|
else if (e.lineIndent < t)
|
|
1917
1917
|
break;
|
|
@@ -1925,7 +1925,7 @@ function $a(e, t, n) {
|
|
|
1925
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
1926
|
x === 63 ? (b && (we(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
|
-
if (a = e.line, l = e.lineStart, s = e.position, !Se(e, n,
|
|
1928
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Se(e, n, kn, !1, !0))
|
|
1929
1929
|
break;
|
|
1930
1930
|
if (e.line === o) {
|
|
1931
1931
|
for (x = e.input.charCodeAt(e.position); ye(x); )
|
|
@@ -1941,7 +1941,7 @@ function $a(e, t, n) {
|
|
|
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,
|
|
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 || (we(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
1945
|
I(e, "bad indentation of a mapping entry");
|
|
1946
1946
|
else if (e.lineIndent < t)
|
|
1947
1947
|
break;
|
|
@@ -1958,10 +1958,10 @@ function Ta(e) {
|
|
|
1958
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 ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1),
|
|
1961
|
+
a === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), wn.test(r) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1962
1962
|
o = e.input.slice(t, e.position), ga.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
|
|
1963
1963
|
}
|
|
1964
|
-
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 {
|
|
@@ -1985,10 +1985,10 @@ function Fa(e) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
function Se(e, t, n, i, r) {
|
|
1987
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 =
|
|
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 || An === n, i && G(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1989
1989
|
for (; Ta(e) || Ia(e); )
|
|
1990
1990
|
G(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1991
|
-
if (l && (l = c || r), (s === 1 ||
|
|
1991
|
+
if (l && (l = c || r), (s === 1 || Be === n) && (Le === n || kn === n ? v = t : v = t + 1, b = e.position - e.lineStart, s === 1 ? l && (Tt(e, b) || $a(e, b, v)) || _a(e, v) ? d = !0 : (a && Sa(e, v) || Aa(e, v) || wa(e, v) ? d = !0 : Fa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : ka(e, v, Le === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Tt(e, b))), e.tag === null)
|
|
1992
1992
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1993
1993
|
else if (e.tag === "?") {
|
|
1994
1994
|
for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
@@ -2028,9 +2028,9 @@ function Ea(e) {
|
|
|
2028
2028
|
a = e.input.charCodeAt(++e.position);
|
|
2029
2029
|
r.push(e.input.slice(n, e.position));
|
|
2030
2030
|
}
|
|
2031
|
-
a !== 0 &&
|
|
2031
|
+
a !== 0 && ot(e), ge.call(St, i) ? St[i](e, i, r) : Re(e, 'unknown document directive "' + i + '"');
|
|
2032
2032
|
}
|
|
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,
|
|
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)) && Re(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ue(e)) {
|
|
2034
2034
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, G(e, !0, -1));
|
|
2035
2035
|
return;
|
|
2036
2036
|
}
|
|
@@ -2039,7 +2039,7 @@ function Ea(e) {
|
|
|
2039
2039
|
else
|
|
2040
2040
|
return;
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function In(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");
|
|
@@ -2051,24 +2051,24 @@ function Tn(e, t) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
function Oa(e, t, n) {
|
|
2053
2053
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2054
|
-
var i =
|
|
2054
|
+
var i = In(e, n);
|
|
2055
2055
|
if (typeof t != "function")
|
|
2056
2056
|
return i;
|
|
2057
2057
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
2058
2058
|
t(i[r]);
|
|
2059
2059
|
}
|
|
2060
2060
|
function La(e, t) {
|
|
2061
|
-
var n =
|
|
2061
|
+
var n = In(e, t);
|
|
2062
2062
|
if (n.length !== 0) {
|
|
2063
2063
|
if (n.length === 1)
|
|
2064
2064
|
return n[0];
|
|
2065
2065
|
throw new re("expected a single document in the stream, but found more");
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
|
-
var Ba = Oa, Ra = La,
|
|
2068
|
+
var Ba = Oa, Ra = La, Fn = {
|
|
2069
2069
|
loadAll: Ba,
|
|
2070
2070
|
load: Ra
|
|
2071
|
-
},
|
|
2071
|
+
}, En = Object.prototype.toString, On = Object.prototype.hasOwnProperty, st = 65279, Ka = 9, Ie = 10, Na = 13, Ma = 32, ja = 33, Da = 34, ze = 35, Pa = 37, Ua = 38, qa = 39, Ha = 42, Ln = 44, Va = 45, Ke = 58, Ya = 61, Wa = 62, Ja = 63, Ga = 64, Bn = 91, Rn = 93, za = 96, Kn = 123, Qa = 124, Nn = 125, te = {};
|
|
2072
2072
|
te[0] = "\\0";
|
|
2073
2073
|
te[7] = "\\a";
|
|
2074
2074
|
te[8] = "\\b";
|
|
@@ -2106,7 +2106,7 @@ function eo(e, t) {
|
|
|
2106
2106
|
var n, i, r, o, a, l, s;
|
|
2107
2107
|
if (t === null) return {};
|
|
2108
2108
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2109
|
-
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s &&
|
|
2109
|
+
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && On.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
2110
2110
|
return n;
|
|
2111
2111
|
}
|
|
2112
2112
|
function to(e) {
|
|
@@ -2123,7 +2123,7 @@ function to(e) {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
var no = 1, Fe = 2;
|
|
2125
2125
|
function io(e) {
|
|
2126
|
-
this.schema = e.schema ||
|
|
2126
|
+
this.schema = e.schema || at, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = eo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Fe : no, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2127
2127
|
}
|
|
2128
2128
|
function It(e, t) {
|
|
2129
2129
|
for (var n = z.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
@@ -2132,7 +2132,7 @@ function It(e, t) {
|
|
|
2132
2132
|
` && (o += n), o += a;
|
|
2133
2133
|
return o;
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function Qe(e, t) {
|
|
2136
2136
|
return `
|
|
2137
2137
|
` + z.repeat(" ", e.indent * t);
|
|
2138
2138
|
}
|
|
@@ -2143,40 +2143,40 @@ function ro(e, t) {
|
|
|
2143
2143
|
return !0;
|
|
2144
2144
|
return !1;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Ne(e) {
|
|
2147
2147
|
return e === Ma || e === Ka;
|
|
2148
2148
|
}
|
|
2149
2149
|
function Ee(e) {
|
|
2150
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2150
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== st || 65536 <= e && e <= 1114111;
|
|
2151
2151
|
}
|
|
2152
2152
|
function Ft(e) {
|
|
2153
|
-
return Ee(e) && e !==
|
|
2153
|
+
return Ee(e) && e !== st && e !== Na && e !== Ie;
|
|
2154
2154
|
}
|
|
2155
2155
|
function Et(e, t, n) {
|
|
2156
|
-
var i = Ft(e), r = i && !
|
|
2156
|
+
var i = Ft(e), r = i && !Ne(e);
|
|
2157
2157
|
return (
|
|
2158
2158
|
// ns-plain-safe
|
|
2159
2159
|
(n ? (
|
|
2160
2160
|
// c = flow-in
|
|
2161
2161
|
i
|
|
2162
|
-
) : i && e !==
|
|
2162
|
+
) : i && e !== Ln && e !== Bn && e !== Rn && e !== Kn && e !== Nn) && e !== ze && !(t === Ke && !r) || Ft(t) && !Ne(t) && e === ze || t === Ke && r
|
|
2163
2163
|
);
|
|
2164
2164
|
}
|
|
2165
2165
|
function ao(e) {
|
|
2166
|
-
return Ee(e) && e !==
|
|
2166
|
+
return Ee(e) && e !== st && !Ne(e) && e !== Va && e !== Ja && e !== Ke && e !== Ln && e !== Bn && e !== Rn && e !== Kn && e !== Nn && e !== ze && e !== Ua && e !== Ha && e !== ja && e !== Qa && e !== Ya && e !== Wa && e !== qa && e !== Da && e !== Pa && e !== Ga && e !== za;
|
|
2167
2167
|
}
|
|
2168
2168
|
function oo(e) {
|
|
2169
|
-
return !
|
|
2169
|
+
return !Ne(e) && e !== Ke;
|
|
2170
2170
|
}
|
|
2171
2171
|
function $e(e, t) {
|
|
2172
2172
|
var n = e.charCodeAt(t), i;
|
|
2173
2173
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function Mn(e) {
|
|
2176
2176
|
var t = /^\n* /;
|
|
2177
2177
|
return t.test(e);
|
|
2178
2178
|
}
|
|
2179
|
-
var
|
|
2179
|
+
var jn = 1, Ze = 2, Dn = 3, Pn = 4, ke = 5;
|
|
2180
2180
|
function lo(e, t, n, i, r, o, a, l) {
|
|
2181
2181
|
var s, c = 0, d = null, u = !1, g = !1, p = i !== -1, y = -1, v = ao($e(e, 0)) && oo($e(e, e.length - 1));
|
|
2182
2182
|
if (t || a)
|
|
@@ -2196,7 +2196,7 @@ function lo(e, t, n, i, r, o, a, l) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
g = g || p && s - y - 1 > i && e[y + 1] !== " ";
|
|
2198
2198
|
}
|
|
2199
|
-
return !u && !g ? v && !a && !r(e) ?
|
|
2199
|
+
return !u && !g ? v && !a && !r(e) ? jn : o === Fe ? ke : Ze : n > 9 && Mn(e) ? ke : a ? o === Fe ? ke : Ze : g ? Pn : Dn;
|
|
2200
2200
|
}
|
|
2201
2201
|
function so(e, t, n, i, r) {
|
|
2202
2202
|
e.dump = function() {
|
|
@@ -2218,13 +2218,13 @@ function so(e, t, n, i, r) {
|
|
|
2218
2218
|
e.forceQuotes && !i,
|
|
2219
2219
|
r
|
|
2220
2220
|
)) {
|
|
2221
|
-
case
|
|
2221
|
+
case jn:
|
|
2222
2222
|
return t;
|
|
2223
|
-
case
|
|
2223
|
+
case Ze:
|
|
2224
2224
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2225
|
-
case jn:
|
|
2226
|
-
return "|" + Ot(t, e.indent) + Lt(It(t, o));
|
|
2227
2225
|
case Dn:
|
|
2226
|
+
return "|" + Ot(t, e.indent) + Lt(It(t, o));
|
|
2227
|
+
case Pn:
|
|
2228
2228
|
return ">" + Ot(t, e.indent) + Lt(It(co(t, a), o));
|
|
2229
2229
|
case ke:
|
|
2230
2230
|
return '"' + uo(t) + '"';
|
|
@@ -2234,7 +2234,7 @@ function so(e, t, n, i, r) {
|
|
|
2234
2234
|
}();
|
|
2235
2235
|
}
|
|
2236
2236
|
function Ot(e, t) {
|
|
2237
|
-
var n =
|
|
2237
|
+
var n = Mn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2238
2238
|
`, r = i && (e[e.length - 2] === `
|
|
2239
2239
|
` || e === `
|
|
2240
2240
|
`), o = r ? "+" : i ? "" : "-";
|
|
@@ -2281,7 +2281,7 @@ function fo(e, t, n) {
|
|
|
2281
2281
|
function Rt(e, t, n, i) {
|
|
2282
2282
|
var r = "", o = e.tag, a, l, s;
|
|
2283
2283
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
2284
|
-
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (fe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && fe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r +=
|
|
2284
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (fe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && fe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += Qe(e, t)), e.dump && Ie === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2285
2285
|
e.tag = o, e.dump = r || "[]";
|
|
2286
2286
|
}
|
|
2287
2287
|
function po(e, t, n) {
|
|
@@ -2299,7 +2299,7 @@ function mo(e, t, n, i) {
|
|
|
2299
2299
|
else if (e.sortKeys)
|
|
2300
2300
|
throw new re("sortKeys must be a boolean or a function");
|
|
2301
2301
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
2302
|
-
g = "", (!i || r !== "") && (g +=
|
|
2302
|
+
g = "", (!i || r !== "") && (g += Qe(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), fe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ie === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += Qe(e, t)), fe(e, t + 1, d, !0, u) && (e.dump && Ie === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, r += g));
|
|
2303
2303
|
e.tag = o, e.dump = r || "{}";
|
|
2304
2304
|
}
|
|
2305
2305
|
function Kt(e, t, n) {
|
|
@@ -2307,9 +2307,9 @@ function Kt(e, t, n) {
|
|
|
2307
2307
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2308
2308
|
if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2309
2309
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2310
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2310
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, En.call(l.represent) === "[object Function]")
|
|
2311
2311
|
i = l.represent(t, s);
|
|
2312
|
-
else if (
|
|
2312
|
+
else if (On.call(l.represent, s))
|
|
2313
2313
|
i = l.represent[s](t, s);
|
|
2314
2314
|
else
|
|
2315
2315
|
throw new re("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
@@ -2321,7 +2321,7 @@ function Kt(e, t, n) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
function fe(e, t, n, i, r, o, a) {
|
|
2323
2323
|
e.tag = null, e.dump = n, Kt(e, n, !1) || Kt(e, n, !0);
|
|
2324
|
-
var l =
|
|
2324
|
+
var l = En.call(e.dump), s = i, c;
|
|
2325
2325
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2326
2326
|
var d = l === "[object Object]" || l === "[object Array]", u, g;
|
|
2327
2327
|
if (d && (u = e.duplicates.indexOf(n), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && t > 0) && (r = !1), g && e.usedDuplicates[u])
|
|
@@ -2347,21 +2347,21 @@ function fe(e, t, n, i, r, o, a) {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
function ho(e, t) {
|
|
2349
2349
|
var n = [], i = [], r, o;
|
|
2350
|
-
for (
|
|
2350
|
+
for (Xe(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
2351
2351
|
t.duplicates.push(n[i[r]]);
|
|
2352
2352
|
t.usedDuplicates = new Array(o);
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function Xe(e, t, n) {
|
|
2355
2355
|
var i, r, o;
|
|
2356
2356
|
if (e !== null && typeof e == "object")
|
|
2357
2357
|
if (r = t.indexOf(e), r !== -1)
|
|
2358
2358
|
n.indexOf(r) === -1 && n.push(r);
|
|
2359
2359
|
else if (t.push(e), Array.isArray(e))
|
|
2360
2360
|
for (r = 0, o = e.length; r < o; r += 1)
|
|
2361
|
-
|
|
2361
|
+
Xe(e[r], t, n);
|
|
2362
2362
|
else
|
|
2363
2363
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
2364
|
-
|
|
2364
|
+
Xe(e[i[r]], t, n);
|
|
2365
2365
|
}
|
|
2366
2366
|
function go(e, t) {
|
|
2367
2367
|
t = t || {};
|
|
@@ -2374,26 +2374,26 @@ function go(e, t) {
|
|
|
2374
2374
|
var yo = go, vo = {
|
|
2375
2375
|
dump: yo
|
|
2376
2376
|
};
|
|
2377
|
-
function
|
|
2377
|
+
function ct(e, t) {
|
|
2378
2378
|
return function() {
|
|
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 = ee, xo =
|
|
2383
|
-
binary:
|
|
2384
|
-
float:
|
|
2385
|
-
map:
|
|
2386
|
-
null:
|
|
2387
|
-
pairs:
|
|
2388
|
-
set:
|
|
2389
|
-
timestamp:
|
|
2390
|
-
bool:
|
|
2391
|
-
int:
|
|
2392
|
-
merge:
|
|
2393
|
-
omap:
|
|
2394
|
-
seq:
|
|
2395
|
-
str:
|
|
2396
|
-
}, Fo =
|
|
2382
|
+
var bo = ee, xo = nn, Co = ln, ko = fn, Ao = pn, wo = at, _o = Fn.load, So = Fn.loadAll, $o = vo.dump, To = re, Io = {
|
|
2383
|
+
binary: vn,
|
|
2384
|
+
float: dn,
|
|
2385
|
+
map: on,
|
|
2386
|
+
null: sn,
|
|
2387
|
+
pairs: xn,
|
|
2388
|
+
set: Cn,
|
|
2389
|
+
timestamp: gn,
|
|
2390
|
+
bool: cn,
|
|
2391
|
+
int: un,
|
|
2392
|
+
merge: yn,
|
|
2393
|
+
omap: bn,
|
|
2394
|
+
seq: an,
|
|
2395
|
+
str: rn
|
|
2396
|
+
}, Fo = ct("safeLoad", "load"), Eo = ct("safeLoadAll", "loadAll"), Oo = ct("safeDump", "dump"), Lo = {
|
|
2397
2397
|
Type: bo,
|
|
2398
2398
|
Schema: xo,
|
|
2399
2399
|
FAILSAFE_SCHEMA: Co,
|
|
@@ -2409,7 +2409,7 @@ var bo = ee, xo = tn, Co = on, ko = dn, Ao = fn, wo = ot, _o = In.load, So = In.
|
|
|
2409
2409
|
safeLoadAll: Eo,
|
|
2410
2410
|
safeDump: Oo
|
|
2411
2411
|
};
|
|
2412
|
-
const Bo = { class: "yaml-config config-card-code-block" },
|
|
2412
|
+
const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__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 */
|
|
@@ -2426,7 +2426,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2426
2426
|
return (i, r) => {
|
|
2427
2427
|
const o = D("KCodeBlock");
|
|
2428
2428
|
return m(), $("div", Bo, [
|
|
2429
|
-
t.entityRecord ? (m(),
|
|
2429
|
+
t.entityRecord ? (m(), M(o, {
|
|
2430
2430
|
key: 0,
|
|
2431
2431
|
id: "yaml-codeblock",
|
|
2432
2432
|
code: n.value,
|
|
@@ -2436,7 +2436,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2436
2436
|
]);
|
|
2437
2437
|
};
|
|
2438
2438
|
}
|
|
2439
|
-
}), Ro = { class: "terraform-config config-card-code-block" }, ie = " ",
|
|
2439
|
+
}), Ro = { class: "terraform-config config-card-code-block" }, ie = " ", qn = /* @__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 */
|
|
@@ -2447,7 +2447,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2447
2447
|
entityType: {
|
|
2448
2448
|
type: String,
|
|
2449
2449
|
required: !0,
|
|
2450
|
-
validator: (e) =>
|
|
2450
|
+
validator: (e) => De.includes(e)
|
|
2451
2451
|
},
|
|
2452
2452
|
credentialType: {
|
|
2453
2453
|
type: String,
|
|
@@ -2523,7 +2523,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2523
2523
|
return (l, s) => {
|
|
2524
2524
|
const c = D("KCodeBlock");
|
|
2525
2525
|
return m(), $("div", Ro, [
|
|
2526
|
-
t.entityRecord ? (m(),
|
|
2526
|
+
t.entityRecord ? (m(), M(c, {
|
|
2527
2527
|
key: 0,
|
|
2528
2528
|
id: "terraform-codeblock",
|
|
2529
2529
|
code: a.value,
|
|
@@ -2551,7 +2551,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2551
2551
|
entityType: {
|
|
2552
2552
|
type: String,
|
|
2553
2553
|
required: !0,
|
|
2554
|
-
validator: (e) =>
|
|
2554
|
+
validator: (e) => De.includes(e)
|
|
2555
2555
|
},
|
|
2556
2556
|
propertyCollections: {
|
|
2557
2557
|
type: Object,
|
|
@@ -2591,66 +2591,68 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2591
2591
|
}
|
|
2592
2592
|
},
|
|
2593
2593
|
setup(e) {
|
|
2594
|
-
const t = e, n =
|
|
2594
|
+
const t = e, n = je(), { i18n: { t: i } } = Y.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = F(() => {
|
|
2595
2595
|
if (!t.record)
|
|
2596
2596
|
return t.record;
|
|
2597
|
-
let
|
|
2598
|
-
t.codeBlockRecordFormatter && (
|
|
2599
|
-
const
|
|
2600
|
-
return delete
|
|
2601
|
-
});
|
|
2602
|
-
return (
|
|
2597
|
+
let l = t.record;
|
|
2598
|
+
t.codeBlockRecordFormatter && (l = t.codeBlockRecordFormatter(l, t.format));
|
|
2599
|
+
const s = JSON.parse(JSON.stringify(l));
|
|
2600
|
+
return delete s.created_at, delete s.updated_at, s;
|
|
2601
|
+
}), a = F(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
|
|
2602
|
+
return (l, s) => (m(), $(ce, null, [
|
|
2603
2603
|
e.format === "structured" ? (m(), $("div", Ko, [
|
|
2604
|
-
(m(!0), $(ce, null, se(e.propListTypes, (
|
|
2605
|
-
key: `config-card-details-${
|
|
2606
|
-
class: de(`config-card-details-${
|
|
2607
|
-
"data-testid": `config-card-details-${
|
|
2604
|
+
(m(!0), $(ce, null, se(e.propListTypes, (c) => (m(), $("div", {
|
|
2605
|
+
key: `config-card-details-${c}-props`,
|
|
2606
|
+
class: de(`config-card-details-${c}-props`),
|
|
2607
|
+
"data-testid": `config-card-details-${c}-props`
|
|
2608
2608
|
}, [
|
|
2609
|
-
|
|
2610
|
-
(m(!0), $(ce, null, se(e.propertyCollections[
|
|
2611
|
-
key:
|
|
2612
|
-
item:
|
|
2613
|
-
},
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
[c.key]: _(({ rowValue: d }) => [
|
|
2618
|
-
j(a.$slots, c.key, {
|
|
2619
|
-
row: c,
|
|
2620
|
-
rowValue: d
|
|
2621
|
-
}, void 0, !0)
|
|
2622
|
-
]),
|
|
2623
|
-
_: 2
|
|
2624
|
-
}, [
|
|
2625
|
-
r(c) ? {
|
|
2626
|
-
name: "label-tooltip",
|
|
2627
|
-
fn: _(() => [
|
|
2628
|
-
j(a.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
|
|
2609
|
+
c !== "basic" ? (m(), $("div", Mo, E(c === "advanced" ? T(i)("baseConfigCard.sections.advanced") : T(i)("baseConfigCard.sections.plugin")), 1)) : K("", !0),
|
|
2610
|
+
(m(!0), $(ce, null, se(e.propertyCollections[c], (d) => j(l.$slots, `config-card-item-${d.key}`, {
|
|
2611
|
+
key: d.key,
|
|
2612
|
+
item: d
|
|
2613
|
+
}, () => [
|
|
2614
|
+
N(Zt, { item: d }, _e({
|
|
2615
|
+
label: _(() => [
|
|
2616
|
+
j(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
|
|
2629
2617
|
]),
|
|
2630
|
-
key:
|
|
2631
|
-
|
|
2632
|
-
|
|
2618
|
+
[d.key]: _(({ rowValue: u }) => [
|
|
2619
|
+
j(l.$slots, d.key, {
|
|
2620
|
+
row: d,
|
|
2621
|
+
rowValue: u
|
|
2622
|
+
}, void 0, !0)
|
|
2623
|
+
]),
|
|
2624
|
+
_: 2
|
|
2625
|
+
}, [
|
|
2626
|
+
r(d) ? {
|
|
2627
|
+
name: "label-tooltip",
|
|
2628
|
+
fn: _(() => [
|
|
2629
|
+
j(l.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
|
|
2630
|
+
]),
|
|
2631
|
+
key: "0"
|
|
2632
|
+
} : void 0
|
|
2633
|
+
]), 1032, ["item"])
|
|
2634
|
+
], !0)), 128))
|
|
2633
2635
|
], 10, No))), 128))
|
|
2634
2636
|
])) : K("", !0),
|
|
2635
|
-
e.format === "json" && o.value ? (m(),
|
|
2637
|
+
e.format === "json" && o.value ? (m(), M(Xt, {
|
|
2636
2638
|
key: 1,
|
|
2637
2639
|
config: t.config,
|
|
2638
2640
|
"entity-record": o.value,
|
|
2639
|
-
"fetcher-url":
|
|
2641
|
+
"fetcher-url": a.value,
|
|
2640
2642
|
"request-method": "get"
|
|
2641
2643
|
}, null, 8, ["config", "entity-record", "fetcher-url"])) : K("", !0),
|
|
2642
|
-
e.format === "yaml" && o.value ? (m(),
|
|
2644
|
+
e.format === "yaml" && o.value ? (m(), M(Un, {
|
|
2643
2645
|
key: 2,
|
|
2644
2646
|
"entity-record": o.value
|
|
2645
2647
|
}, null, 8, ["entity-record"])) : K("", !0),
|
|
2646
|
-
e.format === "terraform" && o.value ? (m(),
|
|
2648
|
+
e.format === "terraform" && o.value ? (m(), M(qn, {
|
|
2647
2649
|
key: 3,
|
|
2648
2650
|
"entity-record": o.value,
|
|
2649
2651
|
"entity-type": t.entityType
|
|
2650
2652
|
}, null, 8, ["entity-record", "entity-type"])) : K("", !0)
|
|
2651
2653
|
], 64));
|
|
2652
2654
|
}
|
|
2653
|
-
}), Do = /* @__PURE__ */ oe(jo, [["__scopeId", "data-v-
|
|
2655
|
+
}), Do = /* @__PURE__ */ oe(jo, [["__scopeId", "data-v-87568fb5"]]), Po = {
|
|
2654
2656
|
class: "config-card-title",
|
|
2655
2657
|
"data-testid": "config-card-title"
|
|
2656
2658
|
}, Uo = { class: "config-card-actions" }, qo = ["href"], Ho = { class: "config-card-details-section" }, Vo = /* @__PURE__ */ J({
|
|
@@ -2674,7 +2676,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2674
2676
|
entityType: {
|
|
2675
2677
|
type: String,
|
|
2676
2678
|
required: !0,
|
|
2677
|
-
validator: (e) =>
|
|
2679
|
+
validator: (e) => De.includes(e)
|
|
2678
2680
|
},
|
|
2679
2681
|
/** Record key that contains the plugin configuration */
|
|
2680
2682
|
pluginConfigKey: {
|
|
@@ -2785,7 +2787,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2785
2787
|
};
|
|
2786
2788
|
ve(d, (f) => {
|
|
2787
2789
|
i.config.formatPreferenceKey && g(i.config.formatPreferenceKey, f);
|
|
2788
|
-
}),
|
|
2790
|
+
}), et(() => {
|
|
2789
2791
|
if (i.config.formatPreferenceKey) {
|
|
2790
2792
|
const f = localStorage.getItem(i.config.formatPreferenceKey);
|
|
2791
2793
|
f && s.some((h) => h.value === f) ? d.value = f : d.value = c, g(i.config.formatPreferenceKey, d.value);
|
|
@@ -2838,6 +2840,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2838
2840
|
return [];
|
|
2839
2841
|
const f = [], h = Object.keys(S.value).length;
|
|
2840
2842
|
for (const P in S.value) {
|
|
2843
|
+
if (P === "__ui_data") continue;
|
|
2841
2844
|
const B = (k = (C = i.configSchema) == null ? void 0 : C[P]) == null ? void 0 : k.order, Q = (H = p[P]) == null ? void 0 : H.order;
|
|
2842
2845
|
let W = h;
|
|
2843
2846
|
(Q || Q === 0) && (W = Q === -1 ? h + 1 : Q), B && (W = B === -1 ? h + 1 : B), f.push([P, W]);
|
|
@@ -2845,8 +2848,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2845
2848
|
return f.sort(function(P, B) {
|
|
2846
2849
|
return P[1] - B[1];
|
|
2847
2850
|
}), f.map((P) => {
|
|
2848
|
-
var
|
|
2849
|
-
const B = P[0], Q = (
|
|
2851
|
+
var ut, dt;
|
|
2852
|
+
const B = P[0], Q = (ut = S.value) == null ? void 0 : ut[B], W = ((dt = i.configSchema) == null ? void 0 : dt[B]) || {}, Z = p[B];
|
|
2850
2853
|
return {
|
|
2851
2854
|
key: B,
|
|
2852
2855
|
value: Q,
|
|
@@ -2899,7 +2902,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2899
2902
|
});
|
|
2900
2903
|
return ve(y, (f) => {
|
|
2901
2904
|
n("loading", f);
|
|
2902
|
-
}, { immediate: !0 }),
|
|
2905
|
+
}, { immediate: !0 }), tt(async () => {
|
|
2903
2906
|
v.value = !1, y.value = !0;
|
|
2904
2907
|
try {
|
|
2905
2908
|
const { data: f } = await l.get(A.value);
|
|
@@ -2920,14 +2923,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2920
2923
|
}
|
|
2921
2924
|
}), (f, h) => {
|
|
2922
2925
|
const C = D("KLabel"), k = D("KSelect"), H = D("KButton"), P = D("KSkeleton"), B = D("KEmptyState"), Q = D("KCard");
|
|
2923
|
-
return m(),
|
|
2926
|
+
return m(), M(Q, {
|
|
2924
2927
|
class: "kong-ui-entity-base-config-card",
|
|
2925
2928
|
"title-tag": e.titleTag
|
|
2926
2929
|
}, _e({
|
|
2927
2930
|
actions: _(() => [
|
|
2928
2931
|
O("div", Uo, [
|
|
2929
2932
|
j(f.$slots, "actions", {}, void 0, !0),
|
|
2930
|
-
|
|
2933
|
+
N(C, {
|
|
2931
2934
|
class: "config-format-select-label",
|
|
2932
2935
|
"data-testid": "config-format-select-label"
|
|
2933
2936
|
}, {
|
|
@@ -2936,14 +2939,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2936
2939
|
]),
|
|
2937
2940
|
_: 1
|
|
2938
2941
|
}),
|
|
2939
|
-
|
|
2942
|
+
N(k, {
|
|
2940
2943
|
modelValue: d.value,
|
|
2941
2944
|
"onUpdate:modelValue": h[0] || (h[0] = (W) => d.value = W),
|
|
2942
2945
|
"data-testid": "select-config-format",
|
|
2943
2946
|
items: s,
|
|
2944
2947
|
onChange: u
|
|
2945
2948
|
}, null, 8, ["modelValue"]),
|
|
2946
|
-
e.configCardDoc ? (m(),
|
|
2949
|
+
e.configCardDoc ? (m(), M(H, {
|
|
2947
2950
|
key: 0,
|
|
2948
2951
|
appearance: "tertiary",
|
|
2949
2952
|
class: "book-icon",
|
|
@@ -2955,7 +2958,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2955
2958
|
rel: "noopener",
|
|
2956
2959
|
target: "_blank"
|
|
2957
2960
|
}, [
|
|
2958
|
-
|
|
2961
|
+
N(T(Ht), { size: T(Zi) }, null, 8, ["size"])
|
|
2959
2962
|
], 8, qo)
|
|
2960
2963
|
]),
|
|
2961
2964
|
_: 1
|
|
@@ -2963,12 +2966,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2963
2966
|
])
|
|
2964
2967
|
]),
|
|
2965
2968
|
default: _(() => [
|
|
2966
|
-
y.value ? (m(),
|
|
2969
|
+
y.value ? (m(), M(P, {
|
|
2967
2970
|
key: 0,
|
|
2968
2971
|
"data-testid": "config-card-loader",
|
|
2969
2972
|
"table-columns": 2,
|
|
2970
2973
|
type: "table"
|
|
2971
|
-
})) : v.value ? (m(),
|
|
2974
|
+
})) : v.value ? (m(), M(B, {
|
|
2972
2975
|
key: 1,
|
|
2973
2976
|
"data-testid": "config-card-fetch-error",
|
|
2974
2977
|
"icon-variant": "error"
|
|
@@ -2979,7 +2982,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2979
2982
|
_: 1
|
|
2980
2983
|
})) : K("", !0),
|
|
2981
2984
|
O("div", Ho, [
|
|
2982
|
-
|
|
2985
|
+
N(Do, {
|
|
2983
2986
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
2984
2987
|
config: e.config,
|
|
2985
2988
|
"entity-type": e.entityType,
|
|
@@ -2991,11 +2994,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
2991
2994
|
}, _e({ _: 2 }, [
|
|
2992
2995
|
se(Object.keys(f.$slots), (W) => ({
|
|
2993
2996
|
name: W,
|
|
2994
|
-
fn: _((
|
|
2995
|
-
j(f.$slots, W, {
|
|
2996
|
-
row: Z,
|
|
2997
|
-
rowValue: Oe
|
|
2998
|
-
}, void 0, !0)
|
|
2997
|
+
fn: _((Z) => [
|
|
2998
|
+
j(f.$slots, W, Ut({ record: S.value }, Z), void 0, !0)
|
|
2999
2999
|
])
|
|
3000
3000
|
}))
|
|
3001
3001
|
]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record"])
|
|
@@ -3017,7 +3017,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3017
3017
|
]), 1032, ["title-tag"]);
|
|
3018
3018
|
};
|
|
3019
3019
|
}
|
|
3020
|
-
}), ds = /* @__PURE__ */ oe(Vo, [["__scopeId", "data-v-
|
|
3020
|
+
}), ds = /* @__PURE__ */ oe(Vo, [["__scopeId", "data-v-b2fc29f7"]]), 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. */
|
|
@@ -3038,7 +3038,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3038
3038
|
entityType: {
|
|
3039
3039
|
type: String,
|
|
3040
3040
|
required: !0,
|
|
3041
|
-
validator: (e) =>
|
|
3041
|
+
validator: (e) => De.includes(e)
|
|
3042
3042
|
},
|
|
3043
3043
|
/**
|
|
3044
3044
|
* Fetch url for the item to edit. We will handle the replacement of {controlPlaneId}, {workspace}, and {id}.
|
|
@@ -3155,12 +3155,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3155
3155
|
hash: "#yaml"
|
|
3156
3156
|
}
|
|
3157
3157
|
]);
|
|
3158
|
-
return r.config.app === "konnect" && r.entityType !==
|
|
3158
|
+
return r.config.app === "konnect" && r.entityType !== nt.Other && q.value.splice(1, 0, {
|
|
3159
3159
|
title: a("baseForm.configuration.terraform"),
|
|
3160
3160
|
hash: "#terraform"
|
|
3161
3161
|
}), ve(() => c.value, (A) => {
|
|
3162
3162
|
i("loading", A);
|
|
3163
|
-
}, { immediate: !0 }),
|
|
3163
|
+
}, { immediate: !0 }), tt(async () => {
|
|
3164
3164
|
if (r.editId)
|
|
3165
3165
|
try {
|
|
3166
3166
|
u.value = !1, c.value = !0;
|
|
@@ -3178,12 +3178,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3178
3178
|
formSubmit: L
|
|
3179
3179
|
}), (A, w) => {
|
|
3180
3180
|
const f = D("KSkeleton"), h = D("KEmptyState"), C = D("KAlert"), k = D("KButton"), H = D("KTabs"), P = D("KSlideout");
|
|
3181
|
-
return m(),
|
|
3181
|
+
return m(), M(Me(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3182
3182
|
default: _(() => [
|
|
3183
|
-
c.value ? (m(),
|
|
3183
|
+
c.value ? (m(), M(f, {
|
|
3184
3184
|
key: 0,
|
|
3185
3185
|
type: "form"
|
|
3186
|
-
})) : u.value ? (m(),
|
|
3186
|
+
})) : u.value ? (m(), M(h, {
|
|
3187
3187
|
key: 1,
|
|
3188
3188
|
"action-button-text": T(a)("baseForm.actions.back"),
|
|
3189
3189
|
"data-testid": "form-fetch-error",
|
|
@@ -3198,17 +3198,17 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3198
3198
|
key: 2,
|
|
3199
3199
|
"data-testid": "form-content",
|
|
3200
3200
|
novalidate: r.noValidate,
|
|
3201
|
-
onReset:
|
|
3202
|
-
onSubmit:
|
|
3201
|
+
onReset: Oe(x, ["prevent"]),
|
|
3202
|
+
onSubmit: Oe(L, ["prevent"])
|
|
3203
3203
|
}, [
|
|
3204
3204
|
j(A.$slots, "default", {}, void 0, !0),
|
|
3205
|
-
e.errorMessage ? (m(),
|
|
3205
|
+
e.errorMessage ? (m(), M(C, {
|
|
3206
3206
|
key: 0,
|
|
3207
3207
|
appearance: "danger",
|
|
3208
3208
|
"data-testid": "form-error",
|
|
3209
3209
|
message: e.errorMessage
|
|
3210
3210
|
}, null, 8, ["message"])) : K("", !0),
|
|
3211
|
-
e.hideActions ? K("", !0) : (m(),
|
|
3211
|
+
e.hideActions ? K("", !0) : (m(), M(qt, {
|
|
3212
3212
|
key: 1,
|
|
3213
3213
|
disabled: !e.actionTeleportTarget,
|
|
3214
3214
|
to: e.actionTeleportTarget
|
|
@@ -3218,7 +3218,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3218
3218
|
"data-testid": "form-actions"
|
|
3219
3219
|
}, [
|
|
3220
3220
|
j(A.$slots, "form-actions", {}, () => [
|
|
3221
|
-
|
|
3221
|
+
N(k, {
|
|
3222
3222
|
appearance: "tertiary",
|
|
3223
3223
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
3224
3224
|
onClick: w[0] || (w[0] = (B) => b())
|
|
@@ -3228,7 +3228,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3228
3228
|
]),
|
|
3229
3229
|
_: 1
|
|
3230
3230
|
}, 8, ["data-testid"]),
|
|
3231
|
-
|
|
3231
|
+
N(k, {
|
|
3232
3232
|
appearance: "secondary",
|
|
3233
3233
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
|
|
3234
3234
|
disabled: e.isReadonly,
|
|
@@ -3240,7 +3240,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3240
3240
|
]),
|
|
3241
3241
|
_: 1
|
|
3242
3242
|
}, 8, ["data-testid", "disabled"]),
|
|
3243
|
-
|
|
3243
|
+
N(k, {
|
|
3244
3244
|
appearance: "primary",
|
|
3245
3245
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
|
|
3246
3246
|
disabled: p.value,
|
|
@@ -3256,7 +3256,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3256
3256
|
], 2)
|
|
3257
3257
|
], 8, ["disabled", "to"]))
|
|
3258
3258
|
], 40, Yo)),
|
|
3259
|
-
|
|
3259
|
+
N(P, {
|
|
3260
3260
|
"close-on-blur": !1,
|
|
3261
3261
|
"data-testid": "form-view-configuration-slideout",
|
|
3262
3262
|
"has-overlay": !1,
|
|
@@ -3267,13 +3267,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3267
3267
|
}, {
|
|
3268
3268
|
default: _(() => [
|
|
3269
3269
|
O("div", null, E(T(a)("baseForm.configuration.message")), 1),
|
|
3270
|
-
|
|
3270
|
+
N(H, {
|
|
3271
3271
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3272
3272
|
tabs: q.value,
|
|
3273
3273
|
onChange: w[3] || (w[3] = (B) => i("codeBlockTabChange", B.replace("#", "")))
|
|
3274
3274
|
}, {
|
|
3275
3275
|
json: _(() => [
|
|
3276
|
-
|
|
3276
|
+
N(Xt, {
|
|
3277
3277
|
config: e.config,
|
|
3278
3278
|
"entity-record": r.formFields,
|
|
3279
3279
|
"fetcher-url": v.value,
|
|
@@ -3281,12 +3281,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3281
3281
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3282
3282
|
]),
|
|
3283
3283
|
yaml: _(() => [
|
|
3284
|
-
|
|
3284
|
+
N(Un, {
|
|
3285
3285
|
"entity-record": r.formFields
|
|
3286
3286
|
}, null, 8, ["entity-record"])
|
|
3287
3287
|
]),
|
|
3288
3288
|
terraform: _(() => [
|
|
3289
|
-
|
|
3289
|
+
N(qn, {
|
|
3290
3290
|
"entity-record": r.formFields,
|
|
3291
3291
|
"entity-type": e.entityType
|
|
3292
3292
|
}, null, 8, ["entity-record", "entity-type"])
|
|
@@ -3355,7 +3355,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3355
3355
|
},
|
|
3356
3356
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3357
3357
|
), v = F(() => o.value ? d.value > u.value : !1);
|
|
3358
|
-
return
|
|
3358
|
+
return et(() => {
|
|
3359
3359
|
s();
|
|
3360
3360
|
}), Jn(() => {
|
|
3361
3361
|
y();
|
|
@@ -3370,7 +3370,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3370
3370
|
key: 0,
|
|
3371
3371
|
"data-truncate": o.value || void 0
|
|
3372
3372
|
}, [
|
|
3373
|
-
|
|
3373
|
+
N(x, {
|
|
3374
3374
|
"max-width": "300",
|
|
3375
3375
|
placement: "bottom-start",
|
|
3376
3376
|
text: v.value ? g.value : ""
|
|
@@ -3604,13 +3604,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3604
3604
|
}));
|
|
3605
3605
|
return (h, C) => {
|
|
3606
3606
|
const k = D("KTableData"), H = D("KCard");
|
|
3607
|
-
return m(),
|
|
3607
|
+
return m(), M(H, {
|
|
3608
3608
|
class: "kong-ui-entity-base-table",
|
|
3609
3609
|
title: e.title,
|
|
3610
3610
|
"title-tag": e.titleTag
|
|
3611
3611
|
}, {
|
|
3612
3612
|
default: _(() => [
|
|
3613
|
-
|
|
3613
|
+
N(k, {
|
|
3614
3614
|
ref_key: "tableRefs",
|
|
3615
3615
|
ref: c,
|
|
3616
3616
|
"cache-identifier": a.value,
|
|
@@ -3669,7 +3669,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3669
3669
|
se(e.tableHeaders, (P, B) => ({
|
|
3670
3670
|
name: B,
|
|
3671
3671
|
fn: _(({ row: Q, rowValue: W }) => [
|
|
3672
|
-
|
|
3672
|
+
N(zo, {
|
|
3673
3673
|
"key-name": String(B),
|
|
3674
3674
|
"row-el": d(Q),
|
|
3675
3675
|
tooltip: P.tooltip
|
|
@@ -3690,7 +3690,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3690
3690
|
e.query ? void 0 : {
|
|
3691
3691
|
name: "empty-state-action-icon",
|
|
3692
3692
|
fn: _(() => [
|
|
3693
|
-
|
|
3693
|
+
N(T(Vt))
|
|
3694
3694
|
]),
|
|
3695
3695
|
key: "1"
|
|
3696
3696
|
}
|
|
@@ -3755,7 +3755,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3755
3755
|
};
|
|
3756
3756
|
return (s, c) => {
|
|
3757
3757
|
const d = D("KAlert"), u = D("KPrompt");
|
|
3758
|
-
return m(),
|
|
3758
|
+
return m(), M(u, {
|
|
3759
3759
|
"action-button-appearance": "danger",
|
|
3760
3760
|
"action-button-disabled": e.actionPending,
|
|
3761
3761
|
"action-button-text": "Yes, delete",
|
|
@@ -3768,14 +3768,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3768
3768
|
}, {
|
|
3769
3769
|
default: _(() => [
|
|
3770
3770
|
e.error ? (m(), $("div", tl, [
|
|
3771
|
-
|
|
3771
|
+
N(d, { appearance: "danger" }, {
|
|
3772
3772
|
default: _(() => [
|
|
3773
3773
|
U(E(e.error), 1)
|
|
3774
3774
|
]),
|
|
3775
3775
|
_: 1
|
|
3776
3776
|
})
|
|
3777
3777
|
])) : K("", !0),
|
|
3778
|
-
|
|
3778
|
+
N(T(n), {
|
|
3779
3779
|
class: "message",
|
|
3780
3780
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3781
3781
|
tag: "p"
|
|
@@ -3920,7 +3920,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3920
3920
|
};
|
|
3921
3921
|
return (A, w) => {
|
|
3922
3922
|
const f = D("KInput"), h = D("KButton"), C = D("KSelect");
|
|
3923
|
-
return e.config.isExactMatch ? (m(),
|
|
3923
|
+
return e.config.isExactMatch ? (m(), M(f, {
|
|
3924
3924
|
key: 0,
|
|
3925
3925
|
autocomplete: "off",
|
|
3926
3926
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3930,10 +3930,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3930
3930
|
"onUpdate:modelValue": g
|
|
3931
3931
|
}, {
|
|
3932
3932
|
before: _(() => [
|
|
3933
|
-
|
|
3933
|
+
N(Nt)
|
|
3934
3934
|
]),
|
|
3935
3935
|
after: _(() => [
|
|
3936
|
-
be(
|
|
3936
|
+
be(N(T(ni), {
|
|
3937
3937
|
class: "kong-ui-entity-filter-clear",
|
|
3938
3938
|
role: "button",
|
|
3939
3939
|
tabindex: "0",
|
|
@@ -3944,13 +3944,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3944
3944
|
]),
|
|
3945
3945
|
_: 1
|
|
3946
3946
|
}, 8, ["model-value", "placeholder"])) : (m(), $("div", cl, [
|
|
3947
|
-
|
|
3947
|
+
N(h, {
|
|
3948
3948
|
appearance: "tertiary",
|
|
3949
3949
|
"data-testid": "filter-button",
|
|
3950
3950
|
onClick: d
|
|
3951
3951
|
}, {
|
|
3952
3952
|
default: _(() => [
|
|
3953
|
-
|
|
3953
|
+
N(Nt),
|
|
3954
3954
|
U(" " + E(T(n)("filter.filterButtonText")) + " " + E(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3955
3955
|
]),
|
|
3956
3956
|
_: 1
|
|
@@ -3980,7 +3980,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3980
3980
|
be(O("span", pl, null, 512), [
|
|
3981
3981
|
[xe, s.value.includes(k.value)]
|
|
3982
3982
|
]),
|
|
3983
|
-
|
|
3983
|
+
N(T(ii), {
|
|
3984
3984
|
class: de(["menu-item-expand-icon", { expanded: l.value.has(k.value) }]),
|
|
3985
3985
|
color: T(Ji)
|
|
3986
3986
|
}, null, 8, ["class", "color"])
|
|
@@ -3990,7 +3990,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3990
3990
|
class: "menu-item-label",
|
|
3991
3991
|
for: y(k.value)
|
|
3992
3992
|
}, E(T(n)("filter.fieldLabel")), 9, hl),
|
|
3993
|
-
((P = (H = e.config.schema) == null ? void 0 : H[k.value]) == null ? void 0 : P.type) === "select" ? (m(),
|
|
3993
|
+
((P = (H = e.config.schema) == null ? void 0 : H[k.value]) == null ? void 0 : P.type) === "select" ? (m(), M(C, {
|
|
3994
3994
|
key: 0,
|
|
3995
3995
|
id: y(k.value),
|
|
3996
3996
|
modelValue: a.value[k.value],
|
|
@@ -3999,7 +3999,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
3999
3999
|
"filter-function": (B) => ne(k.value, B),
|
|
4000
4000
|
items: v(k.value),
|
|
4001
4001
|
placeholder: T(n)("filter.selectPlaceholder")
|
|
4002
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (m(),
|
|
4002
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (m(), M(f, {
|
|
4003
4003
|
key: 1,
|
|
4004
4004
|
id: y(k.value),
|
|
4005
4005
|
modelValue: a.value[k.value],
|
|
@@ -4012,7 +4012,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4012
4012
|
[xe, l.value.has(k.value)]
|
|
4013
4013
|
]),
|
|
4014
4014
|
be(O("div", gl, [
|
|
4015
|
-
|
|
4015
|
+
N(h, {
|
|
4016
4016
|
appearance: "tertiary",
|
|
4017
4017
|
"data-testid": "apply-filter",
|
|
4018
4018
|
size: "small",
|
|
@@ -4023,7 +4023,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4023
4023
|
]),
|
|
4024
4024
|
_: 1
|
|
4025
4025
|
}),
|
|
4026
|
-
|
|
4026
|
+
N(h, {
|
|
4027
4027
|
appearance: "tertiary",
|
|
4028
4028
|
"data-testid": "clear-filter",
|
|
4029
4029
|
size: "small",
|
|
@@ -4040,7 +4040,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4040
4040
|
], 8, dl);
|
|
4041
4041
|
}), 128)),
|
|
4042
4042
|
O("div", yl, [
|
|
4043
|
-
|
|
4043
|
+
N(h, {
|
|
4044
4044
|
appearance: "tertiary",
|
|
4045
4045
|
size: "small",
|
|
4046
4046
|
onClick: x
|
|
@@ -4107,8 +4107,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4107
4107
|
};
|
|
4108
4108
|
return (u, g) => {
|
|
4109
4109
|
const p = D("KPrompt");
|
|
4110
|
-
return m(),
|
|
4111
|
-
|
|
4110
|
+
return m(), M(qt, { to: "body" }, [
|
|
4111
|
+
N(p, {
|
|
4112
4112
|
"action-button-disabled": a.value,
|
|
4113
4113
|
"action-button-text": s.value,
|
|
4114
4114
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
@@ -4118,7 +4118,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
|
|
|
4118
4118
|
onProceed: d
|
|
4119
4119
|
}, {
|
|
4120
4120
|
default: _(() => [
|
|
4121
|
-
|
|
4121
|
+
N(T(i), {
|
|
4122
4122
|
keypath: `toggleModal.${r.action}.message`,
|
|
4123
4123
|
scope: "global"
|
|
4124
4124
|
}, {
|
|
@@ -4172,15 +4172,15 @@ for (let e = 0; e < 256; ++e)
|
|
|
4172
4172
|
function bl(e, t = 0) {
|
|
4173
4173
|
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();
|
|
4174
4174
|
}
|
|
4175
|
-
let
|
|
4175
|
+
let We;
|
|
4176
4176
|
const xl = new Uint8Array(16);
|
|
4177
4177
|
function Cl() {
|
|
4178
|
-
if (!
|
|
4178
|
+
if (!We) {
|
|
4179
4179
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4180
4180
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4181
|
-
|
|
4181
|
+
We = crypto.getRandomValues.bind(crypto);
|
|
4182
4182
|
}
|
|
4183
|
-
return
|
|
4183
|
+
return We(xl);
|
|
4184
4184
|
}
|
|
4185
4185
|
const kl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Mt = { randomUUID: kl };
|
|
4186
4186
|
function Al(e, t, n) {
|
|
@@ -4228,7 +4228,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4228
4228
|
}
|
|
4229
4229
|
},
|
|
4230
4230
|
setup(e) {
|
|
4231
|
-
const t =
|
|
4231
|
+
const t = je(), n = Al();
|
|
4232
4232
|
return (i, r) => (m(), $("div", {
|
|
4233
4233
|
"aria-labelledby": e.title ? T(n) : void 0,
|
|
4234
4234
|
class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
@@ -4239,7 +4239,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4239
4239
|
key: 0,
|
|
4240
4240
|
class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4241
4241
|
}, [
|
|
4242
|
-
e.title ? (m(),
|
|
4242
|
+
e.title ? (m(), M(Me(e.titleTag), {
|
|
4243
4243
|
key: 0,
|
|
4244
4244
|
id: T(n),
|
|
4245
4245
|
class: "form-section-title"
|
|
@@ -4281,7 +4281,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4281
4281
|
description: { default: "" }
|
|
4282
4282
|
},
|
|
4283
4283
|
setup(e) {
|
|
4284
|
-
const t =
|
|
4284
|
+
const t = je();
|
|
4285
4285
|
return (n, i) => (m(), $("div", Fl, [
|
|
4286
4286
|
O("header", El, [
|
|
4287
4287
|
n.step != null ? (m(), $("div", Ol, E(n.step), 1)) : K("", !0),
|
|
@@ -4350,7 +4350,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4350
4350
|
return (u, g) => {
|
|
4351
4351
|
const p = D("KTooltip"), y = D("KExternalLink"), v = D("KClipboardProvider");
|
|
4352
4352
|
return m(), $("div", jl, [
|
|
4353
|
-
l.value ? (m(), $("div", Dl, E(c.value), 1)) : s.value ? s.value ? (m(),
|
|
4353
|
+
l.value ? (m(), $("div", Dl, E(c.value), 1)) : s.value ? s.value ? (m(), M(y, {
|
|
4354
4354
|
key: 2,
|
|
4355
4355
|
class: "entity-link",
|
|
4356
4356
|
"hide-icon": !e.newWindow,
|
|
@@ -4358,7 +4358,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4358
4358
|
target: e.newWindow ? "_blank" : "_self"
|
|
4359
4359
|
}, {
|
|
4360
4360
|
default: _(() => [
|
|
4361
|
-
|
|
4361
|
+
N(p, {
|
|
4362
4362
|
text: T(i) && e.entityLinkData.label || ""
|
|
4363
4363
|
}, {
|
|
4364
4364
|
default: _(() => [
|
|
@@ -4373,7 +4373,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4373
4373
|
]),
|
|
4374
4374
|
_: 1
|
|
4375
4375
|
}, 8, ["hide-icon", "href", "target"])) : K("", !0) : (m(), $("div", Pl, E(" – "))),
|
|
4376
|
-
s.value && e.allowCopy ? (m(),
|
|
4376
|
+
s.value && e.allowCopy ? (m(), M(p, {
|
|
4377
4377
|
key: a.value,
|
|
4378
4378
|
class: "copy-uuid-tooltip",
|
|
4379
4379
|
"max-width": "160",
|
|
@@ -4381,13 +4381,13 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4381
4381
|
text: a.value
|
|
4382
4382
|
}, {
|
|
4383
4383
|
default: _(() => [
|
|
4384
|
-
|
|
4384
|
+
N(v, null, {
|
|
4385
4385
|
default: _(({ copyToClipboard: b }) => [
|
|
4386
4386
|
O("span", {
|
|
4387
4387
|
class: "entity-link-copy-id",
|
|
4388
|
-
onClick:
|
|
4388
|
+
onClick: Oe((S) => d(b), ["stop"])
|
|
4389
4389
|
}, [
|
|
4390
|
-
|
|
4390
|
+
N(T(ri), {
|
|
4391
4391
|
class: "copy-icon",
|
|
4392
4392
|
color: T(Gi),
|
|
4393
4393
|
"data-testid": "copy-id",
|
|
@@ -4472,9 +4472,9 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
|
|
|
4472
4472
|
emits: ["click:create", "click:learn-more"],
|
|
4473
4473
|
setup(e) {
|
|
4474
4474
|
const t = e, { i18n: { t: n } } = Y.useI18n(), i = R(!1), r = F(() => i.value && !!t.actionButtonText), o = F(() => mt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4475
|
-
return
|
|
4475
|
+
return tt(async () => {
|
|
4476
4476
|
i.value = await t.canCreate();
|
|
4477
|
-
}),
|
|
4477
|
+
}), et(() => zn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4478
4478
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
|
|
4479
4479
|
const s = D("KCard");
|
|
4480
4480
|
return m(), $("div", Hl, [
|
|
@@ -4511,7 +4511,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4511
4511
|
])) : K("", !0),
|
|
4512
4512
|
r.value || e.learnMore || a.$slots.actions ? (m(), $("div", Ql, [
|
|
4513
4513
|
j(a.$slots, "actions", {}, () => [
|
|
4514
|
-
r.value ? (m(),
|
|
4514
|
+
r.value ? (m(), M(T(pt), {
|
|
4515
4515
|
key: 0,
|
|
4516
4516
|
appearance: "primary",
|
|
4517
4517
|
"data-testid": "entity-create-button",
|
|
@@ -4519,12 +4519,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4519
4519
|
onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
|
|
4520
4520
|
}, {
|
|
4521
4521
|
default: _(() => [
|
|
4522
|
-
|
|
4522
|
+
N(T(Vt)),
|
|
4523
4523
|
U(" " + E(e.actionButtonText), 1)
|
|
4524
4524
|
]),
|
|
4525
4525
|
_: 1
|
|
4526
4526
|
}, 8, ["size"])) : K("", !0),
|
|
4527
|
-
e.learnMore ? (m(),
|
|
4527
|
+
e.learnMore ? (m(), M(T(pt), {
|
|
4528
4528
|
key: 1,
|
|
4529
4529
|
appearance: "secondary",
|
|
4530
4530
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4532,7 +4532,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4532
4532
|
onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
|
|
4533
4533
|
}, {
|
|
4534
4534
|
default: _(() => [
|
|
4535
|
-
|
|
4535
|
+
N(T(Ht), { decorative: "" }),
|
|
4536
4536
|
U(" " + E(T(n)("emptyState.learnMore")), 1)
|
|
4537
4537
|
]),
|
|
4538
4538
|
_: 1
|
|
@@ -4540,7 +4540,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4540
4540
|
], !0)
|
|
4541
4541
|
])) : K("", !0),
|
|
4542
4542
|
e.features.length ? (m(), $("div", Zl, [
|
|
4543
|
-
(m(!0), $(ce, null, se(e.features, (c, d) => (m(),
|
|
4543
|
+
(m(!0), $(ce, null, se(e.features, (c, d) => (m(), M(s, {
|
|
4544
4544
|
key: c,
|
|
4545
4545
|
class: "entity-empty-state-card"
|
|
4546
4546
|
}, {
|
|
@@ -4592,12 +4592,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4592
4592
|
});
|
|
4593
4593
|
return (i, r) => {
|
|
4594
4594
|
var o;
|
|
4595
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(),
|
|
4595
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), M(T(ei), { key: 0 }, {
|
|
4596
4596
|
default: _(() => [
|
|
4597
|
-
(m(!0), $(ce, null, se(n.value, (a) => (m(),
|
|
4597
|
+
(m(!0), $(ce, null, se(n.value, (a) => (m(), M(T(ti), {
|
|
4598
4598
|
key: a,
|
|
4599
4599
|
"max-width": e.tagMaxWidth,
|
|
4600
|
-
onClick: r[0] || (r[0] =
|
|
4600
|
+
onClick: r[0] || (r[0] = Oe(() => {
|
|
4601
4601
|
}, ["stop"]))
|
|
4602
4602
|
}, {
|
|
4603
4603
|
default: _(() => [
|
|
@@ -4614,7 +4614,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4614
4614
|
export {
|
|
4615
4615
|
mt as Appearances,
|
|
4616
4616
|
Do as ConfigCardDisplay,
|
|
4617
|
-
|
|
4617
|
+
Zt as ConfigCardItem,
|
|
4618
4618
|
le as ConfigurationSchemaSection,
|
|
4619
4619
|
V as ConfigurationSchemaType,
|
|
4620
4620
|
ds as EntityBaseConfigCard,
|
|
@@ -4631,13 +4631,13 @@ export {
|
|
|
4631
4631
|
oi as EntityTypes,
|
|
4632
4632
|
pe as FetcherStatus,
|
|
4633
4633
|
Hi as InternalLinkItem,
|
|
4634
|
-
|
|
4634
|
+
Xt as JsonCodeBlock,
|
|
4635
4635
|
ys as PermissionsWrapper,
|
|
4636
|
-
|
|
4637
|
-
|
|
4636
|
+
nt as SupportedEntityType,
|
|
4637
|
+
De as SupportedEntityTypesArray,
|
|
4638
4638
|
ks as TableTags,
|
|
4639
|
-
|
|
4640
|
-
|
|
4639
|
+
qn as TerraformCodeBlock,
|
|
4640
|
+
Un as YamlCodeBlock,
|
|
4641
4641
|
As as useAxios,
|
|
4642
4642
|
Fs as useDebouncedFilter,
|
|
4643
4643
|
ws as useDeleteUrlBuilder,
|