@kong-ui-public/entities-shared 2.9.2 → 2.9.3-pr.1209.a5bbe923.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 +820 -716
- package/dist/entities-shared.umd.js +24 -24
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -1
- package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { inject as $t, ref as K, unref as
|
|
1
|
+
import { inject as $t, ref as K, unref as S, computed as _, watch as _e, defineComponent as H, resolveComponent as B, openBlock as p, createElementBlock as w, createBlock as R, resolveDynamicComponent as le, mergeProps as Ve, withCtx as v, createElementVNode as $, normalizeClass as he, toDisplayString as O, createCommentVNode as U, createVNode as N, withModifiers as Le, normalizeStyle as Fe, pushScopeId as Oe, popScopeId as $e, Fragment as ae, renderList as ie, createTextVNode as z, useCssVars as Lt, useSlots as Ze, renderSlot as Y, createSlots as xe, normalizeProps as Ln, guardReactiveProps as Nn, onBeforeMount as Nt, onMounted as Bn, onUnmounted as Mn, withDirectives as ke, vShow as Ae, Teleport as Rn } from "vue";
|
|
2
2
|
import lt from "axios";
|
|
3
3
|
import { createI18n as Bt, i18nTComponent as Kn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Dn } from "@kong/kongponents";
|
|
5
5
|
import { useRouter as jn } from "vue-router";
|
|
6
|
-
var Un = /* @__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))(Un || {}), qn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(qn || {}),
|
|
6
|
+
var Un = /* @__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))(Un || {}), qn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(qn || {}), ge = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(ge || {}), 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.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(V || {}), ne = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ne || {});
|
|
7
7
|
function Pn() {
|
|
8
8
|
return {
|
|
9
9
|
getAxiosInstance: (e = {}) => {
|
|
@@ -40,7 +40,7 @@ function Hn() {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Ue = "khcp-user-table-preferences", Vn = {
|
|
44
44
|
pageSize: 30,
|
|
45
45
|
sortColumnKey: void 0,
|
|
46
46
|
sortColumnOrder: void 0
|
|
@@ -55,14 +55,14 @@ function Yn() {
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
}, t = () => {
|
|
58
|
-
const n = e(localStorage.getItem(
|
|
58
|
+
const n = e(localStorage.getItem(Ue));
|
|
59
59
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
60
60
|
};
|
|
61
61
|
return {
|
|
62
62
|
setTablePreferences: (n, r) => {
|
|
63
63
|
try {
|
|
64
64
|
const i = t();
|
|
65
|
-
i.set(n, r), localStorage.setItem(
|
|
65
|
+
i.set(n, r), localStorage.setItem(Ue, JSON.stringify(Object.fromEntries(i.entries())));
|
|
66
66
|
} catch (i) {
|
|
67
67
|
console.error("useTablePreferences(setTablePreferences)", i);
|
|
68
68
|
}
|
|
@@ -72,11 +72,11 @@ function Yn() {
|
|
|
72
72
|
return (r == null ? void 0 : r.get(n)) || void 0 || Vn;
|
|
73
73
|
},
|
|
74
74
|
deleteAllTablePreferences: () => {
|
|
75
|
-
localStorage.removeItem(
|
|
75
|
+
localStorage.removeItem(Ue);
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Qe(e = {}) {
|
|
80
80
|
const { getAxiosInstance: t } = Pn();
|
|
81
81
|
return {
|
|
82
82
|
axiosInstance: t(e)
|
|
@@ -187,7 +187,7 @@ const zn = {
|
|
|
187
187
|
errors: er,
|
|
188
188
|
toggleModal: tr
|
|
189
189
|
};
|
|
190
|
-
function
|
|
190
|
+
function Xe() {
|
|
191
191
|
const e = Bt("en-us", nr);
|
|
192
192
|
return {
|
|
193
193
|
i18n: e,
|
|
@@ -244,14 +244,14 @@ function rr(e, t, n, r = {
|
|
|
244
244
|
searchKeys: ["id"]
|
|
245
245
|
}) {
|
|
246
246
|
n || (n = "100");
|
|
247
|
-
const { axiosInstance: i } =
|
|
247
|
+
const { axiosInstance: i } = Qe({
|
|
248
248
|
headers: e.requestHeaders
|
|
249
|
-
}), { i18n: { t: o } } =
|
|
250
|
-
await
|
|
251
|
-
}, 200), s = K(!1), c = K(""), d = K(""), u = K([]), h = K([]), f = K(void 0), x =
|
|
249
|
+
}), { i18n: { t: o } } = Xe(), { debounce: a } = Hn(), l = a(async (g) => {
|
|
250
|
+
await L(g);
|
|
251
|
+
}, 200), s = K(!1), c = K(""), d = K(""), u = K([]), h = K([]), f = K(void 0), x = S(t);
|
|
252
252
|
let m = `${e.apiBaseUrl}${x}`;
|
|
253
253
|
e.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
254
|
-
const { isValidUuid:
|
|
254
|
+
const { isValidUuid: A } = Mt(), M = async () => {
|
|
255
255
|
try {
|
|
256
256
|
s.value = !0;
|
|
257
257
|
const { data: g } = await i.get(`${m}?size=${n}`);
|
|
@@ -261,31 +261,31 @@ function rr(e, t, n, r = {
|
|
|
261
261
|
} finally {
|
|
262
262
|
s.value = !1;
|
|
263
263
|
}
|
|
264
|
-
},
|
|
264
|
+
}, b = K(""), L = async (g) => {
|
|
265
265
|
var C, y, j;
|
|
266
|
-
if (
|
|
267
|
-
if (
|
|
266
|
+
if (b.value !== g)
|
|
267
|
+
if (b.value = g || "", f.value === void 0)
|
|
268
268
|
try {
|
|
269
269
|
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
270
270
|
let F = m + "";
|
|
271
271
|
g && (F += `/${g}`);
|
|
272
|
-
const { data:
|
|
273
|
-
r.fetchedItemsKey in
|
|
272
|
+
const { data: I } = await i.get(`${F}?size=${n}`);
|
|
273
|
+
r.fetchedItemsKey in I ? u.value = I[r.fetchedItemsKey] : I != null && I.id ? u.value = [I] : u.value = [];
|
|
274
274
|
} else if (g) {
|
|
275
275
|
const F = [];
|
|
276
|
-
|
|
277
|
-
const { data:
|
|
278
|
-
return [
|
|
276
|
+
A(g) && r.searchKeys.includes("id") ? F.push((async () => {
|
|
277
|
+
const { data: T } = await i.get(`${m}/${g}`);
|
|
278
|
+
return [T[r.fetchedItemsKey] ?? T];
|
|
279
279
|
})()) : F.push(
|
|
280
|
-
...r.searchKeys.filter((
|
|
281
|
-
const { data:
|
|
282
|
-
return
|
|
280
|
+
...r.searchKeys.filter((T) => T !== "id").map(async (T) => {
|
|
281
|
+
const { data: E } = await i.get(`${m}?${T}=${g}`);
|
|
282
|
+
return E[r.fetchedItemsKey];
|
|
283
283
|
})
|
|
284
284
|
);
|
|
285
|
-
const
|
|
286
|
-
u.value = [], (C =
|
|
287
|
-
var
|
|
288
|
-
(
|
|
285
|
+
const I = await Promise.all(F), q = /* @__PURE__ */ new Set();
|
|
286
|
+
u.value = [], (C = I == null ? void 0 : I.forEach) == null || C.call(I, (T) => {
|
|
287
|
+
var E;
|
|
288
|
+
(E = T == null ? void 0 : T.forEach) == null || E.call(T, (D) => {
|
|
289
289
|
q.has(D.id) || (q.add(D.id), u.value.push(D));
|
|
290
290
|
});
|
|
291
291
|
});
|
|
@@ -299,12 +299,12 @@ function rr(e, t, n, r = {
|
|
|
299
299
|
else
|
|
300
300
|
s.value = !0, d.value = "", g ? (u.value = (j = f.value) == null ? void 0 : j.filter((F) => {
|
|
301
301
|
var q;
|
|
302
|
-
let
|
|
303
|
-
for (const
|
|
304
|
-
const
|
|
305
|
-
|
|
302
|
+
let I = !1;
|
|
303
|
+
for (const T of r.searchKeys) {
|
|
304
|
+
const E = typeof F[T] == "string" ? (q = F[T]) == null ? void 0 : q.toLowerCase() : F[T];
|
|
305
|
+
E != null && E.includes(g.toLowerCase()) && (I = !0);
|
|
306
306
|
}
|
|
307
|
-
return
|
|
307
|
+
return I;
|
|
308
308
|
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : u.value = f.value, s.value = !1;
|
|
309
309
|
};
|
|
310
310
|
return {
|
|
@@ -313,18 +313,18 @@ function rr(e, t, n, r = {
|
|
|
313
313
|
validationError: d,
|
|
314
314
|
results: u,
|
|
315
315
|
allRecords: f,
|
|
316
|
-
loadItems:
|
|
316
|
+
loadItems: M,
|
|
317
317
|
debouncedQueryChange: l
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
320
|
function ir(e, t) {
|
|
321
|
-
const n =
|
|
321
|
+
const n = S(t), r = _(
|
|
322
322
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
323
323
|
);
|
|
324
324
|
return r.value.search = "", (i) => `${r.value.href}/${i}`;
|
|
325
325
|
}
|
|
326
326
|
function or() {
|
|
327
|
-
const { i18n: { t: e } } =
|
|
327
|
+
const { i18n: { t: e } } = Xe();
|
|
328
328
|
return {
|
|
329
329
|
getMessageFromError: (n) => {
|
|
330
330
|
var r, i, o, a;
|
|
@@ -365,9 +365,9 @@ function ar(e) {
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
function Rt(e, t) {
|
|
368
|
-
const n = K(
|
|
368
|
+
const n = K(S(e)), r = K(S(t)), i = _(
|
|
369
369
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
370
|
-
), o =
|
|
370
|
+
), o = _(
|
|
371
371
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
372
372
|
);
|
|
373
373
|
return (a) => {
|
|
@@ -383,14 +383,14 @@ function Rt(e, t) {
|
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
385
|
function lr(e, t, n = "data") {
|
|
386
|
-
const r =
|
|
386
|
+
const r = S(t), { axiosInstance: i } = Qe({
|
|
387
387
|
headers: e.requestHeaders
|
|
388
388
|
}), o = Rt(e, r), a = K({
|
|
389
|
-
status:
|
|
389
|
+
status: ge.Idle
|
|
390
390
|
});
|
|
391
391
|
return { fetcher: async (s) => {
|
|
392
392
|
try {
|
|
393
|
-
a.value = { status:
|
|
393
|
+
a.value = { status: ge.Loading };
|
|
394
394
|
let c = o(s);
|
|
395
395
|
c.includes("filter[name]") && (c = `${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);
|
|
396
396
|
const { data: d } = await i.get(c), u = n && n.replace(/[^\w-_]/gi, "");
|
|
@@ -406,7 +406,7 @@ function lr(e, t, n = "data") {
|
|
|
406
406
|
} : null
|
|
407
407
|
};
|
|
408
408
|
return a.value = {
|
|
409
|
-
status:
|
|
409
|
+
status: ge.Idle,
|
|
410
410
|
response: f
|
|
411
411
|
}, f;
|
|
412
412
|
} catch (c) {
|
|
@@ -415,11 +415,11 @@ function lr(e, t, n = "data") {
|
|
|
415
415
|
total: 0
|
|
416
416
|
};
|
|
417
417
|
return s.query && c.response.status === 404 ? (a.value = {
|
|
418
|
-
status:
|
|
418
|
+
status: ge.NoResults,
|
|
419
419
|
response: d,
|
|
420
420
|
error: c
|
|
421
421
|
}, d) : (a.value = {
|
|
422
|
-
status:
|
|
422
|
+
status: ge.Error,
|
|
423
423
|
response: d,
|
|
424
424
|
error: c
|
|
425
425
|
}, d);
|
|
@@ -493,11 +493,11 @@ function mr(e) {
|
|
|
493
493
|
return _e(e, (o) => {
|
|
494
494
|
o && !r.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, r.value = !0);
|
|
495
495
|
}), {
|
|
496
|
-
isTruncated:
|
|
496
|
+
isTruncated: _(() => t.value < n.value)
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
499
|
const W = {
|
|
500
|
-
useAxios:
|
|
500
|
+
useAxios: Qe,
|
|
501
501
|
useDebouncedFilter: rr,
|
|
502
502
|
useDeleteUrlBuilder: ir,
|
|
503
503
|
useErrors: or,
|
|
@@ -506,7 +506,7 @@ const W = {
|
|
|
506
506
|
useFetchUrlBuilder: Rt,
|
|
507
507
|
useHelpers: Mt,
|
|
508
508
|
useStringHelpers: sr,
|
|
509
|
-
useI18n:
|
|
509
|
+
useI18n: Xe,
|
|
510
510
|
useGatewayFeatureSupported: hr,
|
|
511
511
|
useTruncationDetector: mr
|
|
512
512
|
}, gr = {
|
|
@@ -523,13 +523,13 @@ const W = {
|
|
|
523
523
|
for (const [r, i] of t)
|
|
524
524
|
n[r] = i;
|
|
525
525
|
return n;
|
|
526
|
-
}, Cr = (e) => (
|
|
526
|
+
}, Cr = (e) => (Oe("data-v-13f41aa3"), e = e(), $e(), e), _r = ["aria-hidden"], kr = {
|
|
527
527
|
key: 0,
|
|
528
528
|
"data-testid": "kui-icon-svg-title"
|
|
529
|
-
}, Ar = /* @__PURE__ */ Cr(() => /* @__PURE__ */
|
|
529
|
+
}, Ar = /* @__PURE__ */ Cr(() => /* @__PURE__ */ $("path", {
|
|
530
530
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
531
531
|
fill: "currentColor"
|
|
532
|
-
}, null, -1)), wr = /* @__PURE__ */
|
|
532
|
+
}, null, -1)), wr = /* @__PURE__ */ H({
|
|
533
533
|
__name: "CopyIcon",
|
|
534
534
|
props: {
|
|
535
535
|
/** The accessibility text provided to screen readers */
|
|
@@ -581,7 +581,7 @@ const W = {
|
|
|
581
581
|
}
|
|
582
582
|
},
|
|
583
583
|
setup(e) {
|
|
584
|
-
const t = e, n =
|
|
584
|
+
const t = e, n = _(() => {
|
|
585
585
|
if (typeof t.size == "number" && t.size > 0)
|
|
586
586
|
return `${t.size}px`;
|
|
587
587
|
if (typeof t.size == "string") {
|
|
@@ -590,7 +590,7 @@ const W = {
|
|
|
590
590
|
return `${o}px`;
|
|
591
591
|
}
|
|
592
592
|
return ht;
|
|
593
|
-
}), r =
|
|
593
|
+
}), r = _(() => ({
|
|
594
594
|
boxSizing: "border-box",
|
|
595
595
|
color: t.color,
|
|
596
596
|
display: t.display,
|
|
@@ -598,13 +598,13 @@ const W = {
|
|
|
598
598
|
lineHeight: "0",
|
|
599
599
|
width: n.value
|
|
600
600
|
}));
|
|
601
|
-
return (i, o) => (p(), R(
|
|
601
|
+
return (i, o) => (p(), R(le(e.as), {
|
|
602
602
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
603
603
|
class: "kui-icon copy-icon",
|
|
604
604
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
605
|
-
style:
|
|
605
|
+
style: Fe(r.value)
|
|
606
606
|
}, {
|
|
607
|
-
default:
|
|
607
|
+
default: v(() => [
|
|
608
608
|
(p(), w("svg", {
|
|
609
609
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
610
610
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
@@ -622,7 +622,7 @@ const W = {
|
|
|
622
622
|
_: 1
|
|
623
623
|
}, 8, ["aria-hidden", "style"]));
|
|
624
624
|
}
|
|
625
|
-
}), Sr = /* @__PURE__ */ xr(wr, [["__scopeId", "data-v-13f41aa3"]]), Ir = "16px",
|
|
625
|
+
}), Sr = /* @__PURE__ */ xr(wr, [["__scopeId", "data-v-13f41aa3"]]), Ir = "16px", Tr = { class: "kong-ui-copy-uuid" }, Er = ["onClick"], mt = 15, Fr = /* @__PURE__ */ H({
|
|
626
626
|
__name: "CopyUuid",
|
|
627
627
|
props: {
|
|
628
628
|
uuid: {
|
|
@@ -667,18 +667,18 @@ const W = {
|
|
|
667
667
|
emits: ["success", "error"],
|
|
668
668
|
setup(e, { emit: t }) {
|
|
669
669
|
const { t: n } = Bt("en-us", vr), r = e, i = t, o = r.notify || $t(br, () => {
|
|
670
|
-
}), a =
|
|
670
|
+
}), a = _(() => r.idTooltip ? {
|
|
671
671
|
label: r.idTooltip,
|
|
672
672
|
positionFixed: !0,
|
|
673
673
|
placement: "bottomStart"
|
|
674
674
|
} : {
|
|
675
675
|
title: r.uuid
|
|
676
|
-
}), l =
|
|
676
|
+
}), l = _(() => !!(r.tooltip && r.successTooltip)), s = K(r.tooltip), c = _(() => r.tooltip ? {
|
|
677
677
|
label: s.value,
|
|
678
678
|
positionFixed: !0,
|
|
679
679
|
maxWidth: "500px",
|
|
680
680
|
placement: "bottomStart"
|
|
681
|
-
} : {}), d =
|
|
681
|
+
} : {}), d = _(() => {
|
|
682
682
|
var f;
|
|
683
683
|
return r.format === "redacted" ? "*****" : r.format === "deleted" ? `*${(f = r.uuid) == null ? void 0 : f.substring(0, 5)}` : r.uuid;
|
|
684
684
|
}), u = (f) => {
|
|
@@ -694,19 +694,19 @@ const W = {
|
|
|
694
694
|
}), l.value ? u(n("message.fail")) : i("error", r.uuid);
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
697
|
-
const
|
|
697
|
+
const A = ((x = r.uuid) == null ? void 0 : x.length) > mt, M = r.format === "hidden" || r.format === "redacted" ? n("message.success.prefix") : `"${((m = r.uuid) == null ? void 0 : m.substring(0, mt)) + (A ? "..." : "")}"`;
|
|
698
698
|
typeof o == "function" && o({
|
|
699
699
|
type: "success",
|
|
700
|
-
message: `${
|
|
700
|
+
message: `${M}${n("message.success.content")}`
|
|
701
701
|
}), l.value ? u(r.successTooltip) : i("success", r.uuid);
|
|
702
702
|
};
|
|
703
703
|
return (f, x) => {
|
|
704
|
-
const m =
|
|
705
|
-
return p(), w("div",
|
|
706
|
-
e.format !== "hidden" ? (p(), R(
|
|
707
|
-
default:
|
|
708
|
-
|
|
709
|
-
class:
|
|
704
|
+
const m = B("KClipboardProvider");
|
|
705
|
+
return p(), w("div", Tr, [
|
|
706
|
+
e.format !== "hidden" ? (p(), R(le(e.idTooltip ? "KTooltip" : "div"), Ve({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
707
|
+
default: v(() => [
|
|
708
|
+
$("div", {
|
|
709
|
+
class: he([
|
|
710
710
|
"uuid-container",
|
|
711
711
|
e.truncated ? "truncated-uuid" : null,
|
|
712
712
|
e.useMono ? "mono" : null
|
|
@@ -715,24 +715,24 @@ const W = {
|
|
|
715
715
|
]),
|
|
716
716
|
_: 1
|
|
717
717
|
}, 16)) : U("", !0),
|
|
718
|
-
(p(), R(
|
|
719
|
-
default:
|
|
720
|
-
|
|
721
|
-
default:
|
|
722
|
-
|
|
718
|
+
(p(), R(le(e.tooltip ? "KTooltip" : "div"), Ve(c.value, { class: "uuid-icon-wrapper" }), {
|
|
719
|
+
default: v(() => [
|
|
720
|
+
N(m, null, {
|
|
721
|
+
default: v(({ copyToClipboard: A }) => [
|
|
722
|
+
$("span", {
|
|
723
723
|
"data-testid": "copy-to-clipboard",
|
|
724
724
|
role: "button",
|
|
725
725
|
tabindex: "0",
|
|
726
|
-
onClick:
|
|
726
|
+
onClick: Le((M) => h(A), ["stop"])
|
|
727
727
|
}, [
|
|
728
|
-
|
|
728
|
+
N(S(Sr), {
|
|
729
729
|
class: "uuid-icon",
|
|
730
730
|
color: e.iconColor,
|
|
731
731
|
decorative: !!e.tooltip,
|
|
732
|
-
size:
|
|
733
|
-
title:
|
|
732
|
+
size: S(Ir),
|
|
733
|
+
title: S(n)("iconTitle")
|
|
734
734
|
}, null, 8, ["color", "decorative", "size", "title"])
|
|
735
|
-
], 8,
|
|
735
|
+
], 8, Er)
|
|
736
736
|
]),
|
|
737
737
|
_: 1
|
|
738
738
|
})
|
|
@@ -750,7 +750,7 @@ const W = {
|
|
|
750
750
|
}, jt = /* @__PURE__ */ Or(Fr, [["__scopeId", "data-v-0c07874b"]]), $r = {
|
|
751
751
|
key: 0,
|
|
752
752
|
class: "config-card-fieldset-title"
|
|
753
|
-
}, Lr = /* @__PURE__ */
|
|
753
|
+
}, Lr = /* @__PURE__ */ H({
|
|
754
754
|
__name: "JsonCardItem",
|
|
755
755
|
props: {
|
|
756
756
|
item: {
|
|
@@ -767,25 +767,25 @@ const W = {
|
|
|
767
767
|
}
|
|
768
768
|
},
|
|
769
769
|
setup(e) {
|
|
770
|
-
const t = e, { i18n: { t: n } } = W.useI18n(), { convertKeyToTitle: r } = W.useStringHelpers(), i =
|
|
770
|
+
const t = e, { i18n: { t: n } } = W.useI18n(), { convertKeyToTitle: r } = W.useStringHelpers(), i = _(() => t.item.key ?? "json-array-item"), o = _(() => t.item.value ?? t.item), a = _(() => {
|
|
771
771
|
const s = JSON.parse(JSON.stringify(o.value));
|
|
772
772
|
return t.isArrayItem && delete s.name, s;
|
|
773
|
-
}), l =
|
|
773
|
+
}), l = _(() => {
|
|
774
774
|
var s;
|
|
775
775
|
return t.isArrayItem ? (s = o.value) != null && s.name ? r(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
776
776
|
});
|
|
777
|
-
return (s, c) => (p(), R(
|
|
778
|
-
class:
|
|
777
|
+
return (s, c) => (p(), R(le(e.isArrayItem ? "fieldset" : "div"), {
|
|
778
|
+
class: he(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
779
779
|
}, {
|
|
780
|
-
default:
|
|
780
|
+
default: v(() => [
|
|
781
781
|
e.isArrayItem ? (p(), w("legend", $r, [
|
|
782
|
-
|
|
782
|
+
$("b", null, O(l.value), 1)
|
|
783
783
|
])) : U("", !0),
|
|
784
784
|
(p(!0), w(ae, null, ie(Object.keys(a.value), (d, u) => (p(), R(qt, {
|
|
785
785
|
key: `${i.value}-property-${u}`,
|
|
786
786
|
item: {
|
|
787
787
|
key: d,
|
|
788
|
-
label:
|
|
788
|
+
label: S(r)(d),
|
|
789
789
|
value: a.value[d]
|
|
790
790
|
}
|
|
791
791
|
}, null, 8, ["item"]))), 128))
|
|
@@ -798,7 +798,7 @@ const W = {
|
|
|
798
798
|
for (const [r, i] of t)
|
|
799
799
|
n[r] = i;
|
|
800
800
|
return n;
|
|
801
|
-
}, Ut = /* @__PURE__ */ re(Lr, [["__scopeId", "data-v-68ca83ec"]]), Nr = /* @__PURE__ */
|
|
801
|
+
}, Ut = /* @__PURE__ */ re(Lr, [["__scopeId", "data-v-68ca83ec"]]), Nr = /* @__PURE__ */ H({
|
|
802
802
|
__name: "InternalLinkItem",
|
|
803
803
|
props: {
|
|
804
804
|
item: {
|
|
@@ -810,22 +810,22 @@ const W = {
|
|
|
810
810
|
setup(e) {
|
|
811
811
|
const { i18n: { t } } = W.useI18n();
|
|
812
812
|
return (n, r) => {
|
|
813
|
-
const i =
|
|
813
|
+
const i = B("KButton");
|
|
814
814
|
return p(), w("div", null, [
|
|
815
|
-
|
|
815
|
+
N(i, {
|
|
816
816
|
appearance: "tertiary",
|
|
817
817
|
class: "navigation-button",
|
|
818
818
|
onClick: r[0] || (r[0] = (o) => n.$emit("navigation-click", e.item))
|
|
819
819
|
}, {
|
|
820
|
-
default:
|
|
821
|
-
z(O(e.item.value ||
|
|
820
|
+
default: v(() => [
|
|
821
|
+
z(O(e.item.value || S(t)("baseConfigCard.commonFields.link")), 1)
|
|
822
822
|
]),
|
|
823
823
|
_: 1
|
|
824
824
|
})
|
|
825
825
|
]);
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
|
-
}), Br = /* @__PURE__ */ re(Nr, [["__scopeId", "data-v-c96811e5"]]), Mr = /* @__PURE__ */
|
|
828
|
+
}), Br = /* @__PURE__ */ re(Nr, [["__scopeId", "data-v-c96811e5"]]), Mr = /* @__PURE__ */ H({
|
|
829
829
|
__name: "StatusBadge",
|
|
830
830
|
props: {
|
|
831
831
|
status: {
|
|
@@ -836,12 +836,12 @@ const W = {
|
|
|
836
836
|
setup(e) {
|
|
837
837
|
const { i18n: { t } } = W.useI18n();
|
|
838
838
|
return (n, r) => {
|
|
839
|
-
const i =
|
|
839
|
+
const i = B("KBadge");
|
|
840
840
|
return p(), R(i, {
|
|
841
841
|
appearance: e.status ? "success" : "neutral"
|
|
842
842
|
}, {
|
|
843
|
-
default:
|
|
844
|
-
z(O(e.status ?
|
|
843
|
+
default: v(() => [
|
|
844
|
+
z(O(e.status ? S(t)("baseConfigCard.statusBadge.enabledLabel") : S(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
845
845
|
]),
|
|
846
846
|
_: 1
|
|
847
847
|
}, 8, ["appearance"]);
|
|
@@ -850,7 +850,7 @@ const W = {
|
|
|
850
850
|
}), Rr = "#0044f4", Kr = "#e0e4ea", Dr = "#3a3f51", jr = "#0044f4", Ur = "1px", qr = "16px", Pr = "20px", Hr = { class: "config-card-details-row" }, Vr = ["data-testid"], Yr = ["data-testid"], zr = ["data-testid"], Wr = ["data-testid"], Jr = { key: 1 }, Gr = ["data-testid"], Zr = ["data-testid"], Qr = ["data-testid"], Xr = ["data-testid"], ei = {
|
|
851
851
|
name: "ConfigCardItem",
|
|
852
852
|
components: { CopyUuid: jt, JsonCardItem: Ut, StatusBadge: Mr, InternalLinkItem: Br }
|
|
853
|
-
}, ti = /* @__PURE__ */
|
|
853
|
+
}, ti = /* @__PURE__ */ H({
|
|
854
854
|
...ei,
|
|
855
855
|
props: {
|
|
856
856
|
item: {
|
|
@@ -871,14 +871,14 @@ const W = {
|
|
|
871
871
|
emits: ["navigation-click"],
|
|
872
872
|
setup(e, { emit: t }) {
|
|
873
873
|
Lt((x) => ({
|
|
874
|
-
"5ae2770e": d.value ? "none" : `solid ${
|
|
874
|
+
"5ae2770e": d.value ? "none" : `solid ${S(Ur)} ${S(Kr)}`,
|
|
875
875
|
"4db3977e": c.value && l.value ? "block" : "flex",
|
|
876
876
|
"1a7c5e02": c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
877
877
|
"1a77d24c": c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
878
878
|
}));
|
|
879
|
-
const n = e, r = t, i =
|
|
879
|
+
const n = e, r = t, i = Ze(), { i18n: { t: o, formatUnixTimeStamp: a } } = W.useI18n(), l = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = _(() => !!(n.item.tooltip || i["label-tooltip"])), c = _(() => n.item.type === V.Json || n.item.type === V.JsonArray), d = _(() => n.item.type === V.JsonArray), u = _(() => {
|
|
880
880
|
switch (n.item.type) {
|
|
881
|
-
case
|
|
881
|
+
case V.ID:
|
|
882
882
|
return {
|
|
883
883
|
tag: "CopyUuid",
|
|
884
884
|
attrs: {
|
|
@@ -891,7 +891,7 @@ const W = {
|
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
|
-
case
|
|
894
|
+
case V.IdArray:
|
|
895
895
|
return {
|
|
896
896
|
tag: "div",
|
|
897
897
|
additionalComponent: "CopyUuid",
|
|
@@ -903,7 +903,7 @@ const W = {
|
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
905
|
};
|
|
906
|
-
case
|
|
906
|
+
case V.Redacted:
|
|
907
907
|
return {
|
|
908
908
|
tag: "CopyUuid",
|
|
909
909
|
attrs: {
|
|
@@ -917,7 +917,7 @@ const W = {
|
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
919
|
};
|
|
920
|
-
case
|
|
920
|
+
case V.RedactedArray:
|
|
921
921
|
return {
|
|
922
922
|
tag: "div",
|
|
923
923
|
additionalComponent: "CopyUuid",
|
|
@@ -930,7 +930,7 @@ const W = {
|
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
};
|
|
933
|
-
case
|
|
933
|
+
case V.Date:
|
|
934
934
|
return {
|
|
935
935
|
tag: "div",
|
|
936
936
|
attrs: {
|
|
@@ -938,7 +938,7 @@ const W = {
|
|
|
938
938
|
},
|
|
939
939
|
text: a(n.item.value)
|
|
940
940
|
};
|
|
941
|
-
case
|
|
941
|
+
case V.BadgeStatus:
|
|
942
942
|
return {
|
|
943
943
|
tag: "StatusBadge",
|
|
944
944
|
attrs: {
|
|
@@ -946,17 +946,17 @@ const W = {
|
|
|
946
946
|
status: n.item.value
|
|
947
947
|
}
|
|
948
948
|
};
|
|
949
|
-
case
|
|
949
|
+
case V.BadgeTag:
|
|
950
950
|
return {
|
|
951
951
|
tag: "div",
|
|
952
952
|
additionalComponent: "KBadge"
|
|
953
953
|
};
|
|
954
|
-
case
|
|
954
|
+
case V.BadgeMethod:
|
|
955
955
|
return {
|
|
956
956
|
tag: "div",
|
|
957
957
|
additionalComponent: "KMethodBadge"
|
|
958
958
|
};
|
|
959
|
-
case
|
|
959
|
+
case V.LinkInternal:
|
|
960
960
|
return {
|
|
961
961
|
tag: "InternalLinkItem",
|
|
962
962
|
attrs: {
|
|
@@ -967,7 +967,7 @@ const W = {
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
|
-
case
|
|
970
|
+
case V.LinkExternal:
|
|
971
971
|
return {
|
|
972
972
|
tag: "KExternalLink",
|
|
973
973
|
attrs: {
|
|
@@ -976,7 +976,7 @@ const W = {
|
|
|
976
976
|
},
|
|
977
977
|
text: n.item.value
|
|
978
978
|
};
|
|
979
|
-
case
|
|
979
|
+
case V.Json:
|
|
980
980
|
return {
|
|
981
981
|
tag: "JsonCardItem",
|
|
982
982
|
attrs: {
|
|
@@ -984,7 +984,7 @@ const W = {
|
|
|
984
984
|
item: n.item
|
|
985
985
|
}
|
|
986
986
|
};
|
|
987
|
-
case
|
|
987
|
+
case V.JsonArray:
|
|
988
988
|
return {
|
|
989
989
|
tag: "div",
|
|
990
990
|
additionalComponent: "JsonCardItem",
|
|
@@ -1004,23 +1004,23 @@ const W = {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
}), h = K(), { isTruncated: f } = W.useTruncationDetector(h);
|
|
1006
1006
|
return (x, m) => {
|
|
1007
|
-
const
|
|
1007
|
+
const A = B("KLabel"), M = B("KBadge"), b = B("KTooltip");
|
|
1008
1008
|
return p(), w("div", Hr, [
|
|
1009
|
-
|
|
1009
|
+
$("div", {
|
|
1010
1010
|
class: "config-card-details-label",
|
|
1011
1011
|
"data-testid": `${e.item.key}-label`
|
|
1012
1012
|
}, [
|
|
1013
1013
|
Y(x.$slots, "label", { item: e.item }, () => [
|
|
1014
|
-
|
|
1015
|
-
default:
|
|
1014
|
+
N(A, { "tooltip-attributes": { maxWidth: "500px" } }, xe({
|
|
1015
|
+
default: v(() => [
|
|
1016
1016
|
z(O(e.item.label) + " ", 1)
|
|
1017
1017
|
]),
|
|
1018
1018
|
_: 2
|
|
1019
1019
|
}, [
|
|
1020
1020
|
s.value ? {
|
|
1021
1021
|
name: "tooltip",
|
|
1022
|
-
fn:
|
|
1023
|
-
|
|
1022
|
+
fn: v(() => [
|
|
1023
|
+
$("div", {
|
|
1024
1024
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1025
1025
|
}, [
|
|
1026
1026
|
Y(x.$slots, "label-tooltip", {}, () => [
|
|
@@ -1033,7 +1033,7 @@ const W = {
|
|
|
1033
1033
|
]), 1024)
|
|
1034
1034
|
], !0)
|
|
1035
1035
|
], 8, Vr),
|
|
1036
|
-
|
|
1036
|
+
$("div", {
|
|
1037
1037
|
class: "config-card-details-value",
|
|
1038
1038
|
"data-testid": `${e.item.key}-property-value`
|
|
1039
1039
|
}, [
|
|
@@ -1041,21 +1041,21 @@ const W = {
|
|
|
1041
1041
|
rowValue: e.item.value
|
|
1042
1042
|
}, () => [
|
|
1043
1043
|
l.value ? (p(), w("div", Jr, [
|
|
1044
|
-
(p(), R(
|
|
1045
|
-
default:
|
|
1044
|
+
(p(), R(le(u.value.tag), Ln(Nn(u.value.attrs)), {
|
|
1045
|
+
default: v(() => [
|
|
1046
1046
|
u.value.additionalComponent === "KBadge" ? (p(), w("div", {
|
|
1047
1047
|
key: 0,
|
|
1048
1048
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1049
1049
|
}, [
|
|
1050
|
-
(p(!0), w(ae, null, ie(e.item.value, (
|
|
1050
|
+
(p(!0), w(ae, null, ie(e.item.value, (L, g) => (p(), R(M, {
|
|
1051
1051
|
key: `${e.item.key}-badge-tag-${g}`,
|
|
1052
1052
|
class: "config-badge",
|
|
1053
1053
|
"data-testid": `${e.item.key}-badge-tag-${g}`,
|
|
1054
|
-
tooltip:
|
|
1054
|
+
tooltip: L,
|
|
1055
1055
|
"truncation-tooltip": ""
|
|
1056
1056
|
}, {
|
|
1057
|
-
default:
|
|
1058
|
-
z(O(
|
|
1057
|
+
default: v(() => [
|
|
1058
|
+
z(O(L), 1)
|
|
1059
1059
|
]),
|
|
1060
1060
|
_: 2
|
|
1061
1061
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -1065,24 +1065,24 @@ const W = {
|
|
|
1065
1065
|
class: "copy-uuid-array",
|
|
1066
1066
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1067
1067
|
}, [
|
|
1068
|
-
(p(!0), w(ae, null, ie(e.item.value, (
|
|
1068
|
+
(p(!0), w(ae, null, ie(e.item.value, (L, g) => (p(), R(S(jt), Ve(u.value.childAttrs, {
|
|
1069
1069
|
key: `${e.item.key}-copy-uuid-${g}`,
|
|
1070
1070
|
"data-testid": `${e.item.key}-copy-uuid-${g}`,
|
|
1071
|
-
uuid:
|
|
1071
|
+
uuid: L
|
|
1072
1072
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1073
1073
|
], 8, Zr)) : u.value.additionalComponent === "KMethodBadge" ? (p(), w("div", {
|
|
1074
1074
|
key: 2,
|
|
1075
1075
|
class: "method-badge-array",
|
|
1076
1076
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1077
1077
|
}, [
|
|
1078
|
-
(p(!0), w(ae, null, ie(e.item.value, (
|
|
1078
|
+
(p(!0), w(ae, null, ie(e.item.value, (L, g) => (p(), R(M, {
|
|
1079
1079
|
key: `${e.item.key}-badge-method-${g}`,
|
|
1080
|
-
appearance: Object.values(
|
|
1080
|
+
appearance: Object.values(S(Dn)).includes(L.toLowerCase()) ? L.toLowerCase() : "custom",
|
|
1081
1081
|
class: "config-badge",
|
|
1082
1082
|
"data-testid": `${e.item.key}-badge-method-${g}`
|
|
1083
1083
|
}, {
|
|
1084
|
-
default:
|
|
1085
|
-
z(O(
|
|
1084
|
+
default: v(() => [
|
|
1085
|
+
z(O(L), 1)
|
|
1086
1086
|
]),
|
|
1087
1087
|
_: 2
|
|
1088
1088
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
@@ -1091,21 +1091,21 @@ const W = {
|
|
|
1091
1091
|
key: 3,
|
|
1092
1092
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1093
1093
|
}, [
|
|
1094
|
-
(p(!0), w(ae, null, ie(e.item.value, (
|
|
1094
|
+
(p(!0), w(ae, null, ie(e.item.value, (L, g) => (p(), R(Ut, {
|
|
1095
1095
|
key: `json-array-item-${g}`,
|
|
1096
1096
|
index: g,
|
|
1097
1097
|
"is-array-item": "",
|
|
1098
|
-
item:
|
|
1098
|
+
item: L
|
|
1099
1099
|
}, null, 8, ["index", "item"]))), 128))
|
|
1100
|
-
], 8, Xr)) : (p(), R(
|
|
1100
|
+
], 8, Xr)) : (p(), R(b, {
|
|
1101
1101
|
key: 4,
|
|
1102
|
-
text:
|
|
1102
|
+
text: S(f) ? e.item.value : ""
|
|
1103
1103
|
}, {
|
|
1104
|
-
default:
|
|
1105
|
-
|
|
1104
|
+
default: v(() => [
|
|
1105
|
+
$("span", {
|
|
1106
1106
|
ref_key: "textContent",
|
|
1107
1107
|
ref: h,
|
|
1108
|
-
class:
|
|
1108
|
+
class: he(["attrs-data-text", { truncated: e.truncated }])
|
|
1109
1109
|
}, O(u.value.text), 3)
|
|
1110
1110
|
]),
|
|
1111
1111
|
_: 1
|
|
@@ -1125,7 +1125,7 @@ const W = {
|
|
|
1125
1125
|
}), qt = /* @__PURE__ */ re(ti, [["__scopeId", "data-v-f65fc52c"]]), ni = { class: "json-config" }, ri = {
|
|
1126
1126
|
key: 0,
|
|
1127
1127
|
class: "json-endpoint"
|
|
1128
|
-
}, Pt = /* @__PURE__ */
|
|
1128
|
+
}, Pt = /* @__PURE__ */ H({
|
|
1129
1129
|
__name: "JsonCodeBlock",
|
|
1130
1130
|
props: {
|
|
1131
1131
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1156,7 +1156,7 @@ const W = {
|
|
|
1156
1156
|
Lt((i) => ({
|
|
1157
1157
|
"2d178975": `${r.value}ch`
|
|
1158
1158
|
}));
|
|
1159
|
-
const t = e, n =
|
|
1159
|
+
const t = e, n = _(() => t.jsonRecord), r = _(() => {
|
|
1160
1160
|
var a;
|
|
1161
1161
|
if (!t.fetcherUrl)
|
|
1162
1162
|
return 0;
|
|
@@ -1165,18 +1165,18 @@ const W = {
|
|
|
1165
1165
|
});
|
|
1166
1166
|
return (i, o) => {
|
|
1167
1167
|
var s;
|
|
1168
|
-
const a =
|
|
1168
|
+
const a = B("KBadge"), l = B("KCodeBlock");
|
|
1169
1169
|
return p(), w("div", ni, [
|
|
1170
1170
|
t.fetcherUrl && ((s = t.config) != null && s.jsonYamlFormsEnabled) ? (p(), w("div", ri, [
|
|
1171
|
-
|
|
1171
|
+
N(a, {
|
|
1172
1172
|
appearance: t.requestMethod
|
|
1173
1173
|
}, {
|
|
1174
|
-
default:
|
|
1174
|
+
default: v(() => [
|
|
1175
1175
|
z(O(t.requestMethod), 1)
|
|
1176
1176
|
]),
|
|
1177
1177
|
_: 1
|
|
1178
1178
|
}, 8, ["appearance"]),
|
|
1179
|
-
|
|
1179
|
+
N(l, {
|
|
1180
1180
|
id: "json-endpoint-codeblock",
|
|
1181
1181
|
code: t.fetcherUrl,
|
|
1182
1182
|
"is-single-line": "",
|
|
@@ -1187,7 +1187,7 @@ const W = {
|
|
|
1187
1187
|
t.jsonRecord ? (p(), R(l, {
|
|
1188
1188
|
key: 1,
|
|
1189
1189
|
id: "json-codeblock",
|
|
1190
|
-
class:
|
|
1190
|
+
class: he({ "json-content": t.fetcherUrl }),
|
|
1191
1191
|
code: JSON.stringify(n.value, null, 2),
|
|
1192
1192
|
language: "json",
|
|
1193
1193
|
theme: "dark"
|
|
@@ -1245,7 +1245,7 @@ Se.prototype.toString = function(t) {
|
|
|
1245
1245
|
return this.name + ": " + Vt(this, t);
|
|
1246
1246
|
};
|
|
1247
1247
|
var ee = Se;
|
|
1248
|
-
function
|
|
1248
|
+
function qe(e, t, n, r, i) {
|
|
1249
1249
|
var o = "", a = "", l = Math.floor(i / 2) - 1;
|
|
1250
1250
|
return r - t > l && (o = " ... ", t = r - l + o.length), n - r > l && (a = " ...", n = r + l - a.length), {
|
|
1251
1251
|
str: o + e.slice(t, n).replace(/\t/g, "→") + a,
|
|
@@ -1253,7 +1253,7 @@ function Ue(e, t, n, r, i) {
|
|
|
1253
1253
|
// relative position
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Pe(e, t) {
|
|
1257
1257
|
return Z.repeat(" ", t - e.length) + e;
|
|
1258
1258
|
}
|
|
1259
1259
|
function mi(e, t) {
|
|
@@ -1265,24 +1265,24 @@ function mi(e, t) {
|
|
|
1265
1265
|
a < 0 && (a = r.length - 1);
|
|
1266
1266
|
var l = "", s, c, d = Math.min(e.line + t.linesAfter, i.length).toString().length, u = t.maxLength - (t.indent + d + 3);
|
|
1267
1267
|
for (s = 1; s <= t.linesBefore && !(a - s < 0); s++)
|
|
1268
|
-
c =
|
|
1268
|
+
c = qe(
|
|
1269
1269
|
e.buffer,
|
|
1270
1270
|
r[a - s],
|
|
1271
1271
|
i[a - s],
|
|
1272
1272
|
e.position - (r[a] - r[a - s]),
|
|
1273
1273
|
u
|
|
1274
|
-
), l = Z.repeat(" ", t.indent) +
|
|
1274
|
+
), l = Z.repeat(" ", t.indent) + Pe((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1275
1275
|
` + l;
|
|
1276
|
-
for (c =
|
|
1276
|
+
for (c = qe(e.buffer, r[a], i[a], e.position, u), l += Z.repeat(" ", t.indent) + Pe((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1277
1277
|
`, l += Z.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1278
1278
|
`, s = 1; s <= t.linesAfter && !(a + s >= i.length); s++)
|
|
1279
|
-
c =
|
|
1279
|
+
c = qe(
|
|
1280
1280
|
e.buffer,
|
|
1281
1281
|
r[a + s],
|
|
1282
1282
|
i[a + s],
|
|
1283
1283
|
e.position - (r[a] - r[a + s]),
|
|
1284
1284
|
u
|
|
1285
|
-
), l += Z.repeat(" ", t.indent) +
|
|
1285
|
+
), l += Z.repeat(" ", t.indent) + Pe((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1286
1286
|
`;
|
|
1287
1287
|
return l.replace(/\n$/, "");
|
|
1288
1288
|
}
|
|
@@ -1351,10 +1351,10 @@ function Ci() {
|
|
|
1351
1351
|
arguments[t].forEach(r);
|
|
1352
1352
|
return e;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Ye(e) {
|
|
1355
1355
|
return this.extend(e);
|
|
1356
1356
|
}
|
|
1357
|
-
|
|
1357
|
+
Ye.prototype.extend = function(t) {
|
|
1358
1358
|
var n = [], r = [];
|
|
1359
1359
|
if (t instanceof Q)
|
|
1360
1360
|
r.push(t);
|
|
@@ -1375,10 +1375,10 @@ Ve.prototype.extend = function(t) {
|
|
|
1375
1375
|
if (!(o instanceof Q))
|
|
1376
1376
|
throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1377
1377
|
});
|
|
1378
|
-
var i = Object.create(
|
|
1378
|
+
var i = Object.create(Ye.prototype);
|
|
1379
1379
|
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = gt(i, "implicit"), i.compiledExplicit = gt(i, "explicit"), i.compiledTypeMap = Ci(i.compiledImplicit, i.compiledExplicit), i;
|
|
1380
1380
|
};
|
|
1381
|
-
var Yt =
|
|
1381
|
+
var Yt = Ye, zt = new Q("tag:yaml.org,2002:str", {
|
|
1382
1382
|
kind: "scalar",
|
|
1383
1383
|
construct: function(e) {
|
|
1384
1384
|
return e !== null ? e : "";
|
|
@@ -1466,10 +1466,10 @@ var Qt = new Q("tag:yaml.org,2002:bool", {
|
|
|
1466
1466
|
},
|
|
1467
1467
|
defaultStyle: "lowercase"
|
|
1468
1468
|
});
|
|
1469
|
-
function
|
|
1469
|
+
function Ti(e) {
|
|
1470
1470
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function Ei(e) {
|
|
1473
1473
|
return 48 <= e && e <= 55;
|
|
1474
1474
|
}
|
|
1475
1475
|
function Fi(e) {
|
|
@@ -1496,7 +1496,7 @@ function Oi(e) {
|
|
|
1496
1496
|
if (i === "x") {
|
|
1497
1497
|
for (n++; n < t; n++)
|
|
1498
1498
|
if (i = e[n], i !== "_") {
|
|
1499
|
-
if (!
|
|
1499
|
+
if (!Ti(e.charCodeAt(n)))
|
|
1500
1500
|
return !1;
|
|
1501
1501
|
r = !0;
|
|
1502
1502
|
}
|
|
@@ -1505,7 +1505,7 @@ function Oi(e) {
|
|
|
1505
1505
|
if (i === "o") {
|
|
1506
1506
|
for (n++; n < t; n++)
|
|
1507
1507
|
if (i = e[n], i !== "_") {
|
|
1508
|
-
if (!
|
|
1508
|
+
if (!Ei(e.charCodeAt(n)))
|
|
1509
1509
|
return !1;
|
|
1510
1510
|
r = !0;
|
|
1511
1511
|
}
|
|
@@ -1667,12 +1667,12 @@ function Pi(e) {
|
|
|
1667
1667
|
var ln = new Q("tag:yaml.org,2002:merge", {
|
|
1668
1668
|
kind: "scalar",
|
|
1669
1669
|
resolve: Pi
|
|
1670
|
-
}),
|
|
1670
|
+
}), et = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1671
1671
|
\r`;
|
|
1672
1672
|
function Hi(e) {
|
|
1673
1673
|
if (e === null)
|
|
1674
1674
|
return !1;
|
|
1675
|
-
var t, n, r = 0, i = e.length, o =
|
|
1675
|
+
var t, n, r = 0, i = e.length, o = et;
|
|
1676
1676
|
for (n = 0; n < i; n++)
|
|
1677
1677
|
if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1678
1678
|
if (t < 0)
|
|
@@ -1682,13 +1682,13 @@ function Hi(e) {
|
|
|
1682
1682
|
return r % 8 === 0;
|
|
1683
1683
|
}
|
|
1684
1684
|
function Vi(e) {
|
|
1685
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, o =
|
|
1685
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, o = et, a = 0, l = [];
|
|
1686
1686
|
for (t = 0; t < i; t++)
|
|
1687
1687
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(r.charAt(t));
|
|
1688
1688
|
return n = i % 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);
|
|
1689
1689
|
}
|
|
1690
1690
|
function Yi(e) {
|
|
1691
|
-
var t = "", n = 0, r, i, o = e.length, a =
|
|
1691
|
+
var t = "", n = 0, r, i, o = e.length, a = et;
|
|
1692
1692
|
for (r = 0; r < o; r++)
|
|
1693
1693
|
r % 3 === 0 && r && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[r];
|
|
1694
1694
|
return i = o % 3, i === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : i === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : i === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
@@ -1773,7 +1773,7 @@ var dn = new Q("tag:yaml.org,2002:set", {
|
|
|
1773
1773
|
kind: "mapping",
|
|
1774
1774
|
resolve: no,
|
|
1775
1775
|
construct: ro
|
|
1776
|
-
}),
|
|
1776
|
+
}), tt = nn.extend({
|
|
1777
1777
|
implicit: [
|
|
1778
1778
|
an,
|
|
1779
1779
|
ln
|
|
@@ -1784,20 +1784,20 @@ var dn = new Q("tag:yaml.org,2002:set", {
|
|
|
1784
1784
|
un,
|
|
1785
1785
|
dn
|
|
1786
1786
|
]
|
|
1787
|
-
}), ue = Object.prototype.hasOwnProperty,
|
|
1787
|
+
}), ue = Object.prototype.hasOwnProperty, Ne = 1, fn = 2, pn = 3, Be = 4, He = 1, io = 2, yt = 3, oo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ao = /[\x85\u2028\u2029]/, lo = /[,\[\]\{\}]/, hn = /^(?:!|!!|![a-z\-]+!)$/i, mn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1788
1788
|
function vt(e) {
|
|
1789
1789
|
return Object.prototype.toString.call(e);
|
|
1790
1790
|
}
|
|
1791
1791
|
function oe(e) {
|
|
1792
1792
|
return e === 10 || e === 13;
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1794
|
+
function pe(e) {
|
|
1795
1795
|
return e === 9 || e === 32;
|
|
1796
1796
|
}
|
|
1797
1797
|
function te(e) {
|
|
1798
1798
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function ve(e) {
|
|
1801
1801
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1802
1802
|
}
|
|
1803
1803
|
function so(e) {
|
|
@@ -1821,10 +1821,10 @@ function fo(e) {
|
|
|
1821
1821
|
);
|
|
1822
1822
|
}
|
|
1823
1823
|
var gn = new Array(256), yn = new Array(256);
|
|
1824
|
-
for (var
|
|
1825
|
-
gn[
|
|
1824
|
+
for (var me = 0; me < 256; me++)
|
|
1825
|
+
gn[me] = bt(me) ? 1 : 0, yn[me] = bt(me);
|
|
1826
1826
|
function po(e, t) {
|
|
1827
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1827
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || tt, 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 = [];
|
|
1828
1828
|
}
|
|
1829
1829
|
function vn(e, t) {
|
|
1830
1830
|
var n = {
|
|
@@ -1837,49 +1837,49 @@ function vn(e, t) {
|
|
|
1837
1837
|
};
|
|
1838
1838
|
return n.snippet = gi(n), new ee(t, n);
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function k(e, t) {
|
|
1841
1841
|
throw vn(e, t);
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Me(e, t) {
|
|
1844
1844
|
e.onWarning && e.onWarning.call(null, vn(e, t));
|
|
1845
1845
|
}
|
|
1846
1846
|
var xt = {
|
|
1847
1847
|
YAML: function(t, n, r) {
|
|
1848
1848
|
var i, o, a;
|
|
1849
|
-
t.version !== null &&
|
|
1849
|
+
t.version !== null && k(t, "duplication of %YAML directive"), r.length !== 1 && k(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && k(t, "ill-formed argument of the YAML directive"), o = parseInt(i[1], 10), a = parseInt(i[2], 10), o !== 1 && k(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Me(t, "unsupported YAML version of the document");
|
|
1850
1850
|
},
|
|
1851
1851
|
TAG: function(t, n, r) {
|
|
1852
1852
|
var i, o;
|
|
1853
|
-
r.length !== 2 &&
|
|
1853
|
+
r.length !== 2 && k(t, "TAG directive accepts exactly two arguments"), i = r[0], o = r[1], hn.test(i) || k(t, "ill-formed tag handle (first argument) of the TAG directive"), ue.call(t.tagMap, i) && k(t, 'there is a previously declared suffix for "' + i + '" tag handle'), mn.test(o) || k(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1854
1854
|
try {
|
|
1855
1855
|
o = decodeURIComponent(o);
|
|
1856
1856
|
} catch {
|
|
1857
|
-
|
|
1857
|
+
k(t, "tag prefix is malformed: " + o);
|
|
1858
1858
|
}
|
|
1859
1859
|
t.tagMap[i] = o;
|
|
1860
1860
|
}
|
|
1861
1861
|
};
|
|
1862
|
-
function
|
|
1862
|
+
function ce(e, t, n, r) {
|
|
1863
1863
|
var i, o, a, l;
|
|
1864
1864
|
if (t < n) {
|
|
1865
1865
|
if (l = e.input.slice(t, n), r)
|
|
1866
1866
|
for (i = 0, o = l.length; i < o; i += 1)
|
|
1867
|
-
a = l.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 ||
|
|
1867
|
+
a = l.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || k(e, "expected valid JSON character");
|
|
1868
1868
|
else
|
|
1869
|
-
oo.test(l) &&
|
|
1869
|
+
oo.test(l) && k(e, "the stream contains non-printable characters");
|
|
1870
1870
|
e.result += l;
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
function Ct(e, t, n, r) {
|
|
1874
1874
|
var i, o, a, l;
|
|
1875
|
-
for (Z.isObject(n) ||
|
|
1875
|
+
for (Z.isObject(n) || k(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), a = 0, l = i.length; a < l; a += 1)
|
|
1876
1876
|
o = i[a], ue.call(t, o) || (t[o] = n[o], r[o] = !0);
|
|
1877
1877
|
}
|
|
1878
|
-
function
|
|
1878
|
+
function be(e, t, n, r, i, o, a, l, s) {
|
|
1879
1879
|
var c, d;
|
|
1880
1880
|
if (Array.isArray(i))
|
|
1881
1881
|
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
1882
|
-
Array.isArray(i[c]) &&
|
|
1882
|
+
Array.isArray(i[c]) && k(e, "nested arrays are not supported inside keys"), typeof i == "object" && vt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
|
|
1883
1883
|
if (typeof i == "object" && vt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
|
|
1884
1884
|
if (Array.isArray(o))
|
|
1885
1885
|
for (c = 0, d = o.length; c < d; c += 1)
|
|
@@ -1887,7 +1887,7 @@ function ve(e, t, n, r, i, o, a, l, s) {
|
|
|
1887
1887
|
else
|
|
1888
1888
|
Ct(e, t, o, n);
|
|
1889
1889
|
else
|
|
1890
|
-
!e.json && !ue.call(n, i) && ue.call(t, i) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position,
|
|
1890
|
+
!e.json && !ue.call(n, i) && ue.call(t, i) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, k(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
|
|
1891
1891
|
configurable: !0,
|
|
1892
1892
|
enumerable: !0,
|
|
1893
1893
|
writable: !0,
|
|
@@ -1895,47 +1895,47 @@ function ve(e, t, n, r, i, o, a, l, s) {
|
|
|
1895
1895
|
}) : t[i] = o, delete n[i];
|
|
1896
1896
|
return t;
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function nt(e) {
|
|
1899
1899
|
var t;
|
|
1900
|
-
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1900
|
+
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : k(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1901
1901
|
}
|
|
1902
1902
|
function J(e, t, n) {
|
|
1903
1903
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1904
|
-
for (;
|
|
1904
|
+
for (; pe(i); )
|
|
1905
1905
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1906
1906
|
if (t && i === 35)
|
|
1907
1907
|
do
|
|
1908
1908
|
i = e.input.charCodeAt(++e.position);
|
|
1909
1909
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1910
1910
|
if (oe(i))
|
|
1911
|
-
for (
|
|
1911
|
+
for (nt(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
|
|
1912
1912
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1913
1913
|
else
|
|
1914
1914
|
break;
|
|
1915
1915
|
}
|
|
1916
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
1916
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && Me(e, "deficient indentation"), r;
|
|
1917
1917
|
}
|
|
1918
1918
|
function De(e) {
|
|
1919
1919
|
var t = e.position, n;
|
|
1920
1920
|
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 || te(n)));
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1922
|
+
function rt(e, t) {
|
|
1923
1923
|
t === 1 ? e.result += " " : t > 1 && (e.result += Z.repeat(`
|
|
1924
1924
|
`, t - 1));
|
|
1925
1925
|
}
|
|
1926
1926
|
function ho(e, t, n) {
|
|
1927
1927
|
var r, i, o, a, l, s, c, d, u = e.kind, h = e.result, f;
|
|
1928
|
-
if (f = e.input.charCodeAt(e.position), te(f) ||
|
|
1928
|
+
if (f = e.input.charCodeAt(e.position), te(f) || ve(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), te(i) || n && ve(i)))
|
|
1929
1929
|
return !1;
|
|
1930
1930
|
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; f !== 0; ) {
|
|
1931
1931
|
if (f === 58) {
|
|
1932
|
-
if (i = e.input.charCodeAt(e.position + 1), te(i) || n &&
|
|
1932
|
+
if (i = e.input.charCodeAt(e.position + 1), te(i) || n && ve(i))
|
|
1933
1933
|
break;
|
|
1934
1934
|
} else if (f === 35) {
|
|
1935
1935
|
if (r = e.input.charCodeAt(e.position - 1), te(r))
|
|
1936
1936
|
break;
|
|
1937
1937
|
} else {
|
|
1938
|
-
if (e.position === e.lineStart && De(e) || n &&
|
|
1938
|
+
if (e.position === e.lineStart && De(e) || n && ve(f))
|
|
1939
1939
|
break;
|
|
1940
1940
|
if (oe(f))
|
|
1941
1941
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1946,9 +1946,9 @@ function ho(e, t, n) {
|
|
|
1946
1946
|
break;
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
|
-
l && (
|
|
1949
|
+
l && (ce(e, o, a, !1), rt(e, e.line - s), o = a = e.position, l = !1), pe(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1950
1950
|
}
|
|
1951
|
-
return
|
|
1951
|
+
return ce(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = h, !1);
|
|
1952
1952
|
}
|
|
1953
1953
|
function mo(e, t) {
|
|
1954
1954
|
var n, r, i;
|
|
@@ -1956,13 +1956,13 @@ function mo(e, t) {
|
|
|
1956
1956
|
return !1;
|
|
1957
1957
|
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
|
|
1958
1958
|
if (n === 39)
|
|
1959
|
-
if (
|
|
1959
|
+
if (ce(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
|
|
1960
1960
|
r = e.position, e.position++, i = e.position;
|
|
1961
1961
|
else
|
|
1962
1962
|
return !0;
|
|
1963
1963
|
else
|
|
1964
|
-
oe(n) ? (
|
|
1965
|
-
|
|
1964
|
+
oe(n) ? (ce(e, r, i, !0), rt(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && De(e) ? k(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1965
|
+
k(e, "unexpected end of the stream within a single quoted scalar");
|
|
1966
1966
|
}
|
|
1967
1967
|
function go(e, t) {
|
|
1968
1968
|
var n, r, i, o, a, l;
|
|
@@ -1970,41 +1970,41 @@ function go(e, t) {
|
|
|
1970
1970
|
return !1;
|
|
1971
1971
|
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1972
1972
|
if (l === 34)
|
|
1973
|
-
return
|
|
1973
|
+
return ce(e, n, e.position, !0), e.position++, !0;
|
|
1974
1974
|
if (l === 92) {
|
|
1975
|
-
if (
|
|
1975
|
+
if (ce(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), oe(l))
|
|
1976
1976
|
J(e, !1, t);
|
|
1977
1977
|
else if (l < 256 && gn[l])
|
|
1978
1978
|
e.result += yn[l], e.position++;
|
|
1979
1979
|
else if ((a = co(l)) > 0) {
|
|
1980
1980
|
for (i = a, o = 0; i > 0; i--)
|
|
1981
|
-
l = e.input.charCodeAt(++e.position), (a = so(l)) >= 0 ? o = (o << 4) + a :
|
|
1981
|
+
l = e.input.charCodeAt(++e.position), (a = so(l)) >= 0 ? o = (o << 4) + a : k(e, "expected hexadecimal character");
|
|
1982
1982
|
e.result += fo(o), e.position++;
|
|
1983
1983
|
} else
|
|
1984
|
-
|
|
1984
|
+
k(e, "unknown escape sequence");
|
|
1985
1985
|
n = r = e.position;
|
|
1986
1986
|
} else
|
|
1987
|
-
oe(l) ? (
|
|
1987
|
+
oe(l) ? (ce(e, n, r, !0), rt(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && De(e) ? k(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1988
1988
|
}
|
|
1989
|
-
|
|
1989
|
+
k(e, "unexpected end of the stream within a double quoted scalar");
|
|
1990
1990
|
}
|
|
1991
1991
|
function yo(e, t) {
|
|
1992
|
-
var n = !0, r, i, o, a = e.tag, l, s = e.anchor, c, d, u, h, f, x = /* @__PURE__ */ Object.create(null), m,
|
|
1993
|
-
if (
|
|
1992
|
+
var n = !0, r, i, o, a = e.tag, l, s = e.anchor, c, d, u, h, f, x = /* @__PURE__ */ Object.create(null), m, A, M, b;
|
|
1993
|
+
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
1994
1994
|
d = 93, f = !1, l = [];
|
|
1995
|
-
else if (
|
|
1995
|
+
else if (b === 123)
|
|
1996
1996
|
d = 125, f = !0, l = {};
|
|
1997
1997
|
else
|
|
1998
1998
|
return !1;
|
|
1999
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = l),
|
|
2000
|
-
if (J(e, !0, t),
|
|
1999
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
2000
|
+
if (J(e, !0, t), b = e.input.charCodeAt(e.position), b === d)
|
|
2001
2001
|
return e.position++, e.tag = a, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
2002
|
-
n ?
|
|
2002
|
+
n ? b === 44 && k(e, "expected the node content, but found ','") : k(e, "missed comma between flow collection entries"), A = m = M = null, u = h = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), te(c) && (u = h = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, o = e.position, Ce(e, t, Ne, !1, !0), A = e.tag, m = e.result, J(e, !0, t), b = e.input.charCodeAt(e.position), (h || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), J(e, !0, t), Ce(e, t, Ne, !1, !0), M = e.result), f ? be(e, l, x, A, m, M, r, i, o) : u ? l.push(be(e, null, x, A, m, M, r, i, o)) : l.push(m), J(e, !0, t), b = e.input.charCodeAt(e.position), b === 44 ? (n = !0, b = e.input.charCodeAt(++e.position)) : n = !1;
|
|
2003
2003
|
}
|
|
2004
|
-
|
|
2004
|
+
k(e, "unexpected end of the stream within a flow collection");
|
|
2005
2005
|
}
|
|
2006
2006
|
function vo(e, t) {
|
|
2007
|
-
var n, r, i =
|
|
2007
|
+
var n, r, i = He, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
|
|
2008
2008
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
2009
2009
|
r = !1;
|
|
2010
2010
|
else if (u === 62)
|
|
@@ -2013,22 +2013,22 @@ function vo(e, t) {
|
|
|
2013
2013
|
return !1;
|
|
2014
2014
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
2015
2015
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
2016
|
-
|
|
2016
|
+
He === i ? i = u === 43 ? yt : io : k(e, "repeat of a chomping mode identifier");
|
|
2017
2017
|
else if ((d = uo(u)) >= 0)
|
|
2018
|
-
d === 0 ?
|
|
2018
|
+
d === 0 ? k(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? k(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
|
|
2019
2019
|
else
|
|
2020
2020
|
break;
|
|
2021
|
-
if (
|
|
2021
|
+
if (pe(u)) {
|
|
2022
2022
|
do
|
|
2023
2023
|
u = e.input.charCodeAt(++e.position);
|
|
2024
|
-
while (
|
|
2024
|
+
while (pe(u));
|
|
2025
2025
|
if (u === 35)
|
|
2026
2026
|
do
|
|
2027
2027
|
u = e.input.charCodeAt(++e.position);
|
|
2028
2028
|
while (!oe(u) && u !== 0);
|
|
2029
2029
|
}
|
|
2030
2030
|
for (; u !== 0; ) {
|
|
2031
|
-
for (
|
|
2031
|
+
for (nt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
|
|
2032
2032
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
2033
2033
|
if (!a && e.lineIndent > l && (l = e.lineIndent), oe(u)) {
|
|
2034
2034
|
s++;
|
|
@@ -2036,17 +2036,17 @@ function vo(e, t) {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
if (e.lineIndent < l) {
|
|
2038
2038
|
i === yt ? e.result += Z.repeat(`
|
|
2039
|
-
`, o ? 1 + s : s) : i ===
|
|
2039
|
+
`, o ? 1 + s : s) : i === He && o && (e.result += `
|
|
2040
2040
|
`);
|
|
2041
2041
|
break;
|
|
2042
2042
|
}
|
|
2043
|
-
for (r ?
|
|
2043
|
+
for (r ? pe(u) ? (c = !0, e.result += Z.repeat(`
|
|
2044
2044
|
`, o ? 1 + s : s)) : c ? (c = !1, e.result += Z.repeat(`
|
|
2045
2045
|
`, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += Z.repeat(`
|
|
2046
2046
|
`, s) : e.result += Z.repeat(`
|
|
2047
2047
|
`, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !oe(u) && u !== 0; )
|
|
2048
2048
|
u = e.input.charCodeAt(++e.position);
|
|
2049
|
-
|
|
2049
|
+
ce(e, n, e.position, !1);
|
|
2050
2050
|
}
|
|
2051
2051
|
return !0;
|
|
2052
2052
|
}
|
|
@@ -2054,96 +2054,96 @@ function _t(e, t) {
|
|
|
2054
2054
|
var n, r = e.tag, i = e.anchor, o = [], a, l = !1, s;
|
|
2055
2055
|
if (e.firstTabInLine !== -1)
|
|
2056
2056
|
return !1;
|
|
2057
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2057
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, k(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !te(a)))); ) {
|
|
2058
2058
|
if (l = !0, e.position++, J(e, !0, -1) && e.lineIndent <= t) {
|
|
2059
2059
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
2060
2060
|
continue;
|
|
2061
2061
|
}
|
|
2062
|
-
if (n = e.line,
|
|
2063
|
-
|
|
2062
|
+
if (n = e.line, Ce(e, t, pn, !1, !0), o.push(e.result), J(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
2063
|
+
k(e, "bad indentation of a sequence entry");
|
|
2064
2064
|
else if (e.lineIndent < t)
|
|
2065
2065
|
break;
|
|
2066
2066
|
}
|
|
2067
2067
|
return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = o, !0) : !1;
|
|
2068
2068
|
}
|
|
2069
2069
|
function bo(e, t, n) {
|
|
2070
|
-
var r, i, o, a, l, s, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), f = null, x = null, m = null,
|
|
2070
|
+
var r, i, o, a, l, s, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), f = null, x = null, m = null, A = !1, M = !1, b;
|
|
2071
2071
|
if (e.firstTabInLine !== -1)
|
|
2072
2072
|
return !1;
|
|
2073
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = u),
|
|
2074
|
-
if (!
|
|
2075
|
-
|
|
2073
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
2074
|
+
if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, k(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (b === 63 || b === 58) && te(r))
|
|
2075
|
+
b === 63 ? (A && (be(e, u, h, f, x, null, a, l, s), f = x = m = null), M = !0, A = !0, i = !0) : A ? (A = !1, i = !0) : k(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
|
|
2076
2076
|
else {
|
|
2077
|
-
if (a = e.line, l = e.lineStart, s = e.position, !
|
|
2077
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Ce(e, n, fn, !1, !0))
|
|
2078
2078
|
break;
|
|
2079
2079
|
if (e.line === o) {
|
|
2080
|
-
for (
|
|
2081
|
-
|
|
2082
|
-
if (
|
|
2083
|
-
|
|
2084
|
-
else if (
|
|
2085
|
-
|
|
2080
|
+
for (b = e.input.charCodeAt(e.position); pe(b); )
|
|
2081
|
+
b = e.input.charCodeAt(++e.position);
|
|
2082
|
+
if (b === 58)
|
|
2083
|
+
b = e.input.charCodeAt(++e.position), te(b) || k(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && (be(e, u, h, f, x, null, a, l, s), f = x = m = null), M = !0, A = !1, i = !1, f = e.tag, x = e.result;
|
|
2084
|
+
else if (M)
|
|
2085
|
+
k(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2086
2086
|
else
|
|
2087
2087
|
return e.tag = c, e.anchor = d, !0;
|
|
2088
|
-
} else if (
|
|
2089
|
-
|
|
2088
|
+
} else if (M)
|
|
2089
|
+
k(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2090
2090
|
else
|
|
2091
2091
|
return e.tag = c, e.anchor = d, !0;
|
|
2092
2092
|
}
|
|
2093
|
-
if ((e.line === o || e.lineIndent > t) && (
|
|
2094
|
-
|
|
2093
|
+
if ((e.line === o || e.lineIndent > t) && (A && (a = e.line, l = e.lineStart, s = e.position), Ce(e, t, Be, !0, i) && (A ? x = e.result : m = e.result), A || (be(e, u, h, f, x, m, a, l, s), f = x = m = null), J(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && b !== 0)
|
|
2094
|
+
k(e, "bad indentation of a mapping entry");
|
|
2095
2095
|
else if (e.lineIndent < t)
|
|
2096
2096
|
break;
|
|
2097
2097
|
}
|
|
2098
|
-
return
|
|
2098
|
+
return A && be(e, u, h, f, x, null, a, l, s), M && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), M;
|
|
2099
2099
|
}
|
|
2100
2100
|
function xo(e) {
|
|
2101
2101
|
var t, n = !1, r = !1, i, o, a;
|
|
2102
2102
|
if (a = e.input.charCodeAt(e.position), a !== 33)
|
|
2103
2103
|
return !1;
|
|
2104
|
-
if (e.tag !== null &&
|
|
2104
|
+
if (e.tag !== null && k(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (r = !0, i = "!!", a = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
|
|
2105
2105
|
do
|
|
2106
2106
|
a = e.input.charCodeAt(++e.position);
|
|
2107
2107
|
while (a !== 0 && a !== 62);
|
|
2108
|
-
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) :
|
|
2108
|
+
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : k(e, "unexpected end of the stream within a verbatim tag");
|
|
2109
2109
|
} else {
|
|
2110
2110
|
for (; a !== 0 && !te(a); )
|
|
2111
|
-
a === 33 && (r ?
|
|
2112
|
-
o = e.input.slice(t, e.position), lo.test(o) &&
|
|
2111
|
+
a === 33 && (r ? k(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), hn.test(i) || k(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
2112
|
+
o = e.input.slice(t, e.position), lo.test(o) && k(e, "tag suffix cannot contain flow indicator characters");
|
|
2113
2113
|
}
|
|
2114
|
-
o && !mn.test(o) &&
|
|
2114
|
+
o && !mn.test(o) && k(e, "tag name cannot contain such characters: " + o);
|
|
2115
2115
|
try {
|
|
2116
2116
|
o = decodeURIComponent(o);
|
|
2117
2117
|
} catch {
|
|
2118
|
-
|
|
2118
|
+
k(e, "tag name is malformed: " + o);
|
|
2119
2119
|
}
|
|
2120
|
-
return n ? e.tag = o : ue.call(e.tagMap, i) ? e.tag = e.tagMap[i] + o : i === "!" ? e.tag = "!" + o : i === "!!" ? e.tag = "tag:yaml.org,2002:" + o :
|
|
2120
|
+
return n ? e.tag = o : ue.call(e.tagMap, i) ? e.tag = e.tagMap[i] + o : i === "!" ? e.tag = "!" + o : i === "!!" ? e.tag = "tag:yaml.org,2002:" + o : k(e, 'undeclared tag handle "' + i + '"'), !0;
|
|
2121
2121
|
}
|
|
2122
2122
|
function Co(e) {
|
|
2123
2123
|
var t, n;
|
|
2124
2124
|
if (n = e.input.charCodeAt(e.position), n !== 38)
|
|
2125
2125
|
return !1;
|
|
2126
|
-
for (e.anchor !== null &&
|
|
2126
|
+
for (e.anchor !== null && k(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !te(n) && !ve(n); )
|
|
2127
2127
|
n = e.input.charCodeAt(++e.position);
|
|
2128
|
-
return e.position === t &&
|
|
2128
|
+
return e.position === t && k(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2129
2129
|
}
|
|
2130
2130
|
function _o(e) {
|
|
2131
2131
|
var t, n, r;
|
|
2132
2132
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
2133
2133
|
return !1;
|
|
2134
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !te(r) && !
|
|
2134
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !te(r) && !ve(r); )
|
|
2135
2135
|
r = e.input.charCodeAt(++e.position);
|
|
2136
|
-
return e.position === t &&
|
|
2136
|
+
return e.position === t && k(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ue.call(e.anchorMap, n) || k(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], J(e, !0, -1), !0;
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2139
|
-
var o, a, l, s = 1, c = !1, d = !1, u, h, f, x, m,
|
|
2140
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l =
|
|
2138
|
+
function Ce(e, t, n, r, i) {
|
|
2139
|
+
var o, a, l, s = 1, c = !1, d = !1, u, h, f, x, m, A;
|
|
2140
|
+
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 || pn === n, r && J(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2141
2141
|
for (; xo(e) || Co(e); )
|
|
2142
2142
|
J(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2143
|
-
if (l && (l = c || i), (s === 1 ||
|
|
2143
|
+
if (l && (l = c || i), (s === 1 || Be === n) && (Ne === n || fn === n ? m = t : m = t + 1, A = e.position - e.lineStart, s === 1 ? l && (_t(e, A) || bo(e, A, m)) || yo(e, m) ? d = !0 : (a && vo(e, m) || mo(e, m) || go(e, m) ? d = !0 : _o(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && k(e, "alias node should not have any properties")) : ho(e, m, Ne === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && _t(e, A))), e.tag === null)
|
|
2144
2144
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2145
2145
|
else if (e.tag === "?") {
|
|
2146
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2146
|
+
for (e.result !== null && e.kind !== "scalar" && k(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, h = e.implicitTypes.length; u < h; u += 1)
|
|
2147
2147
|
if (x = e.implicitTypes[u], x.resolve(e.result)) {
|
|
2148
2148
|
e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2149
2149
|
break;
|
|
@@ -2157,7 +2157,7 @@ function xe(e, t, n, r, i) {
|
|
|
2157
2157
|
x = f[u];
|
|
2158
2158
|
break;
|
|
2159
2159
|
}
|
|
2160
|
-
x ||
|
|
2160
|
+
x || k(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && k(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : k(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2161
2161
|
}
|
|
2162
2162
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2163
2163
|
}
|
|
@@ -2166,8 +2166,8 @@ function ko(e) {
|
|
|
2166
2166
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (J(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
2167
2167
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !te(a); )
|
|
2168
2168
|
a = e.input.charCodeAt(++e.position);
|
|
2169
|
-
for (r = e.input.slice(n, e.position), i = [], r.length < 1 &&
|
|
2170
|
-
for (;
|
|
2169
|
+
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && k(e, "directive name must not be less than one character in length"); a !== 0; ) {
|
|
2170
|
+
for (; pe(a); )
|
|
2171
2171
|
a = e.input.charCodeAt(++e.position);
|
|
2172
2172
|
if (a === 35) {
|
|
2173
2173
|
do
|
|
@@ -2181,14 +2181,14 @@ function ko(e) {
|
|
|
2181
2181
|
a = e.input.charCodeAt(++e.position);
|
|
2182
2182
|
i.push(e.input.slice(n, e.position));
|
|
2183
2183
|
}
|
|
2184
|
-
a !== 0 &&
|
|
2184
|
+
a !== 0 && nt(e), ue.call(xt, r) ? xt[r](e, r, i) : Me(e, 'unknown document directive "' + r + '"');
|
|
2185
2185
|
}
|
|
2186
|
-
if (J(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, J(e, !0, -1)) : o &&
|
|
2186
|
+
if (J(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, J(e, !0, -1)) : o && k(e, "directives end mark is expected"), Ce(e, e.lineIndent - 1, Be, !1, !0), J(e, !0, -1), e.checkLineBreaks && ao.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && De(e)) {
|
|
2187
2187
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
|
|
2188
2188
|
return;
|
|
2189
2189
|
}
|
|
2190
2190
|
if (e.position < e.length - 1)
|
|
2191
|
-
|
|
2191
|
+
k(e, "end of the stream or a document separator is expected");
|
|
2192
2192
|
else
|
|
2193
2193
|
return;
|
|
2194
2194
|
}
|
|
@@ -2196,7 +2196,7 @@ function bn(e, t) {
|
|
|
2196
2196
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2197
2197
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2198
2198
|
var n = new po(e, t), r = e.indexOf("\0");
|
|
2199
|
-
for (r !== -1 && (n.position = r,
|
|
2199
|
+
for (r !== -1 && (n.position = r, k(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2200
2200
|
n.lineIndent += 1, n.position += 1;
|
|
2201
2201
|
for (; n.position < n.length - 1; )
|
|
2202
2202
|
ko(n);
|
|
@@ -2221,7 +2221,7 @@ function wo(e, t) {
|
|
|
2221
2221
|
var So = Ao, Io = wo, xn = {
|
|
2222
2222
|
loadAll: So,
|
|
2223
2223
|
load: Io
|
|
2224
|
-
}, Cn = Object.prototype.toString, _n = Object.prototype.hasOwnProperty,
|
|
2224
|
+
}, Cn = Object.prototype.toString, _n = Object.prototype.hasOwnProperty, it = 65279, To = 9, Ie = 10, Eo = 13, Fo = 32, Oo = 33, $o = 34, ze = 35, Lo = 37, No = 38, Bo = 39, Mo = 42, kn = 44, Ro = 45, Re = 58, Ko = 61, Do = 62, jo = 63, Uo = 64, An = 91, wn = 93, qo = 96, Sn = 123, Po = 124, In = 125, X = {};
|
|
2225
2225
|
X[0] = "\\0";
|
|
2226
2226
|
X[7] = "\\a";
|
|
2227
2227
|
X[8] = "\\b";
|
|
@@ -2275,9 +2275,9 @@ function zo(e) {
|
|
|
2275
2275
|
throw new ee("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2276
2276
|
return "\\" + n + Z.repeat("0", r - t.length) + t;
|
|
2277
2277
|
}
|
|
2278
|
-
var Wo = 1,
|
|
2278
|
+
var Wo = 1, Te = 2;
|
|
2279
2279
|
function Jo(e) {
|
|
2280
|
-
this.schema = e.schema ||
|
|
2280
|
+
this.schema = e.schema || tt, 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 = Yo(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 === '"' ? Te : Wo, 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;
|
|
2281
2281
|
}
|
|
2282
2282
|
function kt(e, t) {
|
|
2283
2283
|
for (var n = Z.repeat(" ", t), r = 0, i = -1, o = "", a, l = e.length; r < l; )
|
|
@@ -2286,7 +2286,7 @@ function kt(e, t) {
|
|
|
2286
2286
|
` && (o += n), o += a;
|
|
2287
2287
|
return o;
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2289
|
+
function We(e, t) {
|
|
2290
2290
|
return `
|
|
2291
2291
|
` + Z.repeat(" ", e.indent * t);
|
|
2292
2292
|
}
|
|
@@ -2297,46 +2297,46 @@ function Go(e, t) {
|
|
|
2297
2297
|
return !0;
|
|
2298
2298
|
return !1;
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2301
|
-
return e === Fo || e ===
|
|
2300
|
+
function Ke(e) {
|
|
2301
|
+
return e === Fo || e === To;
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2304
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2303
|
+
function Ee(e) {
|
|
2304
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== it || 65536 <= e && e <= 1114111;
|
|
2305
2305
|
}
|
|
2306
2306
|
function At(e) {
|
|
2307
|
-
return
|
|
2307
|
+
return Ee(e) && e !== it && e !== Eo && e !== Ie;
|
|
2308
2308
|
}
|
|
2309
2309
|
function wt(e, t, n) {
|
|
2310
|
-
var r = At(e), i = r && !
|
|
2310
|
+
var r = At(e), i = r && !Ke(e);
|
|
2311
2311
|
return (
|
|
2312
2312
|
// ns-plain-safe
|
|
2313
2313
|
(n ? (
|
|
2314
2314
|
// c = flow-in
|
|
2315
2315
|
r
|
|
2316
|
-
) : r && e !== kn && e !== An && e !== wn && e !== Sn && e !== In) && e !==
|
|
2316
|
+
) : r && e !== kn && e !== An && e !== wn && e !== Sn && e !== In) && e !== ze && !(t === Re && !i) || At(t) && !Ke(t) && e === ze || t === Re && i
|
|
2317
2317
|
);
|
|
2318
2318
|
}
|
|
2319
2319
|
function Zo(e) {
|
|
2320
|
-
return
|
|
2320
|
+
return Ee(e) && e !== it && !Ke(e) && e !== Ro && e !== jo && e !== Re && e !== kn && e !== An && e !== wn && e !== Sn && e !== In && e !== ze && e !== No && e !== Mo && e !== Oo && e !== Po && e !== Ko && e !== Do && e !== Bo && e !== $o && e !== Lo && e !== Uo && e !== qo;
|
|
2321
2321
|
}
|
|
2322
2322
|
function Qo(e) {
|
|
2323
|
-
return !
|
|
2323
|
+
return !Ke(e) && e !== Re;
|
|
2324
2324
|
}
|
|
2325
2325
|
function we(e, t) {
|
|
2326
2326
|
var n = e.charCodeAt(t), r;
|
|
2327
2327
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function Tn(e) {
|
|
2330
2330
|
var t = /^\n* /;
|
|
2331
2331
|
return t.test(e);
|
|
2332
2332
|
}
|
|
2333
|
-
var
|
|
2333
|
+
var En = 1, Je = 2, Fn = 3, On = 4, ye = 5;
|
|
2334
2334
|
function Xo(e, t, n, r, i, o, a, l) {
|
|
2335
2335
|
var s, c = 0, d = null, u = !1, h = !1, f = r !== -1, x = -1, m = Zo(we(e, 0)) && Qo(we(e, e.length - 1));
|
|
2336
2336
|
if (t || a)
|
|
2337
2337
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2338
|
-
if (c = we(e, s), !
|
|
2339
|
-
return
|
|
2338
|
+
if (c = we(e, s), !Ee(c))
|
|
2339
|
+
return ye;
|
|
2340
2340
|
m = m && wt(c, d, l), d = c;
|
|
2341
2341
|
}
|
|
2342
2342
|
else {
|
|
@@ -2344,20 +2344,20 @@ function Xo(e, t, n, r, i, o, a, l) {
|
|
|
2344
2344
|
if (c = we(e, s), c === Ie)
|
|
2345
2345
|
u = !0, f && (h = h || // Foldable line = too long, and not more-indented.
|
|
2346
2346
|
s - x - 1 > r && e[x + 1] !== " ", x = s);
|
|
2347
|
-
else if (!
|
|
2348
|
-
return
|
|
2347
|
+
else if (!Ee(c))
|
|
2348
|
+
return ye;
|
|
2349
2349
|
m = m && wt(c, d, l), d = c;
|
|
2350
2350
|
}
|
|
2351
2351
|
h = h || f && s - x - 1 > r && e[x + 1] !== " ";
|
|
2352
2352
|
}
|
|
2353
|
-
return !u && !h ? m && !a && !i(e) ?
|
|
2353
|
+
return !u && !h ? m && !a && !i(e) ? En : o === Te ? ye : Je : n > 9 && Tn(e) ? ye : a ? o === Te ? ye : Je : h ? On : Fn;
|
|
2354
2354
|
}
|
|
2355
2355
|
function ea(e, t, n, r, i) {
|
|
2356
2356
|
e.dump = function() {
|
|
2357
2357
|
if (t.length === 0)
|
|
2358
|
-
return e.quotingType ===
|
|
2358
|
+
return e.quotingType === Te ? '""' : "''";
|
|
2359
2359
|
if (!e.noCompatMode && (Ho.indexOf(t) !== -1 || Vo.test(t)))
|
|
2360
|
-
return e.quotingType ===
|
|
2360
|
+
return e.quotingType === Te ? '"' + t + '"' : "'" + t + "'";
|
|
2361
2361
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2362
2362
|
function s(c) {
|
|
2363
2363
|
return Go(e, c);
|
|
@@ -2372,15 +2372,15 @@ function ea(e, t, n, r, i) {
|
|
|
2372
2372
|
e.forceQuotes && !r,
|
|
2373
2373
|
i
|
|
2374
2374
|
)) {
|
|
2375
|
-
case
|
|
2375
|
+
case En:
|
|
2376
2376
|
return t;
|
|
2377
|
-
case
|
|
2377
|
+
case Je:
|
|
2378
2378
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2379
2379
|
case Fn:
|
|
2380
2380
|
return "|" + St(t, e.indent) + It(kt(t, o));
|
|
2381
2381
|
case On:
|
|
2382
2382
|
return ">" + St(t, e.indent) + It(kt(ta(t, a), o));
|
|
2383
|
-
case
|
|
2383
|
+
case ye:
|
|
2384
2384
|
return '"' + na(t) + '"';
|
|
2385
2385
|
default:
|
|
2386
2386
|
throw new ee("impossible error: invalid scalar style");
|
|
@@ -2388,7 +2388,7 @@ function ea(e, t, n, r, i) {
|
|
|
2388
2388
|
}();
|
|
2389
2389
|
}
|
|
2390
2390
|
function St(e, t) {
|
|
2391
|
-
var n =
|
|
2391
|
+
var n = Tn(e) ? String(t) : "", r = e[e.length - 1] === `
|
|
2392
2392
|
`, i = r && (e[e.length - 2] === `
|
|
2393
2393
|
` || e === `
|
|
2394
2394
|
`), o = i ? "+" : r ? "" : "-";
|
|
@@ -2403,16 +2403,16 @@ function ta(e, t) {
|
|
|
2403
2403
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2404
2404
|
var c = e.indexOf(`
|
|
2405
2405
|
`);
|
|
2406
|
-
return c = c !== -1 ? c : e.length, n.lastIndex = c,
|
|
2406
|
+
return c = c !== -1 ? c : e.length, n.lastIndex = c, Tt(e.slice(0, c), t);
|
|
2407
2407
|
}(), i = e[0] === `
|
|
2408
2408
|
` || e[0] === " ", o, a; a = n.exec(e); ) {
|
|
2409
2409
|
var l = a[1], s = a[2];
|
|
2410
2410
|
o = s[0] === " ", r += l + (!i && !o && s !== "" ? `
|
|
2411
|
-
` : "") +
|
|
2411
|
+
` : "") + Tt(s, t), i = o;
|
|
2412
2412
|
}
|
|
2413
2413
|
return r;
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2415
|
+
function Tt(e, t) {
|
|
2416
2416
|
if (e === "" || e[0] === " ")
|
|
2417
2417
|
return e;
|
|
2418
2418
|
for (var n = / [^ ]/g, r, i = 0, o, a = 0, l = 0, s = ""; r = n.exec(e); )
|
|
@@ -2424,25 +2424,25 @@ function Et(e, t) {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
function na(e) {
|
|
2426
2426
|
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
|
|
2427
|
-
n = we(e, i), r = X[n], !r &&
|
|
2427
|
+
n = we(e, i), r = X[n], !r && Ee(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || zo(n);
|
|
2428
2428
|
return t;
|
|
2429
2429
|
}
|
|
2430
2430
|
function ra(e, t, n) {
|
|
2431
2431
|
var r = "", i = e.tag, o, a, l;
|
|
2432
2432
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2433
|
-
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (
|
|
2433
|
+
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (se(e, t, l, !1, !1) || typeof l > "u" && se(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2434
2434
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2435
2435
|
}
|
|
2436
|
-
function
|
|
2436
|
+
function Et(e, t, n, r) {
|
|
2437
2437
|
var i = "", o = e.tag, a, l, s;
|
|
2438
2438
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
2439
|
-
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (
|
|
2439
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (se(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && se(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += We(e, t)), e.dump && Ie === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2440
2440
|
e.tag = o, e.dump = i || "[]";
|
|
2441
2441
|
}
|
|
2442
2442
|
function ia(e, t, n) {
|
|
2443
2443
|
var r = "", i = e.tag, o = Object.keys(n), a, l, s, c, d;
|
|
2444
2444
|
for (a = 0, l = o.length; a < l; a += 1)
|
|
2445
|
-
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)),
|
|
2445
|
+
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), se(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), se(e, t, c, !1, !1) && (d += e.dump, r += d));
|
|
2446
2446
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2447
2447
|
}
|
|
2448
2448
|
function oa(e, t, n, r) {
|
|
@@ -2454,7 +2454,7 @@ function oa(e, t, n, r) {
|
|
|
2454
2454
|
else if (e.sortKeys)
|
|
2455
2455
|
throw new ee("sortKeys must be a boolean or a function");
|
|
2456
2456
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
2457
|
-
h = "", (!r || i !== "") && (h +=
|
|
2457
|
+
h = "", (!r || i !== "") && (h += We(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), se(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) ? h += "?" : h += "? "), h += e.dump, u && (h += We(e, t)), se(e, t + 1, d, !0, u) && (e.dump && Ie === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, i += h));
|
|
2458
2458
|
e.tag = o, e.dump = i || "{}";
|
|
2459
2459
|
}
|
|
2460
2460
|
function Ft(e, t, n) {
|
|
@@ -2474,7 +2474,7 @@ function Ft(e, t, n) {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
return !1;
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function se(e, t, n, r, i, o, a) {
|
|
2478
2478
|
e.tag = null, e.dump = n, Ft(e, n, !1) || Ft(e, n, !0);
|
|
2479
2479
|
var l = Cn.call(e.dump), s = r, c;
|
|
2480
2480
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
@@ -2485,7 +2485,7 @@ function le(e, t, n, r, i, o, a) {
|
|
|
2485
2485
|
if (d && h && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2486
2486
|
r && Object.keys(e.dump).length !== 0 ? (oa(e, t, e.dump, i), h && (e.dump = "&ref_" + u + e.dump)) : (ia(e, t, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2487
2487
|
else if (l === "[object Array]")
|
|
2488
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ?
|
|
2488
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), h && (e.dump = "&ref_" + u + e.dump)) : (ra(e, t, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2489
2489
|
else if (l === "[object String]")
|
|
2490
2490
|
e.tag !== "?" && ea(e, e.dump, t, o, s);
|
|
2491
2491
|
else {
|
|
@@ -2503,39 +2503,39 @@ function le(e, t, n, r, i, o, a) {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
function aa(e, t) {
|
|
2505
2505
|
var n = [], r = [], i, o;
|
|
2506
|
-
for (
|
|
2506
|
+
for (Ge(e, n, r), i = 0, o = r.length; i < o; i += 1)
|
|
2507
2507
|
t.duplicates.push(n[r[i]]);
|
|
2508
2508
|
t.usedDuplicates = new Array(o);
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2510
|
+
function Ge(e, t, n) {
|
|
2511
2511
|
var r, i, o;
|
|
2512
2512
|
if (e !== null && typeof e == "object")
|
|
2513
2513
|
if (i = t.indexOf(e), i !== -1)
|
|
2514
2514
|
n.indexOf(i) === -1 && n.push(i);
|
|
2515
2515
|
else if (t.push(e), Array.isArray(e))
|
|
2516
2516
|
for (i = 0, o = e.length; i < o; i += 1)
|
|
2517
|
-
|
|
2517
|
+
Ge(e[i], t, n);
|
|
2518
2518
|
else
|
|
2519
2519
|
for (r = Object.keys(e), i = 0, o = r.length; i < o; i += 1)
|
|
2520
|
-
|
|
2520
|
+
Ge(e[r[i]], t, n);
|
|
2521
2521
|
}
|
|
2522
2522
|
function la(e, t) {
|
|
2523
2523
|
t = t || {};
|
|
2524
2524
|
var n = new Jo(t);
|
|
2525
2525
|
n.noRefs || aa(e, n);
|
|
2526
2526
|
var r = e;
|
|
2527
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
2527
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), se(n, 0, r, !0, !0) ? n.dump + `
|
|
2528
2528
|
` : "";
|
|
2529
2529
|
}
|
|
2530
2530
|
var sa = la, ca = {
|
|
2531
2531
|
dump: sa
|
|
2532
2532
|
};
|
|
2533
|
-
function
|
|
2533
|
+
function ot(e, t) {
|
|
2534
2534
|
return function() {
|
|
2535
2535
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2536
2536
|
};
|
|
2537
2537
|
}
|
|
2538
|
-
var ua = Q, da = Yt, fa = Gt, pa = tn, ha = nn, ma =
|
|
2538
|
+
var ua = Q, da = Yt, fa = Gt, pa = tn, ha = nn, ma = tt, ga = xn.load, ya = xn.loadAll, va = ca.dump, ba = ee, xa = {
|
|
2539
2539
|
binary: sn,
|
|
2540
2540
|
float: en,
|
|
2541
2541
|
map: Jt,
|
|
@@ -2549,7 +2549,7 @@ var ua = Q, da = Yt, fa = Gt, pa = tn, ha = nn, ma = et, ga = xn.load, ya = xn.l
|
|
|
2549
2549
|
omap: cn,
|
|
2550
2550
|
seq: Wt,
|
|
2551
2551
|
str: zt
|
|
2552
|
-
}, Ca =
|
|
2552
|
+
}, Ca = ot("safeLoad", "load"), _a = ot("safeLoadAll", "loadAll"), ka = ot("safeDump", "dump"), Aa = {
|
|
2553
2553
|
Type: ua,
|
|
2554
2554
|
Schema: da,
|
|
2555
2555
|
FAILSAFE_SCHEMA: fa,
|
|
@@ -2565,7 +2565,7 @@ var ua = Q, da = Yt, fa = Gt, pa = tn, ha = nn, ma = et, ga = xn.load, ya = xn.l
|
|
|
2565
2565
|
safeLoadAll: _a,
|
|
2566
2566
|
safeDump: ka
|
|
2567
2567
|
};
|
|
2568
|
-
const wa = { class: "yaml-config" }, $n = /* @__PURE__ */
|
|
2568
|
+
const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ H({
|
|
2569
2569
|
__name: "YamlCodeBlock",
|
|
2570
2570
|
props: {
|
|
2571
2571
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2575,12 +2575,12 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2575
2575
|
}
|
|
2576
2576
|
},
|
|
2577
2577
|
setup(e) {
|
|
2578
|
-
const t = e, n =
|
|
2578
|
+
const t = e, n = _(() => {
|
|
2579
2579
|
const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i && (Array.isArray(i) ? i.length !== 0 : !0)));
|
|
2580
2580
|
return Object.keys(r).length === 0 && r.constructor === Object ? "" : Aa.dump(r).trim();
|
|
2581
2581
|
});
|
|
2582
2582
|
return (r, i) => {
|
|
2583
|
-
const o =
|
|
2583
|
+
const o = B("KCodeBlock");
|
|
2584
2584
|
return p(), w("div", wa, [
|
|
2585
2585
|
t.yamlRecord ? (p(), R(o, {
|
|
2586
2586
|
key: 0,
|
|
@@ -2595,10 +2595,10 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2595
2595
|
}), Sa = {
|
|
2596
2596
|
key: 0,
|
|
2597
2597
|
class: "config-card-display-form"
|
|
2598
|
-
}, Ia = ["data-testid"],
|
|
2598
|
+
}, Ia = ["data-testid"], Ta = {
|
|
2599
2599
|
key: 0,
|
|
2600
2600
|
class: "config-card-prop-section-title"
|
|
2601
|
-
},
|
|
2601
|
+
}, Ea = /* @__PURE__ */ H({
|
|
2602
2602
|
__name: "ConfigCardDisplay",
|
|
2603
2603
|
props: {
|
|
2604
2604
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2637,7 +2637,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2637
2637
|
}
|
|
2638
2638
|
},
|
|
2639
2639
|
setup(e) {
|
|
2640
|
-
const t = e, n =
|
|
2640
|
+
const t = e, n = Ze(), { i18n: { t: r } } = W.useI18n(), i = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = _(() => {
|
|
2641
2641
|
if (!t.record)
|
|
2642
2642
|
return t.record;
|
|
2643
2643
|
const a = JSON.parse(JSON.stringify(t.record));
|
|
@@ -2647,18 +2647,18 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2647
2647
|
e.format === "structured" ? (p(), w("div", Sa, [
|
|
2648
2648
|
(p(!0), w(ae, null, ie(e.propListTypes, (s) => (p(), w("div", {
|
|
2649
2649
|
key: `config-card-details-${s}-props`,
|
|
2650
|
-
class:
|
|
2650
|
+
class: he(`config-card-details-${s}-props`),
|
|
2651
2651
|
"data-testid": `config-card-details-${s}-props`
|
|
2652
2652
|
}, [
|
|
2653
|
-
s !== "basic" ? (p(), w("div",
|
|
2653
|
+
s !== "basic" ? (p(), w("div", Ta, O(s === "advanced" ? S(r)("baseConfigCard.sections.advanced") : S(r)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
|
|
2654
2654
|
(p(!0), w(ae, null, ie(e.propertyCollections[s], (c) => (p(), R(qt, {
|
|
2655
2655
|
key: c.key,
|
|
2656
2656
|
item: c
|
|
2657
|
-
},
|
|
2658
|
-
label:
|
|
2657
|
+
}, xe({
|
|
2658
|
+
label: v(() => [
|
|
2659
2659
|
Y(a.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2660
2660
|
]),
|
|
2661
|
-
[c.key]:
|
|
2661
|
+
[c.key]: v(({ rowValue: d }) => [
|
|
2662
2662
|
Y(a.$slots, c.key, {
|
|
2663
2663
|
row: c,
|
|
2664
2664
|
rowValue: d
|
|
@@ -2668,7 +2668,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2668
2668
|
}, [
|
|
2669
2669
|
i(c) ? {
|
|
2670
2670
|
name: "label-tooltip",
|
|
2671
|
-
fn:
|
|
2671
|
+
fn: v(() => [
|
|
2672
2672
|
Y(a.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
|
|
2673
2673
|
]),
|
|
2674
2674
|
key: "0"
|
|
@@ -2689,18 +2689,117 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2689
2689
|
}, null, 8, ["yaml-record"])) : U("", !0)
|
|
2690
2690
|
], 64));
|
|
2691
2691
|
}
|
|
2692
|
-
}), Fa = /* @__PURE__ */ re(
|
|
2692
|
+
}), Fa = /* @__PURE__ */ re(Ea, [["__scopeId", "data-v-2b74ac63"]]), de = "24px", je = (e, t) => {
|
|
2693
2693
|
const n = e.__vccOpts || e;
|
|
2694
2694
|
for (const [r, i] of t)
|
|
2695
2695
|
n[r] = i;
|
|
2696
2696
|
return n;
|
|
2697
|
-
}, Oa = (e) => (
|
|
2697
|
+
}, Oa = (e) => (Oe("data-v-2295e0fb"), e = e(), $e(), e), $a = ["aria-hidden"], La = {
|
|
2698
|
+
key: 0,
|
|
2699
|
+
"data-testid": "kui-icon-svg-title"
|
|
2700
|
+
}, Na = /* @__PURE__ */ Oa(() => /* @__PURE__ */ $("path", {
|
|
2701
|
+
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2702
|
+
fill: "currentColor"
|
|
2703
|
+
}, null, -1)), Ba = /* @__PURE__ */ H({
|
|
2704
|
+
__name: "AddIcon",
|
|
2705
|
+
props: {
|
|
2706
|
+
/** The accessibility text provided to screen readers */
|
|
2707
|
+
title: {
|
|
2708
|
+
type: String,
|
|
2709
|
+
required: !1,
|
|
2710
|
+
default: ""
|
|
2711
|
+
},
|
|
2712
|
+
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
2713
|
+
color: {
|
|
2714
|
+
type: String,
|
|
2715
|
+
required: !1,
|
|
2716
|
+
default: "currentColor"
|
|
2717
|
+
},
|
|
2718
|
+
/** The CSS display property for the icon. Defaults to `block` */
|
|
2719
|
+
display: {
|
|
2720
|
+
type: String,
|
|
2721
|
+
required: !1,
|
|
2722
|
+
default: "block"
|
|
2723
|
+
},
|
|
2724
|
+
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
2725
|
+
decorative: {
|
|
2726
|
+
type: Boolean,
|
|
2727
|
+
required: !1,
|
|
2728
|
+
default: !1
|
|
2729
|
+
},
|
|
2730
|
+
/** The icon size */
|
|
2731
|
+
size: {
|
|
2732
|
+
type: [Number, String],
|
|
2733
|
+
required: !1,
|
|
2734
|
+
default: de,
|
|
2735
|
+
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2736
|
+
validator: (e) => {
|
|
2737
|
+
if (typeof e == "number" && e > 0)
|
|
2738
|
+
return !0;
|
|
2739
|
+
if (typeof e == "string") {
|
|
2740
|
+
const t = String(e).replace(/px/gi, ""), n = Number(t);
|
|
2741
|
+
if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
|
|
2742
|
+
return !0;
|
|
2743
|
+
}
|
|
2744
|
+
return !1;
|
|
2745
|
+
}
|
|
2746
|
+
},
|
|
2747
|
+
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
2748
|
+
as: {
|
|
2749
|
+
type: String,
|
|
2750
|
+
required: !1,
|
|
2751
|
+
default: "span"
|
|
2752
|
+
}
|
|
2753
|
+
},
|
|
2754
|
+
setup(e) {
|
|
2755
|
+
const t = e, n = _(() => {
|
|
2756
|
+
if (typeof t.size == "number" && t.size > 0)
|
|
2757
|
+
return `${t.size}px`;
|
|
2758
|
+
if (typeof t.size == "string") {
|
|
2759
|
+
const i = String(t.size).replace(/px/gi, ""), o = Number(i);
|
|
2760
|
+
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2761
|
+
return `${o}px`;
|
|
2762
|
+
}
|
|
2763
|
+
return de;
|
|
2764
|
+
}), r = _(() => ({
|
|
2765
|
+
boxSizing: "border-box",
|
|
2766
|
+
color: t.color,
|
|
2767
|
+
display: t.display,
|
|
2768
|
+
height: n.value,
|
|
2769
|
+
lineHeight: "0",
|
|
2770
|
+
width: n.value
|
|
2771
|
+
}));
|
|
2772
|
+
return (i, o) => (p(), R(le(e.as), {
|
|
2773
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2774
|
+
class: "kui-icon add-icon",
|
|
2775
|
+
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2776
|
+
style: Fe(r.value)
|
|
2777
|
+
}, {
|
|
2778
|
+
default: v(() => [
|
|
2779
|
+
(p(), w("svg", {
|
|
2780
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2781
|
+
"data-testid": "kui-icon-svg-add-icon",
|
|
2782
|
+
fill: "none",
|
|
2783
|
+
height: "100%",
|
|
2784
|
+
role: "img",
|
|
2785
|
+
viewBox: "0 0 24 24",
|
|
2786
|
+
width: "100%",
|
|
2787
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2788
|
+
}, [
|
|
2789
|
+
e.title ? (p(), w("title", La, O(e.title), 1)) : U("", !0),
|
|
2790
|
+
Na
|
|
2791
|
+
], 8, $a))
|
|
2792
|
+
]),
|
|
2793
|
+
_: 1
|
|
2794
|
+
}, 8, ["aria-hidden", "style"]));
|
|
2795
|
+
}
|
|
2796
|
+
}), Ma = /* @__PURE__ */ je(Ba, [["__scopeId", "data-v-2295e0fb"]]), Ra = (e) => (Oe("data-v-40a7f387"), e = e(), $e(), e), Ka = ["aria-hidden"], Da = {
|
|
2698
2797
|
key: 0,
|
|
2699
2798
|
"data-testid": "kui-icon-svg-title"
|
|
2700
|
-
},
|
|
2799
|
+
}, ja = /* @__PURE__ */ Ra(() => /* @__PURE__ */ $("path", {
|
|
2701
2800
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2702
2801
|
fill: "currentColor"
|
|
2703
|
-
}, null, -1)),
|
|
2802
|
+
}, null, -1)), Ua = /* @__PURE__ */ H({
|
|
2704
2803
|
__name: "BookIcon",
|
|
2705
2804
|
props: {
|
|
2706
2805
|
/** The accessibility text provided to screen readers */
|
|
@@ -2731,7 +2830,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2731
2830
|
size: {
|
|
2732
2831
|
type: [Number, String],
|
|
2733
2832
|
required: !1,
|
|
2734
|
-
default:
|
|
2833
|
+
default: de,
|
|
2735
2834
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2736
2835
|
validator: (e) => {
|
|
2737
2836
|
if (typeof e == "number" && e > 0)
|
|
@@ -2752,7 +2851,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2752
2851
|
}
|
|
2753
2852
|
},
|
|
2754
2853
|
setup(e) {
|
|
2755
|
-
const t = e, n =
|
|
2854
|
+
const t = e, n = _(() => {
|
|
2756
2855
|
if (typeof t.size == "number" && t.size > 0)
|
|
2757
2856
|
return `${t.size}px`;
|
|
2758
2857
|
if (typeof t.size == "string") {
|
|
@@ -2760,8 +2859,8 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2760
2859
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2761
2860
|
return `${o}px`;
|
|
2762
2861
|
}
|
|
2763
|
-
return
|
|
2764
|
-
}), r =
|
|
2862
|
+
return de;
|
|
2863
|
+
}), r = _(() => ({
|
|
2765
2864
|
boxSizing: "border-box",
|
|
2766
2865
|
color: t.color,
|
|
2767
2866
|
display: t.display,
|
|
@@ -2769,13 +2868,13 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2769
2868
|
lineHeight: "0",
|
|
2770
2869
|
width: n.value
|
|
2771
2870
|
}));
|
|
2772
|
-
return (i, o) => (p(), R(
|
|
2871
|
+
return (i, o) => (p(), R(le(e.as), {
|
|
2773
2872
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2774
2873
|
class: "kui-icon book-icon",
|
|
2775
2874
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2776
|
-
style:
|
|
2875
|
+
style: Fe(r.value)
|
|
2777
2876
|
}, {
|
|
2778
|
-
default:
|
|
2877
|
+
default: v(() => [
|
|
2779
2878
|
(p(), w("svg", {
|
|
2780
2879
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2781
2880
|
"data-testid": "kui-icon-svg-book-icon",
|
|
@@ -2786,20 +2885,20 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2786
2885
|
width: "100%",
|
|
2787
2886
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2788
2887
|
}, [
|
|
2789
|
-
e.title ? (p(), w("title",
|
|
2790
|
-
|
|
2791
|
-
], 8,
|
|
2888
|
+
e.title ? (p(), w("title", Da, O(e.title), 1)) : U("", !0),
|
|
2889
|
+
ja
|
|
2890
|
+
], 8, Ka))
|
|
2792
2891
|
]),
|
|
2793
2892
|
_: 1
|
|
2794
2893
|
}, 8, ["aria-hidden", "style"]));
|
|
2795
2894
|
}
|
|
2796
|
-
}),
|
|
2895
|
+
}), qa = /* @__PURE__ */ je(Ua, [["__scopeId", "data-v-40a7f387"]]), Pa = (e) => (Oe("data-v-19f4cbbe"), e = e(), $e(), e), Ha = ["aria-hidden"], Va = {
|
|
2797
2896
|
key: 0,
|
|
2798
2897
|
"data-testid": "kui-icon-svg-title"
|
|
2799
|
-
},
|
|
2898
|
+
}, Ya = /* @__PURE__ */ Pa(() => /* @__PURE__ */ $("path", {
|
|
2800
2899
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2801
2900
|
fill: "currentColor"
|
|
2802
|
-
}, null, -1)),
|
|
2901
|
+
}, null, -1)), za = /* @__PURE__ */ H({
|
|
2803
2902
|
__name: "CloseIcon",
|
|
2804
2903
|
props: {
|
|
2805
2904
|
/** The accessibility text provided to screen readers */
|
|
@@ -2830,7 +2929,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2830
2929
|
size: {
|
|
2831
2930
|
type: [Number, String],
|
|
2832
2931
|
required: !1,
|
|
2833
|
-
default:
|
|
2932
|
+
default: de,
|
|
2834
2933
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2835
2934
|
validator: (e) => {
|
|
2836
2935
|
if (typeof e == "number" && e > 0)
|
|
@@ -2851,7 +2950,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2851
2950
|
}
|
|
2852
2951
|
},
|
|
2853
2952
|
setup(e) {
|
|
2854
|
-
const t = e, n =
|
|
2953
|
+
const t = e, n = _(() => {
|
|
2855
2954
|
if (typeof t.size == "number" && t.size > 0)
|
|
2856
2955
|
return `${t.size}px`;
|
|
2857
2956
|
if (typeof t.size == "string") {
|
|
@@ -2859,8 +2958,8 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2859
2958
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2860
2959
|
return `${o}px`;
|
|
2861
2960
|
}
|
|
2862
|
-
return
|
|
2863
|
-
}), r =
|
|
2961
|
+
return de;
|
|
2962
|
+
}), r = _(() => ({
|
|
2864
2963
|
boxSizing: "border-box",
|
|
2865
2964
|
color: t.color,
|
|
2866
2965
|
display: t.display,
|
|
@@ -2868,13 +2967,13 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2868
2967
|
lineHeight: "0",
|
|
2869
2968
|
width: n.value
|
|
2870
2969
|
}));
|
|
2871
|
-
return (i, o) => (p(), R(
|
|
2970
|
+
return (i, o) => (p(), R(le(e.as), {
|
|
2872
2971
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2873
2972
|
class: "kui-icon close-icon",
|
|
2874
2973
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2875
|
-
style:
|
|
2974
|
+
style: Fe(r.value)
|
|
2876
2975
|
}, {
|
|
2877
|
-
default:
|
|
2976
|
+
default: v(() => [
|
|
2878
2977
|
(p(), w("svg", {
|
|
2879
2978
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2880
2979
|
"data-testid": "kui-icon-svg-close-icon",
|
|
@@ -2885,20 +2984,20 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2885
2984
|
width: "100%",
|
|
2886
2985
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2887
2986
|
}, [
|
|
2888
|
-
e.title ? (p(), w("title",
|
|
2889
|
-
|
|
2890
|
-
], 8,
|
|
2987
|
+
e.title ? (p(), w("title", Va, O(e.title), 1)) : U("", !0),
|
|
2988
|
+
Ya
|
|
2989
|
+
], 8, Ha))
|
|
2891
2990
|
]),
|
|
2892
2991
|
_: 1
|
|
2893
2992
|
}, 8, ["aria-hidden", "style"]));
|
|
2894
2993
|
}
|
|
2895
|
-
}),
|
|
2994
|
+
}), Wa = /* @__PURE__ */ je(za, [["__scopeId", "data-v-19f4cbbe"]]), Ja = (e) => (Oe("data-v-13f41aa3"), e = e(), $e(), e), Ga = ["aria-hidden"], Za = {
|
|
2896
2995
|
key: 0,
|
|
2897
2996
|
"data-testid": "kui-icon-svg-title"
|
|
2898
|
-
},
|
|
2997
|
+
}, Qa = /* @__PURE__ */ Ja(() => /* @__PURE__ */ $("path", {
|
|
2899
2998
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
2900
2999
|
fill: "currentColor"
|
|
2901
|
-
}, null, -1)),
|
|
3000
|
+
}, null, -1)), Xa = /* @__PURE__ */ H({
|
|
2902
3001
|
__name: "CopyIcon",
|
|
2903
3002
|
props: {
|
|
2904
3003
|
/** The accessibility text provided to screen readers */
|
|
@@ -2929,7 +3028,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2929
3028
|
size: {
|
|
2930
3029
|
type: [Number, String],
|
|
2931
3030
|
required: !1,
|
|
2932
|
-
default:
|
|
3031
|
+
default: de,
|
|
2933
3032
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2934
3033
|
validator: (e) => {
|
|
2935
3034
|
if (typeof e == "number" && e > 0)
|
|
@@ -2950,7 +3049,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2950
3049
|
}
|
|
2951
3050
|
},
|
|
2952
3051
|
setup(e) {
|
|
2953
|
-
const t = e, n =
|
|
3052
|
+
const t = e, n = _(() => {
|
|
2954
3053
|
if (typeof t.size == "number" && t.size > 0)
|
|
2955
3054
|
return `${t.size}px`;
|
|
2956
3055
|
if (typeof t.size == "string") {
|
|
@@ -2958,8 +3057,8 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2958
3057
|
if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
|
|
2959
3058
|
return `${o}px`;
|
|
2960
3059
|
}
|
|
2961
|
-
return
|
|
2962
|
-
}), r =
|
|
3060
|
+
return de;
|
|
3061
|
+
}), r = _(() => ({
|
|
2963
3062
|
boxSizing: "border-box",
|
|
2964
3063
|
color: t.color,
|
|
2965
3064
|
display: t.display,
|
|
@@ -2967,13 +3066,13 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2967
3066
|
lineHeight: "0",
|
|
2968
3067
|
width: n.value
|
|
2969
3068
|
}));
|
|
2970
|
-
return (i, o) => (p(), R(
|
|
3069
|
+
return (i, o) => (p(), R(le(e.as), {
|
|
2971
3070
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2972
3071
|
class: "kui-icon copy-icon",
|
|
2973
3072
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
2974
|
-
style:
|
|
3073
|
+
style: Fe(r.value)
|
|
2975
3074
|
}, {
|
|
2976
|
-
default:
|
|
3075
|
+
default: v(() => [
|
|
2977
3076
|
(p(), w("svg", {
|
|
2978
3077
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2979
3078
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
@@ -2984,14 +3083,14 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
2984
3083
|
width: "100%",
|
|
2985
3084
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2986
3085
|
}, [
|
|
2987
|
-
e.title ? (p(), w("title",
|
|
2988
|
-
|
|
2989
|
-
], 8,
|
|
3086
|
+
e.title ? (p(), w("title", Za, O(e.title), 1)) : U("", !0),
|
|
3087
|
+
Qa
|
|
3088
|
+
], 8, Ga))
|
|
2990
3089
|
]),
|
|
2991
3090
|
_: 1
|
|
2992
3091
|
}, 8, ["aria-hidden", "style"]));
|
|
2993
3092
|
}
|
|
2994
|
-
}),
|
|
3093
|
+
}), el = /* @__PURE__ */ je(Xa, [["__scopeId", "data-v-13f41aa3"]]), tl = { "data-testid": "config-card-title" }, nl = { class: "config-card-actions" }, rl = ["href"], il = { class: "config-card-details-section" }, ol = /* @__PURE__ */ H({
|
|
2995
3094
|
__name: "EntityBaseConfigCard",
|
|
2996
3095
|
props: {
|
|
2997
3096
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3086,7 +3185,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3086
3185
|
c.value = y == null ? void 0 : y.value;
|
|
3087
3186
|
}, u = {
|
|
3088
3187
|
id: {
|
|
3089
|
-
type:
|
|
3188
|
+
type: V.ID,
|
|
3090
3189
|
label: i("baseConfigCard.commonFields.id_label"),
|
|
3091
3190
|
order: 0,
|
|
3092
3191
|
section: ne.Basic
|
|
@@ -3096,89 +3195,89 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3096
3195
|
section: ne.Basic
|
|
3097
3196
|
},
|
|
3098
3197
|
enabled: {
|
|
3099
|
-
type:
|
|
3198
|
+
type: V.BadgeStatus,
|
|
3100
3199
|
order: 2,
|
|
3101
3200
|
section: ne.Basic
|
|
3102
3201
|
},
|
|
3103
3202
|
updated_at: {
|
|
3104
|
-
type:
|
|
3203
|
+
type: V.Date,
|
|
3105
3204
|
label: i("baseConfigCard.commonFields.updated_at_label"),
|
|
3106
3205
|
order: 3,
|
|
3107
3206
|
section: ne.Basic
|
|
3108
3207
|
},
|
|
3109
3208
|
created_at: {
|
|
3110
|
-
type:
|
|
3209
|
+
type: V.Date,
|
|
3111
3210
|
label: i("baseConfigCard.commonFields.created_at_label"),
|
|
3112
3211
|
order: 4,
|
|
3113
3212
|
section: ne.Basic
|
|
3114
3213
|
},
|
|
3115
3214
|
tags: {
|
|
3116
|
-
type:
|
|
3215
|
+
type: V.BadgeTag,
|
|
3117
3216
|
order: -1,
|
|
3118
3217
|
// the last property displayed
|
|
3119
3218
|
section: ne.Basic
|
|
3120
3219
|
}
|
|
3121
|
-
}, h = K(!1), f = K(!1), x = K(""), m = K({}),
|
|
3122
|
-
var F,
|
|
3220
|
+
}, h = K(!1), f = K(!1), x = K(""), m = K({}), A = _(() => {
|
|
3221
|
+
var F, I, q;
|
|
3123
3222
|
if (!m.value)
|
|
3124
3223
|
return [];
|
|
3125
3224
|
const y = [], j = Object.keys(m.value).length;
|
|
3126
|
-
for (const
|
|
3127
|
-
const
|
|
3225
|
+
for (const T in m.value) {
|
|
3226
|
+
const E = (I = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : I.order, D = (q = u[T]) == null ? void 0 : q.order;
|
|
3128
3227
|
let P = j;
|
|
3129
|
-
(D || D === 0) && (P = D === -1 ? j + 1 : D),
|
|
3228
|
+
(D || D === 0) && (P = D === -1 ? j + 1 : D), E && (P = E === -1 ? j + 1 : E), y.push([T, P]);
|
|
3130
3229
|
}
|
|
3131
|
-
return y.sort(function(
|
|
3132
|
-
return
|
|
3133
|
-
}), y.map((
|
|
3134
|
-
var
|
|
3135
|
-
const
|
|
3230
|
+
return y.sort(function(T, E) {
|
|
3231
|
+
return T[1] - E[1];
|
|
3232
|
+
}), y.map((T) => {
|
|
3233
|
+
var fe, at;
|
|
3234
|
+
const E = T[0], D = (fe = m.value) == null ? void 0 : fe[E], P = ((at = r.configSchema) == null ? void 0 : at[E]) || {}, G = u[E];
|
|
3136
3235
|
return {
|
|
3137
|
-
key:
|
|
3236
|
+
key: E,
|
|
3138
3237
|
value: D,
|
|
3139
3238
|
hidden: P.hidden || !1,
|
|
3140
|
-
type: P.type ?? ((G == null ? void 0 : G.type) ||
|
|
3141
|
-
label: P.label ?? ((G == null ? void 0 : G.label) || a(
|
|
3239
|
+
type: P.type ?? ((G == null ? void 0 : G.type) || V.Text),
|
|
3240
|
+
label: P.label ?? ((G == null ? void 0 : G.label) || a(E)),
|
|
3142
3241
|
tooltip: P.tooltip ?? ((G == null ? void 0 : G.tooltip) || void 0),
|
|
3143
3242
|
section: P.section ?? ((G == null ? void 0 : G.section) || ne.Advanced)
|
|
3144
3243
|
};
|
|
3145
|
-
}).filter((
|
|
3146
|
-
}),
|
|
3147
|
-
var
|
|
3244
|
+
}).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
|
|
3245
|
+
}), M = _(() => {
|
|
3246
|
+
var I, q;
|
|
3148
3247
|
if (!m.value || !r.pluginConfigKey)
|
|
3149
3248
|
return [];
|
|
3150
3249
|
const y = m.value[r.pluginConfigKey] || {}, j = Object.keys(y).length, F = [];
|
|
3151
|
-
for (const
|
|
3152
|
-
const
|
|
3250
|
+
for (const T in y) {
|
|
3251
|
+
const E = (q = (I = r.pluginConfigSchema) == null ? void 0 : I[T]) == null ? void 0 : q.order, D = y[T];
|
|
3153
3252
|
let P = D != null && D !== "" ? j - 1 : j;
|
|
3154
|
-
|
|
3253
|
+
E && (P = E === -1 ? j + 1 : E), F.push([T, P]);
|
|
3155
3254
|
}
|
|
3156
|
-
return F.sort(function(
|
|
3157
|
-
return
|
|
3158
|
-
}), F.map((
|
|
3255
|
+
return F.sort(function(T, E) {
|
|
3256
|
+
return T[1] - E[1];
|
|
3257
|
+
}), F.map((T) => {
|
|
3159
3258
|
var G;
|
|
3160
|
-
const
|
|
3259
|
+
const E = T[0], D = y[E], P = ((G = r.pluginConfigSchema) == null ? void 0 : G[E]) || {};
|
|
3161
3260
|
return {
|
|
3162
|
-
key:
|
|
3261
|
+
key: E,
|
|
3163
3262
|
value: D,
|
|
3164
3263
|
hidden: P.hidden || !1,
|
|
3165
|
-
type: P.type ??
|
|
3166
|
-
label: P.label ?? a(
|
|
3264
|
+
type: P.type ?? V.Text,
|
|
3265
|
+
label: P.label ?? a(E),
|
|
3167
3266
|
tooltip: P.tooltip ?? void 0,
|
|
3168
3267
|
section: ne.Plugin
|
|
3169
3268
|
};
|
|
3170
|
-
}).filter((
|
|
3171
|
-
}),
|
|
3172
|
-
var y, j, F,
|
|
3269
|
+
}).filter((T) => !T.hidden);
|
|
3270
|
+
}), b = _(() => {
|
|
3271
|
+
var y, j, F, I;
|
|
3173
3272
|
return {
|
|
3174
|
-
basic: (y =
|
|
3175
|
-
advanced: (j =
|
|
3176
|
-
plugin: (
|
|
3273
|
+
basic: (y = A.value) == null ? void 0 : y.filter((q) => q.section === ne.Basic),
|
|
3274
|
+
advanced: (j = A.value) == null ? void 0 : j.filter((q) => q.section === ne.Advanced),
|
|
3275
|
+
plugin: (I = M.value) == null ? void 0 : I.concat((F = A.value) == null ? void 0 : F.filter((q) => q.section === ne.Plugin))
|
|
3177
3276
|
};
|
|
3178
|
-
}),
|
|
3277
|
+
}), L = _(() => {
|
|
3179
3278
|
const y = [];
|
|
3180
|
-
return
|
|
3181
|
-
}), g =
|
|
3279
|
+
return b.value.basic.length && y.push("basic"), b.value.advanced.length && y.push("advanced"), b.value.plugin.length && y.push("plugin"), y;
|
|
3280
|
+
}), g = _(() => {
|
|
3182
3281
|
var j, F;
|
|
3183
3282
|
let y = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3184
3283
|
return r.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((j = r.config) == null ? void 0 : j.controlPlaneId) || "") : r.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), y = y.replace(/{id}/gi, r.config.entityId), y;
|
|
@@ -3206,21 +3305,21 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3206
3305
|
h.value = !1;
|
|
3207
3306
|
}
|
|
3208
3307
|
}), (y, j) => {
|
|
3209
|
-
const F =
|
|
3210
|
-
return p(), R(D, { class: "kong-ui-entity-base-config-card" },
|
|
3211
|
-
actions:
|
|
3212
|
-
|
|
3308
|
+
const F = B("KLabel"), I = B("KSelect"), q = B("KButton"), T = B("KSkeleton"), E = B("KEmptyState"), D = B("KCard");
|
|
3309
|
+
return p(), R(D, { class: "kong-ui-entity-base-config-card" }, xe({
|
|
3310
|
+
actions: v(() => [
|
|
3311
|
+
$("div", nl, [
|
|
3213
3312
|
Y(y.$slots, "actions", {}, void 0, !0),
|
|
3214
|
-
|
|
3313
|
+
N(F, {
|
|
3215
3314
|
class: "config-format-select-label",
|
|
3216
3315
|
"data-testid": "config-format-select-label"
|
|
3217
3316
|
}, {
|
|
3218
|
-
default:
|
|
3317
|
+
default: v(() => [
|
|
3219
3318
|
z(O(e.label), 1)
|
|
3220
3319
|
]),
|
|
3221
3320
|
_: 1
|
|
3222
3321
|
}),
|
|
3223
|
-
|
|
3322
|
+
N(I, {
|
|
3224
3323
|
"data-testid": "select-config-format",
|
|
3225
3324
|
items: s,
|
|
3226
3325
|
onChange: d
|
|
@@ -3231,50 +3330,50 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3231
3330
|
class: "book-icon",
|
|
3232
3331
|
"data-testid": "book-icon"
|
|
3233
3332
|
}, {
|
|
3234
|
-
default:
|
|
3235
|
-
|
|
3333
|
+
default: v(() => [
|
|
3334
|
+
$("a", {
|
|
3236
3335
|
href: e.configCardDoc,
|
|
3237
3336
|
rel: "noopener",
|
|
3238
3337
|
target: "_blank"
|
|
3239
3338
|
}, [
|
|
3240
|
-
|
|
3241
|
-
], 8,
|
|
3339
|
+
N(S(qa), { size: S(Pr) }, null, 8, ["size"])
|
|
3340
|
+
], 8, rl)
|
|
3242
3341
|
]),
|
|
3243
3342
|
_: 1
|
|
3244
3343
|
})) : U("", !0)
|
|
3245
3344
|
])
|
|
3246
3345
|
]),
|
|
3247
|
-
default:
|
|
3248
|
-
h.value ? (p(), R(
|
|
3346
|
+
default: v(() => [
|
|
3347
|
+
h.value ? (p(), R(T, {
|
|
3249
3348
|
key: 0,
|
|
3250
3349
|
"data-testid": "config-card-loader",
|
|
3251
3350
|
"table-columns": 2,
|
|
3252
3351
|
type: "table"
|
|
3253
|
-
})) : f.value ? (p(), R(
|
|
3352
|
+
})) : f.value ? (p(), R(E, {
|
|
3254
3353
|
key: 1,
|
|
3255
3354
|
"data-testid": "config-card-fetch-error",
|
|
3256
|
-
"
|
|
3355
|
+
"icon-variant": "error"
|
|
3257
3356
|
}, {
|
|
3258
|
-
|
|
3259
|
-
|
|
3357
|
+
default: v(() => [
|
|
3358
|
+
$("h3", null, O(x.value), 1)
|
|
3260
3359
|
]),
|
|
3261
3360
|
_: 1
|
|
3262
3361
|
})) : U("", !0),
|
|
3263
|
-
|
|
3264
|
-
|
|
3362
|
+
$("div", il, [
|
|
3363
|
+
N(Fa, {
|
|
3265
3364
|
config: e.config,
|
|
3266
3365
|
"fetcher-url": g.value,
|
|
3267
3366
|
format: c.value,
|
|
3268
|
-
"prop-list-types":
|
|
3269
|
-
"property-collections":
|
|
3367
|
+
"prop-list-types": L.value,
|
|
3368
|
+
"property-collections": b.value,
|
|
3270
3369
|
record: m.value
|
|
3271
|
-
},
|
|
3370
|
+
}, xe({ _: 2 }, [
|
|
3272
3371
|
ie(Object.keys(y.$slots), (P) => ({
|
|
3273
3372
|
name: P,
|
|
3274
|
-
fn:
|
|
3373
|
+
fn: v(({ row: G, rowValue: fe }) => [
|
|
3275
3374
|
Y(y.$slots, P, {
|
|
3276
3375
|
row: G,
|
|
3277
|
-
rowValue:
|
|
3376
|
+
rowValue: fe
|
|
3278
3377
|
}, void 0, !0)
|
|
3279
3378
|
])
|
|
3280
3379
|
}))
|
|
@@ -3285,10 +3384,10 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3285
3384
|
}, [
|
|
3286
3385
|
e.hideTitle ? void 0 : {
|
|
3287
3386
|
name: "title",
|
|
3288
|
-
fn:
|
|
3289
|
-
|
|
3387
|
+
fn: v(() => [
|
|
3388
|
+
$("div", tl, [
|
|
3290
3389
|
Y(y.$slots, "title", {}, () => [
|
|
3291
|
-
z(O(
|
|
3390
|
+
z(O(S(i)("baseConfigCard.title")), 1)
|
|
3292
3391
|
], !0)
|
|
3293
3392
|
])
|
|
3294
3393
|
]),
|
|
@@ -3297,10 +3396,10 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3297
3396
|
]), 1024);
|
|
3298
3397
|
};
|
|
3299
3398
|
}
|
|
3300
|
-
}),
|
|
3399
|
+
}), Wl = /* @__PURE__ */ re(ol, [["__scopeId", "data-v-4bf24b34"]]), al = {
|
|
3301
3400
|
class: "form-actions",
|
|
3302
3401
|
"data-testid": "form-actions"
|
|
3303
|
-
},
|
|
3402
|
+
}, ll = { key: 0 }, sl = /* @__PURE__ */ H({
|
|
3304
3403
|
__name: "EntityBaseForm",
|
|
3305
3404
|
props: {
|
|
3306
3405
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3354,22 +3453,22 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3354
3453
|
},
|
|
3355
3454
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3356
3455
|
setup(e, { emit: t }) {
|
|
3357
|
-
var
|
|
3456
|
+
var L;
|
|
3358
3457
|
const n = t, r = e, i = jn(), { i18n: { t: o } } = W.useI18n(), { getMessageFromError: a } = W.useErrors(), { axiosInstance: l } = W.useAxios({
|
|
3359
|
-
headers: (
|
|
3360
|
-
}), s = K(!1), c = K(!1), d = K(""), u =
|
|
3458
|
+
headers: (L = r.config) == null ? void 0 : L.requestHeaders
|
|
3459
|
+
}), s = K(!1), c = K(!1), d = K(""), u = _(() => r.canSubmit === !1 || r.isReadonly), h = K(!1), f = _(() => {
|
|
3361
3460
|
var C, y;
|
|
3362
3461
|
let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3363
3462
|
return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((C = r.config) == null ? void 0 : C.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (y = r.config) != null && y.workspace ? `/${r.config.workspace}` : "")), r.editId ? (g = g.replace(/{id}/gi, r.editId), g) : (g = g.replace(/\/{id}/gi, ""), g);
|
|
3364
3463
|
}), x = () => {
|
|
3365
3464
|
h.value = !h.value;
|
|
3366
3465
|
}, m = () => {
|
|
3367
|
-
r.config.cancelRoute ? i.push(r.config.cancelRoute) :
|
|
3368
|
-
},
|
|
3466
|
+
r.config.cancelRoute ? i.push(r.config.cancelRoute) : A();
|
|
3467
|
+
}, A = () => {
|
|
3369
3468
|
n("cancel");
|
|
3370
|
-
},
|
|
3469
|
+
}, M = () => {
|
|
3371
3470
|
u.value || n("submit");
|
|
3372
|
-
},
|
|
3471
|
+
}, b = K([
|
|
3373
3472
|
{
|
|
3374
3473
|
title: o("baseForm.configuration.yaml"),
|
|
3375
3474
|
hash: "#yaml"
|
|
@@ -3394,100 +3493,100 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3394
3493
|
s.value = !1;
|
|
3395
3494
|
}
|
|
3396
3495
|
}), (g, C) => {
|
|
3397
|
-
const y =
|
|
3398
|
-
return p(), R(
|
|
3399
|
-
default:
|
|
3496
|
+
const y = B("KSkeleton"), j = B("KEmptyState"), F = B("KAlert"), I = B("KButton"), q = B("KTabs"), T = B("KSlideout"), E = B("KCard");
|
|
3497
|
+
return p(), R(E, { class: "kong-ui-entity-base-form" }, {
|
|
3498
|
+
default: v(() => [
|
|
3400
3499
|
s.value ? (p(), R(y, {
|
|
3401
3500
|
key: 0,
|
|
3402
3501
|
type: "form"
|
|
3403
3502
|
})) : c.value ? (p(), R(j, {
|
|
3404
3503
|
key: 1,
|
|
3405
|
-
"
|
|
3504
|
+
"action-button-text": S(o)("baseForm.actions.back"),
|
|
3406
3505
|
"data-testid": "form-fetch-error",
|
|
3407
|
-
"
|
|
3408
|
-
|
|
3506
|
+
"icon-variant": "error",
|
|
3507
|
+
onClickAction: m
|
|
3409
3508
|
}, {
|
|
3410
|
-
|
|
3411
|
-
|
|
3509
|
+
default: v(() => [
|
|
3510
|
+
$("h3", null, O(d.value), 1)
|
|
3412
3511
|
]),
|
|
3413
3512
|
_: 1
|
|
3414
|
-
}, 8, ["
|
|
3513
|
+
}, 8, ["action-button-text"])) : (p(), w("form", {
|
|
3415
3514
|
key: 2,
|
|
3416
3515
|
"data-testid": "form-content",
|
|
3417
|
-
onReset:
|
|
3418
|
-
onSubmit:
|
|
3516
|
+
onReset: Le(A, ["prevent"]),
|
|
3517
|
+
onSubmit: Le(M, ["prevent"])
|
|
3419
3518
|
}, [
|
|
3420
3519
|
Y(g.$slots, "default", {}, void 0, !0),
|
|
3421
3520
|
e.errorMessage ? (p(), R(F, {
|
|
3422
3521
|
key: 0,
|
|
3423
|
-
"alert-message": e.errorMessage,
|
|
3424
3522
|
appearance: "danger",
|
|
3425
|
-
"data-testid": "form-error"
|
|
3426
|
-
|
|
3427
|
-
|
|
3523
|
+
"data-testid": "form-error",
|
|
3524
|
+
message: e.errorMessage
|
|
3525
|
+
}, null, 8, ["message"])) : U("", !0),
|
|
3526
|
+
$("div", al, [
|
|
3428
3527
|
Y(g.$slots, "form-actions", {}, () => [
|
|
3429
|
-
e.config.jsonYamlFormsEnabled ? (p(), w("div",
|
|
3430
|
-
|
|
3528
|
+
e.config.jsonYamlFormsEnabled ? (p(), w("div", ll, [
|
|
3529
|
+
N(I, {
|
|
3431
3530
|
appearance: "tertiary",
|
|
3432
3531
|
"data-testid": "form-view-configuration",
|
|
3433
3532
|
onClick: C[0] || (C[0] = (D) => x())
|
|
3434
3533
|
}, {
|
|
3435
|
-
default:
|
|
3436
|
-
z(O(
|
|
3534
|
+
default: v(() => [
|
|
3535
|
+
z(O(S(o)("baseForm.actions.viewConfiguration")), 1)
|
|
3437
3536
|
]),
|
|
3438
3537
|
_: 1
|
|
3439
3538
|
})
|
|
3440
3539
|
])) : U("", !0),
|
|
3441
|
-
|
|
3540
|
+
N(I, {
|
|
3442
3541
|
appearance: "secondary",
|
|
3443
3542
|
"data-testid": "form-cancel",
|
|
3444
3543
|
disabled: e.isReadonly,
|
|
3445
3544
|
type: "reset"
|
|
3446
3545
|
}, {
|
|
3447
|
-
default:
|
|
3448
|
-
z(O(
|
|
3546
|
+
default: v(() => [
|
|
3547
|
+
z(O(S(o)("baseForm.actions.cancel")), 1)
|
|
3449
3548
|
]),
|
|
3450
3549
|
_: 1
|
|
3451
3550
|
}, 8, ["disabled"]),
|
|
3452
|
-
|
|
3551
|
+
N(I, {
|
|
3453
3552
|
appearance: "primary",
|
|
3454
3553
|
"data-testid": "form-submit",
|
|
3455
3554
|
disabled: u.value,
|
|
3456
3555
|
type: "submit"
|
|
3457
3556
|
}, {
|
|
3458
|
-
default:
|
|
3459
|
-
z(O(
|
|
3557
|
+
default: v(() => [
|
|
3558
|
+
z(O(S(o)("baseForm.actions.save")), 1)
|
|
3460
3559
|
]),
|
|
3461
3560
|
_: 1
|
|
3462
3561
|
}, 8, ["disabled"])
|
|
3463
3562
|
], !0)
|
|
3464
3563
|
])
|
|
3465
3564
|
], 32)),
|
|
3466
|
-
|
|
3565
|
+
N(T, {
|
|
3467
3566
|
"close-on-blur": !1,
|
|
3468
3567
|
"data-testid": "form-view-configuration-slideout",
|
|
3469
3568
|
"has-overlay": !1,
|
|
3470
3569
|
"offset-top": 60,
|
|
3471
|
-
title:
|
|
3570
|
+
title: S(o)("baseForm.configuration.title"),
|
|
3472
3571
|
visible: h.value,
|
|
3473
3572
|
onClose: C[1] || (C[1] = (D) => x())
|
|
3474
3573
|
}, {
|
|
3475
|
-
default:
|
|
3476
|
-
|
|
3477
|
-
|
|
3574
|
+
default: v(() => [
|
|
3575
|
+
$("div", null, O(S(o)("baseForm.configuration.message")), 1),
|
|
3576
|
+
N(q, {
|
|
3478
3577
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3479
|
-
tabs:
|
|
3578
|
+
tabs: b.value
|
|
3480
3579
|
}, {
|
|
3481
|
-
json:
|
|
3482
|
-
|
|
3580
|
+
json: v(() => [
|
|
3581
|
+
N(Pt, {
|
|
3483
3582
|
config: e.config,
|
|
3484
3583
|
"fetcher-url": f.value,
|
|
3485
3584
|
"json-record": r.formFields,
|
|
3486
3585
|
"request-method": r.editId ? "put" : "post"
|
|
3487
3586
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3488
3587
|
]),
|
|
3489
|
-
yaml:
|
|
3490
|
-
|
|
3588
|
+
yaml: v(() => [
|
|
3589
|
+
N($n, {
|
|
3491
3590
|
"yaml-record": r.formFields
|
|
3492
3591
|
}, null, 8, ["yaml-record"])
|
|
3493
3592
|
]),
|
|
@@ -3501,10 +3600,10 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3501
3600
|
});
|
|
3502
3601
|
};
|
|
3503
3602
|
}
|
|
3504
|
-
}),
|
|
3603
|
+
}), Jl = /* @__PURE__ */ re(sl, [["__scopeId", "data-v-acb5a965"]]), cl = {
|
|
3505
3604
|
key: 0,
|
|
3506
3605
|
"data-testid": "first-col"
|
|
3507
|
-
},
|
|
3606
|
+
}, ul = /* @__PURE__ */ H({
|
|
3508
3607
|
__name: "EntityBaseTableCell",
|
|
3509
3608
|
props: {
|
|
3510
3609
|
keyName: {
|
|
@@ -3517,56 +3616,56 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3517
3616
|
}
|
|
3518
3617
|
},
|
|
3519
3618
|
setup(e) {
|
|
3520
|
-
const t = e, n =
|
|
3619
|
+
const t = e, n = _(() => {
|
|
3521
3620
|
var m;
|
|
3522
3621
|
return ((m = t.rowEl) == null ? void 0 : m.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3523
|
-
}), r =
|
|
3622
|
+
}), r = _(() => {
|
|
3524
3623
|
var m;
|
|
3525
3624
|
return ((m = n.value) == null ? void 0 : m.querySelector('[data-testid="first-col"]')) || null;
|
|
3526
|
-
}), i =
|
|
3527
|
-
var
|
|
3528
|
-
const m = (
|
|
3529
|
-
return m ? ((
|
|
3625
|
+
}), i = _(() => {
|
|
3626
|
+
var A, M;
|
|
3627
|
+
const m = (A = t.rowEl) == null ? void 0 : A.querySelectorAll("td");
|
|
3628
|
+
return m ? ((M = m[0]) == null ? void 0 : M.getAttribute("data-testid")) === t.keyName : !1;
|
|
3530
3629
|
});
|
|
3531
3630
|
let o;
|
|
3532
3631
|
const a = () => {
|
|
3533
3632
|
o && (o.disconnect(), o = void 0);
|
|
3534
3633
|
}, l = () => {
|
|
3535
|
-
var m,
|
|
3536
|
-
c.value = ((m = r.value) == null ? void 0 : m.getBoundingClientRect().width) || 0, d.value = ((
|
|
3537
|
-
}, s = K({}), c = K(0), d = K(0), u = K(""), h =
|
|
3634
|
+
var m, A, M;
|
|
3635
|
+
c.value = ((m = r.value) == null ? void 0 : m.getBoundingClientRect().width) || 0, d.value = ((A = n.value) == null ? void 0 : A.clientWidth) || 0, u.value = ((M = s.value) == null ? void 0 : M.innerText) || "";
|
|
3636
|
+
}, s = K({}), c = K(0), d = K(0), u = K(""), h = _(() => [r.value, n.value]), f = _e(
|
|
3538
3637
|
h,
|
|
3539
3638
|
(m) => {
|
|
3540
3639
|
if (i.value && (a(), "ResizeObserver" in window && window)) {
|
|
3541
|
-
o = new ResizeObserver((
|
|
3640
|
+
o = new ResizeObserver((A) => {
|
|
3542
3641
|
window.requestAnimationFrame(() => {
|
|
3543
|
-
!Array.isArray(
|
|
3642
|
+
!Array.isArray(A) || !A.length || l();
|
|
3544
3643
|
});
|
|
3545
3644
|
});
|
|
3546
|
-
for (const
|
|
3547
|
-
|
|
3645
|
+
for (const A of m)
|
|
3646
|
+
A && o.observe(A);
|
|
3548
3647
|
}
|
|
3549
3648
|
},
|
|
3550
3649
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3551
|
-
), x =
|
|
3650
|
+
), x = _(() => i.value ? c.value > d.value : !1);
|
|
3552
3651
|
return Bn(() => {
|
|
3553
3652
|
l();
|
|
3554
3653
|
}), Mn(() => {
|
|
3555
3654
|
f();
|
|
3556
|
-
}), (m,
|
|
3557
|
-
const
|
|
3655
|
+
}), (m, A) => {
|
|
3656
|
+
const M = B("KTooltip");
|
|
3558
3657
|
return p(), w("span", {
|
|
3559
3658
|
ref_key: "contentRef",
|
|
3560
3659
|
ref: s,
|
|
3561
3660
|
class: "content-wrapper"
|
|
3562
3661
|
}, [
|
|
3563
|
-
i.value ? (p(), w("span",
|
|
3564
|
-
M
|
|
3662
|
+
i.value ? (p(), w("span", cl, [
|
|
3663
|
+
N(M, {
|
|
3565
3664
|
"max-width": "300",
|
|
3566
3665
|
placement: "bottomStart",
|
|
3567
3666
|
text: x.value ? u.value : ""
|
|
3568
3667
|
}, {
|
|
3569
|
-
default:
|
|
3668
|
+
default: v(() => [
|
|
3570
3669
|
Y(m.$slots, "default", {}, void 0, !0)
|
|
3571
3670
|
]),
|
|
3572
3671
|
_: 3
|
|
@@ -3575,10 +3674,10 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3575
3674
|
], 512);
|
|
3576
3675
|
};
|
|
3577
3676
|
}
|
|
3578
|
-
}),
|
|
3677
|
+
}), dl = /* @__PURE__ */ re(ul, [["__scopeId", "data-v-c4379fd4"]]), fl = { class: "toolbar-container" }, pl = {
|
|
3579
3678
|
key: 0,
|
|
3580
3679
|
class: "toolbar-button-container"
|
|
3581
|
-
},
|
|
3680
|
+
}, hl = ["data-testid"], ml = /* @__PURE__ */ H({
|
|
3582
3681
|
__name: "EntityBaseTable",
|
|
3583
3682
|
props: {
|
|
3584
3683
|
// table header configuration
|
|
@@ -3688,7 +3787,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3688
3787
|
},
|
|
3689
3788
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3690
3789
|
setup(e, { emit: t }) {
|
|
3691
|
-
const n = e, r = t, { i18n: { t: i } } = W.useI18n(), o =
|
|
3790
|
+
const n = e, r = t, { i18n: { t: i } } = W.useI18n(), o = _(() => {
|
|
3692
3791
|
var C, y;
|
|
3693
3792
|
return typeof n.errorMessage == "string" ? {
|
|
3694
3793
|
hasError: !!n.errorMessage,
|
|
@@ -3699,7 +3798,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3699
3798
|
title: (C = n.errorMessage) == null ? void 0 : C.title,
|
|
3700
3799
|
message: (y = n.errorMessage) == null ? void 0 : y.message
|
|
3701
3800
|
};
|
|
3702
|
-
}), a =
|
|
3801
|
+
}), a = _(() => n.cacheIdentifier || n.preferencesStorageKey), l = (C) => C.hasData || !!n.query, s = _(() => {
|
|
3703
3802
|
const C = [];
|
|
3704
3803
|
return Object.keys(n.tableHeaders).forEach((j) => {
|
|
3705
3804
|
const F = n.tableHeaders[j];
|
|
@@ -3733,40 +3832,38 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3733
3832
|
r("empty-state-cta-clicked"), x();
|
|
3734
3833
|
}, x = () => {
|
|
3735
3834
|
r("clear-search-input");
|
|
3736
|
-
}, m =
|
|
3835
|
+
}, m = _(() => n.disableRowClick ? void 0 : (C, y) => {
|
|
3737
3836
|
r("click:row", y);
|
|
3738
|
-
}),
|
|
3837
|
+
}), A = (C) => {
|
|
3739
3838
|
r("sort", C);
|
|
3740
|
-
}, { setTablePreferences:
|
|
3741
|
-
const C =
|
|
3839
|
+
}, { setTablePreferences: M, getTablePreferences: b } = Yn(), L = _(() => {
|
|
3840
|
+
const C = b(n.preferencesStorageKey);
|
|
3742
3841
|
return {
|
|
3743
3842
|
...n.initialFetcherParams,
|
|
3744
3843
|
...C
|
|
3745
3844
|
};
|
|
3746
3845
|
}), g = (C) => {
|
|
3747
|
-
n.preferencesStorageKey &&
|
|
3846
|
+
n.preferencesStorageKey && M(n.preferencesStorageKey, C);
|
|
3748
3847
|
};
|
|
3749
3848
|
return (C, y) => {
|
|
3750
|
-
const j =
|
|
3751
|
-
return p(), R(
|
|
3849
|
+
const j = B("KIcon"), F = B("KButton"), I = B("KDropdown"), q = B("KTable"), T = B("KCard");
|
|
3850
|
+
return p(), R(T, {
|
|
3752
3851
|
class: "kong-ui-entity-base-table",
|
|
3753
3852
|
title: e.title
|
|
3754
3853
|
}, {
|
|
3755
|
-
default:
|
|
3756
|
-
|
|
3854
|
+
default: v(() => [
|
|
3855
|
+
N(q, {
|
|
3757
3856
|
ref_key: "tableRefs",
|
|
3758
3857
|
ref: d,
|
|
3759
3858
|
"cache-identifier": a.value,
|
|
3760
3859
|
"cell-attrs": h,
|
|
3761
3860
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3762
3861
|
"disable-sorting": e.disableSorting,
|
|
3763
|
-
"empty-state-action-
|
|
3764
|
-
"empty-state-action-
|
|
3765
|
-
"empty-state-
|
|
3766
|
-
"empty-state-
|
|
3767
|
-
"empty-state-
|
|
3768
|
-
"empty-state-message": e.query ? I(i)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3769
|
-
"empty-state-title": e.query ? I(i)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3862
|
+
"empty-state-action-message": e.query ? S(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
3863
|
+
"empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
|
|
3864
|
+
"empty-state-icon-variant": e.query ? "search" : "kong",
|
|
3865
|
+
"empty-state-message": e.query ? S(i)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3866
|
+
"empty-state-title": e.query ? S(i)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3770
3867
|
"enable-client-sort": e.enableClientSort,
|
|
3771
3868
|
"error-state-message": o.value.message,
|
|
3772
3869
|
"error-state-title": o.value.title,
|
|
@@ -3775,51 +3872,51 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3775
3872
|
"has-error": o.value.hasError,
|
|
3776
3873
|
headers: s.value,
|
|
3777
3874
|
"hide-pagination-when-optional": "",
|
|
3778
|
-
"initial-fetcher-params":
|
|
3875
|
+
"initial-fetcher-params": L.value,
|
|
3779
3876
|
"is-loading": e.isLoading,
|
|
3780
3877
|
"pagination-type": e.paginationType,
|
|
3781
3878
|
"row-attrs": c,
|
|
3782
3879
|
"search-input": e.query,
|
|
3783
3880
|
onKtableEmptyStateCtaClicked: f,
|
|
3784
3881
|
"onRow:click": m.value,
|
|
3785
|
-
onSort: y[0] || (y[0] = (
|
|
3882
|
+
onSort: y[0] || (y[0] = (E) => A(E)),
|
|
3786
3883
|
"onUpdate:tablePreferences": g
|
|
3787
|
-
},
|
|
3788
|
-
toolbar:
|
|
3789
|
-
ke(
|
|
3884
|
+
}, xe({
|
|
3885
|
+
toolbar: v(({ state: E }) => [
|
|
3886
|
+
ke($("div", fl, [
|
|
3790
3887
|
Y(C.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3791
|
-
C.$slots["toolbar-button"] ? (p(), w("div",
|
|
3888
|
+
C.$slots["toolbar-button"] ? (p(), w("div", pl, [
|
|
3792
3889
|
Y(C.$slots, "toolbar-button", {}, void 0, !0)
|
|
3793
3890
|
])) : U("", !0)
|
|
3794
3891
|
], 512), [
|
|
3795
|
-
[Ae, l(
|
|
3892
|
+
[Ae, l(E)]
|
|
3796
3893
|
])
|
|
3797
3894
|
]),
|
|
3798
|
-
actions:
|
|
3799
|
-
|
|
3895
|
+
actions: v(({ row: E, rowKey: D, rowValue: P }) => [
|
|
3896
|
+
$("div", {
|
|
3800
3897
|
class: "actions-container",
|
|
3801
|
-
"data-testid":
|
|
3898
|
+
"data-testid": E.name
|
|
3802
3899
|
}, [
|
|
3803
|
-
|
|
3900
|
+
N(I, {
|
|
3804
3901
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3805
3902
|
width: e.dropdownMenuWidth
|
|
3806
3903
|
}, {
|
|
3807
|
-
items:
|
|
3904
|
+
items: v(() => [
|
|
3808
3905
|
Y(C.$slots, "actions", {
|
|
3809
|
-
row:
|
|
3906
|
+
row: E,
|
|
3810
3907
|
rowKey: D,
|
|
3811
3908
|
rowValue: P
|
|
3812
3909
|
}, void 0, !0)
|
|
3813
3910
|
]),
|
|
3814
|
-
default:
|
|
3815
|
-
|
|
3911
|
+
default: v(() => [
|
|
3912
|
+
N(F, {
|
|
3816
3913
|
class: "actions-trigger",
|
|
3817
3914
|
"data-testid": "overflow-actions-button",
|
|
3818
3915
|
size: "small"
|
|
3819
3916
|
}, {
|
|
3820
|
-
icon:
|
|
3821
|
-
|
|
3822
|
-
color:
|
|
3917
|
+
icon: v(() => [
|
|
3918
|
+
N(j, {
|
|
3919
|
+
color: S(Dr),
|
|
3823
3920
|
icon: "more",
|
|
3824
3921
|
size: "16"
|
|
3825
3922
|
}, null, 8, ["color"])
|
|
@@ -3829,43 +3926,50 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3829
3926
|
]),
|
|
3830
3927
|
_: 2
|
|
3831
3928
|
}, 1032, ["width"])
|
|
3832
|
-
], 8,
|
|
3929
|
+
], 8, hl)
|
|
3833
3930
|
]),
|
|
3834
3931
|
_: 2
|
|
3835
3932
|
}, [
|
|
3836
|
-
ie(e.tableHeaders, (
|
|
3933
|
+
ie(e.tableHeaders, (E, D) => ({
|
|
3837
3934
|
name: D,
|
|
3838
|
-
fn:
|
|
3839
|
-
|
|
3935
|
+
fn: v(({ row: P, rowKey: G, rowValue: fe }) => [
|
|
3936
|
+
N(dl, {
|
|
3840
3937
|
"key-name": String(D),
|
|
3841
3938
|
"row-el": u(P)
|
|
3842
3939
|
}, {
|
|
3843
|
-
default:
|
|
3940
|
+
default: v(() => [
|
|
3844
3941
|
Y(C.$slots, D, {
|
|
3845
3942
|
row: P,
|
|
3846
3943
|
rowKey: G,
|
|
3847
|
-
rowValue:
|
|
3944
|
+
rowValue: fe
|
|
3848
3945
|
}, () => [
|
|
3849
|
-
z(O(
|
|
3946
|
+
z(O(fe), 1)
|
|
3850
3947
|
], !0)
|
|
3851
3948
|
]),
|
|
3852
3949
|
_: 2
|
|
3853
3950
|
}, 1032, ["key-name", "row-el"])
|
|
3854
3951
|
])
|
|
3855
|
-
}))
|
|
3856
|
-
|
|
3952
|
+
})),
|
|
3953
|
+
e.query ? void 0 : {
|
|
3954
|
+
name: "empty-state-action-icon",
|
|
3955
|
+
fn: v(() => [
|
|
3956
|
+
N(S(Ma))
|
|
3957
|
+
]),
|
|
3958
|
+
key: "0"
|
|
3959
|
+
}
|
|
3960
|
+
]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
|
|
3857
3961
|
]),
|
|
3858
3962
|
_: 3
|
|
3859
3963
|
}, 8, ["title"]);
|
|
3860
3964
|
};
|
|
3861
3965
|
}
|
|
3862
|
-
}),
|
|
3966
|
+
}), Gl = /* @__PURE__ */ re(ml, [["__scopeId", "data-v-273124cf"]]), gl = {
|
|
3863
3967
|
key: 0,
|
|
3864
3968
|
class: "kong-ui-entity-delete-error"
|
|
3865
|
-
},
|
|
3969
|
+
}, yl = {
|
|
3866
3970
|
key: 1,
|
|
3867
3971
|
class: "description"
|
|
3868
|
-
},
|
|
3972
|
+
}, vl = /* @__PURE__ */ H({
|
|
3869
3973
|
__name: "EntityDeleteModal",
|
|
3870
3974
|
props: {
|
|
3871
3975
|
visible: {
|
|
@@ -3904,13 +4008,13 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3904
4008
|
},
|
|
3905
4009
|
emits: ["cancel", "proceed"],
|
|
3906
4010
|
setup(e, { emit: t }) {
|
|
3907
|
-
const { i18nT: n } = W.useI18n(), r = e, i = t, o =
|
|
4011
|
+
const { i18nT: n } = W.useI18n(), r = e, i = t, o = _(() => r.needConfirm ? r.entityName : ""), a = () => {
|
|
3908
4012
|
i("cancel");
|
|
3909
4013
|
}, l = () => {
|
|
3910
4014
|
i("proceed");
|
|
3911
4015
|
};
|
|
3912
4016
|
return (s, c) => {
|
|
3913
|
-
const d =
|
|
4017
|
+
const d = B("KAlert"), u = B("KPrompt");
|
|
3914
4018
|
return p(), R(u, {
|
|
3915
4019
|
"action-button-appearance": "danger",
|
|
3916
4020
|
"action-button-disabled": e.actionPending,
|
|
@@ -3922,36 +4026,36 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3922
4026
|
onCancel: a,
|
|
3923
4027
|
onProceed: l
|
|
3924
4028
|
}, {
|
|
3925
|
-
default:
|
|
3926
|
-
e.error ? (p(), w("div",
|
|
3927
|
-
|
|
3928
|
-
|
|
4029
|
+
default: v(() => [
|
|
4030
|
+
e.error ? (p(), w("div", gl, [
|
|
4031
|
+
N(d, { appearance: "danger" }, {
|
|
4032
|
+
default: v(() => [
|
|
3929
4033
|
z(O(e.error), 1)
|
|
3930
4034
|
]),
|
|
3931
4035
|
_: 1
|
|
3932
4036
|
})
|
|
3933
4037
|
])) : U("", !0),
|
|
3934
|
-
|
|
4038
|
+
N(S(n), {
|
|
3935
4039
|
class: "message",
|
|
3936
4040
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3937
4041
|
tag: "p"
|
|
3938
|
-
},
|
|
3939
|
-
entityType:
|
|
4042
|
+
}, xe({
|
|
4043
|
+
entityType: v(() => [
|
|
3940
4044
|
z(O(r.entityType), 1)
|
|
3941
4045
|
]),
|
|
3942
4046
|
_: 2
|
|
3943
4047
|
}, [
|
|
3944
4048
|
r.entityName ? {
|
|
3945
4049
|
name: "entityName",
|
|
3946
|
-
fn:
|
|
3947
|
-
|
|
4050
|
+
fn: v(() => [
|
|
4051
|
+
$("strong", null, O(r.entityName), 1)
|
|
3948
4052
|
]),
|
|
3949
4053
|
key: "0"
|
|
3950
4054
|
} : void 0
|
|
3951
4055
|
]), 1032, ["keypath"]),
|
|
3952
|
-
r.description || s.$slots.description ? (p(), w("div",
|
|
4056
|
+
r.description || s.$slots.description ? (p(), w("div", yl, [
|
|
3953
4057
|
Y(s.$slots, "description", {}, () => [
|
|
3954
|
-
|
|
4058
|
+
$("p", null, O(r.description), 1)
|
|
3955
4059
|
], !0)
|
|
3956
4060
|
])) : U("", !0)
|
|
3957
4061
|
]),
|
|
@@ -3959,13 +4063,13 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3959
4063
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3960
4064
|
};
|
|
3961
4065
|
}
|
|
3962
|
-
}),
|
|
4066
|
+
}), Zl = /* @__PURE__ */ re(vl, [["__scopeId", "data-v-4361d622"]]), bl = {
|
|
3963
4067
|
fill: "none",
|
|
3964
4068
|
height: "20",
|
|
3965
4069
|
viewBox: "0 0 20 20",
|
|
3966
4070
|
width: "20",
|
|
3967
4071
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3968
|
-
},
|
|
4072
|
+
}, xl = {
|
|
3969
4073
|
id: "mask0_180_20349",
|
|
3970
4074
|
height: "20",
|
|
3971
4075
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3973,7 +4077,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3973
4077
|
width: "20",
|
|
3974
4078
|
x: "0",
|
|
3975
4079
|
y: "0"
|
|
3976
|
-
},
|
|
4080
|
+
}, Cl = ["fill"], _l = { mask: "url(#mask0_180_20349)" }, kl = ["fill"], Ot = /* @__PURE__ */ H({
|
|
3977
4081
|
__name: "IconFilter",
|
|
3978
4082
|
props: {
|
|
3979
4083
|
color: {
|
|
@@ -3982,26 +4086,26 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
3982
4086
|
}
|
|
3983
4087
|
},
|
|
3984
4088
|
setup(e) {
|
|
3985
|
-
return (t, n) => (p(), w("svg",
|
|
3986
|
-
|
|
3987
|
-
|
|
4089
|
+
return (t, n) => (p(), w("svg", bl, [
|
|
4090
|
+
$("mask", xl, [
|
|
4091
|
+
$("rect", {
|
|
3988
4092
|
fill: e.color,
|
|
3989
4093
|
height: "20",
|
|
3990
4094
|
width: "20"
|
|
3991
|
-
}, null, 8,
|
|
4095
|
+
}, null, 8, Cl)
|
|
3992
4096
|
]),
|
|
3993
|
-
|
|
3994
|
-
|
|
4097
|
+
$("g", _l, [
|
|
4098
|
+
$("path", {
|
|
3995
4099
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3996
4100
|
fill: e.color
|
|
3997
|
-
}, null, 8,
|
|
4101
|
+
}, null, 8, kl)
|
|
3998
4102
|
])
|
|
3999
4103
|
]));
|
|
4000
4104
|
}
|
|
4001
|
-
}),
|
|
4105
|
+
}), Al = {
|
|
4002
4106
|
key: 1,
|
|
4003
4107
|
class: "kong-ui-entity-filter"
|
|
4004
|
-
},
|
|
4108
|
+
}, wl = { class: "menu-item-title" }, Sl = { class: "menu-item-indicator" }, Il = { class: "menu-item-body" }, Tl = ["for"], El = { class: "menu-item-buttons" }, Fl = { class: "filter-clear-button-container" }, Ol = /* @__PURE__ */ H({
|
|
4005
4109
|
__name: "EntityFilter",
|
|
4006
4110
|
props: {
|
|
4007
4111
|
// filter config, either exact match or fuzzy match
|
|
@@ -4021,51 +4125,51 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4021
4125
|
},
|
|
4022
4126
|
emits: ["update:modelValue"],
|
|
4023
4127
|
setup(e, { emit: t }) {
|
|
4024
|
-
const { i18n: { t: n } } = W.useI18n(), r = e, i = t, o = K(!1), a = K({}), l =
|
|
4025
|
-
const
|
|
4026
|
-
return new URLSearchParams(r.modelValue).forEach((
|
|
4027
|
-
|
|
4028
|
-
}),
|
|
4029
|
-
}), s =
|
|
4030
|
-
const
|
|
4031
|
-
return Object.keys(
|
|
4032
|
-
label:
|
|
4033
|
-
value:
|
|
4128
|
+
const { i18n: { t: n } } = W.useI18n(), r = e, i = t, o = K(!1), a = K({}), l = _(() => {
|
|
4129
|
+
const b = [];
|
|
4130
|
+
return new URLSearchParams(r.modelValue).forEach((L, g) => {
|
|
4131
|
+
L !== "" && b.push(g);
|
|
4132
|
+
}), b;
|
|
4133
|
+
}), s = _(() => {
|
|
4134
|
+
const b = r.config.fields;
|
|
4135
|
+
return Object.keys(b).filter((L) => b[L].searchable).map((L) => ({
|
|
4136
|
+
label: b[L].label || L,
|
|
4137
|
+
value: L
|
|
4034
4138
|
}));
|
|
4035
4139
|
});
|
|
4036
|
-
_e(() => r.modelValue, (
|
|
4037
|
-
a.value = {}, new URLSearchParams(
|
|
4038
|
-
a.value[g] =
|
|
4140
|
+
_e(() => r.modelValue, (b) => {
|
|
4141
|
+
a.value = {}, new URLSearchParams(b).forEach((L, g) => {
|
|
4142
|
+
a.value[g] = L;
|
|
4039
4143
|
});
|
|
4040
4144
|
});
|
|
4041
4145
|
const c = () => {
|
|
4042
4146
|
o.value = !o.value;
|
|
4043
|
-
}, d = (
|
|
4044
|
-
i("update:modelValue",
|
|
4147
|
+
}, d = (b) => {
|
|
4148
|
+
i("update:modelValue", b);
|
|
4045
4149
|
}, u = () => {
|
|
4046
4150
|
d("");
|
|
4047
|
-
}, h = (
|
|
4048
|
-
var
|
|
4049
|
-
return (((g = (
|
|
4151
|
+
}, h = (b) => `filter-${b}`, f = (b) => {
|
|
4152
|
+
var L, g;
|
|
4153
|
+
return (((g = (L = r.config.schema) == null ? void 0 : L[b]) == null ? void 0 : g.values) ?? []).map((C) => ({
|
|
4050
4154
|
value: C,
|
|
4051
4155
|
label: C
|
|
4052
4156
|
}));
|
|
4053
|
-
}, x = (
|
|
4054
|
-
var
|
|
4055
|
-
return ((g = (
|
|
4056
|
-
}, m = (
|
|
4157
|
+
}, x = (b) => {
|
|
4158
|
+
var L, g;
|
|
4159
|
+
return ((g = (L = r.config.schema) == null ? void 0 : L[b]) == null ? void 0 : g.type) ?? "text";
|
|
4160
|
+
}, m = (b) => {
|
|
4057
4161
|
a.value = {
|
|
4058
4162
|
...a.value,
|
|
4059
|
-
[
|
|
4060
|
-
},
|
|
4061
|
-
},
|
|
4062
|
-
a.value = {},
|
|
4063
|
-
},
|
|
4064
|
-
const
|
|
4065
|
-
|
|
4163
|
+
[b]: ""
|
|
4164
|
+
}, M();
|
|
4165
|
+
}, A = () => {
|
|
4166
|
+
a.value = {}, M(!0);
|
|
4167
|
+
}, M = (b = !1) => {
|
|
4168
|
+
const L = Object.keys(a.value).reduce((g, C) => (a.value[C] && (g[C] = `${a.value[C]}`), g), {});
|
|
4169
|
+
b && (o.value = !1), i("update:modelValue", new URLSearchParams(L).toString());
|
|
4066
4170
|
};
|
|
4067
|
-
return (
|
|
4068
|
-
const g =
|
|
4171
|
+
return (b, L) => {
|
|
4172
|
+
const g = B("KInput"), C = B("KButton"), y = B("KSelect"), j = B("KMenuItem"), F = B("KMenu");
|
|
4069
4173
|
return e.config.isExactMatch ? (p(), R(g, {
|
|
4070
4174
|
key: 0,
|
|
4071
4175
|
autocomplete: "off",
|
|
@@ -4075,11 +4179,11 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4075
4179
|
placeholder: e.config.placeholder,
|
|
4076
4180
|
"onUpdate:modelValue": d
|
|
4077
4181
|
}, {
|
|
4078
|
-
before:
|
|
4079
|
-
|
|
4182
|
+
before: v(() => [
|
|
4183
|
+
N(Ot)
|
|
4080
4184
|
]),
|
|
4081
|
-
after:
|
|
4082
|
-
ke(
|
|
4185
|
+
after: v(() => [
|
|
4186
|
+
ke(N(S(Wa), {
|
|
4083
4187
|
class: "kong-ui-entity-filter-clear",
|
|
4084
4188
|
onClick: u
|
|
4085
4189
|
}, null, 512), [
|
|
@@ -4087,85 +4191,85 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4087
4191
|
])
|
|
4088
4192
|
]),
|
|
4089
4193
|
_: 1
|
|
4090
|
-
}, 8, ["model-value", "placeholder"])) : (p(), w("div",
|
|
4091
|
-
|
|
4194
|
+
}, 8, ["model-value", "placeholder"])) : (p(), w("div", Al, [
|
|
4195
|
+
N(C, {
|
|
4092
4196
|
appearance: "tertiary",
|
|
4093
4197
|
"data-testid": "filter-button",
|
|
4094
4198
|
onClick: c
|
|
4095
4199
|
}, {
|
|
4096
|
-
default:
|
|
4097
|
-
|
|
4098
|
-
z(" " + O(
|
|
4200
|
+
default: v(() => [
|
|
4201
|
+
N(Ot),
|
|
4202
|
+
z(" " + O(S(n)("filter.filterButtonText")) + " " + O(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4099
4203
|
]),
|
|
4100
4204
|
_: 1
|
|
4101
4205
|
}),
|
|
4102
|
-
ke(
|
|
4206
|
+
ke($("div", {
|
|
4103
4207
|
class: "kong-ui-entity-filter-backdrop",
|
|
4104
4208
|
onClick: c
|
|
4105
4209
|
}, null, 512), [
|
|
4106
4210
|
[Ae, o.value]
|
|
4107
4211
|
]),
|
|
4108
|
-
ke(
|
|
4109
|
-
body:
|
|
4110
|
-
(p(!0), w(ae, null, ie(s.value, (
|
|
4111
|
-
key:
|
|
4112
|
-
"data-testid":
|
|
4212
|
+
ke(N(F, { class: "kong-ui-entity-filter-menu" }, {
|
|
4213
|
+
body: v(() => [
|
|
4214
|
+
(p(!0), w(ae, null, ie(s.value, (I, q) => (p(), R(j, {
|
|
4215
|
+
key: I.value,
|
|
4216
|
+
"data-testid": I.value,
|
|
4113
4217
|
expandable: "",
|
|
4114
4218
|
"last-menu-item": q === s.value.length - 1
|
|
4115
4219
|
}, {
|
|
4116
|
-
itemTitle:
|
|
4117
|
-
|
|
4118
|
-
z(O(
|
|
4119
|
-
ke(
|
|
4120
|
-
[Ae, l.value.includes(
|
|
4220
|
+
itemTitle: v(() => [
|
|
4221
|
+
$("span", wl, [
|
|
4222
|
+
z(O(I.label) + " ", 1),
|
|
4223
|
+
ke($("span", Sl, null, 512), [
|
|
4224
|
+
[Ae, l.value.includes(I.value)]
|
|
4121
4225
|
])
|
|
4122
4226
|
])
|
|
4123
4227
|
]),
|
|
4124
|
-
itemBody:
|
|
4125
|
-
var
|
|
4228
|
+
itemBody: v(() => {
|
|
4229
|
+
var T, E;
|
|
4126
4230
|
return [
|
|
4127
|
-
|
|
4128
|
-
|
|
4231
|
+
$("div", Il, [
|
|
4232
|
+
$("label", {
|
|
4129
4233
|
class: "menu-item-label",
|
|
4130
|
-
for: h(
|
|
4131
|
-
}, O(
|
|
4132
|
-
((
|
|
4234
|
+
for: h(I.value)
|
|
4235
|
+
}, O(S(n)("filter.fieldLabel")), 9, Tl),
|
|
4236
|
+
((E = (T = e.config.schema) == null ? void 0 : T[I.value]) == null ? void 0 : E.type) === "select" ? (p(), R(y, {
|
|
4133
4237
|
key: 0,
|
|
4134
|
-
id: h(
|
|
4135
|
-
modelValue: a.value[
|
|
4136
|
-
"onUpdate:modelValue": (D) => a.value[
|
|
4137
|
-
items: f(
|
|
4138
|
-
placeholder:
|
|
4238
|
+
id: h(I.value),
|
|
4239
|
+
modelValue: a.value[I.value],
|
|
4240
|
+
"onUpdate:modelValue": (D) => a.value[I.value] = D,
|
|
4241
|
+
items: f(I.value),
|
|
4242
|
+
placeholder: S(n)("filter.selectPlaceholder")
|
|
4139
4243
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (p(), R(g, {
|
|
4140
4244
|
key: 1,
|
|
4141
|
-
id: h(
|
|
4142
|
-
modelValue: a.value[
|
|
4143
|
-
"onUpdate:modelValue": (D) => a.value[
|
|
4245
|
+
id: h(I.value),
|
|
4246
|
+
modelValue: a.value[I.value],
|
|
4247
|
+
"onUpdate:modelValue": (D) => a.value[I.value] = D,
|
|
4144
4248
|
autocomplete: "off",
|
|
4145
|
-
placeholder:
|
|
4146
|
-
type: x(
|
|
4249
|
+
placeholder: S(n)("filter.inputPlaceholder"),
|
|
4250
|
+
type: x(I.value)
|
|
4147
4251
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4148
4252
|
]),
|
|
4149
|
-
|
|
4150
|
-
|
|
4253
|
+
$("div", El, [
|
|
4254
|
+
N(C, {
|
|
4151
4255
|
appearance: "tertiary",
|
|
4152
4256
|
"data-testid": "apply-filter",
|
|
4153
4257
|
size: "small",
|
|
4154
|
-
onClick:
|
|
4258
|
+
onClick: L[0] || (L[0] = (D) => M(!0))
|
|
4155
4259
|
}, {
|
|
4156
|
-
default:
|
|
4157
|
-
z(O(
|
|
4260
|
+
default: v(() => [
|
|
4261
|
+
z(O(S(n)("filter.applyButtonText")), 1)
|
|
4158
4262
|
]),
|
|
4159
4263
|
_: 1
|
|
4160
4264
|
}),
|
|
4161
|
-
|
|
4265
|
+
N(C, {
|
|
4162
4266
|
appearance: "tertiary",
|
|
4163
4267
|
"data-testid": "clear-filter",
|
|
4164
4268
|
size: "small",
|
|
4165
|
-
onClick: (D) => m(
|
|
4269
|
+
onClick: (D) => m(I.value)
|
|
4166
4270
|
}, {
|
|
4167
|
-
default:
|
|
4168
|
-
z(O(
|
|
4271
|
+
default: v(() => [
|
|
4272
|
+
z(O(S(n)("filter.clearButtonText")), 1)
|
|
4169
4273
|
]),
|
|
4170
4274
|
_: 2
|
|
4171
4275
|
}, 1032, ["onClick"])
|
|
@@ -4175,15 +4279,15 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4175
4279
|
_: 2
|
|
4176
4280
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
4177
4281
|
]),
|
|
4178
|
-
actionButton:
|
|
4179
|
-
|
|
4180
|
-
|
|
4282
|
+
actionButton: v(() => [
|
|
4283
|
+
$("div", Fl, [
|
|
4284
|
+
N(C, {
|
|
4181
4285
|
appearance: "tertiary",
|
|
4182
4286
|
size: "small",
|
|
4183
|
-
onClick:
|
|
4287
|
+
onClick: A
|
|
4184
4288
|
}, {
|
|
4185
|
-
default:
|
|
4186
|
-
z(O(
|
|
4289
|
+
default: v(() => [
|
|
4290
|
+
z(O(S(n)("filter.clearAllButtonText")), 1)
|
|
4187
4291
|
]),
|
|
4188
4292
|
_: 1
|
|
4189
4293
|
})
|
|
@@ -4196,7 +4300,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4196
4300
|
]));
|
|
4197
4301
|
};
|
|
4198
4302
|
}
|
|
4199
|
-
}),
|
|
4303
|
+
}), Ql = /* @__PURE__ */ re(Ol, [["__scopeId", "data-v-206cc415"]]), Xl = /* @__PURE__ */ H({
|
|
4200
4304
|
__name: "EntityToggleModal",
|
|
4201
4305
|
props: {
|
|
4202
4306
|
visible: {
|
|
@@ -4228,9 +4332,9 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4228
4332
|
},
|
|
4229
4333
|
emits: ["cancel", "proceed"],
|
|
4230
4334
|
setup(e, { emit: t }) {
|
|
4231
|
-
const { i18n: { t: n }, i18nT: r } = W.useI18n(), i = e, o = t, a = K(!1), l =
|
|
4335
|
+
const { i18n: { t: n }, i18nT: r } = W.useI18n(), i = e, o = t, a = K(!1), l = _(
|
|
4232
4336
|
() => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
|
|
4233
|
-
), s =
|
|
4337
|
+
), s = _(
|
|
4234
4338
|
() => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4235
4339
|
), c = () => o("cancel"), d = async () => {
|
|
4236
4340
|
if (i.onConfirm) {
|
|
@@ -4245,9 +4349,9 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4245
4349
|
}
|
|
4246
4350
|
};
|
|
4247
4351
|
return (u, h) => {
|
|
4248
|
-
const f =
|
|
4352
|
+
const f = B("KPrompt");
|
|
4249
4353
|
return p(), R(Rn, { to: "body" }, [
|
|
4250
|
-
|
|
4354
|
+
N(f, {
|
|
4251
4355
|
"action-button-disabled": a.value,
|
|
4252
4356
|
"action-button-text": s.value,
|
|
4253
4357
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
@@ -4256,16 +4360,16 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4256
4360
|
onCancel: c,
|
|
4257
4361
|
onProceed: d
|
|
4258
4362
|
}, {
|
|
4259
|
-
default:
|
|
4260
|
-
|
|
4363
|
+
default: v(() => [
|
|
4364
|
+
N(S(r), {
|
|
4261
4365
|
keypath: `toggleModal.${i.action}.message`,
|
|
4262
4366
|
scope: "global"
|
|
4263
4367
|
}, {
|
|
4264
|
-
entityType:
|
|
4368
|
+
entityType: v(() => [
|
|
4265
4369
|
z(O(e.entityType), 1)
|
|
4266
4370
|
]),
|
|
4267
|
-
entityName:
|
|
4268
|
-
|
|
4371
|
+
entityName: v(() => [
|
|
4372
|
+
$("strong", null, O(e.entityName), 1)
|
|
4269
4373
|
]),
|
|
4270
4374
|
_: 1
|
|
4271
4375
|
}, 8, ["keypath"])
|
|
@@ -4275,7 +4379,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4275
4379
|
]);
|
|
4276
4380
|
};
|
|
4277
4381
|
}
|
|
4278
|
-
}),
|
|
4382
|
+
}), es = /* @__PURE__ */ H({
|
|
4279
4383
|
__name: "PermissionsWrapper",
|
|
4280
4384
|
props: {
|
|
4281
4385
|
/**
|
|
@@ -4297,7 +4401,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4297
4401
|
}
|
|
4298
4402
|
},
|
|
4299
4403
|
setup(e) {
|
|
4300
|
-
const t = e, n = K(void 0), r =
|
|
4404
|
+
const t = e, n = K(void 0), r = _(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4301
4405
|
return _e(() => t.authFunction, async () => {
|
|
4302
4406
|
n.value = await t.authFunction();
|
|
4303
4407
|
}, { immediate: !0 }), (i, o) => r.value ? Y(i.$slots, "default", {
|
|
@@ -4305,16 +4409,16 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4305
4409
|
isAllowed: n.value
|
|
4306
4410
|
}) : U("", !0);
|
|
4307
4411
|
}
|
|
4308
|
-
}),
|
|
4412
|
+
}), $l = { class: "form-section-wrapper" }, Ll = {
|
|
4309
4413
|
key: 0,
|
|
4310
4414
|
class: "form-section-title"
|
|
4311
|
-
},
|
|
4415
|
+
}, Nl = {
|
|
4312
4416
|
key: 1,
|
|
4313
4417
|
class: "form-section-description"
|
|
4314
|
-
},
|
|
4418
|
+
}, Bl = {
|
|
4315
4419
|
key: 2,
|
|
4316
4420
|
class: "form-section-footer"
|
|
4317
|
-
},
|
|
4421
|
+
}, Ml = { class: "form-section-content" }, Rl = /* @__PURE__ */ H({
|
|
4318
4422
|
__name: "EntityFormSection",
|
|
4319
4423
|
props: {
|
|
4320
4424
|
title: {
|
|
@@ -4339,38 +4443,38 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4339
4443
|
}
|
|
4340
4444
|
},
|
|
4341
4445
|
setup(e) {
|
|
4342
|
-
const t =
|
|
4446
|
+
const t = Ze();
|
|
4343
4447
|
return (n, r) => (p(), w("fieldset", {
|
|
4344
|
-
class:
|
|
4448
|
+
class: he(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4345
4449
|
}, [
|
|
4346
|
-
|
|
4450
|
+
$("div", $l, [
|
|
4347
4451
|
e.hideInfoHeader ? U("", !0) : (p(), w("div", {
|
|
4348
4452
|
key: 0,
|
|
4349
|
-
class:
|
|
4453
|
+
class: he(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4350
4454
|
}, [
|
|
4351
|
-
e.title ? (p(), w("h4",
|
|
4352
|
-
e.description ||
|
|
4455
|
+
e.title ? (p(), w("h4", Ll, O(e.title), 1)) : U("", !0),
|
|
4456
|
+
e.description || S(t).description ? (p(), w("div", Nl, [
|
|
4353
4457
|
Y(n.$slots, "description", {}, () => [
|
|
4354
|
-
|
|
4458
|
+
$("p", null, O(e.description), 1)
|
|
4355
4459
|
], !0)
|
|
4356
4460
|
])) : U("", !0),
|
|
4357
|
-
|
|
4461
|
+
S(t).footer ? (p(), w("div", Bl, [
|
|
4358
4462
|
Y(n.$slots, "footer", {}, void 0, !0)
|
|
4359
4463
|
])) : U("", !0)
|
|
4360
4464
|
], 2)),
|
|
4361
|
-
|
|
4465
|
+
$("div", Ml, [
|
|
4362
4466
|
Y(n.$slots, "default", {}, void 0, !0)
|
|
4363
4467
|
])
|
|
4364
4468
|
])
|
|
4365
4469
|
], 2));
|
|
4366
4470
|
}
|
|
4367
|
-
}),
|
|
4471
|
+
}), ts = /* @__PURE__ */ re(Rl, [["__scopeId", "data-v-3565daa7"]]), Kl = {
|
|
4368
4472
|
class: "kong-ui-public-entity-link",
|
|
4369
4473
|
"data-testid": "entity-link-parent"
|
|
4370
|
-
},
|
|
4474
|
+
}, Dl = {
|
|
4371
4475
|
key: 0,
|
|
4372
4476
|
class: "deleted-entity"
|
|
4373
|
-
},
|
|
4477
|
+
}, jl = { key: 1 }, Ul = ["onClick"], ql = /* @__PURE__ */ H({
|
|
4374
4478
|
__name: "EntityLink",
|
|
4375
4479
|
props: {
|
|
4376
4480
|
entityLinkData: {
|
|
@@ -4394,27 +4498,27 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4394
4498
|
}
|
|
4395
4499
|
},
|
|
4396
4500
|
setup(e) {
|
|
4397
|
-
const t = e, n = K(), { isTruncated: r } = W.useTruncationDetector(n), { i18n: { t: i } } = W.useI18n(), o = i("global.actions.copyId"), a = K(o), l =
|
|
4501
|
+
const t = e, n = K(), { isTruncated: r } = W.useTruncationDetector(n), { i18n: { t: i } } = W.useI18n(), o = i("global.actions.copyId"), a = K(o), l = _(() => t.entityLinkData.deleted ?? !1), s = _(() => t.entityLinkData.id.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), c = _(() => `${s.value.toString().slice(0, 5)} (deleted)`), d = async (u) => {
|
|
4398
4502
|
await u(s.value || "") && (a.value = i("global.actions.copyToClipboard"), setTimeout(() => {
|
|
4399
4503
|
a.value = o;
|
|
4400
4504
|
}, 1800));
|
|
4401
4505
|
};
|
|
4402
4506
|
return (u, h) => {
|
|
4403
|
-
const f =
|
|
4404
|
-
return p(), w("div",
|
|
4405
|
-
l.value ? (p(), w("div",
|
|
4507
|
+
const f = B("KTooltip"), x = B("KExternalLink"), m = B("KClipboardProvider");
|
|
4508
|
+
return p(), w("div", Kl, [
|
|
4509
|
+
l.value ? (p(), w("div", Dl, O(c.value), 1)) : s.value ? s.value ? (p(), R(x, {
|
|
4406
4510
|
key: 2,
|
|
4407
4511
|
class: "entity-link",
|
|
4408
4512
|
"hide-icon": !e.newWindow,
|
|
4409
4513
|
href: e.externalLink,
|
|
4410
4514
|
target: e.newWindow ? "_blank" : "_self"
|
|
4411
4515
|
}, {
|
|
4412
|
-
default:
|
|
4413
|
-
|
|
4414
|
-
text:
|
|
4516
|
+
default: v(() => [
|
|
4517
|
+
N(f, {
|
|
4518
|
+
text: S(r) && e.entityLinkData.label || ""
|
|
4415
4519
|
}, {
|
|
4416
|
-
default:
|
|
4417
|
-
|
|
4520
|
+
default: v(() => [
|
|
4521
|
+
$("span", {
|
|
4418
4522
|
ref_key: "textContent",
|
|
4419
4523
|
ref: n,
|
|
4420
4524
|
class: "entity-link-label"
|
|
@@ -4424,7 +4528,7 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4424
4528
|
}, 8, ["text"])
|
|
4425
4529
|
]),
|
|
4426
4530
|
_: 1
|
|
4427
|
-
}, 8, ["hide-icon", "href", "target"])) : U("", !0) : (p(), w("div",
|
|
4531
|
+
}, 8, ["hide-icon", "href", "target"])) : U("", !0) : (p(), w("div", jl, O(" – "))),
|
|
4428
4532
|
s.value && e.allowCopy ? (p(), R(f, {
|
|
4429
4533
|
key: a.value,
|
|
4430
4534
|
class: "copy-uuid-tooltip",
|
|
@@ -4432,20 +4536,20 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4432
4536
|
placement: "bottomEnd",
|
|
4433
4537
|
text: a.value
|
|
4434
4538
|
}, {
|
|
4435
|
-
default:
|
|
4436
|
-
|
|
4437
|
-
default:
|
|
4438
|
-
|
|
4539
|
+
default: v(() => [
|
|
4540
|
+
N(m, null, {
|
|
4541
|
+
default: v(({ copyToClipboard: A }) => [
|
|
4542
|
+
$("span", {
|
|
4439
4543
|
class: "entity-link-copy-id",
|
|
4440
|
-
onClick:
|
|
4544
|
+
onClick: Le((M) => d(A), ["stop"])
|
|
4441
4545
|
}, [
|
|
4442
|
-
|
|
4546
|
+
N(S(el), {
|
|
4443
4547
|
class: "copy-icon",
|
|
4444
|
-
color:
|
|
4548
|
+
color: S(jr),
|
|
4445
4549
|
"data-testid": "copy-id",
|
|
4446
|
-
size:
|
|
4550
|
+
size: S(qr)
|
|
4447
4551
|
}, null, 8, ["color", "size"])
|
|
4448
|
-
], 8,
|
|
4552
|
+
], 8, Ul)
|
|
4449
4553
|
]),
|
|
4450
4554
|
_: 1
|
|
4451
4555
|
})
|
|
@@ -4455,36 +4559,36 @@ const wa = { class: "yaml-config" }, $n = /* @__PURE__ */ V({
|
|
|
4455
4559
|
]);
|
|
4456
4560
|
};
|
|
4457
4561
|
}
|
|
4458
|
-
}),
|
|
4562
|
+
}), ns = /* @__PURE__ */ re(ql, [["__scopeId", "data-v-ff8e5179"]]), { useAxios: rs, useDeleteUrlBuilder: is, useErrors: os, useExternalLinkCreator: as, useFetchUrlBuilder: ls, useFetcher: ss, useDebouncedFilter: cs, useStringHelpers: us, useHelpers: ds, useGatewayFeatureSupported: fs, useTruncationDetector: ps } = W;
|
|
4459
4563
|
export {
|
|
4460
4564
|
Fa as ConfigCardDisplay,
|
|
4461
4565
|
qt as ConfigCardItem,
|
|
4462
4566
|
ne as ConfigurationSchemaSection,
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4567
|
+
V as ConfigurationSchemaType,
|
|
4568
|
+
Wl as EntityBaseConfigCard,
|
|
4569
|
+
Jl as EntityBaseForm,
|
|
4466
4570
|
qn as EntityBaseFormType,
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4571
|
+
Gl as EntityBaseTable,
|
|
4572
|
+
Zl as EntityDeleteModal,
|
|
4573
|
+
Ql as EntityFilter,
|
|
4574
|
+
ts as EntityFormSection,
|
|
4575
|
+
ns as EntityLink,
|
|
4576
|
+
Xl as EntityToggleModal,
|
|
4473
4577
|
Un as EntityTypes,
|
|
4474
|
-
|
|
4578
|
+
ge as FetcherStatus,
|
|
4475
4579
|
Br as InternalLinkItem,
|
|
4476
4580
|
Pt as JsonCodeBlock,
|
|
4477
|
-
|
|
4581
|
+
es as PermissionsWrapper,
|
|
4478
4582
|
$n as YamlCodeBlock,
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4583
|
+
rs as useAxios,
|
|
4584
|
+
cs as useDebouncedFilter,
|
|
4585
|
+
is as useDeleteUrlBuilder,
|
|
4586
|
+
os as useErrors,
|
|
4587
|
+
as as useExternalLinkCreator,
|
|
4588
|
+
ls as useFetchUrlBuilder,
|
|
4589
|
+
ss as useFetcher,
|
|
4590
|
+
fs as useGatewayFeatureSupported,
|
|
4591
|
+
ds as useHelpers,
|
|
4592
|
+
us as useStringHelpers,
|
|
4593
|
+
ps as useTruncationDetector
|
|
4490
4594
|
};
|